globalThis.$localize=Object.assign(globalThis.$localize || {},{locale:"hr"});
"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,f=parseInt(val.toString().replace(/^[^.]*\.?/,""),10)||0;if(v===0&&i%10===1&&!(i%100===11)||f%10===1&&!(f%100===11))return 1;if(v===0&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||f%10===Math.floor(f%10)&&f%10>=2&&f%10<=4&&!(f%100>=12&&f%100<=14))return 3;return 5}global.ng.common.locales["hr"]=["hr",[["AM","PM"],u,u],u,[["N","P","U","S","\u010C","P","S"],["ned","pon","uto","sri","\u010Det","pet","sub"],["nedjelja","ponedjeljak","utorak","srijeda","\u010Detvrtak","petak","subota"],["ned","pon","uto","sri","\u010Det","pet","sub"]],[["n","p","u","s","\u010D","p","s"],["ned","pon","uto","sri","\u010Det","pet","sub"],["nedjelja","ponedjeljak","utorak","srijeda","\u010Detvrtak","petak","subota"],["ned","pon","uto","sri","\u010Det","pet","sub"]],[["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],["sij","velj","o\u017Eu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],["sije\u010Dnja","velja\u010De","o\u017Eujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenoga","prosinca"]],[["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],["sij","velj","o\u017Eu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],["sije\u010Danj","velja\u010Da","o\u017Eujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"]],[["pr.n.e.","AD"],["pr. Kr.","po. Kr."],["prije Krista","poslije Krista"]],1,[6,0],["dd. MM. y.","d. MMM y.","d. MMMM y.","EEEE, d. MMMM y."],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss (zzzz)"],["{1} {0}",u,"{1} 'u' {0}",u],[",",".",";","%","+","\u2212","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"HRK","kn","hrvatska kuna",{"AUD":[u,"$"],"BRL":[u,"R$"],"BYN":[u,"\u0440."],"CAD":[u,"$"],"CNY":[u,"\xA5"],"EUR":[u,"\u20AC"],"GBP":[u,"\xA3"],"HKD":[u,"$"],"HRK":["kn"],"ILS":[u,"\u20AA"],"INR":[u,"\u20B9"],"JPY":[u,"\xA5"],"KRW":[u,"\u20A9"],"MXN":[u,"$"],"NZD":[u,"$"],"PHP":[u,"\u20B1"],"RUR":[u,"\u0440."],"TWD":[u,"NT$"],"USD":[u,"$"],"VND":[u,"\u20AB"],"XCD":[u,"$"],"XPF":[],"XXX":[]},"ltr",plural,[[["pono\u0107","podne","ujutro","popodne","nave\u010Der","no\u0107u"],u,["pono\u0107","podne","ujutro","poslije podne","nave\u010Der","no\u0107u"]],[["pono\u0107","podne","ujutro","popodne","nave\u010Der","no\u0107u"],u,u],["00:00","12:00",["04:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","04:00"]]]]})(typeof globalThis!=="undefined"&&globalThis||typeof global!=="undefined"&&global||typeof window!=="undefined"&&window);;
(self.webpackChunkwhydonate_web_portal=self.webpackChunkwhydonate_web_portal||[]).push([[179],{85041:(St,be,s)=>{"use strict";s.d(be,{a:()=>m});var t=s(42456),e=s(73991),d=s(21704),l=s(64886),r=s(17774),c=s(76037),E=s(81338);let m=(()=>{class v{constructor(n,i,P,I,q,D){this.accountService=n,this._router=i,this.location=P,this.activatedRoute=I,this.notificationService=q,this.profileService=D,this.isLoggedIn=!1,this.isAccountDeactivated=!1,this.isHeaderAvailable=!1}canActivate(){if(this.accountService.getLoginInformation().subscribe(n=>{if(window.location.pathname.includes("fundraising/widget")){let i=window.location.pathname.replace(/^.*?fundraising/,"fundraising");t.w.setPreviousPath(i)}this.isLoggedIn=n,this.isHeaderAvailable=this.accountService.checkHeaders(),1==this.isLoggedIn&&this.isHeaderAvailable&&this.profileService.getProfile().subscribe(i=>{1==i?.data?.profile?.deactivated&&(this.isAccountDeactivated=!0,this.notificationService.openNotification("Va\u0161 ra\u010Dun je deaktiviran, molimo kontaktirajte korisni\u010Dku podr\u0161ku za aktivaciju.","Got it","error"),this.accountService.logout(),this._router.navigate(["account/login"]))})}),this.isHeaderAvailable=this.accountService.checkHeaders(),this.isLoggedIn&&!this.isAccountDeactivated&&this.isHeaderAvailable)return!0;if(this.isAccountDeactivated||!this.isHeaderAvailable)return this._router.navigate(["account/login"]),!1;{let n=t.w.getPathnameWithoutLocale(window.location.pathname,this.accountService.getLocaleId())||"",i=localStorage.getItem("previous_path")||"";return n.includes(i)&&t.w.setPreviousPath(n),this._router.navigate(["account"]),!1}}}return v.\u0275fac=function(n){return new(n||v)(e.LFG(d.B),e.LFG(l.F0),e.LFG(r.Ye),e.LFG(l.gz),e.LFG(c.g),e.LFG(E.H))},v.\u0275prov=e.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},97974:(St,be,s)=>{"use strict";s.d(be,{C:()=>t});class t{constructor(d="",l=""){this.jwt=d,this.expiry_date=l}}},71749:(St,be,s)=>{"use strict";s.d(be,{n:()=>t});class t{constructor(d="",l,r,c,E,m,v){this.id=d,this.jwt=l,this.email=E,this.is_email_verified=v,r&&(this.first_name=r),c&&(this.last_name=c),m&&(this.profile_image=m)}}},68550:(St,be,s)=>{"use strict";s.d(be,{y:()=>d});var t=s(73991),e=s(21704);let d=(()=>{class l{constructor(c){this.accountService=c}fireAnalyticsEvent(c,E){try{window?.zaraz?.track(c,E)}catch(m){console.error("Error while tracking analytics event:","Event: "+c+" | Error: "+m)}}openCookieSettings(){try{const c=window?.zaraz;let E=this.getLangCookie("WD_locale");c?.set("__zarazConsentLanguage",E),c?.showConsentModal()}catch(c){console.error("Error while opening cookie settings modal:",c)}}setZarazLanguage(){try{const c=window?.zaraz;let E=this.getLangCookie("WD_locale");c?.set("__zarazConsentLanguage",E)}catch(c){console.error("Error while opening cookie settings modal:",c)}}getLangCookie(c){const E=document.cookie.split(";");for(const m of E){const[v,C]=m.trim().split("=");if(v===c)return decodeURIComponent(C)}return"nl"}}return l.\u0275fac=function(c){return new(c||l)(t.LFG(e.B))},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},45710:(St,be,s)=>{"use strict";s.d(be,{t:()=>c});var t=s(45734),e=s(99099),d=s(9206),l=s(73991),r=s(76037);let c=(()=>{class E{constructor(v,C){this.http=v,this._notificationService=C,this.API_URL=d.N.apiUrl,this.ACCOUNT_API_V2=d.N.ACCOUNT_API_V2,this.Search_API=d.N.search_url,this.fundraiser_url=d.N.fundraiser_url,this.handleError=this.handleError.bind(this)}get(v,C={},n){if(null!=n){let i=new t.LE;return i=i.append("slug",C.toString()),this.http.get(this.API_URL+v,{headers:n,params:i})}return this.http.get(this.API_URL+v,C)}tempGet(v,C={},n){if(null!=n){let i=new t.LE;return i=i.append("slug",C.toString()),this.http.get(this.ACCOUNT_API_V2+v,{headers:n,params:i})}return this.http.get(this.ACCOUNT_API_V2+v,C)}tempGetNew(v,C={},n){if(null!=n){let i=new t.LE;return i=i.append("slug",C.toString()),this.http.get(this.fundraiser_url+v,{headers:n,params:i})}return this.http.get(this.fundraiser_url+v,C)}searchGet(v,C={},n){if(null!=n){let i=new t.LE;return i=i.append("slug",C.toString()),this.http.get(this.Search_API+v,{headers:n,params:i})}return this.http.get(this.Search_API+v,C)}post(v,C={},n){return null!=n?this.http.post(this.API_URL+v,JSON.stringify(C),{headers:n}):this.http.post(this.API_URL+v,JSON.parse(JSON.stringify(C)))}tempPost(v,C={}){let n=new t.WM({"content-type":"text/plain"});return null!=n?this.http.post(v,JSON.stringify(C),{headers:n}):this.http.post(v,JSON.parse(JSON.stringify(C)))}tempPostNew(v,C={},n){return null!=n?this.http.post(this.fundraiser_url+v,JSON.stringify(C),{headers:n}):this.http.post(this.ACCOUNT_API_V2+v,JSON.parse(JSON.stringify(C)))}put(v,C={},n){return null!=n?this.http.put(this.API_URL+v,JSON.stringify(C),{headers:n}):this.http.put(this.API_URL+v,JSON.stringify(C))}tempPut(v,C,n){return null!=n?this.http.put(this.ACCOUNT_API_V2+v,JSON.stringify(C),{headers:n}):this.http.put(this.ACCOUNT_API_V2+v,JSON.stringify(C))}tempPutNew(v,C,n){return null!=n?this.http.put(this.fundraiser_url+v,JSON.stringify(C),{headers:n}):this.http.put(this.fundraiser_url+v,JSON.stringify(C))}delete(v,C,n){let i=n?.get("Authorization")||"",P={headers:(new t.WM).set("Authorization",i),body:C};return this.http.delete(this.API_URL+v,P)}handleError(v){return this._notificationService.openNotification("Dogodila se pogre\u0161ka.","OK","error"),(0,e._)("Something bad happened; please try again later.")}}return E.\u0275fac=function(v){return new(v||E)(l.LFG(t.eN),l.LFG(r.g))},E.\u0275prov=l.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})()},32946:(St,be,s)=>{"use strict";s.d(be,{c:()=>C});var t=s(48046),e=s(45734),d=s(93216),l=s(32837),r=s(99099),c=s(95195),E=s(9206),m=s(73991),v=s(21704);let C=(()=>{class n{constructor(P,I){this.httpClient=P,this.accountService=I,this.API_URL=E.N.fundraiser_url,this.isCustomHomePage=!1,this.isFundAsCustomHomePage=!1,this.isCustomDomain=new d.X(!1)}getIsCustomDomain(){return this.isCustomDomain.asObservable()}setIsCustomDomainValue(P){this.isCustomDomain.next(P)}isCustomDomainUnique(P){const q=(new e.LE).set("custom_domain",P);return this.httpClient.get(this.API_URL+"custom-domain/isCustomDomainUnique",{params:q})}addCustomDomain(P){const q={custom_domain:P};let D=this.accountService.getHeaders();return this.httpClient.post(this.API_URL+"custom-domain/addCustomDomain",q,{headers:D}).pipe((0,l.K)(this.handleError("addCustomDomain",[])))}getCustomDomain(){let I=this.accountService.getHeaders();try{return this.httpClient.get(this.API_URL+"custom-domain/getCustomDomain",{headers:I})}catch(q){return console.error("An error occurred:",q),(0,r._)(q)}}getCustomDomainData(P){var I=this;return(0,t.Z)(function*(){try{const q=E.N.CUSTOM_DOMAIN_API_V2,D="custom_domain/verification",T=(yield I.httpClient.get(q+D,{params:{domain:P}}).toPromise())?.data?.id||0;0!=T&&localStorage.setItem("user_id_custom_domain",T);const F="custom-domain/data",le=I.accountService.getHeaders(),V={user_id:T,language:I.accountService.getLocaleId()};try{return yield I.httpClient.get(I.API_URL+F,{headers:le,params:V}).toPromise()}catch(de){return console.error("An error occurred while fetching custom domain data:",de),{}}}catch(q){return console.error("An error occurred while verifying custom domain:",q),{}}})()}getDNSInfo(){let I=this.accountService.getHeaders();try{return this.httpClient.get(this.API_URL+"custom-domain/getDNSInfo",{headers:I})}catch(q){return console.error("An error occurred:",q),(0,r._)(q)}}deleteCustomDomain(){let I=this.accountService.getHeaders();try{return this.httpClient.delete(this.API_URL+"custom-domain/deleteCustomDomain",{headers:I})}catch(q){return console.error("An error occurred:",q),(0,r._)(q)}}setCustomDomainSettings(P){let q=this.accountService.getHeaders();return this.httpClient.post(this.API_URL+"custom-domain/setCustomDomainSettings",P,{headers:q}).pipe((0,l.K)(this.handleError("setCustomDomainSettings",[])))}setCustomDomainBackground(P){let D=this.accountService.getHeaders()?.get("Authorization")||"",M={headers:(new e.WM).set("Authorization",D)};const T=new FormData;return T.append("image",P),this.httpClient.post(this.API_URL+"custom-domain/background",T,M).pipe((0,l.K)(this.handleError("setCustomDomainBackground",[])))}getCustomDomainSettings(){let I=this.accountService.getHeaders();return this.httpClient.get(this.API_URL+"custom-domain/getCustomDomainSettings",{headers:I,params:{language:this.accountService.getLocaleId()||"nl"}}).pipe((0,l.K)(this.handleError("getCustomDomainSettings",[])))}checkUrlStatus(){let I=this.accountService.getHeaders();return this.httpClient.get(this.API_URL+"custom-domain/status",{headers:I})}handleError(P="operation",I){return q=>(console.log(q),(0,c.of)(I))}setIsCustomHomeFlag(P){this.isCustomHomePage=P}setIsFundAsCustomHomePage(P){this.isFundAsCustomHomePage=P}getIsCustomHomeFlag(){return this.isCustomHomePage}getIsFundAsCustomHomePageFlag(){return this.isFundAsCustomHomePage}}return n.\u0275fac=function(P){return new(P||n)(m.LFG(e.eN),m.LFG(v.B))},n.\u0275prov=m.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})()},56413:(St,be,s)=>{"use strict";s.d(be,{$:()=>d});var t=s(44070),e=s(73991);let d=(()=>{class l{constructor(){this.scripts=[]}loadCrisp(){window.$crisp=[],window.CRISP_WEBSITE_ID="26dcc138-6a23-47f7-93c3-92ed66fe2afd",window.$crisp.push(["safe",!0]),this.load({name:"crisp-chat-box",src:"https://client.crisp.chat/l.js"}).subscribe()}loadCookieConsent(){this.load({name:"cookie-consent",src:"https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js"}).subscribe(()=>{window.cookieconsent.initialise({palette:{popup:{background:"#292780"},button:{background:"#32bf55"}},theme:"classic",position:"bottom-left",content:{link:"Saznajte Vi\u0161e",href:"/privacy-en-cookies",message:"Ova web stranica koristi kola\u010Di\u0107e kako bi pobolj\u0161ala korisni\u010Dko iskustvo Kori\u0161tenjem na\u0161e web stranice pristajete na sve kola\u010Di\u0107e sukladno na\u0161oj Politici kola\u010Di\u0107a.",dismiss:"U redu. Ku\u017Eim!"}})})}load(c){return new t.y(E=>{const m=this.scripts.find(v=>v.name==c.name);if(m&&m.loaded)E.next(m),E.complete();else{this.scripts=[...this.scripts,c];const v=document.createElement("script");v.type="text/javascript",v.src=c.src,v.async=!0,v.onload=()=>{c.loaded=!0,E.next(c),E.complete()},v.onerror=C=>{E.error("Couldn't load script "+c.src)},document.getElementsByTagName("body")[0].appendChild(v)}})}}return l.\u0275fac=function(c){return new(c||l)},l.\u0275prov=e.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},6225:(St,be,s)=>{"use strict";function t(w,k){(function d(w){return"string"==typeof w&&-1!==w.indexOf(".")&&1===parseFloat(w)})(w)&&(w="100%");var x=function l(w){return"string"==typeof w&&-1!==w.indexOf("%")}(w);return w=360===k?w:Math.min(k,Math.max(0,parseFloat(w))),x&&(w=parseInt(String(w*k),10)/100),Math.abs(w-k)<1e-6?1:w=360===k?(w<0?w%k+k:w%k)/parseFloat(String(k)):w%k/parseFloat(String(k))}function e(w){return Math.min(1,Math.max(0,w))}function r(w){return w=parseFloat(w),(isNaN(w)||w<0||w>1)&&(w=1),w}function c(w){return w<=1?"".concat(100*Number(w),"%"):w}function E(w){return 1===w.length?"0"+w:String(w)}function v(w,k,x){w=t(w,255),k=t(k,255),x=t(x,255);var z=Math.max(w,k,x),j=Math.min(w,k,x),Ne=0,tt=0,We=(z+j)/2;if(z===j)tt=0,Ne=0;else{var ze=z-j;switch(tt=We>.5?ze/(2-z-j):ze/(z+j),z){case w:Ne=(k-x)/ze+(k<x?6:0);break;case k:Ne=(x-w)/ze+2;break;case x:Ne=(w-k)/ze+4}Ne/=6}return{h:Ne,s:tt,l:We}}function C(w,k,x){return x<0&&(x+=1),x>1&&(x-=1),x<1/6?w+6*x*(k-w):x<.5?k:x<2/3?w+(k-w)*(2/3-x)*6:w}function i(w,k,x){w=t(w,255),k=t(k,255),x=t(x,255);var z=Math.max(w,k,x),j=Math.min(w,k,x),Ne=0,tt=z,We=z-j,ze=0===z?0:We/z;if(z===j)Ne=0;else{switch(z){case w:Ne=(k-x)/We+(k<x?6:0);break;case k:Ne=(x-w)/We+2;break;case x:Ne=(w-k)/We+4}Ne/=6}return{h:Ne,s:ze,v:tt}}function I(w,k,x,z){var j=[E(Math.round(w).toString(16)),E(Math.round(k).toString(16)),E(Math.round(x).toString(16))];return z&&j[0].startsWith(j[0].charAt(1))&&j[1].startsWith(j[1].charAt(1))&&j[2].startsWith(j[2].charAt(1))?j[0].charAt(0)+j[1].charAt(0)+j[2].charAt(0):j.join("")}function M(w){return Math.round(255*parseFloat(w)).toString(16)}function T(w){return F(w)/255}function F(w){return parseInt(w,16)}s.d(be,{f:()=>Te});var V={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",darkgreen:"#006400",darkgrey:"#a9a9a9",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",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",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:"#9370db",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:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",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"};var Le="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),ge="[\\s|\\(]+(".concat(Le,")[,|\\s]+(").concat(Le,")[,|\\s]+(").concat(Le,")\\s*\\)?"),ue="[\\s|\\(]+(".concat(Le,")[,|\\s]+(").concat(Le,")[,|\\s]+(").concat(Le,")[,|\\s]+(").concat(Le,")\\s*\\)?"),ee={CSS_UNIT:new RegExp(Le),rgb:new RegExp("rgb"+ge),rgba:new RegExp("rgba"+ue),hsl:new RegExp("hsl"+ge),hsla:new RegExp("hsla"+ue),hsv:new RegExp("hsv"+ge),hsva:new RegExp("hsva"+ue),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function W(w){return Boolean(ee.CSS_UNIT.exec(String(w)))}var L=function(){function w(k,x){var z;if(void 0===k&&(k=""),void 0===x&&(x={}),k instanceof w)return k;"number"==typeof k&&(k=function le(w){return{r:w>>16,g:(65280&w)>>8,b:255&w}}(k)),this.originalInput=k;var j=function de(w){var k={r:0,g:0,b:0},x=1,z=null,j=null,Ne=null,tt=!1,We=!1;return"string"==typeof w&&(w=function se(w){if(0===(w=w.trim().toLowerCase()).length)return!1;var k=!1;if(V[w])w=V[w],k=!0;else if("transparent"===w)return{r:0,g:0,b:0,a:0,format:"name"};var x=ee.rgb.exec(w);return x?{r:x[1],g:x[2],b:x[3]}:(x=ee.rgba.exec(w))?{r:x[1],g:x[2],b:x[3],a:x[4]}:(x=ee.hsl.exec(w))?{h:x[1],s:x[2],l:x[3]}:(x=ee.hsla.exec(w))?{h:x[1],s:x[2],l:x[3],a:x[4]}:(x=ee.hsv.exec(w))?{h:x[1],s:x[2],v:x[3]}:(x=ee.hsva.exec(w))?{h:x[1],s:x[2],v:x[3],a:x[4]}:(x=ee.hex8.exec(w))?{r:F(x[1]),g:F(x[2]),b:F(x[3]),a:T(x[4]),format:k?"name":"hex8"}:(x=ee.hex6.exec(w))?{r:F(x[1]),g:F(x[2]),b:F(x[3]),format:k?"name":"hex"}:(x=ee.hex4.exec(w))?{r:F(x[1]+x[1]),g:F(x[2]+x[2]),b:F(x[3]+x[3]),a:T(x[4]+x[4]),format:k?"name":"hex8"}:!!(x=ee.hex3.exec(w))&&{r:F(x[1]+x[1]),g:F(x[2]+x[2]),b:F(x[3]+x[3]),format:k?"name":"hex"}}(w)),"object"==typeof w&&(W(w.r)&&W(w.g)&&W(w.b)?(k=function m(w,k,x){return{r:255*t(w,255),g:255*t(k,255),b:255*t(x,255)}}(w.r,w.g,w.b),tt=!0,We="%"===String(w.r).substr(-1)?"prgb":"rgb"):W(w.h)&&W(w.s)&&W(w.v)?(z=c(w.s),j=c(w.v),k=function P(w,k,x){w=6*t(w,360),k=t(k,100),x=t(x,100);var z=Math.floor(w),j=w-z,Ne=x*(1-k),tt=x*(1-j*k),We=x*(1-(1-j)*k),ze=z%6;return{r:255*[x,tt,Ne,Ne,We,x][ze],g:255*[We,x,x,tt,Ne,Ne][ze],b:255*[Ne,Ne,We,x,x,tt][ze]}}(w.h,z,j),tt=!0,We="hsv"):W(w.h)&&W(w.s)&&W(w.l)&&(z=c(w.s),Ne=c(w.l),k=function n(w,k,x){var z,j,Ne;if(w=t(w,360),k=t(k,100),x=t(x,100),0===k)j=x,Ne=x,z=x;else{var tt=x<.5?x*(1+k):x+k-x*k,We=2*x-tt;z=C(We,tt,w+1/3),j=C(We,tt,w),Ne=C(We,tt,w-1/3)}return{r:255*z,g:255*j,b:255*Ne}}(w.h,z,Ne),tt=!0,We="hsl"),Object.prototype.hasOwnProperty.call(w,"a")&&(x=w.a)),x=r(x),{ok:tt,format:w.format||We,r:Math.min(255,Math.max(k.r,0)),g:Math.min(255,Math.max(k.g,0)),b:Math.min(255,Math.max(k.b,0)),a:x}}(k);this.originalInput=k,this.r=j.r,this.g=j.g,this.b=j.b,this.a=j.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(z=x.format)&&void 0!==z?z:j.format,this.gradientType=x.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=j.ok}return w.prototype.isDark=function(){return this.getBrightness()<128},w.prototype.isLight=function(){return!this.isDark()},w.prototype.getBrightness=function(){var k=this.toRgb();return(299*k.r+587*k.g+114*k.b)/1e3},w.prototype.getLuminance=function(){var k=this.toRgb(),Ne=k.r/255,tt=k.g/255,We=k.b/255;return.2126*(Ne<=.03928?Ne/12.92:Math.pow((Ne+.055)/1.055,2.4))+.7152*(tt<=.03928?tt/12.92:Math.pow((tt+.055)/1.055,2.4))+.0722*(We<=.03928?We/12.92:Math.pow((We+.055)/1.055,2.4))},w.prototype.getAlpha=function(){return this.a},w.prototype.setAlpha=function(k){return this.a=r(k),this.roundA=Math.round(100*this.a)/100,this},w.prototype.isMonochrome=function(){return 0===this.toHsl().s},w.prototype.toHsv=function(){var k=i(this.r,this.g,this.b);return{h:360*k.h,s:k.s,v:k.v,a:this.a}},w.prototype.toHsvString=function(){var k=i(this.r,this.g,this.b),x=Math.round(360*k.h),z=Math.round(100*k.s),j=Math.round(100*k.v);return 1===this.a?"hsv(".concat(x,", ").concat(z,"%, ").concat(j,"%)"):"hsva(".concat(x,", ").concat(z,"%, ").concat(j,"%, ").concat(this.roundA,")")},w.prototype.toHsl=function(){var k=v(this.r,this.g,this.b);return{h:360*k.h,s:k.s,l:k.l,a:this.a}},w.prototype.toHslString=function(){var k=v(this.r,this.g,this.b),x=Math.round(360*k.h),z=Math.round(100*k.s),j=Math.round(100*k.l);return 1===this.a?"hsl(".concat(x,", ").concat(z,"%, ").concat(j,"%)"):"hsla(".concat(x,", ").concat(z,"%, ").concat(j,"%, ").concat(this.roundA,")")},w.prototype.toHex=function(k){return void 0===k&&(k=!1),I(this.r,this.g,this.b,k)},w.prototype.toHexString=function(k){return void 0===k&&(k=!1),"#"+this.toHex(k)},w.prototype.toHex8=function(k){return void 0===k&&(k=!1),function q(w,k,x,z,j){var Ne=[E(Math.round(w).toString(16)),E(Math.round(k).toString(16)),E(Math.round(x).toString(16)),E(M(z))];return j&&Ne[0].startsWith(Ne[0].charAt(1))&&Ne[1].startsWith(Ne[1].charAt(1))&&Ne[2].startsWith(Ne[2].charAt(1))&&Ne[3].startsWith(Ne[3].charAt(1))?Ne[0].charAt(0)+Ne[1].charAt(0)+Ne[2].charAt(0)+Ne[3].charAt(0):Ne.join("")}(this.r,this.g,this.b,this.a,k)},w.prototype.toHex8String=function(k){return void 0===k&&(k=!1),"#"+this.toHex8(k)},w.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},w.prototype.toRgbString=function(){var k=Math.round(this.r),x=Math.round(this.g),z=Math.round(this.b);return 1===this.a?"rgb(".concat(k,", ").concat(x,", ").concat(z,")"):"rgba(".concat(k,", ").concat(x,", ").concat(z,", ").concat(this.roundA,")")},w.prototype.toPercentageRgb=function(){var k=function(x){return"".concat(Math.round(100*t(x,255)),"%")};return{r:k(this.r),g:k(this.g),b:k(this.b),a:this.a}},w.prototype.toPercentageRgbString=function(){var k=function(x){return Math.round(100*t(x,255))};return 1===this.a?"rgb(".concat(k(this.r),"%, ").concat(k(this.g),"%, ").concat(k(this.b),"%)"):"rgba(".concat(k(this.r),"%, ").concat(k(this.g),"%, ").concat(k(this.b),"%, ").concat(this.roundA,")")},w.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var k="#"+I(this.r,this.g,this.b,!1),x=0,z=Object.entries(V);x<z.length;x++){var j=z[x];if(k===j[1])return j[0]}return!1},w.prototype.toString=function(k){var x=Boolean(k);k=k??this.format;var z=!1;return!x&&this.a<1&&this.a>=0&&(k.startsWith("hex")||"name"===k)?"name"===k&&0===this.a?this.toName():this.toRgbString():("rgb"===k&&(z=this.toRgbString()),"prgb"===k&&(z=this.toPercentageRgbString()),("hex"===k||"hex6"===k)&&(z=this.toHexString()),"hex3"===k&&(z=this.toHexString(!0)),"hex4"===k&&(z=this.toHex8String(!0)),"hex8"===k&&(z=this.toHex8String()),"name"===k&&(z=this.toName()),"hsl"===k&&(z=this.toHslString()),"hsv"===k&&(z=this.toHsvString()),z||this.toHexString())},w.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},w.prototype.clone=function(){return new w(this.toString())},w.prototype.lighten=function(k){void 0===k&&(k=10);var x=this.toHsl();return x.l+=k/100,x.l=e(x.l),new w(x)},w.prototype.brighten=function(k){void 0===k&&(k=10);var x=this.toRgb();return x.r=Math.max(0,Math.min(255,x.r-Math.round(-k/100*255))),x.g=Math.max(0,Math.min(255,x.g-Math.round(-k/100*255))),x.b=Math.max(0,Math.min(255,x.b-Math.round(-k/100*255))),new w(x)},w.prototype.darken=function(k){void 0===k&&(k=10);var x=this.toHsl();return x.l-=k/100,x.l=e(x.l),new w(x)},w.prototype.tint=function(k){return void 0===k&&(k=10),this.mix("white",k)},w.prototype.shade=function(k){return void 0===k&&(k=10),this.mix("black",k)},w.prototype.desaturate=function(k){void 0===k&&(k=10);var x=this.toHsl();return x.s-=k/100,x.s=e(x.s),new w(x)},w.prototype.saturate=function(k){void 0===k&&(k=10);var x=this.toHsl();return x.s+=k/100,x.s=e(x.s),new w(x)},w.prototype.greyscale=function(){return this.desaturate(100)},w.prototype.spin=function(k){var x=this.toHsl(),z=(x.h+k)%360;return x.h=z<0?360+z:z,new w(x)},w.prototype.mix=function(k,x){void 0===x&&(x=50);var z=this.toRgb(),j=new w(k).toRgb(),Ne=x/100;return new w({r:(j.r-z.r)*Ne+z.r,g:(j.g-z.g)*Ne+z.g,b:(j.b-z.b)*Ne+z.b,a:(j.a-z.a)*Ne+z.a})},w.prototype.analogous=function(k,x){void 0===k&&(k=6),void 0===x&&(x=30);var z=this.toHsl(),j=360/x,Ne=[this];for(z.h=(z.h-(j*k>>1)+720)%360;--k;)z.h=(z.h+j)%360,Ne.push(new w(z));return Ne},w.prototype.complement=function(){var k=this.toHsl();return k.h=(k.h+180)%360,new w(k)},w.prototype.monochromatic=function(k){void 0===k&&(k=6);for(var x=this.toHsv(),z=x.h,j=x.s,Ne=x.v,tt=[],We=1/k;k--;)tt.push(new w({h:z,s:j,v:Ne})),Ne=(Ne+We)%1;return tt},w.prototype.splitcomplement=function(){var k=this.toHsl(),x=k.h;return[this,new w({h:(x+72)%360,s:k.s,l:k.l}),new w({h:(x+216)%360,s:k.s,l:k.l})]},w.prototype.onBackground=function(k){var x=this.toRgb(),z=new w(k).toRgb();return new w({r:z.r+(x.r-z.r)*x.a,g:z.g+(x.g-z.g)*x.a,b:z.b+(x.b-z.b)*x.a})},w.prototype.triad=function(){return this.polyad(3)},w.prototype.tetrad=function(){return this.polyad(4)},w.prototype.polyad=function(k){for(var x=this.toHsl(),z=x.h,j=[this],Ne=360/k,tt=1;tt<k;tt++)j.push(new w({h:(z+tt*Ne)%360,s:x.s,l:x.l}));return j},w.prototype.equals=function(k){return this.toRgbString()===new w(k).toRgbString()},w}();const _e=function he(w,k){return void 0===w&&(w=""),void 0===k&&(k={}),new L(w,k)};var Z=s(73991);let Te=(()=>{class w{constructor(){}computeColors(x){return[this.getColorObject(_e(x).lighten(52),"50"),this.getColorObject(_e(x).lighten(37),"100"),this.getColorObject(_e(x).lighten(26),"200"),this.getColorObject(_e(x).lighten(12),"300"),this.getColorObject(_e(x).lighten(6),"400"),this.getColorObject(_e(x),"500"),this.getColorObject(_e(x).darken(6),"600"),this.getColorObject(_e(x).darken(12),"700"),this.getColorObject(_e(x).darken(18),"800"),this.getColorObject(_e(x).darken(24),"900"),this.getColorObject(_e(x).lighten(50).saturate(30),"A100"),this.getColorObject(_e(x).lighten(30).saturate(30),"A200"),this.getColorObject(_e(x).lighten(10).saturate(15),"A400"),this.getColorObject(_e(x).lighten(5).saturate(5),"A700")]}getColorObject(x,z){const j=_e(x);return{name:z,hex:j.toHexString(),darkContrast:j.isLight()}}setTheme(x,z,j){j&&document.documentElement.style.setProperty("--custom-font-family",j||"Roboto");let Ne=this.computeColors(x);for(const We of Ne){const Ye=`--theme-primary-contrast-${We.name}`,te=We.darkContrast?"rgba(black, 0.87)":"white";document.documentElement.style.setProperty(`--theme-primary-${We.name}`,We.hex),document.documentElement.style.setProperty(Ye,te)}let tt=this.computeColors(z);for(const We of tt){const Ye=`--theme-secondary-contrast-${We.name}`,te=We.darkContrast?"rgba(black, 0.87)":"white";document.documentElement.style.setProperty(`--theme-secondary-${We.name}`,We.hex),document.documentElement.style.setProperty(Ye,te)}}isColorAccessible(x){return _e(x).isDark()}getWhydonateColors(){return{primary:"#32bf55",accent:"#363396"}}}return w.\u0275fac=function(x){return new(x||w)},w.\u0275prov=Z.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})()},25384:(St,be,s)=>{"use strict";s.d(be,{q:()=>fs});var t=s(17774),e=s(13710),d=s(85006),l=s(88961),r=s(4692),c=s(54449),E=s(79044),m=s(80398),v=s(6822),C=s(15645),n=s(33867),i=s(17145),P=s(68287),I=s(4324),q=s(43732),D=s(9),M=s(63591),T=s(73991),F=s(52051);let Ne=(()=>{class ft{}return ft.\u0275fac=function(it){return new(it||ft)},ft.\u0275mod=T.oAB({type:ft}),ft.\u0275inj=T.cJS({imports:[F.uc,F.BQ,F.uc,F.BQ]}),ft})();var We=s(82918),ze=s(4473),we=s(36442),te=(s(71106),s(68264));s(93216),s(45929),s(95195),s(30003),s(45903),s(88793);let qt=(()=>{class ft{}return ft.\u0275fac=function(it){return new(it||ft)},ft.\u0275mod=T.oAB({type:ft}),ft.\u0275inj=T.cJS({}),ft})(),Pt=(()=>{class ft{}return ft.\u0275fac=function(it){return new(it||ft)},ft.\u0275mod=T.oAB({type:ft}),ft.\u0275inj=T.cJS({imports:[qt,F.BQ,F.BQ]}),ft})();var Me=s(43073),ut=s(69621),nt=s(70232);let Cn=(()=>{class ft{}return ft.\u0275fac=function(it){return new(it||ft)},ft.\u0275mod=T.oAB({type:ft}),ft.\u0275inj=T.cJS({imports:[nt.rt,F.BQ,F.BQ]}),ft})();var Wn=s(43719),zn=s(45379),ti=s(81560),yr=s(16124),Jr=s(74467),wt=s(27444);s(96191);let Gn=(()=>{class ft{}return ft.\u0275fac=function(it){return new(it||ft)},ft.\u0275mod=T.oAB({type:ft}),ft.\u0275inj=T.cJS({imports:[Jr.Su,F.BQ,wt.eL,F.BQ]}),ft})();var Kt=s(45720),Ar=s(70431),ie=s(31180),Ve=s(47108);let Xn=(()=>{class ft{constructor(){this.changes=new te.x}}return ft.\u0275fac=function(it){return new(it||ft)},ft.\u0275prov=T.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})();const ta={provide:Xn,deps:[[new T.FiY,new T.tp0,Xn]],useFactory:function ni(ft){return ft||new Xn}};let Ei=(()=>{class ft{}return ft.\u0275fac=function(it){return new(it||ft)},ft.\u0275mod=T.oAB({type:ft}),ft.\u0275inj=T.cJS({providers:[ta],imports:[t.ez,F.BQ]}),ft})();var ma=s(20469),bn=s(84531),ha=s(74351),po=s(27579);let ja=(()=>{class ft{}return ft.\u0275fac=function(it){return new(it||ft)},ft.\u0275mod=T.oAB({type:ft}),ft.\u0275inj=T.cJS({imports:[bn.IR]}),ft})(),ba=(()=>{class ft{constructor(it,cr){(0,t.PM)(cr)&&!it&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(it,cr=[]){return{ngModule:ft,providers:it.serverLoaded?[{provide:bn.WU,useValue:{...bn.g5,...it}},{provide:bn.Bs,useValue:cr,multi:!0},{provide:bn.wY,useValue:!0}]:[{provide:bn.WU,useValue:{...bn.g5,...it}},{provide:bn.Bs,useValue:cr,multi:!0}]}}}return ft.\u0275fac=function(it){return new(it||ft)(T.LFG(bn.wY),T.LFG(T.Lbi))},ft.\u0275mod=T.oAB({type:ft}),ft.\u0275inj=T.cJS({imports:[po.ae,ha.aT,ja,po.ae,ha.aT,ja]}),ft})();var Ba=s(44939),Ho=s(24e3),Fo=s(58153);let fs=(()=>{class ft{}return ft.\u0275fac=function(it){return new(it||ft)},ft.\u0275mod=T.oAB({type:ft}),ft.\u0275inj=T.cJS({imports:[t.ez,e.D8,d.Zh,l.FA,r.wp,c.x4,E.Xo,m.uw,v.KP,C.u5,C.UX,n.rP,i.jT,P.SJ,I.g0,q.IF,D.t,M.To,Ne,We.gR,ze.T5,we.Nn,Pt,Me.yu,ut.vV,Cn,Wn.yD,zn.Ps,ti.UK,yr.jc,F.si,Gn,Kt.Is,Ar.y,ie.AV,Ve.gf,Ei,ma.p0,ba,Ba.Iq,Ho.Ky,wt.eL,Ve.gf,e.D8,d.Zh,l.FA,r.wp,c.x4,E.Xo,m.uw,v.KP,C.u5,C.UX,n.rP,i.jT,P.SJ,I.g0,q.IF,D.t,M.To,Ne,We.gR,ze.T5,we.Nn,Pt,Me.yu,ut.vV,Cn,Wn.yD,zn.Ps,ti.UK,yr.jc,F.si,Gn,Kt.Is,Ar.y,ie.AV,Ve.gf,Ei,ma.p0,ba,Ba.Iq,Ho.Ky,wt.eL,Fo.U8]}),ft})()},13718:(St,be,s)=>{"use strict";s.r(be),s.d(be,{AccountModule:()=>Re});var t=s(17774),e=s(64886),d=s(48046),l=s(15645),r=s(94276);class c{constructor(Nt,Pt,Vt){this.email=Nt,this.password=Pt,this.iv=Vt}}var E=s(9206),m=s(73991),v=s(21704),C=s(76037),n=s(4692),i=s(54449),P=s(43732),I=s(43073),q=s(45379),D=s(81560),M=s(27579),T=s(74351);function F(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-error"),m.SDv(1,25),m.qZA())}function le(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-icon",26),m._UZ(1,"mat-spinner",27),m.qZA())}let V=(()=>{class Xe{constructor(Pt,Vt,Jt){this._router=Pt,this._accountService=Vt,this._notificationService=Jt,this.hide=!0,this.isLoginInProgress=!1,this.isLoading=!1,this.emailAddressPlaceholder="Adresa E-Po\u0161te",this.passwordPlaceholder="Lozinka"}ngOnInit(){this.loginForm=new l.nJ({email:new l.p4("",[l.kI.required,l.kI.email,l.kI.pattern("^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$")]),password:new l.p4("",[l.kI.required])})}login(){var Pt=this;return(0,d.Z)(function*(){if(Pt.isLoginInProgress)return;Pt.isLoginInProgress=!0,Pt.isLoading=!0;const{ciphertext:Vt,iv:Jt}=yield Pt._accountService.encryptSymmetric(Pt.loginForm.value.password,E.N.PASSWORD_ENCRYPTION_KEY);if(Pt.loginUser=new c(Pt.email=Pt.loginForm?.controls.email.value.toLowerCase(),Pt.password=Vt,Pt.iv=Jt),Pt.loginForm.invalid)return Pt._notificationService.openNotification("E-mail neispravan.","OK","error"),Pt.isLoading=!1,void(Pt.isLoginInProgress=!1);Pt._accountService.login(Pt.loginUser),Pt._accountService.loggedInUpdate.pipe((0,r.T)(1)).subscribe({next:()=>{Pt.isLoading=!1,Pt.isLoginInProgress=!1},error:kt=>{Pt.isLoading=!1,Pt.isLoginInProgress=!1,Pt._notificationService.openNotification("Login failed","OK","error")}})})()}routeToRegistration(){this._router.navigate(["account/register"])}routeToForgotPassword(){this._router.navigate(["account/forgot-password"])}}return Xe.\u0275fac=function(Pt){return new(Pt||Xe)(m.Y36(e.F0),m.Y36(v.B),m.Y36(C.g))},Xe.\u0275cmp=m.Xpm({type:Xe,selectors:[["app-login"]],decls:34,vars:9,consts:function(){let Nt,Pt,Vt,Jt,kt,Me,ut,nt;return Nt="Prijavi Se",Pt="Adresa E-po\u0161te",Vt="Lozinka",Jt="Zaboravili ste lozinku? Kliknite ovdje.",kt="Prijava",Me="Nema jo\u0161 ra\u010Duna na WhyDonate?",ut="Prijavite se ovdje.",nt="Nevaljana adresa e-po\u0161te.",[["ngClass","p-xxl","ngClass.xs","p-l","fxFlex","100","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center start","fxLayoutAlign.xs","start center"],["fxFlex","43%","fxFlex.xs","100%",1,"mat-elevation-z1"],["fxLayout","column"],["fxLayout.xs","row"],[1,"cypress"],Nt,[3,"formGroup"],["appearance","outline",1,"full-width"],Pt,["required","","matInput","","formControlName","email","id","loginEmail",3,"placeholder"],[4,"ngIf"],Vt,["required","","autocomplete","disabled","id","loginPassword","matInput","","formControlName","password","type","password",3,"placeholder"],["passwordField",""],["mat-icon-button","","type","button","matSuffix","",3,"click"],["fxLayout","row","fxLayoutAlign","space-between center","fxLayoutGap","2%"],["id","forgotPassword",1,"link-decorate-style","pointer",3,"click"],Jt,["mat-flat-button","","color","accent","id","userLogin",3,"disabled","click"],kt,["class","m-l-xs",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start baseline","fxLayoutGap","2%"],Me,["id","registerButton",1,"link-decorate-style","pointer",3,"click"],ut,nt,[1,"m-l-xs"],["color","accent","diameter","20"]]},template:function(Pt,Vt){if(1&Pt){const Jt=m.EpF();m.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-content",2)(3,"div",3)(4,"h1",4),m.SDv(5,5),m.qZA()(),m.TgZ(6,"form",6)(7,"mat-form-field",7)(8,"mat-label"),m.SDv(9,8),m.qZA(),m._UZ(10,"input",9),m.YNc(11,F,2,0,"mat-error",10),m.qZA(),m.TgZ(12,"mat-form-field",7)(13,"mat-label"),m.SDv(14,11),m.qZA(),m._UZ(15,"input",12,13),m.TgZ(17,"button",14),m.NdJ("click",function(){m.CHM(Jt);const Me=m.MAs(16);return m.KtG(Me.type="password"===Me.type?"text":"password")})("click",function(){return Vt.hide=!Vt.hide}),m.TgZ(18,"mat-icon"),m._uU(19),m.qZA()()(),m.TgZ(20,"div",15)(21,"a",16),m.NdJ("click",function(){return Vt.routeToForgotPassword()}),m.SDv(22,17),m.qZA(),m.TgZ(23,"button",18),m.NdJ("click",function(){return Vt.login()}),m.TgZ(24,"span"),m.SDv(25,19),m.qZA(),m.YNc(26,le,2,0,"mat-icon",20),m.qZA()()(),m._UZ(27,"br")(28,"br"),m.TgZ(29,"div",21)(30,"h4"),m.SDv(31,22),m.qZA(),m.TgZ(32,"a",23),m.NdJ("click",function(){return Vt.routeToRegistration()}),m.SDv(33,24),m.qZA()()()()()}2&Pt&&(m.xp6(6),m.Q6J("formGroup",Vt.loginForm),m.xp6(4),m.s9C("placeholder",Vt.emailAddressPlaceholder),m.xp6(1),m.Q6J("ngIf",Vt.loginForm.controls.email.errors),m.xp6(4),m.s9C("placeholder",Vt.passwordPlaceholder),m.xp6(2),m.uIk("aria-label","Hide password")("aria-pressed",Vt.hide),m.xp6(2),m.Oqu(Vt.hide?"visibility_off":"visibility"),m.xp6(4),m.Q6J("disabled",Vt.isLoading),m.xp6(3),m.Q6J("ngIf",Vt.isLoading))},dependencies:[t.mk,t.O5,n.nI,n.v_,n.$V,n.nX,i.k0,l._Y,l.Fj,l.JJ,l.JL,l.Q7,l.sg,l.u,P.S$,P.Qi,I.eB,q.Hw,D.sN,M.xw,M.SQ,M.Wh,M.yH,T.oO],styles:[".pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Xe})();var de=s(15994),ye=s.n(de),Ee=s(97974),Le=s(71749),ge=s(42456);class ue{constructor(Nt,Pt,Vt,Jt,kt,Me,ut,nt,Ht,pr,Lr,Kr,Cn){this.first_name=Nt,this.last_name=Pt,this.language_code=Vt,this.email=Jt,this.password=kt,this.iv=Me,this.type=ut,pr&&(this.phone_number=pr),this.name=nt,this.previous_path=Ht,Lr&&(this.image=Lr,this.image_name=Kr,this.image_type=Cn)}}var ee=s(95195),se=s(45710),W=s(24510),L=s(46480),he=s(68550),_e=s(69621),Z=s(61551);function Te(Xe,Nt){1&Xe&&m._UZ(0,"img",69)}function w(Xe,Nt){if(1&Xe&&m._UZ(0,"img",70),2&Xe){const Pt=m.oxw();m.Q6J("src",Pt.croppedImage,m.LSH)}}function k(Xe,Nt){1&Xe&&(m.TgZ(0,"span"),m.SDv(1,71),m.qZA())}function x(Xe,Nt){1&Xe&&(m.TgZ(0,"span"),m.SDv(1,72),m.qZA())}function z(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-error"),m.SDv(1,73),m.qZA())}function j(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-error"),m.SDv(1,74),m.qZA())}function Ne(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-error"),m.SDv(1,75),m.qZA())}function tt(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-error"),m.SDv(1,76),m.qZA())}function We(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-error"),m.SDv(1,77),m.qZA())}function ze(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-error"),m.SDv(1,78),m.qZA())}function we(Xe,Nt){if(1&Xe&&(m.TgZ(0,"mat-error"),m._uU(1),m.qZA()),2&Xe){const Pt=m.oxw();m.xp6(1),m.hij(" ",Pt.getErrorMessage()," ")}}function Ye(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-icon"),m._uU(1,"visibility_off"),m.qZA())}function te(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-icon"),m._uU(1,"visibility"),m.qZA())}function Se(Xe,Nt){if(1&Xe&&(m.TgZ(0,"mat-error"),m.SDv(1,79),m.qZA()),2&Xe){const Pt=m.oxw();m.xp6(1),m.pQV(Pt.getPasswordErrorMessage()),m.QtT(1)}}function ke(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-error"),m.SDv(1,80),m.qZA())}function Ge(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-error"),m.SDv(1,85),m.qZA())}function Tt(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-error"),m.SDv(1,86),m.qZA())}function Et(Xe,Nt){if(1&Xe&&(m.TgZ(0,"mat-form-field",29)(1,"mat-label"),m.SDv(2,81),m.qZA(),m._UZ(3,"input",82,83),m.TgZ(5,"mat-hint",34),m._uU(6),m.TgZ(7,"span"),m.SDv(8,84),m.qZA()(),m.YNc(9,Ge,2,0,"mat-error",23),m.YNc(10,Tt,2,0,"mat-error",23),m.qZA()),2&Xe){const Pt=m.MAs(4),Vt=m.oxw();m.xp6(6),m.hij("",Pt.value.length," / 1-100 "),m.xp6(3),m.Q6J("ngIf",null==Vt.registrationForm.controls.organisation_name.errors?null:Vt.registrationForm.controls.organisation_name.errors.noEnglishCharacter),m.xp6(1),m.Q6J("ngIf",Vt.registrationForm.controls.organisation_name.errors&&!(null!=Vt.registrationForm.controls.organisation_name.errors&&Vt.registrationForm.controls.organisation_name.errors.noEnglishCharacter))}}function H(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-error"),m.SDv(1,87),m.qZA())}function Y(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-error"),m.SDv(1,88),m.qZA())}function S(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-icon",89),m._UZ(1,"mat-spinner",90),m.qZA())}let K=(()=>{class Xe{constructor(Pt,Vt,Jt,kt,Me,ut,nt,Ht){this._accountService=Pt,this._router=Vt,this._apiService=Jt,this.notificationService=kt,this.formBuilder=Me,this.sanitizer=ut,this._customBrandingService=nt,this.analyticsService=Ht,this.isPersonal=!0,this.isOrganization=!1,this.imageChangedEvent="",this.croppedImage="",this.show=!1,this.contactNamePlaceholder="Broj Telefona (opcionalno)",this.currentLocale="",this.homeUrl="https://whydonate.com",this.termsAndCondition="uvjeti-i-odredbe",this.onlinePaymentHref="https://onlinepaymentplatform.com/en/terms-policies",this.registerFirstName="Prvi Ime",this.registerLastName="Prezime",this.registerEmailAddress="Adresa E-Po\u0161te",this.registerPassword="Lozinka",this.registerRetypePassword="Ponovite Lozinku",this.blobToFile=(pr,Lr)=>{let Kr=pr;return Kr.lastModified=new Date,Kr.name=Lr,pr},this.registrationForm=new l.nJ({organisation_name:new l.p4("",[l.kI.required,l.kI.minLength(1),l.kI.maxLength(100),this.validateContainsEnglishCharacters,l.kI.pattern(/^[^\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FAC0}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}]*$/u),pr=>/^\s*$/.test(pr.value||"")?{whitespace:!0}:null]),image:new l.p4("",[]),first_name:new l.p4("",[l.kI.required,l.kI.minLength(1),l.kI.maxLength(100),this.validateContainsEnglishCharacters,l.kI.pattern(/^[^\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FAC0}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}]*$/u),pr=>/^\s*$/.test(pr.value||"")?{whitespace:!0}:null]),last_name:new l.p4("",[l.kI.required,l.kI.minLength(1),l.kI.maxLength(100),this.validateContainsEnglishCharacters,l.kI.pattern(/^[^\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FAC0}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}]*$/u),pr=>/^\s*$/.test(pr.value||"")?{whitespace:!0}:null]),email:new l.p4("",[l.kI.required,l.kI.email,l.kI.pattern("^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$")],[this.isEmailUnique()]),password:new l.p4("",[l.kI.required,l.kI.minLength(8),l.kI.maxLength(100),l.kI.pattern("^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,}$")]),password_confirm:new l.p4("",[l.kI.required],[this.passwordsMustMatch()]),contactNumber:new l.p4("",[l.kI.minLength(10),l.kI.maxLength(20),l.kI.pattern("^[0-9]*$")])})}ngOnInit(){!1===this.isOrganization&&this.registrationForm?.removeControl("organisation_name"),this.currentLocale=this._accountService.getLocaleId(),this.termsHref="nl"==this.currentLocale?`${this.homeUrl}/${this.termsAndCondition}`:`${this.homeUrl}/${this.currentLocale}/${this.termsAndCondition}`}getSafeResourceUrl(Pt){return this.sanitizer.bypassSecurityTrustResourceUrl(Pt)}registerMethod(){var Pt=this;return(0,d.Z)(function*(){try{if(Pt.registrationForm.invalid)return void Pt.notificationService.openNotification("Prijavljivanje nije uspjelo, provjerite unos ili kontaktirajte na\u0161u korisni\u010Dku podr\u0161ku.","","error");const Vt=Pt.isOrganization?"organization":"personal",Jt=ge.w.getPreviousPath()||"",{ciphertext:kt,iv:Me}=yield Pt._accountService.encryptSymmetric(Pt.registrationForm.value.password,E.N.PASSWORD_ENCRYPTION_KEY);let ut;ut=Pt.croppedImage.toString().length>0?new ue(Pt.registrationForm.value.first_name,Pt.registrationForm.value.last_name,Pt._accountService.getLocaleId(),Pt.registrationForm.value.email,kt,Me,Vt,Pt.registrationForm.value.organisation_name,Jt,Pt.registrationForm.value.contactNumber||" ",Pt.croppedImage,Pt.imageFile&&Pt.imageFile.name,Pt.imageFile&&Pt.imageFile.type):new ue(Pt.registrationForm.value.first_name,Pt.registrationForm.value.last_name,Pt._accountService.getLocaleId(),Pt.registrationForm.value.email,kt,Me,Vt,Pt.registrationForm.value.organisation_name,Jt,Pt.registrationForm.value.contactNumber||" "),Pt.isLoading=!0,Pt._accountService.register(ut).subscribe(nt=>{200===nt.status||201===nt.status?(new Le.n(nt.data.id,new Ee.C(nt.data.jwt,""),nt.is_email_verified),ge.w.setUserlanguage(Pt._accountService.getLocaleId()),Pt._accountService.getProfileId().subscribe(pr=>{Pt.analyticsService.fireAnalyticsEvent("New_User_Registered",{user_id:pr?.data?.profile?.user_id,profile_id:pr?.data?.profile?.id})}),Pt._router.navigate(["account/registration-complete",{email:Pt.registrationForm.value.email}]),Pt.isLoading=!1):Pt.notificationService.openNotification("Do\u0161lo je do pogre\u0161ke.","","error")},Pt._apiService.handleError)}catch(Vt){console.error("Error during registration:",Vt)}})()}fileChangeEvent(Pt,Vt){if(this.imageChangedEvent=Pt,this.imageFile=Pt.target.files[0],"image/jpg"!=this.imageFile?.type?.toString().toLocaleLowerCase()&&"image/jpeg"!=this.imageFile?.type?.toString().toLocaleLowerCase()&&"image/png"!=this.imageFile?.type?.toString().toLocaleLowerCase()&&"image/webp"!=this.imageFile?.type?.toString().toLocaleLowerCase()){if(!this.imageFile?.name?.includes(".heic")&&!this.imageFile?.name?.includes(".HEIC"))return this.notificationService.openNotification("Upsupported image format","OK","error"),void(this.imageChangedEvent=null);{let Jt=this.imageFile,kt=Jt,Me=Jt;ye()({blob:kt,toType:"image/jpeg",quality:0}).then(ut=>{let nt=Jt.name.replace(/\.[^/.]+$/,".jpg");Me=this.blobToFile(ut,nt),this.imageFile=Me,this.getBase64(this.imageFile)})}}}getBase64(Pt){let Vt=new FileReader;Vt.readAsDataURL(Pt),Vt.onload=()=>{this.imageBase64=Vt.result},Vt.onerror=function(Jt){console.error("Error: ",Jt)}}imageCropped(Pt){this.croppedImage=Pt.base64}imageLoaded(){}cropperReady(){}loadImageFailed(){}dataURItoBlob(Pt){for(var Vt=atob(Pt.toString().split(",")[1]),Jt=new ArrayBuffer(Vt.length),kt=new Uint8Array(Jt),Me=0;Me<Vt.length;Me++)kt[Me]=Vt.charCodeAt(Me);var ut=new Blob([kt],{type:"image/jpeg"});return new File([ut],"blob",{type:"image/jpeg;charset=utf-8"})}isEmailUnique(){return Pt=>new Promise((Jt,kt)=>{this._accountService.isEmailInUse(Pt.value).subscribe(Me=>{Jt(Me.data.email_in_use?{emailInUse:!0}:null)},()=>{Jt({emailInUse:!0})})})}passwordsMustMatch(){return Pt=>{const Vt=this.registrationForm.get("password")?.value;return(0,ee.of)(Vt===Pt.value?null:{passwordMismatch:!0})}}switchRegisterType(Pt){"personal"==Pt?(this.show=!1,this.registrationForm.removeControl("organisation_name"),this.isPersonal=!0,this.isOrganization=!1):(this.show=!0,this.registrationForm.addControl("organisation_name",this.formBuilder.control("",{validators:[l.kI.required,l.kI.minLength(1),l.kI.maxLength(100),this.validateContainsEnglishCharacters,l.kI.pattern(/^[^\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FAC0}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}]*$/u),Vt=>/^\s*$/.test(Vt.value||"")?{whitespace:!0}:null]})),this.isOrganization=!0,this.isPersonal=!1)}togglePassword(){this.fieldPassword=!this.fieldPassword}routeToLogin(){this._router.navigate(["account/login"])}getErrorMessage(){return this.registrationForm?.controls.email.hasError("required")?"Potrebna je adresa e-po\u0161te.":this.registrationForm?.controls.email.hasError("emailInUse")?"Email adresa je ve\u0107 u upotrebi.":""}getPasswordErrorMessage(){return this.registrationForm?.controls.password.hasError("required")?"Najmanje 8 znamenki i mora sadr\u017Eavati 1 veliko slovo i 1 broj.":this.registrationForm?.controls.password.hasError("pattern")?"Minimum of 8 digits and must contain 1 uppercase and 1 number.":""}routeToTerms(){window.open(this.termsHref,"_blank")}routeToOnlinePayment(){window.open(this.onlinePaymentHref,"_blank")}validateContainsEnglishCharacters(Pt){const Jt=(Pt.value||"").slice(0,22);return Jt&&!/[A-Za-z]/.test(Jt)?{noEnglishCharacter:!0}:null}}return Xe.\u0275fac=function(Pt){return new(Pt||Xe)(m.Y36(v.B),m.Y36(e.F0),m.Y36(se.t),m.Y36(C.g),m.Y36(l.QS),m.Y36(W.H7),m.Y36(L.C),m.Y36(he.y))},Xe.\u0275cmp=m.Xpm({type:Xe,selectors:[["app-registration-form"]],decls:121,vars:37,consts:function(){let Nt,Pt,Vt,Jt,kt,Me,ut,nt,Ht,pr,Lr,Kr,Cn,Wn,zn,ti,yr,Jr,wt,nr,tn,rn,vn,Gn,Yn,Dn,Ti,Ni,ci,Kt,Ar,ie,Ve,Mt,tr,kr,mn;return Nt="Stvori Ra\u010Dun",Pt="Prijavi se kao",Vt="Pojedinac",Jt="Organizacija",kt="JPG, PNG ili WebP Maksimalno 5 Mb.",Me="Prvo ime",ut="Znaci",nt="Prezime",Ht="Znaci",pr="Adresa e-po\u0161te",Lr="Lozinka",Kr="Znaci",Cn="Potvrdi lozinku",Wn="Znaci",zn="Broj telefona (opcionalno)",ti="Znaci",yr="Prijavom se sla\u017Eete s Uvjetima i odredbama",Jr="WhyDonate",wt="Registrirajte se",nr="Imate li ve\u0107 ra\u010Dun?",tn="Prijava",rn="Prenesi logo",vn="Prenesi profilnu fotografiju",Gn="Mora imati englesko slovo u prva 22 znaka",Yn="Mora biti izme\u0111u 1 i 100 znakova.",Dn="Samo slova su dopu\u0161tena.",Ti="Mora imati englesko slovo u prva 22 znaka",Ni="Mora biti izme\u0111u 1 i 100 znakova.",ci="Samo slova su dopu\u0161tena.",Kt="Minimalno 8 znamenki i mora sadr\u017Eavati 1 veliko slovo i 1 broj.",Ar="Lozinke se ne podudaraju.",ie="Organizacijsko ime",Ve="Znaci",Mt="Mora imati englesko slovo u prva 22 znaka",tr="Mora biti izme\u0111u 1 i 100 znakova.",kr="Mora biti izme\u0111u 10 i 20 znakova",mn="Samo su brojevi dopu\u0161teni.",[["fxFlex","100%","fxLayout","row","fxLayoutAlign","center center","fxLayoutAlign.xs","center center","ngClass","p-xxl","ngClass.xs","p-l"],["fxFlex","100%","fxLayout","column","fxLayoutAlign","center center","fxLayoutAlign.xs","center center","fxLayoutGap","5%"],[1,"full-width",3,"formGroup"],["fxFlex","100%","fxLayout","row","fxLayoutAlign","center center","fxLayoutAlign.xs","center center"],["fxFlex","62","fxFlex.xs","100","fxFlex.md","80",1,"mat-elevation-z1"],["fxLayout","column","fxLayoutAlign","center start","fxLayoutAlign.xs","center start","fxLayoutGap","2%"],["fxFlex","100%","fxLayout","row"],["fxFlex","100%","fxLayout","column"],Nt,Pt,["aria-label","Register as",1,"button-toggle-group"],["value","personal","checked","true","color","primary",1,"button-button-style",3,"change"],Vt,["id","registerOrganization","value","organisation","color","primary",1,"button-button-style",3,"change"],Jt,["fxFlex","100%","fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","5%"],["fxLayout","column","fxLayout.xs","row","fxLayoutGap","10%","fxLayoutGap.xs","5%","fxLayoutAlign","center center"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/bydefault_user/public",4,"ngIf"],[3,"src",4,"ngIf"],["fxFlex","100%","fxLayout","column","fxLayoutAlign","baseline start","fxLayoutGap.xs","5%"],["hidden","","id","uploadLogoStyle","type","file","formControlName","image","accept","image/png, image/jpeg, image/jpg, image/webp, .heic",3,"change"],["fileUpload",""],["mat-stroked-button","","color","accent","id","profileImage",3,"click"],[4,"ngIf"],kt,["fxFlex","100%","fxLayout","row","fxFlex","100%","fxLayoutAlign","start start","fxLayoutGap","3%",1,"image-preview"],[3,"containWithinAspectRatio","imageChangedEvent","maintainAspectRatio","roundCropper","imageBase64","imageCropped","imageLoaded","cropperReady","loadImageFailed"],["fxFill","","fxFlex","100%","fxFlex.xs","100","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center center","fxLayoutGap","3%"],["fxFill","","fxFlex","50%","fxLayout","column","fxLayout.xs","row","fxLayoutAlign","center center","fxLayoutGap","5%","fxLayoutGap.md","2%","fxLayoutGap.xs","0"],["appearance","outline",1,"full-width"],["data-test","add-name"],Me,["required","","matInput","","formControlName","first_name","id","registerFirstName",1,"first",3,"placeholder"],["firstName",""],["align","end"],ut,["fxFill","","fxFlex","50%","fxLayout","column","fxLayout.xs","row","fxLayoutAlign","center center"],nt,["required","","matInput","","formControlName","last_name","id","registerLastName",1,"last",3,"placeholder"],["lastName",""],Ht,pr,["required","","matInput","","type","email","formControlName","email","id","registerEmail",3,"placeholder"],Lr,["required","","matInput","","type","password","formControlName","password","id","registerPassword",3,"placeholder"],["passwordField",""],["mat-icon-button","","type","button","matSuffix","",3,"click"],Kr,Cn,["required","","matInput","","type","password","formControlName","password_confirm","id","registerRetypePassword",3,"placeholder","paste"],["retypePassword",""],Wn,["appearance","outline","class","full-width",4,"ngIf"],zn,["matInput","","formControlName","contactNumber","id","registerContactNumber",3,"placeholder"],["contactNumber",""],ti,["fxFlexFill","","fxFlex","100%","fxLayout","row","fxLayoutAlign","space-between center"],yr,["id","terms",1,"link-decorate-style","pointer",3,"click"],Jr,["fxLayoutAlign.xs","center center"],["mat-flat-button","","color","accent","id","registerButton",3,"disabled","click"],wt,["class","m-l-xs",4,"ngIf"],["fxFlex","100%","fxLayout","row","fxLayoutAlign","start center"],nr,["id","loginButton",1,"link-decorate-style","pointer",3,"click"],tn,["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/bydefault_user/public"],[3,"src"],rn,vn,Gn,Yn,Dn,Ti,Ni,ci,Kt,Ar,ie,["required","","matInput","","placeholder","Organization name","formControlName","organisation_name","id","registerOrganizationInput"],["organizationName",""],Ve,Mt,tr,kr,mn,[1,"m-l-xs"],["color","accent","diameter","20"]]},template:function(Pt,Vt){if(1&Pt){const Jt=m.EpF();m.TgZ(0,"div",0)(1,"div",1)(2,"form",2)(3,"div",3)(4,"mat-card",4)(5,"mat-card-content",5)(6,"div",6)(7,"div",7)(8,"h2"),m.SDv(9,8),m.qZA()()(),m.TgZ(10,"div",6)(11,"div",7)(12,"mat-label"),m.SDv(13,9),m.qZA()()(),m.TgZ(14,"div",6)(15,"div",7)(16,"mat-button-toggle-group",10)(17,"mat-button-toggle",11),m.NdJ("change",function(Me){return Vt.switchRegisterType(Me.value)}),m.SDv(18,12),m.qZA(),m.TgZ(19,"mat-button-toggle",13),m.NdJ("change",function(Me){return Vt.switchRegisterType(Me.value)}),m.SDv(20,14),m.qZA()()()(),m.TgZ(21,"div",15)(22,"div",16),m.YNc(23,Te,1,0,"img",17),m.YNc(24,w,1,1,"img",18),m.qZA(),m.TgZ(25,"div",19)(26,"input",20,21),m.NdJ("change",function(Me){return Vt.fileChangeEvent(Me)}),m.qZA(),m.TgZ(28,"a",22),m.NdJ("click",function(){m.CHM(Jt);const Me=m.MAs(27);return m.KtG(Me.click())}),m.YNc(29,k,2,0,"span",23),m.YNc(30,x,2,0,"span",23),m.qZA(),m.TgZ(31,"h6"),m.SDv(32,24),m.qZA()()(),m.TgZ(33,"div",25)(34,"image-cropper",26),m.NdJ("imageCropped",function(Me){return Vt.imageCropped(Me)})("imageLoaded",function(){return Vt.imageLoaded()})("cropperReady",function(){return Vt.cropperReady()})("loadImageFailed",function(){return Vt.loadImageFailed()}),m.qZA()(),m.TgZ(35,"div",27)(36,"div",28)(37,"mat-form-field",29)(38,"mat-label",30),m.SDv(39,31),m.qZA(),m._UZ(40,"input",32,33),m.TgZ(42,"mat-hint",34),m._uU(43),m.TgZ(44,"span"),m.SDv(45,35),m.qZA()(),m.YNc(46,z,2,0,"mat-error",23),m.YNc(47,j,2,0,"mat-error",23),m.YNc(48,Ne,2,0,"mat-error",23),m.qZA()(),m.TgZ(49,"div",36)(50,"mat-form-field",29)(51,"mat-label"),m.SDv(52,37),m.qZA(),m._UZ(53,"input",38,39),m.TgZ(55,"mat-hint",34),m._uU(56),m.TgZ(57,"span"),m.SDv(58,40),m.qZA()(),m.YNc(59,tt,2,0,"mat-error",23),m.YNc(60,We,2,0,"mat-error",23),m.YNc(61,ze,2,0,"mat-error",23),m.qZA()()(),m.TgZ(62,"mat-form-field",29)(63,"mat-label"),m.SDv(64,41),m.qZA(),m._UZ(65,"input",42),m.YNc(66,we,2,1,"mat-error",23),m.qZA(),m.TgZ(67,"mat-form-field",29)(68,"mat-label"),m.SDv(69,43),m.qZA(),m._UZ(70,"input",44,45),m.TgZ(72,"button",46),m.NdJ("click",function(){m.CHM(Jt);const Me=m.MAs(71);return m.KtG(Me.type="password"===Me.type?"text":"password")}),m.YNc(73,Ye,2,0,"mat-icon",23),m.YNc(74,te,2,0,"mat-icon",23),m.qZA(),m.TgZ(75,"mat-hint",34),m._uU(76),m.TgZ(77,"span"),m.SDv(78,47),m.qZA()(),m.YNc(79,Se,2,1,"mat-error",23),m.qZA(),m.TgZ(80,"mat-form-field",29)(81,"mat-label"),m.SDv(82,48),m.qZA(),m.TgZ(83,"input",49,50),m.NdJ("paste",function(){return!1}),m.qZA(),m.TgZ(85,"mat-hint",34),m._uU(86),m.TgZ(87,"span"),m.SDv(88,51),m.qZA()(),m.YNc(89,ke,2,0,"mat-error",23),m.qZA(),m.YNc(90,Et,11,3,"mat-form-field",52),m.TgZ(91,"mat-form-field",29)(92,"mat-label"),m.SDv(93,53),m.qZA(),m._UZ(94,"input",54,55),m.TgZ(96,"mat-hint",34),m._uU(97),m.TgZ(98,"span"),m.SDv(99,56),m.qZA()(),m.YNc(100,H,2,0,"mat-error",23),m.YNc(101,Y,2,0,"mat-error",23),m.qZA(),m.TgZ(102,"div",57)(103,"p")(104,"span"),m.SDv(105,58),m.qZA(),m._UZ(106,"br"),m.TgZ(107,"a",59),m.NdJ("click",function(){return Vt.routeToTerms()}),m.TgZ(108,"span"),m.SDv(109,60),m.qZA()()(),m.TgZ(110,"div",61)(111,"button",62),m.NdJ("click",function(){return Vt.registerMethod()}),m.TgZ(112,"span"),m.SDv(113,63),m.qZA(),m.YNc(114,S,2,0,"mat-icon",64),m.qZA()()(),m.TgZ(115,"div",65)(116,"span"),m.SDv(117,66),m.qZA(),m._uU(118," \xa0 "),m.TgZ(119,"a",67),m.NdJ("click",function(){return Vt.routeToLogin()}),m.SDv(120,68),m.qZA()()()()()()()()}if(2&Pt){const Jt=m.MAs(41),kt=m.MAs(54),Me=m.MAs(71),ut=m.MAs(84),nt=m.MAs(95);m.xp6(2),m.Q6J("formGroup",Vt.registrationForm),m.xp6(21),m.Q6J("ngIf",!Vt.croppedImage),m.xp6(1),m.Q6J("ngIf",Vt.croppedImage),m.xp6(5),m.Q6J("ngIf",Vt.show),m.xp6(1),m.Q6J("ngIf",!Vt.show),m.xp6(4),m.Q6J("containWithinAspectRatio",!0)("imageChangedEvent",Vt.imageChangedEvent)("maintainAspectRatio",!0)("roundCropper",!0)("imageBase64",Vt.imageBase64),m.xp6(6),m.s9C("placeholder",Vt.registerFirstName),m.xp6(3),m.hij("",Jt.value.length," / 1-100 "),m.xp6(3),m.Q6J("ngIf",null==Vt.registrationForm.controls.first_name.errors?null:Vt.registrationForm.controls.first_name.errors.noEnglishCharacter),m.xp6(1),m.Q6J("ngIf",Vt.registrationForm.controls.first_name.errors&&!(null!=Vt.registrationForm.controls.first_name.errors&&Vt.registrationForm.controls.first_name.errors.noEnglishCharacter)),m.xp6(1),m.Q6J("ngIf",Vt.registrationForm.controls.first_name.errors&&Vt.registrationForm.controls.first_name.errors.pattern),m.xp6(5),m.s9C("placeholder",Vt.registerLastName),m.xp6(3),m.hij("",kt.value.length," / 1-100 "),m.xp6(3),m.Q6J("ngIf",null==Vt.registrationForm.controls.last_name.errors?null:Vt.registrationForm.controls.last_name.errors.noEnglishCharacter),m.xp6(1),m.Q6J("ngIf",Vt.registrationForm.controls.last_name.errors&&!Vt.registrationForm.controls.last_name.errors.noEnglishCharacter),m.xp6(1),m.Q6J("ngIf",Vt.registrationForm.controls.last_name.errors&&Vt.registrationForm.controls.last_name.errors.pattern),m.xp6(4),m.s9C("placeholder",Vt.registerEmailAddress),m.xp6(1),m.Q6J("ngIf",Vt.registrationForm.controls.email.invalid),m.xp6(4),m.s9C("placeholder",Vt.registerPassword),m.xp6(3),m.Q6J("ngIf","password"===Me.type),m.xp6(1),m.Q6J("ngIf","text"===Me.type),m.xp6(2),m.hij("",Me.value.length," / 8-100 "),m.xp6(3),m.Q6J("ngIf",Vt.registrationForm.controls.password.invalid),m.xp6(4),m.s9C("placeholder",Vt.registerRetypePassword),m.xp6(3),m.hij("",ut.value.length," / 8-100 "),m.xp6(3),m.Q6J("ngIf",Vt.registrationForm.controls&&Vt.registrationForm.controls.password_confirm.errors),m.xp6(1),m.Q6J("ngIf",Vt.isOrganization),m.xp6(4),m.s9C("placeholder",Vt.contactNamePlaceholder),m.xp6(3),m.hij("",nt.value.length," / 10-20 "),m.xp6(3),m.Q6J("ngIf",!(null!=Vt.registrationForm.controls.contactNumber.errors&&Vt.registrationForm.controls.contactNumber.errors.pattern)&&((null==Vt.registrationForm.controls.contactNumber.errors?null:Vt.registrationForm.controls.contactNumber.errors.maxlength)||(null==Vt.registrationForm.controls.contactNumber.errors?null:Vt.registrationForm.controls.contactNumber.errors.minlength))),m.xp6(1),m.Q6J("ngIf",Vt.registrationForm.controls.contactNumber.errors&&Vt.registrationForm.controls.contactNumber.errors.pattern),m.xp6(10),m.Q6J("disabled",Vt.isLoading||Vt.registrationForm.invalid),m.xp6(3),m.Q6J("ngIf",Vt.isLoading)}},dependencies:[t.mk,t.O5,n.nI,n.v_,n.pH,n.$V,n.nX,i.k0,l._Y,l.Fj,l.JJ,l.JL,l.Q7,l.sg,l.u,P.S$,P.Qi,I.eB,I.Nr,_e.A9,_e.Yi,q.Hw,D.sN,M.xw,M.SQ,M.Wh,M.s9,M.yH,T.oO,Z.ap],styles:["#uploadLogoStyle[_ngcontent-%COMP%]{display:none}img[_ngcontent-%COMP%]{width:100px;height:100px;-webkit-border-radius:125px}.pointer[_ngcontent-%COMP%]{cursor:pointer}.image-preview[_ngcontent-%COMP%]{max-width:75vh}"]}),Xe})();function Q(Xe,Nt){1&Xe&&(m.TgZ(0,"span",15),m.SDv(1,16),m.qZA())}function B(Xe,Nt){1&Xe&&m._UZ(0,"mat-spinner",17)}let re=(()=>{class Xe{constructor(Pt,Vt,Jt,kt){this._router=Pt,this.service=Vt,this._apiService=Jt,this.notificationService=kt,this.emailAddressPlaceholder="Adresa E-Po\u0161te"}ngOnInit(){this.forgotForm=new l.nJ({email:new l.p4("",[l.kI.required,l.kI.email,l.kI.pattern("^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$")])})}forgotPassword(){let Pt={email:this.forgotForm.get("email")?.value};this.forgotForm.invalid?alert("Invalid E-mail"):(this.isLoading=!0,this.service.forgotPassword(Pt).subscribe(Vt=>{1==Vt.data.invalid_user?this.notificationService.openNotification("Adresa e-po\u0161te ne postoji.","OK","error"):this.notificationService.openNotification("Email je uspje\u0161no poslan.","OK","success"),this.isLoading=!1},this._apiService.handleError))}routeToRegister(){this._router.navigate(["account/register"])}routeToLogin(){this._router.navigate(["account"])}}return Xe.\u0275fac=function(Pt){return new(Pt||Xe)(m.Y36(e.F0),m.Y36(v.B),m.Y36(se.t),m.Y36(C.g))},Xe.\u0275cmp=m.Xpm({type:Xe,selectors:[["app-forgot-password"]],decls:19,vars:5,consts:function(){let Nt,Pt,Vt,Jt,kt;return Nt="Ponovno Postavi lozinku",Pt="Primit \u0107ete e-po\u0161tu s poveznicom za resetiranje lozinke.",Vt="Adresa E-po\u0161te",Jt="Jo\u0161 nemate WhyDonate ra\u010Dun?" + "\ufffd#14\ufffd" + " Prijavite se besplatno" + "\ufffd/#14\ufffd" + ".",kt="Po\u0161alji E-po\u0161tu",[["ngClass","p-xxl","ngClass.xs","p-l","fxFlex","100","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center start","fxLayoutAlign.xs","start center"],["fxLayout","column","fxFlex","40"],Nt,Pt,[3,"formGroup"],["appearance","outline",1,"full-width",3,"formGroup"],Vt,["id","forgotPasswordInput","required","","type","email","matInput","","formControlName","email","required","",3,"placeholder"],["fxLayout","column-reverse","fxLayoutAlign","space-between"],["ngClass","p-t-xs"],Jt,["mat-button","","color","accent",3,"click"],["mat-flat-button","","color","accent",3,"click"],["id","forgotPasswordResend",4,"ngIf"],["color","primary","diameter","20",4,"ngIf"],["id","forgotPasswordResend"],kt,["color","primary","diameter","20"]]},template:function(Pt,Vt){1&Pt&&(m.TgZ(0,"div",0)(1,"div",1)(2,"h2"),m.SDv(3,2),m.qZA(),m.TgZ(4,"h5"),m.SDv(5,3),m.qZA(),m.TgZ(6,"form",4)(7,"mat-form-field",5)(8,"mat-label"),m.SDv(9,6),m.qZA(),m._UZ(10,"input",7),m.qZA(),m.TgZ(11,"div",8)(12,"div",9),m.tHW(13,10),m.TgZ(14,"a",11),m.NdJ("click",function(){return Vt.routeToRegister()}),m.qZA(),m.N_p(),m.qZA(),m.TgZ(15,"div")(16,"button",12),m.NdJ("click",function(){return Vt.forgotPassword()}),m.YNc(17,Q,2,0,"span",13),m.YNc(18,B,1,0,"mat-spinner",14),m.qZA()()()()()()),2&Pt&&(m.xp6(6),m.Q6J("formGroup",Vt.forgotForm),m.xp6(1),m.Q6J("formGroup",Vt.forgotForm),m.xp6(3),m.s9C("placeholder",Vt.emailAddressPlaceholder),m.xp6(7),m.Q6J("ngIf",!Vt.isLoading),m.xp6(1),m.Q6J("ngIf",Vt.isLoading))},dependencies:[t.mk,t.O5,n.v_,n.$V,i.k0,l._Y,l.Fj,l.JJ,l.JL,l.Q7,l.sg,l.u,I.eB,I.Nr,D.sN,M.xw,M.Wh,M.yH,T.oO]}),Xe})();function fe(Xe,Nt){if(1&Xe&&(m.TgZ(0,"mat-error"),m.SDv(1,17),m.qZA()),2&Xe){const Pt=m.oxw();m.xp6(1),m.pQV(Pt.getPasswordErrorMessage()),m.QtT(1)}}function qe(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-icon"),m._uU(1,"visibility_off"),m.qZA())}function $e(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-icon"),m._uU(1,"visibility"),m.qZA())}function et(Xe,Nt){if(1&Xe){const Pt=m.EpF();m.TgZ(0,"button",18),m.NdJ("click",function(){m.CHM(Pt);const Jt=m.oxw();return m.KtG(Jt.resetPasswordMethod(Jt.resetPasswordForm))}),m.SDv(1,19),m.qZA()}if(2&Xe){const Pt=m.oxw();m.Q6J("disabled",Pt.resetPasswordForm.invalid)}}function ot(Xe,Nt){1&Xe&&m._UZ(0,"mat-spinner",20)}let ct=(()=>{class Xe{constructor(Pt,Vt,Jt,kt,Me){this._accountService=Pt,this._apiService=Vt,this._router=Jt,this._route=kt,this._notificationService=Me,this.isTokenExpired=!1,this.isTokenValid=!1}ngOnInit(){this.resetPasswordForm=new l.nJ({password:new l.p4("",[l.kI.required,l.kI.minLength(8),l.kI.maxLength(100),l.kI.pattern("^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,}$")]),confirmPassword:new l.p4("",[l.kI.required],[this.passwordsShouldMatchValidator()])}),this._route.queryParams.subscribe(Pt=>{this.token=Pt.t,this.email=Pt.u,this.token?this.tokenValidationCheck():this._router.navigate(["/"])})}tokenValidationCheck(){this.checkTokenValidInProgress=!0,this._accountService.isResetPasswordTokenValid(this.email,this.token).subscribe(Pt=>{try{this.checkTokenValidInProgress=!1,Pt.data.token_verified||(this._notificationService.openNotification("Uspje\u0161no poslano.","OK","success"),this._router.navigate(["/"]))}catch{}},()=>{this.checkTokenValidInProgress=!1})}resetPasswordMethod(Pt){var Vt=this;return(0,d.Z)(function*(){if(Vt.resetPasswordForm.invalid)return void window.alert("Invalid password");let Jt=Pt.value;Jt.token=Vt.token,Jt.email=Vt.email;const{ciphertext:kt,iv:Me}=yield Vt._accountService.encryptSymmetric(Jt.password,E.N.PASSWORD_ENCRYPTION_KEY);Jt.password=kt,Jt.confirmPassword=kt,Jt.iv=Me,Vt.isLoading=!0,Vt._accountService.resetPassword(Jt).subscribe(ut=>{1==ut.data.password_updated&&(Vt._notificationService.openNotification("Uspje\u0161no poslano.","OK","success"),Vt._router.navigate(["account/login"])),Vt.isLoading=!1},Vt._apiService.handleError)})()}getPasswordErrorMessage(){return this.resetPasswordForm?.controls.password.hasError("required")?"Password is required":this.resetPasswordForm?.controls.password.hasError("pattern")?"Minimum 8 digit. Must contains 1 Uppercase, 1 number & 0 special characters":""}passwordsShouldMatchValidator(){return Pt=>{const Vt=this.resetPasswordForm.get("password")?.value;return(0,ee.of)(Vt===Pt.value?null:{passwordMismatch:!0})}}}return Xe.\u0275fac=function(Pt){return new(Pt||Xe)(m.Y36(v.B),m.Y36(se.t),m.Y36(e.F0),m.Y36(e.gz),m.Y36(C.g))},Xe.\u0275cmp=m.Xpm({type:Xe,selectors:[["app-reset-password"]],decls:24,vars:6,consts:function(){let Nt,Pt,Vt,Jt,kt,Me;return Nt="Poni\u0161ti Lozinku",Pt="Primit \u0107ete e-po\u0161tu s poveznicom za resetiranje lozinke.",Vt="Lozinka",Jt="Potvrdi lozinku",kt="Minimalno 8 znamenki i mora sadr\u017Eavati 1 veliko slovo i 1 broj.",Me="Spremi",[["ngClass","p-xxl","ngClass.sm","p-m","ngClass.xs","p-s","fxFlex","100","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center start","fxLayoutAlign.xs","start center",1,"h-100v"],["fxFlex","40","fxLayout","column"],Nt,[1,"mat-body-2"],Pt,[3,"formGroup"],["appearance","outline",1,"w-100"],Vt,["required","","autocomplete","disabled","id","password","matInput","","formControlName","password","type","password","placeholder","********"],[4,"ngIf"],Jt,["required","","autocomplete","disabled","id","confirmPassword","matInput","","formControlName","confirmPassword","type","password","placeholder","********"],["passwordField",""],["mat-icon-button","","type","button","matSuffix","",3,"click"],["fxLayout","row","fxLayoutAlign","end center"],["mat-flat-button","","color","accent","id","resetPasswordSaveButton",3,"disabled","click",4,"ngIf"],["color","accent","diameter","20",4,"ngIf"],kt,["mat-flat-button","","color","accent","id","resetPasswordSaveButton",3,"disabled","click"],Me,["color","accent","diameter","20"]]},template:function(Pt,Vt){if(1&Pt){const Jt=m.EpF();m.TgZ(0,"div",0)(1,"div",1)(2,"div")(3,"h2"),m.SDv(4,2),m.qZA(),m.TgZ(5,"p",3),m.SDv(6,4),m.qZA()(),m.TgZ(7,"form",5)(8,"mat-form-field",6)(9,"mat-label"),m.SDv(10,7),m.qZA(),m._UZ(11,"input",8),m.YNc(12,fe,2,1,"mat-error",9),m.qZA(),m.TgZ(13,"mat-form-field",6)(14,"mat-label"),m.SDv(15,10),m.qZA(),m._UZ(16,"input",11,12),m.TgZ(18,"button",13),m.NdJ("click",function(){m.CHM(Jt);const Me=m.MAs(17);return m.KtG(Me.type="password"===Me.type?"text":"password")}),m.YNc(19,qe,2,0,"mat-icon",9),m.YNc(20,$e,2,0,"mat-icon",9),m.qZA()(),m.TgZ(21,"div",14),m.YNc(22,et,2,1,"button",15),m.YNc(23,ot,1,0,"mat-spinner",16),m.qZA()()()()}if(2&Pt){const Jt=m.MAs(17);m.xp6(7),m.Q6J("formGroup",Vt.resetPasswordForm),m.xp6(5),m.Q6J("ngIf",Vt.resetPasswordForm.controls.password.invalid),m.xp6(7),m.Q6J("ngIf","password"===Jt.type),m.xp6(1),m.Q6J("ngIf","text"===Jt.type),m.xp6(2),m.Q6J("ngIf",!Vt.isLoading),m.xp6(1),m.Q6J("ngIf",Vt.isLoading)}},dependencies:[t.mk,t.O5,n.nI,n.v_,n.$V,n.nX,i.k0,l._Y,l.Fj,l.JJ,l.JL,l.Q7,l.sg,l.u,I.eB,q.Hw,D.sN,M.xw,M.Wh,M.yH,T.oO]}),Xe})(),pt=(()=>{class Xe{constructor(){}ngOnInit(){}}return Xe.\u0275fac=function(Pt){return new(Pt||Xe)},Xe.\u0275cmp=m.Xpm({type:Xe,selectors:[["app-deactivated-account"]],decls:10,vars:0,consts:function(){let Nt,Pt;return Nt="Va\u0161 ra\u010Dun je deaktiviran.",Pt="Kontaktirajte korisni\u010Dku podr\u0161ku za ponovnu aktivaciju.",[["fxLayout","row","fxFlex","100%","fxLayoutAlign","center center","ngClass","p-xxl","ngClass.sm","p-m","ngClass.xs","p-m",1,"branding"],["fxLayout","column","fxFlex.xs","80%","fxFlex.sm","60%","fxFlex.md","55%","fxFlex.lg","40%","fxLayoutAlign","center center",1,"mat-typography"],["fxLayout","row","fxFill","","fxLayoutAlign","center center","ngClass","p-xxl","ngClass.sm","p-m","ngClass.xs","p-m",1,"grey-bg"],["fxLayout","column","fxFill","","fxLayoutAlign","center center","fxLayoutGap","5%"],["fxLayout","row","fxLayoutAlign","center center"],["fxLayout","column","fxLayoutAlign","center center"],Nt,Pt]},template:function(Pt,Vt){1&Pt&&(m.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h2"),m.SDv(7,6),m.qZA(),m.TgZ(8,"label"),m.SDv(9,7),m.qZA()()()()()()())},dependencies:[t.mk,M.xw,M.SQ,M.Wh,M.s9,M.yH,T.oO]}),Xe})();function $t(Xe,Nt){1&Xe&&(m.TgZ(0,"mat-icon",16),m._UZ(1,"mat-spinner",17),m.qZA())}let It=(()=>{class Xe{constructor(Pt,Vt,Jt,kt){this.accountService=Pt,this.router=Vt,this.activatedRoute=Jt,this.notificationService=kt,this.isLoading=!1,this.userEmail=""}ngOnInit(){this.userEmail=this.activatedRoute.snapshot.paramMap.get("email")||""}resendVerificationEmail(){this.isLoading=!0,this.accountService.resendVerificationEmail(this.userEmail).subscribe(Pt=>{setTimeout(()=>{this.isLoading=!1,200===Pt.status?this.notificationService.openNotification("Uspje\u0161no poslana verifikacijska e-po\u0161ta.","OK","success"):this.notificationService.openNotification("Ne\u0161to je po\u0161lo po zlu.",":(","error")},2e3)})}}return Xe.\u0275fac=function(Pt){return new(Pt||Xe)(m.Y36(v.B),m.Y36(e.F0),m.Y36(e.gz),m.Y36(C.g))},Xe.\u0275cmp=m.Xpm({type:Xe,selectors:[["app-registration-complete"]],decls:30,vars:2,consts:function(){let Nt,Pt,Vt,Jt,kt;return Nt="Uspje\u0161na Registracija",Pt="Provjerite Svoju E-Mail Adresu",Vt="Poslali smo e-po\u0161tu na",Jt="Molimo potvrdite svoju e-mail adresu klikom na verifikacijsku poveznicu u e-mailu koji ste upravo primili Ako niste primili e-mail od WhyDonate, provjerite svoju mapu Spam Niste primili e-mail? Kliknite gumb ispod ili kontaktirajte podr\u0161ku.",kt="Ponovno Po\u0161alji E-po\u0161tu za Provjeru",[["fxLayout","row","fxFlex","100%","fxLayoutAlign","center center",1,"branding","registration-complete"],["fxLayout","column","fxFlex.xs","80%","fxFlex.sm","60%","fxFlex.md","50%","fxFlex.lg","50%","fxLayoutAlign","center center"],["fxLayout","row","fxFill","","fxLayoutAlign","center center","ngClass","p-s",1,"grey-bg"],["fxLayoutAlign","center center"],["ngClass","m-b-m","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/checkCircleFillPrimary/public"],Nt,["fxLayout","row","fxLayoutAlign","center center"],["fxLayout","column","fxFill","","fxLayoutAlign","center center"],["fxLayout","column","fxFill","","fxLayoutAlign","center center","fxLayoutGap","1%"],Pt,Vt,[1,"center-align"],Jt,["mat-flat-button","","color","accent",3,"click"],kt,["class","m-l-xs",4,"ngIf"],[1,"m-l-xs"],["color","primary","diameter","20"]]},template:function(Pt,Vt){1&Pt&&(m.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),m._UZ(4,"img",4),m._uU(5,"\xa0 "),m.TgZ(6,"h2"),m.SDv(7,5),m.qZA()()(),m.TgZ(8,"div",6)(9,"div",7)(10,"mat-card")(11,"div",6)(12,"div",8)(13,"div",6)(14,"h2"),m.SDv(15,9),m.qZA()(),m.TgZ(16,"div",6)(17,"h3"),m.SDv(18,10),m.qZA(),m._uU(19," \xa0 "),m.TgZ(20,"h3"),m._uU(21),m.qZA()(),m.TgZ(22,"div",6)(23,"p",11),m.SDv(24,12),m.qZA()(),m.TgZ(25,"div",6)(26,"button",13),m.NdJ("click",function(){return Vt.resendVerificationEmail()}),m.TgZ(27,"span"),m.SDv(28,14),m.qZA(),m.YNc(29,$t,2,0,"mat-icon",15),m.qZA()()()()()()()()()),2&Pt&&(m.xp6(21),m.Oqu(Vt.userEmail),m.xp6(8),m.Q6J("ngIf",Vt.isLoading))},dependencies:[t.mk,t.O5,P.S$,I.eB,q.Hw,D.sN,M.xw,M.SQ,M.Wh,M.s9,M.yH,T.oO],styles:[".center-align[_ngcontent-%COMP%]{text-align:center}.registration-complete[_ngcontent-%COMP%]{height:80vh}"]}),Xe})();var fr=s(81338),yt=s(85270);function dr(Xe,Nt){1&Xe&&(m.TgZ(0,"div",7)(1,"div",8)(2,"div",9),m._UZ(3,"app-page-loader"),m.qZA(),m.TgZ(4,"div",9)(5,"div",10)(6,"h2"),m.SDv(7,11),m.qZA(),m.TgZ(8,"label"),m.SDv(9,12),m.qZA()()()()())}function bt(Xe,Nt){1&Xe&&(m.TgZ(0,"div",7)(1,"div",13)(2,"div",9),m._UZ(3,"app-page-loader"),m.qZA(),m.TgZ(4,"h2"),m._UZ(5,"img",14),m._uU(6,"\xa0 "),m.TgZ(7,"span"),m.SDv(8,15),m.qZA()(),m.TgZ(9,"label"),m.SDv(10,16),m.qZA()()())}function ar(Xe,Nt){1&Xe&&(m.TgZ(0,"div")(1,"div",17)(2,"div",10)(3,"h2"),m._UZ(4,"img",18),m._uU(5,"\xa0 "),m.TgZ(6,"span"),m.SDv(7,19),m.qZA()(),m.TgZ(8,"label"),m.SDv(9,20),m.qZA()()()())}function vt(Xe,Nt){if(1&Xe&&(m.ynx(0),m.TgZ(1,"div",2)(2,"div",3),m.YNc(3,dr,10,0,"div",4),m.YNc(4,bt,11,0,"div",5),m.YNc(5,ar,10,0,"div",6),m.qZA()(),m.BQk()),2&Xe){const Pt=m.oxw();m.xp6(3),m.Q6J("ngIf","verifying"==Pt.verificationStatus),m.xp6(1),m.Q6J("ngIf","successful"==Pt.verificationStatus),m.xp6(1),m.Q6J("ngIf","unsuccessful"==Pt.verificationStatus)}}function qt(Xe,Nt){1&Xe&&m._UZ(0,"app-page-loader")}const lt=[{path:"reset_password",component:ct},{path:"",pathMatch:"full",redirectTo:"login"},{path:"login",component:V},{path:"register",component:K},{path:"registration-complete",component:It},{path:"email-verification",component:(()=>{class Xe{constructor(Pt,Vt,Jt,kt,Me,ut,nt){this.activatedRoute=Pt,this.accountService=Vt,this.notificationService=Jt,this.router=kt,this._customBrandingService=Me,this.profileService=ut,this.analyticsService=nt,this.userEmail="",this.userToken="",this.previous_path="",this.verificationStatus="",this.isLoading=!1,this.isStripeEmail=!1}ngOnInit(){this.isLoading=!0,this.userEmail=this.activatedRoute.snapshot.queryParamMap.get("email")||"",this.userToken=this.activatedRoute.snapshot.queryParamMap.get("token")||"",this.previous_path=this.activatedRoute.snapshot.queryParamMap.get("previous_path")||"",this.accountService.verifyEmail({email:this.userEmail,token:this.userToken}).subscribe(Vt=>{if(this.isLoading=!1,200==Vt.status)if("Missing or invalid field email in request body"==Vt?.errors?.message)this.verificationStatus="unsuccessful",this.notificationService.openNotification(Vt.errors.message,"OK","error"),this.accountService.autoLogout();else if("VerificationLinkExpired"==Vt?.data?.response)this.verificationStatus="unsuccessful",this.notificationService.openNotification("Email verification link is expired","OK","error"),this.accountService.autoLogout();else if("EmailAlreadyVerified"==Vt?.data?.response)this.notificationService.openNotification("Email is already verified","OK","success"),this.verificationStatus="successful",this.accountService.setIsUserLoggedIn(!1),setTimeout(()=>{this.router.navigate(["account"])},3e3);else if(!Vt?.errors?.message){let Jt=new Le.n(Vt.data.id,new Ee.C(Vt.data.jwt,""),Vt.data.first_name,Vt.data.last_name,this.userEmail,"No image found"!=Vt.data.profile_image?Vt.data.profile_image:null);localStorage.setItem("user",JSON.stringify(Jt)),localStorage.setItem("lastLogin",(new Date).getTime().toString()),this.accountService.setIsUserLoggedIn(!0),this.accountService.checkHeaders()&&this.profileService.getProfile().subscribe(kt=>{this.profileResponse=kt,this.analyticsService.fireAnalyticsEvent("New_Account_Created",{user_id:Jt.id,profile_id:this.profileResponse?.data?.profile?.id})}),this.verificationStatus="successful",setTimeout(()=>{if(""==this.previous_path||null==this.previous_path||this.previous_path.includes("undefined"))this.router.navigate(["dashboard"]),this.navigateToProfile();else{let kt=ge.w.getPathnameWithoutLocale(this.previous_path,this.accountService.getLocaleId());kt&&kt.endsWith(".")&&(kt=kt.slice(0,-1)),this.router.navigate([kt]),this.navigateToProfile()}},3e3)}},Vt=>{this.isLoading=!1,this.verificationStatus="unsuccessful"})}navigateToProfile(){this.profileService.getProfile().subscribe(Pt=>{this.profileResponse=Pt,this.isStripeEmail=Pt?.data?.profile?.isStripeEmail,!1===this.isStripeEmail&&this.router.navigate(["profile/account"])})}}return Xe.\u0275fac=function(Pt){return new(Pt||Xe)(m.Y36(e.gz),m.Y36(v.B),m.Y36(C.g),m.Y36(e.F0),m.Y36(L.C),m.Y36(fr.H),m.Y36(he.y))},Xe.\u0275cmp=m.Xpm({type:Xe,selectors:[["app-email-verification"]],decls:3,vars:2,consts:function(){let Nt,Pt,Vt,Jt,kt,Me;return Nt="Provjera va\u0161eg ra\u010Duna",Pt="Molim vas, nemojte kliknuti osvje\u017Ei ili natrag gumb.",Vt="Provjera uspje\u0161na",Jt="Preusmjeravanje vas na nadzornu plo\u010Du...",kt="Verifikacija nije uspjela",Me="Bilo da ste unijeli krivu email adresu ili je veza istekla.",[[4,"ngIf","ngIfElse"],["whydonateLoader",""],["fxLayout","row","fxFlex","100%","fxLayoutAlign","center center","ngClass","p-xxl","ngClass.sm","p-m","ngClass.xs","p-m",1,"branding"],["fxLayout","column","fxFlex.xs","100%","fxFlex.sm","75%","fxFlex.md","75%","fxFlex.lg","60%","fxLayoutAlign","center center",1,"mat-typography"],["fxLayout","row","fxFill","","fxLayoutAlign","center center","class","grey-bg","ngClass","p-xxl","ngClass.sm","p-m","ngClass.xs","p-m",4,"ngIf"],["fxLayout","row","fxFill","","fxLayoutAlign","center center","ngClass","p-xxl","ngClass.sm","p-m","ngClass.xs","p-m","class","grey-bg",4,"ngIf"],[4,"ngIf"],["fxLayout","row","fxFill","","fxLayoutAlign","center center","ngClass","p-xxl","ngClass.sm","p-m","ngClass.xs","p-m",1,"grey-bg"],["fxLayout","column","fxFill","","fxLayoutAlign","center center","fxLayoutGap","5%"],["fxLayout","row","fxLayoutAlign","center center"],["fxLayout","column","fxLayoutAlign","center center"],Nt,Pt,["fxLayout","column","fxLayoutAlign","center center",1,"mat-typography"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/checkCircleFillPrimary/public"],Vt,Jt,["fxLayout","row","fxFlex","100%","fxLayoutAlign","center center","ngClass","p-xxl","ngClass.sm","p-m","ngClass.xs","p-m",1,"grey-bg"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/closeWarn/public"],kt,Me]},template:function(Pt,Vt){if(1&Pt&&(m.YNc(0,vt,6,3,"ng-container",0),m.YNc(1,qt,1,0,"ng-template",null,1,m.W1O)),2&Pt){const Jt=m.MAs(2);m.Q6J("ngIf",!Vt.isLoading)("ngIfElse",Jt)}},dependencies:[t.mk,t.O5,M.xw,M.SQ,M.Wh,M.s9,M.yH,T.oO,yt.f]}),Xe})()},{path:"forgot-password",component:re},{path:"deactivated",component:pt}];let De=(()=>{class Xe{}return Xe.\u0275fac=function(Pt){return new(Pt||Xe)},Xe.\u0275mod=m.oAB({type:Xe}),Xe.\u0275inj=m.cJS({imports:[e.Bz.forChild(lt),e.Bz]}),Xe})();var G=s(25384),U=s(35466),ne=s(45734);let Re=(()=>{class Xe{}return Xe.\u0275fac=function(Pt){return new(Pt||Xe)},Xe.\u0275mod=m.oAB({type:Xe}),Xe.\u0275inj=m.cJS({imports:[t.ez,De,G.q,l.u5,l.UX,U.m,ne.JF,Z.QG]}),Xe})()},21704:(St,be,s)=>{"use strict";s.d(be,{B:()=>T});var t=s(48046),e=s(45734),d=s(73991),l=s(93216),r=s(68264),c=s(32837),E=s(95195),m=s(97974),v=s(71749),C=s(42456),n=s(9206),i=s(44485),P=s(87580),I=s(45710),q=s(64886),D=s(76037),M=s(45720);let T=(()=>{class F{constructor(V,de,ye,Ee,Le,ge){this._apiService=V,this._router=de,this.notificationService=ye,this.HttpClient=Ee,this.locale=Le,this.dialogRef=ge,this.ACCOUNT_API_V2=n.N.ACCOUNT_API_V2,this.isLoggedIn=new l.X(!1),this.loggedInUpdate=this.isLoggedIn.asObservable(),this.shareFundraiserEmbedSubject=new r.x,this.getWidgetCheckbox$=this.shareFundraiserEmbedSubject.asObservable()}getProfileId(){const V=this.getHeaders();return this.HttpClient.get(`${n.N.ACCOUNT_API_V2}account/profile/`,{headers:V}).pipe((0,P.U)(ye=>ye),(0,c.K)(ye=>(console.error("Error fetching profile:",ye),(0,E.of)(0))))}login(V){this._apiService.tempPost(`${this.ACCOUNT_API_V2}account/user/login/`,V).subscribe(Ee=>{this.handleLoginResponse(Ee,V.email)},Ee=>{this.handleLoginError()})}handleLoginResponse(V,de){V.errors?.hasOwnProperty("code")?this.handleIncorrectCredentials():0==V.data.is_email_verified||"0"==V.data.is_email_verified?this.navigateToRegistrationComplete(de):0==V.data.is_active||"0"==V.data.is_active?this.handleAccountDeactivated():this.processSuccessfulLogin(V,de)}handleIncorrectCredentials(){this.notificationService.openNotification("Neva\u017Ee\u0107a adresa e-po\u0161te ili lozinka.","","error"),this.setIsUserLoggedIn(!1)}navigateToRegistrationComplete(V){this._router.navigate(["account/registration-complete",{email:V}])}handleAccountDeactivated(){this.notificationService.openNotification("Va\u0161 ra\u010Dun je deaktiviran, molimo kontaktirajte korisni\u010Dku podr\u0161ku kako biste ga aktivirali.","","error"),this.isLoggedIn.next(!1)}processSuccessfulLogin(V,de){const ye=new v.n(V.data.id,new m.C(V.data.jwt,""),V.data.first_name,V.data.last_name,de,"No image found"!==V.data.profile_image?V.data.profile_image:null,V.data.is_email_verified);if(localStorage.setItem("user",JSON.stringify(ye)),localStorage.setItem("lastLogin",(new Date).getTime().toString()),this.setIsUserLoggedIn(!0),this.notificationService.openNotification("Prijava uspje\u0161na.","OK","success"),sessionStorage.getItem("qrSavePayload"))this._router.navigate(["/custom-branding/qrcode"]);else{const Le=C.w.getPreviousPath()||"dashboard",ge=C.w.getPathnameWithoutLocale(Le,this.getLocaleId());this._router.navigate([ge])}C.w.setUserlanguage(this.getLocaleId())}handleLoginError(){this.notificationService.openNotification("Neva\u017Ee\u0107a adresa e-po\u0161te ili lozinka.","","error")}logout(){localStorage.clear(),"/"!=this._router.url&&"/organisation"!=this._router.url&&"/search"!=this._router.url&&this._router.navigate(["/account"]),this.isLoggedIn.next(!1)}autoLogout(){localStorage.clear(),this.dialogRef.closeAll(),"/"!=this._router.url&&"/organisation"!=this._router.url&&"/search"!=this._router.url&&(this.notificationService.openNotification("Odjavljeni ste, prijavite se za nastavak.","","error"),this._router.navigate(["/account"])),this.isLoggedIn.next(!1)}verifyEmail(V){return this.HttpClient.post(this.ACCOUNT_API_V2+"account/verify_email/",V)}getLoginInformation(){if(0==this.isLoggedIn.getValue()){let V=localStorage.getItem("user")||"";null!=V&&null!=V&&V.length>0&&(this.isJWTExpired()||this.isLoggedIn.next(!0))}return this.isLoggedIn}isJWTExpired(){let V="",de=localStorage.getItem("user")||"{}";if("{}"!=de&&null!=de&&null!=de){let ye=JSON.parse(de)?.jwt?.jwt||null;if(null==ye||null==ye||"{}"==ye)return console.error("Can not find JWT"),!0;V=ye}try{const ye=V.split(".");if(3!==ye.length)return console.error("Invalid token format"),!0;const Le=ye[1].replace(/-/g,"+").replace(/_/g,"/"),ge=decodeURIComponent(atob(Le).split("").map(function(se){return"%"+("00"+se.charCodeAt(0).toString(16)).slice(-2)}).join("")),{exp:ue}=JSON.parse(ge);if(!ue)throw new Error("Token does not contain exp field");return Math.floor((new Date).getTime()/1e3)>ue}catch(ye){return console.error(ye),!0}}isEmailInUse(V){return this.HttpClient.post(this.ACCOUNT_API_V2+"account/user/verify_email/",{email:V})}register(V){let de=new FormData;return V.image&&de.append("image",C.w.base64toBlob(V.image,V.image_type)||new Blob([]),V.image_name),de.append("name",V.name),de.append("language_code",V.language_code?V.language_code:"nl"),de.append("type",V.type),de.append("phone_number",null!=V.phone_number?V.phone_number:null),de.append("first_name",V.first_name),de.append("last_name",V.last_name),de.append("email",V.email),de.append("password",V.password),de.append("iv",V.iv),de.append("previous_path",V.previous_path),this.HttpClient.post(this.ACCOUNT_API_V2+"account/user/",de,{headers:(new e.WM).set("Origin",n.N.domain)})}createMerchant(V){var de=this;return(0,t.Z)(function*(){let Ee=de.getHeaders();return yield de.HttpClient.post(de.ACCOUNT_API_V2+"account/merchant",V,{headers:Ee}).toPromise()})()}getClientSecret(){var V=this;return(0,t.Z)(function*(){const de=V.getHeaders();let ye=n.N.ACCOUNT_API_V2+"account/stripe/accountonboard";return yield V.HttpClient.get(ye,{headers:de}).toPromise()})()}resendVerificationEmail(V){return this.HttpClient.post(this.ACCOUNT_API_V2+"account/resend_email",{email:V},{headers:(new e.WM).set("Origin",n.N.domain)})}getLocaleId(){return this.locale.startsWith("en")?"en":this.locale.startsWith("es")?"es":this.locale.startsWith("de")?"de":this.locale.startsWith("fr")?"fr":this.locale.startsWith("bg")?"bg":this.locale.startsWith("hr")?"hr":this.locale.startsWith("cs")?"cs":this.locale.startsWith("da")?"da":this.locale.startsWith("fi")?"fi":this.locale.startsWith("el")?"el":this.locale.startsWith("hu")?"hu":this.locale.startsWith("it")?"it":this.locale.startsWith("pl")?"pl":this.locale.startsWith("pt")?"pt":this.locale.startsWith("ro")?"ro":this.locale.startsWith("sk")?"sk":this.locale.startsWith("sv")?"sv":this.locale.startsWith("uk")?"uk":"nl"}setIsUserLoggedIn(V){this.isLoggedIn.next(V)}forgotPassword(V){let ye=this.getHeaders();return this.HttpClient.post(this.ACCOUNT_API_V2+"account/user/forget_password/",V,{headers:ye})}encryptSymmetric(V,de){return(0,t.Z)(function*(){const ye=crypto.getRandomValues(new Uint8Array(12)),Ee=(new TextEncoder).encode(V),Le=yield crypto.subtle.importKey("raw",i.lW.from(de,"base64"),{name:"AES-GCM",length:256},!0,["encrypt","decrypt"]),ge=yield crypto.subtle.encrypt({name:"AES-GCM",iv:ye},Le,Ee);return{ciphertext:i.lW.from(ge).toString("base64"),iv:i.lW.from(ye).toString("base64")}})()}decryptSymmetric(V,de,ye){return(0,t.Z)(function*(){const Ee=yield crypto.subtle.importKey("raw",i.lW.from(ye,"base64"),{name:"AES-GCM",length:256},!0,["encrypt","decrypt"]),Le=yield crypto.subtle.decrypt({name:"AES-GCM",iv:i.lW.from(de,"base64")},Ee,i.lW.from(V,"base64"));return(new TextDecoder).decode(Le)})()}isResetPasswordTokenValid(V,de){let Ee=this.getHeaders();return this.HttpClient.post(this.ACCOUNT_API_V2+"account/user/reset_password_token_validate/",{email:V,token:de},{headers:Ee})}resetPassword(V){let ye=V,Ee=this.getHeaders();return this.HttpClient.post(this.ACCOUNT_API_V2+"account/user/reset_password/",ye,{headers:Ee})}getProfile(){let de=this.getHeaders();return this.HttpClient.get(this.ACCOUNT_API_V2+"account/profile",{headers:de})}getHeaders(V=!1){let de=localStorage.getItem("user")||"{}";if("{}"!==de&&null!=de&&void 0!==de){let ye=JSON.parse(de)?.jwt?.jwt||null;if(null!=ye&&void 0!==ye&&"{}"!==ye){let Ee=(new e.WM).set("Authorization",`JWT ${ye}`);return V||(Ee=Ee.set("Content-Type","application/json")),Ee}}return(new e.WM).set("Content-Type","application/json")}checkHeaders(){let V=localStorage.getItem("user")||"{}";if("{}"!=V&&null!=V&&null!=V){let de=JSON.parse(V)?.jwt?.jwt||null;return null!=de&&null!=de&&"{}"!=de&&0!=de.length}return!1}getStripeCountry(){return this.getLocaleId(),this.HttpClient.get(`${this.ACCOUNT_API_V2}account/stripe/countries?locale=en`).pipe((0,c.K)(ye=>(console.error("Error fetching Stripe country information:",ye),(0,E.of)({error:"Failed to fetch Stripe country information"}))))}createStripeAccount(V){let ye=this.getHeaders();return this.HttpClient.post(this.ACCOUNT_API_V2+"account/stripe/create",{country:V},{headers:ye})}getWidgetCheckbox(){return this.getWidgetCheckbox$}setWidgetCheckbox(V){this.shareFundraiserEmbedSubject.next(V)}}return F.\u0275fac=function(V){return new(V||F)(d.LFG(I.t),d.LFG(q.F0),d.LFG(D.g),d.LFG(e.eN),d.LFG(d.soG),d.LFG(M.uw))},F.\u0275prov=d.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F})()},48910:(St,be,s)=>{"use strict";s.d(be,{l:()=>v});var t=s(45734),e=s(9206),d=s(93216),l=s(68264),r=s(87580),c=s(73991),E=s(45710),m=s(21704);let v=(()=>{class C{constructor(i,P,I){this.apiService=i,this.httpClient=P,this.accountService=I,this.API_BASE_URL=e.N.apiUrl,this.DONATION_API_V2=e.N.DONATION_API_V2,this.FUNDRAISER_API_V2=e.N.FUNDRAISER_API_V2,this.selectedCurrency=new d.X({currency:"",symbol:""}),this.paymentPayloadSubject=new d.X(null),this.paymentPayload$=this.paymentPayloadSubject.asObservable(),this.donationContactDetailsPayloadSubject=new d.X(null),this.donationContactDetailsPayload$=this.donationContactDetailsPayloadSubject.asObservable(),this.resetStripeFormStepSubject=new l.x,this.resetStripeFormStep$=this.resetStripeFormStepSubject.asObservable(),this.currentFundraiserSubject=new d.X(null),this.currentFundraiser$=this.currentFundraiserSubject.asObservable(),this.partialPayloadSubject=new d.X(this.getPartialPayloadFromStorage()),this.partialPayload$=this.partialPayloadSubject.asObservable(),this._defaultBackgroundImage={src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/production/fundraiser_header/default/w=400",alt:"fundraiser background image"},this._defaultProfileImage={src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/production/profile_image/default/w=100",alt:"profile avatar"},this._customDonationFormData={allow_child:!0,amount:0,amount_target:0,amount_x:0,backgroundImage:this._defaultBackgroundImage,custom_config_created_at:"",end_date:"",id:0,image:this._defaultBackgroundImage,is_draft:!0,is_findable:!1,is_opened:!1,monthly_first:"",monthly_second:"",monthly_third:"",monthly_forth:"",monthly_select:!0,monthly_style:!1,name:"",onetime_first:"",onetime_fifth:"",monthly_fifth:"",yearly_fifth:"",onetime_forth:"",onetime_second:"",onetime_third:"",onetime_select:!0,onetime_style:!1,other_amount:!0,show_donation_details:!0,slug:"",tip_enabled:!0,title:"",unlimited:!1,yearly_first:"",yearly_forth:"",yearly_second:"",yearly_select:!0,yearly_style:!1,yearly_third:"",currency:"",symbol:"",x_to_eur:0,customdonationconfiguration_exists:!1,min_donation_amount:0,max_donation_amount:0,primary_color:"",secondary_color:""}}makeDonation(i){let I,P=localStorage.getItem("user")||"{}";if("{}"!=P&&null!=P&&null!=P){let D=JSON.parse(P)?.jwt?.jwt||null;null!=D&&null!=D&&"{}"!=D&&(I=(new t.WM).set("Authorization",`JWT ${D}`))}this.donationMadeData=i,localStorage.setItem("donation",JSON.stringify(i));let q="donation/order/";return this.accountService.getLoginInformation().value?this.httpClient.post(this.DONATION_API_V2+q,i,{headers:I}):this.httpClient.post(this.DONATION_API_V2+q,i)}getDonationReceipt(){return this.data}getReceipt(i){return this.httpClient.post(e.N.DONATION_API_V2+"donation/receipt",{transaction_id:i})}getOrderStatus(i){return this.httpClient.get(this.DONATION_API_V2+"donation/order/status/",{params:{order_id:i}})}saveDonorDetails(i){return this.httpClient.put(this.DONATION_API_V2+"donation/donor/update",i,{headers:(new t.WM).set("content-type","application/json")})}saveDonorContactDetails(i){let I=i,q=this.accountService.getHeaders();return this.httpClient.put(this.DONATION_API_V2+"donation/donor/data/update",I,{headers:q})}saveMessage(i){return this.httpClient.post(this.API_BASE_URL+"donation/donor/message/",i,{headers:(new t.WM).set("content-type","application/json")})}setSelectedFundraiser(i){this.selectedFundraiser=i}getSelectedFundraiser(){return this.selectedFundraiser}emptySelectedFundraiser(){this.selectedFundraiser=void 0}getDonationDone(){try{return JSON.parse(localStorage.getItem("donation")||"{}")}catch{return{}}}setSelectedCurrency(i){this.selectedCurrency.next(i)}getSelectedCurrency(){return this.selectedCurrency.getValue()}getAllCurrenciesList(){return this.httpClient.get(this.DONATION_API_V2+"donation/stripe/currencies")}getDonationConfigurationOfFundraiser(i,P){return this.httpClient.get(this.FUNDRAISER_API_V2+"fundraiser/donation/values",{params:{slug:i,currency:P}})}getDonationWpConfigurationOfFundraiser(i,P){return this.httpClient.get(this.FUNDRAISER_API_V2+"fundraiser/wp/donation/values",{params:{slug:i,currency:P}})}transformCustomDonationData(i){return{allow_child:i?.fundraiser_data?.allow_child,amount:parseFloat(i?.amount),amount_target:parseFloat(i?.fundraiser_data?.amount_target),amount_x:parseFloat(i?.amount_x),backgroundImage:{src:i?.fundraiser_data?.background?.image,video:i?.fundraiser_data?.background?.video},custom_config_created_at:i?.customdonationconfiguration?.custom_config_created_at,end_date:i?.fundraiser_data?.end_date,id:i?.fundraiser_data?.id,image:{src:i?.fundraiser_data?.background?.image,video:i?.fundraiser_data?.background?.video},is_draft:i?.fundraiser_data?.is_draft,is_findable:i?.fundraiser_data?.is_findable,is_opened:i?.fundraiser_data?.is_opened,monthly_first:i?.customdonationconfiguration?.monthly.default_1,monthly_second:i?.customdonationconfiguration?.monthly.default_2,monthly_third:i?.customdonationconfiguration?.monthly.default_3,monthly_forth:i?.customdonationconfiguration?.monthly.default_4,monthly_select:i?.customdonationconfiguration?.monthly.monthly_select,monthly_style:i?.customdonationconfiguration?.monthly_is_open_donation,name:i?.fundraiser_data.name,onetime_first:i?.customdonationconfiguration?.onetime.default_1,onetime_fifth:i?.customdonationconfiguration?.onetime?.default_5??"0",monthly_fifth:i?.customdonationconfiguration?.monthly?.default_5??"0",yearly_fifth:i?.customdonationconfiguration?.yearly?.default_5??"0",onetime_forth:i?.customdonationconfiguration?.onetime.default_4,onetime_second:i?.customdonationconfiguration?.onetime.default_2,onetime_third:i?.customdonationconfiguration?.onetime.default_3,onetime_select:i?.customdonationconfiguration?.onetime.onetime_select,onetime_style:i?.customdonationconfiguration?.onetime_is_open_donation,other_amount:i?.customdonationconfiguration?.other_amount,show_donation_details:i?.fundraiser_data?.show_donation_details,slug:i?.fundraiser_data?.slug,tip_enabled:i?.fundraiser_data?.tip_enabled,title:i?.fundraiser_data?.title,unlimited:i?.fundraiser_data?.unlimited,yearly_first:i?.customdonationconfiguration?.yearly.default_1,yearly_forth:i?.customdonationconfiguration?.yearly.default_4,yearly_second:i?.customdonationconfiguration?.yearly.default_2,yearly_select:i?.customdonationconfiguration?.yearly.yearly_select,yearly_style:i?.customdonationconfiguration?.yearly_is_open_donation,yearly_third:i?.customdonationconfiguration?.yearly.default_3,currency:i?.currency,symbol:i?.symbol,x_to_eur:parseFloat(i?.x_to_eur),customdonationconfiguration_exists:i?.customdonationconfiguration?.customdonationconfiguration_exists,min_donation_amount:parseFloat(i?.customdonationconfiguration?.min_donation_amount),max_donation_amount:parseFloat(i?.customdonationconfiguration?.max_donation_amount),primary_color:i?.customdonationconfiguration?.primary_color,secondary_color:i?.customdonationconfiguration?.secondary_color}}getCustomDonationConfiguration(i,P){return this.getDonationConfigurationOfFundraiser(i,P).pipe((0,r.U)(I=>this.transformCustomDonationData(I?.data)))}getCustomWpDonationConfiguration(i,P){return this.getDonationWpConfigurationOfFundraiser(i,P).pipe((0,r.U)(I=>this.transformCustomDonationData(I?.data)))}getDefaultDonationCustomBranding(i){return this.httpClient.get(this.FUNDRAISER_API_V2+"fundraiser/default/custom_donation_form",{params:{currency:i}})}setPaymentPayload(i){this.paymentPayloadSubject.next(i)}getPaymentPayload(){return this.paymentPayloadSubject.value}resetPaymentPayload(){this.paymentPayloadSubject.next(null)}emitResetStripeFormStep(){this.resetStripeFormStepSubject.next()}setPartialPayload(i){this.partialPayloadSubject.next(i),localStorage.setItem("partialPayload",JSON.stringify(i))}getPartialPayload(){return this.partialPayloadSubject.value}getPartialPayloadFromStorage(){const i=localStorage.getItem("partialPayload");return i?JSON.parse(i):null}clearPartialPayload(){this.partialPayloadSubject.next(null),localStorage.removeItem("partialPayload")}setCurrentFundraiser(i){this.currentFundraiserSubject.next(i)}getCurrentFundraiser(){return this.currentFundraiserSubject.value}setDonationContactDetailsPayload(i){this.donationContactDetailsPayloadSubject.next(i)}getDonationContactDetailsPayload(){return this.donationContactDetailsPayloadSubject.value}}return C.\u0275fac=function(i){return new(i||C)(c.LFG(E.t),c.LFG(t.eN),c.LFG(m.B))},C.\u0275prov=c.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})()},13747:(St,be,s)=>{"use strict";s.d(be,{l:()=>r});var t=s(73991),e=s(43073),d=s(45720),l=s(27579);let r=(()=>{class c{}return c.\u0275fac=function(m){return new(m||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["app-delete-popup"]],decls:11,vars:2,consts:function(){let E,m,v,C;return E="Jeste li sigurni da \u017Eelite izbrisati?",m="Ne\u0107ete mo\u0107i dohvatiti podatke.",v="Otkazati",C="Izbrisati",[E,m,["fxLayoutAlign","end"],["mat-button","","color","accent",3,"mat-dialog-close"],v,["mat-flat-button","","color","warn",3,"mat-dialog-close"],C]},template:function(m,v){1&m&&(t.TgZ(0,"mat-dialog-content")(1,"p")(2,"strong"),t.SDv(3,0),t.qZA()(),t.TgZ(4,"p"),t.SDv(5,1),t.qZA()(),t.TgZ(6,"mat-dialog-actions",2)(7,"button",3),t.SDv(8,4),t.qZA(),t.TgZ(9,"button",5),t.SDv(10,6),t.qZA()()),2&m&&(t.xp6(7),t.Q6J("mat-dialog-close",!1),t.xp6(2),t.Q6J("mat-dialog-close",!0))},dependencies:[e.eB,d.ZT,d.xY,d.H8,l.Wh]}),c})()},47307:(St,be,s)=>{"use strict";s.d(be,{x:()=>M});var t=s(45720),e=s(15645),d=s(73991),l=s(47692),r=s(76037),c=s(17774),E=s(4692),m=s(24e3),v=s(54449),C=s(43073),n=s(27579),i=s(74351),P=s(84238);function I(T,F){1&T&&(d.TgZ(0,"mat-error"),d.SDv(1,23),d.qZA())}function q(T,F){if(1&T&&(d.TgZ(0,"mat-error")(1,"span"),d.SDv(2,24),d.qZA(),d._uU(3),d.ALo(4,"number"),d.qZA()),2&T){const le=d.oxw();d.xp6(3),d.AsE("\xa0",le.currencySymbol,"",d.lcZ(4,2,le.maxTargetAmount)," ")}}function D(T,F){1&T&&(d.TgZ(0,"mat-error"),d.SDv(1,25),d.qZA())}let M=(()=>{class T{constructor(le,V,de,ye){this.fundraiserService=le,this.data=V,this.dialogRef=de,this.notificationService=ye,this.currencyCode="",this.maxTargetAmount=999999,this.currencySymbol=""}ngOnInit(){this.currencyCode=this.data.currency_code,this.currencySymbol=this.data.currency_symbol,this.fundraiserService.getMaxTargetAmountByCurrency(this.currencyCode).subscribe(le=>{const V=this.addOfflineDonationForm.get("target_amount");this.maxTargetAmount=le?.data?.list_of_currencies[0]?.max_target_amount,V?.setValidators([e.kI.max(this.maxTargetAmount),e.kI.pattern("^[0-9]+$")]),V?.updateValueAndValidity()}),this.addOfflineDonationForm=new e.nJ({target_amount:new e.p4("",[e.kI.max(this.maxTargetAmount),e.kI.pattern("^[0-9]+$")]),reason:new e.p4("",[e.kI.required,e.kI.minLength(15),e.kI.maxLength(70)])})}saveOfflineDonation(){this.addOfflineDonationForm.markAllAsTouched();const le=this.addOfflineDonationForm.get("target_amount");if(0!=le?.value){if(this.addOfflineDonationForm.valid){let ye,V=!1,de=this.addOfflineDonationForm.get("target_amount")?.value;(null==de||null==de||de.length<=0||"0"==de)&&(V=!0,de="0"),ye={currency:this.currencySymbol,amount:de,description:this.addOfflineDonationForm.get("reason")?.value,slug:this.data.slug},this.fundraiserService.createOfflineDonation(ye).subscribe(Ee=>{this.fundraiserService.setOfflineDonation(),this.notificationService.openNotification("Uspje\u0161no spremljeno.","OK","success")}),this.dialogRef.close()}}else le.setErrors({greaterThanZero:!0})}onCloseClick(){this.dialogRef.close()}}return T.\u0275fac=function(le){return new(le||T)(d.Y36(l.R),d.Y36(t.WI),d.Y36(t.so),d.Y36(r.g))},T.\u0275cmp=d.Xpm({type:T,selectors:[["app-add-offline-donation"]],decls:33,vars:7,consts:function(){let F,le,V,de,ye,Ee,Le,ge,ue;return F="Dodaj Izvanmre\u017Enu Donaciju",le="Dodajte iznos prikupljen u gotovini za ovo prikupljanje sredstava",V="Ciljni Iznos",de="Opi\u0161ite razlog",ye="Znaci",Ee="Spremi",Le="Decimale nisu dopu\u0161tene",ge="Najve\u0107i iznos je",ue="Mora imati izme\u0111u 15 i 70 znakova",[["fxLayout","column","fxFill","","fxLayoutAlign","flex-end flex-end"],["mat-icon-button","",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["fxLayout","column","fxFill",""],["ngClass","p-l-l p-r-l"],F,le,[1,"mat-typography"],[3,"formGroup"],["color","primary","appearance","outline","floatLabel","always",1,"w-100"],V,["matInput","","type","number","formControlName","target_amount","placeholder","00","appNumericInput","",1,"right-align",3,"input"],["matPrefix",""],[4,"ngIf"],["color","primary","appearance","outline",1,"w-100"],de,["required","","matInput","","formControlName","reason","cdkTextareaAutosize","","cdkAutosizeMinRows","5","cdkAutosizeMaxRows","8","id","reason","maxlength","70"],["reason",""],["align","end"],ye,["fxFill","","fxLayout","row","fxLayoutAlign","end center","ngClass","m-t-l"],["id","saveBtn","mat-flat-button","","color","accent",3,"disabled","click"],Ee,Le,ge,ue]},template:function(le,V){if(1&le&&(d.TgZ(0,"div")(1,"div",0)(2,"button",1),d.NdJ("click",function(){return V.onCloseClick()}),d._UZ(3,"img",2),d.qZA()(),d.TgZ(4,"div",3)(5,"div",4)(6,"h2"),d.SDv(7,5),d.qZA(),d.TgZ(8,"span"),d.SDv(9,6),d.qZA()(),d.TgZ(10,"mat-dialog-content",7)(11,"form",8)(12,"mat-form-field",9)(13,"mat-label"),d.SDv(14,10),d.qZA(),d.TgZ(15,"input",11),d.NdJ("input",function(){return V.addOfflineDonationForm.controls.target_amount.markAsTouched()}),d.qZA(),d.TgZ(16,"p",12),d._uU(17),d.qZA(),d.YNc(18,I,2,0,"mat-error",13),d.YNc(19,q,5,4,"mat-error",13),d.qZA(),d.TgZ(20,"mat-form-field",14)(21,"mat-label"),d.SDv(22,15),d.qZA(),d._UZ(23,"textarea",16,17),d.TgZ(25,"mat-hint",18),d._uU(26),d.TgZ(27,"span"),d.SDv(28,19),d.qZA()(),d.YNc(29,D,2,0,"mat-error",13),d.qZA(),d.TgZ(30,"div",20)(31,"button",21),d.NdJ("click",function(){return V.saveOfflineDonation()}),d.SDv(32,22),d.qZA()()()()()()),2&le){const de=d.MAs(24);d.xp6(11),d.Q6J("formGroup",V.addOfflineDonationForm),d.xp6(6),d.hij("",V.currencySymbol,"\xa0"),d.xp6(1),d.Q6J("ngIf",V.addOfflineDonationForm.controls.target_amount.errors&&V.addOfflineDonationForm.controls.target_amount.errors.pattern),d.xp6(1),d.Q6J("ngIf",V.addOfflineDonationForm.controls.target_amount.errors&&V.addOfflineDonationForm.controls.target_amount.errors.max),d.xp6(7),d.hij("",de.value.length," / 70 "),d.xp6(3),d.Q6J("ngIf",V.addOfflineDonationForm.controls.reason.errors),d.xp6(2),d.Q6J("disabled",!V.addOfflineDonationForm.valid)}},dependencies:[e._Y,e.Fj,e.wV,e.JJ,e.JL,e.Q7,e.nD,e.sg,e.u,c.mk,c.O5,E.nI,E.v_,E.pH,E.$V,E.g4,m.IC,v.k0,C.eB,t.xY,n.xw,n.Wh,n.s9,i.oO,P.R,c.JJ],encapsulation:2}),T})()},23576:(St,be,s)=>{"use strict";s.d(be,{Z:()=>j});var t=s(45720),e=s(15645),d=s(73991),l=s(47692),r=s(76037),c=s(43073),E=s(27579);let m=(()=>{class Ne{constructor(We,ze,we,Ye){this.data=We,this.fundraiserService=ze,this.dialogRef=we,this.notificationService=Ye}onCloseClick(){this.dialogRef.close()}onDeleteOfflineDonation(We){this.fundraiserService.deleteOfflineDonation(We).subscribe(ze=>{this.fundraiserService.setOfflineDonation(),this.dialogRef.close(),this.notificationService.openNotification("Uspje\u0161no brisanje.","OK","success")})}}return Ne.\u0275fac=function(We){return new(We||Ne)(d.Y36(t.WI),d.Y36(l.R),d.Y36(t.so),d.Y36(r.g))},Ne.\u0275cmp=d.Xpm({type:Ne,selectors:[["app-delete-offline-donation"]],decls:12,vars:0,consts:function(){let tt,We,ze;return tt="Jeste li sigurni da \u017Eelite izbrisati izvanmre\u017Enu donaciju?",We="Blizu",ze="Spremi",[["fxLayout","column","fxFill","","fxLayoutAlign","flex-end flex-end"],["mat-icon-button","",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],[1,"mat-typography"],tt,["align","end"],["mat-flat-button","",3,"click"],We,["id","confirmDeleteOfflineDonationBtn","mat-flat-button","","color","accent",3,"click"],ze]},template:function(We,ze){1&We&&(d.TgZ(0,"div")(1,"div",0)(2,"button",1),d.NdJ("click",function(){return ze.onCloseClick()}),d._UZ(3,"img",2),d.qZA()(),d.TgZ(4,"mat-dialog-content")(5,"p",3),d.SDv(6,4),d.qZA()(),d.TgZ(7,"mat-dialog-actions",5)(8,"button",6),d.NdJ("click",function(){return ze.onCloseClick()}),d.SDv(9,7),d.qZA(),d.TgZ(10,"button",8),d.NdJ("click",function(){return ze.onDeleteOfflineDonation(ze.data.id)}),d.SDv(11,9),d.qZA()()())},dependencies:[c.eB,t.xY,t.H8,E.xw,E.Wh,E.s9],encapsulation:2}),Ne})();var v=s(80842),C=s(17774),n=s(4692),i=s(24e3),P=s(54449),I=s(74351),q=s(84238);function D(Ne,tt){1&Ne&&(d.TgZ(0,"mat-error"),d.SDv(1,23),d.qZA())}function M(Ne,tt){if(1&Ne&&(d.TgZ(0,"mat-error")(1,"span"),d.SDv(2,24),d.qZA(),d._uU(3),d.ALo(4,"number"),d.qZA()),2&Ne){const We=d.oxw();d.xp6(3),d.AsE("\xa0",We.selectedSymbol,"",d.lcZ(4,2,We.maxTargetAmount)," ")}}function T(Ne,tt){1&Ne&&(d.TgZ(0,"mat-error"),d.SDv(1,25),d.qZA())}let F=(()=>{class Ne{constructor(We,ze,we,Ye,te){this.fundraiserService=We,this.notificationService=ze,this.dialog=we,this.data=Ye,this.dialogRef=te,this.maxTargetAmount=999999,this.selectedCurrency="",this.selectedSymbol=""}ngOnInit(){this.fundraiserService.getMaxTargetAmountByCurrency(this.data.dataSource.currency).subscribe(We=>{const ze=this.editOfflineDonationForm.get("target_amount");this.maxTargetAmount=We?.data?.list_of_currencies[0]?.max_target_amount,ze?.setValidators([e.kI.max(this.maxTargetAmount),e.kI.pattern("^[0-9]+$")]),ze?.updateValueAndValidity()}),this.editOfflineDonationForm=new e.cw({target_amount:new e.NI(this.data.dataSource.amount,[e.kI.required,e.kI.pattern("^[0-9]+$")]),reason:new e.NI(this.data.dataSource.description,[e.kI.required,e.kI.minLength(15),e.kI.maxLength(70)])}),this.selectedSymbol=this.data.dataSource.currency}saveOfflineDonation(){this.editOfflineDonationForm.markAllAsTouched();const We=this.editOfflineDonationForm.get("target_amount");if(0!=We?.value){if(this.editOfflineDonationForm.valid){let ze=!1,we=this.editOfflineDonationForm.get("target_amount")?.value;(null==we||null==we||we.length<=0||"0"==we)&&(ze=!0,we="0");const Ye={amount:this.editOfflineDonationForm.get("target_amount")?.value,description:this.editOfflineDonationForm.get("reason")?.value,slug:this.data.slug,id:this.data.dataSource.id};if(Ye){let te=[];te.push(this.fundraiserService.updateOfflineDonation(Ye)),(0,v.D)(te).subscribe(Se=>{this.fundraiserService.setOfflineDonation(),this.dialogRef.close(!0),this.notificationService.openNotification("A\u017Euriranje uspje\u0161no.","OK","success")},Se=>{this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","close","error")})}}}else We.setErrors({greaterThanZero:!0})}deleteOfflineDonation(){this.dialog.open(m,{maxWidth:"80vh",data:{id:this.data.dataSource.id}}),this.dialogRef.close()}onCloseClick(){this.dialogRef.close()}}return Ne.\u0275fac=function(We){return new(We||Ne)(d.Y36(l.R),d.Y36(r.g),d.Y36(t.uw),d.Y36(t.WI),d.Y36(t.so))},Ne.\u0275cmp=d.Xpm({type:Ne,selectors:[["app-edit-offline-donation"]],decls:33,vars:8,consts:function(){let tt,We,ze,we,Ye,te,Se,ke,Ge;return tt="Uredi Izvanmre\u017Enu Donaciju",We="Ciljni Iznos",ze="Opi\u0161ite razlog",we="Znaci",Ye="Izbrisati",te="Spremi",Se="Decimale nisu dopu\u0161tene",ke="Najve\u0107i iznos je",Ge="Mora imati izme\u0111u 15 i 70 znakova",[["fxLayout","column","fxFill","","fxLayoutAlign","flex-end flex-end"],["mat-icon-button","",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["fxLayout","column","fxFill",""],["ngClass","p-l-l p-r-l"],tt,[3,"formGroup"],["color","primary","appearance","outline","floatLabel","always",1,"w-100"],We,["matInput","","type","number","formControlName","target_amount","placeholder","00","appNumericInput","",1,"right-align",3,"input"],["matPrefix",""],[4,"ngIf"],["color","primary","appearance","outline",1,"w-100"],ze,["required","","matInput","","formControlName","reason","cdkTextareaAutosize","","cdkAutosizeMinRows","5","cdkAutosizeMaxRows","8","id","reason","maxlength","70"],["reason",""],["align","end"],we,["fxFill","","fxLayout","row","fxLayoutAlign","space-between center","ngClass","m-t-l"],["mat-button","","id","deleteOfflineDonationBtn","color","warn",3,"disabled","click"],Ye,["id","saveBtn","mat-flat-button","","color","accent",3,"disabled","click"],te,Se,ke,Ge]},template:function(We,ze){if(1&We&&(d.TgZ(0,"div")(1,"div",0)(2,"button",1),d.NdJ("click",function(){return ze.onCloseClick()}),d._UZ(3,"img",2),d.qZA()(),d.TgZ(4,"div",3)(5,"div",4)(6,"h2"),d.SDv(7,5),d.qZA()(),d.TgZ(8,"mat-dialog-content")(9,"form",6)(10,"mat-form-field",7)(11,"mat-label"),d.SDv(12,8),d.qZA(),d.TgZ(13,"input",9),d.NdJ("input",function(){return ze.editOfflineDonationForm.controls.target_amount.markAsTouched()}),d.qZA(),d.TgZ(14,"p",10),d._uU(15),d.qZA(),d.YNc(16,D,2,0,"mat-error",11),d.YNc(17,M,5,4,"mat-error",11),d.qZA(),d.TgZ(18,"mat-form-field",12)(19,"mat-label"),d.SDv(20,13),d.qZA(),d._UZ(21,"textarea",14,15),d.TgZ(23,"mat-hint",16),d._uU(24),d.TgZ(25,"span"),d.SDv(26,17),d.qZA()(),d.YNc(27,T,2,0,"mat-error",11),d.qZA(),d.TgZ(28,"div",18)(29,"button",19),d.NdJ("click",function(){return ze.deleteOfflineDonation()}),d.SDv(30,20),d.qZA(),d.TgZ(31,"button",21),d.NdJ("click",function(){return ze.saveOfflineDonation()}),d.SDv(32,22),d.qZA()()()()()()),2&We){const we=d.MAs(22);d.xp6(9),d.Q6J("formGroup",ze.editOfflineDonationForm),d.xp6(6),d.hij("",ze.selectedSymbol,"\xa0"),d.xp6(1),d.Q6J("ngIf",ze.editOfflineDonationForm.controls.target_amount.errors&&ze.editOfflineDonationForm.controls.target_amount.errors.pattern),d.xp6(1),d.Q6J("ngIf",ze.editOfflineDonationForm.controls.target_amount.errors&&ze.editOfflineDonationForm.controls.target_amount.errors.max),d.xp6(7),d.hij("",we.value.length," / 70 "),d.xp6(3),d.Q6J("ngIf",ze.editOfflineDonationForm.controls.reason.errors),d.xp6(2),d.Q6J("disabled",!ze.editOfflineDonationForm.valid),d.xp6(2),d.Q6J("disabled",!ze.editOfflineDonationForm.valid)}},dependencies:[e._Y,e.Fj,e.wV,e.JJ,e.JL,e.Q7,e.nD,e.sg,e.u,C.mk,C.O5,n.nI,n.v_,n.pH,n.$V,n.g4,i.IC,P.k0,c.eB,t.xY,E.xw,E.Wh,E.s9,I.oO,q.R,C.JJ],encapsulation:2}),Ne})();var le=s(20469),V=s(45379);function de(Ne,tt){1&Ne&&(d.TgZ(0,"th",19),d.SDv(1,20),d.qZA())}function ye(Ne,tt){if(1&Ne&&(d.TgZ(0,"td",21),d._uU(1),d.ALo(2,"date"),d.qZA()),2&Ne){const We=tt.$implicit;d.xp6(1),d.hij(" ",We.date&&null!=(null==We?null:We.date)&&null!=(null==We?null:We.date)&&""!=(null==We?null:We.date)&&0!=(null==We?null:We.date)?d.xi3(2,1,null==We?null:We.date,"dd-MM-YYYY"):""," ")}}function Ee(Ne,tt){1&Ne&&(d.TgZ(0,"td",22)(1,"b"),d.SDv(2,23),d.qZA()())}function Le(Ne,tt){1&Ne&&(d.TgZ(0,"th",19),d.SDv(1,24),d.qZA())}function ge(Ne,tt){if(1&Ne&&(d.TgZ(0,"td",21),d._uU(1),d.qZA()),2&Ne){const We=tt.$implicit;d.xp6(1),d.hij(" ",We.description," ")}}function ue(Ne,tt){1&Ne&&d._UZ(0,"td",22)}function ee(Ne,tt){1&Ne&&(d.TgZ(0,"th",19),d.SDv(1,25),d.qZA())}function se(Ne,tt){if(1&Ne&&(d.TgZ(0,"td",21),d._uU(1),d.ALo(2,"number"),d.qZA()),2&Ne){const We=tt.$implicit;d.xp6(1),d.AsE(" ",We.currency," ",d.lcZ(2,2,We.amount)," ")}}function W(Ne,tt){if(1&Ne&&(d.TgZ(0,"td",22)(1,"b"),d._uU(2),d.ALo(3,"number"),d.qZA()()),2&Ne){const We=d.oxw(2);d.xp6(2),d.AsE(" ",We.currency," ",d.lcZ(3,2,We.getTotalAmount()),"")}}function L(Ne,tt){1&Ne&&(d.TgZ(0,"th",19),d.SDv(1,27),d.qZA())}function he(Ne,tt){if(1&Ne){const We=d.EpF();d.TgZ(0,"td",21)(1,"button",28),d.NdJ("click",function(){const Ye=d.CHM(We).$implicit,te=d.oxw(3);return d.KtG(te.openDialog(Ye.id))}),d.TgZ(2,"mat-icon"),d._uU(3,"edit"),d.qZA()()()}if(2&Ne){const We=d.oxw(3);d.xp6(1),d.Q6J("disabled",!We.data.isLoggedInUserAdmin)}}function _e(Ne,tt){1&Ne&&d._UZ(0,"td",22)}function Z(Ne,tt){1&Ne&&(d.ynx(0,26),d.YNc(1,L,2,0,"th",10),d.YNc(2,he,4,1,"td",11),d.YNc(3,_e,1,0,"td",12),d.BQk())}function Te(Ne,tt){1&Ne&&d._UZ(0,"tr",29)}function w(Ne,tt){1&Ne&&d._UZ(0,"tr",30)}function k(Ne,tt){1&Ne&&d._UZ(0,"tr",31)}function x(Ne,tt){if(1&Ne&&(d.TgZ(0,"section",7)(1,"table",8),d.ynx(2,9),d.YNc(3,de,2,0,"th",10),d.YNc(4,ye,3,4,"td",11),d.YNc(5,Ee,3,0,"td",12),d.BQk(),d.ynx(6,13),d.YNc(7,Le,2,0,"th",10),d.YNc(8,ge,2,1,"td",11),d.YNc(9,ue,1,0,"td",12),d.BQk(),d.ynx(10,14),d.YNc(11,ee,2,0,"th",10),d.YNc(12,se,3,4,"td",11),d.YNc(13,W,4,4,"td",12),d.BQk(),d.YNc(14,Z,4,0,"ng-container",15),d.YNc(15,Te,1,0,"tr",16),d.YNc(16,w,1,0,"tr",17),d.YNc(17,k,1,0,"tr",18),d.qZA()()),2&Ne){const We=d.oxw();d.xp6(1),d.Q6J("dataSource",We.dataSource),d.xp6(13),d.Q6J("ngIf",We.data.isLoggedInUserAdmin),d.xp6(1),d.Q6J("matHeaderRowDef",We.displayedColumns)("matHeaderRowDefSticky",!0),d.xp6(1),d.Q6J("matRowDefColumns",We.displayedColumns),d.xp6(1),d.Q6J("matFooterRowDef",We.displayedColumns)("matFooterRowDefSticky",!0)}}let z=[],j=(()=>{class Ne{constructor(We,ze,we,Ye){this.dialog=We,this.data=ze,this.dialogRef=we,this.fundraiserService=Ye,this.displayedColumns=["date","description","amount"],this.dataSource=new le.by(z),this.isLoading=!0}ngOnInit(){this.isLoading=!0,this.fundraiserService.getAllOfflineDonation(this.data.slug).subscribe(We=>{this.isLoading=!1,z=this.dataFilter(We.data.result.details),this.dataSource=new le.by(z)}),this.data.isLoggedInUserAdmin&&this.displayedColumns.push("action")}getTotalAmount(){return this.dataSource&&this.dataSource.data&&0!==this.dataSource.data.length?this.dataSource.data.reduce((We,ze)=>We+parseFloat(ze.amount),0):0}onCloseClick(){this.dialogRef.close()}openDialog(We){const ze=this.dataSource.data.find(Ye=>Ye.id===We);this.dialog.open(F,{width:"80vh",data:{dataSource:ze,slug:this.data.slug}}),this.dialogRef.close(!0)}dataFilter(We){if(We){const ze=We.map(we=>({date:new Date(we?.created_at).toLocaleDateString("en-US")||0,description:we?.description,amount:Math.round(parseFloat(we?.amount)),id:we?.id,currency:we?.currency}));return ze.length>0&&(this.currency=ze[0].currency),ze}return[]}}return Ne.\u0275fac=function(We){return new(We||Ne)(d.Y36(t.uw),d.Y36(t.WI),d.Y36(t.so),d.Y36(l.R))},Ne.\u0275cmp=d.Xpm({type:Ne,selectors:[["app-view-summary"]],decls:9,vars:1,consts:function(){let tt,We,ze,we,Ye,te;return tt="sa\u017Eetak izvanmre\u017Enih donacija prikupljenih od strane prikuplja\u010Da sredstava",We="Datum",ze="Ukupno",we="Opis",Ye="Iznos",te="Akcija",[["fxLayout","column","fxFill","","fxLayoutAlign","flex-end flex-end"],["mat-icon-button","",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["fxLayout","column","fxFill",""],["ngClass","p-l-l p-r-l"],tt,["class","summary-container mat-elevation-z8","tabindex","0",4,"ngIf"],["tabindex","0",1,"summary-container","mat-elevation-z8"],["fxFlex","","mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","date"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-footer-cell","",4,"matFooterCellDef"],["matColumnDef","description"],["matColumnDef","amount"],["matColumnDef","action",4,"ngIf"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-footer-row","",4,"matFooterRowDef","matFooterRowDefSticky"],["mat-header-cell",""],We,["mat-cell",""],["mat-footer-cell",""],ze,we,Ye,["matColumnDef","action"],te,["mat-icon-button","",3,"disabled","click"],["mat-header-row",""],["mat-row",""],["mat-footer-row",""]]},template:function(We,ze){1&We&&(d.TgZ(0,"div")(1,"div",0)(2,"button",1),d.NdJ("click",function(){return ze.onCloseClick()}),d._UZ(3,"img",2),d.qZA()(),d.TgZ(4,"div",3)(5,"div",4)(6,"h2"),d.SDv(7,5),d.qZA()(),d.YNc(8,x,18,7,"section",6),d.qZA()()),2&We&&(d.xp6(8),d.Q6J("ngIf",!ze.isLoading))},dependencies:[C.mk,C.O5,c.eB,V.Hw,le.BZ,le.fO,le.as,le.w1,le.Dz,le.nj,le.mD,le.Ke,le.ge,le.ev,le.yh,le.XQ,le.Gk,le.Q2,E.xw,E.Wh,E.s9,E.yH,I.oO,C.JJ,C.uU],encapsulation:2}),Ne})()},49986:(St,be,s)=>{"use strict";s.d(be,{x:()=>ti});var t=s(45720),e=s(73991),d=s(83482),l=s(17774),r=s(26191),c=s(4692),E=s(80398),m=s(43073),v=s(45379),C=s(27579),n=s(74351),i=s(9206),P=s(64886),I=s(44939),q=s(93216);let D=(()=>{class yr{constructor(){this.customText=new q.X(""),this.currentCustomText=this.customText.asObservable(),this.customAmount=new q.X(""),this.currentCustomAmount=this.customAmount.asObservable()}changeText(wt){this.customText.next(wt)}setAmount(wt){this.customAmount.next(wt)}getCustomAmount(){return this.customAmount.value}getCustomTextValue(){return this.customText.value}}return yr.\u0275fac=function(wt){return new(wt||yr)},yr.\u0275prov=e.Yz7({token:yr,factory:yr.\u0275fac,providedIn:"root"}),yr})();var M=s(84531),T=s(76037),F=s(21704),le=s(32946),V=s(47692),de=s(31180),ye=s(59260);function Ee(yr,Jr){if(1&yr){const wt=e.EpF();e.TgZ(0,"div",14)(1,"button",15),e.NdJ("click",function(){e.CHM(wt);const tn=e.oxw(2);return e.KtG(tn.copyLink())}),e.TgZ(2,"mat-icon",16),e._uU(3,"content_copy"),e.qZA()()()}if(2&yr){const wt=e.oxw(2);e.xp6(1),e.s9C("matTooltip",wt.matTooltip)}}const Le=function(yr){return{"p-xs":yr}};function ge(yr,Jr){if(1&yr&&(e.TgZ(0,"div",5)(1,"h2"),e.SDv(2,6),e.qZA(),e.TgZ(3,"div",7)(4,"div",8)(5,"div",9)(6,"div",10),e._uU(7),e.qZA()(),e.YNc(8,Ee,4,1,"div",11),e.qZA()(),e.TgZ(9,"h3",12),e.SDv(10,13),e.qZA()()),2&yr){const wt=e.oxw();e.xp6(4),e.Q6J("ngClass",e.VKq(3,Le,wt.applyPadding)),e.xp6(3),e.hij(" ",wt.truncateText(wt.shareLink,100)," "),e.xp6(1),e.Q6J("ngIf",!wt.disablePayment)}}let ue=(()=>{class yr{constructor(wt,nr,tn,rn,vn,Gn,Yn,Dn,Ti,Ni,ci,Kt){this.router=wt,this.clipboard=nr,this.dialog=tn,this.paymentRequest=rn,this.media=vn,this._notificationService=Gn,this._accountService=Yn,this.locale=Dn,this.data=Ti,this.dialogRef=Ni,this.customDomainService=ci,this.fundraiserService=Kt,this.shareLink="",this.disablePayment=!1,this.type="",this.preview=!1,this.applyPadding=!0,this.oneTimeLabel="Jednom",this.monthlyLabel="Mjese\u010Dno",this.yearlyLabel="Godi\u0161nje",this.matTooltip="Kopirajte link za prikupljanje sredstava.",this.currency_symbol="",this.onetime_first="",this.onetime_second="",this.onetime_third="",this.onetime_forth="",this.monthly_first="",this.monthly_second="",this.monthly_third="",this.monthly_forth="",this.yearly_first="",this.yearly_second="",this.yearly_third="",this.yearly_forth="",this.fundraiserBackgroundImage="",this.fundraiserBackgroundVideo="",this.video=""}ngOnInit(){this.initializeFundraiserData();const wt=this.fundraiserBackgroundVideo;this.youtubeThumbnail=this.checkVideoUrl(wt),this.videoPath=wt,this.generateShareLink()}initializeFundraiserData(){this.currency_symbol=this.data?.fundraiser?.currency_symbol,this.onetime_first=this.data?.fundraiser?.custom_donation_configuration?.onetime_first,this.onetime_second=this.data?.fundraiser?.custom_donation_configuration?.onetime_second,this.onetime_third=this.data?.fundraiser?.custom_donation_configuration?.onetime_third,this.onetime_forth=this.data?.fundraiser?.custom_donation_configuration?.onetime_forth,this.monthly_first=this.data?.fundraiser?.custom_donation_configuration?.monthly_first,this.monthly_second=this.data?.fundraiser?.custom_donation_configuration?.monthly_second,this.monthly_third=this.data?.fundraiser?.custom_donation_configuration?.monthly_third,this.monthly_forth=this.data?.fundraiser?.custom_donation_configuration?.monthly_forth,this.yearly_first=this.data?.fundraiser?.custom_donation_configuration?.yearly_first,this.yearly_second=this.data?.fundraiser?.custom_donation_configuration?.yearly_second,this.yearly_third=this.data?.fundraiser?.custom_donation_configuration?.yearly_third,this.yearly_forth=this.data?.fundraiser?.custom_donation_configuration?.yearly_forth,""!=this.data?.fundraiser?.background?.image&&""!=this.data?.fundraiser?.background?.video||""==this.data?.fundraiser?.background?.image&&""!=this.data?.fundraiser?.background?.video||""!=this.data?.fundraiser?.background?.image&&""==this.data?.fundraiser?.background?.video?(this.fundraiserBackgroundImage=this.data?.fundraiser?.background?.image,this.fundraiserBackgroundVideo=this.data?.fundraiser?.background?.video):(this.fundraiserBackgroundImage=this.data?.fundraiser?.parent?.background?.image,this.fundraiserBackgroundVideo=this.data?.fundraiser?.parent?.background?.video)}generateShareLink(){this.customDomainService.isCustomDomain.subscribe(wt=>{try{const nr=window.location.hostname,tn=this._accountService.getLocaleId(),rn=this.router.url.split("/");this.shareLink=wt?this.generateCustomDomainLink(nr,tn,rn):this.generateDefaultDomainLink(i.N.homeUrl,tn,rn)}catch(nr){console.error("Error generating share link:",nr)}},wt=>{console.error("Error subscribing to custom domain service:",wt)})}generateCustomDomainLink(wt,nr,tn){if("donate"===this.type){let rn=this.fundraiserService.getCurrentFundraiserSlug();return`https://${wt}/${nr}/${this.type}/${rn}`}return"fundraiser"===this.type?window.location.href:(this.paymentRequest.currentCustomText.subscribe(rn=>{this.shareLink=rn}),this.shareLink)}generateDefaultDomainLink(wt,nr,tn){return"donate"===this.type?`${wt}/${nr}/${this.type}/${tn[2]}`:"fundraiser"===this.type?`${wt}/${nr}/${tn[1]}/${tn[2]}`:(this.paymentRequest.currentCustomText.subscribe(rn=>{this.shareLink=rn}),this.shareLink)}truncateText(wt,nr){return this.media.isActive("xs")?wt.slice(0,35)+"...":wt}copyLink(){this.clipboard.copy(this.shareLink),this._notificationService.openNotification("Kopiranje uspje\u0161no.","OK","success")}printFundraiser(){window.print()}checkVideoUrl(wt){const nr=this.getVideoIdFromLink(wt,/^https?:\/\/(?:www\.)?vimeo\.com\/(\d+)/),tn=this.getVideoIdFromLink(wt,/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:embed\/|watch\?v=|v\/|shorts\/)|youtu\.be\/)([\w\-]+)(?:\S+)?$/);return nr?`https://vumbnail.com/${nr}.jpg`:tn?`https://i.ytimg.com/vi/${tn}/mqdefault.jpg`:"unknown"}getVideoIdFromLink(wt,nr){const tn=wt?.match(nr);return tn&&tn[1]?tn[1]:""}}return yr.\u0275fac=function(wt){return new(wt||yr)(e.Y36(P.F0),e.Y36(I.TU),e.Y36(t.uw),e.Y36(D),e.Y36(M.u0),e.Y36(T.g),e.Y36(F.B),e.Y36(e.soG),e.Y36(t.WI),e.Y36(t.so),e.Y36(le.c),e.Y36(V.R))},yr.\u0275cmp=e.Xpm({type:yr,selectors:[["app-share-fundraiser-page"]],inputs:{disablePayment:"disablePayment",type:"type",preview:"preview",applyPadding:"applyPadding"},decls:7,vars:5,consts:function(){let Jr,wt;return Jr="Ili kopirati vezu za dijeljenje",wt="putem bilo koje po\u0161te, Instagrama, Facebooka, WhatsApp -a i mnogih drugih",[["fxLayout.lt-md","column","fxLayout","row","fxLayout.xs","column","fxFlex","100%","fxLayoutAlign","start start"],["fxLayout","column","fxFlex.lg","100%","fxLayoutAlign","start start",1,"social-share"],["fxLayout","row","fxFlex","100%","fxLayoutAlign","start start","fxFill","","ngClass.lt-sm","m-t-s"],[3,"componentCalled","sharedLink","disableSocialShare","fundraiserDetails"],["fxLayout","column","fxFlex.lg","100%","fxLayoutAlign","start start","class","social-share w-100",4,"ngIf"],["fxLayout","column","fxFlex.lg","100%","fxLayoutAlign","start start",1,"social-share","w-100"],Jr,["fxLayout","row","fxFlex","100%","fxLayoutAlign","start baseline","fxLayoutAlign.lt-sm","start space-around","fxLayoutGap.lt-sm","5%","fxLayoutGap","0px","fxFill",""],["fxLayoutAlign","space-between center","fxFlex.gt-md","100%","fxFlex.lt-md","100%","fxFill","",1,"grey-bg",3,"ngClass"],["fxLayout","column","fxFlex","80%","fxLayoutAlign","start start"],["id","shareLink",1,"mat-body-1"],["fxLayout","column","fxLayout.lt-sm","row wrap","fxFlex","10%","fxLayoutAlign","start end","fXFlexAlign","start",4,"ngIf"],["ngClass","p-t-xs"],wt,["fxLayout","column","fxLayout.lt-sm","row wrap","fxFlex","10%","fxLayoutAlign","start end","fXFlexAlign","start"],["id","contentCopyButton","mat-icon-button","",1,"hover-class",3,"matTooltip","click"],["size","3x"]]},template:function(wt,nr){1&wt&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"app-social-share-buttons",3),e.qZA(),e._UZ(4,"br")(5,"br"),e.YNc(6,ge,11,5,"div",4),e.qZA()()),2&wt&&(e.xp6(3),e.Q6J("componentCalled",nr.type)("sharedLink",nr.shareLink)("disableSocialShare",nr.disablePayment)("fundraiserDetails",nr.data),e.xp6(3),e.Q6J("ngIf",nr.shareLink))},dependencies:[l.mk,l.O5,m.eB,v.Hw,de.gM,C.xw,C.SQ,C.Wh,C.s9,C.yH,n.oO,ye.j],styles:[".social-share[_ngcontent-%COMP%]   .embeded[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(.mat-button-disabled){color:var(--button-color)}.qr-embeded[_ngcontent-%COMP%]{transform:scale(1.8)}.hover-class[_ngcontent-%COMP%]:hover{background-color:#d3d3d3}"]}),yr})();var ee=s(15645),se=s(26314),W=s(24e3),L=s(54449),he=s(33867),_e=s(43732),Z=s(63591),Te=s(69621);const w=["embedView"],k=function(yr){return{"font-family":yr}};function x(yr,Jr){if(1&yr&&(e.TgZ(0,"mat-option",60),e._uU(1),e.qZA()),2&yr){const wt=Jr.$implicit;e.Q6J("ngStyle",e.VKq(3,k,wt))("value",wt),e.xp6(1),e.hij(" ",wt," ")}}function z(yr,Jr){1&yr&&(e.TgZ(0,"mat-hint",61)(1,"span"),e.SDv(2,62),e.qZA()())}function j(yr,Jr){1&yr&&(e.TgZ(0,"mat-hint",61)(1,"span"),e.SDv(2,63),e.qZA()())}let Ne=(()=>{class yr{constructor(wt,nr,tn,rn,vn,Gn,Yn,Dn,Ti,Ni,ci,Kt){this.router=wt,this.clipboard=nr,this._renderer=tn,this._formBuilder=rn,this.media=vn,this._accountService=Gn,this._notificationService=Yn,this._mediaService=Dn,this.data=Ti,this.dialogRef=Ni,this.customDomainService=ci,this.fundraiserService=Kt,this.currentFundraiserData={},this.matTooltip="Kopiraj",this.embedHTML="",this.previewSwitchCase="donation-widget",this.sucessUrlPlaceholder="Donacija pla\u0107ena veza",this.failUrlPlaceholder="Donacija otkazana poveznica",this.oneTimeLabel="Jednom",this.monthlyLabel="Mjese\u010Dno",this.yearlyLabel="Godi\u0161nje",this.currency_symbol="",this.fundraiserBackgroundImage="",this.fundraiserBackgroundVideo="",this.video="",this.onetime_first="",this.onetime_second="",this.onetime_third="",this.onetime_forth="",this.monthly_first="",this.monthly_second="",this.monthly_third="",this.monthly_forth="",this.yearly_first="",this.yearly_second="",this.yearly_third="",this.yearly_forth="",this.shareLink="",this.previewBoxShadowNumber=1,this.currentPrimaryColor="#32BF55",this.currentSecondaryColor="#363396",this.currentButtonRadius=4,this.widgetFontName="Roboto",this.showDonationFormOnlyChecked=!1,this.showDonateCard=!0,this.fontList=["Roboto","Raleway","Amatic SC","Caveat","Comfortaa","EB Garamond","Lobster","Lora","Merriweather","Montserrat","Nunito","Oswald","Pacifico","Playfair Display","Spectral","Open Sans","Lato","Yatra One","Arvo","Ubuntu","PT Serif","Slabo 13px","Source Sans Pro","PT Sans","Noto Serif","Nunito Sans","Concert One","Prompt","Work Sans"],this.pluginForm=this._formBuilder.group({hideWidgetCard:[!1],showImageCheckbox:[!1,{disabled:!1}],addFormCheckbox:[!1,{disabled:!1}],boxShadowNumber:[this.previewBoxShadowNumber],currentPrimaryColor:[this.currentPrimaryColor],currentSecondaryColor:[this.currentSecondaryColor],widgetFontName:[this.widgetFontName],currentButtonRadius:[this.currentButtonRadius,[ee.kI.min(0),ee.kI.max(30)]]})}ngOnInit(){this.initializeFundraiserData(),this.initializeBackgroundMedia(),this.initializePluginForm(),this.subscribeToFormChanges(),this.initializeShareLink(),this.setProfileResponseValues(),this.subscribeToProfileResponseChanges()}initializeFundraiserData(){this.currency_symbol=this.data?.fundraiser?.currency_symbol,this.onetime_first=this.data?.fundraiser?.custom_donation_configuration?.onetime_first,this.onetime_second=this.data?.fundraiser?.custom_donation_configuration?.onetime_second,this.onetime_third=this.data?.fundraiser?.custom_donation_configuration?.onetime_third,this.onetime_forth=this.data?.fundraiser?.custom_donation_configuration?.onetime_forth,this.monthly_first=this.data?.fundraiser?.custom_donation_configuration?.monthly_first,this.monthly_second=this.data?.fundraiser?.custom_donation_configuration?.monthly_second,this.monthly_third=this.data?.fundraiser?.custom_donation_configuration?.monthly_third,this.monthly_forth=this.data?.fundraiser?.custom_donation_configuration?.monthly_forth,this.yearly_first=this.data?.fundraiser?.custom_donation_configuration?.yearly_first,this.yearly_second=this.data?.fundraiser?.custom_donation_configuration?.yearly_second,this.yearly_third=this.data?.fundraiser?.custom_donation_configuration?.yearly_third,this.yearly_forth=this.data?.fundraiser?.custom_donation_configuration?.yearly_forth}initializeBackgroundMedia(){""!=this.data?.fundraiser?.background?.image&&""!=this.data?.fundraiser?.background?.video||""==this.data?.fundraiser?.background?.image&&""!=this.data?.fundraiser?.background?.video||""!=this.data?.fundraiser?.background?.image&&""==this.data?.fundraiser?.background?.video?(this.fundraiserBackgroundImage=this.data?.fundraiser?.background?.image,this.fundraiserBackgroundVideo=this.data?.fundraiser?.background?.video):(this.fundraiserBackgroundImage=this.data?.fundraiser?.parent?.background?.image,this.fundraiserBackgroundVideo=this.data?.fundraiser?.parent?.background?.video);const wt=this.fundraiserBackgroundVideo;this.youtubeThumbnail=this.checkVideoUrl(wt),this.videoPath=wt}initializePluginForm(){let wt=this.pluginForm.getRawValue(),nr=this.createEmbedData(wt);this.embedHTML=this.getEmbedHTML(nr),this.embedView.nativeElement.innerText=this.embedHTML,this.previewSwitchCase=this.getPreviewCase()}subscribeToFormChanges(){this.pluginForm.valueChanges.subscribe(()=>{if(this.pluginForm.valid){let wt=this.pluginForm.getRawValue(),nr=this.createEmbedData(wt);this.embedHTML=this.getEmbedHTML(nr),this.embedView.nativeElement.innerText=this.embedHTML,this.previewSwitchCase=this.getPreviewCase()}})}initializeShareLink(){this.customDomainService.isCustomDomain.subscribe(wt=>{if(wt)this.shareLink=window.location.href;else{let nr=this.router.url.split("/");this.shareLink=i.N.homeUrl+"/"+this._accountService.getLocaleId()+"/"+nr[1]+"/"+nr[2]}})}setProfileResponseValues(){this.pluginForm.get("currentPrimaryColor")?.setValue(this.profileResponse.primary_color),this.pluginForm.get("currentSecondaryColor")?.setValue(this.profileResponse.secondary_color),this.pluginForm.get("widgetFontName")?.setValue(this.profileResponse.fonts),this.pluginForm.get("currentButtonRadius")?.setValue(this.profileResponse.button_radius),this.pluginForm.get("boxShadowNumber")?.setValue(Number(this.profileResponse.card_shadow))}subscribeToProfileResponseChanges(){this.pluginForm.get("currentPrimaryColor")?.valueChanges.subscribe(wt=>{this.updateEmbedPreview()}),this.pluginForm.get("currentSecondaryColor")?.valueChanges.subscribe(wt=>{this.updateEmbedPreview()}),this.pluginForm.get("widgetFontName")?.valueChanges.subscribe(wt=>{this.updateEmbedPreview()}),this.pluginForm.get("currentButtonRadius")?.valueChanges.subscribe(wt=>{this.updateEmbedPreview()}),this.pluginForm.get("boxShadowNumber")?.valueChanges.subscribe(wt=>{this.updateBoxShadow()})}truncateText(wt,nr){return this.media.isActive("xs")?wt.slice(0,35)+"...":wt}copyLink(){this.clipboard.copy(this.shareLink),this._notificationService.openNotification("Kopiranje uspje\u0161no.","OK","success")}setWidgetCheckbox(wt){wt.checked?(this.pluginForm.get("showImageCheckbox")?.disable({onlySelf:!0,emitEvent:!1}),this.pluginForm.get("addFormCheckbox")?.disable({onlySelf:!0,emitEvent:!1})):(this.pluginForm.get("showImageCheckbox")?.enable({onlySelf:!0,emitEvent:!1}),this.pluginForm.get("addFormCheckbox")?.enable({onlySelf:!0,emitEvent:!1}))}createEmbedData(wt){return{div_id:this.slug,div_class:"share-widget",div_value:this.getWidgetType(wt),data_slug:this.slug,data_lang:this._accountService.getLocaleId()||"nl",data_box_shadow:this.pluginForm.get("boxShadowNumber")?.value,data_primary_color:this.pluginForm.get("currentPrimaryColor")?.value,data_secondary_color:this.pluginForm.get("currentSecondaryColor")?.value,data_font_family:this.pluginForm.get("widgetFontName")?.value,data_button_radius:this.pluginForm.get("currentButtonRadius")?.value,data_card:wt?.hideWidgetCard?"hide":"show"}}getWidgetType(wt){return wt?.hideWidgetCard?"donation-widget":wt?.addFormCheckbox?wt?.showImageCheckbox?"donation-form+image":"donation-form+widget":wt?.showImageCheckbox?"show-with-image":"donation-widget"}getPreviewCase(){let wt=this.pluginForm.getRawValue(),nr=this.getWidgetType(wt);return"donation-widget"===nr&&wt?.hideWidgetCard?(this._accountService.setWidgetCheckbox("donation-button"),"donation-button"):(this._accountService.setWidgetCheckbox(nr),nr)}getEmbedHTML(wt){let nr,tn;1==i.N.production?(nr="https://plugin.whydonate.com/wp_styling.js",tn="https://plugin.whydonate.com/wdplugin-style.css"):(nr="https://plugin.whydonate.com/wp_styling_development.js",tn="https://plugin.whydonate.com/wdplugin-style-development.css");let rn=this._renderer.createElement("div"),vn=this._renderer.createElement("div"),Gn=this._renderer.createElement("link");this._renderer.setProperty(Gn,"href",tn),this._renderer.setProperty(Gn,"rel","stylesheet"),this._renderer.setProperty(Gn,"type","text/css");let Yn=this._renderer.createElement("script");this._renderer.setProperty(Yn,"src",nr),this._renderer.setProperty(Yn,"type","text/javascript");let Dn=this._renderer.createElement("div");return this._renderer.setProperty(Dn,"id",`share-widget-${wt.div_id}`),this._renderer.addClass(Dn,wt.div_class),this._renderer.setAttribute(Dn,"data-slug",wt.data_slug),this._renderer.setAttribute(Dn,"data-lang",wt.data_lang),this._renderer.setAttribute(Dn,"data-box-shadow",wt.data_box_shadow),this._renderer.setAttribute(Dn,"data-primary-color",wt.data_primary_color),this._renderer.setAttribute(Dn,"data-secondary-color",wt.data_secondary_color),this._renderer.setAttribute(Dn,"data-font-family",wt.data_font_family),this._renderer.setAttribute(Dn,"data-button-radius",wt.data_button_radius),this._renderer.setAttribute(Dn,"data-card",wt.data_card),this._renderer.setAttribute(Dn,"data-form_mode",wt.div_value),this._renderer.appendChild(vn,Gn),this._renderer.appendChild(vn,Dn),this._renderer.appendChild(vn,Yn),this._renderer.appendChild(rn,vn),rn.innerHTML}copyEmbedHTML(){return this.embedHTML}checkVideoUrl(wt){const nr=this.getVideoIdFromLink(wt,/^https?:\/\/(?:www\.)?vimeo\.com\/(\d+)/),tn=this.getVideoIdFromLink(wt,/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:embed\/|watch\?v=|v\/|shorts\/)|youtu\.be\/)([\w\-]+)(?:\S+)?$/);return nr?`https://vumbnail.com/${nr}.jpg`:tn?`https://i.ytimg.com/vi/${tn}/mqdefault.jpg`:"unknown"}getVideoIdFromLink(wt,nr){const tn=wt?.match(nr);return tn&&tn[1]?tn[1]:""}updatePrimaryColorFromInput(wt){const nr=wt.target.value;this.pluginForm.get("currentPrimaryColor")?.setValue(nr)}updateSecondaryColorFromInput(wt){const nr=wt.target.value;this.pluginForm.get("currentSecondaryColor")?.setValue(nr)}updatePrimaryColorFromColorPicker(wt){const tn=wt.target.value;this.pluginForm.get("currentPrimaryColor")?.setValue(tn)}updateSecondaryColorFromColorPicker(wt){const tn=wt.target.value;this.pluginForm.get("currentSecondaryColor")?.setValue(tn)}changeFontFamily(){this.pluginForm.get("widgetFontName")}onchangeButtonRadius(){this.pluginForm.get("currentButtonRadius")}updateBoxShadow(){const wt=this.pluginForm.get("boxShadowNumber")?.value;this.previewBoxShadowNumber=wt,this.updateEmbedPreview()}boxShadowSet(wt){let nr="";switch(wt){case 1:nr="0 2px 1px -1px #0003, 0 1px 1px #00000024, 0 1px 3px #0000001f",this.previewBoxShadowNumber=1;break;case 2:nr="0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f",this.previewBoxShadowNumber=2;break;case 3:nr="0 2px 4px -1px #0003, 0 4px 5px #00000024, 0 1px 10px #0000001f",this.previewBoxShadowNumber=4;break;default:nr="none"}return nr}updateEmbedPreview(){const wt=this.pluginForm.get("boxShadowNumber")?.value,nr=this.pluginForm.get("currentPrimaryColor")?.value,tn=this.pluginForm.get("currentSecondaryColor")?.value,rn=this.pluginForm.get("widgetFontName")?.value,vn=this.pluginForm.get("currentButtonRadius")?.value;this._mediaService.updateEmbedPreview(wt,nr,tn,rn,vn)}}return yr.\u0275fac=function(wt){return new(wt||yr)(e.Y36(P.F0),e.Y36(I.TU),e.Y36(e.Qsj),e.Y36(ee.QS),e.Y36(M.u0),e.Y36(F.B),e.Y36(T.g),e.Y36(se.y),e.Y36(t.WI),e.Y36(t.so),e.Y36(le.c),e.Y36(V.R))},yr.\u0275cmp=e.Xpm({type:yr,selectors:[["app-embed"]],viewQuery:function(wt,nr){if(1&wt&&e.Gf(w,7),2&wt){let tn;e.iGM(tn=e.CRH())&&(nr.embedView=tn.first)}},inputs:{slug:"slug",selectedFundraiser:"selectedFundraiser",currentFundraiserData:"currentFundraiserData",amountProgressData:"amountProgressData",profileResponse:"profileResponse",showDonationFormOnlyChecked:"showDonationFormOnlyChecked",showDonateCard:"showDonateCard"},decls:85,vars:22,consts:function(){let Jr,wt,nr,tn,rn,vn,Gn,Yn,Dn,Ti,Ni,ci,Kt,Ar,ie,Ve;return Jr="Ugradi donacijski widget na svoju vlastitu web stranicu",wt="Prika\u017Ei Karticu",nr="Prika\u017Ei Glavnu Sliku",tn="Dodaj obrazac za Donacije",rn="Stiliziranje",vn="Kartica sjena",Gn="Nijedan",Yn="Srednje",Dn="Visoko",Ti="Osnovna boja",Ni="Sekundarna boja",ci="Tipografija",Kt="Polumjer Gumba",Ar="Kod za kopiranje:",ie="Molimo odaberite font",Ve="Raspon je izme\u0111u 0 i 30",[["fxLayout","row","fxLayout.md","row","fxLayout.sm","row wrap","fxLayoutAlign.lt-md","space-between","fxLayout.lt-sm","column","fxFlex","100%"],["fxFlex","100%","fxFlex.sm","100%","fxFlex.lt-sm","77%","fxLayout.xs","column"],["fxLayout","row wrap","fxLayout.xs","column","fxLayoutAlign","space-between baseline","ngClass","p-b-m"],Jr,["fxLayout","row","fxFlex","100%","fxLayoutAlign","start baseline","fxLayoutAlign.lt-sm","start space-around","fxLayoutGap.lt-sm","5%","fxFill",""],["fxLayoutAlign","space-between center","ngClass","p-xs","fxFlex.gt-md","100%","fxFlex.lt-md","100%","fxFill","",1,"grey-bg"],["fxLayout","column","fxFlex","90%","fxLayoutAlign","start start"],[1,"mat-body-1"],["fxLayout","column","fxLayout.lt-sm","row wrap","fxFlex","10%","fxLayoutAlign","start end","fXFlexAlign","start"],["mat-icon-button","",1,"copyLink","hover-class",3,"matTooltip","click"],["size","3x"],[3,"formGroup"],["color","primary","formControlName","hideWidgetCard",1,"mat-body-1",3,"change"],wt,["formControlName","showImageCheckbox","color","primary"],nr,["formControlName","addFormCheckbox","color","primary"],tn,["id","customise-branding",1,"m-t-m"],[1,"mat-elevation-z0"],["for","donation-form-label"],rn,["fxLayout","row","fxLayoutAlign","start center",1,"m-t-s","m-b-s"],["fxLayout","row","fxLayoutGap","4%","fxFill",""],["fxLayout","column","fxLayoutAlign","center center"],vn,["formControlName","boxShadowNumber",1,"custom-button-toggle-group",3,"change"],[3,"value"],Gn,Yn,Dn,["id","set-color"],["fxFlex","50","appearance","outline","floatLabel","always","color","primary"],Ti,["matInput","","type","text","placeholder","Ex. #ffff","formControlName","currentPrimaryColor",3,"change"],["matSuffix","","mat-icon-button",""],[1,"material-icons-outlined"],["matInput","","type","color","formControlName","currentPrimaryColor",3,"input"],["fxFlex","50","appearance","outline","floatLabel","always","color","primary",1,"m-l-s"],Ni,["matInput","","type","text","placeholder","Ex. #ffff","formControlName","currentSecondaryColor",3,"change"],["matInput","","type","color","formControlName","currentSecondaryColor",3,"input"],["fxFlex","50","appearance","outline"],["for","selectTypo"],ci,["formControlName","widgetFontName","id","selectTypo",3,"selectionChange"],[3,"ngStyle","value",4,"ngFor","ngForOf"],["class","mat-error","align","end",4,"ngIf"],["fxFlex","50","appearance","outline","color","primary",1,"m-l-s"],["for","set-button-radius-label"],Kt,["matInput","","type","number","min","0","max","30","formControlName","currentButtonRadius",3,"change"],[1,"mat-body-2"],Ar,["ngClass","p-l-s p-t-xs p-b-xs","fxLayoutGap","5%",1,"grey-bg","mat-body-1"],["fxFlex",""],["matInput","","readonly","true","cdkTextareaAutosize",""],["embedView",""],["fxLayoutAlign","end center"],["mat-icon-button","",1,"copyLink","hover-class",3,"matTooltip","cdkCopyToClipboard"],[3,"ngStyle","value"],["align","end",1,"mat-error"],ie,Ve]},template:function(wt,nr){if(1&wt&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),e.SDv(4,3),e.qZA(),e.TgZ(5,"div",4)(6,"div",5)(7,"div",6)(8,"div",7),e._uU(9),e.qZA()(),e.TgZ(10,"div",8)(11,"button",9),e.NdJ("click",function(){return nr.copyLink()}),e.TgZ(12,"mat-icon",10),e._uU(13,"content_copy"),e.qZA()()()()()(),e.TgZ(14,"form",11)(15,"p")(16,"mat-slide-toggle",12),e.NdJ("change",function(rn){return nr.setWidgetCheckbox(rn)}),e.TgZ(17,"span"),e.SDv(18,13),e.qZA()()(),e.TgZ(19,"p")(20,"mat-slide-toggle",14)(21,"span",7),e.SDv(22,15),e.qZA()()(),e.TgZ(23,"p")(24,"mat-slide-toggle",16)(25,"span",7),e.SDv(26,17),e.qZA()()(),e.TgZ(27,"div",18)(28,"mat-accordion")(29,"mat-expansion-panel",19)(30,"mat-expansion-panel-header")(31,"mat-panel-title")(32,"h2",20),e.SDv(33,21),e.qZA()()(),e.TgZ(34,"div",22)(35,"div",23)(36,"div",24)(37,"p"),e.SDv(38,25),e.qZA()(),e.TgZ(39,"div")(40,"mat-card")(41,"mat-button-toggle-group",26),e.NdJ("change",function(){return nr.updateBoxShadow()}),e.TgZ(42,"mat-button-toggle",27),e.SDv(43,28),e.qZA(),e.TgZ(44,"mat-button-toggle",27),e.SDv(45,29),e.qZA(),e.TgZ(46,"mat-button-toggle",27),e.SDv(47,30),e.qZA()()()()()(),e.TgZ(48,"div",31)(49,"mat-form-field",32)(50,"mat-label"),e.SDv(51,33),e.qZA(),e.TgZ(52,"input",34),e.NdJ("change",function(rn){return nr.updatePrimaryColorFromInput(rn)}),e.qZA(),e.TgZ(53,"button",35)(54,"mat-icon",36)(55,"input",37),e.NdJ("input",function(rn){return nr.updatePrimaryColorFromColorPicker(rn)}),e.qZA()()()(),e.TgZ(56,"mat-form-field",38)(57,"mat-label"),e.SDv(58,39),e.qZA(),e.TgZ(59,"input",40),e.NdJ("change",function(rn){return nr.updateSecondaryColorFromInput(rn)}),e.qZA(),e.TgZ(60,"button",35)(61,"mat-icon",36)(62,"input",41),e.NdJ("input",function(rn){return nr.updateSecondaryColorFromColorPicker(rn)}),e.qZA()()()()(),e.TgZ(63,"div")(64,"mat-form-field",42)(65,"mat-label",43),e.SDv(66,44),e.qZA(),e.TgZ(67,"mat-select",45),e.NdJ("selectionChange",function(){return nr.changeFontFamily()}),e.YNc(68,x,2,5,"mat-option",46),e.qZA(),e.YNc(69,z,3,0,"mat-hint",47),e.qZA(),e.TgZ(70,"mat-form-field",48)(71,"mat-label",49),e.SDv(72,50),e.qZA(),e.TgZ(73,"input",51),e.NdJ("change",function(){return nr.onchangeButtonRadius()}),e.qZA(),e.YNc(74,j,3,0,"mat-hint",47),e.qZA()()()()(),e.TgZ(75,"p",52),e.SDv(76,53),e.qZA(),e.TgZ(77,"div",54)(78,"div",55),e._UZ(79,"textarea",56,57),e.qZA(),e.TgZ(81,"div",58)(82,"button",59)(83,"mat-icon",10),e._uU(84,"content_copy"),e.qZA()()()()()()()),2&wt){let tn,rn;e.xp6(9),e.hij(" ",nr.truncateText(nr.shareLink,100)," "),e.xp6(2),e.s9C("matTooltip",nr.matTooltip),e.xp6(3),e.Q6J("formGroup",nr.pluginForm),e.xp6(16),e.Udp("padding-left",0,"px"),e.xp6(10),e.Gre("mat-elevation-z",nr.previewBoxShadowNumber,""),e.xp6(2),e.Q6J("value",1),e.xp6(2),e.Q6J("value",2),e.xp6(2),e.Q6J("value",3),e.xp6(9),e.Udp("cursor","pointer"),e.xp6(7),e.Udp("cursor","pointer"),e.xp6(6),e.Q6J("ngForOf",nr.fontList),e.xp6(1),e.Q6J("ngIf",""===(null==(tn=nr.pluginForm.get("widgetFontName"))?null:tn.value)),e.xp6(5),e.Q6J("ngIf",(null==(rn=nr.pluginForm.get("currentButtonRadius"))?null:rn.value)<0||(null==(rn=nr.pluginForm.get("currentButtonRadius"))?null:rn.value)>30),e.xp6(7),e.Udp("margin-top",nr.media.isActive("gt-sm")?"-8":"0","px"),e.xp6(1),e.s9C("matTooltip",nr.matTooltip),e.Q6J("cdkCopyToClipboard",nr.copyEmbedHTML())}},dependencies:[ee._Y,ee.Fj,ee.wV,ee.JJ,ee.JL,ee.qQ,ee.Fd,ee.sg,ee.u,l.mk,l.sg,l.O5,l.PC,r.CK,c.v_,c.pH,c.$V,c.nX,W.IC,L.k0,E.x8,he.Rr,_e.S$,Z.pp,Z.ib,Z.yz,Z.yK,m.eB,Te.A9,Te.Yi,v.Hw,de.gM,C.xw,C.SQ,C.Wh,C.s9,C.yH,n.oO,n.Zl,I.i3],styles:[".hover-class:hover{background-color:#d3d3d3}\n"],encapsulation:2}),yr})();class tt{constructor(Jr,wt,nr,tn,rn,vn,Gn,Yn,Dn,Ti,Ni,ci,Kt,Ar,ie,Ve,Mt,tr,kr){this.other_amount=!0,this.onetime_select=Jr,this.onetime_first=wt,this.onetime_second=nr,this.onetime_third=tn,this.onetime_forth=rn,this.onetime_style=vn,this.monthly_select=Gn,this.monthly_first=Yn,this.monthly_second=Dn,this.monthly_third=Ti,this.monthly_forth=Ni,this.monthly_style=ci,this.yearly_select=Kt,this.yearly_first=Ar,this.yearly_second=ie,this.yearly_third=Ve,this.yearly_forth=Mt,this.yearly_style=tr,this.other_amount=kr}}var We=s(48910),ze=s(81560);function we(yr,Jr){1&yr&&(e.TgZ(0,"h2"),e.SDv(1,16),e.qZA())}function Ye(yr,Jr){1&yr&&(e.TgZ(0,"mat-icon"),e._UZ(1,"mat-spinner",17),e.qZA())}function te(yr,Jr){1&yr&&(e.TgZ(0,"mat-error"),e.SDv(1,18),e.qZA())}function Se(yr,Jr){if(1&yr&&(e.TgZ(0,"mat-error")(1,"span"),e.SDv(2,19),e.qZA(),e._uU(3),e.qZA()),2&yr){const wt=e.oxw();e.xp6(3),e.AsE("\xa0 ",wt.currency_symbol,"",wt.min_donation_amount," ")}}function ke(yr,Jr){if(1&yr&&(e.TgZ(0,"mat-error")(1,"span"),e.SDv(2,20),e.qZA(),e._uU(3),e.qZA()),2&yr){const wt=e.oxw();e.xp6(3),e.AsE("\xa0 ",wt.currency_symbol,"",wt.max_donation_amount," ")}}function Ge(yr,Jr){1&yr&&(e.TgZ(0,"div",21)(1,"span"),e.SDv(2,22),e.qZA(),e.TgZ(3,"h2"),e.SDv(4,23),e.qZA()())}let Tt=(()=>{class yr{constructor(wt,nr,tn,rn,vn,Gn,Yn,Dn,Ti,Ni,ci){this._fundraiserService=wt,this.router=nr,this.clipboard=tn,this.paymentRequest=rn,this.media=vn,this.notificationService=Gn,this.donationService=Yn,this._accountService=Dn,this.data=Ti,this.dialogRef=Ni,this.customDomainService=ci,this.anystring="",this.currentPaymentValue=!0,this.isOtherSelected=!0,this.paymentAmountButton=1,this.shareLink="",this.isLoading=!1,this.saveButton=!0,this.CustomDonationConfiguration=new tt(!0,"15","50","100","250",!0,!0,"5","10","25","100",!0,!0,"50","100","250","500",!0),this.elementIdsOnetime=["onetimeFirst","onetimeSecond","onetimeThird","onetimeForth","onetimeOther"],this.paymentForm=new ee.nJ({otherAmountInput:new ee.p4("",[ee.kI.required,ee.kI.pattern(/^[0-9]*$/)])}),this.slug="",this.currency="",this.currency_symbol="",this.onetime_first="",this.onetime_second="",this.onetime_third="",this.onetime_forth="",this.other_amount_boolean=!1,this.max_donation_amount=1,this.min_donation_amount=1}ngOnChanges(wt){}ngOnInit(){this.initializeCurrencyAndDonationConfig(),this.updateValidatorsForOtherAmountInput(),this.extractSlugFromUrl(),this.generateShareLink()}initializeCurrencyAndDonationConfig(){this.currency_symbol=this.data?.fundraiser?.currency_symbol,this.currency=this.data?.fundraiser?.currency_code,this.other_amount_boolean=this.data?.fundraiser?.custom_donation_configuration?.other_amount,this.max_donation_amount=this.data?.fundraiser?.custom_donation_configuration?.max_donation_amount,this.min_donation_amount=this.data?.fundraiser?.custom_donation_configuration?.min_donation_amount}updateValidatorsForOtherAmountInput(){this.paymentForm.controls.otherAmountInput.setValidators([ee.kI.required,ee.kI.pattern(/^[0-9]*$/),ee.kI.min(this.min_donation_amount),ee.kI.max(this.max_donation_amount)]),this.paymentForm.controls.otherAmountInput.updateValueAndValidity()}extractSlugFromUrl(){let wt=this.router.url.split("/");this.slug=wt[2]}generateShareLink(){this.shareLink="https://whydonate.com/"+this._accountService.getLocaleId()+this.router.url}checkButtons(){0==this.isOtherSelected&&(this.isOtherSelected=!0)}copyLink(){this.clipboard.copy(this.shareLink)}checkOtherButton(){1==this.isOtherSelected&&(this.isOtherSelected=!1)}printFundraiser(){window.print()}getPreset(){this.customDomainService.isCustomDomain.subscribe(wt=>{try{this.slug=wt?this._fundraiserService.getCurrentFundraiserSlug():this.slug||"default-slug",this.isLoading=!0,this.presetUrl=`https://${window.location.hostname}/${this._accountService.getLocaleId()}/donate/${this.slug}?amount=${this.selectedAmount}&currency=${this.currency}`,this.isLoading=!1,this.currentPaymentValue=!1,this.paymentRequest.changeText(this.presetUrl),this.notificationService.openNotification("Generiraj uspje\u0161no.","","success")}catch(nr){console.error("Error generating preset URL:",nr),this.notificationService.openNotification("Error generating preset URL","","error")}},wt=>{console.error("Error subscribing to custom domain service:",wt),this.notificationService.openNotification("Error subscribing to custom domain service","","error")})}updateSelectedAmount(wt){this.selectedAmount=wt?.toString(),this.paymentRequest.setAmount(this.selectedAmount)}}return yr.\u0275fac=function(wt){return new(wt||yr)(e.Y36(V.R),e.Y36(P.F0),e.Y36(I.TU),e.Y36(D),e.Y36(M.u0),e.Y36(T.g),e.Y36(We.l),e.Y36(F.B),e.Y36(t.WI),e.Y36(t.so),e.Y36(le.c))},yr.\u0275cmp=e.Xpm({type:yr,selectors:[["app-payment-request"]],inputs:{selectedFundraiser:"selectedFundraiser",componentCalled:"componentCalled"},features:[e.TTD],decls:27,vars:17,consts:function(){let Jr,wt,nr,tn,rn,vn,Gn,Yn;return Jr="Unesi iznos",wt="Spremi",nr="Stvorite I Podijelite Zahtjev Za Pla\u0107anje",tn="Molimo unesite iznos",rn="Minimalni iznos je",vn="Maksimalni iznos je",Gn="Korak 2",Yn="Odaberite gdje \u017Eelite podijeliti",[["fxFlex.lt-sm","100%","fxFlex","100%"],["fxLayout","row wrap","fxLayout.xs","column","fxLayoutAlign","space-between baseline"],[4,"ngIf"],[3,"formGroup"],["fxLayout","row","fxLayoutGap.xs","2%","fxLayoutGap.lg","2%","fxLayoutGap.lt-md","2%","fxLayoutGap.lt-sm","2%","fxLayoutGap.lt-lg","2%","fxLayoutAlign","space-between center",1,"customFormField"],["fxFlex","60%","appearance","outline","floatLabel","always"],Jr,["fxLayout","column","matPrefix","","ngClass","p-r-m",1,"custom-p"],["fxLayout","row","fxLayoutAlign","center"],["fxLayout","row"],["required","","formControlName","otherAmountInput","matInput","","type","number","name","otherAmount","id","customDonationAmountInput",1,"right-align",3,"ngModel","ngModelChange"],["fxFlex","40%",1,"p-b-xs"],["fxLayout.xs","row wrap","id","preset-button","mat-flat-button","","color","accent",3,"disabled","click"],wt,["fxLayout","column",4,"ngIf"],[3,"type","preview","disablePayment","applyPadding"],nr,["color","accent","diameter","20"],tn,rn,vn,["fxLayout","column"],Gn,Yn]},template:function(wt,nr){1&wt&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,we,2,0,"h2",2),e.YNc(3,Ye,2,0,"mat-icon",2),e.qZA(),e.TgZ(4,"div")(5,"form",3)(6,"div",4)(7,"mat-form-field",5)(8,"mat-label"),e.SDv(9,6),e.qZA(),e.TgZ(10,"div",7)(11,"div",8)(12,"p"),e._uU(13),e.qZA()(),e.TgZ(14,"div",9)(15,"p"),e._uU(16),e.ALo(17,"uppercase"),e.qZA()()(),e.TgZ(18,"input",10),e.NdJ("ngModelChange",function(rn){return nr.otherAmount=rn})("ngModelChange",function(rn){return nr.updateSelectedAmount(rn)}),e.qZA(),e.YNc(19,te,2,0,"mat-error",2),e.YNc(20,Se,4,2,"mat-error",2),e.YNc(21,ke,4,2,"mat-error",2),e.qZA(),e.TgZ(22,"div",11)(23,"button",12),e.NdJ("click",function(){return nr.getPreset()}),e.SDv(24,13),e.qZA()()()(),e.YNc(25,Ge,5,0,"div",14),e._UZ(26,"app-share-fundraiser-page",15),e.qZA()()),2&wt&&(e.xp6(2),e.Q6J("ngIf","share-dialog"!=nr.componentCalled),e.xp6(1),e.Q6J("ngIf",nr.isLoading),e.xp6(2),e.Q6J("formGroup",nr.paymentForm),e.xp6(8),e.hij("\xa0",nr.currency_symbol,"\xa0"),e.xp6(3),e.hij("\xa0",e.lcZ(17,15,nr.currency),"\xa0"),e.xp6(2),e.Q6J("ngModel",nr.otherAmount),e.xp6(1),e.Q6J("ngIf",nr.paymentForm.hasError("required","otherAmountInput")),e.xp6(1),e.Q6J("ngIf",nr.paymentForm.hasError("min","otherAmountInput")),e.xp6(1),e.Q6J("ngIf",nr.paymentForm.hasError("max","otherAmountInput")),e.xp6(2),e.Q6J("disabled",!nr.otherAmount||nr.otherAmount<nr.min_donation_amount||nr.otherAmount>nr.max_donation_amount),e.xp6(2),e.Q6J("ngIf","share-dialog"===nr.componentCalled),e.xp6(1),e.Q6J("type","paymentRequest")("preview",!0)("disablePayment",nr.currentPaymentValue)("applyPadding",!0))},dependencies:[ee._Y,ee.Fj,ee.wV,ee.JJ,ee.JL,ee.Q7,ee.sg,ee.u,l.mk,l.O5,c.nI,c.v_,c.$V,c.g4,L.k0,m.eB,v.Hw,ze.sN,C.xw,C.SQ,C.Wh,C.yH,n.oO,ue,l.gd],styles:[".logos[_ngcontent-%COMP%]{max-width:55px;max-height:55px}.logosIng[_ngcontent-%COMP%]{max-width:50px;max-height:50px}.custom-p[_ngcontent-%COMP%]{display:block;line-height:8px;margin:0;padding:0 8px 0 0}  .mat-form-field-appearance-outline .mat-form-field-prefix .custom-p{position:relative;top:.4em}#customDonationAmountInput[_ngcontent-%COMP%]{font-size:18px}  .customFormField .mat-form-field-appearance-outline .mat-form-field-flex{min-height:50px!important;height:50px!important;align-items:center}"]}),yr})();var Et=s(6225),H=s(9),Y=s(36442),S=s(76243),K=s(8687);const Q=["embedView"];function B(yr,Jr){1&yr&&(e.TgZ(0,"span",22),e.SDv(1,23),e.qZA())}function re(yr,Jr){1&yr&&(e.TgZ(0,"span",24),e.SDv(1,25),e.qZA())}function fe(yr,Jr){1&yr&&(e.TgZ(0,"span",24),e.SDv(1,26),e.qZA())}function qe(yr,Jr){if(1&yr&&e.GkF(0,27),2&yr){e.oxw(2);const wt=e.MAs(20);e.Q6J("ngTemplateOutlet",wt)}}function $e(yr,Jr){if(1&yr&&e.GkF(0,27),2&yr){e.oxw(2);const wt=e.MAs(22);e.Q6J("ngTemplateOutlet",wt)}}function et(yr,Jr){if(1&yr&&e.GkF(0,27),2&yr){e.oxw(2);const wt=e.MAs(24);e.Q6J("ngTemplateOutlet",wt)}}function ot(yr,Jr){if(1&yr&&e.GkF(0,27),2&yr){e.oxw(4);const wt=e.MAs(2);e.Q6J("ngTemplateOutlet",wt)}}function ct(yr,Jr){if(1&yr&&e.GkF(0,27),2&yr){e.oxw(4);const wt=e.MAs(6);e.Q6J("ngTemplateOutlet",wt)}}function pt(yr,Jr){if(1&yr&&e.GkF(0,27),2&yr){e.oxw(4);const wt=e.MAs(8);e.Q6J("ngTemplateOutlet",wt)}}function $t(yr,Jr){if(1&yr&&e.GkF(0,27),2&yr){e.oxw(4);const wt=e.MAs(10);e.Q6J("ngTemplateOutlet",wt)}}function It(yr,Jr){if(1&yr&&e.GkF(0,27),2&yr){e.oxw(4);const wt=e.MAs(12);e.Q6J("ngTemplateOutlet",wt)}}function fr(yr,Jr){if(1&yr&&e.GkF(0,27),2&yr){e.oxw(4);const wt=e.MAs(2);e.Q6J("ngTemplateOutlet",wt)}}function yt(yr,Jr){if(1&yr&&(e.ynx(0,30),e.YNc(1,ot,1,1,"ng-container",31),e.YNc(2,ct,1,1,"ng-container",31),e.YNc(3,pt,1,1,"ng-container",31),e.YNc(4,$t,1,1,"ng-container",31),e.YNc(5,It,1,1,"ng-container",31),e.YNc(6,fr,1,1,"ng-container",32),e.BQk()),2&yr){const wt=e.oxw(3);e.Q6J("ngSwitch",wt.previewSwitchCase),e.xp6(1),e.Q6J("ngSwitchCase","donation-widget"),e.xp6(1),e.Q6J("ngSwitchCase","show-with-image"),e.xp6(1),e.Q6J("ngSwitchCase","donation-form+widget"),e.xp6(1),e.Q6J("ngSwitchCase","donation-form+image"),e.xp6(1),e.Q6J("ngSwitchCase","donation-button")}}function dr(yr,Jr){if(1&yr&&(e.TgZ(0,"div",28),e.YNc(1,yt,7,6,"ng-container",29),e.qZA()),2&yr){const wt=e.oxw(2);e.xp6(1),e.Q6J("ngIf","ownWebsite"===wt.type)}}function bt(yr,Jr){if(1&yr&&(e.TgZ(0,"div",13)(1,"div",14)(2,"div",15),e._UZ(3,"img",16),e.YNc(4,B,2,0,"span",17),e.YNc(5,re,2,0,"span",18),e.YNc(6,fe,2,0,"span",18),e.qZA(),e.TgZ(7,"div",19),e.YNc(8,qe,1,1,"ng-container",20),e.YNc(9,$e,1,1,"ng-container",20),e.YNc(10,et,1,1,"ng-container",20),e.YNc(11,dr,2,1,"div",21),e.qZA()()()),2&yr){const wt=e.oxw();e.xp6(4),e.Q6J("ngIf","fundraiser"===wt.type),e.xp6(1),e.Q6J("ngIf","donate"===wt.type),e.xp6(1),e.Q6J("ngIf","paymentRequest"===wt.type||"ownWebsite"===wt.type),e.xp6(2),e.Q6J("ngIf","fundraiser"===wt.type),e.xp6(1),e.Q6J("ngIf","donate"===wt.type),e.xp6(1),e.Q6J("ngIf","paymentRequest"===wt.type),e.xp6(1),e.Q6J("ngIf","ownWebsite"===wt.type)}}const ar=function(yr,Jr){return{"box-shadow":yr,"font-family":Jr}};function vt(yr,Jr){if(1&yr&&(e.TgZ(0,"mat-card",33),e.GkF(1,27)(2,27),e.qZA()),2&yr){const wt=e.oxw(),nr=e.MAs(14),tn=e.MAs(18);e.Q6J("ngStyle",e.WLB(3,ar,wt.boxShadow,null==wt.embedPreviewData?null:wt.embedPreviewData.fontFamily)),e.xp6(1),e.Q6J("ngTemplateOutlet",nr),e.xp6(1),e.Q6J("ngTemplateOutlet",tn)}}function qt(yr,Jr){if(1&yr&&e._UZ(0,"img",36),2&yr){const wt=e.oxw(2);e.Q6J("src",wt.fundraiserBackgroundImage,e.LSH)}}function br(yr,Jr){if(1&yr&&e._UZ(0,"img",36),2&yr){const wt=e.oxw(2);e.s9C("src",wt.youtubeThumbnail,e.LSH)}}function lt(yr,Jr){1&yr&&e._UZ(0,"img",37)}function De(yr,Jr){if(1&yr&&(e.YNc(0,qt,1,1,"img",34),e.YNc(1,br,1,1,"img",34),e.YNc(2,lt,1,0,"img",35)),2&yr){const wt=e.oxw();e.Q6J("ngIf",""!=wt.fundraiserBackgroundImage&&""==wt.fundraiserBackgroundVideo),e.xp6(1),e.Q6J("ngIf",wt.fundraiserBackgroundVideo||""!=wt.fundraiserBackgroundImage&&wt.fundraiserBackgroundVideo),e.xp6(1),e.Q6J("ngIf",!wt.fundraiserBackgroundImage&&!wt.fundraiserBackgroundVideo)}}function G(yr,Jr){if(1&yr&&(e.TgZ(0,"mat-card",33),e.GkF(1,27)(2,27)(3,27),e.qZA()),2&yr){const wt=e.oxw(),nr=e.MAs(4),tn=e.MAs(14),rn=e.MAs(18);e.Q6J("ngStyle",e.WLB(4,ar,wt.boxShadow,null==wt.embedPreviewData?null:wt.embedPreviewData.fontFamily)),e.xp6(1),e.Q6J("ngTemplateOutlet",nr),e.xp6(1),e.Q6J("ngTemplateOutlet",tn),e.xp6(1),e.Q6J("ngTemplateOutlet",rn)}}function U(yr,Jr){if(1&yr&&(e.TgZ(0,"mat-card",33),e.GkF(1,27)(2,27)(3,27),e.qZA()),2&yr){const wt=e.oxw(),nr=e.MAs(14),tn=e.MAs(16),rn=e.MAs(18);e.Q6J("ngStyle",e.WLB(4,ar,wt.boxShadow,null==wt.embedPreviewData?null:wt.embedPreviewData.fontFamily)),e.xp6(1),e.Q6J("ngTemplateOutlet",nr),e.xp6(1),e.Q6J("ngTemplateOutlet",tn),e.xp6(1),e.Q6J("ngTemplateOutlet",rn)}}function ne(yr,Jr){if(1&yr&&(e.TgZ(0,"mat-card",33),e.GkF(1,27)(2,27)(3,27)(4,27),e.qZA()),2&yr){const wt=e.oxw(),nr=e.MAs(4),tn=e.MAs(14),rn=e.MAs(16),vn=e.MAs(18);e.Q6J("ngStyle",e.WLB(5,ar,wt.boxShadow,null==wt.embedPreviewData?null:wt.embedPreviewData.fontFamily)),e.xp6(1),e.Q6J("ngTemplateOutlet",nr),e.xp6(1),e.Q6J("ngTemplateOutlet",tn),e.xp6(1),e.Q6J("ngTemplateOutlet",rn),e.xp6(1),e.Q6J("ngTemplateOutlet",vn)}}function Re(yr,Jr){if(1&yr&&e.GkF(0,27),2&yr){e.oxw();const wt=e.MAs(18);e.Q6J("ngTemplateOutlet",wt)}}function Xe(yr,Jr){if(1&yr&&(e.TgZ(0,"div",38),e._UZ(1,"app-amount-view",39)(2,"br")(3,"br")(4,"app-donation-progress-bar",40)(5,"br"),e.qZA()),2&yr){const wt=e.oxw();e.xp6(1),e.Q6J("fundraiserCardData",null==wt.amountProgressData?null:wt.amountProgressData.data)("symbol",wt.currency_symbol),e.xp6(3),e.Q6J("fundraiserCardData",null==wt.amountProgressData?null:wt.amountProgressData.data)}}function Nt(yr,Jr){if(1&yr&&(e.TgZ(0,"div",38)(1,"mat-tab-group",41)(2,"mat-tab",42)(3,"div",43)(4,"div",44)(5,"button",45),e._uU(6),e.ALo(7,"number"),e.qZA(),e._uU(8,"\xa0\xa0\xa0 "),e.qZA(),e.TgZ(9,"div",44)(10,"button",46),e._uU(11),e.ALo(12,"number"),e.qZA(),e._uU(13,"\xa0\xa0\xa0 "),e.qZA(),e.TgZ(14,"div",44)(15,"button",46),e._uU(16),e.ALo(17,"number"),e.qZA(),e._uU(18,"\xa0\xa0\xa0 "),e.qZA(),e.TgZ(19,"div",44)(20,"button",46),e._uU(21),e.ALo(22,"number"),e.qZA(),e._uU(23,"\xa0\xa0\xa0 "),e.qZA()()(),e.TgZ(24,"mat-tab",42)(25,"div",43)(26,"div",44)(27,"button",45),e._uU(28),e.ALo(29,"number"),e.qZA(),e._uU(30,"\xa0\xa0\xa0 "),e.qZA(),e.TgZ(31,"div",44)(32,"button",46),e._uU(33),e.ALo(34,"number"),e.qZA(),e._uU(35,"\xa0\xa0\xa0 "),e.qZA(),e.TgZ(36,"div",44)(37,"button",46),e._uU(38),e.ALo(39,"number"),e.qZA(),e._uU(40,"\xa0\xa0\xa0 "),e.qZA(),e.TgZ(41,"div",44)(42,"button",46),e._uU(43),e.ALo(44,"number"),e.qZA(),e._uU(45,"\xa0\xa0\xa0 "),e.qZA()()(),e.TgZ(46,"mat-tab",42)(47,"div",43)(48,"div",44)(49,"button",45),e._uU(50),e.ALo(51,"number"),e.qZA(),e._uU(52,"\xa0\xa0\xa0 "),e.qZA(),e.TgZ(53,"div",44)(54,"button",46),e._uU(55),e.ALo(56,"number"),e.qZA(),e._uU(57,"\xa0\xa0\xa0 "),e.qZA(),e.TgZ(58,"div",44)(59,"button",46),e._uU(60),e.ALo(61,"number"),e.qZA(),e._uU(62,"\xa0\xa0\xa0 "),e.qZA(),e.TgZ(63,"div",44)(64,"button",46),e._uU(65),e.ALo(66,"number"),e.qZA(),e._uU(67,"\xa0\xa0\xa0 "),e.qZA()()()(),e._UZ(68,"br"),e.qZA()),2&yr){const wt=e.oxw();e.xp6(2),e.s9C("label",wt.oneTimeLabel),e.xp6(4),e.AsE(" ",wt.currency_symbol," ",e.lcZ(7,27,wt.onetime_first),""),e.xp6(5),e.AsE(" ",wt.currency_symbol," ",e.lcZ(12,29,wt.onetime_second),""),e.xp6(5),e.AsE(" ",wt.currency_symbol," ",e.lcZ(17,31,wt.onetime_third),""),e.xp6(5),e.AsE(" ",wt.currency_symbol," ",e.lcZ(22,33,wt.onetime_forth),""),e.xp6(3),e.s9C("label",wt.monthlyLabel),e.xp6(4),e.AsE(" ",wt.currency_symbol," ",e.lcZ(29,35,wt.monthly_first),""),e.xp6(5),e.AsE(" ",wt.currency_symbol," ",e.lcZ(34,37,wt.monthly_second),""),e.xp6(5),e.AsE(" ",wt.currency_symbol," ",e.lcZ(39,39,wt.monthly_third),""),e.xp6(5),e.AsE(" ",wt.currency_symbol," ",e.lcZ(44,41,wt.monthly_forth),""),e.xp6(3),e.s9C("label",wt.yearlyLabel),e.xp6(4),e.AsE(" ",wt.currency_symbol," ",e.lcZ(51,43,wt.yearly_first),""),e.xp6(5),e.AsE(" ",wt.currency_symbol," ",e.lcZ(56,45,wt.yearly_second),""),e.xp6(5),e.AsE(" ",wt.currency_symbol," ",e.lcZ(61,47,wt.yearly_third),""),e.xp6(5),e.AsE(" ",wt.currency_symbol," ",e.lcZ(66,49,wt.yearly_forth),"")}}function Pt(yr,Jr){if(1&yr&&(e.TgZ(0,"p",38)(1,"button",47),e.SDv(2,48),e.qZA()()),2&yr){const wt=e.oxw();e.xp6(1),e.Udp("border-radius",(null==wt.embedPreviewData?null:wt.embedPreviewData.buttonRadius)+"px")("font-family",null==wt.embedPreviewData?null:wt.embedPreviewData.fontFamily)}}function Vt(yr,Jr){1&yr&&(e.TgZ(0,"div")(1,"div",49),e._UZ(2,"img",50),e.qZA()())}function Jt(yr,Jr){if(1&yr&&e._UZ(0,"img",63),2&yr){const wt=e.oxw(2);e.Q6J("src",wt.fundraiserBackgroundImage,e.LSH)}}function kt(yr,Jr){if(1&yr&&e._UZ(0,"img",63),2&yr){const wt=e.oxw(2);e.s9C("src",wt.youtubeThumbnail,e.LSH)}}function Me(yr,Jr){1&yr&&e._UZ(0,"img",64)}function ut(yr,Jr){if(1&yr&&(e.TgZ(0,"div")(1,"mat-card",51)(2,"div",52)(3,"mat-tab-group",53)(4,"mat-tab",42)(5,"div",54)(6,"div",44)(7,"button",45),e._uU(8),e.ALo(9,"number"),e.qZA(),e._uU(10,"\xa0\xa0\xa0 "),e.qZA(),e.TgZ(11,"div",44)(12,"button",46),e._uU(13),e.ALo(14,"number"),e.qZA(),e._uU(15,"\xa0\xa0\xa0 "),e.qZA(),e.TgZ(16,"div",44)(17,"button",46),e._uU(18),e.ALo(19,"number"),e.qZA(),e._uU(20,"\xa0\xa0\xa0 "),e.qZA(),e.TgZ(21,"div",44)(22,"button",46),e._uU(23),e.ALo(24,"number"),e.qZA()()(),e._UZ(25,"br"),e.qZA(),e.TgZ(26,"mat-tab",42)(27,"div",54)(28,"div",44)(29,"button",45),e._uU(30),e.ALo(31,"number"),e.qZA(),e._uU(32,"\xa0\xa0\xa0 "),e.qZA(),e.TgZ(33,"div",44)(34,"button",46),e._uU(35),e.ALo(36,"number"),e.qZA(),e._uU(37,"\xa0\xa0\xa0 "),e.qZA(),e.TgZ(38,"div",44)(39,"button",46),e._uU(40),e.ALo(41,"number"),e.qZA(),e._uU(42,"\xa0\xa0\xa0 "),e.qZA(),e.TgZ(43,"div",44)(44,"button",46),e._uU(45),e.ALo(46,"number"),e.qZA()()(),e._UZ(47,"br"),e.qZA(),e.TgZ(48,"mat-tab",42)(49,"div",54)(50,"div",44)(51,"button",45),e._uU(52),e.ALo(53,"number"),e.qZA(),e._uU(54,"\xa0\xa0\xa0 "),e.qZA(),e.TgZ(55,"div",44)(56,"button",46),e._uU(57),e.ALo(58,"number"),e.qZA(),e._uU(59,"\xa0\xa0\xa0 "),e.qZA(),e.TgZ(60,"div",44)(61,"button",46),e._uU(62),e.ALo(63,"number"),e.qZA(),e._uU(64,"\xa0\xa0\xa0 "),e.qZA(),e.TgZ(65,"div",44)(66,"button",46),e._uU(67),e.ALo(68,"number"),e.qZA()()(),e._UZ(69,"br"),e.qZA()(),e._UZ(70,"br"),e.TgZ(71,"div",55),e._UZ(72,"br"),e.TgZ(73,"button",56),e.SDv(74,57),e.qZA()()(),e._UZ(75,"mat-divider",58),e.TgZ(76,"div",59),e.YNc(77,Jt,1,1,"img",60),e.YNc(78,kt,1,1,"img",60),e.YNc(79,Me,1,0,"img",61),e._UZ(80,"br")(81,"img",62),e.qZA()()()),2&yr){const wt=e.oxw();e.xp6(4),e.s9C("label",wt.oneTimeLabel),e.xp6(4),e.AsE(" ",wt.currency_symbol," ",e.lcZ(9,30,wt.onetime_first),""),e.xp6(5),e.AsE(" ",wt.currency_symbol," ",e.lcZ(14,32,wt.onetime_second),""),e.xp6(5),e.AsE(" ",wt.currency_symbol," ",e.lcZ(19,34,wt.onetime_third),""),e.xp6(5),e.AsE(" ",wt.currency_symbol," ",e.lcZ(24,36,wt.onetime_forth)," "),e.xp6(3),e.s9C("label",wt.monthlyLabel),e.xp6(4),e.AsE(" ",wt.currency_symbol," ",e.lcZ(31,38,wt.monthly_first),""),e.xp6(5),e.AsE(" ",wt.currency_symbol," ",e.lcZ(36,40,wt.monthly_second),""),e.xp6(5),e.AsE(" ",wt.currency_symbol," ",e.lcZ(41,42,wt.monthly_third),""),e.xp6(5),e.AsE(" ",wt.currency_symbol," ",e.lcZ(46,44,wt.monthly_forth)," "),e.xp6(3),e.s9C("label",wt.yearlyLabel),e.xp6(4),e.AsE(" ",wt.currency_symbol," ",e.lcZ(53,46,wt.yearly_first),""),e.xp6(5),e.AsE(" ",wt.currency_symbol," ",e.lcZ(58,48,wt.yearly_second),""),e.xp6(5),e.AsE(" ",wt.currency_symbol," ",e.lcZ(63,50,wt.yearly_third),""),e.xp6(5),e.AsE(" ",wt.currency_symbol," ",e.lcZ(68,52,wt.yearly_forth)," "),e.xp6(10),e.Q6J("ngIf",""!=wt.fundraiserBackgroundImage&&""==wt.fundraiserBackgroundVideo),e.xp6(1),e.Q6J("ngIf",wt.fundraiserBackgroundVideo||""!=wt.fundraiserBackgroundImage&&wt.fundraiserBackgroundVideo),e.xp6(1),e.Q6J("ngIf",!wt.fundraiserBackgroundImage&&!wt.fundraiserBackgroundVideo)}}function nt(yr,Jr){if(1&yr&&(e.TgZ(0,"div",65)(1,"mat-card")(2,"mat-card-content",66)(3,"p",67),e._uU(4),e.qZA(),e._UZ(5,"br"),e.TgZ(6,"p",68),e._uU(7," \xa0 "),e._UZ(8,"img",69),e._uU(9,"\xa0\xa0\xa0 "),e._UZ(10,"img",70),e._uU(11,"\xa0\xa0\xa0 "),e._UZ(12,"img",71),e._uU(13,"\xa0 "),e.qZA(),e.TgZ(14,"p",68),e._uU(15," \xa0 "),e._UZ(16,"img",72),e._uU(17,"\xa0\xa0\xa0 "),e._UZ(18,"img",73),e._uU(19,"\xa0\xa0\xa0 "),e._UZ(20,"img",74),e._uU(21,"\xa0 "),e.qZA(),e.TgZ(22,"p",68),e._uU(23," \xa0 "),e._UZ(24,"img",75),e._uU(25,"\xa0\xa0\xa0 "),e._UZ(26,"img",76),e._uU(27,"\xa0\xa0\xa0 "),e._UZ(28,"img",77),e._uU(29,"\xa0 "),e.qZA(),e._UZ(30,"br"),e.TgZ(31,"p",78)(32,"button",56),e.SDv(33,79),e.qZA()()()(),e.TgZ(34,"mat-hint",80),e.SDv(35,81),e.qZA()()),2&yr){const wt=e.oxw();e.xp6(4),e.AsE(" ",wt.currency_symbol," ",wt.selectedAmount||"- - -"," ")}}let Ht=(()=>{class yr{constructor(wt,nr,tn,rn,vn,Gn,Yn,Dn,Ti,Ni,ci){this.router=wt,this.dialog=nr,this.paymentRequest=tn,this.media=rn,this._accountService=vn,this._mediaService=Gn,this._themeService=Yn,this.fundraiserService=Dn,this.locale=Ti,this.data=Ni,this.dialogRef=ci,this.type="",this.preview=!1,this.shareLink="",this.oneTimeLabel="Jednom",this.monthlyLabel="Mjese\u010Dno",this.yearlyLabel="Godi\u0161nje",this.matTooltip="Kopirajte link za prikupljanje sredstava.",this.currency_symbol="",this.onetime_first="",this.onetime_second="",this.onetime_third="",this.onetime_forth="",this.monthly_first="",this.monthly_second="",this.monthly_third="",this.monthly_forth="",this.yearly_first="",this.yearly_second="",this.yearly_third="",this.yearly_forth="",this.fundraiserBackgroundImage="",this.fundraiserBackgroundVideo="",this.video="",this.boxShadow="0 2px 1px -1px #0003, 0 1px 1px #00000024, 0 1px 3px #0000001f",this.previewSwitchCase="donation-widget",this.locale=this._accountService.getLocaleId()}ngOnInit(){this.currency_symbol=this.data?.fundraiser?.currency_symbol,this.onetime_first=this.data?.fundraiser?.custom_donation_configuration?.onetime_first,this.onetime_second=this.data?.fundraiser?.custom_donation_configuration?.onetime_second,this.onetime_third=this.data?.fundraiser?.custom_donation_configuration?.onetime_third,this.onetime_forth=this.data?.fundraiser?.custom_donation_configuration?.onetime_forth,this.monthly_first=this.data?.fundraiser?.custom_donation_configuration?.monthly_first,this.monthly_second=this.data?.fundraiser?.custom_donation_configuration?.monthly_second,this.monthly_third=this.data?.fundraiser?.custom_donation_configuration?.monthly_third,this.monthly_forth=this.data?.fundraiser?.custom_donation_configuration?.monthly_forth,this.yearly_first=this.data?.fundraiser?.custom_donation_configuration?.yearly_first,this.yearly_second=this.data?.fundraiser?.custom_donation_configuration?.yearly_second,this.yearly_third=this.data?.fundraiser?.custom_donation_configuration?.yearly_third,this.yearly_forth=this.data?.fundraiser?.custom_donation_configuration?.yearly_forth,""!=this.data?.fundraiser?.background?.image&&""!=this.data?.fundraiser?.background?.video||""==this.data?.fundraiser?.background?.image&&""!=this.data?.fundraiser?.background?.video||""!=this.data?.fundraiser?.background?.image&&""==this.data?.fundraiser?.background?.video?(this.fundraiserBackgroundImage=this.data?.fundraiser?.background?.image,this.fundraiserBackgroundVideo=this.data?.fundraiser?.background?.video):(this.fundraiserBackgroundImage=this.data?.fundraiser?.parent?.background?.image,this.fundraiserBackgroundVideo=this.data?.fundraiser?.parent?.background?.video);const wt=this.fundraiserBackgroundVideo;if(this.youtubeThumbnail=this.checkVideoUrl(wt),this.videoPath=wt,"donate"==this.type){let nr=this.router.url.split("/");this.shareLink=i.N.homeUrl+"/"+this._accountService.getLocaleId()+"/"+this.type+"/"+nr[2]}else if("fundraiser"==this.type){let nr=this.router.url.split("/");this.shareLink=i.N.homeUrl+"/"+this._accountService.getLocaleId()+"/"+nr[1]+"/"+nr[2]}else this.paymentRequest.currentCustomText.subscribe(nr=>{this.shareLink=nr});this.paymentRequest.currentCustomAmount.subscribe(nr=>{this.selectedAmount=nr}),this._accountService.getWidgetCheckbox().subscribe(nr=>{this.previewSwitchCase=nr}),this.fundraiserService.getFundraiserBySlug(this.slug,this.locale).subscribe(nr=>{this.profileResponse=nr?.data?.result,this._themeService.setTheme(this.profileResponse?.profile?.primary_color,this.profileResponse?.profile?.secondary_color,this.profileResponse?.profile?.fonts),this._mediaService.updateEmbedPreview(this.profileResponse?.profile?.card_shadow,this.profileResponse?.profile?.primary_color,this.profileResponse?.profile?.secondary_color,this.profileResponse?.profile?.fonts,this.profileResponse?.profile?.button_radius)}),this._mediaService.currentcustomEmbedPreview.subscribe(nr=>{nr&&(this.embedPreviewData=nr,this._themeService.setTheme(this.embedPreviewData.primaryColor,this.embedPreviewData.secondaryColor,this.embedPreviewData.fontFamily),this.boxShadow=this.boxShadowSet(this.embedPreviewData.boxShadowLevel))})}ngOnDestroy(){this.profileResponse&&this._themeService.setTheme(this.profileResponse?.profile?.primary_color,this.profileResponse?.profile?.secondary_color,this.profileResponse?.profile?.fonts)}boxShadowSet(wt){let nr="";switch(wt){case 1:default:nr="0 2px 1px -1px #0003, 0 1px 1px #00000024, 0 1px 3px #0000001f";break;case 2:nr="0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f";break;case 3:nr="0 2px 4px -1px #0003, 0 4px 5px #00000024, 0 1px 10px #0000001f"}return nr}checkVideoUrl(wt){const nr=this.getVideoIdFromLink(wt,/^https?:\/\/(?:www\.)?vimeo\.com\/(\d+)/),tn=this.getVideoIdFromLink(wt,/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:embed\/|watch\?v=|v\/|shorts\/)|youtu\.be\/)([\w\-]+)(?:\S+)?$/);return nr?`https://vumbnail.com/${nr}.jpg`:tn?`https://i.ytimg.com/vi/${tn}/mqdefault.jpg`:"unknown"}getVideoIdFromLink(wt,nr){const tn=wt?.match(nr);return tn&&tn[1]?tn[1]:""}}return yr.\u0275fac=function(wt){return new(wt||yr)(e.Y36(P.F0),e.Y36(t.uw),e.Y36(D),e.Y36(M.u0),e.Y36(F.B),e.Y36(se.y),e.Y36(Et.f),e.Y36(V.R),e.Y36(e.soG),e.Y36(t.WI),e.Y36(t.so))},yr.\u0275cmp=e.Xpm({type:yr,selectors:[["app-share-preview"]],viewQuery:function(wt,nr){if(1&wt&&e.Gf(Q,7),2&wt){let tn;e.iGM(tn=e.CRH())&&(nr.embedView=tn.first)}},inputs:{type:"type",preview:"preview",profileResponse:"profileResponse",slug:"slug",amountProgressData:"amountProgressData"},decls:25,vars:1,consts:function(){let Jr,wt,nr,tn,rn,vn,Gn;return Jr="Pregled Stranice za Sakuplja\u010D Sredstava",wt="Donirajte Pregled Stranice",nr="Pregled widgeta za donacije",tn="Donacija",rn="Donacija",vn="Donacija",Gn="Stvarni zaslon za pla\u0107anje mo\u017Ee se razlikovati.",[["ngClass.lt-sm","m-t-xl","ngClass.sm","m-t-xl",4,"ngIf"],["widget",""],["imageVideo",""],["widgetImage",""],["form",""],["formImage",""],["donationButton",""],["widgetBody",""],["formBody",""],["donationButtonBody",""],["fundraiserPreview",""],["donationFormPreview",""],["paymentRequest",""],["ngClass.lt-sm","m-t-xl","ngClass.sm","m-t-xl"],["fxFlex","100%"],[1,"mat-body-1","p-b-m"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/visibilityOn/public"],["fxFlex.gt-md","40%","fxLayoutAlign.gt-md","start center","fxFlexOffset","8px",4,"ngIf"],["fxFlexOffset","8px",4,"ngIf"],["fxLayoutAlign","center",1,"grey-bg","p-m"],[3,"ngTemplateOutlet",4,"ngIf"],["fxFlex","90%","fxFlex.sm","55%",4,"ngIf"],["fxFlex.gt-md","40%","fxLayoutAlign.gt-md","start center","fxFlexOffset","8px"],Jr,["fxFlexOffset","8px"],wt,nr,[3,"ngTemplateOutlet"],["fxFlex","90%","fxFlex.sm","55%"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[3,"ngTemplateOutlet",4,"ngSwitchCase"],[3,"ngTemplateOutlet",4,"ngSwitchDefault"],[1,"donation-form-preview",3,"ngStyle"],["mat-card-image","","loading","lazy",3,"src",4,"ngIf"],["mat-card-image","","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fundraiser_default_bg/public","loading","lazy",4,"ngIf"],["mat-card-image","","loading","lazy",3,"src"],["mat-card-image","","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fundraiser_default_bg/public","loading","lazy"],[1,"donation-form-preview"],[3,"fundraiserCardData","symbol"],[3,"fundraiserCardData"],["mat-stretch-tabs","","color","accent"],[3,"label"],["fxLayoutAlign","center","fxLayout","row wrap"],[1,"p-t-s"],["mat-button","","color","primary",1,"mat-flat-button"],["mat-stroked-button",""],["fxFlex","","mat-flat-button","","color","accent"],tn,["fxFlex.lt-sm","100%"],["ngClass.lg","m-r-l","fxLayoutAlign.gt-md","end center","fxFlex.gt-md","110","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fundraiserpage/public",1,"w-100"],["fxLayout","row","fxLayout.lt-sm","row wrap","fxFlex.lt-sm","100%","fxLayoutAlign","center",1,"donation-form-preview"],["fxFlex.lt-sm","100%","fxFlex","60"],["mat-stretch-tabs",""],["fxLayout","row wrap","fxLayoutAlign","center"],["fxLayout","column","fxLayout.lt-sm","row","fxLayoutAlign","center center","ngClass.lt-sm","m-b-l"],["mat-flat-button","","color","accent"],rn,["vertical","true","fxHide.lt-sm",""],["fxLayout","column","fxFlex.lt-sm","95%","fxFlex","40"],["loading","lazy",3,"src",4,"ngIf"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fundraiser_default_bg/public","loading","lazy",4,"ngIf"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/custom-donation/public"],["loading","lazy",3,"src"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fundraiser_default_bg/public","loading","lazy"],["fxLayout","column"],["ngClass","p-m"],["fxLayoutAlign","center",1,"mat-headline"],["fxLayout","row","fxLayoutAlign","space-between center"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/visa/public",1,"logos"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/master-card/public",1,"logos"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/bancontact/public",1,"logos"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/sofort/public",1,"logos"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/ideal/public",1,"logos"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/paypal/public",1,"logos"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/belfius/public",1,"logos"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/kbc/public",1,"logos"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/eps/public",1,"logos"],["fxLayoutAlign","center"],vn,[1,"mat-caption"],Gn]},template:function(wt,nr){1&wt&&(e.YNc(0,bt,12,7,"div",0),e.YNc(1,vt,3,6,"ng-template",null,1,e.W1O),e.YNc(3,De,3,3,"ng-template",null,2,e.W1O),e.YNc(5,G,4,7,"ng-template",null,3,e.W1O),e.YNc(7,U,4,7,"ng-template",null,4,e.W1O),e.YNc(9,ne,5,8,"ng-template",null,5,e.W1O),e.YNc(11,Re,1,1,"ng-template",null,6,e.W1O),e.YNc(13,Xe,6,3,"ng-template",null,7,e.W1O),e.YNc(15,Nt,69,51,"ng-template",null,8,e.W1O),e.YNc(17,Pt,3,4,"ng-template",null,9,e.W1O),e.YNc(19,Vt,3,0,"ng-template",null,10,e.W1O),e.YNc(21,ut,82,54,"ng-template",null,11,e.W1O),e.YNc(23,nt,36,2,"ng-template",null,12,e.W1O)),2&wt&&e.Q6J("ngIf",!nr.preview)},dependencies:[l.mk,l.O5,l.tP,l.PC,l.RF,l.n9,l.ED,c.pH,_e.S$,_e.Qi,_e.k0,H.d,Y.SK,Y.R7,m.eB,C.xw,C.Wh,C.UT,C.yH,n.b8,n.oO,n.Zl,S.y,K.s,l.JJ],styles:[".logos[_ngcontent-%COMP%]{max-width:55px;max-height:55px}.logosIng[_ngcontent-%COMP%]{max-width:50px;max-height:50px}"]}),yr})();function pr(yr,Jr){1&yr&&(e.TgZ(0,"h2"),e.SDv(1,22),e.qZA())}function Lr(yr,Jr){if(1&yr&&(e.TgZ(0,"div",20)(1,"span"),e.SDv(2,21),e.qZA(),e.YNc(3,pr,2,0,"h2",16),e.qZA()),2&yr){const wt=e.oxw();e.xp6(3),e.Q6J("ngIf","ownWebsite"!=wt.selectedPanel)}}function Kr(yr,Jr){1&yr&&(e.TgZ(0,"div"),e._UZ(1,"app-share-fundraiser-page",23),e.qZA()),2&yr&&(e.xp6(1),e.Q6J("type","fundraiser")("disablePayment",!1))}function Cn(yr,Jr){1&yr&&(e.TgZ(0,"div"),e._UZ(1,"app-share-fundraiser-page",23),e.qZA()),2&yr&&(e.xp6(1),e.Q6J("type","donate")("disablePayment",!1))}function Wn(yr,Jr){if(1&yr&&(e.TgZ(0,"div",24),e._UZ(1,"app-payment-request",25),e.qZA()),2&yr){const wt=e.oxw();e.xp6(1),e.Q6J("selectedFundraiser",wt.data.fundraiser)("componentCalled","share-dialog")}}function zn(yr,Jr){if(1&yr&&(e.TgZ(0,"div",24),e._UZ(1,"app-embed",26),e.qZA()),2&yr){const wt=e.oxw();e.xp6(1),e.Q6J("slug",null==wt.data.fundraiser?null:wt.data.fundraiser.slug)("selectedFundraiser",wt.data.fundraiser)("amountProgressData",wt.data)("profileResponse",wt.profileResponse)}}let ti=(()=>{class yr{constructor(wt,nr,tn){this.dialogRef=wt,this.data=nr,this.changerequest=tn,this.fundraiserLabel="Stranica Sakuplja\u010D Sredstava ",this.donationLabel="Stranica Za Donacije",this.paymentRequestLabel="Zahtjev za Pla\u0107anje",this.ownWebsiteLabel="Na Vlastitoj Web Stranici (dodatak)",this.selectedPanel="fundraiser",this.selectedName=this.fundraiserLabel}ngOnInit(){this.changerequest.currentCustomText.subscribe(wt=>{""!==wt&&(this.selectedPanel=wt,this.selectPanel(wt))}),this.slug=this.data.fundraiser.slug,this.profileResponse=this.data.profileResponse.profile}tabChange(wt){}onCloseClick(){this.dialogRef.close()}selectPanel(wt){try{switch(this.selectedPanel=wt,wt){case"fundraiser":this.selectedName=this.fundraiserLabel;break;case"donate":this.selectedName=this.donationLabel;break;case"paymentRequest":this.selectedName=this.paymentRequestLabel;break;case"ownWebsite":this.selectedName=this.ownWebsiteLabel;break;default:console.warn(`Unexpected panel value: ${wt}`),this.selectedName=this.fundraiserLabel}}catch(nr){console.error("Error selecting panel:",nr),this.selectedPanel="fundraiser",this.selectedName=this.fundraiserLabel}}}return yr.\u0275fac=function(wt){return new(wt||yr)(e.Y36(t.so),e.Y36(t.WI),e.Y36(d.q))},yr.\u0275cmp=e.Xpm({type:yr,selectors:[["app-share-dialog"]],decls:32,vars:13,consts:function(){let Jr,wt,nr,tn;return Jr="Korak 1",wt="Odaberite ono \u0161to \u017Eelite podijeliti",nr="Korak 2",tn="Odaberite gdje \u017Eelite podijeliti",[["ngClass","p-l",1,"custom-theme-branding"],["fxLayout","column","fxFill","","fxLayoutAlign","flex-end flex-end"],["mat-icon-button","",3,"click"],["fxLayout","row","fxLayout.xs","column","fxLayout.lt-sm","column","fxLayout.lt-md","column","fxLayoutGap","5%"],["fxLayout","column","fxFlex","55%"],["fxLayout","column"],Jr,wt,["appearance","outline"],["for","select-option"],["id","select-option",3,"value","valueChange","selectionChange"],["value","fundraiser"],["value","donate"],["value","paymentRequest"],["value","ownWebsite"],["fxLayout","column","ngClass","p-t-s",4,"ngIf"],[4,"ngIf"],["ngClass","p-t-s",4,"ngIf"],["fxLayout","column","fxFlex","40%"],[3,"type","amountProgressData","slug"],["fxLayout","column","ngClass","p-t-s"],nr,tn,[3,"type","disablePayment"],["ngClass","p-t-s"],[3,"selectedFundraiser","componentCalled"],[3,"slug","selectedFundraiser","amountProgressData","profileResponse"]]},template:function(wt,nr){1&wt&&(e.TgZ(0,"div",0)(1,"div",1)(2,"button",2),e.NdJ("click",function(){return nr.onCloseClick()}),e.TgZ(3,"mat-icon"),e._uU(4,"close"),e.qZA()()(),e.TgZ(5,"div",3)(6,"div",4)(7,"div",5)(8,"div",5)(9,"span"),e.SDv(10,6),e.qZA(),e.TgZ(11,"h2"),e.SDv(12,7),e.qZA()(),e.TgZ(13,"mat-form-field",8)(14,"mat-label",9),e._uU(15,"Select option"),e.qZA(),e.TgZ(16,"mat-select",10),e.NdJ("valueChange",function(rn){return nr.selectedPanel=rn})("selectionChange",function(rn){return nr.selectPanel(rn.value)}),e.TgZ(17,"mat-option",11),e._uU(18),e.qZA(),e.TgZ(19,"mat-option",12),e._uU(20),e.qZA(),e.TgZ(21,"mat-option",13),e._uU(22),e.qZA(),e.TgZ(23,"mat-option",14),e._uU(24),e.qZA()()(),e.YNc(25,Lr,4,1,"div",15),e.qZA(),e.YNc(26,Kr,2,2,"div",16),e.YNc(27,Cn,2,2,"div",16),e.YNc(28,Wn,2,2,"div",17),e.YNc(29,zn,2,4,"div",17),e.qZA(),e.TgZ(30,"div",18),e._UZ(31,"app-share-preview",19),e.qZA()()()),2&wt&&(e.xp6(16),e.Q6J("value",nr.selectedPanel),e.xp6(2),e.Oqu(nr.fundraiserLabel),e.xp6(2),e.Oqu(nr.donationLabel),e.xp6(2),e.Oqu(nr.paymentRequestLabel),e.xp6(2),e.Oqu(nr.ownWebsiteLabel),e.xp6(1),e.Q6J("ngIf","paymentRequest"!==nr.selectedPanel),e.xp6(1),e.Q6J("ngIf","fundraiser"===nr.selectedPanel),e.xp6(1),e.Q6J("ngIf","donate"===nr.selectedPanel),e.xp6(1),e.Q6J("ngIf","paymentRequest"===nr.selectedPanel),e.xp6(1),e.Q6J("ngIf","ownWebsite"===nr.selectedPanel),e.xp6(2),e.Q6J("type",nr.selectedPanel)("amountProgressData",nr.data)("slug",nr.slug))},dependencies:[l.mk,l.O5,r.CK,c.v_,c.$V,E.x8,m.eB,v.Hw,C.xw,C.SQ,C.Wh,C.s9,C.yH,n.oO,ue,Ne,Tt,Ht]}),yr})()},532:(St,be,s)=>{"use strict";s.d(be,{k:()=>D});var t=s(45720),e=s(73991),d=s(76037),l=s(47692),r=s(43073),c=s(27579);let E=(()=>{class M{constructor(F,le,V,de){this._notificationService=F,this._fundraiserService=le,this.data=V,this.dialogRef=de}sendUpdateEmail(){this._fundraiserService.shareUpdates(this.data).subscribe(F=>{this._notificationService.openNotification("Jedna e-po\u0161ta s najnovijim a\u017Euriranjem poslana je svim donatorima.","OK","success"),this.dialogRef.close()})}onCloseClick(){this.dialogRef.close()}}return M.\u0275fac=function(F){return new(F||M)(e.Y36(d.g),e.Y36(l.R),e.Y36(t.WI),e.Y36(t.so))},M.\u0275cmp=e.Xpm({type:M,selectors:[["app-share-update-email"]],decls:12,vars:0,consts:function(){let T,F,le;return T="Jeste li sigurni da \u017Eelite poslati ovaj email svim svojim donatorima? Mo\u017Eete to u\u010Diniti samo jednom po a\u017Euriranju.",F="Blizu",le="Po\u0161aljite E-po\u0161tu",[["fxLayout","column","fxFill","","fxLayoutAlign","flex-end flex-end"],["mat-icon-button","",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],[1,"mat-typography"],T,["align","end"],["mat-flat-button","",3,"click"],F,["mat-flat-button","","color","accent",3,"click"],le]},template:function(F,le){1&F&&(e.TgZ(0,"div")(1,"div",0)(2,"button",1),e.NdJ("click",function(){return le.onCloseClick()}),e._UZ(3,"img",2),e.qZA()(),e.TgZ(4,"mat-dialog-content")(5,"p",3),e.SDv(6,4),e.qZA()(),e.TgZ(7,"mat-dialog-actions",5)(8,"button",6),e.NdJ("click",function(){return le.onCloseClick()}),e.SDv(9,7),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return le.sendUpdateEmail()}),e.SDv(11,9),e.qZA()()())},dependencies:[r.eB,t.xY,t.H8,c.xw,c.Wh,c.s9]}),M})();var m=s(9206),v=s(64886),C=s(21704),n=s(17774),i=s(74351),P=s(5934);function I(M,T){1&M&&(e.TgZ(0,"p",35),e.SDv(1,36),e.qZA())}function q(M,T){if(1&M){const F=e.EpF();e.TgZ(0,"div",30)(1,"p",31),e.SDv(2,32),e.qZA(),e.TgZ(3,"button",33),e.NdJ("click",function(){e.CHM(F);const V=e.oxw();return e.KtG(V.onSendEmailClick())}),e.SDv(4,34),e.qZA()(),e.YNc(5,I,2,0,"ng-template",10)}if(2&M){const F=e.oxw();e.xp6(3),e.Q6J("disabled",F.disableSendEmail),e.xp6(2),e.Q6J("ngIf",F.noDonationNote)}}let D=(()=>{class M{constructor(F,le,V,de,ye){this.router=F,this._accountService=le,this.dialog=V,this.data=de,this.dialogRef=ye,this.shareLink="",this.content="",this.messageContent="",this.date="",this.isLoggedIn=!1,this.disableSendEmail=!1,this.disableSocialShare=!1,this.noDonationNote=!0}ngOnInit(){this.getLoggedInInfo();const F=new DOMParser,le=this.data?.update?.content,V=F.parseFromString(le,"text/html");this.content=V.body?.textContent||"";let de=this.router.url.split("/");this.shareLink=m.N.homeUrl+"/"+this._accountService.getLocaleId()+"/"+de[1]+"/"+de[2],this.messageContent=this.generateMessage(500,this.content),this.disableSendEmail=null==this.data.shared||1==this.data.shared||0==this.data?.currentFundraiser?.donation?.count,this.noDonationNote=0==this.data?.currentFundraiser?.donation?.count,this.date=this.data?.update?.date,this.content.length>160&&(this.content=this.content.substring(0,500-"...".length)+"...")}getLoggedInInfo(){this._accountService.getLoginInformation().subscribe(F=>{this.isLoggedIn=1==F})}generateMessage(F,le){return le.length>F&&(le=le.substring(0,F-"...".length)+"..."),le}onSendEmailClick(){this.dialog.open(E,{maxHeight:"70vh",maxWidth:"85vh",minWidth:"7vh",data:{fundraiserId:this.data?.currentFundraiser?.id,slug:this.data?.currentFundraiser?.slug,updateId:this.data?.update?.id,locale:this._accountService.getLocaleId()}}),this.dialogRef.close()}onCloseClick(){this.dialogRef.close()}}return M.\u0275fac=function(F){return new(F||M)(e.Y36(v.F0),e.Y36(C.B),e.Y36(t.uw),e.Y36(t.WI),e.Y36(t.so))},M.\u0275cmp=e.Xpm({type:M,selectors:[["app-share-update"]],inputs:{disableSocialShare:"disableSocialShare",currentFundraiser:"currentFundraiser"},decls:36,vars:23,consts:function(){let T,F,le,V,de,ye,Ee;return T="Podijeli a\u017Euriranje",F="A\u017Euriranje od",le="Podijelite A\u017Euriranje na Dru\u0161tvenim Medijima",V="Podijelite najnovije vijesti klikom na ikone dru\u0161tvenih medija u nastavku.",de="Biste li \u017Eeljeli poslati e-po\u0161tu svim donatorima o ovom a\u017Euriranju?",ye="Po\u0161aljite E-po\u0161tu",Ee="Napomena: Ova funkcionalnost nije operativna jer nema registriranih donatora s ovom kampanjom prikupljanja sredstava.",[["fxLayout","column","fxFill","","fxLayoutAlign","flex-end flex-end"],["id","closeShareUpdateButton","mat-icon-button","",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["fxLayout","column","fxFill",""],["ngClass","m-l-l"],T,["fxLayout","column"],["ngClass","p-s",2,"background-color","#efeef8"],F,[1,"mat-typography"],[3,"ngIf"],["fxLayout","column",1,"draft-bg","m-t-l","p-m"],le,V,["fxFlex","100%","fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.lt-sm","start","fxLayoutGap.gt-lg","40px","fxLayoutGap.lg","40px","fxLayoutGap.md","30px","fxLayoutGap.sm","50px","fxLayoutGap.lt-sm","28px",1,"social-share"],["ngClass","m-t-xs",1,"facebook","p-b-xs"],["id","facebookShareButton","mat-icon-button","","shareButton","facebook",3,"disabled","url","description"],["height","51","width","51",3,"src"],["ngClass","m-t-s",1,"email","p-b-xs"],["id","emailShareButton","mat-icon-button","","shareButton","email",3,"disabled","url","description"],["height","50","width","57",3,"src"],[1,"twitter","p-b-s","p-t-xs"],["id","twitterShareButton","mat-icon-button","","shareButton","twitter",3,"disabled","url","description"],["height","55","width","57",3,"src"],["ngClass.lt-sm","m-t-xs",1,"linkedin","p-b-xxs"],["id","linkedShareButton","mat-icon-button","","shareButton","linkedin",3,"disabled","url","description"],["height","54","width","57",3,"src"],["ngClass.lt-sm","m-t-xs",1,"whatsapp","p-b-xxs"],["id","whatsAppShareButton","mat-icon-button","","shareButton","whatsapp",3,"disabled","url","description"],["height","54","width","54",3,"src"],["fxFlex","","fxLayout","row wrap","fxLayoutAlign","space-between center",1,"draft-bg","p-m","m-t-l"],["ngClass.gt-md","p-r-xxl p-t-s",1,"mat-typography"],de,["mat-flat-button","",3,"disabled","click"],ye,[1,"mat-typography","mat-body-2","p-t-s"],Ee]},template:function(F,le){1&F&&(e.TgZ(0,"div")(1,"div",0)(2,"button",1),e.NdJ("click",function(){return le.onCloseClick()}),e._UZ(3,"img",2),e.qZA()(),e.TgZ(4,"div",3)(5,"div",4)(6,"h2"),e.SDv(7,5),e.qZA()(),e.TgZ(8,"mat-dialog-content",6)(9,"div",7)(10,"h2"),e.SDv(11,8),e.qZA(),e.TgZ(12,"p",9),e._uU(13),e.qZA()(),e.YNc(14,q,6,2,"ng-template",10),e.TgZ(15,"div",11)(16,"h2"),e.SDv(17,12),e.qZA(),e.TgZ(18,"p",9),e.SDv(19,13),e.qZA(),e.TgZ(20,"div",14)(21,"div",15)(22,"button",16),e._UZ(23,"img",17),e.qZA()(),e.TgZ(24,"div",18)(25,"button",19),e._UZ(26,"img",20),e.qZA()(),e.TgZ(27,"div",21)(28,"button",22),e._UZ(29,"img",23),e.qZA()(),e.TgZ(30,"div",24)(31,"button",25),e._UZ(32,"img",26),e.qZA()(),e.TgZ(33,"div",27)(34,"button",28),e._UZ(35,"img",29),e.qZA()()()()()()()),2&F&&(e.xp6(11),e.pQV(le.date),e.QtT(11),e.xp6(2),e.Oqu(le.content),e.xp6(1),e.Q6J("ngIf",le.isLoggedIn),e.xp6(8),e.Q6J("disabled",le.disableSocialShare)("url",le.shareLink)("description",le.messageContent),e.xp6(1),e.Q6J("src",le.disableSocialShare?"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fb-disabled/public":"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fb-color/public",e.LSH),e.xp6(2),e.Q6J("disabled",le.disableSocialShare)("url",le.shareLink)("description",le.messageContent),e.xp6(1),e.Q6J("src",le.disableSocialShare?"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/mail-disabled/public":"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/mail-color/public",e.LSH),e.xp6(2),e.Q6J("disabled",le.disableSocialShare)("url",le.shareLink)("description",le.messageContent),e.xp6(1),e.Q6J("src",le.disableSocialShare?"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/x-disabled/public":"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/x/public",e.LSH),e.xp6(2),e.Q6J("disabled",le.disableSocialShare)("url",le.shareLink)("description",le.messageContent),e.xp6(1),e.Q6J("src",le.disableSocialShare?"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/linkedin-disabled/public":"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/linkedin-color/public",e.LSH),e.xp6(2),e.Q6J("disabled",le.disableSocialShare)("url",le.shareLink)("description",le.messageContent),e.xp6(1),e.Q6J("src",le.disableSocialShare?"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/whatsapp-disabled/public":"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/whatsapp-color/public",e.LSH))},dependencies:[n.mk,n.O5,r.eB,t.xY,c.xw,c.SQ,c.Wh,c.s9,c.yH,i.oO,P.Rz],styles:[".social-share[_ngcontent-%COMP%]   .facebook[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(.mat-button-disabled){color:var(--button-color)}.social-share[_ngcontent-%COMP%]   .twitter[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(.mat-button-disabled){color:var(--button-color)}.social-share[_ngcontent-%COMP%]   .email[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(.mat-button-disabled){color:var(--button-color)}.social-share[_ngcontent-%COMP%]   .linkedin[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(.mat-button-disabled){color:var(--button-color)}.social-share[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(.mat-button-disabled){color:var(--button-color)}"]}),M})()},61392:(St,be,s)=>{"use strict";s.d(be,{h:()=>ya});var t=s(48046),e=s(15645),d=s(68264),l=s(91135),r=s(81953),c=s(75746),E=s(40354),m=s(30003),v=s(42456),C=s(45720),n=s(80842),i=s(73991),P=s(26314),I=s(47692),q=s(76037),D=s(21704),M=s(17774),T=s(43073),F=s(45379),le=s(81560),V=s(27579),de=s(74351),ye=s(23623);function Ee(Ze){var Wt,g,$,st=2;for(typeof Symbol<"u"&&(g=Symbol.asyncIterator,$=Symbol.iterator);st--;){if(g&&null!=(Wt=Ze[g]))return Wt.call(Ze);if($&&null!=(Wt=Ze[$]))return new Le(Wt.call(Ze));g="@@asyncIterator",$="@@iterator"}throw new TypeError("Object is not async iterable")}function Le(Ze){function Wt(g){if(Object(g)!==g)return Promise.reject(new TypeError(g+" is not an object."));var $=g.done;return Promise.resolve(g.value).then(function(st){return{value:st,done:$}})}return(Le=function($){this.s=$,this.n=$.next}).prototype={s:null,n:null,next:function(){return Wt(this.n.apply(this.s,arguments))},return:function($){var st=this.s.return;return void 0===st?Promise.resolve({value:$,done:!0}):Wt(st.apply(this.s,arguments))},throw:function($){var st=this.s.return;return void 0===st?Promise.reject($):Wt(st.apply(this.s,arguments))}},new Le(Ze)}var ge=s(70232),ue=s(24510),ee=s(4692),se=s(54449);const W=["imageAddbtn"],L=["videoUrlInput"],he=["Imagefile"];function _e(Ze,Wt){if(1&Ze&&(i.ynx(0),i.TgZ(1,"div",27),i._UZ(2,"img",28),i.qZA(),i.BQk()),2&Ze){const g=i.oxw().$implicit;i.xp6(2),i.Q6J("src",(null==g?null:g.image_base64)||(null==g?null:g.image),i.LSH)}}const Z=function(){return{width:"95px",height:"64px"}};function Te(Ze,Wt){if(1&Ze&&(i.ynx(0),i._UZ(1,"div",29),i.BQk()),2&Ze){const g=i.oxw().$implicit;i.xp6(1),i.Q6J("ngStyle",i.DdM(2,Z))("innerHTML",null==g?null:g.video_embed,i.oJD)}}function w(Ze,Wt){if(1&Ze){const g=i.EpF();i.ynx(0),i.TgZ(1,"div",24)(2,"div")(3,"button",25),i.NdJ("click",function(){const Bt=i.CHM(g).index,hr=i.oxw();return i.KtG(hr.removeMedia(Bt))}),i.TgZ(4,"mat-icon"),i._uU(5,"close"),i.qZA()()(),i.YNc(6,_e,3,1,"ng-container",26),i.YNc(7,Te,2,3,"ng-container",26),i.qZA(),i.BQk()}if(2&Ze){const g=Wt.$implicit;i.xp6(6),i.Q6J("ngIf",null==g?null:g.image),i.xp6(1),i.Q6J("ngIf",null==g?null:g.video_embed)}}let k=(()=>{class Ze{constructor(g,$,st,Bt,hr){this.focusMonitor=g,this.formBuilder=$,this.notificationService=st,this.sanitizer=Bt,this.mediaService=hr,this.fundraiserMediaList=[],this.resetControl=new e.p4(!1),this.onMediaChange=new i.vpe,this.onMediaDelete=new i.vpe,this.onMediaAdd=new i.vpe,this.mediaPreviewObject=[],this.mediaFinalObject=[],this.mediaLimit=10,this.fileSizeLimit=5242880,this.isVideo=!1,this.disableVideoSaveButton=!0,this.mediaYoutubeLink="Youtube Poveznica"}ngOnChanges(g){var $=this;return(0,t.Z)(function*(){if($.fundraiserMediaList&&null!=$.fundraiserMediaList&&$.fundraiserMediaList?.length>0){$.mediaPreviewObject=[...$.fundraiserMediaList];var hr,st=!1,Bt=!1;try{for(var fn,Xr=Ee($.mediaPreviewObject);st=!(fn=yield Xr.next()).done;st=!1){const Kn=fn.value;{let An=$.getFileNameFromUrl(Kn?.image);if(Kn?.image){let Ki=$.mediaService.imageUrlToFileAsync(Kn?.image,An);$.addImageToMediaObject(yield Ki)}Kn?.video_url&&$.addVideoToMediaObject(Kn?.video_url)}}}catch(Kn){Bt=!0,hr=Kn}finally{try{st&&null!=Xr.return&&(yield Xr.return())}finally{if(Bt)throw hr}}$.resetControl.valueChanges.subscribe(function(){var Kn=(0,t.Z)(function*(An){if(An){$.mediaPreviewObject=[...$.fundraiserMediaList],$.mediaFinalObject=[];var fi,Ki=!1,Xa=!1;try{for(var uo,Ko=Ee($.mediaPreviewObject);Ki=!(uo=yield Ko.next()).done;Ki=!1){const No=uo.value;{let es=$.getFileNameFromUrl(No?.image);if(No?.image){let wo=$.mediaService.imageUrlToFileAsync(No?.image,es);$.addImageToMediaObject(yield wo)}No?.video_url&&$.addVideoToMediaObject(No?.video_url)}}}catch(No){Xa=!0,fi=No}finally{try{Ki&&null!=Ko.return&&(yield Ko.return())}finally{if(Xa)throw fi}}}});return function(An){return Kn.apply(this,arguments)}}())}})()}getFileNameFromUrl(g){if("string"==typeof g){const $=g.split("/");return $[$.length-1]}return"image"}ngOnInit(){this.videoUrlInputForm=this.formBuilder.group({youtube_link:["",e.kI.compose([]),e.kI.composeAsync([this.isYouTubeUrl()])]})}openFileUploader(g){g.click()}switchIsVideo(g){this.isVideo=!this.isVideo,this.isVideo&&this.focusVideoUrlInput()}isYouTubeUrl(){return g=>new Promise((st,Bt)=>{let hr=g.value;""===hr&&(this.disableVideoSaveButton=!0,st(null)),hr.match("^(https?://)?((www.)?youtube.com|youtu.be)/.+$")?(this.disableVideoSaveButton=!1,st(null)):(this.disableVideoSaveButton=!0,st({invalid:"true"}))})}closeVideoUrlInput(){this.isVideo=!1}uploadImageFile(g){let $=g.target.files;if($?.length){let st=$;for(let Bt=0;Bt<st.length;Bt++){if(this.mediaPreviewObject.length>=this.mediaLimit){this.notificationService.openNotification("Maksimalni broj slika je 10.","OK","error");break}let hr=st.item(Bt);if(hr&&hr?.size<this.fileSizeLimit){let Xr=this.sanitizer.bypassSecurityTrustResourceUrl(URL.createObjectURL(hr));this.addImagePreview(Xr),this.addImageToMediaObject(hr),this.onMediaAdd.emit({image:hr})}else this.notificationService.openNotification(`File ${hr?.name} is greater than 5mb`,"OK","error")}this.onMediaChange.emit(this.mediaFinalObject)}g.target.value="",this.focusAddImagebutton()}saveVideoUrl(){if(this.videoUrlInputForm.get("youtube_link")?.value){const st=/shorts/gi;var g=this.videoUrlInputForm.get("youtube_link")?.value,$=g.replace(st,"embed");this.addVideoEmbed(this.videoUrlInputForm.get("youtube_link")?.value),this.videoUrlInputForm.get("youtube_link")?.setValue($),this.addVideoToMediaObject(this.videoUrlInputForm.get("youtube_link")?.value),this.onMediaAdd.emit({videoUrl:this.videoUrlInputForm.get("youtube_link")?.value}),this.videoUrlInputForm.get("youtube_link")?.setValue(""),this.onMediaChange.emit(this.mediaFinalObject),this.closeVideoUrlInput()}}addImagePreview(g){this.mediaPreviewObject.push({image:g})}addImageToMediaObject(g){var $=this;return(0,t.Z)(function*(){$.mediaFinalObject.push({image:g})})()}addVideoEmbed(g){this.mediaPreviewObject.push({video_embed:this.mediaService.createVideoEmbeddedHTML(g)})}addVideoToMediaObject(g){this.mediaFinalObject.push({videoUrl:g})}removeMedia(g){this.mediaPreviewObject[g]?.id&&this.onMediaDelete.emit(this.mediaPreviewObject[g]),this.mediaPreviewObject.splice(g,1),this.mediaFinalObject.splice(g,1),this.onMediaChange.emit(this.mediaFinalObject)}focusAddImagebutton(){this.imageAddbtnRef?.nativeElement?.focus()}focusVideoUrlInput(){let g=(0,r.H)(100).subscribe($=>{this.videoUrlInputRef?.nativeElement?.focus(),g.unsubscribe()})}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(ge.tE),i.Y36(e.QS),i.Y36(q.g),i.Y36(ue.H7),i.Y36(P.y))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-fundraiser-media-edit"]],viewQuery:function(g,$){if(1&g&&(i.Gf(W,5),i.Gf(L,5),i.Gf(he,5)),2&g){let st;i.iGM(st=i.CRH())&&($.imageAddbtnRef=st.first),i.iGM(st=i.CRH())&&($.videoUrlInputRef=st.first),i.iGM(st=i.CRH())&&($.imageFileUploaderRef=st.first)}},inputs:{fundraiserMediaList:"fundraiserMediaList",resetControl:"resetControl"},outputs:{onMediaChange:"onMediaChange",onMediaDelete:"onMediaDelete",onMediaAdd:"onMediaAdd"},features:[i.TTD],decls:28,vars:8,consts:function(){let Wt,g,$,st,Bt;return Wt="Slike i video",g="YouTube poveznica",$="Neispravan YouTube link.",st="Spremi",Bt="Blizu",[[1,"mat-body-2"],Wt,["fxLayout","row wrap","fxLayoutAlign","start center",1,"m-l-xs"],[4,"ngFor","ngForOf"],["fxLayoutGap","8px",1,"whydonate-light","m-t-l"],["mat-mini-fab","","color","primary","id","addImageButton",1,"mat-elevation-z0",3,"disabled","click"],["imageAddbtn",""],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/addPhoto/public"],["mat-mini-fab","","color","primary","id","addVideoButtonFundraiserDescriptionEdit",1,"mat-elevation-z0",3,"disabled","click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/videoCall/public"],["fxLayout","row wrap","fxLayoutAlign","start baseline",1,"m-t-l",3,"fxHide"],[3,"formGroup"],["appearance","outline"],g,["matInput","","id","addVideoInputFundraiserDescriptionEdit","formControlName","youtube_link",3,"placeholder"],["videoUrlInput",""],$,[1,"m-l-xs"],["mat-flat-button","","color","primary","id","saveVideoInputFundraiserDescriptionEdit",3,"disabled","click"],st,["mat-stroked-button","","fxFlexOffset","8px","color","accent",3,"click"],Bt,["type","file","multiple","","accept","image/png, image/jpeg, image/jpg, image/webp","hidden","",3,"change"],["Imagefile",""],["fxLayout","column","fxLayoutAlign","start start"],["fxFlexOffset","80px","mat-icon-button","","id","removeImage",3,"click"],[4,"ngIf"],["fxFlexOffset","-15px","fxLayout","column","fxLayoutAlign","center center",1,"image-thumbnail"],[3,"src"],["fxFlexOffset","-15px",3,"ngStyle","innerHTML"]]},template:function(g,$){if(1&g){const st=i.EpF();i.TgZ(0,"mat-label",0)(1,"span"),i.SDv(2,1),i.qZA(),i._uU(3),i.qZA(),i.TgZ(4,"div",2),i.YNc(5,w,8,2,"ng-container",3),i.TgZ(6,"div",4)(7,"button",5,6),i.NdJ("click",function(){i.CHM(st);const hr=i.MAs(27);return i.KtG($.openFileUploader(hr))}),i._UZ(9,"img",7),i.qZA(),i.TgZ(10,"button",8),i.NdJ("click",function(){i.CHM(st);const hr=i.MAs(18);return i.KtG($.switchIsVideo(hr))}),i._UZ(11,"img",9),i.qZA()()(),i.TgZ(12,"div",10)(13,"form",11)(14,"mat-form-field",12)(15,"mat-label"),i.SDv(16,13),i.qZA(),i._UZ(17,"input",14,15),i.TgZ(19,"mat-error"),i.SDv(20,16),i.qZA()()(),i.TgZ(21,"div",17)(22,"button",18),i.NdJ("click",function(){return $.saveVideoUrl()}),i.SDv(23,19),i.qZA(),i.TgZ(24,"button",20),i.NdJ("click",function(){return $.closeVideoUrlInput()}),i.SDv(25,21),i.qZA()()(),i.TgZ(26,"input",22,23),i.NdJ("change",function(hr){return $.uploadImageFile(hr)}),i.qZA()}2&g&&(i.xp6(3),i.hij(" (",(null==$.mediaPreviewObject?null:$.mediaPreviewObject.length)||0,"/10)"),i.xp6(2),i.Q6J("ngForOf",$.mediaPreviewObject),i.xp6(2),i.Q6J("disabled",(null==$.mediaPreviewObject?null:$.mediaPreviewObject.length)>=10),i.xp6(3),i.Q6J("disabled",(null==$.mediaPreviewObject?null:$.mediaPreviewObject.length)>=10),i.xp6(2),i.Q6J("fxHide",!($.isVideo&&(null==$.mediaPreviewObject?null:$.mediaPreviewObject.length)<10)),i.xp6(1),i.Q6J("formGroup",$.videoUrlInputForm),i.xp6(4),i.s9C("placeholder",$.mediaYoutubeLink),i.xp6(5),i.Q6J("disabled",$.disableVideoSaveButton))},dependencies:[e._Y,e.Fj,e.JJ,e.JL,e.sg,e.u,M.sg,M.O5,M.PC,ee.nI,ee.v_,ee.$V,se.k0,T.eB,F.Hw,V.xw,V.SQ,V.Wh,V.UT,de.b8,de.Zl],encapsulation:2}),Ze})();function x(Ze,Wt){1&Ze&&i._UZ(0,"mat-spinner",16)}function z(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",17),i._UZ(1,"mat-spinner",18),i.qZA())}let j=(()=>{class Ze{constructor(g,$,st,Bt,hr,Xr){this._mediaService=g,this._fundraiserService=$,this.notificationService=st,this._accountService=Bt,this.data=hr,this.dialogRef=Xr,this.isSave=!1,this.newAbout={content:"",imageListOperation:[]},this.allTextCheck=!1,this.loadingText=!1}ngOnInit(){this.mediaList=this._mediaService.getMediaList(this.data?.currentFundraiser?.image_list)}changeAboutContent(g){this.newAbout.content=g}addAboutMedia(g){this.newAbout?.imageListOperation?.push({add:g})}allCheck(g){this.allTextCheck=g}saveAboutContentAndMedia(){this.isSave=!0;let g=[];const $=s(89410),st=Bt=>{if(!Bt)return"";const hr=Bt.replace(/<ul>(.*?)<\/ul>/gs,(Xr,fn)=>fn.replace(/<li>(.*?)<\/li>/g,"&#8226;&nbsp;$1<br>")).replace(/<ol>(.*?)<\/ol>/gs,(Xr,fn)=>{let Kn=1;return fn.replace(/<li>(.*?)<\/li>/g,(An,Ki)=>`${Kn++}.&nbsp;${Ki}<br>`)});return $.sanitize(hr)};if(this.newAbout?.imageListOperation?.length){let Bt=this.getMediaSourceList();g=g.concat(Bt)}if(this.newAbout?.content){let Bt=this.getContentBodyObject(),hr=this.getContentTranslationBodyObject();Bt.content=st(this.newAbout.content),hr.content=st(this.newAbout.content),g.push(this._fundraiserService.updateFundraiserInformation(Bt)),g.push(this._fundraiserService.saveUpdatesTranslation(hr))}Object.keys(this.data?.currentFundraiser?.translations)?.length?(0,n.D)(g).subscribe(Bt=>{this.isSave=!1,this.dialogRef.close(!0)},Bt=>{this.notificationService.openNotification("Spremanje nije uspjelo.","close","error"),this.isSave=!1}):this._fundraiserService.createFundraiserInformationTranslation(this.getInitTranslationBodyObject()).subscribe(Bt=>{(0,n.D)(g).subscribe(hr=>{this.isSave=!1,this.dialogRef.close(!0)},hr=>{this.notificationService.openNotification("Spremanje nije uspjelo.","close","error"),this.isSave=!1})})}getMediaSourceList(){let g=[];return this.newAbout?.imageListOperation.forEach(($,st)=>{let Bt=new FormData;$?.add&&(Bt=this.getAddMediaBodyObject($?.add),g.push(this._mediaService.saveAboutMedia(Bt)))}),g}getAddMediaBodyObject(g){let $=new FormData;return $.append("fundraising_local",this.data?.currentFundraiser?.id.toString()),$.append("text","carousel"),$.append("delete","false"),$.append("id","null"),g?.image&&$.append("image",g.image),g?.videoUrl&&$.append("video_url",g.videoUrl),$}getContentBodyObject(){return{id:this.data?.currentFundraiser?.id,content:this.newAbout?.content,description:this.escapeHtml(this.newAbout?.content),language_code:this.data?.currentFundraiser?.language_code}}getInitTranslationBodyObject(){return{fundraising_local_id:this.data?.currentFundraiser?.id,title:this.data?.currentFundraiser?.title,is_auto:!0,content:" ",description:" ",language_code:this._accountService.getLocaleId(),created_at:(new Date).getTime(),updated_at:(new Date).getTime(),currency_code:"eur"}}getContentTranslationBodyObject(){return{fundraising_local_id:this.data?.currentFundraiser?.id,title:this.data?.currentFundraiser?.title,description:this.escapeHtml(this.newAbout?.content),content:this.newAbout?.content,updated_at:(new Date).getTime(),is_auto:!0,language_code:this.data?.currentFundraiser?.language_code}}escapeHtml(g){return g?.replace(/<[^>]*>/g," ")?.replace(/\s\s+/g," ")?.trim()}onCloseClick(){this.dialogRef.close()}handlePasteDetected(g){this.loadingText=g}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(P.y),i.Y36(I.R),i.Y36(q.g),i.Y36(D.B),i.Y36(C.WI),i.Y36(C.so))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-create-about"]],decls:19,vars:6,consts:function(){let Wt,g,$;return Wt="Opis",g="Dodajte opis svom prikupljanju sredstava.",$="Spremi",[["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["mat-dialog-title",""],Wt,[1,"mat-typography"],["ngClass","m-l-xl","fxLayout","row","fxLayoutAlign","baseline"],g,["ngClass","p-l-m"],["diameter","20","color","accent",4,"ngIf"],[3,"quillContent","onContentChange","allTextCheck","pasteDetected"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutGap","16px"],[3,"fundraiserMediaList","onMediaAdd"],["align","end"],["mat-flat-button","","color","accent",3,"disabled","click"],$,["class","m-l-xs",4,"ngIf"],["diameter","20","color","accent"],[1,"m-l-xs"],["color","accent","diameter","20"]]},template:function(g,$){1&g&&(i.TgZ(0,"button",0),i.NdJ("click",function(){return $.onCloseClick()}),i._UZ(1,"img",1),i.qZA(),i.TgZ(2,"h2",2),i.SDv(3,3),i.qZA(),i.TgZ(4,"mat-dialog-content",4)(5,"div",5)(6,"h3"),i.SDv(7,6),i.qZA(),i.TgZ(8,"div",7),i.YNc(9,x,1,0,"mat-spinner",8),i.qZA()(),i.TgZ(10,"app-quill-editor",9),i.NdJ("onContentChange",function(Bt){return $.changeAboutContent(Bt)})("allTextCheck",function(Bt){return $.allCheck(Bt)})("pasteDetected",function(Bt){return $.handlePasteDetected(Bt)}),i.qZA(),i._UZ(11,"br"),i.TgZ(12,"div",10)(13,"app-fundraiser-media-edit",11),i.NdJ("onMediaAdd",function(Bt){return $.addAboutMedia(Bt)}),i.qZA()()(),i.TgZ(14,"mat-dialog-actions",12)(15,"button",13),i.NdJ("click",function(){return $.saveAboutContentAndMedia()}),i.TgZ(16,"span"),i.SDv(17,14),i.qZA(),i.YNc(18,z,2,0,"mat-icon",15),i.qZA()()),2&g&&(i.xp6(9),i.Q6J("ngIf",$.loadingText),i.xp6(1),i.Q6J("quillContent",null==$.data.currentFundraiser?null:$.data.currentFundraiser.content),i.xp6(3),i.Q6J("fundraiserMediaList",$.mediaList),i.xp6(2),i.Q6J("disabled",$.isSave)("disabled",!(null!=$.newAbout&&$.newAbout.content||null!=$.newAbout&&null!=$.newAbout.imageListOperation&&$.newAbout.imageListOperation.length)||$.isSave||!$.allTextCheck),i.xp6(3),i.Q6J("ngIf",$.isSave))},dependencies:[M.mk,M.O5,T.eB,F.Hw,le.sN,C.uh,C.xY,C.H8,V.xw,V.SQ,V.Wh,de.oO,ye.g,k],encapsulation:2}),Ze})();function Ne(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-error"),i.SDv(1,24),i.qZA())}function tt(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-error"),i.SDv(1,25),i.qZA())}function We(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",26),i._UZ(1,"mat-spinner",27),i.qZA())}let ze=(()=>{class Ze{constructor(g,$,st,Bt,hr,Xr,fn){this._formBuilder=g,this._mediaService=$,this._fundraiserService=st,this.notificationService=Bt,this.accountService=hr,this.data=Xr,this.dialogRef=fn,this.allLanguages={bg:"Bulgarian",hr:"Croatian",cs:"Czech",da:"Danish",fi:"Finnish",el:"Greek",hu:"Hungarian",it:"Italian",pl:"Polish",pt:"Portuguese",ro:"Romanian",sk:"Slovak",sv:"Swedish",uk:"Ukrainian",nl:"Dutch",de:"Deutsch",es:"Spanish",en:"English",fr:"French"},this.originalLocale="nl",this.languageIconPath="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/",this.isSave=!1,this.newAbout={title:"",content:"",imageListOperation:[]},this.quillContentCtrl=new e.p4,this.mediaResetControl=new e.p4(!1)}ngOnInit(){this.originalLocale=this.data?.currentFundraiser?.language_code,this.titleFormGroup=this._formBuilder.group({translationTitle:new e.p4(this.data?.currentFundraiser?.title,[e.kI.minLength(5),e.kI.maxLength(75),e.kI.pattern(/^[\p{L}\p{N}\p{P}\p{S}\s\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FAC0}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}\u{2B05}\u{1F004}]*$/u)])}),this.titleFormGroup.markAllAsTouched(),this.mediaList=this._mediaService.getMediaList(this.data?.currentFundraiser?.image_list)}onTitleChange(g){this.newAbout.title=g}checkBoolean(g){this.maxLengthCheck=g}discardChanges(){this.titleFormGroup.get("translationTitle")?.reset(this.data?.currentFundraiser?.title)}saveAboutContentAndMedia(){if(this.accountService.checkHeaders()){this.isSave=!0;let g=[];if(this.newAbout?.title){let $=this.getContentBodyObject();g.push(this._fundraiserService.updateFundraiserTitle($))}(0,n.D)(g).subscribe($=>{this.isSave=!1,this.dialogRef.close(!0)},$=>{this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","close","error"),this.isSave=!1})}}getContentBodyObject(){return{slug:this.data?.currentFundraiser?.slug,title:this.titleFormGroup.get("translationTitle")?.value}}escapeHtml(g){return g?.replace(/<[^>]*>/g," ")?.replace(/\s\s+/g," ")?.trim()}onNoClick(){this.dialogRef.close()}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(e.QS),i.Y36(P.y),i.Y36(I.R),i.Y36(q.g),i.Y36(D.B),i.Y36(C.WI),i.Y36(C.so))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-edit-about"]],decls:34,vars:9,consts:function(){let Wt,g,$,st,Bt,hr,Xr;return Wt="Uredi Naslov",g="Izvornik",$="Znaci",st="Odbaci",Bt="Spremi",hr="Neva\u017Ee\u0107i unos, mo\u017Eete koristiti samo brojeve i slova.",Xr="Mora biti izme\u0111u 5 i 75 znakova.",[["ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["ngClass","m-l-xl"],Wt,[1,"mat-typography"],["ngClass","m-l-xs","fxLayout","row","fxLayoutAlign","start center"],[1,"mat-body-2"],g,["fxLayout","row","ngClass","p-xs","fxLayoutAlign","start center"],["width","20px",3,"src"],["ngClass","m-l-xs m-r-xs"],[3,"formGroup"],["appearance","outline",1,"w-100"],["id","fundraiserTitle","matInput","","formControlName","translationTitle",3,"ngModelChange"],["titleedit",""],["align","end"],$,[4,"ngIf"],["id","editAboutDiscard","mat-button","","color","accent",3,"disabled","click"],st,["id","editAboutSaveButton","mat-flat-button","","color","accent",3,"disabled","click"],Bt,["ngClass","m-l-xs",4,"ngIf"],hr,Xr,["ngClass","m-l-xs"],["color","accent","diameter","20"]]},template:function(g,$){if(1&g&&(i.TgZ(0,"div",0)(1,"button",1),i.NdJ("click",function(){return $.onNoClick()}),i._UZ(2,"img",2),i.qZA()(),i.TgZ(3,"div",3)(4,"h2"),i.SDv(5,4),i.qZA()(),i.TgZ(6,"mat-dialog-content",5)(7,"div",6)(8,"mat-label",7),i.SDv(9,8),i.qZA(),i.TgZ(10,"div",9),i._UZ(11,"img",10),i._uU(12,"\xa0 "),i.TgZ(13,"span"),i._uU(14),i.qZA()()(),i._UZ(15,"br"),i.TgZ(16,"div",11)(17,"form",12)(18,"mat-form-field",13)(19,"input",14,15),i.NdJ("ngModelChange",function(Bt){return $.onTitleChange(Bt)}),i.qZA(),i.TgZ(21,"mat-hint",16),i._uU(22),i.TgZ(23,"span"),i.SDv(24,17),i.qZA()(),i.YNc(25,Ne,2,0,"mat-error",18),i.YNc(26,tt,2,0,"mat-error",18),i.qZA()()()(),i.TgZ(27,"mat-dialog-actions",16)(28,"button",19),i.NdJ("click",function(){return $.discardChanges()}),i.SDv(29,20),i.qZA(),i.TgZ(30,"button",21),i.NdJ("click",function(){return $.saveAboutContentAndMedia()}),i.TgZ(31,"span"),i.SDv(32,22),i.qZA(),i.YNc(33,We,2,0,"mat-icon",23),i.qZA()()),2&g){const st=i.MAs(20);i.xp6(11),i.s9C("src",$.languageIconPath+$.originalLocale+"1/public",i.LSH),i.xp6(3),i.Oqu($.allLanguages[$.originalLocale]),i.xp6(3),i.Q6J("formGroup",$.titleFormGroup),i.xp6(5),i.hij("",st.value.length," / 5-75 "),i.xp6(3),i.Q6J("ngIf",$.titleFormGroup.controls.translationTitle.errors&&$.titleFormGroup.controls.translationTitle.errors.pattern),i.xp6(1),i.Q6J("ngIf",$.titleFormGroup.controls.translationTitle.errors&&($.titleFormGroup.controls.translationTitle.errors.minlength||$.titleFormGroup.controls.translationTitle.errors.maxlength)),i.xp6(2),i.Q6J("disabled",!(null!=$.newAbout&&$.newAbout.content||null!=$.newAbout&&$.newAbout.imageList||$.titleFormGroup.dirty)||$.isSave),i.xp6(2),i.Q6J("disabled",!(null!=$.newAbout&&$.newAbout.content||null!=$.newAbout&&$.newAbout.imageList||$.titleFormGroup.dirty)||$.isSave||$.maxLengthCheck||$.titleFormGroup.invalid),i.xp6(3),i.Q6J("ngIf",$.isSave)}},dependencies:[e._Y,e.Fj,e.JJ,e.JL,e.sg,e.u,M.mk,M.O5,ee.nI,ee.v_,ee.pH,ee.$V,se.k0,T.eB,F.Hw,le.sN,C.xY,C.H8,V.xw,V.Wh,de.oO],encapsulation:2}),Ze})();function we(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-error"),i.SDv(1,24),i.qZA())}function Ye(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-error"),i.SDv(1,25),i.qZA())}function te(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",26),i._UZ(1,"mat-spinner",27),i.qZA())}let Se=(()=>{class Ze{constructor(g,$,st,Bt,hr,Xr){this._formBuilder=g,this._mediaService=$,this.fundraiserService=st,this.notificationService=Bt,this.data=hr,this.dialogRef=Xr,this.allLanguages={bg:"Bulgarian",hr:"Croatian",cs:"Czech",da:"Danish",fi:"Finnish",el:"Greek",hu:"Hungarian",it:"Italian",pl:"Polish",pt:"Portuguese",ro:"Romanian",sk:"Slovak",sv:"Swedish",uk:"Ukrainian",nl:"Dutch",de:"Deutsch",es:"Spanish",en:"English",fr:"French"},this.originalLocale="nl",this.languageIconPath="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/",this.isSave=!1,this.newAppeal={},this.quillContentCtrl=new e.p4,this.mediaResetControl=new e.p4(!1)}ngOnInit(){this.originalLocale=this.data?.currentFundraiser?.language_code,this.titleFormGroup=this._formBuilder.group({translationTitle:new e.p4(this.data?.currentFundraiser?.title,[e.kI.minLength(5),e.kI.maxLength(75),e.kI.pattern(/^[\p{L}\p{N}\p{P}\p{S}\s\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FAC0}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}\u{2B05}\u{1F004}]*$/u)])}),this.titleFormGroup.markAllAsTouched()}checkBoolean(g){this.maxLengthCheck=g}discardChanges(){this.titleFormGroup.get("translationTitle")?.reset(this.data?.currentFundraiser?.title),this.mediaResetControl.setValue(!0),this.newAppeal={}}dialogClose(){try{this.isSave=!0;let g=[],$=this.getContentBodyObject();$.title=this.titleFormGroup.get("translationTitle")?.value,$.slug=this.data?.currentFundraiser?.slug,g.push(this.fundraiserService.updateFundraiserTitle($)),(0,n.D)(g).subscribe(st=>{this.isSave=!1,this.notificationService.openNotification("A\u017Euriranje uspje\u0161no.","","success"),this.dialogRef.close(!0)},st=>{this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","close","error"),this.isSave=!1})}catch{this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","close","error"),this.isSave=!1}}getContentBodyObject(){let g={};return g.title=this.titleFormGroup.get("translationTitle")?.value,g.slug=this.data?.currentFundraiser?.slug,g}escapeHtml(g){return g?.replace(/<[^>]*>/g," ")?.replace(/\s\s+/g," ")?.trim()}onCloseClick(){this.dialogRef.close()}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(e.QS),i.Y36(P.y),i.Y36(I.R),i.Y36(q.g),i.Y36(C.WI),i.Y36(C.so))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-edit-appeal"]],decls:34,vars:9,consts:function(){let Wt,g,$,st,Bt,hr,Xr;return Wt="Uredi Naslov",g="Izvornik",$="Znaci",st="Odbaci",Bt="Spremi",hr="Neva\u017Ee\u0107i unos, mo\u017Eete koristiti samo brojeve i slova.",Xr="Mora biti izme\u0111u 5 i 75 znakova.",[["ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["ngClass","m-l-xl","fxLayout","column","fxLayoutAlign","space-between start"],Wt,[1,"mat-typography"],["ngClass","m-l-xs","fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","5px"],[1,"mat-body-2"],g,["fxLayout","row","ngClass","p-xs","fxLayoutAlign","start center"],["width","20px",3,"src"],["ngClass","m-l-xs m-r-xs"],[3,"formGroup"],["appearance","outline",1,"w-100"],["matInput","","formControlName","translationTitle"],["editappeal",""],["align","end"],$,[4,"ngIf"],["mat-button","","color","accent",3,"disabled","click"],st,["mat-flat-button","","color","accent",3,"disabled","click"],Bt,["ngClass","m-l-xs",4,"ngIf"],hr,Xr,["ngClass","m-l-xs"],["color","accent","diameter","20"]]},template:function(g,$){if(1&g&&(i.TgZ(0,"div",0)(1,"button",1),i.NdJ("click",function(){return $.onCloseClick()}),i._UZ(2,"img",2),i.qZA()(),i.TgZ(3,"div",3)(4,"h2"),i.SDv(5,4),i.qZA()(),i.TgZ(6,"mat-dialog-content",5)(7,"div",6)(8,"mat-label",7),i.SDv(9,8),i.qZA(),i.TgZ(10,"div",9),i._UZ(11,"img",10),i._uU(12,"\xa0 "),i.TgZ(13,"span"),i._uU(14),i.qZA()()(),i._UZ(15,"br"),i.TgZ(16,"div",11)(17,"form",12)(18,"mat-form-field",13),i._UZ(19,"input",14,15),i.TgZ(21,"mat-hint",16),i._uU(22),i.TgZ(23,"span"),i.SDv(24,17),i.qZA()(),i.YNc(25,we,2,0,"mat-error",18),i.YNc(26,Ye,2,0,"mat-error",18),i.qZA()()()(),i.TgZ(27,"mat-dialog-actions",16)(28,"button",19),i.NdJ("click",function(){return $.discardChanges()}),i.SDv(29,20),i.qZA(),i.TgZ(30,"button",21),i.NdJ("click",function(){return $.dialogClose()}),i.TgZ(31,"span"),i.SDv(32,22),i.qZA(),i.YNc(33,te,2,0,"mat-icon",23),i.qZA()()),2&g){const st=i.MAs(20);i.xp6(11),i.s9C("src",$.languageIconPath+$.originalLocale+"1/public",i.LSH),i.xp6(3),i.Oqu($.allLanguages[$.originalLocale]),i.xp6(3),i.Q6J("formGroup",$.titleFormGroup),i.xp6(5),i.hij("",st.value.length," / 5-75 "),i.xp6(3),i.Q6J("ngIf",$.titleFormGroup.controls.translationTitle.errors&&$.titleFormGroup.controls.translationTitle.errors.pattern),i.xp6(1),i.Q6J("ngIf",$.titleFormGroup.controls.translationTitle.errors&&($.titleFormGroup.controls.translationTitle.errors.minlength||$.titleFormGroup.controls.translationTitle.errors.maxlength)),i.xp6(2),i.Q6J("disabled",!(null!=$.newAppeal&&$.newAppeal.content||null!=$.newAppeal&&null!=$.newAppeal.imageList&&$.newAppeal.imageList.length||$.titleFormGroup.dirty)||$.isSave),i.xp6(2),i.Q6J("disabled",!(null!=$.newAppeal&&$.newAppeal.content||null!=$.newAppeal&&null!=$.newAppeal.imageList&&$.newAppeal.imageList.length||$.titleFormGroup.dirty)||$.isSave||!$.titleFormGroup.dirty||$.maxLengthCheck||$.titleFormGroup.invalid),i.xp6(3),i.Q6J("ngIf",$.isSave)}},dependencies:[e._Y,e.Fj,e.JJ,e.JL,e.sg,e.u,M.mk,M.O5,ee.nI,ee.v_,ee.pH,ee.$V,se.k0,T.eB,F.Hw,le.sN,C.xY,C.H8,V.xw,V.SQ,V.Wh,de.oO],encapsulation:2}),Ze})();var ke=s(9989);function Ge(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",10),i._UZ(1,"mat-spinner",11),i.qZA())}let Tt=(()=>{class Ze{constructor(g,$,st,Bt,hr){this.data=g,this._fundraiserService=$,this.notificationService=st,this.fundraiserService=Bt,this.dialogRef=hr,this.isLoading=!1,this.isFormValid=!0}ngOnInit(){}dialogClose(){var g=this;return(0,t.Z)(function*(){g.isLoading=!0;try{let $={slug:g.data?.currentFundraiser?.slug,email:g.receivedForm?.email||"",facebook:g.receivedForm?.facebook||"",twitter:g.receivedForm?.twitter||"",linked_in:g.receivedForm?.linked_in||"",instagram:g.receivedForm?.instagram||"",website:g.receivedForm?.website||""};null!=g.data?.currentFundraiser?.parent&&Object.keys(g.data?.currentFundraiser?.parent).length>0?(yield g.fundraiserService.updateConnectedFundraiserSocials($)).subscribe(st=>{g.isLoading=!1,g.notificationService.openNotification("A\u017Euriranje uspje\u0161no.","","success"),g.dialogRef.close(g.receivedForm.value),window.location.reload()},st=>{g.notificationService.openNotification("A\u017Euriranje nije uspjelo.","close","error"),g.isLoading=!1}):(yield g.fundraiserService.updateSocialMedia($)).subscribe(st=>{g.isLoading=!1,g.notificationService.openNotification("A\u017Euriranje uspje\u0161no.","","success"),g.dialogRef.close(g.receivedForm.value),window.location.reload()},st=>{g.notificationService.openNotification("A\u017Euriranje nije uspjelo.","close","error"),g.isLoading=!1})}catch{g.notificationService.openNotification("A\u017Euriranje nije uspjelo.","close","error"),g.isLoading=!1}})()}receiveForm(g){this.receivedForm=g}receiveFormValidity(g){this.isFormValid=g}onCloseClick(){this.dialogRef.close()}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(C.WI),i.Y36(I.R),i.Y36(q.g),i.Y36(I.R),i.Y36(C.so))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-edit-created-by"]],decls:14,vars:3,consts:function(){let Wt,g;return Wt="Uredi Kontaktne Podatke",g="Spremi",[["ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["ngClass","m-l-l"],Wt,[3,"fundraiserData","shareForm","shareFormValidity"],["align","end"],["mat-flat-button","","color","accent","id","fundraiserContactSaveButton",3,"disabled","click"],g,["ngClass","m-l-xs",4,"ngIf"],["ngClass","m-l-xs"],["color","primary","diameter","20"]]},template:function(g,$){1&g&&(i.TgZ(0,"div",0)(1,"button",1),i.NdJ("click",function(){return $.onCloseClick()}),i._UZ(2,"img",2),i.qZA()(),i._UZ(3,"br"),i.TgZ(4,"div",3)(5,"h2"),i.SDv(6,4),i.qZA()(),i.TgZ(7,"mat-dialog-content")(8,"app-fundraiser-contact",5),i.NdJ("shareForm",function(Bt){return $.receiveForm(Bt)})("shareFormValidity",function(Bt){return $.receiveFormValidity(Bt)}),i.qZA()(),i.TgZ(9,"mat-dialog-actions",6)(10,"button",7),i.NdJ("click",function(){return $.dialogClose()}),i.TgZ(11,"span"),i.SDv(12,8),i.qZA(),i.YNc(13,Ge,2,0,"mat-icon",9),i.qZA()()),2&g&&(i.xp6(8),i.Q6J("fundraiserData",$.data),i.xp6(2),i.Q6J("disabled",$.isFormValid),i.xp6(3),i.Q6J("ngIf",$.isLoading))},dependencies:[M.mk,M.O5,T.eB,F.Hw,le.sN,C.xY,C.H8,de.oO,ke.f],encapsulation:2}),Ze})();var Et=s(68212),H=s(13710),Y=s(26191);function S(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon"),i._UZ(1,"mat-spinner",18),i.qZA())}function K(Ze,Wt){if(1&Ze&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&Ze){const g=Wt.$implicit;i.Q6J("value",g.description),i.xp6(1),i.hij(" ",g.description," ")}}function Q(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-error"),i._uU(1,"Invalid Location"),i.qZA())}function B(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",20),i._UZ(1,"mat-spinner",18),i.qZA())}let re=(()=>{class Ze{constructor(g,$,st,Bt,hr,Xr){this.fundraiserService=g,this._accountService=$,this.categoryService=st,this.notificationService=Bt,this.data=hr,this.dialogRef=Xr,this.debounceDelay=500,this.locations=[],this.locationBody={},this.isLoading=!1,this.isSave=!1,this.locationInputPlaceholder="Unesi Lokaciju",this.locationForm=new e.nJ({locationControl:new e.p4("",{validators:[e.kI.required],asyncValidators:[this.isLocationValid()]})}),this.locationForm?.controls.locationControl.setValue(hr?.currentFundraiser?.location_local?.name)}ngOnInit(){}isLocationValid(){return g=>new Promise((st,Bt)=>{let hr=g.value,Xr=(this.locations||[]).find(fn=>fn?.description===hr);Object.keys(Xr||{}).length?st(null):st({location:"doNotExist"})})}ngAfterViewInit(){this.locationForm.get("locationControl")?.valueChanges.pipe((0,c.D)(()=>(0,l.F)(this.debounceDelay+100)),(0,E.x)((g,$)=>g===$&&(this.isLoading=!1,!0))).subscribe(g=>{try{this.isLoading=!0,g.trim()&&this.categoryService.getLocation(g).subscribe($=>{this.locations=JSON.parse(JSON.stringify($)).data.result,this.setPlaceId(),this.isLoading=!1},$=>{"1002"==$?.error?.errors?.code?this.notificationService.openNotification($?.error?.errors?.message,"","error"):this.notificationService.openNotification("Fetch failed.","close","error"),this.isLoading=!1})}catch{this.isLoading=!1}})}setPlaceId(){this.locations.forEach(g=>{g.description==this.locationForm.get("locationControl")?.value&&(this.locationBody.location_local=g.description)})}dialogClose(){this.isSave=!0;try{this.locationBody.id=this.data?.currentFundraiser?.id,null!=this.data?.currentFundraiser?.parent&&Object.keys(this.data?.currentFundraiser?.parent).length>0?(this.locationBody.slug=this.data?.currentFundraiser?.slug,this.fundraiserService.updateConnectedFundraiserLocation(this.locationBody).subscribe(g=>{this.isSave=!1,this.notificationService.openNotification("A\u017Euriranje uspje\u0161no.","","success"),this.dialogRef.close(g?.data?.location_local),window.location.reload()},g=>{this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","close","error"),this.isSave=!1})):this.fundraiserService.updateFundraiserLocation(this.locationBody).subscribe(g=>{this.isSave=!1,this.notificationService.openNotification("A\u017Euriranje uspje\u0161no.","","success"),this.dialogRef.close(g?.data?.location_local),window.location.reload()},g=>{this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","close","error"),this.isSave=!1})}catch{this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","close","error"),this.isSave=!1}}onCloseClick(){this.dialogRef.close()}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(I.R),i.Y36(D.B),i.Y36(Et.H),i.Y36(q.g),i.Y36(C.WI),i.Y36(C.so))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-edit-fundraiser-location"]],decls:23,vars:8,consts:function(){let Wt,g,$;return Wt="Uredi Lokacija",g="Lokacija",$="Spremi",[["ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["ngClass","m-l-l","fxLayout","row","fxLayoutAlign","space-between start"],Wt,[4,"ngIf"],[3,"formGroup"],["appearance","outline",1,"w-100"],g,["matInput","","id","fundraiserLocationInput","formControlName","locationControl",3,"placeholder","matAutocomplete"],["locationRef",""],[3,"closed"],["locationAuto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["align","end"],["mat-flat-button","","color","accent","id","fundraiserLocationSaveButton",3,"disabled","click"],$,["ngClass","m-l-xs",4,"ngIf"],["color","accent","diameter","20"],[3,"value"],["ngClass","m-l-xs"]]},template:function(g,$){if(1&g&&(i.TgZ(0,"div",0)(1,"button",1),i.NdJ("click",function(){return $.onCloseClick()}),i._UZ(2,"img",2),i.qZA()(),i.TgZ(3,"div",3)(4,"h2"),i.SDv(5,4),i.qZA(),i.YNc(6,S,2,0,"mat-icon",5),i.qZA(),i.TgZ(7,"mat-dialog-content")(8,"form",6)(9,"mat-form-field",7)(10,"mat-label"),i.SDv(11,8),i.qZA(),i._UZ(12,"input",9,10),i.TgZ(14,"mat-autocomplete",11,12),i.NdJ("closed",function(){return $.setPlaceId()}),i.YNc(16,K,2,2,"mat-option",13),i.qZA(),i.YNc(17,Q,2,0,"mat-error",5),i.qZA()()(),i.TgZ(18,"mat-dialog-actions",14)(19,"button",15),i.NdJ("click",function(){return $.dialogClose()}),i.TgZ(20,"span"),i.SDv(21,16),i.qZA(),i.YNc(22,B,2,0,"mat-icon",17),i.qZA()()),2&g){const st=i.MAs(15);i.xp6(6),i.Q6J("ngIf",$.isLoading),i.xp6(2),i.Q6J("formGroup",$.locationForm),i.xp6(4),i.s9C("placeholder",$.locationInputPlaceholder),i.Q6J("matAutocomplete",st),i.xp6(4),i.Q6J("ngForOf",$.locations),i.xp6(1),i.Q6J("ngIf",$.locationForm.controls.locationControl.errors&&$.locationForm.controls.locationControl.errors.location),i.xp6(2),i.Q6J("disabled",!$.locationForm.dirty||$.locationForm.invalid||$.isSave),i.xp6(3),i.Q6J("ngIf",$.isSave)}},dependencies:[e._Y,e.Fj,e.JJ,e.JL,e.sg,e.u,M.mk,M.sg,M.O5,H.VN,H.QJ,Y.CK,ee.nI,ee.v_,ee.$V,se.k0,T.eB,F.Hw,le.sN,C.xY,C.H8,V.xw,V.Wh,de.oO],encapsulation:2}),Ze})();var fe=s(17145);function qe(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",8),i._UZ(1,"mat-spinner",34),i.qZA())}function $e(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-error"),i.SDv(1,35),i.qZA())}function et(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-error"),i.SDv(1,36),i.qZA())}function ot(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",8),i._UZ(1,"mat-spinner",37),i.qZA())}function ct(Ze,Wt){if(1&Ze){const g=i.EpF();i.ynx(0),i.TgZ(1,"button",43),i.NdJ("click",function(){const Bt=i.CHM(g).$implicit,hr=i.oxw(2);return i.KtG(hr.changeLanguage(Bt))}),i._UZ(2,"img",12),i._uU(3,"\xa0 "),i.TgZ(4,"span",44),i._uU(5),i.ALo(6,"uppercase"),i.ALo(7,"titlecase"),i.qZA()(),i.BQk()}if(2&Ze){const g=Wt.$implicit,$=i.oxw(2);i.xp6(2),i.s9C("src",$.languageIconPath+g+"1/public",i.LSH),i.xp6(2),i.s9C("id","languageChooser_"+g+"_button"),i.xp6(1),i.AsE("",i.lcZ(6,4,g)," - ",i.lcZ(7,6,$.allLanguages[g]),"")}}function pt(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div")(1,"button",38),i._UZ(2,"img",12),i._uU(3,"\xa0 "),i.TgZ(4,"span"),i._uU(5),i.qZA(),i._UZ(6,"img",39),i.qZA()(),i.TgZ(7,"mat-menu",40,41),i.YNc(9,ct,8,8,"ng-container",42),i.qZA()),2&Ze){const g=i.MAs(8),$=i.oxw();i.xp6(1),i.Q6J("matMenuTriggerFor",g),i.xp6(1),i.s9C("src",$.languageIconPath+$.selectedLocale+"1/public",i.LSH),i.xp6(3),i.Oqu($.allLanguages[$.selectedLocale]),i.xp6(4),i.Q6J("ngForOf",$.translationLocaleArr)}}let $t=(()=>{class Ze{constructor(g,$,st,Bt,hr){this._formBuilder=g,this.notificationService=$,this.fundraiserService=st,this.data=Bt,this.dialogRef=hr,this.allLocales=["nl","en","es","de","fr","bg","hr","cs","da","fi","el","hu","it","pl","pt","ro","sk","sv","uk"],this.allLanguages={bg:"Bulgarian",hr:"Croatian",cs:"Czech",da:"Danish",fi:"Finnish",el:"Greek",hu:"Hungarian",it:"Italian",pl:"Polish",pt:"Portuguese",ro:"Romanian",sk:"Slovak",sv:"Swedish",uk:"Ukrainian",nl:"Dutch",de:"Deutsch",es:"Spanish",en:"English",fr:"French"},this.originalLocale="nl",this.selectedLocale="en",this.languageIconPath="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/",this.translationLocaleArr=[],this.quillContentCtrl=new e.p4,this.isLoading=!1,this.isDisable=!0,this.isAutoTranslating=!1,this.newContent=[{nl:""},{en:""},{es:""},{de:""},{fr:""},{fi:""},{hr:""},{hu:""},{it:""},{pl:""},{pt:""},{ro:""},{sk:""},{sv:""},{uk:""},{bg:""},{cs:""},{da:""},{el:""}],this.translatedTitle="Preveden Naslov"}ngOnInit(){this.originalLocale=this.data?.currentFundraiser?.language_code,this.originalTitle=this.data?.currentFundraiser?.translations?.[`title_${this.originalLocale}`]||this.data?.currentFundraiser?.title,this.titleFormGroup=this._formBuilder.group({translationTitle:["",[e.kI.minLength(5),e.kI.maxLength(75),e.kI.pattern(/^[\p{L}\p{N}\p{P}\p{S}\s\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FAC0}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}\u{2B05}\u{1F004}]*$/u)]],en:["",[e.kI.minLength(5),e.kI.maxLength(75)]],nl:["",[e.kI.minLength(5),e.kI.maxLength(75)]],es:["",[e.kI.minLength(5),e.kI.maxLength(75)]],de:["",[e.kI.minLength(5),e.kI.maxLength(75)]],fr:["",[e.kI.minLength(5),e.kI.maxLength(75)]]}),this.originalQuillContent=this.data?.currentFundraiser?.translations?.[`content_${this.originalLocale}`]||this.data?.currentFundraiser?.content,this.originalDescription=this.data?.currentFundraiser?.translations?.[`description_${this.originalLocale}`]||this.data?.currentFundraiser?.description,this.translationLocaleArr=this.getTranslatableLocale(this.originalLocale),this.initTranslations(),this.titleFormGroup.valueChanges.subscribe(g=>{let $=this.titleFormGroup.get("translationTitle")?.value;this.titleFormGroup.get(this.selectedLocale)?.setValue($,{emitEvent:!1}),this.changeAboutContent(g)}),this.titleFormGroup.markAllAsTouched()}initTranslations(){let g=this.data?.currentFundraiser?.translations?.["title_"+this.translationLocaleArr[0]]||this.data?.currentFundraiser?.title;this.titleFormGroup.get("translationTitle")?.setValue(g,{emitEvent:!1}),this.quillContent=this.data?.currentFundraiser?.translations?.["content_"+this.translationLocaleArr[0]]||this.data?.currentFundraiser?.content,this.selectedLocale=this.translationLocaleArr[0]}changeLanguage(g){switch(!0){case g.includes("nl"):this.selectedLocale="nl",this.changeTranslation(this.selectedLocale);break;case g.includes("es"):this.selectedLocale="es",this.changeTranslation(this.selectedLocale);break;case g.includes("de"):this.selectedLocale="de",this.changeTranslation(this.selectedLocale);break;case g.includes("fr"):this.selectedLocale="fr",this.changeTranslation(this.selectedLocale);break;case g.includes("bg"):this.selectedLocale="bg",this.changeTranslation(this.selectedLocale);break;case g.includes("hr"):this.selectedLocale="hr",this.changeTranslation(this.selectedLocale);break;case g.includes("cs"):this.selectedLocale="cs",this.changeTranslation(this.selectedLocale);break;case g.includes("da"):this.selectedLocale="da",this.changeTranslation(this.selectedLocale);break;case g.includes("fi"):this.selectedLocale="fi",this.changeTranslation(this.selectedLocale);break;case g.includes("el"):this.selectedLocale="el",this.changeTranslation(this.selectedLocale);break;case g.includes("hu"):this.selectedLocale="hu",this.changeTranslation(this.selectedLocale);break;case g.includes("it"):this.selectedLocale="it",this.changeTranslation(this.selectedLocale);break;case g.includes("pl"):this.selectedLocale="pl",this.changeTranslation(this.selectedLocale);break;case g.includes("pt"):this.selectedLocale="pt",this.changeTranslation(this.selectedLocale);break;case g.includes("ro"):this.selectedLocale="ro",this.changeTranslation(this.selectedLocale);break;case g.includes("sk"):this.selectedLocale="sk",this.changeTranslation(this.selectedLocale);break;case g.includes("sv"):this.selectedLocale="sv",this.changeTranslation(this.selectedLocale);break;case g.includes("uk"):this.selectedLocale="uk",this.changeTranslation(this.selectedLocale);break;default:this.selectedLocale="en",this.changeTranslation(this.selectedLocale)}}changeTranslation(g){let $=this.titleFormGroup.get(g)?.value||this.data?.currentFundraiser?.translations?.["title_"+g]||this.data?.currentFundraiser?.title;this.titleFormGroup.get("translationTitle")?.setValue($,{emitEvent:!1});let st=this.newContent.find(Bt=>Bt[g])?.[g];this.quillContent=st||this.data?.currentFundraiser?.translations?.["content_"+g]||this.data?.currentFundraiser?.content}changeAboutContent(g){this.newContent.map($=>(void 0!==$[this.selectedLocale]&&($[this.selectedLocale]=g),$)),this.isDisable=!1}discardAllAboutChanges(){this.titleFormGroup.reset("");let g=this.titleFormGroup.get(this.selectedLocale)?.value||this.data?.currentFundraiser?.translations?.["title_"+this.selectedLocale]||this.data?.currentFundraiser?.title;this.titleFormGroup.get("translationTitle")?.setValue(g,{emitEvent:!1}),this.quillContentCtrl.setValue(this.quillContent),this.newContent=this.newContent.map($=>Object.assign({[Object.keys($)[0]]:""})),this.isDisable=!0}getOriginalLocale(){return this.originalLocale}getTranslatableLocale(g){return this.allLocales.filter($=>$!==g)}getLanguage(g){return this.allLanguages[g]}autoTranslate(){if(this.selectedLocale){let g={content:this.originalTitle,target_language:this.selectedLocale,source_language:this.originalLocale};this.isAutoTranslating=!0,this.fundraiserService.autoTranslateNew(g).subscribe($=>{this.titleFormGroup.get("translationTitle")?.setValue($?.data?.translated_text),this.titleFormGroup.get("translationTitle")?.setValue($?.data?.translated_text,{emitEvent:!1}),this.titleFormGroup.get(this.selectedLocale)?.setValue($?.data?.translated_text,{emitEvent:!1}),this.titleFormGroup.get("translationTitle")?.markAsDirty(),this.titleFormGroup.get(this.selectedLocale)?.markAsDirty(),this.isAutoTranslating=!1},$=>{this.notificationService.openNotification("Neuspjelo prevo\u0111enje.","","error"),this.isAutoTranslating=!1})}}saveTranslations(){this.isLoading=!0;let g=this.newContent.filter(st=>!!st[Object.keys(st)[0]]),$=[];g.map(st=>{let Bt={title:this.titleFormGroup.get(Object.keys(st)?.[0])?.value||this?.data?.currentFundraiser?.title,slug:this.data?.currentFundraiser?.slug,language_code:Object.keys(st)?.[0],currency_code:this.data?.currentFundraiser?.currency_code,is_auto:!1};$.push(this.fundraiserService.updateFundraiserTitleTranslation(Bt))}),(0,n.D)($).subscribe(st=>{this.isLoading=!1,this.dialogRef.close(!0)},st=>{this.notificationService.openNotification("Prevedi neuspjelo.","close","error"),this.isLoading=!1})}onCloseClick(){this.dialogRef.close()}checkBoolean(g){this.maxLengthCheck=g}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(e.QS),i.Y36(q.g),i.Y36(I.R),i.Y36(C.WI),i.Y36(C.so))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-translate-about"]],decls:55,vars:14,consts:function(){let Wt,g,$,st,Bt,hr,Xr,fn,Kn;return Wt="Prevedi Naslov",g="Izvornik jezik",$="Prijevod",st="Auto Prevedi",Bt="Znaci",hr="Odbaciti",Xr="Spremi",fn="Neva\u017Ee\u0107i unos, mo\u017Eete koristiti samo brojeve i slova.",Kn="Mora biti izme\u0111u 5 i 75 znakova.",[["ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["ngClass","m-l-xl"],Wt,[1,"mat-typography"],["fxLayout","row","fxLayout.xs","column"],["fxFlex","50%","fxFlex.xs","100%"],["ngClass","m-l-xs"],[1,"mat-body-2"],g,["fxLayout","row","ngClass","p-xs","fxLayoutAlign","start center"],["width","20px",3,"src"],["ngClass","m-l-xs m-r-xs"],["disabled","",1,"disable"],["appearance","outline",1,"w-100"],["matInput","","placeholder","Placeholder",3,"value"],$,["fxLayout","row","fxLayoutAlign","space-between center"],[3,"ngTemplateOutlet"],["mat-stroked-button","","color","accent","id","autoTranslateButton",3,"disabled","click"],st,["ngClass","m-l-xs",4,"ngIf"],[3,"formGroup"],["matInput","","formControlName","translationTitle",3,"placeholder"],["translatetitle",""],["align","end"],Bt,[4,"ngIf"],["mat-button","","color","accent",3,"disabled","click"],hr,["mat-flat-button","","color","accent","id","translate_button_save_all",3,"disabled","click"],Xr,["langSwitcher",""],["color","primary","diameter","20"],fn,Kn,["color","accent","diameter","20"],["id","langSwitcher","mat-button","","ngClass","m-l-xs",3,"matMenuTriggerFor"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/keyboard_arrow_down/public"],[1,"translationMenuContainerDropDown"],["menu","matMenu"],[4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[3,"id"]]},template:function(g,$){if(1&g&&(i.TgZ(0,"div",0)(1,"button",1),i.NdJ("click",function(){return $.onCloseClick()}),i._UZ(2,"img",2),i.qZA()(),i.TgZ(3,"div",3)(4,"h2"),i.SDv(5,4),i.qZA()(),i.TgZ(6,"mat-dialog-content",5)(7,"div",6)(8,"div",7)(9,"div",8)(10,"mat-label",9),i.SDv(11,10),i.qZA(),i.TgZ(12,"div",11),i._UZ(13,"img",12),i._uU(14,"\xa0 "),i.TgZ(15,"span"),i._uU(16),i.qZA()()(),i._UZ(17,"br"),i.TgZ(18,"div",13)(19,"fieldset",14)(20,"form")(21,"mat-form-field",15),i._UZ(22,"input",16),i.qZA()()()()(),i.TgZ(23,"div",7)(24,"div",8)(25,"mat-label",9),i.SDv(26,17),i.qZA(),i.TgZ(27,"div",18),i.GkF(28,19),i.TgZ(29,"div")(30,"button",20),i.NdJ("click",function(){return $.autoTranslate()}),i.TgZ(31,"span"),i.SDv(32,21),i.qZA(),i.YNc(33,qe,2,0,"mat-icon",22),i.qZA()()()(),i._UZ(34,"br"),i.TgZ(35,"div",13)(36,"form",23)(37,"mat-form-field",15),i._UZ(38,"input",24,25),i.TgZ(40,"mat-hint",26),i._uU(41),i.TgZ(42,"span"),i.SDv(43,27),i.qZA()(),i.YNc(44,$e,2,0,"mat-error",28),i.YNc(45,et,2,0,"mat-error",28),i.qZA()()()()()(),i.TgZ(46,"mat-dialog-actions",26)(47,"button",29),i.NdJ("click",function(){return $.discardAllAboutChanges()}),i.SDv(48,30),i.qZA(),i.TgZ(49,"button",31),i.NdJ("click",function(){return $.saveTranslations()}),i.TgZ(50,"span"),i.SDv(51,32),i.qZA(),i.YNc(52,ot,2,0,"mat-icon",22),i.qZA()(),i.YNc(53,pt,10,4,"ng-template",null,33,i.W1O)),2&g){const st=i.MAs(39),Bt=i.MAs(54);i.xp6(13),i.s9C("src",$.languageIconPath+$.originalLocale+"1/public",i.LSH),i.xp6(3),i.Oqu($.allLanguages[$.originalLocale]),i.xp6(6),i.Q6J("value",$.originalTitle),i.xp6(6),i.Q6J("ngTemplateOutlet",Bt),i.xp6(2),i.Q6J("disabled",$.isAutoTranslating),i.xp6(3),i.Q6J("ngIf",$.isAutoTranslating),i.xp6(3),i.Q6J("formGroup",$.titleFormGroup),i.xp6(2),i.s9C("placeholder",$.translatedTitle),i.xp6(3),i.hij(" ",st.value.length," / 5-75 "),i.xp6(3),i.Q6J("ngIf",$.titleFormGroup.controls.translationTitle.errors&&$.titleFormGroup.controls.translationTitle.errors.pattern),i.xp6(1),i.Q6J("ngIf",$.titleFormGroup.controls.translationTitle.errors&&($.titleFormGroup.controls.translationTitle.errors.minlength||$.titleFormGroup.controls.translationTitle.errors.maxlength)),i.xp6(2),i.Q6J("disabled",$.isLoading||$.isDisable),i.xp6(2),i.Q6J("disabled",$.isLoading||$.isDisable||!$.titleFormGroup.dirty||$.maxLengthCheck||$.titleFormGroup.invalid),i.xp6(3),i.Q6J("ngIf",$.isLoading)}},dependencies:[e._Y,e.Fj,e.JJ,e.JL,e.F,e.sg,e.u,M.mk,M.sg,M.O5,M.tP,ee.nI,ee.v_,ee.pH,ee.$V,se.k0,fe.W0,fe.tN,fe.D8,T.eB,F.Hw,le.sN,C.xY,C.H8,V.xw,V.Wh,V.yH,de.oO,M.gd,M.rS],encapsulation:2}),Ze})();function It(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",8),i._UZ(1,"mat-spinner",34),i.qZA())}function fr(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-error"),i.SDv(1,35),i.qZA())}function yt(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-error"),i.SDv(1,36),i.qZA())}function dr(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",8),i._UZ(1,"mat-spinner",37),i.qZA())}function bt(Ze,Wt){if(1&Ze){const g=i.EpF();i.ynx(0),i.TgZ(1,"button",43),i.NdJ("click",function(){const Bt=i.CHM(g).$implicit,hr=i.oxw(2);return i.KtG(hr.changeLanguage(Bt))}),i._UZ(2,"img",12),i._uU(3,"\xa0 "),i.TgZ(4,"span",44),i._uU(5),i.ALo(6,"uppercase"),i.ALo(7,"titlecase"),i.qZA()(),i.BQk()}if(2&Ze){const g=Wt.$implicit,$=i.oxw(2);i.xp6(2),i.s9C("src",$.languageIconPath+g+"1/public",i.LSH),i.xp6(2),i.s9C("id","languageChooser_"+g+"_button"),i.xp6(1),i.AsE("",i.lcZ(6,4,g)," - ",i.lcZ(7,6,$.allLanguages[g]),"")}}function ar(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div")(1,"button",38),i._UZ(2,"img",12),i._uU(3,"\xa0 "),i.TgZ(4,"span"),i._uU(5),i.qZA(),i._UZ(6,"img",39),i.qZA()(),i.TgZ(7,"mat-menu",40,41),i.YNc(9,bt,8,8,"ng-container",42),i.qZA()),2&Ze){const g=i.MAs(8),$=i.oxw();i.xp6(1),i.Q6J("matMenuTriggerFor",g),i.xp6(1),i.s9C("src",$.languageIconPath+$.selectedLocale+"1/public",i.LSH),i.xp6(3),i.Oqu($.allLanguages[$.selectedLocale]),i.xp6(4),i.Q6J("ngForOf",$.translationLocaleArr)}}let vt=(()=>{class Ze{constructor(g,$,st,Bt,hr,Xr){this._formBuilder=g,this.notificationService=$,this._fundraiserService=st,this._accountService=Bt,this.data=hr,this.dialogRef=Xr,this.allLocales=["nl","en","es","de","fr","bg","hr","cs","da","fi","el","hu","it","pl","pt","ro","sk","sv","uk"],this.allLanguages={bg:"Bulgarian",hr:"Croatian",cs:"Czech",da:"Danish",fi:"Finnish",el:"Greek",hu:"Hungarian",it:"Italian",pl:"Polish",pt:"Portuguese",ro:"Romanian",sk:"Slovak",sv:"Swedish",uk:"Ukrainian",nl:"Dutch",de:"Deutsch",es:"Spanish",en:"English",fr:"French"},this.originalLocale="nl",this.selectedLocale="en",this.languageIconPath="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/",this.translationLocaleArr=[],this.quillContentCtrl=new e.p4,this.isLoading=!1,this.isDisable=!0,this.isAutoTranslating=!1,this.newAppeal=[{nl:""},{en:""},{es:""},{de:""},{fr:""}],this.translatedTitle="Preveden Naslov"}ngOnInit(){this.originalLocale=this.data?.currentFundraiser?.language_code,this.originalTitle=this.data?.currentFundraiser?.translations?.[`title_${this.originalLocale}`]||this.data?.currentFundraiser?.title,this.titleFormGroup=this._formBuilder.group({translationTitle:["",[e.kI.minLength(5),e.kI.maxLength(75),e.kI.pattern(/^[\p{L}\p{N}\p{P}\p{S}\s\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FAC0}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}\u{2B05}\u{1F004}]*$/u)]],en:["",[e.kI.minLength(5),e.kI.maxLength(75)]],nl:["",[e.kI.minLength(5),e.kI.maxLength(75)]],es:["",[e.kI.minLength(5),e.kI.maxLength(75)]],de:["",[e.kI.minLength(5),e.kI.maxLength(75)]],fr:["",[e.kI.minLength(5),e.kI.maxLength(75)]]}),this.titleFormGroup.markAllAsTouched(),this.translationLocaleArr=this.getTranslatableLocale(this.originalLocale),this.initTranslations(),this.titleFormGroup.valueChanges.subscribe(g=>{let $=this.titleFormGroup.get("translationTitle")?.value;this.titleFormGroup.get(this.selectedLocale)?.setValue($,{emitEvent:!1}),this.changeAppealContent(g)})}changeAppealContent(g){this.newAppeal.map($=>(void 0!==$[this.selectedLocale]&&($[this.selectedLocale]=g),$)),this.isDisable=!1}discardAllAppealChanges(){this.titleFormGroup.reset("");let g=this.titleFormGroup.get(this.selectedLocale)?.value||this.data?.currentFundraiser?.translations?.["title_"+this.selectedLocale]||this.data?.currentFundraiser?.title;this.titleFormGroup.get("translationTitle")?.setValue(g,{emitEvent:!1}),this.newAppeal=this.newAppeal.map($=>Object.assign({[Object.keys($)[0]]:""})),this.isDisable=!0}changeLanguage(g){switch(!0){case g.includes("nl"):this.selectedLocale="nl",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("es"):this.selectedLocale="es",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("de"):this.selectedLocale="de",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("fr"):this.selectedLocale="fr",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("bg"):this.selectedLocale="bg",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("hr"):this.selectedLocale="hr",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("cs"):this.selectedLocale="cs",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("da"):this.selectedLocale="da",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("fi"):this.selectedLocale="fi",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("el"):this.selectedLocale="el",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("hu"):this.selectedLocale="hu",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("it"):this.selectedLocale="it",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("pl"):this.selectedLocale="pl",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("pt"):this.selectedLocale="pt",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("ro"):this.selectedLocale="ro",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("sk"):this.selectedLocale="sk",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("sv"):this.selectedLocale="sv",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("uk"):this.selectedLocale="uk",this.changeQuillAppeal(this.selectedLocale);break;default:this.selectedLocale="en",this.changeQuillAppeal(this.selectedLocale)}}changeQuillAppeal(g){let $=this.titleFormGroup.get(g)?.value||this.data?.currentFundraiser?.translations?.["title_"+g]||this.data?.currentFundraiser?.title;this.titleFormGroup.get("translationTitle")?.setValue($,{emitEvent:!1});let st=this.newAppeal.find(Bt=>Bt[g])?.[g];this.quillContent=st||this.data.currentFundraiser.translations["content_"+g]}initTranslations(){let g=this.data?.currentFundraiser?.translations?.["title_"+this.translationLocaleArr[0]]||this.data?.currentFundraiser?.title;this.titleFormGroup.get("translationTitle")?.setValue(g,{emitEvent:!1}),this.quillContent=this.data?.currentFundraiser?.translations["content_"+this.translationLocaleArr[0]],this.selectedLocale=this.translationLocaleArr[0]}getOriginalLocale(){return this.originalLocale}getTranslatableLocale(g){return this.allLocales.filter($=>$!==g)}getLanguage(g){return this.allLanguages[g]}autoTranslate(){if(this.selectedLocale){let g={content:this.originalTitle,target_language:this.selectedLocale,source_language:this.originalLocale};this.isAutoTranslating=!0,this._fundraiserService.autoTranslateNew(g).subscribe($=>{this.titleFormGroup.get("translationTitle")?.setValue($?.data?.translated_text),this.titleFormGroup.get("translationTitle")?.setValue($?.data?.translated_text,{emitEvent:!1}),this.titleFormGroup.get(this.selectedLocale)?.setValue($?.data?.translated_text,{emitEvent:!1}),this.titleFormGroup.get("translationTitle")?.markAsDirty(),this.titleFormGroup.get(this.selectedLocale)?.markAsDirty(),this.isAutoTranslating=!1},$=>{this.notificationService.openNotification("Neuspjelo prevo\u0111enje.","","error"),this.isAutoTranslating=!1})}}saveTranslations(){this.isLoading=!0;let g=this.newAppeal.filter(st=>!!st[Object.keys(st)[0]]),$=[];g.map(st=>{let Bt={title:this.titleFormGroup.get(Object.keys(st)?.[0])?.value||this?.data?.currentFundraiser?.title,slug:this.data?.currentFundraiser?.slug,language_code:Object.keys(st)?.[0],currency_code:this.data?.currentFundraiser?.currency_code,is_auto:!1};$.push(this._fundraiserService.updateFundraiserTitleTranslation(Bt))}),(0,n.D)($).subscribe(st=>{this.isLoading=!1,this.dialogRef.close(!0)},st=>{this.notificationService.openNotification("Prevedi neuspjelo.","close","error"),this.isLoading=!1})}onCloseClick(){this.dialogRef.close()}checkBoolean(g){this.maxLengthCheck=g}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(e.QS),i.Y36(q.g),i.Y36(I.R),i.Y36(D.B),i.Y36(C.WI),i.Y36(C.so))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-translate-appeal"]],decls:56,vars:15,consts:function(){let Wt,g,$,st,Bt,hr,Xr,fn,Kn;return Wt="Prevedi Naslov",g="Izvornik",$="Prijevod",st="Auto Prevedi",Bt="Znaci",hr="Odbaciti",Xr="Spremi",fn="Neva\u017Ee\u0107i unos, mo\u017Eete koristiti samo brojeve i slova.",Kn="Mora biti izme\u0111u 5 i 75 znakova.",[["ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["ngClass","m-l-l"],Wt,[1,"mat-typography"],["fxLayout","row","fxLayout.xs","column"],["fxFlex","50%","fxFlex.xs","100%"],["ngClass","m-l-xs"],[1,"mat-body-2"],g,["fxLayout","row","ngClass","p-xs","fxLayoutAlign","start center"],["width","20px",3,"src"],["ngClass","m-l-xs m-r-xs"],["disabled","",1,"disable"],["appearance","outline",1,"w-100"],["matInput","",3,"value"],$,["fxLayout","row","fxLayoutAlign","space-between center"],[3,"ngTemplateOutlet"],["mat-stroked-button","","color","accent","id","autoTranslateButton",3,"disabled","click"],st,["ngClass","m-l-xs",4,"ngIf"],[3,"formGroup"],["matInput","","formControlName","translationTitle",3,"placeholder"],["translateappeal",""],["align","end"],Bt,[4,"ngIf"],["mat-button","","color","accent",3,"disabled","click"],hr,["mat-flat-button","","color","accent","id","translate_button_save_all",3,"disabled","click"],Xr,["langSwitcher",""],["color","primary","diameter","20"],fn,Kn,["color","accent","diameter","20"],["id","langSwitcher","mat-button","","ngClass","m-l-xs",3,"matMenuTriggerFor"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/keyboard_arrow_down/public"],[1,"translationMenuContainerDropDown"],["menu","matMenu"],[4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[3,"id"]]},template:function(g,$){if(1&g&&(i.TgZ(0,"div",0)(1,"button",1),i.NdJ("click",function(){return $.onCloseClick()}),i._UZ(2,"img",2),i.qZA()(),i.TgZ(3,"div",3)(4,"h2"),i.SDv(5,4),i.qZA()(),i.TgZ(6,"mat-dialog-content",5)(7,"div",6)(8,"div",7)(9,"div",8)(10,"mat-label",9),i.SDv(11,10),i.qZA(),i._uU(12),i.TgZ(13,"div",11),i._UZ(14,"img",12),i._uU(15,"\xa0 "),i.TgZ(16,"span"),i._uU(17),i.qZA()()(),i._UZ(18,"br"),i.TgZ(19,"div",13)(20,"fieldset",14)(21,"form")(22,"mat-form-field",15),i._UZ(23,"input",16),i.qZA()()()()(),i.TgZ(24,"div",7)(25,"div",8)(26,"mat-label",9),i.SDv(27,17),i.qZA(),i.TgZ(28,"div",18),i.GkF(29,19),i.TgZ(30,"div")(31,"button",20),i.NdJ("click",function(){return $.autoTranslate()}),i.TgZ(32,"span"),i.SDv(33,21),i.qZA(),i.YNc(34,It,2,0,"mat-icon",22),i.qZA()()()(),i._UZ(35,"br"),i.TgZ(36,"div",13)(37,"form",23)(38,"mat-form-field",15),i._UZ(39,"input",24,25),i.TgZ(41,"mat-hint",26),i._uU(42),i.TgZ(43,"span"),i.SDv(44,27),i.qZA()(),i.YNc(45,fr,2,0,"mat-error",28),i.YNc(46,yt,2,0,"mat-error",28),i.qZA()()()()()(),i.TgZ(47,"mat-dialog-actions",26)(48,"button",29),i.NdJ("click",function(){return $.discardAllAppealChanges()}),i.SDv(49,30),i.qZA(),i.TgZ(50,"button",31),i.NdJ("click",function(){return $.saveTranslations()}),i.TgZ(51,"span"),i.SDv(52,32),i.qZA(),i.YNc(53,dr,2,0,"mat-icon",22),i.qZA()(),i.YNc(54,ar,10,4,"ng-template",null,33,i.W1O)),2&g){const st=i.MAs(40),Bt=i.MAs(55);i.xp6(12),i.hij(" ",$.originalLocale," "),i.xp6(2),i.s9C("src",$.languageIconPath+$.originalLocale+"1/public",i.LSH),i.xp6(3),i.Oqu($.allLanguages[$.originalLocale]),i.xp6(6),i.Q6J("value",$.originalTitle),i.xp6(6),i.Q6J("ngTemplateOutlet",Bt),i.xp6(2),i.Q6J("disabled",$.isAutoTranslating),i.xp6(3),i.Q6J("ngIf",$.isAutoTranslating),i.xp6(3),i.Q6J("formGroup",$.titleFormGroup),i.xp6(2),i.s9C("placeholder",$.translatedTitle),i.xp6(3),i.hij(" ",st.value.length," / 5-75 "),i.xp6(3),i.Q6J("ngIf",$.titleFormGroup.controls.translationTitle.errors&&$.titleFormGroup.controls.translationTitle.errors.pattern),i.xp6(1),i.Q6J("ngIf",$.titleFormGroup.controls.translationTitle.errors&&($.titleFormGroup.controls.translationTitle.errors.minlength||$.titleFormGroup.controls.translationTitle.errors.maxlength)),i.xp6(2),i.Q6J("disabled",$.isLoading||$.isDisable),i.xp6(2),i.Q6J("disabled",$.isLoading||$.isDisable||!$.titleFormGroup.dirty||$.maxLengthCheck||$.titleFormGroup.invalid),i.xp6(3),i.Q6J("ngIf",$.isLoading)}},dependencies:[e._Y,e.Fj,e.JJ,e.JL,e.F,e.sg,e.u,M.mk,M.sg,M.O5,M.tP,ee.nI,ee.v_,ee.pH,ee.$V,se.k0,fe.W0,fe.tN,fe.D8,T.eB,F.Hw,le.sN,C.xY,C.H8,V.xw,V.Wh,V.yH,de.oO,M.gd,M.rS],encapsulation:2}),Ze})();var qt=s(64886),br=s(80177);function lt(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",10),i._UZ(1,"mat-spinner",11),i.qZA())}let De=(()=>{class Ze{constructor(g,$,st,Bt,hr,Xr){this.fundraiserService=g,this._router=$,this.dialogRef=st,this.notificationService=Bt,this._dashboardService=hr,this.data=Xr,this.isLoading=!1}ngOnInit(){this._dashboardService.getFundraiserSummary().subscribe(g=>{this.parentFundraiserCount=g?.data?.parent||0})}deleteFundraiser(){this.isLoading=!0,this.fundraiserService.deleteFundraiser(this.data.slug).subscribe(g=>{this.isLoading=!1,g&&200===g?.status&&(g?.data&&g?.data?.deleted?(this.notificationService.openNotification("Uspje\u0161no izbrisano.","","success"),this.dialogRef.close(!0),1==this.parentFundraiserCount&&this.fundraiserService.setParentFundraiserCount("deletedfirstFundraiser"),this._router.navigate(["/dashboard"])):"Fundraiser already has connected fundraisers and donations are live"===g?.data?.message?(this.notificationService.openNotification("Postupak brisanja nije uspio zbog prisutnosti povezanih prikuplja\u010Da sredstava ili povezanih donacija.","","error"),this.dialogRef.close(!1)):this.notificationService.openNotification("Brisanje nije uspjelo.","","error"))},g=>{this.isLoading=!1,this.notificationService.openNotification(g?.error?.errors?.code&&"no fundraiser found to delete"===g?.error?.errors?.message?`Error-${g?.error.errors?.code}: Fundraiser not found`:"Error Occurred","","error")})}onNoClick(){this.dialogRef.close()}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(I.R),i.Y36(qt.F0),i.Y36(C.so),i.Y36(q.g),i.Y36(br.s),i.Y36(C.WI))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-delete-fundraiser"]],decls:14,vars:2,consts:function(){let Wt,g,$,st,Bt;return Wt="Izbri\u0161i Sakuplja\u010D Sredstava",g="Jeste li sigurni da \u017Eelite trajno izbrisati ovu kampanju za sakuplja\u010D sredstava?",$="Ne\u0107ete mo\u0107i povratiti podatke.",st="Otkazati",Bt="Izbrisati",[["mat-dialog-title",""],Wt,g,$,["align","end"],["mat-button","","color","accent","id","button_deleteFundraiser_cancel",3,"click"],st,["id","button_deleteFundraiser_confirm","mat-flat-button","","color","warn",3,"disabled","click"],Bt,["class","m-l-xs",4,"ngIf"],[1,"m-l-xs"],["color","warn","diameter","20"]]},template:function(g,$){1&g&&(i.TgZ(0,"h2",0),i.SDv(1,1),i.qZA(),i.TgZ(2,"mat-dialog-content")(3,"p"),i.SDv(4,2),i.qZA(),i.TgZ(5,"p"),i.SDv(6,3),i.qZA()(),i.TgZ(7,"mat-dialog-actions",4)(8,"button",5),i.NdJ("click",function(){return $.onNoClick()}),i.SDv(9,6),i.qZA(),i.TgZ(10,"button",7),i.NdJ("click",function(){return $.deleteFundraiser()}),i.TgZ(11,"span"),i.SDv(12,8),i.qZA(),i.YNc(13,lt,2,0,"mat-icon",9),i.qZA()()),2&g&&(i.xp6(10),i.Q6J("disabled",$.isLoading),i.xp6(3),i.Q6J("ngIf",$.isLoading))},dependencies:[M.O5,T.eB,F.Hw,le.sN,C.uh,C.xY,C.H8],encapsulation:2}),Ze})();var G=s(34021);function U(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon"),i._UZ(1,"mat-spinner",20),i.qZA())}function ne(Ze,Wt){if(1&Ze&&(i.TgZ(0,"mat-option",21),i._uU(1),i.qZA()),2&Ze){const g=Wt.$implicit;i.Q6J("value",g.name),i.xp6(1),i.hij(" ",g.name," ")}}function Re(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-error"),i._uU(1,"Invalid category"),i.qZA())}function Xe(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",22),i._UZ(1,"mat-spinner",20),i.qZA())}let Nt=(()=>{class Ze{constructor(g,$,st,Bt,hr,Xr){this.fundraiserService=g,this._accountService=$,this.categoryService=st,this.notificationService=Bt,this.data=hr,this.dialogRef=Xr,this.debounceDelay=500,this.categoryBody={},this.isLoading=!1,this.isSave=!1,this.categoryId=1,this._categories=G.b,this.categoryForm=new e.nJ({categoryControl:new e.p4("",{validators:[e.kI.required]})}),this.categoryId=hr?.currentFundraiser?.category?.id;const fn=this._categories.find(Kn=>Kn.id==this.categoryId);this.categoryForm?.controls.categoryControl.setValue(fn?fn.name:"")}ngOnInit(){}setCategory(){const g=this._categories.filter($=>$.name===this.categoryForm?.controls.categoryControl.value);g&&g.length>0&&void 0!==g[0].id&&(this.categoryBody.category_id=g[0].id)}dialogClose(){this.isSave=!0;try{this.categoryBody.language_code=this._accountService.getLocaleId(),this.categoryBody.id=this.data?.currentFundraiser?.id,null!=this.data?.currentFundraiser?.parent&&Object.keys(this.data?.currentFundraiser?.parent).length>0?(this.categoryBody.slug=this.data?.currentFundraiser?.slug,this.fundraiserService.updateConnectedFundraiserCategory(this.categoryBody).subscribe(g=>{this.isSave=!1,this.notificationService.openNotification("A\u017Euriranje uspje\u0161no","","success"),this.dialogRef.close(g?.data?.category),window.location.reload()},g=>{this.notificationService.openNotification("A\u017Euriranje nije uspjelo","close","error"),this.isSave=!1})):this.fundraiserService.updateFundraiserTitleDescription(this.categoryBody).subscribe(g=>{this.isSave=!1,this.notificationService.openNotification("A\u017Euriranje uspje\u0161no","","success"),this.dialogRef.close(g?.data?.category),window.location.reload()},g=>{this.notificationService.openNotification("A\u017Euriranje nije uspjelo","close","error"),this.isSave=!1})}catch{this.notificationService.openNotification("Do\u0161lo je do gre\u0161ke","close","error"),this.isSave=!1}}onCloseClick(){this.dialogRef.close()}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(I.R),i.Y36(D.B),i.Y36(Et.H),i.Y36(q.g),i.Y36(C.WI),i.Y36(C.so))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-edit-fundraiser-category"]],decls:25,vars:7,consts:function(){let Wt,g,$;return Wt="A\u017Euriraj kategoriju prikupljanja sredstava",g="Kategorija",$="Spremi",[["ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["ngClass","m-l-l","fxLayout","row","fxLayoutAlign","space-between start"],Wt,[4,"ngIf"],[3,"formGroup"],["appearance","outline",1,"w-100"],g,["matInput","","id","fundraiserCategoryInput","formControlName","categoryControl",3,"matAutocomplete"],["categoryRef",""],["matSuffix","","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/arrowDropDown/public"],[3,"closed"],["categoryAuto","matAutocomplete"],[1,"fundraiserCategoryOption"],[3,"value",4,"ngFor","ngForOf"],["align","end"],["mat-flat-button","","color","accent","id","fundraiserCategorySaveButton",3,"disabled","click"],$,["ngClass","m-l-xs",4,"ngIf"],["color","accent","diameter","20"],[3,"value"],["ngClass","m-l-xs"]]},template:function(g,$){if(1&g&&(i.TgZ(0,"div",0)(1,"button",1),i.NdJ("click",function(){return $.onCloseClick()}),i._UZ(2,"img",2),i.qZA()(),i.TgZ(3,"div",3)(4,"h2"),i.SDv(5,4),i.qZA(),i.YNc(6,U,2,0,"mat-icon",5),i.qZA(),i.TgZ(7,"mat-dialog-content")(8,"form",6)(9,"mat-form-field",7)(10,"mat-label"),i.SDv(11,8),i.qZA(),i._UZ(12,"input",9,10)(14,"img",11),i.TgZ(15,"mat-autocomplete",12,13),i.NdJ("closed",function(){return $.setCategory()}),i.TgZ(17,"div",14),i.YNc(18,ne,2,2,"mat-option",15),i.qZA()(),i.YNc(19,Re,2,0,"mat-error",5),i.qZA()()(),i.TgZ(20,"mat-dialog-actions",16)(21,"button",17),i.NdJ("click",function(){return $.dialogClose()}),i.TgZ(22,"span"),i.SDv(23,18),i.qZA(),i.YNc(24,Xe,2,0,"mat-icon",19),i.qZA()()),2&g){const st=i.MAs(16);i.xp6(6),i.Q6J("ngIf",$.isLoading),i.xp6(2),i.Q6J("formGroup",$.categoryForm),i.xp6(4),i.Q6J("matAutocomplete",st),i.xp6(6),i.Q6J("ngForOf",$._categories),i.xp6(1),i.Q6J("ngIf",$.categoryForm.controls.categoryControl.errors&&$.categoryForm.controls.categoryControl.errors.category),i.xp6(2),i.Q6J("disabled",!$.categoryForm.dirty||$.categoryForm.invalid||$.isSave),i.xp6(3),i.Q6J("ngIf",$.isSave)}},dependencies:[e._Y,e.Fj,e.JJ,e.JL,e.sg,e.u,M.mk,M.sg,M.O5,H.VN,H.QJ,Y.CK,ee.nI,ee.v_,ee.$V,ee.nX,se.k0,T.eB,F.Hw,le.sN,C.xY,C.H8,V.xw,V.Wh,de.oO]}),Ze})();function Pt(Ze,Wt){1&Ze&&i._UZ(0,"mat-spinner",23)}function Vt(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",24),i._UZ(1,"mat-spinner",25),i.qZA())}let Jt=(()=>{class Ze{constructor(g,$,st,Bt,hr,Xr,fn){this._formBuilder=g,this._mediaService=$,this._fundraiserService=st,this.notificationService=Bt,this.accountService=hr,this.data=Xr,this.dialogRef=fn,this.allLanguages={bg:"Bulgarian",hr:"Croatian",cs:"Czech",da:"Danish",fi:"Finnish",el:"Greek",hu:"Hungarian",it:"Italian",pl:"Polish",pt:"Portuguese",ro:"Romanian",sk:"Slovak",sv:"Swedish",uk:"Ukrainian",nl:"Dutch",de:"Deutsch",es:"Spanish",en:"English",fr:"French"},this.originalLocale="nl",this.languageIconPath="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/",this.isSave=!1,this.newAbout={title:"",content:"",imageListOperation:[]},this.quillContentCtrl=new e.p4,this.mediaResetControl=new e.p4(!1),this.allTextCheck=!1,this.loadingText=!1}ngOnInit(){this.originalLocale=this.data?.currentFundraiserImage?.language_code,this.titleFormGroup=this._formBuilder.group({translationTitle:new e.p4(this.data?.currentFundraiserImage?.title,[e.kI.minLength(15),e.kI.maxLength(70),e.kI.pattern(/^(?:(?!\p{Emoji}).|\d)*$/u)])}),this.mediaList=this._mediaService.getMediaList(this.data?.currentFundraiserImage?.image_list)}onTitleChange(g){this.newAbout.content=this.data?.currentFundraiser?.content,this.newAbout.description=this.data?.currentFundraiser?.description}changeAboutContent(g){this.newAbout.content=g}changeAboutMedia(g){this.newAbout.imageList=g}deleteAboutMedia(g){this.newAbout?.imageListOperation?.push({delete:g})}allCheck(g){this.allTextCheck=g}discardChanges(){this.mediaResetControl.setValue(!0),this.mediaList=this._mediaService.getMediaList(this.data?.currentFundraiserImage?.image_list),this.quillContentCtrl.setValue(this.data?.currentFundraiser?.content),this.newAbout={content:"",imageListOperation:[]}}saveAboutContentAndMedia(){if(this.accountService.checkHeaders()){this.isSave=!0;let g=[];if(void 0!==this.newAbout?.imageList){let $=this.getMediaBodyObject();g.push(this._mediaService.saveAboutMedia($))}if(this.newAbout?.content){let $=this.newAbout.content.replace(/<ul>(.*?)<\/ul>/gs,(Xr,fn)=>fn.replace(/<li>(.*?)<\/li>/g,"&#8226;&nbsp;$1<br>")).replace(/<ol>(.*?)<\/ol>/gs,(Xr,fn)=>{let Kn=1;return fn.replace(/<li>(.*?)<\/li>/g,(An,Ki)=>`${Kn++}.&nbsp;${Ki}<br>`)}),Bt=s(89410).sanitize($),hr=this.getContentBodyObject();hr.content=Bt,g.push(this._fundraiserService.updateFundraiserDescription(hr))}(0,n.D)(g).subscribe($=>{this.isSave=!1,this.dialogRef.close(!0),this.notificationService.openNotification("Opis prikupljanja sredstava je a\u017Euriran.","","success"),window.location.reload()},$=>{this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","close","error"),this.isSave=!1})}}getMediaBodyObject(){let g=new FormData;return g.append("slug",this.data?.currentFundraiserImage?.slug),g.append("text","carousel"),this.newAbout?.imageList.forEach(($,st)=>{$.image&&g.append("image"+st,this.newAbout?.imageList[st]?.image),$.videoUrl&&g.append("video_url"+st,this.newAbout?.imageList[st]?.videoUrl)}),g}getContentBodyObject(){return{slug:this.data?.currentFundraiserImage?.slug,content:this.newAbout?.content||"",appeal:"",description:this.escapeHtml(this.newAbout?.content),language_code:this.data?.currentFundraiserImage?.language_code}}escapeHtml(g){return g?.replace(/<[^>]*>/g," ")?.replace(/\s\s+/g," ")?.trim()}onCloseClick(){this.dialogRef.close()}handlePasteDetected(g){this.loadingText=g}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(e.QS),i.Y36(P.y),i.Y36(I.R),i.Y36(q.g),i.Y36(D.B),i.Y36(C.WI),i.Y36(C.so))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-edit-about-description"]],decls:30,vars:11,consts:function(){let Wt,g,$,st;return Wt="Opis",g="Izvornik",$="Odbaci",st="Spremi",[["ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["ngClass","m-l-xl","fxLayout","row","fxLayoutAlign","baseline"],Wt,["ngClass","p-l-m"],["diameter","20","color","accent",4,"ngIf"],[1,"mat-typography"],["ngClass","m-l-xs","fxLayout","row","fxLayoutAlign","start center"],[1,"mat-body-2"],g,["fxLayout","row","ngClass","p-xs","fxLayoutAlign","start center"],["width","20px",3,"src"],[3,"quillContent","control","onContentChange","allTextCheck","pasteDetected"],["ngClass","m-l-xs","fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutGap","16px"],[3,"fundraiserMediaList","resetControl","onMediaChange"],["ngClass","m-t-m"],["align","end"],["id","editAboutDiscard","mat-button","","color","accent",3,"disabled","click"],$,["id","editAboutSaveButton","mat-flat-button","","color","accent",3,"disabled","click"],st,["ngClass","m-l-xs",4,"ngIf"],["diameter","20","color","accent"],["ngClass","m-l-xs"],["color","accent","diameter","20"]]},template:function(g,$){1&g&&(i.TgZ(0,"div",0)(1,"button",1),i.NdJ("click",function(){return $.onCloseClick()}),i._UZ(2,"img",2),i.qZA()(),i.TgZ(3,"div",3)(4,"h2"),i.SDv(5,4),i.qZA(),i.TgZ(6,"div",5),i.YNc(7,Pt,1,0,"mat-spinner",6),i.qZA()(),i.TgZ(8,"mat-dialog-content",7)(9,"div",8)(10,"mat-label",9),i.SDv(11,10),i.qZA(),i.TgZ(12,"div",11),i._UZ(13,"img",12),i._uU(14,"\xa0 "),i.TgZ(15,"span"),i._uU(16),i.qZA()()(),i._UZ(17,"br"),i.TgZ(18,"app-quill-editor",13),i.NdJ("onContentChange",function(Bt){return $.changeAboutContent(Bt)})("allTextCheck",function(Bt){return $.allCheck(Bt)})("pasteDetected",function(Bt){return $.handlePasteDetected(Bt)}),i.qZA(),i._UZ(19,"br"),i.TgZ(20,"div",14)(21,"app-fundraiser-media-edit",15),i.NdJ("onMediaChange",function(Bt){return $.changeAboutMedia(Bt)}),i.qZA()()(),i.TgZ(22,"div",16)(23,"mat-dialog-actions",17)(24,"button",18),i.NdJ("click",function(){return $.discardChanges()}),i.SDv(25,19),i.qZA(),i.TgZ(26,"button",20),i.NdJ("click",function(){return $.saveAboutContentAndMedia()}),i.TgZ(27,"span"),i.SDv(28,21),i.qZA(),i.YNc(29,Vt,2,0,"mat-icon",22),i.qZA()()()),2&g&&(i.xp6(7),i.Q6J("ngIf",$.loadingText),i.xp6(6),i.s9C("src",$.languageIconPath+$.originalLocale+"1/public",i.LSH),i.xp6(3),i.Oqu($.allLanguages[$.originalLocale]),i.xp6(2),i.Q6J("quillContent",null==$.data.currentFundraiser?null:$.data.currentFundraiser.content)("control",$.quillContentCtrl),i.xp6(3),i.Q6J("fundraiserMediaList",$.mediaList)("resetControl",$.mediaResetControl),i.xp6(3),i.Q6J("disabled",!(null!=$.newAbout&&$.newAbout.content||null!=$.newAbout&&$.newAbout.imageList||$.titleFormGroup.dirty)||$.isSave),i.xp6(2),i.Q6J("disabled",$.isSave)("disabled",!(null!=$.newAbout&&$.newAbout.content||null!=$.newAbout&&$.newAbout.imageList)||$.isSave||!$.allTextCheck),i.xp6(3),i.Q6J("ngIf",$.isSave))},dependencies:[M.mk,M.O5,ee.$V,T.eB,F.Hw,le.sN,C.xY,C.H8,V.xw,V.SQ,V.Wh,de.oO,ye.g,k],encapsulation:2}),Ze})();function kt(Ze,Wt){1&Ze&&i._UZ(0,"mat-spinner",29)}function Me(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",10),i._UZ(1,"mat-spinner",30),i.qZA())}function ut(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",10),i._UZ(1,"mat-spinner",31),i.qZA())}function nt(Ze,Wt){if(1&Ze){const g=i.EpF();i.ynx(0),i.TgZ(1,"button",37),i.NdJ("click",function(){const Bt=i.CHM(g).$implicit,hr=i.oxw(2);return i.KtG(hr.changeLanguage(Bt))}),i._UZ(2,"img",14),i._uU(3,"\xa0 "),i.TgZ(4,"span",38),i._uU(5),i.ALo(6,"uppercase"),i.ALo(7,"titlecase"),i.qZA()(),i.BQk()}if(2&Ze){const g=Wt.$implicit,$=i.oxw(2);i.xp6(2),i.s9C("src",$.languageIconPath+g+"1/public",i.LSH),i.xp6(2),i.s9C("id","languageChooser_"+g+"_button"),i.xp6(1),i.AsE("",i.lcZ(6,4,g)," - ",i.lcZ(7,6,$.allLanguages[g]),"")}}function Ht(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div")(1,"button",32),i._UZ(2,"img",14),i._uU(3,"\xa0 "),i.TgZ(4,"span"),i._uU(5),i.qZA(),i._UZ(6,"img",33),i.qZA()(),i.TgZ(7,"mat-menu",34,35),i.YNc(9,nt,8,8,"ng-container",36),i.qZA()),2&Ze){const g=i.MAs(8),$=i.oxw();i.xp6(1),i.Q6J("matMenuTriggerFor",g),i.xp6(1),i.s9C("src",$.languageIconPath+$.selectedLocale+"1/public",i.LSH),i.xp6(3),i.Oqu($.allLanguages[$.selectedLocale]),i.xp6(4),i.Q6J("ngForOf",$.translationLocaleArr)}}let pr=(()=>{class Ze{constructor(g,$,st,Bt,hr,Xr){this._formBuilder=g,this.notificationService=$,this.accountService=st,this.fundraiserService=Bt,this.data=hr,this.dialogRef=Xr,this.allLocales=["nl","en","es","de","fr","bg","hr","cs","da","fi","el","hu","it","pl","pt","ro","sk","sv","uk"],this.allLanguages={bg:"Bulgarian",hr:"Croatian",cs:"Czech",da:"Danish",fi:"Finnish",el:"Greek",hu:"Hungarian",it:"Italian",pl:"Polish",pt:"Portuguese",ro:"Romanian",sk:"Slovak",sv:"Swedish",uk:"Ukrainian",nl:"Dutch",de:"Deutsch",es:"Spanish",en:"English",fr:"French"},this.originalLocale="nl",this.selectedLocale="en",this.languageIconPath="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/",this.translationLocaleArr=[],this.quillContentCtrl=new e.p4,this.isLoading=!1,this.isDisable=!0,this.isDescriptionEmpty=!0,this.isAutoTranslating=!1,this.newContent=[{nl:""},{en:""},{es:""},{de:""},{fr:""},{fi:""},{hr:""},{hu:""},{it:""},{pl:""},{pt:""},{ro:""},{sk:""},{sv:""},{uk:""},{bg:""},{cs:""},{da:""},{el:""}],this.allTextCheck=!1,this.loadingText=!1,this.refreshComponentEvent=new i.vpe}ngOnInit(){this.originalLocale=this.data?.currentFundraiserImage?.language_code,this.originalTitle=this.data?.currentFundraiser?.translations?.[`title_${this.originalLocale}`]||this.data?.currentFundraiser?.title,this.titleFormGroup=this._formBuilder.group({translationTitle:[""],en:[""],nl:[""],es:[""],de:[""],fr:[""],fi:[""],hr:[""],hu:[""],it:[""],pl:[""],pt:[""],ro:[""],sk:[""],sv:[""],uk:[""],bg:[""],cs:[""],da:[""],el:[""]}),this.originalQuillContent=this.data?.currentFundraiser?.translations?.[`content_${this.originalLocale}`]||this.data?.currentFundraiser?.content,null!=this.originalQuillContent&&(this.isDescriptionEmpty=!1),this.originalDescription=this.data?.currentFundraiser?.translations?.[`content_${this.originalLocale}`]||this.data?.currentFundraiser?.content,this.translationLocaleArr=this.getTranslatableLocale(this.originalLocale),this.initTranslations(),this.titleFormGroup.valueChanges.subscribe(g=>{this.changeAboutContent(this.quillContent)})}initTranslations(){this.quillContent=this.data?.currentFundraiser?.translations?.["content_"+this.translationLocaleArr[0]]||this.data?.currentFundraiser?.content,this.selectedLocale=this.translationLocaleArr[0]}changeLanguage(g){switch(!0){case g.includes("nl"):this.selectedLocale="nl",this.changeTranslation(this.selectedLocale);break;case g.includes("es"):this.selectedLocale="es",this.changeTranslation(this.selectedLocale);break;case g.includes("de"):this.selectedLocale="de",this.changeTranslation(this.selectedLocale);break;case g.includes("fr"):this.selectedLocale="fr",this.changeTranslation(this.selectedLocale);break;case g.includes("bg"):this.selectedLocale="bg",this.changeTranslation(this.selectedLocale);break;case g.includes("hr"):this.selectedLocale="hr",this.changeTranslation(this.selectedLocale);break;case g.includes("cs"):this.selectedLocale="cs",this.changeTranslation(this.selectedLocale);break;case g.includes("da"):this.selectedLocale="da",this.changeTranslation(this.selectedLocale);break;case g.includes("fi"):this.selectedLocale="fi",this.changeTranslation(this.selectedLocale);break;case g.includes("el"):this.selectedLocale="el",this.changeTranslation(this.selectedLocale);break;case g.includes("hu"):this.selectedLocale="hu",this.changeTranslation(this.selectedLocale);break;case g.includes("it"):this.selectedLocale="it",this.changeTranslation(this.selectedLocale);break;case g.includes("pl"):this.selectedLocale="pl",this.changeTranslation(this.selectedLocale);break;case g.includes("pt"):this.selectedLocale="pt",this.changeTranslation(this.selectedLocale);break;case g.includes("ro"):this.selectedLocale="ro",this.changeTranslation(this.selectedLocale);break;case g.includes("sk"):this.selectedLocale="sk",this.changeTranslation(this.selectedLocale);break;case g.includes("sv"):this.selectedLocale="sv",this.changeTranslation(this.selectedLocale);break;case g.includes("uk"):this.selectedLocale="uk",this.changeTranslation(this.selectedLocale);break;default:this.selectedLocale="en",this.changeTranslation(this.selectedLocale)}}changeTranslation(g){let $=this.newContent.find(st=>st[g])?.[g];this.quillContent=$||this.data?.currentFundraiser?.translations?.["content_"+g]||this.data?.currentFundraiser?.content}changeAboutContent(g){this.newContent.map($=>(void 0!==$[this.selectedLocale]&&($[this.selectedLocale]=g),$)),this.isDisable=!1}discardAllAboutChanges(){this.titleFormGroup.reset(""),this.quillContentCtrl.setValue(this.quillContent),this.newContent=this.newContent.map(g=>Object.assign({[Object.keys(g)[0]]:""})),this.isDisable=!0}getOriginalLocale(){return this.originalLocale}getTranslatableLocale(g){return this.allLocales.filter($=>$!==g)}getLanguage(g){return this.allLanguages[g]}allCheck(g){this.allTextCheck=g}autoTranslate(){if(this.selectedLocale){let g={content:this.originalDescription,target_language:this.selectedLocale,source_language:this.originalLocale};this.isAutoTranslating=!0,this.fundraiserService.autoTranslateNew(g).subscribe($=>{this.quillContentCtrl.setValue($?.data?.translated_text),this.changeAboutContent($?.data?.translated_text),this.isAutoTranslating=!1},$=>{this.notificationService.openNotification("Neuspjelo prevo\u0111enje.","","error"),this.isAutoTranslating=!1})}}saveTranslations(){if(this.accountService.checkHeaders()){this.isLoading=!0;let g=this.newContent.filter(Bt=>!!Bt[Object.keys(Bt)[0]]),$=[];const st=s(89410);g.map(Bt=>{let hr={description:this.escapeHtml(Object.values(Bt)?.[0]),content:Object.values(Bt)?.[0],appeal:"",slug:this.data?.currentFundraiserImage?.slug,language_code:Object.keys(Bt)?.[0],currency_code:this.data?.currentFundraiserImage?.currency_code,is_auto:!1};hr.content=hr.content.replace(/<ul>(.*?)<\/ul>/gs,(Xr,fn)=>fn.replace(/<li>(.*?)<\/li>/g,"&#8226;&nbsp;$1<br>")).replace(/<ol>(.*?)<\/ol>/gs,(Xr,fn)=>{let Kn=1;return fn.replace(/<li>(.*?)<\/li>/g,(An,Ki)=>`${Kn++}.&nbsp;${Ki}<br>`)}),hr.content=st.sanitize(hr.content),$.push(this.fundraiserService.updateFundraiserDescriptionTranslation(hr))}),(0,n.D)($).subscribe(Bt=>{this.isLoading=!1,this.dialogRef.close(!0),this.refreshComponentEvent.emit()},Bt=>{this.notificationService.openNotification("Prevedi neuspjelo.","close","error"),this.isLoading=!1})}}escapeHtml(g){return g?.replace(/<[^>]*>/g," ")?.replace(/\s\s+/g," ")?.trim()}onCloseClick(){this.dialogRef.close()}handlePasteDetected(g){this.loadingText=g}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(e.QS),i.Y36(q.g),i.Y36(D.B),i.Y36(I.R),i.Y36(C.WI),i.Y36(C.so))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-translate-about-description"]],outputs:{refreshComponentEvent:"refreshComponentEvent"},decls:43,vars:13,consts:function(){let Wt,g,$,st,Bt,hr;return Wt="Prikupljanje Sredstava Sadr\u017Eaj",g="Izvornik jezik",$="Prijevod",st="Auto Prevedi",Bt="Odbaciti",hr="Spremi",[["ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["ngClass","m-l-xl","fxLayout","row","fxLayoutAlign","baseline"],Wt,["ngClass","p-l-m"],["diameter","20","color","accent",4,"ngIf"],[1,"mat-typography"],["fxLayout","row","fxLayout.xs","column"],["fxFlex","50%","fxFlex.xs","100%"],["ngClass","m-l-xs"],[1,"mat-body-2"],g,["fxLayout","row","ngClass","p-xs","fxLayoutAlign","start center"],["width","20px",3,"src"],[3,"quillContent","readOnly"],$,["fxLayout","row","fxLayoutAlign","space-between center"],[3,"ngTemplateOutlet"],["mat-stroked-button","","color","accent","id","autoTranslateButton",3,"disabled","click"],st,["ngClass","m-l-xs",4,"ngIf"],[3,"quillContent","control","onContentChange","allTextCheck","pasteDetected"],["align","end"],["mat-button","","color","accent",3,"disabled","click"],Bt,["mat-flat-button","","color","accent","id","translate_button_save_all",3,"disabled","click"],hr,["langSwitcher",""],["diameter","20","color","accent"],["color","primary","diameter","20"],["color","accent","diameter","20"],["id","langSwitcher","mat-button","","ngClass","m-l-xs",3,"matMenuTriggerFor"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/keyboard_arrow_down/public"],[1,"translationMenuContainerDropDown"],["menu","matMenu"],[4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[3,"id"]]},template:function(g,$){if(1&g&&(i.TgZ(0,"div",0)(1,"button",1),i.NdJ("click",function(){return $.onCloseClick()}),i._UZ(2,"img",2),i.qZA()(),i.TgZ(3,"div",3)(4,"h2"),i.SDv(5,4),i.qZA(),i.TgZ(6,"div",5),i.YNc(7,kt,1,0,"mat-spinner",6),i.qZA()(),i.TgZ(8,"mat-dialog-content",7)(9,"div",8)(10,"div",9)(11,"div",10)(12,"mat-label",11),i.SDv(13,12),i.qZA(),i.TgZ(14,"div",13),i._UZ(15,"img",14),i._uU(16,"\xa0 "),i.TgZ(17,"span"),i._uU(18),i.qZA()()(),i._UZ(19,"br")(20,"app-quill-editor",15),i.qZA(),i.TgZ(21,"div",9)(22,"div",10)(23,"mat-label",11),i.SDv(24,16),i.qZA(),i.TgZ(25,"div",17),i.GkF(26,18),i.TgZ(27,"div")(28,"button",19),i.NdJ("click",function(){return $.autoTranslate()}),i.TgZ(29,"span"),i.SDv(30,20),i.qZA(),i.YNc(31,Me,2,0,"mat-icon",21),i.qZA()()()(),i._UZ(32,"br"),i.TgZ(33,"app-quill-editor",22),i.NdJ("onContentChange",function(Bt){return $.changeAboutContent(Bt)})("allTextCheck",function(Bt){return $.allCheck(Bt)})("pasteDetected",function(Bt){return $.handlePasteDetected(Bt)}),i.qZA()()()(),i.TgZ(34,"mat-dialog-actions",23)(35,"button",24),i.NdJ("click",function(){return $.discardAllAboutChanges()}),i.SDv(36,25),i.qZA(),i.TgZ(37,"button",26),i.NdJ("click",function(){return $.saveTranslations()}),i.TgZ(38,"span"),i.SDv(39,27),i.qZA(),i.YNc(40,ut,2,0,"mat-icon",21),i.qZA()(),i.YNc(41,Ht,10,4,"ng-template",null,28,i.W1O)),2&g){const st=i.MAs(42);i.xp6(7),i.Q6J("ngIf",$.loadingText),i.xp6(8),i.s9C("src",$.languageIconPath+$.originalLocale+"1/public",i.LSH),i.xp6(3),i.Oqu($.allLanguages[$.originalLocale]),i.xp6(2),i.Q6J("quillContent",$.originalQuillContent)("readOnly",!0),i.xp6(6),i.Q6J("ngTemplateOutlet",st),i.xp6(2),i.Q6J("disabled",$.isAutoTranslating),i.xp6(3),i.Q6J("ngIf",$.isAutoTranslating),i.xp6(2),i.Q6J("quillContent",$.quillContent)("control",$.quillContentCtrl),i.xp6(2),i.Q6J("disabled",$.isLoading||$.isDisable),i.xp6(2),i.Q6J("disabled",$.isLoading||$.isDisable||!$.allTextCheck||$.isDescriptionEmpty),i.xp6(3),i.Q6J("ngIf",$.isLoading)}},dependencies:[M.mk,M.sg,M.O5,M.tP,ee.$V,fe.W0,fe.tN,fe.D8,T.eB,F.Hw,le.sN,C.xY,C.H8,V.xw,V.Wh,V.yH,de.oO,ye.g,M.gd,M.rS],encapsulation:2}),Ze})();function Lr(Ze,Wt){1&Ze&&i._UZ(0,"mat-spinner",23)}function Kr(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",24),i._UZ(1,"mat-spinner",25),i.qZA())}let Cn=(()=>{class Ze{constructor(g,$,st,Bt,hr,Xr,fn){this._formBuilder=g,this._mediaService=$,this.fundraiserService=st,this.notificationService=Bt,this.accountService=hr,this.data=Xr,this.dialogRef=fn,this.allLanguages={bg:"Bulgarian",hr:"Croatian",cs:"Czech",da:"Danish",fi:"Finnish",el:"Greek",hu:"Hungarian",it:"Italian",pl:"Polish",pt:"Portuguese",ro:"Romanian",sk:"Slovak",sv:"Swedish",uk:"Ukrainian",nl:"Dutch",de:"Deutsch",es:"Spanish",en:"English",fr:"French"},this.originalLocale="nl",this.languageIconPath="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/",this.isSave=!1,this.newAppeal={},this.quillContentCtrl=new e.p4,this.mediaResetControl=new e.p4(!1),this.allTextCheck=!1,this.loadingText=!1}ngOnInit(){this.originalLocale=this.data?.currentFundraiserImage?.language_code,this.titleFormGroup=this._formBuilder.group({translationTitle:[this.data?.currentFundraiserImage?.title]}),this.mediaList=this._mediaService.getMediaList(this.data?.currentFundraiserImage?.appeal_image_list)}changeAboutContent(g){this.newAppeal.content=g}changeUpdateMedia(g){this.newAppeal.imageList=g}allCheck(g){this.allTextCheck=g}discardChanges(){this.mediaResetControl.setValue(!0),this.mediaList=this._mediaService.getMediaList(this.data?.currentFundraiserImage?.appeal_image_list),this.quillContentCtrl.setValue(this.data?.currentFundraiser?.appeal),this.newAppeal={}}dialogClose(){if(this.accountService.checkHeaders())try{this.isSave=!0;let g=[];if(void 0!==this.newAppeal?.imageList){let $=this.getMediaBodyObject();g.push(this._mediaService.saveAppealMedia($))}if(this.newAppeal?.content){let $=this.getContentBodyObject();$.to_update="title_appeal",$.slug=this.data?.currentFundraiserImage?.slug,$.content=this.newAppeal.content.replace(/<ul>(.*?)<\/ul>/gs,(Bt,hr)=>hr.replace(/<li>(.*?)<\/li>/g,"&#8226;&nbsp;$1<br>")).replace(/<ol>(.*?)<\/ol>/gs,(Bt,hr)=>{let Xr=1;return hr.replace(/<li>(.*?)<\/li>/g,(fn,Kn)=>`${Xr++}.&nbsp;${Kn}<br>`)});const st=s(89410);$.content=st.sanitize($.content),g.push(this.fundraiserService.updateFundraiserAppealDescription($))}(0,n.D)(g).subscribe($=>{this.isSave=!1,this.notificationService.openNotification("A\u017Euriranje uspje\u0161no.","","success"),this.dialogRef.close(!0),window.location.reload()},$=>{this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","close","error"),this.isSave=!1})}catch{this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","close","error"),this.isSave=!1}}getMediaBodyObject(){let g=new FormData;return this.newAppeal?.imageList.forEach(($,st)=>{$.image&&g.append("image"+st,this.newAppeal?.imageList[st]?.image),$.videoUrl&&g.append("video_url"+st,this.newAppeal?.imageList[st]?.videoUrl)}),g.append("text","appeal"),g.append("slug",this.data?.currentFundraiserImage?.slug),g}getContentBodyObject(){let g={};return g.title=this.titleFormGroup.get("translationTitle")?.value,g.appeal=this.escapeHtml(this.newAppeal.content),g.description="",g.content=this.newAppeal.content,g.slug=this.data?.currentFundraiserImage?.slug,g}escapeHtml(g){return g?.replace(/<[^>]*>/g," ")?.replace(/\s\s+/g," ")?.trim()}onCloseClick(){this.dialogRef.close()}handlePasteDetected(g){this.loadingText=g}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(e.QS),i.Y36(P.y),i.Y36(I.R),i.Y36(q.g),i.Y36(D.B),i.Y36(C.WI),i.Y36(C.so))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-edit-appeal-description"]],decls:31,vars:10,consts:function(){let Wt,g,$,st,Bt;return Wt="Motivacija",g="Opi\u0161ite svoju motivaciju za pokretanje ovog prikupljanja sredstava",$="Izvornik",st="Odbaci",Bt="Spremi",[["ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["ngClass","m-l-xl","fxLayout","row","fxLayoutAlign","baseline"],Wt,g,["ngClass","p-l-m"],["diameter","20","color","accent",4,"ngIf"],[1,"mat-typography"],["ngClass","m-l-xs","fxLayout","row","fxLayoutAlign","start center"],[1,"mat-body-2"],$,["fxLayout","row","ngClass","p-xs","fxLayoutAlign","start center"],["width","20px",3,"src"],[3,"quillContent","control","onContentChange","allTextCheck","pasteDetected"],["ngClass","m-l-s","fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutGap","16px"],[3,"fundraiserMediaList","resetControl","onMediaChange"],["align","end"],["mat-button","","color","accent",3,"disabled","click"],st,["id","editAboutSaveButton","mat-flat-button","","color","accent",3,"disabled","click"],Bt,["ngClass","m-l-xs",4,"ngIf"],["diameter","20","color","accent"],["ngClass","m-l-xs"],["color","accent","diameter","20"]]},template:function(g,$){1&g&&(i.TgZ(0,"div",0)(1,"button",1),i.NdJ("click",function(){return $.onCloseClick()}),i._UZ(2,"img",2),i.qZA()(),i.TgZ(3,"div",3)(4,"h2"),i.SDv(5,4),i.qZA(),i.TgZ(6,"mat-label"),i.SDv(7,5),i.qZA(),i.TgZ(8,"div",6),i.YNc(9,Lr,1,0,"mat-spinner",7),i.qZA()(),i.TgZ(10,"mat-dialog-content",8)(11,"div",9)(12,"mat-label",10),i.SDv(13,11),i.qZA(),i.TgZ(14,"div",12),i._UZ(15,"img",13),i._uU(16,"\xa0 "),i.TgZ(17,"span"),i._uU(18),i.qZA()()(),i._UZ(19,"br"),i.TgZ(20,"app-quill-editor",14),i.NdJ("onContentChange",function(Bt){return $.changeAboutContent(Bt)})("allTextCheck",function(Bt){return $.allCheck(Bt)})("pasteDetected",function(Bt){return $.handlePasteDetected(Bt)}),i.qZA(),i._UZ(21,"br"),i.TgZ(22,"div",15)(23,"app-fundraiser-media-edit",16),i.NdJ("onMediaChange",function(Bt){return $.changeUpdateMedia(Bt)}),i.qZA()()(),i.TgZ(24,"mat-dialog-actions",17)(25,"button",18),i.NdJ("click",function(){return $.discardChanges()}),i.SDv(26,19),i.qZA(),i.TgZ(27,"button",20),i.NdJ("click",function(){return $.dialogClose()}),i.TgZ(28,"span"),i.SDv(29,21),i.qZA(),i.YNc(30,Kr,2,0,"mat-icon",22),i.qZA()()),2&g&&(i.xp6(9),i.Q6J("ngIf",$.loadingText),i.xp6(6),i.s9C("src",$.languageIconPath+$.originalLocale+"1/public",i.LSH),i.xp6(3),i.Oqu($.allLanguages[$.originalLocale]),i.xp6(2),i.Q6J("quillContent",null==$.data.currentFundraiser?null:$.data.currentFundraiser.content)("control",$.quillContentCtrl),i.xp6(3),i.Q6J("fundraiserMediaList",$.mediaList)("resetControl",$.mediaResetControl),i.xp6(2),i.Q6J("disabled",!(null!=$.newAppeal&&$.newAppeal.content||null!=$.newAppeal&&null!=$.newAppeal.imageList&&$.newAppeal.imageList.length)||$.isSave),i.xp6(2),i.Q6J("disabled",!(null!=$.newAppeal&&$.newAppeal.content||null!=$.newAppeal&&null!=$.newAppeal.imageList&&$.newAppeal.imageList.length)||$.isSave||!$.allTextCheck),i.xp6(3),i.Q6J("ngIf",$.isSave))},dependencies:[M.mk,M.O5,ee.$V,T.eB,F.Hw,le.sN,C.xY,C.H8,V.xw,V.SQ,V.Wh,de.oO,ye.g,k],encapsulation:2}),Ze})();function Wn(Ze,Wt){1&Ze&&i._UZ(0,"mat-spinner",29)}function zn(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",10),i._UZ(1,"mat-spinner",30),i.qZA())}function ti(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",10),i._UZ(1,"mat-spinner",31),i.qZA())}function yr(Ze,Wt){if(1&Ze){const g=i.EpF();i.ynx(0),i.TgZ(1,"button",37),i.NdJ("click",function(){const Bt=i.CHM(g).$implicit,hr=i.oxw(2);return i.KtG(hr.changeLanguage(Bt))}),i._UZ(2,"img",14),i._uU(3,"\xa0 "),i.TgZ(4,"span",38),i._uU(5),i.ALo(6,"uppercase"),i.ALo(7,"titlecase"),i.qZA()(),i.BQk()}if(2&Ze){const g=Wt.$implicit,$=i.oxw(2);i.xp6(2),i.s9C("src",$.languageIconPath+g+"1/public",i.LSH),i.xp6(2),i.s9C("id","languageChooser_"+g+"_button"),i.xp6(1),i.AsE("",i.lcZ(6,4,g)," - ",i.lcZ(7,6,$.allLanguages[g]),"")}}function Jr(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div")(1,"button",32),i._UZ(2,"img",14),i._uU(3,"\xa0 "),i.TgZ(4,"span"),i._uU(5),i.qZA(),i._UZ(6,"img",33),i.qZA()(),i.TgZ(7,"mat-menu",34,35),i.YNc(9,yr,8,8,"ng-container",36),i.qZA()),2&Ze){const g=i.MAs(8),$=i.oxw();i.xp6(1),i.Q6J("matMenuTriggerFor",g),i.xp6(1),i.s9C("src",$.languageIconPath+$.selectedLocale+"1/public",i.LSH),i.xp6(3),i.Oqu($.allLanguages[$.selectedLocale]),i.xp6(4),i.Q6J("ngForOf",$.translationLocaleArr)}}let wt=(()=>{class Ze{constructor(g,$,st,Bt,hr,Xr){this._formBuilder=g,this.notificationService=$,this._fundraiserService=st,this._accountService=Bt,this.data=hr,this.dialogRef=Xr,this.allLocales=["nl","en","es","de","fr","bg","hr","cs","da","fi","el","hu","it","pl","pt","ro","sk","sv","uk"],this.allLanguages={bg:"Bulgarian",hr:"Croatian",cs:"Czech",da:"Danish",fi:"Finnish",el:"Greek",hu:"Hungarian",it:"Italian",pl:"Polish",pt:"Portuguese",ro:"Romanian",sk:"Slovak",sv:"Swedish",uk:"Ukrainian",nl:"Dutch",de:"Deutsch",es:"Spanish",en:"English",fr:"French"},this.originalLocale="nl",this.selectedLocale="en",this.languageIconPath="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/",this.translationLocaleArr=[],this.quillContentCtrl=new e.p4,this.isLoading=!1,this.isDisable=!0,this.isAutoTranslating=!1,this.newAppeal=[{nl:""},{en:""},{es:""},{de:""},{fr:""},{fi:""},{hr:""},{hu:""},{it:""},{pl:""},{pt:""},{ro:""},{sk:""},{sv:""},{uk:""},{bg:""},{cs:""},{da:""},{el:""}],this.allTextCheck=!1,this.loadingText=!1,this.refreshComponentEvent=new i.vpe}ngOnInit(){this.originalLocale=this.data?.currentFundraiserImage?.language_code,this.titleFormGroup=this._formBuilder.group({translationTitle:[""],en:[""],nl:[""],es:[""],de:[""],fr:[""]}),this.originalQuillContent=this.data?.currentFundraiser?.content,this.translationLocaleArr=this.getTranslatableLocale(this.originalLocale),this.initTranslations(),this.titleFormGroup.valueChanges.subscribe(g=>{this.changeAppealContent(this.quillContent)})}changeAppealContent(g){this.newAppeal.map($=>(void 0!==$[this.selectedLocale]&&($[this.selectedLocale]=g),$)),this.isDisable=!1}allCheck(g){this.allTextCheck=g}discardAllAppealChanges(){this.titleFormGroup.reset(""),this.quillContentCtrl.setValue(this.quillContent),this.newAppeal=this.newAppeal.map(g=>Object.assign({[Object.keys(g)[0]]:""})),this.isDisable=!0}changeLanguage(g){switch(!0){case g.includes("nl"):this.selectedLocale="nl",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("es"):this.selectedLocale="es",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("de"):this.selectedLocale="de",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("fr"):this.selectedLocale="fr",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("bg"):this.selectedLocale="bg",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("hr"):this.selectedLocale="hr",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("cs"):this.selectedLocale="cs",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("da"):this.selectedLocale="da",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("fi"):this.selectedLocale="fi",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("el"):this.selectedLocale="el",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("hu"):this.selectedLocale="hu",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("it"):this.selectedLocale="it",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("pl"):this.selectedLocale="pl",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("pt"):this.selectedLocale="pt",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("ro"):this.selectedLocale="ro",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("sk"):this.selectedLocale="sk",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("sv"):this.selectedLocale="sv",this.changeQuillAppeal(this.selectedLocale);break;case g.includes("uk"):this.selectedLocale="uk",this.changeQuillAppeal(this.selectedLocale);break;default:this.selectedLocale="en",this.changeQuillAppeal(this.selectedLocale)}}changeQuillAppeal(g){let $=this.newAppeal.find(st=>st[g])?.[g];this.quillContent=$||this.data.currentFundraiser.translations["content_"+g]}initTranslations(){this.quillContent=this.data?.currentFundraiser?.translations["content_"+this.translationLocaleArr[0]],this.selectedLocale=this.translationLocaleArr[0]}getOriginalLocale(){return this.originalLocale}getTranslatableLocale(g){return this.allLocales.filter($=>$!==g)}getLanguage(g){return this.allLanguages[g]}autoTranslate(){if(this.selectedLocale){let g={content:this.originalQuillContent,target_language:this.selectedLocale,source_language:this.originalLocale};this.isAutoTranslating=!0,this._fundraiserService.autoTranslateNew(g).subscribe($=>{this.quillContentCtrl.setValue($?.data?.translated_text),this.changeAppealContent($?.data?.translated_text),this.isAutoTranslating=!1},$=>{this.notificationService.openNotification("Neuspjelo prevo\u0111enje.","","error"),this.isAutoTranslating=!1})}}saveTranslations(){if(this._accountService.checkHeaders()){this.isLoading=!0;let g=this.newAppeal.filter(st=>!!st[Object.keys(st)[0]]),$=[];g.map(st=>{let Bt={description:"",content:Object.values(st)?.[0],appeal:this.escapeHtml(Object.values(st)?.[0]),slug:this.data?.currentFundraiserImage?.slug,language_code:Object.keys(st)?.[0],currency_code:this.data?.currentFundraiserImage?.currency_code,is_auto:!1};Bt.content=Bt.content.replace(/<ul>(.*?)<\/ul>/gs,(Xr,fn)=>fn.replace(/<li>(.*?)<\/li>/g,"&#8226;&nbsp;$1<br>")).replace(/<ol>(.*?)<\/ol>/gs,(Xr,fn)=>{let Kn=1;return fn.replace(/<li>(.*?)<\/li>/g,(An,Ki)=>`${Kn++}.&nbsp;${Ki}<br>`)});const hr=s(89410);Bt.content=hr.sanitize(Bt.content),$.push(this._fundraiserService.updateFundraiserAppealDescriptionTranslation(Bt))}),(0,n.D)($).subscribe(st=>{this.isLoading=!1,this.dialogRef.close(!0),this.refreshComponentEvent.emit()},st=>{this.notificationService.openNotification("Prevedi neuspjelo.","close","error"),this.isLoading=!1})}}escapeHtml(g){return g?.replace(/<[^>]*>/g," ")?.replace(/\s\s+/g," ")?.trim()}onCloseClick(){this.dialogRef.close()}handlePasteDetected(g){this.loadingText=g}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(e.QS),i.Y36(q.g),i.Y36(I.R),i.Y36(D.B),i.Y36(C.WI),i.Y36(C.so))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-translate-appeal-description"]],outputs:{refreshComponentEvent:"refreshComponentEvent"},decls:44,vars:14,consts:function(){let Wt,g,$,st,Bt,hr;return Wt="Prevedite Motivacija",g="Izvornik",$="Prijevod",st="Auto Prevedi",Bt="Odbaciti",hr="Spremi",[["ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["ngClass","m-l-xl","fxLayout","row","fxLayoutAlign","baseline"],Wt,["ngClass","p-l-m"],["diameter","20","color","accent",4,"ngIf"],[1,"mat-typography"],["fxLayout","row","fxLayout.xs","column"],["fxFlex","50%","fxFlex.xs","100%"],["ngClass","m-l-xs"],[1,"mat-body-2"],g,["fxLayout","row","ngClass","p-xs","fxLayoutAlign","start center"],["width","20px",3,"src"],[3,"quillContent","readOnly"],$,["fxLayout","row","fxLayoutAlign","space-between center"],[3,"ngTemplateOutlet"],["mat-stroked-button","","color","accent","id","autoTranslateButton",3,"disabled","click"],st,["ngClass","m-l-xs",4,"ngIf"],[3,"quillContent","control","onContentChange","allTextCheck","pasteDetected"],["align","end"],["mat-button","","color","accent",3,"disabled","click"],Bt,["mat-flat-button","","color","accent","id","translate_button_save_all",3,"disabled","click"],hr,["langSwitcher",""],["diameter","20","color","accent"],["color","primary","diameter","20"],["color","accent","diameter","20"],["id","langSwitcher","mat-button","","ngClass","m-l-xs",3,"matMenuTriggerFor"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/keyboard_arrow_down/public"],[1,"translationMenuContainerDropDown"],["menu","matMenu"],[4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[3,"id"]]},template:function(g,$){if(1&g&&(i.TgZ(0,"div",0)(1,"button",1),i.NdJ("click",function(){return $.onCloseClick()}),i._UZ(2,"img",2),i.qZA()(),i.TgZ(3,"div",3)(4,"h2"),i.SDv(5,4),i.qZA(),i.TgZ(6,"div",5),i.YNc(7,Wn,1,0,"mat-spinner",6),i.qZA()(),i.TgZ(8,"mat-dialog-content",7)(9,"div",8)(10,"div",9)(11,"div",10)(12,"mat-label",11),i.SDv(13,12),i.qZA(),i._uU(14),i.TgZ(15,"div",13),i._UZ(16,"img",14),i._uU(17,"\xa0 "),i.TgZ(18,"span"),i._uU(19),i.qZA()()(),i._UZ(20,"br")(21,"app-quill-editor",15),i.qZA(),i.TgZ(22,"div",9)(23,"div",10)(24,"mat-label",11),i.SDv(25,16),i.qZA(),i.TgZ(26,"div",17),i.GkF(27,18),i.TgZ(28,"div")(29,"button",19),i.NdJ("click",function(){return $.autoTranslate()}),i.TgZ(30,"span"),i.SDv(31,20),i.qZA(),i.YNc(32,zn,2,0,"mat-icon",21),i.qZA()()()(),i._UZ(33,"br"),i.TgZ(34,"app-quill-editor",22),i.NdJ("onContentChange",function(Bt){return $.changeAppealContent(Bt)})("allTextCheck",function(Bt){return $.allCheck(Bt)})("pasteDetected",function(Bt){return $.handlePasteDetected(Bt)}),i.qZA()()()(),i.TgZ(35,"mat-dialog-actions",23)(36,"button",24),i.NdJ("click",function(){return $.discardAllAppealChanges()}),i.SDv(37,25),i.qZA(),i.TgZ(38,"button",26),i.NdJ("click",function(){return $.saveTranslations()}),i.TgZ(39,"span"),i.SDv(40,27),i.qZA(),i.YNc(41,ti,2,0,"mat-icon",21),i.qZA()(),i.YNc(42,Jr,10,4,"ng-template",null,28,i.W1O)),2&g){const st=i.MAs(43);i.xp6(7),i.Q6J("ngIf",$.loadingText),i.xp6(7),i.hij(" ",$.originalLocale," "),i.xp6(2),i.s9C("src",$.languageIconPath+$.originalLocale+"1/public",i.LSH),i.xp6(3),i.Oqu($.allLanguages[$.originalLocale]),i.xp6(2),i.Q6J("quillContent",$.originalQuillContent)("readOnly",!0),i.xp6(6),i.Q6J("ngTemplateOutlet",st),i.xp6(2),i.Q6J("disabled",$.isAutoTranslating),i.xp6(3),i.Q6J("ngIf",$.isAutoTranslating),i.xp6(2),i.Q6J("quillContent",$.quillContent)("control",$.quillContentCtrl),i.xp6(2),i.Q6J("disabled",$.isLoading||$.isDisable),i.xp6(2),i.Q6J("disabled",$.isLoading||$.isDisable||!$.allTextCheck),i.xp6(3),i.Q6J("ngIf",$.isLoading)}},dependencies:[M.mk,M.sg,M.O5,M.tP,ee.$V,fe.W0,fe.tN,fe.D8,T.eB,F.Hw,le.sN,C.xY,C.H8,V.xw,V.Wh,V.yH,de.oO,ye.g,M.gd,M.rS],encapsulation:2}),Ze})();var nr=s(9206),tn=s(46480),rn=s(13009),vn=s(6225),Gn=s(84531),Yn=s(1911),Dn=s(81338),Ti=s(32946),Ni=s(43732),ci=s(9),Kt=s(36442),Ar=s(43719),ie=s(31180),Ve=s(80539),Mt=s(85270);function tr(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",6),i._UZ(1,"mat-spinner",7),i.qZA())}let kr=(()=>{class Ze{constructor(g,$){this._bankService=g,this.router=$,this.publish=new i.vpe,this.slug="",this.isCurrentChildFundraiser=!1,this.isSave=!1,this.isLoad=!1,this.stripeStatus={}}ngOnInit(){}emitPublishClick(){this.isSave=!0,this.isLoad=!0,this._bankService.getStripeStatus().subscribe(g=>{this.stripeStatus=g?.data,this.chargesEnabled=this.stripeStatus?.charges_enabled,this.payoutEnabled=this.stripeStatus?.payout_enabled,this.detailsSubmitted=this.stripeStatus?.details_submitted,this.showStripePrompt=!(!0===this.chargesEnabled&&!0===this.payoutEnabled&&!0===this.detailsSubmitted||!1===this.chargesEnabled&&!1===this.payoutEnabled&&!1===this.detailsSubmitted||!0===this.chargesEnabled&&!0===this.payoutEnabled&&!0===this.detailsSubmitted),0==this.showStripePrompt?this.publish.emit(!0):this.router.navigate(["fundraising/stripe-prompt",{slug:this.slug}])})}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(Yn.y),i.Y36(qt.F0))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-notification-banner"]],inputs:{slug:"slug",isCurrentChildFundraiser:"isCurrentChildFundraiser",isSave:"isSave"},outputs:{publish:"publish"},decls:7,vars:2,consts:function(){let Wt,g;return Wt="Va\u0161 prikuplja\u010D sredstava je stvoren Kada budete spremni, mo\u017Eete ga objaviti i po\u010Deti primati donacije.",g="Objavi",[["fxLayoutGap","2%","fxLayout","row","fxLayout.lt-sm","column","fxLayoutAlign","space-between center","fxLayoutAlign.lt-sm","space-between start",1,"primary-bg","white-text","p-m"],Wt,["id","publish-button","mat-flat-button","","color","accent","fxLayout","column","fxLayoutAlign","centre center",3,"disabled"],["ngClass.lt-sm","m-r-xl m-l-xl",3,"click"],g,["class","m-l-xs",4,"ngIf"],[1,"m-l-xs"],["color","primary","diameter","20"]]},template:function(g,$){1&g&&(i.TgZ(0,"div",0)(1,"div"),i.SDv(2,1),i.qZA(),i.TgZ(3,"button",2)(4,"span",3),i.NdJ("click",function(){return $.emitPublishClick()}),i.SDv(5,4),i.qZA(),i.YNc(6,tr,2,0,"mat-icon",5),i.qZA()()),2&g&&(i.xp6(3),i.Q6J("disabled",$.isSave),i.xp6(3),i.Q6J("ngIf",$.isLoad))},dependencies:[M.O5,T.eB,F.Hw,le.sN,V.xw,V.SQ,V.Wh,de.oO],encapsulation:2}),Ze})();var mn=s(83454),un=s(97107),ri=s(38545),Sr=s(6450),Er=s(66037),Ot=s(45547),lr=s(91469),Cr=s(6717),Gr=s(67327),Ln=s(26974);function Xn(Ze,Wt){1&Ze&&i._UZ(0,"mat-spinner",29)}function ni(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",10),i._UZ(1,"mat-spinner",30),i.qZA())}function ta(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",10),i._UZ(1,"mat-spinner",31),i.qZA())}function $a(Ze,Wt){if(1&Ze){const g=i.EpF();i.ynx(0),i.TgZ(1,"button",37),i.NdJ("click",function(){const Bt=i.CHM(g).$implicit,hr=i.oxw(2);return i.KtG(hr.changeLanguage(Bt))}),i._UZ(2,"img",14),i._uU(3,"\xa0 "),i.TgZ(4,"span",38),i._uU(5),i.ALo(6,"uppercase"),i.ALo(7,"titlecase"),i.qZA()(),i.BQk()}if(2&Ze){const g=Wt.$implicit,$=i.oxw(2);i.xp6(2),i.s9C("src",$.languageIconPath+g+"1/public",i.LSH),i.xp6(2),i.s9C("id","languageChooser_"+g+"_button"),i.xp6(1),i.AsE("",i.lcZ(6,4,g)," - ",i.lcZ(7,6,$.allLanguages[g]),"")}}function La(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div")(1,"button",32),i._UZ(2,"img",14),i._uU(3,"\xa0 "),i.TgZ(4,"span"),i._uU(5),i.qZA(),i._UZ(6,"img",33),i.qZA()(),i.TgZ(7,"mat-menu",34,35),i.YNc(9,$a,8,8,"ng-container",36),i.qZA()),2&Ze){const g=i.MAs(8),$=i.oxw();i.xp6(1),i.Q6J("matMenuTriggerFor",g),i.xp6(1),i.s9C("src",$.languageIconPath+$.selectedLocale+"1/public",i.LSH),i.xp6(3),i.Oqu($.allLanguages[$.selectedLocale]),i.xp6(4),i.Q6J("ngForOf",$.translationLocaleArr)}}let Ei=(()=>{class Ze{constructor(g,$,st,Bt){this.notificationService=g,this._fundraiserService=$,this.data=st,this.dialogRef=Bt,this.allLocales=["nl","en","es","de","fr","bg","hr","cs","da","fi","el","hu","it","pl","pt","ro","sk","sv","uk"],this.allLanguages={bg:"Bulgarian",hr:"Croatian",cs:"Czech",da:"Danish",fi:"Finnish",el:"Greek",hu:"Hungarian",it:"Italian",pl:"Polish",pt:"Portuguese",ro:"Romanian",sk:"Slovak",sv:"Swedish",uk:"Ukrainian",nl:"Dutch",de:"Deutsch",es:"Spanish",en:"English",fr:"French"},this.originalLocale="nl",this.selectedLocale="en",this.languageIconPath="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/",this.translationLocaleArr=[],this.quillContentCtrl=new e.p4,this.isLoading=!1,this.isDisable=!0,this.isAutoTranslating=!1,this.newContent=[{nl:""},{en:""},{es:""},{de:""},{fr:""},{fi:""},{hr:""},{hu:""},{it:""},{pl:""},{pt:""},{ro:""},{sk:""},{sv:""},{uk:""},{bg:""},{cs:""},{da:""},{el:""}],this.allTextCheck=!1,this.loadingText=!1}ngOnInit(){this.originalLocale=this.data?.locale,this.originalQuillContent=this.data?.update?.content,this.translationLocaleArr=this.getTranslatableLocale(this.originalLocale),this.setQuillContent()}changeUpdateContent(g){this.newContent.map($=>(void 0!==$[this.selectedLocale]&&($[this.selectedLocale]=g),$)),this.isDisable=!1}discardAllContentChanges(){this.quillContentCtrl.setValue(this.quillContent),this.newContent=this.newContent.map(g=>Object.assign({[Object.keys(g)[0]]:""})),this.changeQuillContent(this.selectedLocale),this.isDisable=!0}changeLanguage(g){switch(!0){case g.includes("nl"):this.selectedLocale="nl",this.changeQuillContent(this.selectedLocale);break;case g.includes("es"):this.selectedLocale="es",this.changeQuillContent(this.selectedLocale);break;case g.includes("de"):this.selectedLocale="de",this.changeQuillContent(this.selectedLocale);break;case g.includes("fr"):this.selectedLocale="fr",this.changeQuillContent(this.selectedLocale);break;case g.includes("bg"):this.selectedLocale="bg",this.changeQuillContent(this.selectedLocale);break;case g.includes("hr"):this.selectedLocale="hr",this.changeQuillContent(this.selectedLocale);break;case g.includes("cs"):this.selectedLocale="cs",this.changeQuillContent(this.selectedLocale);break;case g.includes("da"):this.selectedLocale="da",this.changeQuillContent(this.selectedLocale);break;case g.includes("fi"):this.selectedLocale="fi",this.changeQuillContent(this.selectedLocale);break;case g.includes("el"):this.selectedLocale="el",this.changeQuillContent(this.selectedLocale);break;case g.includes("hu"):this.selectedLocale="hu",this.changeQuillContent(this.selectedLocale);break;case g.includes("it"):this.selectedLocale="it",this.changeQuillContent(this.selectedLocale);break;case g.includes("pl"):this.selectedLocale="pl",this.changeQuillContent(this.selectedLocale);break;case g.includes("pt"):this.selectedLocale="pt",this.changeQuillContent(this.selectedLocale);break;case g.includes("ro"):this.selectedLocale="ro",this.changeQuillContent(this.selectedLocale);break;case g.includes("sk"):this.selectedLocale="sk",this.changeQuillContent(this.selectedLocale);break;case g.includes("sv"):this.selectedLocale="sv",this.changeQuillContent(this.selectedLocale);break;case g.includes("uk"):this.selectedLocale="uk",this.changeQuillContent(this.selectedLocale);break;default:this.selectedLocale="en",this.changeQuillContent(this.selectedLocale)}}changeQuillContent(g){let $=this.newContent.find(st=>st[g])?.[g];this.quillContent=$||this.data?.update?.translation["content_"+g]}setQuillContent(){this.quillContent=this.data?.update?.translation["content_"+this.translationLocaleArr[0]],this.selectedLocale=this.translationLocaleArr[0]}getOriginalLocale(){return this.originalLocale}getTranslatableLocale(g){return this.allLocales.filter($=>$!==g)}getLanguage(g){return this.allLanguages[g]}autoTranslate(){if(this.selectedLocale){let g={content:this.originalQuillContent,target_language:this.selectedLocale,source_language:this.originalLocale};this.isAutoTranslating=!0,this._fundraiserService.autoTranslateNew(g).subscribe($=>{this.quillContentCtrl.setValue($?.data?.translated_text),this.changeUpdateContent($?.data?.translated_text),this.isAutoTranslating=!1},$=>{this.notificationService.openNotification("Neuspjelo prevo\u0111enje.","","error"),this.isAutoTranslating=!1})}}allCheck(g){this.allTextCheck=g}saveTranslations(){this.isLoading=!0;let g=this.newContent.filter(st=>!!st[Object.keys(st)[0]]),$=[];g.map(st=>{let Bt={};Bt.content=Object.values(st)?.[0],Bt.content=Bt.content.replace(/<ul>(.*?)<\/ul>/gs,(Xr,fn)=>fn.replace(/<li>(.*?)<\/li>/g,"&#8226;&nbsp;$1<br>")).replace(/<ol>(.*?)<\/ol>/gs,(Xr,fn)=>{let Kn=1;return fn.replace(/<li>(.*?)<\/li>/g,(An,Ki)=>`${Kn++}.&nbsp;${Ki}<br>`)});const hr=s(89410);Bt.content=hr.sanitize(Bt.content),Bt.update_id=this.data?.update?.id,Bt.language_code=Object.keys(st)?.[0],Bt.is_auto=!1,Bt.slug=this.data?.slug,$.push(this._fundraiserService.saveUpdates(Bt))}),(0,n.D)($).subscribe(st=>{this.isLoading=!1,this.dialogRef.close(!0),this.notificationService.openNotification("A\u017Euriranje uspje\u0161no.","","success"),window.location.reload()},st=>{this.notificationService.openNotification("Prevedi neuspjelo.","close","error"),this.isLoading=!1})}onCloseClick(){this.dialogRef.close()}handlePasteDetected(g){this.loadingText=g}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(q.g),i.Y36(I.R),i.Y36(C.WI),i.Y36(C.so))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-translate-updates"]],decls:43,vars:13,consts:function(){let Wt,g,$,st,Bt,hr;return Wt="A\u017Euriranje Prijevoda",g="Izvornik",$="Prikupljanje sredstava",st="Auto Prevedi",Bt="Odbaciti",hr="Spremi",[["ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["ngClass","m-l-xl","fxLayout","row","fxLayoutAlign","baseline"],Wt,["ngClass","p-l-m"],["diameter","20","color","accent",4,"ngIf"],[1,"mat-typography"],["fxLayout","row","fxLayout.xs","column"],["fxFlex","50%","fxFlex.xs","100%"],["ngClass","m-l-xs"],[1,"mat-body-2"],g,["fxLayout","row","ngClass","p-xs","fxLayoutAlign","start center"],["width","20px",3,"src"],[3,"quillContent","readOnly"],$,["fxLayout","row","fxLayoutAlign","space-between center"],[3,"ngTemplateOutlet"],["mat-stroked-button","","color","accent","id","autoTranslateButton",3,"disabled","click"],st,["ngClass","m-l-xs",4,"ngIf"],[3,"quillContent","control","onContentChange","allTextCheck","pasteDetected"],["align","end"],["mat-button","","color","accent",3,"disabled","click"],Bt,["mat-flat-button","","color","accent","id","translate_button_save_all",3,"disabled","click"],hr,["langSwitcher",""],["diameter","20","color","accent"],["color","primary","diameter","20"],["color","accent","diameter","20"],["id","langSwitcher","mat-button","","ngClass","m-l-xs",3,"matMenuTriggerFor"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/keyboard_arrow_down/public"],[1,"translationMenuContainerDropDown"],["menu","matMenu"],[4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[3,"id"]]},template:function(g,$){if(1&g&&(i.TgZ(0,"div",0)(1,"button",1),i.NdJ("click",function(){return $.onCloseClick()}),i._UZ(2,"img",2),i.qZA()(),i.TgZ(3,"div",3)(4,"h2"),i.SDv(5,4),i.qZA(),i.TgZ(6,"div",5),i.YNc(7,Xn,1,0,"mat-spinner",6),i.qZA()(),i.TgZ(8,"mat-dialog-content",7)(9,"div",8)(10,"div",9)(11,"div",10)(12,"mat-label",11),i.SDv(13,12),i.qZA(),i.TgZ(14,"div",13),i._UZ(15,"img",14),i._uU(16,"\xa0 "),i.TgZ(17,"span"),i._uU(18),i.qZA()()(),i._UZ(19,"br")(20,"app-quill-editor",15),i.qZA(),i.TgZ(21,"div",9)(22,"div",10)(23,"mat-label",11),i.SDv(24,16),i.qZA(),i.TgZ(25,"div",17),i.GkF(26,18),i.TgZ(27,"div")(28,"button",19),i.NdJ("click",function(){return $.autoTranslate()}),i.TgZ(29,"span"),i.SDv(30,20),i.qZA(),i.YNc(31,ni,2,0,"mat-icon",21),i.qZA()()()(),i._UZ(32,"br"),i.TgZ(33,"app-quill-editor",22),i.NdJ("onContentChange",function(Bt){return $.changeUpdateContent(Bt)})("allTextCheck",function(Bt){return $.allCheck(Bt)})("pasteDetected",function(Bt){return $.handlePasteDetected(Bt)}),i.qZA()()()(),i.TgZ(34,"mat-dialog-actions",23)(35,"button",24),i.NdJ("click",function(){return $.discardAllContentChanges()}),i.SDv(36,25),i.qZA(),i.TgZ(37,"button",26),i.NdJ("click",function(){return $.saveTranslations()}),i.TgZ(38,"span"),i.SDv(39,27),i.qZA(),i.YNc(40,ta,2,0,"mat-icon",21),i.qZA()(),i.YNc(41,La,10,4,"ng-template",null,28,i.W1O)),2&g){const st=i.MAs(42);i.xp6(7),i.Q6J("ngIf",$.loadingText),i.xp6(8),i.s9C("src",$.languageIconPath+$.originalLocale+"1/public",i.LSH),i.xp6(3),i.Oqu($.allLanguages[$.originalLocale]),i.xp6(2),i.Q6J("quillContent",$.originalQuillContent)("readOnly",!0),i.xp6(6),i.Q6J("ngTemplateOutlet",st),i.xp6(2),i.Q6J("disabled",$.isAutoTranslating),i.xp6(3),i.Q6J("ngIf",$.isAutoTranslating),i.xp6(2),i.Q6J("quillContent",$.quillContent)("control",$.quillContentCtrl),i.xp6(2),i.Q6J("disabled",$.isLoading||$.isDisable),i.xp6(2),i.Q6J("disabled",$.isLoading||$.isDisable||!$.allTextCheck),i.xp6(3),i.Q6J("ngIf",$.isLoading)}},dependencies:[M.mk,M.sg,M.O5,M.tP,ee.$V,fe.W0,fe.tN,fe.D8,T.eB,F.Hw,le.sN,C.xY,C.H8,V.xw,V.Wh,V.yH,de.oO,ye.g,M.gd,M.rS],encapsulation:2}),Ze})();function ma(Ze,Wt){1&Ze&&i._UZ(0,"mat-spinner",23)}function bn(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",24),i._UZ(1,"mat-spinner",25),i.qZA())}let ha=(()=>{class Ze{constructor(g,$,st,Bt,hr,Xr){this._fundraiserService=g,this._mediaService=$,this.notificationService=st,this.accountService=Bt,this.data=hr,this.dialogRef=Xr,this.newUpdate={},this.isLoading=!1,this.allTextCheck=!1,this.originalLocale="nl",this.languageIconPath="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/",this.allLanguages={bg:"Bulgarian",hr:"Croatian",cs:"Czech",da:"Danish",fi:"Finnish",el:"Greek",hu:"Hungarian",it:"Italian",pl:"Polish",pt:"Portuguese",ro:"Romanian",sk:"Slovak",sv:"Swedish",uk:"Ukrainian",nl:"Dutch",de:"Deutsch",es:"Spanish",en:"English",fr:"French"},this.loadingText=!1}ngOnInit(){this.originalLocale=this.data?.update?.userLocale}changeUpdateContent(g){this.newUpdate.content=g}changeUpdateMedia(g){this.newUpdate.imageList=g}allCheck(g){this.allTextCheck=g}saveUpdateContentAndMedia(){var g=this;return(0,t.Z)(function*(){if(g.accountService.checkHeaders()){g.isLoading=!0;let $=[];if(void 0!==g.newUpdate?.imageList){let st=g.getMediaBodyObject();$.push(g._mediaService.saveUpdateMedia(st))}if(g.newUpdate?.content){let st=g.newUpdate.content;st=st.replace(/<ul>(.*?)<\/ul>/gs,(Xr,fn)=>fn.replace(/<li>(.*?)<\/li>/g,"&#8226;&nbsp;$1<br>")).replace(/<ol>(.*?)<\/ol>/gs,(Xr,fn)=>{let Kn=1;return fn.replace(/<li>(.*?)<\/li>/g,(An,Ki)=>`${Kn++}.&nbsp;${Ki}<br>`)}),st=s(89410).sanitize(st);let hr=g.getContentBodyObject();hr.content=st,hr.id?$.push(g._fundraiserService.saveEditedUpdates(hr)):g.notificationService.openNotification("U\u010Ditavanje, molimo pri\u010Dekajte","close","error")}(0,n.D)($).subscribe(st=>{g.isLoading=!1,g.notificationService.openNotification("A\u017Euriranje uspje\u0161no.","","success"),window.location.reload()},st=>{g.notificationService.openNotification("A\u017Euriranje nije uspjelo.","close","error"),g.isLoading=!1})}})()}getMediaBodyObject(){let g=new FormData;return this.newUpdate?.imageList.forEach(($,st)=>{$.image&&g.append("image"+st,this.newUpdate?.imageList[st]?.image),$.videoUrl&&g.append("video_url"+st,this.newUpdate?.imageList[st]?.videoUrl)}),g.append("text","update_"+this.data?.update?.id?.toString()),g.append("slug",this.data?.slug),g}getContentBodyObject(){return{content:this.newUpdate?.content,language:this.data?.update?.userLocale,id:this.data?.update?.id,slug:this.data?.slug}}onCloseClick(){this.dialogRef.close()}handlePasteDetected(g){this.loadingText=g}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(I.R),i.Y36(P.y),i.Y36(q.g),i.Y36(D.B),i.Y36(C.WI),i.Y36(C.so))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-edit-update"]],decls:29,vars:8,consts:function(){let Wt,g,$,st;return Wt="Uredi A\u017Euriranje",g="Izvornik",$="Odbaci",st="Spremi",[["ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["ngClass","m-l-xl","fxLayout","row","fxLayoutAlign","baseline"],Wt,["ngClass","p-l-m"],["diameter","20","color","accent",4,"ngIf"],[1,"mat-typography"],["ngClass","m-l-xs","fxLayout","row","fxLayoutAlign","start center"],[1,"mat-body-2"],g,["fxLayout","row","ngClass","p-xs","fxLayoutAlign","start center"],["width","20px",3,"src"],[3,"quillContent","onContentChange","allTextCheck","pasteDetected"],["ngClass","m-l-xs","fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutGap","16px"],[3,"fundraiserMediaList","onMediaChange"],["ngClass","m-t-m"],["align","end"],["mat-button","","color","accent","id","editUpdatesFundraiserPageEditDiscardButton",3,"disabled","click"],$,["mat-flat-button","","color","accent","id","editUpdatesFundraiserPageEditSaveButton",3,"disabled","click"],st,["ngClass","m-l-xs",4,"ngIf"],["diameter","20","color","accent"],["ngClass","m-l-xs"],["color","accent","diameter","20"]]},template:function(g,$){1&g&&(i.TgZ(0,"div",0)(1,"button",1),i.NdJ("click",function(){return $.onCloseClick()}),i._UZ(2,"img",2),i.qZA()(),i.TgZ(3,"div",3)(4,"h2"),i.SDv(5,4),i.qZA(),i.TgZ(6,"div",5),i.YNc(7,ma,1,0,"mat-spinner",6),i.qZA()(),i.TgZ(8,"mat-dialog-content",7)(9,"div",8)(10,"mat-label",9),i.SDv(11,10),i.qZA(),i.TgZ(12,"div",11),i._UZ(13,"img",12),i._uU(14,"\xa0 "),i.TgZ(15,"span"),i._uU(16),i.qZA()()(),i._UZ(17,"br"),i.TgZ(18,"app-quill-editor",13),i.NdJ("onContentChange",function(Bt){return $.changeUpdateContent(Bt)})("allTextCheck",function(Bt){return $.allCheck(Bt)})("pasteDetected",function(Bt){return $.handlePasteDetected(Bt)}),i.qZA(),i.TgZ(19,"div",14)(20,"app-fundraiser-media-edit",15),i.NdJ("onMediaChange",function(Bt){return $.changeUpdateMedia(Bt)}),i.qZA()()(),i.TgZ(21,"div",16)(22,"mat-dialog-actions",17)(23,"button",18),i.NdJ("click",function(){return $.onCloseClick()}),i.SDv(24,19),i.qZA(),i.TgZ(25,"button",20),i.NdJ("click",function(){return $.saveUpdateContentAndMedia()}),i.TgZ(26,"span"),i.SDv(27,21),i.qZA(),i.YNc(28,bn,2,0,"mat-icon",22),i.qZA()()()),2&g&&(i.xp6(7),i.Q6J("ngIf",$.loadingText),i.xp6(6),i.s9C("src",$.languageIconPath+$.originalLocale+"1/public",i.LSH),i.xp6(3),i.Oqu($.allLanguages[$.originalLocale]),i.xp6(2),i.Q6J("quillContent",null==$.data.update?null:$.data.update.content),i.xp6(2),i.Q6J("fundraiserMediaList",null==$.data.update?null:$.data.update.mediaList),i.xp6(3),i.Q6J("disabled",!($.newUpdate.content||$.newUpdate.imageList)||$.isLoading),i.xp6(2),i.Q6J("disabled",!($.newUpdate.content||$.newUpdate.imageList)||$.isLoading||!$.allTextCheck),i.xp6(3),i.Q6J("ngIf",$.isLoading))},dependencies:[M.mk,M.O5,ee.$V,T.eB,F.Hw,le.sN,C.xY,C.H8,V.xw,V.SQ,V.Wh,de.oO,ye.g,k],encapsulation:2}),Ze})();function po(Ze,Wt){1&Ze&&i._UZ(0,"mat-spinner",23)}function Ia(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-error"),i.SDv(1,24),i.qZA())}function Oa(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",25),i._UZ(1,"mat-spinner",26),i.qZA())}let cn=(()=>{class Ze{constructor(g,$,st,Bt,hr,Xr){this._fundraiserService=g,this._mediaService=$,this.notificationService=st,this.accountService=Bt,this.data=hr,this.dialogRef=Xr,this.allLanguages={bg:"Bulgarian",hr:"Croatian",cs:"Czech",da:"Danish",fi:"Finnish",el:"Greek",hu:"Hungarian",it:"Italian",pl:"Polish",pt:"Portuguese",ro:"Romanian",sk:"Slovak",sv:"Swedish",uk:"Ukrainian",nl:"Dutch",de:"Deutsch",es:"Spanish",en:"English",fr:"French"},this.originalLocale="nl",this.languageIconPath="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/",this.newUpdate={},this.isLoading=!1,this.isContentValidFlag=!0,this.allTextCheck=!1,this.loadingText=!1}ngOnInit(){this.originalLocale=this.data?.originalLocale}changeUpdateContent(g){this.newUpdate.content=g,this.isContentValid()}changeUpdateMedia(g){this.newUpdate.imageList=g}isContentValid(){this.isContentValidFlag=this.newUpdate?.content?.length>0}allCheck(g){this.allTextCheck=g}createUpdateContentAndMedia(){var g=this;return(0,t.Z)(function*(){if(g.accountService.checkHeaders()&&(g.isLoading=!0,g.newUpdate?.content)){let $=g.newUpdate.content;$=$.replace(/<ul>(.*?)<\/ul>/gs,(Bt,hr)=>hr.replace(/<li>(.*?)<\/li>/g,"&#8226;&nbsp;$1<br>")).replace(/<ol>(.*?)<\/ol>/gs,(Bt,hr)=>{let Xr=1;return hr.replace(/<li>(.*?)<\/li>/g,(fn,Kn)=>`${Xr++}.&nbsp;${Kn}<br>`)}),$=s(89410).sanitize($),g._fundraiserService.createUpdates(g.data?.slug,$).subscribe(Bt=>{if(g.data.update.id=Bt?.data?.update_id,void 0!==g.newUpdate?.imageList){let hr=g.getMediaBodyObject();g._mediaService.saveAboutMedia(hr).subscribe(Xr=>{g.isLoading=!1,g.dialogRef.close(!0)},Xr=>{g.notificationService.openNotification("A\u017Euriranje nije uspjelo.","close","error"),g.isLoading=!1})}else g.isLoading=!1,g.dialogRef.close(!0)},Bt=>{g.notificationService.openNotification("Spremanje nije uspjelo.","close","error"),g.isLoading=!1})}})()}getMediaBodyObject(){let g=new FormData;return this.newUpdate?.imageList.forEach(($,st)=>{$.image&&g.append("image"+st,this.newUpdate?.imageList[st]?.image),$.videoUrl&&g.append("video_url"+st,this.newUpdate?.imageList[st]?.videoUrl)}),g.append("text","update_"+this.data?.update?.id?.toString()),g.append("slug",this.data?.slug),g}getContentBodyObject(){return{content:this.newUpdate?.content,language_code:this.data?.update?.userLocale,update_id:this.data?.update?.id}}onCloseClick(){this.dialogRef.close()}handlePasteDetected(g){this.loadingText=g}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(I.R),i.Y36(P.y),i.Y36(q.g),i.Y36(D.B),i.Y36(C.WI),i.Y36(C.so))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-create-update"]],decls:31,vars:10,consts:function(){let Wt,g,$,st;return Wt="Dodaj A\u017Euriranje",g="Izvornik",$="Spremi",st="Sadr\u017Eaj je neva\u017Ee\u0107i ili prazan.",[["ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"click"],["ngClass","m-l-xl","fxLayout","row","fxLayoutAlign","baseline"],Wt,["ngClass","p-l-m"],["diameter","20","color","accent",4,"ngIf"],[1,"mat-typography"],["ngClass","m-l-xs","fxLayout","row","fxLayoutAlign","start center"],[1,"mat-body-2"],g,["fxLayout","row","ngClass","p-xs","fxLayoutAlign","start center"],["width","20px",3,"src"],[3,"quillContent","onContentChange","allTextCheck","pasteDetected"],["ngClass","m-r-xs","fxLayoutAlign","end end"],[4,"ngIf"],["ngClass","m-l-xs","fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutGap","16px",3,"click"],[1,"disable",3,"disabled"],[3,"matTooltip","fundraiserMediaList","onMediaChange"],["ngClass","m-t-m"],["align","end"],["mat-flat-button","","color","accent","id","addUpdatesFundraiserPageCreateButton",3,"disabled","click"],$,["ngClass","m-l-xs",4,"ngIf"],["diameter","20","color","accent"],st,["ngClass","m-l-xs"],["color","accent","diameter","20"]]},template:function(g,$){1&g&&(i.TgZ(0,"div",0)(1,"button",1),i.NdJ("click",function(){return $.onCloseClick()}),i.TgZ(2,"mat-icon"),i._uU(3,"close"),i.qZA()()(),i.TgZ(4,"div",2)(5,"h2"),i.SDv(6,3),i.qZA(),i.TgZ(7,"div",4),i.YNc(8,po,1,0,"mat-spinner",5),i.qZA()(),i.TgZ(9,"mat-dialog-content",6)(10,"div",7)(11,"mat-label",8),i.SDv(12,9),i.qZA(),i.TgZ(13,"div",10),i._UZ(14,"img",11),i._uU(15,"\xa0 "),i.TgZ(16,"span"),i._uU(17),i.qZA()()(),i._UZ(18,"br"),i.TgZ(19,"app-quill-editor",12),i.NdJ("onContentChange",function(Bt){return $.changeUpdateContent(Bt)})("allTextCheck",function(Bt){return $.allCheck(Bt)})("pasteDetected",function(Bt){return $.handlePasteDetected(Bt)}),i.qZA(),i.TgZ(20,"div",13),i.YNc(21,Ia,2,0,"mat-error",14),i.qZA(),i.TgZ(22,"div",15),i.NdJ("click",function(){return $.isContentValid()}),i.TgZ(23,"fieldset",16)(24,"app-fundraiser-media-edit",17),i.NdJ("onMediaChange",function(Bt){return $.changeUpdateMedia(Bt)}),i.qZA()()()(),i.TgZ(25,"div",18)(26,"mat-dialog-actions",19)(27,"button",20),i.NdJ("click",function(){return $.createUpdateContentAndMedia()}),i.TgZ(28,"span"),i.SDv(29,21),i.qZA(),i.YNc(30,Oa,2,0,"mat-icon",22),i.qZA()()()),2&g&&(i.xp6(8),i.Q6J("ngIf",$.loadingText),i.xp6(6),i.s9C("src",$.languageIconPath+$.originalLocale+"1/public",i.LSH),i.xp6(3),i.Oqu($.allLanguages[$.originalLocale]),i.xp6(2),i.Q6J("quillContent",null==$.data.update?null:$.data.update.content),i.xp6(2),i.Q6J("ngIf",!$.isContentValidFlag),i.xp6(2),i.Q6J("disabled",(null==$.newUpdate||null==$.newUpdate.content?null:$.newUpdate.content.length)<1),i.xp6(1),i.Q6J("matTooltip",(null==$.newUpdate||null==$.newUpdate.content?null:$.newUpdate.content.length)<1?"Update content cannot be empty":"Upload media for Update")("fundraiserMediaList",null==$.data.update?null:$.data.update.mediaList),i.xp6(3),i.Q6J("disabled",!($.newUpdate.content||$.newUpdate.imageList)||$.isLoading||!$.allTextCheck),i.xp6(3),i.Q6J("ngIf",$.isLoading))},dependencies:[M.mk,M.O5,ee.nI,ee.$V,T.eB,F.Hw,le.sN,C.xY,C.H8,ie.gM,V.xw,V.SQ,V.Wh,de.oO,ye.g,k],encapsulation:2}),Ze})();var Yi=s(532),wi=s(13747),Wi=s(62099);function ra(Ze,Wt){1&Ze&&i.GkF(0)}const ji=function(){return{height:150}};function sa(Ze,Wt){if(1&Ze&&(i.ynx(0),i.TgZ(1,"div",35),i._UZ(2,"ng-image-slider",36,37),i.qZA(),i.BQk()),2&Ze){const g=i.oxw(),$=g.index,st=g.$implicit;i.xp6(1),i.Q6J("ngClass",0===$?"m-l-s m-b-s":""),i.xp6(1),i.Q6J("videoAutoPlay",!0)("images",null==st?null:st.sliderMediaList)("imageSize",i.DdM(6,ji))("manageImageRatio",!0)("showArrow",(null==st||null==st.sliderMediaList?null:st.sliderMediaList.length)>2)}}const Ui=function(Ze){return{"mat-elevation-z4":Ze}};function na(Ze,Wt){if(1&Ze){const g=i.EpF();i.ynx(0),i.TgZ(1,"div",15),i.NdJ("mouseover",function(){const Bt=i.CHM(g).$implicit,hr=i.oxw(3);return i.KtG(hr.hoverListItem(Bt))})("mouseout",function(){const Bt=i.CHM(g).$implicit,hr=i.oxw(3);return i.KtG(hr.hoverListItem(Bt))}),i.TgZ(2,"div",16)(3,"mat-hint",17),i._UZ(4,"img",18),i.TgZ(5,"div",19)(6,"span"),i.SDv(7,20),i.qZA(),i.TgZ(8,"span"),i._uU(9),i.qZA()()(),i.TgZ(10,"mat-hint",21)(11,"button",22),i.NdJ("click",function(){const Bt=i.CHM(g).index,hr=i.oxw(3);return i.KtG(hr.shareUpdate(Bt))}),i._UZ(12,"img",23),i.qZA(),i.TgZ(13,"button",24),i.NdJ("click",function(){const Bt=i.CHM(g).index,hr=i.oxw(3);return i.KtG(hr.editUpdate(Bt))}),i._UZ(14,"img",25),i.qZA(),i.TgZ(15,"button",26),i.NdJ("click",function(){const Bt=i.CHM(g).index,hr=i.oxw(3);return i.KtG(hr.translateUpdate(Bt))}),i._UZ(16,"img",27),i.qZA(),i.TgZ(17,"button",28),i.NdJ("click",function(){const Bt=i.CHM(g).index,hr=i.oxw(3);return i.KtG(hr.deleteUpdate(Bt))}),i._UZ(18,"img",29),i.qZA()()(),i.TgZ(19,"div",30)(20,"div",31),i.YNc(21,ra,1,0,"ng-container",32),i.qZA(),i.TgZ(22,"div",33)(23,"div",30),i._UZ(24,"app-quill-view",34),i.qZA(),i.YNc(25,sa,4,7,"ng-container",14),i.qZA()()(),i.BQk()}if(2&Ze){const g=Wt.$implicit,$=Wt.index,st=i.oxw(3),Bt=i.MAs(2);i.xp6(1),i.Q6J("ngClass",i.VKq(13,Ui,g.listItemHovered)),i.xp6(8),i.hij("",g.date," "),i.xp6(3),i.s9C("matTooltip",st.shareTooltip),i.xp6(1),i.s9C("id",$+"editUpdatesFundraiserPageEditButton"),i.xp6(1),i.s9C("matTooltip",st.editTooltip),i.xp6(1),i.s9C("id",$+"editUpdatesFundraiserPageTranslateButton"),i.xp6(1),i.s9C("matTooltip",st.translateTooltip),i.xp6(1),i.s9C("id",$+"editUpdatesFundraiserPageDeleteButton"),i.xp6(1),i.s9C("matTooltip",st.deleteTooltip),i.xp6(3),i.Q6J("ngIf",$+1===(null==st.updatesList?null:st.updatesList.length))("ngIfElse",Bt),i.xp6(3),i.Q6J("quillContent",g.content),i.xp6(1),i.Q6J("ngIf",null==g||null==g.sliderMediaList?null:g.sliderMediaList.length)}}function fa(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon"),i._UZ(1,"mat-spinner",38),i.qZA())}function Co(Ze,Wt){if(1&Ze){const g=i.EpF();i.YNc(0,na,26,15,"ng-container",11),i._UZ(1,"br"),i.TgZ(2,"button",12),i.NdJ("click",function(){i.CHM(g);const st=i.oxw(2);return i.KtG(st.viewMore())}),i.TgZ(3,"span"),i.SDv(4,13),i.qZA(),i.YNc(5,fa,2,0,"mat-icon",14),i.qZA()}if(2&Ze){const g=i.oxw(2);i.Q6J("ngForOf",g.updatesList),i.xp6(2),i.Q6J("disabled",g.loading||g.page==g.totalPages),i.xp6(3),i.Q6J("ngIf",g.loading)}}function Fa(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"div",6)(1,"span",7),i._uU(2),i.qZA(),i.TgZ(3,"div")(4,"button",8),i.NdJ("click",function(){i.CHM(g);const st=i.oxw();return i.KtG(st.createUpdate())}),i.SDv(5,9),i.qZA()()(),i._UZ(6,"br")(7,"mat-divider")(8,"br"),i.TgZ(9,"div",10),i.YNc(10,Co,6,3,"ng-template",0),i.qZA()}if(2&Ze){const g=i.oxw(),$=i.MAs(4);i.xp6(2),i.hij("Updates (",g.count,")"),i.xp6(8),i.Q6J("ngIf",null==g.updatesList?null:g.updatesList.length)("ngIfElse",$)}}function la(Ze,Wt){1&Ze&&i._UZ(0,"mat-divider",39)}function ho(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"div",40)(1,"div",41),i.SDv(2,42),i.qZA(),i._UZ(3,"br"),i.TgZ(4,"button",8),i.NdJ("click",function(){i.CHM(g);const st=i.oxw();return i.KtG(st.createUpdate())}),i.SDv(5,43),i.qZA()(),i._UZ(6,"br")}}function $i(Ze,Wt){}function bo(Ze,Wt){}function Ga(Ze,Wt){1&Ze&&i._UZ(0,"app-page-loader")}let mi=(()=>{class Ze{constructor(g,$,st,Bt,hr,Xr,fn){this.notificationService=g,this._mediaService=$,this._fundraiserService=st,this.accountService=Bt,this._domSanitizer=hr,this.dialog=Xr,this._accountService=fn,this.refreshComponentEvent=new i.vpe,this.page=1,this.loading=!1,this.shareTooltip="Podijeli",this.editTooltip="Uredi",this.translateTooltip="Prevesti",this.deleteTooltip="Izbrisati"}ngOnChanges(g){if(this.fundraiserUpdates){let $=this.accountService.getLocaleId();this.updatesList=this._fundraiserService.getUpdatesEditObj(this.fundraiserUpdates,$),this.page=+this.fundraiserUpdates?.currentPage}}ngOnInit(){}shareUpdate(g){this.dialog.open(Yi.k,{maxHeight:"98vh",data:{update:this.updatesList[g],slug:this.currentFundraiser?.slug,currentFundraiser:this.currentFundraiser,shared:this.updatesList[g]?.shared}}).afterClosed().subscribe(()=>{this.refreshComponent()})}santizeURL(g){return this._domSanitizer.bypassSecurityTrustResourceUrl(g)}getVideoEmbeddedHTML(g){return this._mediaService.createVideoEmbeddedHTML(g)}refreshComponent(){this.refreshComponentEvent.emit()}viewMore(){this.loading=!0,this._fundraiserService.getUpdates(this.slug,this._accountService.getLocaleId(),this.page+1).subscribe(g=>{const $=this._fundraiserService.getUpdatesViewObj(g.data,this._accountService.getLocaleId());this.updatesList=this.updatesList.concat($),this.page+=1,this.loading=!1})}editUpdate(g){this.dialog.open(ha,{maxHeight:"98vh",data:{update:this.updatesList[g],fundraiserLocalId:this.fundraiserLocalId,slug:this.slug}})}translateUpdate(g){this.dialog.open(Ei,{maxHeight:"98vh",data:{update:this.updatesList[g],slug:this.currentFundraiser?.slug,locale:this.currentFundraiser?.language_code}})}createUpdate(){this.dialog.open(cn,{maxHeight:"98vh",data:{update:{id:null,date:null,content:" ",mediaList:[]},fundraiserLocalId:this.fundraiserLocalId,slug:this.slug,originalLocale:this.currentFundraiser?.language_code}}).afterClosed().subscribe($=>{if($){this.updatesList=void 0;let st=this.accountService.getLocaleId();this._fundraiserService.getUpdates(this.slug,st,1).subscribe(Bt=>{this.updatesList=this._fundraiserService.getUpdatesEditObj(Bt.data,st),this.shareUpdate(0)})}})}deleteUpdate(g){this.dialog.open(wi.l,{width:"400px",disableClose:!0}).afterClosed().subscribe(st=>{if(st){const Bt=this.updatesList[g];Bt?.id?this._fundraiserService.deleteUpdates(Bt.id).subscribe(hr=>{this.updatesList.splice(g,1),this.notificationService.openNotification("Uspje\u0161no brisanje.","OK","success"),this.refreshComponent()},hr=>{this.notificationService.openNotification("Brisanje nije uspjelo.","OK","error")}):this.notificationService.openNotification("Brisanje nije uspjelo.","OK","error")}})}hoverListItem(g){g.listItemHovered=!g.listItemHovered}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(q.g),i.Y36(P.y),i.Y36(I.R),i.Y36(D.B),i.Y36(ue.H7),i.Y36(C.uw),i.Y36(D.B))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-fundraiser-update-edit"]],inputs:{fundraiserUpdates:"fundraiserUpdates",slug:"slug",currentFundraiser:"currentFundraiser",fundraiserLocalId:"fundraiserLocalId",count:"count",totalPages:"totalPages"},outputs:{refreshComponentEvent:"refreshComponentEvent"},features:[i.TTD],decls:11,vars:2,consts:function(){let Wt,g,$,st,Bt;return Wt="Dodaj A\u017Euriranje",g="Prika\u017Ei Vi\u0161e",$="Objavljeno na",st="Jo\u0161 uvijek nema a\u017Euriranja.",Bt="Dodaj A\u017Euriranje",[[3,"ngIf","ngIfElse"],["timeline",""],["noUpdates",""],["updatesEditActions",""],["updatesRow",""],["whydonateLoader",""],["fxLayout","row","fxLayoutAlign","space-between end"],["mat-tab-label-content","",1,"mat-tab-label-active","mat-body-2"],["mat-stroked-button","","color","accent","id","addUpdatesFundraiserPageButton",3,"click"],Wt,["fxLayout","column","fxLayoutAlign","center start","ngClass","p-l-xxs p-r-xxs"],[4,"ngFor","ngForOf"],["id","view-more-button","name","view-more-button","mat-flat-button","","color","accent",3,"disabled","click"],g,[4,"ngIf"],["fxLayout","column","fxFill","",3,"ngClass","mouseover","mouseout"],["fxLayout","row wrap","fxLayoutAlign","center center"],["fxFlex","","fxLayoutAlign","start center",1,"mat-caption"],["height","11px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/circle/public"],["fxLayout","row wrap",1,"m-l-xs"],$,["fxFlex","","fxLayoutAlign","end end"],["mat-icon-button","",3,"click"],["height","18px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/sharedSocial/public",3,"matTooltip"],["mat-icon-button","",1,"editUpdatesFundraiserPageEditButton",3,"id","click"],["height","18px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/editSmall/public",3,"matTooltip"],["mat-icon-button","",1,"editUpdatesFundraiserPageTranslateButton",3,"id","click"],["height","18px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/translateSmall/public",3,"matTooltip"],["mat-icon-button","",1,"editUpdatesFundraiserPageDeleteButton",3,"id","click"],["height","18px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/deleteSmall/public",3,"matTooltip"],["fxLayout","row"],[1,"m-l-xxs"],[4,"ngIf","ngIfElse"],[1,"m-m","w-100"],[3,"quillContent"],[3,"ngClass"],[3,"videoAutoPlay","images","imageSize","manageImageRatio","showArrow"],["nav",""],["color","primary","diameter","20"],["vertical","","fxFill","100"],["fxLayout","column","fxFill","","fxLayoutAlign","center center",1,"grey-bg","p-xl","mat-title"],[1,"center"],st,Bt]},template:function(g,$){if(1&g&&(i.YNc(0,Fa,11,3,"ng-template",0),i.YNc(1,la,1,0,"ng-template",null,1,i.W1O),i.YNc(3,ho,7,0,"ng-template",null,2,i.W1O),i.YNc(5,$i,0,0,"ng-template",null,3,i.W1O),i.YNc(7,bo,0,0,"ng-template",null,4,i.W1O),i.YNc(9,Ga,1,0,"ng-template",null,5,i.W1O)),2&g){const st=i.MAs(10);i.Q6J("ngIf",$.updatesList)("ngIfElse",st)}},dependencies:[M.mk,M.sg,M.O5,ee.pH,ci.d,T.eB,F.Hw,le.sN,ie.gM,V.xw,V.Wh,V.s9,V.yH,de.oO,Wi.H,Mt.f,un.sN],encapsulation:2}),Ze})();var Ct=s(61551);function Dt(Ze,Wt){if(1&Ze&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&Ze){const g=i.oxw();i.xp6(1),i.hij("File:\xa0",g.fileName,"")}}function ve(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",20),i._UZ(1,"mat-spinner",21),i.qZA())}let Rt=(()=>{class Ze{constructor(g,$,st,Bt,hr){this._fundraiserService=g,this.notificationService=$,this.mediaService=st,this.data=Bt,this.dialogRef=hr,this.imageChangedEvent="",this.croppedImage="",this.isEdit=!1,this.isCropperReady=!1,this.isLoading=!1}ngOnInit(){}fileChangeEvent(g){this.imageChangedEvent=g,this.isEdit=!0,this.fileName=g?.target.files?.item(0)?.name||""}imageCropped(g){this.isEdit=!0,this.croppedImage=g.base64}cropperReady(){this.isCropperReady=!0}loadImageFailed(){}openFile(g){g.click()}dialogClose(){this.isLoading=!0;try{let g={image:this.mediaService.base64toBlob(this.croppedImage),slug:this.data?.slug},$={video:"",slug:this.data?.slug};this._fundraiserService.updateFundraiserBackground(g).subscribe(st=>{this._fundraiserService.addVideoBackground($).then(Bt=>{this.isLoading=!1,this.notificationService.openNotification("Uspje\u0161no spremljeno.","","success"),window.location.reload()})},st=>{this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","close","error"),this.isLoading=!1})}catch{this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","close","error"),this.isLoading=!1}}onNoClick(){this.dialogRef.close()}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(I.R),i.Y36(q.g),i.Y36(P.y),i.Y36(C.WI),i.Y36(C.so))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-background-image-edit-dialog"]],decls:24,vars:11,consts:function(){let Wt,g,$,st;return Wt="U\u010Ditaj Sliku",g="Uredi",$="Odbaci",st="Spremi",[["ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["mat-dialog-title",""],Wt,["ngClass","p-l-l p-b-s"],["mat-stroked-button","","color","accent","id","editFundraiserChangeImageButton",3,"fxHide","click"],g,[4,"ngIf"],["hidden","","type","file","accept","image/png, image/jpeg, image/jpg, image/webp",3,"change"],["imageFileInput",""],["fxLayout","column"],["fxLayout","column","fxFill",""],["fxFlex","100%","format","png",1,"image-cropper",3,"containWithinAspectRatio","imageChangedEvent","maintainAspectRatio","aspectRatio","resizeToWidth","resizeToHeight","imageURL","imageCropped","cropperReady"],["align","end"],["mat-button","","color","accent",3,"click"],$,["mat-flat-button","","color","accent","id","editFundraiserSaveImageButton",3,"disabled","click"],st,["class","m-l-xs",4,"ngIf"],[1,"m-l-xs"],["color","accent","diameter","20"]]},template:function(g,$){if(1&g){const st=i.EpF();i.TgZ(0,"div",0)(1,"button",1),i.NdJ("click",function(){return $.onNoClick()}),i._UZ(2,"img",2),i.qZA()(),i.TgZ(3,"h2",3),i.SDv(4,4),i.qZA(),i.TgZ(5,"div",5)(6,"button",6),i.NdJ("click",function(){i.CHM(st);const hr=i.MAs(13);return i.KtG($.openFile(hr))}),i.SDv(7,7),i.qZA()(),i._uU(8,"\n\xa0\xa0\xa0\n"),i.YNc(9,Dt,2,1,"span",8),i._UZ(10,"br")(11,"br"),i.TgZ(12,"input",9,10),i.NdJ("change",function(hr){return $.fileChangeEvent(hr)}),i.qZA(),i.TgZ(14,"mat-dialog-content",11)(15,"div",12)(16,"image-cropper",13),i.NdJ("imageCropped",function(hr){return $.imageCropped(hr)})("cropperReady",function(){return $.cropperReady()}),i.qZA()()(),i.TgZ(17,"mat-dialog-actions",14)(18,"button",15),i.NdJ("click",function(){return $.onNoClick()}),i.SDv(19,16),i.qZA(),i.TgZ(20,"button",17),i.NdJ("click",function(){return $.dialogClose()}),i.TgZ(21,"span"),i.SDv(22,18),i.qZA(),i.YNc(23,ve,2,0,"mat-icon",19),i.qZA()()}2&g&&(i.xp6(6),i.Q6J("fxHide",!$.isCropperReady),i.xp6(3),i.Q6J("ngIf",$.fileName),i.xp6(7),i.Q6J("containWithinAspectRatio",!0)("imageChangedEvent",$.imageChangedEvent)("maintainAspectRatio",!0)("aspectRatio",2)("resizeToWidth",800)("resizeToHeight",400)("imageURL",$.data.imagePath),i.xp6(4),i.Q6J("disabled",!$.isEdit||$.isLoading),i.xp6(3),i.Q6J("ngIf",$.isLoading))},dependencies:[M.mk,M.O5,T.eB,F.Hw,le.sN,C.uh,C.xY,C.H8,V.xw,V.s9,V.yH,de.b8,de.oO,Ct.ap]}),Ze})();var Dr=s(18836),kn=s(75999);function wn(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"div",15)(1,"div",16),i._UZ(2,"img",17)(3,"input",18),i.TgZ(4,"button",19),i.NdJ("click",function(){i.CHM(g);const st=i.oxw();return i.KtG(st.openFileUploader())}),i.SDv(5,20),i.qZA()()()}}const Jn=function(){return{width:"66px",height:"66px"}};function yn(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"div",21)(1,"div",22)(2,"button",23),i.NdJ("click",function(){i.CHM(g);const st=i.oxw();return i.KtG(st.openFileUploader())}),i._UZ(3,"input",18)(4,"img",24),i.qZA()()()}2&Ze&&(i.xp6(2),i.Q6J("ngStyle",i.DdM(1,Jn)))}function Mn(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"div",15)(1,"div",16),i._UZ(2,"img",25),i.TgZ(3,"button",26),i.NdJ("click",function(){i.CHM(g);const st=i.oxw();return i.KtG(st.openVideoCropperDialog())}),i.SDv(4,27),i.qZA()()()}}function $n(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"div",21)(1,"div",22)(2,"button",28),i.NdJ("click",function(){i.CHM(g);const st=i.oxw();return i.KtG(st.openVideoCropperDialog())}),i._UZ(3,"img",29),i.qZA()()()}2&Ze&&(i.xp6(2),i.Q6J("ngStyle",i.DdM(1,Jn)))}let ia=(()=>{class Ze{constructor(g,$,st,Bt,hr,Xr,fn,Kn){this.dialogRef=g,this._fundraiserService=$,this.dialog=st,this.data=Bt,this.notificationService=hr,this.mediaService=Xr,this.sanitizer=fn,this.breakpointObserver=Kn,this.valueSelected=new i.vpe,this.defaultBackgroundImage="https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/production/fundraiser_header/default/public",this.isMobileView=!1}ngOnInit(){this.breakpointObserver.observe([kn.u3.HandsetPortrait,kn.u3.HandsetLandscape]).subscribe(g=>{this.isMobileView=g.matches})}openVideoCropperDialog(){this.dialog.open(Dr.s,{data:{videoPath:this.data.videoPath,slug:this.data.slug,autoFocus:!1},width:"500px"}).afterClosed().subscribe($=>{$&&(this.data.videoPath=$,this.valueSelected.emit($),this.dialogRef.close())})}openFileUploader(){const g=document.getElementById("upload_image_input");g&&(g.addEventListener("change",$=>{const st=$.target;if(st.files&&st.files.length>0){const hr=URL.createObjectURL(st.files[0]);this.dialog.open(Rt,{maxHeight:"98vh",data:{imagePath:hr,backgroundImageId:this.data.backgroundImageId,fundraiserId:this.data.fundraiserId,slug:this.data.slug,videoPath:this.data.videoPath}})}}),g.click())}openImageCropperDialog(){this.dialog.open(Rt,{maxHeight:"98vh",data:{imagePath:this.data.imagePath,backgroundImageId:this.data.backgroundImageId,fundraiserId:this.data.fundraiserId,slug:this.data.slug,videoPath:this.data.videoPath}})}onCloseClick(){this.dialogRef.close()}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(C.so),i.Y36(I.R),i.Y36(C.uw),i.Y36(C.WI),i.Y36(q.g),i.Y36(P.y),i.Y36(ue.H7),i.Y36(kn.Yg))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-background-media"]],outputs:{valueSelected:"valueSelected"},decls:17,vars:4,consts:function(){let Wt,g,$,st,Bt;return Wt="Prenesi Naslovnu Sliku/Video",g="Slika mora biti JPG, PNG ili WebP, imati maksimalnu veli\u010Dinu od 5 Mb, a preporu\u010Duje se minimalna \u0161irina od 1600px Za videozapise podr\u017Eani su Vimeo i YouTube poveznice.",$="ili",st="Uredi Sliku",Bt="Uredi Video",[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","end center","ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["fxLayout","column","fxLayoutAlign","center center"],[1,"m-b-xs","center"],[1,"mat-title"],Wt,["ngClass","m-m",1,"center"],g,["fxLayout","row","fxLayoutAlign","space-between center","ngClass","m-m"],["fxFlex","calc(50% - 10px)","class","grey-bg p-xl","fxLayoutAlign","center center",4,"ngIf"],["fxFlex","calc(50% - 10px)","fxLayoutAlign","center center",4,"ngIf"],["fxFlex","20px"],$,["fxFlex","calc(50% - 10px)","fxLayoutAlign","center center",1,"grey-bg","p-xl"],["fxLayout","column","fxLayoutAlign","start center"],["height","50","width","50","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/addPhoto/public",1,"m-b-m"],["fxHide","","type","file","id","upload_image_input"],["id","button_edit_changeImage","mat-stroked-button","","color","accent",3,"click"],st,["fxFlex","calc(50% - 10px)","fxLayoutAlign","center center"],["fxFlex","100%","fxLayout","column","fxLayoutAlign","start center",1,"whydonate-light"],["id","button_edit_changeImage_responsive","mat-fab","","color","primary",1,"mat-elevation-z0",3,"ngStyle","click"],["height","33","width","33","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/addPhoto/public",1,"m-b-m"],["height","50","width","50","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/videoCall/public",1,"m-b-m"],["id","button_edit_changeVideo","mat-stroked-button","","color","accent",3,"click"],Bt,["id","button_edit_changeVideo","mat-fab","","color","primary",1,"mat-elevation-z0",3,"ngStyle","click"],["height","33","width","33","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/videoCall/public",1,"m-b-m"]]},template:function(g,$){1&g&&(i.TgZ(0,"div",0)(1,"div",1)(2,"button",2),i.NdJ("click",function(){return $.onCloseClick()}),i._UZ(3,"img",3),i.qZA()(),i.TgZ(4,"div",4)(5,"div",5)(6,"mat-label",6),i.SDv(7,7),i.qZA()(),i.TgZ(8,"div",8),i.SDv(9,9),i.qZA()(),i.TgZ(10,"div",10),i.YNc(11,wn,6,0,"div",11),i.YNc(12,yn,5,2,"div",12),i.TgZ(13,"span",13),i.SDv(14,14),i.qZA(),i.YNc(15,Mn,5,0,"div",11),i.YNc(16,$n,4,2,"div",12),i.qZA()()),2&g&&(i.xp6(11),i.Q6J("ngIf",!$.isMobileView),i.xp6(1),i.Q6J("ngIf",$.isMobileView),i.xp6(3),i.Q6J("ngIf",!$.isMobileView),i.xp6(1),i.Q6J("ngIf",$.isMobileView))},dependencies:[M.mk,M.O5,M.PC,ee.$V,T.eB,V.xw,V.Wh,V.yH,de.b8,de.oO,de.Zl]}),Ze})();function Ua(Ze,Wt){if(1&Ze&&i._UZ(0,"div",6),2&Ze){const g=i.oxw();i.Q6J("innerHTML",g.youtubeIframe,i.oJD)}}function qa(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"img",7),i.NdJ("error",function(){i.CHM(g);const st=i.oxw();return i.KtG(st.fallbackToDefaultImage())}),i.qZA()}if(2&Ze){const g=i.oxw();i.Q6J("src",g.imagePath,i.LSH)}}let ro=(()=>{class Ze{constructor(g,$,st,Bt,hr,Xr){this._fundraiserService=g,this.dialog=$,this.notificationService=st,this.mediaService=Bt,this.sanitizer=hr,this.accountService=Xr,this.editTooltip="Uredi",this.defaultBackgroundImage="https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/production/fundraiser_header/default/public"}ngOnInit(){this.youtubeIframe=this.checkVideoUrl(this.videoPath)}fallbackToDefaultImage(){this.imagePath=this.defaultBackgroundImage}checkVideoUrl(g){return g.match(/^(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/)(\d+)(?:\S+)?$/)?this.generateVimeoIframe(g):g.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:embed\/|watch\?v=|v\/|shorts\/)|youtu\.be\/)([\w\-]+)(?:\S+)?$/)?this.generateYouTubeIframe(g):"unknown"}generateVimeoIframe(g){const $=this.getVideoIdVimeo(g);return this.sanitizer.bypassSecurityTrustHtml(`\n\t\t<style>\n\t\t.embed-container {\n\t\t\t--video--width: 1920;\n\t\t\t--video--height: 1080;\n\t\t\n\t\t\tposition: relative;\n\t\t\tpadding-bottom: calc(var(--video--height) / var(--video--width) * 100%); /* 41.66666667% */\n\t\t\toverflow: hidden;\n\t\t\tmax-width: 100%;\n\t\t\tmax-height: 100%;\n\t\t\tbackground: black;\n\t\t}\n\t\t\n\t\t.embed-container iframe,\n\t\t.embed-container object,\n\t\t.embed-container embed {\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t} \n\t\t</style>\n\t\t<div class='embed-container'>\n\t\t\t<iframe\n\t\t\t\twidth="560"\n\t\t\t\theight="315"\n\t\t\t\tid="fundraiser_page_iframe"\n\t\t\t\tsrc="https://player.vimeo.com/video/${$}"\n\t\t\t\t\n\t\t\t\tsrcdoc="<style>*{padding:0;margin:0;overflow:hidden}html,body{height:100%}img,span{position:absolute;width:100%;top:0;bottom:0;margin:auto}span{height:1.5em;text-align:center;font:48px/1.5 sans-serif;color:white;text-shadow:0 0 0.5em black}</style><a href=https://player.vimeo.com/video/${$}?autoplay=1&muted=1><img src=https://vumbnail.com/${$}.jpg><span>\u25b6</span></a>"\n\t\t\t\tframeborder="0"\n\t\t\t\tallow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"\n\t\t\t\tallowfullscreen\n\t\t\t></iframe>\n\t\t</div>\n\t\t`)}generateYouTubeIframe(g){const st=`\n\t\t<iframe\n\t\t\tloading = "lazy"\n\t\t\twidth="100%"\n\t\t\tid="fundraiser_page_iframe"\n\t\t\theight="100%"\n\t\t\tsrc="https://www.youtube-nocookie.com/embed/${this.getVideoIdYoutube(g)}"\n\t\t\tframeborder="0"\n\t\t\tallow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"\n\t\t\tallowfullscreen\n\t\t\ttitle="The Youtube Video"\n\t\t></iframe>`;return this.sanitizer.bypassSecurityTrustHtml(st)}getVideoIdYoutube(g){const st=g?.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:embed\/|watch\?v=|v\/|shorts\/)|youtu\.be\/)([\w\-]+)(?:\S+)?$/);return st&&st[1]?st[1]:""}getVideoIdVimeo(g){const st=g?.match(/^(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/)(\d+)(?:\S+)?$/);return st&&st[1]?st[1]:""}openImageCropperDialog(){this.dialog.open(ia,{data:{imagePath:this.imagePath,backgroundImageId:this.backgroundImageId,fundraiserId:this.fundraiserId,slug:this.slug,videoPath:this.videoPath},width:"500px"})}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(I.R),i.Y36(C.uw),i.Y36(q.g),i.Y36(P.y),i.Y36(ue.H7),i.Y36(D.B))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-background-image-edit"]],inputs:{imagePath:"imagePath",videoPath:"videoPath",backgroundImageId:"backgroundImageId",fundraiserId:"fundraiserId",slug:"slug"},decls:8,vars:2,consts:function(){let Wt;return Wt="Uredi Sliku/Video",[["fxLayout","column","fxLayoutAlign","end end",1,"w-100"],["mat-button","","id","editFundraiserImageButton",3,"click"],["color","accent"],Wt,["class","w-100 aspect-ratio",3,"innerHTML",4,"ngIf"],["width","100%","id","fundraiser_page_image",3,"src","error",4,"ngIf"],[1,"w-100","aspect-ratio",3,"innerHTML"],["width","100%","id","fundraiser_page_image",3,"src","error"]]},template:function(g,$){1&g&&(i.TgZ(0,"div",0)(1,"button",1),i.NdJ("click",function(){return $.openImageCropperDialog()}),i.TgZ(2,"mat-icon"),i._uU(3,"edit"),i.qZA(),i.TgZ(4,"span",2),i.SDv(5,3),i.qZA()(),i.YNc(6,Ua,1,1,"div",4),i.YNc(7,qa,1,1,"img",5),i.qZA()),2&g&&(i.xp6(6),i.Q6J("ngIf",$.videoPath),i.xp6(1),i.Q6J("ngIf",!$.videoPath))},dependencies:[M.O5,T.eB,F.Hw,V.xw,V.Wh],encapsulation:2}),Ze})();var Na=s(35961),ga=s(20071),Ka=s(81713),Mi=s(17160),Bi=s(36560);function Xi(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",20),i._UZ(1,"mat-spinner",21),i.qZA())}function Aa(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"div",16)(1,"button",17),i.NdJ("click",function(){i.CHM(g);const st=i.oxw();return i.KtG(st.emitPublishClick(!0))}),i.TgZ(2,"span"),i.SDv(3,18),i.qZA(),i.YNc(4,Xi,2,0,"mat-icon",19),i.qZA()()}if(2&Ze){const g=i.oxw();i.Q6J("matTooltip",g.matTooltipCannotPublish)("matTooltipDisabled",g.isShowTooltip)("fxHide",g._media.isActive("lt-sm")||g._media.isActive("sm")||g._media.isActive("md")),i.xp6(1),i.Q6J("disabled",g.showStripePrompt&&!g.isConnected||g.isLoading),i.xp6(3),i.Q6J("ngIf",g.isLoading)}}let wa=(()=>{class Ze{constructor(g,$,st){this.router=g,this.dialog=$,this._media=st,this.showPublicNotification=new i.vpe,this.publishNotification=new i.vpe,this.currentFundraiserID="",this.currentSlug="",this.showStripePrompt=!1,this.isConnected=!1,this.isLoading=!1,this.isShowTooltip=!1,this.matTooltipCannotPublish="Verificirajte putem Stripea kako biste objavili svoje prikupljanje sredstava."}ngOnInit(){this.showStripePrompt&&!this.isConnected?this.isShowTooltip=!1:!this.showStripePrompt&&this.isConnected?this.isShowTooltip=!0:this.showStripePrompt||this.isConnected?this.showStripePrompt&&this.isConnected&&(this.isShowTooltip=!0):this.isShowTooltip=!0}showPublicView(g){this.showPublicNotification.emit(g)}emitPublishClick(g){g&&!this.isLoading&&(this.isLoading=!0,this.publishNotification.emit(g),this.showStripePrompt=!0)}openDeleteFundraiserDialog(){this.dialog.open(De,{data:{slug:this.currentSlug}}).afterClosed().subscribe($=>{if($){let st=(0,r.H)(1e3).subscribe(Bt=>{this.router.navigate(["/dashboard"]),st.unsubscribe()})}})}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(qt.F0),i.Y36(C.uw),i.Y36(Gn.u0))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-fundraiser-notification"]],inputs:{currentFundraiserID:"currentFundraiserID",showPublishBanner:"showPublishBanner",isDraft:"isDraft",currentSlug:"currentSlug",showStripePrompt:"showStripePrompt",isConnected:"isConnected",currencyData:"currencyData"},outputs:{showPublicNotification:"showPublicNotification",publishNotification:"publishNotification"},decls:21,vars:5,consts:function(){let Wt,g,$,st;return Wt="Sakuplja\u010D Sredstava",g="Pregled",$="Izbrisati",st="Objavi",[["fxLayout","column","fxLayoutAlign","start"],["fxLayout","row","fxLayoutAlign","start start","fxLayoutGap","1%"],["fxFlex","","fxLayoutAlign","space-between center"],Wt,[1,"whydonate-light"],["id","chip","name","chip","color","accent","selected","","removable","true",1,"mat-chip-list-stacked","my-chip"],["fxLayout","row","fxLayoutAlign","space-between"],["fxFlex","70%","fxLayout","row wrap","fxLayoutAlign","start start","fxLayoutGap","4%"],["ngClass","p-b-xs",3,"matTooltip","matTooltipDisabled","fxHide",4,"ngIf"],["id","donateButtonPreview","mat-stroked-button","","color","primary"],[3,"click"],g,["fxFlex","25%","fxLayout","column","fxLayoutAlign","start end"],["mat-button","","color","warn"],["id","delete_fundraiser_button",3,"click"],$,["ngClass","p-b-xs",3,"matTooltip","matTooltipDisabled","fxHide"],["id","donateButtonPublish","mat-flat-button","","color","accent",3,"disabled","click"],st,["class","m-l-xs",4,"ngIf"],[1,"m-l-xs"],["color","primary","diameter","20"]]},template:function(g,$){1&g&&(i.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),i.SDv(4,3),i.qZA()(),i.TgZ(5,"div",4)(6,"mat-chip",5)(7,"caption"),i._uU(8),i.ALo(9,"uppercase"),i.qZA()()()(),i.TgZ(10,"div",6)(11,"div",7),i.YNc(12,Aa,5,5,"div",8),i.TgZ(13,"div")(14,"button",9)(15,"span",10),i.NdJ("click",function(){return $.showPublicView(!0)}),i.SDv(16,11),i.qZA()()()(),i.TgZ(17,"div",12)(18,"a",13)(19,"span",14),i.NdJ("click",function(){return $.openDeleteFundraiserDialog()}),i.SDv(20,15),i.qZA()()()()()),2&g&&(i.xp6(8),i.AsE(" ",$.currencyData.currency_symbol," ",i.lcZ(9,3,$.currencyData.currency_code)," "),i.xp6(4),i.Q6J("ngIf",$.showPublishBanner))},dependencies:[M.mk,M.O5,T.eB,T.Nr,Ar.lw,F.Hw,le.sN,ie.gM,V.xw,V.SQ,V.Wh,V.yH,de.b8,de.oO,M.gd]}),Ze})();var Eo=s(49986),To=s(48910),Pi=s(76243),Ji=s(46362),Va=s(8687),Qi=s(43609);function Ri(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div"),i._UZ(1,"app-donation-progress-bar",20),i.qZA()),2&Ze){const g=i.oxw();i.xp6(1),i.Q6J("fundraiserCardData",g.fundraiserCardData)("offlineDonationAmount",g.totalOfflineDonationAmount)}}function xo(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon",21),i._UZ(1,"mat-spinner",22),i.qZA())}let so=(()=>{class Ze{constructor(g,$,st,Bt,hr,Xr,fn){this._AccountService=st,this._media=Bt,this.dialog=hr,this.fundraiserService=Xr,this._bankService=fn,this.targetAmount=0,this.raisedAmount=0,this.isDraftOrClosed=!1,this.isLoggedIn=!1,this.isOpen=!1,this.temp=!1,this.progress=0,this.disableDonation=!1,this.slug="",this.stripeNotificationCheck=!1,this.donationToolTipMessage="The fundraiser has been closed",this.isLoading=!1,this.totalOfflineDonationAmount=0,this.totalOnlineDonationAmount=0,this.locale=this._AccountService.getLocaleId(),this.donationService=g,this.router=$}ngOnInit(){1==this.isLoggedIn&&this._AccountService.checkHeaders()&&this._bankService.getStripeStatus().subscribe(g=>{this.stripeStatus=g?.data,0==this.stripeStatus?.charges_enabled&&0==this.stripeStatus?.payout_enabled&&0==this.stripeStatus?.details_submitted?this.stripeNotificationCheck=!0:(this.stripeNotificationCheck=!1,this.donationToolTipMessage="Account verification is mandatory to receive donation and payouts.")}),0!=this.targetAmount&&(this.progress=this.raisedAmount/this.targetAmount*100,this.temp=!0),this.progress>100&&(this.disableDonation=!1),this.fundraiserService.getStripeChargesStatus(this.selectedFundraiser?.slug).subscribe(g=>{this.stripeChargeStatus=g?.data?.status}),this.getTotalOfflineDonations(),this.fundraiserService.getOfflineDonation().subscribe(g=>{this.getTotalOfflineDonations()})}donate(){this.isLoading=!0,this.donationService.setSelectedFundraiser(this.selectedFundraiser),this.router.navigate(["donate/"+this.selectedFundraiser?.slug])}openShareDialog(){this.dialog.open(Eo.x,{panelClass:"max-w-100--panelClass",maxHeight:"89vh",maxWidth:"90vw",width:"95vw",data:{fundraiser:this.selectedFundraiser,data:this.fundraiserCardData}})}getTotalOfflineDonations(){const g=this.selectedFundraiser?.slug;g&&this.fundraiserService.getAllOfflineDonation(g).subscribe($=>{this.totalOfflineDonationAmount=$.data.result.total_amount,this.totalOnlineDonationAmount=this.fundraiserCardData.donationReceivedAmount,this.currency_symbol=this.fundraiserCardData.currency_symbol,this.totalOfflineDonationAmount=Number($.data.result.total_amount),this.fundraiserCardData={...this.fundraiserCardData,totalOfflineDonationAmount:this.totalOfflineDonationAmount}})}scrollToDonation(){const g=document.querySelector("#fullDonationCard");g&&g.scrollIntoView({behavior:"smooth",block:"start"})}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(To.l),i.Y36(qt.F0),i.Y36(D.B),i.Y36(Gn.u0),i.Y36(C.uw),i.Y36(I.R),i.Y36(Yn.y))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-fundraiser-donation-small-card"]],inputs:{fundraiserCardData:"fundraiserCardData",targetAmount:"targetAmount",raisedAmount:"raisedAmount",selectedFundraiser:"selectedFundraiser",isDraftOrClosed:"isDraftOrClosed",isLoggedIn:"isLoggedIn",isOpen:"isOpen"},decls:24,vars:13,consts:function(){let Wt,g;return Wt="Donacija",g="Donacija",[["fxLayout","row","fxLayoutAlign","start start"],["fxFlex",""],Wt,[1,"cursor-pointer"],["mat-icon-button","",3,"click"],["src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/capsLock/public"],["fxLayout","row","fxLayoutAlign","start baseline"],["id","donationAmount",1,"mat-h1"],[3,"fundraiserCardData","offlineDonationAmount"],[4,"ngIf"],["fxLayout","row","fxFill","","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","50%","fxLayoutAlign","center start"],["id","fundedPercentage"],[3,"fundraiserCardData"],["fxLayout","column","fxFlex","50%","fxLayoutAlign","center end"],[3,"fundraiserCardData","showLabel","offlineDonationAmount"],[3,"matTooltip","matTooltipDisabled"],["id","donateButton","mat-flat-button","","color","accent",1,"w-100",3,"disabled","click"],g,["class","m-l-xs",4,"ngIf"],[1,"m-b-m",3,"fundraiserCardData","offlineDonationAmount"],[1,"m-l-xs"],["color","accent","diameter","20"]]},template:function(g,$){1&g&&(i.TgZ(0,"div",0)(1,"div",1)(2,"h2"),i.SDv(3,2),i.qZA()(),i.TgZ(4,"div",3)(5,"button",4),i.NdJ("click",function(){return $.scrollToDonation()}),i._UZ(6,"img",5),i.qZA()()(),i.TgZ(7,"div",6)(8,"div",1)(9,"div",7),i._UZ(10,"app-amount-view",8),i.qZA()()(),i.YNc(11,Ri,2,2,"div",9),i.TgZ(12,"div",10)(13,"div",11)(14,"h3",12),i._UZ(15,"app-days-left-view",13),i.qZA()(),i.TgZ(16,"div",14)(17,"h3",12),i._UZ(18,"app-donation-progress-percentage",15),i.qZA()()(),i.TgZ(19,"div",16)(20,"button",17),i.NdJ("click",function(){return $.donate()}),i.TgZ(21,"span"),i.SDv(22,18),i.qZA(),i.YNc(23,xo,2,0,"mat-icon",19),i.qZA()()),2&g&&(i.xp6(10),i.Q6J("fundraiserCardData",$.fundraiserCardData)("offlineDonationAmount",$.totalOfflineDonationAmount),i.xp6(1),i.Q6J("ngIf",$.fundraiserCardData.showDonationAmount),i.xp6(4),i.Q6J("fundraiserCardData",$.fundraiserCardData),i.xp6(3),i.Q6J("fundraiserCardData",$.fundraiserCardData)("showLabel",!0)("offlineDonationAmount",$.totalOfflineDonationAmount),i.xp6(1),i.Q6J("matTooltip",$.donationToolTipMessage)("matTooltipDisabled",!$.isDraftOrClosed),i.xp6(1),i.Udp("color","#fff"),i.Q6J("disabled",$.disableDonation||$.isDraftOrClosed||0==$.isOpen||$.stripeNotificationCheck||!$.stripeChargeStatus||$.isLoading),i.xp6(3),i.Q6J("ngIf",$.isLoading))},dependencies:[M.O5,T.eB,F.Hw,le.sN,ie.gM,V.xw,V.Wh,V.s9,V.yH,Pi.y,Ji.f,Va.s,Qi.K],encapsulation:2}),Ze})();function Ra(Ze,Wt){1&Ze&&i._UZ(0,"app-stripe-notification-banner")}function hs(Ze,Wt){if(1&Ze&&i.GkF(0,22),2&Ze){i.oxw(2);const g=i.MAs(8);i.Q6J("ngTemplateOutlet",g)}}function Lo(Ze,Wt){if(1&Ze&&i.GkF(0,22),2&Ze){i.oxw(2);const g=i.MAs(6);i.Q6J("ngTemplateOutlet",g)}}function Mo(Ze,Wt){if(1&Ze&&i.GkF(0,22),2&Ze){i.oxw(2);const g=i.MAs(10);i.Q6J("ngTemplateOutlet",g)}}function eo(Ze,Wt){if(1&Ze&&i.GkF(0,22),2&Ze){i.oxw(3);const g=i.MAs(18);i.Q6J("ngTemplateOutlet",g)}}function Bo(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"div",23)(1,"div",24)(2,"div",25),i.GkF(3,22)(4,22),i._UZ(5,"mat-divider"),i.GkF(6,22),i._UZ(7,"mat-divider"),i.YNc(8,eo,1,1,"ng-container",2),i._UZ(9,"br"),i.GkF(10,22),i._UZ(11,"br"),i.qZA(),i.TgZ(12,"div",26),i.GkF(13,22)(14,22)(15,22),i._UZ(16,"br"),i.GkF(17,22),i._UZ(18,"br"),i.GkF(19,22),i.qZA()(),i.TgZ(20,"button",27),i.NdJ("click",function(){i.CHM(g);const st=i.oxw(2);return i.KtG(st.routeToMarkFundraiserFraudulent())}),i.TgZ(21,"mat-icon"),i._uU(22,"flag"),i.qZA(),i.TgZ(23,"span"),i.SDv(24,28),i.qZA()()()}if(2&Ze){const g=i.oxw(2),$=i.MAs(12),st=i.MAs(14),Bt=i.MAs(16),hr=i.MAs(20),Xr=i.MAs(24),fn=i.MAs(26),Kn=i.MAs(28),An=i.MAs(32),Ki=i.MAs(30);i.Q6J("fxHide",g.isViewChanging),i.xp6(3),i.Q6J("ngTemplateOutlet",$),i.xp6(1),i.Q6J("ngTemplateOutlet",st),i.xp6(2),i.Q6J("ngTemplateOutlet",Bt),i.xp6(2),i.Q6J("ngIf",g.isCurrentChildFundraiser),i.xp6(2),i.Q6J("ngTemplateOutlet",hr),i.xp6(3),i.Q6J("ngTemplateOutlet",Xr),i.xp6(1),i.Q6J("ngTemplateOutlet",fn),i.xp6(1),i.Q6J("ngTemplateOutlet",Kn),i.xp6(2),i.Q6J("ngTemplateOutlet",An),i.xp6(2),i.Q6J("ngTemplateOutlet",Ki)}}function Oo(Ze,Wt){if(1&Ze&&(i.YNc(0,hs,1,1,"ng-container",2),i.YNc(1,Lo,1,1,"ng-container",2),i.YNc(2,Mo,1,1,"ng-container",2),i.TgZ(3,"div",21),i.YNc(4,Bo,25,11,"ng-template",1),i.qZA()),2&Ze){const g=i.oxw(),$=i.MAs(4);i.Q6J("ngIf",g.isWholePreview),i.xp6(1),i.Q6J("ngIf",g._media.isActive("lt-lg")||g._media.isActive("md")),i.xp6(1),i.Q6J("ngIf",g.isCurrentChildFundraiser),i.xp6(2),i.Q6J("ngIf",g._media.isActive("lt-sm")||g._media.isActive("gt-sm"))("ngIfElse",$)}}function Qn(Ze,Wt){if(1&Ze&&i.GkF(0,22),2&Ze){i.oxw();const g=i.MAs(36);i.Q6J("ngTemplateOutlet",g)}}function vo(Ze,Wt){if(1&Ze&&i.GkF(0,22),2&Ze){i.oxw(2);const g=i.MAs(18);i.Q6J("ngTemplateOutlet",g)}}function rt(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"div",29),i.GkF(1,22)(2,22),i._UZ(3,"mat-divider"),i.GkF(4,22),i._UZ(5,"mat-divider")(6,"br"),i.TgZ(7,"div",30)(8,"div",31),i.GkF(9,22),i.qZA()(),i.YNc(10,vo,1,1,"ng-container",2),i._UZ(11,"br"),i.GkF(12,22),i._UZ(13,"br"),i.TgZ(14,"div",32)(15,"div",31),i.GkF(16,22)(17,22),i.qZA(),i.TgZ(18,"div",31),i.GkF(19,22),i.qZA()(),i.TgZ(20,"button",27),i.NdJ("click",function(){i.CHM(g);const st=i.oxw();return i.KtG(st.routeToMarkFundraiserFraudulent())}),i._UZ(21,"img",33),i.TgZ(22,"span"),i.SDv(23,34),i.qZA()()()}if(2&Ze){const g=i.oxw(),$=i.MAs(12),st=i.MAs(14),Bt=i.MAs(16),hr=i.MAs(26),Xr=i.MAs(20),fn=i.MAs(24),Kn=i.MAs(32),An=i.MAs(30);i.Q6J("fxHide",g.isViewChanging),i.xp6(1),i.Q6J("ngTemplateOutlet",$),i.xp6(1),i.Q6J("ngTemplateOutlet",st),i.xp6(2),i.Q6J("ngTemplateOutlet",Bt),i.xp6(5),i.Q6J("ngTemplateOutlet",hr),i.xp6(1),i.Q6J("ngIf",g.isCurrentChildFundraiser),i.xp6(2),i.Q6J("ngTemplateOutlet",Xr),i.xp6(4),i.Q6J("ngTemplateOutlet",fn),i.xp6(1),i.Q6J("ngTemplateOutlet",Kn),i.xp6(2),i.Q6J("ngTemplateOutlet",An)}}function je(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"app-notification-banner",36),i.NdJ("publish",function(){i.CHM(g);const st=i.oxw(2);return i.KtG(st.publishFundraiser())}),i.qZA()}if(2&Ze){const g=i.oxw(2);i.Q6J("slug",null==g.currentFundraiser?null:g.currentFundraiser.slug)("isCurrentChildFundraiser",g.isCurrentChildFundraiser)}}function Ue(Ze,Wt){if(1&Ze&&i.YNc(0,je,1,2,"ng-template",35),2&Ze){const g=i.oxw();i.Q6J("ngIf",(g.isLoggedInUserAdmin&&!g.showStripePrompt||g.isLoggedInUserAdmin&&g.isCurrentChildFundraiser)&&g.showPublishBanner)}}function Yt(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"div",38)(1,"div"),i.SDv(2,39),i.qZA(),i.TgZ(3,"button",40),i.NdJ("click",function(){i.CHM(g);const st=i.oxw(2);return i.KtG(st.hidePublicView())}),i.SDv(4,41),i.qZA()()}}function Yr(Ze,Wt){if(1&Ze&&i.YNc(0,Yt,5,0,"div",37),2&Ze){const g=i.oxw();i.Q6J("ngIf",!g.showEdits&&g.isLoggedInUserAdmin)}}function Un(Ze,Wt){1&Ze&&(i.TgZ(0,"div",42)(1,"div",43)(2,"span",44),i._UZ(3,"img",45),i.qZA(),i.TgZ(4,"mat-hint",46),i.SDv(5,47),i.qZA()()())}function pa(Ze,Wt){if(1&Ze&&i._UZ(0,"div",52),2&Ze){const g=i.oxw(3);i.Q6J("innerHTML",g.youtubeIframe,i.oJD)}}function Wr(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"img",53),i.NdJ("error",function(){i.CHM(g);const st=i.oxw(3);return i.KtG(st.fallbackToDefaultImage())}),i.qZA()}if(2&Ze){const g=i.oxw(3);i.Q6J("src",g.backgroundImage,i.LSH)}}function ii(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div",49),i.YNc(1,pa,1,1,"div",50),i.YNc(2,Wr,1,1,"img",51),i.qZA()),2&Ze){const g=i.oxw(2);i.xp6(1),i.Q6J("ngIf",g.backgroundVideo),i.xp6(1),i.Q6J("ngIf",!g.backgroundVideo)}}function xi(Ze,Wt){if(1&Ze&&i._UZ(0,"app-background-image-edit",54),2&Ze){const g=i.oxw(2);i.Q6J("imagePath",g.backgroundImage)("videoPath",g.backgroundVideo)("backgroundImageId",null==g.currentFundraiser||null==g.currentFundraiser.background?null:g.currentFundraiser.background.id)("fundraiserId",null==g.currentFundraiser?null:g.currentFundraiser.id)("slug",null==g.currentFundraiser?null:g.currentFundraiser.slug)}}function Jo(Ze,Wt){if(1&Ze&&(i.YNc(0,ii,3,2,"ng-template",1),i.YNc(1,xi,1,5,"ng-template",null,48,i.W1O)),2&Ze){const g=i.MAs(2),$=i.oxw();i.Q6J("ngIf",!($.showEdits&&$.isLoggedInUserAdmin))("ngIfElse",g)}}function Wa(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div",63),i._UZ(1,"app-fundraiser-location",64),i.qZA()),2&Ze){const g=i.oxw(3);i.xp6(1),i.Q6J("currentFundraiser",g.currentFundraiser)}}function vs(Ze,Wt){1&Ze&&(i.TgZ(0,"span")(1,"mat-chip",68)(2,"span"),i.SDv(3,69),i.qZA()()())}function is(Ze,Wt){if(1&Ze&&i._UZ(0,"app-owner-social-share",70),2&Ze){const g=i.oxw(4);i.Q6J("isLoggedIn",g.showEdits)("socialMedia",null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser?null:g.currentFundraiser.root_fundraiser.social_media)}}function no(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div",65)(1,"span"),i.SDv(2,66),i.qZA(),i.YNc(3,vs,4,0,"span",0),i.YNc(4,is,1,2,"app-owner-social-share",67),i.qZA()),2&Ze){const g=i.oxw(3);i.xp6(3),i.Q6J("ngIf",!(g.isCurrentChildFundraiser?""!=(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser||null==g.currentFundraiser.root_fundraiser.social_media?null:g.currentFundraiser.root_fundraiser.social_media.instagram)||""!=(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser||null==g.currentFundraiser.root_fundraiser.social_media?null:g.currentFundraiser.root_fundraiser.social_media.facebook)||""!=(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser||null==g.currentFundraiser.root_fundraiser.social_media?null:g.currentFundraiser.root_fundraiser.social_media.linkedin)||""!=(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser||null==g.currentFundraiser.root_fundraiser.social_media?null:g.currentFundraiser.root_fundraiser.social_media.website)||""!=(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser||null==g.currentFundraiser.root_fundraiser.social_media?null:g.currentFundraiser.root_fundraiser.social_media.email)||""!=(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser||null==g.currentFundraiser.root_fundraiser.social_media?null:g.currentFundraiser.root_fundraiser.social_media.twitter):""!=(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.instagram)||""!=(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.facebook)||""!=(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.linkedin)||""!=(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.website)||""!=(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.email)||""!=(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.twitter))),i.xp6(1),i.Q6J("ngIf",g.isCurrentChildFundraiser?!(""==(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser||null==g.currentFundraiser.root_fundraiser.social_media?null:g.currentFundraiser.root_fundraiser.social_media.instagram)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser||null==g.currentFundraiser.root_fundraiser.social_media?null:g.currentFundraiser.root_fundraiser.social_media.facebook)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser||null==g.currentFundraiser.root_fundraiser.social_media?null:g.currentFundraiser.root_fundraiser.social_media.linkedin)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser||null==g.currentFundraiser.root_fundraiser.social_media?null:g.currentFundraiser.root_fundraiser.social_media.website)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser||null==g.currentFundraiser.root_fundraiser.social_media?null:g.currentFundraiser.root_fundraiser.social_media.email)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser||null==g.currentFundraiser.root_fundraiser.social_media?null:g.currentFundraiser.root_fundraiser.social_media.twitter)):!(""==(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.instagram)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.facebook)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.linkedin)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.website)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.email)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.twitter)))}}function Zo(Ze,Wt){if(1&Ze&&i._UZ(0,"app-owner-social-share",70),2&Ze){const g=i.oxw(4);i.Q6J("isLoggedIn",g.showEdits)("socialMedia",null==g.currentFundraiser?null:g.currentFundraiser.social_media)}}function mt(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div",65)(1,"span"),i.SDv(2,71),i.qZA(),i.YNc(3,Zo,1,2,"app-owner-social-share",67),i.qZA()),2&Ze){const g=i.oxw(3);i.xp6(3),i.Q6J("ngIf",g.isCurrentChildFundraiser?!(""==(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser||null==g.currentFundraiser.root_fundraiser.social_media?null:g.currentFundraiser.root_fundraiser.social_media.instagram)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser||null==g.currentFundraiser.root_fundraiser.social_media?null:g.currentFundraiser.root_fundraiser.social_media.facebook)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser||null==g.currentFundraiser.root_fundraiser.social_media?null:g.currentFundraiser.root_fundraiser.social_media.linkedin)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser||null==g.currentFundraiser.root_fundraiser.social_media?null:g.currentFundraiser.root_fundraiser.social_media.website)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser||null==g.currentFundraiser.root_fundraiser.social_media?null:g.currentFundraiser.root_fundraiser.social_media.email)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser||null==g.currentFundraiser.root_fundraiser.social_media?null:g.currentFundraiser.root_fundraiser.social_media.twitter)):!(""==(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.instagram)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.facebook)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.linkedin)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.website)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.email)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.twitter)))}}function Xt(Ze,Wt){if(1&Ze&&(i.TgZ(0,"h1",56)(1,"strong"),i._uU(2),i.qZA()(),i.TgZ(3,"div",57)(4,"div",58)(5,"div",59),i._UZ(6,"app-fundraiser-category",60),i.qZA(),i.YNc(7,Wa,2,1,"div",61),i.qZA(),i.YNc(8,no,5,2,"div",62),i.YNc(9,mt,4,1,"div",62),i.qZA(),i._UZ(10,"br")),2&Ze){const g=i.oxw(2);i.xp6(2),i.hij("",null==g.currentFundraiser?null:g.currentFundraiser.translations["title"+g.localeSuffix]," "),i.xp6(4),i.Q6J("category",null==g.currentFundraiser?null:g.currentFundraiser.category),i.xp6(1),i.Q6J("ngIf",!g.isCurrentChildFundraiser||g.isCurrentChildFundraiser&&(null==g.currentFundraiser||null==g.currentFundraiser.root_fundraiser?null:g.currentFundraiser.root_fundraiser.location)),i.xp6(1),i.Q6J("ngIf",""==(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.instagram)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.facebook)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.linkedin)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.website)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.email)&&""==(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.twitter)),i.xp6(1),i.Q6J("ngIf",""!=(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.instagram)||""!=(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.facebook)||""!=(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.linkedin)||""!=(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.website)||""!=(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.email)||""!=(null==g.currentFundraiser||null==g.currentFundraiser.social_media?null:g.currentFundraiser.social_media.twitter))}}const or=function(Ze){return{icon:"edit",routeTo:Ze}},mr=function(Ze){return{icon:"g_translate",routeTo:Ze}};function Or(Ze,Wt){if(1&Ze&&(i.TgZ(0,"span",84),i.GkF(1,85),i.qZA(),i.TgZ(2,"span",86),i.GkF(3,85),i.qZA()),2&Ze){const g=i.oxw(3),$=i.MAs(34);i.s9C("matTooltip",g.editTooltip),i.xp6(1),i.Q6J("ngTemplateOutlet",$)("ngTemplateOutletContext",i.VKq(6,or,g.openEditFundraiserAboutDialog)),i.xp6(1),i.s9C("matTooltip",g.translateTooltip),i.xp6(1),i.Q6J("ngTemplateOutlet",$)("ngTemplateOutletContext",i.VKq(8,mr,g.openTranslateFundraiserAboutDialog))}}function Vr(Ze,Wt){if(1&Ze&&(i.TgZ(0,"span",84),i.GkF(1,85),i.qZA(),i.TgZ(2,"span",86),i.GkF(3,85),i.qZA()),2&Ze){const g=i.oxw(3),$=i.MAs(34);i.s9C("matTooltip",g.editTooltip),i.xp6(1),i.Q6J("ngTemplateOutlet",$)("ngTemplateOutletContext",i.VKq(6,or,g.openEditFundraiserAppealDialog)),i.xp6(1),i.s9C("matTooltip",g.translateTooltip),i.xp6(1),i.Q6J("ngTemplateOutlet",$)("ngTemplateOutletContext",i.VKq(8,mr,g.openTranslateFundraiserAppealDialog))}}function Qr(Ze,Wt){if(1&Ze&&i.GkF(0,85),2&Ze){const g=i.oxw(3),$=i.MAs(34);i.Q6J("ngTemplateOutlet",$)("ngTemplateOutletContext",i.VKq(2,or,g.openEditFundraiserCategoryDialog))}}function qr(Ze,Wt){if(1&Ze&&i.GkF(0,85),2&Ze){const g=i.oxw(4),$=i.MAs(34);i.Q6J("ngTemplateOutlet",$)("ngTemplateOutletContext",i.VKq(2,or,g.openEditFundraiserLocationDialog))}}function Tn(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div",87),i._UZ(1,"app-fundraiser-location",64),i.TgZ(2,"div",88),i.YNc(3,qr,1,4,"ng-container",79),i.qZA()()),2&Ze){const g=i.oxw(3);i.xp6(1),i.Q6J("currentFundraiser",g.currentFundraiser),i.xp6(1),i.s9C("matTooltip",g.editTooltip),i.xp6(1),i.Q6J("ngIf",g.showEdits)}}function si(Ze,Wt){if(1&Ze&&i.GkF(0,85),2&Ze){const g=i.oxw(3),$=i.MAs(34);i.Q6J("ngTemplateOutlet",$)("ngTemplateOutletContext",i.VKq(2,or,g.openEditCreatedByDialog))}}function di(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div",72)(1,"h1",73)(2,"strong"),i._uU(3),i.qZA()(),i.TgZ(4,"div",74),i.YNc(5,Or,4,10,"ng-template",1),i.YNc(6,Vr,4,10,"ng-template",null,75,i.W1O),i.qZA()(),i.TgZ(8,"div",76)(9,"div",77)(10,"div",59),i._UZ(11,"app-fundraiser-category",60),i.TgZ(12,"div",78),i.YNc(13,Qr,1,4,"ng-container",79),i.qZA()(),i.YNc(14,Tn,4,3,"div",80),i.qZA(),i.TgZ(15,"div",81)(16,"span"),i.SDv(17,82),i.qZA(),i._UZ(18,"app-owner-social-share",70),i.TgZ(19,"div",83),i.YNc(20,si,1,4,"ng-container",79),i.qZA()()(),i._UZ(21,"br")),2&Ze){const g=i.MAs(7),$=i.oxw(2);i.xp6(3),i.Oqu(null==$.currentFundraiser?null:$.currentFundraiser.translations["title"+$.localeSuffix]),i.xp6(2),i.Q6J("ngIf",!$.isCurrentChildFundraiser)("ngIfElse",g),i.xp6(6),i.Q6J("category",null==$.currentFundraiser?null:$.currentFundraiser.category),i.xp6(1),i.s9C("matTooltip",$.editTooltip),i.xp6(1),i.Q6J("ngIf",$.showEdits),i.xp6(1),i.Q6J("ngIf",!$.isCurrentChildFundraiser||$.isCurrentChildFundraiser&&(null==$.currentFundraiser||null==$.currentFundraiser.root_fundraiser?null:$.currentFundraiser.root_fundraiser.location)),i.xp6(4),i.Q6J("isLoggedIn",$.showEdits)("socialMedia",null==$.currentFundraiser?null:$.currentFundraiser.social_media),i.xp6(1),i.s9C("matTooltip",$.editTooltip),i.xp6(1),i.Q6J("ngIf",$.showEdits)}}function vi(Ze,Wt){if(1&Ze&&(i.YNc(0,Xt,11,5,"ng-template",1),i.YNc(1,di,22,11,"ng-template",null,55,i.W1O)),2&Ze){const g=i.MAs(2),$=i.oxw();i.Q6J("ngIf",!($.showEdits&&$.isLoggedInUserAdmin))("ngIfElse",g)}}function qi(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div",94)(1,"div",95),i._UZ(2,"img",96),i.TgZ(3,"div",97)(4,"mat-label"),i.SDv(5,98),i.qZA(),i.TgZ(6,"div"),i._uU(7),i.qZA()()()()),2&Ze){const g=i.oxw(3);i.xp6(7),i.Oqu(null==g.currentFundraiser?null:g.currentFundraiser.beneficiaryName)}}function Da(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div",90)(1,"div",91),i._UZ(2,"app-created-by",64),i.qZA(),i.TgZ(3,"div",26),i._UZ(4,"app-opp-owner",92),i.qZA(),i.YNc(5,qi,8,1,"div",93),i.qZA()),2&Ze){const g=i.oxw(2);i.Q6J("fxLayoutAlign",null!=g.currentFundraiser&&g.currentFundraiser.beneficiaryName?"space-between":"start start")("fxLayoutGap",null!=g.currentFundraiser&&g.currentFundraiser.beneficiaryName?"20px":"100px"),i.xp6(2),i.Q6J("currentFundraiser",g.currentFundraiser),i.xp6(2),i.Q6J("bankAccount",g.currentFundraiser),i.xp6(1),i.Q6J("ngIf",null==g.currentFundraiser?null:g.currentFundraiser.beneficiaryName)}}function ua(Ze,Wt){if(1&Ze&&i.GkF(0,85),2&Ze){const g=i.oxw(3),$=i.MAs(34);i.Q6J("ngTemplateOutlet",$)("ngTemplateOutletContext",i.VKq(2,or,g.openEditCreatedByDialog))}}function Pa(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"div")(1,"div",100),i.NdJ("click",function(){i.CHM(g);const st=i.oxw(3);return i.KtG(st.routeToParentFundraiser(null==st.currentFundraiser||null==st.currentFundraiser.parent?null:st.currentFundraiser.parent.slug))}),i.TgZ(2,"img",101),i.NdJ("error",function(st){i.CHM(g);const Bt=i.oxw(3);return i.KtG(Bt.handleImageError(st))}),i.qZA(),i.TgZ(3,"div",102)(4,"mat-label"),i.SDv(5,103),i.qZA(),i.TgZ(6,"div"),i._uU(7),i.qZA()()()()}if(2&Ze){const g=i.oxw(3);i.xp6(2),i.s9C("src",null==g.currentFundraiser||null==g.currentFundraiser.parent||null==g.currentFundraiser.parent.profile?null:g.currentFundraiser.parent.profile.image,i.LSH),i.xp6(5),i.hij(" ",(null==g.currentFundraiser||null==g.currentFundraiser.parent?null:g.currentFundraiser.parent.parent_translations["title"+g.localeSuffix])||(null==g.currentFundraiser||null==g.currentFundraiser.parent?null:g.currentFundraiser.parent.title)," ")}}function za(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div",99)(1,"div"),i._UZ(2,"app-created-by",64),i.YNc(3,ua,1,4,"ng-container",79),i.qZA(),i.TgZ(4,"div"),i._UZ(5,"app-opp-owner",92),i.qZA(),i.YNc(6,Pa,8,2,"div",0),i.qZA()),2&Ze){const g=i.oxw(2);i.xp6(2),i.Q6J("currentFundraiser",g.currentFundraiser),i.xp6(1),i.Q6J("ngIf",g.showEdits&&!g.isCurrentChildFundraiser),i.xp6(2),i.Q6J("bankAccount",g.currentFundraiser),i.xp6(1),i.Q6J("ngIf",g.isCurrentChildFundraiser)}}function ja(Ze,Wt){if(1&Ze&&(i.YNc(0,Da,6,5,"ng-template",1),i.YNc(1,za,7,4,"ng-template",null,89,i.W1O)),2&Ze){const g=i.MAs(2),$=i.oxw();i.Q6J("ngIf",!$.isCurrentChildFundraiser)("ngIfElse",g)}}function lo(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div",113)(1,"span",114),i.GkF(2,85),i.qZA(),i.TgZ(3,"span",115),i.GkF(4,85),i.qZA()()),2&Ze){const g=i.oxw(2),$=i.MAs(34);i.xp6(1),i.s9C("matTooltip",g.editTooltip),i.xp6(1),i.Q6J("ngTemplateOutlet",$)("ngTemplateOutletContext",i.VKq(6,or,g.openEditFundraiserAppealDescriptionDialog)),i.xp6(1),i.s9C("matTooltip",g.translateTooltip),i.xp6(1),i.Q6J("ngTemplateOutlet",$)("ngTemplateOutletContext",i.VKq(8,mr,g.openTranslateFundraiserAppealDescriptionDialog))}}function ba(Ze,Wt){1&Ze&&(i.TgZ(0,"div",116)(1,"div",117),i.SDv(2,118),i.qZA()())}function Ba(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"a",119),i.NdJ("click",function(){i.CHM(g);const st=i.oxw(2);return i.KtG(st.getFundraiserFullDescription(!1))}),i.SDv(1,120),i.qZA()}}const Ho=function(){return{height:150}};function Fo(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div",121),i._UZ(1,"ng-image-slider",122,123),i.qZA()),2&Ze){const g=i.oxw(2);i.xp6(1),i.Q6J("images",g.appealMediaList)("imageSize",i.DdM(4,Ho))("manageImageRatio",!0)("showArrow",g.mediaLength>2)}}function fs(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div",104)(1,"div",105)(2,"div",106),i.SDv(3,107),i.qZA(),i.YNc(4,lo,5,10,"div",108),i.qZA(),i._UZ(5,"mat-divider"),i.YNc(6,ba,3,0,"ng-template",35),i._UZ(7,"quill-view",109),i.TgZ(8,"div",110),i.YNc(9,Ba,2,0,"a",111),i.qZA(),i.YNc(10,Fo,3,5,"div",112),i.qZA()),2&Ze){const g=i.oxw();i.xp6(4),i.Q6J("ngIf",g.showEdits&&g.isCurrentChildFundraiser),i.xp6(2),i.Q6J("ngIf",!g.isDescriptionLoaded),i.xp6(1),i.Q6J("content",(null==g.fundraiserDescriptionData?null:g.fundraiserDescriptionData.translations["content"+g.localeSuffix])||(null==g.fundraiserDescriptionData?null:g.fundraiserDescriptionData.content))("preserveWhitespace",!0)("sanitize",!0),i.xp6(2),i.Q6J("ngIf",(null==g.fundraiserDescriptionData||null==g.fundraiserDescriptionData.translations["content"+g.localeSuffix]?null:g.fundraiserDescriptionData.translations["content"+g.localeSuffix].includes("...."))||(null==g.fundraiserDescriptionData||null==g.fundraiserDescriptionData.content?null:g.fundraiserDescriptionData.content.includes("...."))),i.xp6(1),i.Q6J("ngIf",null==g.currentFundraiser?null:g.currentFundraiser.appeal_image_list[0])}}function ft(Ze,Wt){1&Ze&&i.SDv(0,132)}function Lt(Ze,Wt){if(1&Ze&&i.GkF(0,22),2&Ze){i.oxw();const g=i.MAs(8);i.Q6J("ngTemplateOutlet",g)}}function it(Ze,Wt){if(1&Ze&&i._uU(0),2&Ze){const g=i.oxw(3);i.hij(" \xa0(",g.connectedFundraisersCount,") ")}}function cr(Ze,Wt){if(1&Ze&&(i.TgZ(0,"span",133),i.SDv(1,134),i.qZA(),i.YNc(2,it,1,1,"ng-template",1)),2&Ze){const g=i.oxw(2),$=i.MAs(38);i.xp6(2),i.Q6J("ngIf",!g.isConnectedFundraiserCountLoading)("ngIfElse",$)}}function Fr(Ze,Wt){if(1&Ze&&i.GkF(0,22),2&Ze){i.oxw();const g=i.MAs(12);i.Q6J("ngTemplateOutlet",g)}}function Zr(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div",140),i.SDv(1,141),i.qZA(),i.TgZ(2,"span",114),i.GkF(3,85),i.qZA(),i.TgZ(4,"span",115),i.GkF(5,85),i.qZA()),2&Ze){const g=i.oxw(4),$=i.MAs(34);i.xp6(2),i.s9C("matTooltip",g.editTooltip),i.xp6(1),i.Q6J("ngTemplateOutlet",$)("ngTemplateOutletContext",i.VKq(6,or,g.openEditFundraiserAboutDescriptionDialog)),i.xp6(1),i.s9C("matTooltip",g.translateTooltip),i.xp6(1),i.Q6J("ngTemplateOutlet",$)("ngTemplateOutletContext",i.VKq(8,mr,g.openTranslateFundraiserAboutDescriptionDialog))}}function Zi(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div",139),i.YNc(1,Zr,6,10,"ng-template",35),i.qZA()),2&Ze){const g=i.oxw(3);i.xp6(1),i.Q6J("ngIf",g.isDescriptionLoaded&&g.fundraiserDescriptionDataParagraph&&!g.isCurrentChildFundraiser)}}function aa(Ze,Wt){1&Ze&&i._UZ(0,"mat-divider")}function as(Ze,Wt){1&Ze&&(i.TgZ(0,"div",146),i.SDv(1,147),i.qZA())}function Io(Ze,Wt){1&Ze&&(i.TgZ(0,"div",148),i.SDv(1,149),i.qZA())}function Yo(Ze,Wt){1&Ze&&(i.TgZ(0,"div",148),i._UZ(1,"img",150),i.qZA())}function Rs(Ze,Wt){1&Ze&&(i.TgZ(0,"div",148),i.SDv(1,151),i.qZA())}function xs(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"button",152),i.NdJ("click",function(){i.CHM(g);const st=i.oxw(4);return i.KtG(st.openEditFundraiserAboutDescriptionDialog.navigate())}),i.SDv(1,153),i.qZA()}if(2&Ze){const g=i.oxw(4);i.Q6J("disabled",g.isNewFundraiser&&!g.isCurrentChildFundraiser)}}const gs=function(Ze,Wt){return{"p-xl":Ze,"p-xxl":Wt}};function ps(Ze,Wt){if(1&Ze&&(i._UZ(0,"br"),i.TgZ(1,"div",142),i.YNc(2,as,2,0,"div",143),i.YNc(3,Io,2,0,"div",144),i.YNc(4,Yo,2,0,"div",144),i.YNc(5,Rs,2,0,"div",144),i._UZ(6,"br"),i.YNc(7,xs,2,1,"button",145),i.qZA()),2&Ze){const g=i.oxw(3);i.xp6(1),i.Q6J("ngClass",i.WLB(6,gs,g.showEdits,!g.showEdits)),i.xp6(1),i.Q6J("ngIf",g.showEdits),i.xp6(1),i.Q6J("ngIf",g.showEdits),i.xp6(1),i.Q6J("ngIf",!g.showEdits),i.xp6(1),i.Q6J("ngIf",!g.showEdits),i.xp6(2),i.Q6J("ngIf",g.showEdits)}}function xe(Ze,Wt){1&Ze&&(i.TgZ(0,"div",116)(1,"div",117),i.SDv(2,154),i.qZA()())}function ht(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"app-fundraiser-about",155),i.NdJ("readMoreClicked",function(st){i.CHM(g);const Bt=i.oxw(3);return i.KtG(Bt.getFundraiserFullDescription(st))}),i.qZA()}if(2&Ze){const g=i.oxw(3);i.Q6J("currentFundraiser",g.currentFundraiser)("isChildFundraiser",g.isCurrentChildFundraiser)("fundraiserDescriptionData",g.fundraiserDescriptionData)("isLoading",g.isDescriptionLoaded)}}function He(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"div",156),i._UZ(1,"br"),i.TgZ(2,"p"),i.SDv(3,157),i.qZA(),i.TgZ(4,"mat-form-field",158),i.NdJ("click",function(){i.CHM(g);const st=i.oxw(3);return i.KtG(st.openCreateFundraiserAboutDialog.navigate())}),i.TgZ(5,"input",159),i.NdJ("keyup",function(){i.CHM(g);const st=i.oxw(3);return i.KtG(st.openCreateFundraiserAboutDialog.navigate())}),i.qZA()()()}}function Ut(Ze,Wt){if(1&Ze&&(i.YNc(0,Zi,2,1,"div",135),i.YNc(1,aa,1,0,"ng-template",35),i.YNc(2,ps,8,9,"ng-template",35),i.YNc(3,xe,3,0,"ng-template",35),i.YNc(4,ht,1,4,"app-fundraiser-about",136),i.YNc(5,He,6,0,"div",137),i._UZ(6,"br")(7,"div",138),i.GkF(8,22)),2&Ze){const g=i.oxw(2),$=i.MAs(22);i.Q6J("ngIf",g.showEdits&&g.isLoggedInUserAdmin),i.xp6(1),i.Q6J("ngIf",!g.isCurrentChildFundraiser),i.xp6(1),i.Q6J("ngIf",g.fundraiserNoDescription&&g.isDescriptionLoaded),i.xp6(1),i.Q6J("ngIf",!g.isDescriptionLoaded),i.xp6(1),i.Q6J("ngIf",(!g.isNewFundraiser||g.isCurrentChildFundraiser)&&!g.fundraiserNoDescription),i.xp6(1),i.Q6J("ngIf",g.isNewFundraiser&&!g.isCurrentChildFundraiser),i.xp6(3),i.Q6J("ngTemplateOutlet",$)}}function _r(Ze,Wt){if(1&Ze&&i._UZ(0,"br")(1,"app-fundraiser-media-view",64),2&Ze){const g=i.oxw(2);i.xp6(1),i.Q6J("currentFundraiser",g.currentFundraiser)}}function $r(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div"),i._UZ(1,"app-fundraiser-card",178),i.qZA()),2&Ze){const g=Wt.$implicit;i.xp6(1),i.Q6J("slug",g.slug)("fundraiserCardData",g.fundraiserCardData)}}function Fe(Ze,Wt){if(1&Ze&&(i.TgZ(0,"div",176),i.YNc(1,$r,2,2,"div",177),i.qZA()),2&Ze){const g=i.oxw(4);i.xp6(1),i.Q6J("ngForOf",g.connectedFundraisersData)}}function er(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon"),i._UZ(1,"mat-spinner",179),i.qZA())}function pe(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"div",161)(1,"div",162)(2,"div",163)(3,"form",164)(4,"mat-form-field",165)(5,"mat-label"),i.SDv(6,166),i.qZA(),i._UZ(7,"input",167)(8,"img",168),i.qZA()()(),i.TgZ(9,"div",169)(10,"button",170),i.NdJ("click",function(){i.CHM(g);const st=i.oxw(3);return i.KtG(st.routeToConnectFundraiser())}),i.TgZ(11,"span"),i.SDv(12,171),i.qZA()()()(),i.YNc(13,Fe,2,1,"div",172),i.qZA(),i.TgZ(14,"div",173)(15,"button",174),i.NdJ("click",function(){i.CHM(g);const st=i.oxw(3);return i.KtG(st.viewMore())}),i.TgZ(16,"span"),i.SDv(17,175),i.qZA(),i.YNc(18,er,2,0,"mat-icon",0),i.qZA()()}if(2&Ze){const g=i.oxw(3);i.xp6(3),i.Q6J("formGroup",g.searchInputForm),i.xp6(4),i.s9C("placeholder",g.SearchFundraiserInput),i.xp6(3),i.Q6J("disabled",!1===(null==g.currentFundraiser?null:g.currentFundraiser.allow_child)),i.xp6(3),i.Q6J("ngIf",null==g.connectedFundraisersData?null:g.connectedFundraisersData.length),i.xp6(2),i.Q6J("disabled",g.isConnectedFundraiserCountLoading||g.connectedFundraisersData.length==g.connectedFundraisersCount),i.xp6(3),i.Q6J("ngIf",g.isConnectedFundraiserCountLoading)}}function dt(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"div",180)(1,"div",181),i.SDv(2,182),i.qZA(),i.TgZ(3,"div",30)(4,"div",183),i.SDv(5,184),i.qZA()(),i._UZ(6,"br"),i.TgZ(7,"button",185),i.NdJ("click",function(){i.CHM(g);const st=i.oxw(3);return i.KtG(st.routeToConnectFundraiser())}),i.SDv(8,186),i.qZA()()}if(2&Ze){const g=i.oxw(3);i.xp6(7),i.s9C("matTooltip",g.disableTooltip),i.Q6J("disabled",!1===(null==g.currentFundraiser?null:g.currentFundraiser.allow_child))("matTooltipDisabled",!0===(null==g.currentFundraiser?null:g.currentFundraiser.allow_child))}}function jt(Ze,Wt){if(1&Ze&&(i._UZ(0,"br"),i.YNc(1,pe,19,6,"ng-template",1),i.YNc(2,dt,9,3,"ng-template",null,160,i.W1O)),2&Ze){const g=i.MAs(3),$=i.oxw(2);i.xp6(1),i.Q6J("ngIf",null==$.connectedFundraisersData?null:$.connectedFundraisersData.length)("ngIfElse",g)}}function Ir(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-tab-group",124)(1,"mat-tab",125),i.YNc(2,ft,1,0,"ng-template",126),i.YNc(3,Lt,1,1,"ng-template",127),i.qZA(),i.TgZ(4,"mat-tab",128),i.YNc(5,cr,3,2,"ng-template",126),i.YNc(6,Fr,1,1,"ng-template",127),i.qZA()(),i.YNc(7,Ut,9,7,"ng-template",null,129,i.W1O),i.YNc(9,_r,2,1,"ng-template",null,130,i.W1O),i.YNc(11,jt,4,2,"ng-template",null,131,i.W1O))}function Ur(Ze,Wt){1&Ze&&(i._UZ(0,"mat-divider"),i.TgZ(1,"div",188)(2,"div",117),i.SDv(3,189),i.qZA()())}function En(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"app-fundraiser-update-view",191),i.NdJ("loadFullUpdateEvent",function(st){i.CHM(g);const Bt=i.oxw(3);return i.KtG(Bt.loadFullUpdateEvent(st))}),i.qZA()}if(2&Ze){const g=i.oxw(3);i.Q6J("fundraiserUpdates",g.fundraiserUpdatesData)("cardShadow",g.cardShadow)("slug",null==g.currentFundraiser?null:g.currentFundraiser.slug)("currentFundraiser",g.currentFundraiser)("count",g.fundraiserUpdatesCount)("totalPages",g.fundraiserUpdatesTotalPages)}}function Fn(Ze,Wt){if(1&Ze&&i.YNc(0,En,1,6,"app-fundraiser-update-view",190),2&Ze){const g=i.oxw(2);i.Q6J("ngIf",g.isUpdateLoaded)}}function qn(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"app-fundraiser-update-edit",192),i.NdJ("refreshComponentEvent",function(){i.CHM(g);const st=i.oxw(2);return i.KtG(st.handleRefreshEvent())}),i.qZA()}if(2&Ze){const g=i.oxw(2);i.Q6J("slug",null==g.currentFundraiser?null:g.currentFundraiser.slug)("fundraiserLocalId",null==g.currentFundraiser?null:g.currentFundraiser.id)("currentFundraiser",g.currentFundraiser)("fundraiserUpdates",g.fundraiserUpdatesData)("count",g.fundraiserUpdatesCount)("totalPages",g.fundraiserUpdatesTotalPages)}}function hi(Ze,Wt){if(1&Ze&&(i.YNc(0,Ur,4,0,"ng-template",35),i.YNc(1,Fn,1,1,"ng-template",1),i.YNc(2,qn,1,6,"ng-template",null,187,i.W1O)),2&Ze){const g=i.MAs(3),$=i.oxw();i.Q6J("ngIf",!$.isUpdateLoaded),i.xp6(1),i.Q6J("ngIf",!($.showEdits&&$.isLoggedInUserAdmin)||$.isNewFundraiser)("ngIfElse",g)}}function _i(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"mat-card",194)(1,"app-fundraiser-notification",195),i.NdJ("showPublicNotification",function(st){i.CHM(g);const Bt=i.oxw(2);return i.KtG(Bt.logNotificationEvent(st))})("publishNotification",function(st){i.CHM(g);const Bt=i.oxw(2);return i.KtG(Bt.publishFundraiserFunction(st))}),i.qZA()()}if(2&Ze){const g=i.oxw(2);i.Gre("mat-elevation-z",g.cardShadow,""),i.xp6(1),i.Q6J("currentFundraiserID",g.currentFundraiser.id)("currencyData",g.currencyData)("showPublishBanner",g.showPublishBanner)("isDraft",g.currentFundraiser.is_draft)("currentSlug",g.currentFundraiser.slug)("showStripePrompt",g.showStripePrompt)("isConnected",g.isCurrentChildFundraiser)}}function gi(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"div",38)(1,"div"),i.SDv(2,196),i.qZA(),i.TgZ(3,"button",40),i.NdJ("click",function(){i.CHM(g);const st=i.oxw(3);return i.KtG(st.hidePublicView())}),i.SDv(4,197),i.qZA()()}}function oa(Ze,Wt){if(1&Ze&&i.YNc(0,gi,5,0,"div",37),2&Ze){const g=i.oxw(2);i.Q6J("ngIf",!g.showEdits&&g.isLoggedInUserAdmin)}}function Ea(Ze,Wt){if(1&Ze&&(i.YNc(0,_i,2,10,"ng-template",35),i.YNc(1,oa,1,1,"ng-template",null,193,i.W1O)),2&Ze){const g=i.oxw();i.Q6J("ngIf",g.showEdits&&g.isLoggedInUserAdmin)}}function da(Ze,Wt){if(1&Ze&&(i.TgZ(0,"mat-card",198),i._UZ(1,"app-fundraiser-donation",199),i.qZA()),2&Ze){const g=i.oxw();i.Gre("mat-elevation-z",g.cardShadow,""),i.xp6(1),i.Q6J("fundraiserCardData",g.fundraiserCardData)("targetAmount",g.currentFundraiser.amount_target)("raisedAmount",g.currentFundraiser.donation.amount)("selectedFundraiser",g.currentFundraiser)("showEdits",g.showEdits)("isDraftOrClosed",g.isDraftOrClosed)("isNewFundraiser",g.isNewFundraiser)("daysLeft",g.daysLeft)("isLoggedIn",g.isLoggedInUserAdmin)("isFindable",g.currentFundraiser.is_findable)("isOpen",g.currentFundraiser.is_opened)("isDraft",g.currentFundraiser.is_draft)}}function Za(Ze,Wt){if(1&Ze&&(i.TgZ(0,"mat-card",200)(1,"mat-card-content"),i._UZ(2,"app-fundraiser-donation-small-card",201),i.qZA()()),2&Ze){const g=i.oxw();i.Gre("mat-elevation-z",g.cardShadow,""),i.xp6(2),i.Q6J("fundraiserCardData",g.fundraiserCardData)("targetAmount",g.currentFundraiser.amount_target)("raisedAmount",g.currentFundraiser.donation.amount)("selectedFundraiser",g.currentFundraiser)("isDraftOrClosed",g.isDraftOrClosed)("isLoggedIn",g.isLoggedInUserAdmin)("isOpen",g.currentFundraiser.is_opened)}}function va(Ze,Wt){if(1&Ze&&(i.TgZ(0,"mat-card",204),i._UZ(1,"app-donations-zero",205),i.qZA()),2&Ze){const g=i.oxw(2);i.Gre("mat-elevation-z",g.cardShadow,""),i.xp6(1),i.Q6J("isLoggedInUserAdmin",g.isLoggedInUserAdmin)("isLoggedIn",g.isLoggedIn)("currentFundraiser",g.currentFundraiser)("isDraftOrClosed",g.isDraftOrClosed)("hideToggleSwitch",g.hideToggleSwitch)("donationReceivedBoolean",g.currentFundraiser.show_received_donations)("isWholePreview",g.isWholePreview)}}function co(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"mat-card")(1,"app-donor-list-short",206),i.NdJ("updateDonorData",function(){i.CHM(g);const st=i.oxw(2);return i.KtG(st.onUpdateDonorData())}),i.qZA()()}if(2&Ze){const g=i.oxw(2);i.Gre("mat-elevation-z",g.cardShadow,""),i.xp6(1),i.Q6J("currentFundraiserID",g.currentFundraiser.id)("isLoggedInUserAdmin",g.isLoggedInUserAdmin)("isLoggedIn",g.isLoggedIn)("donationReceivedBoolean",g.currentFundraiser.show_received_donations)("hideToggleSwitch",g.hideToggleSwitch)("donorShortData",g.donorShortData)("currentFundraiser",g.currentFundraiser)("isDraftOrClosed",g.isDraftOrClosed)("isWholePreview",g.isWholePreview)}}function ki(Ze,Wt){if(1&Ze&&(i.YNc(0,va,2,10,"mat-card",202),i.YNc(1,co,2,12,"mat-card",203)),2&Ze){const g=i.oxw();i.Q6J("ngIf",g.donarDataParent<=0),i.xp6(1),i.Q6J("ngIf",g.donarDataParent>0&&(g.isLoggedInUserAdmin&&!g.hideToggleSwitch||g.currentFundraiser.show_received_donations))}}function Li(Ze,Wt){if(1&Ze&&(i.ynx(0),i.TgZ(1,"mat-card"),i._UZ(2,"app-connect-fund",207),i.qZA(),i.BQk()),2&Ze){const g=i.oxw(2);i.xp6(1),i.Gre("mat-elevation-z",g.cardShadow,""),i.xp6(1),i.Q6J("slug",g.slug)("isAllowChild",null==g.currentFundraiser?null:g.currentFundraiser.allow_child)("isLoggedInUserAdmin",g.isLoggedInUserAdmin)("hideToggleSwitch",g.hideToggleSwitch)}}function Qo(Ze,Wt){if(1&Ze&&i.YNc(0,Li,3,7,"ng-container",0),2&Ze){const g=i.oxw();i.Q6J("ngIf",(null==g.currentFundraiser?null:g.currentFundraiser.allow_child)||g.showEdits)}}function ka(Ze,Wt){if(1&Ze){const g=i.EpF();i.TgZ(0,"button",209),i.NdJ("click",function(){i.CHM(g);const st=i.oxw().routeTo;return i.KtG(st.navigate())}),i.TgZ(1,"mat-icon",210),i._uU(2),i.qZA()()}if(2&Ze){const g=i.oxw(),$=g.isDisable,st=g.icon,Bt=i.oxw();i.Q6J("disabled",$||Bt.isNewFundraiser&&!Bt.isCurrentChildFundraiser),i.xp6(2),i.Oqu(st)}}function qo(Ze,Wt){if(1&Ze&&(i.TgZ(0,"mat-icon",210),i._uU(1),i.qZA()),2&Ze){const g=i.oxw().icon;i.xp6(1),i.Oqu(g)}}function Go(Ze,Wt){if(1&Ze&&(i.YNc(0,ka,3,2,"ng-template",1),i.YNc(1,qo,2,1,"ng-template",null,208,i.W1O)),2&Ze){const g=Wt.routeTo,$=i.MAs(2);i.Q6J("ngIf",g)("ngIfElse",$)}}function $o(Ze,Wt){1&Ze&&i._UZ(0,"app-page-loader")}function Vo(Ze,Wt){1&Ze&&(i.TgZ(0,"mat-icon"),i._UZ(1,"mat-spinner",179),i.qZA())}let ya=(()=>{class Ze{constructor(g,$,st,Bt,hr,Xr,fn,Kn,An,Ki,Xa,fi,Ko,uo,No,es){this.router=g,this._formBuilder=$,this.fundraiserService=st,this.notificationService=Bt,this.mediaService=hr,this._customBrandingService=Xr,this._fundraiserCardService=fn,this._themeService=Kn,this._media=An,this.activatedRoute=Ki,this.accountService=Xa,this.dialog=fi,this._bankService=Ko,this.sanitizer=uo,this.profileService=No,this.customDomainService=es,this._unsubscribeAll=new d.x,this.slug="",this.editDonationAmountURL="/fundraising/donation-amount/",this.disableTooltip="Povezana funkcionalnost prikupljanja sredstava onemogu\u0107ena je od strane Glavnog Prikuplja\u010Da sredstava.",this.editTooltip="Uredi",this.translateTooltip="Prevesti",this.SearchFundraiserInput="Pretra\u017Eivanje Prikupljanja Sredstava",this.isConnectedFundraiserCountLoading=!0,this.connectedFundraisersCount=0,this.debounceDelay=1e3,this.defaultBackgroundImage=v.w.getBase64_FundraiserDefaultBg(),this.backgroundImage=this.defaultBackgroundImage,this.backgroundVideo="",this.cardShadow="1",this.fontFamily="Roboto",this.whydonateSecondaryColor="#2E2C96",this.isWhydonateSecondatColor=!1,this.hideToggleSwitch=!1,this.fundraiserNoDescription=!1,this._navigateType={navigate:function(){throw new Error("Function not implemented.")}},this.goToEditAmount=this._navigateType,this.openEditCreatedByDialog=this._navigateType,this.openEditFundraiserLocationDialog=this._navigateType,this.openEditFundraiserCategoryDialog=this._navigateType,this.openTranslateFundraiserAboutDialog=this._navigateType,this.openTranslateFundraiserAboutDescriptionDialog=this._navigateType,this.openEditFundraiserAboutDialog=this._navigateType,this.openEditFundraiserAboutDescriptionDialog=this._navigateType,this.openEditFundraiserAppealDialog=this._navigateType,this.openEditFundraiserAppealDescriptionDialog=this._navigateType,this.openTranslateFundraiserAppealDialog=this._navigateType,this.openTranslateFundraiserAppealDescriptionDialog=this._navigateType,this.openCreateFundraiserAboutDialog=this._navigateType,this.isLoggedInUserAdmin=!1,this.showEdits=!1,this.isViewChanging=!1,this.isNewFundraiser=!1,this.showPublishBanner=!1,this.isDraftOrClosed=!1,this.isCurrentChildFundraiser=!1,this.isWholePreview=!1,this.localeSuffix="",this.daysLeft=0,this.isLoggedIn=!1,this.stripeStatus={},this.page=2,this.showStripePrompt=!1,this.isDescriptionLoaded=!1,this.previewNotificationEvent=!1,this.oppVerificationCheck=!1,this.isSave=!1,this.defaultProfileImage="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/whydonate_user/public",this.isUpdateLoaded=!1,this.isFullDescriptionLoaded=!1,this.mediaLength=0,this.locale=this.accountService.getLocaleId(),this.localeSuffix=this.fundraiserService.getLocaleSuffix(this.locale);let wo=this.router.getCurrentNavigation()?.previousNavigation?.finalUrl?.toString();wo?.includes("?")?(this.previoudRoutString=wo.split("?")[0],this.previousRoute=this.previoudRoutString):wo?.startsWith("/")&&(wo.includes("/dashboard")||wo.includes("/my-fundraisers"))?(this.previoudRoutString=wo.replace("/","").replace("-"," "),this.previousRoute=wo):(this.previoudRoutString="Dashboard",this.previousRoute="/dashboard"),this.searchInputForm=$.group({}),this.goToEditAmount={navigate:()=>{this.router.navigate([this.editDonationAmountURL,this.slug])}},this.openEditCreatedByDialog={navigate:()=>{this.dialog.open(Tt,{maxHeight:"98vh",width:"600px",data:{currentFundraiser:this.currentFundraiser}}).afterClosed().subscribe(Fi=>{Fi&&(this.currentFundraiser.social_media=Fi?.result)})}},this.openEditFundraiserCategoryDialog={navigate:()=>{this.dialog.open(Nt,{width:"600px",data:{currentFundraiser:this.currentFundraiser}}).afterClosed().subscribe(Fi=>{Fi&&(this.currentFundraiser.category=Fi.result,window.location.reload())})}},this.openEditFundraiserLocationDialog={navigate:()=>{this.dialog.open(re,{width:"600px",data:{currentFundraiser:this.currentFundraiser}}).afterClosed().subscribe(Fi=>{Fi&&(this.currentFundraiser.location_local=Fi.result,window.location.reload())})}},this.openEditFundraiserAboutDialog={navigate:()=>{this.dialog.open(ze,{width:"100vh",maxHeight:"98vh",data:{currentFundraiser:this.currentFundraiser}}).afterClosed().subscribe(Fi=>{if(Fi){let ea=this.currentFundraiser.slug;this.currentFundraiser.slug="",this.scrollUp(),this.fundraiserService.getFundraiserBySlugForAdmin(ea,this.locale).subscribe(Hi=>{"4005"==Hi?.errors?.code?this.router.navigate(["/fundraising/fundraiser-not-found"]):this.currentFundraiser=this.fundraiserService.filterFundraiserObj(Hi.data.result)})}})}},this.openEditFundraiserAboutDescriptionDialog={navigate:()=>{this.fundraiserService.getFundraiserDescription(this.slug,this.locale,!1).subscribe(Bn=>{const Fi=this.processDescriptionContentObject(Bn?.data?.result);this.dialog.open(Jt,{maxHeight:"98vh",data:{currentFundraiser:Fi,currentFundraiserImage:this.currentFundraiser}}).afterClosed().subscribe(Hi=>{if(Hi){this.isDescriptionLoaded=!1;let ys=this.currentFundraiser.slug;this.currentFundraiser.slug="",this.scrollUp(),this.fundraiserService.getFundraiserBySlugForAdmin(ys,this.locale).subscribe(yo=>{"4005"==yo?.errors?.code?this.router.navigate(["/fundraising/fundraiser-not-found"]):this.currentFundraiser=this.fundraiserService.filterFundraiserObj(yo.data.result)})}})})}},this.openTranslateFundraiserAboutDialog={navigate:()=>{this.dialog.open($t,{width:"100vh",maxHeight:"98vh",data:{currentFundraiser:this.currentFundraiser}}).afterClosed().subscribe(Fi=>{if(Fi){let ea=this.currentFundraiser.slug;this.currentFundraiser.slug="",this.scrollUp(),this.fundraiserService.getFundraiserBySlugForAdmin(ea,this.locale).subscribe(Hi=>{"4005"==Hi?.errors?.code?this.router.navigate(["/fundraising/fundraiser-not-found"]):this.currentFundraiser=this.fundraiserService.filterFundraiserObj(Hi.data.result)})}})}},this.openTranslateFundraiserAboutDescriptionDialog={navigate:()=>{this.fundraiserService.getFundraiserDescription(this.slug,this.locale,!1).subscribe(Bn=>{const Fi=this.processDescriptionContentObject(Bn?.data?.result),ea=this.dialog.open(pr,{maxHeight:"98vh",data:{currentFundraiser:Fi,currentFundraiserImage:this.currentFundraiser}});ea.componentInstance.refreshComponentEvent.subscribe(()=>{this.fundraiserService.getFundraiserDescription(this.slug,this.locale).subscribe(Hi=>{this.fundraiserDescriptionData=this.processDescriptionContentObject(Hi?.data?.result),this.fundraiserDescriptionDataParagraph=Hi?.data?.result?.content,this.isDescriptionLoaded=!0})}),ea.afterClosed().subscribe(Hi=>{if(Hi){let ys=this.currentFundraiser.slug;this.currentFundraiser.slug="",this.scrollUp(),this.fundraiserService.getFundraiserBySlugForAdmin(ys,this.locale).subscribe(yo=>{"4005"==yo?.errors?.code?this.router.navigate(["/fundraising/fundraiser-not-found"]):this.currentFundraiser=this.fundraiserService.filterFundraiserObj(yo.data.result)})}})})}},this.openTranslateFundraiserAppealDialog={navigate:()=>{this.dialog.open(vt,{width:"100vh",maxHeight:"98vh",data:{currentFundraiser:this.currentFundraiser}}).afterClosed().subscribe(Fi=>{if(Fi){let ea=this.currentFundraiser.slug;this.currentFundraiser.slug="",this.scrollUp(),this.fundraiserService.getFundraiserBySlugForAdmin(ea,this.locale).subscribe(Hi=>{"4005"==Hi?.errors?.code?this.router.navigate(["/fundraising/fundraiser-not-found"]):this.currentFundraiser=this.fundraiserService.filterFundraiserObj(Hi.data.result)})}})}},this.openEditFundraiserAppealDialog={navigate:()=>{this.dialog.open(Se,{width:"100vh",maxHeight:"98vh",data:{currentFundraiser:this.currentFundraiser}}).afterClosed().subscribe(Fi=>{if(Fi){let ea=this.currentFundraiser.slug;this.currentFundraiser.slug="",this.scrollUp(),this.fundraiserService.getFundraiserBySlugForAdmin(ea,this.locale).subscribe(Hi=>{"4005"==Hi?.errors?.code?this.router.navigate(["/fundraising/fundraiser-not-found"]):this.currentFundraiser=this.fundraiserService.filterFundraiserObj(Hi.data.result)})}})}},this.openEditFundraiserAppealDescriptionDialog={navigate:()=>{this.dialog.open(Cn,{width:"100vh",maxHeight:"98vh",data:{currentFundraiser:this.fundraiserDescriptionData,currentFundraiserImage:this.currentFundraiser}}).afterClosed().subscribe(Fi=>{if(Fi){let ea=this.currentFundraiser.slug;this.currentFundraiser.slug="",this.scrollUp(),this.fundraiserService.getFundraiserBySlugForAdmin(ea,this.locale).subscribe(Hi=>{"4005"==Hi?.errors?.code?this.router.navigate(["/fundraising/fundraiser-not-found"]):this.currentFundraiser=this.fundraiserService.filterFundraiserObj(Hi.data.result)})}})}},this.openTranslateFundraiserAppealDescriptionDialog={navigate:()=>{const Bn=this.dialog.open(wt,{maxHeight:"98vh",data:{currentFundraiser:this.fundraiserDescriptionData,currentFundraiserImage:this.currentFundraiser}});Bn.componentInstance.refreshComponentEvent.subscribe(()=>{this.fundraiserService.getFundraiserDescription(this.slug,this.locale).subscribe(Fi=>{this.fundraiserDescriptionData=this.processDescriptionContentObject(Fi?.data?.result),this.fundraiserDescriptionDataParagraph=Fi?.data?.result?.content,this.isDescriptionLoaded=!0})}),Bn.afterClosed().subscribe(Fi=>{if(Fi){let ea=this.currentFundraiser.slug;this.currentFundraiser.slug="",this.scrollUp(),this.fundraiserService.getFundraiserBySlugForAdmin(ea,this.locale).subscribe(Hi=>{"4005"==Hi?.errors?.code?this.router.navigate(["/fundraising/fundraiser-not-found"]):this.currentFundraiser=this.fundraiserService.filterFundraiserObj(Hi.data.result)})}})}},this.openCreateFundraiserAboutDialog={navigate:()=>{this.dialog.open(j,{data:{currentFundraiser:this.currentFundraiser}}).afterClosed().subscribe(Fi=>{if(Fi){let ea=this.currentFundraiser.slug;this.currentFundraiser.slug="",this.scrollUp(),this.fundraiserService.getFundraiserBySlugForAdmin(ea,this.locale).subscribe(Hi=>{"4005"==Hi?.errors?.code?this.router.navigate(["/fundraising/fundraiser-not-found"]):(this.currentFundraiser=this.fundraiserService.filterFundraiserObj(Hi.data.result),this.isNewFundraiser=!1)},Hi=>{this.notificationService.openNotification("Prikupljanje sredstava nije uspjelo.","","error")})}})}}}onUpdateDonorData(){this.fundraiserService.getDonorShort(this.slug,this.locale).subscribe(g=>{console.log("Donor data parent",g),g&&(this.donorShortData=g,this.donarDataParent=Object.keys(g?.data?.result?.result)?.length)})}ngOnDestroy(){this._unsubscribeAll.complete()}ngAfterViewInit(){this.searchInputForm?.controls?.searchCtrl.valueChanges.pipe((0,c.D)(()=>(0,l.F)(this.debounceDelay)),(0,E.x)((g,$)=>g==$)).subscribe(g=>{this.connectedFundraisersData=this.filterConnectedFundraisersData(g),this.connectedFundraisersCount=this.connectedFundraisersData?.length||0})}extractDomainFromUrl(g){return g.replace(/^(https?:\/\/)?(www\d?\.)?/,"").replace(/\/$/,"").split("/")[0]}isCustomDomain(g){return!nr.N.OFFICIAL_DOMAINS.includes(g)}getCustomDomainData(g){var $=this;return(0,t.Z)(function*(){let st="";try{yield $.customDomainService.getCustomDomainData(g).then(Bt=>{st=Bt?.data?.fundraiser_data?.fudraiserDetails?.slug}).catch(Bt=>{console.error(Bt)})}catch(Bt){console.error("Error fetching custom domain data:",Bt)}return st})()}extractAfterFundraising(g){if("string"!=typeof g||""===g.trim())throw new Error("Invalid input: The input must be a non-empty string.");const $=g.indexOf("fundraising/");if(-1===$)throw new Error('Error: The word "fundraising" was not found in the input string.');const st=g.slice($+12);if(""===st.trim())throw new Error('Error: No content found after the word "fundraising".');return st}ngOnInit(){var g=this;return(0,t.Z)(function*(){g.isDescriptionLoaded=!1,g.isUpdateLoaded=!1,"firstFundraiser"==g.fundraiserService.getParentFundraiserCount()&&window.location.reload(),g.accountService.getLoginInformation().subscribe(Bt=>{1==Bt?(g.isLoggedIn=!0,g.user=localStorage.getItem("user")):g.isLoggedIn=!1}),1==g.isLoggedIn&&g.accountService.checkHeaders()&&g.profileService.getProfile().pipe((0,m.R)(g._unsubscribeAll)).subscribe(Bt=>{g.userProfile=Bt,g._customBrandingService.setIsReceived(g.userProfile?.data?.profile?.is_receiver)}),g.router.url.includes("?")?g.slug=g.router.url.split("?")[0].substring(13):g.isCustomDomain(g.extractDomainFromUrl(window.location.href))?(g.customDomainService.setIsCustomDomainValue(!0),g.slug=g.router.url.includes("fundraising")?g.extractAfterFundraising(g.router.url):yield g.getCustomDomainData(g.extractDomainFromUrl(window.location.href))):g.slug=g.router.url.substring(13),g.fundraiserService.setCurrentFundraiserSlug(g.slug),g.router.routeReuseStrategy.shouldReuseRoute=()=>!1,g.searchInputForm.setControl("searchCtrl",new e.p4),g.fundraiserService.getFundraiserDescription(g.slug,g.locale,!0).subscribe(Bt=>{g.fundraiserDescriptionData=g.processDescriptionContentObject(Bt?.data?.result),g.fundraiserDescriptionData&&g.fundraiserDescriptionData?.parent_id?g.fundraiserDescriptionData?.parent?.content||(g.fundraiserNoDescription=!0):g.fundraiserDescriptionData?.content||(g.fundraiserNoDescription=!0),g.fundraiserDescriptionDataParagraph=Bt?.data?.result?.content,g.isDescriptionLoaded=!0});let st=g.isLoggedIn;g.onUpdateDonorData(),1==st?g.fundraiserService.getFundraiserBySlugForAdmin(g.slug,g.locale).subscribe(Bt=>{if("4005"==Bt?.errors?.code)g.router.navigate(["/fundraising/fundraiser-not-found"]);else if(JSON.parse(localStorage.getItem("user")||"{}"),"Error decoding signature."==Bt.details&&(g.notificationService.openNotification("Sesija je istekla, odjavljeni ste.","","error"),g.accountService.logout(),g.router.navigate(["/account"])),"4001"==Bt.errors.code)g.router.navigate(["/fundraising/fundraiser-not-found"]);else{if(g.isNewFundraiser=g.isLoggedInToNewFundraiser(Bt.data?.result),g.showPublishBanner=g.isShowPublishBanner(Bt.data?.result),g.currentFundraiser=g.isNewFundraiser?Bt.data?.result:g.fundraiserService.filterFundraiserObj(Bt.data?.result),null!=g.currentFundraiser?.parent&&Object.keys(g.currentFundraiser?.parent).length>0&&(g.currentFundraiser=g.fundraiserService.filterFundraiserObj(Bt.data?.result),g.isCurrentChildFundraiser=!0,localStorage.setItem("childFundraiser",JSON.stringify(g.isCurrentChildFundraiser)),g.setConnectedFundriserData()),g.setCustomBranding(g.currentFundraiser),g.accountService.checkHeaders()&&g.isLoggedInUserAdminOfCurrentFundraiser(),g.fundraiserCardData=g._fundraiserCardService.filterFundraiserCardDataList([g.currentFundraiser])[0]?.fundraiserCardData,g.fundraiserService.setCurrentFundraiser(g.currentFundraiser),g.fundraiserCurrency(g.fundraiserCardData),g.loadBackgroundInView(),g.fundraiserService.getUpdatesForAdmin(g.slug,g.locale,1).subscribe(Xr=>{g.fundraiserUpdatesData=g.processDescriptionContentObject(Xr.data),g.fundraiserUpdatesCount=Xr.data.totalDoc,g.fundraiserUpdatesTotalPages=Xr.data.totalPages,g.isUpdateLoaded=!0}),g.fundraiserService.getConnectedFundraisers(g.slug,1).subscribe(Xr=>{g.connectedFundraisersData=g.fundraiserService.getConnectedFundraisersObj(Xr.data),g.connectedFundraisersCount=Xr.data.count||0,g._connectedFundraisersData=g.connectedFundraisersData,g.isConnectedFundraiserCountLoading=!1}),g.currentFundraiser&&null!=g.currentFundraiser?.end_date&&null!=g.currentFundraiser?.end_date&&g.currentFundraiser?.end_date)if(g._fundraiserCardService?.isFundraiserEndDateUnlimited(g.currentFundraiser?.end_date)){let fn=new Date(g.currentFundraiser?.end_date);g.daysLeft=g.fundraiserService.getDateDiff(new Date,fn)}else g.daysLeft=-1;g.isNewFundraiser&&!g.isCurrentChildFundraiser&&g.openCreateFundraiserAboutDialog.navigate()}}):g.fundraiserService.getFundraiserBySlug(g.slug,g.locale).subscribe(Bt=>{if("4001"==Bt.errors.code&&g.router.navigate(["/fundraising/fundraiser-not-found"]),"4005"==Bt.errors.code)g.router.navigate(["/fundraising/fundraiser-not-found"]);else if(g.currentFundraiser=g.fundraiserService.filterFundraiserObj(Bt.data?.result),g.isDraftOrClosed=g.isFundraiserClosed(g.currentFundraiser),g.isFundraiserClosedNew(g.currentFundraiser)&&g.router.navigate(["/fundraising/fundraiser-is-draft"]),g.fundraiserCardData=g._fundraiserCardService.filterFundraiserCardDataList([g.currentFundraiser])[0]?.fundraiserCardData,g.setCustomBranding(g.currentFundraiser),g.fundraiserService.setCurrentFundraiser(g.currentFundraiser),null!=g.currentFundraiser?.parent&&Object.keys(g.currentFundraiser?.parent)?.length>0&&(g.isCurrentChildFundraiser=!0,g.setConnectedFundriserData()),g.loadBackgroundInView(),g.fundraiserService.getUpdates(g.slug,g.locale,1).subscribe(hr=>{g.fundraiserUpdatesData=g.processDescriptionContentObject(hr.data),g.fundraiserUpdatesCount=hr.data.totalDoc,g.fundraiserUpdatesTotalPages=hr.data.totalPages,g.isUpdateLoaded=!0}),g.fundraiserService.getConnectedFundraisers(g.slug,1).subscribe(hr=>{g.connectedFundraisersData=g.fundraiserService.getConnectedFundraisersObj(hr.data),g.connectedFundraisersCount=hr.data.count||0,g._connectedFundraisersData=g.connectedFundraisersData,g.isConnectedFundraiserCountLoading=!1}),g.currentFundraiser&&null!=g.currentFundraiser?.end_date&&null!=g.currentFundraiser?.end_date&&g.currentFundraiser?.end_date)if(g._fundraiserCardService?.isFundraiserEndDateUnlimited(g.currentFundraiser?.end_date)){let Xr=new Date(g.currentFundraiser?.end_date);g.daysLeft=g.fundraiserService.getDateDiff(new Date,Xr)}else g.daysLeft=-1}),g.accountService.checkHeaders()&&g._bankService.getStripeStatus().subscribe(Bt=>{g.stripeStatus=Bt?.data,g.chargesEnabled=g.stripeStatus?.charges_enabled,g.payoutEnabled=g.stripeStatus?.payout_enabled,g.detailsSubmitted=g.stripeStatus?.details_submitted,g._bankService.getPersonalVerification().subscribe(hr=>{"1005"==hr?.errors?.code&&(g.showStripePrompt=!0),g.showStripePrompt=(1!=g.chargesEnabled||1!=g.payoutEnabled||1!=g.detailsSubmitted)&&(0==g.chargesEnabled&&0==g.payoutEnabled&&0==g.detailsSubmitted||1!=g.chargesEnabled||1!=g.payoutEnabled||1!=g.detailsSubmitted)})})})()}getFundraiserFullDescription(g){this.isDescriptionLoaded=!1,this.fundraiserService.getFundraiserDescription(this.slug,this.locale,g).subscribe($=>{this.fundraiserDescriptionData=this.processDescriptionContentObject($?.data?.result),this.fundraiserDescriptionData?.parent_id?null===this.fundraiserDescriptionData?.parent?.content&&(this.fundraiserNoDescription=!0):null===this.fundraiserDescriptionData?.content&&(this.fundraiserNoDescription=!0),this.fundraiserDescriptionDataParagraph=$?.data?.result?.content,this.isDescriptionLoaded=!0,this.isFullDescriptionLoaded=!0},$=>{console.error("Error fetching fundraiser description:",$)})}handleRefreshEvent(){this.fundraiserService.getUpdates(this.slug,this.locale,1).subscribe(g=>{this.fundraiserUpdatesData=this.processDescriptionContentObject(g.data),this.fundraiserUpdatesCount=g.data.totalDoc,this.fundraiserUpdatesTotalPages=g.data.totalPages,this.isUpdateLoaded=!0})}routeToParentFundraiser(g=this.slug){this.router.navigate(["fundraising",g])}fundraiserCurrency(g){this.currencyData={currency:g?.currency,currency_code:g?.currency_code,currency_symbol:g?.currency_symbol}}routeToConnectFundraiser(){let g="fundraising/connect/"+this.slug;v.w.setPreviousPath(g),this.router.navigate([g])}routeToMarkFundraiserFraudulent(){let g="fundraising/mark-fundraiser-fraudulent/"+this.slug;v.w.setPreviousPath(g),this.router.navigate([g])}filterConnectedFundraisersData(g){return this._connectedFundraisersData.filter($=>!!$.fundraiserCardData.title.match(new RegExp(g,"i")))}viewMore(){this.isConnectedFundraiserCountLoading=!0,this.fundraiserService.getConnectedFundraisers(this.slug,this.page).subscribe(g=>{const $=this.fundraiserService.getConnectedFundraisersObj(g.data);this.connectedFundraisersData=[...this.connectedFundraisersData,...$],this.isConnectedFundraiserCountLoading=!1,this.page++})}loadBackgroundInView(){if(this.isCurrentChildFundraiser){if(""!==this.currentFundraiser?.background?.image||""!==this.currentFundraiser?.background?.video)return this.backgroundImage=this.currentFundraiser?.background?.image,this.backgroundVideo=this.currentFundraiser?.background?.video,void(this.youtubeIframe=this.checkVideoUrl(this.currentFundraiser?.background?.video));if(null!=this.currentFundraiser?.parent?.background)return this.backgroundImage=this.currentFundraiser?.parent?.background?.image,this.backgroundVideo=this.currentFundraiser?.parent?.background?.video,void(this.youtubeIframe=this.checkVideoUrl(this.currentFundraiser?.parent?.background?.video));if(null!=this.currentFundraiser?.root_fundraiser?.background)return this.backgroundImage=this.currentFundraiser?.root_fundraiser?.background?.image,this.backgroundVideo=this.currentFundraiser?.root_fundraiser?.background?.video,void(this.youtubeIframe=this.checkVideoUrl(this.currentFundraiser?.root_fundraiser?.background?.video))}else this.currentFundraiser?.background&&(this.backgroundVideo=this.currentFundraiser?.background?.video,this.backgroundImage=this.currentFundraiser?.background?.image,this.youtubeIframe=this.checkVideoUrl(this.currentFundraiser?.background?.video))}checkVideoUrl(g){return g?.match(/^(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/)(\d+)(?:\S+)?$/)?this.generateVimeoIframe(g):g?.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:embed\/|watch\?v=|v\/|shorts\/)|youtu\.be\/)([\w\-]+)(?:\S+)?$/)?this.generateYouTubeIframe(g):"unknown"}generateVimeoIframe(g){const $=this.getVideoIdVimeo(g);return this.sanitizer.bypassSecurityTrustHtml(`\n\t\t<style>\n\t\t.embed-container {\n\t\t\t--video--width: 1920;\n\t\t\t--video--height: 1080;\n\n\t\t\tposition: relative;\n\t\t\tpadding-bottom: calc(var(--video--height) / var(--video--width) * 100%); /* 41.66666667% */\n\t\t\toverflow: hidden;\n\t\t\tmax-width: 100%;\n\t\t\tmax-height: 100%;\n\t\t\tbackground: black;\n\t\t}\n\n\t\t.embed-container iframe,\n\t\t.embed-container object,\n\t\t.embed-container embed {\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t\t</style>\n\t\t<div class='embed-container'>\n\t\t\t<iframe\n\t\t\t\twidth="560"\n\t\t\t\theight="315"\n\t\t\t\tsrc="https://player.vimeo.com/video/${$}"\n\n\t\t\t\tsrcdoc="<style>*{padding:0;margin:0;overflow:hidden}html,body{height:100%}img,span{position:absolute;width:100%;top:0;bottom:0;margin:auto}span{height:1.5em;text-align:center;font:48px/1.5 sans-serif;color:white;text-shadow:0 0 0.5em black}</style><a href=https://player.vimeo.com/video/${$}?autoplay=1&muted=1><img src=https://vumbnail.com/${$}.jpg><span>\u25b6</span></a>"\n\t\t\t\tframeborder="0"\n\t\t\t\tallow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"\n\t\t\t\tallowfullscreen\n\t\t\t></iframe>\n\t\t</div>\n\t\t`)}generateYouTubeIframe(g){const st=`\n\t\t<iframe\n\t\t\tloading="lazy"\n\t\t\tsrc="https://www.youtube-nocookie.com/embed/${this.getVideoIdYoutube(g)}"\n\t\t\twidth="100%"\n\t\t\theight="100%"\n\t\t\tframeborder="0"\n\t\t\tallow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"\n\t\t\tallowfullscreen\n\t\t\ttitle="The Youtube Video"\n\t\t></iframe>`;return this.sanitizer.bypassSecurityTrustHtml(st)}getVideoIdYoutube(g){const st=g?.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:embed\/|watch\?v=|v\/|shorts\/)|youtu\.be\/)([\w\-]+)(?:\S+)?$/);return st&&st[1]?st[1]:""}getVideoIdVimeo(g){const st=g?.match(/^(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/)(\d+)(?:\S+)?$/);return st&&st[1]?st[1]:""}isLoggedInUserAdminOfCurrentFundraiser(){try{this.fundraiserService.isLoggedInUserAdminOfFundraiser(this.currentFundraiser.id).subscribe(g=>{if(200==g.status&&g.data.is_fundraiser_owner){if(this.isLoggedInUserAdmin=!0,this.showEdits=!0,this.isDraftOrClosed=this.isFundraiserClosedNew(this.currentFundraiser),this.isCurrentChildFundraiser&&this.currentFundraiser?.parent?.profile?.name!=this.currentFundraiser?.profile?.name){let $=localStorage.getItem("user")||"{}";JSON.parse($)?.id==this.currentFundraiser?.profile?.user_id?this.notificationService.openNotification("Ovaj prikuplja\u010D sredstava je povezan i stoga ga mo\u017Ee ure\u0111ivati vlasnik gornjeg prikuplja\u010Da sredstava.","Got it","success"):this.notificationService.openNotification("Ovaj fundraiser je kreirao netko drugi Ako je potrebno, molimo obavijestite organizatora fundraisera o promjenama koje biste mogli napraviti.","Got it","success")}}else 1==this.currentFundraiser.is_draft&&this.router.navigate(["/fundraising/fundraiser-is-draft"])})}catch{this.isLoggedInUserAdmin=!1}}isLoggedInToNewFundraiser(g){let $=1==g?.is_draft,st=""==g?.content?.trim();return!(!$||!st)}isShowPublishBanner(g){return 1==g?.is_draft}isFundraiserClosed(g){return this.fundraiserService.isFundraiserClosed(g)}isFundraiserClosedNew(g){return this.fundraiserService.isFundraiserClosedNew(g)}openDeleteFundraiserDialog(){this.dialog.open(De,{data:{slug:this.currentFundraiser.slug}}).afterClosed().subscribe($=>{if($){let st=(0,r.H)(1e3).subscribe(Bt=>{this.router.navigate(["/dashboard"]),st.unsubscribe()})}})}openCreateFundraiserAboutDialog2(){this.dialog.open(j,{data:{currentFundraiser:this.currentFundraiser}}).afterClosed().subscribe($=>{if($){let st=this.currentFundraiser.slug;this.currentFundraiser.slug="",this.scrollUp(),this.fundraiserService.getFundraiserBySlugForAdmin(st,this.locale).subscribe(Bt=>{this.currentFundraiser=this.fundraiserService.filterFundraiserObj(Bt.data),this.isNewFundraiser=!1},Bt=>{this.notificationService.openNotification("Prikupljanje sredstava nije uspjelo.","","error")})}})}showPublicView(){if(this.isLoggedInUserAdmin){this.showEdits=!1,this.isViewChanging=!0,this.hideToggleSwitch=!0;let g=(0,r.H)(1e3).subscribe($=>{this.isViewChanging=!1,g.unsubscribe()})}}hidePublicView(){if(this.isLoggedInUserAdmin){this.showEdits=!0,this.isViewChanging=!0,window.location.reload();let g=(0,r.H)(500).subscribe($=>{this.isViewChanging=!1,g.unsubscribe()})}}logNotificationEvent(g){if(this.previewNotificationEvent=g,this.isLoggedInUserAdmin&&1==this.previewNotificationEvent){this.showEdits=!1,this.isViewChanging=!0,this.hideToggleSwitch=!0,this.isWholePreview=!0;let $=(0,r.H)(1e3).subscribe(st=>{this.isViewChanging=!1,$.unsubscribe()})}}goToEditAmount2(){this.editDonationAmountURL=this.editDonationAmountURL+this.slug,this.router.navigate([this.editDonationAmountURL,this.slug])}fallbackToDefaultImage(){this.backgroundImage=this.defaultBackgroundImage}publishFundraiserFunction(g){1==g&&this.emitPublishClick()}emitPublishClick(){this.isSave=!0,this.isCurrentChildFundraiser?this.publishFundraiser():this._bankService.getStripeStatus().subscribe(g=>{this.stripeStatus=g?.data,this.chargesEnabled=this.stripeStatus?.charges_enabled,this.payoutEnabled=this.stripeStatus?.payout_enabled,this.detailsSubmitted=this.stripeStatus?.details_submitted,this._bankService.getPersonalVerification().subscribe($=>{"1005"==$?.errors?.code&&(this.showStripePrompt=!0),this.showStripePrompt=(1!=this.chargesEnabled||1!=this.payoutEnabled||1!=this.detailsSubmitted)&&(0==this.chargesEnabled&&0==this.payoutEnabled&&0==this.detailsSubmitted||1!=this.chargesEnabled||1!=this.payoutEnabled||1!=this.detailsSubmitted),0==this.showStripePrompt&&this.publishFundraiser()})})}publishFundraiser(){this.fundraiserService.publishFundraiser({slug:this.currentFundraiser?.slug}).subscribe($=>{this.notificationService.openNotification("Uspje\u0161no je objavljen prikuplja\u010D sredstava.","","success"),window.location.reload(),this.isSave=!1},$=>{this.notificationService.openNotification("Do\u0161lo je do pogre\u0161ke prilikom objavljivanja prikupljanja sredstava.","","error"),this.isSave=!1})}setCustomBranding(g){this._customBrandingService.setProfileObj=g?.profile;let $=this._customBrandingService.getBrandingObj;$.secondaryColor==this.whydonateSecondaryColor&&(this.isWhydonateSecondatColor=!0),this.cardShadow=this._customBrandingService.calculateCardShadow($.cardShadow),this.fontFamily=$.customFont,this._themeService.setTheme($?.primaryColor,$?.secondaryColor,$?.customFont)}setConnectedFundriserData(){this.currentFundraiser&&this.currentFundraiser?.appeal_image_list&&(this.appealMediaList=this.mediaService.getSliderMediaList(this.currentFundraiser?.appeal_image_list),this.appealMediaList&&null!=this.appealMediaList&&null!=this.appealMediaList&&(this.mediaLength=this.currentFundraiser?.appeal_image_list.length))}scrollUp(){window.scroll({top:0,left:0,behavior:"smooth"})}handleImageError(g){g.target.src=this.defaultProfileImage}loadFullUpdateEvent(g){this.isUpdateLoaded=!1,this.fundraiserService.getUpdates(this.slug,this.locale,1,g).subscribe($=>{this.fundraiserUpdatesData=this.processDescriptionContentObject($.data),this.fundraiserUpdatesCount=$.data.totalDoc,this.fundraiserUpdatesTotalPages=$.data.totalPages,this.isUpdateLoaded=!0})}processDescriptionContentObject(g){if(!g)return g;const $=s(89410),st=Bt=>{if(!Bt)return"";const hr=Bt.replace(/<ul>(.*?)<\/ul>/gs,(Xr,fn)=>fn.replace(/<li>(.*?)<\/li>/g,"&#8226;&nbsp;$1<br>")).replace(/<ol>(.*?)<\/ol>/gs,(Xr,fn)=>{let Kn=1;return fn.replace(/<li>(.*?)<\/li>/g,(An,Ki)=>`${Kn++}.&nbsp;${Ki}<br>`)}).replace(/<li>(.*?)<\/li>/g,"&#8226;&nbsp;$1<br>");return $.sanitize(hr)};if(Array.isArray(g))return g.map(Bt=>this.processDescriptionContentObject(Bt));if("object"==typeof g){const Bt={};for(const hr of Object.keys(g)){const Xr=g[hr];Bt[hr]="string"==typeof Xr?st(Xr):"object"==typeof Xr&&null!==Xr?this.processDescriptionContentObject(Xr):Xr}return Bt}return g}}return Ze.\u0275fac=function(g){return new(g||Ze)(i.Y36(qt.F0),i.Y36(e.QS),i.Y36(I.R),i.Y36(q.g),i.Y36(P.y),i.Y36(tn.C),i.Y36(rn.a),i.Y36(vn.f),i.Y36(Gn.u0),i.Y36(qt.gz),i.Y36(D.B),i.Y36(C.uw),i.Y36(Yn.y),i.Y36(ue.H7),i.Y36(Dn.H),i.Y36(Ti.c))},Ze.\u0275cmp=i.Xpm({type:Ze,selectors:[["app-fundraiser"]],decls:39,vars:4,consts:function(){let Wt,g,$,st,Bt,hr,Xr,fn,Kn,An,Ki,Xa,fi,Ko,uo,No,es,wo,Bn,Fi,ea,Hi,ys,yo,vl,nl,Sa,yl,_l,Sl,Ls,Pe,rr;return Wt="Izvje\u0161taj Prikupljanje Sredstava",g="Izvje\u0161taj Prikupljanje Sredstava",$="Ovo je javni prikaz va\u0161e stranice za prikupljanje sredstava.",st="Blizu",Bt="Ovo je podr\u017Eavaju\u0107e prikupljanje sredstava Prilozi upla\u0107eni na ovo prikupljanje sredstava \u0107e biti usmjereni prema glavnom prikuplja\u010Du sredstava, koji ima potpunu ovlast za brisanje ili izmjenu ove stranice.",hr="Kontakt podaci:",Xr="Nije dostupno",fn="Kontakt podaci:",Kn="Kontakt podaci:",An="Ime Korisnika:",Ki="Povezano s:",Xa="Motivacija",fi="Prikupljanje sredstava zahtjeva se prevodi, to mo\u017Ee trajati nekoliko minuta...",Ko="Pro\u010Ditaj vi\u0161e",uo="Opis",No="Povezani Sakuplja\u010Di Sredstava",es="Uredite i prevedite prikupljanje sredstava",wo="Nema dodanog opisa do sada",Bn="Dodajte pri\u010Du o svom prikupljanju sredstava.",Fi="Pri\u010Da prikupljanja sredstava je trenutno u tijeku.",ea="Dodaj Opis",Hi="Opis prikupljanja sredstava je u tijeku, to mo\u017Ee potrajati nekoliko minuta...",ys="Gotovo ste Zavr\u0161ni korak je",yo="Dodaj opis",vl="Pretra\u017Ei Prikuplja\u010Da",nl="Povezivanje Sakuplja\u010D Sredstava",Sa="Prika\u017Ei Vi\u0161e",yl="Jo\u0161 Nema Povezanih prikuplja\u010Da Sredstava",_l="Zapo\u010Dnite povezani prikuplja\u010D sredstava, i sve donacije \u0107e biti dodane na prikuplja\u010D sredstava koji trenutno gledate.",Sl="Povezivanje Sakuplja\u010D Sredstava",Ls="A\u017Euriranje prikupljanja sredstava je u tijeku, ovo mo\u017Ee potrajati nekoliko minuta...",Pe="Ovo je javni prikaz va\u0161e stranice za prikupljanje sredstava.",rr="Blizu",[[4,"ngIf"],[3,"ngIf","ngIfElse"],[3,"ngTemplateOutlet",4,"ngIf"],["tabletView",""],["fundraiserPublishNotification",""],["fundraiserActionRibbon",""],["parentFundraiserInfo",""],["fundraiserBackground",""],["fundraiserTitle",""],["fundraiserOwnerInfo",""],["appealByChildFundraiser",""],["aboutAndConnectTab",""],["fundraiserUpdates",""],["fundraiserNotification",""],["fundraiserDonation",""],["fundraiserDonationSticky",""],["donationList",""],["supportFundraiser",""],["editActionIcon",""],["whydonateLoader",""],["spinner",""],[1,"branding","p-m"],[3,"ngTemplateOutlet"],[3,"fxHide"],["fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign","center","fxLayoutGap","1.5%",1,"mat-typography","p-b-s"],["fxFlex","70%"],["fxFlex","30%"],["mat-stroked-button","","color","accent",3,"click"],Wt,[1,"mat-typography",3,"fxHide"],["fxLayout","row"],["fxFlex","50%"],["fxLayout","row","fxLayoutGap","16px",1,"p-b-s"],["height","16px","src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/flagAction/public"],g,[3,"ngIf"],[3,"slug","isCurrentChildFundraiser","publish"],["fxLayout","row","fxLayoutAlign","space-between center","class","grey-bg p-m",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"grey-bg","p-m"],$,["mat-flat-button","","color","warn",3,"click"],st,["fxLayoutAlign","center center",1,"m-t-m"],["fxLayoutAlign","center center",1,"round-border","grey-bg","p-xxs","p-l-xs","p-r-xs"],[1,"whydonate-light","l-icon","p-xs"],["height","24px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fundraiser-support/public"],[1,"mat-caption"],Bt,["fundraiserBackgroundEdit",""],["fxLayoutAlign","end end"],["class","w-100 aspect-ratio",3,"innerHTML",4,"ngIf"],["class","w-100 aspect-ratio",3,"src","error",4,"ngIf"],[1,"w-100","aspect-ratio",3,"innerHTML"],[1,"w-100","aspect-ratio",3,"src","error"],[3,"imagePath","videoPath","backgroundImageId","fundraiserId","slug"],["fundraiserTitleEdit",""],[1,"p-t-s","mat-title"],["fxLayout","row","fxLayoutGap","20px","fxLayoutGap.xs","10px","fxLayoutAlign","space-between","ngClass","isWhydonateSecondatColor ? whydonate-light : branding-light","fxLayoutAlign.xs","start","fxLayout.xs","column"],["fxLayout","row","fxLayout.xs","column","fxLayoutGap.xs","10px","fxLayoutAlign","center center","fxLayoutAlign.xs","start start"],["fxLayout","row","fxLayoutAlign","center center"],[3,"category"],["fxLayout","row","fxFlexOffset","32px","fxFlexOffset.xs","0px","fxLayoutAlign","center center",4,"ngIf"],["fxHide","","fxLayout","row","fxLayoutGap","0","fxLayoutAlign","center center","fxLayoutAlign.xs","start center",4,"ngIf"],["fxLayout","row","fxFlexOffset","32px","fxFlexOffset.xs","0px","fxLayoutAlign","center center"],[3,"currentFundraiser"],["fxHide","","fxLayout","row","fxLayoutGap","0","fxLayoutAlign","center center","fxLayoutAlign.xs","start center"],hr,["ngClass","p-0","fxLayout","row","fxLayoutAlign","center center",3,"isLoggedIn","socialMedia",4,"ngIf"],["fxFlexOffset","6px"],Xr,["ngClass","p-0","fxLayout","row","fxLayoutAlign","center center",3,"isLoggedIn","socialMedia"],fn,["fxLayout","row","fxLayoutAlign","start center","fxLayoutAlign.xs","start start"],[1,"mat-title","p-t-s"],["fxLayout","row","fxLayoutAlign","center end",1,"mat-title","p-t-s"],["ChildFundraiserEditAction",""],["fxLayout","row wrap","fxLayoutGap","15px","fxLayoutGap.xs","10px","fxLayoutAlign","space-between","fxLayoutAlign.xs","start","fxLayout.xs","column",1,"whydonate-light"],["fxLayout","row","fxLayoutAlign","space-between","fxLayout.xs","column","fxLayoutGap","5px","fxLayoutGap.xs","10px","fxLayoutAlign","center center","fxLayoutAlign.xs","start start"],["id","editFundraiserCategoryButton",3,"matTooltip"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center","fxFlexOffset","32px","fxFlexOffset.xs","0px",4,"ngIf"],["fxLayout","row","fxLayoutGap","0","fxLayoutAlign","center center","fxLayoutAlign.xs","start center"],Kn,["id","editFundraiserContactButton",3,"matTooltip"],["id","editFundraiserAboutButton",3,"matTooltip"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["id","editFundraiserTitleTranslate",3,"matTooltip"],["fxLayout","row","fxLayoutAlign","center center","fxFlexOffset","32px","fxFlexOffset.xs","0px"],["id","editFundraiserLocationButton",3,"matTooltip"],["threeColumnsLayout",""],["fxLayout","row","fxLayoutGap.xs","15px","fxLayout.xs","column",1,"m-t-m","m-b-m",3,"fxLayoutAlign","fxLayoutGap"],["fxLayoutAlign","space-between","fxFlex","30%"],[3,"bankAccount"],["fxLayoutAlign","start","fxFlex","30%",4,"ngIf"],["fxLayoutAlign","start","fxFlex","30%"],["fxLayout","row","fxFlex",""],["height","40","width","40","src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/shield/public"],["fxLayout","column","fxFlex","90%",1,"m-l-s"],An,["fxLayout","row","fxLayoutAlign","space-between","fxLayout.xs","column","fxLayoutGap.xs","30px",1,"p-t-m","p-b-m"],["fxLayout","row","fxFlex.xs","",1,"clickable",3,"click"],[1,"profile-image",3,"src","error"],["fxLayout","column",1,"m-l-s"],Ki,[1,"grey-bg","m-t-m"],["fxLayout","row","fxLayoutAlign","space-between center"],["fxFlex","","ngClass","p-m"],Xa,["fxLayout","row wrap",4,"ngIf"],["format","html",3,"content","preserveWhitespace","sanitize"],["ngClass","p-b-m"],["class","read-more cursor-pointer",3,"click",4,"ngIf"],["class","m-l-s p-b-s",4,"ngIf"],["fxLayout","row wrap"],["id","editFundraiserDescriptionButton",3,"matTooltip"],["id","editFundraiserDescriptionTranslateButton",3,"matTooltip"],["fxLayout","column","fxLayoutAlign","center center",1,"p-xl","mat-title"],[1,"dark-grey-texts","mat-body-2"],fi,[1,"read-more","cursor-pointer",3,"click"],Ko,[1,"m-l-s","p-b-s"],[3,"images","imageSize","manageImageRatio","showArrow"],["nav",""],["dynamicHeight",""],["id","editFundraiser_about_template"],["matTabLabel","","class","p-t-l"],["matTabContent",""],[1,"p-s"],["aboutTabContent",""],["aboutTabMedia",""],["connectedTabContent",""],uo,["id","editFundraiserConnectedFundraisersHeading"],No,["fxLayout","row","fxLayoutAlign","end center",4,"ngIf"],[3,"currentFundraiser","isChildFundraiser","fundraiserDescriptionData","isLoading","readMoreClicked",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start start",4,"ngIf"],["ngClass","p-t-l"],["fxLayout","row","fxLayoutAlign","end center"],["ngClass","m-r-xs m-t-xs"],es,["fxLayout","column","fxLayoutAlign","center center",1,"grey-bg",3,"ngClass"],["class","mat-card-title center",4,"ngIf"],["class","center",4,"ngIf"],["mat-stroked-button","","color","accent","id","addFundraiserDescriptionButton",3,"disabled","click",4,"ngIf"],[1,"mat-card-title","center"],wo,[1,"center"],Bn,["src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/poetry/public"],Fi,["mat-stroked-button","","color","accent","id","addFundraiserDescriptionButton",3,"disabled","click"],ea,Hi,[3,"currentFundraiser","isChildFundraiser","fundraiserDescriptionData","isLoading","readMoreClicked"],["fxLayout","column","fxLayoutAlign","start start"],ys,["appearance","outline",1,"full-width",3,"click"],["required","","matInput","","placeholder",yo,3,"keyup"],["zeroDay",""],["fxLayout","column"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","space-between baseline","fxFlex","100%","fxLayoutGap","5%","fxLayoutGap.sm","3%","fxLayoutGap.lt-sm","0%"],["fxFlex","70%","fxLayout","column"],[3,"formGroup"],["appearance","outline","color","accent",1,"w-100"],vl,["matInput","","type","text","formControlName","searchCtrl",3,"placeholder"],["matSuffix","","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/search/public"],["fxFlex","25%","fxFlex.sm","30%","fxLayout","column"],["mat-stroked-button","","color","accent",3,"disabled","click"],nl,["fxLayout","row wrap","fxLayoutAlign","center start","class","fundraiser-card",4,"ngIf"],["fxLayoutAlign","center center"],["id","view-more-button-connected-fundraiser","name","view-more-button","mat-flat-button","","color","accent",3,"disabled","click"],Sa,["fxLayout","row wrap","fxLayoutAlign","center start",1,"fundraiser-card"],[4,"ngFor","ngForOf"],[3,"slug","fundraiserCardData"],["color","primary","diameter","20"],["fxLayout","column","fxLayoutAlign","center center",1,"grey-bg","p-xl"],[1,"mat-title","center"],yl,["fxFlex.gt-xs","300px",1,"center"],_l,["mat-stroked-button","","id","editFundraiserConnectFundraiserButton","color","accent",3,"disabled","matTooltip","matTooltipDisabled","click"],Sl,["fundraiserUpdatesEdit",""],["fxLayout","column","fxLayoutAlign","center center",1,"p-t-xxl","p-l","mat-title"],Ls,[3,"fundraiserUpdates","cardShadow","slug","currentFundraiser","count","totalPages","loadFullUpdateEvent",4,"ngIf"],[3,"fundraiserUpdates","cardShadow","slug","currentFundraiser","count","totalPages","loadFullUpdateEvent"],[3,"slug","fundraiserLocalId","currentFundraiser","fundraiserUpdates","count","totalPages","refreshComponentEvent"],["previewModeRibbon",""],["ngClass","m-b-m"],[3,"currentFundraiserID","currencyData","showPublishBanner","isDraft","currentSlug","showStripePrompt","isConnected","showPublicNotification","publishNotification"],Pe,rr,["id","fullDonationCard"],[3,"fundraiserCardData","targetAmount","raisedAmount","selectedFundraiser","showEdits","isDraftOrClosed","isNewFundraiser","daysLeft","isLoggedIn","isFindable","isOpen","isDraft"],["ngClass.xs","sticky","fxHide.lg","true","fxHide.lt-lg","true","fxHide.gt-lg","true","fxHide.sm","false","fxHide.lt-sm","false"],[3,"fundraiserCardData","targetAmount","raisedAmount","selectedFundraiser","isDraftOrClosed","isLoggedIn","isOpen"],["class","m-b-xl",3,"class",4,"ngIf"],[3,"class",4,"ngIf"],[1,"m-b-xl"],[3,"isLoggedInUserAdmin","isLoggedIn","currentFundraiser","isDraftOrClosed","hideToggleSwitch","donationReceivedBoolean","isWholePreview"],[3,"currentFundraiserID","isLoggedInUserAdmin","isLoggedIn","donationReceivedBoolean","hideToggleSwitch","donorShortData","currentFundraiser","isDraftOrClosed","isWholePreview","updateDonorData"],[3,"slug","isAllowChild","isLoggedInUserAdmin","hideToggleSwitch"],["editIcon",""],["mat-icon-button","",3,"disabled","click"],[1,"material-icons-outlined"]]},template:function(g,$){if(1&g&&(i.YNc(0,Ra,1,0,"app-stripe-notification-banner",0),i.YNc(1,Oo,5,5,"ng-template",1),i.YNc(2,Qn,1,1,"ng-container",2),i.YNc(3,rt,24,10,"ng-template",null,3,i.W1O),i.YNc(5,Ue,1,1,"ng-template",null,4,i.W1O),i.YNc(7,Yr,1,1,"ng-template",null,5,i.W1O),i.YNc(9,Un,6,0,"ng-template",null,6,i.W1O),i.YNc(11,Jo,3,2,"ng-template",null,7,i.W1O),i.YNc(13,vi,3,2,"ng-template",null,8,i.W1O),i.YNc(15,ja,3,2,"ng-template",null,9,i.W1O),i.YNc(17,fs,11,7,"ng-template",null,10,i.W1O),i.YNc(19,Ir,13,0,"ng-template",null,11,i.W1O),i.YNc(21,hi,4,3,"ng-template",null,12,i.W1O),i.YNc(23,Ea,3,1,"ng-template",null,13,i.W1O),i.YNc(25,da,2,15,"ng-template",null,14,i.W1O),i.YNc(27,Za,3,10,"ng-template",null,15,i.W1O),i.YNc(29,ki,2,2,"ng-template",null,16,i.W1O),i.YNc(31,Qo,1,1,"ng-template",null,17,i.W1O),i.YNc(33,Go,3,2,"ng-template",null,18,i.W1O),i.YNc(35,$o,1,0,"ng-template",null,19,i.W1O),i.YNc(37,Vo,2,0,"ng-template",null,20,i.W1O)),2&g){const st=i.MAs(36);i.Q6J("ngIf",$.isLoggedInUserAdmin&&$.showStripePrompt&&!$.isCurrentChildFundraiser),i.xp6(1),i.Q6J("ngIf",null==$.currentFundraiser?null:$.currentFundraiser.slug)("ngIfElse",st),i.xp6(1),i.Q6J("ngIf",$.isViewChanging)}},dependencies:[e._Y,e.Fj,e.JJ,e.JL,e.sg,e.u,M.mk,M.sg,M.O5,M.tP,ee.v_,ee.pH,ee.$V,ee.nX,se.k0,Ni.S$,Ni.Qi,ci.d,Kt.SK,Kt.gz,Kt.R7,Kt.Ql,T.eB,Ar.lw,F.Hw,le.sN,ie.gM,V.xw,V.SQ,V.Wh,V.UT,V.yH,de.b8,de.oO,Ve.g,Mt.f,kr,mn.$,un.sN,ri.H,Sr.c,Er.X,Ot.J,lr.V,Cr.z,Gr.E,Ln.c,mi,ro,Na.S,ga.s,Ka.r,Mi.h,Bi.j,wa,so],encapsulation:2}),Ze})()},18836:(St,be,s)=>{"use strict";s.d(be,{s:()=>I});var t=s(15645),e=s(45720),d=s(73991),l=s(76037),r=s(47692),c=s(17774),E=s(4692),m=s(54449),v=s(43073),C=s(74351);function n(q,D){1&q&&(d.ynx(0),d.SDv(1,18),d.BQk())}function i(q,D){1&q&&(d.ynx(0),d.SDv(1,19),d.BQk())}function P(q,D){if(1&q&&(d.TgZ(0,"mat-error"),d.YNc(1,n,2,0,"ng-container",12),d.YNc(2,i,2,0,"ng-container",12),d.qZA()),2&q){const M=d.oxw();d.xp6(1),d.Q6J("ngIf",M.accountForm.controls.VideoName.hasError("invalid")),d.xp6(1),d.Q6J("ngIf",M.accountForm.controls.VideoName.hasError("vimeoInvalidId"))}}let I=(()=>{class q{constructor(M,T,F,le,V){this.data=M,this.notificationService=T,this.formBuilder=F,this._fundraiserService=le,this.dialogRef=V,this.addVideobackgroundPlaceholder="Zalijepi video vezu",this.accountForm=new t.nJ({profileType:new t.p4("",[]),VideoName:new t.p4("",[t.kI.required,t.kI.minLength(1),t.kI.maxLength(100),t.kI.pattern("^[a-zA-Z ]*$")])})}ngOnInit(){this.accountForm.controls.VideoName.setValue(this.data.videoPath),this.accountForm=this.formBuilder.group({VideoName:new t.p4("",{validators:[],asyncValidators:[this.isValidWebsiteURL()]})})}isValidWebsiteURL(){return M=>new Promise((F,le)=>{let V=M.value;if(V.length<=0)F(null);else{const Le=/^(https?:\/\/)?(www\.)?vimeo\.com\//,ge=/^(http\:\/\/|https\:\/\/)?(www\.)?(vimeo\.com\/)([0-9]+)$/;var de=V.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:embed\/|watch\?v=|v\/|shorts\/)|youtu\.be\/)([\w\-]+)(?:\S*)?$/),ye=V.match(Le);de?F(null):ye?Le.test(V)&&(ge.test(V)?F(null):F({vimeoInvalidId:!0})):F({invalid:!0})}})}onChange(M){}onSubmit(){const M=this.accountForm.get("VideoName");let T=M?.value;this.accountForm.valid&&M&&(this.dialogRef.close(T),this.data.slug)&&(T&&!/^https?:\/\//i.test(T)&&(T="https://"+T,M?.setValue(T)),this._fundraiserService.addVideoBackground({slug:this.data.slug,video:T||""}).then(le=>{this.notificationService.openNotification("Prikupljanje sredstava pozadinski video je spremljen.","","success"),window.location.reload()}))}onCloseClick(){this.dialogRef.close()}}return q.\u0275fac=function(M){return new(M||q)(d.Y36(e.WI),d.Y36(l.g),d.Y36(t.qu),d.Y36(r.R),d.Y36(e.so))},q.\u0275cmp=d.Xpm({type:q,selectors:[["app-add-video-background-dialog"]],decls:19,vars:4,consts:function(){let D,M,T,F,le,V;return D="Dodajte Video Vezu",M="YouTube ili Vimeo poveznica",T="Odbaci",F="Spremi",le="Neva\u017Ee\u0107a veza",V="Molimo koristite ugra\u0111enu Vimeo poveznicu koja izgleda ovako: https://vimeocom/123456789",[["ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["mat-dialog-title",""],D,[1,"mat-typography","w-100"],["autocomplete","new-password",3,"formGroup"],["updateProfileForm","ngForm"],["color","primary","appearance","outline",1,"w-100"],M,["matInput","","formControlName","VideoName","value","VideoName.value","id","VideoName",3,"placeholder","change"],["VideoName",""],[4,"ngIf"],["align","end"],["id","save_video_iframe_discard_button","mat-button","","color","accent",3,"click"],T,["mat-flat-button","","color","accent","id","save_video_iframe_save_button",3,"disabled","click"],F,le,V]},template:function(M,T){if(1&M){const F=d.EpF();d.TgZ(0,"div",0)(1,"button",1),d.NdJ("click",function(){return T.onCloseClick()}),d._UZ(2,"img",2),d.qZA()(),d.TgZ(3,"h2",3),d.SDv(4,4),d.qZA(),d.TgZ(5,"mat-dialog-content",5)(6,"form",6,7)(8,"mat-form-field",8)(9,"mat-label"),d.SDv(10,9),d.qZA(),d.TgZ(11,"input",10,11),d.NdJ("change",function(){d.CHM(F);const V=d.MAs(12);return d.KtG(T.onChange(V.value))}),d.qZA()(),d.YNc(13,P,3,2,"mat-error",12),d.qZA()(),d.TgZ(14,"mat-dialog-actions",13)(15,"button",14),d.NdJ("click",function(){return T.onCloseClick()}),d.SDv(16,15),d.qZA(),d.TgZ(17,"button",16),d.NdJ("click",function(){return T.onSubmit()}),d.SDv(18,17),d.qZA()()}2&M&&(d.xp6(6),d.Q6J("formGroup",T.accountForm),d.xp6(5),d.s9C("placeholder",T.addVideobackgroundPlaceholder),d.xp6(2),d.Q6J("ngIf",null!=(null==T.accountForm.controls.VideoName?null:T.accountForm.controls.VideoName.errors)),d.xp6(4),d.Q6J("disabled",T.accountForm.invalid||T.accountForm.pending||!T.accountForm.controls.VideoName.value.trim()))},dependencies:[t._Y,t.Fj,t.JJ,t.JL,t.sg,t.u,c.mk,c.O5,E.nI,E.v_,E.$V,m.k0,v.eB,e.uh,e.xY,e.H8,C.oO]}),q})()},21802:(St,be,s)=>{"use strict";s.d(be,{f:()=>ye});var t=s(15645),e=s(41743),d=s(87580);const l={en:{France:"France",Austria:"Austria",Belgium:"Belgium",Bulgaria:"Bulgaria",Croatia:"Croatia",Cyprus:"Cyprus","Czech Republic":"Czech Republic",Denmark:"Denmark",Estonia:"Estonia",Finland:"Finland",Germany:"Germany",Gibraltar:"Gibraltar",Greece:"Greece",Hungary:"Hungary",Ireland:"Ireland",Italy:"Italy",Latvia:"Latvia",Liechtenstein:"Liechtenstein",Lithuania:"Lithuania",Luxembourg:"Luxembourg",Malta:"Malta",Netherlands:"Netherlands",Norway:"Norway",Poland:"Poland",Portugal:"Portugal",Romania:"Romania",Slovakia:"Slovakia",Spain:"Spain",Sweden:"Sweden",Switzerland:"Switzerland","United Kingdom":"United Kingdom","Dominican Republic":"Dominican Republic",Albania:"Albania",Algeria:"Algeria",Angola:"Angola","Antigua & Barbuda":"Antigua & Barbuda",Argentina:"Argentina",Armenia:"Armenia",Australia:"Australia",Azerbaijan:"Azerbaijan",Bahamas:"Bahamas",Bahrain:"Bahrain",Bangladesh:"Bangladesh",Benin:"Benin",Bhutan:"Bhutan",Bolivia:"Bolivia","Bosnia & Herzegovina":"Bosnia & Herzegovina",Botswana:"Botswana",Brunei:"Brunei",Cambodia:"Cambodia",Canada:"Canada",Chile:"Chile",Colombia:"Colombia","Costa Rica":"Costa Rica","C\xf4te d\u2019Ivoire":"C\xf4te d\u2019Ivoire",Ecuador:"Ecuador",Egypt:"Egypt","El Salvador":"El Salvador",Ethiopia:"Ethiopia",Gabon:"Gabon",Gambia:"Gambia",Ghana:"Ghana",Guatemala:"Guatemala",Guyana:"Guyana","Hong Kong":"Hong Kong",Indonesia:"Indonesia",Israel:"Israel",Jamaica:"Jamaica",Japan:"Japan",Jordan:"Jordan",Kazakhstan:"Kazakhstan",Kenya:"Kenya",Kuwait:"Kuwait",Laos:"Laos","Macao SAR China":"Macao SAR China",Madagascar:"Madagascar",Malaysia:"Malaysia",Mauritius:"Mauritius",Mexico:"Mexico",Moldova:"Moldova",Monaco:"Monaco",Mongolia:"Mongolia",Morocco:"Morocco",Mozambique:"Mozambique",Namibia:"Namibia","New Zealand":"New Zealand",Niger:"Niger",Nigeria:"Nigeria","North Macedonia":"North Macedonia",Oman:"Oman",Pakistan:"Pakistan",Panama:"Panama",Paraguay:"Paraguay",Peru:"Peru",Philippines:"Philippines",Qatar:"Qatar",Rwanda:"Rwanda","San Marino":"San Marino","Saudi Arabia":"Saudi Arabia",Senegal:"Senegal",Serbia:"Serbia",Singapore:"Singapore",Slovenia:"Slovenia","South Africa":"South Africa","South Korea":"South Korea","Sri Lanka":"Sri Lanka","St. Lucia":"St. Lucia",Taiwan:"Taiwan",Tanzania:"Tanzania",Thailand:"Thailand","Trinidad & Tobago":"Trinidad & Tobago",Tunisia:"Tunisia",Turkey:"Turkey","United Arab Emirates":"United Arab Emirates",Uruguay:"Uruguay",Uzbekistan:"Uzbekistan",Vietnam:"Vietnam","United States":"United States",Brazil:"Brazil"},bg:{France:"\u0424\u0440\u0430\u043d\u0446\u0438\u044f",Austria:"\u0410\u0432\u0441\u0442\u0440\u0438\u044f",Belgium:"\u0411\u0435\u043b\u0433\u0438\u044f",Bulgaria:"\u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f",Croatia:"\u0425\u044a\u0440\u0432\u0430\u0442\u0438\u044f",Cyprus:"\u041a\u0438\u043f\u044a\u0440","Czech Republic":"\u0427\u0435\u0445\u0438\u044f",Denmark:"\u0414\u0430\u043d\u0438\u044f",Estonia:"\u0415\u0441\u0442\u043e\u043d\u0438\u044f",Finland:"\u0424\u0438\u043d\u043b\u0430\u043d\u0434\u0438\u044f",Germany:"\u0413\u0435\u0440\u043c\u0430\u043d\u0438\u044f",Gibraltar:"\u0413\u0438\u0431\u0440\u0430\u043b\u0442\u0430\u0440",Greece:"\u0413\u044a\u0440\u0446\u0438\u044f",Hungary:"\u0423\u043d\u0433\u0430\u0440\u0438\u044f",Ireland:"\u0418\u0440\u043b\u0430\u043d\u0434\u0438\u044f",Italy:"\u0418\u0442\u0430\u043b\u0438\u044f",Latvia:"\u041b\u0430\u0442\u0432\u0438\u044f",Liechtenstein:"\u041b\u0438\u0445\u0442\u0435\u043d\u0449\u0430\u0439\u043d",Lithuania:"\u041b\u0438\u0442\u0432\u0430",Luxembourg:"\u041b\u044e\u043a\u0441\u0435\u043c\u0431\u0443\u0440\u0433",Malta:"\u041c\u0430\u043b\u0442\u0430",Netherlands:"\u041d\u0438\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u0438\u044f",Norway:"\u041d\u043e\u0440\u0432\u0435\u0433\u0438\u044f",Poland:"\u041f\u043e\u043b\u0448\u0430",Portugal:"\u041f\u043e\u0440\u0442\u0443\u0433\u0430\u043b\u0438\u044f",Romania:"\u0420\u0443\u043c\u044a\u043d\u0438\u044f",Slovakia:"\u0421\u043b\u043e\u0432\u0430\u043a\u0438\u044f",Spain:"\u0418\u0441\u043f\u0430\u043d\u0438\u044f",Sweden:"\u0428\u0432\u0435\u0446\u0438\u044f",Switzerland:"\u0428\u0432\u0435\u0439\u0446\u0430\u0440\u0438\u044f","United Kingdom":"\u041e\u0431\u0435\u0434\u0438\u043d\u0435\u043d\u043e \u043a\u0440\u0430\u043b\u0441\u0442\u0432\u043e","Dominican Republic":"\u0414\u043e\u043c\u0438\u043d\u0438\u043a\u0430\u043d\u0441\u043a\u0430 \u0440\u0435\u043f\u0443\u0431\u043b\u0438\u043a\u0430",Albania:"\u0410\u043b\u0431\u0430\u043d\u0438\u044f",Algeria:"\u0410\u043b\u0436\u0438\u0440",Angola:"\u0410\u043d\u0433\u043e\u043b\u0430","Antigua & Barbuda":"\u0410\u043d\u0442\u0438\u0433\u0443\u0430 \u0438 \u0411\u0430\u0440\u0431\u0443\u0434\u0430",Argentina:"\u0410\u0440\u0436\u0435\u043d\u0442\u0438\u043d\u0430",Armenia:"\u0410\u0440\u043c\u0435\u043d\u0438\u044f",Australia:"\u0410\u0432\u0441\u0442\u0440\u0430\u043b\u0438\u044f",Azerbaijan:"\u0410\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043d",Bahamas:"\u0411\u0430\u0445\u0430\u043c\u0441\u043a\u0438 \u043e\u0441\u0442\u0440\u043e\u0432\u0438",Bahrain:"\u0411\u0430\u0445\u0440\u0435\u0439\u043d",Bangladesh:"\u0411\u0430\u043d\u0433\u043b\u0430\u0434\u0435\u0448",Benin:"\u0411\u0435\u043d\u0438\u043d",Bhutan:"\u0411\u0443\u0442\u0430\u043d",Bolivia:"\u0411\u043e\u043b\u0438\u0432\u0438\u044f","Bosnia & Herzegovina":"\u0411\u043e\u0441\u043d\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043e\u0432\u0438\u043d\u0430",Botswana:"\u0411\u043e\u0442\u0441\u0432\u0430\u043d\u0430",Brunei:"\u0411\u0440\u0443\u043d\u0435\u0439",Cambodia:"\u041a\u0430\u043c\u0431\u043e\u0434\u0436\u0430",Canada:"\u041a\u0430\u043d\u0430\u0434\u0430",Chile:"\u0427\u0438\u043b\u0438",Colombia:"\u041a\u043e\u043b\u0443\u043c\u0431\u0438\u044f","Costa Rica":"\u041a\u043e\u0441\u0442\u0430 \u0420\u0438\u043a\u0430","C\xf4te d\u2019Ivoire":"\u041a\u043e\u0442 \u0434'\u0418\u0432\u043e\u0430\u0440",Ecuador:"\u0415\u043a\u0432\u0430\u0434\u043e\u0440",Egypt:"\u0415\u0433\u0438\u043f\u0435\u0442","El Salvador":"\u0415\u043b \u0421\u0430\u043b\u0432\u0430\u0434\u043e\u0440",Ethiopia:"\u0415\u0442\u0438\u043e\u043f\u0438\u044f",Gabon:"\u0413\u0430\u0431\u043e\u043d",Gambia:"\u0413\u0430\u043c\u0431\u0438\u044f",Ghana:"\u0413\u0430\u043d\u0430",Guatemala:"\u0413\u0432\u0430\u0442\u0435\u043c\u0430\u043b\u0430",Guyana:"\u0413\u0432\u0438\u0430\u043d\u0430","Hong Kong":"\u0425\u043e\u043d\u043a\u043e\u043d\u0433",Indonesia:"\u0418\u043d\u0434\u043e\u043d\u0435\u0437\u0438\u044f",Israel:"\u0418\u0437\u0440\u0430\u0435\u043b",Jamaica:"\u042f\u043c\u0430\u0439\u043a\u0430",Japan:"\u042f\u043f\u043e\u043d\u0438\u044f",Jordan:"\u0419\u043e\u0440\u0434\u0430\u043d\u0438\u044f",Kazakhstan:"\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d",Kenya:"\u041a\u0435\u043d\u0438\u044f",Kuwait:"\u041a\u0443\u0432\u0435\u0439\u0442",Laos:"\u041b\u0430\u043e\u0441","Macao SAR China":"\u041c\u0430\u043a\u0430\u043e",Madagascar:"\u041c\u0430\u0434\u0430\u0433\u0430\u0441\u043a\u0430\u0440",Malaysia:"\u041c\u0430\u043b\u0430\u0439\u0437\u0438\u044f",Mauritius:"\u041c\u0430\u0432\u0440\u0438\u0446\u0438\u0439",Mexico:"\u041c\u0435\u043a\u0441\u0438\u043a\u043e",Moldova:"\u041c\u043e\u043b\u0434\u043e\u0432\u0430",Monaco:"\u041c\u043e\u043d\u0430\u043a\u043e",Mongolia:"\u041c\u043e\u043d\u0433\u043e\u043b\u0438\u044f",Morocco:"\u041c\u0430\u0440\u043e\u043a\u043e",Mozambique:"\u041c\u043e\u0437\u0430\u043c\u0431\u0438\u043a",Namibia:"\u041d\u0430\u043c\u0438\u0431\u0438\u044f","New Zealand":"\u041d\u043e\u0432\u0430 \u0417\u0435\u043b\u0430\u043d\u0434\u0438\u044f",Niger:"\u041d\u0438\u0433\u0435\u0440",Nigeria:"\u041d\u0438\u0433\u0435\u0440\u0438\u044f","North Macedonia":"\u0421\u0435\u0432\u0435\u0440\u043d\u0430 \u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0438\u044f",Oman:"\u041e\u043c\u0430\u043d",Pakistan:"\u041f\u0430\u043a\u0438\u0441\u0442\u0430\u043d",Panama:"\u041f\u0430\u043d\u0430\u043c\u0430",Paraguay:"\u041f\u0430\u0440\u0430\u0433\u0432\u0430\u0439",Peru:"\u041f\u0435\u0440\u0443",Philippines:"\u0424\u0438\u043b\u0438\u043f\u0438\u043d\u0438",Qatar:"\u041a\u0430\u0442\u0430\u0440",Rwanda:"\u0420\u0443\u0430\u043d\u0434\u0430","San Marino":"\u0421\u0430\u043d \u041c\u0430\u0440\u0438\u043d\u043e","Saudi Arabia":"\u0421\u0430\u0443\u0434\u0438\u0442\u0441\u043a\u0430 \u0410\u0440\u0430\u0431\u0438\u044f",Senegal:"\u0421\u0435\u043d\u0435\u0433\u0430\u043b",Serbia:"\u0421\u044a\u0440\u0431\u0438\u044f",Singapore:"\u0421\u0438\u043d\u0433\u0430\u043f\u0443\u0440",Slovenia:"\u0421\u043b\u043e\u0432\u0435\u043d\u0438\u044f","South Africa":"\u042e\u0436\u043d\u0430 \u0410\u0444\u0440\u0438\u043a\u0430","South Korea":"\u042e\u0436\u043d\u0430 \u041a\u043e\u0440\u0435\u044f","Sri Lanka":"\u0428\u0440\u0438 \u041b\u0430\u043d\u043a\u0430","St. Lucia":"\u0421\u0435\u0439\u043d\u0442 \u041b\u0443\u0441\u0438\u044f",Taiwan:"\u0422\u0430\u0439\u0432\u0430\u043d",Tanzania:"\u0422\u0430\u043d\u0437\u0430\u043d\u0438\u044f",Thailand:"\u0422\u0430\u0439\u043b\u0430\u043d\u0434","Trinidad & Tobago":"\u0422\u0440\u0438\u043d\u0438\u0434\u0430\u0434 \u0438 \u0422\u043e\u0431\u0430\u0433\u043e",Tunisia:"\u0422\u0443\u043d\u0438\u0441",Turkey:"\u0422\u0443\u0440\u0446\u0438\u044f","United Arab Emirates":"\u041e\u0431\u0435\u0434\u0438\u043d\u0435\u043d\u0438 \u0430\u0440\u0430\u0431\u0441\u043a\u0438 \u0435\u043c\u0438\u0440\u0441\u0442\u0432\u0430",Uruguay:"\u0423\u0440\u0443\u0433\u0432\u0430\u0439",Uzbekistan:"\u0423\u0437\u0431\u0435\u043a\u0438\u0441\u0442\u0430\u043d",Vietnam:"\u0412\u0438\u0435\u0442\u043d\u0430\u043c","United States":"\u0421\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438 \u0449\u0430\u0442\u0438",Brazil:"\u0411\u0440\u0430\u0437\u0438\u043b\u0438\u044f"},hr:{France:"Francuska",Austria:"Austrija",Belgium:"Belgija",Bulgaria:"Bugarska",Croatia:"Hrvatska",Cyprus:"Cipar","Czech Republic":"\u010ce\u0161ka",Denmark:"Danska",Estonia:"Estonija",Finland:"Finska",Germany:"Njema\u010dka",Gibraltar:"Gibraltar",Greece:"Gr\u010dka",Hungary:"Ma\u0111arska",Ireland:"Irska",Italy:"Italija",Latvia:"Latvija",Liechtenstein:"Lihten\u0161tajn",Lithuania:"Litva",Luxembourg:"Luksemburg",Malta:"Malta",Netherlands:"Nizozemska",Norway:"Norve\u0161ka",Poland:"Poljska",Portugal:"Portugal",Romania:"Rumunjska",Slovakia:"Slova\u010dka",Spain:"\u0160panjolska",Sweden:"\u0160vedska",Switzerland:"\u0160vicarska","United Kingdom":"Ujedinjeno Kraljevstvo","Dominican Republic":"Dominikanska Republika",Albania:"Albanija",Algeria:"Al\u017eir",Angola:"Angola","Antigua & Barbuda":"Antigva i Barbuda",Argentina:"Argentina",Armenia:"Armenija",Australia:"Australija",Azerbaijan:"Azerbajd\u017ean",Bahamas:"Bahami",Bahrain:"Bahrein",Bangladesh:"Banglade\u0161",Benin:"Benin",Bhutan:"Butan",Bolivia:"Bolivija","Bosnia & Herzegovina":"Bosna i Hercegovina",Botswana:"Bocvana",Brunei:"Brunej",Cambodia:"Kambod\u017ea",Canada:"Kanada",Chile:"\u010cile",Colombia:"Kolumbija","Costa Rica":"Kostarika","C\xf4te d\u2019Ivoire":"Obala Bjelokosti",Ecuador:"Ekvador",Egypt:"Egipat","El Salvador":"Salvador",Ethiopia:"Etiopija",Gabon:"Gabon",Gambia:"Gambija",Ghana:"Gana",Guatemala:"Gvatemala",Guyana:"Gvajana","Hong Kong":"Hong Kong",Indonesia:"Indonezija",Israel:"Izrael",Jamaica:"Jamajka",Japan:"Japan",Jordan:"Jordan",Kazakhstan:"Kazahstan",Kenya:"Kenija",Kuwait:"Kuvajt",Laos:"Laos","Macao SAR China":"Makao",Madagascar:"Madagaskar",Malaysia:"Malezija",Mauritius:"Mauricijus",Mexico:"Meksiko",Moldova:"Moldavija",Monaco:"Monako",Mongolia:"Mongolija",Morocco:"Maroko",Mozambique:"Mozambik",Namibia:"Namibija","New Zealand":"Novi Zeland",Niger:"Niger",Nigeria:"Nigerija","North Macedonia":"Sjeverna Makedonija",Oman:"Oman",Pakistan:"Pakistan",Panama:"Panama",Paraguay:"Paragvaj",Peru:"Peru",Philippines:"Filipini",Qatar:"Katar",Rwanda:"Ruanda","San Marino":"San Marino","Saudi Arabia":"Saudijska Arabija",Senegal:"Senegal",Serbia:"Srbija",Singapore:"Singapur",Slovenia:"Slovenija","South Africa":"Ju\u017ena Afrika","South Korea":"Ju\u017ena Koreja","Sri Lanka":"\u0160ri Lanka","St. Lucia":"Sveta Lucija",Taiwan:"Tajvan",Tanzania:"Tanzanija",Thailand:"Tajland","Trinidad & Tobago":"Trinidad i Tobago",Tunisia:"Tunis",Turkey:"Turska","United Arab Emirates":"Ujedinjeni Arapski Emirati",Uruguay:"Urugvaj",Uzbekistan:"Uzbekistan",Vietnam:"Vijetnam","United States":"Sjedinjene Ameri\u010dke Dr\u017eave",Brazil:"Brazil"},cs:{France:"Francie",Austria:"Rakousko",Belgium:"Belgie",Bulgaria:"Bulharsko",Croatia:"Chorvatsko",Cyprus:"Kypr","Czech Republic":"\u010cesk\xe1 republika",Denmark:"D\xe1nsko",Estonia:"Estonsko",Finland:"Finsko",Germany:"N\u011bmecko",Gibraltar:"Gibraltar",Greece:"\u0158ecko",Hungary:"Ma\u010farsko",Ireland:"Irsko",Italy:"It\xe1lie",Latvia:"Loty\u0161sko",Liechtenstein:"Lichten\u0161tejnsko",Lithuania:"Litva",Luxembourg:"Lucembursko",Malta:"Malta",Netherlands:"Nizozemsko",Norway:"Norsko",Poland:"Polsko",Portugal:"Portugalsko",Romania:"Rumunsko",Slovakia:"Slovensko",Spain:"\u0160pan\u011blsko",Sweden:"\u0160v\xe9dsko",Switzerland:"\u0160v\xfdcarsko","United Kingdom":"Spojen\xe9 kr\xe1lovstv\xed","Dominican Republic":"Dominik\xe1nsk\xe1 republika",Albania:"Alb\xe1nie",Algeria:"Al\u017e\xedrsko",Angola:"Angola","Antigua & Barbuda":"Antigua a Barbuda",Argentina:"Argentina",Armenia:"Arm\xe9nie",Australia:"Austr\xe1lie",Azerbaijan:"\xc1zerb\xe1jd\u017e\xe1n",Bahamas:"Bahamy",Bahrain:"Bahrajn",Bangladesh:"Banglad\xe9\u0161",Benin:"Benin",Bhutan:"Bh\xfat\xe1n",Bolivia:"Bol\xedvie","Bosnia & Herzegovina":"Bosna a Hercegovina",Botswana:"Botswana",Brunei:"Brunej",Cambodia:"Kambod\u017ea",Canada:"Kanada",Chile:"Chile",Colombia:"Kolumbie","Costa Rica":"Kostarika","C\xf4te d\u2019Ivoire":"Pob\u0159e\u017e\xed slonoviny",Ecuador:"Ekv\xe1dor",Egypt:"Egypt","El Salvador":"Salvador",Ethiopia:"Etiopie",Gabon:"Gabon",Gambia:"Gambie",Ghana:"Ghana",Guatemala:"Guatemala",Guyana:"Guyana","Hong Kong":"Hongkong",Indonesia:"Indon\xe9sie",Israel:"Izrael",Jamaica:"Jamajka",Japan:"Japonsko",Jordan:"Jord\xe1nsko",Kazakhstan:"Kazachst\xe1n",Kenya:"Ke\u0148a",Kuwait:"Kuvajt",Laos:"Laos","Macao SAR China":"Macao",Madagascar:"Madagaskar",Malaysia:"Malajsie",Mauritius:"Mauricius",Mexico:"Mexiko",Moldova:"Moldavsko",Monaco:"Monako",Mongolia:"Mongolsko",Morocco:"Maroko",Mozambique:"Mosambik",Namibia:"Namibie","New Zealand":"Nov\xfd Z\xe9land",Niger:"Niger",Nigeria:"Nig\xe9rie","North Macedonia":"Severn\xed Makedonie",Oman:"Om\xe1n",Pakistan:"P\xe1kist\xe1n",Panama:"Panama",Paraguay:"Paraguay",Peru:"Peru",Philippines:"Filip\xedny",Qatar:"Katar",Rwanda:"Rwanda","San Marino":"San Marino","Saudi Arabia":"Sa\xfadsk\xe1 Ar\xe1bie",Senegal:"Senegal",Serbia:"Srbsko",Singapore:"Singapur",Slovenia:"Slovinsko","South Africa":"Jihoafrick\xe1 republika","South Korea":"Ji\u017en\xed Korea","Sri Lanka":"Sr\xed Lanka","St. Lucia":"Svat\xe1 Lucie",Taiwan:"Tchaj-wan",Tanzania:"Tanzanie",Thailand:"Thajsko","Trinidad & Tobago":"Trinidad a Tobago",Tunisia:"Tunisko",Turkey:"Turecko","United Arab Emirates":"Spojen\xe9 arabsk\xe9 emir\xe1ty",Uruguay:"Uruguay",Uzbekistan:"Uzbekist\xe1n",Vietnam:"Vietnam","United States":"Spojen\xe9 st\xe1ty",Brazil:"Braz\xedlie"},da:{France:"Frankrig",Austria:"\xd8strig",Belgium:"Belgien",Bulgaria:"Bulgarien",Croatia:"Kroatien",Cyprus:"Cypern","Czech Republic":"Tjekkiet",Denmark:"Danmark",Estonia:"Estland",Finland:"Finland",Germany:"Tyskland",Gibraltar:"Gibraltar",Greece:"Gr\xe6kenland",Hungary:"Ungarn",Ireland:"Irland",Italy:"Italien",Latvia:"Letland",Liechtenstein:"Liechtenstein",Lithuania:"Litauen",Luxembourg:"Luxembourg",Malta:"Malta",Netherlands:"Holland",Norway:"Norge",Poland:"Polen",Portugal:"Portugal",Romania:"Rum\xe6nien",Slovakia:"Slovakiet",Spain:"Spanien",Sweden:"Sverige",Switzerland:"Schweiz","United Kingdom":"Storbritannien","Dominican Republic":"Den Dominikanske Republik",Albania:"Albanien",Algeria:"Algeriet",Angola:"Angola","Antigua & Barbuda":"Antigua og Barbuda",Argentina:"Argentina",Armenia:"Armenien",Australia:"Australien",Azerbaijan:"Aserbajdsjan",Bahamas:"Bahamas",Bahrain:"Bahrain",Bangladesh:"Bangladesh",Benin:"Benin",Bhutan:"Bhutan",Bolivia:"Bolivia","Bosnia & Herzegovina":"Bosnien og Hercegovina",Botswana:"Botswana",Brunei:"Brunei",Cambodia:"Cambodja",Canada:"Canada",Chile:"Chile",Colombia:"Colombia","Costa Rica":"Costa Rica","C\xf4te d\u2019Ivoire":"Elfenbenskysten",Ecuador:"Ecuador",Egypt:"Egypten","El Salvador":"El Salvador",Ethiopia:"Etiopien",Gabon:"Gabon",Gambia:"Gambia",Ghana:"Ghana",Guatemala:"Guatemala",Guyana:"Guyana","Hong Kong":"Hongkong",Indonesia:"Indonesien",Israel:"Israel",Jamaica:"Jamaica",Japan:"Japan",Jordan:"Jordan",Kazakhstan:"Kasakhstan",Kenya:"Kenya",Kuwait:"Kuwait",Laos:"Laos","Macao SAR China":"Macao",Madagascar:"Madagaskar",Malaysia:"Malaysia",Mauritius:"Mauritius",Mexico:"Mexico",Moldova:"Moldova",Monaco:"Monaco",Mongolia:"Mongoliet",Morocco:"Marokko",Mozambique:"Mozambique",Namibia:"Namibia","New Zealand":"New Zealand",Niger:"Niger",Nigeria:"Nigeria","North Macedonia":"Nordmakedonien",Oman:"Oman",Pakistan:"Pakistan",Panama:"Panama",Paraguay:"Paraguay",Peru:"Peru",Philippines:"Filippinerne",Qatar:"Qatar",Rwanda:"Rwanda","San Marino":"San Marino","Saudi Arabia":"Saudi-Arabien",Senegal:"Senegal",Serbia:"Serbien",Singapore:"Singapore",Slovenia:"Slovenien","South Africa":"Sydafrika","South Korea":"Sydkorea","Sri Lanka":"Sri Lanka","St. Lucia":"Saint Lucia",Taiwan:"Taiwan",Tanzania:"Tanzania",Thailand:"Thailand","Trinidad & Tobago":"Trinidad og Tobago",Tunisia:"Tunesien",Turkey:"Tyrkiet","United Arab Emirates":"De Forenede Arabiske Emirater",Uruguay:"Uruguay",Uzbekistan:"Usbekistan",Vietnam:"Vietnam","United States":"USA",Brazil:"Brasilien"},fi:{France:"Ranska",Austria:"It\xe4valta",Belgium:"Belgia",Bulgaria:"Bulgaria",Croatia:"Kroatia",Cyprus:"Kypros","Czech Republic":"T\u0161ekki",Denmark:"Tanska",Estonia:"Viro",Finland:"Suomi",Germany:"Saksa",Gibraltar:"Gibraltar",Greece:"Kreikka",Hungary:"Unkari",Ireland:"Irlanti",Italy:"Italia",Latvia:"Latvia",Liechtenstein:"Liechtenstein",Lithuania:"Liettua",Luxembourg:"Luxemburg",Malta:"Malta",Netherlands:"Alankomaat",Norway:"Norja",Poland:"Puola",Portugal:"Portugali",Romania:"Romania",Slovakia:"Slovakia",Spain:"Espanja",Sweden:"Ruotsi",Switzerland:"Sveitsi","United Kingdom":"Yhdistynyt kuningaskunta","Dominican Republic":"Dominikaaninen tasavalta",Albania:"Albania",Algeria:"Algeria",Angola:"Angola","Antigua & Barbuda":"Antigua ja Barbuda",Argentina:"Argentiina",Armenia:"Armenia",Australia:"Australia",Azerbaijan:"Azerbaid\u017ean",Bahamas:"Bahama",Bahrain:"Bahrain",Bangladesh:"Bangladesh",Benin:"Benin",Bhutan:"Bhutan",Bolivia:"Bolivia","Bosnia & Herzegovina":"Bosnia ja Hertsegovina",Botswana:"Botswana",Brunei:"Brunei",Cambodia:"Kambod\u017ea",Canada:"Kanada",Chile:"Chile",Colombia:"Kolumbia","Costa Rica":"Costa Rica","C\xf4te d\u2019Ivoire":"Norsunluurannikko",Ecuador:"Ecuador",Egypt:"Egypti","El Salvador":"El Salvador",Ethiopia:"Etiopia",Gabon:"Gabon",Gambia:"Gambia",Ghana:"Ghana",Guatemala:"Guatemala",Guyana:"Guyana","Hong Kong":"Hongkong",Indonesia:"Indonesia",Israel:"Israel",Jamaica:"Jamaika",Japan:"Japani",Jordan:"Jordania",Kazakhstan:"Kazakstan",Kenya:"Kenia",Kuwait:"Kuwait",Laos:"Laos","Macao SAR China":"Macao",Madagascar:"Madagaskar",Malaysia:"Malesia",Mauritius:"Mauritius",Mexico:"Meksiko",Moldova:"Moldova",Monaco:"Monaco",Mongolia:"Mongolia",Morocco:"Marokko",Mozambique:"Mosambik",Namibia:"Namibia","New Zealand":"Uusi-Seelanti",Niger:"Niger",Nigeria:"Nigeria","North Macedonia":"Pohjois-Makedonia",Oman:"Oman",Pakistan:"Pakistan",Panama:"Panama",Paraguay:"Paraguay",Peru:"Peru",Philippines:"Filippiinit",Qatar:"Qatar",Rwanda:"Ruanda","San Marino":"San Marino","Saudi Arabia":"Saudi-Arabia",Senegal:"Senegal",Serbia:"Serbia",Singapore:"Singapore",Slovenia:"Slovenia","South Africa":"Etel\xe4-Afrikka","South Korea":"Etel\xe4-Korea","Sri Lanka":"Sri Lanka","St. Lucia":"Saint Lucia",Taiwan:"Taiwan",Tanzania:"Tansania",Thailand:"Thaimaa","Trinidad & Tobago":"Trinidad ja Tobago",Tunisia:"Tunisia",Turkey:"Turkki","United Arab Emirates":"Yhdistyneet arabiemiirikunnat",Uruguay:"Uruguay",Uzbekistan:"Uzbekistan",Vietnam:"Vietnam","United States":"Yhdysvallat",Brazil:"Brasilia"},el:{France:"\u0393\u03b1\u03bb\u03bb\u03af\u03b1",Austria:"\u0391\u03c5\u03c3\u03c4\u03c1\u03af\u03b1",Belgium:"\u0392\u03ad\u03bb\u03b3\u03b9\u03bf",Bulgaria:"\u0392\u03bf\u03c5\u03bb\u03b3\u03b1\u03c1\u03af\u03b1",Croatia:"\u039a\u03c1\u03bf\u03b1\u03c4\u03af\u03b1",Cyprus:"\u039a\u03cd\u03c0\u03c1\u03bf\u03c2","Czech Republic":"\u03a4\u03c3\u03b5\u03c7\u03af\u03b1",Denmark:"\u0394\u03b1\u03bd\u03af\u03b1",Estonia:"\u0395\u03c3\u03b8\u03bf\u03bd\u03af\u03b1",Finland:"\u03a6\u03b9\u03bd\u03bb\u03b1\u03bd\u03b4\u03af\u03b1",Germany:"\u0393\u03b5\u03c1\u03bc\u03b1\u03bd\u03af\u03b1",Gibraltar:"\u0393\u03b9\u03b2\u03c1\u03b1\u03bb\u03c4\u03ac\u03c1",Greece:"\u0395\u03bb\u03bb\u03ac\u03b4\u03b1",Hungary:"\u039f\u03c5\u03b3\u03b3\u03b1\u03c1\u03af\u03b1",Ireland:"\u0399\u03c1\u03bb\u03b1\u03bd\u03b4\u03af\u03b1",Italy:"\u0399\u03c4\u03b1\u03bb\u03af\u03b1",Latvia:"\u039b\u03b5\u03c4\u03bf\u03bd\u03af\u03b1",Liechtenstein:"\u039b\u03b9\u03c7\u03c4\u03b5\u03bd\u03c3\u03c4\u03ac\u03b9\u03bd",Lithuania:"\u039b\u03b9\u03b8\u03bf\u03c5\u03b1\u03bd\u03af\u03b1",Luxembourg:"\u039b\u03bf\u03c5\u03be\u03b5\u03bc\u03b2\u03bf\u03cd\u03c1\u03b3\u03bf",Malta:"\u039c\u03ac\u03bb\u03c4\u03b1",Netherlands:"\u039f\u03bb\u03bb\u03b1\u03bd\u03b4\u03af\u03b1",Norway:"\u039d\u03bf\u03c1\u03b2\u03b7\u03b3\u03af\u03b1",Poland:"\u03a0\u03bf\u03bb\u03c9\u03bd\u03af\u03b1",Portugal:"\u03a0\u03bf\u03c1\u03c4\u03bf\u03b3\u03b1\u03bb\u03af\u03b1",Romania:"\u03a1\u03bf\u03c5\u03bc\u03b1\u03bd\u03af\u03b1",Slovakia:"\u03a3\u03bb\u03bf\u03b2\u03b1\u03ba\u03af\u03b1",Spain:"\u0399\u03c3\u03c0\u03b1\u03bd\u03af\u03b1",Sweden:"\u03a3\u03bf\u03c5\u03b7\u03b4\u03af\u03b1",Switzerland:"\u0395\u03bb\u03b2\u03b5\u03c4\u03af\u03b1","United Kingdom":"\u0397\u03bd\u03c9\u03bc\u03ad\u03bd\u03bf \u0392\u03b1\u03c3\u03af\u03bb\u03b5\u03b9\u03bf","Dominican Republic":"\u0394\u03bf\u03bc\u03b9\u03bd\u03b9\u03ba\u03b1\u03bd\u03ae \u0394\u03b7\u03bc\u03bf\u03ba\u03c1\u03b1\u03c4\u03af\u03b1",Albania:"\u0391\u03bb\u03b2\u03b1\u03bd\u03af\u03b1",Algeria:"\u0391\u03bb\u03b3\u03b5\u03c1\u03af\u03b1",Angola:"\u0391\u03b3\u03ba\u03cc\u03bb\u03b1","Antigua & Barbuda":"\u0391\u03bd\u03c4\u03af\u03b3\u03ba\u03bf\u03c5\u03b1 \u03ba\u03b1\u03b9 \u039c\u03c0\u03b1\u03c1\u03bc\u03c0\u03bf\u03cd\u03bd\u03c4\u03b1",Argentina:"\u0391\u03c1\u03b3\u03b5\u03bd\u03c4\u03b9\u03bd\u03ae",Armenia:"\u0391\u03c1\u03bc\u03b5\u03bd\u03af\u03b1",Australia:"\u0391\u03c5\u03c3\u03c4\u03c1\u03b1\u03bb\u03af\u03b1",Azerbaijan:"\u0391\u03b6\u03b5\u03c1\u03bc\u03c0\u03b1\u03ca\u03c4\u03b6\u03ac\u03bd",Bahamas:"\u039c\u03c0\u03b1\u03c7\u03ac\u03bc\u03b5\u03c2",Bahrain:"\u039c\u03c0\u03b1\u03c7\u03c1\u03ad\u03b9\u03bd",Bangladesh:"\u039c\u03c0\u03b1\u03bd\u03b3\u03ba\u03bb\u03b1\u03bd\u03c4\u03ad\u03c2",Benin:"\u039c\u03c0\u03b5\u03bd\u03af\u03bd",Bhutan:"\u039c\u03c0\u03bf\u03c5\u03c4\u03ac\u03bd",Bolivia:"\u0392\u03bf\u03bb\u03b9\u03b2\u03af\u03b1","Bosnia & Herzegovina":"\u0392\u03bf\u03c3\u03bd\u03af\u03b1 \u03ba\u03b1\u03b9 \u0395\u03c1\u03b6\u03b5\u03b3\u03bf\u03b2\u03af\u03bd\u03b7",Botswana:"\u039c\u03c0\u03bf\u03c4\u03c3\u03bf\u03c5\u03ac\u03bd\u03b1",Brunei:"\u039c\u03c0\u03c1\u03bf\u03c5\u03bd\u03ad\u03b9",Cambodia:"\u039a\u03b1\u03bc\u03c0\u03cc\u03c4\u03b6\u03b7",Canada:"\u039a\u03b1\u03bd\u03b1\u03b4\u03ac\u03c2",Chile:"\u03a7\u03b9\u03bb\u03ae",Colombia:"\u039a\u03bf\u03bb\u03bf\u03bc\u03b2\u03af\u03b1","Costa Rica":"\u039a\u03cc\u03c3\u03c4\u03b1 \u03a1\u03af\u03ba\u03b1","C\xf4te d\u2019Ivoire":"\u0391\u03ba\u03c4\u03ae \u0395\u03bb\u03b5\u03c6\u03b1\u03bd\u03c4\u03bf\u03c3\u03c4\u03bf\u03cd",Ecuador:"\u0395\u03ba\u03bf\u03c5\u03b1\u03b4\u03cc\u03c1",Egypt:"\u0391\u03af\u03b3\u03c5\u03c0\u03c4\u03bf\u03c2","El Salvador":"\u0395\u03bb \u03a3\u03b1\u03bb\u03b2\u03b1\u03b4\u03cc\u03c1",Ethiopia:"\u0391\u03b9\u03b8\u03b9\u03bf\u03c0\u03af\u03b1",Gabon:"\u0393\u03ba\u03b1\u03bc\u03c0\u03cc\u03bd",Gambia:"\u0393\u03ba\u03ac\u03bc\u03c0\u03b9\u03b1",Ghana:"\u0393\u03ba\u03ac\u03bd\u03b1",Guatemala:"\u0393\u03bf\u03c5\u03b1\u03c4\u03b5\u03bc\u03ac\u03bb\u03b1",Guyana:"\u0393\u03bf\u03c5\u03b9\u03ac\u03bd\u03b1","Hong Kong":"\u03a7\u03bf\u03bd\u03b3\u03ba \u039a\u03bf\u03bd\u03b3\u03ba",Indonesia:"\u0399\u03bd\u03b4\u03bf\u03bd\u03b7\u03c3\u03af\u03b1",Israel:"\u0399\u03c3\u03c1\u03b1\u03ae\u03bb",Jamaica:"\u03a4\u03b6\u03b1\u03bc\u03ac\u03b9\u03ba\u03b1",Japan:"\u0399\u03b1\u03c0\u03c9\u03bd\u03af\u03b1",Jordan:"\u0399\u03bf\u03c1\u03b4\u03b1\u03bd\u03af\u03b1",Kazakhstan:"\u039a\u03b1\u03b6\u03b1\u03ba\u03c3\u03c4\u03ac\u03bd",Kenya:"\u039a\u03ad\u03bd\u03c5\u03b1",Kuwait:"\u039a\u03bf\u03c5\u03b2\u03ad\u03b9\u03c4",Laos:"\u039b\u03ac\u03bf\u03c2","Macao SAR China":"\u039c\u03b1\u03ba\u03ac\u03bf",Madagascar:"\u039c\u03b1\u03b4\u03b1\u03b3\u03b1\u03c3\u03ba\u03ac\u03c1\u03b7",Malaysia:"\u039c\u03b1\u03bb\u03b1\u03b9\u03c3\u03af\u03b1",Mauritius:"\u039c\u03b1\u03c5\u03c1\u03af\u03ba\u03b9\u03bf\u03c2",Mexico:"\u039c\u03b5\u03be\u03b9\u03ba\u03cc",Moldova:"\u039c\u03bf\u03bb\u03b4\u03b1\u03b2\u03af\u03b1",Monaco:"\u039c\u03bf\u03bd\u03b1\u03ba\u03cc",Mongolia:"\u039c\u03bf\u03b3\u03b3\u03bf\u03bb\u03af\u03b1",Morocco:"\u039c\u03b1\u03c1\u03cc\u03ba\u03bf",Mozambique:"\u039c\u03bf\u03b6\u03b1\u03bc\u03b2\u03af\u03ba\u03b7",Namibia:"\u039d\u03b1\u03bc\u03af\u03bc\u03c0\u03b9\u03b1","New Zealand":"\u039d\u03ad\u03b1 \u0396\u03b7\u03bb\u03b1\u03bd\u03b4\u03af\u03b1",Niger:"\u039d\u03af\u03b3\u03b7\u03c1\u03b1\u03c2",Nigeria:"\u039d\u03b9\u03b3\u03b7\u03c1\u03af\u03b1","North Macedonia":"\u0392\u03cc\u03c1\u03b5\u03b9\u03b1 \u039c\u03b1\u03ba\u03b5\u03b4\u03bf\u03bd\u03af\u03b1",Oman:"\u039f\u03bc\u03ac\u03bd",Pakistan:"\u03a0\u03b1\u03ba\u03b9\u03c3\u03c4\u03ac\u03bd",Panama:"\u03a0\u03b1\u03bd\u03b1\u03bc\u03ac\u03c2",Paraguay:"\u03a0\u03b1\u03c1\u03b1\u03b3\u03bf\u03c5\u03ac\u03b7",Peru:"\u03a0\u03b5\u03c1\u03bf\u03cd",Philippines:"\u03a6\u03b9\u03bb\u03b9\u03c0\u03c0\u03af\u03bd\u03b5\u03c2",Qatar:"\u039a\u03b1\u03c4\u03ac\u03c1",Rwanda:"\u03a1\u03bf\u03c5\u03ac\u03bd\u03c4\u03b1","San Marino":"\u0386\u03b3\u03b9\u03bf\u03c2 \u039c\u03b1\u03c1\u03af\u03bd\u03bf\u03c2","Saudi Arabia":"\u03a3\u03b1\u03bf\u03c5\u03b4\u03b9\u03ba\u03ae \u0391\u03c1\u03b1\u03b2\u03af\u03b1",Senegal:"\u03a3\u03b5\u03bd\u03b5\u03b3\u03ac\u03bb\u03b7",Serbia:"\u03a3\u03b5\u03c1\u03b2\u03af\u03b1",Singapore:"\u03a3\u03b9\u03b3\u03ba\u03b1\u03c0\u03bf\u03cd\u03c1\u03b7",Slovenia:"\u03a3\u03bb\u03bf\u03b2\u03b5\u03bd\u03af\u03b1","South Africa":"\u039d\u03cc\u03c4\u03b9\u03b1 \u0391\u03c6\u03c1\u03b9\u03ba\u03ae","South Korea":"\u039d\u03cc\u03c4\u03b9\u03b1 \u039a\u03bf\u03c1\u03ad\u03b1","Sri Lanka":"\u03a3\u03c1\u03b9 \u039b\u03ac\u03bd\u03ba\u03b1","St. Lucia":"\u0391\u03b3\u03af\u03b1 \u039b\u03bf\u03c5\u03ba\u03af\u03b1",Taiwan:"\u03a4\u03b1\u03ca\u03b2\u03ac\u03bd",Tanzania:"\u03a4\u03b1\u03bd\u03b6\u03b1\u03bd\u03af\u03b1",Thailand:"\u03a4\u03b1\u03ca\u03bb\u03ac\u03bd\u03b4\u03b7","Trinidad & Tobago":"\u03a4\u03c1\u03b9\u03bd\u03b9\u03bd\u03c4\u03ac\u03bd\u03c4 \u03ba\u03b1\u03b9 \u03a4\u03bf\u03bc\u03c0\u03ac\u03b3\u03ba\u03bf",Tunisia:"\u03a4\u03c5\u03bd\u03b7\u03c3\u03af\u03b1",Turkey:"\u03a4\u03bf\u03c5\u03c1\u03ba\u03af\u03b1","United Arab Emirates":"\u0397\u03bd\u03c9\u03bc\u03ad\u03bd\u03b1 \u0391\u03c1\u03b1\u03b2\u03b9\u03ba\u03ac \u0395\u03bc\u03b9\u03c1\u03ac\u03c4\u03b1",Uruguay:"\u039f\u03c5\u03c1\u03bf\u03c5\u03b3\u03bf\u03c5\u03ac\u03b7",Uzbekistan:"\u039f\u03c5\u03b6\u03bc\u03c0\u03b5\u03ba\u03b9\u03c3\u03c4\u03ac\u03bd",Vietnam:"\u0392\u03b9\u03b5\u03c4\u03bd\u03ac\u03bc","United States":"\u0397\u03bd\u03c9\u03bc\u03ad\u03bd\u03b5\u03c2 \u03a0\u03bf\u03bb\u03b9\u03c4\u03b5\u03af\u03b5\u03c2",Brazil:"\u0392\u03c1\u03b1\u03b6\u03b9\u03bb\u03af\u03b1"},hu:{France:"Franciaorsz\xe1g",Austria:"Ausztria",Belgium:"Belgium",Bulgaria:"Bulg\xe1ria",Croatia:"Horv\xe1torsz\xe1g",Cyprus:"Ciprus","Czech Republic":"Csehorsz\xe1g",Denmark:"D\xe1nia",Estonia:"\xc9sztorsz\xe1g",Finland:"Finnorsz\xe1g",Germany:"N\xe9metorsz\xe1g",Gibraltar:"Gibralt\xe1r",Greece:"G\xf6r\xf6gorsz\xe1g",Hungary:"Magyarorsz\xe1g",Ireland:"\xcdrorsz\xe1g",Italy:"Olaszorsz\xe1g",Latvia:"Lettorsz\xe1g",Liechtenstein:"Liechtenstein",Lithuania:"Litv\xe1nia",Luxembourg:"Luxemburg",Malta:"M\xe1lta",Netherlands:"Hollandia",Norway:"Norv\xe9gia",Poland:"Lengyelorsz\xe1g",Portugal:"Portug\xe1lia",Romania:"Rom\xe1nia",Slovakia:"Szlov\xe1kia",Spain:"Spanyolorsz\xe1g",Sweden:"Sv\xe9dorsz\xe1g",Switzerland:"Sv\xe1jc","United Kingdom":"Egyes\xfclt Kir\xe1lys\xe1g","Dominican Republic":"Dominikai K\xf6zt\xe1rsas\xe1g",Albania:"Alb\xe1nia",Algeria:"Alg\xe9ria",Angola:"Angola","Antigua & Barbuda":"Antigua \xe9s Barbuda",Argentina:"Argent\xedna",Armenia:"\xd6rm\xe9nyorsz\xe1g",Australia:"Ausztr\xe1lia",Azerbaijan:"Azerbajdzs\xe1n",Bahamas:"Bahama-szigetek",Bahrain:"Bahrein",Bangladesh:"Banglades",Benin:"Benin",Bhutan:"Bhut\xe1n",Bolivia:"Bol\xedvia","Bosnia & Herzegovina":"Bosznia \xe9s Hercegovina",Botswana:"Botswana",Brunei:"Brunei",Cambodia:"Kambodzsa",Canada:"Kanada",Chile:"Chile",Colombia:"Kolumbia","Costa Rica":"Costa Rica","C\xf4te d\u2019Ivoire":"Elef\xe1ntcsontpart",Ecuador:"Ecuador",Egypt:"Egyiptom","El Salvador":"Salvador",Ethiopia:"Eti\xf3pia",Gabon:"Gabon",Gambia:"Gambia",Ghana:"Gh\xe1na",Guatemala:"Guatemala",Guyana:"Guyana","Hong Kong":"Hongkong",Indonesia:"Indon\xe9zia",Israel:"Izrael",Jamaica:"Jamaica",Japan:"Jap\xe1n",Jordan:"Jord\xe1nia",Kazakhstan:"Kazahszt\xe1n",Kenya:"Kenya",Kuwait:"Kuvait",Laos:"Laosz","Macao SAR China":"Maka\xf3",Madagascar:"Madagaszk\xe1r",Malaysia:"Malajzia",Mauritius:"Mauritius",Mexico:"Mexik\xf3",Moldova:"Moldova",Monaco:"Monaco",Mongolia:"Mong\xf3lia",Morocco:"Marokk\xf3",Mozambique:"Mozambik",Namibia:"Nam\xedbia","New Zealand":"\xdaj-Z\xe9land",Niger:"Niger",Nigeria:"Nig\xe9ria","North Macedonia":"\xc9szak-Maced\xf3nia",Oman:"Om\xe1n",Pakistan:"Pakiszt\xe1n",Panama:"Panama",Paraguay:"Paraguay",Peru:"Peru",Philippines:"F\xfcl\xf6p-szigetek",Qatar:"Katar",Rwanda:"Ruanda","San Marino":"San Marino","Saudi Arabia":"Sza\xfad-Ar\xe1bia",Senegal:"Szeneg\xe1l",Serbia:"Szerbia",Singapore:"Szingap\xfar",Slovenia:"Szlov\xe9nia","South Africa":"D\xe9l-Afrika","South Korea":"D\xe9l-Korea","Sri Lanka":"Sr\xed Lanka","St. Lucia":"Saint Lucia",Taiwan:"Tajvan",Tanzania:"Tanz\xe1nia",Thailand:"Thaif\xf6ld","Trinidad & Tobago":"Trinidad \xe9s Tobago",Tunisia:"Tun\xe9zia",Turkey:"T\xf6r\xf6korsz\xe1g","United Arab Emirates":"Egyes\xfclt Arab Em\xedrs\xe9gek",Uruguay:"Uruguay",Uzbekistan:"\xdczbegiszt\xe1n",Vietnam:"Vietn\xe1m","United States":"Egyes\xfclt \xc1llamok",Brazil:"Braz\xedlia"},it:{France:"Francia",Austria:"Austria",Belgium:"Belgio",Bulgaria:"Bulgaria",Croatia:"Croazia",Cyprus:"Cipro","Czech Republic":"Repubblica Ceca",Denmark:"Danimarca",Estonia:"Estonia",Finland:"Finlandia",Germany:"Germania",Gibraltar:"Gibilterra",Greece:"Grecia",Hungary:"Ungheria",Ireland:"Irlanda",Italy:"Italia",Latvia:"Lettonia",Liechtenstein:"Liechtenstein",Lithuania:"Lituania",Luxembourg:"Lussemburgo",Malta:"Malta",Netherlands:"Paesi Bassi",Norway:"Norvegia",Poland:"Polonia",Portugal:"Portogallo",Romania:"Romania",Slovakia:"Slovacchia",Spain:"Spagna",Sweden:"Svezia",Switzerland:"Svizzera","United Kingdom":"Regno Unito","Dominican Republic":"Repubblica Dominicana",Albania:"Albania",Algeria:"Algeria",Angola:"Angola","Antigua & Barbuda":"Antigua e Barbuda",Argentina:"Argentina",Armenia:"Armenia",Australia:"Australia",Azerbaijan:"Azerbaigian",Bahamas:"Bahamas",Bahrain:"Bahrein",Bangladesh:"Bangladesh",Benin:"Benin",Bhutan:"Bhutan",Bolivia:"Bolivia","Bosnia & Herzegovina":"Bosnia ed Erzegovina",Botswana:"Botswana",Brunei:"Brunei",Cambodia:"Cambogia",Canada:"Canada",Chile:"Cile",Colombia:"Colombia","Costa Rica":"Costa Rica","C\xf4te d\u2019Ivoire":"Costa d'Avorio",Ecuador:"Ecuador",Egypt:"Egitto","El Salvador":"El Salvador",Ethiopia:"Etiopia",Gabon:"Gabon",Gambia:"Gambia",Ghana:"Ghana",Guatemala:"Guatemala",Guyana:"Guyana","Hong Kong":"Hong Kong",Indonesia:"Indonesia",Israel:"Israele",Jamaica:"Giamaica",Japan:"Giappone",Jordan:"Giordania",Kazakhstan:"Kazakistan",Kenya:"Kenya",Kuwait:"Kuwait",Laos:"Laos","Macao SAR China":"Macao",Madagascar:"Madagascar",Malaysia:"Malesia",Mauritius:"Mauritius",Mexico:"Messico",Moldova:"Moldavia",Monaco:"Monaco",Mongolia:"Mongolia",Morocco:"Marocco",Mozambique:"Mozambico",Namibia:"Namibia","New Zealand":"Nuova Zelanda",Niger:"Niger",Nigeria:"Nigeria","North Macedonia":"Macedonia del Nord",Oman:"Oman",Pakistan:"Pakistan",Panama:"Panama",Paraguay:"Paraguay",Peru:"Per\xf9",Philippines:"Filippine",Qatar:"Qatar",Rwanda:"Ruanda","San Marino":"San Marino","Saudi Arabia":"Arabia Saudita",Senegal:"Senegal",Serbia:"Serbia",Singapore:"Singapore",Slovenia:"Slovenia","South Africa":"Sudafrica","South Korea":"Corea del Sud","Sri Lanka":"Sri Lanka","St. Lucia":"Saint Lucia",Taiwan:"Taiwan",Tanzania:"Tanzania",Thailand:"Thailandia","Trinidad & Tobago":"Trinidad e Tobago",Tunisia:"Tunisia",Turkey:"Turchia","United Arab Emirates":"Emirati Arabi Uniti",Uruguay:"Uruguay",Uzbekistan:"Uzbekistan",Vietnam:"Vietnam","United States":"Stati Uniti",Brazil:"Brasile"},pl:{France:"Francja",Austria:"Austria",Belgium:"Belgia",Bulgaria:"Bu\u0142garia",Croatia:"Chorwacja",Cyprus:"Cypr","Czech Republic":"Czechy",Denmark:"Dania",Estonia:"Estonia",Finland:"Finlandia",Germany:"Niemcy",Gibraltar:"Gibraltar",Greece:"Grecja",Hungary:"W\u0119gry",Ireland:"Irlandia",Italy:"W\u0142ochy",Latvia:"\u0141otwa",Liechtenstein:"Liechtenstein",Lithuania:"Litwa",Luxembourg:"Luksemburg",Malta:"Malta",Netherlands:"Holandia",Norway:"Norwegia",Poland:"Polska",Portugal:"Portugalia",Romania:"Rumunia",Slovakia:"S\u0142owacja",Spain:"Hiszpania",Sweden:"Szwecja",Switzerland:"Szwajcaria","United Kingdom":"Wielka Brytania","Dominican Republic":"Dominikana",Albania:"Albania",Algeria:"Algieria",Angola:"Angola","Antigua & Barbuda":"Antigua i Barbuda",Argentina:"Argentyna",Armenia:"Armenia",Australia:"Australia",Azerbaijan:"Azerbejd\u017can",Bahamas:"Bahamy",Bahrain:"Bahrajn",Bangladesh:"Bangladesz",Benin:"Benin",Bhutan:"Bhutan",Bolivia:"Boliwia","Bosnia & Herzegovina":"Bo\u015bnia i Hercegowina",Botswana:"Botswana",Brunei:"Brunei",Cambodia:"Kambod\u017ca",Canada:"Kanada",Chile:"Chile",Colombia:"Kolumbia","Costa Rica":"Kostaryka","C\xf4te d\u2019Ivoire":"Wybrze\u017ce Ko\u015bci S\u0142oniowej",Ecuador:"Ekwador",Egypt:"Egipt","El Salvador":"Salwador",Ethiopia:"Etiopia",Gabon:"Gabon",Gambia:"Gambia",Ghana:"Ghana",Guatemala:"Gwatemala",Guyana:"Gujana","Hong Kong":"Hongkong",Indonesia:"Indonezja",Israel:"Izrael",Jamaica:"Jamajka",Japan:"Japonia",Jordan:"Jordania",Kazakhstan:"Kazachstan",Kenya:"Kenia",Kuwait:"Kuwejt",Laos:"Laos","Macao SAR China":"Makau",Madagascar:"Madagaskar",Malaysia:"Malezja",Mauritius:"Mauritius",Mexico:"Meksyk",Moldova:"Mo\u0142dawia",Monaco:"Monako",Mongolia:"Mongolia",Morocco:"Maroko",Mozambique:"Mozambik",Namibia:"Namibia","New Zealand":"Nowa Zelandia",Niger:"Niger",Nigeria:"Nigeria","North Macedonia":"Macedonia P\xf3\u0142nocna",Oman:"Oman",Pakistan:"Pakistan",Panama:"Panama",Paraguay:"Paragwaj",Peru:"Peru",Philippines:"Filipiny",Qatar:"Katar",Rwanda:"Rwanda","San Marino":"San Marino","Saudi Arabia":"Arabia Saudyjska",Senegal:"Senegal",Serbia:"Serbia",Singapore:"Singapur",Slovenia:"S\u0142owenia","South Africa":"Republika Po\u0142udniowej Afryki","South Korea":"Korea Po\u0142udniowa","Sri Lanka":"Sri Lanka","St. Lucia":"Saint Lucia",Taiwan:"Tajwan",Tanzania:"Tanzania",Thailand:"Tajlandia","Trinidad & Tobago":"Trynidad i Tobago",Tunisia:"Tunezja",Turkey:"Turcja","United Arab Emirates":"Zjednoczone Emiraty Arabskie",Uruguay:"Urugwaj",Uzbekistan:"Uzbekistan",Vietnam:"Wietnam","United States":"Stany Zjednoczone",Brazil:"Brazylia"},pt:{France:"Fran\xe7a",Austria:"\xc1ustria",Belgium:"B\xe9lgica",Bulgaria:"Bulg\xe1ria",Croatia:"Cro\xe1cia",Cyprus:"Chipre","Czech Republic":"Rep\xfablica Tcheca",Denmark:"Dinamarca",Estonia:"Est\xf4nia",Finland:"Finl\xe2ndia",Germany:"Alemanha",Gibraltar:"Gibraltar",Greece:"Gr\xe9cia",Hungary:"Hungria",Ireland:"Irlanda",Italy:"It\xe1lia",Latvia:"Let\xf4nia",Liechtenstein:"Liechtenstein",Lithuania:"Litu\xe2nia",Luxembourg:"Luxemburgo",Malta:"Malta",Netherlands:"Pa\xedses Baixos",Norway:"Noruega",Poland:"Pol\xf4nia",Portugal:"Portugal",Romania:"Rom\xeania",Slovakia:"Eslov\xe1quia",Spain:"Espanha",Sweden:"Su\xe9cia",Switzerland:"Su\xed\xe7a","United Kingdom":"Reino Unido","Dominican Republic":"Rep\xfablica Dominicana",Albania:"Alb\xe2nia",Algeria:"Arg\xe9lia",Angola:"Angola","Antigua & Barbuda":"Ant\xedgua e Barbuda",Argentina:"Argentina",Armenia:"Arm\xeania",Australia:"Austr\xe1lia",Azerbaijan:"Azerbaij\xe3o",Bahamas:"Bahamas",Bahrain:"Bahrein",Bangladesh:"Bangladesh",Benin:"Benin",Bhutan:"But\xe3o",Bolivia:"Bol\xedvia","Bosnia & Herzegovina":"B\xf3snia e Herzegovina",Botswana:"Botsuana",Brunei:"Brunei",Cambodia:"Camboja",Canada:"Canad\xe1",Chile:"Chile",Colombia:"Col\xf4mbia","Costa Rica":"Costa Rica","C\xf4te d\u2019Ivoire":"Costa do Marfim",Ecuador:"Equador",Egypt:"Egito","El Salvador":"El Salvador",Ethiopia:"Eti\xf3pia",Gabon:"Gab\xe3o",Gambia:"G\xe2mbia",Ghana:"Gana",Guatemala:"Guatemala",Guyana:"Guiana","Hong Kong":"Hong Kong",Indonesia:"Indon\xe9sia",Israel:"Israel",Jamaica:"Jamaica",Japan:"Jap\xe3o",Jordan:"Jord\xe2nia",Kazakhstan:"Cazaquist\xe3o",Kenya:"Qu\xeania",Kuwait:"Kuwait",Laos:"Laos","Macao SAR China":"Macau",Madagascar:"Madagascar",Malaysia:"Mal\xe1sia",Mauritius:"Maur\xedcio",Mexico:"M\xe9xico",Moldova:"Mold\xe1via",Monaco:"M\xf4naco",Mongolia:"Mong\xf3lia",Morocco:"Marrocos",Mozambique:"Mo\xe7ambique",Namibia:"Nam\xedbia","New Zealand":"Nova Zel\xe2ndia",Niger:"N\xedger",Nigeria:"Nig\xe9ria","North Macedonia":"Maced\xf4nia do Norte",Oman:"Om\xe3",Pakistan:"Paquist\xe3o",Panama:"Panam\xe1",Paraguay:"Paraguai",Peru:"Peru",Philippines:"Filipinas",Qatar:"Catar",Rwanda:"Ruanda","San Marino":"San Marino","Saudi Arabia":"Ar\xe1bia Saudita",Senegal:"Senegal",Serbia:"S\xe9rvia",Singapore:"Singapura",Slovenia:"Eslov\xeania","South Africa":"\xc1frica do Sul","South Korea":"Coreia do Sul","Sri Lanka":"Sri Lanka","St. Lucia":"Santa L\xfacia",Taiwan:"Taiwan",Tanzania:"Tanz\xe2nia",Thailand:"Tail\xe2ndia","Trinidad & Tobago":"Trinidad e Tobago",Tunisia:"Tun\xedsia",Turkey:"Turquia","United Arab Emirates":"Emirados \xc1rabes Unidos",Uruguay:"Uruguai",Uzbekistan:"Uzbequist\xe3o",Vietnam:"Vietn\xe3","United States":"Estados Unidos",Brazil:"Brasil"},ro:{France:"Fran\u021ba",Austria:"Austria",Belgium:"Belgia",Bulgaria:"Bulgaria",Croatia:"Croa\u021bia",Cyprus:"Cipru","Czech Republic":"Republica Ceh\u0103",Denmark:"Danemarca",Estonia:"Estonia",Finland:"Finlanda",Germany:"Germania",Gibraltar:"Gibraltar",Greece:"Grecia",Hungary:"Ungaria",Ireland:"Irlanda",Italy:"Italia",Latvia:"Letonia",Liechtenstein:"Liechtenstein",Lithuania:"Lituania",Luxembourg:"Luxemburg",Malta:"Malta",Netherlands:"\u021a\u0103rile de Jos",Norway:"Norvegia",Poland:"Polonia",Portugal:"Portugalia",Romania:"Rom\xe2nia",Slovakia:"Slovacia",Spain:"Spania",Sweden:"Suedia",Switzerland:"Elve\u021bia","United Kingdom":"Regatul Unit","Dominican Republic":"Republica Dominican\u0103",Albania:"Albania",Algeria:"Algeria",Angola:"Angola","Antigua & Barbuda":"Antigua \u0219i Barbuda",Argentina:"Argentina",Armenia:"Armenia",Australia:"Australia",Azerbaijan:"Azerbaidjan",Bahamas:"Bahamas",Bahrain:"Bahrein",Bangladesh:"Bangladesh",Benin:"Benin",Bhutan:"Bhutan",Bolivia:"Bolivia","Bosnia & Herzegovina":"Bosnia \u0219i Her\u021begovina",Botswana:"Botswana",Brunei:"Brunei",Cambodia:"Cambodgia",Canada:"Canada",Chile:"Chile",Colombia:"Columbia","Costa Rica":"Costa Rica","C\xf4te d\u2019Ivoire":"Coasta de Filde\u0219",Ecuador:"Ecuador",Egypt:"Egipt","El Salvador":"El Salvador",Ethiopia:"Etiopia",Gabon:"Gabon",Gambia:"Gambia",Ghana:"Ghana",Guatemala:"Guatemala",Guyana:"Guyana","Hong Kong":"Hong Kong",Indonesia:"Indonezia",Israel:"Israel",Jamaica:"Jamaica",Japan:"Japonia",Jordan:"Iordania",Kazakhstan:"Kazahstan",Kenya:"Kenya",Kuwait:"Kuweit",Laos:"Laos","Macao SAR China":"Macao",Madagascar:"Madagascar",Malaysia:"Malaezia",Mauritius:"Mauritius",Mexico:"Mexic",Moldova:"Moldova",Monaco:"Monaco",Mongolia:"Mongolia",Morocco:"Maroc",Mozambique:"Mozambic",Namibia:"Namibia","New Zealand":"Noua Zeeland\u0103",Niger:"Niger",Nigeria:"Nigeria","North Macedonia":"Macedonia de Nord",Oman:"Oman",Pakistan:"Pakistan",Panama:"Panama",Paraguay:"Paraguay",Peru:"Peru",Philippines:"Filipine",Qatar:"Qatar",Rwanda:"Rwanda","San Marino":"San Marino","Saudi Arabia":"Arabia Saudit\u0103",Senegal:"Senegal",Serbia:"Serbia",Singapore:"Singapore",Slovenia:"Slovenia","South Africa":"Africa de Sud","South Korea":"Coreea de Sud","Sri Lanka":"Sri Lanka","St. Lucia":"Sf\xe2nta Lucia",Taiwan:"Taiwan",Tanzania:"Tanzania",Thailand:"Thailanda","Trinidad & Tobago":"Trinidad \u0219i Tobago",Tunisia:"Tunisia",Turkey:"Turcia","United Arab Emirates":"Emiratele Arabe Unite",Uruguay:"Uruguay",Uzbekistan:"Uzbekistan",Vietnam:"Vietnam","United States":"Statele Unite",Brazil:"Brazilia"},sk:{France:"Franc\xfazsko",Austria:"Rak\xfasko",Belgium:"Belgicko",Bulgaria:"Bulharsko",Croatia:"Chorv\xe1tsko",Cyprus:"Cyprus","Czech Republic":"\u010cesk\xe1 republika",Denmark:"D\xe1nsko",Estonia:"Est\xf3nsko",Finland:"F\xednsko",Germany:"Nemecko",Gibraltar:"Gibralt\xe1r",Greece:"Gr\xe9cko",Hungary:"Ma\u010farsko",Ireland:"\xcdrsko",Italy:"Taliansko",Latvia:"Loty\u0161sko",Liechtenstein:"Lichten\u0161tajnsko",Lithuania:"Litva",Luxembourg:"Luxembursko",Malta:"Malta",Netherlands:"Holandsko",Norway:"N\xf3rsko",Poland:"Po\u013esko",Portugal:"Portugalsko",Romania:"Rumunsko",Slovakia:"Slovensko",Spain:"\u0160panielsko",Sweden:"\u0160v\xe9dsko",Switzerland:"\u0160vaj\u010diarsko","United Kingdom":"Spojen\xe9 kr\xe1\u013eovstvo","Dominican Republic":"Dominik\xe1nska republika",Albania:"Alb\xe1nsko",Algeria:"Al\u017e\xedrsko",Angola:"Angola","Antigua & Barbuda":"Antigua a Barbuda",Argentina:"Argent\xedna",Armenia:"Arm\xe9nsko",Australia:"Austr\xe1lia",Azerbaijan:"Azerbajd\u017ean",Bahamas:"Bahamy",Bahrain:"Bahrajn",Bangladesh:"Banglad\xe9\u0161",Benin:"Benin",Bhutan:"Bhut\xe1n",Bolivia:"Bol\xedvia","Bosnia & Herzegovina":"Bosna a Hercegovina",Botswana:"Botswana",Brunei:"Brunej",Cambodia:"Kambod\u017ea",Canada:"Kanada",Chile:"\u010cile",Colombia:"Kolumbia","Costa Rica":"Kostarika","C\xf4te d\u2019Ivoire":"Pobre\u017eie Slonoviny",Ecuador:"Ekv\xe1dor",Egypt:"Egypt","El Salvador":"Salv\xe1dor",Ethiopia:"Eti\xf3pia",Gabon:"Gabon",Gambia:"Gambia",Ghana:"Ghana",Guatemala:"Guatemala",Guyana:"Guyana","Hong Kong":"Hongkong",Indonesia:"Indon\xe9zia",Israel:"Izrael",Jamaica:"Jamajka",Japan:"Japonsko",Jordan:"Jord\xe1nsko",Kazakhstan:"Kazachstan",Kenya:"Ke\u0148a",Kuwait:"Kuvajt",Laos:"Laos","Macao SAR China":"Macao",Madagascar:"Madagaskar",Malaysia:"Malajzia",Mauritius:"Maur\xedcius",Mexico:"Mexiko",Moldova:"Moldavsko",Monaco:"Monako",Mongolia:"Mongolsko",Morocco:"Maroko",Mozambique:"Mozambik",Namibia:"Nam\xedbia","New Zealand":"Nov\xfd Z\xe9land",Niger:"Niger",Nigeria:"Nig\xe9ria","North Macedonia":"Severn\xe9 Maced\xf3nsko",Oman:"Om\xe1n",Pakistan:"Pakistan",Panama:"Panama",Paraguay:"Paraguaj",Peru:"Peru",Philippines:"Filip\xedny",Qatar:"Katar",Rwanda:"Rwanda","San Marino":"San Mar\xedno","Saudi Arabia":"Saudsk\xe1 Ar\xe1bia",Senegal:"Senegal",Serbia:"Srbsko",Singapore:"Singapur",Slovenia:"Slovinsko","South Africa":"Ju\u017en\xe1 Afrika","South Korea":"Ju\u017en\xe1 K\xf3rea","Sri Lanka":"Sr\xed Lanka","St. Lucia":"Sv\xe4t\xe1 Lucia",Taiwan:"Taiwan",Tanzania:"Tanz\xe1nia",Thailand:"Thajsko","Trinidad & Tobago":"Trinidad a Tobago",Tunisia:"Tunisko",Turkey:"Turecko","United Arab Emirates":"Spojen\xe9 arabsk\xe9 emir\xe1ty",Uruguay:"Uruguaj",Uzbekistan:"Uzbekistan",Vietnam:"Vietnam","United States":"Spojen\xe9 \u0161t\xe1ty",Brazil:"Braz\xedlia"},sv:{France:"Frankrike",Austria:"\xd6sterrike",Belgium:"Belgien",Bulgaria:"Bulgarien",Croatia:"Kroatien",Cyprus:"Cypern","Czech Republic":"Tjeckien",Denmark:"Danmark",Estonia:"Estland",Finland:"Finland",Germany:"Tyskland",Gibraltar:"Gibraltar",Greece:"Grekland",Hungary:"Ungern",Ireland:"Irland",Italy:"Italien",Latvia:"Lettland",Liechtenstein:"Liechtenstein",Lithuania:"Litauen",Luxembourg:"Luxemburg",Malta:"Malta",Netherlands:"Nederl\xe4nderna",Norway:"Norge",Poland:"Polen",Portugal:"Portugal",Romania:"Rum\xe4nien",Slovakia:"Slovakien",Spain:"Spanien",Sweden:"Sverige",Switzerland:"Schweiz","United Kingdom":"Storbritannien","Dominican Republic":"Dominikanska republiken",Albania:"Albanien",Algeria:"Algeriet",Angola:"Angola","Antigua & Barbuda":"Antigua och Barbuda",Argentina:"Argentina",Armenia:"Armenien",Australia:"Australien",Azerbaijan:"Azerbajdzjan",Bahamas:"Bahamas",Bahrain:"Bahrain",Bangladesh:"Bangladesh",Benin:"Benin",Bhutan:"Bhutan",Bolivia:"Bolivia","Bosnia & Herzegovina":"Bosnien och Hercegovina",Botswana:"Botswana",Brunei:"Brunei",Cambodia:"Kambodja",Canada:"Kanada",Chile:"Chile",Colombia:"Colombia","Costa Rica":"Costa Rica","C\xf4te d\u2019Ivoire":"Elfenbenskusten",Ecuador:"Ecuador",Egypt:"Egypten","El Salvador":"El Salvador",Ethiopia:"Etiopien",Gabon:"Gabon",Gambia:"Gambia",Ghana:"Ghana",Guatemala:"Guatemala",Guyana:"Guyana","Hong Kong":"Hongkong",Indonesia:"Indonesien",Israel:"Israel",Jamaica:"Jamaica",Japan:"Japan",Jordan:"Jordanien",Kazakhstan:"Kazakstan",Kenya:"Kenya",Kuwait:"Kuwait",Laos:"Laos","Macao SAR China":"Macao",Madagascar:"Madagaskar",Malaysia:"Malaysia",Mauritius:"Mauritius",Mexico:"Mexiko",Moldova:"Moldavien",Monaco:"Monaco",Mongolia:"Mongoliet",Morocco:"Marocko",Mozambique:"Mo\xe7ambique",Namibia:"Namibia","New Zealand":"Nya Zeeland",Niger:"Niger",Nigeria:"Nigeria","North Macedonia":"Nordmakedonien",Oman:"Oman",Pakistan:"Pakistan",Panama:"Panama",Paraguay:"Paraguay",Peru:"Peru",Philippines:"Filippinerna",Qatar:"Qatar",Rwanda:"Rwanda","San Marino":"San Marino","Saudi Arabia":"Saudiarabien",Senegal:"Senegal",Serbia:"Serbien",Singapore:"Singapore",Slovenia:"Slovenien","South Africa":"Sydafrika","South Korea":"Sydkorea","Sri Lanka":"Sri Lanka","St. Lucia":"Saint Lucia",Taiwan:"Taiwan",Tanzania:"Tanzania",Thailand:"Thailand","Trinidad & Tobago":"Trinidad och Tobago",Tunisia:"Tunisien",Turkey:"Turkiet","United Arab Emirates":"F\xf6renade Arabemiraten",Uruguay:"Uruguay",Uzbekistan:"Uzbekistan",Vietnam:"Vietnam","United States":"USA",Brazil:"Brasilien"},uk:{France:"\u0424\u0440\u0430\u043d\u0446\u0456\u044f",Austria:"\u0410\u0432\u0441\u0442\u0440\u0456\u044f",Belgium:"\u0411\u0435\u043b\u044c\u0433\u0456\u044f",Bulgaria:"\u0411\u043e\u043b\u0433\u0430\u0440\u0456\u044f",Croatia:"\u0425\u043e\u0440\u0432\u0430\u0442\u0456\u044f",Cyprus:"\u041a\u0456\u043f\u0440","Czech Republic":"\u0427\u0435\u0445\u0456\u044f",Denmark:"\u0414\u0430\u043d\u0456\u044f",Estonia:"\u0415\u0441\u0442\u043e\u043d\u0456\u044f",Finland:"\u0424\u0456\u043d\u043b\u044f\u043d\u0434\u0456\u044f",Germany:"\u041d\u0456\u043c\u0435\u0447\u0447\u0438\u043d\u0430",Gibraltar:"\u0413\u0456\u0431\u0440\u0430\u043b\u0442\u0430\u0440",Greece:"\u0413\u0440\u0435\u0446\u0456\u044f",Hungary:"\u0423\u0433\u043e\u0440\u0449\u0438\u043d\u0430",Ireland:"\u0406\u0440\u043b\u0430\u043d\u0434\u0456\u044f",Italy:"\u0406\u0442\u0430\u043b\u0456\u044f",Latvia:"\u041b\u0430\u0442\u0432\u0456\u044f",Liechtenstein:"\u041b\u0456\u0445\u0442\u0435\u043d\u0448\u0442\u0435\u0439\u043d",Lithuania:"\u041b\u0438\u0442\u0432\u0430",Luxembourg:"\u041b\u044e\u043a\u0441\u0435\u043c\u0431\u0443\u0440\u0433",Malta:"\u041c\u0430\u043b\u044c\u0442\u0430",Netherlands:"\u041d\u0456\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u0438",Norway:"\u041d\u043e\u0440\u0432\u0435\u0433\u0456\u044f",Poland:"\u041f\u043e\u043b\u044c\u0449\u0430",Portugal:"\u041f\u043e\u0440\u0442\u0443\u0433\u0430\u043b\u0456\u044f",Romania:"\u0420\u0443\u043c\u0443\u043d\u0456\u044f",Slovakia:"\u0421\u043b\u043e\u0432\u0430\u0447\u0447\u0438\u043d\u0430",Spain:"\u0406\u0441\u043f\u0430\u043d\u0456\u044f",Sweden:"\u0428\u0432\u0435\u0446\u0456\u044f",Switzerland:"\u0428\u0432\u0435\u0439\u0446\u0430\u0440\u0456\u044f","United Kingdom":"\u0412\u0435\u043b\u0438\u043a\u0430 \u0411\u0440\u0438\u0442\u0430\u043d\u0456\u044f","Dominican Republic":"\u0414\u043e\u043c\u0456\u043d\u0456\u043a\u0430\u043d\u0441\u044c\u043a\u0430 \u0420\u0435\u0441\u043f\u0443\u0431\u043b\u0456\u043a\u0430",Albania:"\u0410\u043b\u0431\u0430\u043d\u0456\u044f",Algeria:"\u0410\u043b\u0436\u0438\u0440",Angola:"\u0410\u043d\u0433\u043e\u043b\u0430","Antigua & Barbuda":"\u0410\u043d\u0442\u0438\u0433\u0443\u0430 \u0456 \u0411\u0430\u0440\u0431\u0443\u0434\u0430",Argentina:"\u0410\u0440\u0433\u0435\u043d\u0442\u0438\u043d\u0430",Armenia:"\u0412\u0456\u0440\u043c\u0435\u043d\u0456\u044f",Australia:"\u0410\u0432\u0441\u0442\u0440\u0430\u043b\u0456\u044f",Azerbaijan:"\u0410\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043d",Bahamas:"\u0411\u0430\u0433\u0430\u043c\u0441\u044c\u043a\u0456 \u041e\u0441\u0442\u0440\u043e\u0432\u0438",Bahrain:"\u0411\u0430\u0445\u0440\u0435\u0439\u043d",Bangladesh:"\u0411\u0430\u043d\u0433\u043b\u0430\u0434\u0435\u0448",Benin:"\u0411\u0435\u043d\u0456\u043d",Bhutan:"\u0411\u0443\u0442\u0430\u043d",Bolivia:"\u0411\u043e\u043b\u0456\u0432\u0456\u044f","Bosnia & Herzegovina":"\u0411\u043e\u0441\u043d\u0456\u044f \u0456 \u0413\u0435\u0440\u0446\u0435\u0433\u043e\u0432\u0438\u043d\u0430",Botswana:"\u0411\u043e\u0442\u0441\u0432\u0430\u043d\u0430",Brunei:"\u0411\u0440\u0443\u043d\u0435\u0439",Cambodia:"\u041a\u0430\u043c\u0431\u043e\u0434\u0436\u0430",Canada:"\u041a\u0430\u043d\u0430\u0434\u0430",Chile:"\u0427\u0438\u043b\u0456",Colombia:"\u041a\u043e\u043b\u0443\u043c\u0431\u0456\u044f","Costa Rica":"\u041a\u043e\u0441\u0442\u0430-\u0420\u0438\u043a\u0430","C\xf4te d\u2019Ivoire":"\u041a\u043e\u0442-\u0434'\u0406\u0432\u0443\u0430\u0440",Ecuador:"\u0415\u043a\u0432\u0430\u0434\u043e\u0440",Egypt:"\u0404\u0433\u0438\u043f\u0435\u0442","El Salvador":"\u0421\u0430\u043b\u044c\u0432\u0430\u0434\u043e\u0440",Ethiopia:"\u0415\u0444\u0456\u043e\u043f\u0456\u044f",Gabon:"\u0413\u0430\u0431\u043e\u043d",Gambia:"\u0413\u0430\u043c\u0431\u0456\u044f",Ghana:"\u0413\u0430\u043d\u0430",Guatemala:"\u0413\u0432\u0430\u0442\u0435\u043c\u0430\u043b\u0430",Guyana:"\u0413\u0430\u044f\u043d\u0430","Hong Kong":"\u0413\u043e\u043d\u043a\u043e\u043d\u0433",Indonesia:"\u0406\u043d\u0434\u043e\u043d\u0435\u0437\u0456\u044f",Israel:"\u0406\u0437\u0440\u0430\u0457\u043b\u044c",Jamaica:"\u042f\u043c\u0430\u0439\u043a\u0430",Japan:"\u042f\u043f\u043e\u043d\u0456\u044f",Jordan:"\u0419\u043e\u0440\u0434\u0430\u043d\u0456\u044f",Kazakhstan:"\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d",Kenya:"\u041a\u0435\u043d\u0456\u044f",Kuwait:"\u041a\u0443\u0432\u0435\u0439\u0442",Laos:"\u041b\u0430\u043e\u0441","Macao SAR China":"\u041c\u0430\u043a\u0430\u043e",Madagascar:"\u041c\u0430\u0434\u0430\u0433\u0430\u0441\u043a\u0430\u0440",Malaysia:"\u041c\u0430\u043b\u0430\u0439\u0437\u0456\u044f",Mauritius:"\u041c\u0430\u0432\u0440\u0438\u043a\u0456\u0439",Mexico:"\u041c\u0435\u043a\u0441\u0438\u043a\u0430",Moldova:"\u041c\u043e\u043b\u0434\u043e\u0432\u0430",Monaco:"\u041c\u043e\u043d\u0430\u043a\u043e",Mongolia:"\u041c\u043e\u043d\u0433\u043e\u043b\u0456\u044f",Morocco:"\u041c\u0430\u0440\u043e\u043a\u043a\u043e",Mozambique:"\u041c\u043e\u0437\u0430\u043c\u0431\u0456\u043a",Namibia:"\u041d\u0430\u043c\u0456\u0431\u0456\u044f","New Zealand":"\u041d\u043e\u0432\u0430 \u0417\u0435\u043b\u0430\u043d\u0434\u0456\u044f",Niger:"\u041d\u0456\u0433\u0435\u0440",Nigeria:"\u041d\u0456\u0433\u0435\u0440\u0456\u044f","North Macedonia":"\u041f\u0456\u0432\u043d\u0456\u0447\u043d\u0430 \u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0456\u044f",Oman:"\u041e\u043c\u0430\u043d",Pakistan:"\u041f\u0430\u043a\u0438\u0441\u0442\u0430\u043d",Panama:"\u041f\u0430\u043d\u0430\u043c\u0430",Paraguay:"\u041f\u0430\u0440\u0430\u0433\u0432\u0430\u0439",Peru:"\u041f\u0435\u0440\u0443",Philippines:"\u0424\u0456\u043b\u0456\u043f\u043f\u0456\u043d\u0438",Qatar:"\u041a\u0430\u0442\u0430\u0440",Rwanda:"\u0420\u0443\u0430\u043d\u0434\u0430","San Marino":"\u0421\u0430\u043d-\u041c\u0430\u0440\u0438\u043d\u043e","Saudi Arabia":"\u0421\u0430\u0443\u0434\u0456\u0432\u0441\u044c\u043a\u0430 \u0410\u0440\u0430\u0432\u0456\u044f",Senegal:"\u0421\u0435\u043d\u0435\u0433\u0430\u043b",Serbia:"\u0421\u0435\u0440\u0431\u0456\u044f",Singapore:"\u0421\u0456\u043d\u0433\u0430\u043f\u0443\u0440",Slovenia:"\u0421\u043b\u043e\u0432\u0435\u043d\u0456\u044f","South Africa":"\u041f\u0456\u0432\u0434\u0435\u043d\u043d\u0430 \u0410\u0444\u0440\u0438\u043a\u0430","South Korea":"\u041f\u0456\u0432\u0434\u0435\u043d\u043d\u0430 \u041a\u043e\u0440\u0435\u044f","Sri Lanka":"\u0428\u0440\u0456-\u041b\u0430\u043d\u043a\u0430","St. Lucia":"\u0421\u0435\u043d\u0442-\u041b\u044e\u0441\u0456\u044f",Taiwan:"\u0422\u0430\u0439\u0432\u0430\u043d\u044c",Tanzania:"\u0422\u0430\u043d\u0437\u0430\u043d\u0456\u044f",Thailand:"\u0422\u0430\u0457\u043b\u0430\u043d\u0434","Trinidad & Tobago":"\u0422\u0440\u0438\u043d\u0456\u0434\u0430\u0434 \u0456 \u0422\u043e\u0431\u0430\u0433\u043e",Tunisia:"\u0422\u0443\u043d\u0456\u0441",Turkey:"\u0422\u0443\u0440\u0435\u0447\u0447\u0438\u043d\u0430","United Arab Emirates":"\u041e\u0431'\u0454\u0434\u043d\u0430\u043d\u0456 \u0410\u0440\u0430\u0431\u0441\u044c\u043a\u0456 \u0415\u043c\u0456\u0440\u0430\u0442\u0438",Uruguay:"\u0423\u0440\u0443\u0433\u0432\u0430\u0439",Uzbekistan:"\u0423\u0437\u0431\u0435\u043a\u0438\u0441\u0442\u0430\u043d",Vietnam:"\u0412'\u0454\u0442\u043d\u0430\u043c","United States":"\u0421\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0456 \u0428\u0442\u0430\u0442\u0438",Brazil:"\u0411\u0440\u0430\u0437\u0438\u043b\u0456\u044f"},nl:{France:"Frankrijk",Austria:"Oostenrijk",Belgium:"Belgi\xeb",Bulgaria:"Bulgarije",Croatia:"Kroati\xeb",Cyprus:"Cyprus","Czech Republic":"Tsjechi\xeb",Denmark:"Denemarken",Estonia:"Estland",Finland:"Finland",Germany:"Duitsland",Gibraltar:"Gibraltar",Greece:"Griekenland",Hungary:"Hongarije",Ireland:"Ierland",Italy:"Itali\xeb",Latvia:"Letland",Liechtenstein:"Liechtenstein",Lithuania:"Litouwen",Luxembourg:"Luxemburg",Malta:"Malta",Netherlands:"Nederland",Norway:"Noorwegen",Poland:"Polen",Portugal:"Portugal",Romania:"Roemeni\xeb",Slovakia:"Slowakije",Spain:"Spanje",Sweden:"Zweden",Switzerland:"Zwitserland","United Kingdom":"Verenigd Koninkrijk","Dominican Republic":"Dominicaanse Republiek",Albania:"Albani\xeb",Algeria:"Algerije",Angola:"Angola","Antigua & Barbuda":"Antigua en Barbuda",Argentina:"Argentini\xeb",Armenia:"Armeni\xeb",Australia:"Australi\xeb",Azerbaijan:"Azerbeidzjan",Bahamas:"Bahama's",Bahrain:"Bahrein",Bangladesh:"Bangladesh",Benin:"Benin",Bhutan:"Bhutan",Bolivia:"Bolivia","Bosnia & Herzegovina":"Bosni\xeb en Herzegovina",Botswana:"Botswana",Brunei:"Brunei",Cambodia:"Cambodja",Canada:"Canada",Chile:"Chili",Colombia:"Colombia","Costa Rica":"Costa Rica","C\xf4te d\u2019Ivoire":"Ivoorkust",Ecuador:"Ecuador",Egypt:"Egypte","El Salvador":"El Salvador",Ethiopia:"Ethiopi\xeb",Gabon:"Gabon",Gambia:"Gambia",Ghana:"Ghana",Guatemala:"Guatemala",Guyana:"Guyana","Hong Kong":"Hongkong",Indonesia:"Indonesi\xeb",Israel:"Isra\xebl",Jamaica:"Jamaica",Japan:"Japan",Jordan:"Jordani\xeb",Kazakhstan:"Kazachstan",Kenya:"Kenia",Kuwait:"Koeweit",Laos:"Laos","Macao SAR China":"Macau",Madagascar:"Madagaskar",Malaysia:"Maleisi\xeb",Mauritius:"Mauritius",Mexico:"Mexico",Moldova:"Moldavi\xeb",Monaco:"Monaco",Mongolia:"Mongoli\xeb",Morocco:"Marokko",Mozambique:"Mozambique",Namibia:"Namibi\xeb","New Zealand":"Nieuw-Zeeland",Niger:"Niger",Nigeria:"Nigeria","North Macedonia":"Noord-Macedoni\xeb",Oman:"Oman",Pakistan:"Pakistan",Panama:"Panama",Paraguay:"Paraguay",Peru:"Peru",Philippines:"Filipijnen",Qatar:"Qatar",Rwanda:"Rwanda","San Marino":"San Marino","Saudi Arabia":"Saoedi-Arabi\xeb",Senegal:"Senegal",Serbia:"Servi\xeb",Singapore:"Singapore",Slovenia:"Sloveni\xeb","South Africa":"Zuid-Afrika","South Korea":"Zuid-Korea","Sri Lanka":"Sri Lanka","St. Lucia":"Saint Lucia",Taiwan:"Taiwan",Tanzania:"Tanzania",Thailand:"Thailand","Trinidad & Tobago":"Trinidad en Tobago",Tunisia:"Tunesi\xeb",Turkey:"Turkije","United Arab Emirates":"Verenigde Arabische Emiraten",Uruguay:"Uruguay",Uzbekistan:"Oezbekistan",Vietnam:"Vietnam","United States":"Verenigde Staten",Brazil:"Brazili\xeb"},de:{France:"Frankreich",Austria:"\xd6sterreich",Belgium:"Belgien",Bulgaria:"Bulgarien",Croatia:"Kroatien",Cyprus:"Zypern","Czech Republic":"Tschechien",Denmark:"D\xe4nemark",Estonia:"Estland",Finland:"Finnland",Germany:"Deutschland",Gibraltar:"Gibraltar",Greece:"Griechenland",Hungary:"Ungarn",Ireland:"Irland",Italy:"Italien",Latvia:"Lettland",Liechtenstein:"Liechtenstein",Lithuania:"Litauen",Luxembourg:"Luxemburg",Malta:"Malta",Netherlands:"Niederlande",Norway:"Norwegen",Poland:"Polen",Portugal:"Portugal",Romania:"Rum\xe4nien",Slovakia:"Slowakei",Spain:"Spanien",Sweden:"Schweden",Switzerland:"Schweiz","United Kingdom":"Vereinigtes K\xf6nigreich","Dominican Republic":"Dominikanische Republik",Albania:"Albanien",Algeria:"Algerien",Angola:"Angola","Antigua & Barbuda":"Antigua und Barbuda",Argentina:"Argentinien",Armenia:"Armenien",Australia:"Australien",Azerbaijan:"Aserbaidschan",Bahamas:"Bahamas",Bahrain:"Bahrain",Bangladesh:"Bangladesch",Benin:"Benin",Bhutan:"Bhutan",Bolivia:"Bolivien","Bosnia & Herzegovina":"Bosnien und Herzegowina",Botswana:"Botswana",Brunei:"Brunei",Cambodia:"Kambodscha",Canada:"Kanada",Chile:"Chile",Colombia:"Kolumbien","Costa Rica":"Costa Rica","C\xf4te d\u2019Ivoire":"Elfenbeink\xfcste",Ecuador:"Ecuador",Egypt:"\xc4gypten","El Salvador":"El Salvador",Ethiopia:"\xc4thiopien",Gabon:"Gabun",Gambia:"Gambia",Ghana:"Ghana",Guatemala:"Guatemala",Guyana:"Guyana","Hong Kong":"Hongkong",Indonesia:"Indonesien",Israel:"Israel",Jamaica:"Jamaika",Japan:"Japan",Jordan:"Jordanien",Kazakhstan:"Kasachstan",Kenya:"Kenia",Kuwait:"Kuwait",Laos:"Laos","Macao SAR China":"Macao",Madagascar:"Madagaskar",Malaysia:"Malaysia",Mauritius:"Mauritius",Mexico:"Mexiko",Moldova:"Moldawien",Monaco:"Monaco",Mongolia:"Mongolei",Morocco:"Marokko",Mozambique:"Mosambik",Namibia:"Namibia","New Zealand":"Neuseeland",Niger:"Niger",Nigeria:"Nigeria","North Macedonia":"Nordmazedonien",Oman:"Oman",Pakistan:"Pakistan",Panama:"Panama",Paraguay:"Paraguay",Peru:"Peru",Philippines:"Philippinen",Qatar:"Katar",Rwanda:"Ruanda","San Marino":"San Marino","Saudi Arabia":"Saudi-Arabien",Senegal:"Senegal",Serbia:"Serbien",Singapore:"Singapur",Slovenia:"Slowenien","South Africa":"S\xfcdafrika","South Korea":"S\xfcdkorea","Sri Lanka":"Sri Lanka","St. Lucia":"St. Lucia",Taiwan:"Taiwan",Tanzania:"Tansania",Thailand:"Thailand","Trinidad & Tobago":"Trinidad und Tobago",Tunisia:"Tunesien",Turkey:"T\xfcrkei","United Arab Emirates":"Vereinigte Arabische Emirate",Uruguay:"Uruguay",Uzbekistan:"Usbekistan",Vietnam:"Vietnam","United States":"Vereinigte Staaten",Brazil:"Brasilien"},es:{France:"Francia",Austria:"Austria",Belgium:"B\xe9lgica",Bulgaria:"Bulgaria",Croatia:"Croacia",Cyprus:"Chipre","Czech Republic":"Rep\xfablica Checa",Denmark:"Dinamarca",Estonia:"Estonia",Finland:"Finlandia",Germany:"Alemania",Gibraltar:"Gibraltar",Greece:"Grecia",Hungary:"Hungr\xeda",Ireland:"Irlanda",Italy:"Italia",Latvia:"Letonia",Liechtenstein:"Liechtenstein",Lithuania:"Lituania",Luxembourg:"Luxemburgo",Malta:"Malta",Netherlands:"Pa\xedses Bajos",Norway:"Noruega",Poland:"Polonia",Portugal:"Portugal",Romania:"Ruman\xeda",Slovakia:"Eslovaquia",Spain:"Espa\xf1a",Sweden:"Suecia",Switzerland:"Suiza","United Kingdom":"Reino Unido","Dominican Republic":"Rep\xfablica Dominicana",Albania:"Albania",Algeria:"Argelia",Angola:"Angola","Antigua & Barbuda":"Antigua y Barbuda",Argentina:"Argentina",Armenia:"Armenia",Australia:"Australia",Azerbaijan:"Azerbaiy\xe1n",Bahamas:"Bahamas",Bahrain:"Bar\xe9in",Bangladesh:"Banglad\xe9s",Benin:"Ben\xedn",Bhutan:"But\xe1n",Bolivia:"Bolivia","Bosnia & Herzegovina":"Bosnia y Herzegovina",Botswana:"Botsuana",Brunei:"Brun\xe9i",Cambodia:"Camboya",Canada:"Canad\xe1",Chile:"Chile",Colombia:"Colombia","Costa Rica":"Costa Rica","C\xf4te d\u2019Ivoire":"Costa de Marfil",Ecuador:"Ecuador",Egypt:"Egipto","El Salvador":"El Salvador",Ethiopia:"Etiop\xeda",Gabon:"Gab\xf3n",Gambia:"Gambia",Ghana:"Ghana",Guatemala:"Guatemala",Guyana:"Guyana","Hong Kong":"Hong Kong",Indonesia:"Indonesia",Israel:"Israel",Jamaica:"Jamaica",Japan:"Jap\xf3n",Jordan:"Jordania",Kazakhstan:"Kazajist\xe1n",Kenya:"Kenia",Kuwait:"Kuwait",Laos:"Laos","Macao SAR China":"Macao",Madagascar:"Madagascar",Malaysia:"Malasia",Mauritius:"Mauricio",Mexico:"M\xe9xico",Moldova:"Moldavia",Monaco:"M\xf3naco",Mongolia:"Mongolia",Morocco:"Marruecos",Mozambique:"Mozambique",Namibia:"Namibia","New Zealand":"Nueva Zelanda",Niger:"N\xedger",Nigeria:"Nigeria","North Macedonia":"Macedonia del Norte",Oman:"Om\xe1n",Pakistan:"Pakist\xe1n",Panama:"Panam\xe1",Paraguay:"Paraguay",Peru:"Per\xfa",Philippines:"Filipinas",Qatar:"Catar",Rwanda:"Ruanda","San Marino":"San Marino","Saudi Arabia":"Arabia Saudita",Senegal:"Senegal",Serbia:"Serbia",Singapore:"Singapur",Slovenia:"Eslovenia","South Africa":"Sud\xe1frica","South Korea":"Corea del Sur","Sri Lanka":"Sri Lanka","St. Lucia":"Santa Luc\xeda",Taiwan:"Taiw\xe1n",Tanzania:"Tanzania",Thailand:"Tailandia","Trinidad & Tobago":"Trinidad y Tobago",Tunisia:"T\xfanez",Turkey:"Turqu\xeda","United Arab Emirates":"Emiratos \xc1rabes Unidos",Uruguay:"Uruguay",Uzbekistan:"Uzbekist\xe1n",Vietnam:"Vietnam","United States":"Estados Unidos",Brazil:"Brasil"},fr:{France:"France",Austria:"Autriche",Belgium:"Belgique",Bulgaria:"Bulgarie",Croatia:"Croatie",Cyprus:"Chypre","Czech Republic":"R\xe9publique tch\xe8que",Denmark:"Danemark",Estonia:"Estonie",Finland:"Finlande",Germany:"Allemagne",Gibraltar:"Gibraltar",Greece:"Gr\xe8ce",Hungary:"Hongrie",Ireland:"Irlande",Italy:"Italie",Latvia:"Lettonie",Liechtenstein:"Liechtenstein",Lithuania:"Lituanie",Luxembourg:"Luxembourg",Malta:"Malte",Netherlands:"Pays-Bas",Norway:"Norv\xe8ge",Poland:"Pologne",Portugal:"Portugal",Romania:"Roumanie",Slovakia:"Slovaquie",Spain:"Espagne",Sweden:"Su\xe8de",Switzerland:"Suisse","United Kingdom":"Royaume-Uni","Dominican Republic":"R\xe9publique dominicaine",Albania:"Albanie",Algeria:"Alg\xe9rie",Angola:"Angola","Antigua & Barbuda":"Antigua-et-Barbuda",Argentina:"Argentine",Armenia:"Arm\xe9nie",Australia:"Australie",Azerbaijan:"Azerba\xefdjan",Bahamas:"Bahamas",Bahrain:"Bahre\xefn",Bangladesh:"Bangladesh",Benin:"B\xe9nin",Bhutan:"Bhoutan",Bolivia:"Bolivie","Bosnia & Herzegovina":"Bosnie-Herz\xe9govine",Botswana:"Botswana",Brunei:"Brunei",Cambodia:"Cambodge",Canada:"Canada",Chile:"Chili",Colombia:"Colombie","Costa Rica":"Costa Rica","C\xf4te d\u2019Ivoire":"C\xf4te d'Ivoire",Ecuador:"\xc9quateur",Egypt:"\xc9gypte","El Salvador":"Salvador",Ethiopia:"\xc9thiopie",Gabon:"Gabon",Gambia:"Gambie",Ghana:"Ghana",Guatemala:"Guatemala",Guyana:"Guyana","Hong Kong":"Hong Kong",Indonesia:"Indon\xe9sie",Israel:"Isra\xebl",Jamaica:"Jama\xefque",Japan:"Japon",Jordan:"Jordanie",Kazakhstan:"Kazakhstan",Kenya:"Kenya",Kuwait:"Kowe\xeft",Laos:"Laos","Macao SAR China":"Macao",Madagascar:"Madagascar",Malaysia:"Malaisie",Mauritius:"Maurice",Mexico:"Mexique",Moldova:"Moldavie",Monaco:"Monaco",Mongolia:"Mongolie",Morocco:"Maroc",Mozambique:"Mozambique",Namibia:"Namibie","New Zealand":"Nouvelle-Z\xe9lande",Niger:"Niger",Nigeria:"Nig\xe9ria","North Macedonia":"Mac\xe9doine du Nord",Oman:"Oman",Pakistan:"Pakistan",Panama:"Panama",Paraguay:"Paraguay",Peru:"P\xe9rou",Philippines:"Philippines",Qatar:"Qatar",Rwanda:"Rwanda","San Marino":"Saint-Marin","Saudi Arabia":"Arabie saoudite",Senegal:"S\xe9n\xe9gal",Serbia:"Serbie",Singapore:"Singapour",Slovenia:"Slov\xe9nie","South Africa":"Afrique du Sud","South Korea":"Cor\xe9e du Sud","Sri Lanka":"Sri Lanka","St. Lucia":"Sainte-Lucie",Taiwan:"Ta\xefwan",Tanzania:"Tanzanie",Thailand:"Tha\xeflande","Trinidad & Tobago":"Trinit\xe9-et-Tobago",Tunisia:"Tunisie",Turkey:"Turquie","United Arab Emirates":"\xc9mirats arabes unis",Uruguay:"Uruguay",Uzbekistan:"Ouzb\xe9kistan",Vietnam:"Vietnam","United States":"\xc9tats-Unis",Brazil:"Br\xe9sil"}};var r=s(73991),c=s(21704),E=s(76037),m=s(1911),v=s(64886),C=s(45720),n=s(17774),i=s(13710),P=s(26191),I=s(4692),q=s(54449),D=s(43732),M=s(43073),T=s(81560),F=s(27579),le=s(74351);function V(Ee,Le){if(1&Ee&&(r.TgZ(0,"mat-option",27),r._uU(1),r.qZA()),2&Ee){const ge=Le.$implicit;r.Q6J("value",ge),r.xp6(1),r.hij(" ",ge," ")}}function de(Ee,Le){1&Ee&&r._UZ(0,"mat-spinner",28)}let ye=(()=>{class Ee{constructor(ge,ue,ee,se,W){this._accountService=ge,this._notificationService=ue,this._bankService=ee,this.router=se,this.dialogRef=W,this.stripeCountryList=[],this.countrySearchControl=new t.NI,this.selectedCountry=null,this.isLoading=!1}ngOnInit(){this.loadStripeCountryList()}checkStripeStatusAndNavigate(){this._bankService.getStripeStatus(!0).subscribe(ge=>{ge?.data?.status?this.dialogRef?(this.dialogRef.close(),location.reload()):this.router.navigate(["fundraising/create"]):console.warn("Stripe status is not active")},ge=>{console.error("Error checking Stripe status:",ge),this._notificationService.openNotification("Error checking Stripe status. Please try again.","","error")})}loadStripeCountryList(){try{const ge=this._accountService.getLocaleId()||"en",ue=JSON.parse(JSON.stringify(l))[ge];if(!ue)throw new Error(`Locale ${ge} not found in stripe_countries`);this.stripeCountryList=Object.values(ue),this.initializeFilter()}catch(ge){console.error("Error loading Stripe country list:",ge),this._notificationService.openNotification("Error loading country list. Please try again.","","error")}}initializeFilter(){this.filteredCountries=this.countrySearchControl.valueChanges.pipe((0,e.O)(""),(0,d.U)(ge=>this.filterCountries(ge||"")))}filterCountries(ge){const ue=ge.toLowerCase();return this.stripeCountryList.filter(ee=>ee.toLowerCase().includes(ue))}onCountrySelect(ge){const ue=ge.option.value,ee=this._accountService.getLocaleId()||"en";try{const se=JSON.parse(JSON.stringify(l))[ee];if(!se)throw new Error(`Locale ${ee} not found in stripe_countries`);const W=new Map(Object.entries(se));for(let[L,he]of W)if(he.includes(ue)){this.selectedCountry=L;break}}catch(se){console.error("Error selecting country:",se),this._notificationService.openNotification("Error selecting country. Please try again.","","error")}}saveCountry(ge){ge&&(this.isLoading=!0,this._accountService.createStripeAccount(ge).subscribe(()=>{this.checkStripeStatusAndNavigate()},ue=>{console.error("Error creating Stripe account:",ue),this._notificationService.openNotification("Error creating Stripe account. Please try again.","","error"),this.isLoading=!1}))}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(r.Y36(c.B),r.Y36(E.g),r.Y36(m.y),r.Y36(v.F0),r.Y36(C.so,8))},Ee.\u0275cmp=r.Xpm({type:Ee,selectors:[["app-select-country"]],decls:37,vars:7,consts:function(){let Le,ge,ue,ee,se,W;return Le="Iz koje zemlje potje\u010De osoba ili tvrtka koja prima donacije?",ge="Odaberi Zemlju",ue="Va\u017Ene Informacije:",ee="Dr\u017Eava se ne mo\u017Ee promijeniti nakon spremanja.",se="Radimo na pro\u0161irenju na\u0161ih usluga na vi\u0161e zemalja u budu\u0107nosti, ali za sada, va\u0161a kampanja za prikupljanje sredstava mora biti stvorena u zemljama navedenim na popisu.",W="Spremi I Nastavi",[["ngClass","p-l","ngClass.sm","p-m","ngClass.xs","p-s","fxFlex","100%","fxLayout","row","fxLayoutAlign","center start","fxLayoutGap","5%"],["fxFlex","100%","fxFlex.sm","65%","fxFlex.xs","90%","fxLayout","column","fxLayoutAlign","start center","fxLayoutGap","3%"],["fxFill","","fxLayout","row","fxLayoutAlign","center center"],["fxFill","","fxLayout","column","fxLayoutAlign","center center"],["ngClass.lt-sm","w-100","ngClass","w-0",1,"mat-elevation-z0"],[1,"mat-body-2"],Le,["appearance","outline","ngClass","m-t-s",1,"w-100"],ge,["type","text","matInput","","placeholder","Start typing to search...",3,"formControl","matAutocomplete"],[3,"optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column"],[1,"mat-elevation-z0","publish-bg","cursor-pointer"],["fxLayout","column","fxLayoutGap","3%"],["fxLayout","row","fxLayoutAlign","flex-start","fxLayoutGap","1%","ngClass","p-l-m"],["src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/blueInfo/public"],ue,["ngClass","p-xs"],ee,se,["fxFill","","fxLayout","row","fxLayoutAlign","flex-end center"],["fxFlex.gt-xs","15%","fxFlex.lt-xs","50%","fxLayout","column","fxLayoutAlign","center end"],["mat-flat-button","","color","accent","id","save_and_continue",3,"disabled","click"],W,["color","accent","diameter","20",4,"ngIf"],[3,"value"],["color","accent","diameter","20"]]},template:function(ge,ue){if(1&ge&&(r.TgZ(0,"div",0)(1,"div",1)(2,"div",2),r._UZ(3,"div",3),r.qZA(),r.TgZ(4,"mat-card",4)(5,"mat-card-title",5),r.SDv(6,6),r.qZA(),r.TgZ(7,"mat-form-field",7)(8,"mat-label"),r.SDv(9,8),r.qZA(),r._UZ(10,"input",9),r.TgZ(11,"mat-autocomplete",10,11),r.NdJ("optionSelected",function(se){return ue.onCountrySelect(se)}),r.YNc(13,V,2,2,"mat-option",12),r.ALo(14,"async"),r.qZA()(),r.TgZ(15,"div",13)(16,"mat-card",14)(17,"div",15)(18,"div",16),r._UZ(19,"img",17),r.TgZ(20,"span",5),r.SDv(21,18),r.qZA()()(),r.TgZ(22,"div",13)(23,"ul")(24,"li",19),r.SDv(25,20),r.qZA(),r.TgZ(26,"li",19),r.tHW(27,21),r._UZ(28,"br"),r.N_p(),r.qZA()()()(),r._UZ(29,"br")(30,"br"),r.TgZ(31,"div",22)(32,"div",23)(33,"button",24),r.NdJ("click",function(){return ue.saveCountry(ue.selectedCountry)}),r.TgZ(34,"span"),r.SDv(35,25),r.qZA(),r.YNc(36,de,1,0,"mat-spinner",26),r.qZA()()()()()()()),2&ge){const ee=r.MAs(12);r.xp6(10),r.Q6J("formControl",ue.countrySearchControl)("matAutocomplete",ee),r.xp6(3),r.Q6J("ngForOf",r.lcZ(14,5,ue.filteredCountries)),r.xp6(20),r.Q6J("disabled",!ue.selectedCountry||ue.isLoading),r.xp6(3),r.Q6J("ngIf",ue.isLoading)}},dependencies:[t.Fj,t.JJ,t.oH,n.mk,n.sg,n.O5,i.VN,i.QJ,P.CK,I.v_,I.$V,q.k0,D.S$,D.mi,M.eB,T.sN,F.xw,F.SQ,F.Wh,F.s9,F.yH,le.oO,n.Ov]}),Ee})()},35961:(St,be,s)=>{"use strict";s.d(be,{S:()=>q});var t=s(42456),e=s(73991),d=s(84531),l=s(64886),r=s(47692),c=s(76037),E=s(15645),m=s(17774),v=s(33867),C=s(43073),n=s(31180),i=s(27579),P=s(74351);function I(D,M){if(1&D){const T=e.EpF();e.TgZ(0,"div",16)(1,"div",17)(2,"mat-slide-toggle",18),e.NdJ("ngModelChange",function(le){e.CHM(T);const V=e.oxw();return e.KtG(V.allowConnectedFundraiser=le)})("change",function(le){e.CHM(T);const V=e.oxw();return e.KtG(V.onToggleChange(le))}),e.TgZ(3,"span"),e.SDv(4,19),e.qZA()(),e.TgZ(5,"button",10),e._UZ(6,"img",11),e.qZA()()()}if(2&D){const T=e.oxw();e.xp6(2),e.Q6J("ngModel",T.allowConnectedFundraiser),e.xp6(4),e.s9C("matTooltip",T.allowTooltip)}}let q=(()=>{class D{constructor(T,F,le,V){this._media=T,this.router=F,this._fundraiserService=le,this.notificationService=V,this.slug="",this.isLoggedInUserAdmin=!1,this.hideToggleSwitch=!1,this.allowConnectedFundraiser=!0,this.allowTooltip="Ova opcija omogu\u0107ava drugima da pove\u017Eu prikupljanje sredstava s ovim Sve donacije \u0107e biti prikupljene na va\u0161em ra\u010Dunu.",this.disableTooltip="Povezana funkcionalnost prikupljanja sredstava onemogu\u0107ena je od strane Glavnog Prikuplja\u010Da sredstava.",this.titleDescriptionTooltip="Ako stvorite povezani prikuplja\u010D sredstava, bit \u0107e povezan s ve\u0107 postoje\u0107im prikuplja\u010Dem sredstava Donacije se pla\u0107aju ovom gornjem prikuplja\u010Du sredstava."}ngOnInit(){this.allowConnectedFundraiser=this.isAllowChild}routeToConnectFundraiser(){let T="fundraising/connect/"+this.slug;t.w.setPreviousPath(T),this.router.navigate([T])}onToggleChange(T){this.allowConnectedFundraiser=T.checked,this._fundraiserService.allowConnectedFundraiser({allow_child:this.allowConnectedFundraiser,slug:this.slug}).subscribe(le=>{this.notificationService.openNotification("Spa\u0161eno","","success"),window.location.reload()})}}return D.\u0275fac=function(T){return new(T||D)(e.Y36(d.u0),e.Y36(l.F0),e.Y36(r.R),e.Y36(c.g))},D.\u0275cmp=e.Xpm({type:D,selectors:[["app-connect-fund"]],inputs:{slug:"slug",isAllowChild:"isAllowChild",isLoggedInUserAdmin:"isLoggedInUserAdmin",hideToggleSwitch:"hideToggleSwitch"},decls:17,vars:5,consts:function(){let M,T,F,le;return M="Pove\u017Ei Se S Ovim Prikuplja\u010Dem Sredstava",T="Tim se udru\u017Euje i povezuje s ovim prikupljanjem sredstava.",F="Povezivanje Sakuplja\u010D Sredstava",le="Dopusti Povezane Sakuplja\u010Di Sredstava",[["ngClass","m-b-m",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center flex-start"],["fxLayout","row"],["fxLayout","column","ngClass","p-r-l"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/create/public"],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start"],[1,"mat-title"],M,["ngClass","p-t-xxs"],["mat-icon-button",""],["src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/info14px/w=12",3,"matTooltip"],["fxLayout","row","ngClass","p-b-m"],T,["id","connectFundraiserButton","mat-stroked-button","","color","accent",1,"w-100",3,"disabled","matTooltip","matTooltipDisabled","click"],F,["ngClass","m-b-m"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","1%"],["id","allow-connected-toggle","color","primary",3,"ngModel","ngModelChange","change"],le]},template:function(T,F){1&T&&(e.YNc(0,I,7,2,"div",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3),e._UZ(4,"img",4),e.qZA(),e.TgZ(5,"div",5)(6,"div",6)(7,"span",7),e.SDv(8,8),e.qZA(),e.TgZ(9,"div",9)(10,"button",10),e._UZ(11,"img",11),e.qZA()()(),e.TgZ(12,"div",12)(13,"span"),e.SDv(14,13),e.qZA()()()(),e.TgZ(15,"button",14),e.NdJ("click",function(){return F.routeToConnectFundraiser()}),e.SDv(16,15),e.qZA()()),2&T&&(e.Q6J("ngIf",F.isLoggedInUserAdmin&&!F.hideToggleSwitch),e.xp6(11),e.s9C("matTooltip",F.titleDescriptionTooltip),e.xp6(4),e.s9C("matTooltip",F.disableTooltip),e.Q6J("disabled",!F.isAllowChild)("matTooltipDisabled",F.isAllowChild))},dependencies:[E.JJ,E.On,m.mk,m.O5,v.Rr,C.eB,n.gM,i.xw,i.SQ,i.Wh,P.oO],encapsulation:2}),D})()},6450:(St,be,s)=>{"use strict";s.d(be,{c:()=>E});var t=s(73991),e=s(64886),d=s(84531),l=s(47692),r=s(4692),c=s(27579);let E=(()=>{class m{constructor(C,n,i){this.router=C,this._media=n,this.fundraiserService=i,this.social="",this.defaultProfileImage="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/createdBy/public"}ngOnChanges(C){this.currentFundraiser?.slug&&(this.profileImage=this.currentFundraiser?.profile?.image||this.defaultProfileImage,this.profileName=this.currentFundraiser?.profile?.name,this.social=this.currentFundraiser?.socialmedia)}ngOnInit(){}fallbackToDefaultImage(){this.profileImage=this.defaultProfileImage}}return m.\u0275fac=function(C){return new(C||m)(t.Y36(e.F0),t.Y36(d.u0),t.Y36(l.R))},m.\u0275cmp=t.Xpm({type:m,selectors:[["app-created-by"]],inputs:{currentFundraiser:"currentFundraiser"},features:[t.TTD],decls:7,vars:2,consts:function(){let v;return v="Stvorio:",[["fxLayout","row","fxFlex.xs",""],[1,"profile-image",3,"src","error"],["fxLayout","column",1,"m-l-s"],v]},template:function(C,n){1&C&&(t.TgZ(0,"div",0)(1,"img",1),t.NdJ("error",function(){return n.fallbackToDefaultImage()}),t.qZA(),t.TgZ(2,"div",2)(3,"mat-label"),t.SDv(4,3),t.qZA(),t.TgZ(5,"div"),t._uU(6),t.qZA()()()),2&C&&(t.xp6(1),t.s9C("src",n.profileImage,t.LSH),t.xp6(5),t.Oqu(n.profileName))},dependencies:[r.$V,c.xw,c.yH],encapsulation:2}),m})()},17160:(St,be,s)=>{"use strict";s.d(be,{h:()=>ye});var t=s(47307),e=s(23576),d=s(73991),l=s(84531),r=s(45720),c=s(21704),E=s(47692),m=s(76037),v=s(64886),C=s(15645),n=s(17774),i=s(33867),P=s(43073),I=s(31180),q=s(27579),D=s(74351);function M(Ee,Le){if(1&Ee){const ge=d.EpF();d.TgZ(0,"div",0)(1,"mat-slide-toggle",14),d.NdJ("ngModelChange",function(ee){d.CHM(ge);const se=d.oxw();return d.KtG(se.showDonorList=ee)})("change",function(ee){d.CHM(ge);const se=d.oxw();return d.KtG(se.onToggleChange(ee))}),d.TgZ(2,"div",0)(3,"span"),d.SDv(4,15),d.qZA(),d._uU(5," \xa0 "),d.qZA()(),d.TgZ(6,"button",16),d._UZ(7,"img",17),d.qZA()()}if(2&Ee){const ge=d.oxw();d.xp6(1),d.Q6J("ngModel",ge.showDonorList),d.xp6(6),d.s9C("matTooltip",ge.tooltip)}}function T(Ee,Le){if(1&Ee){const ge=d.EpF();d.TgZ(0,"button",25),d.NdJ("click",function(){d.CHM(ge);const ee=d.oxw(2);return d.KtG(ee.addOfflineDonation())}),d.SDv(1,27),d.qZA()}if(2&Ee){const ge=d.oxw(2);d.Q6J("disabled",ge.isDraftOrClosed)}}function F(Ee,Le){if(1&Ee){const ge=d.EpF();d.TgZ(0,"div",18)(1,"div",19)(2,"div")(3,"h2"),d.SDv(4,20),d.qZA()(),d.TgZ(5,"div",21)(6,"button",16),d._UZ(7,"img",17),d.qZA()()(),d.TgZ(8,"div",22)(9,"div",23),d.YNc(10,T,2,1,"button",24),d.qZA(),d.TgZ(11,"div",23)(12,"button",25),d.NdJ("click",function(){d.CHM(ge);const ee=d.oxw();return d.KtG(ee.viewOfflineDonationSummary())}),d.SDv(13,26),d.qZA()()()()}if(2&Ee){const ge=d.oxw();d.xp6(7),d.s9C("matTooltip",ge.offlineDonationTooltip),d.xp6(2),d.Q6J("matTooltip",ge.addOfflineDonationTooltip)("matTooltipDisabled",!ge.isDraftOrClosed),d.xp6(1),d.Q6J("ngIf",ge.isLoggedInUserAdmin&&!ge.isWholePreview),d.xp6(1),d.Q6J("matTooltip",ge.viewSummaryTooltip)("matTooltipDisabled",ge.isViewSummary),d.xp6(1),d.Q6J("disabled",!ge.isViewSummary)}}function le(Ee,Le){if(1&Ee&&(d.TgZ(0,"p"),d._uU(1),d.TgZ(2,"span",32),d.SDv(3,33),d.qZA()()),2&Ee){const ge=d.oxw(3);d.xp6(1),d.AsE(" ",ge.currency_symbol,"\xa0",ge.totalOfflineDonationAmount," ")}}function V(Ee,Le){if(1&Ee){const ge=d.EpF();d.TgZ(0,"div",18)(1,"div",19)(2,"div")(3,"h2"),d.SDv(4,29),d.qZA()(),d.TgZ(5,"div",21),d._UZ(6,"img",17),d.qZA()(),d.TgZ(7,"div",22),d.YNc(8,le,4,2,"p",30),d.TgZ(9,"div",23)(10,"button",25),d.NdJ("click",function(){d.CHM(ge);const ee=d.oxw(2);return d.KtG(ee.viewOfflineDonationSummary())}),d.SDv(11,31),d.qZA()()()()}if(2&Ee){const ge=d.oxw(2);d.xp6(6),d.s9C("matTooltip",ge.offlineDonationTooltip),d.xp6(2),d.Q6J("ngIf",!ge.isLoggedIn),d.xp6(1),d.Q6J("matTooltip",ge.viewSummaryTooltip)("matTooltipDisabled",ge.isViewSummary),d.xp6(1),d.Q6J("disabled",!ge.isViewSummary)}}function de(Ee,Le){if(1&Ee&&d.YNc(0,V,12,5,"div",28),2&Ee){const ge=d.oxw();d.Q6J("ngIf",ge.isViewSummary)}}let ye=(()=>{class Ee{constructor(ge,ue,ee,se,W,L){this._media=ge,this.dialog=ue,this._accountService=ee,this.fundraiserService=se,this.notificationService=W,this.router=L,this.isLoggedInUserAdmin=!1,this.hideToggleSwitch=!1,this.isDraftOrClosed=!1,this.showDonorList=!0,this.tooltip="Prebaci za sakrivanje ili prikazivanje liste donacija na javnoj stranici za prikupljanje sredstava.",this.offlineDonationTooltip="To \u0107e vam omogu\u0107iti da dodate donacije prikupljene offline od strane svrhe",this.viewSummaryTooltip="Dodajte izvanmre\u017Ene donacije da biste vidjeli sa\u017Eetak",this.addOfflineDonationTooltip="Objavite svoje prikupljanje sredstava prije dodavanja izvanmre\u017Ene donacije",this.isViewSummary=!0}ngOnInit(){this.showDonorList=this.donationReceivedBoolean,this.slug=this.router.url.split("?")[0].substring(13),this.getOfflineDonations(),this.fundraiserService.getOfflineDonation().subscribe(ge=>{this.getOfflineDonations()})}onToggleChange(ge){this.showDonorList=ge.checked,this._accountService.checkHeaders()&&this.fundraiserService.showDonationList({show_donations:this.showDonorList,slug:this.slug}).subscribe(ee=>{this.notificationService.openNotification("Sniman","","success"),window.location.reload()})}addOfflineDonation(){this.dialog.open(t.x,{maxHeight:"98vh",data:{slug:this.slug,currency_symbol:this.currentFundraiser.currency_symbol,currency_code:this.currentFundraiser.currency_code}})}viewOfflineDonationSummary(){this.dialog.open(e.Z,{data:{slug:this.slug,isLoggedIn:this.isLoggedIn,isLoggedInUserAdmin:this.isLoggedInUserAdmin}})}getOfflineDonations(){this.slug&&this.fundraiserService.getAllOfflineDonation(this.slug).subscribe(ue=>{this.totalOfflineDonationAmount=Number(ue.data.result.total_amount),this.currency_symbol=this.currentFundraiser.currency_symbol,this.offlineDonationCount=ue.data.result.details.length,this.isViewSummary=0!==this.offlineDonationCount})}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(d.Y36(l.u0),d.Y36(r.uw),d.Y36(c.B),d.Y36(E.R),d.Y36(m.g),d.Y36(v.F0))},Ee.\u0275cmp=d.Xpm({type:Ee,selectors:[["app-donations-zero"]],inputs:{isLoggedInUserAdmin:"isLoggedInUserAdmin",hideToggleSwitch:"hideToggleSwitch",donationReceivedBoolean:"donationReceivedBoolean",isLoggedIn:"isLoggedIn",currentFundraiser:"currentFundraiser",isDraftOrClosed:"isDraftOrClosed",isWholePreview:"isWholePreview"},decls:16,vars:3,consts:function(){let Le,ge,ue,ee,se,W,L,he,_e;return Le="Donacija",ge="Jo\u0161 uvijek nema donacija Mo\u017Eete postati prvi donator!",ue="Poka\u017Ei Popis Donacija",ee="Offline Zbirka",se="Prika\u017Ei Sa\u017Eetak",W="Dodaj Izvanmre\u017Enu Donaciju",L="Offline Zbirka",he="Prika\u017Ei Sa\u017Eetak",_e="uzrok je prikupio offline",[["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","ngClass","m-t-m"],["fxLayout","column","fxLayoutAlign","center center"],["fxLayout","row","fxLayoutAlign","space-between start","fxLayoutGap","5%"],["fxLayout","column"],[1,"whydonate-light","xxl-icon"],["ngClass","m-l-xs","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/donation-support/public"],["fxLayout","column","fxLayoutGap","3%"],[1,"mat-title"],Le,ge,["fxLayout","column","fxFill","","ngClass","pale-grey-bg p-m m-t-m",4,"ngIf","ngIfElse"],["loggedOutTemplate",""],["id","hide_donor_list_toggle","color","primary",3,"ngModel","ngModelChange","change"],ue,["mat-icon-button",""],["src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/info14px/w=12",3,"matTooltip"],["fxLayout","column","fxFill","","ngClass","pale-grey-bg p-m m-t-m"],["fxLayout","row","fxLayoutGap","1%","fxLayoutAlign","start center"],ee,["ngClass","p-b-m"],["fxLayout","column","fxLayoutGap","2%"],[3,"matTooltip","matTooltipDisabled"],["mat-stroked-button","","color","accent","class","hover-btn w-100",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","color","accent",1,"hover-btn","w-100",3,"disabled","click"],se,W,["fxLayout","column","fxFill","","ngClass","pale-grey-bg p-m m-t-m",4,"ngIf"],L,[4,"ngIf"],he,[1,"mat-typography"],_e]},template:function(ge,ue){if(1&ge&&(d.TgZ(0,"div",0),d.YNc(1,M,8,2,"div",1),d.qZA(),d.TgZ(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"span",6),d._UZ(7,"img",7),d.qZA()(),d.TgZ(8,"div",8)(9,"div",9),d.SDv(10,10),d.qZA(),d.TgZ(11,"div"),d.SDv(12,11),d.qZA()()()()(),d.YNc(13,F,14,7,"div",12),d.YNc(14,de,1,1,"ng-template",null,13,d.W1O)),2&ge){const ee=d.MAs(15);d.xp6(1),d.Q6J("ngIf",ue.isLoggedInUserAdmin&&!ue.hideToggleSwitch),d.xp6(12),d.Q6J("ngIf",ue.isLoggedIn)("ngIfElse",ee)}},dependencies:[C.JJ,C.On,n.mk,n.O5,i.Rr,P.eB,I.gM,q.xw,q.SQ,q.Wh,q.s9,D.oO],encapsulation:2}),Ee})()},67327:(St,be,s)=>{"use strict";s.d(be,{E:()=>$t});var t=s(73991),e=s(45720),d=s(15645),l=s(83549),r=s(84531),c=s(93216);let E=(()=>{class It{constructor(){this.userValue=new c.X(!1),this.currentUserValue=this.userValue.asObservable()}changeUserValue(yt){this.userValue.next(yt)}getUserValue(){return this.userValue.value}}return It.\u0275fac=function(yt){return new(yt||It)},It.\u0275prov=t.Yz7({token:It,factory:It.\u0275fac,providedIn:"root"}),It})();var m=s(47692),v=s(76037),C=s(21704),n=s(64886),i=s(17774),P=s(4692),I=s(54449),q=s(36442),D=s(43073),M=s(45379),T=s(81560),F=s(27579),le=s(74351);const V=function(It,fr){return{backgroundColor:It,color:fr}};let de=(()=>{class It{constructor(){this.index=0,this.initialLetters="AN",this.randomBackgroundColors=["#FFC799","#ADE5BB","#ADE5BB","#FFBABA"],this.backgroundColor="#873498",this.textColor="#000000",this.previous_color_pos=0}ngOnInit(){this.backgroundColor=this.getRandomColor(),this.textColor=this.darkenHexColor(this.backgroundColor)}getRandomColor(){return this.randomBackgroundColors[this.index%this.randomBackgroundColors.length]}darkenHexColor(yt,dr=2){try{if(6!==(yt=yt.replace(/^#/,"")).length)throw new Error("Invalid hex color format");let bt=parseInt(yt.substring(0,2),16),ar=parseInt(yt.substring(2,4),16),vt=parseInt(yt.substring(4,6),16);return bt=Math.max(0,Math.min(255,Math.floor(bt/dr))),ar=Math.max(0,Math.min(255,Math.floor(ar/dr))),vt=Math.max(0,Math.min(255,Math.floor(vt/dr))),`#${((1<<24)+(bt<<16)+(ar<<8)+vt).toString(16).slice(1)}`}catch(bt){return console.error("Error darkening hex color:",bt),yt}}}return It.\u0275fac=function(yt){return new(yt||It)},It.\u0275cmp=t.Xpm({type:It,selectors:[["app-user-icon"]],inputs:{index:"index",initialLetters:"initialLetters"},decls:3,vars:5,consts:[[1,"circle",3,"ngStyle"],[1,"circle-text"]],template:function(yt,dr){1&yt&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.qZA()()),2&yt&&(t.Q6J("ngStyle",t.WLB(2,V,dr.backgroundColor,dr.textColor)),t.xp6(2),t.hij(" ",dr.initialLetters," "))},dependencies:[i.PC,le.Zl]}),It})();function ye(It,fr){if(1&It){const yt=t.EpF();t.TgZ(0,"a",21),t.NdJ("click",function(){t.CHM(yt);const bt=t.oxw().index,ar=t.oxw();return t.KtG(ar.openDialog(bt))}),t.SDv(1,22),t.qZA()}}function Ee(It,fr){1&It&&t._UZ(0,"img",26)}function Le(It,fr){if(1&It){const yt=t.EpF();t.TgZ(0,"img",29),t.NdJ("click",function(){t.CHM(yt);const bt=t.oxw(3).index,ar=t.oxw();return t.KtG(ar.openDialog(bt))}),t.qZA()}}function ge(It,fr){if(1&It&&(t.TgZ(0,"div",27),t._uU(1),t.YNc(2,Le,1,0,"img",28),t.qZA()),2&It){const yt=t.oxw(2).$implicit,dr=t.oxw();t.xp6(1),t.hij(" ",null==yt?null:yt.reply_message," "),t.xp6(1),t.Q6J("ngIf",dr.isLoggedInUserAdmin)}}function ue(It,fr){if(1&It&&(t.TgZ(0,"div",23),t.YNc(1,Ee,1,0,"img",24),t.YNc(2,ge,3,2,"div",25),t.qZA()),2&It){const yt=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",(null==yt||null==yt.reply_message?null:yt.reply_message.length)>2),t.xp6(1),t.Q6J("ngIf",(null==yt?null:yt.reply_message)&&(null==yt||null==yt.reply_message?null:yt.reply_message.length)>1)}}function ee(It,fr){if(1&It){const yt=t.EpF();t.TgZ(0,"div",30)(1,"div",31)(2,"mat-form-field",32)(3,"textarea",33,34),t._uU(5,"\t\t\t\t\t\t\t"),t.qZA(),t.TgZ(6,"mat-hint",35),t._uU(7),t.qZA()()(),t.TgZ(8,"div",36)(9,"div",37)(10,"button",38),t.NdJ("click",function(){t.CHM(yt);const bt=t.oxw().index,ar=t.oxw();return t.KtG(ar.onCancelClick(bt))}),t.SDv(11,39),t.qZA(),t.TgZ(12,"button",40),t.NdJ("click",function(){t.CHM(yt);const bt=t.MAs(4),ar=t.oxw(),vt=ar.$implicit,qt=ar.index,br=t.oxw();return t.KtG(br.postReply(bt.value,vt.id,qt))}),t.SDv(13,41),t.qZA()()()()}if(2&It){const yt=t.MAs(4),dr=t.oxw(2);t.xp6(3),t.MGl("placeholder","",dr.messageReply,"  "),t.Q6J("formControl",dr.replyForm),t.xp6(4),t.hij("",yt.value.length||0,"/200"),t.xp6(5),t.Q6J("disabled",dr.replyForm.invalid)}}function se(It,fr){if(1&It&&(t.TgZ(0,"div",9)(1,"div",10),t._UZ(2,"app-user-icon",11),t.TgZ(3,"div",12)(4,"div",13)(5,"strong"),t._uU(6),t.qZA()(),t.TgZ(7,"div",14)(8,"div"),t._uU(9),t.qZA()(),t.TgZ(10,"div"),t.YNc(11,ye,2,0,"a",15),t.qZA()(),t.TgZ(12,"div",16)(13,"span",17),t._uU(14),t.ALo(15,"currency"),t.qZA()()(),t.TgZ(16,"div",18),t.YNc(17,ue,3,2,"div",19),t.qZA(),t.YNc(18,ee,14,4,"div",20),t.qZA()),2&It){const yt=fr.$implicit,dr=fr.index,bt=t.oxw();t.Udp("border-bottom","1px solid #ddd")("last-child","0px"),t.xp6(2),t.Q6J("initialLetters",bt.getInitial(null==yt?null:yt.name))("index",dr),t.xp6(4),t.hij(" ",null==yt?null:yt.name," "),t.xp6(3),t.hij(" ",null==yt?null:yt.message," "),t.xp6(2),t.Q6J("ngIf",bt.isLoggedInUserAdmin&&(null==yt||null==yt.reply_message?null:yt.reply_message.length)<=1||bt.isLoggedInUserAdmin&&!(null!=yt&&yt.reply_message)),t.xp6(3),t.hij(" ",t.gM2(15,14,null==yt?null:yt.amount,null==yt?null:yt.symbol,"symbol","1.0-0")," "),t.xp6(2),t.Udp("margin-top",bt.media.isActive("lg")?"10":"0","px"),t.xp6(1),t.Q6J("ngIf",(null==yt?null:yt.reply_message)&&(null==yt||null==yt.reply_message?null:yt.reply_message.length)>=1&&!bt.replyButton),t.xp6(1),t.Q6J("ngIf",bt.isLoggedInUserAdmin&&dr==bt.replyIndex&&(null==yt||null==yt.reply_message?null:yt.reply_message.length)<=1&&bt.showReplyForm&&bt.replyButton&&null!=(null==yt||null==yt.reply_message?null:yt.reply_message.length))}}function W(It,fr){1&It&&(t.TgZ(0,"mat-icon",46),t._UZ(1,"mat-spinner",47),t.qZA())}function L(It,fr){if(1&It){const yt=t.EpF();t.TgZ(0,"div",42)(1,"a",43),t.NdJ("click",function(){t.CHM(yt);const bt=t.oxw();return t.KtG(bt.showMoreData())}),t.TgZ(2,"span"),t.SDv(3,44),t.qZA(),t.YNc(4,W,2,0,"mat-icon",45),t.qZA()()}if(2&It){const yt=t.oxw();t.xp6(4),t.Q6J("ngIf",yt.isLoading)}}function he(It,fr){if(1&It){const yt=t.EpF();t.TgZ(0,"a",21),t.NdJ("click",function(){t.CHM(yt);const bt=t.oxw().index,ar=t.oxw();return t.KtG(ar.openDialog(bt))}),t.SDv(1,49),t.qZA()}}function _e(It,fr){1&It&&t._UZ(0,"img",26)}function Z(It,fr){if(1&It){const yt=t.EpF();t.TgZ(0,"img",29),t.NdJ("click",function(){t.CHM(yt);const bt=t.oxw(3).index,ar=t.oxw();return t.KtG(ar.openDialog(bt))}),t.qZA()}}function Te(It,fr){if(1&It&&(t.TgZ(0,"div",27),t._uU(1),t.YNc(2,Z,1,0,"img",28),t.qZA()),2&It){const yt=t.oxw(2).$implicit,dr=t.oxw();t.xp6(1),t.hij(" ",null==yt?null:yt.reply_message," "),t.xp6(1),t.Q6J("ngIf",dr.isLoggedInUserAdmin)}}function w(It,fr){if(1&It&&(t.TgZ(0,"div",23),t.YNc(1,_e,1,0,"img",24),t.YNc(2,Te,3,2,"div",25),t.qZA()),2&It){const yt=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",(null==yt||null==yt.reply_message?null:yt.reply_message.length)>2),t.xp6(1),t.Q6J("ngIf",(null==yt?null:yt.reply_message)&&(null==yt||null==yt.reply_message?null:yt.reply_message.length)>1)}}function k(It,fr){if(1&It){const yt=t.EpF();t.TgZ(0,"div",30)(1,"div",31)(2,"mat-form-field",32)(3,"textarea",33,34),t._uU(5,"\t\t\t\t\t\t\t"),t.qZA(),t.TgZ(6,"mat-hint",35),t._uU(7),t.qZA()()(),t.TgZ(8,"div",36)(9,"div",37)(10,"button",38),t.NdJ("click",function(){t.CHM(yt);const bt=t.oxw().index,ar=t.oxw();return t.KtG(ar.onCancelClick(bt))}),t.SDv(11,50),t.qZA(),t.TgZ(12,"button",40),t.NdJ("click",function(){t.CHM(yt);const bt=t.MAs(4),ar=t.oxw(),vt=ar.$implicit,qt=ar.index,br=t.oxw();return t.KtG(br.postReply(bt.value,vt.id,qt))}),t.SDv(13,51),t.qZA()()()()}if(2&It){const yt=t.MAs(4),dr=t.oxw(2);t.xp6(3),t.MGl("placeholder","",dr.messageReply,"  "),t.Q6J("formControl",dr.replyForm),t.xp6(4),t.hij("",yt.value.length||0,"/200"),t.xp6(5),t.Q6J("disabled",dr.replyForm.invalid)}}function x(It,fr){if(1&It&&(t.TgZ(0,"div",9)(1,"div",10),t._UZ(2,"app-user-icon",48),t.TgZ(3,"div",12)(4,"div",13)(5,"strong"),t._uU(6),t.qZA()(),t.TgZ(7,"div",14)(8,"div"),t._uU(9),t.qZA()(),t.TgZ(10,"div"),t.YNc(11,he,2,0,"a",15),t.qZA()(),t.TgZ(12,"div",16)(13,"span",17),t._uU(14),t.ALo(15,"currency"),t.qZA()()(),t.TgZ(16,"div",18),t.YNc(17,w,3,2,"div",19),t.qZA(),t.YNc(18,k,14,4,"div",20),t.qZA()),2&It){const yt=fr.$implicit,dr=fr.index,bt=t.oxw();t.Udp("border-bottom","1px solid #ddd")("last-child","0px"),t.xp6(2),t.Q6J("initialLetters",bt.getInitial(null==yt?null:yt.name)),t.xp6(4),t.hij(" ",null==yt?null:yt.name," "),t.xp6(3),t.hij(" ",null==yt?null:yt.message," "),t.xp6(2),t.Q6J("ngIf",bt.isLoggedInUserAdmin&&(null==yt||null==yt.reply_message?null:yt.reply_message.length)<=1||bt.isLoggedInUserAdmin&&!(null!=yt&&yt.reply_message)),t.xp6(3),t.hij(" ",t.gM2(15,13,null==yt?null:yt.amount,null==yt?null:yt.symbol,"symbol","1.0-0")," "),t.xp6(2),t.Udp("margin-top",bt.media.isActive("lg")?"10":"0","px"),t.xp6(1),t.Q6J("ngIf",(null==yt?null:yt.reply_message)&&(null==yt||null==yt.reply_message?null:yt.reply_message.length)>=1&&!bt.replyButton),t.xp6(1),t.Q6J("ngIf",bt.isLoggedInUserAdmin&&dr==bt.replyIndex&&(null==yt||null==yt.reply_message?null:yt.reply_message.length)<=1&&bt.showReplyForm&&bt.replyButton&&null!=(null==yt||null==yt.reply_message?null:yt.reply_message.length))}}function z(It,fr){1&It&&(t.TgZ(0,"mat-icon",46),t._UZ(1,"mat-spinner",47),t.qZA())}function j(It,fr){if(1&It){const yt=t.EpF();t.TgZ(0,"div",42)(1,"a",43),t.NdJ("click",function(){t.CHM(yt);const bt=t.oxw();return t.KtG(bt.showMoreData())}),t.TgZ(2,"span"),t.SDv(3,52),t.qZA(),t.YNc(4,z,2,0,"mat-icon",45),t.qZA()()}if(2&It){const yt=t.oxw();t.xp6(4),t.Q6J("ngIf",yt.isLoading)}}let Ne=(()=>{class It{constructor(yt,dr,bt,ar,vt,qt,br,lt,De,G,U){this.dialog=yt,this.dialogRef=dr,this.media=bt,this.replyService=ar,this.fundRaiserService=vt,this._notificationService=qt,this.fundraiserService=br,this._accountService=lt,this.router=De,this.data=G,this.replyButton=!1,this.replyIndex=-1,this.replyForm=new d.p4("",[d.kI.required,d.kI.maxLength(200),d.kI.pattern(/^[\p{L}\p{N}\p{P}\p{S}\s\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FAC0}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}\u{2B05}\u{1F004}]*$/u)]),this.isLoggedInUserAdmin=!1,this.count=0,this.dataSize=20,this.loadDataCheck=!1,this.donorPlaceholder="Po\u0161alji poruku donatoru",this.isDonorListLoading=!0,this.page=1,this.totalPages=1,this.isLoading=!1,this.donationCount=0,this.showReplyForm=!0,this.removeTextArea=!1,this.donor={},this.label_donorList_tab1="Nedavne Donacije",this.label_donorList_tab2="Najaktivniji Suradnici"}ngOnInit(){this.slug=this.router.url.split("?")[0].substring(13)||null,this.slug=this.fundRaiserService.getCurrentFundraiserSlug(),this.lang=this._accountService.getLocaleId(),this.fundraiserService.getDonorList(this.slug,this.page,this.lang).subscribe(yt=>{this.donorData=yt.data?.result?.result,this.donationCount=yt.data?.result?.count,this.loadDataCheck=this.donationCount<=20,this.totalPages=this.getPageNumbers()}),this.replyService.currentUserValue.subscribe(yt=>{this.isLoggedInUserAdmin=yt}),this.isLoggedInUserAdmin=this.data.isLoggedInUserAdmin,this.getTopContributors()}getInitial(yt){if(!yt)return"AN";const dr=yt.trim().split(" ");return 1===dr.length?dr[0].substring(0,2).toUpperCase():dr.length>=2?`${dr[0].charAt(0).toUpperCase()}${dr[dr.length-1].charAt(0).toUpperCase()}`:"AN"}replyMessage(yt){try{this.showReplyForm=!0,this.replyButton=!0,this.replyIndex=yt,this.messageReply=this.donorData[this.replyIndex].reply_message,this.messageReply&&""!==this.messageReply.trim()?this.replyForm.setValue(this.messageReply):this.messageReply=this.donorPlaceholder}catch(dr){console.error("Error handling reply message:",dr),this._notificationService.openNotification("Error handling reply message. Please try again.","","error")}}postReply(yt,dr,bt){this.fundRaiserService.updateDonorReply({donation_order_id:dr,thanks_message:yt}).subscribe(qt=>{this.donorData[bt].reply_message=yt,this._notificationService.openNotification("Uspje\u0161no poslano.","OK","success"),this.replyButton=!1},qt=>{console.error("Error posting reply message:",qt),this._notificationService.openNotification("Error posting reply message. Please try again.","","error")})}showMoreData(){this.isLoading=!0,this.page=this.page+1,this.page<=this.totalPages&&this.donorData.length<=this.donorData.length?this.fundraiserService.getDonorList(this.slug,this.page,this.lang).subscribe(yt=>{this.isDonorListLoading=!1,this.donorData=[...this.donorData,...Array.isArray(yt?.data?.result?.result)?yt.data.result.result:[]],this.isLoading=!1,this.donorData.length%this.donationCount==0&&(this.loadDataCheck=!0)}):this.loadDataCheck=!1}getPageNumbers(){return this.totalPages=Math.floor(this.donationCount/20),this.donationCount%20!=0?(this.totalPages++,this.totalPages):this.totalPages}onCloseClick(){this.dialogRef.close()}onCancelClick(yt){return this.replyForm.reset(),this.showReplyForm=!1,this.replyButton=!1,this.showReplyForm=!0}getTopContributors(){this.fundRaiserService.getTopContributors(this.slug,this.lang).subscribe({next:yt=>{this.topContributors=yt?.data?.result},error:yt=>{console.error("Error fetching top contributors:",yt)}})}openDialog(yt){this.dialog.open(l.n,{width:"80vh",maxHeight:"98vh",data:{count:this.donorData[yt]}})}}return It.\u0275fac=function(yt){return new(yt||It)(t.Y36(e.uw),t.Y36(e.so),t.Y36(r.u0),t.Y36(E),t.Y36(m.R),t.Y36(v.g),t.Y36(m.R),t.Y36(C.B),t.Y36(n.F0),t.Y36(e.WI),t.Y36(t.sBO))},It.\u0275cmp=t.Xpm({type:It,selectors:[["app-donor-list-full"]],inputs:{currentFundraiserID:"currentFundraiserID"},decls:16,vars:7,consts:function(){let fr,yt,dr,bt,ar,vt,qt,br,lt;return fr="donacija",yt="Po\u0161alji poruku",dr="Otkazati",bt="Po\u0161alji",ar="Prika\u017Ei Vi\u0161e",vt="Po\u0161alji poruku",qt="Otkazati",br="Po\u0161alji",lt="Prika\u017Ei Vi\u0161e",[[1,"p-t-m","p-b-m","p-l-m","p-r-m","custom-theme-branding","branding"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","5%"],["fxLayout","column","fxFlex","100%","fxLayoutAlign","center start"],fr,[3,"label"],["fxLayout","column","fxLayoutAlign","start start","fxLayoutGap.xs","7%","fxLayoutGap","0px",3,"border-bottom","last-child",4,"ngFor","ngForOf"],["fxLayout","column","ngClass","m-t-xl","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start start","fxLayoutGap.xs","7%","fxLayoutGap","0px"],["ngClass","m-t-m","fxLayout","row","fxFill","","fxFlex.xs","20%","fxLayoutGap","1%","fxLayoutAlign","start center"],[3,"initialLetters","index"],["fxLayout","column","fxFlex","20%","fxLayoutAlign","start start"],["id","donationName"],["fxLayout","row","fxFlex","100%","fxLayoutAlign","start start"],["mat-button","","color","accent","class","zero-padding-margin",3,"click",4,"ngIf"],["fxLayout","column","fxFlex","100%","fxFlex.xs","80%","fxLayoutAlign","end end"],[1,"mat-option"],["fxLayout","row","fxLayout","center center","fxFlex","20%","fxFlex.xs","80%","ngClass.lg","m-t-l","ngClass.lg","m-b-m","ngClass.xs","m-t-l","ngClass.xs","m-l-l","ngClass","","ngClass.sm","m-t-l"],["ngClass.lt-lg","m-l-xl m-t-m m-b-m","ngClass.lg","m-l-xl m-t-m m-b-m","ngClass.xs","m-b-l","ngClass","m-l-xl m-t-xs m-b-xs","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFill","","fxLayout","column","fxLayoutAlign","start end","ngClass","m-b-m",4,"ngIf"],["mat-button","","color","accent",1,"zero-padding-margin",3,"click"],yt,["ngClass.lt-lg","m-l-xl m-t-m m-b-m","ngClass.lg","m-l-xl m-t-m m-b-m","ngClass.xs","m-b-l","ngClass","m-l-xl m-t-xs m-b-xs","fxLayout","row","fxLayoutAlign","start center"],["width","30","height","30","loading","lazy","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/donor_small/public",4,"ngIf"],["fxLayoutAlign","start start","class","m-l-xs","fxFill","",4,"ngIf"],["width","30","height","30","loading","lazy","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/donor_small/public"],["fxLayoutAlign","start start","fxFill","",1,"m-l-xs"],["fxLayoutAlign","center center","height","16px","class","m-l-xs","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/editSmall/public",3,"click",4,"ngIf"],["fxLayoutAlign","center center","height","16px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/editSmall/public",1,"m-l-xs",3,"click"],["fxFill","","fxLayout","column","fxLayoutAlign","start end","ngClass","m-b-m"],["fxLayout","row","fxFill","","fxLayoutAlign","flex-start"],["appearance","outline","fxFlex","80","fxFlexOffset","10","fxFlex.xs","100",1,"example-full-width"],["matInput","","required","","maxlength","200",3,"placeholder","formControl"],["input",""],["align","end"],["fxLayout","row","fxFill",""],["fxLayout","row","fxLayoutAlign","end center","fxFlex","90","fxLayoutGap","15","fxFlex.xs","100"],["mat-stroked-button","","color","accent","id","button_cancel",3,"click"],dr,["mat-raised-button","","color","accent",3,"disabled","click"],bt,["fxLayout","column","ngClass","m-t-xl","fxLayoutAlign","center center"],[1,"link-decorate-style","cursor-pointer",3,"click"],ar,["class","m-l-xs",4,"ngIf"],[1,"m-l-xs"],["color","accent","diameter","20"],[3,"initialLetters"],vt,qt,br,lt]},template:function(yt,dr){1&yt&&(t.TgZ(0,"div",0)(1,"button",1),t.NdJ("click",function(){return dr.onCloseClick()}),t._UZ(2,"img",2),t.qZA(),t.TgZ(3,"div",3)(4,"div",4)(5,"h2")(6,"span"),t.SDv(7,5),t.qZA(),t._uU(8),t.qZA()()(),t.TgZ(9,"mat-tab-group")(10,"mat-tab",6),t.YNc(11,se,19,19,"div",7),t.YNc(12,L,5,1,"div",8),t.qZA(),t.TgZ(13,"mat-tab",6),t.YNc(14,x,19,18,"div",7),t.YNc(15,j,5,1,"div",8),t.qZA()()()),2&yt&&(t.xp6(8),t.hij(" (",dr.donationCount,") "),t.xp6(2),t.s9C("label",dr.label_donorList_tab1),t.xp6(1),t.Q6J("ngForOf",dr.donorData),t.xp6(1),t.Q6J("ngIf",!dr.loadDataCheck),t.xp6(1),t.s9C("label",dr.label_donorList_tab2),t.xp6(1),t.Q6J("ngForOf",dr.donorData),t.xp6(1),t.Q6J("ngIf",!dr.loadDataCheck))},dependencies:[d.Fj,d.JJ,d.Q7,d.nD,d.oH,i.mk,i.sg,i.O5,P.v_,P.pH,I.k0,q.SK,q.R7,D.eB,D.Nr,M.Hw,T.sN,F.xw,F.SQ,F.Wh,F.UT,F.s9,F.yH,le.oO,de,i.H9]}),It})();var tt=s(47307),We=s(23576),ze=s(33867),we=s(31180);function Ye(It,fr){if(1&It){const yt=t.EpF();t.TgZ(0,"div",12)(1,"mat-slide-toggle",13),t.NdJ("ngModelChange",function(bt){t.CHM(yt);const ar=t.oxw();return t.KtG(ar.showDonorList=bt)})("change",function(bt){t.CHM(yt);const ar=t.oxw();return t.KtG(ar.onToggleChange(bt))}),t.TgZ(2,"span"),t.SDv(3,14),t.qZA()(),t.TgZ(4,"button",15),t._UZ(5,"img",16),t.qZA()()}if(2&It){const yt=t.oxw();t.xp6(1),t.Q6J("ngModel",yt.showDonorList),t.xp6(4),t.s9C("matTooltip",yt.tooltip)}}function te(It,fr){if(1&It&&t._uU(0),2&It){const yt=t.oxw();t.hij(" (",yt.count,") ")}}function Se(It,fr){if(1&It){const yt=t.EpF();t.TgZ(0,"a",35),t.NdJ("click",function(){t.CHM(yt);const bt=t.oxw().index,ar=t.oxw(2);return t.KtG(ar.openDialog(bt))}),t.SDv(1,36),t.qZA()}}function ke(It,fr){1&It&&t._UZ(0,"img",38)}function Ge(It,fr){if(1&It&&(t.TgZ(0,"div"),t.YNc(1,ke,1,0,"img",37),t.qZA()),2&It){const yt=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",null==yt?null:yt.reply_message)}}function Tt(It,fr){if(1&It){const yt=t.EpF();t.TgZ(0,"img",41),t.NdJ("click",function(){t.CHM(yt);const bt=t.oxw(2).index,ar=t.oxw(2);return t.KtG(ar.openDialog(bt))}),t.qZA()}}function Et(It,fr){if(1&It&&(t.TgZ(0,"div",39),t._uU(1),t.YNc(2,Tt,1,0,"img",40),t.qZA()),2&It){const yt=t.oxw().$implicit,dr=t.oxw(2);t.xp6(1),t.hij(" ",null==yt?null:yt.reply_message," "),t.xp6(1),t.Q6J("ngIf",dr.isLoggedInUserAdmin)}}function H(It,fr){if(1&It&&(t.TgZ(0,"div",21)(1,"div",22)(2,"div",23),t._UZ(3,"app-user-icon",24),t.qZA(),t.TgZ(4,"div",25)(5,"div",26)(6,"strong"),t._uU(7),t.qZA()(),t.TgZ(8,"div"),t._uU(9),t.qZA(),t.TgZ(10,"div"),t.YNc(11,Se,2,0,"a",27),t.qZA()(),t.TgZ(12,"div",28)(13,"span",29),t._uU(14),t.ALo(15,"currency"),t.qZA()()(),t.TgZ(16,"div",30),t._UZ(17,"div",31),t.TgZ(18,"div",32)(19,"div",33),t.YNc(20,Ge,2,1,"div",8),t.YNc(21,Et,3,2,"div",34),t.qZA()()()()),2&It){const yt=fr.$implicit,dr=fr.index,bt=t.oxw(2);t.Udp("border-bottom","1px solid #ddd")("last-child","0px"),t.xp6(3),t.Q6J("initialLetters",bt.getInitial(null==yt?null:yt.name))("index",dr),t.xp6(4),t.hij(" ",null==yt?null:yt.name," "),t.xp6(2),t.hij(" ",null==yt?null:yt.message," "),t.xp6(2),t.Q6J("ngIf",bt.isLoggedInUserAdmin&&(null==yt||null==yt.reply_message?null:yt.reply_message.length)<=1||bt.isLoggedInUserAdmin&&!(null!=yt&&yt.reply_message)),t.xp6(3),t.hij(" ",t.gM2(15,12,null==yt?null:yt.amount,null==yt?null:yt.symbol,"symbol","1.0-0")," "),t.xp6(6),t.Q6J("ngIf",(null==yt?null:yt.reply_message)&&(null==yt||null==yt.reply_message?null:yt.reply_message.length)>1),t.xp6(1),t.Q6J("ngIf",(null==yt?null:yt.reply_message)&&(null==yt||null==yt.reply_message?null:yt.reply_message.length)>1)}}function Y(It,fr){if(1&It){const yt=t.EpF();t.TgZ(0,"a",35),t.NdJ("click",function(){t.CHM(yt);const bt=t.oxw().index,ar=t.oxw(2);return t.KtG(ar.openDialog(bt))}),t.SDv(1,43),t.qZA()}}function S(It,fr){1&It&&t._UZ(0,"img",38)}function K(It,fr){if(1&It&&(t.TgZ(0,"div"),t.YNc(1,S,1,0,"img",37),t.qZA()),2&It){const yt=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",null==yt?null:yt.reply_message)}}function Q(It,fr){if(1&It){const yt=t.EpF();t.TgZ(0,"img",41),t.NdJ("click",function(){t.CHM(yt);const bt=t.oxw(2).index,ar=t.oxw(2);return t.KtG(ar.openDialog(bt))}),t.qZA()}}function B(It,fr){if(1&It&&(t.TgZ(0,"div",39),t._uU(1),t.YNc(2,Q,1,0,"img",40),t.qZA()),2&It){const yt=t.oxw().$implicit,dr=t.oxw(2);t.xp6(1),t.hij(" ",null==yt?null:yt.reply_message," "),t.xp6(1),t.Q6J("ngIf",dr.isLoggedInUserAdmin)}}function re(It,fr){if(1&It&&(t.TgZ(0,"div",21)(1,"div",22)(2,"div",23),t._UZ(3,"app-user-icon",42),t.qZA(),t.TgZ(4,"div",25)(5,"div",26)(6,"strong"),t._uU(7),t.qZA()(),t.TgZ(8,"div"),t._uU(9),t.qZA(),t.TgZ(10,"div"),t.YNc(11,Y,2,0,"a",27),t.qZA()(),t.TgZ(12,"div",28)(13,"span",29),t._uU(14),t.ALo(15,"currency"),t.qZA()()(),t.TgZ(16,"div",30),t._UZ(17,"div",31),t.TgZ(18,"div",32)(19,"div",33),t.YNc(20,K,2,1,"div",8),t.YNc(21,B,3,2,"div",34),t.qZA()()()()),2&It){const yt=fr.$implicit,dr=t.oxw(2);t.Udp("border-bottom","1px solid #ddd")("last-child","0px"),t.xp6(3),t.Q6J("initialLetters",dr.getInitial(null==yt?null:yt.name)),t.xp6(4),t.hij(" ",null==yt?null:yt.name," "),t.xp6(2),t.hij(" ",null==yt?null:yt.message," "),t.xp6(2),t.Q6J("ngIf",dr.isLoggedInUserAdmin&&(null==yt||null==yt.reply_message?null:yt.reply_message.length)<=1||dr.isLoggedInUserAdmin&&!(null!=yt&&yt.reply_message)),t.xp6(3),t.hij(" ",t.gM2(15,11,null==yt?null:yt.amount,null==yt?null:yt.symbol,"symbol","1.0-0")," "),t.xp6(6),t.Q6J("ngIf",(null==yt?null:yt.reply_message)&&(null==yt||null==yt.reply_message?null:yt.reply_message.length)>1),t.xp6(1),t.Q6J("ngIf",(null==yt?null:yt.reply_message)&&(null==yt||null==yt.reply_message?null:yt.reply_message.length)>1)}}function fe(It,fr){if(1&It&&(t.TgZ(0,"mat-tab-group")(1,"mat-tab",17)(2,"div",18)(3,"div",19),t.YNc(4,H,22,17,"div",20),t.qZA()()(),t.TgZ(5,"mat-tab",17)(6,"div",18)(7,"div",19),t.YNc(8,re,22,16,"div",20),t.qZA()()()()),2&It){const yt=t.oxw();t.xp6(1),t.s9C("label",yt.label_donorList_tab1),t.xp6(3),t.Q6J("ngForOf",yt.donorData),t.xp6(1),t.s9C("label",yt.label_donorList_tab2),t.xp6(3),t.Q6J("ngForOf",yt.topContributors)}}function qe(It,fr){if(1&It){const yt=t.EpF();t.TgZ(0,"button",53),t.NdJ("click",function(){t.CHM(yt);const bt=t.oxw(2);return t.KtG(bt.addOfflineDonation())}),t.SDv(1,54),t.qZA()}if(2&It){const yt=t.oxw(2);t.Q6J("disabled",yt.isDraftOrClosed)}}function $e(It,fr){if(1&It){const yt=t.EpF();t.TgZ(0,"div",44)(1,"div",45)(2,"div")(3,"h2"),t.SDv(4,46),t.qZA()(),t.TgZ(5,"div",47)(6,"button",15),t._UZ(7,"img",16),t.qZA()()(),t.TgZ(8,"div",48)(9,"div",49),t.YNc(10,qe,2,1,"button",50),t.qZA(),t.TgZ(11,"div",49)(12,"button",51),t.NdJ("click",function(){t.CHM(yt);const bt=t.oxw();return t.KtG(bt.viewOfflineDonationSummary())}),t.SDv(13,52),t.qZA()()()()}if(2&It){const yt=t.oxw();t.xp6(7),t.s9C("matTooltip",yt.offlineDonationTooltip),t.xp6(2),t.Q6J("matTooltip",yt.addOfflineDonationTooltip)("matTooltipDisabled",!yt.isDraftOrClosed),t.xp6(1),t.Q6J("ngIf",yt.isLoggedInUserAdmin&&!yt.isWholePreview),t.xp6(1),t.Q6J("matTooltip",yt.viewSummaryTooltip)("matTooltipDisabled",yt.isViewSummary),t.xp6(1),t.Q6J("disabled",!yt.isViewSummary)}}function et(It,fr){if(1&It&&(t.TgZ(0,"p"),t._uU(1),t.TgZ(2,"span",60),t.SDv(3,61),t.qZA()()),2&It){const yt=t.oxw(3);t.xp6(1),t.AsE(" ",yt.currency_symbol,"\xa0",yt.totalOfflineDonationAmount," ")}}function ot(It,fr){if(1&It){const yt=t.EpF();t.TgZ(0,"div",56)(1,"div",45)(2,"div")(3,"h2"),t.SDv(4,57),t.qZA()(),t.TgZ(5,"div",47)(6,"button",15),t._UZ(7,"img",16),t.qZA()()(),t.TgZ(8,"div",48),t.YNc(9,et,4,2,"p",8),t.TgZ(10,"div",49)(11,"button",58),t.NdJ("click",function(){t.CHM(yt);const bt=t.oxw(2);return t.KtG(bt.viewOfflineDonationSummary())}),t.SDv(12,59),t.qZA()()()()}if(2&It){const yt=t.oxw(2);t.xp6(7),t.s9C("matTooltip",yt.offlineDonationTooltip),t.xp6(2),t.Q6J("ngIf",!yt.isLoggedIn),t.xp6(1),t.Q6J("matTooltip",yt.viewSummaryTooltip)("matTooltipDisabled",yt.isViewSummary),t.xp6(1),t.Q6J("disabled",!yt.isViewSummary)}}function ct(It,fr){if(1&It&&t.YNc(0,ot,13,5,"div",55),2&It){const yt=t.oxw();t.Q6J("ngIf",yt.isViewSummary)}}function pt(It,fr){1&It&&(t.TgZ(0,"mat-icon"),t._UZ(1,"mat-spinner",62),t.qZA())}let $t=(()=>{class It{constructor(yt,dr,bt,ar,vt,qt,br,lt,De){this.fundraiserService=yt,this._media=dr,this.dialog=bt,this.replyService=ar,this.cd=vt,this._accountService=qt,this.router=br,this.notificationService=lt,this.fundRaiserService=De,this.isLoggedInUserAdmin=!1,this.hideToggleSwitch=!1,this.isDraftOrClosed=!1,this.updateDonorData=new t.vpe,this.isDonorListLoading=!0,this.showDonorList=!0,this.tooltip="Prebaci za sakrivanje ili prikazivanje liste donacija na javnoj stranici za prikupljanje sredstava.",this.offlineDonationTooltip="To \u0107e vam omogu\u0107iti da dodate donacije prikupljene offline od strane svrhe",this.viewSummaryTooltip="Dodajte izvanmre\u017Ene donacije da biste vidjeli sa\u017Eetak",this.addOfflineDonationTooltip="Objavite svoje prikupljanje sredstava prije dodavanja izvanmre\u017Ene donacije",this.isViewSummary=!0,this.donor={},this.label_donorList_tab1="Nedavne Donacije",this.label_donorList_tab2="Najaktivniji Suradnici"}ngOnInit(){this.showDonorList=this.donationReceivedBoolean,this.slug=this.router.url.split("?")[0].substring(13),this.slug=this.fundRaiserService.getCurrentFundraiserSlug(),this.replyService.changeUserValue(this.isLoggedInUserAdmin),this.lang=this._accountService.getLocaleId(),this.isDonorListLoading=!1,this.donorData=this.donorShortData?.data?.result?.result,this.count=this.donorShortData?.data?.result?.count,this.getOfflineDonations(),this.fundraiserService.getOfflineDonation().subscribe(yt=>{this.getOfflineDonations()}),this.getTopContributors()}getInitial(yt){if(!yt)return"AN";const dr=yt.trim().split(" ");return 1===dr.length?dr[0].substring(0,2).toUpperCase():dr.length>=2?`${dr[0].charAt(0).toUpperCase()}${dr[dr.length-1].charAt(0).toUpperCase()}`:"AN"}viewFullDonorList(){this.dialog.open(Ne,{panelClass:"max-w-100--panelClass",maxHeight:"95vh",width:"100vh",data:{isLoggedInUserAdmin:this.isLoggedInUserAdmin}})}addOfflineDonation(){this.dialog.open(tt.x,{maxHeight:"98vh",data:{slug:this.slug,currency_symbol:this.currentFundraiser.currency_symbol,currency_code:this.currentFundraiser.currency_code}})}viewOfflineDonationSummary(){this.dialog.open(We.Z,{data:{slug:this.slug,isLoggedIn:this.isLoggedIn,isLoggedInUserAdmin:this.isLoggedInUserAdmin}})}getOfflineDonations(){this.slug&&this.fundraiserService.getAllOfflineDonation(this.slug).subscribe(dr=>{this.totalOfflineDonationAmount=Number(dr.data.result.total_amount),this.currency_symbol=this.currentFundraiser.currency_symbol,this.offlineDonationCount=dr.data.result.details.length,this.isViewSummary=0!==this.offlineDonationCount})}openDialog(yt){this.dialog.open(l.n,{width:"80vh",maxHeight:"98vh",data:{count:this.donorData[yt]}}).componentInstance.replyPosted.subscribe(()=>{this.updateDonorData.emit()})}onToggleChange(yt){this.showDonorList=yt.checked,this._accountService.checkHeaders()&&this.fundraiserService.showDonationList({show_donations:this.showDonorList,slug:this.slug}).subscribe(bt=>{this.notificationService.openNotification("Sniman","","success"),window.location.reload()})}getTopContributors(){this.fundRaiserService.getTopContributors(this.slug,this.lang).subscribe({next:yt=>{this.topContributors=yt?.data?.result},error:yt=>{console.error("Error fetching top contributors:",yt)}})}}return It.\u0275fac=function(yt){return new(yt||It)(t.Y36(m.R),t.Y36(r.u0),t.Y36(e.uw),t.Y36(E),t.Y36(t.sBO),t.Y36(C.B),t.Y36(n.F0),t.Y36(v.g),t.Y36(m.R))},It.\u0275cmp=t.Xpm({type:It,selectors:[["app-donor-list-short"]],inputs:{isLoggedInUserAdmin:"isLoggedInUserAdmin",currentFundraiserID:"currentFundraiserID",donationReceivedBoolean:"donationReceivedBoolean",hideToggleSwitch:"hideToggleSwitch",donorShortData:"donorShortData",isLoggedIn:"isLoggedIn",currentFundraiser:"currentFundraiser",isDraftOrClosed:"isDraftOrClosed",isWholePreview:"isWholePreview"},outputs:{updateDonorData:"updateDonorData"},decls:18,vars:6,consts:function(){let fr,yt,dr,bt,ar,vt,qt,br,lt,De,G;return fr="Donacije",yt="Prika\u017Ei Sve",dr="Poka\u017Ei Popis Donacija",bt="Po\u0161alji poruku",ar="Po\u0161alji poruku",vt="Offline Zbirka",qt="Prika\u017Ei Sa\u017Eetak",br="Dodaj Izvanmre\u017Enu Donaciju",lt="Offline Zbirka",De="Prika\u017Ei Sa\u017Eetak",G="uzrok je prikupio offline",[["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","1%",4,"ngIf"],["fxLayout","row","fxFill","","fxLayoutAlign","center center","fxLayoutGap","5%"],["fxLayout","column","fxFlex","100%","fxLayoutAlign","center start"],fr,["id","donation_count",3,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100%","fxLayoutAlign","center end"],["id","short_donor_list_view_all","mat-button","","color","accent",3,"click"],yt,[4,"ngIf"],["fxLayout","column","fxFill","","ngClass","pale-grey-bg p-m",4,"ngIf","ngIfElse"],["loggedOutTemplate",""],["spinner",""],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","1%"],["id","hide_donor_list_toggle","color","primary",3,"ngModel","ngModelChange","change"],dr,["mat-icon-button",""],["src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/info14px/w=12",3,"matTooltip"],[3,"label"],["fxLayout","row","fxFlex","100%","fxLayoutAlign","center center",1,"p-t-s"],["fxLayout","column","fxFlex","100%","fxLayoutAlign","center center","fxLayoutGap","5%"],["fxLayout","column","class","p-b-l donor-list-small","fxFill","","fxLayoutGap","5%",3,"border-bottom","last-child",4,"ngFor","ngForOf"],["fxLayout","column","fxFill","","fxLayoutGap","5%",1,"p-b-l","donor-list-small"],["fxLayout","row","fxLayoutAlign","center center"],["fxLayout","column","fxLayoutAlign","center center"],[3,"initialLetters","index"],["fxLayout","column","fxFlex","55%","fxLayoutAlign","center start","ngClass","p-l-s"],["id","donationName"],["mat-button","","color","accent","class","zero-padding-margin",3,"click",4,"ngIf"],["fxLayout","column","fxFlex","30%","fxLayoutAlign","flex-end flex-end"],[1,"mat-option"],["fxFlex","100%","fxLayout","row"],["fxFlex","14%"],["fxLayout","row","fxFlex","100%"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","50%","fxFlex.xs","80%"],["fxLayoutAlign","start start","class","m-l-xs","fxFill","",4,"ngIf"],["mat-button","","color","accent",1,"zero-padding-margin",3,"click"],bt,["width","30","height","30","loading","lazy","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/donor_small/public",4,"ngIf"],["width","30","height","30","loading","lazy","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/donor_small/public"],["fxLayoutAlign","start start","fxFill","",1,"m-l-xs"],["fxLayoutAlign","center center","height","16px","class","m-l-xs","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/editSmall/public",3,"click",4,"ngIf"],["fxLayoutAlign","center center","height","16px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/editSmall/public",1,"m-l-xs",3,"click"],[3,"initialLetters"],ar,["fxLayout","column","fxFill","","ngClass","pale-grey-bg p-m"],["fxLayout","row","fxLayoutGap","1%","fxLayoutAlign","start center"],vt,["ngClass","p-b-m"],["fxLayout","column","fxLayoutGap","2%"],[3,"matTooltip","matTooltipDisabled"],["mat-stroked-button","","id","addOfflineDonation","color","accent","class","hover-btn w-100",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","id","viewOfflineDonationSummary","color","accent",1,"hover-btn","w-100",3,"disabled","click"],qt,["mat-stroked-button","","id","addOfflineDonation","color","accent",1,"hover-btn","w-100",3,"disabled","click"],br,["fxLayout","column","fxFill","","ngClass","pale-grey-bg p-m m-t-m",4,"ngIf"],["fxLayout","column","fxFill","","ngClass","pale-grey-bg p-m m-t-m"],lt,["mat-stroked-button","","color","accent",1,"hover-btn","w-100",3,"disabled","click"],De,[1,"mat-typography"],G,["color","primary","diameter","20"]]},template:function(yt,dr){if(1&yt&&(t.YNc(0,Ye,6,2,"div",0),t._UZ(1,"br"),t.TgZ(2,"div",1)(3,"div",2)(4,"h2")(5,"span"),t.SDv(6,3),t.qZA(),t._uU(7,"\xa0 "),t.YNc(8,te,1,1,"ng-template",4),t.qZA()(),t.TgZ(9,"div",5)(10,"a",6),t.NdJ("click",function(){return dr.viewFullDonorList()}),t.SDv(11,7),t.qZA()()(),t.YNc(12,fe,9,4,"mat-tab-group",8),t.YNc(13,$e,14,7,"div",9),t.YNc(14,ct,1,1,"ng-template",null,10,t.W1O),t.YNc(16,pt,2,0,"ng-template",null,11,t.W1O)),2&yt){const bt=t.MAs(15),ar=t.MAs(17);t.Q6J("ngIf",dr.isLoggedInUserAdmin&&!dr.hideToggleSwitch),t.xp6(8),t.Q6J("ngIf",!dr.isDonorListLoading)("ngIfElse",ar),t.xp6(4),t.Q6J("ngIf",dr.showDonorList),t.xp6(1),t.Q6J("ngIf",dr.isLoggedIn)("ngIfElse",bt)}},dependencies:[d.JJ,d.On,i.mk,i.sg,i.O5,ze.Rr,q.SK,q.R7,D.eB,D.Nr,M.Hw,T.sN,we.gM,F.xw,F.SQ,F.Wh,F.s9,F.yH,le.oO,de,i.H9],encapsulation:2}),It})()},81713:(St,be,s)=>{"use strict";s.d(be,{r:()=>V});var t=s(73991),e=s(26314),d=s(21704),l=s(47692),r=s(17774),c=s(27579),E=s(74351),m=s(62099),v=s(85270),C=s(97107);function n(de,ye){if(1&de&&t._UZ(0,"app-quill-view",6),2&de){const Ee=t.oxw(3);t.Q6J("quillContent",(null==Ee.fundraiserDescriptionData||null==Ee.fundraiserDescriptionData.translations?null:Ee.fundraiserDescriptionData.translations["content"+Ee.localeSuffix])||(null==Ee.fundraiserDescriptionData?null:Ee.fundraiserDescriptionData.content))}}function i(de,ye){if(1&de){const Ee=t.EpF();t.TgZ(0,"a",7),t.NdJ("click",function(){t.CHM(Ee);const ge=t.oxw(3);return t.KtG(ge.onReadMoreClick())}),t.SDv(1,8),t.qZA()}}function P(de,ye){if(1&de&&(t.ynx(0),t.YNc(1,n,1,1,"app-quill-view",4),t.YNc(2,i,2,0,"a",5),t.BQk()),2&de){const Ee=t.oxw(2);t.xp6(1),t.Q6J("ngIf",Ee.fundraiserDescriptionData&&((null==Ee.fundraiserDescriptionData||null==Ee.fundraiserDescriptionData.translations?null:Ee.fundraiserDescriptionData.translations["content"+Ee.localeSuffix])||(null==Ee.fundraiserDescriptionData?null:Ee.fundraiserDescriptionData.content))),t.xp6(1),t.Q6J("ngIf",null==Ee.fundraiserDescriptionData||null==Ee.fundraiserDescriptionData.content?null:Ee.fundraiserDescriptionData.content.includes("...."))}}const I=function(){return{height:150}};function q(de,ye){if(1&de&&(t.TgZ(0,"div",9),t._UZ(1,"ng-image-slider",10,11),t.qZA()),2&de){const Ee=t.oxw(2);t.xp6(1),t.Q6J("videoAutoPlay",!0)("images",Ee.fundraiserMediaList)("imageSize",t.DdM(5,I))("manageImageRatio",!0)("showArrow",Ee.mediaLength>2)}}function D(de,ye){if(1&de&&(t.TgZ(0,"div",13),t._UZ(1,"app-quill-view",6),t.qZA()),2&de){const Ee=t.oxw(3);t.xp6(1),t.Q6J("quillContent",Ee.parentFundraiserAboutcontent)}}function M(de,ye){if(1&de){const Ee=t.EpF();t.TgZ(0,"a",7),t.NdJ("click",function(){t.CHM(Ee);const ge=t.oxw(3);return t.KtG(ge.onReadMoreClick())}),t.SDv(1,14),t.qZA()}}function T(de,ye){if(1&de&&(t.YNc(0,D,2,1,"div",12),t.YNc(1,M,2,0,"a",5)),2&de){const Ee=t.oxw(2);t.Q6J("ngIf",Ee.parentFundraiserAboutcontent),t.xp6(1),t.Q6J("ngIf",null==Ee.parentFundraiserAboutcontent?null:Ee.parentFundraiserAboutcontent.includes("...."))}}function F(de,ye){if(1&de&&(t.TgZ(0,"div")(1,"div"),t.YNc(2,P,3,2,"ng-container",1),t.qZA(),t.YNc(3,q,3,6,"div",2),t.YNc(4,T,2,2,"ng-template",null,3,t.W1O),t.qZA()),2&de){const Ee=t.MAs(5),Le=t.oxw();t.xp6(2),t.Q6J("ngIf",!Le.isChildFundraiser)("ngIfElse",Ee),t.xp6(1),t.Q6J("ngIf",null==Le.currentFundraiser?null:Le.currentFundraiser.image_list[0])}}function le(de,ye){1&de&&(t.TgZ(0,"div"),t._UZ(1,"app-page-loader"),t.qZA())}let V=(()=>{class de{constructor(Ee,Le,ge){this._mediaService=Ee,this._accountService=Le,this._fundraiserService=ge,this.parentFundraiserAboutcontent="",this.fundraiserMediaList=[],this.mediaLength=0,this.locale="",this.localeSuffix="",this.readMoreClicked=new t.vpe,this.locale=this._accountService.getLocaleId(),this.localeSuffix=this._fundraiserService.getLocaleSuffix(this.locale)}ngOnChanges(Ee){if(this.currentFundraiser&&this.currentFundraiser?.image_list&&(this.fundraiserMediaList=this._mediaService.getSliderMediaList(this.currentFundraiser?.image_list),this.fundraiserMediaList&&null!=this.fundraiserMediaList&&null!=this.fundraiserMediaList&&(this.mediaLength=this.fundraiserMediaList?.length)),!0===this.isChildFundraiser){let Le=this.fundraiserDescriptionData?.parent?.translations?.["content_"+this.locale];this.parentFundraiserAboutcontent=Le||this.fundraiserDescriptionData?.parent?.content,this.parentFundraiserAboutcontent=this.parentFundraiserAboutcontent?.trim()}}onReadMoreClick(){this.readMoreClicked.emit(!1)}ngOnInit(){}}return de.\u0275fac=function(Ee){return new(Ee||de)(t.Y36(e.y),t.Y36(d.B),t.Y36(l.R))},de.\u0275cmp=t.Xpm({type:de,selectors:[["app-fundraiser-about"]],inputs:{currentFundraiser:"currentFundraiser",isChildFundraiser:"isChildFundraiser",fundraiserDescriptionData:"fundraiserDescriptionData",isLoading:"isLoading"},outputs:{readMoreClicked:"readMoreClicked"},features:[t.TTD],decls:2,vars:2,consts:function(){let ye,Ee;return ye="Pro\u010Ditaj vi\u0161e",Ee="Pro\u010Ditaj vi\u0161e",[[4,"ngIf"],[4,"ngIf","ngIfElse"],["ngClass","p-t-m p-l-s",4,"ngIf"],["parentFundraiserAbout",""],[3,"quillContent",4,"ngIf"],["class","read-more cursor-pointer",3,"click",4,"ngIf"],[3,"quillContent"],[1,"read-more","cursor-pointer",3,"click"],ye,["ngClass","p-t-m p-l-s"],[3,"videoAutoPlay","images","imageSize","manageImageRatio","showArrow"],["nav",""],["fxLayout","row",4,"ngIf"],["fxLayout","row"],Ee]},template:function(Ee,Le){1&Ee&&(t.YNc(0,F,6,3,"div",0),t.YNc(1,le,2,0,"div",0)),2&Ee&&(t.Q6J("ngIf",!0===Le.isLoading),t.xp6(1),t.Q6J("ngIf",!1===Le.isLoading))},dependencies:[r.mk,r.O5,c.xw,E.oO,m.H,v.f,C.sN],encapsulation:2}),de})()},45547:(St,be,s)=>{"use strict";s.d(be,{J:()=>m});var t=s(34021),e=s(73991),d=s(17774),l=s(43719),r=s(27579),c=s(74351);function E(v,C){if(1&v&&(e.TgZ(0,"mat-chip-list",1)(1,"mat-chip",2)(2,"div",3)(3,"div",4),e._UZ(4,"img",5),e.qZA(),e.TgZ(5,"div",6)(6,"caption",7),e._uU(7),e.qZA()(),e.TgZ(8,"div",8)(9,"caption",7),e._uU(10),e.qZA()()()()()),2&v){const n=e.oxw();e.xp6(4),e.Q6J("src",n.category.image,e.LSH),e.xp6(3),e.hij(" ",n.titleCategory.length>15?n.titleCategory.substring(0,15)+"...\xa0":n.titleCategory," "),e.xp6(3),e.hij(" ",n.titleCategory.length>35?n.titleCategory.substring(0,35)+"...\xa0":n.titleCategory," ")}}let m=(()=>{class v{constructor(){this.category={},this._categories=t.b,this.categoryId=1}ngOnChanges(n){}ngOnInit(){this.categoryId=this.category?.id,this.categoryObj=this._categories.find(n=>n.id==this.categoryId),this.titleCategory=this.categoryObj.name}}return v.\u0275fac=function(n){return new(n||v)},v.\u0275cmp=e.Xpm({type:v,selectors:[["app-fundraiser-category"]],inputs:{category:"category"},features:[e.TTD],decls:1,vars:1,consts:[["aria-label","Fundraiser Category",4,"ngIf"],["aria-label","Fundraiser Category"],["selected","","color","accent"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","2px"],["fxLayout","row","fxFlex","50%"],["height","24","width","22",3,"src"],["fxLayout","row","fxHide.xs","true",1,"nowrap-text"],["id","fundraisertitleCategory"],["fxLayout","row","fxHide.gt-xs","true",1,"nowrap-text"]],template:function(n,i){1&n&&e.YNc(0,E,11,3,"mat-chip-list",0),2&n&&e.Q6J("ngIf",i.category&&(null==i.category?null:i.category.image))},dependencies:[d.O5,l.ir,l.lw,r.xw,r.SQ,r.Wh,r.yH,c.b8]}),v})()},9989:(St,be,s)=>{"use strict";s.d(be,{f:()=>D});var t=s(73991),e=s(15645),d=s(47692),l=s(76037),r=s(64886),c=s(17774),E=s(4692),m=s(54449),v=s(27579);function C(M,T){1&M&&(t.TgZ(0,"mat-error"),t.SDv(1,29),t.qZA())}function n(M,T){1&M&&(t.TgZ(0,"mat-error"),t.SDv(1,30),t.qZA())}function i(M,T){1&M&&(t.TgZ(0,"mat-error"),t.SDv(1,31),t.qZA())}function P(M,T){1&M&&(t.TgZ(0,"mat-error"),t.SDv(1,32),t.qZA())}function I(M,T){1&M&&(t.TgZ(0,"mat-error"),t.SDv(1,33),t.qZA())}function q(M,T){1&M&&(t.TgZ(0,"mat-error"),t.SDv(1,34),t.qZA())}let D=(()=>{class M{constructor(F,le,V){this.fundraiserService=F,this.notificationService=le,this.router=V,this.isShareFundraiserFormValid=!1,this.isLoading=!1,this.fundraiserData="",this.slug="",this.shareForm=new t.vpe,this.shareFormValidity=new t.vpe,this.shareFundraiserForm=new e.nJ({email:new e.p4("",{validators:[e.kI.maxLength(100),e.kI.pattern(/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/)],asyncValidators:[this.isValidEmail()]}),facebook:new e.p4("",{validators:[e.kI.maxLength(100),e.kI.pattern(/^[a-zA-Z0-9_/@\s.:\-?=%]*$/)],asyncValidators:[this.isValidFacebookURL()]}),twitter:new e.p4("",{validators:[e.kI.maxLength(100),e.kI.pattern(/^[a-zA-Z0-9_/@\s.:\-?=%]*$/)],asyncValidators:[this.isValidTwitterURL()]}),linked_in:new e.p4("",{validators:[e.kI.maxLength(100),e.kI.pattern(/^[a-zA-Z0-9_/@\s.:\-?=%]*$/)],asyncValidators:[this.isValidLinkedInURL()]}),instagram:new e.p4("",{validators:[e.kI.maxLength(100),e.kI.pattern(/^[a-zA-Z0-9_/@\s.:\-?=%]*$/)],asyncValidators:[this.isValidInstagramURL()]}),website:new e.p4("",{validators:[e.kI.maxLength(100),e.kI.pattern(/^(https?:\/\/)?([a-zA-Z0-9_/@.-]+)$/)],asyncValidators:[this.isValidWebsiteURL()]})})}ngOnInit(){this.shareFundraiserForm?.controls?.email?.patchValue(this.fundraiserData?.currentFundraiser?.social_media?.email||""),this.shareFundraiserForm?.controls?.facebook?.patchValue(this.fundraiserData?.currentFundraiser?.social_media?.facebook||""),this.shareFundraiserForm?.controls?.twitter?.patchValue(this.fundraiserData?.currentFundraiser?.social_media?.twitter||""),this.shareFundraiserForm?.controls?.instagram?.patchValue(this.fundraiserData?.currentFundraiser?.social_media?.instagram||""),this.shareFundraiserForm?.controls?.website?.patchValue(this.fundraiserData?.currentFundraiser?.social_media?.website||""),this.shareFundraiserForm?.controls?.linked_in?.patchValue(this.fundraiserData?.currentFundraiser?.social_media?.linkedin||""),this.shareFundraiserForm.statusChanges.subscribe(F=>{this.shareForm.emit(this.shareFundraiserForm.getRawValue()),this.test="VALID"!==this.shareFundraiserForm.status,this.shareFormValidity.emit(this.test)})}isValidEmail(){return F=>new Promise((V,de)=>{let ye=F.value;ye?.length<=0||/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/.test(ye)?V(null):V({invalid:!0})})}isValidFacebookURL(){return F=>new Promise((V,de)=>{let ye=F.value;if(ye?.length<=0)V(null);else{var Ee=ye?.match(/facebook\.com/i);V(Ee?null:{invalid:"true"})}})}isValidTwitterURL(){return F=>new Promise((V,de)=>{let ye=F.value;if(ye?.length<=0)V(null);else{var Ee=ye?.match(/X\.com/i);V(Ee?null:{invalid:"true"})}})}isValidLinkedInURL(){return F=>new Promise((V,de)=>{let ye=F.value;if(ye?.length<=0)V(null);else{var Ee=ye?.match(/linkedin\.com/i);V(Ee?null:{invalid:"true"})}})}isValidInstagramURL(){return F=>new Promise((V,de)=>{let ye=F.value;if(ye?.length<=0)V(null);else{var Ee=ye?.match(/instagram\.com/i);V(Ee?null:{invalid:"true"})}})}isValidWebsiteURL(){return F=>new Promise((V,de)=>{let ye=F.value;if(ye?.length<=0)V(null);else{var Ee=ye?.match(/^(https?:\/\/)?([a-zA-Z0-9_/@.-]+)$/);V(Ee?null:{invalid:"true"})}})}}return M.\u0275fac=function(F){return new(F||M)(t.Y36(d.R),t.Y36(l.g),t.Y36(r.F0))},M.\u0275cmp=t.Xpm({type:M,selectors:[["app-fundraiser-contact"]],inputs:{fundraiserData:"fundraiserData"},outputs:{shareForm:"shareForm",shareFormValidity:"shareFormValidity"},decls:57,vars:7,consts:function(){let T,F,le,V,de,ye,Ee,Le,ge,ue,ee,se;return T="Adresa E-po\u0161te",F="Facebook stranica poveznica",le="X ra\u010Dun poveznica",V="Poveznica na LinkedIn stranicu",de="Instagram Stranica Poveznica",ye="Web Stranica Veza",Ee="Neva\u017Ee\u0107a e-po\u0161ta Unesite va\u017Ee\u0107u adresu e-po\u0161te.",Le="Neva\u017Ee\u0107a URL adresa Facebook stranice.",ge="Neva\u017Ee\u0107i URL X ra\u010Duna.",ue="Neva\u017Ee\u0107i LinkedIn ra\u010Dun URL-a.",ee="Neva\u017Ee\u0107a Instagram stranica poveznica",se="Neva\u017Ee\u0107a web stranica veza",[[3,"formGroup"],["fxFill","","fxLayout","row","fxLayoutAlign","center center"],["fxFill","","fxLayout","column","fxLayoutAlign","center center"],["appearance","outline",1,"w-100"],["matPrefix","","height","21","width","24","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/mail/public",1,"email-text","m-r-s"],T,["id","create_fundraiser_email","matInput","","type","email","formControlName","email"],["email",""],[4,"ngIf"],["matPrefix","","height","28","width","28","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fb/public",1,"email-text","m-r-s"],F,["id","create_fundraiser_facebook","matInput","","formControlName","facebook"],["facebook",""],["matPrefix","","height","28","width","28","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/x/public",1,"email-text","m-r-s"],le,["id","create_fundraiser_twitter","matInput","","formControlName","twitter"],["twitter",""],["matPrefix","","height","28","width","28","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/linkedin/public",1,"email-text","m-r-s"],V,["id","create_fundraiser_linked_in","matInput","","formControlName","linked_in"],["linked_in",""],["matPrefix","","height","28","width","28","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/insta/public",1,"email-text","m-r-s"],de,["id","create_fundraiser_instagram","matInput","","formControlName","instagram"],["instagram",""],["matPrefix","","height","24","width","24","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/web/public",1,"email-text","m-r-s"],ye,["id","create_fundraiser_website","matInput","","formControlName","website"],["website",""],Ee,Le,ge,ue,ee,se]},template:function(F,le){1&F&&(t.TgZ(0,"form",0)(1,"div",1)(2,"div",2)(3,"div",2)(4,"div",1)(5,"mat-form-field",3),t._UZ(6,"img",4),t.TgZ(7,"mat-label"),t.SDv(8,5),t.qZA(),t._UZ(9,"input",6,7),t.YNc(11,C,2,0,"mat-error",8),t.qZA()()(),t.TgZ(12,"div",2)(13,"div",1)(14,"mat-form-field",3),t._UZ(15,"img",9),t.TgZ(16,"mat-label"),t.SDv(17,10),t.qZA(),t._UZ(18,"input",11,12),t.YNc(20,n,2,0,"mat-error",8),t.qZA()()(),t.TgZ(21,"div",2)(22,"div",1)(23,"mat-form-field",3),t._UZ(24,"img",13),t.TgZ(25,"mat-label"),t.SDv(26,14),t.qZA(),t._UZ(27,"input",15,16),t.YNc(29,i,2,0,"mat-error",8),t.qZA()()(),t.TgZ(30,"div",2)(31,"div",1)(32,"mat-form-field",3),t._UZ(33,"img",17),t.TgZ(34,"mat-label"),t.SDv(35,18),t.qZA(),t._UZ(36,"input",19,20),t.YNc(38,P,2,0,"mat-error",8),t.qZA()()(),t.TgZ(39,"div",2)(40,"div",1)(41,"mat-form-field",3),t._UZ(42,"img",21),t.TgZ(43,"mat-label"),t.SDv(44,22),t.qZA(),t._UZ(45,"input",23,24),t.YNc(47,I,2,0,"mat-error",8),t.qZA()()(),t.TgZ(48,"div",2)(49,"div",1)(50,"mat-form-field",3),t._UZ(51,"img",25),t.TgZ(52,"mat-label"),t.SDv(53,26),t.qZA(),t._UZ(54,"input",27,28),t.YNc(56,q,2,0,"mat-error",8),t.qZA()()()()()()),2&F&&(t.Q6J("formGroup",le.shareFundraiserForm),t.xp6(11),t.Q6J("ngIf",le.shareFundraiserForm.controls.email.errors),t.xp6(9),t.Q6J("ngIf",le.shareFundraiserForm.controls.facebook.errors),t.xp6(9),t.Q6J("ngIf",le.shareFundraiserForm.controls.twitter.errors),t.xp6(9),t.Q6J("ngIf",le.shareFundraiserForm.controls.linked_in.errors),t.xp6(9),t.Q6J("ngIf",le.shareFundraiserForm.controls.instagram.errors),t.xp6(9),t.Q6J("ngIf",le.shareFundraiserForm.controls.website.errors))},dependencies:[e._Y,e.Fj,e.JJ,e.JL,e.sg,e.u,c.O5,E.nI,E.v_,E.$V,E.g4,m.k0,v.xw,v.Wh,v.s9]}),M})()},91469:(St,be,s)=>{"use strict";s.d(be,{V:()=>Z});var t=s(49986),e=s(73991),d=s(48910),l=s(64886),r=s(21704),c=s(84531),E=s(45720),m=s(47692),v=s(1911),C=s(81338),n=s(6225),i=s(26314),P=s(17774),I=s(43073),q=s(43719),D=s(45379),M=s(81560),T=s(31180),F=s(27579),le=s(74351),V=s(76243),de=s(46362),ye=s(8687),Ee=s(43609);function Le(Te,w){if(1&Te){const k=e.EpF();e.TgZ(0,"div",22)(1,"div",3)(2,"h2"),e.SDv(3,23),e.qZA()(),e.TgZ(4,"div",24)(5,"button",25),e.NdJ("click",function(){e.CHM(k);const z=e.oxw();return e.KtG(z.goToEditAmount())}),e._UZ(6,"img",26),e.qZA()()()}if(2&Te){const k=e.oxw();e.xp6(6),e.s9C("matTooltip",k.editTooltip)}}function ge(Te,w){1&Te&&(e.TgZ(0,"div")(1,"mat-chip",28)(2,"caption"),e.SDv(3,29),e.qZA()()())}function ue(Te,w){1&Te&&(e.TgZ(0,"div")(1,"mat-chip",28)(2,"caption"),e.SDv(3,30),e.qZA()()())}function ee(Te,w){1&Te&&(e.TgZ(0,"div")(1,"mat-chip",28)(2,"caption"),e.SDv(3,31),e.qZA()()())}function se(Te,w){1&Te&&(e.TgZ(0,"div")(1,"mat-chip",28)(2,"caption"),e.SDv(3,32),e.qZA()()())}function W(Te,w){if(1&Te&&(e.TgZ(0,"div",22)(1,"mat-chip-list",27),e.YNc(2,ge,4,0,"div",6),e.YNc(3,ue,4,0,"div",6),e.YNc(4,ee,4,0,"div",6),e.YNc(5,se,4,0,"div",6),e.qZA()()),2&Te){const k=e.oxw();e.xp6(2),e.Q6J("ngIf",k.isFindable),e.xp6(1),e.Q6J("ngIf",!k.isFindable),e.xp6(1),e.Q6J("ngIf",k.isOpen),e.xp6(1),e.Q6J("ngIf",!k.isOpen)}}function L(Te,w){if(1&Te&&(e.TgZ(0,"div"),e._UZ(1,"app-donation-progress-bar",33),e.qZA()),2&Te){const k=e.oxw();e.xp6(1),e.Q6J("fundraiserCardData",k.fundraiserCardData)("offlineDonationAmount",k.totalOfflineDonationAmount)}}function he(Te,w){1&Te&&(e.TgZ(0,"mat-icon",34),e._UZ(1,"mat-spinner",35),e.qZA())}function _e(Te,w){if(1&Te&&(e.TgZ(0,"div",36),e._UZ(1,"img",37),e.TgZ(2,"p")(3,"b"),e._uU(4),e.qZA(),e._uU(5," \xa0"),e.TgZ(6,"span"),e.SDv(7,38),e.qZA(),e._uU(8,"\xa0"),e.TgZ(9,"b"),e._uU(10),e.qZA(),e._uU(11,"\xa0"),e.TgZ(12,"span"),e.SDv(13,39),e.qZA()()()),2&Te){const k=e.oxw();e.xp6(4),e.AsE("",k.currency_symbol,"\xa0",k.totalOfflineDonationAmount,""),e.xp6(6),e.AsE("",k.currency_symbol,"\xa0",k.totalOnlineDonationAmount,"")}}let Z=(()=>{class Te{constructor(k,x,z,j,Ne,tt,We,ze,we,Ye){this._AccountService=z,this._media=j,this.dialog=Ne,this.fundraiserService=tt,this._bankService=We,this._profileService=ze,this._themeService=we,this._mediaService=Ye,this.targetAmount=0,this.raisedAmount=0,this.showEdits=!1,this.isDraftOrClosed=!1,this.isNewFundraiser=!1,this.daysLeft=0,this.isLoggedIn=!1,this.isFindable=!1,this.isOpen=!1,this.isDraft=!1,this.editTooltip="Uredi",this.editDonationAmountURL="/fundraising/donation-amount/",this.temp=!1,this.progress=0,this.disableDonation=!1,this.slug="",this.stripeNotificationCheck=!1,this.donationToolTipMessage="The fundraiser has been closed",this.isLoading=!1,this.totalOfflineDonationAmount=0,this.totalOnlineDonationAmount=0,this.isViewSummary=!0,this.locale=this._AccountService.getLocaleId(),this.donationService=k,this.router=x}ngOnInit(){1==this.isLoggedIn&&this._AccountService.checkHeaders()&&this._bankService.getStripeStatus().subscribe(k=>{this.stripeStatus=k?.data,0==this.stripeStatus?.charges_enabled&&0==this.stripeStatus?.payout_enabled&&0==this.stripeStatus?.details_submitted?this.stripeNotificationCheck=!0:(this.stripeNotificationCheck=!1,this.donationToolTipMessage="Account verification is mandatory to receive donation and payouts.")}),0!=this.targetAmount&&(this.progress=this.raisedAmount/this.targetAmount*100,this.temp=!0),this.progress>100&&(this.disableDonation=!1),this.fundraiserService.getStripeChargesStatus(this.selectedFundraiser?.slug).subscribe(k=>{this.stripeChargeStatus=k?.data?.status}),this.getTotalOfflineDonations(),this.fundraiserService.getOfflineDonation().subscribe(k=>{this.getTotalOfflineDonations()}),this.fundraiserService.getFundraiserBySlug(`${this.selectedFundraiser?.slug}`,this.locale).subscribe(k=>{this.profileResponse=k?.data?.result,this._themeService.setTheme(this.profileResponse?.profile?.primary_color,this.profileResponse?.profile?.secondary_color,this.profileResponse?.profile?.fonts)})}donate(){this.isLoading=!0,this.donationService.setSelectedFundraiser(this.selectedFundraiser),this.router.navigate(["donate/"+this.selectedFundraiser?.slug])}openShareDialog(){this.dialog.open(t.x,{panelClass:"share-dialog-panel",maxHeight:"auto",maxWidth:"90vw",width:"95vw",data:{fundraiser:this.selectedFundraiser,data:this.fundraiserCardData,profileResponse:this.profileResponse}})}goToEditAmount(){this.router.navigate([this.editDonationAmountURL,this.selectedFundraiser?.slug,{raisedAmount:this.raisedAmount,targetAmount:this.targetAmount,progress:this.progress}])}getTotalOfflineDonations(){const k=this.selectedFundraiser?.slug;k&&this.fundraiserService.getAllOfflineDonation(k).subscribe(x=>{this.totalOfflineDonationAmount=x.data.result.total_amount,this.totalOnlineDonationAmount=this.fundraiserCardData.donationReceivedAmount,this.currency_symbol=this.fundraiserCardData.currency_symbol,this.totalOfflineDonationAmount=Number(x.data.result.total_amount),this.fundraiserCardData={...this.fundraiserCardData,totalOfflineDonationAmount:this.totalOfflineDonationAmount},this.offlineDonationCount=x.data.result.details.length,this.isViewSummary=0!==this.offlineDonationCount,this.showDonationAmount=this.fundraiserCardData?.showDonationAmount,this.isShowDonationAmount=this.isViewSummary&&this.showDonationAmount})}}return Te.\u0275fac=function(k){return new(k||Te)(e.Y36(d.l),e.Y36(l.F0),e.Y36(r.B),e.Y36(c.u0),e.Y36(E.uw),e.Y36(m.R),e.Y36(v.y),e.Y36(C.H),e.Y36(n.f),e.Y36(i.y))},Te.\u0275cmp=e.Xpm({type:Te,selectors:[["app-fundraiser-donation"]],inputs:{fundraiserCardData:"fundraiserCardData",targetAmount:"targetAmount",raisedAmount:"raisedAmount",selectedFundraiser:"selectedFundraiser",showEdits:"showEdits",isDraftOrClosed:"isDraftOrClosed",isNewFundraiser:"isNewFundraiser",daysLeft:"daysLeft",isLoggedIn:"isLoggedIn",isFindable:"isFindable",isOpen:"isOpen",isDraft:"isDraft"},decls:25,vars:20,consts:function(){let w,k,x,z,j,Ne,tt,We,ze;return w="Donacija",k="Podijeli Sakuplja\u010D Sredstava",x="Postavke",z="Prona\u0111ivo",j="Neprona\u0111ivo",Ne="Otvori",tt="Zatvoreno",We="prikupljeno je offline i ru\u010Dno dodano od strane vlasnika ovog prikupljanja sredstava.",ze="je prikupljen putem WhyDonate.",[["fxLayout","column","fxLayoutAlign","start"],["fxLayout","row","fxLayoutAlign","start start",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start baseline","ngClass","m-t-m"],["fxFlex",""],["id","donationAmount",1,"mat-h1"],[3,"fundraiserCardData","offlineDonationAmount"],[4,"ngIf"],["fxLayout","row","fxFill","","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","50%","fxLayoutAlign","center start"],["id","fundedPercentage"],[3,"fundraiserCardData"],["fxLayout","column","fxFlex","50%","fxLayoutAlign","center end"],[3,"fundraiserCardData","showLabel","offlineDonationAmount"],["fxLayout","column","fxLayoutGap","5%"],[3,"matTooltip","matTooltipDisabled"],["id","donateButton","mat-flat-button","","color","accent",1,"w-100",3,"disabled","click"],w,["class","m-l-xs",4,"ngIf"],["matTooltip","Publish your fundraiser before sharing it",3,"matTooltipDisabled"],["id","shareFundraiser","mat-stroked-button","","color","accent",1,"w-100",3,"disabled","click"],k,["fxFlex","100%","fxLayout","row","fxLayoutGap","5%",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start start"],x,[1,"cursor-pointer"],["mat-icon-button","","id","editAmount",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/edit/public",3,"matTooltip"],["aria-label","category selection","id","chip-list","name","chip-list",1,"whydonate-light"],["id","chip","name","chip","color","accent","selected","","removable","true",1,"mat-chip-list-stacked","my-chip"],z,j,Ne,tt,[1,"m-b-m",3,"fundraiserCardData","offlineDonationAmount"],[1,"m-l-xs"],["color","accent","diameter","20"],["fxFlex","100%","fxLayout","row","fxLayoutGap","5%"],["height","44px","src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/offlineBank/public"],We,ze]},template:function(k,x){1&k&&(e.TgZ(0,"div",0),e.YNc(1,Le,7,1,"div",1),e.YNc(2,W,6,4,"div",1),e.TgZ(3,"div",2)(4,"div",3)(5,"div",4),e._UZ(6,"app-amount-view",5),e.qZA()()(),e.YNc(7,L,2,2,"div",6),e.TgZ(8,"div",7)(9,"div",8)(10,"h3",9),e._UZ(11,"app-days-left-view",10),e.qZA()(),e.TgZ(12,"div",11)(13,"h3",9),e._UZ(14,"app-donation-progress-percentage",12),e.qZA()()(),e.TgZ(15,"div",13)(16,"div",14)(17,"button",15),e.NdJ("click",function(){return x.donate()}),e.TgZ(18,"span"),e.SDv(19,16),e.qZA(),e.YNc(20,he,2,0,"mat-icon",17),e.qZA()(),e.TgZ(21,"div",18)(22,"button",19),e.NdJ("click",function(){return x.openShareDialog()}),e.SDv(23,20),e.qZA()(),e.YNc(24,_e,14,4,"div",21),e.qZA()()),2&k&&(e.xp6(1),e.Q6J("ngIf",x.showEdits),e.xp6(1),e.Q6J("ngIf",x.showEdits),e.xp6(4),e.Q6J("fundraiserCardData",x.fundraiserCardData)("offlineDonationAmount",x.totalOfflineDonationAmount),e.xp6(1),e.Q6J("ngIf",x.fundraiserCardData.showDonationAmount),e.xp6(4),e.Q6J("fundraiserCardData",x.fundraiserCardData),e.xp6(3),e.Q6J("fundraiserCardData",x.fundraiserCardData)("showLabel",!0)("offlineDonationAmount",x.totalOfflineDonationAmount),e.xp6(2),e.Q6J("matTooltip",x.donationToolTipMessage)("matTooltipDisabled",!x.isDraftOrClosed),e.xp6(1),e.Udp("color","#fff"),e.Q6J("disabled",x.disableDonation||x.isDraftOrClosed||0==x.isOpen||x.stripeNotificationCheck||!x.stripeChargeStatus||x.isLoading),e.xp6(3),e.Q6J("ngIf",x.isLoading),e.xp6(1),e.Q6J("matTooltipDisabled",!x.isDraftOrClosed),e.xp6(1),e.Udp("color","accent"),e.Q6J("disabled",x.isDraftOrClosed),e.xp6(2),e.Q6J("ngIf",x.isShowDonationAmount))},dependencies:[P.mk,P.O5,I.eB,q.ir,q.lw,D.Hw,M.sN,T.gM,F.xw,F.SQ,F.Wh,F.s9,F.yH,le.oO,V.y,de.f,ye.s,Ee.K],encapsulation:2}),Te})()},66037:(St,be,s)=>{"use strict";s.d(be,{X:()=>C});var t=s(73991),e=s(64886),d=s(84531),l=s(47692),r=s(17774),c=s(43719),E=s(31180),m=s(27579),v=s(74351);let C=(()=>{class n{constructor(P,I,q){this.router=P,this._media=I,this.fundraiserService=q,this.location="",this.country="",this.isLoggedInUserAdmin=!1,this.showEdits=!1,this.slug=""}ngOnChanges(P){}ngOnInit(){}}return n.\u0275fac=function(P){return new(P||n)(t.Y36(e.F0),t.Y36(d.u0),t.Y36(l.R))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-fundraiser-location"]],inputs:{currentFundraiser:"currentFundraiser"},features:[t.TTD],decls:11,vars:3,consts:[["aria-label","Fundraiser location"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","2px",3,"matTooltip"],["fxLayout","row","ngClass","p-r-xs"],["height","16","width","12","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/locationDark/public"],["fxLayout","row","fxHide.xs","true",1,"nowrap-text"],["fxLayout","row","fxHide.gt-xs","true",1,"nowrap-text"]],template:function(P,I){1&P&&(t.TgZ(0,"mat-chip-list",0)(1,"mat-chip")(2,"div",1)(3,"div",2),t._UZ(4,"img",3),t.qZA(),t.TgZ(5,"div",4)(6,"caption"),t._uU(7),t.qZA()(),t.TgZ(8,"div",5)(9,"caption"),t._uU(10),t.qZA()()()()()),2&P&&(t.xp6(2),t.s9C("matTooltip",null==I.currentFundraiser||null==I.currentFundraiser.location?null:I.currentFundraiser.location.location_name),t.xp6(5),t.hij(" ",(null==I.currentFundraiser||null==I.currentFundraiser.location||null==I.currentFundraiser.location.location_name?null:I.currentFundraiser.location.location_name.length)>15?(null==I.currentFundraiser||null==I.currentFundraiser.location?null:I.currentFundraiser.location.location_name.substring(0,15))+"...\xa0":null==I.currentFundraiser||null==I.currentFundraiser.location?null:I.currentFundraiser.location.location_name," "),t.xp6(3),t.hij(" ",(null==I.currentFundraiser||null==I.currentFundraiser.location||null==I.currentFundraiser.location.location_name?null:I.currentFundraiser.location.location_name.length)>35?(null==I.currentFundraiser||null==I.currentFundraiser.location?null:I.currentFundraiser.location.location_name.substring(0,35))+"...\xa0":null==I.currentFundraiser||null==I.currentFundraiser.location?null:I.currentFundraiser.location.location_name," "))},dependencies:[r.mk,c.ir,c.lw,E.gM,m.xw,m.SQ,m.Wh,v.b8,v.oO]}),n})()},6717:(St,be,s)=>{"use strict";s.d(be,{z:()=>r});var t=s(73991),e=s(26314),d=s(97107);const l=function(){return{width:"250",height:150}};let r=(()=>{class c{constructor(m){this._mediaService=m,this.fundraiserMediaList=[],this.mediaLength=0}ngOnChanges(m){this.currentFundraiser?.image_list&&(this.fundraiserMediaList=this._mediaService.getSliderMediaList(this.currentFundraiser?.image_list||[]),this.mediaLength=this.getLength(this.fundraiserMediaList))}ngOnInit(){}getLength(m){return m?.length}}return c.\u0275fac=function(m){return new(m||c)(t.Y36(e.y))},c.\u0275cmp=t.Xpm({type:c,selectors:[["app-fundraiser-media-view"]],inputs:{currentFundraiser:"currentFundraiser"},features:[t.TTD],decls:2,vars:4,consts:[[3,"images","imageSize","showArrow"],["nav",""]],template:function(m,v){1&m&&t._UZ(0,"ng-image-slider",0,1),2&m&&t.Q6J("images",v.fundraiserMediaList)("imageSize",t.DdM(3,l))("showArrow",v.mediaLength>2)},dependencies:[d.sN],encapsulation:2}),c})()},26974:(St,be,s)=>{"use strict";s.d(be,{c:()=>he});var t=s(73991),e=s(532),d=s(24510),l=s(47692),r=s(21704),c=s(45720),E=s(17774),m=s(4692),v=s(9),C=s(43073),n=s(45379),i=s(81560),P=s(27579),I=s(74351),q=s(62099),D=s(85270),M=s(97107);function T(_e,Z){1&_e&&t.GkF(0)}function F(_e,Z){if(1&_e){const Te=t.EpF();t.TgZ(0,"a",27),t.NdJ("click",function(){t.CHM(Te);const k=t.oxw().$implicit,x=t.oxw(3);return t.KtG(x.loadFullUpdate(k.id))}),t.SDv(1,28),t.qZA()}}const le=function(){return{height:150}};function V(_e,Z){if(1&_e&&(t.ynx(0),t.TgZ(1,"div",29),t._UZ(2,"ng-image-slider",30,31),t.qZA(),t.BQk()),2&_e){const Te=t.oxw(),w=Te.index,k=Te.$implicit;t.xp6(1),t.Q6J("ngClass",0===w?"m-l-s m-b-s":""),t.xp6(1),t.Q6J("videoAutoPlay",!0)("images",null==k?null:k.sliderMediaList)("imageSize",t.DdM(6,le))("manageImageRatio",!0)("showArrow",(null==k||null==k.sliderMediaList?null:k.sliderMediaList.length)>2)}}const de=function(_e){return{"mat-elevation-z4":_e}};function ye(_e,Z){if(1&_e){const Te=t.EpF();t.ynx(0),t.TgZ(1,"div",13),t.NdJ("mouseover",function(){const x=t.CHM(Te).$implicit,z=t.oxw(3);return t.KtG(z.hoverListItem(x))})("mouseout",function(){const x=t.CHM(Te).$implicit,z=t.oxw(3);return t.KtG(z.hoverListItem(x))}),t.TgZ(2,"div",14)(3,"mat-hint",15),t._UZ(4,"img",16),t.TgZ(5,"div",17)(6,"span"),t._uU(7,"Updated on\xa0"),t.qZA(),t.TgZ(8,"span"),t._uU(9),t.qZA()()(),t.TgZ(10,"mat-hint",18)(11,"button",19),t.NdJ("click",function(){const x=t.CHM(Te).index,z=t.oxw(3);return t.KtG(z.shareUpdate(x))}),t._UZ(12,"img",20),t.qZA()()(),t.TgZ(13,"div",21)(14,"div",22),t.YNc(15,T,1,0,"ng-container",23),t.qZA(),t.TgZ(16,"div",24)(17,"div",21),t._UZ(18,"app-quill-view",25),t.qZA(),t.YNc(19,F,2,0,"a",26),t.YNc(20,V,4,7,"ng-container",12),t.qZA()()(),t.BQk()}if(2&_e){const Te=Z.$implicit,w=Z.index,k=t.oxw(3),x=t.MAs(2);t.xp6(1),t.Q6J("ngClass",t.VKq(7,de,Te.listItemHovered)),t.xp6(8),t.hij("",Te.date," "),t.xp6(6),t.Q6J("ngIf",w+1===(null==k.updatesList?null:k.updatesList.length))("ngIfElse",x),t.xp6(3),t.Q6J("quillContent",Te.content),t.xp6(1),t.Q6J("ngIf",null==Te||null==Te.content?null:Te.content.includes("....")),t.xp6(1),t.Q6J("ngIf",null==Te||null==Te.sliderMediaList?null:Te.sliderMediaList.length)}}function Ee(_e,Z){1&_e&&(t.TgZ(0,"mat-icon"),t._UZ(1,"mat-spinner",32),t.qZA())}function Le(_e,Z){if(1&_e){const Te=t.EpF();t.YNc(0,ye,21,9,"ng-container",9),t._UZ(1,"br"),t.TgZ(2,"button",10),t.NdJ("click",function(){t.CHM(Te);const k=t.oxw(2);return t.KtG(k.viewMore())}),t.TgZ(3,"span"),t.SDv(4,11),t.qZA(),t.YNc(5,Ee,2,0,"mat-icon",12),t.qZA()}if(2&_e){const Te=t.oxw(2);t.Q6J("ngForOf",Te.updatesList),t.xp6(2),t.Q6J("disabled",Te.loading||Te.page==Te.totalPages),t.xp6(3),t.Q6J("ngIf",Te.loading)}}function ge(_e,Z){if(1&_e&&(t.TgZ(0,"div",6)(1,"span",7),t._uU(2),t.qZA()(),t._UZ(3,"br")(4,"mat-divider")(5,"br"),t.TgZ(6,"div",8),t.YNc(7,Le,6,3,"ng-template",0),t.qZA()),2&_e){const Te=t.oxw(),w=t.MAs(4);t.xp6(2),t.hij("Updates (",Te.count,")"),t.xp6(5),t.Q6J("ngIf",null==Te.updatesList?null:Te.updatesList.length)("ngIfElse",w)}}function ue(_e,Z){1&_e&&t._UZ(0,"mat-divider",33)}function ee(_e,Z){1&_e&&(t.TgZ(0,"div",34)(1,"div",35),t._UZ(2,"img",36),t.qZA(),t.TgZ(3,"div",35),t.SDv(4,37),t.qZA(),t._UZ(5,"br"),t.qZA(),t._UZ(6,"br"))}function se(_e,Z){}function W(_e,Z){}function L(_e,Z){1&_e&&t._UZ(0,"app-page-loader")}let he=(()=>{class _e{constructor(Te,w,k,x){this._domSanitizer=Te,this._fundraiserService=w,this._accountService=k,this.dialog=x,this.cardShadow="1",this.loadFullUpdateEvent=new t.vpe,this.readMoreSelectedId=0,this.page=1,this.loading=!1}ngOnChanges(Te){this.fundraiserUpdates&&(this.updatesList=this._fundraiserService.getUpdatesViewObj(this.fundraiserUpdates,this._accountService.getLocaleId()))}ngOnInit(){}shareUpdate(Te){this.dialog.open(e.k,{maxHeight:"98vh",data:{update:this.updatesList[Te],slug:this.currentFundraiser?.slug,currentFundraiser:this.currentFundraiser}})}viewMore(){this.loading=!0,this._fundraiserService.getUpdates(this.slug,this._accountService.getLocaleId(),this.page+1).subscribe(Te=>{const w=this._fundraiserService.getUpdatesViewObj(Te.data,this._accountService.getLocaleId());this.updatesList=this.updatesList.concat(w),this.page+=1,this.loading=!1})}loadFullUpdate(Te){this.readMoreSelectedId=Te,this.loadFullUpdateEvent.emit(Te)}santizeURL(Te){return this._domSanitizer.bypassSecurityTrustResourceUrl(Te)}hoverListItem(Te){Te.listItemHovered=!Te.listItemHovered}}return _e.\u0275fac=function(Te){return new(Te||_e)(t.Y36(d.H7),t.Y36(l.R),t.Y36(r.B),t.Y36(c.uw))},_e.\u0275cmp=t.Xpm({type:_e,selectors:[["app-fundraiser-update-view"]],inputs:{fundraiserUpdates:"fundraiserUpdates",currentFundraiser:"currentFundraiser",updatesList:"updatesList",cardShadow:"cardShadow",slug:"slug",count:"count",totalPages:"totalPages"},outputs:{loadFullUpdateEvent:"loadFullUpdateEvent"},features:[t.TTD],decls:11,vars:2,consts:function(){let Z,Te,w;return Z="Prika\u017Ei Vi\u0161e",Te="Pro\u010Ditaj vi\u0161e",w="A\u017Euriranja sti\u017Eu uskoro.",[[3,"ngIf","ngIfElse"],["timeline",""],["otherUser",""],["updatesEditActions",""],["updatesRow",""],["whydonateLoader",""],["fxLayout","row","fxLayoutAlign","space-between end"],["mat-tab-label-content","",1,"mat-tab-label-active","mat-body-2"],["fxLayout","column","fxLayoutAlign","center start","ngClass","p-l-xxs p-r-xxs"],[4,"ngFor","ngForOf"],["id","view-more-button","name","view-more-button","mat-flat-button","","color","accent",3,"disabled","click"],Z,[4,"ngIf"],["fxLayout","column","fxFill","","ngClass","p-b-m",3,"ngClass","mouseover","mouseout"],["fxLayout","row wrap","fxLayoutAlign","center center"],["fxFlex","","fxLayoutAlign","start center",1,"mat-caption"],["height","11px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/circle/public"],["fxLayout","row wrap",1,"m-l-xs"],["fxFlex","","fxLayoutAlign","end end"],["mat-icon-button","",3,"click"],["height","18px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/sharedSocial/public"],["fxLayout","row"],[1,"m-l-xxs"],[4,"ngIf","ngIfElse"],[1,"w-100","m-m"],[3,"quillContent"],["class","read-more cursor-pointer",3,"click",4,"ngIf"],[1,"read-more","cursor-pointer",3,"click"],Te,[3,"ngClass"],[3,"videoAutoPlay","images","imageSize","manageImageRatio","showArrow"],["nav",""],["color","primary","diameter","20"],["vertical","","fxFill","100"],["fxLayout","column","fxFill","","fxLayoutAlign","center center",1,"grey-bg","p-xxl"],[1,"center"],["src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/content/public"],w]},template:function(Te,w){if(1&Te&&(t.YNc(0,ge,8,3,"ng-template",0),t.YNc(1,ue,1,0,"ng-template",null,1,t.W1O),t.YNc(3,ee,7,0,"ng-template",null,2,t.W1O),t.YNc(5,se,0,0,"ng-template",null,3,t.W1O),t.YNc(7,W,0,0,"ng-template",null,4,t.W1O),t.YNc(9,L,1,0,"ng-template",null,5,t.W1O)),2&Te){const k=t.MAs(10);t.Q6J("ngIf",w.updatesList)("ngIfElse",k)}},dependencies:[E.mk,E.sg,E.O5,m.pH,v.d,C.eB,n.Hw,i.sN,P.xw,P.Wh,P.s9,P.yH,I.oO,q.H,D.f,M.sN],encapsulation:2}),_e})()},36560:(St,be,s)=>{"use strict";s.d(be,{j:()=>r});var t=s(73991),e=s(84531),d=s(4692),l=s(27579);let r=(()=>{class c{constructor(m){this._media=m}ngOnChanges(m){}ngOnInit(){}}return c.\u0275fac=function(m){return new(m||c)(t.Y36(e.u0))},c.\u0275cmp=t.Xpm({type:c,selectors:[["app-opp-owner"]],inputs:{bankAccount:"bankAccount"},features:[t.TTD],decls:9,vars:2,consts:function(){let E;return E="Isplata na:",[["fxLayout","row","fxFlex.xs",""],["height","45","width","45","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/organizedFor/public"],["fxLayout","column","fxFlexOffset.xs","3px",1,"m-l-s"],E]},template:function(m,v){1&m&&(t.TgZ(0,"div",0),t._UZ(1,"img",1),t.TgZ(2,"div",2)(3,"mat-label"),t.SDv(4,3),t.qZA(),t.TgZ(5,"div"),t._uU(6),t.qZA(),t.TgZ(7,"div"),t._uU(8),t.qZA()()()),2&m&&(t.xp6(6),t.Oqu(null==v.bankAccount?null:v.bankAccount.account_name),t.xp6(2),t.Oqu(null==v.bankAccount?null:v.bankAccount.account_iban))},dependencies:[d.$V,l.xw,l.UT,l.yH],encapsulation:2}),c})()},20071:(St,be,s)=>{"use strict";s.d(be,{s:()=>le});var t=s(73991),e=s(84531),d=s(17774),l=s(43719),r=s(52051),c=s(27579),E=s(5934);function m(V,de){if(1&V&&(t.TgZ(0,"div",9)(1,"a",10),t._UZ(2,"img",11),t.qZA()()),2&V){const ye=t.oxw();t.xp6(1),t.s9C("href",ye.attachHttps(null==ye.socialMedia?null:ye.socialMedia.instagram),t.LSH)}}function v(V,de){1&V&&(t.TgZ(0,"div",9)(1,"a",12),t._UZ(2,"img",13),t.qZA()())}function C(V,de){if(1&V&&(t.TgZ(0,"div",14)(1,"a",15),t._UZ(2,"img",16),t.qZA()()),2&V){const ye=t.oxw();t.xp6(1),t.s9C("href",ye.attachHttps(null==ye.socialMedia?null:ye.socialMedia.website),t.LSH)}}function n(V,de){1&V&&(t.TgZ(0,"div",14)(1,"a",12),t._UZ(2,"img",17),t.qZA()())}function i(V,de){if(1&V&&(t.TgZ(0,"div",14)(1,"a",18),t._UZ(2,"img",19),t.qZA()()),2&V){const ye=t.oxw();t.xp6(1),t.s9C("href",ye.attachHttps(null==ye.socialMedia?null:ye.socialMedia.twitter),t.LSH)}}function P(V,de){1&V&&(t.TgZ(0,"div",14)(1,"a",12),t._UZ(2,"img",20),t.qZA()())}function I(V,de){if(1&V&&(t.TgZ(0,"div",14)(1,"a",21),t._UZ(2,"img",22),t.qZA()()),2&V){const ye=t.oxw();t.xp6(1),t.s9C("href",ye.attachHttps(null==ye.socialMedia?null:ye.socialMedia.facebook),t.LSH)}}function q(V,de){1&V&&(t.TgZ(0,"div",14)(1,"a",12),t._UZ(2,"img",23),t.qZA()())}function D(V,de){if(1&V&&(t.TgZ(0,"div",14)(1,"a",24),t._UZ(2,"img",25),t.qZA()()),2&V){const ye=t.oxw();t.xp6(1),t.MGl("href","mailto:",null==ye.socialMedia?null:ye.socialMedia.email,"",t.LSH)}}function M(V,de){1&V&&(t.TgZ(0,"div",14)(1,"a",12),t._UZ(2,"img",26),t.qZA()())}function T(V,de){if(1&V&&(t.TgZ(0,"div",14)(1,"a",21),t._UZ(2,"img",27),t.qZA()()),2&V){const ye=t.oxw();t.xp6(1),t.s9C("href",ye.attachHttps(null==ye.socialMedia?null:ye.socialMedia.linkedin),t.LSH)}}function F(V,de){1&V&&(t.TgZ(0,"div",14)(1,"a",28),t._UZ(2,"img",29),t.qZA()())}let le=(()=>{class V{constructor(ye){this._media=ye,this.socialMedia="",this.isLoggedIn=""}ngOnChanges(ye){}ngOnInit(){}attachHttps(ye){return/^https?:\/\//i.test(ye)||(ye="https://"+ye),ye}}return V.\u0275fac=function(ye){return new(ye||V)(t.Y36(e.u0))},V.\u0275cmp=t.Xpm({type:V,selectors:[["app-owner-social-share"]],inputs:{socialMedia:"socialMedia",isLoggedIn:"isLoggedIn"},features:[t.TTD],decls:19,vars:12,consts:[["fxFlexOffset","6px","fxLayout","row"],["fxFlexOffset","0px",4,"ngIf","ngIfElse"],["otherIconInsta",""],["fxFlexOffset","10px",4,"ngIf","ngIfElse"],["otherIconweb",""],["otherIcontwt",""],["OtherIconfb",""],["OtherIconemail",""],["OtherIconlinkedin",""],["fxFlexOffset","0px"],["mat-ripple","","shareButton","instagram","target","blank","rel","nofollow",3,"href"],["height","18","width","18","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/2_trails_icons_5/public",1,"icon-mail"],["mat-ripple","","shareButton","otherSocialMedia","target","blank","href","","rel","nofollow"],["height","18","width","18","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/instaDisabled/public",1,"icon-mail"],["fxFlexOffset","10px"],["mat-ripple","","shareButton","website","target","blank","rel","nofollow",3,"href"],["height","18","width","18","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/2_trails_icons/public",1,"icon-dashboard"],["height","18","width","18","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/webDisabled/public",1,"icon-dashboard"],["mat-ripple","","shareButton","twitter","target","blank","rel","nofollow",3,"href"],["height","22","width","20","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/x/public",1,"icon-dashboard"],["height","22","width","20","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/x-disabled/public",1,"icon-dashboard"],["mat-ripple","","target","blank","rel","nofollow",3,"href"],["height","18","width","18","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/2_trails_icons_6/public",1,"icon-dashboard"],["height","18","width","18","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fbDisabled/public",1,"icon-dashboard"],["mat-ripple","","shareButton","email","target","blank","rel","nofollow",3,"href"],["height","19","width","18","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/2_trails_icons_2/public",1,"icon-dashboard"],["height","19","width","18","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/mailDisabled/public",1,"icon-dashboard"],["height","18","width","18","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/LinkedinUppdated/public"],["mat-ripple","","shareButton","otherSocialMedia","target","","href","","rel","nofollow"],["height","18","width","18","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/LinkedinDisabled/public"]],template:function(ye,Ee){if(1&ye&&(t.TgZ(0,"mat-chip",0),t.YNc(1,m,3,1,"div",1),t.YNc(2,v,3,0,"ng-template",null,2,t.W1O),t.YNc(4,C,3,1,"div",3),t.YNc(5,n,3,0,"ng-template",null,4,t.W1O),t.YNc(7,i,3,1,"div",3),t.YNc(8,P,3,0,"ng-template",null,5,t.W1O),t.YNc(10,I,3,1,"div",3),t.YNc(11,q,3,0,"ng-template",null,6,t.W1O),t.YNc(13,D,3,1,"div",3),t.YNc(14,M,3,0,"ng-template",null,7,t.W1O),t.YNc(16,T,3,1,"div",3),t.YNc(17,F,3,0,"ng-template",null,8,t.W1O),t.qZA()),2&ye){const Le=t.MAs(3),ge=t.MAs(6),ue=t.MAs(9),ee=t.MAs(12),se=t.MAs(15),W=t.MAs(18);t.xp6(1),t.Q6J("ngIf",null==Ee.socialMedia?null:Ee.socialMedia.instagram)("ngIfElse",Ee.isLoggedIn&&Le),t.xp6(3),t.Q6J("ngIf",null==Ee.socialMedia?null:Ee.socialMedia.website)("ngIfElse",Ee.isLoggedIn&&ge),t.xp6(3),t.Q6J("ngIf",null==Ee.socialMedia?null:Ee.socialMedia.twitter)("ngIfElse",Ee.isLoggedIn&&ue),t.xp6(3),t.Q6J("ngIf",null==Ee.socialMedia?null:Ee.socialMedia.facebook)("ngIfElse",Ee.isLoggedIn&&ee),t.xp6(3),t.Q6J("ngIf",null==Ee.socialMedia?null:Ee.socialMedia.email)("ngIfElse",Ee.isLoggedIn&&se),t.xp6(3),t.Q6J("ngIf",null==Ee.socialMedia?null:Ee.socialMedia.linkedin)("ngIfElse",Ee.isLoggedIn&&W)}},dependencies:[d.O5,l.lw,r.wG,c.xw,c.UT,E.Rz],encapsulation:2}),V})()},84238:(St,be,s)=>{"use strict";s.d(be,{R:()=>e});var t=s(73991);let e=(()=>{class d{preventNonNumericalInput(r){r.key.match(/^[0-9]+$/)||r.preventDefault()}}return d.\u0275fac=function(r){return new(r||d)},d.\u0275dir=t.lG2({type:d,selectors:[["","appNumericInput",""]],hostBindings:function(r,c){1&r&&t.NdJ("keypress",function(m){return c.preventNonNumericalInput(m)})}}),d})()},93786:(St,be,s)=>{"use strict";s.r(be),s.d(be,{FundraiserModule:()=>Ls});var t=s(17774),e=s(64886),d=s(61392),l=s(15645),r=s(68264),c=s(80842),E=s(70754),m=s(40354),v=s(41743),C=s(9206),n=s(73991),i=s(84531),P=s(47692),I=s(76037),q=s(21704),D=s(13009),M=s(48910),T=s(4692),F=s(54449),le=s(6822),V=s(33867),de=s(43732),ye=s(9),Ee=s(36442),Le=s(43073),ge=s(45379),ue=s(81560),ee=s(27579),se=s(74351),W=s(73270),L=s(1911),he=s(88961),_e=s(43719),Z=s(85270),Te=s(76243),w=s(46362),k=s(8687),x=s(43609);function z(Pe,rr){1&Pe&&(n.TgZ(0,"div")(1,"span"),n.SDv(2,49),n.qZA()())}function j(Pe,rr){1&Pe&&(n.TgZ(0,"div")(1,"span"),n.SDv(2,50),n.qZA()())}function Ne(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div",8)(1,"mat-slide-toggle",48),n.NdJ("change",function(at){n.CHM(y);const Ft=n.oxw(2);return n.KtG(Ft.targetOpenStatus(at))}),n.YNc(2,z,3,0,"div",15),n.YNc(3,j,3,0,"div",15),n.qZA()()}if(2&Pe){const y=n.oxw(2);n.xp6(2),n.Q6J("ngIf",y.editFundraiserForm.value.open_status),n.xp6(1),n.Q6J("ngIf",!y.editFundraiserForm.value.open_status)}}function tt(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n.SDv(1,55),n.qZA())}function We(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"mat-form-field",11)(1,"mat-label"),n.SDv(2,51),n.qZA(),n.TgZ(3,"input",52),n.NdJ("ngModelChange",function(at){n.CHM(y);const Ft=n.oxw(2);return n.KtG(Ft.endDateChange(at))}),n.qZA(),n._UZ(4,"mat-datepicker-toggle",53)(5,"mat-datepicker",null,54),n.YNc(7,tt,2,0,"mat-error",15),n.qZA()}if(2&Pe){const y=n.MAs(6),X=n.oxw(2);n.xp6(3),n.Q6J("formControlName","end_date")("matDatepicker",y)("min",X.minEndDate),n.xp6(1),n.Q6J("for",y),n.xp6(3),n.Q6J("ngIf",X.editFundraiserForm.controls&&X.editFundraiserForm.controls.end_date.errors)}}function ze(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,56),n.qZA(),n._uU(3),n.ALo(4,"number"),n.qZA()),2&Pe){const y=n.oxw(2);n.xp6(3),n.AsE("\xa0",y.currency_symbol,"",n.lcZ(4,2,y.minTargetAmount)," ")}}function we(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,57),n.qZA(),n._uU(3),n.ALo(4,"number"),n.qZA()),2&Pe){const y=n.oxw(2);n.xp6(3),n.AsE("\xa0",y.currency_symbol,"",n.lcZ(4,2,y.maxTargetAmount)," ")}}function Ye(Pe,rr){1&Pe&&(n.TgZ(0,"div")(1,"span"),n.SDv(2,58),n.qZA()())}function te(Pe,rr){1&Pe&&(n.TgZ(0,"div")(1,"span"),n.SDv(2,59),n.qZA()())}function Se(Pe,rr){1&Pe&&(n.TgZ(0,"mat-icon",60),n._UZ(1,"mat-spinner",61),n.qZA())}function ke(Pe,rr){1&Pe&&(n.TgZ(0,"mat-icon",60),n._UZ(1,"mat-spinner",61),n.qZA())}function Ge(Pe,rr){1&Pe&&(n.TgZ(0,"div")(1,"mat-chip",62)(2,"caption"),n.SDv(3,63),n.qZA()()())}function Tt(Pe,rr){1&Pe&&(n.TgZ(0,"div")(1,"mat-chip",62)(2,"caption"),n.SDv(3,64),n.qZA()()())}function Et(Pe,rr){1&Pe&&(n.TgZ(0,"div")(1,"mat-chip",62)(2,"caption"),n.SDv(3,65),n.qZA()()())}function H(Pe,rr){1&Pe&&(n.TgZ(0,"div")(1,"mat-chip",62)(2,"caption"),n.SDv(3,66),n.qZA()()())}function Y(Pe,rr){if(1&Pe&&(n.TgZ(0,"div"),n._UZ(1,"app-donation-progress-bar",67),n.qZA()),2&Pe){const y=n.oxw(2);n.xp6(1),n.Q6J("fundraiserCardData",y.fundraiserCardData)}}function S(Pe,rr){if(1&Pe&&(n.ynx(0),n.TgZ(1,"p"),n._UZ(2,"app-days-left-view",68),n.qZA(),n.BQk()),2&Pe){const y=n.oxw(2);n.xp6(1),n.Udp("text-align","right"),n.xp6(1),n.Q6J("fundraiserCardData",y.fundraiserCardData)}}const K=function(Pe){return{width:Pe}};function Q(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div",2)(1,"mat-card",3)(2,"div")(3,"form",4)(4,"div",5),n.YNc(5,Ne,4,2,"div",6),n.YNc(6,We,8,5,"ng-template",7),n.TgZ(7,"div",8)(8,"mat-slide-toggle",9),n.NdJ("change",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.targetToggleChange())}),n.TgZ(9,"span"),n.SDv(10,10),n.qZA()()(),n.TgZ(11,"mat-form-field",11)(12,"mat-label"),n.SDv(13,12),n.qZA(),n.TgZ(14,"div",13),n._uU(15),n.qZA(),n.TgZ(16,"input",14),n.NdJ("input",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.editFundraiserForm.controls.amount_target.markAsTouched())})("ngModelChange",function(at){n.CHM(y);const Ft=n.oxw();return n.KtG(Ft.targetAmountChange(at))}),n.qZA(),n.YNc(17,ze,5,4,"mat-error",15),n.YNc(18,we,5,4,"mat-error",15),n.qZA(),n.TgZ(19,"div")(20,"mat-slide-toggle",16),n.NdJ("change",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.targetToggleChange())}),n.YNc(21,Ye,3,0,"div",15),n.YNc(22,te,3,0,"div",15),n.qZA()(),n.TgZ(23,"div",17),n._UZ(24,"mat-divider",18),n.qZA(),n.TgZ(25,"div",19)(26,"h3"),n.SDv(27,20),n.qZA()(),n.TgZ(28,"div")(29,"p"),n.SDv(30,21),n.qZA(),n.TgZ(31,"button",22)(32,"span",23),n.NdJ("click",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.saveAndApplyFundraiserStatus())}),n.SDv(33,24),n.qZA(),n.YNc(34,Se,2,0,"mat-icon",25),n.qZA()()()(),n.TgZ(35,"div")(36,"div",26)(37,"button",27),n.NdJ("click",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.discardTargetAmountChanges())}),n.TgZ(38,"span"),n.SDv(39,28),n.qZA()(),n._uU(40," \xa0\xa0\xa0 "),n.TgZ(41,"button",29),n.NdJ("click",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.saveAndApply())}),n.TgZ(42,"span"),n.SDv(43,30),n.qZA(),n.YNc(44,ke,2,0,"mat-icon",25),n.qZA()()()()(),n._UZ(45,"mat-divider",31),n.TgZ(46,"mat-card",32)(47,"div",33)(48,"p",34),n._UZ(49,"img",35),n.TgZ(50,"span",36),n.SDv(51,37),n.qZA()()(),n._UZ(52,"br"),n.TgZ(53,"mat-card",38)(54,"div",39)(55,"div",40)(56,"h2"),n._uU(57,"Donation Status"),n.qZA()()(),n.TgZ(58,"div",8)(59,"mat-chip-list",41),n.YNc(60,Ge,4,0,"div",15),n.YNc(61,Tt,4,0,"div",15),n.YNc(62,Et,4,0,"div",15),n.YNc(63,H,4,0,"div",15),n.qZA()(),n.TgZ(64,"div")(65,"h1"),n._UZ(66,"app-amount-view",42),n.qZA()(),n.YNc(67,Y,2,1,"div",15),n.TgZ(68,"div",43),n.YNc(69,S,3,3,"ng-container",15),n.TgZ(70,"p",44),n._UZ(71,"app-donation-progress-percentage",45),n.qZA()(),n.TgZ(72,"button",46)(73,"span"),n.SDv(74,47),n.qZA()()()()()}if(2&Pe){const y=n.oxw();n.xp6(2),n.Udp("margin-top",20,"px")("margin-left",1,"%"),n.xp6(1),n.Q6J("formGroup",y.editFundraiserForm),n.xp6(1),n.Q6J("ngStyle",n.VKq(39,K,1==y._media.isActive("xs")?"100%":"60%")),n.xp6(1),n.Q6J("ngIf",0==(null==y.currentFundraiserData?null:y.currentFundraiserData.is_draft)),n.xp6(1),n.Q6J("ngIf",1==y.disableEndButton||y.editFundraiserForm.value.open_status||"true"==(null==y.currentFundraiserData?null:y.currentFundraiserData.is_draft)&&y.editFundraiserForm.value.open_status||"false"==(null==y.currentFundraiserData?null:y.currentFundraiserData.is_draft)&&y.editFundraiserForm.value.open_status),n.xp6(9),n.hij(" ",y.currency_symbol,"\xa0 "),n.xp6(1),n.Q6J("formControlName","amount_target"),n.xp6(1),n.Q6J("ngIf",y.editFundraiserForm.controls.amount_target.errors&&y.editFundraiserForm.controls.amount_target.errors.min),n.xp6(1),n.Q6J("ngIf",y.editFundraiserForm.controls.amount_target.errors&&y.editFundraiserForm.controls.amount_target.errors.max),n.xp6(3),n.Q6J("ngIf",y.editFundraiserForm.value.visible_status),n.xp6(1),n.Q6J("ngIf",!y.editFundraiserForm.value.visible_status),n.xp6(9),n.Q6J("disabled",y.disableButton),n.xp6(3),n.Q6J("ngIf",y.isSave),n.xp6(1),n.Udp("margin-top",33,"px"),n.xp6(2),n.Q6J("disabled",y.isTargetAmountDisable),n.xp6(4),n.Q6J("disabled",y.isTargetAmountDisable),n.xp6(3),n.Q6J("ngIf",y.isSaveTargetAmount),n.xp6(9),n.Q6J("ngStyle",n.VKq(41,K,1==y._media.isActive("xs")?"250px":"400px")),n.xp6(7),n.Q6J("ngIf",y.editFundraiserForm.value.visible_status),n.xp6(1),n.Q6J("ngIf",!y.editFundraiserForm.value.visible_status),n.xp6(1),n.Q6J("ngIf",y.editFundraiserForm.value.open_status),n.xp6(1),n.Q6J("ngIf",!y.editFundraiserForm.value.open_status),n.xp6(3),n.Q6J("fundraiserCardData",y.fundraiserCardData)("symbol",y.currency_symbol),n.xp6(1),n.Q6J("ngIf",y.fundraiserCardData.showDonationAmount),n.xp6(1),n.Udp("margin-top",20,"px")("margin-bottom",20,"px"),n.xp6(1),n.Q6J("ngIf",1==y.unlimitedDateCheck),n.xp6(2),n.Q6J("fundraiserCardData",y.fundraiserCardData)("showLabel",!0),n.xp6(1),n.Udp("width",100,"%"),n.Q6J("disabled",0==y.disableEndButton)}}function B(Pe,rr){1&Pe&&n._UZ(0,"app-page-loader",69)}let re=(()=>{class Pe{constructor(y,X,at,Ft,sr,xr,en){this._media=y,this._formBuilder=X,this._fundraiserService=at,this._fundraiserCardService=Ft,this.notificationService=sr,this._bankService=xr,this.router=en,this.currentFundraiserData={},this.donationProgress=0,this.isTargetAmountDisable=!0,this.isSaveTargetAmount=!1,this.stripeStatus={},this.oppVerificationCheck=!1,this.isSave=!1,this.isLoading=!1,this.disableButton=!1,this.disableEndButton=!0,this.unlimitedDateCheck=!0,this.disableDonateButton=!0,this.currency_symbol="",this.currencyConversionFactor=1,this.maxTargetAmount=99,this.minTargetAmount=5}ngOnChanges(y){Object.keys(y.currentFundraiserData?.currentValue||{}).length&&this.setControlsAndFlags(),this.disableButton=this.currentFundraiserData?.is_draft}ngOnInit(){this.editFundraiserForm=this._formBuilder.group({id:"",amount_target:["",[l.kI.min(10),l.kI.max(999999)]],end_date:"",show_donation_details:!1,unlimited:!1,open_status:!1,visible_status:!1}),this.isCurrentChildFundraiser=this.getBool(localStorage.getItem("childFundraiser"))||!1}ngAfterViewInit(){}getBool(y){return!!JSON.parse(String(y)?.toLowerCase())}setControlsAndFlags(){let y=this.getBool(this.currentFundraiserData?.show_donation_details);this.currency_symbol=this.currentFundraiserData?.symbol,this.currencyConversionFactor=this.currentFundraiserData?.x_to_eur,this.maxTargetAmount=9999999*this.currencyConversionFactor,this.minTargetAmount=5*this.currencyConversionFactor;let X=this.getBool(this.currentFundraiserData?.is_findable);this.disableEndButton=0!=this.getBool(this.currentFundraiserData.is_opened);let at=this.getBool(this.currentFundraiserData?.is_opened),Ft=this.getBool(this.currentFundraiserData?.unlimited),sr=!1;null!=this.currentFundraiserData?.end_date&&null!=this.currentFundraiserData?.end_date&&(sr=this._fundraiserCardService?.isFundraiserEndDateUnlimited(this.currentFundraiserData?.end_date)||!1),this.editFundraiserForm=this._formBuilder.group({id:[this.currentFundraiserData?.id],amount_target:[this.currentFundraiserData?.amount_target||"",[l.kI.min(this.minTargetAmount),l.kI.max(this.maxTargetAmount)]],end_date:[!sr&&this.currentFundraiserData?.end_date?this.currentFundraiserData?.end_date:""],show_donation_details:[y],unlimited:[Ft],open_status:[at],visible_status:[X]}),this.minEndDate=(new Date).toISOString(),this.fundraiserCardData=this._fundraiserCardService.filterFundraiserCardDataListCustomDonation([this.currentFundraiserData])?.[0]?.fundraiserCardData}targetAmountChange(y){if(null!=y){if(y>9999999)return;this.isTargetAmountDisable=!1;let X=Object.create(this.fundraiserCardData);X.donationTargetAmount=y,this.fundraiserCardData=X}else{let X=Object.create(this.fundraiserCardData);X.donationTargetAmount=y,this.fundraiserCardData=X}}endDateChange(y){if(null!=y){this.isTargetAmountDisable=!1;let X=Object.create(this.fundraiserCardData);X.donationDaysLeft=this._fundraiserCardService.countDaysLeftToFundraiserEnd(y),this.unlimitedDateCheck=0!=X.donationDaysLeft,this.fundraiserCardData=X}else{y="",this.isTargetAmountDisable=!1;let X=Object.create(this.fundraiserCardData);X.donationDaysLeft=this._fundraiserCardService.countDaysLeftToFundraiserEnd(y),this.unlimitedDateCheck=0!=X.donationDaysLeft,this.fundraiserCardData=X}}targetToggleChange(){this.isTargetAmountDisable=!1;let y=Object.create(this.fundraiserCardData);y.showDonationAmount=this.editFundraiserForm.value.show_donation_details,this.fundraiserCardData=y}targetOpenStatus(y){this.disableEndButton=y.checked,this.isTargetAmountDisable=!1;let Ft=W(new Date).subtract(1,"days").format("YYYY-MM-DD");if(1==this.disableEndButton&&this.editFundraiserForm.value.end_date==Ft){this.editFundraiserForm.controls.end_date.setValue("");let sr=Object.create(this.fundraiserCardData);sr.donationDaysLeft="",this.fundraiserCardData=sr}if(0==this.isTargetAmountDisable){let sr=Object.create(this.fundraiserCardData);if(1==this.disableEndButton&&null!==this.editFundraiserForm.value.end_date){this.unlimitedDateCheck=!1;let xr=Object.create(this.fundraiserCardData);xr.donationDaysLeft=this._fundraiserCardService.countDaysLeftToFundraiserEnd(this.editFundraiserForm.value.end_date),this.fundraiserCardData=xr}else{let en=W(new Date).subtract(1,"days").format("YYYY-MM-DD");sr.donationDaysLeft=this._fundraiserCardService.countDaysLeftToFundraiserEnd(en),this.fundraiserCardData=sr}}}discardTargetAmountChanges(){let y=this._fundraiserCardService?.isFundraiserEndDateUnlimited(this.currentFundraiserData?.end_date);this.editFundraiserForm=this._formBuilder.group({id:[this.currentFundraiserData?.id],amount_target:[this.currentFundraiserData?.amount_target||"",[l.kI.min(this.minTargetAmount),l.kI.max(this.maxTargetAmount)]],end_date:[y?"":this.currentFundraiserData?.end_date],show_donation_details:[this.currentFundraiserData?.show_donation_details],unlimited:[this.currentFundraiserData?.unlimited],open_status:[this.getBool(this.currentFundraiserData?.is_opened)],visible_status:[this.getBool(this.currentFundraiserData?.is_findable)]}),this.isTargetAmountDisable=!0}saveAndApply(){if(this.isSaveTargetAmount=!0,this.isTargetAmountDisable=!0,this.editFundraiserForm.valid){const y=this.editFundraiserForm.value;y.unlimited=null==this.editFundraiserForm.value.amount_target&&null==this.editFundraiserForm.value.end_date,this.editFundraiserForm.value.open_status?this.editFundraiserForm.value.end_date?y.end_date=W(this.editFundraiserForm.value.end_date).format("YYYY-MM-DD"):(y.end_date=W("9999-12-31").format("YYYY-MM-DD"),this.unlimitedDateCheck=!1):y.end_date=W(new Date).subtract(1,"days").format("YYYY-MM-DD"),y.show_donation_details=!!this.editFundraiserForm.value.show_donation_details,y.amount_target=this.editFundraiserForm.value.amount_target?this.editFundraiserForm.value.amount_target:0,y.open_status=!!this.editFundraiserForm.value.open_status,y.visible_status=!!this.editFundraiserForm.value.visible_status,y.slug=this.currentFundraiserData?.slug,y.currency_code=this.currentFundraiserData?.currency,this.editFundraiserForm.value.id?(y.id=this.editFundraiserForm.value.id,this._fundraiserService.updateFundraiserInformationTargetAmount(y).subscribe(X=>{this.isSaveTargetAmount=!1,this.notificationService.openNotification("A\u017Euriranje uspje\u0161no.","","success"),window.location.reload()})):(this.isSaveTargetAmount=!1,this.isTargetAmountDisable=!1,this.notificationService.openNotification("Spremanje nije uspjelo.","","error"))}else this.isSaveTargetAmount=!1}saveAndApplyFundraiserStatus(){this.isSave=!0,this._bankService.getStripeStatus().subscribe(y=>{this.stripeStatus=y?.data,this.chargesEnabled=this.stripeStatus?.charges_enabled,this.payoutEnabled=this.stripeStatus?.payout_enabled,this.detailsSubmitted=this.stripeStatus?.details_submitted,this._bankService.getPersonalVerification().subscribe(X=>{if(this.oppVerificationCheck="1005"===X?.errors?.code,this.showStripePrompt=!(!0===this.chargesEnabled&&!0===this.payoutEnabled&&!0===this.detailsSubmitted&&!0===this.oppVerificationCheck||!1===this.chargesEnabled&&!1===this.payoutEnabled&&!1===this.detailsSubmitted&&!1===this.oppVerificationCheck||!0===this.chargesEnabled&&!0===this.payoutEnabled&&!0===this.detailsSubmitted&&!1===this.oppVerificationCheck),0==this.showStripePrompt||1==this.isCurrentChildFundraiser){if(this.currentFundraiserData){let at=[],Ft={slug:this.currentFundraiserData?.slug,is_opened:!1,is_draft:!0,is_findable:!1};at.push(this._fundraiserService.updateFundraiserStatus(JSON.parse(JSON.stringify(Ft)))),!1===Ft?.is_draft&&!0===this.currentFundraiserData?.is_draft&&at.push(this._fundraiserService.publishFundraiser({slug:this.currentFundraiserData?.slug})),this.currentFundraiserData.is_draft=Ft?.is_draft,this.isSave=!0,(0,c.D)(at).subscribe(sr=>{this.notificationService.openNotification("Uspje\u0161no spremljeno.","","success"),this.isSave=!1,window.location.reload()},sr=>{this.notificationService.openNotification("Spremanje nije uspjelo.","","error"),this.isSave=!1})}}else this.router.navigate(["fundraising/stripe-prompt",{slug:this.currentFundraiserData?.slug}])})})}}return Pe.\u0275fac=function(y){return new(y||Pe)(n.Y36(i.u0),n.Y36(l.QS),n.Y36(P.R),n.Y36(D.a),n.Y36(I.g),n.Y36(L.y),n.Y36(e.F0))},Pe.\u0275cmp=n.Xpm({type:Pe,selectors:[["app-target-amount"]],inputs:{currentFundraiserData:"currentFundraiserData"},features:[n.TTD],decls:3,vars:2,consts:function(){let rr,y,X,at,Ft,sr,xr,en,Pr,On,ei,Ai,ae,me,J,Oe,Ke,xt,Zt,gr,zr;return rr="Prika\u017Ei ukupni iznos doniran",y="Ciljni iznos",X="Postavi prikuplja\u010D sredstava kao nacrt",at="Bit \u0107ete jedini koji mo\u017Ee vidjeti i pristupiti stranici za prikupljanje sredstava.",Ft="Postavi Kao Skica",sr="Odbaci",xr="Spremi",en="Pregled",Pr="Donacija",On="Otvori",ei="Zatvoreno",Ai="Zavr\u0161ni datum",ae="Dodajte valjan datum zavr\u0161etka.",me="Minimalni iznos je",J="Najve\u0107i iznos je",Oe="Prona\u0111ivo",Ke="Neprona\u0111ivo",xt="Prona\u0111ivo",Zt="Neprona\u0111ivo",gr="Otvori",zr="Zatvoreno",[[3,"ngIf","ngIfElse"],["whydonateLoader",""],["fxLayout","row wrap"],["fxFlex.gt-sm","50","fxFlex.lt-md","100",1,"mat-elevation-z0"],[3,"formGroup"],["fxLayout","column",3,"ngStyle"],["ngClass","m-b-m",4,"ngIf"],[3,"ngIf"],["ngClass","m-b-m"],["color","primary","formControlName","show_donation_details",3,"change"],rr,["color","primary","appearance","outline"],y,["matPrefix","",1,"currency-input-field"],["matInput","","type","number",3,"formControlName","input","ngModelChange"],[4,"ngIf"],["color","primary","formControlName","visible_status","id","FindableToggle",3,"change"],["ngClass","m-t-m"],[1,"w-100"],["fxLayout","row","ngClass","m-t-m"],X,at,["mat-stroked-button","","color","accent","id","DraftButton",3,"disabled"],[3,"click"],Ft,["class","m-l-xs",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-stroked-button","","color","accent",3,"disabled","click"],sr,["mat-flat-button","","color","accent","id","SaveandApply",3,"disabled","click"],xr,["vertical","true"],["fxFlex.gt-sm","49","fxFlex.lt-md","100",1,"mat-elevation-z0"],["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","row",1,"mat-body-1"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/visibilityOn/public"],["ngClass","p-t-xxs"],en,[3,"ngStyle"],["fxLayout","row","fxLayoutAlign","start start"],["fxFlex",""],["aria-label","category selection","id","chip-list","name","chip-list",1,"whydonate-light"],[3,"fundraiserCardData","symbol"],["fxLayoutAlign","space-between"],["id","fundedPercentage"],[3,"fundraiserCardData","showLabel"],["mat-flat-button","","color","accent",1,"buttonStyle",3,"disabled"],Pr,["color","primary","formControlName","open_status","id","fundraiserstatus-Toggle",3,"change"],On,ei,Ai,["matInput","",3,"formControlName","matDatepicker","min","ngModelChange"],["matSuffix","",3,"for"],["picker",""],ae,me,J,Oe,Ke,[1,"m-l-xs"],["color","accent","diameter","20"],["id","chip","name","chip","color","accent","selected","","removable","true",1,"mat-chip-list-stacked","my-chip"],xt,Zt,gr,zr,[1,"m-b-m",3,"fundraiserCardData"],[3,"fundraiserCardData"],[1,"m-t-m"]]},template:function(y,X){if(1&y&&(n.YNc(0,Q,75,43,"ng-template",0),n.YNc(1,B,1,0,"ng-template",null,1,n.W1O)),2&y){const at=n.MAs(2);n.Q6J("ngIf",X.currentFundraiserData)("ngIfElse",at)}},dependencies:[l._Y,l.Fj,l.wV,l.JJ,l.JL,l.sg,l.u,t.mk,t.O5,t.PC,he.Mq,he.hl,he.nW,T.nI,T.v_,T.$V,T.g4,T.nX,F.k0,V.Rr,de.S$,ye.d,Le.eB,_e.ir,_e.lw,ge.Hw,ue.sN,ee.xw,ee.Wh,ee.yH,se.oO,se.Zl,Z.f,Te.y,w.f,k.s,x.K,t.JJ],encapsulation:2}),Pe})();function fe(Pe,rr){1&Pe&&(n.TgZ(0,"mat-icon",93),n._UZ(1,"mat-spinner",94),n.qZA())}function qe(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,95),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.max_donation_amount," ")}}function $e(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error",96)(1,"span"),n.SDv(2,97),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.min_donation_amount," ")}}function et(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,98),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.max_donation_amount," ")}}function ot(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error",99)(1,"span"),n.SDv(2,100),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.min_donation_amount," ")}}function ct(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,101),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.max_donation_amount," ")}}function pt(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error",102)(1,"span"),n.SDv(2,103),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.min_donation_amount," ")}}function $t(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,104),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.max_donation_amount," ")}}function It(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error",105)(1,"span"),n.SDv(2,106),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.min_donation_amount," ")}}function fr(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,107),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.max_donation_amount," ")}}function yt(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error",108)(1,"span"),n.SDv(2,109),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.min_donation_amount," ")}}function dr(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,110),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.max_donation_amount," ")}}function bt(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error",111)(1,"span"),n.SDv(2,112),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.min_donation_amount," ")}}function ar(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,113),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.max_donation_amount," ")}}function vt(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error",114)(1,"span"),n.SDv(2,115),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.min_donation_amount," ")}}function qt(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,116),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.max_donation_amount," ")}}function br(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error",117)(1,"span"),n.SDv(2,118),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.min_donation_amount," ")}}function lt(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,119),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.max_donation_amount," ")}}function De(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error",120)(1,"span"),n.SDv(2,121),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.min_donation_amount," ")}}function G(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,122),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.max_donation_amount," ")}}function U(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error",108)(1,"span"),n.SDv(2,123),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.min_donation_amount," ")}}function ne(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,124),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.max_donation_amount," ")}}function Re(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error",125)(1,"span"),n.SDv(2,126),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.min_donation_amount," ")}}function Xe(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,127),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.max_donation_amount," ")}}function Nt(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error",128)(1,"span"),n.SDv(2,129),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.min_donation_amount," ")}}function Pt(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,130),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.max_donation_amount," ")}}function Vt(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error",131)(1,"span"),n.SDv(2,132),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.min_donation_amount," ")}}function Jt(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,133),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.max_donation_amount," ")}}function kt(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error",134)(1,"span"),n.SDv(2,135),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.min_donation_amount," ")}}function Me(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,136),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.max_donation_amount," ")}}function ut(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error",108)(1,"span"),n.SDv(2,137),n.qZA(),n._uU(3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(3),n.AsE(" ",y.currency.symbol,"",y.min_donation_amount," ")}}function nt(Pe,rr){1&Pe&&(n.TgZ(0,"mat-icon",93),n._UZ(1,"mat-spinner",94),n.qZA())}function Ht(Pe,rr){if(1&Pe&&(n.TgZ(0,"div",141)(1,"button",143),n._uU(2),n.ALo(3,"number"),n.qZA(),n._uU(4,"\xa0\xa0\xa0 "),n.qZA()),2&Pe){const y=n.oxw(3);n.xp6(2),n.AsE(" ",y.currency.symbol," ",n.lcZ(3,2,y.getAmountValue(y.ONCE,5)),"")}}function pr(Pe,rr){if(1&Pe&&(n.TgZ(0,"div",140)(1,"div",141)(2,"button",142),n._uU(3),n.ALo(4,"number"),n.qZA(),n._uU(5,"\xa0\xa0\xa0 "),n.qZA(),n.TgZ(6,"div",141)(7,"button",143),n._uU(8),n.ALo(9,"number"),n.qZA(),n._uU(10,"\xa0\xa0\xa0 "),n.qZA(),n.TgZ(11,"div",141)(12,"button",143),n._uU(13),n.ALo(14,"number"),n.qZA(),n._uU(15,"\xa0\xa0\xa0 "),n.qZA(),n.TgZ(16,"div",141)(17,"button",143),n._uU(18),n.ALo(19,"number"),n.qZA(),n._uU(20,"\xa0\xa0\xa0 "),n.qZA(),n.YNc(21,Ht,5,4,"div",144),n.qZA()),2&Pe){const y=n.oxw(2);n.xp6(3),n.AsE(" ",y.currency.symbol," ",n.lcZ(4,9,y.getAmountValue(y.ONCE,1)),""),n.xp6(5),n.AsE(" ",y.currency.symbol," ",n.lcZ(9,11,y.getAmountValue(y.ONCE,2)),""),n.xp6(5),n.AsE(" ",y.currency.symbol," ",n.lcZ(14,13,y.getAmountValue(y.ONCE,3)),""),n.xp6(5),n.AsE(" ",y.currency.symbol," ",n.lcZ(19,15,y.getAmountValue(y.ONCE,4)),""),n.xp6(3),n.Q6J("ngIf",y.oneTime5Available)}}function Lr(Pe,rr){if(1&Pe&&(n.TgZ(0,"div",145)(1,"mat-form-field",146)(2,"mat-label"),n.SDv(3,147),n.qZA(),n.TgZ(4,"div",20),n._uU(5),n.qZA(),n._UZ(6,"input",148),n.qZA()()),2&Pe){const y=n.oxw(2);n.xp6(5),n.hij(" ",y.currency.symbol,"\xa0 ")}}function Kr(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-tab",5),n.YNc(1,pr,22,17,"div",138),n.YNc(2,Lr,7,1,"div",139),n.qZA()),2&Pe){const y=n.oxw();n.s9C("label",y.oneTimeLabel),n.xp6(1),n.Q6J("ngIf",!y.getOpenAmountFlagValue(y.ONCE)),n.xp6(1),n.Q6J("ngIf",y.getOpenAmountFlagValue(y.ONCE))}}function Cn(Pe,rr){if(1&Pe&&(n.TgZ(0,"div",141)(1,"button",143),n._uU(2),n.ALo(3,"number"),n.qZA(),n._uU(4,"\xa0\xa0\xa0 "),n.qZA()),2&Pe){const y=n.oxw(3);n.xp6(2),n.AsE(" ",y.currency.symbol," ",n.lcZ(3,2,y.getAmountValue(y.MONTHLY,5)),"")}}function Wn(Pe,rr){if(1&Pe&&(n.TgZ(0,"div",140)(1,"div",141)(2,"button",142),n._uU(3),n.ALo(4,"number"),n.qZA(),n._uU(5,"\xa0\xa0\xa0 "),n.qZA(),n.TgZ(6,"div",141)(7,"button",143),n._uU(8),n.ALo(9,"number"),n.qZA(),n._uU(10,"\xa0\xa0\xa0 "),n.qZA(),n.TgZ(11,"div",141)(12,"button",143),n._uU(13),n.ALo(14,"number"),n.qZA(),n._uU(15,"\xa0\xa0\xa0 "),n.qZA(),n.TgZ(16,"div",141)(17,"button",143),n._uU(18),n.ALo(19,"number"),n.qZA(),n._uU(20,"\xa0\xa0\xa0 "),n.qZA(),n.YNc(21,Cn,5,4,"div",144),n.qZA()),2&Pe){const y=n.oxw(2);n.xp6(3),n.AsE(" ",y.currency.symbol," ",n.lcZ(4,9,y.getAmountValue(y.MONTHLY,1)),""),n.xp6(5),n.AsE(" ",y.currency.symbol," ",n.lcZ(9,11,y.getAmountValue(y.MONTHLY,2)),""),n.xp6(5),n.AsE(" ",y.currency.symbol," ",n.lcZ(14,13,y.getAmountValue(y.MONTHLY,3)),""),n.xp6(5),n.AsE(" ",y.currency.symbol," ",n.lcZ(19,15,y.getAmountValue(y.MONTHLY,4)),""),n.xp6(3),n.Q6J("ngIf",y.monthly5Available)}}function zn(Pe,rr){if(1&Pe&&(n.TgZ(0,"div",145)(1,"mat-form-field",146)(2,"mat-label"),n.SDv(3,149),n.qZA(),n.TgZ(4,"div",20),n._uU(5),n.qZA(),n._UZ(6,"input",148),n.qZA()()),2&Pe){const y=n.oxw(2);n.xp6(5),n.hij(" ",y.currency.symbol,"\xa0 ")}}function ti(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-tab",5),n.YNc(1,Wn,22,17,"div",138),n.YNc(2,zn,7,1,"div",139),n.qZA()),2&Pe){const y=n.oxw();n.s9C("label",y.monthlyLabel),n.xp6(1),n.Q6J("ngIf",!y.getOpenAmountFlagValue(y.MONTHLY)),n.xp6(1),n.Q6J("ngIf",y.getOpenAmountFlagValue(y.MONTHLY))}}function yr(Pe,rr){if(1&Pe&&(n.TgZ(0,"div",141)(1,"button",143),n._uU(2),n.ALo(3,"number"),n.qZA(),n._uU(4,"\xa0\xa0\xa0 "),n.qZA()),2&Pe){const y=n.oxw(3);n.xp6(2),n.AsE(" ",y.currency.symbol," ",n.lcZ(3,2,y.getAmountValue(y.YEARLY,5)),"")}}function Jr(Pe,rr){if(1&Pe&&(n.TgZ(0,"div",140)(1,"div",141)(2,"button",142),n._uU(3),n.ALo(4,"number"),n.qZA(),n._uU(5,"\xa0\xa0\xa0 "),n.qZA(),n.TgZ(6,"div",141)(7,"button",143),n._uU(8),n.ALo(9,"number"),n.qZA(),n._uU(10,"\xa0\xa0\xa0 "),n.qZA(),n.TgZ(11,"div",141)(12,"button",143),n._uU(13),n.ALo(14,"number"),n.qZA(),n._uU(15,"\xa0\xa0\xa0 "),n.qZA(),n.TgZ(16,"div",141)(17,"button",143),n._uU(18),n.ALo(19,"number"),n.qZA(),n._uU(20,"\xa0\xa0\xa0 "),n.qZA(),n.YNc(21,yr,5,4,"div",144),n.qZA()),2&Pe){const y=n.oxw(2);n.xp6(3),n.AsE(" ",y.currency.symbol," ",n.lcZ(4,9,y.getAmountValue(y.YEARLY,1)),""),n.xp6(5),n.AsE(" ",y.currency.symbol," ",n.lcZ(9,11,y.getAmountValue(y.YEARLY,2)),""),n.xp6(5),n.AsE(" ",y.currency.symbol," ",n.lcZ(14,13,y.getAmountValue(y.YEARLY,3)),""),n.xp6(5),n.AsE(" ",y.currency.symbol," ",n.lcZ(19,15,y.getAmountValue(y.YEARLY,4)),""),n.xp6(3),n.Q6J("ngIf",y.yearly5Available)}}function wt(Pe,rr){if(1&Pe&&(n.TgZ(0,"div",145)(1,"mat-form-field",146)(2,"mat-label"),n.SDv(3,150),n.qZA(),n.TgZ(4,"div",20),n._uU(5),n.qZA(),n._UZ(6,"input",148),n.qZA()()),2&Pe){const y=n.oxw(2);n.xp6(5),n.hij(" ",y.currency.symbol,"\xa0 ")}}function nr(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-tab",5),n.YNc(1,Jr,22,17,"div",138),n.YNc(2,wt,7,1,"div",139),n.qZA()),2&Pe){const y=n.oxw();n.s9C("label",y.yearlyLabel),n.xp6(1),n.Q6J("ngIf",!y.getOpenAmountFlagValue(y.YEARLY)),n.xp6(1),n.Q6J("ngIf",y.getOpenAmountFlagValue(y.YEARLY))}}function tn(Pe,rr){if(1&Pe&&(n.TgZ(0,"div",151)(1,"span"),n.SDv(2,152),n.qZA(),n._uU(3," \xa0 "),n.TgZ(4,"mat-slider",153),n._UZ(5,"input",154),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.Q6J("min",0)("max",30)("step",1)("discrete",!0)("displayWith",y.formatLabel)("showTickMarks",!0)}}function rn(Pe,rr){if(1&Pe&&n._UZ(0,"img",155),2&Pe){const y=n.oxw();n.Q6J("src",y.fundraiserBackgroundImage,n.LSH)}}function vn(Pe,rr){if(1&Pe&&n._UZ(0,"img",155),2&Pe){const y=n.oxw();n.s9C("src",y.youtubeThumbnail,n.LSH)}}function Gn(Pe,rr){1&Pe&&n._UZ(0,"img",156)}let Yn=(()=>{class Pe{constructor(y,X,at,Ft,sr,xr,en,Pr,On,ei){this._media=y,this._fundraiserService=X,this.activatedRoute=at,this._formBuilder=Ft,this.notificationService=sr,this._location=xr,this.router=en,this._accountService=Pr,this._fundraiserCardService=On,this._donationService=ei,this.slug="",this.ONCE="onetime",this.MONTHLY="monthly",this.YEARLY="yearly",this.currentLanguageCode="",this.subject=new r.x,this.oneTimeValue=!0,this.monthlyValue=!0,this.yearlyValue=!0,this.isCustomDonationDisable=!0,this.isSaveCustomDonation=!1,this.pricingOptionURLEndPoint="\u010Clanak / ure\u0111ivanje-donacijskog-oblika-sakuplja\u010D-sredstava-1ceupda/",this.targetAmountTab="Ciljni iznos",this.donationAmountTab="Obrazac za donacije",this.oneTimeLabel="Jednom",this.monthlyLabel="Mjese\u010Dno",this.yearlyLabel="Godi\u0161nje",this.currency={currency_code:"",currency_symbol:""},this.fundraiserBackgroundImage="",this.min_donation_amount="",this.max_donation_amount="",this.video="",this.oneTime5Available=!0,this.monthly5Available=!0,this.yearly5Available=!0,this.tipPercentage=0,this.monthly5Subscription=null,this.formatLabel=Ai=>{const me=Math.round(0)/100;return 0!==me&&me?` ${Number.isInteger(me)?me.toString():me.toFixed(2)} (${Ai}%)`:`${Ai}%`},this.customDonationForm=this._formBuilder.group({onetimeFlag:[!0],onetimeCtrls:this._formBuilder.group({onetime1:["",l.kI.compose([l.kI.required,l.kI.pattern("^[0-9]*$")])],onetime2:["",l.kI.compose([l.kI.required,l.kI.pattern("^[0-9]*$")])],onetime3:["",l.kI.compose([l.kI.required,l.kI.pattern("^[0-9]*$")])],onetime4:["",l.kI.compose([l.kI.required,l.kI.pattern("^[0-9]*$")])],onetime5:["",l.kI.compose([l.kI.required,l.kI.pattern("^[0-9]*$")])]}),onetimeOpenAmountFlag:[!1],monthlyFlag:[!0],monthlyCtrls:this._formBuilder.group({monthly1:["",l.kI.compose([l.kI.required,l.kI.pattern("^[0-9]*$")])],monthly2:["",l.kI.compose([l.kI.required,l.kI.pattern("^[0-9]*$")])],monthly3:["",l.kI.compose([l.kI.required,l.kI.pattern("^[0-9]*$")])],monthly4:["",l.kI.compose([l.kI.required,l.kI.pattern("^[0-9]*$")])],monthly5:["",l.kI.compose([l.kI.required,l.kI.pattern("^[0-9]*$")])]}),monthlyOpenAmountFlag:[!1],yearlyFlag:[!0],yearlyCtrls:this._formBuilder.group({yearly1:["",l.kI.compose([l.kI.required,l.kI.pattern("^[0-9]*$")])],yearly2:["",l.kI.compose([l.kI.required,l.kI.pattern("^[0-9]*$")])],yearly3:["",l.kI.compose([l.kI.required,l.kI.pattern("^[0-9]*$")])],yearly4:["",l.kI.compose([l.kI.required,l.kI.pattern("^[0-9]*$")])],yearly5:["",l.kI.compose([l.kI.required,l.kI.pattern("^[0-9]*$")])]}),yearlyOpenAmountFlag:[!1],otherAmountFlag:[!0],tipBoxFlag:[!0]}),this.defaultDonationForm=this._formBuilder.group({...this.customDonationForm?.value}),this.slug=this.activatedRoute.snapshot.url[1].path.split(";")[0],this.pricingOptionsHelpdeskURL=`${C.N.helpDeskUrl}/${this._accountService.getLocaleId()}/${this.pricingOptionURLEndPoint}`}ngAfterViewInit(){}ngOnInit(){this.locale=this._accountService.getLocaleId(),this._fundraiserService.getFundraiserBySlug(this.slug,this.locale).subscribe(y=>{this.currentFundraiser=y.data?.result,this.currency={currency:this.currentFundraiser?.currency_code,symbol:this.currentFundraiser?.currency_symbol},this.currency?.currency&&null!=this.currency?.currency?this._donationService.getCustomDonationConfiguration(this.slug,this.currency?.currency).subscribe(X=>{this.fundraiserData=X,this.fundraiserCardData=X,"0"===X?.onetime_fifth&&(this.oneTime5Available=!1),"0"===X?.monthly_fifth&&(this.monthly5Available=!1),"0"===X?.yearly_fifth&&(this.yearly5Available=!1),this.fundraiserBackgroundImage=X?.image?.src;const at=X?.image?.video;this.youtubeThumbnail=this.checkVideoUrl(at),this.videoPath=at,this.min_donation_amount=X?.min_donation_amount,this.max_donation_amount=X?.max_donation_amount,this.customDonationForm.patchValue({onetimeCtrls:{onetime1:X?.onetime_first.toString(),onetime2:X?.onetime_second.toString(),onetime3:X?.onetime_third.toString(),onetime4:X?.onetime_forth.toString(),onetime5:X?.onetime_fifth.toString()},monthlyCtrls:{monthly1:X?.monthly_first.toString(),monthly2:X?.monthly_second.toString(),monthly3:X?.monthly_third.toString(),monthly4:X?.monthly_forth.toString(),monthly5:X?.monthly_fifth.toString()},yearlyCtrls:{yearly1:X?.yearly_first.toString(),yearly2:X?.yearly_second.toString(),yearly3:X?.yearly_third.toString(),yearly4:X?.yearly_forth.toString(),yearly5:X?.yearly_fifth.toString()}}),this.updateOneTimeValidators(X),this.updateMonthlyValidators(X),this.updateYearlyValidators(X);let Ft=X;if(null==this.fundraiserData?.custom_config_created_at){let sr="tip_enabled";Object.keys(Ft).find(xr=>xr===sr)&&this.getFlagCtrl("tipBox")?.patchValue(Ft?.tip_enabled)}else this.setCustomDonationView(Ft);this.setAmountDisable(),this.setListners()}):this.notificationService.openNotification("Ne\u0161to je po\u0161lo po zlu.",":(","error")}),this.currentLanguageCode=this._accountService.getLocaleId(),this.customDonationForm.get("onetimeFlag")?.valueChanges.subscribe(y=>{0==y?this.monthlyValue||this.yearlyValue?this.oneTimeValue=y:this.customDonationForm?.controls.onetimeFlag.setValue(!0):this.oneTimeValue=y}),this.customDonationForm.get("monthlyFlag")?.valueChanges.subscribe(y=>{0==y?this.oneTimeValue||this.yearlyValue?this.monthlyValue=y:this.customDonationForm?.controls.monthlyFlag.setValue(!0):this.monthlyValue=y}),this.customDonationForm.get("yearlyFlag")?.valueChanges.subscribe(y=>{0==y?this.monthlyValue||this.oneTimeValue?this.yearlyValue=y:this.customDonationForm?.controls.yearlyFlag.setValue(!0):this.yearlyValue=y}),this.activatedRoute.params.subscribe(y=>{this.amount=y})}updateOneTimeValidators(y){const X=this.customDonationForm.get("onetimeCtrls");if(X&&y){const at=["onetime1","onetime2","onetime3","onetime4","onetime5"];for(const Ft of at){const sr=X.get(Ft);if(sr){const xr=[l.kI.required,l.kI.pattern("^[0-9]*$")];if("onetime5"!==Ft?xr.push(l.kI.min(y?.min_donation_amount),l.kI.max(y?.max_donation_amount)):(this.onetime5Subscription&&this.onetime5Subscription.unsubscribe(),this.onetime5Subscription=sr.valueChanges.pipe((0,m.x)()).subscribe(en=>{sr.setValidators("0"===en||""===en?[l.kI.required,l.kI.pattern("^[0-9]*$")]:[l.kI.required,l.kI.pattern("^[0-9]*$"),l.kI.min(y?.min_donation_amount),l.kI.max(y?.max_donation_amount)]),sr.updateValueAndValidity({emitEvent:!1})})),"onetime5"===Ft){const en=sr.value;sr.setValidators("0"===en||""===en?[l.kI.required,l.kI.pattern("^[0-9]*$")]:[l.kI.required,l.kI.pattern("^[0-9]*$"),l.kI.min(y?.min_donation_amount),l.kI.max(y?.max_donation_amount)])}else sr.setValidators(xr);sr.updateValueAndValidity()}}}}updateMonthlyValidators(y){const X=this.customDonationForm.get("monthlyCtrls");if(X&&y){const at=["monthly1","monthly2","monthly3","monthly4","monthly5"];for(const Ft of at){const sr=X.get(Ft);if(sr){const xr=[l.kI.required,l.kI.pattern("^[0-9]*$")];if("monthly5"!==Ft?xr.push(l.kI.min(y?.min_donation_amount),l.kI.max(y?.max_donation_amount)):(this.monthly5Subscription&&this.monthly5Subscription.unsubscribe(),this.monthly5Subscription=sr.valueChanges.pipe((0,m.x)()).subscribe(en=>{sr.setValidators("0"===en||""===en?[l.kI.required,l.kI.pattern("^[0-9]*$")]:[l.kI.required,l.kI.pattern("^[0-9]*$"),l.kI.min(y?.min_donation_amount),l.kI.max(y?.max_donation_amount)]),sr.updateValueAndValidity({emitEvent:!1})})),"monthly5"===Ft){const en=sr.value;sr.setValidators("0"===en||""===en?[l.kI.required,l.kI.pattern("^[0-9]*$")]:[l.kI.required,l.kI.pattern("^[0-9]*$"),l.kI.min(y?.min_donation_amount),l.kI.max(y?.max_donation_amount)])}else sr.setValidators(xr);sr.updateValueAndValidity()}}}}updateYearlyValidators(y){const X=this.customDonationForm.get("yearlyCtrls");if(X&&y){const at=["yearly1","yearly2","yearly3","yearly4","yearly5"];for(const Ft of at){const sr=X.get(Ft);if(sr){const xr=[l.kI.required,l.kI.pattern("^[0-9]*$")];if("yearly5"!==Ft?xr.push(l.kI.min(y?.min_donation_amount),l.kI.max(y?.max_donation_amount)):(this.yearly5Subscription&&this.yearly5Subscription.unsubscribe(),this.yearly5Subscription=sr.valueChanges.pipe((0,m.x)()).subscribe(en=>{sr.setValidators("0"===en||""===en?[l.kI.required,l.kI.pattern("^[0-9]*$")]:[l.kI.required,l.kI.pattern("^[0-9]*$"),l.kI.min(y?.min_donation_amount),l.kI.max(y?.max_donation_amount)]),sr.updateValueAndValidity({emitEvent:!1})})),"yearly5"===Ft){const en=sr.value;sr.setValidators("0"===en||""===en?[l.kI.required,l.kI.pattern("^[0-9]*$")]:[l.kI.required,l.kI.pattern("^[0-9]*$"),l.kI.min(y?.min_donation_amount),l.kI.max(y?.max_donation_amount)])}else sr.setValidators(xr);sr.updateValueAndValidity()}}}this.customDonationForm.markAllAsTouched()}setToDefault(){this._donationService.getDefaultDonationCustomBranding(this.currency.currency).subscribe(y=>{this.customDonationForm.patchValue({onetimeCtrls:{onetime1:y?.data?.onetime_first,onetime2:y?.data?.onetime_second,onetime3:y?.data?.onetime_third,onetime4:y?.data?.onetime_forth,onetime5:y?.data?.onetime_fifth},monthlyCtrls:{monthly1:y?.data?.monthly_first,monthly2:y?.data?.monthly_second,monthly3:y?.data?.monthly_third,monthly4:y?.data?.monthly_forth,monthly5:y?.data?.monthly_fifth},yearlyCtrls:{yearly1:y?.data?.yearly_first,yearly2:y?.data?.yearly_second,yearly3:y?.data?.yearly_third,yearly4:y?.data?.yearly_forth,yearly5:y?.data?.yearly_fifth},onetimeOpenAmountFlag:y?.data?.onetime_style,onetimeFlag:y?.data?.onetime_select,monthlyOpenAmountFlag:y?.data?.monthly_style,monthlyFlag:y?.data?.monthly_select,yearlyOpenAmountFlag:y?.data?.yearly_style,yearlyFlag:y?.data?.yearly_select,tipBoxFlag:this.getBool(y?.data?.tip_enabled),otherAmountFlag:this.getBool(y?.data?.other_amount)})})}goToPricingOptions(){window.open(this.pricingOptionsHelpdeskURL,"_blank")}discardChanges(){let y=this.filterCustomDonationConfig(this.fundraiserData);Object.keys(y).includes("onetime_first")&&Object.keys(y).includes("tip_enabled")?this.setCustomDonationView(y):this.setToDefault(),this.setAmountDisable(),this.setListners(),this.isCustomDonationDisable=!0}saveAndApplyCustomDonation(){this.isSaveCustomDonation=!0,this.isCustomDonationDisable=!0;let y=[],X=this.getCustomDonationObj(this.customDonationForm);["onetime_fifth","monthly_fifth","yearly_fifth"].forEach(Ft=>{"0"===X[Ft]?delete X[Ft]:X[Ft]=String(X[Ft])}),X.onetime_select||delete X.onetime_fifth,X.monthly_select||delete X.monthly_fifth,X.yearly_select||delete X.yearly_fifth,y.push(null!=this.fundraiserData?.custom_config_created_at||null!=this.fundData_custom_config_created_at?this._fundraiserService.updateCustomDonationFormValuesBySlug({customDonationObj:X},this.amount.slug):this._fundraiserService.createCustomDonationFormValuesBySlugForAdmin({customDonationObj:X},this.amount.slug)),(0,c.D)(y).subscribe(Ft=>{this.notificationService.openNotification("Uspje\u0161no spremljeno.","","success"),this.isSaveCustomDonation=!1,this.isCustomDonationDisable=!0,this.currency?.currency&&null!=this.currency?.currency&&null!=this.currency?.currency?this._donationService.getCustomDonationConfiguration(this.slug,this.currency?.currency).subscribe(sr=>{this.fundData_custom_config_created_at=sr?.custom_config_created_at}):this.notificationService.openNotification("Ne\u0161to je po\u0161lo po zlu.",":(","error")},Ft=>{this.notificationService.openNotification("Spremanje nije uspjelo.","","error"),this.isSaveCustomDonation=!1,this.isCustomDonationDisable=!1})}filterCustomDonationConfig(y){let X={tip_enabled:y?.tip_enabled};return{...y,...X}}getBool(y){return!!JSON.parse(String(y)?.toLowerCase())}setCustomDonationView(y){this.getFlagCtrl("otherAmount")?.patchValue(this.getBool(y?.other_amount)),this.getFlagCtrl("tipBox")?.patchValue(this.getBool(y?.tip_enabled)),this.getFlagCtrl(this.ONCE)?.patchValue(this.getBool(y?.onetime_select)),this.getFlagCtrl(this.MONTHLY)?.patchValue(this.getBool(y?.monthly_select)),this.getFlagCtrl(this.YEARLY)?.patchValue(this.getBool(y?.yearly_select)),this.getAmountGroup(this.ONCE)?.patchValue(this.filterAndCreateAmountObj(this.ONCE,y)),this.getAmountGroup(this.MONTHLY)?.patchValue(this.filterAndCreateAmountObj(this.MONTHLY,y)),this.getAmountGroup(this.YEARLY)?.patchValue(this.filterAndCreateAmountObj(this.YEARLY,y)),this.getOpenCtrl(this.ONCE)?.patchValue(this.getBool(y?.onetime_style)),this.getOpenCtrl(this.MONTHLY)?.patchValue(this.getBool(y?.monthly_style)),this.getOpenCtrl(this.YEARLY)?.patchValue(this.getBool(y?.yearly_style))}filterAndCreateAmountObj(y,X){return{[y+"1"]:X[`${y}_first`],[y+"2"]:X[`${y}_second`],[y+"3"]:X[`${y}_third`],[y+"4"]:X[`${y}_forth`],[y+"5"]:X[`${y}_fifth`]}}setAmountDisable(){this.shouldAmountGroupDisabled(this.ONCE)&&this.getAmountGroup(this.ONCE)?.disable(),this.shouldAmountGroupDisabled(this.MONTHLY)&&this.getAmountGroup(this.MONTHLY)?.disable(),this.shouldAmountGroupDisabled(this.YEARLY)&&this.getAmountGroup(this.YEARLY)?.disable()}setListners(){(0,E.a)([this.getOpenCtrl(this.ONCE)?.valueChanges.pipe((0,v.O)(!1)),this.getFlagCtrl(this.ONCE)?.valueChanges.pipe((0,v.O)(!1))]).subscribe(y=>{this.shouldAmountGroupDisabled(this.ONCE)?this.getAmountGroup(this.ONCE)?.disable():this.getAmountGroup(this.ONCE)?.enable()}),(0,E.a)([this.getOpenCtrl(this.MONTHLY)?.valueChanges.pipe((0,v.O)(!1)),this.getFlagCtrl(this.MONTHLY)?.valueChanges.pipe((0,v.O)(!1))]).subscribe(y=>{this.shouldAmountGroupDisabled(this.MONTHLY)?this.getAmountGroup(this.MONTHLY)?.disable():this.getAmountGroup(this.MONTHLY)?.enable()}),(0,E.a)([this.getOpenCtrl(this.YEARLY)?.valueChanges.pipe((0,v.O)(!1)),this.getFlagCtrl(this.YEARLY)?.valueChanges.pipe((0,v.O)(!1))]).subscribe(y=>{this.shouldAmountGroupDisabled(this.YEARLY)?this.getAmountGroup(this.YEARLY)?.disable():this.getAmountGroup(this.YEARLY)?.enable()}),this.customDonationForm.valueChanges.subscribe(y=>{this.isCustomDonationDisable=!1})}shouldAmountGroupDisabled(y){return!this.getFlagCtrl(y)?.value||this.getOpenCtrl(y)?.value}getCustomDonationObj(y){let X=this.getFlagCtrl(this.ONCE)?.value,at=X?this.getAmountValue(this.ONCE,1):this.getAmountValue(this.ONCE,1,this.defaultDonationForm),Ft=X?this.getAmountValue(this.ONCE,2):this.getAmountValue(this.ONCE,2,this.defaultDonationForm),sr=X?this.getAmountValue(this.ONCE,3):this.getAmountValue(this.ONCE,3,this.defaultDonationForm),xr=X?this.getAmountValue(this.ONCE,4):this.getAmountValue(this.ONCE,4,this.defaultDonationForm),en=X?this.getAmountValue(this.ONCE,5):this.getAmountValue(this.ONCE,5,this.defaultDonationForm),Pr=this.getOpenAmountFlagValue(this.ONCE),On=this.getFlagCtrl(this.MONTHLY)?.value,ei=On?this.getAmountValue(this.MONTHLY,1):this.getAmountValue(this.MONTHLY,1,this.defaultDonationForm),Ai=On?this.getAmountValue(this.MONTHLY,2):this.getAmountValue(this.MONTHLY,2,this.defaultDonationForm),ae=On?this.getAmountValue(this.MONTHLY,3):this.getAmountValue(this.MONTHLY,3,this.defaultDonationForm),me=On?this.getAmountValue(this.MONTHLY,4):this.getAmountValue(this.MONTHLY,4,this.defaultDonationForm),J=On?this.getAmountValue(this.MONTHLY,5):this.getAmountValue(this.MONTHLY,5,this.defaultDonationForm),Oe=this.getOpenAmountFlagValue(this.MONTHLY),Ke=this.getFlagCtrl(this.YEARLY)?.value,xt=Ke?this.getAmountValue(this.YEARLY,1):this.getAmountValue(this.YEARLY,1,this.defaultDonationForm),Zt=Ke?this.getAmountValue(this.YEARLY,2):this.getAmountValue(this.YEARLY,2,this.defaultDonationForm),gr=Ke?this.getAmountValue(this.YEARLY,3):this.getAmountValue(this.YEARLY,3,this.defaultDonationForm),zr=Ke?this.getAmountValue(this.YEARLY,4):this.getAmountValue(this.YEARLY,4,this.defaultDonationForm),nn=Ke?this.getAmountValue(this.YEARLY,5):this.getAmountValue(this.YEARLY,5,this.defaultDonationForm),dn=this.getOpenAmountFlagValue(this.YEARLY);return{other_amount:this.getFlagValue("otherAmount"),tip_enabled:this.getFlagValue("tipBox"),onetime_select:X,onetime_first:at,onetime_second:Ft,onetime_third:sr,onetime_forth:xr,onetime_fifth:en,onetime_style:Pr,monthly_select:On,monthly_first:ei,monthly_second:Ai,monthly_third:ae,monthly_forth:me,monthly_fifth:J,monthly_style:Oe,yearly_select:Ke,yearly_first:xt,yearly_second:Zt,yearly_third:gr,yearly_forth:zr,yearly_fifth:nn,yearly_style:dn}}getFlagCtrl(y){return this.customDonationForm.get(`${y}Flag`)}getOpenCtrl(y){return this.customDonationForm.get(`${y}OpenAmountFlag`)}getAmountGroup(y){return this.customDonationForm.get(`${y}Ctrls`)}getAmountValue(y,X,at=this.customDonationForm){return at.get(`${y}Ctrls.${y}${X}`)?.value}getFlagValue(y){return this.customDonationForm.get(`${y}Flag`)?.value}getOpenAmountFlagValue(y){return this.customDonationForm.get(`${y}OpenAmountFlag`)?.value}goBack(){this._location.back()}checkVideoUrl(y){const X=this.getVideoIdFromLink(y,/^https?:\/\/(?:www\.)?vimeo\.com\/(\d+)/),at=this.getVideoIdFromLink(y,/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:embed\/|watch\?v=|v\/|shorts\/)|youtu\.be\/)([\w\-]+)/);return X?`https://vumbnail.com/${X}.jpg`:at?`https://i.ytimg.com/vi/${at}/mqdefault.jpg`:"unknown"}getVideoIdFromLink(y,X){const at=y?.match(X);return at&&at[1]?at[1]:""}showError(y,X,at){const Ft=this.customDonationForm.get(`${y}.${X}`);return"max"===at?Ft?.hasError("max")||!1:"min"===at&&Ft?.hasError("min")||!1}}return Pe.\u0275fac=function(y){return new(y||Pe)(n.Y36(i.u0),n.Y36(P.R),n.Y36(e.gz),n.Y36(l.QS),n.Y36(I.g),n.Y36(t.Ye),n.Y36(e.F0),n.Y36(q.B),n.Y36(D.a),n.Y36(M.l))},Pe.\u0275cmp=n.Xpm({type:Pe,selectors:[["app-custom-donation-form"]],decls:198,vars:60,consts:function(){let rr,y,X,at,Ft,sr,xr,en,Pr,On,ei,Ai,ae,me,J,Oe,Ke,xt,Zt,gr,zr,nn,dn,yi,Ca,Do,Ro,Po,_o,ts,Wo,Ii,ko,$s,Is,il,Xs,Ss,Fs,Vs,Js,Qs,Cs,Ds,os,fl,Ws,al,Al,ol;return rr="Povratak na Sakuplja\u010D Sredstava",y="Uredi obrazac za donacije",X="Ponovno postavi na zadano",at="Jednokratna donacija",Ft="Otvoreni iznos donacije",sr="Mjese\u010Dna donacija",xr="Otvoreni iznos donacije",en="Godi\u0161nja donacija",Pr="Otvoreni iznos donacije",On="Opcija Napojnice WhyDonate",ei="Onemogu\u0107ivanjem okvira za napojnice prilagodit \u0107e se naknada za platformu s 0% na 3%. Napominjemo da je napojnica uvijek opcionalna, a donatori je mogu lako postaviti na 0% ako \u017Eele.",Ai="Provjerite opcije naknada platforme",ae="Odbaci",me="Spremi",J="Pregled obrasca za donacije",Oe="Donacija",Ke="Najvi\u0161i iznos je",xt="Najmanji iznos je",Zt="Najvi\u0161i iznos je",gr="Najmanji iznos je",zr="Najvi\u0161i iznos je",nn="Najmanji iznos je",dn="Najvi\u0161i iznos je",yi="Najmanji iznos je",Ca="Najvi\u0161i iznos je",Do="Najmanji iznos je",Ro="Najvi\u0161i iznos je",Po="Najmanji iznos je",_o="Najvi\u0161i iznos je",ts="Najmanji iznos je",Wo="Najvi\u0161i iznos je",Ii="Najmanji iznos je",ko="Najvi\u0161i iznos je",$s="Najmanji iznos je",Is="Najvi\u0161i iznos je",il="Najmanji iznos je",Xs="Najvi\u0161i iznos je",Ss="Najmanji iznos je",Fs="Najvi\u0161i iznos je",Vs="Najmanji iznos je",Js="Najvi\u0161i iznos je",Qs="Najmanji iznos je",Cs="Najvi\u0161i iznos je",Ds="Najmanji iznos je",os="Najvi\u0161i iznos je",fl="Najmanji iznos je",Ws="Unesite iznos donacije",al="Unesite iznos donacije",Al="Unesite iznos donacije",ol="Opcija Napojnice WhyDonate",[[1,"p-t-m","p-l-m"],["mat-button","","color","accent","id","goBackButton",3,"click"],["height","16px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/arrowBackAccent/public"],rr,["color","accent","selectedIndex","0"],[3,"label"],[3,"currentFundraiserData"],["id","donationAmount",3,"label"],["fxLayout","row wrap"],["fxFlex.gt-sm","49","fxFlex.lt-md","100",1,"mat-elevation-z0"],["fxLayout","row wrap","fxLayout.xs","column","fxLayoutAlign","space-between baseline"],y,["class","m-l-xs",4,"ngIf"],["mat-button","","color","accent","id","resetDefaultValues",3,"click"],X,[3,"formGroup"],["id","oneTimeCheckbox","type","checkbox","color","primary","formControlName","onetimeFlag"],at,["formGroupName","onetimeCtrls","fxLayout","row wrap","fxLayoutAlign","start center"],["appearance","outline","color","primary","fxFlex.xs","35","fxFlex.gt-xs","20"],["matPrefix","",1,"currency-input-field"],["formControlName","onetime1","matInput","","type","number","id","onetime1Input"],[4,"ngIf"],["id","onetime1MinErr",4,"ngIf"],["formControlName","onetime2","matInput","","type","number","id","onetime2Input"],["id","onetime2MinErr",4,"ngIf"],["formControlName","onetime3","matInput","","type","number","id","onetime3Input"],["id","onetime3MinErr",4,"ngIf"],["formControlName","onetime4","matInput","","type","number","id","onetime4Input"],["id","onetime4MinErr",4,"ngIf"],["formControlName","onetime5","matInput","","type","number","id","onetime5Input"],["id","onetime5MinErr",4,"ngIf"],["id","onetimeOpenDonationStyle","color","primary","formControlName","onetimeOpenAmountFlag"],Ft,["id","monthlyCheckbox","type","checkbox","formControlName","monthlyFlag","color","primary"],sr,["formGroupName","monthlyCtrls","fxLayout","row wrap","fxLayoutAlign","start center"],["formControlName","monthly1","matInput","","type","number","id","monthly1Input"],["id","monthly1MinErr",4,"ngIf"],["formControlName","monthly2","matInput","","type","number","id","monthly2Input"],["id","monthly2MinErr",4,"ngIf"],["formControlName","monthly3","matInput","","type","number","id","monthly3Input"],["id","monthly3MinErr",4,"ngIf"],["formControlName","monthly4","matInput","","type","number","id","monthly4Input"],["id","monthly4MinErr",4,"ngIf"],["formControlName","monthly5","matInput","","type","number","id","monthly5Input"],["id","monthlyOpenDonationStyle","formControlName","monthlyOpenAmountFlag","color","primary"],xr,["id","yearlyCheckbox","type","checkbox","formControlName","yearlyFlag","color","primary"],en,["formGroupName","yearlyCtrls","fxLayout","row wrap","fxLayoutAlign","start center"],["formControlName","yearly1","matInput","","type","number","id","yearly1Input"],["id","yearly1MinErr",4,"ngIf"],["formControlName","yearly2","matInput","","type","number","id","yearly2Input"],["id","yearly2MinErr",4,"ngIf"],["formControlName","yearly3","matInput","","type","number","id","yearly3Input"],["id","yearly3MinErr",4,"ngIf"],["formControlName","yearly4","matInput","","type","number","id","yearly4Input"],["id","yearly4MinErr",4,"ngIf"],["formControlName","yearly5","matInput","","type","number","id","yearly5Input"],["id","yearlyOpenDonationStyle","formControlName","yearlyOpenAmountFlag","color","primary"],Pr,["id","tipBoxFlagButton","formControlName","tipBoxFlag","color","primary"],On,["fxLayout","column","fxLayoutAlign","start start"],[1,"mat-caption"],ei,["mat-button","","color","accent",3,"click"],Ai,["fxLayout","row","fxLayoutAlign","end center"],["mat-stroked-button","","color","accent",3,"disabled","click"],ae,["id","saveAndApply","mat-flat-button","","color","accent",3,"disabled","click"],me,["vertical","true"],["fxFlex.gt-sm","50","fxFlex.lt-md","100",1,"mat-elevation-z0"],["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","row",1,"mat-body-1"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/visibilityOn/public"],["ngClass","p-t-xxs"],J,["fxLayout","row",1,"donation-form-preview"],["fxFlex","60"],["mat-align-tabs","center","mat-stretch-tabs","","color","primary"],[3,"label",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center"],["fxLayout","row","fxLayoutAlign","space-between center","fxFill","",4,"ngIf"],["mat-flat-button","","color","accent"],Oe,["fxLayout","column","fxFlex","40"],["loading","lazy",3,"src",4,"ngIf"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fundraiser_default_bg/public","loading","lazy",4,"ngIf"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/custom-donation/public"],[1,"m-l-xs"],["color","accent","diameter","20"],Ke,["id","onetime1MinErr"],xt,Zt,["id","onetime2MinErr"],gr,zr,["id","onetime3MinErr"],nn,dn,["id","onetime4MinErr"],yi,Ca,["id","onetime5MinErr"],Do,Ro,["id","monthly1MinErr"],Po,_o,["id","monthly2MinErr"],ts,Wo,["id","monthly3MinErr"],Ii,ko,["id","monthly4MinErr"],$s,Is,il,Xs,["id","yearly1MinErr"],Ss,Fs,["id","yearly2MinErr"],Vs,Js,["id","yearly3MinErr"],Qs,Cs,["id","yearly4MinErr"],Ds,os,fl,["fxLayout","row wrap","fxLayoutAlign","center","class","m-b-m",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","class","p-r-m p-t-xs",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","center",1,"m-b-m"],[1,"p-t-s"],["mat-button","","color","primary",1,"mat-flat-button"],["mat-stroked-button",""],["class","p-t-s",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"p-r-m","p-t-xs"],["appearance","outline",1,"w-100"],Ws,["matInput","","type","number","value","0"],al,Al,["fxLayout","row","fxLayoutAlign","space-between center","fxFill",""],ol,["name","tipSlider","ngDefaultControl","",1,"slider",3,"min","max","step","discrete","displayWith","showTickMarks"],["matSliderThumb",""],["loading","lazy",3,"src"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fundraiser_default_bg/public","loading","lazy"]]},template:function(y,X){1&y&&(n.TgZ(0,"div",0)(1,"button",1),n.NdJ("click",function(){return X.goBack()}),n._UZ(2,"img",2),n.TgZ(3,"span"),n.SDv(4,3),n.qZA()()(),n.TgZ(5,"mat-tab-group",4)(6,"mat-tab",5),n._UZ(7,"app-target-amount",6),n.qZA(),n.TgZ(8,"mat-tab",7)(9,"div",8)(10,"mat-card",9)(11,"div",10)(12,"h2"),n.SDv(13,11),n.qZA(),n.YNc(14,fe,2,0,"mat-icon",12),n.TgZ(15,"button",13),n.NdJ("click",function(){return X.setToDefault()}),n.SDv(16,14),n.qZA()(),n.TgZ(17,"mat-card-content")(18,"form",15),n._UZ(19,"br"),n.TgZ(20,"div")(21,"p")(22,"mat-slide-toggle",16)(23,"span"),n.SDv(24,17),n.qZA()()(),n.TgZ(25,"div",18)(26,"mat-form-field",19)(27,"div",20),n._uU(28),n.qZA(),n._UZ(29,"input",21),n.YNc(30,qe,4,2,"mat-error",22),n.YNc(31,$e,4,2,"mat-error",23),n.qZA(),n._uU(32," \xa0\xa0\xa0 "),n.TgZ(33,"mat-form-field",19)(34,"div",20),n._uU(35),n.qZA(),n._UZ(36,"input",24),n.YNc(37,et,4,2,"mat-error",22),n.YNc(38,ot,4,2,"mat-error",25),n.qZA(),n._uU(39," \xa0\xa0\xa0 "),n.TgZ(40,"mat-form-field",19)(41,"div",20),n._uU(42),n.qZA(),n._UZ(43,"input",26),n.YNc(44,ct,4,2,"mat-error",22),n.YNc(45,pt,4,2,"mat-error",27),n.qZA(),n._uU(46," \xa0\xa0\xa0 "),n.TgZ(47,"mat-form-field",19)(48,"div",20),n._uU(49),n.qZA(),n._UZ(50,"input",28),n.YNc(51,$t,4,2,"mat-error",22),n.YNc(52,It,4,2,"mat-error",29),n.qZA(),n._uU(53," \xa0\xa0\xa0 "),n.TgZ(54,"mat-form-field",19)(55,"div",20),n._uU(56),n.qZA(),n._UZ(57,"input",30),n.YNc(58,fr,4,2,"mat-error",22),n.YNc(59,yt,4,2,"mat-error",31),n.qZA()(),n.TgZ(60,"p"),n._uU(61," OR \xa0\xa0\xa0"),n.TgZ(62,"mat-slide-toggle",32),n.SDv(63,33),n.qZA()()(),n._UZ(64,"br"),n.TgZ(65,"div")(66,"p")(67,"mat-slide-toggle",34)(68,"span"),n.SDv(69,35),n.qZA()()(),n.TgZ(70,"div",36)(71,"mat-form-field",19)(72,"div",20),n._uU(73),n.qZA(),n._UZ(74,"input",37),n.YNc(75,dr,4,2,"mat-error",22),n.YNc(76,bt,4,2,"mat-error",38),n.qZA(),n._uU(77," \xa0\xa0\xa0 "),n.TgZ(78,"mat-form-field",19)(79,"div",20),n._uU(80),n.qZA(),n._UZ(81,"input",39),n.YNc(82,ar,4,2,"mat-error",22),n.YNc(83,vt,4,2,"mat-error",40),n.qZA(),n._uU(84," \xa0\xa0\xa0 "),n.TgZ(85,"mat-form-field",19)(86,"div",20),n._uU(87),n.qZA(),n._UZ(88,"input",41),n.YNc(89,qt,4,2,"mat-error",22),n.YNc(90,br,4,2,"mat-error",42),n.qZA(),n._uU(91," \xa0\xa0\xa0 "),n.TgZ(92,"mat-form-field",19)(93,"div",20),n._uU(94),n.qZA(),n._UZ(95,"input",43),n.YNc(96,lt,4,2,"mat-error",22),n.YNc(97,De,4,2,"mat-error",44),n.qZA(),n._uU(98," \xa0\xa0\xa0 "),n.TgZ(99,"mat-form-field",19)(100,"div",20),n._uU(101),n.qZA(),n._UZ(102,"input",45),n.YNc(103,G,4,2,"mat-error",22),n.YNc(104,U,4,2,"mat-error",31),n.qZA()(),n.TgZ(105,"p"),n._uU(106," OR \xa0\xa0\xa0"),n.TgZ(107,"mat-slide-toggle",46),n.SDv(108,47),n.qZA()()(),n._UZ(109,"br"),n.TgZ(110,"div")(111,"p")(112,"mat-slide-toggle",48)(113,"span"),n.SDv(114,49),n.qZA()()(),n.TgZ(115,"div",50)(116,"mat-form-field",19)(117,"div",20),n._uU(118),n.qZA(),n._UZ(119,"input",51),n.YNc(120,ne,4,2,"mat-error",22),n.YNc(121,Re,4,2,"mat-error",52),n.qZA(),n._uU(122," \xa0\xa0\xa0 "),n.TgZ(123,"mat-form-field",19)(124,"div",20),n._uU(125),n.qZA(),n._UZ(126,"input",53),n.YNc(127,Xe,4,2,"mat-error",22),n.YNc(128,Nt,4,2,"mat-error",54),n.qZA(),n._uU(129," \xa0\xa0\xa0 "),n.TgZ(130,"mat-form-field",19)(131,"div",20),n._uU(132),n.qZA(),n._UZ(133,"input",55),n.YNc(134,Pt,4,2,"mat-error",22),n.YNc(135,Vt,4,2,"mat-error",56),n.qZA(),n._uU(136," \xa0\xa0\xa0 "),n.TgZ(137,"mat-form-field",19)(138,"div",20),n._uU(139),n.qZA(),n._UZ(140,"input",57),n.YNc(141,Jt,4,2,"mat-error",22),n.YNc(142,kt,4,2,"mat-error",58),n.qZA(),n._uU(143," \xa0\xa0\xa0 "),n.TgZ(144,"mat-form-field",19)(145,"div",20),n._uU(146),n.qZA(),n._UZ(147,"input",59),n.YNc(148,Me,4,2,"mat-error",22),n.YNc(149,ut,4,2,"mat-error",31),n.qZA()(),n.TgZ(150,"p"),n._uU(151," OR \xa0\xa0\xa0"),n.TgZ(152,"mat-slide-toggle",60),n.SDv(153,61),n.qZA()()(),n._UZ(154,"br"),n.TgZ(155,"div")(156,"mat-slide-toggle",62)(157,"span"),n.SDv(158,63),n.qZA()(),n.TgZ(159,"div",64)(160,"mat-hint",65),n.SDv(161,66),n.qZA(),n.TgZ(162,"a",67),n.NdJ("click",function(){return X.goToPricingOptions()}),n.SDv(163,68),n.qZA()()()(),n.TgZ(164,"div",69)(165,"button",70),n.NdJ("click",function(){return X.discardChanges()}),n.SDv(166,71),n.qZA(),n._uU(167," \xa0\xa0\xa0 "),n.TgZ(168,"button",72),n.NdJ("click",function(){return X.saveAndApplyCustomDonation()}),n.TgZ(169,"span"),n.SDv(170,73),n.qZA(),n.YNc(171,nt,2,0,"mat-icon",12),n.qZA()()()(),n._UZ(172,"mat-divider",74),n.TgZ(173,"mat-card",75)(174,"div",76)(175,"p",77),n._UZ(176,"img",78),n.TgZ(177,"span",79),n.SDv(178,80),n.qZA()()(),n._UZ(179,"br"),n.TgZ(180,"mat-card",81)(181,"div",82)(182,"mat-tab-group",83),n.YNc(183,Kr,3,3,"mat-tab",84),n.YNc(184,ti,3,3,"mat-tab",84),n.YNc(185,nr,3,3,"mat-tab",84),n.qZA(),n.TgZ(186,"div",85),n.YNc(187,tn,6,6,"div",86),n._UZ(188,"br"),n.TgZ(189,"button",87),n.SDv(190,88),n.qZA()()(),n._UZ(191,"mat-divider",74),n.TgZ(192,"div",89),n.YNc(193,rn,1,1,"img",90),n.YNc(194,vn,1,1,"img",90),n.YNc(195,Gn,1,0,"img",91),n._UZ(196,"br")(197,"img",92),n.qZA()()()()()()),2&y&&(n.xp6(6),n.s9C("label",X.targetAmountTab),n.xp6(1),n.Q6J("currentFundraiserData",X.fundraiserData),n.xp6(1),n.s9C("label",X.donationAmountTab),n.xp6(6),n.Q6J("ngIf",!(null!=X.fundraiserData&&X.fundraiserData.slug)),n.xp6(4),n.Q6J("formGroup",X.customDonationForm),n.xp6(10),n.hij(" ",X.currency.symbol,"\xa0 "),n.xp6(2),n.Q6J("ngIf",X.showError("onetimeCtrls","onetime1","max")),n.xp6(1),n.Q6J("ngIf",X.showError("onetimeCtrls","onetime1","min")),n.xp6(4),n.hij(" ",X.currency.symbol,"\xa0 "),n.xp6(2),n.Q6J("ngIf",X.showError("onetimeCtrls","onetime2","max")),n.xp6(1),n.Q6J("ngIf",X.showError("onetimeCtrls","onetime2","min")),n.xp6(4),n.hij(" ",X.currency.symbol,"\xa0 "),n.xp6(2),n.Q6J("ngIf",X.showError("onetimeCtrls","onetime3","max")),n.xp6(1),n.Q6J("ngIf",X.showError("onetimeCtrls","onetime3","min")),n.xp6(4),n.hij(" ",X.currency.symbol,"\xa0 "),n.xp6(2),n.Q6J("ngIf",X.showError("onetimeCtrls","onetime4","max")),n.xp6(1),n.Q6J("ngIf",X.showError("onetimeCtrls","onetime4","min")),n.xp6(4),n.hij(" ",X.currency.symbol,"\xa0 "),n.xp6(2),n.Q6J("ngIf",X.showError("onetimeCtrls","onetime5","max")),n.xp6(1),n.Q6J("ngIf",X.showError("onetimeCtrls","onetime5","min")),n.xp6(14),n.hij(" ",X.currency.symbol,"\xa0 "),n.xp6(2),n.Q6J("ngIf",X.showError("monthlyCtrls","monthly1","max")),n.xp6(1),n.Q6J("ngIf",X.showError("monthlyCtrls","monthly1","min")),n.xp6(4),n.hij(" ",X.currency.symbol,"\xa0 "),n.xp6(2),n.Q6J("ngIf",X.showError("monthlyCtrls","monthly2","max")),n.xp6(1),n.Q6J("ngIf",X.showError("monthlyCtrls","monthly2","min")),n.xp6(4),n.hij(" ",X.currency.symbol,"\xa0 "),n.xp6(2),n.Q6J("ngIf",X.showError("monthlyCtrls","monthly3","max")),n.xp6(1),n.Q6J("ngIf",X.showError("monthlyCtrls","monthly3","min")),n.xp6(4),n.hij(" ",X.currency.symbol,"\xa0 "),n.xp6(2),n.Q6J("ngIf",X.showError("monthlyCtrls","monthly4","max")),n.xp6(1),n.Q6J("ngIf",X.showError("monthlyCtrls","monthly4","min")),n.xp6(4),n.hij(" ",X.currency.symbol,"\xa0 "),n.xp6(2),n.Q6J("ngIf",X.showError("monthlyCtrls","monthly5","max")),n.xp6(1),n.Q6J("ngIf",X.showError("monthlyCtrls","monthly5","min")),n.xp6(14),n.hij(" ",X.currency.symbol,"\xa0 "),n.xp6(2),n.Q6J("ngIf",X.showError("yearlyCtrls","yearly1","max")),n.xp6(1),n.Q6J("ngIf",X.showError("yearlyCtrls","yearly1","min")),n.xp6(4),n.hij(" ",X.currency.symbol,"\xa0 "),n.xp6(2),n.Q6J("ngIf",X.showError("yearlyCtrls","yearly2","max")),n.xp6(1),n.Q6J("ngIf",X.showError("yearlyCtrls","yearly2","min")),n.xp6(4),n.hij(" ",X.currency.symbol,"\xa0 "),n.xp6(2),n.Q6J("ngIf",X.showError("yearlyCtrls","yearly3","max")),n.xp6(1),n.Q6J("ngIf",X.showError("yearlyCtrls","yearly3","min")),n.xp6(4),n.hij(" ",X.currency.symbol,"\xa0 "),n.xp6(2),n.Q6J("ngIf",X.showError("yearlyCtrls","yearly4","max")),n.xp6(1),n.Q6J("ngIf",X.showError("yearlyCtrls","yearly4","min")),n.xp6(4),n.hij(" ",X.currency.symbol,"\xa0 "),n.xp6(2),n.Q6J("ngIf",X.showError("yearlyCtrls","yearly5","max")),n.xp6(1),n.Q6J("ngIf",X.showError("yearlyCtrls","yearly5","min")),n.xp6(16),n.Q6J("disabled",X.isCustomDonationDisable),n.xp6(3),n.Q6J("disabled",X.isCustomDonationDisable||!X.customDonationForm.valid),n.xp6(3),n.Q6J("ngIf",X.isSaveCustomDonation),n.xp6(12),n.Q6J("ngIf",X.getFlagValue(X.ONCE)),n.xp6(1),n.Q6J("ngIf",X.getFlagValue(X.MONTHLY)),n.xp6(1),n.Q6J("ngIf",X.getFlagValue(X.YEARLY)),n.xp6(2),n.Q6J("ngIf",X.getFlagValue("tipBox")),n.xp6(6),n.Q6J("ngIf",null!=(null==X.fundraiserData||null==X.fundraiserData.image?null:X.fundraiserData.image.src)&&""!=(null==X.fundraiserData||null==X.fundraiserData.image?null:X.fundraiserData.image.src)&&!(null!=X.fundraiserData&&null!=X.fundraiserData.image&&X.fundraiserData.image.video)),n.xp6(1),n.Q6J("ngIf",(null==X.fundraiserData||null==X.fundraiserData.image?null:X.fundraiserData.image.video)||null!=(null==X.fundraiserData||null==X.fundraiserData.image?null:X.fundraiserData.image.src)&&(null==X.fundraiserData||null==X.fundraiserData.image?null:X.fundraiserData.image.video)),n.xp6(1),n.Q6J("ngIf",!(null!=X.fundraiserData&&null!=X.fundraiserData.image&&X.fundraiserData.image.src&&null!=X.fundraiserData&&null!=X.fundraiserData.image&&X.fundraiserData.image.video)&&null==(null==X.fundraiserData||null==X.fundraiserData.image?null:X.fundraiserData.image.src)))},dependencies:[l._Y,l.Fj,l.wV,l.JJ,l.JL,l.sg,l.u,l.x0,t.mk,t.O5,T.nI,T.v_,T.pH,T.$V,T.g4,F.k0,le.pH,le.$5,V.Rr,de.S$,de.Qi,ye.d,Ee.SK,Ee.R7,Le.eB,Le.Nr,ge.Hw,ue.sN,ee.xw,ee.Wh,ee.s9,ee.yH,se.oO,re,t.JJ],encapsulation:2}),Pe})();var Dn=s(48046);class Ti{constructor(rr,y,X,at){this.isImage=rr,this.isVideo=y,this.imageUrl=X,this.videoUrl=at}}class Ni{constructor(rr,y){this.sanitizedVideoUrl=rr,this.youtubeUrl=y}}var ci=s(59435),Kt=s(9754),Ar=s(81565),ie=s(32837),Ve=s(95195),Mt=s(24510),tr=s(80177),kr=s(81338),mn=s(68550);let un=(()=>{class Pe{constructor(){this.specialCharMap={\u0166:"T",\u0167:"t",\u00c6:"AE",\u00c0:"A",\u00e0:"a",\u00e6:"ae",\u0110:"D",\u0111:"d",\u0141:"L",\u0142:"l",\u010c:"C",\u010d:"c",\u0106:"C",\u0107:"c",\u017d:"Z",\u017e:"z",\u0160:"S",\u0161:"s",D\u017e:"Dz",d\u017e:"dz",\u0158:"R",\u0159:"r",\u010e:"D",\u010f:"d",\u0164:"T",\u0165:"t",\u0147:"N",\u0148:"n",\u00c4:"A",\u00e4:"a",\u00d6:"O",\u00f6:"o",\u00c5:"A",\u00e5:"a",\u018f:"E",\u0259:"e",\u00d8:"E",\u00f8:"e",\u0391:"A",\u03b1:"a",\u0392:"V",\u03b2:"v",\u0393:"G",\u03b3:"g",\u0394:"D",\u03b4:"d",\u0395:"E",\u03b5:"e",\u0396:"Z",\u03b6:"z",\u0397:"I",\u03b7:"i",\u0398:"Th",\u03b8:"th",\u0399:"I",\u03b9:"i",\u039a:"K",\u03ba:"k",\u039b:"L",\u03bb:"l",\u039c:"M",\u03bc:"m",\u039d:"N",\u03bd:"n",\u039e:"X",\u03be:"x",\u039f:"O",\u03bf:"o",\u03a0:"P",\u03c0:"p",\u03a1:"R",\u03c1:"r",\u03a3:"S",\u03c3:"s",\u03a4:"T",\u03c4:"t",\u00dc:"U",\u00fc:"u",\u03a5:"Y",\u03c5:"y",\u03a6:"F",\u03c6:"f",\u03a7:"Ch",\u03c7:"ch",\u03a8:"Ps",\u03c8:"ps",\u03a9:"O",\u03c9:"o",\u00c1:"A",\u00e1:"a",\u00c9:"E",\u00e9:"e",\u00cd:"I",\u00ed:"i",\u00d3:"O",\u00f3:"o",\u00da:"U",\u00fa:"u",\u016e:"U",\u016f:"u",\u0104:"A",\u0105:"a",\u0118:"E",\u0119:"e",\u0143:"N",\u0144:"n",\u015a:"S",\u015b:"s",\u0179:"Z",\u017a:"z",\u017b:"Z",\u017c:"z",\u00c7:"C",\u00e7:"c",\u00c8:"E",\u00e8:"e",\u00ce:"I",\u00ee:"i",\u00d4:"O",\u00f4:"o",\u00d9:"U",\u00f9:"u",\u00c2:"A",\u00e2:"a",\u00ca:"E",\u00ea:"e",\u00db:"U",\u00fb:"u",\u0152:"OE",\u0153:"oe",\u0150:"O",\u0151:"o",\u0170:"U",\u0171:"u",\u00df:"SS",\u00d1:"N",\u00f1:"n",\u0139:"L",\u013a:"l",\u013d:"L",\u013e:"l",\u0218:"S",\u0219:"s",\u021a:"T",\u021b:"t",\u0102:"A",\u0103:"a",\u0404:"Ye",\u0454:"ye",\u0407:"Yi",\u0457:"yi",\u0490:"G",\u0491:"g",\u0429:"Shch",\u0449:"shch",\u042e:"Yu",\u044e:"yu",\u042f:"Ya",\u044f:"ya",\u0410:"A",\u0430:"a",\u0411:"B",\u0431:"b",\u0412:"V",\u0432:"v",\u0413:"G",\u0433:"g",\u0414:"D",\u0434:"d",\u0415:"E",\u0435:"e",\u0416:"Zh",\u0436:"zh",\u0417:"Z",\u0437:"z",\u0418:"I",\u0438:"i",\u0419:"Y",\u0439:"y",\u041a:"K",\u043a:"k",\u041b:"L",\u043b:"l",\u041c:"M",\u043c:"m",\u041d:"N",\u043d:"n",\u041e:"O",\u043e:"o",\u041f:"P",\u043f:"p",\u0420:"R",\u0440:"r",\u0421:"S",\u0441:"s",\u0422:"T",\u0442:"t",\u0423:"U",\u0443:"u",\u0424:"F",\u0444:"f",\u0425:"Kh",\u0445:"kh",\u0426:"Ts",\u0446:"ts",\u0427:"Ch",\u0447:"ch"}}normalizeString(y){return y.normalize("NFD").replace(/[\u0300-\u036f]/g,"").split("").map(at=>this.specialCharMap[at]||at).join("")}}return Pe.\u0275fac=function(y){return new(y||Pe)},Pe.\u0275prov=n.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();var ri=s(24e3);function Sr(Pe,rr){1&Pe&&n._UZ(0,"app-page-loader")}function Er(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n._uU(1," Wrong title. You can only use letters and numbers. "),n.qZA())}function Ot(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n.SDv(1,58),n.qZA())}function lr(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div",61)(1,"div")(2,"button",62),n.NdJ("click",function(){const Ft=n.CHM(y).$implicit,sr=n.oxw(3);return n.KtG(sr.removeImage(Ft))}),n._UZ(3,"img",63),n.qZA()(),n._UZ(4,"img",64),n.qZA()}if(2&Pe){const y=rr.$implicit;n.xp6(4),n.Q6J("src",y,n.LSH)}}const Cr=function(){return{width:"95px",height:"64px"}};function Gr(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div",61)(1,"div")(2,"button",62),n.NdJ("click",function(){const Ft=n.CHM(y).$implicit,sr=n.oxw(3);return n.KtG(sr.removeVideo(Ft))}),n._UZ(3,"img",63),n.qZA()(),n._UZ(4,"iframe",65),n.qZA()}if(2&Pe){const y=rr.$implicit;n.xp6(4),n.Q6J("ngStyle",n.DdM(2,Cr))("src",y.sanitizedVideoUrl,n.uOi)}}function Ln(Pe,rr){if(1&Pe&&(n.TgZ(0,"div",59),n.YNc(1,lr,5,1,"div",60),n.YNc(2,Gr,5,3,"div",60),n.qZA()),2&Pe){const y=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",y.imgUrl),n.xp6(1),n.Q6J("ngForOf",y.embedVideoUrl)}}function Xn(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n._uU(1," Invalid YouTube Link "),n.qZA())}function ni(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div",66)(1,"mat-form-field",12)(2,"mat-label"),n.SDv(3,67),n.qZA(),n._UZ(4,"input",68,69),n.YNc(6,Xn,2,0,"mat-error",0),n.qZA(),n.TgZ(7,"button",70),n.NdJ("click",function(){n.CHM(y);const at=n.oxw(2);return n.KtG(at.saveVideo())}),n.SDv(8,71),n.qZA()()}if(2&Pe){const y=n.oxw(2);n.xp6(4),n.s9C("placeholder",y.connectedFundraiserYoutubeLink),n.xp6(2),n.Q6J("ngIf",y.connectFundraiserForm.controls.youtube_link.errors),n.xp6(1),n.Q6J("disabled",y.disableVideoSaveButton)}}function ta(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n.SDv(1,72),n.qZA())}function $a(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n.SDv(1,73),n.qZA())}const La=function(){return{color:"#66bb6a"}};function Ei(Pe,rr){1&Pe&&(n.TgZ(0,"mat-hint",74),n._uU(1," Url is good"),n.qZA()),2&Pe&&n.Q6J("ngStyle",n.DdM(1,La))}function ma(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n.SDv(1,75),n.qZA())}function bn(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,76),n.qZA(),n._uU(3),n.ALo(4,"number"),n.qZA()),2&Pe){const y=n.oxw(2);n.xp6(3),n.AsE("\xa0",y.currencySymbol,"",n.lcZ(4,2,y.maxTargetAmount)," ")}}function ha(Pe,rr){1&Pe&&n._UZ(0,"mat-spinner",77)}function po(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"h3",7),n.SDv(5,8),n.qZA(),n.TgZ(6,"label",9)(7,"span"),n.SDv(8,10),n.qZA(),n._uU(9),n.qZA()()(),n.TgZ(10,"div",5)(11,"div",11)(12,"mat-form-field",12)(13,"mat-label"),n.SDv(14,13),n.qZA(),n.TgZ(15,"input",14,15),n.NdJ("input",function(at){n.CHM(y);const Ft=n.oxw();return n.KtG(Ft.setSlug(at))}),n.qZA(),n.TgZ(17,"mat-hint",16),n._uU(18),n.TgZ(19,"span"),n.SDv(20,17),n.qZA()(),n.YNc(21,Er,2,0,"mat-error",0),n.YNc(22,Ot,2,0,"mat-error",0),n.qZA(),n.TgZ(23,"mat-form-field",12)(24,"mat-label"),n.SDv(25,18),n.qZA(),n._UZ(26,"textarea",19,20),n.TgZ(28,"mat-hint",16),n._uU(29),n.TgZ(30,"span"),n.SDv(31,21),n.qZA()()()()(),n.TgZ(32,"div",5)(33,"div",22)(34,"label",9)(35,"span"),n.SDv(36,23),n.qZA(),n._uU(37),n.qZA(),n.TgZ(38,"div",24)(39,"input",25,26),n.NdJ("change",function(at){n.CHM(y);const Ft=n.oxw();return n.KtG(Ft.onFileChange(at))}),n.qZA(),n.TgZ(41,"button",27),n.NdJ("click",function(){n.CHM(y);const at=n.MAs(40);return n.KtG(at.click())}),n._UZ(42,"img",28),n.qZA(),n.TgZ(43,"button",29),n.NdJ("click",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.switchIsVideo())}),n._UZ(44,"img",30),n.qZA()(),n.YNc(45,Ln,3,2,"div",31),n.YNc(46,ni,9,3,"div",32),n.qZA()(),n.TgZ(47,"div",5)(48,"div",11)(49,"label",9),n.SDv(50,33),n.qZA(),n.TgZ(51,"div",34)(52,"div",35)(53,"label",9),n._uU(54,"whydonate.com/fundraising/"),n.qZA()(),n.TgZ(55,"div",36)(56,"mat-form-field",12)(57,"mat-label"),n.SDv(58,37),n.qZA(),n.TgZ(59,"input",38,39),n.NdJ("input",function(at){n.CHM(y);const Ft=n.oxw();return n.KtG(Ft.setSlug(at))})("focus",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.onFocus())})("blur",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.onBlur())}),n.qZA(),n.TgZ(61,"mat-hint",16),n._uU(62),n.TgZ(63,"span"),n.SDv(64,40),n.qZA()(),n.YNc(65,ta,2,0,"mat-error",0),n.YNc(66,$a,2,0,"mat-error",0),n.YNc(67,Ei,2,2,"mat-hint",41),n.qZA()()(),n.TgZ(68,"div",42)(69,"label",43),n.SDv(70,44),n.qZA()()()(),n.TgZ(71,"div",5)(72,"div",11)(73,"label",9),n.SDv(74,45),n.qZA(),n.TgZ(75,"mat-form-field",46)(76,"mat-label"),n.SDv(77,47),n.qZA(),n.TgZ(78,"input",48),n.NdJ("input",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.connectFundraiserForm.controls.target_amount.markAsTouched())}),n.qZA(),n.TgZ(79,"div",49),n._uU(80),n.qZA(),n.YNc(81,ma,2,0,"mat-error",0),n.YNc(82,bn,5,4,"mat-error",0),n.qZA(),n.TgZ(83,"mat-form-field",12)(84,"mat-label"),n.SDv(85,50),n.qZA(),n.TgZ(86,"input",51),n.NdJ("focus",function(){n.CHM(y);const at=n.MAs(89);return n.KtG(at.open())})("click",function(){n.CHM(y);const at=n.MAs(89);return n.KtG(at.open())}),n.qZA(),n._UZ(87,"mat-datepicker-toggle",52)(88,"mat-datepicker",null,53),n.qZA()()(),n.TgZ(90,"div",54)(91,"button",55),n.NdJ("click",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.saveAndContinue())}),n.TgZ(92,"span"),n.SDv(93,56),n.qZA(),n.YNc(94,ha,1,0,"mat-spinner",57),n.qZA()()()()}if(2&Pe){const y=n.MAs(16),X=n.MAs(27),at=n.MAs(60),Ft=n.MAs(89),sr=n.oxw();n.xp6(9),n.hij(" ",sr.slug,""),n.xp6(6),n.s9C("placeholder",sr.ConnectedFundraiserTitle),n.xp6(3),n.hij("",y.value.length," / 5-75 "),n.xp6(3),n.Q6J("ngIf",sr.connectFundraiserForm.controls.title.errors&&(null==sr.connectFundraiserForm.controls.title.errors?null:sr.connectFundraiserForm.controls.title.errors.pattern)),n.xp6(1),n.Q6J("ngIf",sr.connectFundraiserForm.controls.title.errors&&(sr.connectFundraiserForm.controls.title.errors.minlength||sr.connectFundraiserForm.controls.title.errors.maxlength)),n.xp6(4),n.s9C("placeholder",sr.connectedFundraiserMotivation),n.xp6(3),n.hij("",X.value.length," / 150-15000 "),n.xp6(8),n.hij(" (",sr.mediaFiles.length,"/3)"),n.xp6(8),n.Q6J("ngIf",sr.imgUrl.length>0||sr.embedVideoUrl.length>0),n.xp6(1),n.Q6J("ngIf",sr.isVideo),n.xp6(13),n.s9C("placeholder",sr.connectedFundraiserLinkName),n.xp6(3),n.hij("",at.value.length," / 1-75 "),n.xp6(3),n.Q6J("ngIf",sr.connectFundraiserForm.controls.custom_url.errors&&sr.connectFundraiserForm.controls.custom_url.errors.pattern),n.xp6(1),n.Q6J("ngIf",sr.connectFundraiserForm.controls.custom_url.errors&&sr.connectFundraiserForm.controls.custom_url.errors.custom_url),n.xp6(1),n.Q6J("ngIf",!sr.connectFundraiserForm.controls.custom_url.errors),n.xp6(13),n.hij(" ",sr.currencySymbol," "),n.xp6(1),n.Q6J("ngIf",sr.connectFundraiserForm.controls.target_amount.errors&&sr.connectFundraiserForm.controls.target_amount.errors.pattern),n.xp6(1),n.Q6J("ngIf",sr.connectFundraiserForm.controls.target_amount.errors&&sr.connectFundraiserForm.controls.target_amount.errors.max),n.xp6(4),n.Q6J("matDatepicker",Ft)("min",sr.minEndDate),n.xp6(1),n.Q6J("for",Ft),n.xp6(4),n.Q6J("disabled",sr.connectFundraiserForm.invalid),n.xp6(3),n.Q6J("ngIf",!sr.isLoading)}}let Ia=(()=>{class Pe{constructor(y,X,at,Ft,sr,xr,en,Pr,On,ei,Ai,ae){this.router=y,this.notificationService=X,this.fundraiserService=at,this.datepipe=Ft,this.accountService=sr,this.sanitizer=xr,this.formBuilder=en,this._dashboardService=Pr,this.cdref=On,this.profileService=ei,this.analyticsService=Ai,this.charNormalizationService=ae,this.isLoading=!1,this.slug="",this.imageFiles=new Array,this.imgUrl=new Array,this.isVideo=!1,this.embedVideoUrl=new Array,this.mediaFiles=new Array,this.disableVideoSaveButton=!0,this.minEndDate=new Date,this.currencyCode="",this.currencySymbol="",this.currencyConversionFactor=1,this.maxTargetAmount=99,this.ConnectedFundraiserTitle="Naslov Prikupljanja Sredstava",this.connectedFundraiserMotivation="Motivacija Prikupljanje Sredstava",this.connectedFundraiserYoutubeLink="Youtube Poveznica",this.connectedFundraiserLinkName="Naziv Veze",this.isEditingSlug=!1,this.defineFormGroup()}defineFormGroup(){this.connectFundraiserForm=new l.nJ({title:new l.p4("",[l.kI.required,l.kI.minLength(5),l.kI.maxLength(75),l.kI.pattern(/^[\p{L}\p{N}\p{P}\p{S}\s\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FAC0}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}\u{2B05}\u{1F004}]*$/u)]),description:new l.p4("",[l.kI.required,l.kI.minLength(150),l.kI.maxLength(15e3)]),custom_url:new l.p4("",{validators:[l.kI.required,l.kI.minLength(1),l.kI.maxLength(75),l.kI.pattern("^[a-zA-Z0-9_\\s-]*$")]}),target_amount:new l.p4("",[l.kI.max(this.maxTargetAmount),l.kI.pattern("^[0-9]+$")]),end_date:new l.p4,youtube_link:new l.p4("",[])})}ngOnInit(){this.checkLoginStatus()}isSlugPresent(){const y=this.router.url.split("/"),X=y[y.length-1];return null!=X&&""!==X.trim()&&"null"!==X}checkLoginStatus(){this.accountService.getLoginInformation().subscribe(y=>{y?this.handleLoggedInUser():this.router.navigate(["account/register"])},y=>{console.error("Error checking login information:",y)})}handleLoggedInUser(){this.isSlugPresent()?(this.locale=this.accountService.getLocaleId(),this.fetchProfile(),this.extractSlug(),this.getParentFundraiser(),this.subscribeToCustomUrlChanges()):this.router.navigate(["search"])}fetchProfile(){this.accountService.checkHeaders()&&this.profileService.getProfile().subscribe(y=>{this.profileResponse=y?.data},y=>{console.error("Error fetching profile:",y)})}extractSlug(){this.slug=this.router.url.substring(21)}getParentFundraiser(){this.fundraiserService.getFundraiserBySlug(this.slug,this.locale).subscribe(y=>{"404"===y.status?this.notificationService.openNotification("Nismo mogli prona\u0107i ovaj prikuplja\u010D sredstava."+y.error.errors.message,"","error"):(this.parentFundraiser=y.data?.result,this.isLoading=!0,this.setCurrencyDetails(),this.updateTargetAmountValidators())},y=>{console.error("Error fetching parent fundraiser:",y)})}setCurrencyDetails(){this.currencyCode=this.parentFundraiser?.currency_code,this.currencySymbol=this.parentFundraiser?.currency_symbol,this.currencyConversionFactor=this.parentFundraiser?.custom_donation_configuration?.x_to_eur,this.maxTargetAmount=999999*this.currencyConversionFactor}updateTargetAmountValidators(){const y=[l.kI.pattern("^[0-9]+$"),l.kI.max(this.maxTargetAmount)];this.connectFundraiserForm.controls.target_amount.setValidators(y)}subscribeToCustomUrlChanges(){this.connectFundraiserForm.get("custom_url")?.valueChanges.pipe((0,ci.b)(600),(0,m.x)(),(0,Kt.h)(y=>/^[a-zA-Z0-9_\\s-]*$/.test(y)),(0,Ar.w)(y=>this.fundraiserService.isSlugUnique(y).pipe((0,ie.K)(()=>(0,Ve.of)(null))))).subscribe(y=>{y?.data?.slug_in_use?this.connectFundraiserForm.get("custom_url")?.setErrors({slugInUse:!0}):this.connectFundraiserForm.get("custom_url")?.setErrors(null)},y=>{console.error("Error checking slug uniqueness:",y)})}ngAfterContentChecked(){this.cdref.detectChanges()}setSlug(y){if(!this.isEditingSlug){const at=this.charNormalizationService.normalizeString(y.target.value),Ft=this.removeEmojis(at);this.connectFundraiserForm?.controls.custom_url.setValue(Ft.trim().toLowerCase()),["custom_url","title"].forEach(xr=>{this.connectFundraiserForm.controls[xr].markAsTouched()})}}dataURItoBlob(y){for(var X=atob(y.toString().split(",")[1]),at=new ArrayBuffer(X.length),Ft=new Uint8Array(at),sr=0;sr<X.length;sr++)Ft[sr]=X.charCodeAt(sr);return new Blob([Ft],{type:"image/jpeg"})}saveAndContinue(){var y=this;if(this.connectFundraiserForm.markAllAsTouched(),this.connectFundraiserForm.valid){this.isLoading=!1;let X=!1,at=this.connectFundraiserForm.get("target_amount")?.value;(null==at||null==at||at.length<=0||"0"==at)&&(X=!0,at="0");let Ft=this.datepipe.transform(this.connectFundraiserForm.get("end_date")?.value,"yyyy-MM-dd");(null==Ft||null==Ft)&&(Ft="9999-12-31");let xr,sr=null==this.parentFundraiser?.root_funraiser?this.parentFundraiser?.location?.location_name:this.parentFundraiser?.root_funraiser?.location?.location_name;xr={title:this.connectFundraiserForm.get("title")?.value,slug:this.connectFundraiserForm.get("custom_url")?.value,category_id:this.parentFundraiser?.category?.id,description:this.connectFundraiserForm.get("description")?.value,location_local:sr,language_code:this.parentFundraiser?.language_code,unlimited:X,appeal:`<p>${(this.connectFundraiserForm.get("description")?.value||"").trim()}</p>`,currency_code:this.currencyCode,end_date:Ft,show_donation_details:!0,allow_child:!0,tip_enabled:!0,is_draft:!0,created_on:(()=>{const en=window.location.origin;return en.includes("localhost")?"https://whydonate.in":en})(),parent_id:this.parentFundraiser?.id,amount_target:at},this.accountService.checkHeaders()&&this.fundraiserService.createConnectedFundraiser(xr).subscribe(function(){var en=(0,Dn.Z)(function*(Pr){if(y.mediaFiles.length>0){let On=new FormData;y.mediaFiles.forEach((ei,Ai)=>{1==ei.isImage&&On.append("image"+Ai,y.base64toBlob(y.imgUrl[Ai],y.imageFiles[Ai].type)),1==ei.isVideo&&On.append("video"+Ai,y.mediaFiles[Ai].videoUrl)}),On.append("slug",Pr.data.slug),On.append("text","appeal"),y.fundraiserService.uploadAppealImageList(On).subscribe(ei=>{y.notificationService.openNotification("Prikuplja\u010D sredstava povezan je uspje\u0161no.","close","success"),y.isLoading=!1,y.router.navigate(["/fundraising/"+y.connectFundraiserForm.get("custom_url")?.value])},ei=>{y.notificationService.openNotification("Slike nisu u\u010Ditane Molimo poku\u0161ajte ponovno.","close","success")})}y.notificationService.openNotification("Prikuplja\u010D sredstava povezan je uspje\u0161no.","","success"),y.analyticsService.fireAnalyticsEvent("Connected_Created",{profile_id:(yield y.accountService.getProfileId())||0,user_id:JSON.parse(localStorage.getItem("user")||"{}")?.id||0,fundraiser_id:Pr?.data?.id}),y.isLoading=!1,y.router.navigate(["/fundraising/"+y.connectFundraiserForm.get("custom_url")?.value])});return function(Pr){return en.apply(this,arguments)}}(),en=>{this.notificationService.openNotification("U unosu postoje gre\u0161ke, molimo provjerite ih.","close","error")})}else this.notificationService.openNotification("U unosu postoje gre\u0161ke, molimo provjerite ih.","close","error")}getBase64ImageFromUrl(y){var X=this;return(0,Dn.Z)(function*(){var at=yield fetch(y),Ft=yield at.blob();return new Promise((sr,xr)=>{var en=new FileReader;en.addEventListener("load",function(){sr(en.result)},!1),en.onerror=()=>xr(X),en.readAsDataURL(Ft)})})()}onFileChange(y){if(this.mediaFiles.length>2)this.notificationService.openNotification("Maksimalan broj slika je 3.","close","error");else{let X=y.target.files[0];X&&(X.size<5242880?"image/jpg"==X.type||"image/jpeg"==X.type||"image/png"==X.type||"image/webp"==X.type?(this.imageFiles.push(X),this.previewUploadedImage(X)):this.notificationService.openNotification("Mo\u017Eete koristiti samo png, jpg ili webp format.","OK","error"):this.notificationService.openNotification("Maksimalna veli\u010Dina slike je 5 MB.","OK","error"))}}previewUploadedImage(y){var X=new FileReader;X.readAsDataURL(y),X.onload=at=>{this.imgUrl.push(X.result),this.mediaFiles.push(new Ti(!0,!1,X.result,""))}}base64toBlob(y,X){try{const at=y.replace(/^data:image\/(png|jpg|jpeg|webp);base64,/,"");X=X||"";const Ft=1024,sr=atob(at),xr=sr.length,en=Math.ceil(xr/Ft),Pr=new Array(en);for(let ei=0;ei<en;++ei){const Ai=ei*Ft,ae=Math.min(Ai+Ft,xr),me=new Array(ae-Ai);for(let J=Ai,Oe=0;J<ae;++Oe,++J)me[Oe]=sr[J].charCodeAt(0);Pr[ei]=new Uint8Array(me)}return new Blob(Pr,{type:X})}catch{return""}}removeImage(y){let X=-1;this.mediaFiles.forEach((Ft,sr)=>{Ft.imageUrl==y&&(X=sr)}),X>-1&&this.mediaFiles.splice(X,1);const at=this.imgUrl.indexOf(y,0);at>-1&&this.imgUrl.splice(at,1)}switchIsVideo(){this.isVideo=!this.isVideo,this.isVideo?this.connectFundraiserForm.controls.youtube_link.addAsyncValidators(this.isYouTubeUrl()):this.connectFundraiserForm.controls.youtube_link.removeAsyncValidators(this.isYouTubeUrl())}isYouTubeUrl(){return y=>new Promise((at,Ft)=>{y.value.match("^(https?://)?((www.)?youtube.com|youtu.be)/.+$")?(this.disableVideoSaveButton=!1,at(null)):(this.disableVideoSaveButton=!0,at({invalid:"true"}))})}saveVideo(){if(this.mediaFiles.length<3)if(this.connectFundraiserForm.get("youtube_link")?.valid){const at=/shorts/gi;var y=this.connectFundraiserForm.get("youtube_link")?.value,X=y.replace(at,"embed");this.connectFundraiserForm.get("youtube_link")?.setValue(X);let Ft=this.connectFundraiserForm.get("youtube_link")?.value,sr="https://www.youtube.com/embed/"+this.getYouTubeEmbedUrl(Ft),xr=this.sanitizer.bypassSecurityTrustResourceUrl(sr);this.embedVideoUrl.push(new Ni(xr,Ft)),this.mediaFiles.push(new Ti(!1,!0,"",Ft)),this.connectFundraiserForm.controls.youtube_link.clearAsyncValidators(),this.connectFundraiserForm.get("youtube_link")?.setValue(""),this.isVideo=!this.isVideo}else this.notificationService.openNotification("YouTube poveznica nije valjana.","close","error");else this.notificationService.openNotification("Maksimalan broj slika je 3.","Close","error")}getYouTubeEmbedUrl(y){var at=y.match(/^.*(?:(?:youtu\.be\/|v\/|vi\/|u\/\w\/|embed\/|shorts\/)|(?:(?:watch)?\?v(?:i)?=|\&v(?:i)?=))([^#\&\?]*).*/);return at&&11==at[1].length?at[1]:""}removeVideo(y){let X=-1;this.mediaFiles.forEach((Ft,sr)=>{Ft.videoUrl==y.youtubeUrl&&(X=sr)}),X>-1&&this.mediaFiles.splice(X,1);const at=this.embedVideoUrl.indexOf(y,0);at>-1&&this.embedVideoUrl.splice(at,1)}removeEmojis(y){let X=y.replace(/\s+/g,"ANTRIKSHY");return X=X.replace(/[\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\p{S}\p{P}\p{Z}\p{C}]/gu,""),X=X.replace(/ANTRIKSHY/g,"-"),X=X.replace(/-+/g,"-"),X}onFocus(){this.isEditingSlug=!0}onBlur(){this.isEditingSlug=!1}}return Pe.\u0275fac=function(y){return new(y||Pe)(n.Y36(e.F0),n.Y36(I.g),n.Y36(P.R),n.Y36(t.uU),n.Y36(q.B),n.Y36(Mt.H7),n.Y36(l.QS),n.Y36(tr.s),n.Y36(n.sBO),n.Y36(kr.H),n.Y36(mn.y),n.Y36(un))},Pe.\u0275cmp=n.Xpm({type:Pe,selectors:[["app-connect-fundraiser"]],decls:3,vars:3,consts:function(){let rr,y,X,at,Ft,sr,xr,en,Pr,On,ei,Ai,ae,me,J,Oe,Ke,xt,Zt,gr,zr,nn;return rr="Pove\u017Ei Sakuplja\u010D Sredstava",y="na",X="Naslov",at="Znaci",Ft="Motivacija",sr="Znaci",xr="Slike i videozapisi",en="Poveznica (ne mo\u017Eete je kasnije promijeniti)",Pr="Unesi poveznica",On="Znaci",ei="Odaberite kratku i lako zapamtljivu poveznicu sa maksimalno 90 znakova.",Ai="Optionalne Postavke",ae="Ciljni Iznos",me="Krajnji Datum",J="Spremi",Oe="Mora biti izme\u0111u 5 i 75 znakova.",Ke="YouTube poveznica",xt="Spremi",Zt="Neva\u017Ee\u0107a poveznica, koristite samo slova i brojeve.",gr="Ovaj link je ve\u0107 zauzet.",zr="Iznos ne mo\u017Ee sadr\u017Eavati decimalne brojeve.",nn="Najve\u0107i iznos je",[[4,"ngIf"],[3,"formGroup"],["ngClass","p-xxl","ngClass.sm","p-m","ngClass.xs","p-s","fxFlex","100%","fxLayout","row","fxLayoutAlign","center start","fxLayoutGap","5%",4,"ngIf"],["ngClass","p-xxl","ngClass.sm","p-m","ngClass.xs","p-s","fxFlex","100%","fxLayout","row","fxLayoutAlign","center start","fxLayoutGap","5%"],["fxFlex","50%","fxFlex.sm","65%","fxFlex.xs","90%","fxLayout","column","fxLayoutAlign","start center","fxLayoutGap","5%"],["fxFill","","fxLayout","row","fxLayoutAlign","center center"],["fxFill","","fxLayout","column","fxLayoutAlign","center center"],[1,"mat-h3"],rr,[1,"mat-body-2"],y,["fxFill","","fxLayout","column","fxLayoutAlign","center start"],["appearance","outline",1,"w-100"],X,["required","","matInput","","id","ConnectedFundraiserTitle","formControlName","title",3,"placeholder","input"],["title",""],["align","end"],at,Ft,["required","","matInput","","id","ConnectedFundraiserDescription","cdkTextareaAutosize","","cdkAutosizeMinRows","5","cdkAutosizeMaxRows","8","formControlName","description",3,"placeholder"],["description",""],sr,["fxFill","","fxLayout","column","fxLayoutAlign","center start","fxLayoutGap","2%"],xr,["fxFlex","100%","fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","5%",1,"whydonate-light"],["fxHide","true","type","file","id","ConnectedFundraiserImage","accept","image/png, image/jpeg, image/jpg, image/webp, .heic",1,"file-upload",3,"change"],["imageFileInput",""],["mat-fab","","color","primary",1,"mat-elevation-z0",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/addPhoto/public"],["mat-fab","","id","ConnectedFundraiserYouTubeButton","color","primary",1,"mat-elevation-z0",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/videoCall/public"],["fxFlex","100%","fxLayout","row","fxLayout.sm","row wrap","fxLayout.xs","row wrap","fxLayoutAlign","start center","fxLayoutGap","5%",4,"ngIf"],["fxFill","","fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","5%",4,"ngIf"],en,["fxFill","","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","start center","fxLayoutAlign.xs","start stretch","fxLayoutGap","2%"],["fxLayout","column","fxLayout.xs","row","fxFlex.xs","100%","fxLayoutAlign","start center","fxLayoutGap","2%"],["fxLayout","column","fxLayout.xs","row","fxFlex","100%","fxLayoutAlign","center start","fxLayoutGap","2%"],Pr,["required","","matInput","","formControlName","custom_url",3,"placeholder","input","focus","blur"],["customUrl",""],On,[3,"ngStyle",4,"ngIf"],["fxFill","","fxLayout","row","fxLayoutAlign","start center"],[1,"mat-caption"],ei,Ai,["appearance","outline","floatLabel","always",1,"w-100"],ae,["matInput","","type","number","formControlName","target_amount","placeholder","00",1,"right-align",3,"input"],["matPrefix","",1,"currency-input-field"],me,["matInput","","formControlName","end_date","onkeydown","return false",3,"matDatepicker","min","focus","click"],["matSuffix","",3,"for"],["picker",""],["fxFill","","fxLayout","row","fxLayoutAlign","end center"],["mat-flat-button","","color","accent","id","SaveButtonConnectFundraiserForm",3,"disabled","click"],J,["color","primary","diameter","20",4,"ngIf"],Oe,["fxFlex","100%","fxLayout","row","fxLayout.sm","row wrap","fxLayout.xs","row wrap","fxLayoutAlign","start center","fxLayoutGap","5%"],["fxLayout","column",4,"ngFor","ngForOf"],["fxLayout","column"],["fxFlexOffset","80px","mat-icon-button","",3,"click"],["height","13px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/close/public"],["fxFlexOffset","-15px","mat-card-sm-image","",1,"image-thumbnail",3,"src"],["frameborder","0","fxFlexOffset","-15px",3,"ngStyle","src"],["fxFill","","fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","5%"],Ke,["matInput","","id","ConnectedFundraiserYouTubeLink","formControlName","youtube_link",3,"placeholder"],["youtube_link",""],["mat-flat-button","","color","primary","id","ConnectedFundraiserYouTubeSaveButton",3,"disabled","click"],xt,Zt,gr,[3,"ngStyle"],zr,nn,["color","primary","diameter","20"]]},template:function(y,X){1&y&&(n.YNc(0,Sr,1,0,"app-page-loader",0),n.TgZ(1,"form",1),n.YNc(2,po,95,23,"div",2),n.qZA()),2&y&&(n.Q6J("ngIf",!X.isLoading),n.xp6(1),n.Q6J("formGroup",X.connectFundraiserForm),n.xp6(1),n.Q6J("ngIf",X.isLoading))},dependencies:[l._Y,l.Fj,l.wV,l.JJ,l.JL,l.Q7,l.sg,l.u,t.mk,t.sg,t.O5,t.PC,he.Mq,he.hl,he.nW,T.nI,T.v_,T.pH,T.$V,T.g4,T.nX,ri.IC,F.k0,de.ou,Le.eB,ue.sN,ee.xw,ee.SQ,ee.Wh,ee.UT,ee.s9,ee.yH,se.b8,se.oO,se.Zl,Z.f,t.JJ],styles:[".image-preview[_ngcontent-%COMP%]{height:100px;object-fit:fill}iframe[_ngcontent-%COMP%]{height:100px}"]}),Pe})();const Oa=function(){return["/"]};let cn=(()=>{class Pe{ngAfterViewInit(){}ngOnInit(){}}return Pe.\u0275fac=function(y){return new(y||Pe)},Pe.\u0275cmp=n.Xpm({type:Pe,selectors:[["fundraiser-not-found-handler"]],decls:17,vars:2,consts:function(){let rr,y,X,at;return rr="Ispri\u010Davam se!",y="Zahtijevano prikupljanje sredstava ne postoji",X="Provjerite URL adresu na tipografske pogre\u0161ke Samo jedno krivo napisano slovo mo\u017Ee rezultirati gre\u0161kom 404.",at="Natrag Na Po\u010Detnu Stranicu",[["fxLayout","column","fxFlex","100","fxLayoutAlign","center center"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start center"],["width","310px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/404NotFound/public","id","pageFundraiserNotFoundImg"],[1,"primary-text"],rr,y,X,["mat-flat-button","","color","accent","id","pageFundraiserNotFoundBackToSearch",3,"routerLink"],at]},template:function(y,X){1&y&&(n.TgZ(0,"div",0)(1,"div",1),n._UZ(2,"br")(3,"img",2)(4,"br")(5,"br")(6,"br")(7,"br"),n.TgZ(8,"div",3),n.tHW(9,4),n._UZ(10,"h1"),n.N_p(),n.qZA(),n.TgZ(11,"h1"),n.SDv(12,5),n.qZA(),n.TgZ(13,"h5"),n.SDv(14,6),n.qZA(),n.TgZ(15,"button",7),n.SDv(16,8),n.qZA()()()),2&y&&(n.xp6(15),n.Q6J("routerLink",n.DdM(1,Oa)))},dependencies:[e.rH,Le.eB,ee.xw,ee.Wh,ee.yH],encapsulation:2}),Pe})();const Yi=["class","html"],wi=function(){return["/search"]};let Wi=(()=>{class Pe{ngAfterViewInit(){}ngOnInit(){}}return Pe.\u0275fac=function(y){return new(y||Pe)},Pe.\u0275cmp=n.Xpm({type:Pe,selectors:[["fundraiser-is-draft",8,"html"]],attrs:Yi,decls:15,vars:2,consts:function(){let rr,y,X,at;return rr="Bok!",y="Prikuplja\u010D sredstava jo\u0161 nije objavljen",X="Vlasnik prikupljanja sredstava jo\u0161 nije objavio ovaj prikuplja\u010D sredstava Kontaktirajte vlasnika prikupljanja sredstava da objavi stranicu.",at="Pretra\u017Ei Drugi Prikuplja\u010D",[["fxLayout","column"],["fxFlex","100%","fxFlexOffset","6","fxLayout","row","fxLayoutAlign","space-evenly center","fxLayout.xs","column"],["fxFlex","100%","fxFlexOffset","6","fxLayout","column","fxLayoutAlign","center stretch"],[1,"primary-text"],rr,y,X,["fxLayoutAlign","stretch"],["mat-flat-button","","color","accent","id","pageFundraiserDraft_backToSearchPage",3,"routerLink"],at,["fxFlex","66","fxLayout","row","fxFlexOffset","15","fxLayoutAlign","center center"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/unpublished/public","id","fundraiserIsDraft"]]},template:function(y,X){1&y&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.tHW(4,4),n._UZ(5,"h1"),n.N_p(),n.qZA(),n.TgZ(6,"h1"),n.SDv(7,5),n.qZA(),n.TgZ(8,"h5"),n.SDv(9,6),n.qZA(),n.TgZ(10,"div",7)(11,"button",8),n.SDv(12,9),n.qZA()()(),n.TgZ(13,"div",10),n._UZ(14,"img",11),n.qZA()()()),2&y&&(n.xp6(11),n.Q6J("routerLink",n.DdM(1,wi)))},dependencies:[e.rH,Le.eB,ee.xw,ee.Wh,ee.UT,ee.yH],encapsulation:2}),Pe})();var ra=s(87580),ji=s(86443),sa=s(34021),Ui=s(42456),na=s(45720),fa=s(61551);let Co=(()=>{class Pe{constructor(y,X,at){this.data=y,this.dialogRef=X,this.notificationService=at,this.valueSelected=new n.vpe,this.imageChangedEvent="",this.croppedImage="",this.fileUploaded=!1}ngOnInit(){this.imagePath=this.data?.imagePath}fileChangeEvent(y){if(y?.target?.files&&y.target.files.length>0){const X=y.target.files[0];X.size<5242880&&["image/jpg","image/jpeg","image/png","image/webp"].includes(X.type)?(this.imageChangedEvent=y,this.fileUploaded=!0):this.notificationService.openNotification("Mo\u017Eete koristiti samo png, jpg ili webp format.","OK","error")}}imageCropped(y){this.croppedImage=y.base64}imageLoaded(){}cropperReady(){}loadImageFailed(){}onCancelClick(){this.dialogRef.close()}dialogClose(){this.valueSelected.emit(this.croppedImage),this.dialogRef.close()}}return Pe.\u0275fac=function(y){return new(y||Pe)(n.Y36(na.WI),n.Y36(na.so),n.Y36(I.g))},Pe.\u0275cmp=n.Xpm({type:Pe,selectors:[["app-add-background-dialog"]],outputs:{valueSelected:"valueSelected"},decls:20,vars:7,consts:function(){let rr,y,X,at;return rr="Pozadinska Slika",y="Odaberite Sliku",X="Odbaci",at="Spremi",[["ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["mat-dialog-title",""],rr,["fxLayout","column",1,"mat-typography"],["type","file","id","fileimageFile","fxHide","",1,"imageFile",3,"change"],["fileUpload",""],["ngClass","p-b-l "],["mat-stroked-button","","color","accent",3,"click"],y,["fxLayout","column","fxFill",""],["fxFlex","100%","format","png",1,"image-cropper",3,"containWithinAspectRatio","imageChangedEvent","maintainAspectRatio","aspectRatio","onlyScaleDown","imageURL","imageCropped","imageLoaded","cropperReady","loadImageFailed"],["ngClass","p-r-s"],["align","end"],["mat-button","","color","accent","id","discard_image_create_fundraiser",3,"click"],X,["mat-flat-button","","color","accent","id","save_image_create_fundraiser",1,"saveImage",3,"disabled","click"],at]},template:function(y,X){if(1&y){const at=n.EpF();n.TgZ(0,"div",0)(1,"button",1),n.NdJ("click",function(){return X.onCancelClick()}),n._UZ(2,"img",2),n.qZA()(),n.TgZ(3,"h2",3),n.SDv(4,4),n.qZA(),n.TgZ(5,"mat-dialog-content",5)(6,"input",6,7),n.NdJ("change",function(sr){return X.fileChangeEvent(sr)}),n.qZA(),n.TgZ(8,"div",8)(9,"a",9),n.NdJ("click",function(){n.CHM(at);const sr=n.MAs(7);return n.KtG(sr.click())}),n.TgZ(10,"span"),n.SDv(11,10),n.qZA()()(),n.TgZ(12,"div",11)(13,"image-cropper",12),n.NdJ("imageCropped",function(sr){return X.imageCropped(sr)})("imageLoaded",function(){return X.imageLoaded()})("cropperReady",function(){return X.cropperReady()})("loadImageFailed",function(){return X.loadImageFailed()}),n.qZA()()(),n.TgZ(14,"div",13)(15,"mat-dialog-actions",14)(16,"button",15),n.NdJ("click",function(){return X.onCancelClick()}),n.SDv(17,16),n.qZA(),n.TgZ(18,"button",17),n.NdJ("click",function(){return X.dialogClose()}),n.SDv(19,18),n.qZA()()()}2&y&&(n.xp6(13),n.Q6J("containWithinAspectRatio",!0)("imageChangedEvent",X.imageChangedEvent)("maintainAspectRatio",!0)("aspectRatio",2)("onlyScaleDown",!0)("imageURL",X.data.imagePath),n.xp6(5),n.Q6J("disabled",!X.croppedImage))},dependencies:[t.mk,Le.eB,Le.Nr,na.uh,na.xY,na.H8,ee.xw,ee.s9,ee.yH,se.b8,se.oO,fa.ap]}),Pe})();var Fa=s(18836),la=s(75999);function ho(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div",14)(1,"div",15),n._UZ(2,"input",16)(3,"img",17),n.TgZ(4,"button",18),n.NdJ("click",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.openImageCropperDialog())}),n.SDv(5,19),n.qZA()()()}}const $i=function(){return{width:"66px",height:"66px"}};function bo(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div",20)(1,"div",21),n._UZ(2,"input",16),n.TgZ(3,"button",22),n.NdJ("click",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.openImageCropperDialog())}),n._UZ(4,"img",23),n.qZA()()()}2&Pe&&(n.xp6(3),n.Q6J("ngStyle",n.DdM(1,$i)))}function Ga(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div",14)(1,"div",15),n._UZ(2,"img",24),n.TgZ(3,"button",25),n.NdJ("click",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.openVideoDialog())}),n.SDv(4,26),n.qZA()()()}}function mi(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div",20)(1,"div",21)(2,"button",27),n.NdJ("click",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.openVideoDialog())}),n._UZ(3,"img",28),n.qZA()()()}2&Pe&&(n.xp6(2),n.Q6J("ngStyle",n.DdM(1,$i)))}let Ct=(()=>{class Pe{constructor(y,X,at,Ft){this.dialogRef=y,this.data=X,this.dialog=at,this.breakpointObserver=Ft,this.valueSelected=new n.vpe,this.isMobileView=!1,this.videoPath=X.videoPath,this.imagePath=X.imagePath}ngOnInit(){this.breakpointObserver.observe([la.u3.HandsetPortrait,la.u3.HandsetLandscape]).subscribe(y=>{this.isMobileView=y.matches})}openImageCropperDialog(){const y=document.getElementById("change_upload_image_input");y.addEventListener("change",X=>{const at=X.target;if(at.files&&at.files.length>0){const sr=URL.createObjectURL(at.files[0]),xr=this.dialog.open(Co,{data:{imagePath:sr,autoFocus:!1},disableClose:!0});xr.componentInstance.fileUploaded=!1,xr.componentInstance.dialogRef.beforeClosed().subscribe(()=>{xr.componentInstance.fileUploaded=!0,xr.componentInstance.dialogRef.updateSize("auto","auto")}),xr.componentInstance.valueSelected.subscribe(en=>{en&&(this.imagePath=en,this.valueSelected.emit(en),this.dialogRef.close())})}}),y.click()}openVideoDialog(){this.dialog.open(Fa.s,{data:{videoPath:this.videoPath,autoFocus:!1},width:"500px"}).afterClosed().subscribe(X=>{X&&(this.videoPath=X,this.valueSelected.emit(X),this.dialogRef.close())})}}return Pe.\u0275fac=function(y){return new(y||Pe)(n.Y36(na.so),n.Y36(na.WI),n.Y36(na.uw),n.Y36(la.Yg))},Pe.\u0275cmp=n.Xpm({type:Pe,selectors:[["app-upload-image-video-pop-up"]],outputs:{valueSelected:"valueSelected"},decls:18,vars:5,consts:function(){let rr,y,X,at,Ft;return rr="Prenesi Naslovnu Sliku/Video",y="Slika mora biti JPG, PNG ili WebP, imati maksimalnu veli\u010Dinu od 5 Mb, a preporu\u010Duje se minimalna \u0161irina od 1600px Za videozapise podr\u017Eani su Vimeo i YouTube poveznice.",X="ili",at="Uredi Sliku",Ft="Uredi Video",[["ngClass","p-t-l p-r-l"],["mat-icon-button","",1,"close-button",3,"mat-dialog-close"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["fxLayout","column","fxLayoutAlign","center center","ngClass","m-t-xs p-l-xl"],["fxLayout","row","ngClass","p-l-l",1,"m-b-xs"],[1,"mat-title"],rr,["fxLayout","row","ngClass","p-l-l",1,"center"],y,["fxLayout","row","fxLayoutAlign","space-between center","ngClass","m-m",1,"m-t-xs"],["fxFlex","calc(50% - 10px)","class","grey-bg p-xl","fxLayoutAlign","center center",4,"ngIf"],["fxFlex","calc(50% - 10px)","fxLayoutAlign","center center",4,"ngIf"],["fxFlex","20px"],X,["fxFlex","calc(50% - 10px)","fxLayoutAlign","center center",1,"grey-bg","p-xl"],["fxLayout","column","fxLayoutAlign","start center"],["fxHide","","type","file","id","change_upload_image_input"],["height","50","width","50","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/addPhoto/public",1,"m-b-m"],["id","change_image_create_fundraiser","mat-stroked-button","","color","accent",3,"click"],at,["fxFlex","calc(50% - 10px)","fxLayoutAlign","center center"],["fxFlex","100%","fxLayout","column","fxLayoutAlign","start center",1,"whydonate-light"],["mat-fab","","color","primary","id","change_image_create_fundraiser_mobile",1,"mat-elevation-z0",3,"ngStyle","click"],["height","33","width","33","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/addPhoto/public",1,"m-b-m"],["height","50","width","50","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/videoCall/public",1,"m-b-m"],["id","change_video_create_fundraiser","mat-stroked-button","","color","accent",3,"click"],Ft,["mat-fab","","id","change_video_create_fundraise_mobile","color","primary",1,"mat-elevation-z0",3,"ngStyle","click"],["height","33","width","33","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/videoCall/public",1,"m-b-m"]]},template:function(y,X){1&y&&(n.TgZ(0,"div",0)(1,"button",1),n._UZ(2,"img",2),n.qZA()(),n.TgZ(3,"div")(4,"div",3)(5,"div",4)(6,"mat-label",5),n.SDv(7,6),n.qZA()(),n.TgZ(8,"div",7),n.SDv(9,8),n.qZA()(),n.TgZ(10,"div",9),n.YNc(11,ho,6,0,"div",10),n.YNc(12,bo,5,2,"div",11),n._uU(13," \xa0 "),n.TgZ(14,"span",12),n.SDv(15,13),n.qZA(),n.YNc(16,Ga,5,0,"div",10),n.YNc(17,mi,4,2,"div",11),n.qZA()()),2&y&&(n.xp6(1),n.Q6J("mat-dialog-close",!1),n.xp6(10),n.Q6J("ngIf",!X.isMobileView),n.xp6(1),n.Q6J("ngIf",X.isMobileView),n.xp6(4),n.Q6J("ngIf",!X.isMobileView),n.xp6(1),n.Q6J("ngIf",X.isMobileView))},dependencies:[t.mk,t.O5,t.PC,T.$V,Le.eB,na.ZT,ee.xw,ee.Wh,ee.yH,se.b8,se.oO,se.Zl]}),Pe})();var Dt=s(68212),ve=s(26314),Rt=s(13710),Dr=s(26191),kn=s(80398),wn=s(4473),Jn=s(9989),yn=s(84238);function Mn(Pe,rr){1&Pe&&n._UZ(0,"app-page-loader")}function $n(Pe,rr){1&Pe&&(n.TgZ(0,"span"),n.SDv(1,110),n.qZA())}function ia(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-option",111),n._uU(1),n.qZA()),2&Pe){const y=rr.$implicit;n.Q6J("value",y.beneficiary_code),n.xp6(1),n.hij(" ",y.beneficiaryName," ")}}function Ua(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n.SDv(1,119),n.qZA())}function qa(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n.SDv(1,120),n.qZA())}function ro(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div",112)(1,"label"),n.SDv(2,113),n.qZA(),n.TgZ(3,"mat-form-field",114)(4,"mat-label"),n.SDv(5,115),n.qZA(),n.TgZ(6,"input",116,117),n.NdJ("input",function(){n.CHM(y);const at=n.oxw(3);return n.KtG(at.createFundraiserForm.controls.name.markAsTouched())}),n.qZA(),n.TgZ(8,"mat-hint",34),n._uU(9),n.TgZ(10,"span"),n.SDv(11,118),n.qZA()(),n.YNc(12,Ua,2,0,"mat-error",0),n.YNc(13,qa,2,0,"mat-error",0),n.qZA()()}if(2&Pe){const y=n.MAs(7),X=n.oxw(3);n.xp6(9),n.hij("",y.value.length," / 1-75 "),n.xp6(3),n.Q6J("ngIf",null==X.createFundraiserForm.controls.name||null==X.createFundraiserForm.controls.name.errors?null:X.createFundraiserForm.controls.name.errors.maxlength),n.xp6(1),n.Q6J("ngIf",(null==X.createFundraiserForm.controls.name?null:X.createFundraiserForm.controls.name.errors)&&(null==X.createFundraiserForm.controls.name||null==X.createFundraiserForm.controls.name.errors?null:X.createFundraiserForm.controls.name.errors.pattern))}}function Na(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-option",111),n._UZ(1,"img",121),n._uU(2),n.qZA()),2&Pe){const y=rr.$implicit;n.Q6J("value",y.language_code),n.xp6(1),n.s9C("src",y.languageIcon,n.LSH),n.xp6(1),n.hij(" ",y.languageName," ")}}function ga(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n.SDv(1,122),n.qZA())}function Ka(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n.SDv(1,123),n.qZA())}function Mi(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-option",111),n._uU(1),n.qZA()),2&Pe){const y=rr.$implicit;n.Q6J("value",y.id),n.xp6(1),n.hij(" ",y.name," ")}}function Bi(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-option",111),n._uU(1),n.qZA()),2&Pe){const y=rr.$implicit;n.Q6J("value",y.description),n.xp6(1),n.hij(" ",y.description," ")}}function Xi(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n._uU(1,"Invalid Location"),n.qZA())}function Aa(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n.SDv(1,124),n.qZA())}function wa(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n.SDv(1,125),n.qZA())}const Eo=function(){return{color:"#66bb6a"}};function To(Pe,rr){1&Pe&&(n.TgZ(0,"mat-hint",126),n._uU(1,"Url is good"),n.qZA()),2&Pe&&n.Q6J("ngStyle",n.DdM(1,Eo))}function Pi(Pe,rr){1&Pe&&n.SDv(0,127)}function Ji(Pe,rr){if(1&Pe&&n._UZ(0,"img",132),2&Pe){const y=n.oxw(5);n.Q6J("src",y.imagePath,n.LSH)}}function Va(Pe,rr){if(1&Pe&&(n.TgZ(0,"div"),n.YNc(1,Ji,1,1,"img",131),n.qZA()),2&Pe){const y=n.oxw(4);n.xp6(1),n.Q6J("ngIf",y.imagePath)}}const Qi=function(){return{width:"66px",height:"66px"}};function Ri(Pe,rr){1&Pe&&(n.TgZ(0,"div",133),n._UZ(1,"input",134),n.TgZ(2,"button",135),n._UZ(3,"img",136),n.qZA()()),2&Pe&&(n.xp6(2),n.Q6J("ngStyle",n.DdM(1,Qi)))}function xo(Pe,rr){1&Pe&&n._UZ(0,"div",140)}function so(Pe,rr){1&Pe&&(n.TgZ(0,"div",141)(1,"div",142)(2,"div",6)(3,"div",7),n._UZ(4,"img",143)(5,"input",134),n.TgZ(6,"button",144),n.SDv(7,145),n.qZA()()()()())}function Ra(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-card",137),n.YNc(1,xo,1,0,"div",138),n.YNc(2,so,8,0,"div",139),n.qZA()),2&Pe){const y=n.oxw(4);n.xp6(1),n.Q6J("ngIf",y.imagePath),n.xp6(1),n.Q6J("ngIf",!y.imagePath)}}const hs=function(Pe){return{flex:Pe}};function Lo(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div",128),n.NdJ("click",function(){n.CHM(y);const at=n.oxw(3);return n.KtG(at.openImageCropperDialog())}),n.TgZ(1,"div",7),n.YNc(2,Va,2,1,"div",0),n.YNc(3,Ri,4,2,"div",129),n.YNc(4,Ra,3,2,"mat-card",130),n.qZA()()}if(2&Pe){const y=n.oxw(3);n.Q6J("ngStyle",n.VKq(4,hs,y.imagePath?"1 1 auto":"none")),n.xp6(2),n.Q6J("ngIf",y.imagePath),n.xp6(1),n.Q6J("ngIf",!y.imagePath&&y.isMobileView),n.xp6(1),n.Q6J("ngIf",!y.imagePath&&!y.isMobileView)}}function Mo(Pe,rr){1&Pe&&(n.TgZ(0,"div",146)(1,"span"),n.SDv(2,147),n.qZA()())}function eo(Pe,rr){if(1&Pe&&n._UZ(0,"div",153),2&Pe){const y=n.oxw(5);n.Q6J("innerHTML",y.youtubeIframe,n.oJD)}}function Bo(Pe,rr){if(1&Pe&&(n.TgZ(0,"div",151),n.YNc(1,eo,1,1,"div",152),n.qZA()),2&Pe){const y=n.oxw(4);n.xp6(1),n.Q6J("ngIf",y.videoPath)}}function Oo(Pe,rr){1&Pe&&(n.TgZ(0,"div",133)(1,"button",154),n._UZ(2,"img",155),n.qZA()()),2&Pe&&(n.xp6(1),n.Q6J("ngStyle",n.DdM(1,Qi)))}function Qn(Pe,rr){1&Pe&&(n.TgZ(0,"div",157),n._UZ(1,"img",158),n.TgZ(2,"button",159),n.SDv(3,160),n.qZA()())}function vo(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-card",137)(1,"div",141)(2,"div",142)(3,"div",6),n.YNc(4,Qn,4,0,"div",156),n.qZA()()()()),2&Pe){const y=n.oxw(4);n.xp6(4),n.Q6J("ngIf",!y.videoPath)}}function rt(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div",148),n.NdJ("click",function(){n.CHM(y);const at=n.oxw(3);return n.KtG(at.openVideoDialog())}),n.TgZ(1,"div",149),n.YNc(2,Bo,2,1,"div",150),n.YNc(3,Oo,3,2,"div",129),n.YNc(4,vo,5,1,"mat-card",130),n.qZA()()}if(2&Pe){const y=n.oxw(3);n.Q6J("ngStyle",n.VKq(4,hs,y.videoPath?"1 1 auto":"none")),n.xp6(2),n.Q6J("ngIf",y.videoPath&&y.youtubeIframe),n.xp6(1),n.Q6J("ngIf",!y.videoPath&&y.isMobileView),n.xp6(1),n.Q6J("ngIf",!y.videoPath&&!y.isMobileView)}}function je(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"a",161),n.NdJ("click",function(){n.CHM(y);const at=n.oxw(3);return n.KtG(at.openimagepopup())}),n.SDv(1,162),n.qZA()}}function Ue(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"a",163),n.NdJ("click",function(){n.CHM(y);const at=n.oxw(3);return n.KtG(at.openvideopopup())}),n.SDv(1,164),n.qZA()}}function Yt(Pe,rr){1&Pe&&(n.TgZ(0,"button",165),n.SDv(1,166),n.qZA())}function Yr(Pe,rr){1&Pe&&n.SDv(0,167)}function Un(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"mat-option",168),n.NdJ("onSelectionChange",function(){const Ft=n.CHM(y).$implicit,sr=n.oxw(3);return n.KtG(sr.onCurrencySelect(Ft))}),n.TgZ(1,"span"),n._uU(2),n.qZA(),n._uU(3,"\xa0 "),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"uppercase"),n.qZA()()}if(2&Pe){const y=rr.$implicit;n.Q6J("value",y.currency),n.xp6(2),n.Oqu(y.symbol),n.xp6(3),n.Oqu(n.lcZ(6,3,y.currency))}}function pa(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n.SDv(1,169),n.qZA())}function Wr(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error")(1,"span"),n.SDv(2,170),n.qZA(),n._uU(3),n.ALo(4,"number"),n.qZA()),2&Pe){const y=n.oxw(3);n.xp6(3),n.AsE("\xa0",y.selectedSymbol,"",n.lcZ(4,2,y.maxTargetAmount)," ")}}function ii(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n._uU(1,"Wrong Date format."),n.qZA())}function xi(Pe,rr){1&Pe&&n.SDv(0,171)}function Jo(Pe,rr){1&Pe&&n._UZ(0,"mat-spinner",172)}function Wa(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"h3",8),n.SDv(5,9),n.qZA()()(),n.TgZ(6,"mat-card",10)(7,"mat-stepper",11)(8,"mat-step",12),n.YNc(9,$n,2,0,"ng-template",13),n.TgZ(10,"div",6)(11,"div",14)(12,"mat-card-title",15),n.SDv(13,16),n.qZA(),n.TgZ(14,"label"),n.SDv(15,17),n.qZA(),n.TgZ(16,"mat-form-field",18)(17,"mat-label"),n.SDv(18,19),n.qZA(),n.TgZ(19,"mat-select",20),n.YNc(20,ia,2,2,"mat-option",21),n.qZA()(),n.YNc(21,ro,14,3,"div",22),n.TgZ(22,"label",15),n.SDv(23,23),n.qZA(),n.TgZ(24,"div",24)(25,"label",25),n.SDv(26,26),n.qZA()(),n.TgZ(27,"mat-form-field",18)(28,"mat-label"),n.SDv(29,27),n.qZA(),n._UZ(30,"img",28),n.TgZ(31,"mat-select",29),n.YNc(32,Na,3,3,"mat-option",21),n.qZA()(),n.TgZ(33,"mat-form-field",30)(34,"mat-label"),n.SDv(35,31),n.qZA(),n.TgZ(36,"input",32,33),n.NdJ("input",function(at){n.CHM(y);const Ft=n.oxw(2);return n.KtG(Ft.setSlug(at))}),n.qZA(),n.TgZ(38,"mat-hint",34),n._uU(39),n.TgZ(40,"span"),n.SDv(41,35),n.qZA()(),n.YNc(42,ga,2,0,"mat-error",0),n.YNc(43,Ka,2,0,"mat-error",0),n.qZA(),n.TgZ(44,"mat-form-field",18)(45,"mat-label"),n.SDv(46,36),n.qZA(),n.TgZ(47,"mat-select",37),n.YNc(48,Mi,2,2,"mat-option",21),n.qZA()(),n.TgZ(49,"mat-form-field",18)(50,"mat-label"),n.SDv(51,38),n.qZA(),n.TgZ(52,"input",39,40),n.NdJ("keyup",function(){n.CHM(y);const at=n.MAs(53),Ft=n.oxw(2);return n.KtG(Ft.onLocationInput(at.value))}),n.qZA(),n.TgZ(54,"mat-autocomplete",null,41),n.YNc(56,Bi,2,2,"mat-option",21),n.qZA(),n.YNc(57,Xi,2,0,"mat-error",0),n.qZA()()(),n.TgZ(58,"div",6)(59,"div",14)(60,"label",15),n.SDv(61,42),n.qZA(),n.TgZ(62,"div",24)(63,"label",25),n.SDv(64,43),n.qZA()(),n.TgZ(65,"div",44)(66,"div",45)(67,"label",15),n._uU(68,"whydonate.com/fundraising/"),n.qZA()(),n.TgZ(69,"div",46)(70,"mat-form-field",30)(71,"mat-label"),n.SDv(72,47),n.qZA(),n.TgZ(73,"input",48,49),n.NdJ("input",function(at){n.CHM(y);const Ft=n.oxw(2);return n.KtG(Ft.setSlug(at))})("focus",function(){n.CHM(y);const at=n.oxw(2);return n.KtG(at.onFocus())})("blur",function(){n.CHM(y);const at=n.oxw(2);return n.KtG(at.onBlur())}),n.qZA(),n.TgZ(75,"mat-hint",34),n._uU(76),n.TgZ(77,"span"),n.SDv(78,50),n.qZA()(),n.YNc(79,Aa,2,0,"mat-error",0),n.YNc(80,wa,2,0,"mat-error",0),n.YNc(81,To,2,2,"mat-hint",51),n.qZA()()()()(),n.TgZ(82,"div",52)(83,"button",53),n.SDv(84,54),n.qZA()()(),n.TgZ(85,"mat-step",55),n.YNc(86,Pi,1,0,"ng-template",13),n.TgZ(87,"div",56)(88,"div",57)(89,"div",58)(90,"div",59)(91,"mat-label",60),n.SDv(92,61),n.qZA()(),n.TgZ(93,"div",62)(94,"span"),n.SDv(95,63),n.qZA(),n._UZ(96,"br"),n.qZA()(),n.TgZ(97,"div",64),n.YNc(98,Lo,5,6,"div",65),n.YNc(99,Mo,3,0,"div",66),n.YNc(100,rt,5,6,"div",67),n.qZA(),n.TgZ(101,"div",68),n.YNc(102,je,2,0,"a",69),n.YNc(103,Ue,2,0,"a",70),n.YNc(104,Yt,2,0,"button",71),n.qZA()()()(),n.TgZ(105,"mat-step"),n.YNc(106,Yr,1,0,"ng-template",13),n.TgZ(107,"div",72)(108,"label",15),n.SDv(109,73),n.qZA(),n._UZ(110,"br"),n.TgZ(111,"mat-form-field",74)(112,"mat-label"),n.SDv(113,75),n.qZA(),n._UZ(114,"input",76),n.ALo(115,"uppercase"),n.TgZ(116,"mat-autocomplete",null,77),n.YNc(118,Un,7,5,"mat-option",78),n.ALo(119,"async"),n.qZA()(),n.TgZ(120,"label",15),n.SDv(121,79),n.qZA(),n.TgZ(122,"div",80)(123,"div",81),n._uU(124," \u2022\xa0"),n.TgZ(125,"span"),n.SDv(126,82),n.qZA()(),n.TgZ(127,"div",81),n._uU(128," \u2022\xa0"),n.TgZ(129,"span"),n.SDv(130,83),n.qZA()(),n.TgZ(131,"div",81),n._uU(132," \u2022\xa0"),n.TgZ(133,"span"),n.SDv(134,84),n.qZA()()()(),n.TgZ(135,"div",6)(136,"div",14)(137,"label",15),n.SDv(138,85),n.qZA(),n._UZ(139,"br"),n.TgZ(140,"mat-form-field",86)(141,"mat-label"),n.SDv(142,87),n.qZA(),n.TgZ(143,"input",88),n.NdJ("input",function(){n.CHM(y);const at=n.oxw(2);return n.KtG(at.createFundraiserForm.controls.target_amount.markAsTouched())}),n.qZA(),n.TgZ(144,"p",89),n._uU(145),n.qZA(),n.YNc(146,pa,2,0,"mat-error",0),n.YNc(147,Wr,5,4,"mat-error",0),n.qZA(),n.TgZ(148,"mat-form-field",30)(149,"mat-label"),n.SDv(150,90),n.qZA(),n.TgZ(151,"input",91),n.NdJ("focus",function(){n.CHM(y);const at=n.MAs(154);return n.KtG(at.open())})("click",function(){n.CHM(y);const at=n.MAs(154);return n.KtG(at.open())}),n.qZA(),n._UZ(152,"mat-datepicker-toggle",92)(153,"mat-datepicker",null,93),n.YNc(155,ii,2,0,"mat-error",0),n.qZA()()(),n.TgZ(156,"div",6)(157,"div",94)(158,"mat-slide-toggle",95),n.NdJ("toggleChange",function(){n.CHM(y);const at=n.oxw(2);return n.KtG(at.changeShowTotalAmountDonated())}),n.TgZ(159,"span"),n.SDv(160,96),n.qZA()(),n.TgZ(161,"mat-slide-toggle",95),n.NdJ("toggleChange",function(){n.CHM(y);const at=n.oxw(2);return n.KtG(at.changeAllowConnectedFundraiser())}),n.TgZ(162,"span"),n.SDv(163,97),n.qZA()()()(),n.TgZ(164,"div",24)(165,"a",98),n.NdJ("click",function(){n.CHM(y);const at=n.oxw(2);return n.KtG(at.openHowItWorks())}),n.SDv(166,99),n.qZA()(),n.TgZ(167,"div",52)(168,"button",53),n.SDv(169,100),n.qZA()()(),n.TgZ(170,"mat-step"),n.YNc(171,xi,1,0,"ng-template",13),n.TgZ(172,"app-fundraiser-contact",101),n.NdJ("shareForm",function(at){n.CHM(y);const Ft=n.oxw(2);return n.KtG(Ft.receiveForm(at))})("shareFormValidity",function(at){n.CHM(y);const Ft=n.oxw(2);return n.KtG(Ft.receiveFormValidity(at))}),n.qZA(),n.TgZ(173,"div",102)(174,"div",103)(175,"button",104),n.NdJ("click",function(){n.CHM(y);const at=n.oxw(2);return n.KtG(at.saveFundraiser())}),n.SDv(176,105),n.qZA()(),n.TgZ(177,"div",106)(178,"button",107),n.NdJ("click",function(){n.CHM(y);const at=n.oxw(2);return n.KtG(at.saveFundraiser())}),n.TgZ(179,"span"),n.SDv(180,108),n.qZA(),n.YNc(181,Jo,1,0,"mat-spinner",109),n.qZA()()()()()()()()}if(2&Pe){const y=n.MAs(37),X=n.MAs(55),at=n.MAs(74),Ft=n.MAs(117),sr=n.MAs(154),xr=n.oxw(2);n.xp6(7),n.Q6J("linear",!0),n.xp6(1),n.Q6J("stepControl",xr.createFundraiserForm),n.xp6(12),n.Q6J("ngForOf",xr.beneficiaries),n.xp6(1),n.Q6J("ngIf","charity"===xr.selectedBeneficiary||"someoneElse"===xr.selectedBeneficiary),n.xp6(9),n.MGl("src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/",xr.selectedLanguage.value,"/w=17",n.LSH),n.xp6(1),n.Q6J("formControl",xr.selectedLanguage),n.xp6(1),n.Q6J("ngForOf",xr.languagecodes),n.xp6(4),n.s9C("placeholder",xr.createFundraiserFundTitle),n.xp6(3),n.hij("",y.value.length," / 5-75 "),n.xp6(3),n.Q6J("ngIf",xr.createFundraiserForm.controls.title.errors&&xr.createFundraiserForm.controls.title.errors.pattern),n.xp6(1),n.Q6J("ngIf",xr.createFundraiserForm.controls.title.errors&&(xr.createFundraiserForm.controls.title.errors.minlength||xr.createFundraiserForm.controls.title.errors.maxlength)),n.xp6(5),n.Q6J("ngForOf",xr._categories),n.xp6(4),n.s9C("placeholder",xr.createFundraiserLocation),n.Q6J("matAutocomplete",X),n.xp6(4),n.Q6J("ngForOf",xr.locations),n.xp6(1),n.Q6J("ngIf",xr.createFundraiserForm.controls.location.errors&&xr.createFundraiserForm.controls.location.errors.location),n.xp6(16),n.s9C("placeholder",xr.createFundraiserlinkname),n.xp6(3),n.hij("",at.value.length," / 1-75 "),n.xp6(3),n.Q6J("ngIf",xr.createFundraiserForm.controls.custom_url.errors&&xr.createFundraiserForm.controls.custom_url.errors.pattern),n.xp6(1),n.Q6J("ngIf",xr.createFundraiserForm.controls.custom_url.errors&&xr.createFundraiserForm.controls.custom_url.errors.slugInUse),n.xp6(1),n.Q6J("ngIf",!xr.createFundraiserForm.controls.custom_url.errors),n.xp6(2),n.Q6J("disabled",!xr.createFundraiserForm.valid),n.xp6(2),n.Q6J("completed",xr.imagePath||xr.videoPath),n.xp6(13),n.Q6J("ngIf",!xr.videoPath),n.xp6(1),n.Q6J("ngIf",!xr.imagePath&&!xr.videoPath),n.xp6(1),n.Q6J("ngIf",!xr.imagePath),n.xp6(2),n.Q6J("ngIf",!xr.videoPath&&xr.imagePath),n.xp6(1),n.Q6J("ngIf",xr.videoPath&&!xr.imagePath),n.xp6(1),n.Q6J("ngIf",xr.imagePath||xr.videoPath),n.xp6(10),n.Q6J("formControl",xr.currencySearchControl)("matAutocomplete",Ft)("ngModel",n.lcZ(115,45,xr.selectedCurrency)),n.xp6(4),n.Q6J("ngForOf",n.lcZ(119,47,xr.filteredCurrencies)),n.xp6(27),n.hij("",xr.selectedSymbol,"\xa0"),n.xp6(1),n.Q6J("ngIf",xr.createFundraiserForm.controls.target_amount.errors&&xr.createFundraiserForm.controls.target_amount.errors.pattern),n.xp6(1),n.Q6J("ngIf",xr.createFundraiserForm.controls.target_amount.errors&&xr.createFundraiserForm.controls.target_amount.errors.max),n.xp6(4),n.Q6J("matDatepicker",sr)("min",xr.minEndDate),n.xp6(1),n.Q6J("for",sr),n.xp6(3),n.Q6J("ngIf",xr.createFundraiserForm.controls.end_date.errors),n.xp6(3),n.Q6J("checked",!0),n.xp6(3),n.Q6J("checked",!0),n.xp6(7),n.Q6J("disabled",!xr.createFundraiserForm.valid||!xr.currency.value),n.xp6(10),n.Q6J("disabled",xr.isFormValid),n.xp6(3),n.Q6J("ngIf",xr.isLoading)}}function vs(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"mat-card",173)(1,"mat-card-content")(2,"div",174),n._UZ(3,"img",175),n.TgZ(4,"span",176),n.SDv(5,177),n.qZA(),n._uU(6," \xa0\xa0 "),n.TgZ(7,"a",178),n.NdJ("click",function(){n.CHM(y);const at=n.oxw(2);return n.KtG(at.browseFundraiser())}),n.SDv(8,179),n.qZA()()()()}}function is(Pe,rr){if(1&Pe&&(n.TgZ(0,"div")(1,"form",1),n.YNc(2,Wa,182,49,"div",2),n.qZA(),n.YNc(3,vs,9,0,"mat-card",3),n.qZA()),2&Pe){const y=n.oxw();n.xp6(1),n.Q6J("formGroup",y.createFundraiserForm),n.xp6(1),n.Q6J("ngIf",!y.isLoading),n.xp6(1),n.Q6J("ngIf",!y.isLoading)}}let no=(()=>{class Pe{constructor(y,X,at,Ft,sr,xr,en,Pr,On,ei,Ai,ae,me,J,Oe){this.router=y,this.notificationService=X,this.fundraiserService=at,this.datepipe=Ft,this.accountService=sr,this.sanitizer=xr,this.categoryService=en,this.dialog=Pr,this._dashboardService=On,this.mediaService=ei,this.breakpointObserver=Ai,this._bankService=ae,this.profileService=me,this.analyticsService=J,this.charNormalizationService=Oe,this.isLoading=!1,this.slug="",this.isAddVideo=!1,this.imageFiles=[],this.imgUrl=[],this.isVideo=!1,this.embedVideoUrl=[],this.mediaFiles=[],this.disableVideoSaveButton=!0,this.locations=[],this.isShowTotalAmountDonated=!0,this.isAllowConnected=!0,this.minEndDate=new Date,this._categories=sa.b,this.selectedCategories=[],this.isShareFundraiserFormValid=!1,this.emptyContact={},this.isFormValid=!0,this.isMobileView=!1,this.isDialogOpen=!1,this.allCurrenciesData=[],this.currencySearchControl=new l.NI,this.currency=new l.NI,this.selectedCurrency="",this.selectedSymbol="",this.maxTargetAmount=999999,this.isEditingSlug=!1,this.selectedLanguage=new l.NI(this.accountService.getLocaleId()),this.isCreateFormReady=!0,this.languagecodes=[{id:0,languageName:"EN - English",language_code:"en",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/en/w=17"},{id:1,languageName:"NL - Nederlands",language_code:"nl",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/nl/w=17"},{id:2,languageName:"ES - Espa\xF1ol",language_code:"es",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/es/w=17"},{id:3,languageName:"DE - Deutsch",language_code:"de",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/de/w=17"},{id:4,languageName:"FR - Fran\xE7ais",language_code:"fr",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fr/w=17"},{id:5,languageName:"BG - Bulgarian",language_code:"bg",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/bg/w=17"},{id:6,languageName:"HR - Croatian",language_code:"hr",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/hr/w=17"},{id:7,languageName:"CS - Czech",language_code:"cs",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/cs/w=17"},{id:8,languageName:"DA - Danish",language_code:"da",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/da/w=17"},{id:9,languageName:"FI - Finnish",language_code:"fi",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fi/w=17"},{id:10,languageName:"EL - Greek",language_code:"el",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/el/w=17"},{id:11,languageName:"HU - Hungarian",language_code:"hu",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/hu/w=17"},{id:12,languageName:"IT - Italian",language_code:"it",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/it/w=17"},{id:13,languageName:"PL - Polish",language_code:"pl",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/pl/w=17"},{id:14,languageName:"PT - Portuguese",language_code:"pt",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/pt/w=17"},{id:15,languageName:"RO - Romanian",language_code:"ro",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/ro/w=17"},{id:16,languageName:"SK - Slovak",language_code:"sk",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/sk/w=17"},{id:17,languageName:"SV - Swedish",language_code:"sv",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/sv/w=17"},{id:18,languageName:"UK - Ukranian",language_code:"uk",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/uk/w=17"}],this.beneficiaries=[{beneficiaryName:"Sami",beneficiary_code:"yourself"},{beneficiaryName:"Netko Drugi",beneficiary_code:"someoneElse"},{beneficiaryName:"Milosr\u0111e",beneficiary_code:"charity"}],this.createFundraiserFundTitle="Naslov Prikupljanja Sredstava",this.createFundraiserLocation="Mjesto",this.createFundraiserlinkname="Naziv Veze",this.locationSearch$=new r.x,this.profileName="",this.currentLanguageCode=""}ngOnInit(){this.isLoading=!0,this.checkLoginStatus(),this.currentLanguageCode=this.accountService.getLocaleId()}checkLoginStatus(){this.accountService.getLoginInformation().subscribe(y=>{y&&(this.subscribeToViewportChanges(),this.getStripeAccountStatus(),this.fetchAllCurrencies(),this.handleCurrencySelectionChanges(),this.checkHeadersAndFetchProfile(),this.getCategoryList(),this.initializeCreateFundraiserForm())},y=>{console.error("Error checking login information:",y),this.isLoading=!1})}subscribeToViewportChanges(){this.breakpointObserver.observe([la.u3.HandsetPortrait,la.u3.HandsetLandscape]).subscribe(y=>{this.isMobileView=y.matches})}getStripeAccountStatus(){this._bankService.getStripeStatus(!0).subscribe(y=>{this.isStripeCreated=y?.data?.status,this.isStripeCreated?(this.isCreateFormReady=!1,this.isLoading=!1):this.getParentFundraiserCount()},y=>{console.error("Error fetching Stripe status:",y),this.isLoading=!1})}getParentFundraiserCount(){this._dashboardService.getFundraiserSummary().subscribe(y=>{this.parentFundraiserCount=y?.data?.parent,(!this.parentFundraiserCount||!this.isStripeCreated)&&this.router.navigate(["fundraising/country"]),this.isCreateFormReady=!1,this.isLoading=!1},y=>{console.error("Error fetching fundraiser summary:",y),this.isLoading=!1})}fetchAllCurrencies(){this.fundraiserService.getAllCurrencies().subscribe(y=>{this.allCurrenciesData=y?.data?.list_of_currencies||[],this.initializeFilter()},y=>{console.error("Error fetching currencies:",y)})}handleCurrencySelectionChanges(){this.currency.valueChanges.subscribe(y=>{this.selectedCurrency=y;const X=this.allCurrenciesData.find(at=>at.currency===y);X&&(this.selectedSymbol=X.symbol,this.getMaxTargetAmountForCurrency(y))})}getMaxTargetAmountForCurrency(y){const X=this.createFundraiserForm.get("target_amount");this.fundraiserService.getMaxTargetAmountByCurrency(y).subscribe(at=>{this.maxTargetAmount=at?.data?.list_of_currencies[0]?.max_target_amount||999999,X?.setValidators([l.kI.max(this.maxTargetAmount),l.kI.pattern("^[0-9]+$")]),X?.updateValueAndValidity()},at=>{console.error("Error fetching max target amount:",at)})}checkHeadersAndFetchProfile(){this.accountService.checkHeaders()&&this.profileService.getProfile().subscribe(y=>{this.profileResponse=y?.data,this.profileName=y?.data?.profile?.name},y=>{console.error("Error fetching profile:",y)})}initializeCreateFundraiserForm(){this.createFundraiserForm=new l.nJ({title:new l.p4("",[l.kI.required,l.kI.minLength(5),l.kI.maxLength(75),l.kI.pattern(/^[\p{L}\p{N}\p{P}\p{S}\s\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FAC0}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}\u{2B05}\u{1F004}]*$/u)]),category:new l.p4("",[l.kI.required]),location:new l.p4("",{validators:[l.kI.required],asyncValidators:[this.isLocationValid()]}),custom_url:new l.p4("",[l.kI.required,l.kI.minLength(1),l.kI.maxLength(75),l.kI.pattern("^[a-zA-Z0-9_-]*$")]),target_amount:new l.p4("",[l.kI.max(this.maxTargetAmount),l.kI.pattern("^[0-9]+$")]),end_date:new l.p4("",[]),name:new l.p4("",[]),beneficiary:new l.p4("",[l.kI.required])});let y=localStorage.getItem("startfundraiser");this.startFundraiserLocalStorage=y?JSON.parse(y):null,this.startFundraiserLocalStorage&&(this.createFundraiserForm.get("beneficiary")?.setValue(this.startFundraiserLocalStorage.beneficiary),this.selectedBeneficiary=this.startFundraiserLocalStorage.beneficiary,this.prefillForm(this.startFundraiserLocalStorage),this.updateNameValidators()),this.createFundraiserForm.get("beneficiary")?.valueChanges.subscribe(X=>{this.selectedBeneficiary=X,this.updateNameValidators()}),this.createFundraiserForm.get("custom_url")?.valueChanges.pipe((0,ci.b)(600),(0,m.x)(),(0,Kt.h)(X=>/^[a-zA-Z0-9_\\s-]*$/.test(X)),(0,Ar.w)(X=>this.fundraiserService.isSlugUnique(X).pipe((0,ie.K)(()=>(0,Ve.of)(null))))).subscribe(X=>{X?.data?.slug_in_use?this.createFundraiserForm.get("custom_url")?.setErrors({slugInUse:!0}):this.createFundraiserForm.get("custom_url")?.setErrors(null)}),this.locationSearch$.pipe((0,ci.b)(600),(0,m.x)()).subscribe(X=>{this.searchPlaces(X)})}updateNameValidators(){const y=this.createFundraiserForm.get("name");"charity"===this.selectedBeneficiary||"someoneElse"===this.selectedBeneficiary?y?.setValidators([l.kI.minLength(1),l.kI.maxLength(75),l.kI.pattern(/^[^\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FAC0}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}]*$/u),X=>/^\s*$/.test(X.value||"")?{whitespace:!0}:null]):y?.clearValidators(),y?.updateValueAndValidity()}prefillForm(y){if(this.selectedLanguage.setValue(y.language_code||this.accountService.getLocaleId()),this.createFundraiserForm.get("name")?.setValue(y.name),this.createFundraiserForm.get("category")?.setValue(y.category),"yourself"==this.selectedBeneficiary){this.createFundraiserForm.get("location")?.setValue(y.location_locale);const X={description:y.location_locale};this.locations.some(at=>at.description===y.location_locale)||this.locations.push(X)}}initializeFilter(){this.filteredCurrencies=this.currencySearchControl.valueChanges.pipe((0,v.O)(""),(0,ra.U)(y=>this.filterCurrencies(y||"")))}filterCurrencies(y){const X=y.toLowerCase();return this.allCurrenciesData.filter(at=>at.currency.toLowerCase().includes(X))}onCurrencySelect(y){this.currency.setValue(y.currency)}openImageCropperDialog(){const y=document.getElementById("upload_image_input");if(this.isDialogOpen)return;const X=at=>{const Ft=at.target;if(Ft.files&&Ft.files.length>0){const xr=URL.createObjectURL(Ft.files[0]);this.dialog.open(Co,{data:{imagePath:xr,autoFocus:!1}}).componentInstance.valueSelected.subscribe(Pr=>{this.imagePath=URL.createObjectURL((0,fa.Ll)(Pr)),this.imagePath_blob=Pr})}this.isDialogOpen=!1,Ft.value="",y?.removeEventListener("change",X)};y?.addEventListener("change",X),y?.click()}openVideoDialog(){this.dialog.open(Fa.s,{data:{videoPath:this.videoPath,autoFocus:!1},width:"500px"}).afterClosed().subscribe(X=>{X&&(this.videoPath=X,this.youtubeIframe=this.checkVideoUrl(X))})}openimagepopup(){this.dialog.open(Ct,{width:"500px",data:{videoPath:this.videoPath,imagePath:this.imagePath}}).componentInstance.valueSelected.subscribe(X=>{this.getLinkType(X)})}openvideopopup(){this.dialog.open(Ct,{width:"500px",data:{videoPath:this.videoPath,imagePath:this.imagePath}}).componentInstance.valueSelected.subscribe(X=>{this.getLinkType(X)})}getLinkType(y){return y.startsWith("blob:")||y.startsWith("data:image")?(this.videoPath=null,this.imagePath=URL.createObjectURL((0,fa.Ll)(y)),void(this.imagePath_blob=y)):/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:embed\/|watch\?v=|v\/)|youtu\.be\/)([\w\-]+)(?:\S+)?$/.test(y)?(this.youtubeIframe=this.generateYouTubeIframe(y),this.videoPath=y,void(this.imagePath=null)):/^(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/)(\d+)(?:\S+)?$/.test(y)?(this.youtubeIframe=this.generateVimeoIframe(y),this.videoPath=y,void(this.imagePath=null)):(this.videoPath=null,void(this.imagePath=null))}checkVideoUrl(y){return y?.match(/^(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/)(\d+)(?:\S+)?$/)?this.generateVimeoIframe(y):y?.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:embed\/|watch\?v=|v\/|shorts\/)|youtu\.be\/)([\w\-]+)(?:\S+)?$/)?this.generateYouTubeIframe(y):"unknown"}generateVimeoIframe(y){const at=`\n\t\t\t<iframe\n\t\t\t\tfxFill\n\t\t\t\twidth="100%"\n\t\t\t\theight="100%"\n\t\t\t\tid="create_fundraiser_Iframe"\n\t\t\t\tframeborder="0"\n\t\t\t\tallowfullscreen\n\t\t\t\tsrc="https://player.vimeo.com/video/${this.getVideoIdVimeo(y)}"\n\t\t\t\ttitle="Vimeo Video"\n\t\t\t></iframe>\n  \n\t\t\t`;return this.sanitizer.bypassSecurityTrustHtml(at)}generateYouTubeIframe(y){const at=`\n\t\t\t<iframe\n\t\t\t\tloading = "lazy"\n\t\t\t\twidth="100%"\n\t\t\t\theight="100%"\n\t\t\t\tid="create_fundraiser_Iframe"\n\t\t\t\tfxfill\n\t\t\t\tsrc="https://www.youtube-nocookie.com/embed/${this.getVideoIdYoutube(y)}"\n\t\t\t\ttitle="The Youtube Video"\n\t\t\t></iframe>`;return this.sanitizer.bypassSecurityTrustHtml(at)}getVideoIdYoutube(y){const at=y?.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:embed\/|watch\?v=|v\/|shorts\/)|youtu\.be\/)([\w\-]+)(?:\S+)?$/);return at&&at[1]?at[1]:""}getVideoIdVimeo(y){const at=y?.match(/^(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/)(\d+)(?:\S+)?$/);return at&&at[1]?at[1]:""}dataURItoBlob(y){for(var X=atob(y.toString().split(",")[1]),at=new ArrayBuffer(X.length),Ft=new Uint8Array(at),sr=0;sr<X.length;sr++)Ft[sr]=X.charCodeAt(sr);return new Blob([Ft],{type:"image/jpeg"})}getCategoryList(){this.categoryService.getCategorylist().subscribe(y=>{this.categories=JSON.parse(JSON.stringify(y)).data})}onLocationInput(y){this.locationSearch$.next(y)}searchPlaces(y){y.trim()&&this.categoryService.getLocation(y).subscribe(X=>{this.locations=this.locations=JSON.parse(JSON.stringify(X)).data.result||[]},X=>{this.createFundraiserForm?.controls.location.markAsDirty({onlySelf:!0})})}isLocationValid(){return y=>new Promise((at,Ft)=>{let sr=y.value,xr=!1;this.locations?.length>0&&this.locations.forEach(en=>{en.description==sr&&(xr=!0)}),at(xr?null:{location:"doNotExist"})})}setSlug(y){if(!this.isEditingSlug){const at=this.charNormalizationService.normalizeString(y.target.value),Ft=this.removeEmojis(at).replace(/\s+/g,"");this.createFundraiserForm?.controls.custom_url.setValue(Ft.trim().toLowerCase()),["custom_url","title"].forEach(xr=>{this.createFundraiserForm.controls[xr].markAsTouched()})}}openHowItWorks(){window.open("https://helpdesk.whydonate.com/en/article/enabledisable-connected-team-fundraisers-9poye0/","_blank")}changeShowTotalAmountDonated(){this.isShowTotalAmountDonated=!this.isShowTotalAmountDonated}changeAllowConnectedFundraiser(){this.isAllowConnected=!this.isAllowConnected}getYouTubeEmbedUrl(y){const X=this.extractVideoId(y);return this.sanitizer.bypassSecurityTrustResourceUrl(`https://www.youtube.com/embed/${X}`)}extractVideoId(y){return y.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com|youtu\.be)\/(?:watch\?v=|embed\/|v\/|shorts\/)?([^\s/?&]+)/i)?.[1]}saveFundraiser(){var y=this;if(this._dashboardService.clearCache(),this.createFundraiserForm.markAllAsTouched(),this.createFundraiserForm.valid){this.isLoading=!0;let X=!1,at=this.createFundraiserForm.get("target_amount")?.value;(null==at||null==at||at.length<=0||"0"==at)&&(X=!0,at="0");let Ft=this.datepipe.transform(this.createFundraiserForm.get("end_date")?.value,"yyyy-MM-dd");(null==Ft||null==Ft)&&(Ft=this.datepipe.transform(new Date("9999-12-31"),"yyyy-MM-dd"));let sr="";this.locations.forEach(Pr=>{Pr.description==this.createFundraiserForm.get("location")?.value&&(sr=Pr.description?Pr.description:this.createFundraiserForm.get("location")?.value)});let en,xr=!1;this._dashboardService.getFundraiserSummary().subscribe(Pr=>{this.parentFundraiserCount=Pr?.data?.parent||0,0==this.parentFundraiserCount&&(xr=!0,this.fundraiserService.setParentFundraiserCount("firstFundraiser"))}),en={title:this.createFundraiserForm.get("title")?.value,slug:this.createFundraiserForm.get("custom_url")?.value,category_id:this.createFundraiserForm.get("category")?.value,location_local:sr,language_code:this.selectedLanguage.value,unlimited:X,currency_code:this.selectedCurrency,end_date:Ft,show_donation_details:this.isShowTotalAmountDonated,allow_child:this.isAllowConnected,tip_enabled:!0,is_draft:!0,created_on:(()=>{const Pr=window.location.origin;return Pr.includes("localhost")?"https://whydonate.in":Pr})(),video:this.videoPath,amount_target:at,beneficiaryName:this.createFundraiserForm.get("name")?.value},this.accountService.checkHeaders()&&this.fundraiserService.createFundraiser(en).pipe((0,ra.U)(Pr=>{if(200==Pr.status)return this.notificationService.openNotification("Uspje\u0161no je stvoren prikuplja\u010D sredstava.","OK","success"),localStorage.removeItem("startfundraiser"),Pr}),(0,ji.z)(Pr=>{let On,ei;if(this.fundraiserLocalId=Pr.data&&Pr.data.id?Pr?.data?.id:null,null!=this.imagePath&&this.imagePath.toString().length>0)On={image:this.dataURItoBlob(this.imagePath_blob),slug:Pr.data.slug};else if(null!=this.videoPath&&this.videoPath.toString().length>0){ei={video:this.videoPath,slug:Pr.data.slug};let J=Ui.w.getBase64_FundraiserDefaultBg();On={image:this.dataURItoBlob(J),slug:Pr.data.slug}}else{let J=Ui.w.getBase64_FundraiserDefaultBg();On={image:this.dataURItoBlob(J),slug:Pr.data.slug}}const Ai=this.fundraiserService.uploadFundraiserBackground(On),me=this.fundraiserService.createSocialMedia({slug:Pr.data.slug,email:this.receivedForm?.email||"",facebook:this.receivedForm?.facebook||"",twitter:this.receivedForm?.twitter||"",linked_in:this.receivedForm?.linked_in||"",instagram:this.receivedForm?.instagram||"",website:this.receivedForm?.website||""});if(null!=this.videoPath&&this.videoPath.toString().length>0){const J=this.fundraiserService.addVideoBackground(ei);return(0,c.D)([Ai,J,me])}return(0,c.D)([Ai,me])})).subscribe(function(){var Pr=(0,Dn.Z)(function*(On){y.fundraiserLocalId?(y.analyticsService.fireAnalyticsEvent("Fundraiser_Created",{profile_id:(yield y.accountService.getProfileId())||0,user_id:JSON.parse(localStorage.getItem("user")||"{}")?.id||0,fundraiser_id:y.fundraiserLocalId}),xr&&y.analyticsService.fireAnalyticsEvent("User_First_Fundraiser_Created",{profile_id:(yield y.accountService.getProfileId())||0,user_id:JSON.parse(localStorage.getItem("user")||"{}")?.id||0,fundraiser_id:y.fundraiserLocalId,profile_name:y.profileName})):console.error("Fundraiser ID is null"),y.router.navigate(["fundraising/"+y.createFundraiserForm.get("custom_url")?.value])});return function(On){return Pr.apply(this,arguments)}}())}else this.isLoading=!1,this.notificationService.openNotification("U unosu postoje gre\u0161ke, molimo provjerite ih.","OK","error")}receiveForm(y){this.receivedForm=y}receiveFormValidity(y){this.isFormValid=y}removeEmojis(y){let X=y.replace(/\s+/g,"ANTRIKSHY");return X=X.replace(/[\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\p{S}\p{P}\p{Z}\p{C}]/gu,""),X=X.replace(/ANTRIKSHY/g,"-"),X=X.replace(/-+/g,"-"),X}onFocus(){this.isEditingSlug=!0}onBlur(){this.isEditingSlug=!1}browseFundraiser(){window.open(this.router.serializeUrl(this.router.createUrlTree([`${this.currentLanguageCode}/search`])),"_blank")}}return Pe.\u0275fac=function(y){return new(y||Pe)(n.Y36(e.F0),n.Y36(I.g),n.Y36(P.R),n.Y36(t.uU),n.Y36(q.B),n.Y36(Mt.H7),n.Y36(Dt.H),n.Y36(na.uw),n.Y36(tr.s),n.Y36(ve.y),n.Y36(la.Yg),n.Y36(L.y),n.Y36(kr.H),n.Y36(mn.y),n.Y36(un))},Pe.\u0275cmp=n.Xpm({type:Pe,selectors:[["app-create-fundraiser"]],decls:2,vars:2,consts:function(){let rr,y,X,at,Ft,sr,xr,en,Pr,On,ei,Ai,ae,me,J,Oe,Ke,xt,Zt,gr,zr,nn,dn,yi,Ca,Do,Ro,Po,_o,ts,Wo,Ii,ko,$s,Is,il,Xs,Ss,Fs,Vs,Js,Qs,Cs,Ds,os,fl,Ws,al,Al,ol,ui,Cl,Ja,ss,Ps,Tl;return rr="Zapo\u010Dni Sakuplja\u010D Sredstava",y="O Sakuplja\u010D Sredstava",X="Tko \u0107e imati koristi od donacija koje prikupljate?",at="Odaberite Korisnika",Ft="Izvorni jezik",sr="Nakon odabira zadanog jezika, kasnije se ne mo\u017Ee promijeniti. Mo\u017Eete dodati vi\u0161e prijevoda zadanog jezika.",xr="Odaberite Jezik",en="Naslov",Pr="Znaci",On="Kategorija",ei="Lokacija",Ai="Poveznica",ae="Odaberite kratku i lako zapamtljivu vezu od najvi\u0161e 90 znakova Kasnije je ne mo\u017Eete promijeniti.",me="Unesi zavr\u0161etak linka",J="Znaci",Oe="Spremi",Ke="Prijenos slike/videa naslovnice",xt="JPG, PNG ili WebP. Maksimalna veli\u010Dina: 5 MB. Minimalna \u0161irina: 1600 px (preporu\u010Duje se omjer 2:1). Za videozapise koristite veze na Vimeo ili YouTube",Zt="Zadana Valuta",gr="Odaberite Valutu",zr="Va\u017Ene Informacije",nn="Postavke valute se ne mogu promijeniti",dn="Da biste primili donacije u ovoj valuti, trebate dodati sli\u010Dan bankovni ra\u010Dun u va\u0161im postavkama isplate.",yi="Donacije u valuti za koju niste dodali broj bankovnog ra\u010Duna bit \u0107e automatski pretvorene i ispla\u0107ene na bankovni ra\u010Dun u zadanom valu.",Ca="Opcionalne postavke",Do="Ciljni Iznos",Ro="Krajnji datum",Po="Prika\u017Ei ukupni iznos doniranih sredstava",_o="Dopusti povezanim prikuplja\u010Dima sredstava",ts="Kako to funkcionira",Wo="Spremi",Ii="Presko\u010Di",ko="Spremi",$s="O Sakuplja\u010D Sredstava",Is="Za koga skupljate novac?",il="Ime",Xs="Znaci",Ss="Mora imati izme\u0111u 1 i 75 znakova",Fs="Samo su dopu\u0161tena slova.",Vs="Neva\u017Ee\u0107i unos, mo\u017Eete koristiti samo brojeve i slova.",Js="Mora biti izme\u0111u 5 i 75 znakova.",Qs="Neva\u017Ee\u0107i unos, mo\u017Eete koristiti samo brojeve i slova.",Cs="Ovaj link je ve\u0107 zauzet.",Ds="Glavna Slika",os="Dodaj Sliku",fl="ili",Ws="Dodaj Video",al="Uredi",Al="Uredi",ol="Sljede\u0107i",ui="Postavke Donacija",Cl="Decimale nisu dopu\u0161tene",Ja="Najve\u0107i iznos je",ss="Kontakt Informacije",Ps="Ako tra\u017Eite razlog za povezivanje",Tl="Pregledajte Fundraiser",[[4,"ngIf"],[3,"formGroup"],["ngClass","p-xxl","ngClass.sm","p-m","ngClass.xs","p-s","fxFlex","100%","fxLayout","row","fxLayoutAlign","center start","fxLayoutGap","5%",4,"ngIf"],["class","mat-elevation-z4",4,"ngIf"],["ngClass","p-xxl","ngClass.sm","p-m","ngClass.xs","p-s","fxFlex","100%","fxLayout","row","fxLayoutAlign","center start","fxLayoutGap","5%"],["fxFlex","100%","fxFlex.sm","65%","fxFlex.xs","90%","fxLayout","column","fxLayoutAlign","start center","fxLayoutGap","3%"],["fxFill","","fxLayout","row","fxLayoutAlign","center center"],["fxFill","","fxLayout","column","fxLayoutAlign","center center"],[1,"mat-h3"],rr,["ngClass.lt-sm","w-100","ngClass","w-0",1,"mat-elevation-z1"],[3,"linear"],[3,"stepControl"],["matStepLabel",""],["fxFill","","fxLayout","column","fxLayoutAlign","center start"],[1,"mat-body-2"],y,X,["appearance","outline","ngClass","m-t-s",1,"w-100"],at,["formControlName","beneficiary"],[3,"value",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],Ft,["fxFill","","fxLayout","row","fxLayoutAlign","start center"],[1,"mat-caption"],sr,xr,["matPrefix","",1,"flagicon-selected",3,"src"],[3,"formControl"],["appearance","outline",1,"w-100"],en,["required","","matInput","","formControlName","title",1,"fundraiserTitle",3,"placeholder","input"],["title",""],["align","end"],Pr,On,["formControlName","category",1,"category"],ei,["required","","matInput","","formControlName","location",1,"location",3,"matAutocomplete","placeholder","keyup"],["location",""],["locationAuto","matAutocomplete"],Ai,ae,["fxFill","","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","start center","fxLayoutAlign.xs","start stretch","fxLayoutGap","2%"],["fxLayout","column","fxLayout.xs","row","fxFlex.xs","100%","fxLayoutAlign","start center","fxLayoutGap","2%"],["fxLayout","column","fxLayout.xs","row","fxFlex","100%","fxLayoutAlign","center start","fxLayoutGap","2%"],me,["required","","matInput","","formControlName","custom_url",1,"linkUrl",3,"placeholder","input","focus","blur"],["customUrl",""],J,[3,"ngStyle",4,"ngIf"],["fxFill","","fxLayout","row","fxLayoutAlign","end center","ngClass","m-t-l"],["id","saveBtn","mat-flat-button","","color","accent","matStepperNext","",3,"disabled"],Oe,[3,"completed"],["fxFill","","fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","3%"],["fxFill","","fxLayout","column","fxLayoutAlign","start flex-start","fxLayoutGap","3%"],["fxLayout","column","fxLayoutAlign","start start"],[1,"m-b-xs","m-t-l"],[1,"mat-title"],Ke,[1,"start","ql-snow","max-w-100"],xt,["fxFill","","fxLayout","row","fxLayoutAlign","center","fxLayoutGap","3%",1,"m-t-l"],["fxLayout","row","fxLayoutAlign","center center","class","openImage","id","add_image_create_fundraiser",3,"ngStyle","click",4,"ngIf"],["fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center","class","openImage",3,"ngStyle","click",4,"ngIf"],["fxFill","","fxFlex","100%","fxLayout","row","fxLayoutAlign","end end","fxLayoutGap","2%"],["mat-button","","color","accent","id","imagechangeButton",3,"click",4,"ngIf"],["mat-button","","color","accent","id","videochangeButton",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","id","nextButtonUploadImage","matStepperNext","","class","nextButton",4,"ngIf"],["fxFill","","fxLayout","column","fxLayoutAlign","start start","ngClass","m-b-l"],Zt,["appearance","outline",1,"w-100","currency"],gr,["matInput","","type","text","placeholder","Search Currency","aria-label","Search Currency",3,"formControl","matAutocomplete","ngModel"],["currencyAuto","matAutocomplete"],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],zr,["fxFill","","fxLayout","column","fxLayoutAlign","start","fxLayoutGap","1%"],["fxLayout","row"],nn,dn,yi,Ca,["appearance","outline","floatLabel","always",1,"w-100"],Do,["matInput","","type","number","formControlName","target_amount","placeholder","00","appNumericInput","",1,"right-align",3,"input"],["matPrefix",""],Ro,["matInput","","formControlName","end_date","onkeydown","return false",1,"targetAmount",3,"matDatepicker","min","focus","click"],["matSuffix","",1,"datePicker",3,"for"],["picker",""],["fxFill","","fxLayout","column","fxLayoutAlign","center start","fxLayoutGap","3%"],["color","primary",3,"checked","toggleChange"],Po,_o,["mat-button","","color","accent",3,"click"],ts,Wo,[3,"fundraiserData","shareForm","shareFormValidity"],["fxFill","","fxLayout","row","fxLayoutGap","6%","fxLayoutGap.lt-sm","3%","fxLayoutAlign","flex-end center"],["fxFlex.gt-xs","85%","fxFlex.lt-xs","50%","fxLayout","column","fxLayoutAlign","center end"],["mat-button","","id","create_fundraiser_skip_button","color","accent",3,"click"],Ii,["fxFlex.gt-xs","5%","fxFlex.lt-xs","50%","fxLayout","column","fxLayoutAlign","center end"],["mat-flat-button","","color","accent","id","save","id","create_fundraiser_save",3,"disabled","click"],ko,["color","primary","diameter","20",4,"ngIf"],$s,[3,"value"],[1,"w-100"],Is,["color","primary","appearance","outline",1,"w-100"],il,["matInput","","formControlName","name","id","name",3,"input"],["name",""],Xs,Ss,Fs,[1,"flagicon",3,"src"],Vs,Js,Qs,Cs,[3,"ngStyle"],Ds,["fxLayout","row","fxLayoutAlign","center center","id","add_image_create_fundraiser",1,"openImage",3,"ngStyle","click"],["class","whydonate-light","fxFlex","100%","fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","5%",4,"ngIf"],["class","mat-elevation-z0 grey-bg p-xl",4,"ngIf"],["class","img-preview","fxFill","",3,"src",4,"ngIf"],["fxFill","",1,"img-preview",3,"src"],["fxFlex","100%","fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","5%",1,"whydonate-light"],["fxHide","","type","file","id","upload_image_input"],["mat-fab","","color","primary",1,"mat-elevation-z0","p-x2",3,"ngStyle"],["height","33","width","33","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/addPhoto/public",1,"m-b-m"],[1,"mat-elevation-z0","grey-bg","p-xl"],["class","img-preview","id","imageDiv","fxFill","",4,"ngIf"],["fxFill","","fxLayout","row","fxLayoutAlign","center stretch",4,"ngIf"],["id","imageDiv","fxFill","",1,"img-preview"],["fxFill","","fxLayout","row","fxLayoutAlign","center stretch"],["fxFill","","fxLayout","column","fxLayoutAlign","center stretch","fxLayoutGap","10%",1,"p-xl"],["height","50","width","50","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/addPhoto/public",1,"m-b-m"],["mat-stroked-button","","color","accent"],os,["fxLayoutAlign","center center"],fl,["fxLayout","row","fxLayoutAlign","center center",1,"openImage",3,"ngStyle","click"],["fxFill","","fxLayout","row","fxLayoutAlign","center center",1,"video-iframe"],["class","video-iframe",4,"ngIf"],[1,"video-iframe"],["fxLayout","column","fxLayoutAlign","end end","class","w-100 aspect-ratio","fxFlex","100",3,"innerHTML",4,"ngIf"],["fxLayout","column","fxLayoutAlign","end end","fxFlex","100",1,"w-100","aspect-ratio",3,"innerHTML"],["mat-fab","","color","primary",1,"mat-elevation-z0",3,"ngStyle"],["height","33","width","33","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/videoCall/public",1,"m-b-m"],["fxFill","","fxLayout","column","fxLayoutAlign","start center",4,"ngIf"],["fxFill","","fxLayout","column","fxLayoutAlign","start center"],["height","50","width","50","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/videoCall/public",1,"m-b-m"],["mat-stroked-button","","color","accent","id","button_add_video_create_fundraiser"],Ws,["mat-button","","color","accent","id","imagechangeButton",3,"click"],al,["mat-button","","color","accent","id","videochangeButton",3,"click"],Al,["mat-flat-button","","color","accent","id","nextButtonUploadImage","matStepperNext","",1,"nextButton"],ol,ui,[3,"value","onSelectionChange"],Cl,Ja,ss,["color","primary","diameter","20"],[1,"mat-elevation-z4"],["fxLayout","row","fxLayoutAlign","start center"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/connectedFundraiser/public"],[1,"p-l-s"],Ps,[1,"link-decorate-style","pointer",3,"click"],Tl]},template:function(y,X){1&y&&(n.YNc(0,Mn,1,0,"app-page-loader",0),n.YNc(1,is,4,3,"div",0)),2&y&&(n.Q6J("ngIf",X.isLoading),n.xp6(1),n.Q6J("ngIf",!X.isCreateFormReady))},dependencies:[l._Y,l.Fj,l.wV,l.JJ,l.JL,l.Q7,l.oH,l.sg,l.u,t.mk,t.sg,t.O5,t.PC,Rt.VN,Rt.QJ,Dr.CK,he.Mq,he.hl,he.nW,T.nI,T.v_,T.pH,T.$V,T.g4,T.nX,F.k0,kn.x8,V.Rr,de.S$,de.Qi,de.mi,wn.C0,wn.VY,wn.Vq,wn.Ic,Le.eB,Le.Nr,ue.sN,ee.xw,ee.SQ,ee.Wh,ee.s9,ee.yH,se.b8,se.oO,se.Zl,Z.f,Jn.f,yn.R,t.Ov,t.gd,t.JJ],styles:[".cover-photo-card[_ngcontent-%COMP%]{min-width:100%;min-height:350px}.img-preview[_ngcontent-%COMP%]{width:100%;height:50%;max-width:800px}.video-iframe[_ngcontent-%COMP%]{width:800px}@media (max-width: 767px){.video-iframe[_ngcontent-%COMP%]{width:auto;height:auto}}"]}),Pe})();var Zo=s(85041);function mt(Pe,rr){1&Pe&&(n.TgZ(0,"mat-icon",17),n._UZ(1,"mat-spinner",18),n.qZA())}function Xt(Pe,rr){1&Pe&&(n.TgZ(0,"mat-icon",17),n._UZ(1,"mat-spinner",18),n.qZA())}let or=(()=>{class Pe{constructor(y,X,at,Ft){this.activatedRoute=y,this._router=X,this._bankService=at,this._accountService=Ft,this.slug="",this.stripeVerificationCheck=!1,this.isLoading=!1}ngOnInit(){this.slug=this.activatedRoute.snapshot.paramMap.get("slug")||""}connectWithStripe(){this.stripeVerificationCheck=!0;let y=window.location.protocol+"//"+window.location.hostname+"/"+this._accountService.getLocaleId()+"/profile/payout-settings";"localhost"==window.location.hostname&&(y="http://localhost:4200/profile/payout-settings"),this._bankService.redirectToStripeVerification({return_url:y}).subscribe(at=>{window.open(at?.data?.url),this.stripeVerificationCheck=!1})}verifyWithStripeEmbeddedAccountOnboard(){this._router.navigate(["profile/payout-settings"])}doItLater(){this.isLoading=!0,this._router.navigate([`fundraising/${this.slug}`]),this.isLoading=!1}}return Pe.\u0275fac=function(y){return new(y||Pe)(n.Y36(e.gz),n.Y36(e.F0),n.Y36(L.y),n.Y36(q.B))},Pe.\u0275cmp=n.Xpm({type:Pe,selectors:[["app-stripe-prompt"]],decls:29,vars:2,consts:function(){let rr,y,X,at,Ft;return rr="Prikupljanje sredstava je spremljeno kao skica.",y="Zapo\u010Dni Stripe Verifikaciju",X="Zavr\u0161ite Stripe provjeru da biste objavili svoje prikupljanje sredstava i po\u010Deli primati donacije i isplate.",at="Zapo\u010Dni Stripe Verifikaciju",Ft="Kasnit \u0107u",[["fxLayout","row","fxFlex","100%","fxLayoutAlign","center center",1,"branding","registration-complete"],["ngClass","m-t-xxl-2","fxLayout","column","fxFlex","100%","fxFlex.xs","80%","fxFlex.sm","60%","fxFlex.md","50%","fxFlex.lg","40%","fxLayoutAlign","center center","fxFlexFill","",1,"grey-bg"],["fxLayout","row","fxLayoutAlign","center center","ngClass","p-s m-t-m"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/checkCircleFillPrimary/public",2,"position","relative","top","4px"],rr,["fxLayout","row","fxLayoutAlign","center center"],["fxLayout","column","fxFill","","fxLayoutAlign","center center"],["fxLayout","column","fxFill","","fxLayoutAlign","center center","fxLayoutGap","1%"],y,["align","center"],X,["mat-flat-button","","color","accent","id","stipe_prompt_start_stripe_verification",3,"click"],at,["class","m-l-xs",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center","ngClass","m-t-xs"],["mat-button","","color","accent",3,"click"],Ft,[1,"m-l-xs"],["color","primary","diameter","20"]]},template:function(y,X){1&y&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),n._UZ(4,"img",3),n._uU(5,"\xa0 "),n.TgZ(6,"span"),n.SDv(7,4),n.qZA()()(),n.TgZ(8,"div",5)(9,"div",6)(10,"mat-card")(11,"div",5)(12,"div",7)(13,"div",5)(14,"h2"),n.SDv(15,8),n.qZA()(),n.TgZ(16,"div",5)(17,"p",9),n.SDv(18,10),n.qZA()(),n.TgZ(19,"div",5)(20,"button",11),n.NdJ("click",function(){return X.verifyWithStripeEmbeddedAccountOnboard()}),n.TgZ(21,"span"),n.SDv(22,12),n.qZA(),n.YNc(23,mt,2,0,"mat-icon",13),n.qZA()(),n.TgZ(24,"div",14)(25,"a",15),n.NdJ("click",function(){return X.doItLater()}),n.TgZ(26,"span"),n.SDv(27,16),n.qZA(),n.YNc(28,Xt,2,0,"mat-icon",13),n.qZA()()()()()()()()()),2&y&&(n.xp6(23),n.Q6J("ngIf",X.stripeVerificationCheck),n.xp6(5),n.Q6J("ngIf",X.isLoading))},dependencies:[t.mk,t.O5,de.S$,Le.eB,Le.Nr,ge.Hw,ue.sN,ee.xw,ee.SQ,ee.Wh,ee.s9,ee.yH,se.oO]}),Pe})();function mr(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n.SDv(1,27),n.qZA())}function Or(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n.SDv(1,28),n.qZA())}function Vr(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-error"),n._uU(1),n.qZA()),2&Pe){const y=n.oxw(3);n.xp6(1),n.hij(" ",y.getErrorMessage()," ")}}function Qr(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n.SDv(1,29),n.qZA())}function qr(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div",3)(1,"div",4)(2,"div",5)(3,"h1",6),n.SDv(4,7),n.qZA(),n.TgZ(5,"div",8)(6,"mat-form-field",9)(7,"mat-label"),n.SDv(8,10),n.qZA(),n._UZ(9,"input",11,12),n.YNc(11,mr,2,0,"mat-error",13),n.YNc(12,Or,2,0,"mat-error",13),n.qZA(),n.TgZ(13,"mat-form-field",9)(14,"mat-label"),n.SDv(15,14),n.qZA(),n._UZ(16,"input",15,16),n.YNc(18,Vr,2,1,"mat-error",13),n.qZA(),n.TgZ(19,"mat-form-field",9)(20,"mat-label"),n.SDv(21,17),n.qZA(),n._UZ(22,"textarea",18,19),n.TgZ(24,"mat-hint",20),n._uU(25),n.TgZ(26,"span"),n.SDv(27,21),n.qZA()(),n.YNc(28,Qr,2,0,"mat-error",13),n.qZA(),n.TgZ(29,"div",22)(30,"button",23),n.NdJ("click",function(){n.CHM(y);const at=n.oxw(2);return n.KtG(at.saveFundraiser())}),n.TgZ(31,"span"),n.SDv(32,24),n.qZA()(),n.TgZ(33,"button",25),n.NdJ("click",function(){n.CHM(y);const at=n.oxw(2);return n.KtG(at.backToFundraiser())}),n.SDv(34,26),n.qZA()()()()()()}if(2&Pe){const y=n.MAs(23),X=n.oxw(2);n.xp6(9),n.s9C("placeholder",X.fradulentFullname),n.xp6(2),n.Q6J("ngIf",X.fraudulentFurndraiserForm.controls.fullName.errors),n.xp6(1),n.Q6J("ngIf",X.fraudulentFurndraiserForm.controls.fullName.errors&&X.fraudulentFurndraiserForm.controls.fullName.errors.pattern),n.xp6(4),n.s9C("placeholder",X.fradulentEmail),n.xp6(2),n.Q6J("ngIf",X.fraudulentFurndraiserForm.controls.email.invalid),n.xp6(4),n.s9C("placeholder",X.fradulentReason),n.xp6(3),n.hij("",y.value.length," / 150 "),n.xp6(3),n.Q6J("ngIf",X.fraudulentFurndraiserForm.controls.reason.errors),n.xp6(2),n.Q6J("disabled",!X.fraudulentFurndraiserForm.valid)}}function Tn(Pe,rr){if(1&Pe&&(n.TgZ(0,"form",1),n.YNc(1,qr,35,9,"div",2),n.qZA()),2&Pe){const y=n.oxw();n.Q6J("formGroup",y.fraudulentFurndraiserForm),n.xp6(1),n.Q6J("ngIf",!y.isLoading)}}function si(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div",31)(1,"h2",32),n._UZ(2,"img",33),n.TgZ(3,"span"),n.SDv(4,34),n.qZA()(),n.TgZ(5,"p",35),n.SDv(6,36),n.qZA(),n.TgZ(7,"button",37),n.NdJ("click",function(){n.CHM(y);const at=n.oxw(2);return n.KtG(at.backToFundraiser())}),n.SDv(8,38),n.qZA()()}}function di(Pe,rr){if(1&Pe&&n.YNc(0,si,9,0,"div",30),2&Pe){const y=n.oxw();n.Q6J("ngIf",!y.isLoading)}}function vi(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div",31)(1,"h2",32),n._UZ(2,"img",39),n.TgZ(3,"span"),n.SDv(4,40),n.qZA()(),n.TgZ(5,"p",35),n.SDv(6,41),n.qZA(),n.TgZ(7,"button",37),n.NdJ("click",function(){n.CHM(y);const at=n.oxw(2);return n.KtG(at.backToFundraiser())}),n.SDv(8,42),n.qZA()()}}function qi(Pe,rr){if(1&Pe&&n.YNc(0,vi,9,0,"div",30),2&Pe){const y=n.oxw();n.Q6J("ngIf",!y.isLoading)}}let Da=(()=>{class Pe{constructor(y,X,at){this.activatedRoute=y,this._router=X,this.fundraiserService=at,this.isLoading=!1,this.marked=!1,this.reported=!1,this.slug="",this.fradulentFullname="Puno Ime",this.fradulentEmail="Adresa E-Po\u0161te",this.fradulentReason="Opi\u0161ite razlog",this.slug=this.activatedRoute.snapshot.url[1].path.split(";")[0]}ngOnInit(){this.fraudulentFurndraiserForm=new l.nJ({fullName:new l.p4("",[l.kI.required,l.kI.minLength(1),l.kI.maxLength(200),l.kI.pattern("^[a-zA-Z ]*$")]),email:new l.p4("",[l.kI.required,l.kI.email,l.kI.pattern("^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$")]),reason:new l.p4("",[l.kI.required,l.kI.minLength(1),l.kI.maxLength(150)])})}getErrorMessage(){return this.fraudulentFurndraiserForm?.controls.email.hasError("required")?"Potrebna je adresa e-po\u0161te.":""}saveFundraiser(){if(this.fraudulentFurndraiserForm.markAllAsTouched(),this.fraudulentFurndraiserForm.valid){let y;this.isLoading=!1,y={name:this.fraudulentFurndraiserForm.get("fullName")?.value,email:this.fraudulentFurndraiserForm.get("email")?.value,message:this.fraudulentFurndraiserForm.get("reason")?.value,slug:this.slug},this.fundraiserService.markFraudulent(y).subscribe(X=>{this.reported=X.data.reported})}}backToFundraiser(){this._router.navigate([`/fundraising/${this.slug}`])}}return Pe.\u0275fac=function(y){return new(y||Pe)(n.Y36(e.gz),n.Y36(e.F0),n.Y36(P.R))},Pe.\u0275cmp=n.Xpm({type:Pe,selectors:[["app-mark-fundraiser-fraudulent"]],decls:3,vars:3,consts:function(){let rr,y,X,at,Ft,sr,xr,en,Pr,On,ei,Ai,ae,me,J,Oe;return rr="Prijavi problem",y="Puno Ime",X="Adresa e-po\u0161te",at="Opi\u0161ite razlog",Ft="Znaci",sr="Spremi",xr="Otkazati",en="Mora biti izme\u0111u 1 i 200 znakova",Pr="Samo slova su dopu\u0161tena.",On="Mora biti izme\u0111u 1 i 150 znakova",ei="Hvala na prijavi ovog prikupljanja sredstava",Ai="Pregledat \u0107emo prikupljanje sredstava kako bismo utvrdili kr\u0161i li na\u0161e smjernice. Hvala vam \u0161to nam poma\u017Eete odr\u017Eati platformu sigurnom.",ae="Natrag na sakuplja\u010D sredstava",me="Ne mo\u017Eete prijaviti ovu akciju prikupljanja sredstava",J="Va\u0161 zahtjev za prijavu ove kampanje za prikupljanje sredstava trenutno je u na\u0161em timu. Uskoro \u0107emo vam se javiti.",Oe="Natrag na sakuplja\u010D sredstava",[[3,"ngIf"],[3,"formGroup"],["ngClass","p-xxl","ngClass.sm","p-m","ngClass.xs","p-s","fxFlex","100%","fxLayout","row","fxLayoutAlign","start start","fxLayoutGap","5%",4,"ngIf"],["ngClass","p-xxl","ngClass.sm","p-m","ngClass.xs","p-s","fxFlex","100%","fxLayout","row","fxLayoutAlign","start start","fxLayoutGap","5%"],["fxFlex","100%","fxFlex.sm","65%","fxFlex.xs","90%","fxLayout","column","fxLayoutAlign","start start","fxLayoutGap","3%"],["fxFill","","fxLayout","column","fxLayoutAlign","start start "],[1,"mat-h1","mat-typography"],rr,["ngClass.lt-sm","w-100","ngClass","w-50"],["appearance","outline",1,"w-100"],y,["required","","matInput","","formControlName","fullName",3,"placeholder"],["fullName",""],[4,"ngIf"],X,["required","","matInput","","formControlName","email","type","email",3,"placeholder"],["email",""],at,["required","","matInput","","formControlName","reason","cdkTextareaAutosize","","cdkAutosizeMinRows","5","cdkAutosizeMaxRows","8","id","reason","maxlength","150",3,"placeholder"],["reason",""],["align","end"],Ft,["fxLayout","column","fxLayoutGap","4%"],["mat-flat-button","","color","accent","id","save","type","submit",1,"w-100",3,"disabled","click"],sr,["mat-stroked-button","","color","accent","type","button",1,"w-100",3,"click"],xr,en,Pr,On,["ngClass","p-xxl","ngClass.sm","p-xl","ngClass.xs","p-xl","fxFlex","100%","fxFill","","fxLayout","column","fxLayoutAlign","center center","fxLayoutGap","2%",4,"ngIf"],["ngClass","p-xxl","ngClass.sm","p-xl","ngClass.xs","p-xl","fxFlex","100%","fxFill","","fxLayout","column","fxLayoutAlign","center center","fxLayoutGap","2%"],[1,"mat-typography"],["height","16px","src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/checkCircleBlue/public"],ei,[1,"mat-typography",2,"max-width","380px"],Ai,["mat-flat-button","","color","accent",3,"click"],ae,["height","16px","src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/cancelCloseFilled/public"],me,J,Oe]},template:function(y,X){1&y&&(n.YNc(0,Tn,2,2,"ng-template",0),n.YNc(1,di,1,1,"ng-template",0),n.YNc(2,qi,1,1,"ng-template",0)),2&y&&(n.Q6J("ngIf",!X.reported),n.xp6(1),n.Q6J("ngIf",X.reported),n.xp6(1),n.Q6J("ngIf",X.marked))},dependencies:[l._Y,l.Fj,l.JJ,l.JL,l.Q7,l.nD,l.sg,l.u,t.mk,t.O5,T.nI,T.v_,T.pH,T.$V,ri.IC,F.k0,Le.eB,ee.xw,ee.SQ,ee.Wh,ee.s9,ee.yH,se.oO]}),Pe})();var ua=s(21802);function Pa(Pe,rr){1&Pe&&(n.TgZ(0,"mat-icon",10),n._UZ(1,"mat-spinner",11),n.qZA())}let za=(()=>{class Pe{constructor(y,X,at,Ft,sr){this.fundraiserService=y,this._router=X,this.dialogRef=at,this.notificationService=Ft,this.data=sr,this.isLoading=!1}ngOnInit(){}deleteFundraiser(){this.isLoading=!0,this.fundraiserService.deleteUserStyleByApiKey(this.data.apiKey,this.data.shortcode).subscribe(y=>{this.isLoading=!1,y&&200===y?.status&&(y?.data?.message&&"Deleted successfully"==y?.data?.message?(this.notificationService.openNotification("Widget deleted successful","","success"),this.dialogRef.close(!0),this._router.navigate(["/fundraising/widget"])):"Styling does not exist!"===y?.data?.message?(this.notificationService.openNotification("Widget does not exist!","","error"),this.dialogRef.close(!1)):this.notificationService.openNotification("Brisanje nije uspjelo.","","error"))},y=>{this.isLoading=!1,y?.error?.errors?.code&&"no widget found to delete"===y?.error?.errors?.message?this.notificationService.openNotification(`Error-${y?.error.errors?.code}: widget not found`,"","error"):(console.error("Error: ",y),this.notificationService.openNotification("Error Occurred","","error"))})}onNoClick(){this.dialogRef.close()}}return Pe.\u0275fac=function(y){return new(y||Pe)(n.Y36(P.R),n.Y36(e.F0),n.Y36(na.so),n.Y36(I.g),n.Y36(na.WI))},Pe.\u0275cmp=n.Xpm({type:Pe,selectors:[["app-delete-widget-style"]],decls:14,vars:2,consts:function(){let rr,y,X,at,Ft;return rr="Izbri\u0161i Widget",y="Jeste li sigurni da \u017Eelite trajno izbrisati ovaj widget?",X="Ne\u0107ete mo\u0107i povratiti podatke.",at="Otkazati",Ft="Izbrisati",[["mat-dialog-title",""],rr,y,X,["align","end"],["mat-button","","color","accent","id","button_deleteFundraiser_cancel",3,"click"],at,["id","button_deleteFundraiser_confirm","mat-flat-button","","color","warn",3,"disabled","click"],Ft,["class","m-l-xs",4,"ngIf"],[1,"m-l-xs"],["color","warn","diameter","20"]]},template:function(y,X){1&y&&(n.TgZ(0,"h2",0),n.SDv(1,1),n.qZA(),n.TgZ(2,"mat-dialog-content")(3,"p"),n.SDv(4,2),n.qZA(),n.TgZ(5,"p"),n.SDv(6,3),n.qZA()(),n.TgZ(7,"mat-dialog-actions",4)(8,"button",5),n.NdJ("click",function(){return X.onNoClick()}),n.SDv(9,6),n.qZA(),n.TgZ(10,"button",7),n.NdJ("click",function(){return X.deleteFundraiser()}),n.TgZ(11,"span"),n.SDv(12,8),n.qZA(),n.YNc(13,Pa,2,0,"mat-icon",9),n.qZA()()),2&y&&(n.xp6(10),n.Q6J("disabled",X.isLoading),n.xp6(3),n.Q6J("ngIf",X.isLoading))},dependencies:[t.O5,Le.eB,ge.Hw,ue.sN,na.uh,na.xY,na.H8],encapsulation:2}),Pe})();var ja=s(81953),lo=s(31180),ba=s(20469);const Ba=["class","html"];function Ho(Pe,rr){1&Pe&&(n.TgZ(0,"th",31),n.SDv(1,32),n.qZA()),2&Pe&&n.Q6J("ngClass","min-w-100px")}function Fo(Pe,rr){if(1&Pe&&(n.TgZ(0,"td",33)(1,"div",34),n._UZ(2,"img",35),n.qZA()()),2&Pe){const y=rr.$implicit;n.Udp("width",230,"px")("height",230,"px"),n.Q6J("ngClass","min-w-100px"),n.xp6(1),n.Udp("font-size",16,"px")("font-smooth","always")("margin-right",10,"px")("margin-top",10,"px")("margin-bottom",10,"px"),n.xp6(1),n.Udp("width",170,"px"),n.s9C("src",y.preview,n.LSH)}}const fs=function(){return{width:"200px"}};function ft(Pe,rr){1&Pe&&(n.TgZ(0,"th",36),n.SDv(1,37),n.qZA()),2&Pe&&n.Q6J("ngClass","min-w-100px")("ngStyle",n.DdM(2,fs))}function Lt(Pe,rr){if(1&Pe&&(n.TgZ(0,"td",38),n._uU(1),n.qZA()),2&Pe){const y=rr.$implicit;n.Udp("margin-right",20,"px"),n.Q6J("ngClass","min-w-100px")("ngStyle",n.DdM(5,fs)),n.xp6(1),n.hij(" ",y.fundraiserName," ")}}function it(Pe,rr){1&Pe&&(n.TgZ(0,"th",39),n.SDv(1,40),n.qZA())}function cr(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"td",41)(1,"div")(2,"div",42)(3,"div",43),n._uU(4),n.qZA(),n.TgZ(5,"div",44),n._UZ(6,"div",43),n.TgZ(7,"button",45),n.NdJ("mousedown",function(){const Ft=n.CHM(y).$implicit,sr=n.oxw(2);return n.KtG(sr.onMouseDown(Ft.shortcode))})("mouseup",function(){const Ft=n.CHM(y).$implicit,sr=n.oxw(2);return n.KtG(sr.onMouseUp(Ft.shortcode))})("touchstart",function(){const Ft=n.CHM(y).$implicit,sr=n.oxw(2);return n.KtG(sr.onMouseDown(Ft.shortcode))})("touchend",function(){const Ft=n.CHM(y).$implicit,sr=n.oxw(2);return n.KtG(sr.onMouseUp(Ft.shortcode))})("click",function(){const Ft=n.CHM(y).$implicit,sr=n.oxw(2);return n.KtG(sr.copyHtmlCode(Ft.shortcode,Ft.successUrl,Ft.failureUrl))}),n.TgZ(8,"mat-icon",46),n._uU(9,"content_copy"),n.qZA()()()()()()}if(2&Pe){const y=rr.$implicit,X=n.oxw(2);n.Udp("min-width",320,"px")("max-width",320,"px"),n.xp6(1),n.Udp("margin-right",10,"px"),n.xp6(2),n.Udp("margin-left",10,"px")("margin-right",10,"px")("margin-top",10,"px")("margin-bottom",10,"px")("min-width",310,"px"),n.xp6(1),n.hij(" ",X.truncateText(y.htmlCode,200)," "),n.xp6(3),n.Udp("color",X.buttonStates[y.shortcode]?"#51d171":null),n.s9C("matTooltip",X.matTooltip)}}function Fr(Pe,rr){1&Pe&&(n.TgZ(0,"th",39)(1,"div"),n.SDv(2,47),n.qZA()()),2&Pe&&(n.xp6(1),n.Udp("margin-left",25,"px"))}function Zr(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"td",41)(1,"div",48)(2,"div",49)(3,"button",50),n.NdJ("click",function(){const Ft=n.CHM(y).$implicit,sr=n.oxw(2);return n.KtG(sr.redirectToEdit(Ft.shortcode))}),n._UZ(4,"img",51),n.qZA(),n.TgZ(5,"button",50),n.NdJ("click",function(){const Ft=n.CHM(y).$implicit,sr=n.oxw(2);return n.KtG(sr.openDeleteFundraiserDialog(Ft.shortcode))}),n._UZ(6,"img",52),n.qZA()()()()}if(2&Pe){const y=n.oxw(2);n.xp6(1),n.Udp("margin-left",10,"px")("margin-top",10,"px")("margin-bottom",10,"px")("min-width",100,"px"),n.xp6(2),n.s9C("matTooltip",y.matTooltipEditWidget),n.xp6(2),n.s9C("matTooltip",y.matTooltipDeleteWidget)}}function Zi(Pe,rr){1&Pe&&n._UZ(0,"tr",53)}function aa(Pe,rr){1&Pe&&n._UZ(0,"tr",54)}function as(Pe,rr){1&Pe&&(n.TgZ(0,"div",55)(1,"div"),n._UZ(2,"img",56),n.qZA(),n.TgZ(3,"div",57)(4,"mat-label",58),n.tHW(5,59),n._UZ(6,"br"),n.N_p(),n.qZA()()())}function Io(Pe,rr){1&Pe&&(n.ynx(0),n._UZ(1,"app-page-loader"),n.BQk())}function Yo(Pe,rr){if(1&Pe){const y=n.EpF();n.ynx(0),n.TgZ(1,"div",2)(2,"mat-card",3)(3,"div",4)(4,"mat-card-title",5),n.SDv(5,6),n.qZA()(),n.TgZ(6,"div")(7,"button",7),n.NdJ("click",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.redirectToCreate())}),n.TgZ(8,"span"),n.SDv(9,8),n.qZA()()()(),n.TgZ(10,"div",9)(11,"div",10)(12,"div"),n._UZ(13,"img",11),n.qZA(),n.TgZ(14,"div",12)(15,"span"),n.SDv(16,13),n.qZA()()()()(),n.TgZ(17,"div",14)(18,"table",15),n.ynx(19,16),n.YNc(20,Ho,2,1,"th",17),n.YNc(21,Fo,3,18,"td",18),n.BQk(),n.ynx(22,19),n.YNc(23,ft,2,3,"th",20),n.YNc(24,Lt,2,6,"td",21),n.BQk(),n.ynx(25,22),n.YNc(26,it,2,0,"th",23),n.YNc(27,cr,10,20,"td",24),n.BQk(),n.ynx(28,25),n.YNc(29,Fr,3,2,"th",23),n.YNc(30,Zr,7,10,"td",26),n.BQk(),n.YNc(31,Zi,1,0,"tr",27),n.YNc(32,aa,1,0,"tr",28),n.qZA()(),n.YNc(33,as,7,0,"div",29),n.TgZ(34,"div",30),n.YNc(35,Io,2,0,"ng-container",0),n.qZA(),n.BQk()}if(2&Pe){const y=n.oxw(),X=n.MAs(2);n.xp6(7),n.Q6J("disabled",y.buttonDisable),n.xp6(3),n.Q6J("hidden",!y.buttonDisable),n.xp6(7),n.Q6J("hidden",y.isLoading),n.xp6(1),n.Q6J("dataSource",y.dataSource),n.xp6(13),n.Q6J("matHeaderRowDef",y.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",y.displayedColumns),n.xp6(1),n.Q6J("ngIf",y.dataSource.length<=0&&0==y.isLoading),n.xp6(1),n.Q6J("hidden",!y.isLoading),n.xp6(1),n.Q6J("ngIf",y.isLoading)("ngIfElse",X)}}function Rs(Pe,rr){1&Pe&&n._UZ(0,"app-page-loader")}let xs=[],gs=(()=>{class Pe{onResize(y){this.screenWidth=window.innerWidth}constructor(y,X,at,Ft,sr,xr){this._profileService=y,this.fundraiserService=X,this._accountService=at,this.sanitizer=Ft,this.router=sr,this.dialog=xr,this.matTooltip="Kopiraj",this.matTooltipEditWidget="Uredi",this.matTooltipDeleteWidget="Izbrisati",this.isLoading=!0,this.buttonDisable=!1,this.buttonColor="",this.buttonStates={},this.displayedColumns=["preview","fundraiserName","htmlCode","action"],this.dataSource=xs,this.screenWidth=0}ngAfterViewInit(){}ngOnInit(){1==C.N.production?(this.scriptUrl="https://plugin.whydonate.com/wp_styling.js",this.cssUrl="https://plugin.whydonate.com/wdplugin-style.css"):(this.scriptUrl="https://plugin.whydonate.com/wp_styling_development.js",this.cssUrl="https://plugin.whydonate.com/wdplugin-style-development.css"),Ui.w.setPreviousPath(""),this.screenWidth=window.innerWidth,this._profileService.getApiKey().subscribe(y=>{this.apiKey=y&&"ApiKeyNotAvailable"==y.data.response?"":y.data.data.api_key,this.fundraiserService.getUserFundraiserListByApiKey(this.apiKey).subscribe(X=>{Array.isArray(X.data)||(X.data=[]),0==X.data.length&&(this.buttonDisable=!0)}),this.list_generator(this.apiKey)})}list_generator(y){this.fundraiserService.getAllWidgetStylesByApiKey(y).subscribe(X=>{let Ft="";const sr=X.data.styles.map(en=>{switch(!0){case 1==en.doNotShowBox:Ft="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/Card_type-2/public";break;case 0==en.showDonationFormOnly&&0==en.background_allowed:Ft="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/Card_type-3/public";break;case 1==en.showDonationFormOnly&&0==en.background_allowed:Ft="https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/wpPreviewForm/public";break;case 0==en.showDonationFormOnly&&1==en.background_allowed:Ft="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/Card_type/public";break;case 1==en.showDonationFormOnly&&1==en.background_allowed:Ft="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/Card_type-1/public"}return{id:en.id,preview:Ft,fundraiserName:en.fundraiserName,htmlCode:this.generateWidgetHTML(en.shortcode,en.successUrl,en.failureUrl),shortcode:en.shortcode,successUrl:en.successUrl,failureUrl:en.failureUrl}});this.dataSource=sr,this.isLoading=!1})}generateWidgetHTML(y,X,at){var Ft="";return Ft+="<div>",Ft+="    <div",Ft+=`        id="widget-here-${y}"`,Ft+='        class="widget-here"',Ft+='        data-shortcode="'+y+'"',Ft+='        data-lang="auto"',Ft+='        value="donation-widget"',Ft+="    ></div>",Ft+="</div>",Ft+="<link",Ft+='    rel="stylesheet"',Ft+='    href="'+this.cssUrl+'"',Ft+="/>",Ft+="<script",Ft+='    src="'+this.scriptUrl+'"',(Ft+='    type="text/javascript"')+"><\/script>"}truncateText(y,X){return this.screenWidth<=1024&&(X=100),y.length<=X?y:y.slice(0,X)+"..."}redirectToEdit(y){this.router.navigate([`/fundraising/widget/${y}`])}redirectToCreate(){this.router.navigate(["/fundraising/widget/create"])}copyHtmlCode(y,X="",at=""){const Ft=document.createElement("textarea");Ft.value=this.generateWidgetHTML(y,X,at),document.body.appendChild(Ft),Ft.select(),document.execCommand("copy"),document.body.removeChild(Ft)}openDeleteFundraiserDialog(y){this.dialog.open(za,{data:{apiKey:this.apiKey,shortcode:y}}).afterClosed().subscribe(at=>{if(at){let Ft=(0,ja.H)(1e3).subscribe(sr=>{this.list_generator(this.apiKey),this.router.navigate(["/fundraising/widget"]),Ft.unsubscribe()})}})}onMouseDown(y){this.buttonStates[y]=!0}onMouseUp(y){this.buttonStates[y]=!1}}return Pe.\u0275fac=function(y){return new(y||Pe)(n.Y36(kr.H),n.Y36(P.R),n.Y36(q.B),n.Y36(Mt.H7),n.Y36(e.F0),n.Y36(na.uw))},Pe.\u0275cmp=n.Xpm({type:Pe,selectors:[["fundraiser-widget",8,"html"]],hostBindings:function(y,X){1&y&&n.NdJ("resize",function(Ft){return X.onResize(Ft)},!1,n.Jf7)},attrs:Ba,decls:3,vars:2,consts:function(){let rr,y,X,at,Ft,sr,xr,en;return rr="Ugradi donacijski widget na svoju vlastitu web stranicu",y="Stvorite Widget",X="Prije izrade widgeta napravite akciju prikupljanja sredstava.",at="Pregled",Ft="Naziv Prikupljanja Sredstava",sr="HTML Kod",xr="Akcija",en="Nema podataka za prikaz",[[4,"ngIf","ngIfElse"],["whydonateLoader",""],["ngClass","p-t-m","fxLayout","column"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","space-between center","fxLayoutAlign.xs","start start",1,"mat-elevation-z0","h-100"],[1,"m-l-s"],[1,"mat-card-title"],rr,["mat-flat-button","","color","accent",1,"button-button-style",3,"disabled","click"],y,[1,"m-l-s","p-l-m",3,"hidden"],["fxLayout","row","fxLayoutAlign","flex-start center","fxLayoutGap","1%"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/infoOrange/public"],["ngClass","p-b-xxs"],X,[1,"table-container",3,"hidden"],["mat-table","","multiTemplateDataRows","","fxFlex.xs","100%","fxFlex","100%","fxFlexFill","",3,"dataSource"],["matColumnDef","preview"],["mat-header-cell","",3,"ngClass",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass","width","height",4,"matCellDef"],["matColumnDef","fundraiserName"],["mat-header-cell","",3,"ngClass","ngStyle",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass","ngStyle","marginRight",4,"matCellDef"],["matColumnDef","htmlCode"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"min-width","max-width",4,"matCellDef"],["matColumnDef","action"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","p-t-xl p-b-xl","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[3,"hidden"],["mat-header-cell","",3,"ngClass"],at,["mat-cell","",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center"],[3,"src"],["mat-header-cell","",3,"ngClass","ngStyle"],Ft,["mat-cell","",3,"ngClass","ngStyle"],["mat-header-cell",""],sr,["mat-cell",""],["ngClass","p-l-s p-t-xs p-b-xs","fxLayout","column",1,"grey-bg","mat-body-1"],["fxFlex",""],["fxLayout","row","fxLayoutAlign","end center"],["mat-icon-button","",1,"copyLink","hover-class",3,"matTooltip","mousedown","mouseup","touchstart","touchend","click"],["size","3x"],xr,["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","8px"],["fxFlexOffset","10"],["mat-icon-button","",3,"matTooltip","click"],["height","28px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/editSmall/public"],["height","28px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/deleteSmall/public"],["mat-header-row",""],["mat-row",""],["fxLayout","row","fxLayoutAlign","center center",1,"p-t-xl","p-b-xl"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/balanceNoData/public"],["ngClass","p-l-m"],[1,"mat-title","m-0"],en]},template:function(y,X){if(1&y&&(n.YNc(0,Yo,36,10,"ng-container",0),n.YNc(1,Rs,1,0,"ng-template",null,1,n.W1O)),2&y){const at=n.MAs(2);n.Q6J("ngIf",!X.isLoading)("ngIfElse",at)}},dependencies:[t.mk,t.O5,t.PC,T.$V,de.S$,de.mi,Le.eB,ge.Hw,lo.gM,ba.BZ,ba.fO,ba.as,ba.w1,ba.Dz,ba.nj,ba.ge,ba.ev,ba.XQ,ba.Gk,ee.xw,ee.SQ,ee.Wh,ee.UT,ee.s9,ee.yH,se.oO,se.Zl,Z.f],encapsulation:2}),Pe})();var ps=s(85006),xe=s(63591),ht=s(69621);const He=["class","html"];function Ut(Pe,rr){1&Pe&&(n.TgZ(0,"mat-card-title",159),n.SDv(1,160),n.qZA())}function _r(Pe,rr){1&Pe&&(n.TgZ(0,"mat-card-title",159),n.SDv(1,161),n.qZA())}function $r(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-option",39),n._uU(1),n.qZA()),2&Pe){const y=rr.$implicit;n.Q6J("value",rr.index),n.xp6(1),n.hij(" ",y.title," ")}}function Fe(Pe,rr){1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,163),n.qZA()())}function er(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,164),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMinAmount," ")}}function pe(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,165),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMaxAmount," ")}}function dt(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,166),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMinAmount," ")}}function jt(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,167),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMaxAmount," ")}}function Ir(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,168),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMinAmount," ")}}function Ur(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,169),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMaxAmount," ")}}function En(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,170),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMinAmount," ")}}function Fn(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,171),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMaxAmount," ")}}function qn(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,172),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMinAmount," ")}}function hi(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,173),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMaxAmount," ")}}function _i(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,174),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMinAmount," ")}}function gi(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,175),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMaxAmount," ")}}function oa(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,176),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMinAmount," ")}}function Ea(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,177),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMaxAmount," ")}}function da(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,178),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMinAmount," ")}}function Za(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,179),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMaxAmount," ")}}function va(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,180),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMinAmount," ")}}function co(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,181),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMaxAmount," ")}}function ki(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,182),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMinAmount," ")}}function Li(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,183),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMaxAmount," ")}}function Qo(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,184),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMinAmount," ")}}function ka(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,185),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMaxAmount," ")}}function qo(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,186),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMinAmount," ")}}function Go(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,187),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&Pe){const y=n.oxw();n.xp6(4),n.AsE("\xa0",y.currencySymbol," ",y.currencyMaxAmount," ")}}function $o(Pe,rr){1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,188),n.qZA()())}function Vo(Pe,rr){1&Pe&&(n.TgZ(0,"mat-hint",162)(1,"span"),n.SDv(2,189),n.qZA()())}function ya(Pe,rr){1&Pe&&(n.TgZ(0,"div",190),n.SDv(1,191),n.qZA()),2&Pe&&n.Udp("margin-left",10,"px")("margin-right",10,"px")("margin-top",10,"px")("margin-bottom",10,"px")}function Ze(Pe,rr){if(1&Pe&&(n.TgZ(0,"div",190),n._uU(1),n.qZA()),2&Pe){const y=n.oxw();n.Udp("margin-left",10,"px")("margin-right",10,"px")("margin-top",10,"px")("margin-bottom",10,"px"),n.xp6(1),n.hij(" ",y.generatedWidgetHTML," ")}}function Wt(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div",192),n._UZ(1,"div",190),n.TgZ(2,"button",193),n.NdJ("mousedown",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.onMouseDown(at.shortcode))})("mouseup",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.onMouseUp(at.shortcode))})("click",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.copyHtmlCode(at.shortcode))}),n.TgZ(3,"mat-icon",194),n._uU(4,"content_copy"),n.qZA()()()}if(2&Pe){const y=n.oxw();n.xp6(2),n.Udp("color",y.buttonStates[y.shortcode]?"#51d171":null),n.s9C("matTooltip",y.matTooltip)}}function g(Pe,rr){1&Pe&&(n.ynx(0),n._UZ(1,"app-page-loader"),n.BQk())}function $(Pe,rr){1&Pe&&n._UZ(0,"app-page-loader")}function Bt(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"mat-chip",14),n.NdJ("click",function(){const Ft=n.CHM(y).$implicit,sr=n.oxw(2);return n.KtG(sr.selectCategory(Ft))}),n._UZ(1,"img",15),n.TgZ(2,"caption"),n._uU(3),n.qZA()()}if(2&Pe){const y=rr.$implicit,X=n.oxw(2);n.Q6J("ngClass",X.isSelected(y)?"selected-start-category-chip cursor-pointer":"start-category-chip cursor-pointer")("value",y),n.xp6(1),n.Q6J("src",y.image.src,n.LSH),n.xp6(2),n.Oqu(y.name)}}function hr(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div")(1,"mat-card-content",7)(2,"h2"),n.SDv(3,8),n.qZA(),n.TgZ(4,"mat-chip-list",9),n.YNc(5,Bt,4,4,"mat-chip",10),n.qZA(),n.TgZ(6,"div",11)(7,"button",12),n.NdJ("click",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.onSaveStep1())}),n.SDv(8,13),n.qZA()()()()}if(2&Pe){const y=n.oxw();n.xp6(5),n.Q6J("ngForOf",y._categories),n.xp6(2),n.Q6J("disabled",!y.selectedCategory)}}const Xr=function(Pe){return{"selected-card":Pe}};function fn(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"div")(1,"mat-card-content",16)(2,"h2"),n.SDv(3,17),n.qZA(),n.TgZ(4,"div",18)(5,"mat-card",19),n.NdJ("click",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.onBeneficiarySelect("yourself"))}),n.TgZ(6,"div",20)(7,"div",21),n._UZ(8,"img",22),n.qZA(),n.TgZ(9,"div",23)(10,"span",24),n.SDv(11,25),n.qZA()(),n.TgZ(12,"div",23)(13,"span",26),n.SDv(14,27),n.qZA()()()(),n.TgZ(15,"mat-card",19),n.NdJ("click",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.onBeneficiarySelect("someoneElse"))}),n.TgZ(16,"div",20)(17,"div",21),n._UZ(18,"img",28),n.qZA(),n.TgZ(19,"div",23)(20,"span",29),n.SDv(21,30),n.qZA()(),n.TgZ(22,"div",23)(23,"span",26),n.SDv(24,31),n.qZA()()()(),n.TgZ(25,"mat-card",19),n.NdJ("click",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.onBeneficiarySelect("charity"))}),n.TgZ(26,"div",20)(27,"div",23),n._UZ(28,"img",32),n.qZA(),n.TgZ(29,"div",23)(30,"span",24),n.SDv(31,33),n.qZA()(),n.TgZ(32,"div",23)(33,"span",26),n.SDv(34,34),n.qZA()()()()(),n.TgZ(35,"div",35)(36,"button",36),n.NdJ("click",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.backStep())}),n._uU(37," < "),n.TgZ(38,"span"),n.SDv(39,37),n.qZA()(),n.TgZ(40,"button",12),n.NdJ("click",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.onSaveStep2())}),n.SDv(41,38),n.qZA()()()()}if(2&Pe){const y=n.oxw();n.xp6(5),n.Q6J("ngClass",n.VKq(4,Xr,"yourself"===y.selectedBeneficiary)),n.xp6(10),n.Q6J("ngClass",n.VKq(6,Xr,"someoneElse"===y.selectedBeneficiary)),n.xp6(10),n.Q6J("ngClass",n.VKq(8,Xr,"charity"===y.selectedBeneficiary)),n.xp6(15),n.Q6J("disabled",!y.selectedBeneficiary)}}function Kn(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-option",59),n._uU(1),n.qZA()),2&Pe){const y=rr.$implicit;n.Q6J("value",y.description),n.xp6(1),n.hij(" ",y.description," ")}}function An(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n._uU(1,"Invalid Location"),n.qZA())}function Ki(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-option",59),n._UZ(1,"img",60),n._uU(2),n.qZA()),2&Pe){const y=rr.$implicit;n.Q6J("value",y.language_code),n.xp6(1),n.s9C("src",y.languageIcon,n.LSH),n.xp6(1),n.hij(" ",y.languageName," ")}}function Xa(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"mat-card-content",41)(1,"h2"),n.SDv(2,42),n.qZA(),n.TgZ(3,"mat-form-field",43)(4,"mat-label"),n.SDv(5,44),n.qZA(),n.TgZ(6,"input",45,46),n.NdJ("keyup",function(){n.CHM(y);const at=n.MAs(7),Ft=n.oxw(2);return n.KtG(Ft.onLocationInput(at.value))}),n.qZA(),n.TgZ(8,"mat-autocomplete",null,47),n.YNc(10,Kn,2,2,"mat-option",48),n.qZA(),n.YNc(11,An,2,0,"mat-error",5),n.qZA(),n.TgZ(12,"h2"),n.SDv(13,49),n.qZA(),n.TgZ(14,"div",50)(15,"label",51),n.SDv(16,52),n.qZA()(),n.TgZ(17,"mat-form-field",43)(18,"mat-label"),n.SDv(19,53),n.qZA(),n._UZ(20,"img",54),n.TgZ(21,"mat-select",55),n.YNc(22,Ki,3,3,"mat-option",48),n.qZA()(),n.TgZ(23,"div",35)(24,"button",36),n.NdJ("click",function(){n.CHM(y);const at=n.oxw(2);return n.KtG(at.backStep())}),n._uU(25," < "),n.TgZ(26,"span"),n.SDv(27,56),n.qZA()(),n.TgZ(28,"button",57),n.SDv(29,58),n.qZA()()()}if(2&Pe){const y=n.MAs(9),X=n.oxw(2);let at;n.xp6(6),n.Q6J("matAutocomplete",y),n.xp6(4),n.Q6J("ngForOf",X.locations),n.xp6(1),n.Q6J("ngIf",X.startFundraiserForm.controls.location.errors&&X.startFundraiserForm.controls.location.errors.location),n.xp6(9),n.MGl("src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/",X.selectedLanguage.value,"/w=17",n.LSH),n.xp6(1),n.Q6J("formControl",X.selectedLanguage),n.xp6(1),n.Q6J("ngForOf",X.languagecodes),n.xp6(6),n.Q6J("disabled",null==(at=X.startFundraiserForm.get("location"))?null:at.invalid)}}function fi(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n.SDv(1,73),n.qZA())}function Ko(Pe,rr){1&Pe&&(n.TgZ(0,"mat-error"),n.SDv(1,74),n.qZA())}function uo(Pe,rr){if(1&Pe&&(n.TgZ(0,"mat-option",59),n._UZ(1,"img",60),n._uU(2),n.qZA()),2&Pe){const y=rr.$implicit;n.Q6J("value",y.language_code),n.xp6(1),n.s9C("src",y.languageIcon,n.LSH),n.xp6(1),n.hij(" ",y.languageName," ")}}function No(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"mat-card-content",61)(1,"h2"),n.SDv(2,62),n.qZA(),n.TgZ(3,"mat-form-field",63)(4,"mat-label"),n.SDv(5,64),n.qZA(),n.TgZ(6,"input",65,66),n.NdJ("input",function(){n.CHM(y);const at=n.oxw(2);return n.KtG(at.onNameInput())}),n.qZA(),n.TgZ(8,"mat-hint",11),n._uU(9),n.TgZ(10,"span"),n.SDv(11,67),n.qZA()(),n.YNc(12,fi,2,0,"mat-error",5),n.YNc(13,Ko,2,0,"mat-error",5),n.qZA(),n.TgZ(14,"h2"),n.SDv(15,68),n.qZA(),n.TgZ(16,"div",50)(17,"label",51),n.SDv(18,69),n.qZA()(),n.TgZ(19,"mat-form-field",43)(20,"mat-label"),n.SDv(21,70),n.qZA(),n._UZ(22,"img",54),n.TgZ(23,"mat-select",55),n.YNc(24,uo,3,3,"mat-option",48),n.qZA()(),n.TgZ(25,"div",35)(26,"button",36),n.NdJ("click",function(){n.CHM(y);const at=n.oxw(2);return n.KtG(at.backStep())}),n._uU(27," < "),n.TgZ(28,"span"),n.SDv(29,71),n.qZA()(),n.TgZ(30,"button",57),n.SDv(31,72),n.qZA()()()}if(2&Pe){const y=n.MAs(7),X=n.oxw(2);let at;n.xp6(9),n.hij("",y.value.length," / 1-75 "),n.xp6(3),n.Q6J("ngIf",null==X.startFundraiserForm.controls.name||null==X.startFundraiserForm.controls.name.errors?null:X.startFundraiserForm.controls.name.errors.maxlength),n.xp6(1),n.Q6J("ngIf",(null==X.startFundraiserForm.controls.name?null:X.startFundraiserForm.controls.name.errors)&&(null==X.startFundraiserForm.controls.name||null==X.startFundraiserForm.controls.name.errors?null:X.startFundraiserForm.controls.name.errors.pattern)),n.xp6(9),n.MGl("src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/",X.selectedLanguage.value,"/w=17",n.LSH),n.xp6(1),n.Q6J("formControl",X.selectedLanguage),n.xp6(1),n.Q6J("ngForOf",X.languagecodes),n.xp6(6),n.Q6J("disabled",null==(at=X.startFundraiserForm.get("name"))?null:at.invalid)}}function es(Pe,rr){if(1&Pe&&(n.TgZ(0,"div"),n.YNc(1,Xa,30,7,"mat-card-content",39),n.YNc(2,No,32,7,"mat-card-content",40),n.qZA()),2&Pe){const y=n.oxw();n.xp6(1),n.Q6J("ngIf","yourself"===y.selectedBeneficiary),n.xp6(1),n.Q6J("ngIf","someoneElse"===y.selectedBeneficiary||"charity"===y.selectedBeneficiary)}}function wo(Pe,rr){if(1&Pe){const y=n.EpF();n.TgZ(0,"mat-card",75)(1,"mat-card-content")(2,"div",76),n._UZ(3,"img",77),n.TgZ(4,"span",78),n.SDv(5,79),n.qZA(),n._uU(6," \xa0\xa0 "),n.TgZ(7,"a",80),n.NdJ("click",function(){n.CHM(y);const at=n.oxw();return n.KtG(at.browseFundraiser())}),n.SDv(8,81),n.qZA()()()()}}const Fi=[{path:"fundraising/widget",component:gs,canActivate:[Zo.a]},{path:"widget/:shortcode",component:(()=>{class Pe{onResize(y){this.screenWidth=window.innerWidth}constructor(y,X,at,Ft,sr,xr,en,Pr,On){this._profileService=y,this.fundraiserService=X,this._accountService=at,this.route=Ft,this.sanitizer=sr,this.router=xr,this.donationService=en,this._location=Pr,this.notificationService=On,this.matTooltip="Kopiraj",this.buttonStates={},this.shortcode=0,this.id="id",this.selectedInterval="",this.fundraiser_list=[],this.style_data={},this.oneTimeCheck="",this.monthlyCheck="",this.yearlyCheck="",this.targetAmountByCurrency="",this.currencyCode="",this.currencySymbol="\u20ac",this.currencyMaxAmount="",this.currencyMinAmount="",this.disabled=!1,this.isLoading=!0,this.previewBoxShadowNumber=1,this.showDonateButton=1,this.showProgressBar=2,this.showRaisedAmount=3,this.showEndDate=4,this.doNotShowBox=0,this.generatedWidgetHTML="",this.createFundraiserSelection="Molimo Odaberite Prikupljanje Sredstava",this.defaultFundraiser={title:this.createFundraiserSelection,slug:"",id:"",currency_code:"eur"},this.lang=this._accountService.getLocaleId(),this.showDonationFormOnlyChecked=!1,this.showMainImageChecked=!0,this.valueChangeFirstAmount=25,this.valueChangeSecondAmount=50,this.valueChangeThirdAmount=75,this.valueChangeFourthAmount=100,this.valueChangeFirstAmountMonthly=5,this.valueChangeSecondAmountMonthly=10,this.valueChangeThirdAmountMonthly=25,this.valueChangeFourthAmountMonthly=100,this.valueChangeFirstAmountYearly=50,this.valueChangeSecondAmountYearly=100,this.valueChangeThirdAmountYearly=250,this.valueChangeFourthAmountYearly=500,this.showAmountOtherChecked=!0,this.showHideOneTimeChecked=!0,this.showHideMonthlyChecked=!0,this.showHideYearlyChecked=!0,this.onetimeOpenAmountChecked=!1,this.monthlyOpenAmountChecked=!1,this.yearlyOpenAmountChecked=!1,this.currentPrimaryColor="#32BF55",this.currentSecondaryColor="#363396",this.boxShadowNumber=1,this.currentButtonRadius=30,this.valuechangeDonationLabel="My Safe Donation",this.selectedFundraiser=-1,this.widgetFontName="Roboto",this.showDonateCard=!0,this.amount_target=0,this.fundraiserSuccessUrl="",this.fundraiserFailUrl="",this.selectFundraiserCreate=0,this.api_key="",this.screenWidth=0,1==C.N.production?(this.scriptUrl="https://plugin.whydonate.com/wp_styling.js",this.cssUrlPage=this.sanitizer.bypassSecurityTrustResourceUrl("https://plugin.whydonate.com/wdplugin-style.css"),this.cssUrl="https://plugin.whydonate.com/wdplugin-style.css"):(this.scriptUrl="https://plugin.whydonate.com/wp_styling_development.js",this.cssUrlPage=this.sanitizer.bypassSecurityTrustResourceUrl("https://plugin.whydonate.com/wdplugin-style-development.css"),this.cssUrl="https://plugin.whydonate.com/wdplugin-style-development.css"),console.log(this.scriptUrl)}ngOnInit(){var y=this;Ui.w.setPreviousPath(""),this.route.params.subscribe(at=>{this.shortcode=at.shortcode});let X=this;this.loadScript(this.scriptUrl).then(()=>{this._profileService.getApiKey().subscribe(at=>{this.api_key=at&&"ApiKeyNotAvailable"==at.data.response?"":at.data.data.api_key,this.fundraiserService.getUserFundraiserListByApiKey(this.api_key).subscribe(Ft=>{Array.isArray(Ft.data)||(Ft.data=[]),"create"==this.shortcode&&0==Ft.data.length&&this.router.navigate(["/fundraising/widget"])}),this.fundraiserService.getWidgetStyleByShortcode(this.shortcode).subscribe(function(){var Ft=(0,Dn.Z)(function*(sr){let xr;"Not_Avaliable"!=sr?.data?.message?(y.id=`${sr.data.id}_def`,y.style_data=sr.data,xr=yield y.callpreview_html_generator(sr.data)):(y.id=y.shortcode,y.style_data=sr.data,xr=yield y.callpreview_html_generator({id:y.id+"_defs"})),y.donation_box=y.sanitizer.bypassSecurityTrustHtml(y.sanitizeHTML(xr.donation_box)),y.donation_window_modal=y.sanitizer.bypassSecurityTrustHtml(y.sanitizeHTML(xr.donation_window_modal)),y.fundraiserService.getUserFundraiserListByApiKey(y.api_key).subscribe(en=>{if(Array.isArray(en.data)||(en.data=[]),y.fundraiser_list="create"==y.shortcode?[y.defaultFundraiser,...en.data]:en.data,"message"in y.style_data){0!=y.style_data.oneTimeCheck?y.selectedInterval="once":0==y.style_data.oneTimeCheck&&0!=y.style_data.monthlyCheck?y.selectedInterval="monthly":0==y.style_data.oneTimeCheck&&0==y.style_data.monthlyCheck&&0!=y.style_data.yearlyCheck&&(y.selectedInterval="yearly");const On=y.fundraiser_list.findIndex(ei=>ei.slug==y.style_data.slugName);y.selectedFundraiser=-1!==On?On:0,y.getCurrencyDetailsAndRenderDefault()}else{0!=y.style_data.oneTimeCheck?y.selectedInterval="once":0==y.style_data.oneTimeCheck&&0!=y.style_data.monthlyCheck?y.selectedInterval="monthly":0==y.style_data.oneTimeCheck&&0==y.style_data.monthlyCheck&&0!=y.style_data.yearlyCheck&&(y.selectedInterval="yearly");const On=y.fundraiser_list.findIndex(ei=>ei.slug==y.style_data.slugName);-1!==On&&(y.selectedFundraiser=On),y.fundraiser_list&&y.selectedFundraiser&&(y.currencyCode=y.fundraiser_list[y.selectedFundraiser].currency_code),y.fundraiserSuccessUrl=y.style_data.successUrl,y.fundraiserFailUrl=y.style_data.failureUrl,y.getCurrencyDetailsAndRender()}let Pr=document.querySelectorAll(".mat-expansion-panel-body");Array.from(Pr).forEach(On=>{On.style.paddingLeft="0",On.style.paddingRight="0"}),y.generatedWidgetHTML=y.generateWidgetHTML(y.shortcode)})});return function(sr){return Ft.apply(this,arguments)}}())})}),document.body.addEventListener("change",function(at){var Ft=at.target;let sr=document.getElementById("donation-option-amount"),xr=document.getElementById("donation-option-open-amount");Ft&&Ft instanceof HTMLInputElement&&"radio"===Ft.type&&Ft.name===`period-intervals-${X.id}`&&("once"==Ft.value?(X.selectedInterval="once",X.changeFirstAmountByIntervals(X.valueChangeFirstAmount),X.changeSecondAmountByIntervals(X.valueChangeSecondAmount),X.changeThirdAmountByIntervals(X.valueChangeThirdAmount),X.changeForthAmountByIntervals(X.valueChangeFourthAmount),0==X.onetimeOpenAmountChecked?(sr.style.display="flex",xr.style.display="none"):(sr.style.display="none",xr.style.display="flex")):"monthly"==Ft.value?(X.selectedInterval="monthly",X.changeFirstAmountByIntervals(X.valueChangeFirstAmountMonthly),X.changeSecondAmountByIntervals(X.valueChangeSecondAmountMonthly),X.changeThirdAmountByIntervals(X.valueChangeThirdAmountMonthly),X.changeForthAmountByIntervals(X.valueChangeFourthAmountMonthly),0==X.monthlyOpenAmountChecked?(sr.style.display="flex",xr.style.display="none"):(sr.style.display="none",xr.style.display="flex")):"yearly"==Ft.value&&(X.selectedInterval="yearly",X.changeFirstAmountByIntervals(X.valueChangeFirstAmountYearly),X.changeSecondAmountByIntervals(X.valueChangeSecondAmountYearly),X.changeThirdAmountByIntervals(X.valueChangeThirdAmountYearly),X.changeForthAmountByIntervals(X.valueChangeFourthAmountYearly),0==X.yearlyOpenAmountChecked?(sr.style.display="flex",xr.style.display="none"):(sr.style.display="none",xr.style.display="flex")))}),this.screenWidth=window.innerWidth,this.checkDisabledState()}ngAfterViewInit(){var y=document.getElementById("preview_box");y&&y.querySelectorAll("[onclick]").forEach(function(at){at.removeAttribute("onclick")})}loadScript(y){return new Promise((X,at)=>{if(document.querySelector(`script[src="${y}"]`))X();else{const sr=document.createElement("script");sr.src=y,sr.onload=()=>X(),sr.onerror=at,document.head.appendChild(sr)}})}callpreview_html_generator(y){if("function"==typeof window.shortcode_func_html_generator)return window.edit_preview_html_generator(y,this.lang);console.error("shortcode_func_html_generator not found in the loaded script")}sanitizeHTML(y){const X=(new DOMParser).parseFromString(y,"text/html");return X.querySelectorAll("[onclick]").forEach(Ft=>{Ft.removeAttribute("onclick")}),X.body.innerHTML}goBack(){this.router.navigate(["/fundraising/widget"])}changeFontFamily(){var y=document.getElementById("preview_box");if(y)for(var X=y.getElementsByTagName("*"),at=0;at<X.length;at++)X[at].style.fontFamily=this.widgetFontName}getCurrencyDetailsAndRender(){this.fundraiserService.getMaxTargetAmountByCurrency(this.currencyCode).subscribe(y=>{this.currencySymbol=y?.data?.list_of_currencies?.[0]?.symbol,this.currencyMaxAmount=y?.data?.list_of_currencies?.[0]?.max_target_amount,this.showDonationFormOnlyChecked=0!=this.style_data.showDonationFormOnly,this.showDonationFormOnly(this.showDonationFormOnlyChecked),this.showAmountOtherChecked=0!=this.style_data.otherChecked,this.showOtherAmount(this.showAmountOtherChecked),this.showHideOneTimeChecked=0!=this.style_data.oneTimeCheck,this.showHideOneTime(this.showHideOneTimeChecked),this.showHideMonthlyChecked=0!=this.style_data.monthlyCheck,this.showHideMonthly(this.showHideMonthlyChecked),this.showHideYearlyChecked=0!=this.style_data.yearlyCheck,this.showHideYearly(this.showHideYearlyChecked),this.currentPrimaryColor=this.style_data.primaryColor,this.onchangePrimaryColor(),this.currentSecondaryColor=this.style_data.secondaryColor,this.onchangeSecondaryColor(),this.currentButtonRadius=this.style_data.buttonRadius,this.changeButtonRadius(this.currentButtonRadius),this.valuechangeDonationLabel=this.style_data.donationTitle,this.changeDonationLabel(this.valuechangeDonationLabel),this.onetimeOpenAmountChecked=0!=this.style_data.open_amount,this.openorcustomamount(),this.monthlyOpenAmountChecked=0!=this.style_data.open_amount_monthly,this.openorcustomamount_monthly(),this.yearlyOpenAmountChecked=0!=this.style_data.open_amount_yearly,this.openorcustomamount_yearly(),this.showMainImageChecked=0!=this.style_data.background_allowed,this.showMainImage(),this.boxShadowNumber=this.style_data.card_shadow,this.updateBoxShadow(),this.valueChangeFirstAmount=this.style_data.firstAmount,this.changeFirstAmount(),this.valueChangeSecondAmount=this.style_data.secondAmount,this.changeSecondAmount(),this.valueChangeThirdAmount=this.style_data.thirdAmount,this.changeThirdAmount(),this.valueChangeFourthAmount=this.style_data.forthAmount,this.changeForthAmount(),this.widgetFontName=this.style_data.font,this.showDonateCard=1!=this.style_data.doNotShowBox,this.onShowDonateButtonOnly(),this.onFundraiserSelectionChange(),this.isLoading=!1})}getCurrencyDetailsAndRenderDefault(){this.showDonationFormOnly(this.showDonationFormOnlyChecked),this.changeFirstAmount(),this.changeSecondAmount(),this.changeThirdAmount(),this.changeForthAmount(),this.showOtherAmount(this.showAmountOtherChecked),this.showHideOneTime(this.showHideOneTimeChecked),this.showHideMonthly(this.showHideMonthlyChecked),this.showHideYearly(this.showHideYearlyChecked),this.onchangePrimaryColor(),this.onchangeSecondaryColor(),this.changeButtonRadius(this.currentButtonRadius),this.changeDonationLabel(this.valuechangeDonationLabel),this.openorcustomamount(),this.openorcustomamount_monthly(),this.openorcustomamount_yearly(),this.showMainImage(),this.updateBoxShadow(),this.onShowDonateButtonOnly(),this.onFundraiserCurrenyDefault(),this.changeFontFamily(),this.isLoading=!1}onshowDonationFormOnly(){this.showDonationFormOnly(this.showDonationFormOnlyChecked)}showDonationFormOnly(y){var X=document.getElementById("appearance-preview");const at=document.getElementById("select-donate-button"),Ft=document.getElementById("select-progress-bar"),sr=document.getElementById("select-raised-amount"),xr=document.getElementById("select-show-days-left"),en=document.getElementById("select-donot-show-box"),Pr=document.getElementById("select-show-donate-form-only");let On=document.getElementById("form-image-background"),ei=document.getElementById("style-container-shortcode"),Ai=document.getElementById(`progress-bar-modal-${this.id}`),ae=document.getElementById(this.id);y?(X&&(X.style.opacity="0"),at&&(at.disabled=y),Ft&&(Ft.disabled=y),sr&&(sr.disabled=y),xr&&(xr.disabled=y),en&&(en.disabled=y),Pr&&(Pr.value="1"),null!=On&&this.showMainImageChecked&&(On.style.display=""),ei&&(ei.style.display="none"),Ai&&(Ai.style.display=""),ae&&(ae.style.display="none")):(X&&(X.style.opacity="1"),at&&(at.disabled=y),Ft&&(Ft.disabled=y),sr&&(sr.disabled=y),xr&&(xr.disabled=y),en&&(en.disabled=y),Pr&&(Pr.value="0"),On&&this.showMainImageChecked&&(On.style.display="none"),ei&&(ei.style.display=""),Ai&&(Ai.style.display="none"),ae&&(ae.style.display="")),this.updateBoxShadow()}changeFirstAmount(){console.log({id:this.id});var y=document.getElementById(`amount-boundary-box-1-label-${this.id}`);y&&("once"==this.selectedInterval?y.innerHTML=this.currencySymbol+this.valueChangeFirstAmount:"monthly"==this.selectedInterval?y.innerHTML=this.currencySymbol+this.valueChangeFirstAmountMonthly:"yearly"==this.selectedInterval&&(y.innerHTML=this.currencySymbol+this.valueChangeFirstAmountYearly)),this.checkDisabledState()}changeSecondAmount(){var y=document.getElementById(`amount-boundary-box-2-label-${this.id}`);y&&("once"==this.selectedInterval?y.innerHTML=this.currencySymbol+this.valueChangeSecondAmount:"monthly"==this.selectedInterval?y.innerHTML=this.currencySymbol+this.valueChangeSecondAmountMonthly:"yearly"==this.selectedInterval&&(y.innerHTML=this.currencySymbol+this.valueChangeSecondAmountYearly),this.checkDisabledState())}changeThirdAmount(){var y=document.getElementById(`amount-boundary-box-3-label-${this.id}`);y&&("once"==this.selectedInterval?y.innerHTML=this.currencySymbol+this.valueChangeThirdAmount:"monthly"==this.selectedInterval?y.innerHTML=this.currencySymbol+this.valueChangeThirdAmountMonthly:"yearly"==this.selectedInterval&&(y.innerHTML=this.currencySymbol+this.valueChangeThirdAmountYearly)),this.checkDisabledState()}changeForthAmount(){var y=document.getElementById(`amount-boundary-box-4-label-${this.id}`);y&&("once"==this.selectedInterval?y.innerHTML=this.currencySymbol+this.valueChangeFourthAmount:"monthly"==this.selectedInterval?y.innerHTML=this.currencySymbol+this.valueChangeFourthAmountMonthly:"yearly"==this.selectedInterval&&(y.innerHTML=this.currencySymbol+this.valueChangeFourthAmountYearly)),this.checkDisabledState()}onshowOtherAmount(){this.showOtherAmount(this.showAmountOtherChecked)}showOtherAmount(y){const X=document.getElementById(`amount-boundary-box-other-s-${this.id}`),at=document.getElementById("select-other");X&&(X.style.cssText=y?"display: flex !important;":"display: none !important;"),at&&(at.value=y?"1":"0")}changeFirstAmountByIntervals(y){document.getElementById(`amount-boundary-box-1-label-${this.id}`).innerHTML=this.currencySymbol+y}changeSecondAmountByIntervals(y){document.getElementById(`amount-boundary-box-2-label-${this.id}`).innerHTML=this.currencySymbol+y}changeThirdAmountByIntervals(y){document.getElementById(`amount-boundary-box-3-label-${this.id}`).innerHTML=this.currencySymbol+y}changeForthAmountByIntervals(y){document.getElementById(`amount-boundary-box-4-label-${this.id}`).innerHTML=this.currencySymbol+y}checkDisabledState(){this.disabled=!this.showHideOneTimeChecked&&!this.showHideMonthlyChecked&&!this.showHideYearlyChecked||-1===this.selectedFundraiser||""==this.fundraiser_list[this.selectedFundraiser].slug||!this.onetimeOpenAmountChecked&&(this.valueChangeFirstAmount<this.currencyMinAmount||this.valueChangeFirstAmount>this.currencyMaxAmount)||!this.onetimeOpenAmountChecked&&(this.valueChangeSecondAmount<this.currencyMinAmount||this.valueChangeSecondAmount>this.currencyMaxAmount)||!this.onetimeOpenAmountChecked&&(this.valueChangeThirdAmount<this.currencyMinAmount||this.valueChangeThirdAmount>this.currencyMaxAmount)||!this.onetimeOpenAmountChecked&&(this.valueChangeFourthAmount<this.currencyMinAmount||this.valueChangeFourthAmount>this.currencyMaxAmount)||!this.monthlyOpenAmountChecked&&(this.valueChangeFirstAmountMonthly<this.currencyMinAmount||this.valueChangeFirstAmountMonthly>this.currencyMaxAmount)||!this.monthlyOpenAmountChecked&&(this.valueChangeSecondAmountMonthly<this.currencyMinAmount||this.valueChangeSecondAmountMonthly>this.currencyMaxAmount)||!this.monthlyOpenAmountChecked&&(this.valueChangeThirdAmountMonthly<this.currencyMinAmount||this.valueChangeThirdAmountMonthly>this.currencyMaxAmount)||!this.monthlyOpenAmountChecked&&(this.valueChangeFourthAmountMonthly<this.currencyMinAmount||this.valueChangeFourthAmountMonthly>this.currencyMaxAmount)||!this.yearlyOpenAmountChecked&&(this.valueChangeFirstAmountYearly<this.currencyMinAmount||this.valueChangeFirstAmountYearly>this.currencyMaxAmount)||!this.yearlyOpenAmountChecked&&(this.valueChangeSecondAmountYearly<this.currencyMinAmount||this.valueChangeSecondAmountYearly>this.currencyMaxAmount)||!this.yearlyOpenAmountChecked&&(this.valueChangeThirdAmountYearly<this.currencyMinAmount||this.valueChangeThirdAmountYearly>this.currencyMaxAmount)||!this.yearlyOpenAmountChecked&&(this.valueChangeFourthAmountYearly<this.currencyMinAmount||this.valueChangeFourthAmountYearly>this.currencyMaxAmount)}onshowHideOneTime(){this.showHideOneTime(this.showHideOneTimeChecked);const y=document.getElementById("select-amount-section");y&&(y.style.display=this.showHideOneTimeChecked?"none":"block"),0==this.showHideMonthlyChecked&&0==this.showHideYearlyChecked&&(this.showHideOneTimeChecked=!0),this.checkDisabledState()}showHideOneTime(y){var X;(X=document.getElementById(`preview-intervals-onetime-${this.id}`))&&(X.style.display=y?"flex":"none"),(X=document.getElementById(`preview-intervals-onetime-bar-${this.id}`))&&(X.style.display=y?"":"none")}onshowHideMonthly(){this.showHideMonthly(this.showHideMonthlyChecked)}showHideMonthly(y){var X;(X=document.getElementById(`preview-intervals-monthly-${this.id}`))&&(X.style.display=y?"flex":"none"),(X=document.getElementById(`preview-intervals-monthly-bar-${this.id}`))&&(X.style.display=y?"":"none"),this.checkDisabledState()}onshowHideYearly(){this.showHideYearly(this.showHideYearlyChecked),this.checkDisabledState()}showHideYearly(y){var X;(X=document.getElementById(`preview-intervals-yearly-${this.id}`))&&(X.style.display=y?"flex":"none"),(X=document.getElementById(`preview-intervals-yearly-bar-${this.id}`))&&(X.style.display=y?"":"none"),this.checkDisabledState()}onchangePrimaryColor(){this.changePrimaryColor(this.currentPrimaryColor)}changePrimaryColor(y){var X=document.getElementById("set-color-input-field-primary"),at=document.getElementById("set-color-input-primary");X&&(X.value=y),at&&(at.value=y);var Ft=document.getElementById(`amount-boundary-box-1-s-${this.id}`);Ft&&(Ft.style.backgroundColor=y);var sr=document.getElementById(`preview-select-amount-options-${this.id}`);sr&&sr.classList.add("disabled-overlay");var xr=document.getElementById("currency-options");xr&&xr.classList.add("disabled-overlay"),document.querySelectorAll('[id="apreview-raised-bar"]').forEach(Pr=>{Pr.style.backgroundColor=y})}onchangeSecondaryColor(){this.changeSecondaryColor(this.currentSecondaryColor)}changeSecondaryColor(y){var X=document.getElementById("set-color-input-field-secondary"),at=document.getElementById("set-color-input-secondary");X&&(X.value=y),at&&(at.value=y);var Ft=document.getElementById(`apreview-donate-btn-${this.id}`);Ft&&(Ft.style.backgroundColor=y);var sr=document.getElementById(`preview-header-${this.id}`);sr&&(sr.style.backgroundColor=y);var xr=document.getElementById(`preview-amount-next-btn-${this.id}`);if(xr&&(xr.style.backgroundColor=y),"once"==this.selectedInterval){var en=document.getElementById(`preview-intervals-onetime-bar-${this.id}`);en&&(en.style.backgroundColor=y)}if("monthly"==this.selectedInterval){var Pr=document.getElementById(`preview-intervals-monthly-bar-${this.id}`);Pr&&(Pr.style.backgroundColor=y)}if("yearly"==this.selectedInterval){var On=document.getElementById(`preview-intervals-yearly-bar-${this.id}`);On&&(On.style.backgroundColor=y)}}onchangeButtonRadius(){this.changeButtonRadius(this.currentButtonRadius)}changeButtonRadius(y){const X=document.getElementById(`apreview-donate-btn-${this.id}`),at=document.getElementById(`preview-amount-next-btn-${this.id}`);if(X&&at){const Ft=y+"px";X.style.borderRadius=Ft,at.style.borderRadius=Ft}}onchangeDonationLabel(){this.changeDonationLabel(this.valuechangeDonationLabel)}changeDonationLabel(y){const X=document.getElementById(`preview-header-label-${this.id}`);X&&(X.innerText=y)}generateRandomCombination(){const y="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";let at="";for(let Ft=0;Ft<5;Ft++)at+=y[Math.floor(Math.random()*y.length)];return at}openorcustomamount(){let y=document.getElementById("donation-option-amount"),X=document.getElementById("donation-option-open-amount"),at=document.getElementById("select-first-amount"),Ft=document.getElementById("select-second-amount"),sr=document.getElementById("select-third-amount"),xr=document.getElementById("select-forth-amount");this.onetimeOpenAmountChecked?(at&&(at.disabled=!0),Ft&&(Ft.disabled=!0),sr&&(sr.disabled=!0),xr&&(xr.disabled=!0)):(at&&(at.disabled=!1),Ft&&(Ft.disabled=!1),sr&&(sr.disabled=!1),xr&&(xr.disabled=!1)),"once"===this.selectedInterval&&(this.onetimeOpenAmountChecked?(y&&(y.style.display="none"),X&&(X.style.display="")):(y&&(y.style.display="flex",y.style.flexDirection="row",y.style.gap="16px"),X&&(X.style.display="none"))),this.checkDisabledState()}openorcustomamount_monthly(){let y=document.getElementById("donation-option-amount"),X=document.getElementById("donation-option-open-amount"),at=document.getElementById("select-first-amount-monthly"),Ft=document.getElementById("select-second-amount-monthly"),sr=document.getElementById("select-third-amount-monthly"),xr=document.getElementById("select-forth-amount-monthly");this.monthlyOpenAmountChecked?(at&&(at.disabled=!0),Ft&&(Ft.disabled=!0),sr&&(sr.disabled=!0),xr&&(xr.disabled=!0)):(at&&(at.disabled=!1),Ft&&(Ft.disabled=!1),sr&&(sr.disabled=!1),xr&&(xr.disabled=!1)),"monthly"===this.selectedInterval&&(this.monthlyOpenAmountChecked?(y&&(y.style.display="none"),X&&(X.style.display="")):(y&&(y.style.display="flex",y.style.flexDirection="row",y.style.gap="16px"),X&&(X.style.display="none"))),this.checkDisabledState()}openorcustomamount_yearly(){let y=document.getElementById("donation-option-amount"),X=document.getElementById("donation-option-open-amount"),at=document.getElementById("select-first-amount-yearly"),Ft=document.getElementById("select-second-amount-yearly"),sr=document.getElementById("select-third-amount-yearly"),xr=document.getElementById("select-forth-amount-yearly");this.yearlyOpenAmountChecked?(at&&(at.disabled=!0),Ft&&(Ft.disabled=!0),sr&&(sr.disabled=!0),xr&&(xr.disabled=!0)):(at&&(at.disabled=!1),Ft&&(Ft.disabled=!1),sr&&(sr.disabled=!1),xr&&(xr.disabled=!1)),"yearly"===this.selectedInterval&&(this.yearlyOpenAmountChecked?(y&&(y.style.display="none"),X&&(X.style.display="")):(y&&(y.style.display="flex",y.style.flexDirection="row",y.style.gap="16px"),X&&(X.style.display="none"))),this.checkDisabledState()}boxShadowSet(y){let X="";return"none"==y?X="none ":1==y?(this.previewBoxShadowNumber=1,this.boxShadowNumber=parseInt(y),X="0 2px 1px -1px #0003, 0 1px 1px #00000024, 0 1px 3px #0000001f;"):2==y?(this.previewBoxShadowNumber=2,this.boxShadowNumber=parseInt(y),X="0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f"):3==y&&(this.previewBoxShadowNumber=4,this.boxShadowNumber=parseInt(y),X="0 2px 4px -1px #0003, 0 4px 5px #00000024, 0 1px 10px #0000001f"),X}updateBoxShadow(){let y;if(y=this.showDonationFormOnlyChecked?document.getElementById(`preview-card-${this.id}`):document.getElementById("appearance-preview-card-shortcode"),y){y.style.boxShadow="none";let X=y.getAttribute("style")||"",at="";at=this.boxShadowSet(this.showDonateCard?this.boxShadowNumber:"none"),y.setAttribute("style",X+";box-shadow:"+at+";")}}showMainImage(){let y=document.getElementById("widget-image-background"),X=document.getElementById(`form-image-background-${this.id}`),at=document.getElementById("appearance-preview-card-shortcode"),Ft=document.getElementById(`preview-card-${this.id}`);Ft&&(Ft.style.minHeight="340px !important"),this.showMainImageChecked?(y&&(y.style.display=""),X&&(X.style.display=""),at&&(at.style.height=0==this.amount_target&&0==this.show_donation_details?"312px":"390px")):(y&&(y.style.display="none"),X&&(X.style.display="none"),at&&(at.style.height=0==this.amount_target&&0==this.show_donation_details?"130px":"230px")),Ft&&Ft.style.setProperty("min-height","340px","important")}onShowDonateButtonOnly(){let y=this.showDonateCard,X=document.getElementById("appearance-preview-card-shortcode"),at=document.getElementById("apreview-progress-bar"),Ft=document.getElementById("apreview-amount-raised"),sr=document.getElementById("widget-image-background");y?(X&&X.style.removeProperty("background"),at&&(at.style.display=""),Ft&&(Ft.style.display=""),sr&&1==this.showMainImageChecked&&(sr.style.display="")):(X&&(X.style.setProperty("background","transparent","important"),X.style.boxShadow="none  !important"),at&&(at.style.display="none"),Ft&&(Ft.style.display="none"),sr&&1==this.showMainImageChecked&&(sr.style.display="none")),1==this.showDonationFormOnlyChecked&&(this.showDonationFormOnlyChecked=y,this.onshowDonationFormOnly()),this.updateBoxShadow()}onFundraiserCurrenyDefault(){(null!=this.fundraiser_list[1]?.slug||null!=this.fundraiser_list[1]?.currency_code)&&this.donationService.getDonationWpConfigurationOfFundraiser(this.fundraiser_list[1]?.slug,this.fundraiser_list[1]?.currency_code).subscribe(y=>{this.currencySymbol=y?.data?.symbol,this.currencyMinAmount=parseInt(y?.data?.customdonationconfiguration?.min_donation_amount),this.currencyMaxAmount=parseInt(y?.data?.customdonationconfiguration?.max_donation_amount),this.valueChangeFirstAmount=y?.data?.customdonationconfiguration?.onetime?.default_1,this.valueChangeSecondAmount=y?.data?.customdonationconfiguration?.onetime?.default_2,this.valueChangeThirdAmount=y?.data?.customdonationconfiguration?.onetime?.default_3,this.valueChangeFourthAmount=y?.data?.customdonationconfiguration?.onetime?.default_4,this.valueChangeFirstAmountMonthly=y?.data?.customdonationconfiguration?.monthly?.default_1,this.valueChangeSecondAmountMonthly=y?.data?.customdonationconfiguration?.monthly?.default_2,this.valueChangeThirdAmountMonthly=y?.data?.customdonationconfiguration?.monthly?.default_3,this.valueChangeFourthAmountMonthly=y?.data?.customdonationconfiguration?.monthly?.default_4,this.valueChangeFirstAmountYearly=y?.data?.customdonationconfiguration?.yearly?.default_1,this.valueChangeSecondAmountYearly=y?.data?.customdonationconfiguration?.yearly?.default_2,this.valueChangeThirdAmountYearly=y?.data?.customdonationconfiguration?.yearly?.default_3,this.valueChangeFourthAmountYearly=y?.data?.customdonationconfiguration?.yearly?.default_4,this.currencyCode=y?.data?.currency,this.changeFirstAmount(),this.changeSecondAmount(),this.changeThirdAmount(),this.changeForthAmount(),document.querySelectorAll(".currency-symbol").forEach(at=>{at.innerHTML=null==this.currencySymbol?"\u20ac":this.currencySymbol})})}checkVideoUrl(y){return y.match(/^(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/)(\d+)(?:\S+)?$/)?this.generateVimeoIframe(y):y.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:embed\/|watch\?v=|v\/|shorts\/)|youtu\.be\/)([\w\-]+)(?:\S+)?$/)?this.generateYouTubeIframe(y):"unknown"}generateVimeoIframe(y){return`https://vumbnail.com/${this.getVideoIdVimeo(y)}.jpg`}generateYouTubeIframe(y){return`https://i.ytimg.com/vi/${this.getVideoIdYoutube(y)}/mqdefault.jpg`}getVideoIdYoutube(y){const at=y?.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:embed\/|watch\?v=|v\/|shorts\/)|youtu\.be\/)([\w\-]+)(?:\S+)?$/);return at&&at[1]?at[1]:""}getVideoIdVimeo(y){const at=y?.match(/^(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/)(\d+)(?:\S+)?$/);return at&&at[1]?at[1]:""}onFundraiserSelectionChange(){this.fundraiserService.getFundraiserBySlug(this.fundraiser_list[this.selectedFundraiser].slug,this.lang).subscribe(X=>{let at=document.getElementById("widget-image-background");console.log(`form-image-background-${this.id}`);let Ft=document.getElementById("form-image-background"),xr=(document.getElementById("appearance-preview-card-shortcode"),document.querySelectorAll('[id="apreview-target-amount-div"]')),en=document.querySelectorAll('[id="apreview-days-left"]'),Pr=document.querySelectorAll('[id="apreview-collected-amount-div"]'),On=document.querySelectorAll('[id="apreview-raised-bar"]'),ei=document.querySelectorAll('[id="apreview-full-bar"]'),Ai=document.querySelectorAll('[id="apreview-achieved-percent"]'),ae=document.querySelectorAll('[id="apreview-amount-raised"]'),me=document.querySelectorAll('[id="apreview-progress-info"]'),J=document.querySelectorAll('[id="apreview-target-amount-div-label-1"]');this.show_donation_details=X.data.result.show_donation_details,this.amount_target=X.data.result.amount_target,this.end_date=X.data.result.end_date,0==this.amount_target?xr.forEach(gr=>{gr.style.display="none"}):this.amount_target>0&&xr.forEach(gr=>{gr.style.display="inherit"}),"9999-12-31"==this.end_date?en.forEach(gr=>{gr.style.display="none"}):"9999-12-31"!=this.end_date&&en.forEach(gr=>{gr.style.display="inherit"}),1==this.show_donation_details?(Pr.forEach(gr=>{gr.style.display="inherit"}),On.forEach(gr=>{gr.style.display="inherit"}),Ai.forEach(gr=>{gr.style.display="inherit"}),J.forEach(gr=>{gr.style.display="inherit"}),ei.forEach(gr=>{gr.style.display="inherit"})):0==this.show_donation_details&&(Pr.forEach(gr=>{gr.style.display="none"}),On.forEach(gr=>{gr.style.display="none"}),Ai.forEach(gr=>{gr.style.display="none"}),J.forEach(gr=>{gr.style.display="none"}),ei.forEach(gr=>{gr.style.display="none"})),0==this.show_donation_details&&"9999-12-31"==this.end_date?ae.forEach(gr=>{gr.style.display="none"}):1==this.show_donation_details&&"9999-12-31"!=this.end_date?(ae.forEach(gr=>{gr.style.display="flex"}),me.forEach(gr=>{gr.style.justifyContent="space-between"})):0==this.show_donation_details&&"9999-12-31"!=this.end_date&&me.forEach(gr=>{gr.style.justifyContent="end"}),0==this.show_donation_details&&0==this.amount_target?ae.forEach(gr=>{gr.style.display="none"}):0==this.show_donation_details&&this.amount_target>0&&ae.forEach(gr=>{gr.style.display="inherit"});let Zt,xt=X.data.result.background.video;Zt=""==xt||null==xt?X.data.result.background.image||"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/production/fundraiser_header/default/public":this.checkVideoUrl(xt),at.src=Zt,Ft.src=Zt,this.showMainImage()}),this.donationService.getDonationWpConfigurationOfFundraiser(this.fundraiser_list[this.selectedFundraiser].slug,this.fundraiser_list[this.selectedFundraiser].currency_code).subscribe(X=>{this.currencySymbol=X?.data?.symbol,this.currencyMinAmount=parseInt(X?.data?.customdonationconfiguration?.min_donation_amount),this.currencyMaxAmount=parseInt(X?.data?.customdonationconfiguration?.max_donation_amount),this.valueChangeFirstAmount=X?.data?.customdonationconfiguration?.onetime?.default_1,this.valueChangeSecondAmount=X?.data?.customdonationconfiguration?.onetime?.default_2,this.valueChangeThirdAmount=X?.data?.customdonationconfiguration?.onetime?.default_3,this.valueChangeFourthAmount=X?.data?.customdonationconfiguration?.onetime?.default_4,this.valueChangeFirstAmountMonthly=X?.data?.customdonationconfiguration?.monthly?.default_1,this.valueChangeSecondAmountMonthly=X?.data?.customdonationconfiguration?.monthly?.default_2,this.valueChangeThirdAmountMonthly=X?.data?.customdonationconfiguration?.monthly?.default_3,this.valueChangeFourthAmountMonthly=X?.data?.customdonationconfiguration?.monthly?.default_4,this.valueChangeFirstAmountYearly=X?.data?.customdonationconfiguration?.yearly?.default_1,this.valueChangeSecondAmountYearly=X?.data?.customdonationconfiguration?.yearly?.default_2,this.valueChangeThirdAmountYearly=X?.data?.customdonationconfiguration?.yearly?.default_3,this.valueChangeFourthAmountYearly=X?.data?.customdonationconfiguration?.yearly?.default_4,this.currencyCode=X?.data?.currency,this.changeFirstAmount(),this.changeSecondAmount(),this.changeThirdAmount(),this.changeForthAmount(),document.querySelectorAll(".currency-symbol").forEach(Ft=>{Ft.innerHTML=null==this.currencySymbol?"\u20ac":this.currencySymbol})})}generateWidgetHTML(y){var X="";return X+="<div>",X+="    <div",X+=`        id="widget-here-${y}"`,X+='        class="widget-here"',X+='        data-shortcode="'+y+'"',X+='        data-lang="auto"',X+='        value="donation-widget"',X+="    ></div>",X+="</div>",X+="<link",X+='    rel="stylesheet"',X+='    href="'+this.cssUrl+'"',X+="/>",X+="<script",X+='    src="'+this.scriptUrl+'"',(X+='    type="text/javascript"')+"><\/script>"}copyHtmlCode(y){const X=document.createElement("textarea");X.value=this.generateWidgetHTML(y),document.body.appendChild(X),X.select(),document.execCommand("copy"),document.body.removeChild(X)}onMouseDown(y){this.buttonStates[y]=!0}onMouseUp(y){this.buttonStates[y]=!1}change_onetime(y){0==this.showHideMonthlyChecked&&0==this.showHideYearlyChecked&&(this.showHideOneTimeChecked=!0,y.source.checked=!0,this.notificationService.openNotification("Gre\u0161ka: Barem jedan interval uvijek treba biti odabran.","","error")),this.checkDisabledState()}change_monthly(y){0==this.showHideOneTimeChecked&&0==this.showHideYearlyChecked&&(this.showHideMonthlyChecked=!0,y.source.checked=!0,this.notificationService.openNotification("Gre\u0161ka: Barem jedan interval uvijek treba biti odabran.","","error")),this.checkDisabledState()}change_yearly(y){0==this.showHideOneTimeChecked&&0==this.showHideMonthlyChecked&&(this.showHideYearlyChecked=!0,y.source.checked=!0,this.notificationService.openNotification("Gre\u0161ka: Barem jedan interval uvijek treba biti odabran.","","error")),this.checkDisabledState()}save_code(){var y=document.getElementById("set-color-input-field")?.value;let sr,xr,en,Pr;document.getElementById("fundraiser-success-url"),document.getElementById("fundraiser-failure-url"),this.showDonateCard?(sr=2,xr=3,en=4,Pr=0):(sr=0,xr=0,en=0,Pr=1),this.fundraiserService.updateWidgetStyleByApiKey(this.api_key,{styleId:9999,pluginStyle:"Custom",fundraiserName:this.fundraiser_list[this.selectedFundraiser].title,slugName:this.fundraiser_list[this.selectedFundraiser].slug,slugId:this.fundraiser_list[this.selectedFundraiser].id,shortcode:this.shortcode,primaryColor:this.currentPrimaryColor,secondaryColor:this.currentSecondaryColor,successUrl:"",failureUrl:"",background_allowed:this.showMainImageChecked?1:0,styleName:"from_frontend",oneTimeCheck:this.showHideOneTimeChecked?1:0,monthlyCheck:this.showHideMonthlyChecked?2:0,yearlyCheck:this.showHideYearlyChecked?3:0,firstAmountCheck:1,secondAmountCheck:2,thirdAmountCheck:3,forthAmountCheck:4,firstAmount:this.valueChangeFirstAmount,secondAmount:this.valueChangeSecondAmount,thirdAmount:this.valueChangeThirdAmount,forthAmount:this.valueChangeFourthAmount,firstAmountMonthly:this.valueChangeFirstAmountMonthly,secondAmountMonthly:this.valueChangeSecondAmountMonthly,thirdAmountMonthly:this.valueChangeThirdAmountMonthly,fourthAmountMonthly:this.valueChangeFourthAmountMonthly,firstAmountYearly:this.valueChangeFirstAmountYearly,secondAmountYearly:this.valueChangeSecondAmountYearly,thirdAmountYearly:this.valueChangeThirdAmountYearly,fourthAmountYearly:this.valueChangeFourthAmountYearly,otherChecked:1==this.showAmountOtherChecked?1:0,showDonateButton:1,showProgressBar:sr,showRaisedAmount:xr,showEndDate:en,doNotShowBox:Pr,showDonationFormOnly:1==this.showDonationFormOnlyChecked?1:0,colorCode:y,font:this.widgetFontName,buttonRadius:this.currentButtonRadius,donationTitle:"",open_amount:0==this.onetimeOpenAmountChecked?0:1,open_amount_monthly:0==this.monthlyOpenAmountChecked?0:1,open_amount_yearly:0==this.yearlyOpenAmountChecked?0:1,card_shadow:this.boxShadowNumber}).subscribe(ei=>{this.router.navigate(["/fundraising/widget"])})}}return Pe.\u0275fac=function(y){return new(y||Pe)(n.Y36(kr.H),n.Y36(P.R),n.Y36(q.B),n.Y36(e.gz),n.Y36(Mt.H7),n.Y36(e.F0),n.Y36(M.l),n.Y36(t.Ye),n.Y36(I.g))},Pe.\u0275cmp=n.Xpm({type:Pe,selectors:[["fundraiser-widget-edit",8,"html"]],hostBindings:function(y,X){1&y&&n.NdJ("resize",function(Ft){return X.onResize(Ft)},!1,n.Jf7)},inputs:{showDonationFormOnlyChecked:"showDonationFormOnlyChecked",showMainImageChecked:"showMainImageChecked",valueChangeFirstAmount:"valueChangeFirstAmount",valueChangeSecondAmount:"valueChangeSecondAmount",valueChangeThirdAmount:"valueChangeThirdAmount",valueChangeFourthAmount:"valueChangeFourthAmount",valueChangeFirstAmountMonthly:"valueChangeFirstAmountMonthly",valueChangeSecondAmountMonthly:"valueChangeSecondAmountMonthly",valueChangeThirdAmountMonthly:"valueChangeThirdAmountMonthly",valueChangeFourthAmountMonthly:"valueChangeFourthAmountMonthly",valueChangeFirstAmountYearly:"valueChangeFirstAmountYearly",valueChangeSecondAmountYearly:"valueChangeSecondAmountYearly",valueChangeThirdAmountYearly:"valueChangeThirdAmountYearly",valueChangeFourthAmountYearly:"valueChangeFourthAmountYearly",showAmountOtherChecked:"showAmountOtherChecked",showHideOneTimeChecked:"showHideOneTimeChecked",showHideMonthlyChecked:"showHideMonthlyChecked",showHideYearlyChecked:"showHideYearlyChecked",onetimeOpenAmountChecked:"onetimeOpenAmountChecked",monthlyOpenAmountChecked:"monthlyOpenAmountChecked",yearlyOpenAmountChecked:"yearlyOpenAmountChecked",currentPrimaryColor:"currentPrimaryColor",currentSecondaryColor:"currentSecondaryColor",boxShadowNumber:"boxShadowNumber",currentButtonRadius:"currentButtonRadius",valuechangeDonationLabel:"valuechangeDonationLabel",selectedFundraiser:"selectedFundraiser",widgetFontName:"widgetFontName",showDonateCard:"showDonateCard"},attrs:He,decls:290,vars:131,consts:function(){let rr,y,X,at,Ft,sr,xr,en,Pr,On,ei,Ai,ae,me,J,Oe,Ke,xt,Zt,gr,zr,nn,dn,yi,Ca,Do,Ro,Po,_o,ts,Wo,Ii,ko,$s,Is,il,Xs,Ss,Fs,Vs,Js,Qs,Cs,Ds,os,fl,Ws,al,Al,ol,ui,Cl,Ja,ss,Ps,Tl,ai,sl;return rr="Popis widgeta",y="Naziv Prikupljanja Sredstava",X="Prika\u017Ei Karticu",at="Prika\u017Ei Glavnu Sliku",Ft="Iska\u010Du\u0107i/Fiksni Obrazac",sr="Iznos Donacije (Neobavezno)",xr="Jednokratno",en="Prilago\u0111eni Iznos",Pr="Otvoreni Iznos",On="Mjese\u010Dno",ei="Prilago\u0111eni Iznos",Ai="Otvoreni Iznos",ae="Godi\u0161nje",me="Prilago\u0111eni Iznos",J="Otvoreni Iznos",Oe="Autoriser un autre montant (permettre au donateur de d\xE9cider du montant du don)",Ke="Stiliziranje",xt="Kartica sjena",Zt="Nijedan",gr="Srednje",zr="Visoko",nn="Osnovna boja",dn="Sekundarna boja",yi="Tipografija",Ca="Polumjer Gumba",Do="Spremi kod",Ro="Pregled",Po="Kod za kopiranje:",_o="Stvorite Widget",ts="Uredi Widget",Wo="Molimo odaberite prikupljanje sredstava",Ii="Najmanji iznos je",ko="Najve\u0107i iznos je",$s="Najmanji iznos je",Is="Najve\u0107i iznos je",il="Najmanji iznos je",Xs="Najve\u0107i iznos je",Ss="Najmanji iznos je",Fs="Najve\u0107i iznos je",Vs="Najmanji iznos je",Js="Najve\u0107i iznos je",Qs="Najmanji iznos je",Cs="Najve\u0107i iznos je",Ds="Najmanji iznos je",os="Najve\u0107i iznos je",fl="Najmanji iznos je",Ws="Najve\u0107i iznos je",al="Najmanji iznos je",Al="Najve\u0107i iznos je",ol="Najmanji iznos je",ui="Najve\u0107i iznos je",Cl="Najmanji iznos je",Ja="Najve\u0107i iznos je",ss="Najmanji iznos je",Ps="Najve\u0107i iznos je",Tl="Molimo odaberite font",ai="Raspon je izme\u0111u 0 i 30",sl="Molimo prvo spremite widget",[[3,"hidden"],["rel","stylesheet",3,"href"],[1,"p-t-m"],["mat-button","","color","accent","id","goBackButton",3,"click"],["height","16px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/arrowBackAccent/public"],rr,["fxLayout","column",1,"mat-elevation-z0"],["fxLayout","row","fxLayout.md","column","fxLayout.xs","column","fxLayout.sm","column",1,"left-side","mat-elevation-z0"],["fxLayout","column","fxFlex","55"],[1,"p-l-m"],["class","mat-card-title",4,"ngIf","ngIfElse"],["editWidget",""],["fxFlex","60","id","appearance-option-section",1,"mat-elevation-z0"],["id","appearance-option-section"],["fxLayout","column"],["appearance","outline"],["for","fundraiser-list-dropdown"],y,["id","fundraiser-list-dropdown",3,"value","placeholder","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["class","mat-error","align","end",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"m-b-s"],["id","show-donate-button-only","name","show-donate-button-only","color","primary",3,"ngModel","ngModelChange","change"],["for","show-donate-button-only"],X,["color","primary","type","checkbox","id","select-background-image-show","name","select-background-image-show",3,"ngModel","disabled","ngModelChange","change"],at,["color","primary","type","checkbox","id","select-show-donate-form-only","name","select-show-only-donate-form",3,"ngModel","disabled","ngModelChange","change"],Ft,["id","select-interval-section"],[1,"m-t-s","m-b-s"],["for","select-interval-label"],sr,["id","select-interval-options"],["id","select-interval-onetime","name","select-interval-onetime","color","primary",3,"ngModel","ngModelChange","change"],["for","select-interval-onetime"],xr,["fxLayout","row","fxLayoutAlign","start center",1,"m-t-s","m-b-s","grey-button-toggle-group"],[1,"custom-button-toggle-group",3,"ngModel","ngModelChange","change"],[3,"value"],en,Pr,["fxLayout","row wrap","fxLayoutGap","10px","id","select-amount-options"],["appearance","outline","color","primary","fxFlex","20"],["matPrefix","",1,"currency-input-field"],["color","primary","matInput","","min","5","type","number","id","select-first-amount","name","select-amount-value-first",3,"ngModel","ngModelChange","change"],["color","primary","matInput","","type","number","min","5","name","select-amount-value-second","id","select-second-amount",3,"ngModel","ngModelChange","change"],["color","primary","matInput","","type","number","min","5","name","select-amount-value-third","id","select-third-amount",3,"ngModel","ngModelChange","change"],["color","primary","matInput","","type","number","min","5","name","select-amount-value-forth","id","select-forth-amount",3,"ngModel","ngModelChange","change"],["color","primary","id","select-interval-monthly","name","select-interval-monthly",3,"ngModel","ngModelChange","change"],["for","select-interval-monthly"],On,["fxLayout","row","fxLayoutAlign","start center",1,"m-t-s","m-b-s"],["id","open-amount-monthly","name","open-amount-monthly",1,"custom-button-toggle-group",3,"ngModel","ngModelChange","change"],ei,Ai,["id","select-amount-section-monthly"],["fxLayout","row","fxLayoutGap","10px","id","select-amount-options-monthly",1,"m-t-s"],["color","primary","matInput","","type","number","min","5","id","select-first-amount-monthly","name","select-amount-value-monthly","value","valueChangeFirstAmountMonthly",3,"ngModel","ngModelChange","change"],["color","primary","matInput","","type","number","min","5","name","select-amount-value-second","id","select-second-amount-monthly","value","valueChangeSecondAmountMonthly",3,"ngModel","ngModelChange","change"],["color","primary","matInput","","type","number","min","5","name","select-amount-value-third","id","select-third-amount-monthly",3,"ngModel","ngModelChange","change"],["color","primary","matInput","","type","number","min","5","name","select-amount-value-forth","id","select-forth-amount-monthly",3,"ngModel","ngModelChange","change"],["id","show-amount-error-monthly"],["color","primary","id","select-interval-yearly","name","select-interval-yearly","checked","",3,"ngModel","ngModelChange","change"],ae,me,J,["fxLayoutGap","10px","fxLayout","row","id","select-amount-section-yearly",1,"m-t-s","m-b-s"],["color","primary","matInput","","type","number","min","5","id","select-first-amount-yearly","name","select-yearly-amount-value-first","value","valueChangeFirstAmountYearly",3,"ngModel","ngModelChange","change"],["color","primary","matInput","","type","number","min","5","name","select-yearly-amount-value-second","id","select-second-amount-yearly","value","valueChangeSecondAmountYearly",3,"ngModel","ngModelChange","change"],["color","primary","matInput","","type","number","min","5","name","select-yearly-amount-value-second","id","select-third-amount-yearly","value","valueChangeThirdAmountYearly",3,"ngModel","ngModelChange","change"],["color","primary","matInput","","type","number","min","5","name","select-amount-value-forth","id","select-forth-amount-yearly",3,"ngModel","ngModelChange","change"],["id","show-amount-error"],["fxLayout","row","fxLayoutAlign","start center",1,"select-amount-options"],["color","primary","id","select-other","name","select-amount-other",3,"ngModel","ngModelChange","change"],Oe,["id","customise-branding",1,"m-t-m"],[1,"mat-elevation-z0"],["for","donation-form-label"],Ke,["fxLayout","row","fxLayoutGap","4%","fxFill",""],["fxLayout","column","fxLayoutAlign","center center"],xt,["name","card-shadow","id","card-shadow",1,"custom-button-toggle-group",3,"ngModel","ngModelChange","change"],["name","card-shadow","id","card-shadow",3,"value"],Zt,gr,zr,["id","set-color"],["fxFlex","50","appearance","outline","floatLabel","always","color","primary"],nn,["matInput","","type","text","placeholder","Ex. #ffff","id","set-color-input-field-primary","name","set-color-input-field-primary",3,"ngModel","ngModelChange","change"],["matSuffix","","mat-icon-button",""],[1,"material-icons-outlined"],["matInput","","type","color","id","set-color-input-primary","name","set-color-input-primary",3,"ngModel","ngModelChange","change"],["fxFlex","50","appearance","outline","floatLabel","always","color","primary",1,"m-l-s"],dn,["matInput","","type","text","placeholder","Ex. #ffff","id","set-color-input-field-secondary","name","set-color-input-field-secondary",3,"ngModel","ngModelChange","change"],["matInput","","type","color","id","set-color-input-secondary","name","set-color-input-secondary",3,"ngModel","ngModelChange","change"],["id","set-button-radius"],["fxFlex","50","appearance","outline"],["for","selectTypo"],yi,["id","selectTypo",3,"ngModel","ngModelChange","selectionChange"],["value","Roboto",2,"font-family","'Roboto', sans-serif"],["id","raleway","value","Raleway",2,"font-family","'Raleway', sans-serif"],["value","Amatic SC",2,"font-family","'Amatic SC', sans-serif"],["value","Caveat",2,"font-family","'Caveat', sans-serif"],["value","Comfortaa",2,"font-family","'Comfortaa', sans-serif"],["value","EB Garamond",2,"font-family","'EB Garamond', sans-serif"],["value","Lobster",2,"font-family","'Lobster', sans-serif"],["value","Lora",2,"font-family","'Lora', sans-serif"],["value","Merriweather",2,"font-family","'Merriweather', sans-serif"],["value","Montserrat",2,"font-family","'Montserrat', sans-serif"],["value","Nunito",2,"font-family","'Nunito', sans-serif"],["value","Oswald",2,"font-family","'Oswald', sans-serif"],["value","Pacifico",2,"font-family","'Pacifico', sans-serif"],["value","Playfair Display",2,"font-family","'Playfair Display', sans-serif"],["value","Spectral",2,"font-family","'Spectral', sans-serif"],["value","Open Sans",2,"font-family","'Open Sans', sans-serif"],["value","Lato",2,"font-family","'Lato', sans-serif"],["value","Yatra One",2,"font-family","'Yatra One', sans-serif"],["value","Arvo",2,"font-family","'Arvo', sans-serif"],["value","Ubuntu",2,"font-family","'Ubuntu', sans-serif"],["value","PT Serif",2,"font-family","'PT Serif', sans-serif"],["value","Slabo 13px",2,"font-family","'Slabo 13px', sans-serif"],["value","Source Sans Pro",2,"font-family","'Source Sans Pro', sans-serif"],["value","PT Sans",2,"font-family","'PT Sans', sans-serif"],["value","Noto Serif",2,"font-family","'Noto Serif', sans-serif"],["value","Nunito Sans",2,"font-family","'Nunito Sans', sans-serif"],["value","Concert One",2,"font-family","'Concert One', sans-serif"],["value","Prompt",2,"font-family","'Prompt', sans-serif"],["value","Work Sans",2,"font-family","'Work Sans', sans-serif"],["fxFlex","50","id","set-button-radius","appearance","outline","color","primary",1,"m-l-s"],["for","set-button-radius-label"],Ca,["matInput","","type","number","min","0","max","30","id","set-button-radius-input","name","set-button-radius-input","value","currentButtonRadius",3,"ngModel","ngModelChange","change"],["fxLayout","column","fxLayoutAlign","start start","fxfill",""],["fxLayout","row"],["mat-flat-button","","color","accent","id","set-plugin-style",3,"disabled","click"],Do,["fxFlex","45","fxLayout","column",1,"mat-elevation-z0"],["fxFlex","",1,"grey-bg"],["fxLayout","row","fxFlex","100%","fxFill","","fxLayoutAlign","none start"],["fxLayout","row","ngClass.lt-sm","m-t-m"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/visibilityOn/public"],["fxFlexOffset","8px"],Ro,["id","preview_box","fxLayoutAlign","center none","fxfill",""],["id","preview_box_widget",3,"hidden","innerHTML"],[3,"hidden","innerHTML"],["fxLayout","column","fxLayoutAlign","end stretch","fxLayoutGap","10",1,"mat-elevation-z0"],["fxLayout","column","fxFlex",""],Po,["ngClass","p-l-s p-t-xs p-b-xs","fxLayout","column",1,"grey-bg","mat-body-1"],["fxFlex","",3,"marginLeft","marginRight","marginTop","marginBottom",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",4,"ngIf"],[4,"ngIf","ngIfElse"],["whydonateLoader",""],[1,"mat-card-title"],_o,ts,["align","end",1,"mat-error"],Wo,Ii,ko,$s,Is,il,Xs,Ss,Fs,Vs,Js,Qs,Cs,Ds,os,fl,Ws,al,Al,ol,ui,Cl,Ja,ss,Ps,Tl,ai,["fxFlex",""],sl,["fxLayout","row","fxLayoutAlign","end center"],["mat-icon-button","",1,"copyLink","hover-class",3,"matTooltip","mousedown","mouseup","click"],["size","3x"]]},template:function(y,X){if(1&y&&(n.TgZ(0,"div",0),n._UZ(1,"link",1),n.TgZ(2,"div")(3,"div",2)(4,"button",3),n.NdJ("click",function(){return X.goBack()}),n._UZ(5,"img",4),n.TgZ(6,"span"),n.SDv(7,5),n.qZA()()(),n.TgZ(8,"mat-card",6)(9,"mat-card",7)(10,"div",8)(11,"div",9),n.YNc(12,Ut,2,0,"mat-card-title",10),n.YNc(13,_r,2,0,"ng-template",null,11,n.W1O),n.qZA(),n.TgZ(15,"mat-card",12)(16,"mat-card-content")(17,"div",13)(18,"div",14)(19,"mat-form-field",15)(20,"mat-label",16),n.SDv(21,17),n.qZA(),n.TgZ(22,"mat-select",18),n.NdJ("valueChange",function(Ft){return X.selectedFundraiser=Ft})("selectionChange",function(){return X.onFundraiserSelectionChange()}),n.YNc(23,$r,2,2,"mat-option",19),n.qZA(),n.YNc(24,Fe,3,0,"mat-hint",20),n.qZA(),n.TgZ(25,"div",21)(26,"mat-slide-toggle",22),n.NdJ("ngModelChange",function(Ft){return X.showDonateCard=Ft})("change",function(){return X.onShowDonateButtonOnly()}),n.qZA(),n.TgZ(27,"label",23),n.SDv(28,24),n.qZA()(),n.TgZ(29,"mat-checkbox",25),n.NdJ("ngModelChange",function(Ft){return X.showMainImageChecked=Ft})("change",function(){return X.showMainImage()}),n.SDv(30,26),n.qZA(),n.TgZ(31,"mat-checkbox",27),n.NdJ("ngModelChange",function(Ft){return X.showDonationFormOnlyChecked=Ft})("change",function(){return X.onshowDonationFormOnly()}),n.SDv(32,28),n.qZA()()(),n.TgZ(33,"div",29),n._UZ(34,"div",30),n.TgZ(35,"h2",31),n.SDv(36,32),n.qZA(),n.TgZ(37,"div",33)(38,"div",21)(39,"mat-slide-toggle",34),n.NdJ("ngModelChange",function(Ft){return X.showHideOneTimeChecked=Ft})("change",function(Ft){return X.onshowHideOneTime(),X.change_onetime(Ft)}),n.qZA(),n.TgZ(40,"label",35),n.SDv(41,36),n.qZA()(),n.TgZ(42,"div",37)(43,"mat-button-toggle-group",38),n.NdJ("ngModelChange",function(Ft){return X.onetimeOpenAmountChecked=Ft})("change",function(){return X.openorcustomamount()}),n.TgZ(44,"mat-button-toggle",39),n.SDv(45,40),n.qZA(),n.TgZ(46,"mat-button-toggle",39),n.SDv(47,41),n.qZA()()(),n.TgZ(48,"div")(49,"div",0)(50,"div",42)(51,"mat-form-field",43)(52,"div",44),n._uU(53),n.qZA(),n.TgZ(54,"input",45),n.NdJ("ngModelChange",function(Ft){return X.valueChangeFirstAmount=Ft})("change",function(){return X.changeFirstAmount()}),n.qZA(),n.YNc(55,er,5,2,"mat-hint",20),n.YNc(56,pe,5,2,"mat-hint",20),n.qZA(),n.TgZ(57,"mat-form-field",43)(58,"div",44),n._uU(59),n.qZA(),n.TgZ(60,"input",46),n.NdJ("ngModelChange",function(Ft){return X.valueChangeSecondAmount=Ft})("change",function(){return X.changeSecondAmount()}),n.qZA(),n.YNc(61,dt,5,2,"mat-hint",20),n.YNc(62,jt,5,2,"mat-hint",20),n.qZA(),n.TgZ(63,"mat-form-field",43)(64,"div",44),n._uU(65),n.qZA(),n.TgZ(66,"input",47),n.NdJ("ngModelChange",function(Ft){return X.valueChangeThirdAmount=Ft})("change",function(){return X.changeThirdAmount()}),n.qZA(),n.YNc(67,Ir,5,2,"mat-hint",20),n.YNc(68,Ur,5,2,"mat-hint",20),n.qZA(),n.TgZ(69,"mat-form-field",43)(70,"div",44),n._uU(71),n.qZA(),n.TgZ(72,"input",48),n.NdJ("ngModelChange",function(Ft){return X.valueChangeFourthAmount=Ft})("change",function(){return X.changeForthAmount()}),n.qZA(),n.YNc(73,En,5,2,"mat-hint",20),n.YNc(74,Fn,5,2,"mat-hint",20),n.qZA()()()(),n.TgZ(75,"div",21)(76,"mat-slide-toggle",49),n.NdJ("ngModelChange",function(Ft){return X.showHideMonthlyChecked=Ft})("change",function(Ft){return X.onshowHideMonthly(),X.change_monthly(Ft)}),n.qZA(),n.TgZ(77,"label",50),n.SDv(78,51),n.qZA()(),n.TgZ(79,"div",52)(80,"mat-button-toggle-group",53),n.NdJ("ngModelChange",function(Ft){return X.monthlyOpenAmountChecked=Ft})("change",function(){return X.openorcustomamount_monthly()}),n.TgZ(81,"mat-button-toggle",39),n.SDv(82,54),n.qZA(),n.TgZ(83,"mat-button-toggle",39),n.SDv(84,55),n.qZA()()(),n.TgZ(85,"div",56)(86,"div",0)(87,"div",57)(88,"mat-form-field",43)(89,"div",44),n._uU(90),n.qZA(),n.TgZ(91,"input",58),n.NdJ("ngModelChange",function(Ft){return X.valueChangeFirstAmountMonthly=Ft})("change",function(){return X.changeFirstAmount()}),n.qZA(),n.YNc(92,qn,5,2,"mat-hint",20),n.YNc(93,hi,5,2,"mat-hint",20),n.qZA(),n.TgZ(94,"mat-form-field",43)(95,"div",44),n._uU(96),n.qZA(),n.TgZ(97,"input",59),n.NdJ("ngModelChange",function(Ft){return X.valueChangeSecondAmountMonthly=Ft})("change",function(){return X.changeSecondAmount()}),n.qZA(),n.YNc(98,_i,5,2,"mat-hint",20),n.YNc(99,gi,5,2,"mat-hint",20),n.qZA(),n.TgZ(100,"mat-form-field",43)(101,"div",44),n._uU(102),n.qZA(),n.TgZ(103,"input",60),n.NdJ("ngModelChange",function(Ft){return X.valueChangeThirdAmountMonthly=Ft})("change",function(){return X.changeThirdAmount()}),n.qZA(),n.YNc(104,oa,5,2,"mat-hint",20),n.YNc(105,Ea,5,2,"mat-hint",20),n.qZA(),n.TgZ(106,"mat-form-field",43)(107,"div",44),n._uU(108),n.qZA(),n.TgZ(109,"input",61),n.NdJ("ngModelChange",function(Ft){return X.valueChangeFourthAmountMonthly=Ft})("change",function(){return X.changeForthAmount()}),n.qZA(),n.YNc(110,da,5,2,"mat-hint",20),n.YNc(111,Za,5,2,"mat-hint",20),n.qZA()()(),n._UZ(112,"label",62),n.qZA(),n.TgZ(113,"div",21)(114,"mat-slide-toggle",63),n.NdJ("ngModelChange",function(Ft){return X.showHideYearlyChecked=Ft})("change",function(Ft){return X.onshowHideYearly(),X.change_yearly(Ft)}),n.qZA(),n.TgZ(115,"label",35),n.SDv(116,64),n.qZA()(),n.TgZ(117,"div")(118,"mat-button-toggle-group",38),n.NdJ("ngModelChange",function(Ft){return X.yearlyOpenAmountChecked=Ft})("change",function(){return X.openorcustomamount_yearly()}),n.TgZ(119,"mat-button-toggle",39),n.SDv(120,65),n.qZA(),n.TgZ(121,"mat-button-toggle",39),n.SDv(122,66),n.qZA()()(),n.TgZ(123,"div",30)(124,"div",0)(125,"div",67)(126,"mat-form-field",43)(127,"div",44),n._uU(128),n.qZA(),n.TgZ(129,"input",68),n.NdJ("ngModelChange",function(Ft){return X.valueChangeFirstAmountYearly=Ft})("change",function(){return X.changeFirstAmount()}),n.qZA(),n.YNc(130,va,5,2,"mat-hint",20),n.YNc(131,co,5,2,"mat-hint",20),n.qZA(),n.TgZ(132,"mat-form-field",43)(133,"div",44),n._uU(134),n.qZA(),n.TgZ(135,"input",69),n.NdJ("ngModelChange",function(Ft){return X.valueChangeSecondAmountYearly=Ft})("change",function(){return X.changeSecondAmount()}),n.qZA(),n.YNc(136,ki,5,2,"mat-hint",20),n.YNc(137,Li,5,2,"mat-hint",20),n.qZA(),n.TgZ(138,"mat-form-field",43)(139,"div",44),n._uU(140),n.qZA(),n.TgZ(141,"input",70),n.NdJ("ngModelChange",function(Ft){return X.valueChangeThirdAmountYearly=Ft})("change",function(){return X.changeSecondAmount()}),n.qZA(),n.YNc(142,Qo,5,2,"mat-hint",20),n.YNc(143,ka,5,2,"mat-hint",20),n.qZA(),n.TgZ(144,"mat-form-field",43)(145,"div",44),n._uU(146),n.qZA(),n.TgZ(147,"input",71),n.NdJ("ngModelChange",function(Ft){return X.valueChangeFourthAmountYearly=Ft})("change",function(){return X.changeForthAmount()}),n.qZA(),n.YNc(148,qo,5,2,"mat-hint",20),n.YNc(149,Go,5,2,"mat-hint",20),n.qZA()()()(),n._UZ(150,"label",72),n.qZA(),n.TgZ(151,"div",73)(152,"mat-slide-toggle",74),n.NdJ("ngModelChange",function(Ft){return X.showAmountOtherChecked=Ft})("change",function(){return X.onshowOtherAmount()}),n.qZA(),n.TgZ(153,"label",35),n.SDv(154,75),n.qZA()(),n._UZ(155,"label",72),n.qZA(),n.TgZ(156,"div",76)(157,"mat-accordion")(158,"mat-expansion-panel",77)(159,"mat-expansion-panel-header")(160,"mat-panel-title")(161,"h2",78),n.SDv(162,79),n.qZA()()(),n.TgZ(163,"div",52)(164,"div",80)(165,"div",81)(166,"p"),n.SDv(167,82),n.qZA()(),n.TgZ(168,"div")(169,"mat-card")(170,"mat-button-toggle-group",83),n.NdJ("ngModelChange",function(Ft){return X.boxShadowNumber=Ft})("change",function(){return X.updateBoxShadow()}),n.TgZ(171,"mat-button-toggle",84),n.SDv(172,85),n.qZA(),n.TgZ(173,"mat-button-toggle",84),n.SDv(174,86),n.qZA(),n.TgZ(175,"mat-button-toggle",84),n.SDv(176,87),n.qZA()()()()()(),n.TgZ(177,"div",88)(178,"mat-form-field",89)(179,"mat-label"),n.SDv(180,90),n.qZA(),n.TgZ(181,"input",91),n.NdJ("ngModelChange",function(Ft){return X.currentPrimaryColor=Ft})("change",function(){return X.onchangePrimaryColor()}),n.qZA(),n.TgZ(182,"button",92)(183,"mat-icon",93)(184,"input",94),n.NdJ("ngModelChange",function(Ft){return X.currentPrimaryColor=Ft})("change",function(){return X.onchangePrimaryColor()}),n.qZA()()()(),n.TgZ(185,"mat-form-field",95)(186,"mat-label"),n.SDv(187,96),n.qZA(),n.TgZ(188,"input",97),n.NdJ("ngModelChange",function(Ft){return X.currentSecondaryColor=Ft})("change",function(){return X.onchangeSecondaryColor()}),n.qZA(),n.TgZ(189,"button",92)(190,"mat-icon",93)(191,"input",98),n.NdJ("ngModelChange",function(Ft){return X.currentSecondaryColor=Ft})("change",function(){return X.onchangeSecondaryColor()}),n.qZA()()()()(),n.TgZ(192,"div",99)(193,"mat-form-field",100)(194,"mat-label",101),n.SDv(195,102),n.qZA(),n.TgZ(196,"mat-select",103),n.NdJ("ngModelChange",function(Ft){return X.widgetFontName=Ft})("selectionChange",function(){return X.changeFontFamily()}),n.TgZ(197,"mat-option",104),n._uU(198,"Roboto"),n.qZA(),n.TgZ(199,"mat-option",105),n._uU(200,"Raleway"),n.qZA(),n.TgZ(201,"mat-option",106),n._uU(202,"Amatic SC"),n.qZA(),n.TgZ(203,"mat-option",107),n._uU(204,"Caveat"),n.qZA(),n.TgZ(205,"mat-option",108),n._uU(206,"Comfortaa"),n.qZA(),n.TgZ(207,"mat-option",109),n._uU(208,"EB Garamond"),n.qZA(),n.TgZ(209,"mat-option",110),n._uU(210,"Lobster"),n.qZA(),n.TgZ(211,"mat-option",111),n._uU(212,"Lora"),n.qZA(),n.TgZ(213,"mat-option",112),n._uU(214,"Merriweather"),n.qZA(),n.TgZ(215,"mat-option",113),n._uU(216,"Montserrat"),n.qZA(),n.TgZ(217,"mat-option",114),n._uU(218,"Nunito"),n.qZA(),n.TgZ(219,"mat-option",115),n._uU(220,"Oswald"),n.qZA(),n.TgZ(221,"mat-option",116),n._uU(222,"Pacifico"),n.qZA(),n.TgZ(223,"mat-option",117),n._uU(224,"Playfair Display "),n.qZA(),n.TgZ(225,"mat-option",118),n._uU(226,"Spectral"),n.qZA(),n.TgZ(227,"mat-option",119),n._uU(228,"Open Sans"),n.qZA(),n.TgZ(229,"mat-option",120),n._uU(230,"Lato"),n.qZA(),n.TgZ(231,"mat-option",121),n._uU(232,"Yatra One"),n.qZA(),n.TgZ(233,"mat-option",122),n._uU(234,"Arvo"),n.qZA(),n.TgZ(235,"mat-option",123),n._uU(236,"Ubuntu"),n.qZA(),n.TgZ(237,"mat-option",124),n._uU(238,"PT Serif"),n.qZA(),n.TgZ(239,"mat-option",125),n._uU(240,"Slabo"),n.qZA(),n.TgZ(241,"mat-option",126),n._uU(242,"Source Sans "),n.qZA(),n.TgZ(243,"mat-option",127),n._uU(244,"PT Sans"),n.qZA(),n.TgZ(245,"mat-option",128),n._uU(246,"Noto Serif"),n.qZA(),n.TgZ(247,"mat-option",129),n._uU(248,"Nunito Sans"),n.qZA(),n.TgZ(249,"mat-option",130),n._uU(250,"Concert One"),n.qZA(),n.TgZ(251,"mat-option",131),n._uU(252,"Prompt"),n.qZA(),n.TgZ(253,"mat-option",132),n._uU(254,"Work Sans"),n.qZA()(),n.YNc(255,$o,3,0,"mat-hint",20),n.qZA(),n.TgZ(256,"mat-form-field",133)(257,"mat-label",134),n.SDv(258,135),n.qZA(),n.TgZ(259,"input",136),n.NdJ("ngModelChange",function(Ft){return X.currentButtonRadius=Ft})("change",function(){return X.onchangeButtonRadius()}),n.qZA(),n.YNc(260,Vo,3,0,"mat-hint",20),n.qZA()()()()(),n.TgZ(261,"div",137)(262,"div",138)(263,"button",139),n.NdJ("click",function(){return X.save_code()}),n.TgZ(264,"span"),n.SDv(265,140),n.qZA()()()()()()(),n.TgZ(266,"mat-card",141)(267,"mat-card",142)(268,"div")(269,"div",143)(270,"div",144),n._UZ(271,"img",145),n.TgZ(272,"span",146),n.SDv(273,147),n.qZA()()()(),n.TgZ(274,"div",148),n._UZ(275,"div",149)(276,"div",150),n.qZA()()()(),n.TgZ(277,"mat-card",77)(278,"mat-card",151)(279,"div",152)(280,"div"),n.SDv(281,153),n.qZA(),n.TgZ(282,"div",154),n.YNc(283,ya,2,8,"div",155),n.YNc(284,Ze,2,9,"div",155),n.YNc(285,Wt,5,3,"div",156),n.qZA()()()()()()(),n.TgZ(286,"div",0),n.YNc(287,g,2,0,"ng-container",157),n.qZA(),n.YNc(288,$,1,0,"ng-template",null,158,n.W1O)),2&y){const at=n.MAs(14),Ft=n.MAs(289);n.Q6J("hidden",X.isLoading),n.xp6(1),n.Q6J("href",X.cssUrlPage,n.uOi),n.xp6(11),n.Q6J("ngIf","create"===X.shortcode)("ngIfElse",at),n.xp6(10),n.Q6J("value",X.selectedFundraiser)("placeholder","create"===X.shortcode?"Select Fundraiser":""),n.xp6(1),n.Q6J("ngForOf",X.fundraiser_list),n.xp6(1),n.Q6J("ngIf",-1===X.selectedFundraiser),n.xp6(2),n.Q6J("ngModel",X.showDonateCard),n.xp6(3),n.Q6J("ngModel",X.showMainImageChecked)("disabled",!X.showDonateCard),n.xp6(2),n.Q6J("ngModel",X.showDonationFormOnlyChecked)("disabled",!X.showDonateCard),n.xp6(8),n.Q6J("ngModel",X.showHideOneTimeChecked),n.xp6(3),n.Udp("display",X.showHideOneTimeChecked?"block":"none"),n.xp6(1),n.Q6J("ngModel",X.onetimeOpenAmountChecked),n.xp6(1),n.Q6J("value",!1),n.xp6(2),n.Q6J("value",!0),n.xp6(2),n.Udp("display",X.showHideOneTimeChecked?"block":"none"),n.xp6(1),n.Q6J("hidden",X.onetimeOpenAmountChecked),n.xp6(4),n.hij(" ",X.currencySymbol,"\xa0 "),n.xp6(1),n.Q6J("ngModel",X.valueChangeFirstAmount),n.xp6(1),n.Q6J("ngIf",X.valueChangeFirstAmount<X.currencyMinAmount),n.xp6(1),n.Q6J("ngIf",X.valueChangeFirstAmount>X.currencyMaxAmount),n.xp6(3),n.hij(" ",X.currencySymbol,"\xa0 "),n.xp6(1),n.Q6J("ngModel",X.valueChangeSecondAmount),n.xp6(1),n.Q6J("ngIf",X.valueChangeSecondAmount<X.currencyMinAmount),n.xp6(1),n.Q6J("ngIf",X.valueChangeSecondAmount>X.currencyMaxAmount),n.xp6(3),n.hij(" ",X.currencySymbol,"\xa0 "),n.xp6(1),n.Q6J("ngModel",X.valueChangeThirdAmount),n.xp6(1),n.Q6J("ngIf",X.valueChangeThirdAmount<X.currencyMinAmount),n.xp6(1),n.Q6J("ngIf",X.valueChangeThirdAmount>X.currencyMaxAmount),n.xp6(3),n.hij(" ",X.currencySymbol,"\xa0 "),n.xp6(1),n.Q6J("ngModel",X.valueChangeFourthAmount),n.xp6(1),n.Q6J("ngIf",X.valueChangeFourthAmount<X.currencyMinAmount),n.xp6(1),n.Q6J("ngIf",X.valueChangeFourthAmount>X.currencyMaxAmount),n.xp6(2),n.Q6J("ngModel",X.showHideMonthlyChecked),n.xp6(3),n.Udp("display",X.showHideMonthlyChecked?"block":"none"),n.xp6(1),n.Q6J("ngModel",X.monthlyOpenAmountChecked),n.xp6(1),n.Q6J("value",!1),n.xp6(2),n.Q6J("value",!0),n.xp6(2),n.Udp("display",X.showHideMonthlyChecked?"block":"none"),n.xp6(1),n.Q6J("hidden",X.monthlyOpenAmountChecked),n.xp6(4),n.hij(" ",X.currencySymbol,"\xa0 "),n.xp6(1),n.Q6J("ngModel",X.valueChangeFirstAmountMonthly),n.xp6(1),n.Q6J("ngIf",X.valueChangeFirstAmountMonthly<X.currencyMinAmount),n.xp6(1),n.Q6J("ngIf",X.valueChangeFirstAmountMonthly>X.currencyMaxAmount),n.xp6(3),n.hij(" ",X.currencySymbol,"\xa0 "),n.xp6(1),n.Q6J("ngModel",X.valueChangeSecondAmountMonthly),n.xp6(1),n.Q6J("ngIf",X.valueChangeSecondAmountMonthly<X.currencyMinAmount),n.xp6(1),n.Q6J("ngIf",X.valueChangeSecondAmountMonthly>X.currencyMaxAmount),n.xp6(3),n.hij(" ",X.currencySymbol,"\xa0 "),n.xp6(1),n.Q6J("ngModel",X.valueChangeThirdAmountMonthly),n.xp6(1),n.Q6J("ngIf",X.valueChangeThirdAmountMonthly<X.currencyMinAmount),n.xp6(1),n.Q6J("ngIf",X.valueChangeThirdAmountMonthly>X.currencyMaxAmount),n.xp6(3),n.hij(" ",X.currencySymbol,"\xa0 "),n.xp6(1),n.Q6J("ngModel",X.valueChangeFourthAmountMonthly),n.xp6(1),n.Q6J("ngIf",X.valueChangeFourthAmountMonthly<X.currencyMinAmount),n.xp6(1),n.Q6J("ngIf",X.valueChangeFourthAmountMonthly>X.currencyMaxAmount),n.xp6(3),n.Q6J("ngModel",X.showHideYearlyChecked),n.xp6(3),n.Udp("display",X.showHideYearlyChecked?"block":"none"),n.xp6(1),n.Q6J("ngModel",X.yearlyOpenAmountChecked),n.xp6(1),n.Q6J("value",!1),n.xp6(2),n.Q6J("value",!0),n.xp6(3),n.Q6J("hidden",X.yearlyOpenAmountChecked),n.xp6(1),n.Udp("display",X.showHideYearlyChecked?"block":"none"),n.xp6(3),n.hij(" ",X.currencySymbol,"\xa0 "),n.xp6(1),n.Q6J("ngModel",X.valueChangeFirstAmountYearly),n.xp6(1),n.Q6J("ngIf",X.valueChangeFirstAmountYearly<X.currencyMinAmount),n.xp6(1),n.Q6J("ngIf",X.valueChangeFirstAmountYearly>X.currencyMaxAmount),n.xp6(3),n.hij(" ",X.currencySymbol,"\xa0 "),n.xp6(1),n.Q6J("ngModel",X.valueChangeSecondAmountYearly),n.xp6(1),n.Q6J("ngIf",X.valueChangeSecondAmountYearly<X.currencyMinAmount),n.xp6(1),n.Q6J("ngIf",X.valueChangeSecondAmountYearly>X.currencyMaxAmount),n.xp6(3),n.hij(" ",X.currencySymbol,"\xa0 "),n.xp6(1),n.Q6J("ngModel",X.valueChangeThirdAmountYearly),n.xp6(1),n.Q6J("ngIf",X.valueChangeThirdAmountYearly<X.currencyMinAmount),n.xp6(1),n.Q6J("ngIf",X.valueChangeThirdAmountYearly>X.currencyMaxAmount),n.xp6(3),n.hij(" ",X.currencySymbol,"\xa0 "),n.xp6(1),n.Q6J("ngModel",X.valueChangeFourthAmountYearly),n.xp6(1),n.Q6J("ngIf",X.valueChangeFourthAmountYearly<X.currencyMinAmount),n.xp6(1),n.Q6J("ngIf",X.valueChangeFourthAmountYearly>X.currencyMaxAmount),n.xp6(3),n.Q6J("ngModel",X.showAmountOtherChecked),n.xp6(7),n.Udp("padding-left",0,"px"),n.xp6(10),n.Gre("mat-elevation-z",X.previewBoxShadowNumber,""),n.xp6(1),n.Q6J("ngModel",X.boxShadowNumber),n.xp6(1),n.Q6J("value",1),n.xp6(2),n.Q6J("value",2),n.xp6(2),n.Q6J("value",3),n.xp6(6),n.Q6J("ngModel",X.currentPrimaryColor),n.xp6(3),n.Udp("cursor","pointer"),n.Q6J("ngModel",X.currentPrimaryColor),n.xp6(4),n.Q6J("ngModel",X.currentSecondaryColor),n.xp6(3),n.Udp("cursor","pointer"),n.Q6J("ngModel",X.currentSecondaryColor),n.xp6(5),n.Q6J("ngModel",X.widgetFontName),n.xp6(59),n.Q6J("ngIf",""==X.widgetFontName),n.xp6(4),n.Q6J("ngModel",X.currentButtonRadius),n.xp6(1),n.Q6J("ngIf",X.currentButtonRadius<0||X.currentButtonRadius>30),n.xp6(3),n.Q6J("disabled",X.disabled),n.xp6(12),n.Udp("margin-top",40,"px")("width",400,"px")("transform",X.screenWidth<420?"scale(0.5)":X.screenWidth<800?"scale(0.8)":X.screenWidth<1280?"none":X.screenWidth<1371?"scale(0.75)":"none"),n.Q6J("hidden",X.showDonationFormOnlyChecked)("innerHTML",X.donation_box,n.oJD),n.xp6(1),n.Udp("margin-left",-30,"px")("transform",X.screenWidth<420?"scale(0.5)":X.screenWidth<800?"scale(0.8)":X.screenWidth<1280?"none":X.screenWidth<1371?"scale(0.75)":X.screenWidth<1500?"scale(0.70)":X.screenWidth>1500?"scale(0.80)":""),n.Q6J("hidden",!X.showDonationFormOnlyChecked)("innerHTML",X.donation_window_modal,n.oJD),n.xp6(7),n.Q6J("ngIf","create"===X.shortcode),n.xp6(1),n.Q6J("ngIf","create"!==X.shortcode),n.xp6(1),n.Q6J("ngIf","create"!==X.shortcode),n.xp6(1),n.Q6J("hidden",!X.isLoading),n.xp6(1),n.Q6J("ngIf",X.isLoading)("ngIfElse",Ft)}},dependencies:[l.Fj,l.wV,l.JJ,l.qQ,l.Fd,l.On,t.mk,t.sg,t.O5,Dr.CK,ps.FC,T.v_,T.pH,T.$V,T.g4,T.nX,F.k0,kn.x8,V.Rr,de.S$,de.Qi,de.mi,xe.pp,xe.ib,xe.yz,xe.yK,Le.eB,ht.A9,ht.Yi,ge.Hw,lo.gM,ee.xw,ee.SQ,ee.Wh,ee.UT,ee.s9,ee.yH,se.oO,Z.f],encapsulation:2}),Pe})(),canActivate:[Zo.a]},{path:"fundraising/fundraiser-not-found",component:cn},{path:"fundraising/fundraiser-is-draft",component:Wi},{path:"fundraising/create",component:no},{path:"fundraising/start",component:(()=>{class Pe{constructor(y,X,at,Ft,sr){this.categoryService=y,this.fundraiserService=X,this.accountService=at,this._formBuilder=Ft,this.router=sr,this._categories=sa.b,this.currentStep=1,this.locations=[],this.selectedCategory=null,this.selectedBeneficiary=null,this.previousStep=-1,this.locationSearch$=new r.x,this.selectedLanguage=new l.NI(this.accountService.getLocaleId()),this.currentLanguageCode="",this.languagecodes=[{id:0,languageName:"EN - English",language_code:"en",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/en/w=17"},{id:1,languageName:"NL - Nederlands",language_code:"nl",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/nl/w=17"},{id:2,languageName:"ES - Espa\xF1ol",language_code:"es",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/es/w=17"},{id:3,languageName:"DE - Deutsch",language_code:"de",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/de/w=17"},{id:4,languageName:"FR - Fran\xE7ais",language_code:"fr",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fr/w=17"},{id:5,languageName:"BG - Bulgarian",language_code:"bg",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/bg/w=17"},{id:6,languageName:"HR - Croatian",language_code:"hr",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/hr/w=17"},{id:7,languageName:"CS - Czech",language_code:"cs",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/cs/w=17"},{id:8,languageName:"DA - Danish",language_code:"da",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/da/w=17"},{id:9,languageName:"FI - Finnish",language_code:"fi",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fi/w=17"},{id:10,languageName:"EL - Greek",language_code:"el",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/el/w=17"},{id:11,languageName:"HU - Hungarian",language_code:"hu",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/hu/w=17"},{id:12,languageName:"IT - Italian",language_code:"it",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/it/w=17"},{id:13,languageName:"PL - Polish",language_code:"pl",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/pl/w=17"},{id:14,languageName:"PT - Portuguese",language_code:"pt",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/pt/w=17"},{id:15,languageName:"RO - Romanian",language_code:"ro",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/ro/w=17"},{id:16,languageName:"SK - Slovak",language_code:"sk",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/sk/w=17"},{id:17,languageName:"SV - Swedish",language_code:"sv",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/sv/w=17"},{id:18,languageName:"UK - Ukranian",language_code:"uk",languageIcon:"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/uk/w=17"}],this.startFundraiserForm=new l.nJ({category:new l.p4("",{validators:[l.kI.required]}),beneficiary:new l.p4("",{validators:[l.kI.required]}),location:new l.p4("",{validators:[l.kI.required],asyncValidators:[this.isLocationValid()]}),name:new l.p4("",[l.kI.required,l.kI.minLength(1),l.kI.maxLength(75),l.kI.pattern(/^[^\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FAC0}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}]*$/u),xr=>/^\s*$/.test(xr.value||"")?{whitespace:!0}:null])})}ngOnInit(){this.locationSearch$.pipe((0,ci.b)(600),(0,m.x)()).subscribe(y=>{this.searchPlaces(y)}),this.currentLanguageCode=this.accountService.getLocaleId()}ngDoCheck(){3===this.currentStep&&3!==this.previousStep&&(this.scrollToTop(),this.previousStep=3)}scrollToTop(){window.scrollTo({top:120,behavior:"smooth"})}onNameInput(){this.startFundraiserForm.get("location")?.markAllAsTouched()}onLocationInput(y){this.locationSearch$.next(y)}searchPlaces(y){y.trim()&&this.categoryService.getLocation(y).subscribe(X=>{this.locations=this.locations=JSON.parse(JSON.stringify(X)).data.result||[]},X=>{this.startFundraiserForm?.controls.location.markAsDirty({onlySelf:!0})})}isLocationValid(){return y=>new Promise((at,Ft)=>{let sr=y.value,xr=!1;this.locations?.length>0&&this.locations.forEach(en=>{en.description==sr&&(xr=!0)}),at(xr?null:{location:"doNotExist"})})}onBeneficiarySelect(y){this.selectedBeneficiary=y,this.startFundraiserForm.get("beneficiary")?.setValue(this.selectedBeneficiary)}selectCategory(y){this.selectedCategory=y.id,this.startFundraiserForm.get("category")?.setValue(this.selectedCategory)}isSelected(y){return this.selectedCategory===y.id}goToStep(y){this.currentStep=y}onSaveStep1(){this.selectedCategory&&this.goToStep(2)}backStep(){this.goToStep(this.currentStep-1)}onSaveStep2(){this.selectedBeneficiary&&this.goToStep(3)}onSaveStep3(){let X,y="";this.locations.forEach(sr=>{sr.description==this.startFundraiserForm.get("location")?.value&&(y=sr.description?sr.description:this.startFundraiserForm.get("location")?.value)}),X={category:this.selectedCategory,beneficiary:this.selectedBeneficiary,name:this.startFundraiserForm.get("name")?.value||"",location_locale:y||"",language_code:this.selectedLanguage.value},localStorage.setItem("startfundraiser",JSON.stringify(X));let at="fundraising/create";Ui.w.setPreviousPath(at),this.accountService.isLoggedIn.getValue()?this.router.navigate([at]):this.router.navigate(["account/register"])}browseFundraiser(){window.open(this.router.serializeUrl(this.router.createUrlTree([`${this.currentLanguageCode}/search`])),"_blank")}}return Pe.\u0275fac=function(y){return new(y||Pe)(n.Y36(Dt.H),n.Y36(P.R),n.Y36(q.B),n.Y36(l.QS),n.Y36(e.F0))},Pe.\u0275cmp=n.Xpm({type:Pe,selectors:[["app-start-fundraiser-page"]],decls:10,vars:5,consts:function(){let rr,y,X,at,Ft,sr,xr,en,Pr,On,ei,Ai,ae,me,J,Oe,Ke,xt,Zt,gr,zr,nn,dn,yi,Ca,Do,Ro,Po,_o,ts,Wo;return rr="Zapo\u010Dni Sakuplja\u010D Sredstava",y="\u0160to najbolje opisuje va\u0161 cilj prikupljanja sredstava?",X="Spremi I Nastavi",at="Tko \u0107e imati koristi od donacija koje prikupljate?",Ft="Sami sebe",sr="Donacije se pla\u0107aju izravno vama kako biste ih mogli koristiti u svrhu.",xr="Neki Drugi",en="Zapo\u010Dnite prikupljanje sredstava za nekoga drugog i neka donacije budu izravno ispla\u0107ene njima, ili ih sami distribuirajte.",Pr="Dobro\u010Dinstvo",On="Zapo\u010Dnite prikupljanje sredstava za humanitarne svrhe ili pojedince i prikupite novac kako biste ostvarili svoje ciljeve.",ei="Nazad",Ai="Spremi I Nastavi",ae="Koju lokaciju podr\u017Eava ovo prikupljanje sredstava?",me="Lokacija",J="Koji jezik \u017Eelite za prikupljanje sredstava?",Oe="Nakon odabira zadanog jezika, kasnije se ne mo\u017Ee promijeniti. Mo\u017Eete dodati vi\u0161e prijevoda zadanog jezika.",Ke="Odaberite Jezik",xt="Nazad",Zt="Spremi I Nastavi",gr="Za koga skupljate novac?",zr="Ime",nn="Znaci",dn="Koji jezik \u017Eelite za prikupljanje sredstava?",yi="Nakon odabira zadanog jezika, kasnije se ne mo\u017Ee promijeniti. Mo\u017Eete dodati vi\u0161e prijevoda zadanog jezika.",Ca="Odaberite Jezik",Do="Nazad",Ro="Spremi I Nastavi",Po="Mora imati izme\u0111u 1 i 75 znakova",_o="Samo su dopu\u0161tena slova.",ts="Ako tra\u017Eite razlog za povezivanje",Wo="Pregledajte Fundraiser",[["fxLayout","column","fxLayout","row","fxFlex","100%","fxLayoutAlign","center center","ngClass","p-xxl","ngClass.sm","p-m","ngClass.xs","p-t-m p-s"],["fxLayout","column","fxFlex.gt-md","70%","fxFlex.md","70%","fxFlex.sm","80%","fxFlex.xs","90%","fxLayoutAlign","center center","fxLayoutGap","2%","fxLayoutGap.xs","3%"],rr,["fxFill","","fxLayoutGap","2%"],[3,"formGroup","ngSubmit"],[4,"ngIf"],["fxFill","",4,"ngIf"],["fxLayoutGap","2%",1,"m-t-xs"],y,["aria-label","category selection","id","chip-list","name","chip-list",1,"whydonate-light"],["id","chip","name","chip","selected","","color","accent",3,"ngClass","value","click",4,"ngFor","ngForOf"],["align","end"],["mat-flat-button","","color","accent",3,"disabled","click"],X,["id","chip","name","chip","selected","","color","accent",3,"ngClass","value","click"],["matChipAvatar","",3,"src"],["fxLayout","column","fxLayoutGap","4%",1,"m-t-xs"],at,["fxLayout.gt-xs","row","fxLayout.xs","column","fxLayoutAlign","center","ngClass.xs","p-l-xl p-r-xl","fxLayoutGap.gt-xs","2%","fxLayoutGap.xs","5%"],["fxFlex.gt-xs","33%",1,"mat-elevation-z2","grey-bg","cursor-pointer",3,"ngClass","click"],["fxLayout","column","fxLayoutGap","5%","fxLayoutAlign","center center","ngClass","p-l-m p-r-m p-t-s"],["fxLayout","row","ngClass","p-b-xs"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/yourself/public"],["fxLayout","row"],[1,"mat-card-title","dark-grey-texts"],Ft,[1,"mat-body-2","dark-grey-texts","text-align-center"],sr,["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/someoneElse/public"],[1,"mat-card-title","dark-grey-texts","text-align-center","nowrap"],xr,en,["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/charity/public"],Pr,On,["fxLayoutAlign","space-between"],["mat-flat-button","",3,"click"],ei,Ai,["fxFill","","fxLayoutGap","2%","class","m-t-xs",4,"ngIf"],["fxFill","","class","m-t-xs",4,"ngIf"],["fxFill","","fxLayoutGap","2%",1,"m-t-xs"],ae,["appearance","outline","ngClass","m-t-s",1,"w-100"],me,["required","","matInput","","formControlName","location",1,"location",3,"matAutocomplete","keyup"],["location",""],["locationAuto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],J,["fxFill","","fxLayout","row","fxLayoutAlign","start center"],[1,"mat-caption"],Oe,Ke,["matPrefix","",1,"flagicon-selected",3,"src"],[3,"formControl"],xt,["mat-flat-button","","color","accent","type","submit",3,"disabled"],Zt,[3,"value"],[1,"flagicon",3,"src"],["fxFill","",1,"m-t-xs"],gr,["color","primary","appearance","outline",1,"w-100"],zr,["matInput","","formControlName","name","id","name",3,"input"],["name",""],nn,dn,yi,Ca,Do,Ro,Po,_o,["fxFill",""],["fxLayout","row","fxLayoutAlign","start center"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/connectedFundraiser/public"],[1,"p-l-s"],ts,[1,"link-decorate-style","pointer",3,"click"],Wo]},template:function(y,X){1&y&&(n.TgZ(0,"div",0)(1,"div",1)(2,"h1"),n.SDv(3,2),n.qZA(),n.TgZ(4,"mat-card",3)(5,"form",4),n.NdJ("ngSubmit",function(){return X.onSaveStep3()}),n.YNc(6,hr,9,2,"div",5),n.YNc(7,fn,42,10,"div",5),n.YNc(8,es,3,2,"div",5),n.qZA()(),n.YNc(9,wo,9,0,"mat-card",6),n.qZA()()),2&y&&(n.xp6(5),n.Q6J("formGroup",X.startFundraiserForm),n.xp6(1),n.Q6J("ngIf",1===X.currentStep),n.xp6(1),n.Q6J("ngIf",2===X.currentStep),n.xp6(1),n.Q6J("ngIf",3===X.currentStep),n.xp6(1),n.Q6J("ngIf",3===X.currentStep&&("someoneElse"===X.selectedBeneficiary||"charity"===X.selectedBeneficiary)))},dependencies:[t.mk,t.sg,t.O5,Rt.VN,Rt.QJ,Dr.CK,T.nI,T.v_,T.pH,T.$V,T.g4,F.k0,kn.x8,l._Y,l.Fj,l.JJ,l.JL,l.Q7,l.oH,l.sg,l.u,de.S$,de.Qi,Le.eB,_e.ir,_e.lw,_e.$d,ee.xw,ee.SQ,ee.Wh,ee.s9,ee.yH,se.oO],styles:[".whydonate-light[_ngcontent-%COMP%]   .mat-chip.mat-standard-chip[_ngcontent-%COMP%]:after{background:none}"]}),Pe})()},{path:"fundraising/country",component:ua.f,canActivate:[Zo.a]},{path:"fundraising/stripe-prompt",component:or,canActivate:[Zo.a]},{path:"mark-fundraiser-fraudulent/:slug",component:Da},{path:"connect/:slug",component:Ia},{path:"fundraising/:slug",component:d.h},{path:"donation-amount/:slug",component:Yn,canActivate:[Zo.a]}];let ea=(()=>{class Pe{}return Pe.\u0275fac=function(y){return new(y||Pe)},Pe.\u0275mod=n.oAB({type:Pe}),Pe.\u0275inj=n.cJS({imports:[e.Bz.forChild(Fi),e.Bz]}),Pe})();var Hi=s(25384),ys=s(52051),yo=s(44939),vl=s(38545),nl=s(97107),Sa=s(92446),yl=s(5934),_l=s(23623),Sl=s(35466);let Ls=(()=>{class Pe{}return Pe.\u0275fac=function(y){return new(y||Pe)},Pe.\u0275mod=n.oAB({type:Pe}),Pe.\u0275inj=n.cJS({providers:[t.uU],imports:[ys.XK,l.u5,l.UX,t.ez,ea,Hi.q,Sl.m,nl.Ek,yo.Iq,fa.QG,Sa.uH,vl.fi.forRoot({formats:_l.l}),yl.Gn]}),Pe})()},68212:(St,be,s)=>{"use strict";s.d(be,{H:()=>c});var t=s(9206),e=s(73991),d=s(45734),l=s(45710),r=s(21704);let c=(()=>{class E{constructor(v,C,n){this.httpClient=v,this.apiService=C,this._accountService=n}getCategorylist(){let v=t.N.fundraiser_url,i={headers:this._accountService.getHeaders()};return this.httpClient.get(v+"fundraiser/category/list",i)}getLocation(v){let C=t.N.fundraiser_url,P={params:{language_code:this._accountService.getLocaleId(),query:v}};return this.httpClient.get(C+"location",P)}}return E.\u0275fac=function(v){return new(v||E)(e.LFG(d.eN),e.LFG(l.t),e.LFG(r.B))},E.\u0275prov=e.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})()},47692:(St,be,s)=>{"use strict";s.d(be,{R:()=>P});var t=s(48046),e=s(45734),d=s(68264),l=s(93216),r=s(9206),c=s(73270),m=s(73991),v=s(45710),C=s(26314),n=s(13009),i=s(21704);let P=(()=>{class I{constructor(D,M,T,F,le,V){this.http=D,this._apiService=M,this._mediaService=T,this._fundraiserCardService=F,this.accountService=le,this.httpClient=V,this.API_URL=r.N.apiUrl,this.FUNDRAISER_URL=r.N.fundraiser_url,this.API_URL_V2=this.API_URL.replace("/v1","/v2"),this.ACCOUNT_API_V2=r.N.ACCOUNT_API_V2,this.DONATION_API=r.N.donation_url,this.PROJECT_URL=r.N.project_url,this.FUNDRAISER_API_V2=r.N.FUNDRAISER_API_V2,this.donorList=[],this.currentFundraiser=new d.x,this.offlineDonationSubject=new d.x,this.getOfflineDonation$=this.offlineDonationSubject.asObservable(),this.parentFundraiserCountSubject=new l.X(""),this.parentFundraiserCount$=this.parentFundraiserCountSubject.asObservable(),this.oppMetadataAPI="account/update/merchant/metadata",this.offlineDonationAPI="fundraiser/offline_donation",this.currentFundraiserSlug=""}getCurrentFundraiserSlug(){return this.currentFundraiserSlug}setCurrentFundraiserSlug(D){this.currentFundraiserSlug=D}getFundraiserBySlug(D,M){return this.http.get(r.N.fundraiser_url+"fundraiser/get",{params:{slug:D,language:M}})}getFundraiserDescription(D,M,T=!0){const F=r.N.fundraiser_url,V=(new e.LE).set("slug",D).set("language",M).set("shortPreview",T.toString());return this.http.get(F+"fundraiser/description",{params:V})}markFraudulent(D){return this.http.post(r.N.fundraiser_url+"fundraiser/report",JSON.parse(JSON.stringify(D)))}createOfflineDonation(D){let M=r.N.fundraiser_url,T=this.accountService.getHeaders();return this.http.post(M+this.offlineDonationAPI,JSON.parse(JSON.stringify(D)),{headers:T})}updateOfflineDonation(D){let M=r.N.fundraiser_url,F=this.accountService.getHeaders()?.get("Authorization")||"",le={headers:(new e.WM).set("Authorization",F)};return this.http.patch(M+this.offlineDonationAPI,D,le)}deleteOfflineDonation(D){let M=r.N.fundraiser_url,T=new e.LE;T=T.set("id",D);let F={headers:this.accountService.getHeaders(),params:T};return this.http.delete(M+this.offlineDonationAPI,F)}getAllOfflineDonation(D){let M=r.N.fundraiser_url,T=new e.LE;return T=T.set("slug",D),this.http.get(M+this.offlineDonationAPI,{params:{slug:D}})}setOfflineDonation(){this.offlineDonationSubject.next(!0)}getOfflineDonation(){return this.offlineDonationSubject}setParentFundraiserCount(D){this.parentFundraiserCountSubject.next(D)}getParentFundraiserCount(){return this.parentFundraiserCountSubject.value}getFundraiserBySlugForAdmin(D,M){let T=r.N.fundraiser_url;return this.accountService.getHeaders(),this.http.get(T+"fundraiser/get",{params:{slug:D,language:M}})}getAllWidgetStylesByApiKey(D){let M=r.N.fundraiser_url,le=this.accountService.getHeaders()?.get("Authorization")||"",de={headers:new e.WM({Authorization:le,"API-KEY":D})};return this.http.get(M+"fundraiser/styles",de)}getUserFundraiserListByApiKey(D){let M=r.N.fundraiser_url,le=this.accountService.getHeaders()?.get("Authorization")||"",de={headers:new e.WM({Authorization:le,"API-KEY":D})};return this.http.get(M+"fundraiser/wordpress/all",de)}deleteUserStyleByApiKey(D,M){let T=r.N.fundraiser_url,V=this.accountService.getHeaders()?.get("Authorization")||"";const Ee={headers:new e.WM({Authorization:V,"API-KEY":D}),body:{shortcode:M}};return this.http.delete(T+"fundraiser/user/style",Ee)}updateWidgetStyleByApiKey(D,M){let T=r.N.fundraiser_url,V=this.accountService.getHeaders()?.get("Authorization")||"",ye={headers:new e.WM({Authorization:V,"API-KEY":D})};return this.http.put(T+"fundraiser/styles/update",JSON.parse(JSON.stringify(M)),ye)}getWidgetStyleByShortcode(D){return this.http.get(r.N.fundraiser_url+`fundraiser/user/style?shortcode=${D}`)}getFundraiserCustomDonationFormValuesBySlugForAdmin(D){let T=this.accountService.getHeaders();return this._apiService.tempGetNew("fundraiser/custom_donation_form",{params:{slug:D},headers:T})}createConnectedFundraiser(D){let M=r.N.fundraiser_features_url,F=D,le=this.accountService.getHeaders();return this.http.post(M+"fundraiser/local/",JSON.parse(JSON.stringify(F)),{headers:le})}createFundraiser(D){let M=r.N.fundraiser_features_url,F=D,le=this.accountService.getHeaders();return this.http.post(M+"fundraiser/local/",JSON.parse(JSON.stringify(F)),{headers:le})}updateFundraiser(D){let T=D,F=this.accountService.getHeaders();return this._apiService.post("project/fundraising/local/",JSON.parse(JSON.stringify(T)),F)}searchLocations(D){let T=D,F=this.accountService.getHeaders();return this._apiService.post("local/location/local/",JSON.parse(JSON.stringify(T)),F)}updateFundraiserInformation(D){let T=D,F=this.accountService.getHeaders();return this._apiService.put("project/fundraising/local/",JSON.parse(JSON.stringify(T)),F)}updateFundraiserInformationAppealTitle(D){let M=r.N.fundraiser_url,F=D,le=this.accountService.getHeaders();return this.http.put(M+"fundraiser/connected_update",F,{headers:le})}updateConnectedFundraiserLocation(D){let M=r.N.fundraiser_url,F=D,le=this.accountService.getHeaders();return this.http.put(M+"fundraiser/connected/update/location",F,{headers:le})}updateConnectedFundraiserSocials(D){let M=r.N.fundraiser_url,F=D,le=this.accountService.getHeaders();return this.http.put(M+"fundraiser/connected/update/social",F,{headers:le})}updateConnectedFundraiserCategory(D){let M=r.N.fundraiser_url,F=D,le=this.accountService.getHeaders();return this.http.put(M+"fundraiser/connected/update/category",F,{headers:le})}updateFundraiserInformationTargetAmount(D){let T=D,F=this.accountService.getHeaders();return this._apiService.tempPutNew("fundraiser/target_amount_form",JSON.parse(JSON.stringify(T)),F)}updateFundraiserLocation(D){let M=r.N.fundraiser_features_url,F=D,le=this.accountService.getHeaders();return this.http.put(M+"fundraiser/update/location",F,{headers:le})}updateFundraiserTitleDescription(D){let F=new FormData;F.append("id",D.id),null!=D.category_id?F.append("category_id",D.category_id):(F.append("content",D.content),F.append("description",D.description),F.append("title",D.title));let V=this.accountService.getHeaders()?.get("Authorization")||"",de={headers:(new e.WM).set("Authorization",V)};return this.http.put(this.FUNDRAISER_URL+"fundraiser/update/",F,de)}updateFundraiserDescription(D){let F=new FormData;F.append("slug",D.slug),F.append("appeal",""),F.append("content",D.content),F.append("description",D.description);let V=this.accountService.getHeaders()?.get("Authorization")||"",de={headers:(new e.WM).set("Authorization",V)};return this.http.patch(this.FUNDRAISER_URL+"fundraiser/update/about",F,de)}updateFundraiserAppealDescription(D){let F=new FormData;F.append("slug",D.slug),F.append("appeal",D.appeal),F.append("content",D.content),F.append("description","");let V=this.accountService.getHeaders()?.get("Authorization")||"",de={headers:(new e.WM).set("Authorization",V)};return this.http.patch(this.FUNDRAISER_URL+"fundraiser/update/about",F,de)}updateFundraiserTitle(D){let F=new FormData;F.append("slug",D.slug),F.append("title",D.title);let V=this.accountService.getHeaders()?.get("Authorization")||"",de={headers:(new e.WM).set("Authorization",V)};return this.http.patch(this.FUNDRAISER_URL+"fundraiser/update/title",F,de)}updateFundraiserInformationTranslation(D){let T=D,F=this.accountService.getHeaders();return this.http.post(this.FUNDRAISER_API_V2+"fundraiser/about/translation",JSON.parse(JSON.stringify(T)),{headers:F})}updateFundraiserTitleTranslation(D){let F=new FormData;F.append("title",D.title),F.append("slug",D.slug),F.append("currency_code",D.currency_code),F.append("language_code",D.language_code),F.append("is_auto",D.is_auto);let V=this.accountService.getHeaders()?.get("Authorization")||"",de={headers:(new e.WM).set("Authorization",V)};return this.http.post(this.FUNDRAISER_API_V2+"fundraiser/update/title/translation",F,de)}updateFundraiserDescriptionTranslation(D){let F=new FormData;F.append("slug",D.slug),F.append("appeal",""),F.append("description",D.description),F.append("content",D.content),F.append("currency_code",D.currency_code),F.append("language_code",D.language_code),F.append("is_auto",D.is_auto);let V=this.accountService.getHeaders()?.get("Authorization")||"",de={headers:(new e.WM).set("Authorization",V)};return this.http.post(this.FUNDRAISER_API_V2+"fundraiser/update/about/translation",F,de)}updateFundraiserAppealDescriptionTranslation(D){let F=new FormData;F.append("slug",D.slug),F.append("appeal",D.appeal),F.append("description",""),F.append("content",D.content),F.append("currency_code",D.currency_code),F.append("language_code",D.language_code),F.append("is_auto",D.is_auto);let V=this.accountService.getHeaders()?.get("Authorization")||"",de={headers:(new e.WM).set("Authorization",V)};return this.http.post(this.FUNDRAISER_API_V2+"fundraiser/update/about/translation",F,de)}createFundraiserInformationTranslation(D){let T=D,F=this.accountService.getHeaders();return this._apiService.post("project/fundraising/local/translations/",JSON.parse(JSON.stringify(T)),F)}autoTranslateFundraiserInformation(D){let T=D,F=this.accountService.getHeaders();return this._apiService.post("media/translate/",JSON.parse(JSON.stringify(T)),F)}autoTranslateNew(D){let T=D,F=this.accountService.getHeaders();return this.http.post(this.FUNDRAISER_API_V2+"fundraiser/auto/translate",T,{headers:F})}updateDonorReply(D){let T=D,F=this.accountService.getHeaders();return this.http.post(this.DONATION_API+"/donation/donor/thanks",JSON.stringify(T),{headers:F})}addEmptyBank(D){let M=r.N.ACCOUNT_API_V2,F=D,le=this.accountService.getHeaders();return this.http.put(M+"account/bank ",F,{headers:le})}getoppaccount(){let D=r.N.ACCOUNT_API_V2,T=this.accountService.getHeaders();return this.http.get(D+"account/bank ",{headers:T})}createSocialMedia(D){var M=this;return(0,t.Z)(function*(){let T=r.N.fundraiser_url,le=D,V=M.accountService.getHeaders();return yield M.httpClient.post(T+"fundraiser/create/socialmedia",le,{headers:V}).toPromise()})()}addVideoBackground(D){var M=this;return(0,t.Z)(function*(){let T=r.N.fundraiser_url,le=D,V=M.accountService.getHeaders();return yield M.httpClient.post(T+"fundraiser/video/background",le,{headers:V}).toPromise()})()}updateSocialMedia(D){var M=this;return(0,t.Z)(function*(){let T=r.N.fundraiser_url,le=D,V=M.accountService.getHeaders();return yield M.httpClient.post(T+"fundraiser/create/socialmedia",le,{headers:V})})()}getDonorList(D,M,T){return this.http.get(this.DONATION_API+`/donation/orders/fundraising/local/?slug=${D}&page=${M}&limit=20&language_code=${T}`)}getDonorShort(D,M){return this.http.get(this.DONATION_API+`/donation/orders/fundraising/local/short?slug=${D}&language_code=${M}`)}getUpdates(D,M,T,F=0){return this.http.get(r.N.fundraiser_url+"fundraiser/update",{params:{slug:D,language:M,page:T,shortPreview:!0,excludeList:F}})}getUpdatesForAdmin(D,M,T,F=0){return this.http.get(r.N.fundraiser_url+"fundraiser/update",{params:{slug:D,language:M,page:T,shortPreview:!1,excludeList:F}})}getRootsUpdates(D){return this._apiService.get("project/fundraising/rootupdates/",{params:{fundraising_local:D}})}saveUpdates(D){let T={headers:this.accountService.getHeaders()};return this.http.post(this.FUNDRAISER_API_V2+"fundraiser/update/translation",D,T)}shareUpdates(D){let T={headers:this.accountService.getHeaders()};return this.http.post(this.FUNDRAISER_API_V2+"fundraiser/share/update",D,T)}saveEditedUpdates(D){let M=r.N.fundraiser_url,F={headers:this.accountService.getHeaders()};return this.http.patch(M+"fundraiser/update",D,F)}saveUpdatesTranslation(D){let T={headers:this.accountService.getHeaders()};return this.http.post(this.API_URL+"project/fundraising/local/translations/update/",D,T)}createUpdates(D,M){let T=r.N.fundraiser_url,le={slug:D,content:M},V={headers:this.accountService.getHeaders()};return this.http.post(T+"fundraiser/create/update",le,V)}deleteUpdates(D){let M=r.N.fundraiser_url,F=new e.LE;F=F.set("update_id",D);let le={headers:this.accountService.getHeaders(),params:F};return this.http.delete(M+"fundraiser/update",le)}getUpdatesViewObj(D,M=""){return D&&D?.result?D?.result.map(T=>{if(Object.keys(T)?.length>0)return{id:T?.id,date:this.toDateString(T?.created_at),content:this.getContent(T,M),mediaList:this._mediaService.getViewMediaList(T?.image_list),sliderMediaList:this._mediaService.getSliderMediaList(T?.image_list),shared:T?.shared};console.error("ERROR")}):[{}]}getUpdatesEditObj(D,M=""){return D&&D?.result?D?.result.map(T=>({id:T.id,date:this.toDateString(T?.created_at),content:this.getContent(T,M),mediaList:this._mediaService.getMediaList(T?.image_list),sliderMediaList:this._mediaService.getSliderMediaList(T?.image_list),originalLocale:this.getOriginalLocaleFromContent(T),userLocale:M,translation:this.getContentTranslation(T),shared:T?.shared})):[{}]}toDateString(D){let M=new Date(D);return`${M.getDate()} ${["January","February","March","April","May","June","July","August","September","October","November","December"][M.getMonth()]} ${M.getFullYear()}`}getContent(D,M){return D["content"+this.getLocaleSuffix(M)]||D.content}getContentTranslation(D){let M=Object.fromEntries(Object.entries(D).map(F=>F[0].includes("content_")&&F).filter(F=>F));return M["content"+this.getLocaleSuffix(this.getOriginalLocaleFromContent(D))]=D.content,M}getLocaleSuffix(D){return D?D.includes("en")?"_en":D.includes("nl")?"_nl":D.includes("de")?"_de":D.includes("es")?"_es":D.includes("fr")?"_fr":D.includes("bg")?"_bg":D.includes("hr")?"_hr":D.includes("cs")?"_cs":D.includes("da")?"_da":D.includes("fi")?"_fi":D.includes("el")?"_el":D.includes("hu")?"_hu":D.includes("it")?"_it":D.includes("pl")?"_pl":D.includes("pt")?"_pt":D.includes("ro")?"_ro":D.includes("sk")?"_sk":D.includes("sv")?"_sv":D.includes("uk")?"_uk":void 0:"_nl"}getOriginalLocaleFromContent(D){let T=this.getTranslatedLocales(D);return["bg","hr","cs","da","fi","el","hu","it","pl","pt","ro","sk","sv","uk","nl","de","es","en","fr"].filter(le=>!T.includes(le))[0]}getTranslatedLocales(D){return Object.entries(D).map(([M])=>M.includes("content")&&M.split("content_")[1]).filter(M=>M)}updateFundraiserStatus(D){let M=r.N.fundraiser_url,T=this.accountService.getHeaders();return this.http.post(M+"fundraiser/update/status",D,{headers:T})}publishFundraiser(D){let M=r.N.fundraiser_url,T=this.accountService.getHeaders();return this.http.post(M+"fundraiser/publish",{slug:D?.slug},{headers:T})}updateOppMetadata(D){var M=this;return(0,t.Z)(function*(){let T=M.accountService.getHeaders();return yield M.http.post(`${M.ACCOUNT_API_V2}${M.oppMetadataAPI}`,D,{headers:T}).toPromise()})()}createCustomDonationAmount(D){let M=this.accountService.getHeaders();return this._apiService.post("project/fundraising/local/custom/donation/",D,M)}createCustomDonationFormValuesBySlugForAdmin(D,M){let T=this.accountService.getHeaders();return this._apiService.tempPostNew(`fundraiser/custom_donation_form/?slug=${M}`,D,T)}updateCustomDonationAmount(D){let M=this.accountService.getHeaders();return this._apiService.put("project/fundraising/local/custom/donation/",D,M)}updateCustomDonationFormValuesBySlug(D,M){let T=this.accountService.getHeaders();return this._apiService.tempPutNew(`fundraiser/custom_donation_form/?slug=${M}`,D,T)}getConnectedFundraisers(D,M){return this.http.get(r.N.fundraiser_url+"fundraiser/connected",{params:{slug:D,page:M}})}getConnectedFundraisersObj(D){return D.result?this._fundraiserCardService.filterFundraiserCardDataList(D.result):[]}updateFundraiserBackground(D){let M=r.N.fundraiser_url,T="fundraiser/background/",le=this.accountService.getHeaders()?.get("Authorization")||"";const V=new FormData;V.append("image",D.image),V.append("slug",D.slug);let de={headers:(new e.WM).set("Authorization",le)};return null!=D.id||null!=D.id?(V.append("id",D.id),this.http.put(M+T,V,de)):this.http.post(M+T,V,de)}uploadFundraiserBackground(D){var M=this;return(0,t.Z)(function*(){let T=r.N.fundraiser_url,V=M.accountService.getHeaders()?.get("Authorization")||"";const de=new FormData;de.append("image",D.image),de.append("slug",D.slug);let ye={headers:(new e.WM).set("Authorization",V)};return yield M.http.post(T+"fundraiser/background",de,ye).toPromise()})()}getSharePreset(D,M){return this.http.post(r.N.apiUrl+"donation/create/preset/link/",{amount:M,fundraising_local_id:D})}getUpdatesListData(){return[{date:"13 october 2019",content:'The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.',mediaList:[{id:1469,image:"https://whydonate.in/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/staging/fundraiser_header/4f27677c919345a7/public",text:"update_331",title:null,video_url:null},{id:1470,image:"https://whydonate.in/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/staging/fundraiser_header/4f27677c919345a7/public",text:"update_331",title:null,video_url:null},{id:1471,image:null,text:"update_331",title:null,video_url:"https://www.youtube.com/embed/-zNFZjRo9Cc"}]},{date:"13 august 2019",content:"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots .",mediaList:[{id:1472,image:"https://whydonate.in/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/staging/fundraiser_header/4f27677c919345a7/public",text:"update_331",title:null,video_url:null}]},{date:"13 august 2019",content:'The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.',mediaList:[{id:1473,image:null,text:"update_331",title:null,video_url:null}]}]}deleteFundraiser(D){let M=this.accountService.getHeaders();return this.http.delete(this.FUNDRAISER_API_V2+"fundraiser",{params:{slug:D},headers:M})}isSlugUnique(D){return this.http.get(r.N.fundraiser_url+"fundraiser/slug/unique",{params:{slug:D}})}uploadAppealImageList(D){let M=r.N.fundraiser_url,F=JSON.parse(localStorage.getItem("user")||"{}").jwt.jwt,le=(new e.WM).set("Authorization",`JWT ${F}`);return this.http.post(M+"fundraiser/image/list",D,{headers:le})}getCurrentFundraiser(){return this.currentFundraiser}setCurrentFundraiser(D){this.currentFundraiser.next(D)}filterFundraiserObj(D){return D?(D.translations=this.getFilteredTranslationObj(D),D):null}getFilteredTranslationObj(D){const T="appeal",F="content",le="description",V="title";return Object.assign({},...Object.entries({...["bg","hr","cs","da","fi","el","hu","it","pl","pt","ro","sk","sv","uk","nl","de","es","en","fr"]}).map(([ye,Ee])=>{let Le=this.getLocaleSuffix(Ee)||"_nl",ge=T+Le,ue=F+Le,ee=le+Le,se=V+Le,W="is_auto"+Le;return{[ge]:D?.translations?.[ge]||D?.[T],[ue]:D?.translations?.[ue]||D?.[F],[ee]:D?.translations?.[ee]||D?.[le],[se]:D?.translations?.[se]||D?.[V],[W]:D?.translations?.[W]||!0}}))}isFundraiserClosed(D){let M=!0===D?.deleted,T=!1===D?.live,F=0==D?.is_opened,le=!0===D?.is_draft,de=!1;return de=null!=D?.end_date&&0===this._fundraiserCardService.getDateDiff(new Date,new Date(D?.end_date)),F||le||M||T||de}isFundraiserClosedNew(D){return!0===D?.is_draft||!0===D?.deleted||!1===D?.live}isFundraiserEndDateUnlimited(D){return c(D).diff(c(),"days")>15e3}getDateDiff(D,M){return this._fundraiserCardService.getDateDiff(D,M)}isLoggedInUserAdminOfFundraiser(D){let M=this.FUNDRAISER_API_V2+"fundraiser/connected/is_owner",T={fundraiser_local_id:D},F=this.accountService.getHeaders();return this.httpClient.post(M,T,{headers:F})}showDonationList(D){let T={headers:this.accountService.getHeaders()};return this.http.post(this.FUNDRAISER_URL+"fundraiser/show/donations",D,T)}getStripeChargesStatus(D){return this.http.get(r.N.fundraiser_url+"fundraiser/payment/status",{params:{slug:D}})}getAllCurrencies(){return this.http.get(this.DONATION_API+"/donation/stripe/currencies")}getMaxTargetAmountByCurrency(D){return this.http.get(this.DONATION_API+"/donation/stripe/currencies?currency="+D)}allowConnectedFundraiser(D){let T=this.accountService.getHeaders();return this.http.patch(this.FUNDRAISER_URL+"fundraiser/child",D,{headers:T})}getFeaturedTopics(D){return this.http.get(r.N.FUNDRAISER_API_V2+"fundraiser/featured/topics",{params:{language_code:D}})}getTopContributors(D,M){return this.http.get(`${r.N.DONATION_API_V2}top/donors`,{params:{slug:D,language_code:M,page:1,size:5}})}uploadQrData(D){let M=r.N.fundraiser_url,F=this.accountService.getHeaders(!0);return this.http.put(M+"qr-scan/data",D,{headers:F})}getQrData(){const M=`${r.N.fundraiser_url}qr-scan/data`,T=this.accountService.getHeaders();return this.http.get(M,{headers:T})}deleteQr(D){const T=`${r.N.fundraiser_url}qr/${D}`,F=this.accountService.getHeaders();return this.http.delete(T,{headers:F})}}return I.\u0275fac=function(D){return new(D||I)(m.LFG(e.eN),m.LFG(v.t),m.LFG(C.y),m.LFG(n.a),m.LFG(i.B),m.LFG(e.eN))},I.\u0275prov=m.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},26314:(St,be,s)=>{"use strict";s.d(be,{y:()=>v});var t=s(48046),e=s(45734),d=s(9206),l=s(93216);class r{constructor(n="",i="",P="",I="",q=""){this.boxShadowLevel=n,this.primaryColor=i,this.secondaryColor=P,this.fontFamily=I,this.buttonRadius=q}}var c=s(73991),E=s(21704),m=s(24510);let v=(()=>{class C{constructor(i,P,I){this.accountService=i,this.sanitizer=P,this.http=I,this.API_URL=d.N.apiUrl,this.API_URL_V2=this.API_URL.replace("/v1","/v2"),this.customEmbedPreview=new l.X(new r("1","#32BF55","#363396","Roboto","4")),this.currentcustomEmbedPreview=this.customEmbedPreview.asObservable()}saveAppealMedia(i){let P=d.N.fundraiser_url,D=this.accountService.getHeaders()?.get("Authorization")||"",M={headers:(new e.WM).set("Authorization",D)};return this.http.post(P+"fundraiser/image/list",i,M)}saveAboutMedia(i){let P=d.N.fundraiser_url,D=this.accountService.getHeaders()?.get("Authorization")||"",M={headers:(new e.WM).set("Authorization",D)};return this.http.post(P+"fundraiser/image/list",i,M)}saveUpdateMedia(i){let P=d.N.fundraiser_url,D=this.accountService.getHeaders()?.get("Authorization")||"",M={headers:(new e.WM).set("Authorization",D)};return this.http.post(P+"fundraiser/image/list",i,M)}getViewMediaList(i){return i?(i.map(P=>(P?.video_url&&(P.video_embed=this.createVideoEmbeddedHTML(P?.video_url)),P)),i):[]}getMediaList(i){return i?(i.map(P=>P.video_url?(P.video=P.video_url,P.video_embed=this.createVideoEmbeddedHTML(P.video_url),P):(P.image&&this.imageUrlToBase64Async(P?.image).then(I=>{P.image_base64=I}).catch(I=>{P.image_base64=null}),P)),i):[]}getSliderMediaList(i){return i?i?.map(P=>P?.image?{image:P?.image,thumbImage:P?.image}:P?.video_url||P?.video?{video:P?.video_url||P?.video}:void 0):[]}base64toFile(i){for(var P=atob(i.toString().split(",")[1]),I=new ArrayBuffer(P.length),q=new Uint8Array(I),D=0;D<P.length;D++)q[D]=P.charCodeAt(D);var M=new Blob([q],{type:"image/jpeg"});return new File([M],"blob",{type:"image/jpeg;charset=utf-8"})}base64toBlob(i){let P=atob(i.toString().split(",")[1]),I=new ArrayBuffer(P.length),q=new Uint8Array(I);for(let M=0;M<P.length;M++)q[M]=P.charCodeAt(M);return new Blob([q],{type:"image/png"})}imageUrlToBase64Async(i){var P=this;return(0,t.Z)(function*(){var I=yield fetch(i),q=yield I.blob();return new Promise((D,M)=>{try{var T=new FileReader;T.onload=F=>{D(F?.target?.result)},T.onerror=()=>{M(P)},T.readAsDataURL(q)}catch(F){M(F)}})})()}imageUrlToFileAsync(i,P,I="image/png"){return(0,t.Z)(function*(){const D=yield(yield fetch(i)).blob();return new Promise((M,T)=>{try{M(new File([D],P,{type:D.type||I}))}catch(F){T(F)}})})()}fileToBase64Async(i){return new Promise((P,I)=>{try{var q=new FileReader;q.onload=D=>{P(D?.target?.result)},q.onerror=()=>{I(this)},q.readAsDataURL(i)}catch(D){I(D)}})}createVideoEmbeddedHTML(i,P){let I;if(!i)return null;{let q=new URL(i);if(I=this.detectYoutube(q),I)return this.embed_youtube(I,P);if(I=this.detectVimeo(q),I)return this.embed_vimeo(I,P);if(I=this.detectDailymotion(q),I)return this.embed_dailymotion(I,P)}}detectYoutube(i){return i.hostname.indexOf("youtube.com")>-1?this.getYoutubeId(i):"youtu.be"===i.hostname?i.pathname.split("/")[1]:""}getYoutubeId(i){return i.pathname?.includes("shorts")?i?.pathname?.split("shorts/")[1]:i?.search?.split("=")[1]}embed_youtube(i,P){let I;return(P=this.parseOptions(P))&&P.hasOwnProperty("query")&&(I="?"+this.serializeQuery(P.query)),this.sanitize_iframe('<iframe style="width: inherit;height: inherit;" src="//www.youtube.com/embed/'+i+P.query+'"'+P.attr+' frameborder="0" allowfullscreen></iframe>')}detectVimeo(i){return"vimeo.com"===i.hostname?i.pathname.split("/")[1]:null}embed_vimeo(i,P){let I;return(P=this.parseOptions(P))&&P?.hasOwnProperty("query")&&(I="?"+this.serializeQuery(P.query)),this.sanitize_iframe('<iframe style="width: inherit;height: inherit;" src="//player.vimeo.com/video/'+i+P.query+'"'+P.attr+' frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>')}detectDailymotion(i){return i.hostname.indexOf("dailymotion.com")>-1?i.pathname.split("/")[2].split("_")[0]:"dai.ly"===i.hostname?i.pathname.split("/")[1]:""}embed_dailymotion(i,P){let I;return(P=this.parseOptions(P))&&P?.hasOwnProperty("query")&&(I="?"+this.serializeQuery(P.query)),this.sanitize_iframe('<iframe style="width: inherit;height: inherit;" src="//www.dailymotion.com/embed/video/'+i+P.query+'"'+P.attr+' frameborder="0" allowfullscreen></iframe>')}sanitize_iframe(i){return this.sanitizer.bypassSecurityTrustHtml(i)}parseOptions(i){let P="",I="";if(i&&i?.hasOwnProperty("query")&&(P="?"+this.serializeQuery(i.query)),i&&i?.hasOwnProperty("attr")){const q=[];Object.keys(i.attr).forEach(function(D){q.push(D+'="'+i.attr[D]+'"')}),I=" "+q.join(" ")}return{query:P,attr:I}}serializeQuery(i){const P=[];for(const I in i)i?.hasOwnProperty(I)&&P.push(encodeURIComponent(I)+"="+encodeURIComponent(i[I]));return P.join("&")}updateEmbedPreview(i,P,I,q,D){const M=new r(i,P,I,q,D);this.customEmbedPreview.next(M)}}return C.\u0275fac=function(i){return new(i||C)(c.LFG(E.B),c.LFG(m.H7),c.LFG(e.eN))},C.\u0275prov=c.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})()},83482:(St,be,s)=>{"use strict";s.d(be,{q:()=>d});var t=s(93216),e=s(73991);let d=(()=>{class l{constructor(){this.customText=new t.X(""),this.currentCustomText=this.customText.asObservable()}changeTab(c){this.customText.next(c)}getCustomTextValue(){return this.customText.value}}return l.\u0275fac=function(c){return new(c||l)},l.\u0275prov=e.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},21672:(St,be,s)=>{"use strict";s.r(be),s.d(be,{HomeModule:()=>mi});var t=s(17774),e=s(64886),d=s(48046),l=s(42456),r=s(9206),c=s(73991),E=s(39862),m=s(32946),v=s(84531),C=s(24510),n=s(47692),i=s(21704),P=s(26314),I=s(46480),q=s(13009),D=s(6225),M=s(56413),T=s(4692),F=s(43732),le=s(9),V=s(36442),de=s(43073),ye=s(43719),Ee=s(45379),Le=s(81560),ge=s(31180),ue=s(27579),ee=s(74351),se=s(80539),W=s(85270),L=s(6450),he=s(66037),_e=s(45547),Z=s(91469),Te=s(6717),w=s(67327),k=s(26974),x=s(35961),z=s(20071),j=s(81713),Ne=s(17160),tt=s(61392),We=s(36560),ze=s(38545),we=s(97107);let Ye=(()=>{class Ct{constructor(){}ngOnInit(){}}return Ct.\u0275fac=function(ve){return new(ve||Ct)},Ct.\u0275cmp=c.Xpm({type:Ct,selectors:[["app-features-and-why-whydonate"]],decls:98,vars:0,consts:function(){let Dt,ve,Rt,Dr,kn,wn,Jn,yn,Mn,$n,ia,Ua,qa,ro,Na,ga,Ka,Mi,Bi;return Dt="Prikupljanje Sredstava Platforma Zna\u010Dajke",ve="0% Naknada platforme",Rt="WhyDonate ne napla\u0107uje proviziju Pla\u0107ate samo tro\u0161kove obrade pla\u0107anja za iDEAL, PayPal, Bancontact, kreditnu karticu itd.",Dr="Podr\u0161ka kupcima",kn="Trebate pomo\u0107? Slu\u017Eba za korisnike WhyDonate dostupna je putem chata, e-po\u0161te ili zakazanih telefonskih sastanaka. Usluga radi sedam dana u tjednu, od 9 do 17 sati po srednjoeuropskom vremenu (CET).",wn="Prikupljanje Novca Diljem Svijeta",Jn="Prikupite donacije iz cijelog svijeta WhyDonate ima vi\u0161e valuta, jezika i na\u010Dina pla\u0107anja.",yn="Upravljanje Donatorima",Mn="Kompletna upravlja\u010Dka plo\u010Da pru\u017Ea sveobuhvatan pregled svih va\u0161ih prikupljanja sredstava, donatora i izdataka.",$n="Mre\u017Ea Donatora",ia="Osim vlastite mre\u017Ee, dosegnite vi\u0161e od 500000 donatora i vi\u0161e od 100000 posjetitelja mjese\u010Dno na WhyDonate.",Ua="\u017Divi unutar minuta",qa="Kreirajte ra\u010Dun i zapo\u010Dnite online prikupljanje sredstava u roku od nekoliko minuta.",ro="Izravne Isplate",Na="Zatra\u017Eite odmah isplatu donacija ili pri\u010Dekajte automatsku mjese\u010Dnu isplatu WhyDonate ispla\u0107uje donacije u sve europske SEPA zemlje.",ga="Prilago\u0111eno brendiranje",Ka="Dodajte vlastiti prilago\u0111eni branding i sadr\u017Eaj na prikupljanje sredstava, obrasce za donaciju i e-po\u0161tu.",Mi="Sigurnost i Privatnost",Bi="Za\u0161toDoniraj osigurava sigurnost va\u0161ih donacija i podataka Podaci se pohranjuju \u0161ifrirani, a sve uplate su osigurane od strane licenciranih platnih institucija.",[["ngClass","p-xxl m-r-xl m-l-xl m-b-l","ngClass.lt-md","p-l-m p-r-s p-b-xxl m-b-s  p-t-xxl m-t-s","fxFlex","100","fxLayout","column","fxLayout.lt-sm","row wrap","fxLayoutAlign","center","fxLayoutGap","2%"],["fxFlex","100","fxLayout","row","fxLayoutAlign","center center","ngClass","center"],["fxFlex","100","fxLayout","column","fxLayoutAlign","center center","ngClass.gt-xs","m-b-xl","ngClass.lt-sm","p-b-m"],[1,"dark-grey-texts"],Dt,["fxFlex","100%","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","space-around start","fxLayoutGap","5%","fxLayoutGap.xs","3%"],["fxFlex","26%","fxLayout","column"],["fxFlex","100%","fxLayout","row"],["fxLayout","column","ngClass.lt-sm","m-t-l","fxLayoutGap","3%"],["fxLayout","row","fxLayoutGap","3%"],["height","64px","width","64px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/zeroFeeNew/public",1,"hover-on-svg"],[1,"mat-card-title","p-t-xs","dark-grey-texts","inc-largetext-height"],ve,["fxLayout","row"],[1,"dark-grey-texts","inc-span-height"],Rt,["height","64px","width","64px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/customerSupportNew/public",1,"hover-on-svg"],Dr,kn,["height","64px","width","64px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/globalFundNew/public",1,"hover-on-svg"],wn,Jn,["fxFlex","100%","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","space-around start","fxLayoutGap.gt-xs","5%","fxLayoutGap.xs","3%"],["fxLayout","column","ngClass.lt-sm","m-t-l","fxLayoutGap","1%"],["height","64px","width","64px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/dashboardDonorNew/public",1,"hover-on-svg"],yn,Mn,["height","64px","width","64px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/donorNetworkNew/public",1,"hover-on-svg"],$n,ia,["height","64px","width","64px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/liveMinutesNew/public",1,"hover-on-svg"],Ua,qa,["height","64px","width","64px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/directPayoutsNew/public",1,"hover-on-svg"],ro,Na,["height","64px","width","64px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/customizeNew/public",1,"hover-on-svg"],ga,Ka,["height","64px","width","64px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/securityTrustNew/public",1,"hover-on-svg"],Mi,Bi]},template:function(ve,Rt){1&ve&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),c.SDv(4,4),c.qZA()()(),c.TgZ(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),c._UZ(10,"img",10),c.TgZ(11,"div",11),c.SDv(12,12),c.qZA()(),c.TgZ(13,"div",13)(14,"p",14),c.SDv(15,15),c.qZA()()()()(),c.TgZ(16,"div",6)(17,"div",7)(18,"div",8)(19,"div",9),c._UZ(20,"img",16),c.TgZ(21,"div",11),c.SDv(22,17),c.qZA()(),c.TgZ(23,"div",13)(24,"p",14),c.SDv(25,18),c.qZA()()()()(),c.TgZ(26,"div",6)(27,"div",7)(28,"div",8)(29,"div",9),c._UZ(30,"img",19),c.TgZ(31,"div",11),c.SDv(32,20),c.qZA()(),c.TgZ(33,"div",13)(34,"p",14),c.SDv(35,21),c.qZA()()()()()(),c.TgZ(36,"div",22)(37,"div",6)(38,"div",7)(39,"div",23)(40,"div",9),c._UZ(41,"img",24),c.TgZ(42,"div",11),c.SDv(43,25),c.qZA()(),c.TgZ(44,"div",13)(45,"p",14),c.SDv(46,26),c.qZA()()()()(),c.TgZ(47,"div",6)(48,"div",7)(49,"div",8)(50,"div",9),c._UZ(51,"img",27),c.TgZ(52,"div",11),c.SDv(53,28),c.qZA()(),c.TgZ(54,"div",13)(55,"p",14),c.SDv(56,29),c.qZA()()()()(),c.TgZ(57,"div",6)(58,"div",7)(59,"div",8)(60,"div",9),c._UZ(61,"img",30),c.TgZ(62,"div",11),c.SDv(63,31),c.qZA()(),c.TgZ(64,"div",13)(65,"p",14),c.SDv(66,32),c.qZA()()()()()(),c.TgZ(67,"div",5)(68,"div",6)(69,"div",7)(70,"div",8)(71,"div",9),c._UZ(72,"img",33),c.TgZ(73,"div",11),c.SDv(74,34),c.qZA()(),c.TgZ(75,"div",13)(76,"p",14),c.SDv(77,35),c.qZA()()()()(),c.TgZ(78,"div",6)(79,"div",7)(80,"div",23)(81,"div",9),c._UZ(82,"img",36),c.TgZ(83,"div",11),c.SDv(84,37),c.qZA()(),c.TgZ(85,"div",13)(86,"p",14),c.SDv(87,38),c.qZA()()()()(),c.TgZ(88,"div",6)(89,"div",7)(90,"div",8)(91,"div",9),c._UZ(92,"img",39),c.TgZ(93,"div",11),c.SDv(94,40),c.qZA()(),c.TgZ(95,"div",13)(96,"p",14),c.SDv(97,41),c.qZA()()()()()()())},dependencies:[t.mk,ue.xw,ue.SQ,ue.Wh,ue.yH,ee.oO]}),Ct})();var te=s(45734);let Se=(()=>{class Ct{constructor(ve){this.httpClient=ve,this.API_URL=r.N.project_url,this.API_URL_V2=this.API_URL.replace("/v1","/v2")}getFacts(){return this.httpClient.get(r.N.fundraiser_url+"fundraiser/stats")}}return Ct.\u0275fac=function(ve){return new(ve||Ct)(c.LFG(te.eN))},Ct.\u0275prov=c.Yz7({token:Ct,factory:Ct.\u0275fac,providedIn:"root"}),Ct})();var ke=s(33803);let Ge=(()=>{class Ct{constructor(ve){this._homeService=ve,this.activeDonors=0,this.totalFundriasers=0}ngOnInit(){this._homeService.getFacts().subscribe(ve=>{this.activeDonors=ve?.data?.active_donors,this.totalFundriasers=ve?.data?.total_fundriasers})}}return Ct.\u0275fac=function(ve){return new(ve||Ct)(c.Y36(Se))},Ct.\u0275cmp=c.Xpm({type:Ct,selectors:[["app-sub-footer-start-afundraiser"]],decls:45,vars:6,consts:function(){let Dt,ve,Rt,Dr,kn,wn,Jn;return Dt="Pridru\u017Eite se Zajednici Za Prikupljanje Sredstava WhyDonate",ve="1M+",Rt="Posjetitelji web stranice mjese\u010Dno",Dr="Sakuplja\u010Di sredstava zapo\u010Deti",kn="Donori",wn="4,8/5",Jn="Najbolje ocijenjeno na stranicama s recenzijama",[["fxLayout","column",1,"primary-bg"],["fxLayout","row","fxFill","","fxLayoutAlign","flex-end","fxHide.lt-md",""],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/topHeartHomepage/public"],["fxLayout","row","fxHide.gt-sm","","ngClass","p-b-m"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/topHeartMobile/public"],["fxLayout.gt-sm","row","fxLayout.lt-md","column","fxLayoutAlign","center center"],["fxLayout","column","fxFlex","50%","ngClass.gt-md","p-l-xxl m-l-xxl","ngClass.gt-sm","p-l-xxl","fxLayoutAlign.lt-md","center center"],["fxLayout","row","ngClass.lt-md","p-l-xxl p-r-xxl","ngClass.lt-sm","p-l-xs p-r-xs"],["ngClass.lt-md","text-align-center",1,"white-text"],Dt,["fxLayout","row","ngClass","p-t-s"],["buttonType","homepage3"],["fxLayout","column","fxFlex","20%","ngClass.gt-sm","p-l-xs","ngClass.lt-md","p-t-xl m-t-s","fxLayoutAlign.gt-sm","center","fxLayoutAlign.lt-md","center center"],["fxLayout","row","ngClass","p-b-m"],[1,"white-text","mat-card-title","font-large",2,"font-family","roboto"],ve,["fxLayout","row"],[1,"white-text","mat-subtitle"],Rt,["fxLayout","row","ngClass.gt-sm","p-b-m p-t-xl","ngClass.lt-md","p-b-m p-t-l"],Dr,["fxLayout","column","fxFlex","30%","fxLayoutAlign.gt-sm","center","fxLayoutAlign.lt-md","center center","ngClass.lt-md","p-t-l"],kn,["fxLayout","row","fxLayoutAlign","flex-start center","fxLayoutGap","4%","ngClass.gt-sm","p-b-m p-t-xl","ngClass.lt-md","p-b-m p-t-l"],wn,["height","17px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fiveStarsNew/public"],Jn,["fxLayout","row","fxFill","","fxLayoutAlign","flex-start","fxHide.lt-md",""],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/bottomHeartHomepage/public"],["fxLayout","row","fxHide.gt-sm","","fxLayoutAlign","flex-end","ngClass","p-t-m"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/bottomHeartMobile/public"]]},template:function(ve,Rt){1&ve&&(c.TgZ(0,"div",0)(1,"div",1),c._UZ(2,"img",2),c.qZA(),c.TgZ(3,"div",3),c._UZ(4,"img",4),c.qZA(),c.TgZ(5,"div",5)(6,"div",6)(7,"div",7)(8,"h2",8),c.SDv(9,9),c.qZA()(),c.TgZ(10,"div",10),c._UZ(11,"app-start-fundraiser-button",11),c.qZA()(),c.TgZ(12,"div",12)(13,"div",13)(14,"span",14),c.SDv(15,15),c.qZA()(),c.TgZ(16,"div",16)(17,"p",17),c.SDv(18,18),c.qZA()(),c.TgZ(19,"div",19)(20,"span",14),c._uU(21),c.ALo(22,"number"),c.qZA()(),c.TgZ(23,"div",16)(24,"p",17),c.SDv(25,20),c.qZA()()(),c.TgZ(26,"div",21)(27,"div",13)(28,"span",14),c._uU(29),c.ALo(30,"number"),c.qZA()(),c.TgZ(31,"div",16)(32,"p",17),c.SDv(33,22),c.qZA()(),c.TgZ(34,"div",23)(35,"span",14),c.SDv(36,24),c.qZA(),c._UZ(37,"img",25),c.qZA(),c.TgZ(38,"div",16)(39,"p",17),c.SDv(40,26),c.qZA()()()(),c.TgZ(41,"div",27),c._UZ(42,"img",28),c.qZA(),c.TgZ(43,"div",29),c._UZ(44,"img",30),c.qZA()()),2&ve&&(c.xp6(21),c.hij(" ",c.lcZ(22,2,Rt.totalFundriasers),"+ "),c.xp6(8),c.hij(" ",c.lcZ(30,4,Rt.activeDonors),"+ "))},dependencies:[t.mk,ue.xw,ue.SQ,ue.Wh,ue.s9,ue.yH,ee.b8,ee.oO,ke.A,t.JJ]}),Ct})(),Tt=(()=>{class Ct{constructor(){}ngOnInit(){}}return Ct.\u0275fac=function(ve){return new(ve||Ct)},Ct.\u0275cmp=c.Xpm({type:Ct,selectors:[["app-personal-fundraising-divided-banner"]],decls:22,vars:1,consts:function(){let Dt,ve,Rt,Dr,kn;return Dt="Va\u0161e Mjesto Za \u010Ciniti Dobro",ve="Online Prikupljanje Sredstava Za Pojedince i Organizacije",Rt="Bez Naknada Za Pokretanje Prikupljanja Sredstava",Dr="Standardne Naknade Za Obradu Pla\u0107anja",kn="od 0,25 \u20AC + 1,9% po donaciji",[["fxLayout","row","fxLayout.xs","column","fxFlex","100%","ngClass.gt-md","p-t-xxl","ngClass.lt-lg","p-t-l",1,"primary-bg","white-text"],["fxLayout","column","fxFlex.gt-md","35%","ngClass.gt-md","p-l-xxl","ngClass.lt-lg","p-l-l","ngClass.lt-sm","p-l-m"],["fxLayout","row","ngClass.gt-xs","p-t-l","ngClass.lt-sm","p-t-s p-b-s"],[1,"mat-card-title"],Dt,["fxLayout","row","ngClass","w-100"],ve,["fxLayout","row","ngClass.gt-sm","p-t-xl","ngClass.lt-md","p-t-m"],["buttonType","homepage1"],["fxLayout","row","ngClass","p-t-s p-b-l"],["fxLayout","column","fxFlex","70%"],["fxLayout","row","ngClass","p-b-xxs"],Rt,["fxLayout","column",1,"homepage-smallest-font"],Dr,kn,["fxLayout","column","fxFlex","65%","fxLayoutAlign","end end","ngClass.gt-xs","p-t-xxl m-t-l"],["alt","WhyDonate Crowdfunding Platform","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/HomePersonalBanner/public",1,"w-100",3,"ngClass.sm"]]},template:function(ve,Rt){1&ve&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),c.SDv(4,4),c.qZA()(),c.TgZ(5,"div",5)(6,"h1"),c.SDv(7,6),c.qZA()(),c.TgZ(8,"div",7),c._UZ(9,"app-start-fundraiser-button",8),c.qZA(),c.TgZ(10,"div",9)(11,"div",10)(12,"div",11)(13,"b"),c.SDv(14,12),c.qZA()(),c.TgZ(15,"div",13)(16,"div"),c.SDv(17,14),c.qZA(),c.TgZ(18,"div"),c.SDv(19,15),c.qZA()()()()(),c.TgZ(20,"div",16),c._UZ(21,"img",17),c.qZA()()),2&ve&&(c.xp6(21),c.Q6J("ngClass.sm","w-125-sm"))},dependencies:[t.mk,ue.xw,ue.Wh,ue.yH,ee.oO,ke.A]}),Ct})(),Et=(()=>{class Ct{constructor(){}ngOnInit(){}}return Ct.\u0275fac=function(ve){return new(ve||Ct)},Ct.\u0275cmp=c.Xpm({type:Ct,selectors:[["app-starting-a-fundraiser"]],decls:39,vars:0,consts:function(){let Dt,ve,Rt,Dr,kn,wn,Jn,yn,Mn;return Dt="Prikupite Sredstva U 4 Laka Koraka",ve="Zapo\u010Deti Sakuplja\u010D Sredstava",Rt="Prijavite se na WhyDonate i stvorite svoje prikupljanje sredstava u minutama Mo\u017Eete se registrirati kao pojedinac ili organizacija.",Dr="Podijelite svoje prikupljanje sredstava",kn="Podijelite svoju akciju za prikupljanje sredstava putem e-po\u0161te, Facebooka, WhatsApp-a i drugih dru\u0161tvenih mre\u017Ea kako biste dosegnuli \u0161to vi\u0161e donatora.",wn="Prijem Donacija",Jn="Donacije se ispla\u0107uju tjedno, mjese\u010Dno ili izravno po zahtjevu na va\u0161 bankovni ra\u010Dun.",yn="Zahvalite donatorima",Mn="Prilagodite automatsku e-po\u0161tu zahvale ili po\u0161aljite osobnu poruku svojim donatorima putem nadzorne plo\u010De WhyDonate.",[["fxLayout","column","ngClass.gt-xs","p-t-xxl p-b-xxl","ngClass.lt-sm","p-t-xl p-b-xl","fxLayoutGap","2%",1,"primary-bg"],["fxLayout","row","fxLayoutAlign","center","ngClass","p-b-s p-t-l"],[1,"white-text","text-align-center"],Dt,["fxLayout.lt-sm","row"],["fxLayout","row","fxLayoutAlign","flex-start center","ngClass.gt-md","p-l-xxl m-l-l p-b-l","ngClass.md","p-l-xxl p-b-l","ngClass.sm","p-l-xl p-b-l","fxHide.lt-sm",""],["fxFlex.sm","78%","fxFlex.gt-sm","75%","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/horizontalLineHomepage/public"],["fxLayout","column","fxLayoutAlign","flex-start center","ngClass.gt-xs","p-l-l p-t-xl","ngClass.lt-sm","p-l-l p-t-s","fxHide.gt-xs",""],["fxFlex","81%","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/verticalLineHomepage/public"],["fxLayout","row","fxLayoutAlign","center","ngClass.gt-xs","p-b-xl","ngClass.lt-sm","p-l-m p-r-m"],["fxLayout.gt-xs","row","fxLayout.lt-sm","column","fxFlex.gt-sm","88%","fxFlex.sm","92%","fxLayoutGap.gt-sm","3%","fxLayoutGap.sm","5%","fxLayoutAlign","space-between flex-start"],["fxFlex","23%","fxLayout","column"],["fxLayout","row"],[1,"white-text","mat-title"],ve,[1,"white-text","inc-span-height"],Rt,Dr,kn,wn,Jn,yn,Mn]},template:function(ve,Rt){1&ve&&(c.TgZ(0,"div",0)(1,"div",1)(2,"h2",2),c.SDv(3,3),c.qZA()(),c.TgZ(4,"div",4)(5,"div",5),c._UZ(6,"img",6),c.qZA(),c.TgZ(7,"div",7),c._UZ(8,"img",8),c.qZA(),c.TgZ(9,"div",9)(10,"div",10)(11,"div",11)(12,"div",12)(13,"span",13),c.SDv(14,14),c.qZA()(),c.TgZ(15,"div",12)(16,"span",15),c.SDv(17,16),c.qZA()()(),c.TgZ(18,"div",11)(19,"div",12)(20,"span",13),c.SDv(21,17),c.qZA()(),c.TgZ(22,"div",12)(23,"span",15),c.SDv(24,18),c.qZA()()(),c.TgZ(25,"div",11)(26,"div",12)(27,"span",13),c.SDv(28,19),c.qZA()(),c.TgZ(29,"div",12)(30,"span",15),c.SDv(31,20),c.qZA()()(),c.TgZ(32,"div",11)(33,"div",12)(34,"span",13),c.SDv(35,21),c.qZA()(),c.TgZ(36,"div",12)(37,"span",15),c.SDv(38,22),c.qZA()()()()()()())},dependencies:[t.mk,ue.xw,ue.SQ,ue.Wh,ue.yH,ee.b8,ee.oO]}),Ct})(),H=(()=>{class Ct{constructor(){this.whydonatePlatformUrl="hr/crowdfunding-prikupljanje-sredstava/"}ngOnInit(){}languageForWhydonatePlatform(){window.location.href="https://whydonate.com/"+this.whydonatePlatformUrl}}return Ct.\u0275fac=function(ve){return new(ve||Ct)},Ct.\u0275cmp=c.Xpm({type:Ct,selectors:[["app-fundraising-site"]],decls:19,vars:0,consts:function(){let Dt,ve,Rt,Dr;return Dt="Prikupljanje sredstava proizvodi za\u0161to donirati",ve="Crowdfunding i kampanje Peer-To-Peer",Rt="Na WhyDonate mo\u017Eete zapo\u010Deti osobnu kampanju za prikupljanje sredstava, kampanju za dobrotvorne svrhe ili kampanju me\u0111u vr\u0161njacima.",Dr="Sve Mogu\u0107nosti Prikupljanja Sredstava",[["fxLayout","row","fxLayoutAlign","center"],["fxLayout","column","ngClass","p-t-xxl m-t-xl","fxFlex.gt-xs","100%","fxFlex.xs","90%",1,"dark-grey-texts"],["fxLayout","row","fxLayoutAlign","center","ngClass","p-b-xl"],[1,"text-align-center"],Dt,["fxLayout.gt-xs","row","fxLayout.xs","column","fxFlex","100%","fxLayoutAlign","center","fxLayoutGap","3%"],["fxLayout","column","fxFlex.gt-sm","35%","fxFlex.sm","40%"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/homeOrganisationProduct/public"],["fxLayout","column","fxFlex.sm","45%","fxFlex.md","40%","fxFlex.lg","28%","fxLayoutAlign","center"],["fxLayout","row"],[1,"mat-card-title","inc-largetext-height"],ve,[1,"inc-span-height"],Rt,["fxLayout","row","fxLayoutAlign","flex-start center","ngClass","p-t-m"],["mat-button","","color","accent",3,"click"],[1,"mat-title"],Dr]},template:function(ve,Rt){1&ve&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),c.SDv(4,4),c.qZA()(),c.TgZ(5,"div",5)(6,"div",6),c._UZ(7,"img",7),c.qZA(),c.TgZ(8,"div",8)(9,"div",9)(10,"span",10),c.SDv(11,11),c.qZA()(),c.TgZ(12,"div",9)(13,"p",12),c.SDv(14,13),c.qZA()(),c.TgZ(15,"div",14)(16,"a",15),c.NdJ("click",function(){return Rt.languageForWhydonatePlatform()}),c.TgZ(17,"span",16),c.SDv(18,17),c.qZA()()()()()()())},dependencies:[t.mk,de.Nr,ue.xw,ue.SQ,ue.Wh,ue.yH,ee.oO],styles:[".site_img[_ngcontent-%COMP%]{margin-top:5%}a[_ngcontent-%COMP%]{padding:0 2px}"]}),Ct})(),Y=(()=>{class Ct{constructor(){}ngOnInit(){}}return Ct.\u0275fac=function(ve){return new(ve||Ct)},Ct.\u0275cmp=c.Xpm({type:Ct,selectors:[["app-organisation-banner"]],decls:28,vars:0,consts:function(){let Dt,ve,Rt;return Dt="Prikupljanje sredstava za dobrotvorne svrhe je jednostavno",ve="WhyDonate je najbolja platforma za prikupljanje sredstava za dobrotvorne svrhe Prikupite donacije i ostvarite svoje ciljeve.",Rt="0% Naknada za platformu, pa krenimo!",[["fxLayout","column","ngClass","p-t-xxl m-t-m p-b-l"],["fxLayout","column","fxLayoutAlign","flex-start center","fxFlex","70%",1,"text-align-center"],["fxLayout","row"],[1,"dark-grey-texts"],Dt,["fxLayout","row","fxLayoutAlign","center","ngClass","p-t-s"],["fxLayout","column","fxFlex.gt-sm","65%","fxFlex.sm","78%","fxFlex.xs","90%"],[1,"mat-card-title","inc-largetext-height"],ve,["fxLayout","row","ngClass","p-t-xl m-t-s","fxHide.lt-sm",""],["buttonType","homepage5"],["fxLayout","row","fxLayoutAlign","center","ngClass","p-t-xl m-t-s","fxHide.gt-xs","","fxFill",""],["fxLayout","column","fxFlex","90%"],["buttonType","homepage6"],["fxLayout","row","ngClass","p-t-xs"],[1,"mat-body-2","dark-grey-texts"],Rt,["fxLayout","row","ngClass","p-t-xl m-t-s","fxLayoutAlign","center"],["fxLayout","column","fxFlex.sm","70%","fxFlex.xs","90%"],["fxLayout","column","fxFlex","100%","fxLayoutAlign","center center","ngClass","p-t-s","ngClass.xs","p-l-xl"],["fxLayout.gt-sm","row","fxLayout.lt-md","row wrap","fxLayoutAlign","center center","fxLayoutGap.gt-md","15%","fxLayoutGap.md","12%","fxLayoutGap.sm","10%","fxLayoutGap.xs","11%"],["ngClass.sm","p-l-xxl","ngClass.xs","p-t-s","width","65px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/salArmy/public",1,"hover-on-svg"],["ngClass.sm","p-l-m","ngClass.xs","p-t-s","width","76px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/extinction_rebellion/public",1,"hover-on-svg"],["ngClass.sm","p-l-m","ngClass.xs","p-t-s","width","58px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/brac/public",1,"hover-on-svg"],["ngClass.sm","p-l-m","ngClass.xs","p-t-l","width","51px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/wwf/public",1,"hover-on-svg"],["ngClass.sm","p-t-l p-l-m","ngClass.xs","p-t-l","width","68px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/oxfam/public",1,"hover-on-svg"],["ngClass.sm","p-t-l p-l-m","ngClass.xs","p-t-l","width","69px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/unhcr/public",1,"hover-on-svg"],["ngClass.sm","p-t-l","ngClass.xs","p-t-m","width","110px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/ifrc/public",1,"hover-on-svg"]]},template:function(ve,Rt){1&ve&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),c.SDv(4,4),c.qZA()(),c.TgZ(5,"div",5)(6,"div",6)(7,"span",7),c.SDv(8,8),c.qZA()()(),c.TgZ(9,"div",9),c._UZ(10,"app-start-fundraiser-button",10),c.qZA(),c.TgZ(11,"div",11)(12,"div",12),c._UZ(13,"app-start-fundraiser-button",13),c.qZA()(),c.TgZ(14,"div",14)(15,"span",15),c.SDv(16,16),c.qZA()(),c.TgZ(17,"div",17),c._UZ(18,"div",18),c.qZA()(),c.TgZ(19,"div",19)(20,"div",20),c._UZ(21,"img",21)(22,"img",22)(23,"img",23)(24,"img",24)(25,"img",25)(26,"img",26)(27,"img",27),c.qZA()()())},dependencies:[t.mk,ue.xw,ue.SQ,ue.Wh,ue.s9,ue.yH,ee.b8,ee.oO,ke.A]}),Ct})(),S=(()=>{class Ct{constructor(){this.donationPluginUrl="hr/gumb-za-doniranje-donacija-website-plugin/"}ngOnInit(){}routeToLearnMore(){window.location.href="https://whydonate.com/"+this.donationPluginUrl}}return Ct.\u0275fac=function(ve){return new(ve||Ct)},Ct.\u0275cmp=c.Xpm({type:Ct,selectors:[["app-donation-plugin"]],decls:16,vars:0,consts:function(){let Dt,ve,Rt;return Dt="Gumb Za Donaciju",ve="Prikupljajte donacije za svoju dobrotvornu organizaciju dodavanjem dodatka za donacije na svoju web stranicu Kreirajte najbolju web stranicu za donacije za svoju dobrotvornu organizaciju Jednostavna instalacija u roku od nekoliko minuta.",Rt="Saznajte Vi\u0161e",[["fxLayout","row","fxLayoutAlign","center","ngClass","p-b-xxl m-b-xl p-t-xxl m-t-l"],["fxLayout","column","fxFlex.gt-xs","100%","fxFlex.xs","90%",1,"dark-grey-texts"],["fxLayout.gt-xs","row","fxLayout.xs","column-reverse","fxFlex","100%","fxLayoutAlign","center","fxLayoutGap","3%"],["fxLayout","column","fxFlex.sm","45%","fxFlex.md","40%","fxFlex.lg","28%","fxFlex.gt-lg","38%","fxLayoutAlign","center"],["fxLayout","row","ngClass.xs","p-t-xl"],[1,"mat-card-title","inc-largetext-height"],Dt,["fxLayout","row"],[1,"inc-span-height"],ve,["fxLayout","row","fxLayoutAlign","flex-start center","ngClass","p-t-m"],["mat-button","","color","accent",3,"click"],[1,"mat-title"],Rt,["fxLayout","column","fxFlex.gt-sm","35%","fxFlex.sm","40%","ngClass.xs","p-t-xl m-t-m"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/homeOrganisationPlugin/public"]]},template:function(ve,Rt){1&ve&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"span",5),c.SDv(6,6),c.qZA()(),c.TgZ(7,"div",7)(8,"p",8),c.SDv(9,9),c.qZA()(),c.TgZ(10,"div",10)(11,"a",11),c.NdJ("click",function(){return Rt.routeToLearnMore()}),c.TgZ(12,"span",12),c.SDv(13,13),c.qZA()()()(),c.TgZ(14,"div",14),c._UZ(15,"img",15),c.qZA()()()())},dependencies:[t.mk,de.Nr,ue.xw,ue.SQ,ue.Wh,ue.yH,ee.oO],styles:["a[_ngcontent-%COMP%]{padding:0 2px}"]}),Ct})();function K(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",15),c._UZ(1,"app-fundraiser-card",16),c.qZA()),2&Ct){const ve=Dt.$implicit;c.xp6(1),c.Q6J("slug",ve.slug)("fundraiserCardData",ve.fundraiserCardData)}}function Q(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",15),c._UZ(1,"app-fundraiser-card",16),c.qZA()),2&Ct){const ve=Dt.$implicit;c.xp6(1),c.Q6J("slug",ve.slug)("fundraiserCardData",ve.fundraiserCardData)}}const B=function(Ct){return{disabled:Ct}};let re=(()=>{class Ct{constructor(ve,Rt,Dr){this._searchService=ve,this.router=Rt,this.cdr=Dr}ngOnInit(){this._searchService.getPopularFundraiser().subscribe(ve=>{this._fundraiserCardDataList=this._searchService.getSearchFundraiserCardDataListElasticSearch(ve.data),this.cdr.detectChanges()})}routeToSearch(){this.router.navigate(["search"])}scrollCards(ve){const Rt=document.querySelector(".homepage-card-container");if(Rt){const Dr=Rt.clientWidth;Rt.scrollBy({left:"prev"===ve?-Dr:Dr,behavior:"smooth"})}}hasMoreData(ve){const Rt=document.querySelector(".homepage-card-container");if(Rt){const wn=Rt.scrollLeft;return"prev"===ve?wn>0:wn<Rt.scrollWidth-Rt.clientWidth}return!1}}return Ct.\u0275fac=function(ve){return new(ve||Ct)(c.Y36(E.oD),c.Y36(e.F0),c.Y36(c.sBO))},Ct.\u0275cmp=c.Xpm({type:Ct,selectors:[["app-featured-fundraisers-homepage"]],decls:22,vars:12,consts:function(){let Dt,ve;return Dt="Trending Kampanje za Prikupljanje Sredstava",ve="Prika\u017Ei Vi\u0161e",[["fxLayout","column","ngClass.gt-md","p-xxl m-t-xl m-b-xl","ngClass.md","p-xl m-b-xl m-t-xl","ngClass.sm","p-m m-t-xxl m-b-xxl","ngClass.xs","p-m p-t-xxl"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","100%","ngClass","p-b-m"],[1,"dark-grey-texts","text-align-center"],Dt,["fxFlex","100%","fxLayout","row","fxLayoutAlign","flex-start center","fxHide.lt-sm","",1,"homepage-card-container"],["class","fundraiser-card",4,"ngFor","ngForOf"],["fxFlex","100%","fxLayout","column","fxLayoutAlign","flex-start center","fxLayoutGap","4%","fxHide.gt-xs",""],["fxLayout","row","fxFlex","100%","fxLayoutAlign","space-between flex-end","fxLayoutAlign.xs","flex-end","ngClass.xs","p-t-xl p-b-xxl"],["fxLayout","row","ngClass","p-l-xs p-t-m","fxHide.lt-sm",""],[1,"navigation-icon",3,"ngClass","click"],[1,"white-text"],["fxLayout","row"],["mat-stroked-button","","color","accent","fxFill","",1,"view_more",3,"click"],[1,"mat-title"],ve,[1,"fundraiser-card"],["id","fundraiser-card","name","fundraiser-card",3,"slug","fundraiserCardData"]]},template:function(ve,Rt){1&ve&&(c.TgZ(0,"div",0)(1,"div",1)(2,"h2",2),c.SDv(3,3),c.qZA()(),c.TgZ(4,"div",4),c.YNc(5,K,2,2,"div",5),c.qZA(),c.TgZ(6,"div",6),c.YNc(7,Q,2,2,"div",5),c.ALo(8,"slice"),c.qZA(),c.TgZ(9,"div",7)(10,"div",8)(11,"div",9),c.NdJ("click",function(){return Rt.scrollCards("prev")}),c.TgZ(12,"mat-icon",10),c._uU(13,"arrow_back_ios"),c.qZA()(),c._uU(14," \xa0\xa0\xa0\xa0\xa0\xa0 "),c.TgZ(15,"div",9),c.NdJ("click",function(){return Rt.scrollCards("next")}),c.TgZ(16,"mat-icon",10),c._uU(17,"arrow_forward_ios"),c.qZA()()(),c.TgZ(18,"div",11)(19,"button",12),c.NdJ("click",function(){return Rt.routeToSearch()}),c.TgZ(20,"span",13),c.SDv(21,14),c.qZA()()()()()),2&ve&&(c.xp6(5),c.Q6J("ngForOf",Rt._fundraiserCardDataList),c.xp6(2),c.Q6J("ngForOf",c.Dn7(8,4,Rt._fundraiserCardDataList,0,3)),c.xp6(4),c.Q6J("ngClass",c.VKq(8,B,!Rt.hasMoreData("prev"))),c.xp6(4),c.Q6J("ngClass",c.VKq(10,B,!Rt.hasMoreData("next"))))},dependencies:[t.mk,t.sg,de.eB,Ee.Hw,ue.xw,ue.SQ,ue.Wh,ue.s9,ue.yH,ee.b8,ee.oO,se.g,t.OU]}),Ct})(),fe=(()=>{class Ct{}return Ct.\u0275fac=function(ve){return new(ve||Ct)},Ct.\u0275cmp=c.Xpm({type:Ct,selectors:[["app-start-fundraising-for"]],decls:51,vars:0,consts:function(){let Dt,ve,Rt,Dr,kn,wn,Jn;return Dt="Po\u010Dni Prikupljati Sredstva Za",ve="Sami sebe",Rt="Donacije se pla\u0107aju izravno vama kako biste ih mogli koristiti u svrhu.",Dr="Neki Drugi",kn="Zapo\u010Dnite prikupljanje sredstava za nekoga drugog i neka donacije budu izravno ispla\u0107ene njima, ili ih sami distribuirajte.",wn="Dobro\u010Dinstvo",Jn="Zapo\u010Dnite prikupljanje sredstava za humanitarne svrhe ili pojedince i prikupite novac kako biste ostvarili svoje ciljeve.",[["fxLayout","row","fxLayoutAlign","center","ngClass.lt-lg","p-t-m"],["fxLayout","column","fxFlex.gt-md","85%","fxFlex.md","95%","fxFlex.sm","100%","fxLayoutAlign","center center","ngClass.gt-sm","p-xxl","ngClass.sm","p-l p-t-xxl","ngClass.xs","p-xl p-t-xxl"],["fxLayout","row","fxLayoutAlign","center","ngClass","p-b-xl"],[1,"dark-grey-texts"],Dt,["fxLayout.gt-xs","row","fxLayout.xs","column","fxLayoutAlign","center","ngClass.xs","p-l-xl p-r-xl","fxLayoutGap.gt-xs","2%","fxLayoutGap.xs","5%"],["fxFlex.gt-xs","33%",1,"mat-elevation-z2","grey-bg","hover-on-card"],["fxLayout","column","fxLayoutGap","5%","fxLayoutAlign","center center","ngClass","p-l-m p-r-m p-t-s"],["fxLayout","row","ngClass","p-b-xs"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/yourself/public"],["fxLayout","row"],[1,"mat-card-title","dark-grey-texts"],ve,[1,"mat-body-2","dark-grey-texts","text-align-center"],Rt,["fxLayout","row","fxHide.lt-sm","",1,"bottom-sticky"],[1,"white-bg"],["buttonType","stroked","themeColor","accent"],["fxLayout","row","fxHide.gt-xs",""],["ngClass","m-t-m",1,"white-bg"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/someoneElse/public"],[1,"mat-card-title","dark-grey-texts","text-align-center","nowrap"],Dr,kn,["fxLayout","row","ngClass","p-t-xs"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/charity/public"],wn,Jn]},template:function(ve,Rt){1&ve&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),c.SDv(4,4),c.qZA()(),c.TgZ(5,"div",5)(6,"mat-card",6)(7,"div",7)(8,"div",8),c._UZ(9,"img",9),c.qZA(),c.TgZ(10,"div",10)(11,"span",11),c.SDv(12,12),c.qZA()(),c.TgZ(13,"div",10)(14,"span",13),c.SDv(15,14),c.qZA()(),c.TgZ(16,"div",15)(17,"div",16),c._UZ(18,"app-start-fundraiser-button",17),c.qZA()(),c.TgZ(19,"div",18)(20,"div",19),c._UZ(21,"app-start-fundraiser-button",17),c.qZA()()()(),c.TgZ(22,"mat-card",6)(23,"div",7)(24,"div",8),c._UZ(25,"img",20),c.qZA(),c.TgZ(26,"div",10)(27,"span",21),c.SDv(28,22),c.qZA()(),c.TgZ(29,"div",10)(30,"span",13),c.SDv(31,23),c.qZA()(),c.TgZ(32,"div",24)(33,"div",16),c._UZ(34,"app-start-fundraiser-button",17),c.qZA()()()(),c.TgZ(35,"mat-card",6)(36,"div",7)(37,"div",10),c._UZ(38,"img",25),c.qZA(),c.TgZ(39,"div",10)(40,"span",11),c.SDv(41,26),c.qZA()(),c.TgZ(42,"div",10)(43,"span",13),c.SDv(44,27),c.qZA()(),c.TgZ(45,"div",15)(46,"div",16),c._UZ(47,"app-start-fundraiser-button",17),c.qZA()(),c.TgZ(48,"div",18)(49,"div",19),c._UZ(50,"app-start-fundraiser-button",17),c.qZA()()()()()()())},dependencies:[t.mk,F.S$,ue.xw,ue.SQ,ue.Wh,ue.yH,ee.b8,ee.oO,ke.A]}),Ct})(),qe=(()=>{class Ct{}return Ct.\u0275fac=function(ve){return new(ve||Ct)},Ct.\u0275cmp=c.Xpm({type:Ct,selectors:[["app-start-your-fundraiser-org"]],decls:21,vars:0,consts:function(){let Dt,ve,Rt;return Dt="Platforma Za Naknadu WhyDonate",ve="Registrirajte se besplatno",Rt="WhyDonate omogu\u0107uje online prikupljanje sredstava za bilo koju humanitarnu organizaciju, bez naknade za platformu i bez fiksnih mjese\u010Dnih tro\u0161kova.",[["fxLayout","column","ngClass","p-b-xxl","fxFlex","100%"],["fxLayout","row","fxLayoutAlign","center"],["fxLayout.gt-xs","row","fxLayout.xs","column","fxLayoutAlign.lt-sm","space-between","fxLayoutGap","8%","fxFlex.gt-md","88%","fxFlex.md","100%","ngClass.gt-xs","grey-bg p-xl","ngClass.lt-sm","grey-bg p-l-l p-r-l p-t-l"],["fxLayout","column","fxFlex","35%"],[1,"mat-elevation-z0","homepage-org-bg","hover-on-svg",2,"border-radius","15px"],["fxLayout","column","ngClass.md","p-t-l","ngClass.gt-md","p-t-l p-b-s","fxFlex","100%"],["fxLayout","column","fxLayoutGap","12%","fxLayoutAlign","center center"],["fxLayout","row","fxFlex","70%","fxLayoutAlign","center","ngClass.sm","p-t-s p-l-xl p-r-xl","ngClass.xs","p-t-m"],["fxFill","","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/zeroPercent/public"],["fxLayout","row","fxFlex","100%","fxLayoutAlign","center"],[1,"mat-title","dark-grey-texts","text-align-center"],Dt,["fxLayout","column","fxLayoutAlign","center flex-start","ngClass.xs","p-t-m","fxLayoutGap","2%","fxFlex","55%",1,"dark-grey-texts"],["fxLayout","column"],ve,[1,"mat-title"],Rt,["buttonType","homepage6"]]},template:function(ve,Rt){1&ve&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"mat-card",4)(5,"div",5)(6,"div",6)(7,"div",7),c._UZ(8,"img",8),c.qZA(),c.TgZ(9,"div",9)(10,"p",10),c.SDv(11,11),c.qZA()()()()()(),c.TgZ(12,"div",12)(13,"div",13)(14,"h2"),c.SDv(15,14),c.qZA()(),c.TgZ(16,"div",13)(17,"span",15),c.SDv(18,16),c.qZA()(),c.TgZ(19,"div",13),c._UZ(20,"app-start-fundraiser-button",17),c.qZA()()()()())},dependencies:[t.mk,F.S$,ue.xw,ue.SQ,ue.Wh,ue.s9,ue.yH,ee.oO,ke.A]}),Ct})(),$e=(()=>{class Ct{}return Ct.\u0275fac=function(ve){return new(ve||Ct)},Ct.\u0275cmp=c.Xpm({type:Ct,selectors:[["app-fundraiser-for-global-org"]],decls:30,vars:0,consts:function(){let Dt,ve,Rt,Dr,kn,wn,Jn;return Dt="Globalno Prikupljanje Sredstava",ve="Vi\u0161evalutno",Rt="Sakupljajte donacije u 26 razli\u010Ditih valuta, uklju\u010Duju\u0107i EUR, GBP i USD.",Dr="Nacionalni i Me\u0111unarodni Na\u010Dini Pla\u0107anja",kn="Donatori pla\u0107aju kori\u0161tenjem naj\u010De\u0161\u0107ih nacionalnih i me\u0111unarodnih na\u010Dina pla\u0107anja, uklju\u010Duju\u0107i Kreditnu karticu, PayPal, Bankovni prijenos, iDEAL, Bancontact, itd.",wn="Vi\u0161ejezi\u010Dni",Jn="WhyDonate je dostupan na vi\u0161e jezika i automatski se prilago\u0111ava lokaciji donatora.",[["fxLayout","row","fxLayoutAlign","center","ngClass","p-b-xxl m-b-xl p-t-l"],["fxLayout","column","fxFlex.gt-lg","75%","fxFlex.gt-xs","100%","fxFlex.xs","90%",1,"dark-grey-texts"],["fxLayout","row","fxLayoutAlign","center","ngClass.gt-sm","p-b-xl","ngClass.lt-md","p-b-l"],[1,"text-align-center"],Dt,["fxLayout.gt-xs","row","fxLayout.xs","column","fxFlex","100%","fxLayoutAlign","center","fxLayoutGap","3%"],["fxLayout","column","fxFlex.gt-sm","32%","fxFlex.sm","40%"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/homepageOrganisationSite/public"],["fxLayout","column","fxFlex.sm","45%","fxFlex.md","40%","fxFlex.lg","32%","fxLayoutAlign","center","fxLayoutGap","5%"],["fxLayout","column"],["fxLayout","row"],[1,"mat-card-title"],ve,[1,"inc-span-height"],Rt,Dr,kn,wn,Jn]},template:function(ve,Rt){1&ve&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),c.SDv(4,4),c.qZA()(),c.TgZ(5,"div",5)(6,"div",6),c._UZ(7,"img",7),c.qZA(),c.TgZ(8,"div",8)(9,"div",9)(10,"div",10)(11,"span",11),c.SDv(12,12),c.qZA()(),c.TgZ(13,"div",10)(14,"p",13),c.SDv(15,14),c.qZA()()(),c.TgZ(16,"div",9)(17,"div",10)(18,"span",11),c.SDv(19,15),c.qZA()(),c.TgZ(20,"div",10)(21,"p",13),c.SDv(22,16),c.qZA()()(),c.TgZ(23,"div",9)(24,"div",10)(25,"span",11),c.SDv(26,17),c.qZA()(),c.TgZ(27,"div",10)(28,"p",13),c.SDv(29,18),c.qZA()()()()()()())},dependencies:[t.mk,ue.xw,ue.SQ,ue.Wh,ue.yH,ee.oO]}),Ct})();function et(Ct,Dt){if(1&Ct){const ve=c.EpF();c.TgZ(0,"div")(1,"button",12),c.NdJ("click",function(){c.CHM(ve);const Dr=c.oxw();return c.KtG(Dr.redirectToDonate(null==Dr.featuredCardData?null:Dr.featuredCardData.link))}),c.TgZ(2,"span",13),c.SDv(3,14),c.qZA()()()}}function ot(Ct,Dt){if(1&Ct){const ve=c.EpF();c.TgZ(0,"div")(1,"button",12),c.NdJ("click",function(){c.CHM(ve);const Dr=c.oxw();return c.KtG(Dr.redirectToDonate(null==Dr.featuredCardData?null:Dr.featuredCardData.link))}),c.TgZ(2,"span",13),c.SDv(3,15),c.qZA()()()}}let ct=(()=>{class Ct{constructor(){}ngOnInit(){}redirectToDonate(ve){window.location.href=ve}}return Ct.\u0275fac=function(ve){return new(ve||Ct)},Ct.\u0275cmp=c.Xpm({type:Ct,selectors:[["app-featured-topics-card"]],inputs:{featuredCardData:"featuredCardData"},decls:21,vars:6,consts:function(){let Dt,ve;return Dt="Doniraj sada",ve="Saznajte Vi\u0161e",[["fxLayoutAlign","start stretch","fxFlex","100%"],[1,"mat-elevation-z2","no-padding"],["fxLayout","column","ngClass","p-b-s"],["fxFill","",3,"src"],[1,"inc-span-height"],["aria-label","category selection","id","chip-list","name","chip-list",1,"whydonate-light"],[1,"mat-chip-list-stacked","my-chip"],[1,"mat-body-2"],["fxLayout","column","fxLayoutAlign","flex-start flex-start","fxLayoutGap","3%","ngClass","p-l-m p-r-m p-b-m"],["ngClass","p-t-m"],[1,"bottom-sticky"],[4,"ngIf"],["mat-stroked-button","","color","accent",3,"click"],[1,"mat-title"],Dt,ve]},template:function(ve,Rt){1&ve&&(c.TgZ(0,"div",0)(1,"mat-card",1)(2,"div",2),c._UZ(3,"img",3),c.qZA(),c.TgZ(4,"mat-card-header")(5,"mat-card-title",4),c._uU(6),c.qZA(),c.TgZ(7,"mat-card-subtitle")(8,"mat-chip-list",5)(9,"mat-chip",6)(10,"span",7),c._uU(11),c.qZA()()()()(),c.TgZ(12,"div",8)(13,"div")(14,"mat-card-content")(15,"p"),c._uU(16),c.qZA()()(),c._UZ(17,"div",9),c.TgZ(18,"div",10),c.YNc(19,et,4,0,"div",11),c.YNc(20,ot,4,0,"div",11),c.qZA()()()()),2&ve&&(c.xp6(3),c.s9C("src",Rt.featuredCardData.image,c.LSH),c.xp6(3),c.hij(" ",(null==Rt.featuredCardData||null==Rt.featuredCardData.title?null:Rt.featuredCardData.title.length)>22?Rt.featuredCardData.title.slice(0,22)+"...":Rt.featuredCardData.title," "),c.xp6(5),c.hij(" ",Rt.featuredCardData.category," "),c.xp6(5),c.hij(" ",(null==Rt.featuredCardData||null==Rt.featuredCardData.description?null:Rt.featuredCardData.description.length)>145?Rt.featuredCardData.description.slice(0,145)+" ...":Rt.featuredCardData.description," "),c.xp6(3),c.Q6J("ngIf",null==Rt.featuredCardData||null==Rt.featuredCardData.link?null:Rt.featuredCardData.link.includes("/donate/")),c.xp6(1),c.Q6J("ngIf",!(null!=Rt.featuredCardData&&null!=Rt.featuredCardData.link&&Rt.featuredCardData.link.includes("/donate/"))))},dependencies:[t.mk,t.O5,F.S$,F.u7,F.Qi,F.mi,F._K,de.eB,ye.ir,ye.lw,ue.xw,ue.SQ,ue.Wh,ue.s9,ue.yH,ee.oO]}),Ct})();function pt(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",7)(1,"div",8),c._UZ(2,"app-featured-topics-card",9)(3,"app-featured-topics-card",9)(4,"app-featured-topics-card",9),c.qZA()()),2&Ct){const ve=c.oxw();c.xp6(2),c.Q6J("featuredCardData",ve.featuredTopicsData1),c.xp6(1),c.Q6J("featuredCardData",ve.featuredTopicsData2),c.xp6(1),c.Q6J("featuredCardData",ve.featuredTopicsData3)}}function $t(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",7)(1,"div",10),c._UZ(2,"app-featured-topics-card",9)(3,"app-featured-topics-card",9),c.qZA()()),2&Ct){const ve=c.oxw();c.xp6(2),c.Q6J("featuredCardData",ve.featuredTopicsData1),c.xp6(1),c.Q6J("featuredCardData",ve.featuredTopicsData2)}}function It(Ct,Dt){if(1&Ct){const ve=c.EpF();c.TgZ(0,"div",25)(1,"button",26),c.NdJ("click",function(){c.CHM(ve);const Dr=c.oxw(2);return c.KtG(Dr.redirectToDonate(Dr.featuredTopicsData1.link))}),c.TgZ(2,"span",27),c.SDv(3,28),c.qZA()()()}}function fr(Ct,Dt){if(1&Ct){const ve=c.EpF();c.TgZ(0,"div",25)(1,"button",26),c.NdJ("click",function(){c.CHM(ve);const Dr=c.oxw(2);return c.KtG(Dr.redirectToDonate(Dr.featuredTopicsData1.link))}),c.TgZ(2,"span",27),c.SDv(3,29),c.qZA()()()}}function yt(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",11)(1,"div",12)(2,"mat-card",13)(3,"div",14)(4,"div",15),c._UZ(5,"img",16),c.qZA(),c.TgZ(6,"div",17)(7,"mat-card-header")(8,"mat-card-title",18),c._uU(9),c.qZA(),c.TgZ(10,"mat-card-subtitle")(11,"mat-chip-list",19)(12,"mat-chip",20)(13,"span",21),c._uU(14),c.qZA()()()()(),c.TgZ(15,"div",22)(16,"p"),c._uU(17),c.qZA()(),c.YNc(18,It,4,0,"div",23),c.YNc(19,fr,4,0,"div",23),c.qZA()()()(),c.TgZ(20,"div",24),c._UZ(21,"app-featured-topics-card",9),c.qZA()()),2&Ct){const ve=c.oxw();c.xp6(5),c.s9C("src",ve.featuredTopicsData1.image,c.LSH),c.xp6(4),c.hij(" ",(null==ve.featuredTopicsData1||null==ve.featuredTopicsData1.title?null:ve.featuredTopicsData1.title.length)>30?ve.featuredTopicsData1.title.slice(0,30)+"...":ve.featuredTopicsData1.title," "),c.xp6(5),c.hij(" ",ve.featuredTopicsData1.category," "),c.xp6(3),c.hij(" ",(null==ve.featuredTopicsData1||null==ve.featuredTopicsData1.description?null:ve.featuredTopicsData1.description.length)>94?ve.featuredTopicsData1.description.slice(0,94)+" ...":ve.featuredTopicsData1.description," "),c.xp6(1),c.Q6J("ngIf",ve.featuredTopicsData1.link.includes("/donate/")),c.xp6(1),c.Q6J("ngIf",!ve.featuredTopicsData1.link.includes("/donate/")),c.xp6(2),c.Q6J("featuredCardData",ve.featuredTopicsData1)}}let dr=(()=>{class Ct{constructor(ve){this.fundraiserService=ve,this.featuredTopicsData1={},this.featuredTopicsData2={},this.featuredTopicsData3={},this.isLoading=!0}ngOnInit(){const ve=window.location.hostname.includes("localhost")?"en":window.location.pathname.split("/")[1];this.fundraiserService.getFeaturedTopics(ve||"en").subscribe(Rt=>{this.featuredTopicsData1=Rt?.data?.results[0],this.featuredTopicsData2=Rt?.data?.results[1],this.featuredTopicsData3=Rt?.data?.results[2],this.isLoading=!1})}redirectToDonate(ve){window.location.href=ve}}return Ct.\u0275fac=function(ve){return new(ve||Ct)(c.Y36(n.R))},Ct.\u0275cmp=c.Xpm({type:Ct,selectors:[["app-featured-topics"]],decls:8,vars:3,consts:function(){let Dt,ve,Rt;return Dt="Istaknute teme",ve="Doniraj sada",Rt="Saznajte Vi\u0161e",[["fxLayout","row","fxLayoutAlign","center","ngClass","m-t-xl"],["fxLayout","column","fxFlex.gt-md","95%","fxFlex.md","95%","fxFlex.sm","100%","fxLayoutAlign","center center","ngClass.gt-md","p-xxl","ngClass.md","p-l","ngClass.sm","p-m p-t-xxl","ngClass.xs","p-xl p-t-xl"],["fxLayout","row","fxLayoutAlign","center","ngClass","p-b-xl"],[1,"dark-grey-texts"],Dt,["fxLayout.gt-xs","row","fxLayout.xs","column","fxLayoutAlign","center","ngClass.xs","p-l-xl p-r-xl",4,"ngIf"],["fxLayout.gt-xs","row","fxLayout.xs","column","fxLayoutAlign","center","ngClass.xs","p-l-xl p-r-xl","fxFill","","ngClass","p-b-xxl",4,"ngIf"],["fxLayout.gt-xs","row","fxLayout.xs","column","fxLayoutAlign","center","ngClass.xs","p-l-xl p-r-xl"],["fxLayout.gt-xs","row","fxLayout.xs","column","fxLayoutGap.gt-sm","3%","fxLayoutGap.sm","2%","fxLayoutGap.xs","5%","fxFlex.lg","95%","fxFlex.md","100%"],[3,"featuredCardData"],["fxLayout.gt-xs","row","fxLayout.xs","column","fxFlex.lg","65%","fxFlex.md","90%","fxFlex.sm","95%","fxLayoutGap.gt-xs","5%","fxLayoutGap.xs","5%"],["fxLayout.gt-xs","row","fxLayout.xs","column","fxLayoutAlign","center","ngClass.xs","p-l-xl p-r-xl","fxFill","","ngClass","p-b-xxl"],["fxLayout","column","fxFlex.gt-md","58%","fxFlex.md","72%","fxFlex.sm","89%","fxLayoutAlign","center","fxHide.lt-sm",""],[1,"mat-elevation-z2"],["fxLayout","row","fxFlex","100%"],["fxLayout","column","fxFlex","45%"],[3,"src"],["fxLayout","column","fxFlex","60%"],[1,"inc-span-height"],["aria-label","category selection","id","chip-list","name","chip-list",1,"whydonate-light"],[1,"mat-chip-list-stacked","my-chip"],[1,"mat-body-2"],["ngClass","p-l-m p-r-m"],["ngClass","p-l-m",4,"ngIf"],["fxLayout","column","fxLayoutGap","5%","fxHide.gt-xs",""],["ngClass","p-l-m"],["mat-stroked-button","","color","accent",3,"click"],[1,"mat-title"],ve,Rt]},template:function(ve,Rt){1&ve&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),c.SDv(4,4),c.qZA()(),c.YNc(5,pt,5,3,"div",5),c.YNc(6,$t,4,2,"div",5),c.YNc(7,yt,22,7,"div",6),c.qZA()()),2&ve&&(c.xp6(5),c.Q6J("ngIf",!Rt.isLoading&&Rt.featuredTopicsData1&&Rt.featuredTopicsData2&&Rt.featuredTopicsData3),c.xp6(1),c.Q6J("ngIf",!Rt.isLoading&&Rt.featuredTopicsData1&&Rt.featuredTopicsData2&&!Rt.featuredTopicsData3),c.xp6(1),c.Q6J("ngIf",!Rt.isLoading&&Rt.featuredTopicsData1&&!Rt.featuredTopicsData2&&!Rt.featuredTopicsData3))},dependencies:[t.mk,t.O5,F.S$,F.u7,F.mi,F._K,de.eB,ye.ir,ye.lw,ue.xw,ue.SQ,ue.Wh,ue.s9,ue.yH,ee.b8,ee.oO,ct]}),Ct})(),bt=(()=>{class Ct{constructor(){this.whydonatePlatformUrl="hr/crowdfunding-prikupljanje-sredstava/"}ngOnInit(){}languageForWhydonatePlatform(){window.location.href="https://whydonate.com/"+this.whydonatePlatformUrl}}return Ct.\u0275fac=function(ve){return new(ve||Ct)},Ct.\u0275cmp=c.Xpm({type:Ct,selectors:[["app-multi-team-fundraising"]],decls:16,vars:0,consts:function(){let Dt,ve,Rt;return Dt="Multi-Timsko Prikupljanje Sredstava",ve="Sakupljajte donacije s vi\u0161e kampanja istovremeno Svaki kampanjac dobiva vlastitu posve\u0107enu stranicu za prikupljanje sredstava, a donacije se automatski pripisuju glavnoj stranici kampanje.",Rt="Saznajte Vi\u0161e",[["fxLayout","row","fxLayoutAlign","center"],["fxLayout","column","fxFlex.gt-xs","100%","fxFlex.xs","90%","ngClass","p-b-xxl m-b-xl",1,"dark-grey-texts"],["fxLayout.gt-xs","row","fxLayout.xs","column","fxFlex","100%","fxLayoutAlign","center","fxLayoutGap","3%"],["fxLayout","column","fxFlex.gt-sm","35%","fxFlex.sm","40%"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/multiTeamFundraiser/public"],["fxLayout","column","fxFlex.sm","45%","fxFlex.md","40%","fxFlex.lg","28%","fxFlex.gt-lg","39%","fxLayoutAlign","center"],["fxLayout","row"],[1,"mat-card-title","inc-largetext-height"],Dt,[1,"inc-span-height"],ve,["fxLayout","row","fxLayoutAlign","flex-start center","ngClass","p-t-m"],["mat-button","","color","accent",3,"click"],[1,"mat-title"],Rt]},template:function(ve,Rt){1&ve&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),c._UZ(4,"img",4),c.qZA(),c.TgZ(5,"div",5)(6,"div",6)(7,"span",7),c.SDv(8,8),c.qZA()(),c.TgZ(9,"div",6)(10,"p",9),c.SDv(11,10),c.qZA()(),c.TgZ(12,"div",11)(13,"a",12),c.NdJ("click",function(){return Rt.languageForWhydonatePlatform()}),c.TgZ(14,"span",13),c.SDv(15,14),c.qZA()()()()()()())},dependencies:[t.mk,de.Nr,ue.xw,ue.SQ,ue.Wh,ue.yH,ee.oO]}),Ct})();function ar(Ct,Dt){1&Ct&&c._UZ(0,"app-page-loader")}function vt(Ct,Dt){1&Ct&&(c.TgZ(0,"div"),c._UZ(1,"app-personal-fundraising-divided-banner")(2,"app-featured-fundraisers-homepage")(3,"app-starting-a-fundraiser")(4,"app-featured-topics")(5,"app-start-fundraising-for")(6,"app-features-and-why-whydonate"),c.qZA())}function qt(Ct,Dt){1&Ct&&(c.TgZ(0,"div"),c._UZ(1,"app-organisation-banner")(2,"app-fundraising-site")(3,"app-donation-plugin")(4,"app-multi-team-fundraising")(5,"app-starting-a-fundraiser")(6,"app-features-and-why-whydonate")(7,"app-fundraiser-for-global-org")(8,"app-start-your-fundraiser-org"),c.qZA())}function br(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",20),c.YNc(1,vt,7,0,"div",1),c.YNc(2,qt,9,0,"div",1),c._UZ(3,"app-sub-footer-start-afundraiser"),c.qZA()),2&Ct){const ve=c.oxw(2);c.xp6(1),c.Q6J("ngIf",ve.isPersonalFundraising),c.xp6(1),c.Q6J("ngIf",ve.isOrganisation)}}function lt(Ct,Dt){if(1&Ct&&c.YNc(0,br,4,2,"div",19),2&Ct){const ve=c.oxw();c.Q6J("ngIf",!ve.isContentLoading)}}function De(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",48),c._UZ(1,"app-fundraiser-card",49),c.qZA()),2&Ct){const ve=Dt.$implicit;c.xp6(1),c.Q6J("slug",ve.slug)("fundraiserCardData",ve.fundraiserCardData)}}function G(Ct,Dt){if(1&Ct){const ve=c.EpF();c.TgZ(0,"div",39)(1,"div",40)(2,"div",34),c._UZ(3,"mat-divider"),c.qZA(),c.TgZ(4,"h2",41),c.SDv(5,42),c.qZA(),c._UZ(6,"br"),c.TgZ(7,"div",43),c.YNc(8,De,2,2,"div",44),c.qZA(),c.TgZ(9,"div",45)(10,"button",46),c.NdJ("click",function(){c.CHM(ve);const Dr=c.oxw(3);return c.KtG(Dr.routeToSearch("main"))}),c.SDv(11,47),c.qZA()()()()}if(2&Ct){const ve=c.oxw(3);c.xp6(8),c.Q6J("ngForOf",ve.customHomeOwnedFundraisers)}}function U(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",48),c._UZ(1,"app-fundraiser-card",49),c.qZA()),2&Ct){const ve=Dt.$implicit;c.xp6(1),c.Q6J("slug",ve.slug)("fundraiserCardData",ve.fundraiserCardData)}}function ne(Ct,Dt){if(1&Ct){const ve=c.EpF();c.TgZ(0,"div",50)(1,"div",51)(2,"div",34),c._UZ(3,"mat-divider"),c.qZA(),c.TgZ(4,"h2",41),c.SDv(5,52),c.qZA(),c._UZ(6,"br"),c.TgZ(7,"div",43),c.YNc(8,U,2,2,"div",44),c.qZA(),c.TgZ(9,"div",45)(10,"button",46),c.NdJ("click",function(){c.CHM(ve);const Dr=c.oxw(3);return c.KtG(Dr.routeToSearch("connected"))}),c.SDv(11,53),c.qZA()()()()}if(2&Ct){const ve=c.oxw(3);c.xp6(8),c.Q6J("ngForOf",ve.customHomeConnectedFundraisers)}}function Re(Ct,Dt){1&Ct&&c._UZ(0,"img",73)}function Xe(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div"),c.YNc(1,Re,1,0,"img",72),c.qZA()),2&Ct){const ve=c.oxw().$implicit;c.xp6(1),c.Q6J("ngIf",null==ve?null:ve.reply_message)}}function Nt(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",58)(1,"mat-card",35)(2,"div",59)(3,"div",60)(4,"div",61),c._UZ(5,"img",62),c.qZA(),c.TgZ(6,"div",63)(7,"div",64)(8,"strong"),c._uU(9),c.qZA()(),c.TgZ(10,"div"),c._uU(11),c.qZA()(),c.TgZ(12,"div",65)(13,"span",66),c._uU(14),c.ALo(15,"currency"),c.qZA()()(),c.TgZ(16,"div",67),c._UZ(17,"div",68),c.TgZ(18,"div",69)(19,"div",70),c.YNc(20,Xe,2,1,"div",1),c.TgZ(21,"div",71),c._uU(22),c.qZA()()()()()()()),2&Ct){const ve=Dt.$implicit;c.xp6(1),c.Udp("border-radius",0),c.xp6(8),c.hij(" ",null==ve?null:ve.name," "),c.xp6(2),c.hij(" ",null==ve?null:ve.message," "),c.xp6(3),c.hij(" ",c.gM2(15,7,null==ve?null:ve.amount,null==ve?null:ve.symbol,"symbol","1.0-0")," "),c.xp6(6),c.Q6J("ngIf",(null==ve?null:ve.reply_message)&&(null==ve||null==ve.reply_message?null:ve.reply_message.length)>1),c.xp6(2),c.hij(" ",null==ve?null:ve.reply_message," ")}}function Pt(Ct,Dt){1&Ct&&(c.TgZ(0,"mat-card")(1,"div",74)(2,"div",75),c._UZ(3,"img",76),c.qZA(),c.TgZ(4,"div",77)(5,"h1"),c.SDv(6,78),c.qZA(),c.TgZ(7,"p"),c.SDv(8,79),c.qZA()(),c.TgZ(9,"div",80)(10,"button",81),c.SDv(11,82),c.qZA()()()())}function Vt(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",54)(1,"div",55)(2,"h2",41),c.SDv(3,56),c.qZA(),c._UZ(4,"br"),c.YNc(5,Nt,23,12,"div",57),c.YNc(6,Pt,12,0,"mat-card",1),c.qZA()()),2&Ct){const ve=c.oxw(3);c.xp6(5),c.Q6J("ngForOf",ve.customHomeRecentDonations),c.xp6(1),c.Q6J("ngIf",!ve.customHomeRecentDonations.length)}}function Jt(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",23)(1,"div",24)(2,"div",25),c._UZ(3,"img",26),c.qZA(),c._UZ(4,"br"),c.TgZ(5,"div",27)(6,"div",28),c._UZ(7,"img",29),c.qZA(),c.TgZ(8,"div",28)(9,"strong"),c.SDv(10,30),c.qZA(),c.TgZ(11,"p",31),c._uU(12),c.qZA()()(),c.TgZ(13,"div",32)(14,"div",33)(15,"div",34),c._UZ(16,"mat-divider",35),c.qZA(),c.TgZ(17,"p",31),c._uU(18),c.qZA()()(),c._UZ(19,"br")(20,"br"),c.YNc(21,G,12,1,"div",36),c._UZ(22,"br")(23,"br"),c.YNc(24,ne,12,1,"div",37),c._UZ(25,"br")(26,"br"),c.YNc(27,Vt,7,2,"div",38),c.qZA()()),2&Ct){const ve=c.oxw(2);c.xp6(3),c.Q6J("src",ve.backgroundImage,c.LSH),c.xp6(4),c.Q6J("src",ve.userImage,c.LSH),c.xp6(5),c.Oqu(null==ve.customHomeProfileData?null:ve.customHomeProfileData.name),c.xp6(6),c.hij(" ",null==ve.customHomeProfileData?null:ve.customHomeProfileData.description," "),c.xp6(3),c.Q6J("ngIf",(null==ve.customHomePageData||null==ve.customHomePageData.ownedFundraiser?null:ve.customHomePageData.ownedFundraiser.count)>0),c.xp6(3),c.Q6J("ngIf",(null==ve.customHomePageData||null==ve.customHomePageData.connectedFundraiser?null:ve.customHomePageData.connectedFundraiser.count)>0),c.xp6(3),c.Q6J("ngIf",(null==ve.customHomePageData?null:ve.customHomePageData.donorList.length)>0)}}function kt(Ct,Dt){if(1&Ct&&c.GkF(0,83),2&Ct){c.oxw(3);const ve=c.MAs(6);c.Q6J("ngTemplateOutlet",ve)}}function Me(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div"),c.YNc(1,kt,1,1,"ng-container",6),c.qZA()),2&Ct){const ve=c.oxw(2);c.xp6(1),c.Q6J("ngIf",ve.isCustomFundraiserHomePageFlag)}}function ut(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",21),c.YNc(1,Jt,28,7,"div",22),c.YNc(2,Me,2,1,"div",1),c.qZA()),2&Ct){const ve=c.oxw();c.xp6(1),c.Q6J("ngIf",ve.isCustomHomePageFlag),c.xp6(1),c.Q6J("ngIf",ve.isCustomFundraiserHomePageFlag)}}function nt(Ct,Dt){1&Ct&&c._UZ(0,"app-fundraiser")}function Ht(Ct,Dt){if(1&Ct&&c.GkF(0,83),2&Ct){c.oxw(4);const ve=c.MAs(19);c.Q6J("ngTemplateOutlet",ve)}}function pr(Ct,Dt){if(1&Ct){const ve=c.EpF();c.TgZ(0,"div",87)(1,"div",88),c.GkF(2,83)(3,83),c._UZ(4,"mat-divider"),c.GkF(5,83),c._UZ(6,"mat-divider"),c.YNc(7,Ht,1,1,"ng-container",6),c._UZ(8,"br"),c.GkF(9,83),c._UZ(10,"br"),c.qZA(),c.TgZ(11,"div",89),c.GkF(12,83),c._UZ(13,"br"),c.GkF(14,83),c._UZ(15,"br"),c.GkF(16,83),c.qZA()(),c.TgZ(17,"button",90),c.NdJ("click",function(){c.CHM(ve);const Dr=c.oxw(3);return c.KtG(Dr.routeToMarkFundraiserFraudulent())}),c._UZ(18,"img",91),c.TgZ(19,"span"),c.SDv(20,92),c.qZA()()}if(2&Ct){const ve=c.oxw(3),Rt=c.MAs(13),Dr=c.MAs(15),kn=c.MAs(17),wn=c.MAs(21),Jn=c.MAs(25),yn=c.MAs(29),Mn=c.MAs(27);c.Q6J("fxHide",ve.isViewChanging),c.xp6(2),c.Q6J("ngTemplateOutlet",Rt),c.xp6(1),c.Q6J("ngTemplateOutlet",Dr),c.xp6(2),c.Q6J("ngTemplateOutlet",kn),c.xp6(2),c.Q6J("ngIf",ve.isCurrentChildFundraiser),c.xp6(2),c.Q6J("ngTemplateOutlet",wn),c.xp6(3),c.Q6J("ngTemplateOutlet",Jn),c.xp6(2),c.Q6J("ngTemplateOutlet",yn),c.xp6(2),c.Q6J("ngTemplateOutlet",Mn)}}function Lr(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",85),c.YNc(1,pr,21,9,"ng-template",86),c.qZA()),2&Ct){const ve=c.oxw(2),Rt=c.MAs(11);c.xp6(1),c.Q6J("ngIf",ve._media.isActive("lt-sm")||ve._media.isActive("gt-sm"))("ngIfElse",Rt)}}function Kr(Ct,Dt){if(1&Ct&&c.YNc(0,Lr,2,2,"div",84),2&Ct){const ve=c.oxw();c.Q6J("ngIf",ve.isFundraiserDataLoaded)}}function Cn(Ct,Dt){if(1&Ct&&c.GkF(0,83),2&Ct){c.oxw();const ve=c.MAs(31);c.Q6J("ngTemplateOutlet",ve)}}function Wn(Ct,Dt){if(1&Ct&&c.GkF(0,83),2&Ct){c.oxw(2);const ve=c.MAs(19);c.Q6J("ngTemplateOutlet",ve)}}function zn(Ct,Dt){if(1&Ct){const ve=c.EpF();c.TgZ(0,"div",93),c.GkF(1,83)(2,83),c._UZ(3,"mat-divider"),c.GkF(4,83),c._UZ(5,"mat-divider")(6,"br"),c.TgZ(7,"div",94)(8,"div",95),c.GkF(9,83),c.qZA()(),c.YNc(10,Wn,1,1,"ng-container",6),c._UZ(11,"br"),c.GkF(12,83),c._UZ(13,"br"),c.TgZ(14,"div",96)(15,"div",95),c.GkF(16,83),c.qZA(),c.TgZ(17,"div",95),c.GkF(18,83),c.qZA()(),c.TgZ(19,"button",90),c.NdJ("click",function(){c.CHM(ve);const Dr=c.oxw();return c.KtG(Dr.routeToMarkFundraiserFraudulent())}),c._UZ(20,"img",97),c.TgZ(21,"span"),c.SDv(22,98),c.qZA()()()}if(2&Ct){const ve=c.oxw(),Rt=c.MAs(13),Dr=c.MAs(15),kn=c.MAs(17),wn=c.MAs(25),Jn=c.MAs(21),yn=c.MAs(29),Mn=c.MAs(27);c.Q6J("fxHide",ve.isViewChanging),c.xp6(1),c.Q6J("ngTemplateOutlet",Rt),c.xp6(1),c.Q6J("ngTemplateOutlet",Dr),c.xp6(2),c.Q6J("ngTemplateOutlet",kn),c.xp6(5),c.Q6J("ngTemplateOutlet",wn),c.xp6(1),c.Q6J("ngIf",ve.isCurrentChildFundraiser),c.xp6(2),c.Q6J("ngTemplateOutlet",Jn),c.xp6(4),c.Q6J("ngTemplateOutlet",yn),c.xp6(2),c.Q6J("ngTemplateOutlet",Mn)}}function ti(Ct,Dt){if(1&Ct&&c._UZ(0,"div",102),2&Ct){const ve=c.oxw(2);c.Q6J("innerHTML",ve.youtubeIframe,c.oJD)}}function yr(Ct,Dt){if(1&Ct){const ve=c.EpF();c.TgZ(0,"img",103),c.NdJ("error",function(){c.CHM(ve);const Dr=c.oxw(2);return c.KtG(Dr.fallbackToDefaultImage())}),c.qZA()}if(2&Ct){const ve=c.oxw(2);c.Q6J("src",ve.backgroundImage,c.LSH)}}function Jr(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",99),c.YNc(1,ti,1,1,"div",100),c.YNc(2,yr,1,1,"img",101),c.qZA()),2&Ct){const ve=c.oxw();c.xp6(1),c.Q6J("ngIf",ve.backgroundVideo.length>0),c.xp6(1),c.Q6J("ngIf",ve.backgroundImage.length>0)}}function wt(Ct,Dt){if(1&Ct&&(c.TgZ(0,"strong"),c._uU(1),c.qZA()),2&Ct){const ve=c.oxw(3);c.xp6(1),c.AsE("",null==ve.currentFundraiser||null==ve.currentFundraiser.translations?null:ve.currentFundraiser.translations["title"+ve.localeSuffix]," || ",null==ve.currentFundraiser?null:ve.currentFundraiser.title," ")}}function nr(Ct,Dt){if(1&Ct&&(c.TgZ(0,"strong"),c._uU(1),c.qZA()),2&Ct){const ve=c.oxw(3);c.xp6(1),c.hij(" ",null==ve.currentFundraiser?null:ve.currentFundraiser.title," ")}}function tn(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",114),c._UZ(1,"app-fundraiser-location",115),c.qZA()),2&Ct){const ve=c.oxw(3);c.xp6(1),c.Q6J("currentFundraiser",ve.currentFundraiser)}}function rn(Ct,Dt){1&Ct&&(c.TgZ(0,"span")(1,"mat-chip",119)(2,"span"),c.SDv(3,120),c.qZA()()())}function vn(Ct,Dt){if(1&Ct&&c._UZ(0,"app-owner-social-share",121),2&Ct){const ve=c.oxw(4);c.Q6J("isLoggedIn",ve.showEdits)("socialMedia",null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser?null:ve.currentFundraiser.root_fundraiser.social_media)}}function Gn(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",116)(1,"span"),c.SDv(2,117),c.qZA(),c.YNc(3,rn,4,0,"span",1),c.YNc(4,vn,1,2,"app-owner-social-share",118),c.qZA()),2&Ct){const ve=c.oxw(3);c.xp6(3),c.Q6J("ngIf",!(ve.isCurrentChildFundraiser?""!=(null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser||null==ve.currentFundraiser.root_fundraiser.social_media?null:ve.currentFundraiser.root_fundraiser.social_media.instagram)||""!=(null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser||null==ve.currentFundraiser.root_fundraiser.social_media?null:ve.currentFundraiser.root_fundraiser.social_media.facebook)||""!=(null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser||null==ve.currentFundraiser.root_fundraiser.social_media?null:ve.currentFundraiser.root_fundraiser.social_media.linkedin)||""!=(null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser||null==ve.currentFundraiser.root_fundraiser.social_media?null:ve.currentFundraiser.root_fundraiser.social_media.website)||""!=(null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser||null==ve.currentFundraiser.root_fundraiser.social_media?null:ve.currentFundraiser.root_fundraiser.social_media.email)||""!=(null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser||null==ve.currentFundraiser.root_fundraiser.social_media?null:ve.currentFundraiser.root_fundraiser.social_media.twitter):""!=(null==ve.currentFundraiser||null==ve.currentFundraiser.social_media?null:ve.currentFundraiser.social_media.instagram)||""!=(null==ve.currentFundraiser||null==ve.currentFundraiser.social_media?null:ve.currentFundraiser.social_media.facebook)||""!=(null==ve.currentFundraiser||null==ve.currentFundraiser.social_media?null:ve.currentFundraiser.social_media.linkedin)||""!=(null==ve.currentFundraiser||null==ve.currentFundraiser.social_media?null:ve.currentFundraiser.social_media.website)||""!=(null==ve.currentFundraiser||null==ve.currentFundraiser.social_media?null:ve.currentFundraiser.social_media.email)||""!=(null==ve.currentFundraiser||null==ve.currentFundraiser.social_media?null:ve.currentFundraiser.social_media.twitter))),c.xp6(1),c.Q6J("ngIf",ve.isCurrentChildFundraiser?!(""==(null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser||null==ve.currentFundraiser.root_fundraiser.social_media?null:ve.currentFundraiser.root_fundraiser.social_media.instagram)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser||null==ve.currentFundraiser.root_fundraiser.social_media?null:ve.currentFundraiser.root_fundraiser.social_media.facebook)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser||null==ve.currentFundraiser.root_fundraiser.social_media?null:ve.currentFundraiser.root_fundraiser.social_media.linkedin)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser||null==ve.currentFundraiser.root_fundraiser.social_media?null:ve.currentFundraiser.root_fundraiser.social_media.website)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser||null==ve.currentFundraiser.root_fundraiser.social_media?null:ve.currentFundraiser.root_fundraiser.social_media.email)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser||null==ve.currentFundraiser.root_fundraiser.social_media?null:ve.currentFundraiser.root_fundraiser.social_media.twitter)):!(""==(null==ve.currentFundraiser||null==ve.currentFundraiser.social_media?null:ve.currentFundraiser.social_media.instagram)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.social_media?null:ve.currentFundraiser.social_media.facebook)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.social_media?null:ve.currentFundraiser.social_media.linkedin)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.social_media?null:ve.currentFundraiser.social_media.website)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.social_media?null:ve.currentFundraiser.social_media.email)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.social_media?null:ve.currentFundraiser.social_media.twitter)))}}function Yn(Ct,Dt){if(1&Ct&&c._UZ(0,"app-owner-social-share",121),2&Ct){const ve=c.oxw(4);c.Q6J("isLoggedIn",ve.showEdits)("socialMedia",null==ve.currentFundraiser?null:ve.currentFundraiser.social_media)}}function Dn(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",116)(1,"span"),c.SDv(2,122),c.qZA(),c.YNc(3,Yn,1,2,"app-owner-social-share",118),c.qZA()),2&Ct){const ve=c.oxw(3);c.xp6(3),c.Q6J("ngIf",ve.isCurrentChildFundraiser?!(""==(null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser||null==ve.currentFundraiser.root_fundraiser.social_media?null:ve.currentFundraiser.root_fundraiser.social_media.instagram)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser||null==ve.currentFundraiser.root_fundraiser.social_media?null:ve.currentFundraiser.root_fundraiser.social_media.facebook)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser||null==ve.currentFundraiser.root_fundraiser.social_media?null:ve.currentFundraiser.root_fundraiser.social_media.linkedin)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser||null==ve.currentFundraiser.root_fundraiser.social_media?null:ve.currentFundraiser.root_fundraiser.social_media.website)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser||null==ve.currentFundraiser.root_fundraiser.social_media?null:ve.currentFundraiser.root_fundraiser.social_media.email)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.root_fundraiser||null==ve.currentFundraiser.root_fundraiser.social_media?null:ve.currentFundraiser.root_fundraiser.social_media.twitter)):!(""==(null==ve.currentFundraiser||null==ve.currentFundraiser.social_media?null:ve.currentFundraiser.social_media.instagram)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.social_media?null:ve.currentFundraiser.social_media.facebook)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.social_media?null:ve.currentFundraiser.social_media.linkedin)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.social_media?null:ve.currentFundraiser.social_media.website)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.social_media?null:ve.currentFundraiser.social_media.email)&&""==(null==ve.currentFundraiser||null==ve.currentFundraiser.social_media?null:ve.currentFundraiser.social_media.twitter)))}}function Ti(Ct,Dt){if(1&Ct&&(c.TgZ(0,"h1",105),c.YNc(1,wt,2,2,"strong",106),c.YNc(2,nr,2,1,"ng-template",null,107,c.W1O),c.qZA(),c.TgZ(4,"div",108)(5,"div",109)(6,"div",110),c._UZ(7,"app-fundraiser-category",111),c.qZA(),c.YNc(8,tn,2,1,"div",112),c.qZA(),c.YNc(9,Gn,5,2,"div",113),c.YNc(10,Dn,4,1,"div",113),c.qZA(),c._UZ(11,"br")),2&Ct){const ve=c.MAs(3),Rt=c.oxw(2);c.xp6(1),c.Q6J("ngIf",null==Rt.currentFundraiser||null==Rt.currentFundraiser.translations?null:Rt.currentFundraiser.translations["title"+Rt.localeSuffix])("ngIfElse",ve),c.xp6(6),c.Q6J("category",null==Rt.currentFundraiser?null:Rt.currentFundraiser.category),c.xp6(1),c.Q6J("ngIf",!Rt.isCurrentChildFundraiser||Rt.isCurrentChildFundraiser&&(null==Rt.currentFundraiser||null==Rt.currentFundraiser.root_fundraiser?null:Rt.currentFundraiser.root_fundraiser.location)),c.xp6(1),c.Q6J("ngIf",""==(null==Rt.currentFundraiser||null==Rt.currentFundraiser.social_media?null:Rt.currentFundraiser.social_media.instagram)&&""==(null==Rt.currentFundraiser||null==Rt.currentFundraiser.social_media?null:Rt.currentFundraiser.social_media.facebook)&&""==(null==Rt.currentFundraiser||null==Rt.currentFundraiser.social_media?null:Rt.currentFundraiser.social_media.linkedin)&&""==(null==Rt.currentFundraiser||null==Rt.currentFundraiser.social_media?null:Rt.currentFundraiser.social_media.website)&&""==(null==Rt.currentFundraiser||null==Rt.currentFundraiser.social_media?null:Rt.currentFundraiser.social_media.email)&&""==(null==Rt.currentFundraiser||null==Rt.currentFundraiser.social_media?null:Rt.currentFundraiser.social_media.twitter)),c.xp6(1),c.Q6J("ngIf",""!=(null==Rt.currentFundraiser||null==Rt.currentFundraiser.social_media?null:Rt.currentFundraiser.social_media.instagram)||""!=(null==Rt.currentFundraiser||null==Rt.currentFundraiser.social_media?null:Rt.currentFundraiser.social_media.facebook)||""!=(null==Rt.currentFundraiser||null==Rt.currentFundraiser.social_media?null:Rt.currentFundraiser.social_media.linkedin)||""!=(null==Rt.currentFundraiser||null==Rt.currentFundraiser.social_media?null:Rt.currentFundraiser.social_media.website)||""!=(null==Rt.currentFundraiser||null==Rt.currentFundraiser.social_media?null:Rt.currentFundraiser.social_media.email)||""!=(null==Rt.currentFundraiser||null==Rt.currentFundraiser.social_media?null:Rt.currentFundraiser.social_media.twitter))}}function Ni(Ct,Dt){if(1&Ct&&c.YNc(0,Ti,12,6,"ng-template",104),2&Ct){const ve=c.oxw();c.Q6J("ngIf",!(ve.showEdits&&ve.isLoggedInUserAdmin))}}function ci(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",124)(1,"div",125),c._UZ(2,"app-created-by",115),c.qZA(),c.TgZ(3,"div",126),c._UZ(4,"app-opp-owner",127),c.qZA()()),2&Ct){const ve=c.oxw(2);c.xp6(2),c.Q6J("currentFundraiser",ve.currentFundraiser),c.xp6(2),c.Q6J("bankAccount",ve.currentFundraiser)}}function Kt(Ct,Dt){if(1&Ct){const ve=c.EpF();c.TgZ(0,"div")(1,"div",129),c.NdJ("click",function(){c.CHM(ve);const Dr=c.oxw(3);return c.KtG(Dr.routeToParentFundraiser(null==Dr.currentFundraiser||null==Dr.currentFundraiser.parent?null:Dr.currentFundraiser.parent.slug))}),c.TgZ(2,"img",130),c.NdJ("error",function(Dr){c.CHM(ve);const kn=c.oxw(3);return c.KtG(kn.handleImageError(Dr))}),c.qZA(),c.TgZ(3,"div",131)(4,"mat-label"),c.SDv(5,132),c.qZA(),c.TgZ(6,"div"),c._uU(7),c.qZA()()()()}if(2&Ct){const ve=c.oxw(3);c.xp6(2),c.s9C("src",null==ve.currentFundraiser||null==ve.currentFundraiser.parent||null==ve.currentFundraiser.parent.profile?null:ve.currentFundraiser.parent.profile.image,c.LSH),c.xp6(5),c.hij(" ",(null==ve.currentFundraiser||null==ve.currentFundraiser.parent?null:ve.currentFundraiser.parent.parent_translations["title"+ve.localeSuffix])||(null==ve.currentFundraiser||null==ve.currentFundraiser.parent?null:ve.currentFundraiser.parent.title)," ")}}function Ar(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",128)(1,"div"),c._UZ(2,"app-created-by",115),c.qZA(),c.TgZ(3,"div"),c._UZ(4,"app-opp-owner",127),c.qZA(),c.YNc(5,Kt,8,2,"div",1),c.qZA()),2&Ct){const ve=c.oxw(2);c.xp6(2),c.Q6J("currentFundraiser",ve.currentFundraiser),c.xp6(2),c.Q6J("bankAccount",ve.currentFundraiser),c.xp6(1),c.Q6J("ngIf",ve.isCurrentChildFundraiser)}}function ie(Ct,Dt){if(1&Ct&&(c.YNc(0,ci,5,2,"ng-template",86),c.YNc(1,Ar,6,3,"ng-template",null,123,c.W1O)),2&Ct){const ve=c.MAs(2),Rt=c.oxw();c.Q6J("ngIf",!Rt.isCurrentChildFundraiser)("ngIfElse",ve)}}function Ve(Ct,Dt){1&Ct&&(c.TgZ(0,"div",141)(1,"div",142),c.SDv(2,143),c.qZA()())}const Mt=function(){return{height:150}};function tr(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",144),c._UZ(1,"ng-image-slider",145,146),c.qZA()),2&Ct){const ve=c.oxw(2);c.xp6(1),c.Q6J("images",ve.appealMediaList)("imageSize",c.DdM(4,Mt))("manageImageRatio",!0)("showArrow",ve.mediaLength>2)}}function kr(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",133)(1,"div",60)(2,"div",134),c.SDv(3,135),c.qZA()(),c._UZ(4,"mat-divider"),c.YNc(5,Ve,3,0,"ng-template",104),c._UZ(6,"quill-view",136),c.TgZ(7,"div",137)(8,"a",138),c.SDv(9,139),c.qZA()(),c.YNc(10,tr,3,5,"div",140),c.qZA()),2&Ct){const ve=c.oxw();c.xp6(5),c.Q6J("ngIf",!ve.isDescriptionLoaded),c.xp6(1),c.Q6J("content",(null==ve.currentFundraiser?null:ve.currentFundraiser.translations["content"+ve.localeSuffix])||(null==ve.currentFundraiser?null:ve.currentFundraiser.content))("preserveWhitespace",!0)("sanitize",!0),c.xp6(4),c.Q6J("ngIf",null==ve.currentFundraiser?null:ve.currentFundraiser.appeal_image_list[0])}}function mn(Ct,Dt){1&Ct&&c.SDv(0,155)}function un(Ct,Dt){if(1&Ct&&c.GkF(0,83),2&Ct){c.oxw();const ve=c.MAs(8);c.Q6J("ngTemplateOutlet",ve)}}function ri(Ct,Dt){if(1&Ct&&c._uU(0),2&Ct){const ve=c.oxw(3);c.hij(" \xa0(",ve.connectedFundraisersCount,") ")}}function Sr(Ct,Dt){if(1&Ct&&(c.TgZ(0,"span",156),c.SDv(1,157),c.qZA(),c.YNc(2,ri,1,1,"ng-template",86)),2&Ct){const ve=c.oxw(2),Rt=c.MAs(33);c.xp6(2),c.Q6J("ngIf",!ve.isConnectedFundraiserCountLoading)("ngIfElse",Rt)}}function Er(Ct,Dt){if(1&Ct&&c.GkF(0,83),2&Ct){c.oxw();const ve=c.MAs(12);c.Q6J("ngTemplateOutlet",ve)}}function Ot(Ct,Dt){1&Ct&&c._UZ(0,"mat-divider")}function lr(Ct,Dt){1&Ct&&(c.TgZ(0,"div",162),c._UZ(1,"img",163),c.qZA())}function Cr(Ct,Dt){1&Ct&&(c.TgZ(0,"div",162),c.SDv(1,164),c.qZA())}const Gr=function(Ct,Dt){return{"p-xl":Ct,"p-xxl":Dt}};function Ln(Ct,Dt){if(1&Ct&&(c._UZ(0,"br"),c.TgZ(1,"div",160),c.YNc(2,lr,2,0,"div",161),c.YNc(3,Cr,2,0,"div",161),c._UZ(4,"br"),c.qZA()),2&Ct){const ve=c.oxw(3);c.xp6(1),c.Q6J("ngClass",c.WLB(3,Gr,ve.showEdits,!ve.showEdits)),c.xp6(1),c.Q6J("ngIf",!ve.showEdits),c.xp6(1),c.Q6J("ngIf",!ve.showEdits)}}function Xn(Ct,Dt){1&Ct&&(c.TgZ(0,"div",141)(1,"div",142),c.SDv(2,165),c.qZA()())}function ni(Ct,Dt){if(1&Ct){const ve=c.EpF();c.TgZ(0,"app-fundraiser-about",166),c.NdJ("readMoreClicked",function(Dr){c.CHM(ve);const kn=c.oxw(3);return c.KtG(kn.getFundraiserFullDescription(Dr))}),c.qZA()}if(2&Ct){const ve=c.oxw(3);c.Q6J("currentFundraiser",ve.currentFundraiser)("isChildFundraiser",ve.isCurrentChildFundraiser)("fundraiserDescriptionData",ve.fundraiserDescriptionData)("isLoading",ve.isDescriptionLoaded)}}function ta(Ct,Dt){if(1&Ct&&(c.YNc(0,Ot,1,0,"ng-template",104),c.YNc(1,Ln,5,6,"ng-template",104),c.YNc(2,Xn,3,0,"ng-template",104),c.YNc(3,ni,1,4,"app-fundraiser-about",158),c._UZ(4,"div",159),c.GkF(5,83)),2&Ct){const ve=c.oxw(2),Rt=c.MAs(23);c.Q6J("ngIf",!ve.isCurrentChildFundraiser),c.xp6(1),c.Q6J("ngIf",ve.fundraiserNoDescription&&ve.isDescriptionLoaded),c.xp6(1),c.Q6J("ngIf",!ve.isDescriptionLoaded),c.xp6(1),c.Q6J("ngIf",(!ve.isNewFundraiser||ve.isCurrentChildFundraiser)&&!ve.fundraiserNoDescription),c.xp6(2),c.Q6J("ngTemplateOutlet",Rt)}}function $a(Ct,Dt){if(1&Ct&&c._UZ(0,"br")(1,"app-fundraiser-media-view",115),2&Ct){const ve=c.oxw(2);c.xp6(1),c.Q6J("currentFundraiser",ve.currentFundraiser)}}function La(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div"),c._UZ(1,"app-fundraiser-card",179),c.qZA()),2&Ct){const ve=Dt.$implicit;c.xp6(1),c.Q6J("slug",ve.slug)("fundraiserCardData",ve.fundraiserCardData)}}function Ei(Ct,Dt){if(1&Ct&&(c.TgZ(0,"div",177),c.YNc(1,La,2,2,"div",178),c.qZA()),2&Ct){const ve=c.oxw(4);c.xp6(1),c.Q6J("ngForOf",ve.connectedFundraisersData)}}function ma(Ct,Dt){1&Ct&&(c.TgZ(0,"mat-icon"),c._UZ(1,"mat-spinner",180),c.qZA())}function bn(Ct,Dt){if(1&Ct){const ve=c.EpF();c.TgZ(0,"div",28)(1,"div",168),c._UZ(2,"div",169),c.TgZ(3,"div",170)(4,"button",171),c.NdJ("click",function(){c.CHM(ve);const Dr=c.oxw(3);return c.KtG(Dr.routeToConnectFundraiser())}),c.TgZ(5,"span"),c.SDv(6,172),c.qZA()()()(),c.YNc(7,Ei,2,1,"div",173),c.qZA(),c.TgZ(8,"div",174)(9,"button",175),c.NdJ("click",function(){c.CHM(ve);const Dr=c.oxw(3);return c.KtG(Dr.viewMore())}),c.TgZ(10,"span"),c.SDv(11,176),c.qZA(),c.YNc(12,ma,2,0,"mat-icon",1),c.qZA()()}if(2&Ct){const ve=c.oxw(3);c.xp6(4),c.Q6J("disabled",!1===(null==ve.currentFundraiser?null:ve.currentFundraiser.allow_child)),c.xp6(3),c.Q6J("ngIf",null==ve.connectedFundraisersData?null:ve.connectedFundraisersData.length),c.xp6(2),c.Q6J("disabled",ve.isConnectedFundraiserCountLoading||ve.connectedFundraisersData.length==ve.connectedFundraisersCount),c.xp6(3),c.Q6J("ngIf",ve.isConnectedFundraiserCountLoading)}}function ha(Ct,Dt){if(1&Ct){const ve=c.EpF();c.TgZ(0,"div",181)(1,"div",182),c.SDv(2,183),c.qZA(),c.TgZ(3,"div",94)(4,"div",184),c.SDv(5,185),c.qZA()(),c._UZ(6,"br"),c.TgZ(7,"button",186),c.NdJ("click",function(){c.CHM(ve);const Dr=c.oxw(3);return c.KtG(Dr.routeToConnectFundraiser())}),c.SDv(8,187),c.qZA()()}if(2&Ct){const ve=c.oxw(3);c.xp6(7),c.s9C("matTooltip",ve.disableTooltip),c.Q6J("disabled",!1===(null==ve.currentFundraiser?null:ve.currentFundraiser.allow_child))("matTooltipDisabled",!0===(null==ve.currentFundraiser?null:ve.currentFundraiser.allow_child))}}function po(Ct,Dt){if(1&Ct&&(c._UZ(0,"br"),c.YNc(1,bn,13,4,"ng-template",86),c.YNc(2,ha,9,3,"ng-template",null,167,c.W1O)),2&Ct){const ve=c.MAs(3),Rt=c.oxw(2);c.xp6(1),c.Q6J("ngIf",null==Rt.connectedFundraisersData?null:Rt.connectedFundraisersData.length)("ngIfElse",ve)}}function Ia(Ct,Dt){1&Ct&&(c.TgZ(0,"mat-tab-group",147)(1,"mat-tab",148),c.YNc(2,mn,1,0,"ng-template",149),c.YNc(3,un,1,1,"ng-template",150),c.qZA(),c.TgZ(4,"mat-tab",151),c.YNc(5,Sr,3,2,"ng-template",149),c.YNc(6,Er,1,1,"ng-template",150),c.qZA()(),c.YNc(7,ta,6,5,"ng-template",null,152,c.W1O),c.YNc(9,$a,2,1,"ng-template",null,153,c.W1O),c.YNc(11,po,4,2,"ng-template",null,154,c.W1O))}function Oa(Ct,Dt){1&Ct&&(c._UZ(0,"mat-divider"),c.TgZ(1,"div",188)(2,"div",142),c.SDv(3,189),c.qZA()())}function cn(Ct,Dt){if(1&Ct){const ve=c.EpF();c.TgZ(0,"app-fundraiser-update-view",191),c.NdJ("loadFullUpdateEvent",function(Dr){c.CHM(ve);const kn=c.oxw(3);return c.KtG(kn.loadFullUpdateEvent(Dr))}),c.qZA()}if(2&Ct){const ve=c.oxw(3);c.Q6J("fundraiserUpdates",ve.fundraiserUpdatesData)("cardShadow",ve.cardShadow)("slug",null==ve.currentFundraiser?null:ve.currentFundraiser.slug)("currentFundraiser",ve.currentFundraiser)("count",ve.fundraiserUpdatesCount)("totalPages",ve.fundraiserUpdatesTotalPages)}}function Yi(Ct,Dt){if(1&Ct&&c.YNc(0,cn,1,6,"app-fundraiser-update-view",190),2&Ct){const ve=c.oxw(2);c.Q6J("ngIf",ve.isUpdateLoaded)}}function wi(Ct,Dt){if(1&Ct&&(c.YNc(0,Oa,4,0,"ng-template",104),c.YNc(1,Yi,1,1,"ng-template",104)),2&Ct){const ve=c.oxw();c.Q6J("ngIf",!ve.isUpdateLoaded),c.xp6(1),c.Q6J("ngIf",ve.isUpdateLoaded)}}function Wi(Ct,Dt){if(1&Ct&&(c.TgZ(0,"mat-card",192),c._UZ(1,"app-fundraiser-donation",193),c.qZA()),2&Ct){const ve=c.oxw();c.Gre("mat-elevation-z",ve.cardShadow,""),c.xp6(1),c.Q6J("fundraiserCardData",ve.fundraiserCardData)("targetAmount",ve.currentFundraiser.amount_target)("raisedAmount",ve.currentFundraiser.donation.amount)("selectedFundraiser",ve.currentFundraiser)("showEdits",ve.showEdits)("isDraftOrClosed",ve.isDraftOrClosed)("isNewFundraiser",ve.isNewFundraiser)("daysLeft",ve.daysLeft)("isLoggedIn",ve.isLoggedInUserAdmin)("isFindable",ve.currentFundraiser.is_findable)("isOpen",ve.currentFundraiser.is_opened)("isDraft",ve.currentFundraiser.is_draft)}}function ra(Ct,Dt){if(1&Ct&&(c.TgZ(0,"mat-card",196),c._UZ(1,"app-donations-zero",197),c.qZA()),2&Ct){const ve=c.oxw(2);c.Gre("mat-elevation-z",ve.cardShadow,""),c.xp6(1),c.Q6J("isLoggedInUserAdmin",ve.isLoggedInUserAdmin)("hideToggleSwitch",ve.hideToggleSwitch)("donationReceivedBoolean",ve.currentFundraiser.show_received_donations)}}function ji(Ct,Dt){if(1&Ct&&(c.TgZ(0,"mat-card"),c._UZ(1,"app-donor-list-short",198),c.qZA()),2&Ct){const ve=c.oxw(2);c.Gre("mat-elevation-z",ve.cardShadow,""),c.xp6(1),c.Q6J("currentFundraiserID",ve.currentFundraiser.id)("isLoggedInUserAdmin",ve.isLoggedInUserAdmin)("donationReceivedBoolean",ve.currentFundraiser.show_received_donations)("hideToggleSwitch",ve.hideToggleSwitch)("donorShortData",ve.donorShortData)}}function sa(Ct,Dt){if(1&Ct&&(c.YNc(0,ra,2,6,"mat-card",194),c.YNc(1,ji,2,8,"mat-card",195)),2&Ct){const ve=c.oxw();c.Q6J("ngIf",ve.donarDataParent<=0),c.xp6(1),c.Q6J("ngIf",ve.donarDataParent>0&&ve.currentFundraiser.show_received_donations)}}function Ui(Ct,Dt){if(1&Ct&&(c.ynx(0),c.TgZ(1,"mat-card"),c._UZ(2,"app-connect-fund",199),c.qZA(),c.BQk()),2&Ct){const ve=c.oxw(2);c.xp6(1),c.Gre("mat-elevation-z",ve.cardShadow,""),c.xp6(1),c.Q6J("slug",ve.currentFundraiser.slug)("isAllowChild",null==ve.currentFundraiser?null:ve.currentFundraiser.allow_child)("isLoggedInUserAdmin",ve.isLoggedInUserAdmin)("hideToggleSwitch",ve.hideToggleSwitch)}}function na(Ct,Dt){if(1&Ct&&c.YNc(0,Ui,3,7,"ng-container",1),2&Ct){const ve=c.oxw();c.Q6J("ngIf",(null==ve.currentFundraiser?null:ve.currentFundraiser.allow_child)||ve.showEdits)}}function fa(Ct,Dt){1&Ct&&c._UZ(0,"app-page-loader")}function Co(Ct,Dt){1&Ct&&(c.TgZ(0,"mat-icon"),c._UZ(1,"mat-spinner",180),c.qZA())}let Fa=(()=>{class Ct{constructor(ve,Rt,Dr,kn,wn,Jn,yn,Mn,$n,ia,Ua,qa,ro,Na){this._searchService=ve,this._activatedRoute=Rt,this._router=Dr,this.customDomainService=kn,this._media=wn,this.router=Jn,this.sanitizer=yn,this.fundraiserService=Mn,this.accountService=$n,this.mediaService=ia,this._customBrandingService=Ua,this._fundraiserCardService=qa,this._themeService=ro,this.scriptLoader=Na,this.isContentLoading=!0,this.isPersonalFundraising=!0,this.isOrganisation=!1,this.currentDomain="",this.isCustomDomainFlag=!1,this.isCustomHomePageFlag=!1,this.isCustomFundraiserHomePageFlag=!1,this.currentFundraiser={},this.customHomeData={},this.isViewChanging=!1,this.isCurrentChildFundraiser=!1,this.isLoggedInUserAdmin=!1,this.showEdits=!1,this.backgroundVideo="",this.defaultBackgroundImage=l.w.getBase64_FundraiserDefaultBg(),this.backgroundImage=this.defaultBackgroundImage,this.localeSuffix="",this.defaultProfileImage="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/whydonate_user/public",this.isDescriptionLoaded=!1,this.mediaLength=0,this.isConnectedFundraiserCountLoading=!0,this.connectedFundraisersCount=0,this.fundraiserNoDescription=!1,this.isNewFundraiser=!1,this.disableTooltip="Povezana funkcionalnost prikupljanja sredstava onemogu\u0107ena je od strane Glavnog Prikuplja\u010Da sredstava.",this.isUpdateLoaded=!1,this.cardShadow="1",this.isDraftOrClosed=!1,this.daysLeft=0,this.hideToggleSwitch=!1,this.isFundraiserDataLoaded=!1,this.slug="",this.fontFamily="Roboto",this.whydonateSecondaryColor="#2E2C96",this.isWhydonateSecondaryColor=!1,this.userImage="https://whydonate.in/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/staging/profile_image/9a5da9ab26cc4d10/public",this.IMAGE_PREFIX="https://whydonate.in/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/",this.IMAGE_POSTFIX="/public",this.locale=this.accountService.getLocaleId(),this.localeSuffix=this.fundraiserService.getLocaleSuffix(this.locale)}ngOnInit(){var ve=this;return(0,d.Z)(function*(){try{ve.scriptLoader.loadCrisp();const Rt=ve.extractDomainFromUrl(window.location.href);ve.isCustomDomain(Rt)?(ve.isContentLoading=!0,ve.customDomainService.setIsCustomDomainValue(!0),ve.isCustomDomainFlag=!0,yield ve.getCustomDomainData(Rt)):ve.isContentLoading=!1,ve._router.url.includes("organisation")&&(ve.isPersonalFundraising=!1,ve.isOrganisation=!0)}catch(Rt){console.error("Error during ngOnInit:",Rt)}})()}extractDomainFromUrl(ve){return ve.replace(/^(https?:\/\/)?(www\d?\.)?/,"").replace(/\/$/,"").split("/")[0]}isCustomDomain(ve){return!r.N.OFFICIAL_DOMAINS.includes(ve)}getCustomDomainData(ve){var Rt=this;return(0,d.Z)(function*(){try{let Dr;yield Rt.customDomainService.getCustomDomainData(ve).then(kn=>{Rt.isContentLoading=!1,Dr=kn?.data,0!=Object.keys(Dr).length?(Rt.isCustomFundraiserHomePageFlag=Dr?.is_fundraiser_home,Rt.isCustomHomePageFlag=Dr?.is_custom_home,Rt.isCustomHomePageFlag&&(Rt.customDomainService.setIsCustomHomeFlag(!0),Rt.customHomePageData=Dr?.custom_home_data,Rt.customHomeProfileData=Rt.customHomePageData?.customData,Rt.customHomeProfileData?.profile_image.length&&Rt.customHomeProfileData?.profile_image.length>0&&(Rt.userImage=Rt.IMAGE_PREFIX+Rt.customHomeProfileData?.profile_image+Rt.IMAGE_POSTFIX),Rt.customHomeProfileData?.image.length&&Rt.customHomeProfileData?.image.length>0&&(Rt.backgroundImage=Rt.IMAGE_PREFIX+Rt.customHomeProfileData?.image+Rt.IMAGE_POSTFIX),Rt.customHomePageData?.ownedFundraiser?.count>0&&(Rt.customHomeOwnedFundraisers=Rt._fundraiserCardService.filterFundraiserCardDataList(Rt.customHomePageData?.ownedFundraiser?.list)),Rt.customHomePageData?.connectedFundraiser?.count>0&&(Rt.customHomeConnectedFundraisers=Rt.customHomePageData?.connectedFundraiser,Rt.customHomeConnectedFundraisers=Rt._fundraiserCardService.filterFundraiserCardDataList(Rt.customHomePageData?.connectedFundraiser?.list)),Rt.customHomePageData?.donorList.length>0&&(Rt.customHomeRecentDonations=Rt.customHomePageData?.donorList),Dr?.custom_branding?.apply_custom_branding&&(Rt.customHomeCustomBranding=Dr?.custom_branding,Rt.setCustomBrandingCustomHome(Rt.customHomeCustomBranding)),Rt.customHomeCustomBranding=Dr?.custom_branding,Rt.setCustomBrandingCustomHome(Rt.customHomeCustomBranding)),Rt.isCustomFundraiserHomePageFlag&&(Rt.customDomainService.setIsFundAsCustomHomePage(!0),Rt.slug=Dr?.fundraiser_data?.fudraiserDetails?.slug,Rt.currentFundraiser=Dr?.fundraiser_data?.fudraiserDetails,Rt.fundraiserDescriptionData=Dr?.fundraiser_data?.description,Rt.fundraiserUpdatesData=Dr?.fundraiser_data?.updates,Rt.fundraiserUpdatesCount=Dr?.fundraiser_data?.updates?.totalDoc,Rt.fundraiserUpdatesTotalPages=Dr?.fundraiser_data?.updates?.totalPages,Rt.isFundraiserDataLoaded=!0,Rt.isDescriptionLoaded=!0,Rt.isConnectedFundraiserCountLoading=!1,Rt.isUpdateLoaded=!0,Rt.fundraiserCardData=Rt._fundraiserCardService.filterFundraiserCardDataList([Rt.currentFundraiser])[0]?.fundraiserCardData,Rt.loadBackgroundInView(),Rt.fundraiserService.getConnectedFundraisers(Rt.slug,1).subscribe(wn=>{Rt.connectedFundraisersData=Rt.fundraiserService.getConnectedFundraisersObj(wn.data),Rt.connectedFundraisersCount=wn.data.count||0,Rt.isConnectedFundraiserCountLoading=!1}),Rt.fundraiserService.getDonorShort(Rt.slug,Rt.locale).subscribe(wn=>{wn&&wn?.data?.result?.result&&(Rt.donorShortData=wn,Rt.donarDataParent=Object.keys(wn?.data?.result?.result)?.length)}),Rt.setCustomBranding(Rt.currentFundraiser)),Rt.isContentLoading=!1):(Rt.isCustomDomainFlag=!1,Rt.customDomainService.setIsCustomDomainValue(!1))}).catch(kn=>{console.error(kn),Dr={},Rt.isCustomDomainFlag=!1,Rt.customDomainService.setIsCustomDomainValue(!1)})}catch(Dr){console.error("Error fetching custom domain data:",Dr)}})()}routeToMarkFundraiserFraudulent(){let ve="fundraising/mark-fundraiser-fraudulent/"+this.slug;l.w.setPreviousPath(ve),this.router.navigate([ve])}routeToSearch(ve=""){this.router.navigate(["search"],{state:{type:ve}})}loadBackgroundInView(){if(this.isCurrentChildFundraiser){if(""!==this.currentFundraiser?.background?.image||""!==this.currentFundraiser?.background?.video)return this.backgroundImage=this.currentFundraiser?.background?.image,this.backgroundVideo=this.currentFundraiser?.background?.video,void(this.youtubeIframe=this.checkVideoUrl(this.currentFundraiser?.background?.video));if(null!=this.currentFundraiser?.parent?.background)return this.backgroundImage=this.currentFundraiser?.parent?.background?.image,this.backgroundVideo=this.currentFundraiser?.parent?.background?.video,void(this.youtubeIframe=this.checkVideoUrl(this.currentFundraiser?.parent?.background?.video));if(null!=this.currentFundraiser?.root_fundraiser?.background)return this.backgroundImage=this.currentFundraiser?.root_fundraiser?.background?.image,this.backgroundVideo=this.currentFundraiser?.root_fundraiser?.background?.video,void(this.youtubeIframe=this.checkVideoUrl(this.currentFundraiser?.root_fundraiser?.background?.video))}else this.currentFundraiser?.background&&(this.backgroundVideo=this.currentFundraiser?.background?.video,this.backgroundImage=this.currentFundraiser?.background?.image,this.youtubeIframe=this.checkVideoUrl(this.currentFundraiser?.background?.video))}checkVideoUrl(ve){return ve?.match(/^(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/)(\d+)(?:\S+)?$/)?this.generateVimeoIframe(ve):ve?.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:embed\/|watch\?v=|v\/)|youtu\.be\/)([\w\-]+)(?:\S+)?$/)?this.generateYouTubeIframe(ve):"unknown"}generateVimeoIframe(ve){const Rt=this.getVideoIdVimeo(ve);return this.sanitizer.bypassSecurityTrustHtml(`\n\t\t<style>\n\t\t.embed-container {\n\t\t\t--video--width: 1920;\n\t\t\t--video--height: 1080;\n\n\t\t\tposition: relative;\n\t\t\tpadding-bottom: calc(var(--video--height) / var(--video--width) * 100%); /* 41.66666667% */\n\t\t\toverflow: hidden;\n\t\t\tmax-width: 100%;\n\t\t\tmax-height: 100%;\n\t\t\tbackground: black;\n\t\t}\n\n\t\t.embed-container iframe,\n\t\t.embed-container object,\n\t\t.embed-container embed {\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t\t</style>\n\t\t<div class='embed-container'>\n\t\t\t<iframe\n\t\t\t\twidth="560"\n\t\t\t\theight="315"\n\t\t\t\tsrc="https://player.vimeo.com/video/${Rt}"\n\n\t\t\t\tsrcdoc="<style>*{padding:0;margin:0;overflow:hidden}html,body{height:100%}img,span{position:absolute;width:100%;top:0;bottom:0;margin:auto}span{height:1.5em;text-align:center;font:48px/1.5 sans-serif;color:white;text-shadow:0 0 0.5em black}</style><a href=https://player.vimeo.com/video/${Rt}?autoplay=1&muted=1><img src=https://vumbnail.com/${Rt}.jpg><span>\u25b6</span></a>"\n\t\t\t\tframeborder="0"\n\t\t\t\tallow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"\n\t\t\t\tallowfullscreen\n\t\t\t></iframe>\n\t\t</div>\n\t\t`)}generateYouTubeIframe(ve){const Dr=`\n\t\t<iframe\n\t\t\tloading="lazy"\n\t\t\tsrc="https://www.youtube-nocookie.com/embed/${this.getVideoIdYoutube(ve)}"\n\t\t\twidth="100%"\n\t\t\theight="100%"\n\t\t\tframeborder="0"\n\t\t\tallow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"\n\t\t\tallowfullscreen\n\t\t\ttitle="The Youtube Video"\n\t\t></iframe>`;return this.sanitizer.bypassSecurityTrustHtml(Dr)}getVideoIdYoutube(ve){const Dr=ve?.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:embed\/|watch\?v=|v\/)|youtu\.be\/)([\w\-]+)(?:\S+)?$/);return Dr&&Dr[1]?Dr[1]:""}getVideoIdVimeo(ve){const Dr=ve?.match(/^(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/)(\d+)(?:\S+)?$/);return Dr&&Dr[1]?Dr[1]:""}fallbackToDefaultImage(){this.backgroundImage=this.defaultBackgroundImage}routeToParentFundraiser(ve){this.router.navigate(["fundraising",ve])}handleImageError(ve){ve.target.src=this.defaultProfileImage}setConnectedFundriserData(){this.currentFundraiser&&this.currentFundraiser?.appeal_image_list&&(this.appealMediaList=this.mediaService.getSliderMediaList(this.currentFundraiser?.appeal_image_list),this.appealMediaList&&null!=this.appealMediaList&&null!=this.appealMediaList&&(this.mediaLength=this.currentFundraiser?.appeal_image_list.length))}getFundraiserFullDescription(ve){}routeToConnectFundraiser(){let ve="fundraising/connect/"+this.slug;l.w.setPreviousPath(ve),this.router.navigate([ve])}viewMore(){}loadFullUpdateEvent(ve){this.isUpdateLoaded=!1,this.fundraiserService.getUpdates(this.slug,this.locale,1,ve).subscribe(Rt=>{this.fundraiserUpdatesData=Rt.data,this.fundraiserUpdatesCount=Rt.data.totalDoc,this.fundraiserUpdatesTotalPages=Rt.data.totalPages,this.isUpdateLoaded=!0})}handleRefreshEvent(){this.fundraiserService.getUpdates(this.slug,this.locale,1).subscribe(ve=>{this.fundraiserUpdatesData=ve.data,this.fundraiserUpdatesCount=ve.data.totalDoc,this.fundraiserUpdatesTotalPages=ve.data.totalPages,this.isUpdateLoaded=!0})}setCustomBranding(ve){this._customBrandingService.setProfileObj=ve?.profile;let Rt=this._customBrandingService.getBrandingObj;Rt.secondaryColor==this.whydonateSecondaryColor&&(this.isWhydonateSecondaryColor=!0),this.cardShadow=this._customBrandingService.calculateCardShadow(Rt.cardShadow),this.fontFamily=Rt.customFont,this._themeService.setTheme(Rt?.primaryColor,Rt?.secondaryColor,Rt?.customFont)}setCustomBrandingCustomHome(ve){let Rt=ve;Rt.secondary_color==this.whydonateSecondaryColor&&(this.isWhydonateSecondaryColor=!0),this.cardShadow=this._customBrandingService.calculateCardShadow(Rt.card_shadow),this.fontFamily=Rt?.fonts,this._themeService.setTheme(Rt?.primary_color,Rt?.secondary_color,Rt?.fonts)}}return Ct.\u0275fac=function(ve){return new(ve||Ct)(c.Y36(E.oD),c.Y36(e.gz),c.Y36(e.F0),c.Y36(m.c),c.Y36(v.u0),c.Y36(e.F0),c.Y36(C.H7),c.Y36(n.R),c.Y36(i.B),c.Y36(P.y),c.Y36(I.C),c.Y36(q.a),c.Y36(D.f),c.Y36(M.$))},Ct.\u0275cmp=c.Xpm({type:Ct,selectors:[["app-home"]],decls:34,vars:4,consts:function(){let Dt,ve,Rt,Dr,kn,wn,Jn,yn,Mn,$n,ia,Ua,qa,ro,Na,ga,Ka,Mi,Bi,Xi,Aa,wa,Eo,To,Pi,Ji,Va,Qi;return Dt="Kreirao:",ve="Glavna Prikupljanja Sredstava",Rt="Pogledaj Sve",Dr="Povezani Prikuplja\u010Di Sredstava",kn="Pogledaj Sve",wn="Nedavne Donacije",Jn="Prvo Donirajte",yn="Inspirirajte druge da budu promjena davanjem prve donacije va\u0161em prikupljanju sredstava",Mn="Donirajte",$n="Izvje\u0161taj Prikupljanje Sredstava",ia="Izvje\u0161taj Prikupljanje Sredstava",Ua="Kontakt podaci:",qa="Nije dostupno",ro="Kontakt podaci:",Na="Povezano s:",ga="Motivacija",Ka="Pro\u010Ditaj vi\u0161e",Mi="Prikupljanje sredstava zahtjeva se prevodi, to mo\u017Ee trajati nekoliko minuta...",Bi="Opis",Xi="Povezani Sakuplja\u010Di Sredstava",Aa="Pri\u010Da prikupljanja sredstava je trenutno u tijeku.",wa="Opis prikupljanja sredstava je u tijeku, to mo\u017Ee potrajati nekoliko minuta...",Eo="Povezivanje Sakuplja\u010D Sredstava",To="Prika\u017Ei Vi\u0161e",Pi="Jo\u0161 Nema Povezanih prikuplja\u010Da Sredstava",Ji="Zapo\u010Dnite povezani prikuplja\u010D sredstava, i sve donacije \u0107e biti dodane na prikuplja\u010D sredstava koji trenutno gledate.",Va="Povezivanje Sakuplja\u010D Sredstava",Qi="A\u017Euriranje prikupljanja sredstava je u tijeku, ovo mo\u017Ee potrajati nekoliko minuta...",[["rel","preload","href","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/HomePersonalBanner/public","fetchpriority","high","as","image"],[4,"ngIf"],["officialHome",""],["class","custom-theme-branding home-typography body-custom-home",4,"ngIf","ngIfElse"],["fundraiser2",""],["fundraiser",""],[3,"ngTemplateOutlet",4,"ngIf"],["tabletView",""],["fundraiserBackground",""],["fundraiserTitle",""],["fundraiserOwnerInfo",""],["appealByChildFundraiser",""],["aboutAndConnectTab",""],["fundraiserUpdates",""],["fundraiserDonation",""],["donationList",""],["supportFundraiser",""],["whydonateLoader",""],["spinner",""],["class","home-typography",4,"ngIf"],[1,"home-typography"],[1,"custom-theme-branding","home-typography","body-custom-home"],["class","p-l","fxLayout","row","fxLayoutAlign","center center","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","100",1,"p-l"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","fxLayoutGap","1%","fxLayoutGap.xs","5%"],["fxLayout","row","fxFlex","100","fxLayoutAlign","center center","fxFill",""],["width","100%",3,"src"],["fxLayout","row","fxLayoutAlign","start start","fxLayoutGap","1%","fxLayoutGap.xs","3%","fxFill",""],["fxLayout","column"],[1,"profile-image",3,"src"],Dt,[1,"mat-body"],["fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","2%","fxFill",""],["fxLayout","column","fxLayoutAlign","center start","fxFlex","100","fxLayoutGap","2%"],["fxLayout","row","fxLayoutAlign","center center","fxFill",""],[1,"w-100"],["fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","1%","fxFill","",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","1%",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","1%","fxFlex","60","fxFill","",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","1%","fxFill",""],["fxLayout","column","fxLayoutAlign","center center","fxLayoutGap","2%"],[1,"dark-grey-texts","text-align-center"],ve,["fxLayout","row","fxFlex","100%","fxLayout.xs","column","fxFlex.xs","100","fxLayoutGap","1%"],["fxLayout","column","class","fundraiser-card-custom-home",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","100%","fxLayoutAlign","end center","fxFill",""],["mat-button","","color","accent",3,"click"],Rt,["fxLayout","column",1,"fundraiser-card-custom-home"],["id","fundraiser-card","name","fundraiser-card",3,"slug","fundraiserCardData"],["fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","1%"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","fxLayoutGap","2%"],Dr,kn,["fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","1%","fxFlex","60","fxFill",""],["fxLayout","column","fxLayoutAlign","center center","fxFlex.xs","100","fxFlex","60"],wn,["fxFlex","100","fxLayout","row","fxLayoutAlign","center center","fxFill","",4,"ngFor","ngForOf"],["fxFlex","100","fxLayout","row","fxLayoutAlign","center center","fxFill",""],["fxLayout","column","fxFlex","100%","fxFlex.xs","100%",1,"p-b-m"],["fxLayout","row","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex.xs","20%","fxLayoutAlign","start start"],["mat-card-avatar","","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/donor/public"],["fxLayout","column","fxFlex","55%","fxLayoutAlign","center start","ngClass","p-l-s"],["id","donationName"],["fxLayout","column","fxFlex","30%","fxLayoutAlign","flex-end flex-end"],[1,"mat-option"],["fxFlex","100%","fxLayout","row"],["fxFlex","14%"],["fxLayout","row","fxFlex","100%"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","50%","fxFlex.xs","80%"],[1,"m-l-xs"],["width","30","height","30","loading","lazy","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/donor_small/public",4,"ngIf"],["width","30","height","30","loading","lazy","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/donor_small/public"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center center","fxLayoutAlign.xs","start start","fxLayoutGap","5%"],["fxLayout","column","fxLayoutAlign","center center","fxFlex.xs","100"],["width","80px","src","assets/home.png"],["fxFlex","column","fxFlex.xs","100"],Jn,yn,["fxFlex","column","fxLayoutAlign","end end","fxFlex.xs","100","fxFill",""],["mat-flat-button","","color","accent",1,"w-100"],Mn,[3,"ngTemplateOutlet"],["class","custom-theme-branding p-m",4,"ngIf"],[1,"custom-theme-branding","p-m"],[3,"ngIf","ngIfElse"],["fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign","center","fxLayoutGap","1.5%",1,"mat-typography","p-b-s",3,"fxHide"],["fxFlex","70%"],["fxFlex","30%"],["mat-stroked-button","","color","accent",3,"click"],["height","16px","src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/flagAction/public",1,"icon-background"],$n,[1,"mat-typography",3,"fxHide"],["fxLayout","row"],["fxFlex","50%"],["fxLayout","row","fxLayoutGap","16px",1,"p-b-s"],["height","16px","src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/flagAction/public"],ia,["fxLayoutAlign","end end"],["class","w-100 aspect-ratio",3,"innerHTML",4,"ngIf"],["class","w-100 aspect-ratio",3,"src","error",4,"ngIf"],[1,"w-100","aspect-ratio",3,"innerHTML"],[1,"w-100","aspect-ratio",3,"src","error"],[3,"ngIf"],[1,"p-t-s","mat-title"],[4,"ngIf","ngIfElse"],["defaultTitle",""],["fxLayout","row","fxLayoutGap","20px","fxLayoutGap.xs","10px","fxLayoutAlign","space-between","ngClass","isWhydonateSecondaryColor ? whydonate-light : branding-light","fxLayoutAlign.xs","start","fxLayout.xs","column"],["fxLayout","row","fxLayout.xs","column","fxLayoutGap.xs","10px","fxLayoutAlign","center center","fxLayoutAlign.xs","start start"],["fxLayout","row","fxLayoutAlign","center center"],[3,"category"],["fxLayout","row","fxFlexOffset","32px","fxFlexOffset.xs","0px","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutGap","0","fxLayoutAlign","center center","fxLayoutAlign.xs","start center",4,"ngIf"],["fxLayout","row","fxFlexOffset","32px","fxFlexOffset.xs","0px","fxLayoutAlign","center center"],[3,"currentFundraiser"],["fxLayout","row","fxLayoutGap","0","fxLayoutAlign","center center","fxLayoutAlign.xs","start center"],Ua,["ngClass","p-0","fxLayout","row","fxLayoutAlign","center center",3,"isLoggedIn","socialMedia",4,"ngIf"],["fxFlexOffset","6px"],qa,["ngClass","p-0","fxLayout","row","fxLayoutAlign","center center",3,"isLoggedIn","socialMedia"],ro,["threeColumnsLayout",""],["fxLayout","row","fxLayoutGap.xs","15px","fxLayoutGap","150px","fxLayout.xs","column",1,"m-t-m","m-b-xl"],["fxLayout","row","fxLayoutGap","0px","fxLayoutAlign","space-between"],["fxLayout","row","fxLayoutGap.xs","0px","fxLayoutGap","30px","fxLayoutAlign","start"],[3,"bankAccount"],["fxLayout","row","fxLayoutAlign","space-between","fxLayout.xs","column","fxLayoutGap.xs","30px",1,"p-t-m","p-b-m"],["fxLayout","row","fxFlex.xs","",1,"clickable",3,"click"],[1,"profile-image",3,"src","error"],["fxLayout","column",1,"m-l-s"],Na,[1,"grey-bg","m-t-m"],["fxFlex","","ngClass","p-m"],ga,["format","html",3,"content","preserveWhitespace","sanitize"],["ngClass","p-b-m"],[1,"read-more","cursor-pointer"],Ka,["class","m-l-s p-b-s",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center",1,"p-xl","mat-title"],[1,"dark-grey-texts","mat-body-2"],Mi,[1,"m-l-s","p-b-s"],[3,"images","imageSize","manageImageRatio","showArrow"],["nav",""],["dynamicHeight",""],["id","editFundraiser_about_template"],["matTabLabel","","class","p-t-l"],["matTabContent",""],[1,"p-s"],["aboutTabContent",""],["aboutTabMedia",""],["connectedTabContent",""],Bi,["id","editFundraiserConnectedFundraisersHeading"],Xi,[3,"currentFundraiser","isChildFundraiser","fundraiserDescriptionData","isLoading","readMoreClicked",4,"ngIf"],["ngClass","p-t-l"],["fxLayout","column","fxLayoutAlign","center center",1,"pale-grey-bg",3,"ngClass"],["class","center",4,"ngIf"],[1,"center"],["src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/poetry/public"],Aa,wa,[3,"currentFundraiser","isChildFundraiser","fundraiserDescriptionData","isLoading","readMoreClicked"],["zeroDay",""],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","space-between baseline","fxFlex","100%","fxLayoutGap.sm","3%","fxLayoutGap.lt-sm","0%"],["fxFlex","70%","fxLayout","column"],["fxFlex","25%","fxFlex.sm","30%","fxLayout","column"],["mat-stroked-button","","color","accent",3,"disabled","click"],Eo,["fxLayout","row wrap","fxLayoutAlign","center start","class","fundraiser-card",4,"ngIf"],["fxLayoutAlign","center center"],["id","view-more-button-connected-fundraiser","name","view-more-button","mat-flat-button","","color","accent",3,"disabled","click"],To,["fxLayout","row wrap","fxLayoutAlign","center start",1,"fundraiser-card"],[4,"ngFor","ngForOf"],[3,"slug","fundraiserCardData"],["color","primary","diameter","20"],["fxLayout","column","fxLayoutAlign","center center",1,"pale-grey-bg","p-xl"],[1,"mat-title","center"],Pi,["fxFlex.gt-xs","300px",1,"center"],Ji,["mat-stroked-button","","id","editFundraiserConnectFundraiserButton","color","accent",3,"disabled","matTooltip","matTooltipDisabled","click"],Va,["fxLayout","column","fxLayoutAlign","center center",1,"p-t-xxl","p-l","mat-title"],Qi,[3,"fundraiserUpdates","cardShadow","slug","currentFundraiser","count","totalPages","loadFullUpdateEvent",4,"ngIf"],[3,"fundraiserUpdates","cardShadow","slug","currentFundraiser","count","totalPages","loadFullUpdateEvent"],["ngClass.xs","sticky"],[3,"fundraiserCardData","targetAmount","raisedAmount","selectedFundraiser","showEdits","isDraftOrClosed","isNewFundraiser","daysLeft","isLoggedIn","isFindable","isOpen","isDraft"],["class","m-b-xl",3,"class",4,"ngIf"],[3,"class",4,"ngIf"],[1,"m-b-xl"],[3,"isLoggedInUserAdmin","hideToggleSwitch","donationReceivedBoolean"],[3,"currentFundraiserID","isLoggedInUserAdmin","donationReceivedBoolean","hideToggleSwitch","donorShortData"],[3,"slug","isAllowChild","isLoggedInUserAdmin","hideToggleSwitch"]]},template:function(ve,Rt){if(1&ve&&(c._UZ(0,"link",0),c.YNc(1,ar,1,0,"app-page-loader",1),c.YNc(2,lt,1,1,"ng-template",null,2,c.W1O),c.YNc(4,ut,3,2,"div",3),c.YNc(5,nt,1,0,"ng-template",null,4,c.W1O),c.YNc(7,Kr,1,1,"ng-template",null,5,c.W1O),c.YNc(9,Cn,1,1,"ng-container",6),c.YNc(10,zn,23,9,"ng-template",null,7,c.W1O),c.YNc(12,Jr,3,2,"ng-template",null,8,c.W1O),c.YNc(14,Ni,1,1,"ng-template",null,9,c.W1O),c.YNc(16,ie,3,2,"ng-template",null,10,c.W1O),c.YNc(18,kr,11,5,"ng-template",null,11,c.W1O),c.YNc(20,Ia,13,0,"ng-template",null,12,c.W1O),c.YNc(22,wi,2,2,"ng-template",null,13,c.W1O),c.YNc(24,Wi,2,15,"ng-template",null,14,c.W1O),c.YNc(26,sa,2,2,"ng-template",null,15,c.W1O),c.YNc(28,na,1,1,"ng-template",null,16,c.W1O),c.YNc(30,fa,1,0,"ng-template",null,17,c.W1O),c.YNc(32,Co,2,0,"ng-template",null,18,c.W1O)),2&ve){const Dr=c.MAs(3);c.xp6(1),c.Q6J("ngIf",Rt.isContentLoading),c.xp6(3),c.Q6J("ngIf",Rt.isCustomDomainFlag)("ngIfElse",Dr),c.xp6(5),c.Q6J("ngIf",Rt.isViewChanging)}},dependencies:[t.mk,t.sg,t.O5,t.tP,T.$V,F.S$,F.lb,le.d,V.SK,V.gz,V.R7,V.Ql,de.eB,ye.lw,Ee.Hw,Le.sN,ge.gM,ue.xw,ue.SQ,ue.Wh,ue.UT,ue.s9,ue.yH,ee.b8,ee.oO,se.g,W.f,L.c,he.X,_e.J,Z.V,Te.z,w.E,k.c,x.S,z.s,j.r,Ne.h,tt.h,We.j,ze.H,we.sN,Ye,Ge,Tt,Et,H,Y,S,re,fe,qe,$e,dr,bt,t.H9],styles:[".home-sub-header-menu[_ngcontent-%COMP%]{background-color:#32bf55}"]}),Ct})();const la=[{path:"",pathMatch:"full",component:Fa},{path:"organisation",component:Fa}];let ho=(()=>{class Ct{}return Ct.\u0275fac=function(ve){return new(ve||Ct)},Ct.\u0275mod=c.oAB({type:Ct}),Ct.\u0275inj=c.cJS({imports:[e.Bz.forChild(la),e.Bz]}),Ct})();var $i=s(25384),bo=s(35466),Ga=s(93786);let mi=(()=>{class Ct{}return Ct.\u0275fac=function(ve){return new(ve||Ct)},Ct.\u0275mod=c.oAB({type:Ct}),Ct.\u0275inj=c.cJS({imports:[t.ez,ho,$i.q,bo.m,Ga.FundraiserModule,ze.fi,we.Ek]}),Ct})()},34021:(St,be,s)=>{"use strict";s.d(be,{b:()=>t});const t=[{id:1,name:"Dobrobit \u017Divotinja",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/AnimalCat/public",alt:""}},{id:2,name:"Umjetnost i kultura",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/artCultureCat/public",alt:""}},{id:3,name:"Dje\u010Dja Dobrobit",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/childwelfareCat/public",alt:""}},{id:4,name:"Zajednica",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/communityCat/public",alt:""}},{id:5,name:"Edukacija",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/educationCat/public",alt:""}},{id:6,name:"Izvanredna pomo\u0107",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/emergencyReliefCat/public",alt:""}},{id:7,name:"Poduzetni\u0161tvo",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/entrepreneurshipCat/public",alt:""}},{id:8,name:"Doga\u0111aj",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/eventCat/public",alt:""}},{id:9,name:"sprovod",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/funeralCat/public",alt:""}},{id:10,name:"Zdravstvena za\u0161tita",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/healthcareCat/public",alt:""}},{id:11,name:"Stanovanje",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/housingCat/public",alt:""}},{id:12,name:"Ljudska prava",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/humanRightsCat/public",alt:""}},{id:13,name:"Hrana",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/foodCat/public",alt:""}},{id:14,name:"Priroda i Okoli\u0161",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/natureAndEnviormentCat/public",alt:""}},{id:15,name:"Izbjeglice",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/refugeesCat/public",alt:""}},{id:16,name:"Vjera",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/religionCat/public",alt:""}},{id:17,name:"Sport",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/sportCat/public",alt:""}},{id:18,name:"Dobrovoljac",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/volunteeringCat/public",alt:""}},{id:19,name:"Vjen\u010Danje",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/weddingCat/public",alt:""}},{id:20,name:"\u017Delja",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/wishCat/public",alt:""}},{id:21,name:"\u017Densko Osna\u017Eivanje",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/womenEmpowerCat/public",alt:""}},{id:23,name:"Putovanje",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/travellingCat/public",alt:""}},{id:22,name:"Drugo",image:{src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/othersCat/public",alt:""}}]},16642:(St,be,s)=>{"use strict";s.r(be),s.d(be,{SearchModule:()=>re});var t=s(17774),e=s(64886),d=s(48046),l=s(15645),r=s(68264),c=s(91135),E=s(81953),m=s(75746),v=s(40354),C=s(30003),n=s(39862),i=s(34021),P=s(45734),I=s(73991),q=s(84531),D=s(13009),M=s(76037),T=s(32946),F=s(85006),le=s(4692),V=s(54449),de=s(68287),ye=s(43732),Ee=s(9),Le=s(52051),ge=s(82918),ue=s(43073),ee=s(43719),se=s(45379),W=s(81560),L=s(16124),he=s(27579),_e=s(74351),Z=s(80539),Te=s(85270);const w=["categorySelector"],k=["drawer"];function x(fe,qe){if(1&fe){const $e=I.EpF();I.TgZ(0,"p")(1,"button",28),I.NdJ("click",function(){I.CHM($e),I.oxw();const ot=I.MAs(12);return I.KtG(ot.toggle())}),I._UZ(2,"img",29),I.qZA()()}2&fe&&I.Udp("margin-left",12,"px")}function z(fe,qe){if(1&fe&&(I.TgZ(0,"form",30)(1,"mat-checkbox",31)(2,"span"),I.SDv(3,32),I.qZA()(),I.TgZ(4,"mat-checkbox",33)(5,"span"),I.SDv(6,34),I.qZA()()()),2&fe){const $e=I.oxw();I.Q6J("formGroup",$e.fundraiserTypeForm),I.xp6(1),I.Q6J("formControlName",$e.organisation_fundraiserType),I.xp6(3),I.Q6J("formControlName",$e.personal_fundraiserType)}}function j(fe,qe){if(1&fe&&(I.TgZ(0,"form",35)(1,"mat-checkbox",36)(2,"span"),I.SDv(3,37),I.qZA()(),I.TgZ(4,"mat-checkbox",36)(5,"span"),I.SDv(6,38),I.qZA()()()),2&fe){const $e=I.oxw();I.Q6J("formGroup",$e.customDomainfundraiserTypeForm),I.xp6(1),I.Q6J("formControlName",$e.main_fundraiserType),I.xp6(3),I.Q6J("formControlName",$e.connected_fundraiserType)}}function Ne(fe,qe){1&fe&&(I.TgZ(0,"mat-label",39),I.SDv(1,40),I.qZA())}function tt(fe,qe){if(1&fe&&(I.TgZ(0,"mat-list-option",44),I._UZ(1,"img",45),I.TgZ(2,"div",46),I._uU(3),I.qZA()()),2&fe){const $e=qe.$implicit;I.Q6J("value",$e),I.xp6(1),I.Q6J("src",$e.image.src,I.LSH),I.xp6(2),I.hij(" ",$e.name," ")}}function We(fe,qe){if(1&fe){const $e=I.EpF();I.TgZ(0,"mat-selection-list",41,42),I.NdJ("selectionChange",function(ot){I.CHM($e);const ct=I.MAs(1),pt=I.oxw();return I.KtG(pt.onCategorySelectionChange(ot,ct))}),I.YNc(2,tt,4,3,"mat-list-option",43),I.qZA()}if(2&fe){const $e=I.oxw();I.xp6(2),I.Q6J("ngForOf",$e._categories)}}function ze(fe,qe){if(1&fe){const $e=I.EpF();I.TgZ(0,"div",47)(1,"button",48),I.NdJ("click",function(){I.CHM($e);const ot=I.oxw();return I.KtG(ot.clearAll())}),I.SDv(2,49),I.qZA()()}}function we(fe,qe){if(1&fe){const $e=I.EpF();I.TgZ(0,"mat-chip",50),I.NdJ("removed",function(){const ct=I.CHM($e).$implicit,pt=I.oxw();return I.KtG(pt.removeFromSelectedCategoryList(ct))}),I._UZ(1,"img",51),I.TgZ(2,"caption"),I._uU(3),I.qZA(),I._UZ(4,"img",52),I.qZA()}if(2&fe){const $e=qe.$implicit;I.xp6(1),I.Q6J("src",$e.image.src,I.LSH),I.xp6(2),I.hij(" ",$e.name," ")}}function Ye(fe,qe){if(1&fe){const $e=I.EpF();I.TgZ(0,"mat-card-footer",53)(1,"mat-progress-bar",54),I.NdJ("animationEnd",function(ot){I.CHM($e);const ct=I.oxw();return I.KtG(ct.progressAnimationEnd(ot))}),I.qZA()()}if(2&fe){const $e=I.oxw();I.xp6(1),I.Q6J("mode",$e.progressBarMode)("value",$e.progressbarValue)}}function te(fe,qe){if(1&fe&&(I.ynx(0),I._UZ(1,"app-fundraiser-card",62),I.BQk()),2&fe){const $e=qe.$implicit;I.xp6(1),I.Q6J("slug",$e.slug)("fundraiserCardData",$e.fundraiserCardData)}}function Se(fe,qe){if(1&fe&&(I.TgZ(0,"div",60),I.YNc(1,te,2,2,"ng-container",61),I.qZA()),2&fe){const $e=I.oxw(2);I.xp6(1),I.Q6J("ngForOf",$e._fundraiserCardDataList)}}function ke(fe,qe){1&fe&&(I.TgZ(0,"div",63)(1,"div",64),I._UZ(2,"img",65),I.qZA(),I.TgZ(3,"p",66),I.SDv(4,67),I.qZA()()),2&fe&&(I.xp6(2),I.Udp("width",400,"px")("margin-top","72","px"))}function Ge(fe,qe){1&fe&&(I.TgZ(0,"mat-icon"),I._UZ(1,"mat-spinner",73),I.qZA())}function Tt(fe,qe){if(1&fe){const $e=I.EpF();I.TgZ(0,"div",68)(1,"div",69)(2,"button",70),I.NdJ("click",function(){I.CHM($e);const ot=I.oxw(2);return I.KtG(ot.showMoreFundraiserCards())}),I.TgZ(3,"span"),I.SDv(4,71),I.qZA(),I.YNc(5,Ge,2,0,"mat-icon",72),I.qZA()()()}if(2&fe){const $e=I.oxw(2);I.xp6(2),I.Q6J("disabled",$e.isLoading),I.xp6(3),I.Q6J("ngIf",$e.isLoading)}}function Et(fe,qe){if(1&fe&&(I.ynx(0,55),I.TgZ(1,"div",56),I.YNc(2,Se,2,1,"div",57),I.YNc(3,ke,5,4,"div",58),I.qZA(),I._UZ(4,"br"),I.YNc(5,Tt,6,2,"div",59),I._UZ(6,"br"),I.BQk()),2&fe){const $e=I.oxw();I.xp6(2),I.Q6J("ngIf",null==$e._fundraiserCardDataList?null:$e._fundraiserCardDataList.length),I.xp6(1),I.Q6J("ngIf",!(null!=$e._fundraiserCardDataList&&$e._fundraiserCardDataList.length||$e.isLoading)),I.xp6(2),I.Q6J("ngIf",(null==$e._fundraiserCardDataList?null:$e._fundraiserCardDataList.length)&&$e.isMoreFundraiserExist)}}function H(fe,qe){1&fe&&I._UZ(0,"app-page-loader")}const S=[{path:"",pathMatch:"full",component:(()=>{class fe{constructor($e,et,ot,ct,pt,$t,It){this._searchService=$e,this.media=et,this.notificationService=pt,this.customDomainService=$t,this.router=It,this._unsubscribeAll=new r.x,this.isPageLoading=!0,this.organisation_fundraiserType=n._f,this.personal_fundraiserType=n.mV,this.main_fundraiserType=n.x5,this.connected_fundraiserType=n.OU,this.debounceDelay=1e3,this._categories=i.b,this.selectedCategories=[],this.currentSearchPage=1,this.isLoading=!1,this.progressBarMode="determinate",this.progressbarValue=0,this.isMoreFundraiserExist=!0,this.isCustomDomain=!1,this.searchFundraiserPlaceholder="Pretra\u017Ei prikuplja\u010De",this.customDomainType="",this.searchInputForm=ct.group({}),this.fundraiserTypeForm=ct.group({}),this.customDomainfundraiserTypeForm=ct.group({})}ngOnInit(){this.startLoading(),this.startQueryProgress(),this.setSearchControl(),this.setFundraiserTypeDefaultValues(),this.setCustomDomainFundraiserTypeDefaultValues(),this.customDomainService.getIsCustomDomain().subscribe($e=>{this.isCustomDomain=$e,this.showInitialDataOnDefaultParameters()})}ngOnDestroy(){this._unsubscribeAll.complete()}ngAfterViewInit(){this.searchInputForm?.controls?.searchCtrl?.valueChanges.pipe((0,m.D)(()=>(0,c.F)(this.debounceDelay)),(0,v.x)(($e,et)=>$e===et&&(this.cancelLoadingAndProgress(),!0))).subscribe($e=>{this.startLoading(),this.startQueryProgress(),this._searchService.setQueryString=$e||"",this.currentSearchPage=1,this._searchService.searchFundraiser(this._searchService.getSearchParams,this.isCustomDomain).pipe((0,C.R)(this._unsubscribeAll)).subscribe(et=>{this.startDeterminateProgress(),this._fundraiserCardDataList=this._searchService.getSearchFundraiserCardDataListElasticSearch(et?.data);let ot=this._fundraiserCardDataList?.length;this.isShowInfinitScroll(ot),this.finishDeterminateProgress()})}),this.fundraiserTypeForm.valueChanges.subscribe($e=>{this.setFundraiserTypePayload($e),this.startLoading(),this.startQueryProgress(),this._searchService.searchFundraiser(this._searchService.getSearchParams,this.isCustomDomain).pipe((0,C.R)(this._unsubscribeAll)).subscribe(et=>{this.startDeterminateProgress(),this._fundraiserCardDataList=this._searchService.getSearchFundraiserCardDataListElasticSearch(et?.data);let ot=this._fundraiserCardDataList?.length;this.isShowInfinitScroll(ot),this.finishDeterminateProgress()})}),this.customDomainfundraiserTypeForm.valueChanges.subscribe($e=>{this.setFundraiserTypePayload($e),this.startLoading(),this.startQueryProgress(),this._searchService.searchFundraiser(this._searchService.getSearchParams,this.isCustomDomain).pipe((0,C.R)(this._unsubscribeAll)).subscribe(et=>{this.startDeterminateProgress(),this._fundraiserCardDataList=this._searchService.getSearchFundraiserCardDataListElasticSearch(et?.data);let ot=this._fundraiserCardDataList?.length;this.isShowInfinitScroll(ot),this.finishDeterminateProgress()})}),this.isCustomDomain||this._categorySelector.selectionChange.pipe((0,m.D)(()=>(0,c.F)(this.debounceDelay))).pipe((0,C.R)(this._unsubscribeAll)).subscribe($e=>{this.startQueryProgress();let et=this.selectedCategories.map(ot=>ot.id).join(",");et!==this._searchService.getCategoryParamValue?(this._searchService.setCategory=et,this._searchService.searchFundraiser(this._searchService.getSearchParams,this.isCustomDomain).pipe((0,C.R)(this._unsubscribeAll)).subscribe(ot=>{this._fundraiserCardDataList=this._searchService.getSearchFundraiserCardDataListElasticSearch(ot?.data);let ct=this._fundraiserCardDataList?.length;this.isShowInfinitScroll(ct),this.startDeterminateProgress(),this.finishDeterminateProgress()})):this.cancelLoadingAndProgress()})}setFundraiserTypeDefaultValues(){this.fundraiserTypeForm.setControl(n._f,new l.p4(!1)),this.fundraiserTypeForm.setControl(n.mV,new l.p4(!1))}setSearchControl(){this.searchInputForm.setControl("searchCtrl",new l.p4)}setCustomDomainFundraiserTypeDefaultValues(){"main"==this.customDomainType?(this.customDomainfundraiserTypeForm.setControl(n.x5,new l.p4(!0)),this.customDomainfundraiserTypeForm.setControl(n.OU,new l.p4(!1))):"connected"==this.customDomainType?(this.customDomainfundraiserTypeForm.setControl(n.x5,new l.p4(!1)),this.customDomainfundraiserTypeForm.setControl(n.OU,new l.p4(!0))):(this.customDomainfundraiserTypeForm.setControl(n.x5,new l.p4(!0)),this.customDomainfundraiserTypeForm.setControl(n.OU,new l.p4(!0)))}extractDomainFromUrl($e){return $e.replace(/^(https?:\/\/)?(www\d?\.)?/,"").replace(/\/$/,"").split("/")[0]}showInitialDataOnDefaultParameters(){var $e=this;return(0,d.Z)(function*(){if($e.isCustomDomain){let et=$e.extractDomainFromUrl(window.location.href),ct=yield $e._searchService.getUserIDbyCustomDomain(et);if($e.customDomainType=history.state.type||"",0!=ct){let pt=new P.LE({fromObject:{type:$e.customDomainType,page:0,user_id:ct}});$e._searchService.setParam=pt}}else $e._searchService.setParam=$e._searchService.getDefaultParams;$e.setCustomDomainFundraiserTypeDefaultValues(),$e._searchService.searchFundraiser($e._searchService.getDefaultParams,$e.isCustomDomain).subscribe(et=>{$e.scrollUp(),$e._fundraiserCardDataList=$e._searchService.getSearchFundraiserCardDataListElasticSearch(et.data),$e.startDeterminateProgress(),$e.finishDeterminateProgress(),$e.isPageLoading=!1})})()}setFundraiserTypePayload($e){!0!==$e[n.mV]||!1!==$e[n._f]?!0!==$e[n._f]||!1!==$e[n.mV]?!0!==$e[n.x5]||!1!==$e[n.OU]?!1!==$e[n.x5]||!0!==$e[n.OU]?!0===$e[n.x5]&&!0===$e[n.OU]||!1===$e[n.x5]&&!1===$e[n.OU]?this._searchService.setTypeBothCustomDomain():this._searchService.setTypeBoth():this._searchService.setTypeConnected():this._searchService.setTypeMain():this._searchService.setTypeOrganisation():this._searchService.setTypePersonal()}progressAnimationEnd($e){this.isLoading=!1}onCategorySelectionChange($e,et){this.startLoading(),this.startIndeterminateProgress();let ot=et.selectedOptions.isSelected($e.options[0]),ct=$e.options[0].value;if(ot)this.selectedCategories.push(ct);else{let pt=this.selectedCategories.indexOf(ct);pt>=0&&this.selectedCategories.splice(pt,1)}this.closeSideBar()}removeFromSelectedCategoryList($e){this.startLoading(),this.startQueryProgress();let et=this._categorySelector.options.find(ct=>ct.value===$e);this._categorySelector.selectedOptions.deselect(et);let ot=this.selectedCategories.indexOf($e);ot>=0&&this.selectedCategories.splice(ot,1),this._searchService.setCategory=this.selectedCategories.map(ct=>ct.id).join(","),this._searchService.searchFundraiser(this._searchService.getSearchParams,this.isCustomDomain).pipe((0,C.R)(this._unsubscribeAll)).subscribe(ct=>{this._fundraiserCardDataList=this._searchService.getSearchFundraiserCardDataListElasticSearch(ct?.data);let pt=this._fundraiserCardDataList?.length;this.isShowInfinitScroll(pt),this.startDeterminateProgress(),this.finishDeterminateProgress()})}showMoreFundraiserCards(){this.startLoading(),this.startQueryProgress(),this.setParamForNextPage(),this._searchService.searchFundraiser(this._searchService.getSearchParams,this.isCustomDomain).pipe((0,C.R)(this._unsubscribeAll)).subscribe($e=>{let et=this._searchService.getSearchFundraiserCardDataListElasticSearch($e?.data),ot=et?.length;ot&&(this._fundraiserCardDataList=[...this._fundraiserCardDataList,...et]),this.checkIfInfiniteScrollEnded(ot),this.startDeterminateProgress(),this.finishDeterminateProgress()})}clearAll(){this._categorySelector.deselectAll(),this.selectedCategories=[],this._searchService.setParam=this._searchService.getDefaultParams,this.searchInputForm?.controls.searchCtrl.value?this.searchInputForm.reset():(this.startLoading(),this.startQueryProgress(),this._searchService.searchFundraiser(this._searchService.getSearchParams,this.isCustomDomain).pipe((0,C.R)(this._unsubscribeAll)).subscribe($e=>{this._fundraiserCardDataList=this._searchService.getSearchFundraiserCardDataListElasticSearch($e?.data),this.startDeterminateProgress(),this.finishDeterminateProgress(),this.resetInfiniteScroll()}))}setParamForNextPage(){const $e=this.currentSearchPage++;this._searchService.setPage=$e}checkIfInfiniteScrollEnded($e){$e<this._searchService.DEFAULT_PAGE_SIZE?this.stopInfiniteScroll():this.resetInfiniteScroll()}isShowInfinitScroll($e){$e<this._searchService.DEFAULT_PAGE_SIZE?this.isMoreFundraiserExist=!1:this.resetInfiniteScroll()}resetInfiniteScroll(){this.isMoreFundraiserExist=!0}stopInfiniteScroll(){this.isMoreFundraiserExist=!1,this.notificationService.openNotification("Nema podataka za prikaz.","OK","error")}startLoading(){this.isLoading=!0}startIndeterminateProgress(){this.progressBarMode="indeterminate",this.startLoading()}startQueryProgress(){this.progressBarMode="query"}startDeterminateProgress(){this.progressBarMode="determinate",this.progressbarValue=0}cancelLoadingAndProgress(){this.progressBarMode="determinate",this.progressbarValue=100,this.isLoading=!1}finishDeterminateProgress(){let $e=(0,E.H)(100).subscribe(et=>{this.progressbarValue=100,$e.unsubscribe()})}isDirty(){return this.selectedCategories.length||this.searchInputForm?.controls?.searchCtrl?.value}closeSideBar(){this.media.isActive("xs")&&this.drawer.close()}scrollUp(){window.scroll({top:0,left:0,behavior:"smooth"})}}return fe.\u0275fac=function($e){return new($e||fe)(I.Y36(n.oD),I.Y36(q.u0),I.Y36(D.a),I.Y36(l.QS),I.Y36(M.g),I.Y36(T.c),I.Y36(e.F0))},fe.\u0275cmp=I.Xpm({type:fe,selectors:[["app-search"]],viewQuery:function($e,et){if(1&$e&&(I.Gf(w,5),I.Gf(k,5)),2&$e){let ot;I.iGM(ot=I.CRH())&&(et._categorySelector=ot.first),I.iGM(ot=I.CRH())&&(et.drawer=ot.first)}},decls:36,vars:15,consts:function(){let qe,$e,et,ot,ct,pt,$t,It,fr,yt,dr;return qe="Pretra\u017Ei prikuplja\u010De",$e="Vrsta Sakuplja\u010D Sredstava",et="Rezultati pretrage",ot="Organizacija bez profita",ct="Osobno",pt="Glavno Prikupljanje Sredstava",$t="Povezano Prikupljanje Sredstava",It="Kategorija",fr="O\u010Disti sve",yt="Na\u017Ealost, nismo prona\u0161li nijedno prikupljanje sredstava.",dr="Prika\u017Ei Vi\u0161e",[["id","section-search",3,"ngClass"],["fxLayout","row","id","search-header","name","search-header","fxLayoutGap.gt-xs","20px","ngClass.sm","margin-top","ngClass.xs","margin-top",1,"m-l-xs","m-t-xs","m-r-xs"],["fxFlex.xs","80%","fxFlex.gt-xs","100%"],["appearance","outline","color","primary","fxFill",""],qe,["id","search-input","name","searchInput","role","search",3,"formGroup"],["matInput","","type","search","autofocus","","formControlName","searchCtrl",3,"placeholder","ngModelChange"],["matSuffix","","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/search/public"],[3,"marginLeft",4,"ngIf"],["id","search-side-drawer",1,"search-drawer-container",3,"hasBackdrop"],[3,"mode","opened"],["drawer",""],$e,["id","fundraiserType","name","fundraiserType",3,"formGroup",4,"ngIf"],["id","customDomainfundraiserType","name","customDomainfundraiserType",3,"formGroup",4,"ngIf"],["id","category","class","mat-subheading-2",4,"ngIf"],["dense","","id","category-selection","class","category-selection","color","primary",3,"selectionChange",4,"ngIf"],["id","drawer-content","name","drawer-content"],[1,"mat-elevation-z0"],["fxFill","","fxLayout","row","fxFlex.md","100","fxFlex.sm","100","fxFlex.xs","100","fxLayoutAlign","space-between center"],["id","search-result-title",1,"mat-body-2"],et,["id","clear-all","name","clear-all",4,"ngIf"],["aria-label","category selection","id","chip-list","name","chip-list",1,"whydonate-light"],["id","chip","name","chip","class","mat-chip-list-stacked my-chip","color","accent","selected","","removable","true",3,"removed",4,"ngFor","ngForOf"],["id","progress-bar","name","progress-bar",4,"ngIf"],["id","search-result","name","search-result",4,"ngIf"],["loading",""],["mat-fab","",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/filterWhite/public"],["id","fundraiserType","name","fundraiserType",3,"formGroup"],["color","primary","id","nonProfit",1,"block-checkbox",3,"formControlName"],ot,["color","primary","id","personal",1,"block-checkbox",3,"formControlName"],ct,["id","customDomainfundraiserType","name","customDomainfundraiserType",3,"formGroup"],["color","primary",1,"block-checkbox",3,"formControlName"],pt,$t,["id","category",1,"mat-subheading-2"],It,["dense","","id","category-selection","color","primary",1,"category-selection",3,"selectionChange"],["categorySelector",""],["name","category",3,"value",4,"ngFor","ngForOf"],["name","category",3,"value"],["mat-list-icon","",3,"src"],["mat-line","","name","categoryname","id","category-name"],["id","clear-all","name","clear-all"],["mat-button","","color","accent",3,"click"],fr,["id","chip","name","chip","color","accent","selected","","removable","true",1,"mat-chip-list-stacked","my-chip",3,"removed"],["matChipAvatar","",3,"src"],["matChipRemove","","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/close/public"],["id","progress-bar","name","progress-bar"],[3,"mode","value","animationEnd"],["id","search-result","name","search-result"],["id","search-results"],["fxFlex","100%","fxLayout","row wrap","fxFlex.md","100","fxFlex.sm","100","fxFlex.xs","100","fxLayoutAlign","center start","class","fundraiser-card",4,"ngIf"],["id","fundraizer_empty-section","name","fundraizer_empty-section","fxFlex","100%","fxLayout","column","fxLayoutAlign","center center","fxLayoutGap","20px",4,"ngIf"],["id","view-more","name","view-more",4,"ngIf"],["fxFlex","100%","fxLayout","row wrap","fxFlex.md","100","fxFlex.sm","100","fxFlex.xs","100","fxLayoutAlign","center start",1,"fundraiser-card"],[4,"ngFor","ngForOf"],["id","fundraiser-card","name","fundraiser-card",3,"slug","fundraiserCardData"],["id","fundraizer_empty-section","name","fundraizer_empty-section","fxFlex","100%","fxLayout","column","fxLayoutAlign","center center","fxLayoutGap","20px"],["fxLayout","column","fxLayoutAlign","center center"],["mat-card-image","","id","fundraizer_empty--image","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/search_empty/public","loading","lazy","alt","Requested fundraiser Not Found image"],["id","fundraizer_empty--text","name","fundraizer_empty"],yt,["id","view-more","name","view-more"],["fxFlex","100%","fxLayout","row","fxFlex.md","100","fxFlex.sm","100","fxFlex.xs","100","fxLayoutAlign","space-around center",1,"m-r-xl"],["id","view-more-button","name","view-more-button","mat-flat-button","","color","accent",3,"disabled","click"],dr,[4,"ngIf"],["color","primary","diameter","20"]]},template:function($e,et){1&$e&&(I.TgZ(0,"div",0)(1,"div",1)(2,"p",2)(3,"mat-form-field",3)(4,"mat-label"),I.SDv(5,4),I.qZA(),I.TgZ(6,"form",5)(7,"input",6),I.NdJ("ngModelChange",function(){return et.startIndeterminateProgress()}),I.qZA()(),I._UZ(8,"img",7),I.qZA()(),I.YNc(9,x,3,2,"p",8),I.qZA(),I.TgZ(10,"mat-drawer-container",9)(11,"mat-drawer",10,11)(13,"h3"),I.SDv(14,12),I.qZA(),I.YNc(15,z,7,3,"form",13),I.YNc(16,j,7,3,"form",14),I._UZ(17,"br"),I.YNc(18,Ne,2,0,"mat-label",15),I.YNc(19,We,3,1,"mat-selection-list",16),I.qZA(),I.TgZ(20,"mat-drawer-content",17)(21,"mat-card",18)(22,"mat-card-subtitle")(23,"div",19)(24,"div",20),I.SDv(25,21),I.qZA(),I.YNc(26,ze,3,0,"div",22),I.qZA()(),I.TgZ(27,"mat-card-content")(28,"mat-chip-list",23),I.YNc(29,we,5,2,"mat-chip",24),I.qZA()(),I.YNc(30,Ye,2,2,"mat-card-footer",25),I.qZA(),I._UZ(31,"mat-divider")(32,"p"),I.YNc(33,Et,7,3,"ng-container",26),I.qZA()()(),I.YNc(34,H,1,0,"ng-template",null,27,I.W1O)),2&$e&&(I.Q6J("ngClass",et.isCustomDomain?"branding":""),I.xp6(6),I.Q6J("formGroup",et.searchInputForm),I.xp6(1),I.s9C("placeholder",et.searchFundraiserPlaceholder),I.xp6(2),I.Q6J("ngIf",!!et.media.isActive("xs")),I.xp6(1),I.Q6J("hasBackdrop",!!et.media.isActive("xs")),I.xp6(1),I.Q6J("mode",et.media.isActive("xs")?"over":"side")("opened",!et.media.isActive("xs")),I.xp6(4),I.Q6J("ngIf",!et.isCustomDomain),I.xp6(1),I.Q6J("ngIf",et.isCustomDomain),I.xp6(2),I.Q6J("ngIf",!et.isCustomDomain),I.xp6(1),I.Q6J("ngIf",!et.isCustomDomain),I.xp6(7),I.Q6J("ngIf",et.isDirty()),I.xp6(3),I.Q6J("ngForOf",et.selectedCategories),I.xp6(1),I.Q6J("ngIf",et.isLoading),I.xp6(3),I.Q6J("ngIf",!et.isPageLoading))},dependencies:[t.mk,t.sg,t.O5,F.FC,le.v_,le.$V,le.nX,V.k0,l._Y,l.Fj,l.JJ,l.JL,l.sg,l.u,de.jA,de.kh,de.LW,ye.S$,ye.Qi,ye._K,ye.Xh,ye.k0,Ee.d,Le.X2,ge.ap,ge.kh,ge.O$,ue.eB,ee.ir,ee.lw,ee.Y6,ee.$d,se.Hw,W.sN,L.eI,he.xw,he.SQ,he.Wh,he.s9,he.yH,_e.oO,Z.g,Te.f]}),fe})()}];let K=(()=>{class fe{}return fe.\u0275fac=function($e){return new($e||fe)},fe.\u0275mod=I.oAB({type:fe}),fe.\u0275inj=I.cJS({imports:[e.Bz.forChild(S),e.Bz]}),fe})();var Q=s(25384),B=s(35466);let re=(()=>{class fe{}return fe.\u0275fac=function($e){return new($e||fe)},fe.\u0275mod=I.oAB({type:fe}),fe.\u0275inj=I.cJS({imports:[t.ez,K,Q.q,B.m,l.u5,l.UX]}),fe})()},39862:(St,be,s)=>{"use strict";s.d(be,{OU:()=>i,_f:()=>v,mV:()=>C,oD:()=>P,x5:()=>n});var t=s(48046),e=s(45734),d=s(9206),l=s(73991),r=s(45710),c=s(13009),E=s(21704),m=s(32946);const v="organisation",C="personal",n="main",i="connected";let P=(()=>{class I{constructor(D,M,T,F,le){this._APIService=D,this._FundraiserCardService=M,this.accountService=T,this.customDomainService=F,this.httpClient=le,this.DEFAULT_PAGE_SIZE=20,this.searchAPI="fundraiser/search/",this.searchAPICustomDomain="custom-domain/search/",this.popularAPI="fundraiser/search/popular/",this.defaultParams=new e.LE({fromObject:{type:"personal,organisation",page:0,user_id:0}}),this.customDomaindefaultParams=new e.LE({fromObject:{type:"",page:0,user_id:0}}),this.params=new e.LE}get getDefaultParams(){return this.defaultParams}get getCustomDomainDefaultParams(){return this.customDomaindefaultParams}get getSearchParams(){return this.params}get getCategoryParamValue(){return this.params.get("category")||""}set setParam(D){this.params=D}set setQueryString(D){this.params=this.params.set("filter",`${D}`)}set setCategory(D){this.params=this.params.set("category",D)}set setPage(D){this.params=this.params.set("page",D)}setTypeOrganisation(){this.params=this.params.set("type",v)}setTypePersonal(){this.params=this.params.set("type",C)}setTypeMain(){this.params=this.params.set("type",n)}setTypeConnected(){this.params=this.params.set("type",i)}setTypeBoth(){this.params=this.params.set("type",`${C},${v}`)}setTypeBothCustomDomain(){this.params=this.params.set("type","")}searchFundraiser(D,M=!1){return M?this.httpClient.get(d.N.FUNDRAISER_API_V2+this.searchAPICustomDomain,{params:D=this.params}):this._APIService.tempGetNew(this.searchAPI,{params:D})}getUserIDbyCustomDomain(D){var M=this;return(0,t.Z)(function*(){const T=d.N.CUSTOM_DOMAIN_API_V2;return(yield M.httpClient.get(T+"custom_domain/verification",{params:{domain:D}}).toPromise())?.data?.id||0})()}getPopularFundraiser(){let D=new e.LE({fromObject:{limit:10,language:this.accountService.getLocaleId()}});return this._APIService.tempGetNew(this.popularAPI,{params:D})}getSearchFundraiserCardDataList(D){return this._FundraiserCardService.getFundraiserCardDataList(D)}getSearchFundraiserCardDataListElasticSearch(D){return this._FundraiserCardService.getFundraiserCardDataListElasticSearch(D)}}return I.\u0275fac=function(D){return new(D||I)(l.LFG(r.t),l.LFG(c.a),l.LFG(E.B),l.LFG(m.c),l.LFG(e.eN))},I.\u0275prov=l.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},88748:(St,be,s)=>{"use strict";s.d(be,{m:()=>c});var t=s(45734),e=s(9206),d=s(73991),l=s(21704),r=s(45710);let c=(()=>{class E{constructor(v,C,n){this._accountService=v,this._apiService=C,this.http=n,this.API_URL=e.N.apiUrl,this.WALLET_URL=e.N.wallet_url,this.ACCOUNT_URL=e.N.ACCOUNT_API_V2,this.ACCOUNTING_URL=e.N.ACCOUNTING_API,this.transactionBalanceAPI="accounting/transaction/balance/",this.transactionListsAPI="accounting/transaction/",this.donationGivenAPI="donation/order/donor/",this.balanceTotal="balance",this.settlementOpp="account/settlements/opp",this.payouts="account/payouts",this.settlementById="/settlement_by_id",this.withdrawalPayout="create-withdrawal",this.transactionsListOpp="accounting/transactions/opp",this.withdrawalOpp="accounting/withdrawal/opp",this.payoutScheduleAPI="account/stripe/payout/schedule",this.PaymentData=[{id:"1234112",status:"Pending"},{id:"1234122",status:"Pending"},{id:"1234222",status:"Refund"},{id:"1234322",status:"Approved"},{id:"1234422",status:"Approved"},{id:"1234522",status:"Pending"}],this.header=this._accountService.getHeaders()}getPaymentStatus(){return this.PaymentData}getTotalBalance(v){return this.header=this._accountService.getHeaders(),this.http.get(this.WALLET_URL+this.balanceTotal,{headers:this.header,params:{currency:v}})}getStripeBalance(v){return this.header=this._accountService.getHeaders(),this.http.get(e.N.ACCOUNT_API_V2+"account/stripe/balance",{headers:this.header,params:{currency:v}})}getSettlementsOpp(v,C){return this.header=this._accountService.getHeaders(),this.http.get(this.ACCOUNT_URL+this.settlementOpp+`?page=${v}&limit=${C}`,{headers:this.header})}getWithdrawalOpp(v,C){return this.header=this._accountService.getHeaders(),this.http.get(this.ACCOUNTING_URL+this.withdrawalOpp+`?settlement_id=${v}&specification_id=${C}`,{headers:this.header})}getPayoutSchedule(){return this.header=this._accountService.getHeaders(),this.http.get(`${this.ACCOUNT_URL}${this.payoutScheduleAPI}`,{headers:this.header})}getPayouts(v,C){return this.header=this._accountService.getHeaders(),this.http.get(this.ACCOUNT_URL+this.payouts+`?page=${v}&limit=${C}`,{headers:this.header})}getSettlementsByID(v){return this.header=this._accountService.getHeaders(),this.http.post(this.WALLET_URL+this.settlementById,v,{headers:this.header})}getTransactionBalance(){return this.header=this._accountService.getHeaders(),this._apiService.get(this.transactionBalanceAPI,{headers:this.header})}createPayoutWithdrawal(v){return this.header=this._accountService.getHeaders(),this.http.post(this.WALLET_URL+this.withdrawalPayout,v,{headers:this.header})}donationGiven(v){return this.header=this._accountService.getHeaders(),this._apiService.get(this.donationGivenAPI,{headers:this.header,params:v})}getDonationReceivedObj(v){return{count:v.count,next:v.next,donationReceived:this.filterDonationReceivedData(v)}}filterDonationReceivedData(v){return v.results}getAccountingTransactions(v=new t.LE({fromObject:{filter:"",sort_col:"created_at",sort_direction:"asc",page:1,page_size:20,from_date:0,to_date:(new Date).getTime()}})){return this.header=this._accountService.getHeaders(),this.http.get(`${this.ACCOUNTING_URL}accounting/transactions`,{headers:this.header,params:v})}transaction(v=new t.LE({fromObject:{filter:"",sort_col:"created_at",sort_direction:"asc",page:1,page_size:20,from_date:0,to_date:(new Date).getTime(),currency:""}})){return this.header=this._accountService.getHeaders(),this.http.get(`${this.ACCOUNTING_URL}accounting/transactions`,{headers:this.header,params:v})}payoutTransaction(v,C,n){return this.header=this._accountService.getHeaders(),this.http.get(`${this.ACCOUNTING_URL}accounting/payout/transactions?page=${v}&limit=${C}&paymentId=${n}`,{headers:this.header})}getTransactionsOpp(v,C,n,i){return this.header=this._accountService.getHeaders(),this.http.get(this.ACCOUNTING_URL+this.transactionsListOpp+`?page=${n}&limit=${i}&settlement_id=${v}&specification_id=${C}`,{headers:this.header})}transactionGivenObj(v){return{count:v.count,next:v.next,donationReceived:this.transactionGivenData(v)}}transactionGivenData(v){return v.results}transactionLists(v=new t.LE({fromObject:{filter:"",sort_col:"created_at",sort_direction:"asc",page:1,page_size:20,from_date:0,to_date:(new Date).getTime()}})){return this.header=this._accountService.getHeaders(),this._apiService.get(this.donationGivenAPI,{headers:this.header,params:v})}payoutStripe(v,C){return this.header=this._accountService.getHeaders(),this.http.post(e.N.ACCOUNT_API_V2+"account/stripe/payout",{amount:v,currency:C},{headers:this.header})}}return E.\u0275fac=function(v){return new(v||E)(d.LFG(l.B),d.LFG(r.t),d.LFG(t.eN))},E.\u0275prov=d.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})()},46480:(St,be,s)=>{"use strict";s.d(be,{C:()=>c});var t=s(9206),e=s(93216),d=s(73991),l=s(21704),r=s(45734);let c=(()=>{class E{constructor(v,C){this._accountService=v,this.http=C,this.profileApi="account/profile/",this.updateTextAPI="fundraiser/email/text",this.testEmailApi="account/test/email/",this.profileData={},this.isReceived=new e.X(!1),this.isReceived$=this.isReceived.asObservable(),this.API_URL=t.N.apiUrl,this.FUNDRAISER_API_V2=t.N.FUNDRAISER_API_V2,this.ACCOUNT_API_V2=t.N.ACCOUNT_API_V2,this.emailEventName=["donation successful","user register event","donation received","fundraiser connected","fundraiser published","fundraiser ended"]}getIsReceived(){return this.isReceived$}setIsReceived(v){return this.isReceived.next(v)}set setProfileObj(v){this.profileData=v}get getProfileObj(){return this.profileData}get getBrandingObj(){return{isDefault:this.profileData?.is_default,customLogo:this.profileData?.custom_logo||"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/WhyDonatesSVG/public",cardShadow:this.profileData?.card_shadow||1,primaryColor:this.profileData?.primary_color||"#32bf55",secondaryColor:this.profileData?.secondary_color||"#363396",customFont:this.profileData?.fonts||"Roboto"}}saveCustomBranding(v){return this.put(v)}set setcustomEmailObj(v){this.customEmail=v}get getCustomEmailObj(){let v=this.getProfileObj;return this.customEmail={customBranding:v?.apply_custom_branding,customLogo:v?.custom_logo||"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/WhyDonatesSVG/public",primaryColor:v?.primary_color||"#32bf55",secondaryColor:v?.secondary_color||"#363396",thankYouFlag:v?.thank_you_donor,thankYouMessage:v?.thank_you_donor_message,registerFlag:v?.thank_you_register,registerMessage:v?.thank_you_register_message,donationReceivedFlag:v?.donation_received,donationReceivedMessage:v?.donation_received_message,fundraiserCreatedFlag:v?.connected_fundraisers,fundraiserCreatedMessage:v?.connected_fundraisers_message,fundraiserPublishedFlag:v?.fundraiser_published,fundraiserPublishedMessage:v?.fundraiser_published_message,fundraiserClosedFlag:v?.fundraiser_closed,fundraiserClosedMessage:v?.fundraiser_closed_message},this.customEmail}get getEmailCustomBrandingObj(){return{primaryColor:this.profileData?.primary_color||"#32bf55",secondaryColor:this.profileData?.secondary_color||"#363396"}}saveCustomEmail(v,C){let i=Object.assign(C,{id:v}),P=this._accountService.getHeaders();return this.http.put(this.FUNDRAISER_API_V2+this.updateTextAPI,i,{headers:P})}applyCustomBrandingToEmail(v){let n=this._accountService.getHeaders();return this.http.put(t.N.ACCOUNT_API_V2+"account/custom_branding_to_email/update",{apply_custom_branding_to_email:v},{headers:n})}calculateCardShadow(v){let C=Number(v);return C>3?"4":C>1?"2":"1"}sendTestEmail(v,C,n){let i={event:this.getEventName(v),title:"My test fundraiser",message:C};return!C&&delete i.message,this.post(i)}getEventName(v){return this.emailEventName[v]}put(v){let C=this._accountService.getHeaders();return this.http.put(this.API_URL+this.profileApi,v,{headers:C})}receipt_message(v){let C=this._accountService.getHeaders();return this.http.put(t.N.ACCOUNTING_API+"accounting/receipt",v,{headers:C})}post(v){let C=this._accountService.getHeaders();return this.http.post(this.ACCOUNT_API_V2+this.testEmailApi,v,{headers:C})}convertBase64toBlob(v,C="image/png",n=512){let i=v.replace(/^data:image\/(png|jpg|jpeg|webp);base64,/,"");const P=atob(i),I=P.length,q=Math.ceil(I/n),D=new Array(q);for(let T=0;T<q;++T){const F=T*n,le=Math.min(F+n,I),V=new Array(le-F);for(let de=F,ye=0;de<le;++ye,++de)V[ye]=P[de].charCodeAt(0);D[T]=new Uint8Array(V)}return new Blob(D,{type:C})}}return E.\u0275fac=function(v){return new(v||E)(d.LFG(l.B),d.LFG(r.eN))},E.\u0275prov=d.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})()},80177:(St,be,s)=>{"use strict";s.d(be,{s:()=>m});var t=s(45734),e=s(93216),d=s(9206),l=s(43113),r=s(73991),c=s(21704),E=s(45710);let m=(()=>{class v{constructor(n,i,P){this._accountService=n,this._apiService=i,this.http=P,this.API_URL=d.N.apiUrl,this.ACCOUNT_API_V2=d.N.ACCOUNT_API_V2,this.DONATION_URL=d.N.DONATION_API_V2,this.PROJECT_URL=d.N.FUNDRAISER_API_V2,this.NOTIF_URL=d.N.fundraiser_features_url,this.FUNDRAISER_URL=d.N.fundraiser_url,this.stopRecurringDonationAPI="donation/stripe/customer/portal",this.profileAPI="account/profile/",this.transactionBalanceAPI="accounting/transaction/balance/",this.userFundraiserAPI="fundraiser/get_user_fundraisers_status/",this.donationReceivedAPI="donation/order/receiver/",this.donationGivenAPI="donation/order/donor/",this.donationRecurringReceivedAPI="donation/recurring/received",this.donationRecurringGivenAPI="donation/recurring/given",this.cancelRecurringAPI="donation/order/cancel_periodic",this.fundraiserSummary="fundraiser/summary",this.donationSummary="donation/summary",this.myFundraisers="fundraiser/all/fundraiser/",this.fundraisersList="qr/fundraiser/list",this.downloadCsv="donation/download",this.totalDonationSummary="donation/order/total",this.objectSource=new e.X(Object),this.currentObject=this.objectSource.asObservable(),this.fundraiserSummary$=null,this.CACHE_DURATION=1e4,this.header=this._accountService.getHeaders()}changeObj(n){this.objectSource.next(n)}getTransactionBalance(){return this.header=this._accountService.getHeaders(),this._apiService.get(this.transactionBalanceAPI,{headers:this.header})}getMyfundraisersAll(n){return this.header=this._accountService.getHeaders(),this.http.get(`${this.FUNDRAISER_URL}${this.myFundraisers}`,{headers:this.header,params:n})}getFundraisersList(){return this.header=this._accountService.getHeaders(),this.http.get(`${this.FUNDRAISER_URL}${this.fundraisersList}`,{headers:this.header})}filterProfileCardData(n,i){return{image:n?.profile?.image||"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/production/profile_image/default/public",name:n?.profile?.name||"Hello, User",balance:parseFloat(i).toFixed(2)||0}}filterStepsToDoData(n,i,P){return[{name:"Stvori ra\u010Dun",status:!0,showStep:!0},{name:"Zapo\u010Deti sakuplja\u010D sredstava",status:i?.count>0,showStep:!0},{name:"Dodaj bankovni ra\u010Dun",status:!!n?.has_bank_information,showStep:!!n?.profile?.is_receiver},{name:"Prilagodi brandiranje",status:!n?.profile?.is_default,showStep:!!n?.profile?.is_receiver},{name:"Napravi donaciju",status:P?.count>0,showStep:i?.count>0}]}getTotalDonationSummary(n){const i=new t.LE({fromObject:{data:n}});return this.header=this._accountService.getHeaders(),this.http.get(d.N.DONATION_API_V2+this.totalDonationSummary,{headers:this.header,params:i})}getDonationDownloadCsvData(n,i,P,I,q){const D=new t.LE({fromObject:{from_date:n,to_date:i,language_code:P||"en",filter:I||"",data:q}});return this.header=this._accountService.getHeaders(),this.http.get(d.N.DONATION_API_V2+this.downloadCsv,{headers:this.header,params:D})}getDonationReceived(n=new t.LE({fromObject:{filter:"",sort_col:"created_at",sort_direction:"asc",page:1,page_size:20,from_date:0,to_date:(new Date).getTime(),currency:"eur"}})){return this.header=this._accountService.getHeaders(),this.http.get(d.N.DONATION_API_V2+this.donationReceivedAPI,{headers:this.header,params:n})}getDonationReceivedObj(n){return{count:n?.data?.count||0,next:n?.data?.next,donationReceived:this.filterDonationReceivedData(n?.data)}}filterDonationReceivedData(n){return n.results}getDonationGiven(n=new t.LE({fromObject:{filter:"",sort_col:"created_at",sort_direction:"asc",page:1,page_size:20,from_date:0,to_date:(new Date).getTime(),currency:"eur"}})){return this.header=this._accountService.getHeaders(),this.http.get(d.N.DONATION_API_V2+this.donationGivenAPI,{headers:this.header,params:n})}getDonationGivenObj(n){return{count:n?.data?.count||0,next:n?.data?.next,donationGiven:this.filterDonationGivenData(n?.data)}}filterDonationGivenData(n){return n.results}getRecurringReceivedDonation(n=new t.LE({fromObject:{language_code:"en",page:1,limit:20,from_date:0,to_date:Math.floor(Date.now()/1e3),filter:"",currency:"eur"}})){return this.header=this._accountService.getHeaders(),this.http.get(this.DONATION_URL+this.donationRecurringReceivedAPI,{headers:this.header,params:n})}getRecurringReceivedDonationObj(n){return{count:n?.data?.result?.total||0,next:n?.next,donationRecurringReceived:this.filterRecurringReceivedDonationData(n)}}filterRecurringReceivedDonationData(n){return n.data?.result?.result}getRecurringGivenDonation(n=new t.LE({fromObject:{language_code:"en",page:1,limit:20,from_date:0,to_date:Math.floor(Date.now()/1e3),filter:"",currency:"eur"}})){return this.header=this._accountService.getHeaders(),this.http.get(this.DONATION_URL+this.donationRecurringGivenAPI,{headers:this.header,params:n})}getRecurringGivenDonationObj(n){return{count:n?.data?.result?.total||0,next:n?.next,donationRecurringGiven:this.filterRecurringGivenDonationData(n)}}filterRecurringGivenDonationData(n){return n.data.result?.result}cancelRecurringDonation(n){let i={id:n};return this.header=this._accountService.getHeaders(),this.http.post(this.API_URL+this.cancelRecurringAPI,i,{headers:this.header})}stopRecurringDonationRecieved(n){const i=window.location.href;let P=this._accountService.getHeaders();return this.http.post(d.N.DONATION_API_V2+this.stopRecurringDonationAPI,{subscription_id:n,return_url:i},{headers:P})}getFundraiserSummary(){if(!this.fundraiserSummary$){const n={headers:this._accountService.getHeaders()};this.fundraiserSummary$=this.http.get(this.PROJECT_URL+this.fundraiserSummary,n).pipe((0,l.d)(1)),this.setCacheTimeout("fundraiserSummary")}return this.fundraiserSummary$}setCacheTimeout(n){"fundraiserSummary"===n&&(this.fundraiserSummaryCacheTimeout&&clearTimeout(this.fundraiserSummaryCacheTimeout),this.fundraiserSummaryCacheTimeout=setTimeout(()=>{this.fundraiserSummary$=null},this.CACHE_DURATION))}clearCache(){this.fundraiserSummary$=null,this.fundraiserSummaryCacheTimeout&&(clearTimeout(this.fundraiserSummaryCacheTimeout),this.fundraiserSummaryCacheTimeout=null)}getDonationSummary(){let n={headers:this._accountService.getHeaders()};return this.http.get(this.DONATION_URL+this.donationSummary,n)}downloadCSV(n,i){const P=encodeURI(n),I=document.createElement("a");I.setAttribute("href",P),I.setAttribute("download",`${i}.csv`),I.innerHTML="Click Here to download",document.body.appendChild(I),I.click()}}return v.\u0275fac=function(n){return new(n||v)(r.LFG(c.B),r.LFG(E.t),r.LFG(t.eN))},v.\u0275prov=r.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},63953:(St,be,s)=>{"use strict";s.r(be),s.d(be,{ProfileModule:()=>$r});var t=s(17774),e=s(64886),d=s(68264),l=s(30003),r=s(73991),c=s(84531),E=s(81338),m=s(1911),v=s(88748),C=s(80177),n=s(21704),i=s(43178),P=s(83454);function I(Fe,er){1&Fe&&r._UZ(0,"app-stripe-notification-banner")}let q=(()=>{class Fe{constructor(pe,dt,jt,Ir,Ur,En,Fn,qn,hi,_i){this._route=pe,this.router=dt,this._changeDetectorRef=jt,this._media=Ir,this._profileService=Ur,this._bankService=En,this._balanceService=Fn,this._dashboardService=qn,this._accountService=hi,this.currencyService=_i,this._unsubscribeAll=new d.x,this.isReceiver=!1,this.profileLoader=!1,this.verificationIdentityCheck=!1,this.stripeNotificationCheck=!0,this.stripeStatus={},this.showStripeNotificationBanner=!0,this.routeSelected="account",this.sub=this._route.data.subscribe(gi=>this.routeSelected=gi.route),this.hideSideBar=!0,this.profile_routes=[{name:"Detalji Ra\u010Duna",route:"account",id:"personalDetails"},{name:"Postavke isplate",route:"payout-settings",id:"payout-settings"},{name:"API klju\u010D",route:"api",id:"apiKey"},{name:"Postavke E-po\u0161te",route:"email",id:"emailSettings"},{name:"Isklju\u010Di Ra\u010Dun",route:"deactivate",id:"deactiveAccount"}]}ngOnInit(){this.currency=this.currencyService.getSelectedCurrency(),this.currencyService.selectedCurrency.subscribe(pe=>{this._accountService.checkHeaders()&&(this.currency=this.currencyService.getSelectedCurrency(),this._bankService.getStripeStatus().subscribe(dt=>{this.stripeStatus=dt?.data,this.stripeNotificationCheck=1==this.stripeStatus?.charges_enabled&&1==this.stripeStatus?.payout_enabled&&1==this.stripeStatus?.details_submitted}),this._bankService.stripeNotification.subscribe(dt=>{}),this.profileLoader=!0,this.getUserProfile(),this._profileService.profileUpdate.pipe((0,l.R)(this._unsubscribeAll)).subscribe(dt=>{dt&&(this.profileName=dt.data.name,this.profileImage=dt.data.image,this._changeDetectorRef.markForCheck())}),this._bankService.getPersonalVerification().subscribe(dt=>{this.complianceStatus=dt?.data?.status,this._balanceService.getTotalBalance(this.currency?.currency).subscribe(jt=>{this.reservedAmount=jt?.data?.balance?.amount_reserved,this.totalBalance=jt?.data?.balance?.amount/100,this.donationReceived=this.totalBalance+this.reservedAmount||0,this.verificationIdentityCheck="unverified"==this.complianceStatus&&this.donationReceived>=1500})}),this.currency=pe?.currency,this._dashboardService.getFundraiserSummary().subscribe(dt=>{this.parentFundraiser=dt.data.parent}))}),this.router.events.subscribe(()=>{const pe=this._route.firstChild?.snapshot.data.route;this.showStripeNotificationBanner="payout-settings"!==pe})}ngOnDestroy(){this._unsubscribeAll.complete()}getUserProfile(){this._profileService.getProfile().pipe((0,l.R)(this._unsubscribeAll)).subscribe(pe=>{if(this.profile=pe,this._profileService.setProfileObj=this.profile?.data?.profile,this.isReceiver=pe?.data?.profile?.is_receiver,this._profileService.getDonationCount().subscribe(dt=>{if(1!=this.isReceiver||1!=dt?.data?.first_donation_received){const jt=this.profile_routes.findIndex(Ir=>"personal-verification"===Ir.route);-1!==jt&&this.profile_routes.splice(jt,1)}}),!this.isReceiver){const dt=this.profile_routes.findIndex(jt=>"payout-settings"===jt.route);-1!==dt&&this.profile_routes.splice(dt,1)}this.profileLoader=!1,this.profileName=pe.data?.profile?.name,this.profileImage=pe.data?.profile?.image,this._changeDetectorRef.markForCheck()})}}return Fe.\u0275fac=function(pe){return new(pe||Fe)(r.Y36(e.gz),r.Y36(e.F0),r.Y36(r.sBO),r.Y36(c.u0),r.Y36(E.H),r.Y36(m.y),r.Y36(v.m),r.Y36(C.s),r.Y36(n.B),r.Y36(i.A))},Fe.\u0275cmp=r.Xpm({type:Fe,selectors:[["app-profile"]],decls:3,vars:1,consts:[[4,"ngIf"]],template:function(pe,dt){1&pe&&(r.TgZ(0,"div"),r.YNc(1,I,1,0,"app-stripe-notification-banner",0),r._UZ(2,"router-outlet"),r.qZA()),2&pe&&(r.xp6(1),r.Q6J("ngIf",dt.showStripeNotificationBanner&&0==dt.stripeNotificationCheck&&dt.parentFundraiser>0))},dependencies:[t.O5,e.lC,P.$]}),Fe})();var D=s(48046),M=s(15645),T=s(9206),F=s(45720),le=s(95195),V=s(76037),de=s(4692),ye=s(54449),Ee=s(43073),Le=s(81560),ge=s(27579),ue=s(74351);function ee(Fe,er){1&Fe&&r._UZ(0,"img",26)}function se(Fe,er){1&Fe&&r._UZ(0,"img",27)}function W(Fe,er){1&Fe&&(r.TgZ(0,"mat-error"),r.SDv(1,28),r.qZA())}function L(Fe,er){1&Fe&&r._UZ(0,"img",26)}function he(Fe,er){1&Fe&&r._UZ(0,"img",27)}function _e(Fe,er){if(1&Fe&&(r.TgZ(0,"mat-error"),r.SDv(1,29),r.qZA()),2&Fe){const pe=r.oxw();r.xp6(1),r.pQV(pe.getPasswordErrorMessage()),r.QtT(1)}}function Z(Fe,er){1&Fe&&r._UZ(0,"img",26)}function Te(Fe,er){1&Fe&&r._UZ(0,"img",27)}function w(Fe,er){1&Fe&&(r.TgZ(0,"mat-error"),r.SDv(1,30),r.qZA())}function k(Fe,er){1&Fe&&(r.TgZ(0,"span",31),r.SDv(1,32),r.qZA())}function x(Fe,er){1&Fe&&r._UZ(0,"mat-progress-spinner",33),2&Fe&&r.Q6J("diameter",24)("mode","indeterminate")}let z=(()=>{class Fe{constructor(pe,dt,jt,Ir,Ur,En){this.dialogRef=pe,this._dialogRef=dt,this._formBuilder=jt,this.notificationService=Ir,this._accountService=Ur,this.profileData=En,dt.disableClose=!1,this.resetPasswordForm=this._formBuilder.group({currentPassword:new M.p4("",[M.kI.required]),password:new M.p4("",[M.kI.required,M.kI.minLength(8),M.kI.maxLength(100),M.kI.pattern("^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,}$")]),confirm_password:new M.p4("",[M.kI.required],[this.passwordsMustMatch()])})}passwordsMustMatch(){return pe=>{const dt=this.resetPasswordForm.get("password")?.value;return(0,le.of)(dt===pe.value?null:{passwordMismatch:!0})}}getPasswordErrorMessage(){return this.resetPasswordForm?.controls.password.hasError("required")?"Password is required":this.resetPasswordForm?.controls.password.hasError("pattern")?"Minimum 8 digit. Must contains 1 Uppercase, 1 number & 0 special characters":""}updatePassword(){var pe=this;return(0,D.Z)(function*(){pe.resetPasswordForm.disable();const dt=pe.resetPasswordForm?.controls.currentPassword.value,jt=pe.resetPasswordForm?.controls.password.value,{ciphertext:Ir,iv:Ur}=yield pe._accountService.encryptSymmetric(jt,T.N.PASSWORD_ENCRYPTION_KEY);pe._accountService.resetPassword({password:Ir,currentPassword:dt,email:pe.profileData?.profile?.email,iv:Ur}).subscribe(Fn=>{Fn.errors.code?pe.notificationService.openNotification("A\u017Euriranje nije uspjelo.","Close","error"):pe.notificationService.openNotification("A\u017Euriranje uspje\u0161no.","Close","success"),pe._dialogRef.close({event:"Close"}),pe.resetPasswordForm.enable()},Fn=>{pe.notificationService.openNotification("A\u017Euriranje nije uspjelo.","Close","error"),pe._dialogRef.close({event:"Close"}),pe.resetPasswordForm.enable()})})()}onCloseClick(){this.dialogRef.close()}}return Fe.\u0275fac=function(pe){return new(pe||Fe)(r.Y36(F.so),r.Y36(F.so),r.Y36(M.QS),r.Y36(V.g),r.Y36(n.B),r.Y36(F.WI))},Fe.\u0275cmp=r.Xpm({type:Fe,selectors:[["reset-password-dialog"]],decls:40,vars:13,consts:function(){let er,pe,dt,jt,Ir,Ur,En,Fn;return er="Resetiraj Lozinke",pe="Trenutna lozinka",dt="Nova lozinka",jt="Potvrdi novu lozinku",Ir="Trenutna lozinka je potrebna.",Ur="Minimalno 8 znamenki i mora sadr\u017Eavati 1 veliko slovo i 1 broj.",En="Lozinke se ne podudaraju.",Fn="Spremi",[["fxLayout","row","fxLayoutAlign","space-between center","ngClass","p-t-s"],["mat-dialog-title",""],er,["ngClass","p-r-xl"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],[1,"mat-typography"],[3,"formGroup"],["color","primary","appearance","outline",1,"w-100"],pe,["required","","id","cruntPassword","matInput","","formControlName","currentPassword","type","password"],["currentPassword",""],["mat-icon-button","","type","button","matSuffix","",3,"click"],["ngClass","m-b-s","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/visibilityOff/public",4,"ngIf"],["ngClass","m-b-s","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/visibilityOn/public",4,"ngIf"],[4,"ngIf"],dt,["required","","matInput","","formControlName","password","type","password",1,"newPassword"],["resetPassword",""],jt,["required","","matInput","","formControlName","confirm_password","type","password",1,"retypePassword"],["newPassword",""],["fxLayout","row","fxLayoutAlign","end center"],["mat-flat-button","","color","accent","id","resetSaveButton",1,"button-button-style",3,"disabled","click"],["class","save",4,"ngIf"],[3,"diameter","mode",4,"ngIf"],["ngClass","m-b-s","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/visibilityOff/public"],["ngClass","m-b-s","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/visibilityOn/public"],Ir,Ur,En,[1,"save"],Fn,[3,"diameter","mode"]]},template:function(pe,dt){if(1&pe){const jt=r.EpF();r.TgZ(0,"div",0)(1,"h3",1),r.SDv(2,2),r.qZA(),r.TgZ(3,"div",3)(4,"button",4),r.NdJ("click",function(){return dt.onCloseClick()}),r._UZ(5,"img",5),r.qZA()()(),r.TgZ(6,"mat-dialog-content",6)(7,"form",7)(8,"mat-form-field",8)(9,"mat-label"),r.SDv(10,9),r.qZA(),r._UZ(11,"input",10,11),r.TgZ(13,"button",12),r.NdJ("click",function(){r.CHM(jt);const Ur=r.MAs(12);return r.KtG(Ur.type="password"===Ur.type?"text":"password")}),r.YNc(14,ee,1,0,"img",13),r.YNc(15,se,1,0,"img",14),r.qZA(),r.YNc(16,W,2,0,"mat-error",15),r.qZA(),r.TgZ(17,"mat-form-field",8)(18,"mat-label"),r.SDv(19,16),r.qZA(),r._UZ(20,"input",17,18),r.TgZ(22,"button",12),r.NdJ("click",function(){r.CHM(jt);const Ur=r.MAs(21);return r.KtG(Ur.type="password"===Ur.type?"text":"password")}),r.YNc(23,L,1,0,"img",13),r.YNc(24,he,1,0,"img",14),r.qZA(),r.YNc(25,_e,2,1,"mat-error",15),r.qZA(),r.TgZ(26,"mat-form-field",8)(27,"mat-label"),r.SDv(28,19),r.qZA(),r._UZ(29,"input",20,21),r.TgZ(31,"button",12),r.NdJ("click",function(){r.CHM(jt);const Ur=r.MAs(30);return r.KtG(Ur.type="password"===Ur.type?"text":"password")}),r.YNc(32,Z,1,0,"img",13),r.YNc(33,Te,1,0,"img",14),r.qZA(),r.YNc(34,w,2,0,"mat-error",15),r.qZA()(),r.TgZ(35,"div")(36,"div",22)(37,"button",23),r.NdJ("click",function(){return dt.updatePassword()}),r.YNc(38,k,2,0,"span",24),r.YNc(39,x,1,2,"mat-progress-spinner",25),r.qZA()()()()}if(2&pe){const jt=r.MAs(12),Ir=r.MAs(21),Ur=r.MAs(30);let En;r.xp6(7),r.Q6J("formGroup",dt.resetPasswordForm),r.xp6(7),r.Q6J("ngIf","password"===jt.type),r.xp6(1),r.Q6J("ngIf","text"===jt.type),r.xp6(1),r.Q6J("ngIf",null==(En=dt.resetPasswordForm.get("currentPassword"))?null:En.hasError("required")),r.xp6(7),r.Q6J("ngIf","password"===Ir.type),r.xp6(1),r.Q6J("ngIf","text"===Ir.type),r.xp6(1),r.Q6J("ngIf",dt.resetPasswordForm.controls.password.invalid),r.xp6(7),r.Q6J("ngIf","password"===Ur.type),r.xp6(1),r.Q6J("ngIf","text"===Ur.type),r.xp6(1),r.Q6J("ngIf",dt.resetPasswordForm.controls&&dt.resetPasswordForm.controls.confirm_password.errors),r.xp6(3),r.Q6J("disabled",dt.resetPasswordForm.invalid),r.xp6(1),r.Q6J("ngIf",!dt.resetPasswordForm.disabled),r.xp6(1),r.Q6J("ngIf",dt.resetPasswordForm.disabled)}},dependencies:[t.mk,t.O5,de.nI,de.v_,de.$V,de.nX,ye.k0,M._Y,M.Fj,M.JJ,M.JL,M.Q7,M.sg,M.u,Ee.eB,Le.sN,F.uh,F.xY,ge.xw,ge.Wh,ue.oO],encapsulation:2}),Fe})();var j=s(45379);function Ne(Fe,er){1&Fe&&(r.TgZ(0,"h3",17),r.SDv(1,18),r.qZA())}function tt(Fe,er){1&Fe&&(r.TgZ(0,"h3",17),r.SDv(1,19),r.qZA())}function We(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon"),r._uU(1,"visibility_off"),r.qZA())}function ze(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon"),r._uU(1,"visibility"),r.qZA())}function we(Fe,er){1&Fe&&(r.TgZ(0,"mat-error"),r.SDv(1,20),r.qZA())}function Ye(Fe,er){1&Fe&&(r.TgZ(0,"span",21),r.SDv(1,22),r.qZA())}function te(Fe,er){1&Fe&&r._UZ(0,"mat-progress-spinner",23),2&Fe&&r.Q6J("diameter",24)("mode","indeterminate")}let Se=(()=>{class Fe{constructor(pe,dt,jt,Ir,Ur,En,Fn){this.dialogRef=pe,this._verifyPasswordDialogRef=dt,this._formBuilder=jt,this._accountService=Ir,this._profileService=Ur,this.notificationService=En,this.inputedDetails=Fn,this.verifyPasswordForm=this._formBuilder.group({password:["",M.kI.required]})}verifyPassword(){var pe=this;return(0,D.Z)(function*(){if(pe.verifyPasswordForm.invalid)return;pe.verifyPasswordForm.disable();const{ciphertext:dt,iv:jt}=yield pe._accountService.encryptSymmetric(pe.verifyPasswordForm?.controls.password.value,T.N.PASSWORD_ENCRYPTION_KEY),Ir={email:pe.inputedDetails.email,password:dt,iv:jt,original_password:pe.verifyPasswordForm?.controls.password.value};pe._profileService.verifyPassword(Ir).subscribe(Ur=>{if(Ur.errors.hasOwnProperty("code"))return pe.verifyPasswordForm.enable(),pe.notificationService.openNotification("Neispravna lozinka.","Close","error");pe._verifyPasswordDialogRef.close({event:"Close",passwordVerified:!0,response:Ur,password:Ir.password,original_password:Ir.original_password}),pe.verifyPasswordForm.enable()},Ur=>{pe.notificationService.openNotification("Neispravna lozinka.","Close","error"),pe.verifyPasswordForm.enable()})})()}_updateBankDetails(pe){this._profileService.put("account/profile/",{}).subscribe(dt=>{this._verifyPasswordDialogRef.close({event:"Cancel"}),this.notificationService.openNotification("A\u017Euriranje uspje\u0161no.","Close","success")},dt=>{this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","Close","error")})}onCloseClick(){this.dialogRef.close()}}return Fe.\u0275fac=function(pe){return new(pe||Fe)(r.Y36(F.so),r.Y36(F.so),r.Y36(M.QS),r.Y36(n.B),r.Y36(E.H),r.Y36(V.g),r.Y36(F.WI))},Fe.\u0275cmp=r.Xpm({type:Fe,selectors:[["verify-password-dialog"]],decls:25,vars:9,consts:function(){let er,pe,dt,jt,Ir;return er="Lozinka",pe="Da biste promijenili e-mail adresu, potvrdite svoj ra\u010Dun",dt="Unesite svoju lozinku da biste sa\u010Duvali promjene.",jt="Minimalno 8 znamenki i mora sadr\u017Eavati 1 veliko slovo i 1 broj.",Ir="Provjeri",[["fxLayout","column","fxFill","","fxLayoutAlign","flex-end flex-end"],["mat-icon-button","",3,"click"],["fxLayout","column","fxFill",""],[3,"ngIf","ngIfElse"],["verifyAccount",""],["fxFill","",1,"mat-typography"],["autocomplete","new-password",3,"formGroup"],["color","primary","appearance","outline",1,"w-100"],er,["id","verifyInput","required","","matInput","","formControlName","password","type","password"],["passwordField",""],["mat-icon-button","","type","button","matSuffix","",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-flat-button","","color","accent","id","verifyButton",1,"button-button-style",3,"disabled","click"],["class","verify",4,"ngIf"],[3,"diameter","mode",4,"ngIf"],["mat-dialog-title",""],pe,dt,jt,[1,"verify"],Ir,[3,"diameter","mode"]]},template:function(pe,dt){if(1&pe){const jt=r.EpF();r.TgZ(0,"div",0)(1,"button",1),r.NdJ("click",function(){return dt.onCloseClick()}),r.TgZ(2,"mat-icon"),r._uU(3,"close"),r.qZA()()(),r.TgZ(4,"div",2),r.YNc(5,Ne,2,0,"ng-template",3),r.YNc(6,tt,2,0,"ng-template",null,4,r.W1O),r.TgZ(8,"mat-dialog-content",5)(9,"form",6)(10,"mat-form-field",7)(11,"mat-label"),r.SDv(12,8),r.qZA(),r._UZ(13,"input",9,10),r.TgZ(15,"button",11),r.NdJ("click",function(){r.CHM(jt);const Ur=r.MAs(14);return r.KtG(Ur.type="password"===Ur.type?"text":"password")}),r.YNc(16,We,2,0,"mat-icon",12),r.YNc(17,ze,2,0,"mat-icon",12),r.qZA(),r.YNc(18,we,2,0,"mat-error",12),r.qZA(),r.TgZ(19,"div")(20,"div",13)(21,"button",14),r.NdJ("click",function(){return dt.verifyPassword()}),r.YNc(22,Ye,2,0,"span",15),r.TgZ(23,"span"),r.YNc(24,te,1,2,"mat-progress-spinner",16),r.qZA()()()()()()()}if(2&pe){const jt=r.MAs(7),Ir=r.MAs(14);let Ur;r.xp6(5),r.Q6J("ngIf",dt.inputedDetails.emailChange)("ngIfElse",jt),r.xp6(4),r.Q6J("formGroup",dt.verifyPasswordForm),r.xp6(7),r.Q6J("ngIf","password"===Ir.type),r.xp6(1),r.Q6J("ngIf","text"===Ir.type),r.xp6(1),r.Q6J("ngIf",null==(Ur=dt.verifyPasswordForm.get("password"))?null:Ur.hasError("required")),r.xp6(3),r.Q6J("disabled",dt.verifyPasswordForm.disabled),r.xp6(1),r.Q6J("ngIf",!dt.verifyPasswordForm.disabled),r.xp6(2),r.Q6J("ngIf",dt.verifyPasswordForm.disabled)}},dependencies:[t.O5,de.nI,de.v_,de.$V,de.nX,ye.k0,M._Y,M.Fj,M.JJ,M.JL,M.Q7,M.sg,M.u,Ee.eB,j.Hw,Le.sN,F.uh,F.xY,ge.xw,ge.Wh,ge.s9],encapsulation:2}),Fe})();var ke=s(45734),Ge=s(24510),Tt=s(43732),Et=s(9),H=s(69621),Y=s(61551),S=s(63591),K=s(52051),Q=s(82918),B=s(85270);function re(Fe,er){if(1&Fe&&r._UZ(0,"img",5),2&Fe){const pe=r.oxw();r.Q6J("src",pe.profileImage,r.LSH)}}const fe=function(Fe){return["/profile/",Fe]},qe=function(){return["is-active"]};function $e(Fe,er){if(1&Fe&&(r.TgZ(0,"mat-list-option",10)(1,"div",11),r._uU(2),r.qZA(),r.TgZ(3,"mat-icon",12),r._uU(4,"keyboard_arrow_right"),r.qZA(),r._UZ(5,"mat-divider",13),r.qZA()),2&Fe){const pe=er.$implicit,dt=r.oxw(2);r.Q6J("selected",dt.routeSelected==pe.route)("routerLink",r.VKq(6,fe,pe.route))("routerLinkActive",r.DdM(8,qe)),r.xp6(2),r.Oqu(pe.name),r.xp6(1),r.Udp("display",dt.routeSelected==pe.route?"auto":"none")}}function et(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"div",6)(1,"mat-accordion")(2,"mat-expansion-panel",7),r.NdJ("opened",function(){r.CHM(pe);const jt=r.oxw();return r.KtG(jt.panelOpenState=!0)})("closed",function(){r.CHM(pe);const jt=r.oxw();return r.KtG(jt.panelOpenState=!1)}),r.TgZ(3,"mat-expansion-panel-header")(4,"mat-panel-title"),r._uU(5),r.qZA()(),r.TgZ(6,"mat-panel-description")(7,"mat-selection-list",8),r.YNc(8,$e,6,9,"mat-list-option",9),r.qZA()()()()()}if(2&Fe){const pe=r.oxw();r.xp6(5),r.Oqu(pe.selectedRouteName),r.xp6(2),r.Q6J("multiple",!1),r.xp6(1),r.Q6J("ngForOf",pe.profile_routes)}}function ot(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",14),r._UZ(2,"app-page-loader"),r.qZA()())}let ct=(()=>{class Fe{constructor(pe,dt,jt){switch(this._route=pe,this._profileService=dt,this.accountService=jt,this._unsubscribeAll=new d.x,this.isReceiver=!1,this.profileLoader=!1,this.panelOpenState=!1,this.accountRoute="",this.newItemEvent=new r.vpe,this.selectedRouteName="",this.routeSelected=this.accountRoute,this.sub=this._route.data.subscribe(Ir=>this.routeSelected=Ir.route),this.routeSelected){case"api":this.selectedRouteName="API klju\u010D";break;case"account":this.selectedRouteName="Detalji Ra\u010Duna";break;case"payout-settings":this.selectedRouteName="Postavke isplate";break;case"email":this.selectedRouteName="Postavke E-po\u0161te";break;case"deactivate":this.selectedRouteName="Isklju\u010Di Ra\u010Dun"}this.profile_routes=[{name:"Detalji Ra\u010Duna",route:"account"},{name:"Postavke isplate",route:"payout-settings"},{name:"API klju\u010D",route:"api"},{name:"Postavke E-po\u0161te",route:"email"},{name:"Isklju\u010Di Ra\u010Dun",route:"deactivate"}]}ngOnInit(){this.profileLoader=!0,this.accountService.checkHeaders()&&this.getUserProfile()}ngOnDestroy(){this._unsubscribeAll.complete()}getUserProfile(){this.accountService.checkHeaders()&&this._profileService.getProfile().pipe((0,l.R)(this._unsubscribeAll)).subscribe(pe=>{if(this.profile=pe,this.profileName=pe.data?.profile?.name,this.isReceiver=pe.data?.profile?.is_receiver,this._profileService.getDonationCount().subscribe(dt=>{if(1!=this.isReceiver||1!=dt?.data?.first_donation_received){const jt=this.profile_routes.findIndex(Ir=>"personal-verification"===Ir.route);-1!==jt&&this.profile_routes.splice(jt,1)}}),!this.isReceiver){const dt=this.profile_routes.findIndex(jt=>"payout-settings"===jt.route);-1!==dt&&this.profile_routes.splice(dt,1)}this.profileLoader=!1,this.profileImage=pe.data?.profile?.image})}addNewItem(pe){this.newItemEvent.emit(pe)}}return Fe.\u0275fac=function(pe){return new(pe||Fe)(r.Y36(e.gz),r.Y36(E.H),r.Y36(n.B))},Fe.\u0275cmp=r.Xpm({type:Fe,selectors:[["app-head-navigation"]],inputs:{accountRoute:"accountRoute"},outputs:{newItemEvent:"newItemEvent"},decls:9,vars:4,consts:function(){let er;return er="Uredi svoj ra\u010Dun",[["fxShow.lt-md","","fxHide","",1,"mat-elevation-z0"],["mat-card-avatar","","alt","This is the profile image",3,"src",4,"ngIf"],er,["fxShow.lt-md","","fxHide","",4,"ngIf"],[4,"ngIf"],["mat-card-avatar","","alt","This is the profile image",3,"src"],["fxShow.lt-md","","fxHide",""],[3,"opened","closed"],["fxLayout","row wrap",3,"multiple"],["color","primary","checkboxPosition","before",3,"selected","routerLink","routerLinkActive",4,"ngFor","ngForOf"],["color","primary","checkboxPosition","before",3,"selected","routerLink","routerLinkActive"],["mat-line",""],["mat-list-icon","","color","accent"],[2,"width","100%"],["fxLayoutAlign","center center"]]},template:function(pe,dt){1&pe&&(r.TgZ(0,"mat-card",0)(1,"mat-card-header"),r.YNc(2,re,1,1,"img",1),r.TgZ(3,"mat-card-title"),r._uU(4),r.qZA(),r.TgZ(5,"mat-card-subtitle"),r.SDv(6,2),r.qZA()()(),r.YNc(7,et,9,3,"div",3),r.YNc(8,ot,3,0,"div",4)),2&pe&&(r.xp6(2),r.Q6J("ngIf",dt.profileImage),r.xp6(2),r.Oqu(dt.profileName),r.xp6(3),r.Q6J("ngIf",!dt.profileLoader),r.xp6(1),r.Q6J("ngIf",dt.profileLoader))},dependencies:[t.sg,t.O5,e.rH,e.Od,Tt.S$,Tt.u7,Tt.mi,Tt._K,Tt.lb,Et.d,S.pp,S.ib,S.yz,S.yK,S.u4,K.X2,Q.ap,Q.kh,Q.O$,j.Hw,ge.xw,ge.Wh,ue.b8,B.f]}),Fe})();const pt=["updateProfileForm"];function $t(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon"),r._UZ(1,"mat-spinner",60),r.qZA())}function It(Fe,er){if(1&Fe&&(r.TgZ(0,"div"),r._UZ(1,"img",61),r.qZA()),2&Fe){const pe=r.oxw();r.xp6(1),r.Q6J("src",pe.profileImage,r.LSH)}}function fr(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"div",62)(1,"image-cropper",63),r.NdJ("imageCropped",function(jt){r.CHM(pe);const Ir=r.oxw();return r.KtG(Ir.imageCropped(jt))})("imageLoaded",function(){r.CHM(pe);const jt=r.oxw();return r.KtG(jt.imageLoaded())})("cropperReady",function(){r.CHM(pe);const jt=r.oxw();return r.KtG(jt.cropperReady())})("loadImageFailed",function(){r.CHM(pe);const jt=r.oxw();return r.KtG(jt.loadImageFailed())}),r.qZA(),r.TgZ(2,"button",64),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw();return r.KtG(jt.cropImage())}),r.SDv(3,65),r.qZA()()}if(2&Fe){const pe=r.oxw();r.Udp("padding-bottom",20,"px")("padding-top",20,"px"),r.xp6(1),r.Udp("width",400,"px"),r.Q6J("imageChangedEvent",pe.imageChangedEvent)("maintainAspectRatio",!0)("aspectRatio",1)("roundCropper",!0)("resizeToWidth",150),r.xp6(1),r.Udp("width",189,"px")}}function yt(Fe,er){1&Fe&&(r.TgZ(0,"mat-error"),r.SDv(1,66),r.qZA())}function dr(Fe,er){1&Fe&&(r.TgZ(0,"mat-error"),r.SDv(1,67),r.qZA())}function bt(Fe,er){1&Fe&&(r.TgZ(0,"mat-error"),r.SDv(1,68),r.qZA())}function ar(Fe,er){1&Fe&&(r.TgZ(0,"mat-error"),r.SDv(1,69),r.qZA())}function vt(Fe,er){1&Fe&&(r.TgZ(0,"mat-error"),r.SDv(1,74),r.qZA())}function qt(Fe,er){1&Fe&&(r.TgZ(0,"mat-error"),r.SDv(1,75),r.qZA())}function br(Fe,er){if(1&Fe&&(r.TgZ(0,"mat-form-field",24)(1,"mat-label"),r.SDv(2,70),r.qZA(),r._UZ(3,"input",71,72),r.TgZ(5,"mat-hint",28),r._uU(6),r.TgZ(7,"span"),r.SDv(8,73),r.qZA()(),r.YNc(9,vt,2,0,"mat-error",3),r.YNc(10,qt,2,0,"mat-error",3),r.qZA()),2&Fe){const pe=r.MAs(4),dt=r.oxw();r.xp6(3),r.s9C("placeholder",dt.myAccountOrganisation),r.xp6(3),r.hij("",pe.value.length," / 1-100 "),r.xp6(3),r.Q6J("ngIf",null==dt.accountForm.controls.organisationName||null==dt.accountForm.controls.organisationName.errors?null:dt.accountForm.controls.organisationName.errors.maxlength),r.xp6(1),r.Q6J("ngIf",(null==dt.accountForm.controls.organisationName?null:dt.accountForm.controls.organisationName.errors)&&(null==dt.accountForm.controls.organisationName||null==dt.accountForm.controls.organisationName.errors?null:dt.accountForm.controls.organisationName.errors.pattern))}}function lt(Fe,er){1&Fe&&(r.TgZ(0,"mat-error"),r.SDv(1,76),r.qZA())}function De(Fe,er){1&Fe&&(r.TgZ(0,"mat-error"),r.SDv(1,77),r.qZA())}function G(Fe,er){if(1&Fe&&(r.TgZ(0,"mat-error"),r._uU(1),r.qZA()),2&Fe){const pe=r.oxw();r.xp6(1),r.hij(" ",pe.getErrorMessage()," ")}}function U(Fe,er){1&Fe&&(r.TgZ(0,"div",78),r._uU(1," \xa0"),r._UZ(2,"img",79),r._uU(3," \xa0\xa0"),r.TgZ(4,"span"),r.SDv(5,80),r.qZA()())}function ne(Fe,er){1&Fe&&(r.TgZ(0,"div",78),r._uU(1," \xa0"),r._UZ(2,"img",81),r._uU(3," \xa0\xa0"),r.TgZ(4,"span"),r.SDv(5,82),r.qZA()())}function Re(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"div",83)(1,"div")(2,"span"),r.SDv(3,84),r.qZA(),r._uU(4,"\xa0 "),r.TgZ(5,"strong"),r._uU(6),r.qZA(),r._uU(7,"\xa0 "),r.TgZ(8,"span"),r.SDv(9,85),r.qZA()(),r.TgZ(10,"div")(11,"span"),r.SDv(12,86),r.qZA(),r._uU(13,"\xa0\xa0 "),r.TgZ(14,"a",87),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw();return r.KtG(jt.resendVerificationEmail())}),r.SDv(15,88),r.qZA()(),r.TgZ(16,"div")(17,"span"),r.SDv(18,89),r.qZA(),r._uU(19,"\xa0\xa0 "),r.TgZ(20,"a",90),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw();return r.KtG(jt.cancelEmailChange())}),r.SDv(21,91),r.qZA()()()}if(2&Fe){const pe=r.oxw();r.xp6(6),r.Oqu(null==pe.profile||null==pe.profile.data||null==pe.profile.data.profile?null:pe.profile.data.profile.second_email)}}function Xe(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"div",92)(1,"h2"),r.SDv(2,93),r.qZA(),r.TgZ(3,"p"),r.SDv(4,94),r.qZA(),r.TgZ(5,"a",95),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw();return r.KtG(jt.stripeDashboard())}),r.TgZ(6,"span"),r.SDv(7,96),r.qZA(),r._UZ(8,"img",97),r.qZA()()}}function Nt(Fe,er){1&Fe&&(r.TgZ(0,"span"),r.SDv(1,98),r.qZA())}function Pt(Fe,er){1&Fe&&r._UZ(0,"mat-progress-spinner",99),2&Fe&&r.Q6J("diameter",24)("mode","indeterminate")}const Vt=function(Fe){return{width:Fe}};let Jt=(()=>{class Fe{constructor(pe,dt,jt,Ir,Ur,En,Fn,qn,hi){this._dialog=pe,this._http=dt,this._media=jt,this._profileService=Ir,this.notificationService=Ur,this._accountService=En,this._bankService=Fn,this.sanitizer=qn,this.formBuilder=hi,this._unsubscribeAll=new d.x,this.profileType="",this.currentRoute="account",this.email="",this.emailChange=!1,this.show_popup=!1,this.isStripeEmail=!0,this.stripeDashboardCheck=!1,this.API_URL=T.N.apiUrl,this.profile={},this.userAccount={},this.closeCropper=!1,this.didPhotoChanged=!1,this.verificationCheck=!1,this.tempCheck=!1,this.stripeStatus={},this.stripeNotificationCheck=!0,this.myAccountFirstName="Ime",this.myAccountLastName="Prezime",this.myAccountEmail="Adresa E-Po\u0161te",this.myAccountOrganisation="Organizacija",this.myAccountPhone="Broj telefona",this.imageChangedEvent="",this.show=!1,this.isLoading=!1,this.isSave=!1,this.accountForm=new M.nJ({profileType:new M.p4("",[]),firstName:new M.p4("",[M.kI.required,M.kI.minLength(1),M.kI.maxLength(100),M.kI.pattern(/^[^\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FAC0}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}]*$/u),_i=>/^\s*$/.test(_i.value||"")?{whitespace:!0}:null]),lastName:new M.p4("",[M.kI.required,M.kI.minLength(1),M.kI.maxLength(100),M.kI.pattern(/^[^\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FAC0}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}]*$/u),_i=>/^\s*$/.test(_i.value||"")?{whitespace:!0}:null]),email:new M.p4("",[M.kI.required,M.kI.email,M.kI.pattern("^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$")],[this.isEmailUnique()]),phoneNumber:new M.p4("",[M.kI.minLength(10),M.kI.maxLength(20),M.kI.pattern("^[0-9]*$")]),organisationName:new M.p4("",[M.kI.required,M.kI.minLength(1),M.kI.maxLength(100),M.kI.pattern(/^[^\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FAC0}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}]*$/u),_i=>/^\s*$/.test(_i.value||"")?{whitespace:!0}:null])})}get profileTypeControl(){return this.accountForm.get("profileTypeControl")}ngOnInit(){if(this.isLoading=!0,this.getStripeStatus(),this.getUserProfile(),this.verificationCheck=0!=JSON.parse(localStorage.getItem("user")||"{}").is_email_verified,this._profileService.getAccountObj){let dt=this._profileService.getAccountObj;this.accountForm?.controls.email.setValue(dt.email),this.accountForm?.controls.firstName.setValue(dt.firstName),this.accountForm?.controls.lastName.setValue(dt.lastName)}else this._profileService.getAccount().subscribe(dt=>{this.userAccount=dt,this.accountForm?.controls.firstName.setValue(dt?.data?.profile?.first_name),this.accountForm?.controls.lastName.setValue(dt?.data?.profile?.last_name),this.accountForm?.controls.email.setValue(dt?.data?.profile?.email),this.email=dt?.data?.profile?.email,this.isLoading=!1});if(this.tempCheck){let dt=this._profileService.getProfileObj;dt&&(dt?.organisation?(this.accountForm?.controls.profileType.setValue("organisation"),this.accountForm?.controls.organisationName.setValue(dt?.organisation?.organisationName),dt?.organisation?.phoneNumber&&this.accountForm?.controls.phoneNumber.setValue(dt?.organisation?.phoneNumber?.trim())):(this.accountForm?.controls.profileType.setValue("personal"),dt?.organisation?.phoneNumber&&this.accountForm?.controls.phoneNumber.setValue(dt?.personal?.phoneNumber?.trim())))}else this.isLoading=!0,this._profileService.getProfile().subscribe(dt=>{const jt="organization"===dt.data?.profile?.type||"organisation"===dt.data?.profile?.type?"organisation":"personal";this.accountForm?.controls.profileType.setValue(jt),this.profileType=jt,"organisation"===jt?this.accountForm?.controls?.organisationName?.setValue(dt.data?.profile?.name):this.accountForm?.removeControl("organisationName"),null!==dt.data?.profile?.phone_number&&this.accountForm?.controls?.phoneNumber?.setValue(dt.data?.profile?.phone_number?.trim()),this.isLoading=!1})}getStripeStatus(){this._bankService.getStripeStatus().subscribe(pe=>{this.stripeStatus=pe?.data,this.stripeNotificationCheck=1==this.stripeStatus?.charges_enabled&&1==this.stripeStatus?.payout_enabled&&1==this.stripeStatus?.details_submitted})}ngOnDestroy(){this._unsubscribeAll.complete()}getEmailErrorMessage(){return this.accountForm?.controls.email.hasError("required")?"Potrebna je adresa e-po\u0161te.":this.accountForm?.controls.email.hasError("emailInUse")?"Email adresa je ve\u0107 u upotrebi.":""}isEmailUnique(){return pe=>new Promise((jt,Ir)=>{this._accountService.isEmailInUse(pe.value).subscribe(Ur=>{jt(Ur.data.email_in_use&&this.email!=pe.value?{emailInUse:!0}:null)},()=>{jt({emailInUse:!0})})})}getErrorMessage(){return this.accountForm?.controls.email.hasError("pattern")?"Not a valid email":this.accountForm?.controls.email.hasError("emailInUse")?"Email adresa je ve\u0107 u upotrebi.":this.accountForm?.controls.email.hasError("required")?"Potrebna je adresa e-po\u0161te.":""}emailChangeEvent(pe){const dt=this.accountForm.get("email")?.value;this.verificationCheck=dt==this.email}fileChangeEvent(pe){pe?.target?.files[0]?.size<5242880?"image/jpg"==pe.target.files[0].type||"image/jpeg"==pe.target.files[0].type||"image/png"==pe.target.files[0].type||"image/webp"==pe.target.files[0].type?(this.imageChangedEvent=pe,this.imagePath=pe.target.files,this.closeCropper=!0):this.notificationService.openNotification("Mo\u017Eete koristiti samo png, jpg ili webp format.","OK","error"):this.notificationService.openNotification("Maksimalna veli\u010Dina slike je 5 MB.","OK","error")}cropImage(){this.closeCropper=!1}dataURItoBlob(pe){for(var dt=atob(pe.toString().split(",")[1]),jt=new ArrayBuffer(dt.length),Ir=new Uint8Array(jt),Ur=0;Ur<dt.length;Ur++)Ir[Ur]=dt.charCodeAt(Ur);var En=new Blob([Ir],{type:"image/jpeg"});return new File([En],"blob",{type:"image/jpeg;charset=utf-8"})}imageCropped(pe){this.profileImage=pe.base64,this.selectedProfileImage=this.dataURItoBlob(this.profileImage)}imageLoaded(){}cropperReady(){}loadImageFailed(){}onprofileTypeChange(pe){"personal"===pe?.value&&(this.profileType="personal",this.accountForm.removeControl("organisationName")),"organisation"===pe?.value&&(this.profileType="organisation",this.accountForm.addControl("organisationName",this.formBuilder.control("",{validators:[M.kI.required,M.kI.minLength(1),M.kI.maxLength(100),M.kI.pattern(/^[^\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FAC0}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}]*$/u),dt=>/^\s*$/.test(dt.value||"")?{whitespace:!0}:null]})))}getUserProfile(){this._profileService.getProfile().pipe((0,l.R)(this._unsubscribeAll)).subscribe(pe=>{this.profile=pe,this.profileName=pe?.data?.profile?.name,this.profileImage=pe?.data?.profile?.image,this.show_popup=!(null==this.profile?.data?.profile?.second_email||""===this.profile.data.profile.second_email),this.isStripeEmail=0!=this.profile?.data?.profile?.isStripeEmail,this.isStripeEmail=!!this.show_popup||0!=this.profile?.data?.profile?.isStripeEmail||1!=this.stripeNotificationCheck})}updateProfile(){if(this.accountForm.invalid)return;this.closeCropper=!1,this.accountForm.disable();let pe=new FormData;if("organisation"==this.profileType?(this.selectedProfileImage&&pe.append("image",this.selectedProfileImage),pe.append("first_name",this.accountForm?.controls?.firstName.value),pe.append("last_name",this.accountForm?.controls?.lastName.value),pe.append("type",this.profileType),pe.append("phone_number",this.accountForm?.controls.phoneNumber?.value||""),pe.append("organisation_name",this.accountForm?.controls.organisationName?.value.trim()||""),pe.append("email",this.profile?.data?.profile?.email),pe.append("language_code",this._accountService.getLocaleId())):(this.selectedProfileImage&&pe.append("image",this.selectedProfileImage),pe.append("first_name",this.accountForm?.controls?.firstName.value),pe.append("last_name",this.accountForm?.controls?.lastName.value),pe.append("type",this.profileType),pe.append("phone_number",this.accountForm?.controls.phoneNumber?.value||""),pe.append("email",this.profile?.data?.profile?.email),pe.append("language_code",this._accountService.getLocaleId())),!pe.has("email"))return this.notificationService.openNotification("U\u010Ditavanje, molimo pri\u010Dekajte","","info"),void this.accountForm.enable();this._profileService.updateProfile(pe).subscribe(dt=>{this.notificationService.openNotification("Spremanje uspje\u0161no.","Close","success"),this.accountForm.enable(),this._profileService.profileChange(dt),this.tempCheck=!0,window.location.reload()},dt=>{console.error(dt)})}openResetPasswordDialog(){this.isLoading?this.notificationService.openNotification("U\u010Ditavanje, molimo pri\u010Dekajte","","info"):this._dialog.open(z,{maxWidth:"73vh",maxHeight:"70vh",data:this.userAccount.data}).afterClosed().subscribe(dt=>{})}openVerifyPasswordDialog(){this.accountForm?.controls.email.value!=this.email&&(this.emailChange=!0),this._dialog.open(Se,{data:{email:this.email,emailChange:this.emailChange}}).afterClosed().subscribe(dt=>{void 0!==dt&&(this.password=dt.password,this.accountForm?.controls.email.value!=this.email&&this._profileService.updateAccountEmail({email:this.accountForm?.controls.email.value,previous_path:"",first_name:this.profile?.data?.profile?.first_name,last_name:this.profile?.data?.profile?.last_name,type:this.profile?.data?.profile?.type,language_code:this.profile?.data?.profile?.language_code}).subscribe(Ir=>{this.getUserProfile()},Ir=>{console.error(Ir)}),dt.passwordVerified&&this.updateProfile())})}resendVerificationEmail(){const pe=this.profile?.data?.profile?.second_email;pe&&(this.isLoading=!0,this._accountService.resendVerificationEmail(pe).subscribe(dt=>{setTimeout(()=>{this.isLoading=!1,200===dt.status?this.notificationService.openNotification("Uspje\u0161no poslana verifikacijska e-po\u0161ta.","OK","success"):this.notificationService.openNotification("Ne\u0161to je po\u0161lo po zlu.",":(","error")},2e3)}))}cancelEmailChange(){const pe=this.profile?.data?.profile?.second_email;pe&&this._profileService.cancelAccountEmailChange({email:pe}).subscribe(jt=>{this.show_popup=!jt.data.status,this.notificationService.openNotification("Otkazano","OK","success")},jt=>{console.error(jt)})}stripeDashboard(){let pe=window.open();this.stripeDashboardCheck=!0,this._bankService.redirectToStripeDashboard().subscribe(dt=>{null!=pe&&(pe.location.href=dt?.data?.url),this.stripeDashboardCheck=!1})}openVerifyPasswordDialogDeactivate(){this._dialog.open(Se,{width:"600px",data:{email:this.email}}).afterClosed().subscribe(dt=>{dt?.passwordVerified&&(this.password=dt?.original_password,this.deactivateAccount(this.password))})}deactivateAccount(pe){var dt=this;return(0,D.Z)(function*(){if(dt._accountService.checkHeaders()){dt.isLoading=!0;const{iv:Ir}=yield dt._accountService.encryptSymmetric(pe,T.N.PASSWORD_ENCRYPTION_KEY);dt._profileService.deactivateAccount({password:pe,iv:Ir}).subscribe(En=>{dt.notificationService.openNotification("Deaktivacija uspje\u0161na.","Close","success"),dt._accountService.logout(),dt.isLoading=!1},En=>{dt.notificationService.openNotification("Deaktivacija nije uspjela.","","error")})}})()}}return Fe.\u0275fac=function(pe){return new(pe||Fe)(r.Y36(F.uw),r.Y36(ke.eN),r.Y36(c.u0),r.Y36(E.H),r.Y36(V.g),r.Y36(n.B),r.Y36(m.y),r.Y36(Ge.H7),r.Y36(M.QS))},Fe.\u0275cmp=r.Xpm({type:Fe,selectors:[["app-account"]],viewQuery:function(pe,dt){if(1&pe&&r.Gf(pt,5),2&pe){let jt;r.iGM(jt=r.CRH())&&(dt.updateProfileForm=jt.first)}},decls:95,vars:38,consts:function(){let er,pe,dt,jt,Ir,Ur,En,Fn,qn,hi,_i,gi,oa,Ea,da,Za,va,co,ki,Li,Qo,ka,qo,Go,$o,Vo,ya,Ze,Wt,g,$,st,Bt,hr,Xr,fn,Kn,An,Ki,Xa;return er="Uredi",pe="JPG, PNG ili WebP Maksimalno 5 Mb.",dt="Vrsta Korisni\u010Dkog Ra\u010Duna",jt="Osobno",Ir="Organizacija",Ur="Korisni\u010Dke Informacije",En="Prvo Ime",Fn="Znaci",qn="Prezime",hi="Znaci",_i="Broj Telefona",gi="Znaci",oa="Korisni\u010Dki Podaci Za Prijavu",Ea="Adresa E-po\u0161te",da="Resetiraj Lozinke",Za="Isklju\u010Dite svoj WhyDonate ra\u010Dun putem",va="Deaktiviraj Ra\u010Dun",co="Izre\u017Ei logo",ki="Mora biti izme\u0111u 1 i 100 znakova.",Li="Samo su dopu\u0161tena slova.",Qo="Mora biti izme\u0111u 1 i 100 znakova.",ka="Samo su dopu\u0161tena slova.",qo="Organizacijsko ime",Go="Znaci",$o="Mora biti izme\u0111u 1 i 100 znakova.",Vo="Ne mo\u017Ee biti samo brojevi",ya="Mora biti izme\u0111u 10 i 20 znakova",Ze="Samo su brojevi dopu\u0161teni.",Wt="Verificirano",g="Pod Pregledom",$="Promjena E-Maila: Provjerite svoj e-mail",st="za potvrdu va\u0161e nove e-mail adrese - promjena ne\u0107e stupiti na snagu dok ne bude potvr\u0111ena. Nakon potvrde korisnik \u0107e se morati ponovno prijaviti.",Bt="Ne vidite potvrdni e-mail?",hr="Ponovno Po\u0161alji E-po\u0161tu za Provjeru",Xr="Ne \u017Eelite promijeniti svoj e-mail?",fn="Otka\u017Ei promjenu",Kn="A\u017Eurirajte svoju novu e-mail adresu na Stripe",An="Molimo vas da a\u017Eurirate svoju e-mail adresu na Stripeu kako biste osigurali nesmetan postupak isplate. Provjerite je li va\u0161a e-mail adresa na va\u0161em Stripe ra\u010Dunu trenutna i to\u010Dna.",Ki="Ra\u010Dun Pruga",Xa="Spremi",[["fxFlex","0 1 calc(40vw)","fxFlex.sm","100%","fxFlex.xs","1 1 calc(40vw)","fxFlexOffset.lg","32px","ngClass.gt-sm","m-l-xxl",1,"mat-elevation-z0"],["fxLayout","column","fxLayoutAlign","start start",1,"section-background-white"],["fxShow.lt-md","","fxHide","",3,"accountRoute"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start start","fxLayoutGap","5%","ngClass.lt-lg","m-t-xl"],["type","file","accept","image/png, image/jpeg, image/jpg, image/webp",3,"hidden","change"],["uploadProfile",""],[3,"ngStyle"],["mat-stroked-button","","color","accent",1,"button-button-style",3,"ngStyle","click"],er,pe,["fxFill","","fxLayout","column","fxLayoutAlign","start baseline","fxLayoutGap","2%",3,"paddingBottom","paddingTop",4,"ngIf"],["autocomplete","new-password",3,"formGroup"],["updateProfileForm","ngForm"],["ngClass","p-t-l"],[1,"mat-body-2",2,"margin-bottom","-6px"],dt,["formControlName","profileType","color","primary","aria-label","Select an option",1,"button-toggle-group",3,"change"],["value","personal","id","personalRadio","checked","true",1,"button-button-style"],jt,["value","organisation","id","organisationRadio",1,"button-button-style"],Ir,[1,"mat-body-2"],Ur,["color","primary","appearance","outline",1,"w-100"],En,["matInput","","formControlName","firstName","id","firstName",3,"placeholder"],["firstName",""],["align","end"],Fn,qn,["matInput","","formControlName","lastName","id","lastName",3,"placeholder"],["lastName",""],hi,["color","primary","appearance","outline","class","w-100",4,"ngIf"],_i,["formControlName","phoneNumber","matInput","","id","phoneNumber",3,"placeholder"],["phoneNumber",""],gi,oa,["fxLayout","row","fxLayout.lt-sm","row wrap","fxLayout.sm","row wrap","fxLayoutAlign","start center"],["fxLayout","row","fxFlex","100%"],Ea,["id","accountEmailInput","matInput","","formControlName","email","type","email",3,"placeholder","change"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","0.1%","ngClass","m-b-m",4,"ngIf"],[3,"ngIf"],["fxLayout","column","fxLayoutAlign","start start"],["id","resetPassword"],[1,"link-decorate-style","pointer",3,"click"],da,["fxFill","","fxLayout","column","fxLayoutAlign","end end"],["color","accent","mat-flat-button","","id","saveButton",1,"button-button-style",3,"disabled","click"],[3,"diameter","mode",4,"ngIf"],["fxFill","","fxLayout","row","fxFlex","100"],[1,"mat-elevation-z0","grey-bg","w-100"],["fxLayout","row","fxLayout.xs","column","fxFlex","100","fxLayoutAlign","center center"],["ngClass","text-align-center"],Za,["id","deactivateAccount","mat-button","","color","accent",3,"click"],va,["color","accent","diameter","20"],["mat-card-avatar","","mat-card-sm-image","","alt","Profile image",3,"src"],["fxFill","","fxLayout","column","fxLayoutAlign","start baseline","fxLayoutGap","2%"],["format","png",3,"imageChangedEvent","maintainAspectRatio","aspectRatio","roundCropper","resizeToWidth","imageCropped","imageLoaded","cropperReady","loadImageFailed"],["mat-stroked-button","","color","accent",1,"button-button-style",3,"click"],co,ki,Li,Qo,ka,qo,["formControlName","organisationName","id","organisationName","matInput","",3,"placeholder"],["organisationName",""],Go,$o,Vo,ya,Ze,["fxLayout","row","fxLayoutAlign","start center","fxFlex","0.1%","ngClass","m-b-m"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/checkCirclePrimary/public"],Wt,["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/infoWarn/public"],g,["fxLayout","column","fxLayoutGap","3%","id","changeEmailPopup",1,"grey-bg","p-s","m-b-m","m-t-m"],$,st,Bt,["id","resend_email_button",1,"link-decorate-style","pointer",3,"click"],hr,Xr,["id","cancelEmailChangeLink",1,"link-decorate-style","pointer",3,"click"],fn,["fxLayout","column","fxLayoutGap","3%","id","updateStripeEmailPopup",1,"grey-bg","p-s","m-b-m","m-t-m"],Kn,An,["fxLayout","row","fxLayoutAlign","start center","fxFlex","","fxLayoutGap","2%",1,"link-decorate-style","pointer",3,"click"],Ki,["src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/openInNew/public"],Xa,[3,"diameter","mode"]]},template:function(pe,dt){if(1&pe){const jt=r.EpF();r.TgZ(0,"mat-card",0)(1,"section",1),r._UZ(2,"app-head-navigation",2),r.YNc(3,$t,2,0,"mat-icon",3),r._uU(4," \xa0 "),r.TgZ(5,"div",4),r.YNc(6,It,2,1,"div",3),r.TgZ(7,"div")(8,"input",5,6),r.NdJ("change",function(Ur){return dt.fileChangeEvent(Ur)}),r.qZA(),r.TgZ(10,"div",7)(11,"button",8),r.NdJ("click",function(){r.CHM(jt);const Ur=r.MAs(9);return r.KtG(Ur.click())}),r.SDv(12,9),r.qZA(),r.TgZ(13,"small"),r.SDv(14,10),r.qZA()()()(),r.YNc(15,fr,4,13,"div",11),r.TgZ(16,"div")(17,"form",12,13)(19,"div",14)(20,"p",15),r.SDv(21,16),r.qZA(),r.TgZ(22,"mat-button-toggle-group",17),r.NdJ("change",function(Ur){return dt.onprofileTypeChange(Ur)}),r.TgZ(23,"mat-button-toggle",18),r.SDv(24,19),r.qZA(),r.TgZ(25,"mat-button-toggle",20),r.SDv(26,21),r.qZA()()(),r.TgZ(27,"div")(28,"p",22),r.SDv(29,23),r.qZA(),r.TgZ(30,"mat-form-field",24)(31,"mat-label"),r.SDv(32,25),r.qZA(),r._UZ(33,"input",26,27),r.TgZ(35,"mat-hint",28),r._uU(36),r.TgZ(37,"span"),r.SDv(38,29),r.qZA()(),r.YNc(39,yt,2,0,"mat-error",3),r.YNc(40,dr,2,0,"mat-error",3),r.qZA(),r.TgZ(41,"mat-form-field",24)(42,"mat-label"),r.SDv(43,30),r.qZA(),r._UZ(44,"input",31,32),r.TgZ(46,"mat-hint",28),r._uU(47),r.TgZ(48,"span"),r.SDv(49,33),r.qZA()(),r.YNc(50,bt,2,0,"mat-error",3),r.YNc(51,ar,2,0,"mat-error",3),r.qZA(),r.YNc(52,br,11,4,"mat-form-field",34),r.TgZ(53,"mat-form-field",24)(54,"mat-label"),r.SDv(55,35),r.qZA(),r._UZ(56,"input",36,37),r.TgZ(58,"mat-hint",28),r._uU(59),r.TgZ(60,"span"),r.SDv(61,38),r.qZA()(),r.YNc(62,lt,2,0,"mat-error",3),r.YNc(63,De,2,0,"mat-error",3),r.qZA()(),r.TgZ(64,"p",22),r.SDv(65,39),r.qZA(),r.TgZ(66,"div",40)(67,"div",41)(68,"mat-form-field",24)(69,"mat-label"),r.SDv(70,42),r.qZA(),r.TgZ(71,"input",43),r.NdJ("change",function(Ur){return dt.emailChangeEvent(Ur)}),r.qZA(),r.YNc(72,G,2,1,"mat-error",3),r.qZA()(),r.YNc(73,U,6,0,"div",44),r.YNc(74,ne,6,0,"div",44),r.qZA()(),r.YNc(75,Re,22,1,"ng-template",45),r.YNc(76,Xe,9,0,"ng-template",45),r.qZA(),r.TgZ(77,"div",46)(78,"div",47)(79,"a",48),r.NdJ("click",function(){return dt.openResetPasswordDialog()}),r.SDv(80,49),r.qZA()()(),r.TgZ(81,"div",50)(82,"button",51),r.NdJ("click",function(){return dt.openVerifyPasswordDialog()}),r.YNc(83,Nt,2,0,"span",3),r.TgZ(84,"span"),r.YNc(85,Pt,1,2,"mat-progress-spinner",52),r.qZA()()(),r.TgZ(86,"div",53),r._UZ(87,"mat-divider"),r.qZA(),r.TgZ(88,"mat-card",54)(89,"div",55)(90,"span",56),r.SDv(91,57),r.qZA(),r.TgZ(92,"button",58),r.NdJ("click",function(){return dt.openVerifyPasswordDialogDeactivate()}),r.SDv(93,59),r.qZA()()()()(),r._UZ(94,"mat-divider")}if(2&pe){const jt=r.MAs(34),Ir=r.MAs(45),Ur=r.MAs(57);r.xp6(2),r.Q6J("accountRoute",dt.currentRoute),r.xp6(1),r.Q6J("ngIf",dt.isLoading),r.xp6(3),r.Q6J("ngIf",dt.profileImage),r.xp6(2),r.Q6J("hidden",!0),r.xp6(2),r.Q6J("ngStyle",r.VKq(34,Vt,!0===dt._media.isActive("lt-sm")?"117px":"170px")),r.xp6(1),r.Udp("width",117,"px"),r.Q6J("ngStyle",r.VKq(36,Vt,!0===dt._media.isActive("lt-sm")?"117px":"170px")),r.xp6(4),r.Q6J("ngIf",dt.closeCropper),r.xp6(2),r.Q6J("formGroup",dt.accountForm),r.xp6(16),r.s9C("placeholder",dt.myAccountFirstName),r.xp6(3),r.hij("",jt.value.length," / 1-100 "),r.xp6(3),r.Q6J("ngIf",null==dt.accountForm.controls.firstName||null==dt.accountForm.controls.firstName.errors?null:dt.accountForm.controls.firstName.errors.maxlength),r.xp6(1),r.Q6J("ngIf",(null==dt.accountForm.controls.firstName?null:dt.accountForm.controls.firstName.errors)&&(null==dt.accountForm.controls.firstName||null==dt.accountForm.controls.firstName.errors?null:dt.accountForm.controls.firstName.errors.pattern)),r.xp6(4),r.s9C("placeholder",dt.myAccountLastName),r.xp6(3),r.hij("",Ir.value.length," / 1-100 "),r.xp6(3),r.Q6J("ngIf",null==dt.accountForm.controls.lastName||null==dt.accountForm.controls.lastName.errors?null:dt.accountForm.controls.lastName.errors.maxlength),r.xp6(1),r.Q6J("ngIf",(null==dt.accountForm.controls.lastName?null:dt.accountForm.controls.lastName.errors)&&(null==dt.accountForm.controls.lastName||null==dt.accountForm.controls.lastName.errors?null:dt.accountForm.controls.lastName.errors.pattern)),r.xp6(1),r.Q6J("ngIf","organisation"==dt.profileType),r.xp6(4),r.s9C("placeholder",dt.myAccountPhone),r.xp6(3),r.hij("",Ur.value.length," / 10-20 "),r.xp6(3),r.Q6J("ngIf",!(null!=dt.accountForm.controls.phoneNumber&&null!=dt.accountForm.controls.phoneNumber.errors&&dt.accountForm.controls.phoneNumber.errors.pattern)&&((null==dt.accountForm.controls.phoneNumber||null==dt.accountForm.controls.phoneNumber.errors?null:dt.accountForm.controls.phoneNumber.errors.maxlength)||(null==dt.accountForm.controls.phoneNumber||null==dt.accountForm.controls.phoneNumber.errors?null:dt.accountForm.controls.phoneNumber.errors.minlength))),r.xp6(1),r.Q6J("ngIf",null==dt.accountForm.controls.phoneNumber?null:dt.accountForm.controls.phoneNumber.errors),r.xp6(8),r.s9C("placeholder",dt.myAccountEmail),r.xp6(1),r.Q6J("ngIf",null==dt.accountForm.controls.email?null:dt.accountForm.controls.email.invalid),r.xp6(1),r.Q6J("ngIf",dt.verificationCheck),r.xp6(1),r.Q6J("ngIf",!dt.verificationCheck),r.xp6(1),r.Q6J("ngIf",dt.show_popup),r.xp6(1),r.Q6J("ngIf",!dt.isStripeEmail),r.xp6(6),r.Q6J("disabled",dt.accountForm.invalid),r.xp6(1),r.Q6J("ngIf",!dt.accountForm.disabled),r.xp6(2),r.Q6J("ngIf",dt.accountForm.disabled),r.xp6(3),r.Udp("margin-top",64,"px")}},dependencies:[t.mk,t.O5,t.PC,de.nI,de.v_,de.pH,de.$V,ye.k0,M._Y,M.Fj,M.JJ,M.JL,M.sg,M.u,Tt.S$,Tt.ou,Tt.lb,Et.d,Ee.eB,H.A9,H.Yi,j.Hw,Le.sN,ge.xw,ge.SQ,ge.Wh,ge.UT,ge.s9,ge.yH,ue.b8,ue.oO,ue.Zl,Y.ap,ct]}),Fe})();var kt=s(59435),Me=s(40354),ut=s(94276),nt=s(47692),Ht=s(79044);function pr(Fe,er){1&Fe&&r._UZ(0,"app-page-loader")}function Lr(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",6),r._UZ(2,"img",7),r.TgZ(3,"span"),r.SDv(4,8),r.qZA()(),r.TgZ(5,"div",9)(6,"p"),r.SDv(7,10),r.qZA()()())}function Kr(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",6),r._UZ(2,"img",11),r.TgZ(3,"span"),r.SDv(4,12),r.qZA()(),r.TgZ(5,"div",9)(6,"p",13),r.SDv(7,14),r.qZA()()())}function Cn(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",6),r._UZ(2,"img",11),r.TgZ(3,"span"),r.SDv(4,15),r.qZA()(),r.TgZ(5,"div",9)(6,"p",16),r.SDv(7,17),r.qZA()()())}function Wn(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",6),r._UZ(2,"img",18),r.TgZ(3,"span"),r.SDv(4,19),r.qZA()(),r.TgZ(5,"div",9)(6,"p"),r.SDv(7,20),r.qZA()()())}function zn(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",6),r._UZ(2,"img",21),r.TgZ(3,"span"),r.SDv(4,22),r.qZA()(),r.TgZ(5,"div",9)(6,"p"),r.SDv(7,23),r.qZA()()())}function ti(Fe,er){if(1&Fe&&(r.TgZ(0,"div")(1,"div",27)(2,"b"),r.SDv(3,29),r.qZA(),r.TgZ(4,"p"),r._uU(5),r.qZA()(),r.TgZ(6,"div",27)(7,"b"),r.SDv(8,30),r.qZA(),r.TgZ(9,"p"),r._uU(10),r.qZA()()()),2&Fe){const pe=r.oxw(3);r.xp6(5),r.Oqu(null==pe.bankObject||null==pe.bankObject.account?null:pe.bankObject.account.account_name),r.xp6(5),r.Oqu(null==pe.bankObject||null==pe.bankObject.account?null:pe.bankObject.account.account_iban)}}function yr(Fe,er){if(1&Fe&&(r.TgZ(0,"div",25)(1,"b"),r.SDv(2,26),r.qZA(),r.TgZ(3,"div",27)(4,"b"),r.SDv(5,28),r.qZA(),r.TgZ(6,"p"),r._uU(7),r.qZA()(),r.YNc(8,ti,11,2,"div",3),r.qZA()),2&Fe){const pe=r.oxw(2);r.xp6(7),r.Oqu(null==pe.bankObject?null:pe.bankObject.type),r.xp6(1),r.Q6J("ngIf",!pe.hideBankDetails)}}function Jr(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon",35),r._UZ(1,"mat-spinner",36),r.qZA())}function wt(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"div",31)(1,"button",32),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.addPersonalVerification())}),r.TgZ(2,"span"),r.SDv(3,33),r.qZA(),r.YNc(4,Jr,2,0,"mat-icon",34),r.qZA()()}if(2&Fe){const pe=r.oxw(2);r.xp6(4),r.Q6J("ngIf",pe.documentCheck)}}function nr(Fe,er){if(1&Fe&&(r.TgZ(0,"div"),r.YNc(1,yr,9,2,"div",24),r.YNc(2,wt,5,1,"div",5),r.qZA()),2&Fe){const pe=r.oxw();r.xp6(1),r.Q6J("ngIf",!pe.typeCheck),r.xp6(1),r.Q6J("ngIf",!pe.firstAccountCheck&&"verified"!=pe.complianceStatus)}}function tn(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon",35),r._UZ(1,"mat-spinner",36),r.qZA())}function rn(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"div",31)(1,"button",32),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw();return r.KtG(jt.openBankTypeDialog())}),r.TgZ(2,"span"),r.SDv(3,37),r.qZA(),r.YNc(4,tn,2,0,"mat-icon",34),r.qZA()()}if(2&Fe){const pe=r.oxw();r.xp6(4),r.Q6J("ngIf",pe.documentCheck)}}function vn(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon",35),r._UZ(1,"mat-spinner",36),r.qZA())}function Gn(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"div",31)(1,"button",32),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw();return r.KtG(jt.editBankAccountDetails())}),r.TgZ(2,"span"),r._uU(3,"Edit Bank Details"),r.qZA(),r.YNc(4,vn,2,0,"mat-icon",34),r.qZA()()}if(2&Fe){const pe=r.oxw();r.xp6(4),r.Q6J("ngIf",pe.documentCheck)}}function Yn(Fe,er){1&Fe&&r._UZ(0,"img",17)}function Dn(Fe,er){1&Fe&&r._UZ(0,"img",18)}function Ti(Fe,er){1&Fe&&(r.TgZ(0,"span"),r.SDv(1,19),r.qZA())}function Ni(Fe,er){1&Fe&&r._UZ(0,"mat-progress-spinner",20),2&Fe&&r.Q6J("diameter",24)("mode","indeterminate")}function ci(Fe,er){1&Fe&&(r.TgZ(0,"mat-error"),r.SDv(1,26),r.qZA())}function Kt(Fe,er){if(1&Fe&&(r.TgZ(0,"div",21)(1,"mat-form-field",22)(2,"mat-label"),r.SDv(3,23),r.qZA(),r._UZ(4,"input",24),r.YNc(5,ci,2,0,"mat-error",25),r.qZA()()),2&Fe){const pe=r.oxw(2);r.xp6(5),r.Q6J("ngIf",null==pe.bankTypeForm.controls.chamberOfCommerce?null:pe.bankTypeForm.controls.chamberOfCommerce.errors)}}function Ar(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon",27),r._UZ(1,"mat-spinner",28),r.qZA())}function ie(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"div",4)(1,"div",5)(2,"h1",6),r.SDv(3,7),r.qZA()(),r.TgZ(4,"div",8)(5,"p"),r.SDv(6,9),r.qZA()(),r.TgZ(7,"form",10)(8,"mat-radio-group",11),r.NdJ("change",function(jt){r.CHM(pe);const Ir=r.oxw();return r.KtG(Ir.onTypeChange(jt))}),r.TgZ(9,"mat-radio-button",12),r.SDv(10,13),r.qZA(),r.TgZ(11,"mat-radio-button",14),r.SDv(12,15),r.qZA()(),r.YNc(13,Kt,6,1,"div",16),r.qZA(),r.TgZ(14,"div",17)(15,"button",18),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw();return r.KtG(jt.onConfirm())}),r.TgZ(16,"span"),r.SDv(17,19),r.qZA(),r.YNc(18,Ar,2,0,"mat-icon",20),r.qZA()()()}if(2&Fe){const pe=r.oxw();r.xp6(7),r.Q6J("formGroup",pe.bankTypeForm),r.xp6(6),r.Q6J("ngIf",pe.businessTypeCheck),r.xp6(2),r.Q6J("disabled",0==pe.businessTypeCheck&&0==pe.personalTypeCheck),r.xp6(3),r.Q6J("ngIf",pe.documentCheck)}}function Ve(Fe,er){1&Fe&&(r.TgZ(0,"mat-error"),r.SDv(1,39),r.qZA())}function Mt(Fe,er){if(1&Fe&&(r.TgZ(0,"form",10)(1,"div",21)(2,"mat-form-field",22)(3,"mat-label"),r.SDv(4,34),r.qZA(),r._UZ(5,"textarea",35,36),r.TgZ(7,"mat-hint",37),r._uU(8),r.TgZ(9,"span"),r.SDv(10,38),r.qZA()(),r.YNc(11,Ve,2,0,"mat-error",25),r.qZA()()()),2&Fe){const pe=r.MAs(6),dt=r.oxw(2);r.Q6J("formGroup",dt.newPersonalBankForm),r.xp6(5),r.Q6J("minLength",30)("maxLength",250),r.xp6(3),r.hij("",pe.value.length," / 30-250 "),r.xp6(3),r.Q6J("ngIf",(null==dt.newPersonalBankForm.controls.consumerFundsUsage||null==dt.newPersonalBankForm.controls.consumerFundsUsage.errors?null:dt.newPersonalBankForm.controls.consumerFundsUsage.errors.required)||(null==dt.newPersonalBankForm.controls.consumerFundsUsage||null==dt.newPersonalBankForm.controls.consumerFundsUsage.errors?null:dt.newPersonalBankForm.controls.consumerFundsUsage.errors.minlength)&&(null==dt.newPersonalBankForm.controls.consumerFundsUsage||null==dt.newPersonalBankForm.controls.consumerFundsUsage.errors?null:dt.newPersonalBankForm.controls.consumerFundsUsage.errors.maxlength))}}function tr(Fe,er){1&Fe&&(r.TgZ(0,"mat-error"),r.SDv(1,48),r.qZA())}function kr(Fe,er){1&Fe&&(r.TgZ(0,"mat-error"),r.SDv(1,49),r.qZA())}function mn(Fe,er){if(1&Fe&&(r.TgZ(0,"form",10)(1,"div",21)(2,"mat-form-field",22)(3,"mat-label"),r.SDv(4,40),r.qZA(),r._UZ(5,"textarea",41,42),r.TgZ(7,"mat-hint",37),r._uU(8),r.TgZ(9,"span"),r.SDv(10,43),r.qZA()(),r.YNc(11,tr,2,0,"mat-error",25),r.qZA()(),r.TgZ(12,"div",21)(13,"mat-form-field",22)(14,"mat-label"),r.SDv(15,44),r.qZA(),r._UZ(16,"textarea",45,46),r.TgZ(18,"mat-hint",37),r._uU(19),r.TgZ(20,"span"),r.SDv(21,47),r.qZA()(),r.YNc(22,kr,2,0,"mat-error",25),r.qZA()()()),2&Fe){const pe=r.MAs(6),dt=r.MAs(17),jt=r.oxw(2);r.Q6J("formGroup",jt.personalBankForm),r.xp6(5),r.Q6J("minLength",30)("maxLength",250),r.xp6(3),r.hij("",pe.value.length," / 30-250 "),r.xp6(3),r.Q6J("ngIf",(null==jt.personalBankForm.controls.businessFundsUsage||null==jt.personalBankForm.controls.businessFundsUsage.errors?null:jt.personalBankForm.controls.businessFundsUsage.errors.required)||(null==jt.personalBankForm.controls.businessFundsUsage||null==jt.personalBankForm.controls.businessFundsUsage.errors?null:jt.personalBankForm.controls.businessFundsUsage.errors.minlength)&&(null==jt.personalBankForm.controls.businessFundsUsage||null==jt.personalBankForm.controls.businessFundsUsage.errors?null:jt.personalBankForm.controls.businessFundsUsage.errors.maxlength)),r.xp6(5),r.Q6J("minLength",30)("maxLength",250),r.xp6(3),r.hij("",dt.value.length," / 30-250 "),r.xp6(3),r.Q6J("ngIf",(null==jt.personalBankForm.controls.purposeOrganisation||null==jt.personalBankForm.controls.purposeOrganisation.errors?null:jt.personalBankForm.controls.purposeOrganisation.errors.required)||(null==jt.personalBankForm.controls.purposeOrganisation||null==jt.personalBankForm.controls.purposeOrganisation.errors?null:jt.personalBankForm.controls.purposeOrganisation.errors.minlength)&&(null==jt.personalBankForm.controls.purposeOrganisation||null==jt.personalBankForm.controls.purposeOrganisation.errors?null:jt.personalBankForm.controls.purposeOrganisation.errors.maxlength))}}function un(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon",27),r._UZ(1,"mat-spinner",28),r.qZA())}function ri(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"div",29)(1,"div",5)(2,"h1",6),r.SDv(3,30),r.qZA()(),r.TgZ(4,"div",8)(5,"p"),r.SDv(6,31),r.qZA()(),r.YNc(7,Mt,12,5,"form",32),r.YNc(8,mn,23,9,"form",32),r.TgZ(9,"div",17)(10,"button",18),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw();return r.KtG(jt.saveIdentityDocument())}),r.TgZ(11,"span"),r.SDv(12,33),r.qZA(),r.YNc(13,un,2,0,"mat-icon",20),r.qZA()()()}if(2&Fe){const pe=r.oxw();r.xp6(7),r.Q6J("ngIf",1==pe.personalQuestionCheck),r.xp6(1),r.Q6J("ngIf",1==pe.businessQuestionCheck),r.xp6(2),r.Q6J("disabled",pe.newPersonalBankForm.invalid&&pe.personalBankForm.invalid),r.xp6(3),r.Q6J("ngIf",pe.documentCheck)}}let Sr=(()=>{class Fe{constructor(pe,dt,jt,Ir,Ur,En,Fn,qn,hi,_i){this._bankService=pe,this._dialog=dt,this._media=jt,this._profileService=Ir,this.dialog=En,this._route=Fn,this.accountService=qn,this.notificationService=hi,this._balanceService=_i,this._unsubscribeAll=new d.x,this.currentRoute="bank",this.bankHolderPlace="Broj bankovnog ra\u010Duna (IBAN)",this.verificationStatus=!1,this.pendingStatus=!1,this.disapprovedStatus=!1,this.initialStatus=!1,this.documentCheck=!1,this.pageLoading=!1,this.firstAccountCheck=!1,this.addButtonCheck=!1,this.overallCheck=!1,this.hideBankDetails=!1,this.typeCheck=!1,this.notYetCheck=!1,this.bankAccountForm=new M.nJ({accountHolder:new M.p4(["",M.kI.required]),accountType:new M.p4([""]),accountNumber:new M.p4(["",M.kI.required])}),this.isLoading=!0,this.isSave=!1,this.isValueChange=!1,this.isErrorMessage=""}ngOnDestroy(){this.sub.unsubscribe(),this._unsubscribeAll.unsubscribe()}ngOnInit(){this.pageLoading=!0,this.getUserAccount(),this.getUserProfile(),this.setIsLoading(),this._bankService.getPersonalVerification().subscribe(pe=>{switch(this.complianceStatus=pe?.data?.status,this.complianceStatusOverall=pe?.data,this.overallCheck="verified"==pe?.data?.contact_phonenumber&&"verified"==pe?.data?.contact_verification&&"unverified"==pe?.data?.status,this.complianceStatus){case"pending":this.pendingStatus=!0,this.verificationStatus=!1,this.disapprovedStatus=!1,this.initialStatus=!1;break;case"verified":this.pendingStatus=!1,this.verificationStatus=!0,this.disapprovedStatus=!1,this.initialStatus=!1;break;case"unverified":this.pendingStatus=!1,this.verificationStatus=!1,this.disapprovedStatus=!0,this.initialStatus=!1;break;default:this.pendingStatus=!1,this.verificationStatus=!1,this.disapprovedStatus=!1,this.initialStatus=!0}}),this._bankService.getTempAccount().subscribe(pe=>{this.bankObject=pe.data,this.hideBankDetails=null==pe.data?.account?.account_iban,this.typeCheck=null==pe.data?.account?.account_iban,"consumer"==pe.data?.type?pe.data.type="Potro\u0161a\u010D":"business"==pe.data.type&&(pe.data.type="Poslovni"),this.firstAccountCheck="2020"==pe.errors.code||"1005"==pe.errors.code||"Merchant_uidNotAvaliable"==pe?.data?.response,this.pageLoading=!1})}addPersonalVerification(){this.accountService.checkHeaders()&&(this.isLoading=!0,this._bankService.addPersonalVerification({}).subscribe(dt=>{this.personalVerificationObj=dt,this.isLoading=!1,window.open(this.personalVerificationObj.data.overview_url),this.addButtonCheck=!0},dt=>{this.isLoading=!1,this.notificationService.openNotification("Do\u0161lo je do pogre\u0161ke.","OK","error")}))}editBankAccountDetails(){this.isLoading=!0;let pe=window.location.protocol+"//"+window.location.hostname+"/"+this.accountService.getLocaleId()+"/profile/bank";"localhost"==window.location.hostname&&(pe="https://whydonate.in/profile/bank"),this._bankService.updateBankAccount({return_url:pe}).subscribe(jt=>{this.isLoading=!1,window.open(jt.data?.verification_url)},jt=>{this.isLoading=!1,this.notificationService.openNotification("Do\u0161lo je do pogre\u0161ke.","OK","error")})}ngAfterViewInit(){this.sub=this.bankAccountForm.valueChanges.pipe((0,kt.b)(500),(0,Me.x)((pe,dt)=>JSON.stringify(pe)===JSON.stringify(dt)),(0,ut.T)(1)).subscribe(pe=>{this.enableSaveButton()})}setSaveBtnIsLoading(){this.isSave=!0}resetSaveBtnLoading(){this.isSave=!1}setIsLoading(){this.isLoading=!0}resetLoading(){this.isLoading=!1}enableSaveButton(){this.isValueChange=!0}disableSaveButton(){this.isValueChange=!1}resetErrorMessage(){this.isErrorMessage=""}getUserAccount(){this._profileService.getAccount().subscribe(pe=>{this.profile=pe})}getUserProfile(){this._profileService.getProfile().pipe((0,l.R)(this._unsubscribeAll)).subscribe(pe=>{this.profile=pe,this.profileName=pe?.data?.profile?.name,this.profileImage=pe?.data?.profile?.image,pe?.data?.has_bank_information&&this.bankAccountForm?.controls.accountType.patchValue("organization"==pe?.data?.profile?.type||"organisation"==pe?.data?.profile?.type?"organisation":"personal")})}openVerifyPasswordDialog(){const pe=this.bankAccountForm?.controls.accountHolder.value,dt=this.bankAccountForm?.controls.accountNumber.value;this._dialog.open(Er,{width:"600px",height:"240px",data:{accountHolder:pe,accountNumber:dt,email:this.profile.data.email}})}openBankTypeDialog(){this._dialog.open(Ot,{width:"600px",maxHeight:"85vh"})}}return Fe.\u0275fac=function(pe){return new(pe||Fe)(r.Y36(m.y),r.Y36(F.uw),r.Y36(c.u0),r.Y36(E.H),r.Y36(M.QS),r.Y36(F.uw),r.Y36(e.gz),r.Y36(n.B),r.Y36(V.g),r.Y36(v.m))},Fe.\u0275cmp=r.Xpm({type:Fe,selectors:[["app-bank"]],decls:15,vars:9,consts:function(){let er,pe,dt,jt,Ir,Ur,En,Fn,qn,hi,_i,gi,oa,Ea,da,Za,va,co;return er="OPP Account Status",pe=" Verification should be completed to receive payouts. To verify account, OPP will take 1- 2 business days for consumer account and 4-5 business days for company account. ",dt="Verificirano",jt="Sva provjera je zavr\u0161ena Sada mo\u017Eete primati isplate.",Ir="Nepotvr\u0111eno",Ur="Molimo dodajte sve potrebne verifikacijske dokumente kako biste po\u010Deli primati isplate Kliknite gumb u nastavku za po\u010Detak.",En="Nepotvr\u0111eno",Fn=" Thanks for providing all the details. Your account is not verified yet, because Online Payment Platform requires some extra information. You will be contacted via email no-reply@onlinepaymentplatform.com . Please reply to them in order to get your account verified. You can already start collecting donations. The donation buttons are active. ",qn="Pod Pregledom",hi="Verifikacija je pod pregledom Nakon promjene statusa, ova \u0107e se stranica a\u017Eurirati, a bit \u0107ete obavije\u0161teni putem e-po\u0161te.",_i="Jo\u0161 uvijek nije pokrenuto",gi="Molimo dodajte dokumente za provjeru identiteta kako biste po\u010Deli primati isplate Ve\u0107 mo\u017Eete po\u010Deti prikupljati donacije Gumbi za donacije su aktivni.",oa="Bankovni Ra\u010Dun Detalji",Ea="Vrsta ra\u010Duna:",da="Ime vlasnika bankovnog ra\u010Duna:",Za="IBAN:",va="Uredi",co="Dodaj",[["ngClass.lt-lg","m-t-xl"],er,pe,[4,"ngIf"],["ngClass","m-t-m"],["fxLayout","column","fxLayoutAlign","start start","ngClass","m-t-m",4,"ngIf"],["fxLayout","row","fxLayoutGap","2%","ngClass","m-t-m","fxLayoutAlign","start center"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/checkCirclePrimary/public"],dt,["fxLayout","row","ngClass","m-t-s"],jt,["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/closeWarn/public"],Ir,[2,"color","orange"],Ur,En,[2,"color","red"],Fn,["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/infoAccent/public"],qn,hi,["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/circleOutline/public"],_i,gi,["fxLayout","column",4,"ngIf"],["fxLayout","column"],oa,["fxLayout","row","fxLayoutGap","2%","ngClass","m-t-m"],Ea,da,Za,["fxLayout","column","fxLayoutAlign","start start","ngClass","m-t-m"],["color","accent","mat-flat-button","",3,"click"],va,["class","m-l-xs",4,"ngIf"],[1,"m-l-xs"],["color","primary","diameter","20"],co]},template:function(pe,dt){1&pe&&(r.TgZ(0,"div",0)(1,"mat-card-title"),r.SDv(2,1),r.qZA(),r.TgZ(3,"p"),r.SDv(4,2),r.qZA(),r.YNc(5,pr,1,0,"app-page-loader",3),r.YNc(6,Lr,8,0,"div",3),r.YNc(7,Kr,8,0,"div",3),r.YNc(8,Cn,8,0,"div",3),r.YNc(9,Wn,8,0,"div",3),r.YNc(10,zn,8,0,"div",3),r.TgZ(11,"mat-card-content",4),r.YNc(12,nr,3,2,"div",3),r.YNc(13,rn,5,1,"div",5),r.YNc(14,Gn,5,1,"div",5),r.qZA()()),2&pe&&(r.xp6(5),r.Q6J("ngIf",dt.pageLoading),r.xp6(1),r.Q6J("ngIf",dt.verificationStatus),r.xp6(1),r.Q6J("ngIf",dt.disapprovedStatus),r.xp6(1),r.Q6J("ngIf",dt.overallCheck),r.xp6(1),r.Q6J("ngIf",dt.pendingStatus),r.xp6(1),r.Q6J("ngIf",dt.initialStatus),r.xp6(2),r.Q6J("ngIf",dt.verificationStatus||dt.disapprovedStatus||dt.pendingStatus),r.xp6(1),r.Q6J("ngIf",dt.firstAccountCheck),r.xp6(1),r.Q6J("ngIf","verified"==dt.complianceStatus))},dependencies:[t.mk,t.O5,Tt.Qi,Tt.mi,Ee.eB,j.Hw,Le.sN,ge.xw,ge.SQ,ge.Wh,ue.oO,B.f],styles:[".buttonStyle[_ngcontent-%COMP%]{height:43px;width:185px}"]}),Fe})(),Er=(()=>{class Fe{constructor(pe,dt,jt,Ir,Ur){this._verifyPasswordDialogRef=pe,this._formBuilder=dt,this._bankServices=jt,this.notificationService=Ir,this.inputedDetails=Ur,this.verifyPasswordForm=this._formBuilder.group({password:["",M.kI.required]})}verifyPassword(){if(this.verifyPasswordForm.invalid)return;this.verifyPasswordForm.disable();const pe=this.verifyPasswordForm?.controls.password.value;let dt=localStorage.getItem("user")||"{}";const Ir={email:JSON.parse(dt).email,password:pe};this._bankServices.verifyPassword(Ir).subscribe(Ur=>{this._updateBankDetails({account_holder:this.inputedDetails.accountHolder,account_number:this.inputedDetails.accountNumber}),this.verifyPasswordForm.enable()},Ur=>{this.notificationService.openNotification("Neva\u017Ee\u0107a lozinka.","Close","error"),this.verifyPasswordForm.enable()})}_updateBankDetails(pe){this._bankServices.saveBankAccount(pe).subscribe(dt=>{this._verifyPasswordDialogRef.close({event:"Cancel"}),this.notificationService.openNotification("A\u017Euriranje uspje\u0161no.","Close","success")},dt=>{this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","Close","error")})}}return Fe.\u0275fac=function(pe){return new(pe||Fe)(r.Y36(F.so),r.Y36(M.QS),r.Y36(m.y),r.Y36(V.g),r.Y36(F.WI))},Fe.\u0275cmp=r.Xpm({type:Fe,selectors:[["verify-password-dialog"]],decls:21,vars:7,consts:function(){let er,pe,dt;return er="Da biste promijenili podatke o bankovnom ra\u010Dunu, prvo provjerite jeste li to vi",pe="Lozinka",dt="Provjeri",[["mat-icon-button","",1,"close-button",3,"mat-dialog-close"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],er,[1,"mat-typography"],["autocomplete","new-password",3,"formGroup"],["verifyPasswordFormId","ngForm"],["color","primary","appearance","outline",1,"w-100"],pe,["matInput","","formControlName","password","type","password","id","verifyPasswordInput"],["passwordField",""],["mat-icon-button","","type","button","matSuffix","",2,"position","relative","bottom","6px",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/visibilityOff/public",4,"ngIf"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/visibilityOn/public",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-flat-button","","color","accent","id","verifySave",1,"button-button-style",3,"disabled","click"],[4,"ngIf"],["style","padding-top: 4px",3,"diameter","mode",4,"ngIf"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/visibilityOff/public"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/visibilityOn/public"],dt,[2,"padding-top","4px",3,"diameter","mode"]]},template:function(pe,dt){if(1&pe){const jt=r.EpF();r.TgZ(0,"button",0),r._UZ(1,"img",1),r.qZA(),r.TgZ(2,"h3"),r.SDv(3,2),r.qZA(),r.TgZ(4,"mat-dialog-content",3)(5,"form",4,5)(7,"mat-form-field",6)(8,"mat-label"),r.SDv(9,7),r.qZA(),r._UZ(10,"input",8,9),r.TgZ(12,"button",10),r.NdJ("click",function(){r.CHM(jt);const Ur=r.MAs(11);return r.KtG(Ur.type="password"===Ur.type?"text":"password")}),r.YNc(13,Yn,1,0,"img",11),r.YNc(14,Dn,1,0,"img",12),r.qZA()(),r.TgZ(15,"div")(16,"div",13)(17,"button",14),r.NdJ("click",function(){return dt.verifyPassword()}),r.YNc(18,Ti,2,0,"span",15),r.TgZ(19,"span"),r.YNc(20,Ni,1,2,"mat-progress-spinner",16),r.qZA()()()()()()}if(2&pe){const jt=r.MAs(11);r.Q6J("mat-dialog-close",!1),r.xp6(5),r.Q6J("formGroup",dt.verifyPasswordForm),r.xp6(8),r.Q6J("ngIf","password"===jt.type),r.xp6(1),r.Q6J("ngIf","text"===jt.type),r.xp6(3),r.Q6J("disabled",dt.verifyPasswordForm.disabled),r.xp6(1),r.Q6J("ngIf",!dt.verifyPasswordForm.disabled),r.xp6(2),r.Q6J("ngIf",dt.verifyPasswordForm.disabled)}},dependencies:[t.O5,de.v_,de.$V,de.nX,ye.k0,M._Y,M.Fj,M.JJ,M.JL,M.sg,M.u,Ee.eB,Le.sN,F.ZT,F.xY,ge.xw,ge.Wh],encapsulation:2}),Fe})(),Ot=(()=>{class Fe{constructor(pe,dt,jt,Ir,Ur,En,Fn,qn){this._verifyPasswordDialogRef=pe,this._formBuilder=dt,this._bankServices=jt,this.notificationService=Ir,this._bankService=Ur,this.accountService=En,this.fundraiserService=Fn,this.inputedDetails=qn,this.types=["Personal","Business"],this.personalTypeCheck=!1,this.businessTypeCheck=!1,this.documentCheck=!1,this.personalQuestionCheck=!1,this.businessQuestionCheck=!1,this.bankTypeForm=this._formBuilder.group({chamberOfCommerce:["",M.kI.required]}),this.newPersonalBankForm=this._formBuilder.group({consumerFundsUsage:["",[M.kI.required,M.kI.minLength(30),M.kI.maxLength(250)]]}),this.personalBankForm=this._formBuilder.group({businessFundsUsage:["",[M.kI.required,M.kI.minLength(30),M.kI.maxLength(250)]],purposeOrganisation:["",[M.kI.required,M.kI.minLength(30),M.kI.maxLength(250)]]})}onTypeChange(pe){"personal"==pe.value?(this.personalTypeCheck=!0,this.businessTypeCheck=!1):(this.personalTypeCheck=!1,this.businessTypeCheck=!0)}onConfirm(){1==this.personalTypeCheck?this.personalQuestionCheck=!0:this.businessQuestionCheck=!0}saveIdentityDocument(){this._bankService.changeCheck(!1),this.documentCheck=!0;let pe=window.location.protocol+"//"+window.location.hostname+"/"+this.accountService.getLocaleId()+"/profile/bank";"localhost"==window.location.hostname&&(pe="https://whydonate.in/profile/bank"),1==this.personalTypeCheck&&this.fundraiserService.addEmptyBank({returnURL:"https://whydonate.in"}).subscribe(jt=>{this._bankService.addBankAccount({funds_used_for:this.newPersonalBankForm.controls.consumerFundsUsage?.value,organisation_purpose:"-"}).subscribe(Ur=>{this.identityDocumentObj=Ur,this.documentCheck=!1,window.open(this.identityDocumentObj?.data?.verification_url),window.location.reload()},Ur=>{this.documentCheck=!1,this.notificationService.openNotification("Do\u0161lo je do pogre\u0161ke.","OK","error")})}),1==this.businessTypeCheck&&this.fundraiserService.addEmptyBank({returnURL:"https://whydonate.in"}).subscribe(jt=>{this._bankService.addBankAccount({coc_nr:this.bankTypeForm.controls.chamberOfCommerce?.value,country:"nld",funds_used_for:this.personalBankForm.controls.businessFundsUsage?.value,organisation_purpose:this.personalBankForm.controls.purposeOrganisation?.value}).subscribe(Ur=>{this.identityDocumentObj=Ur,this.documentCheck=!1,window.open(this.identityDocumentObj?.data?.verification_url),window.location.reload()},Ur=>{this.documentCheck=!1,this.notificationService.openNotification("Do\u0161lo je do pogre\u0161ke.","OK","error")})})}}return Fe.\u0275fac=function(pe){return new(pe||Fe)(r.Y36(F.so),r.Y36(M.QS),r.Y36(m.y),r.Y36(V.g),r.Y36(m.y),r.Y36(n.B),r.Y36(nt.R),r.Y36(F.WI))},Fe.\u0275cmp=r.Xpm({type:Fe,selectors:[["bank-account-dialog"]],decls:4,vars:3,consts:function(){let er,pe,dt,jt,Ir,Ur,En,Fn,qn,hi,_i,gi,oa,Ea,da,Za,va,co,ki;return er="Odaberite Vrstu Bankovnog Ra\u010Duna",pe="Verifikacija poslovnog ra\u010Duna zahtijeva dodatnu dokumentaciju Trebat \u0107ete pru\u017Eiti:\n- Kopiju izvoda bankovnog ra\u010Duna\n- Detalje o kona\u010Dnim korisnicima (UBO)\n- Identifikaciju pravnog zastupnika\n\nBudite sigurni da odaberete ispravnu vrstu ra\u010Duna jer je ne\u0107ete mo\u0107i promijeniti kasnije.",dt="Potro\u0161a\u010D",jt="Poslovni",Ir="Spremi",Ur="Dodajte svoj broj gospodarske komore",En="Potrebna je broj\u010Dana oznaka Gospodarske komore.",Fn="Da bismo provjerili va\u0161 ra\u010Dun, zahtijevamo neke informacije o prikupljanju sredstava",qn="Ove informacije bit \u0107e podijeljene samo s na\u0161im pru\u017Eateljem usluga pla\u0107anja",hi="Spremi",_i="Za \u0161to \u0107e se koristiti sredstva?",gi="Znaci",oa="Ove informacije su potrebne",Ea="Za \u0161to \u0107e se koristiti sredstva?",da="Znaci",Za="Koji je cilj va\u0161e organizacije?",va="Znaci",co="Ove informacije su potrebne",ki="Ove informacije su obvezne",[["mat-icon-button","",1,"close-button",3,"mat-dialog-close"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["ngClass","p-m",4,"ngIf"],[3,"ngIf"],["ngClass","p-m"],["fxLayoutAlign","start start"],["mat-dialog-title",""],er,["mat-dialog-content","","fxLayoutAlign","start start"],pe,[3,"formGroup"],["color","primary","aria-label","Select an option",1,"inline-radio-group",3,"change"],["value","personal"],dt,["value","business"],jt,["fxLayout","column",4,"ngIf"],["ngClass","m-t-m","mat-dialog-actions","","fxLayout","row","fxLayoutAlign","start start"],["mat-flat-button","","color","accent",3,"disabled","click"],Ir,["class","m-l-xs",4,"ngIf"],["fxLayout","column"],["color","primary","appearance","outline",1,"w-100"],Ur,["matInput","","formControlName","chamberOfCommerce"],[4,"ngIf"],En,[1,"m-l-xs"],["color","primary","diameter","20"],["ngClass","p-xs"],Fn,qn,[3,"formGroup",4,"ngIf"],hi,_i,["matInput","","id","consumerFundsUsage","formControlName","consumerFundsUsage","required","","placeholder","Enter answer here....","type","text","rows","4",3,"minLength","maxLength"],["consumerFundsUsage",""],["align","end"],gi,oa,Ea,["matInput","","id","businessFundsUsage","formControlName","businessFundsUsage","required","","placeholder","Enter answer here....","type","text","rows","4",3,"minLength","maxLength"],["businessFundsUsage",""],da,Za,["matInput","","id","purposeOrganisation","formControlName","purposeOrganisation","required","","placeholder","Enter answer here....","type","text","rows","4",3,"minLength","maxLength"],["purposeOrganisation",""],va,co,ki]},template:function(pe,dt){1&pe&&(r.TgZ(0,"button",0),r._UZ(1,"img",1),r.qZA(),r.YNc(2,ie,19,4,"div",2),r.YNc(3,ri,14,4,"ng-template",3)),2&pe&&(r.Q6J("mat-dialog-close",!1),r.xp6(2),r.Q6J("ngIf",1!=dt.personalQuestionCheck&&1!=dt.businessQuestionCheck),r.xp6(1),r.Q6J("ngIf",1==dt.personalQuestionCheck||1==dt.businessQuestionCheck))},dependencies:[t.mk,t.O5,de.nI,de.v_,de.pH,de.$V,ye.k0,Ht.OY,Ht.vy,M._Y,M.Fj,M.JJ,M.JL,M.Q7,M.sg,M.u,Ee.eB,j.Hw,Le.sN,F.ZT,F.uh,F.xY,F.H8,ge.xw,ge.Wh,ue.oO],encapsulation:2}),Fe})();var lr=s(33867),Cr=s(31180),Gr=s(44939);function Ln(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon"),r._UZ(1,"mat-spinner",15),r.qZA())}function Xn(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon",20),r._UZ(1,"mat-spinner",21),r.qZA())}function ni(Fe,er){if(1&Fe){const pe=r.EpF();r.ynx(0),r.TgZ(1,"div",16)(2,"mat-slide-toggle",17),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.generateNewApiKey())}),r.TgZ(3,"span"),r.SDv(4,18),r.qZA(),r.YNc(5,Xn,2,0,"mat-icon",19),r.qZA()(),r.BQk()}if(2&Fe){const pe=r.oxw(2);r.xp6(2),r.Q6J("disabled",pe.isNewApiKeyLoading),r.xp6(3),r.Q6J("ngIf",pe.isNewApiKeyLoading)}}function ta(Fe,er){if(1&Fe){const pe=r.EpF();r.ynx(0),r.TgZ(1,"div",22)(2,"div",23)(3,"mat-slide-toggle",24),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.isApiKeyVisible=!jt.isApiKeyVisible)}),r.SDv(4,25),r.qZA()()(),r.BQk()}if(2&Fe){const pe=r.oxw(2);r.xp6(3),r.Q6J("matTooltip",pe.isApiKeyVisible?"Hide your API Key":"See your API Key")}}function $a(Fe,er){if(1&Fe){const pe=r.EpF();r.ynx(0),r.TgZ(1,"div",2)(2,"mat-card",3)(3,"div",4)(4,"mat-card-title-group")(5,"mat-card-title",5),r._uU(6," Activate the Wordpress API key "),r.qZA(),r.TgZ(7,"mat-card-subtitle"),r.SDv(8,6),r.qZA(),r.YNc(9,Ln,2,0,"mat-icon",7),r.qZA(),r.TgZ(10,"mat-card-content")(11,"form",8),r.YNc(12,ni,6,2,"ng-container",7),r.YNc(13,ta,5,1,"ng-container",7),r.TgZ(14,"div",9)(15,"mat-form-field",10)(16,"mat-label"),r.SDv(17,11),r.qZA(),r._UZ(18,"input",12,13),r.TgZ(20,"button",14),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw();return r.KtG(jt.copyApiCode())}),r.TgZ(21,"mat-icon"),r._uU(22),r.qZA()()()()()()()()(),r.BQk()}if(2&Fe){const pe=r.MAs(19),dt=r.oxw();r.xp6(7),r.Udp("width",85,"%"),r.xp6(2),r.Q6J("ngIf",dt.isMatspinnerVisible),r.xp6(2),r.Q6J("formGroup",dt.apiKeyForm),r.xp6(1),r.Q6J("ngIf",!0===dt.showGenerateApiKeyButton),r.xp6(1),r.Q6J("ngIf",!1===dt.showGenerateApiKeyButton),r.xp6(5),r.Q6J("type",dt.isApiKeyVisible?"text":"password"),r.xp6(2),r.Q6J("color","text"===pe.type?"primary":"")("cdkCopyToClipboard","text"===pe.type?dt.apiKey:"")("disabled",dt.isCopied)("matTooltip",dt.isApiKeyVisible?"Copy":""),r.xp6(2),r.Oqu("content_copy")}}function La(Fe,er){1&Fe&&r._UZ(0,"app-page-loader")}let Ei=(()=>{class Fe{constructor(pe,dt,jt,Ir,Ur){this._profileService=pe,this.notificationService=dt,this.accountService=jt,this._media=Ir,this.currentRoute="api",this.isApiKeyVisible=!1,this.isCopyClicked=!1,this.isLoading=!1,this.apiKeyForm=Ur.group({apikeyCtrl:[{value:"",disabled:!0}],isActive:[!0]})}ngOnInit(){this.accountService.checkHeaders()&&(this.isAPILoading=!1,this.isLoading=!0,this._profileService.getApiKey().subscribe(pe=>{if("ApiKeyNotAvailable"==pe?.data?.response)return this.isLoading=!1,void(this.showGenerateApiKeyButton=!0);this.apiKey=pe?.data?.data?.api_key,this.showGenerateApiKeyButton=!1,this.apiKeyForm.patchValue({apikeyCtrl:pe?.data?.data?.api_key,isActive:pe?.data?.data?.is_active},{emitEvent:!1}),this._profileService.setApiKeyObj={api_key:pe?.data?.data?.api_key,is_active:pe?.data?.data?.is_active},this.isApiKeyVisible=this.apiKeyForm.get("isActive")?.value,this.isLoading=!1,this.isAPILoading=!0,this.isLoading=!1,this.isAPILoading=!0},pe=>{this.isLoading=!1,this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","OK","error")}))}ngAfterViewInit(){this.accountService.checkHeaders()&&this.apiKeyForm.get("isActive")?.valueChanges.subscribe(pe=>{let dt={is_active:pe};this.isMatspinnerVisible=!0,this._profileService.updateApiKeyStatus(dt).subscribe(jt=>{this.isMatspinnerVisible=!1,!0===jt?.data?.is_active&&(this.isCopied=!1,this.notificationService.openNotification("Aktivacija uspje\u0161na.","","success")),!1===jt?.data?.is_active&&(this.isCopied=!0,this.notificationService.openNotification("Deaktivacija uspje\u0161na.","","success")),this.apiKeyForm.patchValue({isActive:jt?.data?.is_active},{emitEvent:!1}),this.isApiKeyVisible=jt?.data?.is_active},jt=>{this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","OK","error")})})}copyApiCode(){this.isCopyClicked=!0,setTimeout(()=>{this.isCopyClicked=!1},600),this.isLoading=!1,this.isApiKeyVisible&&this.notificationService.openNotification("Kopiranje uspje\u0161no.","OK","success")}generateNewApiKey(){this.accountService.checkHeaders()&&(this.isNewApiKeyLoading=!0,this._profileService.createApiKey({name:this._profileService?.getProfileObj?.name}).subscribe(jt=>{window.location.reload(),jt?.data?.api_key&&(this.apiKey=jt?.data?.api_key,this.apiKeyForm.patchValue({apikeyCtrl:jt?.data.api_key}),this.isNewApiKeyLoading=!1,this.showGenerateApiKeyButton=!1)},jt=>{this.isNewApiKeyLoading=!1,this.notificationService.openNotification("Generacija nije uspjela.","","error")}))}}return Fe.\u0275fac=function(pe){return new(pe||Fe)(r.Y36(E.H),r.Y36(V.g),r.Y36(n.B),r.Y36(c.u0),r.Y36(M.QS))},Fe.\u0275cmp=r.Xpm({type:Fe,selectors:[["app-api-key"]],decls:3,vars:2,consts:function(){let er,pe,dt,jt;return er="Da biste povezali WordPress dodatak sa svojim WhyDonate ra\u010Dunom, morate generirati API klju\u010D ispod i zalijepiti ga u postavke dodatka.",pe="API Klju\u010D",dt="Generiraj API klju\u010D",jt="Aktiviraj API klju\u010D",[[4,"ngIf","ngIfElse"],["whydonateLoader",""],["ngClass","p-t-m p-l-xs"],["fxFlex"," 1 1 auto","fxFlex.sm","100%","fxFlex.xs","1 1 calc(40vw)",1,"mat-elevation-z0","h-100"],["ngClass.lt-lg","m-t-xl"],["ngClass","p-b-m"],er,[4,"ngIf"],["fxLayout","column",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100%"],["ngClass","p-t-m","color","primary","appearance","outline","fxFlex.xl","22%","fxFlex.lg","37%","fxFlex.lt-lg","52%","fxFlex.lt-md","73%","fxFlex.lt-sm","85%",1,"w-100"],pe,["matInput","","formControlName","apikeyCtrl",3,"type"],["passwordField",""],["id","copyCode","mat-icon-button","","matSuffix","",3,"color","cdkCopyToClipboard","disabled","matTooltip","click"],["color","primary","diameter","20"],["fxLayout","row wrap","fxLayoutAlign","start center"],["mat-flat-button","","color","accent",3,"disabled","click"],dt,["class","m-l-xs",4,"ngIf"],[1,"m-l-xs"],["color","accent","diameter","20"],["fxLayout","row wrap","fxLayoutAlign","end center"],["fxFlex",""],["formControlName","isActive","color","primary",3,"matTooltip","click"],jt]},template:function(pe,dt){if(1&pe&&(r.YNc(0,$a,23,12,"ng-container",0),r.YNc(1,La,1,0,"ng-template",null,1,r.W1O)),2&pe){const jt=r.MAs(2);r.Q6J("ngIf",!dt.isLoading)("ngIfElse",jt)}},dependencies:[t.mk,t.O5,de.v_,de.$V,de.nX,ye.k0,M._Y,M.Fj,M.JJ,M.JL,M.sg,M.u,lr.Rr,Tt.S$,Tt.H7,Tt.Qi,Tt.mi,Tt._K,Ee.eB,j.Hw,Le.sN,Cr.gM,ge.xw,ge.Wh,ge.yH,ue.oO,Gr.i3,B.f],encapsulation:2}),Fe})();var ma=s(42456),bn=s(17145);function ha(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"div",36)(1,"button",37),r._UZ(2,"img",38),r._uU(3),r.ALo(4,"titlecase"),r._UZ(5,"img",39),r.qZA(),r.TgZ(6,"mat-menu",40,41)(8,"button",42),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("en"))}),r.TgZ(9,"span",43),r.SDv(10,44),r.qZA()(),r.TgZ(11,"button",45),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("nl"))}),r.TgZ(12,"span",46),r.SDv(13,47),r.qZA()(),r.TgZ(14,"button",48),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("es"))}),r.TgZ(15,"span",49),r.SDv(16,50),r.qZA()(),r.TgZ(17,"button",51),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("de"))}),r.TgZ(18,"span",52),r.SDv(19,53),r.qZA()(),r.TgZ(20,"button",54),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("fr"))}),r.TgZ(21,"span",55),r.SDv(22,56),r.qZA()(),r.TgZ(23,"button",57),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("bg"))}),r.TgZ(24,"span",58),r.SDv(25,59),r.qZA()(),r.TgZ(26,"button",60),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("hr"))}),r.TgZ(27,"span",61),r.SDv(28,62),r.qZA()(),r.TgZ(29,"button",63),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("cs"))}),r.TgZ(30,"span",64),r.SDv(31,65),r.qZA()(),r.TgZ(32,"button",66),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("da"))}),r.TgZ(33,"span",67),r.SDv(34,68),r.qZA()(),r.TgZ(35,"button",69),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("fi"))}),r.TgZ(36,"span",70),r.SDv(37,71),r.qZA()(),r.TgZ(38,"button",72),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("el"))}),r.TgZ(39,"span",73),r.SDv(40,74),r.qZA()(),r.TgZ(41,"button",75),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("hu"))}),r.TgZ(42,"span",76),r.SDv(43,77),r.qZA()(),r.TgZ(44,"button",78),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("it"))}),r.TgZ(45,"span",79),r.SDv(46,80),r.qZA()(),r.TgZ(47,"button",81),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("pl"))}),r.TgZ(48,"span",82),r.SDv(49,83),r.qZA()(),r.TgZ(50,"button",84),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("pt"))}),r.TgZ(51,"span",85),r.SDv(52,86),r.qZA()(),r.TgZ(53,"button",87),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("ro"))}),r.TgZ(54,"span",88),r.SDv(55,89),r.qZA()(),r.TgZ(56,"button",90),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("sk"))}),r.TgZ(57,"span",91),r.SDv(58,92),r.qZA()(),r.TgZ(59,"button",93),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("sv"))}),r.TgZ(60,"span",94),r.SDv(61,95),r.qZA()(),r.TgZ(62,"button",96),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(2);return r.KtG(jt.changeLanguage("uk"))}),r.TgZ(63,"span",97),r.SDv(64,98),r.qZA()()()()}if(2&Fe){const pe=r.MAs(7),dt=r.oxw(2);r.xp6(1),r.Q6J("matMenuTriggerFor",pe),r.xp6(1),r.s9C("src",dt.languageIcon,r.LSH),r.xp6(1),r.hij(" ",r.lcZ(4,3,dt.locale)," ")}}function po(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon"),r._UZ(1,"mat-spinner",99),r.qZA())}function Ia(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon"),r._UZ(1,"mat-spinner",99),r.qZA())}function Oa(Fe,er){1&Fe&&(r.TgZ(0,"span"),r.SDv(1,100),r.qZA())}function cn(Fe,er){1&Fe&&r._UZ(0,"mat-progress-spinner",101),2&Fe&&r.Q6J("diameter",24)("mode","indeterminate")}const Yi=function(Fe){return{"white-space":Fe}};function wi(Fe,er){if(1&Fe){const pe=r.EpF();r.ynx(0),r.TgZ(1,"div",2)(2,"mat-card",3)(3,"div",4)(4,"div",5)(5,"mat-card-title"),r.SDv(6,6),r.qZA(),r._UZ(7,"br"),r.qZA(),r.YNc(8,ha,65,5,"div",7),r.TgZ(9,"mat-card-title-group")(10,"mat-card-subtitle"),r.SDv(11,8),r.qZA(),r.YNc(12,po,2,0,"mat-icon",9),r.qZA(),r.TgZ(13,"mat-card-content")(14,"form",10)(15,"p")(16,"mat-slide-toggle",11),r.SDv(17,12),r.qZA()(),r.TgZ(18,"p")(19,"mat-slide-toggle",13)(20,"span",14),r.SDv(21,15),r.qZA()()(),r.TgZ(22,"p")(23,"mat-slide-toggle",16),r.SDv(24,17),r.qZA()(),r.TgZ(25,"p")(26,"mat-slide-toggle",18),r.SDv(27,19),r.qZA()(),r.TgZ(28,"p")(29,"mat-slide-toggle",20),r.SDv(30,21),r.qZA()(),r.TgZ(31,"p")(32,"mat-slide-toggle",22),r.SDv(33,23),r.qZA()(),r.TgZ(34,"p")(35,"mat-slide-toggle",24),r.SDv(36,25),r.qZA()()(),r._UZ(37,"br"),r.TgZ(38,"mat-card-title-group")(39,"mat-card-subtitle"),r.SDv(40,26),r.qZA(),r.YNc(41,Ia,2,0,"mat-icon",9),r.qZA(),r.TgZ(42,"form",10)(43,"p")(44,"mat-slide-toggle",27),r.SDv(45,28),r.qZA()(),r.TgZ(46,"p")(47,"mat-slide-toggle",29),r.SDv(48,30),r.qZA()(),r.TgZ(49,"p")(50,"mat-slide-toggle",31),r.SDv(51,32),r.qZA()()(),r._UZ(52,"br"),r.TgZ(53,"div")(54,"div",33)(55,"button",34),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw();return r.KtG(jt.onSaveEmailSetting())}),r.YNc(56,Oa,2,0,"span",9),r.YNc(57,cn,1,2,"mat-progress-spinner",35),r.qZA()()()()()()(),r.BQk()}if(2&Fe){const pe=r.oxw();r.xp6(8),r.Q6J("ngIf",pe.hideLanguage),r.xp6(4),r.Q6J("ngIf",pe.isLoading),r.xp6(2),r.Q6J("formGroup",pe.emailForm),r.xp6(6),r.Q6J("ngStyle",r.VKq(9,Yi,!0===pe._media.isActive("xs")?"normal":"none")),r.xp6(21),r.Q6J("ngIf",pe.isLoading),r.xp6(1),r.Q6J("formGroup",pe.emailForm),r.xp6(13),r.Q6J("disabled",pe.emailForm.disabled),r.xp6(1),r.Q6J("ngIf",!pe.emailForm.disabled),r.xp6(1),r.Q6J("ngIf",pe.emailForm.disabled)}}function Wi(Fe,er){1&Fe&&r._UZ(0,"app-page-loader")}let ra=(()=>{class Fe{constructor(pe,dt,jt,Ir,Ur){this._profileService=pe,this.notificationService=dt,this._media=jt,this.accountService=Ur,this._unsubscribeAll=new d.x,this.hideLanguage=!1,this.languageIcon="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/nl1/public",this.acountDetails={},this.currentRoute="email",this.language_code="",this.languageCode="",this.locale="nl",this.isLoading=!1,this.isSave=!1,this.emailForm=Ir.group({new_fundraiser_emails:[],transactional_emails:[],message_received:[],connect_fundraiser_emails:[],payout:[],recurring_donation_stopped:[],fundraiser_idea:[],fundraiser_updates:[],products_update:[],unsubscribe_all:[]}),this.getUserProfile()}ngAfterViewInit(){this.emailForm.get("unsubscribe_all")?.valueChanges.subscribe(pe=>{this.emailForm.disabled||(!0===pe&&this.emailForm.patchValue({new_fundraiser_emails:!1,transactional_emails:!1,message_received:!1,connect_fundraiser_emails:!1,payout:!1,recurring_donation_stopped:!1,fundraiser_updates:!1,fundraiser_idea:!1,products_update:!1}),!1===pe&&this.emailForm.patchValue(this._profileService.getEmailObj))}),this.emailForm.valueChanges.subscribe(pe=>{this.emailForm.patchValue({unsubscribe_all:!Object.values({new_fundraiser_emails:pe.new_fundraiser_emails,transactional_emails:pe.transactional_emails,message_received:pe.message_received,connect_fundraiser_emails:pe.connect_fundraiser_emails,payout:pe.payout,recurring_donation_stopped:pe.recurring_donation_stopped,fundraiser_updates:pe.fundraiser_updates,fundraiser_idea:pe.fundraiser_idea,products_update:pe.products_update}).find(jt=>!0===jt)},{emitEvent:!1})})}ngOnInit(){this.accountService.checkHeaders()&&(this.getUserProfile(),this._profileService.getEmailObj?this.emailForm.patchValue(this._profileService.getEmailObj):(this.isLoading=!0,this._profileService.getEmail().pipe((0,l.R)(this._unsubscribeAll)).subscribe(pe=>{let dt={new_fundraiser_emails:pe?.data?.profile?.new_fundraiser_emails,transactional_emails:pe?.data?.profile?.transactional_emails,message_received:pe?.data?.profile?.message_received,connect_fundraiser_emails:pe?.data?.profile?.connect_fundraiser_emails,payout:pe?.data?.profile?.payouts_emails,recurring_donation_stopped:pe?.data?.profile?.recurring_donation_stopped,fundraiser_updates:pe?.data?.profile?.fundraiser_updates,fundraiser_idea:pe?.data?.profile?.fundraiser_idea,products_update:pe?.data?.profile?.products_update};this.emailForm.patchValue(dt),this.emailForm.get("unsubscribe_all")?.setValue(!Object.values(dt).find(jt=>!0===jt)),this._profileService.setEmailObj=dt,this.isLoading=!1})))}ngOnDestroy(){this._unsubscribeAll.complete()}getUserProfile(){this.hideLanguage=!1,this._profileService.getProfile().pipe((0,l.R)(this._unsubscribeAll)).subscribe(pe=>{this.acountDetails=pe,this.language_code=pe?.data?.profile?.language_code,this.hideLanguage=!0,this.setLanguage()})}onSaveEmailSetting(){if(!this.emailForm.invalid&&(this.emailForm.disable({emitEvent:!1}),this.acountDetails&&this.acountDetails.data&&this.acountDetails.data.profile)){const pe={id:this.acountDetails.data.profile?.id,new_fundraiser_emails:this.emailForm?.controls.new_fundraiser_emails.value,message_received:this.emailForm?.controls.message_received.value,connect_fundraiser_emails:this.emailForm?.controls.connect_fundraiser_emails.value,transactional_emails:this.emailForm?.controls.transactional_emails.value,payout:this.emailForm?.controls.payout.value,recurring_donation_stopped:this.emailForm?.controls.recurring_donation_stopped.value,fundraiser_updates:this.emailForm?.controls.fundraiser_updates.value,fundraiser_idea:this.emailForm?.controls.fundraiser_idea.value,products_update:this.emailForm?.controls.products_update.value,language_code:this.locale};this._profileService.updateEmailSetting(pe).pipe((0,l.R)(this._unsubscribeAll)).subscribe(dt=>{this.notificationService.openNotification("A\u017Euriranje uspje\u0161no.","Close","success"),this._profileService.setEmailObj=pe,this.emailForm.enable({emitEvent:!1})},dt=>{this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","Close","error"),this.emailForm.enable()})}}changeLanguage(pe){ma.w.setUserlanguage(pe),this.languageCode=pe||this.language_code,this.setLanguage()}setLanguage(){switch(!0){case this.languageCode.includes("nl"):this.locale="nl";break;case this.languageCode.includes("es"):this.locale="es";break;case this.languageCode.includes("de"):this.locale="de";break;case this.languageCode.includes("fr"):this.locale="fr";break;case this.languageCode.includes("en"):this.locale="en";break;case this.languageCode.includes("bg"):this.locale="bg";break;case this.languageCode.includes("hr"):this.locale="hr";break;case this.languageCode.includes("cs"):this.locale="cs";break;case this.languageCode.includes("da"):this.locale="da";break;case this.languageCode.includes("fi"):this.locale="fi";break;case this.languageCode.includes("el"):this.locale="el";break;case this.languageCode.includes("hu"):this.locale="hu";break;case this.languageCode.includes("it"):this.locale="it";break;case this.languageCode.includes("pl"):this.locale="pl";break;case this.languageCode.includes("pt"):this.locale="pt";break;case this.languageCode.includes("ro"):this.locale="ro";break;case this.languageCode.includes("sk"):this.locale="sk";break;case this.languageCode.includes("sv"):this.locale="sv";break;case this.languageCode.includes("uk"):this.locale="uk";break;default:this.locale=this.language_code}this.languageIcon="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/"+this.locale?.substring(0,2).toLowerCase()+"1/public"}}return Fe.\u0275fac=function(pe){return new(pe||Fe)(r.Y36(E.H),r.Y36(V.g),r.Y36(c.u0),r.Y36(M.QS),r.Y36(n.B))},Fe.\u0275cmp=r.Xpm({type:Fe,selectors:[["app-email"]],decls:3,vars:2,consts:function(){let er,pe,dt,jt,Ir,Ur,En,Fn,qn,hi,_i,gi,oa,Ea,da,Za,va,co,ki,Li,Qo,ka,qo,Go,$o,Vo,ya,Ze,Wt,g,$,st,Bt;return er="Preferirani Jezik E-po\u0161te",pe="Obavijesti Putem E-po\u0161te",dt="Stvoren prikuplja\u010D sredstava",jt="Primljena donacija",Ir="Poruka primljena",Ur="Pove\u017Ei prikuplja\u010De sredstava",En="Isplata",Fn="Ponavljaju\u0107a donacija je zaustavljena",qn="A\u017Euriranja Za Sakuplja\u010D Sredstava",hi="Novosti",_i="Ideje za prikupljanje sredstava",gi="Va\u017Ene a\u017Euriranja proizvoda",oa="Odjava svih",Ea="EN - English",da="NL - Nederlands",Za="ES - Espa\xF1ol",va="DE - Deutsch",co="FR - Fran\xE7ais",ki="BG - Bulgarian",Li="HR - Croatian",Qo="CS - Czech",ka="DA - Danish",qo="FI - Finnish",Go="EL - Greek",$o="HU - Hungarian",Vo="IT - Italian",ya="PL - Polish",Ze="PT - Portuguese",Wt="RO - Romanian",g="SK - Slovak",$="SV - Swedish",st="UK - Ukranian",Bt="Spremi",[[4,"ngIf","ngIfElse"],["whydonateLoader",""],["ngClass","p-t-m p-l-xs"],["fxFlex","0 1 calc(40vw)","fxFlex.sm","100%","fxFlex.xs","1 1 calc(40vw)",1,"mat-elevation-z0"],["ngClass.lt-lg","m-t-xl"],["fxLayout","row"],er,["fxLayoutAlign","start start","ngClass","m-b-xl",4,"ngIf"],pe,[4,"ngIf"],[3,"formGroup"],["color","primary","formControlName","new_fundraiser_emails"],dt,["color","primary","formControlName","transactional_emails"],[3,"ngStyle"],jt,["color","primary","formControlName","message_received"],Ir,["color","primary","formControlName","connect_fundraiser_emails","id","connectFundraiser"],Ur,["color","primary","formControlName","payout"],En,["color","primary","formControlName","recurring_donation_stopped"],Fn,["color","primary","formControlName","fundraiser_updates"],qn,hi,["color","primary","formControlName","fundraiser_idea"],_i,["color","primary","formControlName","products_update"],gi,["color","primary","formControlName","unsubscribe_all"],oa,["fxLayout","row","fxLayoutAlign","end center"],["mat-flat-button","","color","accent","id","emailSave",1,"button-button-style",3,"disabled","click"],["style","padding-top: 4px",3,"diameter","mode",4,"ngIf"],["fxLayoutAlign","start start","ngClass","m-b-xl"],["mat-button","","color","primary",1,"language-chooser",3,"matMenuTriggerFor"],["width","28px",1,"default_icon",3,"src"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/keyboard_arrow_down/public"],[1,"translationMenuContainerDropDown"],["menu","matMenu"],["mat-menu-item","",1,"enChooser",3,"click"],["id","languageChooser_en_button"],Ea,["mat-menu-item","",1,"nlChooser",3,"click"],["id","languageChooser_nl_button"],da,["mat-menu-item","",1,"esChooser",3,"click"],["id","languageChooser_es_button"],Za,["mat-menu-item","",1,"deChooser",3,"click"],["id","languageChooser_de_button"],va,["mat-menu-item","",1,"frChooser",3,"click"],["id","languageChooser_fr_button"],co,["mat-menu-item","",1,"bgChooser",3,"click"],["id","languageChooser_bg_button"],ki,["mat-menu-item","",1,"hrChooser",3,"click"],["id","languageChooser_hr_button"],Li,["mat-menu-item","",1,"csChooser",3,"click"],["id","languageChooser_cs_button"],Qo,["mat-menu-item","",1,"daChooser",3,"click"],["id","languageChooser_da_button"],ka,["mat-menu-item","",1,"fiChooser",3,"click"],["id","languageChooser_fi_button"],qo,["mat-menu-item","",1,"elChooser",3,"click"],["id","languageChooser_el_button"],Go,["mat-menu-item","",1,"huChooser",3,"click"],["id","languageChooser_hu_button"],$o,["mat-menu-item","",1,"itChooser",3,"click"],["id","languageChooser_it_button"],Vo,["mat-menu-item","",1,"plChooser",3,"click"],["id","languageChooser_pl_button"],ya,["mat-menu-item","",1,"ptChooser",3,"click"],["id","languageChooser_pt_button"],Ze,["mat-menu-item","",1,"roChooser",3,"click"],["id","languageChooser_ro_button"],Wt,["mat-menu-item","",1,"skChooser",3,"click"],["id","languageChooser_sk_button"],g,["mat-menu-item","",1,"svChooser",3,"click"],["id","languageChooser_sv_button"],$,["mat-menu-item","",1,"ukChooser",3,"click"],["id","languageChooser_uk_button"],st,["color","primary","diameter","20"],Bt,[2,"padding-top","4px",3,"diameter","mode"]]},template:function(pe,dt){if(1&pe&&(r.YNc(0,wi,58,11,"ng-container",0),r.YNc(1,Wi,1,0,"ng-template",null,1,r.W1O)),2&pe){const jt=r.MAs(2);r.Q6J("ngIf",!dt.isLoading)("ngIfElse",jt)}},dependencies:[t.mk,t.O5,t.PC,M._Y,M.JJ,M.JL,M.sg,M.u,lr.Rr,bn.W0,bn.tN,bn.D8,Tt.S$,Tt.H7,Tt.Qi,Tt.mi,Tt._K,Ee.eB,j.Hw,Le.sN,ge.xw,ge.Wh,ge.yH,ue.oO,ue.Zl,B.f,t.rS],styles:[".default_icon[_ngcontent-%COMP%]{width:28px;height:28px}.language-chooser[_ngcontent-%COMP%]{color:#000;text-align:left;padding:0}"]}),Fe})();var ji=s(85041);function sa(Fe,er){1&Fe&&r._UZ(0,"app-page-loader")}function Ui(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",13),r._UZ(2,"img",14),r.TgZ(3,"span"),r.SDv(4,15),r.qZA()(),r.TgZ(5,"div",16)(6,"p"),r.SDv(7,17),r.qZA()()())}function na(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",13),r._UZ(2,"img",18),r.TgZ(3,"span"),r.SDv(4,19),r.qZA()(),r.TgZ(5,"div",16)(6,"p"),r.SDv(7,20),r.qZA()()())}function fa(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",13),r._UZ(2,"img",21),r.TgZ(3,"span"),r.SDv(4,22),r.qZA()(),r.TgZ(5,"div",16)(6,"p"),r.SDv(7,23),r.qZA()()())}function Co(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",13),r._UZ(2,"img",24),r.TgZ(3,"span"),r.SDv(4,25),r.qZA()(),r.TgZ(5,"div",16)(6,"p"),r.SDv(7,26),r.qZA()()())}function Fa(Fe,er){1&Fe&&r._UZ(0,"app-page-loader")}function la(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",13),r._UZ(2,"img",14),r.TgZ(3,"span"),r.SDv(4,27),r.qZA()(),r.TgZ(5,"div",16)(6,"p"),r.SDv(7,28),r.qZA()()())}function ho(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",13),r._UZ(2,"img",18),r.TgZ(3,"span"),r.SDv(4,29),r.qZA()(),r.TgZ(5,"div",16)(6,"p"),r.SDv(7,30),r.qZA()()())}function $i(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",13),r._UZ(2,"img",21),r.TgZ(3,"span"),r.SDv(4,31),r.qZA()(),r.TgZ(5,"div",16)(6,"p"),r.SDv(7,32),r.qZA()()())}function bo(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",13),r._UZ(2,"img",24),r.TgZ(3,"span"),r.SDv(4,33),r.qZA()(),r.TgZ(5,"div",16)(6,"p"),r.SDv(7,34),r.qZA()()())}function Ga(Fe,er){1&Fe&&r._UZ(0,"app-page-loader")}function mi(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",13),r._UZ(2,"img",14),r.TgZ(3,"span"),r.SDv(4,35),r.qZA()(),r.TgZ(5,"div",16)(6,"p"),r.SDv(7,36),r.qZA()()())}function Ct(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",13),r._UZ(2,"img",18),r.TgZ(3,"span"),r.SDv(4,37),r.qZA()(),r.TgZ(5,"div",16)(6,"p"),r.SDv(7,38),r.qZA()()())}function Dt(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",13),r._UZ(2,"img",21),r.TgZ(3,"span"),r.SDv(4,39),r.qZA()(),r.TgZ(5,"div",16)(6,"p"),r.SDv(7,40),r.qZA()()())}function ve(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",13),r._UZ(2,"img",24),r.TgZ(3,"span"),r.SDv(4,41),r.qZA()(),r.TgZ(5,"div",16)(6,"p"),r.SDv(7,42),r.qZA()()())}function Rt(Fe,er){1&Fe&&r._UZ(0,"app-page-loader")}function Dr(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",13),r._UZ(2,"img",14),r.TgZ(3,"span"),r.SDv(4,44),r.qZA()(),r.TgZ(5,"div",16)(6,"p"),r.SDv(7,45),r.qZA()()())}function kn(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",13),r._UZ(2,"img",18),r.TgZ(3,"span"),r.SDv(4,46),r.qZA()(),r.TgZ(5,"div",16)(6,"p"),r.SDv(7,47),r.qZA()()())}function wn(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",13),r._UZ(2,"img",21),r.TgZ(3,"span"),r.SDv(4,48),r.qZA()(),r.TgZ(5,"div",16)(6,"p"),r.SDv(7,49),r.qZA()()())}function Jn(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"div",13),r._UZ(2,"img",24),r.TgZ(3,"span"),r.SDv(4,50),r.qZA()(),r.TgZ(5,"div",16)(6,"p"),r.SDv(7,51),r.qZA()()())}function yn(Fe,er){if(1&Fe&&(r.TgZ(0,"div")(1,"div",4)(2,"mat-card-title"),r.SDv(3,43),r.qZA(),r.YNc(4,Rt,1,0,"app-page-loader",3),r.qZA(),r.YNc(5,Dr,8,0,"div",3),r.YNc(6,kn,8,0,"div",3),r.YNc(7,wn,8,0,"div",3),r.YNc(8,Jn,8,0,"div",3),r.qZA()),2&Fe){const pe=r.oxw();r.xp6(4),r.Q6J("ngIf",pe.pageLoading),r.xp6(1),r.Q6J("ngIf",pe.verifiedUboStatus),r.xp6(1),r.Q6J("ngIf",pe.unverifiedUboStatus),r.xp6(1),r.Q6J("ngIf",pe.pendingUboStatus),r.xp6(1),r.Q6J("ngIf",pe.initialUboStatus)}}function Mn(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon",52),r._UZ(1,"mat-spinner",53),r.qZA())}let $n=(()=>{class Fe{constructor(pe,dt,jt,Ir,Ur){this._bankService=pe,this.accountService=dt,this.notificationService=jt,this.currentRoute="personal-verification",this.verificationStatus=!1,this.pendingStatus=!1,this.disapprovedStatus=!1,this.initialStatus=!1,this.pendingContactStatus=!1,this.unverifiedContactStatus=!1,this.verifiedContactStatus=!1,this.initialContactStatus=!1,this.isLoading=!1,this.addButtonCheck=!1,this.pageLoading=!1,this.businessTypeCheck=!1,this.initialComplianceStatus=!1,this.pendingComplianceStatus=!1,this.unverifiedComplianceStatus=!1,this.verifiedComplianceStatus=!1,this.initialUboStatus=!1,this.pendingUboStatus=!1,this.unverifiedUboStatus=!1,this.verifiedUboStatus=!1,Ir.addSvgIconSet(Ur.bypassSecurityTrustResourceUrl("assets/icons/fundraiser-defs.svg"))}ngOnInit(){this.pageLoading=!0,this._bankService.getPersonalVerification().subscribe(pe=>{switch(this.pageLoading=!1,this.bankObject=pe?.data,this.businessTypeCheck="business"==this.bankObject.type,this.bankObject.contact_verification){case"pending":this.pendingStatus=!0,this.verificationStatus=!1,this.disapprovedStatus=!1,this.initialStatus=!1;break;case"verified":this.pendingStatus=!1,this.verificationStatus=!0,this.disapprovedStatus=!1,this.initialStatus=!1;break;case"unverified":this.pendingStatus=!1,this.verificationStatus=!1,this.disapprovedStatus=!0,this.initialStatus=!1;break;default:this.pendingStatus=!1,this.verificationStatus=!1,this.disapprovedStatus=!1,this.initialStatus=!0}switch(this.bankObject.contact_phonenumber){case"pending":this.pendingContactStatus=!0,this.verifiedContactStatus=!1,this.unverifiedContactStatus=!1,this.initialContactStatus=!1;break;case"unverified":this.pendingContactStatus=!1,this.verifiedContactStatus=!1,this.unverifiedContactStatus=!0,this.initialContactStatus=!1;break;case"verified":this.pendingContactStatus=!1,this.verifiedContactStatus=!0,this.unverifiedContactStatus=!1,this.initialContactStatus=!1;break;default:this.pendingContactStatus=!1,this.verifiedContactStatus=!1,this.unverifiedContactStatus=!1,this.initialContactStatus=!0}switch(this.bankObject.status){case"pending":this.pendingComplianceStatus=!0,this.verifiedComplianceStatus=!1,this.unverifiedComplianceStatus=!1,this.initialComplianceStatus=!1;break;case"unverified":this.pendingComplianceStatus=!1,this.verifiedComplianceStatus=!1,this.unverifiedComplianceStatus=!0,this.initialComplianceStatus=!1;break;case"verified":this.pendingComplianceStatus=!1,this.verifiedComplianceStatus=!0,this.unverifiedComplianceStatus=!1,this.initialComplianceStatus=!1;break;default:this.pendingComplianceStatus=!1,this.verifiedComplianceStatus=!1,this.unverifiedComplianceStatus=!1,this.initialComplianceStatus=!0}switch(this.bankObject.ubo_status){case"pending":this.pendingUboStatus=!0,this.verifiedUboStatus=!1,this.unverifiedUboStatus=!1,this.initialUboStatus=!1;break;case"verified":this.pendingUboStatus=!1,this.verifiedUboStatus=!0,this.unverifiedUboStatus=!1,this.initialUboStatus=!1;break;case"unverified":this.pendingUboStatus=!1,this.verifiedUboStatus=!1,this.unverifiedUboStatus=!0,this.initialUboStatus=!1;break;default:this.pendingUboStatus=!1,this.verifiedUboStatus=!1,this.unverifiedUboStatus=!1,this.initialUboStatus=!0}})}addPersonalVerification(){this.accountService.checkHeaders()&&(this.isLoading=!0,this._bankService.addPersonalVerification([{}]).subscribe(dt=>{this.personalVerificationObj=dt,this.isLoading=!1,window.open(this.personalVerificationObj.data.overview_url),this.addButtonCheck=!0},dt=>{this.isLoading=!1,this.notificationService.openNotification("Do\u0161lo je do pogre\u0161ke.","OK","error")}))}}return Fe.\u0275fac=function(pe){return new(pe||Fe)(r.Y36(m.y),r.Y36(n.B),r.Y36(V.g),r.Y36(j.jv),r.Y36(Ge.H7))},Fe.\u0275cmp=r.Xpm({type:Fe,selectors:[["app-personal-verification"]],decls:34,vars:17,consts:function(){let er,pe,dt,jt,Ir,Ur,En,Fn,qn,hi,_i,gi,oa,Ea,da,Za,va,co,ki,Li,Qo,ka,qo,Go,$o,Vo,ya,Ze,Wt,g,$,st,Bt,hr,Xr,fn,Kn;return er="Identitet",pe="Broj Telefona",dt="Compliance Verification Status",jt="Dodaj Dokumente",Ir="Verificirano",Ur="Identitet je provjeren",En="Nepotvr\u0111eno",Fn="Molimo dodajte sve potrebne verifikacijske dokumente kako biste po\u010Deli primati isplate Kliknite gumb u nastavku za po\u010Detak.",qn="Pod Pregledom",hi="Verifikacija je pod pregledom Nakon promjene statusa, ova \u0107e se stranica a\u017Eurirati, a bit \u0107ete obavije\u0161teni putem e-po\u0161te.",_i="Jo\u0161 uvijek nije pokrenuto",gi="Molimo potvrdite svoj identitet da biste po\u010Deli primati isplate.",oa="Verificirano",Ea="Broj telefona je provjeren.",da="Nepotvr\u0111eno",Za=" The provided details are not sufficient. You will be contacted by Online Payment Platform through the following email no-reply@onlinepaymentplatform.com. Please follow the instruction in the email. ",va="Pod Pregledom",co="Broj telefona provjera je pod pregledom To mo\u017Ee potrajati nekoliko dana.",ki="Jo\u0161 uvijek nije pokrenuto",Li="Molimo potvrdite svoj telefonski broj kako biste po\u010Deli primati isplate.",Qo="Verificirano",ka="Sva provjera je zavr\u0161ena Sada mo\u017Eete primati isplate.",qo="Nepotvr\u0111eno",Go=" The provided details are not sufficient. You will be contacted by Online Payment Platform through the following email no-reply@onlinepaymentplatform.com. Please follow the instruction in the email. ",$o="Pod Pregledom",Vo="Dokumenti su pod pregledom Ovo mo\u017Ee potrajati nekoliko dana.",ya="Jo\u0161 uvijek nije pokrenuto",Ze="Molimo dodajte dokumente za provjeru identiteta kako biste po\u010Deli primati isplate Ve\u0107 mo\u017Eete po\u010Deti prikupljati donacije Gumbi za donacije su aktivni.",Wt="Kona\u010Dni Stvarni Vlasnik",g="Verificirano",$="Kona\u010Dni korisnik je provjeren.",st="Nepotvr\u0111eno",Bt=" The provided details are not sufficient. You will be contacted by Online Payment Platform through the following email no-reply@onlinepaymentplatform.com. Please follow the instruction in the email. ",hr="Pod Pregledom",Xr="Provjeru kona\u010Dnog korisnika treba pregledati To mo\u017Ee potrajati nekoliko dana.",fn="Jo\u0161 uvijek nije pokrenuto",Kn="Molimo provjerite kona\u010Dnog korisnika kako biste zapo\u010Deli primanje isplata.",[["fxFlex","0 1 calc(40vw)","fxFlex.sm","100%","fxFlex.xs","1 1 calc(40vw)",1,"mat-elevation-z0"],["ngClass.lt-lg","m-t-xl"],er,[4,"ngIf"],["ngClass.lg","m-t-l"],pe,dt,["inset",""],["ngClass","m-t-m"],["fxLayout","column","fxLayoutAlign","start start","ngClass","m-t-m"],["color","accent","mat-flat-button","",3,"click"],jt,["class","m-l-xs",4,"ngIf"],["fxLayout","row","fxLayoutGap","2%","ngClass","m-t-m","fxLayoutAlign","start center"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/checkCirclePrimary/public"],Ir,["fxLayout","row","ngClass","m-t-s"],Ur,["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/closeWarn/public"],En,Fn,["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/infoAccent/public"],qn,hi,["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/circleOutline/public"],_i,gi,oa,Ea,da,Za,va,co,ki,Li,Qo,ka,qo,Go,$o,Vo,ya,Ze,Wt,g,$,st,Bt,hr,Xr,fn,Kn,[1,"m-l-xs"],["color","primary","diameter","20"]]},template:function(pe,dt){1&pe&&(r.TgZ(0,"mat-card",0)(1,"div",1)(2,"mat-card-title"),r.SDv(3,2),r.qZA(),r.YNc(4,sa,1,0,"app-page-loader",3),r.YNc(5,Ui,8,0,"div",3),r.YNc(6,na,8,0,"div",3),r.YNc(7,fa,8,0,"div",3),r.YNc(8,Co,8,0,"div",3),r.TgZ(9,"div",4)(10,"mat-card-title"),r.SDv(11,5),r.qZA(),r.YNc(12,Fa,1,0,"app-page-loader",3),r.qZA(),r.YNc(13,la,8,0,"div",3),r.YNc(14,ho,8,0,"div",3),r.YNc(15,$i,8,0,"div",3),r.YNc(16,bo,8,0,"div",3),r.TgZ(17,"div",4)(18,"mat-card-title"),r.SDv(19,6),r.qZA(),r.YNc(20,Ga,1,0,"app-page-loader",3),r.qZA(),r.YNc(21,mi,8,0,"div",3),r.YNc(22,Ct,8,0,"div",3),r.YNc(23,Dt,8,0,"div",3),r.YNc(24,ve,8,0,"div",3),r.YNc(25,yn,9,5,"div",3),r._UZ(26,"mat-divider",7),r.TgZ(27,"mat-card-content",8)(28,"div")(29,"div",9)(30,"button",10),r.NdJ("click",function(){return dt.addPersonalVerification()}),r.TgZ(31,"span"),r.SDv(32,11),r.qZA(),r.YNc(33,Mn,2,0,"mat-icon",12),r.qZA()()()()()()),2&pe&&(r.xp6(4),r.Q6J("ngIf",dt.pageLoading),r.xp6(1),r.Q6J("ngIf",dt.verificationStatus),r.xp6(1),r.Q6J("ngIf",dt.disapprovedStatus),r.xp6(1),r.Q6J("ngIf",dt.pendingStatus),r.xp6(1),r.Q6J("ngIf",dt.initialStatus),r.xp6(4),r.Q6J("ngIf",dt.pageLoading),r.xp6(1),r.Q6J("ngIf",dt.verifiedContactStatus),r.xp6(1),r.Q6J("ngIf",dt.unverifiedContactStatus),r.xp6(1),r.Q6J("ngIf",dt.pendingContactStatus),r.xp6(1),r.Q6J("ngIf",dt.initialContactStatus),r.xp6(4),r.Q6J("ngIf",dt.pageLoading),r.xp6(1),r.Q6J("ngIf",dt.verifiedComplianceStatus),r.xp6(1),r.Q6J("ngIf",dt.unverifiedComplianceStatus),r.xp6(1),r.Q6J("ngIf",dt.pendingComplianceStatus),r.xp6(1),r.Q6J("ngIf",dt.initialComplianceStatus),r.xp6(1),r.Q6J("ngIf",dt.businessTypeCheck),r.xp6(8),r.Q6J("ngIf",dt.isLoading))},dependencies:[t.mk,t.O5,Tt.S$,Tt.Qi,Tt.mi,Et.d,Ee.eB,j.Hw,Le.sN,ge.xw,ge.SQ,ge.Wh,ge.yH,ue.oO,B.f]}),Fe})();var ia=s(21802),Ua=s(68550),qa=s(26191),ro=s(80398),Na=s(43719),ga=s(16124);function Ka(Fe,er){1&Fe&&r._UZ(0,"app-bank")}function Mi(Fe,er){1&Fe&&(r.TgZ(0,"div")(1,"mat-card",25)(2,"div",26)(3,"div"),r._UZ(4,"img",27),r.qZA(),r.TgZ(5,"span",28),r.SDv(6,29),r.qZA()()()())}function Bi(Fe,er){1&Fe&&(r.TgZ(0,"div",18)(1,"p"),r.SDv(2,30),r.qZA()())}function Xi(Fe,er){1&Fe&&(r.TgZ(0,"div",18)(1,"p"),r.SDv(2,31),r.qZA()())}function Aa(Fe,er){1&Fe&&(r.TgZ(0,"div",18)(1,"p"),r.SDv(2,32),r.qZA()())}function wa(Fe,er){1&Fe&&(r.TgZ(0,"div",33),r._UZ(1,"img",34),r.TgZ(2,"h4"),r.SDv(3,35),r.qZA()())}function Eo(Fe,er){1&Fe&&(r.TgZ(0,"div",33),r._UZ(1,"img",36),r.TgZ(2,"h4"),r.SDv(3,37),r.qZA()())}function To(Fe,er){1&Fe&&(r.TgZ(0,"div",33),r._UZ(1,"img",38),r.TgZ(2,"h4"),r.SDv(3,39),r.qZA()())}function Pi(Fe,er){1&Fe&&(r.TgZ(0,"div",33),r._UZ(1,"img",34),r.TgZ(2,"h4"),r.SDv(3,40),r.qZA()())}function Ji(Fe,er){1&Fe&&(r.TgZ(0,"div",33),r._UZ(1,"img",36),r.TgZ(2,"h4"),r.SDv(3,41),r.qZA()())}function Va(Fe,er){1&Fe&&(r.TgZ(0,"div",33),r._UZ(1,"img",38),r.TgZ(2,"h4"),r.SDv(3,42),r.qZA()())}function Qi(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon",46),r._UZ(1,"mat-spinner",47),r.qZA())}function Ri(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"div",43)(1,"button",44),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(5);return r.KtG(jt.stripeDashboard())}),r.TgZ(2,"span"),r.SDv(3,45),r.qZA(),r.YNc(4,Qi,2,0,"mat-icon",12),r.qZA()()}if(2&Fe){const pe=r.oxw(5);r.xp6(1),r.Q6J("disabled",pe.stripeDashboardCheck||pe.stripeDashboardDisabled),r.xp6(3),r.Q6J("ngIf",pe.stripeDashboardCheck)}}function xo(Fe,er){1&Fe&&(r.TgZ(0,"div",48),r.SDv(1,49),r.qZA())}function so(Fe,er){if(1&Fe&&(r.TgZ(0,"mat-option",70),r._uU(1),r.qZA()),2&Fe){const pe=er.$implicit;r.Q6J("value",pe.intervalName),r.xp6(1),r.hij(" ",pe.displayName," ")}}function Ra(Fe,er){1&Fe&&(r.TgZ(0,"div",71)(1,"span"),r.SDv(2,72),r.qZA()())}function hs(Fe,er){if(1&Fe&&(r.TgZ(0,"mat-option",70),r._uU(1),r.qZA()),2&Fe){const pe=er.$implicit;r.Q6J("value",pe.anchorName),r.xp6(1),r.hij(" ",pe.displayName," ")}}function Lo(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"mat-form-field",58)(1,"mat-select",73,74),r.NdJ("selectionChange",function(){r.CHM(pe);const jt=r.oxw(6);return r.KtG(jt.flagValue())}),r.YNc(3,hs,2,2,"mat-option",61),r.qZA()()}if(2&Fe){const pe=r.oxw(6);r.xp6(1),r.Q6J("formControl",pe.state),r.xp6(2),r.Q6J("ngForOf",pe.anchorsFiltered)}}function Mo(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"div",50)(1,"mat-card-title",15),r.SDv(2,51),r.qZA(),r.TgZ(3,"p"),r.SDv(4,52),r.qZA()(),r.TgZ(5,"mat-radio-group")(6,"div",53)(7,"div",54)(8,"mat-radio-button",55),r.NdJ("change",function(jt){r.CHM(pe);const Ir=r.oxw(5);return r.KtG(Ir.switchPayout(jt.value))}),r.TgZ(9,"div")(10,"span"),r.SDv(11,56),r.qZA()()(),r.TgZ(12,"div",57)(13,"mat-form-field",58)(14,"mat-select",59,60),r.YNc(16,so,2,2,"mat-option",61),r.qZA()()(),r.YNc(17,Ra,3,0,"div",62),r.TgZ(18,"div",63),r.YNc(19,Lo,4,2,"mat-form-field",64),r.qZA()(),r.TgZ(20,"div",65)(21,"mat-radio-button",66),r.NdJ("change",function(jt){r.CHM(pe);const Ir=r.oxw(5);return r.KtG(Ir.switchPayout(jt.value))}),r.TgZ(22,"div")(23,"span"),r.SDv(24,67),r.qZA()()(),r.TgZ(25,"div",68)(26,"h5"),r.SDv(27,69),r.qZA()()()()()}if(2&Fe){const pe=r.oxw(5);r.xp6(8),r.Q6J("checked","manual"!=pe.selectedInterval),r.xp6(6),r.Q6J("formControl",pe.interval),r.xp6(2),r.Q6J("ngForOf",pe.payoutScheduleData.List),r.xp6(1),r.Q6J("ngIf",pe.anchorsFiltered&&pe.anchorsFiltered.length),r.xp6(2),r.Q6J("ngIf",pe.anchorsFiltered&&pe.anchorsFiltered.length),r.xp6(2),r.Q6J("checked","manual"==pe.selectedInterval)}}function eo(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon",46),r._UZ(1,"mat-spinner",47),r.qZA())}function Bo(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"div",43)(1,"button",75),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(5);return r.KtG(jt.verifyWithStripeEmbeddedAccountOnboard())}),r.TgZ(2,"span"),r.SDv(3,76),r.qZA(),r.YNc(4,eo,2,0,"mat-icon",12),r.qZA()()}if(2&Fe){const pe=r.oxw(5);r.xp6(1),r.Q6J("disabled",pe.stripeVerificationCheck),r.xp6(3),r.Q6J("ngIf",pe.stripeVerificationCheck)}}function Oo(Fe,er){if(1&Fe&&(r.YNc(0,Mi,7,0,"div",13),r.TgZ(1,"div",14)(2,"mat-card-title",15),r.SDv(3,16),r.qZA()(),r.TgZ(4,"div"),r.YNc(5,Bi,3,0,"div",17),r.qZA(),r.TgZ(6,"div"),r.YNc(7,Xi,3,0,"div",17),r.qZA(),r.TgZ(8,"div"),r.YNc(9,Aa,3,0,"div",17),r.qZA(),r.TgZ(10,"div")(11,"div",18)(12,"h2",19),r.SDv(13,20),r.qZA()(),r.YNc(14,wa,4,0,"div",21),r.YNc(15,Eo,4,0,"div",21),r.YNc(16,To,4,0,"div",21),r.qZA(),r.TgZ(17,"div")(18,"div",18)(19,"h2",19),r.SDv(20,22),r.qZA()(),r.YNc(21,Pi,4,0,"div",21),r.YNc(22,Ji,4,0,"div",21),r.YNc(23,Va,4,0,"div",21),r.qZA(),r.YNc(24,Ri,5,2,"div",23),r.YNc(25,xo,2,0,"div",24),r.YNc(26,Mo,28,6,"ng-template",7),r.YNc(27,Bo,5,2,"div",23)),2&Fe){const pe=r.oxw(4);r.Q6J("ngIf",1==pe.detailsSubmitted&&0==pe.chargesEnabled&&0==pe.payoutEnabled),r.xp6(5),r.Q6J("ngIf",0==pe.detailsSubmitted&&0==pe.chargesEnabled&&0==pe.payoutEnabled||0==pe.detailsSubmitted&&1==pe.chargesEnabled&&1==pe.payoutEnabled),r.xp6(2),r.Q6J("ngIf",1==pe.detailsSubmitted&&(0==pe.chargesEnabled||0==pe.payoutEnabled)),r.xp6(2),r.Q6J("ngIf",1==pe.detailsSubmitted&&1==pe.chargesEnabled&&1==pe.payoutEnabled),r.xp6(5),r.Q6J("ngIf",1==pe.chargesEnabled&&1==pe.detailsSubmitted),r.xp6(1),r.Q6J("ngIf",1==pe.detailsSubmitted&&0==pe.chargesEnabled),r.xp6(1),r.Q6J("ngIf",0==pe.detailsSubmitted&&0==pe.chargesEnabled||0==pe.detailsSubmitted&&1==pe.chargesEnabled),r.xp6(5),r.Q6J("ngIf",1==pe.payoutEnabled&&1==pe.detailsSubmitted),r.xp6(1),r.Q6J("ngIf",1==pe.detailsSubmitted&&0==pe.payoutEnabled),r.xp6(1),r.Q6J("ngIf",0==pe.detailsSubmitted&&0==pe.payoutEnabled||0==pe.detailsSubmitted&&1==pe.payoutEnabled),r.xp6(1),r.Q6J("ngIf",1==pe.detailsSubmitted),r.xp6(1),r.Q6J("ngIf",1==pe.detailsSubmitted&&(0==pe.chargesEnabled||0==pe.payoutEnabled)),r.xp6(1),r.Q6J("ngIf",1==pe.detailsSubmitted&&1==pe.chargesEnabled&&1==pe.payoutEnabled),r.xp6(1),r.Q6J("ngIf",0==pe.detailsSubmitted)}}function Qn(Fe,er){1&Fe&&(r.TgZ(0,"div",18)(1,"p"),r.SDv(2,81),r.qZA()())}function vo(Fe,er){1&Fe&&(r.TgZ(0,"div",18)(1,"p"),r.SDv(2,82),r.qZA()())}function rt(Fe,er){1&Fe&&(r.TgZ(0,"div",18)(1,"p"),r.SDv(2,83),r.qZA()())}function je(Fe,er){1&Fe&&(r.TgZ(0,"div",33),r._UZ(1,"img",34),r.TgZ(2,"h4"),r.SDv(3,84),r.qZA()())}function Ue(Fe,er){1&Fe&&(r.TgZ(0,"div",33),r._UZ(1,"img",36),r.TgZ(2,"h4"),r.SDv(3,85),r.qZA()())}function Yt(Fe,er){1&Fe&&(r.TgZ(0,"div",33),r._UZ(1,"img",38),r.TgZ(2,"h4"),r.SDv(3,86),r.qZA()())}function Yr(Fe,er){1&Fe&&(r.TgZ(0,"div",33),r._UZ(1,"img",34),r.TgZ(2,"h4"),r.SDv(3,87),r.qZA()())}function Un(Fe,er){1&Fe&&(r.TgZ(0,"div",33),r._UZ(1,"img",36),r.TgZ(2,"h4"),r.SDv(3,88),r.qZA()())}function pa(Fe,er){1&Fe&&(r.TgZ(0,"div",33),r._UZ(1,"img",38),r.TgZ(2,"h4"),r.SDv(3,89),r.qZA()())}function Wr(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon",46),r._UZ(1,"mat-spinner",47),r.qZA())}function ii(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"div",43)(1,"button",90)(2,"span",10),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(5);return r.KtG(jt.stripeDashboard())}),r.SDv(3,91),r.qZA(),r.YNc(4,Wr,2,0,"mat-icon",12),r.qZA()()}if(2&Fe){const pe=r.oxw(5);r.xp6(1),r.Q6J("disabled",pe.stripeDashboardCheck),r.xp6(3),r.Q6J("ngIf",pe.stripeDashboardCheck)}}function xi(Fe,er){1&Fe&&(r.TgZ(0,"div",48),r.SDv(1,92),r.qZA())}function Jo(Fe,er){if(1&Fe&&(r.TgZ(0,"mat-option",70),r._uU(1),r.qZA()),2&Fe){const pe=er.$implicit;r.Q6J("value",pe.intervalName),r.xp6(1),r.hij(" ",pe.displayName," ")}}function Wa(Fe,er){1&Fe&&(r.TgZ(0,"div",71)(1,"span"),r.SDv(2,98),r.qZA()())}function vs(Fe,er){if(1&Fe&&(r.TgZ(0,"mat-option",70),r._uU(1),r.qZA()),2&Fe){const pe=er.$implicit;r.Q6J("value",pe.anchorName),r.xp6(1),r.hij(" ",pe.displayName," ")}}function is(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"mat-form-field",58)(1,"mat-select",73,74),r.NdJ("selectionChange",function(){r.CHM(pe);const jt=r.oxw(6);return r.KtG(jt.flagValue())}),r.YNc(3,vs,2,2,"mat-option",61),r.qZA()()}if(2&Fe){const pe=r.oxw(6);r.xp6(1),r.Q6J("formControl",pe.state),r.xp6(2),r.Q6J("ngForOf",pe.anchorsFiltered)}}function no(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"div",50)(1,"mat-card-title",15),r.SDv(2,93),r.qZA(),r.TgZ(3,"p"),r.SDv(4,94),r.qZA()(),r.TgZ(5,"mat-radio-group")(6,"div",53)(7,"div",54)(8,"mat-radio-button",55),r.NdJ("change",function(jt){r.CHM(pe);const Ir=r.oxw(5);return r.KtG(Ir.switchPayout(jt.value))}),r.TgZ(9,"div")(10,"span"),r.SDv(11,95),r.qZA()()(),r.TgZ(12,"div",57)(13,"mat-form-field",58)(14,"mat-select",59,60),r.YNc(16,Jo,2,2,"mat-option",61),r.qZA()()(),r.YNc(17,Wa,3,0,"div",62),r.TgZ(18,"div",63),r.YNc(19,is,4,2,"mat-form-field",64),r.qZA()(),r.TgZ(20,"div",65)(21,"mat-radio-button",66),r.NdJ("change",function(jt){r.CHM(pe);const Ir=r.oxw(5);return r.KtG(Ir.switchPayout(jt.value))}),r.TgZ(22,"div")(23,"span"),r.SDv(24,96),r.qZA()()(),r.TgZ(25,"div",68)(26,"h5"),r.SDv(27,97),r.qZA()()()()()}if(2&Fe){const pe=r.oxw(5);r.xp6(8),r.Q6J("checked","manual"!=pe.selectedInterval),r.xp6(6),r.Q6J("formControl",pe.interval),r.xp6(2),r.Q6J("ngForOf",pe.payoutScheduleData.List),r.xp6(1),r.Q6J("ngIf",pe.anchorsFiltered&&pe.anchorsFiltered.length),r.xp6(2),r.Q6J("ngIf",pe.anchorsFiltered&&pe.anchorsFiltered.length),r.xp6(2),r.Q6J("checked","manual"==pe.selectedInterval)}}function Zo(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon",46),r._UZ(1,"mat-spinner",47),r.qZA())}function mt(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"div",43)(1,"button",75),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(5);return r.KtG(jt.verifyWithStripeEmbeddedAccountOnboard())}),r.TgZ(2,"span"),r.SDv(3,99),r.qZA(),r.YNc(4,Zo,2,0,"mat-icon",12),r.qZA()()}if(2&Fe){const pe=r.oxw(5);r.xp6(1),r.Q6J("disabled",pe.stripeVerificationCheck),r.xp6(3),r.Q6J("ngIf",pe.stripeVerificationCheck)}}function Xt(Fe,er){if(1&Fe&&(r._UZ(0,"app-bank")(1,"mat-divider",77),r.TgZ(2,"div",14)(3,"mat-card-title",15),r.SDv(4,78),r.qZA()(),r.TgZ(5,"div"),r.YNc(6,Qn,3,0,"div",17),r.qZA(),r.TgZ(7,"div"),r.YNc(8,vo,3,0,"div",17),r.qZA(),r.TgZ(9,"div"),r.YNc(10,rt,3,0,"div",17),r.qZA(),r.TgZ(11,"div")(12,"div",18)(13,"h2",19),r.SDv(14,79),r.qZA()(),r.YNc(15,je,4,0,"div",21),r.YNc(16,Ue,4,0,"div",21),r.YNc(17,Yt,4,0,"div",21),r.qZA(),r.TgZ(18,"div")(19,"div",18)(20,"h2",19),r.SDv(21,80),r.qZA()(),r.YNc(22,Yr,4,0,"div",21),r.YNc(23,Un,4,0,"div",21),r.YNc(24,pa,4,0,"div",21),r.qZA(),r.YNc(25,ii,5,2,"div",23),r.YNc(26,xi,2,0,"div",24),r.YNc(27,no,28,6,"ng-template",7),r.YNc(28,mt,5,2,"div",23)),2&Fe){const pe=r.oxw(4);r.xp6(6),r.Q6J("ngIf",0==pe.detailsSubmitted&&0==pe.chargesEnabled&&0==pe.payoutEnabled||0==pe.detailsSubmitted&&1==pe.chargesEnabled&&1==pe.payoutEnabled),r.xp6(2),r.Q6J("ngIf",1==pe.detailsSubmitted&&(0==pe.chargesEnabled||0==pe.payoutEnabled)),r.xp6(2),r.Q6J("ngIf",1==pe.detailsSubmitted&&1==pe.chargesEnabled&&1==pe.payoutEnabled),r.xp6(5),r.Q6J("ngIf",1==pe.chargesEnabled),r.xp6(1),r.Q6J("ngIf",1==pe.detailsSubmitted&&0==pe.chargesEnabled),r.xp6(1),r.Q6J("ngIf",0==pe.detailsSubmitted&&0==pe.chargesEnabled||0==pe.detailsSubmitted&&1==pe.chargesEnabled),r.xp6(5),r.Q6J("ngIf",1==pe.payoutEnabled),r.xp6(1),r.Q6J("ngIf",1==pe.detailsSubmitted&&0==pe.payoutEnabled),r.xp6(1),r.Q6J("ngIf",0==pe.detailsSubmitted&&0==pe.payoutEnabled||0==pe.detailsSubmitted&&1==pe.payoutEnabled),r.xp6(1),r.Q6J("ngIf",1==pe.detailsSubmitted),r.xp6(1),r.Q6J("ngIf",1==pe.detailsSubmitted&&(0==pe.chargesEnabled||0==pe.payoutEnabled)),r.xp6(1),r.Q6J("ngIf",1==pe.detailsSubmitted&&1==pe.chargesEnabled&&1==pe.payoutEnabled),r.xp6(1),r.Q6J("ngIf",0==pe.detailsSubmitted)}}function or(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon",46),r._UZ(1,"mat-spinner",47),r.qZA())}function mr(Fe,er){if(1&Fe){const pe=r.EpF();r.YNc(0,Ka,1,0,"ng-template",7),r.YNc(1,Oo,28,14,"ng-template",7),r.YNc(2,Xt,29,13,"ng-template",7),r.TgZ(3,"div",8)(4,"button",9)(5,"span",10),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw(3);return r.KtG(jt.saveSchedule())}),r.SDv(6,11),r.qZA(),r.YNc(7,or,2,0,"mat-icon",12),r.qZA()()}if(2&Fe){const pe=r.oxw(3);r.Q6J("ngIf",1==pe.showOppOnly),r.xp6(1),r.Q6J("ngIf",1==pe.showStripeOnly),r.xp6(1),r.Q6J("ngIf",1==pe.showStripeAndOpp),r.xp6(2),r.Q6J("disabled",!pe.tempBoolean),r.xp6(3),r.Q6J("ngIf",pe.isLoading)}}function Or(Fe,er){1&Fe&&(r._UZ(0,"br")(1,"br"),r.TgZ(2,"div",100)(3,"mat-icon"),r._UZ(4,"mat-spinner",101),r.qZA()(),r._UZ(5,"br")(6,"br"))}function Vr(Fe,er){if(1&Fe&&(r.ynx(0),r.TgZ(1,"div",3)(2,"mat-card",4),r.YNc(3,mr,8,5,"ng-template",5),r.qZA()(),r.YNc(4,Or,7,0,"ng-template",null,6,r.W1O),r.BQk()),2&Fe){r.oxw();const pe=r.MAs(2),dt=r.oxw();r.xp6(3),r.Q6J("ngIf",1==dt.showOppOnly||1==dt.showStripeOnly||1==dt.showStripeAndOpp)("ngIfElse",pe)}}function Qr(Fe,er){1&Fe&&r._UZ(0,"app-page-loader")}function qr(Fe,er){if(1&Fe&&(r.YNc(0,Vr,6,2,"ng-container",1),r.YNc(1,Qr,1,0,"ng-template",null,2,r.W1O)),2&Fe){const pe=r.MAs(2),dt=r.oxw();r.Q6J("ngIf",!dt.isLoading)("ngIfElse",pe)}}function Tn(Fe,er){1&Fe&&(r.ynx(0),r.TgZ(1,"div",102)(2,"div",103)(3,"div",104)(4,"div",105)(5,"div",104),r._UZ(6,"img",106)(7,"mat-progress-bar",107)(8,"img",108),r.qZA(),r.TgZ(9,"div",104)(10,"div",109)(11,"h2"),r.SDv(12,110),r.qZA(),r.TgZ(13,"label"),r.SDv(14,111),r.qZA()()()()()()(),r.BQk())}let si=(()=>{class Fe{constructor(pe,dt,jt,Ir,Ur,En,Fn,qn,hi){this.changeDetectorRef=pe,this._bankService=dt,this._notificationService=jt,this._profileService=Ir,this._balanceService=Ur,this._accountService=En,this.analyticsService=Fn,this.dialog=hi,this.stripeStatus={},this.tempBoolean=!1,this.interval=new M.NI,this.state=new M.NI,this.isLoading=!1,this.stripeVerificationCheck=!1,this.stripeDashboardCheck=!1,this.stripeDashboardDisabled=!1,this.anchorsFiltered=[],this.selectedInterval="",this.selectedAnchor="",this.currentRoute="payout-settings",this.firstDonationReceived=0,this.merchantOnboardingData={},this.showStripeAndOpp=!1,this.showStripeOnly=!1,this.showOppOnly=!1,this.stripeNotification=new r.vpe,this.activeOPPDonationCount={},this.manualCheck=!1,this.payoutScheduledInterval="",this.payoutScheduledAttribute="",this.first=!0,this.second=!0,this.third=!1,this.valueIntialized=!1,this.showVerificationProgress=!1,this.payoutScheduleData={List:[{id:0,displayName:"mjesec",intervalName:"monthly",States:[{id:0,anchorName:"1",displayName:"1"},{id:1,anchorName:"2",displayName:"2"},{id:2,anchorName:"3",displayName:"3"},{id:3,anchorName:"4",displayName:"4"},{id:4,anchorName:"5",displayName:"5"},{id:5,anchorName:"6",displayName:"6"},{id:6,anchorName:"7",displayName:"7"},{id:7,anchorName:"8",displayName:"8"},{id:8,anchorName:"9",displayName:"9"},{id:9,anchorName:"10",displayName:"10"},{id:10,anchorName:"11",displayName:"11"},{id:11,anchorName:"12",displayName:"12"},{id:12,anchorName:"13",displayName:"13"},{id:13,anchorName:"14",displayName:"14"},{id:14,anchorName:"15",displayName:"15"},{id:15,anchorName:"16",displayName:"16"},{id:16,anchorName:"17",displayName:"17"},{id:17,anchorName:"18",displayName:"18"},{id:18,anchorName:"19",displayName:"19"},{id:19,anchorName:"20",displayName:"20"},{id:20,anchorName:"21",displayName:"21"},{id:21,anchorName:"22",displayName:"22"},{id:22,anchorName:"23",displayName:"23"},{id:23,anchorName:"24",displayName:"24"},{id:24,anchorName:"25",displayName:"25"},{id:25,anchorName:"26",displayName:"26"},{id:26,anchorName:"27",displayName:"27"},{id:27,anchorName:"28",displayName:"28"},{id:28,anchorName:"29",displayName:"29"},{id:29,anchorName:"30",displayName:"30"},{id:30,anchorName:"31",displayName:"31"}]},{id:1,displayName:"tjedan",intervalName:"weekly",States:[{id:0,displayName:"ponedjeljak",anchorName:"monday"},{id:1,displayName:"utorak",anchorName:"tuesday"},{id:2,displayName:"srijeda",anchorName:"wednesday"},{id:3,displayName:"\u010Detvrtak",anchorName:"thursday"},{id:4,displayName:"petak",anchorName:"friday"},{id:5,displayName:"subota",anchorName:"saturday"},{id:6,displayName:"nedjelja",anchorName:"sunday"}]}]},this._router=qn}ngOnInit(){this.user=localStorage.getItem("user"),this._bankService.getStripeStatus().subscribe(dt=>{("rejected.other"===dt?.data?.status||"rejected.terms_of_service"===dt?.data?.status||"rejected.fraud"===dt?.data?.status)&&(this.stripeDashboardDisabled=!0),!1===dt?.data?.status&&this.openCountrySelectDialog()}),this.interval.valueChanges.subscribe(dt=>{this.selectedInterval=dt,this.anchorsFiltered=[],this.changeDetectorRef.detectChanges();const jt=this.payoutScheduleData.List.find(Ir=>Ir.intervalName===this.selectedInterval);jt?(this.valueIntialized&&(jt.displayName!=this.userIntervalValue?(this.state.setValue(jt.States[0].anchorName.toString()),this.tempBoolean=!0):(this.state.setValue(this.userStateValue.toString()),this.tempBoolean=!1)),this.anchorsFiltered=jt.States):this.anchorsFiltered=[]}),this.state.valueChanges.subscribe(dt=>{this.selectedAnchor=dt}),"/profile/payout-settings/account_onboarding"===this._profileService.getPreviousUrl()?(this.showVerificationProgress=!0,setTimeout(()=>{this.loadPayoutSettings(),this.showVerificationProgress=!1},4e3)):this.isLoading=!1}ngAfterViewInit(){this.loadPayoutSettings()}loadPayoutSettings(){var pe=this;this._accountService.checkHeaders()&&(this._balanceService.getPayoutSchedule().subscribe(dt=>{this.payoutScheduledInterval=dt?.data?.interval,this.payoutScheduledAttribute=dt?.data?.attribute,this.selectedInterval=dt?.data?.interval,this.selectedAnchor=dt?.data?.attribute,this.interval.setValue(this.selectedInterval),this.state.setValue(this.selectedAnchor?.toString()),this.userIntervalValue=this.selectedInterval,this.userStateValue=this.selectedAnchor?.toString(),this.valueIntialized=!0}),this._bankService.getStripeStatus().subscribe(function(){var dt=(0,D.Z)(function*(jt){pe.stripeStatus=jt?.data,pe.chargesEnabled=pe.stripeStatus?.charges_enabled,pe.payoutEnabled=pe.stripeStatus?.payout_enabled,pe.detailsSubmitted=pe.stripeStatus?.details_submitted,1==pe.chargesEnabled&&1==pe.payoutEnabled&&1==pe.detailsSubmitted?(pe.stripePrompt=!0,pe._bankService.changNotificationStatus(!0),pe.analyticsService.fireAnalyticsEvent("stripe_verified",{profile_id:(yield pe._accountService.getProfileId())||0,user_id:JSON.parse(pe.user)?.id})):(pe.stripePrompt=!1,pe._bankService.changNotificationStatus(!1)),pe._bankService.changNotificationStatus(pe.stripePrompt),pe._bankService.getPersonalVerification().subscribe(Ir=>{pe.oppVerificationCheck="1005"!==Ir?.errors?.code,pe._profileService.getDonationCount().subscribe(Ur=>{pe.firstDonationReceived=Ur?.data?.first_donation_received,0===pe.firstDonationReceived&&!1===pe.stripeStatus.details_submitted&&!0===pe.oppVerificationCheck||1===pe.firstDonationReceived&&!0===pe.stripeStatus.details_submitted&&!0===pe.oppVerificationCheck||1===pe.firstDonationReceived&&!1===pe.stripeStatus.details_submitted&&!0===pe.oppVerificationCheck?pe.showStripeAndOpp=!0:pe.showStripeOnly=!0})})});return function(jt){return dt.apply(this,arguments)}}()))}flagValue(){this.tempBoolean=!0}saveSchedule(){let pe;this.isLoading=!0,pe=1==this.manualCheck?{interval:"manual",attribute:""}:{interval:this.selectedInterval,attribute:this.selectedAnchor},this._bankService.schedulePayout(pe).subscribe(dt=>{"We do not support the country currently"==dt?.errors?.message?this._notificationService.openNotification("Trenutno ne podr\u017Eavamo dr\u017Eavu","OK","error"):this._notificationService.openNotification("Spremljeno","OK","success"),this.isLoading=!1})}verifyWithStripe(){this.stripeVerificationCheck=!0,this.isLoading=!0;let pe=window.location.protocol+"//"+window.location.hostname+"/"+this._accountService.getLocaleId()+"/profile/payout-settings";"localhost"==window.location.hostname&&(pe="http://localhost:4200/profile/payout-settings");let dt={return_url:pe};this._accountService.checkHeaders()&&this._bankService.redirectToStripeVerification(dt).subscribe(jt=>{this.isLoading=!1,null!=window.open?window.location.replace(jt?.data?.url):window.alert("Browser has blocked the popup window"),this.stripeVerificationCheck=!1})}verifyWithStripeEmbeddedAccountOnboard(){this.stripeVerificationCheck=!0,this._router.navigate(["profile/payout-settings/account_onboarding"])}stripeDashboard(){let pe=window.open();this.stripeDashboardCheck=!0,this._bankService.redirectToStripeDashboard().subscribe(dt=>{null!=pe&&(pe.location.href=dt?.data?.url),this.stripeDashboardCheck=!1})}switchPayout(pe){"manual"==pe?(this.manualCheck=!0,this.tempBoolean=!0):(this.manualCheck=!1,this.tempBoolean=!1)}openCountrySelectDialog(){this.dialog.open(ia.f,{panelClass:"share-dialog-panel",width:"auto",height:"auto",disableClose:!0})}}return Fe.\u0275fac=function(pe){return new(pe||Fe)(r.Y36(r.sBO),r.Y36(m.y),r.Y36(V.g),r.Y36(E.H),r.Y36(v.m),r.Y36(n.B),r.Y36(Ua.y),r.Y36(e.F0),r.Y36(F.uw))},Fe.\u0275cmp=r.Xpm({type:Fe,selectors:[["app-payout-settings"]],outputs:{stripeNotification:"stripeNotification"},decls:3,vars:2,consts:function(){let er,pe,dt,jt,Ir,Ur,En,Fn,qn,hi,_i,gi,oa,Ea,da,Za,va,co,ki,Li,Qo,ka,qo,Go,$o,Vo,ya,Ze,Wt,g,$,st,Bt,hr,Xr,fn,Kn,An,Ki,Xa,fi,Ko,uo,No,es,wo;return er="Spremi",pe="Stripe Verifikacijski Status",dt="Pla\u0107anja",jt="Isplate",Ir="Stripe provjera mo\u017Ee potrajati nekoliko trenutaka. Osvje\u017Eite stranicu kako biste vidjeli najnoviji status.",Ur="Da bi primio donacije, Stripe tra\u017Ei neke podatke Podaci se provjeravaju u roku od nekoliko sati Stripe \u0107e vam poslati e-po\u0161tu ako su potrebni dodatni podaci.",En="Stripe provjerava podatke To obi\u010Dno ne traje du\u017Ee od nekoliko sati Ako su potrebni dodatni podaci, kontaktirat \u0107e vas putem e-po\u0161te.",Fn="Stripe je uspje\u0161no verificirao Va\u0161e podatke Mo\u017Eete promijeniti podatke u bilo koje vrijeme klikom na gumb ispod.",qn="Omogu\u0107eno",hi="Verifikacija nije uspjela",_i="Verifikacija nije pokrenuta",gi="Omogu\u0107eno",oa="Verifikacija nije uspjela",Ea="Verifikacija nije pokrenuta",da="Ra\u010Dun Pruga",Za="Stripe treba dodatne podatke Kliknite gumb u nastavku da biste dodali tra\u017Eene informacije.",va="Raspored Isplate Stripe",co="Odaberite koliko \u010Desto \u017Eelite primati isplate.",ki="Automatski svaki",Li="Ru\u010Dno",Qo="Isplate \u0107e biti zaustavljene dok se ne odlu\u010Dite da ih prenesete na svoj bankovni ra\u010Dun Vi\u0161e ne\u0107ete mo\u0107i vidjeti koje transakcije su uklju\u010Dene u isplatu.",ka="na",qo="Zapo\u010Dni Stripe Verifikaciju",Go="Stripe Verifikacijski Status",$o="Pla\u0107anja",Vo="Isplate",ya="Da bi primio donacije, Stripe tra\u017Ei neke podatke Podaci se provjeravaju u roku od nekoliko sati Stripe \u0107e vam poslati e-po\u0161tu ako su potrebni dodatni podaci.",Ze="Stripe provjerava podatke To obi\u010Dno ne traje du\u017Ee od nekoliko sati Ako su potrebni dodatni podaci, kontaktirat \u0107e vas putem e-po\u0161te.",Wt="Stripe je uspje\u0161no verificirao Va\u0161e podatke Mo\u017Eete promijeniti podatke u bilo koje vrijeme klikom na gumb ispod.",g="Omogu\u0107eno",$="Verifikacija nije uspjela",st="Verifikacija nije pokrenuta",Bt="Omogu\u0107eno",hr="Verifikacija nije uspjela",Xr="Verifikacija nije pokrenuta",fn="Ra\u010Dun Pruga",Kn="Stripe treba dodatne podatke Kliknite gumb u nastavku da biste dodali tra\u017Eene informacije.",An="Raspored Isplate Stripe",Ki="Odaberite koliko \u010Desto \u017Eelite primati isplate.",Xa="Automatski svaki",fi="Ru\u010Dno",Ko="Isplate \u0107e biti zaustavljene dok se ne odlu\u010Dite da ih prenesete na svoj bankovni ra\u010Dun Vi\u0161e ne\u0107ete mo\u0107i vidjeti koje transakcije su uklju\u010Dene u isplatu.",uo="na",No="Zapo\u010Dni Stripe Verifikaciju",es="Provjera statusa Stripe provjere...",wo="Molim te, ne osvje\u017Eavaj ili se ne vra\u0107aj.",[["payoutSettingsContent",""],[4,"ngIf","ngIfElse"],["whydonateLoader",""],["ngClass","p-l-xs"],["fxLayout","column","fxFlex","0 1 calc(70vw)","fxFlex.sm","100%","fxFlex.xs","1 1 calc(40vw)",1,"mat-elevation-z0"],[3,"ngIf","ngIfElse"],["loading",""],[3,"ngIf"],["fxLayout","column","fxLayoutAlign","end end","ngClass","m-t-xs"],["color","accent","mat-raised-button","",3,"disabled"],[3,"click"],er,["class","m-l-xs",4,"ngIf"],[4,"ngIf"],["fxLayout","row","fxLayoutGap","2%","ngClass","m-t-m","fxLayoutAlign","start center"],[1,"mat-heading-1"],pe,["fxLayout","row","ngClass","m-t-xs",4,"ngIf"],["fxLayout","row","ngClass","m-t-xs"],[1,"mat-body-strong"],dt,["fxLayout","row","fxLayoutAlign","start start","fxLayoutGap","0.5%",4,"ngIf"],jt,["fxLayout","column","fxLayoutAlign","start start","ngClass","m-t-xs",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start start","ngClass","m-t-xs","class","warning-text",4,"ngIf"],[1,"mat-elevation-z0","tax-invoice-bg"],["fxLayout","row","fxLayoutAlign","flex-start left","fxLayoutGap","2%"],["src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/yellowInfoNew/public"],["ngClass.gt-xs","p-t-xxs"],Ir,Ur,En,Fn,["fxLayout","row","fxLayoutAlign","start start","fxLayoutGap","0.5%"],["matChipAvatar","","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/checkCirclePrimary/public"],qn,["matChipAvatar","","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/closeWarn/public"],hi,["matChipAvatar","","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/infoAccent/public"],_i,gi,oa,Ea,["fxLayout","column","fxLayoutAlign","start start","ngClass","m-t-xs"],["color","accent","mat-stroked-button","",3,"disabled","click"],da,[1,"m-l-xs"],["color","primary","diameter","20"],["fxLayout","row","fxLayoutAlign","start start","ngClass","m-t-xs",1,"warning-text"],Za,["fxLayout","column","fxLayoutAlign","start start","ngClass","m-t-xl"],va,co,["fxLayout.lt-sm","column","fxLayout","column"],["fxLayout","row wrap","fxFlex","100%","ngClass.lt-sm","m-t-xs","fxLayout.lt-sm","column","fxLayoutAlign","start center","fxLayoutAlign.lt-sm","start start"],["id","0","value","schedule","color","primary",3,"checked","change"],ki,["ngClass","m-l-m m-t-m","ngClass.lt-sm","m-l-l m-t-m p-l-xs"],["appearance","outline"],["placeholder","Select an option",3,"formControl"],["intervalSelect",""],[3,"value",4,"ngFor","ngForOf"],["ngClass","m-l-m","fxLayout.lt-sm","column","ngClass.lt-sm","m-l-l p-l-xs",4,"ngIf"],["ngClass","m-l-m m-t-m","ngClass.lt-sm","m-l-l p-l-xs"],["appearance","outline",4,"ngIf"],["fxLayout.lt-sm","column"],["id","1","value","manual","color","primary",3,"checked","change"],Li,["ngClass","m-l-m p-l-s","ngClass.lt-sm","m-t-s p-l-s m-l-m "],Qo,[3,"value"],["ngClass","m-l-m","fxLayout.lt-sm","column","ngClass.lt-sm","m-l-l p-l-xs"],ka,["placeholder","Select an Option",3,"formControl","selectionChange"],["anchorSelect",""],["color","accent","mat-flat-button","",3,"disabled","click"],qo,["inset",""],Go,$o,Vo,ya,Ze,Wt,g,$,st,Bt,hr,Xr,["color","accent","mat-stroked-button","",3,"disabled"],fn,Kn,An,Ki,Xa,fi,Ko,uo,No,["fxLayoutAlign","center center"],["color","accent","diameter","20"],["fxLayout","row","fxLayoutAlign","left center","fxFlex","100%",1,"branding"],["fxLayoutAlign","center center","ngClass","p-l-xl p-t-xxl p-b-xxl",1,"mat-typography"],["fxLayout","row","fxLayoutAlign","center center"],["fxLayout","column","fxLayoutAlign","center","fxLayoutGap","5%"],["width","60px","src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/documentToCheck/public"],["mode","indeterminate"],["width","60px","src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/checkingDoc/public"],["fxLayout","column","fxLayoutAlign","center center"],es,wo]},template:function(pe,dt){if(1&pe&&(r.YNc(0,qr,3,2,"ng-template",null,0,r.W1O),r.YNc(2,Tn,15,0,"ng-container",1)),2&pe){const jt=r.MAs(1);r.xp6(2),r.Q6J("ngIf",dt.showVerificationProgress)("ngIfElse",jt)}},dependencies:[t.mk,t.sg,t.O5,qa.CK,de.v_,Ht.OY,Ht.vy,ro.x8,M.JJ,M.oH,Tt.S$,Tt.mi,Et.d,Ee.eB,Na.$d,j.Hw,Le.sN,ga.eI,ge.xw,ge.SQ,ge.Wh,ge.yH,ue.oO,B.f,Sr],styles:[".warning-text[_ngcontent-%COMP%]{color:#ff5656}"]}),Fe})();var di=s(50682);const vi=["snackbarTemplate"];function qi(Fe,er){1&Fe&&(r.TgZ(0,"div",14),r._UZ(1,"img",15),r.TgZ(2,"div")(3,"span"),r._uU(4,"New Zapier key has been generated successfully. Please note that your old API key has expired and can no longer be used."),r.qZA()()())}let Da=(()=>{class Fe{constructor(pe,dt,jt,Ir,Ur,En){this.dialogRef=pe,this._dialogRef=dt,this.notificationService=jt,this._profileService=Ir,this.snackBar=Ur,this.accountService=En,dt.disableClose=!1}onCloseClick(pe){this.dialogRef.close(pe)}updateZapierKey(){this.accountService.checkHeaders()&&(this.isLoading=!0,this._profileService.updateZapierKeyStatus().subscribe(pe=>{"ZapierAPINotAvailable"!=pe?.data?.response?(this.snackBar.openFromTemplate(this.snackbarTemplate,{duration:3e3}),this.onCloseClick("successfullyGenerated"),this.isLoading=!1):this.isLoading=!1},pe=>{this.isLoading=!1,this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","OK","error")}))}}return Fe.\u0275fac=function(pe){return new(pe||Fe)(r.Y36(F.so),r.Y36(F.so),r.Y36(V.g),r.Y36(E.H),r.Y36(di.ux),r.Y36(n.B))},Fe.\u0275cmp=r.Xpm({type:Fe,selectors:[["app-zapier-dialog"]],viewQuery:function(pe,dt){if(1&pe&&r.Gf(vi,5),2&pe){let jt;r.iGM(jt=r.CRH())&&(dt.snackbarTemplate=jt.first)}},decls:19,vars:0,consts:function(){let er,pe,dt,jt;return er="Jeste li sigurni da \u017Eelite generirati novi Zapier API klju\u010D?",pe="Ovo \u0107e izbrisati trenutni API klju\u010D i prekinuti trenutnu vezu sa Zapierom.",dt="Otkazati",jt="U redu",[["fxLayout.lt-md","column"],["fxLayout","column","fxLayoutAlign","space-between center","ngClass","full-width"],["mat-icon-button","",1,"close-button",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["ngClass.lt-md","mat-card-title"],er,["ngClass.lt-md","mat-body-1"],pe,["fxLayout","row","fxLayoutAlign","end end","ngClass","p-b-m p-r-l","fxLayoutAlign.lt-sm","","fxLayout.lt-sm","column","ngClass.lt-md","p-l-l p-r-l p-b-s","fxLayoutGap.lt-md","2%"],["id","zapier_dialog_cancel_button","mat-stroked-button","","color","accent","fxFlexOrder.lt-sm","2",3,"click"],dt,["id","zapier_dialog_okay_button","mat-flat-button","","color","accent","fxFlexOrder.lt-sm","1",3,"click"],jt,["snackbarTemplate",""],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","2%",1,"mat-simple-snackbar"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/checkCircleFillPrimary/public"]]},template:function(pe,dt){1&pe&&(r.TgZ(0,"div",0)(1,"mat-dialog-content",1)(2,"div")(3,"div")(4,"button",2),r.NdJ("click",function(){return dt.onCloseClick("Close")}),r._UZ(5,"img",3),r.qZA(),r._UZ(6,"br"),r.qZA(),r.TgZ(7,"h2",4),r.SDv(8,5),r.qZA(),r.TgZ(9,"mat-card-content",6),r.SDv(10,7),r.qZA()()(),r.TgZ(11,"div",8)(12,"button",9),r.NdJ("click",function(){return dt.onCloseClick("Close")}),r.SDv(13,10),r.qZA(),r._uU(14," \xa0 \xa0 "),r.TgZ(15,"button",11),r.NdJ("click",function(){return dt.updateZapierKey()}),r.SDv(16,12),r.qZA()()(),r.YNc(17,qi,5,0,"ng-template",null,13,r.W1O))},dependencies:[t.mk,Tt.Qi,Ee.eB,F.xY,ge.xw,ge.SQ,ge.Wh,ge.r7,ue.oO],encapsulation:2}),Fe})();function ua(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon"),r._UZ(1,"mat-spinner",16),r.qZA())}function Pa(Fe,er){1&Fe&&(r.TgZ(0,"mat-icon",21),r._UZ(1,"mat-spinner",22),r.qZA())}function za(Fe,er){if(1&Fe){const pe=r.EpF();r.ynx(0),r.TgZ(1,"div",17)(2,"button",18),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw();return r.KtG(jt.generateNewApiKey())}),r.TgZ(3,"span"),r.SDv(4,19),r.qZA(),r.YNc(5,Pa,2,0,"mat-icon",20),r.qZA()(),r.BQk()}if(2&Fe){const pe=r.oxw();r.xp6(2),r.Q6J("disabled",pe.isNewZapierKeyLoading),r.xp6(3),r.Q6J("ngIf",pe.isNewZapierKeyLoading)}}function ja(Fe,er){1&Fe&&(r.TgZ(0,"div",23),r._UZ(1,"img",29),r._uU(2," \xa0 "),r.TgZ(3,"div"),r.SDv(4,30),r.qZA()())}function lo(Fe,er){1&Fe&&(r.TgZ(0,"div",31)(1,"mat-icon"),r._uU(2,"check_circle"),r.qZA(),r._uU(3," \xa0 "),r.TgZ(4,"div"),r.SDv(5,32),r.qZA()())}function ba(Fe,er){if(1&Fe&&(r.TgZ(0,"div")(1,"div",23),r.YNc(2,ja,5,0,"div",24),r.YNc(3,lo,6,0,"div",25),r.qZA(),r.TgZ(4,"div"),r._UZ(5,"br")(6,"mat-divider",26)(7,"br"),r.qZA(),r.TgZ(8,"div",27),r.SDv(9,28),r.qZA()()),2&Fe){const pe=r.oxw();r.xp6(2),r.Q6J("ngIf",pe.isActiveZapierKey),r.xp6(1),r.Q6J("ngIf",!pe.isActiveZapierKey)}}function Ba(Fe,er){if(1&Fe){const pe=r.EpF();r.TgZ(0,"a",33),r.NdJ("click",function(){r.CHM(pe);const jt=r.oxw();return r.KtG(jt.openZapierDialogComponent())}),r.SDv(1,34),r.qZA()}}const Ho=function(Fe){return{color:Fe}};let Fo=(()=>{class Fe{constructor(pe,dt,jt,Ir,Ur,En,Fn){this._dialog=pe,this.clipboard=dt,this._profileService=jt,this.notificationService=Ir,this.accountService=Ur,this.media=En,this.showZapierKeyButton=!0,this.currentRoute="api",this.embedHTML="",this.isActiveZapierKey=!0,this.currentLanguageCode="",this.knowMore="article/kako-mogu-povezati-svoj-whydonate-racun-sa-zapierom-8iaev0/",this.crowdfundingCharity="crowdfunding-humanitarne-svrhe",this.isLoading=!1,this.apiZapierForm=Fn.group({zapierKey:[{value:"Zapier Key",disabled:!0}],isActive:[!0]})}ngOnInit(){this.currentLanguageCode=this.accountService.getLocaleId(),this.knowMoreUrl=`https://helpdesk.whydonate.com/${this.currentLanguageCode}/${this.knowMore}`,this.accountService.checkHeaders()&&(this.isLoading=!0,this.getZapierKey())}copyLink(){this.clipboard.copy(this.zapierKeys),this.notificationService.openNotification("Kopiranje uspje\u0161no.","OK","success")}generateNewApiKey(){this.accountService.checkHeaders()&&(this.isNewZapierKeyLoading=!0,this._profileService.createZapierKey({name:this._profileService?.getProfileObj?.name}).subscribe(jt=>{window.location.reload(),jt?.data?.api_key&&(this.zapierKeys=jt?.data?.zapier_api_key,this.apiZapierForm.patchValue({zapierKey:jt?.data?.zapier_api_key,isActive:jt?.data?.data?.is_active},{emitEvent:!1}),this.isNewZapierKeyLoading=!1,this.showZapierKeyButton=!1)},jt=>{this.isNewZapierKeyLoading=!1,this.notificationService.openNotification("Generacija nije uspjela.","","error")}))}getZapierKey(){this._profileService.getZapierKey().subscribe(pe=>{if("ZapierKeyNotAvailable"==pe?.data?.response)return this.isLoading=!1,void(this.showZapierKeyButton=!0);this.zapierKeys=pe?.data?.zapier_api_key,this.apiZapierForm.patchValue({zapierKey:pe?.data?.zapier_api_key,isActive:pe?.data?.data?.is_active},{emitEvent:!1}),this.showZapierKeyButton=!1,this._profileService.setApiKeyObj={api_key:pe?.data?.zapier_api_key},this.isLoading=!1},pe=>{this.isLoading=!1,this.notificationService.openNotification("A\u017Euriranje nije uspjelo.","OK","error")})}openZapierDialogComponent(){this.isLoading?this.notificationService.openNotification("U\u010Ditavanje, molimo pri\u010Dekajte","","info"):this._dialog.open(Da,{panelClass:["md:w-3/5","73vh"],maxHeight:"70vh",data:"popup"}).afterClosed().subscribe(dt=>{"successfullyGenerated"===dt&&(this.getZapierKey(),this.isActiveZapierKey=!1)})}}return Fe.\u0275fac=function(pe){return new(pe||Fe)(r.Y36(F.uw),r.Y36(Gr.TU),r.Y36(E.H),r.Y36(V.g),r.Y36(n.B),r.Y36(c.u0),r.Y36(M.QS))},Fe.\u0275cmp=r.Xpm({type:Fe,selectors:[["app-zapier"]],decls:24,vars:11,consts:function(){let er,pe,dt,jt,Ir,Ur,En,Fn;return er="Generirajte Zapier API klju\u010D",pe="Jednostavno pove\u017Eite WhyDonate s vrhunskim softverom za CRM, marketing, ra\u010Dunovodstvo itd. Automatski dijelite podatke izme\u0111u svojih alata za lak\u0161i rad. \u017Delite saznati vi\u0161e?",dt="\u017Delite saznati vi\u0161e?",jt="Generiraj Zapier API Klju\u010D",Ir="Ako niste sigurni u sigurnost svog klju\u010Da, mo\u017Eda bi bilo dobro generirati novi radi sigurnosti.",Ur="Zapier API klju\u010D je povezan",En="Zapier API klju\u010D nije povezan",Fn="Generirajte novi klju\u010D",[["fxFlex","0 1 calc(40vw)","fxFlex.sm","100%","fxFlex.xs","1 1 calc(40vw)",1,"mat-elevation-z0","h-100"],["ngClass.gt-sm","m-t-s p-t-m p-l-m"],er,["fxLayout","column"],["ngClass","mat-body-2"],pe,["mat-button","","color","accent","target","_blank","rel","noopener noreferrer",3,"href"],dt,[4,"ngIf"],["fxLayout","column",3,"formGroup"],["color","primary","appearance","outline"],["matInput","","formControlName","zapierKey","type","text"],["passwordField",""],["mat-icon-button","","matSuffix","","id","copyCode",3,"ngStyle","cdkCopyToClipboard","disabled","click"],["matSuffix",""],["mat-button","","ngClass","mat-title","color","accent","id","zapier_generate_new_key_button",3,"click",4,"ngIf"],["color","primary","diameter","20"],["fxLayout","row wrap","fxLayoutAlign","start center","ngClass","m-b-m"],["mat-flat-button","","color","accent",3,"disabled","click"],jt,["class","m-l-xs",4,"ngIf"],[1,"m-l-xs"],["color","accent","diameter","20"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","8px"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","8px",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFill","100"],[1,"mat-body-1","m-b-m"],Ir,["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/checkCircleFillPrimary/public"],Ur,["fxLayout","row","fxLayoutAlign","start center"],En,["mat-button","","ngClass","mat-title","color","accent","id","zapier_generate_new_key_button",3,"click"],Fn]},template:function(pe,dt){if(1&pe&&(r.TgZ(0,"mat-card",0)(1,"div",1)(2,"mat-card-title"),r.SDv(3,2),r.qZA(),r.TgZ(4,"mat-card-title-group")(5,"mat-card-subtitle",3)(6,"div",4)(7,"span"),r.SDv(8,5),r.qZA(),r._uU(9,"\xa0 "),r.TgZ(10,"span")(11,"a",6),r.SDv(12,7),r.qZA()()()(),r.YNc(13,ua,2,0,"mat-icon",8),r.qZA(),r.YNc(14,za,6,2,"ng-container",8),r.TgZ(15,"form",9)(16,"mat-form-field",10),r._UZ(17,"input",11,12),r.TgZ(19,"button",13),r.NdJ("click",function(){return dt.copyLink()}),r.TgZ(20,"mat-icon",14),r._uU(21,"file_copy_outlined"),r.qZA()()()(),r.YNc(22,ba,10,2,"div",8),r.YNc(23,Ba,2,0,"a",15),r.qZA()()),2&pe){const jt=r.MAs(18);r.xp6(11),r.Q6J("href",dt.knowMoreUrl,r.LSH),r.xp6(2),r.Q6J("ngIf",dt.isLoading),r.xp6(1),r.Q6J("ngIf",dt.showZapierKeyButton),r.xp6(1),r.Q6J("formGroup",dt.apiZapierForm),r.xp6(4),r.Q6J("ngStyle",r.VKq(9,Ho,dt.zapierKeys?"black":"gray"))("cdkCopyToClipboard","text"===jt.type?dt.zapierKeys:"")("disabled",dt.showZapierKeyButton),r.xp6(3),r.Q6J("ngIf",!dt.showZapierKeyButton),r.xp6(1),r.Q6J("ngIf",!dt.showZapierKeyButton)}},dependencies:[t.mk,t.O5,t.PC,de.v_,de.nX,ye.k0,M._Y,M.Fj,M.JJ,M.JL,M.sg,M.u,Tt.S$,Tt.H7,Tt.mi,Tt._K,Et.d,Ee.eB,Ee.Nr,j.Hw,Le.sN,ge.xw,ge.SQ,ge.Wh,ge.s9,ge.yH,ue.oO,ue.Zl,Gr.i3],encapsulation:2}),Fe})();const fs={setOnLoadError:Fe=>{},setOnLoaderStart:Fe=>{}},ft={"account-onboarding":{setFullTermsOfServiceUrl:Fe=>{},setRecipientTermsOfServiceUrl:Fe=>{},setPrivacyPolicyUrl:Fe=>{},setSkipTermsOfServiceCollection:Fe=>{},setCollectionOptions:Fe=>{},setOnExit:Fe=>{},setOnStepChange:Fe=>{}},"account-management":{setCollectionOptions:Fe=>{}},"notification-banner":{setCollectionOptions:Fe=>{},setOnNotificationsChange:Fe=>{}},payments:{setDefaultFilters:Fe=>{}},"payment-details":{setPayment:Fe=>{},setOnClose:Fe=>{}},"tax-settings":{setHideProductTaxCodeSelector:Fe=>{},setDisplayHeadOfficeCountries:Fe=>{},setOnTaxSettingsUpdated:Fe=>{}},"tax-registrations":{setOnAfterTaxRegistrationAdded:Fe=>{},setDisplayCountries:Fe=>{}}},Lt={"account-onboarding":"stripe-connect-account-onboarding",payments:"stripe-connect-payments","payment-details":"stripe-connect-payment-details",payouts:"stripe-connect-payouts","payouts-list":"stripe-connect-payouts-list",balances:"stripe-connect-balances","account-management":"stripe-connect-account-management","notification-banner":"stripe-connect-notification-banner",documents:"stripe-connect-documents","tax-registrations":"stripe-connect-tax-registrations","tax-settings":"stripe-connect-tax-settings"},it="loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used",Fr="https://connect-js.stripe.com/v1.0/connect.js";let aa=null;const Yo=(Fe,er)=>{var pe;const dt=(()=>{try{return er.fetchClientSecret()}catch(Ur){return Promise.reject(Ur)}})(),jt=null!==(pe=er.metaOptions)&&void 0!==pe?pe:{},Ir=Fe.then(Ur=>Ur.initialize(Object.assign(Object.assign({},er),{metaOptions:Object.assign(Object.assign({},jt),{eagerClientSecretPromise:dt})})));return{create:Ur=>{let En=Lt[Ur];En||(En=Ur);const Fn=document.createElement(En),qn=(Fe=>Fe in ft)(Ur)?ft[Ur]:{},hi=Object.assign(Object.assign({},qn),fs);for(const _i in hi)Fn[_i]=function(gi){Ir.then(()=>{this[`${_i}InternalOnly`](gi)})};return Ir.then(_i=>{if(!Fn.isConnected&&!Fn.setConnector){const gi=Fn.style.display;Fn.style.display="none",document.body.appendChild(Fn),document.body.removeChild(Fn),Fn.style.display=gi}if(!Fn||!Fn.setConnector)throw new Error(`Element ${Ur} was not transformed into a custom element. Are you using a documented component? See https://docs.stripe.com/connect/supported-embedded-components for a list of supported components`);Fn.setConnector(_i.connect)}),Fn},update:Ur=>{Ir.then(En=>{En.update(Ur)})},debugInstance:()=>Ir,logout:()=>Ir.then(Ur=>Ur.logout())}},Rs=Fe=>(window.StripeConnect=window.StripeConnect||{},window.StripeConnect.optimizedLoading=!0,{initialize:pe=>{var dt;const jt=null!==(dt=pe.metaOptions)&&void 0!==dt?dt:{};return Fe.init(Object.assign(Object.assign({},pe),{metaOptions:Object.assign(Object.assign({},jt),{sdk:!0,sdkOptions:{sdkVersion:"3.3.15"}})}))}}),xs=Promise.resolve().then(()=>(null!==aa||(aa=new Promise((Fe,er)=>{if(typeof window>"u")er("ConnectJS won't load when rendering code in the server - it can only be loaded on a browser. This error is expected when loading ConnectJS in SSR environments, like NextJS. It will have no impact in the UI, however if you wish to avoid it, you can switch to the `pure` version of the connect.js loader: https://github.com/stripe/connect-js#importing-loadconnect-without-side-effects.");else if(window.StripeConnect&&console.warn(it),window.StripeConnect){const pe=Rs(window.StripeConnect);Fe(pe)}else try{let pe=document.querySelectorAll(`script[src="${Fr}"]`)[0]||document.querySelectorAll('script[src="https://connect-js.stripe.com/v0.1/connect.js"]')[0]||null;pe?console.warn(it):pe||(pe=(()=>{const Fe=document.createElement("script");if(Fe.src=Fr,!document.head)throw new Error("Expected document.head not to be null. Connect.js requires a <head> element.");return document.head.appendChild(Fe),Fe})()),pe.addEventListener("load",()=>{if(window.StripeConnect){const dt=Rs(window.StripeConnect);Fe(dt)}else er(new Error("Connect.js did not load the necessary objects"))}),pe.addEventListener("error",()=>{er(new Error("Failed to load Connect.js"))})}catch(pe){er(pe)}})),aa));let gs=!1;xs.catch(Fe=>{gs||console.warn(Fe)});const ht=[{path:"",pathMatch:"full",redirectTo:"account"},{path:"account",component:q,children:[{path:"",component:Jt}],data:{route:"account"},canActivate:[ji.a]},{path:"bank",component:q,children:[{path:"",component:Sr}],data:{route:"bank"},canActivate:[ji.a]},{path:"personal-verification",component:q,children:[{path:"",component:$n}],data:{route:"personal-verification"},canActivate:[ji.a]},{path:"api",component:q,children:[{path:"",component:Ei}],data:{route:"api"},canActivate:[ji.a]},{path:"zapier",component:q,children:[{path:"",component:Fo}],data:{route:"zapier"},canActivate:[ji.a]},{path:"email",component:q,children:[{path:"",component:ra}],data:{route:"email"},canActivate:[ji.a]},{path:"payout-settings",component:q,children:[{path:"",component:si}],data:{route:"payout-settings"},canActivate:[ji.a]},{path:"payout-settings/account_onboarding",component:(()=>{class Fe{constructor(pe,dt){this._accountService=pe,this.router=dt,this.stripeKey="EU"}ngOnInit(){var pe=this;return(0,D.Z)(function*(){try{const dt=yield pe.fetchClientSecretFromBackend(),jt=(Fe=>(gs=!0,Yo(xs,Fe)))({publishableKey:pe.stripeKey,fetchClientSecret:(Ur=(0,D.Z)(function*(){return dt}),function(){return Ur.apply(this,arguments)}),locale:pe._accountService.getLocaleId(),appearance:{variables:{colorPrimary:"#32BF55",colorText:"#353535",borderRadius:"2px",buttonBorderRadius:"2px",buttonPrimaryColorBackground:"#363396",buttonSecondaryColorBackground:"#FFF",buttonSecondaryColorBorder:"#363396",buttonSecondaryColorText:"#363396",actionPrimaryColorText:"#363396",actionPrimaryTextDecorationColor:"#363396",actionSecondaryColorText:"#353535",actionSecondaryTextDecorationLine:"none",actionSecondaryTextDecorationColor:"#353535",colorDanger:"#FF5252",badgeNeutralColorText:"#353535",badgeSuccessColorBackground:"#32BF55",badgeSuccessColorBorder:"#32BF55",badgeSuccessColorText:"#353535",badgeDangerColorBackground:"#FF5252",badgeDangerColorText:"#353535",fontFamily:"Ideal Sans, system-ui, sans-serif",headingXlTextTransform:"capitalize",headingLgTextTransform:"capitalize",headingMdTextTransform:"capitalize",headingSmTextTransform:"capitalize",headingXsTextTransform:"capitalize",badgeWarningColorBackground:"#FFFCEB",badgeWarningColorBorder:"#FFBD14",badgeWarningColorText:"#353535",headingXlFontSize:"20px",headingXlFontWeight:"600",headingLgFontSize:"18px",headingLgFontWeight:"600",headingMdFontSize:"16px",headingMdFontWeight:"600",headingSmFontSize:"14px",headingSmFontWeight:"600",headingXsFontWeight:"600"}}});pe.accountOnboardComponent=jt.create("account-onboarding");const Ir=document.getElementById("container");Ir?Ir.appendChild(pe.accountOnboardComponent):console.error("Container with ID 'container' not found."),pe.accountOnboardComponent.setOnExit(()=>{pe.router.navigate(["/profile/payout-settings"])})}catch(dt){console.error("Error initializing Stripe Connect:",dt.message)}var Ur})()}fetchClientSecretFromBackend(){var pe=this;return(0,D.Z)(function*(){try{const dt=yield pe._accountService.getClientSecret();pe.responseData=dt;const jt=pe.responseData?.data?.response?.client_secret;if(pe.platform=pe.responseData?.data?.platform,pe.stripeKey="EU"===pe.platform?T.N.STRIPE_PUBLISHABLE_KEY_EU:T.N.STRIPE_PUBLISHABLE_KEY_US,!jt)throw new Error("Client secret not found in the response");return jt}catch(dt){throw console.error("Error fetching client secret:",dt.message),new Error("Failed to fetch client secret")}})()}}return Fe.\u0275fac=function(pe){return new(pe||Fe)(r.Y36(n.B),r.Y36(e.F0))},Fe.\u0275cmp=r.Xpm({type:Fe,selectors:[["app-stripe-embeded"]],decls:1,vars:0,consts:[["id","container","fxFlex","45%",1,"p-xl"]],template:function(pe,dt){1&pe&&r._UZ(0,"div",0)},dependencies:[ge.yH]}),Fe})(),canActivate:[ji.a]}];let He=(()=>{class Fe{}return Fe.\u0275fac=function(pe){return new(pe||Fe)},Fe.\u0275mod=r.oAB({type:Fe}),Fe.\u0275inj=r.cJS({imports:[e.Bz.forChild(ht),e.Bz]}),Fe})();var Ut=s(25384),_r=s(35466);let $r=(()=>{class Fe{}return Fe.\u0275fac=function(pe){return new(pe||Fe)},Fe.\u0275mod=r.oAB({type:Fe}),Fe.\u0275inj=r.cJS({imports:[t.ez,He,Ut.q,M.u5,M.UX,F.Is,Y.QG,_r.m,di.ZX]}),Fe})()},1911:(St,be,s)=>{"use strict";s.d(be,{y:()=>i});var t=s(9206),e=s(93216),d=s(44070),l=s(43113),r=s(32837),c=s(95195),E=s(73991),m=s(21704),v=s(45710),C=s(81338),n=s(45734);let i=(()=>{class P{constructor(q,D,M,T){this.accountService=q,this._APIService=D,this._ProfileService=M,this.http=T,this.API_URL=t.N.apiUrl,this.ACCOUNT_V2=t.N.ACCOUNT_API_V2,this.bankAPI="account/bank/",this.verifyWithStripeAPI="account/stripe/onboarding",this.redirectToStripeDashboardAPI="account/stripe/dashboard/link",this.getStripeStatusAPI="account/stripe/status",this.savePayoutScheduleAPI="account/stripe/payout/schedule",this.userAPI="account/user/login/",this.personalVerificationAPI="account/merchant/onboarding",this.firstAccount=new e.X(!0),this.$firstAccount=this.firstAccount.asObservable(),this.stripeNotification=new e.X(!0),this.$stripeNotification=this.stripeNotification.asObservable(),this.stripeStatus$=null,this.stripeStatusCacheTimeout=null,this.CACHE_DURATION=3500,this.header=this.accountService.getHeaders()}changeCheck(q){this.firstAccount.next(q)}changNotificationStatus(q){this.stripeNotification.next(q)}getBankAccount(){return this._ProfileService.get(this.bankAPI)}getTempAccount(){return this._ProfileService.tempGet(this.bankAPI)}getPersonalVerification(){if(this.accountService.checkHeaders()){let q=this.accountService.getHeaders();return this.http.get(`${this.ACCOUNT_V2}${this.personalVerificationAPI}`,{headers:q})}return new d.y}postTemAccount(q){return this._APIService.post(this.bankAPI,q)}addBankAccount(q){let D=this.accountService.getHeaders();return this.http.post(`${this.ACCOUNT_V2}${this.bankAPI}`,q,{headers:D})}updateBankAccount(q){let D=this.accountService.getHeaders();return this.http.put(`${this.ACCOUNT_V2}${this.bankAPI}`,q,{headers:D})}addPersonalVerification(q){if(this.accountService.checkHeaders()){let D=this.accountService.getHeaders();return this.http.post(`${this.ACCOUNT_V2}${this.personalVerificationAPI}`,q,{headers:D})}return new d.y}verifyPassword(q){return this._APIService.post(this.userAPI,q)}saveBankAccount(q){return this.http.put(`${this.API_URL}${this.bankAPI}`,q,{headers:this.header})}redirectToStripeVerification(q){let D=this.accountService.getHeaders();return this.http.get(`${this.ACCOUNT_V2}${this.verifyWithStripeAPI}?return_url=${q.return_url}`,{headers:D})}redirectToStripeDashboard(){let q=this.accountService.getHeaders();return this.http.get(`${this.ACCOUNT_V2}${this.redirectToStripeDashboardAPI}`,{headers:q})}getStripeStatus(q=!1){if(q||!this.stripeStatus$){const D=this.accountService.getHeaders();this.stripeStatus$=this.http.get(`${this.ACCOUNT_V2}${this.getStripeStatusAPI}`,{headers:D}).pipe((0,l.d)(1),(0,r.K)(M=>(console.error("Error fetching Stripe status:",M),this.stripeStatus$=null,(0,c.of)(null)))),this.setCacheTimeout()}return this.stripeStatus$}setCacheTimeout(){this.stripeStatusCacheTimeout&&clearTimeout(this.stripeStatusCacheTimeout),this.stripeStatusCacheTimeout=setTimeout(()=>{this.stripeStatus$=null},this.CACHE_DURATION)}schedulePayout(q){let D=this.accountService.getHeaders();return this.http.post(`${this.ACCOUNT_V2}${this.savePayoutScheduleAPI}`,q,{headers:D})}handleError(q){return this._APIService.handleError(q)}getStaticBankAccount(){return{data:{account_holder:"Test_Account_Holder",account_number:"GB76XBQN09005404936562",swift_code:""},errors:{},status:200}}}return P.\u0275fac=function(q){return new(q||P)(E.LFG(m.B),E.LFG(v.t),E.LFG(C.H),E.LFG(n.eN))},P.\u0275prov=E.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})()},81338:(St,be,s)=>{"use strict";s.d(be,{H:()=>i});var t=s(45734),e=s(93216),d=s(44070),l=s(43113),r=s(32837),c=s(95195),E=s(9206),m=s(64886),v=s(73991),C=s(21704),n=s(45710);let i=(()=>{class P{constructor(q,D,M,T){this.accountService=q,this.http=D,this._apiService=M,this.router=T,this.profile=new e.X(null),this.profileUpdate=this.profile.asObservable(),this.API_URL=E.N.apiUrl,this.DONATION_URl=E.N.donation_url,this.profileAPI="account/profile",this.ACCOUNT_API_V2=E.N.ACCOUNT_API_V2,this.emailSettingsUpdateAPI="account/email/settings/",this.accountAPI="account/user/",this.bankAPI="account/bank/",this.apiKeyAPI="account/apiKey/",this.ZapierKeyAPI="account/zapier_apiKey/",this.userAPI="account/user/login/",this.userDeactivate="account/profile/deactivate/",this.donationCountAPI="/donation/count",this.activeOPPDonationCountAPI="account/active/opp/donations",this.profile$=null,this.CACHE_DURATION=1500,this.cacheResetOnReloadAdded=!1,this.currentUrl=this.router.url,this.router.events.subscribe(F=>{F instanceof m.m2&&(this.previousUrl=this.currentUrl,this.currentUrl=F.url)})}get(q){let D=this.accountService.getHeaders();return null==D||null==D?new d.y:this._apiService.get(q,{headers:D})}tempGet(q){let D=this.accountService.getHeaders();return null==D||null==D?new d.y:this._apiService.tempGet(q,{headers:D})}put(q,D){return this.http.put(`${this.API_URL}${q}`,D)}updateProfile(q){let M,D=localStorage.getItem("user")||"{}";if("{}"!=D&&null!=D&&null!=D){let T=JSON.parse(D)?.jwt?.jwt||null;null!=T&&null!=T&&"{}"!=T&&(M=(new t.WM).set("Authorization",`JWT ${T}`))}return this.http.put(this.ACCOUNT_API_V2+this.profileAPI,q,{headers:M})}updateUser(q){let D=this.accountService.getHeaders();return this.http.put(this.ACCOUNT_API_V2+this.profileAPI,q,{headers:D})}verifyPassword(q){return this.accountService.getHeaders(),this._apiService.tempPost(this.ACCOUNT_API_V2+"account/user/login/",q)}updateAccountEmail(q){let D=this.accountService.getHeaders();return this.http.post(`${this.ACCOUNT_API_V2}account/change_email`,q,{headers:D})}cancelAccountEmailChange(q){let D=this.accountService.getHeaders();return this.http.post(`${this.ACCOUNT_API_V2}account/cancel/changeEmail`,q,{headers:D})}getProfile(){if(!this.profile$){const q=this.accountService.getHeaders();this.profile$=this.http.get(E.N.ACCOUNT_API_V2+this.profileAPI,{headers:q}).pipe((0,l.d)(1),(0,r.K)(D=>(this.profile$=null,(0,c.of)(null)))),this.setCacheTimeout()}return this.profile$}setCacheTimeout(){this.profileCacheTimeout&&clearTimeout(this.profileCacheTimeout),this.cacheResetOnReloadAdded||(window.addEventListener("beforeunload",()=>{this.profile$=null}),this.cacheResetOnReloadAdded=!0),this.profileCacheTimeout=setTimeout(()=>{this.profile$=null},this.CACHE_DURATION)}getActiveOPPDonationCount(){let q=this.accountService.getHeaders();return this.http.get(E.N.ACCOUNT_API_V2+this.activeOPPDonationCountAPI,{headers:q})}profileChange(q){this.profile.next(q)}get getProfileObj(){return this.profileObj}set setProfileObj(q){this.profileObj=q}getAccount(){let q=this.accountService.getHeaders();return this.http.get(this.ACCOUNT_API_V2+this.profileAPI,{headers:q})}get getAccountObj(){return this.accountObj}set setAccountObj(q){this.accountObj=q}resetPassword(q){return this._apiService.post(this.userAPI,q)}getBank(){let q=this.accountService.getHeaders();this._apiService.get(this.bankAPI,{headers:q}).subscribe(D=>{})}getDonationCount(){let q=this.accountService.getHeaders();return this.http.get(`${this.DONATION_URl}${this.donationCountAPI}`,{headers:q})}getApiKey(){let q=this.accountService.getHeaders();return this.http.get(`${this.ACCOUNT_API_V2}${this.apiKeyAPI}`,{headers:q})}createApiKey(q){let D=this.accountService.getHeaders();return this.http.post(`${this.ACCOUNT_API_V2}${this.apiKeyAPI}`,q,{headers:D})}updateApiKeyStatus(q){let D=this.accountService.getHeaders();return this.http.put(`${this.ACCOUNT_API_V2}${this.apiKeyAPI}`,q,{headers:D})}get getApiKeyObj(){return this.apiKeyObj}set setApiKeyObj(q){this.apiKeyObj=q}getEmail(){let q=this.accountService.getHeaders();return this.http.get(this.ACCOUNT_API_V2+this.profileAPI,{headers:q})}get getEmailObj(){return this.emailObj}set setEmailObj(q){this.emailObj=q}updateEmailSetting(q){let D=this.accountService.getHeaders();return this.http.put(`${this.ACCOUNT_API_V2}${this.emailSettingsUpdateAPI}`,q,{headers:D})}getUserAccount(){let q=this.accountService.getHeaders();return this.http.get(this.ACCOUNT_API_V2+this.profileAPI,{headers:q})}updateUserAccount(q){let D=this.accountService.getHeaders();return this.http.put(`${this.API_URL}account/user/`,q,{headers:D})}deactivateAccount(q){let D=this.accountService.getHeaders();return this.http.post(`${this.ACCOUNT_API_V2}${this.userDeactivate}`,q,{headers:D})}createZapierKey(q){let D=this.accountService.getHeaders();return this.http.post(`${this.ACCOUNT_API_V2}${this.ZapierKeyAPI}`,q,{headers:D})}getZapierKey(){let q=this.accountService.getHeaders();return this.http.get(`${this.ACCOUNT_API_V2}${this.ZapierKeyAPI}`,{headers:q})}updateZapierKeyStatus(){let q=this.accountService.getHeaders();return this.http.put(`${this.ACCOUNT_API_V2}${this.ZapierKeyAPI}`,{},{headers:q})}getPreviousUrl(){return this.previousUrl}}return P.\u0275fac=function(q){return new(q||P)(v.LFG(C.B),v.LFG(t.eN),v.LFG(n.t),v.LFG(m.F0))},P.\u0275prov=v.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})()},80539:(St,be,s)=>{"use strict";s.d(be,{g:()=>$e});var t=s(73991),e=s(84531),d=s(21704),l=s(64886),r=s(24510),c=s(17774),E=s(4692),m=s(43732),v=s(43073),C=s(16124),n=s(31180),i=s(27579),P=s(74351);function I(et,ot){if(1&et&&t._UZ(0,"img",14),2&et){const ct=t.oxw(2);t.s9C("src",ct.youtubeThumbnail,t.LSH),t.s9C("alt",ct.fundraiser_bg_img.alt)}}function q(et,ot){if(1&et){const ct=t.EpF();t.TgZ(0,"img",15),t.NdJ("error",function($t){t.CHM(ct);const It=t.oxw(2);return t.KtG(It.handleImageError($t,It.defaultBackgroundImage))}),t.qZA()}if(2&et){const ct=t.oxw(2);t.s9C("id",ct.slug),t.s9C("src",ct.fundraiser_bg_img.src,t.LSH),t.s9C("alt",ct.fundraiser_bg_img.alt)}}function D(et,ot){if(1&et&&(t.TgZ(0,"mat-label",16)(1,"b"),t._uU(2),t.ALo(3,"number"),t.qZA(),t._uU(4,"\xa0 "),t.TgZ(5,"span",17),t.SDv(6,18),t.qZA(),t._uU(7,"\xa0 "),t.TgZ(8,"span",17),t._uU(9),t.ALo(10,"number"),t.qZA()()),2&et){const ct=t.oxw(2);t.xp6(2),t.AsE("",ct.currency,"\xa0 ",t.lcZ(3,4,ct.donation_received_amount+ct.offlineDonationAmount),""),t.xp6(7),t.AsE("",ct.currency,"\xa0",t.lcZ(10,6,ct.donation_target_amount),"")}}function M(et,ot){if(1&et&&(t.TgZ(0,"mat-label",16)(1,"b"),t._uU(2),t.ALo(3,"number"),t.qZA(),t._uU(4,"\xa0 "),t.TgZ(5,"span"),t.SDv(6,19),t.qZA()()),2&et){const ct=t.oxw(2);t.xp6(2),t.AsE("",ct.currency," \xa0",t.lcZ(3,2,ct.donation_received_amount+ct.offlineDonationAmount),"")}}function T(et,ot){if(1&et&&(t.TgZ(0,"mat-label",16)(1,"b"),t._uU(2),t.ALo(3,"number"),t.qZA(),t._uU(4,"\xa0 "),t.TgZ(5,"span"),t.SDv(6,20),t.qZA()()),2&et){const ct=t.oxw(2);t.xp6(2),t.AsE("",ct.currency,"\xa0",t.lcZ(3,2,ct.donation_target_amount)," ")}}function F(et,ot){1&et&&(t.TgZ(0,"mat-label",16),t._uU(1," \xa0 "),t.qZA())}function le(et,ot){if(1&et&&(t.TgZ(0,"div"),t._UZ(1,"mat-progress-bar",21),t.qZA()),2&et){const ct=t.oxw(2);t.xp6(1),t.s9C("value",ct.donation_progress_percentage)}}function V(et,ot){if(1&et&&(t.TgZ(0,"span"),t._uU(1),t.TgZ(2,"span"),t.SDv(3,22),t.qZA()()),2&et){const ct=t.oxw(2);t.xp6(1),t.hij(" ",ct.donation_days_left,"\xa0 ")}}function de(et,ot){1&et&&(t.TgZ(0,"span")(1,"span"),t.SDv(2,23),t.qZA()())}function ye(et,ot){1&et&&(t.TgZ(0,"span")(1,"span"),t.SDv(2,24),t.qZA()())}function Ee(et,ot){if(1&et&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&et){const ct=t.oxw(2);t.xp6(1),t.hij(" ",t.xi3(2,1,100*ct.donation_received_amount/ct.donation_target_amount,"1.0-1"),"% ")}}function Le(et,ot){1&et&&(t.TgZ(0,"p"),t._uU(1," \xa0 "),t.qZA())}function ge(et,ot){if(1&et){const ct=t.EpF();t.TgZ(0,"mat-card",5,6),t.NdJ("click",function(){t.CHM(ct);const $t=t.oxw();return t.KtG($t.isClickAllowed?$t.routeToFundraiserEdit():null)}),t.YNc(2,I,1,2,"img",7),t.YNc(3,q,1,3,"img",8),t.TgZ(4,"mat-card-header")(5,"img",9),t.NdJ("error",function($t){t.CHM(ct);const It=t.oxw();return t.KtG(It.handleImageError($t,It.defaultProfileImage))}),t.qZA(),t.TgZ(6,"mat-card-title",10),t._uU(7),t.qZA(),t.TgZ(8,"mat-card-subtitle"),t._uU(9),t.qZA()(),t.TgZ(10,"mat-card-content")(11,"p"),t._uU(12),t.qZA(),t.YNc(13,D,11,8,"mat-label",11),t.YNc(14,M,7,4,"mat-label",11),t.YNc(15,T,7,4,"mat-label",11),t.YNc(16,F,2,0,"mat-label",11),t.YNc(17,le,2,1,"div",12),t.TgZ(18,"div",13)(19,"p"),t.YNc(20,V,4,1,"span",12),t.YNc(21,de,3,0,"span",12),t.YNc(22,ye,3,0,"span",12),t.qZA(),t.TgZ(23,"p"),t.YNc(24,Ee,3,4,"span",12),t.qZA(),t.YNc(25,Le,2,0,"p",12),t.qZA()()()}if(2&et){const ct=t.oxw();t.Q6J("ngClass",ct.isClickAllowed?"card-clickable":""),t.xp6(2),t.Q6J("ngIf",null==ct.fundraiserCardData||null==ct.fundraiserCardData.backgroundImage?null:ct.fundraiserCardData.backgroundImage.video),t.xp6(1),t.Q6J("ngIf",!(null!=ct.fundraiserCardData&&null!=ct.fundraiserCardData.backgroundImage&&ct.fundraiserCardData.backgroundImage.video)),t.xp6(2),t.s9C("src",ct.profile_avatar_img.src,t.LSH),t.s9C("alt",ct.profile_avatar_img.alt),t.xp6(2),t.Oqu(ct.fundraiser_title),t.xp6(2),t.Oqu(ct.profile_name),t.xp6(3),t.Oqu(ct.fundraiser_description),t.xp6(1),t.Q6J("ngIf",ct.isShowBothDonationAndTargetAmount),t.xp6(1),t.Q6J("ngIf",ct.isShowOnlyDonationAmountView),t.xp6(1),t.Q6J("ngIf",ct.isShowOnlyTargetAmountView),t.xp6(1),t.Q6J("ngIf",!(ct.isShowBothDonationAndTargetAmount||ct.isShowOnlyDonationAmountView||ct.isShowOnlyTargetAmountView)),t.xp6(1),t.Q6J("ngIf",null==ct.fundraiserCardData?null:ct.fundraiserCardData.showDonationAmount),t.xp6(3),t.Q6J("ngIf",ct.donation_days_left>1),t.xp6(1),t.Q6J("ngIf",1===ct.donation_days_left),t.xp6(1),t.Q6J("ngIf",0===ct.donation_days_left),t.xp6(2),t.Q6J("ngIf",ct.isShowBothDonationAndTargetAmount),t.xp6(1),t.Q6J("ngIf",!(ct.isShowBothDonationAndTargetAmount||ct.isDaysLeftShow))}}function ue(et,ot){if(1&et&&t.GkF(0,26),2&et){t.oxw(2);const ct=t.MAs(6);t.Q6J("ngTemplateOutlet",ct)}}function ee(et,ot){if(1&et&&t.GkF(0,26),2&et){t.oxw(2);const ct=t.MAs(4);t.Q6J("ngTemplateOutlet",ct)}}function se(et,ot){if(1&et&&t.GkF(0,26),2&et){t.oxw(2);const ct=t.MAs(8);t.Q6J("ngTemplateOutlet",ct)}}function W(et,ot){if(1&et&&(t.YNc(0,ue,1,1,"ng-container",25),t.YNc(1,ee,1,1,"ng-container",25),t.YNc(2,se,1,1,"ng-container",25)),2&et){const ct=t.oxw();t.Q6J("ngIf","small"===ct.type&&ct._media.isActive("xs")),t.xp6(1),t.Q6J("ngIf","small"===ct.type&&ct._media.isActive("gt-xs")),t.xp6(1),t.Q6J("ngIf","donationPage"===ct.type)}}const L=function(){return{cover:"fill"}};function he(et,ot){if(1&et&&t._UZ(0,"img",41),2&et){const ct=t.oxw(2);t.s9C("src",ct.youtubeThumbnail,t.LSH),t.s9C("alt",ct.fundraiser_bg_img.alt),t.Q6J("ngStyle",t.DdM(3,L))}}function _e(et,ot){if(1&et){const ct=t.EpF();t.TgZ(0,"img",42),t.NdJ("error",function($t){t.CHM(ct);const It=t.oxw(2);return t.KtG(It.handleImageError($t,It.defaultBackgroundImage))}),t.qZA()}if(2&et){const ct=t.oxw(2);t.s9C("src",ct.fundraiser_bg_img.src,t.LSH),t.s9C("alt",ct.fundraiser_bg_img.alt),t.Q6J("ngStyle",t.DdM(3,L))}}function Z(et,ot){if(1&et&&(t.ynx(0),t.TgZ(1,"div",43)(2,"span"),t.SDv(3,44),t.qZA(),t._uU(4),t.qZA(),t.BQk()),2&et){const ct=t.oxw(2);t.xp6(4),t.hij("\xa0 ",ct.truncateText(ct.parent_fundraiser_title,16)," ")}}function Te(et,ot){if(1&et&&(t.TgZ(0,"div",46)(1,"b"),t._uU(2),t.ALo(3,"number"),t.qZA(),t._uU(4,"\xa0 "),t.TgZ(5,"span"),t.SDv(6,47),t.qZA(),t._uU(7),t.qZA()),2&et){const ct=t.oxw(3);t.s9C("matTooltip",ct.hoverTooltip),t.xp6(2),t.AsE("",ct.currency,"\xa0",t.lcZ(3,5,ct.donation_received_amount),""),t.xp6(5),t.AsE("\xa0",ct.currency,"\xa0",ct.trimDonationTarget(ct.donation_target_amount)," ")}}function w(et,ot){if(1&et&&(t.TgZ(0,"div")(1,"b"),t._uU(2),t.ALo(3,"number"),t.qZA(),t._uU(4,"\xa0 "),t.TgZ(5,"span"),t.SDv(6,48),t.qZA(),t._uU(7),t.ALo(8,"number"),t.qZA()),2&et){const ct=t.oxw(3);t.xp6(2),t.AsE("",ct.currency,"\xa0",t.lcZ(3,4,ct.donation_received_amount),""),t.xp6(5),t.AsE("\xa0",ct.currency,"\xa0",t.lcZ(8,6,ct.donation_target_amount)," ")}}function k(et,ot){if(1&et&&(t.TgZ(0,"mat-label",16),t.YNc(1,Te,8,7,"div",45),t.YNc(2,w,9,8,"div",12),t.qZA()),2&et){const ct=t.oxw(2);t.xp6(1),t.Q6J("ngIf",ct.donation_received_amount.toString().length>2),t.xp6(1),t.Q6J("ngIf",ct.donation_received_amount.toString().length<3)}}function x(et,ot){if(1&et&&(t.TgZ(0,"mat-label",16)(1,"b"),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&et){const ct=t.oxw(2);t.xp6(2),t.AsE("",ct.currency,"\xa0 ",t.lcZ(3,2,ct.donation_received_amount),"")}}function z(et,ot){if(1&et&&(t.ynx(0),t.TgZ(1,"div",46),t._UZ(2,"img",49),t.qZA(),t.BQk()),2&et){const ct=t.oxw(2);t.xp6(1),t.s9C("matTooltip",ct.mainFundraiserToolTip)}}function j(et,ot){if(1&et&&(t.ynx(0),t.TgZ(1,"div",46),t._UZ(2,"img",50),t.qZA(),t.BQk()),2&et){const ct=t.oxw(2);t.xp6(1),t.s9C("matTooltip",ct.connectedFundraiserToolTip)}}function Ne(et,ot){if(1&et){const ct=t.EpF();t.TgZ(0,"mat-card",27),t.NdJ("click",function(){t.CHM(ct);const $t=t.oxw();return t.KtG($t.routeToFundraiserEdit())}),t.TgZ(1,"mat-card-content",28)(2,"div",29),t.ynx(3),t.YNc(4,he,1,4,"img",30),t.YNc(5,_e,1,4,"img",31),t.BQk(),t.qZA(),t.TgZ(6,"div",32)(7,"div",33)(8,"div",34)(9,"div",35),t._uU(10),t.qZA(),t.TgZ(11,"button",36)(12,"span",37),t._uU(13," edit "),t.qZA()()(),t.YNc(14,Z,5,1,"ng-container",12),t.qZA(),t.TgZ(15,"div")(16,"div",38)(17,"img",39),t.NdJ("error",function($t){t.CHM(ct);const It=t.oxw();return t.KtG(It.handleImageError($t,It.defaultProfileImage))}),t.qZA(),t.TgZ(18,"p"),t._uU(19),t.qZA()(),t.TgZ(20,"div",40)(21,"div"),t.YNc(22,k,3,2,"mat-label",11),t.YNc(23,x,4,4,"mat-label",11),t.qZA(),t.TgZ(24,"div"),t.YNc(25,z,3,1,"ng-container",12),t.YNc(26,j,3,1,"ng-container",12),t.qZA()()()()()()}if(2&et){const ct=t.oxw();t.xp6(4),t.Q6J("ngIf",null==ct.fundraiserCardData||null==ct.fundraiserCardData.backgroundImage?null:ct.fundraiserCardData.backgroundImage.video),t.xp6(1),t.Q6J("ngIf",!(null!=ct.fundraiserCardData&&null!=ct.fundraiserCardData.backgroundImage&&ct.fundraiserCardData.backgroundImage.video)),t.xp6(5),t.hij(" ",ct.truncateText(ct.fundraiser_title,55)," "),t.xp6(4),t.Q6J("ngIf",null==ct.fundraiserCardData?null:ct.fundraiserCardData.isChild),t.xp6(3),t.s9C("src",ct.profile_avatar_img.src,t.LSH),t.s9C("alt",ct.profile_avatar_img.alt),t.xp6(2),t.Oqu(ct.truncateText(ct.profile_name,26)),t.xp6(3),t.Q6J("ngIf",!ct.isShowOnlyDonationAmountView),t.xp6(1),t.Q6J("ngIf",ct.isShowOnlyDonationAmountView),t.xp6(2),t.Q6J("ngIf",!(null!=ct.fundraiserCardData&&ct.fundraiserCardData.isChild)),t.xp6(1),t.Q6J("ngIf",null==ct.fundraiserCardData?null:ct.fundraiserCardData.isChild)}}function tt(et,ot){if(1&et){const ct=t.EpF();t.TgZ(0,"img",57),t.NdJ("error",function($t){t.CHM(ct);const It=t.oxw(2);return t.KtG(It.handleImageError($t,It.defaultBackgroundImage))}),t.qZA()}if(2&et){const ct=t.oxw(2);t.s9C("src",ct.youtubeThumbnail,t.LSH)}}function We(et,ot){if(1&et){const ct=t.EpF();t.TgZ(0,"img",57),t.NdJ("error",function($t){t.CHM(ct);const It=t.oxw(2);return t.KtG(It.handleImageError($t,It.defaultBackgroundImage))}),t.qZA()}if(2&et){const ct=t.oxw(2);t.s9C("src",ct.fundraiser_bg_img.src,t.LSH)}}function ze(et,ot){if(1&et&&(t.ynx(0),t.TgZ(1,"span",43)(2,"span"),t._uU(3,"Connected to"),t.qZA(),t._uU(4),t.qZA(),t._UZ(5,"br"),t.BQk()),2&et){const ct=t.oxw(2);t.xp6(4),t.hij("\xa0 ",ct.profile_name," ")}}function we(et,ot){if(1&et&&(t.TgZ(0,"mat-label",16)(1,"b"),t._uU(2),t.ALo(3,"number"),t.qZA(),t._uU(4,"\xa0 "),t.TgZ(5,"span"),t.SDv(6,58),t.qZA(),t._uU(7),t.ALo(8,"number"),t.qZA()),2&et){const ct=t.oxw(2);t.xp6(2),t.AsE(" ",ct.currency,"\xa0",t.lcZ(3,4,ct.donation_received_amount),""),t.xp6(5),t.AsE("\xa0 ",ct.currency,"\xa0",t.lcZ(8,6,ct.donation_target_amount)," ")}}function Ye(et,ot){if(1&et&&(t.TgZ(0,"mat-label",16)(1,"b"),t._uU(2),t.ALo(3,"number"),t.qZA(),t._uU(4,"\xa0 "),t.TgZ(5,"span"),t.SDv(6,59),t.qZA()()),2&et){const ct=t.oxw(2);t.xp6(2),t.AsE(" ",ct.currency,"\xa0",t.lcZ(3,2,ct.donation_received_amount),"")}}function te(et,ot){1&et&&(t.ynx(0),t._UZ(1,"img",49),t.BQk())}function Se(et,ot){1&et&&(t.ynx(0),t._UZ(1,"img",50),t.BQk())}const ke=function(){return{width:"90%"}};function Ge(et,ot){if(1&et){const ct=t.EpF();t.TgZ(0,"mat-card",51),t.NdJ("click",function(){t.CHM(ct);const $t=t.oxw();return t.KtG($t.routeToFundraiserEdit())}),t.TgZ(1,"mat-card-content")(2,"div",52),t.ynx(3),t.YNc(4,tt,1,1,"img",53),t.YNc(5,We,1,1,"img",53),t.BQk(),t.TgZ(6,"div",28)(7,"div",54)(8,"div",55)(9,"div",35),t._uU(10),t.qZA(),t.TgZ(11,"span",37),t._uU(12," edit "),t.qZA()(),t._UZ(13,"br"),t.YNc(14,ze,6,1,"ng-container",12),t.TgZ(15,"div",56)(16,"div"),t.YNc(17,we,9,8,"mat-label",11),t.YNc(18,Ye,7,4,"mat-label",11),t.qZA(),t.TgZ(19,"div"),t.YNc(20,te,2,0,"ng-container",12),t.YNc(21,Se,2,0,"ng-container",12),t.qZA()()()()()()()}if(2&et){const ct=t.oxw();t.Q6J("ngStyle",t.DdM(9,ke)),t.xp6(4),t.Q6J("ngIf",null==ct.fundraiserCardData||null==ct.fundraiserCardData.backgroundImage?null:ct.fundraiserCardData.backgroundImage.video),t.xp6(1),t.Q6J("ngIf",!(null!=ct.fundraiserCardData&&null!=ct.fundraiserCardData.backgroundImage&&ct.fundraiserCardData.backgroundImage.video)),t.xp6(5),t.hij(" ",ct.truncateText(ct.fundraiser_title,63)," "),t.xp6(4),t.Q6J("ngIf",null==ct.fundraiserCardData?null:ct.fundraiserCardData.isChild),t.xp6(3),t.Q6J("ngIf",!ct.isShowOnlyDonationAmountView),t.xp6(1),t.Q6J("ngIf",ct.isShowOnlyDonationAmountView),t.xp6(2),t.Q6J("ngIf",!(null!=ct.fundraiserCardData&&ct.fundraiserCardData.isChild)),t.xp6(1),t.Q6J("ngIf",null==ct.fundraiserCardData?null:ct.fundraiserCardData.isChild)}}const Tt=function(et){return{"w-100 h-100":et}};function Et(et,ot){if(1&et&&t._UZ(0,"img",69),2&et){const ct=t.oxw(2);t.s9C("src",ct.youtubeThumbnail,t.LSH),t.s9C("alt",ct.fundraiser_bg_img.alt),t.Q6J("ngClass",t.VKq(3,Tt,ct.isSmallScreen()))}}function H(et,ot){if(1&et){const ct=t.EpF();t.TgZ(0,"img",70),t.NdJ("error",function($t){t.CHM(ct);const It=t.oxw(2);return t.KtG(It.handleImageError($t,It.defaultBackgroundImage))}),t.qZA()}if(2&et){const ct=t.oxw(2);t.s9C("src",ct.fundraiser_bg_img.src,t.LSH),t.s9C("alt",ct.fundraiser_bg_img.alt),t.Q6J("ngClass",t.VKq(3,Tt,ct.isSmallScreen()))}}function Y(et,ot){if(1&et&&(t.TgZ(0,"div",46)(1,"b",65),t._uU(2),t.ALo(3,"number"),t.qZA(),t._uU(4,"\xa0 "),t.TgZ(5,"span",72),t.SDv(6,73),t.qZA(),t._uU(7,"\xa0"),t.TgZ(8,"span",72),t._uU(9),t.qZA()()),2&et){const ct=t.oxw(3);t.s9C("matTooltip",ct.hoverTooltip),t.xp6(2),t.AsE("",ct.currency,"\xa0",t.lcZ(3,5,ct.donation_received_amount),""),t.xp6(7),t.AsE("",ct.currency,"\xa0",ct.donation_target_amount,"")}}function S(et,ot){if(1&et&&(t.TgZ(0,"div")(1,"b",65),t._uU(2),t.ALo(3,"number"),t.qZA(),t._uU(4,"\xa0 "),t.TgZ(5,"span",72),t.SDv(6,74),t.qZA(),t._uU(7,"\xa0 "),t.TgZ(8,"span",72),t._uU(9),t.ALo(10,"number"),t.qZA()()),2&et){const ct=t.oxw(3);t.xp6(2),t.AsE("",ct.currency,"\xa0",t.lcZ(3,4,ct.donation_received_amount),""),t.xp6(7),t.AsE("",ct.currency,"\xa0",t.lcZ(10,6,ct.donation_target_amount),"")}}function K(et,ot){if(1&et&&(t.TgZ(0,"mat-label",71),t.YNc(1,Y,10,7,"div",45),t.YNc(2,S,11,8,"div",12),t.qZA()),2&et){const ct=t.oxw(2);t.xp6(1),t.Q6J("ngIf",ct.donation_received_amount.toString().length>2),t.xp6(1),t.Q6J("ngIf",ct.donation_received_amount.toString().length<3)}}function Q(et,ot){if(1&et&&(t.TgZ(0,"mat-label",71)(1,"b"),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&et){const ct=t.oxw(2);t.xp6(2),t.AsE("",ct.currency,"\xa0 ",t.lcZ(3,2,ct.donation_received_amount),"")}}function B(et,ot){if(1&et&&(t.TgZ(0,"mat-label",16)(1,"b"),t._uU(2),t.ALo(3,"number"),t.qZA(),t._uU(4,"\xa0 "),t.TgZ(5,"span"),t.SDv(6,75),t.qZA()()),2&et){const ct=t.oxw(2);t.xp6(2),t.AsE("",ct.currency,"\xa0",t.lcZ(3,2,ct.donation_target_amount)," ")}}function re(et,ot){1&et&&(t.TgZ(0,"mat-label",16),t._uU(1," \xa0 "),t.qZA())}function fe(et,ot){if(1&et&&(t.TgZ(0,"div",76),t._UZ(1,"mat-progress-bar",77),t.qZA()),2&et){const ct=t.oxw(2);t.xp6(1),t.s9C("value",ct.donation_progress_percentage)}}function qe(et,ot){if(1&et&&(t.TgZ(0,"div",60)(1,"div",29),t.ynx(2),t.YNc(3,Et,1,5,"img",61),t.YNc(4,H,1,5,"img",62),t.BQk(),t.qZA(),t.TgZ(5,"div",63)(6,"div",33)(7,"div",64)(8,"div",65),t._uU(9),t.qZA()()(),t.TgZ(10,"div")(11,"div",66)(12,"div"),t.YNc(13,K,3,2,"mat-label",67),t.YNc(14,Q,4,4,"mat-label",67),t.YNc(15,B,7,4,"mat-label",11),t.YNc(16,re,2,0,"mat-label",11),t.qZA()(),t.YNc(17,fe,2,1,"div",68),t.qZA()()()),2&et){const ct=t.oxw();t.xp6(3),t.Q6J("ngIf",null==ct.fundraiserCardData||null==ct.fundraiserCardData.backgroundImage?null:ct.fundraiserCardData.backgroundImage.video),t.xp6(1),t.Q6J("ngIf",!(null!=ct.fundraiserCardData&&null!=ct.fundraiserCardData.backgroundImage&&ct.fundraiserCardData.backgroundImage.video)),t.xp6(5),t.hij(" ",ct.truncateText(ct.fundraiser_title,45)," "),t.xp6(4),t.Q6J("ngIf",ct.isShowBothDonationAndTargetAmount),t.xp6(1),t.Q6J("ngIf",ct.isShowOnlyDonationAmountView),t.xp6(1),t.Q6J("ngIf",ct.isShowOnlyTargetAmountView),t.xp6(1),t.Q6J("ngIf",!(ct.isShowBothDonationAndTargetAmount||ct.isShowOnlyDonationAmountView||ct.isShowOnlyTargetAmountView)),t.xp6(1),t.Q6J("ngIf",null==ct.fundraiserCardData?null:ct.fundraiserCardData.showDonationAmount)}}let $e=(()=>{class et{constructor(ct,pt,$t,It){this._media=ct,this._AccountService=pt,this._router=$t,this.sanitizer=It,this.isClickAllowed=!0,this.bgImgOption="w_400,h_200,dpr_auto,f_auto,q_auto/",this.profileImgOption="w_48,h_48,dpr_auto,f_auto,q_auto/",this.bgDefaultImg={src:""},this.profileDefaultImg={src:""},this.fundraiser_bg_img={src:""},this.profile_avatar_img={src:""},this.fundraiser_title="",this.profile_name="",this.parent_fundraiser_title="",this.fundraiser_description="",this.donation_target_amount=0,this.donation_received_amount=0,this.offlineDonationAmount=0,this.donation_progress_percentage=0,this.donation_days_left=-1,this.isShowOnlyDonationAmountView=!1,this.isShowOnlyTargetAmountView=!1,this.isShowBothDonationAndTargetAmount=!1,this.isDaysLeftShow=!1,this.hoverTooltip="",this.ofTranslation="ili",this.mainFundraiserToolTip="Glavno prikupljanje sredstava - Samostalan prikuplja\u010D sredstava.",this.connectedFundraiserToolTip="Prikuplja\u010D sredstava povezan s glavnim prikuplja\u010Dem sredstava.",this.defaultBackgroundImage="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fundraiser_default_bg/public",this.defaultProfileImage="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/whydonate_user/public",this.locale=this._AccountService.getLocaleId(),this.isShowOnlyTargetAmountView=!1,this.isShowBothDonationAndTargetAmount=!1}ngOnInit(){try{const ct=this.fundraiserCardData?.backgroundImage?.video||this.fundraiserCardData?.background_video||"";this.youtubeThumbnail=this.checkVideoUrl(ct),this.videoPath=ct,this.setImageBaseUrl(),this.setImages(),this.setHeaderAndContent(),this.setDonationAmountTarget(),this.setDonationProgressValue(),this.setDaysLeft(),this.setViewFlags()}catch(ct){console.error(ct)}}checkVideoUrl(ct){return ct.match(/^(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/)(\d+)(?:\S+)?$/)?this.generateVimeoIframe(ct):ct.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:embed\/|watch\?v=|v\/|shorts\/)|youtu\.be\/)([\w\-]+)(?:\S+)?$/)?this.generateYouTubeIframe(ct):"unknown"}generateVimeoIframe(ct){return`https://vumbnail.com/${this.getVideoIdVimeo(ct)}.jpg`}generateYouTubeIframe(ct){return`https://i.ytimg.com/vi/${this.getVideoIdYoutube(ct)}/mqdefault.jpg`}getVideoIdYoutube(ct){const $t=ct?.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:embed\/|watch\?v=|v\/|shorts\/)|youtu\.be\/)([\w\-]+)(?:\S+)?$/);return $t&&$t[1]?$t[1]:""}getVideoIdVimeo(ct){const $t=ct?.match(/^(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/)(\d+)(?:\S+)?$/);return $t&&$t[1]?$t[1]:""}setImageBaseUrl(){this.bgDefaultImg.src="https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/production/fundraiser_header/default/public",this.profileDefaultImg.src="https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/production/profile_image/default/public"}setImages(){this.fundraiserCardData?.backgroundImage?.src?this.fundraiser_bg_img.src=this.fundraiserCardData?.backgroundImage?.src:this.fundraiser_bg_img=this.bgDefaultImg,this.fundraiserCardData?.profileImage?.src?this.profile_avatar_img.src=this.fundraiserCardData?.profileImage?.src:this.profile_avatar_img=this.profileDefaultImg}setHeaderAndContent(){this.fundraiser_title=this.fundraiserCardData?.title||"",this.profile_name=this.fundraiserCardData?.name||"",this.parent_fundraiser_title=this.fundraiserCardData?.connected_to||"",this.fundraiser_description=this.fundraiserCardData?.description||""}setDonationAmountTarget(){this.donation_received_amount=this.fundraiserCardData?.donationReceivedAmount||0,this.donation_target_amount=this.fundraiserCardData?.donationTargetAmount||0,this.offlineDonationAmount=this.fundraiserCardData?.offlineDonationAmount||0,this.currency=this.fundraiserCardData?.currency||"\u20ac",this.hoverTooltip=this.currency+this.donation_received_amount.toLocaleString()+" "+this.ofTranslation+" "+this.currency+this.donation_target_amount.toLocaleString()}setDonationProgressValue(){this.isShowDonationAmount()&&this.isDonationAmountExist()&&this.isTargetAmountExist()&&(this.donation_progress_percentage=Math.floor(this.donation_received_amount/this.donation_target_amount*100))}setDaysLeft(){this.donation_days_left=this.fundraiserCardData?.donationDaysLeft||0}setViewFlags(){this.setFlagForDonationAmountView(),this.setFlagForTargetAmountView(),this.setFlagForDonationAndTargetAmountView(),this.setDaysLeftView()}setFlagForDonationAmountView(){this.isShowDonationAmount()&&(this.isShowOnlyDonationAmountView=this.isDonationAmountExist()&&!this.isTargetAmountExist())}setFlagForTargetAmountView(){this.isShowDonationAmount()||(this.isShowOnlyTargetAmountView=this.isTargetAmountExist())}setFlagForDonationAndTargetAmountView(){this.isShowDonationAmount()&&(this.isShowBothDonationAndTargetAmount=this.isDonationAmountExist()&&this.isTargetAmountExist())}setDaysLeftView(){this.isDaysLeftShow=this.donation_days_left>=0}isShowDonationAmount(){return this.fundraiserCardData?.showDonationAmount||!1}isDonationAmountExist(){let ct=this.fundraiserCardData?.donationReceivedAmount||0;return ct>=0&&Number.isInteger(ct)}isTargetAmountExist(){return!!this.fundraiserCardData?.donationTargetAmount}routeToFundraiser(){this._router.navigate(["fundraising",this.slug])}routeToFundraiserEdit(){this._router.navigate(["fundraising",this.slug])}routeToFundraiserNewTab(){let ct=this._router.serializeUrl(this._router.createUrlTree(["fundraising",this.slug]));window.open(ct,"_blank")}truncateText(ct,pt){return ct.length<=pt?ct:ct.substring(0,pt)+"..."}handleImageError(ct,pt){ct.target.src=pt}trimDonationTarget(ct){const pt=ct.toLocaleString();return pt.length>6?pt.slice(0,3)+"...":pt}isSmallScreen(){return window.innerWidth<600}}return et.\u0275fac=function(ct){return new(ct||et)(t.Y36(e.u0),t.Y36(d.B),t.Y36(l.F0),t.Y36(r.H7))},et.\u0275cmp=t.Xpm({type:et,selectors:[["app-fundraiser-card"]],inputs:{slug:"slug",fundraiserCardData:"fundraiserCardData",type:"type",isClickAllowed:"isClickAllowed"},decls:9,vars:2,consts:function(){let ot,ct,pt,$t,It,fr,yt,dr,bt,ar,vt,qt,br,lt;return ot="od",ct="donirao",pt="Ciljni iznos",$t="preostalo dan(a)",It="Zadnji dan",fr="Zatvoreno",yt="Povezano s",dr="od",bt="od",ar="od",vt="donirao",qt="od",br="od",lt="Ciljni iznos",[["defaultCardStyle",""],[3,"ngIf","ngIfElse"],["smallCard_horizontal",""],["smallCard_vertical",""],["donationPageCard",""],["id","fundraiserCardcomp",1,"mat-elevation-z1",3,"ngClass","click"],["fundraiserCard",""],["mat-card-image","","loading","lazy","onerror","this.src='./assets/img/fundraiser_default_bg.png';this.onerror='';",3,"src","alt",4,"ngIf"],["mat-card-image","","loading","lazy",3,"id","src","alt","error",4,"ngIf"],["mat-card-avatar","","loading","lazy",3,"src","alt","error"],[1,"mat-card-title"],["class","mat-subtitle-1",4,"ngIf"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between start"],["mat-card-image","","loading","lazy","onerror","this.src='./assets/img/fundraiser_default_bg.png';this.onerror='';",3,"src","alt"],["mat-card-image","","loading","lazy",3,"id","src","alt","error"],[1,"mat-subtitle-1"],[1,"light-grey-texts"],ot,ct,pt,[1,"m-t-xs","m-b-xs",3,"value"],$t,It,fr,[3,"ngTemplateOutlet",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"mat-elevation-z2","card-clickable","m-s",3,"click"],["fxLayout","row"],["fxLayout","column","fxLayoutAlign","center"],["height","120","width","240","loading","lazy","onerror","this.src='./assets/img/fundraiser_default_bg.png';this.onerror='';",3,"ngStyle","src","alt",4,"ngIf"],["height","120","width","240","loading","lazy",3,"ngStyle","src","alt","error",4,"ngIf"],["fxLayout","column","fxFlex","100%","fxFlex.sm","100%","fxFlex.xs","100",1,"m-l-m"],[1,"header"],["fxLfayout","row","fxLayoutAlign","space-between","fxLayoutGap","1%"],[1,"mat-subtitle-2","title"],["mat-icon-button",""],[1,"material-icons-outlined"],["fxLayout","row","fxLayoutGap","2%"],["mat-card-avatar","","loading","lazy",2,"width","20px","height","20px !important",3,"src","alt","error"],["fxLayout","row","fxLayoutAlign","space-between flex-end"],["height","120","width","240","loading","lazy","onerror","this.src='./assets/img/fundraiser_default_bg.png';this.onerror='';",3,"ngStyle","src","alt"],["height","120","width","240","loading","lazy",3,"ngStyle","src","alt","error"],[1,"mat-caption"],yt,["class","hover-class",3,"matTooltip",4,"ngIf"],[1,"hover-class",3,"matTooltip"],dr,bt,["width","20","height","20","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/mainFundraiser/public"],["width","20","height","20","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/connectedFundraiser/public"],[1,"card-clickable","m-b-m",3,"ngStyle","click"],["fxLayout","column"],["class","w-100","loading","lazy",3,"src","error",4,"ngIf"],["fxFlex",""],["fxLfayout","row","fxLayoutAlign","space-between","fxLayoutGap","1%","ngClass","p-t-xs"],["fxLayout","row","fxLayoutAlign","space-between"],["loading","lazy",1,"w-100",3,"src","error"],ar,vt,["fxLayout","row","fxLayout.xs","column"],["height","120","width","240","loading","lazy","onerror","this.src='./assets/img/fundraiser_default_bg.png';this.onerror='';",3,"ngClass","src","alt",4,"ngIf"],["height","120","width","240","loading","lazy",3,"ngClass","src","alt","error",4,"ngIf"],["fxLayout","column","ngClass.gt-xs","p-l-s","ngClass.lt-sm","p-t-xs","fxFlex","100%","fxFlex.sm","100%","fxFlex.xs","100"],["fxLfayout","row","fxLayoutAlign","space-between"],[1,"mat-title"],["fxLayout","row","fxLayoutAlign","space-between flex-end","ngClass","p-t-xs"],["class","mat-subheading-2",4,"ngIf"],["fxLayout","row","fxLayoutGap","2%","ngClass","p-t-xs",4,"ngIf"],["height","120","width","240","loading","lazy","onerror","this.src='./assets/img/fundraiser_default_bg.png';this.onerror='';",3,"ngClass","src","alt"],["height","120","width","240","loading","lazy",3,"ngClass","src","alt","error"],[1,"mat-subheading-2"],[1,"mat-title","light-grey-texts"],qt,br,lt,["fxLayout","row","fxLayoutGap","2%","ngClass","p-t-xs"],[3,"value"]]},template:function(ct,pt){if(1&ct&&(t.YNc(0,ge,26,18,"ng-template",null,0,t.W1O),t.YNc(2,W,3,3,"ng-template",1),t.YNc(3,Ne,27,11,"ng-template",null,2,t.W1O),t.YNc(5,Ge,22,10,"ng-template",null,3,t.W1O),t.YNc(7,qe,18,8,"ng-template",null,4,t.W1O)),2&ct){const $t=t.MAs(1);t.xp6(2),t.Q6J("ngIf","small"===pt.type||"donationPage"===pt.type)("ngIfElse",$t)}},dependencies:[c.mk,c.O5,c.tP,c.PC,E.$V,m.S$,m.u7,m.Qi,m.mi,m._K,m.k0,m.lb,v.eB,C.eI,n.gM,i.xw,i.SQ,i.Wh,i.yH,P.oO,P.Zl,c.JJ]}),et})()},76243:(St,be,s)=>{"use strict";s.d(be,{y:()=>v});var t=s(73991),e=s(21704),d=s(17774),l=s(4692),r=s(27579);function c(C,n){if(1&C&&(t.TgZ(0,"mat-label")(1,"div",1)(2,"b"),t._uU(3),t.ALo(4,"number"),t.qZA(),t._uU(5,"\xa0"),t.TgZ(6,"span"),t.SDv(7,2),t.qZA(),t._uU(8),t.ALo(9,"number"),t.qZA()()),2&C){const i=t.oxw();t.xp6(3),t.AsE("",i.fundraiserCardData.currency_symbol||i.symbol,"\xa0",t.lcZ(4,4,i.donation_received_amount),""),t.xp6(5),t.AsE("\xa0",i.fundraiserCardData.currency_symbol||i.symbol,"",t.lcZ(9,6,i.donation_target_amount)," ")}}function E(C,n){if(1&C&&(t.TgZ(0,"mat-label")(1,"b"),t._uU(2),t.ALo(3,"number"),t.qZA(),t._uU(4,"\xa0 "),t.TgZ(5,"span"),t.SDv(6,3),t.qZA()()),2&C){const i=t.oxw();t.xp6(2),t.AsE("",i.fundraiserCardData.currency_symbol||i.symbol,"",t.lcZ(3,2,i.donation_received_amount),"")}}function m(C,n){if(1&C&&(t.TgZ(0,"mat-label")(1,"b"),t._uU(2),t.ALo(3,"number"),t.qZA(),t._uU(4,"\xa0 "),t.TgZ(5,"span"),t.SDv(6,4),t.qZA()()),2&C){const i=t.oxw();t.xp6(2),t.AsE("",i.fundraiserCardData.currency_symbol||i.symbol,"",t.lcZ(3,2,i.donation_target_amount),"")}}let v=(()=>{class C{constructor(i){this._AccountService=i,this.donation_target_amount=0,this.donation_received_amount=0,this.currency_symbol="",this.locale=this._AccountService.getLocaleId()}ngOnChanges(i){Object.keys(i.fundraiserCardData?.currentValue||{}).length&&(this.initialiseFlags(),this.setDonationAmountTarget(),this.setViewFlags())}ngOnInit(){}initialiseFlags(){this.isShowOnlyDonationAmountView=!1,this.isShowOnlyTargetAmountView=!1,this.isShowBothDonationAndTargetAmount=!1}setViewFlags(){this.setFlagForDonationAmountView(),this.setFlagForTargetAmountView(),this.setFlagForDonationAndTargetAmountView()}setFlagForDonationAmountView(){this.isShowDonationAmount()&&(this.isShowOnlyDonationAmountView=this.isDonationAmountExist()&&!this.isTargetAmountExist())}setFlagForTargetAmountView(){this.isShowDonationAmount()||(this.isShowOnlyTargetAmountView=this.isTargetAmountExist())}setFlagForDonationAndTargetAmountView(){this.isShowDonationAmount()&&(this.isShowBothDonationAndTargetAmount=this.isDonationAmountExist()&&this.isTargetAmountExist())}isShowDonationAmount(){return this.fundraiserCardData?.showDonationAmount||!1}isDonationAmountExist(){let i=Math.round(this.fundraiserCardData?.donationReceivedAmount)||0;return i>=0&&Number.isInteger(i)}isTargetAmountExist(){return!!this.fundraiserCardData?.donationTargetAmount}setDonationAmountTarget(){this.donation_received_amount=this.fundraiserCardData?.donationReceivedAmount+(this.offlineDonationAmount||0)||0,this.donation_target_amount=this.fundraiserCardData?.donationTargetAmount||0}}return C.\u0275fac=function(i){return new(i||C)(t.Y36(e.B))},C.\u0275cmp=t.Xpm({type:C,selectors:[["app-amount-view"]],inputs:{fundraiserCardData:"fundraiserCardData",symbol:"symbol",offlineDonationAmount:"offlineDonationAmount"},features:[t.TTD],decls:3,vars:3,consts:function(){let n,i,P;return n="od",i="donirao",P="Ciljni iznos",[[4,"ngIf"],["fxLayout","row wrap"],n,i,P]},template:function(i,P){1&i&&(t.YNc(0,c,10,8,"mat-label",0),t.YNc(1,E,7,4,"mat-label",0),t.YNc(2,m,7,4,"mat-label",0)),2&i&&(t.Q6J("ngIf",P.isShowBothDonationAndTargetAmount),t.xp6(1),t.Q6J("ngIf",P.isShowOnlyDonationAmountView),t.xp6(1),t.Q6J("ngIf",P.isShowOnlyTargetAmountView))},dependencies:[d.O5,l.$V,r.xw,d.JJ],encapsulation:2}),C})()},46362:(St,be,s)=>{"use strict";s.d(be,{f:()=>c});var t=s(73991),e=s(17774);function d(E,m){if(1&E&&(t.TgZ(0,"span"),t._uU(1),t.TgZ(2,"span"),t.SDv(3,1),t.qZA()()),2&E){const v=t.oxw();t.xp6(1),t.hij(" ",v.daysLeft,"\xa0 ")}}function l(E,m){1&E&&(t.TgZ(0,"span")(1,"span"),t.SDv(2,2),t.qZA()())}function r(E,m){1&E&&(t.TgZ(0,"span")(1,"span"),t.SDv(2,3),t.qZA()())}let c=(()=>{class E{constructor(){this.closedStatus=new t.vpe,this.isOpen=!1,this.daysLeft=-1}ngOnInit(){this.isOpen=this.fundraiserCardData?.isOpen}ngOnChanges(v){Object.keys(v.fundraiserCardData?.currentValue||{}).length&&this.setDaysLeft()}setDaysLeft(){this.daysLeft=this.fundraiserCardData?.donationDaysLeft||0}}return E.\u0275fac=function(v){return new(v||E)},E.\u0275cmp=t.Xpm({type:E,selectors:[["app-days-left-view"]],inputs:{fundraiserCardData:"fundraiserCardData"},outputs:{closedStatus:"closedStatus"},features:[t.TTD],decls:3,vars:3,consts:function(){let m,v,C;return m="preostalo dan(a)",v="Zadnji dan",C="Zatvoreno",[[4,"ngIf"],m,v,C]},template:function(v,C){1&v&&(t.YNc(0,d,4,1,"span",0),t.YNc(1,l,3,0,"span",0),t.YNc(2,r,3,0,"span",0)),2&v&&(t.Q6J("ngIf",C.daysLeft>1),t.xp6(1),t.Q6J("ngIf",1===C.daysLeft),t.xp6(1),t.Q6J("ngIf",0===C.daysLeft&&!C.isOpen))},dependencies:[e.O5],encapsulation:2}),E})()},8687:(St,be,s)=>{"use strict";s.d(be,{s:()=>d});var t=s(73991),e=s(16124);let d=(()=>{class l{constructor(){}ngOnChanges(c){Object.keys(c.fundraiserCardData?.currentValue||{}).length&&(this.initialiseValues(),this.setDonationAmountAndTarget(),this.setDonationProgressValue())}ngOnInit(){}initialiseValues(){this.donation_target_amount=0,this.donation_received_amount=0,this.donation_progress_percentage=0}setDonationAmountAndTarget(){this.donation_received_amount=this.fundraiserCardData?.donationReceivedAmount+(this.offlineDonationAmount||0)||0,this.donation_target_amount=this.fundraiserCardData?.donationTargetAmount||0}setDonationProgressValue(){this.isShowDonationAmount()&&this.isDonationAmountExist()&&this.isTargetAmountExist()&&(this.donation_progress_percentage=Math.floor(this.donation_received_amount/this.donation_target_amount*100))}isShowDonationAmount(){return this.fundraiserCardData?.showDonationAmount||!1}isDonationAmountExist(){let c=this.fundraiserCardData?.donationReceivedAmount||0;return c>=0&&Number.isInteger(c)}isTargetAmountExist(){return!!this.fundraiserCardData?.donationTargetAmount}}return l.\u0275fac=function(c){return new(c||l)},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-donation-progress-bar"]],inputs:{fundraiserCardData:"fundraiserCardData",offlineDonationAmount:"offlineDonationAmount"},features:[t.TTD],decls:1,vars:1,consts:[["mode","determinate",3,"value"]],template:function(c,E){1&c&&t._UZ(0,"mat-progress-bar",0),2&c&&t.Q6J("value",E.donation_progress_percentage)},dependencies:[e.eI],encapsulation:2}),l})()},43609:(St,be,s)=>{"use strict";s.d(be,{K:()=>r});var t=s(73991),e=s(17774);function d(c,E){1&c&&(t.ynx(0),t.TgZ(1,"span"),t.SDv(2,1),t.qZA(),t.BQk())}function l(c,E){if(1&c&&(t.ynx(0),t._uU(1),t.ALo(2,"number"),t.YNc(3,d,3,0,"ng-container",0),t.BQk()),2&c){const m=t.oxw();t.xp6(1),t.hij(" ",t.xi3(2,2,m.donation_progress_percentage,"1.0-1"),"% "),t.xp6(2),t.Q6J("ngIf",m.showLabel)}}let r=(()=>{class c{constructor(){this.showLabel=!1}ngOnChanges(m){this.initialiseFalgsAndValues(),this.setDonationAmountAndTarget(),this.setDonationProgressValue(),this.setFlagForDonationAndTargetAmountView()}ngOnInit(){}initialiseFalgsAndValues(){this.donation_target_amount=0,this.donation_received_amount=0,this.donation_progress_percentage=0,this.isShowBothDonationAndTargetAmount=!1}setDonationAmountAndTarget(){this.donation_received_amount=this.fundraiserCardData?.donationReceivedAmount+(this.offlineDonationAmount||0)||0,this.donation_target_amount=this.fundraiserCardData?.donationTargetAmount||0}setFlagForDonationAndTargetAmountView(){this.isShowDonationAmount()&&(this.isShowBothDonationAndTargetAmount=this.isDonationAmountExist()&&this.isTargetAmountExist())}setDonationProgressValue(){this.isShowDonationAmount()&&this.isDonationAmountExist()&&this.isTargetAmountExist()&&(this.donation_progress_percentage=this.donation_received_amount/this.donation_target_amount*100)}isShowDonationAmount(){return this.fundraiserCardData?.showDonationAmount||!1}isDonationAmountExist(){let m=this.fundraiserCardData?.donationReceivedAmount||0;return m>=0&&Number.isInteger(m)}isTargetAmountExist(){return!!this.fundraiserCardData?.donationTargetAmount}}return c.\u0275fac=function(m){return new(m||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["app-donation-progress-percentage"]],inputs:{fundraiserCardData:"fundraiserCardData",showLabel:"showLabel",offlineDonationAmount:"offlineDonationAmount"},features:[t.TTD],decls:1,vars:1,consts:function(){let E;return E="financirano",[[4,"ngIf"],E]},template:function(m,v){1&m&&t.YNc(0,l,4,5,"ng-container",0),2&m&&t.Q6J("ngIf",v.isShowBothDonationAndTargetAmount)},dependencies:[e.O5,e.JJ],encapsulation:2}),c})()},85270:(St,be,s)=>{"use strict";s.d(be,{f:()=>r});var t=s(73991),e=s(17774),d=s(27579),l=s(74351);let r=(()=>{class c{constructor(){}ngOnInit(){}}return c.\u0275fac=function(m){return new(m||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["app-page-loader"]],decls:2,vars:0,consts:[["ngClass","p-xxl","ngClass.sm","p-m","ngClass.xs","p-s","fxLayout","row","fxFlex","100%","fxLayoutAlign","center start"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/whydonate_icon/public",1,"page-loader",2,"width","100px","height","100px"]],template:function(m,v){1&m&&(t.TgZ(0,"div",0),t._UZ(1,"img",1),t.qZA())},dependencies:[e.mk,d.xw,d.Wh,d.yH,l.oO],styles:[".page-loader[_ngcontent-%COMP%]{transform:rotateY(45deg);animation:_ngcontent-%COMP%_rotateAnimation 1s linear infinite}@keyframes _ngcontent-%COMP%_rotateAnimation{0%{transform:rotateY(45deg)}to{transform:rotateY(225deg)}}"]}),c})()},56622:(St,be,s)=>{"use strict";s.d(be,{a:()=>W});var t=s(45720),e=s(77962),d=s.n(e),l=s(73991),r=s(47692),c=s(64886),E=s(21704),m=s(76037),v=s(17774),C=s(4692),n=s(15645),i=s(43073),P=s(69621),I=s(45379),q=s(81560),D=s(27579),M=s(74351),T=s(61551);function F(L,he){if(1&L){const _e=l.EpF();l.TgZ(0,"div",3)(1,"div",62)(2,"div")(3,"button",63),l.NdJ("click",function(){l.CHM(_e);const Te=l.oxw();return l.KtG(Te.onBackClick())}),l.TgZ(4,"mat-icon"),l._uU(5,"chevron_left"),l.qZA()()(),l.TgZ(6,"div")(7,"button",63),l.NdJ("click",function(){l.CHM(_e);const Te=l.oxw();return l.KtG(Te.onCloseClick())}),l.TgZ(8,"mat-icon"),l._uU(9,"close"),l.qZA()()()()()}}function le(L,he){if(1&L){const _e=l.EpF();l.TgZ(0,"div",64)(1,"button",63),l.NdJ("click",function(){l.CHM(_e);const Te=l.oxw();return l.KtG(Te.onCloseClick())}),l.TgZ(2,"mat-icon"),l._uU(3,"close"),l.qZA()()()}}function V(L,he){if(1&L){const _e=l.EpF();l.TgZ(0,"image-cropper",65),l.NdJ("imageCropped",function(Te){l.CHM(_e);const w=l.oxw();return l.KtG(w.imageCropped(Te))}),l.qZA()}if(2&L){const _e=l.oxw();l.Udp("width",200,"px"),l.Q6J("imageChangedEvent",_e.imageChangedEvent)("maintainAspectRatio",!0)("aspectRatio",1)("resizeToWidth",200)("resizeToHeight",200)}}function de(L,he){if(1&L&&l._UZ(0,"img",66),2&L){const _e=l.oxw();l.Q6J("src",_e.logoPreviewImage,l.LSH)}}function ye(L,he){if(1&L){const _e=l.EpF();l.TgZ(0,"button",67),l.NdJ("click",function(){l.CHM(_e),l.oxw();const Te=l.MAs(26);return l.KtG(Te.click())}),l.SDv(1,68),l.qZA()}}function Ee(L,he){if(1&L){const _e=l.EpF();l.TgZ(0,"button",67),l.NdJ("click",function(){l.CHM(_e);const Te=l.oxw();return l.KtG(Te.cropImage())}),l.SDv(1,69),l.qZA()}}function Le(L,he){1&L&&(l.TgZ(0,"div",70),l._UZ(1,"mat-spinner",71),l.qZA())}function ge(L,he){1&L&&(l.TgZ(0,"div",70),l._UZ(1,"mat-spinner",71),l.qZA())}function ue(L,he){if(1&L){const _e=l.EpF();l.TgZ(0,"div",72)(1,"div",73),l._UZ(2,"img",74),l.TgZ(3,"span"),l.SDv(4,75),l.qZA(),l.TgZ(5,"a",76),l.NdJ("click",function(){l.CHM(_e);const Te=l.oxw();return l.KtG(Te.routeToLogin())}),l.SDv(6,77),l.qZA()()()}}const ee=function(L){return{"custom-theme-branding":L,"p-m":!0}},se=function(L){return{"custom-theme-branding":L,"p-0":!0}};let W=(()=>{class L{constructor(_e,Z,Te,w,k,x,z){this.dialogRef=_e,this.fundraiserService=Z,this.data=Te,this._router=w,this.dialog=k,this._accountService=x,this.notificationService=z,this.urlToShare=this.data?.link||"",this.imageChangedEvent="",this.croppedImage="",this.showCropper=!1,this.currentLocale="",this.whydonateLogo="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/whydonate_icon/public",this.selectedSize=300,this.isSizeSelected=!1,this.isFormatSelected=!1,this.isAuthUserUpdate=!1,this.previewSize=300,this.selectedFormat="png",this.userSelectedFormat=null,this.userSelectedSize=null,this.isSaving=!1,this.fundraiserId="",this.localizedTitle="",this.isQRCodeInitialized=!1,this.isLoading=!1,this.qrCodeId=""}ngOnInit(){this._accountService.getLoginInformation().subscribe(_e=>{this.isLoggedIn=_e}),this.currentLocale=this._accountService.getLocaleId(),this.data?.qrUrl&&this.data?.qrLogoUrl?(this.qrCodeId=this.data.qrId,this.urlToShare=this.data.qrUrl,this.logoPreviewImage=this.data.qrLogoUrl,this.userSelectedFormat=this.data.format,this.userSelectedSize=this.data.size,this.onFormatChange(this.userSelectedFormat),this.onSizeChange(this.userSelectedSize),this.localizedTitle=this.data.fundraiser||"No title available",this.fundraiserId=this.data.qrFundraiserId,this.isAuthUserUpdate=!0):(this.logoPreviewImage=this.whydonateLogo,this.urlToShare=this.data?.link||"",this.selectedSize=300,this.localizedTitle="",this.fundraiserId=this.data?.details?.fundraiser?.id),this.updatePreviewSize()}getLocalizedTitle(){const Z=this.data?.details?.fundraiser?.translations?.[`title_${this.currentLocale}`]||this.data?.details?.fundraiser?.translations?.title_en||this.localizedTitle||"No title available";return this.localizedTitle=Z,Z}onResize(){this.updatePreviewSize()}onSizeChange(_e){_e&&(this.selectedSize=_e,this.isSizeSelected=!0,this.generateQRCode(),this.isAuthUserUpdate=!1)}updatePreviewSize(){this.previewSize=window.innerWidth<425?266:300,this.generateQRCode()}onFormatChange(_e){_e&&(this.selectedFormat=_e,this.isFormatSelected=!0,this.generateQRCode(),this.isAuthUserUpdate=!1)}ngAfterViewInit(){this.isQRCodeInitialized||(this.generateQRCode(),this.isQRCodeInitialized=!0)}fileChangeEvent(_e){_e.target.files&&_e.target.files.length>0?(this.imageChangedEvent=_e,this.showCropper=!0):this.showCropper=!1}imageCropped(_e){this.croppedImage=_e.base64??"",this.custom_logo=this.croppedImage?this.dataURItoBlob(this.croppedImage):null,this.isAuthUserUpdate=!1}cropImage(){this.showCropper=!1,this.logoPreviewImage=this.croppedImage,this.custom_logo=this.croppedImage?this.dataURItoBlob(this.croppedImage):null,this.generateQRCode()}dataURItoBlob(_e){if(!_e.includes(","))return null;const Z=atob(_e.split(",")[1]),Te=_e.split(",")[0].split(":")[1].split(";")[0],w=new ArrayBuffer(Z.length),k=new Uint8Array(w);for(let z=0;z<Z.length;z++)k[z]=Z.charCodeAt(z);const x=new Blob([w],{type:Te});return new File([x],"custom_logo.png",{type:Te})}onCloseClick(){this.dialog.closeAll()}onBackClick(){this.dialogRef.close()}generateQRCode(){const _e=this.logoPreviewImage||this.whydonateLogo;this.qrCode?this.qrCode.update({data:this.urlToShare,image:_e,imageOptions:{crossOrigin:"anonymous",margin:2}}):(this.qrCode=new(d())({width:this.previewSize,height:this.previewSize,data:this.urlToShare,image:_e,imageOptions:{crossOrigin:"anonymous",margin:2},dotsOptions:{color:"#000000",type:"square"},backgroundOptions:{color:"#ffffff"}}),this.qrCode.append(document.getElementById("qr-code-preview")))}downloadQRCode(){const _e=this.logoPreviewImage||this.whydonateLogo;try{new(d())({width:this.selectedSize,height:this.selectedSize,data:this.urlToShare,image:_e,imageOptions:{crossOrigin:"anonymous",margin:2},dotsOptions:{color:"#000000",type:"square"},backgroundOptions:{color:"#ffffff"}}).download({name:"qr-code",extension:this.selectedFormat}),this.notificationService.openNotification("QR kod je uspje\u0161no preuzet","OK","success")}catch{this.notificationService.openNotification("Preuzimanje QR Koda nije uspjelo","OK","error")}}routeToLogin(){this._router.navigate(["account/login"]),this.dialog.closeAll()}uploadQRCodeData(){this.isSaving=!0;let _e=new FormData;if(_e.append("fundraising_local_id",this.fundraiserId),_e.append("size",this.selectedSize.toString()),_e.append("format",this.selectedFormat),_e.append("qr_url",this.urlToShare),_e.append("localized_title",this.getLocalizedTitle()),this.custom_logo)_e.append("qr_logo",this.custom_logo,"qr_logo.png"),this.uploadQRCode(_e);else if(this.data?.qrUrl&&this.data?.qrLogoUrl){const Z=this.dataURItoBlob(this.data.qrLogoUrl);Z?(_e.append("qr_logo",Z,"qr_logo.png"),this.uploadQRCode(_e)):this.urlToFile(this.data.qrLogoUrl,"qr_logo.png").then(Te=>{_e.append("qr_logo",Te,"qr_logo.png"),this.uploadQRCode(_e)})}else this.urlToFile(this.whydonateLogo,"default_logo.png").then(Z=>{_e.append("qr_logo",Z,"default_logo.png"),this.uploadQRCode(_e)})}uploadQRCode(_e){this.isLoading=!0,this.isLoggedIn?this.fundraiserService.uploadQrData(_e).subscribe(Z=>{200===Z?.status&&(this.notificationService.openNotification("QR Kod je uspje\u0161no spremljen","OK","success"),this.data?.qrUrl&&this.data?.qrLogoUrl&&this.qrCodeId?this.fundraiserService.deleteQr(this.qrCodeId).subscribe({next:()=>{window.location.reload()},error:()=>{window.location.reload()}}):this._router.navigate(["/custom-branding/qrcode"]),this.isSaving=!1,this.dialog.closeAll())},Z=>{this.isSaving=!1,this.notificationService.openNotification("Spremanje QR Koda nije uspjelo","OK","error")}):this.urlToFile(this.whydonateLogo,"default_logo.png").then(Z=>{const Te=new FileReader;Te.readAsDataURL(Z),Te.onloadend=()=>{const w=Te.result,k={fundraising_local_id:this.fundraiserId,size:this.selectedSize,format:this.selectedFormat,qr_url:this.urlToShare,localized_title:this.getLocalizedTitle(),custom_logo:this.custom_logo?this.croppedImage:w};sessionStorage.setItem("qrSavePayload",JSON.stringify(k)),this._router.navigate(["/account/login"]),this.dialog.closeAll()}})}urlToFile(_e,Z){return fetch(_e).then(Te=>Te.blob()).then(Te=>new File([Te],Z,{type:Te.type}))}}return L.\u0275fac=function(_e){return new(_e||L)(l.Y36(t.so),l.Y36(r.R),l.Y36(t.WI),l.Y36(c.F0),l.Y36(t.uw),l.Y36(E.B),l.Y36(m.g))},L.\u0275cmp=l.Xpm({type:L,selectors:[["app-qr-code-public"]],hostBindings:function(_e,Z){1&_e&&l.NdJ("resize",function(){return Z.onResize()},!1,l.Jf7)},decls:93,vars:29,consts:function(){let he,_e,Z,Te,w,k,x,z,j,Ne,tt,We,ze,we;return he="QR Kod za",_e="Dodajte Logotip",Z="Maksimalno 5 MB (JPG/PNG/WebP) | Omjer slike: 1:1",Te="Vrsta Datoteke",w="Veli\u010Dina",k="Spremi",x="Preuzeti",z="Preuzeti",j="Spremi",Ne="Pregled",tt="Prenesite svoj logo",We="Izre\u017Ei logo",ze="\u017Delite li spremiti prilago\u0111eni QR kod?",we="Prijava",[[3,"ngClass.gt-xs","ngClass.lt-sm"],["fxLayout","column",4,"ngIf"],["fxLayout","column","fxFill","","fxLayoutAlign","flex-end flex-end",4,"ngIf"],["fxLayout","column"],["fxLayout.gt-sm","row","fxLayout.lt-md","column"],["fxLayout","column","fxFlex.gt-md","66%","fxFlex.md","60%"],["ngClass","p-m"],["fxLayout","row wrap","fxLayoutGap.gt-xs","1%","fxLayoutAlign","start baseline"],[1,"mat-card-title"],he,["ngClass.gt-md","p-r-l"],["fxLayout","row","ngClass","p-m",1,"grey-bg"],["fxLayout","row","ngClass","p-t-m"],_e,["fxLayout.gt-xs","row","fxLayout.lt-sm","column","fxLayoutGap","5%","fxLayoutAlign.gt-xs","start center","fxLayoutAlign.lt-sm","start start"],["fxLayout","column","ngClass","p-m",1,"border-div"],["format","png",3,"width","imageChangedEvent","maintainAspectRatio","aspectRatio","resizeToWidth","resizeToHeight","imageCropped",4,"ngIf"],["width","200px",3,"src",4,"ngIf"],["fxLayout","column","fxLayoutGap","2%"],["fxLayout","row"],["fxHide","","type","file","accept","image/png, image/jpeg, image/jpg, image/webp","id","upload_image_input",3,"change"],["customLogoUploader",""],["mat-stroked-button","","color","accent",3,"click",4,"ngIf"],["fxLayout","row",1,"mat-caption"],Z,["fxLayout","row wrap","ngClass.lt-sm","p-s","ngClass.gt-xs","p-m","fxLayoutGap","4%"],Te,[3,"ngModel","ngClass","ngModelChange","change"],["value","png"],["value","svg"],["value","eps"],["value","jpg"],["fxLayout","row","ngClass.md","p-t-m","ngClass.xs","p-t-m"],w,["value","1024"],["value","512"],["value","256"],["value","128"],["value","64"],["fxLayout","row","ngClass","p-m","fxHide.lt-sm",""],["fxLayout","row","fxLayoutGap","5%"],["mat-stroked-button","","color","accent",3,"disabled","click"],["ngClass","p-t-s p-l-l p-r-l","fxLayout","row","fxLayoutAlign","center center",1,"mat-title"],k,["ngClass","p-l-s",4,"ngIf"],["mat-flat-button","","color","accent",3,"disabled","click"],["ngClass","p-t-s p-l-l p-r-xl",1,"mat-title"],x,["fxLayout","column","fxLayoutGap","4%","fxHide.gt-xs","","ngClass","p-t-xl p-m"],["ngClass","p-t-s",1,"mat-title"],z,["ngClass","p-t-s","fxLayout","row","fxLayoutAlign","center center",1,"mat-title"],j,["fxLayout","column","fxFlex.lg","30%","fxFlex.md","40%","ngClass.lt-md","p-t-l p-l-m p-b-m"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","3%"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/visibilityOn/public"],[1,"mat-body-2"],Ne,["fxLayout","row","fxLayoutAlign","start","ngClass","p-t-m"],["fxLayout","column","ngClass","p-m","fxLayoutAlign","center center",1,"grey-bg"],["id","qr-code-preview"],["fxLayout","column","ngClass","p-m",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between"],["mat-icon-button","",3,"click"],["fxLayout","column","fxFill","","fxLayoutAlign","flex-end flex-end"],["format","png",3,"imageChangedEvent","maintainAspectRatio","aspectRatio","resizeToWidth","resizeToHeight","imageCropped"],["width","200px",3,"src"],["mat-stroked-button","","color","accent",3,"click"],tt,We,["ngClass","p-l-s"],["color","accent","diameter","20"],["fxLayout","column","ngClass","p-m"],["fxLayout","row wrap","fxLayoutAlign","start center","ngClass","p-m","fxLayoutAlign","start center","fxLayoutGap","1%",1,"qrCodeBackground"],["src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/infoBlueNew/public"],ze,["id","loginButton",1,"link-decorate-style","pointer",3,"click"],we]},template:function(_e,Z){1&_e&&(l.TgZ(0,"div",0),l.YNc(1,F,10,0,"div",1),l.YNc(2,le,4,0,"div",2),l.TgZ(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"span",8),l.SDv(9,9),l.qZA(),l.TgZ(10,"h2"),l._uU(11),l.qZA()(),l.TgZ(12,"div",10)(13,"div",11)(14,"span"),l._uU(15),l.qZA()()(),l.TgZ(16,"div",12)(17,"h3"),l.SDv(18,13),l.qZA()(),l.TgZ(19,"div",14)(20,"div",15),l.YNc(21,V,1,7,"image-cropper",16),l.YNc(22,de,1,1,"img",17),l.qZA(),l.TgZ(23,"div",18)(24,"div",19)(25,"input",20,21),l.NdJ("change",function(w){return Z.fileChangeEvent(w)}),l.qZA(),l.YNc(27,ye,2,0,"button",22),l.YNc(28,Ee,2,0,"button",22),l.qZA(),l.TgZ(29,"div",23)(30,"mat-hint"),l.SDv(31,24),l.qZA()()()()(),l.TgZ(32,"div",25)(33,"div",3)(34,"div",19)(35,"h3"),l.SDv(36,26),l.qZA()(),l.TgZ(37,"div",19)(38,"mat-button-toggle-group",27),l.NdJ("ngModelChange",function(w){return Z.userSelectedFormat=w})("change",function(){return Z.onFormatChange(Z.userSelectedFormat)}),l.TgZ(39,"mat-button-toggle",28),l._uU(40,"PNG"),l.qZA(),l.TgZ(41,"mat-button-toggle",29),l._uU(42,"SVG"),l.qZA(),l.TgZ(43,"mat-button-toggle",30),l._uU(44,"EPS"),l.qZA(),l.TgZ(45,"mat-button-toggle",31),l._uU(46,"JPG"),l.qZA()()()(),l.TgZ(47,"div",3)(48,"div",32)(49,"h3"),l.SDv(50,33),l.qZA()(),l.TgZ(51,"div",19)(52,"mat-button-toggle-group",27),l.NdJ("ngModelChange",function(w){return Z.selectedSize=w})("change",function(){return Z.onSizeChange(Z.selectedSize)}),l.TgZ(53,"div",19)(54,"mat-button-toggle",34),l._uU(55,"1024px"),l.qZA(),l.TgZ(56,"mat-button-toggle",35),l._uU(57,"512px"),l.qZA(),l.TgZ(58,"mat-button-toggle",36),l._uU(59,"256px"),l.qZA(),l.TgZ(60,"mat-button-toggle",37),l._uU(61,"128px"),l.qZA(),l.TgZ(62,"mat-button-toggle",38),l._uU(63,"64px"),l.qZA()()()()()(),l.TgZ(64,"div",39)(65,"div",3)(66,"div",40)(67,"button",41),l.NdJ("click",function(){return Z.uploadQRCodeData()}),l.TgZ(68,"div",42)(69,"span"),l.SDv(70,43),l.qZA(),l.YNc(71,Le,2,0,"div",44),l.qZA()(),l.TgZ(72,"button",45),l.NdJ("click",function(){return Z.downloadQRCode()}),l.TgZ(73,"div",46),l.SDv(74,47),l.qZA()()()()(),l.TgZ(75,"div",48)(76,"button",45),l.NdJ("click",function(){return Z.downloadQRCode()}),l.TgZ(77,"div",49),l.SDv(78,50),l.qZA()(),l.TgZ(79,"button",41),l.NdJ("click",function(){return Z.uploadQRCodeData()}),l.TgZ(80,"div",51)(81,"span"),l.SDv(82,52),l.qZA(),l.YNc(83,ge,2,0,"div",44),l.qZA()()()(),l.TgZ(84,"div",53)(85,"div",54),l._UZ(86,"img",55),l.TgZ(87,"span",56),l.SDv(88,57),l.qZA()(),l.TgZ(89,"div",58)(90,"div",59),l._UZ(91,"div",60),l.qZA()()()()(),l.YNc(92,ue,7,0,"div",61),l.qZA()),2&_e&&(l.Q6J("ngClass.gt-xs",l.VKq(25,ee,!(null!=Z.data&&Z.data.qrUrl&&null!=Z.data&&Z.data.qrLogoUrl)))("ngClass.lt-sm",l.VKq(27,se,!(null!=Z.data&&Z.data.qrUrl&&null!=Z.data&&Z.data.qrLogoUrl))),l.xp6(1),l.Q6J("ngIf",!(null!=Z.data&&Z.data.qrUrl&&null!=Z.data&&Z.data.qrLogoUrl)),l.xp6(1),l.Q6J("ngIf",(null==Z.data?null:Z.data.qrUrl)&&(null==Z.data?null:Z.data.qrLogoUrl)),l.xp6(9),l.Oqu(Z.getLocalizedTitle()),l.xp6(4),l.Oqu(Z.urlToShare),l.xp6(6),l.Q6J("ngIf",Z.showCropper),l.xp6(1),l.Q6J("ngIf",!Z.showCropper),l.xp6(5),l.Q6J("ngIf",!Z.showCropper),l.xp6(1),l.Q6J("ngIf",Z.showCropper),l.xp6(10),l.Q6J("ngModel",Z.userSelectedFormat)("ngClass",null!=Z.data&&Z.data.qrUrl&&null!=Z.data&&Z.data.qrLogoUrl?"mat-toggle-color":"mat-toggle-color-custom"),l.xp6(14),l.Q6J("ngModel",Z.selectedSize)("ngClass",null!=Z.data&&Z.data.qrUrl&&null!=Z.data&&Z.data.qrLogoUrl?"mat-toggle-color":"mat-toggle-color-custom"),l.xp6(15),l.Q6J("disabled",Z.isSaving||!Z.isSizeSelected||!Z.isFormatSelected||Z.isAuthUserUpdate),l.xp6(4),l.Q6J("ngIf",Z.isLoading),l.xp6(1),l.Q6J("disabled",Z.isSaving||!Z.isSizeSelected||!Z.isFormatSelected||Z.isAuthUserUpdate),l.xp6(4),l.Q6J("disabled",Z.isSaving||!Z.isSizeSelected||!Z.isFormatSelected||Z.isAuthUserUpdate),l.xp6(3),l.Q6J("disabled",Z.isSaving||!Z.isSizeSelected||!Z.isFormatSelected||Z.isAuthUserUpdate),l.xp6(4),l.Q6J("ngIf",Z.isLoading),l.xp6(8),l.Udp("width",Z.previewSize,"px")("height",Z.previewSize,"px"),l.xp6(1),l.Q6J("ngIf",!Z.isLoggedIn))},dependencies:[v.mk,v.O5,C.pH,n.JJ,n.On,i.eB,P.A9,P.Yi,I.Hw,q.sN,D.xw,D.SQ,D.Wh,D.s9,D.yH,M.b8,M.oO,T.ap],styles:[".mat-toggle-color-custom .mat-button-toggle-checked{background-color:var(--theme-secondary-500)!important;color:#fff!important}  .mat-toggle-color .mat-button-toggle-checked{background-color:#363396!important;color:#fff!important}"]}),L})()},23623:(St,be,s)=>{"use strict";s.d(be,{g:()=>i,l:()=>n});var t=s(73991),e=s(15645),d=s(59435),l=s(40354),r=s(17774),c=s(4692),E=s(27579),m=s(38545);const v=["editor"];function C(P,I){1&P&&(t.TgZ(0,"mat-error",9)(1,"div",10),t._UZ(2,"img",11),t.TgZ(3,"span"),t.SDv(4,12),t.qZA()()())}const n=["bold","background","color","font","code","italic","size","strike","script","underline","blockquote","header","indent","list","align","direction","code-block","formula"];let i=(()=>{class P{constructor(q){this.quillModuleConfig={},this.quillFormats={},this.characterLength=0,this.quillPlaceholder="Ovdje umetnite tekst..",this.readOnly=!1,this.minLength=0,this.maxLength=15e3,this.control=new e.p4(""),this.onContentChange=new t.vpe,this.allTextCheck=new t.vpe,this.loader=!1,this.pasteDetected=new t.vpe,this.quillModuleConfig={toolbar:[["bold","italic","underline","strike"],["blockquote"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{size:["small",!1,"large","huge"]}],[{color:[]},{background:[]}],[{align:[]}],["clean"]]},this.quillForm=q.group({}),this.quillContent=""}ngOnChanges(q){this.quillContent&&(this.quillContent=this.quillContent?.trimStart(),this.characterLength=this.quillContent?.length,this.quillForm&&(this.quillForm.setControl("editorCtrl",new e.p4(this.quillContent,e.kI.compose([e.kI.min(this.minLength),e.kI.max(this.maxLength),e.kI.pattern(/^(?:(?![0-9*#]).|[\p{Emoji}])*$/u)]))),this.subscribeToFormChanges(),this.quillForm?.controls.editorCtrl.valueChanges.pipe((0,d.b)(400),(0,l.x)()).subscribe(D=>{this.onContentChange.emit(D)}))),this.control.valueChanges.subscribe(D=>{this.quillForm.get("editorCtrl")?.setValue(D,{emitEvent:!1})})}ngOnInit(){try{this.quillContent?(this.quillForm.setControl("editorCtrl",new e.p4(this.quillContent,e.kI.compose([e.kI.min(this.minLength),e.kI.max(this.maxLength),e.kI.pattern(/^(?:(?![0-9*#]).|[\p{Emoji}])*$/u)]))),this.subscribeToFormChanges(),this.characterLength=this.quillContent?.length):(this.quillForm.setControl("editorCtrl",new e.p4("",e.kI.compose([e.kI.min(this.minLength),e.kI.max(this.maxLength),e.kI.pattern(/^(?:(?![0-9*#]).|[\p{Emoji}])*$/u)]))),this.subscribeToFormChanges())}catch(q){console.error(q)}}ngAfterViewInit(){}onPaste(q){const D=q.clipboardData?.getData("text/plain");D&&D.length>2e3&&(this.loader=!0,this.pasteDetected.emit(!0),setTimeout(()=>{this.loader=!1,this.pasteDetected.emit(!1)},3e3))}created(q){this.quillForm?.controls.editorCtrl.valueChanges.pipe((0,d.b)(400),(0,l.x)()).subscribe(D=>{this.onContentChange.emit(D)})}logChange(q){this.characterLength=0===q.content?.length()?0:q.content.length()-1}logSelection(q){}subscribeToFormChanges(){this.quillForm.statusChanges.subscribe(q=>{this.allTextCheck.emit("VALID"==q)})}}return P.\u0275fac=function(q){return new(q||P)(t.Y36(e.QS))},P.\u0275cmp=t.Xpm({type:P,selectors:[["app-quill-editor"]],viewQuery:function(q,D){if(1&q&&t.Gf(v,7),2&q){let M;t.iGM(M=t.CRH())&&(D.editor=M.first)}},inputs:{quillContent:"quillContent",readOnly:"readOnly",minLength:"minLength",maxLength:"maxLength",control:"control"},outputs:{onContentChange:"onContentChange",allTextCheck:"allTextCheck",pasteDetected:"pasteDetected"},features:[t.TTD],decls:12,vars:9,consts:function(){let I,q;return I="Znaci",q="Molimo provjerite ograni\u010Denja znakova.",[[3,"formGroup"],["formControlName","editorCtrl","id","quillEditor",3,"modules","readOnly","minLength","maxLength","placeholder","dragover","onContentChanged","onSelectionChanged","onEditorCreated","paste"],["editor",""],["fxLayoutAlign","end end"],["class","m-l-s","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","","fxLayoutAlign","end end"],[1,"mat-caption","m-r-xs"],[1,"mat-body-2"],I,["fxLayout","row","fxLayoutAlign","start center",1,"m-l-s"],["fxLayout","row","fxLayoutGap","4px","fxLayoutAlign","start center"],["fxFlex","5%","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/infoWarn/public"],q]},template:function(q,D){1&q&&(t.TgZ(0,"form",0)(1,"quill-editor",1,2),t.NdJ("dragover",function(){return!1})("onContentChanged",function(T){return D.logChange(T)})("onSelectionChanged",function(T){return D.logSelection(T)})("onEditorCreated",function(T){return D.created(T)})("paste",function(T){return D.onPaste(T)}),t.qZA(),t.TgZ(3,"div",3),t.YNc(4,C,5,0,"mat-error",4),t.TgZ(5,"div",5)(6,"mat-hint",6)(7,"span",7),t._uU(8),t.qZA(),t._uU(9),t.TgZ(10,"span"),t.SDv(11,8),t.qZA()()()()()),2&q&&(t.Q6J("formGroup",D.quillForm),t.xp6(1),t.s9C("placeholder",D.quillPlaceholder),t.Q6J("modules",D.quillModuleConfig)("readOnly",D.readOnly)("minLength",D.minLength)("maxLength",D.maxLength),t.xp6(3),t.Q6J("ngIf",null==D.quillForm.controls||null==D.quillForm.controls.editorCtrl?null:D.quillForm.controls.editorCtrl.invalid),t.xp6(4),t.Oqu(D.characterLength),t.xp6(1),t.hij(" / ",D.maxLength," "))},dependencies:[r.O5,c.nI,c.pH,e._Y,e.JJ,e.JL,e.sg,e.u,E.xw,E.SQ,E.Wh,E.yH,m.g6]}),P})()},62099:(St,be,s)=>{"use strict";s.d(be,{H:()=>l});var t=s(73991),e=s(24510),d=s(38545);let l=(()=>{class r{constructor(E){this.sanitizer=E}ngOnInit(){}getContent(E){return this.sanitizer.bypassSecurityTrustHtml(E)}}return r.\u0275fac=function(E){return new(E||r)(t.Y36(e.H7))},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-quill-view"]],inputs:{quillContent:"quillContent"},decls:1,vars:3,consts:[["format","html",3,"content","preserveWhitespace","sanitize"]],template:function(E,m){1&E&&t._UZ(0,"quill-view",0),2&E&&t.Q6J("content",m.getContent(m.quillContent))("preserveWhitespace",!0)("sanitize",!0)},dependencies:[d.H]}),r})()},59260:(St,be,s)=>{"use strict";s.d(be,{j:()=>Ee});var t=s(56622),e=s(73991),d=s(84531),l=s(45720),r=s(83482),c=s(32946),E=s(17774),m=s(43073),v=s(27579),C=s(74351),n=s(5934);function i(Le,ge){if(1&Le){const ue=e.EpF();e.TgZ(0,"div",22,23),e.NdJ("click",function(){e.CHM(ue);const se=e.MAs(1);return e.KtG(se)}),e.TgZ(2,"button",24),e.NdJ("click",function(){e.CHM(ue);const se=e.oxw(2);return e.KtG(se.onTabChange())}),e._UZ(3,"img",25),e.qZA()()}if(2&Le){const ue=e.oxw(2);e.xp6(2),e.Q6J("disabled",ue.disableSocialShare),e.xp6(1),e.Q6J("src",ue.disableSocialShare?"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/code-disabled/public":"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/code/public",e.LSH)}}function P(Le,ge){if(1&Le){const ue=e.EpF();e.TgZ(0,"div",2)(1,"div",3)(2,"button",4),e._UZ(3,"img",5),e.qZA()(),e.TgZ(4,"div",6)(5,"button",7),e._UZ(6,"img",8),e.qZA()(),e.TgZ(7,"div",9)(8,"button",10),e._UZ(9,"img",11),e.qZA()(),e.TgZ(10,"div",12)(11,"button",13),e._UZ(12,"img",14),e.qZA()(),e.TgZ(13,"div",15)(14,"button",16),e._UZ(15,"img",17),e.qZA()(),e.TgZ(16,"div",18)(17,"button",19),e.NdJ("click",function(){e.CHM(ue);const se=e.oxw();return e.KtG(se.openDialog())}),e._UZ(18,"img",20),e.qZA()(),e.YNc(19,i,4,2,"div",21),e.qZA()}if(2&Le){const ue=e.oxw();e.xp6(2),e.Q6J("disabled",ue.disableSocialShare)("url",ue.sharedLink),e.xp6(1),e.Q6J("src",ue.disableSocialShare?"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fb-disabled/public":"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fb-color/public",e.LSH),e.xp6(2),e.Q6J("disabled",ue.disableSocialShare)("url",ue.sharedLink),e.xp6(1),e.Q6J("src",ue.disableSocialShare?"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/mail-disabled/public":"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/mail-color/public",e.LSH),e.xp6(2),e.Q6J("disabled",ue.disableSocialShare)("url",ue.sharedLink),e.xp6(1),e.Q6J("src",ue.disableSocialShare?"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/x-disabled/public":"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/x/public",e.LSH),e.xp6(2),e.Q6J("disabled",ue.disableSocialShare)("url",ue.sharedLink),e.xp6(1),e.Q6J("src",ue.disableSocialShare?"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/linkedin-disabled/public":"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/linkedin-color/public",e.LSH),e.xp6(2),e.Q6J("disabled",ue.disableSocialShare)("url",ue.sharedLink),e.xp6(1),e.Q6J("src",ue.disableSocialShare?"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/whatsapp-disabled/public":"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/whatsapp-color/public",e.LSH),e.xp6(2),e.Q6J("disabled",ue.disableSocialShare),e.xp6(1),e.Q6J("src",ue.disableSocialShare?"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/qr2-disabled/public":"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/qr2/public",e.LSH),e.xp6(1),e.Q6J("ngIf","paymentRequest"!=ue.componentCalled)}}function I(Le,ge){1&Le&&(e.TgZ(0,"span",39),e._uU(1,"Facebook"),e.qZA())}function q(Le,ge){1&Le&&(e.TgZ(0,"span",39),e._uU(1,"Email"),e.qZA())}function D(Le,ge){1&Le&&(e.TgZ(0,"span",39),e._uU(1,"X"),e.qZA())}function M(Le,ge){1&Le&&(e.TgZ(0,"span",39),e._uU(1,"LinkedIn"),e.qZA())}function T(Le,ge){1&Le&&(e.TgZ(0,"span",39),e._uU(1,"WhatsApp"),e.qZA())}const F=function(){return{color:"#4267B2"}},le=function(){return{color:"#25D366"}},V=function(){return{color:"#00acee"}},de=function(){return{color:"#0077b5"}};function ye(Le,ge){if(1&Le){const ue=e.EpF();e.TgZ(0,"div",26)(1,"button",27),e.NdJ("click",function(){e.CHM(ue);const se=e.oxw();return e.KtG(se.shareToFacebook())}),e.TgZ(2,"div",28),e._UZ(3,"img",29),e.YNc(4,I,2,0,"span",30),e.qZA()(),e.TgZ(5,"button",31)(6,"div",28),e._UZ(7,"img",32),e.YNc(8,q,2,0,"span",30),e.qZA()(),e.TgZ(9,"button",33)(10,"div",28),e._UZ(11,"img",34),e.YNc(12,D,2,0,"span",30),e.qZA()(),e.TgZ(13,"button",35)(14,"div",28),e._UZ(15,"img",36),e.YNc(16,M,2,0,"span",30),e.qZA()(),e.TgZ(17,"button",37)(18,"div",28),e._UZ(19,"img",38),e.YNc(20,T,2,0,"span",30),e.qZA()()()}if(2&Le){const ue=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.DdM(31,F))("disabled",ue.disableSocialShare),e.xp6(3),e.Q6J("ngIf",ue.showLabels),e.xp6(1),e.Q6J("ngStyle",e.DdM(32,le))("disabled",ue.disableSocialShare)("url",ue.customURL)("title",null==ue.currentFundraiserData?null:ue.currentFundraiserData.title)("description",null==ue.currentFundraiserData?null:ue.currentFundraiserData.description)("image",null==ue.currentFundraiserData?null:ue.currentFundraiserData.image),e.xp6(3),e.Q6J("ngIf",ue.showLabels),e.xp6(1),e.Q6J("ngStyle",e.DdM(33,V))("disabled",ue.disableSocialShare)("url",ue.customURL)("title",null==ue.currentFundraiserData?null:ue.currentFundraiserData.title)("description",null==ue.currentFundraiserData?null:ue.currentFundraiserData.description)("image",null==ue.currentFundraiserData?null:ue.currentFundraiserData.image),e.xp6(3),e.Q6J("ngIf",ue.showLabels),e.xp6(1),e.Q6J("ngStyle",e.DdM(34,de))("disabled",ue.disableSocialShare)("url",ue.customURL)("title",null==ue.currentFundraiserData?null:ue.currentFundraiserData.title)("description",null==ue.currentFundraiserData?null:ue.currentFundraiserData.description)("image",null==ue.currentFundraiserData?null:ue.currentFundraiserData.image),e.xp6(3),e.Q6J("ngIf",ue.showLabels),e.xp6(1),e.Q6J("ngStyle",e.DdM(35,le))("disabled",ue.disableSocialShare)("url",ue.customURL)("title",null==ue.currentFundraiserData?null:ue.currentFundraiserData.title)("description",null==ue.currentFundraiserData?null:ue.currentFundraiserData.description)("image",null==ue.currentFundraiserData?null:ue.currentFundraiserData.image),e.xp6(3),e.Q6J("ngIf",ue.showLabels)}}let Ee=(()=>{class Le{constructor(ue,ee,se,W){this.media=ue,this.dialog=ee,this.tabchangerequest=se,this.customDomainService=W,this.sharedLink="",this.disableSocialShare=!1,this.tabRoute=!1,this.isDonationModule=!1,this.customURL="",this.showLabels=!1}ngOnInit(){this.customURL=window.location.href,this.customDomainService.getIsCustomDomain().subscribe(ue=>{1==ue&&(this.customURL=window.location.href)})}openDialog(){this.dialog.open(t.a,{panelClass:"share-dialog-panel",maxHeight:"auto",maxWidth:"90vw",width:"95vw",data:{link:this.sharedLink,details:this.fundraiserDetails}})}onTabChange(){this.tabchangerequest.changeTab("fundraiser"===this.componentCalled||"donate"===this.componentCalled?"ownWebsite":"")}shareToFacebook(){const ue=`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(this.customURL)}`;window.open(ue,"_blank")}}return Le.\u0275fac=function(ue){return new(ue||Le)(e.Y36(d.u0),e.Y36(l.uw),e.Y36(r.q),e.Y36(c.c))},Le.\u0275cmp=e.Xpm({type:Le,selectors:[["app-social-share-buttons"]],inputs:{componentCalled:"componentCalled",sharedLink:"sharedLink",disableSocialShare:"disableSocialShare",tabRoute:"tabRoute",isDonationModule:"isDonationModule",customURL:"customURL",currentFundraiserData:"currentFundraiserData",showLabels:"showLabels",fundraiserDetails:"fundraiserDetails"},decls:3,vars:2,consts:[["fxFlex","100%","fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.lt-sm","start","class","social-share","fxLayoutGap.lg","10px","fxLayoutGap.md","20px","fxLayoutGap.sm","30px","fxLayoutGap.lt-sm","22px","fxFlex.lt-sm","100%",4,"ngIf","ngIfElse"],["donationTemplate",""],["fxFlex","100%","fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.lt-sm","start","fxLayoutGap.lg","10px","fxLayoutGap.md","20px","fxLayoutGap.sm","30px","fxLayoutGap.lt-sm","22px","fxFlex.lt-sm","100%",1,"social-share"],["ngClass","m-t-xs",1,"facebook","p-b-xs"],["id","facebookShareButton","mat-button","","shareButton","facebook",3,"disabled","url"],["height","51","width","51",3,"src"],["ngClass","m-t-s",1,"email","p-b-xs"],["id","emailShareButton","mat-button","","shareButton","email",3,"disabled","url"],["height","50","width","57",3,"src"],[1,"twitter","p-b-s","p-t-xs"],["id","twitterShareButton","mat-button","","shareButton","twitter",3,"disabled","url"],["height","55","width","57",3,"src"],["ngClass.lt-sm","m-t-xs",1,"linkedin","p-b-xxs"],["id","linkedShareButton","mat-button","","shareButton","linkedin",3,"disabled","url"],["height","54","width","57",3,"src"],["ngClass.lt-sm","m-t-xs",1,"whatsapp","p-b-xxs"],["id","whatsAppShareButton","mat-button","","shareButton","whatsapp",3,"disabled","url"],["height","54","width","54",3,"src"],["ngClass.lt-sm","m-b-xxs m-t-xs","ngClass.lg","m-b-xxs","ngClass.md","m-b-xxs","ngClass.sm","m-b-xxs",1,"social-share"],["id","QRCodeButton","mat-button","",3,"disabled","click"],["height","58","width","58",3,"src"],["class","embeded","ngClass.sm","m-b-xxs","ngClass.lg","m-b-xxs","ngClass.md","m-b-xxs","ngClass.lt-sm","m-b-xs m-t-xs",3,"click",4,"ngIf"],["ngClass.sm","m-b-xxs","ngClass.lg","m-b-xxs","ngClass.md","m-b-xxs","ngClass.lt-sm","m-b-xs m-t-xs",1,"embeded",3,"click"],["tabRoute",""],["id","onOwnWebsiteButton","mat-button","",3,"disabled","click"],["height","55","width","55",3,"src"],["fxFlex","100%","fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutGap.lg","18px","fxLayoutGap.lt-sm","0px",1,"social-share"],["mat-button","",1,"facebook",3,"ngStyle","disabled","click"],["fxLayout","column","fxLayoutAlign","center center"],["height","28","width","28","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fb-color/public"],["class","dark-grey-texts",4,"ngIf"],["mat-button","","shareButton","email",3,"ngStyle","disabled","url","title","description","image"],["height","28","width","28","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/mail-color/public"],["mat-button","","shareButton","twitter",3,"ngStyle","disabled","url","title","description","image"],["height","28","width","28","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/x/public"],["mat-button","","shareButton","linkedin",3,"ngStyle","disabled","url","title","description","image"],["height","28","width","28","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/linkedin-color/public"],["mat-button","","shareButton","whatsapp",1,"whatsapp",3,"ngStyle","disabled","url","title","description","image"],["height","28","width","28","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/whatsapp-color/public"],[1,"dark-grey-texts"]],template:function(ue,ee){if(1&ue&&(e.YNc(0,P,20,18,"div",0),e.YNc(1,ye,21,36,"ng-template",null,1,e.W1O)),2&ue){const se=e.MAs(2);e.Q6J("ngIf",!ee.isDonationModule)("ngIfElse",se)}},dependencies:[E.mk,E.O5,E.PC,m.eB,v.xw,v.SQ,v.Wh,v.yH,C.oO,C.Zl,n.Rz],styles:[".social-share[_ngcontent-%COMP%]   .facebook[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(.mat-button-disabled){color:var(--button-color)}.social-share[_ngcontent-%COMP%]   .twitter[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(.mat-button-disabled){color:var(--button-color)}.social-share[_ngcontent-%COMP%]   .email[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(.mat-button-disabled){color:var(--button-color)}.social-share[_ngcontent-%COMP%]   .linkedin[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(.mat-button-disabled){color:var(--button-color)}.social-share[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(.mat-button-disabled){color:var(--button-color)}.social-share[_ngcontent-%COMP%]   .embeded[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(.mat-button-disabled){color:var(--button-color)}.qr-embeded[_ngcontent-%COMP%]{transform:scale(1.2)}"]}),Le})()},33803:(St,be,s)=>{"use strict";s.d(be,{A:()=>D});var t=s(73991),e=s(45720),d=s(21704),l=s(64886),r=s(17774),c=s(43073),E=s(27579),m=s(74351);function v(M,T){if(1&M){const F=t.EpF();t.ynx(0),t.TgZ(1,"button",1),t.NdJ("click",function(){t.CHM(F);const V=t.oxw();return t.KtG(V.startFundraiserPage())}),t.SDv(2,2),t.qZA(),t.BQk()}if(2&M){const F=t.oxw();t.xp6(1),t.Q6J("color",F.themeColor)}}function C(M,T){if(1&M){const F=t.EpF();t.ynx(0),t.TgZ(1,"button",3),t.NdJ("click",function(){t.CHM(F);const V=t.oxw();return t.KtG(V.startFundraiserPage())}),t.SDv(2,4),t.qZA(),t.BQk()}if(2&M){const F=t.oxw();t.xp6(1),t.Q6J("color",F.themeColor)}}function n(M,T){if(1&M){const F=t.EpF();t.ynx(0),t.TgZ(1,"button",5),t.NdJ("click",function(){t.CHM(F);const V=t.oxw();return t.KtG(V.startFundraiserPage())}),t.TgZ(2,"span",6),t.SDv(3,7),t.qZA()(),t.BQk()}}function i(M,T){if(1&M){const F=t.EpF();t.ynx(0),t.TgZ(1,"button",8),t.NdJ("click",function(){t.CHM(F);const V=t.oxw();return t.KtG(V.startFundraiserPage())}),t.TgZ(2,"span",9),t.SDv(3,10),t.qZA()(),t.BQk()}}function P(M,T){if(1&M){const F=t.EpF();t.ynx(0),t.TgZ(1,"button",5),t.NdJ("click",function(){t.CHM(F);const V=t.oxw();return t.KtG(V.startFundraiserPage())}),t.TgZ(2,"h3",11),t.SDv(3,12),t.qZA()(),t.BQk()}}function I(M,T){if(1&M){const F=t.EpF();t.ynx(0),t.TgZ(1,"button",5),t.NdJ("click",function(){t.CHM(F);const V=t.oxw();return t.KtG(V.startFundraiserPage())}),t.TgZ(2,"div",13),t.SDv(3,14),t.qZA()(),t.BQk()}}function q(M,T){if(1&M){const F=t.EpF();t.ynx(0),t.TgZ(1,"button",15),t.NdJ("click",function(){t.CHM(F);const V=t.oxw();return t.KtG(V.startFundraiserPage())}),t.TgZ(2,"span",13),t.SDv(3,16),t.qZA()(),t.BQk()}}let D=(()=>{class M{constructor(F,le,V){this._dialog=F,this.accountService=le,this.router=V,this.buttonType="flat",this.themeColor="accent",this.isLoggedIn=!1,this.dialog=F}ngOnInit(){this.accountService.getLoginInformation().subscribe(F=>{this.isLoggedIn=1==F})}startFundraiserPage(){this.router.navigate(["/start"])}}return M.\u0275fac=function(F){return new(F||M)(t.Y36(e.uw),t.Y36(d.B),t.Y36(l.F0))},M.\u0275cmp=t.Xpm({type:M,selectors:[["app-start-fundraiser-button"]],inputs:{buttonType:"buttonType",themeColor:"themeColor"},decls:7,vars:7,consts:function(){let T,F,le,V,de,ye,Ee;return T="Zapo\u010Dni Sakuplja\u010D Sredstava",F="Zapo\u010Dni Sakuplja\u010D Sredstava",le="Zapo\u010Dni Sakuplja\u010D Sredstava",V="Zapo\u010Dni Sakuplja\u010D Sredstava",de="Zapo\u010Dni Sakuplja\u010D Sredstava",ye="Zapo\u010Dni Sakuplja\u010D Sredstava",Ee="Zapo\u010Dni Sakuplja\u010D Sredstava",[[4,"ngIf"],["mat-flat-button","",3,"color","click"],T,["mat-stroked-button","","id","start_fundraiser","fxFill","",3,"color","click"],F,["mat-flat-button","","color","accent",1,"hover-on-svg",3,"click"],["ngClass","p-xs",1,"mat-title"],le,["mat-flat-button","","color","accent",3,"click"],["ngClass","p-s",1,"mat-subtitle"],V,["ngClass.gt-sm","p-l-xxl p-r-xxl p-t-s","ngClass.lt-md","p-l-xl p-r-xl p-t-m",1,"mat-title"],de,["ngClass","p-l-l p-r-l p-t-xs",1,"mat-card-title"],ye,["mat-flat-button","","color","accent","fxFill","",1,"hover-on-svg",3,"click"],Ee]},template:function(F,le){1&F&&(t.YNc(0,v,3,1,"ng-container",0),t.YNc(1,C,3,1,"ng-container",0),t.YNc(2,n,4,0,"ng-container",0),t.YNc(3,i,4,0,"ng-container",0),t.YNc(4,P,4,0,"ng-container",0),t.YNc(5,I,4,0,"ng-container",0),t.YNc(6,q,4,0,"ng-container",0)),2&F&&(t.Q6J("ngIf","flat"===le.buttonType),t.xp6(1),t.Q6J("ngIf","stroked"===le.buttonType),t.xp6(1),t.Q6J("ngIf","homepage1"===le.buttonType),t.xp6(1),t.Q6J("ngIf","homepage2"===le.buttonType),t.xp6(1),t.Q6J("ngIf","homepage3"===le.buttonType),t.xp6(1),t.Q6J("ngIf","homepage5"===le.buttonType),t.xp6(1),t.Q6J("ngIf","homepage6"===le.buttonType))},dependencies:[r.mk,r.O5,c.eB,E.s9,m.oO]}),M})()},83454:(St,be,s)=>{"use strict";s.d(be,{$:()=>n});var t=s(73991),e=s(1911),d=s(21704),l=s(64886),r=s(17774),c=s(43073),E=s(45379),m=s(81560),v=s(27579);function C(i,P){1&i&&(t.TgZ(0,"mat-icon",6),t._UZ(1,"mat-spinner",7),t.qZA())}let n=(()=>{class i{constructor(I,q,D){this._bankService=I,this._accountService=q,this.stripeVerificationCheck=!1,this.hideBar=new t.vpe,this.stripeStatus={},this.isLoading=!1,this._router=D}ngOnInit(){this._accountService.checkHeaders()&&this._bankService.getStripeStatus().subscribe(I=>{this.stripeStatus=I?.data})}verifyWIthStripe(){if(this._accountService.checkHeaders()){let I=window.open();this.stripeVerificationCheck=!0,this.isLoading=!0;let q=window.location.protocol+"//"+window.location.hostname+"/"+this._accountService.getLocaleId()+"/profile/payout-settings";"localhost"==window.location.hostname&&(q="http://localhost:4200/profile/payout-settings"),this._bankService.redirectToStripeVerification({return_url:q}).subscribe(M=>{this.isLoading=!1,null!=I?I.location.href=M?.data?.url:window.alert("Browser has blocked the popup window"),this.stripeVerificationCheck=!1})}}verifyWithStripeEmbeddedAccountOnboard(){this._router.navigate(["profile/payout-settings"])}}return i.\u0275fac=function(I){return new(I||i)(t.Y36(e.y),t.Y36(d.B),t.Y36(l.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-stripe-notification-banner"]],outputs:{hideBar:"hideBar"},decls:8,vars:1,consts:function(){let P,I;return P="Aktivirajte Stripe donacije i isplate provjerom va\u0161eg ra\u010Duna",I="Zapo\u010Dni Stripe Verifikaciju",[["fxLayout","row","fxLayoutAlign","space-between center",1,"p-m",2,"background-color","#efeef8"],P,["fxLayoutAlign","space-between center"],["mat-flat-button","","color","accent",3,"click"],I,["class","m-l-xs",4,"ngIf"],[1,"m-l-xs"],["color","primary","diameter","20"]]},template:function(I,q){1&I&&(t.TgZ(0,"div",0)(1,"div"),t.SDv(2,1),t.qZA(),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return q.verifyWithStripeEmbeddedAccountOnboard()}),t.TgZ(5,"span"),t.SDv(6,4),t.qZA(),t.YNc(7,C,2,0,"mat-icon",5),t.qZA()()()),2&I&&(t.xp6(7),t.Q6J("ngIf",q.isLoading))},dependencies:[r.O5,c.eB,E.Hw,m.sN,v.xw,v.Wh]}),i})()},83549:(St,be,s)=>{"use strict";s.d(be,{n:()=>I});var t=s(73991),e=s(45720),d=s(15645),l=s(47692),r=s(76037),c=s(17774),E=s(4692),m=s(54449),v=s(43073),C=s(27579),n=s(74351);function i(q,D){if(1&q){const M=t.EpF();t.TgZ(0,"div",15)(1,"button",16),t.NdJ("click",function(){t.CHM(M);const F=t.oxw(),le=t.MAs(14);return t.KtG(F.postReply(le.value))}),t.SDv(2,17),t.qZA()()}if(2&q){const M=t.oxw();t.xp6(1),t.Q6J("disabled",M.replyForm.invalid)}}function P(q,D){if(1&q){const M=t.EpF();t.TgZ(0,"div",18)(1,"button",16),t.NdJ("click",function(){t.CHM(M);const F=t.oxw(),le=t.MAs(14);return t.KtG(F.postReply(le.value))}),t.SDv(2,19),t.qZA()()}if(2&q){const M=t.oxw();t.xp6(1),t.Q6J("disabled",M.replyForm.invalid)}}let I=(()=>{class q{constructor(M,T,F,le,V){this.fundRaiserService=M,this._notificationService=T,this.cd=F,this.data=le,this.dialogRef=V,this.replyPosted=new t.vpe,this.updateButtonCheck=!1,this.replyForm=new d.p4("",[d.kI.required,d.kI.pattern(/^[\p{L}\p{N}\p{P}\p{S}\s\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FAC0}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}\u{2B05}\u{1F004}]*$/u)])}ngOnInit(){this.replyMessage=this.data?.count.reply_message,this.replyMessage&&""!==this.replyMessage.trim()?(this.replyForm.setValue(this.replyMessage),this.updateButtonCheck=!1):(this.replyMessage="Po\u0161alji poruku donatoru",this.updateButtonCheck=!0)}postReply(M){this.fundRaiserService.updateDonorReply({donation_order_id:this.data?.count?.id,thanks_message:M}).subscribe(F=>{this.dialogRef.close(),this._notificationService.openNotification("Uspje\u0161no poslano.","OK","success"),this.replyPosted.emit()})}onCloseClick(){this.dialogRef.close()}}return q.\u0275fac=function(M){return new(M||q)(t.Y36(l.R),t.Y36(r.g),t.Y36(t.sBO),t.Y36(e.WI),t.Y36(e.so))},q.\u0275cmp=t.Xpm({type:q,selectors:[["app-thank-donar"]],outputs:{replyPosted:"replyPosted"},decls:19,vars:5,consts:function(){let D,M,T,F;return D="Po\u0161alji poruku",M="Napomena: ova poruka je vidljiva svima.",T="Po\u0161alji",F="A\u017Euriraj",[["fxLayout","column","fxFill","","fxLayoutAlign","flex-end flex-end"],["mat-icon-button","",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/crossBlack/public"],["fxLayout","column","fxFill",""],["fxLayout","column wrap","fxLayoutAlign","space-between","fxFill","","ngClass","p-l-l p-r-l"],D,M,["fxLayout","column"],["appearance","outline","fxFill","","ngClass","p-b-xs"],["fxLayout","row","fxLayoutAlign","start start"],["rows","9","maxlength","200","matInput","","required","",3,"placeholder","formControl"],["input",""],["align","end"],["fxLayout","column-reverse","fxLayoutAlign","flex-end flex-end","ngClass","p-b-s",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","ngClass","p-b-s",4,"ngIf"],["fxLayout","column-reverse","fxLayoutAlign","flex-end flex-end","ngClass","p-b-s"],["mat-flat-button","","color","accent","fxFlex","60%",3,"disabled","click"],T,["fxLayout","row","fxLayoutAlign","end center","ngClass","p-b-s"],F]},template:function(M,T){if(1&M&&(t.TgZ(0,"div")(1,"div",0)(2,"button",1),t.NdJ("click",function(){return T.onCloseClick()}),t._UZ(3,"img",2),t.qZA()(),t.TgZ(4,"div",3)(5,"div",4)(6,"h2"),t.SDv(7,5),t.qZA(),t.TgZ(8,"h4"),t.SDv(9,6),t.qZA()(),t.TgZ(10,"mat-dialog-content",7)(11,"mat-form-field",8)(12,"div",9),t._UZ(13,"textarea",10,11),t.qZA(),t.TgZ(15,"mat-hint",12),t._uU(16),t.qZA()(),t.YNc(17,i,3,1,"div",13),t.YNc(18,P,3,1,"div",14),t.qZA()()()),2&M){const F=t.MAs(14);t.xp6(13),t.s9C("placeholder",T.replyMessage),t.Q6J("formControl",T.replyForm),t.xp6(3),t.hij("",F.value.length||0,"/200"),t.xp6(1),t.Q6J("ngIf",T.updateButtonCheck),t.xp6(1),t.Q6J("ngIf",!T.updateButtonCheck)}},dependencies:[c.mk,c.O5,E.v_,E.pH,m.k0,d.Fj,d.JJ,d.Q7,d.nD,d.oH,v.eB,e.xY,C.xw,C.Wh,C.s9,C.yH,n.oO],styles:[".green-dialog[_ngcontent-%COMP%]{color:green}.default-dialog[_ngcontent-%COMP%]{color:#000}"]}),q})()},43178:(St,be,s)=>{"use strict";s.d(be,{A:()=>c});var t=s(93216),e=s(9206),d=s(73991),l=s(45734),r=s(21704);let c=(()=>{class E{constructor(v,C){this.httpClient=v,this.accountService=C,this.selectedCurrency=new t.X({currency:"",symbol:""})}getUserCurrencyList(){let C=this.accountService.getHeaders();return this.httpClient.get(e.N.ACCOUNT_API_V2+"account/stripe/wallet",{headers:C})}getUserCurrencyListForMyFundraisers(){if(this.accountService.checkHeaders()){let v="fundraiser/user/currencies",C=this.accountService.getHeaders();return this.httpClient.get(e.N.FUNDRAISER_API_V2+v,{headers:C})}}setSelectedCurrency(v){this.selectedCurrency.next(v)}getSelectedCurrency(){return this.selectedCurrency.getValue()}}return E.\u0275fac=function(v){return new(v||E)(d.LFG(l.eN),d.LFG(r.B))},E.\u0275prov=d.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})()},13009:(St,be,s)=>{"use strict";s.d(be,{a:()=>r});var t=s(9206),e=s(73991),d=s(45734),l=s(21704);let r=(()=>{class c{constructor(m,v){this.http=m,this.accountService=v,this._defaultBackgroundImage={src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/production/fundraiser_header/default/public",alt:"fundraiser background image"},this._defaultProfileImagae={src:"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/production/profile_image/default/public",alt:"profile avatar"},this._fundraiserCardData={backgroundImage:this._defaultBackgroundImage,profileImage:this._defaultProfileImagae,title:"",name:"",description:"",donationReceivedAmount:0,donationTargetAmount:0,donationDaysLeft:0,showDonationAmount:!0,currency:"",currency_code:"",currency_symbol:"",connected_to:"",isOpen:!0,offlineDonationAmount:0}}getFundraiserCardData(){return this._fundraiserCardData}setFundraiserCardData(m,v={src:""},C,n,i="",P,I=0,q,D,M,T,F,le,V,de){this._fundraiserCardData={backgroundImage:m,profileImage:v,title:C,name:n,description:i,donationReceivedAmount:P,donationTargetAmount:I,donationDaysLeft:q,showDonationAmount:D,currency:M,currency_code:T,currency_symbol:F,connected_to:le,isOpen:V,offlineDonationAmount:de}}getFundraiserCardDataList(m){let C=this.getSourceFromIndexList(m.results);return this.filterFundraiserCardDataList(C)}getFundraiserCardDataListElasticSearch(m){let C=this.getSourceFromIndexList(m.results);return this.filterFundraiserCardDataListElasticSearch(C)}getSourceFromIndexList(m){return m?m.map(v=>v._source):[]}getBool(m){return!!JSON.parse(String(m)?.toLowerCase())}filterFundraiserCardDataListCustomDonation(m){return m.map(v=>({slug:v?.slug,fundraiserCardData:{backgroundImage:v?.backgroundImage,title:v?.title,name:"",donationReceivedAmount:parseInt(v?.amount)?parseInt(v?.amount):0,donationTargetAmount:v?.amount_target,donationDaysLeft:this.countDaysLeftToFundraiserEnd(v?.end_date),showDonationAmount:this.getBool(v?.show_donation_details),isOpen:v?.is_opened,offlineDonationAmount:0}}))}filterFundraiserCardDataList(m){return m?m.map(v=>v?{slug:v.slug?v.slug:"",fundraiserCardData:{backgroundImage:{src:this.getFundraiserBackgroundImage(v)??"",video:v.background&&v.background.video?v.background.video:""},profileImage:{src:v.profile&&v.profile.image?v.profile.image:""},title:this.getFundraiserTitle(v),name:v.profile&&v.profile.name?v.profile.name:"",description:this.trimDescription(this.getFundraiserDescription(v))||this.trimDescription(this.getFundraiserDescriptionCard(v))||"",donationReceivedAmount:v.donation&&v.donation.amount?v.donation.amount:0,offlineDonationAmount:v?.donation?.offline_donation?.amount||0,donationTargetAmount:v.amount_target?v.amount_target:0,donationDaysLeft:this.countDaysLeftToFundraiserEnd(v.end_date),showDonationAmount:!!v.show_donation_details&&v.show_donation_details,isChild:!!v.isConnected&&v.isConnected,currency:v.currency?v.currency[0]?.symbol:v.currency_symbol?v.currency_symbol:"\u20ac",currency_code:v.currency_code?v.currency_code:"",currency_symbol:v.currency_symbol?v.currency_symbol:"",connected_to:v.connected_to?v.connected_to:"",isOpen:v?.is_opened}}:null).filter(v=>null!==v):[]}filterFundraiserCardDataListElasticSearch(m){return m?.map(v=>{const C=this.getFundraiserDescriptionElasticSearch(v),n=this.trimDescription("null"!=C&&"''"!==C&&""!==C&&null!=C?C:this.getFundraiserDescription(v));return{slug:v.slug,fundraiserCardData:{backgroundImage:{src:this.getFundraiserBackgroundImageElasticSearch(v),video:v.video},profileImage:{src:v.profile?.background},title:this.getFundraiserTitleElasticSearch(v),name:v?.profile?.name,description:n,donationReceivedAmount:v?.donation,donationTargetAmount:v?.amount_target,donationDaysLeft:this.countDaysLeftToFundraiserEndElasticSearch(v?.end_date),offlineDonationAmount:0,showDonationAmount:v?.show_donation_details,isOpen:v?.is_opened,currency:v?.currency?v?.currency[0]?.symbol:v?.currency_symbol?v?.currency_symbol:"\u20ac"}}})}filterFundraiserCardDataListForMainfundraisers(m){return m?.map(v=>({slug:v?.slug,fundraiserCardData:{backgroundImage:{src:this.getMyFundraiserBackgroundImage(v)},title:v?.title,name:v?.profile?.name,donationReceivedAmount:v?.donations,donationTargetAmount:v?.amount_target,showDonationAmount:!0,isChild:this.isChildFundraiser(v),parent:{backgroundImage:{src:v?.background},profileImage:{src:v?.profile?.image},title:v?.parent_title}}}))}getFundraiserBackgroundImageElasticSearch(m){let v;return null!=m?.background&&(v=m?.background),null!=m?.parent?.background&&(v=m?.parent?.background),null!=m?.root_fundraiser?.background&&(v=m?.root_fundraiser?.background?.image),v||""}getFundraiserBackgroundImage(m){let v;return null!=m?.background&&(v=m?.background?.image),null!=m?.parent?.background&&(v=m?.parent?.background?.image),null!=m?.root_fundraiser?.background&&(v=m?.root_fundraiser?.background?.image),v||""}getMyFundraiserBackgroundImage(m){let v;return null!=m?.background&&(v=m?.background),v||""}getFundraiserTitle(m){return this.getTranslatedText(m,"title")}getFundraiserDescription(m){return this.getTranslatedText(m,"appeal")}getFundraiserDescriptionCard(m){let v=this.accountService.getLocaleId();if(m?.description?.translations){let C=`description_${v}`;return m.description.translations.hasOwnProperty(C)?this.getTranslatedText(m.description.translations,C):this.getTranslatedText(m?.description,"description")}return this.getTranslatedText(m?.description,"description")}getFundraiserTitleElasticSearch(m){return this.getTranslatedTextElasticSearch(m,"title")}getFundraiserDescriptionElasticSearch(m){return this.getTranslatedTextElasticSearch(m,"description")}getTranslatedTextElasticSearch(m,v){let C=this.accountService.getLocaleId();return m?.translation?.[`${v}_${C}`]?.trim()||m?.[`${v}`]?.trim()||m?.parent?.parent_translations?.[`${v}_${C}`]?.trim()||m?.parent?.[`${v}`]?.trim()||""}getTranslatedText(m,v){let C=this.accountService.getLocaleId();return m?.translation?.[`${v}_${C}`]?.trim()||m?.[`${v}`]?.trim()||m?.parent?.parent_translations?.[`${v}_${C}`]?.trim()||m?.parent?.[`${v}`]?.trim()||""}trimDescription(m){return m?.length>145?m.slice(0,140).trim()+"...":m}isFundraiserEndDateUnlimited(m){if(null!=m||null!=m){let v=new Date((new Date).setHours(0,0,0,0)),C=new Date(new Date(m).setHours(24,0,0,0));if(v.getTime()<C.getTime()){let i=(C.getTime()-v.getTime())/864e5;if(Math.ceil(i)>15e3)return!0}}return!1}countDaysLeftToFundraiserEnd(m){if(null==m)return-1;let v=this.getDateDiff(new Date,new Date(m));return v>=0&&v<15e3?v:-1}countDaysLeftToFundraiserEndElasticSearch(m){let v=this.getDateDiff(new Date,new Date(m));return v>0&&v<15e3?v:-1}getDateDiff(m,v){let C=new Date(m.setHours(0,0,0,0)),n=new Date(v.setHours(24,0,0,0));if(C.getTime()<n.getTime()){let P=(n.getTime()-C.getTime())/864e5;return Math.ceil(P)}return 0}isChildFundraiser(m){return null!=m.parent_title&&Object.keys(m.parent_title).length>0}getObjWithData(){return{backgroundImage:{src:"https://whydonate.in/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/staging/fundraiser_header/4f27677c919345a7/public",alt:"fundraiser background image"},profileImage:{src:"https://whydonate.in/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/staging/profile_image/8bdcca0f54894605/public",alt:"profile avatar image"},title:"Team Semmy goes Alpenbrevet voor Stichting Semmy",name:"John Emmerik",description:this.trimDescription("Onze hulp is nog steeds broodnodig om ervoor te zorgen dat onderzoek naar hersenstamkanker, de meest dodelijke vorm van kanker bij kinderen, door kan gaan. Stichting Semmy financiert onderzoek naar deze ziekte in Prinses Maxima Centrum Utrecht, Erasmus Medisch Centrun Rotterdam, en Universitair Ziekenhuis Antwerpen. In de Corona tijd is er nauwelijks geld binnengekomen maar zijn wel de verplichtingen jegens de ziekenhuizen voldaan. Snel extra geld is dus hard nodig. Een groep fietsvrienden, waar ik ook bij hoor, gaat nu de uitdaging aan om 4 september de fameuze Alpenbrevet tocht te fietsen. We hebben gekozen voor de Goldtour."),donationReceivedAmount:23505,donationTargetAmount:8e4,donationDaysLeft:10,showDonationAmount:!0,isOpen:!0,offlineDonationAmount:1e4}}fundraiser(){return this.http.get(t.N.apiUrl+"project/fundraising/local/popular/")}}return c.\u0275fac=function(m){return new(m||c)(e.LFG(d.eN),e.LFG(l.B))},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})()},76037:(St,be,s)=>{"use strict";s.d(be,{g:()=>d});var t=s(73991),e=s(70431);let d=(()=>{class l{constructor(c){this._snackBar=c,this.horizontalPosition="center",this.verticalPosition="bottom"}openNotification(c,E,m){this.snackBarRef=this._snackBar.open(c,E,"success"==m?{horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition,duration:5e3,panelClass:["style-success"]}:{horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition,duration:5e3,panelClass:["style-error"]})}openNotificationIndefinite(c,E,m){this.snackBarRef=this._snackBar.open(c,E,"success"==m?{horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition,panelClass:["style-success"]}:{horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition,panelClass:["style-error"]})}afterNotificationDismiss(){return this.snackBarRef.afterDismissed()}onAction(){return this.snackBarRef.onAction()}dismiss(){this.snackBarRef.dismiss()}}return l.\u0275fac=function(c){return new(c||l)(t.LFG(e.pl))},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},35466:(St,be,s)=>{"use strict";s.d(be,{m:()=>ze});var t=s(17774),e=s(25384),d=s(61551),l=s(15645),r=s(38545),c=s(23623),E=s(5934),m=s(92446),v=s(73991),C=s(52908),i=(s(71106),s(52051));let Te=(()=>{class we{}return we.\u0275fac=function(te){return new(te||we)},we.\u0275mod=v.oAB({type:we}),we.\u0275inj=v.cJS({imports:[C.HT,i.BQ,i.BQ]}),we})();var k=s(36442),x=s(43732);s(60413);let tt=(()=>{class we{}return we.\u0275fac=function(te){return new(te||we)},we.\u0275mod=v.oAB({type:we}),we.\u0275inj=v.cJS({}),we})();var We=s(45734);let ze=(()=>{class we{}return we.\u0275fac=function(te){return new(te||we)},we.\u0275mod=v.oAB({type:we}),we.\u0275inj=v.cJS({imports:[t.ez,e.q,d.QG,l.u5,l.UX,r.fi.forRoot({formats:c.l}),E.Gn,m.uH,Te,k.Nn,x.IF,tt,We.JF]}),we})()},9206:(St,be,s)=>{"use strict";s.d(be,{N:()=>t});const t={production:!0,cloudinaryBaseUrl:"https://res.cloudinary.com/whydonate/image/upload/",apiUrl:"https://whydonate-production-api.appspot.com/api/v1/",ACCOUNT_API_V2:"https://account.whydonate.dev/",ACCOUNTING_API:"https://accounting.whydonate.dev/",DONATION_API_V2:"https://donation.whydonate.dev/",FUNDRAISER_API_V2:"https://fundraiser.whydonate.dev/",CUSTOM_DOMAIN_API_V2:"https://customdomain.whydonate.dev/",homeUrl:"https://whydonate.com",helpDeskUrl:"https://helpdesk.whydonate.com",domain:"whydonate.com",donation_url:"https://donation.whydonate.dev",wallet_url:"https://wallet.whydonate.dev/",project_url:"https://project.whydonate.dev/",search_url:"https://search.whydonate.dev/",fundraiser_url:"https://fundraiser.whydonate.dev/",fundraiser_features_url:"https://fundraiser.whydonate.dev/",PASSWORD_ENCRYPTION_KEY:"mMNIzrZQuZl01Pas9S4Z/MchYS3y0kkd4+IA0+pJ3Hg=",SENTRY_AUTH_TOKEN:"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",STRIPE_PUBLISHABLE_KEY_EU:"pk_live_fP1JyZSzMvSvc7ZrjvLNPl5o",STRIPE_PUBLISHABLE_KEY_US:"pk_live_51MyULDEJyxSpFgVbtOm5bFk1QCFJgBBm78YP0dKQXLpZQiSsGORSjDSfwd6dRhVPME4eBa6ipopkM5lZ1aLVMa7D00nANT6Kpc",OFFICIAL_DOMAINS:["whydonate.com","whydonate.in","localhost:4200","whydonate.work","whydonate.cc","main.whydonate-web-portal.pages.dev","master.whydonate-web-portal.pages.dev","develop.whydonate-web-portal.pages.dev","features.whydonate-web-portal.pages.dev","features2.whydonate-web-portal.pages.dev"]}},8380:(St,be,s)=>{"use strict";var t=s(24510),e=s(73991),d=s(64886),l=s(43073),r=s(27579);const c=function(){return["/search"]},m=[{path:"",loadChildren:()=>Promise.resolve().then(s.bind(s,21672)).then(f=>f.HomeModule)},{path:"account",loadChildren:()=>Promise.resolve().then(s.bind(s,13718)).then(f=>f.AccountModule)},{path:"login",redirectTo:"account/login",pathMatch:"full"},{path:"register",redirectTo:"account/register",pathMatch:"full"},{path:"fundraising",loadChildren:()=>Promise.resolve().then(s.bind(s,93786)).then(f=>f.FundraiserModule)},{path:"create",redirectTo:"fundraising/create",pathMatch:"full"},{path:"start",redirectTo:"fundraising/start",pathMatch:"full"},{path:"search",loadChildren:()=>Promise.resolve().then(s.bind(s,16642)).then(f=>f.SearchModule)},{path:"donate",loadChildren:()=>s.e(770).then(s.bind(s,56770)).then(f=>f.DonationModule)},{path:"profile",loadChildren:()=>Promise.resolve().then(s.bind(s,63953)).then(f=>f.ProfileModule)},{path:"dashboard",loadChildren:()=>s.e(858).then(s.bind(s,17858)).then(f=>f.DashboardModule)},{path:"my-fundraisers",loadChildren:()=>s.e(756).then(s.bind(s,57756)).then(f=>f.MyFundraisersModule)},{path:"custom-branding",loadChildren:()=>s.e(336).then(s.bind(s,71336)).then(f=>f.CustomBrandingModule)},{path:"balance",loadChildren:()=>s.e(111).then(s.bind(s,57111)).then(f=>f.BalanceModule)},{path:"donations",loadChildren:()=>Promise.all([s.e(858),s.e(605)]).then(s.bind(s,84605)).then(f=>f.DonationsModule)},{path:"custom-domain",loadChildren:()=>s.e(463).then(s.bind(s,69463)).then(f=>f.CustomDomainModule)},{path:"**",pathMatch:"full",component:(()=>{class f{constructor(){}ngOnInit(){}}return f.\u0275fac=function(A){return new(A||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-page-not-found"]],decls:14,vars:2,consts:function(){let _,A,p,R;return _="Ispri\u010Davam se",A="Zatra\u017Eena Stranica Nije Prona\u0111ena",p="Kliknite gumb ispod da biste pretra\u017Eili prikupljanje sredstava.",R="Pretra\u017Ei Prikuplja\u010Da",[["fxLayout","row","fxFlex","100","fxLayoutAlign","center center"],["fxLayout","column","fxLayoutAlign","center center"],["width","310px","src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/404/public","id","pageNotFoundImg"],_,A,p,["mat-flat-button","","color","accent","id","pageNotFoundBackToSearch",3,"routerLink"],R]},template:function(A,p){1&A&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"br")(3,"img",2)(4,"br")(5,"br"),e.TgZ(6,"h2"),e.SDv(7,3),e.qZA(),e.TgZ(8,"h2"),e.SDv(9,4),e.qZA(),e.TgZ(10,"h4"),e.SDv(11,5),e.qZA(),e.TgZ(12,"button",6),e.SDv(13,7),e.qZA()()()),2&A&&(e.xp6(12),e.Q6J("routerLink",e.DdM(1,c)))},dependencies:[d.rH,l.eB,r.xw,r.Wh,r.yH],styles:[".page-not-found-btn[_ngcontent-%COMP%]{width:256.5px;height:55.2px;margin-bottom:54px!important;border-radius:27.6px;font-family:Roboto,sans-serif;font-size:16px;font-weight:500;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;text-align:center;color:#fff;background-image:linear-gradient(104deg,#28267d,#3f3cd8);margin-top:60px}.not-found-image[_ngcontent-%COMP%]{margin-top:80px}.not-found-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:500px}.text[_ngcontent-%COMP%]{height:66px;font-size:28px;font-weight:600;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:.7px;text-align:center}.text[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#32bf55}.small-text[_ngcontent-%COMP%]{font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;text-align:center;margin-top:20px;margin-bottom:20px;color:#404040}"]}),f})()}];let v=(()=>{class f{}return f.\u0275fac=function(A){return new(A||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[d.Bz.forRoot(m,{scrollPositionRestoration:"enabled"}),d.Bz]}),f})();var C=s(17774),n=s(9206),i=s(56413),P=s(32946),I=s(21704),q=s(76037),D=s(68287),M=s(48046),T=s(68264),F=s(30003),le=s(9754),V=s(42456),de=s(97974),ye=s(71749),Ee=s(45734),Le=s(47692),ge=s(81338),ue=s(46480),ee=s(80177),se=s(45720),W=s(1911),L=s(93216);let he=(()=>{class f{constructor(){this.isShowText=new L.X(!1),this.isShowIcon=new L.X(!1)}toggleSidenav(A,p){this.isShowText.next(A),this.isShowIcon.next(p)}getIsShowTextValue(){return this.isShowText.getValue()}getIsShowIconValue(){return this.isShowIcon.getValue()}}return f.\u0275fac=function(A){return new(A||f)},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();var _e=s(17145),Z=s(4324),Te=s(43732),w=s(9),k=s(63591),x=s(45379),z=s(31180),j=s(74351),Ne=s(33803);const tt_homeUrl="https://whydonate.com";function We(f,_){1&f&&(e.TgZ(0,"span",22),e.SDv(1,23),e.qZA())}let ze=(()=>{class f{constructor(A,p,R){this.router=A,this._accountService=p,this.locale=R,this.currentLanguageCode="",this.showFundraiserHeader=!0,this.subject=new T.x,this.homeUrl="https:whydonate.com",this.medical="medicinsko-fundraising",this.fundraisingForEducation="prikupljanje-sredstava-za-obrazovanje",this.sports="sportsko-fundraising",this.music="crowdfunding-glazba",this.crowdfundingCharity="crowdfunding-humanitarne-svrhe",this.funeral="prikupljanje-za-pogreb",this.nonProfits="prikupljanje-sredstava-za-neprofitne",this.personalFundraising="osobno-prikupljanje-sredstava",this.corporateGiving="korporativno-davanje",this.tips="savjeti-i-trikovi-za-prikupljanje-sredstava"}ngOnInit(){this.currentLanguageCode=this._accountService.getLocaleId(),this.medicalHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.medical}/`,this.fundraisingForHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.fundraisingForEducation}/`,this.sportsHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.sports}/`,this.musicHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.music}/`,this.crowdfundingCharityHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.crowdfundingCharity}/`,this.funeralHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.funeral}/`,this.nonProfitsHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.nonProfits}/`,this.personalFundraisingHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.personalFundraising}/`,this.corporateGivingHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.corporateGiving}/`,this.tipsHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.tips}/`,this.seeMoreHref="https://whydonate.com/en/fundraising-category/"}}return f.\u0275fac=function(A){return new(A||f)(e.Y36(d.F0),e.Y36(I.B),e.Y36(e.soG))},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-fundraiser-for"]],inputs:{showFundraiserHeader:"showFundraiserHeader"},decls:22,vars:11,consts:function(){let _,A,p,R,ce,Ie,Je,At,Gt,ir,vr;return _="Medicinski prikupljanje sredstava",A="Edukacija prikupljanje sredstava",p="sport prikupljanje sredstava ",R="Glazbu Sakuplja\u010D Sredstava",ce="Prikupljanje sredstava dobrotvorne svrhe",Ie="Prikupljanje sredstava za sprovod",Je="Prikupljanje sredstava neprofitnih organizacija",At="Osobno prikupljanje ",Gt="Korporativno davanje",ir="Vidi Vi\u0161e",vr="Prikupljanje Sredstava Za",[["fxLayout","column","fxLayoutAlign","start start"],["class","footer-titles mat-title fundraiser p-l-xs",4,"ngIf"],[1,"fundraising-medical","break-word",2,"cursor","pointer",3,"href"],_,[1,"fundraising-education","break-word",2,"cursor","pointer",3,"href"],A,[1,"fundraising-sports","break-word",2,"cursor","pointer",3,"href"],p,[1,"crowdfunding-music","break-word",2,"cursor","pointer",3,"href"],R,[1,"crowdfunding-charity","break-word",2,"cursor","pointer",3,"href"],ce,[1,"fundraising-funeral","break-word",2,"cursor","pointer",3,"href"],Ie,[1,"fundraising-non-profits","break-word",2,"cursor","pointer",3,"href"],Je,[1,"fundraising-personal","break-word",2,"cursor","pointer",3,"href"],At,[1,"corporate","break-word",2,"cursor","pointer",3,"href"],Gt,["color","accent",1,"mat-tab-label-active",3,"href"],ir,[1,"footer-titles","mat-title","fundraiser","p-l-xs"],vr]},template:function(A,p){1&A&&(e.TgZ(0,"div",0),e.YNc(1,We,2,0,"span",1),e.TgZ(2,"a",2),e.SDv(3,3),e.qZA(),e.TgZ(4,"a",4),e.SDv(5,5),e.qZA(),e.TgZ(6,"a",6),e.SDv(7,7),e.qZA(),e.TgZ(8,"a",8),e.SDv(9,9),e.qZA(),e.TgZ(10,"a",10),e.SDv(11,11),e.qZA(),e.TgZ(12,"a",12),e.SDv(13,13),e.qZA(),e.TgZ(14,"a",14),e.SDv(15,15),e.qZA(),e.TgZ(16,"a",16),e.SDv(17,17),e.qZA(),e.TgZ(18,"a",18),e.SDv(19,19),e.qZA(),e.TgZ(20,"a",20),e.SDv(21,21),e.qZA()()),2&A&&(e.xp6(1),e.Q6J("ngIf",p.showFundraiserHeader),e.xp6(1),e.Q6J("href",p.medicalHref,e.LSH),e.xp6(2),e.Q6J("href",p.fundraisingForHref,e.LSH),e.xp6(2),e.Q6J("href",p.sportsHref,e.LSH),e.xp6(2),e.Q6J("href",p.musicHref,e.LSH),e.xp6(2),e.Q6J("href",p.crowdfundingCharityHref,e.LSH),e.xp6(2),e.Q6J("href",p.funeralHref,e.LSH),e.xp6(2),e.Q6J("href",p.nonProfitsHref,e.LSH),e.xp6(2),e.Q6J("href",p.personalFundraisingHref,e.LSH),e.xp6(2),e.Q6J("href",p.corporateGivingHref,e.LSH),e.xp6(2),e.Q6J("href",p.seeMoreHref,e.LSH))},dependencies:[C.O5,r.xw,r.Wh],styles:[".footer-background[_ngcontent-%COMP%]{background-color:#f4f6f7}.minimal-footer[_ngcontent-%COMP%]{padding:8px;background-color:#f4f6f7}a[_ngcontent-%COMP%]{text-decoration:none;color:#000;padding:8px;white-space:nowrap}a[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.04)}.flag[_ngcontent-%COMP%]{width:24px;height:24px}.minimal-footer-logo[_ngcontent-%COMP%]{width:50%;height:50%}.footer-titles[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:20px;font-weight:500}.footer-no-wrap[_ngcontent-%COMP%]{white-space:nowrap}"]}),f})(),we=(()=>{class f{constructor(A,p,R){this.router=A,this._accountService=p,this.locale=R,this.currentLanguageCode="",this.subject=new T.x,this.homeUrl="https:whydonate.com",this.animalRescue="spa\u0161avanje-\u017Eivotinja",this.charityFundraising="crowdfunding-humanitarne-svrhe",this.climateCrisis="klimatska-kriza",this.coronavirusReliefFund="fond-pomo\u0107-koronavirusom",this.corporateGiving="korporativno-davanje",this.dendriticCellTherapy="dendriti\u010Dka-stani\u010Dna-terapija",this.domesticViolence="nasilje-obitelji",this.energyCrisis="globalna-kriza-energije",this.financialAid="Financijska-pomo\u0107",this.fireEmergency="Vatrogasna-hitnost",this.fundraisingForEducation="prikupljanje-sredstava-za-obrazovanje",this.fundraisingForFuneral="prikupljanje-za-pogreb",this.fundraisingForNonprofits="prikupljanje-sredstava-za-neprofitne",this.legalServices="pravne-usluge-odvjetni\u010Dke-tro\u0161kovi-sakuplja\u010D-sredstava",this.lgbtqCommunity="lgbtq-sakuplja\u010D-sredstava-zajednici",this.medical="medicinsko-fundraising",this.msHsct="hsct-ms-sakuplja\u010D-sredstava",this.music="crowdfunding-glazba",this.muslimCharity="Muslimansko-Dobro\u010Dinstvo",this.onc201="onc201",this.personalFundraising="osobno-prikupljanje-sredstava",this.serviceDog="slu\u017Ebeni-pas",this.smaDisease="sma-bolest",this.sportsFundraising="sportsko-fundraising",this.supportUkraine="Podr\u017Eit-ukrajinu",this.surrogacyFundraiser="surogat-maj\u010Dinstvo-sakuplja\u010D-sredstava",this.travelExpenses="troskovi-putovanja",this.waterDamage="o\u0161te\u0107enje-vode",this.wheelchairFundraising="kombi-za-invalidska-kolica"}ngOnInit(){this.currentLanguageCode=this._accountService.getLocaleId(),this.animalRescueHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.animalRescue}/`,this.charityFundraisingHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.charityFundraising}/`,this.climateCrisisHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.climateCrisis}/`,this.coronavirusReliefFundHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.coronavirusReliefFund}/`,this.corporateGivingHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.corporateGiving}/`,this.dendriticCellTherapyHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.dendriticCellTherapy}/`,this.domesticViolenceHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.domesticViolence}/`,this.energyCrisisHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.energyCrisis}/`,this.financialAidHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.financialAid}/`,this.fireEmergencyHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.fireEmergency}/`,this.fundraisingForEducationHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.fundraisingForEducation}/`,this.fundraisingForFuneralHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.fundraisingForFuneral}/`,this.fundraisingForNonprofitsHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.fundraisingForNonprofits}/`,this.legalServicesHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.legalServices}/`,this.lgbtqCommunityHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.lgbtqCommunity}/`,this.medicalHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.medical}/`,this.msHsctHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.msHsct}/`,this.musicHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.music}/`,this.muslimCharityHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.muslimCharity}/`,this.onc201Href=`${tt_homeUrl}/${this.currentLanguageCode}/${this.onc201}/`,this.personalFundraisingHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.personalFundraising}/`,this.serviceDogHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.serviceDog}/`,this.smaDiseaseHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.smaDisease}/`,this.sportsFundraisingHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.sportsFundraising}/`,this.supportUkraineHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.supportUkraine}/`,this.surrogacyFundraiserHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.surrogacyFundraiser}/`,this.travelExpensesHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.travelExpenses}/`,this.waterDamageHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.waterDamage}/`,this.wheelchairFundraisingHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.wheelchairFundraising}/`}}return f.\u0275fac=function(A){return new(A||f)(e.Y36(d.F0),e.Y36(I.B),e.Y36(e.soG))},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-fundraiser-for-header"]],decls:59,vars:29,consts:function(){let _,A,p,R,ce,Ie,Je,At,Gt,ir,vr,Nr,wr,Tr,jr,_n,sn,Sn,Nn,on,jn,gn,pi,_a,to,Qa,oo,go,ca;return _="Spa\u0161avanje \u017Divotinja",A="Dobrotvorno Prikupljanje Sredstava",p="Klimatska Kriza",R="Fond Pomo\u0107 Koronavirusom",ce="Korporativno Darivanje",Ie="Dendriti\u010Dka stani\u010Dna terapija",Je="Nasilje Obitelji",At="Kriza Energije",Gt="Financijska pomo\u0107",ir="Vatrogasna Hitnost",vr="Edukacija O Prikupljanje Sredstava",Nr="Prikupljanje Sredstava Za Sprovod",wr="Prikupljanje Sredstava za Neprofitnu Organizaciju",Tr="Pravne Usluge",jr="LGBTQ Zajednica",_n="Medicinski Prikupljanje Sredstava",sn="HSCT Tretman MS",Sn="Glazbu Prikupljanje Sredstava ",Nn="Muslimansko Dobro\u010Dinstvo",on="ONC201",jn="Osobno Prikupljanje Sredstava ",gn="Pomo\u0107ni Pas",pi="SMA Bolest",_a="Sport Prikupljanje Sredstava",to="Podr\u017Eite Ukrajinu",Qa="Nadomje\u0161tanje",oo="Tro\u0161kovi Putovanja",go="O\u0161te\u0107enje Vode",ca="Bus za Invalide",[["fxLayout","column","fxFlex","100%","fxFill","100%",1,"w-100"],["mat-menu-item","",1,"hover-class",3,"href"],_,A,p,R,ce,Ie,Je,At,Gt,ir,vr,Nr,wr,Tr,jr,_n,sn,Sn,Nn,on,jn,gn,pi,_a,to,Qa,oo,go,ca]},template:function(A,p){1&A&&(e.TgZ(0,"div",0)(1,"a",1),e.SDv(2,2),e.qZA(),e.TgZ(3,"a",1),e.SDv(4,3),e.qZA(),e.TgZ(5,"a",1),e.SDv(6,4),e.qZA(),e.TgZ(7,"a",1),e.SDv(8,5),e.qZA(),e.TgZ(9,"a",1),e.SDv(10,6),e.qZA(),e.TgZ(11,"a",1),e.SDv(12,7),e.qZA(),e.TgZ(13,"a",1),e.SDv(14,8),e.qZA(),e.TgZ(15,"a",1),e.SDv(16,9),e.qZA(),e.TgZ(17,"a",1),e.SDv(18,10),e.qZA(),e.TgZ(19,"a",1),e.SDv(20,11),e.qZA(),e.TgZ(21,"a",1),e.SDv(22,12),e.qZA(),e.TgZ(23,"a",1),e.SDv(24,13),e.qZA(),e.TgZ(25,"a",1),e.SDv(26,14),e.qZA(),e.TgZ(27,"a",1),e.SDv(28,15),e.qZA(),e.TgZ(29,"a",1),e.SDv(30,16),e.qZA(),e.TgZ(31,"a",1),e.SDv(32,17),e.qZA(),e.TgZ(33,"a",1),e.SDv(34,18),e.qZA(),e.TgZ(35,"a",1),e.SDv(36,19),e.qZA(),e.TgZ(37,"a",1),e.SDv(38,20),e.qZA(),e.TgZ(39,"a",1),e.SDv(40,21),e.qZA(),e.TgZ(41,"a",1),e.SDv(42,22),e.qZA(),e.TgZ(43,"a",1),e.SDv(44,23),e.qZA(),e.TgZ(45,"a",1),e.SDv(46,24),e.qZA(),e.TgZ(47,"a",1),e.SDv(48,25),e.qZA(),e.TgZ(49,"a",1),e.SDv(50,26),e.qZA(),e.TgZ(51,"a",1),e.SDv(52,27),e.qZA(),e.TgZ(53,"a",1),e.SDv(54,28),e.qZA(),e.TgZ(55,"a",1),e.SDv(56,29),e.qZA(),e.TgZ(57,"a",1),e.SDv(58,30),e.qZA()()),2&A&&(e.xp6(1),e.Q6J("href",p.animalRescueHref,e.LSH),e.xp6(2),e.Q6J("href",p.charityFundraisingHref,e.LSH),e.xp6(2),e.Q6J("href",p.climateCrisisHref,e.LSH),e.xp6(2),e.Q6J("href",p.coronavirusReliefFundHref,e.LSH),e.xp6(2),e.Q6J("href",p.corporateGivingHref,e.LSH),e.xp6(2),e.Q6J("href",p.dendriticCellTherapyHref,e.LSH),e.xp6(2),e.Q6J("href",p.domesticViolenceHref,e.LSH),e.xp6(2),e.Q6J("href",p.energyCrisisHref,e.LSH),e.xp6(2),e.Q6J("href",p.financialAidHref,e.LSH),e.xp6(2),e.Q6J("href",p.fireEmergencyHref,e.LSH),e.xp6(2),e.Q6J("href",p.fundraisingForEducationHref,e.LSH),e.xp6(2),e.Q6J("href",p.fundraisingForFuneralHref,e.LSH),e.xp6(2),e.Q6J("href",p.fundraisingForNonprofitsHref,e.LSH),e.xp6(2),e.Q6J("href",p.legalServicesHref,e.LSH),e.xp6(2),e.Q6J("href",p.lgbtqCommunityHref,e.LSH),e.xp6(2),e.Q6J("href",p.medicalHref,e.LSH),e.xp6(2),e.Q6J("href",p.msHsctHref,e.LSH),e.xp6(2),e.Q6J("href",p.musicHref,e.LSH),e.xp6(2),e.Q6J("href",p.muslimCharityHref,e.LSH),e.xp6(2),e.Q6J("href",p.onc201Href,e.LSH),e.xp6(2),e.Q6J("href",p.personalFundraisingHref,e.LSH),e.xp6(2),e.Q6J("href",p.serviceDogHref,e.LSH),e.xp6(2),e.Q6J("href",p.smaDiseaseHref,e.LSH),e.xp6(2),e.Q6J("href",p.sportsFundraisingHref,e.LSH),e.xp6(2),e.Q6J("href",p.supportUkraineHref,e.LSH),e.xp6(2),e.Q6J("href",p.surrogacyFundraiserHref,e.LSH),e.xp6(2),e.Q6J("href",p.travelExpensesHref,e.LSH),e.xp6(2),e.Q6J("href",p.waterDamageHref,e.LSH),e.xp6(2),e.Q6J("href",p.wheelchairFundraisingHref,e.LSH))},dependencies:[_e.tN,r.xw,r.s9,r.yH],styles:[".logo[_ngcontent-%COMP%]{height:50px;object-fit:fill}"]}),f})(),Ye=(()=>{class f{constructor(A,p){this.router=A,this._accountService=p,this.currentLanguageCode="",this.homeUrl="https:whydonate.com",this.crowdfunding="crowdfunding-prikupljanje-sredstava",this.donationButton="gumb-za-doniranje-donacija-website-plugin",this.digitalCollection="/hr/digitalna-kutija-za-sakupljanje/",this.subject=new T.x}ngOnInit(){this.currentLanguageCode=this._accountService.getLocaleId(),this.crowdFundingHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.crowdfunding}/`,this.donationButtonHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.donationButton}/`,this.digitalCollectionHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.digitalCollection}/`}}return f.\u0275fac=function(A){return new(A||f)(e.Y36(d.F0),e.Y36(I.B))},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-products"]],decls:7,vars:2,consts:function(){let _,A,p;return _="Proizvodi",A="crowdfunding",p="Gumb za doniranje plugin",[["fxLayout","column","fxLayoutAlign","start start","ngClass.lt-sm","m-t-m",1,"footer_header"],[1,"footer-titles","mat-title","product","p-l-xs"],_,[1,"platform","break-word",2,"cursor","pointer",3,"href"],A,[1,"donate","break-word",2,"cursor","pointer",3,"href"],p]},template:function(A,p){1&A&&(e.TgZ(0,"div",0)(1,"span",1),e.SDv(2,2),e.qZA(),e.TgZ(3,"a",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"a",5),e.SDv(6,6),e.qZA()()),2&A&&(e.xp6(3),e.Q6J("href",p.crowdFundingHref,e.LSH),e.xp6(2),e.Q6J("href",p.donationButtonHref,e.LSH))},dependencies:[r.xw,r.Wh,j.oO],styles:[".footer-background[_ngcontent-%COMP%]{background-color:#f4f6f7}.minimal-footer[_ngcontent-%COMP%]{padding:8px;background-color:#f4f6f7}a[_ngcontent-%COMP%]{text-decoration:none;color:#000;padding:8px;white-space:nowrap}a[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.04)}.flag[_ngcontent-%COMP%]{width:24px;height:24px}.minimal-footer-logo[_ngcontent-%COMP%]{width:50%;height:50%}.footer-titles[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:20px;font-weight:500}.footer-no-wrap[_ngcontent-%COMP%]{white-space:nowrap}"]}),f})();function te(f,_){1&f&&(e.TgZ(0,"span",12),e.SDv(1,13),e.qZA())}let Se=(()=>{class f{constructor(A){this._accountService=A,this.currentLanguageCode="",this.showFeaturesHeader=!0,this.homeUrl="https:whydonate.com",this.global="globalno-fundraising-europa",this.customCrowdFunding="prilagodena-p2p-platforma-za-grupno-financiranje",this.recurringDonation="ponavljajuce-donacije-davanje",this.donationQr="donacija-qr-kod",this.peerToPeer="prilagodena-p2p-platforma-za-grupno-financiranje"}ngOnInit(){this.currentLanguageCode=this._accountService.getLocaleId(),this.globalHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.global}/`,this.customHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.customCrowdFunding}/`,this.recurringHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.recurringDonation}/`,this.donationHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.donationQr}/`,this.peerHref="https://whydonate.com/en/peer-to-peer-fundraising/"}}return f.\u0275fac=function(A){return new(A||f)(e.Y36(I.B))},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-features"]],inputs:{showFeaturesHeader:"showFeaturesHeader"},decls:12,vars:6,consts:function(){let _,A,p,R,ce,Ie;return _="Globalno prikupljanje sredstava",A="Prilago\u0111eno brendiranje",p="Ponavljaju\u0107e donacije",R="QR kodovi i zahtjevi za pla\u0107anje",ce="Peer-To-Peer Prikupljanje Sredstava",Ie="Zna\u010Dajke",[["fxLayout","column","fxLayoutAlign","start start",1,"footer_header"],["class","footer-titles mat-title features p-l-xs",4,"ngIf"],[1,"global","break-word",2,"cursor","pointer",3,"href"],_,[1,"custom","break-word",2,"cursor","pointer",3,"href"],A,[1,"recurring","break-word",2,"cursor","pointer",3,"href"],p,[1,"qr-code","break-word",2,"cursor","pointer",3,"href"],R,[1,"peerToPeer","break-word",2,"cursor","pointer",3,"href"],ce,[1,"footer-titles","mat-title","features","p-l-xs"],Ie]},template:function(A,p){1&A&&(e.TgZ(0,"div",0),e.YNc(1,te,2,0,"span",1),e.TgZ(2,"a",2),e.SDv(3,3),e.qZA(),e.TgZ(4,"a",4),e.SDv(5,5),e.qZA(),e.TgZ(6,"a",6),e.SDv(7,7),e.qZA(),e.TgZ(8,"a",8),e.SDv(9,9),e.qZA(),e.TgZ(10,"a",10),e.SDv(11,11),e.qZA()()),2&A&&(e.xp6(1),e.Q6J("ngIf",p.showFeaturesHeader),e.xp6(1),e.Q6J("href",p.globalHref,e.LSH),e.xp6(2),e.Q6J("href",p.customHref,e.LSH),e.xp6(2),e.Q6J("href",p.recurringHref,e.LSH),e.xp6(2),e.Q6J("href",p.donationHref,e.LSH),e.xp6(2),e.Q6J("href",p.peerHref,e.LSH))},dependencies:[C.O5,r.xw,r.Wh],styles:[".footer-background[_ngcontent-%COMP%]{background-color:#f4f6f7}.minimal-footer[_ngcontent-%COMP%]{padding:8px;background-color:#f4f6f7}a[_ngcontent-%COMP%]{text-decoration:none;color:#000;padding:8px;white-space:nowrap}a[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.04)}.flag[_ngcontent-%COMP%]{width:24px;height:24px}.minimal-footer-logo[_ngcontent-%COMP%]{width:50%;height:50%}.footer-titles[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:20px;font-weight:500}.footer-no-wrap[_ngcontent-%COMP%]{white-space:nowrap}"]}),f})();function ke(f,_){1&f&&(e.TgZ(0,"span",14),e.SDv(1,15),e.qZA())}let Ge=(()=>{class f{constructor(A){this._accountService=A,this.currentLanguageCode="",this.showSupportHeader=!0,this.homeUrl="https:whydonate.com",this.about="o-zakladi-whydonate",this.blog="blog",this.contact="kontaktirajte-nas",this.tips="savjeti-i-trikovi-za-prikupljanje-sredstava",this.fees="naknade",this.temp="https://whydonate.com/en/blog"}ngOnInit(){this.currentLanguageCode=this._accountService.getLocaleId(),this.aboutHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.about}/`,this.blogHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.blog}/`,this.contactHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.contact}/`,this.tipsHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.tips}/`,this.feesHref=`${tt_homeUrl}/${this.currentLanguageCode}/${this.fees}/`}languageDetectorForHelpDesk(A){window.location.href=A+".whydonate.com/"+this.currentLanguageCode}}return f.\u0275fac=function(A){return new(A||f)(e.Y36(I.B))},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-support"]],inputs:{showSupportHeader:"showSupportHeader"},decls:14,vars:6,consts:function(){let _,A,p,R,ce,Ie,Je;return _="Podr\u0161ka",A="O Fondaciji WhyDonate",p="Prikupljanje sredstava savjeti i trikovi",R="Blog",ce="Naknade",Ie="Kontakt",Je="Podr\u0161ka",[["fxLayout","column","fxLayoutAlign","start start",1,"footer_header"],["class","footer-titles mat-title support p-l-xs",4,"ngIf"],[1,"helpdesk","break-word",2,"cursor","pointer",3,"click"],_,[1,"about","break-word",2,"cursor","pointer",3,"href"],A,[1,"fundraising","break-word",2,"cursor","pointer",3,"href"],p,[1,"blog",2,"cursor","pointer",3,"href"],R,[1,"fees",2,"cursor","pointer",3,"href"],ce,[1,"contact","break-word",2,"cursor","pointer",3,"href"],Ie,[1,"footer-titles","mat-title","support","p-l-xs"],Je]},template:function(A,p){1&A&&(e.TgZ(0,"div",0),e.YNc(1,ke,2,0,"span",1),e.TgZ(2,"a",2),e.NdJ("click",function(){return p.languageDetectorForHelpDesk("https://helpdesk")}),e.SDv(3,3),e.qZA(),e.TgZ(4,"a",4),e.SDv(5,5),e.qZA(),e.TgZ(6,"a",6),e.SDv(7,7),e.qZA(),e.TgZ(8,"a",8),e.SDv(9,9),e.qZA(),e.TgZ(10,"a",10),e.SDv(11,11),e.qZA(),e.TgZ(12,"a",12),e.SDv(13,13),e.qZA()()),2&A&&(e.xp6(1),e.Q6J("ngIf",p.showSupportHeader),e.xp6(3),e.Q6J("href",p.aboutHref,e.LSH),e.xp6(2),e.Q6J("href",p.tipsHref,e.LSH),e.xp6(2),e.Q6J("href",p.blogHref,e.LSH),e.xp6(2),e.Q6J("href",p.feesHref,e.LSH),e.xp6(2),e.Q6J("href",p.contactHref,e.LSH))},dependencies:[C.O5,r.xw,r.Wh],styles:[".footer-background[_ngcontent-%COMP%]{background-color:#f4f6f7}.minimal-footer[_ngcontent-%COMP%]{padding:8px;background-color:#f4f6f7}a[_ngcontent-%COMP%]{text-decoration:none;color:#000;padding:8px;white-space:nowrap}a[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.04)}.flag[_ngcontent-%COMP%]{width:24px;height:24px}.minimal-footer-logo[_ngcontent-%COMP%]{width:50%;height:50%}.footer-titles[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:20px;font-weight:500}.footer-no-wrap[_ngcontent-%COMP%]{white-space:nowrap}"]}),f})();const Tt=function(f){return{color:f}};function Et(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",56),e.NdJ("click",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.toggleSidenav())}),e.TgZ(1,"mat-icon"),e._uU(2,"menu"),e.qZA()()}if(2&f){const A=e.oxw();e.Q6J("ngStyle",e.VKq(1,Tt,"menu"===A.sidenavActiveItem?"#32BF55":"#000000"))}}function H(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",57),e.NdJ("menuOpened",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.mobileMenuOpened())})("menuClosed",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.mobileMenuClosed())}),e.TgZ(1,"mat-icon"),e._uU(2,"menu"),e.qZA()()}if(2&f){const A=e.oxw(),p=e.MAs(74);e.Q6J("matMenuTriggerFor",p)("ngStyle",e.VKq(2,Tt,"mobilemenu"===A.mobileActiveItem?"#32BF55":"#000000"))}}function Y(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",58),e.NdJ("menuOpened",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.menuOpened())})("menuClosed",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.menuClosed())}),e.TgZ(1,"span"),e.SDv(2,59),e.qZA()()}if(2&f){const A=e.oxw(),p=e.MAs(13);e.Q6J("matMenuTriggerFor",p)("ngStyle",e.VKq(2,Tt,"explore"===A.activeItem?"#32BF55":"#000000"))}}function S(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",60),e.NdJ("click",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.routeToPersonalFundraising())}),e.SDv(1,61),e.qZA()}if(2&f){const A=e.oxw();e.Q6J("ngStyle",e.VKq(1,Tt,"individuals"===A.activeItem?"#32BF55":"#000000"))}}function K(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",62),e.NdJ("click",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.routeToOrganisation())}),e.SDv(1,63),e.qZA()}if(2&f){const A=e.oxw();e.Q6J("ngStyle",e.VKq(1,Tt,"organisation"===A.activeItem?"#32BF55":"#000000"))}}function Q(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",62),e.NdJ("click",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.routeToPersonalFundraising())}),e.SDv(1,64),e.qZA()}if(2&f){const A=e.oxw();e.Q6J("ngStyle",e.VKq(1,Tt,"organisation"===A.activeItem?"#32BF55":"#000000"))}}function B(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",65),e.NdJ("click",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.routeToSearch())}),e.SDv(1,66),e.qZA()}if(2&f){const A=e.oxw();e.Q6J("ngStyle",e.VKq(1,Tt,"search"===A.activeItem?"#32BF55":"#000000"))}}function re(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",65),e.NdJ("click",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.routeToSearch())}),e.SDv(1,67),e.qZA()}if(2&f){const A=e.oxw();e.Q6J("ngStyle",e.VKq(1,Tt,"search"===A.activeItem?"#32BF55":"#000000"))}}function fe(f,_){if(1&f&&e._UZ(0,"img",68),2&f){const A=e.oxw();e.Q6J("src",A.profileImage,e.LSH)}}function qe(f,_){1&f&&e._UZ(0,"mat-divider",42)}function $e(f,_){if(1&f&&e.GkF(0,69),2&f){e.oxw();const A=e.MAs(81);e.Q6J("ngTemplateOutlet",A)}}function et(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",70)(1,"img",71),e.NdJ("error",function(R){e.CHM(A);const ce=e.oxw();return e.KtG(ce.handleImageError(R))}),e.qZA()()}if(2&f){const A=e.oxw(),p=e.MAs(40);e.Q6J("matMenuTriggerFor",p),e.xp6(1),e.Q6J("src",A.profileImage,e.LSH)}}function ot(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",72),e.NdJ("click",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.routeToLogin())}),e.SDv(1,73),e.qZA()}if(2&f){const A=e.oxw();e.Q6J("ngStyle",e.VKq(1,Tt,"login"===A.activeItem?"#32BF55":"#000000"))}}function ct(f,_){if(1&f&&e.GkF(0,69),2&f){e.oxw();const A=e.MAs(81);e.Q6J("ngTemplateOutlet",A)}}function pt(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",74),e.NdJ("click",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.routeToLogin())}),e.tHW(1,75),e._UZ(2,"span",76),e.N_p(),e.qZA()}if(2&f){const A=e.oxw();e.Q6J("ngStyle",e.VKq(1,Tt,"login"===A.activeItem?"#32BF55":"#000000"))}}function $t(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"mat-accordion",77)(1,"mat-expansion-panel",78),e.NdJ("click",function(R){return R.stopPropagation()}),e.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title"),e.SDv(4,79),e.qZA()(),e._UZ(5,"app-fundraiser-for",80),e.qZA(),e.TgZ(6,"mat-expansion-panel",78),e.NdJ("click",function(R){return R.stopPropagation()}),e.TgZ(7,"mat-expansion-panel-header")(8,"mat-panel-title"),e.SDv(9,81),e.qZA()(),e.TgZ(10,"p",82),e.NdJ("click",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.languageForWhydonatePlatform())}),e.SDv(11,83),e.qZA(),e.TgZ(12,"p",84),e.NdJ("click",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.languageForDonationPlugin())}),e.SDv(13,85),e.qZA()(),e.TgZ(14,"mat-expansion-panel",78),e.NdJ("click",function(R){return R.stopPropagation()}),e.TgZ(15,"mat-expansion-panel-header")(16,"mat-panel-title"),e.SDv(17,86),e.qZA()(),e._UZ(18,"app-features",87),e.qZA(),e.TgZ(19,"mat-expansion-panel",78),e.NdJ("click",function(R){return R.stopPropagation()}),e.TgZ(20,"mat-expansion-panel-header")(21,"mat-panel-title"),e.SDv(22,88),e.qZA()(),e._UZ(23,"app-support",89),e.qZA()()}2&f&&(e.xp6(5),e.Q6J("showFundraiserHeader",!1),e.xp6(13),e.Q6J("showFeaturesHeader",!1),e.xp6(5),e.Q6J("showSupportHeader",!1))}let It=(()=>{class f{constructor(A,p,R,ce,Ie,Je,At,Gt,ir,vr,Nr,wr,Tr,jr,_n,sn){this.accountService=A,this.router=p,this._http=R,this._changeDetectorRef=ce,this.fundraiserService=Ie,this._profileService=Je,this._customBrandingService=At,this._dashboardService=Gt,this._dialog=ir,this._bankService=vr,this._sidenavService=Nr,this.locale=wr,this.customDomainService=sn,this._unsubscribeAll=new T.x,this.showFundraiserHeader=!1,this.showFeaturesHeader=!1,this.showSupportHeader=!1,this.currentLang="",this.isLoggedIn=!1,this.isShowText=!1,this.isShowIcon=!1,this.currentLanguageCode="",this.subject=new T.x,this.whydonatePlatformUrl="hr/crowdfunding-prikupljanje-sredstava/",this.donationPluginUrl="hr/gumb-za-doniranje-donacija-website-plugin/",this.isReceiver=!1,this.defaultProfileImage="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/whydonate_user/w=40",this.isPersonalFundraising=!0,this.isOrganisation=!1,this.activeItem="",this.mobileActiveItem="",this.sidenavActiveItem="menu",this.IMAGE_PREFIX="https://whydonate.in/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/",this.IMAGE_POSTFIX="/public",this.isCustomDomainActive=!1,this._activatedRoute=Tr,this._router=jr}onResize(A){var p=window.innerWidth;this.setLogo(p),this.setSideNavDefaults()}ngOnInit(){this.getActiveItem(),this.setSideNavDefaults(),this._customBrandingService.getIsReceived().subscribe(A=>{this.isReceiver=A}),this.setLogo(window.innerWidth),this.getUrl().subscribe(),this.getLoggedInInfo(),this._profileService.profileUpdate.pipe((0,F.R)(this._unsubscribeAll)).subscribe(A=>{if(A){this.userProfile=A,this.profileImage=this.userProfile?.data?.image,this.user=localStorage.getItem("user");let p=new ye.n(JSON.parse(this.user)?.id,new de.C(JSON.parse(this.user)?.jwt.jwt,JSON.parse(this.user)?.jwt.expiry_date),JSON.parse(this.user)?.first_name,JSON.parse(this.user)?.last_name,JSON.parse(this.user)?.email,"No image found"!=this.profileImage?this.profileImage:null);localStorage.setItem("user",JSON.stringify(p)),this._changeDetectorRef.markForCheck()}}),this.router.events.subscribe(A=>{A instanceof d.m2&&(A.url.includes("/fundraising")||A.url.includes("/donate")?this.fundraiserService.getCurrentFundraiser().subscribe(p=>{null!=p&&null!=p&&p?.profile?.custom_logo&&(this.logo=p?.profile?.custom_logo)}):this.setLogo(window.innerWidth))}),this._router.url.includes("organisation")&&(this.isPersonalFundraising=!1,this.isOrganisation=!0),this.isCustomDomain(this.extractDomainFromUrl(window.location.href))&&(this.isCustomDomainActive=!0)}ngAfterViewInit(){this.customDomainService.getIsCustomDomain().subscribe(A=>{this.isCustomDomainActive=A})}menuOpened(){this.activeItem="explore"}menuClosed(){this.activeItem=""}mobileMenuOpened(){this.mobileActiveItem="mobilemenu"}mobileMenuClosed(){this.mobileActiveItem=""}getActiveItem(){this.router.events.subscribe(A=>{A instanceof d.m2&&(this.activeItem=A.url.includes("/organisation")?"organisation":A.url.includes("/search")?"search":A.url.includes("/login")||A.url.includes("/account")?"login":"/"===A.url?"individuals":"")})}routeToPersonalFundraising(){this.activeItem="individuals",this._router.navigate([""])}routeToOrganisation(){this.activeItem="organisation",this._router.navigate(["organisation"])}ngOnDestroy(){this._unsubscribeAll.complete()}userMenuClick(A){switch(A.toLowerCase()){case"myaccount":this.router.navigate(["/profile"]);break;case"helpcenter":window.location.href="https://helpdesk.whydonate.com/"+this.currentLanguageCode;break;case"logout":this.accountService.logout()}}getLoggedInInfo(){this.accountService.getLoginInformation().subscribe(A=>{1==A?(this.isLoggedIn=!0,this.user=localStorage.getItem("user"),this.profileImage=JSON.parse(this.user)?.profile_image,(null==this.profileImage||this.profileImage.includes("https://res.cloudinary.com/whydonate/image/upload/v1/"))&&(this.profileImage=this.defaultProfileImage)):this.isLoggedIn=!1})}routeToLogin(){this.activeItem="login",localStorage.setItem("previous_path",""),this.router.navigate(["account"])}routeToSearch(){this.activeItem="search",this.router.navigate(["search"])}routeToHome(){this.router.navigate(["/"])}routeToBranding(){this.router.navigate(["custom-branding"],{fragment:"branding"})}routeToEmail(){this.router.navigate(["custom-email"])}routeToReceipt(){this.router.navigate(["custom-receipt"])}startFundraiser(){this.router.navigate(["/start"])}getUrl(){return this.router.events.pipe((0,le.h)(A=>A instanceof d.m2)).subscribe(A=>{this.currentLanguageCode=A.url,this.subject.next(this.currentLanguageCode)}),this.subject.asObservable()}languageForWhydonatePlatform(){window.location.href="https://whydonate.com/"+this.whydonatePlatformUrl}languageForDonationPlugin(){window.location.href="https://whydonate.com/"+this.donationPluginUrl}handleImageError(A){A.target.src=this.defaultProfileImage}toggleSidenav(){var A=window.innerWidth;this.isShowText=this._sidenavService.getIsShowTextValue(),this.isShowIcon=this._sidenavService.getIsShowIconValue(),A<600?(this.isShowText=!this.isShowText,this.isShowIcon=!this.isShowIcon,this._sidenavService.toggleSidenav(this.isShowText,this.isShowIcon)):(this.isShowText=!this.isShowText,this.isShowIcon=!0,this._sidenavService.toggleSidenav(this.isShowText,this.isShowIcon)),this.sidenavActiveItem=this.isShowText&&this.isShowIcon?"menu":""}setSideNavDefaults(){var A=window.innerWidth;A<600?(this.isShowText=!1,this.isShowIcon=!1):A>=600&&A<780?(this.isShowText=!1,this.isShowIcon=!0):(this.isShowText=!0,this.isShowIcon=!0),this._sidenavService.toggleSidenav(this.isShowText,this.isShowIcon)}setLogo(A){var p=this;return(0,M.Z)(function*(){if(p.isCustomDomain(p.extractDomainFromUrl(window.location.href)))try{yield p.customDomainService.getCustomDomainData(p.extractDomainFromUrl(window.location.href)).then(R=>{let ce=R?.data,Ie=ce?.is_fundraiser_home;p.logo=ce?.is_custom_home?p.IMAGE_PREFIX+ce?.custom_branding?.custom_logo+p.IMAGE_POSTFIX:Ie?ce?.fundraiser_data?.fudraiserDetails?.profile?.custom_logo:A<500?"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/whydonate_icon/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/WhyDonatesSVG/public"})}catch(R){console.error("Error fetching custom domain data:",R),p.logo=A<500?"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/whydonate_icon/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/WhyDonatesSVG/public"}else 1==p.isLoggedIn&&p.accountService.checkHeaders()?p._profileService.getProfile().pipe((0,F.R)(p._unsubscribeAll)).subscribe(R=>{p.userProfile=R,p._customBrandingService.setIsReceived(p.userProfile?.data?.profile?.is_receiver||!1);try{p.logo=null!=p.userProfile?.data?.profile?.custom_logo&&"https://res.cloudinary.com/whydonate/image/upload/dpr_auto,f_auto,q_auto/whydonate-production/platform/visuals/whydonate-logo-licht.webp"!=p.userProfile?.data?.profile?.custom_logo&&"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/whydonate_icon/public"!=p.userProfile?.data?.profile?.custom_logo?V.w.getCloudinaryCustomLogoPath(p.userProfile?.data?.profile?.custom_logo):A<500?"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/whydonate_icon/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/WhyDonatesSVG/public"}catch{p.logo=A<500?"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/whydonate_icon/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/WhyDonatesSVG/public"}}):p.logo=A<500?"https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/whydonate_icon/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/WhyDonatesSVG/public"})()}extractDomainFromUrl(A){return A.replace(/^(https?:\/\/)?(www\d?\.)?/,"").replace(/\/$/,"").split("/")[0]}isCustomDomain(A){return!n.N.OFFICIAL_DOMAINS.includes(A)}truncateText(A){return A.length>26?A.slice(0,26)+"...":A}shouldShowTooltip(A){return A.length>26}}return f.\u0275fac=function(A){return new(A||f)(e.Y36(I.B),e.Y36(d.F0),e.Y36(Ee.eN),e.Y36(e.sBO),e.Y36(Le.R),e.Y36(ge.H),e.Y36(ue.C),e.Y36(ee.s),e.Y36(se.uw),e.Y36(W.y),e.Y36(he),e.Y36(e.soG),e.Y36(d.gz),e.Y36(d.F0),e.Y36(q.g),e.Y36(P.c))},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-header"]],hostBindings:function(A,p){1&A&&e.NdJ("resize",function(ce){return p.onResize(ce)},!1,e.Jf7)},inputs:{showFundraiserHeader:"showFundraiserHeader",showFeaturesHeader:"showFeaturesHeader",showSupportHeader:"showSupportHeader"},decls:82,vars:20,consts:function(){let _,A,p,R,ce,Ie,Je,At,Gt,ir,vr,Nr,wr,Tr,jr,_n,sn,Sn,Nn;return _="Online Prikupljanje Sredstava",A="Gumb za doniranje plugin",p="Ra\u010Dun",R="Podr\u0161ka",ce="Odjava",Ie="Istra\u017Ei",Je="Osobno ",At="Organizacija",Gt="Dom",ir="Pretra\u017Ei",vr="Pretra\u017Ei",Nr="Prijava",wr="Prijava",Tr="Prikupljanje Sredstava Za",jr="Proizvodi",_n="Online Prikupljanje Sredstava",sn="Gumb za doniranje plugin",Sn="Zna\u010Dajke",Nn="Podr\u0161ka",[["id","header","name","header",1,"mat-elevation-z4","branding"],["fxLayout","row","fxFlex","100%","fxLayoutAlign","center center"],["fxFlex","60%","fxLayout","column","fxLayoutAlign","center center"],["fxFill","","fxLayout","row","fxLayoutAlign","start center"],["mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["mat-icon-button","","fxHide.gt-sm","true","fxHide.sm","false",3,"matMenuTriggerFor","ngStyle","menuOpened","menuClosed",4,"ngIf"],["fxHide.sm","true","fxHide.xs","true","mat-flat-button","",3,"matMenuTriggerFor","ngStyle","menuOpened","menuClosed",4,"ngIf"],["fxHide.sm","true","fxHide.xs","true","mat-button","","id","homePersonalFundraising",3,"ngStyle","click",4,"ngIf"],["fxHide.sm","true","fxHide.xs","true","mat-button","","id","homeOrganisation",3,"ngStyle","click",4,"ngIf"],["class","search","fxHide.sm","true","fxHide.xs","true","mat-flat-button","","id","headerSearchFundraiser",3,"ngStyle","click",4,"ngIf"],["id","headerExploreMenu",1,"exploreMenuContainer"],["exploreMenu","matMenu"],["fxFlex","100%","fxLayout","row","ngClass","p-l"],["fxFlex","100%","fxLayout","row","fxLayoutAlign","space-between start"],["fxFlex","100%","ngClass","p-r-l"],["id","headerProductsMenu"],["productsMenu","matMenu"],["mat-menu-item","","id","headerWhydonatePlatform",3,"click"],_,["mat-menu-item","","id","headerDonationPlugin",3,"click"],A,["id","fundraiserForMenu","fxHide.sm","true","fxHide.xs","true"],["fundraiserForMenu","matMenu"],["fxLayout","column","fxLayoutAlign","center center"],["fxLayout","row"],["id","headerLogo",1,"pointer","logo",3,"src","click"],["fxFlex","100%","fxLayout","column","fxLayoutAlign","end end"],["fxLayout","row","fxLayoutAlign","end end"],["userMenu","matMenu"],[1,"mat-elevation-z0"],["mat-card-avatar","","alt","This is the profile image",3,"src",4,"ngIf"],[3,"matTooltip","matTooltipPosition"],["mat-menu-item","","id","headerMyAccount",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/account_circle/public",1,"icon-position"],p,["mat-menu-item","","id","headerHelpCenter",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/helpNav/public",1,"icon-position"],R,["mat-menu-item","","id","headerLogout",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/logout/public",1,"icon-position"],ce,["fxHide.gt-sm","true","fxHide.sm","false",4,"ngIf"],["fxHide.gt-sm","true","fxHide.sm","false"],[3,"ngTemplateOutlet",4,"ngIf"],["fxHide.lg","true","fxHide.lt-lg","true","fxHide.gt-lg","true","fxHide.sm","false","fxHide.lt-sm","false"],["mat-icon-button","",3,"click"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/search/public"],["mat-flat-button","",3,"matMenuTriggerFor",4,"ngIf"],["id","loginButton","fxHide.sm","false","fxHide.xs","false","mat-flat-button","",3,"ngStyle","click",4,"ngIf"],["fxHide.xs","true","buttonType","stroked","themeColor","accent","id","startFundraiserButton","ngClass","p-l-m"],["mobileMenu","matMenu"],["id","loginButton","mat-menu-item","",3,"ngStyle","click",4,"ngIf"],["fxHide.gt-xs","true"],["fxLayout","column","fxFlex","100%",1,"white-bg"],["buttonType","stroked","themeColor","accent"],["headerMenuAccordion",""],["mat-icon-button","",3,"ngStyle","click"],["mat-icon-button","","fxHide.gt-sm","true","fxHide.sm","false",3,"matMenuTriggerFor","ngStyle","menuOpened","menuClosed"],["fxHide.sm","true","fxHide.xs","true","mat-flat-button","",3,"matMenuTriggerFor","ngStyle","menuOpened","menuClosed"],Ie,["fxHide.sm","true","fxHide.xs","true","mat-button","","id","homePersonalFundraising",3,"ngStyle","click"],Je,["fxHide.sm","true","fxHide.xs","true","mat-button","","id","homeOrganisation",3,"ngStyle","click"],At,Gt,["fxHide.sm","true","fxHide.xs","true","mat-flat-button","","id","headerSearchFundraiser",1,"search",3,"ngStyle","click"],ir,vr,["mat-card-avatar","","alt","This is the profile image",3,"src"],[3,"ngTemplateOutlet"],["mat-flat-button","",3,"matMenuTriggerFor"],["id","headerMenu",1,"profile-image",3,"src","error"],["id","loginButton","fxHide.sm","false","fxHide.xs","false","mat-flat-button","",3,"ngStyle","click"],Nr,["id","loginButton","mat-menu-item","",3,"ngStyle","click"],wr,["ngClass","p-l-xs"],[1,"mobileMenuContainer"],[3,"click"],Tr,[3,"showFundraiserHeader"],jr,["id","headerWhydonatePlatform",3,"click"],_n,["id","headerDonationPlugin",3,"click"],sn,Sn,[3,"showFeaturesHeader"],Nn,[3,"showSupportHeader"]]},template:function(A,p){1&A&&(e.TgZ(0,"mat-toolbar",0)(1,"mat-toolbar-row")(2,"div",1)(3,"div",2)(4,"div",3),e.YNc(5,Et,3,3,"button",4),e.YNc(6,H,3,4,"button",5),e.YNc(7,Y,3,4,"button",6),e.YNc(8,S,2,3,"button",7),e.YNc(9,K,2,3,"button",8),e.YNc(10,Q,2,3,"button",8),e.YNc(11,B,2,3,"button",9),e.TgZ(12,"mat-menu",10,11)(14,"div",12)(15,"div",13)(16,"div",14),e._UZ(17,"app-fundraiser-for"),e.qZA(),e.TgZ(18,"div",14),e._UZ(19,"app-products"),e.qZA(),e.TgZ(20,"div",14),e._UZ(21,"app-features"),e.qZA(),e.TgZ(22,"div",14),e._UZ(23,"app-support"),e.qZA()()()(),e.TgZ(24,"mat-menu",15,16)(26,"button",17),e.NdJ("click",function(){return p.languageForWhydonatePlatform()}),e.SDv(27,18),e.qZA(),e.TgZ(28,"button",19),e.NdJ("click",function(){return p.languageForDonationPlugin()}),e.SDv(29,20),e.qZA()(),e.TgZ(30,"mat-menu",21,22),e._UZ(32,"app-fundraiser-for-header"),e.qZA()()(),e.TgZ(33,"div",23)(34,"div",24)(35,"img",25),e.NdJ("click",function(){return p.routeToHome()}),e.qZA()()(),e.TgZ(36,"div",26)(37,"div",27),e.YNc(38,re,2,3,"button",9),e.TgZ(39,"mat-menu",null,28)(41,"mat-card",29)(42,"mat-card-header"),e.YNc(43,fe,1,1,"img",30),e.TgZ(44,"mat-card-title"),e._uU(45),e.qZA(),e.TgZ(46,"mat-card-subtitle",31),e._uU(47),e.qZA()()(),e._UZ(48,"mat-divider"),e.TgZ(49,"button",32),e.NdJ("click",function(){return p.userMenuClick("myAccount")}),e._UZ(50,"img",33),e._uU(51,"\xa0\xa0\xa0 "),e.TgZ(52,"span"),e.SDv(53,34),e.qZA()(),e.TgZ(54,"button",35),e.NdJ("click",function(){return p.userMenuClick("helpCenter")}),e._UZ(55,"img",36),e._uU(56,"\xa0\xa0\xa0 "),e.TgZ(57,"span"),e.SDv(58,37),e.qZA()(),e.TgZ(59,"button",38),e.NdJ("click",function(){return p.userMenuClick("logout")}),e._UZ(60,"img",39),e._uU(61,"\xa0\xa0\xa0 "),e.TgZ(62,"span"),e.SDv(63,40),e.qZA()(),e.YNc(64,qe,1,0,"mat-divider",41),e.TgZ(65,"div",42),e.YNc(66,$e,1,1,"ng-container",43),e.qZA()(),e.TgZ(67,"div",44)(68,"button",45),e.NdJ("click",function(){return p.routeToSearch()}),e._UZ(69,"img",46),e.qZA()(),e.YNc(70,et,2,2,"button",47),e.YNc(71,ot,2,3,"button",48),e._UZ(72,"app-start-fundraiser-button",49),e.TgZ(73,"mat-menu",null,50),e.YNc(75,ct,1,1,"ng-container",43),e.YNc(76,pt,3,3,"button",51),e.qZA()()()()(),e.TgZ(77,"mat-toolbar-row",52)(78,"div",53),e._UZ(79,"app-start-fundraiser-button",54),e.qZA()()(),e.YNc(80,$t,24,3,"ng-template",null,55,e.W1O)),2&A&&(e.xp6(5),e.Q6J("ngIf",p.isLoggedIn),e.xp6(1),e.Q6J("ngIf",!p.isLoggedIn),e.xp6(1),e.Q6J("ngIf",!p.isCustomDomainActive),e.xp6(1),e.Q6J("ngIf",!p.isCustomDomainActive),e.xp6(1),e.Q6J("ngIf",!p.isCustomDomainActive),e.xp6(1),e.Q6J("ngIf",p.isCustomDomainActive),e.xp6(1),e.Q6J("ngIf",p.isCustomDomainActive),e.xp6(24),e.Q6J("src",p.logo,e.LSH),e.xp6(3),e.Q6J("ngIf",!p.isCustomDomainActive),e.xp6(5),e.Q6J("ngIf",p.profileImage),e.xp6(2),e.hij(" ",null==p.userProfile||null==p.userProfile.data||null==p.userProfile.data.profile?null:p.userProfile.data.profile.name," "),e.xp6(1),e.s9C("matTooltip",p.shouldShowTooltip((null==p.userProfile||null==p.userProfile.data||null==p.userProfile.data.profile?null:p.userProfile.data.profile.email)||"")?null==p.userProfile||null==p.userProfile.data||null==p.userProfile.data.profile?null:p.userProfile.data.profile.email:""),e.Q6J("matTooltipPosition","left"),e.xp6(1),e.hij(" ",p.truncateText((null==p.userProfile||null==p.userProfile.data||null==p.userProfile.data.profile?null:p.userProfile.data.profile.email)||""),""),e.xp6(17),e.Q6J("ngIf",!p.isCustomDomainActive),e.xp6(2),e.Q6J("ngIf",!p.isCustomDomainActive),e.xp6(4),e.Q6J("ngIf",p.isLoggedIn),e.xp6(1),e.Q6J("ngIf",!p.isLoggedIn),e.xp6(4),e.Q6J("ngIf",!p.isCustomDomainActive),e.xp6(1),e.Q6J("ngIf",!p.isLoggedIn))},dependencies:[C.mk,C.O5,C.tP,C.PC,_e.W0,_e.tN,_e.D8,Z.Ye,Z.rD,Te.S$,Te.u7,Te.mi,Te._K,Te.lb,w.d,k.pp,k.ib,k.yz,k.yK,l.eB,x.Hw,z.gM,r.xw,r.Wh,r.s9,r.yH,j.b8,j.oO,j.Zl,Ne.A,ze,we,Ye,Se,Ge],styles:[".logo[_ngcontent-%COMP%]{height:50px;object-fit:fill}"]}),f})();var fr=s(82918);function yt(f,_){1&f&&(e.TgZ(0,"span"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function dr(f,_){1&f&&(e.TgZ(0,"span"),e.SDv(1,9),e.qZA())}const bt=function(f){return{color:f}};function ar(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.userMenuClick("dashboard"))}),e._UZ(1,"img",8),e.YNc(2,yt,2,0,"span",2),e.YNc(3,dr,2,0,"span",2),e.qZA()}if(2&f){const A=e.oxw();e.s9C("matTooltip",A.isShowText?"":A.dashboardTooltip),e.Q6J("ngStyle",e.VKq(5,bt,"dashboard"===A.activeItem?"#32BF55":"#000000")),e.xp6(1),e.Q6J("src","dashboard"===A.activeItem?"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/dashboardActiveNew/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/dashboardNew/public",e.LSH),e.xp6(1),e.Q6J("ngIf",A.isShowText),e.xp6(1),e.Q6J("ngIf",A.isShowText)}}function vt(f,_){1&f&&(e.TgZ(0,"span"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function qt(f,_){1&f&&(e.TgZ(0,"span"),e.SDv(1,11),e.qZA())}function br(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",10),e.NdJ("click",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.userMenuClick("myFundraisers"))}),e._UZ(1,"img",8),e.YNc(2,vt,2,0,"span",2),e.YNc(3,qt,2,0,"span",2),e.qZA()}if(2&f){const A=e.oxw();e.s9C("matTooltip",A.isShowText?"":A.fundraisersTooltip),e.Q6J("ngStyle",e.VKq(5,bt,"myFundraisers"===A.activeItem?"#32BF55":"#000000")),e.xp6(1),e.Q6J("src","myFundraisers"===A.activeItem?"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/fundraisersActiveNew/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/fundraisersNew/public",e.LSH),e.xp6(1),e.Q6J("ngIf",A.isShowText),e.xp6(1),e.Q6J("ngIf",A.isShowText)}}function lt(f,_){1&f&&(e.TgZ(0,"span"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function De(f,_){1&f&&(e.TgZ(0,"span"),e.SDv(1,14),e.qZA())}function G(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(A);const R=e.oxw(2);return e.KtG(R.userMenuClick("donations"))}),e._UZ(1,"img",8),e.YNc(2,lt,2,0,"span",2),e.YNc(3,De,2,0,"span",2),e.qZA()}if(2&f){const A=e.oxw(2);e.s9C("matTooltip",A.isShowText?"":A.donationsTooltip),e.Q6J("ngStyle",e.VKq(5,bt,"donations"===A.activeItem?"#32BF55":"#000000")),e.xp6(1),e.Q6J("src","donations"===A.activeItem?"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/donationsActiveNew/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/donationsNew/public",e.LSH),e.xp6(1),e.Q6J("ngIf",A.isShowText),e.xp6(1),e.Q6J("ngIf",A.isShowText)}}function U(f,_){if(1&f&&(e.TgZ(0,"div"),e.YNc(1,G,4,7,"button",12),e.qZA()),2&f){const A=e.oxw();e.xp6(1),e.Q6J("ngIf",A.isShowIcon)}}function ne(f,_){1&f&&(e.TgZ(0,"span"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function Re(f,_){1&f&&(e.TgZ(0,"span"),e.SDv(1,17),e.qZA())}function Xe(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",16),e.NdJ("click",function(){e.CHM(A);const R=e.oxw(2);return e.KtG(R.userMenuClick("balance"))}),e._UZ(1,"img",8),e.YNc(2,ne,2,0,"span",2),e.YNc(3,Re,2,0,"span",2),e.qZA()}if(2&f){const A=e.oxw(2);e.s9C("matTooltip",A.isShowText?"":A.balanceTooltip),e.Q6J("ngStyle",e.VKq(5,bt,"balance"===A.activeItem?"#32BF55":"#000000")),e.xp6(1),e.Q6J("src","balance"===A.activeItem?"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/balanceActiveNew/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/balanceNew/public",e.LSH),e.xp6(1),e.Q6J("ngIf",A.isShowText),e.xp6(1),e.Q6J("ngIf",A.isShowText)}}function Nt(f,_){if(1&f&&(e.TgZ(0,"div"),e.YNc(1,Xe,4,7,"button",15),e.qZA()),2&f){const A=e.oxw();e.xp6(1),e.Q6J("ngIf",A.isReceiver&&A.isShowIcon)}}function Pt(f,_){1&f&&(e.TgZ(0,"span"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function Vt(f,_){1&f&&(e.TgZ(0,"span"),e.SDv(1,20),e.qZA())}function Jt(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",19),e.NdJ("click",function(){e.CHM(A);const R=e.oxw(2);return e.KtG(R.userMenuClick("payoutSettings"))}),e._UZ(1,"img",8),e.YNc(2,Pt,2,0,"span",2),e.YNc(3,Vt,2,0,"span",2),e.qZA()}if(2&f){const A=e.oxw(2);e.s9C("matTooltip",A.isShowText?"":A.payoutsettingsTooltip),e.Q6J("ngStyle",e.VKq(5,bt,"payoutSettings"===A.activeItem?"#32BF55":"#000000")),e.xp6(1),e.Q6J("src","payoutSettings"===A.activeItem?"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/payoutSettingsActiveNew/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/payoutSettingsNew/public",e.LSH),e.xp6(1),e.Q6J("ngIf",A.isShowText),e.xp6(1),e.Q6J("ngIf",A.isShowText)}}function kt(f,_){if(1&f&&(e.TgZ(0,"div"),e.YNc(1,Jt,4,7,"button",18),e.qZA()),2&f){const A=e.oxw();e.xp6(1),e.Q6J("ngIf",A.isReceiver&&A.isShowIcon)}}function Me(f,_){1&f&&(e.TgZ(0,"span"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function ut(f,_){1&f&&(e.TgZ(0,"span"),e.SDv(1,22),e.qZA())}function nt(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.userMenuClick("emailSettings"))}),e._UZ(1,"img",8),e.YNc(2,Me,2,0,"span",2),e.YNc(3,ut,2,0,"span",2),e.qZA()}if(2&f){const A=e.oxw();e.s9C("matTooltip",A.isShowText?"":A.emailsettingsTooltip),e.Q6J("ngStyle",e.VKq(5,bt,"emailSettings"===A.activeItem?"#32BF55":"#000000")),e.xp6(1),e.Q6J("src","emailSettings"===A.activeItem?"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/emailSettingsActiveNew/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/emailSettingsNew/public",e.LSH),e.xp6(1),e.Q6J("ngIf",A.isShowText),e.xp6(1),e.Q6J("ngIf",A.isShowText)}}function Ht(f,_){1&f&&(e.TgZ(0,"span"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function pr(f,_){1&f&&(e.TgZ(0,"span"),e.SDv(1,25),e.qZA())}function Lr(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",24),e.NdJ("click",function(){e.CHM(A);const R=e.oxw(2);return e.KtG(R.userMenuClick("customiseFundraisers"))}),e._UZ(1,"img",8),e.YNc(2,Ht,2,0,"span",2),e.YNc(3,pr,2,0,"span",2),e.qZA()}if(2&f){const A=e.oxw(2);e.s9C("matTooltip",A.isShowText?"":A.customisefundraisersTooltip),e.Q6J("ngStyle",e.VKq(5,bt,"customiseFundraisers"===A.activeItem?"#32BF55":"#000000")),e.xp6(1),e.Q6J("src","customiseFundraisers"===A.activeItem?"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/fundraiserBrandingActiveNew/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/fundraiserBrandingNew/public",e.LSH),e.xp6(1),e.Q6J("ngIf",A.isShowText),e.xp6(1),e.Q6J("ngIf",A.isShowText)}}function Kr(f,_){if(1&f&&(e.TgZ(0,"div"),e.YNc(1,Lr,4,7,"button",23),e.qZA()),2&f){const A=e.oxw();e.xp6(1),e.Q6J("ngIf",A.isShowIcon)}}function Cn(f,_){1&f&&(e.TgZ(0,"span"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function Wn(f,_){1&f&&(e.TgZ(0,"span"),e.SDv(1,28),e.qZA())}function zn(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){e.CHM(A);const R=e.oxw(2);return e.KtG(R.userMenuClick("customiseEmails"))}),e._UZ(1,"img",8),e.YNc(2,Cn,2,0,"span",2),e.YNc(3,Wn,2,0,"span",2),e.qZA()}if(2&f){const A=e.oxw(2);e.s9C("matTooltip",A.isShowText?"":A.customiseemailsTooltip),e.Q6J("ngStyle",e.VKq(5,bt,"customiseEmails"===A.activeItem?"#32BF55":"#000000")),e.xp6(1),e.Q6J("src","customiseEmails"===A.activeItem?"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/emailBrandingActiveNew/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/emailBrandingNew/public",e.LSH),e.xp6(1),e.Q6J("ngIf",A.isShowText),e.xp6(1),e.Q6J("ngIf",A.isShowText)}}function ti(f,_){if(1&f&&(e.TgZ(0,"div"),e.YNc(1,zn,4,7,"button",26),e.qZA()),2&f){const A=e.oxw();e.xp6(1),e.Q6J("ngIf",A.isShowIcon)}}function yr(f,_){1&f&&(e.TgZ(0,"span"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function Jr(f,_){1&f&&(e.TgZ(0,"span"),e.SDv(1,31),e.qZA())}function wt(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",30),e.NdJ("click",function(){e.CHM(A);const R=e.oxw(2);return e.KtG(R.userMenuClick("customiseReceipts"))}),e._UZ(1,"img",8),e.YNc(2,yr,2,0,"span",2),e.YNc(3,Jr,2,0,"span",2),e.qZA()}if(2&f){const A=e.oxw(2);e.s9C("matTooltip",A.isShowText?"":A.customisereceiptsTooltip),e.Q6J("ngStyle",e.VKq(5,bt,"customiseReceipts"===A.activeItem?"#32BF55":"#000000")),e.xp6(1),e.Q6J("src","customiseReceipts"===A.activeItem?"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/receiptBrandingActiveNew/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/receiptBrandingNew/public",e.LSH),e.xp6(1),e.Q6J("ngIf",A.isShowText),e.xp6(1),e.Q6J("ngIf",A.isShowText)}}function nr(f,_){if(1&f&&(e.TgZ(0,"div"),e.YNc(1,wt,4,7,"button",29),e.qZA()),2&f){const A=e.oxw();e.xp6(1),e.Q6J("ngIf",A.isShowIcon)}}function tn(f,_){1&f&&(e.TgZ(0,"span"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function rn(f,_){1&f&&(e.TgZ(0,"span"),e.SDv(1,34),e.qZA())}function vn(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",33),e.NdJ("click",function(){e.CHM(A);const R=e.oxw(2);return e.KtG(R.userMenuClick("qrCode"))}),e._UZ(1,"img",8),e.YNc(2,tn,2,0,"span",2),e.YNc(3,rn,2,0,"span",2),e.qZA()}if(2&f){const A=e.oxw(2);e.s9C("matTooltip",A.isShowText?"":A.payoutsettingsTooltip),e.Q6J("ngStyle",e.VKq(5,bt,"qrCode"===A.activeItem?"#32BF55":"#000000")),e.xp6(1),e.Q6J("src","qrCode"===A.activeItem?"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/qrNavActive/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/qrNavigation/public",e.LSH),e.xp6(1),e.Q6J("ngIf",A.isShowText),e.xp6(1),e.Q6J("ngIf",A.isShowText)}}function Gn(f,_){if(1&f&&(e.TgZ(0,"div"),e.YNc(1,vn,4,7,"button",32),e.qZA()),2&f){const A=e.oxw();e.xp6(1),e.Q6J("ngIf",A.isReceiver&&A.isShowIcon)}}function Yn(f,_){1&f&&(e.TgZ(0,"span"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function Dn(f,_){1&f&&(e.TgZ(0,"span"),e.SDv(1,36),e.qZA())}function Ti(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",35),e.NdJ("click",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.userMenuClick("widget"))}),e._UZ(1,"img",8),e.YNc(2,Yn,2,0,"span",2),e.YNc(3,Dn,2,0,"span",2),e.qZA()}if(2&f){const A=e.oxw();e.s9C("matTooltip",A.isShowText?"":A.widgetTooltip),e.Q6J("ngStyle",e.VKq(5,bt,"widget"===A.activeItem?"#32BF55":"#000000")),e.xp6(1),e.Q6J("src","widget"===A.activeItem?"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/widgetsActiveNew/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/widgetsNew/public",e.LSH),e.xp6(1),e.Q6J("ngIf",A.isShowText),e.xp6(1),e.Q6J("ngIf",A.isShowText&&A.showWidgetText)}}function Ni(f,_){1&f&&(e.TgZ(0,"span"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function ci(f,_){1&f&&(e.TgZ(0,"span"),e.SDv(1,38),e.qZA())}function Kt(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",37),e.NdJ("click",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.userMenuClick("zapier"))}),e._UZ(1,"img",8),e.YNc(2,Ni,2,0,"span",2),e.YNc(3,ci,2,0,"span",2),e.qZA()}if(2&f){const A=e.oxw();e.s9C("matTooltip",A.isShowText?"":A.apikeyTooltip),e.Q6J("ngStyle",e.VKq(5,bt,"zapier"===A.activeItem?"#32BF55":"#000000")),e.xp6(1),e.Q6J("src","zapier"===A.activeItem?"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/integrateZapierActiveNew/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/integrateZapierNew/public",e.LSH),e.xp6(1),e.Q6J("ngIf",A.isShowText),e.xp6(1),e.Q6J("ngIf",A.isShowText)}}function Ar(f,_){1&f&&(e.TgZ(0,"span"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function ie(f,_){1&f&&(e.TgZ(0,"span"),e.SDv(1,40),e.qZA())}function Ve(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",39),e.NdJ("click",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.userMenuClick("apiKey"))}),e._UZ(1,"img",8),e.YNc(2,Ar,2,0,"span",2),e.YNc(3,ie,2,0,"span",2),e.qZA()}if(2&f){const A=e.oxw();e.s9C("matTooltip",A.isShowText?"":A.apikeyTooltip),e.Q6J("ngStyle",e.VKq(5,bt,"apiKey"===A.activeItem?"#32BF55":"#000000")),e.xp6(1),e.Q6J("src","apiKey"===A.activeItem?"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/apiKeyActiveNew/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/apiKeyNew/public",e.LSH),e.xp6(1),e.Q6J("ngIf",A.isShowText),e.xp6(1),e.Q6J("ngIf",A.isShowText)}}function Mt(f,_){1&f&&(e.TgZ(0,"span"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function tr(f,_){1&f&&(e.TgZ(0,"span"),e.SDv(1,43),e.qZA())}function kr(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"button",42),e.NdJ("click",function(){e.CHM(A);const R=e.oxw(2);return e.KtG(R.userMenuClick("custom-domain"))}),e._UZ(1,"img",8),e.YNc(2,Mt,2,0,"span",2),e.YNc(3,tr,2,0,"span",2),e.qZA()}if(2&f){const A=e.oxw(2);e.s9C("matTooltip",A.isShowText?"":A.apikeyTooltip),e.Q6J("ngStyle",e.VKq(5,bt,"custom-domain"===A.activeItem?"#32BF55":"#000000")),e.xp6(1),e.Q6J("src","custom-domain"===A.activeItem?"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/customDomainNewActive/public":"https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/customDomainNew/public",e.LSH),e.xp6(1),e.Q6J("ngIf",A.isShowText),e.xp6(1),e.Q6J("ngIf",A.isShowText)}}function mn(f,_){if(1&f&&(e.TgZ(0,"div"),e.YNc(1,kr,4,7,"button",41),e.qZA()),2&f){const A=e.oxw();e.xp6(1),e.Q6J("ngIf",A.isShowIcon)}}let un=(()=>{class f{constructor(A,p,R,ce,Ie,Je){this.router=A,this.sidenavService=p,this._dashboardService=R,this._accountService=ce,this._bankService=Ie,this.fundraiserService=Je,this.isShowText=!1,this.isShowIcon=!1,this.isReceiver=!0,this.activeItem="",this.dashboardTooltip="Nadzorna Plo\u010Da",this.fundraisersTooltip="Moje sakuplja\u010Di sredstava",this.donationsTooltip="Donacija",this.balanceTooltip="Ravnote\u017Ea",this.payoutsettingsTooltip="Postavke isplate",this.emailsettingsTooltip="Postavke E-po\u0161te",this.customisefundraisersTooltip="Brendiranje Sakupljanja",this.customiseemailsTooltip="Brendiranje E-po\u0161te",this.customisereceiptsTooltip="Brendiranje Ra\u010Duna",this.apikeyTooltip="API-Klju\u010D",this.widgetTooltip="Widgeti",this.parentFundraiserCount=0,this.stripeStatus={},this.stripeNotificationCheck=!1,this.showWidgetText=!1,this.showWidgetIcon=!1}ngOnInit(){this.fundraiserService.getUserFundraiserListByApiKey("").subscribe(A=>{Array.isArray(A.data)||(A.data=[]),A.data.length>0&&(this.showWidgetIcon=!0,this.showWidgetText=!0)}),this.getActiveItem(),this.sidenavService.isShowText.subscribe(A=>{this.isShowText=A}),this.sidenavService.isShowIcon.subscribe(A=>{this.isShowIcon=A}),this._dashboardService.getFundraiserSummary().subscribe(A=>{this.parentFundraiserCount=A?.data?.parent||0}),this._accountService.checkHeaders()&&(this._bankService.getStripeStatus().subscribe(A=>{this.stripeStatus=A?.data,this.stripeNotificationCheck=1==this.stripeStatus?.charges_enabled&&1==this.stripeStatus?.payout_enabled&&1==this.stripeStatus?.details_submitted}),this._dashboardService.getFundraiserSummary().subscribe(A=>{this.parentFundraiserCount=A?.data?.parent||0}))}getActiveItem(){this.router.events.subscribe(A=>{A instanceof d.m2&&(this.activeItem=A.url.includes("/dashboard")?"dashboard":A.url.includes("/my-fundraisers")?"myFundraisers":A.url.includes("/balance")?"balance":A.url.includes("/profile/payout-settings")?"payoutSettings":A.url.includes("/profile/email")?"emailSettings":A.url.includes("/custom-branding#branding")?"customiseFundraisers":A.url.includes("/custom-branding/email")?"customiseEmails":A.url.includes("/custom-branding/receipt")?"customiseReceipts":A.url.includes("/profile/api")?"apiKey":A.url.includes("/custom-domain")?"custom-domain":A.url.includes("/fundraising/widget")?"widget":A.url.includes("/donations")?"donations":A.url.includes("/profile/zapier")?"zapier":A.url.includes("/custom-branding/qrcode")?"qrCode":"")})}userMenuClick(A){switch(this.activeItem=A,A.toLowerCase()){case"dashboard":this.router.navigate(["/dashboard"]);break;case"myfundraisers":this.router.navigate(["/my-fundraisers"]);break;case"balance":this.router.navigate(["/balance"]);break;case"payoutsettings":this.router.navigate(["/profile/payout-settings"]);break;case"emailsettings":this.router.navigate(["/profile/email"]);break;case"customisefundraisers":this.routeToBranding();break;case"customiseemails":this.routeToEmail();break;case"custom branding":this.router.navigate(["/custom-branding"]);break;case"customisereceipts":case"embedplugin":this.routeToReceipt();break;case"apikey":this.router.navigate(["/profile/api"]);break;case"custom-domain":this.router.navigate(["/custom-domain"]);break;case"zapier":this.router.navigate(["/profile/zapier"]);break;case"widget":this.router.navigate(["/fundraising/widget"]);break;case"donations":this.router.navigate(["/donations"]);break;case"qrcode":this.routeToQrCode()}this.isMobileViewPort()&&this.closeSidenav()}routeToBranding(){this.router.navigate(["custom-branding"],{fragment:"branding"})}routeToQrCode(){this.router.navigate(["custom-branding/qrcode"])}routeToEmail(){this.router.navigate(["custom-branding/email"])}routeToReceipt(){this.router.navigate(["custom-branding/receipt"])}isMobileViewPort(){return window.innerWidth<420}closeSidenav(){this.isShowText=!this.isShowText,this.isShowIcon=!this.isShowIcon,this.sidenavService.toggleSidenav(this.isShowText,this.isShowIcon)}}return f.\u0275fac=function(A){return new(A||f)(e.Y36(d.F0),e.Y36(he),e.Y36(ee.s),e.Y36(I.B),e.Y36(W.y),e.Y36(Le.R))},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-sidenav"]],decls:15,vars:14,consts:function(){let _,A,p,R,ce,Ie,Je,At,Gt,ir,vr,Nr,wr,Tr;return _="Nadzorna Plo\u010Da",A="Sakuplja\u010Di Sredstava",p="Donacija",R="Ravnote\u017Ea",ce="Postavke isplate",Ie="Postavke E-po\u0161te",Je="Brendiranje Sakupljanja",At="Brendiranje E-po\u0161te",Gt="Brendiranje Ra\u010Duna",ir="Prilagodite QR kod",vr="Widgeti",Nr="Integrirajte Zapier",wr="API-Klju\u010D",Tr="Prilago\u0111ena Domena",[["mat-menu-item","","id","headerDashboard","matTooltipPosition","right",3,"ngStyle","matTooltip","click",4,"ngIf"],["mat-menu-item","","id","headerMyFundraisers","matTooltipPosition","right",3,"ngStyle","matTooltip","click",4,"ngIf"],[4,"ngIf"],["mat-menu-item","","id","headerEmailSettings","matTooltipPosition","right",3,"ngStyle","matTooltip","click",4,"ngIf"],["mat-menu-item","","id","headerWidgets","matTooltipPosition","right",3,"ngStyle","matTooltip","click",4,"ngIf"],["mat-menu-item","","id","headerApiKey","matTooltipPosition","right",3,"ngStyle","matTooltip","click",4,"ngIf"],["mat-menu-item","","id","wordPressApiKey","matTooltipPosition","right",3,"ngStyle","matTooltip","click",4,"ngIf"],["mat-menu-item","","id","headerDashboard","matTooltipPosition","right",3,"ngStyle","matTooltip","click"],[1,"icon-position",3,"src"],_,["mat-menu-item","","id","headerMyFundraisers","matTooltipPosition","right",3,"ngStyle","matTooltip","click"],A,["mat-menu-item","","matTooltipPosition","right",3,"ngStyle","matTooltip","click",4,"ngIf"],["mat-menu-item","","matTooltipPosition","right",3,"ngStyle","matTooltip","click"],p,["mat-menu-item","","id","headerBalance","matTooltipPosition","right",3,"ngStyle","matTooltip","click",4,"ngIf"],["mat-menu-item","","id","headerBalance","matTooltipPosition","right",3,"ngStyle","matTooltip","click"],R,["mat-menu-item","","id","headerPayoutSettings","matTooltipPosition","right",3,"ngStyle","matTooltip","click",4,"ngIf"],["mat-menu-item","","id","headerPayoutSettings","matTooltipPosition","right",3,"ngStyle","matTooltip","click"],ce,["mat-menu-item","","id","headerEmailSettings","matTooltipPosition","right",3,"ngStyle","matTooltip","click"],Ie,["mat-menu-item","","class","customBranding","id","headerCustomBranding","matTooltipPosition","right",3,"ngStyle","matTooltip","click",4,"ngIf"],["mat-menu-item","","id","headerCustomBranding","matTooltipPosition","right",1,"customBranding",3,"ngStyle","matTooltip","click"],Je,["mat-menu-item","","id","headerCustomiseEmails","matTooltipPosition","right",3,"ngStyle","matTooltip","click",4,"ngIf"],["mat-menu-item","","id","headerCustomiseEmails","matTooltipPosition","right",3,"ngStyle","matTooltip","click"],At,["mat-menu-item","","id","headerReceipt","matTooltipPosition","right",3,"ngStyle","matTooltip","click",4,"ngIf"],["mat-menu-item","","id","headerReceipt","matTooltipPosition","right",3,"ngStyle","matTooltip","click"],Gt,["mat-menu-item","","id","qrCodeSettings","matTooltipPosition","right",3,"ngStyle","matTooltip","click",4,"ngIf"],["mat-menu-item","","id","qrCodeSettings","matTooltipPosition","right",3,"ngStyle","matTooltip","click"],ir,["mat-menu-item","","id","headerWidgets","matTooltipPosition","right",3,"ngStyle","matTooltip","click"],vr,["mat-menu-item","","id","headerApiKey","matTooltipPosition","right",3,"ngStyle","matTooltip","click"],Nr,["mat-menu-item","","id","wordPressApiKey","matTooltipPosition","right",3,"ngStyle","matTooltip","click"],wr,["mat-menu-item","","id","headerCustomDomain","matTooltipPosition","right",3,"ngStyle","matTooltip","click",4,"ngIf"],["mat-menu-item","","id","headerCustomDomain","matTooltipPosition","right",3,"ngStyle","matTooltip","click"],Tr]},template:function(A,p){1&A&&(e.TgZ(0,"mat-list"),e.YNc(1,ar,4,7,"button",0),e.YNc(2,br,4,7,"button",1),e.YNc(3,U,2,1,"div",2),e.YNc(4,Nt,2,1,"div",2),e.YNc(5,kt,2,1,"div",2),e.YNc(6,nt,4,7,"button",3),e.YNc(7,Kr,2,1,"div",2),e.YNc(8,ti,2,1,"div",2),e.YNc(9,nr,2,1,"div",2),e.YNc(10,Gn,2,1,"div",2),e.YNc(11,Ti,4,7,"button",4),e.YNc(12,Kt,4,7,"button",5),e.YNc(13,Ve,4,7,"button",6),e.YNc(14,mn,2,1,"div",2),e.qZA()),2&A&&(e.xp6(1),e.Q6J("ngIf",p.isShowIcon),e.xp6(1),e.Q6J("ngIf",p.isShowIcon),e.xp6(1),e.Q6J("ngIf",p.parentFundraiserCount>0),e.xp6(1),e.Q6J("ngIf",p.parentFundraiserCount>0),e.xp6(1),e.Q6J("ngIf",p.parentFundraiserCount>0),e.xp6(1),e.Q6J("ngIf",p.isReceiver&&p.isShowIcon),e.xp6(1),e.Q6J("ngIf",p.parentFundraiserCount>0),e.xp6(1),e.Q6J("ngIf",p.parentFundraiserCount>0),e.xp6(1),e.Q6J("ngIf",p.parentFundraiserCount>0),e.xp6(1),e.Q6J("ngIf",p.parentFundraiserCount>0),e.xp6(1),e.Q6J("ngIf",p.isShowIcon&&p.showWidgetIcon),e.xp6(1),e.Q6J("ngIf",p.isShowIcon),e.xp6(1),e.Q6J("ngIf",p.isShowIcon),e.xp6(1),e.Q6J("ngIf",p.parentFundraiserCount>0))},dependencies:[C.O5,C.PC,_e.tN,fr.Zj,z.gM,j.Zl],styles:[".sidenav-icon[_ngcontent-%COMP%]{padding-right:4px}mat-list-item[_ngcontent-%COMP%]:hover, mat-list-item[_ngcontent-%COMP%]:active, mat-list-item[_ngcontent-%COMP%]:visited{background-color:#d3d3d3}"]}),f})();var ri=s(68550);let Sr=(()=>{class f{constructor(A,p,R){this.router=A,this.accountService=p,this.analyticsService=R,this.languageMap={nl:"/nl",en:"/en",es:"/es",de:"/de",fr:"/fr",bg:"/bg",hr:"/hr",cs:"/cs",da:"/da",fi:"/fi",el:"/el",hu:"/hu",it:"/it",pl:"/pl",pt:"/pt",ro:"/ro",sk:"/sk",sv:"/sv",uk:"/uk"},this.locale="nl",this.languageIcon="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/nl1/public",this.languageCode=""}ngOnInit(){this.setLanguageInFooter(),this.locale=this.getLocaleFromAddressBar(),this.updateOrSetLocaleCookie(this.locale),this.analyticsService.setZarazLanguage(),V.w.setUserlanguage(this.locale)}getLocaleFromAddressBar(){const p=window.location.pathname.split("/")[1];return this.languageMap[p]?p:"nl"}changeLanguage(A){this.updateOrSetLocaleCookie(A),this.analyticsService.setZarazLanguage(),V.w.setUserlanguage(A);const p=Object.keys(this.languageMap).find(R=>A.includes(R))||"nl";window.location.href=this.languageMap[p]+this.router.url,this.setLanguageInFooter()}setLanguageInFooter(){switch(!0){case window.location.pathname.includes("/nl"):this.locale="nl";break;case window.location.pathname.includes("/es"):this.locale="es";break;case window.location.pathname.includes("/de"):this.locale="de";break;case window.location.pathname.includes("/fr"):this.locale="fr";break;case window.location.pathname.includes("/en"):this.locale="en";break;case window.location.pathname.includes("/bg"):this.locale="bg";break;case window.location.pathname.includes("/hr"):this.locale="hr";break;case window.location.pathname.includes("/cs"):this.locale="cs";break;case window.location.pathname.includes("/da"):this.locale="da";break;case window.location.pathname.includes("/fi"):this.locale="fi";break;case window.location.pathname.includes("/el"):this.locale="el";break;case window.location.pathname.includes("/hu"):this.locale="hu";break;case window.location.pathname.includes("/it"):this.locale="it";break;case window.location.pathname.includes("/pl"):this.locale="pl";break;case window.location.pathname.includes("/pt"):this.locale="pt";break;case window.location.pathname.includes("/ro"):this.locale="ro";break;case window.location.pathname.includes("/sk"):this.locale="sk";break;case window.location.pathname.includes("/sv"):this.locale="sv";break;case window.location.pathname.includes("/uk"):this.locale="uk";break;default:this.locale="nl"}this.languageIcon="https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/"+this.locale?.substring(0,2).toLowerCase()+"1/public"}updateOrSetLocaleCookie(A){try{this.getCookie("WD_locale"),this.setCookie("WD_locale",A)}catch(p){console.error("Error while managing the WD_locale cookie:",p?.message)}}getCookie(A){const p=document.cookie.split(";");for(const R of p){const[ce,Ie]=R.trim().split("=");if(ce===A)return decodeURIComponent(Ie)}return null}setCookie(A,p){document.cookie=`${A}=${encodeURIComponent(p)}; path=/`}}return f.\u0275fac=function(A){return new(A||f)(e.Y36(d.F0),e.Y36(I.B),e.Y36(ri.y))},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-language-chooser"]],inputs:{languageCode:"languageCode"},decls:64,vars:5,consts:function(){let _,A,p,R,ce,Ie,Je,At,Gt,ir,vr,Nr,wr,Tr,jr,_n,sn,Sn,Nn;return _="EN - English",A="NL - Nederlands",p="ES - Espa\xF1ol",R="DE - Deutsch",ce="FR - Fran\xE7ais",Ie="BG - Bulgarian",Je="HR - Croatian",At="CS - Czech",Gt="DA - Danish",ir="FI - Finnish",vr="EL - Greek",Nr="HU - Hungarian",wr="IT - Italian",Tr="PL - Polish",jr="PT - Portuguese",_n="RO - Romanian",sn="SK - Slovak",Sn="SV - Swedish",Nn="UK - Ukranian",[["mat-button","","color","primary",1,"language-chooser",3,"matMenuTriggerFor"],["width","28px",1,"default_icon",3,"src"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/keyboard_arrow_down/public"],[1,"translationMenuContainerDropDown"],["menu","matMenu"],["mat-menu-item","",1,"enChooser",3,"click"],["id","languageChooser_en_button"],_,["mat-menu-item","",1,"nlChooser",3,"click"],["id","languageChooser_nl_button"],A,["mat-menu-item","",1,"esChooser",3,"click"],["id","languageChooser_es_button"],p,["mat-menu-item","",1,"deChooser",3,"click"],["id","languageChooser_de_button"],R,["mat-menu-item","",1,"frChooser",3,"click"],["id","languageChooser_fr_button"],ce,["mat-menu-item","",1,"bgChooser",3,"click"],["id","languageChooser_bg_button"],Ie,["mat-menu-item","",1,"hrChooser",3,"click"],["id","languageChooser_hr_button"],Je,["mat-menu-item","",1,"csChooser",3,"click"],["id","languageChooser_cs_button"],At,["mat-menu-item","",1,"daChooser",3,"click"],["id","languageChooser_da_button"],Gt,["mat-menu-item","",1,"fiChooser",3,"click"],["id","languageChooser_fi_button"],ir,["mat-menu-item","",1,"elChooser",3,"click"],["id","languageChooser_el_button"],vr,["mat-menu-item","",1,"huChooser",3,"click"],["id","languageChooser_hu_button"],Nr,["mat-menu-item","",1,"itChooser",3,"click"],["id","languageChooser_it_button"],wr,["mat-menu-item","",1,"plChooser",3,"click"],["id","languageChooser_pl_button"],Tr,["mat-menu-item","",1,"ptChooser",3,"click"],["id","languageChooser_pt_button"],jr,["mat-menu-item","",1,"roChooser",3,"click"],["id","languageChooser_ro_button"],_n,["mat-menu-item","",1,"skChooser",3,"click"],["id","languageChooser_sk_button"],sn,["mat-menu-item","",1,"svChooser",3,"click"],["id","languageChooser_sv_button"],Sn,["mat-menu-item","",1,"ukChooser",3,"click"],["id","languageChooser_uk_button"],Nn]},template:function(A,p){if(1&A&&(e.TgZ(0,"button",0),e._UZ(1,"img",1),e._uU(2),e.ALo(3,"titlecase"),e._UZ(4,"img",2),e.qZA(),e.TgZ(5,"mat-menu",3,4)(7,"button",5),e.NdJ("click",function(){return p.changeLanguage("en")}),e.TgZ(8,"span",6),e.SDv(9,7),e.qZA()(),e.TgZ(10,"button",8),e.NdJ("click",function(){return p.changeLanguage("nl")}),e.TgZ(11,"span",9),e.SDv(12,10),e.qZA()(),e.TgZ(13,"button",11),e.NdJ("click",function(){return p.changeLanguage("es")}),e.TgZ(14,"span",12),e.SDv(15,13),e.qZA()(),e.TgZ(16,"button",14),e.NdJ("click",function(){return p.changeLanguage("de")}),e.TgZ(17,"span",15),e.SDv(18,16),e.qZA()(),e.TgZ(19,"button",17),e.NdJ("click",function(){return p.changeLanguage("fr")}),e.TgZ(20,"span",18),e.SDv(21,19),e.qZA()(),e.TgZ(22,"button",20),e.NdJ("click",function(){return p.changeLanguage("bg")}),e.TgZ(23,"span",21),e.SDv(24,22),e.qZA()(),e.TgZ(25,"button",23),e.NdJ("click",function(){return p.changeLanguage("hr")}),e.TgZ(26,"span",24),e.SDv(27,25),e.qZA()(),e.TgZ(28,"button",26),e.NdJ("click",function(){return p.changeLanguage("cs")}),e.TgZ(29,"span",27),e.SDv(30,28),e.qZA()(),e.TgZ(31,"button",29),e.NdJ("click",function(){return p.changeLanguage("da")}),e.TgZ(32,"span",30),e.SDv(33,31),e.qZA()(),e.TgZ(34,"button",32),e.NdJ("click",function(){return p.changeLanguage("fi")}),e.TgZ(35,"span",33),e.SDv(36,34),e.qZA()(),e.TgZ(37,"button",35),e.NdJ("click",function(){return p.changeLanguage("el")}),e.TgZ(38,"span",36),e.SDv(39,37),e.qZA()(),e.TgZ(40,"button",38),e.NdJ("click",function(){return p.changeLanguage("hu")}),e.TgZ(41,"span",39),e.SDv(42,40),e.qZA()(),e.TgZ(43,"button",41),e.NdJ("click",function(){return p.changeLanguage("it")}),e.TgZ(44,"span",42),e.SDv(45,43),e.qZA()(),e.TgZ(46,"button",44),e.NdJ("click",function(){return p.changeLanguage("pl")}),e.TgZ(47,"span",45),e.SDv(48,46),e.qZA()(),e.TgZ(49,"button",47),e.NdJ("click",function(){return p.changeLanguage("pt")}),e.TgZ(50,"span",48),e.SDv(51,49),e.qZA()(),e.TgZ(52,"button",50),e.NdJ("click",function(){return p.changeLanguage("ro")}),e.TgZ(53,"span",51),e.SDv(54,52),e.qZA()(),e.TgZ(55,"button",53),e.NdJ("click",function(){return p.changeLanguage("sk")}),e.TgZ(56,"span",54),e.SDv(57,55),e.qZA()(),e.TgZ(58,"button",56),e.NdJ("click",function(){return p.changeLanguage("sv")}),e.TgZ(59,"span",57),e.SDv(60,58),e.qZA()(),e.TgZ(61,"button",59),e.NdJ("click",function(){return p.changeLanguage("uk")}),e.TgZ(62,"span",60),e.SDv(63,61),e.qZA()()()),2&A){const R=e.MAs(6);e.Q6J("matMenuTriggerFor",R),e.xp6(1),e.s9C("src",p.languageIcon,e.LSH),e.xp6(1),e.hij(" ",e.lcZ(3,3,p.locale)," ")}},dependencies:[_e.W0,_e.tN,_e.D8,l.eB,C.rS],styles:[".default_icon[_ngcontent-%COMP%]{width:28px;height:28px}.language-chooser[_ngcontent-%COMP%]{color:#000;text-align:left;padding:0}"]}),f})(),Er=(()=>{class f{constructor(A){this._accountService=A,this.ratings="recenzije",this.currentLocale=""}ngOnInit(){this.currentLocale=this._accountService.getLocaleId(),this.ratingsHref=`${tt_homeUrl}/${this.currentLocale}/${this.ratings}/`}}return f.\u0275fac=function(A){return new(A||f)(e.Y36(I.B))},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-ratings"]],decls:7,vars:2,consts:function(){let _;return _="4,8 / 5 prosje\u010Dna ocjena recenzije",[["fxLayout","column","fxLayout.lt-md","column","fxFlex","100%","fxLayoutAlign","start start","ngClass.lt-md","p-t-s p-b-s"],["fxLayout","column","fxLayoutAlign","start start"],[3,"href"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/ratingsFooter/public"],[1,"break-word",3,"href"],_]},template:function(A,p){1&A&&(e.TgZ(0,"div",0)(1,"div",1)(2,"a",2),e._UZ(3,"img",3),e.qZA(),e.TgZ(4,"a",4),e.tHW(5,5),e._UZ(6,"br"),e.N_p(),e.qZA()()()),2&A&&(e.xp6(2),e.Q6J("href",p.ratingsHref,e.LSH),e.xp6(2),e.Q6J("href",p.ratingsHref,e.LSH))},dependencies:[r.xw,r.Wh,r.yH,j.oO],styles:[".footer-background[_ngcontent-%COMP%]{background-color:#f4f6f7}.minimal-footer[_ngcontent-%COMP%]{padding:8px;background-color:#f4f6f7}a[_ngcontent-%COMP%]{text-decoration:none;color:#000;padding:8px;white-space:nowrap}a[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.04)}.flag[_ngcontent-%COMP%]{width:24px;height:24px}.minimal-footer-logo[_ngcontent-%COMP%]{width:50%;height:50%}.footer-titles[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:20px;font-weight:500}.footer-no-wrap[_ngcontent-%COMP%]{white-space:nowrap}"]}),f})(),Ot=(()=>{class f{constructor(A){this.http=A}ngOnInit(){}}return f.\u0275fac=function(A){return new(A||f)(e.Y36(Ee.JF))},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-logo-app-links"]],decls:19,vars:0,consts:function(){let _,A;return _="Odaberite Jezik",A="Slijedite nas",[["fxLayout","column","fxLayoutAlign","start start","fxLayoutGap","5%"],["ngClass","p-l-xs"],["src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/WhyDonatesSVG/public"],["ngClass","p-l-xs",1,"footer-titles","mat-title"],_,A,["fxFlex","100","fxLayout","row","fxLayoutAlign"," start start "],["target","_blank","href","https://www.instagram.com/whydonatenl/",1,"insta"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/insta/public"],["target","_blank","href","https://www.X.com/whydonate",1,"twitter"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/x/public"],["target","_blank","href","https://www.linkedin.com/company/whydonate",1,"linkedIn"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/linkedin/public"],["target","_blank","href","https://www.facebook.com/whydonate",1,"facebook"],["src","https://whydonate.com/cdn-cgi/imagedelivery/_0vgnXOEIHPwLg2E52a7gg/shared/fb/public"],["fxFlex.gt-md","30%","fxFlex.gt-sm","18%"]]},template:function(A,p){1&A&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"img",2),e.qZA(),e.TgZ(3,"span",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"div",1),e._UZ(6,"app-language-chooser"),e.qZA(),e.TgZ(7,"span",3),e.SDv(8,5),e.qZA(),e.TgZ(9,"div",6)(10,"a",7),e._UZ(11,"img",8),e.qZA(),e.TgZ(12,"a",9),e._UZ(13,"img",10),e.qZA(),e.TgZ(14,"a",11),e._UZ(15,"img",12),e.qZA(),e.TgZ(16,"a",13),e._UZ(17,"img",14),e.qZA()(),e._UZ(18,"app-ratings",15),e.qZA())},dependencies:[C.mk,r.xw,r.SQ,r.Wh,r.yH,j.oO,Sr,Er],styles:[".footer-background[_ngcontent-%COMP%]{background-color:#f4f6f7}.minimal-footer[_ngcontent-%COMP%]{padding:8px;background-color:#f4f6f7}a[_ngcontent-%COMP%]{text-decoration:none;color:#000;padding:8px;white-space:nowrap}a[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.04)}.flag[_ngcontent-%COMP%]{width:24px;height:24px}.minimal-footer-logo[_ngcontent-%COMP%]{width:50%;height:50%}.footer-titles[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:20px;font-weight:500}.footer-no-wrap[_ngcontent-%COMP%]{white-space:nowrap}"]}),f})(),lr=(()=>{class f{constructor(A,p){this._accountService=A,this.analyticsService=p,this.termsAndCondition="uvjeti-i-odredbe",this.privacy="Privatnost-i-kola\u010Di\u0107i",this.currentLocale=""}ngOnInit(){this.currentLocale=this._accountService.getLocaleId(),this.termsHref=`${tt_homeUrl}/${this.currentLocale}/${this.termsAndCondition}/`,this.privacyHref=`${tt_homeUrl}/${this.currentLocale}/${this.privacy}/`,this.copyrightHref=`${tt_homeUrl}/${this.currentLocale}/`}openCookieSettings(){this.analyticsService.openCookieSettings()}}return f.\u0275fac=function(A){return new(A||f)(e.Y36(I.B),e.Y36(ri.y))},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-copyright"]],decls:18,vars:3,consts:function(){let _,A,p,R;return _="Privatnost i kola\u010Di\u0107i |",A="Uvjeti i odredbe |",p="\xA9 2012-2025 WhyDonate",R="Postavke Kola\u010Di\u0107a",[["fxlayout","column","fxLayoutAlign.gt-sm","space-between center ","ngClass.gt-sm","p-t-xs"],["fxlayout","column","fxLayoutGap","2%"],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutAlign","space-between center","fxLayoutAlign.sm","start start","fxLayoutAlign.xs","start start","fxLayoutGap","2%",1,"div3"],["mat-button","",3,"href"],_,A,p,["mat-button","",3,"click"],R,["fxlayout","column","fxLayoutAlign","start center","fxLayoutGap","2%","ngClass.lt-md","p-t-m p-l-xs"],["fxFlex","50","src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/StripePartnerBadge/public"],["fxFlex","10","src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/iso/public"],["fxFlex","10","src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/SSL/public"]]},template:function(A,p){1&A&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3),e.SDv(4,4),e.qZA(),e.TgZ(5,"a",3),e.SDv(6,5),e.qZA(),e.TgZ(7,"a",3),e.SDv(8,6),e.qZA(),e.TgZ(9,"a",7),e.NdJ("click",function(){return p.openCookieSettings()}),e.TgZ(10,"mat-icon"),e._uU(11,"cookie"),e.qZA(),e.TgZ(12,"span"),e.SDv(13,8),e.qZA()()()(),e.TgZ(14,"div",9),e._UZ(15,"img",10)(16,"img",11)(17,"img",12),e.qZA()()),2&A&&(e.xp6(3),e.Q6J("href",p.privacyHref,e.LSH),e.xp6(2),e.Q6J("href",p.termsHref,e.LSH),e.xp6(2),e.Q6J("href",p.copyrightHref,e.LSH))},dependencies:[l.Nr,x.Hw,r.xw,r.SQ,r.Wh,r.yH,j.oO],styles:[".footer-background[_ngcontent-%COMP%]{background-color:#f4f6f7}.minimal-footer[_ngcontent-%COMP%]{padding:8px;background-color:#f4f6f7}a[_ngcontent-%COMP%]{text-decoration:none;color:#000;padding:8px;white-space:nowrap}a[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.04)}.flag[_ngcontent-%COMP%]{width:24px;height:24px}.minimal-footer-logo[_ngcontent-%COMP%]{width:50%;height:50%}.footer-titles[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:20px;font-weight:500}.footer-no-wrap[_ngcontent-%COMP%]{white-space:nowrap}"]}),f})();function Cr(f,_){1&f&&(e.TgZ(0,"div",2)(1,"div",3)(2,"div",4),e._UZ(3,"app-logo-app-links",5)(4,"app-fundraiser-for",5)(5,"app-products",5)(6,"app-features",5)(7,"app-support",5),e.qZA(),e.TgZ(8,"div",6),e._UZ(9,"div",7)(10,"div",8)(11,"app-copyright",9),e.qZA()()())}function Gr(f,_){if(1&f){const A=e.EpF();e.TgZ(0,"div",10)(1,"div",11)(2,"div",12),e._UZ(3,"app-language-chooser"),e.TgZ(4,"a",13),e.NdJ("click",function(){e.CHM(A);const R=e.oxw();return e.KtG(R.openCookieSettings())}),e.TgZ(5,"mat-icon"),e._uU(6,"cookie"),e.qZA(),e.TgZ(7,"span",14),e.SDv(8,15),e.qZA()()()(),e.TgZ(9,"div",16)(10,"div",17)(11,"label",18),e.SDv(12,19),e.qZA(),e._UZ(13,"img",20),e.qZA()()()}}let Ln=(()=>{class f{constructor(A,p,R){this._router=A,this.customDomainService=p,this.analyticsService=R,this.hideFooter=!1}ngOnInit(){this._router.events.subscribe(A=>{A instanceof d.m2&&(A.url.includes("/dashboard")||A.url.includes("/account")||A.url.includes("/profile")||A.url.includes("/donate")||A.url.includes("/connect")||A.url.includes("/balance")||A.url.includes("/my-fundraisers")||A.url.includes("/custom-branding")||A.url.includes("/create")?this.hideFooter=!0:this.customDomainService.getIsCustomDomain().subscribe(p=>{this.hideFooter=!!p},p=>{console.error("Error fetching custom domain status:",p),this.hideFooter=!1}))})}openCookieSettings(){this.analyticsService.openCookieSettings()}}return f.\u0275fac=function(A){return new(A||f)(e.Y36(d.F0),e.Y36(P.c),e.Y36(ri.y))},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-footer"]],decls:2,vars:2,consts:function(){let _,A;return _="Postavke Kola\u010Di\u0107a",A="Pokretano od",[["fxFlex","100","fxLayout","row","class","footer-background","ngClass.gt-md","p-xxl","ngClass.md","p-t-xxl p-b-xxl p-l","ngClass.sm","p-l","ngClass.xs","p-s","id","footer","name","footer",4,"ngIf"],["fxFill","","fxLayout","row","fxLayoutAlign","space-between center","id","footer2","name","footer2","class","minimal-footer","fxFlex","100%",4,"ngIf"],["fxFlex","100","fxLayout","row","ngClass.gt-md","p-xxl","ngClass.md","p-t-xxl p-b-xxl p-l","ngClass.sm","p-l","ngClass.xs","p-s","id","footer","name","footer",1,"footer-background"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100%","fxLayoutAlign","center space-between"],["fxFlex","100","fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutAlign","space-between start","fxLayoutGap.sm","2%","fxLayoutGap.xs","5%"],["fxFlex.gt-sm","19%"],["fxFill","","fxLayout","column","fxLayout.sm","column","fxLayout.xs","column","fxFlex","100%","fxLayoutAlign","space-between","fxLayoutAlign.sm","space-between start","fxLayoutAlign.xs","space-between start"],["fxlayout","row","fxlayoutAlign","space-between"],["fxlayout","row","fxlayoutAlign","space-between end"],["fxFlex.gt-md","70%","fxFlex.gt-sm","82%"],["fxFill","","fxLayout","row","fxLayoutAlign","space-between center","id","footer2","name","footer2","fxFlex","100%",1,"minimal-footer"],["fxLayout","column","fxFlex","50%","fxLayoutAlign","center start"],["fxLayout","row","fxLayoutAlign","center center"],["mat-button","",3,"click"],["fxHide.lt-sm","true"],_,["fxLayout","column","fxFlex","50%","fxLayoutAlign","center end"],["fxLayout","row","fxFlex","100%","fxLayoutAlign","end center","fxLayoutGap","5%"],[1,"footer-no-wrap"],A,["fxFlex.lt-sm","60%","src","https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/WhyDonatesSVG/public"]]},template:function(A,p){1&A&&(e.YNc(0,Cr,12,0,"div",0),e.YNc(1,Gr,14,0,"div",1)),2&A&&(e.Q6J("ngIf",!p.hideFooter),e.xp6(1),e.Q6J("ngIf",p.hideFooter))},dependencies:[C.O5,l.Nr,x.Hw,r.xw,r.SQ,r.Wh,r.s9,r.yH,j.b8,j.oO,Sr,Ot,ze,Ye,Se,Ge,lr],styles:[".footer-background[_ngcontent-%COMP%]{background-color:#f4f6f7}.minimal-footer[_ngcontent-%COMP%]{padding:8px;background-color:#f4f6f7}a[_ngcontent-%COMP%]{text-decoration:none;color:#000;padding:8px;white-space:nowrap}a[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.04)}.flag[_ngcontent-%COMP%]{width:24px;height:24px}.minimal-footer-logo[_ngcontent-%COMP%]{width:50%;height:50%}.footer-titles[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:20px;font-weight:500}.footer-no-wrap[_ngcontent-%COMP%]{white-space:nowrap}"]}),f})();const Xn=["drawer"];function ni(f,_){1&f&&(e.TgZ(0,"mat-drawer",6,7),e._UZ(2,"app-sidenav"),e.qZA())}let ta=(()=>{class f{constructor(A,p,R,ce,Ie,Je,At){this._scriptLoader=p,this.activtedRoute=ce,this.customDomainService=Ie,this.accountService=Je,this.notificationService=At,this.title="WhyDonate: Personal Crowdfunding and Charity Fundraising",this.isBrowser=!1,this.isLoggedIn=!1,this.currentDomain="",this.officialDomains=n.N.OFFICIAL_DOMAINS,this.isBrowser=(0,C.NF)(A),this.router=R}ngAfterViewInit(){this.checkAndSetCustomDomain(),this.isBrowser&&this._scriptLoader.loadCrisp(),this.updateSidenavClass(),this.drawer&&this.drawer.openedChange.subscribe(()=>{this.updateSidenavClass()}),n.N.production&&(console.log=console.debug=console.error=()=>{})}updateSidenavClass(){document.body.classList.remove("sidenav-expanded","sidenav-collapsed","sidenav-hidden"),this.isLoggedIn&&this.drawer?this.drawer.opened?document.body.classList.add("sidenav-expanded"):document.body.classList.add("sidenav-collapsed"):document.body.classList.add("sidenav-hidden")}checkAndSetCustomDomain(){try{let A=this.officialDomains,p=window?.location?.href,R=!0;if(!Array.isArray(A)||0===A.length)throw new Error("The 'officialDomains' array is invalid or empty.");if("string"!=typeof p||""===p.trim())throw new Error("The 'currentDomain' must be a valid non-empty string.");A.forEach(ce=>{"string"==typeof ce&&""!==ce.trim()?p.includes(ce)&&(R=!1):console.warn(`Skipping invalid domain: ${ce}`)}),this.customDomainService.setIsCustomDomainValue(R)}catch(A){console.error("An error occurred while checking the custom domain:",A)}}ngOnInit(){this.accountService.isLoggedIn.subscribe(A=>{this.isLoggedIn=A,setInterval(()=>{this.accountService.isLoggedIn.getValue()&&this.accountService.isJWTExpired()&&this.accountService.autoLogout()},2e3),document.addEventListener("DOMNodeInserted",function(){document.querySelectorAll("[aria-owns]").forEach(R=>{R.removeAttribute("aria-owns")})})})}}return f.\u0275fac=function(A){return new(A||f)(e.Y36(e.Lbi),e.Y36(i.$),e.Y36(d.F0),e.Y36(d.gz),e.Y36(P.c),e.Y36(I.B),e.Y36(q.g))},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-root"]],viewQuery:function(A,p){if(1&A&&e.Gf(Xn,5),2&A){let R;e.iGM(R=e.CRH())&&(p.drawer=R.first)}},decls:7,vars:1,consts:[["id","header","name","header"],[1,"content-height"],["autosize",""],["mode","side","opened","true",4,"ngIf"],[1,"main-content"],["id","footer","name","footer"],["mode","side","opened","true"],["drawer",""]],template:function(A,p){1&A&&(e._UZ(0,"app-header",0),e.TgZ(1,"div",1)(2,"mat-drawer-container",2),e.YNc(3,ni,3,0,"mat-drawer",3),e.TgZ(4,"div",4),e._UZ(5,"router-outlet"),e.qZA()()(),e._UZ(6,"app-footer",5)),2&A&&(e.xp6(3),e.Q6J("ngIf",p.isLoggedIn))},dependencies:[C.O5,d.lC,D.jA,D.kh,It,un,Ln]}),f})();var $a=s(25384),La=s(21672),Ei=s(13718),ma=s(93786),bn=s(16642),ha=s(63953),po=s(61551),Ia=s(52051);const Oa="7.29.0";var cn=s(52199),Yi=s(36203),wi=s(89328);const Wi=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class ra{static __initStatic(){this.id="InboundFilters"}__init(){this.name=ra.id}constructor(_={}){this._options=_,ra.prototype.__init.call(this)}setupOnce(_,A){const p=R=>{const ce=A();if(ce){const Ie=ce.getIntegration(ra);if(Ie){const Je=ce.getClient(),At=Je?Je.getOptions():{},Gt=function ji(f={},_={}){return{allowUrls:[...f.allowUrls||[],..._.allowUrls||[]],denyUrls:[...f.denyUrls||[],..._.denyUrls||[]],ignoreErrors:[...f.ignoreErrors||[],..._.ignoreErrors||[],...Wi],ignoreInternal:void 0===f.ignoreInternal||f.ignoreInternal}}(Ie._options,At);return function sa(f,_){return _.ignoreInternal&&function Fa(f){try{return"SentryError"===f.exception.values[0].type}catch{}return!1}(f)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,Yi.jH)(f)}`),!0):function Ui(f,_){return!(!_||!_.length)&&function Co(f){if(f.message)return[f.message];if(f.exception)try{const{type:_="",value:A=""}=f.exception.values&&f.exception.values[0]||{};return[`${A}`,`${_}: ${A}`]}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.error(`Cannot extract message for event ${(0,Yi.jH)(f)}`),[]}return[]}(f).some(A=>(0,wi.U0)(A,_))}(f,_.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,Yi.jH)(f)}`),!0):function na(f,_){if(!_||!_.length)return!1;const A=ho(f);return!!A&&(0,wi.U0)(A,_)}(f,_.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,Yi.jH)(f)}.\nUrl: ${ho(f)}`),!0):!function fa(f,_){if(!_||!_.length)return!0;const A=ho(f);return!A||(0,wi.U0)(A,_)}(f,_.allowUrls)&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,Yi.jH)(f)}.\nUrl: ${ho(f)}`),!0)}(R,Gt)?null:R}}return R};p.id=this.name,_(p)}}function ho(f){try{let _;try{_=f.exception.values[0].stacktrace.frames}catch{}return _?function la(f=[]){for(let _=f.length-1;_>=0;_--){const A=f[_];if(A&&"<anonymous>"!==A.filename&&"[native code]"!==A.filename)return A.filename||null}return null}(_):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.error(`Cannot extract url for event ${(0,Yi.jH)(f)}`),null}}ra.__initStatic();var $i=s(81043);let bo;class Ga{constructor(){Ga.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=Ga.id}setupOnce(){bo=Function.prototype.toString,Function.prototype.toString=function(..._){const A=(0,$i.HK)(this)||this;return bo.apply(A,_)}}}Ga.__initStatic();var mi=s(31034),Ct=s(28619);const Dt=[];function Rt(f){const _=f.defaultIntegrations||[],A=f.integrations;let p;_.forEach(Ie=>{Ie.isDefaultInstance=!0}),p=Array.isArray(A)?[..._,...A]:"function"==typeof A?(0,Yi.lE)(A(_)):_;const R=function ve(f){const _={};return f.forEach(A=>{const{name:p}=A,R=_[p];R&&!R.isDefaultInstance&&A.isDefaultInstance||(_[p]=A)}),Object.values(_)}(p),ce=R.findIndex(Ie=>"Debug"===Ie.name);if(-1!==ce){const[Ie]=R.splice(ce,1);R.push(Ie)}return R}var wn=s(32511),Jn=s(71538),yn=s(78210);function Mn(f){let _,A=f[0],p=1;for(;p<f.length;){const R=f[p],ce=f[p+1];if(p+=2,("optionalAccess"===R||"optionalCall"===R)&&null==A)return;"access"===R||"optionalAccess"===R?(_=A,A=ce(A)):("call"===R||"optionalCall"===R)&&(A=ce((...Ie)=>A.call(_,...Ie)),_=void 0)}return A}class $n extends Error{constructor(_,A="warn"){super(_),this.message=_,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=A}}const ia=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function qa(f,_=!1){const{host:A,path:p,pass:R,port:ce,projectId:Ie,protocol:Je,publicKey:At}=f;return`${Je}://${At}${_&&R?`:${R}`:""}@${A}${ce?`:${ce}`:""}/${p&&`${p}/`}${Ie}`}function Na(f){return{protocol:f.protocol,publicKey:f.publicKey||"",pass:f.pass||"",host:f.host,port:f.port||"",path:f.path||"",projectId:f.projectId}}var Mi=s(26704),Bi=s(72906);function Aa(f,_=1/0,A=1/0){try{return Eo("",f,_,A)}catch(p){return{ERROR:`**non-serializable** (${p})`}}}function wa(f,_=3,A=102400){const p=Aa(f,_);return function Ji(f){return function Pi(f){return~-encodeURI(f).split(/%..|./).length}(JSON.stringify(f))}(p)>A?wa(f,_-1,A):p}function Eo(f,_,A=1/0,p=1/0,R=function Xi(){const f="function"==typeof WeakSet,_=f?new WeakSet:[];return[function A(R){if(f)return!!_.has(R)||(_.add(R),!1);for(let ce=0;ce<_.length;ce++)if(_[ce]===R)return!0;return _.push(R),!1},function p(R){if(f)_.delete(R);else for(let ce=0;ce<_.length;ce++)if(_[ce]===R){_.splice(ce,1);break}}]}()){const[ce,Ie]=R;if(null===_||["number","boolean","string"].includes(typeof _)&&!(0,Mi.i2)(_))return _;const Je=function To(f,_){try{return"domain"===f&&_&&"object"==typeof _&&_._events?"[Domain]":"domainEmitter"===f?"[DomainEmitter]":typeof global<"u"&&_===global?"[Global]":typeof window<"u"&&_===window?"[Window]":typeof document<"u"&&_===document?"[Document]":(0,Mi.Cy)(_)?"[SyntheticEvent]":"number"==typeof _&&_!=_?"[NaN]":void 0===_?"[undefined]":"function"==typeof _?`[Function: ${(0,wn.$P)(_)}]`:"symbol"==typeof _?`[${String(_)}]`:"bigint"==typeof _?`[BigInt: ${String(_)}]`:`[object ${Object.getPrototypeOf(_).constructor.name}]`}catch(A){return`**non-serializable** (${A})`}}(f,_);if(!Je.startsWith("[object "))return Je;if(_.__sentry_skip_normalization__)return _;if(0===A)return Je.replace("object ","");if(ce(_))return"[Circular ~]";const At=_;if(At&&"function"==typeof At.toJSON)try{return Eo("",At.toJSON(),A-1,p,R)}catch{}const Gt=Array.isArray(_)?[]:{};let ir=0;const vr=(0,$i.Sh)(_);for(const Nr in vr)if(Object.prototype.hasOwnProperty.call(vr,Nr)){if(ir>=p){Gt[Nr]="[MaxProperties ~]";break}Gt[Nr]=Eo(Nr,vr[Nr],A-1,p,R),ir++}return Ie(_),Gt}function Va(f,_=[]){return[f,_]}function Qi(f,_){const[A,p]=f;return[A,[...p,_]]}function Ri(f,_){f[1].forEach(p=>{_(p,p[0].type)})}function xo(f,_){return(_||new TextEncoder).encode(f)}function so(f,_){const[A,p]=f;let R=JSON.stringify(A);function ce(Ie){"string"==typeof R?R="string"==typeof Ie?R+Ie:[xo(R,_),Ie]:R.push("string"==typeof Ie?xo(Ie,_):Ie)}for(const Ie of p){const[Je,At]=Ie;if(ce(`\n${JSON.stringify(Je)}\n`),"string"==typeof At||At instanceof Uint8Array)ce(At);else{let Gt;try{Gt=JSON.stringify(At)}catch{Gt=JSON.stringify(Aa(At))}ce(Gt)}}return"string"==typeof R?R:function Ra(f){const _=f.reduce((R,ce)=>R+ce.length,0),A=new Uint8Array(_);let p=0;for(const R of f)A.set(R,p),p+=R.length;return A}(R)}function Lo(f,_){const A="string"==typeof f.data?xo(f.data,_):f.data;return[(0,$i.Jr)({type:"attachment",length:A.length,filename:f.filename,content_type:f.contentType,attachment_type:f.attachmentType}),A]}const Mo={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay_event",replay_recording:"replay_recording"};function eo(f){return Mo[f]}function Bo(f){if(!f||!f.sdk)return;const{name:_,version:A}=f.sdk;return{name:_,version:A}}function Oo(f,_,A,p){const R=f.sdkProcessingMetadata&&f.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:f.event_id,sent_at:(new Date).toISOString(),..._&&{sdk:_},...!!A&&{dsn:qa(p)},..."transaction"===f.type&&R&&{trace:(0,$i.Jr)({...R})}}}const Qn="7";function Ue(f,_={}){const p="string"!=typeof _&&_._metadata?_._metadata.sdk:void 0;return("string"==typeof _?_:_.tunnel)||`${function rt(f){return`${function vo(f){return`${f.protocol?`${f.protocol}:`:""}//${f.host}${f.port?`:${f.port}`:""}${f.path?`/${f.path}`:""}/api/`}(f)}${f.projectId}/envelope/`}(f)}?${function je(f,_){return(0,$i._j)({sentry_key:f.publicKey,sentry_version:Qn,..._&&{sentry_client:`${_.name}/${_.version}`}})}(f,p)}`}var Wr=s(38037),ii=s(76852);function xi(f,_,A,p){const{normalizeDepth:R=3,normalizeMaxBreadth:ce=1e3}=f,Ie={..._,event_id:_.event_id||A.event_id||(0,Yi.DM)(),timestamp:_.timestamp||(0,ii.yW)()};(function Jo(f,_){const{environment:A,release:p,dist:R,maxValueLength:ce=250}=_;"environment"in f||(f.environment="environment"in _?A:"production"),void 0===f.release&&void 0!==p&&(f.release=p),void 0===f.dist&&void 0!==R&&(f.dist=R),f.message&&(f.message=(0,wi.$G)(f.message,ce));const Ie=f.exception&&f.exception.values&&f.exception.values[0];Ie&&Ie.value&&(Ie.value=(0,wi.$G)(Ie.value,ce));const Je=f.request;Je&&Je.url&&(Je.url=(0,wi.$G)(Je.url,ce))})(Ie,f),function Wa(f,_){_.length>0&&(f.sdk=f.sdk||{},f.sdk.integrations=[...f.sdk.integrations||[],..._])}(Ie,f.integrations.map(Gt=>Gt.name));let Je=p;A.captureContext&&(Je=Ct.s.clone(Je).update(A.captureContext));let At=(0,Bi.WD)(Ie);if(Je){if(Je.getAttachments){const Gt=[...A.attachments||[],...Je.getAttachments()];Gt.length&&(A.attachments=Gt)}At=Je.applyToEvent(Ie,A)}return At.then(Gt=>"number"==typeof R&&R>0?function vs(f,_,A){if(!f)return null;const p={...f,...f.breadcrumbs&&{breadcrumbs:f.breadcrumbs.map(R=>({...R,...R.data&&{data:Aa(R.data,_,A)}}))},...f.user&&{user:Aa(f.user,_,A)},...f.contexts&&{contexts:Aa(f.contexts,_,A)},...f.extra&&{extra:Aa(f.extra,_,A)}};return f.contexts&&f.contexts.trace&&p.contexts&&(p.contexts.trace=f.contexts.trace,f.contexts.trace.data&&(p.contexts.trace.data=Aa(f.contexts.trace.data,_,A))),f.spans&&(p.spans=f.spans.map(R=>(R.data&&(R.data=Aa(R.data,_,A)),R))),p}(Gt,R,ce):Gt)}const is="Not capturing exception because it's already been captured.";class no{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(_){if(no.prototype.__init.call(this),no.prototype.__init2.call(this),no.prototype.__init3.call(this),no.prototype.__init4.call(this),this._options=_,_.dsn){this._dsn=function Ka(f){const _="string"==typeof f?function ro(f){const _=ia.exec(f);if(!_)throw new $n(`Invalid Sentry Dsn: ${f}`);const[A,p,R="",ce,Ie="",Je]=_.slice(1);let At="",Gt=Je;const ir=Gt.split("/");if(ir.length>1&&(At=ir.slice(0,-1).join("/"),Gt=ir.pop()),Gt){const vr=Gt.match(/^\d+/);vr&&(Gt=vr[0])}return Na({host:ce,pass:R,path:At,projectId:Gt,port:Ie,protocol:A,publicKey:p})}(f):Na(f);return function ga(f){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return;const{port:_,projectId:A,protocol:p}=f;if(["protocol","publicKey","host","projectId"].forEach(ce=>{if(!f[ce])throw new $n(`Invalid Sentry Dsn: ${ce} missing`)}),!A.match(/^\d+$/))throw new $n(`Invalid Sentry Dsn: Invalid projectId ${A}`);if(!function Ua(f){return"http"===f||"https"===f}(p))throw new $n(`Invalid Sentry Dsn: Invalid protocol ${p}`);if(_&&isNaN(parseInt(_,10)))throw new $n(`Invalid Sentry Dsn: Invalid port ${_}`)}(_),_}(_.dsn);const A=Ue(this._dsn,_);this._transport=_.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),..._.transportOptions,url:A})}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn("No DSN provided, client will not do anything.")}captureException(_,A,p){if((0,Yi.YO)(_))return void((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log(is));let R=A&&A.event_id;return this._process(this.eventFromException(_,A).then(ce=>this._captureEvent(ce,A,p)).then(ce=>{R=ce})),R}captureMessage(_,A,p,R){let ce=p&&p.event_id;const Ie=(0,Mi.pt)(_)?this.eventFromMessage(String(_),A,p):this.eventFromException(_,p);return this._process(Ie.then(Je=>this._captureEvent(Je,p,R)).then(Je=>{ce=Je})),ce}captureEvent(_,A,p){if(A&&A.originalException&&(0,Yi.YO)(A.originalException))return void((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log(is));let R=A&&A.event_id;return this._process(this._captureEvent(_,A,p).then(ce=>{R=ce})),R}captureSession(_){this._isEnabled()?"string"!=typeof _.release?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(_),(0,Wr.CT)(_,{init:!1})):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(_){const A=this._transport;return A?this._isClientDoneProcessing(_).then(p=>A.flush(_).then(R=>p&&R)):(0,Bi.WD)(!0)}close(_){return this.flush(_).then(A=>(this.getOptions().enabled=!1,A))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function Dr(f){const _={};return f.forEach(A=>{_[A.name]=A,-1===Dt.indexOf(A.name)&&(A.setupOnce(Ct.c,mi.Gd),Dt.push(A.name),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log(`Integration installed: ${A.name}`))}),_}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(_){return this._integrations[_]}getIntegration(_){try{return this._integrations[_.id]||null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn(`Cannot retrieve integration ${_.id} from the current Client`),null}}sendEvent(_,A={}){if(this._dsn){let p=function pa(f,_,A,p){const R=Bo(A),ce=f.type||"event";!function Yr(f,_){_&&(f.sdk=f.sdk||{},f.sdk.name=f.sdk.name||_.name,f.sdk.version=f.sdk.version||_.version,f.sdk.integrations=[...f.sdk.integrations||[],..._.integrations||[]],f.sdk.packages=[...f.sdk.packages||[],..._.packages||[]])}(f,A&&A.sdk);const Ie=Oo(f,R,p,_);return delete f.sdkProcessingMetadata,Va(Ie,[[{type:ce},f]])}(_,this._dsn,this._options._metadata,this._options.tunnel);for(const R of A.attachments||[])p=Qi(p,Lo(R,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(p)}}sendSession(_){if(this._dsn){const A=function Un(f,_,A,p){const R=Bo(A);return Va({sent_at:(new Date).toISOString(),...R&&{sdk:R},...!!p&&{dsn:qa(_)}},["aggregates"in f?[{type:"sessions"},f]:[{type:"session"},f]])}(_,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(A)}}recordDroppedEvent(_,A,p){if(this._options.sendClientReports){const R=`${_}:${A}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log(`Adding outcome: "${R}"`),this._outcomes[R]=this._outcomes[R]+1||1}}_updateSessionFromEvent(_,A){let p=!1,R=!1;const ce=A.exception&&A.exception.values;if(ce){R=!0;for(const At of ce){const Gt=At.mechanism;if(Gt&&!1===Gt.handled){p=!0;break}}}const Ie="ok"===_.status;(Ie&&0===_.errors||Ie&&p)&&((0,Wr.CT)(_,{...p&&{status:"crashed"},errors:_.errors||Number(R||p)}),this.captureSession(_))}_isClientDoneProcessing(_){return new Bi.cW(A=>{let p=0;const ce=setInterval(()=>{0==this._numProcessing?(clearInterval(ce),A(!0)):(p+=1,_&&p>=_&&(clearInterval(ce),A(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(_,A,p){return xi(this.getOptions(),_,A,p)}_captureEvent(_,A={},p){return this._processEvent(_,A,p).then(R=>R.event_id,R=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){const ce=R;"log"===ce.logLevel?cn.kg.log(ce.message):cn.kg.warn(ce)}})}_processEvent(_,A,p){const R=this.getOptions(),{sampleRate:ce}=R;if(!this._isEnabled())return(0,Bi.$2)(new $n("SDK not enabled, will not capture event.","log"));const Ie=or(_),Je=Xt(_),At=_.type||"error",Gt=`before send for type \`${At}\``;return Je&&"number"==typeof ce&&Math.random()>ce?(this.recordDroppedEvent("sample_rate","error",_),(0,Bi.$2)(new $n(`Discarding event because it's not included in the random sample (sampling rate = ${ce})`,"log"))):this._prepareEvent(_,A,p).then(ir=>{if(null===ir)throw this.recordDroppedEvent("event_processor",At,_),new $n("An event processor returned `null`, will not send event.","log");if(A.data&&!0===A.data.__sentry__)return ir;const Nr=function mt(f,_,A){const{beforeSend:p,beforeSendTransaction:R}=f;return Xt(_)&&p?p(_,A):or(_)&&R?R(_,A):_}(R,ir,A);return function Zo(f,_){const A=`${_} must return \`null\` or a valid event.`;if((0,Mi.J8)(f))return f.then(p=>{if(!(0,Mi.PO)(p)&&null!==p)throw new $n(A);return p},p=>{throw new $n(`${_} rejected with ${p}`)});if(!(0,Mi.PO)(f)&&null!==f)throw new $n(A);return f}(Nr,Gt)}).then(ir=>{if(null===ir)throw this.recordDroppedEvent("before_send",_.type||"error",_),new $n(`${Gt} returned \`null\`, will not send event.`,"log");const vr=p&&p.getSession();!Ie&&vr&&this._updateSessionFromEvent(vr,ir);const Nr=ir.transaction_info;if(Ie&&Nr&&ir.transaction!==_.transaction){const wr="custom";ir.transaction_info={...Nr,source:wr,changes:[...Nr.changes,{source:wr,timestamp:ir.timestamp,propagations:Nr.propagations}]}}return this.sendEvent(ir,A),ir}).then(null,ir=>{throw ir instanceof $n?ir:(this.captureException(ir,{data:{__sentry__:!0},originalException:ir}),new $n(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${ir}`))})}_process(_){this._numProcessing++,_.then(A=>(this._numProcessing--,A),A=>(this._numProcessing--,A))}_sendEnvelope(_){this._transport&&this._dsn?this._transport.send(_).then(null,A=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.error("Error while sending event:",A)}):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.error("Transport disabled")}_clearOutcomes(){const _=this._outcomes;return this._outcomes={},Object.keys(_).map(A=>{const[p,R]=A.split(":");return{reason:p,category:R,quantity:_[A]}})}}function Xt(f){return void 0===f.type}function or(f){return"transaction"===f.type}function Or(f,_){const A=qr(f,_),p={type:_&&_.name,value:di(_)};return A.length&&(p.stacktrace={frames:A}),void 0===p.type&&""===p.value&&(p.value="Unrecoverable error caught"),p}function Qr(f,_){return{exception:{values:[Or(f,_)]}}}function qr(f,_){const A=_.stacktrace||_.stack||"",p=function si(f){if(f){if("number"==typeof f.framesToPop)return f.framesToPop;if(Tn.test(f.message))return 1}return 0}(_);try{return f(A,p)}catch{}return[]}const Tn=/Minified React error #\d+;/i;function di(f){const _=f&&f.message;return _?_.error&&"string"==typeof _.error.message?_.error.message:_:"No error message"}function Da(f,_,A,p,R){let ce;if((0,Mi.VW)(_)&&_.error)return Qr(f,_.error);if((0,Mi.TX)(_)||(0,Mi.fm)(_)){const Ie=_;if("stack"in _)ce=Qr(f,_);else{const Je=Ie.name||((0,Mi.TX)(Ie)?"DOMError":"DOMException"),At=Ie.message?`${Je}: ${Ie.message}`:Je;ce=ua(f,At,A,p),(0,Yi.Db)(ce,At)}return"code"in Ie&&(ce.tags={...ce.tags,"DOMException.code":`${Ie.code}`}),ce}return(0,Mi.VZ)(_)?Qr(f,_):(0,Mi.PO)(_)||(0,Mi.cO)(_)?(ce=function Vr(f,_,A,p){const ce=(0,mi.Gd)().getClient(),Ie=ce&&ce.getOptions().normalizeDepth,Je={exception:{values:[{type:(0,Mi.cO)(_)?_.constructor.name:p?"UnhandledRejection":"Error",value:`Non-Error ${p?"promise rejection":"exception"} captured with keys: ${(0,$i.zf)(_)}`}]},extra:{__serialized__:wa(_,Ie)}};if(A){const At=qr(f,A);At.length&&(Je.exception.values[0].stacktrace={frames:At})}return Je}(f,_,A,R),(0,Yi.EG)(ce,{synthetic:!0}),ce):(ce=ua(f,_,A,p),(0,Yi.Db)(ce,`${_}`,void 0),(0,Yi.EG)(ce,{synthetic:!0}),ce)}function ua(f,_,A,p){const R={message:_};if(p&&A){const ce=qr(f,A);ce.length&&(R.exception={values:[{value:_,stacktrace:{frames:ce}}]})}return R}function Pa(f,_){return(0,mi.Gd)().captureException(f,{captureContext:_})}function Ba(f,_){(0,mi.Gd)().setContext(f,_)}var Fr=s(3693);const Zr=Fr.n2;let Zi=0;function aa(){return Zi>0}function Io(f,_={},A){if("function"!=typeof f)return f;try{const R=f.__sentry_wrapped__;if(R)return R;if((0,$i.HK)(f))return f}catch{return f}const p=function(){const R=Array.prototype.slice.call(arguments);try{A&&"function"==typeof A&&A.apply(this,arguments);const ce=R.map(Ie=>Io(Ie,_));return f.apply(this,ce)}catch(ce){throw function as(){Zi++,setTimeout(()=>{Zi--})}(),function it(f){(0,mi.Gd)().withScope(f)}(Ie=>{Ie.addEventProcessor(Je=>(_.mechanism&&((0,Yi.Db)(Je,void 0,void 0),(0,Yi.EG)(Je,_.mechanism)),Je.extra={...Je.extra,arguments:R},Je)),Pa(ce)}),ce}};try{for(const R in f)Object.prototype.hasOwnProperty.call(f,R)&&(p[R]=f[R])}catch{}(0,$i.$Q)(p,f),(0,$i.xp)(f,"__sentry_wrapped__",p);try{Object.getOwnPropertyDescriptor(p,"name").configurable&&Object.defineProperty(p,"name",{get:()=>f.name})}catch{}return p}var Yo=s(21013);const Rs=["fatal","error","warning","log","info","debug"];function gs(f){return"warn"===f?"warning":Rs.includes(f)?f:"log"}function ps(f){if(!f)return{};const _=f.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);return _?{host:_[4],path:_[5],protocol:_[2],relative:_[5]+(_[6]||"")+(_[8]||"")}:{}}const He=1024,Ut="Breadcrumbs";class _r{static __initStatic(){this.id=Ut}__init(){this.name=_r.id}constructor(_){_r.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,..._}}setupOnce(){this.options.console&&(0,yn.o)("console",Fe),this.options.dom&&(0,yn.o)("dom",function $r(f){return function _(A){let p,R="object"==typeof f?f.serializeAttribute:void 0,ce="object"==typeof f&&"number"==typeof f.maxStringLength?f.maxStringLength:void 0;ce&&ce>He&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn(`\`dom.maxStringLength\` cannot exceed ${He}, but a value of ${ce} was configured. Sentry will use ${He} instead.`),ce=He),"string"==typeof R&&(R=[R]);try{p=(0,Yo.Rt)(A.event.target?A.event.target:A.event,{keyAttrs:R,maxStringLength:ce})}catch{p="<unknown>"}0!==p.length&&(0,mi.Gd)().addBreadcrumb({category:`ui.${A.name}`,message:p},{event:A.event,name:A.name,global:A.global})}}(this.options.dom)),this.options.xhr&&(0,yn.o)("xhr",er),this.options.fetch&&(0,yn.o)("fetch",pe),this.options.history&&(0,yn.o)("history",dt)}addSentryBreadcrumb(_){this.options.sentry&&(0,mi.Gd)().addBreadcrumb({category:"sentry."+("transaction"===_.type?"transaction":"event"),event_id:_.event_id,level:_.level,message:(0,Yi.jH)(_)},{event:_})}}function Fe(f){for(let A=0;A<f.args.length;A++)if("ref=Ref<"===f.args[A]){f.args[A+1]="viewRef";break}const _={category:"console",data:{arguments:f.args,logger:"console"},level:gs(f.level),message:(0,wi.nK)(f.args," ")};if("assert"===f.level){if(!1!==f.args[0])return;_.message=`Assertion failed: ${(0,wi.nK)(f.args.slice(1)," ")||"console.assert"}`,_.data.arguments=f.args.slice(1)}(0,mi.Gd)().addBreadcrumb(_,{input:f.args,level:f.level})}function er(f){if(f.endTimestamp){if(f.xhr.__sentry_own_request__)return;const{method:_,url:A,status_code:p,body:R}=f.xhr.__sentry_xhr__||{};(0,mi.Gd)().addBreadcrumb({category:"xhr",data:{method:_,url:A,status_code:p},type:"http"},{xhr:f.xhr,input:R})}}function pe(f){f.endTimestamp&&(f.fetchData.url.match(/sentry_key/)&&"POST"===f.fetchData.method||(f.error?(0,mi.Gd)().addBreadcrumb({category:"fetch",data:f.fetchData,level:"error",type:"http"},{data:f.error,input:f.args}):(0,mi.Gd)().addBreadcrumb({category:"fetch",data:{...f.fetchData,status_code:f.response.status},type:"http"},{input:f.args,response:f.response})))}function dt(f){let _=f.from,A=f.to;const p=ps(Zr.location.href);let R=ps(_);const ce=ps(A);R.path||(R=p),p.protocol===ce.protocol&&p.host===ce.host&&(A=ce.relative),p.protocol===R.protocol&&p.host===R.host&&(_=R.relative),(0,mi.Gd)().addBreadcrumb({category:"navigation",data:{from:_,to:A}})}_r.__initStatic();class jt extends no{constructor(_){_._metadata=_._metadata||{},_._metadata.sdk=_._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:Oa}],version:Oa},super(_),_.sendClientReports&&Zr.document&&Zr.document.addEventListener("visibilitychange",()=>{"hidden"===Zr.document.visibilityState&&this._flushOutcomes()})}eventFromException(_,A){return function vi(f,_,A,p){const ce=Da(f,_,A&&A.syntheticException||void 0,p);return(0,Yi.EG)(ce),ce.level="error",A&&A.event_id&&(ce.event_id=A.event_id),(0,Bi.WD)(ce)}(this._options.stackParser,_,A,this._options.attachStacktrace)}eventFromMessage(_,A="info",p){return function qi(f,_,A="info",p,R){const Ie=ua(f,_,p&&p.syntheticException||void 0,R);return Ie.level=A,p&&p.event_id&&(Ie.event_id=p.event_id),(0,Bi.WD)(Ie)}(this._options.stackParser,_,A,p,this._options.attachStacktrace)}sendEvent(_,A){Mn([this.getIntegrationById(Ut),"optionalAccess",R=>R.addSentryBreadcrumb,"optionalCall",R=>R(_)]),super.sendEvent(_,A)}_prepareEvent(_,A,p){return _.platform=_.platform||"javascript",super._prepareEvent(_,A,p)}_flushOutcomes(){const _=this._clearOutcomes();if(0===_.length)return void((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("No outcomes to send"));if(!this._dsn)return void((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("No dsn provided, will not send outcomes"));(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("Sending outcomes:",_);const A=Ue(this._dsn,this._options),p=function mr(f,_,A){return Va(_?{dsn:_}:{},[[{type:"client_report"},{timestamp:A||(0,ii.yW)(),discarded_events:f}]])}(_,this._options.tunnel&&qa(this._dsn));try{"[object Navigator]"!==Object.prototype.toString.call(Zr&&Zr.navigator)||"function"!=typeof Zr.navigator.sendBeacon||this._options.transportOptions?this._sendEnvelope(p):Zr.navigator.sendBeacon.bind(Zr.navigator)(A,so(p))}catch(R){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.error(R)}}}function _i(f,_,A,p){const R={filename:f,function:_,in_app:!0};return void 0!==A&&(R.lineno=A),void 0!==p&&(R.colno=p),R}const gi=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,oa=/\((\S*)(?::(\d+))(?::(\d+))\)/,Za=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,va=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Li=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,g=(0,wn.pE)([30,f=>{const _=gi.exec(f);if(_){if(_[2]&&0===_[2].indexOf("eval")){const ce=oa.exec(_[2]);ce&&(_[2]=ce[1],_[3]=ce[2],_[4]=ce[3])}const[p,R]=$(_[1]||"?",_[2]);return _i(R,p,_[3]?+_[3]:void 0,_[4]?+_[4]:void 0)}}],[50,f=>{const _=Za.exec(f);if(_){if(_[3]&&_[3].indexOf(" > eval")>-1){const ce=va.exec(_[3]);ce&&(_[1]=_[1]||"eval",_[3]=ce[1],_[4]=ce[2],_[5]="")}let p=_[3],R=_[1]||"?";return[R,p]=$(R,p),_i(p,R,_[4]?+_[4]:void 0,_[5]?+_[5]:void 0)}}],[40,f=>{const _=Li.exec(f);return _?_i(_[2],_[1]||"?",+_[3],_[4]?+_[4]:void 0):void 0}]),$=(f,_)=>{const A=-1!==f.indexOf("safari-extension"),p=-1!==f.indexOf("safari-web-extension");return A||p?[-1!==f.indexOf("@")?f.split("@")[0]:"?",A?`safari-extension:${_}`:`safari-web-extension:${_}`]:[f,_]},st=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Bt{static __initStatic(){this.id="TryCatch"}__init(){this.name=Bt.id}constructor(_){Bt.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,..._}}setupOnce(){this._options.setTimeout&&(0,$i.hl)(Zr,"setTimeout",hr),this._options.setInterval&&(0,$i.hl)(Zr,"setInterval",hr),this._options.requestAnimationFrame&&(0,$i.hl)(Zr,"requestAnimationFrame",Xr),this._options.XMLHttpRequest&&"XMLHttpRequest"in Zr&&(0,$i.hl)(XMLHttpRequest.prototype,"send",fn);const _=this._options.eventTarget;_&&(Array.isArray(_)?_:st).forEach(Kn)}}function hr(f){return function(..._){return _[0]=Io(_[0],{mechanism:{data:{function:(0,wn.$P)(f)},handled:!0,type:"instrument"}}),f.apply(this,_)}}function Xr(f){return function(_){return f.apply(this,[Io(_,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,wn.$P)(f)},handled:!0,type:"instrument"}})])}}function fn(f){return function(..._){const A=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(R=>{R in A&&"function"==typeof A[R]&&(0,$i.hl)(A,R,function(ce){const Ie={mechanism:{data:{function:R,handler:(0,wn.$P)(ce)},handled:!0,type:"instrument"}},Je=(0,$i.HK)(ce);return Je&&(Ie.mechanism.data.handler=(0,wn.$P)(Je)),Io(ce,Ie)})}),f.apply(this,_)}}function Kn(f){const A=Zr[f]&&Zr[f].prototype;!A||!A.hasOwnProperty||!A.hasOwnProperty("addEventListener")||((0,$i.hl)(A,"addEventListener",function(p){return function(R,ce,Ie){try{"function"==typeof ce.handleEvent&&(ce.handleEvent=Io(ce.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,wn.$P)(ce),target:f},handled:!0,type:"instrument"}}))}catch{}return p.apply(this,[R,Io(ce,{mechanism:{data:{function:"addEventListener",handler:(0,wn.$P)(ce),target:f},handled:!0,type:"instrument"}}),Ie])}}),(0,$i.hl)(A,"removeEventListener",function(p){return function(R,ce,Ie){const Je=ce;try{const At=Je&&Je.__sentry_wrapped__;At&&p.call(this,R,At,Ie)}catch{}return p.call(this,R,Je,Ie)}}))}Bt.__initStatic();class An{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=An.id}__init2(){this._installFunc={onerror:Ki,onunhandledrejection:Xa}}constructor(_){An.prototype.__init.call(this),An.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,..._}}setupOnce(){Error.stackTraceLimit=50;const _=this._options;for(const A in _){const p=this._installFunc[A];p&&_[A]&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log(`Global Handler attached: ${A}`),p(),this._installFunc[A]=void 0)}}}function Ki(){(0,yn.o)("error",f=>{const[_,A,p]=wo();if(!_.getIntegration(An))return;const{msg:R,url:ce,line:Ie,column:Je,error:At}=f;if(aa()||At&&At.__sentry_own_request__)return;const Gt=void 0===At&&(0,Mi.HD)(R)?function Ko(f,_,A,p){let ce=(0,Mi.VW)(f)?f.message:f,Ie="Error";const Je=ce.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return Je&&(Ie=Je[1],ce=Je[2]),uo({exception:{values:[{type:Ie,value:ce}]}},_,A,p)}(R,ce,Ie,Je):uo(Da(A,At||R,void 0,p,!1),ce,Ie,Je);Gt.level="error",es(_,At,Gt,"onerror")})}function Xa(){(0,yn.o)("unhandledrejection",f=>{const[_,A,p]=wo();if(!_.getIntegration(An))return;let R=f;try{"reason"in f?R=f.reason:"detail"in f&&"reason"in f.detail&&(R=f.detail.reason)}catch{}if(aa()||R&&R.__sentry_own_request__)return!0;const ce=(0,Mi.pt)(R)?function fi(f){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(f)}`}]}}}(R):Da(A,R,void 0,p,!0);ce.level="error",es(_,R,ce,"onunhandledrejection")})}function uo(f,_,A,p){const R=f.exception=f.exception||{},ce=R.values=R.values||[],Ie=ce[0]=ce[0]||{},Je=Ie.stacktrace=Ie.stacktrace||{},At=Je.frames=Je.frames||[],Gt=isNaN(parseInt(p,10))?void 0:p,ir=isNaN(parseInt(A,10))?void 0:A,vr=(0,Mi.HD)(_)&&_.length>0?_:(0,Yo.l4)();return 0===At.length&&At.push({colno:Gt,filename:vr,function:"?",in_app:!0,lineno:ir}),f}function es(f,_,A,p){(0,Yi.EG)(A,{handled:!1,type:p}),f.captureEvent(A,{originalException:_})}function wo(){const f=(0,mi.Gd)(),_=f.getClient(),A=_&&_.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[f,A.stackParser,A.attachStacktrace]}An.__initStatic();class ea{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=ea.id}constructor(_={}){ea.prototype.__init.call(this),this._key=_.key||"cause",this._limit=_.limit||5}setupOnce(){const _=(0,mi.Gd)().getClient();_&&(0,Ct.c)((A,p)=>{const R=(0,mi.Gd)().getIntegration(ea);return R?function Hi(f,_,A,p,R){if(!(p.exception&&p.exception.values&&R&&(0,Mi.V9)(R.originalException,Error)))return p;const ce=ys(f,A,R.originalException,_);return p.exception.values=[...ce,...p.exception.values],p}(_.getOptions().stackParser,R._key,R._limit,A,p):A})}}function ys(f,_,A,p,R=[]){if(!(0,Mi.V9)(A[p],Error)||R.length+1>=_)return R;const ce=Or(f,A[p]);return ys(f,_,A[p],p,[ce,...R])}ea.__initStatic();class yo{constructor(){yo.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=yo.id}setupOnce(_,A){const p=R=>{const ce=A().getIntegration(yo);if(ce){try{if(function vl(f,_){return!(!_||!function nl(f,_){const A=f.message,p=_.message;return!(!A&&!p||A&&!p||!A&&p||A!==p||!_l(f,_)||!yl(f,_))}(f,_)&&!function Sa(f,_){const A=Sl(_),p=Sl(f);return!!(A&&p&&A.type===p.type&&A.value===p.value&&_l(f,_)&&yl(f,_))}(f,_))}(R,ce._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return ce._previousEvent=R}return ce._previousEvent=R}return R};p.id=this.name,_(p)}}function yl(f,_){let A=Ls(f),p=Ls(_);if(!A&&!p)return!0;if(A&&!p||!A&&p||p.length!==A.length)return!1;for(let R=0;R<p.length;R++){const ce=p[R],Ie=A[R];if(ce.filename!==Ie.filename||ce.lineno!==Ie.lineno||ce.colno!==Ie.colno||ce.function!==Ie.function)return!1}return!0}function _l(f,_){let A=f.fingerprint,p=_.fingerprint;if(!A&&!p)return!0;if(A&&!p||!A&&p)return!1;try{return A.join("")===p.join("")}catch{return!1}}function Sl(f){return f.exception&&f.exception.values&&f.exception.values[0]}function Ls(f){const _=f.exception;if(_)try{return _.values[0].stacktrace.frames}catch{return}}yo.__initStatic();class Pe{constructor(){Pe.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Pe.id}setupOnce(){(0,Ct.c)(_=>{if((0,mi.Gd)().getIntegration(Pe)){if(!Zr.navigator&&!Zr.location&&!Zr.document)return _;const A=_.request&&_.request.url||Zr.location&&Zr.location.href,{referrer:p}=Zr.document||{},{userAgent:R}=Zr.navigator||{},Ie={...A&&{url:A},headers:{..._.request&&_.request.headers,...p&&{Referer:p},...R&&{"User-Agent":R}}};return{..._,request:Ie}}return _})}}Pe.__initStatic();const y=6e4;const xr=30;function en(f,_,A=function rr(f){const _=[];function p(Ie){return _.splice(_.indexOf(Ie),1)[0]}return{$:_,add:function R(Ie){if(!function A(){return void 0===f||_.length<f}())return(0,Bi.$2)(new $n("Not adding Promise because buffer limit was reached."));const Je=Ie();return-1===_.indexOf(Je)&&_.push(Je),Je.then(()=>p(Je)).then(null,()=>p(Je).then(null,()=>{})),Je},drain:function ce(Ie){return new Bi.cW((Je,At)=>{let Gt=_.length;if(!Gt)return Je(!0);const ir=setTimeout(()=>{Ie&&Ie>0&&Je(!1)},Ie);_.forEach(vr=>{(0,Bi.WD)(vr).then(()=>{--Gt||(clearTimeout(ir),Je(!0))},At)})})}}}(f.bufferSize||xr)){let p={};return{send:function ce(Ie){const Je=[];if(Ri(Ie,(vr,Nr)=>{const wr=eo(Nr);if(function Ft(f,_,A=Date.now()){return function at(f,_){return f[_]||f.all||0}(f,_)>A}(p,wr)){const Tr=Pr(vr,Nr);f.recordDroppedEvent("ratelimit_backoff",wr,Tr)}else Je.push(vr)}),0===Je.length)return(0,Bi.WD)();const At=Va(Ie[0],Je),Gt=vr=>{Ri(At,(Nr,wr)=>{const Tr=Pr(Nr,wr);f.recordDroppedEvent(vr,eo(wr),Tr)})};return A.add(()=>_({body:so(At,f.textEncoder)}).then(vr=>{void 0!==vr.statusCode&&(vr.statusCode<200||vr.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn(`Sentry responded with status code ${vr.statusCode} to sent event.`),p=function sr(f,{statusCode:_,headers:A},p=Date.now()){const R={...f},ce=A&&A["x-sentry-rate-limits"],Ie=A&&A["retry-after"];if(ce)for(const Je of ce.trim().split(",")){const[At,Gt]=Je.split(":",2),ir=parseInt(At,10),vr=1e3*(isNaN(ir)?60:ir);if(Gt)for(const Nr of Gt.split(";"))R[Nr]=p+vr;else R.all=p+vr}else Ie?R.all=p+function X(f,_=Date.now()){const A=parseInt(`${f}`,10);if(!isNaN(A))return 1e3*A;const p=Date.parse(`${f}`);return isNaN(p)?y:p-_}(Ie,p):429===_&&(R.all=p+6e4);return R}(p,vr)},vr=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.error("Failed while sending event:",vr),Gt("network_error")})).then(vr=>vr,vr=>{if(vr instanceof $n)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.error("Skipped sending event because buffer is full."),Gt("queue_overflow"),(0,Bi.WD)();throw vr})},flush:Ie=>A.drain(Ie)}}function Pr(f,_){if("event"===_||"transaction"===_)return Array.isArray(f)?f[1]:void 0}let On;function ae(f,_=function ei(){if(On)return On;if((0,Jn.Du)(Zr.fetch))return On=Zr.fetch.bind(Zr);const f=Zr.document;let _=Zr.fetch;if(f&&"function"==typeof f.createElement)try{const A=f.createElement("iframe");A.hidden=!0,f.head.appendChild(A);const p=A.contentWindow;p&&p.fetch&&(_=p.fetch),f.head.removeChild(A)}catch(A){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",A)}return On=_.bind(Zr)}()){return en(f,function A(p){const R={body:p.body,method:"POST",referrerPolicy:"origin",headers:f.headers,keepalive:p.body.length<=65536,...f.fetchOptions};try{return _(f.url,R).then(ce=>({statusCode:ce.status,headers:{"x-sentry-rate-limits":ce.headers.get("X-Sentry-Rate-Limits"),"retry-after":ce.headers.get("Retry-After")}}))}catch(ce){return function Ai(){On=void 0}(),(0,Bi.$2)(ce)}})}const me=4;function J(f){return en(f,function _(A){return new Bi.cW((p,R)=>{const ce=new XMLHttpRequest;ce.onerror=R,ce.onreadystatechange=()=>{ce.readyState===me&&p({statusCode:ce.status,headers:{"x-sentry-rate-limits":ce.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":ce.getResponseHeader("Retry-After")}})},ce.open("POST",f.url);for(const Ie in f.headers)Object.prototype.hasOwnProperty.call(f.headers,Ie)&&ce.setRequestHeader(Ie,f.headers[Ie]);ce.send(A.body)})})}const Oe=[new ra,new Ga,new Bt,new _r,new An,new ea,new yo,new Pe];function Ca(f){f.startSession({ignoreDuration:!0}),f.captureSession()}const Wo=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;typeof Zone<"u"&&Zone;const Ja=Fr.n2,ss="sentryReplaySession",Ps="replay_event",ai="Unable to send Replay",sl=3e5,li=sl,yd=36e5;function Qe(f){return{timestamp:(new Date).getTime()/1e3,type:"default",...f}}var _t=function(){return _t=Object.assign||function(_){for(var A,p=1,R=arguments.length;p<R;p++)for(var ce in A=arguments[p])Object.prototype.hasOwnProperty.call(A,ce)&&(_[ce]=A[ce]);return _},_t.apply(this,arguments)};function Mr(f){var _="function"==typeof Symbol&&Symbol.iterator,A=_&&f[_],p=0;if(A)return A.call(f);if(f&&"number"==typeof f.length)return{next:function(){return f&&p>=f.length&&(f=void 0),{value:f&&f[p++],done:!f}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")}function Br(f,_){var A="function"==typeof Symbol&&f[Symbol.iterator];if(!A)return f;var R,Ie,p=A.call(f),ce=[];try{for(;(void 0===_||_-- >0)&&!(R=p.next()).done;)ce.push(R.value)}catch(Je){Ie={error:Je}}finally{try{R&&!R.done&&(A=p.return)&&A.call(p)}finally{if(Ie)throw Ie.error}}return ce}function Rn(f,_,A){if(A||2===arguments.length)for(var ce,p=0,R=_.length;p<R;p++)(ce||!(p in _))&&(ce||(ce=Array.prototype.slice.call(_,0,p)),ce[p]=_[p]);return f.concat(ce||Array.prototype.slice.call(_))}var Hn=(()=>{return(f=Hn||(Hn={}))[f.Document=0]="Document",f[f.DocumentType=1]="DocumentType",f[f.Element=2]="Element",f[f.Text=3]="Text",f[f.CDATA=4]="CDATA",f[f.Comment=5]="Comment",Hn;var f})();function zo(f){var _,A=null===(_=f)||void 0===_?void 0:_.host;return Boolean(A&&A.shadowRoot&&A.shadowRoot===f)}function Gs(f){var _=f.maskInputOptions,p=f.type,ce=f.maskInputFn,Ie=f.value||"";return(_[f.tagName.toLowerCase()]||_[p])&&(Ie=ce?ce(Ie):"*".repeat(Ie.length)),Ie}var ls="__rrweb_original__",_A=1,fA=new RegExp("[^a-z0-9-_:]"),hc=-2;function Tu(f){try{var _=f.rules||f.cssRules;return _?Array.from(_).map(mA).join(""):null}catch{return null}}function mA(f){var _=f.cssText;if(function t_(f){return"styleSheet"in f}(f))try{_=Tu(f.styleSheet)||_}catch{}return _}var As,Sd,r_=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Mu=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,Ts=/^(data:)([^,]*),(.*)/i;function Fl(f,_){return(f||"").replace(r_,function(A,p,R,ce,Ie,Je){var At=R||Ie||Je,Gt=p||ce||"";if(!At)return A;if(!Mu.test(At)||Ts.test(At))return"url("+Gt+At+Gt+")";if("/"===At[0])return"url("+Gt+(function gA(f){return(f.indexOf("//")>-1?f.split("/").slice(0,3).join("/"):f.split("/")[0]).split("?")[0]}(_)+At)+Gt+")";var ir=_.split("/"),vr=At.split("/");ir.pop();for(var Nr=0,wr=vr;Nr<wr.length;Nr++){var Tr=wr[Nr];"."!==Tr&&(".."===Tr?ir.pop():ir.push(Tr))}return"url("+Gt+ir.join("/")+Gt+")"})}var n_=/^[^ \t\n\r\u000c]+/,i_=/^[, \t\n\r\u000c]+/;function zl(f,_){if(!_||""===_.trim())return _;var A=f.createElement("a");return A.href=_,A.href}function bA(f){return Boolean("svg"===f.tagName||f.ownerSVGElement)}function Cd(){var f=document.createElement("a");return f.href="",f.href}function a_(f,_,A,p){return"src"===A||"href"===A&&p||"xlink:href"===A&&p&&"#"!==p[0]||"background"===A&&p&&("table"===_||"td"===_||"th"===_)?zl(f,p):"srcset"===A&&p?function pA(f,_){if(""===_.trim())return _;var A=0;function p(Gt){var ir,vr=Gt.exec(_.substring(A));return vr?(A+=(ir=vr[0]).length,ir):""}for(var R=[];p(i_),!(A>=_.length);){var ce=p(n_);if(","===ce.slice(-1))ce=zl(f,ce.substring(0,ce.length-1)),R.push(ce);else{var Ie="";ce=zl(f,ce);for(var Je=!1;;){var At=_.charAt(A);if(""===At){R.push((ce+Ie).trim());break}if(Je)")"===At&&(Je=!1);else{if(","===At){A+=1,R.push((ce+Ie).trim());break}"("===At&&(Je=!0)}Ie+=At,A+=1}}}return R.join(", ")}(f,p):"style"===A&&p?Fl(p,Cd()):"object"===_&&"data"===A&&p?zl(f,p):p}function $c(f,_,A){if(!f)return!1;if(f.nodeType===f.ELEMENT_NODE){if("string"==typeof _){if(f.classList.contains(_))return!0}else for(var p=0;p<f.classList.length;p++)if(_.test(f.classList[p]))return!0;return!(!A||!f.matches(A))||$c(f.parentNode,_,A)}return $c(f.parentNode,_,A)}function fo(f){return void 0===f?"":f.toLowerCase()}function Ml(f,_){var Pn,A=_.doc,p=_.map,R=_.blockClass,ce=_.blockSelector,Ie=_.maskTextClass,Je=_.maskTextSelector,At=_.skipChild,Gt=void 0!==At&&At,ir=_.inlineStylesheet,vr=void 0===ir||ir,Nr=_.maskInputOptions,wr=void 0===Nr?{}:Nr,Tr=_.maskTextFn,jr=_.maskInputFn,_n=_.slimDOMOptions,sn=_.dataURLOptions,Sn=void 0===sn?{}:sn,Nn=_.inlineImages,on=void 0!==Nn&&Nn,jn=_.recordCanvas,gn=void 0!==jn&&jn,pi=_.onSerialize,_a=_.onIframeLoad,to=_.iframeLoadTimeout,Qa=void 0===to?5e3:to,oo=_.keepIframeSrcFn,go=void 0===oo?function(){return!1}:oo,ca=_.preserveWhiteSpace,Si=void 0===ca||ca,So=function Ou(f,_){var A,Sn,p=_.doc,R=_.blockClass,ce=_.blockSelector,Ie=_.maskTextClass,Je=_.maskTextSelector,At=_.inlineStylesheet,Gt=_.maskInputOptions,ir=void 0===Gt?{}:Gt,vr=_.maskTextFn,Nr=_.maskInputFn,wr=_.dataURLOptions,Tr=void 0===wr?{}:wr,jr=_.inlineImages,_n=_.recordCanvas,sn=_.keepIframeSrcFn;if(p.__sn){var Nn=p.__sn.id;Sn=1===Nn?void 0:Nn}switch(f.nodeType){case f.DOCUMENT_NODE:return"CSS1Compat"!==f.compatMode?{type:Hn.Document,childNodes:[],compatMode:f.compatMode,rootId:Sn}:{type:Hn.Document,childNodes:[],rootId:Sn};case f.DOCUMENT_TYPE_NODE:return{type:Hn.DocumentType,name:f.name,publicId:f.publicId,systemId:f.systemId,rootId:Sn};case f.ELEMENT_NODE:for(var on=function o_(f,_,A){if("string"==typeof _){if(f.classList.contains(_))return!0}else for(var p=0;p<f.classList.length;p++)if(_.test(f.classList[p]))return!0;return!!A&&f.matches(A)}(f,R,ce),jn=function AA(f){if(f instanceof HTMLFormElement)return"form";var _=f.tagName.toLowerCase().trim();return fA.test(_)?"div":_}(f),gn={},pi=0,_a=Array.from(f.attributes);pi<_a.length;pi++){var to=_a[pi],Qa=to.name;gn[Qa]=a_(p,jn,Qa,oo=to.value)}if("link"===jn&&At){var go=Array.from(p.styleSheets).find(function(mo){return mo.href===f.href}),ca=null;go&&(ca=Tu(go)),ca&&(delete gn.rel,delete gn.href,gn._cssText=Fl(ca,go.href))}if("style"===jn&&f.sheet&&!(f.innerText||f.textContent||"").trim().length&&(ca=Tu(f.sheet))&&(gn._cssText=Fl(ca,Cd())),"input"===jn||"textarea"===jn||"select"===jn){var oo=f.value;"radio"!==gn.type&&"checkbox"!==gn.type&&"submit"!==gn.type&&"button"!==gn.type&&oo?gn.value=Gs({type:gn.type,tagName:jn,value:oo,maskInputOptions:ir,maskInputFn:Nr}):f.checked&&(gn.checked=f.checked)}if("option"===jn&&(f.selected&&!ir.select?gn.selected=!0:delete gn.selected),"canvas"===jn&&_n)if("2d"===f.__context)(function uA(f){var _=f.getContext("2d");if(!_)return!0;for(var p=0;p<f.width;p+=50)for(var R=0;R<f.height;R+=50){var ce=_.getImageData;if(new Uint32Array((ls in ce?ce[ls]:ce).call(_,p,R,Math.min(50,f.width-p),Math.min(50,f.height-R)).data.buffer).some(function(At){return 0!==At}))return!1}return!0})(f)||(gn.rr_dataURL=f.toDataURL(Tr.type,Tr.quality));else if(!("__context"in f)){var Si=f.toDataURL(Tr.type,Tr.quality),So=document.createElement("canvas");So.width=f.width,So.height=f.height,Si!==So.toDataURL(Tr.type,Tr.quality)&&(gn.rr_dataURL=Si)}if("img"===jn&&jr){As||(As=p.createElement("canvas"),Sd=As.getContext("2d"));var In=f,Vn=In.crossOrigin;In.crossOrigin="anonymous";var hn=function(){try{As.width=In.naturalWidth,As.height=In.naturalHeight,Sd.drawImage(In,0,0),gn.rr_dataURL=As.toDataURL(Tr.type,Tr.quality)}catch(mo){console.warn("Cannot inline img src="+In.currentSrc+"! Error: "+mo)}Vn?gn.crossOrigin=Vn:delete gn.crossOrigin};In.complete&&0!==In.naturalWidth?hn():In.onload=hn}if(("audio"===jn||"video"===jn)&&(gn.rr_mediaState=f.paused?"paused":"played",gn.rr_mediaCurrentTime=f.currentTime),f.scrollLeft&&(gn.rr_scrollLeft=f.scrollLeft),f.scrollTop&&(gn.rr_scrollTop=f.scrollTop),on){var ln=f.getBoundingClientRect();gn={class:gn.class,rr_width:ln.width+"px",rr_height:ln.height+"px"}}return"iframe"===jn&&!sn(gn.src)&&(f.contentDocument||(gn.rr_src=gn.src),delete gn.src),{type:Hn.Element,tagName:jn,attributes:gn,childNodes:[],isSVG:bA(f)||void 0,needBlock:on,rootId:Sn};case f.TEXT_NODE:var Ma=f.parentNode&&f.parentNode.tagName,Di=f.textContent,el="STYLE"===Ma||void 0,tl="SCRIPT"===Ma||void 0;if(el&&Di){try{f.nextSibling||f.previousSibling||null!==(A=f.parentNode.sheet)&&void 0!==A&&A.cssRules&&(Di=function hA(f){return f.cssRules?Array.from(f.cssRules).map(function(_){return _.cssText||""}).join(""):""}(f.parentNode.sheet))}catch(mo){console.warn("Cannot get CSS styles from text's parentNode. Error: "+mo,f)}Di=Fl(Di,Cd())}return tl&&(Di="SCRIPT_PLACEHOLDER"),!el&&!tl&&$c(f,Ie,Je)&&Di&&(Di=vr?vr(Di):Di.replace(/[\S]/g,"*")),{type:Hn.Text,textContent:Di||"",isStyle:el,rootId:Sn};case f.CDATA_SECTION_NODE:return{type:Hn.CDATA,textContent:"",rootId:Sn};case f.COMMENT_NODE:return{type:Hn.Comment,textContent:f.textContent||"",rootId:Sn};default:return!1}}(f,{doc:A,blockClass:R,blockSelector:ce,maskTextClass:Ie,maskTextSelector:Je,inlineStylesheet:vr,maskInputOptions:wr,maskTextFn:Tr,maskInputFn:jr,dataURLOptions:Sn,inlineImages:on,recordCanvas:gn,keepIframeSrcFn:go});if(!So)return console.warn(f,"not serialized"),null;Pn="__sn"in f?f.__sn.id:function vA(f,_){if(_.comment&&f.type===Hn.Comment)return!0;if(f.type===Hn.Element){if(_.script&&("script"===f.tagName||"link"===f.tagName&&"preload"===f.attributes.rel&&"script"===f.attributes.as||"link"===f.tagName&&"prefetch"===f.attributes.rel&&"string"==typeof f.attributes.href&&f.attributes.href.endsWith(".js")))return!0;if(_.headFavicon&&("link"===f.tagName&&"shortcut icon"===f.attributes.rel||"meta"===f.tagName&&(fo(f.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===fo(f.attributes.name)||"icon"===fo(f.attributes.rel)||"apple-touch-icon"===fo(f.attributes.rel)||"shortcut icon"===fo(f.attributes.rel))))return!0;if("meta"===f.tagName){if(_.headMetaDescKeywords&&fo(f.attributes.name).match(/^description|keywords$/))return!0;if(_.headMetaSocial&&(fo(f.attributes.property).match(/^(og|twitter|fb):/)||fo(f.attributes.name).match(/^(og|twitter):/)||"pinterest"===fo(f.attributes.name)))return!0;if(_.headMetaRobots&&("robots"===fo(f.attributes.name)||"googlebot"===fo(f.attributes.name)||"bingbot"===fo(f.attributes.name)))return!0;if(_.headMetaHttpEquiv&&void 0!==f.attributes["http-equiv"])return!0;if(_.headMetaAuthorship&&("author"===fo(f.attributes.name)||"generator"===fo(f.attributes.name)||"framework"===fo(f.attributes.name)||"publisher"===fo(f.attributes.name)||"progid"===fo(f.attributes.name)||fo(f.attributes.property).match(/^article:/)||fo(f.attributes.property).match(/^product:/)))return!0;if(_.headMetaVerification&&("google-site-verification"===fo(f.attributes.name)||"yandex-verification"===fo(f.attributes.name)||"csrf-token"===fo(f.attributes.name)||"p:domain_verify"===fo(f.attributes.name)||"verify-v1"===fo(f.attributes.name)||"verification"===fo(f.attributes.name)||"shopify-checkout-api-token"===fo(f.attributes.name)))return!0}}return!1}(So,_n)||!Si&&So.type===Hn.Text&&!So.isStyle&&!So.textContent.replace(/^\s+|\s+$/gm,"").length?hc:function Cu(){return _A++}();var In=Object.assign(So,{id:Pn});if(f.__sn=In,Pn===hc)return null;p[Pn]=f,pi&&pi(f);var Vn=!Gt;if(In.type===Hn.Element&&(Vn=Vn&&!In.needBlock,delete In.needBlock,f.shadowRoot&&(In.isShadowHost=!0)),(In.type===Hn.Document||In.type===Hn.Element)&&Vn){_n.headWhitespace&&So.type===Hn.Element&&"head"===So.tagName&&(Si=!1);for(var hn={doc:A,map:p,blockClass:R,blockSelector:ce,maskTextClass:Ie,maskTextSelector:Je,skipChild:Gt,inlineStylesheet:vr,maskInputOptions:wr,maskTextFn:Tr,maskInputFn:jr,slimDOMOptions:_n,dataURLOptions:Sn,inlineImages:on,recordCanvas:gn,preserveWhiteSpace:Si,onSerialize:pi,onIframeLoad:_a,iframeLoadTimeout:Qa,keepIframeSrcFn:go},ln=0,bi=Array.from(f.childNodes);ln<bi.length;ln++)(Ma=Ml(bi[ln],hn))&&In.childNodes.push(Ma);if(function Ha(f){return f.nodeType===f.ELEMENT_NODE}(f)&&f.shadowRoot)for(var Di=0,el=Array.from(f.shadowRoot.childNodes);Di<el.length;Di++){var Ma;(Ma=Ml(el[Di],hn))&&(Ma.isShadow=!0,In.childNodes.push(Ma))}}return f.parentNode&&zo(f.parentNode)&&(In.isShadow=!0),In.type===Hn.Element&&"iframe"===In.tagName&&function EA(f,_,A){var p=f.contentWindow;if(p){var ce,R=!1;try{ce=p.document.readyState}catch{return}if("complete"!==ce){var Ie=setTimeout(function(){R||(_(),R=!0)},A);return void f.addEventListener("load",function(){clearTimeout(Ie),R=!0,_()})}var Je="about:blank";if(p.location.href!==Je||f.src===Je||""===f.src)return void setTimeout(_,0);f.addEventListener("load",_)}}(f,function(){var tl=f.contentDocument;if(tl&&_a){var mo=Ml(tl,{doc:tl,map:p,blockClass:R,blockSelector:ce,maskTextClass:Ie,maskTextSelector:Je,skipChild:!1,inlineStylesheet:vr,maskInputOptions:wr,maskTextFn:Tr,maskInputFn:jr,slimDOMOptions:_n,dataURLOptions:Sn,inlineImages:on,recordCanvas:gn,preserveWhiteSpace:Si,onSerialize:pi,onIframeLoad:_a,iframeLoadTimeout:Qa,keepIframeSrcFn:go});mo&&_a(f,mo)}},Qa),In}new RegExp(/([^\\]):hover/.source,"g");var io=(()=>{return(f=io||(io={}))[f.DomContentLoaded=0]="DomContentLoaded",f[f.Load=1]="Load",f[f.FullSnapshot=2]="FullSnapshot",f[f.IncrementalSnapshot=3]="IncrementalSnapshot",f[f.Meta=4]="Meta",f[f.Custom=5]="Custom",f[f.Plugin=6]="Plugin",io;var f})(),cs=(()=>{return(f=cs||(cs={}))[f.Mutation=0]="Mutation",f[f.MouseMove=1]="MouseMove",f[f.MouseInteraction=2]="MouseInteraction",f[f.Scroll=3]="Scroll",f[f.ViewportResize=4]="ViewportResize",f[f.Input=5]="Input",f[f.TouchMove=6]="TouchMove",f[f.MediaInteraction=7]="MediaInteraction",f[f.StyleSheetRule=8]="StyleSheetRule",f[f.CanvasMutation=9]="CanvasMutation",f[f.Font=10]="Font",f[f.Log=11]="Log",f[f.Drag=12]="Drag",f[f.StyleDeclaration=13]="StyleDeclaration",cs;var f})(),Xl=(()=>{return(f=Xl||(Xl={}))[f.MouseUp=0]="MouseUp",f[f.MouseDown=1]="MouseDown",f[f.Click=2]="Click",f[f.ContextMenu=3]="ContextMenu",f[f.DblClick=4]="DblClick",f[f.Focus=5]="Focus",f[f.Blur=6]="Blur",f[f.TouchStart=7]="TouchStart",f[f.TouchMove_Departed=8]="TouchMove_Departed",f[f.TouchEnd=9]="TouchEnd",f[f.TouchCancel=10]="TouchCancel",Xl;var f})(),Jl=(()=>{return(f=Jl||(Jl={}))[f["2D"]=0]="2D",f[f.WebGL=1]="WebGL",f[f.WebGL2=2]="WebGL2",Jl;var f})();function Us(f,_,A){void 0===A&&(A=document);var p={capture:!0,passive:!0};return A.addEventListener(f,_,p),function(){return A.removeEventListener(f,_,p)}}var ql="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.",xu={map:{},getId:function(){return console.error(ql),-1},getNode:function(){return console.error(ql),null},removeNodeFromMap:function(){console.error(ql)},has:function(){return console.error(ql),!1},reset:function(){console.error(ql)}};function Vc(f,_,A){void 0===A&&(A={});var p=null,R=0;return function(ce){var Ie=Date.now();!R&&!1===A.leading&&(R=Ie);var Je=_-(Ie-R),At=this,Gt=arguments;Je<=0||Je>_?(p&&(clearTimeout(p),p=null),R=Ie,f.apply(At,Gt)):!p&&!1!==A.trailing&&(p=setTimeout(function(){R=!1===A.leading?0:Date.now(),p=null,f.apply(At,Gt)},Je))}}function Iu(f,_,A,p,R){void 0===R&&(R=window);var ce=R.Object.getOwnPropertyDescriptor(f,_);return R.Object.defineProperty(f,_,p?A:{set:function(Ie){var Je=this;setTimeout(function(){A.set.call(Je,Ie)},0),ce&&ce.set&&ce.set.call(this,Ie)}}),function(){return Iu(f,_,ce||{},!0)}}function Ol(f,_,A){try{if(!(_ in f))return function(){};var p=f[_],R=A(p);return"function"==typeof R&&(R.prototype=R.prototype||{},Object.defineProperties(R,{__rrweb_original__:{enumerable:!1,value:p}})),f[_]=R,function(){f[_]=p}}catch{return function(){}}}function __(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Du(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ms(f,_){if(!f)return!1;if(f.nodeType===f.ELEMENT_NODE){var A=!1;if("string"==typeof _){if(void 0!==f.closest)return null!==f.closest("."+_);A=f.classList.contains(_)}else f.classList.forEach(function(p){_.test(p)&&(A=!0)});return A||Ms(f.parentNode,_)}return Ms(f.parentNode,_)}function Md(f){return"__sn"in f&&f.__sn.id===hc}function Od(f,_){if(zo(f))return!1;var A=_.getId(f);return!_.has(A)||(!f.parentNode||f.parentNode.nodeType!==f.DOCUMENT_NODE)&&(!f.parentNode||Od(f.parentNode,_))}function Pu(f){return Boolean(f.changedTouches)}function wd(f){return"__sn"in f&&f.__sn.type===Hn.Element&&"iframe"===f.__sn.tagName}function gc(f){return Boolean(f?.shadowRoot)}function f_(f){return"__ln"in f}typeof window<"u"&&window.Proxy&&window.Reflect&&(xu=new Proxy(xu,{get:function(f,_,A){return"map"===_&&console.error(ql),Reflect.get(f,_,A)}})),function(){function f(){this.reset()}f.prototype.add=function(_){var A=this.indexes.get(_.parentId),p={id:_.node.id,mutation:_,children:[],texts:[],attributes:[]};A?(p.parent=A,A.children[p.id]=p):this.tree[p.id]=p,this.indexes.set(p.id,p)},f.prototype.remove=function(_,A){var p=this,R=this.indexes.get(_.parentId),ce=this.indexes.get(_.id),Ie=function(At){p.removeIdSet.add(At),A.getNode(At)?.childNodes.forEach(function(ir){"__sn"in ir&&Ie(ir.__sn.id)})},Je=function(At){p.removeIdSet.add(At.id),Object.values(At.children).forEach(function(vr){return Je(vr)});var Gt=p.indexes.get(At.id);if(Gt){var ir=Gt.parent;ir&&(delete Gt.parent,delete ir.children[Gt.id],p.indexes.delete(_.id))}};ce?R?(delete ce.parent,delete R.children[ce.id],this.indexes.delete(_.id),Je(ce)):(delete this.tree[ce.id],this.indexes.delete(ce.id),Je(ce)):(this.removeNodeMutations.push(_),Ie(_.id))},f.prototype.text=function(_){var A=this.indexes.get(_.id);A?A.texts.push(_):this.textMutations.push(_)},f.prototype.attribute=function(_){var A=this.indexes.get(_.id);A?A.attributes.push(_):this.attributeMutations.push(_)},f.prototype.scroll=function(_){this.scrollMap.set(_.id,_)},f.prototype.input=function(_){this.inputMap.set(_.id,_)},f.prototype.flush=function(){var _,A,p,R,ce=this,vr={source:cs.Mutation,removes:this.removeNodeMutations,texts:this.textMutations,attributes:this.attributeMutations,adds:[]},Nr=function(on,jn){jn&&ce.removeIdSet.add(on.id),vr.texts=vr.texts.concat(jn?[]:on.texts).filter(function(gn){return!ce.removeIdSet.has(gn.id)}),vr.attributes=vr.attributes.concat(jn?[]:on.attributes).filter(function(gn){return!ce.removeIdSet.has(gn.id)}),ce.removeIdSet.has(on.id)||ce.removeIdSet.has(on.mutation.parentId)||jn?Object.values(on.children).forEach(function(gn){return Nr(gn,!0)}):(vr.adds.push(on.mutation),on.children&&Object.values(on.children).forEach(function(gn){return Nr(gn,!1)}))};Object.values(this.tree).forEach(function(on){return Nr(on,!1)});try{for(var wr=Mr(this.scrollMap.keys()),Tr=wr.next();!Tr.done;Tr=wr.next())this.removeIdSet.has(jr=Tr.value)&&this.scrollMap.delete(jr)}catch(on){_={error:on}}finally{try{Tr&&!Tr.done&&(A=wr.return)&&A.call(wr)}finally{if(_)throw _.error}}try{for(var _n=Mr(this.inputMap.keys()),sn=_n.next();!sn.done;sn=_n.next()){var jr;this.removeIdSet.has(jr=sn.value)&&this.inputMap.delete(jr)}}catch(on){p={error:on}}finally{try{sn&&!sn.done&&(R=_n.return)&&R.call(_n)}finally{if(p)throw p.error}}var Sn=new Map(this.scrollMap),Nn=new Map(this.inputMap);return this.reset(),{mutationData:vr,scrollMap:Sn,inputMap:Nn}},f.prototype.reset=function(){this.tree=[],this.indexes=new Map,this.removeNodeMutations=[],this.textMutations=[],this.attributeMutations=[],this.removeIdSet=new Set,this.scrollMap=new Map,this.inputMap=new Map},f.prototype.idRemoved=function(_){return this.removeIdSet.has(_)}}();var A_=function(){function f(){this.length=0,this.head=null}return f.prototype.get=function(_){if(_>=this.length)throw new Error("Position outside of list range");for(var A=this.head,p=0;p<_;p++)A=A?.next||null;return A},f.prototype.addNode=function(_){var A={value:_,previous:null,next:null};if(_.__ln=A,_.previousSibling&&f_(_.previousSibling))A.next=p=_.previousSibling.__ln.next,A.previous=_.previousSibling.__ln,_.previousSibling.__ln.next=A,p&&(p.previous=A);else if(_.nextSibling&&f_(_.nextSibling)&&_.nextSibling.__ln.previous){var p;A.previous=p=_.nextSibling.__ln.previous,A.next=_.nextSibling.__ln,_.nextSibling.__ln.previous=A,p&&(p.next=A)}else this.head&&(this.head.previous=A),A.next=this.head,this.head=A;this.length++},f.prototype.removeNode=function(_){var A=_.__ln;this.head&&(A.previous?(A.previous.next=A.next,A.next&&(A.next.previous=A.previous)):(this.head=A.next,this.head&&(this.head.previous=null)),_.__ln&&delete _.__ln,this.length--)},f}(),m_=function(f,_){return"".concat(f,"@").concat(_)};function h_(f){return"__sn"in f}var wA=function(){function f(){var _=this;this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=function(A){A.forEach(_.processMutation),_.emit()},this.emit=function(){var A,p,R,ce;if(!_.frozen&&!_.locked){for(var Ie=[],Je=new A_,At=function(gn){for(var pi=gn,_a=hc;_a===hc;)_a=(pi=pi&&pi.nextSibling)&&_.mirror.getId(pi);return _a},Gt=function(gn){for(var pi,_a,to,Qa,oo,go=gn.getRootNode?null===(pi=gn.getRootNode())||void 0===pi?void 0:pi.host:null,ca=go;null!==(to=null===(_a=ca?.getRootNode)||void 0===_a?void 0:_a.call(ca))&&void 0!==to&&to.host;)ca=(null===(oo=null===(Qa=ca?.getRootNode)||void 0===Qa?void 0:Qa.call(ca))||void 0===oo?void 0:oo.host)||null;var Si=!(_.doc.contains(gn)||null!==ca&&_.doc.contains(ca));if(gn.parentNode&&!Si){var So=zo(gn.parentNode)?_.mirror.getId(go):_.mirror.getId(gn.parentNode),Pn=At(gn);if(-1===So||-1===Pn)return Je.addNode(gn);var In=Ml(gn,{doc:_.doc,map:_.mirror.map,blockClass:_.blockClass,blockSelector:_.blockSelector,maskTextClass:_.maskTextClass,maskTextSelector:_.maskTextSelector,skipChild:!0,inlineStylesheet:_.inlineStylesheet,maskInputOptions:_.maskInputOptions,maskTextFn:_.maskTextFn,maskInputFn:_.maskInputFn,slimDOMOptions:_.slimDOMOptions,recordCanvas:_.recordCanvas,inlineImages:_.inlineImages,onSerialize:function(Vn){wd(Vn)&&_.iframeManager.addIframe(Vn),gc(gn)&&_.shadowDomManager.addShadowRoot(gn.shadowRoot,document)},onIframeLoad:function(Vn,hn){_.iframeManager.attachIframe(Vn,hn),_.shadowDomManager.observeAttachShadow(Vn)}});In&&Ie.push({parentId:So,nextId:Pn,node:In})}};_.mapRemoves.length;)_.mirror.removeNodeFromMap(_.mapRemoves.shift());try{for(var ir=Mr(_.movedSet),vr=ir.next();!vr.done;vr=ir.next())xd(_.removes,Nr=vr.value,_.mirror)&&!_.movedSet.has(Nr.parentNode)||Gt(Nr)}catch(gn){A={error:gn}}finally{try{vr&&!vr.done&&(p=ir.return)&&p.call(ir)}finally{if(A)throw A.error}}try{for(var wr=Mr(_.addedSet),Tr=wr.next();!Tr.done;Tr=wr.next()){var Nr;!pc(_.droppedSet,Nr=Tr.value)&&!xd(_.removes,Nr,_.mirror)||pc(_.movedSet,Nr)?Gt(Nr):_.droppedSet.add(Nr)}}catch(gn){R={error:gn}}finally{try{Tr&&!Tr.done&&(ce=wr.return)&&ce.call(wr)}finally{if(R)throw R.error}}for(var jr=null;Je.length;){var _n=null;if(jr){var sn=_.mirror.getId(jr.value.parentNode),Sn=At(jr.value);-1!==sn&&-1!==Sn&&(_n=jr)}if(!_n)for(var Nn=Je.length-1;Nn>=0;Nn--){var on=Je.get(Nn);if(on&&(sn=_.mirror.getId(on.value.parentNode),Sn=At(on.value),-1!==sn&&-1!==Sn)){_n=on;break}}if(!_n){for(;Je.head;)Je.removeNode(Je.head.value);break}jr=_n.previous,Je.removeNode(_n.value),Gt(_n.value)}var jn={texts:_.texts.map(function(gn){return{id:_.mirror.getId(gn.node),value:gn.value}}).filter(function(gn){return _.mirror.has(gn.id)}),attributes:_.attributes.map(function(gn){return{id:_.mirror.getId(gn.node),attributes:gn.attributes}}).filter(function(gn){return _.mirror.has(gn.id)}),removes:_.removes,adds:Ie};!jn.texts.length&&!jn.attributes.length&&!jn.removes.length&&!jn.adds.length||(_.texts=[],_.attributes=[],_.removes=[],_.addedSet=new Set,_.movedSet=new Set,_.droppedSet=new Set,_.movedMap={},_.mutationCb(jn))}},this.processMutation=function(A){var p,R,ce,Ie;if(!Md(A.target))switch(A.type){case"characterData":var Je=A.target.textContent;!Ms(A.target,_.blockClass)&&Je!==A.oldValue&&_.texts.push({value:$c(A.target,_.maskTextClass,_.maskTextSelector)&&Je?_.maskTextFn?_.maskTextFn(Je):Je.replace(/[\S]/g,"*"):Je,node:A.target});break;case"attributes":var At=A.target;if(Je=A.target.getAttribute(A.attributeName),"value"===A.attributeName&&(Je=Gs({maskInputOptions:_.maskInputOptions,tagName:A.target.tagName,type:A.target.getAttribute("type"),value:Je,maskInputFn:_.maskInputFn})),Ms(A.target,_.blockClass)||Je===A.oldValue)return;var Gt=_.attributes.find(function(on){return on.node===A.target});if(Gt||_.attributes.push(Gt={node:A.target,attributes:{}}),"style"===A.attributeName){var ir=_.doc.createElement("span");A.oldValue&&ir.setAttribute("style",A.oldValue),null==Gt.attributes.style&&(Gt.attributes.style={});var vr=Gt.attributes.style;try{for(var Nr=Mr(Array.from(At.style)),wr=Nr.next();!wr.done;wr=Nr.next()){var jr=At.style.getPropertyValue(Tr=wr.value),_n=At.style.getPropertyPriority(Tr);(jr!==ir.style.getPropertyValue(Tr)||_n!==ir.style.getPropertyPriority(Tr))&&(vr[Tr]=""===_n?jr:[jr,_n])}}catch(on){p={error:on}}finally{try{wr&&!wr.done&&(R=Nr.return)&&R.call(Nr)}finally{if(p)throw p.error}}try{for(var sn=Mr(Array.from(ir.style)),Sn=sn.next();!Sn.done;Sn=sn.next()){var Tr;""===At.style.getPropertyValue(Tr=Sn.value)&&(vr[Tr]=!1)}}catch(on){ce={error:on}}finally{try{Sn&&!Sn.done&&(Ie=sn.return)&&Ie.call(sn)}finally{if(ce)throw ce.error}}}else Gt.attributes[A.attributeName]=a_(_.doc,A.target.tagName,A.attributeName,Je);break;case"childList":A.addedNodes.forEach(function(Nn){return _.genAdds(Nn,A.target)}),A.removedNodes.forEach(function(Nn){var on=_.mirror.getId(Nn),jn=zo(A.target)?_.mirror.getId(A.target.host):_.mirror.getId(A.target);Ms(A.target,_.blockClass)||Md(Nn)||(_.addedSet.has(Nn)?(Rd(_.addedSet,Nn),_.droppedSet.add(Nn)):_.addedSet.has(A.target)&&-1===on||Od(A.target,_.mirror)||(_.movedSet.has(Nn)&&_.movedMap[m_(on,jn)]?Rd(_.movedSet,Nn):_.removes.push({parentId:jn,id:on,isShadow:!!zo(A.target)||void 0})),_.mapRemoves.push(Nn))})}},this.genAdds=function(A,p){if(!p||!Ms(p,_.blockClass)){if(h_(A)){if(Md(A))return;_.movedSet.add(A);var R=null;p&&h_(p)&&(R=p.__sn.id),R&&(_.movedMap[m_(A.__sn.id,R)]=!0)}else _.addedSet.add(A),_.droppedSet.delete(A);Ms(A,_.blockClass)||A.childNodes.forEach(function(ce){return _.genAdds(ce)})}}}return f.prototype.init=function(_){var A=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach(function(p){A[p]=_[p]})},f.prototype.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},f.prototype.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},f.prototype.isFrozen=function(){return this.frozen},f.prototype.lock=function(){this.locked=!0,this.canvasManager.lock()},f.prototype.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},f.prototype.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},f}();function Rd(f,_){f.delete(_),_.childNodes.forEach(function(A){return Rd(f,A)})}function xd(f,_,A){var p=_.parentNode;if(!p)return!1;var R=A.getId(p);return!!f.some(function(ce){return ce.id===R})||xd(f,p,A)}function pc(f,_){var A=_.parentNode;return!!A&&(!!f.has(A)||pc(f,A))}var Nl=[],Kl=typeof CSSGroupingRule<"u",g_=typeof CSSMediaRule<"u",p_=typeof CSSSupportsRule<"u",RA=typeof CSSConditionRule<"u";function Wc(f){try{if("composedPath"in f){var _=f.composedPath();if(_.length)return _[0]}else if("path"in f&&f.path.length)return f.path[0];return f.target}catch{return f.target}}function Id(f,_){var A,p,R=new wA;Nl.push(R),R.init(f);var ce=window.MutationObserver||window.__rrMutationObserver,Ie=null===(p=null===(A=window?.Zone)||void 0===A?void 0:A.__symbol__)||void 0===p?void 0:p.call(A,"MutationObserver");Ie&&window[Ie]&&(ce=window[Ie]);var Je=new ce(R.processMutations.bind(R));return Je.observe(_,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),Je}function zc(f){var _=f.scrollCb,A=f.doc,p=f.mirror,R=f.blockClass;return Us("scroll",Vc(function(Je){var At=Wc(Je);if(At&&!Ms(At,R)){var Gt=p.getId(At);if(At===A){var ir=A.scrollingElement||A.documentElement;_({id:Gt,x:ir.scrollLeft,y:ir.scrollTop})}else _({id:Gt,x:At.scrollLeft,y:At.scrollTop})}},f.sampling.scroll||100),A)}function Uu(f,_){var A=_t({},f);return _||delete A.userTriggered,A}var E_=["INPUT","TEXTAREA","SELECT"],Bu=new WeakMap;function Dd(f){return function A(p,R){if(Kl&&p.parentRule instanceof CSSGroupingRule||g_&&p.parentRule instanceof CSSMediaRule||p_&&p.parentRule instanceof CSSSupportsRule||RA&&p.parentRule instanceof CSSConditionRule){var Ie=Array.from(p.parentRule.cssRules).indexOf(p);R.unshift(Ie)}else Ie=Array.from(p.parentStyleSheet.cssRules).indexOf(p),R.unshift(Ie);return R}(f,[])}function bc(f,_){var A,p;void 0===_&&(_={});var R=f.doc.defaultView;if(!R)return function(){};!function wl(f,_){var A=f.mutationCb,p=f.mousemoveCb,R=f.mouseInteractionCb,ce=f.scrollCb,Ie=f.viewportResizeCb,Je=f.inputCb,At=f.mediaInteractionCb,Gt=f.styleSheetRuleCb,ir=f.styleDeclarationCb,vr=f.canvasMutationCb,Nr=f.fontCb;f.mutationCb=function(){for(var wr=[],Tr=0;Tr<arguments.length;Tr++)wr[Tr]=arguments[Tr];_.mutation&&_.mutation.apply(_,Rn([],Br(wr),!1)),A.apply(void 0,Rn([],Br(wr),!1))},f.mousemoveCb=function(){for(var wr=[],Tr=0;Tr<arguments.length;Tr++)wr[Tr]=arguments[Tr];_.mousemove&&_.mousemove.apply(_,Rn([],Br(wr),!1)),p.apply(void 0,Rn([],Br(wr),!1))},f.mouseInteractionCb=function(){for(var wr=[],Tr=0;Tr<arguments.length;Tr++)wr[Tr]=arguments[Tr];_.mouseInteraction&&_.mouseInteraction.apply(_,Rn([],Br(wr),!1)),R.apply(void 0,Rn([],Br(wr),!1))},f.scrollCb=function(){for(var wr=[],Tr=0;Tr<arguments.length;Tr++)wr[Tr]=arguments[Tr];_.scroll&&_.scroll.apply(_,Rn([],Br(wr),!1)),ce.apply(void 0,Rn([],Br(wr),!1))},f.viewportResizeCb=function(){for(var wr=[],Tr=0;Tr<arguments.length;Tr++)wr[Tr]=arguments[Tr];_.viewportResize&&_.viewportResize.apply(_,Rn([],Br(wr),!1)),Ie.apply(void 0,Rn([],Br(wr),!1))},f.inputCb=function(){for(var wr=[],Tr=0;Tr<arguments.length;Tr++)wr[Tr]=arguments[Tr];_.input&&_.input.apply(_,Rn([],Br(wr),!1)),Je.apply(void 0,Rn([],Br(wr),!1))},f.mediaInteractionCb=function(){for(var wr=[],Tr=0;Tr<arguments.length;Tr++)wr[Tr]=arguments[Tr];_.mediaInteaction&&_.mediaInteaction.apply(_,Rn([],Br(wr),!1)),At.apply(void 0,Rn([],Br(wr),!1))},f.styleSheetRuleCb=function(){for(var wr=[],Tr=0;Tr<arguments.length;Tr++)wr[Tr]=arguments[Tr];_.styleSheetRule&&_.styleSheetRule.apply(_,Rn([],Br(wr),!1)),Gt.apply(void 0,Rn([],Br(wr),!1))},f.styleDeclarationCb=function(){for(var wr=[],Tr=0;Tr<arguments.length;Tr++)wr[Tr]=arguments[Tr];_.styleDeclaration&&_.styleDeclaration.apply(_,Rn([],Br(wr),!1)),ir.apply(void 0,Rn([],Br(wr),!1))},f.canvasMutationCb=function(){for(var wr=[],Tr=0;Tr<arguments.length;Tr++)wr[Tr]=arguments[Tr];_.canvasMutation&&_.canvasMutation.apply(_,Rn([],Br(wr),!1)),vr.apply(void 0,Rn([],Br(wr),!1))},f.fontCb=function(){for(var wr=[],Tr=0;Tr<arguments.length;Tr++)wr[Tr]=arguments[Tr];_.font&&_.font.apply(_,Rn([],Br(wr),!1)),Nr.apply(void 0,Rn([],Br(wr),!1))}}(f,_);var ce=Id(f,f.doc),Ie=function xA(f){var _=f.mousemoveCb,A=f.sampling,p=f.doc,R=f.mirror;if(!1===A.mousemove)return function(){};var At,ce="number"==typeof A.mousemove?A.mousemove:50,Je=[],Gt=Vc(function(Nr){var wr=Date.now()-At;_(Je.map(function(Tr){return Tr.timeOffset-=wr,Tr}),Nr),Je=[],At=null},"number"==typeof A.mousemoveCallback?A.mousemoveCallback:500),ir=Vc(function(Nr){var wr=Wc(Nr),Tr=Pu(Nr)?Nr.changedTouches[0]:Nr,jr=Tr.clientX,_n=Tr.clientY;At||(At=Date.now()),Je.push({x:jr,y:_n,id:R.getId(wr),timeOffset:Date.now()-At}),Gt(typeof DragEvent<"u"&&Nr instanceof DragEvent?cs.Drag:Nr instanceof MouseEvent?cs.MouseMove:cs.TouchMove)},ce,{trailing:!1}),vr=[Us("mousemove",ir,p),Us("touchmove",ir,p),Us("drag",ir,p)];return function(){vr.forEach(function(Nr){return Nr()})}}(f),Je=function b_(f){var _=f.mouseInteractionCb,A=f.doc,p=f.mirror,R=f.blockClass,ce=f.sampling;if(!1===ce.mouseInteraction)return function(){};var Ie=!0===ce.mouseInteraction||void 0===ce.mouseInteraction?{}:ce.mouseInteraction,Je=[];return Object.keys(Xl).filter(function(Gt){return Number.isNaN(Number(Gt))&&!Gt.endsWith("_Departed")&&!1!==Ie[Gt]}).forEach(function(Gt){var ir=Gt.toLowerCase(),vr=function(Gt){return function(ir){var vr=Wc(ir);if(!Ms(vr,R)){var Nr=Pu(ir)?ir.changedTouches[0]:ir;if(Nr){var wr=p.getId(vr);_({type:Xl[Gt],id:wr,x:Nr.clientX,y:Nr.clientY})}}}}(Gt);Je.push(Us(ir,vr,A))}),function(){Je.forEach(function(Gt){return Gt()})}}(f),At=zc(f),Gt=function Gu(f){var _=f.viewportResizeCb,A=-1,p=-1;return Us("resize",Vc(function(){var ce=__(),Ie=Du();(A!==ce||p!==Ie)&&(_({width:Number(Ie),height:Number(ce)}),A=ce,p=Ie)},200),window)}(f),ir=function ec(f){var _=f.inputCb,A=f.doc,p=f.mirror,R=f.blockClass,ce=f.ignoreClass,Ie=f.maskInputOptions,Je=f.maskInputFn,Gt=f.userTriggeredOnInput;function ir(_n){var sn=Wc(_n),Sn=_n.isTrusted;if(sn&&"OPTION"===sn.tagName&&(sn=sn.parentElement),sn&&sn.tagName&&!(E_.indexOf(sn.tagName)<0)&&!Ms(sn,R)){var Nn=sn.type;if(!sn.classList.contains(ce)){var on=sn.value,jn=!1;"radio"===Nn||"checkbox"===Nn?jn=sn.checked:(Ie[sn.tagName.toLowerCase()]||Ie[Nn])&&(on=Gs({maskInputOptions:Ie,tagName:sn.tagName,type:Nn,value:on,maskInputFn:Je})),vr(sn,Uu({text:on,isChecked:jn,userTriggered:Sn},Gt));var gn=sn.name;"radio"===Nn&&gn&&jn&&A.querySelectorAll('input[type="radio"][name="'.concat(gn,'"]')).forEach(function(pi){pi!==sn&&vr(pi,Uu({text:pi.value,isChecked:!jn,userTriggered:!1},Gt))})}}}function vr(_n,sn){var Sn=Bu.get(_n);if(!Sn||Sn.text!==sn.text||Sn.isChecked!==sn.isChecked){Bu.set(_n,sn);var Nn=p.getId(_n);_(_t(_t({},sn),{id:Nn}))}}var wr=("last"===f.sampling.input?["change"]:["input","change"]).map(function(_n){return Us(_n,ir,A)}),Tr=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),jr=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return Tr&&Tr.set&&wr.push.apply(wr,Rn([],Br(jr.map(function(_n){return Iu(_n[0],_n[1],{set:function(){ir({target:this})}})})),!1)),function(){wr.forEach(function(_n){return _n()})}}(f),vr=function PA(f){var _=f.mediaInteractionCb,A=f.blockClass,p=f.mirror,R=f.sampling,ce=function(Je){return Vc(function(At){var Gt=Wc(At);if(Gt&&!Ms(Gt,A)){var vr=Gt.currentTime,Nr=Gt.volume,wr=Gt.muted;_({type:Je,id:p.getId(Gt),currentTime:vr,volume:Nr,muted:wr})}},R.media||500)},Ie=[Us("play",ce(0)),Us("pause",ce(1)),Us("seeked",ce(2)),Us("volumechange",ce(3))];return function(){Ie.forEach(function(Je){return Je()})}}(f),Nr=function IA(f,_){var A=f.styleSheetRuleCb,p=f.mirror,R=_.win,ce=R.CSSStyleSheet.prototype.insertRule;R.CSSStyleSheet.prototype.insertRule=function(Gt,ir){var vr=p.getId(this.ownerNode);return-1!==vr&&A({id:vr,adds:[{rule:Gt,index:ir}]}),ce.apply(this,arguments)};var Ie=R.CSSStyleSheet.prototype.deleteRule;R.CSSStyleSheet.prototype.deleteRule=function(Gt){var ir=p.getId(this.ownerNode);return-1!==ir&&A({id:ir,removes:[{index:Gt}]}),Ie.apply(this,arguments)};var Je={};Kl?Je.CSSGroupingRule=R.CSSGroupingRule:(g_&&(Je.CSSMediaRule=R.CSSMediaRule),RA&&(Je.CSSConditionRule=R.CSSConditionRule),p_&&(Je.CSSSupportsRule=R.CSSSupportsRule));var At={};return Object.entries(Je).forEach(function(Gt){var ir=Br(Gt,2),vr=ir[0],Nr=ir[1];At[vr]={insertRule:Nr.prototype.insertRule,deleteRule:Nr.prototype.deleteRule},Nr.prototype.insertRule=function(wr,Tr){var jr=p.getId(this.parentStyleSheet.ownerNode);return-1!==jr&&A({id:jr,adds:[{rule:wr,index:Rn(Rn([],Br(Dd(this)),!1),[Tr||0],!1)}]}),At[vr].insertRule.apply(this,arguments)},Nr.prototype.deleteRule=function(wr){var Tr=p.getId(this.parentStyleSheet.ownerNode);return-1!==Tr&&A({id:Tr,removes:[{index:Rn(Rn([],Br(Dd(this)),!1),[wr],!1)}]}),At[vr].deleteRule.apply(this,arguments)}}),function(){R.CSSStyleSheet.prototype.insertRule=ce,R.CSSStyleSheet.prototype.deleteRule=Ie,Object.entries(Je).forEach(function(Gt){var ir=Br(Gt,2),vr=ir[0],Nr=ir[1];Nr.prototype.insertRule=At[vr].insertRule,Nr.prototype.deleteRule=At[vr].deleteRule})}}(f,{win:R}),wr=function DA(f,_){var A=f.styleDeclarationCb,p=f.mirror,R=_.win,ce=R.CSSStyleDeclaration.prototype.setProperty;R.CSSStyleDeclaration.prototype.setProperty=function(Je,At,Gt){var ir,vr,Nr=p.getId(null===(vr=null===(ir=this.parentRule)||void 0===ir?void 0:ir.parentStyleSheet)||void 0===vr?void 0:vr.ownerNode);return-1!==Nr&&A({id:Nr,set:{property:Je,value:At,priority:Gt},index:Dd(this.parentRule)}),ce.apply(this,arguments)};var Ie=R.CSSStyleDeclaration.prototype.removeProperty;return R.CSSStyleDeclaration.prototype.removeProperty=function(Je){var At,Gt,ir=p.getId(null===(Gt=null===(At=this.parentRule)||void 0===At?void 0:At.parentStyleSheet)||void 0===Gt?void 0:Gt.ownerNode);return-1!==ir&&A({id:ir,remove:{property:Je},index:Dd(this.parentRule)}),Ie.apply(this,arguments)},function(){R.CSSStyleDeclaration.prototype.setProperty=ce,R.CSSStyleDeclaration.prototype.removeProperty=Ie}}(f,{win:R}),Tr=f.collectFonts?function kA(f){var _=f.fontCb,A=f.doc,p=A.defaultView;if(!p)return function(){};var R=[],ce=new WeakMap,Ie=p.FontFace;p.FontFace=function(Gt,ir,vr){var Nr=new Ie(Gt,ir,vr);return ce.set(Nr,{family:Gt,buffer:"string"!=typeof ir,descriptors:vr,fontSource:"string"==typeof ir?ir:JSON.stringify(Array.from(new Uint8Array(ir)))}),Nr};var Je=Ol(A.fonts,"add",function(At){return function(Gt){return setTimeout(function(){var ir=ce.get(Gt);ir&&(_(ir),ce.delete(Gt))},0),At.apply(this,[Gt])}});return R.push(function(){p.FontFace=Ie}),R.push(Je),function(){R.forEach(function(At){return At()})}}(f):function(){},jr=[];try{for(var _n=Mr(f.plugins),sn=_n.next();!sn.done;sn=_n.next()){var Sn=sn.value;jr.push(Sn.observer(Sn.callback,R,Sn.options))}}catch(Nn){A={error:Nn}}finally{try{sn&&!sn.done&&(p=_n.return)&&p.call(_n)}finally{if(A)throw A.error}}return function(){Nl.forEach(function(Nn){return Nn.reset()}),ce.disconnect(),Ie(),Je(),At(),Gt(),ir(),vr(),Nr(),wr(),Tr(),jr.forEach(function(Nn){return Nn()})}}for(var LA=function(){function f(_){this.iframes=new WeakMap,this.mutationCb=_.mutationCb}return f.prototype.addIframe=function(_){this.iframes.set(_,!0)},f.prototype.addLoadListener=function(_){this.loadListener=_},f.prototype.attachIframe=function(_,A){var p;this.mutationCb({adds:[{parentId:_.__sn.id,nextId:null,node:A}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(p=this.loadListener)||void 0===p||p.call(this,_)},f}(),FA=function(){function f(_){this.restorePatches=[],this.mutationCb=_.mutationCb,this.scrollCb=_.scrollCb,this.bypassOptions=_.bypassOptions,this.mirror=_.mirror;var A=this;this.restorePatches.push(Ol(HTMLElement.prototype,"attachShadow",function(p){return function(){var R=p.apply(this,arguments);return this.shadowRoot&&A.addShadowRoot(this.shadowRoot,this.ownerDocument),R}}))}return f.prototype.addShadowRoot=function(_,A){Id(_t(_t({},this.bypassOptions),{doc:A,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),_),zc(_t(_t({},this.bypassOptions),{scrollCb:this.scrollCb,doc:_,mirror:this.mirror}))},f.prototype.observeAttachShadow=function(_){if(_.contentWindow){var A=this;this.restorePatches.push(Ol(_.contentWindow.HTMLElement.prototype,"attachShadow",function(p){return function(){var R=p.apply(this,arguments);return this.shadowRoot&&A.addShadowRoot(this.shadowRoot,_.contentDocument),R}}))}},f.prototype.reset=function(){this.restorePatches.forEach(function(_){return _()})},f}(),Ec="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jc=typeof Uint8Array>"u"?[]:new Uint8Array(256),Xc=0;Xc<Ec.length;Xc++)jc[Ec.charCodeAt(Xc)]=Xc;var BA=function(f){var A,_=new Uint8Array(f),p=_.length,R="";for(A=0;A<p;A+=3)R+=Ec[_[A]>>2],R+=Ec[(3&_[A])<<4|_[A+1]>>4],R+=Ec[(15&_[A+1])<<2|_[A+2]>>6],R+=Ec[63&_[A+2]];return p%3==2?R=R.substring(0,R.length-1)+"=":p%3==1&&(R=R.substring(0,R.length-2)+"=="),R},v_=new Map,Jc=function(f,_,A){if(f&&(Zu(f,_)||"object"==typeof f)){var R=function ZA(f,_){var A=v_.get(f);return A||v_.set(f,A=new Map),A.has(_)||A.set(_,[]),A.get(_)}(A,f.constructor.name),ce=R.indexOf(f);return-1===ce&&(ce=R.length,R.push(f)),ce}};function qs(f,_,A){return f instanceof Array?f.map(function(Nr){return qs(Nr,_,A)}):null===f?f:f instanceof Float32Array||f instanceof Float64Array||f instanceof Int32Array||f instanceof Uint32Array||f instanceof Uint8Array||f instanceof Uint16Array||f instanceof Int16Array||f instanceof Int8Array||f instanceof Uint8ClampedArray?{rr_type:f.constructor.name,args:[Object.values(f)]}:f instanceof ArrayBuffer?{rr_type:f.constructor.name,base64:BA(f)}:f instanceof DataView?{rr_type:f.constructor.name,args:[qs(f.buffer,_,A),f.byteOffset,f.byteLength]}:f instanceof HTMLImageElement?{rr_type:f.constructor.name,src:f.src}:f instanceof ImageData?{rr_type:f.constructor.name,args:[qs(f.data,_,A),f.width,f.height]}:Zu(f,_)||"object"==typeof f?{rr_type:f.constructor.name,index:Jc(f,_,A)}:f}var Qc=function(f,_,A){return Rn([],Br(f),!1).map(function(p){return qs(p,_,A)})},Zu=function(f,_){var p=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(R){return"function"==typeof _[R]});return Boolean(p.find(function(R){return f instanceof _[R]}))};function Hu(f,_,A,p,R,ce){var Ie,Je,At=[],Gt=Object.getOwnPropertyNames(f),ir=function(Tr){try{if("function"!=typeof f[Tr])return"continue";var jr=Ol(f,Tr,function(sn){return function(){for(var Sn=[],Nn=0;Nn<arguments.length;Nn++)Sn[Nn]=arguments[Nn];var on=sn.apply(this,Sn);if(Jc(on,ce,f),!Ms(this.canvas,p)){R.getId(this.canvas);var gn=Qc(Rn([],Br(Sn),!1),ce,f);A(this.canvas,{type:_,property:Tr,args:gn})}return on}});At.push(jr)}catch{var _n=Iu(f,Tr,{set:function(Sn){A(this.canvas,{type:_,property:Tr,args:[Sn],setter:!0})}});At.push(_n)}};try{for(var vr=Mr(Gt),Nr=vr.next();!Nr.done;Nr=vr.next())ir(Nr.value)}catch(Tr){Ie={error:Tr}}finally{try{Nr&&!Nr.done&&(Je=vr.return)&&Je.call(vr)}finally{if(Ie)throw Ie.error}}return At}var ig=function(){function f(_){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(A,p){(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(A)||this.pendingCanvasMutations.set(A,[]),this.pendingCanvasMutations.get(A).push(p)},this.mutationCb=_.mutationCb,this.mirror=_.mirror,!0===_.recordCanvas&&this.initCanvasMutationObserver(_.win,_.blockClass)}return f.prototype.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},f.prototype.freeze=function(){this.frozen=!0},f.prototype.unfreeze=function(){this.frozen=!1},f.prototype.lock=function(){this.locked=!0},f.prototype.unlock=function(){this.locked=!1},f.prototype.initCanvasMutationObserver=function(_,A){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var p=function UA(f,_){var A=[];try{var p=Ol(f.HTMLCanvasElement.prototype,"getContext",function(R){return function(ce){for(var Ie=[],Je=1;Je<arguments.length;Je++)Ie[Je-1]=arguments[Je];return Ms(this,_)||"__context"in this||(this.__context=ce),R.apply(this,Rn([ce],Br(Ie),!1))}});A.push(p)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){A.forEach(function(R){return R()})}}(_,A),R=function GA(f,_,A,p){var R,ce,Ie=[],Je=Object.getOwnPropertyNames(_.CanvasRenderingContext2D.prototype),At=function(Nr){try{if("function"!=typeof _.CanvasRenderingContext2D.prototype[Nr])return"continue";var wr=Ol(_.CanvasRenderingContext2D.prototype,Nr,function(jr){return function(){for(var _n=this,sn=[],Sn=0;Sn<arguments.length;Sn++)sn[Sn]=arguments[Sn];return Ms(this.canvas,A)||setTimeout(function(){var Nn=Rn([],Br(sn),!1);if("drawImage"===Nr&&Nn[0]&&Nn[0]instanceof HTMLCanvasElement){var on=Nn[0],gn=on.getContext("2d")?.getImageData(0,0,on.width,on.height),pi=gn?.data;Nn[0]=JSON.stringify(pi)}f(_n.canvas,{type:Jl["2D"],property:Nr,args:Nn})},0),jr.apply(this,sn)}});Ie.push(wr)}catch{var Tr=Iu(_.CanvasRenderingContext2D.prototype,Nr,{set:function(_n){f(this.canvas,{type:Jl["2D"],property:Nr,args:[_n],setter:!0})}});Ie.push(Tr)}};try{for(var Gt=Mr(Je),ir=Gt.next();!ir.done;ir=Gt.next())At(ir.value)}catch(Nr){R={error:Nr}}finally{try{ir&&!ir.done&&(ce=Gt.return)&&ce.call(Gt)}finally{if(R)throw R.error}}return function(){Ie.forEach(function(Nr){return Nr()})}}(this.processMutation.bind(this),_,A),ce=function y_(f,_,A,p){var R=[];return R.push.apply(R,Rn([],Br(Hu(_.WebGLRenderingContext.prototype,Jl.WebGL,f,A,p,_)),!1)),typeof _.WebGL2RenderingContext<"u"&&R.push.apply(R,Rn([],Br(Hu(_.WebGL2RenderingContext.prototype,Jl.WebGL2,f,A,p,_)),!1)),function(){R.forEach(function(ce){return ce()})}}(this.processMutation.bind(this),_,A,this.mirror);this.resetObservers=function(){p(),R(),ce()}},f.prototype.startPendingCanvasMutationFlusher=function(){var _=this;requestAnimationFrame(function(){return _.flushPendingCanvasMutations()})},f.prototype.startRAFTimestamping=function(){var _=this,A=function(p){_.rafStamps.latestId=p,requestAnimationFrame(A)};requestAnimationFrame(A)},f.prototype.flushPendingCanvasMutations=function(){var _=this;this.pendingCanvasMutations.forEach(function(A,p){var R=_.mirror.getId(p);_.flushPendingCanvasMutationFor(p,R)}),requestAnimationFrame(function(){return _.flushPendingCanvasMutations()})},f.prototype.flushPendingCanvasMutationFor=function(_,A){if(!this.frozen&&!this.locked){var p=this.pendingCanvasMutations.get(_);if(p&&-1!==A){var R=p.map(function(Ie){var Je=function Qt(f,_){var A={};for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&_.indexOf(p)<0&&(A[p]=f[p]);if(null!=f&&"function"==typeof Object.getOwnPropertySymbols){var R=0;for(p=Object.getOwnPropertySymbols(f);R<p.length;R++)_.indexOf(p[R])<0&&Object.prototype.propertyIsEnumerable.call(f,p[R])&&(A[p[R]]=f[p[R]])}return A}(Ie,["type"]);return Je});this.mutationCb({id:A,type:p[0].type,commands:R}),this.pendingCanvasMutations.delete(_)}}},f}();function Os(f){return _t(_t({},f),{timestamp:Date.now()})}var bs,tc,rc={map:{},getId:function(f){return f&&f.__sn?f.__sn.id:-1},getNode:function(f){return this.map[f]||null},removeNodeFromMap:function(f){var _=this;delete this.map[f.__sn&&f.__sn.id],f.childNodes&&f.childNodes.forEach(function(p){return _.removeNodeFromMap(p)})},has:function(f){return this.map.hasOwnProperty(f)},reset:function(){this.map={}}};function nc(f){void 0===f&&(f={});var _=f.emit,A=f.checkoutEveryNms,p=f.checkoutEveryNth,R=f.blockClass,ce=void 0===R?"rr-block":R,Ie=f.blockSelector,Je=void 0===Ie?null:Ie,At=f.ignoreClass,Gt=void 0===At?"rr-ignore":At,ir=f.maskTextClass,vr=void 0===ir?"rr-mask":ir,Nr=f.maskTextSelector,wr=void 0===Nr?null:Nr,Tr=f.inlineStylesheet,jr=void 0===Tr||Tr,_n=f.maskAllInputs,sn=f.maskInputOptions,Sn=f.slimDOMOptions,Nn=f.maskInputFn,on=f.maskTextFn,jn=f.hooks,gn=f.packFn,pi=f.sampling,_a=void 0===pi?{}:pi,to=f.mousemoveWait,Qa=f.recordCanvas,oo=void 0!==Qa&&Qa,go=f.userTriggeredOnInput,ca=void 0!==go&&go,Si=f.collectFonts,So=void 0!==Si&&Si,Pn=f.inlineImages,In=void 0!==Pn&&Pn,Vn=f.plugins,hn=f.keepIframeSrcFn,ln=void 0===hn?function(){return!1}:hn;if(!_)throw new Error("emit function is required");void 0!==to&&void 0===_a.mousemove&&(_a.mousemove=to);var bi=!0===_n?{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,password:!0}:void 0!==sn?sn:{password:!0},Gi=!0===Sn||"all"===Sn?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===Sn,headMetaDescKeywords:"all"===Sn}:Sn||{};!function Nd(f){void 0===f&&(f=window),"NodeList"in f&&!f.NodeList.prototype.forEach&&(f.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in f&&!f.DOMTokenList.prototype.forEach&&(f.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(A){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===A)return!0}while(A=A&&A.parentNode);return!1})}();var Ma,Di=0;bs=function(xa,ks){var Ya;if(!(null===(Ya=Nl[0])||void 0===Ya)&&Ya.isFrozen()&&xa.type!==io.FullSnapshot&&!(xa.type===io.IncrementalSnapshot&&xa.data.source===cs.Mutation)&&Nl.forEach(function(Ac){return Ac.unfreeze()}),_(function(xa){var ks,Ya;try{for(var Ys=Mr(Vn||[]),ul=Ys.next();!ul.done;ul=Ys.next()){var Ac=ul.value;Ac.eventProcessor&&(xa=Ac.eventProcessor(xa))}}catch(pu){ks={error:pu}}finally{try{ul&&!ul.done&&(Ya=Ys.return)&&Ya.call(Ys)}finally{if(ks)throw ks.error}}return gn&&(xa=gn(xa)),xa}(xa),ks),xa.type===io.FullSnapshot)Ma=xa,Di=0;else if(xa.type===io.IncrementalSnapshot){if(xa.data.source===cs.Mutation&&xa.data.isAttachIframe)return;Di++,(p&&Di>=p||A&&xa.timestamp-Ma.timestamp>A)&&tc(!0)}};var tl=function(xa){bs(Os({type:io.IncrementalSnapshot,data:_t({source:cs.Mutation},xa)}))},mo=function(xa){return bs(Os({type:io.IncrementalSnapshot,data:_t({source:cs.Scroll},xa)}))},bl=function(xa){return bs(Os({type:io.IncrementalSnapshot,data:_t({source:cs.CanvasMutation},xa)}))},Es=new LA({mutationCb:tl}),_c=new ig({recordCanvas:oo,mutationCb:bl,win:window,blockClass:ce,mirror:rc}),fc=new FA({mutationCb:tl,scrollCb:mo,bypassOptions:{blockClass:ce,blockSelector:Je,maskTextClass:vr,maskTextSelector:wr,inlineStylesheet:jr,maskInputOptions:bi,maskTextFn:on,maskInputFn:Nn,recordCanvas:oo,inlineImages:In,sampling:_a,slimDOMOptions:Gi,iframeManager:Es,canvasManager:_c},mirror:rc});tc=function(xa){var ks,Ya,Ys,ul;void 0===xa&&(xa=!1),bs(Os({type:io.Meta,data:{href:window.location.href,width:Du(),height:__()}}),xa),Nl.forEach(function(rl){return rl.lock()});var Ac=Br(function yA(f,_){var A=_||{},p=A.blockClass,ce=A.blockSelector,Je=A.maskTextClass,Gt=A.maskTextSelector,vr=A.inlineStylesheet,wr=A.inlineImages,jr=A.recordCanvas,sn=A.maskAllInputs,Sn=void 0!==sn&&sn,jn=A.slimDOM,gn=void 0!==jn&&jn,go=A.keepIframeSrcFn,Si={};return[Ml(f,{doc:f,map:Si,blockClass:void 0===p?"rr-block":p,blockSelector:void 0===ce?null:ce,maskTextClass:void 0===Je?"rr-mask":Je,maskTextSelector:void 0===Gt?null:Gt,skipChild:!1,inlineStylesheet:void 0===vr||vr,maskInputOptions:!0===Sn?{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,password:!0}:!1===Sn?{password:!0}:Sn,maskTextFn:A.maskTextFn,maskInputFn:A.maskInputFn,slimDOMOptions:!0===gn||"all"===gn?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===gn,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===gn?{}:gn,dataURLOptions:A.dataURLOptions,inlineImages:void 0!==wr&&wr,recordCanvas:void 0!==jr&&jr,preserveWhiteSpace:A.preserveWhiteSpace,onSerialize:A.onSerialize,onIframeLoad:A.onIframeLoad,iframeLoadTimeout:A.iframeLoadTimeout,keepIframeSrcFn:void 0===go?function(){return!1}:go}),Si]}(document,{blockClass:ce,blockSelector:Je,maskTextClass:vr,maskTextSelector:wr,inlineStylesheet:jr,maskAllInputs:bi,maskTextFn:on,slimDOM:Gi,recordCanvas:oo,inlineImages:In,onSerialize:function(rl){wd(rl)&&Es.addIframe(rl),gc(rl)&&fc.addShadowRoot(rl.shadowRoot,document)},onIframeLoad:function(rl,Xf){Es.attachIframe(rl,Xf),fc.observeAttachShadow(rl)},keepIframeSrcFn:ln}),2),pu=Ac[0],Ah=Ac[1];if(!pu)return console.warn("Failed to snapshot the document");rc.map=Ah,bs(Os({type:io.FullSnapshot,data:{node:pu,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:document?.documentElement.scrollLeft||(null===(Ya=null===(ks=document?.body)||void 0===ks?void 0:ks.parentElement)||void 0===Ya?void 0:Ya.scrollLeft)||document?.body.scrollLeft||0,top:void 0!==window.pageYOffset?window.pageYOffset:document?.documentElement.scrollTop||(null===(ul=null===(Ys=document?.body)||void 0===Ys?void 0:Ys.parentElement)||void 0===ul?void 0:ul.scrollTop)||document?.body.scrollTop||0}}})),Nl.forEach(function(rl){return rl.unlock()})};try{var bd=[];bd.push(Us("DOMContentLoaded",function(){bs(Os({type:io.DomContentLoaded,data:{}}))}));var zf=function(xa){var ks;return bc({mutationCb:tl,mousemoveCb:function(Ya,Ys){return bs(Os({type:io.IncrementalSnapshot,data:{source:Ys,positions:Ya}}))},mouseInteractionCb:function(Ya){return bs(Os({type:io.IncrementalSnapshot,data:_t({source:cs.MouseInteraction},Ya)}))},scrollCb:mo,viewportResizeCb:function(Ya){return bs(Os({type:io.IncrementalSnapshot,data:_t({source:cs.ViewportResize},Ya)}))},inputCb:function(Ya){return bs(Os({type:io.IncrementalSnapshot,data:_t({source:cs.Input},Ya)}))},mediaInteractionCb:function(Ya){return bs(Os({type:io.IncrementalSnapshot,data:_t({source:cs.MediaInteraction},Ya)}))},styleSheetRuleCb:function(Ya){return bs(Os({type:io.IncrementalSnapshot,data:_t({source:cs.StyleSheetRule},Ya)}))},styleDeclarationCb:function(Ya){return bs(Os({type:io.IncrementalSnapshot,data:_t({source:cs.StyleDeclaration},Ya)}))},canvasMutationCb:bl,fontCb:function(Ya){return bs(Os({type:io.IncrementalSnapshot,data:_t({source:cs.Font},Ya)}))},blockClass:ce,ignoreClass:Gt,maskTextClass:vr,maskTextSelector:wr,maskInputOptions:bi,inlineStylesheet:jr,sampling:_a,recordCanvas:oo,inlineImages:In,userTriggeredOnInput:ca,collectFonts:So,doc:xa,maskInputFn:Nn,maskTextFn:on,blockSelector:Je,slimDOMOptions:Gi,mirror:rc,iframeManager:Es,shadowDomManager:fc,canvasManager:_c,plugins:(null===(ks=Vn?.filter(function(Ya){return Ya.observer}))||void 0===ks?void 0:ks.map(function(Ya){return{observer:Ya.observer,options:Ya.options,callback:function(Ys){return bs(Os({type:io.Plugin,data:{plugin:Ya.name,payload:Ys}}))}}}))||[]},jn)};Es.addLoadListener(function(xa){try{bd.push(zf(xa.contentDocument))}catch(ks){console.warn("error in rrweb iframe observer",ks)}});var jf=function(){tc(),bd.push(zf(document))};return"interactive"===document.readyState||"complete"===document.readyState?jf():bd.push(Us("load",function(){bs(Os({type:io.Load,data:{}})),jf()},window)),function(){bd.forEach(function(xa){return xa()})}}catch(xa){console.warn(xa)}}nc.addCustomEvent=function(f,_){if(!bs)throw new Error("please add custom event after start recording");bs(Os({type:io.Custom,data:{tag:f,payload:_}}))},nc.freezePage=function(){Nl.forEach(function(f){return f.freeze()})},nc.takeFullSnapshot=function(f){if(!tc)throw new Error("please take full snapshot after start recording");tc(f)},nc.mirror=rc;let C_=null;function $A(f,_){return"scope"===f?function YA(f){const _=f.getLastBreadcrumb();return C_===_||!_||(C_=_,_.category&&(["fetch","xhr","sentry.event","sentry.transaction"].includes(_.category)||_.category.startsWith("ui.")))?null:Qe(_)}(_):function ag(f){let _,A;try{A=function S_(f){return function HA(f){return!!f.target}(f.event)?f.event.target:f.event}(f),_=(0,Yo.Rt)(A)}catch{_="<unknown>"}return 0===_.length?null:Qe({category:`ui.${f.name}`,message:_,data:{...A?{nodeId:nc.mirror.getId(A)}:{}}})}(_)}function qc(f,_,A){if(!f.eventBuffer||f.isPaused())return;const R=_.timestamp>9999999999?_.timestamp:1e3*_.timestamp;if(R+sl<(new Date).getTime())return;const ce=f.getContext().earliestEvent;0===Mn([f,"access",Ie=>Ie.session,"optionalAccess",Ie=>Ie.segmentId])&&(!ce||R<ce)&&(f.getContext().earliestEvent=R),f.eventBuffer.addEvent(_,A)}function Gl(f,_){_.map(({type:A,start:p,end:R,name:ce,data:Ie})=>qc(f,{type:io.Custom,timestamp:p,data:{tag:"performanceSpan",payload:{op:A,description:ce,startTimestamp:p,endTimestamp:R,data:Ie}}}))}function Yu(f,_){return!((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Mn([f,"access",A=>A.getOptions,"call",A=>A(),"access",A=>A._experiments,"optionalAccess",A=>A.traceInternals])||function $u(f){const _=Mn([mi.Gd,"call",A=>A(),"access",A=>A.getClient,"call",A=>A(),"optionalAccess",A=>A.getDsn,"call",A=>A()]);return!!_&&f.includes(_.host)}(_))}const JA=["name","type","startTime","transferSize","duration"];function zu(f){return function(_){return JA.every(A=>f[A]===_[A])}}const vc={resource:function qA(f){const{entryType:_,initiatorType:A,name:p,responseEnd:R,startTime:ce,encodedBodySize:Ie,transferSize:Je}=f;return["fetch","xmlhttprequest"].includes(A)?null:{type:`${_}.${A}`,start:ic(ce),end:ic(R),name:p,data:{size:Je,encodedBodySize:Ie}}},paint:function O_(f){const{duration:_,entryType:A,name:p,startTime:R}=f,ce=ic(R);return{type:A,name:p,start:ce,end:ce+_}},navigation:function QA(f){const{entryType:_,name:A,duration:p,domComplete:R,startTime:ce,transferSize:Ie,type:Je}=f;return 0===p?null:{type:`${_}.${Je}`,start:ic(ce),end:ic(R),name:A,data:{size:Ie,duration:p}}},"largest-contentful-paint":function N_(f){const{duration:_,entryType:A,startTime:p,size:R}=f,ce=ic(p);return{type:A,name:A,start:ce,end:ce+_,data:{duration:_,size:R,nodeId:nc.mirror.getId(f.element)}}}};function M_(f){return void 0===vc[f.entryType]?null:vc[f.entryType](f)}function ic(f){return((ii.Z1||Ja.performance.timeOrigin)+f)/1e3}class Ju{constructor(){this._events=[]}destroy(){this._events=[]}get length(){return this._events.length}addEvent(_,A){A?this._events=[_]:this._events.push(_)}finish(){return new Promise(_=>{const A=this._events;this._events=[],_(JSON.stringify(A))})}}class Pd{__init(){this._eventBufferItemLength=0}__init2(){this._id=0}constructor(_){Pd.prototype.__init.call(this),Pd.prototype.__init2.call(this),this._worker=_}destroy(){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("[Replay] Destroying compression worker"),Mn([this,"access",_=>_._worker,"optionalAccess",_=>_.terminate,"call",_=>_()]),this._worker=null}get length(){return this._eventBufferItemLength}addEvent(_,A){var p=this;return(0,M.Z)(function*(){return A&&(yield p._postMessage({id:p._getAndIncrementId(),method:"init",args:[]})),p._sendEventToWorker(_)})()}finish(){return this._finishRequest(this._getAndIncrementId())}_postMessage({id:_,method:A,args:p}){return new Promise((R,ce)=>{const Ie=({data:At})=>{if(At.method===A&&At.id===_){if(Mn([this,"access",Gt=>Gt._worker,"optionalAccess",Gt=>Gt.removeEventListener,"call",Gt=>Gt("message",Ie)]),!At.success)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.error("[Replay]",At.response),void ce(new Error("Error in compression worker"));R(At.response)}};let Je;try{Je=JSON.stringify(p)}catch(At){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.error("[Replay] Error when trying to stringify args",At),Je="[]"}Mn([this,"access",At=>At._worker,"optionalAccess",At=>At.addEventListener,"call",At=>At("message",Ie)]),Mn([this,"access",At=>At._worker,"optionalAccess",At=>At.postMessage,"call",At=>At({id:_,method:A,args:Je})])})}_sendEventToWorker(_){const A=this._postMessage({id:this._getAndIncrementId(),method:"addEvent",args:[_]});return this._eventBufferItemLength++,A}_finishRequest(_){var A=this;return(0,M.Z)(function*(){const p=A._postMessage({id:_,method:"finish",args:[]});return A._eventBufferItemLength=0,p})()}_getAndIncrementId(){return this._id++}}function kd(f,_,A=+new Date){return null===f||void 0===_||_<0||0!==_&&f+_<=A}function qu(f,_,A=+new Date){return kd(f.started,yd,A)||kd(Mn([f,"optionalAccess",p=>p.lastActivity]),_,A)}function Ul(f){if("sessionStorage"in Ja)try{Ja.sessionStorage.setItem(ss,JSON.stringify(f))}catch{}}function w_(f){return void 0!==f&&Math.random()<f}function Ld(f){const _=(new Date).getTime();return{id:f.id||(0,Yi.DM)(),started:f.started||_,lastActivity:f.lastActivity||_,segmentId:f.segmentId||0,sampled:f.sampled}}function em({sessionSampleRate:f,errorSampleRate:_,stickySession:A=!1}){const p=function Fd(f,_){return w_(f)?"session":!!w_(_)&&"error"}(f,_),R=Ld({sampled:p});return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log(`[Replay] Creating new session: ${R.id}`),A&&Ul(R),R}function Ud(){return(Ud=(0,M.Z)(function*({client:f,scope:_,replayId:A,event:p}){const R=yield xi(f.getOptions(),p,{event_id:A},_);if(!R)return null;R.platform=R.platform||"javascript";const ce=f.getSdkMetadata&&f.getSdkMetadata();return R.sdk={...R.sdk,version:"7.29.0",name:ce&&ce.sdk&&ce.sdk.name||"sentry.javascript.unknown"},R})).apply(this,arguments)}let Bl;class ns{__init(){this.eventBuffer=null}__init2(){this.performanceEvents=[]}__init3(){this.recordingMode="session"}__init4(){this._performanceObserver=null}__init5(){this._retryCount=0}__init6(){this._retryInterval=5e3}__init7(){this._flushLock=null}__init8(){this._lastActivity=(new Date).getTime()}__init9(){this._isEnabled=!1}__init10(){this._isPaused=!1}__init11(){this._hasInitializedCoreListeners=!1}__init12(){this._stopRecording=null}__init13(){this._context={errorIds:new Set,traceIds:new Set,urls:[],earliestEvent:null,initialTimestamp:(new Date).getTime(),initialUrl:""}}constructor({options:_,recordingOptions:A}){ns.prototype.__init.call(this),ns.prototype.__init2.call(this),ns.prototype.__init3.call(this),ns.prototype.__init4.call(this),ns.prototype.__init5.call(this),ns.prototype.__init6.call(this),ns.prototype.__init7.call(this),ns.prototype.__init8.call(this),ns.prototype.__init9.call(this),ns.prototype.__init10.call(this),ns.prototype.__init11.call(this),ns.prototype.__init12.call(this),ns.prototype.__init13.call(this),ns.prototype.__init14.call(this),ns.prototype.__init15.call(this),ns.prototype.__init16.call(this),ns.prototype.__init17.call(this),ns.prototype.__init18.call(this),ns.prototype.__init19.call(this),this._recordingOptions=A,this._options=_,this._debouncedFlush=function tm(f,_,A){let p,R,ce;const Ie=A&&A.maxWait?Math.max(A.maxWait,_):0;function Je(){return At(),p=f(),p}function At(){void 0!==R&&clearTimeout(R),void 0!==ce&&clearTimeout(ce),R=ce=void 0}function ir(){return R&&clearTimeout(R),R=setTimeout(Je,_),Ie&&void 0===ce&&(ce=setTimeout(Je,Ie)),p}return ir.cancel=At,ir.flush=function Gt(){return void 0!==R||void 0!==ce?Je():p},ir}(()=>this.flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay})}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}start(){this.setInitialState(),this.loadSession({expiry:sl}),this.session?this.session.sampled&&("error"===this.session.sampled&&(this.recordingMode="error"),this.updateSessionActivity(),this.eventBuffer=function lg({useCompression:f}){if(f&&window.Worker){const _=new Blob(['/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */\nfunction t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([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]),a=new Uint8Array([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]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},S=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let U=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var O=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);S(t,t.dyn_ltree,e-1),S(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},T={_tr_init:t=>{U||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),U=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:O,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var N=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const F=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var L=(t,e,a,i)=>{const n=F,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={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"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=T,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:J,Z_OK:W,Z_STREAM_END:q,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=N(t.adler,e,n,a):2===t.state.wrap&&(t.adler=L(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){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=ot,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 Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),W},Zt=t=>{const e=Rt(t);var a;return e===W&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},St=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var Ut={deflateInit:(t,e)=>St(t,e,ot,15,8,st),deflateInit2:St,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,W),deflate:(t,e)=>{if(Et(t)||e>J||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,W}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,W}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=L(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,W;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=L(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,W;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=L(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=L(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,W;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=L(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=L(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,W;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=L(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,W;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,W}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),W;if(2===i&&(e===Y?K(a):e!==J&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,W}return e!==X?W:a.wrap<=0?q:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?W:q)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):W},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=N(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,W},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Ot=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Tt=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Nt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Nt=!1}const Ft=new Uint8Array(256);for(let t=0;t<256;t++)Ft[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Ft[254]=Ft[254]=1;var Lt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Ft[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Nt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Ft[t[a]]>e?a:e};var Ct=function(){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};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Jt,Z_DEFLATED:Wt}=B;function qt(t){this.options=Ot({level:Xt,method:Wt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Jt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ut.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&Ut.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Lt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=Ut.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new qt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}qt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Lt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=Ut.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=Ut.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},qt.prototype.onData=function(t){this.chunks.push(t)},qt.prototype.onEnd=function(t){t===Yt&&(this.result=Tt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:qt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,S,U,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(S=0,U=r[m]):r[m]>=u?(S=D[r[m]-u],U=A[r[m]-u]):(S=96,U=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|S<<16|U|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Se={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=L(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=L(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=L(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=L(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?L(a.check,n,f,r-f):N(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?L(a.check,n,f,t.next_out-f):N(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=N(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Ue=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Oe,Z_FINISH:Te,Z_OK:Ne,Z_STREAM_END:Fe,Z_NEED_DICT:Le,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Ot({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Se.inflateInit2(this.strm,e.windowBits);if(a!==Ne)throw new Error(I[a]);if(this.header=new Ue,Se.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Lt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Se.inflateSetDictionary(this.strm,e.dictionary),a!==Ne)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Te:Oe,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Se.inflate(a,r),s===Le&&n&&(s=Se.inflateSetDictionary(a,n),s===Ne?s=Se.inflate(a,r):s===Be&&(s=Le));a.avail_in>0&&s===Fe&&a.state.wrap>0&&0!==t[a.next_in];)Se.inflateReset(a),s=Se.inflate(a,r);switch(s){case Ie:case Be:case Le:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Fe))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Ne||0!==o){if(s===Fe)return s=Se.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Ne&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Tt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=B;const Xe=new class{constructor(){this.added=0,this.init()}init(){this.added=0,this.deflate=new Ye,this.deflate.push("[",Ge.Z_NO_FLUSH)}addEvent(t){if(!t)return;const e=this.added>0?",":"";this.deflate.push(e+JSON.stringify(t),Ge.Z_NO_FLUSH),this.added++}finish(){if(this.deflate.push("]",Ge.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this.init(),t}},Je={init:()=>(Xe.init(),""),addEvent:t=>(Xe.addEvent(t),""),finish:()=>Xe.finish()};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,[i]=t.data.args?JSON.parse(t.data.args):[];if(e in Je&&"function"==typeof Je[e])try{const t=Je[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t}),console.error(t)}}));']),A=URL.createObjectURL(_);try{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("[Replay] Using compression worker");const p=new Worker(A);if(p)return new Pd(p);Pa(new Error("Unable to create compression worker"))}catch{}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("[Replay] Falling back to simple event buffer")}return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("[Replay] Using simple buffer"),new Ju}({useCompression:Boolean(this._options.useCompression)}),this.addListeners(),this._isEnabled=!0,this.startRecording()):this.handleException(new Error("No session found"))}startRecording(){try{this._stopRecording=nc({...this._recordingOptions,..."error"===this.recordingMode&&{checkoutEveryNth:6e4},emit:this.handleRecordingEmit})}catch(_){this.handleException(_)}}stopRecording(){return!!this._stopRecording&&(this._stopRecording(),!0)}stop(){try{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("[Replay] Stopping Replays"),this._isEnabled=!1,this.removeListeners(),Mn([this,"access",_=>_._stopRecording,"optionalCall",_=>_()]),Mn([this,"access",_=>_.eventBuffer,"optionalAccess",_=>_.destroy,"call",_=>_()]),this.eventBuffer=null}catch(_){this.handleException(_)}}pause(){this._isPaused=!0;try{this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0)}catch(_){this.handleException(_)}}resume(){this._isPaused=!1,this.startRecording()}handleException(_){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.error("[Replay]",_),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&Pa(_)}clearSession(){try{(function Qu(){if("sessionStorage"in Ja)try{Ja.sessionStorage.removeItem(ss)}catch{}})(),this.session=void 0}catch(_){this.handleException(_)}}loadSession({expiry:_}){const{type:A,session:p}=function Gd({expiry:f,currentSession:_,stickySession:A,sessionSampleRate:p,errorSampleRate:R}){const ce=_||A&&function Ku(){if(!("sessionStorage"in Ja))return null;try{const _=Ja.sessionStorage.getItem(ss);return _?Ld(JSON.parse(_)):null}catch{return null}}();if(ce){if(!qu(ce,f))return{type:"saved",session:ce};(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("[Replay] Session has expired")}return{type:"new",session:em({stickySession:A,sessionSampleRate:p,errorSampleRate:R})}}({expiry:_,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,errorSampleRate:this._options.errorSampleRate});"new"===A&&this.setInitialState(),p.id!==Mn([this,"access",R=>R.session,"optionalAccess",R=>R.id])&&(p.previousSessionId=Mn([this,"access",R=>R.session,"optionalAccess",R=>R.id])),this.session=p}setInitialState(){const A=`${Ja.location.origin}${Ja.location.pathname}${Ja.location.hash}${Ja.location.search}`;this.performanceEvents=[],this.clearContext(),this._context.initialUrl=A,this._context.initialTimestamp=(new Date).getTime(),this._context.urls.push(A)}addListeners(){try{Ja.document.addEventListener("visibilitychange",this.handleVisibilityChange),Ja.addEventListener("blur",this.handleWindowBlur),Ja.addEventListener("focus",this.handleWindowFocus),function nm(f){const _=(0,mi.Gd)().getClient();if(!_)return;const A=_.recordDroppedEvent.bind(_);_.recordDroppedEvent=(R,ce,Ie)=>(Ie&&!Ie.type&&Ie.event_id&&f.delete(Ie.event_id),A(R,ce,Ie)),Bl=A}(this._context.errorIds),this._hasInitializedCoreListeners||(Mn([(0,mi.Gd)().getScope(),"optionalAccess",A=>A.addScopeListener,"call",A=>A(this.handleCoreBreadcrumbListener("scope"))]),(0,yn.o)("dom",this.handleCoreBreadcrumbListener("dom")),(0,yn.o)("fetch",function rs(f){return _=>{if(!f.isEnabled())return;const A=function VA(f){if(!f.endTimestamp)return null;const{startTimestamp:_,endTimestamp:A,fetchData:p,response:R}=f;return{type:"resource.fetch",start:_/1e3,end:A/1e3,name:p.url,data:{method:p.method,statusCode:R.status}}}(_);null!==A&&(Yu(f,A.name)||f.addUpdate(()=>(Gl(f,[A]),!0)))}}(this)),(0,yn.o)("xhr",function XA(f){return _=>{if(!f.isEnabled())return;const A=function jA(f){if(f.xhr.__sentry_own_request__||(f.startTimestamp&&(f.xhr.__sentry_xhr__=f.xhr.__sentry_xhr__||{},f.xhr.__sentry_xhr__.startTimestamp=f.startTimestamp),!f.endTimestamp))return null;const{method:_,url:A,status_code:p}=f.xhr.__sentry_xhr__||{};return void 0===A?null:{type:"resource.xhr",name:A,start:(Mn([f,"access",R=>R.xhr,"access",R=>R.__sentry_xhr__,"optionalAccess",R=>R.startTimestamp])||0)/1e3||f.endTimestamp/1e3,end:f.endTimestamp/1e3,data:{method:_,statusCode:p}}}(_);null!==A&&(Yu(f,A.name)||f.addUpdate(()=>(Gl(f,[A]),!0)))}}(this)),(0,yn.o)("history",function zA(f){return _=>{if(!f.isEnabled())return;const A=function Wu(f){const{from:_,to:A}=f,p=(new Date).getTime()/1e3;return{type:"navigation.push",start:p,end:p,name:A,data:{previous:_}}}(_);null!==A&&(f.getContext().urls.push(A.name),f.triggerUserActivity(),f.addUpdate(()=>(Gl(f,[A]),!1)))}}(this)),(0,Ct.c)(function WA(f){return _=>{if(_.type===Ps)return delete _.breadcrumbs,_;if(function T_(f){return!(f.type||!Mn([f,"access",_=>_.exception,"optionalAccess",_=>_.values,"optionalAccess",_=>_.length]))&&f.exception.values.some(_=>!!Mn([_,"access",A=>A.stacktrace,"optionalAccess",A=>A.frames,"optionalAccess",A=>A.length])&&_.stacktrace.frames.some(A=>Mn([A,"access",p=>p.filename,"optionalAccess",p=>p.includes,"call",p=>p("/rrweb/src/")])))}(_)&&!Mn([f,"access",p=>p.getOptions,"call",p=>p(),"access",p=>p._experiments,"optionalAccess",p=>p.captureExceptions]))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("[Replay] Ignoring error from rrweb internals",_),null;if(("transaction"!==_.type||"session"===f.recordingMode)&&(_.tags={..._.tags,replayId:Mn([f,"access",p=>p.session,"optionalAccess",p=>p.id])}),"transaction"===_.type&&_.contexts&&_.contexts.trace&&_.contexts.trace.trace_id)return f.getContext().traceIds.add(_.contexts.trace.trace_id),_;_.type||f.getContext().errorIds.add(_.event_id);const A=Mn([_,"access",p=>p.exception,"optionalAccess",p=>p.values,"optionalAccess",p=>p[0]]);return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&Mn([f,"access",p=>p.getOptions,"call",p=>p(),"access",p=>p._experiments,"optionalAccess",p=>p.traceInternals])&&function Vu(f){const{category:_,level:A,message:p,...R}=f;!function ba(f){(0,mi.Gd)().addBreadcrumb(f)}({category:_||"console",level:A||"debug",message:`[debug]: ${p}`,...R})}({message:`Tagging event (${_.event_id}) - ${_.message} - ${Mn([A,"optionalAccess",p=>p.type])||"Unknown"}: ${Mn([A,"optionalAccess",p=>p.value])||"n/a"}`}),"error"===f.recordingMode&&_.exception&&_.message!==ai&&setTimeout((0,M.Z)(function*(){yield f.flushImmediate(),f.stopRecording()&&(f.recordingMode="session",f.startRecording())})),_}}(this)),this._hasInitializedCoreListeners=!0)}catch(_){this.handleException(_)}"_performanceObserver"in Ja&&(this._performanceObserver=function sg(f){const A=new PerformanceObserver(p=>{const R=function og(f,_){const[A,p,R]=f.reduce((At,Gt)=>("navigation"===Gt.entryType?At[0].push(Gt):"largest-contentful-paint"===Gt.entryType?At[1].push(Gt):At[2].push(Gt),At),[[],[],[]]),ce=[],Ie=[];let Je=p.length?p[p.length-1]:void 0;return _.forEach(At=>{if("largest-contentful-paint"!==At.entryType)if("navigation"!==At.entryType)ce.push(At);else{const Gt=At;At.duration>0&&!A.find(zu(Gt))&&!Ie.find(zu(Gt))&&Ie.push(Gt)}else(!Je||Je.startTime<At.startTime)&&(Je=At)}),[...Je?[Je]:[],...A,...R,...ce,...Ie].sort((At,Gt)=>At.startTime-Gt.startTime)}(f.performanceEvents,p.getEntries());f.performanceEvents=R});return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach(p=>{try{A.observe({type:p,buffered:!0})}catch{}}),A}(this))}removeListeners(){try{Ja.document.removeEventListener("visibilitychange",this.handleVisibilityChange),Ja.removeEventListener("blur",this.handleWindowBlur),Ja.removeEventListener("focus",this.handleWindowFocus),function im(){const f=(0,mi.Gd)().getClient();!f||!Bl||(f.recordDroppedEvent=Bl)}(),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(_){this.handleException(_)}}addUpdate(_){const A=Mn([_,"optionalCall",p=>p()]);"error"!==this.recordingMode&&!0!==A&&this._debouncedFlush()}__init14(){this.handleRecordingEmit=(_,A)=>{this.checkAndHandleExpiredSession()?this.addUpdate(()=>("error"===this.recordingMode&&2===_.type&&this.setInitialState(),qc(this,_,A),2===_.type&&(Mn([this,"access",p=>p.session,"optionalAccess",p=>p.previousSessionId])||("error"===this.recordingMode&&this.session&&this._context.earliestEvent&&(this.session.started=this._context.earliestEvent,this._maybeSaveSession()),"session"===this.recordingMode&&this.flushImmediate()),!0))):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.error("[Replay] Received replay event after session expired.")}}__init15(){this.handleVisibilityChange=()=>{"visible"===Ja.document.visibilityState?this.doChangeToForegroundTasks():this.doChangeToBackgroundTasks()}}__init16(){this.handleWindowBlur=()=>{const _=Qe({category:"ui.blur"});this.doChangeToBackgroundTasks(_)}}__init17(){this.handleWindowFocus=()=>{const _=Qe({category:"ui.focus"});this.doChangeToForegroundTasks(_)}}__init18(){this.handleCoreBreadcrumbListener=_=>A=>{if(!this._isEnabled)return;const p=$A(_,A);null!==p&&"sentry.transaction"!==p.category&&("ui.click"===p.category?this.triggerUserActivity():this.checkAndHandleExpiredSession(),this.addUpdate(()=>(qc(this,{type:io.Custom,timestamp:1e3*(p.timestamp||0),data:{tag:"breadcrumb",payload:p}}),"console"===p.category)))}}doChangeToBackgroundTasks(_){if(!this.session)return;const A=qu(this.session,li);_&&!A&&this.createCustomBreadcrumb(_),this.conditionalFlush()}doChangeToForegroundTasks(_){this.session&&(this.checkAndHandleExpiredSession({expiry:li})?_&&this.createCustomBreadcrumb(_):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("[Replay] Document has become active, but session has expired"))}triggerFullSnapshot(){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("[Replay] Taking full rrweb snapshot"),nc.takeFullSnapshot(!0)}updateUserActivity(_=(new Date).getTime()){this._lastActivity=_}updateSessionActivity(_=(new Date).getTime()){this.session&&(this.session.lastActivity=_,this._maybeSaveSession())}triggerUserActivity(){if(this.updateUserActivity(),!this._stopRecording)return this.loadSession({expiry:sl}),void this.resume();this.checkAndHandleExpiredSession(),this.updateSessionActivity()}createCustomBreadcrumb(_){this.addUpdate(()=>{qc(this,{type:io.Custom,timestamp:_.timestamp||0,data:{tag:"breadcrumb",payload:_}})})}addPerformanceEntries(){const _=[...this.performanceEvents];this.performanceEvents=[],Gl(this,function ju(f){return f.map(M_).filter(Boolean)}(_))}checkAndHandleExpiredSession({expiry:_=sl}={}){const A=Mn([this,"access",R=>R.session,"optionalAccess",R=>R.id]);if(!this._lastActivity||!kd(this._lastActivity,yd))return this.loadSession({expiry:_}),A===Mn([this,"access",R=>R.session,"optionalAccess",R=>R.id])||(this.triggerFullSnapshot(),!1);this.pause()}conditionalFlush(){"error"!==this.recordingMode&&this.flushImmediate()}clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[],this._context.earliestEvent=null}popEventContext(){this._context.earliestEvent&&this._context.earliestEvent<this._context.initialTimestamp&&(this._context.initialTimestamp=this._context.earliestEvent);const _={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds).filter(Boolean),traceIds:Array.from(this._context.traceIds).filter(Boolean),urls:this._context.urls};return this.clearContext(),_}runFlush(){var _=this;return(0,M.Z)(function*(){if(_.session){if(yield _.addPerformanceEntries(),Mn([_,"access",A=>A.eventBuffer,"optionalAccess",A=>A.length])){yield function ac(f){try{Gl(f,[createMemoryEntry(Ja.performance.memory)])}catch{}}(_);try{const A=yield _.eventBuffer.finish(),p=_.session.id,R=_.popEventContext(),ce=_.session.segmentId++;_._maybeSaveSession(),yield _.sendReplay({replayId:p,events:A,segmentId:ce,includeReplayStartTimestamp:0===ce,eventContext:R})}catch(A){_.handleException(A)}}}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.error("[Replay] No session found to flush.")})()}__init19(){var _=this;this.flush=(0,M.Z)(function*(){if(_._isEnabled){if(!_.checkAndHandleExpiredSession())return void((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.error("[Replay] Attempting to finish replay event after session expired."));if(!Mn([_,"access",A=>A.session,"optionalAccess",A=>A.id]))return void((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.error("[Replay] No session found to flush."));if(Mn([_,"access",A=>A._debouncedFlush,"optionalAccess",A=>A.cancel,"call",A=>A()]),!_._flushLock)return _._flushLock=_.runFlush(),yield _._flushLock,void(_._flushLock=null);try{yield _._flushLock}catch(A){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.error(A)}finally{_._debouncedFlush()}}})}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}sendReplayRequest({events:_,replayId:A,segmentId:p,includeReplayStartTimestamp:R,eventContext:ce}){var Ie=this;return(0,M.Z)(function*(){const Je=function R_({events:f,headers:_}){let A;const p=`${JSON.stringify(_)}\n`;if("string"==typeof f)A=`${p}${f}`;else{const ce=(new TextEncoder).encode(p);A=new Uint8Array(ce.length+f.length),A.set(ce),A.set(f,ce.length)}return A}({events:_,headers:{segment_id:p}}),{urls:At,errorIds:Gt,traceIds:ir,initialTimestamp:vr}=ce,Nr=(new Date).getTime(),wr=(0,mi.Gd)(),Tr=wr.getClient(),jr=wr.getScope(),_n=Tr&&Tr.getTransport(),sn=Mn([Tr,"optionalAccess",jn=>jn.getDsn,"call",jn=>jn()]);if(!(Tr&&jr&&_n&&sn))return;const Sn={type:Ps,...R?{replay_start_timestamp:vr/1e3}:{},timestamp:Nr/1e3,error_ids:Gt,trace_ids:ir,urls:At,replay_id:A,segment_id:p},Nn=yield function rm(f){return Ud.apply(this,arguments)}({scope:jr,client:Tr,replayId:A,event:Sn});if(!Nn)return Tr.recordDroppedEvent("event_processor","replay_event",Sn),void((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("An event processor returned `null`, will not send event."));Nn.tags={...Nn.tags,sessionSampleRate:Ie._options.sessionSampleRate,errorSampleRate:Ie._options.errorSampleRate,replayType:Mn([Ie,"access",jn=>jn.session,"optionalAccess",jn=>jn.sampled])};const on=function e0(f,_,A,p){return Va(Oo(f,Bo(f),p,A),[[{type:"replay_event"},f],[{type:"replay_recording",length:_.length},_]])}(Nn,Je,sn,Tr.getOptions().tunnel);try{return yield _n.send(on)}catch{throw new Error(ai)}})()}resetRetries(){this._retryCount=0,this._retryInterval=5e3}sendReplay({replayId:_,events:A,segmentId:p,includeReplayStartTimestamp:R,eventContext:ce}){var Ie=this;return(0,M.Z)(function*(){if(A.length)try{return yield Ie.sendReplayRequest({events:A,replayId:_,segmentId:p,includeReplayStartTimestamp:R,eventContext:ce}),Ie.resetRetries(),!0}catch(Je){if(Ba("Replays",{_retryCount:Ie._retryCount}),Ie.handleException(Je),Ie._retryCount>=3)throw new Error(`${ai} - max retries exceeded`);return Ie._retryCount=Ie._retryCount+1,Ie._retryInterval=Ie._retryCount*Ie._retryInterval,yield new Promise((At,Gt)=>{setTimeout((0,M.Z)(function*(){try{yield Ie.sendReplay({replayId:_,events:A,segmentId:p,includeReplayStartTimestamp:R,eventContext:ce}),At(!0)}catch(ir){Gt(ir)}}),Ie._retryInterval)})}})()}_maybeSaveSession(){this.session&&this._options.stickySession&&Ul(this.session)}}var I_=s(82431);function D_(){return typeof window<"u"&&!(0,I_.KV)()}const r0="img,image,svg,path,rect,area,video,object,picture,embed,map,audio";let am=!1;class Kc{static __initStatic(){this.id="Replay"}__init(){this.name=Kc.id}get _isInitialized(){return am}set _isInitialized(_){am=_}constructor({flushMinDelay:_=5e3,flushMaxDelay:A=15e3,initialFlushDelay:p=5e3,stickySession:R=!0,useCompression:ce=!0,sessionSampleRate:Ie,errorSampleRate:Je,maskAllText:At,maskTextSelector:Gt,maskAllInputs:ir=!0,blockAllMedia:vr=!0,_experiments:Nr={},blockClass:wr="sentry-block",ignoreClass:Tr="sentry-ignore",maskTextClass:jr="sentry-mask",blockSelector:_n="[data-sentry-block]",...sn}={}){if(Kc.prototype.__init.call(this),this.recordingOptions={maskAllInputs:ir,blockClass:wr,ignoreClass:Tr,maskTextClass:jr,maskTextSelector:Gt,blockSelector:_n,...sn},this.options={flushMinDelay:_,flushMaxDelay:A,stickySession:R,initialFlushDelay:p,sessionSampleRate:.1,errorSampleRate:1,useCompression:ce,maskAllText:"boolean"==typeof At?At:!Gt,blockAllMedia:vr,_experiments:Nr},"number"==typeof Ie&&(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: ${Ie} })`),this.options.sessionSampleRate=Ie),"number"==typeof Je&&(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: ${Je} })`),this.options.errorSampleRate=Je),this.options.maskAllText&&(this.recordingOptions.maskTextSelector="body *:not(style), body *:not(script)"),this.options.blockAllMedia&&(this.recordingOptions.blockSelector=this.recordingOptions.blockSelector?`${this.recordingOptions.blockSelector},${r0}`:r0),D_()&&this._isInitialized)throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}setupOnce(){D_()&&(this._setup(),setTimeout(()=>this.start()))}start(){this._replay&&this._replay.start()}stop(){this._replay&&this._replay.stop()}_setup(){this._loadReplayOptionsFromClient(),this._replay=new ns({options:this.options,recordingOptions:this.recordingOptions})}_loadReplayOptionsFromClient(){const _=(0,mi.Gd)().getClient(),A=_&&_.getOptions();A&&"number"==typeof A.replaysSessionSampleRate&&(this.options.sessionSampleRate=A.replaysSessionSampleRate),A&&"number"==typeof A.replaysOnErrorSampleRate&&(this.options.errorSampleRate=A.replaysOnErrorSampleRate)}}Kc.__initStatic();var oc=s(58745),P_=s(43273);const yc=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$"),n0="baggage",a0="sentry-",om=/^sentry-/,sm=8192;function o0(f){return function l0(f){if(0!==Object.keys(f).length)return Object.entries(f).reduce((_,[A,p],R)=>{const ce=`${encodeURIComponent(A)}=${encodeURIComponent(p)}`,Ie=0===R?ce:`${_},${ce}`;return Ie.length>sm?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn(`Not adding key: ${A} with val: ${p} to baggage header due to exceeding baggage size limits.`),_):Ie},"")}(Object.entries(f).reduce((A,[p,R])=>(R&&(A[`${a0}${p}`]=R),A),{}))}function s0(f){return f.split(",").map(_=>_.split("=").map(A=>decodeURIComponent(A.trim()))).reduce((_,[A,p])=>(_[A]=p,_),{})}var td=s(3669),Uo=s(26836);const ao=Fr.n2,c0=(f,_,A)=>{let p,R;return ce=>{_.value>=0&&(ce||A)&&(R=_.value-(p||0),(R||void 0===p)&&(p=_.value,_.delta=R,f(_)))}},k_=()=>ao.__WEB_VITALS_POLYFILL__?ao.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const f=ao.performance.timing,_=ao.performance.navigation.type,A={entryType:"navigation",startTime:0,type:2==_?"back_forward":1===_?"reload":"navigate"};for(const p in f)"navigationStart"!==p&&"toJSON"!==p&&(A[p]=Math.max(f[p]-f.navigationStart,0));return A})()):ao.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],d0=()=>{const f=k_();return f&&f.activationStart||0},Bd=(f,_)=>{const A=k_();let p="navigate";return A&&(p=ao.document.prerendering||d0()>0?"prerender":A.type.replace(/_/g,"-")),{name:f,value:typeof _>"u"?-1:_,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:p}},Zd=(f,_,A)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(f)){const p=new PerformanceObserver(R=>{_(R.getEntries())});return p.observe(Object.assign({type:f,buffered:!0},A||{})),p}}catch{}},Rl=(f,_)=>{const A=p=>{("pagehide"===p.type||"hidden"===ao.document.visibilityState)&&(f(p),_&&(removeEventListener("visibilitychange",A,!0),removeEventListener("pagehide",A,!0)))};addEventListener("visibilitychange",A,!0),addEventListener("pagehide",A,!0)},xl=f=>{const _=Bd("CLS",0);let A,p=0,R=[];const ce=Je=>{Je.forEach(At=>{At.hadRecentInput||(p&&0!==R.length&&At.startTime-R[R.length-1].startTime<1e3&&At.startTime-R[0].startTime<5e3?(p+=At.value,R.push(At)):(p=At.value,R=[At]),p>_.value&&(_.value=p,_.entries=R,A&&A()))})},Ie=Zd("layout-shift",ce);Ie&&(A=c0(f,_),Rl(()=>{ce(Ie.takeRecords()),A(!0)}))};let Hd=-1;const L_=()=>(Hd<0&&(Hd="hidden"!==ao.document.visibilityState||ao.document.prerendering?1/0:0,Rl(({timeStamp:f})=>{Hd=f},!0)),{get firstHiddenTime(){return Hd}}),F_=f=>{const _=L_(),A=Bd("FID");let p;const R=Je=>{Je.startTime<_.firstHiddenTime&&(A.value=Je.processingStart-Je.startTime,A.entries.push(Je),p(!0))},ce=Je=>{Je.forEach(R)},Ie=Zd("first-input",ce);p=c0(f,A),Ie&&Rl(()=>{ce(Ie.takeRecords()),Ie.disconnect()},!0)},_m={},G_=f=>{const _=L_(),A=Bd("LCP");let p;const R=Ie=>{const Je=Ie[Ie.length-1];if(Je){const At=Math.max(Je.startTime-d0(),0);At<_.firstHiddenTime&&(A.value=At,A.entries=[Je],p())}},ce=Zd("largest-contentful-paint",R);if(ce){p=c0(f,A);const Ie=()=>{_m[A.id]||(R(ce.takeRecords()),ce.disconnect(),_m[A.id]=!0,p(!0))};["keydown","click"].forEach(Je=>{addEventListener(Je,Ie,{once:!0,capture:!0})}),Rl(Ie,!0)}};function Yd(f){return"number"==typeof f&&isFinite(f)}function Sc(f,{startTimestamp:_,...A}){return _&&f.startTimestamp>_&&(f.startTimestamp=_),f.startChild({startTimestamp:_,...A})}function u0(){return ao&&ao.addEventListener&&ao.performance}let ds,nd,U_=0,jo={};function $d(f,_,A,p,R,ce){const Ie=ce?_[ce]:_[`${A}End`],Je=_[`${A}Start`];!Je||!Ie||Sc(f,{op:"browser",description:(0,P_.h)(R,()=>A),startTimestamp:p+(0,Uo.XL)(Je),endTimestamp:p+(0,Uo.XL)(Ie)})}const _0=["localhost",/^\//],f0={traceFetch:!0,traceXHR:!0,tracingOrigins:_0,tracePropagationTargets:_0};const j_={idleTimeout:td.nT,finalTimeout:td.mg,heartbeatInterval:td.hd,markBackgroundTransactions:!0,routingInstrumentation:function dg(f,_=!0,A=!0){if(!ao||!ao.location)return void((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn("Could not initialize routing instrumentation due to invalid location"));let R,p=ao.location.href;_&&(R=f({name:ao.location.pathname,op:"pageload",metadata:{source:"url"}})),A&&(0,yn.o)("history",({to:ce,from:Ie})=>{void 0===Ie&&p&&-1!==p.indexOf(ce)?p=void 0:Ie!==ce&&(p=void 0,R&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log(`[Tracing] Finishing current transaction with op: ${R.op}`),R.finish()),R=f({name:ao.location.pathname,op:"navigation",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,_experiments:{enableLongTask:!0,enableInteractions:!1},...f0};class Il{__init(){this.name="BrowserTracing"}constructor(_){Il.prototype.__init.call(this),this.options={...j_,..._},_&&!_.tracePropagationTargets&&_.tracingOrigins&&(this.options.tracePropagationTargets=_.tracingOrigins),function B_(){const f=u0();f&&ii.Z1&&(f.mark&&ao.performance.mark("sentry-tracing-init"),function Am(){xl(f=>{const _=f.entries.pop();_&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("[Measurements] Adding CLS"),jo.cls={value:f.value,unit:""},nd=_)})}(),function mm(){G_(f=>{const _=f.entries.pop();_&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("[Measurements] Adding LCP"),jo.lcp={value:f.value,unit:"millisecond"},ds=_)})}(),function hm(){F_(f=>{const _=f.entries.pop();if(!_)return;const A=(0,Uo.XL)(ii.Z1),p=(0,Uo.XL)(_.startTime);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("[Measurements] Adding FID"),jo.fid={value:f.value,unit:"millisecond"},jo["mark.fid"]={value:A+p,unit:"second"}})}())}(),Mn([this,"access",A=>A.options,"access",A=>A._experiments,"optionalAccess",A=>A.enableLongTask])&&function fm(){Zd("longtask",_=>{for(const A of _){const p=(0,Uo.x1)();if(!p)return;const R=(0,Uo.XL)(ii.Z1+A.startTime),ce=(0,Uo.XL)(A.duration);p.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:R,endTimestamp:R+ce})}})}()}setupOnce(_,A){this._getCurrentHub=A;const{routingInstrumentation:p,startTransactionOnLocationChange:R,startTransactionOnPageLoad:ce,markBackgroundTransactions:Ie,traceFetch:Je,traceXHR:At,tracePropagationTargets:Gt,shouldCreateSpanForRequest:ir,_experiments:vr}=this.options;p(Nr=>this._createRouteTransaction(Nr),ce,R),Ie&&function rd(){ao&&ao.document?ao.document.addEventListener("visibilitychange",()=>{const f=(0,Uo.x1)();if(ao.document.hidden&&f){const _="cancelled";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log(`[Tracing] Transaction: ${_} -> since tab moved to the background, op: ${f.op}`),f.status||f.setStatus(_),f.setTag("visibilitychange","document.hidden"),f.finish()}}):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")}(),Mn([vr,"optionalAccess",Nr=>Nr.enableInteractions])&&this._registerInteractionListener(),function V_(f){const{traceFetch:_,traceXHR:A,tracePropagationTargets:p,tracingOrigins:R,shouldCreateSpanForRequest:ce}={traceFetch:f0.traceFetch,traceXHR:f0.traceXHR,...f},Ie="function"==typeof ce?ce:Gt=>!0,Je=Gt=>function bm(f,_){return(0,wi.U0)(f,_||_0)}(Gt,p||R),At={};_&&(0,yn.o)("fetch",Gt=>{!function W_(f,_,A,p){if(!(0,Uo.zu)()||!f.fetchData||!_(f.fetchData.url))return;if(f.endTimestamp){const ce=f.fetchData.__span;if(!ce)return;const Ie=p[ce];return void(Ie&&(f.response?Ie.setHttpStatus(f.response.status):f.error&&Ie.setStatus("internal_error"),Ie.finish(),delete p[ce]))}const R=(0,Uo.x1)();if(R){const ce=R.startChild({data:{...f.fetchData,type:"fetch"},description:`${f.fetchData.method} ${f.fetchData.url}`,op:"http.client"});f.fetchData.__span=ce.spanId,p[ce.spanId]=ce;const Ie=f.args[0];f.args[1]=f.args[1]||{};const Je=f.args[1];A(f.fetchData.url)&&(Je.headers=function Em(f,_,A,p){const R=o0(_),ce=A.toTraceparent(),Ie=typeof Request<"u"&&(0,Mi.V9)(f,Request)?f.headers:p.headers;if(Ie){if(typeof Headers<"u"&&(0,Mi.V9)(Ie,Headers)){const Je=new Headers(Ie);return Je.append("sentry-trace",ce),R&&Je.append(n0,R),Je}if(Array.isArray(Ie)){const Je=[...Ie,["sentry-trace",ce]];return R&&Je.push([n0,R]),Je}{const Je="baggage"in Ie?Ie.baggage:void 0,At=[];return Array.isArray(Je)?At.push(...Je):Je&&At.push(Je),R&&At.push(R),{...Ie,"sentry-trace":ce,baggage:At.length>0?At.join(","):void 0}}}return{"sentry-trace":ce,baggage:R}}(Ie,R.getDynamicSamplingContext(),ce,Je),R.metadata.propagations++)}}(Gt,Ie,Je,At)}),A&&(0,yn.o)("xhr",Gt=>{!function vm(f,_,A,p){if(!(0,Uo.zu)()||f.xhr&&f.xhr.__sentry_own_request__||!(f.xhr&&f.xhr.__sentry_xhr__&&_(f.xhr.__sentry_xhr__.url)))return;const R=f.xhr.__sentry_xhr__;if(f.endTimestamp){const Ie=f.xhr.__sentry_xhr_span_id__;if(!Ie)return;const Je=p[Ie];return void(Je&&(Je.setHttpStatus(R.status_code),Je.finish(),delete p[Ie]))}const ce=(0,Uo.x1)();if(ce){const Ie=ce.startChild({data:{...R.data,type:"xhr",method:R.method,url:R.url},description:`${R.method} ${R.url}`,op:"http.client"});if(f.xhr.__sentry_xhr_span_id__=Ie.spanId,p[f.xhr.__sentry_xhr_span_id__]=Ie,f.xhr.setRequestHeader&&A(f.xhr.__sentry_xhr__.url))try{f.xhr.setRequestHeader("sentry-trace",Ie.toTraceparent());const At=o0(ce.getDynamicSamplingContext());At&&f.xhr.setRequestHeader(n0,At),ce.metadata.propagations++}catch{}}}(Gt,Ie,Je,At)})}({traceFetch:Je,traceXHR:At,tracePropagationTargets:Gt,shouldCreateSpanForRequest:ir})}_createRouteTransaction(_){if(!this._getCurrentHub)return void((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn(`[Tracing] Did not create ${_.op} transaction because _getCurrentHub is invalid.`));const{beforeNavigate:A,idleTimeout:p,finalTimeout:R,heartbeatInterval:ce}=this.options,Ie="pageload"===_.op,Je=Ie?X_("sentry-trace"):null,At=Ie?X_("baggage"):null,Gt=Je?function ed(f){const _=f.match(yc);if(!f||!_)return;let A;return"1"===_[3]?A=!0:"0"===_[3]&&(A=!1),{traceId:_[1],parentSampled:A,parentSpanId:_[2]}}(Je):void 0,ir=At?function lm(f){if(!(0,Mi.HD)(f)&&!Array.isArray(f))return;let _={};if(Array.isArray(f))_=f.reduce((p,R)=>({...p,...s0(R)}),{});else{if(!f)return;_=s0(f)}const A=Object.entries(_).reduce((p,[R,ce])=>(R.match(om)&&(p[R.slice(a0.length)]=ce),p),{});return Object.keys(A).length>0?A:void 0}(At):void 0,vr={..._,...Gt,metadata:{..._.metadata,dynamicSamplingContext:Gt&&!ir?{}:ir},trimEnd:!0},Nr="function"==typeof A?A(vr):vr,wr=void 0===Nr?{...vr,sampled:!1}:Nr;wr.metadata=wr.name!==vr.name?{...wr.metadata,source:"custom"}:wr.metadata,this._latestRouteName=wr.name,this._latestRouteSource=Mn([wr,"access",sn=>sn.metadata,"optionalAccess",sn=>sn.source]),!1===wr.sampled&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log(`[Tracing] Will not send ${wr.op} transaction because of beforeNavigate.`),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log(`[Tracing] Starting ${wr.op} transaction on scope`);const Tr=this._getCurrentHub(),{location:jr}=ao,_n=(0,oc.lb)(Tr,wr,p,R,!0,{location:jr},ce);return _n.registerBeforeFinishCallback(sn=>{!function Z_(f){const _=u0();if(!_||!ao.performance.getEntries||!ii.Z1)return;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("[Tracing] Adding & adjusting spans using Performance API");const A=(0,Uo.XL)(ii.Z1),p=_.getEntries();let R,ce;if(p.slice(U_).forEach(Ie=>{const Je=(0,Uo.XL)(Ie.startTime),At=(0,Uo.XL)(Ie.duration);if(!("navigation"===f.op&&A+Je<f.startTimestamp))switch(Ie.entryType){case"navigation":(function pm(f,_,A){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(p=>{$d(f,_,p,A)}),$d(f,_,"secureConnection",A,"TLS/SSL","connectEnd"),$d(f,_,"fetch",A,"cache","domainLookupStart"),$d(f,_,"domainLookup",A,"DNS"),function Vi(f,_,A){Sc(f,{op:"browser",description:"request",startTimestamp:A+(0,Uo.XL)(_.requestStart),endTimestamp:A+(0,Uo.XL)(_.responseEnd)}),Sc(f,{op:"browser",description:"response",startTimestamp:A+(0,Uo.XL)(_.responseStart),endTimestamp:A+(0,Uo.XL)(_.responseEnd)})}(f,_,A)})(f,Ie,A),R=A+(0,Uo.XL)(Ie.responseStart),ce=A+(0,Uo.XL)(Ie.requestStart);break;case"mark":case"paint":case"measure":{!function gm(f,_,A,p,R){const ce=R+A;Sc(f,{description:_.name,endTimestamp:ce+p,op:_.entryType,startTimestamp:ce})}(f,Ie,Je,At,A);const Gt=L_(),ir=Ie.startTime<Gt.firstHiddenTime;"first-paint"===Ie.name&&ir&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("[Measurements] Adding FP"),jo.fp={value:Ie.startTime,unit:"millisecond"}),"first-contentful-paint"===Ie.name&&ir&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("[Measurements] Adding FCP"),jo.fcp={value:Ie.startTime,unit:"millisecond"});break}case"resource":{const Gt=Ie.name.replace(ao.location.origin,"");!function H_(f,_,A,p,R,ce){if("xmlhttprequest"===_.initiatorType||"fetch"===_.initiatorType)return;const Ie={};"transferSize"in _&&(Ie["Transfer Size"]=_.transferSize),"encodedBodySize"in _&&(Ie["Encoded Body Size"]=_.encodedBodySize),"decodedBodySize"in _&&(Ie["Decoded Body Size"]=_.decodedBodySize);const Je=ce+p;Sc(f,{description:A,endTimestamp:Je+R,op:_.initiatorType?`resource.${_.initiatorType}`:"resource.other",startTimestamp:Je,data:Ie})}(f,Ie,Gt,Je,At,A);break}}}),U_=Math.max(p.length-1,0),function Y_(f){const _=ao.navigator;if(!_)return;const A=_.connection;A&&(A.effectiveType&&f.setTag("effectiveConnectionType",A.effectiveType),A.type&&f.setTag("connectionType",A.type),Yd(A.rtt)&&(jo["connection.rtt"]={value:A.rtt,unit:"millisecond"})),Yd(_.deviceMemory)&&f.setTag("deviceMemory",`${_.deviceMemory} GB`),Yd(_.hardwareConcurrency)&&f.setTag("hardwareConcurrency",String(_.hardwareConcurrency))}(f),"pageload"===f.op){"number"==typeof R&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("[Measurements] Adding TTFB"),jo.ttfb={value:1e3*(R-f.startTimestamp),unit:"millisecond"},"number"==typeof ce&&ce<=R&&(jo["ttfb.requestTime"]={value:1e3*(R-ce),unit:"millisecond"})),["fcp","fp","lcp"].forEach(Je=>{if(!jo[Je]||A>=f.startTimestamp)return;const At=jo[Je].value,Gt=A+(0,Uo.XL)(At),ir=Math.abs(1e3*(Gt-f.startTimestamp));(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log(`[Measurements] Normalized ${Je} from ${At} to ${ir} (${ir-At})`),jo[Je].value=ir});const Ie=jo["mark.fid"];Ie&&jo.fid&&(Sc(f,{description:"first input delay",endTimestamp:Ie.value+(0,Uo.XL)(jo.fid.value),op:"ui.action",startTimestamp:Ie.value}),delete jo["mark.fid"]),"fcp"in jo||delete jo.cls,Object.keys(jo).forEach(Je=>{f.setMeasurement(Je,jo[Je].value,jo[Je].unit)}),function $_(f){ds&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("[Measurements] Adding LCP Data"),ds.element&&f.setTag("lcp.element",(0,Yo.Rt)(ds.element)),ds.id&&f.setTag("lcp.id",ds.id),ds.url&&f.setTag("lcp.url",ds.url.trim().slice(0,200)),f.setTag("lcp.size",ds.size)),nd&&nd.sources&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.log("[Measurements] Adding CLS Data"),nd.sources.forEach((_,A)=>f.setTag(`cls.source.${A+1}`,(0,Yo.Rt)(_.node))))}(f)}ds=void 0,nd=void 0,jo={}}(sn)}),_n}_registerInteractionListener(){let _;const A=()=>{const{idleTimeout:p,finalTimeout:R,heartbeatInterval:ce}=this.options,Ie="ui.action.click";if(_&&(_.finish(),_=void 0),!this._getCurrentHub)return void((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn(`[Tracing] Did not create ${Ie} transaction because _getCurrentHub is invalid.`));if(!this._latestRouteName)return void((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn(`[Tracing] Did not create ${Ie} transaction because _latestRouteName is missing.`));const Je=this._getCurrentHub(),{location:At}=ao,Gt={name:this._latestRouteName,op:Ie,trimEnd:!0,metadata:{source:(0,P_.h)(this._latestRouteSource,()=>"url")}};_=(0,oc.lb)(Je,Gt,p,R,!0,{location:At},ce)};["click"].forEach(p=>{addEventListener(p,A,{once:!1,capture:!0})})}}function X_(f){const _=(0,Yo.qT)(`meta[name=${f}]`);return _?_.getAttribute("content"):null}(typeof __SENTRY_TRACING__>"u"||__SENTRY_TRACING__)&&(0,oc.ro)();var Ao=s(96191);function Q_(f){return new e.vHH(3e3,!1)}function id(){return typeof window<"u"&&typeof window.document<"u"}function ad(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function cl(f){switch(f.length){case 0:return new Ao.ZN;case 1:return f[0];default:return new Ao.ZE(f)}}function b0(f,_,A,p,R=new Map,ce=new Map){const Ie=[],Je=[];let At=-1,Gt=null;if(p.forEach(ir=>{const vr=ir.get("offset"),Nr=vr==At,wr=Nr&&Gt||new Map;ir.forEach((Tr,jr)=>{let _n=jr,sn=Tr;if("offset"!==jr)switch(_n=_.normalizePropertyName(_n,Ie),sn){case Ao.k1:sn=R.get(jr);break;case Ao.l3:sn=ce.get(jr);break;default:sn=_.normalizeStyleValue(jr,_n,sn,Ie)}wr.set(_n,sn)}),Nr||Je.push(wr),Gt=wr,At=vr}),Ie.length)throw function mg(f){return new e.vHH(3502,!1)}();return Je}function od(f,_,A,p){switch(_){case"start":f.onStart(()=>p(A&&sd(A,"start",f)));break;case"done":f.onDone(()=>p(A&&sd(A,"done",f)));break;case"destroy":f.onDestroy(()=>p(A&&sd(A,"destroy",f)))}}function sd(f,_,A){const ce=ld(f.element,f.triggerName,f.fromState,f.toState,_||f.phaseName,A.totalTime??f.totalTime,!!A.disabled),Ie=f._data;return null!=Ie&&(ce._data=Ie),ce}function ld(f,_,A,p,R="",ce=0,Ie){return{element:f,triggerName:_,fromState:A,toState:p,phaseName:R,totalTime:ce,disabled:!!Ie}}function Bs(f,_,A){let p=f.get(_);return p||f.set(_,p=A),p}function Vd(f){const _=f.indexOf(":");return[f.substring(1,_),f.slice(_+1)]}let E0=(f,_)=>!1,lf=(f,_,A)=>[],v0=null;function y0(f){const _=f.parentNode||f.host;return _===v0?null:_}(ad()||typeof Element<"u")&&(id()?(v0=(()=>document.documentElement)(),E0=(f,_)=>{for(;_;){if(_===f)return!0;_=y0(_)}return!1}):E0=(f,_)=>f.contains(_),lf=(f,_,A)=>{if(A)return Array.from(f.querySelectorAll(_));const p=f.querySelector(_);return p?[p]:[]});let sc=null,df=!1;const Gm=E0,Wd=lf;let uf=(()=>{class f{validateStyleProperty(A){return function zs(f){sc||(sc=function Fm(){return typeof document<"u"?document.body:null}()||{},df=!!sc.style&&"WebkitAppearance"in sc.style);let _=!0;return sc.style&&!function cf(f){return"ebkit"==f.substring(1,6)}(f)&&(_=f in sc.style,!_&&df&&(_="Webkit"+f.charAt(0).toUpperCase()+f.slice(1)in sc.style)),_}(A)}matchesElement(A,p){return!1}containsElement(A,p){return Gm(A,p)}getParentElement(A){return y0(A)}query(A,p,R){return Wd(A,p,R)}computeStyle(A,p,R){return R||""}animate(A,p,R,ce,Ie,Je=[],At){return new Ao.ZN(R,ce)}}return f.\u0275fac=function(A){return new(A||f)},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})(),S0=(()=>{class f{}return f.NOOP=new uf,f})();const Bm=1e3,T0="ng-enter",Oc="ng-leave",zd="ng-trigger",jd=".ng-trigger",_f="ng-animating",M0=".ng-animating";function Dl(f){if("number"==typeof f)return f;const _=f.match(/^(-?[\.\d]+)(m?s)/);return!_||_.length<2?0:Ks(parseFloat(_[1]),_[2])}function Ks(f,_){return"s"===_?f*Bm:f}function Nc(f,_,A){return f.hasOwnProperty("duration")?f:function Hm(f,_,A){let R,ce=0,Ie="";if("string"==typeof f){const Je=f.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Je)return _.push(Q_()),{duration:0,delay:0,easing:""};R=Ks(parseFloat(Je[1]),Je[2]);const At=Je[3];null!=At&&(ce=Ks(parseFloat(At),Je[4]));const Gt=Je[5];Gt&&(Ie=Gt)}else R=f;if(!A){let Je=!1,At=_.length;R<0&&(_.push(function ug(){return new e.vHH(3100,!1)}()),Je=!0),ce<0&&(_.push(function _g(){return new e.vHH(3101,!1)}()),Je=!0),Je&&_.splice(At,0,Q_())}return{duration:R,delay:ce,easing:Ie}}(f,_,A)}function cd(f,_={}){return Object.keys(f).forEach(A=>{_[A]=f[A]}),_}function O0(f){const _=new Map;return Object.keys(f).forEach(A=>{_.set(A,f[A])}),_}function Zl(f,_=new Map,A){if(A)for(let[p,R]of A)_.set(p,R);for(let[p,R]of f)_.set(p,R);return _}function Xd(f,_,A){return A?_+":"+A+";":""}function Af(f){let _="";for(let A=0;A<f.style.length;A++){const p=f.style.item(A);_+=Xd(0,p,f.style.getPropertyValue(p))}for(const A in f.style)f.style.hasOwnProperty(A)&&!A.startsWith("_")&&(_+=Xd(0,gf(A),f.style[A]));f.setAttribute("style",_)}function hl(f,_,A){f.style&&(_.forEach((p,R)=>{const ce=Kd(R);A&&!A.has(R)&&A.set(R,f.style[ce]),f.style[ce]=p}),ad()&&Af(f))}function gl(f,_){f.style&&(_.forEach((A,p)=>{const R=Kd(p);f.style[R]=""}),ad()&&Af(f))}function Hl(f){return Array.isArray(f)?1==f.length?f[0]:(0,Ao.vP)(f):f}const mf=new RegExp("{{\\s*(.+?)\\s*}}","g");function Qd(f){let _=[];if("string"==typeof f){let A;for(;A=mf.exec(f);)_.push(A[1]);mf.lastIndex=0}return _}function qd(f,_,A){const p=f.toString(),R=p.replace(mf,(ce,Ie)=>{let Je=_[Ie];return null==Je&&(A.push(function ym(f){return new e.vHH(3003,!1)}()),Je=""),Je.toString()});return R==p?f:R}function dd(f){const _=[];let A=f.next();for(;!A.done;)_.push(A.value),A=f.next();return _}const hf=/-+([a-z0-9])/g;function Kd(f){return f.replace(hf,(..._)=>_[1].toUpperCase())}function gf(f){return f.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ns(f,_,A){switch(_.type){case 7:return f.visitTrigger(_,A);case 0:return f.visitState(_,A);case 1:return f.visitTransition(_,A);case 2:return f.visitSequence(_,A);case 3:return f.visitGroup(_,A);case 4:return f.visitAnimate(_,A);case 5:return f.visitKeyframes(_,A);case 6:return f.visitStyle(_,A);case 8:return f.visitReference(_,A);case 9:return f.visitAnimateChild(_,A);case 10:return f.visitAnimateRef(_,A);case 11:return f.visitQuery(_,A);case 12:return f.visitStagger(_,A);default:throw function q_(f){return new e.vHH(3004,!1)}()}}function ud(f,_){return window.getComputedStyle(f)[_]}const ru="*";function bg(f,_){const A=[];return"string"==typeof f?f.split(/\s*,\s*/).forEach(p=>function Vm(f,_,A){if(":"==f[0]){const At=function Wm(f,_){switch(f){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(A,p)=>parseFloat(p)>parseFloat(A);case":decrement":return(A,p)=>parseFloat(p)<parseFloat(A);default:return _.push(function xm(f){return new e.vHH(3016,!1)}()),"* => *"}}(f,A);if("function"==typeof At)return void _.push(At);f=At}const p=f.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==p||p.length<4)return A.push(function tf(f){return new e.vHH(3015,!1)}()),_;const R=p[1],ce=p[2],Ie=p[3];_.push(Ef(R,Ie));"<"==ce[0]&&!(R==ru&&Ie==ru)&&_.push(Ef(Ie,R))}(p,A,_)):A.push(f),A}const nu=new Set(["true","1"]),iu=new Set(["false","0"]);function Ef(f,_){const A=nu.has(f)||iu.has(f),p=nu.has(_)||iu.has(_);return(R,ce)=>{let Ie=f==ru||f==R,Je=_==ru||_==ce;return!Ie&&A&&"boolean"==typeof R&&(Ie=R?nu.has(f):iu.has(f)),!Je&&p&&"boolean"==typeof ce&&(Je=ce?nu.has(_):iu.has(_)),Ie&&Je}}const zm=new RegExp("s*:selfs*,?","g");function au(f,_,A,p){return new jm(f).build(_,A,p)}class jm{constructor(_){this._driver=_}build(_,A,p){const R=new Jm(A);return this._resetContextStyleTimingState(R),Ns(this,Hl(_),R)}_resetContextStyleTimingState(_){_.currentQuerySelector="",_.collectedStyles=new Map,_.collectedStyles.set("",new Map),_.currentTime=0}visitTrigger(_,A){let p=A.queryCount=0,R=A.depCount=0;const ce=[],Ie=[];return"@"==_.name.charAt(0)&&A.errors.push(function Sm(){return new e.vHH(3006,!1)}()),_.definitions.forEach(Je=>{if(this._resetContextStyleTimingState(A),0==Je.type){const At=Je,Gt=At.name;Gt.toString().split(/\s*,\s*/).forEach(ir=>{At.name=ir,ce.push(this.visitState(At,A))}),At.name=Gt}else if(1==Je.type){const At=this.visitTransition(Je,A);p+=At.queryCount,R+=At.depCount,Ie.push(At)}else A.errors.push(function Cc(){return new e.vHH(3007,!1)}())}),{type:7,name:_.name,states:ce,transitions:Ie,queryCount:p,depCount:R,options:null}}visitState(_,A){const p=this.visitStyle(_.styles,A),R=_.options&&_.options.params||null;if(p.containsDynamicStyles){const ce=new Set,Ie=R||{};p.styles.forEach(Je=>{Je instanceof Map&&Je.forEach(At=>{Qd(At).forEach(Gt=>{Ie.hasOwnProperty(Gt)||ce.add(Gt)})})}),ce.size&&(dd(ce.values()),A.errors.push(function Cm(f,_){return new e.vHH(3008,!1)}()))}return{type:0,name:_.name,style:p,options:R?{params:R}:null}}visitTransition(_,A){A.queryCount=0,A.depCount=0;const p=Ns(this,Hl(_.animation),A);return{type:1,matchers:bg(_.expr,A.errors),animation:p,queryCount:A.queryCount,depCount:A.depCount,options:lc(_.options)}}visitSequence(_,A){return{type:2,steps:_.steps.map(p=>Ns(this,p,A)),options:lc(_.options)}}visitGroup(_,A){const p=A.currentTime;let R=0;const ce=_.steps.map(Ie=>{A.currentTime=p;const Je=Ns(this,Ie,A);return R=Math.max(R,A.currentTime),Je});return A.currentTime=R,{type:3,steps:ce,options:lc(_.options)}}visitAnimate(_,A){const p=function qm(f,_){if(f.hasOwnProperty("duration"))return f;if("number"==typeof f)return R0(Nc(f,_).duration,0,"");const A=f;if(A.split(/\s+/).some(ce=>"{"==ce.charAt(0)&&"{"==ce.charAt(1))){const ce=R0(0,0,"");return ce.dynamic=!0,ce.strValue=A,ce}const R=Nc(A,_);return R0(R.duration,R.delay,R.easing)}(_.timings,A.errors);A.currentAnimateTimings=p;let R,ce=_.styles?_.styles:(0,Ao.oB)({});if(5==ce.type)R=this.visitKeyframes(ce,A);else{let Ie=_.styles,Je=!1;if(!Ie){Je=!0;const Gt={};p.easing&&(Gt.easing=p.easing),Ie=(0,Ao.oB)(Gt)}A.currentTime+=p.duration+p.delay;const At=this.visitStyle(Ie,A);At.isEmptyStep=Je,R=At}return A.currentAnimateTimings=null,{type:4,timings:p,style:R,options:null}}visitStyle(_,A){const p=this._makeStyleAst(_,A);return this._validateStyleAst(p,A),p}_makeStyleAst(_,A){const p=[],R=Array.isArray(_.styles)?_.styles:[_.styles];for(let Je of R)"string"==typeof Je?Je===Ao.l3?p.push(Je):A.errors.push(new e.vHH(3002,!1)):p.push(O0(Je));let ce=!1,Ie=null;return p.forEach(Je=>{if(Je instanceof Map&&(Je.has("easing")&&(Ie=Je.get("easing"),Je.delete("easing")),!ce))for(let At of Je.values())if(At.toString().indexOf("{{")>=0){ce=!0;break}}),{type:6,styles:p,easing:Ie,offset:_.offset,containsDynamicStyles:ce,options:null}}_validateStyleAst(_,A){const p=A.currentAnimateTimings;let R=A.currentTime,ce=A.currentTime;p&&ce>0&&(ce-=p.duration+p.delay),_.styles.forEach(Ie=>{"string"!=typeof Ie&&Ie.forEach((Je,At)=>{const Gt=A.collectedStyles.get(A.currentQuerySelector),ir=Gt.get(At);let vr=!0;ir&&(ce!=R&&ce>=ir.startTime&&R<=ir.endTime&&(A.errors.push(function Tm(f,_,A,p,R){return new e.vHH(3010,!1)}()),vr=!1),ce=ir.startTime),vr&&Gt.set(At,{startTime:ce,endTime:R}),A.options&&function Jd(f,_,A){const p=_.params||{},R=Qd(f);R.length&&R.forEach(ce=>{p.hasOwnProperty(ce)||A.push(function fg(f){return new e.vHH(3001,!1)}())})}(Je,A.options,A.errors)})})}visitKeyframes(_,A){const p={type:5,styles:[],options:null};if(!A.currentAnimateTimings)return A.errors.push(function ef(){return new e.vHH(3011,!1)}()),p;let ce=0;const Ie=[];let Je=!1,At=!1,Gt=0;const ir=_.steps.map(sn=>{const Sn=this._makeStyleAst(sn,A);let Nn=null!=Sn.offset?Sn.offset:function Qm(f){if("string"==typeof f)return null;let _=null;if(Array.isArray(f))f.forEach(A=>{if(A instanceof Map&&A.has("offset")){const p=A;_=parseFloat(p.get("offset")),p.delete("offset")}});else if(f instanceof Map&&f.has("offset")){const A=f;_=parseFloat(A.get("offset")),A.delete("offset")}return _}(Sn.styles),on=0;return null!=Nn&&(ce++,on=Sn.offset=Nn),At=At||on<0||on>1,Je=Je||on<Gt,Gt=on,Ie.push(on),Sn});At&&A.errors.push(function Mm(){return new e.vHH(3012,!1)}()),Je&&A.errors.push(function Om(){return new e.vHH(3200,!1)}());const vr=_.steps.length;let Nr=0;ce>0&&ce<vr?A.errors.push(function Nm(){return new e.vHH(3202,!1)}()):0==ce&&(Nr=1/(vr-1));const wr=vr-1,Tr=A.currentTime,jr=A.currentAnimateTimings,_n=jr.duration;return ir.forEach((sn,Sn)=>{const Nn=Nr>0?Sn==wr?1:Nr*Sn:Ie[Sn],on=Nn*_n;A.currentTime=Tr+jr.delay+on,jr.duration=on,this._validateStyleAst(sn,A),sn.offset=Nn,p.styles.push(sn)}),p}visitReference(_,A){return{type:8,animation:Ns(this,Hl(_.animation),A),options:lc(_.options)}}visitAnimateChild(_,A){return A.depCount++,{type:9,options:lc(_.options)}}visitAnimateRef(_,A){return{type:10,animation:this.visitReference(_.animation,A),options:lc(_.options)}}visitQuery(_,A){const p=A.currentQuerySelector,R=_.options||{};A.queryCount++,A.currentQuery=_;const[ce,Ie]=function w0(f){const _=!!f.split(/\s*,\s*/).find(A=>":self"==A);return _&&(f=f.replace(zm,"")),f=f.replace(/@\*/g,jd).replace(/@\w+/g,A=>jd+"-"+A.slice(1)).replace(/:animating/g,M0),[f,_]}(_.selector);A.currentQuerySelector=p.length?p+" "+ce:ce,Bs(A.collectedStyles,A.currentQuerySelector,new Map);const Je=Ns(this,Hl(_.animation),A);return A.currentQuery=null,A.currentQuerySelector=p,{type:11,selector:ce,limit:R.limit||0,optional:!!R.optional,includeSelf:Ie,animation:Je,originalSelector:_.selector,options:lc(_.options)}}visitStagger(_,A){A.currentQuery||A.errors.push(function wm(){return new e.vHH(3013,!1)}());const p="full"===_.timings?{duration:0,delay:0,easing:"full"}:Nc(_.timings,A.errors,!0);return{type:12,animation:Ns(this,Hl(_.animation),A),timings:p,options:null}}}class Jm{constructor(_){this.errors=_,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 lc(f){return f?(f=cd(f)).params&&(f.params=function Xm(f){return f?cd(f):null}(f.params)):f={},f}function R0(f,_,A){return{duration:f,delay:_,easing:A}}function x0(f,_,A,p,R,ce,Ie=null,Je=!1){return{type:1,element:f,keyframes:_,preStyleProps:A,postStyleProps:p,duration:R,delay:ce,totalTime:R+ce,easing:Ie,subTimeline:Je}}class _d{constructor(){this._map=new Map}get(_){return this._map.get(_)||[]}append(_,A){let p=this._map.get(_);p||this._map.set(_,p=[]),p.push(...A)}has(_){return this._map.has(_)}clear(){this._map.clear()}}const Eg=new RegExp(":enter","g"),vg=new RegExp(":leave","g");function wc(f,_,A,p,R,ce=new Map,Ie=new Map,Je,At,Gt=[]){return(new eh).buildKeyframes(f,_,A,p,R,ce,Ie,Je,At,Gt)}class eh{buildKeyframes(_,A,p,R,ce,Ie,Je,At,Gt,ir=[]){Gt=Gt||new _d;const vr=new fd(_,A,Gt,R,ce,ir,[]);vr.options=At;const Nr=At.delay?Dl(At.delay):0;vr.currentTimeline.delayNextStep(Nr),vr.currentTimeline.setStyles([Ie],null,vr.errors,At),Ns(this,p,vr);const wr=vr.timelines.filter(Tr=>Tr.containsAnimation());if(wr.length&&Je.size){let Tr;for(let jr=wr.length-1;jr>=0;jr--){const _n=wr[jr];if(_n.element===A){Tr=_n;break}}Tr&&!Tr.allowOnlyTimelineStyles()&&Tr.setStyles([Je],null,vr.errors,At)}return wr.length?wr.map(Tr=>Tr.buildKeyframes()):[x0(A,[],[],[],0,Nr,"",!1)]}visitTrigger(_,A){}visitState(_,A){}visitTransition(_,A){}visitAnimateChild(_,A){const p=A.subInstructions.get(A.element);if(p){const R=A.createSubContext(_.options),ce=A.currentTimeline.currentTime,Ie=this._visitSubInstructions(p,R,R.options);ce!=Ie&&A.transformIntoNewTimeline(Ie)}A.previousNode=_}visitAnimateRef(_,A){const p=A.createSubContext(_.options);p.transformIntoNewTimeline(),this._applyAnimationRefDelays([_.options,_.animation.options],A,p),this.visitReference(_.animation,p),A.transformIntoNewTimeline(p.currentTimeline.currentTime),A.previousNode=_}_applyAnimationRefDelays(_,A,p){for(const R of _){const ce=R?.delay;if(ce){const Ie="number"==typeof ce?ce:Dl(qd(ce,R?.params??{},A.errors));p.delayNextStep(Ie)}}}_visitSubInstructions(_,A,p){let ce=A.currentTimeline.currentTime;const Ie=null!=p.duration?Dl(p.duration):null,Je=null!=p.delay?Dl(p.delay):null;return 0!==Ie&&_.forEach(At=>{const Gt=A.appendInstructionToTimeline(At,Ie,Je);ce=Math.max(ce,Gt.duration+Gt.delay)}),ce}visitReference(_,A){A.updateOptions(_.options,!0),Ns(this,_.animation,A),A.previousNode=_}visitSequence(_,A){const p=A.subContextCount;let R=A;const ce=_.options;if(ce&&(ce.params||ce.delay)&&(R=A.createSubContext(ce),R.transformIntoNewTimeline(),null!=ce.delay)){6==R.previousNode.type&&(R.currentTimeline.snapshotCurrentStyles(),R.previousNode=su);const Ie=Dl(ce.delay);R.delayNextStep(Ie)}_.steps.length&&(_.steps.forEach(Ie=>Ns(this,Ie,R)),R.currentTimeline.applyStylesToKeyframe(),R.subContextCount>p&&R.transformIntoNewTimeline()),A.previousNode=_}visitGroup(_,A){const p=[];let R=A.currentTimeline.currentTime;const ce=_.options&&_.options.delay?Dl(_.options.delay):0;_.steps.forEach(Ie=>{const Je=A.createSubContext(_.options);ce&&Je.delayNextStep(ce),Ns(this,Ie,Je),R=Math.max(R,Je.currentTimeline.currentTime),p.push(Je.currentTimeline)}),p.forEach(Ie=>A.currentTimeline.mergeTimelineCollectedStyles(Ie)),A.transformIntoNewTimeline(R),A.previousNode=_}_visitTiming(_,A){if(_.dynamic){const p=_.strValue;return Nc(A.params?qd(p,A.params,A.errors):p,A.errors)}return{duration:_.duration,delay:_.delay,easing:_.easing}}visitAnimate(_,A){const p=A.currentAnimateTimings=this._visitTiming(_.timings,A),R=A.currentTimeline;p.delay&&(A.incrementTime(p.delay),R.snapshotCurrentStyles());const ce=_.style;5==ce.type?this.visitKeyframes(ce,A):(A.incrementTime(p.duration),this.visitStyle(ce,A),R.applyStylesToKeyframe()),A.currentAnimateTimings=null,A.previousNode=_}visitStyle(_,A){const p=A.currentTimeline,R=A.currentAnimateTimings;!R&&p.hasCurrentStyleProperties()&&p.forwardFrame();const ce=R&&R.easing||_.easing;_.isEmptyStep?p.applyEmptyStep(ce):p.setStyles(_.styles,ce,A.errors,A.options),A.previousNode=_}visitKeyframes(_,A){const p=A.currentAnimateTimings,R=A.currentTimeline.duration,ce=p.duration,Je=A.createSubContext().currentTimeline;Je.easing=p.easing,_.styles.forEach(At=>{Je.forwardTime((At.offset||0)*ce),Je.setStyles(At.styles,At.easing,A.errors,A.options),Je.applyStylesToKeyframe()}),A.currentTimeline.mergeTimelineCollectedStyles(Je),A.transformIntoNewTimeline(R+ce),A.previousNode=_}visitQuery(_,A){const p=A.currentTimeline.currentTime,R=_.options||{},ce=R.delay?Dl(R.delay):0;ce&&(6===A.previousNode.type||0==p&&A.currentTimeline.hasCurrentStyleProperties())&&(A.currentTimeline.snapshotCurrentStyles(),A.previousNode=su);let Ie=p;const Je=A.invokeQuery(_.selector,_.originalSelector,_.limit,_.includeSelf,!!R.optional,A.errors);A.currentQueryTotal=Je.length;let At=null;Je.forEach((Gt,ir)=>{A.currentQueryIndex=ir;const vr=A.createSubContext(_.options,Gt);ce&&vr.delayNextStep(ce),Gt===A.element&&(At=vr.currentTimeline),Ns(this,_.animation,vr),vr.currentTimeline.applyStylesToKeyframe(),Ie=Math.max(Ie,vr.currentTimeline.currentTime)}),A.currentQueryIndex=0,A.currentQueryTotal=0,A.transformIntoNewTimeline(Ie),At&&(A.currentTimeline.mergeTimelineCollectedStyles(At),A.currentTimeline.snapshotCurrentStyles()),A.previousNode=_}visitStagger(_,A){const p=A.parentContext,R=A.currentTimeline,ce=_.timings,Ie=Math.abs(ce.duration),Je=Ie*(A.currentQueryTotal-1);let At=Ie*A.currentQueryIndex;switch(ce.duration<0?"reverse":ce.easing){case"reverse":At=Je-At;break;case"full":At=p.currentStaggerTime}const ir=A.currentTimeline;At&&ir.delayNextStep(At);const vr=ir.currentTime;Ns(this,_.animation,A),A.previousNode=_,p.currentStaggerTime=R.currentTime-vr+(R.startTime-p.currentTimeline.startTime)}}const su={};class fd{constructor(_,A,p,R,ce,Ie,Je,At){this._driver=_,this.element=A,this.subInstructions=p,this._enterClassName=R,this._leaveClassName=ce,this.errors=Ie,this.timelines=Je,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=su,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=At||new lu(this._driver,A,0),Je.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(_,A){if(!_)return;const p=_;let R=this.options;null!=p.duration&&(R.duration=Dl(p.duration)),null!=p.delay&&(R.delay=Dl(p.delay));const ce=p.params;if(ce){let Ie=R.params;Ie||(Ie=this.options.params={}),Object.keys(ce).forEach(Je=>{(!A||!Ie.hasOwnProperty(Je))&&(Ie[Je]=qd(ce[Je],Ie,this.errors))})}}_copyOptions(){const _={};if(this.options){const A=this.options.params;if(A){const p=_.params={};Object.keys(A).forEach(R=>{p[R]=A[R]})}}return _}createSubContext(_=null,A,p){const R=A||this.element,ce=new fd(this._driver,R,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(R,p||0));return ce.previousNode=this.previousNode,ce.currentAnimateTimings=this.currentAnimateTimings,ce.options=this._copyOptions(),ce.updateOptions(_),ce.currentQueryIndex=this.currentQueryIndex,ce.currentQueryTotal=this.currentQueryTotal,ce.parentContext=this,this.subContextCount++,ce}transformIntoNewTimeline(_){return this.previousNode=su,this.currentTimeline=this.currentTimeline.fork(this.element,_),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(_,A,p){const R={duration:A??_.duration,delay:this.currentTimeline.currentTime+(p??0)+_.delay,easing:""},ce=new pl(this._driver,_.element,_.keyframes,_.preStyleProps,_.postStyleProps,R,_.stretchStartingKeyframe);return this.timelines.push(ce),R}incrementTime(_){this.currentTimeline.forwardTime(this.currentTimeline.duration+_)}delayNextStep(_){_>0&&this.currentTimeline.delayNextStep(_)}invokeQuery(_,A,p,R,ce,Ie){let Je=[];if(R&&Je.push(this.element),_.length>0){_=(_=_.replace(Eg,"."+this._enterClassName)).replace(vg,"."+this._leaveClassName);let Gt=this._driver.query(this.element,_,1!=p);0!==p&&(Gt=p<0?Gt.slice(Gt.length+p,Gt.length):Gt.slice(0,p)),Je.push(...Gt)}return!ce&&0==Je.length&&Ie.push(function Rm(f){return new e.vHH(3014,!1)}()),Je}}class lu{constructor(_,A,p,R){this._driver=_,this.element=A,this.startTime=p,this._elementTimelineStylesLookup=R,this.duration=0,this.easing=null,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(A),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(A,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(_){const A=1===this._keyframes.size&&this._pendingStyles.size;this.duration||A?(this.forwardTime(this.currentTime+_),A&&this.snapshotCurrentStyles()):this.startTime+=_}fork(_,A){return this.applyStylesToKeyframe(),new lu(this._driver,_,A||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(_){this.applyStylesToKeyframe(),this.duration=_,this._loadKeyframe()}_updateStyle(_,A){this._localTimelineStyles.set(_,A),this._globalTimelineStyles.set(_,A),this._styleSummary.set(_,{time:this.currentTime,value:A})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(_){_&&this._previousKeyframe.set("easing",_);for(let[A,p]of this._globalTimelineStyles)this._backFill.set(A,p||Ao.l3),this._currentKeyframe.set(A,Ao.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(_,A,p,R){A&&this._previousKeyframe.set("easing",A);const ce=R&&R.params||{},Ie=function ws(f,_){const A=new Map;let p;return f.forEach(R=>{if("*"===R){p=p||_.keys();for(let ce of p)A.set(ce,Ao.l3)}else Zl(R,A)}),A}(_,this._globalTimelineStyles);for(let[Je,At]of Ie){const Gt=qd(At,ce,p);this._pendingStyles.set(Je,Gt),this._localTimelineStyles.has(Je)||this._backFill.set(Je,this._globalTimelineStyles.get(Je)??Ao.l3),this._updateStyle(Je,Gt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((_,A)=>{this._currentKeyframe.set(A,_)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((_,A)=>{this._currentKeyframe.has(A)||this._currentKeyframe.set(A,_)}))}snapshotCurrentStyles(){for(let[_,A]of this._localTimelineStyles)this._pendingStyles.set(_,A),this._updateStyle(_,A)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const _=[];for(let A in this._currentKeyframe)_.push(A);return _}mergeTimelineCollectedStyles(_){_._styleSummary.forEach((A,p)=>{const R=this._styleSummary.get(p);(!R||A.time>R.time)&&this._updateStyle(p,A.value)})}buildKeyframes(){this.applyStylesToKeyframe();const _=new Set,A=new Set,p=1===this._keyframes.size&&0===this.duration;let R=[];this._keyframes.forEach((Je,At)=>{const Gt=Zl(Je,new Map,this._backFill);Gt.forEach((ir,vr)=>{ir===Ao.k1?_.add(vr):ir===Ao.l3&&A.add(vr)}),p||Gt.set("offset",At/this.duration),R.push(Gt)});const ce=_.size?dd(_.values()):[],Ie=A.size?dd(A.values()):[];if(p){const Je=R[0],At=new Map(Je);Je.set("offset",0),At.set("offset",1),R=[Je,At]}return x0(this.element,R,ce,Ie,this.duration,this.startTime,this.easing,!1)}}class pl extends lu{constructor(_,A,p,R,ce,Ie,Je=!1){super(_,A,Ie.delay),this.keyframes=p,this.preStyleProps=R,this.postStyleProps=ce,this._stretchStartingKeyframe=Je,this.timings={duration:Ie.duration,delay:Ie.delay,easing:Ie.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let _=this.keyframes,{delay:A,duration:p,easing:R}=this.timings;if(this._stretchStartingKeyframe&&A){const ce=[],Ie=p+A,Je=A/Ie,At=Zl(_[0]);At.set("offset",0),ce.push(At);const Gt=Zl(_[0]);Gt.set("offset",Rc(Je)),ce.push(Gt);const ir=_.length-1;for(let vr=1;vr<=ir;vr++){let Nr=Zl(_[vr]);const wr=Nr.get("offset");Nr.set("offset",Rc((A+wr*p)/Ie)),ce.push(Nr)}p=Ie,A=0,R="",_=ce}return x0(this.element,_,this.preStyleProps,this.postStyleProps,p,A,R,!0)}}function Rc(f,_=3){const A=Math.pow(10,_-1);return Math.round(f*A)/A}class Ic{}const I0=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 Dc extends Ic{normalizePropertyName(_,A){return Kd(_)}normalizeStyleValue(_,A,p,R){let ce="";const Ie=p.toString().trim();if(I0.has(A)&&0!==p&&"0"!==p)if("number"==typeof p)ce="px";else{const Je=p.match(/^[+-]?[\d\.]+([a-z]*)$/);Je&&0==Je[1].length&&R.push(function Ag(f,_){return new e.vHH(3005,!1)}())}return Ie+ce}}function cc(f,_,A,p,R,ce,Ie,Je,At,Gt,ir,vr,Nr){return{type:0,element:f,triggerName:_,isRemovalTransition:R,fromState:A,fromStyles:ce,toState:p,toStyles:Ie,timelines:Je,queriedElements:At,preStyleProps:Gt,postStyleProps:ir,totalTime:vr,errors:Nr}}const $l={};class dc{constructor(_,A,p){this._triggerName=_,this.ast=A,this._stateStyles=p}match(_,A,p,R){return function Pc(f,_,A,p,R){return f.some(ce=>ce(_,A,p,R))}(this.ast.matchers,_,A,p,R)}buildStyles(_,A,p){let R=this._stateStyles.get("*");return void 0!==_&&(R=this._stateStyles.get(_?.toString())||R),R?R.buildStyles(A,p):new Map}build(_,A,p,R,ce,Ie,Je,At,Gt,ir){const vr=[],Nr=this.ast.options&&this.ast.options.params||$l,Tr=this.buildStyles(p,Je&&Je.params||$l,vr),jr=At&&At.params||$l,_n=this.buildStyles(R,jr,vr),sn=new Set,Sn=new Map,Nn=new Map,on="void"===R,jn={params:kc(jr,Nr),delay:this.ast.options?.delay},gn=ir?[]:wc(_,A,this.ast.animation,ce,Ie,Tr,_n,jn,Gt,vr);let pi=0;if(gn.forEach(to=>{pi=Math.max(to.duration+to.delay,pi)}),vr.length)return cc(A,this._triggerName,p,R,on,Tr,_n,[],[],Sn,Nn,pi,vr);gn.forEach(to=>{const Qa=to.element,oo=Bs(Sn,Qa,new Set);to.preStyleProps.forEach(ca=>oo.add(ca));const go=Bs(Nn,Qa,new Set);to.postStyleProps.forEach(ca=>go.add(ca)),Qa!==A&&sn.add(Qa)});const _a=dd(sn.values());return cc(A,this._triggerName,p,R,on,Tr,_n,gn,_a,Sn,Nn,pi)}}function kc(f,_){const A=cd(_);for(const p in f)f.hasOwnProperty(p)&&null!=f[p]&&(A[p]=f[p]);return A}class Lc{constructor(_,A,p){this.styles=_,this.defaultParams=A,this.normalizer=p}buildStyles(_,A){const p=new Map,R=cd(this.defaultParams);return Object.keys(_).forEach(ce=>{const Ie=_[ce];null!==Ie&&(R[ce]=Ie)}),this.styles.styles.forEach(ce=>{"string"!=typeof ce&&ce.forEach((Ie,Je)=>{Ie&&(Ie=qd(Ie,R,A));const At=this.normalizer.normalizePropertyName(Je,A);Ie=this.normalizer.normalizeStyleValue(Je,At,Ie,A),p.set(Je,Ie)})}),p}}class Cf{constructor(_,A,p){this.name=_,this.ast=A,this._normalizer=p,this.transitionFactories=[],this.states=new Map,A.states.forEach(R=>{this.states.set(R.name,new Lc(R.style,R.options&&R.options.params||{},p))}),D0(this.states,"true","1"),D0(this.states,"false","0"),A.transitions.forEach(R=>{this.transitionFactories.push(new dc(_,R,this.states))}),this.fallbackTransition=function Tf(f,_,A){return new dc(f,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ie,Je)=>!0],options:null,queryCount:0,depCount:0},_)}(_,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(_,A,p,R){return this.transitionFactories.find(Ie=>Ie.match(_,A,p,R))||null}matchStyles(_,A,p){return this.fallbackTransition.buildStyles(_,A,p)}}function D0(f,_,A){f.has(_)?f.has(A)||f.set(A,f.get(_)):f.has(A)&&f.set(_,f.get(A))}const Mf=new _d;class Of{constructor(_,A,p){this.bodyNode=_,this._driver=A,this._normalizer=p,this._animations=new Map,this._playersById=new Map,this.players=[]}register(_,A){const p=[],R=[],ce=au(this._driver,A,p,R);if(p.length)throw function h0(f){return new e.vHH(3503,!1)}();this._animations.set(_,ce)}_buildPlayer(_,A,p){const R=_.element,ce=b0(0,this._normalizer,0,_.keyframes,A,p);return this._driver.animate(R,ce,_.duration,_.delay,_.easing,[],!0)}create(_,A,p={}){const R=[],ce=this._animations.get(_);let Ie;const Je=new Map;if(ce?(Ie=wc(this._driver,A,ce,T0,Oc,new Map,new Map,p,Mf,R),Ie.forEach(ir=>{const vr=Bs(Je,ir.element,new Map);ir.postStyleProps.forEach(Nr=>vr.set(Nr,null))})):(R.push(function Im(){return new e.vHH(3300,!1)}()),Ie=[]),R.length)throw function hg(f){return new e.vHH(3504,!1)}();Je.forEach((ir,vr)=>{ir.forEach((Nr,wr)=>{ir.set(wr,this._driver.computeStyle(vr,wr,Ao.l3))})});const Gt=cl(Ie.map(ir=>{const vr=Je.get(ir.element);return this._buildPlayer(ir,new Map,vr)}));return this._playersById.set(_,Gt),Gt.onDestroy(()=>this.destroy(_)),this.players.push(Gt),Gt}destroy(_){const A=this._getPlayer(_);A.destroy(),this._playersById.delete(_);const p=this.players.indexOf(A);p>=0&&this.players.splice(p,1)}_getPlayer(_){const A=this._playersById.get(_);if(!A)throw function Tc(f){return new e.vHH(3301,!1)}();return A}listen(_,A,p,R){const ce=ld(A,"","","");return od(this._getPlayer(_),p,ce,R),()=>{}}command(_,A,p,R){if("register"==p)return void this.register(_,R[0]);if("create"==p)return void this.create(_,A,R[0]||{});const ce=this._getPlayer(_);switch(p){case"play":ce.play();break;case"pause":ce.pause();break;case"reset":ce.reset();break;case"restart":ce.restart();break;case"finish":ce.finish();break;case"init":ce.init();break;case"setPosition":ce.setPosition(parseFloat(R[0]));break;case"destroy":this.destroy(_)}}}const P0="ng-animate-queued",cu="ng-animate-disabled",Rf=[],xf={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},If={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zs="__ng_removed";class md{get params(){return this.options.params}constructor(_,A=""){this.namespaceId=A;const p=_&&_.hasOwnProperty("value");if(this.value=function _u(f){return f??null}(p?_.value:_),p){const ce=cd(_);delete ce.value,this.options=ce}else this.options={};this.options.params||(this.options.params={})}absorbOptions(_){const A=_.params;if(A){const p=this.options.params;Object.keys(A).forEach(R=>{null==p[R]&&(p[R]=A[R])})}}}const hd="void",Gc=new md(hd);class du{constructor(_,A,p){this.id=_,this.hostElement=A,this._engine=p,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+_,Hs(A,this._hostClassName)}listen(_,A,p,R){if(!this._triggers.has(A))throw function af(f,_){return new e.vHH(3302,!1)}();if(null==p||0==p.length)throw function Dm(f){return new e.vHH(3303,!1)}();if(!function Df(f){return"start"==f||"done"==f}(p))throw function sf(f,_){return new e.vHH(3400,!1)}();const ce=Bs(this._elementListeners,_,[]),Ie={name:A,phase:p,callback:R};ce.push(Ie);const Je=Bs(this._engine.statesByElement,_,new Map);return Je.has(A)||(Hs(_,zd),Hs(_,zd+"-"+A),Je.set(A,Gc)),()=>{this._engine.afterFlush(()=>{const At=ce.indexOf(Ie);At>=0&&ce.splice(At,1),this._triggers.has(A)||Je.delete(A)})}}register(_,A){return!this._triggers.has(_)&&(this._triggers.set(_,A),!0)}_getTrigger(_){const A=this._triggers.get(_);if(!A)throw function Pm(f){return new e.vHH(3401,!1)}();return A}trigger(_,A,p,R=!0){const ce=this._getTrigger(A),Ie=new L0(this.id,A,_);let Je=this._engine.statesByElement.get(_);Je||(Hs(_,zd),Hs(_,zd+"-"+A),this._engine.statesByElement.set(_,Je=new Map));let At=Je.get(A);const Gt=new md(p,this.id);if(!(p&&p.hasOwnProperty("value"))&&At&&Gt.absorbOptions(At.options),Je.set(A,Gt),At||(At=Gc),Gt.value!==hd&&At.value===Gt.value){if(!function kf(f,_){const A=Object.keys(f),p=Object.keys(_);if(A.length!=p.length)return!1;for(let R=0;R<A.length;R++){const ce=A[R];if(!_.hasOwnProperty(ce)||f[ce]!==_[ce])return!1}return!0}(At.params,Gt.params)){const jr=[],_n=ce.matchStyles(At.value,At.params,jr),sn=ce.matchStyles(Gt.value,Gt.params,jr);jr.length?this._engine.reportError(jr):this._engine.afterFlush(()=>{gl(_,_n),hl(_,sn)})}return}const Nr=Bs(this._engine.playersByElement,_,[]);Nr.forEach(jr=>{jr.namespaceId==this.id&&jr.triggerName==A&&jr.queued&&jr.destroy()});let wr=ce.matchTransition(At.value,Gt.value,_,Gt.params),Tr=!1;if(!wr){if(!R)return;wr=ce.fallbackTransition,Tr=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:_,triggerName:A,transition:wr,fromState:At,toState:Gt,player:Ie,isFallbackTransition:Tr}),Tr||(Hs(_,P0),Ie.onStart(()=>{Vl(_,P0)})),Ie.onDone(()=>{let jr=this.players.indexOf(Ie);jr>=0&&this.players.splice(jr,1);const _n=this._engine.playersByElement.get(_);if(_n){let sn=_n.indexOf(Ie);sn>=0&&_n.splice(sn,1)}}),this.players.push(Ie),Nr.push(Ie),Ie}deregister(_){this._triggers.delete(_),this._engine.statesByElement.forEach(A=>A.delete(_)),this._elementListeners.forEach((A,p)=>{this._elementListeners.set(p,A.filter(R=>R.name!=_))})}clearElementCache(_){this._engine.statesByElement.delete(_),this._elementListeners.delete(_);const A=this._engine.playersByElement.get(_);A&&(A.forEach(p=>p.destroy()),this._engine.playersByElement.delete(_))}_signalRemovalForInnerTriggers(_,A){const p=this._engine.driver.query(_,jd,!0);p.forEach(R=>{if(R[Zs])return;const ce=this._engine.fetchNamespacesByElement(R);ce.size?ce.forEach(Ie=>Ie.triggerLeaveAnimation(R,A,!1,!0)):this.clearElementCache(R)}),this._engine.afterFlushAnimationsDone(()=>p.forEach(R=>this.clearElementCache(R)))}triggerLeaveAnimation(_,A,p,R){const ce=this._engine.statesByElement.get(_),Ie=new Map;if(ce){const Je=[];if(ce.forEach((At,Gt)=>{if(Ie.set(Gt,At.value),this._triggers.has(Gt)){const ir=this.trigger(_,Gt,hd,R);ir&&Je.push(ir)}}),Je.length)return this._engine.markElementAsRemoved(this.id,_,!0,A,Ie),p&&cl(Je).onDone(()=>this._engine.processLeaveNode(_)),!0}return!1}prepareLeaveAnimationListeners(_){const A=this._elementListeners.get(_),p=this._engine.statesByElement.get(_);if(A&&p){const R=new Set;A.forEach(ce=>{const Ie=ce.name;if(R.has(Ie))return;R.add(Ie);const At=this._triggers.get(Ie).fallbackTransition,Gt=p.get(Ie)||Gc,ir=new md(hd),vr=new L0(this.id,Ie,_);this._engine.totalQueuedPlayers++,this._queue.push({element:_,triggerName:Ie,transition:At,fromState:Gt,toState:ir,player:vr,isFallbackTransition:!0})})}}removeNode(_,A){const p=this._engine;if(_.childElementCount&&this._signalRemovalForInnerTriggers(_,A),this.triggerLeaveAnimation(_,A,!0))return;let R=!1;if(p.totalAnimations){const ce=p.players.length?p.playersByQueriedElement.get(_):[];if(ce&&ce.length)R=!0;else{let Ie=_;for(;Ie=Ie.parentNode;)if(p.statesByElement.get(Ie)){R=!0;break}}}if(this.prepareLeaveAnimationListeners(_),R)p.markElementAsRemoved(this.id,_,!1,A);else{const ce=_[Zs];(!ce||ce===xf)&&(p.afterFlush(()=>this.clearElementCache(_)),p.destroyInnerAnimations(_),p._onRemovalComplete(_,A))}}insertNode(_,A){Hs(_,this._hostClassName)}drainQueuedTransitions(_){const A=[];return this._queue.forEach(p=>{const R=p.player;if(R.destroyed)return;const ce=p.element,Ie=this._elementListeners.get(ce);Ie&&Ie.forEach(Je=>{if(Je.name==p.triggerName){const At=ld(ce,p.triggerName,p.fromState.value,p.toState.value);At._data=_,od(p.player,Je.phase,At,Je.callback)}}),R.markedForDestroy?this._engine.afterFlush(()=>{R.destroy()}):A.push(p)}),this._queue=[],A.sort((p,R)=>{const ce=p.transition.ast.depCount,Ie=R.transition.ast.depCount;return 0==ce||0==Ie?ce-Ie:this._engine.driver.containsElement(p.element,R.element)?1:-1})}destroy(_){this.players.forEach(A=>A.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,_)}elementContainsData(_){let A=!1;return this._elementListeners.has(_)&&(A=!0),A=!!this._queue.find(p=>p.element===_)||A,A}}class k0{_onRemovalComplete(_,A){this.onRemovalComplete(_,A)}constructor(_,A,p){this.bodyNode=_,this.driver=A,this._normalizer=p,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=(R,ce)=>{}}get queuedPlayers(){const _=[];return this._namespaceList.forEach(A=>{A.players.forEach(p=>{p.queued&&_.push(p)})}),_}createNamespace(_,A){const p=new du(_,A,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,A)?this._balanceNamespaceList(p,A):(this.newHostElements.set(A,p),this.collectEnterElement(A)),this._namespaceLookup[_]=p}_balanceNamespaceList(_,A){const p=this._namespaceList,R=this.namespacesByHostElement;if(p.length-1>=0){let Ie=!1,Je=this.driver.getParentElement(A);for(;Je;){const At=R.get(Je);if(At){const Gt=p.indexOf(At);p.splice(Gt+1,0,_),Ie=!0;break}Je=this.driver.getParentElement(Je)}Ie||p.unshift(_)}else p.push(_);return R.set(A,_),_}register(_,A){let p=this._namespaceLookup[_];return p||(p=this.createNamespace(_,A)),p}registerTrigger(_,A,p){let R=this._namespaceLookup[_];R&&R.register(A,p)&&this.totalAnimations++}destroy(_,A){if(!_)return;const p=this._fetchNamespace(_);this.afterFlush(()=>{this.namespacesByHostElement.delete(p.hostElement),delete this._namespaceLookup[_];const R=this._namespaceList.indexOf(p);R>=0&&this._namespaceList.splice(R,1)}),this.afterFlushAnimationsDone(()=>p.destroy(A))}_fetchNamespace(_){return this._namespaceLookup[_]}fetchNamespacesByElement(_){const A=new Set,p=this.statesByElement.get(_);if(p)for(let R of p.values())if(R.namespaceId){const ce=this._fetchNamespace(R.namespaceId);ce&&A.add(ce)}return A}trigger(_,A,p,R){if(Uc(A)){const ce=this._fetchNamespace(_);if(ce)return ce.trigger(A,p,R),!0}return!1}insertNode(_,A,p,R){if(!Uc(A))return;const ce=A[Zs];if(ce&&ce.setForRemoval){ce.setForRemoval=!1,ce.setForMove=!0;const Ie=this.collectedLeaveElements.indexOf(A);Ie>=0&&this.collectedLeaveElements.splice(Ie,1)}if(_){const Ie=this._fetchNamespace(_);Ie&&Ie.insertNode(A,p)}R&&this.collectEnterElement(A)}collectEnterElement(_){this.collectedEnterElements.push(_)}markElementAsDisabled(_,A){A?this.disabledNodes.has(_)||(this.disabledNodes.add(_),Hs(_,cu)):this.disabledNodes.has(_)&&(this.disabledNodes.delete(_),Vl(_,cu))}removeNode(_,A,p,R){if(Uc(A)){const ce=_?this._fetchNamespace(_):null;if(ce?ce.removeNode(A,R):this.markElementAsRemoved(_,A,!1,R),p){const Ie=this.namespacesByHostElement.get(A);Ie&&Ie.id!==_&&Ie.removeNode(A,R)}}else this._onRemovalComplete(A,R)}markElementAsRemoved(_,A,p,R,ce){this.collectedLeaveElements.push(A),A[Zs]={namespaceId:_,setForRemoval:R,hasAnimation:p,removedBeforeQueried:!1,previousTriggersValues:ce}}listen(_,A,p,R,ce){return Uc(A)?this._fetchNamespace(_).listen(A,p,R,ce):()=>{}}_buildInstruction(_,A,p,R,ce){return _.transition.build(this.driver,_.element,_.fromState.value,_.toState.value,p,R,_.fromState.options,_.toState.options,A,ce)}destroyInnerAnimations(_){let A=this.driver.query(_,jd,!0);A.forEach(p=>this.destroyActiveAnimationsForElement(p)),0!=this.playersByQueriedElement.size&&(A=this.driver.query(_,M0,!0),A.forEach(p=>this.finishActiveQueriedAnimationOnElement(p)))}destroyActiveAnimationsForElement(_){const A=this.playersByElement.get(_);A&&A.forEach(p=>{p.queued?p.markedForDestroy=!0:p.destroy()})}finishActiveQueriedAnimationOnElement(_){const A=this.playersByQueriedElement.get(_);A&&A.forEach(p=>p.finish())}whenRenderingDone(){return new Promise(_=>{if(this.players.length)return cl(this.players).onDone(()=>_());_()})}processLeaveNode(_){const A=_[Zs];if(A&&A.setForRemoval){if(_[Zs]=xf,A.namespaceId){this.destroyInnerAnimations(_);const p=this._fetchNamespace(A.namespaceId);p&&p.clearElementCache(_)}this._onRemovalComplete(_,A.setForRemoval)}_.classList?.contains(cu)&&this.markElementAsDisabled(_,!1),this.driver.query(_,".ng-animate-disabled",!0).forEach(p=>{this.markElementAsDisabled(p,!1)})}flush(_=-1){let A=[];if(this.newHostElements.size&&(this.newHostElements.forEach((p,R)=>this._balanceNamespaceList(p,R)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let p=0;p<this.collectedEnterElements.length;p++)Hs(this.collectedEnterElements[p],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const p=[];try{A=this._flushAnimations(p,_)}finally{for(let R=0;R<p.length;R++)p[R]()}}else for(let p=0;p<this.collectedLeaveElements.length;p++)this.processLeaveNode(this.collectedLeaveElements[p]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(p=>p()),this._flushFns=[],this._whenQuietFns.length){const p=this._whenQuietFns;this._whenQuietFns=[],A.length?cl(A).onDone(()=>{p.forEach(R=>R())}):p.forEach(R=>R())}}reportError(_){throw function km(f){return new e.vHH(3402,!1)}()}_flushAnimations(_,A){const p=new _d,R=[],ce=new Map,Ie=[],Je=new Map,At=new Map,Gt=new Map,ir=new Set;this.disabledNodes.forEach(Pn=>{ir.add(Pn);const In=this.driver.query(Pn,".ng-animate-queued",!0);for(let Vn=0;Vn<In.length;Vn++)ir.add(In[Vn])});const vr=this.bodyNode,Nr=Array.from(this.statesByElement.keys()),wr=G0(Nr,this.collectedEnterElements),Tr=new Map;let jr=0;wr.forEach((Pn,In)=>{const Vn=T0+jr++;Tr.set(In,Vn),Pn.forEach(hn=>Hs(hn,Vn))});const _n=[],sn=new Set,Sn=new Set;for(let Pn=0;Pn<this.collectedLeaveElements.length;Pn++){const In=this.collectedLeaveElements[Pn],Vn=In[Zs];Vn&&Vn.setForRemoval&&(_n.push(In),sn.add(In),Vn.hasAnimation?this.driver.query(In,".ng-star-inserted",!0).forEach(hn=>sn.add(hn)):Sn.add(In))}const Nn=new Map,on=G0(Nr,Array.from(sn));on.forEach((Pn,In)=>{const Vn=Oc+jr++;Nn.set(In,Vn),Pn.forEach(hn=>Hs(hn,Vn))}),_.push(()=>{wr.forEach((Pn,In)=>{const Vn=Tr.get(In);Pn.forEach(hn=>Vl(hn,Vn))}),on.forEach((Pn,In)=>{const Vn=Nn.get(In);Pn.forEach(hn=>Vl(hn,Vn))}),_n.forEach(Pn=>{this.processLeaveNode(Pn)})});const jn=[],gn=[];for(let Pn=this._namespaceList.length-1;Pn>=0;Pn--)this._namespaceList[Pn].drainQueuedTransitions(A).forEach(Vn=>{const hn=Vn.player,ln=Vn.element;if(jn.push(hn),this.collectedEnterElements.length){const mo=ln[Zs];if(mo&&mo.setForMove){if(mo.previousTriggersValues&&mo.previousTriggersValues.has(Vn.triggerName)){const bl=mo.previousTriggersValues.get(Vn.triggerName),Es=this.statesByElement.get(Vn.element);if(Es&&Es.has(Vn.triggerName)){const _c=Es.get(Vn.triggerName);_c.value=bl,Es.set(Vn.triggerName,_c)}}return void hn.destroy()}}const bi=!vr||!this.driver.containsElement(vr,ln),Gi=Nn.get(ln),Ma=Tr.get(ln),Di=this._buildInstruction(Vn,p,Ma,Gi,bi);if(Di.errors&&Di.errors.length)return void gn.push(Di);if(bi)return hn.onStart(()=>gl(ln,Di.fromStyles)),hn.onDestroy(()=>hl(ln,Di.toStyles)),void R.push(hn);if(Vn.isFallbackTransition)return hn.onStart(()=>gl(ln,Di.fromStyles)),hn.onDestroy(()=>hl(ln,Di.toStyles)),void R.push(hn);const el=[];Di.timelines.forEach(mo=>{mo.stretchStartingKeyframe=!0,this.disabledNodes.has(mo.element)||el.push(mo)}),Di.timelines=el,p.append(ln,Di.timelines),Ie.push({instruction:Di,player:hn,element:ln}),Di.queriedElements.forEach(mo=>Bs(Je,mo,[]).push(hn)),Di.preStyleProps.forEach((mo,bl)=>{if(mo.size){let Es=At.get(bl);Es||At.set(bl,Es=new Set),mo.forEach((_c,fc)=>Es.add(fc))}}),Di.postStyleProps.forEach((mo,bl)=>{let Es=Gt.get(bl);Es||Gt.set(bl,Es=new Set),mo.forEach((_c,fc)=>Es.add(fc))})});if(gn.length){const Pn=[];gn.forEach(In=>{Pn.push(function Mc(f,_){return new e.vHH(3505,!1)}())}),jn.forEach(In=>In.destroy()),this.reportError(Pn)}const pi=new Map,_a=new Map;Ie.forEach(Pn=>{const In=Pn.element;p.has(In)&&(_a.set(In,In),this._beforeAnimationBuild(Pn.player.namespaceId,Pn.instruction,pi))}),R.forEach(Pn=>{const In=Pn.element;this._getPreviousPlayers(In,!1,Pn.namespaceId,Pn.triggerName,null).forEach(hn=>{Bs(pi,In,[]).push(hn),hn.destroy()})});const to=_n.filter(Pn=>B0(Pn,At,Gt)),Qa=new Map;F0(Qa,this.driver,Sn,Gt,Ao.l3).forEach(Pn=>{B0(Pn,At,Gt)&&to.push(Pn)});const go=new Map;wr.forEach((Pn,In)=>{F0(go,this.driver,new Set(Pn),At,Ao.k1)}),to.forEach(Pn=>{const In=Qa.get(Pn),Vn=go.get(Pn);Qa.set(Pn,new Map([...Array.from(In?.entries()??[]),...Array.from(Vn?.entries()??[])]))});const ca=[],Si=[],So={};Ie.forEach(Pn=>{const{element:In,player:Vn,instruction:hn}=Pn;if(p.has(In)){if(ir.has(In))return Vn.onDestroy(()=>hl(In,hn.toStyles)),Vn.disabled=!0,Vn.overrideTotalTime(hn.totalTime),void R.push(Vn);let ln=So;if(_a.size>1){let Gi=In;const Ma=[];for(;Gi=Gi.parentNode;){const Di=_a.get(Gi);if(Di){ln=Di;break}Ma.push(Gi)}Ma.forEach(Di=>_a.set(Di,ln))}const bi=this._buildAnimation(Vn.namespaceId,hn,pi,ce,go,Qa);if(Vn.setRealPlayer(bi),ln===So)ca.push(Vn);else{const Gi=this.playersByElement.get(ln);Gi&&Gi.length&&(Vn.parentPlayer=cl(Gi)),R.push(Vn)}}else gl(In,hn.fromStyles),Vn.onDestroy(()=>hl(In,hn.toStyles)),Si.push(Vn),ir.has(In)&&R.push(Vn)}),Si.forEach(Pn=>{const In=ce.get(Pn.element);if(In&&In.length){const Vn=cl(In);Pn.setRealPlayer(Vn)}}),R.forEach(Pn=>{Pn.parentPlayer?Pn.syncPlayerEvents(Pn.parentPlayer):Pn.destroy()});for(let Pn=0;Pn<_n.length;Pn++){const In=_n[Pn],Vn=In[Zs];if(Vl(In,Oc),Vn&&Vn.hasAnimation)continue;let hn=[];if(Je.size){let bi=Je.get(In);bi&&bi.length&&hn.push(...bi);let Gi=this.driver.query(In,M0,!0);for(let Ma=0;Ma<Gi.length;Ma++){let Di=Je.get(Gi[Ma]);Di&&Di.length&&hn.push(...Di)}}const ln=hn.filter(bi=>!bi.destroyed);ln.length?nh(this,In,ln):this.processLeaveNode(In)}return _n.length=0,ca.forEach(Pn=>{this.players.push(Pn),Pn.onDone(()=>{Pn.destroy();const In=this.players.indexOf(Pn);this.players.splice(In,1)}),Pn.play()}),ca}elementContainsData(_,A){let p=!1;const R=A[Zs];return R&&R.setForRemoval&&(p=!0),this.playersByElement.has(A)&&(p=!0),this.playersByQueriedElement.has(A)&&(p=!0),this.statesByElement.has(A)&&(p=!0),this._fetchNamespace(_).elementContainsData(A)||p}afterFlush(_){this._flushFns.push(_)}afterFlushAnimationsDone(_){this._whenQuietFns.push(_)}_getPreviousPlayers(_,A,p,R,ce){let Ie=[];if(A){const Je=this.playersByQueriedElement.get(_);Je&&(Ie=Je)}else{const Je=this.playersByElement.get(_);if(Je){const At=!ce||ce==hd;Je.forEach(Gt=>{Gt.queued||!At&&Gt.triggerName!=R||Ie.push(Gt)})}}return(p||R)&&(Ie=Ie.filter(Je=>!(p&&p!=Je.namespaceId||R&&R!=Je.triggerName))),Ie}_beforeAnimationBuild(_,A,p){const ce=A.element,Ie=A.isRemovalTransition?void 0:_,Je=A.isRemovalTransition?void 0:A.triggerName;for(const At of A.timelines){const Gt=At.element,ir=Gt!==ce,vr=Bs(p,Gt,[]);this._getPreviousPlayers(Gt,ir,Ie,Je,A.toState).forEach(wr=>{const Tr=wr.getRealPlayer();Tr.beforeDestroy&&Tr.beforeDestroy(),wr.destroy(),vr.push(wr)})}gl(ce,A.fromStyles)}_buildAnimation(_,A,p,R,ce,Ie){const Je=A.triggerName,At=A.element,Gt=[],ir=new Set,vr=new Set,Nr=A.timelines.map(Tr=>{const jr=Tr.element;ir.add(jr);const _n=jr[Zs];if(_n&&_n.removedBeforeQueried)return new Ao.ZN(Tr.duration,Tr.delay);const sn=jr!==At,Sn=function Pf(f){const _=[];return U0(f,_),_}((p.get(jr)||Rf).map(pi=>pi.getRealPlayer())).filter(pi=>!!pi.element&&pi.element===jr),Nn=ce.get(jr),on=Ie.get(jr),jn=b0(0,this._normalizer,0,Tr.keyframes,Nn,on),gn=this._buildPlayer(Tr,jn,Sn);if(Tr.subTimeline&&R&&vr.add(jr),sn){const pi=new L0(_,Je,jr);pi.setRealPlayer(gn),Gt.push(pi)}return gn});Gt.forEach(Tr=>{Bs(this.playersByQueriedElement,Tr.element,[]).push(Tr),Tr.onDone(()=>function uu(f,_,A){let p=f.get(_);if(p){if(p.length){const R=p.indexOf(A);p.splice(R,1)}0==p.length&&f.delete(_)}return p}(this.playersByQueriedElement,Tr.element,Tr))}),ir.forEach(Tr=>Hs(Tr,_f));const wr=cl(Nr);return wr.onDestroy(()=>{ir.forEach(Tr=>Vl(Tr,_f)),hl(At,A.toStyles)}),vr.forEach(Tr=>{Bs(R,Tr,[]).push(wr)}),wr}_buildPlayer(_,A,p){return A.length>0?this.driver.animate(_.element,A,_.duration,_.delay,_.easing,p):new Ao.ZN(_.duration,_.delay)}}class L0{constructor(_,A,p){this.namespaceId=_,this.triggerName=A,this.element=p,this._player=new Ao.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(_){this._containsRealPlayer||(this._player=_,this._queuedCallbacks.forEach((A,p)=>{A.forEach(R=>od(_,p,void 0,R))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(_.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(_){this.totalTime=_}syncPlayerEvents(_){const A=this._player;A.triggerCallback&&_.onStart(()=>A.triggerCallback("start")),_.onDone(()=>this.finish()),_.onDestroy(()=>this.destroy())}_queueEvent(_,A){Bs(this._queuedCallbacks,_,[]).push(A)}onDone(_){this.queued&&this._queueEvent("done",_),this._player.onDone(_)}onStart(_){this.queued&&this._queueEvent("start",_),this._player.onStart(_)}onDestroy(_){this.queued&&this._queueEvent("destroy",_),this._player.onDestroy(_)}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(_){this.queued||this._player.setPosition(_)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(_){const A=this._player;A.triggerCallback&&A.triggerCallback(_)}}function Uc(f){return f&&1===f.nodeType}function fu(f,_){const A=f.style.display;return f.style.display=_??"none",A}function F0(f,_,A,p,R){const ce=[];A.forEach(At=>ce.push(fu(At)));const Ie=[];p.forEach((At,Gt)=>{const ir=new Map;At.forEach(vr=>{const Nr=_.computeStyle(Gt,vr,R);ir.set(vr,Nr),(!Nr||0==Nr.length)&&(Gt[Zs]=If,Ie.push(Gt))}),f.set(Gt,ir)});let Je=0;return A.forEach(At=>fu(At,ce[Je++])),Ie}function G0(f,_){const A=new Map;if(f.forEach(Je=>A.set(Je,[])),0==_.length)return A;const p=1,R=new Set(_),ce=new Map;function Ie(Je){if(!Je)return p;let At=ce.get(Je);if(At)return At;const Gt=Je.parentNode;return At=A.has(Gt)?Gt:R.has(Gt)?p:Ie(Gt),ce.set(Je,At),At}return _.forEach(Je=>{const At=Ie(Je);At!==p&&A.get(At).push(Je)}),A}function Hs(f,_){f.classList?.add(_)}function Vl(f,_){f.classList?.remove(_)}function nh(f,_,A){cl(A).onDone(()=>f.processLeaveNode(_))}function U0(f,_){for(let A=0;A<f.length;A++){const p=f[A];p instanceof Ao.ZE?U0(p.players,_):_.push(p)}}function B0(f,_,A){const p=A.get(f);if(!p)return!1;let R=_.get(f);return R?p.forEach(ce=>R.add(ce)):_.set(f,p),A.delete(f),!0}class Au{constructor(_,A,p){this.bodyNode=_,this._driver=A,this._normalizer=p,this._triggerCache={},this.onRemovalComplete=(R,ce)=>{},this._transitionEngine=new k0(_,A,p),this._timelineEngine=new Of(_,A,p),this._transitionEngine.onRemovalComplete=(R,ce)=>this.onRemovalComplete(R,ce)}registerTrigger(_,A,p,R,ce){const Ie=_+"-"+R;let Je=this._triggerCache[Ie];if(!Je){const At=[],Gt=[],ir=au(this._driver,ce,At,Gt);if(At.length)throw function m0(f,_){return new e.vHH(3404,!1)}();Je=function Fc(f,_,A){return new Cf(f,_,A)}(R,ir,this._normalizer),this._triggerCache[Ie]=Je}this._transitionEngine.registerTrigger(A,R,Je)}register(_,A){this._transitionEngine.register(_,A)}destroy(_,A){this._transitionEngine.destroy(_,A)}onInsert(_,A,p,R){this._transitionEngine.insertNode(_,A,p,R)}onRemove(_,A,p,R){this._transitionEngine.removeNode(_,A,R||!1,p)}disableAnimations(_,A){this._transitionEngine.markElementAsDisabled(_,A)}process(_,A,p,R){if("@"==p.charAt(0)){const[ce,Ie]=Vd(p);this._timelineEngine.command(ce,A,Ie,R)}else this._transitionEngine.trigger(_,A,p,R)}listen(_,A,p,R,ce){if("@"==p.charAt(0)){const[Ie,Je]=Vd(p);return this._timelineEngine.listen(Ie,A,Je,ce)}return this._transitionEngine.listen(_,A,p,R,ce)}flush(_=-1){this._transitionEngine.flush(_)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Ff=(()=>{class f{constructor(A,p,R){this._element=A,this._startStyles=p,this._endStyles=R,this._state=0;let ce=f.initialStylesByElement.get(A);ce||f.initialStylesByElement.set(A,ce=new Map),this._initialStyles=ce}start(){this._state<1&&(this._startStyles&&hl(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(hl(this._element,this._initialStyles),this._endStyles&&(hl(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(f.initialStylesByElement.delete(this._element),this._startStyles&&(gl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(gl(this._element,this._endStyles),this._endStyles=null),hl(this._element,this._initialStyles),this._state=3)}}return f.initialStylesByElement=new WeakMap,f})();function gd(f){let _=null;return f.forEach((A,p)=>{(function mu(f){return"display"===f||"position"===f})(p)&&(_=_||new Map,_.set(p,A))}),_}class Z0{constructor(_,A,p,R){this.element=_,this.keyframes=A,this.options=p,this._specialStyles=R,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=p.duration,this._delay=p.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(_=>_()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const _=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,_,this.options),this._finalKeyframe=_.length?_[_.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(_){const A=[];return _.forEach(p=>{A.push(Object.fromEntries(p))}),A}_triggerWebAnimation(_,A,p){return _.animate(this._convertKeyframesToObject(A),p)}onStart(_){this._originalOnStartFns.push(_),this._onStartFns.push(_)}onDone(_){this._originalOnDoneFns.push(_),this._onDoneFns.push(_)}onDestroy(_){this._onDestroyFns.push(_)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(_=>_()),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(_=>_()),this._onDestroyFns=[])}setPosition(_){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=_*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const _=new Map;this.hasStarted()&&this._finalKeyframe.forEach((p,R)=>{"offset"!==R&&_.set(R,this._finished?p:ud(this.element,R))}),this.currentSnapshot=_}triggerCallback(_){const A="start"===_?this._onStartFns:this._onDoneFns;A.forEach(p=>p()),A.length=0}}class Gf{validateStyleProperty(_){return!0}validateAnimatableStyleProperty(_){return!0}matchesElement(_,A){return!1}containsElement(_,A){return Gm(_,A)}getParentElement(_){return y0(_)}query(_,A,p){return Wd(_,A,p)}computeStyle(_,A,p){return window.getComputedStyle(_)[A]}animate(_,A,p,R,ce,Ie=[]){const At={duration:p,delay:R,fill:0==R?"both":"forwards"};ce&&(At.easing=ce);const Gt=new Map,ir=Ie.filter(wr=>wr instanceof Z0);(function N0(f,_){return 0===f||0===_})(p,R)&&ir.forEach(wr=>{wr.currentSnapshot.forEach((Tr,jr)=>Gt.set(jr,Tr))});let vr=function Ym(f){return f.length?f[0]instanceof Map?f:f.map(_=>O0(_)):[]}(A).map(wr=>Zl(wr));vr=function Pl(f,_,A){if(A.size&&_.length){let p=_[0],R=[];if(A.forEach((ce,Ie)=>{p.has(Ie)||R.push(Ie),p.set(Ie,ce)}),R.length)for(let ce=1;ce<_.length;ce++){let Ie=_[ce];R.forEach(Je=>Ie.set(Je,ud(f,Je)))}}return _}(_,vr,Gt);const Nr=function Lf(f,_){let A=null,p=null;return Array.isArray(_)&&_.length?(A=gd(_[0]),_.length>1&&(p=gd(_[_.length-1]))):_ instanceof Map&&(A=gd(_)),A||p?new Ff(f,A,p):null}(_,vr);return new Z0(_,vr,At,Nr)}}let Uf=(()=>{class f extends Ao._j{constructor(A,p){super(),this._nextAnimationId=0,this._renderer=A.createRenderer(p.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(A){const p=this._nextAnimationId.toString();this._nextAnimationId++;const R=Array.isArray(A)?(0,Ao.vP)(A):A;return H0(this._renderer,null,p,"register",[R]),new Bf(p,this._renderer)}}return f.\u0275fac=function(A){return new(A||f)(e.LFG(e.FYo),e.LFG(C.K0))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})();class Bf extends Ao.LC{constructor(_,A){super(),this._id=_,this._renderer=A}create(_,A){return new Zf(this._id,_,A||{},this._renderer)}}class Zf{constructor(_,A,p,R){this.id=_,this.element=A,this._renderer=R,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",p)}_listen(_,A){return this._renderer.listen(this.element,`@@${this.id}:${_}`,A)}_command(_,...A){return H0(this._renderer,this.element,this.id,_,A)}onDone(_){this._listen("done",_)}onStart(_){this._listen("start",_)}onDestroy(_){this._listen("destroy",_)}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(_){this._command("setPosition",_)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function H0(f,_,A,p,R){return f.setProperty(_,`@@${A}:${p}`,R)}const Y0="@.disabled";let hu=(()=>{class f{constructor(A,p,R){this.delegate=A,this.engine=p,this._zone=R,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),p.onRemovalComplete=(ce,Ie)=>{const Je=Ie?.parentNode(ce);Je&&Ie.removeChild(Je,ce)}}createRenderer(A,p){const ce=this.delegate.createRenderer(A,p);if(!(A&&p&&p.data&&p.data.animation)){let ir=this._rendererCache.get(ce);return ir||(ir=new kl("",ce,this.engine,()=>this._rendererCache.delete(ce)),this._rendererCache.set(ce,ir)),ir}const Ie=p.id,Je=p.id+"-"+this._currentId;this._currentId++,this.engine.register(Je,A);const At=ir=>{Array.isArray(ir)?ir.forEach(At):this.engine.registerTrigger(Ie,Je,A,ir.name,ir)};return p.data.animation.forEach(At),new ih(this,Je,ce,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(A,p,R){A>=0&&A<this._microtaskId?this._zone.run(()=>p(R)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ce=>{const[Ie,Je]=ce;Ie(Je)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([p,R]))}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 f.\u0275fac=function(A){return new(A||f)(e.LFG(e.FYo),e.LFG(Au),e.LFG(e.R0b))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})();class kl{constructor(_,A,p,R){this.namespaceId=_,this.delegate=A,this.engine=p,this._onDestroy=R,this.destroyNode=this.delegate.destroyNode?ce=>A.destroyNode(ce):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(_,A){return this.delegate.createElement(_,A)}createComment(_){return this.delegate.createComment(_)}createText(_){return this.delegate.createText(_)}appendChild(_,A){this.delegate.appendChild(_,A),this.engine.onInsert(this.namespaceId,A,_,!1)}insertBefore(_,A,p,R=!0){this.delegate.insertBefore(_,A,p),this.engine.onInsert(this.namespaceId,A,_,R)}removeChild(_,A,p){this.engine.onRemove(this.namespaceId,A,this.delegate,p)}selectRootElement(_,A){return this.delegate.selectRootElement(_,A)}parentNode(_){return this.delegate.parentNode(_)}nextSibling(_){return this.delegate.nextSibling(_)}setAttribute(_,A,p,R){this.delegate.setAttribute(_,A,p,R)}removeAttribute(_,A,p){this.delegate.removeAttribute(_,A,p)}addClass(_,A){this.delegate.addClass(_,A)}removeClass(_,A){this.delegate.removeClass(_,A)}setStyle(_,A,p,R){this.delegate.setStyle(_,A,p,R)}removeStyle(_,A,p){this.delegate.removeStyle(_,A,p)}setProperty(_,A,p){"@"==A.charAt(0)&&A==Y0?this.disableAnimations(_,!!p):this.delegate.setProperty(_,A,p)}setValue(_,A){this.delegate.setValue(_,A)}listen(_,A,p){return this.delegate.listen(_,A,p)}disableAnimations(_,A){this.engine.disableAnimations(_,A)}}class ih extends kl{constructor(_,A,p,R,ce){super(A,p,R,ce),this.factory=_,this.namespaceId=A}setProperty(_,A,p){"@"==A.charAt(0)?"."==A.charAt(1)&&A==Y0?this.disableAnimations(_,p=void 0===p||!!p):this.engine.process(this.namespaceId,_,A.slice(1),p):this.delegate.setProperty(_,A,p)}listen(_,A,p){if("@"==A.charAt(0)){const R=function ah(f){switch(f){case"body":return document.body;case"document":return document;case"window":return window;default:return f}}(_);let ce=A.slice(1),Ie="";return"@"!=ce.charAt(0)&&([ce,Ie]=function $0(f){const _=f.indexOf(".");return[f.substring(0,_),f.slice(_+1)]}(ce)),this.engine.listen(this.namespaceId,R,ce,Ie,Je=>{this.factory.scheduleListenerCallback(Je._data||-1,p,Je)})}return this.delegate.listen(_,A,p)}}const gu=[{provide:Ao._j,useClass:Uf},{provide:Ic,useFactory:function V0(){return new Dc}},{provide:Au,useClass:(()=>{class f extends Au{constructor(A,p,R,ce){super(A.body,p,R)}ngOnDestroy(){this.flush()}}return f.\u0275fac=function(A){return new(A||f)(e.LFG(C.K0),e.LFG(S0),e.LFG(Ic),e.LFG(e.z2F))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})()},{provide:e.FYo,useFactory:function oh(f,_,A){return new hu(f,_,A)},deps:[t.se,Au,e.R0b]}],Hf=[{provide:S0,useFactory:()=>new Gf},{provide:e.QbO,useValue:"BrowserAnimations"},...gu],sh=[{provide:S0,useClass:uf},{provide:e.QbO,useValue:"NoopAnimations"},...gu];let lh=(()=>{class f{static withConfig(A){return{ngModule:f,providers:A.disableAnimations?sh:Hf}}}return f.\u0275fac=function(A){return new(A||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({providers:Hf,imports:[t.b2]}),f})();var us=s(64652);const Yf=(f,_,A)=>{let p="od";if(0==A||0==_)return`0 ${p} ${A}`;const R=f*_;return`${R+1} - ${R<(A=Math.max(A,0))?Math.min(R+_,A):R+_} ${p} ${A}`};function dh(){const f=new us.ye;return f.getRangeLabel=Yf,f}var uh=s(35466),$f=s(17374),_h=s(32837);let Vf=(()=>{class f{constructor(A,p){this.accountService=A,this.notificationService=p}intercept(A,p){return p.handle(A).pipe((0,$f.b)(R=>{if(R instanceof Ee.Zn){let ce=R?.body?.errors?.code||0;(1001==ce||1002==ce||1003==ce||1004==ce)&&(this.showJWTExpiredNotification(),this.accountService.logout())}}),(0,_h.K)(R=>{throw this.showServerErrorNotification(),R}))}showJWTExpiredNotification(){try{let A="Sesija je istekla, odjavljeni ste.";this.notificationService.openNotificationIndefinite(A,"OK","error")}catch(A){console.error("Error while showing JWT expired notification:",A)}}showServerErrorNotification(){try{"Do\u0161lo je do pogre\u0161ke pri dohva\u0107anju va\u0161ih podataka. Molimo kontaktirajte podr\u0161ku."}catch(A){console.error("Error fetching data:",A)}}}return f.\u0275fac=function(A){return new(A||f)(e.LFG(I.B),e.LFG(q.g))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})();!function Ii(f){f._metadata=f._metadata||{},f._metadata.sdk={name:"sentry.javascript.angular",packages:[{name:"npm:@sentry/angular",version:Oa}],version:Oa},function ko(){const f=e.q4F&&e.q4F.major?parseInt(e.q4F.major,10):void 0;f&&(f<10&&Wo&&cn.kg.warn(`The Sentry SDK does not officially support Angular ${f}.`,"This version of the Sentry SDK supports Angular 10 and above.","Please consider upgrading your Angular version or downgrading the Sentry SDK."),Ba("angular",{version:f}))}(),function Ke(f={}){void 0===f.defaultIntegrations&&(f.defaultIntegrations=Oe),void 0===f.release&&("string"==typeof __SENTRY_RELEASE__&&(f.release=__SENTRY_RELEASE__),Zr.SENTRY_RELEASE&&Zr.SENTRY_RELEASE.id&&(f.release=Zr.SENTRY_RELEASE.id)),void 0===f.autoSessionTracking&&(f.autoSessionTracking=!0),void 0===f.sendClientReports&&(f.sendClientReports=!0);const _={...f,stackParser:(0,wn.Sq)(f.stackParser||g),integrations:Rt(f),transport:f.transport||((0,Jn.Ak)()?ae:J)};(function kn(f,_){!0===_.debug&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?cn.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const A=(0,mi.Gd)(),p=A.getScope();p&&p.update(_.initialScope);const R=new f(_);A.bindClient(R)})(jt,_),f.autoSessionTracking&&function Do(){if(typeof Zr.document>"u")return void((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&cn.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const f=(0,mi.Gd)();f.captureSession&&(Ca(f),(0,yn.o)("history",({from:_,to:A})=>{void 0===_||_===A||Ca((0,mi.Gd)())}))}()}(f)}({dsn:"https://0fa2f497fca84f649148e2265d8d4785@sentry.io/1539961",replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,environment:n.N.production?"production":"development",integrations:[new Kc({maskAllText:!1,maskAllInputs:!0,blockAllMedia:!1}),new Il({tracingOrigins:["https://whydonate.in/","https://whydonate.com/"]})],tracesSampleRate:1,ignoreErrors:["Non-Error exception captured","Couldn't load script","Failed to read the 'localStorage' property from 'Window'","No error message","Blocked a frame with origin","The operation is insecure","ResizeObserver loop completed","reading 'getItem'","evaluating 'localStorage.getItem'","evaluating 'a.j'","null (reading '_rawValidators')","(reading 'operator_privacy')","Loading chunk","Large Render Blocking Asset","Cannot read property 'getItem' of null","(reading 'hasOwnProperty')","(reading 'nativeElement')","(reading '_avast_submit')","'_rawValidators' of null","reading 'transformed'","reading 'L'","(evaluating 'a.L')","undefined is not an object (evaluating 'C.endsWith')","Illegal invocation","CanvasRenderingContext2D","Object Not Found Matching Id:2","this.loadedImage.transformed","NG02100",'Uncaught (in promise): Event: {"isTrusted":true}',"Large Render Blocking Asset","NetworkError when attempting to fetch resource.","Cannot read properties of undefined",'Cannot read property "transformed" of null',"translateNotifyError is not a function","withScope","Can't find variable: disableWebkitEnterFullscreen"],debug:!0,attachStacktrace:!0,release:"whydonate-web-portal@0.0.0"});let Wf=(()=>{class f{constructor(){}handleError(A){const p=/Loading chunk [\d]+ failed/;if(!(p.test(A.message)||p.test(A.error)||p.test(A)||p.test(A.originalError)))throw Pa(A.originalError||A||A.error||A.message),A}}return f.\u0275fac=function(A){return new(A||f)},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})(),fh=(()=>{class f{constructor(A){A.setDefaultFontSetClass("material-icons-outlined")}}return f.\u0275fac=function(A){return new(A||f)(e.LFG(x.jv))},f.\u0275mod=e.oAB({type:f,bootstrap:[ta]}),f.\u0275inj=e.cJS({providers:[{provide:e.qLn,useClass:Wf},{provide:Ia.Ad,useFactory:_=>function Bc(f){return{bg:"bg-BG",cs:"cs-CZ",da:"da-DK",de:"de-DE",el:"el-GR",en:"en-US","en-base":"en-US",es:"es-ES",fi:"fi-FI",fr:"fr-FR",hr:"hr-HR",hu:"hu-HU",it:"it-IT",nl:"nl-NL",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",sk:"sk-SK",sv:"sv-SE",uk:"uk-UA"}[f.getLocaleId()]||"en-US"}(_),deps:[I.B]},{provide:us.ye,useValue:dh()},{provide:Ee.TP,useClass:Vf,multi:!0}],imports:[t.b2.withServerTransition({appId:"serverApp"}),v,$a.q,lh,La.HomeModule,Ei.AccountModule,ma.FundraiserModule,bn.SearchModule,ha.ProfileModule,po.QG,uh.m,Ia.XK,Ee.JF]}),f})();n.N.production&&(0,e.G48)(),t.q6().bootstrapModule(fh).catch(f=>console.error(f))},42456:(St,be,s)=>{"use strict";s.d(be,{w:()=>e});var t=s(9206);let e=(()=>{class d{static getDesktopCloudinaryBaseUrl(){return this.DESKTOP_CLOUDINARY_BASE_URL}static getMobileCloudinaryBaseUrl(){return this.MOBILE_CLOUDINARY_BASE_URL}static getCloudinaryBaseUrl(){return this.CLOUDINARY_BASE_URL}static getWhydonateLogo(){return this.WHYDONATE_LOGO}static getBase64_FundraiserDefaultBg(){return this.FUNDRAISER_DEFAULT_BG_BASE64}static setUserlanguage(r){localStorage.setItem("userLang",r)}static base64toBlob(r,c){try{const E=r.replace(/^data:image\/(png|jpg|jpeg|webp);base64,/,"");c=c||"";const m=1024,v=atob(E),C=v.length,n=Math.ceil(C/m),i=new Array(n);for(let I=0;I<n;++I){const q=I*m,D=Math.min(q+m,C),M=new Array(D-q);for(let T=q,F=0;T<D;++F,++T)M[F]=v[T].charCodeAt(0);i[I]=new Uint8Array(M)}return new Blob(i,{type:c})}catch{return""}}static getPreviousPath(){if(localStorage.getItem("previous_path")){let r=localStorage.getItem("previous_path");return r?.startsWith("/")?r?.substring(1):r||""}}static setPreviousPath(r){let c=r?.startsWith("/")?r?.substring(1):r;localStorage.setItem("previous_path",c)}static getPathnameWithoutLocale(r,c){return r?.startsWith(`/${c}`)?r?.substring(4):r}static getCloudinaryCustomLogoPath(r){let c=this.removeWebpFromUrl(r);return c?.search("q_auto/")>0?t.N.cloudinaryBaseUrl+"dpr_auto,f_auto,q_auto/"+c?.split("q_auto/")?.[1]:c?.search("upload/v1/")>0?t.N.cloudinaryBaseUrl+"dpr_auto,f_auto,q_auto/"+c?.split("upload/v1/")?.[1]:c}static removeWebpFromUrl(r){return r.replace(".webp","")}}return d.DESKTOP_CLOUDINARY_BASE_URL="https://res.cloudinary.com/whydonate/image/upload/w_184,h_42,dpr_auto,f_auto,q_auto/whydonate-staging/platform/",d.MOBILE_CLOUDINARY_BASE_URL="https://res.cloudinary.com/whydonate/image/upload/w_92,h_21,dpr_auto,f_auto,q_auto/whydonate-staging/platform/",d.CLOUDINARY_BASE_URL="https://res.cloudinary.com/whydonate/image/upload/f_auto,q_auto/whydonate-staging/platform/",d.WHYDONATE_LOGO="https://imagedelivery.net/_0vgnXOEIHPwLg2E52a7gg/shared/WhyDonatesSVG/public",d.FUNDRAISER_DEFAULT_BG_BASE64="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4pLSwzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUk//2wBDAQ4ODhMREyYVFSZPNS01T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0//wAARCAJYBLADAREAAhEBAxEB/8QAGwABAAIDAQEAAAAAAAAAAAAAAAQFAgMGBwH/xABIEAEAAgECAgUICAIIAwkBAQAAAQIDBBEFMQYSIUFRExQiMmFxkaEVUlNigbHB0QdCFiMzVHKSouFj0vAkNDVDVXOCsvElJv/EABoBAQADAQEBAAAAAAAAAAAAAAABAgMEBQb/xAA1EQEAAgIBAwMCBAYBBAIDAAAAAQIDEQQSITETQVEUMgUiUmEVM0JxgaHhI2KR0bHwNEPB/9oADAMBAAIRAxEAPwD0ZogAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEyzvkn4Na+BilAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACaxSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhT2zu2QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAmsUgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACaxSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhNkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJrFIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACE2QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAmsUgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACaxSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhNkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJrFIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACE2QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAmsUgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACaxSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhNkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJrFIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACE2QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAmsUgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACaxSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhNkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJrFIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACE2QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAmsUgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACaxSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhNkAAAAAAMsdOvMxvsiZ0lt83+98lesPN/vfI6w83+98jrDzf73yOsPN/vfI6w83+98jrDzf73yOsPN/vfI6w83+98jrDzf73yOsPN/vfI6w83+98jrDzf73yOsPN/vfI6w83+98jrDzf73yOsPN/vfI6w83+98jrDzf73yOsPN/vfI6w83+98jrDzf73yOsPN/vfI6w83+98jrDzf73yOsPN/vfI6w83+98jrDzf73yOsPN/vfI6w83+98jrDzf73yOsPN/vfI6xqyU6ltt91onaGKQAAAABNYpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQmyAAAAAAGzT/wBp+Ct/CUlmAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAI2f8AtZaV8DWsgAAAABNYpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQmyAAAAAAGeGdssIt4SlMgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEyTvktPtax4GKUAAAAAJrFIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACE2QAAAAAARO0xPgCbE7xuxSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+Wnasz4ECG2QAAAAAAmsUgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITZAAAAAAACTgtvj28OxnaO6WxUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAas9tqbeK1Y7iO0QAAAAAAmsUgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITZAAAAAAADZgt1b7d0q2jslJZgAAAAAAAAAAAAAAAAAAAAAAAAAAAACLmt1rz4R2NaxqBglAAAAAACaxSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhNkAAAAAAAAJWK/Xpv397KY1KWaAAAAAAAAAAAAAAAAAAAAAAAAAAABhmv1ae2VqxuRFaIAAAAAAATWKQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEJsgAAAAAAABljv1Lb93eiY2lL5sgAAAAAAAAAAAAAAAAAAAAAAAAAAmYiN55AiZL9e2/waxGkMUgAAAAAACaxSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhNkAAAAAAAAAN2HJt6NuXcraPdLezAAAAAAAAAAAAAAAAAAAAAAAAAEfNk609WOUfNpWNDUsgAAAAAAABNYpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQmyAAAAAAAAAAG/Dl39G34SpavvCW5QAAAAAAAAAAAAAAAAAAAAAAAaM2Xf0a/jK9a+8jSugAAAAAAAABNYpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQmyAAAAAAAAAAAG7Fm29G/xUtX4S3qAAAAAAAAAAAAAAAAAAAABM7RvII+XLv6NeXi0rX5GpZAAAAAAAAAACaxSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhNkAAAAAAAAAAAAM8eWadnOPBE12lIpet47JZzGhkgAAAAAAAAAAAAAAAAAY3vWkds9vgmImRGvktfn2R4NIjQxSgAAAAAAAAAABNYpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQmyAAAAAAAAAAAAACJmJ3idgbqZ5jsvG/tUmvwlurato9Gd1ZjQ+oAAAAAAAAAAAAAHy1619adkxEyNF88z2V7PavFfkapnfmsgAAAAAAAAAAAABNYpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQmyAAAAAAAAAAAAAAACJmJ3gGyue0c+1WawltrmpPPsVmsjOLRPKYlXQ+gAAAAAAA+TaI5zEGhrtnrHLeVorI12zXnl2e5aKwNfPmsgAAAAAAAAAAAAAABNYpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQmyAAAAAAAAAAAAAAAAAAAGUZLxytKNQMoz39k/gjphL75xb6sHQPvnE/V+aOg2ecT9X5nQbfPOLeEJ6IHyc158I/A6YGM3vPO0p1CGKQAAAAAAAAAAAAAAAAABNYpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ7xteY9raPCHwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE1ikAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABG1Fdr7+LSs9hrWQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAmsUgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMMtOvTbvjkms6kRWqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE1ikAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABHz49p60cp5tKz7DUsgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABNYpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa8+fDpsNs2oyVx469s2tO0QCtx9JeEZb9THq62n2RM7/AIc1umUbhZafUYdTijLp8tMuOeVqW3hVLYAAAAAAAAAAAAAAAAAAAAAABPbG0gjZcU17Y9X8mlbbGtZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADbixb+lbl4K2t8JSGYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA866fcTyZ+KRw+tpjDp4ibR9a8xvv8Jj5tqR22paXKLqrfo3xjLwrimO85J83yWiuasz2TE9/vjmraNwmJ07z+l/AvK+T88nw63k7bfky6JX6oXOnz4dThrm0+WmXHblak7xKqWwAAAAAAAAAAAAAAAAAAAAAAGnJh37afBeLfI0TExO0xsugAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB9rWbTtEbkzob8eGK9tu2Wc22ltVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHnv8QOGXxcRpxGlZnFnrFbzHdaOz5xt8GuOe2lLQ5FoqAAseC8a1fBtVGXT3mccz/WYpn0bx+/tRNYlMTp6pwziGn4poaavS23pbnE86z3xLCY1LSJ2loAAAAAAAAAAAAAAAAAAAAAAHy1YtG0xuROhqtgj+WdvevFxrnFeO7f3LdUDCYmOcTCUAAAAAAAAAAAAAIms4nodD/wB61OPHP1d97fCO1aKzPhEzEeVJqemWjx7xpsGXNPjbasfuvGKfdSckK7L0z1sz/VabT0j729v1hb0oV9SXzH0z10f2unwW/wAO8frJ6UHqS6/QazFr9Hj1OHfqXjv5xPfDGY1OmsTuNpKEgAAAAAAAAAAAAAPsVtPKJk2Mow3nu296OqEttcER607qzcbIiIjaI2UH0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEHjWtx8P4RqNVkrW8Ur2VtHZa09kR8dkxG5JeP5cl82W+XJO97zNpn2y6GTEAEjQaPLr9XTT4Y9K3Oe6seMqZMkY69Ur46Te3TC74BxHUdHeOW0mo7cGS8Uyx3R4Wj4/BWJjJSLQm1Zpaay9NZpAAAAAAAAAAAAAAAAAAAAAAAfJmKxM2mIiOcyCJPF+GVydSeIaWLeHlq/unUm4Z5b0yRW+O1bVmOyazvEr0GtZAAAAAAAAAAADlOlfHc+mzeYaO047dWJyZI5xv3R4NsdInvLO9tdocda02tNrTMzPbMz3tmT4AADu/wCHuabaLV4J7YpkraPxj/Zy8iO8S2xeHX7R4OdobR4AbR4AbR4AbR4AbR4AbR4AbR4AbR4AbR4AbR4AbR4AbR4AbR4AbAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA5rp91v6Oejy8tXre7t/XZfH5Rbw80bM07TcG4hq9PXPp9PN8dt9p61Y5e+WN+RjpPTae7auDJaNxDbj4HrL5/IRFZzd9Kzv1PbaY7I/NWeTSI6vZMce8zr3dhwjhWHhen6lPSy29fJtz/2eVnz2y23Ph6WHDGKNR5UXGdJbXdLtNpccelkikTt4bzvPwehw51hcPLjeV6U0YgAAAAAAAAAAAAAAAAAAAAAKnpDx3BwTSRe8eUz5P7PFvz9s+xatdomdPNOJ8Z1/Fck21eotau/ZjidqV90NorEKTO0BKEjRa/V6HLGTSZ7458Insn3xykS7/o5x+nF8U48sRTVY43tWOVo8YVmFona8QkAAAAAAAAAiN52gHKdMOA6m+eOI6XHbLFqxGWlY3msxynbw2a4skeJZ3rPmFDoeA67V23tjnBj77ZI2+EM83Nx4u3mWmLi5MnfxDoMPRnh9MfVyRky277Tbb5Q8y34jmmdx2d9eDiiO/dQ8a4Nfh14yYpm+ntPZbvrPhL0uLy4zRqe0uHkcacU7jwhazQanRRjnU4+p5SN69rfFnpl30T4Y5MV8euqPLrf4d1nq6+3dvSP/sz5HsnF7u0czUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABF4nocfEuHZtHl7K5a7b+E90/FMTqdkvMNb0Z4vopyzfSWvjx7zOSnbEx4+LaLRLPUuu4XgpXg2lxRM9WcVZnqzMb7xvPL3vEzWn1bT+72MVY9OIS8WLHhp1MOOtK+FY2ZWtNp3LSKxEahmhZs4bw/D9J34hNd8vk4xxM93ud3Fm0xr2hw8qKxO/eVy7HGAAAAAAAAAAAAAAAAAAAAAA8h6Q8QvxLjWoz2nekWmmOPCsdkfv+LorGoZzO5VqUAM8OK+fLTFirNr3nasR3yi1orG5TETadQsdPGfgPHsM5p6s47x1pjlak8/lupjyRkr1VXvScdtS9OiYmImJ3iUj6AAAAAAAD7Ws2naI7SZ0JOPHFI35yzm20s1RW6/F1MvlI9W35vO5WPpt1R7vQ42Tden4RHM6iYiY2mNxCq6Q8OycQ0dfI7eUxTvFZ/m9js4XIrhv+bxLm5eGctfy+YXPRXhn0ZwelbzE5s0+UyeyfD8Ho3yRknceHnRSadp8rlRIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPbG0gobUwabbFp6dTDT0axvvs8nNaLZJmHq4azWkRL6zavtYm1orWN5nkREzOoRMxEblcYMUYcUU7+/wB71sVOiunlZL9dttjRmAAAAAAAAAAAAAAAAAAAAAA8V1uC+m1ufBkja2PJas/hLphm2aLhus19bzpMM5Ipt1u2I2397PJmpj+6V6Yr3+2G+eCa2mSMeSkVy29XHFotafbtHKPbOyn1NJjceF/QvE6ny6ngXA6cNp5bNtfU2jtnupHhH7vN5PJnL2jw78HHjH3nyreleC2p4tosGKu+TJXqx8XVwPslzc37odxipGPFSkdsVrEfB2OZmAAAAAADKlJvO0ImdCTSkUjaPizmdpZIAGGXHXLjmlu/5KXpF69Mr0vNLbhUZMdsV5paO2HlXpNJ1L1aWi0bhhM7RvKqzVF/KZIivqx2zKEpOHPfDO9J7O+J5NceW2OezK+Ot47tuPjFJnbLimI8azu1r+IR/VDC3Bn+mU7BqsGf+yyRM+HKXZjzUyfbLlvhvT7obmrIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABryajDitFcmWlZnumWdstKzq06aVx3tG6w1zrdLE/29Pir9Ti/Ut9Pl/SzpqcF/VzUn8Uxmxz4tCJw5I8w06vVVrjmmO0Ta3fHcyz54iNVnu1wYJmd2jsrZiJjaY7HnvQa8eG/laxS3ZM7bEVmZ1CJtERuV3h0uLDbrViZt4y9THgpSdw8y+a941Lc2YgAAAAAAAAAAAAAAAAAAAAAAPMOm+XRZePXnRxvkrXq57Rym0frEc21N6Ut5W3RfTeb6DLjtNbde0Xi+O28WrMRt2/hPZzh5vO31xL0OHromFxiw4sO/k6RWbTvae+Z9s97im028uuKxHhsQsYdFhya2mtvTfLirNaT4b/8AXzehwYtqfhw8vp3HysHoOIAAAAABnjxzefCPFE20lJrWKxtEMpnY+gAAA15sGPNG145cpjmzyYq38tKZLU8Iuq4dTLg6uL0bxymZ5+9jk4tZrqvltj5Votu3hX1xeR3pMbWjm8+azWdS74tFo3DDPbq458Z7FLzqF6xuURztX2JmJ3idpT4E/S8UzYtq5f6ynt5w7MPNvTtbvDky8Slu9e0rfBqMWop1sVt/GO+HqY8tckbrLzcmO2OdWhtaMwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGrVZfIae+XvrHZ72ea/p0mzTFTrvFXNWtbJebWmZtM7zLwJmbTuXuREVjUG07ckaG7TcrNcSl29qoAzxZK4stcl9+rWd52WpeKWi0qXrN6zWFviy48tetjvFo9kvWpet43WXl2pak6tDNZQAAAAAAAAAAAAAAAAAAAAABF4pkzYuF6q+miZzVxWmm3jt2JjyS8ZmZmZmZ3mecuhkveiV9RHEL48Uz5OaTNo7t45OHnxHp793Zwpnr17OwrqI5XjaXk7eppE1fG+H6bDe/nFL3rvHk6zvaZ8NnRTjZLzEac989Kx5TOA8Y0/FtLM4qzjyY9ovSZ3237/bD16Y4x1isPNtebz1StVlQAAAAG3Fim3bbl+as20lIiNo2hmAAAAAAAKriGSs555RFY2mXmcq8Tf+z0uNWYp/dV5b9e2/d3PPtbcu6sahgqkABniy3xXi+O01tHfC9L2pO6yrakXjVl1ouJUzbUzbUyePdL1cHMrf8tu0vMz8S1O9e8J7tcYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADRrcUZdLetpmIiN+z2MeRSL45iW2C81yRMKita1j0YiHlRER4epM7fZiJiYnlJMbEbHaMV7VsxrPTOpaWjqjcJEWi0bxMS2iYnwzmNPqR8tG9ZjxhExuCETHkvit1sdprbxiWFLWrO6zpratbRq0LjhmutnmcWaY68RvE+L1eLyZyTNbeXmcnjxSOqvhYu1xgAAAAAAAAAAAAAAAAAAEzERMzO0RzmSZ13lMRvtCDbiulraYib2274jscc87FE6dUcPJMbQuJdJ9Fw7Txnz4dTbFvta1KRPV9/a0w8mma3TXypk418cdUqKej3Cdbntr8GbJfDqJ8pTHSIrWsSZeZNY6ax3WxcTc7tPZZ6PRabQ4vJaXFFK9/jPvlwZMlsk7tLtpjrSNVhnmwWyUt5Cu+WYnqx4z3IpTqtEJvbprMvNq6fUZc18dMWS+Ssz1qxWZmJfQvDdv0P4NqeH1y6nV18nfLEVrjnnEeMqzK0Q6dCQAAAG/Fh/mv8FLW+EtygAAAAAAAA5jPltlyWmZ7JmZfPZLze0y96lIrEQ1M1wAAAAFhouJXw7Uzb3x+PfDtwcy1Py27w48/Ei/evaV1jyUy0i+O0WrPfD1qXreN1l5lqzWdWZLKgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMcsb4rx41lW8brMLUnVolSPHewAj6mvbFvwljkj3aUn2aYmY5TszXbK5rx37+9aLzCs1hnGo8a/Nf1Vehontndk0ZYslsWWuSnOs7tcfVW0WhnfVqzWXT4slcuKuSvK0bvdraLREw8S1ZrOpZLKgAAAAAAAAAAAAAAAAAKvjGot6Onpv29ttvyedzss9scPQ4WKPvlVeTv9Wfg83pn4eh1Q1ZsVM2K+HLWLUvE1tWe+CtprO48wTEWjUqboxnvw7ieq4BqLTNaTOTTzPfWe3b4Tv8Xr8mIyY65o/wAvPwzNLzin/DqnC6ibZK1tOG/UydWYrbbfadua2O3RaLKXr1Vmqu6NccjXcPm2qwY8Wox5LY8s4qbRNo79vxepk5VMN+m3ie+3BTjWvXqqv6Xrkr1qWiY9jopet43WdsLUtSdWhksqAAREzO0cwScWKK9s9s/kzm20tioAAAAAAAATyEuUmNpmJ7nzc9n0D4gAAAAAAbtNqcumv1sdvfE8pa4s1sU7qzyYq5I1Ze6TW4tVXsnq3jnWXsYORXLHby8nNgtinv4SXQwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY3/s7e6UW8StXzChxW62OJ/B4lZ3D2bRqWayGOSvWpMK2jcaTE6lDczZ8AAAdEMlxwXPvW2C08vSr+r0OHk7TSXBy8feLwtHa4gAAAAAAAAAAAAAAAAAFPqp62qyT7dnk5p3kmXq4Y1jhqZtUTUbRmmO+Y3c+SNWa08OT6T5p0PH+F8Rr2THo2mO+Int+VperwJ9TDfHLg5UdGSt4drXJS3K0OCLRLrmswyWQ5LgM9TjfG8EerGo60R75tv+jfnRvHjt+zHiz+e8fu6fQ5fJ6iIn1bdkseDl9PLEe0tOXj68e/eFs994wD7Ws2naCZ0JOPHFI8Z8WUztLNAAAAAAAAAAA5rW4/JazLX728fj2vA5FenLaHuYLdWOJaGLUAAAAAABlW01tFqzMTHKYTEzE7hExExqVxoeJxk2x6iYi/dbul6vH5kW/Lfy83PxJr+anhZO9wgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMM07Ybz4VlW86rK9O9oczpMn9dkxz39sPBxT309zJHbaY2ZAImavVyT4T2ue8alrWdw1qLAC1Y3KJnUDZm26bNODUUyx/LPb7mmO/RaLKZKddZq6asxasWrO8TG8PYidxuHjzGp1L6lAAAAAAAAAAAAAAAAACm1HZqMn+KXk5fvl62L7Ia2bRC4jG3k7x3djHLHiWuKfMOJ4ll02q4hl8+zZ/QyTWK1rExFY8N+T6Hi48lMNfTrHeP9vKz2pbJPVM9p/014OPcRwdkZ/KVjuyRv/u1yfhvHv8A06/spXl5a++1npul167Rn0/447fpP7uO/wCEa/l3/wDLevO/VVq6N6vHbjPEMua/Vtq8kTjie/tmf2Z/iHGyVw01G+nyniZazktv3djprdTJFvCXm8a3TeLOzPXqrMLh9E8NlTHN57OXiiZ0lKpWKRtDOZ2PqAAAAAAAAAAABzvE80ZOJZax/JEQ8TmW6s0/s9ni16cUfuiuV0AAANHlbUtNbduyNra22Vy0t37T7Uo0zEAAALnhOsm//Z8s72iPRme/2PV4XIm3/Tt/h5vLwa/PVZvQcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADRrrxj0WW0/VmI/FjyLdOK0tsFerJEORjJNM/lK90vAidTt7sxuNLetotWLRymN4dUTtzT2fUjVqK7063gzyRuNrUnuisGoDf5tfzSNRHq9bafZ7XTTFPp+owtlj1OhoQsAvOEajymCcVp9LHy9z0uJk6q9M+zzuVj6bdUe6wdbkAAAAAAAAAAAAAAAAAVOtjq6q/t7Xl8iNZJepx53jhoYtkbX1300z9WYlnkjdV8c/meZ6q8ZNVmvHbFrzMfF9dgr0461n2iHh5J6rzP7tTVQBacAy5o4lhwYprEXtvaerEztEdvb3djg/EKU9G17e0fLp4trepFYd5jjs38XzWOOz1rz3XelpOXFS08tnv477pEvFyV1eYS4iIjaI2gUfQAAAAAAAAAAAfLTFazaZ2iI3lEzqNpiNzpxl8031Ns087WmZ/F85a3VabfL6KtemsV+EhCoAADTqKcrR+JK1ZaELMq5LV5T2eAjTdXPWfW7E7RNW2JiY3gVAZUvbHet6ztas7wtW01ncItWLRqXTafLGfBTLXlaPg9/FkjJSLQ8PJSaWmstjRmAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATMREzM7RHeTOu8piNqHies86t5PHO2KvznxeNyuR6s9NfEPW42D046p8qW9ZpbaXE7oT+H5t6zitPbHbHubYrezHJX3TGzImN42nvQIV6zS0xLnmNTptE7h8VS6XT4a00dMNoiY6u1o/N9BixxXHFJeHkyTbJNoUeu0ltLm250t6svOzYpx2/Z6OHLGSv7orBs3aXPbT565K93OPGGmPJOO3VDPJSL16ZdHiy0zY4vjtE1l69bRaNw8m1ZrOpfNRnxaXT3z57xTFjjrWtPdC0RtVU4ekmm1OKMul02py4p7IvFYiN++O2Wnpz8q9Xwz+nY/uOp/0f8x6f7o6/2Pp2P7jqf9H/ADHp/udf7H07H9x1P+j/AJj0/wBzq/Za4skZcVcleVo3235M5jS7IAAAAAAAAAAFdxKu2WtvGNnBy6/miXfxJ/LMIbkdaLxWlsnCtVWkzFpxW228dmmHXqV6vG4Uyb6J08vfVvGAAXvRLD5TiV8m3Zjx/OZ//Xlfi19YopHvLs4Mfnm3xDtYjaNniRGnoLvh1t9FT2bx83qcad44eZyI1klKbsAAAAAAAAAAAAEPi2byPDc079to6sfi5+VfoxS6OLTqyw5J4L3UjBfevVnnCYVmG0VAAJiJjaeQIl6TS23wQvE7YiQGeK/Ut7J5iJjaUlQBa8Fz7TfBaefpV/V6XAyd5pLz+bj8XhbvTecAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAp+LazrWnT459GPXnxnweXzeRufTr/l6XEwajrt/hVvOd7HJSL19vcJidI9ZthyRMdlokidTtaYiYW2LJXLji9e/wCTprO425pjU6ZrIY3pW8bWhWaxPlMTMMNPppnV4qztNetG8oxYt5IifCMuTWOZh0T3XitefDTPinHkjeJ+Sl6ReNSvS80ncOe1elyaXJ1b9tZ9W3i8rLinHOpepiyxkjcNDJq2YdRk09utjvNfHwXpe1J3WVL0reNWhQcc47bjWWNPe84+H4J3y2x88tu6I/T4vcw9Wo6vul42WK7np8Qo9XqbanLFprFKVjq48deVKxyiHfWvTGnLM7aEgC66N8BycY1XWvvTS45/rL+P3Y9rPJk6I/dalep6bgw49Phphw0imOkbVrHKIcUzvvLoZoAAAAAAAAAGOTJTFjtkyWilKRM2tM7REHkcdTpXg4rxymkwYrVw7Wil7T60899vdDLmcW0U9Tfj2dfFyVienXeVs8p3kxFomJ5T2SeEPKdTinBqsuGeeO81+EvrKW6qxb5eLaNTMGDT5tRfqYMdr29ncWvWkbtKaUtedVhbYOj2W0ROfNWnsrG8uW3MrH2w66cK0/dK64TpacLjJ5KZvOTbebez/wDXDyZ+omJt7OvFgjFExHus662f5qR+EuSeN8S16VzwjiOmnFOK+SKXm28Rbs3/ABdPHjor0y4eTitNuqIW7ocSHruJYNFG1562SeVK8/8AZWbRDbFgtk8eFHqOOazLM+TmuKvhWN5+MqTeXdTi0r57odtdq7TvOpzf55RuWsYqR7Qzx8T1uOd66m8/4p635nVKJwY59llpOkFt4rq8cTH16fstF/lzZOH70leYc2PPjjJhvF6z3w0iduK1ZrOpZioAAAADn+kGrjJkrpqTvFJ3tPt8Hk8/N1T6cez1eDh6Y6591M896D7W01tEx3Am2ras7WiYmOcStMTE6llExMbh8QkABjkpF67d/cJidIsxNZ2nmhd8ABvwX/kn8EwrMNwq26fLOHPTJH8s7/g0xX6LxZTJTrrNXTVmLVi0TvExvD6CJ3G4eFManUvqUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANGtzeb6W+SPW22j3seRk9PHNm2DH6l4q5uZ3neebwXtviAB8vSt42mBMTp8weU0996+lWecLVtNZRaItCfS9bxvWfwbxaJ8MJiYZLACRh1mTF2T6VfCW+PkWp2nvDnycet+8dpT8OpxZuys7W8Jd2PNS/hx3w3p5Z5cVM2OaZKxasr2pF41LOt5rO4VGo4TlpMzgmL18JnaXBk4lo+3u76cus/d2cjx7W5Jy34dp56s1/t791I8P8Ar3N+Lxpr+e8f2hlyeRFvyUn+8qHJeJiuPHG2Onqx4+2fa9jHj6e8+ZeZe++0eGtooAl8O0GTXZ+pXspHbe3hH7ufk8iuCm58+zbBgnNbUeHqXCMeHDwzDj0+KMeOsbRWPfzcWPLOWvXPu6MmOMdprCauzAAAAAAAAAAeddN+knneW3C9Df8A7PSds16z/aWju90OzBi1+aUTLktJntpdXi1FPWx3i0fg2yUi9JrPuVt0zEw9Sw5aZsNMuOd6XrFqz7JfKWrNZms+z2omJjcM0JcZxvgmXLx+96xNdPm9Ob+E98e/93t8XlVjBEe8OG/Gm+X9lhp9Pi02KMeGkVrHz97G95vO5d1KVpGqtiq4AACz0HF8ulxXxX3vXqz1N/5Z/ZaLac2Xj1vO4V2S9sl7XyWm1rTvMz3quiIiI1DESAAAlaDXZdFmi9J3pPrU7pTE6ZZcUZI1LrsGamow1y4p3raN4bRO3k2rNZ1LYKgAAInEtZGj0s37OvPZSPaw5GaMVN+7fj4Zy317OStabWm1p3mZ3mZ73gTMzO5e7EREah8ErHg2inVamMl4/qsc7z7Z7odfEwepfc+IcnLzenTUeZWHGsHVyVz1jst2W97fn49TF492HCybiaSq3nO4AABhkxxePCfETE6RrVms7TCF3wCJ2neAT7UmtMd/5b160T+bS1JrqfljW0TMx8MVFl/wrN5XRxWZ7aT1f2e1w8nXi18PI5dOnJv5TXW5QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFT0k1mDRcNjJqLTHWvEViI3mZ//ADdlm49s9JrXy2w5ow36reFJg1ODU162DLW8eye2PweJlw5MU6vGnr48tMkbrO21k0AAAfeXJIzrmvXv3960XmFZrCy02lvqNPGWJiN9+yXdiwWyU6oceXPXHfpkvpM9f5N/d2luPkj2TXPjn3arVtWfSrMe+GU1mPLSLRPhsrqs9I2jJO3t7Wlc+SPEqWw458wxyZsmSd73mVbZLW8ytXHWviEDW6K2rxWxecZMVLRMWita9vyaYs0Y5307n/KmTF1xrenNcZ4Hh4dpIzV1NrWm0VitojterxeZbNfpmrzuRxa4q9USonoOJO4TwzUcV1tdNp49t7zypHjKt7xWNymtdzp2+Pgd+H464NNTr0+tHOZ8ZeByceXJk6p7vZ4+TFSmo7Og02LyGnpi+rHb73Zjp0VirjyX67TZtXZgAAAAAAAAOZ6ccatwzhcafT26uo1W9YmOda98/o2wU6rbn2JeXO9UB2vQ3iUZtLOgy2/rMXbTfvr/ALPD/EsHTb1I8S9DiZNx0T7OleY7GOXHXLSaXjeJTW01ncCp1Omvgt29tZ5S7seSLwtE7aGiQAAAAAAAAAF30c1U1y30tp9G0davv7/+vYvSfZxczHuIvDoWjzwAHyZisTMztEdsyTOu8piN9nJ8T1k6zVTaP7OvZSPZ4vB5Ob1b79nucbD6VNe6G53Qk6HRZNbm6lOysetbuiG2DBbLbUMc2auKu5dZp8GPTYa4sUbVr83u48dcdemrw8l7ZLdVmvXYvLaPJTbt23j3wz5FOvHML4L9GSJc28F7YAAAD5asWja0BtovhtXtr2wjS8S1CV7wzFGs4RbF/PivPUn5vSwY4zYJr7x4ebnv6Ofq9pQLVmtpraNpidph58xMTqXbExMbhYcGy9TUzjnlePnH/Uu3g31k6flyc2m6dXwu3rvKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAed9O9bOfjFdLE+hpqRG33p7Z+WzswV1XbDJPfTmomazE1mYmO+G0xExqVImY7wmYeK67D2V1FrR4X9L83Jk4PHv5r/47OmnLzU8WTcXSLUV/tcOO/u3hyX/AAjFP22mHRX8SyR90RKTTpHhn+00+Sv+GYn9nNb8Hv8A02hvX8Tp71SK8e0Nuc5K++v7MZ/CuRHjU/5ax+IYZ+Wf03w6I3nUbf8Awt+zOfw7kx/T/uF452Cf6v8A5b+H8Q0nEdbTSaXNFst95iJrMR2Rv4IjgZ/eNE83D7S7HT4/I4KY/qxs9XHTopFfh5mS/XabNi6hz5iVN0i4jo+E6Cc2THW2a/o4scdk2t+0KfT0vPeFvXvTxLk8HSjLiitNXgrkt/NOOdtvZ7S34bExus6aV58x2tDdl6V4Ip/U6bJa335iI/VnX8Mvv81l7fiFddoc9xDiGo4hm8pqLcvVrHKvuenhwUw11V5+XNbLO7Pmg0WfiGrpptNTrZLz+ER4z7GtrRWNyziNzqHqPBeE4OEaKMGGOtee3Jk27bz+zhvebzuXTWvTCwUSAAAAAAAAAAA8n6ba2dZ0l1Eb700+2Kv4c/nMu/DXVFZUDYAbNPny6bPTNgvNMlJ3raFL0res1t4TW01ncO24N0nwayaYNXHkc89kTHq2n9Hicn8Ptj/NTvD0cPJi/wCW3l0ETvG8POdT5asWrNbRExPdJE67wK7VaKab3xbzXw74dePNE9rLRKE6EgAAAAAAAAJXDbzj4jp7R9eI+PYmvllmjeOXZNnjgAKbj+t6lPNcc+lbtv7I8Hnc7PqPTj/L0eDg3PqT/hz7ynqJeg0GXW5Nq+jjj1rz3N8HHtmnt4YZ89cUd/LqdNp8Wlwxiw12rHxn2y9zHjrjr01eLkyWyW6rNq7MBzGpx+S1OSndW07Pnstei81e9it1UiWpmuAAAAA+WpW3OBO11wLBGLTXvEz6duU92z1+BTVJt8vL5193iPg4noLZLeWwxEz/ADRvt+KvL402nrp/lPF5EVjosh6LHGPU0yZZ2iJ7nJx6xXJFrOrPM2pMVX723jggAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB5Jx3LObjmuvP29o+E7PQpGqw5reZQFkAAAANeaeUM7z7JhN6OZ/NukGhy77R5atZ909k/mytG4Xr5ewuZsAAquLdH9DxbPTPqZy1y469WtqX27PdO8LVvNUTWJVv9BuFfbav/PX/AJWv1FlPTg/oNwr7bV/56/8AKfUWPTg/oNwr7bV/56/8p9RY9OFtwfgmi4PS8aWtptefSveYm0x4cuTO+Sb+V61ivhYqJAAAAAAAAAAAAeHa3NOo12ozzO85Mlrz+M7vTrGo0q0rAADfobxj12C88oyV3+LPLG6TC+KdXif3dziz5cXqWnbw7niWx1t5e3pNxcQrPZlr1fbHJz248/0o0l0yUyRvS0W9zCazXyhH1Oipl3tT0b/KWuPNNe0+ExKuy4MmGdr129vc6q3rbwttrXAAAAAAAErhtJycR09Y+vE/DtTXyyzTrHLsmzxyZ2jeeQlEza6lN4xR17ePc5cnKrXtXu6cfGtPe3Zy+qjL5e9s/be07zPi8bJNptM28vYxxWKxFUzhvCsmrmMmXemH529zp4/Etk/NbtDm5HLjH+WveXSYsVMOOMeKsVrXlEPYrWKRqvh5FrTad2ZrKgAKDi1err7z9aIl4vNjWaXscSd4oQnI6QAAAAEfV63Bo6dbNeInurHOXRg42TPOqQyy56Yo3aXRdHdTGr4JgzxWK9brbx4elMPbrhjDHRHs8a+SctpvKfn38hk2+rKMv2SnH98KV5D1llw/LN8c0tzpy9z0OLk6q9M+zz+TTpt1R7pbqcoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADyDi0dXi+tie7Pf/7S9Cn2w5reURZAAAADRkne8sbTuVoMV5xZaZK86Wi0fgql7hS0XpW9eVoiYcrd9AAAAAAAAAAAAAAAAAABjknbHaY8JB4U9VUAAAQOz4fqY1Wjx5Yn0ttreye95GWnReYe1hyddIskM2r7EzWd4mYn2ImNiTi12Wkx1p69fbzZWwVnx2RpMxazDl9GZ6sz3Wc9sNq90abcuKt6bdStvZPYpW0xPlCr1OC2G/q2ik8pl247xaFoloaJAAAAAXnRzSTN7aq8dkejT398r0j3cXLyduiFhxPildBNKRj8pe0b7b7RELWtpz4cE5e+1bquOzmx1pTD1d/W3sxy/nrrw68XGiltzLLFkjLirevKXnWr0zqW6ZotPXNebZKxale6Y3iZb8fFF53PiHNyMs0jUeZWkdkbQ9J54IAAAUfGf++R/gj85ePz/wCb/h6vC/l/5V7idgAD5e9Mdete1ax4zOy1azadVjaJtFY3KBqONaLDvFbzlt4Uj9Xdi/Dc9/Ma/u5cnNxU8TtU6rjupy71w1jDXxjtn4vTw/heKne/ef8ATgy8/JbtXsq73tktNr2m1p5zM7y9KtYrGojUOGZm07l6J0GydfgHV+zy2r+U/q5c8fma08Oi5sV0K/D4mfQvt298OO3E+JddeX8wkafBXBWYr2zPOZb4sUY41DDLlnJPdtasgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHkvH69Xj2vj/AI9p+b0Mf2w5reZV6yAAAC07RMkzqBGc64D2XgmXy/BNDl+tgpv79o3c1vLePCcgAAAAAAAAAAAAAAAAAAYZom2G8RzmswQPDKV6+Std9t5iN57nqTOoVescO4RoNFp64MeHHERHpXtSJm0+14N818lt2l1xWKx2hyPTTguLSZser0OGYxX38p1Kz1azHKfZv+j0OHnm262ljlprvDlHeyAS+GcV+j9ZXHkn+oyev93wlycmnXHby6ONm9O2p8S7CtotWLVmJiY3iY73nPX8gAAN+LV5sVerW28eE9uzK2Ktu6NMMubJlnfJaZ9i1aRXwnTWuAAAAJGi0l9Zqa4qe+0+EJiNs8mSMddy7HDipgw1xY42rWNobRGnkWtNp3KFxbhsa7HFqTFctOW/KY8FbV22wZvTnU+HPV4fqfLTjvitXbnMx2f7sL26IelGSsxuJXOm0WTqVpWs1rHfZyxhyZJ3MMb56V91rix1xY4pXlD0aUildQ8695vO5ZrKAAAAK3iHD8upzxkx2pttttLg5PFvlv1Vl3cfk1x16bQ5LiPGsHD9Zl0mTFktlxW6ttttmdfwzJPeZhrPPxx4iUC3Sa152xaatfCbW3dGP8KrM/mswv8AiM/01Rs3Gddl5ZYpHhSNndj/AA7j09t/3c1+bmt76QcmTJlt1sl7XnxtO7srStI1WNOa1rWndp2xWVAAd3/D6+/D9Xj+rli3xj/Zy5/MNaeHWMFwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHlXSevV6R62P8Aib/GId+L7Ic9/ulVLqgAAMMs+grfwmGlisA9Y6G3nJ0X0czv2RavwtLnv9zavhdqpAAAAAAAAAAARvO61zWpeNoidt2npzrcKdffUpMTvG8M12GTNjxbde20z3LRWZ8Im0R5fMefFknalu3wJpMeSLRPhsVSAATyB5h0S4Zjz8Sz6jNWLRp79WkTy62/P8GvNyzWsVj3aYa7ncu85PKdBMRMTExvE9wI1OAcMy4b1jQ6XaeceTjf4t4y5Z79Us5isdtPN+kXDsfDOL5NPhmZxbRasTO8xE9z1uNlnJji0+XPevTOnPZ53zW9nYm891V30f435rMaXV2/qZ9S8/yf7OXLi33h28bkdP5beHXRMTETExMTymHI9IAAAAAAABswYcmoy1xYqza9uUERtW1orG5dbw7Q00On6le289t7eMtojTys2WcltpaWIAAAAAAAAADyrpnj8n0o1f3urb/TDenhS3lSRO07rxOlUiJ3jdvHdV9EAAAOy/h7liMmtw98xS0fhvH6w5+RHiWmN2rmaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPL+l9er0m1ntms/6Yd2H7Ic9/uUrRUAABrzTyhnkTVqZrPtY61tkxG5JeqdCrb9GtPH1bXj/AFSxzRq7XH9q+ZLAAAAAAAAAAAOc4xe+PVRakzE9aynJtNemYl18Glb9cWjfj/8AqfwfW+XrOO/rQvXJGSvV7+7HNhnDfp9p8Nmv/t4/wujF4cmTyg6fVUyWicdtrx3SrTNTJ2hpl42TD3nx8ruMseRjJ3bbsbz072vX83hEvnveee0eEOO2W0uiKRDGMl45Xt8VYvaPdbphtpqbR68bw0rmmPLOcUeznuD8Fy8Nyaq0563jPk69Yiu3V5/uvyM8Zdajwtjr0rmN5jtjaXMu+goOP9KfobN5rpsVcua1d7TNtop4O3jcackdUzqGOS8ROnAa3V5tdqsmp1NutkvO8z+j1aUilemrCZmZ3KntO9pnxljI+IHVdCs+q1mv+jIt1qTS1qdb+Xbu38GGbHEx1Q6sHImn5beHTZcV8OSceWs1tHOJcj062i0bhgJAAAAAbdPgyanNGLDWbWn5ERtW94pG5dVw3h+PQ4uz0stvWv8ApHsa1rp5ebNOSf2TVmAAAAAAAAAAADzTp/j6nSLrfXw1t+cfo2p4Ut5c0uq24rdnVa0n2RLYuqAAAvOh2q826QYazO1c8Tjn8e2PnEMs0bqvSe70txtQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHmfTWu3SXPPjWk/wCmHbh+xhk+5QtVAAAGnLO9/cyv5WhgoluxV2rv3y2pGoVmXpnQaf8A/O19mWzlz/e2x/a6FiuAAAAAAAAA+WtFaza0xERzmSZ0TMRG5Vefi0xkmMFKzWO+3e5bcjv+V5+TmzE/kjsrtZlnV262SsRO+/oqXz2vERPsnD+JZcVpmsR3YaaZ02WMmOZ3jxVx5ZpO4WzfiuXLGrRH/wB/ylZtflzTE2rSNvDdtXl3r4hz25d7e0Imn/7PnjLTttHdPJjTJNJ3Dpy/iubJXpmI/wDv+U6/FM1qdWceOI9kStbPa0aljXnZIncRDXGtyb+rSfiy6l/4ll+Ifb6/LeIiKUrEeELTeZRH4jlj2hj57k+rVXaf4ll+IPPcn1amz+JZfiHy2uvWs2tFIiOcybk/iWX4hAtxnNny2xY4jHjmNvLR60T7p7F4msRufKZ/Eb9PiNqvJ0Z0ubJbLl1Opve872tNomZn4OqPxDJEaiIY/W3n2hhPRTQzEx5bUdvtj9k/xDJ8QfWX+Iaf6F8O+31P+av7M/rb/EH1t/iD+hfDvt9T/mr+x9bf4g+tv8Qtuj3CtP0f1GXPpJvkvkp1JnLtO0b79m2ytuVeyfrr61qFrrNT57TbNix7xytETvCk57T7NMf4nmxz20g+a08bK+rLf+M5/iP9/wDs81p42PVk/jOf4j/f/s81p42PVk/jOf4j/f8A7PNaeNj1ZP4zn+I/3/7PNaeNj1ZP4zn+I/3/AOzzWnjY9WT+M5/iP9/+0/R6qdFj6mHFj3nnaYneVoz2j2YZPxLLknc6SPpfP9TH8J/dP1Fmf1t/iD6Xz/Ux/Cf3PqLH1t/iD6Xz/Ux/Cf3PqLH1t/iD6Xz/AFMfwn9z6ix9bf4g+l8/1Mfwn9z6ix9bf4g+l8/1Mfwn9z6ix9bf4g+l8/1Mfwn9z6ix9bf4g+l8/wBTH8J/c+osfW3+IStFxLy9/J5orW0+rMcpa483VOpb4OV1z028rBu7AAAHn38Rse3E9Jk+thmPhM/u1x+FLOQaKlZ6tolMTqRJjthuqCAAGeHLfDmplxztelotWfCYJjaXr2j1NNZo8Opx+rlpFo9m7z5jU6bxO25AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA846dV26QzP1sVZ/N2YPsYZPuc42UAAAR7TvaZYT5Xh9pXrW9iaxuUTLe2Vek9B426O0nxyX/Nx5/vb4/tdCxXAAAAAAAAY5clMWOb5LRWsItaKxuVb3ikbsotbrr6m3VjeuOOUePvcWTLN/wCzys/InLOo8IjJzAAAAAAAAMcmSmKk3vO0QJU+r1d9RbaPRpHKP3StEMdPysiVLp+m1HU2pefR7p8EIiU1KQAAAAAAAAAAAAAAAAAAASuuHa7ysRhzT/WRyn63+7rw5er8s+Xp8bkdf5beVg6HYAA4n+I+HrU0OWOcTes/Jtije1LuFXVAbcVt428GtJ7aRLYuqAAA73oHxDy2gyaG9vTwT1qf4Z/afzcueup21pPbTqmC4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADz3p/XbjeG3jp4/wDtZ18f7WOXy5duzAAfLTtWZRM6ghHYLt9K9Wvtb1jUKTLJI9O6G06vRrTfem8/6pcWb75dGP7V4yWAAAAAAAatRqMemx9fJPujvlW94rG5Z5MtccbsodVqsmpyda87VjlWOUOG+Sbz3eTlzWyzuWhRiAAAAAAAA1589MFOtefdHfIlTajUX1F+teezujwStpp5gk4a9Ws785VlnadtiEJGm1HU2pefR7p8EpiU5KQAAAAAAAAAAAAAAAAAAH2JmJ3idpgSu+Ha6M9YxZZ2yRyn6zsxZertPl6nG5HXHTbynN3WA5X+IFN+FabJ9XPt8az+zfB90qX8PO8lerO8cpa2rpSJYqJfaz1bRKYnUiQ3UAAAT+B8RtwviuHU9vUierkiO+s8/wB/wVvXqrpas6l6vS9clK3paLVtG8THfDgbPoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOC/iFXbiOkv44pj4T/u6+P4ljl8uSbswAGGWdq7eKt57JhhirvO/dClI3O0zLc1VAesdG8fkuj2hr44ot8e39XBknd5dNPthZKJAAAAAARtZrMelp2+leeVWeTJFIY5s9cUfuos2bJnyTfJbeZ+ThtabTuXkXyWvO7NaFAAAAAAAAEfVaqmnr43nlUTEKfLlvmvN8k7zPySsxiJmdoBtrWK+9G1JnbbTkhWWSABI02o6noX9XunwSmJTufJKQAAAAAAAAAAAAAAAAAAH2szW0WrMxMcpg8JiZidwvOH62NRXqX7Msf6nbiy9XafL1uPyIyRqfKa2dLnunFOv0ftb6mWtvzj9W2H7lb+HnExExtLqmNske0TWdpYzGlhA24rbxt4NaT20iWxdUAAB2/QrjkWpXheqt6Vf7C098fV/ZzZsf9UNaW9nYOdcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABxP8AESnpaDJ7LxP+l08f3ZZfZxbpZAAPuq02XHiwZbV9DNEzSfHadpZXnc6WjtG2NY6sbNIjUKy+pH2I3naAeyaTF5DSYcP2eOtfhGzzpnc7dUeG1AAAAAAwzeV8nPkYr1+7rT2Qrbevyq36tfk8qm/DNXkvN73xzaeczaf2cs4LzO5edbiZbTuZhj9E6n62P4z+x9PZH0WT9j6J1P1sfxn9j6ex9Fk/Y+idT9bH8Z/Y+nsfRZP2QOJf/wA29K6jtm8TMdTtZ3xzTyxy4LY/KH9J4Pq5PhCmmWj6TwfVyfCDRo+k8H1cnwg0aPpPB9XJ8INGj6TwfVyfCDRpry8Tp1J8jW3W8bRyNJ0rbWte02tMzM85lKSsTadoCZ03VrFY7FWczt9BnTkIlkgAAb9PqZx+jfea/klMS3+eYvC3wDZ55i8LfANnnmLwt8A2eeYvC3wDZ55i8LfANnnmLwt8A2eeYvC3wDZ55i8LfANnnmLwt8A2eeYvC3wDZ55i8LfANnnmLwt8A2eeYvC3wDZ55i8LfANnnmLwt8A2eeYvC3wDZ55i8LfANpmgw218XnDtHU2363ZzaUxzfw3w4bZd9Psl/ROp+tj+M/s0+ns2+iyfsfROp+tj+M/sfT2Posn7Mq8L1VLRat8cWjtiYmf2IwXjvCY4eWJ3EwtsPlPJx5bq9fv6vJ113ru9GnVr83lVdLadfo3q474is/C0NcX3wm3h5g7WDDJXrRvHOFbV2mJaWKz7WeraJTE6kSG6gAADLHkviyVyY7TW9Ji1ZjumDyl6vwXiFeJ8Lw6qNutaNrxHdaObgvXptptE7hOVSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA5T+IOLrcK02X6mbq/GJ/Zvx5/NMM8vhwDrYgMqUtkyVpSN7WmIiI75B1/THhlNHwPhkViN9N/VTPjMxvM/GJ+Lmw26rzLW8arDjnSyATeDYPOuMaPDtvF81d/dv2/JW86rMprG5euvPdIAAAAAAAD5a0ViZtMREc5lEzERuUxEz2h8pel43paLR4xO5W0WjcSmazHaWSVXK9Mf7fS/4bfnDl5HmHBzfMOcc7hAAAAAZVrNpETOm2IiI2hVSZ2+gAzpyESyQAAAAAAAAAAAAAAAAAAAAOh6K+pqffX9XXxvd6X4f4sv3U9AAABX8fp5TgOur/wAG0/CN18f3Qi3h5Q7mADTlrtO8cpZXrrutEsFEr3iPCp0vCuHa6kf1eoxR1/Zb/ePylfHfe4LR7qtqoAAA6/oDrupqM+gvPZkjylPfHZPy2+Dnz17baUn2dw5mgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADTOqwRO05YU9Svyjqhspel43paLR7JWiYnwmJ2ySAAAAOJ6e8UracfC8W0zWYyZZ8J7o+e/wdOCn9TLJb2cW6WQDouhXDZ1nGI1F674tL6c+238sfr+DHNbVdfK+ONyt/4iZZjBocMcrWvafwiI/WVOPHeZWy+zhnSyAX3QvHF+kmCZ/kre3+mY/Vlm+xfH9z0xxNwAAAAAHy1q0rNrTEViN5me5MRvtBM6Y4stM2OMmK0WrPKYLVms6kiYmNw+5cdcuO2O8b1tG0qXrF6zWVq2ms7hA018ehzW018k2m1omJ27I7O9xYrU49pxzPl1ZItmrF4hYu9xuY6XU62bTTv/AC2/Ry8jzDzudOpq57yXtc23D1HkvabOo8l7TZ1HkvabOo8l7TZ1Hko8TZ1M4iIjaEKgAAM6chEskCd9DcR/u0/5o/dr6N/h0fS5v0tebhutwVm2TTXisc5jt2+CJx3jzClsGSsbmEVmyfaUte0VpWbWnlERvMpiN+CImZ1CZHCeITXrea3298b/AAaejf4b/TZdb6UTLiyYbzTLS1LR3WjZnMTHaWNqzWdTD7gw5NRlriw1617coTETadQVrN56a+W3U6HVaSsW1GGaVtO0TvE/km2O1fML3w3xxu0NFKze8UrG9rTtEKxG2cRudQkanh+r0uOMmfDNKzO2+8T2rWx2rG5hrfBkpG7QjKMkrBw3WajFGXDgm1J5TvENK47WjcQ1px8l43WOyLas1tNbRtMTtMKMpjXaUzDwvW5sVcuLBNqWjeJ60dvzXjFeY3ENq8fLaNxDL6G4j/dp/wA0fun0b/C30ub9J9DcR/u0/wCaP3PRv8H0ub9LRg0eo1GW+LDjm16etG8ditaWtOoZ0xXvMxWG/wChuI/3af8ANH7rejf4afS5v0sM3DNbgxWy5cE1pXnPWjs+aJxXiNzCtuPkrG5jsiM2Loeivqan31/V18b3el+H+LL91PQYZstMNOteez81bWisblEzEPmHNTPTrU37OcT3FbRaNwRMS2LJaNfTynD9Tj+titHxiU18wT4ePvQc4D5MbxtJPdLRavVnZhMalZ6ti4bj13RLTaLJERNtNTafq26sbT8WEW6bbaa3GnmmfDk0+e+HLWa5MdpraJ7ph3RO+7FgIAATeDavzHi+l1O+0UyR1v8ADPZPymVbxuswmJ1L1pwNwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEfXTMaW/V9m7PJ9qt/CocrBljvbHbrUtMSmJmO8JidLbS6mM9dp7Lxzh00v1Nq223tFgAGnWammj0ebU5fUxUm0/gmI3OiZ1G3kGq1GTV6rLqM073y2m1p970IjUacsztqSMqVte9aUiZtadoiO+Qer8B4XThPDMenrtOSfSy28bTz/ZwZL9VtumtdQ5z+IlJ6ugv3b3j/6tuP7s8vs4l0sgHQdCLbdI8UeNLx8mWf7F8f3PSnE3AAAAYZs2LBjnJmyVx0jna07QmImZ1BMxHl8wZ8Wox+UwZK5Kct6zvBNZrOpImJ8KXiXF8ObVTwvHW0ze9aWyRyid47Nu904sU1j1JY5Lxb8i30mlx6TBGLHvMb7zM98sMl5vO5aUpFY1Deosh6zSxkzY80RG9Z9KPGHHycEWmLx7OnDl6YmrLQaiM2OaTO9qTt298eK/GzdddT5hXPj6J38qTpZ/a6b/AA2/RXk+YePz/NXPuZ54ACdwjaNdS18XlMcRPW9HfbsNxHeXZwKTfNEa2ncU0/DcentkxxauW0+jFYnbf8iLVt4dvO42HFXqmNTPhRjxgAAAGdOQiWVfWj3hDs+LajJpeH3zYZiL1mNt4373oZbTWu4e5yLzjxzaqq4dx7NfU0xaqKTW87RaI2mJYY88zOrOPDzLTaK392PSLQUwzXVYaxWLz1bxHLfxORjiPzQjm4Yr+eqdwnS4uH8N86yx6dqde1u+I57Q0xVilOqXRx8dcWPrnyrb9ItVOXrUx4opv2VmJns97GeRbblnnX32jstsuPDxnhcZIrEXmJms99beDeYjLTbstWvJxbUHBImOMYInnEz+UubD98PO4v8AOh1er0+PV6e+DLytH4x7XbasWjUvXyUjJWay4+unyaXiePDlja1ctY9/bzcHTNb6l4sUmmWKz8r/AKTf+G1/9yPyl1cj7Ho87+X/AJcxhx2zZqYqRva8xEOKI3OoeVWs2mIh21Jw6Omn0u+3W9Cnt2jd6Marqr3Y6ccVo5vpDpfIa/ytY9DNHW/Hv/69rkz11bfy8zmY+nJuPdqwcY1mnw1w47UilI2jeqtc1qxqFKcrJSvTDpeF6nJqeHUz5ZibzvvtG3fLsx2m1dy9TBeb44tPlz08e1+/r0/yQ5fXu8363L8pPRq0312ovbnam8/Fbjzu0teDO72lnxXi+r0vEMmHDasUrttvXfuhOXNatpiE8jk5KZJrVX6jjGs1OC2HLas0tz2rsytmtaNS578rJevTKAyc7oeivqan31/V18b3el+H+LL91PQVOtzeVzzET6NeyHLktuWN53LfwuJ2yW7uyF8PutjT27R8tHWrNfGNgeNXr1clqz3TMPRYPggBjevWjs59yto3CYl7JpaeT0mHH9Sla/CHDLdxvTrhXUy14nhr6N9qZtu6e6f0+DowX/plnePdx7oZgAAPWOBarzzgukzzO9pxxFvfHZP5OG8atMN6zuE9RIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADG9IvS1J5TGyJjcaJjakyUnHe1Lc4nZxzGp055jTFCGeO9sd4vWdphMTMTuExOlzhyRlxxevf8nZW3VG3RE7jbNIA5rp3q5wcFrgrO06jJET/hjtn57NsEbttTJPZ507GAC/6F6HzzjtMlo3x6ePKT7+UfPt/Blmtqq+ONy9LcTdzPTzTzl4JTNEduHLEz7p7Pz2b4J1bSmSOzzt1sAFx0TyeT6S6OfG01+NZhnlj8krU+56k4XQAoMXDeIcN1ebWY9X5zjmJm1Mm+9vD4MYpNJ6t9nZOWmWsU1qX23SSuKsWzaa0132tNLcvarGf5hpbgz7St9Hq8Ot01c+nt1qW8Y2mG9bRaNw4r0mk9NmrVdTUR5PJSt6b8rRvu3pE17sLTtB1+upwzR7Y+rjm/ZSta9/i0pj9S3dS1+mOyi0Oq0+izU1OXT3mZ7aTaOc+LH8Q5vo6x1jy34XDnNu8z4XWLpLp7ztMVj3zMfo8qOfPvH+3oTwZj3T8+qpm4TkzxqI01bVmK5d4nb2w7K5OunV4c0Y5rkiutuT4Txeuj4pkza3PfPXJXqTkneZ290saXiJ793dlwzakRWNOgpqdPipjz6TLXJSbzynu74ly2mMFomvz/pn02yRNbxpz3Sfi85+Izg6nk4wTNY75tv3unJbrllX8Pw5NXyd1dptFxDXTHkNNkms/wA+T0alMNreIdPXx8EfliI/s6TTcBpTQ0xZ8m+aJmZvSPHu9rp+lrNdT5eJzK15N+vw16bgs1z3tqp/qqTtG3O7ivjmlpiXNx+BNrbv4j/a4w5ceKkUpiilI5RUezXHWkar2bJvizxOO9etFucWjskLUi0alzXGNBGizxOPfyWTtr7PYpMaeBzON6Ntx4lXocYAADOnIRLKvrR7wh13H/8AwjJ76/nDuz/Y9nmfyZcrp6zbUYq15zeIj4uKvmHkUjdoiHUdI5iOFzE85vEQ7OR9j1ebP/SbOI9vAsnU5eSifw7Fsn8tfN/InXw4957xXV9HIn6Ljf687O7j/Y9fhfylRwzaekNZjl5S+3wlhj/muLB/+R/mVpxvV30Wr0eanbt1otHjHZ2Ns15paJh18rLOO9bR+7ZrdLj4hTTa3T7Tatq23+tXfl+C16xfVoXy44yxXJVh0m/8Nr/7kflKOR9ivO/l/wCUDo1pfKaq+ptHo4o2r75/2Zceu56nPwce7dc+yTxfT8Qz8Qx5NPhmaYdppPWjtnn4r5a3m24jw15NMtskTWPCXxnTTq+Fzbq7ZKR14jvjxhfLXqo25OP1MX7x3ci4HjOu4F/4Nj/+X5y78P8ALh7PE/kw5GecuF4y76L/APe83/t/q6ON90u7gffP9k7X8V0um1d8OXSze9dt7bR29jW+WtbamHRm5OOl5rNdqjivENPrceOuDBOKazMzO0dvwc+XJW8docfIz0yREVjStYuV0PRX1NT76/q6+N7vS/D/ABZd6nJ5LBe/ft2e90XnVdu+06hS859rjc6502LyOCtO/nPvdlK9MadFY1DaskB5DxKnk+J6qn1c14+cvQr4hhPlGSgBt0mPy2rw4vr5K1+MomdQmHsTz27Tq9Ni1mly6bPXfHkrNZhMTqdwTG3lHEtDl4dr8ukzR6WOeyfrR3S762i0bhhMalFSgAB3/QLU+U4Tm08z24cu8eyJj94ly54/NtrSezqGC4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACFxDB1q+VrHbHP3MctN94UvX3VrnYgJnD83Uy+Tmey3L3tcVtTppSdTpZulqA4P+IWbra7SYN+ymOb/ABnb9HVx47TLHL5ci6GYD0LoFo/I8Jyaq0elqMnZP3a9n57uTPbdtNscdtuoYNETiukjXcL1Ol78mOYr7+757LUnptEotG408hmJrMxMbTHZMPQcz4CXwnL5Di2kzb7RTNSZ928K3jdZhNfL1957pAAQddw3R6rHec9IpvHbeOxnfHWe8tqcm+KPPZzdNJfR5LRodZkpEW3rbb8473H1dM/lljk/GaW7dG4/v/w+amnE8/LiuTH7KUiPy7XVTmzEd67effmUmfy11/n/AIasHD7Urvn1F9Rk336+TefzlvX8SiI7U/3/AMMLcjfstvL0nHFLYYtWI22nthjbmRbzVpXmTXxH+0bLXQVrN8mkx1iO/k55thn/APXDePxTNHiZ/wDKJxDq8V0+DT6fP5HDjjeMfV79/wDr4pyZKzqKxqG2L8U9L80xuZ/f/hXz0emeeq/0f7supr/G/wDs/wB/8Juh4fl0d4mNT1o/mr1ecfFS8ReNST+NxP8AR/v/AIXk62k3684K9bx37fyddOTFYiOlwW502nx/t9+kP+F/qX+s/ZT6z9j6Q/4X+o+s/Y+s/ZjfW1vzxz/m/wBmGXLGSd6bY/xHojXT/th5zHdSfiy20/in/b/v/h9rq+raJ6nKfE2fxT/t/wB/8NXEs0a7TeS6nVtFutE77kztzcnlxnp09OlDatqWmto2mFXAxAABnTkIllHrR7wh22tw4dZpbYLZorFtu2JjuejeIvXW3u5a1yU6ZlA0+h4bwy/l8uoi168utaOz3RDKtMePvMuemHDhnqmVTxjiXn+WtccTGGnq785nxYZcnXPbw4+TyPVnUeIWvBuIYdTo40eomIvFepEW/nq3w5ItXpl18XNW9PTt5ab9Gt8voanbHv317YVnjd/Kk8Dv2nsl6zVafhOgjT4bROSK7Urv2++V73rjrqG2XJTj4+ivlRcEmI4tgm07ds9s+6XNh++HBxZ/6sLDpRatp03VtE+tyn3NeT7OjnzE9Omro/xDyGXzXNbbHefRmf5Z/wB0YMmp6ZU4efpnot4lO6SXrbh1YraJnykcp9ktORP5XRzpicf+W/R+S4bwfe1q9atJvaN+dvD9Fqax0aY+nDhUn0/r/r0/yQ5/Xu4Prcq34LxO2sxZK6m1fKVn3bxLfDl64nbt4vInJExby5/ienjTa7JjrMTTfeu3hLlyV6bTDzc9OjJMQ6Lgd6RwfHE2rE+lzn2y68Mx0PT4sx6MOTnnLheOuujFq11ebrTEeh3z7XRxvul3cGYi8p+t4RptZqr57aqazbbsjbujZrfDW0726MvGpkvNpsga7g2n02jyZqamb2pHZXs7e1lfDWtdxLny8WlKTaLKVzOF0PRX1NT76/q6+N7vS/D/ABZY8Tv6NMcd/bK+afZ2ZJ9mvh+DrX8raPRry9soxU3O5RSvusL5KY/XvFffLebRHlrMxHl9raLViazExPfCYnY+g8p6QU6nH9dX/jWn4zu7sf2wxt5Vy6oCy6O4vLcf0VPDLFvh2/opknVZWr5equFsA5vplwfz7Q+eYK76jTxvO3O1O+Pw5/FthvqdSreNxt5462IADqegOo6nFM+nmezLi3j3xP7TLDPH5dtKeXfOVoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAqtbp/I361Y9C3L2OXJTpncMb10is1H2JmJiY5wC7w5Iy4q3jvjtdlZ3G3RE7jbNZLzjp3brdINvq4ax+c/q7MH2MMn3OcbKPsRMzERzkHr/C9LGi4ZptNEduPHET7+/5vPtO5mXTEajSUqkB5j0v4f5jxzLNa7YtR/W0/HnHx3d2G3VVz3jUqNoq+xO07xzB7Ho80ajR4M8f+bjrf4xu86Y1OnVHeG5A15s2PBjm+S20R81bWisblW960jdlHrNbk1VtvVxxyr+7iyZZv/Z5ObkWyz+yKzc4ADXnz0wU61590d8iVPqNRk1N+3sjurHclbw2Yt6VrtPbHerLOZ7rHT6iMsdW3Zf8AMTEt6QAAAAAABp1OnjNXeOy8cpQKu1Zraa2jaYEPgAM6chEskAAAADbGq1MV6sajLFfDryt12+V/UvrW5apmZneZ3lCggAAAAAAAAAAAAAXPR/Uzp/LejvW0xv497fDfp27+DbW1nePPdX6G/V2jt8Iaz/1LdndP5rJeoz00uKKUiOtt2R4NbWikahe1orGlXe1sl+taZtaXNMzM92MztbaLHbFp4i/OZ328HTjrMV7tqRqG9os8w6W16nSTWR4zWf8ATDtxfZDG3lTtFQHRdB8PlePxk27MWK1vj2fqyzT+Venl6K42oADzTpXwf6L4jN8VdtNn3tTblWe+rsxX6oZWjUqNqoAtui+fzfpFo7b9lr9Sf/lEx+qmWN0lavl6i4WwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADHJSuSk0tG8SiYiY1JMbU+ow2wZOrPbHdPi5L1ms6YWrqWpVVYcMyetin3w3w29muOfZKvqMOP1skb+EdrWb1jzK82iHnPTTJXLx+16b7TjrzdvHtFqbhhedyoG6qw4DhrqON6SmT1IyRa3ujt/RnlvFKTMpr5er0zYsnqXrPs3efFonw6ImJZrJAUHTLhnn/B5y4675tNvevtr/ADR+v4NcN+m2lMkbh5o7WAD1Loln846OaWd+2kTjn8J2j5bOHLGry6KT+VcM1kbPosWov1strzPdG/ZDO2KLTuWGTj1yTuzV9Fab7/xV9Cin0eNz3HsltBrYw4NurNIn0u1z5aRW2ocOfFXHfphW/SWo+58GemOj6S1H3PgaNI+S+TPk6153mfkJ8M61isKqTO22vqwKvsTMTvE7Sgb/ADvL934JNnneX7vwE7PO8v3fgGzzvL934Bs87y/d+AbPO8v3fgGzzvL934BsnWZdv5fgG2Hn2b7vwDbVlzWzTE3iu8d8QDWADOnIRLJAAAAAAAAAAAAAAAAAAAA+xW1vViZ90JFlwzHelcnXrMb7bL0dvE8SsK2tS0WrMxMd8LxMx4du9M43z5v6zJETbnaVvunvJ5nus8Gkx4e2PSt4y6a44q2isQ3rrAPNumter0jzT9alJ+W36OzD9jK/lQtVAHa/w90/o6zUzHOa44n4zP6ObkT4hrjdk51wAEHjHDcfFeHZNLk2iZjelvq27pWpbpnaJjcPKtRgyabUZMGas1yY7TW0T3S7oncbhi1pQ2abLODVYc0c8d4t8J3RMbjSYexRMWrExyntee3fQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJmKxvMxER3yCLk12Gk7Rvb3QznLWFZvDD6Rp9nb4q+tHwr6kNlNbgv2Taaz96Foy1laLxKTExMbxMTHsaLNefDXNjmlvwnwVtWLRqUTG4U+Sk48k0ttvHg5JjU6YTGmMTMcp2Qh8ByPS2m3EsdvrYo/OXqcKf8ApzH7olROwdB0RwdbWZs8x2Y6dWPfP/44udbVYqQ6t5iW/Fq82LlbePC3avXJaFotMJ2HXY8nZf0Le3k2rlifLSLxKV2THjEtV3lnSbhU8K4telK7YMvp4p9nh+H7O7Ffqq5711KoaKu8/h7qOtoNVppntx5IvHumP9nLyI7xLbFPbTrnO0AAcj0orE8UjeP/AC4/Vxcj73lc2dZf8KbqV8GO3JuTqV8DZuX2IiOUIRt9Bv01YvmxVtG8TaImPxTHeU1jdoiV3l0vDr8Svw+untivt6OWt5nt235S6JrSb9GndbHhnJOLWv3R8GhwabRZNXrq2ydXJOOuOs7bzHZzUikVrNrMq4a0pN8nf20X0ul1egtq9JjthnFaIvjm3WiY9kk0ravVXsTjpkx9dI1r2SNdwrBi1+nnDT+otkrjyU3mdpn94XviiLRrw1y8atclenxvUomPQ0zcdvpq12w1yTvG/KsM4pE5On2YRhi2eaR4Z67Do9JqcWox4PK6TNTetevMdvv5pvWtZiYjtK2WmPHaLRG6yy4jGg0+DF1NDtbPi68W8rb0Zn805OisRqPK2aMVKxqvmPlI1el02ntWMfCb569SLTet7bLWpWviu18mOlPGPf8A5UF5iZtMRtHdHg5nn+7UJAAAZ05CJZIAAAAAAAAAAAAAAAGVcd7erSZ/BI210mWee1fxE6ba6KsetaZ93YGm6unxV5Uiff2idNkREco2SN2D+Zars4viW1d1gJmk1k45imSd6d0+DXHk12lpW+u0rOJiY3id4l0tQHnvT2nV45jt9bBWfnLrwfayv5c02UAeldDdN5v0ew2mNrZrWyT8do+UQ4807u2p4XrJYAAByHTfg/lMccU09fTpG2aI747rfh/1ydGG/wDTKl493DulkA9b4Pm8vwjR5d95thrv79u1wXjVpdEeExUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5cdctJpeN4lExExqSY2h34dX+TJMe+N2M4Y9pZzjarcPzR6s1t+Ks4bI9OWm2lz1547fh2qTjtHsr0y+Y8uXBb0Zmvski1qkTMN+XX3vjitY6k98wvbLMxqFpvMwhsmYADm+mGL0dNljum1Z+Ux+r0ODbzCJcw9Adj0Vw+T4XOSY7ct5n8I7P3eVzbbya+EwunIAAN2HU5cPqW7PCeS1bzXwtFphF6QYcfGOF2xWp1dRj9LFbu38PxdWHkxW3dNrRaO7zmYmszFomJjsmJeozdL0D1PkuOWwzPZnxTER7Y7fyiWOeN12vjnu9EcbcAmYjtmdgcj0ltW3FImsxMeTjlPvcOed3eTzf5n+FQxcgAADfprRTNitadoi0TM/imO0prOrRMrzLqeHU4lfiMamctv5cVaTHbttzl0TakX69u62TDGScu9/sjYddg1OiyaTW3nH1sk5K5K13iJmd+SkXi1ZrZlXNW9Jpk7d97LarS6Th9tJpcts1stom+Sa9WIj2QTata9Ne5OSmPH0Une0mOK4K8ayX6/X0uWK7ztPZMRG07e9f1Y9Sfhr9TWM0z/TLDHrtJp8mu1NZjLkzXmtKbTG9d+3t/65IjJWvVb5VjNjpN7+Zn/4as2t0ur4VbBNK4L4rdbFWN5ifH9UTetqa8K2y0yYunWpjwj8T1GLPj0kYr9aceGK27OUqZLRMRr4Z571tFde0LDWZ9Nqr1tTitsNYpFZpFLbNb2rbxbToy3pedxk1/5UN4iJtETvHdPi5nn+7UJAAAZ05CJZIAAAAAAAAAACI35A2VwZbcqT+PYk0210V59a0R7u0Tptro8cc97Bpurix19WkR+AlkkAY9en16/FAden16/EDr0+vX4g36e0Wi20xPuXq7OL4luXdYACXpNXOH0L7zT8mlMnT2let9LLHkpkr1qWiY9jpiYnw2iYlxH8Qce2r0eT62O1fhP+7q4/iWeRyLoZvtKze9aVje1p2iPaJewaPBGl0eHT15YsdafCNnnzO523huQAAAPl6VyUtS9YtW0bTE8pgHl3SLhNuEcStjiJnBk9LFb2eHvh3Y79UMbRqVT1qxMRa0QtMxCNPWeB4ceDg2lxYc8Z8cU7Mkcrb9rhvO7TLaI1CeqkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABXa/UxaZxU5Rzlz5b77Qyvb2hBYswAAFV0mw+V4Pe3fitF/0/V08S3Tl/uS4l66HoXDsPm/DtPi22mtI39/e8PLbqvMpSWYAAAA5bpPwzyeTz7DX0Lz/WRHdPj+L0uHm3HRKJU/DNROl4lp88WmvUvG8x4d/ydeWvVSYIeixnzfa3/wAzxOq3yv1STmyzzy3/AM0o6rfKNywmZnnMz70bEHUYsWTLM5KxM8ubOfLzM0zN52jajBirgtalI60R4qsleIAAbK+rAh9QAAAAAAPtaXt6tZn3QkbJ02XqTaYiIiN+2Q0iiQAAGdOQiWSAAAAAAB9rW1vVrM+6Aba6XLb+Xb3yk0210X17/CBOm2ulxV/l398idNta1r6tYj3QkfQAAAAAVeWIjLaK8olCrFAAseE+rl98fq0o7eJ4lYLuwAABlW1qzvWZifGJImY8J2oOmd8mbT6S2S3W6lrRH4xH7PQ4d5mZiU7mfLlHehZdHcVcvG9NN6zNMdvKW29nb+ezLPeKUmUxOpelRxDDPOLx+DzvWq09SGyurwW5ZIj39i0ZKz7p64bomLRvExMexdZ9AAByP8RZ24Zpdufluf8A8ZaY51KtnnrVR3X8OdTqLY9Xprbzgptasz/Lad94/FlkhertmawAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACLrtR5KnUrPp2+UMst9RqFL20qnMxAAAAUXSriMaXQzpaduXURtPsr3z+jo42Pqt1fCYcVW9q7bTyej1Sad50f4vXiWm6mW0RqccenHLrR4w8zNi6J3HgWzFAAAADXqIxTp8kajbyXVnr78tu9NZmJjXkeZXt6VurM9Xfs38HsbnS2l70e49OjmNLrLTOnmfRtP8n+zlz4Or81fKHZ1tW1YtWYmsxvEx3uBD6Cm4t/3uP8ADDO3l5/K+9CVc4AADZX1YEPqAABnXDltypP49iTTbXR3n1rRHzE6bq6PHHrTM/INNtcOOvKkCdM0jHN/Y3/wygUwgAABnTkIlkgAAZVxZLerSZ/BI3V0eSfW2qJ0210VI9a0z7uwNNtcGKvKkfj2idNnLkkAAAAAAAAAARvMq/XlCNPnmVfrz8A0eZV+vPwDSXocMYYvtMzvsvR28SO0pS7rAAAJmIjeZ2iAcl0n4xh1Fa6PS2i8Vt1r3jlv4Q7eNjtWeqVohz0ZbeEO3rlOnY9F9Hiroqa2JtOTLE1mJ5Rtbu+Dg5WW1p6PaFZXrkQAzx5b4rb0tMJi0x4TEzHhZ6TVRnjq27Lx83TTJ1Nq22ktFgHFfxH1NPIaPSxMTebTkmPCNto/Ofg0xwrZx3DNDl4lxDDo8PZfLbbee6Ocz8GkzqNqx3etcK4bp+FaKml0tdqx22tPO0+MsJnctIjSYgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJnaJnbcFTlw6nLkte2O28uW1bzO9MZi0zth5rn+ysj07fCOmTzXP9lY9O3wdMvvmuf7KT07fB0yeaZ/spPTt8HTJ5pn+yk9O3wdMuR6S8D4tq+KzkwaLLkxxSIiY2duDVaalPTKo/ozxv/07N8v3bddTpllj6Ocex3i+PQailo5TWYiY+ZNqz5OmVnpcPS7TWj/sufLWOdcm1t/x33Y2xYrHTLrNPg1WXBTJk018d7VibUmY3rPg45xWidQjols801H2co9O3wdEnmmo+zk9O3wdEnmmo+zk9O3wdEoPG+H63PwjUYtPhtbJau0RExvPbDTFSYvEydMuI/ozxv8A9OzfL93f11T0yf0Z43/6dm+X7nXU6ZStNwnpRpYiNPp9XSsfyxbs+G+ytox28nTLpOCRxzLa2LiehvXaN65dojf2S5MuGsd6HRLLiXDNbk1PWx6e9o6sdsbOa2K+/Dh5GDJa+4hF+iOIf3XJ8lfSv8MPpsv6T6I4h/dcnyPSv8H02X9J9EcQ/uuT5HpX+D6bL+k+iOIf3XJ8j0r/AAfTZf0tlOD8QmO3TWj3zB6V/g+my/pbq8E1f81LfhB6V/g+my/DbXg+WvPBe3vk9K/wn6bJ+ltrw7UV9XTzHuiD0r/B9Pl/S++Y6r7Gx6V/hP0+X9J5jqvsbHpX+D6fL+k8x1X2Nj0r/B9Pl/SeY6r7Gx6V/g+ny/pPMdV9jY9K/wAH0+X9LHJoNXOK8RgtvNZPSv8AB9Pl/SrPojiH91yfI9K/wr9Nl/SfRHEP7rk+R6V/g+my/pPojiH91yfI9K/wfTZf0n0RxD+65Pkelf4Ppsv6WVOEcQns82vHv2PSv8H02X9LfXgmsn1scx7u09K/wfTZfhtrwbLHPDe3vk9K/wAJ+myfpba8Nz19XTTH4HpX+D6bJ+ll5jqvsbHpX+E/T5f0nmOq+xself4Pp8v6TzHVfY2PSv8AB9Pl/SeY6r7Gx6V/g+ny/pPMdV9jY9K/wfT5f0nmOq+xself4Pp8v6TzHVfY2PSv8H0+X9J5jqvsbHpX+D6fL+k8x1X2Nj0r/B9Pl/SeY6r7Gx6V/g+ny/pPMdV9jY9K/wAH0+X9J5jqvsbHpX+D6fL+k8x1X2Nj0r/B9Pl/SeY6r7Gx6V/g+ny/pPMdV9jY9K/wfT5f0nmOq+xself4Pp8v6TzHVfY2PSv8H0+X9J5jqvsbHpX+D6fL+luwaHU7W3xzHvleuK/w6uNhvXe4bvMdR9SPjC/pWdPRJ5jqPqR8YPSsdEnmOo+pHxg9Kx0SpOLW49j1E4eHcOtaleeWYid59na2x4K63aTolQ6vhvSjWRtqNNqbV+rG0R8IdFa46+FulD/o1xv/ANOzfL91+qDUvsdGeNzO0cOy/jt+51Qal23BeD6vR8KwYMtIjJWJm0daOyZmZ/VxZaWteZhE0lO8x1H1Y+MM/Ssjok8x1H1Y+J6Vjok8x1H1Y+J6Vjolni0mpx5a3isdk+Ka47RO0xW0TtZulqqekOq4rptNj+h9JGfLeZi0zG/Uj3brViPdE79nBa3g3SPX6m2p1ejz5Mtuczt/1DWLVhXUuj6GdG9Tw/UX1/EKeTydWa48e+8xvzmVL232hNYdgzWAAAAAAf/Z",d})()},31034:(St,be,s)=>{"use strict";s.d(be,{Gd:()=>P,cu:()=>n});var t=s(36203),e=s(76852),d=s(52199),l=s(3693),r=s(82431),c=s(28619),E=s(38037);const m=4,v=100;class C{__init(){this._stack=[{}]}constructor(F,le=new c.s,V=m){this._version=V,C.prototype.__init.call(this),this.getStackTop().scope=le,F&&this.bindClient(F)}isOlderThan(F){return this._version<F}bindClient(F){this.getStackTop().client=F,F&&F.setupIntegrations&&F.setupIntegrations()}pushScope(){const F=c.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:F}),F}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(F){const le=this.pushScope();try{F(le)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(F,le){const V=this._lastEventId=le&&le.event_id?le.event_id:(0,t.DM)(),de=new Error("Sentry syntheticException");return this._withClient((ye,Ee)=>{ye.captureException(F,{originalException:F,syntheticException:de,...le,event_id:V},Ee)}),V}captureMessage(F,le,V){const de=this._lastEventId=V&&V.event_id?V.event_id:(0,t.DM)(),ye=new Error(F);return this._withClient((Ee,Le)=>{Ee.captureMessage(F,le,{originalException:F,syntheticException:ye,...V,event_id:de},Le)}),de}captureEvent(F,le){const V=le&&le.event_id?le.event_id:(0,t.DM)();return"transaction"!==F.type&&(this._lastEventId=V),this._withClient((de,ye)=>{de.captureEvent(F,{...le,event_id:V},ye)}),V}lastEventId(){return this._lastEventId}addBreadcrumb(F,le){const{scope:V,client:de}=this.getStackTop();if(!V||!de)return;const{beforeBreadcrumb:ye=null,maxBreadcrumbs:Ee=v}=de.getOptions&&de.getOptions()||{};if(Ee<=0)return;const ge={timestamp:(0,e.yW)(),...F},ue=ye?(0,d.Cf)(()=>ye(ge,le)):ge;null!==ue&&V.addBreadcrumb(ue,Ee)}setUser(F){const le=this.getScope();le&&le.setUser(F)}setTags(F){const le=this.getScope();le&&le.setTags(F)}setExtras(F){const le=this.getScope();le&&le.setExtras(F)}setTag(F,le){const V=this.getScope();V&&V.setTag(F,le)}setExtra(F,le){const V=this.getScope();V&&V.setExtra(F,le)}setContext(F,le){const V=this.getScope();V&&V.setContext(F,le)}configureScope(F){const{scope:le,client:V}=this.getStackTop();le&&V&&F(le)}run(F){const le=i(this);try{F(this)}finally{i(le)}}getIntegration(F){const le=this.getClient();if(!le)return null;try{return le.getIntegration(F)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.kg.warn(`Cannot retrieve integration ${F.id} from the current Hub`),null}}startTransaction(F,le){return this._callExtensionMethod("startTransaction",F,le)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(F=!1){if(F)return this.endSession();this._sendSessionUpdate()}endSession(){const F=this.getStackTop(),le=F&&F.scope,V=le&&le.getSession();V&&(0,E.RJ)(V),this._sendSessionUpdate(),le&&le.setSession()}startSession(F){const{scope:le,client:V}=this.getStackTop(),{release:de,environment:ye}=V&&V.getOptions()||{},{userAgent:Ee}=l.n2.navigator||{},Le=(0,E.Hv)({release:de,environment:ye,...le&&{user:le.getUser()},...Ee&&{userAgent:Ee},...F});if(le){const ge=le.getSession&&le.getSession();ge&&"ok"===ge.status&&(0,E.CT)(ge,{status:"exited"}),this.endSession(),le.setSession(Le)}return Le}shouldSendDefaultPii(){const F=this.getClient(),le=F&&F.getOptions();return Boolean(le&&le.sendDefaultPii)}_sendSessionUpdate(){const{scope:F,client:le}=this.getStackTop();if(!F)return;const V=F.getSession();V&&le&&le.captureSession&&le.captureSession(V)}_withClient(F){const{scope:le,client:V}=this.getStackTop();V&&F(V,le)}_callExtensionMethod(F,...le){const de=n().__SENTRY__;if(de&&de.extensions&&"function"==typeof de.extensions[F])return de.extensions[F].apply(this,le);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&d.kg.warn(`Extension method ${F} couldn't be found, doing nothing.`)}}function n(){return l.n2.__SENTRY__=l.n2.__SENTRY__||{extensions:{},hub:void 0},l.n2}function i(T){const F=n(),le=D(F);return M(F,T),le}function P(){const T=n();return(!q(T)||D(T).isOlderThan(m))&&M(T,new C),(0,r.KV)()?function I(T){try{const F=n().__SENTRY__,le=F&&F.extensions&&F.extensions.domain&&F.extensions.domain.active;if(!le)return D(T);if(!q(le)||D(le).isOlderThan(m)){const V=D(T).getStackTop();M(le,new C(V.client,c.s.clone(V.scope)))}return D(le)}catch{return D(T)}}(T):D(T)}function q(T){return!!(T&&T.__SENTRY__&&T.__SENTRY__.hub)}function D(T){return(0,l.YO)("hub",()=>new C,T)}function M(T,F){return!!T&&((T.__SENTRY__=T.__SENTRY__||{}).hub=F,!0)}},28619:(St,be,s)=>{"use strict";s.d(be,{c:()=>n,s:()=>v});var t=s(26704),e=s(76852),d=s(72906),l=s(52199),r=s(36203),c=s(3693),E=s(38037);class v{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(P){const I=new v;return P&&(I._breadcrumbs=[...P._breadcrumbs],I._tags={...P._tags},I._extra={...P._extra},I._contexts={...P._contexts},I._user=P._user,I._level=P._level,I._span=P._span,I._session=P._session,I._transactionName=P._transactionName,I._fingerprint=P._fingerprint,I._eventProcessors=[...P._eventProcessors],I._requestSession=P._requestSession,I._attachments=[...P._attachments],I._sdkProcessingMetadata={...P._sdkProcessingMetadata}),I}addScopeListener(P){this._scopeListeners.push(P)}addEventProcessor(P){return this._eventProcessors.push(P),this}setUser(P){return this._user=P||{},this._session&&(0,E.CT)(this._session,{user:P}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(P){return this._requestSession=P,this}setTags(P){return this._tags={...this._tags,...P},this._notifyScopeListeners(),this}setTag(P,I){return this._tags={...this._tags,[P]:I},this._notifyScopeListeners(),this}setExtras(P){return this._extra={...this._extra,...P},this._notifyScopeListeners(),this}setExtra(P,I){return this._extra={...this._extra,[P]:I},this._notifyScopeListeners(),this}setFingerprint(P){return this._fingerprint=P,this._notifyScopeListeners(),this}setLevel(P){return this._level=P,this._notifyScopeListeners(),this}setTransactionName(P){return this._transactionName=P,this._notifyScopeListeners(),this}setContext(P,I){return null===I?delete this._contexts[P]:this._contexts[P]=I,this._notifyScopeListeners(),this}setSpan(P){return this._span=P,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const P=this.getSpan();return P&&P.transaction}setSession(P){return P?this._session=P:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(P){if(!P)return this;if("function"==typeof P){const I=P(this);return I instanceof v?I:this}return P instanceof v?(this._tags={...this._tags,...P._tags},this._extra={...this._extra,...P._extra},this._contexts={...this._contexts,...P._contexts},P._user&&Object.keys(P._user).length&&(this._user=P._user),P._level&&(this._level=P._level),P._fingerprint&&(this._fingerprint=P._fingerprint),P._requestSession&&(this._requestSession=P._requestSession)):(0,t.PO)(P)&&(this._tags={...this._tags,...P.tags},this._extra={...this._extra,...P.extra},this._contexts={...this._contexts,...P.contexts},P.user&&(this._user=P.user),P.level&&(this._level=P.level),P.fingerprint&&(this._fingerprint=P.fingerprint),P.requestSession&&(this._requestSession=P.requestSession)),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}addBreadcrumb(P,I){const q="number"==typeof I?I:100;if(q<=0)return this;const D={timestamp:(0,e.yW)(),...P};return this._breadcrumbs=[...this._breadcrumbs,D].slice(-q),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(P){return this._attachments.push(P),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(P,I={}){if(this._extra&&Object.keys(this._extra).length&&(P.extra={...this._extra,...P.extra}),this._tags&&Object.keys(this._tags).length&&(P.tags={...this._tags,...P.tags}),this._user&&Object.keys(this._user).length&&(P.user={...this._user,...P.user}),this._contexts&&Object.keys(this._contexts).length&&(P.contexts={...this._contexts,...P.contexts}),this._level&&(P.level=this._level),this._transactionName&&(P.transaction=this._transactionName),this._span){P.contexts={trace:this._span.getTraceContext(),...P.contexts};const q=this._span.transaction&&this._span.transaction.name;q&&(P.tags={transaction:q,...P.tags})}return this._applyFingerprint(P),P.breadcrumbs=[...P.breadcrumbs||[],...this._breadcrumbs],P.breadcrumbs=P.breadcrumbs.length>0?P.breadcrumbs:void 0,P.sdkProcessingMetadata={...P.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...C(),...this._eventProcessors],P,I)}setSDKProcessingMetadata(P){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...P},this}_notifyEventProcessors(P,I,q,D=0){return new d.cW((M,T)=>{const F=P[D];if(null===I||"function"!=typeof F)M(I);else{const le=F({...I},q);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&F.id&&null===le&&l.kg.log(`Event processor "${F.id}" dropped event`),(0,t.J8)(le)?le.then(V=>this._notifyEventProcessors(P,V,q,D+1).then(M)).then(null,T):this._notifyEventProcessors(P,le,q,D+1).then(M).then(null,T)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(P=>{P(this)}),this._notifyingListeners=!1)}_applyFingerprint(P){P.fingerprint=P.fingerprint?(0,r.lE)(P.fingerprint):[],this._fingerprint&&(P.fingerprint=P.fingerprint.concat(this._fingerprint)),P.fingerprint&&!P.fingerprint.length&&delete P.fingerprint}}function C(){return(0,c.YO)("globalEventProcessors",()=>[])}function n(i){C().push(i)}},38037:(St,be,s)=>{"use strict";s.d(be,{CT:()=>r,Hv:()=>l,RJ:()=>c});var t=s(76852),e=s(36203),d=s(81043);function l(m){const v=(0,t.ph)(),C={sid:(0,e.DM)(),init:!0,timestamp:v,started:v,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function E(m){return(0,d.Jr)({sid:`${m.sid}`,init:m.init,started:new Date(1e3*m.started).toISOString(),timestamp:new Date(1e3*m.timestamp).toISOString(),status:m.status,errors:m.errors,did:"number"==typeof m.did||"string"==typeof m.did?`${m.did}`:void 0,duration:m.duration,attrs:{release:m.release,environment:m.environment,ip_address:m.ipAddress,user_agent:m.userAgent}})}(C)};return m&&r(C,m),C}function r(m,v={}){if(v.user&&(!m.ipAddress&&v.user.ip_address&&(m.ipAddress=v.user.ip_address),!m.did&&!v.did&&(m.did=v.user.id||v.user.email||v.user.username)),m.timestamp=v.timestamp||(0,t.ph)(),v.ignoreDuration&&(m.ignoreDuration=v.ignoreDuration),v.sid&&(m.sid=32===v.sid.length?v.sid:(0,e.DM)()),void 0!==v.init&&(m.init=v.init),!m.did&&v.did&&(m.did=`${v.did}`),"number"==typeof v.started&&(m.started=v.started),m.ignoreDuration)m.duration=void 0;else if("number"==typeof v.duration)m.duration=v.duration;else{const C=m.timestamp-m.started;m.duration=C>=0?C:0}v.release&&(m.release=v.release),v.environment&&(m.environment=v.environment),!m.ipAddress&&v.ipAddress&&(m.ipAddress=v.ipAddress),!m.userAgent&&v.userAgent&&(m.userAgent=v.userAgent),"number"==typeof v.errors&&(m.errors=v.errors),v.status&&(m.status=v.status)}function c(m,v){let C={};v?C={status:v}:"ok"===m.status&&(C={status:"exited"}),r(m,C)}},58745:(St,be,s)=>{"use strict";s.d(be,{ro:()=>T,lb:()=>q});var t=s(31034),e=s(52199),d=s(26704),l=s(82431),r=s(78210),c=s(26836);function m(){const F=(0,c.x1)();if(F){const le="internal_error";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.log(`[Tracing] Transaction: ${le} -> Global error occured`),F.setStatus(le)}}var v=s(3669),C=s(18678);function n(){const F=this.getScope();if(F){const le=F.getSpan();if(le)return{"sentry-trace":le.toTraceparent()}}return{}}function i(F,le,V){if(!(0,c.zu)(le))return F.sampled=!1,F;if(void 0!==F.sampled)return F.setMetadata({sampleRate:Number(F.sampled)}),F;let de;return"function"==typeof le.tracesSampler?(de=le.tracesSampler(V),F.setMetadata({sampleRate:Number(de)})):void 0!==V.parentSampled?de=V.parentSampled:(de=le.tracesSampleRate,F.setMetadata({sampleRate:Number(de)})),function P(F){return(0,d.i2)(F)||"number"!=typeof F&&"boolean"!=typeof F?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(F)} of type ${JSON.stringify(typeof F)}.`),!1):!(F<0||F>1)||((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${F}.`),!1)}(de)?de?(F.sampled=Math.random()<de,F.sampled?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.log(`[Tracing] starting ${F.op} transaction - ${F.name}`),F):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(de)})`),F)):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.log("[Tracing] Discarding transaction because "+("function"==typeof le.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),F.sampled=!1,F):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),F.sampled=!1,F)}function I(F,le){const V=this.getClient(),de=V&&V.getOptions()||{},ye=de.instrumenter||"sentry",Ee=F.instrumenter||"sentry";ye!==Ee&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.error(`A transaction was started with instrumenter=\`${Ee}\`, but the SDK is configured with the \`${ye}\` instrumenter.\nThe transaction will not be sampled. Please use the ${ye} instrumentation to start transactions.`),F.sampled=!1);let Le=new C.Y(F,this);return Le=i(Le,de,{parentSampled:F.parentSampled,transactionContext:F,...le}),Le.sampled&&Le.initSpanRecorder(de._experiments&&de._experiments.maxSpans),Le}function q(F,le,V,de,ye,Ee,Le){const ge=F.getClient(),ue=ge&&ge.getOptions()||{};let ee=new v.io(le,F,V,de,Le,ye);return ee=i(ee,ue,{parentSampled:le.parentSampled,transactionContext:le,...Ee}),ee.sampled&&ee.initSpanRecorder(ue._experiments&&ue._experiments.maxSpans),ee}function T(){(function D(){const F=(0,t.cu)();F.__SENTRY__&&(F.__SENTRY__.extensions=F.__SENTRY__.extensions||{},F.__SENTRY__.extensions.startTransaction||(F.__SENTRY__.extensions.startTransaction=I),F.__SENTRY__.extensions.traceHeaders||(F.__SENTRY__.extensions.traceHeaders=n))})(),(0,l.KV)()&&function M(){const F=(0,t.cu)();if(!F.__SENTRY__)return;const le={mongodb:()=>new((0,l.l$)(St,"./integrations/node/mongo").Mongo),mongoose:()=>new((0,l.l$)(St,"./integrations/node/mongo").Mongo)({mongoose:!0}),mysql:()=>new((0,l.l$)(St,"./integrations/node/mysql").Mysql),pg:()=>new((0,l.l$)(St,"./integrations/node/postgres").Postgres)},V=Object.keys(le).filter(de=>!!(0,l.$y)(de)).map(de=>{try{return le[de]()}catch{return}}).filter(de=>de);V.length>0&&(F.__SENTRY__.integrations=[...F.__SENTRY__.integrations||[],...V])}(),function E(){(0,r.o)("error",m),(0,r.o)("unhandledrejection",m)}()}St=s.hmd(St)},3669:(St,be,s)=>{"use strict";s.d(be,{hd:()=>E,io:()=>v,mg:()=>c,nT:()=>r});var t=s(76852),e=s(52199),d=s(68325),l=s(18678);const r=1e3,c=3e4,E=5e3;class m extends d.gB{constructor(i,P,I,q){super(q),this._pushActivity=i,this._popActivity=P,this.transactionSpanId=I}add(i){i.spanId!==this.transactionSpanId&&(i.finish=P=>{i.endTimestamp="number"==typeof P?P:(0,t._I)(),this._popActivity(i.spanId)},void 0===i.endTimestamp&&this._pushActivity(i.spanId)),super.add(i)}}class v extends l.Y{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._beforeFinishCallbacks=[]}constructor(i,P,I=r,q=c,D=E,M=!1){super(i,P),this._idleHub=P,this._idleTimeout=I,this._finalTimeout=q,this._heartbeatInterval=D,this._onScope=M,v.prototype.__init.call(this),v.prototype.__init2.call(this),v.prototype.__init3.call(this),v.prototype.__init4.call(this),M&&(C(P),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),P.configureScope(T=>T.setSpan(this))),this._startIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this.finish())},this._finalTimeout)}finish(i=(0,t._I)()){if(this._finished=!0,this.activities={},this.spanRecorder){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*i).toISOString(),this.op);for(const P of this._beforeFinishCallbacks)P(this,i);this.spanRecorder.spans=this.spanRecorder.spans.filter(P=>{if(P.spanId===this.spanId)return!0;P.endTimestamp||(P.endTimestamp=i,P.setStatus("cancelled"),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(P,void 0,2)));const I=P.startTimestamp<i;return I||(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(P,void 0,2)),I}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.log("[Tracing] flushing IdleTransaction")}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.log("[Tracing] No active IdleTransaction");return this._onScope&&C(this._idleHub),super.finish(i)}registerBeforeFinishCallback(i){this._beforeFinishCallbacks.push(i)}initSpanRecorder(i){this.spanRecorder||(this.spanRecorder=new m(q=>{this._finished||this._pushActivity(q)},q=>{this._finished||this._popActivity(q)},this.spanId,i),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)}_cancelIdleTimeout(){this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0)}_startIdleTimeout(i){this._cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&0===Object.keys(this.activities).length&&this.finish(i)},this._idleTimeout)}_pushActivity(i){this._cancelIdleTimeout(),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.log(`[Tracing] pushActivity: ${i}`),this.activities[i]=!0,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(i){if(this.activities[i]&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.log(`[Tracing] popActivity ${i}`),delete this.activities[i],(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const P=(0,t._I)()+this._idleTimeout/1e3;this._startIdleTimeout(P)}}_beat(){if(this._finished)return;const i=Object.keys(this.activities).join("");i===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=i,this._heartbeatCounter>=3?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.finish()):this._pingHeartbeat()}_pingHeartbeat(){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function C(n){const i=n.getScope();i&&i.getTransaction()&&i.setSpan(void 0)}},68325:(St,be,s)=>{"use strict";s.d(be,{Dr:()=>E,gB:()=>c});var t=s(43273),e=s(36203),d=s(76852),l=s(52199),r=s(81043);class c{__init(){this.spans=[]}constructor(C=1e3){c.prototype.__init.call(this),this._maxlen=C}add(C){this.spans.length>this._maxlen?C.spanRecorder=void 0:this.spans.push(C)}}class E{__init2(){this.traceId=(0,e.DM)()}__init3(){this.spanId=(0,e.DM)().substring(16)}__init4(){this.startTimestamp=(0,d._I)()}__init5(){this.tags={}}__init6(){this.data={}}__init7(){this.instrumenter="sentry"}constructor(C){if(E.prototype.__init2.call(this),E.prototype.__init3.call(this),E.prototype.__init4.call(this),E.prototype.__init5.call(this),E.prototype.__init6.call(this),E.prototype.__init7.call(this),!C)return this;C.traceId&&(this.traceId=C.traceId),C.spanId&&(this.spanId=C.spanId),C.parentSpanId&&(this.parentSpanId=C.parentSpanId),"sampled"in C&&(this.sampled=C.sampled),C.op&&(this.op=C.op),C.description&&(this.description=C.description),C.data&&(this.data=C.data),C.tags&&(this.tags=C.tags),C.status&&(this.status=C.status),C.startTimestamp&&(this.startTimestamp=C.startTimestamp),C.endTimestamp&&(this.endTimestamp=C.endTimestamp),C.instrumenter&&(this.instrumenter=C.instrumenter)}startChild(C){const n=new E({...C,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&n.transaction){const q=`[Tracing] Starting '${C&&C.op||"< unknown op >"}' span on transaction '${n.transaction.name||"< unknown name >"}' (${n.transaction.spanId}).`;n.transaction.metadata.spanMetadata[n.spanId]={logMessage:q},l.kg.log(q)}return n}setTag(C,n){return this.tags={...this.tags,[C]:n},this}setData(C,n){return this.data={...this.data,[C]:n},this}setStatus(C){return this.status=C,this}setHttpStatus(C){this.setTag("http.status_code",String(C));const n=function m(v){if(v<400&&v>=100)return"ok";if(v>=400&&v<500)switch(v){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(v>=500&&v<600)switch(v){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(C);return"unknown_error"!==n&&this.setStatus(n),this}isSuccess(){return"ok"===this.status}finish(C){if((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:n}=this.transaction.metadata.spanMetadata[this.spanId];n&&l.kg.log(n.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof C?C:(0,d._I)()}toTraceparent(){let C="";return void 0!==this.sampled&&(C=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${C}`}toContext(){return(0,r.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(C){return this.data=(0,t.h)(C.data,()=>({})),this.description=C.description,this.endTimestamp=C.endTimestamp,this.op=C.op,this.parentSpanId=C.parentSpanId,this.sampled=C.sampled,this.spanId=(0,t.h)(C.spanId,()=>this.spanId),this.startTimestamp=(0,t.h)(C.startTimestamp,()=>this.startTimestamp),this.status=C.status,this.tags=(0,t.h)(C.tags,()=>({})),this.traceId=(0,t.h)(C.traceId,()=>this.traceId),this}getTraceContext(){return(0,r.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,r.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}},18678:(St,be,s)=>{"use strict";s.d(be,{Y:()=>E});var t=s(43273),e=s(31034),d=s(76852),l=s(52199),r=s(81043),c=s(68325);class E extends c.Dr{__init(){this._measurements={}}__init2(){this._contexts={}}__init3(){this._frozenDynamicSamplingContext=void 0}constructor(v,C){super(v),E.prototype.__init.call(this),E.prototype.__init2.call(this),E.prototype.__init3.call(this),this._hub=C||(0,e.Gd)(),this._name=v.name||"",this.metadata={source:"custom",...v.metadata,spanMetadata:{},changes:[],propagations:0},this._trimEnd=v.trimEnd,this.transaction=this;const n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(v){this.setName(v)}setName(v,C="custom"){(v!==this.name||C!==this.metadata.source)&&this.metadata.changes.push({source:this.metadata.source,timestamp:(0,d.ph)(),propagations:this.metadata.propagations}),this._name=v,this.metadata.source=C}initSpanRecorder(v=1e3){this.spanRecorder||(this.spanRecorder=new c.gB(v)),this.spanRecorder.add(this)}setContext(v,C){null===C?delete this._contexts[v]:this._contexts[v]=C}setMeasurement(v,C,n=""){this._measurements[v]={value:C,unit:n}}setMetadata(v){this.metadata={...this.metadata,...v}}finish(v){if(void 0!==this.endTimestamp)return;if(this.name||((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(v),!0!==this.sampled){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");const I=this._hub.getClient();return void(I&&I.recordDroppedEvent("sample_rate","transaction"))}const C=this.spanRecorder?this.spanRecorder.spans.filter(I=>I!==this&&I.endTimestamp):[];this._trimEnd&&C.length>0&&(this.endTimestamp=C.reduce((I,q)=>I.endTimestamp&&q.endTimestamp?I.endTimestamp>q.endTimestamp?I:q:I).endTimestamp);const n=this.metadata,i={contexts:{...this._contexts,trace:this.getTraceContext()},spans:C,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...n,dynamicSamplingContext:this.getDynamicSamplingContext()},...n.source&&{transaction_info:{source:n.source,changes:n.changes,propagations:n.propagations}}};return Object.keys(this._measurements).length>0&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&l.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(i)}toContext(){const v=super.toContext();return(0,r.Jr)({...v,name:this.name,trimEnd:this._trimEnd})}updateWithContext(v){return super.updateWithContext(v),this.name=(0,t.h)(v.name,()=>""),this._trimEnd=v.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const v=this._hub||(0,e.Gd)(),C=v&&v.getClient();if(!C)return{};const{environment:n,release:i}=C.getOptions()||{},{publicKey:P}=C.getDsn()||{},I=this.metadata.sampleRate,q=void 0!==I?I.toString():void 0,D=v.getScope(),{segment:M}=D&&D.getUser()||{},T=this.metadata.source;return(0,r.Jr)({environment:n,release:i,transaction:T&&"url"!==T?this.name:void 0,user_segment:M,public_key:P,trace_id:this.traceId,sample_rate:q})}}},26836:(St,be,s)=>{"use strict";s.d(be,{XL:()=>l,x1:()=>d,zu:()=>e});var t=s(31034);function e(c){const E=(0,t.Gd)().getClient(),m=c||E&&E.getOptions();return!!m&&("tracesSampleRate"in m||"tracesSampler"in m)}function d(c){const m=(c||(0,t.Gd)()).getScope();return m&&m.getTransaction()}function l(c){return c/1e3}},21013:(St,be,s)=>{"use strict";s.d(be,{Rt:()=>r,l4:()=>E,qT:()=>m});var t=s(26704);const d=(0,s(3693).Rf)(),l=80;function r(v,C={}){try{let n=v;const i=5,P=[];let I=0,q=0;const D=" > ",M=D.length;let T;const F=Array.isArray(C)?C:C.keyAttrs,le=!Array.isArray(C)&&C.maxStringLength||l;for(;n&&I++<i&&(T=c(n,F),!("html"===T||I>1&&q+P.length*M+T.length>=le));)P.push(T),q+=T.length,n=n.parentNode;return P.reverse().join(D)}catch{return"<unknown>"}}function c(v,C){const n=v,i=[];let P,I,q,D,M;if(!n||!n.tagName)return"";i.push(n.tagName.toLowerCase());const T=C&&C.length?C.filter(le=>n.getAttribute(le)).map(le=>[le,n.getAttribute(le)]):null;if(T&&T.length)T.forEach(le=>{i.push(`[${le[0]}="${le[1]}"]`)});else if(n.id&&i.push(`#${n.id}`),P=n.className,P&&(0,t.HD)(P))for(I=P.split(/\s+/),M=0;M<I.length;M++)i.push(`.${I[M]}`);const F=["type","name","title","alt"];for(M=0;M<F.length;M++)q=F[M],D=n.getAttribute(q),D&&i.push(`[${q}="${D}"]`);return i.join("")}function E(){try{return d.document.location.href}catch{return""}}function m(v){return d.document&&d.document.querySelector?d.document.querySelector(v):null}},43273:(St,be,s)=>{"use strict";function t(e,d){return e??d()}s.d(be,{h:()=>t})},78210:(St,be,s)=>{"use strict";s.d(be,{o:()=>n});var t=s(26704),e=s(52199),d=s(81043),l=s(32511),r=s(71538);const E=(0,s(3693).Rf)(),m={},v={};function n(L,he){m[L]=m[L]||[],m[L].push(he),function C(L){if(!v[L])switch(v[L]=!0,L){case"console":!function P(){"console"in E&&e.RU.forEach(function(L){L in E.console&&(0,d.hl)(E.console,L,function(he){return function(..._e){i("console",{args:_e,level:L}),he&&he.apply(E.console,_e)}})})}();break;case"dom":!function ge(){if(!("document"in E))return;const L=i.bind(null,"dom"),he=Le(L,!0);E.document.addEventListener("click",he,!1),E.document.addEventListener("keypress",he,!1),["EventTarget","Node"].forEach(_e=>{const Z=E[_e]&&E[_e].prototype;!Z||!Z.hasOwnProperty||!Z.hasOwnProperty("addEventListener")||((0,d.hl)(Z,"addEventListener",function(Te){return function(w,k,x){if("click"===w||"keypress"==w)try{const z=this,j=z.__sentry_instrumentation_handlers__=z.__sentry_instrumentation_handlers__||{},Ne=j[w]=j[w]||{refCount:0};if(!Ne.handler){const tt=Le(L);Ne.handler=tt,Te.call(this,w,tt,x)}Ne.refCount++}catch{}return Te.call(this,w,k,x)}}),(0,d.hl)(Z,"removeEventListener",function(Te){return function(w,k,x){if("click"===w||"keypress"==w)try{const z=this,j=z.__sentry_instrumentation_handlers__||{},Ne=j[w];Ne&&(Ne.refCount--,Ne.refCount<=0&&(Te.call(this,w,Ne.handler,x),Ne.handler=void 0,delete j[w]),0===Object.keys(j).length&&delete z.__sentry_instrumentation_handlers__)}catch{}return Te.call(this,w,k,x)}}))})}();break;case"xhr":!function M(){if(!("XMLHttpRequest"in E))return;const L=XMLHttpRequest.prototype;(0,d.hl)(L,"open",function(he){return function(..._e){const Z=this,Te=_e[1],w=Z.__sentry_xhr__={method:(0,t.HD)(_e[0])?_e[0].toUpperCase():_e[0],url:_e[1]};(0,t.HD)(Te)&&"POST"===w.method&&Te.match(/sentry_key/)&&(Z.__sentry_own_request__=!0);const k=function(){if(4===Z.readyState){try{w.status_code=Z.status}catch{}i("xhr",{args:_e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:Z})}};return"onreadystatechange"in Z&&"function"==typeof Z.onreadystatechange?(0,d.hl)(Z,"onreadystatechange",function(x){return function(...z){return k(),x.apply(Z,z)}}):Z.addEventListener("readystatechange",k),he.apply(Z,_e)}}),(0,d.hl)(L,"send",function(he){return function(..._e){return this.__sentry_xhr__&&void 0!==_e[0]&&(this.__sentry_xhr__.body=_e[0]),i("xhr",{args:_e,startTimestamp:Date.now(),xhr:this}),he.apply(this,_e)}})}();break;case"fetch":!function I(){(0,r.t$)()&&(0,d.hl)(E,"fetch",function(L){return function(...he){const _e={args:he,fetchData:{method:q(he),url:D(he)},startTimestamp:Date.now()};return i("fetch",{..._e}),L.apply(E,he).then(Z=>(i("fetch",{..._e,endTimestamp:Date.now(),response:Z}),Z),Z=>{throw i("fetch",{..._e,endTimestamp:Date.now(),error:Z}),Z})}})}();break;case"history":!function F(){if(!(0,r.Bf)())return;const L=E.onpopstate;function he(_e){return function(...Z){const Te=Z.length>2?Z[2]:void 0;if(Te){const w=T,k=String(Te);T=k,i("history",{from:w,to:k})}return _e.apply(this,Z)}}E.onpopstate=function(..._e){const Z=E.location.href,Te=T;if(T=Z,i("history",{from:Te,to:Z}),L)try{return L.apply(this,_e)}catch{}},(0,d.hl)(E.history,"pushState",he),(0,d.hl)(E.history,"replaceState",he)}();break;case"error":!function ee(){ue=E.onerror,E.onerror=function(L,he,_e,Z,Te){return i("error",{column:Z,error:Te,line:_e,msg:L,url:he}),!!ue&&ue.apply(this,arguments)}}();break;case"unhandledrejection":!function W(){se=E.onunhandledrejection,E.onunhandledrejection=function(L){return i("unhandledrejection",L),!se||se.apply(this,arguments)}}();break;default:return void((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.warn("unknown instrumentation type:",L))}}(L)}function i(L,he){if(L&&m[L])for(const _e of m[L]||[])try{_e(he)}catch(Z){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.kg.error(`Error while triggering instrumentation handler.\nType: ${L}\nName: ${(0,l.$P)(_e)}\nError:`,Z)}}function q(L=[]){return"Request"in E&&(0,t.V9)(L[0],Request)&&L[0].method?String(L[0].method).toUpperCase():L[1]&&L[1].method?String(L[1].method).toUpperCase():"GET"}function D(L=[]){return"string"==typeof L[0]?L[0]:"Request"in E&&(0,t.V9)(L[0],Request)?L[0].url:String(L[0])}let T;const le=1e3;let V,de;function Le(L,he=!1){return _e=>{if(!_e||de===_e||function Ee(L){if("keypress"!==L.type)return!1;try{const he=L.target;if(!he||!he.tagName)return!0;if("INPUT"===he.tagName||"TEXTAREA"===he.tagName||he.isContentEditable)return!1}catch{}return!0}(_e))return;const Z="keypress"===_e.type?"input":_e.type;(void 0===V||function ye(L,he){if(!L||L.type!==he.type)return!0;try{if(L.target!==he.target)return!0}catch{}return!1}(de,_e))&&(L({event:_e,name:Z,global:he}),de=_e),clearTimeout(V),V=E.setTimeout(()=>{V=void 0},le)}}let ue=null,se=null},26704:(St,be,s)=>{"use strict";s.d(be,{Cy:()=>I,HD:()=>E,J8:()=>P,Kj:()=>i,PO:()=>v,TX:()=>r,V9:()=>D,VW:()=>l,VZ:()=>e,cO:()=>C,fm:()=>c,i2:()=>q,kK:()=>n,pt:()=>m});const t=Object.prototype.toString;function e(M){switch(t.call(M)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return D(M,Error)}}function d(M,T){return t.call(M)===`[object ${T}]`}function l(M){return d(M,"ErrorEvent")}function r(M){return d(M,"DOMError")}function c(M){return d(M,"DOMException")}function E(M){return d(M,"String")}function m(M){return null===M||"object"!=typeof M&&"function"!=typeof M}function v(M){return d(M,"Object")}function C(M){return typeof Event<"u"&&D(M,Event)}function n(M){return typeof Element<"u"&&D(M,Element)}function i(M){return d(M,"RegExp")}function P(M){return Boolean(M&&M.then&&"function"==typeof M.then)}function I(M){return v(M)&&"nativeEvent"in M&&"preventDefault"in M&&"stopPropagation"in M}function q(M){return"number"==typeof M&&M!=M}function D(M,T){try{return M instanceof T}catch{return!1}}},52199:(St,be,s)=>{"use strict";s.d(be,{Cf:()=>l,RU:()=>d,kg:()=>c});var t=s(3693);const e="Sentry Logger ",d=["debug","info","warn","error","log","assert","trace"];function l(E){if(!("console"in t.n2))return E();const m=t.n2.console,v={};d.forEach(C=>{const n=m[C]&&m[C].__sentry_original__;C in m&&n&&(v[C]=m[C],m[C]=n)});try{return E()}finally{Object.keys(v).forEach(C=>{m[C]=v[C]})}}function r(){let E=!1;const m={enable:()=>{E=!0},disable:()=>{E=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?d.forEach(v=>{m[v]=(...C)=>{E&&l(()=>{t.n2.console[v](`${e}[${v}]:`,...C)})}}):d.forEach(v=>{m[v]=()=>{}}),m}let c;c=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?(0,t.YO)("logger",r):r()},36203:(St,be,s)=>{"use strict";s.d(be,{DM:()=>d,Db:()=>c,EG:()=>E,YO:()=>n,jH:()=>r,lE:()=>i});var t=s(81043),e=s(3693);function d(){const P=e.n2,I=P.crypto||P.msCrypto;if(I&&I.randomUUID)return I.randomUUID().replace(/-/g,"");const q=I&&I.getRandomValues?()=>I.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,D=>(D^(15&q())>>D/4).toString(16))}function l(P){return P.exception&&P.exception.values?P.exception.values[0]:void 0}function r(P){const{message:I,event_id:q}=P;if(I)return I;const D=l(P);return D?D.type&&D.value?`${D.type}: ${D.value}`:D.type||D.value||q||"<unknown>":q||"<unknown>"}function c(P,I,q){const D=P.exception=P.exception||{},M=D.values=D.values||[],T=M[0]=M[0]||{};T.value||(T.value=I||""),T.type||(T.type=q||"Error")}function E(P,I){const q=l(P);if(!q)return;const M=q.mechanism;if(q.mechanism={type:"generic",handled:!0,...M,...I},I&&"data"in I){const T={...M&&M.data,...I.data};q.mechanism.data=T}}function n(P){if(P&&P.__sentry_captured__)return!0;try{(0,t.xp)(P,"__sentry_captured__",!0)}catch{}return!1}function i(P){return Array.isArray(P)?P:[P]}},82431:(St,be,s)=>{"use strict";function e(){return!function t(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}()&&"[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0)}function d(r,c){return r.require(c)}function l(r){let c;try{c=d(St,r)}catch{}try{const{cwd:E}=d(St,"process");c=d(St,`${E()}/node_modules/${r}`)}catch{}return c}s.d(be,{l$:()=>d,KV:()=>e,$y:()=>l}),St=s.hmd(St)},81043:(St,be,s)=>{"use strict";s.d(be,{$Q:()=>c,HK:()=>E,Jr:()=>P,Sh:()=>v,_j:()=>m,hl:()=>l,xp:()=>r,zf:()=>i});var t=s(21013),e=s(26704),d=s(89328);function l(D,M,T){if(!(M in D))return;const F=D[M],le=T(F);if("function"==typeof le)try{c(le,F)}catch{}D[M]=le}function r(D,M,T){Object.defineProperty(D,M,{value:T,writable:!0,configurable:!0})}function c(D,M){D.prototype=M.prototype=M.prototype||{},r(D,"__sentry_original__",M)}function E(D){return D.__sentry_original__}function m(D){return Object.keys(D).map(M=>`${encodeURIComponent(M)}=${encodeURIComponent(D[M])}`).join("&")}function v(D){if((0,e.VZ)(D))return{message:D.message,name:D.name,stack:D.stack,...n(D)};if((0,e.cO)(D)){const M={type:D.type,target:C(D.target),currentTarget:C(D.currentTarget),...n(D)};return typeof CustomEvent<"u"&&(0,e.V9)(D,CustomEvent)&&(M.detail=D.detail),M}return D}function C(D){try{return(0,e.kK)(D)?(0,t.Rt)(D):Object.prototype.toString.call(D)}catch{return"<unknown>"}}function n(D){if("object"==typeof D&&null!==D){const M={};for(const T in D)Object.prototype.hasOwnProperty.call(D,T)&&(M[T]=D[T]);return M}return{}}function i(D,M=40){const T=Object.keys(v(D));if(T.sort(),!T.length)return"[object has no keys]";if(T[0].length>=M)return(0,d.$G)(T[0],M);for(let F=T.length;F>0;F--){const le=T.slice(0,F).join(", ");if(!(le.length>M))return F===T.length?le:(0,d.$G)(le,M)}return""}function P(D){return I(D,new Map)}function I(D,M){if((0,e.PO)(D)){const T=M.get(D);if(void 0!==T)return T;const F={};M.set(D,F);for(const le of Object.keys(D))typeof D[le]<"u"&&(F[le]=I(D[le],M));return F}if(Array.isArray(D)){const T=M.get(D);if(void 0!==T)return T;const F=[];return M.set(D,F),D.forEach(le=>{F.push(I(le,M))}),F}return D}},32511:(St,be,s)=>{"use strict";s.d(be,{$P:()=>c,Sq:()=>d,pE:()=>e});const t=50;function e(...v){const C=v.sort((n,i)=>n[0]-i[0]).map(n=>n[1]);return(n,i=0)=>{const P=[];for(const I of n.split("\n").slice(i)){const q=I.replace(/\(error: (.*)\)/,"$1");for(const D of C){const M=D(q);if(M){P.push(M);break}}}return function l(v){if(!v.length)return[];let C=v;const n=C[0].function||"",i=C[C.length-1].function||"";return(-1!==n.indexOf("captureMessage")||-1!==n.indexOf("captureException"))&&(C=C.slice(1)),-1!==i.indexOf("sentryWrapped")&&(C=C.slice(0,-1)),C.slice(0,t).map(P=>({...P,filename:P.filename||C[0].filename,function:P.function||"?"})).reverse()}(P)}}function d(v){return Array.isArray(v)?e(...v):v}const r="<anonymous>";function c(v){try{return v&&"function"==typeof v&&v.name||r}catch{return r}}},89328:(St,be,s)=>{"use strict";s.d(be,{$G:()=>e,U0:()=>c,nK:()=>l});var t=s(26704);function e(m,v=0){return"string"!=typeof m||0===v||m.length<=v?m:`${m.substr(0,v)}...`}function l(m,v){if(!Array.isArray(m))return"";const C=[];for(let n=0;n<m.length;n++){const i=m[n];try{C.push(String(i))}catch{C.push("[value cannot be serialized]")}}return C.join(v)}function c(m,v=[],C=!1){return v.some(n=>function r(m,v,C=!1){return!!(0,t.HD)(m)&&((0,t.Kj)(v)?v.test(m):!!(0,t.HD)(v)&&(C?m===v:m.includes(v)))}(m,n,C))}},71538:(St,be,s)=>{"use strict";s.d(be,{Ak:()=>E,Bf:()=>i,Du:()=>m,t$:()=>v});var t=s(52199);const d=(0,s(3693).Rf)();function E(){if(!("fetch"in d))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function m(P){return P&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(P.toString())}function v(){if(!E())return!1;if(m(d.fetch))return!0;let P=!1;const I=d.document;if(I&&"function"==typeof I.createElement)try{const q=I.createElement("iframe");q.hidden=!0,I.head.appendChild(q),q.contentWindow&&q.contentWindow.fetch&&(P=m(q.contentWindow.fetch)),I.head.removeChild(q)}catch(q){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&t.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",q)}return P}function i(){const P=d.chrome;return!(P&&P.app&&P.app.runtime||!("history"in d)||!d.history.pushState||!d.history.replaceState)}},72906:(St,be,s)=>{"use strict";s.d(be,{$2:()=>l,WD:()=>d,cW:()=>r});var e,c,t=s(26704);function d(c){return new r(E=>{E(c)})}function l(c){return new r((E,m)=>{m(c)})}(c=e||(e={}))[c.PENDING=0]="PENDING",c[c.RESOLVED=1]="RESOLVED",c[c.REJECTED=2]="REJECTED";class r{__init(){this._state=e.PENDING}__init2(){this._handlers=[]}constructor(E){r.prototype.__init.call(this),r.prototype.__init2.call(this),r.prototype.__init3.call(this),r.prototype.__init4.call(this),r.prototype.__init5.call(this),r.prototype.__init6.call(this);try{E(this._resolve,this._reject)}catch(m){this._reject(m)}}then(E,m){return new r((v,C)=>{this._handlers.push([!1,n=>{if(E)try{v(E(n))}catch(i){C(i)}else v(n)},n=>{if(m)try{v(m(n))}catch(i){C(i)}else C(n)}]),this._executeHandlers()})}catch(E){return this.then(m=>m,E)}finally(E){return new r((m,v)=>{let C,n;return this.then(i=>{n=!1,C=i,E&&E()},i=>{n=!0,C=i,E&&E()}).then(()=>{n?v(C):m(C)})})}__init3(){this._resolve=E=>{this._setResult(e.RESOLVED,E)}}__init4(){this._reject=E=>{this._setResult(e.REJECTED,E)}}__init5(){this._setResult=(E,m)=>{if(this._state===e.PENDING){if((0,t.J8)(m))return void m.then(this._resolve,this._reject);this._state=E,this._value=m,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===e.PENDING)return;const E=this._handlers.slice();this._handlers=[],E.forEach(m=>{m[0]||(this._state===e.RESOLVED&&m[1](this._value),this._state===e.REJECTED&&m[2](this._value),m[0]=!0)})}}}},76852:(St,be,s)=>{"use strict";s.d(be,{Z1:()=>I,_I:()=>n,ph:()=>C,yW:()=>v});var t=s(82431),e=s(3693);St=s.hmd(St);const d=(0,e.Rf)(),l={nowSeconds:()=>Date.now()/1e3},E=(0,t.KV)()?function c(){try{return(0,t.l$)(St,"perf_hooks").performance}catch{return}}():function r(){const{performance:q}=d;if(q&&q.now)return{now:()=>q.now(),timeOrigin:Date.now()-q.now()}}(),m=void 0===E?l:{nowSeconds:()=>(E.timeOrigin+E.now())/1e3},v=l.nowSeconds.bind(l),C=m.nowSeconds.bind(m),n=C;let P;const I=(()=>{const{performance:q}=d;if(!q||!q.now)return void(P="none");const D=36e5,M=q.now(),T=Date.now(),F=q.timeOrigin?Math.abs(q.timeOrigin+M-T):D,le=F<D,V=q.timing&&q.timing.navigationStart,ye="number"==typeof V?Math.abs(V+M-T):D;return le||ye<D?F<=ye?(P="timeOrigin",q.timeOrigin):(P="navigationStart",V):(P="dateNow",T)})()},3693:(St,be,s)=>{"use strict";function t(r){return r&&r.Math==Math?r:void 0}s.d(be,{Rf:()=>d,YO:()=>l,n2:()=>e});const e="object"==typeof globalThis&&t(globalThis)||"object"==typeof window&&t(window)||"object"==typeof self&&t(self)||"object"==typeof global&&t(global)||function(){return this}()||{};function d(){return e}function l(r,c,E){const m=E||e,v=m.__SENTRY__=m.__SENTRY__||{};return v[r]||(v[r]=c())}},12986:(St,be)=>{"use strict";be.byteLength=function E(P){var I=c(P),D=I[1];return 3*(I[0]+D)/4-D},be.toByteArray=function v(P){var I,V,q=c(P),D=q[0],M=q[1],T=new e(function m(P,I,q){return 3*(I+q)/4-q}(0,D,M)),F=0,le=M>0?D-4:D;for(V=0;V<le;V+=4)I=t[P.charCodeAt(V)]<<18|t[P.charCodeAt(V+1)]<<12|t[P.charCodeAt(V+2)]<<6|t[P.charCodeAt(V+3)],T[F++]=I>>16&255,T[F++]=I>>8&255,T[F++]=255&I;return 2===M&&(I=t[P.charCodeAt(V)]<<2|t[P.charCodeAt(V+1)]>>4,T[F++]=255&I),1===M&&(I=t[P.charCodeAt(V)]<<10|t[P.charCodeAt(V+1)]<<4|t[P.charCodeAt(V+2)]>>2,T[F++]=I>>8&255,T[F++]=255&I),T},be.fromByteArray=function i(P){for(var I,q=P.length,D=q%3,M=[],T=16383,F=0,le=q-D;F<le;F+=T)M.push(n(P,F,F+T>le?le:F+T));return 1===D?M.push(s[(I=P[q-1])>>2]+s[I<<4&63]+"=="):2===D&&M.push(s[(I=(P[q-2]<<8)+P[q-1])>>10]+s[I>>4&63]+s[I<<2&63]+"="),M.join("")};for(var s=[],t=[],e=typeof Uint8Array<"u"?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,r=d.length;l<r;++l)s[l]=d[l],t[d.charCodeAt(l)]=l;function c(P){var I=P.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var q=P.indexOf("=");return-1===q&&(q=I),[q,q===I?0:4-q%4]}function C(P){return s[P>>18&63]+s[P>>12&63]+s[P>>6&63]+s[63&P]}function n(P,I,q){for(var M=[],T=I;T<q;T+=3)M.push(C((P[T]<<16&16711680)+(P[T+1]<<8&65280)+(255&P[T+2])));return M.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63},44485:(St,be,s)=>{"use strict";var e=s(12986),d=s(90984),l="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;be.lW=m,be.h2=50;var r=2147483647;function E(H){if(H>r)throw new RangeError('The value "'+H+'" is invalid for option "size"');var Y=new Uint8Array(H);return Object.setPrototypeOf(Y,m.prototype),Y}function m(H,Y,S){if("number"==typeof H){if("string"==typeof Y)throw new TypeError('The "string" argument must be of type string. Received type number');return i(H)}return v(H,Y,S)}function v(H,Y,S){if("string"==typeof H)return function P(H,Y){if(("string"!=typeof Y||""===Y)&&(Y="utf8"),!m.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);var S=0|le(H,Y),K=E(S),Q=K.write(H,Y);return Q!==S&&(K=K.slice(0,Q)),K}(H,Y);if(ArrayBuffer.isView(H))return function q(H){if(Ge(H,Uint8Array)){var Y=new Uint8Array(H);return D(Y.buffer,Y.byteOffset,Y.byteLength)}return I(H)}(H);if(null==H)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof H);if(Ge(H,ArrayBuffer)||H&&Ge(H.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ge(H,SharedArrayBuffer)||H&&Ge(H.buffer,SharedArrayBuffer)))return D(H,Y,S);if("number"==typeof H)throw new TypeError('The "value" argument must not be of type number. Received type number');var K=H.valueOf&&H.valueOf();if(null!=K&&K!==H)return m.from(K,Y,S);var Q=function M(H){if(m.isBuffer(H)){var Y=0|T(H.length),S=E(Y);return 0===S.length||H.copy(S,0,0,Y),S}return void 0!==H.length?"number"!=typeof H.length||Tt(H.length)?E(0):I(H):"Buffer"===H.type&&Array.isArray(H.data)?I(H.data):void 0}(H);if(Q)return Q;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof H[Symbol.toPrimitive])return m.from(H[Symbol.toPrimitive]("string"),Y,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof H)}function C(H){if("number"!=typeof H)throw new TypeError('"size" argument must be of type number');if(H<0)throw new RangeError('The value "'+H+'" is invalid for option "size"')}function i(H){return C(H),E(H<0?0:0|T(H))}function I(H){for(var Y=H.length<0?0:0|T(H.length),S=E(Y),K=0;K<Y;K+=1)S[K]=255&H[K];return S}function D(H,Y,S){if(Y<0||H.byteLength<Y)throw new RangeError('"offset" is outside of buffer bounds');if(H.byteLength<Y+(S||0))throw new RangeError('"length" is outside of buffer bounds');var K;return K=void 0===Y&&void 0===S?new Uint8Array(H):void 0===S?new Uint8Array(H,Y):new Uint8Array(H,Y,S),Object.setPrototypeOf(K,m.prototype),K}function T(H){if(H>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|H}function le(H,Y){if(m.isBuffer(H))return H.length;if(ArrayBuffer.isView(H)||Ge(H,ArrayBuffer))return H.byteLength;if("string"!=typeof H)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof H);var S=H.length,K=arguments.length>2&&!0===arguments[2];if(!K&&0===S)return 0;for(var Q=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return we(H).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*S;case"hex":return S>>>1;case"base64":return Se(H).length;default:if(Q)return K?-1:we(H).length;Y=(""+Y).toLowerCase(),Q=!0}}function V(H,Y,S){var K=!1;if((void 0===Y||Y<0)&&(Y=0),Y>this.length||((void 0===S||S>this.length)&&(S=this.length),S<=0)||(S>>>=0)<=(Y>>>=0))return"";for(H||(H="utf8");;)switch(H){case"hex":return w(this,Y,S);case"utf8":case"utf-8":return L(this,Y,S);case"ascii":return Z(this,Y,S);case"latin1":case"binary":return Te(this,Y,S);case"base64":return W(this,Y,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,Y,S);default:if(K)throw new TypeError("Unknown encoding: "+H);H=(H+"").toLowerCase(),K=!0}}function de(H,Y,S){var K=H[Y];H[Y]=H[S],H[S]=K}function ye(H,Y,S,K,Q){if(0===H.length)return-1;if("string"==typeof S?(K=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),Tt(S=+S)&&(S=Q?0:H.length-1),S<0&&(S=H.length+S),S>=H.length){if(Q)return-1;S=H.length-1}else if(S<0){if(!Q)return-1;S=0}if("string"==typeof Y&&(Y=m.from(Y,K)),m.isBuffer(Y))return 0===Y.length?-1:Ee(H,Y,S,K,Q);if("number"==typeof Y)return Y&=255,"function"==typeof Uint8Array.prototype.indexOf?Q?Uint8Array.prototype.indexOf.call(H,Y,S):Uint8Array.prototype.lastIndexOf.call(H,Y,S):Ee(H,[Y],S,K,Q);throw new TypeError("val must be string, number or Buffer")}function Ee(H,Y,S,K,Q){var $e,B=1,re=H.length,fe=Y.length;if(void 0!==K&&("ucs2"===(K=String(K).toLowerCase())||"ucs-2"===K||"utf16le"===K||"utf-16le"===K)){if(H.length<2||Y.length<2)return-1;B=2,re/=2,fe/=2,S/=2}function qe(pt,$t){return 1===B?pt[$t]:pt.readUInt16BE($t*B)}if(Q){var et=-1;for($e=S;$e<re;$e++)if(qe(H,$e)===qe(Y,-1===et?0:$e-et)){if(-1===et&&(et=$e),$e-et+1===fe)return et*B}else-1!==et&&($e-=$e-et),et=-1}else for(S+fe>re&&(S=re-fe),$e=S;$e>=0;$e--){for(var ot=!0,ct=0;ct<fe;ct++)if(qe(H,$e+ct)!==qe(Y,ct)){ot=!1;break}if(ot)return $e}return-1}function Le(H,Y,S,K){S=Number(S)||0;var Q=H.length-S;K?(K=Number(K))>Q&&(K=Q):K=Q;var B=Y.length;K>B/2&&(K=B/2);for(var re=0;re<K;++re){var fe=parseInt(Y.substr(2*re,2),16);if(Tt(fe))return re;H[S+re]=fe}return re}function ge(H,Y,S,K){return ke(we(Y,H.length-S),H,S,K)}function ue(H,Y,S,K){return ke(function Ye(H){for(var Y=[],S=0;S<H.length;++S)Y.push(255&H.charCodeAt(S));return Y}(Y),H,S,K)}function ee(H,Y,S,K){return ke(Se(Y),H,S,K)}function se(H,Y,S,K){return ke(function te(H,Y){for(var S,K,B=[],re=0;re<H.length&&!((Y-=2)<0);++re)K=(S=H.charCodeAt(re))>>8,B.push(S%256),B.push(K);return B}(Y,H.length-S),H,S,K)}function W(H,Y,S){return e.fromByteArray(0===Y&&S===H.length?H:H.slice(Y,S))}function L(H,Y,S){S=Math.min(H.length,S);for(var K=[],Q=Y;Q<S;){var qe,$e,et,ot,B=H[Q],re=null,fe=B>239?4:B>223?3:B>191?2:1;if(Q+fe<=S)switch(fe){case 1:B<128&&(re=B);break;case 2:128==(192&(qe=H[Q+1]))&&(ot=(31&B)<<6|63&qe)>127&&(re=ot);break;case 3:$e=H[Q+2],128==(192&(qe=H[Q+1]))&&128==(192&$e)&&(ot=(15&B)<<12|(63&qe)<<6|63&$e)>2047&&(ot<55296||ot>57343)&&(re=ot);break;case 4:$e=H[Q+2],et=H[Q+3],128==(192&(qe=H[Q+1]))&&128==(192&$e)&&128==(192&et)&&(ot=(15&B)<<18|(63&qe)<<12|(63&$e)<<6|63&et)>65535&&ot<1114112&&(re=ot)}null===re?(re=65533,fe=1):re>65535&&(K.push((re-=65536)>>>10&1023|55296),re=56320|1023&re),K.push(re),Q+=fe}return function _e(H){var Y=H.length;if(Y<=he)return String.fromCharCode.apply(String,H);for(var S="",K=0;K<Y;)S+=String.fromCharCode.apply(String,H.slice(K,K+=he));return S}(K)}!(m.TYPED_ARRAY_SUPPORT=function c(){try{var H=new Uint8Array(1),Y={foo:function(){return 42}};return Object.setPrototypeOf(Y,Uint8Array.prototype),Object.setPrototypeOf(H,Y),42===H.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}}),m.poolSize=8192,m.from=function(H,Y,S){return v(H,Y,S)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array),m.alloc=function(H,Y,S){return function n(H,Y,S){return C(H),H<=0?E(H):void 0!==Y?"string"==typeof S?E(H).fill(Y,S):E(H).fill(Y):E(H)}(H,Y,S)},m.allocUnsafe=function(H){return i(H)},m.allocUnsafeSlow=function(H){return i(H)},m.isBuffer=function(Y){return null!=Y&&!0===Y._isBuffer&&Y!==m.prototype},m.compare=function(Y,S){if(Ge(Y,Uint8Array)&&(Y=m.from(Y,Y.offset,Y.byteLength)),Ge(S,Uint8Array)&&(S=m.from(S,S.offset,S.byteLength)),!m.isBuffer(Y)||!m.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Y===S)return 0;for(var K=Y.length,Q=S.length,B=0,re=Math.min(K,Q);B<re;++B)if(Y[B]!==S[B]){K=Y[B],Q=S[B];break}return K<Q?-1:Q<K?1:0},m.isEncoding=function(Y){switch(String(Y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},m.concat=function(Y,S){if(!Array.isArray(Y))throw new TypeError('"list" argument must be an Array of Buffers');if(0===Y.length)return m.alloc(0);var K;if(void 0===S)for(S=0,K=0;K<Y.length;++K)S+=Y[K].length;var Q=m.allocUnsafe(S),B=0;for(K=0;K<Y.length;++K){var re=Y[K];if(Ge(re,Uint8Array))B+re.length>Q.length?m.from(re).copy(Q,B):Uint8Array.prototype.set.call(Q,re,B);else{if(!m.isBuffer(re))throw new TypeError('"list" argument must be an Array of Buffers');re.copy(Q,B)}B+=re.length}return Q},m.byteLength=le,m.prototype._isBuffer=!0,m.prototype.swap16=function(){var Y=this.length;if(Y%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var S=0;S<Y;S+=2)de(this,S,S+1);return this},m.prototype.swap32=function(){var Y=this.length;if(Y%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var S=0;S<Y;S+=4)de(this,S,S+3),de(this,S+1,S+2);return this},m.prototype.swap64=function(){var Y=this.length;if(Y%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var S=0;S<Y;S+=8)de(this,S,S+7),de(this,S+1,S+6),de(this,S+2,S+5),de(this,S+3,S+4);return this},m.prototype.toLocaleString=m.prototype.toString=function(){var Y=this.length;return 0===Y?"":0===arguments.length?L(this,0,Y):V.apply(this,arguments)},m.prototype.equals=function(Y){if(!m.isBuffer(Y))throw new TypeError("Argument must be a Buffer");return this===Y||0===m.compare(this,Y)},m.prototype.inspect=function(){var Y="",S=be.h2;return Y=this.toString("hex",0,S).replace(/(.{2})/g,"$1 ").trim(),this.length>S&&(Y+=" ... "),"<Buffer "+Y+">"},l&&(m.prototype[l]=m.prototype.inspect),m.prototype.compare=function(Y,S,K,Q,B){if(Ge(Y,Uint8Array)&&(Y=m.from(Y,Y.offset,Y.byteLength)),!m.isBuffer(Y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Y);if(void 0===S&&(S=0),void 0===K&&(K=Y?Y.length:0),void 0===Q&&(Q=0),void 0===B&&(B=this.length),S<0||K>Y.length||Q<0||B>this.length)throw new RangeError("out of range index");if(Q>=B&&S>=K)return 0;if(Q>=B)return-1;if(S>=K)return 1;if(this===Y)return 0;for(var re=(B>>>=0)-(Q>>>=0),fe=(K>>>=0)-(S>>>=0),qe=Math.min(re,fe),$e=this.slice(Q,B),et=Y.slice(S,K),ot=0;ot<qe;++ot)if($e[ot]!==et[ot]){re=$e[ot],fe=et[ot];break}return re<fe?-1:fe<re?1:0},m.prototype.includes=function(Y,S,K){return-1!==this.indexOf(Y,S,K)},m.prototype.indexOf=function(Y,S,K){return ye(this,Y,S,K,!0)},m.prototype.lastIndexOf=function(Y,S,K){return ye(this,Y,S,K,!1)},m.prototype.write=function(Y,S,K,Q){if(void 0===S)Q="utf8",K=this.length,S=0;else if(void 0===K&&"string"==typeof S)Q=S,K=this.length,S=0;else{if(!isFinite(S))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");S>>>=0,isFinite(K)?(K>>>=0,void 0===Q&&(Q="utf8")):(Q=K,K=void 0)}var B=this.length-S;if((void 0===K||K>B)&&(K=B),Y.length>0&&(K<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");Q||(Q="utf8");for(var re=!1;;)switch(Q){case"hex":return Le(this,Y,S,K);case"utf8":case"utf-8":return ge(this,Y,S,K);case"ascii":case"latin1":case"binary":return ue(this,Y,S,K);case"base64":return ee(this,Y,S,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,Y,S,K);default:if(re)throw new TypeError("Unknown encoding: "+Q);Q=(""+Q).toLowerCase(),re=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var he=4096;function Z(H,Y,S){var K="";S=Math.min(H.length,S);for(var Q=Y;Q<S;++Q)K+=String.fromCharCode(127&H[Q]);return K}function Te(H,Y,S){var K="";S=Math.min(H.length,S);for(var Q=Y;Q<S;++Q)K+=String.fromCharCode(H[Q]);return K}function w(H,Y,S){var K=H.length;(!Y||Y<0)&&(Y=0),(!S||S<0||S>K)&&(S=K);for(var Q="",B=Y;B<S;++B)Q+=Et[H[B]];return Q}function k(H,Y,S){for(var K=H.slice(Y,S),Q="",B=0;B<K.length-1;B+=2)Q+=String.fromCharCode(K[B]+256*K[B+1]);return Q}function x(H,Y,S){if(H%1!=0||H<0)throw new RangeError("offset is not uint");if(H+Y>S)throw new RangeError("Trying to access beyond buffer length")}function z(H,Y,S,K,Q,B){if(!m.isBuffer(H))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>Q||Y<B)throw new RangeError('"value" argument is out of bounds');if(S+K>H.length)throw new RangeError("Index out of range")}function j(H,Y,S,K,Q,B){if(S+K>H.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function Ne(H,Y,S,K,Q){return Y=+Y,S>>>=0,Q||j(H,0,S,4),d.write(H,Y,S,K,23,4),S+4}function tt(H,Y,S,K,Q){return Y=+Y,S>>>=0,Q||j(H,0,S,8),d.write(H,Y,S,K,52,8),S+8}m.prototype.slice=function(Y,S){var K=this.length;(Y=~~Y)<0?(Y+=K)<0&&(Y=0):Y>K&&(Y=K),(S=void 0===S?K:~~S)<0?(S+=K)<0&&(S=0):S>K&&(S=K),S<Y&&(S=Y);var Q=this.subarray(Y,S);return Object.setPrototypeOf(Q,m.prototype),Q},m.prototype.readUintLE=m.prototype.readUIntLE=function(Y,S,K){Y>>>=0,S>>>=0,K||x(Y,S,this.length);for(var Q=this[Y],B=1,re=0;++re<S&&(B*=256);)Q+=this[Y+re]*B;return Q},m.prototype.readUintBE=m.prototype.readUIntBE=function(Y,S,K){Y>>>=0,S>>>=0,K||x(Y,S,this.length);for(var Q=this[Y+--S],B=1;S>0&&(B*=256);)Q+=this[Y+--S]*B;return Q},m.prototype.readUint8=m.prototype.readUInt8=function(Y,S){return Y>>>=0,S||x(Y,1,this.length),this[Y]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(Y,S){return Y>>>=0,S||x(Y,2,this.length),this[Y]|this[Y+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(Y,S){return Y>>>=0,S||x(Y,2,this.length),this[Y]<<8|this[Y+1]},m.prototype.readUint32LE=m.prototype.readUInt32LE=function(Y,S){return Y>>>=0,S||x(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+16777216*this[Y+3]},m.prototype.readUint32BE=m.prototype.readUInt32BE=function(Y,S){return Y>>>=0,S||x(Y,4,this.length),16777216*this[Y]+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},m.prototype.readIntLE=function(Y,S,K){Y>>>=0,S>>>=0,K||x(Y,S,this.length);for(var Q=this[Y],B=1,re=0;++re<S&&(B*=256);)Q+=this[Y+re]*B;return Q>=(B*=128)&&(Q-=Math.pow(2,8*S)),Q},m.prototype.readIntBE=function(Y,S,K){Y>>>=0,S>>>=0,K||x(Y,S,this.length);for(var Q=S,B=1,re=this[Y+--Q];Q>0&&(B*=256);)re+=this[Y+--Q]*B;return re>=(B*=128)&&(re-=Math.pow(2,8*S)),re},m.prototype.readInt8=function(Y,S){return Y>>>=0,S||x(Y,1,this.length),128&this[Y]?-1*(255-this[Y]+1):this[Y]},m.prototype.readInt16LE=function(Y,S){Y>>>=0,S||x(Y,2,this.length);var K=this[Y]|this[Y+1]<<8;return 32768&K?4294901760|K:K},m.prototype.readInt16BE=function(Y,S){Y>>>=0,S||x(Y,2,this.length);var K=this[Y+1]|this[Y]<<8;return 32768&K?4294901760|K:K},m.prototype.readInt32LE=function(Y,S){return Y>>>=0,S||x(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},m.prototype.readInt32BE=function(Y,S){return Y>>>=0,S||x(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},m.prototype.readFloatLE=function(Y,S){return Y>>>=0,S||x(Y,4,this.length),d.read(this,Y,!0,23,4)},m.prototype.readFloatBE=function(Y,S){return Y>>>=0,S||x(Y,4,this.length),d.read(this,Y,!1,23,4)},m.prototype.readDoubleLE=function(Y,S){return Y>>>=0,S||x(Y,8,this.length),d.read(this,Y,!0,52,8)},m.prototype.readDoubleBE=function(Y,S){return Y>>>=0,S||x(Y,8,this.length),d.read(this,Y,!1,52,8)},m.prototype.writeUintLE=m.prototype.writeUIntLE=function(Y,S,K,Q){Y=+Y,S>>>=0,K>>>=0,Q||z(this,Y,S,K,Math.pow(2,8*K)-1,0);var re=1,fe=0;for(this[S]=255&Y;++fe<K&&(re*=256);)this[S+fe]=Y/re&255;return S+K},m.prototype.writeUintBE=m.prototype.writeUIntBE=function(Y,S,K,Q){Y=+Y,S>>>=0,K>>>=0,Q||z(this,Y,S,K,Math.pow(2,8*K)-1,0);var re=K-1,fe=1;for(this[S+re]=255&Y;--re>=0&&(fe*=256);)this[S+re]=Y/fe&255;return S+K},m.prototype.writeUint8=m.prototype.writeUInt8=function(Y,S,K){return Y=+Y,S>>>=0,K||z(this,Y,S,1,255,0),this[S]=255&Y,S+1},m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(Y,S,K){return Y=+Y,S>>>=0,K||z(this,Y,S,2,65535,0),this[S]=255&Y,this[S+1]=Y>>>8,S+2},m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(Y,S,K){return Y=+Y,S>>>=0,K||z(this,Y,S,2,65535,0),this[S]=Y>>>8,this[S+1]=255&Y,S+2},m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(Y,S,K){return Y=+Y,S>>>=0,K||z(this,Y,S,4,4294967295,0),this[S+3]=Y>>>24,this[S+2]=Y>>>16,this[S+1]=Y>>>8,this[S]=255&Y,S+4},m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(Y,S,K){return Y=+Y,S>>>=0,K||z(this,Y,S,4,4294967295,0),this[S]=Y>>>24,this[S+1]=Y>>>16,this[S+2]=Y>>>8,this[S+3]=255&Y,S+4},m.prototype.writeIntLE=function(Y,S,K,Q){if(Y=+Y,S>>>=0,!Q){var B=Math.pow(2,8*K-1);z(this,Y,S,K,B-1,-B)}var re=0,fe=1,qe=0;for(this[S]=255&Y;++re<K&&(fe*=256);)Y<0&&0===qe&&0!==this[S+re-1]&&(qe=1),this[S+re]=(Y/fe>>0)-qe&255;return S+K},m.prototype.writeIntBE=function(Y,S,K,Q){if(Y=+Y,S>>>=0,!Q){var B=Math.pow(2,8*K-1);z(this,Y,S,K,B-1,-B)}var re=K-1,fe=1,qe=0;for(this[S+re]=255&Y;--re>=0&&(fe*=256);)Y<0&&0===qe&&0!==this[S+re+1]&&(qe=1),this[S+re]=(Y/fe>>0)-qe&255;return S+K},m.prototype.writeInt8=function(Y,S,K){return Y=+Y,S>>>=0,K||z(this,Y,S,1,127,-128),Y<0&&(Y=255+Y+1),this[S]=255&Y,S+1},m.prototype.writeInt16LE=function(Y,S,K){return Y=+Y,S>>>=0,K||z(this,Y,S,2,32767,-32768),this[S]=255&Y,this[S+1]=Y>>>8,S+2},m.prototype.writeInt16BE=function(Y,S,K){return Y=+Y,S>>>=0,K||z(this,Y,S,2,32767,-32768),this[S]=Y>>>8,this[S+1]=255&Y,S+2},m.prototype.writeInt32LE=function(Y,S,K){return Y=+Y,S>>>=0,K||z(this,Y,S,4,2147483647,-2147483648),this[S]=255&Y,this[S+1]=Y>>>8,this[S+2]=Y>>>16,this[S+3]=Y>>>24,S+4},m.prototype.writeInt32BE=function(Y,S,K){return Y=+Y,S>>>=0,K||z(this,Y,S,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),this[S]=Y>>>24,this[S+1]=Y>>>16,this[S+2]=Y>>>8,this[S+3]=255&Y,S+4},m.prototype.writeFloatLE=function(Y,S,K){return Ne(this,Y,S,!0,K)},m.prototype.writeFloatBE=function(Y,S,K){return Ne(this,Y,S,!1,K)},m.prototype.writeDoubleLE=function(Y,S,K){return tt(this,Y,S,!0,K)},m.prototype.writeDoubleBE=function(Y,S,K){return tt(this,Y,S,!1,K)},m.prototype.copy=function(Y,S,K,Q){if(!m.isBuffer(Y))throw new TypeError("argument should be a Buffer");if(K||(K=0),!Q&&0!==Q&&(Q=this.length),S>=Y.length&&(S=Y.length),S||(S=0),Q>0&&Q<K&&(Q=K),Q===K||0===Y.length||0===this.length)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(K<0||K>=this.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("sourceEnd out of bounds");Q>this.length&&(Q=this.length),Y.length-S<Q-K&&(Q=Y.length-S+K);var B=Q-K;return this===Y&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(S,K,Q):Uint8Array.prototype.set.call(Y,this.subarray(K,Q),S),B},m.prototype.fill=function(Y,S,K,Q){if("string"==typeof Y){if("string"==typeof S?(Q=S,S=0,K=this.length):"string"==typeof K&&(Q=K,K=this.length),void 0!==Q&&"string"!=typeof Q)throw new TypeError("encoding must be a string");if("string"==typeof Q&&!m.isEncoding(Q))throw new TypeError("Unknown encoding: "+Q);if(1===Y.length){var B=Y.charCodeAt(0);("utf8"===Q&&B<128||"latin1"===Q)&&(Y=B)}}else"number"==typeof Y?Y&=255:"boolean"==typeof Y&&(Y=Number(Y));if(S<0||this.length<S||this.length<K)throw new RangeError("Out of range index");if(K<=S)return this;var re;if(S>>>=0,K=void 0===K?this.length:K>>>0,Y||(Y=0),"number"==typeof Y)for(re=S;re<K;++re)this[re]=Y;else{var fe=m.isBuffer(Y)?Y:m.from(Y,Q),qe=fe.length;if(0===qe)throw new TypeError('The value "'+Y+'" is invalid for argument "value"');for(re=0;re<K-S;++re)this[re+S]=fe[re%qe]}return this};var We=/[^+/0-9A-Za-z-_]/g;function we(H,Y){Y=Y||1/0;for(var S,K=H.length,Q=null,B=[],re=0;re<K;++re){if((S=H.charCodeAt(re))>55295&&S<57344){if(!Q){if(S>56319){(Y-=3)>-1&&B.push(239,191,189);continue}if(re+1===K){(Y-=3)>-1&&B.push(239,191,189);continue}Q=S;continue}if(S<56320){(Y-=3)>-1&&B.push(239,191,189),Q=S;continue}S=65536+(Q-55296<<10|S-56320)}else Q&&(Y-=3)>-1&&B.push(239,191,189);if(Q=null,S<128){if((Y-=1)<0)break;B.push(S)}else if(S<2048){if((Y-=2)<0)break;B.push(S>>6|192,63&S|128)}else if(S<65536){if((Y-=3)<0)break;B.push(S>>12|224,S>>6&63|128,63&S|128)}else{if(!(S<1114112))throw new Error("Invalid code point");if((Y-=4)<0)break;B.push(S>>18|240,S>>12&63|128,S>>6&63|128,63&S|128)}}return B}function Se(H){return e.toByteArray(function ze(H){if((H=(H=H.split("=")[0]).trim().replace(We,"")).length<2)return"";for(;H.length%4!=0;)H+="=";return H}(H))}function ke(H,Y,S,K){for(var Q=0;Q<K&&!(Q+S>=Y.length||Q>=H.length);++Q)Y[Q+S]=H[Q];return Q}function Ge(H,Y){return H instanceof Y||null!=H&&null!=H.constructor&&null!=H.constructor.name&&H.constructor.name===Y.name}function Tt(H){return H!=H}var Et=function(){for(var H="0123456789abcdef",Y=new Array(256),S=0;S<16;++S)for(var K=16*S,Q=0;Q<16;++Q)Y[K+Q]=H[S]+H[Q];return Y}()},75697:St=>{"use strict";var be={single_source_shortest_paths:function(s,t,e){var d={},l={};l[t]=0;var c,E,m,v,C,i,r=be.PriorityQueue.make();for(r.push(t,0);!r.empty();)for(m in v=(c=r.pop()).cost,C=s[E=c.value]||{})C.hasOwnProperty(m)&&(i=v+C[m],(typeof l[m]>"u"||l[m]>i)&&(l[m]=i,r.push(m,i),d[m]=E));if(typeof e<"u"&&typeof l[e]>"u"){var q=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(q)}return d},extract_shortest_path_from_predecessor_list:function(s,t){for(var e=[],d=t;d;)e.push(d),d=s[d];return e.reverse(),e},find_path:function(s,t,e){var d=be.single_source_shortest_paths(s,t,e);return be.extract_shortest_path_from_predecessor_list(d,e)},PriorityQueue:{make:function(s){var d,t=be.PriorityQueue,e={};for(d in s=s||{},t)t.hasOwnProperty(d)&&(e[d]=t[d]);return e.queue=[],e.sorter=s.sorter||t.default_sorter,e},default_sorter:function(s,t){return s.cost-t.cost},push:function(s,t){this.queue.push({value:s,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};St.exports=be},89410:function(St){St.exports=function(){"use strict";function be(fe){return(be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(qe){return typeof qe}:function(qe){return qe&&"function"==typeof Symbol&&qe.constructor===Symbol&&qe!==Symbol.prototype?"symbol":typeof qe})(fe)}function s(fe,qe){return(s=Object.setPrototypeOf||function(et,ot){return et.__proto__=ot,et})(fe,qe)}function e(fe,qe,$e){return(e=function t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(ot,ct,pt){var $t=[null];$t.push.apply($t,ct);var fr=new(Function.bind.apply(ot,$t));return pt&&s(fr,pt.prototype),fr}).apply(null,arguments)}function d(fe){return function l(fe){if(Array.isArray(fe))return E(fe)}(fe)||function r(fe){if(typeof Symbol<"u"&&null!=fe[Symbol.iterator]||null!=fe["@@iterator"])return Array.from(fe)}(fe)||function c(fe,qe){if(fe){if("string"==typeof fe)return E(fe,qe);var $e=Object.prototype.toString.call(fe).slice(8,-1);if("Object"===$e&&fe.constructor&&($e=fe.constructor.name),"Map"===$e||"Set"===$e)return Array.from(fe);if("Arguments"===$e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($e))return E(fe,qe)}}(fe)||function m(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(fe,qe){(null==qe||qe>fe.length)&&(qe=fe.length);for(var $e=0,et=new Array(qe);$e<qe;$e++)et[$e]=fe[$e];return et}var v=Object.hasOwnProperty,C=Object.setPrototypeOf,n=Object.isFrozen,i=Object.getPrototypeOf,P=Object.getOwnPropertyDescriptor,I=Object.freeze,q=Object.seal,D=Object.create,M=typeof Reflect<"u"&&Reflect,T=M.apply,F=M.construct;T||(T=function(qe,$e,et){return qe.apply($e,et)}),I||(I=function(qe){return qe}),q||(q=function(qe){return qe}),F||(F=function(qe,$e){return e(qe,d($e))});var le=L(Array.prototype.forEach),V=L(Array.prototype.pop),de=L(Array.prototype.push),ye=L(String.prototype.toLowerCase),Ee=L(String.prototype.toString),Le=L(String.prototype.match),ge=L(String.prototype.replace),ue=L(String.prototype.indexOf),ee=L(String.prototype.trim),se=L(RegExp.prototype.test),W=function he(fe){return function(){for(var qe=arguments.length,$e=new Array(qe),et=0;et<qe;et++)$e[et]=arguments[et];return F(fe,$e)}}(TypeError);function L(fe){return function(qe){for(var $e=arguments.length,et=new Array($e>1?$e-1:0),ot=1;ot<$e;ot++)et[ot-1]=arguments[ot];return T(fe,qe,et)}}function _e(fe,qe,$e){$e=$e||ye,C&&C(fe,null);for(var et=qe.length;et--;){var ot=qe[et];if("string"==typeof ot){var ct=$e(ot);ct!==ot&&(n(qe)||(qe[et]=ct),ot=ct)}fe[ot]=!0}return fe}function Z(fe){var $e,qe=D(null);for($e in fe)T(v,fe,[$e])&&(qe[$e]=fe[$e]);return qe}function Te(fe,qe){for(;null!==fe;){var $e=P(fe,qe);if($e){if($e.get)return L($e.get);if("function"==typeof $e.value)return L($e.value)}fe=i(fe)}return function et(ot){return console.warn("fallback value for",ot),null}}var w=I(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),k=I(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),x=I(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),z=I(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),j=I(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Ne=I(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),tt=I(["#text"]),We=I(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),ze=I(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),we=I(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ye=I(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),te=q(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Se=q(/<%[\w\W]*|[\w\W]*%>/gm),ke=q(/\${[\w\W]*}/gm),Ge=q(/^data-[\-\w.\u00B7-\uFFFF]/),Tt=q(/^aria-[\-\w]+$/),Et=q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H=q(/^(?:\w+script|data):/i),Y=q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),S=q(/^html$/i),K=function(){return typeof window>"u"?null:window},Q=function(qe,$e){if("object"!==be(qe)||"function"!=typeof qe.createPolicy)return null;var et=null,ot="data-tt-policy-suffix";$e.currentScript&&$e.currentScript.hasAttribute(ot)&&(et=$e.currentScript.getAttribute(ot));var ct="dompurify"+(et?"#"+et:"");try{return qe.createPolicy(ct,{createHTML:function($t){return $t},createScriptURL:function($t){return $t}})}catch{return console.warn("TrustedTypes policy "+ct+" could not be created."),null}};return function B(){var fe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K(),qe=function(Dt){return B(Dt)};if(qe.version="2.4.1",qe.removed=[],!fe||!fe.document||9!==fe.document.nodeType)return qe.isSupported=!1,qe;var $e=fe.document,et=fe.document,ot=fe.DocumentFragment,ct=fe.HTMLTemplateElement,pt=fe.Node,$t=fe.Element,It=fe.NodeFilter,fr=fe.NamedNodeMap,yt=void 0===fr?fe.NamedNodeMap||fe.MozNamedAttrMap:fr,dr=fe.HTMLFormElement,bt=fe.DOMParser,ar=fe.trustedTypes,vt=$t.prototype,qt=Te(vt,"cloneNode"),br=Te(vt,"nextSibling"),lt=Te(vt,"childNodes"),De=Te(vt,"parentNode");if("function"==typeof ct){var G=et.createElement("template");G.content&&G.content.ownerDocument&&(et=G.content.ownerDocument)}var U=Q(ar,$e),ne=U?U.createHTML(""):"",Xe=et.implementation,Nt=et.createNodeIterator,Pt=et.createDocumentFragment,Vt=et.getElementsByTagName,Jt=$e.importNode,kt={};try{kt=Z(et).documentMode?et.documentMode:{}}catch{}var Me={};qe.isSupported="function"==typeof De&&Xe&&typeof Xe.createHTMLDocument<"u"&&9!==kt;var La,bn,ut=te,nt=Se,Ht=ke,pr=Ge,Lr=Tt,Kr=H,Cn=Y,Wn=Et,zn=null,ti=_e({},[].concat(d(w),d(k),d(x),d(j),d(tt))),yr=null,Jr=_e({},[].concat(d(We),d(ze),d(we),d(Ye))),wt=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),nr=null,tn=null,rn=!0,vn=!0,Gn=!1,Yn=!1,Dn=!1,Ti=!1,Ni=!1,ci=!1,Kt=!1,Ar=!1,ie=!0,Ve=!1,tr=!0,kr=!1,mn={},un=null,ri=_e({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Sr=null,Er=_e({},["audio","video","img","source","image","track"]),Ot=null,lr=_e({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Cr="http://www.w3.org/1998/Math/MathML",Gr="http://www.w3.org/2000/svg",Ln="http://www.w3.org/1999/xhtml",Xn=Ln,ni=!1,ta=null,$a=_e({},[Cr,Gr,Ln],Ee),Ei=["application/xhtml+xml","text/html"],ha=null,po=et.createElement("form"),Ia=function(Dt){return Dt instanceof RegExp||Dt instanceof Function},Oa=function(Dt){ha&&ha===Dt||((!Dt||"object"!==be(Dt))&&(Dt={}),Dt=Z(Dt),La=La=-1===Ei.indexOf(Dt.PARSER_MEDIA_TYPE)?"text/html":Dt.PARSER_MEDIA_TYPE,bn="application/xhtml+xml"===La?Ee:ye,zn="ALLOWED_TAGS"in Dt?_e({},Dt.ALLOWED_TAGS,bn):ti,yr="ALLOWED_ATTR"in Dt?_e({},Dt.ALLOWED_ATTR,bn):Jr,ta="ALLOWED_NAMESPACES"in Dt?_e({},Dt.ALLOWED_NAMESPACES,Ee):$a,Ot="ADD_URI_SAFE_ATTR"in Dt?_e(Z(lr),Dt.ADD_URI_SAFE_ATTR,bn):lr,Sr="ADD_DATA_URI_TAGS"in Dt?_e(Z(Er),Dt.ADD_DATA_URI_TAGS,bn):Er,un="FORBID_CONTENTS"in Dt?_e({},Dt.FORBID_CONTENTS,bn):ri,nr="FORBID_TAGS"in Dt?_e({},Dt.FORBID_TAGS,bn):{},tn="FORBID_ATTR"in Dt?_e({},Dt.FORBID_ATTR,bn):{},mn="USE_PROFILES"in Dt&&Dt.USE_PROFILES,rn=!1!==Dt.ALLOW_ARIA_ATTR,vn=!1!==Dt.ALLOW_DATA_ATTR,Gn=Dt.ALLOW_UNKNOWN_PROTOCOLS||!1,Yn=Dt.SAFE_FOR_TEMPLATES||!1,Dn=Dt.WHOLE_DOCUMENT||!1,ci=Dt.RETURN_DOM||!1,Kt=Dt.RETURN_DOM_FRAGMENT||!1,Ar=Dt.RETURN_TRUSTED_TYPE||!1,Ni=Dt.FORCE_BODY||!1,ie=!1!==Dt.SANITIZE_DOM,Ve=Dt.SANITIZE_NAMED_PROPS||!1,tr=!1!==Dt.KEEP_CONTENT,kr=Dt.IN_PLACE||!1,Wn=Dt.ALLOWED_URI_REGEXP||Wn,Xn=Dt.NAMESPACE||Ln,Dt.CUSTOM_ELEMENT_HANDLING&&Ia(Dt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(wt.tagNameCheck=Dt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Dt.CUSTOM_ELEMENT_HANDLING&&Ia(Dt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(wt.attributeNameCheck=Dt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Dt.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof Dt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(wt.allowCustomizedBuiltInElements=Dt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Yn&&(vn=!1),Kt&&(ci=!0),mn&&(zn=_e({},d(tt)),yr=[],!0===mn.html&&(_e(zn,w),_e(yr,We)),!0===mn.svg&&(_e(zn,k),_e(yr,ze),_e(yr,Ye)),!0===mn.svgFilters&&(_e(zn,x),_e(yr,ze),_e(yr,Ye)),!0===mn.mathMl&&(_e(zn,j),_e(yr,we),_e(yr,Ye))),Dt.ADD_TAGS&&(zn===ti&&(zn=Z(zn)),_e(zn,Dt.ADD_TAGS,bn)),Dt.ADD_ATTR&&(yr===Jr&&(yr=Z(yr)),_e(yr,Dt.ADD_ATTR,bn)),Dt.ADD_URI_SAFE_ATTR&&_e(Ot,Dt.ADD_URI_SAFE_ATTR,bn),Dt.FORBID_CONTENTS&&(un===ri&&(un=Z(un)),_e(un,Dt.FORBID_CONTENTS,bn)),tr&&(zn["#text"]=!0),Dn&&_e(zn,["html","head","body"]),zn.table&&(_e(zn,["tbody"]),delete nr.tbody),I&&I(Dt),ha=Dt)},cn=_e({},["mi","mo","mn","ms","mtext"]),Yi=_e({},["foreignobject","desc","title","annotation-xml"]),wi=_e({},["title","style","font","a","script"]),Wi=_e({},k);_e(Wi,x),_e(Wi,z);var ra=_e({},j);_e(ra,Ne);var sa=function(Dt){de(qe.removed,{element:Dt});try{Dt.parentNode.removeChild(Dt)}catch{try{Dt.outerHTML=ne}catch{Dt.remove()}}},Ui=function(Dt,ve){try{de(qe.removed,{attribute:ve.getAttributeNode(Dt),from:ve})}catch{de(qe.removed,{attribute:null,from:ve})}if(ve.removeAttribute(Dt),"is"===Dt&&!yr[Dt])if(ci||Kt)try{sa(ve)}catch{}else try{ve.setAttribute(Dt,"")}catch{}},na=function(Dt){var ve,Rt;if(Ni)Dt="<remove></remove>"+Dt;else{var Dr=Le(Dt,/^[\r\n\t ]+/);Rt=Dr&&Dr[0]}"application/xhtml+xml"===La&&Xn===Ln&&(Dt='<html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="alternate" hreflang="nl-nl" href="https://whydonate.com/nl/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="nl-be" href="https://whydonate.com/nl/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="en-gb" href="https://whydonate.com/en/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="en-ie" href="https://whydonate.com/en/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="en-us" href="https://whydonate.com/en/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="en-ca" href="https://whydonate.com/en/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="en-au" href="https://whydonate.com/en/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="en-nz" href="https://whydonate.com/en/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="en-za" href="https://whydonate.com/en/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="es-es" href="https://whydonate.com/es/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="es-mx" href="https://whydonate.com/es/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="es-ar" href="https://whydonate.com/es/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="es-co" href="https://whydonate.com/es/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="es-cl" href="https://whydonate.com/es/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="de-de" href="https://whydonate.com/de/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="de-ch" href="https://whydonate.com/de/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="fr-fr" href="https://whydonate.com/fr/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="fr-be" href="https://whydonate.com/fr/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="fr-ch" href="https://whydonate.com/fr/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="fr-ca" href="https://whydonate.com/fr/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="pt-pt" href="https://whydonate.com/pt/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="pt-br" href="https://whydonate.com/pt/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="bg-bg" href="https://whydonate.com/bg/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="hr-hr" href="https://whydonate.com/hr/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="cs-cz" href="https://whydonate.com/cs/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="da-dk" href="https://whydonate.com/da/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="fi-fi" href="https://whydonate.com/fi/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="el-gr" href="https://whydonate.com/el/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="hu-hu" href="https://whydonate.com/hu/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="it-it" href="https://whydonate.com/it/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="pl-pl" href="https://whydonate.com/pl/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="ro-ro" href="https://whydonate.com/ro/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="sk-sk" href="https://whydonate.com/sk/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="sv-se" href="https://whydonate.com/sv/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="uk-ua" href="https://whydonate.com/uk/main.d4d7a3791a155708.js"><link rel="alternate" hreflang="x-default" href="https://whydonate.com/"><link rel="canonical" href="https://whydonate.com/hr/" ><meta name="description" content="WhyDonate is the Best Crowdfunding Platform and Fundraising Site for Charity and Personal use. Raise Money for Charity and Individuals for Free!"></head><body>'+Dt+"</body></html>");var kn=U?U.createHTML(Dt):Dt;if(Xn===Ln)try{ve=(new bt).parseFromString(kn,La)}catch{}if(!ve||!ve.documentElement){ve=Xe.createDocument(Xn,"template",null);try{ve.documentElement.innerHTML=ni?"":kn}catch{}}var wn=ve.body||ve.documentElement;return Dt&&Rt&&wn.insertBefore(et.createTextNode(Rt),wn.childNodes[0]||null),Xn===Ln?Vt.call(ve,Dn?"html":"body")[0]:Dn?ve.documentElement:wn},fa=function(Dt){return Nt.call(Dt.ownerDocument||Dt,Dt,It.SHOW_ELEMENT|It.SHOW_COMMENT|It.SHOW_TEXT,null,!1)},Fa=function(Dt){return"object"===be(pt)?Dt instanceof pt:Dt&&"object"===be(Dt)&&"number"==typeof Dt.nodeType&&"string"==typeof Dt.nodeName},la=function(Dt,ve,Rt){Me[Dt]&&le(Me[Dt],function(Dr){Dr.call(qe,ve,Rt,ha)})},ho=function(Dt){var ve;if(la("beforeSanitizeElements",Dt,null),function(Dt){return Dt instanceof dr&&("string"!=typeof Dt.nodeName||"string"!=typeof Dt.textContent||"function"!=typeof Dt.removeChild||!(Dt.attributes instanceof yt)||"function"!=typeof Dt.removeAttribute||"function"!=typeof Dt.setAttribute||"string"!=typeof Dt.namespaceURI||"function"!=typeof Dt.insertBefore||"function"!=typeof Dt.hasChildNodes)}(Dt)||se(/[\u0080-\uFFFF]/,Dt.nodeName))return sa(Dt),!0;var Rt=bn(Dt.nodeName);if(la("uponSanitizeElement",Dt,{tagName:Rt,allowedTags:zn}),Dt.hasChildNodes()&&!Fa(Dt.firstElementChild)&&(!Fa(Dt.content)||!Fa(Dt.content.firstElementChild))&&se(/<[/\w]/g,Dt.innerHTML)&&se(/<[/\w]/g,Dt.textContent)||"select"===Rt&&se(/<template/i,Dt.innerHTML))return sa(Dt),!0;if(!zn[Rt]||nr[Rt]){if(!nr[Rt]&&bo(Rt)&&(wt.tagNameCheck instanceof RegExp&&se(wt.tagNameCheck,Rt)||wt.tagNameCheck instanceof Function&&wt.tagNameCheck(Rt)))return!1;if(tr&&!un[Rt]){var Dr=De(Dt)||Dt.parentNode,kn=lt(Dt)||Dt.childNodes;if(kn&&Dr)for(var Jn=kn.length-1;Jn>=0;--Jn)Dr.insertBefore(qt(kn[Jn],!0),br(Dt))}return sa(Dt),!0}return Dt instanceof $t&&!function(Dt){var ve=De(Dt);(!ve||!ve.tagName)&&(ve={namespaceURI:Xn,tagName:"template"});var Rt=ye(Dt.tagName),Dr=ye(ve.tagName);return!!ta[Dt.namespaceURI]&&(Dt.namespaceURI===Gr?ve.namespaceURI===Ln?"svg"===Rt:ve.namespaceURI===Cr?"svg"===Rt&&("annotation-xml"===Dr||cn[Dr]):Boolean(Wi[Rt]):Dt.namespaceURI===Cr?ve.namespaceURI===Ln?"math"===Rt:ve.namespaceURI===Gr?"math"===Rt&&Yi[Dr]:Boolean(ra[Rt]):Dt.namespaceURI===Ln?!(ve.namespaceURI===Gr&&!Yi[Dr]||ve.namespaceURI===Cr&&!cn[Dr])&&!ra[Rt]&&(wi[Rt]||!Wi[Rt]):!("application/xhtml+xml"!==La||!ta[Dt.namespaceURI]))}(Dt)||("noscript"===Rt||"noembed"===Rt)&&se(/<\/no(script|embed)/i,Dt.innerHTML)?(sa(Dt),!0):(Yn&&3===Dt.nodeType&&(ve=ge(ve=Dt.textContent,ut," "),ve=ge(ve,nt," "),ve=ge(ve,Ht," "),Dt.textContent!==ve&&(de(qe.removed,{element:Dt.cloneNode()}),Dt.textContent=ve)),la("afterSanitizeElements",Dt,null),!1)},$i=function(Dt,ve,Rt){if(ie&&("id"===ve||"name"===ve)&&(Rt in et||Rt in po))return!1;if((!vn||tn[ve]||!se(pr,ve))&&(!rn||!se(Lr,ve)))if(!yr[ve]||tn[ve]){if(!(bo(Dt)&&(wt.tagNameCheck instanceof RegExp&&se(wt.tagNameCheck,Dt)||wt.tagNameCheck instanceof Function&&wt.tagNameCheck(Dt))&&(wt.attributeNameCheck instanceof RegExp&&se(wt.attributeNameCheck,ve)||wt.attributeNameCheck instanceof Function&&wt.attributeNameCheck(ve))||"is"===ve&&wt.allowCustomizedBuiltInElements&&(wt.tagNameCheck instanceof RegExp&&se(wt.tagNameCheck,Rt)||wt.tagNameCheck instanceof Function&&wt.tagNameCheck(Rt))))return!1}else if(!Ot[ve]&&!se(Wn,ge(Rt,Cn,""))&&("src"!==ve&&"xlink:href"!==ve&&"href"!==ve||"script"===Dt||0!==ue(Rt,"data:")||!Sr[Dt])&&(!Gn||se(Kr,ge(Rt,Cn,"")))&&Rt)return!1;return!0},bo=function(Dt){return Dt.indexOf("-")>0},Ga=function(Dt){var ve,Rt,Dr,kn;la("beforeSanitizeAttributes",Dt,null);var wn=Dt.attributes;if(wn){var Jn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:yr};for(kn=wn.length;kn--;){var Mn=(ve=wn[kn]).name,$n=ve.namespaceURI;if(Rt="value"===Mn?ve.value:ee(ve.value),Dr=bn(Mn),Jn.attrName=Dr,Jn.attrValue=Rt,Jn.keepAttr=!0,Jn.forceKeepAttr=void 0,la("uponSanitizeAttribute",Dt,Jn),Rt=Jn.attrValue,!Jn.forceKeepAttr&&(Ui(Mn,Dt),Jn.keepAttr)){if(se(/\/>/i,Rt)){Ui(Mn,Dt);continue}Yn&&(Rt=ge(Rt,ut," "),Rt=ge(Rt,nt," "),Rt=ge(Rt,Ht," "));var ia=bn(Dt.nodeName);if($i(ia,Dr,Rt)){if(Ve&&("id"===Dr||"name"===Dr)&&(Ui(Mn,Dt),Rt="user-content-"+Rt),U&&"object"===be(ar)&&"function"==typeof ar.getAttributeType&&!$n)switch(ar.getAttributeType(ia,Dr)){case"TrustedHTML":Rt=U.createHTML(Rt);break;case"TrustedScriptURL":Rt=U.createScriptURL(Rt)}try{$n?Dt.setAttributeNS($n,Mn,Rt):Dt.setAttribute(Mn,Rt),V(qe.removed)}catch{}}}}la("afterSanitizeAttributes",Dt,null)}},mi=function Ct(Dt){var ve,Rt=fa(Dt);for(la("beforeSanitizeShadowDOM",Dt,null);ve=Rt.nextNode();)la("uponSanitizeShadowNode",ve,null),!ho(ve)&&(ve.content instanceof ot&&Ct(ve.content),Ga(ve));la("afterSanitizeShadowDOM",Dt,null)};return qe.sanitize=function(Ct){var ve,Rt,Dr,kn,wn,Dt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ni=!Ct)&&(Ct="\x3c!--\x3e"),"string"!=typeof Ct&&!Fa(Ct)){if("function"!=typeof Ct.toString)throw W("toString is not a function");if("string"!=typeof(Ct=Ct.toString()))throw W("dirty is not a string, aborting")}if(!qe.isSupported){if("object"===be(fe.toStaticHTML)||"function"==typeof fe.toStaticHTML){if("string"==typeof Ct)return fe.toStaticHTML(Ct);if(Fa(Ct))return fe.toStaticHTML(Ct.outerHTML)}return Ct}if(Ti||Oa(Dt),qe.removed=[],"string"==typeof Ct&&(kr=!1),kr){if(Ct.nodeName){var Jn=bn(Ct.nodeName);if(!zn[Jn]||nr[Jn])throw W("root node is forbidden and cannot be sanitized in-place")}}else if(Ct instanceof pt)1===(Rt=(ve=na("\x3c!----\x3e")).ownerDocument.importNode(Ct,!0)).nodeType&&"BODY"===Rt.nodeName||"HTML"===Rt.nodeName?ve=Rt:ve.appendChild(Rt);else{if(!ci&&!Yn&&!Dn&&-1===Ct.indexOf("<"))return U&&Ar?U.createHTML(Ct):Ct;if(!(ve=na(Ct)))return ci?null:Ar?ne:""}ve&&Ni&&sa(ve.firstChild);for(var yn=fa(kr?Ct:ve);Dr=yn.nextNode();)3===Dr.nodeType&&Dr===kn||ho(Dr)||(Dr.content instanceof ot&&mi(Dr.content),Ga(Dr),kn=Dr);if(kn=null,kr)return Ct;if(ci){if(Kt)for(wn=Pt.call(ve.ownerDocument);ve.firstChild;)wn.appendChild(ve.firstChild);else wn=ve;return yr.shadowroot&&(wn=Jt.call($e,wn,!0)),wn}var Mn=Dn?ve.outerHTML:ve.innerHTML;return Dn&&zn["!doctype"]&&ve.ownerDocument&&ve.ownerDocument.doctype&&ve.ownerDocument.doctype.name&&se(S,ve.ownerDocument.doctype.name)&&(Mn="<!DOCTYPE "+ve.ownerDocument.doctype.name+">\n"+Mn),Yn&&(Mn=ge(Mn,ut," "),Mn=ge(Mn,nt," "),Mn=ge(Mn,Ht," ")),U&&Ar?U.createHTML(Mn):Mn},qe.setConfig=function(Ct){Oa(Ct),Ti=!0},qe.clearConfig=function(){ha=null,Ti=!1},qe.isValidAttribute=function(Ct,Dt,ve){ha||Oa({});var Rt=bn(Ct),Dr=bn(Dt);return $i(Rt,Dr,ve)},qe.addHook=function(Ct,Dt){"function"==typeof Dt&&(Me[Ct]=Me[Ct]||[],de(Me[Ct],Dt))},qe.removeHook=function(Ct){if(Me[Ct])return V(Me[Ct])},qe.removeHooks=function(Ct){Me[Ct]&&(Me[Ct]=[])},qe.removeAllHooks=function(){Me={}},qe}()}()},44097:St=>{"use strict";St.exports=function(s){for(var t=[],e=s.length,d=0;d<e;d++){var l=s.charCodeAt(d);if(l>=55296&&l<=56319&&e>d+1){var r=s.charCodeAt(d+1);r>=56320&&r<=57343&&(l=1024*(l-55296)+r-56320+65536,d+=1)}l<128?t.push(l):l<2048?(t.push(l>>6|192),t.push(63&l|128)):l<55296||l>=57344&&l<65536?(t.push(l>>12|224),t.push(l>>6&63|128),t.push(63&l|128)):l>=65536&&l<=1114111?(t.push(l>>18|240),t.push(l>>12&63|128),t.push(l>>6&63|128),t.push(63&l|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},15994:function(St,be){var t,d;(function(e,d,l,r){"use strict";function E(){return ye.isValid()}function C(){function Ne(U,ne,Re,Xe,Nt){var Pt,Vt,Jt,kt,Me,ut,nt;for(-1>(Jt=ne-U)&&(Jt=-1),(kt=ne+U)>ke&&(kt=ke),Pt=ne+1,Vt=ne-1,ut=1;kt>Pt||Vt>Jt;){if(Me=De[ut++],kt>Pt){nt=Se[Pt++];try{nt[0]-=Me*(nt[0]-Re)/vt|0,nt[1]-=Me*(nt[1]-Xe)/vt|0,nt[2]-=Me*(nt[2]-Nt)/vt|0}catch{}}if(Vt>Jt){nt=Se[Vt--];try{nt[0]-=Me*(nt[0]-Re)/vt|0,nt[1]-=Me*(nt[1]-Xe)/vt|0,nt[2]-=Me*(nt[2]-Nt)/vt|0}catch{}}}}function tt(U,ne,Re,Xe,Nt){var Pt=Se[ne],Vt=U/yt;Pt[0]-=Vt*(Pt[0]-Re)|0,Pt[1]-=Vt*(Pt[1]-Xe)|0,Pt[2]-=Vt*(Pt[2]-Nt)|0}function We(U,ne,Re){var Xe,Nt,Pt,Vt,Jt,kt,Me,ut,nt,Ht;for(nt=ut=~(1<<31),Me=kt=-1,Xe=0;ke>Xe;Xe++)0>(Nt=(Ht=Se[Xe])[0]-U)&&(Nt=-Nt),0>(Pt=Ht[1]-ne)&&(Pt=-Pt),Nt+=Pt,0>(Pt=Ht[2]-Re)&&(Pt=-Pt),ut>(Nt+=Pt)&&(ut=Nt,kt=Xe),nt>(Vt=Nt-(br[Xe]>>B-K))&&(nt=Vt,Me=Xe),lt[Xe]-=Jt=lt[Xe]>>qe,br[Xe]+=Jt<<fe;return lt[kt]+=$e,br[kt]-=et,Me}var ze,we,Ye,te,Se,ke=256,S=ke-1,K=4,B=16,re=1<<B,fe=10,qe=10,$e=re>>qe,et=re<<fe-qe,$t=64*(ke>>3),yt=1024,vt=1<<18,qt=[],br=[],lt=[],De=[];return function Z(U,ne,Re){var Xe,Nt;for(we=U,Ye=ne,te=Re,Se=new Array(ke),Xe=0;ke>Xe;Xe++)Se[Xe]=new Array(4),(Nt=Se[Xe])[0]=Nt[1]=Nt[2]=(Xe<<K+8)/ke|0,lt[Xe]=re/ke|0,br[Xe]=0}.apply(this,arguments),{map:function x(U,ne,Re){var Xe,Nt,Pt,Vt,Jt,kt,Me;for(Jt=1e3,Me=-1,Nt=(Xe=qt[ne])-1;ke>Xe||Nt>=0;)ke>Xe&&((Pt=(kt=Se[Xe])[1]-ne)>=Jt?Xe=ke:(Xe++,0>Pt&&(Pt=-Pt),0>(Vt=kt[0]-U)&&(Vt=-Vt),Jt>(Pt+=Vt)&&(0>(Vt=kt[2]-Re)&&(Vt=-Vt),Jt>(Pt+=Vt)&&(Jt=Pt,Me=kt[3])))),Nt>=0&&((Pt=ne-(kt=Se[Nt])[1])>=Jt?Nt=-1:(Nt--,0>Pt&&(Pt=-Pt),0>(Vt=kt[0]-U)&&(Vt=-Vt),Jt>(Pt+=Vt)&&(0>(Vt=kt[2]-Re)&&(Vt=-Vt),Jt>(Pt+=Vt)&&(Jt=Pt,Me=kt[3]))));return Me},process:function z(){return function k(){var U,ne,Re,Xe,Nt,Pt,Vt,Jt,kt,Me,ut,nt,Ht,pr;for(1509>Ye&&(te=1),ze=30+(te-1)/3,nt=we,Ht=0,pr=Ye,Me=(ut=Ye/(3*te))/100|0,Jt=yt,1>=(Vt=(Pt=$t)>>6)&&(Vt=0),U=0;Vt>U;U++)De[U]=Jt*(256*(Vt*Vt-U*U)/(Vt*Vt));for(kt=1509>Ye?3:Ye%499!=0?1497:Ye%491!=0?1473:Ye%487!=0?1461:1509,U=0;ut>U;)if(tt(Jt,ne=We(Re=(255&nt[Ht+0])<<K,Xe=(255&nt[Ht+1])<<K,Nt=(255&nt[Ht+2])<<K),Re,Xe,Nt),0!==Vt&&Ne(Vt,ne,Re,Xe,Nt),(Ht+=kt)>=pr&&(Ht-=Ye),0===Me&&(Me=1),++U%Me==0)for(Jt-=Jt/ze,1>=(Vt=(Pt-=Pt/30)>>6)&&(Vt=0),ne=0;Vt>ne;ne++)De[ne]=Jt*(256*(Vt*Vt-ne*ne)/(Vt*Vt))}(),function j(){var U;for(U=0;ke>U;U++)Se[U][0]>>=K,Se[U][1]>>=K,Se[U][2]>>=K,Se[U][3]=U}(),function w(){var U,ne,Re,Xe,Nt,Pt,Vt,Jt;for(Vt=0,Jt=0,U=0;ke>U;U++){for(Re=U,Xe=(Nt=Se[U])[1],ne=U+1;ke>ne;ne++)(Pt=Se[ne])[1]<Xe&&(Re=ne,Xe=Pt[1]);if(Pt=Se[Re],U!=Re&&(ne=Pt[0],Pt[0]=Nt[0],Nt[0]=ne,ne=Pt[1],Pt[1]=Nt[1],Nt[1]=ne,ne=Pt[2],Pt[2]=Nt[2],Nt[2]=ne,ne=Pt[3],Pt[3]=Nt[3],Nt[3]=ne),Xe!=Vt){for(qt[Vt]=Jt+U>>1,ne=Vt+1;Xe>ne;ne++)qt[ne]=U;Vt=Xe,Jt=U}}for(qt[Vt]=Jt+S>>1,ne=Vt+1;256>ne;ne++)qt[ne]=S}(),function Te(){for(var U=[],ne=new Array(ke),Re=0;ke>Re;Re++)ne[Se[Re][3]]=Re;for(var Xe=0,Nt=0;ke>Nt;Nt++){var Pt=ne[Nt];U[Xe++]=Se[Pt][0],U[Xe++]=Se[Pt][1],U[Xe++]=Se[Pt][2]}return U}()}}}function n(){try{this.onmessage=function(w){var k,x=w.data||{};x.gifshot&&(k=Te.run(x),postMessage(k))}}catch{}var Te={dataToRGB:function(w,k,x){for(var z=k*x*4,j=0,Ne=[];z>j;)Ne.push(w[j++]),Ne.push(w[j++]),Ne.push(w[j++]),j++;return Ne},componentizedPaletteToArray:function(w){w=w||[];for(var k=[],x=0;x<w.length;x+=3)k.push(w[x]<<16|w[x+1]<<8|w[x+2]);return k},processFrameWithQuantizer:function(w,k,x,z){for(var j=this.dataToRGB(w,k,x),Ne=new C(j,j.length,z),tt=Ne.process(),We=new Uint32Array(this.componentizedPaletteToArray(tt)),ze=k*x,we=new Uint8Array(ze),Ye=0,te=0;ze>te;te++){var Se=j[Ye++],ke=j[Ye++],Ge=j[Ye++];we[te]=Ne.map(Se,ke,Ge)}return{pixels:we,palette:We}},run:function(w){var k=w=w||{};return this.processFrameWithQuantizer(w.data,k.width,k.height,k.sampleInterval)}};return Te}function i(Z,Te,w,k){var j=0,Ne=(k=k===r?{}:k).loop===r?null:k.loop,tt=k.palette===r?null:k.palette;if(0>=Te||0>=w||Te>65535||w>65535)throw"Width/Height invalid.";if(Z[j++]=71,Z[j++]=73,Z[j++]=70,Z[j++]=56,Z[j++]=57,Z[j++]=97,Z[j++]=255&Te,Z[j++]=Te>>8&255,Z[j++]=255&w,Z[j++]=w>>8&255,Z[j++]=0|(null!==tt?128:0),Z[j++]=0,Z[j++]=0,null!==Ne){if(0>Ne||Ne>65535)throw"Loop count invalid.";Z[j++]=33,Z[j++]=255,Z[j++]=11,Z[j++]=78,Z[j++]=69,Z[j++]=84,Z[j++]=83,Z[j++]=67,Z[j++]=65,Z[j++]=80,Z[j++]=69,Z[j++]=50,Z[j++]=46,Z[j++]=48,Z[j++]=3,Z[j++]=1,Z[j++]=255&Ne,Z[j++]=Ne>>8&255,Z[j++]=0}var we=!1;this.addFrame=function(Ye,te,Se,ke,Ge,Tt){if(!0===we&&(--j,we=!1),0>Ye||0>te||Ye>65535||te>65535)throw"x/y invalid.";if(0>=Se||0>=ke||Se>65535||ke>65535)throw"Width/Height invalid.";if(Ge.length<Se*ke)throw"Not enough pixels for the frame size.";var Et=!0,H=(Tt=Tt===r?{}:Tt).palette;if((H===r||null===H)&&(Et=!1,H=tt),H===r||null===H)throw"Must supply either a local or global palette.";for(var Y=function x(Ye){var te=Ye.length;if(2>te||te>256||te&te-1)throw"Invalid code/color length, must be power of 2 and 2 .. 256.";return te}(H),S=0;Y>>=1;)++S;Y=1<<S;var K=Tt.delay===r?0:Tt.delay,Q=Tt.disposal===r?0:Tt.disposal;if(0>Q||Q>3)throw"Disposal out of range.";var B=!1,re=0;if(Tt.transparent!==r&&null!==Tt.transparent&&(B=!0,0>(re=Tt.transparent)||re>=Y))throw"Transparent color index.";if((0!==Q||B||0!==K)&&(Z[j++]=33,Z[j++]=249,Z[j++]=4,Z[j++]=Q<<2|(!0===B?1:0),Z[j++]=255&K,Z[j++]=K>>8&255,Z[j++]=re,Z[j++]=0),Z[j++]=44,Z[j++]=255&Ye,Z[j++]=Ye>>8&255,Z[j++]=255&te,Z[j++]=te>>8&255,Z[j++]=255&Se,Z[j++]=Se>>8&255,Z[j++]=255&ke,Z[j++]=ke>>8&255,Z[j++]=!0===Et?128|S-1:0,!0===Et)for(var fe=0,qe=H.length;qe>fe;++fe){var $e=H[fe];Z[j++]=$e>>16&255,Z[j++]=$e>>8&255,Z[j++]=255&$e}j=function z(Ye,te,Se,ke){function Ge($t){for(;B>=$t;)Ye[te++]=255&re,re>>=8,B-=8,te===Et+256&&(Ye[Et]=255,Et=te++)}function Tt($t){re|=$t<<B,B+=Q,Ge(8)}Ye[te++]=Se;var Et=te++,H=1<<Se,Y=H-1,S=H+1,K=S+1,Q=Se+1,B=0,re=0,fe=ke[0]&Y,qe={};Tt(H);for(var $e=1,et=ke.length;et>$e;++$e){var ot=ke[$e]&Y,ct=fe<<8|ot,pt=qe[ct];if(pt===r){for(re|=fe<<B,B+=Q;B>=8;)Ye[te++]=255&re,re>>=8,B-=8,te===Et+256&&(Ye[Et]=255,Et=te++);4096===K?(Tt(H),K=S+1,Q=Se+1,qe={}):(K>=1<<Q&&++Q,qe[ct]=K++),fe=ot}else fe=pt}return Tt(fe),Tt(S),Ge(1),Et+1===te?Ye[Et]=0:(Ye[Et]=te-Et-1,Ye[te++]=0),te}(Z,j,2>S?2:S,Ge)},this.end=function(){return!1===we&&(Z[j++]=59,we=!0),j}}function q(Z){Z=V.isObject(Z)?Z:{},he.stopVideoStreaming(Z)}function D(Z,Te){var w=Z.options||{},k=w.images,x=w.video,z=Number(w.gifWidth),j=Number(w.gifHeight),Ne=(Number(w.numFrames),Z.cameraStream),tt=Z.videoElement,We=Z.videoWidth,ze=Z.videoHeight,we=L.getCropDimensions({videoWidth:We,videoHeight:ze,gifHeight:j,gifWidth:z}),Ye=Te;w.crop=we,w.videoElement=tt,w.videoWidth=We,w.videoHeight=ze,w.cameraStream=Ne,V.isElement(tt)&&(tt.width=z+we.width,tt.height=j+we.height,w.webcamVideoElement||(V.setCSSAttr(tt,{position:"fixed",opacity:"0"}),d.body.appendChild(tt)),tt.play(),L.getGIF(w,function(te){k&&k.length||x&&x.length||q(te),Ye(te)}))}function F(Z,Te){if(Te=V.isFunction(Z)?Z:Te,Z=V.isObject(Z)?Z:{},V.isFunction(Te)){var w=V.mergeOptions(ge,Z)||{},k=Z.cameraStream,x=w.images,z=x?x.length:0,j=w.video,Ne=w.webcamVideoElement;w=V.mergeOptions(w,{gifWidth:Math.floor(w.gifWidth),gifHeight:Math.floor(w.gifHeight)}),z?function I(){function Z(){V.each(tt,function(Ye,te){te&&(te.text?we.addFrame(te.img,x,te.text):we.addFrame(te,x))}),function P(Z,Te){Z.getBase64GIF(function(w){Te({error:!1,errorCode:"",errorMsg:"",image:w})})}(we,w)}var Te=arguments.length>0&&arguments[0]!==r?arguments[0]:{},w=Te.callback,k=Te.images,x=Te.options,z=Te.imagesLength,Ne=ye.validate({getUserMedia:!0,"window.URL":!0}),tt=[],We=0,ze=void 0,we=void 0;Ne.error?w(Ne):(we=new se(x),V.each(k,function(Ye,te){var ke,Se=te;te.src&&(Se=Se.src),V.isElement(Se)?(x.crossOrigin&&(Se.crossOrigin=x.crossOrigin),tt[Ye]=Se,(We+=1)===z&&Z()):V.isString(Se)&&(ze=new Image,x.crossOrigin&&(ze.crossOrigin=x.crossOrigin),ke=ze,te.text&&(ke.text=te.text),ke.onerror=function(){var Ge=void 0;return 0==--z?((Ge={}).error="None of the requested images was capable of being retrieved",w(Ge)):void 0},ke.onload=function(){tt[Ye]=te.text?{img:ke,text:ke.text}:ke,(We+=1)===z&&Z(),V.removeElement(ke)},ke.src=Se,V.setCSSAttr(ze,{position:"fixed",opacity:"0"}),d.body.appendChild(ze))}))}({images:x,imagesLength:z,callback:Te,options:w}):j?function M(){var Z=arguments.length>0&&arguments[0]!==r?arguments[0]:{},Te=Z.callback,w=Z.existingVideo,k=Z.options,z=ye.validate({getUserMedia:!0,"window.URL":!0}),j=void 0;if(z.error)return Te(z);if(V.isElement(w)&&w.src){if(j=V.getExtension(w.src),!V.isSupported.videoCodecs[j])return Te(ye.messages.videoCodecs)}else V.isArray(w)&&V.each(w,function(tt,We){return j=We instanceof Blob?We.type.substr(We.type.lastIndexOf("/")+1,We.length):We.substr(We.lastIndexOf(".")+1,We.length),V.isSupported.videoCodecs[j]?(w=We,!1):void 0});he.startStreaming({completed:function(tt){tt.options=k||{},D(tt,Te)},existingVideo:w,crossOrigin:k.crossOrigin,options:k})}({existingVideo:j,callback:Te,options:w}):function T(){var Z=arguments.length>0&&arguments[0]!==r?arguments[0]:{},Te=Z.callback,w=Z.lastCameraStream,k=Z.options,x=Z.webcamVideoElement;E()?k.savedRenderingContexts.length?L.getGIF(k,function(z){Te(z)}):he.startVideoStreaming(function(){var z=arguments.length>0&&arguments[0]!==r?arguments[0]:{};z.options=k||{},D(z,Te)},{lastCameraStream:w,callback:Te,webcamVideoElement:x,crossOrigin:k.crossOrigin}):Te(ye.validate())}({lastCameraStream:k,callback:Te,webcamVideoElement:Ne,options:w})}}var Z,V={URL:e.URL||e.webkitURL||e.mozURL||e.msURL,getUserMedia:(Z=l.getUserMedia||l.webkitGetUserMedia||l.mozGetUserMedia||l.msGetUserMedia,Z&&Z.bind(l)),requestAnimFrame:e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame,requestTimeout:function(Z,Te){if(Z=Z||V.noop,Te=Te||0,!V.requestAnimFrame)return setTimeout(Z,Te);var w=(new Date).getTime(),k=new Object,x=V.requestAnimFrame;return k.value=x(function j(){(new Date).getTime()-w>=Te?Z.call():k.value=x(j)}),k},Blob:e.Blob||e.BlobBuilder||e.WebKitBlobBuilder||e.MozBlobBuilder||e.MSBlobBuilder,btoa:function(){var Z=e.btoa||function(Te){for(var w="",k=0,x=Te.length,z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",j=void 0,Ne=void 0,tt=void 0,We=void 0,ze=void 0,we=void 0,Ye=void 0;x>k;)We=(j=Te.charCodeAt(k++))>>2,ze=(3&j)<<4|(Ne=Te.charCodeAt(k++))>>4,we=(15&Ne)<<2|(tt=Te.charCodeAt(k++))>>6,Ye=63&tt,isNaN(Ne)?we=Ye=64:isNaN(tt)&&(Ye=64),w=w+z.charAt(We)+z.charAt(ze)+z.charAt(we)+z.charAt(Ye);return w};return Z?Z.bind(e):V.noop}(),isObject:function(Z){return Z&&"[object Object]"===Object.prototype.toString.call(Z)},isEmptyObject:function(Z){return V.isObject(Z)&&!Object.keys(Z).length},isArray:function(Z){return Z&&Array.isArray(Z)},isFunction:function(Z){return Z&&"function"==typeof Z},isElement:function(Z){return Z&&1===Z.nodeType},isString:function(Z){return"string"==typeof Z||"[object String]"===Object.prototype.toString.call(Z)},isSupported:{canvas:function(){var Z=d.createElement("canvas");return Z&&Z.getContext&&Z.getContext("2d")},webworkers:function(){return e.Worker},blob:function(){return V.Blob},Uint8Array:function(){return e.Uint8Array},Uint32Array:function(){return e.Uint32Array},videoCodecs:function(){var Z=d.createElement("video"),Te={mp4:!1,h264:!1,ogv:!1,ogg:!1,webm:!1};try{Z&&Z.canPlayType&&(Te.mp4=""!==Z.canPlayType('video/mp4; codecs="mp4v.20.8"'),Te.h264=""!==(Z.canPlayType('video/mp4; codecs="avc1.42E01E"')||Z.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"')),Te.ogv=""!==Z.canPlayType('video/ogg; codecs="theora"'),Te.ogg=""!==Z.canPlayType('video/ogg; codecs="theora"'),Te.webm=-1!==Z.canPlayType('video/webm; codecs="vp8, vorbis"'))}catch{}return Te}()},noop:function(){},each:function(Z,Te){var w=void 0,k=void 0;if(V.isArray(Z))for(w=-1,k=Z.length;++w<k&&!1!==Te(w,Z[w]););else if(V.isObject(Z))for(w in Z)if(Z.hasOwnProperty(w)&&!1===Te(w,Z[w]))break},mergeOptions:function(Z,Te){if(V.isObject(Z)&&V.isObject(Te)&&Object.keys){var w={};return V.each(Z,function(k){w[k]=Z[k]}),V.each(Te,function(k){var x=Te[k];w[k]=V.isObject(x)&&Z[k]?V.mergeOptions(Z[k],x):x}),w}},setCSSAttr:function(Z,Te,w){V.isElement(Z)&&(V.isString(Te)&&V.isString(w)?Z.style[Te]=w:V.isObject(Te)&&V.each(Te,function(k,x){Z.style[k]=x}))},removeElement:function(Z){V.isElement(Z)&&Z.parentNode&&Z.parentNode.removeChild(Z)},createWebWorker:function(Z){if(!V.isString(Z))return{};try{var Te=new V.Blob([Z],{type:"text/javascript"}),w=V.URL.createObjectURL(Te);return{objectUrl:w,worker:new Worker(w)}}catch(x){return""+x}},getExtension:function(Z){return Z.substr(Z.lastIndexOf(".")+1,Z.length)},getFontSize:function(){var Z=arguments.length>0&&arguments[0]!==r?arguments[0]:{};if(!d.body||!1===Z.resizeFont)return Z.fontSize;var Te=Z.text,w=Z.gifWidth,k=parseInt(Z.fontSize,10),x=parseInt(Z.minFontSize,10),z=d.createElement("div"),j=d.createElement("span");for(z.setAttribute("width",w),z.appendChild(j),j.innerHTML=Te,j.style.fontSize=k+"px",j.style.textIndent="-9999px",j.style.visibility="hidden",d.body.appendChild(j);j.offsetWidth>w&&k>=x;)j.style.fontSize=--k+"px";return d.body.removeChild(j),k+"px"},webWorkerError:!1},de=Object.freeze({default:V}),ye={validate:function(Z){Z=V.isObject(Z)?Z:{};var Te={};return V.each(ye.validators,function(w,k){return Z[k.errorCode]||k.condition?void 0:((Te=k).error=!0,!1)}),delete Te.condition,Te},isValid:function(Te){return!0!==ye.validate(Te).error},validators:[{condition:V.isFunction(V.getUserMedia),errorCode:"getUserMedia",errorMsg:"The getUserMedia API is not supported in your browser"},{condition:V.isSupported.canvas(),errorCode:"canvas",errorMsg:"Canvas elements are not supported in your browser"},{condition:V.isSupported.webworkers(),errorCode:"webworkers",errorMsg:"The Web Workers API is not supported in your browser"},{condition:V.isFunction(V.URL),errorCode:"window.URL",errorMsg:"The window.URL API is not supported in your browser"},{condition:V.isSupported.blob(),errorCode:"window.Blob",errorMsg:"The window.Blob File API is not supported in your browser"},{condition:V.isSupported.Uint8Array(),errorCode:"window.Uint8Array",errorMsg:"The window.Uint8Array function constructor is not supported in your browser"},{condition:V.isSupported.Uint32Array(),errorCode:"window.Uint32Array",errorMsg:"The window.Uint32Array function constructor is not supported in your browser"}],messages:{videoCodecs:{errorCode:"videocodec",errorMsg:"The video codec you are trying to use is not supported in your browser"}}},Ee=Object.freeze({default:ye}),Le=function(){},ge={sampleInterval:10,numWorkers:2,filter:"",gifWidth:200,gifHeight:200,interval:.1,numFrames:10,frameDuration:1,keepCameraOn:!1,images:[],video:null,webcamVideoElement:null,cameraStream:null,text:"",fontWeight:"normal",fontSize:"16px",minFontSize:"10px",resizeFont:!1,fontFamily:"sans-serif",fontColor:"#ffffff",textAlign:"center",textBaseline:"bottom",textXCoordinate:null,textYCoordinate:null,progressCallback:Le,completeCallback:Le,saveRenderingContexts:!1,savedRenderingContexts:[],showFrameText:!0,crossOrigin:"Anonymous",waterMark:null,waterMarkHeight:null,waterMarkWidth:null,waterMarkXCoordinate:1,waterMarkYCoordinate:1},ue=Object.freeze({default:ge}),ee=function(){},se=function(Z){this.canvas=null,this.ctx=null,this.repeat=0,this.frames=[],this.numRenderedFrames=0,this.onRenderCompleteCallback=ee,this.onRenderProgressCallback=ee,this.workers=[],this.availableWorkers=[],this.generatingGIF=!1,this.options=Z,this.initializeWebWorkers(Z)};se.prototype={workerMethods:n(),initializeWebWorkers:function(Z){var j,w=C.toString()+"("+n.toString()+"());",k=void 0,z=void 0,Ne=-1,tt="";for(j=Z.numWorkers;++Ne<j;)k=V.createWebWorker(w),V.isObject(k)?(this.workers.push({worker:z=k.worker,objectUrl:k.objectUrl}),this.availableWorkers.push(z)):(tt=k,V.webWorkerError=!!k);this.workerError=tt,this.canvas=d.createElement("canvas"),this.canvas.width=Z.gifWidth,this.canvas.height=Z.gifHeight,this.ctx=this.canvas.getContext("2d"),this.frames=[]},getWorker:function(){return this.availableWorkers.pop()},freeWorker:function(Z){this.availableWorkers.push(Z)},byteMap:function(){for(var Z=[],Te=0;256>Te;Te++)Z[Te]=String.fromCharCode(Te);return Z}(),bufferToString:function(Z){for(var Te=Z.length,w="",k=-1;++k<Te;)w+=this.byteMap[Z[k]];return w},onFrameFinished:function(Z){var Te=this,w=Te.frames,x=!!(Te.options.images||[]).length,z=w.every(function(j){return!j.beingProcessed&&j.done});Te.numRenderedFrames++,x&&Z(Te.numRenderedFrames/w.length),Te.onRenderProgressCallback(.75*Te.numRenderedFrames/w.length),z?Te.generatingGIF||Te.generateGIF(w,Te.onRenderCompleteCallback):V.requestTimeout(function(){Te.processNextFrame()},1)},processFrame:function(Z){var Te=this,w=this.options,k=w.progressCallback,x=w.sampleInterval,j=void 0,Ne=void 0,tt=function(){var ze=(arguments.length>0&&arguments[0]!==r?arguments[0]:{}).data;delete j.data,j.pixels=Array.prototype.slice.call(ze.pixels),j.palette=Array.prototype.slice.call(ze.palette),j.done=!0,j.beingProcessed=!1,Te.freeWorker(Ne),Te.onFrameFinished(k)};return(j=this.frames[Z]).beingProcessed||j.done?void this.onFrameFinished():(j.sampleInterval=x,j.beingProcessed=!0,j.gifshot=!0,void((Ne=this.getWorker())?(Ne.onmessage=tt,Ne.postMessage(j)):tt({data:Te.workerMethods.run(j)})))},startRendering:function(Z){this.onRenderCompleteCallback=Z;for(var Te=0;Te<this.options.numWorkers&&Te<this.frames.length;Te++)this.processFrame(Te)},processNextFrame:function(){for(var Z=-1,Te=0;Te<this.frames.length;Te++){var w=this.frames[Te];if(!w.done&&!w.beingProcessed){Z=Te;break}}Z>=0&&this.processFrame(Z)},generateGIF:function(Z,Te){var w=[],x=this.options,z=x.interval,j=x.frameDuration,tt=!!x.images.length,We=x.gifHeight,ze=x.gifWidth,we=new i(w,ze,We,{loop:this.repeat}),Ye=this.onRenderProgressCallback,te=tt?100*z:0,Se=void 0;this.generatingGIF=!0,V.each(Z,function(Ge,Tt){var Et=Tt.palette;Ye(.75+.25*Tt.position*1/Z.length);for(var H=0;j>H;H++)we.addFrame(0,0,ze,We,Tt.pixels,{palette:Et,delay:te})}),we.end(),Ye(1),this.frames=[],this.generatingGIF=!1,V.isFunction(Te)&&(Se=this.bufferToString(w),Te("data:image/gif;base64,"+V.btoa(Se)))},setRepeat:function(Z){this.repeat=Z},addFrame:function(Z,Te,w){Te=V.isObject(Te)?Te:{};var k=this,x=k.ctx,z=k.options,j=z.gifWidth,Ne=z.gifHeight,tt=V.getFontSize(Te),ze=Te.filter,we=Te.fontColor,ke=Te.textAlign,Ge=Te.textBaseline,Tt=Te.waterMark,Et=Te.waterMarkHeight,H=Te.waterMarkWidth,Y=Te.waterMarkXCoordinate,S=Te.waterMarkYCoordinate,K=Te.textXCoordinate?Te.textXCoordinate:"left"===ke?1:"right"===ke?j:j/2,Q=Te.textYCoordinate?Te.textYCoordinate:"top"===Ge?1:"center"===Ge?Ne/2:Ne,B=Te.fontWeight+" "+tt+" "+Te.fontFamily,re=w&&Te.showFrameText?w:Te.text,fe=void 0;try{x.filter=ze,x.drawImage(Z,0,0,j,Ne),re&&(x.font=B,x.fillStyle=we,x.textAlign=ke,x.textBaseline=Ge,x.fillText(re,K,Q)),Tt&&x.drawImage(Tt,Y,S,H,Et),fe=x.getImageData(0,0,j,Ne),k.addFrameImageData(fe)}catch(qe){return""+qe}},addFrameImageData:function(){var Z=arguments.length>0&&arguments[0]!==r?arguments[0]:{};this.frames.push({data:Z.data,width:Z.width,height:Z.height,palette:null,dithering:null,done:!1,beingProcessed:!1,position:this.frames.length})},onRenderProgress:function(Z){this.onRenderProgressCallback=Z},isRendering:function(){return this.generatingGIF},getBase64GIF:function(Z){var Te=this;Te.startRendering(function(k){Te.destroyWorkers(),V.requestTimeout(function(){Z(k)},0)})},destroyWorkers:function(){this.workerError||V.each(this.workers,function(Te,w){var x=w.objectUrl;w.worker.terminate(),V.URL.revokeObjectURL(x)})}};var W=function(){},L={getGIF:function(){var Z=arguments.length>0&&arguments[0]!==r?arguments[0]:{},Te=arguments[1];Te=V.isFunction(Te)?Te:W;var w=d.createElement("canvas"),k=void 0,z=!!Z.images.length,j=Z.cameraStream,Ne=Z.crop,tt=Z.filter,We=Z.fontColor,ze=Z.fontFamily,we=Z.fontWeight,Ye=Z.keepCameraOn,te=Z.progressCallback,Se=Z.saveRenderingContexts,ke=Z.savedRenderingContexts,Ge=Z.text,Tt=Z.textAlign,Et=Z.textBaseline,H=Z.videoElement,Y=Z.videoHeight,S=Z.videoWidth,K=Z.webcamVideoElement,Q=Z.waterMark,B=Z.waterMarkHeight,re=Z.waterMarkWidth,fe=Z.waterMarkXCoordinate,qe=Z.waterMarkYCoordinate,$e=Number(Z.gifWidth),et=Number(Z.gifHeight),ot=Number(Z.interval),ct=(Number(Z.sampleInterval),z?0:1e3*ot),pt=[],$t=ke.length?ke.length:Z.numFrames,It=$t,fr=new se(Z),yt=V.getFontSize(Z),dr=Z.textXCoordinate?Z.textXCoordinate:"left"===Tt?1:"right"===Tt?$e:$e/2,bt=Z.textYCoordinate?Z.textYCoordinate:"top"===Et?1:"center"===Et?et/2:et,ar=we+" "+yt+" "+ze,vt=Ne?Math.floor(Ne.scaledWidth/2):0,qt=Ne?S-Ne.scaledWidth:0,br=Ne?Math.floor(Ne.scaledHeight/2):0,lt=Ne?Y-Ne.scaledHeight:0;$t=$t!==r?$t:10,ot=ot!==r?ot:.1,w.width=$e,w.height=et,k=w.getContext("2d"),function G(){return ke.length||0!==H.currentTime?void function G(){function ne(){var Xe;Se&&pt.push(k.getImageData(0,0,$e,et)),Q&&k.drawImage(Q,fe,qe,re,B),Ge&&(k.font=ar,k.fillStyle=We,k.textAlign=Tt,k.textBaseline=Et,k.fillText(Ge,dr,bt)),Xe=k.getImageData(0,0,$e,et),fr.addFrameImageData(Xe),te(($t-(It=Re))/$t),Re>0&&V.requestTimeout(G,ct),It||fr.getBase64GIF(function(Nt){Te({error:!1,errorCode:"",errorMsg:"",image:Nt,cameraStream:j,videoElement:H,webcamVideoElement:K,savedRenderingContexts:pt,keepCameraOn:Ye})})}var Re=It-1;ke.length?(k.putImageData(ke[$t-It],0,0),ne()):function U(){try{qt>S&&(qt=S),lt>Y&&(lt=Y),0>vt&&(vt=0),0>br&&(br=0),k.filter=tt,k.drawImage(H,vt,br,qt,lt,0,0,$e,et),ne()}catch(Xe){if("NS_ERROR_NOT_AVAILABLE"!==Xe.name)throw Xe;V.requestTimeout(U,100)}}()}():void V.requestTimeout(G,100)}()},getCropDimensions:function(){var Z=arguments.length>0&&arguments[0]!==r?arguments[0]:{},Te=Z.videoWidth,w=Z.videoHeight,k=Z.gifWidth,x=Z.gifHeight,z={width:0,height:0,scaledWidth:0,scaledHeight:0};return Te>w?(z.width=Math.round(Te*(x/w))-k,z.scaledWidth=Math.round(z.width*(w/x))):(z.height=Math.round(w*(k/Te))-x,z.scaledHeight=Math.round(z.height*(Te/k))),z}},he={loadedData:!1,defaultVideoDimensions:{width:640,height:480},findVideoSize:function Z(Te){Z.attempts=Z.attempts||0;var w=Te.cameraStream,k=Te.completedCallback,x=Te.videoElement;x&&(x.videoWidth>0&&x.videoHeight>0?(x.removeEventListener("loadeddata",he.findVideoSize),k({videoElement:x,cameraStream:w,videoWidth:x.videoWidth,videoHeight:x.videoHeight})):Z.attempts<10?(Z.attempts+=1,V.requestTimeout(function(){he.findVideoSize(Te)},400)):k({videoElement:x,cameraStream:w,videoWidth:he.defaultVideoDimensions.width,videoHeight:he.defaultVideoDimensions.height}))},onStreamingTimeout:function(Z){V.isFunction(Z)&&Z({error:!0,errorCode:"getUserMedia",errorMsg:"There was an issue with the getUserMedia API - Timed out while trying to start streaming",image:null,cameraStream:{}})},stream:function(Z){var Te=V.isArray(Z.existingVideo)?Z.existingVideo[0]:Z.existingVideo,w=Z.cameraStream,k=Z.completedCallback,x=Z.streamedCallback,z=Z.videoElement;if(V.isFunction(x)&&x(),Te){if(V.isString(Te))z.src=Te,z.innerHTML='<source src="'+Te+'" type="video/'+V.getExtension(Te)+'" />';else if(Te instanceof Blob){try{z.src=V.URL.createObjectURL(Te)}catch{}z.innerHTML='<source src="'+Te+'" type="'+Te.type+'" />'}}else if(z.mozSrcObject)z.mozSrcObject=w;else if(V.URL)try{z.srcObject=w,z.src=V.URL.createObjectURL(w)}catch{z.srcObject=w}z.play(),V.requestTimeout(function j(){j.count=j.count||0,!0===he.loadedData?(he.findVideoSize({videoElement:z,cameraStream:w,completedCallback:k}),he.loadedData=!1):(j.count+=1)>10?he.findVideoSize({videoElement:z,cameraStream:w,completedCallback:k}):j()},0)},startStreaming:function(Z){var Te=V.isFunction(Z.error)?Z.error:V.noop,w=V.isFunction(Z.streamed)?Z.streamed:V.noop,k=V.isFunction(Z.completed)?Z.completed:V.noop,x=Z.crossOrigin,z=Z.existingVideo,j=Z.lastCameraStream,Ne=Z.options,tt=Z.webcamVideoElement,We=V.isElement(z)?z:tt||d.createElement("video");x&&(We.crossOrigin=Ne.crossOrigin),We.autoplay=!0,We.loop=!0,We.muted=!0,We.addEventListener("loadeddata",function(){he.loadedData=!0,Ne.offset&&(We.currentTime=Ne.offset)}),z?he.stream({videoElement:We,existingVideo:z,completedCallback:k}):j?he.stream({videoElement:We,cameraStream:j,streamedCallback:w,completedCallback:k}):V.getUserMedia({video:!0},function(ze){he.stream({videoElement:We,cameraStream:ze,streamedCallback:w,completedCallback:k})},Te)},startVideoStreaming:function(Z){var Te=arguments.length>1&&arguments[1]!==r?arguments[1]:{},k=Te.callback,x=Te.webcamVideoElement,z=void 0;(Te.timeout!==r?Te.timeout:0)>0&&(z=V.requestTimeout(function(){he.onStreamingTimeout(k)},1e4)),he.startStreaming({error:function(){k({error:!0,errorCode:"getUserMedia",errorMsg:"There was an issue with the getUserMedia API - the user probably denied permission",image:null,cameraStream:{}})},streamed:function(){clearTimeout(z)},completed:function(){var j=arguments.length>0&&arguments[0]!==r?arguments[0]:{};Z({cameraStream:j.cameraStream,videoElement:j.videoElement,videoHeight:j.videoHeight,videoWidth:j.videoWidth})},lastCameraStream:Te.lastCameraStream,webcamVideoElement:x,crossOrigin:Te.crossOrigin,options:Te})},stopVideoStreaming:function(Z){var w=(Z=V.isObject(Z)?Z:{}).keepCameraOn,k=Z.videoElement,x=Z.webcamVideoElement,z=Z.cameraStream||{},j=z.getTracks&&z.getTracks()||[],tt=j[0];!w&&!!j.length&&V.isFunction(tt.stop)&&tt.stop(),V.isElement(k)&&!x&&(k.pause(),V.isFunction(V.URL.revokeObjectURL)&&!V.webWorkerError&&k.src&&V.URL.revokeObjectURL(k.src),V.removeElement(k))}},_e={utils:de,error:Ee,defaultOptions:ue,createGIF:F,takeSnapShot:function le(Z,Te){if(Te=V.isFunction(Z)?Z:Te,Z=V.isObject(Z)?Z:{},V.isFunction(Te)){var w=V.mergeOptions(ge,Z);F(V.mergeOptions(w,{interval:.1,numFrames:1,gifWidth:Math.floor(w.gifWidth),gifHeight:Math.floor(w.gifHeight)}),Te)}},stopVideoStreaming:q,isSupported:function c(){return ye.isValid()},isWebCamGIFSupported:E,isExistingVideoGIFSupported:function v(Z){var Te=!1;if(V.isArray(Z)&&Z.length){if(V.each(Z,function(w,k){V.isSupported.videoCodecs[k]&&(Te=!0)}),!Te)return!1}else if(V.isString(Z)&&Z.length&&!V.isSupported.videoCodecs[Z])return!1;return ye.isValid({getUserMedia:!0})},isExistingImagesGIFSupported:function m(){return ye.isValid({getUserMedia:!0})},VERSION:"0.4.5"};void 0!==(t=function(){return _e}.apply(be,[]))&&(St.exports=t)})(typeof window<"u"?window:{},typeof document<"u"?document:{createElement:function(){}},typeof window<"u"?window.navigator:{}),St.exports=(d=function(){"use strict";var d=new Blob(['\nvar Module=void 0!==Module?Module:{};(function(){var d={print:function(A){A=Array.prototype.slice.call(arguments).join(" "),console.log(A)},printErr:function(A){A=Array.prototype.slice.call(arguments).join(" "),console.error(A)},canvas:{},noInitialRun:!0},A={};for(Or in d)d.hasOwnProperty(Or)&&(A[Or]=d[Or]);var i,f,e=!1,l=!1,o=!1,r=!1;if(d.ENVIRONMENT)if("WEB"===d.ENVIRONMENT)e=!0;else if("WORKER"===d.ENVIRONMENT)l=!0;else if("NODE"===d.ENVIRONMENT)o=!0;else{if("SHELL"!==d.ENVIRONMENT)throw new Error("The provided Module[\'ENVIRONMENT\'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.");r=!0}else e="object"==typeof window,l="function"==typeof importScripts,o="object"==typeof process&&"function"==typeof require&&!e&&!l,r=!e&&!o&&!l;if(o)d.print||(d.print=console.log),d.printErr||(d.printErr=console.warn),d.read=function(A,e){var r;return(r=mr(A))||(i=i||void 0,A=(f=f||void 0).normalize(A),r=i.readFileSync(A)),e?r:r.toString()},d.readBinary=function(A){var e=d.read(A,!0);return e.buffer||(e=new Uint8Array(e)),h(e.buffer),e},d.thisProgram||(1<process.argv.length?d.thisProgram=process.argv[1].replace(/\\\\/g,"/"):d.thisProgram="unknown-program"),d.arguments=process.argv.slice(2),"undefined"!=typeof module&&(module.exports=d),process.on("uncaughtException",function(A){if(!(A instanceof Jr))throw A}),process.on("unhandledRejection",function(A,e){process.exit(1)}),d.inspect=function(){return"[Emscripten Module object]"};else if(r)d.print||(d.print=print),"undefined"!=typeof printErr&&(d.printErr=printErr),"undefined"!=typeof read?d.read=function(A){var e=mr(A);return e?wr(e):read(A)}:d.read=function(){throw"no read() available"},d.readBinary=function(A){var e;return(e=mr(A))?e:"function"==typeof readbuffer?new Uint8Array(readbuffer(A)):(h("object"==typeof(e=read(A,"binary"))),e)},"undefined"!=typeof scriptArgs?d.arguments=scriptArgs:void 0!==arguments&&(d.arguments=arguments),"function"==typeof quit&&(d.quit=function(A,e){quit(A)});else{if(!e&&!l)throw new Error("Unknown runtime environment. Where are we?");if(d.read=function(e){try{var A=new XMLHttpRequest;return A.open("GET",e,!1),A.send(null),A.responseText}catch(A){var r=mr(e);if(r)return wr(r);throw A}},l&&(d.readBinary=function(e){try{var A=new XMLHttpRequest;return A.open("GET",e,!1),A.responseType="arraybuffer",A.send(null),new Uint8Array(A.response)}catch(A){var r=mr(e);if(r)return r;throw A}}),d.readAsync=function(e,r,i){var f=new XMLHttpRequest;f.open("GET",e,!0),f.responseType="arraybuffer",f.onload=function(){if(200==f.status||0==f.status&&f.response)r(f.response);else{var A=mr(e);A?r(A.buffer):i()}},f.onerror=i,f.send(null)},void 0!==arguments&&(d.arguments=arguments),"undefined"!=typeof console)d.print||(d.print=function(A){console.log(A)}),d.printErr||(d.printErr=function(A){console.warn(A)});else{d.print||(d.print=function(A){})}void 0===d.setWindowTitle&&(d.setWindowTitle=function(A){document.title=A})}for(Or in d.print||(d.print=function(){}),d.printErr||(d.printErr=d.print),d.arguments||(d.arguments=[]),d.thisProgram||(d.thisProgram="./this.program"),d.quit||(d.quit=function(A,e){throw e}),d.print=d.print,d.printErr=d.printErr,d.preRun=[],d.postRun=[],A)A.hasOwnProperty(Or)&&(d[Or]=A[Or]);A=void 0;var k={setTempRet0:function(A){return tempRet0=A},getTempRet0:function(){return tempRet0},stackSave:function(){return R},stackRestore:function(A){R=A},getNativeTypeSize:function(A){switch(A){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:if("*"===A[A.length-1])return k.QUANTUM_SIZE;if("i"!==A[0])return 0;var e=parseInt(A.substr(1));return h(e%8==0),e/8}},getNativeFieldSize:function(A){return Math.max(k.getNativeTypeSize(A),k.QUANTUM_SIZE)},STACK_ALIGN:16,prepVararg:function(A,e){return"double"===e||"i64"===e?7&A&&(h(4==(7&A)),A+=4):h(0==(3&A)),A},getAlignSize:function(A,e,r){return r||"i64"!=A&&"double"!=A?A?Math.min(e||(A?k.getNativeFieldSize(A):0),k.QUANTUM_SIZE):Math.min(e,8):8},dynCall:function(A,e,r){return r&&r.length?d["dynCall_"+A].apply(null,[e].concat(r)):d["dynCall_"+A].call(null,e)},functionPointers:[],addFunction:function(A){for(var e=0;e<k.functionPointers.length;e++)if(!k.functionPointers[e])return k.functionPointers[e]=A,2*(1+e);throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."},removeFunction:function(A){k.functionPointers[(A-2)/2]=null},warnOnce:function(A){k.warnOnce.shown||(k.warnOnce.shown={}),k.warnOnce.shown[A]||(k.warnOnce.shown[A]=1,d.printErr(A))},funcWrappers:{},getFuncWrapper:function(e,r){if(e){h(r),k.funcWrappers[r]||(k.funcWrappers[r]={});var A=k.funcWrappers[r];return A[e]||(1===r.length?A[e]=function(){return k.dynCall(r,e)}:2===r.length?A[e]=function(A){return k.dynCall(r,e,[A])}:A[e]=function(){return k.dynCall(r,e,Array.prototype.slice.call(arguments))}),A[e]}},getCompilerSetting:function(A){throw"You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work"},stackAlloc:function(A){var e=R;return R=(R=R+A|0)+15&-16,e},staticAlloc:function(A){var e=F;return F=(F=F+A|0)+15&-16,e},dynamicAlloc:function(A){var e=E[D>>2],r=-16&(e+A+15|0);if((E[D>>2]=r,j<=r)&&!H())return E[D>>2]=e,0;return e},alignMemory:function(A,e){return A=Math.ceil(A/(e||16))*(e||16)},makeBigInt:function(A,e,r){return r?+(A>>>0)+4294967296*(e>>>0):+(A>>>0)+4294967296*(0|e)},GLOBAL_BASE:8,QUANTUM_SIZE:4,__dummy__:0};d.Runtime=k;var n=0;function h(A,e){A||Mr("Assertion failed: "+e)}function w(A,e,r){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":C[A>>0]=e;break;case"i16":I[A>>1]=e;break;case"i32":E[A>>2]=e;break;case"i64":tempI64=[e>>>0,(tempDouble=e,1<=+iA(tempDouble)?0<tempDouble?(0|tA(+nA(tempDouble/4294967296),4294967295))>>>0:~~+fA((tempDouble-(~~tempDouble>>>0))/4294967296)>>>0:0)],E[A>>2]=tempI64[0],E[A+4>>2]=tempI64[1];break;case"float":V[A>>2]=e;break;case"double":X[A>>3]=e;break;default:Mr("invalid type for setValue: "+r)}}var t=0,v=2,g=4;function a(A,e,r,i){var f,n;n="number"==typeof A?(f=!0,A):(f=!1,A.length);var t,o="string"==typeof e?e:null;if(t=r==g?i:["function"==typeof Xr?Xr:k.staticAlloc,k.stackAlloc,k.staticAlloc,k.dynamicAlloc][void 0===r?v:r](Math.max(n,o?1:e.length)),f){var a;for(h(0==(3&(i=t))),a=t+(-4&n);i<a;i+=4)E[i>>2]=0;for(a=t+n;i<a;)C[i++>>0]=0;return t}if("i8"===o)return A.subarray||A.slice?W.set(A,t):W.set(new Uint8Array(A),t),t;for(var c,l,u,s=0;s<n;){var b=A[s];"function"==typeof b&&(b=k.getFunctionIndex(b)),0!==(c=o||e[s])?("i64"==c&&(c="i32"),w(t+s,b,c),u!==c&&(l=k.getNativeTypeSize(c),u=c),s+=l):s++}return t}function m(A,e){if(0===e||!A)return"";for(var r,i=0,f=0;i|=r=W[A+f>>0],(0!=r||e)&&(f++,!e||f!=e););e=e||f;var n="";if(i<128){for(var t;0<e;)t=String.fromCharCode.apply(String,W.subarray(A,A+Math.min(e,1024))),n=n?n+t:t,A+=1024,e-=1024;return n}return c(W,A)}d.ALLOC_NORMAL=t,d.ALLOC_STACK=1,d.ALLOC_STATIC=v,d.ALLOC_DYNAMIC=3,d.ALLOC_NONE=g,d.getMemory=function(A){return N?AA?Xr(A):k.dynamicAlloc(A):k.staticAlloc(A)};var u="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function c(A,e){for(var r=e;A[r];)++r;if(16<r-e&&A.subarray&&u)return u.decode(A.subarray(e,r));for(var i,f,n,t,o,a="";;){if(!(i=A[e++]))return a;if(128&i)if(f=63&A[e++],192!=(224&i))if(n=63&A[e++],(i=224==(240&i)?(15&i)<<12|f<<6|n:(t=63&A[e++],240==(248&i)?(7&i)<<18|f<<12|n<<6|t:(o=63&A[e++],248==(252&i)?(3&i)<<24|f<<18|n<<12|t<<6|o:(1&i)<<30|f<<24|n<<18|t<<12|o<<6|63&A[e++])))<65536)a+=String.fromCharCode(i);else{var c=i-65536;a+=String.fromCharCode(55296|c>>10,56320|1023&c)}else a+=String.fromCharCode((31&i)<<6|f);else a+=String.fromCharCode(i)}}function s(A,e,r,i){if(!(0<i))return 0;for(var f=r,n=r+i-1,t=0;t<A.length;++t){var o=A.charCodeAt(t);if(55296<=o&&o<=57343&&(o=65536+((1023&o)<<10)|1023&A.charCodeAt(++t)),o<=127){if(n<=r)break;e[r++]=o}else if(o<=2047){if(n<=r+1)break;e[r++]=192|o>>6,e[r++]=128|63&o}else if(o<=65535){if(n<=r+2)break;e[r++]=224|o>>12,e[r++]=128|o>>6&63,e[r++]=128|63&o}else if(o<=2097151){if(n<=r+3)break;e[r++]=240|o>>18,e[r++]=128|o>>12&63,e[r++]=128|o>>6&63,e[r++]=128|63&o}else if(o<=67108863){if(n<=r+4)break;e[r++]=248|o>>24,e[r++]=128|o>>18&63,e[r++]=128|o>>12&63,e[r++]=128|o>>6&63,e[r++]=128|63&o}else{if(n<=r+5)break;e[r++]=252|o>>30,e[r++]=128|o>>24&63,e[r++]=128|o>>18&63,e[r++]=128|o>>12&63,e[r++]=128|o>>6&63,e[r++]=128|63&o}}return e[r]=0,r-f}function b(A,e,r){return s(A,W,e,r)}function p(A){for(var e=0,r=0;r<A.length;++r){var i=A.charCodeAt(r);55296<=i&&i<=57343&&(i=65536+((1023&i)<<10)|1023&A.charCodeAt(++r)),i<=127?++e:e+=i<=2047?2:i<=65535?3:i<=2097151?4:i<=67108863?5:6}return e}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");function y(){var A=function(){var e=new Error;if(!e.stack){try{throw new Error(0)}catch(A){e=A}if(!e.stack)return"(no stack trace available)"}return e.stack.toString()}();return d.extraStackTrace&&(A+="\\n"+d.extraStackTrace()),A.replace(/__Z[\\w\\d_]+/g,function(A){var e=A;return A===e?A:A+" ["+e+"]"})}var Z,C,W,I,B,E,G,V,X,_,F,N,R,Y,J,D,Q,T=65536,M=16777216,S=16777216;function U(A,e){return 0<A%e&&(A+=e-A%e),A}function O(){d.HEAP8=C=new Int8Array(Z),d.HEAP16=I=new Int16Array(Z),d.HEAP32=E=new Int32Array(Z),d.HEAPU8=W=new Uint8Array(Z),d.HEAPU16=B=new Uint16Array(Z),d.HEAPU32=G=new Uint32Array(Z),d.HEAPF32=V=new Float32Array(Z),d.HEAPF64=X=new Float64Array(Z)}function H(){var A=d.usingWasm?T:M,e=2147483648-A;if(E[D>>2]>e)return!1;var r=j;for(j=Math.max(j,S);j<E[D>>2];)j=j<=536870912?U(2*j,A):Math.min(U((3*j+2147483648)/4,A),e);var i,f=d.reallocBuffer(j);return f&&f.byteLength==j?(i=f,d.buffer=Z=i,O(),!0):(j=r,!1)}F=R=D=0,N=!1,d.reallocBuffer||(d.reallocBuffer=function(A){var e;try{if(ArrayBuffer.transfer)e=ArrayBuffer.transfer(Z,A);else{var r=C;e=new ArrayBuffer(A),new Int8Array(e).set(r)}}catch(A){return!1}return!!Gr(e)&&e});try{(Q=Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get))(new ArrayBuffer(4))}catch(Hr){Q=function(A){return A.byteLength}}var x=d.TOTAL_STACK||5242880,j=d.TOTAL_MEMORY||16777216;if(j<x&&d.printErr("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+j+"! (TOTAL_STACK="+x+")"),Z=d.buffer?d.buffer:new ArrayBuffer(j),O(),E[0]=1668509029,I[1]=25459,115!==W[2]||99!==W[3])throw"Runtime error: expected the system to be little-endian!";function z(A){for(;0<A.length;){var e=A.shift();if("function"!=typeof e){var r=e.func;"number"==typeof r?void 0===e.arg?d.dynCall_v(r):d.dynCall_vi(r,e.arg):r(void 0===e.arg?null:e.arg)}else e()}}d.HEAP=void 0,d.buffer=Z,d.HEAP8=C,d.HEAP16=I,d.HEAP32=E,d.HEAPU8=W,d.HEAPU16=B,d.HEAPU32=G,d.HEAPF32=V,d.HEAPF64=X;var P=[],L=[],K=[],q=[],$=[],AA=!1;function eA(A,e){C.set(A,e)}function rA(A,e,r){for(var i=0;i<A.length;++i)C[e++>>0]=A.charCodeAt(i);r||(C[e>>0]=0)}Math.imul&&-5===Math.imul(4294967295,5)||(Math.imul=function(A,e){var r=65535&A,i=65535&e;return r*i+((A>>>16)*i+r*(e>>>16)<<16)|0}),Math.imul=Math.imul,Math.clz32||(Math.clz32=function(A){A>>>=0;for(var e=0;e<32;e++)if(A&1<<31-e)return e;return 32}),Math.clz32=Math.clz32,Math.trunc||(Math.trunc=function(A){return A<0?Math.ceil(A):Math.floor(A)}),Math.trunc=Math.trunc;var iA=Math.abs,fA=(Math.cos,Math.sin,Math.tan,Math.acos,Math.asin,Math.atan,Math.atan2,Math.exp,Math.log,Math.sqrt,Math.ceil),nA=Math.floor,tA=(Math.pow,Math.imul,Math.fround,Math.round,Math.min),oA=(Math.clz32,Math.trunc,0),aA=null,cA=null;function lA(A){oA++,d.monitorRunDependencies&&d.monitorRunDependencies(oA)}function uA(A){if(oA--,d.monitorRunDependencies&&d.monitorRunDependencies(oA),0==oA&&(null!==aA&&(clearInterval(aA),aA=null),cA)){var e=cA;cA=null,e()}}d.addRunDependency=lA,d.removeRunDependency=uA,d.preloadedImages={},d.preloadedAudios={};var sA=null;_=k.GLOBAL_BASE,F=_+72976,L.push({func:function(){Zr()}},{func:function(){Wr()}},{func:function(){Ir()}},{func:function(){Cr()}},{func:function(){Br()}});var bA=F;function dA(){return!!dA.uncaught_exception}F+=16;var kA={last:0,caught:[],infos:{},deAdjust:function(A){if(!A||kA.infos[A])return A;for(var e in kA.infos){if(kA.infos[e].adjusted===A)return e}return A},addRef:function(A){A&&kA.infos[A].refcount++},decRef:function(A){if(A){var e=kA.infos[A];h(0<e.refcount),e.refcount--,0!==e.refcount||e.rethrown||(e.destructor&&d.dynCall_vi(e.destructor,A),delete kA.infos[A],___cxa_free_exception(A))}},clearRef:function(A){A&&(kA.infos[A].refcount=0)}};var hA={EPERM:1,ENOENT:2,ESRCH:3,EINTR:4,EIO:5,ENXIO:6,E2BIG:7,ENOEXEC:8,EBADF:9,ECHILD:10,EAGAIN:11,EWOULDBLOCK:11,ENOMEM:12,EACCES:13,EFAULT:14,ENOTBLK:15,EBUSY:16,EEXIST:17,EXDEV:18,ENODEV:19,ENOTDIR:20,EISDIR:21,EINVAL:22,ENFILE:23,EMFILE:24,ENOTTY:25,ETXTBSY:26,EFBIG:27,ENOSPC:28,ESPIPE:29,EROFS:30,EMLINK:31,EPIPE:32,EDOM:33,ERANGE:34,ENOMSG:42,EIDRM:43,ECHRNG:44,EL2NSYNC:45,EL3HLT:46,EL3RST:47,ELNRNG:48,EUNATCH:49,ENOCSI:50,EL2HLT:51,EDEADLK:35,ENOLCK:37,EBADE:52,EBADR:53,EXFULL:54,ENOANO:55,EBADRQC:56,EBADSLT:57,EDEADLOCK:35,EBFONT:59,ENOSTR:60,ENODATA:61,ETIME:62,ENOSR:63,ENONET:64,ENOPKG:65,EREMOTE:66,ENOLINK:67,EADV:68,ESRMNT:69,ECOMM:70,EPROTO:71,EMULTIHOP:72,EDOTDOT:73,EBADMSG:74,ENOTUNIQ:76,EBADFD:77,EREMCHG:78,ELIBACC:79,ELIBBAD:80,ELIBSCN:81,ELIBMAX:82,ELIBEXEC:83,ENOSYS:38,ENOTEMPTY:39,ENAMETOOLONG:36,ELOOP:40,EOPNOTSUPP:95,EPFNOSUPPORT:96,ECONNRESET:104,ENOBUFS:105,EAFNOSUPPORT:97,EPROTOTYPE:91,ENOTSOCK:88,ENOPROTOOPT:92,ESHUTDOWN:108,ECONNREFUSED:111,EADDRINUSE:98,ECONNABORTED:103,ENETUNREACH:101,ENETDOWN:100,ETIMEDOUT:110,EHOSTDOWN:112,EHOSTUNREACH:113,EINPROGRESS:115,EALREADY:114,EDESTADDRREQ:89,EMSGSIZE:90,EPROTONOSUPPORT:93,ESOCKTNOSUPPORT:94,EADDRNOTAVAIL:99,ENETRESET:102,EISCONN:106,ENOTCONN:107,ETOOMANYREFS:109,EUSERS:87,EDQUOT:122,ESTALE:116,ENOTSUP:95,ENOMEDIUM:123,EILSEQ:84,EOVERFLOW:75,ECANCELED:125,ENOTRECOVERABLE:131,EOWNERDEAD:130,ESTRPIPE:86};function wA(A){return d.___errno_location&&(E[d.___errno_location()>>2]=A),A}var vA={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can   access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can\'t send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"},gA={splitPath:function(A){return/^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/.exec(A).slice(1)},normalizeArray:function(A,e){for(var r=0,i=A.length-1;0<=i;i--){var f=A[i];"."===f?A.splice(i,1):".."===f?(A.splice(i,1),r++):r&&(A.splice(i,1),r--)}if(e)for(;r;r--)A.unshift("..");return A},normalize:function(A){var e="/"===A.charAt(0),r="/"===A.substr(-1);return(A=gA.normalizeArray(A.split("/").filter(function(A){return!!A}),!e).join("/"))||e||(A="."),A&&r&&(A+="/"),(e?"/":"")+A},dirname:function(A){var e=gA.splitPath(A),r=e[0],i=e[1];return r||i?r+(i=i&&i.substr(0,i.length-1)):"."},basename:function(A){if("/"===A)return"/";var e=A.lastIndexOf("/");return-1===e?A:A.substr(e+1)},extname:function(A){return gA.splitPath(A)[3]},join:function(){var A=Array.prototype.slice.call(arguments,0);return gA.normalize(A.join("/"))},join2:function(A,e){return gA.normalize(A+"/"+e)},resolve:function(){for(var A="",e=!1,r=arguments.length-1;-1<=r&&!e;r--){var i=0<=r?arguments[r]:WA.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");if(!i)return"";A=i+"/"+A,e="/"===i.charAt(0)}return(e?"/":"")+(A=gA.normalizeArray(A.split("/").filter(function(A){return!!A}),!e).join("/"))||"."},relative:function(A,e){function r(A){for(var e=0;e<A.length&&""===A[e];e++);for(var r=A.length-1;0<=r&&""===A[r];r--);return r<e?[]:A.slice(e,r-e+1)}A=gA.resolve(A).substr(1),e=gA.resolve(e).substr(1);for(var i=r(A.split("/")),f=r(e.split("/")),n=Math.min(i.length,f.length),t=n,o=0;o<n;o++)if(i[o]!==f[o]){t=o;break}var a=[];for(o=t;o<i.length;o++)a.push("..");return(a=a.concat(f.slice(t))).join("/")}},mA={ttys:[],init:function(){},shutdown:function(){},register:function(A,e){mA.ttys[A]={input:[],output:[],ops:e},WA.registerDevice(A,mA.stream_ops)},stream_ops:{open:function(A){var e=mA.ttys[A.node.rdev];if(!e)throw new WA.ErrnoError(hA.ENODEV);A.tty=e,A.seekable=!1},close:function(A){A.tty.ops.flush(A.tty)},flush:function(A){A.tty.ops.flush(A.tty)},read:function(A,e,r,i,f){if(!A.tty||!A.tty.ops.get_char)throw new WA.ErrnoError(hA.ENXIO);for(var n=0,t=0;t<i;t++){var o;try{o=A.tty.ops.get_char(A.tty)}catch(A){throw new WA.ErrnoError(hA.EIO)}if(void 0===o&&0===n)throw new WA.ErrnoError(hA.EAGAIN);if(null==o)break;n++,e[r+t]=o}return n&&(A.node.timestamp=Date.now()),n},write:function(A,e,r,i,f){if(!A.tty||!A.tty.ops.put_char)throw new WA.ErrnoError(hA.ENXIO);for(var n=0;n<i;n++)try{A.tty.ops.put_char(A.tty,e[r+n])}catch(A){throw new WA.ErrnoError(hA.EIO)}return i&&(A.node.timestamp=Date.now()),n}},default_tty_ops:{get_char:function(A){if(!A.input.length){var e=null;if(o){var r=new Buffer(256),i=0,f="win32"!=process.platform,n=process.stdin.fd;if(f){var t=!1;try{n=br.openSync("/dev/stdin","r"),t=!0}catch(A){}}try{i=br.readSync(n,r,0,256,null)}catch(A){if(-1==A.toString().indexOf("EOF"))throw A;i=0}t&&br.closeSync(n),e=0<i?r.slice(0,i).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\\n");if(!e)return null;A.input=hr(e,!0)}return A.input.shift()},put_char:function(A,e){null===e||10===e?(d.print(c(A.output,0)),A.output=[]):0!=e&&A.output.push(e)},flush:function(A){A.output&&0<A.output.length&&(d.print(c(A.output,0)),A.output=[])}},default_tty1_ops:{put_char:function(A,e){null===e||10===e?(d.printErr(c(A.output,0)),A.output=[]):0!=e&&A.output.push(e)},flush:function(A){A.output&&0<A.output.length&&(d.printErr(c(A.output,0)),A.output=[])}}},pA={ops_table:null,mount:function(A){return pA.createNode(null,"/",16895,0)},createNode:function(A,e,r,i){if(WA.isBlkdev(r)||WA.isFIFO(r))throw new WA.ErrnoError(hA.EPERM);pA.ops_table||(pA.ops_table={dir:{node:{getattr:pA.node_ops.getattr,setattr:pA.node_ops.setattr,lookup:pA.node_ops.lookup,mknod:pA.node_ops.mknod,rename:pA.node_ops.rename,unlink:pA.node_ops.unlink,rmdir:pA.node_ops.rmdir,readdir:pA.node_ops.readdir,symlink:pA.node_ops.symlink},stream:{llseek:pA.stream_ops.llseek}},file:{node:{getattr:pA.node_ops.getattr,setattr:pA.node_ops.setattr},stream:{llseek:pA.stream_ops.llseek,read:pA.stream_ops.read,write:pA.stream_ops.write,allocate:pA.stream_ops.allocate,mmap:pA.stream_ops.mmap,msync:pA.stream_ops.msync}},link:{node:{getattr:pA.node_ops.getattr,setattr:pA.node_ops.setattr,readlink:pA.node_ops.readlink},stream:{}},chrdev:{node:{getattr:pA.node_ops.getattr,setattr:pA.node_ops.setattr},stream:WA.chrdev_stream_ops}});var f=WA.createNode(A,e,r,i);return WA.isDir(f.mode)?(f.node_ops=pA.ops_table.dir.node,f.stream_ops=pA.ops_table.dir.stream,f.contents={}):WA.isFile(f.mode)?(f.node_ops=pA.ops_table.file.node,f.stream_ops=pA.ops_table.file.stream,f.usedBytes=0,f.contents=null):WA.isLink(f.mode)?(f.node_ops=pA.ops_table.link.node,f.stream_ops=pA.ops_table.link.stream):WA.isChrdev(f.mode)&&(f.node_ops=pA.ops_table.chrdev.node,f.stream_ops=pA.ops_table.chrdev.stream),f.timestamp=Date.now(),A&&(A.contents[e]=f),f},getFileDataAsRegularArray:function(A){if(A.contents&&A.contents.subarray){for(var e=[],r=0;r<A.usedBytes;++r)e.push(A.contents[r]);return e}return A.contents},getFileDataAsTypedArray:function(A){return A.contents?A.contents.subarray?A.contents.subarray(0,A.usedBytes):new Uint8Array(A.contents):new Uint8Array},expandFileStorage:function(A,e){if(A.contents&&A.contents.subarray&&e>A.contents.length&&(A.contents=pA.getFileDataAsRegularArray(A),A.usedBytes=A.contents.length),!A.contents||A.contents.subarray){var r=A.contents?A.contents.length:0;if(e<=r)return;e=Math.max(e,r*(r<1048576?2:1.125)|0),0!=r&&(e=Math.max(e,256));var i=A.contents;return A.contents=new Uint8Array(e),void(0<A.usedBytes&&A.contents.set(i.subarray(0,A.usedBytes),0))}for(!A.contents&&0<e&&(A.contents=[]);A.contents.length<e;)A.contents.push(0)},resizeFileStorage:function(A,e){if(A.usedBytes!=e){if(0==e)return A.contents=null,void(A.usedBytes=0);if(!A.contents||A.contents.subarray){var r=A.contents;return A.contents=new Uint8Array(new ArrayBuffer(e)),r&&A.contents.set(r.subarray(0,Math.min(e,A.usedBytes))),void(A.usedBytes=e)}if(A.contents||(A.contents=[]),A.contents.length>e)A.contents.length=e;else for(;A.contents.length<e;)A.contents.push(0);A.usedBytes=e}},node_ops:{getattr:function(A){var e={};return e.dev=WA.isChrdev(A.mode)?A.id:1,e.ino=A.id,e.mode=A.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=A.rdev,WA.isDir(A.mode)?e.size=4096:WA.isFile(A.mode)?e.size=A.usedBytes:WA.isLink(A.mode)?e.size=A.link.length:e.size=0,e.atime=new Date(A.timestamp),e.mtime=new Date(A.timestamp),e.ctime=new Date(A.timestamp),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr:function(A,e){void 0!==e.mode&&(A.mode=e.mode),void 0!==e.timestamp&&(A.timestamp=e.timestamp),void 0!==e.size&&pA.resizeFileStorage(A,e.size)},lookup:function(A,e){throw WA.genericErrors[hA.ENOENT]},mknod:function(A,e,r,i){return pA.createNode(A,e,r,i)},rename:function(A,e,r){if(WA.isDir(A.mode)){var i;try{i=WA.lookupNode(e,r)}catch(A){}if(i)for(var f in i.contents)throw new WA.ErrnoError(hA.ENOTEMPTY)}delete A.parent.contents[A.name],A.name=r,(e.contents[r]=A).parent=e},unlink:function(A,e){delete A.contents[e]},rmdir:function(A,e){var r=WA.lookupNode(A,e);for(var i in r.contents)throw new WA.ErrnoError(hA.ENOTEMPTY);delete A.contents[e]},readdir:function(A){var e=[".",".."];for(var r in A.contents)A.contents.hasOwnProperty(r)&&e.push(r);return e},symlink:function(A,e,r){var i=pA.createNode(A,e,41471,0);return i.link=r,i},readlink:function(A){if(!WA.isLink(A.mode))throw new WA.ErrnoError(hA.EINVAL);return A.link}},stream_ops:{read:function(A,e,r,i,f){var n=A.node.contents;if(f>=A.node.usedBytes)return 0;var t=Math.min(A.node.usedBytes-f,i);if(h(0<=t),8<t&&n.subarray)e.set(n.subarray(f,f+t),r);else for(var o=0;o<t;o++)e[r+o]=n[f+o];return t},write:function(A,e,r,i,f,n){if(!i)return 0;var t=A.node;if(t.timestamp=Date.now(),e.subarray&&(!t.contents||t.contents.subarray)){if(n)return t.contents=e.subarray(r,r+i),t.usedBytes=i;if(0===t.usedBytes&&0===f)return t.contents=new Uint8Array(e.subarray(r,r+i)),t.usedBytes=i;if(f+i<=t.usedBytes)return t.contents.set(e.subarray(r,r+i),f),i}if(pA.expandFileStorage(t,f+i),t.contents.subarray&&e.subarray)t.contents.set(e.subarray(r,r+i),f);else for(var o=0;o<i;o++)t.contents[f+o]=e[r+o];return t.usedBytes=Math.max(t.usedBytes,f+i),i},llseek:function(A,e,r){var i=e;if(1===r?i+=A.position:2===r&&WA.isFile(A.node.mode)&&(i+=A.node.usedBytes),i<0)throw new WA.ErrnoError(hA.EINVAL);return i},allocate:function(A,e,r){pA.expandFileStorage(A.node,e+r),A.node.usedBytes=Math.max(A.node.usedBytes,e+r)},mmap:function(A,e,r,i,f,n,t){if(!WA.isFile(A.node.mode))throw new WA.ErrnoError(hA.ENODEV);var o,a,c=A.node.contents;if(2&t||c.buffer!==e&&c.buffer!==e.buffer){if((0<f||f+i<A.node.usedBytes)&&(c=c.subarray?c.subarray(f,f+i):Array.prototype.slice.call(c,f,f+i)),a=!0,!(o=Xr(i)))throw new WA.ErrnoError(hA.ENOMEM);e.set(c,o)}else a=!1,o=c.byteOffset;return{ptr:o,allocated:a}},msync:function(A,e,r,i,f){if(!WA.isFile(A.node.mode))throw new WA.ErrnoError(hA.ENODEV);if(2&f)return 0;pA.stream_ops.write(A,e,0,i,r,!1);return 0}}},yA={dbs:{},indexedDB:function(){if("undefined"!=typeof indexedDB)return indexedDB;var A=null;return"object"==typeof window&&(A=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),h(A,"IDBFS used, but indexedDB not supported"),A},DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:function(A){return pA.mount.apply(null,arguments)},syncfs:function(e,n,t){yA.getLocalSet(e,function(A,f){if(A)return t(A);yA.getRemoteSet(e,function(A,e){if(A)return t(A);var r=n?e:f,i=n?f:e;yA.reconcile(r,i,t)})})},getDB:function(A,e){var r,i=yA.dbs[A];if(i)return e(null,i);try{r=yA.indexedDB().open(A,yA.DB_VERSION)}catch(A){return e(A)}if(!r)return e("Unable to connect to IndexedDB");r.onupgradeneeded=function(A){var e,r=A.target.result,i=A.target.transaction;(e=r.objectStoreNames.contains(yA.DB_STORE_NAME)?i.objectStore(yA.DB_STORE_NAME):r.createObjectStore(yA.DB_STORE_NAME)).indexNames.contains("timestamp")||e.createIndex("timestamp","timestamp",{unique:!1})},r.onsuccess=function(){i=r.result,yA.dbs[A]=i,e(null,i)},r.onerror=function(A){e(this.error),A.preventDefault()}},getLocalSet:function(A,e){var r={};function i(A){return"."!==A&&".."!==A}function f(e){return function(A){return gA.join2(e,A)}}for(var n=WA.readdir(A.mountpoint).filter(i).map(f(A.mountpoint));n.length;){var t,o=n.pop();try{t=WA.stat(o)}catch(A){return e(A)}WA.isDir(t.mode)&&n.push.apply(n,WA.readdir(o).filter(i).map(f(o))),r[o]={timestamp:t.mtime}}return e(null,{type:"local",entries:r})},getRemoteSet:function(A,i){var f={};yA.getDB(A.mountpoint,function(A,r){if(A)return i(A);try{var e=r.transaction([yA.DB_STORE_NAME],"readonly");e.onerror=function(A){i(this.error),A.preventDefault()},e.objectStore(yA.DB_STORE_NAME).index("timestamp").openKeyCursor().onsuccess=function(A){var e=A.target.result;if(!e)return i(null,{type:"remote",db:r,entries:f});f[e.primaryKey]={timestamp:e.key},e.continue()}}catch(A){return i(A)}})},loadLocalEntry:function(A,e){var r,i;try{i=WA.lookupPath(A).node,r=WA.stat(A)}catch(A){return e(A)}return WA.isDir(r.mode)?e(null,{timestamp:r.mtime,mode:r.mode}):WA.isFile(r.mode)?(i.contents=pA.getFileDataAsTypedArray(i),e(null,{timestamp:r.mtime,mode:r.mode,contents:i.contents})):e(new Error("node type not supported"))},storeLocalEntry:function(A,e,r){try{if(WA.isDir(e.mode))WA.mkdir(A,e.mode);else{if(!WA.isFile(e.mode))return r(new Error("node type not supported"));WA.writeFile(A,e.contents,{encoding:"binary",canOwn:!0})}WA.chmod(A,e.mode),WA.utime(A,e.timestamp,e.timestamp)}catch(A){return r(A)}r(null)},removeLocalEntry:function(A,e){try{WA.lookupPath(A);var r=WA.stat(A);WA.isDir(r.mode)?WA.rmdir(A):WA.isFile(r.mode)&&WA.unlink(A)}catch(A){return e(A)}e(null)},loadRemoteEntry:function(A,e,r){var i=A.get(e);i.onsuccess=function(A){r(null,A.target.result)},i.onerror=function(A){r(this.error),A.preventDefault()}},storeRemoteEntry:function(A,e,r,i){var f=A.put(r,e);f.onsuccess=function(){i(null)},f.onerror=function(A){i(this.error),A.preventDefault()}},removeRemoteEntry:function(A,e,r){var i=A.delete(e);i.onsuccess=function(){r(null)},i.onerror=function(A){r(this.error),A.preventDefault()}},reconcile:function(i,f,e){var n=0,t=[];Object.keys(i.entries).forEach(function(A){var e=i.entries[A],r=f.entries[A];(!r||e.timestamp>r.timestamp)&&(t.push(A),n++)});var r=[];if(Object.keys(f.entries).forEach(function(A){f.entries[A];i.entries[A]||(r.push(A),n++)}),!n)return e(null);var o=0,A=("remote"===i.type?i.db:f.db).transaction([yA.DB_STORE_NAME],"readwrite"),a=A.objectStore(yA.DB_STORE_NAME);function c(A){return A?c.errored?void 0:(c.errored=!0,e(A)):++o>=n?e(null):void 0}A.onerror=function(A){c(this.error),A.preventDefault()},t.sort().forEach(function(r){"local"===f.type?yA.loadRemoteEntry(a,r,function(A,e){if(A)return c(A);yA.storeLocalEntry(r,e,c)}):yA.loadLocalEntry(r,function(A,e){if(A)return c(A);yA.storeRemoteEntry(a,r,e,c)})}),r.sort().reverse().forEach(function(A){"local"===f.type?yA.removeLocalEntry(A,c):yA.removeRemoteEntry(a,A,c)})}},ZA={isWindows:!(sA="data:application/octet-stream;base64,AAAAAAAAAAAEAAAAAAAAAIgIAAAcAAAAHQAAAPz////8////iAgAAB4AAAAfAAAAAAAAAAAAAAAgPgAAG0MAAEg+AACTQgAASAgAAAAAAABIPgAA1UIAAIgIAAAAAAAASD4AAC1DAABAAAAAAAAAAEg+AACSQwAAaAAAAAAAAABIPgAALlAAAGgAAAAAAAAAQAAAAAAAAABYCAAAEgAAABMAAADA////wP///1gIAAAUAAAAFQAAAEAAAAAAAAAAuAgAABYAAAAXAAAAOAAAAPj///+4CAAAGAAAABkAAADA////wP///7gIAAAaAAAAGwAAAAAAAAA4AAAAAAAAAIgIAAAcAAAAHQAAAMj////I////iAgAAB4AAAAfAAAASD4AAM1DAAC4CAAAAAAAAEg+AABIRAAAqA0AAAAAAABIPgAAkkQAAGgAAAAAAAAASD4AAKJEAACoDQAAAAAAAEg+AADlRAAAaAAAAAAAAABIPgAA9kQAAKgNAAAAAAAASD4AADpFAABoAAAAAAAAAEg+AABLRQAAqA0AAAAAAABIPgAAukUAAGgAAAAAAAAASD4AAMtFAACoDQAAAAAAAEg+AAAmRgAAaAAAAAAAAABIPgAAN0YAAKgNAAAAAAAASD4AAChIAABoAAAAAAAAAEg+AAA5SAAAqA0AAAAAAABIPgAAqkgAAGgAAAAAAAAASD4AALtIAACoDQAAAAAAAEg+AAAjSQAAaAAAAAAAAABIPgAANEkAAKgNAAAAAAAASD4AAJxJAABoAAAAAAAAAEg+AACtSQAAqA0AAAAAAABIPgAADEoAAGgAAAAAAAAASD4AAB1KAACoDQAAAAAAAEg+AAB7SgAAaAAAAAAAAABIPgAAjEoAAKgNAAAAAAAASD4AAO1KAABoAAAAAAAAAEg+AAD+SgAAqA0AAAAAAABIPgAAfEsAAGgAAAAAAAAASD4AAI1LAACoDQAAAAAAAEg+AADRSwAAaAAAAAAAAABIPgAA4ksAAKgNAAAAAAAASD4AACZMAABoAAAAAAAAAEg+AAA3TAAAqA0AAAAAAABIPgAA9UwAAGgAAAAAAAAASD4AAAZNAACoDQAAAAAAAEg+AABKTQAAaAAAAAAAAABIPgAAW00AAKgNAAAAAAAASD4AAINOAABoAAAAAAAAAEg+AACUTgAAqA0AAAAAAABIPgAA2E4AAGgAAAAAAAAASD4AAOlOAACoDQAAAAAAAEg+AABRTwAAaAAAAAAAAABIPgAAYk8AAKgNAAAAAAAASD4AAKZPAACoDQAAAAAAAEg+AADqTwAAqA0AAAAAAAA8AAAAAAAAAFgIAAASAAAAEwAAAMT////E////WAgAABQAAAAVAAAASD4AAO5VAABYCAAAAAAAAEg+AACBVgAAqA0AAAAAAAAgPgAAn2YAALQ+AACQZgAAAAAAADAEAAC0PgAAgGYAAAEAAAAwBAAA0D4AAG5mAADQPgAAWWYAACA+AABBZgAAtD4AAChmAAAAAAAAaAQAALQ+AAAOZgAAAQAAAGgEAABIPgAA7GUAAGgEAAAAAAAAtD4AAMllAAAAAAAAkAQAALQ+AAClZQAAAQAAAJAEAAAgPgAAlmUAALQ+AACGZQAAAAAAAMAEAAC0PgAAdWUAAAEAAADABAAAtD4AAGJlAAAAAAAAQAAAALQ+AABOZQAAAQAAAEAAAAC0PgAAQWUAAAAAAABoAAAAtD4AADNlAAABAAAAaAAAACA+AAA+ZAAAID4AAC1kAAC0PgAAG2QAAAAAAAAwBQAAtD4AAAhkAAABAAAAMAUAANA+AADkYwAA0D4AANZjAADQPgAAxGMAANA+AAC1YwAAID4AAOtgAAC0PgAA22AAAAAAAAB4BQAAtD4AAMpgAAABAAAAeAUAACA+AAC2YAAAtD4AAKFgAAAAAAAAoAUAALQ+AACLYAAAAQAAAKAFAAAgPgAAfmAAALQ+AABwYAAAAAAAAMgFAAC0PgAAYWAAAAEAAADIBQAAID4AAFRgAADsPgAAeGEAAAAAAAABAAAAOAYAAAAAAAC0PgAAU2EAAAAAAAD4BQAAtD4AAC1hAAABAAAA+AUAACA+AAAaYQAA7D4AAJxhAAAAAAAAAQAAAFAGAAAAAAAAID4AAMhhAADsPgAAAWMAAAAAAAABAAAAsAYAAAAAAAC0PgAAqmIAAAAAAABYBgAAtD4AAFJiAAABAAAAWAYAAOw+AADtYQAAAAAAAAEAAACoBgAAAAAAACA+AAAsYgAA7D4AAFdjAAAAAAAAAQAAAFAGAAAAAAAASD4AALBkAACoDQAAAAAAAEg+AAB5ZwAAqA0AAAAAAABIPgAAHWoAAKgNAAAAAAAASD4AAGdqAACoDQAAAAAAAEg+AAC1agAAqA0AAAAAAABIPgAANW0AACgHAAAAAAAA7D4AAEdtAAAAAAAAAQAAAEAHAAACBAAAID4AAFZtAABIPgAAen4AAFgHAAAAAAAAID4AAIx+AABIPgAAw4AAAFgHAAAAAAAASD4AAOqAAABYBwAAAAAAAEg+AAByogAAWAcAAAAAAADsPgAAyakAAAAAAAABAAAAqAYAAAAAAADsPgAAiqkAAAAAAAABAAAAqAYAAAAAAAAgPgAAa6kAACA+AABMqQAAID4AAC2pAAAgPgAADqkAACA+AADvqAAAID4AANCoAAAgPgAAsagAACA+AACSqAAAID4AAHOoAAAgPgAAVKgAACA+AAA1qAAAID4AABaoAABIPgAAFrUAADAIAAAAAAAAID4AAAS1AABIPgAAQLUAADAIAAAAAAAAID4AAGq1AAAgPgAAm7UAAOw+AADMtQAAAAAAAAEAAAAgCAAAA/T//+w+AAD7tQAAAAAAAAEAAAA4CAAAA/T//+w+AAAqtgAAAAAAAAEAAAAgCAAAA/T//+w+AABZtgAAAAAAAAEAAAA4CAAAA/T//+w+AACItgAAAwAAAAIAAABYCAAAAgAAAIgIAAACCAAADAAAAAAAAABYCAAAEgAAABMAAAD0////9P///1gIAAAUAAAAFQAAAEg+AAC4tgAAUAgAAAAAAABIPgAA0bYAAEgIAAAAAAAASD4AABC3AABQCAAAAAAAAEg+AAAotwAASAgAAAAAAABIPgAAQLcAAFAJAAAAAAAASD4AAFS3AACgDQAAAAAAAEg+AABqtwAAUAkAAAAAAADsPgAApLcAAAAAAAACAAAAUAkAAAIAAACQCQAAAAAAAOw+AADotwAAAAAAAAEAAACoCQAAAAAAACA+AAD+twAA7D4AABe4AAAAAAAAAgAAAFAJAAACAAAA0AkAAAAAAADsPgAAW7gAAAAAAAABAAAAqAkAAAAAAADsPgAAhLgAAAAAAAACAAAAUAkAAAIAAAAICgAAAAAAAOw+AADIuAAAAAAAAAEAAAAgCgAAAAAAACA+AADeuAAA7D4AAPe4AAAAAAAAAgAAAFAJAAACAAAASAoAAAAAAADsPgAAO7kAAAAAAAABAAAAIAoAAAAAAADsPgAAkboAAAAAAAADAAAAUAkAAAIAAACICgAAAgAAAJAKAAAACAAAID4AAPi6AAAgPgAA1roAAOw+AAALuwAAAAAAAAMAAABQCQAAAgAAAIgKAAACAAAAwAoAAAAIAAAgPgAAULsAAOw+AAByuwAAAAAAAAIAAABQCQAAAgAAAOgKAAAACAAAID4AALe7AADsPgAAzLsAAAAAAAACAAAAUAkAAAIAAADoCgAAAAgAAOw+AAARvAAAAAAAAAIAAABQCQAAAgAAADALAAACAAAAID4AAC28AADsPgAAQrwAAAAAAAACAAAAUAkAAAIAAAAwCwAAAgAAAOw+AABevAAAAAAAAAIAAABQCQAAAgAAADALAAACAAAA7D4AAHq8AAAAAAAAAgAAAFAJAAACAAAAMAsAAAIAAADsPgAApbwAAAAAAAACAAAAUAkAAAIAAAC4CwAAAAAAACA+AADrvAAA7D4AAA+9AAAAAAAAAgAAAFAJAAACAAAA4AsAAAAAAAAgPgAAVb0AAOw+AAB0vQAAAAAAAAIAAABQCQAAAgAAAAgMAAAAAAAAID4AALq9AADsPgAA070AAAAAAAACAAAAUAkAAAIAAAAwDAAAAAAAACA+AAAZvgAA7D4AADK+AAAAAAAAAgAAAFAJAAACAAAAWAwAAAIAAAAgPgAAR74AAOw+AADevgAAAAAAAAIAAABQCQAAAgAAAFgMAAACAAAASD4AAF++AACQDAAAAAAAAOw+AACCvgAAAAAAAAIAAABQCQAAAgAAALAMAAACAAAAID4AAKW+AABIPgAAvL4AAJAMAAAAAAAA7D4AAPO+AAAAAAAAAgAAAFAJAAACAAAAsAwAAAIAAADsPgAAFb8AAAAAAAACAAAAUAkAAAIAAACwDAAAAgAAAOw+AAA3vwAAAAAAAAIAAABQCQAAAgAAALAMAAACAAAASD4AAFq/AABQCQAAAAAAAOw+AABwvwAAAAAAAAIAAABQCQAAAgAAAFgNAAACAAAAID4AAIK/AADsPgAAl78AAAAAAAACAAAAUAkAAAIAAABYDQAAAgAAAEg+AAC0vwAAUAkAAAAAAABIPgAAyb8AAFAJAAAAAAAAID4AAN6/AADsPgAA978AAAAAAAABAAAAoA0AAAAAAABIPgAAIsAAANANAAAAAAAAID4AAMrAAABIPgAAKsEAAOgNAAAAAAAASD4AANfAAAD4DQAAAAAAACA+AAD4wAAASD4AAAXBAADYDQAAAAAAAEg+AAAMwgAA0A0AAAAAAABIPgAAHMIAABAOAAAAAAAASD4AAFHCAADoDQAAAAAAAEg+AAAtwgAAMA4AAAAAAABIPgAAc8IAAOgNAAAAAAAAmD4AAJvCAACYPgAAncIAAJg+AACgwgAAmD4AAKLCAACYPgAApMIAAJg+AACmwgAAmD4AAKjCAACYPgAAqsIAAJg+AACswgAAmD4AAK7CAACYPgAAgrgAAJg+AACwwgAAmD4AALLCAACYPgAAtMIAAJg+AAC2wgAASD4AALjCAADoDQAAAAAAAEg+AADZwgAA2A0AAAAAAAAAAAAAQAAAAAEAAAAgDwAADAEAACABAAA0DwAAOAAAAAAAAABYAAAAAQAAAAIAAADI////yP///1gAAAADAAAABAAAAAAAAABIAAAABQAAAAYAAAABAAAAAQAAAAEAAAABAAAAAQAAAAIAAAACAAAAAwAAAAQAAAABAAAAAwAAAAIAAAAAAAAAaAAAAAIAAAAHAAAACAAAAAMAAAAEAAAAAAAAAHgAAAAFAAAACQAAAAoAAAADAAAABgAAAAAAAACIAAAABwAAAAcAAAALAAAAAwAAAAgAAABAAAAAAAAAACgBAAAMAAAADQAAADgAAAD4////KAEAAA4AAAAPAAAAwP///8D///8oAQAAEAAAABEAAADcDwAAzAAAAKQAAAC4AAAADAEAACABAAD0AAAA4AAAAAQQAADwDwAAAAAAANgDAAAgAAAAIQAAACIAAAADAAAAIwAAAAAAAADIAwAAJAAAACUAAAAmAAAAAwAAACcAAAAAAAAAuAMAACgAAAApAAAAKgAAAAMAAAArAAAAAAAAAKgDAAAJAAAALAAAAC0AAAADAAAACgAAAAAAAACYAwAALgAAAC8AAAAwAAAAAwAAADEAAAAAAAAAiAMAAAsAAAAHAAAAMgAAAAMAAAAMAAAAAAAAAHgDAAAzAAAANAAAADUAAAADAAAANgAAAAAAAABoAwAADQAAADcAAAA4AAAAAwAAAA4AAAAAAAAAWAMAADkAAAA6AAAAOwAAAAMAAAA8AAAAAAAAAEgDAAAPAAAABwAAAD0AAAADAAAAEAAAAAAAAAA4AwAAPgAAAD8AAABAAAAAAwAAAEEAAAAAAAAAKAMAABEAAABCAAAAQwAAAAMAAAASAAAAAAAAABgDAABEAAAARQAAAEYAAAADAAAARwAAAAAAAAAIAwAAEwAAAAcAAABIAAAAAwAAABQAAAAAAAAA+AIAAEkAAABKAAAASwAAAAMAAABMAAAAAAAAAOgCAAAVAAAABwAAAE0AAAADAAAAFgAAAAAAAADYAgAATgAAAE8AAABQAAAAAwAAAFEAAAAAAAAAyAIAABcAAABSAAAAUwAAAAMAAAAYAAAAAAAAALgCAABUAAAAVQAAAFYAAAADAAAAVwAAAAAAAACoAgAAGQAAAAcAAABYAAAAAwAAABoAAAAAAAAAmAIAAFkAAABaAAAAWwAAAAMAAABcAAAAAAAAAIgCAAAbAAAAXQAAAF4AAAADAAAAHAAAAAAAAAB4AgAAXwAAAGAAAABhAAAAAwAAAGIAAAAAAAAAaAIAAB0AAAAHAAAAYwAAAAMAAAAeAAAAAAAAAFgCAABkAAAAZQAAAGYAAAADAAAAZwAAAAAAAABIAgAAHwAAAAcAAABoAAAAAwAAACAAAAAAAAAAOAIAAGkAAABqAAAAawAAAAMAAABsAAAAAAAAACgCAAAhAAAABwAAAG0AAAADAAAAIgAAAAAAAAAYAgAAbgAAAG8AAABwAAAAAwAAAHEAAAAAAAAACAIAACMAAAByAAAAcwAAAAMAAAAkAAAAAAAAAPgBAAB0AAAAdQAAAHYAAAADAAAAdwAAAAAAAADYAQAAeAAAAHkAAAB6AAAAAwAAAHsAAAAAAAAAyAEAACUAAAAHAAAAfAAAAAMAAAAmAAAAAAAAALgBAAB9AAAAfgAAAH8AAAADAAAAgAAAAAAAAACoAQAAJwAAAIEAAACCAAAAAwAAACgAAAAAAAAAmAEAAIMAAACEAAAAhQAAAAMAAACGAAAAAAAAAIgBAAApAAAABwAAAIcAAAADAAAAKgAAAAAAAAB4AQAAiAAAAIkAAACKAAAAAwAAAIsAAAAAAAAAaAEAACsAAAAHAAAAjAAAAAMAAAAsAAAAAAAAAFgBAACNAAAAjgAAAI8AAAADAAAAkAAAAAAAAABIAQAALQAAAJEAAACSAAAAAwAAAC4AAAAAAAAAOAEAAJMAAACUAAAAlQAAAAMAAACWAAAAAAAAAOgBAAAvAAAAlwAAAJgAAAADAAAAMAAAAMZRAAAIFQAA9AMAAAgEAAAcFQAAPAAAAAAAAAAQBAAAmQAAAJoAAADE////xP///xAEAACbAAAAnAAAAAAAAAAgBAAAnQAAAJ4AAACfAAAAAwAAAKAAAAADAAAABAAAAAUAAAAGAAAAkAYAAKgOAACABQAAYA4AAIAFAADwBQAAgAUAAJAGAACgDgAAgAUAADAGAACABQAAoA4AADAGAACoBQAAaAUAAGAFAABgDgAAuAUAADgEAACgBAAAkAYAAHAOAACwBAAAyAQAAKAOAADYBAAAwA4AAPgEAACoDgAA+AQAAJAGAAD4BAAAkAYAAOgEAAAoBQAAaAQAACgFAAAYBQAAqA4AAJAGAAAIBQAAOAUAADAEAAA4BQAAkAYAAKAOAABIBQAAqA4AAEgFAAD4BQAASAUAADAGAAA4BQAAmA4AAJAGAAAQBgAAYA4AABAGAACoDgAAYA4AABAGAACoDgAAqA4AAKgOAAAgBgAAMAYAAPgFAACoDgAAcA4AAPgFAACoDgAAqA4AAHAGAABgDgAAcAYAAJAGAABgDgAAcAYAAKgOAACQBgAAqA4AAIAGAAAwBgAAWAYAAKgOAABwDgAAWAYAAKgOAACQBgAAAAAAAMgGAAChAAAAogAAAKMAAAAEAAAApAAAAAAAAADYBgAApQAAAKYAAACnAAAAAwAAAKgAAAAAAAAAAAAAAJxoAAAAAAAACAcAAKkAAACqAAAAqwAAAAMAAACsAAAAAAAAAPgGAACtAAAArgAAAK8AAAADAAAAsAAAAAAAAADoBgAAsQAAALIAAACzAAAAAwAAALQAAAAAAAAAAQAAAAIAAAAAAAAAAAAAANRsAAAHAAAAZAAAAAIdAQABAAAAAQAAAAUAAAACAAAAtQAAAAIAAAAxAAAAAAAAABgHAAC2AAAAtwAAAAUAAAAGAAAAAAAAACgHAAC4AAAAuQAAAAEAAAABAAAAAQAAADIAAAAAAAAASAcAALoAAAC7AAAAvAAAAAMAAAAQ1QAAYuoAAGrqAACK6gAACusAAArtAAAAAAAAENUAALrfAADC3wAA4t8AAGLgAABi4gAAAAAAABDVAAAS1QAAGtUAADrVAAC61QAAutcAAAAAAAAAAAAAAAAAAAr1AAAq9QAAqvUAAKr3AAAAAAAAAAAAAKr/AADK/wAASgABAEoCAQAAAAAAAAAAAEoKAQBqCgEA6goBAOoMAQAAAAAAYAcAALoAAAC9AAAAvgAAAAQAAAAAAAAAGgAAAAoAAAABAAAAAAAAAHAHAAC6AAAAvwAAAMAAAAAFAAAA/////wIAAAACAAAAAQAAAP////8CAAAAAQAAAAEAAAAdAAAAHgAAAB8AAAAgAAAAIQAAACEAAAAiAAAAIgAAACMAAAAjAAAAJAAAACQAAAAlAAAAKAAAAC0AAAAzAAAAOQAAAEAAAABIAAAAxQAAALkAAADJAAAAxQAAALkAAADJAAAAbgAAAJoAAAB6AAAAiQAAAIsAAACNAAAAnQAAAGsAAACLAAAAfgAAAGsAAACLAAAAfgAAAD8AAACYAAAAmAAAAG8AAACNAAAAmQAAAG8AAABbAAAAqwAAAIYAAACNAAAAeQAAAIwAAAA9AAAAmgAAAHkAAACMAAAAPQAAAJoAAABvAAAAbwAAAH0AAABuAAAAbgAAAF4AAAB8AAAAbAAAAHwAAABrAAAAfQAAAI0AAACzAAAAmQAAAH0AAABrAAAAfQAAAI0AAACzAAAAmQAAAH0AAABrAAAAfQAAAI0AAACzAAAAmQAAAH0AAACMAAAAiwAAALYAAAC2AAAAmAAAAIgAAACYAAAAiAAAAJkAAACIAAAAiwAAAG8AAACIAAAAiwAAAG8AAACbAAAAmgAAAIsAAACZAAAAiwAAAHsAAAB7AAAAPwAAAJkAAACmAAAAtwAAAIwAAACIAAAAmQAAAJoAAACmAAAAtwAAAIwAAACIAAAAmQAAAJoAAACmAAAAtwAAAIwAAACIAAAAmQAAAJoAAACqAAAAmQAAAHsAAAB7AAAAawAAAHkAAABrAAAAeQAAAKcAAACXAAAAtwAAAIwAAACXAAAAtwAAAIwAAACqAAAAmgAAAIsAAACZAAAAiwAAAHsAAAB7AAAAPwAAAHwAAACmAAAAtwAAAIwAAACIAAAAmQAAAJoAAACmAAAAtwAAAIwAAACIAAAAmQAAAJoAAACmAAAAtwAAAIwAAACIAAAAmQAAAJoAAACqAAAAmQAAAIoAAACKAAAAegAAAHkAAAB6AAAAeQAAAKcAAACXAAAAtwAAAIwAAACXAAAAtwAAAIwAAACNAAAAbwAAAIwAAACMAAAAjAAAAIwAAACKAAAAmQAAAIgAAACnAAAAmAAAAJgAAABrAAAApwAAAFsAAAB6AAAAawAAAKcAAABrAAAApwAAAFsAAABrAAAAawAAAKcAAACZAAAAmQAAAJkAAADIAAAAuQAAAKAAAACaAAAAmgAAAJoAAACMAAAAXAAAAIkAAACKAAAAjAAAAJgAAACKAAAAiwAAAJkAAABKAAAAlQAAAFwAAACLAAAAawAAAHoAAACYAAAAjAAAALMAAACmAAAAtgAAAIwAAADjAAAAegAAAMUAAACaAAAAxAAAAMQAAACnAAAAmgAAAJgAAACnAAAAtgAAALYAAACGAAAAlQAAAIgAAACZAAAAeQAAAIgAAACJAAAAqQAAAMIAAACmAAAApwAAAJoAAACnAAAAiQAAALYAAACaAAAAxAAAAKcAAACnAAAAmgAAAJgAAACnAAAAtgAAALYAAACGAAAAlQAAAIgAAACZAAAAeQAAAIgAAAB6AAAAqQAAANAAAACmAAAApwAAAJoAAACYAAAApwAAALYAAABuAAAAbgAAAHwAAAB9AAAAjAAAAJkAAAB9AAAAfwAAAIwAAABtAAAAbwAAAI8AAAB/AAAAbwAAAE8AAABsAAAAewAAAD8AAAB9AAAAbgAAAF4AAABuAAAAXwAAAE8AAAB9AAAAbwAAAG4AAABOAAAAbgAAAG8AAABvAAAAXwAAAF4AAABsAAAAewAAAGwAAAB9AAAAbgAAAHwAAABuAAAAXwAAAF4AAAB9AAAAbwAAAG8AAABPAAAAfQAAAH4AAABvAAAAbwAAAE8AAABsAAAAewAAAF0AAACZAAAAigAAAIoAAAB8AAAAigAAAF4AAADgAAAApwAAAHoAAABeAAAAigAAALYAAACaAAAAlQAAAGsAAACnAAAAmgAAAJUAAABcAAAApwAAAJoAAAC4AAAAmgAAALcAAAC4AAAAmgAAAIsAAACaAAAAmgAAAJoAAACLAAAAmgAAAJoAAACMAAAAxgAAAKkAAADGAAAAlQAAAIYAAAAAAAAAgAcAALoAAADBAAAAwgAAAAYAAAAAAAAAAAAAACAAAAAaAAAAFQAAABEAAAANAAAACQAAAAUAAAACAAAAAAAAAP7////7////9/////P////v////6////+b////g////5v///+v////v////8/////f////7/////v///wAAAAACAAAABQAAAAkAAAANAAAAEQAAABUAAAAaAAAAIAAAAADw//+a+f//cvz//4r9//8e/v//ev7//8X+//8A////xf7//3r+//8e/v//iv3//3L8//+a+f//APD//wAAAAADAAAAAwAAAAIAAAAAAAAAAwAAAAQAAAAEAAAAAAAAAAEAAAAAAAAAAgAAAAEAAAACAAAAAAAAAAMAAAABAAAAAwAAAAIAAAADAAAAAQAAAAAAAAACAAAAAAAAAAIAAAABAAAAAwAAAAAAAAADAAAAAQAAAAMAAAACAAAAAgAAwAMAAMAEAADABQAAwAYAAMAHAADACAAAwAkAAMAKAADACwAAwAwAAMANAADADgAAwA8AAMAQAADAEQAAwBIAAMATAADAFAAAwBUAAMAWAADAFwAAwBgAAMAZAADAGgAAwBsAAMAcAADAHQAAwB4AAMAfAADAAAAAswEAAMMCAADDAwAAwwQAAMMFAADDBgAAwwcAAMMIAADDCQAAwwoAAMMLAADDDAAAww0AANMOAADDDwAAwwAADLsBAAzDAgAMwwMADMMEAAzTGCEAABQAAABDLlVURi04AAAAAAAAAAAAAAAAAN4SBJUAAAAA/////////////////CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASCEAAAUAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAFAAAA8hQBAAAEAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAr/////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANDIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASCEAAMAiAAAJAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAABQAAAPoYAQAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQCMAAAUAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAFAAAAAh0BAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAP//////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVEAAAEAmAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAgAAAAMAAAAEAAAABQAAAAYAAAAHAAAACAAAAAkAAAAKAAAACwAAAAwAAAANAAAADgAAAA8AAAAQAAAAEQAAABIAAAATAAAAFAAAABUAAAAWAAAAFwAAABgAAAAZAAAAGgAAABsAAAAcAAAAHQAAAB4AAAAfAAAAIAAAACEAAAAiAAAAIwAAACQAAAAlAAAAJgAAACcAAAAoAAAAKQAAACoAAAArAAAALAAAAC0AAAAuAAAALwAAADAAAAAxAAAAMgAAADMAAAA0AAAANQAAADYAAAA3AAAAOAAAADkAAAA6AAAAOwAAADwAAAA9AAAAPgAAAD8AAABAAAAAQQAAAEIAAABDAAAARAAAAEUAAABGAAAARwAAAEgAAABJAAAASgAAAEsAAABMAAAATQAAAE4AAABPAAAAUAAAAFEAAABSAAAAUwAAAFQAAABVAAAAVgAAAFcAAABYAAAAWQAAAFoAAABbAAAAXAAAAF0AAABeAAAAXwAAAGAAAABBAAAAQgAAAEMAAABEAAAARQAAAEYAAABHAAAASAAAAEkAAABKAAAASwAAAEwAAABNAAAATgAAAE8AAABQAAAAUQAAAFIAAABTAAAAVAAAAFUAAABWAAAAVwAAAFgAAABZAAAAWgAAAHsAAAB8AAAAfQAAAH4AAAB/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABELAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAIAAAADAAAABAAAAAUAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAEAAAABEAAAASAAAAEwAAABQAAAAVAAAAFgAAABcAAAAYAAAAGQAAABoAAAAbAAAAHAAAAB0AAAAeAAAAHwAAACAAAAAhAAAAIgAAACMAAAAkAAAAJQAAACYAAAAnAAAAKAAAACkAAAAqAAAAKwAAACwAAAAtAAAALgAAAC8AAAAwAAAAMQAAADIAAAAzAAAANAAAADUAAAA2AAAANwAAADgAAAA5AAAAOgAAADsAAAA8AAAAPQAAAD4AAAA/AAAAQAAAAGEAAABiAAAAYwAAAGQAAABlAAAAZgAAAGcAAABoAAAAaQAAAGoAAABrAAAAbAAAAG0AAABuAAAAbwAAAHAAAABxAAAAcgAAAHMAAAB0AAAAdQAAAHYAAAB3AAAAeAAAAHkAAAB6AAAAWwAAAFwAAABdAAAAXgAAAF8AAABgAAAAYQAAAGIAAABjAAAAZAAAAGUAAABmAAAAZwAAAGgAAABpAAAAagAAAGsAAABsAAAAbQAAAG4AAABvAAAAcAAAAHEAAAByAAAAcwAAAHQAAAB1AAAAdgAAAHcAAAB4AAAAeQAAAHoAAAB7AAAAfAAAAH0AAAB+AAAAfwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAAGQAAADoAwAAECcAAKCGAQBAQg8AgJaYAADh9QVfcIkA/wkvDwAAAAAwCAAAwwAAAMQAAAAAAAAASAgAAMUAAADGAAAAAQAAAAEAAAACAAAAAwAAAAEAAAACAAAAAgAAAAcAAAAEAAAABwAAAAMAAAAIAAAAAAAAAFAIAADHAAAAyAAAAAcAAAAJAAAAAwAAAAQAAAAIAAAACQAAAAoAAAAKAAAACwAAAAkAAAALAAAACgAAAAgAAAAAAAAAWAgAABIAAAATAAAA+P////j///9YCAAAFAAAABUAAAAIMQAAHDEAAAgAAAAAAAAAcAgAAMkAAADKAAAA+P////j///9wCAAAywAAAMwAAAA4MQAATDEAABwAAAAwAAAABAAAAAAAAACgCAAAzQAAAM4AAAD8/////P///6AIAADPAAAA0AAAAHAxAACEMQAADAAAAAAAAAC4CAAAFgAAABcAAAAEAAAA+P///7gIAAAYAAAAGQAAAPT////0////uAgAABoAAAAbAAAAoDEAAOQIAAD4CAAAHAAAADAAAADIMQAAtDEAAAAAAAAACQAA0QAAANIAAAAIAAAACQAAAAMAAAAEAAAADAAAAAkAAAAKAAAACgAAAAsAAAAJAAAADAAAAAsAAAAAAAAAEAkAANMAAADUAAAACQAAAAEAAAACAAAAAwAAAA0AAAACAAAAAgAAAAcAAAAEAAAABwAAAA0AAAAMAAAAAAAAACAJAADVAAAA1gAAAAoAAAAJAAAAAwAAAAQAAAAIAAAACQAAAAoAAAAOAAAADwAAAA0AAAALAAAACgAAAAAAAAAwCQAA1wAAANgAAAALAAAAAQAAAAIAAAADAAAAAQAAAAIAAAACAAAAEAAAABEAAAAOAAAAAwAAAAgAAAAAAAAAQAkAANkAAADaAAAA2wAAAAEAAAAFAAAADgAAAAAAAABgCQAA3AAAAN0AAADbAAAAAgAAAAYAAAAPAAAAAAAAAHAJAADeAAAA3wAAANsAAAABAAAAAgAAAAMAAAAEAAAABQAAAAYAAAAHAAAACAAAAAkAAAAKAAAACwAAAAAAAACwCQAA4AAAAOEAAADbAAAADAAAAA0AAAAOAAAADwAAABAAAAARAAAAEgAAABMAAAAUAAAAFQAAABYAAAAAAAAA6AkAAOIAAADjAAAA2wAAAAMAAAAEAAAAFwAAAAUAAAAYAAAAAQAAAAIAAAAGAAAAAAAAACgKAADkAAAA5QAAANsAAAAHAAAACAAAABkAAAAJAAAAGgAAAAMAAAAEAAAACgAAAAAAAABgCgAA5gAAAOcAAADbAAAAEgAAABsAAAAcAAAAHQAAAB4AAAAfAAAAAQAAAPj///9gCgAAEwAAABQAAAAVAAAAFgAAABcAAAAYAAAAGQAAAAAAAACYCgAA6AAAAOkAAADbAAAAGgAAACAAAAAhAAAAIgAAACMAAAAkAAAAAgAAAPj///+YCgAAGwAAABwAAAAdAAAAHgAAAB8AAAAgAAAAIQAAACUAAABIAAAAOgAAACUAAABNAAAAOgAAACUAAABTAAAAAAAAACUAAABtAAAALwAAACUAAABkAAAALwAAACUAAAB5AAAAAAAAACUAAABJAAAAOgAAACUAAABNAAAAOgAAACUAAABTAAAAIAAAACUAAABwAAAAAAAAACUAAABhAAAAIAAAACUAAABiAAAAIAAAACUAAABkAAAAIAAAACUAAABIAAAAOgAAACUAAABNAAAAOgAAACUAAABTAAAAIAAAACUAAABZAAAAAAAAAEEAAABNAAAAAAAAAFAAAABNAAAAAAAAAEoAAABhAAAAbgAAAHUAAABhAAAAcgAAAHkAAAAAAAAARgAAAGUAAABiAAAAcgAAAHUAAABhAAAAcgAAAHkAAAAAAAAATQAAAGEAAAByAAAAYwAAAGgAAAAAAAAAQQAAAHAAAAByAAAAaQAAAGwAAAAAAAAATQAAAGEAAAB5AAAAAAAAAEoAAAB1AAAAbgAAAGUAAAAAAAAASgAAAHUAAABsAAAAeQAAAAAAAABBAAAAdQAAAGcAAAB1AAAAcwAAAHQAAAAAAAAAUwAAAGUAAABwAAAAdAAAAGUAAABtAAAAYgAAAGUAAAByAAAAAAAAAE8AAABjAAAAdAAAAG8AAABiAAAAZQAAAHIAAAAAAAAATgAAAG8AAAB2AAAAZQAAAG0AAABiAAAAZQAAAHIAAAAAAAAARAAAAGUAAABjAAAAZQAAAG0AAABiAAAAZQAAAHIAAAAAAAAASgAAAGEAAABuAAAAAAAAAEYAAABlAAAAYgAAAAAAAABNAAAAYQAAAHIAAAAAAAAAQQAAAHAAAAByAAAAAAAAAEoAAAB1AAAAbgAAAAAAAABKAAAAdQAAAGwAAAAAAAAAQQAAAHUAAABnAAAAAAAAAFMAAABlAAAAcAAAAAAAAABPAAAAYwAAAHQAAAAAAAAATgAAAG8AAAB2AAAAAAAAAEQAAABlAAAAYwAAAAAAAABTAAAAdQAAAG4AAABkAAAAYQAAAHkAAAAAAAAATQAAAG8AAABuAAAAZAAAAGEAAAB5AAAAAAAAAFQAAAB1AAAAZQAAAHMAAABkAAAAYQAAAHkAAAAAAAAAVwAAAGUAAABkAAAAbgAAAGUAAABzAAAAZAAAAGEAAAB5AAAAAAAAAFQAAABoAAAAdQAAAHIAAABzAAAAZAAAAGEAAAB5AAAAAAAAAEYAAAByAAAAaQAAAGQAAABhAAAAeQAAAAAAAABTAAAAYQAAAHQAAAB1AAAAcgAAAGQAAABhAAAAeQAAAAAAAABTAAAAdQAAAG4AAAAAAAAATQAAAG8AAABuAAAAAAAAAFQAAAB1AAAAZQAAAAAAAABXAAAAZQAAAGQAAAAAAAAAVAAAAGgAAAB1AAAAAAAAAEYAAAByAAAAaQAAAAAAAABTAAAAYQAAAHQAAAAAAAAAJQAAAG0AAAAvAAAAJQAAAGQAAAAvAAAAJQAAAHkAAAAlAAAAWQAAAC0AAAAlAAAAbQAAAC0AAAAlAAAAZAAAACUAAABJAAAAOgAAACUAAABNAAAAOgAAACUAAABTAAAAIAAAACUAAABwAAAAJQAAAEgAAAA6AAAAJQAAAE0AAAAlAAAASAAAADoAAAAlAAAATQAAADoAAAAlAAAAUwAAACUAAABIAAAAOgAAACUAAABNAAAAOgAAACUAAABTAAAAAAAAAMgKAADqAAAA6wAAANsAAAABAAAAAAAAAPAKAADsAAAA7QAAANsAAAACAAAAAAAAABALAADuAAAA7wAAANsAAAAiAAAAIwAAAAwAAAANAAAADgAAAA8AAAAkAAAAEAAAABEAAAAAAAAAOAsAAPAAAADxAAAA2wAAACUAAAAmAAAAEgAAABMAAAAUAAAAFQAAACcAAAAWAAAAFwAAAAAAAABYCwAA8gAAAPMAAADbAAAAKAAAACkAAAAYAAAAGQAAABoAAAAbAAAAKgAAABwAAAAdAAAAAAAAAHgLAAD0AAAA9QAAANsAAAArAAAALAAAAB4AAAAfAAAAIAAAACEAAAAtAAAAIgAAACMAAAAAAAAAmAsAAPYAAAD3AAAA2wAAAAMAAAAEAAAAAAAAAMALAAD4AAAA+QAAANsAAAAFAAAABgAAAAAAAADoCwAA+gAAAPsAAADbAAAAAQAAACUAAAAAAAAAEAwAAPwAAAD9AAAA2wAAAAIAAAAmAAAAAAAAADgMAAD+AAAA/wAAANsAAAAQAAAABAAAACQAAAAAAAAAYAwAAAABAAABAQAA2wAAABEAAAAFAAAAJQAAAAAAAAC4DAAAAgEAAAMBAADbAAAAAwAAAAQAAAALAAAALgAAAC8AAAAMAAAAMAAAAAAAAACADAAAAgEAAAQBAADbAAAAAwAAAAQAAAALAAAALgAAAC8AAAAMAAAAMAAAAAAAAADoDAAABQEAAAYBAADbAAAABQAAAAYAAAANAAAAMQAAADIAAAAOAAAAMwAAAAAAAAAoDQAABwEAAAgBAADbAAAAAAAAADgNAAAJAQAACgEAANsAAAAPAAAAEgAAABAAAAATAAAAEQAAAAIAAAAUAAAADwAAAAAAAACADQAACwEAAAwBAADbAAAANAAAADUAAAAmAAAAJwAAACgAAAAAAAAAkA0AAA0BAAAOAQAA2wAAADYAAAA3AAAAKQAAACoAAAArAAAAZgAAAGEAAABsAAAAcwAAAGUAAAAAAAAAdAAAAHIAAAB1AAAAZQAAAAAAAAAAAAAAUAkAAAIBAAAPAQAA2wAAAAAAAABgDQAAAgEAABABAADbAAAAFQAAAAMAAAAEAAAABQAAABIAAAAWAAAAEwAAABcAAAAUAAAABgAAABgAAAAQAAAAAAAAAMgMAAACAQAAEQEAANsAAAAHAAAACAAAABEAAAA4AAAAOQAAABIAAAA6AAAAAAAAAAgNAAACAQAAEgEAANsAAAAJAAAACgAAABMAAAA7AAAAPAAAABQAAAA9AAAAAAAAAJAMAAACAQAAEwEAANsAAAADAAAABAAAAAsAAAAuAAAALwAAAAwAAAAwAAAAAAAAAJAKAAATAAAAFAAAABUAAAAWAAAAFwAAABgAAAAZAAAAAAAAAMAKAAAbAAAAHAAAAB0AAAAeAAAAHwAAACAAAAAhAAAAAAAAAMANAAAUAQAAFQEAAD4AAAACAAAAAAAAANgNAAAWAQAAFwEAABgBAAAZAQAAGQAAAAYAAAABAAAABwAAAAAAAAAADgAAFgEAABoBAAAYAQAAGQEAABkAAAAHAAAAAgAAAAgAAAAAAAAAEA4AABsBAAAcAQAAPwAAAAAAAAAgDgAAGwEAAB0BAAA/AAAAAAAAAFAOAAAWAQAAHgEAABgBAAAZAQAAGgAAAAAAAABADgAAFgEAAB8BAAAYAQAAGQEAABsAAAAAAAAA2A4AABYBAAAgAQAAGAEAABkBAAAcAAAAAAAAAOgOAAAWAQAAIQEAABgBAAAZAQAAGQAAAAgAAAADAAAACQAAAAAAAAABAAEADAALAAoACwAQAAsAKAAhABgACwAUAAsAIAALAFAAIQASAAsADwALAEAAIQCgAGMABAADAAMAAgACAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAIAAgACAAIAAgACAAIAAgADIAIgAiACIAIgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAWAEwATABMAEwATABMAEwATABMAEwATABMAEwATABMAI2AjYCNgI2AjYCNgI2AjYCNgI2ATABMAEwATABMAEwATACNUI1QjVCNUI1QjVCMUIxQjFCMUIxQjFCMUIxQjFCMUIxQjFCMUIxQjFCMUIxQjFCMUIxQTABMAEwATABMAEwAjWCNYI1gjWCNYI1gjGCMYIxgjGCMYIxgjGCMYIxgjGCMYIxgjGCMYIxgjGCMYIxgjGCMYEwATABMAEwAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHwgAEJveDogACAtLS0tLQoAc2l6ZTogACAgIChoZWFkZXIgc2l6ZTogACkKAHZlcnNpb246IABmbGFnczogAE5TdDNfXzIxNWJhc2ljX3N0cmluZ2J1ZkljTlNfMTFjaGFyX3RyYWl0c0ljRUVOU185YWxsb2NhdG9ySWNFRUVFAE5TdDNfXzIxOWJhc2ljX29zdHJpbmdzdHJlYW1JY05TXzExY2hhcl90cmFpdHNJY0VFTlNfOWFsbG9jYXRvckljRUVFRQBONGhlaWY5Qm94SGVhZGVyRQBONGhlaWYzQm94RQBmdHlwIGJveCB0b28gc21hbGwgKGxlc3MgdGhhbiA4IGJ5dGVzKQBtYWpvciBicmFuZDogAG1pbm9yIHZlcnNpb246IABjb21wYXRpYmxlIGJyYW5kczogAE40aGVpZjhCb3hfZnR5cEUATWF4aW11bSBudW1iZXIgb2YgY2hpbGQgYm94ZXMgACBleGNlZWRlZC4ATlN0M19fMjE4YmFzaWNfc3RyaW5nc3RyZWFtSWNOU18xMWNoYXJfdHJhaXRzSWNFRU5TXzlhbGxvY2F0b3JJY0VFRUUAQm94IHNpemUgKAAgYnl0ZXMpIHNtYWxsZXIgdGhhbiBoZWFkZXIgc2l6ZSAoACBieXRlcykATlN0M19fMjIwX19zaGFyZWRfcHRyX2VtcGxhY2VJTjRoZWlmM0JveEVOU185YWxsb2NhdG9ySVMyX0VFRUUAbG9jYXRpb246IABONGhlaWY3Qm94X3VybEUATlN0M19fMjIwX19zaGFyZWRfcHRyX2VtcGxhY2VJTjRoZWlmN0JveF91cmxFTlNfOWFsbG9jYXRvcklTMl9FRUVFAE40aGVpZjhCb3hfZHJlZkUATlN0M19fMjIwX19zaGFyZWRfcHRyX2VtcGxhY2VJTjRoZWlmOEJveF9kcmVmRU5TXzlhbGxvY2F0b3JJUzJfRUVFRQBONGhlaWY4Qm94X2RpbmZFAE5TdDNfXzIyMF9fc2hhcmVkX3B0cl9lbXBsYWNlSU40aGVpZjhCb3hfZGluZkVOU185YWxsb2NhdG9ySVMyX0VFRUUAZ3JvdXAgdHlwZTogAHwgZ3JvdXAgaWQ6IAB8IGVudGl0eSBJRHM6IAAgAE40aGVpZjhCb3hfZ3JwbEUATlN0M19fMjIwX19zaGFyZWRfcHRyX2VtcGxhY2VJTjRoZWlmOEJveF9ncnBsRU5TXzlhbGxvY2F0b3JJUzJfRUVFRQBudW1iZXIgb2YgZGF0YSBieXRlczogAE40aGVpZjhCb3hfaWRhdEUATlN0M19fMjIwX19zaGFyZWRfcHRyX2VtcGxhY2VJTjRoZWlmOEJveF9pZGF0RU5TXzlhbGxvY2F0b3JJUzJfRUVFRQBjb25maWd1cmF0aW9uX3ZlcnNpb246IABnZW5lcmFsX3Byb2ZpbGVfc3BhY2U6IABnZW5lcmFsX3RpZXJfZmxhZzogAGdlbmVyYWxfcHJvZmlsZV9pZGM6IABnZW5lcmFsX3Byb2ZpbGVfY29tcGF0aWJpbGl0eV9mbGFnczogAGdlbmVyYWxfY29uc3RyYWludF9pbmRpY2F0b3JfZmxhZ3M6IABnZW5lcmFsX2xldmVsX2lkYzogAG1pbl9zcGF0aWFsX3NlZ21lbnRhdGlvbl9pZGM6IABwYXJhbGxlbGlzbV90eXBlOiAAY2hyb21hX2Zvcm1hdDogAGJpdF9kZXB0aF9sdW1hOiAAYml0X2RlcHRoX2Nocm9tYTogAGF2Z19mcmFtZV9yYXRlOiAAY29uc3RhbnRfZnJhbWVfcmF0ZTogAG51bV90ZW1wb3JhbF9sYXllcnM6IAB0ZW1wb3JhbF9pZF9uZXN0ZWQ6IABsZW5ndGhfc2l6ZTogADxhcnJheT4KAGFycmF5X2NvbXBsZXRlbmVzczogAE5BTF91bml0X3R5cGU6IABONGhlaWY4Qm94X2h2Y0NFAE5TdDNfXzIyMF9fc2hhcmVkX3B0cl9lbXBsYWNlSU40aGVpZjhCb3hfaHZjQ0VOU185YWxsb2NhdG9ySVMyX0VFRUUAcmVmZXJlbmNlIHdpdGggdHlwZSAnACcAIGZyb20gSUQ6IAAgdG8gSURzOiAATjRoZWlmOEJveF9pcmVmRQBOU3QzX18yMjBfX3NoYXJlZF9wdHJfZW1wbGFjZUlONGhlaWY4Qm94X2lyZWZFTlNfOWFsbG9jYXRvcklTMl9FRUVFAGNsZWFuX2FwZXJ0dXJlOiAALwAgeCAAb2Zmc2V0OiAAIDsgAE40aGVpZjhCb3hfY2xhcEUATlN0M19fMjIwX19zaGFyZWRfcHRyX2VtcGxhY2VJTjRoZWlmOEJveF9jbGFwRU5TXzlhbGxvY2F0b3JJUzJfRUVFRQBtaXJyb3IgYXhpczogAHZlcnRpY2FsCgBob3Jpem9udGFsCgBONGhlaWY4Qm94X2ltaXJFAE5TdDNfXzIyMF9fc2hhcmVkX3B0cl9lbXBsYWNlSU40aGVpZjhCb3hfaW1pckVOU185YWxsb2NhdG9ySVMyX0VFRUUAcm90YXRpb246IAAgZGVncmVlcyAoQ0NXKQoATjRoZWlmOEJveF9pcm90RQBOU3QzX18yMjBfX3NoYXJlZF9wdHJfZW1wbGFjZUlONGhlaWY4Qm94X2lyb3RFTlNfOWFsbG9jYXRvcklTMl9FRUVFAGF1eCB0eXBlOiAAYXV4IHN1YnR5cGVzOiAATjRoZWlmOEJveF9hdXhDRQBOU3QzX18yMjBfX3NoYXJlZF9wdHJfZW1wbGFjZUlONGhlaWY4Qm94X2F1eENFTlNfOWFsbG9jYXRvcklTMl9FRUVFAGltYWdlIHdpZHRoOiAAaW1hZ2UgaGVpZ2h0OiAATjRoZWlmOEJveF9pc3BlRQBOU3QzX18yMjBfX3NoYXJlZF9wdHJfZW1wbGFjZUlONGhlaWY4Qm94X2lzcGVFTlNfOWFsbG9jYXRvcklTMl9FRUVFAGFzc29jaWF0aW9ucyBmb3IgaXRlbSBJRDogAHByb3BlcnR5IGluZGV4OiAAIChlc3NlbnRpYWw6IABONGhlaWY4Qm94X2lwbWFFAE5TdDNfXzIyMF9fc2hhcmVkX3B0cl9lbXBsYWNlSU40aGVpZjhCb3hfaXBtYUVOU185YWxsb2NhdG9ySVMyX0VFRUUATjRoZWlmOEJveF9pcGNvRQBOU3QzX18yMjBfX3NoYXJlZF9wdHJfZW1wbGFjZUlONGhlaWY4Qm94X2lwY29FTlNfOWFsbG9jYXRvcklTMl9FRUVFAE40aGVpZjhCb3hfaXBycEUATlN0M19fMjIwX19zaGFyZWRfcHRyX2VtcGxhY2VJTjRoZWlmOEJveF9pcHJwRU5TXzlhbGxvY2F0b3JJUzJfRUVFRQBpdGVtX0lEOiAAaXRlbV9wcm90ZWN0aW9uX2luZGV4OiAAaXRlbV90eXBlOiAAaXRlbV9uYW1lOiAAY29udGVudF90eXBlOiAAY29udGVudF9lbmNvZGluZzogAGl0ZW0gdXJpIHR5cGU6IABoaWRkZW4gaXRlbTogAE40aGVpZjhCb3hfaW5mZUUATlN0M19fMjIwX19zaGFyZWRfcHRyX2VtcGxhY2VJTjRoZWlmOEJveF9pbmZlRU5TXzlhbGxvY2F0b3JJUzJfRUVFRQBONGhlaWY4Qm94X2lpbmZFAE5TdDNfXzIyMF9fc2hhcmVkX3B0cl9lbXBsYWNlSU40aGVpZjhCb3hfaWluZkVOU185YWxsb2NhdG9ySVMyX0VFRUUAaWxvYyBib3ggY29udGFpbnMgACBpdGVtcywgd2hpY2ggZXhjZWVkcyB0aGUgc2VjdXJpdHkgbGltaXQgb2YgACBpdGVtcy4ATnVtYmVyIG9mIGV4dGVudHMgaW4gaWxvYyBib3ggKAApIGV4Y2VlZHMgc2VjdXJpdHkgbGltaXQgKABpdGVtIElEOiAAICBjb25zdHJ1Y3Rpb24gbWV0aG9kOiAAICBkYXRhX3JlZmVyZW5jZV9pbmRleDogACAgYmFzZV9vZmZzZXQ6IAAgIGV4dGVudHM6IAAsADtpbmRleD0ATjRoZWlmOEJveF9pbG9jRQBOU3QzX18yMjBfX3NoYXJlZF9wdHJfZW1wbGFjZUlONGhlaWY4Qm94X2lsb2NFTlNfOWFsbG9jYXRvcklTMl9FRUVFAE40aGVpZjhCb3hfcGl0bUUATlN0M19fMjIwX19zaGFyZWRfcHRyX2VtcGxhY2VJTjRoZWlmOEJveF9waXRtRU5TXzlhbGxvY2F0b3JJUzJfRUVFRQBwcmVfZGVmaW5lZDogAGhhbmRsZXJfdHlwZTogAG5hbWU6IABONGhlaWY4Qm94X2hkbHJFAE5TdDNfXzIyMF9fc2hhcmVkX3B0cl9lbXBsYWNlSU40aGVpZjhCb3hfaGRsckVOU185YWxsb2NhdG9ySVMyX0VFRUUATlN0M19fMjIwX19zaGFyZWRfcHRyX2VtcGxhY2VJTjRoZWlmOEJveF9tZXRhRU5TXzlhbGxvY2F0b3JJUzJfRUVFRQBOU3QzX18yMjBfX3NoYXJlZF9wdHJfZW1wbGFjZUlONGhlaWY4Qm94X2Z0eXBFTlNfOWFsbG9jYXRvcklTMl9FRUVFAE40aGVpZjhCb3hfbWV0YUUARXh0ZW50IGluIGlsb2MgYm94IHJlZmVyZW5jZXMgZGF0YSBvdXRzaWRlIG9mIGZpbGUgYm91bmRzIAAocG9pbnRzIHRvIGZpbGUgcG9zaXRpb24gAGlsb2MgYm94IGNvbnRhaW5lZCAAIGJ5dGVzLCB0b3RhbCBtZW1vcnkgc2l6ZSB3b3VsZCBiZSAAIGJ5dGVzLCBleGNlZWRpbmcgdGhlIHNlY3VyaXR5IGxpbWl0IG9mIAAgYnl0ZXMAaWRhdCBib3ggcmVmZXJlbmNlZCBpbiBpcmVmIGJveCBpcyBub3QgcHJlc2VudCBpbiBmaWxlAGlkYXQgYm94IGNvbnRhaW5lZCAASXRlbSAoSUQ9ACkgaGFzIG5vIHByb3BlcnRpZXMgYXNzaWduZWQgdG8gaXQgaW4gaXBtYSBib3gATm9uZXhpc3RpbmcgcHJvcGVydHkgKGluZGV4PQApIGZvciBpdGVtIAAgSUQ9ACByZWZlcmVuY2VkIGluIGlwbWEgYm94AFVua25vd24gZXJyb3IAZXJyb3IuY2MAZ2V0X2Vycm9yX3N0cmluZwBEZWNvZGVyIHBsdWdpbiBnZW5lcmF0ZWQgYW4gZXJyb3IATWVtb3J5IGFsbG9jYXRpb24gZXJyb3IAVXNhZ2UgZXJyb3IAVW5zdXBwb3J0ZWQgZmVhdHVyZQBVbnN1cHBvcnRlZCBmaWxlLXR5cGUASW52YWxpZCBpbnB1dABJbnB1dCBmaWxlIGRvZXMgbm90IGV4aXN0AFVuc3VwcG9ydGVkIGNvbG9yIGNvbnZlcnNpb24AVW5zdXBwb3J0ZWQgZGF0YSB2ZXJzaW9uAFVuc3VwcG9ydGVkIGltYWdlIHR5cGUAVW5zdXBwb3J0ZWQgY29kZWMASW5kZXggb3V0IG9mIHJhbmdlAFRoZSB2ZXJzaW9uIG9mIHRoZSBwYXNzZWQgcGx1Z2luIGlzIG5vdCBzdXBwb3J0ZWQATm9uLWV4aXN0aW5nIGltYWdlIGNoYW5uZWwgcmVmZXJlbmNlZABOVUxMIGFyZ3VtZW50IHJlY2VpdmVkAE5vbi1leGlzdGluZyBpbWFnZSBJRCByZWZlcmVuY2VkAFNlY3VyaXR5IGxpbWl0IGV4Y2VlZGVkAE5vIG9yIGludmFsaWQgcHJpbWFyeSBpbWFnZQBUeXBlIG9mIGF1eGlsaWFyeSBpbWFnZSB1bnNwZWNpZmllZABPdmVybGF5IGltYWdlIG91dHNpZGUgb2YgY2FudmFzIGFyZWEASW52YWxpZCBvdmVybGF5IGRhdGEASW52YWxpZCBjbGVhbi1hcGVydHVyZSBzcGVjaWZpY2F0aW9uAEl0ZW0gaGFzIG5vIGRhdGEATm8gcHJvcGVydGllcyBhc3NpZ25lZCB0byBpdGVtACdpcG1hJyBib3ggcmVmZXJlbmNlcyBhIG5vbi1leGlzdGluZyBwcm9wZXJ0eQBOb3QgYSAncGljdCcgaGFuZGxlcgBObyAnaW5mZScgYm94AE5vICdpcmVmJyBib3gATm8gJ2lwcnAnIGJveABObyAnaWluZicgYm94AE5vICdpbG9jJyBib3gATm8gJ2lwbWEnIGJveABObyAnaXBjbycgYm94AE5vICdwaXRtJyBib3gATm8gJ2h2Y0MnIGJveABObyAnaGRscicgYm94AE5vICdtZXRhJyBib3gATm8gJ2lkYXQnIGJveABObyAnZnR5cCcgYm94AE1pc3NpbmcgZ3JpZCBpbWFnZXMASW52YWxpZCBncmlkIGRhdGEASW52YWxpZCBib3ggc2l6ZQBVbmV4cGVjdGVkIGVuZCBvZiBmaWxlAFVuc3BlY2lmaWVkADogAEZpbGUgZG9lcyBub3Qgc3VwcG9ydCB0aGUgJ2hlaWMnIGJyYW5kLgoATlN0M19fMjE5YmFzaWNfaXN0cmluZ3N0cmVhbUljTlNfMTFjaGFyX3RyYWl0c0ljRUVOU185YWxsb2NhdG9ySWNFRUVFAEl0ZW0gd2l0aCBJRCAAIGhhcyBubyBjb21wcmVzc2VkIGRhdGEAYml0X2RlcHRoID49IDEAaGVpZl9pbWFnZS5jYwBhZGRfcGxhbmUATlN0M19fMjIwX19zaGFyZWRfcHRyX2VtcGxhY2VJTjRoZWlmMTRIZWlmUGl4ZWxJbWFnZUVOU185YWxsb2NhdG9ySVMyX0VFRUUAQ2FuIGN1cnJlbnRseSBvbmx5IHJvdGF0ZSBpbWFnZXMgd2l0aCA4IGJpdHMgcGVyIHBpeGVsAENhbiBjdXJyZW50bHkgb25seSBmaWxsIGltYWdlcyB3aXRoIDggYml0cyBwZXIgcGl4ZWwAZmlsbF9SR0JfMTZiaXQAaW5fdyA+PSAwAG92ZXJsYXkAaW5faCA+PSAwAG91dF93ID49IDAAb3V0X2ggPj0gMABPdmVybGF5IGltYWdlIG91dHNpZGUgb2YgcmlnaHQgb3IgYm90dG9tIGNhbnZhcyBib3JkZXIAT3ZlcmxheSBpbWFnZSBvdXRzaWRlIG9mIGxlZnQgb3IgdG9wIGNhbnZhcyBib3JkZXIAaGVpZl9nZXRfdmVyc2lvbgBpaQBoZWlmX2dldF92ZXJzaW9uX251bWJlcgBoZWlmX2NvbnRleHRfYWxsb2MAaGVpZl9jb250ZXh0X2ZyZWUAdmlpAGhlaWZfY29udGV4dF9yZWFkX2Zyb21fbWVtb3J5AGlpaWkAaGVpZl9jb250ZXh0X2dldF9udW1iZXJfb2ZfdG9wX2xldmVsX2ltYWdlcwBpaWkAaGVpZl9qc19jb250ZXh0X2dldF9pbWFnZV9oYW5kbGUAaGVpZl9qc19kZWNvZGVfaW1hZ2UAaWlpaWkAaGVpZl9pbWFnZV9oYW5kbGVfcmVsZWFzZQBFcnJvcgB2AHZpAE9rAGVycm9yX2NvZGUAdmlpaQBzdWJfZXJyb3JfY29kZQBCaXRzdHJlYW1SYW5nZUJhc2UAQml0c3RyZWFtUmFuZ2UAZXJyb3IASW5kZW50AGdldF9pbmRlbnQAQm94SGVhZGVyAGdldF9ib3hfc2l6ZQBnZXRfaGVhZGVyX3NpemUAZ2V0X3Nob3J0X3R5cGUAZ2V0X3R5cGVfc3RyaW5nAGR1bXAAQm94AGdldF9jaGlsZF9ib3gAaQBIZWlmRmlsZQByZWFkX2Zyb21fbWVtb3J5AGdldF9udW1faW1hZ2VzAGdldF9wcmltYXJ5X2ltYWdlX0lEAGdldF9pdGVtX0lEcwBnZXRfY29tcHJlc3NlZF9pbWFnZV9kYXRhAGhlaWZfZXJyb3JfY29kZQBoZWlmX2Vycm9yX09rAGhlaWZfZXJyb3JfSW5wdXRfZG9lc19ub3RfZXhpc3QAaGVpZl9lcnJvcl9JbnZhbGlkX2lucHV0AGhlaWZfZXJyb3JfVW5zdXBwb3J0ZWRfZmlsZXR5cGUAaGVpZl9lcnJvcl9VbnN1cHBvcnRlZF9mZWF0dXJlAGhlaWZfZXJyb3JfVXNhZ2VfZXJyb3IAaGVpZl9lcnJvcl9NZW1vcnlfYWxsb2NhdGlvbl9lcnJvcgBoZWlmX3N1YmVycm9yX2NvZGUAaGVpZl9zdWJlcnJvcl9VbnNwZWNpZmllZABoZWlmX3N1YmVycm9yX0VuZF9vZl9kYXRhAGhlaWZfc3ViZXJyb3JfSW52YWxpZF9ib3hfc2l6ZQBoZWlmX3N1YmVycm9yX05vX2Z0eXBfYm94AGhlaWZfc3ViZXJyb3JfTm9faWRhdF9ib3gAaGVpZl9zdWJlcnJvcl9Ob19tZXRhX2JveABoZWlmX3N1YmVycm9yX05vX2hkbHJfYm94AGhlaWZfc3ViZXJyb3JfTm9fcGl0bV9ib3gAaGVpZl9zdWJlcnJvcl9Ob19pcGNvX2JveABoZWlmX3N1YmVycm9yX05vX2lwbWFfYm94AGhlaWZfc3ViZXJyb3JfTm9faWxvY19ib3gAaGVpZl9zdWJlcnJvcl9Ob19paW5mX2JveABoZWlmX3N1YmVycm9yX05vX2lwcnBfYm94AGhlaWZfc3ViZXJyb3JfTm9faXJlZl9ib3gAaGVpZl9zdWJlcnJvcl9Ob19waWN0X2hhbmRsZXIAaGVpZl9zdWJlcnJvcl9JcG1hX2JveF9yZWZlcmVuY2VzX25vbmV4aXN0aW5nX3Byb3BlcnR5AGhlaWZfc3ViZXJyb3JfTm9fcHJvcGVydGllc19hc3NpZ25lZF90b19pdGVtAGhlaWZfc3ViZXJyb3JfTm9faXRlbV9kYXRhAGhlaWZfc3ViZXJyb3JfSW52YWxpZF9ncmlkX2RhdGEAaGVpZl9zdWJlcnJvcl9NaXNzaW5nX2dyaWRfaW1hZ2VzAGhlaWZfc3ViZXJyb3JfU2VjdXJpdHlfbGltaXRfZXhjZWVkZWQAaGVpZl9zdWJlcnJvcl9Ob25leGlzdGluZ19pbWFnZV9yZWZlcmVuY2VkAGhlaWZfc3ViZXJyb3JfTnVsbF9wb2ludGVyX2FyZ3VtZW50AGhlaWZfc3ViZXJyb3JfVW5zdXBwb3J0ZWRfY29kZWMAaGVpZl9zdWJlcnJvcl9VbnN1cHBvcnRlZF9pbWFnZV90eXBlAGhlaWZfY29tcHJlc3Npb25fZm9ybWF0AGhlaWZfY29tcHJlc3Npb25fdW5kZWZpbmVkAGhlaWZfY29tcHJlc3Npb25fSEVWQwBoZWlmX2NvbXByZXNzaW9uX0FWQwBoZWlmX2NvbXByZXNzaW9uX0pQRUcAaGVpZl9jaHJvbWEAaGVpZl9jaHJvbWFfdW5kZWZpbmVkAGhlaWZfY2hyb21hX21vbm9jaHJvbWUAaGVpZl9jaHJvbWFfNDIwAGhlaWZfY2hyb21hXzQyMgBoZWlmX2Nocm9tYV80NDQAaGVpZl9jaHJvbWFfaW50ZXJsZWF2ZWRfMjRiaXQAaGVpZl9jb2xvcnNwYWNlAGhlaWZfY29sb3JzcGFjZV91bmRlZmluZWQAaGVpZl9jb2xvcnNwYWNlX1lDYkNyAGhlaWZfY29sb3JzcGFjZV9SR0IAaGVpZl9jb2xvcnNwYWNlX21vbm9jaHJvbWUAaGVpZl9jaGFubmVsAGhlaWZfY2hhbm5lbF9ZAGhlaWZfY2hhbm5lbF9DcgBoZWlmX2NoYW5uZWxfQ2IAaGVpZl9jaGFubmVsX1IAaGVpZl9jaGFubmVsX0cAaGVpZl9jaGFubmVsX0IAaGVpZl9jaGFubmVsX0FscGhhAGhlaWZfY2hhbm5lbF9pbnRlcmxlYXZlZABTdHJpbmdWZWN0b3IAVUludDMyVmVjdG9yAGhlaWZfY29udGV4dABoZWlmX2ltYWdlX2hhbmRsZQBoZWlmX2ltYWdlAGhlaWZfZXJyb3IAY29kZQBzdWJjb2RlADEwaGVpZl9lcnJvcgBQSzEwaGVpZl9pbWFnZQBQMTBoZWlmX2ltYWdlADEwaGVpZl9pbWFnZQBQSzE3aGVpZl9pbWFnZV9oYW5kbGUAUDE3aGVpZl9pbWFnZV9oYW5kbGUAMTdoZWlmX2ltYWdlX2hhbmRsZQBQSzEyaGVpZl9jb250ZXh0AFAxMmhlaWZfY29udGV4dAAxMmhlaWZfY29udGV4dABwdXNoX2JhY2sAcmVzaXplAHZpaWlpAHNpemUAc2V0AE4xMGVtc2NyaXB0ZW4zdmFsRQBQS05TdDNfXzI2dmVjdG9ySWpOU185YWxsb2NhdG9ySWpFRUVFAFBOU3QzX18yNnZlY3RvcklqTlNfOWFsbG9jYXRvcklqRUVFRQBOU3QzX18yNnZlY3RvcklqTlNfOWFsbG9jYXRvcklqRUVFRQBOU3QzX18yMTNfX3ZlY3Rvcl9iYXNlSWpOU185YWxsb2NhdG9ySWpFRUVFAE5TdDNfXzIyMF9fdmVjdG9yX2Jhc2VfY29tbW9uSUxiMUVFRQBOU3QzX18yMTJiYXNpY19zdHJpbmdJY05TXzExY2hhcl90cmFpdHNJY0VFTlNfOWFsbG9jYXRvckljRUVFRQBOU3QzX18yMjFfX2Jhc2ljX3N0cmluZ19jb21tb25JTGIxRUVFAFBLTlN0M19fMjZ2ZWN0b3JJTlNfMTJiYXNpY19zdHJpbmdJY05TXzExY2hhcl90cmFpdHNJY0VFTlNfOWFsbG9jYXRvckljRUVFRU5TNF9JUzZfRUVFRQBQTlN0M19fMjZ2ZWN0b3JJTlNfMTJiYXNpY19zdHJpbmdJY05TXzExY2hhcl90cmFpdHNJY0VFTlNfOWFsbG9jYXRvckljRUVFRU5TNF9JUzZfRUVFRQBOU3QzX18yNnZlY3RvcklOU18xMmJhc2ljX3N0cmluZ0ljTlNfMTFjaGFyX3RyYWl0c0ljRUVOU185YWxsb2NhdG9ySWNFRUVFTlM0X0lTNl9FRUVFAE5TdDNfXzIxM19fdmVjdG9yX2Jhc2VJTlNfMTJiYXNpY19zdHJpbmdJY05TXzExY2hhcl90cmFpdHNJY0VFTlNfOWFsbG9jYXRvckljRUVFRU5TNF9JUzZfRUVFRQAxMmhlaWZfY2hhbm5lbAAxNWhlaWZfY29sb3JzcGFjZQAxMWhlaWZfY2hyb21hADIzaGVpZl9jb21wcmVzc2lvbl9mb3JtYXQAdHlwZQBkYXRhAFBLTjRoZWlmOEhlaWZGaWxlRQBQTjRoZWlmOEhlaWZGaWxlRQBONGhlaWY4SGVpZkZpbGVFAE5TdDNfXzIxMHNoYXJlZF9wdHJJTjRoZWlmM0JveEVFRQBOMTBlbXNjcmlwdGVuMTVzbWFydF9wdHJfdHJhaXRJTlN0M19fMjEwc2hhcmVkX3B0cklONGhlaWYzQm94RUVFRTExdmFsX2RlbGV0ZXJFAE5TdDNfXzIyMF9fc2hhcmVkX3B0cl9wb2ludGVySVBONGhlaWYzQm94RU4xMGVtc2NyaXB0ZW4xNXNtYXJ0X3B0cl90cmFpdElOU18xMHNoYXJlZF9wdHJJUzJfRUVFMTF2YWxfZGVsZXRlckVOU185YWxsb2NhdG9ySVMyX0VFRUUAUEtONGhlaWYzQm94RQBQTjRoZWlmM0JveEUAUEtONGhlaWY5Qm94SGVhZGVyRQBQTjRoZWlmOUJveEhlYWRlckUAUEtONGhlaWY2SW5kZW50RQBQTjRoZWlmNkluZGVudEUATjRoZWlmNkluZGVudEUAUEtONGhlaWYyNEVtc2NyaXB0ZW5CaXRzdHJlYW1SYW5nZUUAUE40aGVpZjI0RW1zY3JpcHRlbkJpdHN0cmVhbVJhbmdlRQBONGhlaWYyNEVtc2NyaXB0ZW5CaXRzdHJlYW1SYW5nZUUAUEtONGhlaWYxNEJpdHN0cmVhbVJhbmdlRQBQTjRoZWlmMTRCaXRzdHJlYW1SYW5nZUUATjRoZWlmMTRCaXRzdHJlYW1SYW5nZUUAMThoZWlmX3N1YmVycm9yX2NvZGUAMTVoZWlmX2Vycm9yX2NvZGUAUEtONGhlaWY1RXJyb3JFAFBONGhlaWY1RXJyb3JFAE40aGVpZjVFcnJvckUAaXNfcHJpbWFyeQB0aHVtYm5haWxzAHdpZHRoAGhlaWdodABjaHJvbWEAY29sb3JzcGFjZQBoZWlmX2ltYWdlX2dldF9jaHJvbWFfZm9ybWF0KGltYWdlKSA9PSBoZWlmX2Nocm9tYV9pbnRlcmxlYXZlZF8yNGJpdAAuL2hlaWYtZW1zY3JpcHRlbi5oAGhlaWZfaW1hZ2VfZ2V0X2Nocm9tYV9mb3JtYXQoaW1hZ2UpID09IGhlaWZfY2hyb21hX21vbm9jaHJvbWUATlN0M19fMjIwX19zaGFyZWRfcHRyX2VtcGxhY2VJTjRoZWlmMTFIZWlmQ29udGV4dEVOU185YWxsb2NhdG9ySVMyX0VFRUUAMC4wLjEATGVzcyB0aGFuIDggYnl0ZXMgb2YgZGF0YQBHcmlkIGltYWdlIGRhdGEgaW5jb21wbGV0ZQAKAE92ZXJsYXkgaW1hZ2UgZGF0YSBpbmNvbXBsZXRlAE92ZXJsYXkgaW1hZ2UgZGF0YSB2ZXJzaW9uIAAgaXMgbm90IGltcGxlbWVudGVkIHlldAB4AGltYWdlX2luZGV4Pj0wICYmIGltYWdlX2luZGV4PG1fb2Zmc2V0cy5zaXplKCkAaGVpZl9jb250ZXh0LmNjAGdldF9vZmZzZXQAU3VjY2VzcwAncGl0bScgYm94IHJlZmVyZW5jZXMgYSBub24tZXhpc3RpbmcgaW1hZ2UAVG9vIG1hbnkgdGh1bWJuYWlsIHJlZmVyZW5jZXMAVGh1bWJuYWlsIHJlZmVyZW5jZXMgYSBub24tZXhpc3RpbmcgaW1hZ2UAVGh1bWJuYWlsIHJlZmVyZW5jZXMgYW5vdGhlciB0aHVtYm5haWwATm8gYXV4QyBwcm9wZXJ0eSBmb3IgaW1hZ2UgAFRvbyBtYW55IGF1eGlsaWFyeSBpbWFnZSByZWZlcmVuY2VzAHVybjptcGVnOmF2YzoyMDE1OmF1eGlkOjEASW1hZ2Ugc2l6ZSAAIGV4Y2VlZHMgdGhlIG1heGltdW0gaW1hZ2Ugc2l6ZSAARXhpZgBFeGlmIGRhdGEgbm90IGNvcnJlY3RseSBhc3NpZ25lZCB0byBpbWFnZQBFeGlmIGRhdGEgYXNzaWduZWQgdG8gbm9uLWV4aXN0aW5nIGltYWdlAE5TdDNfXzIyMF9fc2hhcmVkX3B0cl9lbXBsYWNlSU40aGVpZjEzSW1hZ2VNZXRhZGF0YUVOU185YWxsb2NhdG9ySVMyX0VFRUUATlN0M19fMjIwX19zaGFyZWRfcHRyX2VtcGxhY2VJTjRoZWlmMTFIZWlmQ29udGV4dDVJbWFnZUVOU185YWxsb2NhdG9ySVMzX0VFRUUATlN0M19fMjIwX19zaGFyZWRfcHRyX2VtcGxhY2VJTjRoZWlmOEhlaWZGaWxlRU5TXzlhbGxvY2F0b3JJUzJfRUVFRQBodmMxAGdyaWQAaWRlbgBpb3ZsAGltZ193aWR0aCA+PSAwAGRlY29kZV9pbWFnZQBpbWdfaGVpZ2h0ID49IDAATm8gaXJlZiBib3ggYXZhaWxhYmxlLCBidXQgbmVlZGVkIGZvciBpb3ZsIGltYWdlAE51bWJlciBvZiBpbWFnZSBvZmZzZXRzIGRvZXMgbm90IG1hdGNoIHRoZSBudW1iZXIgb2YgaW1hZ2UgcmVmZXJlbmNlcwBObyBpcmVmIGJveCBhdmFpbGFibGUsIGJ1dCBuZWVkZWQgZm9yIGlkZW4gaW1hZ2UAJ2lkZW4nIGltYWdlIHdpdGggbW9yZSB0aGFuIG9uZSByZWZlcmVuY2UgaW1hZ2UATm8gaXJlZiBib3ggYXZhaWxhYmxlLCBidXQgbmVlZGVkIGZvciBncmlkIGltYWdlAFRpbGVkIGltYWdlIHdpdGggAD0AIHRpbGVzLCBidXQgb25seSAAIHRpbGUgaW1hZ2VzIGluIGZpbGUAc3JjX3dpZHRoID49IDAAZGVjb2RlX2Z1bGxfZ3JpZF9pbWFnZQBzcmNfaGVpZ2h0ID49IDAAbGliZGUyNjUgSEVWQyBkZWNvZGVyACwgdmVyc2lvbiAAU3VjY2VzcwAxLjAuMgBkZTI2NS5jYwBkZTI2NV9zZXRfcGFyYW1ldGVyX2Jvb2wAY2hhbm5lbD49MCAmJiBjaGFubmVsIDw9IDIAZGUyNjVfZ2V0X2ltYWdlX3BsYW5lADE1ZGVjb2Rlcl9jb250ZXh0ADEyYmFzZV9jb250ZXh0ADExZXJyb3JfcXVldWUAdGhyZWFkX2NvbnRleHRzPT1OVUxMAGRlY2N0eC5jYwBhbGxvY2F0ZV90aHJlYWRfY29udGV4dHMAZGVjb2RlX3NsaWNlX3VuaXRfcGFyYWxsZWwAaW1nLT5udW1fdGhyZWFkc19hY3RpdmUoKSA9PSAwAGRlY29kZV9zbGljZV91bml0X3RpbGVzAG4gPCBuVGhyZWFkQ29udGV4dHMALi9kZWNjdHguaABnZXRfdGhyZWFkX2NvbnRleHQAZGVjb2RlX3NsaWNlX3VuaXRfV1BQAFBQUyAlZCBoYXMgbm90IGJlZW4gcmVhZAoAcHJvY2Vzc19zbGljZV9zZWdtZW50X2hlYWRlcgBoZHItPm51bV9yZWZfaWR4X2wwX2FjdGl2ZSA8PSAxNgBjb25zdHJ1Y3RfcmVmZXJlbmNlX3BpY3R1cmVfbGlzdHMAaGRyLT5udW1fcmVmX2lkeF9sMV9hY3RpdmUgPD0gMTYAY3R4LT5kcGIuaGFzX2ZyZWVfZHBiX3BpY3R1cmUodHJ1ZSkAZ2VuZXJhdGVfdW5hdmFpbGFibGVfcmVmZXJlbmNlX3BpY3R1cmUAaWR4Pj0wAG5hbABkZWNvZGUAZmFsbGJhY2stZGN0LmNjAHRyYW5zZm9ybV9za2lwXzhfZmFsbGJhY2sAdHJhbnNmb3JtX3NraXBfMTZfZmFsbGJhY2sAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBaWlhVUk5JQz02LiYfFg0E/PPq4drSysO9t7Kuq6implpXUEY5KxkJ9+fVx7qwqaamqbC6x9Xn9wkZKzlGUFdaWlJDLhb84cq3q6aossPa8w0mPU5YWlVJNh8E6tK9rqZZSzIS7s61p6e1zu4SMktZWUsyEu7Otaentc7uEjJLWVhDH/PKrqay0vwmSVpVPRbqw6umt9oELk5aUjYN4b2oVzkJ1bCmuucZRlpQK/fHqanH9ytQWkYZ57qmsNUJOVdVLvO9prfqJlJYNvzDprLhH05aPQTKqK7aFklaQw3Sq1Mk3K2t3CRTUyTcra3cJFNTJNytrdwkU1Mk3K2t3CRTUhbKpsMNTlUf0qa9BElYJtqot/xDWi7hq7LzPVo26q5QCbqp5zlaK9WmxxlXRvewsPdGVxnHptUrWjnnqboJUE78rrcNVUPqqMMfWjbaptIuWibKpuE9WBa9q/NJUgSyS+6nzjJZErW1ElkyzqfuS0vup84yWRK1tRJZMs6n7ktJ4abqTkPapvNSPdKo/FU2yqsEWC7Drg1aJr2yFloft0bVqQlaGbDHOVDnpvdXK7q6K1f3pudQOcewGVoJqdVGQ8qyJlXqpgRaDajhUi63wz1J0q4fWPOm/FoWq9pONr1AwMBAQMDAQEDAwEBAwMBAQMDAQEDAwEBAwMBAQMDAQD230lIfqPNa/KYWVdqyNkO9yk4mq+paBKYNWOGuLknDObDnWvepK0a61VcJphlQx8dQGaYJV9W6Riup91rnsDk2q/xY0sNSDaYmQ7LqWuG3SR+mFk692lrzrj0uqARVyjKnEku17lnOzlnutUsSpzIypxJLte5Zzs5Z7rVLEqcyLqYmNqYfPagWQ6sNSa4ETrL8UrfzVb3qWMPhWsraWtIrpjkZqUYJsFD3ulfnx1rV1VrH51e691CwCUapGTmmKyaoSfy9WtLhVbINPaY2Fq5S6spaw/NOqx8upkMEt1jaJK1T3NxTrSQkrVPc3FOtJCStU9zcU60kJK1T3NxTrSQfslrDBDaoUtrqSaZD89JVqy4NvVq3FiauWMr8PaZO4Rm6WrArCcdXqTn31VCmRufnRqZQ1fc5qVfHCSuwWroZFsNVpkna/C6yWq428+FDqFi9Hw3KUqZO0gQmt1qrPeoSzkunWbUy7u4ytVmnS84SEs5Lp1m1Mu7uMrVZp0vOEg3aPbJYplW3NuEEFtJDrlqmUr0u6vwfykmrWqhOwybzCecrx0awV6ZaqVC6OdUZ9/cZ1Tm6UKlaplewRscr5wkE8xbhJtI2w0O3Tq5VqFqmWqZYq1KySb09yi7aH+oN/Ch3aWR0aCYxKT09MABmYWxsYmFjay1tb3Rpb24uY2MAcHV0X3Vud2VpZ2h0ZWRfcHJlZF84X2ZhbGxiYWNrAGxvZzJXRD49MQBwdXRfd2VpZ2h0ZWRfcHJlZF84X2ZhbGxiYWNrAHB1dF93ZWlnaHRlZF9iaXByZWRfOF9mYWxsYmFjawBwdXRfd2VpZ2h0ZWRfcHJlZF9hdmdfOF9mYWxsYmFjawBwdXRfdW53ZWlnaHRlZF9wcmVkXzE2X2ZhbGxiYWNrAHB1dF93ZWlnaHRlZF9wcmVkXzE2X2ZhbGxiYWNrAHB1dF93ZWlnaHRlZF9iaXByZWRfMTZfZmFsbGJhY2sAcHV0X3dlaWdodGVkX3ByZWRfYXZnXzE2X2ZhbGxiYWNrACFyZW9yZGVyX291dHB1dF9xdWV1ZS5lbXB0eSgpAGRwYi5jYwBvdXRwdXRfbmV4dF9waWN0dXJlX2luX3Jlb3JkZXJfYnVmZmVyAG5ld19pbWFnZQBpbWctPnNwcy5CaXREZXB0aF9ZID49IDggJiYgaW1nLT5zcHMuQml0RGVwdGhfWSA8PSAxNgBpbWFnZS5jYwBkZTI2NV9pbWFnZV9nZXRfYnVmZmVyAGltZy0+c3BzLkJpdERlcHRoX0MgPj0gOCAmJiBpbWctPnNwcy5CaXREZXB0aF9DIDw9IDE2AHNwcwBhbGxvY19pbWFnZQBmaXJzdCAlIDIgPT0gMABjb3B5X2xpbmVzX2Zyb20AZW5kICUgMiA9PSAwAG5UaHJlYWRzUnVubmluZyA+PSAwAHRocmVhZF9maW5pc2hlcwAuL2ltYWdlLmgAcGVuZGluZ19pbnB1dF9OQUwgPT0gTlVMTABuYWwtcGFyc2VyLmNjAHB1c2hfTkFMAC0tLS0tLS0tLS0gUFBTIHJhbmdlLWV4dGVuc2lvbiAtLS0tLS0tLS0tCgBsb2cyX21heF90cmFuc2Zvcm1fc2tpcF9ibG9ja19zaXplICAgICAgOiAlZAoAY3Jvc3NfY29tcG9uZW50X3ByZWRpY3Rpb25fZW5hYmxlZF9mbGFnIDogJWQKAGNocm9tYV9xcF9vZmZzZXRfbGlzdF9lbmFibGVkX2ZsYWcgICAgICA6ICVkCgBkaWZmX2N1X2Nocm9tYV9xcF9vZmZzZXRfZGVwdGggICAgICAgICAgOiAlZAoAY2hyb21hX3FwX29mZnNldF9saXN0X2xlbiAgICAgICAgICAgICAgIDogJWQKAGNiX3FwX29mZnNldF9saXN0WyVkXSAgICAgICAgICAgICAgICAgICAgOiAlZAoAY3JfcXBfb2Zmc2V0X2xpc3RbJWRdICAgICAgICAgICAgICAgICAgICA6ICVkCgBsb2cyX3Nhb19vZmZzZXRfc2NhbGVfbHVtYSAgICAgICAgICAgICAgOiAlZAoAbG9nMl9zYW9fb2Zmc2V0X3NjYWxlX2Nocm9tYSAgICAgICAgICAgIDogJWQKAHRpbGVYPj0wICYmIHRpbGVZPj0wAHBwcy5jYwBzZXRfZGVyaXZlZF92YWx1ZXMALS0tLS0tLS0tLS0tLS0tLS0gUFBTIC0tLS0tLS0tLS0tLS0tLS0tCgBwaWNfcGFyYW1ldGVyX3NldF9pZCAgICAgICA6ICVkCgBzZXFfcGFyYW1ldGVyX3NldF9pZCAgICAgICA6ICVkCgBkZXBlbmRlbnRfc2xpY2Vfc2VnbWVudHNfZW5hYmxlZF9mbGFnIDogJWQKAHNpZ25fZGF0YV9oaWRpbmdfZmxhZyAgICAgIDogJWQKAGNhYmFjX2luaXRfcHJlc2VudF9mbGFnICAgIDogJWQKAG51bV9yZWZfaWR4X2wwX2RlZmF1bHRfYWN0aXZlIDogJWQKAG51bV9yZWZfaWR4X2wxX2RlZmF1bHRfYWN0aXZlIDogJWQKAHBpY19pbml0X3FwICAgICAgICAgICAgICAgIDogJWQKAGNvbnN0cmFpbmVkX2ludHJhX3ByZWRfZmxhZzogJWQKAHRyYW5zZm9ybV9za2lwX2VuYWJsZWRfZmxhZzogJWQKAGN1X3FwX2RlbHRhX2VuYWJsZWRfZmxhZyAgIDogJWQKAGRpZmZfY3VfcXBfZGVsdGFfZGVwdGggICAgIDogJWQKAHBpY19jYl9xcF9vZmZzZXQgICAgICAgICAgICAgOiAlZAoAcGljX2NyX3FwX29mZnNldCAgICAgICAgICAgICA6ICVkCgBwcHNfc2xpY2VfY2hyb21hX3FwX29mZnNldHNfcHJlc2VudF9mbGFnIDogJWQKAHdlaWdodGVkX3ByZWRfZmxhZyAgICAgICAgICAgOiAlZAoAd2VpZ2h0ZWRfYmlwcmVkX2ZsYWcgICAgICAgICA6ICVkCgBvdXRwdXRfZmxhZ19wcmVzZW50X2ZsYWcgICAgIDogJWQKAHRyYW5zcXVhbnRfYnlwYXNzX2VuYWJsZV9mbGFnOiAlZAoAdGlsZXNfZW5hYmxlZF9mbGFnICAgICAgICAgICA6ICVkCgBlbnRyb3B5X2NvZGluZ19zeW5jX2VuYWJsZWRfZmxhZzogJWQKAG51bV90aWxlX2NvbHVtbnMgICAgOiAlZAoAbnVtX3RpbGVfcm93cyAgICAgICA6ICVkCgB1bmlmb3JtX3NwYWNpbmdfZmxhZzogJWQKAHRpbGUgY29sdW1uIGJvdW5kYXJpZXM6IAB0aWxlIHJvdyBib3VuZGFyaWVzOiAAKiVkIABsb29wX2ZpbHRlcl9hY3Jvc3NfdGlsZXNfZW5hYmxlZF9mbGFnIDogJWQKAHBwc19sb29wX2ZpbHRlcl9hY3Jvc3Nfc2xpY2VzX2VuYWJsZWRfZmxhZzogJWQKAGRlYmxvY2tpbmdfZmlsdGVyX2NvbnRyb2xfcHJlc2VudF9mbGFnOiAlZAoAZGVibG9ja2luZ19maWx0ZXJfb3ZlcnJpZGVfZW5hYmxlZF9mbGFnOiAlZAoAcGljX2Rpc2FibGVfZGVibG9ja2luZ19maWx0ZXJfZmxhZzogJWQKAGJldGFfb2Zmc2V0OiAgJWQKAHRjX29mZnNldDogICAgJWQKAHBpY19zY2FsaW5nX2xpc3RfZGF0YV9wcmVzZW50X2ZsYWc6ICVkCgBsaXN0c19tb2RpZmljYXRpb25fcHJlc2VudF9mbGFnOiAlZAoAbG9nMl9wYXJhbGxlbF9tZXJnZV9sZXZlbCAgICAgIDogJWQKAG51bV9leHRyYV9zbGljZV9oZWFkZXJfYml0cyAgICA6ICVkCgBzbGljZV9zZWdtZW50X2hlYWRlcl9leHRlbnNpb25fcHJlc2VudF9mbGFnIDogJWQKAHBwc19leHRlbnNpb25fZmxhZyAgICAgICAgICAgIDogJWQKAHBwc19yYW5nZV9leHRlbnNpb25fZmxhZyAgICAgIDogJWQKAHBwc19tdWx0aWxheWVyX2V4dGVuc2lvbl9mbGFnIDogJWQKAHBwc19leHRlbnNpb25fNmJpdHMgICAgICAgICAgIDogJWQKAExvZzJNaW5DdVFwRGVsdGFTaXplICAgICAgICAgIDogJWQKAExvZzJNaW5DdUNocm9tYVFwT2Zmc2V0U2l6ZSAoUkV4dCkgOiAlZAoATG9nMk1heFRyYW5zZm9ybVNraXBTaXplICAgIChSRXh0KSA6ICVkCgBzYW8tJWQAMTV0aHJlYWRfdGFza19zYW8AMTF0aHJlYWRfdGFzawBTRUkgZGVjb2RlZCBwaWN0dXJlIE1ENSBtaXNtYXRjaCAoUE9DPSVkKQoAU0VJIGRlY29kZWQgcGljdHVyZSBoYXNoOiAlMDR4LCBkZWNvZGVkIHBpY3R1cmU6ICUwNHggKFBPQz0lZCkKAHNsaWNlLXNlZ21lbnQtJWQ7JWQAaW5pdFR5cGUgPj0gMCAmJiBpbml0VHlwZSA8PSAyAHNsaWNlLmNjAGluaXRpYWxpemVfQ0FCQUNfbW9kZWxzAGRlY29kZV9wYXJ0X21vZGUAAAECAgICAwUHCAoMDQ8REhMUFRYXFxgYGRkaGxscHB0dHh9yZWFkX2NvZGluZ191bml0AFByZWRNb2RlID09IGN1UHJlZE1vZGUAcmVhZF90cmFuc2Zvcm1fdHJlZQBjb250ZXh0ID49IDAgJiYgY29udGV4dCA8PSAyAGRlY29kZV9zcGxpdF90cmFuc2Zvcm1fZmxhZwAhKHRyYWZvRGVwdGg9PTAgJiYgbG9nMlRyYWZvU2l6ZT09MikAY2JmX2NiICE9IC0xAHJlYWRfdHJhbnNmb3JtX3VuaXQAY2JmX2NyICE9IC0xAGNiZl9sdW1hICE9IC0xAHg8c3BzLlBpY1dpZHRoSW5NaW5QVXMAc2V0X0ludHJhUHJlZE1vZGVDAHk8c3BzLlBpY0hlaWdodEluTWluUFVzAGlkeDxpbnRyYVByZWRNb2RlQy5kYXRhX3NpemUAMjV0aHJlYWRfdGFza19zbGljZV9zZWdtZW50AGN0Yi1yb3ctJWQAMTl0aHJlYWRfdGFza19jdGJfcm93AHBwcy0+cHBzX3JlYWQAZHVtcF9zbGljZV9zZWdtZW50X2hlYWRlcgBzcHMtPnNwc19yZWFkAC0tLS0tLS0tLS0tLS0tLS0tIFNMSUNFIC0tLS0tLS0tLS0tLS0tLS0tCgBmaXJzdF9zbGljZV9zZWdtZW50X2luX3BpY19mbGFnICAgICAgOiAlZAoAbm9fb3V0cHV0X29mX3ByaW9yX3BpY3NfZmxhZyAgICAgICAgIDogJWQKAHNsaWNlX3BpY19wYXJhbWV0ZXJfc2V0X2lkICAgICAgICAgICA6ICVkCgBkZXBlbmRlbnRfc2xpY2Vfc2VnbWVudF9mbGFnICAgICAgICAgOiAlZAoAc2xpY2Vfc2VnbWVudF9hZGRyZXNzICAgICAgICAgICAgICAgIDogJWQKAHNsaWNlX3R5cGUgICAgICAgICAgICAgICAgICAgICAgICAgICA6ICVjCgBwaWNfb3V0cHV0X2ZsYWcgICAgICAgICAgICAgICAgICAgICAgOiAlZAoAY29sb3VyX3BsYW5lX2lkICAgICAgICAgICAgICAgICAgICAgIDogJWQKAHNsaWNlX3BpY19vcmRlcl9jbnRfbHNiICAgICAgICAgICAgICA6ICVkCgBzaG9ydF90ZXJtX3JlZl9waWNfc2V0X3Nwc19mbGFnICAgICAgOiAlZAoAc2hvcnRfdGVybV9yZWZfcGljX3NldF9pZHggICAgICAgICAgIDogJWQKAG51bV9sb25nX3Rlcm1fc3BzICAgICAgICAgICAgICAgICAgICAgICAgOiAlZAoAbnVtX2xvbmdfdGVybV9waWNzICAgICAgICAgICAgICAgICAgICAgICA6ICVkCgBzbGljZV90ZW1wb3JhbF9tdnBfZW5hYmxlZF9mbGFnIDogJWQKAHNsaWNlX3Nhb19sdW1hX2ZsYWcgICAgICAgICAgICAgOiAlZAoAc2xpY2Vfc2FvX2Nocm9tYV9mbGFnICAgICAgICAgICA6ICVkCgBudW1fcmVmX2lkeF9hY3RpdmVfb3ZlcnJpZGVfZmxhZyA6ICVkCgAoZnJvbSBQUFMpAG51bV9yZWZfaWR4X2wwX2FjdGl2ZSAgICAgICAgICA6ICVkICVzCgBudW1fcmVmX2lkeF9sMV9hY3RpdmUgICAgICAgICAgOiAlZCAlcwoAcmVmX3BpY19saXN0X21vZGlmaWNhdGlvbl9mbGFnX2wwIDogJWQKACAgJWQ6ICVkCgByZWZfcGljX2xpc3RfbW9kaWZpY2F0aW9uX2ZsYWdfbDEgOiAlZAoAbXZkX2wxX3plcm9fZmxhZyAgICAgICAgICAgICAgIDogJWQKAGNhYmFjX2luaXRfZmxhZyAgICAgICAgICAgICAgICA6ICVkCgBjb2xsb2NhdGVkX2Zyb21fbDBfZmxhZyAgICAgICAgOiAlZAoAY29sbG9jYXRlZF9yZWZfaWR4ICAgICAgICAgICAgIDogJWQKAGx1bWFfbG9nMl93ZWlnaHRfZGVub20gICAgICAgICA6ICVkCgBDaHJvbWFMb2cyV2VpZ2h0RGVub20gICAgICAgICAgOiAlZAoATHVtYVdlaWdodF9MJWRbJWRdICAgICAgICAgICAgIDogJWQKAGx1bWFfb2Zmc2V0X2wlZFslZF0gICAgICAgICAgICA6ICVkCgBDaHJvbWFXZWlnaHRfTCVkWyVkXVslZF0gICAgICAgIDogJWQKAENocm9tYU9mZnNldF9MJWRbJWRdWyVkXSAgICAgICAgOiAlZAoAZml2ZV9taW51c19tYXhfbnVtX21lcmdlX2NhbmQgIDogJWQKAHNsaWNlX3FwX2RlbHRhICAgICAgICAgOiAlZAoAc2xpY2VfY2JfcXBfb2Zmc2V0ICAgICA6ICVkCgBzbGljZV9jcl9xcF9vZmZzZXQgICAgIDogJWQKAGRlYmxvY2tpbmdfZmlsdGVyX292ZXJyaWRlX2ZsYWcgOiAlZAoAKG92ZXJyaWRlKQAoZnJvbSBwcHMpAHNsaWNlX2RlYmxvY2tpbmdfZmlsdGVyX2Rpc2FibGVkX2ZsYWcgOiAlZCAlcwoAc2xpY2VfYmV0YV9vZmZzZXQgIDogJWQKAHNsaWNlX3RjX29mZnNldCAgICA6ICVkCgBzbGljZV9sb29wX2ZpbHRlcl9hY3Jvc3Nfc2xpY2VzX2VuYWJsZWRfZmxhZyA6ICVkCgBudW1fZW50cnlfcG9pbnRfb2Zmc2V0cyAgICA6ICVkCgBvZmZzZXRfbGVuICAgICAgICAgICAgICAgICA6ICVkCgBlbnRyeSBwb2ludCBbJWldIDogJWQKAAABBAUCAwQFBgYICAcHCGNjdHhJZHhMb29rdXBbbG9nMnctMl1bY0lkeF1bc2NhbklkeF1bcHJldkNzYmZdW3hDKyh5Qzw8bG9nMncpXSA9PSBjdHhJZHhJbmMAYWxsb2NfYW5kX2luaXRfc2lnbmlmaWNhbnRfY29lZmZfY3R4SWR4X2xvb2t1cFRhYmxlAHJlZjw3AHNwcy5jYwAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBEQERAREhESEhESFRMUFRQTFRgWFhgYFhYYGRkbHhsZGR0fIyMfHSQpLCkkLzY2L0FGQVhYcxAQEBAQEBAQEBARERERERISEhISEhQUFBQUFBQYGBgYGBgYGBkZGRkZGRkcHBwcHBwhISEhISkpKSk2NjZHR1tmaWxsX3NjYWxpbmdfZmFjdG9yAHNjYWxpbmdfbGlzdF9wcmVkX21hdHJpeF9pZF9kZWx0YT09MQByZWFkX3NjYWxpbmdfbGlzdAAtLS0tLS0tLS0tLS0tLS0tLSBTUFMgLS0tLS0tLS0tLS0tLS0tLS0KAHZpZGVvX3BhcmFtZXRlcl9zZXRfaWQgIDogJWQKAHNwc19tYXhfc3ViX2xheWVycyAgICAgIDogJWQKAHNwc190ZW1wb3JhbF9pZF9uZXN0aW5nX2ZsYWcgOiAlZAoAc2VxX3BhcmFtZXRlcl9zZXRfaWQgICAgOiAlZAoANDo0OjQAdW5rbm93bgBtb25vY2hyb21lADQ6MjowADQ6MjoyAGNocm9tYV9mb3JtYXRfaWRjICAgICAgIDogJWQgKCVzKQoAc2VwYXJhdGVfY29sb3VyX3BsYW5lX2ZsYWcgOiAlZAoAcGljX3dpZHRoX2luX2x1bWFfc2FtcGxlcyAgOiAlZAoAcGljX2hlaWdodF9pbl9sdW1hX3NhbXBsZXMgOiAlZAoAY29uZm9ybWFuY2Vfd2luZG93X2ZsYWcgICAgOiAlZAoAY29uZl93aW5fbGVmdF9vZmZzZXQgIDogJWQKAGNvbmZfd2luX3JpZ2h0X29mZnNldCA6ICVkCgBjb25mX3dpbl90b3Bfb2Zmc2V0ICAgOiAlZAoAY29uZl93aW5fYm90dG9tX29mZnNldDogJWQKAGJpdF9kZXB0aF9sdW1hICAgOiAlZAoAYml0X2RlcHRoX2Nocm9tYSA6ICVkCgBsb2cyX21heF9waWNfb3JkZXJfY250X2xzYiA6ICVkCgBzcHNfc3ViX2xheWVyX29yZGVyaW5nX2luZm9fcHJlc2VudF9mbGFnIDogJWQKAGxvZzJfbWluX2x1bWFfY29kaW5nX2Jsb2NrX3NpemUgOiAlZAoAbG9nMl9kaWZmX21heF9taW5fbHVtYV9jb2RpbmdfYmxvY2tfc2l6ZSA6ICVkCgBsb2cyX21pbl90cmFuc2Zvcm1fYmxvY2tfc2l6ZSAgIDogJWQKAGxvZzJfZGlmZl9tYXhfbWluX3RyYW5zZm9ybV9ibG9ja19zaXplIDogJWQKAG1heF90cmFuc2Zvcm1faGllcmFyY2h5X2RlcHRoX2ludGVyIDogJWQKAG1heF90cmFuc2Zvcm1faGllcmFyY2h5X2RlcHRoX2ludHJhIDogJWQKAHNjYWxpbmdfbGlzdF9lbmFibGVfZmxhZyA6ICVkCgBMYXllciAlZAoAICBzcHNfbWF4X2RlY19waWNfYnVmZmVyaW5nICAgICAgOiAlZAoAICBzcHNfbWF4X251bV9yZW9yZGVyX3BpY3MgICAgICAgOiAlZAoAICBzcHNfbWF4X2xhdGVuY3lfaW5jcmVhc2VfcGx1czEgOiAlZAoAc3BzX3NjYWxpbmdfbGlzdF9kYXRhX3ByZXNlbnRfZmxhZyA6ICVkCgBzY2FsaW5nIGxpc3QgbG9nZ2luZyBvdXRwdXQgbm90IGltcGxlbWVudGVkAGFtcF9lbmFibGVkX2ZsYWcgICAgICAgICAgICAgICAgICAgIDogJWQKAHNhbXBsZV9hZGFwdGl2ZV9vZmZzZXRfZW5hYmxlZF9mbGFnIDogJWQKAHBjbV9lbmFibGVkX2ZsYWcgICAgICAgICAgICAgICAgICAgIDogJWQKAHBjbV9zYW1wbGVfYml0X2RlcHRoX2x1bWEgICAgIDogJWQKAHBjbV9zYW1wbGVfYml0X2RlcHRoX2Nocm9tYSAgIDogJWQKAGxvZzJfbWluX3BjbV9sdW1hX2NvZGluZ19ibG9ja19zaXplIDogJWQKAGxvZzJfZGlmZl9tYXhfbWluX3BjbV9sdW1hX2NvZGluZ19ibG9ja19zaXplIDogJWQKAHBjbV9sb29wX2ZpbHRlcl9kaXNhYmxlX2ZsYWcgIDogJWQKAG51bV9zaG9ydF90ZXJtX3JlZl9waWNfc2V0cyA6ICVkCgBsb25nX3Rlcm1fcmVmX3BpY3NfcHJlc2VudF9mbGFnIDogJWQKAHJlZl9waWNfc2V0WyAlMmQgXTogAG51bV9sb25nX3Rlcm1fcmVmX3BpY3Nfc3BzIDogJWQKAGx0X3JlZl9waWNfcG9jX2xzYl9zcHNbJWRdIDogJWQgICAodXNlZF9ieV9jdXJyX3BpY19sdF9zcHNfZmxhZz0lZCkKAHNwc190ZW1wb3JhbF9tdnBfZW5hYmxlZF9mbGFnICAgICAgOiAlZAoAc3Ryb25nX2ludHJhX3Ntb290aGluZ19lbmFibGVfZmxhZyA6ICVkCgB2dWlfcGFyYW1ldGVyc19wcmVzZW50X2ZsYWcgICAgICAgIDogJWQKAHNwc19leHRlbnNpb25fcHJlc2VudF9mbGFnICAgIDogJWQKAHNwc19yYW5nZV9leHRlbnNpb25fZmxhZyAgICAgIDogJWQKAHNwc19tdWx0aWxheWVyX2V4dGVuc2lvbl9mbGFnIDogJWQKAHNwc19leHRlbnNpb25fNmJpdHMgICAgICAgICAgIDogJWQKAEN0YlNpemVZICAgICA6ICVkCgBNaW5DYlNpemVZICAgOiAlZAoATWF4Q2JTaXplWSAgIDogJWQKAE1pblRCU2l6ZVkgICA6ICVkCgBNYXhUQlNpemVZICAgOiAlZAoAUGljV2lkdGhJbkN0YnNZICAgICAgICAgOiAlZAoAUGljSGVpZ2h0SW5DdGJzWSAgICAgICAgOiAlZAoAU3ViV2lkdGhDICAgICAgICAgICAgICAgOiAlZAoAU3ViSGVpZ2h0QyAgICAgICAgICAgICAgOiAlZAoALS0tLS0tLS0tLS0tLS0tLS0gU1BTLXJhbmdlLWV4dGVuc2lvbiAtLS0tLS0tLS0tLS0tLS0tLQoAdHJhbnNmb3JtX3NraXBfcm90YXRpb25fZW5hYmxlZF9mbGFnICAgIDogJWQKAHRyYW5zZm9ybV9za2lwX2NvbnRleHRfZW5hYmxlZF9mbGFnICAgICA6ICVkCgBpbXBsaWNpdF9yZHBjbV9lbmFibGVkX2ZsYWcgICAgICAgICAgICAgOiAlZAoAZXhwbGljaXRfcmRwY21fZW5hYmxlZF9mbGFnICAgICAgICAgICAgIDogJWQKAGV4dGVuZGVkX3ByZWNpc2lvbl9wcm9jZXNzaW5nX2ZsYWcgICAgICA6ICVkCgBpbnRyYV9zbW9vdGhpbmdfZGlzYWJsZWRfZmxhZyAgICAgICAgICAgOiAlZAoAaGlnaF9wcmVjaXNpb25fb2Zmc2V0c19lbmFibGVkX2ZsYWcgICAgIDogJWQKAHBlcnNpc3RlbnRfcmljZV9hZGFwdGF0aW9uX2VuYWJsZWRfZmxhZyA6ICVkCgBjYWJhY19ieXBhc3NfYWxpZ25tZW50X2VuYWJsZWRfZmxhZyAgICAgOiAlZAoAdHJhbnNmb3JtLmNjADAAc2NhbGVfY29lZmZpY2llbnRzX2ludGVybmFsAHJkcGNtTW9kZT09MABFUlI6IABJTkZPOiAAdnBzLmNjAGFsbG9jYXRvcjxUPjo6YWxsb2NhdGUoc2l6ZV90IG4pICduJyBleGNlZWRzIG1heGltdW0gc3VwcG9ydGVkIHNpemUAZmlyc3RMYXllclJlYWQgPCBNQVhfVEVNUE9SQUxfU1VCTEFZRVJTAHJlYWQALS0tLS0tLS0tLS0tLS0tLS0gVlBTIC0tLS0tLS0tLS0tLS0tLS0tCgB2aWRlb19wYXJhbWV0ZXJfc2V0X2lkICAgICAgICAgICAgICAgIDogJWQKAHZwc19tYXhfbGF5ZXJzICAgICAgICAgICAgICAgICAgICAgICAgOiAlZAoAdnBzX21heF9zdWJfbGF5ZXJzICAgICAgICAgICAgICAgICAgICA6ICVkCgB2cHNfdGVtcG9yYWxfaWRfbmVzdGluZ19mbGFnICAgICAgICAgIDogJWQKACAgUHJvZmlsZS9UaWVyL0xldmVsIFtMYXllciAlZF0KAHZwc19zdWJfbGF5ZXJfb3JkZXJpbmdfaW5mb19wcmVzZW50X2ZsYWcgOiAlZAoAbGF5ZXIgJWQ6IHZwc19tYXhfZGVjX3BpY19idWZmZXJpbmcgPSAlZAoAICAgICAgICAgdnBzX21heF9udW1fcmVvcmRlcl9waWNzICA9ICVkCgAgICAgICAgICB2cHNfbWF4X2xhdGVuY3lfaW5jcmVhc2UgID0gJWQKAGxheWVyIChhbGwpOiB2cHNfbWF4X2RlY19waWNfYnVmZmVyaW5nID0gJWQKACAgICAgICAgICAgICB2cHNfbWF4X251bV9yZW9yZGVyX3BpY3MgID0gJWQKACAgICAgICAgICAgICB2cHNfbWF4X2xhdGVuY3lfaW5jcmVhc2UgID0gJWQKAHZwc19tYXhfbGF5ZXJfaWQgICA9ICVkCgB2cHNfbnVtX2xheWVyX3NldHMgPSAlZAoAdnBzX3RpbWluZ19pbmZvX3ByZXNlbnRfZmxhZyA9ICVkCgBsYXllcl9pZF9pbmNsdWRlZF9mbGFnWyVkXVslZF0gPSAlZAoAdnBzX251bV91bml0c19pbl90aWNrID0gJWQKAHZwc190aW1lX3NjYWxlICAgICAgICA9ICVkCgB2cHNfcG9jX3Byb3BvcnRpb25hbF90b190aW1pbmdfZmxhZyA9ICVkCgB2cHNfbnVtX3RpY2tzX3BvY19kaWZmX29uZSA9ICVkCgB2cHNfbnVtX2hyZF9wYXJhbWV0ZXJzICAgICA9ICVkCgBocmRfbGF5ZXJfc2V0X2lkeFslZF0gPSAlZAoAdnBzX2V4dGVuc2lvbl9mbGFnID0gJWQKAGdlbmVyYWwAc3ViX2xheWVyACAgJXNfcHJvZmlsZV9zcGFjZSAgICAgOiAlZAoAICAlc190aWVyX2ZsYWcgICAgICAgICA6ICVkCgAodW5rbm93bikARm9ybWF0UmFuZ2VFeHRlbnNpb25zAE1haW5TdGlsbFBpY3R1cmUATWFpbjEwAE1haW4AICAlc19wcm9maWxlX2lkYyAgICAgICA6ICVzCgAgICVzX3Byb2ZpbGVfY29tcGF0aWJpbGl0eV9mbGFnczogACoKACAgICAlc19wcm9ncmVzc2l2ZV9zb3VyY2VfZmxhZyA6ICVkCgAgICAgJXNfaW50ZXJsYWNlZF9zb3VyY2VfZmxhZyA6ICVkCgAgICAgJXNfbm9uX3BhY2tlZF9jb25zdHJhaW50X2ZsYWcgOiAlZAoAICAgICVzX2ZyYW1lX29ubHlfY29uc3RyYWludF9mbGFnIDogJWQKACosAColZAAgICVzX2xldmVsX2lkYyAgICAgICAgIDogJWQgKCU0LjJmKQoAdW5zcGVjaWZpZWQATUFDAFNFQ0FNAE5UU0MAUEFMAGNvbXBvbmVudAAtLS0tLS0tLS0tLS0tLS0tLSBWVUkgLS0tLS0tLS0tLS0tLS0tLS0KAHNhbXBsZSBhc3BlY3QgcmF0aW8gICAgICAgIDogJWQ6JWQKAG92ZXJzY2FuX2luZm9fcHJlc2VudF9mbGFnIDogJWQKAG92ZXJzY2FuX2FwcHJvcHJpYXRlX2ZsYWcgIDogJWQKAHZpZGVvX3NpZ25hbF90eXBlX3ByZXNlbnRfZmxhZzogJWQKACAgdmlkZW9fZm9ybWF0ICAgICAgICAgICAgICAgIDogJXMKACAgdmlkZW9fZnVsbF9yYW5nZV9mbGFnICAgICAgIDogJWQKACAgY29sb3VyX2Rlc2NyaXB0aW9uX3ByZXNlbnRfZmxhZyA6ICVkCgAgIGNvbG91cl9wcmltYXJpZXMgICAgICAgICAgICA6ICVkCgAgIHRyYW5zZmVyX2NoYXJhY3RlcmlzdGljcyAgICA6ICVkCgAgIG1hdHJpeF9jb2VmZnMgICAgICAgICAgICAgICA6ICVkCgBjaHJvbWFfbG9jX2luZm9fcHJlc2VudF9mbGFnOiAlZAoAICBjaHJvbWFfc2FtcGxlX2xvY190eXBlX3RvcF9maWVsZCAgIDogJWQKACAgY2hyb21hX3NhbXBsZV9sb2NfdHlwZV9ib3R0b21fZmllbGQ6ICVkCgBuZXV0cmFsX2Nocm9tYV9pbmRpY2F0aW9uX2ZsYWc6ICVkCgBmaWVsZF9zZXFfZmxhZyAgICAgICAgICAgICAgICA6ICVkCgBmcmFtZV9maWVsZF9pbmZvX3ByZXNlbnRfZmxhZyA6ICVkCgBkZWZhdWx0X2Rpc3BsYXlfd2luZG93X2ZsYWcgICA6ICVkCgAgIGRlZl9kaXNwX3dpbl9sZWZ0X29mZnNldCAgICA6ICVkCgAgIGRlZl9kaXNwX3dpbl9yaWdodF9vZmZzZXQgICA6ICVkCgAgIGRlZl9kaXNwX3dpbl90b3Bfb2Zmc2V0ICAgICA6ICVkCgAgIGRlZl9kaXNwX3dpbl9ib3R0b21fb2Zmc2V0ICA6ICVkCgB2dWlfdGltaW5nX2luZm9fcHJlc2VudF9mbGFnICA6ICVkCgAgIHZ1aV9udW1fdW5pdHNfaW5fdGljayAgICAgICA6ICVkCgAgIHZ1aV90aW1lX3NjYWxlICAgICAgICAgICAgICA6ICVkCgB2dWlfcG9jX3Byb3BvcnRpb25hbF90b190aW1pbmdfZmxhZyA6ICVkCgB2dWlfbnVtX3RpY2tzX3BvY19kaWZmX29uZSAgICAgICAgICA6ICVkCgB2dWlfaHJkX3BhcmFtZXRlcnNfcHJlc2VudF9mbGFnIDogJWQKAGJpdHN0cmVhbV9yZXN0cmljdGlvbl9mbGFnICAgICAgICAgOiAlZAoAICB0aWxlc19maXhlZF9zdHJ1Y3R1cmVfZmxhZyAgICAgICA6ICVkCgAgIG1vdGlvbl92ZWN0b3JzX292ZXJfcGljX2JvdW5kYXJpZXNfZmxhZyA6ICVkCgAgIHJlc3RyaWN0ZWRfcmVmX3BpY19saXN0c19mbGFnICAgIDogJWQKACAgbWluX3NwYXRpYWxfc2VnbWVudGF0aW9uX2lkYyAgICAgOiAlZAoAICBtYXhfYnl0ZXNfcGVyX3BpY19kZW5vbSAgICAgICAgICA6ICVkCgAgIG1heF9iaXRzX3Blcl9taW5fY3VfZGVub20gICAgICAgIDogJWQKACAgbG9nMl9tYXhfbXZfbGVuZ3RoX2hvcml6b250YWwgICAgOiAlZAoAICBsb2cyX21heF9tdl9sZW5ndGhfdmVydGljYWwgICAgICA6ICVkCgBiaXRzdHJlYW0uY2MAdmFsdWU+MABnZXRfdXZsYwCAsNDwgKfF44Ceu9h7lrLNdI6pw2+HoLlpgJivZHqQpl90iZ5aboKWVWh7jlFjdYdNXm+ASVlpekVVZHRCUF9uPkxaaDtIVmM4RVFeNUFNWTM+SVUwO0VQLjhCTCs1P0gpMjtFJzA4QSUtNj4jKzM7ISkwOCAnLjUeJSsyHSMpMBshJy0aHyUrGB4jKRccIScWGyAlFRoeIxQYHSETFxsfEhYaHhEVGRwQFBcbDxMWGQ4SFRgOERQXDRATFgwPEhUMDhEUCw4QEwsNDxIKDA8RCgwOEAkLDQ8JCwwOCAoMDggJCw0HCQsMBwkKDAcICgsGCAkLBgcJCgYHCAkCAgICBgUEBAMDAwMCAgICAgICAgEBAQEBAQEBAQEBAQEBAQEAAAECAgQEBQYHCAkJCwsMDQ0PDxAQEhITExUVFhYXGBgZGhobGxwdHR4eHh8gICEhISIiIyMjJCQkJSUlJiY/AQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2Nzg5Ojs8PT4+P2NhYmFjLmNjAGxlbmd0aCA+PSAwAGluaXRfQ0FCQUNfZGVjb2RlcgAlcCBjJ3RvciA9ICVwCgAlcCBkZXN0cnVjdG9yCgBtZnJlZSAlcAoAJXAgaW5pdAoAKnJlZmNudD4xAGNvbnRleHRtb2RlbC5jYwBkZWNvdXBsZV9vcl9hbGxvY193aXRoX2VtcHR5X2RhdGEAJXAgKGFsbG9jKQoAbW9kZWxbaV0uc3RhdGUgPD0gNjIAc2V0X2luaXRWYWx1ZQAlcCByZWxlYXNlICVwCgAlcCBkZWNvdXBsZSAoJXApCgByZWZjbnQAZGVjb3VwbGUAJXAgYXNzaWduID0gJXAKAGRlYmxvY2stJWQAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAQEBAQEBAgICAgMDAwMEBAQFBQYGBwgJCgsNDhASFBYYAAAAAAAAAAAAAAAAAAAAAAYHCAkKCwwNDg8QERIUFhgaHB4gIiQmKCosLjAyNDY4Ojw+QHJlZlBpY1EwPT1yZWZQaWNRMQBkZWJsb2NrLmNjAGRlcml2ZV9ib3VuZGFyeVN0cmVuZ3RoADI2dGhyZWFkX3Rhc2tfZGVibG9ja19DVEJSb3cAaW50cmFwcmVkLmNjAGludHJhUHJlZE1vZGU8MzUAaW50cmFfcHJlZGljdGlvbl9hbmd1bGFyAGludHJhUHJlZE1vZGU+PTIAaW50cmFfcHJlZGljdGlvbl9zYW1wbGVfZmlsdGVyaW5nAHNoZHItPnNsaWNlX3R5cGUgPT0gU0xJQ0VfVFlQRV9CAG1vdGlvbi5jYwBnZW5lcmF0ZV9pbnRlcl9wcmVkaWN0aW9uX3NhbXBsZXMAbWNfY2hyb21hAHVuaXRYID49IDAgJiYgdW5pdFggPCB3aWR0aF9pbl91bml0cwAuLi9saWJkZTI2NS9pbWFnZS5oAGdldAB1bml0WSA+PSAwICYmIHVuaXRZIDwgaGVpZ2h0X2luX3VuaXRzAGN0eC0+aGFzX2ltYWdlKGNvbFBpYykAZGVyaXZlX2NvbGxvY2F0ZWRfbW90aW9uX3ZlY3RvcnMAZGVyaXZlX2NvbWJpbmVkX2JpcHJlZGljdGl2ZV9tZXJnaW5nX2NhbmRpZGF0ZXMAcmVmUGljTGlzdD49MABkZXJpdmVfc3BhdGlhbF9sdW1hX3ZlY3Rvcl9wcmVkaWN0aW9uAG51bU1WUENhbmRMWD09MgBmaWxsX2x1bWFfbW90aW9uX3ZlY3Rvcl9wcmVkaWN0b3JzAFJJZHg+PTAAcmVmcGljLmNjAHJlYWRfc2hvcnRfdGVybV9yZWZfcGljX3NldABSSWR4ID49IDAgJiYgUklkeCA8IHNldHMuc2l6ZSgpAGo+PTAgJiYgaiA8IE1BWF9OVU1fUkVGX1BJQ1MAKiVkJWMgAColcwoAdm9pZABib29sAGNoYXIAc2lnbmVkIGNoYXIAdW5zaWduZWQgY2hhcgBzaG9ydAB1bnNpZ25lZCBzaG9ydABpbnQAdW5zaWduZWQgaW50AGxvbmcAdW5zaWduZWQgbG9uZwBmbG9hdABkb3VibGUAc3RkOjpzdHJpbmcAc3RkOjpiYXNpY19zdHJpbmc8dW5zaWduZWQgY2hhcj4Ac3RkOjp3c3RyaW5nAGVtc2NyaXB0ZW46OnZhbABlbXNjcmlwdGVuOjptZW1vcnlfdmlldzxjaGFyPgBlbXNjcmlwdGVuOjptZW1vcnlfdmlldzxzaWduZWQgY2hhcj4AZW1zY3JpcHRlbjo6bWVtb3J5X3ZpZXc8dW5zaWduZWQgY2hhcj4AZW1zY3JpcHRlbjo6bWVtb3J5X3ZpZXc8c2hvcnQ+AGVtc2NyaXB0ZW46Om1lbW9yeV92aWV3PHVuc2lnbmVkIHNob3J0PgBlbXNjcmlwdGVuOjptZW1vcnlfdmlldzxpbnQ+AGVtc2NyaXB0ZW46Om1lbW9yeV92aWV3PHVuc2lnbmVkIGludD4AZW1zY3JpcHRlbjo6bWVtb3J5X3ZpZXc8bG9uZz4AZW1zY3JpcHRlbjo6bWVtb3J5X3ZpZXc8dW5zaWduZWQgbG9uZz4AZW1zY3JpcHRlbjo6bWVtb3J5X3ZpZXc8aW50OF90PgBlbXNjcmlwdGVuOjptZW1vcnlfdmlldzx1aW50OF90PgBlbXNjcmlwdGVuOjptZW1vcnlfdmlldzxpbnQxNl90PgBlbXNjcmlwdGVuOjptZW1vcnlfdmlldzx1aW50MTZfdD4AZW1zY3JpcHRlbjo6bWVtb3J5X3ZpZXc8aW50MzJfdD4AZW1zY3JpcHRlbjo6bWVtb3J5X3ZpZXc8dWludDMyX3Q+AGVtc2NyaXB0ZW46Om1lbW9yeV92aWV3PGZsb2F0PgBlbXNjcmlwdGVuOjptZW1vcnlfdmlldzxkb3VibGU+AGVtc2NyaXB0ZW46Om1lbW9yeV92aWV3PGxvbmcgZG91YmxlPgBOMTBlbXNjcmlwdGVuMTFtZW1vcnlfdmlld0llRUUATjEwZW1zY3JpcHRlbjExbWVtb3J5X3ZpZXdJZEVFAE4xMGVtc2NyaXB0ZW4xMW1lbW9yeV92aWV3SWZFRQBOMTBlbXNjcmlwdGVuMTFtZW1vcnlfdmlld0ltRUUATjEwZW1zY3JpcHRlbjExbWVtb3J5X3ZpZXdJbEVFAE4xMGVtc2NyaXB0ZW4xMW1lbW9yeV92aWV3SWpFRQBOMTBlbXNjcmlwdGVuMTFtZW1vcnlfdmlld0lpRUUATjEwZW1zY3JpcHRlbjExbWVtb3J5X3ZpZXdJdEVFAE4xMGVtc2NyaXB0ZW4xMW1lbW9yeV92aWV3SXNFRQBOMTBlbXNjcmlwdGVuMTFtZW1vcnlfdmlld0loRUUATjEwZW1zY3JpcHRlbjExbWVtb3J5X3ZpZXdJYUVFAE4xMGVtc2NyaXB0ZW4xMW1lbW9yeV92aWV3SWNFRQBOU3QzX18yMTJiYXNpY19zdHJpbmdJd05TXzExY2hhcl90cmFpdHNJd0VFTlNfOWFsbG9jYXRvckl3RUVFRQBOU3QzX18yMTJiYXNpY19zdHJpbmdJaE5TXzExY2hhcl90cmFpdHNJaEVFTlNfOWFsbG9jYXRvckloRUVFRQARAAoAERERAAAAAAUAAAAAAAAJAAAAAAsAAAAAAAAAABEADwoREREDCgcAARMJCwsAAAkGCwAACwAGEQAAABEREQAAAAAAAAAAAAAAAAAAAAALAAAAAAAAAAARAAoKERERAAoAAAIACQsAAAAJAAsAAAsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAMAAAAAAkMAAAAAAAMAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAA0AAAAEDQAAAAAJDgAAAAAADgAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAPAAAAAA8AAAAACRAAAAAAABAAABAAABIAAAASEhIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEgAAABISEgAAAAAAAAkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAAAAAAAAAAAAAoAAAAACgAAAAAJCwAAAAAACwAACwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAwAAAAACQwAAAAAAAwAAAwAAC0rICAgMFgweAAobnVsbCkALTBYKzBYIDBYLTB4KzB4IDB4AGluZgBJTkYATkFOADAxMjM0NTY3ODlBQkNERUYuAFQhIhkNAQIDEUscDBAECx0SHidobm9wcWIgBQYPExQVGggWBygkFxgJCg4bHyUjg4J9JiorPD0+P0NHSk1YWVpbXF1eX2BhY2RlZmdpamtscnN0eXp7fABJbGxlZ2FsIGJ5dGUgc2VxdWVuY2UARG9tYWluIGVycm9yAFJlc3VsdCBub3QgcmVwcmVzZW50YWJsZQBOb3QgYSB0dHkAUGVybWlzc2lvbiBkZW5pZWQAT3BlcmF0aW9uIG5vdCBwZXJtaXR0ZWQATm8gc3VjaCBmaWxlIG9yIGRpcmVjdG9yeQBObyBzdWNoIHByb2Nlc3MARmlsZSBleGlzdHMAVmFsdWUgdG9vIGxhcmdlIGZvciBkYXRhIHR5cGUATm8gc3BhY2UgbGVmdCBvbiBkZXZpY2UAT3V0IG9mIG1lbW9yeQBSZXNvdXJjZSBidXN5AEludGVycnVwdGVkIHN5c3RlbSBjYWxsAFJlc291cmNlIHRlbXBvcmFyaWx5IHVuYXZhaWxhYmxlAEludmFsaWQgc2VlawBDcm9zcy1kZXZpY2UgbGluawBSZWFkLW9ubHkgZmlsZSBzeXN0ZW0ARGlyZWN0b3J5IG5vdCBlbXB0eQBDb25uZWN0aW9uIHJlc2V0IGJ5IHBlZXIAT3BlcmF0aW9uIHRpbWVkIG91dABDb25uZWN0aW9uIHJlZnVzZWQASG9zdCBpcyBkb3duAEhvc3QgaXMgdW5yZWFjaGFibGUAQWRkcmVzcyBpbiB1c2UAQnJva2VuIHBpcGUASS9PIGVycm9yAE5vIHN1Y2ggZGV2aWNlIG9yIGFkZHJlc3MAQmxvY2sgZGV2aWNlIHJlcXVpcmVkAE5vIHN1Y2ggZGV2aWNlAE5vdCBhIGRpcmVjdG9yeQBJcyBhIGRpcmVjdG9yeQBUZXh0IGZpbGUgYnVzeQBFeGVjIGZvcm1hdCBlcnJvcgBJbnZhbGlkIGFyZ3VtZW50AEFyZ3VtZW50IGxpc3QgdG9vIGxvbmcAU3ltYm9saWMgbGluayBsb29wAEZpbGVuYW1lIHRvbyBsb25nAFRvbyBtYW55IG9wZW4gZmlsZXMgaW4gc3lzdGVtAE5vIGZpbGUgZGVzY3JpcHRvcnMgYXZhaWxhYmxlAEJhZCBmaWxlIGRlc2NyaXB0b3IATm8gY2hpbGQgcHJvY2VzcwBCYWQgYWRkcmVzcwBGaWxlIHRvbyBsYXJnZQBUb28gbWFueSBsaW5rcwBObyBsb2NrcyBhdmFpbGFibGUAUmVzb3VyY2UgZGVhZGxvY2sgd291bGQgb2NjdXIAU3RhdGUgbm90IHJlY292ZXJhYmxlAFByZXZpb3VzIG93bmVyIGRpZWQAT3BlcmF0aW9uIGNhbmNlbGVkAEZ1bmN0aW9uIG5vdCBpbXBsZW1lbnRlZABObyBtZXNzYWdlIG9mIGRlc2lyZWQgdHlwZQBJZGVudGlmaWVyIHJlbW92ZWQARGV2aWNlIG5vdCBhIHN0cmVhbQBObyBkYXRhIGF2YWlsYWJsZQBEZXZpY2UgdGltZW91dABPdXQgb2Ygc3RyZWFtcyByZXNvdXJjZXMATGluayBoYXMgYmVlbiBzZXZlcmVkAFByb3RvY29sIGVycm9yAEJhZCBtZXNzYWdlAEZpbGUgZGVzY3JpcHRvciBpbiBiYWQgc3RhdGUATm90IGEgc29ja2V0AERlc3RpbmF0aW9uIGFkZHJlc3MgcmVxdWlyZWQATWVzc2FnZSB0b28gbGFyZ2UAUHJvdG9jb2wgd3JvbmcgdHlwZSBmb3Igc29ja2V0AFByb3RvY29sIG5vdCBhdmFpbGFibGUAUHJvdG9jb2wgbm90IHN1cHBvcnRlZABTb2NrZXQgdHlwZSBub3Qgc3VwcG9ydGVkAE5vdCBzdXBwb3J0ZWQAUHJvdG9jb2wgZmFtaWx5IG5vdCBzdXBwb3J0ZWQAQWRkcmVzcyBmYW1pbHkgbm90IHN1cHBvcnRlZCBieSBwcm90b2NvbABBZGRyZXNzIG5vdCBhdmFpbGFibGUATmV0d29yayBpcyBkb3duAE5ldHdvcmsgdW5yZWFjaGFibGUAQ29ubmVjdGlvbiByZXNldCBieSBuZXR3b3JrAENvbm5lY3Rpb24gYWJvcnRlZABObyBidWZmZXIgc3BhY2UgYXZhaWxhYmxlAFNvY2tldCBpcyBjb25uZWN0ZWQAU29ja2V0IG5vdCBjb25uZWN0ZWQAQ2Fubm90IHNlbmQgYWZ0ZXIgc29ja2V0IHNodXRkb3duAE9wZXJhdGlvbiBhbHJlYWR5IGluIHByb2dyZXNzAE9wZXJhdGlvbiBpbiBwcm9ncmVzcwBTdGFsZSBmaWxlIGhhbmRsZQBSZW1vdGUgSS9PIGVycm9yAFF1b3RhIGV4Y2VlZGVkAE5vIG1lZGl1bSBmb3VuZABXcm9uZyBtZWRpdW0gdHlwZQBObyBlcnJvciBpbmZvcm1hdGlvbgAA/////////////////////////////////////////////////////////////////wABAgMEBQYHCAn/////////CgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiP///////8KCwwNDg8QERITFBUWFxgZGhscHR4fICEiI/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8AAQIEBwMGBQBpbmZpbml0eQBuYW4ATENfQUxMAExDX0NUWVBFAAAAAExDX05VTUVSSUMAAExDX1RJTUUAAAAAAExDX0NPTExBVEUAAExDX01PTkVUQVJZAExDX01FU1NBR0VTAExBTkcAQy5VVEYtOABQT1NJWABNVVNMX0xPQ1BBVEgATlN0M19fMjhpb3NfYmFzZUUATlN0M19fMjliYXNpY19pb3NJY05TXzExY2hhcl90cmFpdHNJY0VFRUUATlN0M19fMjliYXNpY19pb3NJd05TXzExY2hhcl90cmFpdHNJd0VFRUUATlN0M19fMjE1YmFzaWNfc3RyZWFtYnVmSWNOU18xMWNoYXJfdHJhaXRzSWNFRUVFAE5TdDNfXzIxNWJhc2ljX3N0cmVhbWJ1Zkl3TlNfMTFjaGFyX3RyYWl0c0l3RUVFRQBOU3QzX18yMTNiYXNpY19pc3RyZWFtSWNOU18xMWNoYXJfdHJhaXRzSWNFRUVFAE5TdDNfXzIxM2Jhc2ljX2lzdHJlYW1Jd05TXzExY2hhcl90cmFpdHNJd0VFRUUATlN0M19fMjEzYmFzaWNfb3N0cmVhbUljTlNfMTFjaGFyX3RyYWl0c0ljRUVFRQBOU3QzX18yMTNiYXNpY19vc3RyZWFtSXdOU18xMWNoYXJfdHJhaXRzSXdFRUVFAE5TdDNfXzIxNGJhc2ljX2lvc3RyZWFtSWNOU18xMWNoYXJfdHJhaXRzSWNFRUVFAE5TdDNfXzIxMV9fc3Rkb3V0YnVmSXdFRQBOU3QzX18yMTFfX3N0ZG91dGJ1ZkljRUUAdW5zdXBwb3J0ZWQgbG9jYWxlIGZvciBzdGFuZGFyZCBpbnB1dABOU3QzX18yMTBfX3N0ZGluYnVmSXdFRQBOU3QzX18yMTBfX3N0ZGluYnVmSWNFRQBOU3QzX18yN2NvbGxhdGVJY0VFAE5TdDNfXzI2bG9jYWxlNWZhY2V0RQBOU3QzX18yN2NvbGxhdGVJd0VFADAxMjM0NTY3ODlhYmNkZWZBQkNERUZ4WCstcFBpSW5OACVwAEMATlN0M19fMjdudW1fZ2V0SWNOU18xOWlzdHJlYW1idWZfaXRlcmF0b3JJY05TXzExY2hhcl90cmFpdHNJY0VFRUVFRQBOU3QzX18yOV9fbnVtX2dldEljRUUATlN0M19fMjE0X19udW1fZ2V0X2Jhc2VFAE5TdDNfXzI3bnVtX2dldEl3TlNfMTlpc3RyZWFtYnVmX2l0ZXJhdG9ySXdOU18xMWNoYXJfdHJhaXRzSXdFRUVFRUUATlN0M19fMjlfX251bV9nZXRJd0VFACVwAAAAAEwAbGwAJQAAAAAAbABOU3QzX18yN251bV9wdXRJY05TXzE5b3N0cmVhbWJ1Zl9pdGVyYXRvckljTlNfMTFjaGFyX3RyYWl0c0ljRUVFRUVFAE5TdDNfXzI5X19udW1fcHV0SWNFRQBOU3QzX18yMTRfX251bV9wdXRfYmFzZUUATlN0M19fMjdudW1fcHV0SXdOU18xOW9zdHJlYW1idWZfaXRlcmF0b3JJd05TXzExY2hhcl90cmFpdHNJd0VFRUVFRQBOU3QzX18yOV9fbnVtX3B1dEl3RUUAJUg6JU06JVMAJW0vJWQvJXkAJUk6JU06JVMgJXAAJWEgJWIgJWQgJUg6JU06JVMgJVkAQU0AUE0ASmFudWFyeQBGZWJydWFyeQBNYXJjaABBcHJpbABNYXkASnVuZQBKdWx5AEF1Z3VzdABTZXB0ZW1iZXIAT2N0b2JlcgBOb3ZlbWJlcgBEZWNlbWJlcgBKYW4ARmViAE1hcgBBcHIASnVuAEp1bABBdWcAU2VwAE9jdABOb3YARGVjAFN1bmRheQBNb25kYXkAVHVlc2RheQBXZWRuZXNkYXkAVGh1cnNkYXkARnJpZGF5AFNhdHVyZGF5AFN1bgBNb24AVHVlAFdlZABUaHUARnJpAFNhdAAlbS8lZC8leSVZLSVtLSVkJUk6JU06JVMgJXAlSDolTSVIOiVNOiVTJUg6JU06JVNOU3QzX18yOHRpbWVfZ2V0SWNOU18xOWlzdHJlYW1idWZfaXRlcmF0b3JJY05TXzExY2hhcl90cmFpdHNJY0VFRUVFRQBOU3QzX18yMjBfX3RpbWVfZ2V0X2Nfc3RvcmFnZUljRUUATlN0M19fMjl0aW1lX2Jhc2VFAE5TdDNfXzI4dGltZV9nZXRJd05TXzE5aXN0cmVhbWJ1Zl9pdGVyYXRvckl3TlNfMTFjaGFyX3RyYWl0c0l3RUVFRUVFAE5TdDNfXzIyMF9fdGltZV9nZXRfY19zdG9yYWdlSXdFRQBOU3QzX18yOHRpbWVfcHV0SWNOU18xOW9zdHJlYW1idWZfaXRlcmF0b3JJY05TXzExY2hhcl90cmFpdHNJY0VFRUVFRQBOU3QzX18yMTBfX3RpbWVfcHV0RQBOU3QzX18yOHRpbWVfcHV0SXdOU18xOW9zdHJlYW1idWZfaXRlcmF0b3JJd05TXzExY2hhcl90cmFpdHNJd0VFRUVFRQBOU3QzX18yMTBtb25leXB1bmN0SWNMYjBFRUUATlN0M19fMjEwbW9uZXlfYmFzZUUATlN0M19fMjEwbW9uZXlwdW5jdEljTGIxRUVFAE5TdDNfXzIxMG1vbmV5cHVuY3RJd0xiMEVFRQBOU3QzX18yMTBtb25leXB1bmN0SXdMYjFFRUUAMDEyMzQ1Njc4OQAlTGYATlN0M19fMjltb25leV9nZXRJY05TXzE5aXN0cmVhbWJ1Zl9pdGVyYXRvckljTlNfMTFjaGFyX3RyYWl0c0ljRUVFRUVFAE5TdDNfXzIxMV9fbW9uZXlfZ2V0SWNFRQAwMTIzNDU2Nzg5AE5TdDNfXzI5bW9uZXlfZ2V0SXdOU18xOWlzdHJlYW1idWZfaXRlcmF0b3JJd05TXzExY2hhcl90cmFpdHNJd0VFRUVFRQBOU3QzX18yMTFfX21vbmV5X2dldEl3RUUAJS4wTGYATlN0M19fMjltb25leV9wdXRJY05TXzE5b3N0cmVhbWJ1Zl9pdGVyYXRvckljTlNfMTFjaGFyX3RyYWl0c0ljRUVFRUVFAE5TdDNfXzIxMV9fbW9uZXlfcHV0SWNFRQBOU3QzX18yOW1vbmV5X3B1dEl3TlNfMTlvc3RyZWFtYnVmX2l0ZXJhdG9ySXdOU18xMWNoYXJfdHJhaXRzSXdFRUVFRUUATlN0M19fMjExX19tb25leV9wdXRJd0VFAE5TdDNfXzI4bWVzc2FnZXNJY0VFAE5TdDNfXzIxM21lc3NhZ2VzX2Jhc2VFAE5TdDNfXzIxN19fd2lkZW5fZnJvbV91dGY4SUxqMzJFRUUATlN0M19fMjdjb2RlY3Z0SURpYzExX19tYnN0YXRlX3RFRQBOU3QzX18yMTJjb2RlY3Z0X2Jhc2VFAE5TdDNfXzIxNl9fbmFycm93X3RvX3V0ZjhJTGozMkVFRQBOU3QzX18yOG1lc3NhZ2VzSXdFRQBOU3QzX18yN2NvZGVjdnRJY2MxMV9fbWJzdGF0ZV90RUUATlN0M19fMjdjb2RlY3Z0SXdjMTFfX21ic3RhdGVfdEVFAE5TdDNfXzI3Y29kZWN2dElEc2MxMV9fbWJzdGF0ZV90RUUATlN0M19fMjZsb2NhbGU1X19pbXBFAE5TdDNfXzI1Y3R5cGVJY0VFAE5TdDNfXzIxMGN0eXBlX2Jhc2VFAE5TdDNfXzI1Y3R5cGVJd0VFAGZhbHNlAHRydWUATlN0M19fMjhudW1wdW5jdEljRUUATlN0M19fMjhudW1wdW5jdEl3RUUATlN0M19fMjE0X19zaGFyZWRfY291bnRFAE5TdDNfXzIxOV9fc2hhcmVkX3dlYWtfY291bnRFAGJhZF93ZWFrX3B0cgBOU3QzX18yMTJiYWRfd2Vha19wdHJFAHRlcm1pbmF0aW5nIHdpdGggJXMgZXhjZXB0aW9uIG9mIHR5cGUgJXM6ICVzAHRlcm1pbmF0aW5nIHdpdGggJXMgZXhjZXB0aW9uIG9mIHR5cGUgJXMAdGVybWluYXRpbmcgd2l0aCAlcyBmb3JlaWduIGV4Y2VwdGlvbgB0ZXJtaW5hdGluZwB1bmNhdWdodABTdDlleGNlcHRpb24ATjEwX19jeHhhYml2MTE2X19zaGltX3R5cGVfaW5mb0UAU3Q5dHlwZV9pbmZvAE4xMF9fY3h4YWJpdjEyMF9fc2lfY2xhc3NfdHlwZV9pbmZvRQBOMTBfX2N4eGFiaXYxMTdfX2NsYXNzX3R5cGVfaW5mb0UAcHRocmVhZF9vbmNlIGZhaWx1cmUgaW4gX19jeGFfZ2V0X2dsb2JhbHNfZmFzdCgpAGNhbm5vdCBjcmVhdGUgcHRocmVhZCBrZXkgZm9yIF9fY3hhX2dldF9nbG9iYWxzKCkAY2Fubm90IHplcm8gb3V0IHRocmVhZCB2YWx1ZSBmb3IgX19jeGFfZ2V0X2dsb2JhbHMoKQB0ZXJtaW5hdGVfaGFuZGxlciB1bmV4cGVjdGVkbHkgcmV0dXJuZWQAU3QxMWxvZ2ljX2Vycm9yAFN0MTJsZW5ndGhfZXJyb3IATjEwX19jeHhhYml2MTE5X19wb2ludGVyX3R5cGVfaW5mb0UATjEwX19jeHhhYml2MTE3X19wYmFzZV90eXBlX2luZm9FAE4xMF9fY3h4YWJpdjEyM19fZnVuZGFtZW50YWxfdHlwZV9pbmZvRQB2AERuAGIAYwBoAGEAcwB0AGkAagBtAHkAZgBkAE4xMF9fY3h4YWJpdjExNl9fZW51bV90eXBlX2luZm9FAE4xMF9fY3h4YWJpdjEyMV9fdm1pX2NsYXNzX3R5cGVfaW5mb0U="),staticInit:function(){ZA.isWindows=!!process.platform.match(/^win/)},mount:function(A){return h(o),ZA.createNode(null,"/",ZA.getMode(A.opts.root),0)},createNode:function(A,e,r,i){if(!WA.isDir(r)&&!WA.isFile(r)&&!WA.isLink(r))throw new WA.ErrnoError(hA.EINVAL);var f=WA.createNode(A,e,r);return f.node_ops=ZA.node_ops,f.stream_ops=ZA.stream_ops,f},getMode:function(A){var e;try{e=br.lstatSync(A),ZA.isWindows&&(e.mode=e.mode|(146&e.mode)>>1)}catch(A){if(!A.code)throw A;throw new WA.ErrnoError(hA[A.code])}return e.mode},realPath:function(A){for(var e=[];A.parent!==A;)e.push(A.name),A=A.parent;return e.push(A.mount.opts.root),e.reverse(),gA.join.apply(null,e)},flagsToPermissionStringMap:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},flagsToPermissionString:function(A){if(A&=-2097153,A&=-2049,A&=-32769,(A&=-524289)in ZA.flagsToPermissionStringMap)return ZA.flagsToPermissionStringMap[A];throw new WA.ErrnoError(hA.EINVAL)},node_ops:{getattr:function(A){var e,r=ZA.realPath(A);try{e=br.lstatSync(r)}catch(A){if(!A.code)throw A;throw new WA.ErrnoError(hA[A.code])}return ZA.isWindows&&!e.blksize&&(e.blksize=4096),ZA.isWindows&&!e.blocks&&(e.blocks=(e.size+e.blksize-1)/e.blksize|0),{dev:e.dev,ino:e.ino,mode:e.mode,nlink:e.nlink,uid:e.uid,gid:e.gid,rdev:e.rdev,size:e.size,atime:e.atime,mtime:e.mtime,ctime:e.ctime,blksize:e.blksize,blocks:e.blocks}},setattr:function(A,e){var r=ZA.realPath(A);try{if(void 0!==e.mode&&(br.chmodSync(r,e.mode),A.mode=e.mode),void 0!==e.timestamp){var i=new Date(e.timestamp);br.utimesSync(r,i,i)}void 0!==e.size&&br.truncateSync(r,e.size)}catch(A){if(!A.code)throw A;throw new WA.ErrnoError(hA[A.code])}},lookup:function(A,e){var r=gA.join2(ZA.realPath(A),e),i=ZA.getMode(r);return ZA.createNode(A,e,i)},mknod:function(A,e,r,i){var f=ZA.createNode(A,e,r,i),n=ZA.realPath(f);try{WA.isDir(f.mode)?br.mkdirSync(n,f.mode):br.writeFileSync(n,"",{mode:f.mode})}catch(A){if(!A.code)throw A;throw new WA.ErrnoError(hA[A.code])}return f},rename:function(A,e,r){var i=ZA.realPath(A),f=gA.join2(ZA.realPath(e),r);try{br.renameSync(i,f)}catch(A){if(!A.code)throw A;throw new WA.ErrnoError(hA[A.code])}},unlink:function(A,e){var r=gA.join2(ZA.realPath(A),e);try{br.unlinkSync(r)}catch(A){if(!A.code)throw A;throw new WA.ErrnoError(hA[A.code])}},rmdir:function(A,e){var r=gA.join2(ZA.realPath(A),e);try{br.rmdirSync(r)}catch(A){if(!A.code)throw A;throw new WA.ErrnoError(hA[A.code])}},readdir:function(A){var e=ZA.realPath(A);try{return br.readdirSync(e)}catch(A){if(!A.code)throw A;throw new WA.ErrnoError(hA[A.code])}},symlink:function(A,e,r){var i=gA.join2(ZA.realPath(A),e);try{br.symlinkSync(r,i)}catch(A){if(!A.code)throw A;throw new WA.ErrnoError(hA[A.code])}},readlink:function(A){var e=ZA.realPath(A);try{return e=br.readlinkSync(e),e=dr.relative(dr.resolve(A.mount.opts.root),e)}catch(A){if(!A.code)throw A;throw new WA.ErrnoError(hA[A.code])}}},stream_ops:{open:function(A){var e=ZA.realPath(A.node);try{WA.isFile(A.node.mode)&&(A.nfd=br.openSync(e,ZA.flagsToPermissionString(A.flags)))}catch(A){if(!A.code)throw A;throw new WA.ErrnoError(hA[A.code])}},close:function(A){try{WA.isFile(A.node.mode)&&A.nfd&&br.closeSync(A.nfd)}catch(A){if(!A.code)throw A;throw new WA.ErrnoError(hA[A.code])}},read:function(A,e,r,i,f){if(0===i)return 0;var n,t=new Buffer(i);try{n=br.readSync(A.nfd,t,0,i,f)}catch(A){throw new WA.ErrnoError(hA[A.code])}if(0<n)for(var o=0;o<n;o++)e[r+o]=t[o];return n},write:function(A,e,r,i,f){var n,t=new Buffer(e.subarray(r,r+i));try{n=br.writeSync(A.nfd,t,0,i,f)}catch(A){throw new WA.ErrnoError(hA[A.code])}return n},llseek:function(A,e,r){var i=e;if(1===r)i+=A.position;else if(2===r&&WA.isFile(A.node.mode))try{i+=br.fstatSync(A.nfd).size}catch(A){throw new WA.ErrnoError(hA[A.code])}if(i<0)throw new WA.ErrnoError(hA.EINVAL);return i}}},CA={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:function(A){h(l),CA.reader||(CA.reader=new FileReaderSync);var n=CA.createNode(null,"/",CA.DIR_MODE,0),t={};function i(A){for(var e=A.split("/"),r=n,i=0;i<e.length-1;i++){var f=e.slice(0,i+1).join("/");t[f]||(t[f]=CA.createNode(r,e[i],CA.DIR_MODE,0)),r=t[f]}return r}function f(A){var e=A.split("/");return e[e.length-1]}return Array.prototype.forEach.call(A.opts.files||[],function(A){CA.createNode(i(A.name),f(A.name),CA.FILE_MODE,0,A,A.lastModifiedDate)}),(A.opts.blobs||[]).forEach(function(A){CA.createNode(i(A.name),f(A.name),CA.FILE_MODE,0,A.data)}),(A.opts.packages||[]).forEach(function(r){r.metadata.files.forEach(function(A){var e=A.filename.substr(1);CA.createNode(i(e),f(e),CA.FILE_MODE,0,r.blob.slice(A.start,A.end))})}),n},createNode:function(A,e,r,i,f,n){var t=WA.createNode(A,e,r);return t.mode=r,t.node_ops=CA.node_ops,t.stream_ops=CA.stream_ops,t.timestamp=(n||new Date).getTime(),h(CA.FILE_MODE!==CA.DIR_MODE),r===CA.FILE_MODE?(t.size=f.size,t.contents=f):(t.size=4096,t.contents={}),A&&(A.contents[e]=t),t},node_ops:{getattr:function(A){return{dev:1,ino:void 0,mode:A.mode,nlink:1,uid:0,gid:0,rdev:void 0,size:A.size,atime:new Date(A.timestamp),mtime:new Date(A.timestamp),ctime:new Date(A.timestamp),blksize:4096,blocks:Math.ceil(A.size/4096)}},setattr:function(A,e){void 0!==e.mode&&(A.mode=e.mode),void 0!==e.timestamp&&(A.timestamp=e.timestamp)},lookup:function(A,e){throw new WA.ErrnoError(hA.ENOENT)},mknod:function(A,e,r,i){throw new WA.ErrnoError(hA.EPERM)},rename:function(A,e,r){throw new WA.ErrnoError(hA.EPERM)},unlink:function(A,e){throw new WA.ErrnoError(hA.EPERM)},rmdir:function(A,e){throw new WA.ErrnoError(hA.EPERM)},readdir:function(A){var e=[".",".."];for(var r in A.contents)A.contents.hasOwnProperty(r)&&e.push(r);return e},symlink:function(A,e,r){throw new WA.ErrnoError(hA.EPERM)},readlink:function(A){throw new WA.ErrnoError(hA.EPERM)}},stream_ops:{read:function(A,e,r,i,f){if(f>=A.node.size)return 0;var n=A.node.contents.slice(f,f+i),t=CA.reader.readAsArrayBuffer(n);return e.set(new Uint8Array(t),r),n.size},write:function(A,e,r,i,f){throw new WA.ErrnoError(hA.EIO)},llseek:function(A,e,r){var i=e;if(1===r?i+=A.position:2===r&&WA.isFile(A.node.mode)&&(i+=A.node.size),i<0)throw new WA.ErrnoError(hA.EINVAL);return i}}};F+=16,F+=16,F+=16;var WA={root:null,mounts:[],devices:[null],streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,handleFSError:function(A){if(!(A instanceof WA.ErrnoError))throw A+" : "+y();return wA(A.errno)},lookupPath:function(A,e){if(e=e||{},!(A=gA.resolve(WA.cwd(),A)))return{path:"",node:null};var r={follow_mount:!0,recurse_count:0};for(var i in r)void 0===e[i]&&(e[i]=r[i]);if(8<e.recurse_count)throw new WA.ErrnoError(hA.ELOOP);for(var f=gA.normalizeArray(A.split("/").filter(function(A){return!!A}),!1),n=WA.root,t="/",o=0;o<f.length;o++){var a=o===f.length-1;if(a&&e.parent)break;if(n=WA.lookupNode(n,f[o]),t=gA.join2(t,f[o]),WA.isMountpoint(n)&&(!a||a&&e.follow_mount)&&(n=n.mounted.root),!a||e.follow)for(var c=0;WA.isLink(n.mode);){var l=WA.readlink(t);if(t=gA.resolve(gA.dirname(t),l),n=WA.lookupPath(t,{recurse_count:e.recurse_count}).node,40<c++)throw new WA.ErrnoError(hA.ELOOP)}}return{path:t,node:n}},getPath:function(A){for(var e;;){if(WA.isRoot(A)){var r=A.mount.mountpoint;return e?"/"!==r[r.length-1]?r+"/"+e:r+e:r}e=e?A.name+"/"+e:A.name,A=A.parent}},hashName:function(A,e){for(var r=0,i=0;i<e.length;i++)r=(r<<5)-r+e.charCodeAt(i)|0;return(A+r>>>0)%WA.nameTable.length},hashAddNode:function(A){var e=WA.hashName(A.parent.id,A.name);A.name_next=WA.nameTable[e],WA.nameTable[e]=A},hashRemoveNode:function(A){var e=WA.hashName(A.parent.id,A.name);if(WA.nameTable[e]===A)WA.nameTable[e]=A.name_next;else for(var r=WA.nameTable[e];r;){if(r.name_next===A){r.name_next=A.name_next;break}r=r.name_next}},lookupNode:function(A,e){var r=WA.mayLookup(A);if(r)throw new WA.ErrnoError(r,A);for(var i=WA.hashName(A.id,e),f=WA.nameTable[i];f;f=f.name_next){var n=f.name;if(f.parent.id===A.id&&n===e)return f}return WA.lookup(A,e)},createNode:function(A,e,r,i){if(!WA.FSNode){WA.FSNode=function(A,e,r,i){A=A||this,this.parent=A,this.mount=A.mount,this.mounted=null,this.id=WA.nextInode++,this.name=e,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=i},WA.FSNode.prototype={};Object.defineProperties(WA.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(A){A?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(A){A?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return WA.isDir(this.mode)}},isDevice:{get:function(){return WA.isChrdev(this.mode)}}})}var f=new WA.FSNode(A,e,r,i);return WA.hashAddNode(f),f},destroyNode:function(A){WA.hashRemoveNode(A)},isRoot:function(A){return A===A.parent},isMountpoint:function(A){return!!A.mounted},isFile:function(A){return 32768==(61440&A)},isDir:function(A){return 16384==(61440&A)},isLink:function(A){return 40960==(61440&A)},isChrdev:function(A){return 8192==(61440&A)},isBlkdev:function(A){return 24576==(61440&A)},isFIFO:function(A){return 4096==(61440&A)},isSocket:function(A){return 49152==(49152&A)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(A){var e=WA.flagModes[A];if(void 0===e)throw new Error("Unknown file open mode: "+A);return e},flagsToPermissionString:function(A){var e=["r","w","rw"][3&A];return 512&A&&(e+="w"),e},nodePermissions:function(A,e){return WA.ignorePermissions||(-1===e.indexOf("r")||292&A.mode)&&(-1===e.indexOf("w")||146&A.mode)&&(-1===e.indexOf("x")||73&A.mode)?0:hA.EACCES},mayLookup:function(A){var e=WA.nodePermissions(A,"x");return e||(A.node_ops.lookup?0:hA.EACCES)},mayCreate:function(A,e){try{WA.lookupNode(A,e);return hA.EEXIST}catch(A){}return WA.nodePermissions(A,"wx")},mayDelete:function(A,e,r){var i;try{i=WA.lookupNode(A,e)}catch(A){return A.errno}var f=WA.nodePermissions(A,"wx");if(f)return f;if(r){if(!WA.isDir(i.mode))return hA.ENOTDIR;if(WA.isRoot(i)||WA.getPath(i)===WA.cwd())return hA.EBUSY}else if(WA.isDir(i.mode))return hA.EISDIR;return 0},mayOpen:function(A,e){return A?WA.isLink(A.mode)?hA.ELOOP:WA.isDir(A.mode)&&("r"!==WA.flagsToPermissionString(e)||512&e)?hA.EISDIR:WA.nodePermissions(A,WA.flagsToPermissionString(e)):hA.ENOENT},MAX_OPEN_FDS:4096,nextfd:function(A,e){A=A||0,e=e||WA.MAX_OPEN_FDS;for(var r=A;r<=e;r++)if(!WA.streams[r])return r;throw new WA.ErrnoError(hA.EMFILE)},getStream:function(A){return WA.streams[A]},createStream:function(A,e,r){WA.FSStream||(WA.FSStream=function(){},WA.FSStream.prototype={},Object.defineProperties(WA.FSStream.prototype,{object:{get:function(){return this.node},set:function(A){this.node=A}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var i=new WA.FSStream;for(var f in A)i[f]=A[f];A=i;var n=WA.nextfd(e,r);return A.fd=n,WA.streams[n]=A},closeStream:function(A){WA.streams[A]=null},chrdev_stream_ops:{open:function(A){var e=WA.getDevice(A.node.rdev);A.stream_ops=e.stream_ops,A.stream_ops.open&&A.stream_ops.open(A)},llseek:function(){throw new WA.ErrnoError(hA.ESPIPE)}},major:function(A){return A>>8},minor:function(A){return 255&A},makedev:function(A,e){return A<<8|e},registerDevice:function(A,e){WA.devices[A]={stream_ops:e}},getDevice:function(A){return WA.devices[A]},getMounts:function(A){for(var e=[],r=[A];r.length;){var i=r.pop();e.push(i),r.push.apply(r,i.mounts)}return e},syncfs:function(e,r){"function"==typeof e&&(r=e,e=!1),WA.syncFSRequests++,1<WA.syncFSRequests&&console.log("warning: "+WA.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var i=WA.getMounts(WA.root.mount),f=0;function n(A){return h(0<WA.syncFSRequests),WA.syncFSRequests--,r(A)}function t(A){if(A)return t.errored?void 0:(t.errored=!0,n(A));++f>=i.length&&n(null)}i.forEach(function(A){if(!A.type.syncfs)return t(null);A.type.syncfs(A,e,t)})},mount:function(A,e,r){var i,f="/"===r,n=!r;if(f&&WA.root)throw new WA.ErrnoError(hA.EBUSY);if(!f&&!n){var t=WA.lookupPath(r,{follow_mount:!1});if(r=t.path,i=t.node,WA.isMountpoint(i))throw new WA.ErrnoError(hA.EBUSY);if(!WA.isDir(i.mode))throw new WA.ErrnoError(hA.ENOTDIR)}var o={type:A,opts:e,mountpoint:r,mounts:[]},a=A.mount(o);return(a.mount=o).root=a,f?WA.root=a:i&&(i.mounted=o,i.mount&&i.mount.mounts.push(o)),a},unmount:function(A){var e=WA.lookupPath(A,{follow_mount:!1});if(!WA.isMountpoint(e.node))throw new WA.ErrnoError(hA.EINVAL);var r=e.node,i=r.mounted,f=WA.getMounts(i);Object.keys(WA.nameTable).forEach(function(A){for(var e=WA.nameTable[A];e;){var r=e.name_next;-1!==f.indexOf(e.mount)&&WA.destroyNode(e),e=r}}),r.mounted=null;var n=r.mount.mounts.indexOf(i);h(-1!==n),r.mount.mounts.splice(n,1)},lookup:function(A,e){return A.node_ops.lookup(A,e)},mknod:function(A,e,r){var i=WA.lookupPath(A,{parent:!0}).node,f=gA.basename(A);if(!f||"."===f||".."===f)throw new WA.ErrnoError(hA.EINVAL);var n=WA.mayCreate(i,f);if(n)throw new WA.ErrnoError(n);if(!i.node_ops.mknod)throw new WA.ErrnoError(hA.EPERM);return i.node_ops.mknod(i,f,e,r)},create:function(A,e){return e=void 0!==e?e:438,e&=4095,e|=32768,WA.mknod(A,e,0)},mkdir:function(A,e){return e=void 0!==e?e:511,e&=1023,e|=16384,WA.mknod(A,e,0)},mkdirTree:function(A,e){for(var r=A.split("/"),i="",f=0;f<r.length;++f)if(r[f]){i+="/"+r[f];try{WA.mkdir(i,e)}catch(A){if(A.errno!=hA.EEXIST)throw A}}},mkdev:function(A,e,r){return void 0===r&&(r=e,e=438),e|=8192,WA.mknod(A,e,r)},symlink:function(A,e){if(!gA.resolve(A))throw new WA.ErrnoError(hA.ENOENT);var r=WA.lookupPath(e,{parent:!0}).node;if(!r)throw new WA.ErrnoError(hA.ENOENT);var i=gA.basename(e),f=WA.mayCreate(r,i);if(f)throw new WA.ErrnoError(f);if(!r.node_ops.symlink)throw new WA.ErrnoError(hA.EPERM);return r.node_ops.symlink(r,i,A)},rename:function(e,r){var A,i,f=gA.dirname(e),n=gA.dirname(r),t=gA.basename(e),o=gA.basename(r);try{A=WA.lookupPath(e,{parent:!0}).node,i=WA.lookupPath(r,{parent:!0}).node}catch(A){throw new WA.ErrnoError(hA.EBUSY)}if(!A||!i)throw new WA.ErrnoError(hA.ENOENT);if(A.mount!==i.mount)throw new WA.ErrnoError(hA.EXDEV);var a,c=WA.lookupNode(A,t),l=gA.relative(e,n);if("."!==l.charAt(0))throw new WA.ErrnoError(hA.EINVAL);if("."!==(l=gA.relative(r,f)).charAt(0))throw new WA.ErrnoError(hA.ENOTEMPTY);try{a=WA.lookupNode(i,o)}catch(A){}if(c!==a){var u=WA.isDir(c.mode),s=WA.mayDelete(A,t,u);if(s)throw new WA.ErrnoError(s);if(s=a?WA.mayDelete(i,o,u):WA.mayCreate(i,o))throw new WA.ErrnoError(s);if(!A.node_ops.rename)throw new WA.ErrnoError(hA.EPERM);if(WA.isMountpoint(c)||a&&WA.isMountpoint(a))throw new WA.ErrnoError(hA.EBUSY);if(i!==A&&(s=WA.nodePermissions(A,"w")))throw new WA.ErrnoError(s);try{WA.trackingDelegate.willMovePath&&WA.trackingDelegate.willMovePath(e,r)}catch(A){console.log("FS.trackingDelegate[\'willMovePath\'](\'"+e+"\', \'"+r+"\') threw an exception: "+A.message)}WA.hashRemoveNode(c);try{A.node_ops.rename(c,i,o)}catch(A){throw A}finally{WA.hashAddNode(c)}try{WA.trackingDelegate.onMovePath&&WA.trackingDelegate.onMovePath(e,r)}catch(A){console.log("FS.trackingDelegate[\'onMovePath\'](\'"+e+"\', \'"+r+"\') threw an exception: "+A.message)}}},rmdir:function(e){var A=WA.lookupPath(e,{parent:!0}).node,r=gA.basename(e),i=WA.lookupNode(A,r),f=WA.mayDelete(A,r,!0);if(f)throw new WA.ErrnoError(f);if(!A.node_ops.rmdir)throw new WA.ErrnoError(hA.EPERM);if(WA.isMountpoint(i))throw new WA.ErrnoError(hA.EBUSY);try{WA.trackingDelegate.willDeletePath&&WA.trackingDelegate.willDeletePath(e)}catch(A){console.log("FS.trackingDelegate[\'willDeletePath\'](\'"+e+"\') threw an exception: "+A.message)}A.node_ops.rmdir(A,r),WA.destroyNode(i);try{WA.trackingDelegate.onDeletePath&&WA.trackingDelegate.onDeletePath(e)}catch(A){console.log("FS.trackingDelegate[\'onDeletePath\'](\'"+e+"\') threw an exception: "+A.message)}},readdir:function(A){var e=WA.lookupPath(A,{follow:!0}).node;if(!e.node_ops.readdir)throw new WA.ErrnoError(hA.ENOTDIR);return e.node_ops.readdir(e)},unlink:function(e){var A=WA.lookupPath(e,{parent:!0}).node,r=gA.basename(e),i=WA.lookupNode(A,r),f=WA.mayDelete(A,r,!1);if(f)throw new WA.ErrnoError(f);if(!A.node_ops.unlink)throw new WA.ErrnoError(hA.EPERM);if(WA.isMountpoint(i))throw new WA.ErrnoError(hA.EBUSY);try{WA.trackingDelegate.willDeletePath&&WA.trackingDelegate.willDeletePath(e)}catch(A){console.log("FS.trackingDelegate[\'willDeletePath\'](\'"+e+"\') threw an exception: "+A.message)}A.node_ops.unlink(A,r),WA.destroyNode(i);try{WA.trackingDelegate.onDeletePath&&WA.trackingDelegate.onDeletePath(e)}catch(A){console.log("FS.trackingDelegate[\'onDeletePath\'](\'"+e+"\') threw an exception: "+A.message)}},readlink:function(A){var e=WA.lookupPath(A).node;if(!e)throw new WA.ErrnoError(hA.ENOENT);if(!e.node_ops.readlink)throw new WA.ErrnoError(hA.EINVAL);return gA.resolve(WA.getPath(e.parent),e.node_ops.readlink(e))},stat:function(A,e){var r=WA.lookupPath(A,{follow:!e}).node;if(!r)throw new WA.ErrnoError(hA.ENOENT);if(!r.node_ops.getattr)throw new WA.ErrnoError(hA.EPERM);return r.node_ops.getattr(r)},lstat:function(A){return WA.stat(A,!0)},chmod:function(A,e,r){var i;"string"==typeof A?i=WA.lookupPath(A,{follow:!r}).node:i=A;if(!i.node_ops.setattr)throw new WA.ErrnoError(hA.EPERM);i.node_ops.setattr(i,{mode:4095&e|-4096&i.mode,timestamp:Date.now()})},lchmod:function(A,e){WA.chmod(A,e,!0)},fchmod:function(A,e){var r=WA.getStream(A);if(!r)throw new WA.ErrnoError(hA.EBADF);WA.chmod(r.node,e)},chown:function(A,e,r,i){var f;"string"==typeof A?f=WA.lookupPath(A,{follow:!i}).node:f=A;if(!f.node_ops.setattr)throw new WA.ErrnoError(hA.EPERM);f.node_ops.setattr(f,{timestamp:Date.now()})},lchown:function(A,e,r){WA.chown(A,e,r,!0)},fchown:function(A,e,r){var i=WA.getStream(A);if(!i)throw new WA.ErrnoError(hA.EBADF);WA.chown(i.node,e,r)},truncate:function(A,e){if(e<0)throw new WA.ErrnoError(hA.EINVAL);var r;"string"==typeof A?r=WA.lookupPath(A,{follow:!0}).node:r=A;if(!r.node_ops.setattr)throw new WA.ErrnoError(hA.EPERM);if(WA.isDir(r.mode))throw new WA.ErrnoError(hA.EISDIR);if(!WA.isFile(r.mode))throw new WA.ErrnoError(hA.EINVAL);var i=WA.nodePermissions(r,"w");if(i)throw new WA.ErrnoError(i);r.node_ops.setattr(r,{size:e,timestamp:Date.now()})},ftruncate:function(A,e){var r=WA.getStream(A);if(!r)throw new WA.ErrnoError(hA.EBADF);if(0==(2097155&r.flags))throw new WA.ErrnoError(hA.EINVAL);WA.truncate(r.node,e)},utime:function(A,e,r){var i=WA.lookupPath(A,{follow:!0}).node;i.node_ops.setattr(i,{timestamp:Math.max(e,r)})},open:function(e,A,r,i,f){if(""===e)throw new WA.ErrnoError(hA.ENOENT);var n;if(r=void 0===r?438:r,r=64&(A="string"==typeof A?WA.modeStringToFlags(A):A)?4095&r|32768:0,"object"==typeof e)n=e;else{e=gA.normalize(e);try{n=WA.lookupPath(e,{follow:!(131072&A)}).node}catch(A){}}var t=!1;if(64&A)if(n){if(128&A)throw new WA.ErrnoError(hA.EEXIST)}else n=WA.mknod(e,r,0),t=!0;if(!n)throw new WA.ErrnoError(hA.ENOENT);if(WA.isChrdev(n.mode)&&(A&=-513),65536&A&&!WA.isDir(n.mode))throw new WA.ErrnoError(hA.ENOTDIR);if(!t){var o=WA.mayOpen(n,A);if(o)throw new WA.ErrnoError(o)}512&A&&WA.truncate(n,0),A&=-641;var a=WA.createStream({node:n,path:WA.getPath(n),flags:A,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1},i,f);a.stream_ops.open&&a.stream_ops.open(a),!d.logReadFiles||1&A||(WA.readFiles||(WA.readFiles={}),e in WA.readFiles||(WA.readFiles[e]=1,d.printErr("read file: "+e)));try{if(WA.trackingDelegate.onOpenFile){var c=0;1!=(2097155&A)&&(c|=WA.tracking.openFlags.READ),0!=(2097155&A)&&(c|=WA.tracking.openFlags.WRITE),WA.trackingDelegate.onOpenFile(e,c)}}catch(A){console.log("FS.trackingDelegate[\'onOpenFile\'](\'"+e+"\', flags) threw an exception: "+A.message)}return a},close:function(A){A.getdents&&(A.getdents=null);try{A.stream_ops.close&&A.stream_ops.close(A)}catch(A){throw A}finally{WA.closeStream(A.fd)}},llseek:function(A,e,r){if(!A.seekable||!A.stream_ops.llseek)throw new WA.ErrnoError(hA.ESPIPE);return A.position=A.stream_ops.llseek(A,e,r),A.ungotten=[],A.position},read:function(A,e,r,i,f){if(i<0||f<0)throw new WA.ErrnoError(hA.EINVAL);if(1==(2097155&A.flags))throw new WA.ErrnoError(hA.EBADF);if(WA.isDir(A.node.mode))throw new WA.ErrnoError(hA.EISDIR);if(!A.stream_ops.read)throw new WA.ErrnoError(hA.EINVAL);var n=!0;if(void 0===f)f=A.position,n=!1;else if(!A.seekable)throw new WA.ErrnoError(hA.ESPIPE);var t=A.stream_ops.read(A,e,r,i,f);return n||(A.position+=t),t},write:function(A,e,r,i,f,n){if(i<0||f<0)throw new WA.ErrnoError(hA.EINVAL);if(0==(2097155&A.flags))throw new WA.ErrnoError(hA.EBADF);if(WA.isDir(A.node.mode))throw new WA.ErrnoError(hA.EISDIR);if(!A.stream_ops.write)throw new WA.ErrnoError(hA.EINVAL);1024&A.flags&&WA.llseek(A,0,2);var t=!0;if(void 0===f)f=A.position,t=!1;else if(!A.seekable)throw new WA.ErrnoError(hA.ESPIPE);var o=A.stream_ops.write(A,e,r,i,f,n);t||(A.position+=o);try{A.path&&WA.trackingDelegate.onWriteToFile&&WA.trackingDelegate.onWriteToFile(A.path)}catch(A){console.log("FS.trackingDelegate[\'onWriteToFile\'](\'"+path+"\') threw an exception: "+A.message)}return o},allocate:function(A,e,r){if(e<0||r<=0)throw new WA.ErrnoError(hA.EINVAL);if(0==(2097155&A.flags))throw new WA.ErrnoError(hA.EBADF);if(!WA.isFile(A.node.mode)&&!WA.isDir(A.node.mode))throw new WA.ErrnoError(hA.ENODEV);if(!A.stream_ops.allocate)throw new WA.ErrnoError(hA.EOPNOTSUPP);A.stream_ops.allocate(A,e,r)},mmap:function(A,e,r,i,f,n,t){if(1==(2097155&A.flags))throw new WA.ErrnoError(hA.EACCES);if(!A.stream_ops.mmap)throw new WA.ErrnoError(hA.ENODEV);return A.stream_ops.mmap(A,e,r,i,f,n,t)},msync:function(A,e,r,i,f){return A&&A.stream_ops.msync?A.stream_ops.msync(A,e,r,i,f):0},munmap:function(A){return 0},ioctl:function(A,e,r){if(!A.stream_ops.ioctl)throw new WA.ErrnoError(hA.ENOTTY);return A.stream_ops.ioctl(A,e,r)},readFile:function(A,e){if((e=e||{}).flags=e.flags||"r",e.encoding=e.encoding||"binary","utf8"!==e.encoding&&"binary"!==e.encoding)throw new Error(\'Invalid encoding type "\'+e.encoding+\'"\');var r,i=WA.open(A,e.flags),f=WA.stat(A).size,n=new Uint8Array(f);return WA.read(i,n,0,f,0),"utf8"===e.encoding?r=c(n,0):"binary"===e.encoding&&(r=n),WA.close(i),r},writeFile:function(A,e,r){if((r=r||{}).flags=r.flags||"w",r.encoding=r.encoding||"utf8","utf8"!==r.encoding&&"binary"!==r.encoding)throw new Error(\'Invalid encoding type "\'+r.encoding+\'"\');var i=WA.open(A,r.flags,r.mode);if("utf8"===r.encoding){var f=new Uint8Array(p(e)+1),n=s(e,f,0,f.length);WA.write(i,f,0,n,0,r.canOwn)}else"binary"===r.encoding&&WA.write(i,e,0,e.length,0,r.canOwn);WA.close(i)},cwd:function(){return WA.currentPath},chdir:function(A){var e=WA.lookupPath(A,{follow:!0});if(null===e.node)throw new WA.ErrnoError(hA.ENOENT);if(!WA.isDir(e.node.mode))throw new WA.ErrnoError(hA.ENOTDIR);var r=WA.nodePermissions(e.node,"x");if(r)throw new WA.ErrnoError(r);WA.currentPath=e.path},createDefaultDirectories:function(){WA.mkdir("/tmp"),WA.mkdir("/home"),WA.mkdir("/home/web_user")},createDefaultDevices:function(){var A;if(WA.mkdir("/dev"),WA.registerDevice(WA.makedev(1,3),{read:function(){return 0},write:function(A,e,r,i,f){return i}}),WA.mkdev("/dev/null",WA.makedev(1,3)),mA.register(WA.makedev(5,0),mA.default_tty_ops),mA.register(WA.makedev(6,0),mA.default_tty1_ops),WA.mkdev("/dev/tty",WA.makedev(5,0)),WA.mkdev("/dev/tty1",WA.makedev(6,0)),"undefined"!=typeof crypto){var e=new Uint8Array(1);A=function(){return crypto.getRandomValues(e),e[0]}}else A=o?function(){}:function(){return 256*Math.random()|0};WA.createDevice("/dev","random",A),WA.createDevice("/dev","urandom",A),WA.mkdir("/dev/shm"),WA.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){WA.mkdir("/proc"),WA.mkdir("/proc/self"),WA.mkdir("/proc/self/fd"),WA.mount({mount:function(){var A=WA.createNode("/proc/self","fd",16895,73);return A.node_ops={lookup:function(A,e){var r=+e,i=WA.getStream(r);if(!i)throw new WA.ErrnoError(hA.EBADF);var f={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return i.path}}};return f.parent=f}},A}},{},"/proc/self/fd")},createStandardStreams:function(){d.stdin?WA.createDevice("/dev","stdin",d.stdin):WA.symlink("/dev/tty","/dev/stdin"),d.stdout?WA.createDevice("/dev","stdout",null,d.stdout):WA.symlink("/dev/tty","/dev/stdout"),d.stderr?WA.createDevice("/dev","stderr",null,d.stderr):WA.symlink("/dev/tty1","/dev/stderr");var A=WA.open("/dev/stdin","r");h(0===A.fd,"invalid handle for stdin ("+A.fd+")");var e=WA.open("/dev/stdout","w");h(1===e.fd,"invalid handle for stdout ("+e.fd+")");var r=WA.open("/dev/stderr","w");h(2===r.fd,"invalid handle for stderr ("+r.fd+")")},ensureErrnoError:function(){WA.ErrnoError||(WA.ErrnoError=function(A,e){this.node=e,this.setErrno=function(A){for(var e in this.errno=A,hA)if(hA[e]===A){this.code=e;break}},this.setErrno(A),this.message=vA[A],this.stack&&Object.defineProperty(this,"stack",{value:(new Error).stack})},WA.ErrnoError.prototype=new Error,WA.ErrnoError.prototype.constructor=WA.ErrnoError,[hA.ENOENT].forEach(function(A){WA.genericErrors[A]=new WA.ErrnoError(A)}))},staticInit:function(){WA.ensureErrnoError(),WA.nameTable=new Array(4096),WA.mount(pA,{},"/"),WA.createDefaultDirectories(),WA.createDefaultDevices(),WA.createSpecialDirectories(),WA.filesystems={MEMFS:pA,IDBFS:yA,NODEFS:ZA,WORKERFS:CA}},init:function(A,e,r){h(!WA.init.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),WA.init.initialized=!0,WA.ensureErrnoError(),d.stdin=A||d.stdin,d.stdout=e||d.stdout,d.stderr=r||d.stderr,WA.createStandardStreams()},quit:function(){WA.init.initialized=!1;var A=d._fflush;A&&A(0);for(var e=0;e<WA.streams.length;e++){var r=WA.streams[e];r&&WA.close(r)}},getMode:function(A,e){var r=0;return A&&(r|=365),e&&(r|=146),r},joinPath:function(A,e){var r=gA.join.apply(null,A);return e&&"/"==r[0]&&(r=r.substr(1)),r},absolutePath:function(A,e){return gA.resolve(e,A)},standardizePath:function(A){return gA.normalize(A)},findObject:function(A,e){var r=WA.analyzePath(A,e);return r.exists?r.object:(wA(r.error),null)},analyzePath:function(A,e){try{A=(i=WA.lookupPath(A,{follow:!e})).path}catch(A){}var r={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var i=WA.lookupPath(A,{parent:!0});r.parentExists=!0,r.parentPath=i.path,r.parentObject=i.node,r.name=gA.basename(A),i=WA.lookupPath(A,{follow:!e}),r.exists=!0,r.path=i.path,r.object=i.node,r.name=i.node.name,r.isRoot="/"===i.path}catch(A){r.error=A.errno}return r},createFolder:function(A,e,r,i){var f=gA.join2("string"==typeof A?A:WA.getPath(A),e),n=WA.getMode(r,i);return WA.mkdir(f,n)},createPath:function(A,e,r,i){A="string"==typeof A?A:WA.getPath(A);for(var f=e.split("/").reverse();f.length;){var n=f.pop();if(n){var t=gA.join2(A,n);try{WA.mkdir(t)}catch(A){}A=t}}return t},createFile:function(A,e,r,i,f){var n=gA.join2("string"==typeof A?A:WA.getPath(A),e),t=WA.getMode(i,f);return WA.create(n,t)},createDataFile:function(A,e,r,i,f,n){var t=e?gA.join2("string"==typeof A?A:WA.getPath(A),e):A,o=WA.getMode(i,f),a=WA.create(t,o);if(r){if("string"==typeof r){for(var c=new Array(r.length),l=0,u=r.length;l<u;++l)c[l]=r.charCodeAt(l);r=c}WA.chmod(a,146|o);var s=WA.open(a,"w");WA.write(s,r,0,r.length,0,n),WA.close(s),WA.chmod(a,o)}return a},createDevice:function(A,e,a,t){var r=gA.join2("string"==typeof A?A:WA.getPath(A),e),i=WA.getMode(!!a,!!t);WA.createDevice.major||(WA.createDevice.major=64);var f=WA.makedev(WA.createDevice.major++,0);return WA.registerDevice(f,{open:function(A){A.seekable=!1},close:function(A){t&&t.buffer&&t.buffer.length&&t(10)},read:function(A,e,r,i,f){for(var n=0,t=0;t<i;t++){var o;try{o=a()}catch(A){throw new WA.ErrnoError(hA.EIO)}if(void 0===o&&0===n)throw new WA.ErrnoError(hA.EAGAIN);if(null==o)break;n++,e[r+t]=o}return n&&(A.node.timestamp=Date.now()),n},write:function(A,e,r,i,f){for(var n=0;n<i;n++)try{t(e[r+n])}catch(A){throw new WA.ErrnoError(hA.EIO)}return i&&(A.node.timestamp=Date.now()),n}}),WA.mkdev(r,i,f)},createLink:function(A,e,r,i,f){var n=gA.join2("string"==typeof A?A:WA.getPath(A),e);return WA.symlink(r,n)},forceLoadFile:function(A){if(A.isDevice||A.isFolder||A.link||A.contents)return!0;var e=!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!d.read)throw new Error("Cannot load without read() or XMLHttpRequest.");try{A.contents=hr(d.read(A.url),!0),A.usedBytes=A.contents.length}catch(A){e=!1}return e||wA(hA.EIO),e},createLazyFile:function(A,e,o,r,i){function f(){this.lengthKnown=!1,this.chunks=[]}if(f.prototype.get=function(A){if(!(A>this.length-1||A<0)){var e=A%this.chunkSize,r=A/this.chunkSize|0;return this.getter(r)[e]}},f.prototype.setDataGetter=function(A){this.getter=A},f.prototype.cacheLength=function(){var A=new XMLHttpRequest;if(A.open("HEAD",o,!1),A.send(null),!(200<=A.status&&A.status<300||304===A.status))throw new Error("Couldn\'t load "+o+". Status: "+A.status);var e,i=Number(A.getResponseHeader("Content-length")),r=(e=A.getResponseHeader("Accept-Ranges"))&&"bytes"===e,f=(e=A.getResponseHeader("Content-Encoding"))&&"gzip"===e,n=1048576;r||(n=i);var t=this;t.setDataGetter(function(A){var e=A*n,r=(A+1)*n-1;if(r=Math.min(r,i-1),void 0===t.chunks[A]&&(t.chunks[A]=function(A,e){if(e<A)throw new Error("invalid range ("+A+", "+e+") or no bytes requested!");if(i-1<e)throw new Error("only "+i+" bytes available! programmer error!");var r=new XMLHttpRequest;if(r.open("GET",o,!1),i!==n&&r.setRequestHeader("Range","bytes="+A+"-"+e),"undefined"!=typeof Uint8Array&&(r.responseType="arraybuffer"),r.overrideMimeType&&r.overrideMimeType("text/plain; charset=x-user-defined"),r.send(null),!(200<=r.status&&r.status<300||304===r.status))throw new Error("Couldn\'t load "+o+". Status: "+r.status);return void 0!==r.response?new Uint8Array(r.response||[]):hr(r.responseText||"",!0)}(e,r)),void 0===t.chunks[A])throw new Error("doXHR failed!");return t.chunks[A]}),!f&&i||(n=i=1,i=this.getter(0).length,n=i,console.log("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=i,this._chunkSize=n,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!l)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var n=new f;Object.defineProperties(n,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var t={isDevice:!1,contents:n}}else t={isDevice:!1,url:o};var a=WA.createFile(A,e,t,r,i);t.contents?a.contents=t.contents:t.url&&(a.contents=null,a.url=t.url),Object.defineProperties(a,{usedBytes:{get:function(){return this.contents.length}}});var c={};return Object.keys(a.stream_ops).forEach(function(A){var e=a.stream_ops[A];c[A]=function(){if(!WA.forceLoadFile(a))throw new WA.ErrnoError(hA.EIO);return e.apply(null,arguments)}}),c.read=function(A,e,r,i,f){if(!WA.forceLoadFile(a))throw new WA.ErrnoError(hA.EIO);var n=A.node.contents;if(f>=n.length)return 0;var t=Math.min(n.length-f,i);if(h(0<=t),n.slice)for(var o=0;o<t;o++)e[r+o]=n[f+o];else for(o=0;o<t;o++)e[r+o]=n.get(f+o);return t},a.stream_ops=c,a},createPreloadedFile:function(f,n,A,t,o,a,c,l,u,s){Browser.init();var b=n?gA.resolve(gA.join2(f,n)):f;function e(e){function r(A){s&&s(),l||WA.createDataFile(f,n,A,t,o,u),a&&a(),uA()}var i=!1;d.preloadPlugins.forEach(function(A){i||A.canHandle(b)&&(A.handle(e,b,r,function(){c&&c(),uA()}),i=!0)}),i||r(e)}lA(),"string"==typeof A?Browser.asyncLoad(A,function(A){e(A)},c):e(A)},indexedDB:function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},DB_NAME:function(){return"EM_FS_"+window.location.pathname},DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:function(e,o,a){o=o||function(){},a=a||function(){};var A=WA.indexedDB();try{var c=A.open(WA.DB_NAME(),WA.DB_VERSION)}catch(A){return a(A)}c.onupgradeneeded=function(){console.log("creating db"),c.result.createObjectStore(WA.DB_STORE_NAME)},c.onsuccess=function(){var A=c.result.transaction([WA.DB_STORE_NAME],"readwrite"),r=A.objectStore(WA.DB_STORE_NAME),i=0,f=0,n=e.length;function t(){(0==f?o:a)()}e.forEach(function(A){var e=r.put(WA.analyzePath(A).object.contents,A);e.onsuccess=function(){++i+f==n&&t()},e.onerror=function(){i+ ++f==n&&t()}}),A.onerror=a},c.onerror=a},loadFilesFromDB:function(o,a,c){a=a||function(){},c=c||function(){};var A=WA.indexedDB();try{var l=A.open(WA.DB_NAME(),WA.DB_VERSION)}catch(A){return c(A)}l.onupgradeneeded=c,l.onsuccess=function(){var A=l.result;try{var e=A.transaction([WA.DB_STORE_NAME],"readonly")}catch(A){return void c(A)}var r=e.objectStore(WA.DB_STORE_NAME),i=0,f=0,n=o.length;function t(){(0==f?a:c)()}o.forEach(function(A){var e=r.get(A);e.onsuccess=function(){WA.analyzePath(A).exists&&WA.unlink(A),WA.createDataFile(gA.dirname(A),gA.basename(A),e.result,!0,!0,!0),++i+f==n&&t()},e.onerror=function(){i+ ++f==n&&t()}}),e.onerror=c},l.onerror=c}},IA={DEFAULT_POLLMASK:5,mappings:{},umask:511,calculateAt:function(A,e){if("/"!==e[0]){var r;if(-100===A)r=WA.cwd();else{var i=WA.getStream(A);if(!i)throw new WA.ErrnoError(hA.EBADF);r=i.path}e=gA.join2(r,e)}return e},doStat:function(A,e,r){try{var i=A(e)}catch(A){if(A&&A.node&&gA.normalize(e)!==gA.normalize(WA.getPath(A.node)))return-hA.ENOTDIR;throw A}return E[r>>2]=i.dev,E[r+4>>2]=0,E[r+8>>2]=i.ino,E[r+12>>2]=i.mode,E[r+16>>2]=i.nlink,E[r+20>>2]=i.uid,E[r+24>>2]=i.gid,E[r+28>>2]=i.rdev,E[r+32>>2]=0,E[r+36>>2]=i.size,E[r+40>>2]=4096,E[r+44>>2]=i.blocks,E[r+48>>2]=i.atime.getTime()/1e3|0,E[r+52>>2]=0,E[r+56>>2]=i.mtime.getTime()/1e3|0,E[r+60>>2]=0,E[r+64>>2]=i.ctime.getTime()/1e3|0,E[r+68>>2]=0,E[r+72>>2]=i.ino,0},doMsync:function(A,e,r,i){var f=new Uint8Array(W.subarray(A,A+r));WA.msync(e,f,0,r,i)},doMkdir:function(A,e){return"/"===(A=gA.normalize(A))[A.length-1]&&(A=A.substr(0,A.length-1)),WA.mkdir(A,e,0),0},doMknod:function(A,e,r){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-hA.EINVAL}return WA.mknod(A,e,r),0},doReadlink:function(A,e,r){if(r<=0)return-hA.EINVAL;var i=WA.readlink(A),f=Math.min(r,p(i)),n=C[e+f];return b(i,e,r+1),C[e+f]=n,f},doAccess:function(A,e){if(-8&e)return-hA.EINVAL;var r;r=WA.lookupPath(A,{follow:!0}).node;var i="";return 4&e&&(i+="r"),2&e&&(i+="w"),1&e&&(i+="x"),i&&WA.nodePermissions(r,i)?-hA.EACCES:0},doDup:function(A,e,r){var i=WA.getStream(r);return i&&WA.close(i),WA.open(A,e,0,r,r).fd},doReadv:function(A,e,r,i){for(var f=0,n=0;n<r;n++){var t=E[e+8*n>>2],o=E[e+(8*n+4)>>2],a=WA.read(A,C,t,o,i);if(a<0)return-1;if(f+=a,a<o)break}return f},doWritev:function(A,e,r,i){for(var f=0,n=0;n<r;n++){var t=E[e+8*n>>2],o=E[e+(8*n+4)>>2],a=WA.write(A,C,t,o,i);if(a<0)return-1;f+=a}return f},varargs:0,get:function(A){return IA.varargs+=4,E[IA.varargs-4>>2]},getStr:function(){return m(IA.get())},getStreamFromFD:function(){var A=WA.getStream(IA.get());if(!A)throw new WA.ErrnoError(hA.EBADF);return A},getSocketFromFD:function(){var A=SOCKFS.getSocket(IA.get());if(!A)throw new WA.ErrnoError(hA.EBADF);return A},getSocketAddress:function(A){var e=IA.get(),r=IA.get();if(A&&0===e)return null;var i=__read_sockaddr(e,r);if(i.errno)throw new WA.ErrnoError(i.errno);return i.addr=DNS.lookup_addr(i.addr)||i.addr,i},get64:function(){var A=IA.get(),e=IA.get();return h(0<=A?0===e:-1===e),A},getZero:function(){h(0===IA.get())}};var BA=a([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0],"i8",v);var EA={};function GA(A){for(;A.length;){var e=A.pop();A.pop()(e)}}function VA(A){return this.fromWireType(G[A>>2])}var XA={},_A={},FA={},NA=48,RA=57;function YA(A){if(void 0===A)return"_unknown";var e=(A=A.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return NA<=e&&e<=RA?"_"+A:A}function JA(A,e){return A=YA(A),new Function("body","return function "+A+\'() {\\n    "use strict";    return body.apply(this, arguments);\\n};\\n\')(e)}function DA(A,r){var e=JA(r,function(A){this.name=r,this.message=A;var e=new Error(A).stack;void 0!==e&&(this.stack=this.toString()+"\\n"+e.replace(/^Error(:[^\\n]*)?\\n/,""))});return e.prototype=Object.create(A.prototype),(e.prototype.constructor=e).prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},e}var QA=void 0;function TA(A){throw new QA(A)}function MA(i,e,f){function r(A){var e=f(A);e.length!==i.length&&TA("Mismatched type converter count");for(var r=0;r<i.length;++r)zA(i[r],e[r])}i.forEach(function(A){FA[A]=e});var n=new Array(e.length),t=[],o=0;e.forEach(function(A,e){_A.hasOwnProperty(A)?n[e]=_A[A]:(t.push(A),XA.hasOwnProperty(A)||(XA[A]=[]),XA[A].push(function(){n[e]=_A[A],++o===t.length&&r(n)}))}),0===t.length&&r(n)}function SA(A){switch(A){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+A)}}function UA(){for(var A=new Array(256),e=0;e<256;++e)A[e]=String.fromCharCode(e);OA=A}var OA=void 0;function HA(A){for(var e="",r=A;W[r];)e+=OA[W[r++]];return e}var xA=void 0;function jA(A){throw new xA(A)}function zA(A,e,r){if(r=r||{},!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var i=e.name;if(A||jA(\'type "\'+i+\'" must have a positive integer typeid pointer\'),_A.hasOwnProperty(A)){if(r.ignoreDuplicateRegistrations)return;jA("Cannot register type \'"+i+"\' twice")}if(_A[A]=e,delete FA[A],XA.hasOwnProperty(A)){var f=XA[A];delete XA[A],f.forEach(function(A){A()})}}function PA(A){if(!(this instanceof oe))return!1;if(!(A instanceof oe))return!1;for(var e=this.$$.ptrType.registeredClass,r=this.$$.ptr,i=A.$$.ptrType.registeredClass,f=A.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;i.baseClass;)f=i.upcast(f),i=i.baseClass;return e===i&&r===f}function LA(A){return{count:A.count,deleteScheduled:A.deleteScheduled,preservePointerOnDelete:A.preservePointerOnDelete,ptr:A.ptr,ptrType:A.ptrType,smartPtr:A.smartPtr,smartPtrType:A.smartPtrType}}function KA(A){jA(A.$$.ptrType.registeredClass.name+" instance already deleted")}function qA(){if(this.$$.ptr||KA(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var A=Object.create(Object.getPrototypeOf(this),{$$:{value:LA(this.$$)}});return A.$$.count.value+=1,A.$$.deleteScheduled=!1,A}function $A(A){var e=A.$$;e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)}function Ae(){this.$$.ptr||KA(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&jA("Object already scheduled for deletion"),--this.$$.count.value,0===this.$$.count.value&&$A(this),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function ee(){return!this.$$.ptr}var re=void 0,ie=[];function fe(){for(;ie.length;){var A=ie.pop();A.$$.deleteScheduled=!1,A.delete()}}function ne(){return this.$$.ptr||KA(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&jA("Object already scheduled for deletion"),ie.push(this),1===ie.length&&re&&re(fe),this.$$.deleteScheduled=!0,this}function te(){oe.prototype.isAliasOf=PA,oe.prototype.clone=qA,oe.prototype.delete=Ae,oe.prototype.isDeleted=ee,oe.prototype.deleteLater=ne}function oe(){}var ae={};function ce(A,e,r){if(void 0===A[e].overloadTable){var i=A[e];A[e]=function(){return A[e].overloadTable.hasOwnProperty(arguments.length)||jA("Function \'"+r+"\' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+A[e].overloadTable+")!"),A[e].overloadTable[arguments.length].apply(this,arguments)},A[e].overloadTable=[],A[e].overloadTable[i.argCount]=i}}function le(A,e,r){d.hasOwnProperty(A)?((void 0===r||void 0!==d[A].overloadTable&&void 0!==d[A].overloadTable[r])&&jA("Cannot register public name \'"+A+"\' twice"),ce(d,A,A),d.hasOwnProperty(r)&&jA("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),d[A].overloadTable[r]=e):(d[A]=e,void 0!==r&&(d[A].numArguments=r))}function ue(A,e,r,i,f,n,t,o){this.name=A,this.constructor=e,this.instancePrototype=r,this.rawDestructor=i,this.baseClass=f,this.getActualType=n,this.upcast=t,this.downcast=o,this.pureVirtualFunctions=[]}function se(A,e,r){for(;e!==r;)e.upcast||jA("Expected null or instance of "+r.name+", got an instance of "+e.name),A=e.upcast(A),e=e.baseClass;return A}function be(A,e){if(null===e)return this.isReference&&jA("null is not a valid "+this.name),0;e.$$||jA(\'Cannot pass "\'+Pe(e)+\'" as a \'+this.name),e.$$.ptr||jA("Cannot pass deleted object as a pointer of type "+this.name);var r=e.$$.ptrType.registeredClass;return se(e.$$.ptr,r,this.registeredClass)}function de(A,e){var r;if(null===e)return this.isReference&&jA("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==A&&A.push(this.rawDestructor,r),r):0;e.$$||jA(\'Cannot pass "\'+Pe(e)+\'" as a \'+this.name),e.$$.ptr||jA("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&e.$$.ptrType.isConst&&jA("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);var i=e.$$.ptrType.registeredClass;if(r=se(e.$$.ptr,i,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&jA("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:jA("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var f=e.clone();r=this.rawShare(r,xe(function(){f.delete()})),null!==A&&A.push(this.rawDestructor,r)}break;default:jA("Unsupporting sharing policy")}return r}function ke(A,e){if(null===e)return this.isReference&&jA("null is not a valid "+this.name),0;e.$$||jA(\'Cannot pass "\'+Pe(e)+\'" as a \'+this.name),e.$$.ptr||jA("Cannot pass deleted object as a pointer of type "+this.name),e.$$.ptrType.isConst&&jA("Cannot convert argument of type "+e.$$.ptrType.name+" to parameter type "+this.name);var r=e.$$.ptrType.registeredClass;return se(e.$$.ptr,r,this.registeredClass)}function he(A){return this.rawGetPointee&&(A=this.rawGetPointee(A)),A}function we(A){this.rawDestructor&&this.rawDestructor(A)}function ve(A){null!==A&&A.delete()}function ge(A,e,r){if(e===r)return A;if(void 0===r.baseClass)return null;var i=ge(A,e,r.baseClass);return null===i?null:r.downcast(i)}function me(){return Object.keys(Ce).length}function pe(){var A=[];for(var e in Ce)Ce.hasOwnProperty(e)&&A.push(Ce[e]);return A}function ye(A){re=A,ie.length&&re&&re(fe)}function Ze(){d.getInheritedInstanceCount=me,d.getLiveInheritedInstances=pe,d.flushPendingDeletes=fe,d.setDelayFunction=ye}var Ce={};function We(A,e){for(void 0===e&&jA("ptr should not be undefined");A.baseClass;)e=A.upcast(e),A=A.baseClass;return e}function Ie(A,e){return e=We(A,e),Ce[e]}function Be(A,e){return e.ptrType&&e.ptr||TA("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&TA("Both smartPtrType and smartPtr must be specified"),e.count={value:1},Object.create(A,{$$:{value:e}})}function Ee(A){var e=this.getPointee(A);if(!e)return this.destructor(A),null;var r=Ie(this.registeredClass,e);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=e,r.$$.smartPtr=A,r.clone();var i=r.clone();return this.destructor(A),i}function f(){return this.isSmartPointer?Be(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:A}):Be(this.registeredClass.instancePrototype,{ptrType:this,ptr:A})}var n,t=this.registeredClass.getActualType(e),o=ae[t];if(!o)return f.call(this);n=this.isConst?o.constPointerType:o.pointerType;var a=ge(e,this.registeredClass,n.registeredClass);return null===a?f.call(this):this.isSmartPointer?Be(n.registeredClass.instancePrototype,{ptrType:n,ptr:a,smartPtrType:this,smartPtr:A}):Be(n.registeredClass.instancePrototype,{ptrType:n,ptr:a})}function Ge(){Ve.prototype.getPointee=he,Ve.prototype.destructor=we,Ve.prototype.argPackAdvance=8,Ve.prototype.readValueFromPointer=VA,Ve.prototype.deleteObject=ve,Ve.prototype.fromWireType=Ee}function Ve(A,e,r,i,f,n,t,o,a,c,l){this.name=A,this.registeredClass=e,this.isReference=r,this.isConst=i,this.isSmartPointer=f,this.pointeeType=n,this.sharingPolicy=t,this.rawGetPointee=o,this.rawConstructor=a,this.rawShare=c,this.rawDestructor=l,f||void 0!==e.baseClass?this.toWireType=de:(this.toWireType=i?be:ke,this.destructorFunction=null)}function Xe(A,e,r){d.hasOwnProperty(A)||TA("Replacing nonexistant public symbol"),void 0!==d[A].overloadTable&&void 0!==r?d[A].overloadTable[r]=e:(d[A]=e,d[A].argCount=r)}function _e(f,n){var A;if(f=HA(f),void 0!==d["FUNCTION_TABLE_"+f])A=d["FUNCTION_TABLE_"+f][n];else if("undefined"!=typeof FUNCTION_TABLE)A=FUNCTION_TABLE[n];else{var e=d.asm["dynCall_"+f];void 0===e&&void 0===(e=d.asm["dynCall_"+f.replace(/f/g,"d")])&&jA("No dynCall invoker for signature: "+f),A=function(A){for(var e=[],r=1;r<f.length;++r)e.push("a"+r);var i="return function "+("dynCall_"+f+"_"+n)+"("+e.join(", ")+") {\\n";return i+="    return dynCall(rawFunction"+(e.length?", ":"")+e.join(", ")+");\\n",i+="};\\n",new Function("dynCall","rawFunction",i)(A,n)}(e)}return"function"!=typeof A&&jA("unknown function pointer with signature "+f+": "+n),A}var Fe=void 0;function Ne(A){var e=Er(A),r=HA(e);return Vr(e),r}function Re(A,e){var r=[],i={};throw e.forEach(function A(e){i[e]||_A[e]||(FA[e]?FA[e].forEach(A):(r.push(e),i[e]=!0))}),new Fe(A+": "+r.map(Ne).join([", "]))}function Ye(A,e){if(!(A instanceof Function))throw new TypeError("new_ called with constructor type "+typeof A+" which is not a function");var r=JA(A.name||"unknownFunctionName",function(){});r.prototype=A.prototype;var i=new r,f=A.apply(i,e);return f instanceof Object?f:i}function Je(A,e,r,i,f){var n=e.length;n<2&&jA("argTypes array size mismatch! Must at least get return value and \'this\' types!");for(var t=null!==e[1]&&null!==r,o=!1,a=1;a<e.length;++a)if(null!==e[a]&&void 0===e[a].destructorFunction){o=!0;break}var c="void"!==e[0].name,l="",u="";for(a=0;a<n-2;++a)l+=(0!==a?", ":"")+"arg"+a,u+=(0!==a?", ":"")+"arg"+a+"Wired";var s="return function "+YA(A)+"("+l+") {\\nif (arguments.length !== "+(n-2)+") {\\nthrowBindingError(\'function "+A+" called with \' + arguments.length + \' arguments, expected "+(n-2)+" args!\');\\n}\\n";o&&(s+="var destructors = [];\\n");var b=o?"destructors":"null",d=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],k=[jA,i,f,GA,e[0],e[1]];t&&(s+="var thisWired = classParam.toWireType("+b+", this);\\n");for(a=0;a<n-2;++a)s+="var arg"+a+"Wired = argType"+a+".toWireType("+b+", arg"+a+"); // "+e[a+2].name+"\\n",d.push("argType"+a),k.push(e[a+2]);if(t&&(u="thisWired"+(0<u.length?", ":"")+u),s+=(c?"var rv = ":"")+"invoker(fn"+(0<u.length?", ":"")+u+");\\n",o)s+="runDestructors(destructors);\\n";else for(a=t?1:2;a<e.length;++a){var h=1===a?"thisWired":"arg"+(a-2)+"Wired";null!==e[a].destructorFunction&&(s+=h+"_dtor("+h+"); // "+e[a].name+"\\n",d.push(h+"_dtor"),k.push(e[a].destructorFunction))}return c&&(s+="var ret = retType.fromWireType(rv);\\nreturn ret;\\n"),s+="}\\n",d.push(s),Ye(Function,d).apply(null,k)}function De(A,e){for(var r=[],i=0;i<A;i++)r.push(E[(e>>2)+i]);return r}function Qe(A,e,r){return A instanceof Object||jA(r+\' with invalid "this": \'+A),A instanceof e.registeredClass.constructor||jA(r+\' incompatible with "this" of type \'+A.constructor.name),A.$$.ptr||jA("cannot call emscripten binding method "+r+" on deleted object"),se(A.$$.ptr,A.$$.ptrType.registeredClass,e.registeredClass)}var Te=[],Me=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Se(A){4<A&&0==--Me[A].refcount&&(Me[A]=void 0,Te.push(A))}function Ue(){for(var A=0,e=5;e<Me.length;++e)void 0!==Me[e]&&++A;return A}function Oe(){for(var A=5;A<Me.length;++A)if(void 0!==Me[A])return Me[A];return null}function He(){d.count_emval_handles=Ue,d.get_first_emval=Oe}function xe(A){switch(A){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var e=Te.length?Te.pop():Me.length;return Me[e]={refcount:1,value:A},e}}function je(A,e,r){switch(e){case 0:return function(A){var e=r?C:W;return this.fromWireType(e[A])};case 1:return function(A){var e=r?I:B;return this.fromWireType(e[A>>1])};case 2:return function(A){var e=r?E:G;return this.fromWireType(e[A>>2])};default:throw new TypeError("Unknown integer type: "+A)}}function ze(A,e){var r=_A[A];return void 0===r&&jA(e+" has unknown type "+Ne(A)),r}function Pe(A){if(null===A)return"null";var e=typeof A;return"object"==e||"array"==e||"function"==e?A.toString():""+A}function Le(A,e){switch(e){case 2:return function(A){return this.fromWireType(V[A>>2])};case 3:return function(A){return this.fromWireType(X[A>>3])};default:throw new TypeError("Unknown float type: "+A)}}function Ke(A,e,r){switch(e){case 0:return r?function(A){return C[A]}:function(A){return W[A]};case 1:return r?function(A){return I[A>>1]}:function(A){return B[A>>1]};case 2:return r?function(A){return E[A>>2]}:function(A){return G[A>>2]};default:throw new TypeError("Unknown integer type: "+A)}}function qe(A,e,r){for(var i=new Array(A),f=0;f<A;++f)i[f]=ze(E[(e>>2)+f],"parameter "+f);return i}function $e(A){return A||jA("Cannot use deleted val. handle = "+A),Me[A].value}var Ar={};function er(A){var e=Ar[A];return void 0===e?HA(A):e}var rr=F;function ir(A){var e,r;ir.called?(r=E[rr>>2],e=E[r>>2]):(ir.called=!0,fr.USER=fr.LOGNAME="web_user",fr.PATH="/",fr.PWD="/",fr.HOME="/home/web_user",fr.LANG="C.UTF-8",fr._=d.thisProgram,e=a(1024,"i8",v),r=a(256,"i8*",v),E[r>>2]=e,E[rr>>2]=r);var i=[],f=0;for(var n in A)if("string"==typeof A[n]){var t=n+"="+A[n];i.push(t),f+=t.length}if(1024<f)throw new Error("Environment size exceeded TOTAL_ENV_SIZE!");for(var o=0;o<i.length;o++){rA(t=i[o],e),E[r+4*o>>2]=e,e+=t.length+1}E[r+4*i.length>>2]=0}F+=16;var fr={};var nr={};var tr=1;function or(A){return A%4==0&&(A%100!=0||A%400==0)}function ar(A,e){for(var r=0,i=0;i<=e;r+=A[i++]);return r}var cr=[31,29,31,30,31,30,31,31,30,31,30,31],lr=[31,28,31,30,31,30,31,31,30,31,30,31];function ur(A,e){for(var r=new Date(A.getTime());0<e;){var i=or(r.getFullYear()),f=r.getMonth(),n=(i?cr:lr)[f];if(!(e>n-r.getDate()))return r.setDate(r.getDate()+e),r;e-=n-r.getDate()+1,r.setDate(1),f<11?r.setMonth(f+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r}function sr(A,e,r,i){var f=E[i+40>>2],n={tm_sec:E[i>>2],tm_min:E[i+4>>2],tm_hour:E[i+8>>2],tm_mday:E[i+12>>2],tm_mon:E[i+16>>2],tm_year:E[i+20>>2],tm_wday:E[i+24>>2],tm_yday:E[i+28>>2],tm_isdst:E[i+32>>2],tm_gmtoff:E[i+36>>2],tm_zone:f?m(f):""},t=m(r),o={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S"};for(var a in o)t=t.replace(new RegExp(a,"g"),o[a]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function u(A,e,r){for(var i="number"==typeof A?A.toString():A||"";i.length<e;)i=r[0]+i;return i}function s(A,e){return u(A,e,"0")}function b(A,e){function r(A){return A<0?-1:0<A?1:0}var i;return 0===(i=r(A.getFullYear()-e.getFullYear()))&&0===(i=r(A.getMonth()-e.getMonth()))&&(i=r(A.getDate()-e.getDate())),i}function d(A){switch(A.getDay()){case 0:return new Date(A.getFullYear()-1,11,29);case 1:return A;case 2:return new Date(A.getFullYear(),0,3);case 3:return new Date(A.getFullYear(),0,2);case 4:return new Date(A.getFullYear(),0,1);case 5:return new Date(A.getFullYear()-1,11,31);case 6:return new Date(A.getFullYear()-1,11,30)}}function k(A){var e=ur(new Date(A.tm_year+1900,0,1),A.tm_yday),r=new Date(e.getFullYear(),0,4),i=new Date(e.getFullYear()+1,0,4),f=d(r),n=d(i);return b(f,e)<=0?b(n,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var h={"%a":function(A){return c[A.tm_wday].substring(0,3)},"%A":function(A){return c[A.tm_wday]},"%b":function(A){return l[A.tm_mon].substring(0,3)},"%B":function(A){return l[A.tm_mon]},"%C":function(A){return s((A.tm_year+1900)/100|0,2)},"%d":function(A){return s(A.tm_mday,2)},"%e":function(A){return u(A.tm_mday,2," ")},"%g":function(A){return k(A).toString().substring(2)},"%G":function(A){return k(A)},"%H":function(A){return s(A.tm_hour,2)},"%I":function(A){var e=A.tm_hour;return 0==e?e=12:12<e&&(e-=12),s(e,2)},"%j":function(A){return s(A.tm_mday+ar(or(A.tm_year+1900)?cr:lr,A.tm_mon-1),3)},"%m":function(A){return s(A.tm_mon+1,2)},"%M":function(A){return s(A.tm_min,2)},"%n":function(){return"\\n"},"%p":function(A){return 0<=A.tm_hour&&A.tm_hour<12?"AM":"PM"},"%S":function(A){return s(A.tm_sec,2)},"%t":function(){return"\\t"},"%u":function(A){return new Date(A.tm_year+1900,A.tm_mon+1,A.tm_mday,0,0,0,0).getDay()||7},"%U":function(A){var e=new Date(A.tm_year+1900,0,1),r=0===e.getDay()?e:ur(e,7-e.getDay()),i=new Date(A.tm_year+1900,A.tm_mon,A.tm_mday);if(b(r,i)<0){var f=ar(or(i.getFullYear())?cr:lr,i.getMonth()-1)-31,n=31-r.getDate()+f+i.getDate();return s(Math.ceil(n/7),2)}return 0===b(r,e)?"01":"00"},"%V":function(A){var e,r=new Date(A.tm_year+1900,0,4),i=new Date(A.tm_year+1901,0,4),f=d(r),n=d(i),t=ur(new Date(A.tm_year+1900,0,1),A.tm_yday);return b(t,f)<0?"53":b(n,t)<=0?"01":(e=f.getFullYear()<A.tm_year+1900?A.tm_yday+32-f.getDate():A.tm_yday+1-f.getDate(),s(Math.ceil(e/7),2))},"%w":function(A){return new Date(A.tm_year+1900,A.tm_mon+1,A.tm_mday,0,0,0,0).getDay()},"%W":function(A){var e=new Date(A.tm_year,0,1),r=1===e.getDay()?e:ur(e,0===e.getDay()?1:7-e.getDay()+1),i=new Date(A.tm_year+1900,A.tm_mon,A.tm_mday);if(b(r,i)<0){var f=ar(or(i.getFullYear())?cr:lr,i.getMonth()-1)-31,n=31-r.getDate()+f+i.getDate();return s(Math.ceil(n/7),2)}return 0===b(r,e)?"01":"00"},"%y":function(A){return(A.tm_year+1900).toString().substring(2)},"%Y":function(A){return A.tm_year+1900},"%z":function(A){var e=A.tm_gmtoff,r=0<=e;return e=(e=Math.abs(e)/60)/60*100+e%60,(r?"+":"-")+String("0000"+e).slice(-4)},"%Z":function(A){return A.tm_zone},"%%":function(){return"%"}};for(var a in h)0<=t.indexOf(a)&&(t=t.replace(new RegExp(a,"g"),h[a](n)));var w=hr(t,!1);return w.length>e?0:(eA(w,A),w.length-1)}if(WA.staticInit(),L.unshift(function(){d.noFSInit||WA.init.initialized||WA.init()}),K.push(function(){WA.ignorePermissions=!1}),q.push(function(){WA.quit()}),d.FS_createFolder=WA.createFolder,d.FS_createPath=WA.createPath,d.FS_createDataFile=WA.createDataFile,d.FS_createPreloadedFile=WA.createPreloadedFile,d.FS_createLazyFile=WA.createLazyFile,d.FS_createLink=WA.createLink,d.FS_createDevice=WA.createDevice,d.FS_unlink=WA.unlink,L.unshift(function(){mA.init()}),q.push(function(){mA.shutdown()}),o){var br=void 0,dr=void 0;ZA.staticInit()}QA=d.InternalError=DA(Error,"InternalError"),UA(),xA=d.BindingError=DA(Error,"BindingError"),te(),Ge(),Ze(),Fe=d.UnboundTypeError=DA(Error,"UnboundTypeError"),He(),ir(fr),D=k.staticAlloc(4),Y=(R=k.alignMemory(F))+x,J=k.alignMemory(Y),E[D>>2]=J;var kr=!(N=!0);function hr(A,e,r){var i=0<r?r:p(A)+1,f=new Array(i),n=s(A,f,0,f.length);return e&&(f.length=n),f}function wr(A){for(var e=[],r=0;r<A.length;r++){var i=A[r];255<i&&(kr&&h(!1,"Character code "+i+" ("+String.fromCharCode(i)+")  at offset "+r+" not in 0x00-0xFF."),i&=255),e.push(String.fromCharCode(i))}return e.join("")}var vr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",gr="function"==typeof atob?atob:function(A){var e,r,i,f,n,t,o="",a=0;for(A=A.replace(/[^A-Za-z0-9\\+\\/\\=]/g,"");e=vr.indexOf(A.charAt(a++))<<2|(f=vr.indexOf(A.charAt(a++)))>>4,r=(15&f)<<4|(n=vr.indexOf(A.charAt(a++)))>>2,i=(3&n)<<6|(t=vr.indexOf(A.charAt(a++))),o+=String.fromCharCode(e),64!==n&&(o+=String.fromCharCode(r)),64!==t&&(o+=String.fromCharCode(i)),a<A.length;);return o};function mr(A){var e="data:application/octet-stream;base64,";if(String.prototype.startsWith?A.startsWith(e):0===A.indexOf(e))return function(e){if("boolean"==typeof o&&o){var r;try{r=Buffer.from(e,"base64")}catch(A){r=new Buffer(e,"base64")}return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}try{for(var A=gr(e),i=new Uint8Array(A.length),f=0;f<A.length;++f)i[f]=A.charCodeAt(f);return i}catch(A){throw new Error("Converting base64 string to bytes failed.")}}(A.slice(e.length))}d.asmGlobalArg={Math:Math,Int8Array:Int8Array,Int16Array:Int16Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array,NaN:NaN,Infinity:1/0,byteLength:Q},d.asmLibraryArg={abort:Mr,assert:h,enlargeMemory:H,getTotalMemory:function(){return j},abortOnCannotGrowMemory:function(){Mr("Cannot enlarge memory arrays. Either (1) compile with  -s TOTAL_MEMORY=X  with X higher than the current value "+j+", (2) compile with  -s ALLOW_MEMORY_GROWTH=1  which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 ")},invoke_i:function(A){try{return d.dynCall_i(A)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_ii:function(A,e){try{return d.dynCall_ii(A,e)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_iii:function(A,e,r){try{return d.dynCall_iii(A,e,r)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_iiii:function(A,e,r,i){try{return d.dynCall_iiii(A,e,r,i)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_iiiii:function(A,e,r,i,f){try{return d.dynCall_iiiii(A,e,r,i,f)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_iiiiid:function(A,e,r,i,f,n){try{return d.dynCall_iiiiid(A,e,r,i,f,n)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_iiiiii:function(A,e,r,i,f,n){try{return d.dynCall_iiiiii(A,e,r,i,f,n)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_iiiiiid:function(A,e,r,i,f,n,t){try{return d.dynCall_iiiiiid(A,e,r,i,f,n,t)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_iiiiiii:function(A,e,r,i,f,n,t){try{return d.dynCall_iiiiiii(A,e,r,i,f,n,t)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_iiiiiiii:function(A,e,r,i,f,n,t,o){try{return d.dynCall_iiiiiiii(A,e,r,i,f,n,t,o)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_iiiiiiiii:function(A,e,r,i,f,n,t,o,a){try{return d.dynCall_iiiiiiiii(A,e,r,i,f,n,t,o,a)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_v:function(A){try{d.dynCall_v(A)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_vi:function(A,e){try{d.dynCall_vi(A,e)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_vii:function(A,e,r){try{d.dynCall_vii(A,e,r)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_viii:function(A,e,r,i){try{d.dynCall_viii(A,e,r,i)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_viiii:function(A,e,r,i,f){try{d.dynCall_viiii(A,e,r,i,f)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_viiiii:function(A,e,r,i,f,n){try{d.dynCall_viiiii(A,e,r,i,f,n)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_viiiiii:function(A,e,r,i,f,n,t){try{d.dynCall_viiiiii(A,e,r,i,f,n,t)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_viiiiiii:function(A,e,r,i,f,n,t,o){try{d.dynCall_viiiiiii(A,e,r,i,f,n,t,o)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_viiiiiiii:function(A,e,r,i,f,n,t,o,a){try{d.dynCall_viiiiiiii(A,e,r,i,f,n,t,o,a)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_viiiiiiiii:function(A,e,r,i,f,n,t,o,a,c){try{d.dynCall_viiiiiiiii(A,e,r,i,f,n,t,o,a,c)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_viiiiiiiiii:function(A,e,r,i,f,n,t,o,a,c,l){try{d.dynCall_viiiiiiiiii(A,e,r,i,f,n,t,o,a,c,l)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_viiiiiiiiiiii:function(A,e,r,i,f,n,t,o,a,c,l,u,s){try{d.dynCall_viiiiiiiiiiii(A,e,r,i,f,n,t,o,a,c,l,u,s)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},invoke_viiiiiiiiiiiii:function(A,e,r,i,f,n,t,o,a,c,l,u,s,b){try{d.dynCall_viiiiiiiiiiiii(A,e,r,i,f,n,t,o,a,c,l,u,s,b)}catch(A){if("number"!=typeof A&&"longjmp"!==A)throw A;d.setThrew(1,0)}},ClassHandle:oe,ClassHandle_clone:qA,ClassHandle_delete:Ae,ClassHandle_deleteLater:ne,ClassHandle_isAliasOf:PA,ClassHandle_isDeleted:ee,RegisteredClass:ue,RegisteredPointer:Ve,RegisteredPointer_deleteObject:ve,RegisteredPointer_destructor:we,RegisteredPointer_fromWireType:Ee,RegisteredPointer_getPointee:he,__ZSt18uncaught_exceptionv:dA,___assert_fail:function(A,e,r,i){throw n=!0,"Assertion failed: "+m(A)+", at: "+[e?m(e):"unknown filename",r,i?m(i):"unknown function"]+" at "+y()},___buildEnvironment:ir,___cxa_allocate_exception:function(A){return Xr(A)},___cxa_begin_catch:function(A){var e=kA.infos[A];return e&&!e.caught&&(e.caught=!0,dA.uncaught_exception--),e&&(e.rethrown=!1),kA.caught.push(A),kA.addRef(kA.deAdjust(A)),A},___cxa_find_matching_catch:function A(){var e=kA.last;if(!e)return 0|(k.setTempRet0(0),0);var r=kA.infos[e],i=r.type;if(!i)return 0|(k.setTempRet0(0),e);var f=Array.prototype.slice.call(arguments);d.___cxa_is_pointer_type(i);A.buffer||(A.buffer=Xr(4)),E[A.buffer>>2]=e,e=A.buffer;for(var n=0;n<f.length;n++)if(f[n]&&d.___cxa_can_catch(f[n],i,e))return e=E[e>>2],r.adjusted=e,0|(k.setTempRet0(f[n]),e);return e=E[e>>2],0|(k.setTempRet0(i),e)},___cxa_pure_virtual:function(){throw n=!0,"Pure virtual function called!"},___cxa_throw:function(A,e,r){throw kA.infos[A]={ptr:A,adjusted:A,type:e,destructor:r,refcount:0,caught:!1,rethrown:!1},kA.last=A,"uncaught_exception"in dA?dA.uncaught_exception++:dA.uncaught_exception=1,A+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch."},___gxx_personality_v0:function(){},___lock:function(){},___map_file:function(A,e){return wA(hA.EPERM),-1},___resumeException:function(A){throw kA.last||(kA.last=A),A+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch."},___setErrNo:wA,___syscall140:function(A,e){IA.varargs=e;try{var r=IA.getStreamFromFD(),i=(IA.get(),IA.get()),f=IA.get(),n=IA.get(),t=i;return WA.llseek(r,t,n),E[f>>2]=r.position,r.getdents&&0===t&&0===n&&(r.getdents=null),0}catch(A){return void 0!==WA&&A instanceof WA.ErrnoError||Mr(A),-A.errno}},___syscall145:function(A,e){IA.varargs=e;try{var r=IA.getStreamFromFD(),i=IA.get(),f=IA.get();return IA.doReadv(r,i,f)}catch(A){return void 0!==WA&&A instanceof WA.ErrnoError||Mr(A),-A.errno}},___syscall146:function(A,e){IA.varargs=e;try{var r=IA.getStreamFromFD(),i=IA.get(),f=IA.get();return IA.doWritev(r,i,f)}catch(A){return void 0!==WA&&A instanceof WA.ErrnoError||Mr(A),-A.errno}},___syscall54:function(A,e){IA.varargs=e;try{var r=IA.getStreamFromFD(),i=IA.get();switch(i){case 21505:case 21506:return r.tty?0:-hA.ENOTTY;case 21519:if(!r.tty)return-hA.ENOTTY;var f=IA.get();return E[f>>2]=0;case 21520:return r.tty?-hA.EINVAL:-hA.ENOTTY;case 21531:f=IA.get();return WA.ioctl(r,i,f);case 21523:return r.tty?0:-hA.ENOTTY;default:Mr("bad ioctl syscall "+i)}}catch(A){return void 0!==WA&&A instanceof WA.ErrnoError||Mr(A),-A.errno}},___syscall6:function(A,e){IA.varargs=e;try{var r=IA.getStreamFromFD();return WA.close(r),0}catch(A){return void 0!==WA&&A instanceof WA.ErrnoError||Mr(A),-A.errno}},___syscall91:function(A,e){IA.varargs=e;try{var r=IA.get(),i=IA.get(),f=IA.mappings[r];if(!f)return 0;if(i===f.len){var n=WA.getStream(f.fd);IA.doMsync(r,n,i,f.flags),WA.munmap(n),IA.mappings[r]=null,f.allocated&&Vr(f.malloc)}return 0}catch(A){return void 0!==WA&&A instanceof WA.ErrnoError||Mr(A),-A.errno}},___unlock:function(){},__addDays:ur,__arraySum:ar,__embind_finalize_value_object:function(A){var e=EA[A];delete EA[A];var f=e.rawConstructor,n=e.rawDestructor,u=e.fields;MA([A],u.map(function(A){return A.getterReturnType}).concat(u.map(function(A){return A.setterArgumentType})),function(c){var l={};return u.forEach(function(A,e){var r=A.fieldName,i=c[e],f=A.getter,n=A.getterContext,t=c[e+u.length],o=A.setter,a=A.setterContext;l[r]={read:function(A){return i.fromWireType(f(n,A))},write:function(A,e){var r=[];o(a,A,t.toWireType(r,e)),GA(r)}}}),[{name:e.name,fromWireType:function(A){var e={};for(var r in l)e[r]=l[r].read(A);return n(A),e},toWireType:function(A,e){for(var r in l)if(!(r in e))throw new TypeError("Missing field");var i=f();for(r in l)l[r].write(i,e[r]);return null!==A&&A.push(n,i),i},argPackAdvance:8,readValueFromPointer:VA,destructorFunction:n}]})},__embind_register_bool:function(A,r,i,f,n){var t=SA(i);zA(A,{name:r=HA(r),fromWireType:function(A){return!!A},toWireType:function(A,e){return e?f:n},argPackAdvance:8,readValueFromPointer:function(A){var e;if(1===i)e=C;else if(2===i)e=I;else{if(4!==i)throw new TypeError("Unknown boolean type size: "+r);e=E}return this.fromWireType(e[A>>t])},destructorFunction:null})},__embind_register_class:function(c,A,e,l,r,u,i,s,f,b,d,n,k){d=HA(d),u=_e(r,u),s=s&&_e(i,s),b=b&&_e(f,b),k=_e(n,k);var h=YA(d);le(h,function(){Re("Cannot construct "+d+" due to unbound types",[l])}),MA([c,A,e],l?[l]:[],function(A){var e,r;A=A[0],r=l?(e=A.registeredClass).instancePrototype:oe.prototype;var i=JA(h,function(){if(Object.getPrototypeOf(this)!==f)throw new xA("Use \'new\' to construct "+d);if(void 0===n.constructor_body)throw new xA(d+" has no accessible constructor");var A=n.constructor_body[arguments.length];if(void 0===A)throw new xA("Tried to invoke ctor of "+d+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(n.constructor_body).toString()+") parameters instead!");return A.apply(this,arguments)}),f=Object.create(r,{constructor:{value:i}});i.prototype=f;var n=new ue(d,i,f,k,e,u,s,b),t=new Ve(d,n,!0,!1,!1),o=new Ve(d+"*",n,!1,!1,!1),a=new Ve(d+" const*",n,!1,!0,!1);return ae[c]={pointerType:o,constPointerType:a},Xe(h,i),[t,o,a]})},__embind_register_class_class_function:function(A,n,t,e,r,o,a){var c=De(t,e);n=HA(n),o=_e(r,o),MA([],[A],function(A){var i=(A=A[0]).name+"."+n;function e(){Re("Cannot call "+i+" due to unbound types",c)}var f=A.registeredClass.constructor;return void 0===f[n]?(e.argCount=t-1,f[n]=e):(ce(f,n,i),f[n].overloadTable[t-1]=e),MA([],c,function(A){var e=[A[0],null].concat(A.slice(1)),r=Je(i,e,null,o,a);return void 0===f[n].overloadTable?f[n]=r:f[n].overloadTable[t-1]=r,[]}),[]})},__embind_register_class_class_property:function(A,i,f,n,e,t,o,a){i=HA(i),t=_e(e,t),MA([],[A],function(e){var r=(e=e[0]).name+"."+i,A={get:function(){Re("Cannot access "+r+" due to unbound types",[f])},enumerable:!0,configurable:!0};return A.set=a?function(){Re("Cannot access "+r+" due to unbound types",[f])}:function(A){jA(r+" is a read-only property")},Object.defineProperty(e.registeredClass.constructor,i,A),MA([],[f],function(r){r=r[0];var A={get:function(){return r.fromWireType(t(n))},enumerable:!0};return a&&(a=_e(o,a),A.set=function(A){var e=[];a(n,r.toWireType(e,A)),GA(e)}),Object.defineProperty(e.registeredClass.constructor,i,A),[]}),[]})},__embind_register_class_constructor:function(A,t,e,r,o,a){var i=De(t,e);o=_e(r,o),MA([],[A],function(A){var n="constructor "+(A=A[0]).name;if(void 0===A.registeredClass.constructor_body&&(A.registeredClass.constructor_body=[]),void 0!==A.registeredClass.constructor_body[t-1])throw new xA("Cannot register multiple constructors with identical number of parameters ("+(t-1)+") for class \'"+A.name+"\'! Overload resolution is currently only performed using the parameter count, not actual type info!");return A.registeredClass.constructor_body[t-1]=function(){Re("Cannot construct "+A.name+" due to unbound types",i)},MA([],i,function(f){return A.registeredClass.constructor_body[t-1]=function(){arguments.length!==t-1&&jA(n+" called with "+arguments.length+" arguments, expected "+(t-1));var A=[],e=new Array(t);e[0]=a;for(var r=1;r<t;++r)e[r]=f[r].toWireType(A,arguments[r-1]);var i=o.apply(null,e);return GA(A),f[0].fromWireType(i)},[]}),[]})},__embind_register_class_function:function(A,n,t,e,r,o,a,c){var l=De(t,e);n=HA(n),o=_e(r,o),MA([],[A],function(r){var i=(r=r[0]).name+"."+n;function A(){Re("Cannot call "+i+" due to unbound types",l)}c&&r.registeredClass.pureVirtualFunctions.push(n);var f=r.registeredClass.instancePrototype,e=f[n];return void 0===e||void 0===e.overloadTable&&e.className!==r.name&&e.argCount===t-2?(A.argCount=t-2,A.className=r.name,f[n]=A):(ce(f,n,i),f[n].overloadTable[t-2]=A),MA([],l,function(A){var e=Je(i,A,r,o,a);return void 0===f[n].overloadTable?(e.argCount=t-2,f[n]=e):f[n].overloadTable[t-2]=e,[]}),[]})},__embind_register_class_property:function(A,t,e,r,o,a,i,c,l,u){t=HA(t),o=_e(r,o),MA([],[A],function(f){var n=(f=f[0]).name+"."+t,A={get:function(){Re("Cannot access "+n+" due to unbound types",[e,i])},enumerable:!0,configurable:!0};return A.set=l?function(){Re("Cannot access "+n+" due to unbound types",[e,i])}:function(A){jA(n+" is a read-only property")},Object.defineProperty(f.registeredClass.instancePrototype,t,A),MA([],l?[e,i]:[e],function(A){var e=A[0],r={get:function(){var A=Qe(this,f,n+" getter");return e.fromWireType(o(a,A))},enumerable:!0};if(l){l=_e(c,l);var i=A[1];r.set=function(A){var e=Qe(this,f,n+" setter"),r=[];l(u,e,i.toWireType(r,A)),GA(r)}}return Object.defineProperty(f.registeredClass.instancePrototype,t,r),[]}),[]})},__embind_register_emval:function(A,e){zA(A,{name:e=HA(e),fromWireType:function(A){var e=Me[A].value;return Se(A),e},toWireType:function(A,e){return xe(e)},argPackAdvance:8,readValueFromPointer:VA,destructorFunction:null})},__embind_register_enum:function(A,e,r,i){var f=SA(r);function n(){}e=HA(e),n.values={},zA(A,{name:e,constructor:n,fromWireType:function(A){return this.constructor.values[A]},toWireType:function(A,e){return e.value},argPackAdvance:8,readValueFromPointer:je(e,f,i),destructorFunction:null}),le(e,n)},__embind_register_enum_value:function(A,e,r){var i=ze(A,"enum");e=HA(e);var f=i.constructor,n=Object.create(i.constructor.prototype,{value:{value:r},constructor:{value:JA(i.name+"_"+e,function(){})}});f.values[r]=n,f[e]=n},__embind_register_float:function(A,e,r){var i=SA(r);zA(A,{name:e=HA(e),fromWireType:function(A){return A},toWireType:function(A,e){if("number"!=typeof e&&"boolean"!=typeof e)throw new TypeError(\'Cannot convert "\'+Pe(e)+\'" to \'+this.name);return e},argPackAdvance:8,readValueFromPointer:Le(e,i),destructorFunction:null})},__embind_register_function:function(r,i,A,e,f,n){var t=De(i,A);r=HA(r),f=_e(e,f),le(r,function(){Re("Cannot call "+r+" due to unbound types",t)},i-1),MA([],t,function(A){var e=[A[0],null].concat(A.slice(1));return Xe(r,Je(r,e,null,f,n),i-1),[]})},__embind_register_integer:function(A,r,e,i,f){r=HA(r),-1===f&&(f=4294967295);var n=SA(e),t=function(A){return A};if(0===i){var o=32-8*e;t=function(A){return A<<o>>>o}}var a=-1!=r.indexOf("unsigned");zA(A,{name:r,fromWireType:t,toWireType:function(A,e){if("number"!=typeof e&&"boolean"!=typeof e)throw new TypeError(\'Cannot convert "\'+Pe(e)+\'" to \'+this.name);if(e<i||f<e)throw new TypeError(\'Passing a number "\'+Pe(e)+\'" from JS side to C/C++ side to an argument of type "\'+r+\'", which is outside the valid range [\'+i+", "+f+"]!");return a?e>>>0:0|e},argPackAdvance:8,readValueFromPointer:Ke(r,n,0!==i),destructorFunction:null})},__embind_register_memory_view:function(A,e,r){var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function f(A){var e=G[A>>=2],r=G[A+1];return new i(G.buffer,r,e)}zA(A,{name:r=HA(r),fromWireType:f,argPackAdvance:8,readValueFromPointer:f},{ignoreDuplicateRegistrations:!0})},__embind_register_smart_ptr:function(A,e,r,i,f,n,t,o,a,c,l,u){r=HA(r),n=_e(f,n),o=_e(t,o),c=_e(a,c),u=_e(l,u),MA([A],[e],function(A){return A=A[0],[new Ve(r,A.registeredClass,!1,!1,!0,A,i,n,o,c,u)]})},__embind_register_std_string:function(A,e){zA(A,{name:e=HA(e),fromWireType:function(A){for(var e=G[A>>2],r=new Array(e),i=0;i<e;++i)r[i]=String.fromCharCode(W[A+4+i]);return Vr(A),r.join("")},toWireType:function(A,e){function r(A,e){return A[e]}var i;e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array?i=r:"string"==typeof e?i=function(A,e){return A.charCodeAt(e)}:jA("Cannot pass non-string to std::string");var f=e.length,n=Xr(4+f);G[n>>2]=f;for(var t=0;t<f;++t){var o=i(e,t);255<o&&(Vr(n),jA("String has UTF-16 code units that do not fit in 8 bits")),W[n+4+t]=o}return null!==A&&A.push(Vr,n),n},argPackAdvance:8,readValueFromPointer:VA,destructorFunction:function(A){Vr(A)}})},__embind_register_std_wstring:function(A,o,e){var a,c;e=HA(e),2===o?(a=function(){return B},c=1):4===o&&(a=function(){return G},c=2),zA(A,{name:e,fromWireType:function(A){for(var e=a(),r=G[A>>2],i=new Array(r),f=A+4>>c,n=0;n<r;++n)i[n]=String.fromCharCode(e[f+n]);return Vr(A),i.join("")},toWireType:function(A,e){var r=a(),i=e.length,f=Xr(4+i*o);G[f>>2]=i;for(var n=f+4>>c,t=0;t<i;++t)r[n+t]=e.charCodeAt(t);return null!==A&&A.push(Vr,f),f},argPackAdvance:8,readValueFromPointer:VA,destructorFunction:function(A){Vr(A)}})},__embind_register_value_object:function(A,e,r,i,f,n){EA[A]={name:HA(e),rawConstructor:_e(r,i),rawDestructor:_e(f,n),fields:[]}},__embind_register_value_object_field:function(A,e,r,i,f,n,t,o,a,c){EA[A].fields.push({fieldName:HA(e),getterReturnType:r,getter:_e(i,f),getterContext:n,setterArgumentType:t,setter:_e(o,a),setterContext:c})},__embind_register_void:function(A,e){zA(A,{isVoid:!0,name:e=HA(e),argPackAdvance:0,fromWireType:function(){},toWireType:function(A,e){}})},__emval_call:function(A,e,r,i){A=$e(A);for(var f=qe(e,r),n=new Array(e),t=0;t<e;++t){var o=f[t];n[t]=o.readValueFromPointer(i),i+=o.argPackAdvance}return xe(A.apply(void 0,n))},__emval_decref:Se,__emval_incref:function(A){4<A&&(Me[A].refcount+=1)},__emval_lookupTypes:qe,__emval_new_cstring:function(A){return xe(er(A))},__emval_new_object:function(){return xe({})},__emval_register:xe,__emval_set_property:function(A,e,r){A=$e(A),e=$e(e),r=$e(r),A[e]=r},__emval_take_value:function(A,e){return xe((A=ze(A,"_emval_take_value")).readValueFromPointer(e))},__isLeapYear:or,_abort:function(){d.abort()},_embind_repr:Pe,_emscripten_memcpy_big:function(A,e,r){return W.set(W.subarray(e,e+r),A),A},_getenv:function A(e){return 0===e?0:(e=m(e),fr.hasOwnProperty(e)?(A.ret&&Vr(A.ret),A.ret=a(hr(fr[e]),"i8",t)):0)},_pthread_cond_destroy:function(){return 0},_pthread_cond_init:function(){return 0},_pthread_cond_signal:function(){return 0},_pthread_cond_wait:function(){return 0},_pthread_getspecific:function(A){return nr[A]||0},_pthread_join:function(){},_pthread_key_create:function(A,e){return 0==A?hA.EINVAL:(E[A>>2]=tr,nr[tr]=0,tr++,0)},_pthread_mutex_destroy:function(){},_pthread_mutex_init:function(){},_pthread_once:function A(e,r){A.seen||(A.seen={}),e in A.seen||(d.dynCall_v(r),A.seen[e]=1)},_pthread_setspecific:function(A,e){return A in nr?(nr[A]=e,0):hA.EINVAL},_strftime:sr,_strftime_l:function(A,e,r,i){return sr(A,e,r,i)},constNoSmartPtrRawPointerToWireType:be,count_emval_handles:Ue,craftInvokerFunction:Je,createNamedFunction:JA,downcastPointer:ge,embind_init_charCodes:UA,ensureOverloadTable:ce,enumReadValueFromPointer:je,exposePublicSymbol:le,extendError:DA,floatReadValueFromPointer:Le,flushPendingDeletes:fe,genericPointerToWireType:de,getBasestPointer:We,getInheritedInstance:Ie,getInheritedInstanceCount:me,getLiveInheritedInstances:pe,getShiftFromSize:SA,getStringOrSymbol:er,getTypeName:Ne,get_first_emval:Oe,heap32VectorToArray:De,init_ClassHandle:te,init_RegisteredPointer:Ge,init_embind:Ze,init_emval:He,integerReadValueFromPointer:Ke,makeClassHandle:Be,makeLegalFunctionName:YA,new_:Ye,nonConstNoSmartPtrRawPointerToWireType:ke,readLatin1String:HA,registerType:zA,replacePublicSymbol:Xe,requireFunction:_e,requireHandle:$e,requireRegisteredType:ze,runDestructor:$A,runDestructors:GA,setDelayFunction:ye,shallowCopyInternalPointer:LA,simpleReadValueFromPointer:VA,throwBindingError:jA,throwInstanceAlreadyDeleted:KA,throwInternalError:TA,throwUnboundTypeError:Re,upcastPointer:se,validateThis:Qe,whenDependentTypesAreResolved:MA,DYNAMICTOP_PTR:D,tempDoublePtr:bA,ABORT:n,STACKTOP:R,STACK_MAX:Y,cttz_i8:BA};var pr,yr=function(A,e,r){var i=A.Int8Array,tr=new i(r),f=A.Int16Array,or=new f(r),n=A.Int32Array,ar=new n(r),t=A.Uint8Array,cr=new t(r),o=A.Uint16Array,lr=new o(r),a=A.Uint32Array,c=(new a(r),A.Float32Array),Y=new c(r),l=A.Float64Array,J=new l(r),u=A.byteLength,s=0|e.DYNAMICTOP_PTR,d=0|e.tempDoublePtr,ur=(e.ABORT,0|e.STACKTOP),b=(e.STACK_MAX,0|e.cttz_i8),k=0,h=A.NaN,w=A.Infinity,D=0,X=(A.Math.floor,A.Math.abs),sr=(A.Math.sqrt,A.Math.pow,A.Math.cos,A.Math.sin,A.Math.tan,A.Math.acos,A.Math.asin,A.Math.atan,A.Math.atan2,A.Math.exp,A.Math.log,A.Math.ceil,A.Math.imul),v=(A.Math.min,A.Math.max,A.Math.clz32),g=e.abort,m=(e.assert,e.enlargeMemory),p=e.getTotalMemory,y=e.abortOnCannotGrowMemory,Z=(e.invoke_i,e.invoke_ii,e.invoke_iii,e.invoke_iiii,e.invoke_iiiii,e.invoke_iiiiid,e.invoke_iiiiii,e.invoke_iiiiiid,e.invoke_iiiiiii,e.invoke_iiiiiiii,e.invoke_iiiiiiiii,e.invoke_v,e.invoke_vi,e.invoke_vii,e.invoke_viii,e.invoke_viiii,e.invoke_viiiii,e.invoke_viiiiii,e.invoke_viiiiiii,e.invoke_viiiiiiii,e.invoke_viiiiiiiii,e.invoke_viiiiiiiiii,e.invoke_viiiiiiiiiiii,e.invoke_viiiiiiiiiiiii,e.ClassHandle,e.ClassHandle_clone,e.ClassHandle_delete,e.ClassHandle_deleteLater,e.ClassHandle_isAliasOf,e.ClassHandle_isDeleted,e.RegisteredClass,e.RegisteredPointer,e.RegisteredPointer_deleteObject,e.RegisteredPointer_destructor,e.RegisteredPointer_fromWireType,e.RegisteredPointer_getPointee,e.__ZSt18uncaught_exceptionv),br=e.___assert_fail,C=(e.___buildEnvironment,e.___cxa_allocate_exception),W=(e.___cxa_begin_catch,e.___cxa_find_matching_catch,e.___cxa_pure_virtual),I=e.___cxa_throw,B=(e.___gxx_personality_v0,e.___lock),E=e.___map_file,G=(e.___resumeException,e.___setErrNo),V=e.___syscall140,_=e.___syscall145,F=e.___syscall146,N=e.___syscall54,R=e.___syscall6,Q=e.___syscall91,T=e.___unlock,M=(e.__addDays,e.__arraySum,e.__embind_finalize_value_object),S=e.__embind_register_bool,U=e.__embind_register_class,O=e.__embind_register_class_class_function,H=e.__embind_register_class_class_property,x=e.__embind_register_class_constructor,j=e.__embind_register_class_function,z=e.__embind_register_class_property,P=e.__embind_register_emval,L=e.__embind_register_enum,K=e.__embind_register_enum_value,q=e.__embind_register_float,$=e.__embind_register_function,AA=e.__embind_register_integer,eA=e.__embind_register_memory_view,rA=e.__embind_register_smart_ptr,iA=e.__embind_register_std_string,fA=e.__embind_register_std_wstring,nA=e.__embind_register_value_object,tA=e.__embind_register_value_object_field,oA=e.__embind_register_void,aA=e.__emval_call,cA=e.__emval_decref,lA=e.__emval_incref,uA=(e.__emval_lookupTypes,e.__emval_new_cstring),sA=e.__emval_new_object,bA=(e.__emval_register,e.__emval_set_property),dA=e.__emval_take_value,kA=(e.__isLeapYear,e._abort),hA=(e._embind_repr,e._emscripten_memcpy_big),wA=e._getenv,vA=e._pthread_cond_destroy,gA=e._pthread_cond_init,mA=e._pthread_cond_signal,pA=e._pthread_cond_wait,yA=e._pthread_getspecific,ZA=e._pthread_join,CA=e._pthread_key_create,WA=e._pthread_mutex_destroy,IA=e._pthread_mutex_init,BA=e._pthread_once,EA=e._pthread_setspecific,GA=(e._strftime,e._strftime_l);e.constNoSmartPtrRawPointerToWireType,e.count_emval_handles,e.craftInvokerFunction,e.createNamedFunction,e.downcastPointer,e.embind_init_charCodes,e.ensureOverloadTable,e.enumReadValueFromPointer,e.exposePublicSymbol,e.extendError,e.floatReadValueFromPointer,e.flushPendingDeletes,e.genericPointerToWireType,e.getBasestPointer,e.getInheritedInstance,e.getInheritedInstanceCount,e.getLiveInheritedInstances,e.getShiftFromSize,e.getStringOrSymbol,e.getTypeName,e.get_first_emval,e.heap32VectorToArray,e.init_ClassHandle,e.init_RegisteredPointer,e.init_embind,e.init_emval,e.integerReadValueFromPointer,e.makeClassHandle,e.makeLegalFunctionName,e.new_,e.nonConstNoSmartPtrRawPointerToWireType,e.readLatin1String,e.registerType,e.replacePublicSymbol,e.requireFunction,e.requireHandle,e.requireRegisteredType,e.runDestructor,e.runDestructors,e.setDelayFunction,e.shallowCopyInternalPointer,e.simpleReadValueFromPointer,e.throwBindingError,e.throwInstanceAlreadyDeleted,e.throwInternalError,e.throwUnboundTypeError,e.upcastPointer,e.validateThis,e.whenDependentTypesAreResolved;function VA(A,e,r,i,f,n,t){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var o,a,c,l,u,s,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0;switch(l=ur=(s=ur)+31&-32,ur=ur+16|0,u=0|bf(t|=0,52536),c=0|bf(t,52552),ks[63&ar[20+(0|ar[c>>2])>>2]](l,c),ar[n>>2]=i,(t=0|tr[A>>0])<<24>>24){case 43:case 45:v=0|fs[63&ar[28+(0|ar[u>>2])>>2]](u,t),b=0|ar[n>>2],ar[n>>2]=b+1,tr[b>>0]=v,b=A+1|0;break;default:b=A}v=r;A:do{if(1<(v-b|0)&&48==(0|tr[b>>0])){switch(0|tr[(t=b+1|0)>>0]){case 88:case 120:break;default:t=b,g=10;break A}for(h=0|fs[63&ar[28+(0|ar[u>>2])>>2]](u,48),w=0|ar[n>>2],ar[n>>2]=w+1,tr[w>>0]=h,b=b+2|0,w=0|fs[63&ar[28+(0|ar[u>>2])>>2]](u,0|tr[t>>0]),t=0|ar[n>>2],ar[n>>2]=t+1,tr[t>>0]=w,t=b;;){if(r>>>0<=t>>>0)break A;if(!(0|oi(w=0|tr[t>>0],hf())))break A;t=t+1|0}}else t=b,g=10}while(0);A:do{if(10==(0|g))for(;;){if(r>>>(g=0)<=t>>>0)break A;if(!(0|ni(w=0|tr[t>>0],hf())))break A;t=t+1|0,g=10}}while(0);k=0|tr[(o=11+l|0)>>0],a=4+l|0,h=b,w=A;A:do{if(0|(k<<24>>24<0?0|ar[a>>2]:255&k)){e:do{if((0|b)!=(0|t))for(A=t,d=b;;){if((A=A+-1|0)>>>0<=d>>>0)break e;k=0|tr[d>>0],tr[d>>0]=0|tr[A>>0],tr[A>>0]=k,d=d+1|0}}while(0);for(k=0|is[127&ar[16+(0|ar[c>>2])>>2]](c),A=d=0;!(t>>>0<=b>>>0);)0<(m=0|tr[((0|tr[o>>0])<0?0|ar[l>>2]:l)+A>>0])<<24>>24&(0|d)==(m<<24>>24|0)&&(d=0|ar[n>>2],ar[n>>2]=d+1,tr[d>>0]=k,A=(A>>>0<(((d=0|tr[o>>0])<<24>>24<0?0|ar[a>>2]:255&d)-1|0)>>>0&1)+A|0,d=0),p=0|fs[63&ar[28+(0|ar[u>>2])>>2]](u,0|tr[b>>0]),m=0|ar[n>>2],ar[n>>2]=m+1,tr[m>>0]=p,b=b+1|0,d=d+1|0;if((0|(A=i+(h-w)|0))==(0|(b=0|ar[n>>2])))A=u;else for(;;){if((b=b+-1|0)>>>0<=A>>>0){A=u;break A}p=0|tr[A>>0],tr[A>>0]=0|tr[b>>0],tr[b>>0]=p,A=A+1|0}}else ts[15&ar[32+(0|ar[u>>2])>>2]](u,b,t,0|ar[n>>2]),ar[n>>2]=(0|ar[n>>2])+(t-h),A=u}while(0);for(;!(r>>>0<=t>>>0);){if(b=0|tr[t>>0],t=t+1|0,b<<24>>24==46){g=29;break}m=0|fs[63&ar[28+(0|ar[A>>2])>>2]](u,b),p=0|ar[n>>2],ar[n>>2]=p+1,tr[p>>0]=m}29==(0|g)&&(m=0|is[127&ar[12+(0|ar[c>>2])>>2]](c),p=0|ar[n>>2],ar[n>>2]=p+1,tr[p>>0]=m),ts[15&ar[32+(0|ar[u>>2])>>2]](u,t,r,0|ar[n>>2]),p=(0|ar[n>>2])+(v-t)|0,ar[n>>2]=p,ar[f>>2]=(0|e)==(0|r)?p:i+(e-w)|0,Yl(l),ur=s}function XA(A,e,r,i){A|=0,e|=0,r|=0;var f=0;for(2048&(i|=0)&&(tr[A>>0]=43,A=A+1|0),f=512&i?(tr[A>>0]=35,A+1|0):A;(A=0|tr[e>>0])<<24>>24;)tr[f>>0]=A,e=e+1|0,f=f+1|0;switch(74&i){case 64:A=111;break;case 8:A=16384&i|0?88:120;break;default:A=r?100:117}tr[f>>0]=A}function _A(A,e,r,i,f,n,t){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var o,a,c,l,u,s,b=0,d=0,k=0,h=0,w=0;if(u=ur=(s=ur)+31&-32,ur=ur+16|0,c=0|bf(t|=0,52536),d=0|bf(t,52552),ks[63&ar[20+(0|ar[d>>2])>>2]](u,d),a=4+u|0,l=A,b=r,0|((k=0|tr[(o=11+u|0)>>0])<<24>>24<0?0|ar[a>>2]:255&k)){switch(ar[n>>2]=i,(t=0|tr[A>>0])<<24>>24){case 43:case 45:t=0|fs[63&ar[28+(0|ar[c>>2])>>2]](c,t),k=0|ar[n>>2],ar[n>>2]=k+1,tr[k>>0]=t,A=A+1|0}A:do{if(1<(b-A|0)&&48==(0|tr[A>>0])){switch(0|tr[(t=A+1|0)>>0]){case 88:case 120:break;default:break A}k=0|fs[63&ar[28+(0|ar[c>>2])>>2]](c,48),b=0|ar[n>>2],ar[n>>2]=b+1,tr[b>>0]=k,b=0|fs[63&ar[28+(0|ar[c>>2])>>2]](c,0|tr[t>>0]),k=0|ar[n>>2],ar[n>>2]=k+1,tr[k>>0]=b,A=A+2|0}}while(0);A:do{if((0|A)!=(0|r))for(t=r,b=A;;){if((t=t+-1|0)>>>0<=b>>>0)break A;k=0|tr[b>>0],tr[b>>0]=0|tr[t>>0],tr[t>>0]=k,b=b+1|0}}while(0);for(k=0|is[127&ar[16+(0|ar[d>>2])>>2]](d),d=A,b=t=0;!(r>>>0<=d>>>0);)(h=0|tr[((0|tr[o>>0])<0?0|ar[u>>2]:u)+t>>0])<<24>>24!=0&(0|b)==(h<<24>>24|0)&&(b=0|ar[n>>2],ar[n>>2]=b+1,tr[b>>0]=k,t=(t>>>0<(((b=0|tr[o>>0])<<24>>24<0?0|ar[a>>2]:255&b)-1|0)>>>0&1)+t|0,b=0),w=0|fs[63&ar[28+(0|ar[c>>2])>>2]](c,0|tr[d>>0]),h=0|ar[n>>2],ar[n>>2]=h+1,tr[h>>0]=w,d=d+1|0,b=b+1|0;if((0|(t=i+(A-l)|0))!=(0|(A=0|ar[n>>2]))){for(;!((A=A+-1|0)>>>0<=t>>>0);)w=0|tr[t>>0],tr[t>>0]=0|tr[A>>0],tr[A>>0]=w,t=t+1|0;t=0|ar[n>>2]}}else ts[15&ar[32+(0|ar[c>>2])>>2]](c,A,r,i),t=i+(b-l)|0,ar[n>>2]=t;ar[f>>2]=(0|e)==(0|r)?t:i+(e-l)|0,Yl(u),ur=s}function FA(A,e,r,i,f,n){e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0;o=ur=(a=ur)+31&-32,ur=ur+16|0,t=12+o|0,c=0|ar[(A|=0)>>2];A:do{if(c){if(l=(0|(l=i-(h=e)>>2))<(0|(u=0|ar[(s=f+12|0)>>2]))?u-l|0:0,f=(h=(u=r)-h|0)>>2,0<(0|h)&&(0|ns[63&ar[48+(0|ar[c>>2])>>2]](c,e,f))!=(0|f)){c=ar[A>>2]=0;break}do{if(0<(0|l)){ar[o>>2]=0,ar[4+o>>2]=0,1073741807<l>>>(ar[8+o>>2]=0)&&Nl();do{if(2<=l>>>0){if(!(1073741823<(f=l+4&2147483644)>>>0)){b=0|El(f<<2),ar[o>>2]=b,ar[(d=8+o|0)>>2]=-2147483648|f,ar[4+o>>2]=l,d=d+3|0,k=o;break}kA()}else tr[(d=8+o+3|0)>>0]=l,k=b=o}while(0);if(NA(b,l,n),sf(b+(l<<2)|(ar[t>>2]=0),t),(0|ns[63&ar[48+(0|ar[c>>2])>>2]](c,(0|tr[d>>0])<0?0|ar[o>>2]:k,l))==(0|l)){Pl(o);break}ar[A>>2]=0,Pl(o),c=0;break A}}while(0);if(i=(h=i-u|0)>>2,0<(0|h)&&(0|ns[63&ar[48+(0|ar[c>>2])>>2]](c,r,i))!=(0|i)){c=ar[A>>2]=0;break}ar[s>>2]=0}else c=0}while(0);return ur=a,0|c}function NA(A,e,r){return A|=0,r|=0,(e|=0)&&function(A,e,r){A|=0,e|=0;var i=0;if(0|(r|=0))for(i=A;r=r+-1|0,ar[i>>2]=e,r;)i=i+4|0}(A,r,e),0|A}function RA(A,e,r,i,f,n,t){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var o,a,c,l,u,s,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0;switch(l=ur=(s=ur)+31&-32,ur=ur+16|0,u=0|bf(t|=0,52568),c=0|bf(t,52576),ks[63&ar[20+(0|ar[c>>2])>>2]](l,c),ar[n>>2]=i,(t=0|tr[A>>0])<<24>>24){case 43:case 45:m=0|fs[63&ar[44+(0|ar[u>>2])>>2]](u,t),t=0|ar[n>>2],ar[n>>2]=t+4,ar[t>>2]=m,t=A+1|0;break;default:t=A}m=r;A:do{if(1<(m-t|0)&&48==(0|tr[t>>0])){switch(0|tr[(b=t+1|0)>>0]){case 88:case 120:break;default:b=t,p=10;break A}for(v=0|fs[63&ar[44+(0|ar[u>>2])>>2]](u,48),g=0|ar[n>>2],ar[n>>2]=g+4,ar[g>>2]=v,t=t+2|0,g=0|fs[63&ar[44+(0|ar[u>>2])>>2]](u,0|tr[b>>0]),b=0|ar[n>>2],ar[n>>2]=b+4,ar[b>>2]=g,b=t;;){if(r>>>0<=b>>>0)break A;if(!(0|oi(g=0|tr[b>>0],hf())))break A;b=b+1|0}}else b=t,p=10}while(0);A:do{if(10==(0|p))for(;;){if(r>>>(p=0)<=b>>>0)break A;if(!(0|ni(g=0|tr[b>>0],hf())))break A;b=b+1|0,p=10}}while(0);w=0|tr[(o=11+l|0)>>0],a=4+l|0,v=t,g=A;A:do{if(0|(w<<24>>24<0?0|ar[a>>2]:255&w)){e:do{if((0|t)!=(0|b))for(A=b,d=t;;){if((A=A+-1|0)>>>0<=d>>>0)break e;w=0|tr[d>>0],tr[d>>0]=0|tr[A>>0],tr[A>>0]=w,d=d+1|0}}while(0);for(w=0|is[127&ar[16+(0|ar[c>>2])>>2]](c),d=A=0;!(b>>>0<=t>>>0);)k=0|tr[o>>0],0<(y=0|tr[((h=k<<24>>24<0)?0|ar[l>>2]:l)+A>>0])<<24>>24&(0|d)==(y<<24>>24|0)&&(d=0|ar[n>>2],ar[n>>2]=d+4,ar[d>>2]=w,A=(A>>>0<((h?0|ar[a>>2]:255&k)-1|0)>>>0&1)+A|0,d=0),h=0|fs[63&ar[44+(0|ar[u>>2])>>2]](u,0|tr[t>>0]),y=0|ar[n>>2],ar[n>>2]=y+4,ar[y>>2]=h,t=t+1|0,d=d+1|0;if((0|(t=i+(v-g<<2)|0))==(0|(d=0|ar[n>>2])))A=u;else for(A=d;;){if((A=A+-4|0)>>>0<=t>>>0){A=u,t=d;break A}y=0|ar[t>>2],ar[t>>2]=ar[A>>2],ar[A>>2]=y,t=t+4|0}}else ts[15&ar[48+(0|ar[u>>2])>>2]](u,t,b,0|ar[n>>2]),t=(0|ar[n>>2])+(b-v<<2)|0,ar[n>>2]=t,A=u}while(0);for(;!(r>>>0<=b>>>0);){if(t=0|tr[b>>0],b=b+1|0,t<<24>>24==46){p=29;break}v=0|fs[63&ar[44+(0|ar[A>>2])>>2]](u,t),t=(y=0|ar[n>>2])+4|0,ar[n>>2]=t,ar[y>>2]=v}29==(0|p)&&(p=0|is[127&ar[12+(0|ar[c>>2])>>2]](c),t=(y=0|ar[n>>2])+4|0,ar[n>>2]=t,ar[y>>2]=p),ts[15&ar[48+(0|ar[u>>2])>>2]](u,b,r,t),y=(0|ar[n>>2])+(m-b<<2)|0,ar[n>>2]=y,ar[f>>2]=(0|e)==(0|r)?y:i+(e-g<<2)|0,Yl(l),ur=s}function YA(A,e,r,i,f,n,t){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var o,a,c,l,u,s,b=0,d=0,k=0,h=0,w=0,v=0;if(u=ur=(s=ur)+31&-32,ur=ur+16|0,c=0|bf(t|=0,52568),d=0|bf(t,52576),ks[63&ar[20+(0|ar[d>>2])>>2]](u,d),a=4+u|0,l=A,b=r,0|((w=0|tr[(o=11+u|0)>>0])<<24>>24<0?0|ar[a>>2]:255&w)){switch(ar[n>>2]=i,(t=0|tr[A>>0])<<24>>24){case 43:case 45:h=0|fs[63&ar[44+(0|ar[c>>2])>>2]](c,t),w=0|ar[n>>2],ar[n>>2]=w+4,ar[w>>2]=h,A=A+1|0}A:do{if(1<(b-A|0)&&48==(0|tr[A>>0])){switch(0|tr[(t=A+1|0)>>0]){case 88:case 120:break;default:break A}w=0|fs[63&ar[44+(0|ar[c>>2])>>2]](c,48),h=0|ar[n>>2],ar[n>>2]=h+4,ar[h>>2]=w,h=0|fs[63&ar[44+(0|ar[c>>2])>>2]](c,0|tr[t>>0]),w=0|ar[n>>2],ar[n>>2]=w+4,ar[w>>2]=h,A=A+2|0}}while(0);A:do{if((0|A)!=(0|r))for(t=r,b=A;;){if((t=t+-1|0)>>>0<=b>>>0)break A;w=0|tr[b>>0],tr[b>>0]=0|tr[t>>0],tr[t>>0]=w,b=b+1|0}}while(0);for(w=0|is[127&ar[16+(0|ar[d>>2])>>2]](d),h=A,b=t=0;!(r>>>0<=h>>>0);)d=0|tr[o>>0],(v=0|tr[((k=d<<24>>24<0)?0|ar[u>>2]:u)+t>>0])<<24>>24!=0&(0|b)==(v<<24>>24|0)&&(b=0|ar[n>>2],ar[n>>2]=b+4,ar[b>>2]=w,t=(t>>>0<((k?0|ar[a>>2]:255&d)-1|0)>>>0&1)+t|0,b=0),k=0|fs[63&ar[44+(0|ar[c>>2])>>2]](c,0|tr[h>>0]),v=0|ar[n>>2],ar[n>>2]=v+4,ar[v>>2]=k,h=h+1|0,b=b+1|0;if((0|(t=i+(A-l<<2)|0))!=(0|(A=0|ar[n>>2]))){for(;!((A=A+-4|0)>>>0<=t>>>0);)v=0|ar[t>>2],ar[t>>2]=ar[A>>2],ar[A>>2]=v,t=t+4|0;t=0|ar[n>>2]}}else ts[15&ar[48+(0|ar[c>>2])>>2]](c,A,r,i),t=i+(b-l<<2)|0,ar[n>>2]=t;ar[f>>2]=(0|e)==(0|r)?t:i+(e-l<<2)|0,Yl(u),ur=s}function JA(A,e,r,i,f,n){e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a;a=ur=(t=ur)+31&-32,ur=ur+16|0,o=4+a|0,A=0|is[127&ar[ar[(A=(A|=0)+8|0)>>2]>>2]](A),ar[a>>2]=ar[i>>2],ar[o>>2]=ar[a>>2],(0|(A=(0|Ff(r,o,A,A+168|0,n,f,0))-A|0))<168&&(ar[e>>2]=((0|A)/12|0)%7|0),ur=t}function DA(A,e,r,i,f,n){e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a;a=ur=(t=ur)+31&-32,ur=ur+16|0,o=4+a|0,A=0|is[127&ar[4+(0|ar[(A=(A|=0)+8|0)>>2])>>2]](A),ar[a>>2]=ar[i>>2],ar[o>>2]=ar[a>>2],(0|(A=(0|Ff(r,o,A,A+288|0,n,f,0))-A|0))<288&&(ar[e>>2]=((0|A)/12|0)%12|0),ur=t}function QA(A,e,r,i,f,n,t,o){A|=0,e|=0,r|=0,f|=0,n|=0,t|=0,o|=0;var a,c,l,u,s,b,d,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0;b=ur=(d=ur)+31&-32,ur=ur+16|0,a=8+b|0,s=4+b|0,Di(c=12+b|0,i|=0),l=0|bf(c,52536),df(c),u=8+l|(ar[f>>2]=0),k=0;A:for(;;){for(p=(0|t)!=(0|o),h=k;;){if(k=0|ar[e>>2],!(p&0==(0|h)))break A;m=(w=k)?0|Ji(h=(0|(h=0|ar[k+12>>2]))==(0|ar[k+16>>2])?0|is[127&ar[36+(0|ar[k>>2])>>2]](k):0|bi(0|tr[h>>0]),-1)?(g=1,k=ar[e>>2]=0):(g=0,w):(k=0,g=1,w),h=v=0|ar[r>>2];do{if(v){if(0|Ji(w=(0|(w=0|ar[v+12>>2]))==(0|ar[v+16>>2])?0|is[127&ar[36+(0|ar[v>>2])>>2]](v):0|bi(0|tr[w>>0]),-1)){h=ar[r>>2]=0,Z=16;break}if(g)break;Z=61;break A}Z=16}while(0);if(16==(0|Z)){if(Z=0,g){Z=61;break A}v=0}if((0|ns[63&ar[36+(0|ar[l>>2])>>2]](l,0|tr[t>>0],0))<<24>>24==37){Z=19;break}if(-1<(h=0|tr[t>>0])<<24>>24&&(y=0|ar[u>>2],8192&or[y+(h<<24>>24<<1)>>1])){Z=27;break}if(h=(0|(h=0|ar[(w=k+12|0)>>2]))==(0|ar[(v=k+16|0)>>2])?0|is[127&ar[36+(0|ar[k>>2])>>2]](k):0|bi(0|tr[h>>0]),(m=0|fs[63&ar[12+(0|ar[l>>2])>>2]](l,255&h))<<24>>24==(0|fs[63&ar[12+(0|ar[l>>2])>>2]](l,0|tr[t>>0]))<<24>>24){Z=57;break}h=ar[f>>2]=4}e:do{if(19==(0|Z)){if(((Z=0)|(g=t+1|0))==(0|o)){Z=61;break A}switch((w=0|ns[63&ar[36+(0|ar[l>>2])>>2]](l,0|tr[g>>0],0))<<24>>24){case 48:case 69:if((0|(t=t+2|0))==(0|o)){Z=61;break A}v=w,k=0|ns[63&ar[36+(0|ar[l>>2])>>2]](l,0|tr[t>>0],0),t=g;break;default:v=0,k=w}p=0|ar[36+(0|ar[A>>2])>>2],ar[s>>2]=m,ar[b>>2]=h,ar[a>>2]=ar[s>>2],ar[c>>2]=ar[b>>2],p=0|ss[15&p](A,a,c,i,f,n,k,v),ar[e>>2]=p,t=t+2|0}else if(27==(0|Z)){for(;;){if(((Z=0)|(t=t+1|0))==(0|o)){t=o;break}if((h=0|tr[t>>0])<<24>>24<=-1)break;if(!(8192&or[y+(h<<24>>24<<1)>>1]))break;Z=27}for(h=v;;){k?0|Ji(w=(0|(w=0|ar[k+12>>2]))==(0|ar[k+16>>2])?0|is[127&ar[36+(0|ar[k>>2])>>2]](k):0|bi(0|tr[w>>0]),-1)?(g=1,k=ar[e>>2]=0):g=0:(g=1,k=0);do{if(v){if(0|Ji(w=(0|(w=0|ar[v+12>>2]))==(0|ar[v+16>>2])?0|is[127&ar[36+(0|ar[v>>2])>>2]](v):0|bi(0|tr[w>>0]),-1)){h=ar[r>>2]=0,Z=43;break}if(g^0==(0|h)){v=m=h;break}break e}Z=43}while(0);if(43==(0|Z)){if(Z=0,g)break e;m=h,v=0}if((255&(h=(0|(h=0|ar[(w=k+12|0)>>2]))==(0|ar[(g=k+16|0)>>2])?0|is[127&ar[36+(0|ar[k>>2])>>2]](k):0|bi(0|tr[h>>0])))<<24>>24<=-1)break e;if(!(8192&or[(0|ar[u>>2])+(h<<24>>24<<1)>>1]))break e;(0|(h=0|ar[w>>2]))!=(0|ar[g>>2])?(ar[w>>2]=h+1,bi(0|tr[h>>0]),h=m):(is[127&ar[40+(0|ar[k>>2])>>2]](k),h=m)}}else if(57==(0|Z)){if(t=t+1|(Z=0),(0|(h=0|ar[w>>2]))==(0|ar[v>>2])){is[127&ar[40+(0|ar[k>>2])>>2]](k);break}ar[w>>2]=h+1,bi(0|tr[h>>0]);break}}while(0);k=0|ar[f>>2]}61==(0|Z)&&(ar[f>>2]=4),w=k?0|Ji(t=(0|(t=0|ar[k+12>>2]))==(0|ar[k+16>>2])?0|is[127&ar[36+(0|ar[k>>2])>>2]](k):0|bi(0|tr[t>>0]),-1)?(k=ar[e>>2]=0,1):0:(k=0,1),t=0|ar[r>>2];do{if(t){if(0|Ji(t=(0|(h=0|ar[t+12>>2]))==(0|ar[t+16>>2])?0|is[127&ar[36+(0|ar[t>>2])>>2]](t):0|bi(0|tr[h>>0]),-1)){ar[r>>2]=0,Z=74;break}if(w)break;Z=76;break}Z=74}while(0);return 74==(0|Z)&&w&&(Z=76),76==(0|Z)&&(ar[f>>2]=2|ar[f>>2]),ur=d,0|k}function TA(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],((A=0|$A(r,A,f,n,2))+-1|0)>>>0<31&0==(4&(r=0|ar[f>>2])|0)?ar[e>>2]=A:ar[f>>2]=4|r,ur=t}function MA(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],(0|(A=0|$A(r,A,f,n,2)))<24&0==(4&(r=0|ar[f>>2])|0)?ar[e>>2]=A:ar[f>>2]=4|r,ur=t}function SA(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],((A=0|$A(r,A,f,n,2))+-1|0)>>>0<12&0==(4&(r=0|ar[f>>2])|0)?ar[e>>2]=A:ar[f>>2]=4|r,ur=t}function UA(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],(0|(A=0|$A(r,A,f,n,3)))<366&0==(4&(r=0|ar[f>>2])|0)?ar[e>>2]=A:ar[f>>2]=4|r,ur=t}function OA(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],(0|(A=0|$A(r,A,f,n,2)))<13&0==(4&(r=0|ar[f>>2])|0)?ar[e>>2]=A+-1:ar[f>>2]=4|r,ur=t}function HA(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],(0|(A=0|$A(r,A,f,n,2)))<60&0==(4&(r=0|ar[f>>2])|0)?ar[e>>2]=A:ar[f>>2]=4|r,ur=t}function xA(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0;var n,t=0,o=0;n=(f|=0)+8|0;A:for(;;){A=0|ar[e>>2];do{if(A){if(0|Ji(A=(0|(f=0|ar[A+12>>2]))==(0|ar[A+16>>2])?0|is[127&ar[36+(0|ar[A>>2])>>2]](A):0|bi(0|tr[f>>0]),-1)){ar[e>>2]=0,t=1;break}t=0==(0|ar[e>>2]);break}t=1}while(0);f=0|ar[r>>2];do{if(f){if(0|Ji(A=(0|(A=0|ar[f+12>>2]))==(0|ar[f+16>>2])?0|is[127&ar[36+(0|ar[f>>2])>>2]](f):0|bi(0|tr[A>>0]),-1)){ar[r>>2]=0,o=15;break}if(t){t=f;break}t=f;break A}o=15}while(0);if(15==(0|o)){if(o=0,t){t=0;break}t=0}if(A=0|ar[e>>2],(255&(A=(0|(f=0|ar[A+12>>2]))==(0|ar[A+16>>2])?0|is[127&ar[36+(0|ar[A>>2])>>2]](A):0|bi(0|tr[f>>0])))<<24>>24<=-1)break;if(!(8192&or[(0|ar[n>>2])+(A<<24>>24<<1)>>1]))break;A=0|ar[e>>2],(0|(t=0|ar[(f=A+12|0)>>2]))!=(0|ar[A+16>>2])?(ar[f>>2]=t+1,bi(0|tr[t>>0])):is[127&ar[40+(0|ar[A>>2])>>2]](A)}A=0|ar[e>>2];do{if(A){if(0|Ji(A=(0|(f=0|ar[A+12>>2]))==(0|ar[A+16>>2])?0|is[127&ar[36+(0|ar[A>>2])>>2]](A):0|bi(0|tr[f>>0]),-1)){ar[e>>2]=0,f=1;break}f=0==(0|ar[e>>2]);break}f=1}while(0);do{if(t){if(0|Ji(A=(0|(A=0|ar[t+12>>2]))==(0|ar[t+16>>2])?0|is[127&ar[36+(0|ar[t>>2])>>2]](t):0|bi(0|tr[A>>0]),-1)){ar[r>>2]=0,o=38;break}if(f)break;o=40;break}o=38}while(0);38==(0|o)&&f&&(o=40),40==(0|o)&&(ar[i>>2]=2|ar[i>>2])}function jA(A,e,r,i,f,n){e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c=0,l=0;o=ur=(a=ur)+31&-32,ur=ur+16|0,t=4+o|0,l=0|is[127&ar[8+(0|ar[(l=(A|=0)+8|0)>>2])>>2]](l),c=(A=0|tr[l+11>>0])<<24>>24<0?0|ar[l+4>>2]:255&A,(A=0|tr[l+12+11>>0])<<24>>24<0?A=0|ar[l+16>>2]:A&=255;do{if((0|c)!=(0-A|0)){if(ar[o>>2]=ar[i>>2],ar[t>>2]=ar[o>>2],A=(0|Ff(r,t,l,l+24|0,n,f,0))-l|0,12==(0|(c=0|ar[e>>2]))&0==(0|A)){ar[e>>2]=0;break}(0|c)<12&12==(0|A)&&(ar[e>>2]=c+12)}else ar[f>>2]=4|ar[f>>2]}while(0);ur=a}function zA(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],(0|(A=0|$A(r,A,f,n,2)))<61&0==(4&(r=0|ar[f>>2])|0)?ar[e>>2]=A:ar[f>>2]=4|r,ur=t}function PA(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],(0|(A=0|$A(r,A,f,n,1)))<7&0==(4&(r=0|ar[f>>2])|0)?ar[e>>2]=A:ar[f>>2]=4|r,ur=t}function LA(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],A=0|$A(r,A,f,n,4),4&ar[f>>2]||(A=(0|A)<69?A+2e3|0:(0|A)<100?A+1900|0:A,ar[e>>2]=A+-1900),ur=t}function KA(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],A=0|$A(r,A,f,n,4),4&ar[f>>2]||(ar[e>>2]=A+-1900),ur=t}function qA(A,e,r,i,f){A|=0,r|=0,i|=0,f|=0;var n=0,t=0,o=0,a=0;A=0|ar[(e|=0)>>2];do{if(A){if(0|Ji(A=(0|(n=0|ar[A+12>>2]))==(0|ar[A+16>>2])?0|is[127&ar[36+(0|ar[A>>2])>>2]](A):0|bi(0|tr[n>>0]),-1)){ar[e>>2]=0,t=1;break}t=0==(0|ar[e>>2]);break}t=1}while(0);n=0|ar[r>>2];do{if(n){if(0|Ji(A=(0|(A=0|ar[n+12>>2]))==(0|ar[n+16>>2])?0|is[127&ar[36+(0|ar[n>>2])>>2]](n):0|bi(0|tr[A>>0]),-1)){ar[r>>2]=0,a=14;break}if(t){o=n,a=16;break}A=6,a=38;break}a=14}while(0);14==(0|a)&&(a=t?(A=6,38):(o=0,16));A:do{if(16==(0|a))if(A=0|ar[e>>2],A=(0|(n=0|ar[A+12>>2]))==(0|ar[A+16>>2])?0|is[127&ar[36+(0|ar[A>>2])>>2]](A):0|bi(0|tr[n>>0]),(0|ns[63&ar[36+(0|ar[f>>2])>>2]](f,255&A,0))<<24>>24==37){A=0|ar[e>>2],(0|(t=0|ar[(n=A+12|0)>>2]))==(0|ar[A+16>>2])?is[127&ar[40+(0|ar[A>>2])>>2]](A):(ar[n>>2]=t+1,bi(0|tr[t>>0])),A=0|ar[e>>2];do{if(A){if(0|Ji(A=(0|(n=0|ar[A+12>>2]))==(0|ar[A+16>>2])?0|is[127&ar[36+(0|ar[A>>2])>>2]](A):0|bi(0|tr[n>>0]),-1)){ar[e>>2]=0,n=1;break}n=0==(0|ar[e>>2]);break}n=1}while(0);do{if(0|o){if(0|Ji(A=(0|(A=0|ar[o+12>>2]))==(0|ar[o+16>>2])?0|is[127&ar[36+(0|ar[o>>2])>>2]](o):0|bi(0|tr[A>>0]),-1)){ar[r>>2]=0;break}if(n)break A;A=2,a=38;break A}}while(0);n&&(A=2,a=38)}else A=4,a=38}while(0);38==(0|a)&&(ar[i>>2]=ar[i>>2]|A)}function $A(A,e,r,i,f){e|=0,r|=0,i|=0,f|=0;var n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0;n=0|ar[(A|=0)>>2];do{if(n){if(0|Ji(n=(0|(t=0|ar[n+12>>2]))==(0|ar[n+16>>2])?0|is[127&ar[36+(0|ar[n>>2])>>2]](n):0|bi(0|tr[t>>0]),-1)){ar[A>>2]=0,o=1;break}o=0==(0|ar[A>>2]);break}o=1}while(0);t=0|ar[e>>2];do{if(t){if(0|Ji(n=(0|(n=0|ar[t+12>>2]))==(0|ar[t+16>>2])?0|is[127&ar[36+(0|ar[t>>2])>>2]](t):0|bi(0|tr[n>>0]),-1)){ar[e>>2]=0,k=14;break}if(o){k=17;break}k=16;break}k=14}while(0);14==(0|k)&&(k=o?16:(t=0,17));A:do{if(16==(0|k))ar[r>>2]=6|ar[r>>2],n=0;else if(17==(0|k)){if(n=0|ar[A>>2],-1<(o=255&(n=(0|(o=0|ar[n+12>>2]))==(0|ar[n+16>>2])?0|is[127&ar[36+(0|ar[n>>2])>>2]](n):0|bi(0|tr[o>>0])))<<24>>24&&2048&or[(0|ar[(d=i+8|0)>>2])+(n<<24>>24<<1)>>1]){for(n=(0|ns[63&ar[36+(0|ar[i>>2])>>2]](i,o,0))<<24>>24,o=0|ar[A>>2],a=l=((0|(c=0|ar[(a=o+12|0)>>2]))==(0|ar[o+16>>2])?is[127&ar[40+(0|ar[o>>2])>>2]](o):(ar[a>>2]=c+1,bi(0|tr[c>>0])),t);;){n=n+-48|0,b=f+-1|0,t=0|ar[A>>2];do{if(t){if(0|Ji(t=(0|(o=0|ar[t+12>>2]))==(0|ar[t+16>>2])?0|is[127&ar[36+(0|ar[t>>2])>>2]](t):0|bi(0|tr[o>>0]),-1)){ar[A>>2]=0,c=1;break}c=0==(0|ar[A>>2]);break}c=1}while(0);do{if(a){if(0|Ji(t=(0|(t=0|ar[a+12>>2]))==(0|ar[a+16>>2])?0|is[127&ar[36+(0|ar[a>>2])>>2]](a):0|bi(0|tr[t>>0]),-1)){t=1,u=s=ar[e>>2]=0;break}t=0==(0|(s=l)),u=l;break}s=l,t=1,u=0}while(0);if(o=0|ar[A>>2],!(1<(0|f)&(c^t)))break;if((o=255&(t=(0|(t=0|ar[o+12>>2]))==(0|ar[o+16>>2])?0|is[127&ar[36+(0|ar[o>>2])>>2]](o):0|bi(0|tr[t>>0])))<<24>>24<=-1)break A;if(!(2048&or[(0|ar[d>>2])+(t<<24>>24<<1)>>1]))break A;n=((0|ns[63&ar[36+(0|ar[i>>2])>>2]](i,o,0))<<24>>24)+(10*n|0)|0,t=0|ar[A>>2],(0|(a=0|ar[(o=t+12|0)>>2]))!=(0|ar[t+16>>2])?(ar[o>>2]=a+1,bi(0|tr[a>>0]),f=b,l=s,a=u):(is[127&ar[40+(0|ar[t>>2])>>2]](t),f=b,l=s,a=u)}do{if(o){if(0|Ji(t=(0|(t=0|ar[o+12>>2]))==(0|ar[o+16>>2])?0|is[127&ar[36+(0|ar[o>>2])>>2]](o):0|bi(0|tr[t>>0]),-1)){ar[A>>2]=0,o=1;break}o=0==(0|ar[A>>2]);break}o=1}while(0);do{if(s){if(0|Ji(t=(0|(t=0|ar[s+12>>2]))==(0|ar[s+16>>2])?0|is[127&ar[36+(0|ar[s>>2])>>2]](s):0|bi(0|tr[t>>0]),-1)){ar[e>>2]=0,k=62;break}if(o)break A;break}k=62}while(0);if(62==(0|k)&&!o)break;ar[r>>2]=2|ar[r>>2];break}ar[r>>2]=4|ar[r>>2],n=0}}while(0);return 0|n}function Ae(A){return 0|function(A){var e=0;e=A|=0;for(;0|ar[e>>2];)e=e+4|0;return e-A>>2|0}(A|=0)}function ee(A,e,r,i,f,n){e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a;a=ur=(t=ur)+31&-32,ur=ur+16|0,o=4+a|0,A=0|is[127&ar[ar[(A=(A|=0)+8|0)>>2]>>2]](A),ar[a>>2]=ar[i>>2],ar[o>>2]=ar[a>>2],(0|(A=(0|Df(r,o,A,A+168|0,n,f,0))-A|0))<168&&(ar[e>>2]=((0|A)/12|0)%7|0),ur=t}function re(A,e,r,i,f,n){e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a;a=ur=(t=ur)+31&-32,ur=ur+16|0,o=4+a|0,A=0|is[127&ar[4+(0|ar[(A=(A|=0)+8|0)>>2])>>2]](A),ar[a>>2]=ar[i>>2],ar[o>>2]=ar[a>>2],(0|(A=(0|Df(r,o,A,A+288|0,n,f,0))-A|0))<288&&(ar[e>>2]=((0|A)/12|0)%12|0),ur=t}function ie(A,e,r,i,f,n,t,o){A|=0,e|=0,r|=0,f|=0,n|=0,t|=0,o|=0;var a,c,l,u,s,b,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0;s=ur=(b=ur)+31&-32,ur=ur+16|0,a=8+s|0,u=4+s|0,Di(c=12+s|0,i|=0),l=0|bf(c,52568),df(c),d=ar[f>>2]=0;A:for(;;){for(m=(0|t)!=(0|o),k=d;;){if(d=0|ar[e>>2],!(m&0==(0|k)))break A;g=(h=d)?0|Qi(k=(0|(k=0|ar[d+12>>2]))==(0|ar[d+16>>2])?0|is[127&ar[36+(0|ar[d>>2])>>2]](d):0|wi(0|ar[k>>2]),-1)?(v=1,d=ar[e>>2]=0):(v=0,h):(d=0,v=1,h),k=w=0|ar[r>>2];do{if(w){if(0|Qi(h=(0|(h=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[h>>2]),-1)){k=ar[r>>2]=0,p=16;break}if(v)break;p=58;break A}p=16}while(0);if(16==(0|p)){if(p=0,v){p=58;break A}w=0}if((0|ns[63&ar[52+(0|ar[l>>2])>>2]](l,0|ar[t>>2],0))<<24>>24==37){p=19;break}if(0|ns[63&ar[12+(0|ar[l>>2])>>2]](l,8192,0|ar[t>>2])){p=26;break}if(k=(0|(k=0|ar[(h=d+12|0)>>2]))==(0|ar[(w=d+16|0)>>2])?0|is[127&ar[36+(0|ar[d>>2])>>2]](d):0|wi(0|ar[k>>2]),(0|(g=0|fs[63&ar[28+(0|ar[l>>2])>>2]](l,k)))==(0|fs[63&ar[28+(0|ar[l>>2])>>2]](l,0|ar[t>>2]))){p=54;break}k=ar[f>>2]=4}e:do{if(19==(0|p)){if(((p=0)|(v=t+4|0))==(0|o)){p=58;break A}switch((h=0|ns[63&ar[52+(0|ar[l>>2])>>2]](l,0|ar[v>>2],0))<<24>>24){case 48:case 69:if((0|(t=t+8|0))==(0|o)){p=58;break A}w=h,d=0|ns[63&ar[52+(0|ar[l>>2])>>2]](l,0|ar[t>>2],0),t=v;break;default:w=0,d=h}m=0|ar[36+(0|ar[A>>2])>>2],ar[u>>2]=g,ar[s>>2]=k,ar[a>>2]=ar[u>>2],ar[c>>2]=ar[s>>2],m=0|ss[15&m](A,a,c,i,f,n,d,w),ar[e>>2]=m,t=t+8|0}else if(26==(0|p)){for(;;){if(((p=0)|(t=t+4|0))==(0|o)){t=o;break}if(!(0|ns[63&ar[12+(0|ar[l>>2])>>2]](l,8192,0|ar[t>>2])))break;p=26}for(k=w;;){d?0|Qi(h=(0|(h=0|ar[d+12>>2]))==(0|ar[d+16>>2])?0|is[127&ar[36+(0|ar[d>>2])>>2]](d):0|wi(0|ar[h>>2]),-1)?(v=1,d=ar[e>>2]=0):v=0:(v=1,d=0);do{if(w){if(0|Qi(h=(0|(h=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[h>>2]),-1)){k=ar[r>>2]=0,p=41;break}if(v^0==(0|k)){w=g=k;break}break e}p=41}while(0);if(41==(0|p)){if(p=0,v)break e;g=k,w=0}if(k=(0|(k=0|ar[(h=d+12|0)>>2]))==(0|ar[(v=d+16|0)>>2])?0|is[127&ar[36+(0|ar[d>>2])>>2]](d):0|wi(0|ar[k>>2]),!(0|ns[63&ar[12+(0|ar[l>>2])>>2]](l,8192,k)))break e;(0|(k=0|ar[h>>2]))!=(0|ar[v>>2])?(ar[h>>2]=k+4,wi(0|ar[k>>2]),k=g):(is[127&ar[40+(0|ar[d>>2])>>2]](d),k=g)}}else if(54==(0|p)){if(t=t+4|(p=0),(0|(k=0|ar[h>>2]))==(0|ar[w>>2])){is[127&ar[40+(0|ar[d>>2])>>2]](d);break}ar[h>>2]=k+4,wi(0|ar[k>>2]);break}}while(0);d=0|ar[f>>2]}58==(0|p)&&(ar[f>>2]=4),h=d?0|Qi(t=(0|(t=0|ar[d+12>>2]))==(0|ar[d+16>>2])?0|is[127&ar[36+(0|ar[d>>2])>>2]](d):0|wi(0|ar[t>>2]),-1)?(d=ar[e>>2]=0,1):0:(d=0,1),t=0|ar[r>>2];do{if(t){if(0|Qi(t=(0|(k=0|ar[t+12>>2]))==(0|ar[t+16>>2])?0|is[127&ar[36+(0|ar[t>>2])>>2]](t):0|wi(0|ar[k>>2]),-1)){ar[r>>2]=0,p=71;break}if(h)break;p=73;break}p=71}while(0);return 71==(0|p)&&h&&(p=73),73==(0|p)&&(ar[f>>2]=2|ar[f>>2]),ur=b,0|d}function fe(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],((A=0|we(r,A,f,n,2))+-1|0)>>>0<31&0==(4&(r=0|ar[f>>2])|0)?ar[e>>2]=A:ar[f>>2]=4|r,ur=t}function ne(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],(0|(A=0|we(r,A,f,n,2)))<24&0==(4&(r=0|ar[f>>2])|0)?ar[e>>2]=A:ar[f>>2]=4|r,ur=t}function te(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],((A=0|we(r,A,f,n,2))+-1|0)>>>0<12&0==(4&(r=0|ar[f>>2])|0)?ar[e>>2]=A:ar[f>>2]=4|r,ur=t}function oe(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],(0|(A=0|we(r,A,f,n,3)))<366&0==(4&(r=0|ar[f>>2])|0)?ar[e>>2]=A:ar[f>>2]=4|r,ur=t}function ae(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],(0|(A=0|we(r,A,f,n,2)))<13&0==(4&(r=0|ar[f>>2])|0)?ar[e>>2]=A+-1:ar[f>>2]=4|r,ur=t}function ce(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],(0|(A=0|we(r,A,f,n,2)))<60&0==(4&(r=0|ar[f>>2])|0)?ar[e>>2]=A:ar[f>>2]=4|r,ur=t}function le(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0,f|=0;var n=0,t=0,o=0;A:for(;;){A=0|ar[e>>2];do{if(A){if(0|Qi(A=(0|(n=0|ar[A+12>>2]))==(0|ar[A+16>>2])?0|is[127&ar[36+(0|ar[A>>2])>>2]](A):0|wi(0|ar[n>>2]),-1)){ar[e>>2]=0,t=1;break}t=0==(0|ar[e>>2]);break}t=1}while(0);n=0|ar[r>>2];do{if(n){if(0|Qi(A=(0|(A=0|ar[n+12>>2]))==(0|ar[n+16>>2])?0|is[127&ar[36+(0|ar[n>>2])>>2]](n):0|wi(0|ar[A>>2]),-1)){ar[r>>2]=0,o=15;break}if(t){t=n;break}t=n;break A}o=15}while(0);if(15==(0|o)){if(o=0,t){t=0;break}t=0}if(A=0|ar[e>>2],A=(0|(n=0|ar[A+12>>2]))==(0|ar[A+16>>2])?0|is[127&ar[36+(0|ar[A>>2])>>2]](A):0|wi(0|ar[n>>2]),!(0|ns[63&ar[12+(0|ar[f>>2])>>2]](f,8192,A)))break;A=0|ar[e>>2],(0|(t=0|ar[(n=A+12|0)>>2]))!=(0|ar[A+16>>2])?(ar[n>>2]=t+4,wi(0|ar[t>>2])):is[127&ar[40+(0|ar[A>>2])>>2]](A)}A=0|ar[e>>2];do{if(A){if(0|Qi(A=(0|(n=0|ar[A+12>>2]))==(0|ar[A+16>>2])?0|is[127&ar[36+(0|ar[A>>2])>>2]](A):0|wi(0|ar[n>>2]),-1)){ar[e>>2]=0,n=1;break}n=0==(0|ar[e>>2]);break}n=1}while(0);do{if(t){if(0|Qi(A=(0|(A=0|ar[t+12>>2]))==(0|ar[t+16>>2])?0|is[127&ar[36+(0|ar[t>>2])>>2]](t):0|wi(0|ar[A>>2]),-1)){ar[r>>2]=0,o=37;break}if(n)break;o=39;break}o=37}while(0);37==(0|o)&&n&&(o=39),39==(0|o)&&(ar[i>>2]=2|ar[i>>2])}function ue(A,e,r,i,f,n){e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c=0,l=0;o=ur=(a=ur)+31&-32,ur=ur+16|0,t=4+o|0,l=0|is[127&ar[8+(0|ar[(l=(A|=0)+8|0)>>2])>>2]](l),c=(A=0|tr[l+8+3>>0])<<24>>24<0?0|ar[l+4>>2]:255&A,(A=0|tr[l+20+3>>0])<<24>>24<0?A=0|ar[l+16>>2]:A&=255;do{if((0|c)!=(0-A|0)){if(ar[o>>2]=ar[i>>2],ar[t>>2]=ar[o>>2],A=(0|Df(r,t,l,l+24|0,n,f,0))-l|0,12==(0|(c=0|ar[e>>2]))&0==(0|A)){ar[e>>2]=0;break}(0|c)<12&12==(0|A)&&(ar[e>>2]=c+12)}else ar[f>>2]=4|ar[f>>2]}while(0);ur=a}function se(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],(0|(A=0|we(r,A,f,n,2)))<61&0==(4&(r=0|ar[f>>2])|0)?ar[e>>2]=A:ar[f>>2]=4|r,ur=t}function be(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],(0|(A=0|we(r,A,f,n,1)))<7&0==(4&(r=0|ar[f>>2])|0)?ar[e>>2]=A:ar[f>>2]=4|r,ur=t}function de(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],A=0|we(r,A,f,n,4),4&ar[f>>2]||(A=(0|A)<69?A+2e3|0:(0|A)<100?A+1900|0:A,ar[e>>2]=A+-1900),ur=t}function ke(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o;o=ur=(t=ur)+31&-32,ur=ur+16|0,A=4+o|0,ar[o>>2]=ar[i>>2],ar[A>>2]=ar[o>>2],A=0|we(r,A,f,n,4),4&ar[f>>2]||(ar[e>>2]=A+-1900),ur=t}function he(A,e,r,i,f){A|=0,r|=0,i|=0,f|=0;var n=0,t=0,o=0,a=0;A=0|ar[(e|=0)>>2];do{if(A){if(0|Qi(A=(0|(n=0|ar[A+12>>2]))==(0|ar[A+16>>2])?0|is[127&ar[36+(0|ar[A>>2])>>2]](A):0|wi(0|ar[n>>2]),-1)){ar[e>>2]=0,t=1;break}t=0==(0|ar[e>>2]);break}t=1}while(0);n=0|ar[r>>2];do{if(n){if(0|Qi(A=(0|(A=0|ar[n+12>>2]))==(0|ar[n+16>>2])?0|is[127&ar[36+(0|ar[n>>2])>>2]](n):0|wi(0|ar[A>>2]),-1)){ar[r>>2]=0,a=14;break}if(t){o=n,a=16;break}A=6,a=38;break}a=14}while(0);14==(0|a)&&(a=t?(A=6,38):(o=0,16));A:do{if(16==(0|a))if(A=0|ar[e>>2],A=(0|(n=0|ar[A+12>>2]))==(0|ar[A+16>>2])?0|is[127&ar[36+(0|ar[A>>2])>>2]](A):0|wi(0|ar[n>>2]),(0|ns[63&ar[52+(0|ar[f>>2])>>2]](f,A,0))<<24>>24==37){A=0|ar[e>>2],(0|(t=0|ar[(n=A+12|0)>>2]))==(0|ar[A+16>>2])?is[127&ar[40+(0|ar[A>>2])>>2]](A):(ar[n>>2]=t+4,wi(0|ar[t>>2])),A=0|ar[e>>2];do{if(A){if(0|Qi(A=(0|(n=0|ar[A+12>>2]))==(0|ar[A+16>>2])?0|is[127&ar[36+(0|ar[A>>2])>>2]](A):0|wi(0|ar[n>>2]),-1)){ar[e>>2]=0,n=1;break}n=0==(0|ar[e>>2]);break}n=1}while(0);do{if(0|o){if(0|Qi(A=(0|(A=0|ar[o+12>>2]))==(0|ar[o+16>>2])?0|is[127&ar[36+(0|ar[o>>2])>>2]](o):0|wi(0|ar[A>>2]),-1)){ar[r>>2]=0;break}if(n)break A;A=2,a=38;break A}}while(0);n&&(A=2,a=38)}else A=4,a=38}while(0);38==(0|a)&&(ar[i>>2]=ar[i>>2]|A)}function we(A,e,r,i,f){e|=0,r|=0,i|=0,f|=0;var n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0;n=0|ar[(A|=0)>>2];do{if(n){if(0|Qi(n=(0|(t=0|ar[n+12>>2]))==(0|ar[n+16>>2])?0|is[127&ar[36+(0|ar[n>>2])>>2]](n):0|wi(0|ar[t>>2]),-1)){ar[A>>2]=0,o=1;break}o=0==(0|ar[A>>2]);break}o=1}while(0);t=0|ar[e>>2];do{if(t){if(0|Qi(n=(0|(n=0|ar[t+12>>2]))==(0|ar[t+16>>2])?0|is[127&ar[36+(0|ar[t>>2])>>2]](t):0|wi(0|ar[n>>2]),-1)){ar[e>>2]=0,d=14;break}if(o){d=17;break}d=16;break}d=14}while(0);14==(0|d)&&(d=o?16:(t=0,17));A:do{if(16==(0|d))ar[r>>2]=6|ar[r>>2],n=0;else if(17==(0|d)){if(n=0|ar[A>>2],n=(0|(o=0|ar[n+12>>2]))==(0|ar[n+16>>2])?0|is[127&ar[36+(0|ar[n>>2])>>2]](n):0|wi(0|ar[o>>2]),!(0|ns[63&ar[12+(0|ar[i>>2])>>2]](i,2048,n))){ar[r>>2]=4|ar[r>>2],n=0;break}for(n=(0|ns[63&ar[52+(0|ar[i>>2])>>2]](i,n,0))<<24>>24,o=0|ar[A>>2],a=l=((0|(c=0|ar[(a=o+12|0)>>2]))==(0|ar[o+16>>2])?is[127&ar[40+(0|ar[o>>2])>>2]](o):(ar[a>>2]=c+4,wi(0|ar[c>>2])),t);;){n=n+-48|0,b=f+-1|0,t=0|ar[A>>2];do{if(t){if(0|Qi(t=(0|(o=0|ar[t+12>>2]))==(0|ar[t+16>>2])?0|is[127&ar[36+(0|ar[t>>2])>>2]](t):0|wi(0|ar[o>>2]),-1)){ar[A>>2]=0,c=1;break}c=0==(0|ar[A>>2]);break}c=1}while(0);do{if(a){if(0|Qi(t=(0|(t=0|ar[a+12>>2]))==(0|ar[a+16>>2])?0|is[127&ar[36+(0|ar[a>>2])>>2]](a):0|wi(0|ar[t>>2]),-1)){t=1,u=s=ar[e>>2]=0;break}t=0==(0|(s=l)),u=l;break}s=l,t=1,u=0}while(0);if(o=0|ar[A>>2],!(1<(0|f)&(c^t)))break;if(t=(0|(t=0|ar[o+12>>2]))==(0|ar[o+16>>2])?0|is[127&ar[36+(0|ar[o>>2])>>2]](o):0|wi(0|ar[t>>2]),!(0|ns[63&ar[12+(0|ar[i>>2])>>2]](i,2048,t)))break A;n=((0|ns[63&ar[52+(0|ar[i>>2])>>2]](i,t,0))<<24>>24)+(10*n|0)|0,t=0|ar[A>>2],(0|(a=0|ar[(o=t+12|0)>>2]))!=(0|ar[t+16>>2])?(ar[o>>2]=a+4,wi(0|ar[a>>2]),f=b,l=s,a=u):(is[127&ar[40+(0|ar[t>>2])>>2]](t),f=b,l=s,a=u)}do{if(o){if(0|Qi(t=(0|(t=0|ar[o+12>>2]))==(0|ar[o+16>>2])?0|is[127&ar[36+(0|ar[o>>2])>>2]](o):0|wi(0|ar[t>>2]),-1)){ar[A>>2]=0,o=1;break}o=0==(0|ar[A>>2]);break}o=1}while(0);do{if(s){if(0|Qi(t=(0|(t=0|ar[s+12>>2]))==(0|ar[s+16>>2])?0|is[127&ar[36+(0|ar[s>>2])>>2]](s):0|wi(0|ar[t>>2]),-1)){ar[e>>2]=0,d=60;break}if(o)break A;break}d=60}while(0);if(60==(0|d)&&!o)break;ar[r>>2]=2|ar[r>>2]}}while(0);return 0|n}function ve(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c,l,u=0;t=ur=(a=ur)+31&-32,ur=ur+16|0,tr[t>>0]=37,tr[(o=1+t|0)>>0]=f,tr[(u=2+t|0)>>0]=n,tr[3+t>>0]=0,n<<24>>24&&(tr[o>>0]=n,tr[u>>0]=f),u=0|(c=e,l=0|ar[r>>2],(l|=0)-(c|=0)|0),u=e+(0|GA(0|e,0|u,0|t,0|i,0|ar[A>>2]))|0,ar[r>>2]=u,ur=a}function ge(A){(0|(0|ar[(A|=0)>>2]))!=(0|hf())&&fi(0|ar[A>>2])}function me(){kA()}function pe(A,e,r){return A|=0,r|=0,0|(e|=0)&&Vu(0|A,255&(0|bi(r))|0,0|e),0|A}function ye(A,e,r,i,f,n,t,o,a,c,l){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0;var u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_,F,N,R,Y,J,D,Q,T=0,M=0,S=0,U=0,O=0,H=0,x=0,j=0;for(X=ur=(Q=ur)+31&-32,ur=ur+512|0,x=96+X|0,D=80+X|0,V=72+X|0,W=68+X|0,I=500+X|0,B=497+X|0,E=496+X|0,_=56+X|0,F=44+X|0,N=32+X|0,R=20+X|0,Y=8+X|0,G=4+X|0,ar[(C=88+X|0)>>2]=l,ar[D>>2]=x,ar[(J=4+D|0)>>2]=309,ar[V>>2]=x,ar[W>>2]=x+400,ar[_>>2]=0,ar[4+_>>2]=0,l=ar[8+_>>2]=0;3!=(0|l);)l=l+1|(ar[_+(l<<2)>>2]=0);for(ar[F>>2]=0,ar[4+F>>2]=0,l=ar[8+F>>2]=0;3!=(0|l);)l=l+1|(ar[F+(l<<2)>>2]=0);for(ar[N>>2]=0,ar[4+N>>2]=0,l=ar[8+N>>2]=0;3!=(0|l);)l=l+1|(ar[N+(l<<2)>>2]=0);for(ar[R>>2]=0,ar[4+R>>2]=0,l=ar[8+R>>2]=0;3!=(0|l);)l=l+1|(ar[R+(l<<2)>>2]=0);for(ar[Y>>2]=0,ar[4+Y>>2]=0,l=ar[8+Y>>2]=0;3!=(0|l);)l=l+1|(ar[Y+(l<<2)>>2]=0);!function(A,e,r,i,f,n,t,o,a,c){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0;var l,u,s;if(u=ur=(s=ur)+31&-32,ur=ur+16|0,l=12+u|0,A|=0){for(e=0|bf(e,54256),ks[63&ar[44+(0|ar[e>>2])>>2]](l,e),A=0|ar[l>>2],tr[r>>0]=A,tr[r+1>>0]=A>>8,tr[r+2>>0]=A>>16,tr[r+3>>0]=A>>24,ks[63&ar[32+(0|ar[e>>2])>>2]](u,e),A=((0|tr[(A=a+11|0)>>0])<0?(A=0|ar[a>>2],tr[l>>0]=0,Ni(A,l),ar[a+4>>2]=0):(tr[l>>0]=0,Ni(a,l),tr[A>>0]=0),a),Ml(a,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)ar[u+(A<<2)>>2]=0,A=A+1|0;for(Yl(u),ks[63&ar[28+(0|ar[e>>2])>>2]](u,e),A=((0|tr[(A=o+11|0)>>0])<0?(A=0|ar[o>>2],tr[l>>0]=0,Ni(A,l),ar[o+4>>2]=0):(tr[l>>0]=0,Ni(o,l),tr[A>>0]=0),o),Ml(o,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)ar[u+(A<<2)>>2]=0,A=A+1|0;for(Yl(u),A=0|is[127&ar[12+(0|ar[e>>2])>>2]](e),tr[i>>0]=A,A=0|is[127&ar[16+(0|ar[e>>2])>>2]](e),tr[f>>0]=A,ks[63&ar[20+(0|ar[e>>2])>>2]](u,e),A=((0|tr[(A=n+11|0)>>0])<0?(A=0|ar[n>>2],tr[l>>0]=0,Ni(A,l),ar[n+4>>2]=0):(tr[l>>0]=0,Ni(n,l),tr[A>>0]=0),n),Ml(n,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)ar[u+(A<<2)>>2]=0,A=A+1|0;for(Yl(u),ks[63&ar[24+(0|ar[e>>2])>>2]](u,e),A=((0|tr[(A=t+11|0)>>0])<0?(A=0|ar[t>>2],tr[l>>0]=0,Ni(A,l),ar[t+4>>2]=0):(tr[l>>0]=0,Ni(t,l),tr[A>>0]=0),t),Ml(t,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)ar[u+(A<<2)>>2]=0,A=A+1|0;Yl(u),A=0|is[127&ar[36+(0|ar[e>>2])>>2]](e)}else{for(e=0|bf(e,54248),ks[63&ar[44+(0|ar[e>>2])>>2]](l,e),A=0|ar[l>>2],tr[r>>0]=A,tr[r+1>>0]=A>>8,tr[r+2>>0]=A>>16,tr[r+3>>0]=A>>24,ks[63&ar[32+(0|ar[e>>2])>>2]](u,e),A=((0|tr[(A=a+11|0)>>0])<0?(A=0|ar[a>>2],tr[l>>0]=0,Ni(A,l),ar[a+4>>2]=0):(tr[l>>0]=0,Ni(a,l),tr[A>>0]=0),a),Ml(a,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)ar[u+(A<<2)>>2]=0,A=A+1|0;for(Yl(u),ks[63&ar[28+(0|ar[e>>2])>>2]](u,e),A=((0|tr[(A=o+11|0)>>0])<0?(A=0|ar[o>>2],tr[l>>0]=0,Ni(A,l),ar[o+4>>2]=0):(tr[l>>0]=0,Ni(o,l),tr[A>>0]=0),o),Ml(o,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)ar[u+(A<<2)>>2]=0,A=A+1|0;for(Yl(u),A=0|is[127&ar[12+(0|ar[e>>2])>>2]](e),tr[i>>0]=A,A=0|is[127&ar[16+(0|ar[e>>2])>>2]](e),tr[f>>0]=A,ks[63&ar[20+(0|ar[e>>2])>>2]](u,e),A=((0|tr[(A=n+11|0)>>0])<0?(A=0|ar[n>>2],tr[l>>0]=0,Ni(A,l),ar[n+4>>2]=0):(tr[l>>0]=0,Ni(n,l),tr[A>>0]=0),n),Ml(n,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)ar[u+(A<<2)>>2]=0,A=A+1|0;for(Yl(u),ks[63&ar[24+(0|ar[e>>2])>>2]](u,e),A=((0|tr[(A=t+11|0)>>0])<0?(A=0|ar[t>>2],tr[l>>0]=0,Ni(A,l),ar[t+4>>2]=0):(tr[l>>0]=0,Ni(t,l),tr[A>>0]=0),t),Ml(t,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)ar[u+(A<<2)>>2]=0,A=A+1|0;Yl(u),A=0|is[127&ar[36+(0|ar[e>>2])>>2]](e)}ar[c>>2]=A,ur=s}(r,i,I,B,E,_,F,N,R,G),ar[c>>2]=ar[a>>2],g=o+8|0,m=11+N|0,p=4+N|0,y=11+R|0,Z=4+R|0,u=0!=(512&f|0),s=11+F|0,b=4+F|0,d=11+Y|0,k=4+Y|0,h=3+I|0,w=11+_|0,v=4+_|0,H=x=0;A:for(;;){if(o=0!=(0|x),4<=H>>>0){j=234;break}l=0|ar[A>>2];do{if(l){if(0|Ji(l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|bi(0|tr[r>>0]),-1)){ar[A>>2]=0,i=1;break}i=0==(0|ar[A>>2]);break}i=1}while(0);r=0|ar[e>>2];do{if(r){if(0|Ji(l=(0|(l=0|ar[r+12>>2]))==(0|ar[r+16>>2])?0|is[127&ar[36+(0|ar[r>>2])>>2]](r):0|bi(0|tr[l>>0]),-1)){ar[e>>2]=0,j=31;break}if(i){O=r;break}j=234;break A}j=31}while(0);if(31==(0|j)){if(j=0,i){j=234;break}O=0}l=3!=(0|H);e:do{switch(0|tr[I+H>>0]){case 1:if(l){if(l=0|ar[A>>2],(255&(l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|bi(0|tr[r>>0])))<<24>>24<=-1){j=44;break A}if(!(8192&or[(0|ar[g>>2])+(l<<24>>24<<1)>>1])){j=44;break A}l=0|ar[A>>2],jl(Y,255&(l=(0|(i=0|ar[(r=l+12|0)>>2]))==(0|ar[l+16>>2])?0|is[127&ar[40+(0|ar[l>>2])>>2]](l):(ar[r>>2]=i+1,0|bi(0|tr[i>>0])))),o=l=O,j=46}else l=x;break;case 0:l?(o=l=O,j=46):l=x;break;case 3:if((0|(l=(l=0|tr[m>>0])<<24>>24<0?0|ar[p>>2]:255&l))==(0-(o=(o=0|tr[y>>0])<<24>>24<0?0|ar[Z>>2]:255&o)|0))l=x;else{if(f=0==(0|l),l=0|ar[A>>2],i=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2]),f|0==(0|o)){if(l=i?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|bi(0|tr[r>>0]),l&=255,f){if(l<<24>>24!=(0|tr[((0|tr[y>>0])<0?0|ar[R>>2]:R)>>0])){l=x;break e}l=0|ar[A>>2],(0|(i=0|ar[(r=l+12|0)>>2]))==(0|ar[l+16>>2])?is[127&ar[40+(0|ar[l>>2])>>2]](l):(ar[r>>2]=i+1,bi(0|tr[i>>0])),l=(tr[t>>0]=1)<((l=0|tr[y>>0])<<24>>24<0?0|ar[Z>>2]:255&l)>>>0?R:x;break e}if(l<<24>>24!=(0|tr[((0|tr[m>>0])<0?0|ar[N>>2]:N)>>0])){tr[t>>0]=1,l=x;break e}l=0|ar[A>>2],(0|(i=0|ar[(r=l+12|0)>>2]))==(0|ar[l+16>>2])?is[127&ar[40+(0|ar[l>>2])>>2]](l):(ar[r>>2]=i+1,bi(0|tr[i>>0])),l=1<((l=0|tr[m>>0])<<24>>24<0?0|ar[p>>2]:255&l)>>>0?N:x;break e}if(l=i?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|bi(0|tr[r>>0]),r=0|ar[A>>2],f=(0|(o=0|ar[(i=r+12|0)>>2]))==(0|ar[r+16>>2]),(255&l)<<24>>24==(0|tr[((0|tr[m>>0])<0?0|ar[N>>2]:N)>>0])){f?is[127&ar[40+(0|ar[r>>2])>>2]](r):(ar[i>>2]=o+1,bi(0|tr[o>>0])),l=1<((l=0|tr[m>>0])<<24>>24<0?0|ar[p>>2]:255&l)>>>0?N:x;break e}if((255&(l=f?0|is[127&ar[36+(0|ar[r>>2])>>2]](r):0|bi(0|tr[o>>0])))<<24>>24!=(0|tr[((0|tr[y>>0])<0?0|ar[R>>2]:R)>>0])){j=103;break A}l=0|ar[A>>2],(0|(i=0|ar[(r=l+12|0)>>2]))==(0|ar[l+16>>2])?is[127&ar[40+(0|ar[l>>2])>>2]](l):(ar[r>>2]=i+1,bi(0|tr[i>>0])),l=(tr[t>>0]=1)<((l=0|tr[y>>0])<<24>>24<0?0|ar[Z>>2]:255&l)>>>0?R:x}break;case 2:if(!(H>>>0<2|o)&&!(u|2==(0|H)&0!=(0|tr[h>>0]))){l=0;break e}l=(r=0|tr[s>>0])<<24>>24<0,S=0|ar[F>>2],M=i=l?S:F;r:do{if(0!=(0|H)&&(0|cr[I+(H+-1)>>0])<2){for(l=i+(l?0|ar[b>>2]:255&r)|0,T=M;(0|(o=T))!=(0|l)&&!((f=0|tr[o>>0])<<24>>24<=-1)&&8192&or[(0|ar[g>>2])+(f<<24>>24<<1)>>1];)T=o+1|0;if((f=T-M|0)>>>0<=(o=(l=(o=0|tr[d>>0])<<24>>24<0)?0|ar[k>>2]:255&o)>>>0)for(l=(o=(l?0|ar[Y>>2]:Y)+o|0)+(0-f)|0;;){if((0|l)==(0|o)){i=T,l=S,o=U=O;break r}if((0|tr[l>>0])!=(0|tr[i>>0])){i=M,l=S,o=U=O;break r}i=i+1|0,l=l+1|0}else i=M,l=S,o=U=O}else i=M,l=S,o=U=O}while(0);r:for(;l=((T=r<<24>>24<0)?l:F)+(T?0|ar[b>>2]:255&r)|0,(0|(T=i))!=(0|l);){l=0|ar[A>>2];do{if(l){if(0|Ji(l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|bi(0|tr[r>>0]),-1)){ar[A>>2]=0,r=1;break}r=0==(0|ar[A>>2]);break}r=1}while(0);do{if(o){if(0|Ji(l=(0|(l=0|ar[o+12>>2]))==(0|ar[o+16>>2])?0|is[127&ar[36+(0|ar[o>>2])>>2]](o):0|bi(0|tr[l>>0]),-1)){l=ar[e>>2]=0,j=132;break}if(r^0==(0|U)){f=l=U;break}l=T;break r}l=U,j=132}while(0);if(132==(0|j)){if(j=0,r){l=T;break}f=0}if(r=0|ar[A>>2],(255&(r=(0|(i=0|ar[r+12>>2]))==(0|ar[r+16>>2])?0|is[127&ar[36+(0|ar[r>>2])>>2]](r):0|bi(0|tr[i>>0])))<<24>>24!=(0|tr[T>>0])){l=T;break}r=0|ar[A>>2],(0|(o=0|ar[(i=r+12|0)>>2]))==(0|ar[r+16>>2])?is[127&ar[40+(0|ar[r>>2])>>2]](r):(ar[i>>2]=o+1,bi(0|tr[o>>0])),U=l,i=T+1|0,r=0|tr[s>>0],l=0|ar[F>>2],o=f}if(u&&(0|l)!=(((U=(O=0|tr[s>>0])<<24>>24<0)?0|ar[F>>2]:F)+(U?0|ar[b>>2]:255&O)|0)){j=144;break A}l=x;break;case 4:M=0,o=l=O;r:for(;;){r=0|ar[A>>2];do{if(r){if(0|Ji(r=(0|(i=0|ar[r+12>>2]))==(0|ar[r+16>>2])?0|is[127&ar[36+(0|ar[r>>2])>>2]](r):0|bi(0|tr[i>>0]),-1)){ar[A>>2]=0,i=1;break}i=0==(0|ar[A>>2]);break}i=1}while(0);do{if(o){if(0|Ji(r=(0|(r=0|ar[o+12>>2]))==(0|ar[o+16>>2])?0|is[127&ar[36+(0|ar[o>>2])>>2]](o):0|bi(0|tr[r>>0]),-1)){l=ar[e>>2]=0,j=158;break}if(i^0==(0|l)){T=f=l;break}o=l;break r}j=158}while(0);if(158==(0|j)){if(j=0,i){o=l;break}f=l,T=0}if(l=0|ar[A>>2],-1<(r=255&(l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|bi(0|tr[r>>0])))<<24>>24&&0!=(2048&or[(0|ar[g>>2])+(l<<24>>24<<1)>>1]))(0|(l=0|ar[c>>2]))==(0|ar[C>>2])&&(Ce(a,c,C),l=0|ar[c>>2]),ar[c>>2]=l+1,tr[l>>0]=r,l=M+1|0;else{if(O=0|tr[w>>0],!(r<<24>>24==(0|tr[E>>0])&(0|M?0!=(0|(O<<24>>24<0?0|ar[v>>2]:255&O)):0))){o=f;break}(0|(l=0|ar[V>>2]))==(0|ar[W>>2])&&(We(D,V,W),l=0|ar[V>>2]),ar[V>>2]=l+4,ar[l>>2]=M,l=0}r=0|ar[A>>2],(0|(o=0|ar[(i=r+12|0)>>2]))!=(0|ar[r+16>>2])?(ar[i>>2]=o+1,bi(0|tr[o>>0]),M=l,l=f,o=T):(is[127&ar[40+(0|ar[r>>2])>>2]](r),M=l,l=f,o=T)}l=0|ar[V>>2],0|M&&(0|ar[D>>2])!=(0|l)&&((0|l)==(0|ar[W>>2])&&(We(D,V,W),l=0|ar[V>>2]),ar[V>>2]=l+4,ar[l>>2]=M);r:do{if(0<(0|ar[G>>2])){l=0|ar[A>>2];do{if(l){if(0|Ji(l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|bi(0|tr[r>>0]),-1)){ar[A>>2]=0,r=1;break}r=0==(0|ar[A>>2]);break}r=1}while(0);do{if(o){if(0|Ji(l=(0|(l=0|ar[o+12>>2]))==(0|ar[o+16>>2])?0|is[127&ar[36+(0|ar[o>>2])>>2]](o):0|bi(0|tr[l>>0]),-1)){ar[e>>2]=0,j=193;break}if(r)break;j=232;break A}j=193}while(0);if(193==(0|j)){if(j=0,r){j=232;break A}o=0}if(l=0|ar[A>>2],(255&(l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|bi(0|tr[r>>0])))<<24>>24!=(0|tr[B>>0])){j=232;break A}for(l=0|ar[A>>2],l=((0|(i=0|ar[(r=l+12|0)>>2]))==(0|ar[l+16>>2])?is[127&ar[40+(0|ar[l>>2])>>2]](l):(ar[r>>2]=i+1,bi(0|tr[i>>0])),o);;){if((0|ar[G>>2])<=0)break r;r=0|ar[A>>2];do{if(r){if(0|Ji(r=(0|(i=0|ar[r+12>>2]))==(0|ar[r+16>>2])?0|is[127&ar[36+(0|ar[r>>2])>>2]](r):0|bi(0|tr[i>>0]),-1)){ar[A>>2]=0,i=1;break}i=0==(0|ar[A>>2]);break}i=1}while(0);do{if(o){if(0|Ji(r=(0|(r=0|ar[o+12>>2]))==(0|ar[o+16>>2])?0|is[127&ar[36+(0|ar[o>>2])>>2]](o):0|bi(0|tr[r>>0]),-1)){l=ar[e>>2]=0,j=216;break}if(i^0==(0|l)){o=f=l;break}j=232;break A}j=216}while(0);if(216==(0|j)){if(j=0,i){j=232;break A}f=l,o=0}if(l=0|ar[A>>2],(255&(l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|bi(0|tr[r>>0])))<<24>>24<=-1){j=232;break A}if(!(2048&or[(0|ar[g>>2])+(l<<24>>24<<1)>>1])){j=232;break A}(0|ar[c>>2])==(0|ar[C>>2])&&Ce(a,c,C),l=0|ar[A>>2],l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|bi(0|tr[r>>0]),r=0|ar[c>>2],ar[c>>2]=r+1,tr[r>>0]=l,ar[G>>2]=(0|ar[G>>2])-1,l=0|ar[A>>2],(0|(i=0|ar[(r=l+12|0)>>2]))!=(0|ar[l+16>>2])?(ar[r>>2]=i+1,bi(0|tr[i>>0]),l=f):(is[127&ar[40+(0|ar[l>>2])>>2]](l),l=f)}}}while(0);if((0|ar[c>>2])==(0|ar[a>>2])){j=232;break A}l=x;break;default:l=x}}while(0);e:do{if(46==(0|j))for(;;){r=(j=0)|ar[A>>2];do{if(r){if(0|Ji(r=(0|(i=0|ar[r+12>>2]))==(0|ar[r+16>>2])?0|is[127&ar[36+(0|ar[r>>2])>>2]](r):0|bi(0|tr[i>>0]),-1)){ar[A>>2]=0,i=1;break}i=0==(0|ar[A>>2]);break}i=1}while(0);do{if(o){if(0|Ji(r=(0|(r=0|ar[o+12>>2]))==(0|ar[o+16>>2])?0|is[127&ar[36+(0|ar[o>>2])>>2]](o):0|bi(0|tr[r>>0]),-1)){l=ar[e>>2]=0,j=59;break}if(i^0==(0|l)){o=f=l;break}l=x;break e}j=59}while(0);if(59==(0|j)){if(j=0,i){l=x;break e}f=l,o=0}if(l=0|ar[A>>2],(255&(l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|bi(0|tr[r>>0])))<<24>>24<=-1){l=x;break e}if(!(8192&or[(0|ar[g>>2])+(l<<24>>24<<1)>>1])){l=x;break e}l=0|ar[A>>2],jl(Y,255&(l=(0|(i=0|ar[(r=l+12|0)>>2]))==(0|ar[l+16>>2])?0|is[127&ar[40+(0|ar[l>>2])>>2]](l):(ar[r>>2]=i+1,0|bi(0|tr[i>>0])))),l=f,j=46}}while(0);x=l,H=H+1|0}A:do{if(44==(0|j))ar[n>>2]=4|ar[n>>2],r=0;else if(103==(0|j))ar[n>>2]=4|ar[n>>2],r=0;else if(144==(0|j))ar[n>>2]=4|ar[n>>2],r=0;else if(232==(0|j))ar[n>>2]=4|ar[n>>2],r=0;else if(234==(0|j)){e:do{if(o){f=x+11|0,T=x+4|0,o=1;r:for(;;){if((l=0|tr[f>>0])<<24>>24<0?l=0|ar[T>>2]:l&=255,l>>>0<=o>>>0)break e;l=0|ar[A>>2];do{if(l){if(0|Ji(l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|bi(0|tr[r>>0]),-1)){ar[A>>2]=0,i=1;break}i=0==(0|ar[A>>2]);break}i=1}while(0);l=0|ar[e>>2];do{if(l){if(0|Ji(l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|bi(0|tr[r>>0]),-1)){ar[e>>2]=0,j=253;break}if(i)break;break r}j=253}while(0);if(253==(0|j)&&(j=0,i))break;if(l=0|ar[A>>2],l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|bi(0|tr[r>>0]),r=(0|tr[f>>0])<0?0|ar[x>>2]:x,(255&l)<<24>>24!=(0|tr[r+o>>0]))break;l=o+1|0,r=0|ar[A>>2],(0|(o=0|ar[(i=r+12|0)>>2]))!=(0|ar[r+16>>2])?(ar[i>>2]=o+1,bi(0|tr[o>>0]),o=l):(is[127&ar[40+(0|ar[r>>2])>>2]](r),o=l)}ar[n>>2]=4|ar[n>>2],r=0;break A}}while(0);if((0|(r=0|ar[D>>2]))!=(0|(l=0|ar[V>>2]))){if(ar[X>>2]=0,yf(_,r,l,X),0|ar[X>>2]){ar[n>>2]=4|ar[n>>2],r=0;break}r=1;break}r=1}}while(0);return Yl(Y),Yl(R),Yl(N),Yl(F),Yl(_),l=0|ar[D>>2],(ar[D>>2]=0)|l&&ds[511&ar[J>>2]](l),ur=Q,0|r}function Ze(A,e,r){return(e|=0)>>>0<=(A|=0)>>>0&A>>>0<(r|=0)>>>0|0}function Ce(A,e,r){e|=0,r|=0;var i,f,n=0,t=0,o=0;t=309!=(0|ar[(f=(A|=0)+4|0)>>2]),n=0|ar[A>>2],o=0==(0|(o=(o=(0|ar[r>>2])-n|0)>>>0<2147483647?o<<1:-1))?1:o,i=(0|ar[e>>2])-n|0,(n=0|Aa(t?n:0,o))||_l(),t?ar[A>>2]=n:(t=0|ar[A>>2],ar[A>>2]=n,t&&(ds[511&ar[f>>2]](t),n=0|ar[A>>2])),ar[f>>2]=310,ar[e>>2]=n+i,ar[r>>2]=(0|ar[A>>2])+o}function We(A,e,r){e|=0,r|=0;var i,f,n=0,t=0,o=0;t=309!=(0|ar[(f=(A|=0)+4|0)>>2]),n=0|ar[A>>2],o=0==(0|(o=(o=(0|ar[r>>2])-n|0)>>>0<2147483647?o<<1:-1))?4:o,i=(0|ar[e>>2])-n>>2,(n=0|Aa(t?n:0,o))||_l(),t?ar[A>>2]=n:(t=0|ar[A>>2],ar[A>>2]=n,t&&(ds[511&ar[f>>2]](t),n=0|ar[A>>2])),ar[f>>2]=310,ar[e>>2]=n+(i<<2),ar[r>>2]=(0|ar[A>>2])+(o>>>2<<2)}function Ie(A,e,r,i,f,n,t,o,a,c,l){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0;var u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_,F,N,R,Y,J,D,Q=0,T=0,M=0,S=0,U=0,O=0,H=0,x=0;for(V=ur=(D=ur)+31&-32,ur=ur+512|0,H=104+V|0,J=88+V|0,G=80+V|0,C=76+V|0,W=504+V|0,I=72+V|0,B=68+V|0,X=56+V|0,_=44+V|0,F=32+V|0,N=20+V|0,R=8+V|0,E=4+V|0,ar[(Z=96+V|0)>>2]=l,ar[J>>2]=H,ar[(Y=4+J|0)>>2]=309,ar[G>>2]=H,ar[C>>2]=H+400,ar[X>>2]=0,ar[4+X>>2]=0,l=ar[8+X>>2]=0;3!=(0|l);)l=l+1|(ar[X+(l<<2)>>2]=0);for(ar[_>>2]=0,ar[4+_>>2]=0,l=ar[8+_>>2]=0;3!=(0|l);)l=l+1|(ar[_+(l<<2)>>2]=0);for(ar[F>>2]=0,ar[4+F>>2]=0,l=ar[8+F>>2]=0;3!=(0|l);)l=l+1|(ar[F+(l<<2)>>2]=0);for(ar[N>>2]=0,ar[4+N>>2]=0,l=ar[8+N>>2]=0;3!=(0|l);)l=l+1|(ar[N+(l<<2)>>2]=0);for(ar[R>>2]=0,ar[4+R>>2]=0,l=ar[8+R>>2]=0;3!=(0|l);)l=l+1|(ar[R+(l<<2)>>2]=0);!function(A,e,r,i,f,n,t,o,a,c){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0;var l,u,s;if(u=ur=(s=ur)+31&-32,ur=ur+16|0,l=12+u|0,A|=0){for(e=0|bf(e,54272),ks[63&ar[44+(0|ar[e>>2])>>2]](l,e),A=0|ar[l>>2],tr[r>>0]=A,tr[r+1>>0]=A>>8,tr[r+2>>0]=A>>16,tr[r+3>>0]=A>>24,ks[63&ar[32+(0|ar[e>>2])>>2]](u,e),(0|tr[(A=a+8+3|0)>>0])<0?(r=0|ar[a>>2],ar[l>>2]=0,sf(r,l),ar[a+4>>2]=0):(ar[l>>2]=0,sf(a,l),tr[A>>0]=0),ql(a,0),ar[a>>2]=ar[u>>2],ar[a+4>>2]=ar[4+u>>2],ar[a+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)ar[u+(A<<2)>>2]=0,A=A+1|0;for(Pl(u),ks[63&ar[28+(0|ar[e>>2])>>2]](u,e),(0|tr[(A=o+8+3|0)>>0])<0?(a=0|ar[o>>2],ar[l>>2]=0,sf(a,l),ar[o+4>>2]=0):(ar[l>>2]=0,sf(o,l),tr[A>>0]=0),ql(o,0),ar[o>>2]=ar[u>>2],ar[o+4>>2]=ar[4+u>>2],ar[o+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)ar[u+(A<<2)>>2]=0,A=A+1|0;for(Pl(u),A=0|is[127&ar[12+(0|ar[e>>2])>>2]](e),ar[i>>2]=A,A=0|is[127&ar[16+(0|ar[e>>2])>>2]](e),ar[f>>2]=A,ks[63&ar[20+(0|ar[e>>2])>>2]](u,e),A=((0|tr[(A=n+11|0)>>0])<0?(A=0|ar[n>>2],tr[l>>0]=0,Ni(A,l),ar[n+4>>2]=0):(tr[l>>0]=0,Ni(n,l),tr[A>>0]=0),n),Ml(n,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)ar[u+(A<<2)>>2]=0,A=A+1|0;for(Yl(u),ks[63&ar[24+(0|ar[e>>2])>>2]](u,e),(0|tr[(A=t+8+3|0)>>0])<0?(n=0|ar[t>>2],ar[l>>2]=0,sf(n,l),ar[t+4>>2]=0):(ar[l>>2]=0,sf(t,l),tr[A>>0]=0),ql(t,0),ar[t>>2]=ar[u>>2],ar[t+4>>2]=ar[4+u>>2],ar[t+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)ar[u+(A<<2)>>2]=0,A=A+1|0;Pl(u),A=0|is[127&ar[36+(0|ar[e>>2])>>2]](e)}else{for(e=0|bf(e,54264),ks[63&ar[44+(0|ar[e>>2])>>2]](l,e),A=0|ar[l>>2],tr[r>>0]=A,tr[r+1>>0]=A>>8,tr[r+2>>0]=A>>16,tr[r+3>>0]=A>>24,ks[63&ar[32+(0|ar[e>>2])>>2]](u,e),(0|tr[(A=a+8+3|0)>>0])<0?(r=0|ar[a>>2],ar[l>>2]=0,sf(r,l),ar[a+4>>2]=0):(ar[l>>2]=0,sf(a,l),tr[A>>0]=0),ql(a,0),ar[a>>2]=ar[u>>2],ar[a+4>>2]=ar[4+u>>2],ar[a+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)ar[u+(A<<2)>>2]=0,A=A+1|0;for(Pl(u),ks[63&ar[28+(0|ar[e>>2])>>2]](u,e),(0|tr[(A=o+8+3|0)>>0])<0?(a=0|ar[o>>2],ar[l>>2]=0,sf(a,l),ar[o+4>>2]=0):(ar[l>>2]=0,sf(o,l),tr[A>>0]=0),ql(o,0),ar[o>>2]=ar[u>>2],ar[o+4>>2]=ar[4+u>>2],ar[o+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)ar[u+(A<<2)>>2]=0,A=A+1|0;for(Pl(u),A=0|is[127&ar[12+(0|ar[e>>2])>>2]](e),ar[i>>2]=A,A=0|is[127&ar[16+(0|ar[e>>2])>>2]](e),ar[f>>2]=A,ks[63&ar[20+(0|ar[e>>2])>>2]](u,e),A=((0|tr[(A=n+11|0)>>0])<0?(A=0|ar[n>>2],tr[l>>0]=0,Ni(A,l),ar[n+4>>2]=0):(tr[l>>0]=0,Ni(n,l),tr[A>>0]=0),n),Ml(n,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)ar[u+(A<<2)>>2]=0,A=A+1|0;for(Yl(u),ks[63&ar[24+(0|ar[e>>2])>>2]](u,e),(0|tr[(A=t+8+3|0)>>0])<0?(n=0|ar[t>>2],ar[l>>2]=0,sf(n,l),ar[t+4>>2]=0):(ar[l>>2]=0,sf(t,l),tr[A>>0]=0),ql(t,0),ar[t>>2]=ar[u>>2],ar[t+4>>2]=ar[4+u>>2],ar[t+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)ar[u+(A<<2)>>2]=0,A=A+1|0;Pl(u),A=0|is[127&ar[36+(0|ar[e>>2])>>2]](e)}ar[c>>2]=A,ur=s}(r,i,W,I,B,X,_,F,N,E),ar[c>>2]=ar[a>>2],g=8+F+3|0,m=4+F|0,p=8+N+3|0,y=4+N|0,u=0!=(512&f|0),s=8+_+3|0,b=4+_|0,d=8+R+3|0,k=4+R|0,h=3+W|0,w=11+X|0,v=4+X|0,O=H=0;A:for(;;){if(f=0!=(0|H),4<=O>>>0){x=229;break}l=0|ar[A>>2];do{if(l){if(0|Qi(l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|wi(0|ar[r>>2]),-1)){ar[A>>2]=0,i=1;break}i=0==(0|ar[A>>2]);break}i=1}while(0);r=0|ar[e>>2];do{if(r){if(0|Qi(l=(0|(l=0|ar[r+12>>2]))==(0|ar[r+16>>2])?0|is[127&ar[36+(0|ar[r>>2])>>2]](r):0|wi(0|ar[l>>2]),-1)){ar[e>>2]=0,x=31;break}if(i){U=r;break}x=229;break A}x=31}while(0);if(31==(0|x)){if(x=0,i){x=229;break}U=0}l=3!=(0|O);e:do{switch(0|tr[W+O>>0]){case 1:if(l){if(l=0|ar[A>>2],l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|wi(0|ar[r>>2]),!(0|ns[63&ar[12+(0|ar[o>>2])>>2]](o,8192,l))){x=43;break A}l=0|ar[A>>2],ru(R,l=(0|(i=0|ar[(r=l+12|0)>>2]))==(0|ar[l+16>>2])?0|is[127&ar[40+(0|ar[l>>2])>>2]](l):(ar[r>>2]=i+4,0|wi(0|ar[i>>2]))),f=l=U,x=45}else l=H;break;case 0:l?(f=l=U,x=45):l=H;break;case 3:if((0|(l=(l=0|tr[g>>0])<<24>>24<0?0|ar[m>>2]:255&l))==(0-(f=(f=0|tr[p>>0])<<24>>24<0?0|ar[y>>2]:255&f)|0))l=H;else{if(Q=0==(0|l),l=0|ar[A>>2],i=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2]),Q|0==(0|f)){if(l=i?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|wi(0|ar[r>>2]),Q){if((0|l)!=(0|ar[((0|tr[p>>0])<0?0|ar[N>>2]:N)>>2])){l=H;break e}l=0|ar[A>>2],(0|(i=0|ar[(r=l+12|0)>>2]))==(0|ar[l+16>>2])?is[127&ar[40+(0|ar[l>>2])>>2]](l):(ar[r>>2]=i+4,wi(0|ar[i>>2])),l=(tr[t>>0]=1)<((l=0|tr[p>>0])<<24>>24<0?0|ar[y>>2]:255&l)>>>0?N:H;break e}if((0|l)!=(0|ar[((0|tr[g>>0])<0?0|ar[F>>2]:F)>>2])){tr[t>>0]=1,l=H;break e}l=0|ar[A>>2],(0|(i=0|ar[(r=l+12|0)>>2]))==(0|ar[l+16>>2])?is[127&ar[40+(0|ar[l>>2])>>2]](l):(ar[r>>2]=i+4,wi(0|ar[i>>2])),l=1<((l=0|tr[g>>0])<<24>>24<0?0|ar[m>>2]:255&l)>>>0?F:H;break e}if(l=i?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|wi(0|ar[r>>2]),r=0|ar[A>>2],Q=(0|(f=0|ar[(i=r+12|0)>>2]))==(0|ar[r+16>>2]),(0|l)==(0|ar[((0|tr[g>>0])<0?0|ar[F>>2]:F)>>2])){Q?is[127&ar[40+(0|ar[r>>2])>>2]](r):(ar[i>>2]=f+4,wi(0|ar[f>>2])),l=1<((l=0|tr[g>>0])<<24>>24<0?0|ar[m>>2]:255&l)>>>0?F:H;break e}if((0|(l=Q?0|is[127&ar[36+(0|ar[r>>2])>>2]](r):0|wi(0|ar[f>>2])))!=(0|ar[((0|tr[p>>0])<0?0|ar[N>>2]:N)>>2])){x=101;break A}l=0|ar[A>>2],(0|(i=0|ar[(r=l+12|0)>>2]))==(0|ar[l+16>>2])?is[127&ar[40+(0|ar[l>>2])>>2]](l):(ar[r>>2]=i+4,wi(0|ar[i>>2])),l=(tr[t>>0]=1)<((l=0|tr[p>>0])<<24>>24<0?0|ar[y>>2]:255&l)>>>0?N:H}break;case 2:if(!(O>>>0<2|f)&&!(u|2==(0|O)&0!=(0|tr[h>>0]))){l=0;break e}i=0|tr[s>>0],f=0|ar[_>>2],l=i<<24>>24<0?f:_;r:do{if(0!=(0|O)&&(0|cr[W+(O+-1)>>0])<2){for(;(0|(r=l))!=(((S=i<<24>>24<0)?f:_)+((S?0|ar[b>>2]:255&i)<<2)|0);){if(!(0|ns[63&ar[12+(0|ar[o>>2])>>2]](o,8192,0|ar[r>>2]))){x=108;break}l=r+4|0,i=0|tr[s>>0],f=0|ar[_>>2]}if(108==(0|x)&&(i=(x=0)|tr[s>>0],f=0|ar[_>>2]),M=l-(S=Q=i<<24>>24<0?f:_)>>2,(T=(r=(T=0|tr[d>>0])<<24>>24<0)?0|ar[k>>2]:255&T)>>>0<M>>>0)r=S,Q=M=U;else for(r=(T=(r?0|ar[R>>2]:R)+(T<<2)|0)+(0-M<<2)|0;;){if((0|r)==(0|T)){r=l,Q=M=U;break r}if((0|ar[r>>2])!=(0|ar[Q>>2])){r=S,Q=M=U;break r}Q=Q+4|0,r=r+4|0}}else r=l,Q=M=U}while(0);r:for(;(0|(T=r))!=(0|(l=((l=i<<24>>24<0)?f:_)+((l?0|ar[b>>2]:255&i)<<2)|0));){l=0|ar[A>>2];do{if(l){if(0|Qi(l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|wi(0|ar[r>>2]),-1)){ar[A>>2]=0,r=1;break}r=0==(0|ar[A>>2]);break}r=1}while(0);do{if(Q){if(0|Qi(l=(0|(l=0|ar[Q+12>>2]))==(0|ar[Q+16>>2])?0|is[127&ar[36+(0|ar[Q>>2])>>2]](Q):0|wi(0|ar[l>>2]),-1)){l=ar[e>>2]=0,x=129;break}if(r^0==(0|M)){Q=l=M;break}l=T;break r}l=M,x=129}while(0);if(129==(0|x)){if(x=0,r){l=T;break}Q=0}if(r=0|ar[A>>2],(0|(r=(0|(i=0|ar[r+12>>2]))==(0|ar[r+16>>2])?0|is[127&ar[36+(0|ar[r>>2])>>2]](r):0|wi(0|ar[i>>2])))!=(0|ar[T>>2])){l=T;break}r=0|ar[A>>2],(0|(f=0|ar[(i=r+12|0)>>2]))==(0|ar[r+16>>2])?is[127&ar[40+(0|ar[r>>2])>>2]](r):(ar[i>>2]=f+4,wi(0|ar[f>>2])),M=l,r=T+4|0,i=0|tr[s>>0],f=0|ar[_>>2]}if(u&&(0|l)!=(((S=(U=0|tr[s>>0])<<24>>24<0)?0|ar[_>>2]:_)+((S?0|ar[b>>2]:255&U)<<2)|0)){x=141;break A}l=H;break;case 4:M=0,f=l=U;r:for(;;){r=0|ar[A>>2];do{if(r){if(0|Qi(r=(0|(i=0|ar[r+12>>2]))==(0|ar[r+16>>2])?0|is[127&ar[36+(0|ar[r>>2])>>2]](r):0|wi(0|ar[i>>2]),-1)){ar[A>>2]=0,i=1;break}i=0==(0|ar[A>>2]);break}i=1}while(0);do{if(f){if(0|Qi(r=(0|(r=0|ar[f+12>>2]))==(0|ar[f+16>>2])?0|is[127&ar[36+(0|ar[f>>2])>>2]](f):0|wi(0|ar[r>>2]),-1)){l=ar[e>>2]=0,x=155;break}if(i^0==(0|l)){T=Q=l;break}f=l;break r}x=155}while(0);if(155==(0|x)){if(x=0,i){f=l;break}Q=l,T=0}if(l=0|ar[A>>2],r=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|wi(0|ar[r>>2]),0|ns[63&ar[12+(0|ar[o>>2])>>2]](o,2048,r))(0|(l=0|ar[c>>2]))==(0|ar[Z>>2])&&(Ee(a,c,Z),l=0|ar[c>>2]),ar[c>>2]=l+4,ar[l>>2]=r,l=M+1|0;else{if(U=0|tr[w>>0],!((0|r)==(0|ar[B>>2])&(0|M?0!=(0|(U<<24>>24<0?0|ar[v>>2]:255&U)):0))){f=Q;break}(0|(l=0|ar[G>>2]))==(0|ar[C>>2])&&(We(J,G,C),l=0|ar[G>>2]),ar[G>>2]=l+4,ar[l>>2]=M,l=0}r=0|ar[A>>2],(0|(f=0|ar[(i=r+12|0)>>2]))!=(0|ar[r+16>>2])?(ar[i>>2]=f+4,wi(0|ar[f>>2]),M=l,l=Q,f=T):(is[127&ar[40+(0|ar[r>>2])>>2]](r),M=l,l=Q,f=T)}l=0|ar[G>>2],0|M&&(0|ar[J>>2])!=(0|l)&&((0|l)==(0|ar[C>>2])&&(We(J,G,C),l=0|ar[G>>2]),ar[G>>2]=l+4,ar[l>>2]=M);r:do{if(0<(0|ar[E>>2])){l=0|ar[A>>2];do{if(l){if(0|Qi(l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|wi(0|ar[r>>2]),-1)){ar[A>>2]=0,r=1;break}r=0==(0|ar[A>>2]);break}r=1}while(0);do{if(f){if(0|Qi(l=(0|(l=0|ar[f+12>>2]))==(0|ar[f+16>>2])?0|is[127&ar[36+(0|ar[f>>2])>>2]](f):0|wi(0|ar[l>>2]),-1)){ar[e>>2]=0,x=189;break}if(r)break;x=227;break A}x=189}while(0);if(189==(0|x)){if(x=0,r){x=227;break A}f=0}if(l=0|ar[A>>2],(0|(l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|wi(0|ar[r>>2])))!=(0|ar[I>>2])){x=227;break A}for(l=0|ar[A>>2],l=((0|(i=0|ar[(r=l+12|0)>>2]))==(0|ar[l+16>>2])?is[127&ar[40+(0|ar[l>>2])>>2]](l):(ar[r>>2]=i+4,wi(0|ar[i>>2])),f);;){if((0|ar[E>>2])<=0)break r;r=0|ar[A>>2];do{if(r){if(0|Qi(r=(0|(i=0|ar[r+12>>2]))==(0|ar[r+16>>2])?0|is[127&ar[36+(0|ar[r>>2])>>2]](r):0|wi(0|ar[i>>2]),-1)){ar[A>>2]=0,i=1;break}i=0==(0|ar[A>>2]);break}i=1}while(0);do{if(f){if(0|Qi(r=(0|(r=0|ar[f+12>>2]))==(0|ar[f+16>>2])?0|is[127&ar[36+(0|ar[f>>2])>>2]](f):0|wi(0|ar[r>>2]),-1)){l=ar[e>>2]=0,x=212;break}if(i^0==(0|l)){f=Q=l;break}x=227;break A}x=212}while(0);if(212==(0|x)){if(x=0,i){x=227;break A}Q=l,f=0}if(l=0|ar[A>>2],l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|wi(0|ar[r>>2]),!(0|ns[63&ar[12+(0|ar[o>>2])>>2]](o,2048,l))){x=227;break A}(0|ar[c>>2])==(0|ar[Z>>2])&&Ee(a,c,Z),l=0|ar[A>>2],l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|wi(0|ar[r>>2]),r=0|ar[c>>2],ar[c>>2]=r+4,ar[r>>2]=l,ar[E>>2]=(0|ar[E>>2])-1,l=0|ar[A>>2],(0|(i=0|ar[(r=l+12|0)>>2]))!=(0|ar[l+16>>2])?(ar[r>>2]=i+4,wi(0|ar[i>>2]),l=Q):(is[127&ar[40+(0|ar[l>>2])>>2]](l),l=Q)}}}while(0);if((0|ar[c>>2])==(0|ar[a>>2])){x=227;break A}l=H;break;default:l=H}}while(0);e:do{if(45==(0|x))for(;;){r=(x=0)|ar[A>>2];do{if(r){if(0|Qi(r=(0|(i=0|ar[r+12>>2]))==(0|ar[r+16>>2])?0|is[127&ar[36+(0|ar[r>>2])>>2]](r):0|wi(0|ar[i>>2]),-1)){ar[A>>2]=0,i=1;break}i=0==(0|ar[A>>2]);break}i=1}while(0);do{if(f){if(0|Qi(r=(0|(r=0|ar[f+12>>2]))==(0|ar[f+16>>2])?0|is[127&ar[36+(0|ar[f>>2])>>2]](f):0|wi(0|ar[r>>2]),-1)){l=ar[e>>2]=0,x=58;break}if(i^0==(0|l)){f=Q=l;break}l=H;break e}x=58}while(0);if(58==(0|x)){if(x=0,i){l=H;break e}Q=l,f=0}if(l=0|ar[A>>2],l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|wi(0|ar[r>>2]),!(0|ns[63&ar[12+(0|ar[o>>2])>>2]](o,8192,l))){l=H;break e}l=0|ar[A>>2],ru(R,l=(0|(i=0|ar[(r=l+12|0)>>2]))==(0|ar[l+16>>2])?0|is[127&ar[40+(0|ar[l>>2])>>2]](l):(ar[r>>2]=i+4,0|wi(0|ar[i>>2]))),l=Q,x=45}}while(0);H=l,O=O+1|0}A:do{if(43==(0|x))ar[n>>2]=4|ar[n>>2],r=0;else if(101==(0|x))ar[n>>2]=4|ar[n>>2],r=0;else if(141==(0|x))ar[n>>2]=4|ar[n>>2],r=0;else if(227==(0|x))ar[n>>2]=4|ar[n>>2],r=0;else if(229==(0|x)){e:do{if(f){Q=H+8+3|0,T=H+4|0,f=1;r:for(;;){if((l=0|tr[Q>>0])<<24>>24<0?l=0|ar[T>>2]:l&=255,l>>>0<=f>>>0)break e;l=0|ar[A>>2];do{if(l){if(0|Qi(l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|wi(0|ar[r>>2]),-1)){ar[A>>2]=0,i=1;break}i=0==(0|ar[A>>2]);break}i=1}while(0);l=0|ar[e>>2];do{if(l){if(0|Qi(l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|wi(0|ar[r>>2]),-1)){ar[e>>2]=0,x=248;break}if(i)break;break r}x=248}while(0);if(248==(0|x)&&(x=0,i))break;if(l=0|ar[A>>2],l=(0|(r=0|ar[l+12>>2]))==(0|ar[l+16>>2])?0|is[127&ar[36+(0|ar[l>>2])>>2]](l):0|wi(0|ar[r>>2]),r=(0|tr[Q>>0])<0?0|ar[H>>2]:H,(0|l)!=(0|ar[r+(f<<2)>>2]))break;l=f+1|0,r=0|ar[A>>2],(0|(f=0|ar[(i=r+12|0)>>2]))!=(0|ar[r+16>>2])?(ar[i>>2]=f+4,wi(0|ar[f>>2]),f=l):(is[127&ar[40+(0|ar[r>>2])>>2]](r),f=l)}ar[n>>2]=4|ar[n>>2],r=0;break A}}while(0);if((0|(r=0|ar[J>>2]))!=(0|(l=0|ar[G>>2]))){if(ar[V>>2]=0,yf(X,r,l,V),0|ar[V>>2]){ar[n>>2]=4|ar[n>>2],r=0;break}r=1;break}r=1}}while(0);return Pl(R),Pl(N),Pl(F),Pl(_),Yl(X),l=0|ar[J>>2],(ar[J>>2]=0)|l&&ds[511&ar[Y>>2]](l),ur=D,0|r}function Be(A,e,r){return(e|=0)>>>0<=(A|=0)>>>0&A>>>0<(r|=0)>>>0|0}function Ee(A,e,r){e|=0,r|=0;var i,f,n=0,t=0,o=0;t=309!=(0|ar[(f=(A|=0)+4|0)>>2]),n=0|ar[A>>2],o=0==(0|(o=(o=(0|ar[r>>2])-n|0)>>>0<2147483647?o<<1:-1))?4:o,i=(0|ar[e>>2])-n>>2,(n=0|Aa(t?n:0,o))||_l(),t?ar[A>>2]=n:(t=0|ar[A>>2],ar[A>>2]=n,t&&(ds[511&ar[f>>2]](t),n=0|ar[A>>2])),ar[f>>2]=310,ar[e>>2]=n+(i<<2),ar[r>>2]=(0|ar[A>>2])+(o>>>2<<2)}function Ge(A,e,r,i,f,n,t,o,a,c){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0;var l,u,s,b=0;if(u=ur=(s=ur)+31&-32,ur=ur+16|0,l=12+u|0,A|=0){if(b=0|bf(r,54256),e){for(ks[63&ar[44+(0|ar[b>>2])>>2]](l,b),A=0|ar[l>>2],tr[i>>0]=A,tr[i+1>>0]=A>>8,tr[i+2>>0]=A>>16,tr[i+3>>0]=A>>24,ks[63&ar[32+(0|ar[b>>2])>>2]](u,b),A=((0|tr[(A=a+11|0)>>0])<0?(A=0|ar[a>>2],tr[l>>0]=0,Ni(A,l),ar[a+4>>2]=0):(tr[l>>0]=0,Ni(a,l),tr[A>>0]=0),a),Ml(a,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)A=A+1|(ar[u+(A<<2)>>2]=0);Yl(u),r=b}else{for(ks[63&ar[40+(0|ar[b>>2])>>2]](l,b),A=0|ar[l>>2],tr[i>>0]=A,tr[i+1>>0]=A>>8,tr[i+2>>0]=A>>16,tr[i+3>>0]=A>>24,ks[63&ar[28+(0|ar[b>>2])>>2]](u,b),A=((0|tr[(A=a+11|0)>>0])<0?(A=0|ar[a>>2],tr[l>>0]=0,Ni(A,l),ar[a+4>>2]=0):(tr[l>>0]=0,Ni(a,l),tr[A>>0]=0),a),Ml(a,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)A=A+1|(ar[u+(A<<2)>>2]=0);Yl(u),r=b}for(A=0|is[127&ar[12+(0|ar[b>>2])>>2]](b),tr[f>>0]=A,A=0|is[127&ar[16+(0|ar[b>>2])>>2]](b),tr[n>>0]=A,ks[63&ar[20+(0|ar[r>>2])>>2]](u,b),A=((0|tr[(A=t+11|0)>>0])<0?(A=0|ar[t>>2],tr[l>>0]=0,Ni(A,l),ar[t+4>>2]=0):(tr[l>>0]=0,Ni(t,l),tr[A>>0]=0),t),Ml(t,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)A=A+1|(ar[u+(A<<2)>>2]=0);for(Yl(u),ks[63&ar[24+(0|ar[r>>2])>>2]](u,b),A=((0|tr[(A=o+11|0)>>0])<0?(A=0|ar[o>>2],tr[l>>0]=0,Ni(A,l),ar[o+4>>2]=0):(tr[l>>0]=0,Ni(o,l),tr[A>>0]=0),o),Ml(o,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)A=A+1|(ar[u+(A<<2)>>2]=0);Yl(u),A=0|is[127&ar[36+(0|ar[b>>2])>>2]](b)}else{if(b=0|bf(r,54248),e){for(ks[63&ar[44+(0|ar[b>>2])>>2]](l,b),A=0|ar[l>>2],tr[i>>0]=A,tr[i+1>>0]=A>>8,tr[i+2>>0]=A>>16,tr[i+3>>0]=A>>24,ks[63&ar[32+(0|ar[b>>2])>>2]](u,b),A=((0|tr[(A=a+11|0)>>0])<0?(A=0|ar[a>>2],tr[l>>0]=0,Ni(A,l),ar[a+4>>2]=0):(tr[l>>0]=0,Ni(a,l),tr[A>>0]=0),a),Ml(a,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)A=A+1|(ar[u+(A<<2)>>2]=0);Yl(u),r=b}else{for(ks[63&ar[40+(0|ar[b>>2])>>2]](l,b),A=0|ar[l>>2],tr[i>>0]=A,tr[i+1>>0]=A>>8,tr[i+2>>0]=A>>16,tr[i+3>>0]=A>>24,ks[63&ar[28+(0|ar[b>>2])>>2]](u,b),A=((0|tr[(A=a+11|0)>>0])<0?(A=0|ar[a>>2],tr[l>>0]=0,Ni(A,l),ar[a+4>>2]=0):(tr[l>>0]=0,Ni(a,l),tr[A>>0]=0),a),Ml(a,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)A=A+1|(ar[u+(A<<2)>>2]=0);Yl(u),r=b}for(A=0|is[127&ar[12+(0|ar[b>>2])>>2]](b),tr[f>>0]=A,A=0|is[127&ar[16+(0|ar[b>>2])>>2]](b),tr[n>>0]=A,ks[63&ar[20+(0|ar[r>>2])>>2]](u,b),A=((0|tr[(A=t+11|0)>>0])<0?(A=0|ar[t>>2],tr[l>>0]=0,Ni(A,l),ar[t+4>>2]=0):(tr[l>>0]=0,Ni(t,l),tr[A>>0]=0),t),Ml(t,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)A=A+1|(ar[u+(A<<2)>>2]=0);for(Yl(u),ks[63&ar[24+(0|ar[r>>2])>>2]](u,b),A=((0|tr[(A=o+11|0)>>0])<0?(A=0|ar[o>>2],tr[l>>0]=0,Ni(A,l),ar[o+4>>2]=0):(tr[l>>0]=0,Ni(o,l),tr[A>>0]=0),o),Ml(o,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)A=A+1|(ar[u+(A<<2)>>2]=0);Yl(u),A=0|is[127&ar[36+(0|ar[b>>2])>>2]](b)}ar[c>>2]=A,ur=s}function Ve(A,e,r,i,f,n,t,o,a,c,l,u,s,b,d){A|=0,e|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0,u|=0,s|=0,b|=0,d|=0;var k,h,w,v,g,m,p,y,Z,C=0,W=0,I=0,B=0,E=0,G=0,V=0,X=0,_=0;for(ar[(r|=0)>>2]=A,k=b+11|0,Z=b+4|0,h=s+11|0,w=s+4|0,v=0==(512&i|0),g=t+8|0,m=0<(0|d),p=u+11|0,y=u+4|0,V=0;4!=(0|V);){A:do{switch(0|tr[a+V>>0]){case 0:ar[e>>2]=ar[r>>2];break;case 1:ar[e>>2]=ar[r>>2],E=0|fs[63&ar[28+(0|ar[t>>2])>>2]](t,32),G=0|ar[r>>2],ar[r>>2]=G+1,tr[G>>0]=E;break;case 3:0|((C=(G=0|tr[k>>0])<<24>>24<0)?0|ar[Z>>2]:255&G)&&(E=0|tr[(C?0|ar[b>>2]:b)>>0],G=0|ar[r>>2],ar[r>>2]=G+1,tr[G>>0]=E);break;case 2:if(!(v|0==(0|(W=(C=(W=0|tr[h>>0])<<24>>24<0)?0|ar[w>>2]:255&W)))){for(I=(G=C?0|ar[s>>2]:s)+W|0,C=0|ar[r>>2],W=G;(0|W)!=(0|I);)tr[C>>0]=0|tr[W>>0],C=C+1|0,W=W+1|0;ar[r>>2]=C}break;case 4:for(W=0|ar[r>>2],I=f=o?f+1|0:f;!(n>>>0<=I>>>0)&&!((C=0|tr[I>>0])<<24>>24<=-1)&&2048&or[(0|ar[g>>2])+(C<<24>>24<<1)>>1];)I=I+1|0;if(m){for(B=d;f>>>0<I>>>0&(C=0<(0|B));)C=0|tr[(G=I+-1|0)>>0],E=0|ar[r>>2],ar[r>>2]=E+1,tr[E>>0]=C,B=B+-1|0,I=G;for(E=C?0|fs[63&ar[28+(0|ar[t>>2])>>2]](t,48):0,C=B;B=0|ar[r>>2],ar[r>>2]=B+1,!((0|C)<=0);)tr[B>>0]=E,C=C+-1|0;tr[B>>0]=c}e:do{if((0|I)==(0|f))E=0|fs[63&ar[28+(0|ar[t>>2])>>2]](t,48),G=0|ar[r>>2],ar[r>>2]=G+1,tr[G>>0]=E;else for(G=B=(E=0|((C=(G=0|tr[p>>0])<<24>>24<0)?0|ar[y>>2]:255&G)?0|tr[(C?0|ar[u>>2]:u)>>0]:-1,0);;){if((0|I)==(0|f))break e;C=(0|G)==(0|E)?(E=0|ar[r>>2],ar[r>>2]=E+1,tr[E>>0]=l,E=(B=B+1|0)>>>0<((C=(E=0|tr[p>>0])<<24>>24<0)?0|ar[y>>2]:255&E)>>>0?(E=0|tr[(C?0|ar[u>>2]:u)+B>>0])<<24>>24==127?-1:E<<24>>24:G,0):G,_=0|tr[(X=I+-1|0)>>0],G=0|ar[r>>2],ar[r>>2]=G+1,tr[G>>0]=_,G=C+1|0,I=X}}while(0);if((0|W)!=(0|(C=0|ar[r>>2])))for(;;){if((C=C+-1|0)>>>0<=W>>>0)break A;_=0|tr[W>>0],tr[W>>0]=0|tr[C>>0],tr[C>>0]=_,W=W+1|0}}}while(0);V=V+1|0}if(1<(f=(C=(f=0|tr[k>>0])<<24>>24<0)?0|ar[Z>>2]:255&f)>>>0){for(W=(_=C?0|ar[b>>2]:b)+f|0,C=0|ar[r>>2],f=_;(0|(f=f+1|0))!=(0|W);)tr[C>>0]=0|tr[f>>0],C=C+1|0;ar[r>>2]=C}switch((176&i)<<24>>24){case 32:ar[e>>2]=ar[r>>2];break;case 16:break;default:ar[e>>2]=A}}function Xe(A,e,r,i,f,n,t,o,a,c){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0;var l,u,s;if(u=ur=(s=ur)+31&-32,ur=ur+16|0,l=12+u|0,A|=0){if(r=0|bf(r,54272),e){for(ks[63&ar[44+(0|ar[r>>2])>>2]](l,r),A=0|ar[l>>2],tr[i>>0]=A,tr[i+1>>0]=A>>8,tr[i+2>>0]=A>>16,tr[i+3>>0]=A>>24,ks[63&ar[32+(0|ar[r>>2])>>2]](u,r),(0|tr[(A=a+8+3|0)>>0])<0?(i=0|ar[a>>2],ar[l>>2]=0,sf(i,l),ar[a+4>>2]=0):(ar[l>>2]=0,sf(a,l),tr[A>>0]=0),ql(a,0),ar[a>>2]=ar[u>>2],ar[a+4>>2]=ar[4+u>>2],ar[a+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)A=A+1|(ar[u+(A<<2)>>2]=0);Pl(u)}else{for(ks[63&ar[40+(0|ar[r>>2])>>2]](l,r),A=0|ar[l>>2],tr[i>>0]=A,tr[i+1>>0]=A>>8,tr[i+2>>0]=A>>16,tr[i+3>>0]=A>>24,ks[63&ar[28+(0|ar[r>>2])>>2]](u,r),(0|tr[(A=a+8+3|0)>>0])<0?(i=0|ar[a>>2],ar[l>>2]=0,sf(i,l),ar[a+4>>2]=0):(ar[l>>2]=0,sf(a,l),tr[A>>0]=0),ql(a,0),ar[a>>2]=ar[u>>2],ar[a+4>>2]=ar[4+u>>2],ar[a+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)A=A+1|(ar[u+(A<<2)>>2]=0);Pl(u)}for(A=0|is[127&ar[12+(0|ar[r>>2])>>2]](r),ar[f>>2]=A,A=0|is[127&ar[16+(0|ar[r>>2])>>2]](r),ar[n>>2]=A,ks[63&ar[20+(0|ar[r>>2])>>2]](u,r),A=((0|tr[(A=t+11|0)>>0])<0?(A=0|ar[t>>2],tr[l>>0]=0,Ni(A,l),ar[t+4>>2]=0):(tr[l>>0]=0,Ni(t,l),tr[A>>0]=0),t),Ml(t,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)A=A+1|(ar[u+(A<<2)>>2]=0);for(Yl(u),ks[63&ar[24+(0|ar[r>>2])>>2]](u,r),(0|tr[(A=o+8+3|0)>>0])<0?(t=0|ar[o>>2],ar[l>>2]=0,sf(t,l),ar[o+4>>2]=0):(ar[l>>2]=0,sf(o,l),tr[A>>0]=0),ql(o,0),ar[o>>2]=ar[u>>2],ar[o+4>>2]=ar[4+u>>2],ar[o+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)A=A+1|(ar[u+(A<<2)>>2]=0);Pl(u),A=0|is[127&ar[36+(0|ar[r>>2])>>2]](r)}else{if(r=0|bf(r,54264),e){for(ks[63&ar[44+(0|ar[r>>2])>>2]](l,r),A=0|ar[l>>2],tr[i>>0]=A,tr[i+1>>0]=A>>8,tr[i+2>>0]=A>>16,tr[i+3>>0]=A>>24,ks[63&ar[32+(0|ar[r>>2])>>2]](u,r),(0|tr[(A=a+8+3|0)>>0])<0?(i=0|ar[a>>2],ar[l>>2]=0,sf(i,l),ar[a+4>>2]=0):(ar[l>>2]=0,sf(a,l),tr[A>>0]=0),ql(a,0),ar[a>>2]=ar[u>>2],ar[a+4>>2]=ar[4+u>>2],ar[a+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)A=A+1|(ar[u+(A<<2)>>2]=0);Pl(u)}else{for(ks[63&ar[40+(0|ar[r>>2])>>2]](l,r),A=0|ar[l>>2],tr[i>>0]=A,tr[i+1>>0]=A>>8,tr[i+2>>0]=A>>16,tr[i+3>>0]=A>>24,ks[63&ar[28+(0|ar[r>>2])>>2]](u,r),(0|tr[(A=a+8+3|0)>>0])<0?(i=0|ar[a>>2],ar[l>>2]=0,sf(i,l),ar[a+4>>2]=0):(ar[l>>2]=0,sf(a,l),tr[A>>0]=0),ql(a,0),ar[a>>2]=ar[u>>2],ar[a+4>>2]=ar[4+u>>2],ar[a+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)A=A+1|(ar[u+(A<<2)>>2]=0);Pl(u)}for(A=0|is[127&ar[12+(0|ar[r>>2])>>2]](r),ar[f>>2]=A,A=0|is[127&ar[16+(0|ar[r>>2])>>2]](r),ar[n>>2]=A,ks[63&ar[20+(0|ar[r>>2])>>2]](u,r),A=((0|tr[(A=t+11|0)>>0])<0?(A=0|ar[t>>2],tr[l>>0]=0,Ni(A,l),ar[t+4>>2]=0):(tr[l>>0]=0,Ni(t,l),tr[A>>0]=0),t),Ml(t,0),ar[A>>2]=ar[u>>2],ar[A+4>>2]=ar[4+u>>2],ar[A+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)A=A+1|(ar[u+(A<<2)>>2]=0);for(Yl(u),ks[63&ar[24+(0|ar[r>>2])>>2]](u,r),(0|tr[(A=o+8+3|0)>>0])<0?(t=0|ar[o>>2],ar[l>>2]=0,sf(t,l),ar[o+4>>2]=0):(ar[l>>2]=0,sf(o,l),tr[A>>0]=0),ql(o,0),ar[o>>2]=ar[u>>2],ar[o+4>>2]=ar[4+u>>2],ar[o+8>>2]=ar[8+u>>2],A=0;3!=(0|A);)A=A+1|(ar[u+(A<<2)>>2]=0);Pl(u),A=0|is[127&ar[36+(0|ar[r>>2])>>2]](r)}ar[c>>2]=A,ur=s}function _e(A,e,r,i,f,n,t,o,a,c,l,u,s,b,d){A|=0,e|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0,u|=0,s|=0,b|=0,d|=0;var k,h,w,v,g,m,p,y,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0,X=0,_=0,F=0;for(ar[(r|=0)>>2]=A,k=b+8+3|0,y=b+4|0,h=s+8+3|0,w=s+4|0,v=0==(512&i|0),g=0<(0|d),m=u+11|0,p=u+4|0,_=0;4!=(0|_);){A:do{switch(0|tr[a+_>>0]){case 0:ar[e>>2]=ar[r>>2];break;case 1:ar[e>>2]=ar[r>>2],V=0|fs[63&ar[44+(0|ar[t>>2])>>2]](t,32),X=0|ar[r>>2],ar[r>>2]=X+4,ar[X>>2]=V;break;case 3:0|((Z=(X=0|tr[k>>0])<<24>>24<0)?0|ar[y>>2]:255&X)&&(V=0|ar[(Z?0|ar[b>>2]:b)>>2],X=0|ar[r>>2],ar[r>>2]=X+4,ar[X>>2]=V);break;case 2:if(!(v|0==(0|(B=(Z=(B=0|tr[h>>0])<<24>>24<0)?0|ar[w>>2]:255&B)))){for(C=(I=Z?0|ar[s>>2]:s)+(B<<2)|0,Z=W=0|ar[r>>2];(0|I)!=(0|C);)ar[Z>>2]=ar[I>>2],Z=Z+4|0,I=I+4|0;ar[r>>2]=W+(B<<2)}break;case 4:for(C=0|ar[r>>2],Z=f=o?f+4|0:f;!(n>>>0<=Z>>>0)&&0|ns[63&ar[12+(0|ar[t>>2])>>2]](t,2048,0|ar[Z>>2]);)Z=Z+4|0;if(g){for(I=d;f>>>0<Z>>>0&(W=0<(0|I));)G=0|ar[(X=Z+-4|0)>>2],V=0|ar[r>>2],ar[r>>2]=V+4,ar[V>>2]=G,I=I+-1|0,Z=X;for(E=W?0|fs[63&ar[44+(0|ar[t>>2])>>2]](t,48):0,B=0|ar[r>>2];W=B+4|0,!((0|I)<=0);)ar[B>>2]=E,I=I+-1|0,B=W;ar[r>>2]=W,ar[B>>2]=c}if((0|Z)==(0|f))V=0|fs[63&ar[44+(0|ar[t>>2])>>2]](t,48),Z=(X=0|ar[r>>2])+4|0,ar[r>>2]=Z,ar[X>>2]=V;else{for(V=(X=0|tr[m>>0])<<24>>24<0,X&=255,E=W=(B=0|(V?0|ar[p>>2]:X)?0|tr[(V?0|ar[u>>2]:u)>>0]:-1,0);(0|Z)!=(0|f);)I=0|ar[r>>2],(0|E)==(0|B)&&(G=I+4|0,ar[r>>2]=G,ar[I>>2]=l,I=(E=(B=(W=W+1|0)>>>0<(V?0|ar[p>>2]:X)>>>0?(B=0|tr[(V?0|ar[u>>2]:u)+W>>0])<<24>>24==127?-1:B<<24>>24:E,0),G)),F=0|ar[(G=Z+-4|0)>>2],ar[r>>2]=I+4,ar[I>>2]=F,E=E+1|0,Z=G;Z=0|ar[r>>2]}if((0|C)!=(0|Z))for(;;){if((Z=Z+-4|0)>>>0<=C>>>0)break A;F=0|ar[C>>2],ar[C>>2]=ar[Z>>2],ar[Z>>2]=F,C=C+4|0}}}while(0);_=_+1|0}if(1<(f=(Z=(f=0|tr[k>>0])<<24>>24<0)?0|ar[y>>2]:255&f)>>>0){for(I=(Z=Z?0|ar[b>>2]:b)+4|0,W=(Z=Z+(f<<2)|0)-I|0,f=C=0|ar[r>>2];(0|I)!=(0|Z);)ar[f>>2]=ar[I>>2],f=f+4|0,I=I+4|0;ar[r>>2]=C+(W>>>2<<2)}switch((176&i)<<24>>24){case 32:ar[e>>2]=ar[r>>2];break;case 16:break;default:ar[e>>2]=A}}function Fe(A,e,r){e|=0,r|=0;var i,f,n,t,o=0;ur=(i=ur)+16|0,f=i,A=0|ar[(A|=0)>>2],e=0|uA(0|e),n=0|qo((o=(t=(o=0|tr[r+11>>0])<<24>>24<0)?0|ar[r+4>>2]:255&o)+4|0),ar[n>>2]=o,Eu(4+n|0,0|(t?0|ar[r>>2]:r),0|o),ar[f>>2]=n,r=0|dA(1680,0|f),bA(0|A,0|e,0|r),cA(0|r),cA(0|e),ur=i}function Ne(A,e,r){e|=0,r|=0;var i,f;ur=(i=ur)+16|0,f=i,A=0|ar[(A|=0)>>2],e=0|uA(0|e),ar[f>>2]=ar[r>>2],r=0|dA(3744,0|f),bA(0|A,0|e,0|r),cA(0|r),cA(0|e),ur=i}function Re(A,e){e|=0;var r,i,f,n=0,t=0;if(ar[(A|=0)>>2]=0,ar[(f=A+4|0)>>2]=0,(r=(n=((ar[A+8>>2]=0)|ar[(i=e+4|0)>>2])-(0|ar[e>>2])|0)>>3)&&(536870911<r>>>0&&il(),t=0|El(n),ar[f>>2]=t,ar[A>>2]=t,ar[A+8>>2]=t+(r<<3),(0|(n=0|ar[e>>2]))!=(0|(e=0|ar[i>>2]))))for(;ar[t>>2]=ar[n>>2],A=0|ar[n+4>>2],0|(ar[t+4>>2]=A)&&Cl(A),n=n+8|0,t=8+(0|ar[f>>2])|0,ar[f>>2]=t,(0|n)!=(0|e););}function Ye(A){A|=0;var e,r,i,f,n;i=0|El(64),ar[4+i>>2]=0,ar[8+i>>2]=0,ar[i>>2]=5420,n=f=12+i|0,ar[(n|=0)>>2]=0,ar[n+4>>2]=0,ar[n+8>>2]=0,ar[n+12>>2]=0,ar[n+16>>2]=0,ar[n+20>>2]=26780,ar[n+24>>2]=0,ar[n+28>>2]=0,ar[n+32>>2]=99,ar[n+36>>2]=99,ar[n+44>>2]=0,ar[n+48>>2]=0,ar[n+40>>2]=n+44,ar[A>>2]=f,r=ar[A+4>>2]=i,0|(A=0|ar[(e=16+i|0)>>2])&&-1!=(0|ar[A+4>>2])||(Cl(i),Wl(i),A=0|ar[e>>2],ar[f>>2]=f,ar[e>>2]=r,0|A&&Bl(A),Il(i))}function Je(A,e,r){e|=0,r|=0;var i=0;return 0|(A|=0)&&0|(i=0|ar[A>>2])?0|(i=0|Qc(i,e,r)):(i=ar[r>>2]=0)|i}function De(A,e){var r=0,i=0,f=0,n=0,t=0,o=0,a=0;if((e|=0)>>>0<=(f=0|ar[(o=(A|=0)+8|0)>>2])-(r=0|ar[(a=A+4|0)>>2])>>3>>>0)for(;ar[(o=r)>>2]=0,r=8+((ar[o+4>>2]=0)|ar[a>>2])|0,ar[a>>2]=r,0!=(0|(e=e+-1|0)););else{536870911<(r=(n=r-(i=0|ar[A>>2])>>3)+e|0)>>>0&&il(),t=(f=f-i|0)>>2,r=f>>3>>>0<268435455?t>>>0<r>>>0?r:t:536870911;do{if(r){if(!(536870911<r>>>0)){i=0|El(r<<3);break}Fl(a=0|C(8),37845),ar[a>>2]=16004,I(0|a,3616,283)}else i=0}while(0);for(t=i+(n<<3)|0,n=i+(r<<3)|0,f=r=t;ar[(i=r)>>2]=0,f=r=f+8|(ar[i+4>>2]=0),0!=(0|(e=e+-1|0)););e=0|ar[A>>2],r=t+(0-((i=(0|ar[a>>2])-e|0)>>3)<<3)|0,0<(0|i)&&Eu(0|r,0|e,0|i),ar[A>>2]=r,ar[a>>2]=f,ar[o>>2]=n,e&&Vl(e)}}function Qe(A,e){A|=0,(e|=0)&&(Qe(A,0|ar[e>>2]),Qe(A,0|ar[e+4>>2]),0|(A=0|ar[e+24>>2])&&Il(A),Vl(e))}function Te(A){var e,r=0,i=0,f=0,n=0;if(0|(r=0|ar[(A|=0)+64>>2])&&Il(r),0|(r=0|ar[A+56>>2])&&Il(r),0|(r=0|ar[(e=A+40|0)>>2])){if((0|(i=0|ar[(n=A+44|0)>>2]))!=(0|r)){for(;f=i+-8|0,ar[n>>2]=f,(0|(i=(i=0|ar[i+-4>>2])?(Il(i),0|ar[n>>2]):f))!=(0|r););r=0|ar[e>>2]}Vl(r)}Qe(A+28|0,0|ar[A+32>>2]),function A(e,r){return e|=0,(r|=0)&&(A(e,0|ar[r>>2]),A(e,0|ar[r+4>>2]),void Vl(r))}(A+16|0,0|ar[A+20>>2]),0<=(0|tr[A+11>>0])||Vl(0|ar[A>>2])}function Me(A,e){e|=0;var r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0;f=0|ar[(u=(A|=0)+4|0)>>2],c=n=0|ar[A>>2],536870911<(t=1+(r=f-n>>3)|0)>>>0&&il(),o=(l=(0|ar[(i=A+8|0)>>2])-n|0)>>2,o=l>>3>>>0<268435455?o>>>0<t>>>0?t:o:536870911;do{if(o){if(!(536870911<o>>>0)){a=0|El(o<<3);break}Fl(u=0|C(8),37845),ar[u>>2]=16004,I(0|u,3616,283)}else a=0}while(0);if(l=a+(o<<3)|0,ar[(t=n=a+(r<<3)|0)>>2]=ar[e>>2],o=0|ar[e+4>>2],o=(ar[a+(r<<3)+4>>2]=o)?(Cl(o),f=0|ar[u>>2],0|ar[A>>2]):c,a=n+8|0,(0|f)!=(0|o)){for(;f=(c=f)+-8|0,ar[n+-8>>2]=ar[f>>2],c=c+-4|0,ar[n+-4>>2]=ar[c>>2],ar[f>>2]=0,t=n=t+-8|(ar[c>>2]=0),(0|f)!=(0|o););o=0|ar[A>>2],f=0|ar[u>>2]}if(ar[A>>2]=t,ar[u>>2]=a,ar[i>>2]=l,(0|f)!=(0|(t=o)))for(;n=0|ar[f+-4>>2],f=f+-8|0,0|n&&Il(n),(0|f)!=(0|t););o&&Vl(o)}function Se(A,e){e|=0;var r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0;f=0|ar[(u=(A|=0)+4|0)>>2],c=n=0|ar[A>>2],536870911<(t=1+(r=f-n>>3)|0)>>>0&&il(),o=(l=(0|ar[(i=A+8|0)>>2])-n|0)>>2,o=l>>3>>>0<268435455?o>>>0<t>>>0?t:o:536870911;do{if(o){if(!(536870911<o>>>0)){a=0|El(o<<3);break}Fl(u=0|C(8),37845),ar[u>>2]=16004,I(0|u,3616,283)}else a=0}while(0);if(l=a+(o<<3)|0,ar[(t=n=a+(r<<3)|0)>>2]=ar[e>>2],o=0|ar[e+4>>2],o=(ar[a+(r<<3)+4>>2]=o)?(Cl(o),f=0|ar[u>>2],0|ar[A>>2]):c,a=n+8|0,(0|f)!=(0|o)){for(;f=(c=f)+-8|0,ar[n+-8>>2]=ar[f>>2],c=c+-4|0,ar[n+-4>>2]=ar[c>>2],ar[f>>2]=0,t=n=t+-8|(ar[c>>2]=0),(0|f)!=(0|o););o=0|ar[A>>2],f=0|ar[u>>2]}if(ar[A>>2]=t,ar[u>>2]=a,ar[i>>2]=l,(0|f)!=(0|(t=o)))for(;n=0|ar[f+-4>>2],f=f+-8|0,0|n&&Il(n),(0|f)!=(0|t););o&&Vl(o)}function Ue(A){var e=0,r=0,i=0,f=0,n=0;if(0|(e=0|ar[(f=(A|=0)+68|0)>>2])){if((0|(r=0|ar[(n=A+72|0)>>2]))!=(0|e)){for(i=r;r=i+-8|0,ar[n>>2]=r,(i=0|ar[i+-4>>2])&&(Il(i),r=0|ar[n>>2]),(0|r)!=(0|e);)i=r;e=0|ar[f>>2]}Vl(e)}if(0|(e=0|ar[A+64>>2])&&Il(e),0|(e=0|ar[(f=A+40|0)>>2])){if((0|(r=0|ar[(n=A+44|0)>>2]))!=(0|e)){for(;i=r+-8|0,ar[n>>2]=i,(0|(r=(r=0|ar[r+-4>>2])?(Il(r),0|ar[n>>2]):i))!=(0|e););e=0|ar[f>>2]}Vl(e)}0<=(0|tr[A+11>>0])||Vl(0|ar[A>>2])}function Oe(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f,n,t,o,a=0,c=0,l=0;if(ur=(o=ur)+32|0,t=o,l=0|El(112),ar[l+4>>2]=0,ar[l+8>>2]=0,ar[l>>2]=5892,Ic(a=l+12|0),ar[(f=e+60|0)>>2]=a,n=0|ar[(c=e+64|0)>>2],ar[c>>2]=l,n&&(Il(n),a=0|ar[f>>2]),Xc(t,a,r,i),0|ar[t>>2])return l=0|ar[(i=t)+4>>2],ar[(c=A)>>2]=ar[i>>2],ar[c+4>>2]=l,l=t+8|0,ar[(c=A+8|0)>>2]=ar[l>>2],ar[c+4>>2]=ar[l+4>>2],ar[c+8>>2]=ar[l+8>>2],ar[l>>2]=0,ar[l+4>>2]=0,ar[l+8>>2]=0,void(ur=o);!function(A,e){A|=0;var r,i,f,n,t,o,a,c,l,u,s,b,d,k,h,w,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0,X=0,_=0,F=0,N=0,R=0,Y=0,J=0,D=0,Q=0,T=0,M=0,S=0,U=0,O=0,H=0,x=0,j=0,z=0,P=0,L=0,K=0,q=0,$=0,AA=0,eA=0,rA=0,iA=0,fA=0,nA=0,tA=0,oA=0,aA=0,cA=0,lA=0,uA=0,sA=0,bA=0,dA=0,kA=0,hA=0,wA=0,vA=0,gA=0;if(ur=(w=ur)+352|0,vA=w+332|0,h=w+308|0,N=w+320|0,o=w+296|0,a=w+284|0,aA=w+272|0,cA=w+264|0,gA=w+24|0,c=(s=w)+120|0,r=w+104|0,i=w+92|0,dA=w+80|0,b=w+68|0,d=w+56|0,k=w+48|0,Qe(f=(e|=0)+28|0,0|ar[(wA=e+32|0)>>2]),ar[(F=e+36|0)>>2]=0,ar[f>>2]=wA,m=(ar[wA>>2]=0)|ar[(n=e+40|0)>>2],(0|(v=0|ar[(t=e+44|0)>>2]))!=(0|m))for(;g=v+-8|0,ar[t>>2]=g,(0|(v=(v=0|ar[v+-4>>2])?(Il(v),0|ar[t>>2]):g))!=(0|m););if(v=(ar[(X=e+52|0)>>2]=0)|ar[(_=e+56|0)>>2],(ar[_>>2]=0)|v&&Il(v),Ec(h,0|ar[(l=e+60|0)>>2]),(0|(v=0|ar[h>>2]))!=(0|(I=0|ar[(u=4+h|0)>>2]))){E=vA+4|0,G=(B=e)+32|0,V=e+48|0;do{W=0|ar[v>>2],y=76+(0|ar[l>>2])|0,m=0|ar[y>>2];do{if(0|m){g=y;A:for(;;){for(p=m;!((0|ar[p+16>>2])>>>0>=W>>>0);){if(!(m=0|ar[p+4>>2]))break A;p=m}if(!(m=0|ar[p>>2])){g=p;break}g=p}if((0|g)!=(0|y)&&(0|ar[g+16>>2])>>>0<=W>>>0){if(m=0|ar[g+20>>2],C=(g=0|ar[g+24>>2])?(Cl(g),g):0,!m){if(!C)break;Il(C);break}if(!(0|tr[m+124>>0])){g=0|El(92),ar[g+4>>2]=0,ar[g+8>>2]=0,ar[g>>2]=5920,ar[(m=g+12|0)>>2]=0,ar[m+4>>2]=0,ar[m+8>>2]=0,ar[g+24>>2]=26780,ar[g+28>>2]=B,ar[g+32>>2]=W,bA=g+52|0,p=g+72|0,ar[(sA=g+36|0)>>2]=0,ar[sA+4>>2]=0,or[sA+8>>1]=0,ar[bA>>2]=0,ar[bA+4>>2]=0,ar[bA+8>>2]=0,tr[bA+12>>0]=0,ar[p>>2]=0,ar[p+4>>2]=0,ar[p+8>>2]=0,ar[p+12>>2]=0,ar[p+16>>2]=0,ar[vA>>2]=m,p=ar[E>>2]=g,(0|W)==(0|ar[96+(0|ar[l>>2])>>2])?(tr[g+44>>0]=1,Cl(g),ar[X>>2]=m,g=0|ar[_>>2],ar[_>>2]=p,0|g&&Il(g),g=0|ar[E>>2],m=0|ar[vA>>2],(p=g)?hA=25:Z=m):hA=25,25==(0|hA)&&(hA=0,Cl(g),Z=m),g=0|ar[wA>>2];do{if(g){for(y=G;;)if(W>>>0<(m=0|ar[g+16>>2])>>>0){if(!(m=0|ar[g>>2])){hA=30;break}y=g,g=m}else{if(W>>>0<=m>>>0){hA=34;break}if(!(m=0|ar[(y=g+4|0)>>2])){hA=33;break}g=m}if(30==(0|hA)){hA=0,y=m=g;break}if(33==(0|hA)){hA=0,m=g;break}if(34==(0|hA)){hA=0,m=g;break}}else y=m=wA}while(0);0|ar[y>>2]?0|p&&Il(p):(g=0|El(28),ar[g+16>>2]=W,ar[g+20>>2]=Z,ar[g+24>>2]=p,ar[g>>2]=0,ar[g+4>>2]=0,ar[g+8>>2]=m,ar[y>>2]=g,(m=0|ar[ar[f>>2]>>2])&&(ar[f>>2]=m,g=0|ar[y>>2]),Vc(0|ar[G>>2],g),ar[F>>2]=1+(0|ar[F>>2])),(0|(g=0|ar[t>>2]))==(0|ar[V>>2])?Me(n,vA):(ar[g>>2]=ar[vA>>2],m=0|ar[E>>2],(ar[g+4>>2]=m)&&(Cl(m),g=0|ar[t>>2]),ar[t>>2]=g+8),0|(g=0|ar[E>>2])&&Il(g)}0|C&&Il(C)}}}while(0);v=v+4|0}while((0|v)!=(0|I))}if(0|ar[X>>2]){sA=0|ar[l>>2],lA=0|ar[sA+64>>2],(bA=0==(0|(sA=0|ar[sA+68>>2])))||Cl(sA),uA=0!=(0|lA);A:do{if(uA){if(m=0|ar[n>>2],(0|(v=0|ar[t>>2]))!=(0|m))for(;g=v+-8|0,ar[t>>2]=g,(0|(v=(v=0|ar[v+-4>>2])?(Il(v),0|ar[t>>2]):g))!=(0|m););if((0|(v=0|ar[f>>2]))!=(0|wA))for(B=e+48|0,G=8+a|0,V=4+a|0,X=11+a|0,_=cA+4|0,F=aA+8|0,N=aA+4|0,e=aA+11|0,R=8+o|0,Y=4+o|0,J=11+o|0,D=gA+4|0,Q=gA+8|0,S=12+c|0,O=T=64+c|0,H=136+c|0,x=140+c|0,z=60+c|0,P=vA+11|0,L=M=8+c|0,K=11+r|0,q=(j=44+c|0)+11|0,$=E=vA+4|0,AA=11+c|0,eA=U=4+c|0,rA=8+i|0,iA=4+i|0,fA=11+i|0,tA=(nA=s+8|0)+11|0,oA=A+8|0,I=v;;){v=0|gc(lA,0|ar[20+(0|ar[(W=I+20|0)>>2])>>2]);e:do{if((0|v)<1953000802){switch(0|v){case 1635088492:break;default:hA=159;break e}if(ar[gA>>2]=0,ar[D>>2]=0,Fc(s,(ar[Q>>2]=0)|ar[l>>2],0|ar[20+(0|ar[W>>2])>>2],gA),0|ar[s>>2])W=0|ar[(C=s)+4>>2],ar[(p=A)>>2]=ar[C>>2],ar[p+4>>2]=W,ar[oA>>2]=ar[nA>>2],ar[oA+4>>2]=ar[nA+4>>2],ar[oA+8>>2]=ar[nA+8>>2],ar[nA>>2]=0,ar[nA+4>>2]=0,ar[nA+8>>2]=0,p=1;else{if((0|(v=0|ar[gA>>2]))!=(0|(C=0|ar[D>>2]))){Z=v,v=m=0;do{g=0|ar[Z+4>>2];do{if(g){if(!(y=0|lu(g,104,648,0)))break;g=y,(p=0|ar[Z+8>>2])?Cl(p):p=0;do{if(y){if(0|(m=p)&&Cl(p),!v){v=m;break}Il(v),v=m}else g=m}while(0);if(!p){m=g;break}Il(p),m=g}}while(0);Z=Z+12|0}while((0|Z)!=(0|C));if(g=m){mc(vA,lA,0|ar[20+(0|ar[W>>2])>>2]);do{if(4==((0|ar[$>>2])-(0|ar[vA>>2])|0)){if(Rl(c,g+56|0),25==(0|((g=0|tr[AA>>0])<<24>>24<0?0|ar[eA>>2]:255&g))?(m=0==(0|zl(c,0,-1,27006,25)),g=0|tr[AA>>0]):m=0,g<<24>>24<0&&Vl(0|ar[c>>2]),!m){g=0;break}Z=0|ar[W>>2],g=0|ar[vA>>2],p=0|ar[g>>2],tr[Z+52>>0]=1,ar[Z+56>>2]=p,p=0|ar[wA>>2];do{if(p){y=0|ar[g>>2],g=wA;r:for(;;){for(m=p;!((0|ar[m+16>>2])>>>0>=y>>>0);)if(!(m=0|ar[m+4>>2]))break r;if(!(p=0|ar[m>>2])){g=m;break}g=m}if((0|g)==(0|wA)){hA=135;break}y>>>0<(0|ar[g+16>>2])>>>0&&(hA=135)}else hA=135}while(0);if(135==(0|hA)&&(hA=0,g=wA),g=0|ar[g+20>>2],(p=0==(0|(m=0|ar[I+24>>2])))||(Cl(m),Cl(m)),ar[g+60>>2]=Z,g=0|ar[(W=g+64|0)>>2],ar[W>>2]=m,0|g&&Il(g),p){g=0;break}Il(m),g=0}else{for(ar[i>>2]=0,ar[4+i>>2]=0,g=(ar[8+i>>2]=0)|El(48),ar[i>>2]=g,ar[rA>>2]=-2147483600,y=26970,Z=(p=g)+(ar[iA>>2]=35)|0;tr[p>>0]=0|tr[y>>0],y=y+1|0,(0|(p=p+1|0))<(0|Z););if(Cc(A,2,tr[g+35>>0]=0,i),0<=(0|tr[fA>>0])){g=1;break}Vl(0|ar[i>>2]),g=1}}while(0);0|(m=0|ar[vA>>2])&&((0|(p=0|ar[$>>2]))!=(0|m)&&(ar[$>>2]=p+(~((p+-4-m|0)>>>2)<<2)),Vl(m))}else hA=112}else v=0,hA=112;112==(0|hA)&&(hA=0,ar[M>>2]=4080,ar[c>>2]=164,ar[T>>2]=184,ar[U>>2]=0,Yi(O,S),ar[H>>2]=0,ar[x>>2]=-1,ar[c>>2]=4060,ar[T>>2]=4100,ar[M>>2]=4080,Ti(S),ar[S>>2]=3908,ar[j>>2]=0,ar[j+4>>2]=0,ar[j+8>>2]=0,ar[j+12>>2]=0,ar[z>>2]=24,ar[vA>>2]=0,ar[vA+4>>2]=0,ar[vA+8>>2]=0,Of(S,vA),(0|tr[P>>0])<0&&Vl(0|ar[vA>>2]),qi(C=0|Hf(L,26942,27),0|ar[20+(0|ar[W>>2])>>2]),jf(r,S),Cc(A,2,123,r),(0|tr[K>>0])<0&&Vl(0|ar[r>>2]),ar[c>>2]=4060,ar[T>>2]=4100,ar[L>>2]=4080,ar[S>>2]=3908,(0|tr[q>>0])<0&&Vl(0|ar[j>>2]),si(S),_i(),ci(T),g=1),p=(v&&Il(v),g)}if((0|tr[tA>>0])<0&&Vl(0|ar[nA>>2]),0|(v=0|ar[gA>>2])){if((0|(g=0|ar[D>>2]))!=(0|v)){for(;m=g+-12|0,ar[D>>2]=m,(0|(g=(g=0|ar[g+-4>>2])?(Il(g),0|ar[D>>2]):m))!=(0|v););v=0|ar[gA>>2]}Vl(v)}if(0|p)break A}else{switch(0|v){case 1953000802:break;default:hA=159;break e}mc(vA,lA,0|ar[20+(0|ar[W>>2])>>2]),v=C=0|ar[vA>>2];do{if(4==((0|ar[E>>2])-C|0)){if(y=0|ar[W>>2],m=0|ar[v>>2],tr[y+33>>0]=1,ar[y+36>>2]=m,0|(m=0|ar[wA>>2])){p=0|ar[v>>2],v=wA;r:for(;;){for(g=m;!((0|ar[g+16>>2])>>>0>=p>>>0);)if(!(g=0|ar[g+4>>2]))break r;if(!(m=0|ar[g>>2])){v=g;break}v=g}if((0|v)!=(0|wA)&&p>>>0>=(0|ar[v+16>>2])>>>0){if(g=0|ar[v+20>>2],0|tr[g+33>>0]){for(ar[aA>>2]=0,ar[aA+4>>2]=0,v=(ar[aA+8>>2]=0)|El(48),ar[aA>>2]=v,ar[F>>2]=-2147483600,y=26903,Z=(p=v)+(ar[N>>2]=38)|0;tr[p>>0]=0|tr[y>>0],y=y+1|0,(0|(p=p+1|0))<(0|Z););if(tr[v+38>>0]=0,Cc(A,2,2e3,aA),0<=(0|tr[e>>0])){v=1;break}Vl(0|ar[aA>>2]),v=1;break}if(ar[cA>>2]=y,v=0|ar[I+24>>2],0|(ar[_>>2]=v)&&Cl(v),(0|(v=0|ar[(m=g+44|0)>>2]))==(0|ar[g+48>>2])?Me(g+40|0,cA):(ar[v>>2]=ar[cA>>2],g=0|ar[_>>2],(ar[v+4>>2]=g)&&(Cl(g),v=0|ar[m>>2]),ar[m>>2]=v+8),!(v=0|ar[_>>2])){v=0;break}Il(v),v=0;break}}for(ar[a>>2]=0,ar[4+a>>2]=0,v=(ar[8+a>>2]=0)|El(48),ar[a>>2]=v,ar[G>>2]=-2147483600,y=26861,Z=(p=v)+(ar[V>>2]=41)|0;tr[p>>0]=0|tr[y>>0],y=y+1|0,(0|(p=p+1|0))<(0|Z););tr[v+41>>0]=0,Cc(A,2,2e3,a),v=((0|tr[X>>0])<0&&Vl(0|ar[a>>2]),1)}else{for(ar[o>>2]=0,ar[4+o>>2]=0,v=(ar[8+o>>2]=0)|El(32),ar[o>>2]=v,ar[R>>2]=-2147483616,y=26831,Z=(p=v)+(ar[Y>>2]=29)|0;tr[p>>0]=0|tr[y>>0],y=y+1|0,(0|(p=p+1|0))<(0|Z););Cc(A,2,tr[v+29>>0]=0,o),v=((0|tr[J>>0])<0&&Vl(0|ar[o>>2]),1)}}while(0);if(0|(g=0|ar[vA>>2])&&((0|(m=0|ar[E>>2]))!=(0|g)&&(ar[E>>2]=m+(~((m+-4-g|0)>>>2)<<2)),Vl(g)),0|v)break A}}while(0);do{if(159==(0|hA)){if(((hA=0)|(v=0|ar[t>>2]))==(0|ar[B>>2])){Me(n,W);break}ar[v>>2]=ar[W>>2],g=0|ar[I+24>>2],(ar[v+4>>2]=g)&&(Cl(g),v=0|ar[t>>2]),ar[t>>2]=v+8}}while(0);if(v=0|ar[I+4>>2])for(;g=0|ar[v>>2];)v=g;else if(v=0|ar[(g=I+8|0)>>2],(0|ar[v>>2])!=(0|I))for(;I=0|ar[g>>2],v=0|ar[(g=I+8|0)>>2],(0|ar[v>>2])!=(0|I););if((0|v)==(0|wA)){hA=170;break}I=v}else hA=170}else hA=170}while(0);A:do{if(170==(0|hA)){v=0|ar[f>>2];e:do{if((0|v)!=(0|wA))for(B=gA+4|0,E=gA+8|0,X=12+c|0,_=4+c|0,F=G=64+c|0,N=136+c|0,e=140+c|0,Y=60+c|0,J=vA+11|0,D=V=8+c|0,Q=dA+11|0,T=(R=44+c|0)+11|0,S=(M=s+8|0)+11|0,U=A+8|0,I=v;;){if(C=I+20|0,ar[gA>>2]=0,ar[B>>2]=0,Fc(s,(ar[E>>2]=0)|ar[l>>2],0|ar[I+16>>2],gA),0|ar[s>>2])cA=0|ar[(aA=s)+4>>2],ar[(v=A)>>2]=ar[aA>>2],ar[v+4>>2]=cA,ar[U>>2]=ar[M>>2],ar[U+4>>2]=ar[M+4>>2],ar[U+8>>2]=ar[M+8>>2],ar[M>>2]=0,ar[M+4>>2]=0,ar[M+8>>2]=0,v=1;else{g=0|ar[gA>>2],W=0|ar[B>>2];r:do{if((0|g)==(0|W))v=10;else for(v=0;;){m=0|ar[(Z=g+4|0)>>2];do{if(0!=(0|m)&&0!=(0|(kA=0|lu(m,104,680,0)))){if((m=0|ar[g+8>>2])?Cl(m):m=0,(p=0|ar[kA+56>>2])>>>0<2147483647&(y=0|ar[kA+60>>2])>>>0<2147483647){hA=0|ar[C>>2],ar[hA+24>>2]=p,ar[hA+28>>2]=y,hA=190;break}ar[V>>2]=4080,ar[c>>2]=164,ar[G>>2]=184,ar[_>>2]=0,Yi(F,X),ar[N>>2]=0,ar[e>>2]=-1,ar[c>>2]=4060,ar[G>>2]=4100,ar[V>>2]=4080,Ti(X),ar[X>>2]=3908,ar[R>>2]=0,ar[R+4>>2]=0,ar[R+8>>2]=0,ar[R+12>>2]=0,ar[Y>>2]=24,ar[vA>>2]=0,ar[vA+4>>2]=0,ar[vA+8>>2]=0,Of(X,vA),(0|tr[J>>0])<0&&Vl(0|ar[vA>>2]),Hf(0|Ki(0|Hf(0|Ki(0|Hf(0|qi(0|Hf(0|qi(0|Hf(D,27032,11),p),26704,1),y),27044,32),2147483647),26704,1),2147483647),26620,1),jf(dA,X),Cc(A,6,1e3,dA),(0|tr[Q>>0])<0&&Vl(0|ar[dA>>2]),ar[c>>2]=4060,ar[G>>2]=4100,ar[D>>2]=4080,ar[X>>2]=3908,(0|tr[T>>0])<0&&Vl(0|ar[R>>2]),si(X),_i(),ci(G),p=1,hA=205}else hA=180}while(0);180==(0|hA)&&(hA=0,v?(m=0,hA=190):v=0);do{if(190==(0|hA))if(v=0|ar[Z>>2]){y=(p=0|lu(v,104,552,0))?((v=0|ar[g+8>>2])?Cl(v):v=0,y=0|ar[C>>2],cA=0|wc(p),hA=0|vc(p),ar[y+24>>2]=cA,ar[y+28>>2]=hA,v):0,v=0|ar[Z>>2];do{if(0|v){if(!(p=0|lu(v,104,616,0)))break;switch((v=0|ar[g+8>>2])?Cl(v):v=0,0|ar[p+56>>2]){case 270:case 90:hA=(aA=0|ar[C>>2])+28|0,cA=0|ar[(aA=aA+24|0)>>2],ar[aA>>2]=ar[hA>>2],ar[hA>>2]=cA}if(!v)break;Il(v)}}while(0);if(!y){p=0,v=1,hA=205;break}Il(y),p=0,v=1,hA=205}else p=0,v=1,hA=205}while(0);if(205==(0|hA)&&((hA=0)|m&&Il(m),p)){v=1;break r}if((0|(g=g+12|0))==(0|W)){v=10;break}}}while(0);v=10==(0|v)?0:v,(0|tr[S>>0])<0&&Vl(0|ar[M>>2])}if(0|(g=0|ar[gA>>2])){if((0|(m=0|ar[B>>2]))!=(0|g)){for(;p=m+-12|0,ar[B>>2]=p,(0|(m=(m=0|ar[m+-4>>2])?(Il(m),0|ar[B>>2]):p))!=(0|g););g=0|ar[gA>>2]}Vl(g)}switch(0|v){case 8:break e;case 0:break;default:break A}if(v=0|ar[I+4>>2])for(;g=0|ar[v>>2];)v=g;else if(v=0|ar[(g=I+8|0)>>2],(0|ar[v>>2])!=(0|I))for(;cA=0|ar[g>>2],v=0|ar[(g=cA+8|0)>>2],(0|ar[v>>2])!=(0|cA););if((0|v)==(0|wA))break e;I=v}}while(0);if((0|(g=0|ar[h>>2]))==(0|(I=0|ar[u>>2])))v=A+8|0;else{B=vA+11|0,E=vA+4|0,G=s+4|0,V=8+d|0,X=4+d|0,_=11+d|0,F=4+k|0,N=8+b|0,e=4+b|0,R=11+b|0,J=(Y=gA+8|0)+11|0,v=A+8|0;do{if(m=0|ar[g>>2],_c(vA,0|ar[l>>2],m),4==(0|((kA=0|tr[B>>0])<<24>>24<0?0|ar[E>>2]:255&kA))&&0==(0|zl(vA,0,-1,27077,4))){W=0|El(36),ar[W+4>>2]=0,ar[W+8>>2]=0,ar[W>>2]=5948,ar[(kA=W+12|0)>>2]=0,ar[kA+4>>2]=0,ar[kA+8>>2]=0,ar[kA+12>>2]=0,ar[kA+16>>2]=0,ar[kA+20>>2]=0,Jl(C=kA,vA),Nc(gA,0|ar[l>>2],m,W+24|0);do{if(0|ar[gA>>2])kA=0|ar[(dA=gA)+4>>2],ar[(m=A)>>2]=ar[dA>>2],ar[m+4>>2]=kA,ar[v>>2]=ar[Y>>2],ar[v+4>>2]=ar[Y+4>>2],ar[v+8>>2]=ar[Y+8>>2],ar[Y>>2]=0,ar[Y+4>>2]=0,ar[Y+8>>2]=0,m=1;else if(uA){if(1667527523==(0|gc(lA,m))){mc(s,lA,m),m=0|ar[s>>2];e:do{if(4==((0|ar[G>>2])-m|0)){Z=0|ar[m>>2],p=0|ar[wA>>2];do{if(0|p){m=wA;r:for(;;){for(y=p;!((0|ar[y+16>>2])>>>0>=Z>>>0);){if(!(p=0|ar[y+4>>2]))break r;y=p}if(!(p=0|ar[y>>2])){m=y;break}m=y}if((0|m)==(0|wA))break;if(Z>>>0<(0|ar[m+16>>2])>>>0)break;if(p=0|ar[m+20>>2],ar[k>>2]=C,Cl(ar[F>>2]=W),(0|(m=0|ar[(y=p+72|0)>>2]))==(0|ar[p+76>>2])?Se(p+68|0,k):(ar[m>>2]=ar[k>>2],p=0|ar[F>>2],(ar[m+4>>2]=p)&&(Cl(p),m=0|ar[y>>2]),ar[y>>2]=m+8),!(m=0|ar[F>>2])){m=0;break e}Il(m),m=0;break e}}while(0);for(ar[d>>2]=0,ar[4+d>>2]=0,m=(ar[8+d>>2]=0)|El(48),ar[d>>2]=m,ar[V>>2]=-2147483600,y=27124,Z=(p=m)+(ar[X>>2]=40)|0;tr[p>>0]=0|tr[y>>0],y=y+1|0,(0|(p=p+1|0))<(0|Z););if(tr[m+40>>0]=0,Cc(A,2,2e3,d),0<=(0|tr[_>>0])){m=1;break}Vl(0|ar[d>>2]),m=1}else{for(ar[b>>2]=0,ar[4+b>>2]=0,m=(ar[8+b>>2]=0)|El(48),ar[b>>2]=m,ar[N>>2]=-2147483600,y=27082,Z=(p=m)+(ar[e>>2]=41)|0;tr[p>>0]=0|tr[y>>0],y=y+1|0,(0|(p=p+1|0))<(0|Z););if(Cc(A,2,tr[m+41>>0]=0,b),0<=(0|tr[R>>0])){m=1;break}Vl(0|ar[b>>2]),m=1}}while(0);if(0|(p=0|ar[s>>2])&&((0|(y=0|ar[G>>2]))!=(0|p)&&(ar[G>>2]=y+(~((y+-4-p|0)>>>2)<<2)),Vl(p)),0|m){m=1;break}}m=0}else m=0}while(0);(0|tr[J>>0])<0&&Vl(0|ar[Y>>2]),Il(W),m?m=1:hA=263}else hA=263;if(263==(0|hA)&&(m=hA=0),(0|tr[B>>0])<0&&Vl(0|ar[vA>>2]),g=g+4|0,0|m)break A}while((0|g)!=(0|I))}vA=0|ar[(wA=49920)+4>>2],ar[(gA=A)>>2]=ar[wA>>2],ar[gA+4>>2]=vA,Rl(v,49928)}}while(0);bA||Il(sA)}else{for(ar[N>>2]=0,ar[N+4>>2]=0,v=(ar[N+8>>2]=0)|El(48),ar[N>>2]=v,ar[N+8>>2]=-2147483600,y=26788,Z=(p=v)+(ar[N+4>>2]=42)|0;tr[p>>0]=0|tr[y>>0],y=y+1|0,(0|(p=p+1|0))<(0|Z););tr[v+42>>0]=0,Cc(A,2,2e3,N),(0|tr[N+11>>0])<0&&Vl(0|ar[N>>2])}ur=((A=0|ar[h>>2])&&((0|(v=0|ar[u>>2]))!=(0|A)&&(ar[u>>2]=v+(~((v+-4-A|0)>>>2)<<2)),Vl(A)),w)}(A,e),ur=(0<=(0|tr[t+8+11>>0])||Vl(0|ar[t+8>>2]),o)}function He(A,e,r,i,f,n){A|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c=0,l=0,u=0;ur=(a=ur)+48|0,t=(o=a)+32|0,l=a+20|0,xe(o,0|ar[(e|=0)+16>>2],0|ar[e+20>>2],r,n);do{if(0|ar[o>>2])u=0|ar[(r=o)+4>>2],ar[(l=A)>>2]=ar[r>>2],ar[l+4>>2]=u,u=o+8|0,ar[(l=A+8|0)>>2]=ar[u>>2],ar[l+4>>2]=ar[u+4>>2],ar[l+8>>2]=ar[u+8>>2],ar[u>>2]=0,ar[u+4>>2]=0,ar[u+8>>2]=0;else{if(99==(0|f)&&(f=0|ar[36+(0|ar[r>>2])>>2]),n=0|ar[r>>2],u=0|ar[n+32>>2],!((0|(e=99==(0|i)?u:i))==(0|u)&&(0|f)==(0|ar[n+36>>2])||(Mc(t,n,e,f),u=0|ar[t>>2],i=0|ar[(n=4+t|0)>>2],ar[t>>2]=0,ar[n>>2]=0,ar[r>>2]=u,e=0|ar[(u=r+4|0)>>2],ar[u>>2]=i,0|e&&(Il(e),0|(c=0|ar[n>>2]))&&Il(c),0|ar[r>>2]))){if(ar[l>>2]=0,ar[l+4>>2]=0,ar[l+8>>2]=0,Cc(A,4,3003,l),0<=(0|tr[l+11>>0]))break;Vl(0|ar[l>>2]);break}u=0|ar[(r=o)+4>>2],ar[(l=A)>>2]=ar[r>>2],ar[l+4>>2]=u,u=o+8|0,ar[(l=A+8|0)>>2]=ar[u>>2],ar[l+4>>2]=ar[u+4>>2],ar[l+8>>2]=ar[u+8>>2],ar[u>>2]=0,ar[u+4>>2]=0,ar[u+8>>2]=0}}while(0);ur=(0<=(0|tr[(e=o+8|0)+11>>0])||Vl(0|ar[e>>2]),a)}function xe(A,e,r,i,f){A|=0,r|=0,i|=0,f|=0;var n,t,o,a,c,l,u,s,b,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0,X=0,_=0,F=0,N=0,R=0,Y=0,J=0,D=0,Q=0;ur=(u=ur)+240|0,a=u+96|0,g=u+208|0,D=u+72|0,E=u+48|0,n=u+24|0,Z=u+196|0,C=(t=u)+172|0,p=u+184|0,W=u+160|0,y=u+148|0,w=u+136|0,I=u+128|0,o=u+116|0,_c(l=u+220|0,0|ar[(B=(e|=0)+60|0)>>2],r),Zc(a),k=0|tr[(c=11+l|0)>>0],d=0|ar[(h=4+l|0)>>2];do{if(4==(0|(k<<24>>24<0?d:255&k))){if(0|zl(l,0,-1,27385,4)){k=0|tr[c>>0],d=0|ar[h>>2],Y=59;break}if((0|(d=0|ar[e+16>>2]))!=(0|(v=e+20|0))){for(w=m=0,h=d;;){if(N=0|ar[h+16>>2],m=(R=(0|w)<(0|(d=0|is[127&ar[N+8>>2]](1))))?N:m,w=R?d:w,d=0|ar[h+4>>2])for(;k=0|ar[d>>2];)d=k;else if(d=0|ar[(k=h+8|0)>>2],(0|ar[d>>2])!=(0|h))for(;R=0|ar[k>>2],d=0|ar[(k=R+8|0)>>2],(0|ar[d>>2])!=(0|R););if((0|d)==(0|v))break;h=d}if(0|m){if(ar[D>>2]=0,ar[(g=D+4|0)>>2]=0,Nc(E,(ar[D+8>>2]=0)|ar[B>>2],r,D),k=0|ar[(h=E)+4>>2],ar[(d=a)>>2]=ar[h>>2],ar[d+4>>2]=k,k=E+8|0,(0|tr[(h=(d=8+a|0)+11|0)>>0])<0?(tr[ar[d>>2]>>0]=0,ar[12+a>>2]=0):(tr[d>>0]=0,tr[h>>0]=0),Ml(d,0),ar[d>>2]=ar[k>>2],ar[d+4>>2]=ar[k+4>>2],ar[d+8>>2]=ar[k+8>>2],0|ar[a>>2])N=0|ar[(F=a)+4>>2],ar[(R=A)>>2]=ar[F>>2],ar[R+4>>2]=N,ar[(R=A+8|0)>>2]=ar[d>>2],ar[R+4>>2]=ar[d+4>>2],ar[R+8>>2]=ar[d+8>>2],ar[d>>2]=0,ar[d+4>>2]=0,ar[d+8>>2]=0,d=1;else{ks[63&ar[m+12>>2]](n,E),v=0|ar[n>>2];do{if(v)h=0|ar[4+n>>2],k=0|ar[8+n>>2],ar[Z>>2]=0,ar[Z+4>>2]=0,4294967279<(w=(ar[Z+8>>2]=0)|ta(k))>>>0&&Nl(),w>>>0<11?(tr[Z+11>>0]=w)?(d=Z,Y=25):d=Z:(d=0|El(Y=w+16&-16),ar[Z>>2]=d,ar[Z+8>>2]=-2147483648|Y,ar[Z+4>>2]=w,Y=25),25==(0|Y)&&Eu(0|d,0|k,0|w),tr[d+w>>0]=0,Cc(A,v,h,Z),d=((0|tr[Z+11>>0])<0&&Vl(0|ar[Z>>2]),1);else{if(R=0|ar[D>>2],ws[31&ar[m+20>>2]](t,0|ar[E>>2],R,(0|ar[g>>2])-R|0),ar[n>>2]=ar[t>>2],ar[4+n>>2]=ar[t+4>>2],ar[8+n>>2]=ar[t+8>>2],0|ar[n>>2]){if(ds[511&ar[m+16>>2]](0|ar[E>>2]),h=0|ar[n>>2],w=0|ar[4+n>>2],k=0|ar[8+n>>2],ar[C>>2]=0,ar[C+4>>2]=0,4294967279<(v=(ar[C+8>>2]=0)|ta(k))>>>0&&Nl(),v>>>0<11?(tr[C+11>>0]=v)?(d=C,Y=34):d=C:(d=0|El(Y=v+16&-16),ar[C>>2]=d,ar[C+8>>2]=-2147483648|Y,ar[C+4>>2]=v,Y=34),34==(0|Y)&&Eu(0|d,0|k,0|v),tr[d+v>>0]=0,Cc(A,h,w,C),0<=(0|tr[C+11>>0])){d=1;break}Vl(0|ar[C>>2]),d=1;break}ar[t>>2]=0,hs[127&ar[m+24>>2]](p,0|ar[E>>2],t),ar[n>>2]=ar[p>>2],ar[4+n>>2]=ar[p+4>>2],ar[8+n>>2]=ar[p+8>>2];do{if(0|ar[n>>2])ds[511&ar[m+16>>2]](0|ar[E>>2]),h=0|ar[n>>2],w=0|ar[4+n>>2],k=0|ar[8+n>>2],ar[W>>2]=0,ar[W+4>>2]=0,4294967279<(v=(ar[W+8>>2]=0)|ta(k))>>>0&&Nl(),v>>>0<11?(tr[W+11>>0]=v)?(d=W,Y=43):d=W:(d=0|El(Y=v+16&-16),ar[W>>2]=d,ar[W+8>>2]=-2147483648|Y,ar[W+4>>2]=v,Y=43),43==(0|Y)&&Eu(0|d,0|k,0|v),tr[d+v>>0]=0,Cc(A,h,w,W),d=((0|tr[W+11>>0])<0&&Vl(0|ar[W>>2]),1);else{if(!(d=0|ar[t>>2])){if(ds[511&ar[m+16>>2]](0|ar[E>>2]),ar[y>>2]=0,ar[y+4>>2]=0,Cc(A,7,ar[y+8>>2]=0,y),0<=(0|tr[y+11>>0])){d=1;break}Vl(0|ar[y>>2]),d=1;break}R=0|ar[d>>2],N=0|ar[(F=d+4|0)>>2],ar[d>>2]=0,ar[F>>2]=0,ar[i>>2]=R,d=0|ar[(R=i+4|0)>>2],ar[R>>2]=N,0|d&&Il(d),s=0|ar[t>>2],(s|=0)&&(0|(b=0|ar[s+4>>2])&&Il(b),Vl(s)),ds[511&ar[m+16>>2]](0|ar[E>>2]),d=0}}while(0)}}while(0)}if(0|(k=0|ar[D>>2])&&((0|ar[g>>2])!=(0|k)&&(ar[g>>2]=k),Vl(k)),d)break;Y=120;break}}ar[g>>2]=0,ar[g+4>>2]=0,ar[g+8>>2]=0,Cc(A,4,3e3,g),(0|tr[g+11>>0])<0&&Vl(0|ar[g>>2])}else Y=59}while(0);A:do{if(59==(0|Y)){do{if(4==(0|(k<<24>>24<0?d:255&k))){if(0|zl(l,0,-1,27390,4)){k=0|tr[c>>0],d=0|ar[h>>2];break}if(ar[D>>2]=0,ar[(w=D+4|0)>>2]=0,Nc(E,(ar[D+8>>2]=0)|ar[B>>2],r,D),d=0|ar[(h=E)+4>>2],ar[(k=a)>>2]=ar[h>>2],ar[k+4>>2]=d,d=E+8|0,(0|tr[(h=(k=8+a|0)+11|0)>>0])<0?(tr[ar[k>>2]>>0]=0,ar[12+a>>2]=0):(tr[k>>0]=0,tr[h>>0]=0),Ml(k,0),ar[k>>2]=ar[d>>2],ar[k+4>>2]=ar[d+4>>2],ar[k+8>>2]=ar[d+8>>2],0|ar[a>>2]){Q=0|ar[(J=a)+4>>2],ar[(d=A)>>2]=ar[J>>2],ar[d+4>>2]=Q,ar[(d=A+8|0)>>2]=ar[k>>2],ar[d+4>>2]=ar[k+4>>2],ar[d+8>>2]=ar[k+8>>2],ar[k>>2]=0,ar[k+4>>2]=0,(ar[k+8>>2]=0)|(d=0|ar[D>>2])&&((0|ar[w>>2])!=(0|d)&&(ar[w>>2]=d),Vl(d));break A}if(je(E,e,r,i,D),R=0|ar[(N=E)+4>>2],ar[(d=a)>>2]=ar[N>>2],ar[d+4>>2]=R,d=E+8|0,(0|tr[h>>0])<0?(tr[ar[k>>2]>>0]=0,ar[12+a>>2]=0):(tr[k>>0]=0,tr[h>>0]=0),Ml(k,0),ar[k>>2]=ar[d>>2],ar[k+4>>2]=ar[d+4>>2],ar[k+8>>2]=ar[d+8>>2],0|ar[a>>2]){Q=0|ar[(J=a)+4>>2],ar[(d=A)>>2]=ar[J>>2],ar[d+4>>2]=Q,ar[(d=A+8|0)>>2]=ar[k>>2],ar[d+4>>2]=ar[k+4>>2],ar[d+8>>2]=ar[k+8>>2],ar[k>>2]=0,ar[k+4>>2]=0,(ar[k+8>>2]=0)|(d=0|ar[D>>2])&&((0|ar[w>>2])!=(0|d)&&(ar[w>>2]=d),Vl(d));break A}0|(d=0|ar[D>>2])&&((0|ar[w>>2])!=(0|d)&&(ar[w>>2]=d),Vl(d)),Y=120;break A}}while(0);do{if(4==(0|(k<<24>>24<0?d:255&k))){if(0|zl(l,0,-1,27395,4)){k=0|tr[c>>0],d=0|ar[h>>2];break}if(ze(D,e,r,i),k=0|ar[(h=D)+4>>2],ar[(d=a)>>2]=ar[h>>2],ar[d+4>>2]=k,k=D+8|0,(0|tr[(h=(d=8+a|0)+11|0)>>0])<0?(tr[ar[d>>2]>>0]=0,ar[12+a>>2]=0):(tr[d>>0]=0,tr[h>>0]=0),Ml(d,0),ar[d>>2]=ar[k>>2],ar[d+4>>2]=ar[k+4>>2],ar[d+8>>2]=ar[k+8>>2],!(0|ar[a>>2])){Y=120;break A}D=0|ar[(J=a)+4>>2],ar[(Q=A)>>2]=ar[J>>2],ar[Q+4>>2]=D,ar[(A=A+8|0)>>2]=ar[d>>2],ar[A+4>>2]=ar[d+4>>2],ar[A+8>>2]=ar[d+8>>2],ar[d>>2]=0,ar[d+4>>2]=0,ar[d+8>>2]=0;break A}}while(0);if(4==(0|(k<<24>>24<0?d:255&k))&&0==(0|zl(l,0,-1,27400,4))){if(ar[D>>2]=0,ar[(w=D+4|0)>>2]=0,Nc(E,(ar[D+8>>2]=0)|ar[B>>2],r,D),d=0|ar[(h=E)+4>>2],ar[(k=a)>>2]=ar[h>>2],ar[k+4>>2]=d,d=E+8|0,(0|tr[(h=(k=8+a|0)+11|0)>>0])<0?(tr[ar[k>>2]>>0]=0,ar[12+a>>2]=0):(tr[k>>0]=0,tr[h>>0]=0),Ml(k,0),ar[k>>2]=ar[d>>2],ar[k+4>>2]=ar[d+4>>2],ar[k+8>>2]=ar[d+8>>2],0|ar[a>>2]){Q=0|ar[(J=a)+4>>2],ar[(d=A)>>2]=ar[J>>2],ar[d+4>>2]=Q,ar[(d=A+8|0)>>2]=ar[k>>2],ar[d+4>>2]=ar[k+4>>2],ar[d+8>>2]=ar[k+8>>2],ar[k>>2]=0,ar[k+4>>2]=0,(ar[k+8>>2]=0)|(d=0|ar[D>>2])&&((0|ar[w>>2])!=(0|d)&&(ar[w>>2]=d),Vl(d));break}if(Pe(E,e,r,i,D),R=0|ar[(N=E)+4>>2],ar[(d=a)>>2]=ar[N>>2],ar[d+4>>2]=R,d=E+8|0,(0|tr[h>>0])<0?(tr[ar[k>>2]>>0]=0,ar[12+a>>2]=0):(tr[k>>0]=0,tr[h>>0]=0),Ml(k,0),ar[k>>2]=ar[d>>2],ar[k+4>>2]=ar[d+4>>2],ar[k+8>>2]=ar[d+8>>2],0|ar[a>>2]){Q=0|ar[(J=a)+4>>2],ar[(d=A)>>2]=ar[J>>2],ar[d+4>>2]=Q,ar[(d=A+8|0)>>2]=ar[k>>2],ar[d+4>>2]=ar[k+4>>2],ar[d+8>>2]=ar[k+8>>2],ar[k>>2]=0,ar[k+4>>2]=0,(ar[k+8>>2]=0)|(d=0|ar[D>>2])&&((0|ar[w>>2])!=(0|d)&&(ar[w>>2]=d),Vl(d));break}0|(d=0|ar[D>>2])&&((0|ar[w>>2])!=(0|d)&&(ar[w>>2]=d),Vl(d)),Y=120;break}ar[w>>2]=0,ar[w+4>>2]=0,ar[w+8>>2]=0,Cc(A,4,3001,w),(0|tr[w+11>>0])<0&&Vl(0|ar[w>>2])}}while(0);do{if(120==(0|Y)){if(0|(h=0|ar[(v=e+32|0)>>2])){d=v,w=h;A:for(;;){for(k=w;!((0|ar[k+16>>2])>>>0>=r>>>0);)if(!(k=0|ar[k+4>>2]))break A;if(!(w=0|ar[k>>2])){d=k;break}d=k}if((0|d)!=(0|v)&&(0|ar[d+16>>2])>>>0<=r>>>0){d=v;A:for(;;){for(k=h;!((0|ar[k+16>>2])>>>0>=r>>>0);)if(!(k=0|ar[k+4>>2]))break A;if(!(h=0|ar[k>>2])){d=k;break}d=k}if((0|d)!=(0|v)&&(0|ar[d+16>>2])>>>0<=r>>>0||(d=v),k=0|ar[d+20>>2],(p=0==(0|(m=0|ar[d+24>>2])))||Cl(m),d=0|ar[k+60>>2],(g=0==(0|(v=0|ar[k+64>>2])))||Cl(v),d?(ar[D>>2]=0,He(A,d,D,99,99,ar[(w=D+4|0)>>2]=0),k=0|ar[A>>2]?1:(d=0|ar[i>>2],ar[I>>2]=ar[D>>2],k=I+4|0,h=0|ar[w>>2],0|(ar[k>>2]=h)&&Cl(h),Tc(d,I,0,6),0|(d=0|ar[k>>2])&&Il(d),(0|tr[(d=A+8|0)+11>>0])<0&&Vl(0|ar[d>>2]),0),0|(d=0|ar[w>>2])&&Il(d),k?d=1:Y=149):Y=149,149==(0|Y)&&(d=0),g||Il(v),p||Il(m),0|d)break}}if(0==(0|f)||0==(0|tr[f>>0])){ar[D>>2]=0,ar[(R=D+4|0)>>2]=0,d=(ar[D+8>>2]=0)|ar[B>>2],k=0|ar[d+32>>2],(N=0==(0|(F=0|ar[d+36>>2])))||(Cl(F),d=0|ar[B>>2]),ar[E>>2]=ar[d+40>>2],_=E+4|0,d=0|ar[d+44>>2],0|(ar[_>>2]=d)&&Cl(d),lc(n,k,r,E,D),d=0|ar[(X=n)+4>>2],ar[(V=a)>>2]=ar[X>>2],ar[V+4>>2]=d,d=8+n|0,(0|tr[(X=(V=8+a|0)+11|0)>>0])<0?(tr[ar[V>>2]>>0]=0,ar[12+a>>2]=0):(tr[V>>0]=0,tr[X>>0]=0),Ml(V,0),ar[V>>2]=ar[d>>2],ar[V+4>>2]=ar[d+4>>2],ar[V+8>>2]=ar[d+8>>2],d=0|ar[D>>2],Z=0|ar[R>>2];A:do{if((0|d)!=(0|Z)){e=12+a|0,I=i+4|0,f=A+8|0,B=11+o|0,r=8+n|0,E=C=4+n|0,G=W=t+8|0;e:for(;;){k=0|ar[(v=d+4|0)>>2];do{if(k){if(h=0|lu(k,104,616,0)){(k=0|ar[d+8>>2])?Cl(k):k=0,ar[n>>2]=0,Hc(t,(ar[E>>2]=0)|ar[i>>2],0|ar[h+56>>2],n),p=0|ar[(m=t)+4>>2],ar[(y=a)>>2]=ar[m>>2],ar[y+4>>2]=p,(0|tr[X>>0])<0?(tr[ar[V>>2]>>0]=0,ar[e>>2]=0):(tr[V>>0]=0,tr[X>>0]=0),Ml(V,0),ar[V>>2]=ar[G>>2],ar[V+4>>2]=ar[G+4>>2],ar[V+8>>2]=ar[G+8>>2];do{if(0|ar[a>>2])y=0|ar[(p=a)+4>>2],ar[(h=A)>>2]=ar[p>>2],ar[h+4>>2]=y,ar[f>>2]=ar[V>>2],ar[f+4>>2]=ar[V+4>>2],ar[f+8>>2]=ar[V+8>>2],ar[V>>2]=0,ar[V+4>>2]=0,ar[V+8>>2]=0,h=1;else{if(h=0|ar[n>>2],0|(w=0|ar[E>>2])&&Cl(w),ar[i>>2]=h,h=0|ar[I>>2],ar[I>>2]=w,!h){h=0;break}Il(h),h=0}}while(0);if(0|(w=0|ar[E>>2])&&Il(w),h){h=1;break}y=k}else y=0;if(k=0|ar[v>>2]){if(h=0|lu(k,104,584,0)){if((k=0|ar[d+8>>2])?Cl(k):k=0,xc(n,0|ar[i>>2],1==(0|tr[h+56>>0])),p=0|ar[(m=n)+4>>2],ar[(Y=a)>>2]=ar[m>>2],ar[Y+4>>2]=p,(0|tr[X>>0])<0?(tr[ar[V>>2]>>0]=0,ar[e>>2]=0):(tr[V>>0]=0,tr[X>>0]=0),Ml(V,0),ar[V>>2]=ar[r>>2],ar[V+4>>2]=ar[r+4>>2],ar[V+8>>2]=ar[r+8>>2],0|ar[a>>2]){w=0|ar[(Y=a)+4>>2],ar[(h=A)>>2]=ar[Y>>2],ar[h+4>>2]=w,ar[f>>2]=ar[V>>2],ar[f+4>>2]=ar[V+4>>2],ar[f+8>>2]=ar[V+8>>2],ar[V>>2]=0,ar[V+4>>2]=0,ar[V+8>>2]=0,h=1,w=k,k=y,Y=218;break}p=k}else p=0;if(0!=(0|(k=0|ar[v>>2]))&&0!=(0|(J=0|lu(k,104,552,0)))){if((k=0|ar[d+8>>2])?Cl(k):k=0,v=0|ar[i>>2],h=0|ar[v+24>>2],v=0|ar[v+28>>2],(0|h)<=-1){Y=197;break e}if((0|v)<=-1){Y=199;break e}if(!((0|(g=0<(0|(g=0|bc(J,h)))?g:0))<(0|(w=(0|(w=0|dc(J,h)))<(0|h)?w:h+-1|0))&(0|(m=0<(0|(m=0|kc(J,v)))?m:0))<(0|(h=(0|(Y=0|hc(J,v)))<(0|v)?Y:v+-1|0)))){if(ar[o>>2]=0,ar[4+o>>2]=0,ar[8+o>>2]=0,Cc(A,2,120,o),0<=(0|tr[B>>0])){h=1,v=k,w=p,k=y,Y=216;break}Vl(0|ar[o>>2]),h=1,v=k,w=p,k=y,Y=216;break}ar[n>>2]=0,jc(t,(ar[C>>2]=0)|ar[i>>2],g,w,m,h,n),m=0|ar[(g=t)+4>>2],ar[(Y=a)>>2]=ar[g>>2],ar[Y+4>>2]=m,(0|tr[X>>0])<0?(tr[ar[V>>2]>>0]=0,ar[e>>2]=0):(tr[V>>0]=0,tr[X>>0]=0),Ml(V,0),ar[V>>2]=ar[W>>2],ar[V+4>>2]=ar[W+4>>2],ar[V+8>>2]=ar[W+8>>2];do{if(0|ar[a>>2])Y=0|ar[(m=a)+4>>2],ar[(h=A)>>2]=ar[m>>2],ar[h+4>>2]=Y,ar[f>>2]=ar[V>>2],ar[f+4>>2]=ar[V+4>>2],ar[f+8>>2]=ar[V+8>>2],ar[V>>2]=0,ar[V+4>>2]=0,ar[V+8>>2]=0,h=1;else{if(h=0|ar[n>>2],0|(w=0|ar[C>>2])&&Cl(w),ar[i>>2]=h,h=0|ar[I>>2],ar[I>>2]=w,!h){h=0;break}Il(h),h=0}}while(0);0|(w=0|ar[C>>2])&&Il(w),Y=h?(h=1,v=k,w=p,k=y,216):(v=k,w=p,k=y,215)}else v=0,w=p,k=y,Y=215}else w=v=0,k=y,Y=215}else k=w=v=0,Y=215}while(0);if(215==(0|Y)&&(h=0,Y=216),216==(0|Y)&&(Y=(v&&Il(v),218)),218==(0|Y)&&(Y=0,w&&Il(w)),0|k&&Il(k),d=d+12|0,0|h){Q=h;break A}if((0|d)==(0|Z)){Q=2;break A}}197==(0|Y)?br(27405,26753,776,27420):199==(0|Y)&&br(27433,26753,777,27420)}else Q=2}while(0);if(0|(d=0|ar[_>>2])&&Il(d),N||Il(F),0|(d=0|ar[D>>2])){if((0|(k=0|ar[R>>2]))!=(0|d)){for(;h=k+-12|0,ar[R>>2]=h,(0|(k=(k=0|ar[k+-4>>2])?(Il(k),0|ar[R>>2]):h))!=(0|d););d=0|ar[D>>2]}Vl(d)}if(2!=(2|Q))break}D=0|ar[(J=49920)+4>>2],ar[(Q=A)>>2]=ar[J>>2],ar[Q+4>>2]=D,Rl(A+8|0,49928)}}while(0);(0|tr[(d=8+a|0)+11>>0])<0&&Vl(0|ar[d>>2]),ur=(0<=(0|tr[c>>0])||Vl(0|ar[l>>2]),u)}function je(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0;var n,t,o,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0,X=0,_=0,F=0,N=0,R=0,Y=0,J=0,D=0;if(ur=(o=ur)+240|0,N=o+220|0,l=o+16|0,t=o+196|0,R=o+32|0,b=o+4|0,function(A,e,r){A|=0,e|=0;var i,f=0,n=0,t=0,o=0;if(ur=(i=ur)+32|0,t=i+12|0,o=i,n=0|ar[(r|=0)>>2],(r=(0|ar[r+4>>2])-n|0)>>>0<8){for(r=0|El(32),ar[t>>2]=r,ar[t+8>>2]=-2147483616,n=26567,e=(f=r)+(ar[t+4>>2]=25)|0;tr[f>>0]=0|tr[n>>0],n=n+1|0,(0|(f=f+1|0))<(0|e););return(tr[r+25>>0]=0,Cc(A,2,118,t),0<=(0|tr[t+11>>0]))?ur=i:(Vl(0|ar[t>>2]),ur=i)}t=0==(1&tr[n+1>>0]),or[e>>1]=1+(0|cr[n+2>>0]),or[e+2>>1]=1+(0|cr[n+3>>0]);do{if(!t){if(12<=r>>>0){ar[e+4>>2]=cr[n+5>>0]<<16|cr[n+4>>0]<<24|cr[n+6>>0]<<8|cr[n+7>>0],r=11,f=cr[n+9>>0]<<16|cr[n+8>>0]<<24|cr[n+10>>0]<<8;break}for(r=0|El(32),ar[o>>2]=r,ar[o+8>>2]=-2147483616,n=26593,e=(f=r)+(ar[o+4>>2]=26)|0;tr[f>>0]=0|tr[n>>0],n=n+1|0,(0|(f=f+1|0))<(0|e););return(tr[r+26>>0]=0,Cc(A,2,118,o),0<=(0|tr[o+11>>0]))?ur=i:(Vl(0|ar[o>>2]),ur=i)}ar[e+4>>2]=cr[n+4>>0]<<8|cr[n+5>>0],r=7,f=cr[n+6>>0]<<8}while(0);ar[e+8>>2]=cr[n+r>>0]|f,t=0|ar[(e=49920)+4>>2],ar[(o=A)>>2]=ar[e>>2],ar[o+4>>2]=t,Rl(A+8|0,49928),ur=i}(J=(n=o)+176|0,a=o+208|0,f|=0),(0|tr[(f=J+8|0)+11>>0])<0&&Vl(0|ar[f>>2]),Y=0|ar[e+60>>2],f=0|ar[Y+64>>2],(J=0==(0|(Y=0|ar[Y+68>>2])))||Cl(Y),f){mc(t,f,r),F=4+t|0,V=65535&(u=0|or[a>>1]),s=0|or[a+2>>1],l=0|sr(X=65535&s,V);A:do{if(((0|ar[F>>2])-(0|ar[t>>2])>>2|0)==(0|l)){G=0|ar[a+4>>2],E=0|ar[a+8>>2],Ye(N),B=0|ar[N>>2],I=0|ar[(f=N+4|0)>>2],ar[N>>2]=0,ar[f>>2]=0,ar[i>>2]=B,r=0|ar[(B=i+4|0)>>2],ar[B>>2]=I,0|r&&(Il(r),0|(c=0|ar[f>>2]))&&Il(c),Yc(0|ar[i>>2],G,E,0,1),Jc(0|ar[i>>2],0,G,E,8),I=(0|G)/2|0,B=(0|E)/2|0,Jc(0|ar[i>>2],1,I,B,8),Jc(0|ar[i>>2],2,I,B,8);e:do{if(u<<16>>16){I=s<<16>>16==0,B=N+4|0,W=(C=A+8|0)+11|0,Z=f=y=0;r:for(;;){if(I)r=0;else{m=E-y|0,p=(0|y)/2|0,c=r=g=0;do{ar[N>>2]=0,xe(A,e,(ar[B>>2]=0)|ar[(0|ar[t>>2])+(f<<2)>>2],N,0);do{if((0|ar[A>>2])==(0|ar[12480])){if(d=0|ar[N>>2],h=0|ar[d+24>>2],r=0|ar[d+28>>2],(0|h)<=-1){f=28;break r}if((0|r)<=-1){f=31;break r}if(w=(0|(u=(0|(u=G-c|0))<(0|h)?u:h))/2|0,v=(0|(b=(0|m)<(0|r)?m:r))/2|0,k=(0|c)/2|0,s=0|Qc(d,0,R),a=0|Qc(0|ar[i>>2],0,n),0<(0|b))for(l=a+c|0,a=0;Eu(0|(D=l+(0|sr(0|ar[n>>2],a+y|0))|0),s+(0|sr(0|ar[R>>2],a))|0,0|u),(0|(a=a+1|0))!=(0|b););if(u=0|Qc(d,1,R),a=0|Qc(0|ar[i>>2],1,n),s=1<(0|b))for(l=a+k|0,a=0;Eu(0|(D=l+(0|sr(0|ar[n>>2],a+p|0))|0),u+(0|sr(0|ar[R>>2],a))|0,0|w),(0|(a=a+1|0))!=(0|v););if(u=0|Qc(d,2,R),a=0|Qc(0|ar[i>>2],2,n),s)for(l=a+k|0,a=0;Eu(0|(D=l+(0|sr(0|ar[n>>2],a+p|0))|0),u+(0|sr(0|ar[R>>2],a))|0,0|w),(0|(a=a+1|0))!=(0|v););if(a=h+c|0,f=f+1|0,0<=(0|tr[W>>0])){l=0,c=a;break}Vl(0|ar[C>>2]),l=0,c=a}else l=1}while(0);if(0|(a=0|ar[B>>2])&&Il(a),g=g+1|0,0|l)break A}while((0|g)<(0|X))}if((0|V)<=(0|(Z=Z+1|0))){_=C;break e}y=r+y|0}28==(0|f)?br(27773,26753,879,27788):31==(0|f)&&br(27811,26753,880,27788)}else _=A+8|0}while(0);R=0|ar[(N=49920)+4>>2],ar[(D=A)>>2]=ar[N>>2],ar[D+4>>2]=R,Rl(_,49928)}else r=R+64|0,ar[(c=R+8|0)>>2]=4080,a=R+12|0,ar[R>>2]=164,ar[r>>2]=184,Yi(R+64|(ar[R+4>>2]=0),a),ar[R+136>>2]=0,ar[R+140>>2]=-1,ar[R>>2]=4060,ar[r>>2]=4100,ar[c>>2]=4080,Ti(a),ar[a>>2]=3908,ar[(c=R+44|0)>>2]=0,ar[c+4>>2]=0,ar[c+8>>2]=0,ar[c+12>>2]=0,ar[R+60>>2]=24,ar[N>>2]=0,ar[N+4>>2]=0,ar[N+8>>2]=0,Of(a,N),(0|tr[N+11>>0])<0&&Vl(0|ar[N>>2]),D=0|Hf(0|Ki(0|Hf(0|Li(0|Hf(0|Li(0|Hf(f=R+8|0,27714,17),u),26704,1),s),27732,1),l),27734,17),Hf(0|qi(D,(0|ar[F>>2])-(0|ar[t>>2])>>2),27752,20),jf(b,a),Cc(A,2,119,b),(0|tr[b+11>>0])<0&&Vl(0|ar[b>>2]),ar[R>>2]=4060,ar[r>>2]=4100,ar[f>>2]=4080,ar[a>>2]=3908,(0|tr[c+11>>0])<0&&Vl(0|ar[c>>2]),si(a),_i(),ci(r)}while(0);0|(f=0|ar[t>>2])&&((0|(r=0|ar[F>>2]))!=(0|f)&&(ar[F>>2]=r+(~((r+-4-f|0)>>>2)<<2)),Vl(f))}else{for(ar[l>>2]=0,ar[l+4>>2]=0,f=(ar[l+8>>2]=0)|El(64),ar[l>>2]=f,ar[l+8>>2]=-2147483584,a=27665,c=(r=f)+(ar[l+4>>2]=48)|0;tr[r>>0]=0|tr[a>>0],a=a+1|0,(0|(r=r+1|0))<(0|c););tr[f+48>>0]=0,Cc(A,2,113,l),(0|tr[l+11>>0])<0&&Vl(0|ar[l>>2])}ur=(J||Il(Y),o)}function ze(A,e,r,i){A|=0,r|=0,i|=0;var f,n,t,o,a=0,c=0,l=0,u=0;if(ur=(o=ur)+64|0,c=o+32|0,n=o+44|0,l=o+20|0,f=o,u=0|ar[(e|=0)+60>>2],a=0|ar[u+64>>2],(t=0==(0|(u=0|ar[u+68>>2])))||Cl(u),a){if(mc(n,a,r),c=4+n|0,a=0|ar[n>>2],4!=((0|ar[c>>2])-a|0)){for(ar[l>>2]=0,ar[l+4>>2]=0,a=(ar[l+8>>2]=0)|El(48),ar[l>>2]=a,ar[l+8>>2]=-2147483600,e=27617,i=(r=a)+(ar[l+4>>2]=47)|0;tr[r>>0]=0|tr[e>>0],e=e+1|0,(0|(r=r+1|0))<(0|i););tr[a+47>>0]=0,Cc(A,2,119,l),(0|tr[l+11>>0])<0&&Vl(0|ar[l>>2])}else xe(f,e,0|ar[a>>2],i,0),i=0|ar[(e=f)+4>>2],ar[(l=A)>>2]=ar[e>>2],ar[l+4>>2]=i,l=f+8|0,ar[(A=A+8|0)>>2]=ar[l>>2],ar[A+4>>2]=ar[l+4>>2],ar[A+8>>2]=ar[l+8>>2];0|(a=0|ar[n>>2])&&((0|(r=0|ar[c>>2]))!=(0|a)&&(ar[c>>2]=r+(~((r+-4-a|0)>>>2)<<2)),Vl(a))}else{for(ar[c>>2]=0,ar[c+4>>2]=0,a=(ar[c+8>>2]=0)|El(64),ar[c>>2]=a,ar[c+8>>2]=-2147483584,e=27568,i=(r=a)+(ar[c+4>>2]=48)|0;tr[r>>0]=0|tr[e>>0],e=e+1|0,(0|(r=r+1|0))<(0|i););tr[a+48>>0]=0,Cc(A,2,113,c),(0|tr[c+11>>0])<0&&Vl(0|ar[c>>2])}ur=(t||Il(u),o)}function Pe(A,e,r,i,f){A|=0,r|=0,i|=0,f|=0;var n,t,o,a,c,l,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0;if(ur=(l=ur)+160|0,b=l+136|0,a=l+148|0,k=l+104|0,s=l+80|0,h=l+56|0,W=l+24|0,n=l+72|0,o=(t=l)+44|0,G=0|ar[(e|=0)+60>>2],u=0|ar[G+64>>2],(c=0==(0|(G=0|ar[G+68>>2])))||Cl(G),u){if(mc(a,u,r),ar[(I=k+20|0)>>2]=0,ar[(B=k+24|0)>>2]=0,function(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f,n,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0;for(ur=(n=ur)+208|0,u=n+188|0,t=(f=n)+176|0,s=n+32|0,b=n+20|0,o=0|El(32),ar[t>>2]=o,ar[t+8>>2]=-2147483616,c=26622,l=(a=o)+(ar[t+4>>2]=29)|0;tr[a>>0]=0|tr[c>>0],c=c+1|0,(0|(a=a+1|0))<(0|l););tr[o+29>>0]=0,Cc(f,2,118,t),(0|tr[t+11>>0])<0&&Vl(0|ar[t>>2]),l=0|ar[i>>2],o=(0|ar[i+4>>2])-l|0;do{if(o>>>0<10)w=0|ar[(i=f)+4>>2],ar[(r=A)>>2]=ar[i>>2],ar[r+4>>2]=w,r=A+8|0,A=f+8|0,ar[r>>2]=ar[A>>2],ar[r+4>>2]=ar[A+4>>2],ar[r+8>>2]=ar[A+8>>2],ar[A>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0;else{if(w=0|tr[l>>0],tr[e>>0]=w,t=0|tr[l+1>>0],tr[e+1>>0]=t,w<<24>>24){t=s+64|0,ar[(a=s+8|0)>>2]=4080,o=s+12|0,ar[s>>2]=164,ar[t>>2]=184,Yi(s+64|(ar[s+4>>2]=0),o),ar[s+136>>2]=0,ar[s+140>>2]=-1,ar[s>>2]=4060,ar[t>>2]=4100,ar[a>>2]=4080,Ti(o),ar[o>>2]=3908,ar[(a=s+44|0)>>2]=0,ar[a+4>>2]=0,ar[a+8>>2]=0,ar[a+12>>2]=0,ar[s+60>>2]=24,ar[u>>2]=0,ar[u+4>>2]=0,ar[u+8>>2]=0,Of(o,u),(0|tr[u+11>>0])<0&&Vl(0|ar[u>>2]),r=0|Hf(c=s+8|0,26652,27),tr[u>>0]=0|tr[e>>0],Hf(0|Hf(r,u,1),26680,23),jf(b,o),Cc(A,4,3002,b),(0|tr[b+11>>0])<0&&Vl(0|ar[b>>2]),ar[s>>2]=4060,ar[t>>2]=4100,ar[c>>2]=4080,ar[o>>2]=3908,(0|tr[a+11>>0])<0&&Vl(0|ar[a>>2]),si(o),_i(),ci(t);break}if(((10+((u=(s=t<<1&2)+2<<24>>24)<<1&255)&255)+(0|sr(r<<1,w=255&u))|0)>>>0>o>>>0){w=0|ar[(i=f)+4>>2],ar[(r=A)>>2]=ar[i>>2],ar[r+4>>2]=w,r=A+8|0,A=f+8|0,ar[r>>2]=ar[A>>2],ar[r+4>>2]=ar[A+4>>2],ar[r+8>>2]=ar[A+8>>2],ar[A>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0;break}for(or[e+2>>1]=cr[l+3>>0]|cr[l+2>>0]<<8,or[e+4>>1]=cr[l+5>>0]|cr[l+4>>0]<<8,or[e+6>>1]=cr[l+7>>0]|cr[l+6>>0]<<8,or[e+8>>1]=cr[l+9>>0]|cr[l+8>>0]<<8,a=255&s,t=0,o=w,c=10;o=o+-1|0,t=cr[l+c>>0]|t<<8,o;)c=c+1|0;for(k=12|a,ar[e+12>>2]=t,o=k+a|0,c=0,t=w,a=k;t=t+-1|0,c=cr[l+a>>0]|c<<8,t;)a=a+1|0;if(l=o+2|0,ar[e+16>>2]=c,k=e+20|0,r>>>0<=(o=(c=0|ar[(t=e+24|0)>>2])-(a=0|ar[k>>2])>>3)>>>0?(r>>>0<o>>>0&&(0|c)!=(0|(d=a+(r<<3)|0))&&(ar[t>>2]=c+(~((c+-8-d|0)>>>3)<<3)),0|r&&(h=25)):(De(k,r-o|0),h=25),25==(0|h))for(d=~(e=128<<(u<<3&255)-8),b=4+(s<<1&255)&255,s=0|ar[i>>2],u=0;;){for(a=0,t=w,o=l;t=t+-1|0,a=cr[s+o>>0]|a<<8,t;)o=o+1|0;for(c=0|ar[k>>2],ar[c+(u<<3)>>2]=(a&d)-(0==(a&e|0)?0:e),a=(o=w)+l|(t=0);o=o+-1|0,t=cr[s+a>>0]|t<<8,o;)a=a+1|0;if(ar[c+(u<<3)+4>>2]=(t&d)-(0==(t&e|0)?0:e),(0|(u=u+1|0))==(0|r))break;l=b+l|0}w=0|ar[(i=49920)+4>>2],ar[(r=A)>>2]=ar[i>>2],ar[r+4>>2]=w,Rl(A+8|0,49928)}}while(0);ur=(0<=(0|tr[(t=f+8|0)+11>>0])||Vl(0|ar[t>>2]),n)}(s,k,((ar[k+28>>2]=0)|ar[(E=4+a|0)>>2])-(0|ar[a>>2])>>2,f),(0|tr[(u=s+8|0)+11>>0])<0&&Vl(0|ar[u>>2]),y=k+20|0,((0|ar[E>>2])-(0|ar[a>>2])>>2|0)!=((0|ar[B>>2])-(0|ar[y>>2])>>3|0)){for(ar[h>>2]=0,ar[h+4>>2]=0,u=(ar[h+8>>2]=0)|El(80),ar[h>>2]=u,ar[h+8>>2]=-2147483568,f=27498,s=(r=u)+(ar[h+4>>2]=69)|0;tr[r>>0]=0|tr[f>>0],f=f+1|0,(0|(r=r+1|0))<(0|s););tr[u+69>>0]=0,Cc(A,2,121,h),(0|tr[h+11>>0])<0&&Vl(0|ar[h>>2])}else{u=0|ar[k+12>>2],r=0|ar[k+16>>2],Ye(W),p=0|ar[W>>2],m=0|ar[(f=W+4|0)>>2],ar[W>>2]=0,ar[f>>2]=0,ar[i>>2]=p,s=0|ar[(p=i+4|0)>>2],ar[p>>2]=m,0|s&&(Il(s),0|(d=0|ar[f>>2]))&&Il(d),Yc(0|ar[i>>2],u,r,1,3),Jc(0|ar[i>>2],3,u,r,8),Jc(0|ar[i>>2],4,u,r,8),Jc(0|ar[i>>2],5,u,r,8),function(A,e,r,i,f,n){A|=0;var t,o,a,c,l,u,s=0,b=0,d=0,k=0;ur=(u=ur)+32|0,b=u+12|0,k=u,l=44+(e|=0)|0,c=(65535&(i|=0))>>>8&255,a=(65535&(r|=0))>>>8&255,o=(65535&(f|=0))>>>8&255,t=(65535&(n|=0))>>>8&255,n=5440;A:for(;;){if(e=0|ar[l>>2],s=0|ar[n>>2],e){r=l,i=e;e:for(;;){for(e=i;!((0|ar[e+16>>2])>=(0|s));)if(!(e=0|ar[e+4>>2])){e=r;break e}if(!(i=0|ar[e>>2]))break;r=e}if((0|e)!=(0|l)&&(0|s)>=(0|ar[e+16>>2])){if(8!=(0|ar[e+28>>2])){d=13;break}switch(r=0|ar[e+24>>2],f=0|ar[e+44>>2],i=0|ar[e+32>>2],0|s){case 3:e=a;break;case 4:e=c;break;case 5:e=o;break;case 6:e=t;break;default:d=19;break A}Vu(0|i,0|e,0|sr(f,r))}else d=9}else d=9;if(9==(0|d)&&6!=((d=0)|s)){d=10;break}if(5456==(0|(n=n+4|0))){d=22;break}}{if(10==(0|d))return ar[b>>2]=0,ar[b+4>>2]=0,ar[b+8>>2]=0,Cc(A,5,2002,b),0<=(0|tr[b+11>>0])||Vl(0|ar[b>>2]),ur=u;if(13==(0|d)){for(e=0|El(64),ar[k>>2]=e,ar[k+8>>2]=-2147483584,ar[k+4>>2]=52,r=22275,f=(i=e)+52|0;tr[i>>0]=0|tr[r>>0],r=r+1|0,(0|(i=i+1|0))<(0|f););return(tr[e+52>>0]=0,Cc(A,4,0,k),0<=(0|tr[k+11>>0]))?ur=u:(Vl(0|ar[k>>2]),ur=u)}if(19==(0|d))br(49065,22121,610,22328);else if(22==(0|d))d=0|ar[(b=49920)+4>>2],ar[(k=A)>>2]=ar[b>>2],ar[k+4>>2]=d,Rl(A+8|0,49928),ur=u}}(W,0|ar[i>>2],0|or[k+2>>1],0|or[k+4>>1],0|or[k+6>>1],0|or[k+8>>1]);A:do{if(0|ar[W>>2])C=0|ar[(i=W)+4>>2],ar[(V=A)>>2]=ar[i>>2],ar[V+4>>2]=C,V=W+8|0,ar[(A=A+8|0)>>2]=ar[V>>2],ar[A+4>>2]=ar[V+4>>2],ar[A+8>>2]=ar[V+8>>2],ar[V>>2]=0,ar[V+4>>2]=0,ar[V+8>>2]=0;else{f=0|ar[a>>2];e:do{if((0|ar[E>>2])!=(0|f)){d=4+n|0,h=(u=W+8|0)+11|0,w=W+12|0,v=t+4|0,g=11+o|0,m=k=t+8|0,r=A+8|0,p=W+4|0,b=0;r:for(;;){ar[n>>2]=0,xe(t,e,(ar[d>>2]=0)|ar[f+(b<<2)>>2],n,0),f=0|ar[(V=t)+4>>2],ar[(s=W)>>2]=ar[V>>2],ar[s+4>>2]=f,(0|tr[h>>0])<0?(tr[ar[u>>2]>>0]=0,ar[w>>2]=0):(tr[u>>0]=0,tr[h>>0]=0),Ml(u,0),ar[u>>2]=ar[k>>2],ar[u+4>>2]=ar[k+4>>2],ar[u+8>>2]=ar[k+8>>2];i:do{if((0|ar[W>>2])==(0|ar[12480])){if(Mc(t,0|ar[n>>2],1,3),f=0|ar[t>>2],V=0|ar[v>>2],ar[t>>2]=0,ar[v>>2]=0,ar[n>>2]=f,f=0|ar[d>>2],ar[d>>2]=V,0|f&&(Il(f),0|(Z=0|ar[v>>2]))&&Il(Z),!(0|ar[n>>2])){if(ar[o>>2]=0,ar[4+o>>2]=0,ar[8+o>>2]=0,Cc(A,4,3003,o),0<=(0|tr[g>>0])){f=1;break}Vl(0|ar[o>>2]),f=1;break}if(f=V=0|ar[y>>2],(0|ar[B>>2])-V>>3>>>0<=b>>>0){C=32;break r}zc(t,0|ar[i>>2],n,0|ar[f+(b<<3)>>2],0|ar[f+(b<<3)+4>>2]),s=0|ar[(f=t)+4>>2],ar[(V=W)>>2]=ar[f>>2],ar[V+4>>2]=s,(0|tr[h>>0])<0?(tr[ar[u>>2]>>0]=0,ar[w>>2]=0):(tr[u>>0]=0,tr[h>>0]=0),Ml(u,0),ar[u>>2]=ar[m>>2],ar[u+4>>2]=ar[m+4>>2],ar[u+8>>2]=ar[m+8>>2];f:do{switch(0|ar[W>>2]){case 0:f=0;break i;case 2:if(122!=(0|ar[p>>2]))break f;V=0|ar[(s=49920)+4>>2],ar[(f=W)>>2]=ar[s>>2],ar[f+4>>2]=V,Jl(u,49928),f=0;break i}}while(0);V=0|ar[(s=W)+4>>2],ar[(f=A)>>2]=ar[s>>2],ar[f+4>>2]=V,ar[r>>2]=ar[u>>2],ar[r+4>>2]=ar[u+4>>2],ar[r+8>>2]=ar[u+8>>2],ar[u>>2]=0,ar[u+4>>2]=0,ar[u+8>>2]=0,f=1}else V=0|ar[(s=W)+4>>2],ar[(f=A)>>2]=ar[s>>2],ar[f+4>>2]=V,ar[r>>2]=ar[u>>2],ar[r+4>>2]=ar[u+4>>2],ar[r+8>>2]=ar[u+8>>2],ar[u>>2]=0,ar[u+4>>2]=0,ar[u+8>>2]=0,f=1}while(0);if(0|(s=0|ar[d>>2])&&Il(s),b=b+1|0,0|f)break;if(f=0|ar[a>>2],b>>>0>=(0|ar[E>>2])-f>>2>>>0){f=W,s=A;break e}}if(32==(0|C)&&br(26706,26753,271,26769),0<=(0|tr[h>>0]))break A;Vl(0|ar[u>>2]);break A}r=(s=A)+8|0,u=(f=W)+8|0}while(0);A=0|ar[(W=f)+4>>2],ar[(V=s)>>2]=ar[W>>2],ar[V+4>>2]=A,ar[r>>2]=ar[u>>2],ar[r+4>>2]=ar[u+4>>2],ar[r+8>>2]=ar[u+8>>2],ar[u>>2]=0,ar[u+4>>2]=0,ar[u+8>>2]=0}}while(0)}0|(u=0|ar[I>>2])&&((0|(r=0|ar[B>>2]))!=(0|u)&&(ar[B>>2]=r+(~((r+-8-u|0)>>>3)<<3)),Vl(u)),0|(u=0|ar[a>>2])&&((0|(r=0|ar[E>>2]))!=(0|u)&&(ar[E>>2]=r+(~((r+-4-u|0)>>>2)<<2)),Vl(u))}else{for(ar[b>>2]=0,ar[b+4>>2]=0,u=(ar[b+8>>2]=0)|El(64),ar[b>>2]=u,ar[b+8>>2]=-2147483584,f=27449,s=(r=u)+(ar[b+4>>2]=48)|0;tr[r>>0]=0|tr[f>>0],f=f+1|0,(0|(r=r+1|0))<(0|s););tr[u+48>>0]=0,Cc(A,2,113,b),(0|tr[b+11>>0])<0&&Vl(0|ar[b>>2])}ur=(c||Il(G),l)}function Le(A,e,r,i){e|=0,i|=0;var f,n,t,o,a,c=0,l=0,u=0,s=0,b=0,d=0;if(ur=(o=ur)+32|0,t=o+16|0,f=o+12|0,n=o,function(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c,l=0;ur=(t=ur)+16|0,l=t,o=0|El(8),ar[o>>2]=0,ar[(c=4+o|0)>>2]=0,Ye(l),a=0|ar[l>>2],l=0|ar[l+4>>2],ar[o>>2]=a,ar[c>>2]=l,Yc(a,e,r,i,f),ar[n>>2]=o,ar[A>>2]=ar[1468],ar[A+4>>2]=ar[1469],ar[A+8>>2]=ar[1470],ur=t}(A|=0,b=0|rr(r|=0,0),d=0|ir(r,0),0,0|(a=r,0|ar[20+(a|=0)>>2]),t),0|ar[A>>2])ur=o;else{for(s=0;;){if(c=0|fr(r,s),b=0|nr(r,s,f),l=0|rr(r,s),d=0|ir(r,s),e=0|ar[5968+(s<<2)>>2],k=n,h=0|ar[t>>2],w=e,v=l,g=d,m=c,k|=0,w|=0,v|=0,g|=0,m|=0,Jc(0|ar[(h|=0)>>2],w,v,g,m),ar[k>>2]=ar[1468],ar[k+4>>2]=ar[1469],ar[k+8>>2]=ar[1470],ar[A>>2]=ar[n>>2],ar[A+4>>2]=ar[n+4>>2],ar[A+8>>2]=ar[n+8>>2],0|ar[A>>2]){e=8;break}if(u=0|Je(0|ar[t>>2],e,n),0<(0|d))for(c=0|sr(l,(c+7|0)/8|0),e=0;Eu(0|(l=u+(0|sr(0|ar[n>>2],e))|0),b+(0|sr(0|ar[f>>2],e))|0,0|c),(0|(e=e+1|0))!=(0|d););if(3<=(0|(s=s+1|0))){e=9;break}}var k,h,w,v,g,m;if(8!=(0|e))return 9==(0|e)&&(ar[i>>2]=ar[t>>2],void(ur=o));ur=o}}function Ke(A,e){return 0|function(A,e){e|=0;var r,i,f,n,t,o=0,a=0,c=0;ur=(t=ur)+16|0,n=t,a=548+(A|=0)|0,i=0==(0|ar[(r=A+580|0)>>2]),f=0|tr[a>>0];do{if(i){if(f<<24>>24==0&&0==(0|tr[A+549>>0])){c=8;break}if((0|ar[A+377216>>2])==(0|ar[A+377220>>2]))return no(A+376148|0),ur=(e&&(ar[e>>2]=ar[A+376200>>2]),t),(c=0)|c;c=7}else c=7}while(0);7==(0|c)&&f<<24>>24==0&&(c=8);if(8==(0|c)&&!(0!=(0|tr[A+549>>0])|1^i))return ur=(e&&(ar[e>>2]=1),t),0|(c=13);if(!(0|$t(A+376148|0,0)))return ur=(e&&(ar[e>>2]=1),t),0|(c=9);tr[n>>0]=0;do{if(0|ar[r>>2]){if(a=0|Bo(a)){o=0|Ot(A,a),tr[n>>0]=1,c=23;break}br(28452,28026,1314,28456)}else{if(0|tr[A+549>>0]&&(0|ar[A+377216>>2])==(0|ar[A+377220>>2])){if(!e){o=13;break}ar[e>>2]=1,o=13;break}o=0|Xr(A,n),c=23}}while(0);23==(0|c)&&e&&(ar[e>>2]=0==(0|o)&0!=(1&tr[n>>0])&1);return ur=t,0|(c=o)}(A|=0,e|=0)}function qe(A,e,r,i,f,n){return 0|function(A,e,r,i,f,n){e|=0,r|=0,i|=0,f|=0,n|=0;var t,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0;ur=(t=ur)+16|0,d=t,0|ar[8+(A|=0)>>2]&&br(30182,30208,375,30222);tr[A+1>>0]=0,k=0|function(A,e){e|=0;var r,i,f,n,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;if(ur=(n=ur)+16|0,i=n,f=40+(A|=0)|0,(0|(t=0|ar[(b=A+44|0)>>2]))==(0|ar[f>>2])){for(t=0|El(48),tr[t>>0]=0,tr[t+1>>0]=0,tr[t+2>>0]=0,ar[(a=t+32|0)>>2]=0,ar[(o=t+36|0)>>2]=0,ar[(l=t+40|0)>>2]=0,c=0|El(64),ar[a>>2]=c,a=c+64|0,ar[l>>2]=a,l=c+64|0;((ar[c>>2]=0)|(c=c+4|0))<(0|l););ar[o>>2]=a,ar[(s=t+8|0)>>2]=0,ar[s+4>>2]=0,ar[s+8>>2]=0,ar[s+12>>2]=0,ar[s+16>>2]=0,ar[s+20>>2]=0,s=t}else s=0|ar[(u=t+-4|0)>>2],ar[b>>2]=u;tr[s>>0]=0,tr[s+1>>0]=0,tr[s+2>>0]=0,ar[(l=s+8|0)>>2]=0,ar[l+4>>2]=0,ar[s+16>>2]=0,ar[(l=s+24|0)>>2]=0,t=0|ar[(r=s+32|0)>>2],(0|(o=0|ar[(u=s+36|0)>>2]))!=(0|t)&&(ar[u>>2]=o+(~((o+-4-t|0)>>>2)<<2));if((0|ar[(a=s+28|0)>>2])>=(0|e))return ur=n,0|(b=s);if(0|(c=0|qo(e)))return 0|(o=0|ar[(t=s+20|0)>>2])&&(Eu(0|c,0|o,0|ar[l>>2]),$o(o)),ar[t>>2]=c,ar[a>>2]=e,ur=n,0|(b=s);ar[i>>2]=s,t=s,o=0|ar[b>>2];do{if(o-(0|ar[f>>2])>>2>>>0<16){if((0|o)==(0|ar[A+48>>2])){Io(f,i);break}ar[o>>2]=t,ar[b>>2]=4+(0|ar[b>>2]);break}$o(0|ar[s+20>>2]),0|(t=0|ar[r>>2])&&((0|(o=0|ar[u>>2]))!=(0|t)&&(ar[u>>2]=o+(~((o+-4-t|0)>>>2)<<2)),Vl(t)),Vl(s)}while(0);return ur=n,(b=0)|b}(A,r);A:do{if(k){a=k+28|0;do{if((0|ar[a>>2])<(0|r)){if(0|(o=0|qo(r))){0|(l=0|ar[(c=k+20|0)>>2])&&(Eu(0|o,0|l,0|ar[k+24>>2]),$o(l)),ar[c>>2]=o,ar[a>>2]=r;break}if(ar[d>>2]=k,o=k,a=A+40|0,(l=0|ar[(c=A+44|0)>>2])-(0|ar[a>>2])>>2>>>0<16){if((0|l)==(0|ar[A+48>>2])){Io(a,d);break A}ar[l>>2]=o,ar[c>>2]=4+(0|ar[c>>2]);break A}$o(0|ar[k+20>>2]),0|(o=0|ar[k+32>>2])&&((0|(c=0|ar[(a=k+36|0)>>2]))!=(0|o)&&(ar[a>>2]=c+(~((c+-4-o|0)>>>2)<<2)),Vl(o)),Vl(k);break A}o=0|ar[k+20>>2]}while(0);Eu(0|o,0|e,0|r),ar[(b=k+24|0)>>2]=r,ar[(u=k+8|0)>>2]=i,ar[u+4>>2]=f,ar[k+16>>2]=n;e:do{if(2<(0|r))for(f=k+32|0,n=k+36|0,u=k+40|0,o=0|ar[k+20>>2],i=0,l=r;;){switch((a=0|tr[(e=o+2|0)>>0])<<24>>24){case 0:case 3:0==(0|tr[o>>0])&&a<<24>>24==3&0==(0|tr[(s=o+1|0)>>0])?(c=0|ar[n>>2],a=i+2+(c-(0|ar[f>>2])>>2)|0,ar[d>>2]=a,(0|c)==(0|ar[u>>2])?Co(f,d):(ar[c>>2]=a,ar[n>>2]=c+4),Gu(0|e,o+3|0,-3-i+(0|ar[b>>2])|0),a=(0|ar[b>>2])-1|0,ar[b>>2]=a,c=i+1|0,o=s):(c=i,a=l);break;default:c=i+2|0,o=e,a=l}if((a+-2|0)<=(0|(i=c+1|0)))break e;o=o+1|0,l=a}}while(0);return o=0|ar[(e=A+16|0)>>2],d=(0|ar[A+20>>2])-o|0,c=0|ar[(a=A+28|0)>>2],l=0|ar[(i=A+32|0)>>2],(0|(0==(0|d)?0:(d<<8)-1|0))==(l+c|0)?(Go(A+12|0),c=0|ar[a>>2],a=0|ar[i>>2],o=0|ar[e>>2]):a=l,ar[(0|ar[o+((d=a+c|0)>>>10<<2)>>2])+((1023&d)<<2)>>2]=k,ar[i>>2]=a+1,ar[(k=A+36|0)>>2]=(0|ar[k>>2])+(0|ar[b>>2]),ur=t,(k=0)|k}ar[d>>2]=0}while(0);return ur=t,0|(k=7)}((A|=0)+548|0,e|=0,r|=0,i|=0,f|=0,n|=0)}function $e(A){var e=0;return(0|ar[(A|=0)+376200>>2])<=0?(e=0)|e:(e=0|ar[A+376196>>2],(e=0|ar[(0|ar[(0|ar[A+376184>>2])+(e>>>10<<2)>>2])+((1023&e)<<2)>>2])?(oo(A+376148|(tr[e+100>>0]=0)),0|e):(e=0)|e)}function Ar(A){var e;0|ar[(A|=0)+376200>>2]&&(e=0|ar[A+376196>>2],oo(A+376148|(tr[100+(0|ar[(0|ar[(0|ar[A+376184>>2])+(e>>>10<<2)>>2])+((1023&e)<<2)>>2])>>0]=0)))}function er(A,e,r){switch(A|=0,r|=0,0|(e|=0)){case 0:return void(tr[A+512>>0]=0!=(0|r)&1);case 6:return void(tr[A+514>>0]=0!=(0|r)&1);case 7:return void(tr[A+532>>0]=0!=(0|r)&1);case 8:return void(tr[A+533>>0]=0!=(0|r)&1);default:br(49065,27874,503,27883)}}function rr(A,e){switch(A|=0,0|(e|=0)){case 0:A=A+72|0;break;case 2:case 1:A=A+80|0;break;default:return(e=0)|e}return 0|(e=0|ar[A>>2])}function ir(A,e){switch(A|=0,0|(e|=0)){case 0:A=A+76|0;break;case 2:case 1:A=A+84|0;break;default:return(e=0)|e}return 0|(e=0|ar[A>>2])}function fr(A,e){switch(A|=0,0|(e|=0)){case 0:A=A+5760|0;break;case 2:case 1:A=A+5768|0;break;default:return(e=0)|e}return 0|(e=0|ar[A>>2])}function nr(A,e,r){A|=0,r|=0;var i,f,n=0;if(3<=(e|=0)>>>0&&br(27908,27874,639,27935),f=0|ar[A+60+(e<<2)>>2],!r)return 0|f;switch(i=0|ar[(0==(0|e)?A+40|0:A+44|0)>>2],0|e){case 0:A=A+5760|0,n=7;break;case 2:case 1:A=A+5768|0,n=7;break;default:A=0}return 7==(0|n)&&(A=(7+(0|ar[A>>2])|0)/8|0),n=0|sr(A,i),ar[r>>2]=n,0|f}function dr(A){var e,r=0,i=0,f=0,n=0,t=0,o=0;if(ar[(A|=0)>>2]=6040,(0|(r=0|ar[(n=A+377216|0)>>2]))!=(0|(i=0|ar[(t=A+377220|0)>>2])))for(;(f=0|ar[i+-4>>2])&&(kr(f),Vl(f),i=0|ar[t>>2],r=0|ar[n>>2]),i=i+-4|0,(0|r)!=(0|(ar[t>>2]=i)););0|r&&Vl(r),function(A){var e,r,i,f,n,t,o=0,a=0,c=0,l=0,u=0,s=0,b=0;if(n=8+(A|=0)|0,a=0|ar[(t=A+12|0)>>2],o=0|ar[n>>2],(0|a)!=(0|o))for(l=0;(c=0|ar[o+(l<<2)>>2])&&(uo(c),Vl(c),o=0|ar[n>>2],a=0|ar[t>>2]),(l=l+1|0)>>>0<a-o>>2>>>0;);a=0|ar[(i=A+36|0)>>2],o=0|ar[(r=A+48|0)>>2],c=a+(o>>>10<<2)|0,s=0|ar[(f=A+40|0)>>2],o=(0|(l=s))==(0|(e=a))?(s=A+52|(u=0),0):(u=(0|ar[(s=A+52|0)>>2])+o|0,u=(0|ar[a+(u>>>10<<2)>>2])+((1023&u)<<2)|0,(0|ar[c>>2])+((1023&o)<<2)|0);A:for(;;){do{if((0|o)==(0|u))break A;o=o+4|0}while(4096!=(o-(0|ar[c>>2])|0));o=0|ar[(c=o=c+4|0)>>2]}if(ar[s>>2]=0,2<(o=l-e>>2)>>>0)for(;Vl(0|ar[a>>2]),a=4+(0|ar[i>>2])|0,ar[i>>2]=a,o=(0|ar[f>>2])-a>>2,2<o>>>0;);switch(0|o){case 1:o=512,b=14;break;case 2:o=1024,b=14}14==(0|b)&&(ar[r>>2]=o);if(o=0|ar[i>>2],a=0|ar[f>>2],(0|o)!=(0|a)){for(;Vl(0|ar[o>>2]),(0|(o=o+4|0))!=(0|a););o=0|ar[i>>2],(0|(a=0|ar[f>>2]))!=(0|o)&&(ar[f>>2]=a+(~((a+-4-o|0)>>>2)<<2))}0|(o=0|ar[A+32>>2])&&Vl(o);0|(c=0|ar[A+20>>2])&&((0|(a=0|ar[(o=A+24|0)>>2]))!=(0|c)&&(ar[o>>2]=a+(~((a+-4-c|0)>>>2)<<2)),Vl(c));if(!(o=0|ar[n>>2]))return;(0|(a=0|ar[t>>2]))!=(0|o)&&(ar[t>>2]=a+(~((a+-4-o|0)>>>2)<<2));Vl(o)}(A+376148|0),function(A){var e,r,i,f,n,t=0,o=0,a=0,c=0,l=0,u=0;o=0|ar[(f=8+(A|=0)|0)>>2],t=0|ar[(i=A+20|0)>>2],a=o+(t>>>10<<2)|0,l=0|ar[(n=A+12|0)>>2],t=(0|(e=l))==(0|(r=o))?(l=A+24|(c=0),0):(c=(0|ar[(l=A+24|0)>>2])+t|0,c=(0|ar[o+(c>>>10<<2)>>2])+((1023&c)<<2)|0,(0|ar[a>>2])+((1023&t)<<2)|0);A:for(;;){do{if((0|t)==(0|c))break A;t=t+4|0}while(4096!=(t-(0|ar[a>>2])|0));t=0|ar[(a=t=a+4|0)>>2]}if(ar[l>>2]=0,2<(t=e-r>>2)>>>0)for(;Vl(0|ar[o>>2]),o=4+(0|ar[f>>2])|0,ar[f>>2]=o,t=(0|ar[n>>2])-o>>2,2<t>>>0;);switch(0|t){case 1:t=512,u=13;break;case 2:t=1024,u=13}13==(0|u)&&(ar[i>>2]=t);if(t=0|ar[f>>2],o=0|ar[n>>2],(0|t)!=(0|o)){for(;Vl(0|ar[t>>2]),(0|(t=t+4|0))!=(0|o););t=0|ar[f>>2],(0|(o=0|ar[n>>2]))!=(0|t)&&(ar[n>>2]=o+(~((o+-4-t|0)>>>2)<<2))}if(!(t=0|ar[A+4>>2]))return;Vl(t)}(A+375396|0),No(A+370984|0),No(A+366584|0),No(A+362184|0),No(A+357784|0),No(A+353384|0),No(A+348984|0),No(A+344584|0),No(A+340184|0),No(A+335784|0),No(A+331384|0),No(A+326984|0),No(A+322584|0),No(A+318184|0),No(A+313784|0),No(A+309384|0),No(A+304984|0),No(A+300584|0),No(A+296184|0),No(A+291784|0),No(A+287384|0),No(A+282984|0),No(A+278584|0),No(A+274184|0),No(A+269784|0),No(A+265384|0),No(A+260984|0),No(A+256584|0),No(A+252184|0),No(A+247784|0),No(A+243384|0),No(A+238984|0),No(A+234584|0),No(A+230184|0),No(A+225784|0),No(A+221384|0),No(A+216984|0),No(A+212584|0),No(A+208184|0),No(A+203784|0),No(A+199384|0),No(A+194984|0),No(A+190584|0),No(A+186184|0),No(A+181784|0),No(A+177384|0),No(A+172984|0),No(A+168584|0),No(A+164184|0),No(A+159784|0),No(A+155384|0),No(A+150984|0),No(A+146584|0),No(A+142184|0),No(A+137784|0),No(A+133384|0),No(A+128984|0),No(A+124584|0),No(A+120184|0),No(A+115784|0),No(A+111384|0),No(A+106984|0),No(A+102584|0),No(A+98184|0),No(A+93784|0),Tn(A+88616|0),Tn(A+83448|0),Tn(A+78280|0),Tn(A+73112|0),Tn(A+67944|0),Tn(A+62776|0),Tn(A+57608|0),Tn(A+52440|0),Tn(A+47272|0),Tn(A+42104|0),Tn(A+36936|0),Tn(A+31768|0),Tn(A+26600|0),Tn(A+21432|0),Tn(A+16264|0),Tn(A+11096|0),e=A+600|0,o=A+11096|0;do{if(0|(r=0|ar[o+-16>>2])&&((0|ar[(i=o+-12|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),0|(r=0|ar[o+-28>>2])&&((0|(f=0|ar[(i=o+-24|0)>>2]))!=(0|r)&&(ar[i>>2]=f+(~((f+-2-r|0)>>>1)<<1)),Vl(r)),0|(r=0|ar[(n=o+-64|0)>>2])){if((0|(i=0|ar[(t=o+-60|0)>>2]))!=(0|r)){for(;i=i+-12|0,ar[t>>2]=i,(f=0|ar[i>>2])&&(Vl(f),i=0|ar[t>>2]),(0|i)!=(0|r););r=0|ar[n>>2]}Vl(r)}o=o+-656|0}while((0|o)!=(0|e));!function(A){var e,r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0;ur=(i=ur)+16|0,e=i,f=0|ar[(r=32+(A|=0)|0)>>2];A:do{if(0|f){c=A+16|0,l=A+28|0,u=A+36|0,s=A+40|0,b=A+44|0,a=A+48|0;do{if(n=0|ar[c>>2],t=0|ar[l>>2],o=0|ar[(0|ar[n+(t>>>10<<2)>>2])+((1023&t)<<2)>>2],ar[r>>2]=f+-1,t=t+1|0,2047<(ar[l>>2]=t)>>>0&&(Vl(0|ar[n>>2]),ar[c>>2]=4+(0|ar[c>>2]),ar[l>>2]=(0|ar[l>>2])-1024),ar[u>>2]=(0|ar[u>>2])-(0|ar[o+24>>2]),!o)break A;ar[e>>2]=o,f=o,n=0|ar[b>>2];do{if(n-(0|ar[s>>2])>>2>>>0<16){if((0|n)==(0|ar[a>>2])){Io(s,e);break}ar[n>>2]=f,ar[b>>2]=4+(0|ar[b>>2]);break}$o(0|ar[o+20>>2]),0|(f=0|ar[o+32>>2])&&((0|(t=0|ar[(n=o+36|0)>>2]))!=(0|f)&&(ar[n>>2]=t+(~((t+-4-f|0)>>>2)<<2)),Vl(f)),Vl(o)}while(0);f=0|ar[r>>2]}while(0!=(0|f))}}while(0);if(o=0|ar[A+8>>2]){ar[e>>2]=o,f=o,c=A+40|0,n=0|ar[(a=A+44|0)>>2];do{if(n-(0|ar[c>>2])>>2>>>0<16){if((0|n)==(0|ar[A+48>>2])){Io(c,e);break}ar[n>>2]=f,ar[a>>2]=4+(0|ar[a>>2]);break}$o(0|ar[o+20>>2]),0|(f=0|ar[o+32>>2])&&((0|(t=0|ar[(n=o+36|0)>>2]))!=(0|f)&&(ar[n>>2]=t+(~((t+-4-f|0)>>>2)<<2)),Vl(f)),Vl(o)}while(0);u=s=a}else s=u=A+44|0,c=A+40|0;if(t=0|ar[u>>2],o=0|ar[c>>2],(0|(f=t))!=(0|(n=o)))for(l=0;(a=0|ar[n+(l<<2)>>2])&&($o(0|ar[a+20>>2]),0|(f=0|ar[a+32>>2])&&((0|(t=0|ar[(n=a+36|0)>>2]))!=(0|f)&&(ar[n>>2]=t+(~((t+-4-f|0)>>>2)<<2)),Vl(f)),Vl(a),f=0|ar[u>>2],o=0|ar[c>>2],t=f),(l=l+1|0)>>>0<t-(n=o)>>2>>>0;);0|n&&((0|f)!=(0|n)&&(ar[s>>2]=f+(~((f+-4-n|0)>>>2)<<2)),Vl(n));f=0|ar[(s=A+16|0)>>2],n=0|ar[(u=A+28|0)>>2],o=f+(n>>>10<<2)|0,t=0|ar[(b=A+20|0)>>2],n=(0|(a=t))==(0|(c=f))?l=0:(l=(0|ar[r>>2])+n|0,l=(0|ar[f+(l>>>10<<2)>>2])+((1023&l)<<2)|0,(0|ar[o>>2])+((1023&n)<<2)|0);A:for(;;){do{if((0|n)==(0|l))break A;n=n+4|0}while(4096!=(n-(0|ar[o>>2])|0));n=0|ar[(o=n=o+4|0)>>2]}if(ar[r>>2]=0,2<(n=a-c>>2)>>>0)for(;Vl(0|ar[f>>2]),f=4+(0|ar[s>>2])|0,ar[s>>2]=f,t=0|ar[b>>2],n=t-f>>2,2<n>>>0;);switch(0|n){case 1:n=512,d=45;break;case 2:n=1024,d=45}45==(0|d)&&(ar[u>>2]=n);if((0|f)!=(0|t)){for(;Vl(0|ar[f>>2]),(0|(f=f+4|0))!=(0|t););f=0|ar[s>>2],(0|(n=0|ar[b>>2]))!=(0|f)&&(ar[b>>2]=n+(~((n+-4-f|0)>>>2)<<2))}(f=0|ar[A+12>>2])&&Vl(f),ur=i}(A+548|0)}function kr(A){var e,r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0;if(i=(A|=0)+10632|0,(0|(n=0|ar[(l=A+10636|0)>>2]))!=(0|(f=0|ar[i>>2]))){a=0;do{if(o=0|ar[f+(a<<2)>>2]){if(Eo(548+(0|ar[o+144>>2])|0,0|ar[o>>2]),0|(n=0|ar[o+136>>2])){if(0|(f=0|ar[(t=n+-16|0)+12>>2]))for(f=n+(18624*f|0)|0;Zt(f+-44|0),(0|(f=f+-18624|0))!=(0|n););Xl(t)}zn(o+44|0),Vl(o),f=0|ar[i>>2],n=0|ar[l>>2]}a=a+1|0}while(a>>>0<n-f>>2>>>0)}if(e=A+10664|0,(0|(f=0|ar[(r=A+10668|0)>>2]))!=(0|(n=t=0|ar[e>>2])))for(c=0,a=n,o=t;(t=0|ar[a+(c<<2)>>2])?(ds[511&ar[4+(0|ar[t>>2])>>2]](t),n=t=0|ar[e>>2],f=0|ar[r>>2]):t=o,!(f-t>>2>>>0<=(c=c+1|0)>>>0);)o=a=t;if(f=0|ar[(o=A+10676|0)>>2]){if((0|(n=0|ar[(t=A+10680|0)>>2]))!=(0|f)){for(;c=n+-8|0,Zt(ar[t>>2]=c),(0|(n=0|ar[t>>2]))!=(0|f););f=0|ar[o>>2]}Vl(f),f=0|ar[e>>2]}else f=n;0|f&&((0|(n=0|ar[r>>2]))!=(0|f)&&(ar[r>>2]=n+(~((n+-4-f|0)>>>2)<<2)),Vl(f)),0|(f=0|ar[A+10644>>2])&&((0|(t=0|ar[(n=A+10648|0)>>2]))!=(0|f)&&(ar[n>>2]=t+(80*~(((t+-80-f|0)>>>0)/80|0)|0)),Vl(f)),(f=0|ar[i>>2])&&((0|(n=0|ar[l>>2]))!=(0|f)&&(ar[l>>2]=n+(~((n+-4-f|0)>>>2)<<2)),Vl(f)),uo(l=A+8|0)}function hr(A,e){e|=0;var r,i,f=0,n=0,t=0,o=0,a=0,c=0;if(0|ar[(i=(A|=0)+136|0)>>2]&&br(28004,28026,169,28036),n=0|Gl(230614<e>>>0|4294967279<(n=18624*e|0)>>>0?-1:n+16|0),ar[n+12>>2]=e,n=n+16|0,!e)return ar[i>>2]=n,void(ar[(n=A+140|0)>>2]=e);for(r=n+(18624*e|0)|0,f=n;pt(f+18580|0),o=f+18592|0,t=0==(0|(t=15&(c=f+48|0)))?c:c+(16-t)|0,ar[(a=f+18508|0)>>2]=0,ar[a+4>>2]=0,ar[a+8>>2]=0,ar[a+12>>2]=0,ar[a+16>>2]=0,ar[o>>2]=0,ar[o+4>>2]=0,ar[o+8>>2]=0,ar[o+12>>2]=0,Vu((ar[o+16>>2]=0)|(ar[f+2112>>2]=t),0,2048),(0|(f=f+18624|0))!=(0|r););ar[i>>2]=n,ar[(c=A+140|0)>>2]=e}function wr(A,e){A|=0;var r,i=0,f=0,n=0,t=0;Vu((e|=0)+48|0,0,2064),ar[e+18532>>2]=-1,ar[e+18536>>2]=-1,r=0|ar[e+18596>>2],(0|(A=0|ar[16+(0|ar[e+18600>>2])>>2]))<=0||(A=(1+((0|(n=0|ar[(0|ar[10284+r>>2])+((0|ar[(0|ar[10272+r>>2])+(A<<2)>>2])-1<<2)>>2]))%(0|(t=0|ar[5820+r>>2]))|0)<<(f=0|ar[5804+r>>2]))-1|0,f=(1+((0|n)/(0|t)|0)<<f)-1|0,t=(0|ar[1248+r>>2])-1|0,n=(0|ar[1252+r>>2])-1|0,A=((0|t)<(0|A)?t:A)>>(i=0|ar[10368+r>>2]),i=((0|n)<(0|f)?n:f)>>i,(0|A)<=-1&&br(41808,41845,118,41865),(0|(f=0|ar[10372+r>>2]))<=(0|A)&&br(41808,41845,118,41865),(0|i)<=-1&&br(41869,41845,119,41865),(0|i)>=(0|ar[10376+r>>2])&&br(41869,41845,119,41865),t=(0|ar[10360+r>>2])+(3*((0|sr(f,i))+A|0)|0)+2|0,ar[e+18528>>2]=tr[t>>0])}function vr(A,e){e|=0;var r,i,f,n,t,o=0,a=0,c=0,l=0;f=(A|=0)+4|0,n=0|ar[A>>2],1073741823<(o=1+(i=(t=(0|ar[f>>2])-n|0)>>2)|0)>>>0&&il(),a=(c=(0|ar[(l=A+8|0)>>2])-n|0)>>1,a=c>>2>>>0<536870911?a>>>0<o>>>0?o:a:1073741823;do{if(a){if(!(1073741823<a>>>0)){c=0|El(a<<2);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else c=0}while(0);ar[(r=c+(i<<2)|0)>>2]=ar[e>>2],o=r+(0-i<<2)|0,0<(0|t)&&Eu(0|o,0|n,0|t),ar[A>>2]=o,ar[f>>2]=4+r,ar[l>>2]=c+(a<<2),n&&Vl(n)}function gr(A,e){A|=0,e|=0;var r,i,f,n=0,t=0,o=0;if(ur=(f=ur)+656|0,ar[(n=(r=f)+592|0)>>2]=0,ar[(i=r+596|0)>>2]=0,ar[r+600>>2]=0,ar[(t=r+628|0)>>2]=0,ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t+12>>2]=0,ar[t+16>>2]=0,o=(e=(ar[t+20>>2]=0)|function(A,e,r){A|=0,e|=0;var i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;if(l=0|at(r|=0,4),15<(0|(ar[A>>2]=l)))return 0|(r=8);if(ct(r,2),l=0|at(r,6),ar[A+4>>2]=l+1,62<(0|l))return 0|(r=8);if(l=0|at(r,3),ar[(t=A+8|0)>>2]=l+1,6<(0|l))return 0|(r=8);l=0|at(r,1),ar[A+12>>2]=l,ct(r,16),nt(A+16|0,r,0|ar[t>>2]),l=0|at(r,1),ar[(o=A+484|0)>>2]=l,i=0|ar[t>>2],l?0<(0|i)&&(a=0,f=7):(a=i+-1|0,f=7);do{if(7==(0|f)){for(i=a;;){if(n=0|ut(r),ar[(l=A+488+(12*i|0)|0)>>2]=n,n=0|ut(r),ar[(f=A+488+(12*i|0)+4|0)>>2]=n,n=0|ut(r),ar[A+488+(12*i|0)+8>>2]=n,-99999==(0|ar[l>>2])){i=8,f=48;break}if(i=i+1|0,-99999==(0|n)|-99999==(0|ar[f>>2])){i=8,f=48;break}if((0|i)>=(0|ar[t>>2])){f=11;break}}if(11==(0|f)){if(0|ar[o>>2])break;if(8<=(0|a)&&br(37913,37838,144,37953),(0|a)<=0)break;for(f=A+488+(12*a|0)|0,n=A+488+(12*a|0)+4|0,t=A+488+(12*a|0)+8|0,i=0;ar[A+488+(12*i|0)>>2]=ar[f>>2],ar[A+488+(12*i|0)+4>>2]=ar[n>>2],ar[A+488+(12*i|0)+8>>2]=ar[t>>2],(0|(i=i+1|0))!=(0|a););}else if(48==(0|f))return 0|i}}while(0);if(a=255&(0|at(r,6)),tr[(c=A+584|0)>>0]=a,a=0|ut(r),-99999==(0|(ar[(l=A+588|0)>>2]=a))|1023<(t=a+1|0)>>>0)return Gr(e,8,0),0|(r=8);if(ar[l>>2]=t,a=A+592|0,i=0|ar[(o=A+596|0)>>2],n=0|ar[a>>2],t>>>0<=(f=(i-n|0)/12|0)>>>0){if(t>>>0<f>>>0&&(0|i)!=(0|(u=n+(12*t|0)|0)))for(;i=i+-12|0,ar[o>>2]=i,(f=0|ar[i>>2])&&(Vl(f),i=0|ar[o>>2]),(0|i)!=(0|u););}else!function(A,e){e|=0;var r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0;if(t=0|ar[(i=8+(A|=0)|0)>>2],n=0|ar[(u=A+4|0)>>2],((t-(f=n)|0)/12|0)>>>0>=e>>>0)return Vu(0|n,0,12*e|0),ar[u>>2]=f+(12*e|0);l=0|ar[A>>2],357913941<(n=(a=(n-(r=l)|0)/12|0)+e|0)>>>0&&il();o=(c=(t-l|0)/12|0)<<1,o=c>>>0<178956970?o>>>0<n>>>0?n:o:357913941;do{if(o){if(!(357913941<o>>>0)){c=0|El(12*o|0);break}Fl(u=0|C(8),37845),ar[u>>2]=16004,I(0|u,3616,283)}else c=0}while(0);if(n=c+(12*a|0)|0,c=c+(12*o|0)|0,Vu(0|(t=n),0,12*e|0),a=n+(12*e|0)|0,(0|f)==(0|r))o=l;else{for(;f=(l=f)+-12|0,ar[n+-12>>2]=ar[f>>2],e=l+-8|0,ar[n+-8>>2]=ar[e>>2],l=l+-4|0,ar[n+-4>>2]=ar[l>>2],ar[f>>2]=0,ar[e>>2]=0,ar[l>>2]=0,t=n=t+-12|0,(0|f)!=(0|r););o=0|ar[A>>2],f=0|ar[u>>2]}if(ar[A>>2]=t,ar[u>>2]=a,ar[i>>2]=c,(0|f)!=(0|(t=o)))for(;0|(n=0|ar[(f=f+-12|0)>>2])&&Vl(n),(0|f)!=(0|t););if(!o)return;Vl(o)}(a,t-f|0);if(1<(0|ar[l>>2]))for(f=1,n=0|ar[a>>2],i=0|tr[c>>0];;){for(un(n+(12*f|0)|0,1+(255&i)|0,0),n=0;o=0!=(0|at(r,1)),t=0|ar[a>>2],i=(0|ar[t+(12*f|0)>>2])+(n>>>5<<2)|0,u=1<<(31&n),e=0|ar[i>>2],ar[i>>2]=o?e|u:e&~u,i=0|tr[c>>0],(0|n)<(255&i|0);)n=n+1|0;if(!((0|(f=f+1|0))<(0|ar[l>>2])))break;n=t}if(u=255&(0|at(r,1)),(tr[A+604>>0]=u)<<24>>24&&(u=0|at(r,32),ar[A+608>>2]=u,u=0|at(r,32),ar[A+612>>2]=u,u=255&(0|at(r,1)),(tr[A+616>>0]=u)<<24>>24)&&(i=1+(0|ut(r))|0,ar[A+620>>2]=i,i=0|ut(r),1023<(0|(ar[(e=A+624|0)>>2]=i))&&br(49065,37838,189,37953),c=A+628|0,o=0|ar[(f=A+632|0)>>2],t=0|ar[c>>2],i>>>0<=(n=o-t>>1)>>>0?i>>>0<n>>>0&&(0|o)!=(0|(s=t+(i<<1)|0))&&(ar[f>>2]=o+(~((o+-2-s|0)>>>1)<<1)):(function(A,e){e|=0;var r,i,f,n,t,o=0,a=0,c=0,l=0;if(a=0|ar[(t=8+(A|=0)|0)>>2],o=0|ar[(l=A+4|0)>>2],e>>>0<=a-o>>1>>>0)return Vu(0|o,0,e<<1|0),ar[l>>2]=o+(e<<1);n=0|ar[A>>2],(0|(o=(i=(f=o-n|0)>>1)+e|0))<0&&il();a=(a=a-n|0)>>1>>>0<1073741823?a>>>0<o>>>0?o:a:2147483647;do{if(a){if(!((0|a)<0)){c=0|El(a<<1);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else c=0}while(0);Vu(0|(r=c+(i<<1)|0),0,e<<1|0),o=r+(0-i<<1)|0,0<(0|f)&&Eu(0|o,0|n,0|f);if(ar[A>>2]=o,ar[l>>2]=r+(e<<1),ar[t>>2]=c+(a<<1),!n)return;Vl(n)}(c,i-n|0),i=0|ar[e>>2]),f=A+640|0,a=0|ar[(n=A+644|0)>>2],o=0|ar[f>>2],i>>>0<=(t=a-o|0)>>>0?i>>>0<t>>>0&&(0|a)!=(0|(b=o+i|0))&&(ar[n>>2]=b):(function(A,e){e|=0;var r,i,f=0,n=0,t=0,o=0,a=0;if(t=0|ar[(r=8+(A|=0)|0)>>2],f=0|ar[(i=A+4|0)>>2],e>>>0<=(t-f|0)>>>0){for(;tr[f>>0]=0,f=1+(0|ar[i>>2])|0,ar[i>>2]=f,0!=(0|(e=e+-1|0)););return}n=0|ar[A>>2],(0|(f=(o=f-n|0)+e|0))<0&&il();a=(t=t-n|0)<<1,n=(f=t>>>0<1073741823?a>>>0<f>>>0?f:a:2147483647)?0|El(f):0;a=n+o|0,o=n+f|0,f=t=a;for(;tr[f>>0]=0,t=f=t+1|0,e=e+-1|0,0!=(0|e););e=0|ar[A>>2],n=(0|ar[i>>2])-e|0,f=a+(0-n)|0,0<(0|n)&&Eu(0|f,0|e,0|n);if(ar[A>>2]=f,ar[i>>2]=t,ar[r>>2]=o,!e)return;Vl(e)}(f,i-t|0),i=0|ar[e>>2]),0<(0|i)))return r=65535&(0|ut(r)),or[ar[c>>2]>>1]=r,(r=0)|r;return r=255&(0|at(r,1)),tr[A+652>>0]=r,(r=0)|r}(r,A+4|0,e))||(-1<(0|(e=0|ar[A+520>>2]))&&function(A,e){A|=0;var r,i,f,n,t,o,a,c,l,u,s,b,d,k,h,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0;switch(ur=(h=ur)+208|0,E=h+192|0,k=h+184|0,d=h+176|0,B=h+168|0,b=h+160|0,I=h+152|0,s=h+144|0,W=h+128|0,u=h+120|0,C=h+112|0,a=h+104|0,Z=h+96|0,f=h+88|0,i=h+80|0,o=h+72|0,t=h+64|0,n=h+56|0,r=h+48|0,y=h+40|0,p=h+32|0,m=h+24|0,g=h+16|0,v=h+8|0,l=(w=h)+200|0,0|(e|=0)){case 1:e=8516;break;case 2:e=9020;break;default:return ur=h}if(ft(c=0|ar[e>>2],37958,w),ar[v>>2]=ar[A>>2],ft(c,37999,v),ar[g>>2]=ar[A+4>>2],ft(c,38043,g),v=A+8|0,ar[m>>2]=ar[v>>2],ft(c,38087,m),ar[p>>2]=ar[A+12>>2],ft(c,38131,p),p=0|ar[v>>2],ot(A+16|0,1,c),w=p+-1|0,1<(0|p))for(e=0;ar[y>>2]=e,ft(c,38175,y),ot(A+68+(52*e|0)|0,0,c),(0|(e=e+1|0))!=(0|w););if(y=A+484|0,ar[r>>2]=ar[y>>2],ft(c,38208,r),0|ar[y>>2]){if(0<(0|ar[v>>2]))for(e=0;Z=0|ar[A+488+(12*e|0)>>2],ar[n>>2]=e,ar[4+n>>2]=Z,ft(c,38255,n),ar[t>>2]=ar[A+488+(12*e|0)+4>>2],ft(c,38297,t),ar[o>>2]=ar[A+488+(12*e|0)+8>>2],ft(c,38338,o),(0|(e=e+1|0))<(0|ar[v>>2]););}else ar[i>>2]=ar[A+488>>2],ft(c,38379,i),ar[f>>2]=ar[A+492>>2],ft(c,38424,f),ar[Z>>2]=ar[A+496>>2],ft(c,38469,Z);if(p=A+584|0,ar[a>>2]=cr[p>>0],ft(c,38514,a),m=A+588|0,ar[C>>2]=ar[m>>2],ft(c,38539,C),1<(0|ar[m>>2])){v=A+592|0,g=4+l|0,w=1;do{for(e=0;ar[l>>2]=(0|ar[(0|ar[v>>2])+(12*w|0)>>2])+(e>>>5<<2),ar[g>>2]=1<<(31&e),ar[W>>2]=w,ar[W+4>>2]=e,tr[(C=W+8|0)>>0]=0|tr[l>>0],tr[C+1>>0]=0|tr[1+l>>0],tr[C+2>>0]=0|tr[2+l>>0],tr[C+3>>0]=0|tr[3+l>>0],tr[C+4>>0]=0|tr[4+l>>0],tr[C+5>>0]=0|tr[5+l>>0],tr[C+6>>0]=0|tr[6+l>>0],tr[C+7>>0]=0|tr[7+l>>0],ft(c,38599,W),(0|e)<(0|cr[p>>0]);)e=e+1|0;w=w+1|0}while((0|w)<(0|ar[m>>2]))}if(W=A+604|0,ar[u>>2]=tr[W>>0],ft(c,38564,u),0|tr[W>>0]&&(ar[s>>2]=ar[A+608>>2],ft(c,38636,s),ar[I>>2]=ar[A+612>>2],ft(c,38664,I),I=A+616|0,ar[b>>2]=tr[I>>0],ft(c,38692,b),0|tr[I>>0])&&(ar[B>>2]=ar[A+620>>2],ft(c,38734,B),B=A+624|0,ar[d>>2]=ar[B>>2],ft(c,38767,d),0<(0|ar[B>>2])))return E=0|lr[ar[A+628>>2]>>1],ar[k>>2]=0,ar[4+k>>2]=E,ft(c,38800,k),ur=h;ar[E>>2]=tr[A+652>>0],ft(c,38828,E),ur=h}(r,e),Eu(0|(o=A+600+(656*(e=0|ar[r>>2])|0)|0),0|r,592),(0|o)==(0|r)?(n=r+604|0,ar[(o=A+600+(656*e|0)+604|0)>>2]=ar[n>>2],ar[o+4>>2]=ar[n+4>>2],ar[o+8>>2]=ar[n+8>>2],ar[o+12>>2]=ar[n+12>>2],ar[o+16>>2]=ar[n+16>>2],ar[o+20>>2]=ar[n+20>>2]):(mr(A+600+(656*e|0)+592|0,0|ar[n>>2],0|ar[i>>2]),n=r+604|0,ar[(o=A+600+(656*e|0)+604|0)>>2]=ar[n>>2],ar[o+4>>2]=ar[n+4>>2],ar[o+8>>2]=ar[n+8>>2],ar[o+12>>2]=ar[n+12>>2],ar[o+16>>2]=ar[n+16>>2],ar[o+20>>2]=ar[n+20>>2],pr(A+600+(656*e|0)+628|0,0|ar[t>>2],0|ar[r+632>>2]),yr(A+600+(656*e|0)+640|0,0|ar[r+640>>2],0|ar[r+644>>2])),tr[A+600+(656*e|0)+652>>0]=0|tr[r+652>>0],0),0|(e=0|ar[r+640>>2])&&((0|ar[(A=r+644|0)>>2])!=(0|e)&&(ar[A>>2]=e),Vl(e)),0|(e=0|ar[t>>2])&&((0|(n=0|ar[(A=r+632|0)>>2]))!=(0|e)&&(ar[A>>2]=n+(~((n+-2-e|0)>>>1)<<1)),Vl(e)),!(e=0|ar[(t=r+592|0)>>2]))return ur=f,0|o;if((0|(A=0|ar[i>>2]))!=(0|e)){for(;A=A+-12|0,ar[i>>2]=A,(n=0|ar[A>>2])&&(Vl(n),A=0|ar[i>>2]),(0|A)!=(0|e););e=0|ar[t>>2]}return Vl(e),ur=f,0|o}function mr(A,e,r){var i,f,n,t,o,a,c,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0;if(ur=(c=ur)+32|0,t=c+24|0,n=c+16|0,o=c+8|0,a=c,f=((r|=0)-(e|=0)|0)/12|0,(((u=0|ar[(d=(A|=0)+8|0)>>2])-(l=i=0|ar[A>>2])|0)/12|0)>>>0<f>>>0){if(i){if((0|(u=0|ar[(b=A+4|0)>>2]))==(0|l))u=i;else{for(;u=u+-12|0,ar[b>>2]=u,(s=0|ar[u>>2])&&(Vl(s),u=0|ar[b>>2]),(0|u)!=(0|l););u=0|ar[A>>2]}Vl(u),ar[d>>2]=0,ar[b>>2]=0,u=ar[A>>2]=0}if(357913941<f>>>0&&il(),u=(g=(0|u)/12|0)<<1,357913941<(u=g>>>0<178956970?u>>>0<f>>>0?f:u:357913941)>>>0&&il(),s=0|El(12*u|0),ar[(g=A+4|0)>>2]=s,ar[A>>2]=s,ar[d>>2]=s+(12*u|0),(0|e)==(0|r))return void(ur=c);for(w=4+o|0,v=a+4|0,h=e;;){if(ar[s>>2]=0,ar[(u=s+4|0)>>2]=0,(ar[(b=s+8|0)>>2]=0)|(k=0|ar[(d=h+4|0)>>2])){if((0|k)<0){u=42;break}p=0|El((k=1+((k+-1|0)>>>5)|0)<<2),ar[s>>2]=p,ar[u>>2]=0,ar[b>>2]=k,b=0|ar[h>>2],ar[o>>2]=b,k=(ar[w>>2]=0)|ar[d>>2],ar[a>>2]=b+(k>>>5<<2),ar[v>>2]=31&k,ar[n>>2]=ar[o>>2],ar[4+n>>2]=ar[4+o>>2],ar[t>>2]=ar[a>>2],ar[4+t>>2]=ar[a+4>>2],Zr(s,n,t)}if(h=h+12|0,u=12+(0|ar[g>>2])|0,ar[g>>2]=u,(0|h)==(0|r)){u=45;break}s=u}if(42==(0|u))il();else if(45==(0|u))return void(ur=c)}w=(d=((0|ar[(v=A+4|0)>>2])-i|0)/12|0)>>>0<f>>>0,d=e+(12*d|0)|0,h=w?d:r;A:do{if((0|h)==(0|e))m=l;else{for(;;){if((0|l)!=(0|e)){if(u=0|ar[(k=e+4|0)>>2]){if(u>>>0>ar[(b=l+8|0)>>2]<<5>>>0){if((s=0|ar[l>>2])&&(Vl(s),ar[l>>2]=0,ar[b>>2]=0,u=(ar[l+4>>2]=0)|ar[k>>2]),(0|u)<0)break;s=0|El((u=1+((u+-1|0)>>>5)|0)<<2),ar[l>>2]=s,ar[l+4>>2]=0,ar[b>>2]=u,u=0|ar[k>>2]}else s=0|ar[l>>2];Gu(0|s,0|ar[e>>2],4+((u+-1|0)>>>5<<2)|0),u=0|ar[k>>2]}else u=0;ar[l+4>>2]=u}if(l=l+12|0,(0|(e=e+12|0))==(0|h)){m=l;break A}}il()}}while(0);if(w)if((0|h)!=(0|r)){for(k=4+o|0,e=a+4|0,h=0|ar[v>>2];;){if(ar[h>>2]=0,ar[(l=h+4|0)>>2]=0,(ar[(u=h+8|0)>>2]=0)|(b=0|ar[(s=d+4|0)>>2])){if((0|b)<0){u=20;break}p=0|El((m=1+((b+-1|0)>>>5)|0)<<2),ar[h>>2]=p,ar[l>>2]=0,ar[u>>2]=m,m=0|ar[d>>2],ar[o>>2]=m,p=(ar[k>>2]=0)|ar[s>>2],ar[a>>2]=m+(p>>>5<<2),ar[e>>2]=31&p,ar[n>>2]=ar[o>>2],ar[4+n>>2]=ar[4+o>>2],ar[t>>2]=ar[a>>2],ar[4+t>>2]=ar[a+4>>2],Zr(h,n,t)}if(d=d+12|0,l=12+(0|ar[v>>2])|0,ar[v>>2]=l,(0|d)==(0|r)){u=45;break}h=l}if(20==(0|u))il();else if(45==(0|u))return void(ur=c)}else ur=c;else{if((0|(l=0|ar[v>>2]))==(0|m))return void(ur=c);for(;l=l+-12|0,ar[v>>2]=l,(u=0|ar[l>>2])&&(Vl(u),l=0|ar[v>>2]),(0|l)!=(0|m););ur=c}}function pr(A,e,r){var i,f,n,t,o=0,a=0,c=0,l=0;if((c=(l=(i=r|=0)-(e|=0)|0)>>1)>>>0<=(o=0|ar[(f=(A|=0)+8|0)>>2])-(n=t=0|ar[A>>2])>>1>>>0)return 0|(r=(o=(a=c=(A=(a=(0|ar[(l=A+4|0)>>2])-t>>1)>>>0<c>>>0)?e+(a<<1)|0:r)-e|0)>>1)&&Gu(0|t,0|e,0|o),r=n+(r<<1)|0,A?!((0|(o=i-a|0))<=0)&&(Eu(0|ar[l>>2],0|c,0|o),void(ar[l>>2]=(0|ar[l>>2])+(o>>>1<<1))):(0|(o=0|ar[l>>2]))!=(0|r)&&void(ar[l>>2]=o+(~((o+-2-r|0)>>>1)<<1));(a=t)&&((0|(r=0|ar[(o=A+4|0)>>2]))!=(0|n)&&(ar[o>>2]=r+(~((r+-2-t|0)>>>1)<<1)),Vl(a),ar[f>>2]=0,ar[o>>2]=0,o=ar[A>>2]=0),(0|l)<0&&il(),(0|(o=o>>1>>>0<1073741823?o>>>0<c>>>0?c:o:2147483647))<0&&il(),r=0|El(o<<1),ar[(a=A+4|0)>>2]=r,ar[A>>2]=r,ar[f>>2]=r+(o<<1),(0|l)<=0||(Eu(0|r,0|e,0|l),ar[a>>2]=r+(l>>>1<<1))}function yr(A,e,r){var i,f,n=0,t=0,o=0,a=0,c=0;return f=(c=r|=0)-(i=e|=0)|0,((n=0|ar[(o=(A|=0)+8|0)>>2])-(a=t=0|ar[A>>2])|0)>>>0<f>>>0?(t&&((0|ar[(n=A+4|0)>>2])!=(0|a)&&(ar[n>>2]=a),Vl(a),ar[o>>2]=0,ar[n>>2]=0,n=ar[A>>2]=0),(0|f)<0&&il(),c=n<<1,(0|(n=n>>>0<1073741823?c>>>0<f>>>0?f:c:2147483647))<0&&il(),a=0|El(n),ar[(c=A+4|0)>>2]=a,ar[A>>2]=a,ar[o>>2]=a+n,Eu(0|a,0|e,0|f),void(ar[c>>2]=a+f)):(0|(n=(t=r=(A=(t=(0|ar[(o=A+4|0)>>2])-t|0)>>>0<f>>>0)?e+t|0:r)-i|0)&&Gu(0|a,0|e,0|n),n=a+n|0,A?!((0|(n=c-t|0))<=0)&&(Eu(0|ar[o>>2],0|r,0|n),void(ar[o>>2]=(0|ar[o>>2])+n)):(0|ar[o>>2])!=(0|n)&&void(ar[o>>2]=n))}function Zr(A,e,r){e|=0,r|=0;var i,f,n,t,o,a,c,l,u,s=0,b=0,d=0,k=0,h=0;if(ur=(u=ur)+48|0,a=u+40|0,o=u+32|0,f=u+8|0,t=(n=u)+24|0,l=u+16|0,h=0|ar[(d=(A|=0)+4|0)>>2],c=0|ar[(s=e)>>2],s=0|ar[s+4>>2],b=0|ar[(k=r)>>2],k=0|ar[k+4>>2],i=b-c<<3,ar[d>>2]=h-s+k+i,e=d=(0|ar[A>>2])+(h>>>5<<2)|0,(0|s)!=(0|(r=31&h)))return ar[(h=f)>>2]=c,ar[h+4>>2]=s,ar[(h=n)>>2]=b,ar[h+4>>2]=k,ar[t>>2]=e,ar[4+t>>2]=r,ar[o>>2]=ar[f>>2],ar[4+o>>2]=ar[4+f>>2],ar[a>>2]=ar[n>>2],ar[4+a>>2]=ar[n+4>>2],function(A,e,r,i){A|=0,r|=0,i|=0;var f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0;if(d=0|ar[(e|=0)>>2],u=0|ar[e+4>>2],o=((0|ar[r>>2])-d<<3)+(0|ar[r+4>>2])-u|0,r=d,(0|o)<=0)return e=i+4|0,i=0|ar[i>>2],ar[A>>2]=i,i=A+4|0,A=0|ar[e>>2],ar[i>>2]=A;u?(t=-1>>>((t=32-u|0)-(l=(0|o)<(0|t)?o:t)|0)&-1<<u&ar[r>>2],f=0|ar[(s=i+4|0)>>2],n=(c=32-f|0)>>>0<l>>>0?c:l,a=0|ar[i>>2],f=ar[a>>2]&~(-1>>>(c-n|0)&-1<<f),ar[a>>2]=f,c=0|ar[s>>2],ar[a>>2]=(u>>>0<c>>>0?t<<c-u:t>>>(u-c|0))|f,f=(0|ar[s>>2])+n|0,a=a+(f>>>5<<2)|0,ar[i>>2]=a,f&=31,ar[s>>2]=f,0<(0|(c=l-n|0))&&(ar[a>>2]=t>>>(u+n|0)|ar[a>>2]&~(-1>>>(32-c|0)),ar[s>>2]=c,f=c),r=r+4|0,ar[e>>2]=r,o=o-l|0):f=0|ar[(s=f=i+4|0)>>2];if(d=32-f|0,c=-1<<f,31<(0|o)){for(l=~c,a=0|ar[i>>2],u=(b=(f=o+-32|0)>>>5)+1|0,b=f-(b<<5)|0,f=r,n=0|ar[a>>2],t=a;k=0|ar[f>>2],h=n&l,ar[t>>2]=h,ar[t>>2]=k<<ar[s>>2]|h,n=ar[(t=t+4|0)>>2]&c|k>>>d,ar[t>>2]=n,!((0|(o=o+-32|0))<=31);)f=f+4|0;r=r+(u<<2)|0,ar[e>>2]=r,ar[i>>2]=a+(u<<2),o=b}if((0|o)<=0)return k=s,h=0|ar[i>>2],ar[A>>2]=h,h=A+4|0,k=0|ar[k>>2],ar[h>>2]=k;if(t=ar[r>>2]&-1>>>(32-o|0),n=(0|d)<(0|o)?d:o,f=0|ar[i>>2],r=ar[f>>2]&~(-1<<ar[s>>2]&-1>>>(d-n|0)),ar[f>>2]=r,ar[f>>2]=r|t<<ar[s>>2],r=(0|ar[s>>2])+n|0,f=f+(r>>>5<<2)|0,ar[i>>2]=f,ar[s>>2]=31&r,(0|(r=o-n|0))<=0)return k=s,h=0|ar[i>>2],ar[A>>2]=h,h=A+4|0,k=0|ar[k>>2],ar[h>>2]=k;ar[f>>2]=ar[f>>2]&~(-1>>>(32-r|0))|t>>>n,ar[s>>2]=r,k=s,h=0|ar[i>>2],ar[A>>2]=h,h=A+4|0,k=0|ar[k>>2],ar[h>>2]=k}(l,o,a,t),void(ur=u);r=k-s+i|0,k=c,0<(0|r)&&(e=s?(e=-1>>>((e=32-s|0)-(h=(0|r)<(0|e)?r:e)|0)&-1<<s,ar[d>>2]=ar[d>>2]&~e|ar[k>>2]&e,r=r-h|0,s=31&(e=h+s|0),d=d+(e>>>5<<2)|0,k=k+4|0):(s=0,c),Gu(0|d,0|e,(b=(0|r)/32|0)<<2|0),A=r-(b<<5)|0,e=r=d+(b<<2)|0,0<(0|A)&&(s=-1>>>(32-A|0),ar[r>>2]=ar[r>>2]&~s|ar[k+(b<<2)>>2]&s,s=A)),ar[l>>2]=e,ar[4+l>>2]=s,ur=u}function Cr(A,e){A|=0,e|=0;var r,i,f=0;return ur=(i=ur)+5168|0,Qn(r=i),0|(e=0|function(A,e,r){A|=0,e|=0;var i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0;if(c=255&(0|at(r|=0,4)),tr[A+1>>0]=c,c=1+(0|at(r,3))|0,117440512<((tr[(o=A+2|0)>>0]=c)<<24|0))return 0|(A=8);if(i=255&(0|at(r,1)),tr[A+3>>0]=i,nt(A+4|0,r,0|tr[o>>0]),-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8);if(15<(0|(ar[A+472>>2]=i)))return 0|(A=8);if(-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8);3==(0|(ar[(f=A+476|0)>>2]=i))?(n=255&(0|at(r,1)),i=0|ar[f>>2]):n=0;if(tr[A+480>>0]=n,ar[A+5012>>2]=n<<24>>24==0?i:0,3<i>>>0)return Gr(e,1019,0),0|(A=8);if(-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8);if(ar[(f=A+484|0)>>2]=i,-99999==(0|(n=0|ut(r))))return Gr(e,8,0),0|(A=8);if(ar[A+488>>2]=n,i=0|ar[f>>2],0==(0|n)|0==(0|i))return 0|(A=8);if(7e4<(0|n)|7e4<(0|i))return 0|(A=8);if(c=255&(0|at(r,1)),(tr[A+492>>0]=c)<<24>>24){if(-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8);if(ar[A+496>>2]=i,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8);if(ar[A+500>>2]=i,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8);if(ar[A+504>>2]=i,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8)}else ar[A+496>>2]=0,ar[A+500>>2]=0,ar[A+504>>2]=0,i=0;if(ar[A+508>>2]=i,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8);if(ar[A+512>>2]=i+8,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8);if(ar[A+516>>2]=i+8,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8);a=i+4|0,ar[(c=A+520|0)>>2]=a,ar[A+5032>>2]=1<<a,a=255&(0|at(r,1)),(tr[(t=A+524|0)>>0]=a)<<24>>24?(i=0,l=35):(n=0|tr[o>>0],i=(n<<24>>24)-1|0);for(;;){if(35==(0|l)&&(n=0|tr[o>>0]),(0|(f=n<<24>>24))<=(0|i)){l=44;break}if(-99999==(0|(f=0|ut(r)))|15<(0|f)){l=38;break}if(ar[A+528+(i<<2)>>2]=f+1,-99999==(0|(f=0|ut(r)))){l=40;break}if(ar[(n=A+556+(i<<2)|0)>>2]=f,-99999==(0|(f=0|ut(r)))){l=42;break}ar[A+584+(i<<2)>>2]=f,ar[A+5128+(i<<2)>>2]=f+-1+(0|ar[n>>2]),i=i+1|0,l=35}{if(38==(0|l))return Gr(e,8,0),0|(A=8);if(40==(0|l))return Gr(e,8,0),0|(A=8);if(42==(0|l))return Gr(e,8,0),0|(A=8);if(44==(0|l)){if(0|tr[t>>0]&&(i=f+-1|0,8<=n<<24>>24&&br(34959,34965,317,37953),1<n<<24>>24))for(n=A+528+(i<<2)|0,t=A+556+(i<<2)|0,f=A+584+(i<<2)|0,i=0;ar[A+528+(i<<2)>>2]=ar[n>>2],ar[A+556+(i<<2)>>2]=ar[t>>2],ar[A+584+(i<<2)>>2]=ar[f>>2],(0|(i=i+1|0))<((0|tr[o>>0])-1|0););if(-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8);if(ar[(t=A+612|0)>>2]=i+3,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8);if(ar[(o=A+616|0)>>2]=i,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8);if(ar[(f=A+620|0)>>2]=i+2,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8);if(ar[(n=A+624|0)>>2]=i,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8);if(ar[A+628>>2]=i,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8);if(ar[A+632>>2]=i,6<(0|(i=0|ar[t>>2])))return 0|(A=8);if(6<((0|ar[o>>2])+i|0))return 0|(A=8);if(5<(0|(i=0|ar[f>>2])))return 0|(A=8);if(5<((0|ar[n>>2])+i|0))return 0|(A=8);a=255&(0|at(r,1)),tr[A+636>>0]=a;do{if(a<<24>>24){if(a=255&(0|at(r,1)),tr[A+637>>0]=a,i=A+638|0,!(a<<24>>24)){Sn(i);break}if(!(i=0|Mn(r,0,i,0)))break;return 0|i}}while(0);a=255&(0|at(r,1)),tr[A+4702>>0]=a,a=255&(0|at(r,1)),tr[A+4703>>0]=a,a=255&(0|at(r,1)),tr[A+4704>>0]=a;do{if(a<<24>>24){if(i=1+(0|at(r,4))&255,tr[A+4705>>0]=i,i=1+(0|at(r,4))&255,tr[A+4706>>0]=i,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8);if(ar[A+4708>>2]=i+3,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8);ar[A+4712>>2]=i,i=255&(0|at(r,1));break}tr[A+4705>>0]=0,tr[A+4706>>0]=0,ar[A+4708>>2]=0,ar[A+4712>>2]=0,i=0}while(0);if(tr[A+4716>>0]=i,-99999==(0|(o=0|ut(r))))return Gr(e,8,0),0|(A=8);if(64<o>>>0)return Gr(e,1014,0),0|(A=8);if(a=A+4720|0,t=0|ar[(n=A+4724|0)>>2],f=0|ar[a>>2],o>>>0<=(i=(t-f|0)/100|0)>>>0){do{if(o>>>0<i>>>0){if((0|t)==(0|(i=f+(100*o|0)|0)))break;ar[n>>2]=t+(100*~(((t+-100-i|0)>>>0)/100|0)|0)}}while(0);0<(0|o)&&(l=87)}else!function(A,e){e|=0;var r,i=0,f=0,n=0,t=0,o=0,a=0;if(n=0|ar[(r=8+(A|=0)|0)>>2],i=0|ar[(a=A+4|0)>>2],e>>>0<=((n-i|0)/100|0)>>>0){do{for(f=i+100|0;((or[i>>1]=0)|(i=i+2|0))<(0|f););i=100+(0|ar[a>>2])|0,ar[a>>2]=i,e=e+-1|0}while(0!=(0|e));return}f=0|ar[A>>2],42949672<(i=(t=(i-f|0)/100|0)+e|0)>>>0&&il();o=(n=(n-f|0)/100|0)<<1,i=n>>>0<21474836?o>>>0<i>>>0?i:o:42949672;do{if(i){if(!(42949672<i>>>0)){f=0|El(100*i|0);break}Fl(a=0|C(8),37845),ar[a>>2]=16004,I(0|a,3616,283)}else f=0}while(0);o=f+(100*t|0)|0,t=f+(100*i|0)|0,n=i=o;do{for(f=i+100|0;((or[i>>1]=0)|(i=i+2|0))<(0|f););n=i=n+100|0,e=e+-1|0}while(0!=(0|e));e=0|ar[A>>2],f=(0|ar[a>>2])-e|0,i=o+(100*((0|f)/-100|0)|0)|0,0<(0|f)&&Eu(0|i,0|e,0|f);if(ar[A>>2]=i,ar[a>>2]=n,ar[r>>2]=t,!e)return;Vl(e)}(a,o-i|0),l=87;A:do{if(87==(0|l)){for(i=0;;){if(!(0|Lo(e,A,r,(0|ar[a>>2])+(100*i|0)|0,i,a,0))){i=1005;break}if((0|o)<=(0|(i=i+1|0)))break A}return 0|i}}while(0);l=255&(0|at(r,1)),tr[A+4732>>0]=l;do{if(l<<24>>24){if(-99999==(0|(i=0|ut(r))))return Gr(e,8,0),0|(A=8);if(32<(0|(ar[(f=A+4736|0)>>2]=i)))return 0|(A=8);if(!(0<(0|i)))break;for(i=0;l=0|at(r,0|ar[c>>2]),ar[A+4740+(i<<2)>>2]=l,l=255&(0|at(r,1)),tr[A+4868+i>>0]=l,(0|(i=i+1|0))<(0|ar[f>>2]););}else ar[A+4736>>2]=0}while(0);l=255&(0|at(r,1)),tr[A+4900>>0]=l,l=255&(0|at(r,1)),tr[A+4901>>0]=l,l=255&(0|at(r,1)),(tr[A+4902>>0]=l)<<24>>24&&function(A,e,r,i){A|=0,e|=0,i|=0;var f,n,t=0,o=0,a=0,c=0;o=0!=(0|at(r|=0,1)),tr[A>>0]=1&o;do{if(o){if((0|(i=0|at(r,8)))<18){or[A+2>>1]=0|or[16140+(i<<2)>>1],i=0|or[16140+(i<<2)+2>>1];break}if(255==(0|i)){i=65535&(0|at(r,16)),or[A+2>>1]=i,i=65535&(0|at(r,16));break}or[A+2>>1]=0,i=0;break}or[A+2>>1]=0,i=0}while(0);or[A+4>>1]=i,o=0!=(0|at(r,1)),tr[A+6>>0]=1&o,o&&(o=0!=(0|at(r,1))&1,tr[A+7>>0]=o);if(ar[(i=A+12|0)>>2]=5,tr[(t=A+16|0)>>0]=0,tr[(f=A+18|0)>>0]=2,tr[(n=A+19|0)>>0]=2,tr[(o=A+20|0)>>0]=2,c=0!=(0|at(r,1)),tr[A+8>>0]=1&c,c&&(c=0|at(r,3),ar[i>>2]=(0|c)<5?c:5,c=0!=(0|at(r,1))&1,tr[t>>0]=c,c=0!=(0|at(r,1)),tr[A+17>>0]=1&c,c)){switch(i=0|at(r,8),c=255&i,(tr[f>>0]=c)<<24>>24){case 3:case 0:a=14;break;default:10<(255&i)>>>0&&(a=14)}switch(14==(0|a)&&(tr[f>>0]=2),i=0|at(r,8),c=255&i,(tr[n>>0]=c)<<24>>24){case 3:case 0:a=17;break;default:17<(254&i)>>>0&&(a=17)}17==(0|a)&&(tr[n>>0]=2),c=0|at(r,8),tr[o>>0]=9<((255&c)-1|0)>>>0?2:255&c}c=0!=(0|at(r,1)),tr[A+21>>0]=1&c;do{if(c){if(-99999==(0|(i=0|ut(r))))return Gr(e,8,0),c=8;if(tr[A+22>>0]=i,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),c=8;i&=255;break}tr[A+22>>0]=0,i=0}while(0);if(tr[A+23>>0]=i,c=0!=(0|at(r,1))&1,tr[A+24>>0]=c,c=0!=(0|at(r,1))&1,tr[A+25>>0]=c,c=0!=(0|at(r,1))&1,tr[A+26>>0]=c,c=0!=(0|at(r,1)),tr[A+27>>0]=1&c,c){if(-99999==(0|(i=0|ut(r))))return Gr(e,8,0),c=8;if(ar[A+28>>2]=i,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),c=8;if(ar[A+32>>2]=i,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),c=8;if(ar[A+36>>2]=i,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),c=8}else ar[A+28>>2]=0,ar[A+32>>2]=0,ar[A+36>>2]=0,i=0;ar[A+40>>2]=i,c=0!=(0|at(r,1)),tr[A+44>>0]=1&c,c&&(c=0|at(r,32),ar[A+48>>2]=c,c=0|at(r,32),ar[A+52>>2]=c);if(i=0!=(0|at(r,1))&1,tr[A+56>>0]=i,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),c=8;if(ar[A+60>>2]=i+1,c=0!=(0|at(r,1)),tr[A+64>>0]=1&c,c)return c=502;c=0!=(0|at(r,1)),tr[A+65>>0]=1&c;do{if(c){if(i=0!=(0|at(r,1))&1,tr[A+66>>0]=i,i=0!=(0|at(r,1))&1,tr[A+67>>0]=i,i=0!=(0|at(r,1))&1,tr[A+68>>0]=i,-99999==(0|(i=0|ut(r))))return Gr(e,8,0),c=8;if(4095<(61440&(or[(t=A+70|0)>>1]=i))>>>0&&(Gr(e,8,0),or[t>>1]=0),-99999==(0|(i=0|ut(r))))return Gr(e,8,0),c=8;if(16<(255&(tr[(t=A+72|0)>>0]=i))>>>0&&(Gr(e,8,0),tr[t>>0]=2),-99999==(0|(i=0|ut(r))))return Gr(e,8,0),c=8;if(16<(255&(tr[(t=A+73|0)>>0]=i))>>>0&&(Gr(e,8,0),tr[t>>0]=1),-99999==(0|(i=0|ut(r))))return Gr(e,8,0),c=8;if(15<(240&(tr[(t=A+74|0)>>0]=i))>>>0&&(Gr(e,8,0),tr[t>>0]=15),-99999==(0|(t=0|ut(r))))return Gr(e,8,0),c=8;if(15<(240&(tr[(i=A+75|0)>>0]=t))>>>0){Gr(e,8,0);break}return c=0}tr[A+66>>0]=0,tr[A+67>>0]=1,tr[A+68>>0]=0,or[A+70>>1]=0,tr[A+72>>0]=2,tr[A+73>>0]=1,tr[A+74>>0]=15,i=A+75|0}while(0);tr[i>>0]=15,c=0}(A+4904|0,e,r,A),e=255&(0|at(r,1)),tr[A+4980>>0]=e;do{if(e<<24>>24){if(l=255&(0|at(r,1)),tr[(e=A+4981|0)>>0]=l,l=255&(0|at(r,1)),tr[A+4982>>0]=l,l=255&(0|at(r,6)),tr[A+4983>>0]=l,!(0|tr[e>>0]))break;Un(A+4984|0,0,r)}else tr[A+4981>>0]=0}while(0);return 0|(i=0|function(A){var e,r,i,f,n,t,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0;b=0|ar[476+(A|=0)>>2],a=0|ar[6332+(b<<2)>>2],ar[A+5016>>2]=a,c=0|ar[6348+(b<<2)>>2],ar[A+5020>>2]=c,d=0==(0|ar[A+5012>>2]),ar[A+5024>>2]=d?1:a,ar[A+5028>>2]=d?1:c,d=0|ar[A+512>>2],ar[A+4996>>2]=d,ar[A+5e3>>2]=(6*d|0)-48,e=0|ar[A+516>>2],ar[A+5004>>2]=e,ar[A+5008>>2]=(6*e|0)-48,r=0|ar[A+612>>2],ar[A+5036>>2]=r,i=(0|ar[A+616>>2])+r|0,ar[A+5040>>2]=i,f=1<<r,ar[A+5044>>2]=f,o=1<<i,ar[A+5048>>2]=o,n=0|ar[A+484>>2],s=(f-1+n|0)/(0|f)|0,ar[A+5052>>2]=s,l=(n-1+o|0)/(0|o)|0,ar[A+5056>>2]=l,t=0|ar[A+488>>2],k=((u=t-1|0)+f|0)/(0|f)|0,ar[A+5060>>2]=k,u=(u+o|0)/(0|o)|0,ar[A+5064>>2]=u,s=0|sr(k,s),ar[A+5068>>2]=s,s=0|sr(u,l),ar[A+5072>>2]=s,s=0|sr(t,n),ar[A+5076>>2]=s,o=0!=(0|b)&&0==(0|tr[A+480>>0])?(ar[A+5080>>2]=(0|o)/(0|a)|0,(0|o)/(0|c)|0):(ar[A+5080>>2]=0,0);if(ar[A+5084>>2]=o,s=0|ar[A+620>>2],ar[A+5100>>2]=s,b=(0|ar[A+624>>2])+s|0,ar[A+5104>>2]=b,o=i-s|0,(0|ar[A+628>>2])>(0|o))return 0|(k=8);if((0|ar[A+632>>2])>(0|o))return 0|(k=8);k=r-1|0,ar[A+5108>>2]=k,k=i-k|0,ar[A+5112>>2]=l<<k,ar[A+5116>>2]=u<<k,k=0|ar[A+4708>>2],ar[A+5120>>2]=k,ar[A+5124>>2]=(0|ar[A+4712>>2])+k,k=l<<o,ar[A+5088>>2]=k,u<<=o,ar[A+5092>>2]=u,k=0|sr(u,k),ar[A+5096>>2]=k,l=0|tr[A+4990>>0]?(a=o=0,c=1<<e-1,1<<d+-1):(o=248+e&255,a=d+248&255,c=128);if(tr[A+5156>>0]=a,tr[A+5157>>0]=o,ar[A+5160>>2]=l,ar[A+5164>>2]=c,(0|n)%(0|f)|0)return 0|(k=8);if(0!=((0|t)%(0|f)|0)|(0|r)<(0|s))return 0|(k=8);if((0|((0|i)<5?i:5))<(0|b)|8<(d+-8|0)>>>0|8<(e-8|0)>>>0)return 0|(k=8);return tr[A>>0]=1,(k=0)|k}(A))?0|(A=i):(tr[A>>0]=1,(A=0)|A)}}return 0}(r,A+4|0,e))?(A=e,Tn(r),ur=i,0|A):(-1<(0|(e=0|ar[A+516>>2]))&&function(A,e){A|=0;var r,i,f,n,t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_,F,N,R,Y,J,D,Q,T,M,S,U,O,H,x,j,z,P,L,K=0,q=0,$=0,AA=0,eA=0,rA=0,iA=0,fA=0,nA=0,tA=0,oA=0,aA=0,cA=0,lA=0,uA=0,sA=0;switch(ur=(L=ur)+496|0,P=L+480|0,z=L+472|0,j=L+464|0,x=L+456|0,H=L+448|0,O=L+440|0,U=L+432|0,S=L+424|0,M=L+416|0,T=L+408|0,Q=L+400|0,D=L+392|0,sA=L+384|0,J=L+376|0,Y=L+368|0,R=L+360|0,N=L+344|0,lA=L+336|0,cA=L+328|0,_=L+320|0,X=L+312|0,Z=L+304|0,y=L+296|0,p=L+288|0,m=L+280|0,V=L+272|0,G=L+264|0,aA=L+256|0,E=L+248|0,B=L+240|0,I=L+232|0,h=L+224|0,k=L+216|0,d=L+208|0,b=L+200|0,oA=L+192|0,tA=L+184|0,W=L+176|0,C=L+168|0,g=L+160|0,v=L+152|0,w=L+144|0,nA=L+136|0,s=L+128|0,u=L+120|0,l=L+112|0,c=L+104|0,a=L+96|0,o=L+88|0,t=L+80|0,n=L+72|0,fA=L+64|0,f=L+56|0,i=L+48|0,r=L+40|0,rA=L+32|0,eA=L+24|0,AA=L+16|0,$=L+8|0,q=L,0|(e|=0)){case 1:K=8516;break;case 2:K=9020;break;default:return ur=L}switch(ft(F=0|ar[K>>2],35191,q),ar[$>>2]=tr[A+1>>0],ft(F,35232,$),iA=A+2|0,ar[AA>>2]=tr[iA>>0],ft(F,35262,AA),ar[eA>>2]=tr[A+3>>0],ft(F,35292,eA),function(A,e,r){e|=0;var i,f,n;{if(ur=(n=ur)+16|0,f=n,ot(A|=0,1,r|=0),i=e+-1|0,!(1<(0|e)))return ur=n;e=0}for(;ar[f>>2]=e,ft(r,38175,f),ot(A+52+(52*e|0)|0,0,r),e=e+1|0,(0|e)!=(0|i););ur=n}(A+4|0,0|tr[iA>>0],F),ar[rA>>2]=ar[A+472>>2],ft(F,35327,rA),0|(q=0|ar[(K=A+476|0)>>2])){case 0:$=35371;break;case 1:$=35382;break;case 2:$=35388;break;default:$=3==(0|q)?35357:35363}ar[r>>2]=q,ar[4+r>>2]=$,ft(F,35394,r),3==(0|ar[K>>2])&&(ar[i>>2]=tr[A+480>>0],ft(F,35429,i));ar[f>>2]=ar[A+484>>2],ft(F,35462,f),ar[fA>>2]=ar[A+488>>2],ft(F,35495,fA),fA=A+492|0,ar[n>>2]=tr[fA>>0],ft(F,35528,n),0|tr[fA>>0]&&(ar[t>>2]=ar[A+496>>2],ft(F,35561,t),ar[o>>2]=ar[A+500>>2],ft(F,35589,o),ar[a>>2]=ar[A+504>>2],ft(F,35617,a),ar[c>>2]=ar[A+508>>2],ft(F,35645,c));if(ar[l>>2]=ar[A+512>>2],ft(F,35673,l),ar[u>>2]=ar[A+516>>2],ft(F,35696,u),ar[s>>2]=ar[A+520>>2],ft(F,35719,s),K=A+524|0,ar[nA>>2]=tr[K>>0],ft(F,35752,nA),nA=0|tr[iA>>0],(0|(K=0==(0|tr[K>>0])?(nA<<24>>24)-1|0:0))<(nA<<24>>24|0))for(;ar[b>>2]=K,ft(F,36082,b),ar[d>>2]=ar[A+528+(K<<2)>>2],ft(F,36092,d),ar[k>>2]=ar[A+556+(K<<2)>>2],ft(F,36131,k),ar[h>>2]=ar[A+584+(K<<2)>>2],ft(F,36170,h),K=K+1|0,(0|K)<(0|tr[iA>>0]););iA=A+612|0,ar[w>>2]=ar[iA>>2],ft(F,35799,w),rA=A+616|0,ar[v>>2]=ar[rA>>2],ft(F,35837,v),eA=A+620|0,ar[g>>2]=ar[eA>>2],ft(F,35884,g),AA=A+624|0,ar[C>>2]=ar[AA>>2],ft(F,35922,C),ar[W>>2]=ar[A+628>>2],ft(F,35967,W),ar[tA>>2]=ar[A+632>>2],ft(F,36009,tA),tA=A+636|0,ar[oA>>2]=tr[tA>>0],ft(F,36051,oA),0|tr[tA>>0]&&(oA=A+637|0,ar[I>>2]=tr[oA>>0],ft(F,36209,I),0|tr[oA>>0])&&ft(F,36250,B);ar[E>>2]=tr[A+4702>>0],ft(F,36294,E),ar[aA>>2]=tr[A+4703>>0],ft(F,36336,aA),aA=A+4704|0,ar[G>>2]=tr[aA>>0],ft(F,36378,G),0|tr[aA>>0]&&(ar[V>>2]=tr[A+4705>>0],ft(F,36420,V),ar[m>>2]=tr[A+4706>>0],ft(F,36456,m),ar[p>>2]=ar[A+4708>>2],ft(F,36492,p),ar[y>>2]=ar[A+4712>>2],ft(F,36534,y),ar[Z>>2]=tr[A+4716>>0],ft(F,36585,Z));if(q=A+4720|0,$=A+4724|0,ar[X>>2]=((0|ar[$>>2])-(0|ar[q>>2])|0)/100|0,ft(F,36621,X),(0|ar[$>>2])!=(0|ar[q>>2]))for(K=0;ar[cA>>2]=K,ft(F,36693,cA),Ko((0|ar[q>>2])+(100*K|0)|0,16,F),(K=K+1|0)>>>0<(((0|ar[$>>2])-(0|ar[q>>2])|0)/100|0)>>>0;);if(cA=A+4732|0,ar[_>>2]=tr[cA>>0],ft(F,36655,_),0|tr[cA>>0]&&(uA=A+4736|0,ar[lA>>2]=ar[uA>>2],ft(F,36714,lA),0<(0|ar[uA>>2])))for(K=0;cA=0|ar[A+4740+(K<<2)>>2],lA=0|tr[A+4868+K>>0],ar[N>>2]=K,ar[4+N>>2]=cA,ar[8+N>>2]=lA,ft(F,36747,N),(0|(K=K+1|0))<(0|ar[uA>>2]););ar[R>>2]=tr[A+4900>>0],ft(F,36816,R),ar[Y>>2]=tr[A+4901>>0],ft(F,36857,Y),K=A+4902|0,ar[J>>2]=tr[K>>0],ft(F,36898,J),ar[sA>>2]=tr[A+4980>>0],ft(F,36939,sA),sA=A+4981|0,ar[D>>2]=tr[sA>>0],ft(F,36975,D),ar[Q>>2]=tr[A+4982>>0],ft(F,37011,Q),ar[T>>2]=tr[A+4983>>0],ft(F,37047,T),ar[M>>2]=ar[A+5048>>2],ft(F,37083,M),ar[S>>2]=ar[A+5044>>2],ft(F,37102,S),ar[U>>2]=1<<(0|ar[rA>>2])+(0|ar[iA>>2]),ft(F,37121,U),ar[O>>2]=1<<ar[eA>>2],ft(F,37140,O),ar[H>>2]=1<<(0|ar[AA>>2])+(0|ar[eA>>2]),ft(F,37159,H),ar[x>>2]=ar[A+5056>>2],ft(F,37178,x),ar[j>>2]=ar[A+5064>>2],ft(F,37208,j),ar[z>>2]=ar[A+5016>>2],ft(F,37238,z),ar[P>>2]=ar[A+5020>>2],ft(F,37268,P),0|tr[sA>>0]&&function(A,e){A|=0;var r,i,f,n,t,o,a,c,l,u,s;switch(ur=(s=ur)+80|0,a=s+72|0,o=s+64|0,t=s+56|0,n=s+48|0,f=s+40|0,u=s+32|0,l=s+24|0,c=s+16|0,i=s+8|0,r=s,0|(e|=0)){case 1:e=8516;break;case 2:e=9020;break;default:return ur=s}ft(e=0|ar[e>>2],37298,r),ar[i>>2]=cr[A>>0],ft(e,37355,i),ar[c>>2]=cr[A+1>>0],ft(e,37401,c),ar[l>>2]=cr[A+2>>0],ft(e,37447,l),ar[u>>2]=cr[A+3>>0],ft(e,37493,u),ar[f>>2]=cr[A+4>>0],ft(e,37539,f),ar[n>>2]=cr[A+5>>0],ft(e,37585,n),ar[t>>2]=cr[A+6>>0],ft(e,37631,t),ar[o>>2]=cr[A+7>>0],ft(e,37677,o),ar[a>>2]=cr[A+8>>0],ft(e,37723,a),ur=s}(A+4984|0,e);0|tr[K>>0]&&function(A,e){A|=0;var r,i,f,n,t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_,F,N,R,Y=0,J=0,D=0,Q=0,T=0;switch(ur=(R=ur)+304|0,a=R+288|0,o=R+280|0,t=R+272|0,N=R+264|0,F=R+256|0,_=R+248|0,X=R+240|0,V=R+232|0,G=R+224|0,T=R+216|0,E=R+208|0,B=R+200|0,I=R+192|0,W=R+184|0,C=R+176|0,Q=R+168|0,Z=R+160|0,y=R+152|0,p=R+144|0,m=R+136|0,g=R+128|0,v=R+120|0,w=R+112|0,h=R+104|0,k=R+96|0,d=R+88|0,D=R+80|0,b=R+72|0,s=R+64|0,u=R+56|0,l=R+48|0,c=R+40|0,f=R+32|0,J=R+24|0,n=R+16|0,i=R+8|0,Y=R,0|(e|=0)){case 1:e=8516;break;case 2:e=9020;break;default:return ur=R}if(ft(r=0|ar[e>>2],39295,Y),Y=0|lr[A+4>>1],ar[i>>2]=lr[A+2>>1],ar[4+i>>2]=Y,ft(r,39336,i),ar[n>>2]=cr[A+6>>0],ft(r,39372,n),ar[J>>2]=cr[A+7>>0],ft(r,39405,J),J=A+8|0,ar[f>>2]=cr[J>>0],ft(r,39438,f),0|tr[J>>0]){switch(0|ar[A+12>>2]){case 0:e=39285;break;case 1:e=39281;break;case 2:e=39276;break;case 3:e=39270;break;case 4:e=39266;break;default:e=39254}ar[c>>2]=e,ft(r,39474,c),ar[l>>2]=cr[A+16>>0],ft(r,39510,l),ar[u>>2]=cr[A+17>>0],ft(r,39546,u),ar[s>>2]=cr[A+18>>0],ft(r,39586,s),ar[b>>2]=cr[A+19>>0],ft(r,39622,b),ar[D>>2]=cr[A+20>>0],ft(r,39658,D)}D=A+21|0,ar[d>>2]=cr[D>>0],ft(r,39694,d),0|tr[D>>0]&&(ar[k>>2]=cr[A+22>>0],ft(r,39728,k),ar[h>>2]=cr[A+23>>0],ft(r,39771,h));ar[w>>2]=cr[A+24>>0],ft(r,39814,w),ar[v>>2]=cr[A+25>>0],ft(r,39850,v),ar[g>>2]=cr[A+26>>0],ft(r,39886,g),ar[m>>2]=cr[A+27>>0],ft(r,39922,m),ar[p>>2]=ar[A+28>>2],ft(r,39958,p),ar[y>>2]=ar[A+32>>2],ft(r,39994,y),ar[Z>>2]=ar[A+36>>2],ft(r,40030,Z),ar[Q>>2]=ar[A+40>>2],ft(r,40066,Q),Q=A+44|0,ar[C>>2]=cr[Q>>0],ft(r,40102,C),0|tr[Q>>0]&&(ar[W>>2]=ar[A+48>>2],ft(r,40138,W),ar[I>>2]=ar[A+52>>2],ft(r,40174,I));ar[B>>2]=cr[A+56>>0],ft(r,40210,B),ar[E>>2]=ar[A+60>>2],ft(r,40252,E),ar[T>>2]=cr[A+64>>0],ft(r,40294,T),T=A+65|0,ar[G>>2]=cr[T>>0],ft(r,40332,G),0|tr[T>>0]&&(ar[V>>2]=cr[A+66>>0],ft(r,40373,V),ar[X>>2]=cr[A+67>>0],ft(r,40414,X),ar[_>>2]=cr[A+68>>0],ft(r,40462,_),ar[F>>2]=lr[A+70>>1],ft(r,40503,F),ar[N>>2]=cr[A+72>>0],ft(r,40544,N),ar[t>>2]=cr[A+73>>0],ft(r,40585,t),ar[o>>2]=cr[A+74>>0],ft(r,40626,o),ar[a>>2]=cr[A+75>>0],ft(r,40667,a)),ur=R}(A+4904|0,e),ur=L}(r,e),Eu(0|(f=A+11096+(5168*(e=0|ar[r+472>>2])|0)|0),0|r,4717),(0|f)!=(0|r)&&Wr(A+11096+(5168*e|0)+4720|0,0|ar[r+4720>>2],0|ar[r+4724>>2]),Eu(A+11096+(5168*e|0)+4732|0,r+4732|0,436),f=0,Tn(r),ur=i,0|f)}function Wr(A,e,r){var i,f,n,t=0,o=0,a=0,c=0,l=0;if((a=(0|(c=(i=r|=0)-(e|=0)|0))/100|0)>>>0<=(((t=0|ar[(f=(A|=0)+8|0)>>2])-(n=l=0|ar[A>>2])|0)/100|0)>>>0)return 0|(t=(o=a=(A=(o=((0|ar[(c=A+4|0)>>2])-l|0)/100|0)>>>0<a>>>0)?e+(100*o|0)|0:r)-e|0)&&Gu(0|l,0|e,0|t),r=n+(100*((0|t)/100|0)|0)|0,A?!((0|(t=i-o|0))<=0)&&(Eu(0|ar[c>>2],0|a,0|t),void(ar[c>>2]=(0|ar[c>>2])+(100*((t>>>0)/100|0)|0))):(0|(t=0|ar[c>>2]))!=(0|r)&&void(ar[c>>2]=t+(100*~(((t+-100-r|0)>>>0)/100|0)|0));(o=l)&&((0|(r=0|ar[(t=A+4|0)>>2]))!=(0|n)&&(ar[t>>2]=r+(100*~(((r+-100-l|0)>>>0)/100|0)|0)),Vl(o),ar[f>>2]=0,ar[t>>2]=0,t=ar[A>>2]=0),42949672<a>>>0&&il(),t=(l=(0|t)/100|0)<<1,42949672<(t=l>>>0<21474836?t>>>0<a>>>0?a:t:42949672)>>>0&&il(),r=0|El(100*t|0),ar[(o=A+4|0)>>2]=r,ar[A>>2]=r,ar[f>>2]=r+(100*t|0),(0|c)<=0||(Eu(0|r,0|e,0|c),ar[o>>2]=r+(100*((c>>>0)/100|0)|0))}function Ir(A,e){A|=0,e|=0;var r,i,f,n=0;return ur=(f=ur)+4400|0,_o(i=f),r=0|function(A,e,r){e|=0,r|=0;var i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0;if(Fo(A|=0,0),u=0|ut(e),63<(0|(tr[A+1>>0]=u))|-99999==(0|u))return Gr(r+4|0,1009,0),(r=0)|r;if(u=0|ut(e),63<(0|(tr[(n=A+2|0)>>0]=u))|-99999==(0|u))return Gr(r+4|0,1010,0),(r=0)|r;if(u=255&(0|at(e,1)),tr[A+3>>0]=u,u=255&(0|at(e,1)),tr[A+31>>0]=u,u=255&(0|at(e,3)),tr[A+4132>>0]=u,u=255&(0|at(e,1)),tr[A+4>>0]=u,u=255&(0|at(e,1)),tr[A+5>>0]=u,u=0|ut(e),i=255&u,tr[(f=A+6|0)>>0]=i,-99999==(0|u))return Gr(r+4|0,1006,0),(r=0)|r;if(tr[f>>0]=i+1<<24>>24,u=0|ut(e),i=255&u,tr[(f=A+7|0)>>0]=i,-99999==(0|u))return Gr(r+4|0,1006,0),(r=0)|r;if(tr[f>>0]=i+1<<24>>24,l=0|tr[n>>0],!(0|tr[(u=r+11096+(5168*l|0)|0)>>0]))return Gr(r+4|0,1010,0),(r=0)|r;if(i=0|st(e),-99999==(0|(ar[(f=A+8|0)>>2]=i)))return Gr(r+4|0,1006,0),(r=0)|r;if(ar[f>>2]=i+26,c=255&(0|at(e,1)),tr[A+12>>0]=c,c=255&(0|at(e,1)),tr[A+13>>0]=c,c=255&(0|at(e,1)),(tr[A+14>>0]=c)<<24>>24){if(c=0|ut(e),-99999==(0|(ar[A+16>>2]=c)))return Gr(r+4|0,1006,0),(r=0)|r}else ar[A+16>>2]=0;if(c=0|st(e),-99999==(0|(ar[A+20>>2]=c)))return Gr(r+4|0,1006,0),(r=0)|r;if(c=0|st(e),-99999==(0|(ar[A+24>>2]=c)))return Gr(r+4|0,1006,0),(r=0)|r;if(a=255&(0|at(e,1)),tr[A+28>>0]=a,a=255&(0|at(e,1)),tr[A+29>>0]=a,a=255&(0|at(e,1)),tr[A+30>>0]=a,a=255&(0|at(e,1)),tr[A+32>>0]=a,a=255&(0|at(e,1)),tr[(c=A+34|0)>>0]=a,a=255&(0|at(e,1)),tr[A+33>>0]=a,0|tr[c>>0]){if(i=0|ut(e),-99999==(0|(ar[(a=A+36|0)>>2]=i))|9<(0|i))return Gr(r+4|0,1006,0),(r=0)|r;if(ar[a>>2]=i+1,i=0|ut(e),-99999==(0|(ar[(c=A+40|0)>>2]=i))|9<(0|i))return Gr(r+4|0,1006,0),(r=0)|r;ar[c>>2]=i+1,o=0|at(e,1),tr[A+44>>0]=o;do{if(!(255&o)){n=0|ar[r+11096+(5168*l|0)+5056>>2],f=0|ar[r+11096+(5168*l|0)+5064>>2],o=0|ar[a>>2],i=o+-1|0;A:do{if(1<(0|o)){for(o=0;i=0|ut(e),-99999!=(0|(ar[(t=A+4172+(o<<2)|0)>>2]=i));)if(i=i+1|0,ar[t>>2]=i,n=n-i|0,o=o+1|0,(0|(i=(0|ar[a>>2])-1|0))<=(0|o))break A;return Gr(r+4|0,1006,0),(r=0)|r}}while(0);if((0|n)<1)return(r=0)|r;ar[A+4172+(i<<2)>>2]=n,a=0|ar[c>>2],i=a+-1|0;A:do{if(1<(0|a)){for(t=0;i=0|ut(e),-99999!=(0|(ar[(n=A+4212+(t<<2)|0)>>2]=i));)if(i=i+1|0,ar[n>>2]=i,f=f-i|0,t=t+1|0,(0|(i=(0|ar[c>>2])-1|0))<=(0|t))break A;return Gr(r+4|0,1006,0),(r=0)|r}}while(0);if((0|f)<1)return(r=0)|r;ar[A+4212+(i<<2)>>2]=f;break}}while(0);i=255&(0|at(e,1))}else ar[A+36>>2]=1,ar[A+40>>2]=1,tr[A+44>>0]=1,i=0;tr[A+45>>0]=i,ar[(i=A+52|0)>>2]=0,ar[(n=A+56|0)>>2]=0,c=255&(0|at(e,1)),tr[A+46>>0]=c,c=255&(0|at(e,1)),tr[A+47>>0]=c;do{if(c<<24>>24){if(c=255&(0|at(e,1)),tr[A+48>>0]=c,c=255&(0|at(e,1)),!((tr[A+49>>0]=c)<<24>>24)){if(f=0|st(e),-99999==(0|(ar[i>>2]=f)))return Gr(r+4|0,1006,0),(r=0)|r;if(ar[i>>2]=f<<1,i=0|st(e),-99999==(0|(ar[n>>2]=i)))return Gr(r+4|0,1006,0),(r=0)|r;ar[n>>2]=i<<1;break}}else tr[A+48>>0]=0,tr[A+49>>0]=0}while(0);if(c=0|at(e,1),i=255&c,tr[A+60>>0]=i,0!=(255&c|0)&&0==(0|tr[r+11096+(5168*l|0)+636>>0]))return Gr(r+4|0,1006,0),(r=0)|r;if(i<<24>>24){if(0|(i=0|Mn(e,u,A+61|0,1)))return Gr(r+4|0,i,0),(r=0)|r}else Eu(A+61|0,r+11096+(5168*l|0)+638|0,4064);if(i=255&(0|at(e,1)),tr[A+4125>>0]=i,i=0|ut(e),-99999==(0|(ar[(f=A+4128|0)>>2]=i)))return Gr(r+4|0,1006,0),(r=0)|r;if(ar[f>>2]=i+2,(0|i)>((0|ar[r+11096+(5168*l|0)+612>>2])-2+(0|ar[r+11096+(5168*l|0)+616>>2])|0))return(r=0)|r;return l=255&(0|at(e,1)),tr[A+4133>>0]=l,l=255&(0|at(e,1)),!((tr[A+4134>>0]=l)<<24>>24&&(c=255&(0|at(e,1)),tr[(l=A+4135|0)>>0]=c,c=255&(0|at(e,1)),tr[A+4136>>0]=c,c=255&(0|at(e,6)),tr[A+4137>>0]=c,0|tr[l>>0]))||0|function(A,e,r,i){A|=0,e|=0,r|=0;var f,n=0,t=0,o=0;f=0|tr[2+(i|=0)>>0],0|tr[i+13>>0]&&(t=2+(0|ut(e))&255,tr[A>>0]=t);t=0!=(0|at(e,1)),tr[A+1>>0]=1&t,3==(0|ar[(n=r+11096+(5168*f|0)+5012|0)>>2])|1^t||Gr(r+4|0,1006,0);o=0!=(0|at(e,1)),i=1&o,tr[(t=A+2|0)>>0]=i,0!=(0|ar[n>>2])|1^o||(Gr(r+4|0,1006,0),i=0|tr[t>>0]);A:do{if(i<<24>>24){if(-99999!=(0|(i=0|ut(e)))&&(0|i)<=(0|ar[r+11096+(5168*f|0)+616>>2])){if(tr[A+3>>0]=i,-99999==(0|(i=0|ut(e)))|5<(0|i))return Gr(r+4|0,1006,0),(o=0)|o;if(o=i+1|0,!(255&(tr[(t=A+4|0)>>0]=o)))break;for(n=0;;){if(24<((i=0|st(e))+12|0)>>>0){i=15;break}if(tr[A+5+n>>0]=i,24<((i=0|st(e))+12|0)>>>0){i=17;break}if(tr[A+11+n>>0]=i,(0|(n=n+1|0))>=(0|cr[t>>0]))break A}if(15==(0|i))return Gr(r+4|0,1006,0),(o=0)|o;if(17==(0|i))return Gr(r+4|0,1006,0),(o=0)|o}return Gr(r+4|0,1006,0),(o=0)|o}}while(0);if(-99999!=(0|(i=0|ut(e)))&&(o=0|ar[r+11096+(5168*f|0)+4996>>2],(0|i)<=(0|((0|o)<10?0:o+-10|0))))return tr[A+17>>0]=i,-99999!=(0|(i=0|ut(e)))&&(o=0|ar[r+11096+(5168*f|0)+5004>>2],(0|i)<=(0|((0|o)<10?0:o+-10|0)))?(tr[A+18>>0]=i,0|(o=1)):(Gr(r+4|0,1006,0),(o=0)|o);return Gr(r+4|0,1006,0),(o=0)|o}(A+4138|0,e,r,A)?(function(A,e){A|=0;var r,i,f,n,t,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0;if(t=ur,Z=0|ar[(n=5040+(e|=0)|0)>>2],ar[A+4160>>2]=Z-(0|ar[A+16>>2]),ar[A+4164>>2]=Z-(0|cr[A+4141>>0]),ar[A+4168>>2]=cr[A+4138>>0],Z=A+36|0,0|tr[A+44>>0]){if(a=0|ar[Z>>2],ur=(l=ur)+(15+(4+(a<<2)|0)&-16)|0,0<=(0|a)){for(c=0|ar[e+5056>>2],o=0;C=(0|sr(c,o))/(0|a)|0,ar[l+(o<<2)>>2]=C,(0|o)!=(0|a);)o=o+1|0;if(0<(0|a))for(a=(o=0)|ar[l>>2];y=a,a=0|ar[l+((o=(C=o)+1|0)<<2)>>2],ar[A+4172+(C<<2)>>2]=a-y,(0|o)<(0|ar[Z>>2]););}if(a=0|ar[(l=A+40|0)>>2],ur=(u=ur)+(15+(4+(a<<2)|0)&-16)|0,0<=(0|a)){for(c=0|ar[e+5064>>2],o=0;C=(0|sr(c,o))/(0|a)|0,ar[u+(o<<2)>>2]=C,(0|o)!=(0|a);)o=o+1|0;if(0<(0|a))for(a=(o=0)|ar[u>>2];y=a,a=0|ar[u+((o=(C=o)+1|0)<<2)>>2],ar[A+4212+(C<<2)>>2]=a-y,(0|o)<(0|ar[l>>2]););}}if(ar[A+4252>>2]=0,0<(0|ar[Z>>2]))for(a=o=0;a=(0|ar[A+4172+(o<<2)>>2])+a|0,ar[A+4252+((o=o+1|0)<<2)>>2]=a,(0|o)<(0|ar[Z>>2]););if(ar[A+4296>>2]=0,0<(0|ar[(y=A+40|0)>>2]))for(a=o=0;o=(0|ar[A+4212+(a<<2)>>2])+o|0,ar[A+4296+((a=a+1|0)<<2)>>2]=o,(0|a)<(0|ar[y>>2]););C=A+4340|0,a=0|ar[(v=e+5072|0)>>2],u=0|ar[(o=A+4344|0)>>2],l=0|ar[C>>2],a>>>0<=(c=u-l>>2)>>>0?a>>>0<c>>>0&&(0|u)!=(0|(s=l+(a<<2)|0))&&(ar[o>>2]=u+(~((u+-4-s|0)>>>2)<<2)):(Ro(C,a-c|0),a=0|ar[v>>2]);w=A+4352|0,l=0|ar[(u=A+4356|0)>>2],c=0|ar[w>>2],a>>>0<=(o=l-c>>2)>>>0?a>>>0<o>>>0&&(0|l)!=(0|(b=c+(a<<2)|0))&&(ar[u>>2]=l+(~((l+-4-b|0)>>>2)<<2)):(Ro(w,a-o|0),a=0|ar[v>>2]);i=A+4364|0,u=0|ar[(o=A+4368|0)>>2],l=0|ar[i>>2],a>>>0<=(c=u-l>>2)>>>0?a>>>0<c>>>0&&(0|u)!=(0|(d=l+(a<<2)|0))&&(ar[o>>2]=u+(~((u+-4-d|0)>>>2)<<2)):(Ro(i,a-c|0),a=0|ar[v>>2]);r=A+4376|0,u=0|ar[(o=A+4380|0)>>2],l=0|ar[r>>2],a>>>0<=(c=u-l>>2)>>>0?a>>>0<c>>>0&&(0|u)!=(0|(k=l+(a<<2)|0))&&(ar[o>>2]=u+(~((u+-4-k|0)>>>2)<<2)):Ro(r,a-c|0);f=A+4388|0,o=0|ar[e+5096>>2],u=0|ar[(a=A+4392|0)>>2],l=0|ar[f>>2],o>>>0<=(c=u-l>>2)>>>0?o>>>0<c>>>0&&(0|u)!=(0|(h=l+(o<<2)|0))&&(ar[a>>2]=u+(~((u+-4-h|0)>>>2)<<2)):Ro(f,o-c|0);A:do{if(0<(0|ar[v>>2])){for(d=e+5056|0,b=0;;){if(h=0|ar[d>>2],k=(0|b)%(0|h)|0,h=(0|b)/(0|h)|0,0<(0|(c=0|ar[Z>>2])))for(a=0,o=-1;o=(0|k)<(0|ar[A+4252+(a<<2)>>2])?o:a,(0|(a=a+1|0))<(0|c););else o=-1;if(0<(0|(l=0|ar[y>>2])))for(c=0,a=-1;a=(0|h)<(0|ar[A+4296+(c<<2)>>2])?a:c,(0|(c=c+1|0))<(0|l););else a=-1;if(s=(0|ar[C>>2])+(b<<2)|0,(ar[s>>2]=0)<(0|o))for(u=A+4212+(a<<2)|0,c=l=0;c=c+(0|sr(0|ar[A+4172+(l<<2)>>2],0|ar[u>>2]))|0,ar[s>>2]=c,(0|(l=l+1|0))!=(0|o););else c=0;if(0<(0|a))for(l=0;c=c+(0|sr(0|ar[A+4212+(l<<2)>>2],0|ar[d>>2]))|0,ar[s>>2]=c,(0|(l=l+1|0))!=(0|a););if((a|o|0)<=-1)break;if(p=c+(0|sr(h-(0|ar[A+4296+(a<<2)>>2])|0,0|ar[A+4172+(o<<2)>>2]))|0,ar[s>>2]=p,p=k-(0|ar[A+4252+(o<<2)>>2])+p|0,ar[s>>2]=p,(0|(b=(ar[(0|ar[w>>2])+(p<<2)>>2]=b)+1|0))>=(0|ar[v>>2]))break A}br(30690,30711,618,30718)}}while(0);if(0<(0|(o=0|ar[y>>2]))){p=e+5056|0,a=(c=l=0)|ar[Z>>2];do{if(0<(0|a)){m=A+4296+(c<<2)|0,w=l,o=(v=0)|ar[(g=A+4296+((c=c+1|0)<<2)|0)>>2];do{if(u=0|ar[m>>2],v=(l=v)+1|0,(0|u)<(0|o)){k=A+4252+(l<<2)|0,a=0|ar[(h=A+4252+(v<<2)|0)>>2];do{if((0|(d=0|ar[k>>2]))<(0|a)){for(l=0|ar[C>>2],s=0|ar[i>>2],b=0|ar[r>>2],o=d;a=l+((0|sr(0|ar[p>>2],u))+o<<2)|0,ar[s+(ar[a>>2]<<2)>>2]=w,a=b+((0|sr(0|ar[p>>2],u))+o<<2)|0,ar[a>>2]=w,o=o+1|0,a=0|ar[h>>2],(0|o)<(0|a););o=0|ar[g>>2]}u=u+1|0}while((0|u)<(0|o));a=0|ar[Z>>2]}w=w+1|0}while((0|v)<(0|a));l=w,o=0|ar[y>>2]}else c=c+1|0}while((0|c)<(0|o))}if((0|(o=0|ar[(k=e+5092|0)>>2]))<=0)return ur=t;w=e+5100|0,d=e+5056|0,a=0|ar[(h=e+5088|(b=0))>>2];do{if(0<(0|a)){u=0|ar[C>>2],s=0|ar[f>>2],l=0;do{if(e=0|ar[w>>2],A=0|ar[n>>2],Z=u+((0|sr(0|ar[d>>2],b<<e>>A))+(l<<e>>A)<<2)|0,o=s+((0|sr(a,b))+l<<2)|0,ar[o>>2]=ar[Z>>2]<<(A-e<<1),o=0|ar[n>>2],(0|(a=0|ar[w>>2]))<(0|o))for(c=o-a|0,o=a=0;o=(0==((e=1<<a)&b|0)?0:e<<1<<a)+o+(0==(e&l|0)?0:e<<a)|0,(0|(a=a+1|0))<(0|c););else o=0;a=s+((0|sr(0|ar[h>>2],b))+l<<2)|0,ar[a>>2]=(0|ar[a>>2])+o,l=l+1|0,a=0|ar[h>>2]}while((0|l)<(0|a));o=0|ar[k>>2]}b=b+1|0}while((0|b)<(0|o));ur=t}(A,u),tr[A>>0]=1,0|(r=1)):(r=0)|r}(i,e,A),-1<(0|(e=0|ar[A+524>>2]))&&function(A,e){A|=0;var r,i,f,n,t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_,F,N,R,Y,J,D,Q,T,M,S,U,O,H,x,j,z,P=0,L=0,K=0,q=0,$=0,AA=0;switch(ur=(z=ur)+400|0,S=z+392|0,M=z+384|0,T=z+376|0,Q=z+368|0,D=z+360|0,J=z+352|0,Y=z+344|0,R=z+336|0,N=z+328|0,F=z+320|0,_=z+312|0,X=z+304|0,V=z+296|0,G=z+288|0,AA=z+280|0,j=z+272|0,x=z+264|0,$=z+256|0,H=z+248|0,O=z+240|0,U=z+232|0,E=z+224|0,B=z+216|0,I=z+208|0,C=z+200|0,Z=z+192|0,y=z+184|0,p=z+176|0,m=z+168|0,v=z+160|0,w=z+152|0,h=z+144|0,k=z+136|0,d=z+128|0,b=z+120|0,s=z+112|0,u=z+104|0,l=z+96|0,c=z+88|0,o=z+80|0,t=z+72|0,n=z+64|0,f=z+56|0,i=z+48|0,r=z+40|0,q=z+32|0,g=z+24|0,a=z+16|0,K=z+8|0,L=z,0|(e|=0)){case 1:P=8516;break;case 2:P=9020;break;default:return ur=z}ft(W=0|ar[P>>2],30737,L),ar[K>>2]=tr[A+1>>0],ft(W,30778,K),ar[a>>2]=tr[A+2>>0],ft(W,30811,a),ar[g>>2]=tr[A+3>>0],ft(W,30844,g),ar[q>>2]=tr[A+4>>0],ft(W,30888,q),ar[r>>2]=tr[A+5>>0],ft(W,30921,r),ar[i>>2]=tr[A+6>>0],ft(W,30954,i),ar[f>>2]=tr[A+7>>0],ft(W,30990,f),ar[n>>2]=ar[A+8>>2],ft(W,31026,n),ar[t>>2]=tr[A+12>>0],ft(W,31059,t),ar[o>>2]=tr[A+13>>0],ft(W,31092,o),q=A+14|0,ar[c>>2]=tr[q>>0],ft(W,31125,c),0|tr[q>>0]&&(ar[l>>2]=ar[A+16>>2],ft(W,31158,l));if(ar[u>>2]=ar[A+20>>2],ft(W,31191,u),ar[s>>2]=ar[A+24>>2],ft(W,31226,s),ar[b>>2]=tr[A+28>>0],ft(W,31261,b),ar[d>>2]=tr[A+29>>0],ft(W,31308,d),ar[k>>2]=tr[A+30>>0],ft(W,31343,k),ar[h>>2]=tr[A+31>>0],ft(W,31378,h),ar[w>>2]=tr[A+32>>0],ft(W,31413,w),q=A+34|0,ar[v>>2]=tr[q>>0],ft(W,31448,v),ar[m>>2]=tr[A+33>>0],ft(W,31483,m),0|tr[q>>0]){if(L=A+36|0,ar[p>>2]=ar[L>>2],ft(W,31521,p),K=A+40|0,ar[y>>2]=ar[K>>2],ft(W,31547,y),ar[Z>>2]=tr[A+44>>0],ft(W,31573,Z),ft(W,31599,C),0<=(0|ar[L>>2]))for(P=0;ar[E>>2]=ar[A+4252+(P<<2)>>2],ft(W,31646,E),(0|P)<(0|ar[L>>2]);)P=P+1|0;if(ft(W,39054,I),ft(W,31624,B),0<=(0|ar[K>>2]))for(P=0;ar[H>>2]=ar[A+4296+(P<<2)>>2],ft(W,31646,H),(0|P)<(0|ar[K>>2]);)P=P+1|0;ft(W,39054,U),ar[O>>2]=tr[A+45>>0],ft(W,31651,O)}ar[$>>2]=tr[A+46>>0],ft(W,31695,$),$=A+47|0,ar[x>>2]=tr[$>>0],ft(W,31743,x),0|tr[$>>0]&&(ar[j>>2]=tr[A+48>>0],ft(W,31787,j),ar[AA>>2]=tr[A+49>>0],ft(W,31832,AA),ar[G>>2]=ar[A+52>>2],ft(W,31872,G),ar[V>>2]=ar[A+56>>2],ft(W,31890,V));ar[X>>2]=tr[A+60>>0],ft(W,31908,X),ar[_>>2]=tr[A+4125>>0],ft(W,31948,_),ar[F>>2]=ar[A+4128>>2],ft(W,31985,F),ar[N>>2]=tr[A+4132>>0],ft(W,32022,N),ar[R>>2]=tr[A+4133>>0],ft(W,32059,R),ar[Y>>2]=tr[A+4134>>0],ft(W,32109,Y),AA=A+4135|0,ar[J>>2]=tr[AA>>0],ft(W,32145,J),ar[D>>2]=tr[A+4136>>0],ft(W,32181,D),ar[Q>>2]=tr[A+4137>>0],ft(W,32217,Q),ar[T>>2]=ar[A+4160>>2],ft(W,32253,T),ar[M>>2]=ar[A+4164>>2],ft(W,32289,M),ar[S>>2]=ar[A+4168>>2],ft(W,32330,S),0|tr[AA>>0]&&function(A,e){A|=0;var r,i,f,n,t,o,a,c,l,u,s=0,b=0,d=0;switch(ur=(u=ur)+80|0,l=u+72|0,c=u+64|0,a=u+56|0,o=u+48|0,n=u+40|0,b=u+32|0,t=u+24|0,s=u+16|0,f=u+8|0,i=u,0|(e|=0)){case 1:e=8516;break;case 2:e=9020;break;default:return ur=u}if(ft(r=0|ar[e>>2],30231,i),ar[f>>2]=cr[A>>0],ft(r,30274,f),ar[s>>2]=cr[A+1>>0],ft(r,30320,s),s=A+2|0,ar[t>>2]=cr[s>>0],ft(r,30366,t),0|tr[s>>0]&&(ar[b>>2]=cr[A+3>>0],ft(r,30412,b),d=A+4|0,ar[n>>2]=cr[d>>0],ft(r,30458,n),0|tr[d>>0]))for(e=0;b=0|tr[A+5+e>>0],ar[o>>2]=e,ar[4+o>>2]=b,ft(r,30504,o),b=0|tr[A+11+e>>0],ar[a>>2]=e,ar[4+a>>2]=b,ft(r,30551,a),(0|(e=e+1|0))<(0|cr[d>>0]););ar[c>>2]=cr[A+17>>0],ft(r,30598,c),ar[l>>2]=cr[A+18>>0],ft(r,30644,l),ur=u}(A+4138|0,e),ur=z}(i,e),r?(Eu(0|(n=A+93784+(4400*(e=0|tr[i+1>>0])|0)|0),0|i,4340),ur=(n=((0|n)==(0|i)||(Br(A+93784+(4400*e|0)+4340|0,0|ar[i+4340>>2],0|ar[i+4344>>2]),Br(A+93784+(4400*e|0)+4352|0,0|ar[i+4352>>2],0|ar[i+4356>>2]),Br(A+93784+(4400*e|0)+4364|0,0|ar[i+4364>>2],0|ar[i+4368>>2]),Br(A+93784+(4400*e|0)+4376|0,0|ar[i+4376>>2],0|ar[i+4380>>2]),Br(A+93784+(4400*e|0)+4388|0,0|ar[i+4388>>2],0|ar[i+4392>>2])),r?0:1006),No(i),f),0|n):(A=r?0:1006,No(i),ur=f,0|A)}function Br(A,e,r){var i,f,n,t=0,o=0,a=0,c=0,l=0;if((a=(c=(i=r|=0)-(e|=0)|0)>>2)>>>0<=(t=0|ar[(f=(A|=0)+8|0)>>2])-(n=l=0|ar[A>>2])>>2>>>0)return 0|(r=(t=(o=a=(A=(o=(0|ar[(c=A+4|0)>>2])-l>>2)>>>0<a>>>0)?e+(o<<2)|0:r)-e|0)>>2)&&Gu(0|l,0|e,0|t),r=n+(r<<2)|0,A?!((0|(t=i-o|0))<=0)&&(Eu(0|ar[c>>2],0|a,0|t),void(ar[c>>2]=(0|ar[c>>2])+(t>>>2<<2))):(0|(t=0|ar[c>>2]))!=(0|r)&&void(ar[c>>2]=t+(~((t+-4-r|0)>>>2)<<2));(o=l)&&((0|(r=0|ar[(t=A+4|0)>>2]))!=(0|n)&&(ar[t>>2]=r+(~((r+-4-l|0)>>>2)<<2)),Vl(o),ar[f>>2]=0,ar[t>>2]=0,t=ar[A>>2]=0),1073741823<a>>>0&&il(),l=t>>1,1073741823<(t=t>>2>>>0<536870911?l>>>0<a>>>0?a:l:1073741823)>>>0&&il(),r=0|El(t<<2),ar[(o=A+4|0)>>2]=r,ar[A>>2]=r,ar[f>>2]=r+(t<<2),(0|c)<=0||(Eu(0|r,0|e,0|c),ar[o>>2]=r+(c>>>2<<2))}function Er(A,e){e|=0;var r,i,f,n=0,t=0,o=0,a=0,c=0,l=0;r=(A|=0)+4|0,i=0|ar[A>>2],53687091<(n=(o=(0|(f=(0|ar[r>>2])-i|0))/80|0)+1|0)>>>0&&il(),c=(a=((0|ar[(l=A+8|0)>>2])-i|0)/80|0)<<1,n=a>>>0<26843545?c>>>0<n>>>0?n:c:53687091;do{if(n){if(!(53687091<n>>>0)){t=0|El(80*n|0);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else t=0}while(0);for(a=t+(80*n|0)|0,n=e,t=(o=c=t+(80*o|0)|0)+80|0;ar[o>>2]=ar[n>>2],n=n+4|0,(0|(o=o+4|0))<(0|t););n=c+(80*((0|f)/-80|0)|0)|0,0<(0|f)&&Eu(0|n,0|i,0|f),ar[A>>2]=n,ar[r>>2]=c+80,ar[l>>2]=a,i&&Vl(i)}function Gr(A,e,r){A|=0,e|=0,r|=0;var i=0,f=0;A:do{if(r){f=0|ar[(i=A+164|0)>>2];do{if(0<(0|f)){for(r=0;;){if((0|ar[A+84+(r<<2)>>2])==(0|e)){r=10;break}if((0|f)<=(0|(r=r+1|0))){r=5;break}}if(5==(0|r)){if((0|f)<20)break;break A}if(10==(0|r))return}}while(0);ar[i>>2]=f+1,ar[A+84+(f<<2)>>2]=e}}while(0);20==(0|(r=0|ar[(i=A+80|0)>>2]))?(e=1001,r=19):ar[i>>2]=r+1,ar[A+(r<<2)>>2]=e}function Vr(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f,n,t,o,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0;if(ur=(t=ur)+16|0,f=t+4|0,s=t+8|0,n=t,b=0|El(1356),o=b,ar[776+(o|=0)>>2]=0,ar[o+780>>2]=0,ar[o+784>>2]=0,pt(o+1332|0),ar[o+1344>>2]=0,ar[o+1348>>2]=0,ar[o+1352>>2]=0,Dn(o),l=0|function(A,e,r,i){A|=0,e|=0,r|=0;var f,n,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0;tr[(i|=0)>>0]=0,Dn(A),tr[(l=A+12|0)>>0]=0,w=255&(0|at(e,1)),tr[(c=A+4|0)>>0]=w,0|tr[r+377214>>0]&&(w=255&(0|at(e,1)),tr[A+5>>0]=w);if(w=0|ut(e),64<(0|(ar[A+8>>2]=w))|-99999==(0|w))return Gr(r+4|0,1009,0),(i=0)|i;if(!(0|tr[r+93784+(4400*w|0)>>0]))return Gr(r+4|0,1009,0),(i=0)|i;if(n=0|tr[r+93784+(4400*w|0)+2>>0],!(0|tr[(u=r+11096+(5168*n|0)|0)>>0]))return Gr(r+4|0,1010,0),tr[i>>0]=0,(i=0)|i;if(0|tr[c>>0])o=t=0,h=23;else{for(t=0|tr[r+93784+(4400*w|0)+3>>0]?255&(0|at(e,1)):0,tr[l>>0]=t,o=0|ar[r+11096+(5168*n|0)+5072>>2],t=0;(1<<t|0)<(0|o);)t=t+1|0;if(t=0|at(e,t),0|tr[l>>0]){if(!t)return tr[i>>0]=0,Gr(r+4|0,1021,0),(i=0)|i;if(!(o=0|ar[r+376228>>2]))return 0|(i=16);Eu(0|A,0|o,776),(a=(0|o)==(0|A))||Br(A+776|0,0|ar[o+776>>2],0|ar[o+780>>2]),Eu(A+788|0,o+788|0,544),Et(A+1332|0,o+1332|0),tr[A+1340>>0]=0|tr[o+1340>>0],a||Br(A+1344|0,0|ar[o+1344>>2],0|ar[o+1348>>2]),tr[c>>0]=0,o=1,h=23}else o=0}23==(0|h)&&(tr[l>>0]=o);if(0<=(0|(ar[(f=A+16|0)>>2]=t))&&(0|t)<(0|ar[r+11096+(5168*n|0)+5072>>2])){if(!(o<<24>>24)){if(0<(0|tr[(o=r+93784+(4400*w|0)+4132|0)>>0]))for(t=0;ct(e,1),(0|(t=t+1|0))<(0|tr[o>>0]););if(b=0|ut(e),2<(0|(ar[(d=A+20|0)>>2]=b))|-99999==(0|b))return Gr(r+4|0,1007,0),tr[i>>0]=0,(i=0)|i;if(t=0|tr[r+93784+(4400*w|0)+31>>0]?255&(0|at(e,1)):1,tr[A+24>>0]=t,1==(0|tr[r+11096+(5168*n|0)+480>>0])&&(b=255&(0|at(e,2)),tr[A+25>>0]=b),ar[(t=A+28|0)>>2]=0,(((tr[(o=A+32|0)>>0]=0)|tr[r+377212>>0])-19&255)<2)ar[t>>2]=0,ar[A+140>>2]=0,ar[A+144>>2]=0,t=0;else{s=0|at(e,0|ar[(b=r+11096+(5168*n|0)+520|0)>>2]),ar[t>>2]=s,s=255&(0|at(e,1)),tr[o>>0]=s;do{if(s<<24>>24){for(a=r+11096+(5168*n|0)+4720|0,t=0|ar[(u=r+11096+(5168*n|0)+4724|0)>>2],c=0|ar[a>>2],l=(t-c|0)/100|0,o=0;(1<<o|0)<(0|l);)o=o+1|0;if(0<(0|o)?(c=0|at(e,o),o=0|ar[a>>2],t=0|ar[u>>2]):(o=c,c=0),(0|(ar[A+136>>2]=c))<((t-o|0)/100|0)){for(ar[A+808>>2]=c,t=o+(100*c|0)|0,o=(a=A+812|0)+100|0;or[a>>1]=0|or[t>>1],t=t+2|0,(0|(a=a+2|0))<(0|o););break}return Gr(r+4|0,1015,0),0|(i=8)}for(a=r+11096+(5168*n|0)+4720|0,Lo(r+4|0,u,e,t=A+34|0,((0|ar[(o=r+11096+(5168*n|0)+4724|0)>>2])-(0|ar[a>>2])|0)/100|0,a,1),ar[A+808>>2]=((0|ar[o>>2])-(0|ar[a>>2])|0)/100|0,o=(a=A+812|0)+100|0;or[a>>1]=0|or[t>>1],t=t+2|0,(0|(a=a+2|0))<(0|o););}while(0);A:do{if(0|tr[r+11096+(5168*n|0)+4732>>0]){l=r+11096+(5168*n|0)+4736|0;do{if(0<(0|ar[l>>2])){if(s=0|ut(e),-99999!=(0|(ar[A+140>>2]=s)))break;return 0|(t=8)}ar[A+140>>2]=0}while(0);if(t=0|ut(e),-99999==(0|(ar[(u=A+144|0)>>2]=t)))return 0|(i=8);if(o=0|ar[(s=A+140|0)>>2],((t=o+t|0)+(0|cr[A+908>>0])+(0|cr[A+909>>0])|0)>(0|ar[r+11096+(5168*n|0)+528+((0|tr[r+11096+(5168*n|0)+2>>0])-1<<2)>>2]))return Gr(r+4|0,1018,0),tr[i>>0]=0,(i=0)|i;if(!(0<(0|t))){t=0;break}for(c=t=0;;){if((0|c)<(0|o)){for(a=0|ar[l>>2],o=0;(1<<o|0)<(0|a);)o=o+1|0;if(a=0|at(e,o),tr[(o=A+148+c|0)>>0]=a,(0|(a&=255))>=(0|ar[l>>2]))break;ar[r+376232+(c<<2)>>2]=ar[r+11096+(5168*n|0)+4740+(a<<2)>>2],o=(0|cr[o>>0])+(r+11096+(5168*n|0)+4868)|0}else v=0|at(e,0|ar[b>>2]),ar[(a=A+164+(c<<2)|0)>>2]=v,v=255&(0|at(e,1)),tr[(o=A+228+c|0)>>0]=v,ar[r+376232+(c<<2)>>2]=ar[a>>2];if(v=0|tr[o>>0],ar[r+376296+(c<<2)>>2]=v<<24>>24,t=(v<<24>>24!=0&1)+t|0,v=255&(0|at(e,1)),(tr[A+244+c>>0]=v)<<24>>24){if(o=0|ut(e),-99999==(0|(ar[A+260+(c<<2)>>2]=o))){t=8,h=189;break}}else ar[A+260+(c<<2)>>2]=0,o=0;do{if(c){if((0|c)==(0|ar[s>>2]))break;o=(0|ar[r+376360+(c+-1<<2)>>2])+o|0}}while(0);if(ar[r+376360+(c<<2)>>2]=o,c=c+1|0,o=0|ar[s>>2],(0|c)>=((0|ar[u>>2])+o|0))break A}return 189==(0|h)?0|t:(Gr(r+4|0,1023,0),tr[i>>0]=0,(v=0)|v)}ar[A+140>>2]=0,ar[A+144>>2]=0,t=0}while(0);o=0|tr[r+11096+(5168*n|0)+4900>>0]?255&(0|at(e,1)):0,tr[A+324>>0]=o}o=0|tr[r+11096+(5168*n|0)+4703>>0]?(v=255&(0|at(e,1)),tr[A+325>>0]=v,0|ar[r+11096+(5168*n|0)+5012>>2]?255&(0|at(e,1)):0):tr[A+325>>0]=0,tr[(u=A+326|0)>>0]=o,ar[(c=A+328|0)>>2]=0,ar[(l=A+332|0)>>2]=0;do{if((0|ar[d>>2])>>>0<2){v=255&(0|at(e,1)),tr[A+327>>0]=v;do{if(v<<24>>24){if(o=0|ut(e),-99999==(0|(ar[c>>2]=o)))return Gr(r+4|0,1007,0),0|(v=8);if(o=o+1|0,ar[c>>2]=o,0|ar[d>>2])break;if(a=0|ut(e),-99999==(0|(ar[l>>2]=a)))return Gr(r+4|0,1007,0),0|(v=8);o=0|ar[c>>2],a=a+1|0,h=86;break}o=0|tr[r+93784+(4400*w|0)+6>>0],ar[c>>2]=o,a=0|tr[r+93784+(4400*w|0)+7>>0],h=86}while(0);if(86==(0|h)&&(ar[l>>2]=a),16<(0|o))return 0|(v=8);if(16<(0|ar[l>>2]))return 0|(v=8);t=(0|cr[A+911>>0])+t|0,ar[A+912>>2]=t;do{if(1<(0|t)&&0!=(0|tr[r+93784+(4400*w|0)+4125>>0])){for(o=0;(1<<o|0)<(0|t);)o=o+1|0;v=255&(0|at(e,1)),tr[A+336>>0]=v;do{if(v<<24>>24){if(!(0<(0|ar[c>>2])))break;for(t=0;v=255&(0|at(e,o)),tr[A+338+t>>0]=v,(0|(t=t+1|0))<(0|ar[c>>2]););}}while(0);if(0|ar[d>>2]){tr[A+337>>0]=0;break}if(v=255&(0|at(e,1)),!((tr[A+337>>0]=v)<<24>>24))break;if(!(0<(0|ar[l>>2])))break;for(t=0;v=255&(0|at(e,o)),tr[A+354+t>>0]=v,(0|(t=t+1|0))<(0|ar[l>>2]););}else tr[A+336>>0]=0,tr[A+337>>0]=0}while(0);0|ar[d>>2]||(v=255&(0|at(e,1)),tr[A+370>>0]=v),t=0|tr[r+93784+(4400*w|0)+5>>0]?255&(0|at(e,1)):0,tr[A+371>>0]=t;do{if(0|tr[A+324>>0]){do{if(0|ar[d>>2])tr[(o=A+372|0)>>0]=1,t=1,h=108;else{if(t=255&(0|at(e,1)),(tr[(o=A+372|0)>>0]=t)<<24>>24){h=108;break}h=1<(0|ar[l>>2])?110:(t=0,113)}}while(0);108==(0|h)&&(h=1<(0|ar[c>>2])?110:113);do{if(110==(0|h)){if(a=0|ut(e),-99999==(0|(ar[A+376>>2]=a)))return Gr(r+4|0,1007,0),0|(v=8);t=0|tr[o>>0];break}113==(0|h)&&(ar[A+376>>2]=0,a=0)}while(0);if(t<<24>>24){if((0|a)<(0|ar[c>>2]))break}else if((0|a)<(0|ar[l>>2]))break;return Gr(r+4|0,8,0),0|(v=8)}}while(0);h=0!=(0|tr[r+93784+(4400*w|0)+29>>0])&&1==(0|ar[d>>2])?122:120;do{if(120==(0|h)){if(!(0|tr[r+93784+(4400*w|0)+30>>0]))break;0|ar[d>>2]||(h=122)}}while(0);do{if(122==(0|h)){if(0|Jn(e,A,r))break;return Gr(r+4|0,8,0),0|(v=8)}}while(0);if(t=0|ut(e),-99999==(0|(ar[A+736>>2]=t)))return Gr(r+4|0,1007,0),0|(v=8);ar[A+804>>2]=5-t;break}}while(0);if(v=0|st(e),-99999==(0|(ar[A+740>>2]=v)))return Gr(r+4|0,1007,0),0|(v=8);do{if(0|tr[r+93784+(4400*w|0)+28>>0]){if(v=0|st(e),-99999==(0|(ar[A+744>>2]=v)))return Gr(r+4|0,1007,0),0|(v=8);if(v=0|st(e),-99999!=(0|(ar[A+748>>2]=v)))break;return Gr(r+4|0,1007,0),0|(v=8)}ar[A+744>>2]=0,ar[A+748>>2]=0}while(0);0|tr[r+93784+(4400*w|0)+4140>>0]&&(v=255&(0|at(e,1)),tr[A+752>>0]=v),t=0|tr[r+93784+(4400*w|0)+48>>0]?255&(0|at(e,1)):0,tr[A+753>>0]=t,ar[(o=A+756|0)>>2]=ar[r+93784+(4400*w|0)+52>>2],ar[(a=A+760|0)>>2]=ar[r+93784+(4400*w|0)+56>>2];do{if(t<<24>>24){if(v=255&(0|at(e,1)),(tr[A+754>>0]=v)<<24>>24)break;if(t=0|st(e),-99999==(0|(ar[o>>2]=t)))return Gr(r+4|0,1007,0),0|(v=8);if(ar[o>>2]=t<<1,t=0|st(e),-99999==(0|(ar[a>>2]=t)))return Gr(r+4|0,1007,0),0|(v=8);ar[a>>2]=t<<1;break}tr[A+754>>0]=0|tr[r+93784+(4400*w|0)+49>>0]}while(0);t=0|tr[r+93784+(4400*w|0)+46>>0];A:do{if(t<<24>>24){do{if(!(0|tr[A+325>>0])){if(0|tr[u>>0])break;if(0|tr[A+754>>0])break A}}while(0);t=255&(0|at(e,1))}else t=0}while(0);tr[A+764>>0]=t}0==(0|tr[(o=r+93784+(4400*w|0)+34|0)>>0])&&0==(0|tr[r+93784+(4400*w|0)+33>>0])?ar[A+768>>2]=0:h=155;A:do{if(155==(0|h)){if(t=0|ut(e),-99999==(0|(ar[(s=A+768|0)>>2]=t)))return Gr(r+4|0,1007,0),0|(v=8);if(0|tr[r+93784+(4400*w|0)+33>>0]&&(((0|ar[f>>2])/(0|ar[r+11096+(5168*n|0)+5056>>2])|0)+t|0)>=(0|ar[r+11096+(5168*n|0)+5064>>2]))return Gr(r+4|0,1007,0),0|(v=8);if(0|tr[o>>0]&&(0|t)>(0|sr(0|ar[r+93784+(4400*w|0)+40>>2],0|ar[r+93784+(4400*w|0)+36>>2])))return Gr(r+4|0,1007,0),0|(v=8);if(u=A+776|0,l=0|ar[(o=A+780|0)>>2],c=0|ar[u>>2],t>>>0<=(a=l-c>>2)>>>0?t>>>0<a>>>0&&(0|l)!=(0|(k=c+(t<<2)|0))&&(ar[o>>2]=l+(~((l+-4-k|0)>>>2)<<2)):(Ro(u,t-a|0),t=0|ar[s>>2]),0<(0|t)){if(t=0|ut(e),-99999==(0|(ar[(l=A+772|0)>>2]=t)))return Gr(r+4|0,1007,0),0|(v=8);if(o=t+1|0,ar[l>>2]=o,31<(0|t))return 0|(v=8);if(0<(0|ar[s>>2]))for(t=0;;){if(o=1+(0|at(e,o))|0,a=0|ar[u>>2],ar[(c=a+(t<<2)|0)>>2]=o,0<(0|t)&&(ar[c>>2]=o+(0|ar[a+(t+-1<<2)>>2])),(0|(t=t+1|0))>=(0|ar[s>>2]))break A;o=0|ar[l>>2]}}}}while(0);do{if(0|tr[r+93784+(4400*w|0)+4133>>0]){if(t=0|ut(e),-99999==(0|(ar[(o=A+788|0)>>2]=t))|1e3<(0|t))return Gr(r+4|0,1007,0),0|(v=8);if(!(0<(0|t)))break;for(t=0;at(e,8),(0|(t=t+1|0))<(0|ar[o>>2]););}}while(0);switch(ar[A+792>>2]=(0|ar[A+740>>2])+(0|ar[r+93784+(4400*w|0)+8>>2]),0|ar[A+20>>2]){case 2:t=0,h=187;break;case 1:t=1+(0|tr[A+371>>0])|0,h=187;break;case 0:t=2-(0|tr[A+371>>0])|0,h=187}return 187==(0|h)&&(ar[A+796>>2]=t),ar[A+804>>2]=5-(0|ar[A+736>>2]),tr[i>>0]=1,(v=0)|v}return Gr(r+4|0,1020,0),0|(v=8)}(b,e,A,s),ar[n>>2]=l,!(0|tr[s>>0]))return 0|(a=0|ar[A+376224>>2])&&(tr[a+10516>>0]=2),Eo(A+548|0,r),0|(a=0|ar[b+1344>>2])&&((0|(c=0|ar[(i=b+1348|0)>>2]))!=(0|a)&&(ar[i>>2]=c+(~((c+-4-a|0)>>>2)<<2)),Vl(a)),Zt(b+1332|0),0|(a=0|ar[b+776>>2])&&((0|(c=0|ar[(i=b+780|0)>>2]))!=(0|a)&&(ar[i>>2]=c+(~((c+-4-a|0)>>>2)<<2)),Vl(a)),Vl(b),ur=t,0|(b=l);if(-1<(0|(a=0|ar[A+528>>2]))&&function(A,e,r){A|=0,e|=0;var i,f,n,t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_,F,N,R,Y,J,D,Q=0,T=0,M=0,S=0,U=0,O=0,H=0,x=0,j=0,z=0,P=0,L=0,K=0,q=0,$=0,AA=0,eA=0,rA=0,iA=0;switch(ur=(D=ur)+448|0,J=D+432|0,iA=D+424|0,Y=D+416|0,N=D+408|0,F=D+400|0,_=D+392|0,X=D+384|0,rA=D+376|0,E=D+368|0,B=D+360|0,I=D+352|0,W=D+344|0,C=D+328|0,Z=D+312|0,y=D+296|0,p=D+280|0,V=D+264|0,G=D+248|0,eA=D+240|0,g=D+232|0,v=D+224|0,w=D+216|0,h=D+208|0,k=D+200|0,d=D+192|0,$=D+184|0,q=D+176|0,K=D+168|0,L=D+160|0,P=D+152|0,z=D+144|0,s=D+136|0,u=D+128|0,l=D+120|0,c=D+112|0,a=D+104|0,o=D+96|0,j=D+88|0,t=D+80|0,x=D+72|0,n=D+64|0,f=D+56|0,i=D+48|0,S=D+40|0,H=D+32|0,O=D+24|0,U=D+16|0,M=D+8|0,Q=D,0|(r|=0)){case 1:r=8516;break;case 2:r=9020;break;default:return ur=D}R=0|ar[r>>2],m=0|ar[(T=A+8|0)>>2],0|tr[e+93784+(4400*m|0)>>0]||br(33024,32568,1278,33038);b=0|tr[e+93784+(4400*m|0)+2>>0],0|tr[e+11096+(5168*b|0)>>0]||br(33064,32568,1281,33038);ft(R,33078,Q),r=A+4|0,ar[M>>2]=tr[r>>0],ft(R,33121,M),(-8&tr[(Q=e+377212|0)>>0])<<24>>24==16&&(ar[U>>2]=tr[A+5>>0],ft(R,33164,U));ar[O>>2]=ar[T>>2],ft(R,33207,O),0|tr[r>>0]||(ar[H>>2]=tr[A+12>>0],ft(R,33250,H),ar[S>>2]=ar[A+16>>2],ft(R,33293,S));H=0|ar[(O=A+20|0)>>2],ar[i>>2]=0==(0|H)?66:1==(0|H)?80:73,ft(R,33336,i),0|tr[e+93784+(4400*m|0)+31>>0]&&(ar[f>>2]=tr[A+24>>0],ft(R,33379,f));1==(0|tr[e+11096+(5168*b|0)+480>>0])&&(ar[n>>2]=tr[A+25>>0],ft(R,33422,n));ar[x>>2]=ar[A+28>>2],ft(R,33465,x),2<=((0|tr[Q>>0])-19&255)&&(x=A+32|0,ar[t>>2]=tr[x>>0],ft(R,33508,t),r=e+11096+(5168*b|0)+4720|0,Q=(0|ar[e+11096+(5168*b|0)+4724>>2])-(0|ar[r>>2])|0,0|tr[x>>0]?100<(0|Q)&&(j=A+136|0,ar[o>>2]=ar[j>>2],ft(R,33551,o),Ko((0|ar[r>>2])+(100*(0|ar[j>>2])|0)|0,16,R)):(ar[j>>2]=(0|Q)/100|0,ft(R,36693,j),Ko(A+34|0,16,R)),0|tr[e+11096+(5168*b|0)+4732>>0]&&(0<(0|ar[e+11096+(5168*b|0)+4736>>2])&&(ar[a>>2]=ar[A+140>>2],ft(R,33594,a)),ar[c>>2]=ar[A+144>>2],ft(R,33641,c)),0|tr[e+11096+(5168*b|0)+4900>>0]&&(ar[l>>2]=tr[A+324>>0],ft(R,33688,l)));0|tr[e+11096+(5168*b|0)+4703>>0]&&(ar[u>>2]=tr[A+325>>0],ft(R,33726,u),ar[s>>2]=tr[A+326>>0],ft(R,33764,s));if((0|ar[O>>2])>>>0<2){if(r=A+327|0,ar[z>>2]=tr[r>>0],ft(R,33802,z),U=A+328|0,z=0|tr[r>>0]?72962:33841,ar[P>>2]=ar[U>>2],ar[P+4>>2]=z,ft(R,33852,P),0|ar[O>>2]||(P=0|tr[r>>0]?72962:33841,ar[L>>2]=ar[A+332>>2],ar[L+4>>2]=P,ft(R,33892,L)),0|tr[e+93784+(4400*m|0)+4125>>0]&&1<(0|ar[A+912>>2])){if(L=A+336|0,ar[K>>2]=tr[L>>0],ft(R,33932,K),0|tr[L>>0]&&0<(0|ar[U>>2]))for(r=0;K=0|cr[A+338+r>>0],ar[q>>2]=r,ar[q+4>>2]=K,ft(R,33972,q),(0|(r=r+1|0))<(0|ar[U>>2]););if(q=A+337|0,ar[$>>2]=tr[q>>0],ft(R,33982,$),0|tr[q>>0]&&0<(0|ar[(AA=A+332|0)>>2]))for(r=0;$=0|cr[A+354+r>>0],ar[d>>2]=r,ar[4+d>>2]=$,ft(R,33972,d),(0|(r=r+1|0))<(0|ar[AA>>2]););}0|ar[O>>2]||(ar[k>>2]=tr[A+370>>0],ft(R,34022,k)),ar[h>>2]=tr[A+371>>0],ft(R,34059,h),0|tr[A+324>>0]&&(ar[w>>2]=tr[A+372>>0],ft(R,34096,w),ar[v>>2]=ar[A+376>>2],ft(R,34133,v)),45==(0|(S=0!=(0|tr[e+93784+(4400*m|0)+29>>0])&&1==(0|ar[O>>2])?47:45))&&0|tr[e+93784+(4400*m|0)+30>>0]&&0==(0|ar[O>>2])&&(S=47);A:do{if(47==(0|S)){ar[g>>2]=cr[A+380>>0],ft(R,34170,g),0|ar[e+11096+(5168*b|0)+476>>2]&&(ar[eA>>2]=cr[A+381>>0],ft(R,34207,eA)),M=A+332|0,T=0;do{r=0==(0|T);do{if(r)S=53;else{if(1!=(0|T))break;if(0|ar[O>>2])break A;S=53}}while(0);do{if(53==(0|S)){if(!((S=0)<(0|(Q=0|ar[(r?U:M)>>2]))))break;for(r=0;eA=0|or[A+446+(T<<5)+(r<<1)>>1],ar[G>>2]=T,ar[4+G>>2]=r,ar[8+G>>2]=eA,ft(R,34244,G),eA=0|tr[A+510+(T<<4)+r>>0],ar[V>>2]=T,ar[4+V>>2]=r,ar[8+V>>2]=eA,ft(R,34281,V),eA=0|or[A+542+(T<<6)+(r<<2)>>1],ar[p>>2]=T,ar[4+p>>2]=r,ar[8+p>>2]=0,ar[12+p>>2]=eA,ft(R,34318,p),eA=0|tr[A+670+(T<<5)+(r<<1)>>0],ar[y>>2]=T,ar[4+y>>2]=r,ar[8+y>>2]=0,ar[12+y>>2]=eA,ft(R,34356,y),eA=0|or[A+542+(T<<6)+(r<<2)+2>>1],ar[Z>>2]=T,ar[4+Z>>2]=r,ar[8+Z>>2]=1,ar[12+Z>>2]=eA,ft(R,34318,Z),eA=0|tr[A+670+(T<<5)+(r<<1)+1>>0],ar[C>>2]=T,ar[4+C>>2]=r,ar[8+C>>2]=1,ar[12+C>>2]=eA,ft(R,34356,C),(0|(r=r+1|0))!=(0|Q););}}while(0);T=T+1|0}while(2!=(0|T))}}while(0);ar[W>>2]=ar[A+736>>2],ft(R,34394,W)}ar[I>>2]=ar[A+740>>2],ft(R,34431,I),0|tr[e+93784+(4400*m|0)+28>>0]&&(ar[B>>2]=ar[A+744>>2],ft(R,34460,B),ar[E>>2]=ar[A+748>>2],ft(R,34489,E));Q=A+753|0,0|tr[e+93784+(4400*m|0)+48>>0]&&(ar[rA>>2]=tr[Q>>0],ft(R,34518,rA));r=A+754|0,rA=0|tr[Q>>0]?34556:34567,ar[X>>2]=tr[r>>0],ar[4+X>>2]=rA,ft(R,34578,X),0|tr[Q>>0]&&0==(0|tr[r>>0])&&(ar[_>>2]=ar[A+756>>2],ft(R,34625,_),ar[F>>2]=ar[A+760>>2],ft(R,34650,F));do{if(0|tr[e+93784+(4400*m|0)+46>>0]){if(0==(0|tr[A+325>>0])&&0==(0|tr[A+326>>0])&&0|tr[r>>0])break;ar[N>>2]=tr[A+764>>0],ft(R,34675,N)}}while(0);if(0==(0|tr[e+93784+(4400*m|0)+34>>0])&&0==(0|tr[e+93784+(4400*m|0)+33>>0]))return ur=D;if(T=A+768|0,ar[Y>>2]=ar[T>>2],ft(R,34726,Y),(0|ar[T>>2])<=0)return ur=D;if(ar[iA>>2]=ar[A+772>>2],ft(R,34759,iA),(0|ar[T>>2])<=0)return ur=D;Q=A+776|0,r=0;for(;iA=0|ar[(0|ar[Q>>2])+(r<<2)>>2],ar[J>>2]=r,ar[4+J>>2]=iA,ft(R,34792,J),r=r+1|0,(0|r)<(0|ar[T>>2]););ur=D}(b,A,a),u=0|function(A,e,r,i,f,n,t,o){A|=0,e|=0,r|=0,f|=0,n|=0,t|=0,o|=0;var a,c,l=0,u=0,s=0,b=0,d=0;ur=(c=ur)+16|0,l=c,ar[(i|=0)>>2]=0,tr[A+377228>>0]=0,u=0|ar[r+8>>2],0|tr[(s=e+93784+(4400*u|0)|0)>>0]||(ar[l>>2]=u,function(A,e,r){A|=0,e|=0,r|=0;var i,f,n;if(ur=(n=ur)+16|0,i=n,!(-9999<=(0|ar[12717])&!0))return ur=n;f=42==(0|tr[e>>0]),A=0|ar[2129],f||Sr(37825,5,1,A);ar[i>>2]=r,sa(A,e+(1&f)|0,i),Or(A),ur=n}(1,28215,l),br(49065,28026,1987,28241));if(ar[(b=e+375392|0)>>2]=s,d=0|tr[e+93784+(4400*u|0)+2>>0],ar[(l=e+375388|0)>>2]=e+11096+(5168*d|0),ar[(a=e+375384|0)>>2]=e+600+(656*(0|tr[e+11096+(5168*d|0)+1>>0])|0),function(A){var e=0,r=0,i=0,f=0,n=0,t=0,o=0,a=0,c=0;r=0|ar[375388+(A|=0)>>2],e=(i=0==(0|r))?(e=0|ar[A+375384>>2])?(0|ar[e+8>>2])-1|0:6:(0|tr[r+2>>0])-1|0;do{if((0|tr[A+376116>>0])!=(0|e)){if(i?(e=0|ar[A+375384>>2])?(e=0|ar[e+8>>2],f=10):e=6:(e=0|tr[r+2>>0],f=10),10==(0|f)){if(!(0<(0|e)))break;e=e+-1|0}for(t=e+1|0,o=A+375896|0;;){if((0|(i=(0|(n=100*e|0))/(0|t)|0))<=(0|(n=(n+100|0)/(0|t)|0)))for(f=n-i|0,r=i;c=0|ar[o>>2],e=(a=(0|c)<(0|e))?c:e,tr[A+375916+(r<<1)>>0]=e,tr[A+375916+(r<<1)+1>>0]=a?100:255&((100*(r-i|0)|0)/(0|f)|0),(0|r)<(0|n);)r=r+1|0;if(ar[A+376120+(e<<2)>>2]=n,!(0<(0|e)))break;e=e+-1|0}}}while(0);a=0|ar[A+375900>>2],c=0|tr[A+375916+(a<<1)>>0],ar[A+375904>>2]=c,ar[A+375908>>2]=tr[A+375916+(a<<1)+1>>0],ar[A+375912>>2]=c}(A),0|tr[(d=r+4|0)>>0]){if(ar[e+376204>>2]=ar[r+28>>2],l=0|ar[l>>2],u=0|tr[l+4703>>0]?0!=(0|tr[e+533>>0]):1,-1==(0|(u=0|to(e+376148|0,l,A,f,n,o,u))))return ar[i>>2]=9,ur=c,(r=0)|r;l=0|ar[e+376156>>2],u=(0|ar[e+376160>>2])-l>>2>>>0>u>>>0?0|ar[l+(u<<2)>>2]:0,tr[(s=u+10518|0)>>0]=0|tr[t>>0],tr[s+1>>0]=0|tr[t+1>>0],tr[s+2>>0]=0|tr[t+2>>0],ar[(s=e+376224|0)>>2]=u,l=0|ar[a>>2],Eu(0|(t=u+108|0),0|l,592),(0|t)==(0|l)?(i=l+604|0,ar[(t=u+712|0)>>2]=ar[i>>2],ar[t+4>>2]=ar[i+4>>2],ar[t+8>>2]=ar[i+8>>2],ar[t+12>>2]=ar[i+12>>2],ar[t+16>>2]=ar[i+16>>2],ar[t+20>>2]=ar[i+20>>2]):(mr(u+700|0,0|ar[l+592>>2],0|ar[l+596>>2]),i=l+604|0,ar[(t=u+712|0)>>2]=ar[i>>2],ar[t+4>>2]=ar[i+4>>2],ar[t+8>>2]=ar[i+8>>2],ar[t+12>>2]=ar[i+12>>2],ar[t+16>>2]=ar[i+16>>2],ar[t+20>>2]=ar[i+20>>2],pr(u+736|0,0|ar[l+628>>2],0|ar[l+632>>2]),yr(u+748|0,0|ar[l+640>>2],0|ar[l+644>>2])),tr[u+760>>0]=0|tr[l+652>>0],l=0|ar[b>>2],Eu(0|(b=u+5932|0),0|l,4340),(0|b)!=(0|l)&&(Br(u+10272|0,0|ar[l+4340>>2],0|ar[l+4344>>2]),Br(u+10284|0,0|ar[l+4352>>2],0|ar[l+4356>>2]),Br(u+10296|0,0|ar[l+4364>>2],0|ar[l+4368>>2]),Br(u+10308|0,0|ar[l+4376>>2],0|ar[l+4380>>2]),Br(u+10320|0,0|ar[l+4388>>2],0|ar[l+4392>>2])),ar[u+10332>>2]=e,function(A){var e,r=0;0|(r=0|ar[10360+(A|=0)>>2])&&Vu(0|r,0,3*(0|ar[A+10364>>2])|0);0|(r=0|ar[A+10340>>2])&&Vu(0|r,0,24*(0|ar[A+10344>>2])|0);0|(r=0|ar[A+10460>>2])&&Vu(0|r,0,0|ar[A+10464>>2]);if((0|(e=0|ar[A+10344>>2]))<=0)return;A=0|ar[A+10524>>2],r=0;for(;ar[A+(80*r|0)>>2]=0,r=r+1|0,(0|r)<(0|e););}(u),l=e+377212|0;do{if(0|Zo(0|tr[l>>0])){if(!(0|mo(0|tr[l>>0])||0|po(0|tr[l>>0])||0!=(0|tr[e+376208>>0]))&&0==(0|tr[e+376211>>0])){tr[e+376209>>0]=0,tr[e+376210>>0]=0;break}tr[e+376209>>0]=1,tr[e+376211>>0]=0}}while(0);0|yo(0|tr[l>>0])&&0!=(0|tr[e+376209>>0])?tr[100+(0|ar[s>>2])>>0]=0:tr[100+(0|ar[s>>2])>>0]=0!=(0|tr[r+24>>0])&1,function(A,e,r){A|=0,r|=0;var i,f=0,n=0,t=0;0|Zo(0|tr[(i=377212+(e|=0)|0)>>0])&&0!=(0|tr[e+376209>>0])?(ar[(n=e+376212|0)>>2]=0,tr[A+377228>>0]=1,A=r+28|0,A=(r=0)|ar[(f=A)>>2]):(n=0|ar[5032+(0|ar[e+375388>>2])>>2],A=0|ar[(t=r+28|0)>>2],f=0|ar[e+376216>>2],r=0|ar[e+376220>>2],(0|A)<(0|f)&&((0|n)/2|0)<=(f-A|0)?r=r+n|0:(0|f)<(0|A)&&(r=r-(((0|n)/2|0)<(A-f|0)?n:0)|0),ar[(n=e+376212|0)>>2]=r,f=t);if(t=0|ar[e+376224>>2],ar[t+92>>2]=A+r,ar[t+88>>2]=A,0|tr[t+10520>>0])return;if(0|function(A){return(255&(A|=0))<15?0==(1&A)|0:0}(0|tr[i>>0]))return;if(0|yo(0|tr[i>>0]))return;if(0|function(A){return(1|(A|=0))<<24>>24==7|0}(0|tr[i>>0]))return;ar[e+376216>>2]=ar[f>>2],ar[e+376220>>2]=ar[n>>2]}(A,e,r),l=u+96|0,0|tr[d>>0]&&(ar[l>>2]=1,function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0;if(ur=(c=ur)+32|0,t=c+4|0,ar[(o=(f=c)+16|0)>>2]=0,ar[(a=4+o|0)>>2]=0,ar[8+o>>2]=0,i=0|ar[ar[(n=e+376224|0)>>2]>>2],0|Zo(0|tr[(h=e+377212|0)>>0])&&0|tr[e+376209>>0]&&(u=0|ar[n>>2],w=0|ar[u+92>>2],v=A+376156|0,s=0|ar[(g=A+376160|0)>>2],l=0|ar[v>>2],0<(s-l|0)))for(m=e+376156|0,p=e+376160|0,y=8+o|0,k=0,d=s;s=0|ar[m>>2],s=(0|ar[p>>2])-s>>2>>>0>k>>>0?0|ar[s+(k<<2)>>2]:0,0!=(0|ar[s+96>>2])&&(0|ar[s+92>>2])<(0|w)&&(0|ar[(Z=s+104|0)>>2])>>>0>(0|ar[u>>2])>>>0?(s=0|ar[s>>2],ar[t>>2]=s,(b=0|ar[a>>2])>>>0<(0|ar[y>>2])>>>0?(ar[b>>2]=s,ar[a>>2]=b+4,s=d):(St(o,t),s=0|ar[g>>2],l=0|ar[v>>2],u=0|ar[n>>2]),ar[Z>>2]=ar[u>>2]):s=d,!((s-l>>2|0)<=(0|(k=k+1|0)));)d=s;if(0|mo(0|tr[h>>0]))ar[e+376552>>2]=0,ar[e+376556>>2]=0,ar[e+376560>>2]=0,u=l=0;else{if((l=0|tr[r+908>>0])<<24>>24)for(k=255&l,d=b=s=0;Z=0==(0|tr[r+876+s>>0]),l=(1&Z)+d|0,u=(1&(1^Z))+b|0,ar[(Z?e+376700+(d<<2)|0:e+376572+(b<<2)|0)>>2]=(0|or[r+812+(s<<1)>>1])+(0|ar[92+(0|ar[n>>2])>>2]),!((0|k)<=(0|(s=s+1|0)));)b=u,d=l;else l=u=0;if(ar[e+376552>>2]=u,(u=0|tr[r+909>>0])<<24>>24)for(k=255&u,b=s=0;;){if(Z=0==(0|tr[r+892+s>>0]),d=(1&Z)+l|0,u=(1&(1^Z))+b|0,ar[(Z?e+376700+(l<<2)|0:e+376636+(b<<2)|0)>>2]=(0|or[r+844+(s<<1)>>1])+(0|ar[92+(0|ar[n>>2])>>2]),(0|k)<=(0|(s=s+1|0))){l=d;break}b=u,l=d}else u=0;if(ar[e+376556>>2]=u,ar[e+376560>>2]=l,k=r+140|0,0<((0|ar[(h=r+144|0)>>2])+(0|ar[k>>2])|0))for(w=r+28|0,v=e+375388|0,u=l=d=0;s=0|ar[e+376232+(d<<2)>>2],0|tr[(b=r+244+d|0)>>0]&&(s=(0|ar[92+(0|ar[n>>2])>>2])+s-(0|ar[w>>2])-(0|sr(0|ar[5032+(0|ar[v>>2])>>2],0|ar[e+376360+(d<<2)>>2]))|0),0|ar[e+376296+(d<<2)>>2]?(ar[e+376764+(l<<2)>>2]=s,ar[e+376424+(l<<2)>>2]=tr[b>>0],l=l+1|0):(ar[e+376828+(u<<2)>>2]=s,ar[e+376488+(u<<2)>>2]=tr[b>>0],u=u+1|0),(0|(d=d+1|0))<((0|ar[h>>2])+(0|ar[k>>2])|0););else u=l=0}ar[(v=e+376564|0)>>2]=l,ar[(w=e+376568|0)>>2]=u,d=A+376148|0,g=A+376156|0,l=(0|ar[(m=A+376160|0)>>2])-(0|ar[g>>2])|0,u=l>>2,ar[t>>2]=0,ar[(s=4+t|0)>>2]=0,ar[(b=8+t|0)>>2]=0,0|u&&((0|l)<0&&il(),y=0|El((Z=1+((u+-1|0)>>>5)|0)<<2),ar[t>>2]=y,ar[b>>2]=Z,ar[s>>2]=u,Vu(0|y,0,(Z=u>>>5)<<2|0),l=u-(Z<<5)|0,u=y+(Z<<2)|0,0|l&&(ar[u>>2]=ar[u>>2]&~(-1>>>(32-l|0))));if(qt(),0<(0|(l=0|ar[v>>2])))for(d=e+376148|0,k=e+376156|0,h=e+375388|0,b=0;l=0|ar[(s=e+376764+(b<<2)|0)>>2],l=0|ar[e+376424+(b<<2)>>2]?0|Ao(d,l,i,1):0|eo(d,l,i,1),(0|(ar[(u=e+377084+(b<<2)|0)>>2]=l))<=-1&&(l=0|Ut(A,e,0|ar[h>>2],0|ar[s>>2],1),ar[u>>2]=l),Z=(0|ar[t>>2])+(l>>>5<<2)|0,ar[Z>>2]=ar[Z>>2]|1<<(31&l),0|tr[10516+(0|ar[(0|ar[k>>2])+(l<<2)>>2])>>0]&&(tr[10516+(0|ar[n>>2])>>0]=4),b=b+1|0,l=0|ar[v>>2],(0|b)<(0|l););if(0<(0|(u=0|ar[w>>2]))){for(k=e+376148|0,h=e+375388|0,d=0;l=0|ar[(s=e+376828+(d<<2)|0)>>2],l=0|ar[e+376488+(d<<2)>>2]?0|Ao(k,l,i,1):0|eo(k,l,i,1),(0|(ar[(u=e+377148+(d<<2)|0)>>2]=l))<=-1&&(l=0|Ut(A,e,0|ar[h>>2],0|ar[s>>2],1),ar[u>>2]=l),b=(0|ar[t>>2])+(l>>>5<<2)|0,ar[b>>2]=ar[b>>2]|1<<(31&l),d=d+1|0,b=0|ar[w>>2],(0|d)<(0|b););l=0|ar[v>>2]}else b=u;if(0<(0|l))for(s=0|ar[e+376156>>2],u=0;ar[96+(0|ar[s+(ar[e+377084+(u<<2)>>2]<<2)>>2])>>2]=2,(0|(u=u+1|0))<(0|l););if(0<(0|b))for(u=0|ar[e+376156>>2],l=0;ar[96+(0|ar[u+(ar[e+377148+(l<<2)>>2]<<2)>>2])>>2]=2,(0|(l=l+1|0))<(0|b););if(0<(0|ar[(d=e+376552|0)>>2]))for(k=e+376148|0,h=e+376156|0,w=e+375388|0,b=0;l=0|Ao(k,0|ar[(u=e+376572+(b<<2)|0)>>2],i,0),(0|(ar[(s=e+376892+(b<<2)|0)>>2]=l))<=-1&&(l=0|Ut(A,e,0|ar[w>>2],0|ar[u>>2],0),ar[s>>2]=l),Z=(0|ar[t>>2])+(l>>>5<<2)|0,ar[Z>>2]=ar[Z>>2]|1<<(31&l),0|tr[10516+(0|ar[(0|ar[h>>2])+(l<<2)>>2])>>0]&&(tr[10516+(0|ar[n>>2])>>0]=4),(0|(b=b+1|0))<(0|ar[d>>2]););if(0<(0|ar[(d=e+376556|0)>>2]))for(k=e+376148|0,h=e+376156|0,w=e+375388|0,b=0;l=0|Ao(k,0|ar[(u=e+376636+(b<<2)|0)>>2],i,0),(0|(ar[(s=e+376956+(b<<2)|0)>>2]=l))<=-1&&(l=0|Ut(A,e,0|ar[w>>2],0|ar[u>>2],0),ar[s>>2]=l),Z=(0|ar[t>>2])+(l>>>5<<2)|0,ar[Z>>2]=ar[Z>>2]|1<<(31&l),0|tr[10516+(0|ar[(0|ar[h>>2])+(l<<2)>>2])>>0]&&(tr[10516+(0|ar[n>>2])>>0]=4),(0|(b=b+1|0))<(0|ar[d>>2]););if(0<(0|ar[(u=e+376560|0)>>2]))for(s=e+376148|0,l=0;b=0|Ao(s,0|ar[e+376700+(l<<2)>>2],i,0),-1<(0|(ar[e+377020+(l<<2)>>2]=b))&&(A=(0|ar[t>>2])+(b>>>5<<2)|0,ar[A>>2]=ar[A>>2]|1<<(31&b)),(0|(l=l+1|0))<(0|ar[u>>2]););if(u=0|ar[m>>2],l=0|ar[g>>2],0<(u-l|0))for(v=e+376156|0,h=e+376160|0,w=8+o|0,k=0,d=u;!(((u=ar[(0|ar[t>>2])+(k>>>5<<2)>>2]&1<<(31&k)?d:(u=0|ar[v>>2],s=(0|ar[h>>2])-u>>2>>>0>k>>>0?0|ar[u+(k<<2)>>2]:0,u=0|ar[n>>2],(0|s)!=(0|u)&&(0|ar[(C=s+104|0)>>2])>>>0>(0|ar[u>>2])>>>0&&0!=(0|ar[s+96>>2])?(s=0|ar[s>>2],ar[f>>2]=s,(b=0|ar[a>>2])>>>0<(0|ar[w>>2])>>>0?(ar[b>>2]=s,ar[a>>2]=b+4,s=d):(St(o,f),s=0|ar[m>>2],l=0|ar[g>>2],u=0|ar[n>>2]),ar[C>>2]=ar[u>>2],s):d))-l>>2|0)<=(0|(k=k+1|0)));)d=u;(0|(l=r+1344|0))!=(0|o)&&Br(l,0|ar[o>>2],0|ar[a>>2]);0|(l=0|ar[t>>2])&&Vl(l);if(!(l=0|ar[o>>2]))return ur=c;(0|(u=0|ar[a>>2]))!=(0|l)&&(ar[a>>2]=u+(~((u+-4-l|0)>>>2)<<2));Vl(l),ur=c}(A,e,r)),ar[l>>2]=1,function(A){A|=0,ar[12717]=A}(0|ar[92+(0|ar[s>>2])>>2]),tr[A+376208>>0]=0}else if(!(0|ar[e+376224>>2]))return ur=c,(r=0)|r;if((0|ar[r+20>>2])>>>0<2&&!(0|function(A,e,r){A|=0,e|=0;var i,f,n,t,o,a,c,l,u,s,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0;ur=(s=ur)+480|0,v=s+192|0,u=(l=s)+384|0,g=0|ar[912+(r|=0)>>2],h=0|ar[(i=r+328|0)>>2],k=(0|g)<(0|h)?h:g,b=96+(A=u)|0;for(;tr[A>>0]=0,A=A+1|0,(0|A)<(0|b););f=e+376552|0,n=e+376556|0,t=e+376564|0,o=e+376892|0,a=e+376956|0,c=e+377084|0,A=0;for(;!((0|k)<=(0|A));){if(0<(0|(d=0|ar[f>>2])))for(Eu(v+(A<<2)|0,0|o,0|sr((b=A-k|0)>>>0<(w=0-d|0)>>>0?w:b,-4)),b=0;(0|(A=A+1|0))<(0|k)&(0|(b=b+1|0))<(0|d););if(d=0|ar[n>>2],(0|A)<(0|k)&0<(0|d))for(Eu(v+(A<<2)|0,0|a,0|sr((b=A-k|0)>>>0<(w=0-(1<(0|d)?d:1)|0)>>>0?w:b,-4)),b=0;(0|(A=A+1|0))<(0|k)&(0|(b=b+1|0))<(0|d););if(d=0|ar[t>>2],(0|A)<(0|k)&0<(0|d))for(Vu(u+A|0,1,0-(b=(b=A-k|0)>>>0<(w=0-(1<(0|d)?d:1)|0)>>>0?w:b)|0),Eu(v+(A<<2)|0,0|c,0|sr(b,-4)),b=0;(0|(A=A+1|0))<(0|k)&(0|(b=b+1|0))<(0|d););if(!A){p=13;break}}if(13==(0|p))return 20==(0|(A=0|ar[(b=e+84|0)>>2]))?(b=1001,A=19):(ar[b>>2]=A+1,b=1016),ar[e+4+(A<<2)>>2]=b,ur=s,(e=0)|e;17<=(0|h)&&br(28270,28026,1781,28303);A:do{if(0<(0|h)){for(k=r+336|0,h=e+376156|0,w=e+376160|0,d=0;;){if(A=0|tr[k>>0]?0|cr[r+338+d>>0]:d,ar[(b=r+916+(d<<2)|0)>>2]=ar[v+(A<<2)>>2],tr[r+1300+d>>0]=0|tr[u+A>>0],A=0|ar[b>>2],b=0|ar[h>>2],(0|ar[w>>2])-b>>2>>>0<=A>>>0){A=0,p=54;break}if(!(A=0|ar[b+(A<<2)>>2])){A=0,p=54;break}if(ar[r+1044+(d<<2)>>2]=ar[A+92>>2],ar[r+1172+(d<<2)>>2]=ar[A+96>>2],d=d+1|0,(0|(A=0|ar[i>>2]))<=(0|d)){m=A;break A}}if(54==(0|p))return ur=s,0|A}else m=h}while(0);if(0|ar[r+20>>2])return ur=s,0|(e=1);h=0|ar[(v=r+332|0)>>2],k=(0|g)<(0|h)?h:g,A=0;for(;!((0|k)<=(0|A));){if(0<(0|(d=0|ar[n>>2])))for(Eu(l+(A<<2)|0,0|a,0|sr((b=A-k|0)>>>0<(g=0-d|0)>>>0?g:b,-4)),b=0;(0|(A=A+1|0))<(0|k)&(0|(b=b+1|0))<(0|d););if(d=0|ar[f>>2],(0|A)<(0|k)&0<(0|d))for(Eu(l+(A<<2)|0,0|o,0|sr((b=A-k|0)>>>0<(g=0-(1<(0|d)?d:1)|0)>>>0?g:b,-4)),b=0;(0|(A=A+1|0))<(0|k)&(0|(b=b+1|0))<(0|d););if(d=0|ar[t>>2],(0|A)<(0|k)&0<(0|d))for(Vu(48+u+A|0,1,0-(b=(b=A-k|0)>>>0<(g=0-(1<(0|d)?d:1)|0)>>>0?g:b)|0),Eu(l+(A<<2)|0,0|c,0|sr(b,-4)),b=0;(0|(A=A+1|0))<(0|k)&(0|(b=b+1|0))<(0|d););if(!A){p=38;break}}if(38==(0|p))return 20==(0|(A=0|ar[(b=e+84|0)>>2]))?(b=1001,A=19):(ar[b>>2]=A+1,b=1016),ar[e+4+(A<<2)>>2]=b,ur=s,(e=0)|e;if(16<(0|m))return 20==(0|(A=0|ar[(b=e+84|0)>>2]))?(b=1001,A=19):(ar[b>>2]=A+1,b=1012),ar[e+4+(A<<2)>>2]=b,ur=s,(e=0)|e;17<=(0|h)&&br(28337,28026,1834,28303);if((0|h)<=0)return ur=s,0|(e=1);h=r+337|0,w=e+376156|0,k=e+376160|0,d=0;for(;;){if(A=0|tr[h>>0]?0|cr[r+354+d>>0]:d,ar[(b=r+980+(d<<2)|0)>>2]=ar[l+(A<<2)>>2],tr[r+1316+d>>0]=0|tr[48+u+A>>0],A=0|ar[b>>2],b=0|ar[w>>2],(0|ar[k>>2])-b>>2>>>0<=A>>>0){A=0,p=54;break}if(!(A=0|ar[b+(A<<2)>>2])){A=0,p=54;break}if(ar[r+1108+(d<<2)>>2]=ar[A+92>>2],ar[r+1236+(d<<2)>>2]=ar[A+96>>2],(0|(d=d+1|0))>=(0|ar[v>>2])){A=1,p=54;break}}return 54!=(0|p)?0:(ur=s,0|A)}(0,e,r)))return ur=c,(r=0)|r;qt(),u=0|tr[r+12>>0]?800+(0|ar[(l=u=e+376228|0)>>2])|0:(l=e+376228|0,r+16|0);return ar[r+800>>2]=ar[u>>2],ar[l>>2]=r,ur=c,0|(r=1)}(A,A,b,n,0|ar[(u=r+8|0)>>2],0|ar[u+4>>2],i,0|ar[r+16>>2]),a=0|ar[(s=A+376224|0)>>2],!u)return 0|a&&(tr[a+10516>>0]=2),Eo(A+548|0,r),0|(a=0|ar[b+1344>>2])&&((0|(c=0|ar[(i=b+1348|0)>>2]))!=(0|a)&&(ar[i>>2]=c+(~((c+-4-a|0)>>>2)<<2)),Vl(a)),Zt(b+1332|0),0|(a=0|ar[b+776>>2])&&((0|(c=0|ar[(i=b+780|0)>>2]))!=(0|a)&&(ar[i>>2]=c+(~((c+-4-a|0)>>>2)<<2)),Vl(a)),Vl(b),b=0|ar[n>>2],ur=t,0|b;if(ar[f>>2]=b,i=a+48|0,l=0|ar[(c=a+52|0)>>2],ar[b>>2]=l-(0|ar[i>>2])>>2,(0|l)==(0|ar[a+56>>2])?function(A,e){e|=0;var r,i,f,n,t,o=0,a=0,c=0,l=0;f=4+(A|=0)|0,n=0|ar[A>>2],t=(0|ar[f>>2])-n|0,1073741823<(o=1+(i=t>>2)|0)>>>0&&il();c=(0|ar[(l=A+8|0)>>2])-n|0,a=c>>1,a=c>>2>>>0<536870911?a>>>0<o>>>0?o:a:1073741823;do{if(a){if(!(1073741823<a>>>0)){c=0|El(a<<2);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else c=0}while(0);ar[(r=c+(i<<2)|0)>>2]=ar[e>>2],o=r+(0-i<<2)|0,0<(0|t)&&Eu(0|o,0|n,0|t);if(ar[A>>2]=o,ar[f>>2]=4+r,ar[l>>2]=c+(a<<2),!n)return;Vl(n)}(i,f):(ar[l>>2]=b,ar[c>>2]=4+(0|ar[c>>2])),ct(e,1),lt(e),l=(0|ar[e>>2])-(0|ar[r+20>>2])|0,0<(0|ar[(u=b+768|0)>>2]))for(c=(a=0)|ar[(i=b+776|0)>>2];k=0|Wo(r,0|ar[c+(a<<2)>>2],l),c=0|ar[i>>2],ar[(d=c+(a<<2)|0)>>2]=(0|ar[d>>2])-k,(0|(a=a+1|0))<(0|ar[u>>2]););if(0|tr[b+4>>0]){for(ao((c=0|El(10688))+8|0),i=(a=c+10632|0)+56|0;(0|(a=a+4|(ar[a>>2]=0)))<(0|i););ar[f>>2]=c,ar[c>>2]=ar[s>>2],(0|(i=0|ar[(a=A+377220|0)>>2]))==(0|ar[A+377224>>2])?function(A,e){e|=0;var r,i,f,n,t,o=0,a=0,c=0,l=0;f=4+(A|=0)|0,n=0|ar[A>>2],t=(0|ar[f>>2])-n|0,1073741823<(o=1+(i=t>>2)|0)>>>0&&il();c=(0|ar[(l=A+8|0)>>2])-n|0,a=c>>1,a=c>>2>>>0<536870911?a>>>0<o>>>0?o:a:1073741823;do{if(a){if(!(1073741823<a>>>0)){c=0|El(a<<2);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else c=0}while(0);ar[(r=c+(i<<2)|0)>>2]=ar[e>>2],o=r+(0-i<<2)|0,0<(0|t)&&Eu(0|o,0|n,0|t);if(ar[A>>2]=o,ar[f>>2]=4+r,ar[l>>2]=c+(a<<2),!n)return;Vl(n)}(A+377216|0,f):(ar[i>>2]=c,ar[a>>2]=4+(0|ar[a>>2]))}else a=A+377220|0;return(0|ar[A+377216>>2])!=(0|ar[a>>2])&&(l=0|El(152),ar[l>>2]=0,ar[(i=l+4|0)>>2]=0,ar[l+32>>2]=0,jn(l+44|(tr[l+36>>0]=0)),ar[l+124>>2]=0,ar[l+128>>2]=-1,ar[l+132>>2]=-1,ar[l+136>>2]=0,ar[l+144>>2]=A,ar[l+40>>2]=0,ar[l+140>>2]=0,ar[f>>2]=l,ar[l>>2]=r,ar[i>>2]=b,ar[(i=l+8|0)>>2]=ar[e>>2],ar[i+4>>2]=ar[e+4>>2],ar[i+8>>2]=ar[e+8>>2],ar[i+12>>2]=ar[e+12>>2],ar[i+16>>2]=ar[e+16>>2],ar[i+20>>2]=ar[e+20>>2],tr[l+36>>0]=0|tr[A+377228>>0],a=0|ar[(0|ar[a>>2])-4>>2],(0|(c=0|ar[(i=a+10636|0)>>2]))==(0|ar[a+10640>>2])?function(A,e){e|=0;var r,i,f,n,t,o=0,a=0,c=0,l=0;f=4+(A|=0)|0,n=0|ar[A>>2],t=(0|ar[f>>2])-n|0,1073741823<(o=1+(i=t>>2)|0)>>>0&&il();c=(0|ar[(l=A+8|0)>>2])-n|0,a=c>>1,a=c>>2>>>0<536870911?a>>>0<o>>>0?o:a:1073741823;do{if(a){if(!(1073741823<a>>>0)){c=0|El(a<<2);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else c=0}while(0);ar[(r=c+(i<<2)|0)>>2]=ar[e>>2],o=r+(0-i<<2)|0,0<(0|t)&&Eu(0|o,0|n,0|t);if(ar[A>>2]=o,ar[f>>2]=4+r,ar[l>>2]=c+(a<<2),!n)return;Vl(n)}(a+10632|0,f):(ar[c>>2]=l,ar[i>>2]=4+(0|ar[i>>2]))),k=0|Xr(A,f),ar[n>>2]=k,ur=t,(k=0)|k}function Xr(A,e){A|=0;var r,i,f,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0;if(ur=(f=ur)+16|0,r=f,((tr[(e|=0)>>0]=0)|(t=n=0|ar[(i=A+377216|0)>>2]))==(0|(o=s=0|ar[(d=A+377220|0)>>2])))return ur=f,(d=0)|d;u=0|ar[n>>2],a=0|ar[u+10636>>2],s=c=0|ar[u+10632>>2];A:do{if((0|a)!=(0|c)){for(c=a-c>>2,a=0;l=0|ar[s+(a<<2)>>2],a=a+1|0,0|ar[l+40>>2];)if(c>>>0<=a>>>0)break A;if(l){if(0|tr[l+36>>0]&&no(A+376148|0),tr[e>>0]=1,n=0|_r(A,u,l))return ur=f,0|(d=n);t=n=0|ar[i>>2],o=0|ar[d>>2];break}}}while(0);if(1<o-t>>2>>>0?(u=0|ar[n>>2],(0|(s=0|ar[u+10636>>2]))!=(0|ar[u+10632>>2])&&0==(0|ar[40+(0|ar[s+-4>>2])>>2])&&(b=14)):b=14,14==(0|b)){if((0|o)==(0|(n=b=0|ar[i>>2])))return ur=f,(d=0)|d;if(s=0|ar[n>>2],(0|(b=0|ar[s+10636>>2]))!=(0|ar[s+10632>>2])&&0==(0|ar[40+(0|ar[b+-4>>2])>>2]))return ur=f,(d=0)|d;if((0!=(0|ar[A+556>>2])|0)!=(0-(0|ar[A+580>>2])|0))return ur=f,(d=0)|d;if(0==(0|tr[A+548>>0])&&0==(0|tr[A+549>>0]))return ur=f,(d=0)|d}if(c=0|ar[n>>2],tr[e>>0]=1,n=0|ar[c>>2],0<(0|ar[(o=n+10344|0)>>2])){for(t=n+10524|0,n=0;Ln((0|ar[t>>2])+(80*n|0)|0,1),(0|(n=n+1|0))<(0|ar[o>>2]););a=0|ar[c>>2]}else a=n;n=0|ar[(o=a+10332|0)>>2],t=0==(0|tr[n+532>>0]),0|ar[375892+(0|ar[10332+(0|ar[A+376224>>2])>>2])>>2]?(t?(function(A){var e,r,i,f,n,t,o,a=0,c=0,l=0;{if(ur=(o=ur)+16|0,r=o,i=0|ar[(A|=0)>>2],l=0|ar[10332+i>>2],so(i,ar[(f=5828+i|0)>>2]<<1),n=A+10668|0,t=A+10672|0,l=l+375396|0,e=A+10664|0,!(0<(0|ar[f>>2])))return ur=o;c=0}for(;A=0|El(20),ar[A+4>>2]=0,ar[A>>2]=7896,ar[A+8>>2]=i,ar[A+12>>2]=c,tr[A+16>>0]=1,ar[r>>2]=A,(a=0|ar[n>>2])>>>0<(0|ar[t>>2])>>>0?(ar[a>>2]=A,ar[n>>2]=4+(0|ar[n>>2])):vr(e,r),qn(l,A),c=c+1|0,A=0|ar[f>>2],(0|c)<(0|A););{if(!(0<(0|A)))return ur=o;A=0}for(;a=0|El(20),ar[a+4>>2]=0,ar[a>>2]=7896,ar[a+8>>2]=i,ar[a+12>>2]=A,tr[a+16>>0]=0,ar[r>>2]=a,(c=0|ar[n>>2])>>>0<(0|ar[t>>2])>>>0?(ar[c>>2]=a,ar[n>>2]=4+(0|ar[n>>2])):vr(e,r),qn(l,a),A=A+1|0,(0|A)<(0|ar[f>>2]););ur=o}(c),t=3,n=0|ar[o>>2]):t=1,0|tr[n+533>>0]||function(A,e){e|=0;var r,i,f,n,t=0,o=0,a=0,c=0,l=0,u=0,s=0;if(ur=(n=ur)+16|0,f=n,s=0|ar[(A|=0)>>2],!(0|tr[s+5467>>0]))return ur=n,s=0;if(o=0|ar[(t=s+10332|0)>>2],u=s+10480|0,0|co(i=A+8|0,0|ar[s+24>>2],0|ar[s+28>>2],0|ar[s+20>>2],s+764|0,0,o,0|ar[s+10336>>2],0|ar[u>>2],0|ar[u+4>>2],0|ar[s+10488>>2],1))return Gr(4+(0|ar[t>>2])|0,1024,0),ur=n,s=0;if(r=0|ar[s+5828>>2],so(s,r),0<(0|r))for(l=A+10668|0,u=A+10672|0,c=o+375396|0,o=A+10664|0,t=0;A=0|El(28),ar[A+4>>2]=0,ar[A>>2]=6096,ar[A+16>>2]=s,ar[A+20>>2]=i,ar[A+12>>2]=s,ar[A+8>>2]=t,ar[A+24>>2]=e,ar[f>>2]=A,(a=0|ar[l>>2])>>>0<(0|ar[u>>2])>>>0?(ar[a>>2]=A,ar[l>>2]=4+(0|ar[l>>2])):vr(o,f),qn(c,A),(0|(t=t+1|0))!=(0|r););wo(s),function(A,e){var r,i=0,f=0,n=0;n=(e=e|0)+4|0,f=0|ar[(i=(A=A|0)+4|0)>>2],ar[i>>2]=ar[n>>2],ar[n>>2]=f,f=e+60|0,i=0|ar[(n=A+60|0)>>2],ar[n>>2]=ar[f>>2],ar[f>>2]=i,i=e+10492|0,n=0|ar[(f=A+10492|0)>>2],ar[f>>2]=ar[i>>2],ar[i>>2]=n,n=e+8|0,f=0|ar[(i=A+8|0)>>2],ar[i>>2]=ar[n>>2],ar[n>>2]=f,f=e+64|0,i=0|ar[(n=A+64|0)>>2],ar[n>>2]=ar[f>>2],ar[f>>2]=i,i=e+10496|0,n=0|ar[(f=A+10496|0)>>2],ar[f>>2]=ar[i>>2],ar[i>>2]=n,n=e+12|0,f=0|ar[(i=A+12|0)>>2],ar[i>>2]=ar[n>>2],ar[n>>2]=f,f=e+68|0,i=0|ar[(n=A+68|0)>>2],ar[n>>2]=ar[f>>2],ar[f>>2]=i,i=e+10500|0,n=0|ar[(f=A+10500|0)>>2],ar[f>>2]=ar[i>>2],ar[i>>2]=n,n=e+40|0,f=0|ar[(i=A+40|0)>>2],ar[i>>2]=ar[n>>2],ar[n>>2]=f,f=e+44|0,i=0|ar[(n=A+44|0)>>2],ar[n>>2]=ar[f>>2],ar[f>>2]=i,e=e+10504|0,i=0|ar[(A=f=A+10504|0)>>2],A=0|ar[A+4>>2],r=0|ar[(n=e)+4>>2],ar[f>>2]=ar[n>>2],ar[f+4>>2]=r,ar[e>>2]=i,ar[e+4>>2]=A}(s,i),ur=n,s=1}(c,t),wo(a)):(t&&(function(A){var e,r,i,f=0,n=0,t=0;{if(!(0<(0|ar[(t=5828+(A|=0)|0)>>2])))return;n=f=0}for(;f=0|f|Gt(A,n),n=n+1|0,(0|n)<(0|ar[t>>2]););if(!f)return;i=A+10472|0,Vt(A,1,0,0|ar[(r=A+10476|0)>>2],0,0|ar[i>>2]),f=0|ar[r>>2],n=0|ar[i>>2],(8<(0|ar[(e=A+5760|0)>>2])?Xt:_t)(A,1,0,f,0,n);t=A+5776|0;do{if(0|ar[t>>2]){if(f=0|ar[r>>2],n=0|ar[i>>2],8<(0|ar[A+5768>>2])){Ft(A,1,0,f,0,n);break}Nt(A,1,0,f,0,n);break}}while(0);Vt(A,0,0,0|ar[r>>2],0,0|ar[i>>2]),f=0|ar[r>>2],n=0|ar[i>>2],(8<(0|ar[e>>2])?Xt:_t)(A,0,0,f,0,n);if(!(0|ar[t>>2]))return;n=0|ar[r>>2],f=0|ar[i>>2],8<(0|ar[A+5768>>2])?Ft(A,0,0,n,0,f):Nt(A,0,0,n,0,f)}(a),n=0|ar[o>>2]),0|tr[n+533>>0]||function(A){var e,r,i,f,n,t,o,a,c,l,u,s,b,d,k,h,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0,X=0;if(!(0|tr[5467+(A|=0)>>0]))return;d=A+40|0,G=0|sr(0|ar[(k=A+28|0)>>2],0|ar[d>>2]),G=0|sr(G,(7+(0|ar[(h=A+5760|0)>>2])|0)/8|0),e=A+44|0,X=0|sr(0|ar[(r=A+36|0)>>2],0|ar[e>>2]),X=0|sr(X,(7+(0|ar[(i=A+5768|0)>>2])|0)/8|0),X=0|Gl(-1<(0|(X=(0|X)<(0|G)?G:X))?X:-1),G=0==(0|ar[A+5776>>2])?1:3,n=A+5820|0,t=A+10352|0,o=A+10340|0,a=A+48|0,c=A+52|0,l=A+5804|0,u=A+4|0,s=A+5780|0,b=A+5784|0,w=0|ar[(f=A+5828|(V=0))>>2];A:for(;;){if(C=0|ar[(I=(B=0==(0|V))?d:e)>>2],E=A+4+(V<<2)|0,Z=0|sr(0|ar[(B?k:r)>>2],C),W=B?h:i,Eu(0|X,0|ar[E>>2],0|sr(Z,(7+(0|ar[W>>2])|0)/8|0)),0<(0|w))for(w=(Z=0)|ar[n>>2];;){if(0<(0|w))for(y=0;;){if(w=(0|sr(0|ar[t>>2],Z))+y|0,w=0|lr[(0|ar[o>>2])+(24*w|0)+2>>1],v=0|ar[a>>2],w>>>0>=(0|ar[c>>2])-v>>2>>>0){w=21;break A}if(!(p=0|ar[v+(w<<2)>>2])){w=21;break A}do{if(B){if(0|tr[p+325>>0]){if(v=1<<ar[l>>2],g=0|ar[u>>2],w=0|ar[d>>2],8<(0|ar[h>>2])){Jo(A,y,Z,p,0,v,v,X,C,g,w);break}Zn(A,y,Z,p,0,v,v,X,C,g,w);break}}else if(0|tr[p+326>>0]){if(g=1<<ar[l>>2],v=(0|g)/(0|ar[s>>2])|0,g=(0|g)/(0|ar[b>>2])|0,m=0|ar[E>>2],w=0|ar[I>>2],8<(0|ar[W>>2])){Jo(A,y,Z,p,V,v,g,X,C,m,w);break}Zn(A,y,Z,p,V,v,g,X,C,m,w);break}}while(0);if(y=y+1|0,(0|(w=0|ar[n>>2]))<=(0|y)){v=w;break}}else v=w;if(Z=Z+1|0,(0|(w=0|ar[f>>2]))<=(0|Z))break;w=v}if((0|G)<=(0|(V=V+1|0))){w=20;break}}{if(20==(0|w))return Xl(X);if(21==(0|w));}}(a)),a=c+10648|0,n=0|ar[(o=c+10644|0)>>2];A:do{if((0|ar[a>>2])==(0|n))a=0;else for(t=0;;){if(n=0|Wn(n+(80*t|0)|0,0|ar[c>>2]),t=t+1|0,0|n){a=n;break A}if(n=0|ar[o>>2],t>>>0>=(((0|ar[a>>2])-n|0)/80|0)>>>0){a=0;break}}}while(0);if(0|(o=0|ar[c>>2])){do{if(0|tr[o+100>>0]){if(0|tr[o+10516>>0]&&0|tr[A+514>>0])break;ar[r>>2]=o,(0|(t=0|ar[(n=A+376172|0)>>2]))==(0|ar[A+376176>>2])?Fr(A+376168|0,r):(ar[t>>2]=o,ar[n>>2]=4+(0|ar[n>>2]))}}while(0);n=A+376148|0,((0|ar[A+376172>>2])-(0|ar[A+376168>>2])>>2|0)>(0|ar[o+596+(12*((0|ar[o+116>>2])-1|0)|0)+4>>2])&&io(n)}if(kr(c),Vl(c),1<(n=0|ar[d>>2])-(t=0|ar[i>>2])>>2>>>0)for(o=1;ar[(n=t)+(o+-1<<2)>>2]=ar[n+(o<<2)>>2],(o=o+1|0)>>>0<(n=0|ar[d>>2])-(t=0|ar[i>>2])>>2>>>0;);return ar[d>>2]=n+-4,ur=f,0|(d=a)}function _r(A,e,r){A|=0,e|=0;var i,f,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0;if(l=(u=0|ar[(f=(r|=0)+4|0)>>2])+1344|0,u=u+1348|0,t=0|ar[l>>2],(0|ar[u>>2])!=(0|t))for(a=A+376148|0,c=A+376156|0,o=0;-1<(0|(t=0|ro(a,0|ar[t+(o<<2)>>2])))&&(ar[96+(0|ar[(0|ar[c>>2])+(t<<2)>>2])>>2]=0),o=o+1|0,t=0|ar[l>>2],o>>>0<(0|ar[u>>2])-t>>2>>>0;);u=0|ar[e>>2],ar[(i=r+40|0)>>2]=1,c=0|ar[u+10332>>2];A:do{if(0<(0|ar[c+375892>>2]))if(l=(k=0|tr[u+5965>>0])<<24>>24!=0,t=(h=0|tr[u+5966>>0])<<24>>24!=0,(k|h)<<24>>24)d=t;else{if(0<(0|(a=0|ar[(o=c+168|0)>>2]))){t=0;do{if(1e3==(0|ar[c+88+(t<<2)>>2])){d=0;break A}t=t+1|0}while((0|t)<(0|a));(0|a)<20&&(v=12)}else v=12;12==(0|v)&&(ar[o>>2]=a+1,ar[c+88+(a<<2)>>2]=1e3),20==(0|(t=0|ar[(o=c+84|0)>>2]))?(o=1001,t=19):(ar[o>>2]=t+1,o=1e3),ar[c+4+(t<<2)>>2]=o,d=0}else l=d=0}while(0);if(k=e+10632|0,(0|(t=0|ar[(h=e+10636|0)>>2]))!=(0|(o=0|ar[k>>2]))){if((0|ar[o>>2])==(0|r)&&0<(0|(s=0|ar[16+(0|ar[f>>2])>>2]))){for(o=u+10524|0,t=0;Ln((0|ar[o>>2])+(80*t|0)|0,1),(0|(t=t+1|0))!=(0|s););o=0|ar[k>>2],t=0|ar[h>>2]}}else o=t;a=t-o>>2;A:do{if(1<a>>>0){for(t=1;(0|ar[o+(t<<2)>>2])!=(0|r);)if(a>>>0<=(t=t+1|0)>>>0)break A;if(0|(c=0|ar[o+(t+-1<<2)>>2])&&2==(0|ar[c+40>>2])){a=a+-1|0,t=0;do{if(a>>>0<=t>>>0)break A;t=(s=t)+1|0}while((0|ar[o+(s<<2)>>2])!=(0|c));if(0|(t=0|ar[o+(t<<2)>>2])&&(0|(n=0|ar[16+(0|ar[c+4>>2])>>2]))<(0|ar[16+(0|ar[(b=t+4|0)>>2])>>2]))do{if(t=0|ar[e>>2],(0|n)>=(0|ar[t+10344>>2]))break A;Ln((0|ar[t+10524>>2])+(80*n|0)|0,1),n=n+1|0}while((0|n)<(0|ar[16+(0|ar[b>>2])>>2]))}}}while(0);if(!(l|d)){a=0|function(A,e,r){A|=0,e|=0;var i,f,n,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;if(ur=(n=ur)+18624|0,f=n,t=0|ar[(i=4+(r|=0)|0)>>2],s=t+1348|0,o=0|ar[(u=t+1344|0)>>2],(0|ar[s>>2])!=(0|o)){for(c=A+376148|0,l=A+376156|0,a=0,t=o;-1<(0|(t=0|ro(c,0|ar[t+(a<<2)>>2])))&&(ar[96+(0|ar[(0|ar[l>>2])+(t<<2)>>2])>>2]=0),a=a+1|0,t=0|ar[u>>2],a>>>0<(0|ar[s>>2])-t>>2>>>0;);t=0|ar[i>>2]}if(s=0|ar[e>>2],(0|ar[t+16>>2])>>>0>=(0|ar[s+10276>>2])-(0|ar[s+10272>>2])>>2>>>0)return ur=n,0|(b=6);if(pt(s=f+18580|0),t=f+48|0,ar[(u=f+18508|0)>>2]=0,ar[u+4>>2]=0,ar[u+8>>2]=0,ar[u+12>>2]=0,ar[u+16>>2]=0,Vu(0|(ar[f+2112>>2]=t),0,2048),t=0|ar[i>>2],ar[f+18600>>2]=t,u=0|ar[e>>2],ar[f+18596>>2]=u,ar[f+18592>>2]=A,ar[f+18604>>2]=e,ar[f+18608>>2]=r,ar[f+4>>2]=ar[(0|ar[u+10272>>2])+(ar[t+16>>2]<<2)>>2],wr(ar[f+18612>>2]=0,f),(0|(t=0|ar[r+12>>2]))<1)t=17;else{bt(f+18556|0,0|ar[r+8>>2],t);do{if(0|tr[A+93817>>0]&&0|tr[4+(0|ar[i>>2])>>0]){if(u=e+10676|0,c=(0|ar[5828+(0|ar[A+376224>>2])>>2])-1|0,t=0|ar[(l=e+10680|0)>>2],o=0|ar[u>>2],(a=t-o>>3)>>>0<c>>>0){Nr(u,c-a|0);break}if(c>>>0<a>>>0&&(0|t)!=(0|(b=o+(c<<3)|0)))for(;e=t+-8|0,Zt(ar[l>>2]=e),(0|(t=0|ar[l>>2]))!=(0|b););}}while(0);ar[r+124>>2]=1,t=0|function(A){var e,r,i,f,n,t,o=0,a=0,c=0,l=0,u=0,s=0;l=0|ar[18596+(A|=0)>>2],a=0|ar[A+4>>2],o=0|ar[l+5836>>2],c=0|ar[l+5820>>2],(0|a)<(0|o)&&(o=0|ar[(0|ar[l+10284>>2])+(a<<2)>>2]);if(ar[A>>2]=o,ar[A+8>>2]=(0|o)%(0|c)|0,ar[A+12>>2]=(0|o)/(0|c)|0,a=0|ar[(i=A+18600|0)>>2],!(0|In(A)))return 0|(A=18);dt(f=A+18556|0),n=A+18560|0,t=A+18592|0,l=l+5966|0,e=A+18580|0,r=A+18588|0,a=0==(0|tr[a+12>>(o=0)]);for(;;){do{if(0<(0|o)){if(c=o+-1|0,s=0|ar[i>>2],u=0|ar[s+776>>2],c>>>0<(0|ar[s+780>>2])-u>>2>>>0&&((0|ar[n>>2])-2-(0|ar[f>>2])|0)==(0|ar[u+(c<<2)>>2]))break;Gr(4+(0|ar[t>>2])|0,1003,1)}}while(0);if(o=o+1|0,2==(2|Bn(A,0,a))){o=0,a=14;break}if(0|tr[l>>0]){if(a=0|ar[i>>2],3<=(c=0|ar[a+796>>2])>>>0){a=12;break}Ct(e,c,0|ar[a+792>>2]),tr[r>>0]=0,tr[1+r>>0]=0,tr[2+r>>0]=0,tr[3+r>>0]=0,a=0}else a=0}if(12==(0|a))br(32537,32568,1508,32577);else if(14==(0|a))return 0|o;return 0}(f),Ln(r+44|0,1)}return Zt(s),ur=n,0|(b=t)}(A,e,r),ar[i>>2]=2,o=0|ar[k>>2],t=((0|ar[h>>2])-o>>2)-1|0,n=0;do{if(t>>>0<=n>>>0){w=a,v=60;break}n=(b=n)+1|0}while((0|ar[o+(b<<2)>>2])!=(0|r));if(60==(0|v))return 0|w;if(!(n=0|ar[o+(n<<2)>>2]))return 0|(e=a);if(!((0|(t=0|ar[16+(0|ar[f>>2])>>2]))<(0|ar[16+(0|ar[(o=n+4|0)>>2])>>2])))return 0|(e=a);for(n=t;;){if(t=0|ar[e>>2],(0|n)>=(0|ar[t+10344>>2])){w=a,v=60;break}if(Ln((0|ar[t+10524>>2])+(80*n|0)|0,1),(0|(n=n+1|0))>=(0|ar[16+(0|ar[o>>2])>>2])){w=a,v=60;break}}if(60==(0|v))return 0|w}if(l&d)return 0|(e=1006);if(l){!function(A,e,r){A|=0,r|=0;var i,f,n,t,o,a,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0;ur=(a=ur)+16|0,t=a,o=0|ar[(e|=0)>>2],n=0|ar[r+4>>2],f=0|ar[768+n>>2],h=1+f|0,i=0|ar[5820+o>>2],(0|ar[10536+o>>2])!=(0-(0|ar[10532+o>>2])|0)&&br(28088,28026,989,28193);do{if(0|tr[4+n>>0]){if(l=e+10676|0,u=(0|ar[5828+o>>2])-1|0,c=0|ar[(d=e+10680|0)>>2],s=0|ar[l>>2],(b=c-s>>3)>>>0<u>>>0){Nr(l,u-b|0);break}if(u>>>0<b>>>0&&(0|c)!=(0|(k=s+(u<<3)|0)))for(;I=c+-8|0,Zt(ar[d>>2]=I),(0|(c=0|ar[d>>2]))!=(0|k););}}while(0);hr(r,h),c=0|ar[16+n>>2],b=(0|c)/(0|i)|0;A:do{if(0<=(0|f)){if(g=r+140|0,m=r+136|0,p=10332+o|0,y=10272+o|0,Z=r+12|0,C=r+8|0,W=r+124|0,I=A+375396|0,v=776+n|0,!f){if((0|ar[g>>2])<=0&&br(28143,28163,170,28174),u=0|ar[m>>2],ar[u+18600>>2]=n,ar[u+18592>>2]=ar[p>>2],ar[u+18596>>2]=o,ar[(l=u+18604|0)>>2]=e,ar[u+18608>>2]=r,ar[u+4>>2]=ar[(0|ar[y>>2])+(c<<2)>>2],wr(0,u),(0|(c=0|ar[Z>>2]))<=0)break;bt(u+18556|0,0|ar[C>>2],c),so(o,1),ar[W>>2]=1+(0|ar[W>>2]),s=0|El(20),ar[s+4>>2]=0,ar[s>>2]=6316,tr[s+8>>0]=1,ar[s+16>>2]=u,ar[s+12>>2]=b,ar[u+18612>>2]=s,qn(I,s),c=0|ar[l>>2],ar[t>>2]=s,(u=0|ar[(l=c+10668|0)>>2])>>>0<(0|ar[c+10672>>2])>>>0?(ar[u>>2]=s,ar[l>>2]=4+(0|ar[l>>2])):vr(c+10664|0,t);break}for(l=b,w=0;;){if((0|w)<=0){if((0|c)%(0|i)|0)break A}else c=0|sr(l=c=l+1|0,i);if((0|ar[g>>2])<=(0|w))break;if(b=0|ar[m>>2],d=b+(18624*w|0)|0,ar[b+(18624*w|0)+18600>>2]=n,ar[b+(18624*w|0)+18592>>2]=ar[p>>2],ar[b+(18624*w|0)+18596>>2]=o,ar[(k=b+(18624*w|0)+18604|0)>>2]=e,ar[b+(18624*w|0)+18608>>2]=r,ar[b+(18624*w|0)+4>>2]=ar[(0|ar[y>>2])+(c<<2)>>2],wr(0,d),s=(h=0==(0|w))?0:0|ar[(0|ar[v>>2])+(w+-1<<2)>>2],u=(0|w)==(0|f)?Z:(0|ar[v>>2])+(w<<2)|0,u=0|ar[u>>2],(0|s)<0)break A;if(!((0|s)<(0|u)&&(0|u)<=(0|ar[Z>>2])))break A;if(bt(b+(18624*w|0)+18556|0,(0|ar[C>>2])+s|0,u-s|0),so(o,1),ar[W>>2]=1+(0|ar[W>>2]),A=0|El(20),ar[A+4>>2]=0,ar[A>>2]=6316,tr[A+8>>0]=1&h,ar[A+16>>2]=d,ar[A+12>>2]=l,ar[b+(18624*w|0)+18612>>2]=A,qn(I,A),b=0|ar[k>>2],ar[t>>2]=A,(s=0|ar[(u=b+10668|0)>>2])>>>0<(0|ar[b+10672>>2])>>>0?(ar[s>>2]=A,ar[u>>2]=4+(0|ar[u>>2])):vr(b+10664|0,t),!((0|w)<(0|f)))break A;w=w+1|0}br(28143,28163,170,28174)}}while(0);if(wo(o),d=e+10664|0,l=0|ar[(k=e+10668|0)>>2],s=0|ar[d>>2],(0|(c=l))!=(0|(u=s))){for(b=0;(u=0|ar[u+(b<<2)>>2])&&(ds[511&ar[4+(0|ar[u>>2])>>2]](u),c=0|ar[k>>2],s=0|ar[d>>2],l=c),(b=b+1|0)>>>0<l-(u=s)>>2>>>0;);l=s}ur=((0|c)!=(0|u)&&(ar[k>>2]=c+(~((c+-4-l|0)>>>2)<<2)),a)}(A,e,r),ar[i>>2]=2,o=0|ar[k>>2],t=((0|ar[h>>2])-o>>2)-1|0,n=0;do{if(t>>>0<=n>>>0){w=0,v=60;break}n=(b=n)+1|0}while((0|ar[o+(b<<2)>>2])!=(0|r));if(60==(0|v))return 0|w;if(!(n=0|ar[o+(n<<2)>>2]))return(e=0)|e;if(!((0|(t=0|ar[16+(0|ar[f>>2])>>2]))<(0|ar[16+(0|ar[(o=n+4|0)>>2])>>2])))return(e=0)|e;for(n=t;;){if(t=0|ar[e>>2],(0|n)>=(0|ar[t+10344>>2])){w=0,v=60;break}if(Ln((0|ar[t+10524>>2])+(80*n|0)|0,1),(0|(n=n+1|0))>=(0|ar[16+(0|ar[o>>2])>>2])){w=0,v=60;break}}if(60==(0|v))return 0|w}d||br(49065,28026,971,28061),a=0|function(A,e,r){A|=0,r|=0;var i,f,n,t,o,a,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0;ur=(a=ur)+16|0,f=a,n=0|ar[(e|=0)>>2],t=0|ar[r+4>>2],o=0|ar[768+t>>2],i=0|ar[5820+n>>2],(0|ar[10536+n>>2])!=(0-(0|ar[10532+n>>2])|0)&&br(28088,28026,1103,28119);hr(r,1+o|0),c=0|ar[16+t>>2];A:do{if((0|o)<0)G=0;else{for(m=5968+n|0,p=5972+n|0,y=r+140|0,Z=r+136|0,C=10332+n|0,W=10272+n|0,I=r+12|0,B=r+8|0,E=r+124|0,v=A+375396|0,g=776+t|0,l=c,A=0|ar[(0|ar[10308+n>>2])+(c<<2)>>2],w=0;;){if(0<(0|w)){if(c=A+1|0,A=0|ar[m>>2],(0|c)>=(0|sr(0|ar[p>>2],A))){G=1007;break A}l=(0|sr(0|ar[10228+n+(((0|c)/(0|A)|0)<<2)>>2],i))+(0|ar[10184+n+(((0|c)%(0|A)|0)<<2)>>2])|0,A=c}if((0|ar[y>>2])<=(0|w))break;if(s=0|ar[Z>>2],b=s+(18624*w|0)|0,ar[s+(18624*w|0)+18600>>2]=t,ar[s+(18624*w|0)+18592>>2]=ar[C>>2],ar[s+(18624*w|0)+18596>>2]=n,ar[(d=s+(18624*w|0)+18604|0)>>2]=e,ar[s+(18624*w|0)+18608>>2]=r,ar[s+(18624*w|0)+4>>2]=ar[(0|ar[W>>2])+(l<<2)>>2],wr(0,b),u=(k=0==(0|w))?0:0|ar[(0|ar[g>>2])+(w+-1<<2)>>2],c=(0|w)==(0|o)?I:(0|ar[g>>2])+(w<<2)|0,c=0|ar[c>>2],(0|u)<0){G=17;break A}if(!((0|u)<(0|c)&&(0|c)<=(0|ar[I>>2]))){G=17;break A}if(bt(s+(18624*w|0)+18556|0,(0|ar[B>>2])+u|0,c-u|0),so(n,1),ar[E>>2]=1+(0|ar[E>>2]),h=0|El(24),ar[h+4>>2]=0,ar[h>>2]=6276,tr[h+8>>0]=1&k,ar[h+20>>2]=b,ar[h+12>>2]=(0|l)%(0|i)|0,ar[h+16>>2]=(0|l)/(0|i)|0,ar[s+(18624*w|0)+18612>>2]=h,qn(v,h),c=0|ar[d>>2],ar[f>>2]=h,(s=0|ar[(u=c+10668|0)>>2])>>>0<(0|ar[c+10672>>2])>>>0?(ar[s>>2]=h,ar[u>>2]=4+(0|ar[u>>2])):vr(c+10664|0,f),!((0|w)<(0|o))){G=0;break A}w=w+1|0}br(28143,28163,170,28174)}}while(0);if(wo(n),b=e+10664|0,c=0|ar[(d=e+10668|0)>>2],u=0|ar[b>>2],(0|(A=c))!=(0|(l=u))){for(s=0;(l=0|ar[l+(s<<2)>>2])&&(ds[511&ar[4+(0|ar[l>>2])>>2]](l),A=0|ar[d>>2],u=0|ar[b>>2],c=A),(s=s+1|0)>>>0<c-(l=u)>>2>>>0;);c=u}return ur=((0|A)!=(0|l)&&(ar[d>>2]=A+(~((A+-4-c|0)>>>2)<<2)),a),0|G}(A,e,r),ar[i>>2]=2,o=0|ar[k>>2],t=((0|ar[h>>2])-o>>2)-1|0,n=0;do{if(t>>>0<=n>>>0){w=a,v=60;break}n=(A=n)+1|0}while((0|ar[o+(A<<2)>>2])!=(0|r));if(60==(0|v))return 0|w;if(!(t=0|ar[o+(n<<2)>>2]))return 0|(e=a);if((0|(n=0|ar[16+(0|ar[f>>2])>>2]))>=(0|ar[16+(0|ar[(o=t+4|0)>>2])>>2]))return 0|(e=a);for(;;){if(t=0|ar[e>>2],(0|n)>=(0|ar[t+10344>>2])){w=a,v=60;break}if(Ln((0|ar[t+10524>>2])+(80*n|0)|0,1),(0|(n=n+1|0))>=(0|ar[16+(0|ar[o>>2])>>2])){w=a,v=60;break}}return 60==(0|v)?0|w:0}function Fr(A,e){e|=0;var r,i,f,n,t,o=0,a=0,c=0,l=0;f=(A|=0)+4|0,n=0|ar[A>>2],1073741823<(o=1+(i=(t=(0|ar[f>>2])-n|0)>>2)|0)>>>0&&il(),a=(c=(0|ar[(l=A+8|0)>>2])-n|0)>>1,a=c>>2>>>0<536870911?a>>>0<o>>>0?o:a:1073741823;do{if(a){if(!(1073741823<a>>>0)){c=0|El(a<<2);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else c=0}while(0);ar[(r=c+(i<<2)|0)>>2]=ar[e>>2],o=r+(0-i<<2)|0,0<(0|t)&&Eu(0|o,0|n,0|t),ar[A>>2]=o,ar[f>>2]=4+r,ar[l>>2]=c+(a<<2),n&&Vl(n)}function Nr(A,e){var r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0;if((e|=0)>>>0<=(t=0|ar[(i=(A|=0)+8|0)>>2])-(f=0|ar[(l=A+4|0)>>2])>>3>>>0)for(;pt(f),f=8+(0|ar[l>>2])|0,ar[l>>2]=f,0!=(0|(e=e+-1|0)););else{536870911<(f=(o=f-(n=0|ar[A>>2])>>3)+e|0)>>>0&&il(),c=(a=t-n|0)>>2,f=a>>3>>>0<268435455?c>>>0<f>>>0?f:c:536870911;do{if(f){if(!(536870911<f>>>0)){n=0|El(f<<3);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else n=0}while(0);for(c=n+(f<<3)|0,a=o=r=n+(o<<3)|0,f=r;pt(f),a=f=a+8|0,0!=(0|(e=e+-1|0)););if(t=0|ar[A>>2],(0|(f=0|ar[l>>2]))==(0|t))e=o,f=n=t;else{for(n=o,e=r;yt(e+-8|0,f=f+-8|0),n=e=n+-8|0,(0|f)!=(0|t););e=n,n=0|ar[A>>2],f=0|ar[l>>2]}if(ar[A>>2]=e,ar[l>>2]=a,ar[i>>2]=c,(0|f)!=(0|(e=n)))for(;Zt(f=f+-8|0),(0|f)!=(0|e););n&&Vl(n)}}function Rr(A,e,r,i,f,n){e|=0,f|=0,n|=0;var t,o,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0;t=ur=(o=ur)+31&-32,ur=ur+512|0,V=0-(G=(i|=0)+(r|=0)|0)|0,I=(A|=0)+4|0,B=A+100|0,l=0;A:for(;;){switch(0|e){case 46:C=6;break A;case 48:break;default:d=l,b=k=m=0;break A}(e=0|ar[I>>2])>>>0<(0|ar[B>>2])>>>0?(ar[I>>2]=e+1,e=0|cr[e>>0],l=1):(e=0|Ya(A),l=1)}if(6==(0|C))if(48==(0|(e=(e=0|ar[I>>2])>>>0<(0|ar[B>>2])>>>0?(ar[I>>2]=e+1,0|cr[e>>0]):0|Ya(A))))for(e=l=0;;){if(l=0|vu(0|l,0|e,-1,-1),b=D,48!=(0|(e=(e=0|ar[I>>2])>>>0<(0|ar[B>>2])>>>0?(ar[I>>2]=e+1,0|cr[e>>0]):0|Ya(A)))){d=m=1,k=l;break}e=b}else m=1,d=l,b=k=0;s=e+-48|(ar[t>>2]=0),u=46==(0|e);A:do{if(u|s>>>0<10){W=496+t|0,y=m,Z=d,C=s,s=d=g=l=p=0;e:for(;;){do{if(u){if(y)break e;y=1,k=d,b=s}else{if(d=0|vu(0|d,0|s,1,0),s=D,m=48!=(0|e),125<=(0|l)){if(!m)break;ar[W>>2]=1|ar[W>>2];break}u=t+(l<<2)|0,e=p?e+-48+(10*(0|ar[u>>2])|0)|0:C,ar[u>>2]=e,p=(Z=9==(0|(p=p+1|0)))?0:p,l=(1&Z)+l|0,g=m?d:g,Z=1}}while(0);if(!((u=46==(0|(e=(e=0|ar[I>>2])>>>0<(0|ar[B>>2])>>>0?(ar[I>>2]=e+1,0|cr[e>>0]):0|Ya(A))))|(C=e+-48|0)>>>0<10)){m=y,u=Z,C=29;break A}}e=p,u=0!=(0|Z),C=37}else u=d,s=d=g=l=p=0,C=29}while(0);do{if(29==(0|C)){if(k=(W=0==(0|m))?d:k,b=W?s:b,!((u=0!=(0|u))&101==(32|e))){if(-1<(0|e)){e=p,C=37;break}e=p,C=39;break}if(0==(0|(u=0|Yr(A,n)))&-2147483648==(0|(e=D))){if(!n){Na(A,0),a=0;break}e=u=(0|ar[B>>2]&&(ar[I>>2]=(0|ar[I>>2])-1),0)}Z=0|vu(0|u,0|e,0|k,0|b),e=p,b=D,C=41}}while(0);37==(0|C)&&(C=0|ar[B>>2]?(ar[I>>2]=(0|ar[I>>2])-1,u?(Z=k,41):40):39),39==(0|C)&&(C=u?(Z=k,41):40);do{if(40==(0|C))ar[(V=8708)>>2]=22,Na(A,0),a=0;else if(41==(0|C)){if(!(u=0|ar[t>>2])){a=0*(0|f);break}if((0|Z)==(0|d)&(0|b)==(0|s)&((0|s)<0|0==(0|s)&d>>>0<10)&&30<(0|r)|0==(u>>>r|0)){a=(0|f)*(u>>>0);break}if((0|(B=((0|(A=(0|i)/-2|0))<0)<<31>>31))<(0|b)|(0|b)==(0|B)&A>>>0<Z>>>0){ar[(V=8708)>>2]=34,a=17976931348623157e292*(0|f)*17976931348623157e292;break}if((0|b)<(0|(B=((0|(A=i+-106|0))<0)<<31>>31))|(0|b)==(0|B)&Z>>>0<A>>>0){ar[(V=8708)>>2]=34,a=22250738585072014e-324*(0|f)*22250738585072014e-324;break}if(e){if((0|e)<9){for(u=0|ar[(s=t+(l<<2)|0)>>2];u=10*u|0,9!=(0|(e=e+1|0)););ar[s>>2]=u}l=l+1|0}if((0|g)<9&&(0|g)<=(0|Z)&(0|Z)<18){if(e=0|ar[t>>2],9==(0|Z)){a=(0|f)*(e>>>0);break}if((0|Z)<9){a=(0|f)*(e>>>0)/(0|ar[12356+(8-Z<<2)>>2]);break}if(30<(0|(A=r+27+(0|sr(Z,-3))|0))|0==(e>>>A|0)){a=(0|f)*(e>>>0)*(0|ar[12356+(Z+-10<<2)>>2]);break}}if(e=(0|Z)%9|0){if(d=0|ar[12356+(8-(g=-1<(0|Z)?e:e+9|0)<<2)>>2],l){for(k=1e9/(0|d)|0,u=Z,e=b=s=0;A=(((B=0|ar[(I=t+(e<<2)|0)>>2])>>>0)/(d>>>0)|0)+s|0,ar[I>>2]=A,s=0|sr(k,(B>>>0)%(d>>>0)|0),u=(A=(0|e)==(0|b)&0==(0|A))?u+-9|0:u,b=A?b+1&127:b,(0|(e=e+1|0))!=(0|l););s?(ar[t+(l<<2)>>2]=s,s=b,l=l+1|0):s=b}else l=s=0,u=Z;Z=9-g+u|(e=0)}else s=e=0;A:for(;;){for(g=(0|Z)<18,m=18==(0|Z),p=t+(s<<2)|0;;){if(!g){if(!m){u=Z;break A}if(9007199<=(0|ar[p>>2])>>>0){u=18;break A}}for(l=(y=l)+127|(u=0);l=0|vu(0|(l=0|Iu(0|ar[(d=t+((b=127&l)<<2)|0)>>2],0,29)),0|D,0|u,0),0<(u=D)>>>0|0==(0|u)&1e9<l>>>0?(k=0|yu(0|l,0|u,1e9,0),l=0|Zu(0|l,0|u,1e9,0)):k=0,y=0==(0|(ar[d>>2]=l))&(1^((0|b)!=(y+127&127|0)|(A=(0|b)==(0|s))))?b:y,!A;)u=k,l=b+-1|0;if(e=e+-29|0,0|k)break;l=y}l=y+127&127,u=t+((y+126&127)<<2)|0,(0|(s=s+127&127))==(0|y)?ar[u>>2]=ar[u>>2]|ar[t+(l<<2)>>2]:l=y,ar[t+(s<<2)>>2]=k,Z=Z+9|0}A:for(;;){for(p=l+1&127,y=t+((l+127&127)<<2)|0;;){for(k=18==(0|u),m=27<(0|u)?9:1,Z=s;;){for(s=0;;){if((0|(b=s+Z&127))==(0|l)){E=2,C=88;break}if((b=0|ar[t+(b<<2)>>2])>>>0<(d=0|ar[12388+(s<<2)>>2])>>>0){E=2,C=88;break}if(d>>>0<b>>>0)break;if(2<=(0|(s=s+1|0))){E=s,C=88;break}}if(88==(0|C)&&k&2==((C=0)|E)){b=a=0;break A}if(e=m+e|0,(0|Z)!=(0|l))break;Z=l}for(k=(1<<m)-1|0,g=1e9>>>m,d=0,b=s=Z;A=((B=0|ar[(I=t+(b<<2)|0)>>2])>>>m)+d|0,ar[I>>2]=A,d=0|sr(B&k,g),u=(A=(0|b)==(0|s)&0==(0|A))?u+-9|0:u,s=A?s+1&127:s,(0|(b=b+1&127))!=(0|l););if(d){if((0|p)!=(0|s))break;ar[y>>2]=1|ar[y>>2]}}ar[t+(l<<2)>>2]=d,l=p}for(;u=l+1&127,(0|(s=b+Z&127))==(0|l)&&(ar[t+(u+-1<<2)>>2]=0,l=u),a=1e9*a+ +((0|ar[t+(s<<2)>>2])>>>0),2!=(0|(b=b+1|0)););if(c=(v=+(0|f))*a,h=(0|(s=(k=(0|(d=(b=e+53|0)-i|0))<(0|r))?0<(0|d)?d:0:r))<53?(w=+Dr(+Jr(1,105-s|0),c))+(c-(a=h=+Qr(c,+Jr(1,53-s|0)))):(a=w=0,c),(0|(u=Z+2&127))!=(0|l)){u=0|ar[t+(u<<2)>>2];do{if(5e8<=u>>>0){if(5e8!=(0|u)){a=.75*v+a;break}if((Z+3&127|0)==(0|l)){a=.5*v+a;break}a=.75*v+a;break}if(0==(0|u)&&(Z+3&127|0)==(0|l))break;a=.25*v+a}while(0);c=1<(53-s|0)&&0==+Qr(a,1)?a+1:a}else c=a;a=h+c-w;do{if((-2-G|0)<(2147483647&b|0)){if(a=(G=!(9007199254740992<=+X(+a)))?a:.5*a,((e=(1&(1^G))+e|0)+50|0)<=(0|V)&&!(0!=c&k&((0|s)!=(0|d)|G)))break;ar[(V=8708)>>2]=34}}while(0);a=+Tr(a,e)}}while(0);return ur=o,+a}function Yr(A,e){e|=0;var r,i=0,f=0,n=0,t=0,o=0,a=0;switch(0|(i=(i=0|ar[(a=(A|=0)+4|0)>>2])>>>0<(0|ar[(r=A+100|0)>>2])>>>0?(ar[a>>2]=i+1,0|cr[i>>0]):0|Ya(A))){case 43:case 45:f=45==(0|i)&1,0!=(0|e)&9<((i=(i=0|ar[a>>2])>>>0<(0|ar[r>>2])>>>0?(ar[a>>2]=i+1,0|cr[i>>0]):0|Ya(A))+-48|0)>>>0&&0!=(0|ar[r>>2])&&(ar[a>>2]=(0|ar[a>>2])-1);break;default:f=0}if(9<(i+-48|0)>>>0)i=(f=(0|ar[r>>2]&&(ar[a>>2]=(0|ar[a>>2])-1),-2147483648),0);else{for(n=0;n=i+-48+(10*n|0)|0,((i=(i=0|ar[a>>2])>>>0<(0|ar[r>>2])>>>0?(ar[a>>2]=i+1,0|cr[i>>0]):0|Ya(A))+-48|0)>>>0<10&(0|n)<214748364;);if(e=((0|n)<0)<<31>>31,(i+-48|0)>>>0<10){for(;e=0|wu(0|n,0|e,10,0),n=D,i=0|vu(0|i,((0|i)<0)<<31>>31|0,-48,-1),n=0|vu(0|i,0|D,0|e,0|n),e=D,((i=(i=0|ar[a>>2])>>>0<(0|ar[r>>2])>>>0?(ar[a>>2]=i+1,0|cr[i>>0]):0|Ya(A))+-48|0)>>>0<10&((0|e)<21474836|21474836==(0|e)&n>>>0<2061584302););t=i,o=n}else t=i,o=n;if(i=0|ar[r>>2],(t+-48|0)>>>0<10)for(;(n=0|ar[a>>2])>>>0<i>>>0?(ar[a>>2]=n+1,n=0|cr[n>>0]):(n=0|Ya(A),i=0|ar[r>>2]),(n+-48|0)>>>0<10;);0|i&&(ar[a>>2]=(0|ar[a>>2])-1),i=0|gu(0,0,0|o,0|e),f=(a=0!=(0|f))?D:e,i=a?i:o}return D=f,0|i}function Jr(A,e){A=+A;var r=0,i=0;return(0|(e|=0))<=1023?(0|e)<-1022&&(A*=22250738585072014e-324,r=e+1022|0,e=e+2044|0,A=(i=(0|r)<-1022)?22250738585072014e-324*A:A,e=i?-1022<(0|e)?e:-1022:r):(A*=898846567431158e293,i=e+-1023|0,e=e+-2046|0,A=(r=1023<(0|i))?898846567431158e293*A:A,e=r?(0|e)<1023?e:1023:i),r=0|Iu(e+1023|0,0,52),i=D,ar[d>>2]=r,ar[d+4>>2]=i,+(A*J[d>>3])}function Dr(A,e){return+ +function(A,e){A=+A,e=+e;var r,i=0;return J[d>>3]=A,r=0|ar[d>>2],i=0|ar[d+4>>2],J[d>>3]=e,i=-2147483648&ar[d+4>>2]|2147483647&i,ar[d>>2]=r,ar[d+4>>2]=i,+ +J[d>>3]}(A=+A,e=+e)}function Qr(A,e){return+ +function(A,e){A=+A,e=+e;var r,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;J[d>>3]=A,o=0|ar[d>>2],c=0|ar[d+4>>2],J[d>>3]=e,u=0|ar[d>>2],s=0|ar[d+4>>2],f=2047&(f=0|Wu(0|o,0|c,52)),l=2047&(l=0|Wu(0|u,0|s,52)),r=-2147483648&c,t=0|Iu(0|u,0|s,1),a=D;A:do{if(0==(0|t)&0==(0|a)||(n=0|Mr(e),i=2147483647&D,2047==(0|f)|2146435072<i>>>0|2146435072==(0|i)&0<n>>>0))b=3;else{if(i=0|Iu(0|o,0|c,1),!(a>>>0<(n=D)>>>0|(0|n)==(0|a)&t>>>0<i>>>0))return+((0|i)==(0|t)&(0|n)==(0|a)?0*A:A);if(f)t=1048575&c|1048576;else{if(i=0|Iu(0|o,0|c,12),-1<(0|(n=D))|-1==(0|n)&4294967295<i>>>0)for(f=0;f=f+-1|0,i=0|Iu(0|i,0|n,1),-1<(0|(n=D))|-1==(0|n)&4294967295<i>>>0;);else f=0;o=0|Iu(0|o,0|c,1-f|0),t=D}if(l)c=1048575&s|1048576;else{if(n=0|Iu(0|u,0|s,12),-1<(0|(a=D))|-1==(0|a)&4294967295<n>>>0)for(i=0;i=i+-1|0,n=0|Iu(0|n,0|a,1),-1<(0|(a=D))|-1==(0|a)&4294967295<n>>>0;);else i=0;u=0|Iu(0|u,0|s,1-i|0),l=i,c=D}n=0|gu(0|o,0|t,0|u,0|c),a=-1<(0|(i=D))|-1==(0|i)&4294967295<n>>>0;e:do{if((0|l)<(0|f)){for(;;){if(a){if(0==(0|n)&0==(0|i))break}else n=o,i=t;if(o=0|Iu(0|n,0|i,1),n=0|gu(0|o,0|(t=D),0|u,0|c),a=-1<(0|(i=D))|-1==(0|i)&4294967295<n>>>0,(0|(f=f+-1|0))<=(0|l))break e}e=0*A;break A}}while(0);if(a){if(0==(0|n)&0==(0|i)){e=0*A;break}}else i=t,n=o;if(i>>>0<1048576|1048576==(0|i)&n>>>0<0)for(;n=0|Iu(0|n,0|i,1),f=f+-1|0,(i=D)>>>0<1048576|1048576==(0|i)&n>>>0<0;);0<(0|f)?(s=0|vu(0|n,0|i,0,-1048576),i=D,f=0|Iu(0|f,0,52),i|=D,f|=s):(f=0|Wu(0|n,0|i,1-f|0),i=D),ar[d>>2]=f,ar[d+4>>2]=i|r,e=+J[d>>3]}}while(0);3==(0|b)&&(e*=A,e/=e);return+e}(A=+A,e=+e)}function Tr(A,e){return+ +Jr(A=+A,e|=0)}function Mr(A){A=+A;var e;return J[d>>3]=A,e=0|ar[d>>2],D=0|ar[d+4>>2],0|e}function Sr(A,e,r,i){A|=0,i|=0;var f,n=0;return f=0|sr(r|=0,e|=0),r=0==(0|e)?0:r,-1<(0|ar[i+76>>2])?(n=0==(0|da()),A=0|Va(A,f,i),n||ka()):A=0|Va(A,f,i),(0|A)!=(0|f)&&(r=(A>>>0)/(e>>>0)|0),0|r}function Ur(A,e){A|=0;var r,i,f,n=0,t=0,o=0,a=0;r=ur=(f=ur)+31&-32,ur=ur+16|0,i=255&(e|=0),tr[r>>0]=i,(o=0|ar[(t=A+16|0)>>2])?a=4:0|Xa(A)?n=-1:(o=0|ar[t>>2],a=4);do{if(4==(0|a)){if((t=0|ar[(a=A+20|0)>>2])>>>0<o>>>0&&(0|(n=255&e))!=(0|tr[A+75>>0])){ar[a>>2]=t+1,tr[t>>0]=i;break}n=1==(0|ns[63&ar[A+36>>2]](A,r,1))?0|cr[r>>0]:-1}}while(0);return ur=f,0|n}function Or(A){A|=0;var e=0,r=0;do{if(A){if((0|ar[A+76>>2])<=-1){e=0|Hr(A);break}r=0==(0|da()),e=0|Hr(A),r||ka()}else{if(e=0|ar[2222]?0|Or(0|ar[2222]):0,A=0|(B(51464),51472),A=0|ar[A>>2])for(;r=-1<(0|ar[A+76>>2])?0|da():0,(0|ar[A+20>>2])>>>0>(0|ar[A+28>>2])>>>0&&(e=0|Hr(A)|e),0|r&&ka(),0!=(0|(A=0|ar[A+56>>2])););T(51464)}}while(0);return 0|e}function Hr(A){var e,r,i=0,f=0,n=0,t=0;return r=(A|=0)+28|0,0|(A=(0|ar[(e=A+20|0)>>2])>>>0>(0|ar[r>>2])>>>0&&(ns[63&ar[A+36>>2]](A,0,0),0==(0|ar[e>>2]))?-1:((f=0|ar[(i=A+4|0)>>2])>>>0<(t=0|ar[(n=A+8|0)>>2])>>>0&&ns[63&ar[A+40>>2]](A,f-t|0,1),ar[A+16>>2]=0,ar[r>>2]=0,ar[e>>2]=0,ar[n>>2]=0,ar[i>>2]=0))}function xr(A,e,r){A|=0,e|=0,r|=0;var i,f;return f=ur=(i=ur)+31&-32,ur=ur+16|0,ar[f>>2]=r,r=0|jr(A,e,f),ur=i,0|r}function jr(A,e,r){A|=0,e|=0,r|=0;var i,f,n=0,t=0;for(i=ur=(f=ur)+31&-32,ur=ur+128|0,t=(n=i)+124|0;(0|(n=n+4|(ar[n>>2]=0)))<(0|t););return ar[32+i>>2]=37,ar[44+i>>2]=A,ar[76+i>>2]=-1,ar[84+i>>2]=A,t=0|function(A,e,r){e|=0,r|=0;var i,f,n,t,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0,X=0,_=0,F=0,N=0,R=0;F=ur=(t=ur)+31&-32,ur=ur+288|0,i=F+8|0,f=F+17|0,F=(n=F)+16|0,R=-1<(0|ar[76+(A|=0)>>2])?0|da():0;o=0|tr[e>>0];A:do{if(o<<24>>24){Z=A+4|0,C=A+100|0,W=A+108|0,I=A+8|0,B=10+f|0,E=33+f|0,y=4+i|0,G=46+f|0,V=94+f|0,_=X=1+f|0,l=e,a=c=e=v=0;e:for(;;){r:do{if(0|Ja(255&o)){for(;0|Ja(0|cr[(o=l+1|0)>>0]);)l=o;for(Na(A,0);0!=(0|Ja(o=(o=0|ar[Z>>2])>>>0<(0|ar[C>>2])>>>0?(ar[Z>>2]=o+1,0|cr[o>>0]):0|Ya(A))););0|ar[C>>2]?(o=(0|ar[Z>>2])-1|0,ar[Z>>2]=o):o=0|ar[Z>>2],u=(0|ar[W>>2])+v+o-(0|ar[I>>2])|0}else{o=o<<24>>24==37;i:do{if(o){u=0|tr[(b=l+1|0)>>0];f:do{switch(u<<24>>24){case 37:break i;case 42:l=l+2|(p=0);break;default:if((o=(255&u)-48|0)>>>0<10&&36==(0|tr[l+2>>0])){p=0|zr(r,o),l=l+3|0;break f}l=3+(0|ar[r>>2])&-4,p=0|ar[l>>2],ar[r>>2]=l+4,l=b}}while(0);if(o=0|tr[l>>0],((u=255&o)+-48|0)>>>0<10)for(b=0;b=(10*b|0)-48+u|0,o=0|tr[(l=l+1|0)>>0],((u=255&o)+-48|0)>>>0<10;);else b=0;switch(c=(o=o<<24>>24==109)?0:c,a=o?0:a,l=o?l+1|0:l,o&=m=0!=(0|p),u=l+1|0,0|tr[l>>0]){case 104:g=104==(0|tr[u>>0]),d=g?-2:-1,l=g?l+2|0:u;break;case 108:g=108==(0|tr[u>>0]),d=g?3:1,l=g?l+2|0:u;break;case 106:d=3,l=u;break;case 116:case 122:d=1,l=u;break;case 76:d=2,l=u;break;case 110:case 112:case 67:case 83:case 91:case 99:case 115:case 88:case 71:case 70:case 69:case 65:case 103:case 102:case 101:case 97:case 120:case 117:case 111:case 105:case 100:d=0;break;default:N=137;break e}switch(h=0|cr[l>>0],h=(w=3==(47&h|0))?32|h:h,w=w?1:d,(k=255&h)<<24>>24){case 99:b=1<(0|b)?b:1;break;case 91:break;case 110:Pr(p,w,v,((0|v)<0)<<31>>31),u=v;break r;default:for(Na(A,0);0!=(0|Ja(u=(u=0|ar[Z>>2])>>>0<(0|ar[C>>2])>>>0?(ar[Z>>2]=u+1,0|cr[u>>0]):0|Ya(A))););0|ar[C>>2]?(u=(0|ar[Z>>2])-1|0,ar[Z>>2]=u):u=0|ar[Z>>2],v=(0|ar[W>>2])+v+u-(0|ar[I>>2])|0}if(Na(A,b),u=0|ar[Z>>2],d=0|ar[C>>2],u>>>0<d>>>0)ar[Z>>2]=u+1;else{if((0|Ya(A))<0){N=137;break e}d=0|ar[C>>2]}0|d&&(ar[Z>>2]=(0|ar[Z>>2])-1);f:do{switch(k<<24>>24){case 91:case 99:case 115:g=99==(0|h);n:do{if(115==(16|h))Vu(0|X,-1,256),115==((tr[f>>0]=0)|h)&&(tr[E>>0]=0,tr[B>>0]=0,tr[B+1>>0]=0,tr[B+2>>0]=0,tr[B+3>>0]=0,tr[B+4>>0]=0);else{switch(h=94==(0|tr[(u=l+1|0)>>0]),l=h?l+2|0:u,Vu(0|_,(k=1&h)|0,256),(tr[f>>0]=0)|tr[l>>0]){case 45:u=G,N=64;break;case 93:u=V,N=64;break;default:h=255&(1^k)}for(64==(0|N)&&(h=255&(1^k),tr[u>>(N=0)]=h,l=l+1|0);;){u=0|tr[l>>0];t:do{switch(u<<24>>24){case 0:N=137;break e;case 93:break n;case 45:switch((u=0|tr[(k=l+1|0)>>0])<<24>>24){case 93:case 0:u=45;break t}if((255&(l=0|tr[l+-1>>0]))<(255&u)){for(l&=255;tr[f+(l=l+1|0)>>0]=h,u=0|tr[k>>0],(0|l)<(255&u|0););l=k}else l=k}}while(0);tr[1+(255&u)+f>>0]=h,l=l+1|0}}}while(0);u=g?b+1|0:31,h=1==(0|w);n:do{if(h){if(o){if(!(a=0|qo(u<<2))){a=c=0,o=1,N=137;break e}}else a=p;ar[i>>2]=0,ar[y>>2]=0,k=u,c=0;t:for(;;){d=0==(0|a);do{o:for(;;){if(u=(u=0|ar[Z>>2])>>>0<(0|ar[C>>2])>>>0?(ar[Z>>2]=u+1,0|cr[u>>0]):0|Ya(A),!(0|tr[f+(u+1)>>0]))break t;switch(tr[F>>0]=u,0|za(n,F,1,i)){case-1:c=0,N=137;break e;case-2:break;default:break o}}d||(ar[a+(c<<2)>>2]=ar[n>>2],c=c+1|0)}while(!(o&(0|c)==(0|k)));if(!(u=0|Aa(a,(c=k<<1|1)<<2))){c=0,o=1,N=137;break e}w=k,k=c,a=u,c=w}if(!(0|La(i))){c=0,N=137;break e}u=c,c=0,k=a}else{if(o){if(!(c=0|qo(u))){a=c=0,o=1,N=137;break e}for(d=u,a=0;;){do{if(u=(u=0|ar[Z>>2])>>>0<(0|ar[C>>2])>>>0?(ar[Z>>2]=u+1,0|cr[u>>0]):0|Ya(A),!(0|tr[f+(u+1)>>0])){u=a,a=k=0;break n}tr[c+a>>0]=u,a=a+1|0}while((0|a)!=(0|d));if(!(u=0|Aa(c,a=d<<1|1))){a=0,o=1,N=137;break e}w=d,d=a,c=u,a=w}}if(p)for(u=0,c=d;;){if(a=(a=0|ar[Z>>2])>>>0<c>>>0?(ar[Z>>2]=a+1,0|cr[a>>0]):0|Ya(A),!(0|tr[f+(a+1)>>0])){c=p,a=k=0;break n}tr[p+u>>0]=a,u=u+1|0,c=0|ar[C>>2]}else for(c=d;;){if(a=(a=0|ar[Z>>2])>>>0<c>>>0?(ar[Z>>2]=a+1,0|cr[a>>0]):0|Ya(A),!(0|tr[f+(a+1)>>0])){a=k=c=u=0;break n}c=0|ar[C>>2]}}}while(0);if(0|ar[C>>2]?(d=(0|ar[Z>>2])-1|0,ar[Z>>2]=d):d=0|ar[Z>>2],!(d=d-(0|ar[I>>2])+(0|ar[W>>2])|0)){N=139;break e}if(!((0|d)==(0|b)|1^g)){N=139;break e}do{if(o){if(h){ar[p>>2]=k;break}ar[p>>2]=c;break}}while(0);if(!g){if(0|k&&(ar[k+(u<<2)>>2]=0),!c){c=0;break f}tr[c+u>>0]=0}break;case 120:case 88:case 112:u=16,N=125;break;case 111:u=8,N=125;break;case 117:case 100:u=10,N=125;break;case 105:u=0,N=125;break;case 71:case 103:case 70:case 102:case 69:case 101:case 65:case 97:if(s=+qa(A,w,0),(0|ar[W>>2])==((0|ar[I>>2])-(0|ar[Z>>2])|0)){N=139;break e}if(p)switch(0|w){case 0:Y[p>>2]=s;break f;case 1:case 2:J[p>>3]=s;break f;default:break f}}}while(0);do{if(125==(0|N)){if(u=(N=0)|Ra(A,u,0,-1,-1),(0|ar[W>>2])==((0|ar[I>>2])-(0|ar[Z>>2])|0)){N=139;break e}if(m&112==(0|h)){ar[p>>2]=u;break}Pr(p,w,u,D);break}}while(0);e=(1&m)+e|0,u=(0|ar[W>>2])+v+(0|ar[Z>>2])-(0|ar[I>>2])|0;break r}}while(0);if(l=l+(1&o)|0,Na(A,0),(0|(o=(o=0|ar[Z>>2])>>>0<(0|ar[C>>2])>>>0?(ar[Z>>2]=o+1,0|cr[o>>0]):0|Ya(A)))!=(0|cr[l>>0])){N=22;break e}u=v+1|0}}while(0);if(!((o=0|tr[(l=l+1|0)>>0])<<24>>24))break A;v=u}if(22==(0|N)){if(0|ar[C>>2]&&(ar[Z>>2]=(0|ar[Z>>2])-1),0!=(0|e)|-1<(0|o))break;o=0,N=138}else 137==(0|N)?(o&=1,e||(N=138)):139==(0|N)&&(o&=1);138==(0|N)&&(e=-1),o&&($o(c),$o(a))}else e=0}while(0);0|R&&ka();return ur=t,0|e}(i,e,r),ur=f,0|t}function zr(A,e){A|=0,e|=0;var r,i,f=0;for(r=ur=(i=ur)+31&-32,ur=ur+16|0,ar[r>>2]=ar[A>>2];f=3+(0|ar[r>>2])&-4,A=0|ar[f>>2],ar[r>>2]=f+4,1<e>>>0;)e=e+-1|0;return ur=i,0|A}function Pr(A,e,r,i){A|=0,e|=0,r|=0,i|=0;A:do{if(0|A)switch(0|e){case-2:tr[A>>0]=r;break A;case-1:or[A>>1]=r;break A;case 0:case 1:ar[A>>2]=r;break A;case 3:ar[(e=A)>>2]=r,ar[e+4>>2]=i;break A;default:break A}}while(0)}function Lr(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t=0,o=0;for(f=ur=(n=ur)+31&-32,ur=ur+128|0,o=(t=f)+124|0;(0|(t=t+4|(ar[t>>2]=0)))<(0|o););return ar[(t=4+f|0)>>2]=A,ar[(o=8+f|0)>>2]=-1,ar[44+f>>2]=A,ar[76+f>>2]=-1,Na(f,0),i=+qa(f,r,1),r=(0|ar[t>>2])-(0|ar[o>>2])+(0|ar[108+f>>2])|0,0|e&&(ar[e>>2]=0|r?A+r|0:A),ur=n,+i}function Kr(A,e){return r=A|=0,i=e|=0,+ + + +Lr(r|=0,i|=0,0);var r,i}function qr(A,e){return r=A|=0,i=e|=0,+ + + +Lr(r|=0,i|=0,1);var r,i}function $r(A,e){return r=A|=0,i=e|=0,+ + + +Lr(r|=0,i|=0,2);var r,i}function Ai(A){A|=0;var e;return e=0|ar[2208],0|A&&(ar[2208]=-1==(0|A)?51408:A),0|(51408==(0|e)?-1:e)}function ei(A,e){A|=0,e|=0;var r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0;s=ur=(i=ur)+31&-32,ur=ur+272|0,r=s+8|0;do{if(!(0|tr[e>>0])){if(0|(e=0|wA(46229))&&0|tr[e>>0])break;if(0|(e=0|wA(46236+(12*A|0)|0))&&0|tr[e>>0])break;if(0|(e=0|wA(46308))&&0|tr[e>>0])break;e=46313}}while(0);f=0;A:do{switch(0|tr[e+f>>0]){case 47:case 0:break A}f=f+1|0}while(f>>>0<15);15==(0|(u=(n=0|tr[e>>0])<<24>>24!=46&&0==(0|tr[e+f>>0])?n<<24>>24==67?15:(l=e,16):(e=46313,15)))&&(u=0|tr[e+1>>0]?(l=e,16):18);A:do{if(16==(0|u))if(0!=(0|oa(l,46313))&&0!=(0|oa(l,46321))){if(0|(e=0|ar[12869]))do{if(!(0|oa(l,e+8|0)))break A;e=0|ar[e+24>>2]}while(0!=(0|e));B(51480),e=0|ar[12869];e:do{if(0|e){for(;0|oa(l,e+8|0);)if(!(e=0|ar[e+24>>2]))break e;T(51480);break A}}while(0);e:do{if(0==(0|ar[12844])&&0!=(0|(t=0|wA(46327)))&&0!=(0|tr[t>>0])){for(a=254-f|0,c=f+1|0,n=t;;){if((t=(o=0|ca(n,58))-n+(((e=0|tr[o>>0])<<24>>24!=0)<<31>>31)|0)>>>0<a>>>0){if(Eu(0|r,0|n,0|t),tr[(n=r+t|0)>>0]=47,Eu(n+1|0,0|l,0|f),(tr[r+(c+t)>>0]=0)|(t=0|E(0|r,0|s)))break;e=0|tr[o>>0]}if(!(0|tr[(n=o+(e<<24>>24!=0&1)|0)>>0])){u=41;break e}}if(e=0|qo(28),n=0|ar[s>>2],e){ar[e>>2]=t,ar[e+4>>2]=n,Eu(0|(s=e+8|0),0|l,0|f),tr[s+f>>0]=0,ar[e+24>>2]=ar[12869],ar[12869]=e;break}Ua(t,n),u=41;break}u=41}while(0);41==(0|u)&&(e=0|qo(28))&&(ar[e>>2]=ar[2111],ar[e+4>>2]=ar[2112],Eu(0|(s=e+8|0),0|l,0|f),tr[s+f>>0]=0,ar[e+24>>2]=ar[12869],ar[12869]=e),T(51480),e=0==(0|A)&0==(0|e)?8444:e}else e=l,u=18}while(0);do{if(18==(0|u)){if(0==(0|A)&&46==(0|tr[e+1>>0])){e=8444;break}e=0}}while(0);return ur=i,0|e}function ri(A){return 8492!=(0|(A|=0))&0!=(0|A)&51432!=(0|A)&1|0}function ii(A,e,r,i){return 0|(i|=0)}function fi(A){0|ri(A|=0)&&$o(A)}function ni(A){return((A|=0)+-48|0)>>>0<10|0}function ti(){return-1}function oi(A){return 0|(e=A|=0,1&(((e|=0)-48|0)>>>0<10|((32|e)-97|0)>>>0<6)|0);var e}function ai(A,e){A|=0,e|=0;var r=0,i=0,f=0,n=0,t=0;do{if(-1!=(0|A)){if(f=-1<(0|ar[e+76>>2])?0|da():0,(r=0|ar[(n=e+4|0)>>2])?(i=r,r=0!=(0|f),t=7):(Qa(e),r=0!=(0|f),(i=0|ar[n>>2])?t=7:A=r),7==(0|t)){if(i>>>0>((0|ar[e+44>>2])-8|0)>>>0){if(t=i+-1|0,ar[n>>2]=t,tr[t>>0]=A,ar[e>>2]=-17&ar[e>>2],!r)break;ka();break}A=r}A=(A&&ka(),-1)}else A=-1}while(0);return 0|A}function ci(A){li(A|=0)}function li(A){ar[(A|=0)>>2]=12404,function(A,e){e|=0;var r,i,f=0,n=0;r=32+(A|=0)|0,i=A+36|0,f=0|ar[A+40>>2];for(;f;)n=f+-1|0,hs[127&ar[(0|ar[r>>2])+(n<<2)>>2]](e,A,0|ar[(0|ar[i>>2])+(n<<2)>>2]),f=n}(A,0),df(A+28|0),$o(0|ar[A+32>>2]),$o(0|ar[A+36>>2]),$o(0|ar[A+48>>2]),$o(0|ar[A+60>>2])}function ui(A){li(A|=0)}function si(A){ar[(A|=0)>>2]=12420,df(A+4|0)}function bi(A){return 255&(A|=0)|0}function di(A,e,r){return A|=0,e|=0,0|(r|=0)&&Eu(0|A,0|e,0|r),0|A}function ki(A){return 255&(A|=0)|0}function hi(A){ar[(A|=0)>>2]=12484,df(A+4|0)}function wi(A){return 0|(A|=0)}function vi(A,e,r){return A|=0,e|=0,(r|=0)&&function(A,e,r){A|=0,e|=0;var i=0;if(0|(r|=0))for(i=A;r=r+-1|0,ar[i>>2]=ar[e>>2],r;)e=e+4|0,i=i+4|0}(A,e,r),0|A}function gi(A){return 0|(A|=0)}function mi(A){yi(A|=0),ci(A+8|0)}function pi(A){mi(A|=0),Vl(A)}function yi(){}function Zi(A){ui((A|=0)+8|0)}function Ci(A){Zi(A|=0),Vl(A)}function Wi(A){Bi(A|=0),ci(A+4|0)}function Ii(A){Wi(A|=0),Vl(A)}function Bi(){}function Ei(A){ui((A|=0)+4|0)}function Gi(A){Ei(A|=0),Vl(A)}function Vi(A){_i(A|=0),ci(A+12|0)}function Xi(A){Vi(A|=0),Vl(A)}function _i(){}function Fi(A){return 0|ta(A|=0)}function Ni(A,e){e|=0,tr[(A|=0)>>0]=0|tr[e>>0]}function Ri(A,e){e|=0,ar[(A|=0)+16>>2]=0==(0|ar[A+24>>2])|e}function Yi(A,e){e|=0;var r;for(ar[(A|=0)+24>>2]=e,ar[A+16>>2]=0==(0|e)&1,ar[A+20>>2]=0,ar[A+4>>2]=4098,ar[A+12>>2]=0,ar[A+8>>2]=6,r=A+28|0,A=(e=A+32|0)+40|0;(0|(e=e+4|(ar[e>>2]=0)))<(0|A););hl(r)}function Ji(A,e){return(0|(A|=0))==(0|(e|=0))|0}function Di(A,e){dl(A|=0,(e|=0)+28|0)}function Qi(A,e){return(0|(A|=0))==(0|(e|=0))|0}function Ti(A){ar[(A|=0)>>2]=12420,hl(A+4|0),ar[(A=A+8|0)>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0,ar[A+12>>2]=0,ar[A+16>>2]=0,ar[A+20>>2]=0}function Mi(A){ar[(A|=0)>>2]=12484,hl(A+4|0),ar[(A=A+8|0)>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0,ar[A+12>>2]=0,ar[A+16>>2]=0,ar[A+20>>2]=0}function Si(A,e,r){r|=0;var i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0;if(o=ur=(i=ur)+31&-32,ur=ur+16|0,f=(e|=0)+((tr[(A|=0)>>0]=0)|ar[(0|ar[e>>2])-12>>2])|0,n=0|ar[f+16>>2])Ri(f,4|n);else{0|(f=0|ar[f+72>>2])&&Ui(f);do{if(!r&&(t=e+(0|ar[(0|ar[e>>2])-12>>2])|0,4096&ar[t+4>>2]|0)){for(Di(o,t),c=0|bf(o,52536),df(o),c=c+8|0,u=0==(0|(l=f=0|ar[e+(0|ar[(0|ar[e>>2])-12>>2])+24>>2])),s=l+12|0,b=l+16|0,d=f;;){if(u){f=t=0;break}if(r=(a=0|Ji(n=(0|(n=0|ar[s>>2]))==(0|ar[b>>2])?0|is[127&ar[36+(0|ar[d>>2])>>2]](l):0|bi(0|tr[n>>0]),-1))?0:f,a){f=t=0;break}if((255&(n=(0|(n=0|ar[(o=(t=r)+12|0)>>2]))==(0|ar[(a=t+16|0)>>2])?0|is[127&ar[36+(0|ar[r>>2])>>2]](t):0|bi(0|tr[n>>0])))<<24>>24<=-1)break;if(!(8192&or[(0|ar[c>>2])+(n<<24>>24<<1)>>1]))break;(0|(n=0|ar[o>>2]))!=(0|ar[a>>2])?(ar[o>>2]=n+1,bi(0|tr[n>>0])):is[127&ar[40+(0|ar[r>>2])>>2]](t)}if(0|f&&!(0|Ji(f=(0|(n=0|ar[t+12>>2]))==(0|ar[t+16>>2])?0|is[127&ar[36+(0|ar[f>>2])>>2]](t):0|bi(0|tr[n>>0]),-1)))break;Ri(d=e+(0|ar[(0|ar[e>>2])-12>>2])|0,6|ar[d+16>>2])}}while(0);tr[A>>0]=0==(0|ar[e+(0|ar[(0|ar[e>>2])-12>>2])+16>>2])&1}ur=i}function Ui(A){var e,r,i=0;return e=ur=(r=ur)+31&-32,ur=ur+16|0,0|ar[(A|=0)+(0|ar[(0|ar[A>>2])-12>>2])+24>>2]&&(Oi(e,A),0|tr[e>>0]&&(i=0|ar[A+(0|ar[(0|ar[A>>2])-12>>2])+24>>2],-1==(0|is[127&ar[24+(0|ar[i>>2])>>2]](i)))&&Ri(i=A+(0|ar[(0|ar[A>>2])-12>>2])|0,1|ar[i+16>>2]),Hi(e)),ur=r,0|A}function Oi(A,e){e|=0,tr[(A|=0)>>0]=0,e=(ar[A+4>>2]=e)+(0|ar[(0|ar[e>>2])-12>>2])|0,0|ar[e+16>>2]||(0|(e=0|ar[e+72>>2])&&Ui(e),tr[A>>0]=1)}function Hi(A){var e=0;e=(e=0|ar[(A=(A|=0)+4|0)>>2])+(0|ar[(0|ar[e>>2])-12>>2])|0,0|ar[e+24>>2]&&0==(0|ar[e+16>>2])&&8192&ar[e+4>>2]|0&&!(0|Z())&&(e=0|ar[A>>2],e=0|ar[e+(0|ar[(0|ar[e>>2])-12>>2])+24>>2],-1==(0|is[127&ar[24+(0|ar[e>>2])>>2]](e)))&&Ri(e=(e=0|ar[A>>2])+(0|ar[(0|ar[e>>2])-12>>2])|0,1|ar[e+16>>2])}function xi(A){var e,r=0,i=0,f=0,n=0;f=ur=(e=ur)+31&-32,ur=ur+16|0,ar[(n=(A|=0)+4|0)>>2]=0,r=-1,Si(f,A,1);do{if(0|tr[f>>0]){if(r=0|ar[A+(0|ar[(0|ar[A>>2])-12>>2])+24>>2],0|Ji(r=(0|(f=0|ar[(i=r+12|0)>>2]))==(0|ar[r+16>>2])?0|is[127&ar[40+(0|ar[r>>2])>>2]](r):(ar[i>>2]=f+1,0|bi(0|tr[f>>0])),-1)){Ri(n=A+(0|ar[(0|ar[A>>2])-12>>2])|0,6|ar[n+16>>2]);break}ar[n>>2]=1;break}}while(0);return ur=e,0|r}function ji(A,e,r){e|=0,r|=0;var i,f,n,t=0;return t=ur=(n=ur)+31&-32,ur=ur+16|0,ar[(f=(A|=0)+4|0)>>2]=0,Si(t,A,1),i=A+(0|ar[(0|ar[A>>2])-12>>2])|0,0|tr[t>>0]?(t=0|ar[24+i>>2],t=0|ns[63&ar[32+(0|ar[t>>2])>>2]](t,e,r),(0|(ar[f>>2]=t))!=(0|r)&&Ri(t=A+(0|ar[(0|ar[A>>2])-12>>2])|0,6|ar[t+16>>2])):Ri(i,4|ar[16+i>>2]),ur=n,0|A}function zi(A,e,r,i){e|=0,r|=0,i|=0;var f,n,t,o=0;return f=ur=(n=ur)+31&-32,ur=ur+32|0,t=16+f|0,Ri(o=(A|=0)+(0|ar[(0|ar[A>>2])-12>>2])|0,-3&ar[o+16>>2]),Si(t,A,1),0|tr[t>>0]&&(o=0|ar[A+(0|ar[(0|ar[A>>2])-12>>2])+24>>2],gs[15&ar[16+(0|ar[o>>2])>>2]](f,o,e,r,i,8),-1==(0|ar[(o=8+f|0)>>2])&&-1==(0|ar[o+4>>2]))&&Ri(o=A+(0|ar[(0|ar[A>>2])-12>>2])|0,4|ar[o+16>>2]),ur=n,0|A}function Pi(A,e){e|=0;var r,i,f,n,t=0,o=0,a=0,c=0,l=0;return f=ur=(n=ur)+31&-32,ur=ur+16|0,r=12+f|0,i=8+f|0,Oi(f,A|=0),0|tr[f>>0]&&(Di(r,A+(0|ar[(0|ar[A>>2])-12>>2])|0),o=0|bf(r,52592),df(r),a=A+(0|ar[(0|ar[A>>2])-12>>2])|0,c=0|ar[a+24>>2],t=0|Ji(l=-1,0|ar[(t=a+76|0)>>2])?(Di(r,a),l=0|bf(r,52536),l=0|fs[63&ar[28+(0|ar[l>>2])>>2]](l,32),df(r),l=l<<24>>24,ar[t>>2]=l):0|ar[t>>2],l=0|ar[12+(0|ar[o>>2])>>2],ar[i>>2]=c,ar[r>>2]=ar[i>>2],0|as[31&l](o,r,a,255&t,e)||Ri(l=A+(0|ar[(0|ar[A>>2])-12>>2])|0,5|ar[l+16>>2])),Hi(f),ur=n,0|A}function Li(A,e){e|=0;var r,i,f,n,t=0,o=0,a=0,c=0,l=0;return f=ur=(n=ur)+31&-32,ur=ur+16|0,r=12+f|0,i=8+f|0,Oi(f,A|=0),0|tr[f>>0]&&(Di(r,A+(0|ar[(0|ar[A>>2])-12>>2])|0),o=0|bf(r,52592),df(r),a=A+(0|ar[(0|ar[A>>2])-12>>2])|0,c=0|ar[a+24>>2],t=0|Ji(l=-1,0|ar[(t=a+76|0)>>2])?(Di(r,a),l=0|bf(r,52536),l=0|fs[63&ar[28+(0|ar[l>>2])>>2]](l,32),df(r),l=l<<24>>24,ar[t>>2]=l):0|ar[t>>2],l=0|ar[24+(0|ar[o>>2])>>2],ar[i>>2]=c,ar[r>>2]=ar[i>>2],0|as[31&l](o,r,a,255&t,65535&e)||Ri(l=A+(0|ar[(0|ar[A>>2])-12>>2])|0,5|ar[l+16>>2])),Hi(f),ur=n,0|A}function Ki(A,e){e|=0;var r,i,f,n,t=0,o=0,a=0,c=0,l=0;return f=ur=(n=ur)+31&-32,ur=ur+16|0,r=12+f|0,i=8+f|0,Oi(f,A|=0),0|tr[f>>0]&&(Di(r,A+(0|ar[(0|ar[A>>2])-12>>2])|0),o=0|bf(r,52592),df(r),a=A+(0|ar[(0|ar[A>>2])-12>>2])|0,c=0|ar[a+24>>2],t=0|Ji(l=-1,0|ar[(t=a+76|0)>>2])?(Di(r,a),l=0|bf(r,52536),l=0|fs[63&ar[28+(0|ar[l>>2])>>2]](l,32),df(r),l=l<<24>>24,ar[t>>2]=l):0|ar[t>>2],l=0|ar[16+(0|ar[o>>2])>>2],ar[i>>2]=c,ar[r>>2]=ar[i>>2],0|as[31&l](o,r,a,255&t,e)||Ri(l=A+(0|ar[(0|ar[A>>2])-12>>2])|0,5|ar[l+16>>2])),Hi(f),ur=n,0|A}function qi(A,e){e|=0;var r,i,f,n,t=0,o=0,a=0,c=0,l=0;return f=ur=(n=ur)+31&-32,ur=ur+16|0,r=12+f|0,i=8+f|0,Oi(f,A|=0),0|tr[f>>0]&&(Di(r,A+(0|ar[(0|ar[A>>2])-12>>2])|0),o=0|bf(r,52592),df(r),a=A+(0|ar[(0|ar[A>>2])-12>>2])|0,c=0|ar[a+24>>2],t=0|Ji(l=-1,0|ar[(t=a+76|0)>>2])?(Di(r,a),l=0|bf(r,52536),l=0|fs[63&ar[28+(0|ar[l>>2])>>2]](l,32),df(r),l=l<<24>>24,ar[t>>2]=l):0|ar[t>>2],l=0|ar[24+(0|ar[o>>2])>>2],ar[i>>2]=c,ar[r>>2]=ar[i>>2],0|as[31&l](o,r,a,255&t,e)||Ri(l=A+(0|ar[(0|ar[A>>2])-12>>2])|0,5|ar[l+16>>2])),Hi(f),ur=n,0|A}function $i(A,e,r){e|=0,r|=0;var i,f,n,t,o=0,a=0,c=0,l=0,u=0;return n=ur=(t=ur)+31&-32,ur=ur+16|0,i=12+n|0,f=8+n|0,Oi(n,A|=0),0|tr[n>>0]&&(Di(i,A+(0|ar[(0|ar[A>>2])-12>>2])|0),a=0|bf(i,52592),df(i),c=A+(0|ar[(0|ar[A>>2])-12>>2])|0,l=0|ar[c+24>>2],o=0|Ji(u=-1,0|ar[(o=c+76|0)>>2])?(Di(i,c),u=0|bf(i,52536),u=0|fs[63&ar[28+(0|ar[u>>2])>>2]](u,32),df(i),u=u<<24>>24,ar[o>>2]=u):0|ar[o>>2],u=0|ar[28+(0|ar[a>>2])>>2],ar[f>>2]=l,ar[i>>2]=ar[f>>2],0|ls[63&u](a,i,c,255&o,e,r)||Ri(u=A+(0|ar[(0|ar[A>>2])-12>>2])|0,5|ar[u+16>>2])),Hi(n),ur=t,0|A}function Af(A,e,r){e|=0,r|=0;var i,f;f=ur=(i=ur)+31&-32,ur=ur+16|0,Ti(A|=0),ar[A>>2]=12852,ar[A+32>>2]=e,dl(f,A+4|0),e=0|bf(f,54328),df(f),ar[A+36>>2]=e,ar[A+40>>2]=r,r=1&(0|is[127&ar[28+(0|ar[e>>2])>>2]](e)),tr[A+44>>0]=r,ur=i}function ef(A,e,r){e|=0,r|=0;var i,f;f=ur=(i=ur)+31&-32,ur=ur+16|0,Mi(A|=0),ar[A>>2]=12788,ar[A+32>>2]=e,dl(f,A+4|0),e=0|bf(f,54336),df(f),ar[A+36>>2]=e,ar[A+40>>2]=r,r=1&(0|is[127&ar[28+(0|ar[e>>2])>>2]](e)),tr[A+44>>0]=r,ur=i}function rf(A){hi(A|=0)}function ff(A){si(A|=0)}function nf(A){hi(A|=0)}function tf(A,e){e|=0;var r,i,f,n,t,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0;if(i=ur=(t=ur)+31&-32,ur=ur+32|0,f=16+i|0,k=8+i|0,r=4+i|0,n=(A|=0)+48|0,0|tr[(a=A+52|0)>>0])o=0|ar[n>>2],e&&(k=-1,ar[n>>2]=k,tr[a>>0]=0);else{for(o=1<(0|(o=0|ar[A+44>>2]))?o:1,d=A+32|0,a=0;;){if((0|o)<=(0|a)){b=9;break}if(-1==(0|(c=0|Ha(0|ar[d>>2])))){b=8;break}tr[f+a>>0]=c,a=a+1|0}if(8==(0|b))o=-1;else if(9==(0|b)){do{if(0|tr[A+53>>0])ar[k>>2]=tr[f>>0],b=19;else{s=A+40|0,l=A+36|0,u=k+4|0;A:for(;;){switch(h=0|ar[s>>2],a=0|ar[(c=h)>>2],c=0|ar[c+4>>2],w=0|ar[l>>2],A=f+o|0,0|ss[15&ar[16+(0|ar[w>>2])>>2]](w,h,f,A,r,k,u,i)){case 3:b=16;break A;case 2:b=18;break A;case 1:break;default:break A}if(w=0|ar[s>>2],ar[w>>2]=a,ar[w+4>>2]=c,8==(0|o)){b=18;break}if(-1==(0|(a=0|Ha(0|ar[d>>2])))){b=18;break}tr[A>>0]=a,o=o+1|0}if(16==(0|b))ar[k>>2]=tr[f>>0];else if(18==(0|b)){o=-1;break}b=19}}while(0);A:do{if(19==(0|b)){e:do{if(!e){do{if((0|o)<=0)break e;w=0|wi(0|tr[f+(o=o+-1|0)>>0])}while(-1!=(0|ai(w,0|ar[d>>2])));o=-1;break A}w=0|wi(0|ar[k>>2]),ar[n>>2]=w}while(0);o=0|wi(0|ar[k>>2])}}while(0)}}return ur=t,0|o}function of(A){si(A|=0)}function af(A,e){e|=0;var r,i,f,n,t,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0;if(i=ur=(t=ur)+31&-32,ur=ur+32|0,f=16+i|0,k=8+i|0,r=4+i|0,n=(A|=0)+48|0,0|tr[(a=A+52|0)>>0])o=0|ar[n>>2],e&&(k=-1,ar[n>>2]=k,tr[a>>0]=0);else{for(o=1<(0|(o=0|ar[A+44>>2]))?o:1,d=A+32|0,a=0;;){if((0|o)<=(0|a)){b=9;break}if(-1==(0|(c=0|Ha(0|ar[d>>2])))){b=8;break}tr[f+a>>0]=c,a=a+1|0}if(8==(0|b))o=-1;else if(9==(0|b)){do{if(0|tr[A+53>>0])tr[k>>0]=0|tr[f>>0],b=19;else{s=A+40|0,l=A+36|0,u=k+1|0;A:for(;;){switch(h=0|ar[s>>2],a=0|ar[(c=h)>>2],c=0|ar[c+4>>2],w=0|ar[l>>2],A=f+o|0,0|ss[15&ar[16+(0|ar[w>>2])>>2]](w,h,f,A,r,k,u,i)){case 3:b=16;break A;case 2:b=18;break A;case 1:break;default:break A}if(w=0|ar[s>>2],ar[w>>2]=a,ar[w+4>>2]=c,8==(0|o)){b=18;break}if(-1==(0|(a=0|Ha(0|ar[d>>2])))){b=18;break}tr[A>>0]=a,o=o+1|0}if(16==(0|b))tr[k>>0]=0|tr[f>>0];else if(18==(0|b)){o=-1;break}b=19}}while(0);A:do{if(19==(0|b)){e:do{if(!e){do{if((0|o)<=0)break e;w=0|bi(0|tr[f+(o=o+-1|0)>>0])}while(-1!=(0|ai(w,0|ar[d>>2])));o=-1;break A}w=0|bi(0|tr[k>>0]),ar[n>>2]=w}while(0);o=0|bi(0|tr[k>>0])}}while(0)}}return ur=t,0|o}function cf(A){lf(A|=0)}function lf(A){0}function uf(A){lf()}function sf(A,e){e|=0,ar[(A|=0)>>2]=ar[e>>2]}function bf(A,e){return e|=0,A=0|ar[(A|=0)>>2],0|(r=A,i=0|vf(e),i|=0,0|ar[(0|ar[8+(r|=0)>>2])+(i<<2)>>2]);var r,i}function df(A){yl(0|ar[(A|=0)>>2])}function kf(A,e,r,i,f,n,t,o,a,c){A|=0,e|=0,r|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0;var l,u,s=0,b=0;u=(0|(l=0|ar[(i|=0)>>2]))==(0|r);do{if(u){if(!(s=(0|tr[c+24>>0])==A<<24>>24)&&(0|tr[c+25>>0])!=A<<24>>24){b=5;break}ar[i>>2]=r+1,tr[r>>0]=s?43:45,s=ar[f>>2]=0}else b=5}while(0);A:do{if(5==(0|b)){if(b=0|tr[t+11>>0],A<<24>>24==n<<24>>24&&0!=(0|(b<<24>>24<0?0|ar[t+4>>2]:255&b))){if(160<=((s=0|ar[a>>2])-o|0)){s=0;break}i=0|ar[f>>2],ar[a>>2]=s+4,ar[s>>2]=i,s=ar[f>>2]=0;break}for(t=c+26|0,n=0;;){if(s=c+n|0,26==(0|n)){s=t;break}if((0|tr[s>>0])==A<<24>>24)break;n=n+1|0}if(23<(0|(s=s-c|0)))s=-1;else{switch(n=46974+s|0,0|e){case 10:case 8:if((0|e)<=(0|s)){s=-1;break A}break;case 16:if(22<=(0|s)){if(u){s=-1;break A}if(3<=(l-r|0)){s=-1;break A}if(48!=(0|tr[l-1>>0])){s=-1;break A}s=(ar[f>>2]=0)|tr[n>>0],ar[i>>2]=1+l,tr[l>>0]=s,s=0;break A}}s=0|tr[n>>0],ar[i>>2]=1+l,tr[l>>0]=s,ar[f>>2]=1+(0|ar[f>>2]),s=0}}}while(0);return 0|s}function hf(){var A=0;return 0==(0|tr[49952])&&0|ku(49952)&&(A=0|function(A,e,r){A|=0,e|=0,r|=0;var i,f,n=0,t=0,o=0,a=0;i=ur=(f=ur)+31&-32,ur=ur+32|0;A:do{if(0|ri(r))for(n=0;1<<n&A|0&&(a=0|ei(n,e),ar[r+(n<<2)>>2]=a),6!=(0|(n=n+1|0)););else{for(a=0==(0|r),o=t=0;t=(0!=(0|(n=a|(n=0!=(1<<o&A|0))?0|ei(o,n?e:72962):0|ar[r+(o<<2)>>2]))&1)+t|0,ar[i+(o<<2)>>2]=n,6!=(0|(o=o+1|0)););switch(0|t){case 0:r=51432;break A;case 1:if(8444!=(0|ar[i>>2]))break;r=8492;break A}}}while(0);return ur=f,0|r}(2147483647,47010,0),ar[13136]=A),0|ar[13136]}function wf(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f,n;return n=ur=(f=ur)+31&-32,ur=ur+16|0,ar[n>>2]=i,i=0|Ai(e),e=0|jr(A,r,n),0|i&&Ai(i),ur=f,0|e}function vf(A){A|=0;var e,r,i,f,n=0;return n=ur=(f=ur)+31&-32,ur=ur+48|0,e=n+32|0,r=n+24|0,ar[(n=(i=n)+16|0)>>2]=307,ar[n+4>>2]=0,ar[e>>2]=ar[n>>2],ar[4+e>>2]=ar[n+4>>2],function(A,e,r){A|=0,r|=0;var i;i=0|ar[(e=e|0)>>2],e=0|ar[e+4>>2],ar[A>>2]=r,ar[A+4>>2]=i,ar[A+8>>2]=e}(i,e,A),-1!=(0|ar[A>>2])&&(ar[e>>2]=i,ar[r>>2]=e,function(A,e,r){A|=0,e|=0,r|=0,_u();for(;1==(0|ar[A>>2]);)pA(54404,54376);0|ar[A>>2]?Fu():(ar[A>>2]=1,Fu(),ds[511&r](e),_u(),ar[A>>2]=-1,Fu(),Xu())}(A,r,308)),ur=f,(0|ar[A+4>>2])-1|0}function gf(A,e,r,i,f){A|=0,r|=0,i|=0,f|=0;var n,t;t=ur=(n=ur)+31&-32,ur=ur+16|0,Di(t,e|=0),e=0|bf(t,52536),ts[15&ar[32+(0|ar[e>>2])>>2]](e,46974,47006,r),r=0|bf(t,52552),e=0|is[127&ar[12+(0|ar[r>>2])>>2]](r),tr[i>>0]=e,i=0|is[127&ar[16+(0|ar[r>>2])>>2]](r),tr[f>>0]=i,ks[63&ar[20+(0|ar[r>>2])>>2]](A,r),df(t),ur=n}function mf(A,e,r,i,f,n,t,o,a,c,l,u){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,c|=0,l|=0,u|=0;var s,b=0,d=0;s=a|=0;A:do{if(A<<24>>24==n<<24>>24)a=0|tr[e>>0]?(r=(tr[e>>0]=0)|ar[f>>2],ar[f>>2]=r+1,tr[r>>0]=46,0!=(0|((f=0|tr[o+11>>0])<<24>>24<0?0|ar[o+4>>2]:255&f))&&((b=0|ar[c>>2])-s|0)<160&&(a=0|ar[l>>2],ar[c>>2]=b+4,ar[b>>2]=a),0):-1;else{if(A<<24>>24==t<<24>>24&&0|((t=0|tr[o+11>>0])<<24>>24<0?0|ar[o+4>>2]:255&t)){if(!(0|tr[e>>0])){a=-1;break}if(160<=((a=0|ar[c>>2])-s|0)){a=0;break}f=0|ar[l>>2],ar[c>>2]=a+4,ar[a>>2]=f,a=ar[l>>2]=0;break}for(n=u+32|0,b=0;;){if(a=u+b|0,32==(0|b)){a=n;break}if((0|tr[a>>0])==A<<24>>24)break;b=b+1|0}if(31<(0|(b=a-u|0)))a=-1;else switch(n=0|tr[46974+b>>0],0|b){case 24:case 25:if((0|(a=0|ar[f>>2]))!=(0|i)&&(95&tr[a+-1>>0])!=(127&tr[r>>0])){a=-1;break A}ar[f>>2]=a+1,tr[a>>0]=n,a=0;break A;case 23:case 22:tr[r>>0]=80,a=0|ar[f>>2],ar[f>>2]=a+1,tr[a>>0]=n,a=0;break A;default:if((0|(a=95&n))==(0|tr[r>>0])&&(tr[r>>0]=128|a,0|tr[e>>0])&&(tr[e>>0]=0)|((r=0|tr[o+11>>0])<<24>>24<0?0|ar[o+4>>2]:255&r)&&((d=0|ar[c>>2])-s|0)<160&&(r=0|ar[l>>2],ar[c>>2]=d+4,ar[d>>2]=r),c=0|ar[f>>2],ar[f>>2]=c+1,tr[c>>0]=n,21<(0|b)){a=0;break A}ar[l>>2]=1+(0|ar[l>>2]),a=0;break A}}}while(0);return 0|a}function pf(A,e,r){r|=0;var i,f,n=0,t=0,o=0;return i=ur=(f=ur)+31&-32,ur=ur+16|0,(0|(A|=0))==(0|(e|=0))?(ar[r>>2]=4,n=0):(t=0|ar[(t=8708)>>2],ar[8708>>2]=0,n=+$r(A,i,hf()),(A=0|ar[(A=8708)>>2])||(ar[8708>>2]=t),(0|ar[i>>2])==(0|e)?34==(0|A)&&(o=6):(n=0,o=6),6==(0|o)&&(ar[r>>2]=4)),ur=f,+n}function yf(A,e,r,i){e|=0,r|=0,i|=0;var f,n=0,t=0,o=0,a=0,c=0,l=0;f=(a=0|tr[(A|=0)+11>>0])<<24>>24<0,n=0|ar[(o=A+4|0)>>2],a&=255;do{if(0|(f?n:a)){if((0|e)!=(0|r)){for(n=r,t=e;!((n=n+-4|0)>>>0<=t>>>0);)l=0|ar[t>>2],ar[t>>2]=ar[n>>2],ar[n>>2]=l,t=t+4|0;n=0|ar[o>>2]}for(r=r+-4|0,A=(l=f?0|ar[A>>2]:A)+(f?n:a)|0,n=l;o=0<(t=0|tr[n>>0])<<24>>24&t<<24>>24!=127,!(r>>>0<=e>>>0);){if(o&&(t<<24>>24|0)!=(0|ar[e>>2])){c=10;break}e=e+4|0,n=1<(A-n|0)?n+1|0:n}if(10==(0|c)){ar[i>>2]=4;break}o&&((0|ar[r>>2])-1|0)>>>0>=t<<24>>24>>>0&&(ar[i>>2]=4)}}while(0)}function Zf(A,e,r){r|=0;var i,f,n=0,t=0,o=0;return i=ur=(f=ur)+31&-32,ur=ur+16|0,(0|(A|=0))==(0|(e|=0))?(ar[r>>2]=4,n=0):(t=0|ar[(t=8708)>>2],ar[8708>>2]=0,n=+qr(A,i,hf()),(A=0|ar[(A=8708)>>2])||(ar[8708>>2]=t),(0|ar[i>>2])==(0|e)?34==(0|A)&&(o=6):(n=0,o=6),6==(0|o)&&(ar[r>>2]=4)),ur=f,+n}function Cf(A,e,r){r|=0;var i,f,n=0,t=0,o=0;return i=ur=(f=ur)+31&-32,ur=ur+16|0,(0|(A|=0))==(0|(e|=0))?(ar[r>>2]=4,n=0):(t=0|ar[(t=8708)>>2],ar[8708>>2]=0,n=+Kr(A,i,hf()),(A=0|ar[(A=8708)>>2])||(ar[8708>>2]=t),(0|ar[i>>2])==(0|e)?34==(0|A)&&(o=6):(n=0,o=6),6==(0|o)&&(ar[r>>2]=4)),ur=f,+n}function Wf(A){switch(74&ar[(A|=0)+4>>2]){case 64:A=8;break;case 8:A=16;break;case 0:A=0;break;default:A=10}return 0|A}function If(A,e,r,i){A|=0,r|=0,i|=0;var f,n;n=ur=(f=ur)+31&-32,ur=ur+16|0,Di(n,e|=0),e=0|bf(n,52536),ts[15&ar[32+(0|ar[e>>2])>>2]](e,46974,47e3,r),r=0|bf(n,52552),e=0|is[127&ar[16+(0|ar[r>>2])>>2]](r),tr[i>>0]=e,ks[63&ar[20+(0|ar[r>>2])>>2]](A,r),df(n),ur=f}function Bf(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f,n,t=0,o=0,a=0;f=ur=(n=ur)+31&-32,ur=ur+16|0;do{if((0|A)==(0|e))ar[r>>2]=4,A=i=0;else{if(45==(0|tr[A>>0])){ar[r>>2]=4,A=i=0;break}o=0|ar[(o=8708)>>2],A=(ar[(t=8708)>>2]=0)|_a(A,f,i,hf()),i=D,(t=0|ar[(t=8708)>>2])||(ar[8708>>2]=o),(0|ar[f>>2])==(0|e)?34==(0|t)&&(i=A=-1,a=8):(i=A=0,a=8),8==(0|a)&&(ar[r>>2]=4)}}while(0);return D=i,ur=n,0|A}function Ef(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f,n,t=0,o=0;f=ur=(n=ur)+31&-32,ur=ur+16|0;do{if((0|A)==(0|e))ar[r>>2]=4,A=0;else{if(45==(0|tr[A>>0])){ar[r>>2]=4,A=0;break}o=0|ar[(o=8708)>>2],A=(ar[(t=8708)>>2]=0)|_a(A,f,i,hf()),i=D,(t=0|ar[(t=8708)>>2])||(ar[8708>>2]=o);do{if((0|ar[f>>2])==(0|e)){if(0<i>>>0|0==(0|i)&4294967295<A>>>0|34==(0|t)){ar[r>>2]=4,A=-1;break}break}ar[r>>2]=4,A=0}while(0)}}while(0);return ur=n,0|A}function Gf(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f,n,t=0,o=0;f=ur=(n=ur)+31&-32,ur=ur+16|0;do{if((0|A)==(0|e))ar[r>>2]=4,A=0;else{if(45==(0|tr[A>>0])){ar[r>>2]=4,A=0;break}o=0|ar[(o=8708)>>2],A=(ar[(t=8708)>>2]=0)|_a(A,f,i,hf()),i=D,(t=0|ar[(t=8708)>>2])||(ar[8708>>2]=o);do{if((0|ar[f>>2])==(0|e)){if(0<i>>>0|0==(0|i)&4294967295<A>>>0|34==(0|t)){ar[r>>2]=4,A=-1;break}break}ar[r>>2]=4,A=0}while(0)}}while(0);return ur=n,0|A}function Vf(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f,n,t=0,o=0;f=ur=(n=ur)+31&-32,ur=ur+16|0;do{if((0|A)==(0|e))ar[r>>2]=4,A=0;else{if(45==(0|tr[A>>0])){ar[r>>2]=4,A=0;break}o=0|ar[(o=8708)>>2],A=(ar[(t=8708)>>2]=0)|_a(A,f,i,hf()),i=D,(t=0|ar[(t=8708)>>2])||(ar[8708>>2]=o);do{if((0|ar[f>>2])==(0|e)){if(0<i>>>0|0==(0|i)&65535<A>>>0|34==(0|t)){ar[r>>2]=4,A=-1;break}A&=65535;break}ar[r>>2]=4,A=0}while(0)}}while(0);return ur=n,0|A}function Xf(A,e,r,i){r|=0,i|=0;var f,n,t=0,o=0;return f=ur=(n=ur)+31&-32,ur=ur+16|0,(0|(A|=0))==(0|(e|=0))?(ar[r>>2]=4,A=i=0):(o=0|ar[(o=8708)>>2],A=(ar[(t=8708)>>2]=0)|Ta(A,f,i,hf()),i=D,(t=0|ar[(t=8708)>>2])||(ar[8708>>2]=o),(0|ar[f>>2])==(0|e)?34==(0|t)&&(ar[r>>2]=4,A=(i=0<(0|i)|0==(0|i)&0<A>>>0)?-1:0,i=i?2147483647:-2147483648):(ar[r>>2]=4,i=A=0)),D=i,ur=n,0|A}function _f(A,e,r,i){r|=0,i|=0;var f,n,t=0,o=0;if(f=ur=(n=ur)+31&-32,ur=ur+16|0,(0|(A|=0))==(0|(e|=0)))ar[r>>2]=4,A=0;else{o=0|ar[(o=8708)>>2],A=(ar[(t=8708)>>2]=0)|Ta(A,f,i,hf()),i=D,(t=0|ar[(t=8708)>>2])||(ar[8708>>2]=o);A:do{if((0|ar[f>>2])==(0|e)){do{if(34!=(0|t)){if((0|i)<-1|-1==(0|i)&A>>>0<2147483648){ar[r>>2]=4;break}if(0<(0|i)|0==(0|i)&2147483647<A>>>0){ar[r>>2]=4,A=2147483647;break A}break A}if(ar[r>>2]=4,0<(0|i)|0==(0|i)&0<A>>>0){A=2147483647;break A}}while(0);A=-2147483648}else ar[r>>2]=4,A=0}while(0)}return ur=n,0|A}function Ff(A,e,r,i,f,n,t){A|=0,e|=0,f|=0,n|=0,t|=0;var o,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0;for(c=ur=(o=ur)+31&-32,ur=ur+112|0,100<(l=((i|=0)-(r|=0)|0)/12|0)>>>0?(c=0|qo(l))?m=a=c:_l():(a=c,m=0),s=r,b=a,c=0;(0|s)!=(0|i);)(u=0|tr[s+11>>0])<<24>>24<0?u=0|ar[s+4>>2]:u&=255,u?tr[b>>0]=1:(tr[b>>0]=2,l=l+-1|0,c=c+1|0),s=s+12|0,b=b+1|0;g=0,w=c;A:for(;;){c=0|ar[A>>2];do{if(c){if(0|Ji(c=(0|(u=0|ar[c+12>>2]))==(0|ar[c+16>>2])?0|is[127&ar[36+(0|ar[c>>2])>>2]](c):0|bi(0|tr[u>>0]),-1)){ar[A>>2]=0,b=1;break}b=0==(0|ar[A>>2]);break}b=1}while(0);if(c=(u=0|ar[e>>2])?0|Ji(c=(0|(c=0|ar[u+12>>2]))==(0|ar[u+16>>2])?0|is[127&ar[36+(0|ar[u>>2])>>2]](u):0|bi(0|tr[c>>0]),-1)?(u=ar[e>>2]=0,1):0:(u=0,1),s=0|ar[A>>2],!(0!=(0|l)&(b^c)))break;for(c=(0|(c=0|ar[s+12>>2]))==(0|ar[s+16>>2])?0|is[127&ar[36+(0|ar[s>>2])>>2]](s):0|bi(0|tr[c>>0]),c&=255,t||(c=0|fs[63&ar[12+(0|ar[f>>2])>>2]](f,c)),v=g+1|0,k=r,d=0,h=a;(0|k)!=(0|i);){do{if(1==(0|tr[h>>0])){if(u=(0|tr[(s=k+11|0)>>0])<0?0|ar[k>>2]:k,u=0|tr[u+g>>0],t||(u=0|fs[63&ar[12+(0|ar[f>>2])>>2]](f,u)),b=l+-1|0,c<<24>>24!=u<<24>>24){tr[h>>0]=0,u=d,s=w,l=b;break}(u=0|tr[s>>0])<<24>>24<0?u=0|ar[k+4>>2]:u&=255,(0|u)==(0|v)?(tr[h>>0]=2,s=w+(u=1)|0,l=b):(u=1,s=w)}else u=d,s=w}while(0);k=k+12|0,d=u,h=h+1|0,w=s}if(d)if(c=0|ar[A>>2],(0|(s=0|ar[(u=c+12|0)>>2]))==(0|ar[c+16>>2])?is[127&ar[40+(0|ar[c>>2])>>2]](c):(ar[u>>2]=s+1,bi(0|tr[s>>0])),1<(w+l|0)>>>0)for(s=r,b=a,c=w;;){if((0|s)==(0|i)){g=v,w=c;continue A}2==(0|tr[b>>0])&&((u=0|tr[s+11>>0])<<24>>24<0?u=0|ar[s+4>>2]:u&=255,(0|u)!=(0|v)&&(c=c+-1|(tr[b>>0]=0))),s=s+12|0,b=b+1|0}else g=v;else g=v}do{if(s){if(0|Ji(c=(0|(c=0|ar[s+12>>2]))==(0|ar[s+16>>2])?0|is[127&ar[36+(0|ar[s>>2])>>2]](s):0|bi(0|tr[c>>0]),-1)){ar[A>>2]=0,l=1;break}l=0==(0|ar[A>>2]);break}l=1}while(0);do{if(u){if(0|Ji(c=(0|(c=0|ar[u+12>>2]))==(0|ar[u+16>>2])?0|is[127&ar[36+(0|ar[u>>2])>>2]](u):0|bi(0|tr[c>>0]),-1)){ar[e>>2]=0,p=41;break}if(l)break;p=77;break}p=41}while(0);for(41==(0|p)&&l&&(p=77),77==(0|p)&&(ar[n>>2]=2|ar[n>>2]);;){if((0|r)==(0|i)){p=81;break}if(2==(0|tr[a>>0]))break;r=r+12|0,a=a+1|0}return 81==(0|p)&&(ar[n>>2]=4|ar[n>>2],r=i),$o(m),ur=o,0|r}function Nf(A,e,r,i,f,n,t,o,a,c){A|=0,e|=0,r|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0;var l,u,s=0,b=0;u=(0|(l=0|ar[(i|=0)>>2]))==(0|r);do{if(u){if(!(s=(0|ar[c+96>>2])==(0|A))&&(0|ar[c+100>>2])!=(0|A)){b=5;break}ar[i>>2]=r+1,tr[r>>0]=s?43:45,s=ar[f>>2]=0}else b=5}while(0);A:do{if(5==(0|b)){if(b=0|tr[t+11>>0],(0|A)==(0|n)&&0!=(0|(b<<24>>24<0?0|ar[t+4>>2]:255&b))){if(160<=((s=0|ar[a>>2])-o|0)){s=0;break}i=0|ar[f>>2],ar[a>>2]=s+4,ar[s>>2]=i,s=ar[f>>2]=0;break}for(t=c+104|0,n=0;;){if(s=c+(n<<2)|0,26==(0|n)){s=t;break}if((0|ar[s>>2])==(0|A))break;n=n+1|0}if(n=(s=s-c|0)>>2,92<(0|s))s=-1;else{switch(t=46974+n|0,0|e){case 10:case 8:if((0|e)<=(0|n)){s=-1;break A}break;case 16:if(88<=(0|s)){if(u){s=-1;break A}if(3<=(l-r|0)){s=-1;break A}if(48!=(0|tr[l-1>>0])){s=-1;break A}s=(ar[f>>2]=0)|tr[t>>0],ar[i>>2]=1+l,tr[l>>0]=s,s=0;break A}}s=0|tr[t>>0],ar[i>>2]=1+l,tr[l>>0]=s,ar[f>>2]=1+(0|ar[f>>2]),s=0}}}while(0);return 0|s}function Rf(A,e,r,i,f){A|=0,r|=0,i|=0,f|=0;var n,t;t=ur=(n=ur)+31&-32,ur=ur+16|0,Di(t,e|=0),e=0|bf(t,52568),ts[15&ar[48+(0|ar[e>>2])>>2]](e,46974,47006,r),r=0|bf(t,52576),e=0|is[127&ar[12+(0|ar[r>>2])>>2]](r),ar[i>>2]=e,i=0|is[127&ar[16+(0|ar[r>>2])>>2]](r),ar[f>>2]=i,ks[63&ar[20+(0|ar[r>>2])>>2]](A,r),df(t),ur=n}function Yf(A,e,r,i,f,n,t,o,a,c,l,u){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,c|=0,l|=0,u|=0;var s,b=0,d=0;s=a|=0;A:do{if((0|A)==(0|n))a=0|tr[e>>0]?(r=(tr[e>>0]=0)|ar[f>>2],ar[f>>2]=r+1,tr[r>>0]=46,0!=(0|((f=0|tr[o+11>>0])<<24>>24<0?0|ar[o+4>>2]:255&f))&&((b=0|ar[c>>2])-s|0)<160&&(a=0|ar[l>>2],ar[c>>2]=b+4,ar[b>>2]=a),0):-1;else{if((0|A)==(0|t)&&0|((t=0|tr[o+11>>0])<<24>>24<0?0|ar[o+4>>2]:255&t)){if(!(0|tr[e>>0])){a=-1;break}if(160<=((a=0|ar[c>>2])-s|0)){a=0;break}f=0|ar[l>>2],ar[c>>2]=a+4,ar[a>>2]=f,a=ar[l>>2]=0;break}for(n=u+128|0,b=0;;){if(a=u+(b<<2)|0,32==(0|b)){a=n;break}if((0|ar[a>>2])==(0|A))break;b=b+1|0}if(a=(b=a-u|0)>>2,(0|b)<=124){switch(n=0|tr[46974+a>>0],0|a){case 24:case 25:if((0|(a=0|ar[f>>2]))!=(0|i)&&(95&tr[a+-1>>0])!=(127&tr[r>>0])){a=-1;break A}ar[f>>2]=a+1,tr[a>>0]=n,a=0;break A;case 23:case 22:tr[r>>0]=80;break;default:(0|(a=95&n))==(0|tr[r>>0])&&(tr[r>>0]=128|a,0|tr[e>>0])&&(tr[e>>0]=0)|((r=0|tr[o+11>>0])<<24>>24<0?0|ar[o+4>>2]:255&r)&&((d=0|ar[c>>2])-s|0)<160&&(r=0|ar[l>>2],ar[c>>2]=d+4,ar[d>>2]=r)}c=0|ar[f>>2],ar[f>>2]=c+1,tr[c>>0]=n,a=(84<(0|b)||(ar[l>>2]=1+(0|ar[l>>2])),0)}else a=-1}}while(0);return 0|a}function Jf(A,e,r,i){A|=0,r|=0,i|=0;var f,n;n=ur=(f=ur)+31&-32,ur=ur+16|0,Di(n,e|=0),e=0|bf(n,52568),ts[15&ar[48+(0|ar[e>>2])>>2]](e,46974,47e3,r),r=0|bf(n,52576),e=0|is[127&ar[16+(0|ar[r>>2])>>2]](r),ar[i>>2]=e,ks[63&ar[20+(0|ar[r>>2])>>2]](A,r),df(n),ur=f}function Df(A,e,r,i,f,n,t){A|=0,e|=0,f|=0,n|=0,t|=0;var o,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0;for(c=ur=(o=ur)+31&-32,ur=ur+112|0,100<(l=((i|=0)-(r|=0)|0)/12|0)>>>0?(c=0|qo(l))?m=a=c:_l():(a=c,m=0),c=0,s=r,b=a;(0|s)!=(0|i);)(u=0|tr[s+8+3>>0])<<24>>24<0?u=0|ar[s+4>>2]:u&=255,u?tr[b>>0]=1:(tr[b>>0]=2,c=c+1|0,l=l+-1|0),s=s+12|0,b=b+1|0;g=0,w=c;A:for(;;){c=0|ar[A>>2];do{if(c){if(0|Qi(c=(0|(u=0|ar[c+12>>2]))==(0|ar[c+16>>2])?0|is[127&ar[36+(0|ar[c>>2])>>2]](c):0|wi(0|ar[u>>2]),-1)){ar[A>>2]=0,b=1;break}b=0==(0|ar[A>>2]);break}b=1}while(0);if(c=(u=0|ar[e>>2])?0|Qi(c=(0|(c=0|ar[u+12>>2]))==(0|ar[u+16>>2])?0|is[127&ar[36+(0|ar[u>>2])>>2]](u):0|wi(0|ar[c>>2]),-1)?(u=ar[e>>2]=0,1):0:(u=0,1),s=0|ar[A>>2],!(0!=(0|l)&(b^c)))break;for(c=(0|(c=0|ar[s+12>>2]))==(0|ar[s+16>>2])?0|is[127&ar[36+(0|ar[s>>2])>>2]](s):0|wi(0|ar[c>>2]),t||(c=0|fs[63&ar[28+(0|ar[f>>2])>>2]](f,c)),v=g+1|0,k=r,d=0,h=a;(0|k)!=(0|i);){do{if(1==(0|tr[h>>0])){if(u=(0|tr[(s=k+8+3|0)>>0])<0?0|ar[k>>2]:k,u=0|ar[u+(g<<2)>>2],t||(u=0|fs[63&ar[28+(0|ar[f>>2])>>2]](f,u)),b=l+-1|0,(0|c)!=(0|u)){tr[h>>0]=0,u=d,s=w,l=b;break}(u=0|tr[s>>0])<<24>>24<0?u=0|ar[k+4>>2]:u&=255,(0|u)==(0|v)?(tr[h>>0]=2,s=w+(u=1)|0,l=b):(u=1,s=w)}else u=d,s=w}while(0);k=k+12|0,d=u,h=h+1|0,w=s}if(d)if(c=0|ar[A>>2],(0|(s=0|ar[(u=c+12|0)>>2]))==(0|ar[c+16>>2])?is[127&ar[40+(0|ar[c>>2])>>2]](c):(ar[u>>2]=s+4,wi(0|ar[s>>2])),1<(w+l|0)>>>0)for(s=r,b=a,c=w;;){if((0|s)==(0|i)){g=v,w=c;continue A}2==(0|tr[b>>0])&&((u=0|tr[s+8+3>>0])<<24>>24<0?u=0|ar[s+4>>2]:u&=255,(0|u)!=(0|v)&&(c=c+-1|(tr[b>>0]=0))),s=s+12|0,b=b+1|0}else g=v;else g=v}do{if(s){if(0|Qi(c=(0|(c=0|ar[s+12>>2]))==(0|ar[s+16>>2])?0|is[127&ar[36+(0|ar[s>>2])>>2]](s):0|wi(0|ar[c>>2]),-1)){ar[A>>2]=0,l=1;break}l=0==(0|ar[A>>2]);break}l=1}while(0);do{if(u){if(0|Qi(c=(0|(c=0|ar[u+12>>2]))==(0|ar[u+16>>2])?0|is[127&ar[36+(0|ar[u>>2])>>2]](u):0|wi(0|ar[c>>2]),-1)){ar[e>>2]=0,p=41;break}if(l)break;p=77;break}p=41}while(0);for(41==(0|p)&&l&&(p=77),77==(0|p)&&(ar[n>>2]=2|ar[n>>2]);;){if((0|r)==(0|i)){p=81;break}if(2==(0|tr[a>>0]))break;r=r+12|0,a=a+1|0}return 81==(0|p)&&(ar[n>>2]=4|ar[n>>2],r=i),$o(m),ur=o,0|r}function Qf(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0,f|=0;var n,t;return t=ur=(n=ur)+31&-32,ur=ur+16|0,ar[t>>2]=f,f=0|Ai(r),r=0|ua(A,e,i,t),0|f&&Ai(f),ur=n,0|r}function Tf(A,e,r){A|=0,e|=0,r|=0;var i=0;A:do{switch((176&ar[r+4>>2])<<24>>24){case 16:switch(i=A+1|0,(r=0|tr[A>>0])<<24>>24){case 43:case 45:A=i;break A}if(1<(e-A|0)&r<<24>>24==48){switch(0|tr[i>>0]){case 88:case 120:break;default:0;break A}A=A+2|0}else 0;break;case 32:A=e;break;default:0}}while(0);return 0|A}function Mf(A,e,r){A|=0,e|=0;var i,f,n,t=0;for(2048&(r|=0)&&(tr[A>>0]=43,A=A+1|0),1024&r&&(tr[A>>0]=35,A=A+1|0),i=0!=(16384&r|0),(f=260==(0|(n=260&r)))?t=0:(tr[A>>0]=46,tr[A+1>>0]=42,t=1,A=A+2|0);(r=0|tr[e>>0])<<24>>24;)tr[A>>0]=r,e=e+1|0,A=A+1|0;A:do{switch(511&n){case 4:r=i?70:102;break;case 256:r=i?69:101;break;default:if(f){r=i?65:97;break A}r=i?71:103;break A}}while(0);return tr[A>>0]=r,0|t}function Sf(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f,n;return n=ur=(f=ur)+31&-32,ur=ur+16|0,ar[n>>2]=i,i=0|Ai(e),e=0|function(A,e,r){A|=0,e|=0,r|=0;var i,f=0,n=0,t=0;return f=ur=(i=ur)+31&-32,ur=ur+16|0,ar[f>>2]=ar[r>>2],A=0<=(0|(f=0|ua(0,0,e,f)))&&(t=0|qo(n=f+1|0),0!=(0|(ar[A>>2]=t)))?0|ua(t,n,e,r):-1,ur=i,0|A}(A,r,n),0|i&&Ai(i),ur=f,0|e}function Uf(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c=0,l=0,u=0,s=0;if(ur=(o=ur)+160|0,l=o+136|0,n=(f=o)+56|0,t=f+4|0,ar[f>>2]=268,ar[n>>2]=288,Yi(f+56|0,t),ar[f+128>>2]=0,ar[f+132>>2]=-1,ar[f>>2]=3872,ar[n>>2]=3892,Ti(t),ar[t>>2]=3908,ar[(i=f+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[f+52>>2]=16,ar[l>>2]=0,ar[l+4>>2]=0,ar[l+8>>2]=0,Of(t,l),(0|tr[l+11>>0])<0&&Vl(0|ar[l>>2]),0<(0|ar[r>>2]))for(c=0;Hf(f,16980,2),(0|(c=c+1|0))<(0|ar[r>>2]););if(s=0|Hf(f,16983,5),xf(l,e),Hf(0|Hf(s,(u=(a=0|tr[(c=l+11|0)>>0])<<24>>24<0)?0|ar[l>>2]:l,u?0|ar[l+4>>2]:255&a),16989,7),(0|tr[c>>0])<0&&Vl(0|ar[l>>2]),0<(0|ar[r>>2]))for(c=0;Hf(f,16980,2),(0|(c=c+1|0))<(0|ar[r>>2]););if(u=0|Hf(f,16997,6),s=0|Hf(0|$i(u,0|ar[(s=e+8|0)>>2],0|ar[s+4>>2]),17004,17),Hf(0|qi(s,0|ar[e+16>>2]),17022,2),0|tr[e+36>>0]){if(0<(0|ar[r>>2]))for(c=0;Hf(f,16980,2),(0|(c=c+1|0))<(0|ar[r>>2]););if(l=0|Hf(f,17025,9),l=0|Hf(0|Ki(l,0|cr[e+37>>0]),26620,1),0<(0|ar[r>>2]))for(c=0;Hf(l,16980,2),(0|(c=c+1|0))<(0|ar[r>>2]););u=(s=0|Hf(l,17035,7))+(0|ar[(0|ar[s>>2])-12>>2])+4|0,ar[u>>2]=-75&ar[u>>2]|8,Hf(0|qi(s,0|ar[e+40>>2]),26620,1)}if(jf(A,t),ar[f>>2]=3872,ar[n>>2]=3892,ar[t>>2]=3908,0<=(0|tr[11+i>>0]))return si(t),ci(n),void(ur=o);Vl(0|ar[i>>2]),si(t),ci(n),ur=o}function Of(A,e){var r,i,f=0,n=0,t=0,o=0;Jl(r=(A|=0)+32|0,e|=0),8&(t=(ar[(o=A+44|0)>>2]=0)|ar[(i=A+48|0)>>2])|0&&(e=(e=0|tr[11+r>>0])<<24>>24<0?(n=f=e=0|ar[r>>2])+(0|ar[A+36>>2])|0:(n=f=r)+(255&e)|0,ar[o>>2]=e,ar[A+8>>2]=f,ar[A+12>>2]=n,ar[A+16>>2]=e),16&t&&(o=(e=(e=0|tr[(f=11+r|0)>>0])<<24>>24<0?(t=0|ar[A+36>>2],ar[o>>2]=(0|ar[r>>2])+t,(2147483647&ar[A+40>>2])-1|0):(t=255&e,ar[o>>2]=r+t,10),t),Ul(r,e,0),(e=0|tr[f>>0])<<24>>24<0?(t=f=0|ar[r>>2],n=0|ar[A+36>>2]):(n=255&e,f=t=r),ar[(e=A+24|0)>>2]=f,ar[A+20>>2]=f,ar[A+28>>2]=t+n,3&ar[i>>2]&&(ar[e>>2]=f+o))}function Hf(A,e,r){e|=0,r|=0;var i,f,n,t,o,a,c=0,l=0;return ur=(a=ur)+16|0,n=a+12|0,l=(o=a)+8|0,Oi(o,A|=0),0|tr[o>>0]?(c=(0|ar[A>>2])-12|0,ar[l>>2]=ar[A+(0|ar[c>>2])+24>>2],c=A+(0|ar[c>>2])|0,t=0|ar[c+4>>2],f=e+r|0,-1==(0|(r=0|ar[(i=c+76|0)>>2]))&&(Di(n,c),r=0|bf(n,52536),r=0|fs[63&ar[28+(0|ar[r>>2])>>2]](r,32),df(n),r=r<<24>>24,ar[i>>2]=r),ar[n>>2]=ar[l>>2],ur=(0|zf(n,e,32==(176&t|0)?f:e,f,c,255&r)||Ri(l=A+(0|ar[(0|ar[A>>2])-12>>2])|0,5|ar[l+16>>2]),Hi(o),a),0|A):(Hi(o),ur=a,0|A)}function xf(A,e){A|=0;var r,i,f,n,t,o,a=0;if(ur=(o=ur)+160|0,n=o+136|0,t=o,1970628964!=(0|(a=0|ar[(e|=0)+20>>2])))return ar[A>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0,tr[A+11>>0]=4,tr[A+4>>0]=0,tr[A>>0]=a>>>24,tr[A+1>>0]=a>>>16,tr[A+2>>0]=a>>>8,tr[A+3>>0]=a,void(ur=o);for(i=t+56|0,f=t+4|0,ar[t>>2]=268,ar[i>>2]=288,Yi(t+56|0,f),ar[t+128>>2]=0,ar[t+132>>2]=-1,ar[t>>2]=3872,ar[i>>2]=3892,Ti(f),ar[f>>2]=3908,ar[(r=t+36|0)>>2]=0,ar[4+r>>2]=0,ar[8+r>>2]=0,ar[12+r>>2]=0,ar[t+52>>2]=16,ar[n>>2]=0,ar[4+n>>2]=0,ar[8+n>>2]=0,Of(f,n),(0|tr[11+n>>0])<0&&Vl(0|ar[n>>2]),a=t+(0|ar[(0|ar[t>>2])-12>>2])+4|0,ar[a>>2]=-75&ar[a>>2]|8,ar[t+(0|ar[(0|ar[t>>2])-12>>2])+76>>2]=48,ar[t+(0|ar[(0|ar[t>>2])-12>>2])+12>>2]=2,e=e+24|0,a=0;12==(4|a)&&(tr[n>>0]=45,Hf(t,n,1)),Ki(t,0|cr[(0|ar[e>>2])+a>>0]),(0|(a=a+1|0))<16;);jf(A,f),ar[t>>2]=3872,ar[i>>2]=3892,ar[f>>2]=3908,(0|tr[11+r>>0])<0&&Vl(0|ar[r>>2]),si(f),ci(i),ur=o}function jf(A,e){A|=0;var r=0,i=0,f=0,n=0;if(16&(r=0|ar[(e|=0)+48>>2])|0){if((i=0|ar[(r=e+44|0)>>2])>>>0<(f=0|ar[e+24>>2])>>>0&&(i=ar[r>>2]=f),r=0|ar[e+20>>2],ar[A>>2]=0,ar[A+4>>2]=0,4294967279<(e=i-r|(ar[A+8>>2]=0))>>>0&&Nl(),e>>>0<11?tr[A+11>>0]=e:(f=0|El(n=e+16&-16),ar[A>>2]=f,ar[A+8>>2]=-2147483648|n,ar[A+4>>2]=e,A=f),(0|r)!=(0|i)){for(f=A;tr[f>>0]=0|tr[r>>0],(0|(r=r+1|0))!=(0|i);)f=f+1|0;A=A+e|0}tr[A>>0]=0}else{if(!(8&r))return ar[A>>2]=0,ar[A+4>>2]=0,void(ar[A+8>>2]=0);if(r=0|ar[e+8>>2],f=0|ar[e+16>>2],ar[A>>2]=0,ar[A+4>>2]=0,4294967279<(e=f-r|(ar[A+8>>2]=0))>>>0&&Nl(),e>>>0<11?tr[A+11>>0]=e:(n=0|El(i=e+16&-16),ar[A>>2]=n,ar[A+8>>2]=-2147483648|i,ar[A+4>>2]=e,A=n),(0|r)!=(0|f)){for(i=A;tr[i>>0]=0|tr[r>>0],(0|(r=r+1|0))!=(0|f);)i=i+1|0;A=A+e|0}tr[A>>0]=0}}function zf(A,e,r,i,f,n){e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c=0,l=0,u=0,s=0;if(ur=(a=ur)+16|0,o=a,!(s=0|ar[(A|=0)>>2]))return ur=a,(s=0)|s;if(l=(0|(l=i-(c=e)|0))<(0|(u=0|ar[(t=f+12|0)>>2]))?u-l|0:0,0<(0|(f=(u=r)-c|0))&&(0|ns[63&ar[48+(0|ar[s>>2])>>2]](s,e,f))!=(0|f))return ar[A>>2]=0,ur=a,(s=0)|s;do{if(0<(0|l)){if(ar[o>>2]=0,ar[o+4>>2]=0,c=l>>>(ar[o+8>>2]=0)<11?(tr[(e=o+11|0)>>0]=l,f=o):(f=0|El(e=l+16&-16),ar[o>>2]=f,ar[o+8>>2]=-2147483648|e,ar[o+4>>2]=l,e=o+11|0,o),Vu(0|f,0|n,0|l),((tr[f+l>>0]=0)|ns[63&ar[48+(0|ar[s>>2])>>2]](s,(0|tr[e>>0])<0?0|ar[c>>2]:o,l))!=(0|l))return((ar[A>>2]=0)|tr[e>>0])<0&&Vl(0|ar[c>>2]),ur=a,(s=0)|s;(0|tr[e>>0])<0&&Vl(0|ar[c>>2]);break}}while(0);return 0<(0|(i=i-u|0))&&(0|ns[63&ar[48+(0|ar[s>>2])>>2]](s,r,i))!=(0|i)?(ar[A>>2]=0,ur=a,(s=0)|s):(ar[t>>2]=0,ur=a,0|s)}function Pf(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c;if(ur=(a=ur)+160|0,f=a+136|0,t=(n=a)+56|0,o=n+4|0,ar[n>>2]=268,ar[t>>2]=288,Yi(n+56|0,o),ar[n+128>>2]=0,ar[n+132>>2]=-1,ar[n>>2]=3872,ar[t>>2]=3892,Ti(o),ar[o>>2]=3908,ar[(i=n+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[n+52>>2]=16,ar[f>>2]=0,ar[4+f>>2]=0,ar[8+f>>2]=0,Of(o,f),(0|tr[11+f>>0])<0&&Vl(0|ar[f>>2]),Uf(f,e,r),Hf(n,(c=(e=0|tr[(r=11+f|0)>>0])<<24>>24<0)?0|ar[f>>2]:f,c?0|ar[4+f>>2]:255&e),(0|tr[r>>0])<0&&Vl(0|ar[f>>2]),jf(A,o),ar[n>>2]=3872,ar[t>>2]=3892,ar[o>>2]=3908,0<=(0|tr[11+i>>0]))return si(o),ci(t),void(ur=a);Vl(0|ar[i>>2]),si(o),ci(t),ur=a}function Lf(A,e,r){e|=0,r|=0;var i,f=0,n=0,t=0;return i=0|ar[(f=t=(A|=0)+8|0)>>2],(f=0|ar[f+4>>2])>>>0<r>>>0|(0|f)==(0|r)&i>>>0<e>>>0?(0==(0|i)&0==(0|f)||((n=0|ar[A+4>>2])?(Lf(n,i,f),n=0|ar[(f=t)>>2],f=0|ar[f+4>>2]):n=i,zi(0|ar[A>>2],n,f,1),ar[t>>2]=0,ar[t+4>>2]=0,tr[A+16>>0]=1),tr[A+17>>0]=1,(t=0)|t):((n=0|ar[A+4>>2])?(Lf(n,e,r),n=0|ar[(f=t)>>2],f=0|ar[f+4>>2]):n=i,e=0|gu(0|n,0|f,0|e,0|r),r=D,ar[t>>2]=e,ar[t+4>>2]=r,tr[A+16>>0]=0==(0|e)&0==(0|r)&1,0|(t=1))}function Kf(A,e){e|=0;var r,i,f,n,t,o=0,a=0,c=0,l=0;f=(A|=0)+4|0,n=0|ar[A>>2],1073741823<(o=1+(i=(t=(0|ar[f>>2])-n|0)>>2)|0)>>>0&&il(),a=(c=(0|ar[(l=A+8|0)>>2])-n|0)>>1,a=c>>2>>>0<536870911?a>>>0<o>>>0?o:a:1073741823;do{if(a){if(!(1073741823<a>>>0)){c=0|El(a<<2);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else c=0}while(0);ar[(r=c+(i<<2)|0)>>2]=ar[e>>2],o=r+(0-i<<2)|0,0<(0|t)&&Eu(0|o,0|n,0|t),ar[A>>2]=o,ar[f>>2]=4+r,ar[l>>2]=c+(a<<2),n&&Vl(n)}function qf(A,e,r){A|=0,e|=0;var i,f=0,n=0,t=0;if(ur=(i=ur)+16|0,n=i,0|Lf(r|=0,4,0))if(ji(f=0|ar[r>>2],n,4),5&ar[f+(0|ar[(0|ar[f>>2])-12>>2])+16>>2]){for(f=r;ar[(t=f+8|0)>>2]=0,ar[t+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[n+1>>0]<<16|cr[n>>0]<<24|cr[n+2>>0]<<8|cr[n+3>>0];else f=0;if(tr[e+37>>0]=f>>>24,ar[e+40>>2]=16777215&f,tr[e+36>>0]=1,ar[(t=e+16|0)>>2]=4+(0|ar[t>>2]),!(0|tr[r+17>>0]))return n=0|ar[(r=49920)+4>>2],ar[(t=A)>>2]=ar[r>>2],ar[t+4>>2]=n,Rl(A+8|0,49928),void(ur=i);ar[n>>2]=0,ar[n+4>>2]=0,ar[n+8>>2]=0,Cc(A,2,100,n),ur=(0<=(0|tr[n+11>>0])||Vl(0|ar[n>>2]),i)}function $f(A,e,r,i){var f,n,t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X=0,_=0,F=0,N=0,R=0,Y=0;ur=(V=ur)+208|0,N=(r|=0)+16|0,a=r+17|0,c=4+(I=V+184|0)|0,l=(e|=0)+44|0,u=e+48|0,d=12+(E=(B=V)+24|0)|0,k=4+E|0,h=s=64+E|0,w=136+E|0,v=140+E|0,m=60+E|0,p=(R=V+192|0)+11|0,y=b=8+E|0,Z=11+(G=V+168|0)|0,C=11+(g=44+E|0)|0,f=e+52|0,n=-1!=(0|(i|=0)),o=11+(t=B+8|0)|0,W=(A|=0)+8|0,F=0;A:for(;e=0|tr[a>>0],!((tr[N>>0]|e)<<24>>24);){ar[I>>2]=0,ar[c>>2]=0,An(B,r,I);do{if((0|ar[B>>2])==(0|ar[12480])){if((X=e=0|ar[u>>2])-(0|ar[l>>2])>>3>>>0<=1024){X>>>0<(0|ar[f>>2])>>>0?(ar[e>>2]=ar[I>>2],ar[X+4>>2]=ar[c>>2],ar[I>>2]=0,ar[c>>2]=0,ar[u>>2]=X+8):en(l,I),_=(n&(0|(e=F+1|0))==(0|i))<<31>>31;break}ar[b>>2]=4080,ar[E>>2]=164,ar[s>>2]=184,ar[k>>2]=0,Yi(h,d),ar[w>>2]=0,ar[v>>2]=-1,ar[E>>2]=4060,ar[s>>2]=4100,ar[b>>2]=4080,Ti(d),ar[d>>2]=3908,ar[g>>2]=0,ar[4+g>>2]=0,ar[8+g>>2]=0,ar[12+g>>2]=0,ar[m>>2]=24,ar[R>>2]=0,ar[R+4>>2]=0,ar[R+8>>2]=0,Of(d,R),(0|tr[p>>0])<0&&Vl(0|ar[R>>2]),Hf(0|qi(0|Hf(y,17315,30),1024),17346,10),jf(G,d),Cc(A,6,1e3,G),(0|tr[Z>>0])<0&&Vl(0|ar[G>>2]),ar[E>>2]=4060,ar[s>>2]=4100,ar[y>>2]=4080,ar[d>>2]=3908,(0|tr[C>>0])<0&&Vl(0|ar[g>>2]),si(d),ci(s),_=1,e=F}else e=0|ar[(X=B)+4>>2],ar[(_=A)>>2]=ar[X>>2],ar[_+4>>2]=e,ar[W>>2]=ar[t>>2],ar[4+W>>2]=ar[4+t>>2],ar[8+W>>2]=ar[8+t>>2],ar[t>>2]=0,ar[4+t>>2]=0,ar[8+t>>2]=0,_=1,e=F}while(0);switch((0|tr[o>>0])<0&&Vl(0|ar[t>>2]),0|(X=0|ar[c>>2])&&Il(X),3&_){case 0:F=e;break;case 3:Y=22;break A;default:Y=28;break A}}if(22==(0|Y))e=0|tr[a>>0];else if(28==(0|Y))return void(ur=V);e<<24>>24?(ar[R>>2]=0,ar[R+4>>2]=0,ar[R+8>>2]=0,Cc(A,2,100,R),(0|tr[R+11>>0])<0&&Vl(0|ar[R>>2])):(R=0|ar[(N=49920)+4>>2],ar[(Y=A)>>2]=ar[N>>2],ar[Y+4>>2]=R,Rl(W,49928)),ur=V}function An(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0;ur=(n=ur)+256|0,h=n+192|0,t=n+228|0,d=(i=n)+216|0,ar[(f=n+144|0)>>2]=3840,k=8+f|0,ar[40+f>>2]=0,ar[k>>2]=0,ar[k+4>>2]=0,ar[k+8>>2]=0,ar[k+12>>2]=0,ar[k+16>>2]=0,ar[k+20>>2]=0,ar[k+24>>2]=0,or[k+28>>1]=0,rn(t,f,e),(0|tr[(t=t+8|0)+11>>0])<0&&Vl(0|ar[t>>2]);do{if(0|tr[e+17>>0])ar[h>>2]=0,ar[h+4>>2]=0,ar[h+8>>2]=0,Cc(A,2,100,h),(0|tr[h+11>>0])<0&&Vl(0|ar[h>>2]);else{t=0|ar[20+f>>2];A:do{if((0|t)<1768778098){if((0|t)<1735553132){if((0|t)<1684631142){if((0|t)<1668047216){switch(0|t){case 1635088451:break;default:b=114;break A}t=0|El(96),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=4716,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,o=(ar[o>>2]=w)+l|0,ar[c>>2]=o,Eu(0|w,0|u,0|l),ar[a>>2]=o;break}il()}}while(0);u=0|ar[(l=36+f|0)+4>>2],ar[(w=t+52|0)>>2]=ar[l>>2],ar[w+4>>2]=u,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=4744,ar[(w=t+72|0)>>2]=0,ar[w+4>>2]=0,ar[w+8>>2]=0,ar[w+12>>2]=0,ar[w+16>>2]=0,ar[w+20>>2]=0;break}switch(0|t){case 1668047216:break;default:b=114;break A}t=0|El(104),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=4884,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){v=0|El(l),ar[a>>2]=v,w=(ar[o>>2]=v)+l|0,ar[c>>2]=w,Eu(0|v,0|u,0|l),ar[a>>2]=w;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=4912;break}if((0|t)<1685218662){switch(0|t){case 1684631142:break;default:b=114;break A}t=0|El(72),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=5136,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=5164;break}if((0|t)<1718909296){switch(0|t){case 1685218662:break;default:b=114;break A}t=0|El(72),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=5192,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=5220;break}switch(0|t){case 1718909296:break;default:b=114;break A}t=0|El(96),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=4156,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=4e3,ar[t+80>>2]=0,ar[t+84>>2]=0,ar[t+88>>2]=0;break}if((0|t)<1768186228){if((0|t)<1751411826){switch(0|t){case 1735553132:break;default:b=114;break A}t=0|El(88),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=5080,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=5108,ar[t+72>>2]=0,ar[t+76>>2]=0,ar[t+80>>2]=0;break}if(1752589123<=(0|t)){switch(0|t){case 1752589123:break;default:b=114;break A}t=0|El(120),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=4996,fn(s=t+16|0,f);break}switch(0|t){case 1751411826:break;default:b=114;break A}t=0|El(104),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=4212,ar[(s=t+16|0)>>2]=3840,ar[(u=t+24|0)>>2]=ar[k>>2],ar[u+4>>2]=ar[k+4>>2],ar[u+8>>2]=ar[k+8>>2],ar[u+12>>2]=ar[k+12>>2],ar[(u=t+40|0)>>2]=0,ar[(o=t+44|0)>>2]=0,l=(ar[(a=t+48|0)>>2]=0)|ar[24+f>>2],c=(0|ar[28+f>>2])-l|0;do{if(0|c){if(!((0|c)<0)){w=0|El(c),ar[o>>2]=w,v=(ar[u>>2]=w)+c|0,ar[a>>2]=v,Eu(0|w,0|l,0|c),ar[o>>2]=v;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=4240,ar[(v=t+92|0)>>2]=0,ar[v+4>>2]=0,ar[v+8>>2]=0;break}if((0|t)<1768517222){switch(0|t){case 1768186228:break;default:b=114;break A}t=0|El(88),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=5024,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=5052,ar[(v=t+72|0)>>2]=0,ar[v+4>>2]=0,ar[v+8>>2]=0,ar[v+12>>2]=0;break}if((0|t)<1768714083){switch(0|t){case 1768517222:break;default:b=114;break A}t=0|El(72),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=4380,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=4408;break}switch(0|t){case 1768714083:break;default:b=114;break A}t=0|El(88),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=4324,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=4352,ar[t+72>>2]=0,ar[t+76>>2]=0,ar[t+80>>2]=0;break}if((0|t)<1769104742){if((0|t)<1768973167){if((0|t)<1768842853){switch(0|t){case 1768778098:break;default:b=114;break A}t=0|El(80),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=4828,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=4856;break}switch(0|t){case 1768842853:break;default:b=114;break A}t=0|El(144),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=4436,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);for(a=0|ar[(c=36+f|0)+4>>2],ar[(o=t+52|0)>>2]=ar[c>>2],ar[o+4>>2]=a,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=4464,c=(a=o=t+80|0)+60|0;(0|(a=a+4|(ar[a>>2]=0)))<(0|c););tr[o+60>>0]=0;break}if((0|t)<1768975713){switch(0|t){case 1768973167:break;default:b=114;break A}t=0|El(72),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=4548,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=4576;break}switch(0|t){case 1768977008:t=0|El(72),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=4492,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=4520;break A;case 1768975713:t=0|El(88),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=4604,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=4632,ar[t+72>>2]=0,ar[t+76>>2]=0,ar[t+80>>2]=0;break A;default:b=114;break A}}if((0|t)<1835365473){if((0|t)<1769107316){switch(0|t){case 1769104742:break;default:b=114;break A}t=0|El(88),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=4940,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=4968,ar[t+72>>2]=0,ar[t+76>>2]=0,ar[t+80>>2]=0;break}if((0|t)<1769173093){switch(0|t){case 1769107316:break;default:b=114;break A}t=0|El(80),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=4772,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=4800;break}switch(0|t){case 1769173093:break;default:b=114;break A}t=0|El(80),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=4660,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=4688;break}if((0|t)<1885959277){switch(0|t){case 1835365473:break;default:b=114;break A}t=0|El(72),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=4184,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=4028;break}if((0|t)<1970433056){switch(0|t){case 1885959277:break;default:b=114;break A}t=0|El(80),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=4268,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=4296;break}switch(0|t){case 1970433056:break;default:b=114;break A}t=0|El(88),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=5248,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);w=0|ar[(u=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[u>>2],ar[v+4>>2]=w,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0,ar[s>>2]=5276,ar[(v=t+72|0)>>2]=0,ar[v+4>>2]=0,ar[v+8>>2]=0;break}while(0);if(114==(0|b)){t=0|El(72),ar[t+4>>2]=0,ar[t+8>>2]=0,ar[t>>2]=5304,ar[(s=t+16|0)>>2]=3840,ar[(o=t+24|0)>>2]=ar[k>>2],ar[o+4>>2]=ar[k+4>>2],ar[o+8>>2]=ar[k+8>>2],ar[o+12>>2]=ar[k+12>>2],ar[(o=t+40|0)>>2]=0,ar[(a=t+44|0)>>2]=0,u=(ar[(c=t+48|0)>>2]=0)|ar[24+f>>2],l=(0|ar[28+f>>2])-u|0;do{if(0|l){if(!((0|l)<0)){w=0|El(l),ar[a>>2]=w,v=(ar[o>>2]=w)+l|0,ar[c>>2]=v,Eu(0|w,0|u,0|l),ar[a>>2]=v;break}il()}}while(0);w=0|ar[(b=36+f|0)+4>>2],ar[(v=t+52|0)>>2]=ar[b>>2],ar[v+4>>2]=w,ar[s>>2]=3972,ar[t+60>>2]=0,ar[t+64>>2]=0,ar[t+68>>2]=0}if(l=s,o=0|ar[(a=k)>>2],(a=0|ar[a+4>>2])>>>0<0|0==(0|a)&o>>>0<(c=0|ar[(u=16+f|0)>>2])>>>0)a=i+64|0,ar[(l=i+8|0)>>2]=4080,c=i+12|0,ar[i>>2]=164,ar[a>>2]=184,Yi(i+64|(ar[i+4>>2]=0),c),ar[i+136>>2]=0,ar[i+140>>2]=-1,ar[i>>2]=4060,ar[a>>2]=4100,ar[l>>2]=4080,Ti(c),ar[c>>2]=3908,ar[(l=i+44|0)>>2]=0,ar[l+4>>2]=0,ar[l+8>>2]=0,ar[l+12>>2]=0,ar[i+60>>2]=24,ar[h>>2]=0,ar[h+4>>2]=0,ar[h+8>>2]=0,Of(c,h),(0|tr[h+11>>0])<0&&Vl(0|ar[h>>2]),w=0|Hf(o=i+8|0,17426,10),v=0|Hf(0|$i(w,0|ar[(v=k)>>2],0|ar[v+4>>2]),17437,34),Hf(0|qi(v,0|ar[u>>2]),17472,7),jf(d,c),Cc(A,2,101,d),(0|tr[d+11>>0])<0&&Vl(0|ar[d>>2]),ar[i>>2]=4060,ar[a>>2]=4100,ar[o>>2]=4080,ar[c>>2]=3908,(0|tr[l+11>>0])<0&&Vl(0|ar[l>>2]),si(c),ci(a);else if(v=0|ar[e>>2],k=0|gu(0|o,0|a,0|c,0),w=D,a=h+4|0,tr[h+17>>0]=0,ar[(d=u=h+8|0)>>2]=k,ar[d+4>>2]=w,tr[h+16>>0]=0==(0|k)&0==(0|w)&1,ar[h>>2]=v,ar[a>>2]=e,hs[127&ar[16+(0|ar[s>>2])>>2]](i,s,h),(0|ar[i>>2])==(0|ar[12480])&&(ar[r>>2]=l,o=0|ar[(v=r+4|0)>>2],ar[v>>2]=t,t=(o&&Il(o),0)),0==(0|(c=0|ar[(o=u)>>2]))&0==(0|(o=0|ar[o+4>>2]))||((a=0|ar[a>>2])?(Lf(a,c,o),a=0|ar[(o=u)>>2],o=0|ar[o+4>>2]):a=c,zi(0|ar[h>>2],a,o,1),ar[(v=u)>>2]=0,ar[v+4>>2]=0),w=0|ar[(h=i)+4>>2],ar[(v=A)>>2]=ar[h>>2],ar[v+4>>2]=w,w=i+8|0,ar[(v=A+8|0)>>2]=ar[w>>2],ar[v+4>>2]=ar[w+4>>2],ar[v+8>>2]=ar[w+8>>2],!t)break;Il(t)}}while(0);ar[f>>2]=3840,ur=((o=0|ar[24+f>>2])&&((0|ar[(t=28+f|0)>>2])!=(0|o)&&(ar[t>>2]=o),Vl(o)),n)}function en(A,e){e|=0;var r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0;t=0|ar[(s=(A|=0)+4|0)>>2],r=o=0|ar[A>>2],536870911<(f=(l=t-o>>3)+1|0)>>>0&&il(),a=(u=(0|ar[(i=A+8|0)>>2])-o|0)>>2,a=u>>3>>>0<268435455?a>>>0<f>>>0?f:a:536870911;do{if(a){if(!(536870911<a>>>0)){c=0|El(a<<3);break}Fl(s=0|C(8),37845),ar[s>>2]=16004,I(0|s,3616,283)}else c=0}while(0);if(u=c+(a<<3)|0,ar[(f=n=c+(l<<3)|0)>>2]=ar[e>>2],a=e+4|0,ar[c+(l<<3)+4>>2]=ar[a>>2],ar[e>>2]=0,a=n+8|(ar[a>>2]=0),(0|t)!=(0|r)){for(;t=(l=t)+-8|0,ar[n+-8>>2]=ar[t>>2],l=l+-4|0,ar[n+-4>>2]=ar[l>>2],ar[t>>2]=0,f=n=f+-8|(ar[l>>2]=0),(0|t)!=(0|r););o=0|ar[A>>2]}if(ar[A>>2]=f,f=0|ar[s>>2],ar[s>>2]=a,ar[i>>2]=u,(0|f)!=(0|(t=o)))for(;n=0|ar[f+-4>>2],f=f+-8|0,0|n&&Il(n),(0|f)!=(0|t););o&&Vl(o)}function rn(A,e,r){A|=0,e|=0;var i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0;if(ur=(i=ur)+16|0,u=i,0|Lf(r|=0,4,0))if(ji(c=0|ar[r>>2],u,4),5&ar[c+(0|ar[(0|ar[c>>2])-12>>2])+16>>2]){for(f=r;ar[(c=f+8|0)>>2]=0,ar[c+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[u+1>>0]<<16|cr[u>>0]<<24|cr[u+2>>0]<<8|cr[u+3>>0];else f=0;if(ar[(c=o=e+8|0)>>2]=f,(ar[c+4>>2]=0)|Lf(r,4,0))if(ji(c=0|ar[r>>2],u,4),5&ar[c+(0|ar[(0|ar[c>>2])-12>>2])+16>>2]){for(f=r;ar[(c=f+8|0)>>2]=0,ar[c+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[u+1>>0]<<16|cr[u>>0]<<24|cr[u+2>>0]<<8|cr[u+3>>0];else f=0;if(ar[(t=e+20|0)>>2]=f,ar[(c=e+16|0)>>2]=8,1==(0|ar[(a=o)>>2])&0==(0|ar[a+4>>2])){if(0|Lf(r,4,0))if(ji(a=0|ar[r>>2],u,4),5&ar[a+(0|ar[(0|ar[a>>2])-12>>2])+16>>2]){for(f=r;ar[(a=f+8|0)>>2]=0,ar[a+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[u+1>>0]<<16|cr[u>>0]<<24|cr[u+2>>0]<<8|cr[u+3>>0];else f=0;if(0|Lf(r,4,0))if(ji(a=0|ar[r>>2],u,4),5&ar[a+(0|ar[(0|ar[a>>2])-12>>2])+16>>2]){for(n=r;ar[(a=n+8|0)>>2]=0,ar[a+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[u+1>>0]<<16|cr[u>>0]<<24|cr[u+2>>0]<<8|cr[u+3>>0];else n=0;ar[(a=o)>>2]=n,ar[a+4>>2]=f,ar[c>>2]=8+(0|ar[c>>2]),f=0|ar[t>>2]}if(1970628964==(0|f)&&(0|Lf(r,16,0)&&(a=e+24|0,16<=(t=(o=0|ar[(n=e+28|0)>>2])-(f=0|ar[a>>2])|0)>>>0?16!=(0|t)&&(0|o)!=(0|(l=f+16|0))&&(ar[n>>2]=l):(dn(a,16-t|0),f=0|ar[a>>2]),ji(0|ar[r>>2],f,16)),ar[c>>2]=16+(0|ar[c>>2])),!(0|tr[r+17>>0]))return r=0|ar[(l=49920)+4>>2],ar[(u=A)>>2]=ar[l>>2],ar[u+4>>2]=r,Rl(A+8|0,49928),void(ur=i);ar[u>>2]=0,ar[u+4>>2]=0,ar[u+8>>2]=0,Cc(A,2,100,u),ur=(0<=(0|tr[u+11>>0])||Vl(0|ar[u>>2]),i)}function fn(A,e){(function(A,e){e|=0;var r,i=0,f=0,n=0,t=0,o=0;ar[(A|=0)>>2]=3840,n=e+8|0,ar[(f=A+8|0)>>2]=ar[n>>2],ar[f+4>>2]=ar[n+4>>2],ar[f+8>>2]=ar[n+8>>2],ar[f+12>>2]=ar[n+12>>2],n=e+24|0,ar[(f=A+24|0)>>2]=0,ar[(o=A+28|0)>>2]=0,ar[A+32>>2]=0,0|(i=(0|ar[(r=e+28|0)>>2])-(0|ar[n>>2])|0)&&((0|i)<0&&il(),t=0|El(i),ar[o>>2]=t,ar[f>>2]=t,ar[A+32>>2]=t+i,f=0|ar[n>>2],0<(0|(i=(0|ar[r>>2])-f|0))&&(Eu(0|t,0|f,0|i),ar[o>>2]=t+i));t=0|ar[(e=e+36|0)+4>>2],ar[(o=A+36|0)>>2]=ar[e>>2],ar[o+4>>2]=t,ar[A>>2]=3972,ar[A+44>>2]=0,ar[A+48>>2]=0,ar[A+52>>2]=0})(A|=0,e|=0),ar[A>>2]=5332,ar[(e=A+64|0)>>2]=0,ar[A+68>>2]=0,ar[A+72>>2]=0,ar[A+92>>2]=0,ar[A+96>>2]=0,un(e,48,ar[A+100>>2]=0)}function nn(A,e){A|=0,e|=0;var r,i,f=0,n=0;ur=(i=ur)+16|0,ar[(r=i)>>2]=0,ar[r+4>>2]=0,ar[r+8>>2]=0;do{if(0|tr[e+16>>0])for(e=A+12|0;(0|(A=A+1|(tr[A>>0]=0)))<(0|e););else{for(;;){if(!(0|Lf(e,1,0))){f=5;break}if(f=0|xi(n=0|ar[e>>2]),5&ar[n+(0|ar[(0|ar[n>>2])-12>>2])+16>>2]|0){f=7;break}if(!f){f=11;break}jl(r,255&f)}if(5==(0|f)){ar[A>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0;break}if(7==(0|f)){for(;ar[(n=e+8|0)>>2]=0,ar[n+4>>2]=0,tr[e+16>>0]=1,e=0|ar[e+4>>2];)f=7;ar[A>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0;break}if(11==(0|f)){ar[A>>2]=ar[r>>2],ar[A+4>>2]=ar[r+4>>2],ar[A+8>>2]=ar[r+8>>2],ar[r>>2]=0,ar[r+4>>2]=0,ar[r+8>>2]=0;break}}}while(0);ur=(0<=(0|tr[r+11>>0])||Vl(0|ar[r>>2]),i)}function tn(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c,l=0,u=0,s=0,b=0;if(ur=(c=ur)+160|0,f=c+136|0,o=(t=c)+56|0,a=t+4|0,ar[t>>2]=268,ar[o>>2]=288,Yi(t+56|0,a),ar[t+128>>2]=0,ar[t+132>>2]=-1,ar[t>>2]=3872,ar[o>>2]=3892,Ti(a),ar[a>>2]=3908,ar[(n=t+36|0)>>2]=0,ar[4+n>>2]=0,ar[8+n>>2]=0,ar[12+n>>2]=0,ar[t+52>>2]=16,ar[f>>2]=0,ar[4+f>>2]=0,ar[8+f>>2]=0,Of(a,f),(0|tr[11+f>>0])<0&&Vl(0|ar[f>>2]),l=1+(0|ar[r>>2])|0,ar[r>>2]=l,(0|(u=0|ar[e+44>>2]))!=(0|(i=0|ar[e+48>>2]))){for(s=11+f|0,b=4+f|0,l=1,e=u;;){if(!l){if(0<(0|ar[r>>2]))for(l=0;Hf(t,16980,2),(0|(l=l+1|0))<(0|ar[r>>2]););Hf(t,26620,1)}if(u=0|ar[e>>2],hs[127&ar[ar[u>>2]>>2]](f,u,r),Hf(t,(l=(u=0|tr[s>>0])<<24>>24<0)?0|ar[f>>2]:f,l?0|ar[b>>2]:255&u),(0|tr[s>>0])<0&&Vl(0|ar[f>>2]),(0|(e=e+8|0))==(0|i))break;l=0}l=0|ar[r>>2]}if(ar[r>>2]=(0|l)<1?0:l+-1|0,jf(A,a),ar[t>>2]=3872,ar[o>>2]=3892,ar[a>>2]=3908,0<=(0|tr[11+n>>0]))return si(a),ci(o),void(ur=c);Vl(0|ar[n>>2]),si(a),ci(o),ur=c}function on(A){var e,r=0,i=0,f=0,n=0,t=0,o=0,a=0;if(ar[(A|=0)>>2]=5108,0|(r=0|ar[(e=A+56|0)>>2])){if((0|(i=0|ar[(a=A+60|0)>>2]))!=(0|r)){for(;o=i+-64|0,ar[a>>2]=o,0|(f=0|ar[i+-12>>2])&&((0|(t=0|ar[(n=i+-8|0)>>2]))!=(0|f)&&(ar[n>>2]=t+(~((t+-4-f|0)>>>2)<<2)),Vl(f)),ar[o>>2]=3840,0|(f=0|ar[i+-40>>2])&&((0|ar[(i=i+-36|0)>>2])!=(0|f)&&(ar[i>>2]=f),Vl(f)),(0|(i=0|ar[a>>2]))!=(0|r););r=0|ar[e>>2]}Vl(r)}if(ar[A>>2]=3972,0|(r=0|ar[(n=A+44|0)>>2])){if((0|(i=0|ar[(t=A+48|0)>>2]))!=(0|r)){for(;f=i+-8|0,ar[t>>2]=f,(0|(i=(i=0|ar[i+-4>>2])?(Il(i),0|ar[t>>2]):f))!=(0|r););r=0|ar[n>>2]}Vl(r)}ar[A>>2]=3840,(i=0|ar[A+24>>2])&&((0|ar[(r=A+28|0)>>2])!=(0|i)&&(ar[r>>2]=i),Vl(i))}function an(A,e){e|=0;var r=0,i=0,f=0,n=0,t=0,o=0;ar[(A|=0)>>2]=3840,f=e+8|0,ar[(i=A+8|0)>>2]=ar[f>>2],ar[i+4>>2]=ar[f+4>>2],ar[i+8>>2]=ar[f+8>>2],ar[i+12>>2]=ar[f+12>>2],f=e+24|0,ar[(i=A+24|0)>>2]=0,ar[(o=A+28|0)>>2]=0,(ar[A+32>>2]=0)|(r=(0|ar[(n=e+28|0)>>2])-(0|ar[f>>2])|0)&&((0|r)<0&&il(),t=0|El(r),ar[o>>2]=t,ar[i>>2]=t,ar[A+32>>2]=t+r,i=0|ar[f>>2],0<(0|(r=(0|ar[n>>2])-i|0))&&(Eu(0|t,0|i,0|r),ar[o>>2]=t+r)),t=0|ar[(n=e+36|0)+4>>2],ar[(o=A+36|0)>>2]=ar[n>>2],ar[o+4>>2]=t,ar[A+48>>2]=ar[e+48>>2],ln(A+52|0,e+52|0)}function cn(A,e){e|=0;var r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0;i=(A|=0)+4|0,f=0|ar[A>>2],67108863<(n=(t=(0|ar[i>>2])-f>>6)+1|0)>>>0&&il(),f=(c=(0|ar[(l=A+8|0)>>2])-f|0)>>5,f=c>>6>>>0<33554431?f>>>0<n>>>0?n:f:67108863;do{if(f){if(!(67108863<f>>>0)){n=0|El(f<<6);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else n=0}while(0);if(r=n+(f<<6)|0,an(t=o=n+(t<<6)|0,e),a=o+64|0,e=0|ar[A>>2],(0|(f=0|ar[i>>2]))==(0|e))f=t,n=c=e;else{for(n=o;an(n+-64|0,f=f+-64|0),t=n=t+-64|0,(0|f)!=(0|e););f=t,c=0|ar[A>>2],n=0|ar[i>>2]}if(ar[A>>2]=f,ar[i>>2]=a,ar[l>>2]=r,(0|n)!=(0|(a=c)))for(o=n;o=(e=o)+-64|0,0|(f=0|ar[e+-12>>2])&&((0|(t=0|ar[(n=e+-8|0)>>2]))!=(0|f)&&(ar[n>>2]=t+(~((t+-4-f|0)>>>2)<<2)),Vl(f)),ar[o>>2]=3840,0|(n=0|ar[e+-40>>2])&&((0|ar[(f=e+-36|0)>>2])!=(0|n)&&(ar[f>>2]=n),Vl(n)),(0|o)!=(0|a););c&&Vl(c)}function ln(A,e){e|=0;var r,i,f,n,t=0;ar[(A|=0)>>2]=0,ar[(n=A+4|0)>>2]=0,(r=(t=((ar[A+8>>2]=0)|ar[(f=e+4|0)>>2])-(0|ar[e>>2])|0)>>2)&&(1073741823<r>>>0&&il(),i=0|El(t),ar[n>>2]=i,ar[A>>2]=i,ar[A+8>>2]=i+(r<<2),A=0|ar[e>>2],(0|(t=(0|ar[f>>2])-A|0))<=0||(Eu(0|i,0|A,0|t),ar[n>>2]=i+(t>>>2<<2)))}function un(A,e,r){r|=0;var i,f,n,t,o,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0;return ur=(o=ur)+32|0,f=o+8|0,i=o,(e|=0)>>>0<=(c=0|ar[(n=(A|=0)+4|0)>>2])>>>0?(ar[n>>2]=e,void(ur=o)):((l=(u=0|ar[(t=A+8|0)>>2])<<5)>>>0<(a=e-c|0)>>>0|(l-a|0)>>>0<c>>>0?(ar[f>>2]=0,ar[(b=4+f|0)>>2]=0,((ar[(d=8+f|0)>>2]=0)|e)<0&&il(),c=u<<6,u=e+31&-32,function(A,e){e|=0;var r,i,f,n,t,o=0,a=0,c=0,l=0;if(ur=(t=ur)+32|0,o=t+16|0,r=t+8|0,i=t,ar[(n=8+(A|=0)|0)>>2]<<5>>>0>=e>>>0)return ur=t;ar[o>>2]=0,ar[(a=o+4|0)>>2]=0,ar[(f=o+8|0)>>2]=0,(0|e)<0&&il();c=0|El((l=1+((e+-1|0)>>>5)|0)<<2),ar[o>>2]=c,ar[a>>2]=0,ar[f>>2]=l,l=0|ar[A>>2],ar[r>>2]=l,ar[4+r>>2]=0,e=0|ar[(c=A+4|0)>>2],ar[i>>2]=l+(e>>>5<<2),ar[i+4>>2]=31&e,function(A,e,r){e|=0,r|=0;var i,f,n,t,o,a,c,l=0,u=0,s=0,b=0,d=0;if(ur=(c=ur)+32|0,f=c+24|0,n=c+16|0,t=c+8|0,a=c,d=0|ar[(u=4+(A|=0)|0)>>2],o=0|ar[e>>2],l=0|ar[e+4>>2],i=0|ar[r>>2],s=0|ar[r+4>>2],b=i-o<<3,ar[u>>2]=d-l+s+b,u=(0|ar[A>>2])+(d>>>5<<2)|0,e=u,(0|l)!=(0|(r=31&d)))return ar[f>>2]=o,ar[4+f>>2]=l,ar[n>>2]=i,ar[4+n>>2]=s,ar[t>>2]=e,ar[4+t>>2]=r,function(A,e,r,i){A|=0,r|=0,i|=0;var f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0;if(l=0|ar[(e|=0)>>2],f=0|ar[(u=e+4|0)>>2],o=((0|ar[r>>2])-l<<3)+(0|ar[r+4>>2])-f|0,r=l,(0|o)<=0)return e=i+4|0,i=0|ar[i>>2],ar[A>>2]=i,i=A+4|0,A=0|ar[e>>2],ar[i>>2]=A;f?(n=-1>>>((n=32-f|0)-(l=(0|o)<(0|n)?o:n)|0)&-1<<f&ar[r>>2],f=0|ar[(c=i+4|0)>>2],r=(a=32-f|0)>>>0<l>>>0?a:l,t=0|ar[i>>2],f=ar[t>>2]&~(-1>>>(a-r|0)&-1<<f),ar[t>>2]=f,a=0|ar[c>>2],s=0|ar[u>>2],ar[t>>2]=(s>>>0<a>>>0?n<<a-s:n>>>(s-a|0))|f,f=(0|ar[c>>2])+r|0,t=t+(f>>>5<<2)|0,ar[i>>2]=t,f&=31,ar[c>>2]=f,0<(0|(a=l-r|0))&&(f=ar[t>>2]&~(-1>>>(32-a|0)),ar[t>>2]=f,ar[t>>2]=n>>>((0|ar[u>>2])+r|0)|f,ar[c>>2]=a,f=a),r=4+(0|ar[e>>2])|0,ar[e>>2]=r,o=o-l|0):f=0|ar[(c=f=i+4|0)>>2];if(a=32-f|0,n=-1<<f,31<(0|o)){for(t=~n,f=o;u=0|ar[r>>2],s=0|ar[i>>2],l=ar[s>>2]&t,ar[s>>2]=l,ar[s>>2]=u<<ar[c>>2]|l,s=s+4|0,ar[i>>2]=s,ar[s>>2]=ar[s>>2]&n|u>>>a,f=f+-32|0,r=4+(0|ar[e>>2])|0,ar[e>>2]=r,31<(0|f););o&=31}if((0|o)<=0)return e=c,s=0|ar[i>>2],ar[A>>2]=s,s=A+4|0,i=0|ar[e>>2],ar[s>>2]=i;if(t=ar[r>>2]&-1>>>(32-o|0),n=(0|a)<(0|o)?a:o,f=0|ar[i>>2],r=ar[f>>2]&~(-1<<ar[c>>2]&-1>>>(a-n|0)),ar[f>>2]=r,ar[f>>2]=r|t<<ar[c>>2],r=(0|ar[c>>2])+n|0,f=f+(r>>>5<<2)|0,ar[i>>2]=f,ar[c>>2]=31&r,(0|(r=o-n|0))<=0)return e=c,s=0|ar[i>>2],ar[A>>2]=s,s=A+4|0,i=0|ar[e>>2],ar[s>>2]=i;ar[f>>2]=ar[f>>2]&~(-1>>>(32-r|0))|t>>>n,ar[c>>2]=r,e=c,s=0|ar[i>>2],ar[A>>2]=s,s=A+4|0,i=0|ar[e>>2],ar[s>>2]=i}(a,f,n,t),ur=c;r=s-l+b|0,b=o,0<(0|r)&&(e=l?(d=-1>>>((d=32-l|0)-(e=(0|r)<(0|d)?r:d)|0)&-1<<l,ar[u>>2]=ar[u>>2]&~d|ar[b>>2]&d,r=r-e|0,u=u+((l=e+l|0)>>>5<<2)|0,l&=31,b=b+4|0):(l=0,o),Gu(0|u,0|e,(s=(0|r)/32|0)<<2|0),A=r-(s<<5)|0,e=r=u+(s<<2)|0,0<(0|A)&&(l=-1>>>(32-A|0),ar[r>>2]=ar[r>>2]&~l|ar[b+(s<<2)>>2]&l,l=A));ar[a>>2]=e,ar[a+4>>2]=l,ur=c}(o,r,i),e=0|ar[A>>2],ar[A>>2]=ar[o>>2],ar[o>>2]=e,o=0|ar[c>>2],ar[c>>2]=ar[a>>2],ar[a>>2]=o,a=0|ar[n>>2],ar[n>>2]=ar[f>>2],ar[f>>2]=a,0|e&&Vl(e);ur=t}(f,l>>>0<1073741823?c>>>0<u>>>0?u:c:2147483647),l=0|ar[n>>2],ar[b>>2]=l+a,u=c=0|ar[A>>2],e=0|ar[f>>2],0<(0|(l=(u+(l>>>5<<2)-c<<3)+(31&l)|0))?(Gu(0|e,0|c,(s=l>>>5)<<2|0),c=l-(s<<5)|0,e=l=e+(s<<2)|0,0<(0|c)?(k=-1>>>(32-c|0),ar[l>>2]=ar[l>>2]&~k|ar[u+(s<<2)>>2]&k):c=0):c=0,ar[i>>2]=e,ar[i+4>>2]=c,e=0|ar[(l=i)>>2],l=0|ar[l+4>>2],c=0|ar[A>>2],ar[A>>2]=ar[f>>2],ar[f>>2]=c,k=0|ar[n>>2],ar[n>>2]=ar[b>>2],ar[b>>2]=k,k=0|ar[t>>2],ar[t>>2]=ar[d>>2],ar[d>>2]=k,0|c&&Vl(c)):(l=(0|ar[A>>2])+(c>>>5<<2)|0,ar[n>>2]=e,e=l,l=31&c),a?(u=0==(0|l),c=e,r?(u||(e=a>>>0<(k=32-l|0)>>>0?a:k,ar[c>>2]=ar[c>>2]|-1>>>(k-e|0)&-1<<l,a=a-e|0,e=c=c+4|0),Vu(0|e,-1,(k=a>>>5)<<2|0),(a=a-(k<<5)|0)&&(ar[(e=c+(k<<2)|0)>>2]=ar[e>>2]|-1>>>(32-a|0)),void(ur=o)):(u||(e=a>>>0<(k=32-l|0)>>>0?a:k,ar[c>>2]=ar[c>>2]&~(-1>>>(k-e|0)&-1<<l),a=a-e|0,e=c=c+4|0),Vu(0|e,0,(k=a>>>5)<<2|0),(a=a-(k<<5)|0)&&(ar[(e=c+(k<<2)|0)>>2]=ar[e>>2]&~(-1>>>(32-a|0))),void(ur=o))):void(ur=o))}function sn(A){var e,r=0,i=0,f=0,n=0,t=0,o=0,a=0,c=0;if(ar[(A|=0)>>2]=5332,0|(r=0|ar[(e=A+92|0)>>2])){if((0|(i=0|ar[(c=A+96|0)>>2]))!=(0|r)){for(f=i;;){if(i=f+-16|0,ar[c>>2]=i,o=0|ar[(a=f+-12|0)>>2]){if((0|(i=0|ar[(t=f+-8|0)>>2]))==(0|o))i=o;else{for(;f=i+-12|0,ar[t>>2]=f,(0|(i=(n=0|ar[f>>2])?((0|ar[(i=i+-8|0)>>2])!=(0|n)&&(ar[i>>2]=n),Vl(n),0|ar[t>>2]):f))!=(0|o););i=0|ar[a>>2]}Vl(i),i=0|ar[c>>2]}if((0|i)==(0|r))break;f=i}r=0|ar[e>>2]}Vl(r)}if(0|(r=0|ar[A+64>>2])&&Vl(r),ar[A>>2]=3972,0|(r=0|ar[(n=A+44|0)>>2])){if((0|(i=0|ar[(t=A+48|0)>>2]))!=(0|r)){for(;f=i+-8|0,ar[t>>2]=f,(0|(i=(i=0|ar[i+-4>>2])?(Il(i),0|ar[t>>2]):f))!=(0|r););r=0|ar[n>>2]}Vl(r)}ar[A>>2]=3840,(i=0|ar[A+24>>2])&&((0|ar[(r=A+28|0)>>2])!=(0|i)&&(ar[r>>2]=i),Vl(i))}function bn(A,e){e|=0;var r,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0;r=(A|=0)+4|0,i=0|ar[A>>2],268435455<(f=(o=(0|ar[r>>2])-i>>4)+1|0)>>>0&&il(),i=(c=(0|ar[(l=A+8|0)>>2])-i|0)>>3,i=c>>4>>>0<134217727?i>>>0<f>>>0?f:i:268435455;do{if(i){if(!(268435455<i>>>0)){t=0|El(i<<4);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else t=0}while(0);if(a=t+(i<<4)|0,or[(n=f=t+(o<<4)|0)>>1]=0|or[e>>1],i=e+4|0,ar[t+(o<<4)+12>>2]=0,ar[t+(o<<4)+4>>2]=ar[i>>2],c=e+8|0,ar[t+(o<<4)+8>>2]=ar[c>>2],e=e+12|0,ar[t+(o<<4)+12>>2]=ar[e>>2],ar[e>>2]=0,ar[c>>2]=0,e=f+16|(ar[i>>2]=0),t=0|ar[A>>2],(0|(i=0|ar[r>>2]))==(0|t))i=n,f=c=t;else{for(;i=(u=i)+-16|0,or[f+-16>>1]=0|or[i>>1],c=u+-12|0,ar[(o=f+-12|0)>>2]=0,ar[(s=f+-8|0)>>2]=0,ar[f+-4>>2]=0,ar[o>>2]=ar[c>>2],o=u+-8|0,ar[s>>2]=ar[o>>2],u=u+-4|0,ar[f+-4>>2]=ar[u>>2],ar[u>>2]=0,ar[o>>2]=0,n=f=n+-16|(ar[c>>2]=0),(0|i)!=(0|t););i=n,c=0|ar[A>>2],f=0|ar[r>>2]}if(ar[A>>2]=i,ar[r>>2]=e,ar[l>>2]=a,(0|f)!=(0|(A=c))){a=f;do{if(0|(i=0|ar[(e=a+-12|0)>>2])){if((0|(f=0|ar[(o=a+-8|0)>>2]))!=(0|i)){for(;n=f+-12|0,ar[o>>2]=n,(0|(f=(t=0|ar[n>>2])?((0|ar[(f=f+-8|0)>>2])!=(0|t)&&(ar[f>>2]=t),Vl(t),0|ar[o>>2]):n))!=(0|i););i=0|ar[e>>2]}Vl(i)}a=a+-16|0}while((0|a)!=(0|A))}c&&Vl(A)}function dn(A,e){var r,i,f=0,n=0,t=0,o=0,a=0;if((e|=0)>>>0<=((t=0|ar[(r=(A|=0)+8|0)>>2])-(f=0|ar[(i=A+4|0)>>2])|0)>>>0)for(;f=1+((tr[f>>0]=0)|ar[i>>2])|0,ar[i>>2]=f,0!=(0|(e=e+-1|0)););else{for((0|(f=(o=f-(n=0|ar[A>>2])|0)+e|0))<0&&il(),a=(t=t-n|0)<<1,a=(n=(f=t>>>0<1073741823?a>>>0<f>>>0?f:a:2147483647)?0|El(f):0)+o|0,o=n+f|0,f=t=a;t=f=t+1|(tr[f>>0]=0),0!=(0|(e=e+-1|0)););e=0|ar[A>>2],f=a+(0-(n=(0|ar[i>>2])-e|0))|0,0<(0|n)&&Eu(0|f,0|e,0|n),ar[A>>2]=f,ar[i>>2]=t,ar[r>>2]=o,e&&Vl(e)}}function kn(A,e){e|=0;var r,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0;r=(A|=0)+4|0,i=0|ar[A>>2],357913941<(f=(o=((0|ar[r>>2])-i|0)/12|0)+1|0)>>>0&&il(),i=(a=((0|ar[(c=A+8|0)>>2])-i|0)/12|0)<<1,i=a>>>0<178956970?i>>>0<f>>>0?f:i:357913941;do{if(i){if(!(357913941<i>>>0)){t=0|El(12*i|0);break}Fl(c=0|C(8),37845),ar[c>>2]=16004,I(0|c,3616,283)}else t=0}while(0);if(n=f=t+(12*o|0)|0,a=t+(12*i|0)|0,ar[t+(12*o|0)+8>>2]=0,ar[f>>2]=ar[e>>2],i=e+4|0,ar[t+(12*o|0)+4>>2]=ar[i>>2],l=e+8|0,ar[t+(12*o|0)+8>>2]=ar[l>>2],ar[l>>2]=0,ar[i>>2]=0,o=f+12|(ar[e>>2]=0),t=0|ar[A>>2],(0|(i=0|ar[r>>2]))==(0|t))i=n,f=e=t;else{for(;i=(e=i)+-12|0,ar[(l=f+-12|0)>>2]=0,ar[(u=f+-8|0)>>2]=0,ar[f+-4>>2]=0,ar[l>>2]=ar[i>>2],l=e+-8|0,ar[u>>2]=ar[l>>2],e=e+-4|0,ar[f+-4>>2]=ar[e>>2],ar[e>>2]=0,ar[l>>2]=0,n=f=n+-12|(ar[i>>2]=0),(0|i)!=(0|t););i=n,e=0|ar[A>>2],f=0|ar[r>>2]}if(ar[A>>2]=i,ar[r>>2]=o,ar[c>>2]=a,(0|f)!=(0|(t=e)))for(;0|(n=0|ar[(f=(i=f)+-12|0)>>2])&&((0|ar[(i=i+-8|0)>>2])!=(0|n)&&(ar[i>>2]=n),Vl(n)),(0|f)!=(0|t););e&&Vl(e)}function hn(A){var e,r=0,i=0,f=0,n=0,t=0,o=0,a=0;if(ar[(A|=0)>>2]=4968,0|(r=0|ar[(e=A+56|0)>>2])){if((0|(i=0|ar[(a=A+60|0)>>2]))!=(0|r)){for(;o=i+-64|0,ar[a>>2]=o,0|(f=0|ar[i+-12>>2])&&((0|(t=0|ar[(n=i+-8|0)>>2]))!=(0|f)&&(ar[n>>2]=t+(~((t+-4-f|0)>>>2)<<2)),Vl(f)),ar[o>>2]=3840,0|(f=0|ar[i+-40>>2])&&((0|ar[(i=i+-36|0)>>2])!=(0|f)&&(ar[i>>2]=f),Vl(f)),(0|(i=0|ar[a>>2]))!=(0|r););r=0|ar[e>>2]}Vl(r)}if(ar[A>>2]=3972,0|(r=0|ar[(n=A+44|0)>>2])){if((0|(i=0|ar[(t=A+48|0)>>2]))!=(0|r)){for(;f=i+-8|0,ar[t>>2]=f,(0|(i=(i=0|ar[i+-4>>2])?(Il(i),0|ar[t>>2]):f))!=(0|r););r=0|ar[n>>2]}Vl(r)}ar[A>>2]=3840,(i=0|ar[A+24>>2])&&((0|ar[(r=A+28|0)>>2])!=(0|i)&&(ar[r>>2]=i),Vl(i))}function wn(A,e){e|=0;var r=0,i=0,f=0,n=0,t=0,o=0;ar[(A|=0)>>2]=3840,f=e+8|0,ar[(i=A+8|0)>>2]=ar[f>>2],ar[i+4>>2]=ar[f+4>>2],ar[i+8>>2]=ar[f+8>>2],ar[i+12>>2]=ar[f+12>>2],f=e+24|0,ar[(i=A+24|0)>>2]=0,ar[(o=A+28|0)>>2]=0,(ar[A+32>>2]=0)|(r=(0|ar[(n=e+28|0)>>2])-(0|ar[f>>2])|0)&&((0|r)<0&&il(),t=0|El(r),ar[o>>2]=t,ar[i>>2]=t,ar[A+32>>2]=t+r,i=0|ar[f>>2],0<(0|(r=(0|ar[n>>2])-i|0))&&(Eu(0|t,0|i,0|r),ar[o>>2]=t+r)),t=0|ar[(n=e+36|0)+4>>2],ar[(o=A+36|0)>>2]=ar[n>>2],ar[o+4>>2]=t,ar[A+48>>2]=ar[e+48>>2],ln(A+52|0,e+52|0)}function vn(A,e){e|=0;var r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0;i=(A|=0)+4|0,f=0|ar[A>>2],67108863<(n=(t=(0|ar[i>>2])-f>>6)+1|0)>>>0&&il(),f=(c=(0|ar[(l=A+8|0)>>2])-f|0)>>5,f=c>>6>>>0<33554431?f>>>0<n>>>0?n:f:67108863;do{if(f){if(!(67108863<f>>>0)){n=0|El(f<<6);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else n=0}while(0);if(r=n+(f<<6)|0,wn(t=o=n+(t<<6)|0,e),a=o+64|0,e=0|ar[A>>2],(0|(f=0|ar[i>>2]))==(0|e))f=t,n=c=e;else{for(n=o;wn(n+-64|0,f=f+-64|0),t=n=t+-64|0,(0|f)!=(0|e););f=t,c=0|ar[A>>2],n=0|ar[i>>2]}if(ar[A>>2]=f,ar[i>>2]=a,ar[l>>2]=r,(0|n)!=(0|(a=c)))for(o=n;o=(e=o)+-64|0,0|(f=0|ar[e+-12>>2])&&((0|(t=0|ar[(n=e+-8|0)>>2]))!=(0|f)&&(ar[n>>2]=t+(~((t+-4-f|0)>>>2)<<2)),Vl(f)),ar[o>>2]=3840,0|(n=0|ar[e+-40>>2])&&((0|ar[(f=e+-36|0)>>2])!=(0|n)&&(ar[f>>2]=n),Vl(n)),(0|o)!=(0|a););c&&Vl(c)}function gn(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4716,ar[(r=A+16|0)>>2]=4744,0|(i=0|ar[A+84>>2])&&((0|ar[(f=A+88|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i)),(0|tr[(i=A+72|0)+11>>0])<0&&Vl(0|ar[i>>2]),ar[r>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(;n=f+-8|0,ar[t>>2]=n,(0|(f=(f=0|ar[f+-4>>2])?(Il(f),0|ar[t>>2]):n))!=(0|i););i=0|ar[e>>2]}Vl(i)}ar[r>>2]=3840,(i=0|ar[A+40>>2])&&((0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i)),vl()}function mn(A){var e=0,r=0,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4632,0|(e=0|ar[(n=A+56|0)>>2])){if((0|(r=0|ar[(t=A+60|0)>>2]))!=(0|e)){for(i=r;r=i+-16|0,ar[t>>2]=r,(f=0|ar[i+-12>>2])&&((0|(i=0|ar[(r=i+-8|0)>>2]))!=(0|f)&&(ar[r>>2]=i+(~((i+-4-f|0)>>>2)<<2)),Vl(f),r=0|ar[t>>2]),(0|r)!=(0|e);)i=r;e=0|ar[n>>2]}Vl(e)}if(ar[A>>2]=3972,0|(e=0|ar[(f=A+44|0)>>2])){if((0|(r=0|ar[(n=A+48|0)>>2]))!=(0|e)){for(;i=r+-8|0,ar[n>>2]=i,(0|(r=(r=0|ar[r+-4>>2])?(Il(r),0|ar[n>>2]):i))!=(0|e););e=0|ar[f>>2]}Vl(e)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(e=A+28|0)>>2])!=(0|r)&&(ar[e>>2]=r),Vl(r))}function pn(A,e){e|=0;var r,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0;r=(A|=0)+4|0,i=0|ar[A>>2],268435455<(f=(o=(0|ar[r>>2])-i>>4)+1|0)>>>0&&il(),i=(a=(0|ar[(c=A+8|0)>>2])-i|0)>>3,i=a>>4>>>0<134217727?i>>>0<f>>>0?f:i:268435455;do{if(i){if(!(268435455<i>>>0)){t=0|El(i<<4);break}Fl(c=0|C(8),37845),ar[c>>2]=16004,I(0|c,3616,283)}else t=0}while(0);if(a=t+(i<<4)|0,ar[(n=f=t+(o<<4)|0)>>2]=ar[e>>2],function(A,e){e|=0;var r,i,f,n,t=0;if(ar[(A|=0)>>2]=0,ar[(n=A+4|0)>>2]=0,ar[A+8>>2]=0,t=(0|ar[(f=e+4|0)>>2])-(0|ar[e>>2])|0,!(r=t>>2))return;1073741823<r>>>0&&il();if(i=0|El(t),ar[n>>2]=i,ar[A>>2]=i,ar[A+8>>2]=i+(r<<2),A=0|ar[e>>2],(0|(t=(0|ar[f>>2])-A|0))<=0)return;Eu(0|i,0|A,0|t),ar[n>>2]=i+(t>>>2<<2)}(t+(o<<4)+4|0,e+4|0),e=f+16|0,t=0|ar[A>>2],(0|(i=0|ar[r>>2]))==(0|t))f=n,i=o=t;else{for(;i=(u=i)+-16|0,ar[f+-16>>2]=ar[i>>2],o=u+-12|0,ar[(l=f+-12|0)>>2]=0,ar[(s=f+-8|0)>>2]=0,ar[f+-4>>2]=0,ar[l>>2]=ar[o>>2],l=u+-8|0,ar[s>>2]=ar[l>>2],u=u+-4|0,ar[f+-4>>2]=ar[u>>2],ar[u>>2]=0,ar[l>>2]=0,n=f=n+-16|(ar[o>>2]=0),(0|i)!=(0|t););f=n,o=0|ar[A>>2],i=0|ar[r>>2]}if(ar[A>>2]=f,ar[r>>2]=e,ar[c>>2]=a,(0|i)!=(0|(e=o)))for(;0|(f=0|ar[i+-12>>2])&&((0|(t=0|ar[(n=i+-8|0)>>2]))!=(0|f)&&(ar[n>>2]=t+(~((t+-4-f|0)>>>2)<<2)),Vl(f)),(0|(i=i+-16|0))!=(0|e););o&&Vl(o)}function yn(A,e){e|=0;var r,i,f,n,t,o,a=0,c=0,l=0,u=0;n=(A|=0)+4|0,u=t=0|ar[A>>2],1073741823<(a=1+(i=(o=(0|ar[n>>2])-t|0)>>2)|0)>>>0&&il(),c=(l=(0|ar[(f=A+8|0)>>2])-t|0)>>1,c=l>>2>>>0<536870911?c>>>0<a>>>0?a:c:1073741823;do{if(c){if(!(1073741823<c>>>0)){l=0|El(c<<2);break}Fl(u=0|C(8),37845),ar[u>>2]=16004,I(0|u,3616,283)}else l=0}while(0);r=l+(i<<2)|0,a=lr[e>>1]|lr[e+2>>1]<<16,or[r>>1]=a,or[2+r>>1]=a>>>16,a=r+(0-i<<2)|0,0<(0|o)&&Eu(0|a,0|u,0|o),ar[A>>2]=a,ar[n>>2]=4+r,ar[f>>2]=l+(c<<2),t&&Vl(u)}function Zn(A,e,r,i,f,n,t,o,a,c,l){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0;var u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_,F,N,R,Y,J,D,Q,T,M,S,U=0,O=0,H=0,x=0,j=0,z=0,P=0,L=0,K=0,q=0,$=0,AA=0,eA=0,rA=0,iA=0,fA=0,nA=0,tA=0,oA=0,aA=0,cA=0,lA=0,uA=0,sA=0;if(ur=(S=ur)+144|0,Q=S+8|0,_=(X=S)+136|0,U=0|ar[(F=(A|=0)+10352|0)>>2],iA=(0|sr(U,r))+e|0,fA=0|ar[(N=A+10340|0)>>2],H=f<<1,x=(0|cr[fA+(24*iA|0)+4>>0])>>>H&3)if(M=(T=1<<(P=0|ar[((O=0==(0|f))?A+5760|0:A+5768|0)>>2]))-1|0,D=0|sr(n,e),J=0|sr(t,r),B=0|ar[(O?A+24|0:A+32|0)>>2],E=0|ar[(O?A+28|0:A+36|0)>>2],i=D>>(e=0|ar[(G=A+10348|0)>>2]),e=J>>e,-1<(0|i)&(0|i)<(0|U)||br(41808,41845,118,41865),(0|e)<=-1&&br(41869,41845,119,41865),(0|e)>=(0|ar[(V=A+10356|0)>>2])&&br(41869,41845,119,41865),oA=fA+(24*((0|sr(e,U))+i|0)|0)+2|0,C=A+52|0,oA=0|ar[800+(0|ar[(0|ar[(Z=A+48|0)>>2])+(lr[oA>>1]<<2)>>2])>>2],W=0|ar[A+5820>>2],uA=O?lA=0:(lA=(0|ar[A+5780>>2])-1|0,(0|ar[A+5784>>2])-1|0),y=(tA=0|ar[A+5804>>2])-lA|0,tA=tA-uA|0,Y=(0|B)<(D+n|0)?B-D|0:n,R=(0|E)<(J+t|0)?E-J|0:t,I=0!=(0|tr[fA+(24*iA|0)+22>>0]),2==(0|x)){switch((0|cr[fA+(24*iA|0)+5>>0])>>>H&3){case 0:j=z=0,aA=-1,cA=1;break;case 1:j=-(z=1),cA=aA=0;break;case 2:aA=j=-(z=1),cA=1;break;case 3:j=-(z=1),cA=-(aA=1)}if(ar[Q>>2]=aA,ar[4+Q>>2]=cA,ar[X>>2]=j,ar[X+4>>2]=z,p=0|sr(j,a),m=0-z&a,tr[_>>0]=0|tr[fA+(24*iA|0)+9+(f<<2)>>0],tr[1+_>>0]=0|tr[fA+(24*iA|0)+9+(f<<2)+1>>0],tr[2+_>>0]=0,tr[3+_>>0]=0|tr[fA+(24*iA|0)+9+(f<<2)+2>>0],tr[4+_>>0]=0|tr[fA+(24*iA|0)+9+(f<<2)+3>>0],(0|R)<=0)ur=S;else{u=0<(0|Y),s=A+5480|0,b=A+10368|0,d=A+10372|0,k=A+10376|0,h=A+10360|0,w=Y+-1|0,v=R+-1|0,g=A+5977|0,$=A+10308|0,AA=(0|sr(J>>tA,W))+(D>>y)|0,K=0;A:for(;;){if(rA=o+((0|sr(eA=K+J|0,a))+D)|0,iA=c+((0|sr(eA,l))+D)|0,u){fA=eA<<uA,f=0==(0|K),nA=(0|K)==(0|v),q=0;do{if(I&&0!=(0|tr[s>>0])){if(i=q+D<<lA>>(e=0|ar[b>>2]),e=fA>>e,(0|i)<=-1){sA=23;break A}if((0|(r=0|ar[d>>2]))<=(0|i)){sA=23;break A}if((0|e)<=-1){sA=26;break A}if((0|e)>=(0|ar[k>>2])){sA=26;break A}A=(0|ar[h>>2])+(3*((0|sr(r,e))+i|0)|0)|0,1024&(cr[A>>0]|cr[A+1>>0]<<8)||(sA=28)}else sA=28;e:do{if(28==(0|sA)){if(i=(A=(L=q+D|(sA=0))<<lA)>>(e=0|ar[b>>2]),e=fA>>e,(0|i)<=-1){sA=30;break A}if((0|(r=0|ar[d>>2]))<=(0|i)){sA=30;break A}if((0|e)<=-1){sA=33;break A}if((0|e)>=(0|ar[k>>2])){sA=33;break A}if(P=(0|ar[h>>2])+(3*((0|sr(r,e))+i|0)|0)|0,!(2048&(cr[P>>0]|cr[P+1>>0]<<8))){if(nA|(0|q)==(0|w)|f|0==(0|q)){t=0;do{if(H=(0|ar[Q+(t<<2)>>2])+L|0,!((0|(x=(0|ar[X+(t<<2)>>2])+eA|0))<(0|E)&(0|H)<(0|B)&-1<(x|H|0)))break e;if(e=x<<uA>>(n=0|ar[G>>2]),(0|(i=H<<lA>>n))<=-1){sA=39;break A}if((0|(j=0|ar[F>>2]))<=(0|i)){sA=39;break A}if((0|e)<=-1){sA=42;break A}if((0|(z=0|ar[V>>2]))<=(0|e)){sA=42;break A}if(i=(P=0|ar[N>>2])+(24*((0|sr(j,e))+i|0)|0)+2|0,i=0|lr[i>>1],O=U=0|ar[Z>>2],i>>>0>=(0|ar[C>>2])-U>>2>>>0){sA=59;break A}if(!(e=0|ar[O+(i<<2)>>2])){sA=59;break A}if((0|(r=0|ar[e+800>>2]))<(0|oA)){if(i=fA>>n,!(-1<(0|(U=A>>n))&(0|U)<(0|j))){sA=47;break A}if(!(-1<(0|i)&(0|i)<(0|z))){sA=49;break A}if(P=P+(24*((0|sr(j,i))+U|0)|0)+2|0,!(0|tr[764+(0|ar[O+(lr[P>>1]<<2)>>2])>>0]))break e}if((0|oA)<(0|r)&&0==(0|tr[e+764>>0]))break e;if(0==(0|tr[g>>0])&&(z=(0|sr(x>>tA,W))+(H>>y)|0,P=0|ar[$>>2],(0|ar[P+(z<<2)>>2])!=(0|ar[P+(AA<<2)>>2])))break e;t=t+1|0}while((0|t)<2)}P=(A=0|cr[rA+q>>0])-(0|cr[rA+(q+p+aA)>>0])|0,L=A-(0|cr[rA+(q+m+cA)>>0])|0,A=(0|tr[((0|P)<0?1:0|P?3:2)+((0|L)<0?-1:0!=(0|L)&1)+_>>0])+A|0,tr[iA+q>>0]=(0|A)<0?0:255&((0|A)<(0|T)?A:M)}}}while(0);q=q+1|0}while((0|q)<(0|Y))}if((0|R)<=(0|(K=K+1|0))){sA=59;break}}if(23==(0|sA))br(41808,41845,118,41865);else if(26==(0|sA))br(41869,41845,119,41865);else if(30==(0|sA))br(41808,41845,118,41865);else if(33==(0|sA))br(41869,41845,119,41865);else if(39==(0|sA))br(41808,41845,118,41865);else if(42==(0|sA))br(41869,41845,119,41865);else if(47==(0|sA))br(41808,41845,118,41865);else if(49==(0|sA))br(41869,41845,119,41865);else if(59==(0|sA))return void(ur=S)}}else{for(i=0|cr[fA+(24*iA|0)+6+f>>0],r=(e=Q)+128|0;(0|(e=e+4|(ar[e>>2]=0)))<(0|r););ar[Q+((31&i)<<2)>>2]=1,ar[Q+((i+1&31)<<2)>>2]=2,ar[Q+((i+2&31)<<2)>>2]=3,ar[Q+((i+3&31)<<2)>>2]=4,rA=P+-5|0,i=0<(0|R);A:do{if(I){if(i){K=0<(0|Y),q=A+5480|0,$=A+10368|0,AA=A+10372|0,eA=A+10376|0,L=A+10360|0,A=7<(0|rA),P=0;e:for(;;){r:do{if(K){if(z=(H=P+J|0)<<uA,t=0|sr(H,a),H=0|sr(H,l),A)for(H=0==(0|tr[q>>0]),j=-1<(0|(x=z>>(t=0|ar[$>>2]))),n=-1<(0|(O=z>>t)),U=0;;){if(i=U+D<<lA,H)sA=79;else{if((0|(e=i>>t))<=-1){sA=88;break e}if((0|(r=0|ar[AA>>2]))<=(0|e)){sA=88;break e}if(!n){sA=91;break e}if((0|O)>=(0|ar[eA>>2])){sA=91;break e}cA=(0|ar[L>>2])+(3*((0|sr(r,O))+e|0)|0)|0,1024&(cr[cA>>0]|cr[cA+1>>0]<<8)||(sA=79)}if(79==(0|sA)){if(((sA=0)|(i>>=t))<=-1){sA=95;break e}if((0|i)>=(0|ar[AA>>2])){sA=95;break e}if(!j){sA=98;break e}if((0|x)>=(0|ar[eA>>2])){sA=98;break e}}if((0|Y)<=(0|(U=U+1|0)))break r}else n=0;do{if(i=(x=n+D|0)<<lA,O=0|ar[$>>2],0|tr[q>>0]){if(r=z>>O,(0|(e=i>>O))<=-1){sA=88;break e}if((0|(U=0|ar[AA>>2]))<=(0|e)){sA=88;break e}if((0|r)<=-1){sA=91;break e}if((0|r)>=(0|ar[eA>>2])){sA=91;break e}cA=(0|ar[L>>2])+(3*((0|sr(U,r))+e|0)|0)|0,1024&(cr[cA>>0]|cr[cA+1>>0]<<8)||(sA=93)}else sA=93;do{if(93==(0|sA)){if(r=i>>O,i=z>>O,((sA=0)|r)<=-1){sA=95;break e}if((0|(e=0|ar[AA>>2]))<=(0|r)){sA=95;break e}if((0|i)<=-1){sA=98;break e}if((0|i)>=(0|ar[eA>>2])){sA=98;break e}if(cA=(0|ar[L>>2])+(3*((0|sr(e,i))+r|0)|0)|0,2048&(cr[cA>>0]|cr[cA+1>>0]<<8))break;if(i=0|cr[o+(x+t)>>0],(0|(e=0|ar[Q+(i>>>rA<<2)>>2]))<=0)break;cA=(0|tr[e+-1+(fA+(24*iA|0)+9+(f<<2))>>0])+i|0,tr[c+(x+H)>>0]=(0|cA)<0?0:255&((0|cA)<(0|T)?cA:M)}}while(0);n=n+1|0}while((0|n)<(0|Y))}}while(0);if((0|R)<=(0|(P=P+1|0)))break A}88==(0|sA)?br(41808,41845,118,41865):91==(0|sA)?br(41869,41845,119,41865):95==(0|sA)?br(41808,41845,118,41865):98==(0|sA)&&br(41869,41845,119,41865)}}else if(i&&(L=7<(0|rA),0<(0|Y))){e=0;do{if(r=0|sr(U=e+J|0,a),U=0|sr(U,l),!L)for(i=0;n=0|cr[o+((O=i+D|0)+r)>>0],0<(0|(t=0|ar[Q+(n>>>rA<<2)>>2]))&&(sA=(0|tr[t+-1+(fA+(24*iA|0)+9+(f<<2))>>0])+n|0,tr[c+(O+U)>>0]=(0|sA)<0?0:255&((0|sA)<(0|T)?sA:M)),(0|(i=i+1|0))<(0|Y););e=e+1|0}while((0|e)<(0|R))}}while(0);ur=S}else ur=S}function Cn(A,e){A|=0;var r=0;switch(0|(e|=0)){case 0:e=6140,r=4;break;case 1:e=6168,r=4;break;case 2:e=6112,r=4;break;default:e=0}return 4==(0|r)&&(e=0|ar[e+(A<<2)>>2]),0|e}function Wn(A,e){e|=0;var r,i,f,n,t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_=0,F=0,N=0,R=0,Y=0,J=0,D=0,Q=0,T=0,M=0,S=0,U=0,O=0,H=0,x=0,j=0,z=0,P=0;if(ur=(X=ur)+208|0,j=X+24|0,V=X+8|0,t=(G=X)+40|0,w=X+192|0,132!=(0|ar[(A|=0)>>2]))return ur=X,(j=0)|j;if(!(0|tr[512+(0|ar[e+10332>>2])>>0]))return ur=X,(j=0)|j;if(!(0|tr[e+100>>0]))return ur=X,(j=0)|j;r=0==(0|ar[e+1240>>2])?1:3,i=e+32|0,f=e+24|0,n=e+36|0,o=e+28|0,a=e+40|0,c=e+44|0,l=A+8|0,u=e+5760|0,s=e+5768|0,b=1+w|0,d=2+w|0,k=3+w|0,h=4+w|0,v=5+w|0,g=6+w|0,m=7+w|0,p=8+w|0,y=9+w|0,Z=10+w|0,C=11+w|0,W=12+w|0,I=13+w|0,B=14+w|0,E=15+w|0,x=0;A:for(;;){switch(S=0|ar[((F=0==(0|x))?f:i)>>2],O=0|ar[(F?o:n)>>2],U=0|ar[e+4+(x<<2)>>2],M=0|ar[(F?a:c)>>2],0|ar[l>>2]){case 0:_=0|ar[(F?u:s)>>2],Tt(t);e:do{if(0<(0|O)){if(D=S<<1,Q=(0|S)<0?-1:D,(0|_)<=8)for(_=0;;)if(Mt(t,U+(0|sr(_,M))|0,S),(0|O)<=(0|(_=_+1|0))){_=0;break e}if(0<(0|S))_=J=0;else for(_=F=0;;)if(Mt(t,N=_||(_=0|Gl(Q)),D),(0|O)<=(0|(F=F+1|0)))break e;do{for(N=_||(_=0|Gl(Q)),R=0|sr(J,M),Y=_,F=0;z=U+(F+R<<1)|0,tr[N+(T=F<<1)>>0]=or[z>>1],tr[Y+(1|T)>>0]=(0|lr[z>>1])>>>8,(0|(F=F+1|0))!=(0|S);)N=Y;Mt(t,Y,D),J=J+1|0}while((0|J)<(0|O))}else _=0}while(0);if(Qo(w,t),0|_&&Xl(_),(0|tr[w>>0])!=(0|tr[A+12+(x<<4)>>0])){H=22;break A}if((0|tr[b>>0])!=(0|tr[A+12+(x<<4)+1>>0])){H=22;break A}if((0|tr[d>>0])!=(0|tr[A+12+(x<<4)+2>>0])){H=22;break A}if((0|tr[k>>0])!=(0|tr[A+12+(x<<4)+3>>0])){H=22;break A}if((0|tr[h>>0])!=(0|tr[A+12+(x<<4)+4>>0])){H=22;break A}if((0|tr[v>>0])!=(0|tr[A+12+(x<<4)+5>>0])){H=22;break A}if((0|tr[g>>0])!=(0|tr[A+12+(x<<4)+6>>0])){H=22;break A}if((0|tr[m>>0])!=(0|tr[A+12+(x<<4)+7>>0])){H=22;break A}if((0|tr[p>>0])!=(0|tr[A+12+(x<<4)+8>>0])){H=22;break A}if((0|tr[y>>0])!=(0|tr[A+12+(x<<4)+9>>0])){H=22;break A}if((0|tr[Z>>0])!=(0|tr[A+12+(x<<4)+10>>0])){H=22;break A}if((0|tr[C>>0])!=(0|tr[A+12+(x<<4)+11>>0])){H=22;break A}if((0|tr[W>>0])!=(0|tr[A+12+(x<<4)+12>>0])){H=22;break A}if((0|tr[I>>0])!=(0|tr[A+12+(x<<4)+13>>0])){H=22;break A}if((0|tr[B>>0])!=(0|tr[A+12+(x<<4)+14>>0])){H=22;break A}if((0|tr[E>>0])==(0|tr[A+12+(x<<4)+15>>0]))break;H=22;break A;case 1:e:do{if(0<(0|O)){if(Q=S<<1,T=(0|S)<0?-1:Q,_=0<(0|S),(0|ar[(F?u:s)>>2])<=8){if(!_){_=7439,H=39;break}for(F=0,_=7439;;){for(R=U+(0|sr(F,M))|0,N=0;H=65535&_,z=cr[R+N>>0]^H>>>8,_=((z^=z>>>4)|H<<8)^z<<5^z<<12,(0|(N=N+1|0))!=(0|S););if((0|(F=F+1|0))==(0|O)){H=39;break e}}}if(_){_=7439,F=D=0;do{for(R=F||(F=0|Gl(T)),Y=0|sr(D,M),J=F,N=0;;){if(P=U+(N+Y<<1)|0,tr[R+(z=N<<1)>>0]=or[P>>1],tr[J+(1|z)>>0]=(0|lr[P>>1])>>>8,(0|(N=N+1|0))==(0|S)){N=0;break}R=J}for(;z=65535&_,P=cr[J+N>>0]^z>>>8,_=((P^=P>>>4)|z<<8)^P<<5^P<<12,(0|(N=N+1|0))<(0|Q););D=D+1|0}while((0|D)!=(0|O))}else{for(F=_=0;F=F||0|Gl(T),(0|(_=_+1|0))!=(0|O););_=7439}_&=65535,F&&Xl(F)}else _=7439,H=39}while(0);if(39==(0|H)&&(H=0,_&=65535),(0|_)==(0|(F=0|lr[A+60+(x<<1)>>1])))break;H=43;break A;case 2:if(_=0<(0|S)&0<(0|O),(0|ar[(F?u:s)>>2])<9)if(_){_=F=0;do{for(R=F>>>8^F,Y=0|sr(F,M),N=0;_=(255&(R^N^N>>>8)^cr[U+(N+Y)>>0])+_|0,(0|(N=N+1|0))!=(0|S););F=F+1|0}while((0|F)!=(0|O))}else _=0;else if(_){_=N=0;do{for(R=N>>>8^N,Y=0|sr(N,M),F=0;_=(P=255&(R^F^F>>>8))+_+(P^cr[U+(F+Y)>>0])|0,(0|(F=F+1|0))!=(0|S););N=N+1|0}while((0|N)!=(0|O))}else _=0;if((0|_)==(0|(F=0|ar[A+68+(x<<2)>>2])))break;H=54;break A}if((0|r)<=(0|(x=x+1|0))){_=0,H=71;break}}return 22==(0|H)?(P=0|ar[2255],ar[G>>2]=ar[e+92>>2],xa(P,32410,G),ur=X,0|(P=5)):43==(0|H)?(P=0|ar[2255],z=0|ar[e+92>>2],ar[V>>2]=F,ar[4+V>>2]=_,ar[8+V>>2]=z,xa(P,32453,V),ur=X,0|(P=5)):54==(0|H)?(P=0|ar[2255],z=0|ar[e+92>>2],ar[j>>2]=F,ar[j+4>>2]=_,ar[j+8>>2]=z,xa(P,32453,j),ur=X,0|(P=5)):71==(0|H)?(ur=X,0|_):0}function In(A){var e,r,i,f=0,n=0,t=0,o=0,a=0;if(e=(o=0|ar[(A|=0)+18596>>2])+5932|0,n=0|ar[(r=A+18600|0)>>2],!(0|tr[n+12>>0]))return 3<=(f=0|ar[n+796>>2])>>>0&&br(32537,32568,1508,32577),Ct(A+18580|0,f,0|ar[n+792>>2]),tr[(A=A+18588|0)>>0]=0,tr[A+1>>0]=0,tr[A+2>>0]=0,(tr[A+3>>0]=0)|(A=1);if(t=0|ar[n+16>>2],f=0|lr[(0|ar[o+10340>>2])+(24*(0|ar[(0|ar[o+10284>>2])+((0|ar[(0|ar[o+10272>>2])+(t<<2)>>2])-1<<2)>>2])|0)+2>>1],n=0|ar[o+48>>2],f>>>0>=(0|ar[o+52>>2])-n>>2>>>0)return(A=0)|A;if(i=0|ar[n+(f<<2)>>2],0|Yo(e,(0|t)%(0|(o=0|ar[o+5820>>2]))|0,(0|t)/(0|o)|0))return f=0|ar[r>>2],3<=(n=0|ar[f+796>>2])>>>0&&br(32537,32568,1508,32577),Ct(A+18580|0,n,0|ar[f+792>>2]),tr[(A=A+18588|0)>>0]=0,tr[A+1>>0]=0,tr[A+2>>0]=0,(tr[A+3>>0]=0)|(A=1);if(t=0|ar[A+18604>>2],n=0|ar[A+18608>>2],o=0|ar[t+10632>>2],!(1<(t=(0|ar[t+10636>>2])-o>>2)>>>0))return(A=0)|A;for(f=1;(0|ar[o+(f<<2)>>2])!=(0|n);)if(t>>>0<=(f=f+1|0)>>>0){f=0,a=16;break}return 16==(0|a)?0|f:(f=0|ar[o+(f+-1<<2)>>2])?(Pn(f+44|0,0|ar[f+124>>2]),0|tr[1340+i>>0]?(Et(A+18580|0,a=1332+i|0),It(a),0|(A=1)):(A=0)|A):(A=0)|A}function Bn(A,e,r){e|=0,r|=0;var i,f,n,t,o,a,c,l,u,s,b,d,k,h,w,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0;g=0|ar[(G=(A|=0)+18596|0)>>2],h=0|ar[g+5820>>2],v=0|ar[(w=A+12|0)>>2],k=g+5965|0;do{if(!r&&0<(0|v)&0!=(0|tr[k>>0])&&0==(0|ar[A+8>>2])){if(r=v+-1|0,1<(0|h)){if(E=0|ar[(v=A+18604|0)>>2],r>>>0<(0|ar[E+10680>>2])-(0|ar[E+10676>>2])>>3>>>0){ho(g,0|ar[A+18612>>2],1,r,1),Et(A+18580|0,(0|ar[10676+(0|ar[v>>2])>>2])+((0|ar[w>>2])-1<<3)|0),It((0|ar[10676+(0|ar[v>>2])>>2])+((0|ar[w>>2])-1<<3)|0);break}return 0|(G=2)}if(ho(g,0|ar[A+18612>>2],0,r,1),r=0|ar[A+18600>>2],(v=0|ar[r+796>>2])>>>0<3){Ct(A+18580|0,v,0|ar[r+792>>2]),tr[(E=A+18588|0)>>0]=0,tr[E+1>>0]=0,tr[E+2>>0]=0,tr[E+3>>0]=0;break}br(32537,32568,1508,32577)}}while(0);for(f=A+8|0,n=h-1|0,t=A+18612|0,o=A+18580|0,a=A+18584|0,c=g+5828|0,l=A+18604|0,E=A+18556|0,u=g+5935|0,s=A+18600|0,b=A+4|0,d=g+5966|0,i=g+10296|0,I=0|ar[w>>2],y=0|ar[f>>2],B=0|ar[G>>2];;){if((v=(0|sr(I,h))+y|0)>>>0>=(0|ar[B+10276>>2])-(0|ar[B+10272>>2])>>2>>>0){r=2,v=35;break}if((0|y)>=(0|ar[B+5820>>2])){r=2,v=35;break}if((0|I)>=(0|ar[B+5828>>2])){r=2,v=35;break}if((0|y)<(0|n)&0<(0|I)&e&&ho(B,0|ar[t>>2],y+1|0,I+-1|0,1),!(0|ar[a>>2])){r=2,v=35;break}if(En(A),1==(0|y)&0!=(0|tr[k>>0])&&(0|I)<((0|ar[c>>2])-1|0)){if(B=0|ar[l>>2],r=0|ar[B+10676>>2],(0|ar[B+10680>>2])-r>>3>>>0<=I>>>0){r=2,v=35;break}Et(r+(I<<3)|0,o),Bt((0|ar[10676+(0|ar[l>>2])>>2])+(I<<3)|0)}if((C=0!=(0|(Z=0|ht(E))))&&0|tr[u>>0]&&(Et(1332+(0|ar[s>>2])|0,o),Bt(1332+(0|ar[s>>2])|0),tr[1340+(0|ar[s>>2])>>0]=1),Ln((0|ar[10524+(0|ar[G>>2])>>2])+(80*v|0)|0,1),W=0|ar[w>>2],p=(m=0|ar[b>>2])+1|0,ar[b>>2]=p,B=0|ar[G>>2],r=0|ar[B+5836>>2],v=0|ar[B+5820>>2],(0|p)<(0|r)?r=(g=0)|ar[(0|ar[B+10284>>2])+(p<<2)>>2]:g=1,I=(0|r)/(0|v)|0,y=(0|r)%(0|v)|0,ar[A>>2]=r,ar[f>>2]=y,ar[w>>2]=I,0==(0|Z)&g){v=27;break}if(C){r=0,v=35;break}if((r=0|tr[d>>0]?(r=0|ar[i>>2],(0|ar[r+(p<<2)>>2])!=(0|ar[r+(m<<2)>>2])):0)|(0|W)!=(0|I)&0!=(0|tr[k>>0])){v=32;break}}return 27==(0|v)?(Gr(4+(0|ar[A+18592>>2])|0,1004,0),tr[10516+(0|ar[G>>2])>>0]=3,0|(G=2)):32==(0|v)?0|ht(E)?(dt(E),0|(G=1)):(Gr(4+(0|ar[A+18592>>2])|0,1017,0),tr[10516+(0|ar[G>>2])>>0]=3,0|(G=2)):35==(0|v)?0|r:0}function En(A){var e,r,i,f,n,t,o,a,c=0,l=0,u=0,s=0,b=0;n=0|ar[(A|=0)+18600>>2],s=0|ar[A+18596>>2],a=(0|(c=0|ar[A>>2]))%(0|(b=0|ar[s+5820>>2]))|0,b=(0|c)/(0|b)|0,r=a<<(e=0|ar[(c=s+5804|0)>>2]),i=b<<e,f=0|ar[s+10352>>2],l=(0|sr(f,b))+a|0,t=0|ar[s+10340>>2],or[t+(24*l|0)>>1]=ar[800+n>>2],l=65535&ar[n>>2],o=r>>(u=0|ar[s+10348>>2]),u=i>>u,-1<(0|o)&(0|o)<(0|f)||br(41808,41845,128,41865),(0|u)<=-1&&br(41869,41845,129,41865),(0|u)>=(0|ar[s+10356>>2])&&br(41869,41845,129,41865),s=t+(24*((0|sr(f,u))+o|0)|0)+2|0,or[s>>1]=l,0!=(0|tr[325+n>>0])||0!=(0|tr[326+n>>0])?(function(A,e,r,i){e|=0,r|=0,i|=0;var f,n,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0;ur=(n=ur)+32|0,i=n,a=0|ar[18600+(A|=0)>>2],f=0|ar[A+18596>>2],o=(t=i)+17|0;for(;tr[t>>0]=0,t=t+1|0,(0|t)<(0|o););t=0<(0|e)&&(G=0|sr(0|ar[5820+f>>2],r),E=0|ar[10308+f>>2],(0|ar[A>>2])>(0|ar[a+800>>2])&&(0|ar[E+(G+e<<2)>>2])==(0|ar[E+(e+-1+G<<2)>>2]))?255&(0|kt(A+18556|0,0|ar[A+18580>>2])):0;o=0<(0|r)&(E=t<<24>>24==0)&&(W=0|ar[5820+f>>2],B=(0|sr(W,r))+e|0,I=0|ar[10308+f>>2],G=I+((0|sr(W,r+-1|0))+e<<2)|0,((0|ar[A>>2])-W|0)>=(0|ar[a+800>>2])&&(0|ar[I+(B<<2)>>2])==(0|ar[G>>2]))?255&(0|kt(A+18556|0,0|ar[A+18580>>2])):0;if(G=o<<24>>24==0,!((o|t)<<24>>24)){W=0==(0|ar[5776+f>>2])?1:3,I=a+325|0,B=A+18556|0,g=A+18580|0,m=5760+f|0,p=5768+f|0,y=10087+f|0,Z=10088+f|0,C=i+1|0,v=a+326|0,t=o=w=0;do{if((s=0==(0|w))&0!=(0|tr[I>>0])||0<(0|w)&0!=(0|tr[v>>0])){do{if(s)o=0|kt(B,1+(0|ar[g>>2])|0)?(o=0==(0|wt(B)))?1:2:0,a=o,o&=255;else{if(1!=(0|w)){a=(255&o)>>>(w<<1)&3;break}A=0|kt(B,1+(0|ar[g>>2])|0)?(A=0==(0|wt(B)))?1:2:0,o=255&((a=A)<<4|A<<2|255&o)}}while(0);if(A=255&a){a=0|ar[(u=s?m:p)>>2],a=255&(0|vt(B,(1<<((0|a)<10?a:10)+-5)-1|0)),tr[(b=i+5+(w<<2)|0)>>0]=a,c=0|ar[u>>2],c=255&(0|vt(B,(1<<((0|c)<10?c:10)+-5)-1|0)),tr[(d=i+5+(w<<2)+1|0)>>0]=c,l=0|ar[u>>2],l=255&(0|vt(B,(1<<((0|l)<10?l:10)+-5)-1|0)),tr[(k=i+5+(w<<2)+2|0)>>0]=l,u=0|ar[u>>2],u=255&(0|vt(B,(1<<((0|u)<10?u:10)+-5)-1|0)),tr[(h=i+5+(w<<2)+3|0)>>0]=u;do{if(1==(0|A))A=a<<24>>24?(A=0!=(0|wt(B)))?-1:1:0,c=c<<24>>24?(c=0!=(0|wt(B)))?-1:1:0,l=l<<24>>24?(l=0!=(0|wt(B)))?-1:1:0,a=u<<24>>24?(a=0!=(0|wt(B)))?-1:1:0,u=255&(0|gt(B,5)),tr[i+2+w>>0]=u,s?u=y:V=30;else{if(s){u=y,a=l=-(c=A=1),t=255&(0|gt(B,2));break}V=(1==(0|w)?(V=255&(0|gt(B,2)),l=a=-1,A=c=1,t=255&(255&t|V<<2|V<<4)):(l=a=-1,A=c=1),30)}}while(0);30==(0|V)&&(V=0,u=Z),s=0|cr[u>>0],u=255&(0|sr(tr[b>>0]<<s,A)),tr[b>>0]=u,b=255&(0|sr(tr[d>>0]<<s,c)),tr[d>>0]=b,d=255&(0|sr(tr[k>>0]<<s,l)),tr[k>>0]=d,k=255&(0|sr(tr[h>>0]<<s,a)),tr[h>>0]=k}}w=w+1|0}while((0|w)<(0|W));for(tr[i>>0]=o,tr[C>>0]=t,t=(0|sr(0|ar[10352+f>>2],r))+e|0,t=(0|ar[10340+f>>2])+(24*t|0)+4|0,o=t+17|0;tr[t>>0]=0|tr[i>>0],i=i+1|0,(0|(t=t+1|0))<(0|o););}if(!E)for(i=0|sr(0|ar[10352+f>>2],r),o=0|ar[10340+f>>2],t=o+(24*(i+e|0)|0)+4|0,i=o+(24*(e+-1+i|0)|0)+4|0,o=t+17|0;tr[t>>0]=0|tr[i>>0],i=i+1|0,(0|(t=t+1|0))<(0|o););if(G)return ur=n;t=0|ar[10352+f>>2],i=(0|sr(t,r+-1|0))+e|0,o=0|ar[10340+f>>2],t=o+(24*((0|sr(t,r))+e|0)|0)+4|0,i=o+(24*i|0)+4|0,o=t+17|0;for(;tr[t>>0]=0|tr[i>>0],t=t+1|0,i=i+1|0,(0|t)<(0|o););ur=n}(A,a,b,0),Gn(A,r,i,b=0|ar[c>>2],0)):Gn(A,r,i,b=e,0)}function Gn(A,e,r,i,f){var n,t,o,a,c,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0;for(t=(A|=0)+18596|0,o=A+18600|0,a=A+18516|0,c=A+18508|0,g=A+18512|0,b=A+18556|0,n=A+18580|0,C=e|=0,Z=r|=0,p=i|=0,y=f|=0;;){if(m=0|ar[t>>2],((e=1<<p)+C|0)<=(0|(r=0|ar[(s=m+1248|0)>>2]))&&(e+Z|0)<=(0|(d=0|ar[m+1252>>2]))&&(0|ar[m+5800>>2])<(0|p)){if(e=-1<((i=C+-1|0)|Z|0)&(0|C)<=(0|r)&(0|Z)<(0|d)&&(h=0|ar[m+5804>>2],k=(u=0|sr(Z>>h,0|ar[m+5820>>2]))+(C>>h)|0,h=u+(i>>h)|0,u=0|ar[m+10340>>2],(0|or[u+(24*k|0)>>1])==(0|or[u+(24*h|0)>>1]))?(e=0|ar[m+10308>>2],(0|ar[e+(k<<2)>>2])==(0|ar[e+(h<<2)>>2])&1):0,l=(0|r)<=(0|C)|((u=Z+-1|0)|C|0)<0|(0|d)<(0|Z)||(f=0|ar[m+5804>>2],l=0|ar[m+5820>>2],v=C>>f,w=(0|sr(Z>>f,l))+v|0,v=(0|sr(u>>f,l))+v|0,l=0|ar[m+10340>>2],(0|or[l+(24*w|0)>>1])!=(0|or[l+(24*v|0)>>1]))?0:(l=0|ar[m+10308>>2],(0|ar[l+(w<<2)>>2])==(0|ar[l+(v<<2)>>2])&1),e){if(e=i>>(r=0|ar[m+10368>>2]),r=Z>>r,(0|e)<=-1){e=14;break}if((0|(i=0|ar[m+10372>>2]))<=(0|e)){e=14;break}if((0|r)<=-1){e=17;break}if((0|r)>=(0|ar[m+10376>>2])){e=17;break}f=(0|ar[m+10360>>2])+(3*((0|sr(i,r))+e|0)|0)|0,f=((65535&(cr[f>>0]|cr[f+1>>0]<<8))>>>6&3|0)>(0|y)?3:2}else f=2;if(l){if(i=C>>(r=0|ar[m+10368>>2]),r=u>>r,(0|i)<=-1){e=22;break}if((0|(e=0|ar[m+10372>>2]))<=(0|i)){e=22;break}if((0|r)<=-1){e=25;break}if((0|r)>=(0|ar[m+10376>>2])){e=25;break}e=(0|ar[m+10360>>2])+(3*((0|sr(e,r))+i|0)|0)|0,e=((65535&(cr[e>>0]|cr[e+1>>0]<<8))>>>6&3|0)>(0|y)&1}else e=0;e=0|kt(b,(0|ar[n>>2])+(e+f)|0)}else e=(0|ar[m+5800>>2])<(0|p)&1;if(0|tr[m+5946>>0]&&(0|ar[m+10092>>2])<=(0|p)&&(ar[c>>2]=0,ar[g>>2]=0),0|tr[752+(0|ar[o>>2])>>0]&&(0|ar[m+10096>>2])<=(0|p)&&(ar[a>>2]=0),!e){e=42;break}if(i=(f=1<<(r=p+-1|0))+C|0,f=f+Z|0,Gn(A,C,Z,r,l=y+1|0),(0|i)<(0|ar[s>>2])&&Gn(A,i,Z,r,l),(0|f)<(0|ar[(e=m+1252|0)>>2])&&Gn(A,C,f,r,l),(0|i)>=(0|ar[s>>2])){e=48;break}if(!((0|f)<(0|ar[e>>2]))){e=48;break}C=i,Z=f,p=r,y=l}if(14==(0|e))br(41808,41845,118,41865);else if(17==(0|e))br(41869,41845,119,41865);else if(22==(0|e))br(41808,41845,118,41865);else if(25==(0|e))br(41869,41845,119,41865);else{if(42==(0|e)){if(s=C>>(g=0|ar[m+10368>>2]),r=Z>>g,b=(e=1<<(g=p-g|0))+r|0,31!=(0|g)){l=e+s|0,u=m+10372|0,i=m+10360|0,f=(65535&y)<<6&192,e=r;do{for(r=s;m=(0|sr(0|ar[u>>2],e))+r|0,m=(0|ar[i>>2])+(3*m|0)|0,g=-193&(cr[m>>0]|cr[m+1>>0]<<8)|f,tr[m>>0]=g,tr[m+1>>0]=g>>8,(0|(r=r+1|0))<(0|l););e=e+1|0}while((0|e)<(0|b))}return void function(A,e,r,i,f){e|=0,r|=0,i|=0,f|=0;var n,t,o,a,c,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0,X=0,_=0,F=0,N=0,R=0,Y=0,J=0,D=0,Q=0;if(ur=(c=ur)+80|0,n=(D=c)+56|0,t=c+40|0,o=c+24|0,a=0|ar[(G=18596+(A|=0)|0)>>2],v=0|ar[(W=A+18600|0)>>2],function(A,e,r,i,f){e|=0,r|=0,i|=0;var n,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;if(n=10368+(A|=0)|0,(f|=0)&&(c=0|ar[n>>2],s=e>>c,l=r>>c,u=(t=1<<(c=i-c|0))+l|0,31!=(0|c))){o=t+s|0,a=A+10372|0,c=A+10360|0,t=l;do{for(f=s;l=(0|sr(0|ar[a>>2],t))+f|0,l=(0|ar[c>>2])+(3*l|0)|0,b=-8&(cr[l>>0]|cr[l+1>>0]<<8),tr[l>>0]=b,tr[l+1>>0]=b>>8,(0|(f=f+1|0))<(0|o););t=t+1|0}while((0|t)<(0|u))}t=0|ar[n>>2],o=e>>t,t=r>>t,(0|o)<=-1&&br(41808,41845,128,41865);f=0|ar[A+10372>>2],(0|f)<=(0|o)&&br(41808,41845,128,41865);(0|t)<=-1&&br(41869,41845,129,41865);{if((0|t)<(0|ar[A+10376>>2]))return b=(0|ar[A+10360>>2])+(3*((0|sr(f,t))+o|0)|0)|0,i=-8&(cr[b>>0]|cr[b+1>>0]<<8)|7&i,tr[b>>0]=i,tr[b+1>>0]=i>>8;br(41869,41845,129,41865)}}(a,e,r,i,1),Q=0|ar[10448+a>>2],h=e>>Q,u=r>>Q,w=(l=1<<(Q=i-Q|0))+u|0,31!=(0|Q)){s=l+h|0,d=10452+a|0,k=10440+a|0,l=u;do{for(u=h;Q=(0|sr(0|ar[d>>2],l))+u|0,((tr[(0|ar[k>>2])+Q>>0]=0)|(u=u+1|0))<(0|s););l=l+1|0}while((0|l)<(0|w))}Q=1<<i,At(A,e,r,e,r),0|tr[5964+a>>0]?(J=0|kt(A+18556|0,161+(0|ar[A+18580>>2])|0),0|(tr[A+32>>0]=J)&&function(A,e,r,i,f){e|=0,r|=0,i|=0,f|=0;var n,t,o=0,a=0,c=0,l=0,u=0,s=0;if(l=0|ar[10368+(A|=0)>>2],t=e>>l,u=r>>l,n=(i=1<<(l=i-l|0))+u|0,31!=(0|l)){a=i+t|0,c=A+10372|0,l=A+10360|0,o=(1&f)<<11&65535,i=u;do{for(f=t;u=(0|sr(0|ar[c>>2],i))+f|0,u=(0|ar[l>>2])+(3*u|0)|0,s=-2049&(cr[u>>0]|cr[u+1>>0]<<8)|o,tr[u>>0]=s,tr[u+1>>0]=s>>8,(0|(f=f+1|0))<(0|a););i=i+1|0}while((0|i)<(0|n))}i=0|ar[A+10348>>2],o=e>>i,i=r>>i,(0|o)<=-1&&br(41808,41845,128,41865);f=0|ar[A+10352>>2],(0|f)<=(0|o)&&br(41808,41845,128,41865);(0|i)<=-1&&br(41869,41845,129,41865);{if((0|i)<(0|ar[A+10356>>2]))return s=(0|ar[A+10340>>2])+(24*((0|sr(f,i))+o|0)|0)+22|0,tr[s>>0]=1;br(41869,41845,129,41865)}}(a,e,r,i,1)):tr[A+32>>0]=0;w=v+20|0;do{if(2!=(0|ar[w>>2])){h=0|ar[G>>2],l=0<=((u=e+-1|0)|r|0)&&(0|ar[h+1248>>2])>=(0|e)&&(0|ar[h+1252>>2])>(0|r)&&(m=0|ar[h+5804>>2],J=0|sr(r>>m,0|ar[h+5820>>2]),g=J+(e>>m)|0,m=J+(u>>m)|0,J=0|ar[h+10340>>2],(0|or[J+(24*g|0)>>1])==(0|or[J+(24*m|0)>>1]))?(l=0|ar[h+10308>>2],(0|ar[l+(g<<2)>>2])==(0|ar[l+(m<<2)>>2])&1):0,d=0<=((k=r+-1|0)|e|0)&&(0|ar[h+1248>>2])>(0|e)&&(0|ar[h+1252>>2])>=(0|r)&&(Y=0|ar[h+5804>>2],J=0|ar[h+5820>>2],y=e>>Y,p=(0|sr(r>>Y,J))+y|0,y=(0|sr(k>>Y,J))+y|0,J=0|ar[h+10340>>2],(0|or[J+(24*p|0)>>1])==(0|or[J+(24*y|0)>>1]))?(d=0|ar[h+10308>>2],(0|ar[d+(p<<2)>>2])==(0|ar[d+(y<<2)>>2])&1):0;do{if(l){if(J=0|ar[h+10368>>2],l=u>>J,u=r>>J,(0|l)<=-1&&br(41808,41845,118,41865),(0|(s=0|ar[h+10372>>2]))<=(0|l)&&br(41808,41845,118,41865),(0|u)<=-1&&br(41869,41845,119,41865),(0|u)<(0|ar[h+10376>>2])){Z=(0|ar[h+10360>>2])+(3*((0|sr(s,u))+l|0)|0)|0,Z=512==(768&(cr[Z>>0]|cr[Z+1>>0]<<8))?6:5;break}br(41869,41845,119,41865)}else Z=5}while(0);do{if(d){if(l=0|ar[h+10368>>2],s=e>>l,l=k>>l,(0|s)<=-1&&br(41808,41845,118,41865),(0|(u=0|ar[h+10372>>2]))<=(0|s)&&br(41808,41845,118,41865),(0|l)<=-1&&br(41869,41845,119,41865),(0|l)<(0|ar[h+10376>>2])){C=(0|ar[h+10360>>2])+(3*((0|sr(u,l))+s|0)|0)|0,C=512==(768&(cr[C>>0]|cr[C+1>>0]<<8))&1;break}br(41869,41845,119,41865)}else C=0}while(0);if(!((255&(0|kt(u=A+18556|0,(0|ar[(l=A+18580|0)>>2])+(C+Z)|0)))<<24>>24)){if(2==(0|ar[w>>2])){J=0;break}J=0==(0|kt(u,149+(0|ar[l>>2])|0))&1;break}A:do{if(2<=(0|ar[804+(0|ar[W>>2])>>2])&&0!=(0|kt(u,148+(0|ar[l>>2])|0)))if(1<((0|ar[804+(0|ar[W>>2])>>2])-1|0)){l=1;do{if(!(0|wt(u)))break A;l=l+1|0}while((0|l)<((0|ar[804+(0|ar[W>>2])>>2])-1|0))}else l=1;else l=0}while(0);if(tr[(s=A+26|0)>>0]=15&tr[s>>0]|(255&l)<<5&255|16,s=0|ar[(l=10368+a|0)>>2],u=e>>s,s=r>>s,(0|u)<=-1&&br(41808,41845,128,41865),(0|(b=0|ar[(h=10372+a|0)>>2]))<=(0|u)&&br(41808,41845,128,41865),(0|s)<=-1&&br(41869,41845,129,41865),(0|s)>=(0|ar[10376+a>>2])&&br(41869,41845,129,41865),D=(0|ar[(k=10360+a|0)>>2])+(3*((0|sr(b,s))+u|0)|0)|0,d=-57&(cr[D>>0]|cr[D+1>>0]<<8),tr[D>>0]=d,tr[D+1>>0]=d>>8,D=0|ar[l>>2],d=e>>D,u=r>>D,b=(l=1<<(D=i-D|0))+u|0,31!=(0|D)){s=l+d|0,l=u;do{for(u=d;D=(0|sr(0|ar[h>>2],l))+u|0,D=(0|ar[k>>2])+(3*D|0)|0,i=-769&(cr[D>>0]|cr[D+1>>0]<<8)|512,tr[D>>0]=i,tr[D+1>>0]=i>>8,(0|(u=u+1|0))<(0|s););l=l+1|0}while((0|l)<(0|b))}return zo(0|ar[A+18592>>2],0|ar[W>>2],0|ar[G>>2],A+16|0,e,r,0,0,Q,Q,Q,0),ur=c}J=0}while(0);if(Y=0|ar[(g=10368+a|0)>>2],w=e>>Y,u=r>>Y,v=(l=1<<(Y=i-Y|0))+u|0,31!=(0|Y)){s=l+w|0,d=10372+a|0,k=10360+a|0,h=(65535&J)<<8&65535,l=u;do{for(u=w;Y=(0|sr(0|ar[d>>2],l))+u|0,Y=(0|ar[k>>2])+(3*Y|0)|0,R=-769&(cr[Y>>0]|cr[Y+1>>0]<<8)|h,tr[Y>>0]=R,tr[Y+1>>0]=R>>8,(0|(u=u+1|0))<(0|s););l=l+1|0}while((0|l)<(0|v))}if((Y=0!=(0|J))||(0|ar[5800+a>>2])==(0|i)){u=0|ar[G>>2],h=0==(0|J),l=0|kt(s=A+18556|0,8+(0|ar[(d=A+18580|0)>>2])|0);do{if(h)b=0|l?0:3;else if(l)b=0;else{if(k=0|kt(s,9+(0|ar[d>>2])|0),(0|ar[u+5800>>2])>=(0|i)){if(0|k){b=1;break}if(3==(0|i)){b=2;break}b=3-(0|kt(s,10+(0|ar[d>>2])|0))|0;break}if(!(0|tr[u+5466>>0])){b=0|k?1:2;break}if(0|kt(s,11+(0|ar[d>>2])|0)){b=0|k?1:2;break}l=0|wt(s),0!=(0|k)&(u=0!=(0|l))?b=5:(s=0==(0|k))|u?l|k?s&u?b=7:br(49065,32568,1760,32601):b=6:b=4}}while(0);R=h&3==(0|b)&1}else b=R=0;u=0|ar[g>>2],l=e>>u,u=r>>u,(0|l)<=-1&&br(41808,41845,128,41865);s=0|ar[10372+a>>2],(0|s)<=(0|l)&&br(41808,41845,128,41865);(0|u)<=-1&&br(41869,41845,129,41865);(0|u)>=(0|ar[10376+a>>2])&&br(41869,41845,129,41865);F=(0|ar[10360+a>>2])+(3*((0|sr(s,u))+l|0)|0)|0,N=-57&(cr[F>>0]|cr[F+1>>0]<<8)|(65535&b)<<3&56,tr[F>>0]=N,tr[F+1>>0]=N>>8,F=0==(0|J),N=0==(0|b);A:do{if(F){if(N&&0|tr[5468+a>>0]&&(0|ar[5884+a>>2])<=(0|i)&&(0|ar[5888+a>>2])>=(0|i)&&0|ht(V=A+18556|0)){if(Vn(a,e,r,i,1),l=0|ar[(p=A+18560|0)>>2],ar[D>>2]=l,ar[D+4>>2]=(0|ar[A+18564>>2])-l,ar[(l=D+8|0)>>2]=0,ar[l+4>>2]=0,ar[D+16>>2]=0,l=0|ar[G>>2],s=0|ar[l+5760>>2],h=0|tr[l+5469>>0],k=0|ar[l+40>>2],l=0|ar[l+4>>2],u=(0|sr(k,r))+e|0,8<(0|s)){if(d=l+(u<<1)|0,b=s-h|0,31!=(0|i)){u=0;do{for(s=0|sr(u,k),l=0;i=(0|at(D,h))<<b&65535,or[d+(l+s<<1)>>1]=i,(0|(l=l+1|0))!=(0|Q););u=u+1|0}while((0|u)!=(0|Q))}}else if(d=l+u|0,b=s-h|0,31!=(0|i)){u=0;do{for(s=0|sr(u,k),l=0;i=(0|at(D,h))<<b&255,tr[d+(l+s)>>0]=i,(0|(l=l+1|0))!=(0|Q););u=u+1|0}while((0|u)!=(0|Q))}u=0|ar[G>>2];do{if(0|ar[u+5776>>2])if(w=0|ar[u+5768>>2],k=0|ar[u+5780>>2],h=(0|Q)/(0|k)|0,s=0|ar[u+5784>>2],v=(0|Q)/(0|s)|0,l=0|tr[u+5470>>0],m=l<<24>>24,g=0|ar[u+44>>2],b=0|ar[u+8>>2],d=(0|sr(g,(0|r)/(0|s)|0))+((0|e)/(0|k)|0)|0,8<(0|w)){if(b=b+(d<<1)|0,d=w-m|0,0<(0|h)&0<(0|v)){u=0;do{for(s=0|sr(u,g),l=0;i=(0|at(D,m))<<d&65535,or[b+(l+s<<1)>>1]=i,(0|(l=l+1|0))!=(0|h););u=u+1|0}while((0|u)!=(0|v));u=0|ar[G>>2],g=0|ar[u+44>>2],w=0|ar[u+5768>>2],b=0|ar[u+5780>>2],s=0|ar[u+5784>>2],l=0|tr[u+5470>>0]}else b=k;if(v=(0|Q)/(0|b)|0,h=(0|Q)/(0|s)|0,k=l<<24>>24,d=(0|ar[u+12>>2])+((0|sr((0|r)/(0|s)|0,g))+((0|e)/(0|b)|0)<<1)|0,s=w-k|0,!(0<(0|v)&0<(0|h)))break;u=0;do{for(b=0|sr(u,g),l=0;r=(0|at(D,k))<<s&65535,or[d+(l+b<<1)>>1]=r,(0|(l=l+1|0))!=(0|v););u=u+1|0}while((0|u)!=(0|h))}else{if(b=b+d|0,d=w-m|0,0<(0|h)&0<(0|v)){u=0;do{for(s=0|sr(u,g),l=0;i=(0|at(D,m))<<d&255,tr[b+(l+s)>>0]=i,(0|(l=l+1|0))!=(0|h););u=u+1|0}while((0|u)!=(0|v));u=0|ar[G>>2],g=0|ar[u+44>>2],w=0|ar[u+5768>>2],b=0|ar[u+5780>>2],s=0|ar[u+5784>>2],l=0|tr[u+5470>>0]}else b=k;if(v=(0|Q)/(0|b)|0,h=(0|Q)/(0|s)|0,k=l<<24>>24,d=(0|ar[u+12>>2])+((0|sr((0|r)/(0|s)|0,g))+((0|e)/(0|b)|0))|0,s=w-k|0,!(0<(0|v)&0<(0|h)))break;u=0;do{for(b=0|sr(u,g),l=0;r=(0|at(D,k))<<s&255,tr[d+(l+b)>>0]=r,(0|(l=l+1|0))!=(0|v););u=u+1|0}while((0|u)!=(0|h))}}while(0);return lt(D),ar[p>>2]=ar[D>>2],dt(V),ur=c}if(V=(X=3==(0|b))?(0|Q)/2|0:Q,X=(X<<31>>31)+i|0,!(G=31==(0|i))){b=A+18556|0,d=A+18580|0,u=l=0;do{for(s=0;W=0|kt(b,12+(0|ar[d>>2])|0),l=(f=l)+1|0,ar[D+(f<<2)>>2]=W,(0|(s=s+V|0))<(0|Q););u=u+V|0}while((0|u)<(0|Q))}if(u=0<=((l=e+-1|0)|r|0)&&(0|ar[1248+a>>2])>=(0|e)&&(0|ar[1252+a>>2])>(0|r)&&(B=0|ar[5804+a>>2],f=0|sr(r>>B,0|ar[5820+a>>2]),I=f+(e>>B)|0,B=f+(l>>B)|0,f=0|ar[10340+a>>2],(0|or[f+(24*I|0)>>1])==(0|or[f+(24*B|0)>>1]))?(u=0|ar[10308+a>>2],(0|ar[u+(I<<2)>>2])==(0|ar[u+(B<<2)>>2])&1):0,l=0<=((l=r+-1|0)|e|0)&&(0|ar[1248+a>>2])>(0|e)&&(0|ar[1252+a>>2])>=(0|r)&&(I=0|ar[5804+a>>2],B=0|ar[5820+a>>2],_=e>>I,E=(0|sr(r>>I,B))+_|0,_=(0|sr(l>>I,B))+_|0,B=0|ar[10340+a>>2],(0|or[B+(24*E|0)>>1])==(0|or[B+(24*_|0)>>1]))?(l=0|ar[10308+a>>2],(0|ar[l+(E<<2)>>2])==(0|ar[l+(_<<2)>>2])&1):0,!G){E=A+18556|0,B=0!=(0|u),v=0!=(0|l),g=5872+a|0,m=5876+a|0,p=10408+a|0,y=10412+a|0,Z=10400+a|0,C=4+o|0,W=8+o|0,l=h=0;do{f=h+r|0,I=v|0<(0|h),w=0;do{if(b=0|ar[D+(l<<2)>>2],s=b?(u=n,0|vt(E,2)):(u=t,0|gt(E,5)),ar[u+(l<<2)>>2]=s,_=w+e|0,k=0|ar[g>>2],k=(0|sr(f>>k,0|ar[m>>2]))+(_>>k)|0,Jt(o,_,f,k,B|0<(0|w),I,a),u=1==(0|b)?0|ar[o+(ar[n+(l<<2)>>2]<<2)>>2]:(u=0|ar[o>>2],(0|(s=0|ar[C>>2]))<(0|u)?(ar[o>>2]=s,ar[C>>2]=u,b=s):(b=u,u=s),(0|(s=0|ar[W>>2]))<(0|b)?(ar[o>>2]=s,ar[W>>2]=b,d=b):(d=s,s=b),(0|d)<(0|u)?(ar[C>>2]=d,ar[W>>2]=u,b=d):(b=u,u=d),_=0|ar[t+(l<<2)>>2],((0|u)<=(0|(_=((0|b)<=(0|(_=((0|s)<=(0|_)&1)+_|0))&1)+_|0))&1)+_|0),_=X-(0|ar[p>>2])|0,d=1<<_,31!=(0|_)){b=255&u,u=0;do{for(s=0;_=s+k+(0|sr(0|ar[y>>2],u))|0,tr[(0|ar[Z>>2])+_>>0]=b,(0|(s=s+1|0))<(0|d););u=u+1|0}while((0|u)<(0|d))}l=l+1|0,w=w+V|0}while((0|w)<(0|Q));h=h+V|0}while((0|h)<(0|Q))}d=5776+a|0;e:do{switch(0|ar[d>>2]){case 3:if(!G){h=A+18556|0,w=A+18580|0,v=10408+a|0,g=10412+a|0,m=10416+a|0,p=10400+a|0,k=0;r:for(;;){y=k+r|0,d=0;do{if(Z=d+e|0,b=0|kt(h,13+(0|ar[w>>2])|0)?0|gt(h,2):4,u=0|ar[v>>2],l=Z>>u,u=y>>u,(0|l)<=-1){l=174;break r}if((0|(s=0|ar[g>>2]))<=(0|l)){l=174;break r}if((0|u)<=-1){l=175;break r}if((0|u)>=(0|ar[m>>2])){l=175;break r}l=(0|ar[p>>2])+((0|sr(s,u))+l)|0,l=0|cr[l>>0],(u=4==(0|b))||(D=0|ar[6292+(b<<2)>>2],l=(0|D)==(0|l)?34:D),Xn(a,Z,y,X,l,u),d=d+V|0}while((0|d)<(0|Q));if((0|Q)<=(0|(k=k+V|0)))break e}174==(0|l)?br(41808,41845,118,41865):175==(0|l)&&br(41869,41845,119,41865)}break;case 0:break;default:b=0|kt(l=A+18556|0,13+(0|ar[A+18580>>2])|0)?0|gt(l,2):4,u=0|ar[10408+a>>2],l=e>>u,u=r>>u,(0|l)<=-1&&br(41808,41845,118,41865),(0|(s=0|ar[10412+a>>2]))<=(0|l)&&br(41808,41845,118,41865),(0|u)<=-1&&br(41869,41845,119,41865),(0|u)>=(0|ar[10416+a>>2])&&br(41869,41845,119,41865),l=(0|ar[10400+a>>2])+((0|sr(s,u))+l)|0,l=0|cr[l>>0],(u=4==(0|b))||(Q=0|ar[6292+(b<<2)>>2],l=(0|Q)==(0|l)?34:Q),2==(0|ar[d>>2])&&(l=0|cr[32618+l>>0]),Xn(a,e,r,i,l,u)}}while(0)}else{if(N){_n(A,e,r,0,0,Q,Q,f,Q,0);break}switch(0|b){case 1:_n(A,e,r,0,0,Q,D=(0|Q)/2|0,f,Q,0),_n(A,e,r,0,D,Q,D,f,Q,1);break A;case 2:_n(A,e,r,0,0,D=(0|Q)/2|0,Q,f,Q,0),_n(A,e,r,D,0,D,Q,f,Q,1);break A;case 4:_n(A,e,r,0,0,Q,D=(0|Q)/4|0,f,Q,0),_n(A,e,r,0,D,Q,(3<<i|0)/4|0,f,Q,1);break A;case 5:_n(A,e,r,0,0,Q,D=(3<<i|0)/4|0,f,Q,0),_n(A,e,r,0,D,Q,(0|Q)/4|0,f,Q,1);break A;case 6:_n(A,e,r,0,0,D=(0|Q)/4|0,Q,f,Q,0),_n(A,e,r,D,0,(3<<i|0)/4|0,Q,f,Q,1);break A;case 7:_n(A,e,r,0,0,D=(3<<i|0)/4|0,Q,f,Q,0),_n(A,e,r,D,0,(0|Q)/4|0,Q,f,Q,1);break A;case 3:_n(A,e,r,0,0,D=(0|Q)/2|0,D,f,Q,0),_n(A,e,r,D,0,D,D,f,Q,1),_n(A,e,r,0,D,D,D,f,Q,2),_n(A,e,r,D,D,D,D,f,Q,3);break A;default:br(37782,32568,4511,32653)}}}while(0);if(Y&&!(N&0!=(16&tr[A+26>>0]))&&0==(0|kt(A+18556|0,153+(0|ar[A+18580>>2])|0)))return ur=c;l=F?(0|ar[1396+a>>2])+R|0:0|ar[1392+a>>2];Q=0!=(0|ar[5776+a>>2])&1,function A(e,r,i,f,n,t,o,a,c,l,u,s,b,d,k){e|=0;r|=0;i|=0;f|=0;n|=0;t|=0;o|=0;a|=0;c|=0;l|=0;u|=0;s|=0;b|=0;d|=0;k|=0;var h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0,X=0;I=e+18596|0;w=0|ar[I>>2];h=0|ar[w+10368>>2];v=r>>h;(0|v)<=-1&&br(41808,41845,118,41865);B=1==(0|s);E=e+18556|0;G=e+18580|0;V=0!=(0|s);W=i;Z=f;y=n;C=a;p=l;m=w;g=v;f=i>>h;for(;;){if((0|(l=0|ar[m+10372>>2]))<=(0|g)){X=4;break}if((0|f)<=-1){X=7;break}if((0|(w=0|ar[m+10376>>2]))<=(0|f)){X=7;break}if(v=0|ar[m+10360>>2],i=v+(3*((0|sr(l,f))+g|0)|0)|0,(65535&(i=(65535&(cr[i>>0]|cr[i+1>>0]<<8))>>>8&3)|0)!=(0|b)){X=9;break}if((n=(0|ar[m+5868>>2])<(0|C))||((0|u)<=(0|c)?1:(0|ar[m+5864>>2])>=(0|C))|V&0==(0|c)){if(f=W>>h,!(-1<(0|(a=r>>h))&(0|a)<(0|l))){X=16;break}if(!(-1<(0|f)&(0|f)<(0|w))){X=18;break}l=v+(3*((0|sr(l,f))+a|0)|0)|0,l=1&(B&0==(0|c)|n|0!=(56&(cr[l>>0]|cr[l+1>>0]<<8))&(i<<16>>16==1?0==(ar[m+1392>>2]|c|0):0))}else{if(3<=(f=5-C|0)>>>0){X=13;break}l=0|kt(E,(0|ar[G>>2])+(f+20)|0)}if(w=0!=(0|l)){if(n=0|ar[m+10448>>2],f=r>>n,n=W>>n,(0|f)<=-1){X=23;break}if((0|(h=0|ar[m+10452>>2]))<=(0|f)){X=23;break}if((0|n)<=-1){X=26;break}if((0|n)>=(0|ar[m+10456>>2])){X=26;break}g=(0|ar[m+10440>>2])+((0|sr(h,n))+f)|0,tr[g>>0]=0|cr[g>>0]|1<<c}if(3==(0|(m=0|ar[(a=m+5776|0)>>2]))|2<(0|C)&0!=(0|m)?(d<<24>>24?(f=c+16|0,n=0|kt(E,(0|ar[G>>2])+f|0),2==(0|ar[a>>2])&&3==(0|C)|0==(0|l)&&(n=(0|kt(E,(0|ar[G>>2])+f|0))<<1|n)):n=-1,k<<24>>24?(h=c+16|0,f=0|kt(E,(0|ar[G>>2])+h|0),2==(0|ar[a>>2])&&3==(0|C)|0==(0|l)&&(f=(0|kt(E,(0|ar[G>>2])+h|0))<<1|f)):f=-1,(0|n)<0?X=38:l=n):(f=-1,X=38),38==(0|X)){if((n=2==((X=0)|C))&0==(0|c)){X=39;break}l=n&0<(0|c)?255&d:0}if(h=(0|f)<0?2==(0|C)&0<(0|c)?255&k:0:f,!w){X=43;break}if(n=(a=1<<(f=C+-1|0))+r|0,a=a+W|0,A(e,r,W,r,W,t,o,f,c=c+1|0,0,u,s,b,d=255&l,k=255&h),A(e,n,W,r,W,t,o,f,c,1,u,s,b,d,k),A(e,r,a,r,W,t,o,f,c,2,u,s,b,d,k),m=0|ar[I>>2],h=0|ar[m+10368>>2],(0|(g=n>>h))<=-1){X=4;break}y=W,Z=r,r=n,C=f,p=3,f=(W=a)>>h}switch(0|X){case 4:br(41808,41845,118,41865);break;case 7:br(41869,41845,119,41865);break;case 9:br(32670,32568,3827,32693);break;case 13:br(32713,32568,1820,32742);break;case 16:br(41808,41845,118,41865);break;case 18:br(41869,41845,119,41865);break;case 23:br(41808,41845,128,41865);break;case 26:br(41869,41845,129,41865);break;case 39:br(32770,32568,3894,32693);break;case 43:return i<<16>>16==0|0!=(l|c|h|0)?(X=0|kt(E,(0|ar[G>>2])+(0==(0|c)?15:14)|0),void Fn(e,r,W,Z,y,t,o,C,0,p,X,l,h)):void Fn(e,r,W,Z,y,t,o,C,0,p,X=1,l,h)}}(A,e,r,e,r,e,r,i,0,0,l,R,J,Q,Q),ur=c}(A,C,Z,p,y)}if(48==(0|e))return}}function Vn(A,e,r,i,f){r|=0,i|=0,f|=0;var n,t,o=0,a=0,c=0,l=0,u=0,s=0;if(t=(e|=0)>>(l=0|ar[(A|=0)+10368>>2]),u=r>>l,n=(i=1<<(l=i-l|0))+u|0,31!=(0|l)){a=i+t|0,c=A+10372|0,l=A+10360|0,o=(1&f)<<10&65535,i=u;do{for(f=t;u=(0|sr(0|ar[c>>2],i))+f|0,u=(0|ar[l>>2])+(3*u|0)|0,s=-1025&(cr[u>>0]|cr[u+1>>0]<<8)|o,tr[u>>0]=s,tr[u+1>>0]=s>>8,(0|(f=f+1|0))<(0|a););i=i+1|0}while((0|i)<(0|n))}if(o=e>>(i=0|ar[A+10348>>2]),i=r>>i,(0|o)<=-1&&br(41808,41845,128,41865),(0|(f=0|ar[A+10352>>2]))<=(0|o)&&br(41808,41845,128,41865),(0|i)<=-1&&br(41869,41845,129,41865),(0|i)<(0|ar[A+10356>>2]))return s=(0|ar[A+10340>>2])+(24*((0|sr(f,i))+o|0)|0)+22|0,void(tr[s>>0]=1);br(41869,41845,129,41865)}function Xn(A,e,r,i,f,n){e|=0,r|=0,f|=0;var t,o,a,c,l=0,u=0;if(c=255&((n|=0)?128|f:f),o=1<<(u=(i|=0)-(0|ar[(A|=0)+10408>>2])|0),l=0|ar[A+5872>>2],r=(0|sr(r>>l,0|ar[(a=A+5876|0)>>2]))+(e>>l)|0,31!=(0|u)){t=A+5880|0,l=A+10432|0,u=A+10424|0,i=A+10420|0,n=0;A:for(;;){f=0;do{if((0|f)>=(0|ar[a>>2])){f=10;break A}if((0|n)>=(0|ar[t>>2])){f=11;break A}if((0|(e=r+f+(0|sr(0|ar[l>>2],n))|0))>=(0|ar[u>>2])){f=12;break A}tr[(0|ar[i>>2])+e>>0]=c,f=f+1|0}while((0|f)<(0|o));if((0|o)<=(0|(n=n+1|0))){f=9;break}}9!=(0|f)&&(10==(0|f)?br(32868,41845,659,32891):11==(0|f)?br(32910,41845,660,32891):12==(0|f)&&br(32934,41845,663,32891))}}function _n(A,e,r,i,f,n,t,o,a,c){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0;var l,u,s,b=0,d=0,k=0,h=0,w=0,v=0;if(l=0|ar[(w=(A|=0)+18600|0)>>2],k=0|kt(h=A+18556|0,147+(0|ar[(u=A+18580|0)>>2])|0),s=A+16|0,tr[(v=A+26|0)>>0]=(255&k)<<4&16|-17&tr[v>>0],k){A:do{if(2<=(0|ar[804+(0|ar[w>>2])>>2])&&0!=(0|kt(h,148+(0|ar[u>>2])|0)))if(1<((0|ar[804+(0|ar[w>>2])>>2])-1|0)){b=1;do{if(!(0|wt(h)))break A;b=b+1|0}while((0|b)<((0|ar[804+(0|ar[w>>2])>>2])-1|0))}else b=1;else b=0}while(0);o=31&tr[v>>0],b=(255&b)<<5&255}else{do{if(0|ar[20+l>>2])k=1;else{if(b=0|ar[u>>2],12!=(t+n|0)&&0|kt(h,b+156+o|0)){k=3;break}k=1+(0|kt(h,b+160|0))|0}}while(0);if(tr[v>>0]=-4&tr[v>>0]|3&k,2!=(0|k)){b=(0|ar[328+l>>2])-1|0;A:do{if(0!=(0|b)&&0!=(0|kt(h,154+(0|ar[u>>2])|0)))for(o=0;;){if((0|(d=o+1|0))==(0|b))break A;if(!(o=o?0|wt(h):0|kt(h,155+(0|ar[u>>2])|0))){b=d;break}o=d}else b=0}while(0);if(tr[s>>0]=b,Yn(A,0,0,0),d=255&(0|kt(h,152+(0|ar[u>>2])|0)),tr[v>>0]=d<<2&4|-5&tr[v>>0],1==(0|k))return void zo(h=0|ar[(h=A+18592|0)>>2],w=0|ar[w>>2],v=0|ar[(v=A+18596|0)>>2],s,e,r,i,f,a,n,t,c)}d=(0|ar[332+l>>2])-1|0;A:do{if(0!=(0|d)&&0!=(0|kt(h,154+(0|ar[u>>2])|0)))for(o=0;;){if((0|(b=o+1|0))==(0|d)){b=d;break A}if(!(o=o?0|wt(h):0|kt(h,155+(0|ar[u>>2])|0)))break;o=b}else b=0}while(0);tr[A+17>>0]=b,3==(0|k)&0!=(0|tr[370+l>>0])?(or[A+22>>1]=0,or[A+24>>1]=0):Yn(A,0,0,1),b=255&(0|kt(h,152+(0|ar[u>>2])|0)),o=-9&tr[v>>0],b=b<<3&8}tr[v>>0]=o|b,zo(h=0|ar[(h=A+18592|0)>>2],w=0|ar[w>>2],v=0|ar[(v=A+18596|0)>>2],s,e,r,i,f,a,n,t,c)}function Fn(A,e,r,i,f,n,t,o,a,c,l,u,s){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0,s|=0;var b,d,k,h,w,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0;-1==(0|(u|=0))&&br(32807,32568,3547,32820),-1==(0|s)&&br(32840,32568,3548,32820),-1==(0|l)&&br(32853,32568,3549,32820),m=0|ar[(w=A+18596|0)>>2],I=2<(0|(I=((1^(d=3==(0|(k=0|ar[m+5776>>2]))))<<31>>31)+o|0))?I:2,p=s|u,tr[(v=A+33|0)>>0]=0,tr[v+1>>0]=0,tr[v+2>>0]=0,a=e>>(v=(tr[v+3>>0]=0)|ar[m+10368>>2]),v=r>>v,(0|a)<=-1&&br(41808,41845,118,41865),(0|(g=0|ar[m+10372>>2]))<=(0|a)&&br(41808,41845,118,41865),(0|v)<=-1&&br(41869,41845,119,41865),(0|v)>=(0|ar[m+10376>>2])&&br(41869,41845,119,41865),W=(0|ar[m+10360>>2])+(3*((0|sr(g,v))+a|0)|0)|0,h=65535&(W=(65535&(cr[W>>0]|cr[W+1>>0]<<8))>>>8&3),b=0!=(0|l),g=0!=(0|p);do{if(p|l|0){if(0!=(0|tr[m+5946>>0])&&0==(0|ar[(y=A+18508|0)>>2])){v=A+18556|0,a=A+18580|0;do{if(0|kt(v,139+(0|ar[a>>2])|0)){if(0|kt(v,140+(0|ar[a>>2])|0))if(0|kt(v,140+(0|ar[a>>2])|0))if(0|kt(v,140+(0|ar[a>>2])|0))if(0|kt(v,140+(0|ar[a>>2])|0)){if(!(a=5+(0|mt(v,0))|0)){a=v=0;break}}else a=4;else a=3;else a=2;else a=1;v=0|wt(v)}else a=v=0}while(0);ar[y>>2]=1,m=0|sr(1-(v<<1)|0,a),ar[A+18512>>2]=m,m=1}else m=0;if(g&0!=(0|tr[752+(0|ar[A+18600>>2])>>0])&&0==(0|tr[A+32>>0])&&0==(0|ar[(Z=A+18516|0)>>2])?(y=0|kt(v=A+18556|0,23+(0|ar[(a=A+18580|0)>>2])|0),g=0|ar[w>>2],a=y?(a=1<(0|cr[g+10074>>0])?0|kt(v,24+(0|ar[a>>2])|0):0,ar[Z>>2]=1,ar[A+18520>>2]=tr[g+10075+a>>0],0|tr[g+10081+a>>0]):(ar[Z>>2]=1,ar[A+18520>>2]=0),ar[A+18524>>2]=a):C=33,33==(0|C)&&!m)break;At(A,e,r,n,t)}}while(0);if(g=1<<o,y=1<<I,C=0|ar[w>>2],Z=0|ar[C+5780>>2],C=0|ar[C+5784>>2],ar[(l=A+28|0)>>2]=0,b&&Nn(A,e,r,o,0),Rn(A,e,r,n,t,g,0,h,b),!(2<(0|o)|d))return 3!=(0|c)?0:((a=0!=(1&u|0))&&Nn(A,i,f,o,1),0|ar[5776+(0|ar[w>>2])>>2]&&Rn(A,(0|i)/(0|Z)|0,(0|f)/(0|C)|0,(0|n)/(0|Z)|0,(0|t)/(0|C)|0,g,1,h,a),(a=0!=(2&u|0))&&Nn(A,i,g+f|0,o,1),(v=2==(0|k))&&Rn(A,(0|i)/(0|Z)|0,((0|f)/(0|C)|0)+g|0,(0|n)/(0|Z)|0,(0|t)/(0|C)|0,g,1,h,a),(a=0!=(1&s|0))&&Nn(A,i,f,o,2),0|ar[5776+(0|ar[w>>2])>>2]&&Rn(A,(0|i)/(0|Z)|0,(0|f)/(0|C)|0,(0|n)/(0|Z)|0,(0|t)/(0|C)|0,g,2,h,a),(a=0!=(2&s|0))&&Nn(A,i,y+f|0,o,2),v&&Rn(A,(0|i)/(0|Z)|0,((0|f)/(0|C)|0)+g|0,(0|n)/(0|Z)|0,(0|t)/(0|C)|0,g,2,h,a),0);m=0|ar[w>>2];A:do{if(b&0!=(0|tr[m+10071>>0])){do{if(W<<16>>16!=1){if(a=e>>(v=0|ar[m+10428>>2]),v=r>>v,(0|a)<=-1&&br(41808,41845,118,41865),(0|(g=0|ar[m+10432>>2]))<=(0|a)&&br(41808,41845,118,41865),(0|v)<=-1&&br(41869,41845,119,41865),(0|v)<(0|ar[m+10436>>2])){if(o=(0|ar[m+10420>>2])+((0|sr(g,v))+a)|0,(0|tr[o>>0])<0)break;v=a=0;break A}br(41869,41845,119,41865)}}while(0);for(g=A+18556|0,m=A+18580|0,v=a=0;v=(1&(o=0!=(0|kt(g,(0|ar[m>>2])+(a+162)|0))))+v|0,(0|(a=a+1|0))<4&o;);v=(a=v?1-((0|kt(g,170+(0|ar[m>>2])|0))<<1)<<v+-1:0,1)}else v=a=0}while(0);if(ar[l>>2]=a,(a=0!=(1&u|0))&&Nn(A,e,r,I,1),0|ar[5776+(0|ar[w>>2])>>2]&&Rn(A,(0|e)/(0|Z)|0,(0|r)/(0|C)|0,(0|n)/(0|Z)|0,(0|t)/(0|C)|0,y,1,h,a),(p=2==(0|k))&&((a=0!=(2&u|0))&&Nn(A,e,(C<<I)+r|0,I,1),Rn(A,(0|e)/(0|Z)|0,((0|r)/(0|C)|0)+y|0,(0|n)/(0|Z)|0,((0|t)/(0|C)|0)+y|0,y,1,h,a)),v){for(g=A+18556|0,m=A+18580|0,v=a=0;v=(1&(u=0!=(0|kt(g,(0|ar[m>>2])+(a+166)|0))))+v|0,(0|(a=a+1|0))<4&u;);a=v?1-((0|kt(g,171+(0|ar[m>>2])|0))<<1)<<v+-1:0}else a=0;return ar[l>>2]=a,(a=0!=(1&s|0))&&Nn(A,e,r,I,2),0|ar[5776+(0|ar[w>>2])>>2]&&Rn(A,(0|e)/(0|Z)|0,(0|r)/(0|C)|0,(0|n)/(0|Z)|0,(0|t)/(0|C)|0,y,2,h,a),p&&((a=0!=(2&s|0))&&Nn(A,e,(C<<I)+r|0,I,2),Rn(A,(0|e)/(0|Z)|0,((0|r)/(0|C)|0)+y|0,(0|n)/(0|Z)|0,((0|t)/(0|C)|0)+y|0,y,2,h,a)),0}function Nn(A,e,r,i,f){e|=0,r|=0,i|=0,f|=0;var n,t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_,F,N,R,Y,J,D,Q,T,M,S,U,O,H=0,x=0,j=0,z=0,P=0,L=0,K=0,q=0,$=0,AA=0,eA=0,rA=0,iA=0,fA=0,nA=0,tA=0,oA=0,aA=0,cA=0,lA=0,uA=0,sA=0;if(ur=(Q=ur)+160|0,iA=Q+144|0,R=Q+80|0,J=(Y=Q)+64|0,D=Q+48|0,N=Q+32|0,rA=(fA=0|ar[(A|=0)+18596>>2])+764|0,H=e>>(x=0|ar[fA+10368>>2]),x=r>>x,(0|H)<=-1&&br(41808,41845,118,41865),(0|(j=0|ar[fA+10372>>2]))<=(0|H)&&br(41808,41845,118,41865),(0|x)<=-1&&br(41869,41845,119,41865),(0|x)>=(0|ar[fA+10376>>2])&&br(41869,41845,119,41865),AA=(0|ar[fA+10360>>2])+(3*((0|sr(j,x))+H|0)|0)|0,AA=(65535&(cr[AA>>0]|cr[AA+1>>0]<<8))>>>8&3,(F=0==(0|f))&&(K=e>>(uA=0|ar[fA+10448>>2]),L=r>>uA,q=(z=1<<(uA=i-uA|0))+L|0,31!=(0|uA))){j=z+K|0,z=fA+10452|0,P=fA+10440|0,H=L;do{for(x=K;uA=(0|sr(0|ar[z>>2],H))+x|0,uA=(0|ar[P>>2])+uA|0,tr[uA>>0]=-128|tr[uA>>0],(0|(x=x+1|0))<(0|j););H=H+1|0}while((0|H)<(0|q))}H=0!=(0|tr[fA+5945>>0])&&0==(0|tr[A+32>>0])&&(0|ar[fA+10100>>2])>=(0|i)?255&(0|kt(A+18556|0,(0|ar[A+18580>>2])+(0|f?142:141)|0)):0,tr[(uA=A+33+f|0)>>0]=H,tr[(_=A+36|0)>>0]=0;do{if(AA<<16>>16==1&&0!=(0|tr[fA+5751>>0])){if(0==(0|tr[uA>>0])&&0==(0|tr[A+32>>0])){sA=23;break}j=0!=(0|f)&1,lA=255&(0|kt(x=A+18556|0,143+(0|ar[(H=A+18580|0)>>2])+j|0)),(tr[_>>0]=lA)<<24>>24&&(lA=255&(0|kt(x,145+(0|ar[H>>2])+j|0)),tr[A+37>>0]=lA)}else sA=23}while(0);if(23==(0|sA)&&(tr[_>>0]=0),H=F?2:0,0==(0|tr[uA>>0])&&0==(0|tr[A+32>>0])||(H|=1),z=25+(0|ar[(X=A+18580|0)>>2])|0,$=(cA=i<<1)+-1|0,lA=i+-2|0,L=F?i+1>>2:lA,K=F?(3*lA|0)+(i+-1>>2)|0:15,1<(0|cA)){for(q=A+18556|0,x=$,j=0;x=(cA=0==(0|kt(q,z+((j>>L)+K)|0)))?j:x,(0|(j=j+1|0))<(0|$)&(1^cA););for(P=43+(0|ar[X>>2])|0,z=$,j=0;z=(cA=0==(0|kt(q,P+((j>>L)+K)|0)))?j:z,(0|(j=j+1|0))<(0|$)&(1^cA););}else x=z=$;if(j=(x>>1)-1|0,3<(0|x)&&(x=(0|gt(A+18556|0,j))+((1&x|2)<<j)|0),j=(z>>1)-1|0,L=3<(0|z)?(0|gt(A+18556|0,j))+((1&z|2)<<j)|0:z,cA=AA<<16>>16==0){do{if(F){if(j=e>>(z=0|ar[fA+10408>>2]),z=r>>z,(0|j)<=-1&&br(41808,41845,118,41865),(0|(P=0|ar[fA+10412>>2]))<=(0|j)&&br(41808,41845,118,41865),(0|z)<=-1&&br(41869,41845,119,41865),(0|z)<(0|ar[fA+10416>>2])){eA=(0|ar[fA+10400>>2])+((0|sr(P,z))+j)|0,eA=0|tr[eA>>0];break}br(41869,41845,119,41865)}else{if(j=e>>(z=0|ar[fA+10428>>2]),z=r>>z,(0|j)<=-1&&br(41808,41845,118,41865),(0|(P=0|ar[fA+10432>>2]))<=(0|j)&&br(41808,41845,118,41865),(0|z)<=-1&&br(41869,41845,119,41865),(0|z)<(0|ar[fA+10436>>2])){eA=(0|ar[fA+10420>>2])+((0|sr(P,z))+j)|0,eA=63&tr[eA>>0];break}br(41869,41845,119,41865)}}while(0);j=(aA=2==(0|(z=0|function(A,e,r,i){e|=0,r|=0,i|=0;var f=0;switch(0|(A|=0)){case 2:break;case 3:f=2;break;default:return 0}return 2==(0|f)&&0|r&&3!=(0|ar[i+5012>>2])?0:0|((e+-6|0)>>>0<9?2:(e+-22|0)>>>0<9&1)}(i,255&eA,f,rA))))?x:L,x=aA?L:x}else z=0,j=L;V=0|Cn(lA,z),aA=0|Cn(2,z),T=iA,M=x,S=j,U=z,O=i,T|=0,M|=0,S|=0,O=(0|ar[6196+(24*(U|=0)|0)+((O|=0)<<2)>>2])+((S<<O)+M<<1)|0,O=cr[O>>0]|cr[O+1>>0]<<8,tr[T>>0]=O,tr[T+1>>0]=O>>8,G=0|tr[iA+1>>0],W=0|cr[iA>>0],Vu(0|R,0,1<<lA<<lA|0),B=A+18556|(or[(I=A+14404+(f<<1)|0)>>1]=0),E=0!=(0|f)&1,u=0!=(0|z)&1,s=(255&G)-1|0,b=fA+5749|0,d=A+32|0,k=F?42:43,h=G<<24>>24!=0,w=0<(0|f),v=fA+10408|0,g=fA+10412|0,m=fA+10416|0,p=fA+10400|0,y=fA+5750|0,Z=fA+5936|0,C=fA+5755|0,o=A+18588+H|0,a=fA+10428|0,c=fA+10432|0,l=fA+10436|0,n=fA+10420|0,t=1<(255&G),H=1,oA=W,x=AA=0;A:for(;;){K=0|tr[V+(oA<<1)>>0],q=0|tr[V+(oA<<1)+1>>0],(0|oA)<(0|W)&0!=(0|oA)?(tA=1&(tA=0|cr[R+((z=(j=255&q)<<lA)+(P=255&K))>>0])|tA>>>1,0|kt(B,(0|ar[X>>2])+((F?tA:tA+2|0)+61)|0)?(L=1,sA=59):(z=1,j=0)):0==(0|oA)|(0|oA)==(0|W)?(L=0,j=z=255&q,z<<=lA,P=255&K,sA=59):j=z=0,59==(0|sA)&&(z=R+(P+-1+z)|(sA=0),K<<24>>24&&(tr[z>>0]=1|tr[z>>0]),j=R+((j+-1<<lA)+P)|0,j=(z=(q<<24>>24&&(tr[j>>0]=2|tr[j>>0]),L),1));do{if(j){if(tA=($=255&K)<<2,nA=(q&=255)<<2,q=0|ar[50612+(lA<<6)+(E<<5)+(u<<4)+(cr[R+((q<<lA)+$)>>0]<<2)>>2],($=(0|oA)==(0|W))?(or[Y>>1]=1,tr[N>>0]=1,tr[J>>0]=G,t?(K=s,j=z,z=1,sA=67):(j=z,z=1)):(K=15,j=z,z=0,sA=67),67==(0|sA))for(;;){P=((sA=0)|cr[aA+(K<<1)>>0])+tA|0,L=(0|cr[aA+(K<<1)+1>>0])+nA|0;do{if(0|tr[b>>0]){if(0|tr[d>>0]){P=k;break}0|tr[uA>>0]?P=k:sA=70}else sA=70}while(0);if(70==(0|sA)&&(P=(sA=0)|cr[q+(P+(L<<i))>>0]),0|kt(B,(0|ar[X>>2])+(P+65)|0)&&(or[Y+(z<<1)>>1]=1,tr[N+z>>0]=1,tr[J+z>>0]=K,z=z+1|(j=0)),!(1<(0|K)))break;K=K+-1|0,sA=67}do{if(h|1^$){if(0|j){or[Y+(z<<1)>>1]=1,fA=z+(tr[N+z>>0]=1)|(tr[J+z>>0]=0);break}do{if(0|tr[b>>0]){if(0|tr[d>>0]){j=k;break}0|tr[uA>>0]?j=k:sA=78}else sA=78}while(0);if(78==(0|sA)&&(j=(sA=0)|cr[q+((nA<<i)+tA)>>0]),!(0|kt(B,(0|ar[X>>2])+(j+65)|0))){fA=z;break}or[Y+(z<<1)>>1]=1,fA=z+(tr[N+z>>0]=1)|(tr[J+z>>0]=0)}else fA=z}while(0);if(fA){q=0==(0|H)|(w|0==(0|oA)?0:2),L=(0|fA)<8?fA:8,$=0<(0|fA);do{if($){if(K=q<<2,w)for(P=0,z=-1,H=1,j=AA;x=P?0<(0|x)?1==(0|j)?0:x+1|0:x:1,H=(j=0|kt(B,(0|ar[X>>2])+(((0|x)<3?x:3)+K+125)|0))?(or[(H=Y+(P<<1)|0)>>1]=1+(0|or[H>>1])<<16>>16,z=-1==(0|z)?P:z,0):((H+-1|(tr[N+P>>0]=0))>>>0<2&1)+H|0,(0|(P=P+1|0))<(0|L););else for(P=0,z=-1,H=1,j=AA;x=P?0<(0|x)?1==(0|j)?0:x+1|0:x:1,H=(j=0|kt(B,(0|ar[X>>2])+(((0|x)<3?x:3)+K+109)|0))?(or[(H=Y+(P<<1)|0)>>1]=1+(0|or[H>>1])<<16>>16,z=-1==(0|z)?P:z,0):((H+-1|(tr[N+P>>0]=0))>>>0<2&1)+H|0,(0|(P=P+1|0))<(0|L););if(-1==(0|z))break;iA=0|kt(B,(0|ar[X>>2])+((w?4|q:q)+133)|0),or[(rA=Y+(z<<1)|0)>>1]=(0|lr[rA>>1])+iA,tr[N+z>>0]=iA}else H=1,j=AA}while(0);if(F){if(z=e>>(P=0|ar[v>>2]),P=r>>P,(0|z)<=-1){sA=102;break A}if((0|(L=0|ar[g>>2]))<=(0|z)){sA=102;break A}if((0|P)<=-1){sA=105;break A}if((0|P)>=(0|ar[m>>2])){sA=105;break A}z=(0|ar[p>>2])+((0|sr(L,P))+z)|0,z=0|tr[z>>0]}else{if(z=e>>(P=0|ar[a>>2]),P=r>>P,(0|z)<=-1){sA=109;break A}if((0|(L=0|ar[c>>2]))<=(0|z)){sA=109;break A}if((0|P)<=-1){sA=112;break A}if((0|P)>=(0|ar[l>>2])){sA=112;break A}z=(0|ar[n>>2])+((0|sr(L,P))+z)|0,z=63&tr[z>>0]}e:do{if(0|tr[d>>0])P=0;else{do{if(cA){if(!(0|tr[y>>0]))break;if((16|z)<<24>>24==26&0!=(0|tr[uA>>0])){P=0;break e}}}while(0);if(0|tr[_>>0]){P=0;break}P=3<((0|tr[J>>0])-(0|tr[J+(fA+-1)>>0])|0)&1}}while(0);if(iA=fA+-1|0,1<(0|fA))for(z=0;rA=255&(0|wt(B)),tr[D+z>>0]=rA,(0|(z=z+1|0))!=(0|iA););if(z=(rA=0!=(0|P))&0!=(0|tr[Z>>0])?0:255&(0|wt(B)),tr[D+iA>>0]=z,z=0|tr[C>>0]?(0|cr[o>>0])>>>2&255:0,!$)break;$=1,P=eA=0;do{AA=0|or[Y+(eA<<1)>>1];do{if(0|tr[N+eA>>0]){for(K=-1;;){if(L=K+1|0,q=0|wt(B),63<(0|K)){q=0;break}if(!q){sA=130;break}K=L}if(130==(0|sA)&&(((sA=0)|L)<4?K=0|gt(B,z):(K=0|gt(B,(L=K+-2|0)+z|0),L=2+(1<<L)|0),q=(L<<z)+K|0),K=0==(0|tr[C>>0]),L=z+1|0,z=(3<<z|0)<(q+AA|0)?!K||(0|L)<4?L:4:z,K|1^$){$=0;break}if((3<<(K=(255&(L=0|tr[o>>0]))>>>2&255)|0)<=(0|q)){tr[o>>0]=L+1<<24>>24,$=0;break}if(L<<24>>24==0|(1<<K|0)<=(q<<1|0)){$=0;break}tr[o>>0]=L+-1<<24>>24,$=0}else q=0}while(0);K=q+AA|0,L=65535&(q=0==(0|tr[D+eA>>0])?K:0-(65535&K)|0);do{if(rA&0!=(0|tr[Z>>0])){if((0|eA)!=(0|iA)|0==(1&(P=K+P|0)|0))break;L=0-q&65535}}while(0);AA=0|tr[J+eA>>0],q=(0|cr[aA+(AA<<1)>>0])+tA|0,AA=(0|cr[aA+(AA<<1)+1>>0])+nA|0,or[A+2116+(f<<11)+(or[I>>1]<<1)>>1]=L,or[A+8260+(f<<11)+(or[I>>1]<<1)>>1]=q+(AA<<i),or[I>>1]=1+(0|or[I>>1])<<16>>16,eA=eA+1|0}while((0|eA)!=(0|fA))}else j=AA}else j=AA}while(0);if(!(0<(0|oA))){sA=54;break}oA=oA+-1|0,AA=j}return 54==(0|sA)?ur=Q:102==(0|sA)?br(41808,41845,118,41865):105==(0|sA)?br(41869,41845,119,41865):109==(0|sA)?br(41808,41845,118,41865):112==(0|sA)&&br(41869,41845,119,41865),0}function Rn(A,e,r,i,f,n,t,o,a){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0;var c,l,u,s,b,d,k,h,w,v=0,g=0,m=0;if(c=0|ar[(l=(A|=0)+18596|0)>>2],u=0==(0|o)){do{if(t){if(o=0|sr(0|ar[5780+c>>2],e),g=0|sr(0|ar[5784+c>>2],r),o>>=v=0|ar[10428+c>>2],v=g>>v,(0|o)<=-1&&br(41808,41845,118,41865),(0|(g=0|ar[10432+c>>2]))<=(0|o)&&br(41808,41845,118,41865),(0|v)<=-1&&br(41869,41845,119,41865),(0|v)<(0|ar[10436+c>>2])){m=(0|ar[10420+c>>2])+((0|sr(g,v))+o)|0,m=63&tr[m>>0];break}br(41869,41845,119,41865)}else{if(o=e>>(v=0|ar[10408+c>>2]),v=r>>v,(0|o)<=-1&&br(41808,41845,118,41865),(0|(g=0|ar[10412+c>>2]))<=(0|o)&&br(41808,41845,118,41865),(0|v)<=-1&&br(41869,41845,119,41865),(0|v)<(0|ar[10416+c>>2])){m=(0|ar[10400+c>>2])+((0|sr(g,v))+o)|0,m=0|tr[m>>0];break}br(41869,41845,119,41865)}}while(0);s=c,b=e,d=r,k=v=34<(255&m)?1:255&m,h=n,w=t,s|=0,b|=0,d|=0,k|=0,h|=0,(8<(0|ar[(0==(0|(w|=0))?s+5760|0:s+5768|0)>>2])?function(A,e,r,i,f,n){i|=0;var t,o,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0;ur=(o=ur)+272|0,function(A,e,r,i,f,n){e|=0,r|=0,i|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w,v,g,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0,X=0,_=0,F=0,N=0,R=0,Y=0,J=0,D=0,Q=0,T=0,M=0,S=0,U=0,O=0,H=0,x=0,j=0,z=0,P=0,L=0,K=0,q=0,$=0,AA=0;ur=(g=ur)+144|0,v=(h=g)+64|0,w=0|ar[4+(A|=0)+((f|=0)<<2)>>2],c=0|ar[((f=0==(0|f))?A+40|0:A+44|0)>>2],L=f?q=1:(q=0|ar[A+5780>>2],0|ar[A+5784>>2]),k=0|ar[(f?A+5760|0:A+5768|0)>>2],J=0|sr(q,e),Y=0|sr(L,r),G=0|ar[A+5804>>2],B=0|ar[A+5820>>2],_=(T=0!=(0|J))&(X=1^(Z=0==(0|Y))),E=J+(0|sr(q,i))|0,D=0|ar[A+1248>>2],N=(0|E)<(0|D)&X,C=J>>G,y=Y>>G,W=J+-1>>G,E>>=G,G=Y+-1>>G,m=0|ar[A+10352>>2],f=0|sr(m,y),p=0|ar[A+10340>>2],o=0|lr[p+(24*(f+C|0)|0)>>1],Q=T?0|lr[p+(24*(f+W|0)|0)>>1]:-1,V=Z?-1:(V=p+(24*((0|sr(m,G))+C|0)|0)|0,0|lr[V>>1]),F=N?(F=p+(24*((0|sr(m,G))+E|0)|0)|0,0|lr[F>>1]):-1,I=_?(I=p+(24*((0|sr(m,G))+W|0)|0)|0,0|lr[I>>1]):-1,f=0|sr(y,B),y=0|ar[A+10308>>2],t=0|ar[y+(f+C<<2)>>2],R=T?0|ar[y+(f+W<<2)>>2]:-1,m=Z?-1:(m=y+((0|sr(G,B))+C<<2)|0,0|ar[m>>2]),p=_?(p=y+((0|sr(G,B))+W<<2)|0,0|ar[p>>2]):-1,f=N?(f=y+((0|sr(G,B))+E<<2)|0,0|ar[f>>2]):-1,d=(0|V)==(0|o)&(0|m)==(0|t)&X,_=_&(0|I)==(0|o)&(0|p)==(0|t),l=N&(0|F)==(0|o)&(0|f)==(0|t),u=0|ar[A+5864>>2],a=0|ar[A+5852>>2],K=(0|sr(Y>>u,a))+(J>>u)|0,s=0|ar[A+10320>>2],K=0|ar[s+(K<<2)>>2],f=(L+-1-Y+(0|ar[A+1252>>2])|0)/(0|L)|0,Y=(0|f)>(0|(b=i<<1))?b:f,J=(0|(J=(q+-1-J+D|0)/(0|q)|0))>(0|b)?b:J,Vu(0-b+v|0,0,0|(D=i<<2|1)),m=Y+-1|0;A:do{if(0<(0|Y)&&(M=e+-1|0,S=0|sr(q,M),U=A+10368|0,O=A+10372|0,H=A+10376|0,x=A+10360|0,T&(0|Q)==(0|o)&(0|R)==(0|t))){for(G=64-((0|f)<(0|b)?f:b)|0,V=S>>u,X=0==(0|tr[A+5944>>0]),B=m,E=m=f=0;;){if(I=h+(G+(E<<2))|0,p=0|sr(W=B+r|0,L),Z=s+((0|sr(p>>u,a))+V<<2)|0,Z=(0|ar[Z>>2])<=(0|K),X)Z&&(j=29);else{if(T=0|ar[U>>2],p>>=T,(0|(C=S>>T))<=-1){j=34;break}if((0|(y=0|ar[O>>2]))<=(0|C)){j=34;break}if((0|p)<=-1){j=35;break}if((0|p)>=(0|ar[H>>2])){j=35;break}T=(0|ar[x>>2])+(3*((0|sr(y,p))+C|0)|0)|0,Z&0==(768&(cr[T>>0]|cr[T+1>>0]<<8))&&(j=29)}if(29==(0|j)&&(p=w+(((j=0)|sr(W,c))+M<<1)|0,m||(f=0|or[p>>1]),tr[I>>0]=1,tr[I+1>>0]=1,tr[I+2>>0]=1,tr[I+3>>0]=1,or[n+(~B<<1)>>1]=0|or[p>>1],T=w+((0|sr(W+-1|0,c))+M<<1)|0,or[n+(1-B-1<<1)>>1]=0|or[T>>1],T=w+((0|sr(W+-2|0,c))+M<<1)|0,or[n+(2-B-1<<1)>>1]=0|or[T>>1],T=w+((0|sr(W+-3|0,c))+M<<1)|0,or[n+(3-B-1<<1)>>1]=0|or[T>>1],m=m+4|0),(0|(B=B+-4|0))<=-1){z=f,P=m;break A}E=E+1|0}34==(0|j)?br(41808,41845,118,41865):35==(0|j)&&br(41869,41845,119,41865)}else P=z=0}while(0);A:do{if(_){f=0|sr(q,y=e+-1|0),m=0|sr(L,Z=r+-1|0),C=s+((0|sr(m>>u,a))+(f>>u)<<2)|0,C=(0|ar[C>>2])<=(0|K);do{if(0|tr[A+5944>>0]){if(j=0|ar[A+10368>>2],p=f>>j,f=m>>j,(0|p)<=-1&&br(41808,41845,118,41865),(0|(m=0|ar[A+10372>>2]))<=(0|p)&&br(41808,41845,118,41865),(0|f)<=-1&&br(41869,41845,119,41865),(0|f)<(0|ar[A+10376>>2])){if(j=(0|ar[A+10360>>2])+(3*((0|sr(m,f))+p|0)|0)|0,C&0==(768&(cr[j>>0]|cr[j+1>>0]<<8)))break;m=P,f=z;break A}br(41869,41845,119,41865)}else if(!C){m=P,f=z;break A}}while(0);m=w+((0|sr(c,Z))+y<<1)|0,f=P?z:0|or[m>>1],or[n>>1]=0|or[m>>1],tr[v>>0]=1,m=P+1|0}else m=P,f=z}while(0);A:do{if(0<(0|J)){R=0|sr(L,X=r+-1|0),Y=A+5944|0,X=0|sr(c,X),_=A+10368|0,F=A+10372|0,N=A+10376|0,V=A+10360|0,G=0|sr(R>>u,a),B=E=0;e:for(;;){I=h+(65+(B<<2))|0;do{if((0|E)<(0|i)?d:l){if(p=0|sr(C=E+e|0,q),W=(0|ar[s+(G+(p>>u)<<2)>>2])<=(0|K),0|tr[Y>>0]){if(y=0|ar[_>>2],p>>=y,y=R>>y,(0|p)<=-1){j=55;break e}if((0|(Z=0|ar[F>>2]))<=(0|p)){j=55;break e}if((0|y)<=-1){j=58;break e}if((0|y)>=(0|ar[N>>2])){j=58;break e}if(A=(0|ar[V>>2])+(3*((0|sr(Z,y))+p|0)|0)|0,!(W&0==(768&(cr[A>>0]|cr[A+1>>0]<<8))))break}else if(!W)break;y=w+((p=C+X|0)<<1)|0,m||(f=0|or[y>>1]),A=1|E,tr[I>>0]=1,tr[I+1>>0]=1,tr[I+2>>0]=1,tr[I+3>>0]=1,or[n+(A<<1)>>1]=0|or[y>>1],or[n+(A+1<<1)>>1]=0|or[w+(p+1<<1)>>1],or[n+((3|E)<<1)>>1]=0|or[w+(p+2<<1)>>1],or[n+(A+3<<1)>>1]=0|or[w+(p+3<<1)>>1],m=m+4|0}}while(0);if((0|J)<=(0|(E=E+4|0))){$=m,AA=f;break A}B=B+1|0}55==(0|j)?br(41808,41845,118,41865):58==(0|j)&&br(41869,41845,119,41865)}else $=m,AA=f}while(0);if((0|$)==(0|D))return ur=g;if(f=0|sr(i,-2),!$){if((0|b)<(0|f))return ur=g;for(m=1<<k-1&65535;or[n+(f<<1)>>1]=m,(0|f)<(0|b);)f=f+1|0;return ur=g}if(0|tr[v+f>>0]||(or[n+(f<<1)>>1]=AA),(0|(f|=1))>(0|b))return ur=g;for(;0|tr[v+f>>0]||(or[n+(f<<1)>>1]=0|or[n+(f+-1<<1)>>1]),(0|f)<(0|b);)f=f+1|0;ur=g}(A|=0,e|=0,r|=0,f|=0,n|=0,t=o+128|0);do{if(!(0|tr[A+5753>>0])){if(0|n&&3!=(0|ar[A+5776>>2]))break;Qt(A,t,f,n,i)}}while(0);switch(0|i){case 0:if(b=0|ar[(0==(0|n)?A+40|0:A+44|0)>>2],s=(0|ar[A+4+(n<<2)>>2])+((0|sr(b,r))+e<<1)|0,1<(0|f)){for(i=f,A=0;3<i>>>0;)i>>>=1,A=A+1|0;i=A+2|0}else i=1;if((0|f)<=0)return ur=o;r=f+-1|0,n=t+(f+1<<1)|0,a=t+(~f<<1)|0,e=0;do{for(c=t+(~e<<1)|0,l=r-e|0,u=0|sr(e,b),e=e+1|0,A=0;w=0|sr(0|lr[c>>1],r-A|0),A=(d=A)+1|0,h=0|sr(0|lr[n>>1],A),k=0|sr(0|lr[t+(A<<1)>>1],l),k=w+f+h+k+(0|sr(0|lr[a>>1],e))>>i&65535,or[s+(d+u<<1)>>1]=k,(0|A)!=(0|f););}while((0|e)!=(0|f));return ur=o;case 1:return function(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,n|=0;var t,o,a,c,l=0;if(c=0|ar[((o=0==(0|(f|=0)))?A+40|0:A+44|0)>>2],a=(0|ar[A+4+(f<<2)>>2])+((0|sr(c,r))+e<<1)|0,t=1<(0|i)){for(A=i,e=0;3<A>>>0;)A>>>=1,e=e+1|0;r=e+2|0}else r=1;if(f=0<(0|i))for(A=e=0;A=(0|lr[n+((e=(l=e)+1|0)<<1)>>1])+A+(0|lr[n+(~l<<1)>>1])|0,(0|e)!=(0|i););else A=0;if(r=A+i>>r,(0|i)<32&o){if(or[a>>1]=(2+(r<<1)+(0|lr[n+-2>>1])+(0|lr[n+2>>1])|0)>>>2,t){for(e=2+(3*r|0)|0,A=1;A=(l=A)+1|0,or[a+(l<<1)>>1]=(e+(0|lr[n+(A<<1)>>1])|0)>>>2,(0|A)!=(0|i););if(t){for(e=2+(3*r|0)|0,A=1;l=a+((0|sr(A,c))<<1)|0,or[l>>1]=(e+(0|lr[n+(~A<<1)>>1])|0)>>>2,(0|(A=A+1|0))!=(0|i););if(t){r&=65535,A=1;do{for(f=0|sr(A,c),e=1;or[a+(e+f<<1)>>1]=r,(0|(e=e+1|0))!=(0|i););A=A+1|0}while((0|A)!=(0|i))}}}}else{if(!f)return;r&=65535,e=0;do{for(f=0|sr(e,c),A=0;or[a+(A+f<<1)>>1]=r,(0|(A=A+1|0))!=(0|i););e=e+1|0}while((0|e)!=(0|i))}}(A,e,r,f,n,t),ur=o;default:(function(A,e,r,i,f,n,t){A|=0,e|=0,r|=0,i|=0,f|=0,t|=0;var o,a,c,l,u,s,b,d,k,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0;ur=(k=ur)+272|0,l=(w=k)+128|0,b=0|ar[((u=0==(0|(n|=0)))?A+40|0:A+44|0)>>2],o=0|ar[A+4+(n<<2)>>2],a=(0|sr(b,r))+e<<1,d=o+a|0,s=0|ar[(u?A+5760|0:A+5768|0)>>2],35<=(0|i)&&br(41628,41615,596,41645),(0|i)<=1&&br(41670,41615,597,41645),c=0|ar[7912+(i<<2)>>2];do{if(0|tr[A+5750>>0]){if(n=0|ar[A+10368>>2],h=e>>n,n=r>>n,(0|h)<=-1&&br(41808,41845,118,41865),(0|(e=0|ar[A+10372>>2]))<=(0|h)&&br(41808,41845,118,41865),(0|n)<=-1&&br(41869,41845,119,41865),(0|n)<(0|ar[A+10376>>2])){y=(0|ar[A+10360>>2])+(3*((0|sr(e,n))+h|0)|0)|0,y=0==(2048&(cr[y>>0]|cr[y+1>>0]<<8));break}br(41869,41845,119,41865)}else y=1}while(0);if(n=(0|f)<0,17<(0|i)){if(n||Eu(0|l,0|t,2+(f<<1)|0),(n=i+-11|0)>>>0<15){if(e=0|ar[8052+(n<<2)>>2],(0|(n=(0|sr(c,f))>>5))<-1)for(;p=t+(0-(128+(0|sr(n,e))>>8)<<1)|0,or[l+(n<<1)>>1]=0|or[p>>1],(0|n)<-1;)n=n+1|0}else(0|f)<(0|(n=f<<1))&&Eu(w+(f+65<<1)|0,t+(f+1<<1)|0,0|n);if(!(m=0<(0|f)))return ur=k;p=b<<1,g=w+130|0,r=f<<1,e=0;do{if(A=0|sr(e=(n=e)+1|0,c),h=A>>5,A&=31,w=0|sr(n,b),v=32-A|0,A)for(n=0;Z=(16+(C=0|sr(0|lr[l+(1+(Z=n+h|0)<<1)>>1],v))+(0|sr(0|lr[l+(Z+2<<1)>>1],A))|0)>>>5&65535,or[d+(n+w<<1)>>1]=Z,(0|(n=n+1|0))!=(0|f););else Eu(o+(a+(0|sr(p,n)))|0,g+(h<<1)|0,0|r)}while((0|e)!=(0|f));if(!((0|f)<32&26==(0|i)&u&y&m))return ur=k;for(h=t+2|0,r=65535+(e=1<<s)|0,n=0;Z=((0|lr[t+(~n<<1)>>1])-(0|lr[t>>1])>>1)+(0|lr[h>>1])|0,C=d+((0|sr(n,b))<<1)|0,or[C>>1]=(0|Z)<0?0:65535&((0|Z)<(0|e)?Z:r),(0|(n=n+1|0))!=(0|f););return ur=k}if(!n)for(n=0;or[l+(n<<1)>>1]=0|or[t+(0-n<<1)>>1],(0|n)!=(0|f);)n=n+1|0;if((n=i+-11|0)>>>0<15){if(e=0|ar[8052+(n<<2)>>2],(0|(n=(0|sr(c,f))>>5))<-1)for(;C=t+(128+(0|sr(n,e))>>8<<1)|0,or[l+(n<<1)>>1]=0|or[C>>1],(0|n)<-1;)n=n+1|0}else if((0|f)<(0|(e=f<<1)))for(n=f;or[l+((n=(C=n)+1|0)<<1)>>1]=0|or[t+(~C<<1)>>1],(0|n)!=(0|e););if(!(v=0<(0|f)))return ur=k;w=0;do{for(g=0|sr(w,b),h=0;r=0|sr(h=(A=h)+1|0,c),e=31&r,n=0|or[l+(1+(r=(r>>5)+w|0)<<1)>>1],e&&(n=(16+(n=0|sr(65535&n,32-e|0))+(0|sr(0|lr[l+(r+2<<1)>>1],e))|0)>>>5&65535),or[d+(A+g<<1)>>1]=n,(0|h)!=(0|f););w=w+1|0}while((0|w)!=(0|f));if(!((0|f)<32&10==(0|i)&u&y&v))return ur=k;for(h=t+-2|0,r=65535+(e=1<<s)|0,n=0;Z=((0|lr[t+((n=(C=n)+1|0)<<1)>>1])-(0|lr[t>>1])>>1)+(0|lr[h>>1])|0,or[d+(C<<1)>>1]=(0|Z)<0?0:65535&((0|Z)<(0|e)?Z:r),(0|n)!=(0|f););ur=k})(A,e,r,i,f,n,t),ur=o}}:function(A,e,r,i,f,n){i|=0;var t,o,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0;ur=(o=ur)+144|0,function(A,e,r,i,f,n){e|=0,r|=0,i|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0,X=0,_=0,F=0,N=0,R=0,Y=0,J=0,D=0,Q=0,T=0,M=0,S=0,U=0,O=0,H=0,x=0,j=0,z=0,P=0,L=0,K=0,q=0,$=0,AA=0,eA=0,rA=0;ur=(m=ur)+144|0,g=(w=m)+64|0,v=0|ar[4+(A|=0)+((f|=0)<<2)>>2],b=0|ar[((f=0==(0|f))?A+40|0:A+44|0)>>2],q=f?AA=1:(AA=0|ar[A+5780>>2],0|ar[A+5784>>2]),h=0|ar[(f?A+5760|0:A+5768|0)>>2],D=0|sr(AA,e),Y=0|sr(q,r),V=0|ar[A+5804>>2],E=0|ar[A+5820>>2],F=(M=0!=(0|D))&(_=1^(C=0==(0|Y))),G=D+(0|sr(AA,i))|0,Q=0|ar[A+1248>>2],R=(0|G)<(0|Q)&_,W=D>>V,Z=Y>>V,I=D+-1>>V,G>>=V,V=Y+-1>>V,p=0|ar[A+10352>>2],f=0|sr(p,Z),y=0|ar[A+10340>>2],o=0|lr[y+(24*(f+W|0)|0)>>1],T=M?0|lr[y+(24*(f+I|0)|0)>>1]:-1,X=C?-1:(X=y+(24*((0|sr(p,V))+W|0)|0)|0,0|lr[X>>1]),N=R?(N=y+(24*((0|sr(p,V))+G|0)|0)|0,0|lr[N>>1]):-1,B=F?(B=y+(24*((0|sr(p,V))+I|0)|0)|0,0|lr[B>>1]):-1,f=0|sr(Z,E),Z=0|ar[A+10308>>2],t=0|ar[Z+(f+W<<2)>>2],J=M?0|ar[Z+(f+I<<2)>>2]:-1,p=C?-1:(p=Z+((0|sr(V,E))+W<<2)|0,0|ar[p>>2]),y=F?(y=Z+((0|sr(V,E))+I<<2)|0,0|ar[y>>2]):-1,f=R?(f=Z+((0|sr(V,E))+G<<2)|0,0|ar[f>>2]):-1,k=(0|X)==(0|o)&(0|p)==(0|t)&_,_=F&(0|B)==(0|o)&(0|y)==(0|t),c=R&(0|N)==(0|o)&(0|f)==(0|t),W=0|ar[(l=A+5864|0)>>2],C=0|ar[(u=A+5852|0)>>2],$=(0|sr(Y>>W,C))+(D>>W)|0,Z=0|ar[(s=A+10320|0)>>2],$=0|ar[Z+($<<2)>>2],p=(q+-1-Y+(0|ar[A+1252>>2])|0)/(0|q)|0,Y=(0|p)>(0|(d=i<<1))?d:p,D=(0|(D=(AA+-1-D+Q|0)/(0|AA)|0))>(0|d)?d:D,Vu(g+(Q=0-d|0)|0,0,0|(a=i<<2|1)),f=Y+-1|0;A:do{if(0<(0|Y)&&(S=e+-1|0,U=0|sr(AA,S),O=A+5944|0,H=A+10368|0,x=A+10372|0,j=A+10376|0,z=A+10360|0,M&(0|T)==(0|o)&(0|J)==(0|t))){for(X=64-((0|p)<(0|d)?p:d)|0,V=y=p=0;;){if(G=w+(X+(V<<2))|0,B=0|sr(E=f+r|0,q),W=Z+((0|sr(B>>W,C))+(U>>W)<<2)|0,W=(0|ar[W>>2])<=(0|$),0|tr[O>>0]){if(Z=0|ar[H>>2],I=U>>Z,Z=B>>Z,(0|I)<=-1){P=35;break}if((0|(C=0|ar[x>>2]))<=(0|I)){P=35;break}if((0|Z)<=-1){P=36;break}if((0|Z)>=(0|ar[j>>2])){P=36;break}M=(0|ar[z>>2])+(3*((0|sr(C,Z))+I|0)|0)|0,W&0==(768&(cr[M>>0]|cr[M+1>>0]<<8))&&(P=29)}else W&&(P=29);if(29==(0|P)&&(Z=v+(((P=0)|sr(E,b))+S)|0,y||(p=0|tr[Z>>0]),tr[G>>0]=1,tr[G+1>>0]=1,tr[G+2>>0]=1,tr[G+3>>0]=1,tr[n+~f>>0]=0|tr[Z>>0],M=v+((0|sr(E+-1|0,b))+S)|0,tr[n+(1-f-1)>>0]=0|tr[M>>0],M=v+((0|sr(E+-2|0,b))+S)|0,tr[n+(2-f-1)>>0]=0|tr[M>>0],M=v+((0|sr(E+-3|0,b))+S)|0,tr[n+(3-f-1)>>0]=0|tr[M>>0],y=y+4|0),(0|(f=f+-4|0))<=-1){L=p,K=y;break A}W=0|ar[l>>2],C=0|ar[u>>2],Z=0|ar[s>>2],V=V+1|0}35==(0|P)?br(41808,41845,118,41865):36==(0|P)&&br(41869,41845,119,41865)}else K=L=0}while(0);A:do{if(_){f=0|sr(AA,Z=e+-1|0),W=0|ar[l>>2],p=0|sr(q,C=r+-1|0),W=(0|sr(p>>W,0|ar[u>>2]))+(f>>W)|0,W=(0|ar[(0|ar[s>>2])+(W<<2)>>2])<=(0|$);do{if(0|tr[A+5944>>0]){if(P=0|ar[A+10368>>2],y=f>>P,f=p>>P,(0|y)<=-1&&br(41808,41845,118,41865),(0|(p=0|ar[A+10372>>2]))<=(0|y)&&br(41808,41845,118,41865),(0|f)<=-1&&br(41869,41845,119,41865),(0|f)<(0|ar[A+10376>>2])){if(P=(0|ar[A+10360>>2])+(3*((0|sr(p,f))+y|0)|0)|0,W&0==(768&(cr[P>>0]|cr[P+1>>0]<<8)))break;p=K,f=L;break A}br(41869,41845,119,41865)}else if(!W){p=K,f=L;break A}}while(0);p=v+((0|sr(b,C))+Z)|0,f=K?L:0|tr[p>>0],tr[n>>0]=0|tr[p>>0],tr[g>>0]=1,p=K+1|0}else p=K,f=L}while(0);A:do{if(0<(0|D)){R=0|sr(q,X=r+-1|0),Y=A+5944|0,X=0|sr(b,X),_=A+10368|0,F=A+10372|0,N=A+10376|0,V=A+10360|0,E=G=0;e:for(;;){B=w+(65+(E<<2))|0;do{if((0|G)<(0|i)?k:c){if(y=0|sr(W=G+e|0,AA),I=0|ar[l>>2],I=(0|sr(R>>I,0|ar[u>>2]))+(y>>I)|0,I=(0|ar[(0|ar[s>>2])+(I<<2)>>2])<=(0|$),0|tr[Y>>0]){if(Z=0|ar[_>>2],y>>=Z,Z=R>>Z,(0|y)<=-1){P=56;break e}if((0|(C=0|ar[F>>2]))<=(0|y)){P=56;break e}if((0|Z)<=-1){P=59;break e}if((0|Z)>=(0|ar[N>>2])){P=59;break e}if(A=(0|ar[V>>2])+(3*((0|sr(C,Z))+y|0)|0)|0,!(I&0==(768&(cr[A>>0]|cr[A+1>>0]<<8))))break}else if(!I)break;Z=v+(y=W+X|0)|0,p||(f=0|tr[Z>>0]),A=1|G,tr[B>>0]=1,tr[B+1>>0]=1,tr[B+2>>0]=1,tr[B+3>>0]=1,tr[n+A>>0]=0|tr[Z>>0],tr[n+(A+1)>>0]=0|tr[v+(y+1)>>0],tr[n+(3|G)>>0]=0|tr[v+(y+2)>>0],tr[n+(A+3)>>0]=0|tr[v+(y+3)>>0],p=p+4|0}}while(0);if((0|D)<=(0|(G=G+4|0))){eA=p,rA=f;break A}E=E+1|0}56==(0|P)?br(41808,41845,118,41865):59==(0|P)&&br(41869,41845,119,41865)}else eA=p,rA=f}while(0);if((0|eA)==(0|a))return ur=m;if(!eA)return Vu(n+Q|0,1<<h-1&255|0,0|a),ur=m;if(f=0|sr(i,-2),0|tr[g+f>>0]||(tr[n+f>>0]=rA),(0|(f|=1))>(0|d))return ur=m;for(;0|tr[g+f>>0]||(tr[n+f>>0]=0|tr[n+(f+-1)>>0]),(0|f)<(0|d);)f=f+1|0;ur=m}(A|=0,e|=0,r|=0,f|=0,n|=0,t=o+64|0);do{if(!(0|tr[A+5753>>0])){if(0|n&&3!=(0|ar[A+5776>>2]))break;Dt(A,t,f,n,i)}}while(0);switch(0|i){case 0:if(b=0|ar[(0==(0|n)?A+40|0:A+44|0)>>2],s=(0|ar[A+4+(n<<2)>>2])+((0|sr(b,r))+e)|0,1<(0|f)){for(i=f,A=0;3<i>>>0;)i>>>=1,A=A+1|0;i=A+2|0}else i=1;if((0|f)<=0)return ur=o;r=f+-1|0,n=t+(f+1)|0,a=t+~f|0,e=0;do{for(c=t+~e|0,l=r-e|0,u=0|sr(e,b),e=e+1|0,A=0;w=0|sr(0|cr[c>>0],r-A|0),A=(d=A)+1|0,h=0|sr(0|cr[n>>0],A),k=0|sr(0|cr[t+A>>0],l),k=w+f+h+k+(0|sr(0|cr[a>>0],e))>>i&255,tr[s+(d+u)>>0]=k,(0|A)!=(0|f););}while((0|e)!=(0|f));return ur=o;case 1:return function(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,n|=0;var t,o,a,c,l,u,s=0,b=0,d=0;if(u=0|ar[((o=0==(0|(f|=0)))?A+40|0:A+44|0)>>2],l=0|ar[A+4+(f<<2)>>2],t=(0|sr(u,r))+e|0,a=l+t|0,c=1<(0|i)){for(A=i,f=0;3<A>>>0;)A>>>=1,f=f+1|0;s=f+2|0}else s=1;if(b=0<(0|i))for(A=f=0;A=(0|cr[n+(f=(d=f)+1|0)>>0])+A+(0|cr[n+~d>>0])|0,(0|f)!=(0|i););else A=0;if(s=A+i>>s,(0|i)<32&o){if(tr[a>>0]=(2+(s<<1)+(0|cr[n+-1>>0])+(0|cr[n+1>>0])|0)>>>2,c){for(f=2+(3*s|0)|0,A=1;A=(d=A)+1|0,tr[a+d>>0]=(f+(0|cr[n+A>>0])|0)>>>2,(0|A)!=(0|i););if(c){for(f=2+(3*s|0)|0,A=1;d=a+(0|sr(A,u))|0,tr[d>>0]=(f+(0|cr[n+~A>>0])|0)>>>2,(0|(A=A+1|0))!=(0|i););if(c)for(b=255&s,s=(0|sr(u,r+1|0))+e+1|0,A=i+-1|0,f=0;Vu(l+(s+(0|sr(u,f)))|0,0|b,0|A),(0|(f=f+1|0))!=(0|A););}}}else{if(!b)return;for(f=255&s,A=0;Vu(l+(t+(0|sr(u,A)))|0,0|f,0|i),(0|(A=A+1|0))!=(0|i););}}(A,e,r,f,n,t),ur=o;default:(function(A,e,r,i,f,n,t){A|=0,e|=0,r|=0,i|=0,f|=0,t|=0;var o,a,c,l,u,s,b,d,k,h=0,w=0,v=0,g=0,m=0,p=0,y=0;ur=(k=ur)+144|0,l=(w=k)+64|0,b=0|ar[((u=0==(0|(n|=0)))?A+40|0:A+44|0)>>2],o=0|ar[A+4+(n<<2)>>2],a=(0|sr(b,r))+e|0,d=o+a|0,s=0|ar[(u?A+5760|0:A+5768|0)>>2],35<=(0|i)&&br(41628,41615,596,41645),(0|i)<=1&&br(41670,41615,597,41645),c=0|ar[7912+(i<<2)>>2];do{if(0|tr[A+5750>>0]){if(n=0|ar[A+10368>>2],h=e>>n,n=r>>n,(0|h)<=-1&&br(41808,41845,118,41865),(0|(e=0|ar[A+10372>>2]))<=(0|h)&&br(41808,41845,118,41865),(0|n)<=-1&&br(41869,41845,119,41865),(0|n)<(0|ar[A+10376>>2])){m=(0|ar[A+10360>>2])+(3*((0|sr(e,n))+h|0)|0)|0,m=0==(2048&(cr[m>>0]|cr[m+1>>0]<<8));break}br(41869,41845,119,41865)}else m=1}while(0);if(n=(0|f)<0,17<(0|i)){if(n||Eu(0|l,0|t,f+1|0),(n=i+-11|0)>>>0<15){if(e=0|ar[8052+(n<<2)>>2],(0|(n=(0|sr(c,f))>>5))<-1)for(;g=t+(0-(128+(0|sr(n,e))>>8))|0,tr[l+n>>0]=0|tr[g>>0],(0|n)<-1;)n=n+1|0}else(0|f)<(f<<1|0)&&Eu(w+(f+65)|0,t+(f+1)|0,0|f);if(!(g=0<(0|f)))return ur=k;v=w+65|0,n=0;do{if(r=0|sr(b,n),A=0|sr(n=n+1|0,c),h=A>>5,w=32-(A&=31)|0,A)for(e=0;p=(16+(y=0|sr(0|cr[l+(1+(p=e+h|0))>>0],w))+(0|sr(0|cr[l+(p+2)>>0],A))|0)>>>5&255,tr[d+(e+r)>>0]=p,(0|(e=e+1|0))!=(0|f););else Eu(o+(a+r)|0,v+h|0,0|f)}while((0|n)!=(0|f));if(!((0|f)<32&26==(0|i)&u&m&g))return ur=k;for(h=t+1|0,e=255+(r=1<<s)|0,n=0;p=((0|cr[t+~n>>0])-(0|cr[t>>0])>>1)+(0|cr[h>>0])|0,y=d+(0|sr(n,b))|0,tr[y>>0]=(0|p)<0?0:255&((0|p)<(0|r)?p:e),(0|(n=n+1|0))!=(0|f););return ur=k}if(!n)for(n=0;tr[l+n>>0]=0|tr[t+(0-n)>>0],(0|n)!=(0|f);)n=n+1|0;if((n=i+-11|0)>>>0<15){if(e=0|ar[8052+(n<<2)>>2],(0|(n=(0|sr(c,f))>>5))<-1)for(;y=t+(128+(0|sr(n,e))>>8)|0,tr[l+n>>0]=0|tr[y>>0],(0|n)<-1;)n=n+1|0}else if((0|f)<(0|(e=f<<1)))for(n=f;tr[l+(n=(y=n)+1|0)>>0]=0|tr[t+~y>>0],(0|n)!=(0|e););if(!(v=0<(0|f)))return ur=k;w=0;do{for(g=0|sr(w,b),h=0;r=0|sr(h=(A=h)+1|0,c),e=31&r,n=0|tr[l+(1+(r=(r>>5)+w|0))>>0],e&&(n=(16+(n=0|sr(255&n,32-e|0))+(0|sr(0|cr[l+(r+2)>>0],e))|0)>>>5&255),tr[d+(A+g)>>0]=n,(0|h)!=(0|f););w=w+1|0}while((0|w)!=(0|f));if(!((0|f)<32&10==(0|i)&u&m&v))return ur=k;for(h=t+-1|0,r=255+(e=1<<s)|0,n=0;p=((0|cr[t+(n=(y=n)+1|0)>>0])-(0|cr[t>>0])>>1)+(0|cr[h>>0])|0,tr[d+y>>0]=(0|p)<0?0:255&((0|p)<(0|e)?p:r),(0|n)!=(0|f););ur=k})(A,e,r,i,f,n,t),ur=o}})(s,b,d,k,h,w);do{if(0|tr[5750+(0|ar[l>>2])>>0]){if(0==(0|tr[A+32>>0])&&0==(0|tr[A+33+t>>0])){o=0;break}o=26==(16|v)}else o=0}while(0);o=26==(0|v)&o?2:1&o}else o=0|tr[A+36>>0]?0|tr[A+37>>0]?2:1:0;a?et(A,e,r,i,f,n,t,0!=(0|tr[A+33+t>>0]),u,o):t&&0|ar[A+28>>2]&&et(A,e,r,i,f,n,t,(or[A+14404+(t<<1)>>1]=0)!=(0|tr[A+33+t>>0]),u,0)}function Yn(A,e,r,i){e|=0,r|=0,i|=0;var f,n,t=0,o=0,a=0,c=0,l=0,u=0;ur=(n=ur)+16|0,l=n,t=0|kt(c=(A|=0)+18556|0,150+(0|ar[(r=A+18580|0)>>2])|0),e=0|kt(c,150+(0|ar[r>>2])|0),o=(t=0==(0|t))?0:0|kt(c,151+(0|ar[r>>2])|0),a=(f=0==(0|e))?0:0|kt(c,151+(0|ar[r>>2])|0),t?(r=l,e=0,u=11):(t=o?0|mt(c,1):-1,o=0|wt(c),e=t+2|0,ar[l>>2]=e,o?(r=l,e=-2-t|0,u=11):o=e),11==(0|u)&&(o=ar[r>>2]=e);do{if(!f){if(t=a?0|mt(c,1):-1,u=0|wt(c),e=t+2|0,ar[(r=l+4|0)>>2]=e,u){e=-2-t|0;break}return u=e,c=65535&o,or[(l=A+18+(i<<2)|0)>>1]=c,u&=65535,or[(i=A+18+(i<<2)+2|0)>>1]=u,void(ur=n)}r=l+4|0,e=0}while(0);u=ar[r>>2]=e,c=65535&o,or[(l=A+18+(i<<2)|0)>>1]=c,u&=65535,or[(i=A+18+(i<<2)+2|0)>>1]=u,ur=n}function Jn(A,e,r){A|=0;var i,f,n,t,o,a,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0;if(l=0|tr[(r|=0)+93784+(4400*(0|ar[(e|=0)+8>>2])|0)+2>>0],d=0|ut(A),7<(tr[(a=e+380|0)>>0]=d)>>>0)return(w=0)|w;d=r+11096+(5168*l|0)+476|0;do{if(0|ar[d>>2]){if(c=0|st(A),7<(c=(0|cr[a>>0])+c|0)>>>0)return(w=0)|w;tr[(b=e+381|0)>>0]=c;break}b=e+381|0}while(0);n=e+332|0,t=e+328|0,o=r+11096+(5168*l|0)+5164|0,i=r+11096+(5168*l|0)+5160|0,f=e+20|0,s=0;A:for(;;){if(c=0==(0|s))w=10;else if(1==(0|s)){if(0|ar[f>>2]){c=1,w=27;break}w=10}if(10==(0|w)&&(h=(w=0)<(0|(k=0|ar[(c?t:n)>>2])))){for(c=0;u=255&(0|at(A,1)),tr[e+382+(s<<4)+c>>0]=u,(0|(c=c+1|0))!=(0|k););if(0!=(0|ar[d>>2])&h)for(c=0;u=255&(0|at(A,1)),tr[e+414+(s<<4)+c>>0]=u,(0|(c=c+1|0))!=(0|k););if(h){u=0;do{if(0|tr[e+382+(s<<4)+u>>0]){if(255<((c=0|st(A))+128|0)>>>0){c=0,w=27;break A}if(or[e+446+(s<<5)+(u<<1)>>1]=(1<<cr[a>>0])+c,c=0|st(A),!((0-(l=0|ar[i>>2])|0)<=(0|c)&(0|c)<(0|l))){c=0,w=27;break A}c&=255}else or[e+446+(s<<5)+(u<<1)>>1]=1<<cr[a>>0],c=0;if(tr[e+510+(s<<4)+u>>0]=c,0|tr[e+414+(s<<4)+u>>0]){if(255<((c=0|st(A))+128|0)>>>0){c=0,w=27;break A}if(or[(l=e+542+(s<<6)+(u<<2)|0)>>1]=(1<<cr[b>>0])+c,c=0|st(A),r=0|ar[o>>2],!((0|c)>=(0|sr(r,-4))&(0|c)<(r<<2|0))){c=0,w=27;break A}if(c=r+c-((l=0|sr(0|or[l>>1],r))>>cr[b>>0])|0,l=0-r|0,tr[e+670+(s<<5)+(u<<1)>>0]=(0|c)<(0|l)?l:(0|c)<(0|r)?c:r+255|0,255<((c=0|st(A))+128|0)>>>0){c=0,w=27;break A}if(or[(l=e+542+(s<<6)+(u<<2)+2|0)>>1]=(1<<cr[b>>0])+c,c=0|st(A),r=0|ar[o>>2],!((0|c)>=(0|sr(r,-4))&(0|c)<(r<<2|0))){c=0,w=27;break A}c=255&((0|(c=r+c-((l=0|sr(0|or[l>>1],r))>>cr[b>>0])|0))<(0|(l=0-r|0))?l:(0|c)<(0|r)?c:r+255|0)}else c=1<<cr[b>>0]&65535,or[e+542+(s<<6)+(u<<2)>>1]=c,tr[e+670+(s<<5)+(u<<1)>>0]=0,or[e+542+(s<<6)+(u<<2)+2>>1]=c,c=0;tr[e+670+(s<<5)+(u<<1)+1>>0]=c,u=u+1|0}while((0|u)<(0|k))}}if(2<=(0|(s=s+1|0))){c=1,w=27;break}}return 27==(0|w)?0|c:0}function Dn(A){var e=0,r=0,i=0;for(ar[(A|=0)>>2]=0,tr[A+4>>0]=0,tr[A+5>>0]=0,ar[A+8>>2]=0,e=A+16|(tr[A+12>>0]=0),ar[A+28>>2]=0,tr[A+32>>0]=0,ar[e>>2]=0,ar[e+4>>2]=0,Po(A+34|(or[e+8>>1]=0)),ar[A+136>>2]=0,ar[A+140>>2]=0,e=ar[A+144>>2]=0;tr[A+148+e>>0]=0,ar[A+164+(e<<2)>>2]=0,tr[A+228+e>>0]=0,16!=((tr[A+244+e>>0]=0)|(e=e+1|(ar[A+260+(e<<2)>>2]=0))););for(e=A+324|0,ar[A+376>>2]=0,tr[A+380>>0]=0,i=(r=e)+48|(tr[A+381>>0]=0);(0|(r=r+4|(ar[r>>2]=0)))<(0|i););for(e=tr[e+48>>0]=0;tr[A+382+e>>0]=0,tr[A+414+e>>0]=0,or[A+446+(e<<1)>>1]=0,tr[A+510+e>>0]=0,or[A+542+(e<<2)+2>>1]=0,or[A+542+(e<<2)>>1]=0,16!=((tr[A+670+(e<<1)+1>>0]=0)|(e=e+1|(tr[A+670+(e<<1)>>0]=0))););for(e=0;tr[A+398+e>>0]=0,tr[A+430+e>>0]=0,or[A+478+(e<<1)>>1]=0,tr[A+526+e>>0]=0,or[A+606+(e<<2)+2>>1]=0,or[A+606+(e<<2)>>1]=0,16!=((tr[A+702+(e<<1)+1>>0]=0)|(e=e+1|(tr[A+702+(e<<1)>>0]=0))););for(r=A+736|0,ar[A+756>>2]=0,ar[A+760>>2]=0,tr[A+764>>0]=0,ar[A+768>>2]=0,ar[A+772>>2]=0,ar[r>>2]=0,ar[r+4>>2]=0,ar[r+8>>2]=0,ar[r+12>>2]=0,or[r+16>>1]=0,r=(tr[r+18>>0]=0)|ar[A+776>>2],(0|(e=0|ar[(i=A+780|0)>>2]))!=(0|r)&&(ar[i>>2]=e+(~((e+-4-r|0)>>>2)<<2)),ar[(e=A+788|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[e+16>>2]=0,Po(A+812|(ar[e+20>>2]=0)),e=ar[A+912>>2]=0;ar[A+916+(e<<6)>>2]=0,ar[A+1044+(e<<6)>>2]=0,ar[A+1172+(e<<6)>>2]=0,tr[A+1300+(e<<4)>>0]=0,ar[A+916+(e<<6)+4>>2]=0,ar[A+1044+(e<<6)+4>>2]=0,ar[A+1172+(e<<6)+4>>2]=0,tr[A+1300+(e<<4)+1>>0]=0,ar[A+916+(e<<6)+8>>2]=0,ar[A+1044+(e<<6)+8>>2]=0,ar[A+1172+(e<<6)+8>>2]=0,tr[A+1300+(e<<4)+2>>0]=0,ar[A+916+(e<<6)+12>>2]=0,ar[A+1044+(e<<6)+12>>2]=0,ar[A+1172+(e<<6)+12>>2]=0,tr[A+1300+(e<<4)+3>>0]=0,ar[A+916+(e<<6)+16>>2]=0,ar[A+1044+(e<<6)+16>>2]=0,ar[A+1172+(e<<6)+16>>2]=0,tr[A+1300+(e<<4)+4>>0]=0,ar[A+916+(e<<6)+20>>2]=0,ar[A+1044+(e<<6)+20>>2]=0,ar[A+1172+(e<<6)+20>>2]=0,tr[A+1300+(e<<4)+5>>0]=0,ar[A+916+(e<<6)+24>>2]=0,ar[A+1044+(e<<6)+24>>2]=0,ar[A+1172+(e<<6)+24>>2]=0,tr[A+1300+(e<<4)+6>>0]=0,ar[A+916+(e<<6)+28>>2]=0,ar[A+1044+(e<<6)+28>>2]=0,ar[A+1172+(e<<6)+28>>2]=0,tr[A+1300+(e<<4)+7>>0]=0,ar[A+916+(e<<6)+32>>2]=0,ar[A+1044+(e<<6)+32>>2]=0,ar[A+1172+(e<<6)+32>>2]=0,tr[A+1300+(e<<4)+8>>0]=0,ar[A+916+(e<<6)+36>>2]=0,ar[A+1044+(e<<6)+36>>2]=0,ar[A+1172+(e<<6)+36>>2]=0,tr[A+1300+(e<<4)+9>>0]=0,ar[A+916+(e<<6)+40>>2]=0,ar[A+1044+(e<<6)+40>>2]=0,ar[A+1172+(e<<6)+40>>2]=0,tr[A+1300+(e<<4)+10>>0]=0,ar[A+916+(e<<6)+44>>2]=0,ar[A+1044+(e<<6)+44>>2]=0,ar[A+1172+(e<<6)+44>>2]=0,tr[A+1300+(e<<4)+11>>0]=0,ar[A+916+(e<<6)+48>>2]=0,ar[A+1044+(e<<6)+48>>2]=0,ar[A+1172+(e<<6)+48>>2]=0,tr[A+1300+(e<<4)+12>>0]=0,ar[A+916+(e<<6)+52>>2]=0,ar[A+1044+(e<<6)+52>>2]=0,ar[A+1172+(e<<6)+52>>2]=0,tr[A+1300+(e<<4)+13>>0]=0,ar[A+916+(e<<6)+56>>2]=0,ar[A+1044+(e<<6)+56>>2]=0,ar[A+1172+(e<<6)+56>>2]=0,tr[A+1300+(e<<4)+14>>0]=0,ar[A+916+(e<<6)+60>>2]=0,ar[A+1044+(e<<6)+60>>2]=0,2!=((ar[A+1172+(e<<6)+60>>2]=0)|(e=e+1|(tr[A+1300+(e<<4)+15>>0]=0))););e=0|ar[A+1344>>2],(0|(i=0|ar[(r=A+1348|0)>>2]))!=(0|e)&&(ar[r>>2]=i+(~((i+-4-e|0)>>>2)<<2)),tr[(A=A+1340|0)>>0]=0}function Qn(A){var e,r=0;for(ar[(A|=0)+4720>>2]=0,ar[A+4724>>2]=0,function(A){var e,r=0,i=0;tr[(A|=0)>>0]=0,or[(r=A+2|0)>>1]=0,or[r+2>>1]=0,or[r+4>>1]=0,tr[r+6>>0]=0,ar[A+12>>2]=5,tr[A+16>>0]=0,tr[A+17>>0]=0,tr[A+18>>0]=2,tr[A+19>>0]=2,tr[A+20>>0]=2,ar[A+48>>2]=0,ar[A+52>>2]=0,tr[A+56>>0]=0,r=A+60|0,e=24+(i=A+21|0)|0;for(;tr[i>>0]=0,i=i+1|0,(0|i)<(0|e););ar[r>>2]=1,tr[A+64>>0]=0,tr[A+65>>0]=0,tr[A+66>>0]=0,tr[A+67>>0]=1,tr[A+68>>0]=0,or[A+70>>1]=0,tr[A+72>>0]=2,tr[A+73>>0]=1,tr[A+74>>0]=15,tr[A+75>>0]=15}(A+4904|(ar[A+4728>>2]=0)),e=(r=A+4984|0)+9|0;(0|(r=r+1|(tr[r>>0]=0)))<(0|e););tr[A>>0]=0}function Tn(A){var e,r;(r=0|ar[(A|=0)+4720>>2])&&((0|(e=0|ar[(A=A+4724|0)>>2]))!=(0|r)&&(ar[A>>2]=e+(100*~(((e-100-r|0)>>>0)/100|0)|0)),Vl(r))}function Mn(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f,n,t,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0;ur=(t=ur)+6240|0,n=(f=t)+96|0,l=0;A:for(;;){k=(d=3==(0|l))?2:6,w=3!=(0|l),s=(h=0==(0|l))?16:64,b=1<(0|l),u=0;do{c=n+(u<<10)|0,o=d&1==(0|u);do{if(!((255&(0|at(A,1)))<<24>>24)){if(-99999==(0|(e=0|ut(A)))|(0|u)<(0|e)){a=31;break A}if(ar[(i=f+(24*l|0)+(u<<2)|0)>>2]=16,0|e){if(!(w|1==(0|e))){a=13;break A}Eu(0|c,n+((o=u-e|0)<<10)|0,0|s),o=0|ar[f+(24*l|0)+(o<<2)>>2],ar[i>>2]=o,a=21;break}if(h){for(i=34972,o=(e=c)+16|0;tr[e>>0]=0|tr[i>>0],i=i+1|0,(0|(e=e+1|0))<(0|o););a=22;break}if((0|u)<3&(1^o)){for(i=34988,o=(e=c)+64|0;tr[e>>0]=0|tr[i>>0],i=i+1|0,(0|(e=e+1|0))<(0|o););o=16,a=21;break}for(i=35052,o=(e=c)+64|0;tr[e>>0]=0|tr[i>>0],i=i+1|0,(0|(e=e+1|0))<(0|o););o=16,a=21;break}if(b){if(254<((e=0|st(A))+7|0)>>>0){a=31;break A}o=e+8|0,e=ar[f+(24*l|0)+(u<<2)>>2]=o}else e=8,o=16;for(a=0;;){if(255<((i=0|st(A))+128|0)>>>0){a=31;break A}if(e=(e+256+i|0)%256|0,tr[n+(u<<10)+a>>0]=e,(0|s)<=(0|(a=a+1|0))){a=21;break}}}while(0);e:do{if(21==(0|a))switch((a=0)|l){case 0:a=22;break e;case 1:for(i=0|Cn(3,0),e=0;tr[((0|cr[i+(e<<1)+1>>0])<<3)+(0|cr[i+(e<<1)>>0])+(r+96+(u<<6))>>0]=0|tr[n+(u<<10)+e>>0],64!=(0|(e=e+1|0)););break;case 2:for(i=0|Cn(3,0),e=0;c=i+(e<<1)|0,v=i+(e<<1)+1|0,g=0|tr[n+(u<<10)+e>>0],tr[((0|cr[v>>0])<<5)+((0|cr[c>>0])<<1)+(r+480+(u<<8))>>0]=g,tr[((0|cr[c>>0])<<1|1)+((0|cr[v>>0])<<5)+(r+480+(u<<8))>>0]=g,tr[((0|cr[v>>0])<<5|16)+((0|cr[c>>0])<<1)+(r+480+(u<<8))>>0]=g,tr[((0|cr[v>>0])<<5|16)+((0|cr[c>>0])<<1|1)+(r+480+(u<<8))>>0]=g,64!=(0|(e=e+1|0)););tr[r+480+(u<<8)>>0]=o;break e;case 3:On(g=r+2016+(u<<10)|0,c,3),tr[g>>0]=o;break e;default:break e}}while(0);if(22==(0|a))for(i=0|Cn(2,0),e=0;tr[((0|cr[i+(e<<1)+1>>0])<<2)+(0|cr[i+(e<<1)>>0])+(r+(u<<4))>>0]=0|tr[n+(u<<10)+e>>0],16!=(0|(e=e+1|0)););u=u+1|0}while((0|u)<(0|k));if(4<=(0|(l=l+1|0))){e=0,a=32;break}}if(13==(0|a))br(35136,34965,873,35173);else{if(31==(0|a))return ur=t,0|(g=8);if(32==(0|a))return ur=t,0|e}return 0}function Sn(A){A|=0;var e=0,r=0,i=0,f=0,n=0,t=0,o=0;for(r=0|Cn(2,0),e=0;tr[A+(((0|cr[r+(e<<1)+1>>0])<<2)+(0|cr[r+(e<<1)>>0]))>>0]=0|tr[34972+e>>0],16!=(0|(e=e+1|0)););for(r=0|Cn(2,0),e=0;tr[((0|cr[r+(e<<1)+1>>0])<<2)+(0|cr[r+(e<<1)>>0])+(A+16)>>0]=0|tr[34972+e>>0],16!=(0|(e=e+1|0)););for(r=0|Cn(2,0),e=0;tr[((0|cr[r+(e<<1)+1>>0])<<2)+(0|cr[r+(e<<1)>>0])+(A+32)>>0]=0|tr[34972+e>>0],16!=(0|(e=e+1|0)););for(r=0|Cn(2,0),e=0;tr[((0|cr[r+(e<<1)+1>>0])<<2)+(0|cr[r+(e<<1)>>0])+(A+48)>>0]=0|tr[34972+e>>0],16!=(0|(e=e+1|0)););for(r=0|Cn(2,0),e=0;tr[((0|cr[r+(e<<1)+1>>0])<<2)+(0|cr[r+(e<<1)>>0])+(A+64)>>0]=0|tr[34972+e>>0],16!=(0|(e=e+1|0)););for(r=0|Cn(2,0),e=0;tr[((0|cr[r+(e<<1)+1>>0])<<2)+(0|cr[r+(e<<1)>>0])+(A+80)>>0]=0|tr[34972+e>>0],16!=(0|(e=e+1|0)););for(r=0|Cn(3,0),e=0;tr[((0|cr[r+(e<<1)+1>>0])<<3)+(0|cr[r+(e<<1)>>0])+(A+96)>>0]=0|tr[34988+e>>0],64!=(0|(e=e+1|0)););for(r=0|Cn(3,0),e=0;tr[((0|cr[r+(e<<1)+1>>0])<<3)+(0|cr[r+(e<<1)>>0])+(A+288)>>0]=0|tr[35052+e>>0],64!=(0|(e=e+1|0)););for(r=0|Cn(3,0),e=0;tr[((0|cr[r+(e<<1)+1>>0])<<3)+(0|cr[r+(e<<1)>>0])+(A+160)>>0]=0|tr[34988+e>>0],64!=(0|(e=e+1|0)););for(r=0|Cn(3,0),e=0;tr[((0|cr[r+(e<<1)+1>>0])<<3)+(0|cr[r+(e<<1)>>0])+(A+352)>>0]=0|tr[35052+e>>0],64!=(0|(e=e+1|0)););for(r=0|Cn(3,0),e=0;tr[((0|cr[r+(e<<1)+1>>0])<<3)+(0|cr[r+(e<<1)>>0])+(A+224)>>0]=0|tr[34988+e>>0],64!=(0|(e=e+1|0)););for(r=0|Cn(3,0),e=0;tr[((0|cr[r+(e<<1)+1>>0])<<3)+(0|cr[r+(e<<1)>>0])+(A+416)>>0]=0|tr[35052+e>>0],64!=(0|(e=e+1|0)););f=0;do{for(r=0|Cn(3,0),e=0;i=r+(e<<1)|0,t=34988+e|0,tr[((0|cr[(n=r+(e<<1)+1|0)>>0])<<5)+((0|cr[i>>0])<<1)+(A+480+(f<<8))>>0]=0|tr[t>>0],tr[((0|cr[i>>0])<<1|1)+((0|cr[n>>0])<<5)+(A+480+(f<<8))>>0]=0|tr[t>>0],tr[((0|cr[n>>0])<<5|16)+((0|cr[i>>0])<<1)+(A+480+(f<<8))>>0]=0|tr[t>>0],tr[((0|cr[n>>0])<<5|16)+((0|cr[i>>0])<<1|1)+(A+480+(f<<8))>>0]=0|tr[t>>0],64!=(0|(e=e+1|0)););for(r=f+3|0,i=0|Cn(3,0),e=0;t=i+(e<<1)|0,o=35052+e|0,tr[((0|cr[(n=i+(e<<1)+1|0)>>0])<<5)+((0|cr[t>>0])<<1)+(A+480+(r<<8))>>0]=0|tr[o>>0],tr[((0|cr[t>>0])<<1|1)+((0|cr[n>>0])<<5)+(A+480+(r<<8))>>0]=0|tr[o>>0],tr[((0|cr[n>>0])<<5|16)+((0|cr[t>>0])<<1)+(A+480+(r<<8))>>0]=0|tr[o>>0],tr[((0|cr[n>>0])<<5|16)+((0|cr[t>>0])<<1|1)+(A+480+(r<<8))>>0]=0|tr[o>>0],64!=(0|(e=e+1|0)););f=f+1|0}while(3!=(0|f));On(A+2016|0,34988,3),On(A+3040|0,35052,3)}function Un(A,e,r){return A|=0,e|=0,e=255&(0|at(r|=0,1)),tr[A>>0]=e,e=255&(0|at(r,1)),tr[A+1>>0]=e,e=255&(0|at(r,1)),tr[A+2>>0]=e,e=255&(0|at(r,1)),tr[A+3>>0]=e,e=255&(0|at(r,1)),tr[A+4>>0]=e,e=255&(0|at(r,1)),tr[A+5>>0]=e,e=255&(0|at(r,1)),tr[A+6>>0]=e,e=255&(0|at(r,1)),tr[A+7>>0]=e,r=255&(0|at(r,1)),tr[A+8>>0]=r,0}function On(A,e,r){A|=0,e|=0;var i=0,f=0,n=0,t=0,o=0;switch(0|(r|=0)){case 0:for(i=0|Cn(2,0),r=0;tr[A+(((0|cr[i+(r<<1)+1>>0])<<2)+(0|cr[i+(r<<1)>>0]))>>0]=0|tr[e+r>>0],16!=(0|(r=r+1|0)););return;case 1:for(i=0|Cn(3,0),r=0;tr[A+(((0|cr[i+(r<<1)+1>>0])<<3)+(0|cr[i+(r<<1)>>0]))>>0]=0|tr[e+r>>0],64!=(0|(r=r+1|0)););return;case 2:for(i=0|Cn(3,0),r=0;o=i+(r<<1)+1|0,n=e+r|0,tr[A+(((0|cr[(t=i+(r<<1)|0)>>0])<<1)+((0|cr[o>>0])<<5))>>0]=0|tr[n>>0],tr[A+(((0|cr[t>>0])<<1|1)+((0|cr[o>>0])<<5))>>0]=0|tr[n>>0],tr[A+(((0|cr[t>>0])<<1)+((0|cr[o>>0])<<5|16))>>0]=0|tr[n>>0],tr[A+(((0|cr[t>>0])<<1|1)+((0|cr[o>>0])<<5|16))>>0]=0|tr[n>>0],64!=(0|(r=r+1|0)););return;case 3:f=0|Cn(3,0),i=0;do{for(n=f+(i<<1)|0,t=f+(i<<1)+1|0,o=e+i|0,r=0;tr[A+(((0|cr[n>>0])<<2)+(((0|cr[t>>0])<<2)+r<<5))>>0]=0|tr[o>>0],tr[A+(((0|cr[n>>0])<<2|1)+(((0|cr[t>>0])<<2)+r<<5))>>0]=0|tr[o>>0],tr[A+(((0|cr[n>>0])<<2|2)+(((0|cr[t>>0])<<2)+r<<5))>>0]=0|tr[o>>0],tr[A+(((0|cr[n>>0])<<2|3)+(((0|cr[t>>0])<<2)+r<<5))>>0]=0|tr[o>>0],4!=(0|(r=r+1|0)););i=i+1|0}while(64!=(0|i));return;default:br(37782,34965,810,35116)}}function Hn(A){_u(A|=0)}function xn(A){Fu(A|=0)}function jn(A){ar[(A|=0)>>2]=0,IA(A+4|0,0),gA(A+32|0,0)}function zn(A){WA((A|=0)+4|0),vA(A+32|0)}function Pn(A,e){e|=0;var r,i=0;if(!((0|ar[(A|=0)>>2])>=(0|e))){if(_u(r=A+4|0),(0|ar[A>>2])<(0|e))for(i=A+32|0;pA(0|i,0|r),(0|ar[A>>2])<(0|e););Fu()}}function Ln(A,e){e|=0;var r;_u(r=(A|=0)+4|0),(0|ar[A>>2])>=(0|e)||(ar[A>>2]=e,Xu()),Fu()}function Kn(A,e){e|=0;var r;_u(r=(A|=0)+4|0),ar[A>>2]=(0|ar[A>>2])+e,Xu(),Fu()}function qn(A,e){e|=0;var r,i,f,n,t=0,o=0,a=0,c=0;_u(n=(A|=0)+420|0),0|tr[A>>0]||(t=0|ar[(i=A+8|0)>>2],c=(0|ar[A+12>>2])-t|0,a=0|ar[(o=A+20|0)>>2],(0|(0==(0|c)?0:(c<<8)-1|0))==((r=0|ar[(f=A+24|0)>>2])+a|0)?(function(A){var e=0,r=0,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;if(ur=(b=ur)+32|0,c=b+4|0,a=b,1023<(r=0|ar[(e=16+(A|=0)|0)>>2])>>>0){ar[e>>2]=r+-1024,c=0|ar[(l=A+4|0)>>2],s=0|ar[c>>2],c=c+4|0,ar[l>>2]=c,o=0|ar[(u=A+8|0)>>2],t=0|ar[(a=A+12|0)>>2],e=t,n=o;do{if((0|o)==(0|t)){if(r=0|ar[A>>2],(i=r)>>>0<c>>>0){f=(e=c)+((i=(1+(e-i>>2)|0)/-2|0)<<2)|0,e=(r=(e=n-e|0)>>2)?(Gu(0|f,0|c,0|e),0|ar[l>>2]):c,A=f+(r<<2)|0,ar[u>>2]=A,ar[l>>2]=e+(i<<2),e=A;break}if(1073741823<(e=0==(0|(e=e-i>>1))?1:e)>>>0&&(Fl(b=0|C(8),37845),ar[b>>2]=16004,I(0|b,3616,283)),f=0|El(e<<2),t=i=(n=f)+(e>>>2<<2)|0,f=f+(e<<2)|0,(0|c)==(0|o))e=t;else{for(e=t,r=c;ar[i>>2]=ar[r>>2],e=i=e+4|0,(0|(r=r+4|0))!=(0|o););r=0|ar[A>>2]}ar[A>>2]=n,ar[l>>2]=t,ar[u>>2]=e,ar[a>>2]=f,r&&(Vl(r),e=0|ar[u>>2])}else e=o}while(0);return ar[e>>2]=s,ar[u>>2]=4+(0|ar[u>>2]),ur=b}if(e=0|ar[(s=A+8|0)>>2],f=e-(0|ar[(u=A+4|0)>>2])|0,r=0|ar[(l=A+12|0)>>2],i=r-(0|ar[A>>2])|0,i>>>0<=f>>>0){for(e=0==(0|(e=i>>1))?1:e,ar[c+12>>2]=0,ar[c+16>>2]=A+12,1073741823<e>>>0&&(Fl(b=0|C(8),37845),ar[b>>2]=16004,I(0|b,3616,283)),i=0|El(e<<2),ar[c>>2]=i,t=i+(f>>2<<2)|0,ar[(o=c+8|0)>>2]=t,ar[(n=c+4|0)>>2]=t,ar[(t=c+12|0)>>2]=i+(e<<2),f=0|El(4096),ar[a>>2]=f,function(A,e){e|=0;var r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0;r=0|ar[(s=8+(A|=0)|0)>>2],u=0|ar[(i=A+12|0)>>2],t=u,a=r;do{if((0|r)==(0|u)){if(l=0|ar[(u=A+4|0)>>2],n=0|ar[A>>2],(f=n)>>>0<l>>>0){o=(n=l)+((t=(1+(n-f>>2)|0)/-2|0)<<2)|0,f=(n=(f=a-n|0)>>2)?(Gu(0|o,0|l,0|f),0|ar[u>>2]):l,l=o+(n<<2)|0,ar[s>>2]=l,ar[u>>2]=f+(t<<2),f=l;break}if(1073741823<(f=0==(0|(f=t-f>>1))?1:f)>>>0&&(Fl(s=0|C(8),37845),ar[s>>2]=16004,I(0|s,3616,283)),o=0|El(f<<2),c=t=(a=o)+(f>>>2<<2)|0,o=o+(f<<2)|0,(0|l)==(0|r))f=c;else{for(f=c,n=l;ar[t>>2]=ar[n>>2],f=t=f+4|0,(0|(n=n+4|0))!=(0|r););n=0|ar[A>>2]}ar[A>>2]=a,ar[u>>2]=c,ar[s>>2]=f,ar[i>>2]=o,n&&(Vl(n),f=0|ar[s>>2])}else f=r}while(0);ar[f>>2]=ar[e>>2],ar[s>>2]=4+(0|ar[s>>2])}(c,a),f=0|ar[s>>2];e=0|ar[u>>2],(0|f)!=(0|e);)$n(c,a=f+-4|0),f=a;return r=e,i=0|ar[A>>2],ar[A>>2]=ar[c>>2],ar[c>>2]=i,ar[u>>2]=ar[n>>2],ar[n>>2]=r,e=0|ar[s>>2],ar[s>>2]=ar[o>>2],ar[o>>2]=e,A=0|ar[l>>2],ar[l>>2]=ar[t>>2],ar[t>>2]=A,(0|e)!=(0|f)&&(ar[o>>2]=e+(~((e+-4-r|0)>>>2)<<2)),0|i&&Vl(i),ur=b}if((0|r)!=(0|e))return s=0|El(4096),ar[c>>2]=s,function(A,e){e|=0;var r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0;r=0|ar[(s=8+(A|=0)|0)>>2],u=0|ar[(i=A+12|0)>>2],t=u,a=r;do{if((0|r)==(0|u)){if(l=0|ar[(u=A+4|0)>>2],n=0|ar[A>>2],(f=n)>>>0<l>>>0){o=(n=l)+((t=(1+(n-f>>2)|0)/-2|0)<<2)|0,f=(n=(f=a-n|0)>>2)?(Gu(0|o,0|l,0|f),0|ar[u>>2]):l,l=o+(n<<2)|0,ar[s>>2]=l,ar[u>>2]=f+(t<<2),f=l;break}if(1073741823<(f=0==(0|(f=t-f>>1))?1:f)>>>0&&(Fl(s=0|C(8),37845),ar[s>>2]=16004,I(0|s,3616,283)),o=0|El(f<<2),c=t=(a=o)+(f>>>2<<2)|0,o=o+(f<<2)|0,(0|l)==(0|r))f=c;else{for(f=c,n=l;ar[t>>2]=ar[n>>2],f=t=f+4|0,(0|(n=n+4|0))!=(0|r););n=0|ar[A>>2]}ar[A>>2]=a,ar[u>>2]=c,ar[s>>2]=f,ar[i>>2]=o,n&&(Vl(n),f=0|ar[s>>2])}else f=r}while(0);ar[f>>2]=ar[e>>2],ar[s>>2]=4+(0|ar[s>>2])}(A,c),ur=b;a=0|El(4096),ar[c>>2]=a,function(A,e){e|=0;var r,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;r=0|ar[(b=4+(A|=0)|0)>>2],s=0|ar[A>>2],n=s;do{if((0|r)==(0|s)){if(f=0|ar[(s=A+8|0)>>2],l=0|ar[(u=A+12|0)>>2],f>>>0<(i=l)>>>0){t=(i=(n=f)+((o=(1+(i-n>>2)|0)/2|0)<<2)|0)+(0-(u=(n=n-r|0)>>2)<<2)|0,u&&(Gu(0|t,0|r,0|n),i=t,f=0|ar[s>>2]),ar[b>>2]=i,ar[s>>2]=f+(o<<2);break}if(1073741823<(n=0==(0|(n=i-n>>1))?1:n)>>>0&&(Fl(b=0|C(8),37845),ar[b>>2]=16004,I(0|b,3616,283)),a=0|El(n<<2),l=i=(c=a)+((n+3|0)>>>2<<2)|0,a=a+(n<<2)|0,(0|r)==(0|f))n=l,f=r;else{for(o=i,n=l,t=r;ar[o>>2]=ar[t>>2],n=o=n+4|0,(0|(t=t+4|0))!=(0|f););f=0|ar[A>>2]}ar[A>>2]=c,ar[b>>2]=l,ar[s>>2]=n,ar[u>>2]=a,f&&(Vl(f),i=0|ar[b>>2])}else i=r}while(0);ar[i+-4>>2]=ar[e>>2],ar[b>>2]=(0|ar[b>>2])-4}(A,c),a=0|ar[u>>2],c=0|ar[a>>2],a=a+4|0,ar[u>>2]=a,o=0|ar[s>>2],t=0|ar[l>>2],e=t,n=o;do{if((0|o)==(0|t)){if(r=0|ar[A>>2],(i=r)>>>0<a>>>0){f=(e=a)+((i=(1+(e-i>>2)|0)/-2|0)<<2)|0,e=(r=(e=n-e|0)>>2)?(Gu(0|f,0|a,0|e),0|ar[u>>2]):a,A=f+(r<<2)|0,ar[s>>2]=A,ar[u>>2]=e+(i<<2),e=A;break}if(1073741823<(e=0==(0|(e=e-i>>1))?1:e)>>>0&&(Fl(b=0|C(8),37845),ar[b>>2]=16004,I(0|b,3616,283)),f=0|El(e<<2),t=i=(n=f)+(e>>>2<<2)|0,f=f+(e<<2)|0,(0|a)==(0|o))e=t;else{for(e=t,r=a;ar[i>>2]=ar[r>>2],e=i=e+4|0,(0|(r=r+4|0))!=(0|o););r=0|ar[A>>2]}ar[A>>2]=n,ar[u>>2]=t,ar[s>>2]=e,ar[l>>2]=f,r&&(Vl(r),e=0|ar[s>>2])}else e=o}while(0);ar[e>>2]=c,ar[s>>2]=4+(0|ar[s>>2]),ur=b}(A+4|0),a=0|ar[o>>2],o=0|ar[f>>2],t=0|ar[i>>2]):o=r,ar[(0|ar[t+((c=o+a|0)>>>10<<2)>>2])+((1023&c)<<2)>>2]=e,ar[f>>2]=o+1,mA(A+448|0)),Fu()}function $n(A,e){e|=0;var r,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;r=0|ar[(b=(A|=0)+4|0)>>2],n=s=0|ar[A>>2];do{if((0|r)==(0|s)){if((f=0|ar[(s=A+8|0)>>2])>>>0<(i=l=0|ar[(u=A+12|0)>>2])>>>0){t=(i=(n=f)+((o=(1+(i-n>>2)|0)/2|0)<<2)|0)+(0-(u=(n=n-r|0)>>2)<<2)|0,u&&(Gu(0|t,0|r,0|n),i=t,f=0|ar[s>>2]),ar[b>>2]=i,ar[s>>2]=f+(o<<2);break}if(1073741823<(n=0==(0|(n=i-n>>1))?1:n)>>>0&&(Fl(b=0|C(8),37845),ar[b>>2]=16004,I(0|b,3616,283)),l=i=(c=a=0|El(n<<2))+((n+3|0)>>>2<<2)|0,a=a+(n<<2)|0,(0|r)==(0|f))n=l,f=r;else{for(o=i,n=l,t=r;ar[o>>2]=ar[t>>2],n=o=n+4|0,(0|(t=t+4|0))!=(0|f););f=0|ar[A>>2]}ar[A>>2]=c,ar[b>>2]=l,ar[s>>2]=n,ar[u>>2]=a,f&&(Vl(f),i=0|ar[b>>2])}else i=r}while(0);ar[i+-4>>2]=ar[e>>2],ar[b>>2]=(0|ar[b>>2])-4}function At(A,e,r,i,f){e|=0,r|=0,i|=0,f|=0;var n,t,o,a,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0;u=5932+(o=0|ar[(a=(A|=0)+18596|0)>>2])|0,t=0|ar[(s=A+18600|0)>>2],n=(h=-1<<ar[10092+o>>2])&i,h&=f,r=A+18536|0,(0|n)==(0|ar[(e=A+18532|0)>>2])&&(0|h)==(0|ar[r>>2])||(ar[A+18540>>2]=ar[A+18528>>2],ar[e>>2]=n,ar[r>>2]=h),k=5804+o|0,l=n?0:0==((1<<ar[k>>2])-1&h|0),e=0|ar[800+t>>2],r=0|ar[5820+o>>2],c=0|ar[5812+o>>2],r=(0|sr(c,(0|e)%(0|r)|0))==(0|n)?(0|sr((0|e)/(0|r)|0,c))==(0|h):0,e=0!=(0|tr[5966+o>>0])&&0==((1<<(b=0|ar[k>>2]))-1&(n|h)|0)?0|Yo(u,n>>b,h>>b):0;do{if(r|e)d=14;else{if(l&&0|tr[5965+o>>0]){d=14;break}e=A+18540|0}}while(0);14==(0|d)&&(e=792+(0|ar[s>>2])|0),u=0|ar[e>>2],e=n-1|0;do{if(0|vo(0|ar[a>>2],n,h,e,h)&&(d=0|ar[5864+o>>2],b=(0|sr(h>>d,0|ar[5852+o>>2]))+(e>>d)|0,(ar[(0|ar[10320+o>>2])+(b<<2)>>2]>>((0|ar[k>>2])-d<<1)|0)==(0|ar[A+4>>2]))){if(l=0|ar[a>>2],e>>=r=0|ar[l+10368>>2],r=h>>r,(0|e)<=-1&&br(41808,41845,118,41865),(0|(c=0|ar[l+10372>>2]))<=(0|e)&&br(41808,41845,118,41865),(0|r)<=-1&&br(41869,41845,119,41865),(0|r)<(0|ar[l+10376>>2])){w=(0|ar[l+10360>>2])+(3*((0|sr(c,r))+e|0)|0)+2|0,w=0|tr[w>>0];break}br(41869,41845,119,41865)}else w=u}while(0);e=h+-1|0;do{if(0|vo(0|ar[a>>2],n,h,n,e)&&(h=0|ar[5864+o>>2],d=(0|sr(e>>h,0|ar[5852+o>>2]))+(n>>h)|0,(ar[(0|ar[10320+o>>2])+(d<<2)>>2]>>((0|ar[k>>2])-h<<1)|0)==(0|ar[A+4>>2]))){if(l=0|ar[a>>2],e>>=h=0|ar[l+10368>>2],(0|(c=n>>h))<=-1&&br(41808,41845,118,41865),(0|(r=0|ar[l+10372>>2]))<=(0|c)&&br(41808,41845,118,41865),(0|e)<=-1&&br(41869,41845,119,41865),(0|e)<(0|ar[l+10376>>2])){v=(0|ar[l+10360>>2])+(3*((0|sr(r,e))+c|0)|0)+2|0,v=0|tr[v>>0];break}br(41869,41845,119,41865)}else v=u}while(0);h=0|ar[5764+o>>2],h=(e=(52+(0|ar[A+18512>>2])+(w+1+v>>1)+(h<<1)|0)%(h+52|0)|0)-h|0,ar[A+18544>>2]=e,e=(0|(e=(0|ar[5952+o>>2])+h+(0|ar[744+t>>2])+(0|ar[A+18520>>2])|0))<(0|(v=0-(c=0|ar[5772+o>>2])|0))?v:(0|e)<57?e:57,r=(0|(r=(0|ar[5956+o>>2])+h+(0|ar[748+t>>2])+(0|ar[A+18524>>2])|0))<(0|v)?v:(0|r)<57?r:57;do{if(1==(0|ar[5776+o>>2])){do{if(30<=(0|e)){if(42<(0|e)){e=e+-6|0;break}e=0|ar[6364+(e+-30<<2)>>2];break}}while(0);if(30<=(0|r)){if(42<(0|r)){r=r+-6|0;break}r=0|ar[6364+(r+-30<<2)>>2];break}}}while(0);if(ar[A+18548>>2]=c+e,ar[A+18552>>2]=c+r,e=0|ar[a>>2],c=f>>(r=0|ar[e+10368>>2]),(0|(k=i>>r))<=-1&&br(41808,41845,118,41865),(0|(d=0|ar[e+10372>>2]))<=(0|k)&&br(41808,41845,118,41865),(0|c)<=-1&&br(41869,41845,119,41865),(0|c)>=(0|ar[e+10376>>2])&&br(41869,41845,119,41865),f=(b=0|ar[e+10360>>2])+(3*((0|sr(d,c))+k|0)|0)|0,s=(e=1<<(f=(3<(f=7&(cr[f>>0]|cr[f+1>>0]<<8))>>>0?f:3)-r|0))+c|0,31!=(0|f)){l=e+k|0,u=255&h,e=c;do{for(c=0|sr(e,d),r=k;tr[b+(3*(r+c|0)|0)+2>>0]=u,(0|(r=r+1|0))<(0|l););e=e+1|0}while((0|e)<(0|s));ar[(A=A+18528|0)>>2]=h}else ar[(A=A+18528|0)>>2]=h}function et(A,e,r,i,f,n,t,o,a,c){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0;var l;return l=0|ar[(A|=0)+18596>>2],8<(0|ar[(0==(0|t)?5760+l|0:5768+l|0)>>2])?void function(A,e,r,i,f,n,t,o,a,c){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0;var l,u,s,b,d,k,h,w,v,g,m,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0,X=0,_=0,F=0,N=0;switch(ur=(m=ur)+4096|0,b=m,s=0|ar[(k=18596+(A|=0)|0)>>2],0|t){case 0:p=A+18544|0;break;case 1:p=A+18548|0;break;case 2:p=A+18552|0;break;default:br(37782,37769,367,37784)}I=0|ar[p>>2],i=0|ar[(g=A+2112|0)>>2],h=0|ar[((d=0==(0|t))?40+s|0:44+s|0)>>2],v=(0|ar[4+s+(t<<2)>>2])+((0|sr(h,r))+e<<1)|0,w=0|ar[(d?5760+s|0:5768+s|0)>>2],f=0|ar[10368+s>>2],e>>=f,f=r>>f,(0|e)<=-1&&br(41808,41845,118,41865);p=0|ar[10372+s>>2],(0|p)<=(0|e)&&br(41808,41845,118,41865);(0|f)<=-1&&br(41869,41845,119,41865);(0|f)>=(0|ar[10376+s>>2])&&br(41869,41845,119,41865);E=(0|ar[10360+s>>2])+(3*((0|sr(p,f))+e|0)|0)|0,E=(65535&(cr[E>>0]|cr[E+1>>0]<<8))>>>8&3,l=65535&E,E=(u=4==(0|n))&0!=(0|tr[5748+s>>0])&E<<16>>16==0;A:do{if(0|tr[A+32>>0]){if(r=d?A+14412|0:b,0<(0|or[(p=A+14404+(t<<1)|0)>>1]))for(f=0;or[i+(or[A+8260+(t<<11)+(f<<1)>>1]<<1)>>1]=0|or[A+2116+(t<<11)+(f<<1)>>1],(0|(f=f+1|0))<(0|or[p>>1]););E&&ks[63&ar[432+(0|ar[A+18592>>2])>>2]](i,4);do{if(c){if(f=0|ar[A+18592>>2],2==(0|c)){hs[127&ar[f+368>>2]](r,i,n);break}hs[127&ar[f+372>>2]](r,i,n);break}hs[127&ar[364+(0|ar[A+18592>>2])>>2]](r,i,n)}while(0);if(!d&&0|ar[(y=A+28|0)>>2]&&(C=0|ar[k>>2],Z=0|ar[C+5768>>2],C=0|ar[C+5760>>2],0<(0|n))){f=0;do{for(e=0|sr(f,n),p=0;F=(0|sr(ar[A+14412+((N=p+e|0)<<2)>>2]<<Z>>C,0|ar[y>>2]))>>3,ar[(N=r+(N<<2)|0)>>2]=F+(0|ar[N>>2]),(0|(p=p+1|0))!=(0|n););f=f+1|0}while((0|f)!=(0|n))}if(vs[15&ar[460+(0|ar[A+18592>>2])>>2]](v,h,r,n,w),E)for(f=i+32|0;((or[i>>1]=0)|(i=i+2|0))<(0|f););}else{if(W=1<(0|n))for(p=n,f=0;f=f+1|0,3<p>>>0;)p>>>=1;else f=0;if(C=(f=f+w|0)+-5|0,0|tr[1400+s>>0]){Z=1<<f+-6;do{if(!a){if((0|n)<32){f=t+3|0;break}f=t+1|0;break}f=t}while(0);switch((a=n+-4|0)>>>2|a<<30|0){case 0:B=5993+s+(f<<4)|0;break;case 1:B=6089+s+(f<<6)|0;break;case 3:B=6473+s+(f<<8)|0;break;case 7:B=8009+s+(f<<10)|0;break;default:br(37782,37769,492,37784)}if(0<(0|or[(r=A+14404+(t<<1)|0)>>1]))for(y=0|ar[6416+(((0|I)%6|0)<<2)>>2],p=(0|I)/6|0,e=((0|Z)<0)<<31>>31,f=0;I=0|or[A+8260+(t<<11)+(f<<1)>>1],F=(0|sr(0|cr[B+I>>0],y))<<p,a=0|or[A+2116+(t<<11)+(f<<1)>>1],a=0|Cu(0|(a=0|vu(0|(a=0|wu(0|F,((0|F)<0)<<31>>31|0,0|a,((0|a)<0)<<31>>31|0)),0|D,0|Z,0|e)),0|D,0|C),_=(0|(F=D))<-1|-1==(0|F)&a>>>0<4294934528,a=(N=(0|F)<0|0==(0|F)&a>>>0<32767)?a:32767,or[i+(I<<1)>>1]=_?-32768:65535&a,(0|(f=f+1|0))<(0|or[r>>1]););}else if(y=f+-9|0,r=1<<f+-10,p=ar[6416+(((0|I)%6|0)<<2)>>2]<<((0|I)/6|0),0<(0|or[(e=A+14404+(t<<1)|0)>>1]))for(f=0;B=(0|sr(0|or[A+2116+(t<<11)+(f<<1)>>1],p))+r>>y,or[i+(or[A+8260+(t<<11)+(f<<1)>>1]<<1)>>1]=(0|B)<-32768?-32768:65535&((0|B)<32767?B:32767),(0|(f=f+1|0))<(0|or[e>>1]););if(y=0<(0|n),!o){if(p=u&0==(l|t|0),0|c&&br(37812,37769,591,37784),0|tr[10071+s>>0]){it(A,i,n,n,1&p,v,h,w,t);break}if(f=0|ar[A+18592>>2],p){ws[31&ar[f+412>>2]](v,i,h,w);break}switch(0|n){case 4:ws[31&ar[f+416>>2]](v,i,h,w);break A;case 8:ws[31&ar[f+420>>2]](v,i,h,w);break A;case 16:ws[31&ar[f+424>>2]](v,i,h,w);break A;default:ws[31&ar[f+428>>2]](v,i,h,w);break A}}if(W){for(f=n,p=0;3<f>>>0;)f>>>=1,p=p+1|0;p=p+6|0}else p=5;e=0<(0|(e=20-w|0))?e:0,E&&ks[63&ar[432+(0|ar[A+18592>>2])>>2]](i,4),r=d?A+14412|0:b;do{if(c){if(f=0|ar[A+18592>>2],2==(0|c)){vs[15&ar[f+464>>2]](r,i,n,p,e);break}vs[15&ar[f+468>>2]](r,i,n,p,e);break}vs[15&ar[472+(0|ar[A+18592>>2])>>2]](r,i,n,p,e)}while(0);if(!d&&0|ar[(G=A+28|0)>>2]&&(X=0|ar[k>>2],V=0|ar[X+5768>>2],X=0|ar[X+5760>>2],y)){f=0;do{for(e=0|sr(f,n),p=0;F=(0|sr(ar[A+14412+((N=p+e|0)<<2)>>2]<<V>>X,0|ar[G>>2]))>>3,ar[(N=r+(N<<2)|0)>>2]=F+(0|ar[N>>2]),(0|(p=p+1|0))!=(0|n););f=f+1|0}while((0|f)!=(0|n))}if(vs[15&ar[460+(0|ar[A+18592>>2])>>2]](v,h,r,n,w),E)for(f=i+32|0;((or[i>>1]=0)|(i=i+2|0))<(0|f););}}while(0);if((0|or[(p=A+14404+(t<<1)|0)>>1])<=0)return ur=m;f=0|ar[g>>2],i=0;for(;or[f+(or[A+8260+(t<<11)+(i<<1)>>1]<<1)>>1]=0,i=i+1|0,(0|i)<(0|or[p>>1]););ur=m}(A,e,r,i,f,n,t,o,a,c):void function(A,e,r,i,f,n,t,o,a,c){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0;var l,u,s,b,d,k,h,w,v,g,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0,X=0,_=0,F=0;switch(ur=(g=ur)+4096|0,b=g,s=0|ar[(k=18596+(A|=0)|0)>>2],0|t){case 0:m=A+18544|0;break;case 1:m=A+18548|0;break;case 2:m=A+18552|0;break;default:br(37782,37769,367,37784)}W=0|ar[m>>2],i=0|ar[(v=A+2112|0)>>2],h=0|ar[((d=0==(0|t))?40+s|0:44+s|0)>>2],w=(0|ar[4+s+(t<<2)>>2])+((0|sr(h,r))+e)|0,f=0|ar[10368+s>>2],e>>=f,f=r>>f,(0|e)<=-1&&br(41808,41845,118,41865);m=0|ar[10372+s>>2],(0|m)<=(0|e)&&br(41808,41845,118,41865);(0|f)<=-1&&br(41869,41845,119,41865);(0|f)>=(0|ar[10376+s>>2])&&br(41869,41845,119,41865);B=(0|ar[10360+s>>2])+(3*((0|sr(m,f))+e|0)|0)|0,B=(65535&(cr[B>>0]|cr[B+1>>0]<<8))>>>8&3,l=65535&B,B=(u=4==(0|n))&0!=(0|tr[5748+s>>0])&B<<16>>16==0;A:do{if(0|tr[A+32>>0]){if(r=d?A+14412|0:b,0<(0|or[(m=A+14404+(t<<1)|0)>>1]))for(f=0;or[i+(or[A+8260+(t<<11)+(f<<1)>>1]<<1)>>1]=0|or[A+2116+(t<<11)+(f<<1)>>1],(0|(f=f+1|0))<(0|or[m>>1]););B&&ks[63&ar[432+(0|ar[A+18592>>2])>>2]](i,4);do{if(c){if(f=0|ar[A+18592>>2],2==(0|c)){hs[127&ar[f+368>>2]](r,i,n);break}hs[127&ar[f+372>>2]](r,i,n);break}hs[127&ar[364+(0|ar[A+18592>>2])>>2]](r,i,n)}while(0);if(!d&&0|ar[(p=A+28|0)>>2]&&(Z=0|ar[k>>2],y=0|ar[Z+5768>>2],Z=0|ar[Z+5760>>2],0<(0|n))){f=0;do{for(e=0|sr(f,n),m=0;_=(0|sr(ar[A+14412+((F=m+e|0)<<2)>>2]<<y>>Z,0|ar[p>>2]))>>3,ar[(F=r+(F<<2)|0)>>2]=_+(0|ar[F>>2]),(0|(m=m+1|0))!=(0|n););f=f+1|0}while((0|f)!=(0|n))}if(vs[15&ar[456+(0|ar[A+18592>>2])>>2]](w,h,r,n,8),B)for(f=i+32|0;((or[i>>1]=0)|(i=i+2|0))<(0|f););}else{if(e=0|ar[(d?5760+s|0:5768+s|0)>>2],C=1<(0|n))for(m=n,f=0;f=f+1|0,3<m>>>0;)m>>>=1;else f=0;if(Z=(f=f+e|0)+-5|0,0|tr[1400+s>>0]){y=1<<f+-6;do{if(!a){if((0|n)<32){f=t+3|0;break}f=t+1|0;break}f=t}while(0);switch((a=n+-4|0)>>>2|a<<30|0){case 0:I=5993+s+(f<<4)|0;break;case 1:I=6089+s+(f<<6)|0;break;case 3:I=6473+s+(f<<8)|0;break;case 7:I=8009+s+(f<<10)|0;break;default:br(37782,37769,492,37784)}if(0<(0|or[(r=A+14404+(t<<1)|0)>>1]))for(p=0|ar[6416+(((0|W)%6|0)<<2)>>2],m=(0|W)/6|0,e=((0|y)<0)<<31>>31,f=0;W=0|or[A+8260+(t<<11)+(f<<1)>>1],_=(0|sr(0|cr[I+W>>0],p))<<m,a=0|or[A+2116+(t<<11)+(f<<1)>>1],a=0|Cu(0|(a=0|vu(0|(a=0|wu(0|_,((0|_)<0)<<31>>31|0,0|a,((0|a)<0)<<31>>31|0)),0|D,0|y,0|e)),0|D,0|Z),X=(0|(_=D))<-1|-1==(0|_)&a>>>0<4294934528,a=(F=(0|_)<0|0==(0|_)&a>>>0<32767)?a:32767,or[i+(W<<1)>>1]=X?-32768:65535&a,(0|(f=f+1|0))<(0|or[r>>1]););}else if(p=f+-9|0,r=1<<f+-10,m=ar[6416+(((0|W)%6|0)<<2)>>2]<<((0|W)/6|0),0<(0|or[(e=A+14404+(t<<1)|0)>>1]))for(f=0;I=(0|sr(0|or[A+2116+(t<<11)+(f<<1)>>1],m))+r>>p,or[i+(or[A+8260+(t<<11)+(f<<1)>>1]<<1)>>1]=(0|I)<-32768?-32768:65535&((0|I)<32767?I:32767),(0|(f=f+1|0))<(0|or[e>>1]););if(e=0<(0|n),!o){if(m=u&0==(l|t|0),0|c&&br(37812,37769,591,37784),0|tr[10071+s>>0]){rt(A,i,n,n,1&m,w,h,8,t);break}if(f=0|ar[A+18592>>2],m){hs[127&ar[f+388>>2]](w,i,h);break}switch(0|n){case 4:hs[127&ar[f+392>>2]](w,i,h);break A;case 8:hs[127&ar[f+396>>2]](w,i,h);break A;case 16:hs[127&ar[f+400>>2]](w,i,h);break A;default:hs[127&ar[f+404>>2]](w,i,h);break A}}if(C){for(f=n,m=0;3<f>>>0;)f>>>=1,m=m+1|0;m=m+6|0}else m=5;B&&ks[63&ar[432+(0|ar[A+18592>>2])>>2]](i,4),r=d?A+14412|0:b;do{if(c){if(f=0|ar[A+18592>>2],2==(0|c)){vs[15&ar[f+464>>2]](r,i,n,m,12);break}vs[15&ar[f+468>>2]](r,i,n,m,12);break}vs[15&ar[472+(0|ar[A+18592>>2])>>2]](r,i,n,m,12)}while(0);if(!d&&0|ar[(E=A+28|0)>>2]&&(V=0|ar[k>>2],G=0|ar[V+5768>>2],V=0|ar[V+5760>>2],e)){f=0;do{for(e=0|sr(f,n),m=0;_=(0|sr(ar[A+14412+((F=m+e|0)<<2)>>2]<<G>>V,0|ar[E>>2]))>>3,ar[(F=r+(F<<2)|0)>>2]=_+(0|ar[F>>2]),(0|(m=m+1|0))!=(0|n););f=f+1|0}while((0|f)!=(0|n))}if(vs[15&ar[456+(0|ar[A+18592>>2])>>2]](w,h,r,n,8),B)for(f=i+32|0;((or[i>>1]=0)|(i=i+2|0))<(0|f););}}while(0);if((0|or[(m=A+14404+(t<<1)|0)>>1])<=0)return ur=g;f=0|ar[v>>2],i=0;for(;or[f+(or[A+8260+(t<<11)+(i<<1)>>1]<<1)>>1]=0,i=i+1|0,(0|i)<(0|or[m>>1]););ur=g}(A,e,r,i,f,n,t,o,a,c)}function rt(A,e,r,i,f,n,t,o,a){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0;var c,l,u,s=0,b=0,d=0,k=0;ur=(u=ur)+4096|0,l=0|ar[(A|=0)+18592>>2],c=(r=0==(0|a))?A+14412|0:u,a=20-o|0;A:do{if(1==(0|f))ws[31&ar[436+l>>2]](c,e,a,15);else switch(0|i){case 4:ws[31&ar[440+l>>2]](c,e,a,15);break A;case 8:ws[31&ar[444+l>>2]](c,e,a,15);break A;case 16:ws[31&ar[448+l>>2]](c,e,a,15);break A;default:ws[31&ar[452+l>>2]](c,e,a,15);break A}}while(0);if(!r&&0|ar[(s=A+28|0)>>2]&&(d=0|ar[A+18596>>2],b=0|ar[d+5768>>2],d=0|ar[d+5760>>2],0<(0|i))){r=0;do{for(e=0|sr(r,i),a=0;k=(0|sr(ar[A+14412+((f=a+e|0)<<2)>>2]<<b>>d,0|ar[s>>2]))>>3,ar[(f=c+(f<<2)|0)>>2]=k+(0|ar[f>>2]),(0|(a=a+1|0))!=(0|i););r=r+1|0}while((0|r)!=(0|i))}vs[15&ar[456+l>>2]](n,t,c,i,o),ur=u}function it(A,e,r,i,f,n,t,o,a){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0;var c,l,u,s=0,b=0,d=0,k=0;ur=(u=ur)+4096|0,l=0|ar[(A|=0)+18592>>2],c=(r=0==(0|a))?A+14412|0:u,a=20-o|0;A:do{if(1==(0|f))ws[31&ar[436+l>>2]](c,e,a,15);else switch(0|i){case 4:ws[31&ar[440+l>>2]](c,e,a,15);break A;case 8:ws[31&ar[444+l>>2]](c,e,a,15);break A;case 16:ws[31&ar[448+l>>2]](c,e,a,15);break A;default:ws[31&ar[452+l>>2]](c,e,a,15);break A}}while(0);if(!r&&0|ar[(s=A+28|0)>>2]&&(d=0|ar[A+18596>>2],b=0|ar[d+5768>>2],d=0|ar[d+5760>>2],0<(0|i))){r=0;do{for(e=0|sr(r,i),a=0;k=(0|sr(ar[A+14412+((f=a+e|0)<<2)>>2]<<b>>d,0|ar[s>>2]))>>3,ar[(f=c+(f<<2)|0)>>2]=k+(0|ar[f>>2]),(0|(a=a+1|0))!=(0|i););r=r+1|0}while((0|r)!=(0|i))}vs[15&ar[460+l>>2]](n,t,c,i,o),ur=u}function ft(A,e,r){A|=0,r|=0;var i,f,n,t;ur=(t=ur)+16|0,f=t,n=42==(0|tr[(e|=0)>>0]),i=0|ar[2129],n||Sr(37831,6,1,i),ar[f>>2]=r,sa(A,e+(1&n)|0,f),Or(i),ur=t}function nt(A,e,r){e|=0,r|=0;var i,f,n=0,t=0;if(tr[(A|=0)>>0]=1,tr[A+44>>0]=1,tt(A,e),f=r+-1|0,i=1<(0|r))for(n=0;t=255&(0|at(e,1)),tr[A+52+(52*n|0)>>0]=t,t=255&(0|at(e,1)),tr[A+52+(52*n|0)+44>>0]=t,(0|(n=n+1|0))!=(0|f););if((r+-2|0)>>>0<7)for(n=f;ct(e,2),(0|(n=n+1|0))<8;);if(i)for(n=0;tt(A+52+(52*n|0)|0,e),(0|(n=n+1|0))!=(0|f););}function tt(A,e){e|=0;var r=0,i=0;if(0|tr[(A|=0)>>0]){for(r=255&(0|at(e,2)),tr[A+1>>0]=r,r=255&(0|at(e,1)),tr[A+2>>0]=r,r=0|at(e,5),ar[A+4>>2]=r,i=255&((r=0)|at(e,1));tr[A+8+r>>0]=i,r=r+1|0,i=255&(0|at(e,1)),32!=(0|r););tr[A+40>>0]=i,i=255&(0|at(e,1)),tr[A+41>>0]=i,i=255&(0|at(e,1)),tr[A+42>>0]=i,i=255&(0|at(e,1)),tr[A+43>>0]=i,ct(e,44)}0|tr[A+44>>0]&&(i=0|at(e,8),ar[A+48>>2]=i)}function ot(A,e,r){r|=0;var i,f,n,t,o,a,c,l,u,s,b,d,k=0,h=0;if(ur=(d=ur)+112|0,b=d+88|0,h=d+80|0,s=d+72|0,u=d+64|0,l=d+56|0,c=d+48|0,a=d+40|0,o=d+32|0,n=d+24|0,t=d+16|0,i=d+8|0,k=d,f=(e|=0)?38853:38861,0|tr[(A|=0)>>0]){switch(e=0|tr[A+1>>0],ar[k>>2]=f,ar[k+4>>2]=e,ft(r,38871,k),k=0|tr[A+2>>0],ar[i>>2]=f,ar[4+i>>2]=k,ft(r,38900,i),0|ar[A+4>>2]){case 1:e=38985;break;case 2:e=38978;break;case 3:e=38961;break;case 4:e=38939;break;default:e=38929}for(ar[t>>2]=f,ar[4+t>>2]=e,ft(r,38990,t),ar[n>>2]=f,ft(r,39019,n),e=0;0|e&&ft(r,39210,s),ar[h>>2]=tr[A+8+e>>0],ft(r,39213,h),32!=(0|(e=e+1|0)););ft(r,39054,o),h=0|tr[A+40>>0],ar[a>>2]=f,ar[4+a>>2]=h,ft(r,39057,a),h=0|tr[A+41>>0],ar[c>>2]=f,ar[4+c>>2]=h,ft(r,39094,c),h=0|tr[A+42>>0],ar[l>>2]=f,ar[4+l>>2]=h,ft(r,39130,l),h=0|tr[A+43>>0],ar[u>>2]=f,ar[4+u>>2]=h,ft(r,39170,u)}ur=(0|tr[A+44>>0]&&(h=0|ar[A+48>>2],ar[b>>2]=f,ar[4+b>>2]=h,J[8+b>>3]=(0|h)/30,ft(r,39217,b)),d)}function at(A,e){e|=0;var r,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0;if((0|(i=0|ar[(r=(A|=0)+16|0)>>2]))<(0|e)){i=64-i|0,n=A+4|0;A:do{if(7<(0|i)){t=A+8|0,f=0|ar[n>>2];do{if(!f)break A;c=0|ar[A>>2],ar[A>>2]=c+1,c=0|cr[c>>0],f=f+-1|0,ar[n>>2]=f,c=0|Iu(0|c,0,0|(i=i+-8|0)),a=ar[(l=t)+4>>2]|D,ar[(o=t)>>2]=ar[l>>2]|c,ar[o+4>>2]=a}while(7<(0|i))}}while(0);i=64-i|0,ar[r>>2]=i}return l=0|Wu(0|(o=0|ar[(a=c=A+8|0)>>2]),0|(a=0|ar[a+4>>2]),64-e|0),a=0|Iu(0|o,0|a,0|e),ar[c>>2]=a,ar[c+4>>2]=D,ar[r>>2]=i-e,0|l}function ct(A,e){e|=0;var r,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0;if((0|(i=0|ar[(r=(A|=0)+16|0)>>2]))<(0|e)){i=64-i|0,n=A+4|0;A:do{if(7<(0|i)){t=A+8|0,f=0|ar[n>>2];do{if(!f)break A;c=0|ar[A>>2],ar[A>>2]=c+1,c=0|cr[c>>0],f=f+-1|0,ar[n>>2]=f,c=0|Iu(0|c,0,0|(i=i+-8|0)),a=ar[(l=t)+4>>2]|D,ar[(o=t)>>2]=ar[l>>2]|c,ar[o+4>>2]=a}while(7<(0|i))}}while(0);i=64-i|0,ar[r>>2]=i}c=0|Iu(0|ar[(c=l=A+8|0)>>2],0|ar[c+4>>2],0|e),ar[l>>2]=c,ar[l+4>>2]=D,ar[r>>2]=i-e}function lt(A){var e,r,i;i=(-8&ar[(e=(A|=0)+16|0)>>2]|0)/8|0,ar[A>>2]=(0|ar[A>>2])+(0-i),ar[(r=A+4|0)>>2]=(0|ar[r>>2])+i,ar[(A=A+8|0)>>2]=0,ar[A+4>>2]=0,ar[e>>2]=0}function ut(A){var e,r,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0;for(a=(A|=0)+4|0,r=A+8|0,i=(c=0)|ar[(e=A+16|0)>>2];;){if((0|i)<1){i=64-i|0;A:do{if(7<(0|i)){f=0|ar[a>>2];do{if(!f)break A;l=0|ar[A>>2],ar[A>>2]=l+1,l=0|cr[l>>0],f=f+-1|0,ar[a>>2]=f,l=0|Iu(0|l,0,0|(i=i+-8|0)),n=ar[(u=r)+4>>2]|D,ar[(t=r)>>2]=ar[u>>2]|l,ar[t+4>>2]=n}while(7<(0|i))}}while(0);t=64-i|0,ar[e>>2]=t}else t=i;if(n=0|Iu(0|(u=0|ar[(l=r)>>2]),0|(l=0|ar[l+4>>2]),1),f=D,ar[(i=r)>>2]=n,ar[i+4>>2]=f,i=t+-1|0,ar[e>>2]=i,!(-1<(0|l)|-1==(0|l)&4294967295<u>>>0))break;if(19<(0|c)){i=-99999,o=20;break}c=c+1|0}if(20==(0|o))return 0|i;if(!c)return(u=0)|u;if((0|t)<=(0|c)){i=65-t|0;A:do{if(7<(0|i)){t=0|ar[a>>2];do{if(!t)break A;u=0|ar[A>>2],ar[A>>2]=u+1,u=0|cr[u>>0],t=t+-1|0,ar[a>>2]=t,n|=u=0|Iu(0|u,0,0|(i=i+-8|0)),f|=D,ar[(u=r)>>2]=n,ar[u+4>>2]=f}while(7<(0|i))}}while(0);i=64-i|0,ar[e>>2]=i}return u=0|Wu(0|n,0|f,64-c|0),a=0|Iu(0|n,0|f,0|c),ar[(l=r)>>2]=a,ar[l+4>>2]=D,ar[e>>2]=i-c,(0|(i=u+(1<<c)|0))<=1&&br(40721,40708,146,40729),0|(u=i+-1|0)}function st(A){A=0|ut(A|=0);A:do{if((0|A)<0){switch(0|A){case-99999:break;default:break A}return 0|(A=-99999)}switch(0|A){case 0:A=0;break;default:break A}return 0|A}while(0);return 0|(A=(0|(0==(1&A|0)?0-A|0:A+1|0))/2|0)}function bt(A,e,r){if(A|=0,e|=0,-1<(0|(r|=0)))return ar[A>>2]=e,ar[A+4>>2]=e,void(ar[A+8>>2]=e+r);br(41163,41154,138,41175)}function dt(A){var e,r,i,f,n,t;f=0|ar[(i=(A|=0)+4|0)>>2],n=(0|ar[A+8>>2])-f|0,ar[A+12>>2]=510,or[(t=A+20|0)>>1]=8,((ar[(r=A+16|0)>>2]=0)|n)<=0||(A=1+f|0,ar[i>>2]=A,e=(0|cr[f>>0])<<8,ar[r>>2]=e,1!=((or[t>>1]=0)|n)&&(ar[i>>2]=2+f,ar[r>>2]=0|e|cr[A>>0],or[t>>1]=-8))}function kt(A,e){e|=0;var r=0,i=0,f=0,n=0,t=0,o=0,a=0;return i=(i=0|ar[(t=(A|=0)+12|0)>>2])-(r=0|cr[(i>>>6)-4+(40738+(((0|cr[e>>0])>>>1&255)<<2))>>0])|0,n=(ar[t>>2]=i)<<7,(f=0|ar[(a=A+16|0)>>2])>>>0<n>>>0?(o=255&(f=1&(r=0|tr[e>>0])),tr[e>>0]=tr[41090+((255&r)>>>1&255)>>0]<<1&255|f,32768<=n>>>0?0|(a=o):(ar[t>>2]=i<<1&67108862,f=ar[a>>2]<<1,ar[a>>2]=f,e=1+(0|or[(r=A+20|0)>>1])<<16>>16,(or[r>>1]=e)<<16>>16?0|(a=o):(or[r>>1]=-8,(i=0|ar[(r=A+4|0)>>2])>>>0>=(0|ar[A+8>>2])>>>0||(ar[r>>2]=i+1,ar[a>>2]=0|f|cr[i>>0]),0|(a=o)))):(o=0|cr[40994+(r>>>3)>>0],ar[a>>2]=f-n<<o,ar[t>>2]=r<<o,t=255&(i=1&(r=0|tr[e>>0])^1),(255&r)<2&&(r=i|-2&r,tr[e>>0]=r),tr[e>>0]=tr[41026+((255&r)>>>1&255)>>0]<<1&255|1&r,r=(0|lr[(n=A+20|0)>>1])+o|0,32768&(or[n>>1]=r)|0||(r=r<<16>>16,(f=0|ar[(i=A+4|0)>>2])>>>0<(0|ar[A+8>>2])>>>0&&(ar[i>>2]=f+1,ar[a>>2]=(0|cr[f>>0])<<r|ar[a>>2]),or[n>>1]=r+65528),0|(a=t))}function ht(A){var e=0,r=0,i=0,f=0,n=0;return r=(0|ar[(e=(A|=0)+12|0)>>2])-2|0,(i=(ar[e>>2]=r)<<7)>>>0<=(f=0|ar[(n=A+16|0)>>2])>>>0?0|(n=1):32768<=i>>>0?(n=0)|n:(ar[e>>2]=r<<1&67108862,i=f<<1,ar[n>>2]=i,f=1+(0|or[(e=A+20|0)>>1])<<16>>16,(or[e>>1]=f)<<16>>16?(n=0)|n:(or[e>>1]=-8,(r=0|ar[(e=A+4|0)>>2])>>>0>=(0|ar[A+8>>2])>>>0||(ar[e>>2]=r+1,ar[n>>2]=i+(0|cr[r>>0])),(n=0)|n))}function wt(A){var e,r,i=0,f=0,n=0,t=0;return f=ar[(r=(A|=0)+16|0)>>2]<<1,ar[r>>2]=f,t=1+(0|or[(e=A+20|0)>>1])<<16>>16,-1<(or[e>>1]=t)<<16>>16&&(n=0|ar[(i=A+4|0)>>2],(0|ar[A+8>>2])>>>0>n>>>0)&&(or[e>>1]=-8,ar[i>>2]=n+1,f=0|f|cr[n>>0],ar[r>>2]=f),f>>>0<(i=ar[A+12>>2]<<7)>>>0?(t=0)|t:(ar[r>>2]=f-i,0|(t=1))}function vt(A,e){var r,i,f,n,t=0,o=0,a=0,c=0,l=0;if((0|(e|=0))<=0)return 0|(l=e);for(i=(A|=0)+16|0,f=A+20|0,n=A+8|0,l=A+4|0,r=A+12|0,t=(A=0)|or[f>>1],o=0|ar[i>>2];;){if(o<<=1,ar[i>>2]=o,t=t+1<<16>>16,-1<(or[f>>1]=t)<<16>>16&&(c=0|ar[l>>2],(0|ar[n>>2])>>>0>c>>>0)?(or[f>>1]=-8,ar[l>>2]=c+1,a=0|cr[c>>0]|o,ar[i>>2]=a,t=-8):a=o,a>>>0<(o=ar[r>>2]<<7)>>>0){t=8;break}if(o=a-o|0,ar[i>>2]=o,(0|e)<=(0|(A=A+1|0))){A=e,t=8;break}}return 8==(0|t)?0|A:0}function gt(A,e){A|=0;var r,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0;if((0|(e|=0))<9)return e?(i=ar[(t=A+16|0)>>2]<<e,ar[t>>2]=i,f=(0|lr[(n=A+20|0)>>1])+e|0,0==(32768&(or[n>>1]=f)|0)&&(a=0|ar[(o=A+4|0)>>2],(0|ar[A+8>>2])>>>0>a>>>0)&&(ar[o>>2]=a+1,u=f<<16>>16,s=(0|cr[a>>0])<<u,or[n>>1]=u+65528,i|=s,ar[t>>2]=i),u=ar[A+12>>2]<<7,u=i-(0|sr(s=(0|(l=(i>>>0)/(u>>>0)|0))<(0|(s=1<<e))?l:s+-1|0,u))|0,ar[t>>2]=u,0|s):(s=0)|s;if(i=ar[(l=A+16|0)>>2]<<8,ar[l>>2]=i,n=65535&(f=8+(0|lr[(u=A+20|0)>>1])|0),or[u>>1]=n,0==(32768&f|0)&&(c=0|ar[(t=A+4|0)>>2],(0|ar[A+8>>2])>>>0>c>>>0)?(ar[t>>2]=c+1,n=f<<16>>16,f=(0|cr[c>>0])<<n,n=n+65528&65535,or[u>>1]=n,f|=i,ar[l>>2]=f):f=i,r=ar[A+12>>2]<<7,t=f-(0|sr(i=(0|(i=(f>>>0)/(r>>>0)|0))<255?i:255,r))|0,ar[l>>2]=t,!(f=e+-8|0))return 0|(s=i);for(e=A+8|0,c=A+4|0;f=f+-1|0,a=i<<1,i=t<<1,ar[l>>2]=i,n=n+1<<16>>16,-1<(or[u>>1]=n)<<16>>16&&(s=0|ar[c>>2],(0|ar[e>>2])>>>0>s>>>0)&&(or[u>>1]=-8,ar[c>>2]=s+1,i=0|cr[s>>0]|i,ar[l>>2]=i,n=-8),i>>>0<r>>>0?(t=0,o=i):(o=i-r|0,ar[l>>2]=o,t=1),i=t|a,f;)t=o;return 0|i}function mt(A,e){var r,i,f,n,t,o,a=0,c=0,l=0,u=0,s=0,b=0;for(r=(A|=0)+16|0,f=A+8|0,n=A+4|0,t=A+12|0,o=(e|=0)+31|0,a=(u=0)|or[(i=A+20|0)>>1],c=0|ar[r>>2];c<<=1,ar[r>>2]=c,a=a+1<<16>>16,-1<(or[i>>1]=a)<<16>>16&&(s=0|ar[n>>2],(0|ar[f>>2])>>>0>s>>>0)?(or[i>>1]=-8,ar[n>>2]=s+1,l=0|cr[s>>0]|c,ar[r>>2]=l,a=-8):l=c,!(l>>>0<(c=ar[t>>2]<<7)>>>0);){if(c=l-c|0,ar[r>>2]=c,(0|e)==(0|o)){e=0,b=8;break}u=u+(1<<e)|0,e=e+1|0}return 8==(0|b)?0|e:0|(b=(0|gt(A,e))+u|0)}function pt(A){ar[(A|=0)>>2]=0,ar[A+4>>2]=0}function yt(A,e){A|=0;var r,i=0;ur=(r=ur)+16|0,i=r,0|(i=0|ar[(e|=0)+4>>2])&&(ar[i>>2]=1+(0|ar[i>>2])),ar[A+4>>2]=i,ar[A>>2]=ar[e>>2],ur=r}function Zt(A){var e,r,i,f=0;ur=(r=ur)+16|0,f=r,ur=((f=0|ar[(e=(A|=0)+4|0)>>2])&&(i=(0|ar[f>>2])-1|0,ar[f>>2]=i,0|i||(0|(f=0|ar[A>>2])&&Xl(f),(f=0|ar[e>>2])&&Vl(f))),r)}function Ct(A,e,r){e|=0,r|=0;var i,f,n=0,t=0,o=0;ur=(f=ur)+16|0,o=f+8|0,n=f,i=0|ar[(n=(A|=0)+4|0)>>2];do{if(0|i){if(1==(0|(t=0|ar[i>>2])))return Wt(o=0|ar[A>>2],e,r),void(ur=f);if(1<(0|t)){ar[i>>2]=t+-1;break}br(41243,41253,177,41269)}}while(0);o=0|Gl(172),ar[A>>2]=o,A=0|El(4),ar[n>>2]=A,ar[A>>2]=1,Wt(o,e,r),ur=f}function Wt(A,e,r){A|=0,e|=0,r|=0;var i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0;do{if(0<(0|e)){if(o=(0|r)<0?0:(0|r)<51?r:51,i=A+5|0,f=(255&(a=(f=63<(0|(a=(0|(a=((a=0|ar[6440+(12*(n=e+-1|0)|0)>>2])<<3&120)-16+((0|sr((5*(a>>4)|0)-45|0,o))>>4)|0))<1?1:(0|a)<126?a:126)))?a+64|0:63-a|0))<<1&255|1&f,63<=(127&a)>>>0&&(t=f,tr[(a=i)>>0]=t,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+6|0,f=(255&(a=(f=63<(0|(a=(0|(a=((a=0|ar[6440+(12*n|0)+4>>2])<<3&120)-16+((0|sr((5*(a>>4)|0)-45|0,o))>>4)|0))<1?1:(0|a)<126?a:126)))?a+64|0:63-a|0))<<1&255|1&f,63<=(127&a)>>>0&&(t=f,tr[(a=i)>>0]=t,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+7|0,f=(255&(a=(f=63<(0|(a=(0|(a=((a=0|ar[6440+(12*n|0)+8>>2])<<3&120)-16+((0|sr((5*(a>>4)|0)-45|0,o))>>4)|0))<1?1:(0|a)<126?a:126)))?a+64|0:63-a|0))<<1&255|1&f,63<=(127&a)>>>0&&(t=f,tr[(a=i)>>0]=t,br(41315,41253,210,41336)),Vu(0|i,0|f,1),f=A+149|0,i=(255&(a=(i=63<(0|(a=(0|(a=((a=0|ar[7880+(n<<2)>>2])<<3&120)-16+((0|sr((5*(a>>4)|0)-45|0,o))>>4)|0))<1?1:(0|a)<126?a:126)))?a+64|0:63-a|0))<<1&255|1&i,63<=(127&a)>>>0&&(tr[f>>0]=i,br(41315,41253,210,41336)),Vu(0|f,0|i,1),i=A+147|0,f=(255&(a=(f=63<(0|(a=(0|(a=((a=0|ar[6464+(n<<2)>>2])<<3&120)-16+((0|sr((5*(a>>4)|0)-45|0,o))>>4)|0))<1?1:(0|a)<126?a:126)))?a+64|0:63-a|0))<<1&255|1&f,63<=(127&a)>>>0&&(tr[i>>0]=f,br(41315,41253,210,41336)),Vu(0|i,0|f,1),f=A+148|0,i=(255&(a=(i=63<(0|(a=(0|(a=((a=0|ar[6472+(n<<2)>>2])<<3&120)-16+((0|sr((5*(a>>4)|0)-45|0,o))>>4)|0))<1?1:(0|a)<126?a:126)))?a+64|0:63-a|0))<<1&255|1&i,63<=(127&a)>>>0&&(tr[f>>0]=i,br(41315,41253,210,41336)),Vu(0|f,0|i,1),i=A+156|0,f=(255&(a=(f=63<(0|(a=(0|(a=104+((0|sr(o,-20))>>4)|0))<1?1:(0|a)<126?a:126)))?a+64|0:63-a|0))<<1&255|1&f,63<=(127&a)>>>0&&(t=f,tr[(a=i)>>0]=t,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+157|0,t=(255&(a=(t=63<(0|(a=(0|(a=104+((0|sr(o,-25))>>4)|0))<1?1:(0|a)<126?a:126)))?a+64|0:63-a|0))<<1&255|1&t,63<=(127&a)>>>0&&(n=t,tr[(a=i)>>0]=n,br(41315,41253,210,41336)),Vu(0|i,0|t,1),i=A+158|0,f=(255&(a=(f=63<(0|(a=(0|(a=104+((0|sr(o,-30))>>4)|0))<1?1:(0|a)<126?a:126)))?a+64|0:63-a|0))<<1&255|1&f,63<=(127&a)>>>0&&(n=f,tr[(a=i)>>0]=n,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+159|0,f=(255&(a=(f=63<(0|(a=(0|(a=104+((0|sr(o,-40))>>4)|0))<1?1:(0|a)<126?a:126)))?a+64|0:63-a|0))<<1&255|1&f,63<=(127&a)>>>0&&(n=f,tr[(a=i)>>0]=n,br(41315,41253,210,41336)),Vu(0|i,0|f,1),Vu(A+160|0,0|f,1),tr[A+154>>0]=14,tr[A+155>>0]=14,i=A+150|0,f=(255&(a=(f=63<(0|(a=(0|(a=((a=0|ar[(n=7864+((1==(0|e)?0:2)<<2)|0)>>2])<<3&120)-16+((0|sr((5*(a>>4)|0)-45|0,o))>>4)|0))<1?1:(0|a)<126?a:126)))?a+64|0:63-a|0))<<1&255|1&f,63<=(127&a)>>>0&&(l=f,tr[(a=i)>>0]=l,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+151|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[n+4>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,o))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(a=f,tr[(l=i)>>0]=a,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=(255&(l=(i=63<(0|(l=(0|(l=48+(5*o>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&i,f=A+152|0,63<=(127&l)>>>0&&(tr[f>>0]=i,br(41315,41253,210,41336)),Vu(0|f,0|i,1),Vu(A+153|0,0|t,1),f=A+143|0,i=(255&(l=(i=63<(0|(l=(0|(l=72+((0|sr(o,-5))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&i,(127&l)>>>0<63){Vu(0|f,0|i,4);break}tr[f>>0]=i,br(41315,41253,210,41336)}}while(0);a=(0|r)<0?0:(0|r)<51?r:51,i=A+2|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[6480+(12*e|0)>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(r=f,tr[(l=i)>>0]=r,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+3|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[6480+(12*e|0)+4>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(r=f,tr[(l=i)>>0]=r,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+4|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[6480+(12*e|0)+8>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(r=f,tr[(l=i)>>0]=r,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+8|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[(n=7828+((2!=(0|e)?e:5)<<2)|0)>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(r=f,tr[(l=i)>>0]=r,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+9|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[n+4>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(r=f,tr[(l=i)>>0]=r,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+10|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[n+8>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(r=f,tr[(l=i)>>0]=r,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+11|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[n+12>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(r=f,tr[(l=i)>>0]=r,br(41315,41253,210,41336)),Vu(0|i,0|f,1),f=A+12|0,i=(255&(l=(i=63<(0|(l=(0|(l=((l=0|ar[7816+(e<<2)>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&i,63<=(127&l)>>>0&&(tr[f>>0]=i,br(41315,41253,210,41336)),Vu(0|f,0|i,1),i=A+13|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[6516+(e<<2)>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(tr[i>>0]=f,br(41315,41253,210,41336)),Vu(0|i,0|f,1),f=A+14|0,n=(255&(l=(n=63<(0|(l=(0|(l=((l=0|ar[(i=6528+((0==(0|e)?0:2)<<2)|0)>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&n,63<=(127&l)>>>0&&(r=n,tr[(l=f)>>0]=r,br(41315,41253,210,41336)),Vu(0|f,0|n,1),l=0|ar[i+4>>2],i=A+15|0,f=(255&(l=(f=63<(0|(l=(0|(l=(l<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(r=f,tr[(l=i)>>0]=r,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+16|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[(n=7768+((r=e<<2)<<2)|0)>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(o=f,tr[(l=i)>>0]=o,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+17|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[n+4>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(o=f,tr[(l=i)>>0]=o,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+18|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[n+8>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(o=f,tr[(l=i)>>0]=o,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+19|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[n+12>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(o=f,tr[(l=i)>>0]=o,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+20|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[(n=7732+(3*e<<2)|0)>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(o=f,tr[(l=i)>>0]=o,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+21|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[n+4>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(o=f,tr[(l=i)>>0]=o,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+22|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[n+8>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(o=f,tr[(l=i)>>0]=o,br(41315,41253,210,41336)),Vu(0|i,0|f,1),n=A+25|0,o=7516+(18*e<<2)|0,i=0;do{if(f=n+i|0,t=(255&(l=(t=63<(0|(l=(0|(l=((l=0|ar[o+(i<<2)>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&t,63<=(127&l)>>>0){c=35;break}Vu(0|f,0|t,1),i=i+1|0}while((0|i)<18);35==(0|c)&&(tr[f>>0]=t,br(41315,41253,210,41336)),f=A+43|0,i=0;do{if(n=f+i|0,t=(255&(l=(t=63<(0|(l=(0|(l=((l=0|ar[o+(i<<2)>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&t,63<=(127&l)>>>0){c=39;break}Vu(0|n,0|t,1),i=i+1|0}while((0|i)<18);39==(0|c)&&(tr[n>>0]=t,br(41315,41253,210,41336)),i=A+61|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[(n=6544+(r<<2)|0)>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(r=f,tr[(l=i)>>0]=r,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+62|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[n+4>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(r=f,tr[(l=i)>>0]=r,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+63|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[n+8>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(r=f,tr[(l=i)>>0]=r,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+64|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[n+12>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(r=f,tr[(l=i)>>0]=r,br(41315,41253,210,41336)),Vu(0|i,0|f,1),n=A+65|0,i=0;do{if(f=n+i|0,t=(255&(l=(t=63<(0|(l=(0|(l=((l=0|ar[6592+(168*e|0)+(i<<2)>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&t,63<=(127&l)>>>0){c=45;break}Vu(0|f,0|t,1),i=i+1|0}while((0|i)<42);45==(0|c)&&(tr[f>>0]=t,br(41315,41253,210,41336)),i=A+107|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[7096+(e<<3)>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(r=f,tr[(l=i)>>0]=r,br(41315,41253,210,41336)),Vu(0|i,0|f,1),i=A+108|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[7096+(e<<3)+4>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(r=f,tr[(l=i)>>0]=r,br(41315,41253,210,41336)),Vu(0|i,0|f,1),t=A+109|0,f=7228+(24*e<<2)|0,i=0;do{if(n=t+i|0,o=(255&(l=(o=63<(0|(l=(0|(l=((l=0|ar[f+(i<<2)>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&o,63<=(127&l)>>>0){c=51;break}Vu(0|n,0|o,1),i=i+1|0}while((0|i)<24);51==(0|c)&&(tr[n>>0]=o,br(41315,41253,210,41336)),f=A+133|0,n=7120+(6*e<<2)|0,i=0;do{if(t=f+i|0,o=(255&(l=(o=63<(0|(l=(0|(l=((l=0|ar[n+(i<<2)>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&o,63<=(127&l)>>>0){c=55;break}Vu(0|t,0|o,1),i=i+1|0}while((0|i)<6);if(55==(0|c)&&(tr[t>>0]=o,br(41315,41253,210,41336)),i=(255&(l=(i=63<(0|(l=(0|(l=((l=0|ar[7192+(e<<2)>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&i,63<=(127&l)>>>0&&(tr[A>>0]=i,br(41315,41253,210,41336)),Vu(0|A,0|i,1),i=A+1|0,f=(255&(l=(f=63<(0|(l=(0|(l=((l=0|ar[7204+(e<<2)>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&f,63<=(127&l)>>>0&&(tr[i>>0]=f,br(41315,41253,210,41336)),Vu(0|i,0|f,1),tr[A+139>>0]=1,tr[A+140>>0]=1,f=A+141|0,i=(255&(l=(i=63<(0|(l=(0|(l=72+((0|sr(a,-5))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&i,63<=(127&l)>>>0&&(tr[f>>0]=i,br(41315,41253,210,41336)),Vu(0|f,0|i,1),Vu(A+142|0,0|i,1),f=A+161|0,i=(255&(l=(i=63<(0|(l=(0|(l=((l=0|ar[7216+(e<<2)>>2])<<3&120)-16+((0|sr((5*(l>>4)|0)-45|0,a))>>4)|0))<1?1:(0|l)<126?l:126)))?l+64|0:63-l|0))<<1&255|1&i,(127&l)>>>0<63)return Vu(0|f,0|i,1),tr[(e=l=A+162|0)>>0]=1,tr[e+1>>0]=1,tr[e+2>>0]=1,tr[e+3>>0]=1,tr[(l=l+4|0)>>0]=1,tr[l+1>>0]=1,tr[l+2>>0]=1,tr[l+3>>0]=1,tr[(l=A+170|0)>>0]=1,tr[l+1>>0]=1,tr[A+23>>0]=1,void(tr[A+24>>0]=1);tr[f>>0]=i,br(41315,41253,210,41336)}function It(A){var e,r,i=0;ur=(r=ur)+16|0,i=r,ur=((i=0|ar[(e=(A|=0)+4|0)>>2])&&(ar[i>>2]=(0|ar[i>>2])-1,ar[A>>2]=0,ar[e>>2]=0),r)}function Bt(A){var e,r,i=0,f=0;ur=(r=ur)+16|0,i=r,(i=0|ar[(e=(A|=0)+4|0)>>2])||br(41383,41253,95,41390),ur=((0|(f=0|ar[i>>2]))<=1||(ar[i>>2]=f+-1,f=0|ar[A>>2],i=0|Gl(172),ar[A>>2]=i,A=0|El(4),ar[e>>2]=A,ar[A>>2]=1,Eu(0|i,0|f,172)),r)}function Et(A,e){A|=0;var r,i,f=0,n=0;return ur=(i=ur)+32|0,f=i,f=0|ar[(r=(e|=0)+4|0)>>2],ur=(f?(ar[f>>2]=1+(0|ar[f>>2]),0|(f=0|ar[(n=A+4|0)>>2])&&(ar[f>>2]=(0|ar[f>>2])-1,ar[A>>2]=0,ar[n>>2]=0),ar[A>>2]=ar[e>>2],ar[n>>2]=ar[r>>2]):(f=0|ar[(n=A+4|0)>>2])&&(ar[f>>2]=(0|ar[f>>2])-1,ar[A>>2]=0,ar[n>>2]=0),i),0|A}function Gt(A,e){e|=0;var r,i,f,n,t,o,a,c,l,u,s,b,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0,X=0,_=0,F=0,N=0,R=0,Y=0,J=0,D=0,Q=0,T=0;if(s=0|ar[(A|=0)+5808>>2],Q=(1<<(b=0|ar[A+5804>>2]))-1|0,T=0|ar[A+5820>>2],d=e<<b>>(J=0|ar[A+5800>>2]),J=e+1<<b>>J,(0|(J=(0|(D=0|ar[A+5824>>2]))<(0|J)?D:J))<=(0|d))return(T=0)|(T&=Q=1);i=A+10372|0,f=A+10360|0,n=A+10348|0,t=A+10352|0,o=A+10356|0,a=A+10340|0,c=A+48|0,l=A+52|0,u=A+5977|0,D=A+10308|0,k=(e=0)|ar[(r=A+5816|0)>>2];A:for(;;){if(0<(0|k)){V=0==(0|(_=0|sr(d,s)))?0:32,F=0|sr(_>>b,T),Y=0!=(0|_)&0==(_&Q|0),R=0|sr((N=_+-1|0)>>b,T),X=0;do{if(G=(0|sr(0|ar[i>>2],d))+X|0,G=(0|ar[f>>2])+(3*G|0)|0,E=65535&(G=7&(cr[G>>0]|cr[G+1>>0]<<8)),G<<16>>16){if(Z=(G=0|sr(X,s))>>b,h=_>>(p=0|ar[n>>2]),(0|(C=G>>p))<=-1){d=8;break A}if((0|(W=0|ar[t>>2]))<=(0|C)){d=8;break A}if((0|h)<=-1){d=11;break A}if((0|(I=0|ar[o>>2]))<=(0|h)){d=11;break A}if(B=0|ar[a>>2],v=0|sr(W,h),w=0|lr[B+(24*(v+C|0)|0)+2>>1],h=0|ar[c>>2],(y=(0|ar[l>>2])-h>>2)>>>0<=w>>>0){k=0,d=33;break A}m=0|ar[(g=h)+(w<<2)>>2],h=0==(0|G)?0:16;do{if(0!=(0|G)&0==(G&Q|0)){if(!(0|tr[m+764>>0])){if(!(-1<(0|(w=G+-1>>p))&(0|w)<(0|W))){d=16;break A}if((v=0|lr[B+(24*(v+w|0)|0)+2>>1])>>>0<y>>>0&&(0|ar[m+800>>2])!=(0|ar[800+(0|ar[g+(v<<2)>>2])>>2])){w=0;break}}w=0|tr[u>>0]?h:(w=0|ar[D>>2],(0|ar[w+(Z+F<<2)>>2])==(0|ar[w+((G+-1>>b)+F<<2)>>2])?h:0)}else w=h}while(0);do{if(Y){if(!(0|tr[m+764>>0])){if(!(-1<(0|(h=N>>p))&(0|h)<(0|I))){d=24;break A}if(B=B+(24*((0|sr(W,h))+C|0)|0)+2|0,(B=0|lr[B>>1])>>>0<y>>>0&&(0|ar[m+800>>2])!=(0|ar[800+(0|ar[g+(B<<2)>>2])>>2])){h=0;break}}h=0|tr[u>>0]?V:(h=0|ar[D>>2],(0|ar[h+(Z+F<<2)>>2])==(0|ar[h+(Z+R<<2)>>2])?V:0)}else h=V}while(0);0|tr[m+754>>0]||(Rt(A,G,_,E,0,255&w,255&h),Yt(A,G,_,E,0,0),e=1,k=0|ar[r>>2])}X=X+1|0}while((0|X)<(0|k))}if((0|J)<=(0|(d=d+1|0))){k=1,d=33;break}}if(8==(0|d))br(41808,41845,118,41865);else if(11==(0|d))br(41869,41845,119,41865);else if(16==(0|d))br(41808,41845,118,41865);else if(24==(0|d))br(41869,41845,119,41865);else if(33==(0|d))return 0|(T=k&e);return 0}function Vt(A,e,r,i,f,n){r|=0,i|=0,f|=0;var t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_,F,N,R=0,Y=0,J=0,D=0,Q=0,T=0,M=0,S=0,U=0,O=0,H=0,x=0,j=0,z=0,P=0,L=0,K=0,q=0,$=0,AA=0,eA=0,rA=0,iA=0,fA=0,nA=0;if(X=(e|=0)?2:1,_=e?1:2,F=1&e,N=1&(1^e),V=e?80:160,E=e?16:32,nA=(0|(n|=0))<(0|(nA=0|ar[(G=(A|=0)+10472|0)>>2]))?n:nA,!((0|(fA=(0|i)<(0|(fA=0|ar[A+10476>>2]))?i:fA))<=(0|r))){o=(0|f)<(0|nA),a=A+10460|0,c=A+10368|0,l=A+10372|0,u=A+10376|0,s=A+10360|0,b=A+10388|0,d=A+10392|0,k=A+10396|0,h=A+10380|0,w=A+10348|0,v=A+10352|0,g=A+10356|0,m=A+10340|0,p=A+48|0,y=A+52|0,Z=A+10332|0,C=A+10516|0,W=A+10448|0,I=A+10452|0,B=A+10456|0,t=A+10440|0;A:for(;;){if(o){eA=(0|(AA=r<<2))/4|0,rA=AA-N|0,$=f;do{if(iA=(0|(T=$<<2))/4|0,e=(0|sr(0|ar[G>>2],eA))+iA|0,e=(0|ar[a>>2])+e|0,(D=255&(n=0|tr[e>>0]))&V){if(Q=T-F|0,n=rA>>(A=0|ar[c>>2]),(0|(e=Q>>A))<=-1){e=10;break A}if((0|(R=0|ar[l>>2]))<=(0|e)){e=10;break A}if((0|n)<=-1){e=13;break A}if((0|(Y=0|ar[u>>2]))<=(0|n)){e=13;break A}if(n=(J=0|ar[s>>2])+(3*((0|sr(R,n))+e|0)|0)|0,e=AA>>A,!(-1<(0|(i=T>>A))&(0|i)<(0|R))){e=15;break A}if(!(-1<(0|e)&(0|e)<(0|Y))){e=17;break A}q=J+(3*((0|sr(R,e))+i|0)|0)|0;e:do{if(0!=(768&(cr[n>>0]|cr[n+1>>0]<<8))&&0!=(768&(cr[q>>0]|cr[q+1>>0]<<8))){if(D&E|0){if(n=AA>>(i=0|ar[W>>2]),(0|(e=T>>i))<=-1){e=22;break A}if((0|(A=0|ar[I>>2]))<=(0|e)){e=22;break A}if((0|n)<=-1){e=25;break A}if((0|(R=0|ar[B>>2]))<=(0|n)){e=25;break A}if(q=(Y=0|ar[t>>2])+((0|sr(A,n))+e)|0,(0|tr[q>>0])<=-1){e=1;break}if(e=rA>>i,!(-1<(0|(n=Q>>i))&(0|n)<(0|A))){e=28;break A}if(!(-1<(0|e)&(0|e)<(0|R))){e=30;break A}if(q=Y+((0|sr(A,e))+n)|0,(0|tr[q>>0])<=-1){e=1;break}}if(n=rA>>(i=0|ar[b>>2]),(0|(e=Q>>i))<=-1){e=34;break A}if((0|(A=0|ar[d>>2]))<=(0|e)){e=34;break A}if((0|n)<=-1){e=37;break A}if((0|(R=0|ar[k>>2]))<=(0|n)){e=37;break A}if(q=0|ar[h>>2],K=(0|sr(A,n))+e|0,e=AA>>i,!(-1<(0|(n=T>>i))&(0|n)<(0|A))){e=39;break A}if(!(-1<(0|e)&(0|e)<(0|R))){e=41;break A}if(L=(0|sr(A,e))+n|0,n=rA>>(R=0|ar[w>>2]),(0|(e=Q>>R))<=-1){e=44;break A}if((0|(Y=0|ar[v>>2]))<=(0|e)){e=44;break A}if((0|n)<=-1){e=47;break A}if((0|(J=0|ar[g>>2]))<=(0|n)){e=47;break A}if(e=(D=0|ar[m>>2])+(24*((0|sr(Y,n))+e|0)|0)+2|0,e=0|lr[e>>1],i=0|ar[p>>2],Q=e>>>0<(A=(0|ar[y>>2])-i>>2)>>>0?0|ar[i+(e<<2)>>2]:0,e=AA>>R,!(-1<(0|(n=T>>R))&(0|n)<(0|Y))){e=51;break A}if(!(-1<(0|e)&(0|e)<(0|J))){e=53;break A}if(e=D+(24*((0|sr(Y,e))+n|0)|0)+2|0,e=(e=0|lr[e>>1])>>>0<A>>>0?0|ar[i+(e<<2)>>2]:0,z=(n=(x=0|tr[q+(12*K|0)>>0])<<24>>24==0)?-1:0|ar[Q+916+(tr[q+(12*K|0)+2>>0]<<2)>>2],O=(i=(j=0|tr[q+(12*K|0)+1>>0])<<24>>24==0)?-1:0|ar[Q+980+(tr[q+(12*K|0)+3>>0]<<2)>>2],!((S=(0|z)==(0|(U=(A=(T=0|tr[q+(12*L|0)>>0])<<24>>24==0)?-1:0|ar[e+916+(tr[q+(12*L|0)+2>>0]<<2)>>2])))&(0|O)==(0|(Q=(D=(M=0|tr[q+(12*L|0)+1>>0])<<24>>24==0)?-1:0|ar[e+980+(tr[q+(12*L|0)+3>>0]<<2)>>2])))&&!((0|O)==(0|U)&(0|z)==(0|Q))){e=1;break}if(P=n?0:0|or[q+(12*K|0)+6>>1],e=n?0:0|or[q+(12*K|0)+4>>1],H=i?0:0|or[q+(12*K|0)+10>>1],J=i?0:0|or[q+(12*K|0)+8>>1],Y=A?0:0|or[q+(12*L|0)+6>>1],A=A?0:0|or[q+(12*L|0)+4>>1],R=D?0:0|or[q+(12*L|0)+10>>1],i=D?0:0|or[q+(12*L|0)+8>>1],((255&j)+(255&x)|0)!=((255&M)+(255&T)|0)&&(Gr(4+(0|ar[Z>>2])|0,1013,0),tr[C>>0]=3),(0|z)==(0|O)){if((0|U)!=(0|Q)){e=81;break A}q=(n=e<<16>>16)-(e=A<<16>>16)|0;do{if((0|((0|q)<0?0-q|0:q))<=3){if(3<(0|((0|(q=(P<<16>>16)-(Y<<16>>16)|0))<0?0-q|0:q)))break;if(3<(0|((0|(q=(J<<16>>16)-(i<<16>>16)|0))<0?0-q|0:q)))break;if((0|((0|(q=(H<<16>>16)-(R<<16>>16)|0))<0?0-q|0:q))<=3){e=0;break e}}}while(0);q=n-(i<<16>>16)|0;do{if((0|((0|q)<0?0-q|0:q))<=3){if(3<(0|((0|(q=(P<<16>>16)-(R<<16>>16)|0))<0?0-q|0:q)))break;if(3<(0|((0|(q=(J<<16>>16)-e|0))<0?0-q|0:q)))break;if((0|((0|(q=(H<<16>>16)-(Y<<16>>16)|0))<0?0-q|0:q))<=3){e=0;break e}}}while(0);e=1;break}if(e=e<<16>>16,S){q=e-(A<<16>>16)|0;do{if((0|((0|q)<0?0-q|0:q))<=3){if(3<(0|((0|(q=(P<<16>>16)-(Y<<16>>16)|0))<0?0-q|0:q)))break;if(3<(0|((0|(q=(J<<16>>16)-(i<<16>>16)|0))<0?0-q|0:q)))break;if((0|((0|(q=(H<<16>>16)-(R<<16>>16)|0))<0?0-q|0:q))<=3){e=0;break e}}}while(0);e=1;break}q=e-(i<<16>>16)|0;do{if((0|((0|q)<0?0-q|0:q))<=3){if(3<(0|((0|(q=(P<<16>>16)-(R<<16>>16)|0))<0?0-q|0:q)))break;if(3<(0|((0|(q=(J<<16>>16)-(A<<16>>16)|0))<0?0-q|0:q)))break;if((0|((0|(q=(H<<16>>16)-(Y<<16>>16)|0))<0?0-q|0:q))<=3){e=0;break e}}}while(0);e=1;break}e=2}while(0);iA=(0|sr(0|ar[G>>2],eA))+iA|0,iA=(0|ar[a>>2])+iA|0,tr[iA>>0]=-4&tr[iA>>0]|e}else tr[e>>0]=-4&n;$=$+X|0}while((0|$)<(0|nA))}if((0|fA)<=(0|(r=r+_|0))){e=5;break}}switch(0|e){case 5:return;case 10:br(41808,41845,118,41865);break;case 13:br(41869,41845,119,41865);break;case 15:br(41808,41845,118,41865);break;case 17:br(41869,41845,119,41865);break;case 22:br(41808,41845,118,41865);break;case 25:br(41869,41845,119,41865);break;case 28:br(41808,41845,118,41865);break;case 30:br(41869,41845,119,41865);break;case 34:br(41808,41845,118,41865);break;case 37:br(41869,41845,119,41865);break;case 39:br(41808,41845,118,41865);break;case 41:br(41869,41845,119,41865);break;case 44:br(41808,41845,118,41865);break;case 47:br(41869,41845,119,41865);break;case 51:br(41808,41845,118,41865);break;case 53:br(41869,41845,119,41865);break;case 81:br(41532,41551,343,41562)}}}function Xt(A,e,r,i,f,n){r|=0,i|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_,F,N,R,Y,J,D,Q,T,M,S,U,O,H,x,j,z,P,L,K,q,$,AA,eA,rA,iA,fA,nA,tA,oA,aA,cA,lA,uA,sA,bA,dA,kA,hA,wA,vA,gA,mA,pA,yA,ZA,CA,WA,IA,BA,EA,GA,VA,XA,_A,FA,NA,RA,YA,JA,DA,QA,TA,MA,SA,UA,OA,HA,xA,jA,zA,PA,LA,KA,qA,$A,Ae,ee,re,ie,fe,ne,te,oe,ae,ce,le,ue,se,be,de,ke,he,we,ve,ge,me,pe,ye,Ze=0,Ce=0,We=0,Ie=0,Be=0,Ee=0,Ge=0,Ve=0,Xe=0,_e=0,Fe=0,Ne=0,Re=0,Ye=0,Je=0,De=0,Qe=0,Te=0,Me=0,Se=0,Ue=0,Oe=0,He=0,xe=0,je=0,ze=0,Pe=0,Le=0,Ke=0,qe=0,$e=0,Ar=0,er=0,rr=0,ir=0,fr=0,nr=0;if(ur=(ye=ur)+80|0,ge=(ve=ye)+40|0,me=ye+32|0,pe=(e|=0)?2:1,ke=e?1:2,de=0|ar[(he=(A|=0)+40|0)>>2],Ze=0|ar[A+5760>>2],nr=(0|n)<(0|(nr=0|ar[(we=A+10472|0)>>2]))?n:nr,(0|(fr=(0|i)<(0|(fr=0|ar[A+10476>>2]))?i:fr))<=(0|r))ur=ye;else{MA=(0|f)<(0|nr),SA=A+10460|0,UA=A+4|0,OA=A+10368|0,HA=A+10372|0,xA=A+10376|0,jA=A+10360|0,zA=A+10348|0,PA=A+10352|0,LA=A+10356|0,KA=A+10340|0,qA=A+48|0,$A=Ze+-8|0,Ae=4+ge|0,ee=2+ge|0,re=28+ge|0,ie=26+ge|0,fe=24+ge|0,ne=ve+4|0,te=ve+2|0,oe=ve+28|0,ae=ve+26|0,ce=ve+24|0,le=6+ge|0,ue=ve+6|0,se=30+ge|0,be=ve+30|0,DA=A+5480|0,QA=2+me|0,TA=4+me|0,z=65535+(j=1<<Ze)|0,YA=ve+8|0,L=de-1|0,Z=8+ge|0,K=de-2|0,p=10+ge|0,q=de-3|0,C=12+ge|0,$=de-4|0,B=14+ge|0,JA=ve+16|0,AA=de<<2,eA=(rr=P=de<<1)+-1|0,I=16+ge|0,rA=rr+-2|0,y=18+ge|0,iA=rr+-3|0,W=20+ge|0,rr=rr+-4|0,E=22+ge|0,fA=6*de|0,nA=(ir=3*de|0)+-1|0,tA=ir+-2|0,oA=ir+-3|0,ir=ir+-4|0,aA=de<<1,cA=0|sr(de,-3),lA=de<<1,uA=0|sr(de,-3),kA=0-de|0,hA=ve+2|0,wA=0-(bA=sA=de<<1)|0,t=2+ge|0,vA=ve+4|0,gA=0-(dA=3*de|0)|0,u=4+ge|0,mA=ve+6|0,pA=0-(er=de<<2)|0,h=6+ge|0,yA=ve+8|0,ZA=1-de|0,l=8+ge|0,CA=1+de|0,WA=ve+10|0,IA=1-bA|0,o=10+ge|0,BA=1|bA,EA=ve+12|0,GA=1-dA|0,s=12+ge|0,VA=1+dA|0,XA=ve+14|0,_A=1-er|0,w=14+ge|0,FA=ve+16|0,NA=2-de|0,k=16+ge|0,RA=2+de|0,G=ve+18|0,V=2-bA|0,a=18+ge|0,X=2+bA|0,_=ve+20|0,F=2-dA|0,b=20+ge|0,N=2+dA|0,R=ve+22|0,Y=2-er|0,v=22+ge|0,J=ve+24|0,D=3-de|0,m=24+ge|0,Q=3+de|0,T=ve+26|0,M=3-bA|0,c=26+ge|0,S=3+bA|0,U=ve+28|0,O=3-dA|0,d=28+ge|0,H=3+dA|0,x=ve+30|0,er=3-er|0,g=30+ge|0;A:for(;;){if(MA){Le=(0|(Pe=r<<2))/4|0,Ke=Pe+-1|0,ze=e?Pe:Ke,je=f;do{if(Ie=je<<2,Be=(0|sr(0|ar[we>>2],Le))+((0|Ie)/4|0)|0,(Be=3&tr[(0|ar[SA>>2])+Be>>0])<<24>>24){if(Ar=(qe=0|ar[UA>>2])+($e=(0|sr(0|ar[he>>2],Pe))+Ie<<1)|0,We=e?(i=lr[(i=(A=i=Ar)+4|0)>>1]|lr[i+2>>1]<<16,ar[(n=ve)>>2]=lr[A>>1]|lr[A+2>>1]<<16,ar[n+4>>2]=i,or[ge>>1]=0|or[Ar+-2>>1],or[ee>>1]=0|or[Ar+-4>>1],or[Ae>>1]=0|or[Ar+-6>>1],or[le>>1]=0|or[Ar+-8>>1],n=lr[(n=(i=n=qe+($e+P)|0)+4|0)>>1]|lr[n+2>>1]<<16,ar[(A=YA)>>2]=lr[i>>1]|lr[i+2>>1]<<16,ar[A+4>>2]=n,or[Z>>1]=0|or[Ar+(L<<1)>>1],or[p>>1]=0|or[Ar+(K<<1)>>1],or[C>>1]=0|or[Ar+(q<<1)>>1],or[B>>1]=0|or[Ar+($<<1)>>1],A=lr[(A=(n=A=qe+($e+AA)|0)+4|0)>>1]|lr[A+2>>1]<<16,ar[(i=JA)>>2]=lr[n>>1]|lr[n+2>>1]<<16,ar[i+4>>2]=A,or[I>>1]=0|or[Ar+(eA<<1)>>1],or[y>>1]=0|or[Ar+(rA<<1)>>1],or[W>>1]=0|or[Ar+(iA<<1)>>1],or[E>>1]=0|or[Ar+(rr<<1)>>1],i=lr[(i=(A=i=qe+($e+fA)|0)+4|0)>>1]|lr[i+2>>1]<<16,ar[(n=ce)>>2]=lr[A>>1]|lr[A+2>>1]<<16,ar[n+4>>2]=i,or[fe>>1]=0|or[Ar+(nA<<1)>>1],n=ie,i=se,A=tA,Ze=ir,Ce=re,oA):(or[ve>>1]=0|or[Ar>>1],or[ge>>1]=0|or[Ar+(kA<<1)>>1],or[hA>>1]=0|or[Ar+(de<<1)>>1],or[t>>1]=0|or[Ar+(wA<<1)>>1],or[vA>>1]=0|or[Ar+(bA<<1)>>1],or[u>>1]=0|or[Ar+(gA<<1)>>1],or[mA>>1]=0|or[Ar+(dA<<1)>>1],or[h>>1]=0|or[Ar+(pA<<1)>>1],or[yA>>1]=0|or[Ar+2>>1],or[l>>1]=0|or[Ar+(ZA<<1)>>1],or[WA>>1]=0|or[Ar+(CA<<1)>>1],or[o>>1]=0|or[Ar+(IA<<1)>>1],or[EA>>1]=0|or[Ar+(BA<<1)>>1],or[s>>1]=0|or[Ar+(GA<<1)>>1],or[XA>>1]=0|or[Ar+(VA<<1)>>1],or[w>>1]=0|or[Ar+(_A<<1)>>1],or[FA>>1]=0|or[Ar+4>>1],or[k>>1]=0|or[Ar+(NA<<1)>>1],or[G>>1]=0|or[Ar+(RA<<1)>>1],or[a>>1]=0|or[Ar+(V<<1)>>1],or[_>>1]=0|or[Ar+(X<<1)>>1],or[b>>1]=0|or[Ar+(F<<1)>>1],or[R>>1]=0|or[Ar+(N<<1)>>1],or[v>>1]=0|or[Ar+(Y<<1)>>1],or[J>>1]=0|or[Ar+6>>1],or[m>>1]=0|or[Ar+(D<<1)>>1],or[T>>1]=0|or[Ar+(Q<<1)>>1],or[c>>1]=0|or[Ar+(M<<1)>>1],or[U>>1]=0|or[Ar+(S<<1)>>1],n=d,i=g,A=O,Ze=er,Ce=x,H),or[n>>1]=0|or[Ar+(A<<1)>>1],or[Ce>>1]=0|or[Ar+(We<<1)>>1],or[i>>1]=0|or[Ar+(Ze<<1)>>1],n=Pe>>(Xe=0|ar[OA>>2]),(0|(Fe=Ie>>Xe))<=-1){n=13;break A}if((0|(Re=0|ar[HA>>2]))<=(0|Fe)){n=13;break A}if((0|n)<=-1){n=16;break A}if((0|(Ne=0|ar[xA>>2]))<=(0|n)){n=16;break A}if(Je=0|ar[jA>>2],Ye=(_e=0|sr(Re,n))+Fe|0,Ve=Ie+-1|0,i=ze>>Xe,!(-1<(0|(n=(e?Ve:Ie)>>Xe))&(0|n)<(0|Re))){n=18;break A}if(!(-1<(0|i)&(0|i)<(0|Ne))){n=20;break A}if(Ze=Je+(3*((0|sr(Re,i))+n|0)|0)+2|0,Ze=1+(0|tr[Je+(3*Ye|0)+2>>0])+(0|tr[Ze>>0])>>1,n=Ie>>(i=0|ar[zA>>2]),i=Pe>>i,(0|n)<=-1){n=23;break A}if((0|(A=0|ar[PA>>2]))<=(0|n)){n=23;break A}if((0|i)<=-1){n=26;break A}if((0|i)>=(0|ar[LA>>2])){n=26;break A}xe=(0|ar[KA>>2])+(24*((0|sr(A,i))+n|0)|0)+2|0,xe=0|ar[(0|ar[qA>>2])+(lr[xe>>1]<<2)>>2],Ge=(0|ar[xe+756>>2])+Ze|0,Ge=cr[41480+((0|Ge)<0?0:(0|Ge)<51?Ge:51)>>0]<<$A,xe=(Be<<1&255)-2+Ze+(0|ar[xe+760>>2])|0,xe=cr[41426+((0|xe)<0?0:(0|xe)<53?xe:53)>>0]<<$A,Qe=(0|(Qe=(65535&(Me=0|or[Ae>>1]))-((65535&(Se=0|or[ee>>1]))<<1)+(n=65535&(Ze=0|or[ge>>1]))|0))<0?0-Qe|0:Qe,Ce=0|lr[fe>>1],De=(0|(De=(0|lr[re>>1])-(lr[ie>>1]<<1)+Ce|0))<0?0-De|0:De,Te=(0|(Te=(65535&(Ee=0|or[ne>>1]))-((65535&(Oe=0|or[te>>1]))<<1)+(i=65535&(Ue=0|or[ve>>1]))|0))<0?0-Te|0:Te,We=0|lr[ce>>1],A=Te+Qe|0,Ie=(He=(0|(He=(0|lr[oe>>1])-(lr[ae>>1]<<1)+We|0))<0?0-He|0:He)+De|0,Qe=De+Qe|0,Te=He+Te|0;e:do{if((Ie+A|0)<(0|Ge)){Be=Ge>>2;do{if((A<<1|0)<(0|Be)){if(He=(0|lr[le>>1])-n|0,(Ge>>3|0)<=(((0|(De=i-(0|lr[ue>>1])|0))<0?0-De|0:De)+((0|He)<0?0-He|0:He)|0)){i=0;break}i=(0|((0|(i=n-i|0))<0?0-i|0:i))<(1+(5*xe|0)>>1|0)}else i=0}while(0);do{if((Ie<<1|0)<(0|Be)){if(He=(0|lr[se>>1])-Ce|0,(Ge>>3|0)<=(((0|(De=We-(0|lr[be>>1])|0))<0?0-De|0:De)+((0|He)<0?0-He|0:He)|0)){n=0;break}n=(0|((0|(n=Ce-We|0))<0?0-n|0:n))<(1+(5*xe|0)>>1|0)}else n=0}while(0);if(He=i&n,We=(Ge>>1)+Ge>>3,A=(Ce=0|tr[DA>>0])<<24>>24!=0,e){if(n=-1<(0|(i=Ve>>Xe)),A){if(!(n&(0|i)<(0|Re))){n=37;break A}A=(65535&(cr[(A=Je+(3*(_e+i|0)|0)|0)>>0]|cr[A+1>>0]<<8))>>>10&1^1}else{if(!n){n=41;break A}A=1}if((0|Re)<=(0|i)){n=41;break A}i=Je+(3*(_e+i|0)|0)|0,De=(n=Ce<<24>>24?0==(1024&(cr[(n=Je+(3*Ye|0)|0)>>0]|cr[n+1>>0]<<8)):1)&0==(2048&(cr[(De=Je+(3*Ye|0)|0)>>0]|cr[De+1>>0]<<8)),Ne=A<<24>>24?0==(2048&(cr[i>>0]|cr[i+1>>0]<<8)):0}else{if(n=-1<(0|(i=Ke>>Xe)),A){if(!(n&(0|i)<(0|Ne))){n=47;break A}A=Je+(3*((0|sr(Re,i))+Fe|0)|0)|0,A=0==(1024&(cr[A>>0]|cr[A+1>>0]<<8))}else{if(!n){n=51;break A}A=1}if((0|Ne)<=(0|i)){n=51;break A}i=Je+(3*((0|sr(Re,i))+Fe|0)|0)|0,De=(n=Ce<<24>>24?0==(1024&(cr[(n=Je+(3*Ye|0)|0)>>0]|cr[n+1>>0]<<8)):1)&0==(2048&(cr[(De=Je+(3*Ye|0)|0)>>0]|cr[De+1>>0]<<8)),Ne=A&0==(2048&(cr[i>>0]|cr[i+1>>0]<<8))}for(Re=xe<<1,Ye=10*xe|0,Je=0-xe|0,Fe=(0|We)<=(0|Qe)|1^Ne,_e=(0|We)<=(0|Te)|1^De,Xe=0-(Ve=xe>>1)|0,Ge=0,Ie=Me,We=Se,i=Ue,A=Oe;;){Be=qe+($e+(0|sr(P,Ge)))|0;do{if(He){Ue=0|or[ve+(Ge<<3)+6>>1],Te=65535&We,Se=65535&A,We=(Me=65535&Ze)+Re|0,Ce=65535&((0|(Ce=(A=4+(Me<<1)|0)+(Te<<1)+(Oe=65535&Ie)+(n=(i&=65535)<<1)+Se>>3))<(0|(Qe=Me-Re|0))?Qe:(0|We)<(0|Ce)?We:Ce),Ie=Te+Re|0,We=65535&((0|(We=(Me+2+Te+Oe+i|0)>>>2))<(0|(Qe=Te-Re|0))?Qe:(0|Ie)<(0|We)?Ie:We),Ie=(Me+4+Te+(3*Oe|0)+i+(lr[ge+(Ge<<3)+6>>1]<<1)|0)>>>3,Qe=Oe-Re|0,Oe=Oe+Re|0,Ie=65535&((0|Ie)<(0|Qe)?Qe:(0|Oe)<(0|Ie)?Oe:Ie),n=A+Te+n+(Se<<1)+(Oe=65535&Ee)>>3,A=i+Re|0,n=65535&((0|n)<(0|(Te=i-Re|0))?Te:(0|A)<(0|n)?A:n),or[me>>1]=n,A=i+Me+Se|0,Me=Se-Re|0,Se=Se+Re|0,i=65535&((0|(i=(Oe+2+A|0)>>>2))<(0|Me)?Me:(0|Se)<(0|i)?Se:i),or[QA>>1]=i,A=(A+4+(3*Oe|0)+((65535&Ue)<<1)|0)>>>3,Ue=Oe-Re|0,Oe=Oe+Re|0,A=65535&((0|A)<(0|Ue)?Ue:(0|Oe)<(0|A)?Oe:A),or[TA>>1]=A;do{if(e){if(Ze=0|sr(Ge,de),!Ne){if(!De)break;or[Be>>1]=0|or[me>>1],or[Be+2>>1]=0|or[2+me>>1],or[Be+4>>1]=0|or[4+me>>1];break}if(or[Ar+(Ze+-1<<1)>>1]=Ce,De){or[Ar+(Ze<<1)>>1]=n,or[Ar+(Ze+-2<<1)>>1]=We,or[Ar+(Ze+1<<1)>>1]=i,or[Ar+(Ze+-3<<1)>>1]=Ie,or[Ar+(Ze+2<<1)>>1]=A;break}or[Ar+(Ze+-2<<1)>>1]=We,or[Ar+(Ze+-3<<1)>>1]=Ie;break}if(!Ne){if(!De)break;or[Ar+(Ge<<1)>>1]=n,or[Ar+(de+Ge<<1)>>1]=i,or[Ar+(sA+Ge<<1)>>1]=A;break}if(or[Ar+(Ge-de<<1)>>1]=Ce,De){or[Ar+(Ge<<1)>>1]=n,or[Ar+(Ge-aA<<1)>>1]=We,or[Ar+(de+Ge<<1)>>1]=i,or[Ar+(Ge+cA<<1)>>1]=Ie,or[Ar+(aA+Ge<<1)>>1]=A;break}or[Ar+(Ge-lA<<1)>>1]=We,or[Ar+(Ge+uA<<1)>>1]=Ie;break}while(0)}else{if((0|Ye)<=(0|((0|(n=8+(9*((Ce=65535&i)-(Ze&=65535)|0)|0)+(0|sr((A&=65535)-(i=65535&We)|0,-3))>>4))<0?0-n|0:n)))break;n=(0|n)<(0|Je)?Je:(0|xe)<(0|n)?xe:n;do{if(e){if(Ne&&(Ue=n+Ze|0,Oe=Ar+((0|sr(Ge,de))-1<<1)|0,or[Oe>>1]=(0|Ue)<0?0:65535&((0|Ue)<(0|j)?Ue:z)),!De)break;Ue=Ce-n|0,Oe=Ar+((0|sr(Ge,de))<<1)|0,or[Oe>>1]=(0|Ue)<0?0:65535&((0|Ue)<(0|j)?Ue:z)}else{if(Ne&&(Oe=n+Ze|0,or[Ar+(Ge-de<<1)>>1]=(0|Oe)<0?0:65535&((0|Oe)<(0|j)?Oe:z)),!De)break;Oe=Ce-n|0,or[Ar+(Ge<<1)>>1]=(0|Oe)<0?0:65535&((0|Oe)<(0|j)?Oe:z)}}while(0);if(Fe||(Ue=((0|(Oe=(Ue=n+(((Ze+1+(65535&Ie)|0)>>>1)-i)|0)>>1))<(0|Xe)?Xe:((0|Ve)<(0|Oe)?xe:Ue)>>1)+i|0,Oe=(0|sr(Ge,de))-2|0,or[Ar+((e?Oe:Ge-P|0)<<1)>>1]=(0|Ue)<0?0:65535&((0|Ue)<(0|j)?Ue:z)),_e)break;Ue=((0|(Oe=(Ue=((Ce+1+(65535&Ee)|0)>>>1)-A-n|0)>>1))<(0|Xe)?Xe:((0|Ve)<(0|Oe)?xe:Ue)>>1)+A|0,Oe=0|sr(e?Ge:1,de),or[Ar+(Oe+(e?1:Ge)<<1)>>1]=(0|Ue)<0?0:65535&((0|Ue)<(0|j)?Ue:z)}}while(0);if(4==(0|(n=Ge+1|0)))break e;Ie=0|or[ge+((Ge=n)<<3)+4>>1],We=0|or[ge+(n<<3)+2>>1],Ze=0|or[ge+(n<<3)>>1],i=0|or[ve+(n<<3)>>1],A=0|or[ve+(n<<3)+2>>1],Ee=0|or[ve+(n<<3)+4>>1]}}}while(0)}je=je+pe|0}while((0|je)<(0|nr))}if((0|fr)<=(0|(r=r+ke|0))){n=5;break}}switch(0|n){case 5:return void(ur=ye);case 13:br(41808,41845,118,41865);break;case 16:br(41869,41845,119,41865);break;case 18:br(41808,41845,118,41865);break;case 20:br(41869,41845,119,41865);break;case 23:br(41808,41845,118,41865);break;case 26:br(41869,41845,119,41865);break;case 37:case 41:br(41808,41845,118,41865);break;case 47:case 51:br(41869,41845,119,41865)}}}function _t(A,e,r,i,f,n){r|=0,i|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_,F,N,R,Y,J,D,Q,T,M,S,U,O,H,x,j,z,P,L,K,q,$,AA,eA,rA,iA,fA,nA,tA,oA,aA,cA,lA,uA,sA,bA,dA,kA,hA,wA,vA,gA,mA,pA,yA,ZA,CA,WA,IA,BA,EA,GA,VA,XA,_A,FA,NA,RA,YA,JA,DA,QA,TA,MA,SA=0,UA=0,OA=0,HA=0,xA=0,jA=0,zA=0,PA=0,LA=0,KA=0,qA=0,$A=0,Ae=0,ee=0,re=0,ie=0,fe=0,ne=0,te=0,oe=0,ae=0,ce=0,le=0,ue=0,se=0,be=0,de=0,ke=0,he=0,we=0,ve=0,ge=0,me=0,pe=0,ye=0,Ze=0,Ce=0,We=0,Ie=0,Be=0,Ee=0;if(ur=(MA=ur)+48|0,JA=MA+24|0,DA=MA+8|0,QA=MA,TA=(e|=0)?2:1,NA=e?1:2,FA=0|ar[(RA=(A|=0)+40|0)>>2],SA=0|ar[A+5760>>2],Ee=(0|n)<(0|(Ee=0|ar[(YA=A+10472|0)>>2]))?n:Ee,(0|(Be=(0|i)<(0|(Be=0|ar[A+10476>>2]))?i:Be))<=(0|r))ur=MA;else{tA=(0|f)<(0|Ee),oA=A+10460|0,aA=A+4|0,cA=A+10368|0,lA=A+10372|0,uA=A+10376|0,sA=A+10360|0,bA=A+10348|0,dA=A+10352|0,kA=A+10356|0,hA=A+10340|0,wA=A+48|0,vA=SA+-8|0,gA=2+DA|0,mA=1+DA|0,pA=14+DA|0,yA=13+DA|0,ZA=12+DA|0,CA=2+JA|0,WA=1+JA|0,IA=14+JA|0,BA=13+JA|0,EA=12+JA|0,GA=3+DA|0,VA=3+JA|0,XA=15+DA|0,_A=15+JA|0,iA=A+5480|0,fA=QA+1|0,nA=QA+2|0,L=255+(P=1<<SA)|0,ye=3*FA|0,q=Ze=K=FA<<1,$=0|sr(FA,-3),AA=FA<<1,eA=0|sr(FA,-3),Ce=rA=FA<<1,We=3*FA|0,Ie=FA<<2,a=e?-1:0-FA|0,t=e?1:FA,c=e?-2:0-Ce|0,l=e?2:Ce,u=e?-3:0-We|0,s=e?3:We,b=e?-4:0-Ie|0,o=e?FA:1,d=4+JA|0,k=e?FA-1|0:1-FA|0,U=4+DA|0,h=1+FA|0,w=5+JA|0,v=e?FA-2|0:1-Ce|0,M=5+DA|0,g=e?2+FA|0:1|Ce,m=6+JA|0,p=e?FA-3|0:1-We|0,O=6+DA|0,y=e?3+FA|0:We+1|0,Z=7+JA|0,C=e?FA-4|0:1-Ie|0,j=7+DA|0,W=e?Ze:2,I=8+JA|0,B=e?Ze+-1|0:2-FA|0,x=8+DA|0,E=e?1|Ze:2+FA|0,G=9+JA|0,V=e?Ze+-2|0:2-Ce|0,S=9+DA|0,X=(e?Ze:Ce)+2|0,_=10+JA|0,F=e?Ze+-3|0:2-We|0,H=10+DA|0,N=e?Ze+3|0:We+2|0,R=11+JA|0,Ze=e?Ze+-4|0:2-Ie|0,z=11+DA|0,Y=e?ye:3,J=e?ye+-1|0:3-FA|0,D=e?ye+1|0:3+FA|0,Q=e?ye+-2|0:3-Ce|0,Ce=e?ye+2|0:Ce+3|0,T=e?ye+-3|0:3-We|0,We=(e?ye:We)+3|0,Ie=e?ye+-4|0:3-Ie|0;A:for(;;){if(tA){ve=(0|(we=r<<2))/4|0,ge=we+-1|0,he=e?we:ge,ke=f;do{if(A=ke<<2,UA=(0|sr(0|ar[YA>>2],ve))+((0|A)/4|0)|0,(UA=3&tr[(0|ar[oA>>2])+UA>>0])<<24>>24){if(ye=(me=0|ar[aA>>2])+(pe=(0|sr(0|ar[RA>>2],we))+A|0)|0,tr[JA>>0]=0|tr[ye>>0],tr[DA>>0]=0|tr[ye+a>>0],tr[WA>>0]=0|tr[ye+t>>0],tr[mA>>0]=0|tr[ye+c>>0],tr[CA>>0]=0|tr[ye+l>>0],tr[gA>>0]=0|tr[ye+u>>0],tr[VA>>0]=0|tr[ye+s>>0],tr[GA>>0]=0|tr[ye+b>>0],tr[d>>0]=0|tr[ye+o>>0],tr[U>>0]=0|tr[ye+k>>0],tr[w>>0]=0|tr[ye+h>>0],tr[M>>0]=0|tr[ye+v>>0],tr[m>>0]=0|tr[ye+g>>0],tr[O>>0]=0|tr[ye+p>>0],tr[Z>>0]=0|tr[ye+y>>0],tr[j>>0]=0|tr[ye+C>>0],tr[I>>0]=0|tr[ye+W>>0],tr[x>>0]=0|tr[ye+B>>0],tr[G>>0]=0|tr[ye+E>>0],tr[S>>0]=0|tr[ye+V>>0],tr[_>>0]=0|tr[ye+X>>0],tr[H>>0]=0|tr[ye+F>>0],tr[R>>0]=0|tr[ye+N>>0],tr[z>>0]=0|tr[ye+Ze>>0],KA=0|tr[ye+Y>>0],tr[EA>>0]=KA,HA=0|tr[ye+J>>0],tr[ZA>>0]=HA,qA=0|tr[ye+D>>0],tr[BA>>0]=qA,xA=0|tr[ye+Q>>0],tr[yA>>0]=xA,$A=0|tr[ye+Ce>>0],tr[IA>>0]=$A,jA=0|tr[ye+T>>0],tr[pA>>0]=jA,re=0|tr[ye+We>>0],tr[_A>>0]=re,ee=0|tr[ye+Ie>>0],tr[XA>>0]=ee,n=we>>(fe=0|ar[cA>>2]),(0|(te=A>>fe))<=-1){n=10;break A}if((0|(ae=0|ar[lA>>2]))<=(0|te)){n=10;break A}if((0|n)<=-1){n=13;break A}if((0|(oe=0|ar[uA>>2]))<=(0|n)){n=13;break A}if(le=0|ar[sA>>2],ce=(ne=0|sr(ae,n))+te|0,ie=A+-1|0,i=he>>fe,!(-1<(0|(n=(e?ie:A)>>fe))&(0|n)<(0|ae))){n=15;break A}if(!(-1<(0|i)&(0|i)<(0|oe))){n=17;break A}if(SA=le+(3*((0|sr(ae,i))+n|0)|0)+2|0,SA=1+(0|tr[le+(3*ce|0)+2>>0])+(0|tr[SA>>0])>>1,n=A>>(i=0|ar[bA>>2]),i=we>>i,(0|n)<=-1){n=20;break A}if((0|(A=0|ar[dA>>2]))<=(0|n)){n=20;break A}if((0|i)<=-1){n=23;break A}if((0|i)>=(0|ar[kA>>2])){n=23;break A}de=(0|ar[hA>>2])+(24*((0|sr(A,i))+n|0)|0)+2|0,de=0|ar[(0|ar[wA>>2])+(lr[de>>1]<<2)>>2],Ae=(0|ar[de+756>>2])+SA|0,Ae=cr[41480+((0|Ae)<0?0:(0|Ae)<51?Ae:51)>>0]<<vA,de=(UA<<1&255)-2+SA+(0|ar[de+760>>2])|0,de=cr[41426+((0|de)<0?0:(0|de)<53?de:53)>>0]<<vA,UA=(0|(UA=(255&(zA=0|tr[gA>>0]))-((255&(OA=0|tr[mA>>0]))<<1)+(PA=255&(SA=0|tr[DA>>0]))|0))<0?0-UA|0:UA,jA=(0|(jA=(255&jA)-((255&xA)<<1)+(LA=255&HA)|0))<0?0-jA|0:jA,n=(be=(0|(be=(255&(xA=0|tr[CA>>0]))-((255&(se=0|tr[WA>>0]))<<1)+(i=255&(ue=0|tr[JA>>0]))|0))<0?0-be|0:be)+UA|0,A=(KA=(0|(KA=(255&$A)-((255&qA)<<1)+(HA=255&KA)|0))<0?0-KA|0:KA)+jA|0,jA=jA+UA|0,KA=KA+be|0;e:do{if((A+n|0)<(0|Ae)){UA=Ae>>2;do{if((n<<1|0)<(0|UA)){if(be=(0|cr[GA>>0])-PA|0,(Ae>>3|0)<=(((0|($A=i-(0|cr[VA>>0])|0))<0?0-$A|0:$A)+((0|be)<0?0-be|0:be)|0)){i=0;break}i=(0|((0|(i=PA-i|0))<0?0-i|0:i))<(1+(5*de|0)>>1|0)}else i=0}while(0);do{if((A<<1|0)<(0|UA)){if((Ae>>3|0)<=(((0|(re=HA-(255&re)|0))<0?0-re|0:re)+((0|(be=(255&ee)-LA|0))<0?0-be|0:be)|0)){n=0;break}n=(0|((0|(n=LA-HA|0))<0?0-n|0:n))<(1+(5*de|0)>>1|0)}else n=0}while(0);if(be=i&n,HA=(Ae>>1)+Ae>>3,A=(UA=0|tr[iA>>0])<<24>>24!=0,e){if(n=-1<(0|(i=ie>>fe)),A){if(!(n&(0|i)<(0|ae))){n=34;break A}A=(65535&(cr[(A=le+(3*(ne+i|0)|0)|0)>>0]|cr[A+1>>0]<<8))>>>10&1^1}else{if(!n){n=38;break A}A=1}if((0|ae)<=(0|i)){n=38;break A}i=le+(3*(ne+i|0)|0)|0,fe=(n=UA<<24>>24?0==(1024&(cr[(n=le+(3*ce|0)|0)>>0]|cr[n+1>>0]<<8)):1)&0==(2048&(cr[(fe=le+(3*ce|0)|0)>>0]|cr[fe+1>>0]<<8)),Ae=A<<24>>24?0==(2048&(cr[i>>0]|cr[i+1>>0]<<8)):0}else{if(n=-1<(0|(i=ge>>fe)),A){if(!(n&(0|i)<(0|oe))){n=44;break A}A=le+(3*((0|sr(ae,i))+te|0)|0)|0,A=0==(1024&(cr[A>>0]|cr[A+1>>0]<<8))}else{if(!n){n=48;break A}A=1}if((0|oe)<=(0|i)){n=48;break A}i=le+(3*((0|sr(ae,i))+te|0)|0)|0,fe=(n=UA<<24>>24?0==(1024&(cr[(n=le+(3*ce|0)|0)>>0]|cr[n+1>>0]<<8)):1)&0==(2048&(cr[(fe=le+(3*ce|0)|0)>>0]|cr[fe+1>>0]<<8)),Ae=A&0==(2048&(cr[i>>0]|cr[i+1>>0]<<8))}for(ee=de<<1,re=10*de|0,ie=0-de|0,$A=(0|HA)<=(0|jA)|1^Ae,qA=(0|HA)<=(0|KA)|1^fe,KA=0-(LA=de>>1)|0,PA=0,i=ue,A=se;;){HA=me+(pe+(jA=0|sr(FA,PA)))|0;do{if(be){ue=0|tr[JA+(PA<<2)+3>>0],le=255&A,UA=(ce=255&SA)+ee|0,SA=255&((0|(SA=(A=4+(ce<<1)|0)+((ae=255&OA)<<1)+(se=255&zA)+(n=(i&=255)<<1)+le>>3))<(0|(oe=ce-ee|0))?oe:(0|UA)<(0|SA)?UA:SA),OA=ae+ee|0,UA=255&((0|(UA=(ce+2+ae+se+i|0)>>>2))<(0|(oe=ae-ee|0))?oe:(0|OA)<(0|UA)?OA:UA),OA=(ce+4+ae+(3*se|0)+i+(cr[DA+(PA<<2)+3>>0]<<1)|0)>>>3,oe=se-ee|0,se=se+ee|0,OA=255&((0|OA)<(0|oe)?oe:(0|se)<(0|OA)?se:OA),n=A+ae+n+(le<<1)+(se=255&xA)>>3,A=i+ee|0,n=255&((0|n)<(0|(ae=i-ee|0))?ae:(0|A)<(0|n)?A:n),tr[QA>>0]=n,A=i+ce+le|0,ce=le-ee|0,le=le+ee|0,i=255&((0|(i=(se+2+A|0)>>>2))<(0|ce)?ce:(0|le)<(0|i)?le:i),tr[fA>>0]=i,A=(A+4+(3*se|0)+((255&ue)<<1)|0)>>>3,ue=se-ee|0,se=se+ee|0,A=255&((0|A)<(0|ue)?ue:(0|se)<(0|A)?se:A),tr[nA>>0]=A;do{if(e){if(!Ae){if(!fe)break;tr[HA>>0]=0|tr[QA>>0],tr[HA+1>>0]=0|tr[QA+1>>0],tr[HA+2>>0]=0|tr[QA+2>>0];break}if(tr[ye+(jA+-1)>>0]=SA,fe){tr[ye+jA>>0]=n,tr[ye+(jA+-2)>>0]=UA,tr[ye+(jA+1)>>0]=i,tr[ye+(jA+-3)>>0]=OA,tr[ye+(jA+2)>>0]=A;break}tr[ye+(jA+-2)>>0]=UA,tr[ye+(jA+-3)>>0]=OA;break}if(!Ae){if(!fe)break;tr[ye+PA>>0]=n,tr[ye+(FA+PA)>>0]=i,tr[ye+(rA+PA)>>0]=A;break}if(tr[ye+(PA-FA)>>0]=SA,fe){tr[ye+PA>>0]=n,tr[ye+(PA-q)>>0]=UA,tr[ye+(FA+PA)>>0]=i,tr[ye+(PA+$)>>0]=OA,tr[ye+(q+PA)>>0]=A;break}tr[ye+(PA-AA)>>0]=UA,tr[ye+(PA+eA)>>0]=OA;break}while(0)}else{if((0|re)<=(0|((0|(n=8+(9*((UA=255&i)-(SA&=255)|0)|0)+(0|sr((A&=255)-(i=255&OA)|0,-3))>>4))<0?0-n|0:n)))break;n=(0|n)<(0|ie)?ie:(0|de)<(0|n)?de:n;do{if(e){if(Ae&&(se=n+SA|0,tr[ye+(jA+-1)>>0]=(0|se)<0?0:255&((0|se)<(0|P)?se:L)),!fe)break;se=UA-n|0,tr[ye+jA>>0]=(0|se)<0?0:255&((0|se)<(0|P)?se:L)}else{if(Ae&&(se=n+SA|0,tr[ye+(PA-FA)>>0]=(0|se)<0?0:255&((0|se)<(0|P)?se:L)),!fe)break;se=UA-n|0,tr[ye+PA>>0]=(0|se)<0?0:255&((0|se)<(0|P)?se:L)}}while(0);if($A||(se=((0|(ue=(se=n+(((SA+1+(255&zA)|0)>>>1)-i)|0)>>1))<(0|KA)?KA:((0|LA)<(0|ue)?de:se)>>1)+i|0,tr[ye+(e?jA+-2|0:PA-K|0)>>0]=(0|se)<0?0:255&((0|se)<(0|P)?se:L)),qA)break;ue=((0|(se=(ue=((UA+1+(255&xA)|0)>>>1)-A-n|0)>>1))<(0|KA)?KA:((0|LA)<(0|se)?de:ue)>>1)+A|0,se=0|sr(e?PA:1,FA),tr[ye+(se+(e?1:PA))>>0]=(0|ue)<0?0:255&((0|ue)<(0|P)?ue:L)}}while(0);if(4==(0|(n=PA+1|0)))break e;zA=0|tr[DA+((PA=n)<<2)+2>>0],OA=0|tr[DA+(n<<2)+1>>0],SA=0|tr[DA+(n<<2)>>0],i=0|tr[JA+(n<<2)>>0],A=0|tr[JA+(n<<2)+1>>0],xA=0|tr[JA+(n<<2)+2>>0]}}}while(0)}ke=ke+TA|0}while((0|ke)<(0|Ee))}if((0|Be)<=(0|(r=r+NA|0))){n=5;break}}switch(0|n){case 5:return void(ur=MA);case 10:br(41808,41845,118,41865);break;case 13:br(41869,41845,119,41865);break;case 15:br(41808,41845,118,41865);break;case 17:br(41869,41845,119,41865);break;case 20:br(41808,41845,118,41865);break;case 23:br(41869,41845,119,41865);break;case 34:case 38:br(41808,41845,118,41865);break;case 44:case 48:br(41869,41845,119,41865)}}}function Ft(A,e,r,i,f,n){e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_,F,N,R,Y,J,D,Q,T,M,S,U,O,H,x,j,z,P,L,K,q,$,AA,eA,rA,iA,fA,nA,tA,oA,aA,cA,lA,uA,sA,bA,dA,kA,hA,wA,vA,gA,mA,pA,yA,ZA,CA,WA,IA,BA,EA,GA,VA,XA,_A,FA,NA,RA,YA,JA,DA,QA,TA,MA=0,SA=0,UA=0,OA=0,HA=0,xA=0,jA=0,zA=0,PA=0,LA=0,KA=0,qA=0,$A=0,Ae=0,ee=0,re=0,ie=0,fe=0,ne=0,te=0,oe=0,ae=0,ce=0,le=0,ue=0;if(ur=(TA=ur)+32|0,JA=TA+16|0,DA=TA,QA=0|ar[(A|=0)+5780>>2],_A=0|ar[A+5784>>2],FA=0|sr(QA,e?2:1),NA=0|sr(_A,e?1:2),XA=0|ar[(RA=A+44|0)>>2],ue=(0|n)<(0|(ue=0|ar[(YA=A+10472|0)>>2]))?n:ue,b=A+5768|0,(0|(le=(0|i)<(0|(le=0|ar[A+10476>>2]))?i:le))<=(0|r))ur=TA;else{d=(0|f)<(0|ue),k=3-QA|0,h=3-_A|0,w=A+10460|0,v=A+5956|0,g=A+5952|0,m=A+10368|0,p=A+10372|0,y=A+10376|0,Z=A+10360|0,C=A+5776|0,W=A+10348|0,I=A+10352|0,B=A+10356|0,E=A+10340|0,G=A+48|0,V=A+5480|0,_=65535+(X=1<<ar[b>>2])|0,F=XA<<1,N=0|sr(XA,-2),Y=XA-1|0,Q=(J=XA<<1)-1|0,S=(T=3*XA|0)-1|0,O=1+XA|0,x=XA-2|0,j=1|J,P=J-2|0,L=1+T|0,q=T-2|0,cA=XA<<1,dA=3*XA|0,wA=eA=R=DA+2|0,vA=rA=t=2+JA|0,gA=iA=o=10+JA|0,mA=fA=H=DA+10|0,pA=nA=D=DA+4|0,yA=tA=c=4+JA|0,ZA=oA=l=12+JA|0,CA=aA=z=DA+12|0,WA=lA=M=DA+6|0,IA=uA=u=6+JA|0,BA=sA=s=14+JA|0,EA=bA=K=DA+14|0,VA=kA=$=a=8+JA|0,GA=hA=AA=U=DA+8|0;A:for(;;){if(d){ae=(0|(oe=0|sr(te=r<<h,_A)))/4|0,ce=oe+-1|0,re=e?oe:ce,Ae=f;do{if(fe=0|sr(ie=Ae<<k,QA),n=(0|sr(0|ar[YA>>2],ae))+((0|fe)/4|0)|0,1<(255&(n=3&tr[(0|ar[w>>2])+n>>0]))){ne=fe+-1|0,ee=e?ne:fe,qA=(n<<1&255)-2|0,KA=0;do{if(MA=0|ar[(0==(0|KA)?g:v)>>2],$A=(n=0|ar[A+4+((KA=KA+1|0)<<2)>>2])+(i=(0|sr(0|ar[RA>>2],te))+ie<<1)|0,e?(or[DA>>1]=0|or[$A>>1],or[JA>>1]=0|or[$A+-2>>1],or[R>>1]=0|or[$A+(XA<<1)>>1],or[t>>1]=0|or[$A+(Y<<1)>>1],or[D>>1]=0|or[$A+(J<<1)>>1],or[c>>1]=0|or[$A+(Q<<1)>>1],or[M>>1]=0|or[$A+(T<<1)>>1],or[u>>1]=0|or[$A+(S<<1)>>1],or[U>>1]=0|or[$A+2>>1],or[a>>1]=0|or[$A+-4>>1],or[H>>1]=0|or[$A+(O<<1)>>1],or[o>>1]=0|or[$A+(x<<1)>>1],or[z>>1]=0|or[$A+(j<<1)>>1],or[l>>1]=0|or[$A+(P<<1)>>1],or[K>>1]=0|or[$A+(L<<1)>>1],or[s>>1]=0|or[$A+(q<<1)>>1]):(PA=N+i|0,zA=lr[(zA=(LA=zA=$A)+4|0)>>1]|lr[zA+2>>1]<<16,ar[(jA=DA)>>2]=lr[LA>>1]|lr[LA+2>>1]<<16,ar[jA+4>>2]=zA,jA=lr[(jA=(zA=jA=n+PA|0)+4|0)>>1]|lr[jA+2>>1]<<16,ar[(LA=JA)>>2]=lr[zA>>1]|lr[zA+2>>1]<<16,ar[LA+4>>2]=jA,LA=lr[(LA=(jA=LA=n+(i+F)|0)+4|0)>>1]|lr[LA+2>>1]<<16,ar[(zA=GA)>>2]=lr[jA>>1]|lr[jA+2>>1]<<16,ar[zA+4>>2]=LA,PA=lr[(PA=(zA=PA=n+(PA+N)|0)+4|0)>>1]|lr[PA+2>>1]<<16,ar[(LA=VA)>>2]=lr[zA>>1]|lr[zA+2>>1]<<16,ar[LA+4>>2]=PA),n=oe>>(UA=0|ar[m>>2]),(0|(HA=fe>>UA))<=-1){n=14;break A}if((0|(jA=0|ar[p>>2]))<=(0|HA)){n=14;break A}if((0|n)<=-1){n=17;break A}if((0|(xA=0|ar[y>>2]))<=(0|n)){n=17;break A}if(PA=0|ar[Z>>2],zA=(OA=0|sr(jA,n))+HA|0,i=re>>UA,!(-1<(0|(n=ee>>UA))&(0|n)<(0|jA))){n=19;break A}if(!(-1<(0|i)&(0|i)<(0|xA))){n=21;break A}n=PA+(3*((0|sr(jA,i))+n|0)|0)+2|0,n=(1+(0|tr[PA+(3*zA|0)+2>>0])+(0|tr[n>>0])>>1)+MA|0;do{if(1==(0|ar[C>>2])){if(30<=(0|n)){if(42<(0|n)){n=n+-6|0;break}n=0|ar[6364+(n+-30<<2)>>2];break}}else n=(0|n)<51?n:51}while(0);if(i=fe>>(MA=0|ar[W>>2]),MA=oe>>MA,(0|i)<=-1){n=30;break A}if((0|(SA=0|ar[I>>2]))<=(0|i)){n=30;break A}if((0|MA)<=-1){n=33;break A}if((0|MA)>=(0|ar[B>>2])){n=33;break A}LA=(0|ar[E>>2])+(24*((0|sr(SA,MA))+i|0)|0)+2|0,LA=qA+n+(0|ar[760+(0|ar[(0|ar[G>>2])+(lr[LA>>1]<<2)>>2])>>2])|0,LA=cr[41426+((0|LA)<0?0:(0|LA)<53?LA:53)>>0]<<(0|ar[b>>2])-8,SA=0==(0|tr[V>>0]);e:do{if(e){if(n=-1<(0|(i=ne>>UA)),SA){if(!n){n=41;break A}MA=1}else{if(!(n&(0|i)<(0|jA))){n=37;break A}MA=0==(1024&(cr[(MA=PA+(3*(OA+i|0)|0)|0)>>0]|cr[MA+1>>0]<<8))}if((0|jA)<=(0|i)){n=41;break A}if(i=PA+(3*(OA+i|0)|0)|0,UA=(n=SA?1:0==(1024&(cr[(n=PA+(3*zA|0)|0)>>0]|cr[n+1>>0]<<8)))&0==(2048&(cr[(UA=PA+(3*zA|0)|0)>>0]|cr[UA+1>>0]<<8)),OA=0-LA|0,MA&0==(2048&(cr[i>>0]|cr[i+1>>0]<<8)))for(n=0;;)if(i=DA+(n<<1)|0,PA=0|lr[JA+(n<<1)>>1],PA=(MA=(0|(MA=4+(0|lr[8+JA+(n<<1)>>1])+((0|lr[i>>1])-PA<<2)-(0|lr[DA+8+(n<<1)>>1])>>3))<(0|OA)?OA:(0|LA)<(0|MA)?LA:MA)+PA|0,SA=0|sr(n,XA),or[$A+(SA+-1<<1)>>1]=(0|PA)<0?0:65535&((0|PA)<(0|X)?PA:_),UA&&(PA=(0|lr[i>>1])-MA|0,or[$A+(SA<<1)>>1]=(0|PA)<0?0:65535&((0|PA)<(0|X)?PA:_)),4==(0|(n=n+1|0)))break e;if(n=0|lr[DA>>1],i=4+(0|lr[$>>1])+(n-(0|lr[JA>>1])<<2)-(0|lr[AA>>1])>>3,UA&&(PA=n-((0|i)<(0|OA)?OA:(0|LA)<(0|i)?LA:i)|0,or[$A>>1]=(0|PA)<0?0:65535&((0|PA)<(0|X)?PA:_)),n=0|lr[eA>>1],i=4+(0|lr[iA>>1])+(n-(0|lr[rA>>1])<<2)-(0|lr[fA>>1])>>3,UA&&(PA=n-((0|i)<(0|OA)?OA:(0|LA)<(0|i)?LA:i)|0,or[$A+(XA<<1)>>1]=(0|PA)<0?0:65535&((0|PA)<(0|X)?PA:_)),n=0|lr[nA>>1],i=4+(0|lr[oA>>1])+(n-(0|lr[tA>>1])<<2)-(0|lr[aA>>1])>>3,UA&&(PA=n-((0|i)<(0|OA)?OA:(0|LA)<(0|i)?LA:i)|0,or[$A+(cA<<1)>>1]=(0|PA)<0?0:65535&((0|PA)<(0|X)?PA:_)),n=0|lr[lA>>1],i=4+(0|lr[sA>>1])+(n-(0|lr[uA>>1])<<2)-(0|lr[bA>>1])>>3,!UA)break;LA=n-((0|i)<(0|OA)?OA:(0|LA)<(0|i)?LA:i)|0,or[$A+(dA<<1)>>1]=(0|LA)<0?0:65535&((0|LA)<(0|X)?LA:_)}else{if(n=-1<(0|(i=ce>>UA)),SA){if(!n){n=57;break A}MA=1}else{if(!(n&(0|i)<(0|xA))){n=53;break A}MA=PA+(3*((0|sr(jA,i))+HA|0)|0)|0,MA=0==(1024&(cr[MA>>0]|cr[MA+1>>0]<<8))}if((0|xA)<=(0|i)){n=57;break A}if(i=PA+(3*((0|sr(jA,i))+HA|0)|0)|0,SA=(n=SA?1:0==(1024&(cr[(n=PA+(3*zA|0)|0)>>0]|cr[n+1>>0]<<8)))&0==(2048&(cr[(SA=PA+(3*zA|0)|0)>>0]|cr[SA+1>>0]<<8)),UA=0-LA|0,!(MA&0==(2048&(cr[i>>0]|cr[i+1>>0]<<8)))){if(!SA)break;zA=(PA=0|lr[DA>>1])-((0|(zA=4+(0|lr[kA>>1])+(PA-(0|lr[JA>>1])<<2)-(0|lr[hA>>1])>>3))<(0|UA)?UA:(0|LA)<(0|zA)?LA:zA)|0,or[$A>>1]=(0|zA)<0?0:65535&((0|zA)<(0|X)?zA:_),PA=(zA=0|lr[wA>>1])-((0|(PA=4+(0|lr[gA>>1])+(zA-(0|lr[vA>>1])<<2)-(0|lr[mA>>1])>>3))<(0|UA)?UA:(0|LA)<(0|PA)?LA:PA)|0,or[$A+2>>1]=(0|PA)<0?0:65535&((0|PA)<(0|X)?PA:_),zA=(PA=0|lr[pA>>1])-((0|(zA=4+(0|lr[ZA>>1])+(PA-(0|lr[yA>>1])<<2)-(0|lr[CA>>1])>>3))<(0|UA)?UA:(0|LA)<(0|zA)?LA:zA)|0,or[$A+4>>1]=(0|zA)<0?0:65535&((0|zA)<(0|X)?zA:_),LA=(zA=0|lr[WA>>1])-((0|(PA=4+(0|lr[BA>>1])+(zA-(0|lr[IA>>1])<<2)-(0|lr[EA>>1])>>3))<(0|UA)?UA:(0|LA)<(0|PA)?LA:PA)|0,or[$A+6>>1]=(0|LA)<0?0:65535&((0|LA)<(0|X)?LA:_);break}for(n=0;i=DA+(n<<1)|0,PA=0|lr[JA+(n<<1)>>1],PA=(MA=(0|(MA=4+(0|lr[8+JA+(n<<1)>>1])+((0|lr[i>>1])-PA<<2)-(0|lr[DA+8+(n<<1)>>1])>>3))<(0|UA)?UA:(0|LA)<(0|MA)?LA:MA)+PA|0,or[$A+(n-XA<<1)>>1]=(0|PA)<0?0:65535&((0|PA)<(0|X)?PA:_),SA&&(PA=(0|lr[i>>1])-MA|0,or[$A+(n<<1)>>1]=(0|PA)<0?0:65535&((0|PA)<(0|X)?PA:_)),4!=(0|(n=n+1|0)););}}while(0)}while((0|KA)<2)}Ae=Ae+FA|0}while((0|Ae)<(0|ue))}if((0|le)<=(0|(r=r+NA|0))){n=5;break}}switch(0|n){case 5:return void(ur=TA);case 14:br(41808,41845,118,41865);break;case 17:br(41869,41845,119,41865);break;case 19:br(41808,41845,118,41865);break;case 21:br(41869,41845,119,41865);break;case 30:br(41808,41845,118,41865);break;case 33:br(41869,41845,119,41865);break;case 37:case 41:br(41808,41845,118,41865);break;case 53:case 57:br(41869,41845,119,41865)}}}function Nt(A,e,r,i,f,n){e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_,F,N,R,Y,J,D,Q,T,M,S,U,O,H,x,j,z,P,L,K,q,$,AA,eA,rA,iA,fA,nA,tA,oA,aA,cA,lA,uA,sA,bA,dA,kA,hA,wA,vA,gA,mA,pA,yA,ZA,CA,WA,IA,BA,EA,GA,VA,XA,_A,FA,NA,RA,YA,JA,DA,QA,TA,MA,SA,UA,OA,HA,xA,jA,zA,PA,LA,KA,qA,$A,Ae,ee,re,ie,fe,ne,te,oe,ae,ce,le,ue,se,be,de,ke,he,we,ve,ge,me,pe,ye=0,Ze=0,Ce=0,We=0,Ie=0,Be=0,Ee=0,Ge=0,Ve=0,Xe=0,_e=0,Fe=0,Ne=0,Re=0,Ye=0,Je=0,De=0,Qe=0,Te=0,Me=0,Se=0,Ue=0,Oe=0,He=0,xe=0,je=0;if(ur=(pe=ur)+16|0,ve=pe+8|0,ge=pe,me=0|ar[(A|=0)+5780>>2],be=0|ar[A+5784>>2],de=0|sr(me,e?2:1),ke=0|sr(be,e?1:2),se=0|ar[(he=A+44|0)>>2],je=(0|n)<(0|(je=0|ar[(we=A+10472|0)>>2]))?n:je,O=A+5768|0,(0|(xe=(0|i)<(0|(xe=0|ar[A+10476>>2]))?i:xe))<=(0|r))ur=pe;else{H=(0|f)<(0|je),x=3-me|0,j=3-be|0,z=A+10460|0,P=A+5956|0,L=A+5952|0,K=A+10368|0,q=A+10372|0,$=A+10376|0,AA=A+10360|0,eA=A+5776|0,rA=A+10348|0,iA=A+10352|0,fA=A+10356|0,nA=A+10340|0,tA=A+48|0,oA=A+5480|0,cA=255+(aA=1<<ar[O>>2])|0,lA=0-se|0,kA=(bA=se<<1)-1|0,vA=(hA=3*se|0)-1|0,mA=1+se|0,yA=se-2|0,ZA=1|bA,WA=bA-2|0,IA=1+hA|0,EA=hA-2|0,RA=sA=se-1|0,MA=(TA=se<<1)-1|0,jA=(xA=3*se|0)-1|0,fe=se<<1,ce=3*se|0,g=1-se|0,C=2-se|0,G=3-se|0,_=k=LA=XA=uA=ge+1|0,F=h=KA=_A=t=1+ve|0,N=w=qA=FA=o=5+ve|0,R=v=$A=NA=pA=ge+5|0,Y=m=Ae=YA=dA=ge+2|0,J=p=ee=JA=c=2+ve|0,D=y=re=DA=l=6+ve|0,Q=Z=ie=QA=CA=ge+6|0,T=W=ne=SA=wA=ge+3|0,M=I=te=UA=u=3+ve|0,S=B=oe=OA=s=7+ve|0,U=E=ae=HA=BA=ge+7|0,ue=V=b=zA=GA=a=4+ve|0,le=X=d=PA=VA=gA=ge+4|0;A:for(;;){if(H){Me=(0|(Te=0|sr(Qe=r<<j,be)))/4|0,Se=Te+-1|0,De=e?Te:Se,Ye=f;do{if(Oe=0|sr(Ue=Ye<<x,me),n=(0|sr(0|ar[we>>2],Me))+((0|Oe)/4|0)|0,1<(255&(n=3&tr[(0|ar[z>>2])+n>>0]))){He=Oe+-1|0,Je=e?He:Oe,Fe=(n<<1&255)-2|0,Ne=Ue-se|0,_e=0;do{if(Ze=0|ar[(0==(0|_e)?L:P)>>2],Re=(n=0|ar[A+4+((_e=_e+1|0)<<2)>>2])+(ye=(i=0|sr(0|ar[he>>2],Qe))+Ue|0)|0,e?(tr[ge>>0]=0|tr[Re>>0],tr[ve>>0]=0|tr[Re+-1>>0],tr[uA>>0]=0|tr[Re+se>>0],tr[t>>0]=0|tr[Re+sA>>0],tr[dA>>0]=0|tr[Re+bA>>0],tr[c>>0]=0|tr[Re+kA>>0],tr[wA>>0]=0|tr[Re+hA>>0],tr[u>>0]=0|tr[Re+vA>>0],tr[gA>>0]=0|tr[Re+1>>0],tr[a>>0]=0|tr[Re+-2>>0],tr[pA>>0]=0|tr[Re+mA>>0],tr[o>>0]=0|tr[Re+yA>>0],tr[CA>>0]=0|tr[Re+ZA>>0],tr[l>>0]=0|tr[Re+WA>>0],tr[BA>>0]=0|tr[Re+IA>>0],tr[s>>0]=0|tr[Re+EA>>0]):(Ve=n+(Xe=Ne+i|0)|0,ar[ge>>2]=cr[Re>>0]|cr[Re+1>>0]<<8|cr[Re+2>>0]<<16|cr[Re+3>>0]<<24,ar[ve>>2]=cr[Ve>>0]|cr[Ve+1>>0]<<8|cr[Ve+2>>0]<<16|cr[Ve+3>>0]<<24,Xe=n+(Xe-se)|0,Ve=n+(ye+se)|0,ar[le>>2]=cr[Ve>>0]|cr[Ve+1>>0]<<8|cr[Ve+2>>0]<<16|cr[Ve+3>>0]<<24,ar[ue>>2]=cr[Xe>>0]|cr[Xe+1>>0]<<8|cr[Xe+2>>0]<<16|cr[Xe+3>>0]<<24),n=Te>>(Ce=0|ar[K>>2]),(0|(Ie=Oe>>Ce))<=-1){n=14;break A}if((0|(Ee=0|ar[q>>2]))<=(0|Ie)){n=14;break A}if((0|n)<=-1){n=17;break A}if((0|(Be=0|ar[$>>2]))<=(0|n)){n=17;break A}if(Ve=0|ar[AA>>2],Ge=(We=0|sr(Ee,n))+Ie|0,i=De>>Ce,!(-1<(0|(n=Je>>Ce))&(0|n)<(0|Ee))){n=19;break A}if(!(-1<(0|i)&(0|i)<(0|Be))){n=21;break A}n=Ve+(3*((0|sr(Ee,i))+n|0)|0)+2|0,n=(1+(0|tr[Ve+(3*Ge|0)+2>>0])+(0|tr[n>>0])>>1)+Ze|0;do{if(1==(0|ar[eA>>2])){if(30<=(0|n)){if(42<(0|n)){n=n+-6|0;break}n=0|ar[6364+(n+-30<<2)>>2];break}}else n=(0|n)<51?n:51}while(0);if(i=Oe>>(ye=0|ar[rA>>2]),ye=Te>>ye,(0|i)<=-1){n=30;break A}if((0|(Ze=0|ar[iA>>2]))<=(0|i)){n=30;break A}if((0|ye)<=-1){n=33;break A}if((0|ye)>=(0|ar[fA>>2])){n=33;break A}Xe=(0|ar[nA>>2])+(24*((0|sr(Ze,ye))+i|0)|0)+2|0,Xe=Fe+n+(0|ar[760+(0|ar[(0|ar[tA>>2])+(lr[Xe>>1]<<2)>>2])>>2])|0,Xe=cr[41426+((0|Xe)<0?0:(0|Xe)<53?Xe:53)>>0]<<(0|ar[O>>2])-8,ye=0==(0|tr[oA>>0]);do{if(e){if(n=-1<(0|(i=He>>Ce)),ye){if(!n){n=41;break A}Ce=1}else{if(!(n&(0|i)<(0|Ee))){n=37;break A}Ce=0==(1024&(cr[(Ce=Ve+(3*(We+i|0)|0)|0)>>0]|cr[Ce+1>>0]<<8))}if((0|Ee)<=(0|i)){n=41;break A}if(Ze=Ve+(3*(We+i|0)|0)|0,ye=(n=ye?1:0==(1024&(cr[(n=Ve+(3*Ge|0)|0)>>0]|cr[n+1>>0]<<8)))&0==(2048&(cr[(ye=Ve+(3*Ge|0)|0)>>0]|cr[ye+1>>0]<<8)),i=0-Xe|0,!(Ce&0==(2048&(cr[Ze>>0]|cr[Ze+1>>0]<<8)))){if(!ye)break;Ge=(Ve=0|cr[ge>>0])-((0|(Ge=4+(0|cr[zA>>0])+(Ve-(0|cr[ve>>0])<<2)-(0|cr[PA>>0])>>3))<(0|i)?i:(0|Xe)<(0|Ge)?Xe:Ge)|0,tr[Re>>0]=(0|Ge)<0?0:255&((0|Ge)<(0|aA)?Ge:cA),Ve=(Ge=0|cr[LA>>0])-((0|(Ve=4+(0|cr[qA>>0])+(Ge-(0|cr[KA>>0])<<2)-(0|cr[$A>>0])>>3))<(0|i)?i:(0|Xe)<(0|Ve)?Xe:Ve)|0,tr[Re+se>>0]=(0|Ve)<0?0:255&((0|Ve)<(0|aA)?Ve:cA),Ge=(Ve=0|cr[Ae>>0])-((0|(Ge=4+(0|cr[re>>0])+(Ve-(0|cr[ee>>0])<<2)-(0|cr[ie>>0])>>3))<(0|i)?i:(0|Xe)<(0|Ge)?Xe:Ge)|0,tr[Re+fe>>0]=(0|Ge)<0?0:255&((0|Ge)<(0|aA)?Ge:cA),Xe=(Ge=0|cr[ne>>0])-((0|(Ve=4+(0|cr[oe>>0])+(Ge-(0|cr[te>>0])<<2)-(0|cr[ae>>0])>>3))<(0|i)?i:(0|Xe)<(0|Ve)?Xe:Ve)|0,tr[Re+ce>>0]=(0|Xe)<0?0:255&((0|Xe)<(0|aA)?Xe:cA);break}if(Ve=0|cr[ve>>0],Ve=(n=(0|(n=4+(0|cr[GA>>0])+((0|cr[ge>>0])-Ve<<2)-(0|cr[VA>>0])>>3))<(0|i)?i:(0|Xe)<(0|n)?Xe:n)+Ve|0,tr[Re+-1>>0]=(0|Ve)<0?0:255&((0|Ve)<(0|aA)?Ve:cA),ye&&(Ve=(0|cr[ge>>0])-n|0,tr[Re>>0]=(0|Ve)<0?0:255&((0|Ve)<(0|aA)?Ve:cA)),Ve=0|cr[_A>>0],Ve=(n=(0|(n=4+(0|cr[FA>>0])+((0|cr[XA>>0])-Ve<<2)-(0|cr[NA>>0])>>3))<(0|i)?i:(0|Xe)<(0|n)?Xe:n)+Ve|0,tr[Re+RA>>0]=(0|Ve)<0?0:255&((0|Ve)<(0|aA)?Ve:cA),ye&&(Ve=(0|cr[XA>>0])-n|0,tr[Re+se>>0]=(0|Ve)<0?0:255&((0|Ve)<(0|aA)?Ve:cA)),Ve=0|cr[JA>>0],Ve=(n=(0|(n=4+(0|cr[DA>>0])+((0|cr[YA>>0])-Ve<<2)-(0|cr[QA>>0])>>3))<(0|i)?i:(0|Xe)<(0|n)?Xe:n)+Ve|0,tr[Re+MA>>0]=(0|Ve)<0?0:255&((0|Ve)<(0|aA)?Ve:cA),ye&&(Ve=(0|cr[YA>>0])-n|0,tr[Re+TA>>0]=(0|Ve)<0?0:255&((0|Ve)<(0|aA)?Ve:cA)),Ve=0|cr[UA>>0],Xe=(n=(0|(n=4+(0|cr[OA>>0])+((0|cr[SA>>0])-Ve<<2)-(0|cr[HA>>0])>>3))<(0|i)?i:(0|Xe)<(0|n)?Xe:n)+Ve|0,tr[Re+jA>>0]=(0|Xe)<0?0:255&((0|Xe)<(0|aA)?Xe:cA),!ye)break;Xe=(0|cr[SA>>0])-n|0,tr[Re+xA>>0]=(0|Xe)<0?0:255&((0|Xe)<(0|aA)?Xe:cA)}else{if(n=-1<(0|(i=Se>>Ce)),ye){if(!n){n=56;break A}Ce=1}else{if(!(n&(0|i)<(0|Be))){n=52;break A}Ce=Ve+(3*((0|sr(Ee,i))+Ie|0)|0)|0,Ce=0==(1024&(cr[Ce>>0]|cr[Ce+1>>0]<<8))}if((0|Be)<=(0|i)){n=56;break A}if(Ze=Ve+(3*((0|sr(Ee,i))+Ie|0)|0)|0,ye=(n=ye?1:0==(1024&(cr[(n=Ve+(3*Ge|0)|0)>>0]|cr[n+1>>0]<<8)))&0==(2048&(cr[(ye=Ve+(3*Ge|0)|0)>>0]|cr[ye+1>>0]<<8)),i=0-Xe|0,!(Ce&0==(2048&(cr[Ze>>0]|cr[Ze+1>>0]<<8)))){if(!ye)break;Ge=(Ve=0|cr[ge>>0])-((0|(Ge=4+(0|cr[V>>0])+(Ve-(0|cr[ve>>0])<<2)-(0|cr[X>>0])>>3))<(0|i)?i:(0|Xe)<(0|Ge)?Xe:Ge)|0,tr[Re>>0]=(0|Ge)<0?0:255&((0|Ge)<(0|aA)?Ge:cA),Ve=(Ge=0|cr[_>>0])-((0|(Ve=4+(0|cr[N>>0])+(Ge-(0|cr[F>>0])<<2)-(0|cr[R>>0])>>3))<(0|i)?i:(0|Xe)<(0|Ve)?Xe:Ve)|0,tr[Re+1>>0]=(0|Ve)<0?0:255&((0|Ve)<(0|aA)?Ve:cA),Ge=(Ve=0|cr[Y>>0])-((0|(Ge=4+(0|cr[D>>0])+(Ve-(0|cr[J>>0])<<2)-(0|cr[Q>>0])>>3))<(0|i)?i:(0|Xe)<(0|Ge)?Xe:Ge)|0,tr[Re+2>>0]=(0|Ge)<0?0:255&((0|Ge)<(0|aA)?Ge:cA),Xe=(Ge=0|cr[T>>0])-((0|(Ve=4+(0|cr[S>>0])+(Ge-(0|cr[M>>0])<<2)-(0|cr[U>>0])>>3))<(0|i)?i:(0|Xe)<(0|Ve)?Xe:Ve)|0,tr[Re+3>>0]=(0|Xe)<0?0:255&((0|Xe)<(0|aA)?Xe:cA);break}if(Ve=0|cr[ve>>0],Ve=(n=(0|(n=4+(0|cr[b>>0])+((0|cr[ge>>0])-Ve<<2)-(0|cr[d>>0])>>3))<(0|i)?i:(0|Xe)<(0|n)?Xe:n)+Ve|0,tr[Re+lA>>0]=(0|Ve)<0?0:255&((0|Ve)<(0|aA)?Ve:cA),ye&&(Ve=(0|cr[ge>>0])-n|0,tr[Re>>0]=(0|Ve)<0?0:255&((0|Ve)<(0|aA)?Ve:cA)),Ve=0|cr[h>>0],Ve=(n=(0|(n=4+(0|cr[w>>0])+((0|cr[k>>0])-Ve<<2)-(0|cr[v>>0])>>3))<(0|i)?i:(0|Xe)<(0|n)?Xe:n)+Ve|0,tr[Re+g>>0]=(0|Ve)<0?0:255&((0|Ve)<(0|aA)?Ve:cA),ye&&(Ve=(0|cr[k>>0])-n|0,tr[Re+1>>0]=(0|Ve)<0?0:255&((0|Ve)<(0|aA)?Ve:cA)),Ve=0|cr[p>>0],Ve=(n=(0|(n=4+(0|cr[y>>0])+((0|cr[m>>0])-Ve<<2)-(0|cr[Z>>0])>>3))<(0|i)?i:(0|Xe)<(0|n)?Xe:n)+Ve|0,tr[Re+C>>0]=(0|Ve)<0?0:255&((0|Ve)<(0|aA)?Ve:cA),ye&&(Ve=(0|cr[m>>0])-n|0,tr[Re+2>>0]=(0|Ve)<0?0:255&((0|Ve)<(0|aA)?Ve:cA)),Ve=0|cr[I>>0],Xe=(n=(0|(n=4+(0|cr[B>>0])+((0|cr[W>>0])-Ve<<2)-(0|cr[E>>0])>>3))<(0|i)?i:(0|Xe)<(0|n)?Xe:n)+Ve|0,tr[Re+G>>0]=(0|Xe)<0?0:255&((0|Xe)<(0|aA)?Xe:cA),!ye)break;Xe=(0|cr[W>>0])-n|0,tr[Re+3>>0]=(0|Xe)<0?0:255&((0|Xe)<(0|aA)?Xe:cA)}}while(0)}while((0|_e)<2)}Ye=Ye+de|0}while((0|Ye)<(0|je))}if((0|xe)<=(0|(r=r+ke|0))){n=5;break}}switch(0|n){case 5:return void(ur=pe);case 14:br(41808,41845,118,41865);break;case 17:br(41869,41845,119,41865);break;case 19:br(41808,41845,118,41865);break;case 21:br(41869,41845,119,41865);break;case 30:br(41808,41845,118,41865);break;case 33:br(41869,41845,119,41865);break;case 37:case 41:br(41808,41845,118,41865);break;case 52:case 56:br(41869,41845,119,41865)}}}function Rt(A,e,r,i,f,n,t){r|=0,i|=0,f|=0,n|=0,t|=0;var o,a,c,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0;for((0|(l=(e|=0)>>(u=0|ar[(d=(A|=0)+10448|0)>>2])))<=-1&&br(41808,41845,118,41865),o=A+10452|0,a=A+10456|0,c=A+10440|0,v=e,s=i,b=n,h=t,i=(w=r)>>u;;){if((0|(e=0|ar[o>>2]))<=(0|l)){e=4;break}if((0|i)<=-1){e=7;break}if((0|i)>=(0|ar[a>>2])){e=7;break}if(u=(0|ar[c>>2])+((0|sr(e,i))+l)|0,k=1<<s,!((0|cr[u>>0])&1<<f)){e=9;break}if(i=(n=k>>1)+v|0,n=n+w|0,Rt(A,v,w,e=s+-1|0,f=f+1|0,b,h),Rt(A,i,w,e,f,16,h),Rt(A,v,n,e,f,b,32),(0|(l=i>>(t=0|ar[d>>2])))<=-1){e=4;break}v=i,s=e,b=16,h=32,i=(w=n)>>t}if(4==(0|e))br(41808,41845,118,41865);else if(7==(0|e))br(41869,41845,119,41865);else if(9==(0|e)){if(s=31==(0|s))return;for(i=255&b,f=(0|v)/4|0,n=A+10472|0,t=A+10476|0,l=A+10460|0,e=0;r=(e+w|0)/4|0,(0|f)<(0|(u=0|ar[n>>2]))&&(0|r)<(0|ar[t>>2])&&(d=(0|sr(u,r))+f|0,d=(0|ar[l>>2])+d|0,tr[d>>0]=tr[d>>0]|i),(0|(e=e+4|0))<(0|k););if(s)return;for(u=255&h,t=(0|w)/4|0,l=A+10472|0,r=A+10476|0,i=A+10460|0,e=0;(0|(f=(e+v|0)/4|0))<(0|(n=0|ar[l>>2]))&&(0|t)<(0|ar[r>>2])&&(A=(0|sr(n,t))+f|0,A=(0|ar[i>>2])+A|0,tr[A>>0]=tr[A>>0]|u),(0|(e=e+4|0))<(0|k););return}}function Yt(A,e,r,i,f,n){r|=0,i|=0,f|=0,n|=0;var t,o=0,a=0,c=0,l=0,u=0;switch(n=(e|=0)>>(o=0|ar[(A|=0)+10368>>2]),o=r>>o,(0|n)<=-1&&br(41808,41845,118,41865),(0|(f=0|ar[A+10372>>2]))<=(0|n)&&br(41808,41845,118,41865),(0|o)<=-1&&br(41869,41845,119,41865),(0|o)>=(0|ar[A+10376>>2])&&br(41869,41845,119,41865),u=(0|ar[A+10360>>2])+(3*((0|sr(f,o))+n|0)|0)|0,t=1<<i,n=1<<i+-1,f=1<<i+-2,(65535&(cr[u>>0]|cr[u+1>>0]<<8))>>>3&7){case 3:if(31==(0|i))return;for(c=(n+e|0)/4|0,l=A+10472|0,u=A+10476|0,a=A+10460|0,i=(n+r|0)/4|0,o=0;f=(o+r|0)/4|0,(0|c)<(0|(n=0|ar[l>>2]))&&(0|f)<(0|ar[u>>2])&&(n=(0|sr(n,f))+c|0,n=(0|ar[a>>2])+n|0,tr[n>>0]=64|tr[n>>0],n=0|ar[l>>2]),(0|(f=(o+e|0)/4|0))<(0|n)&&(0|i)<(0|ar[u>>2])&&(A=(0|sr(n,i))+f|0,A=(0|ar[a>>2])+A|0,tr[A>>0]=-128|tr[A>>0]),(0|(o=o+1|0))<(0|t););return;case 2:if(31==(0|i))return;for(a=(n+e|0)/4|0,c=A+10472|0,l=A+10476|0,i=A+10460|0,f=0;n=(f+r|0)/4|0,(0|a)<(0|(o=0|ar[c>>2]))&&(0|n)<(0|ar[l>>2])&&(e=(0|sr(o,n))+a|0,e=(0|ar[i>>2])+e|0,tr[e>>0]=64|tr[e>>0]),(0|(f=f+1|0))<(0|t););return;case 1:if(31==(0|i))return;for(a=(n+r|0)/4|0,c=A+10472|0,l=A+10476|0,i=A+10460|0,f=0;(0|(n=(f+e|0)/4|0))<(0|(o=0|ar[c>>2]))&&(0|a)<(0|ar[l>>2])&&(r=(0|sr(o,a))+n|0,r=(0|ar[i>>2])+r|0,tr[r>>0]=-128|tr[r>>0]),(0|(f=f+1|0))<(0|t););return;case 6:if(31==(0|i))return;for(a=(f+e|0)/4|0,c=A+10472|0,l=A+10476|0,i=A+10460|0,f=0;n=(f+r|0)/4|0,(0|a)<(0|(o=0|ar[c>>2]))&&(0|n)<(0|ar[l>>2])&&(e=(0|sr(o,n))+a|0,e=(0|ar[i>>2])+e|0,tr[e>>0]=64|tr[e>>0]),(0|(f=f+1|0))<(0|t););return;case 7:if(31==(0|i))return;for(a=(n+e+f|0)/4|0,c=A+10472|0,l=A+10476|0,i=A+10460|0,f=0;n=(f+r|0)/4|0,(0|a)<(0|(o=0|ar[c>>2]))&&(0|n)<(0|ar[l>>2])&&(e=(0|sr(o,n))+a|0,e=(0|ar[i>>2])+e|0,tr[e>>0]=64|tr[e>>0]),(0|(f=f+1|0))<(0|t););return;case 4:if(31==(0|i))return;for(a=(f+r|0)/4|0,c=A+10472|0,l=A+10476|0,i=A+10460|0,f=0;(0|(n=(f+e|0)/4|0))<(0|(o=0|ar[c>>2]))&&(0|a)<(0|ar[l>>2])&&(r=(0|sr(o,a))+n|0,r=(0|ar[i>>2])+r|0,tr[r>>0]=-128|tr[r>>0]),(0|(f=f+1|0))<(0|t););return;case 5:if(31==(0|i))return;for(a=(n+r+f|0)/4|0,c=A+10472|0,l=A+10476|0,i=A+10460|0,f=0;(0|(n=(f+e|0)/4|0))<(0|(o=0|ar[c>>2]))&&(0|a)<(0|ar[l>>2])&&(r=(0|sr(o,a))+n|0,r=(0|ar[i>>2])+r|0,tr[r>>0]=-128|tr[r>>0]),(0|(f=f+1|0))<(0|t););return;default:return}}function Jt(A,e,r,i,f,n,t){A|=0,e|=0,r|=0,i|=0,n|=0,t|=0;var o=0,a=0,c=0;return t=(0|(c=(f|=0)?(f=e+-1>>(o=0|ar[t+10368>>2]),o=r>>o,(0|f)<=-1&&br(41808,41845,118,41865),(0|(a=0|ar[t+10372>>2]))<=(0|f)&&br(41808,41845,118,41865),(0|o)<=-1&&br(41869,41845,119,41865),(0|o)>=(0|ar[t+10376>>2])&&br(41869,41845,119,41865),c=(0|ar[t+10360>>2])+(3*((0|sr(a,o))+f|0)|0)|0,1792&(cr[c>>0]|cr[c+1>>0]<<8)?1:0|cr[(0|ar[t+10400>>2])+(i+-1)>>0]):1))!=(0|(f=n?(f=e>>(o=0|ar[t+10368>>2]),o=r+-1>>o,(0|f)<=-1&&br(41808,41845,118,41865),(0|(a=0|ar[t+10372>>2]))<=(0|f)&&br(41808,41845,118,41865),(0|o)<=-1&&br(41869,41845,119,41865),(0|o)>=(0|ar[t+10376>>2])&&br(41869,41845,119,41865),n=(0|ar[t+10360>>2])+(3*((0|sr(a,o))+f|0)|0)|0,0==(1792&(cr[n>>0]|cr[n+1>>0]<<8))&&(r>>(n=0|ar[t+5804>>2])<<n|0)<(0|r)?0|cr[(0|ar[t+10400>>2])+(i-(0|ar[t+5876>>2]))>>0]:1):1))?0!=(0|(ar[A>>2]=c))&0!=(0|(ar[A+4>>2]=f))?0:1!=(0|c)&1!=(0|f)?1:26:c>>>0<2?(ar[A>>2]=0,ar[A+4>>2]=1,26):(ar[A>>2]=c,ar[A+4>>2]=2+(c+29&31),2+((c+-1|0)%32|0)|0),void(ar[(A=A+8|0)>>2]=t)}function Dt(A,e,r,i,f){A|=0,e|=0,i|=0;var n,t=0,o=0,a=0,c=0,l=0;if(ur=(n=ur)+144|0,c=n,4==(0|(r|=0))|1==(0|(f|=0)))ur=n;else{switch(f=(0|(l=(0|f)<26?26-f|0:f+-26|0))<(0|(f=(0|f)<10?10-f|0:f+-10|0))?l:f,0|r){case 8:t=7;break;case 16:t=1;break;case 32:t=0;break;default:br(49065,41615,518,41687)}if((0|f)<=(0|t))ur=n;else{if(f=32==(0|r)&(0==(0|i)&0!=(0|tr[A+5665>>0]))&&(o=0|cr[e>>0],(0|((0|(l=(0|cr[e+64>>0])+o-(cr[e+32>>0]<<1)|0))<0?0-l|0:l))<(0|(a=1<<(0|ar[A+1276>>2])-5)))?(0|((0|(f=(0|cr[e+-64>>0])+o-(cr[e+-32>>0]<<1)|0))<0?0-f|0:f))<(0|a):0,i=c+64|0,a=0|sr(r,-2),tr[i+a>>0]=0|tr[e+a>>0],tr[i+(a=r<<1)>>0]=0|tr[e+a>>0],f)for(t=0|tr[e>>0],tr[i>>0]=t,t&=255,A=(0|cr[e+-64>>0])-t|0,o=(0|cr[e+64>>0])-t|0,f=1;l=((32+(0|sr(A,f))|0)>>>6)+t&255,tr[i+(0-f)>>0]=l,l=((32+(0|sr(o,f))|0)>>>6)+t&255,tr[i+f>>0]=l,64!=(0|(f=f+1|0)););else if((0|(f=1-a|0))<(0|a))for(f=0|tr[e+(t=f)>>0];c=f,f=0|tr[e+(t=(l=t)+1|0)>>0],tr[i+l>>0]=(2+(255&f)+((255&c)<<1)+(0|cr[e+(l+-1)>>0])|0)>>>2,(0|t)!=(0|a););Eu(e+(l=0-a|0)|0,i+l|0,r<<2|1),ur=n}}}function Qt(A,e,r,i,f){A|=0,e|=0,i|=0;var n,t=0,o=0,a=0,c=0,l=0;if(ur=(n=ur)+272|0,c=n,4==(0|(r|=0))|1==(0|(f|=0)))ur=n;else{switch(f=(0|(l=(0|f)<26?26-f|0:f+-26|0))<(0|(f=(0|f)<10?10-f|0:f+-10|0))?l:f,0|r){case 8:t=7;break;case 16:t=1;break;case 32:t=0;break;default:br(49065,41615,518,41687)}if((0|f)<=(0|t))ur=n;else{if(f=32==(0|r)&(0==(0|i)&0!=(0|tr[A+5665>>0]))&&(o=0|lr[e>>1],(0|((0|(l=(0|lr[e+128>>1])+o-(lr[e+64>>1]<<1)|0))<0?0-l|0:l))<(0|(a=1<<(0|ar[A+1276>>2])-5)))?(0|((0|(f=(0|lr[e+-128>>1])+o-(lr[e+-64>>1]<<1)|0))<0?0-f|0:f))<(0|a):0,i=c+128|0,a=0|sr(r,-2),or[i+(a<<1)>>1]=0|or[e+(a<<1)>>1],or[i+((a=r<<1)<<1)>>1]=0|or[e+(a<<1)>>1],f)for(t=0|or[e>>1],or[i>>1]=t,t&=65535,A=(0|lr[e+-128>>1])-t|0,o=(0|lr[e+128>>1])-t|0,f=1;l=((32+(0|sr(A,f))|0)>>>6)+t&65535,or[i+(0-f<<1)>>1]=l,l=((32+(0|sr(o,f))|0)>>>6)+t&65535,or[i+(f<<1)>>1]=l,64!=(0|(f=f+1|0)););else if((0|(f=1-a|0))<(0|a))for(f=0|or[e+((t=f)<<1)>>1];c=f,f=0|or[e+((t=(l=t)+1|0)<<1)>>1],or[i+(l<<1)>>1]=(2+(65535&f)+((65535&c)<<1)+(0|lr[e+(l+-1<<1)>>1])|0)>>>2,(0|t)!=(0|a););Eu(e+((l=0-a|0)<<1)|0,i+(l<<1)|0,r<<3|2),ur=n}}}function Tt(A){ar[(A|=0)+8>>2]=1732584193,ar[A+12>>2]=-271733879,ar[A+16>>2]=-1732584194,ar[A+20>>2]=271733878,ar[A>>2]=0,ar[A+4>>2]=0}function Mt(A,e,r){e|=0,r|=0;var i,f,n=0,t=0;f=(t=0|ar[(A|=0)>>2])+r&536870911,ar[A>>2]=f,n=0|ar[(i=A+4|0)>>2],f>>>0<t>>>0&&(n=n+1|0,ar[i>>2]=n),ar[i>>2]=n+(r>>>29),n=63&t;do{if(n){if(t=64-n|0,n=A+24+n|0,t>>>0<=r>>>0){Eu(0|n,0|e,0|t),Do(A,A+24|0,64),e=e+t|0,r=r-t|0;break}return void Eu(0|n,0|e,0|r)}}while(0);63<r>>>0&&(e=0|Do(A,e,-64&r),r&=63),Eu(A+24|0,0|e,0|r)}function St(A,e){e|=0;var r,i,f,n,t,o=0,a=0,c=0,l=0;f=(A|=0)+4|0,n=0|ar[A>>2],1073741823<(o=1+(i=(t=(0|ar[f>>2])-n|0)>>2)|0)>>>0&&il(),a=(c=(0|ar[(l=A+8|0)>>2])-n|0)>>1,a=c>>2>>>0<536870911?a>>>0<o>>>0?o:a:1073741823;do{if(a){if(!(1073741823<a>>>0)){c=0|El(a<<2);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else c=0}while(0);ar[(r=c+(i<<2)|0)>>2]=ar[e>>2],o=r+(0-i<<2)|0,0<(0|t)&&Eu(0|o,0|n,0|t),ar[A>>2]=o,ar[f>>2]=4+r,ar[l>>2]=c+(a<<2),n&&Vl(n)}function Ut(A,e,r,i,f){A|=0,r|=0,i|=0,f|=0;var n,t=0,o=0,a=0,c=0;if(0|$t(t=(e|=0)+376148|0,1)||br(28370,28026,1433,28406),(0|(n=0|to(t,0|ar[e+375388>>2],A,0,0,0,0)))<=-1&&br(28445,28026,1436,28406),A=0|ar[e+376156>>2],A=(0|ar[e+376160>>2])-A>>2>>>0>n>>>0?0|ar[A+(n<<2)>>2]:0,e=1<<(0|ar[r+5004>>2])-1,function(A,e,r,i){A|=0,r|=0,i|=0,-1<(0|(e|=0))&&Vu(0|ar[A+4>>2],255&e|0,0|sr(0|ar[A+28>>2],0|ar[A+40>>2]));-1<(0|r)&&Vu(0|ar[A+8>>2],255&r|0,0|sr(0|ar[A+36>>2],0|ar[A+44>>2]));if((0|i)<=-1)return;Vu(0|ar[A+12>>2],255&i|0,0|sr(0|ar[A+36>>2],0|ar[A+44>>2]))}(A,1<<(0|ar[r+4996>>2])-1,e,e),0<(0|ar[(e=A+10364|0)>>2]))for(o=A+10360|0,t=0;a=(0|ar[o>>2])+(3*t|0)|0,c=-769&(cr[a>>0]|cr[a+1>>0]<<8),tr[a>>0]=c,tr[a+1>>0]=c>>8,(0|(t=t+1|0))<(0|ar[e>>2]););return ar[A+92>>2]=i,ar[A+88>>2]=(0|ar[r+5032>>2])-1&i,tr[A+100>>0]=0,ar[A+96>>2]=f?2:1,tr[A+10516>>0]=1,0|n}function Ot(A,e){A|=0;var r,i,f=0,n=0,t=0,o=0,a=0;if(ur=(i=ur)+112|0,r=i+24|0,t=(o=i)+104|0,function(A,e,r){e|=0,r|=0;var i,f=0,n=0,t=0,o=0,a=0,c=0,l=0;ar[(A|=0)>>2]=e,ar[(i=A+4|0)>>2]=r,ar[(c=a=A+8|0)>>2]=0,ar[c+4>>2]=0,ar[(c=A+16|0)>>2]=0,r?(f=e+1|0,ar[A>>2]=f,n=0|cr[e>>0],o=r+-1|0,ar[i>>2]=o,n=0|Iu(0|n,0,56),t=D,ar[(l=a)>>2]=n,ar[l+4>>2]=t,o?(o=e+2|0,ar[A>>2]=o,f=0|cr[f>>0],l=r+-2|0,ar[i>>2]=l,f=0|Iu(0|f,0,48),f|=n,n=t|D,ar[(t=a)>>2]=f,ar[t+4>>2]=n,l?(t=e+3|0,ar[A>>2]=t,o=0|cr[o>>0],l=r+-3|0,ar[i>>2]=l,o=0|Iu(0|o,0,40),o|=f,f=n|D,ar[(n=a)>>2]=o,ar[n+4>>2]=f,l?(n=e+4|0,ar[A>>2]=n,t=0|cr[t>>0],l=r+-4|0,ar[i>>2]=l,f|=t,ar[(t=a)>>2]=o,ar[t+4>>2]=f,l?(t=e+5|0,ar[A>>2]=t,n=0|cr[n>>0],l=r+-5|0,ar[i>>2]=l,n=0|Iu(0|n,0,24),n|=o,f|=D,ar[(o=a)>>2]=n,ar[o+4>>2]=f,l?(o=e+6|0,ar[A>>2]=o,t=0|cr[t>>0],l=r+-6|0,ar[i>>2]=l,n|=t=0|Iu(0|t,0,16),f|=D,ar[(t=a)>>2]=n,ar[t+4>>2]=f,l?(t=e+7|0,ar[A>>2]=t,o=0|cr[o>>0],l=r+-7|0,ar[i>>2]=l,n|=o=0|Iu(0|o,0,8),f|=D,ar[(o=a)>>2]=n,ar[o+4>>2]=f,l=l?(ar[A>>2]=e+8,e=0|cr[t>>0],ar[i>>2]=r+-8,ar[(l=a)>>2]=n|e,ar[l+4>>2]=f,64-(l=0)|0):64-(l=8)|0,ar[c>>2]=l):(l=64-(l=16)|0,ar[c>>2]=l)):(l=64-(l=24)|0,ar[c>>2]=l)):(l=64-(l=32)|0,ar[c>>2]=l)):(l=64-(l=40)|0,ar[c>>2]=l)):(l=64-(l=48)|0,ar[c>>2]=l)):(l=64-(l=56)|0,ar[c>>2]=l)):(a=(a=64)-a|0,ar[c>>2]=a)}(o,0|ar[(e|=0)+20>>2],0|ar[e+24>>2]),tr[t>>0]=0,tr[(a=t+1|0)>>0]=0,tr[(f=t+2|0)>>0]=0,function(A,e){A|=0;var r=0;ct(e=e|0,1),r=255&(0|at(e,6)),tr[A>>0]=r,r=255&(0|at(e,6)),tr[A+1>>0]=r,e=255+(0|at(e,3))&255,tr[A+2>>0]=e}(t,o),n=0|tr[t>>0],tr[A+377212>>0]=n,tr[A+377213>>0]=(n+-19&255)<2&1,tr[A+377214>>0]=(-8&n)<<24>>24==16&1,0|tr[a>>0])return Eo(A+548|0,e),ur=i,(e=0)|e;if((0|cr[f>>0])>(0|ar[A+375912>>2]))return Eo(A+548|0,e),ur=i,(e=0)|e;if((255&n)<32)return e=0|Vr(A,o,e,t),ur=i,0|e;switch(n<<24>>24){case 32:return a=0|gr(A,o),Eo(A+548|0,e),ur=i,0|(e=a);case 33:return a=0|Cr(A,o),Eo(A+548|0,e),ur=i,0|(e=a);case 34:return a=0|Ir(A,o),Eo(A+548|0,e),ur=i,0|(e=a);case 40:case 39:a=0|function(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f=0,n=0;for(r=0;r=(n=0|at(A,8))+r|0,255==(0|n););for(f=0;f=(n=0|at(A,8))+f|0,255==(0|n););if(ar[e>>2]=r,ar[e+4>>2]=f,132!=(0|r))return(e=0)|e;if(f=0|at(A,8),ar[(n=e+8|0)>>2]=f,!i)return 0|(e=1025);for(i=0==(0|ar[i+476>>2])?1:3,r=0;;){switch(0|f){case 0:f=255&(0|at(A,8)),tr[e+12+(r<<4)>>0]=f,f=255&(0|at(A,8)),tr[e+12+(r<<4)+1>>0]=f,f=255&(0|at(A,8)),tr[e+12+(r<<4)+2>>0]=f,f=255&(0|at(A,8)),tr[e+12+(r<<4)+3>>0]=f,f=255&(0|at(A,8)),tr[e+12+(r<<4)+4>>0]=f,f=255&(0|at(A,8)),tr[e+12+(r<<4)+5>>0]=f,f=255&(0|at(A,8)),tr[e+12+(r<<4)+6>>0]=f,f=255&(0|at(A,8)),tr[e+12+(r<<4)+7>>0]=f,f=255&(0|at(A,8)),tr[e+12+(r<<4)+8>>0]=f,f=255&(0|at(A,8)),tr[e+12+(r<<4)+9>>0]=f,f=255&(0|at(A,8)),tr[e+12+(r<<4)+10>>0]=f,f=255&(0|at(A,8)),tr[e+12+(r<<4)+11>>0]=f,f=255&(0|at(A,8)),tr[e+12+(r<<4)+12>>0]=f,f=255&(0|at(A,8)),tr[e+12+(r<<4)+13>>0]=f,f=255&(0|at(A,8)),tr[e+12+(r<<4)+14>>0]=f,f=255&(0|at(A,8)),tr[e+12+(r<<4)+15>>0]=f;break;case 1:f=65535&(0|at(A,16)),or[e+60+(r<<1)>>1]=f;break;case 2:f=0|at(A,32),ar[e+68+(r<<2)>>2]=f}if((0|i)<=(0|(r=r+1|0))){r=0;break}f=0|ar[n>>2]}return 0|r}(o,r,n=n<<24>>24==40,0|ar[A+375388>>2]);do{if(a)20==(0|(f=0|ar[(n=A+84|0)>>2]))?(n=1001,f=19):(ar[n>>2]=f+1,n=a),ar[A+4+(f<<2)>>2]=n;else if(f=0|ar[A+377220>>2],!((0|ar[A+377216>>2])==(0|f)|1^n)){if(f=0|ar[f+-4>>2],(0|(n=0|ar[(o=f+10648|0)>>2]))==(0|ar[f+10652>>2])){Er(f+10644|0,r);break}for(f=r,t=n+80|0;ar[n>>2]=ar[f>>2],f=f+4|0,(0|(n=n+4|0))<(0|t););ar[o>>2]=80+(0|ar[o>>2]);break}}while(0);return Eo(A+548|0,e),ur=i,0|(e=a);case 36:return tr[A+376211>>0]=1,Eo(A+548|0,e),ur=i,(e=0)|e;default:return Eo(A+548|0,e),ur=i,(e=0)|e}return 0}function Ht(A,e,r,i,f){A|=0,r|=0,i|=0,f|=0;var n,t,o,a,c,l,u,s=0,b=0,d=0,k=0,h=0,w=0,v=0;if(ur=(u=ur)+2048|0,l=u,1<(0|(e|=0)))for(b=e,s=0;s=s+1|0,3<b>>>0;)b>>>=1;else s=0;if(a=5-s|0,c=1<<i+-1,n=(w=1<<f)+65535|0,t=0-w|0,o=0<(0|e)){h=65535&(31==(0|f)?t:31!=(0|f)?0:n),k=0;do{for(d=e;;){if(s=d+-1|0,(0|d)<=0){s=0,b=8;break}if(f=r+((0|sr(s,e))+k<<1)|0,0|or[f>>1]){f=0,b=10;break}d=s}if(8==(0|b))for(;d=l+((0|sr(s,e))+k<<1)|0,or[d>>1]=h,(0|(s=s+1|0))!=(0|e);)b=8;else if(10==(0|b))for(;;){for(b=s=0;v=r+((0|sr(s,e))+k<<1)|0,b=(0|sr(0|or[v>>1],0|tr[28532+(s<<a<<5)+f>>0]))+b|0,(0|(s=s+1|0))!=(0|d););if(b=b+64>>7,v=l+((0|sr(f,e))+k<<1)|0,or[v>>1]=(0|b)<(0|t)?t:(0|b)<(0|w)?b:n,(0|(f=f+1|0))==(0|e))break;b=10}k=k+1|0}while((0|k)!=(0|e));if(o){h=c>>i,k=0;do{for(w=0|sr(k,e),d=e;;){if(s=d+-1|0,(0|d)<=0){s=0,b=18;break}if(0|or[l+(s+w<<1)>>1]){f=0,b=20;break}d=s}if(18==(0|b))for(;ar[A+(s+w<<2)>>2]=h,(0|(s=s+1|0))!=(0|e);)b=18;else if(20==(0|b))for(;;){for(b=s=0;b=(0|sr(0|or[l+(s+w<<1)>>1],0|tr[28532+(s<<a<<5)+f>>0]))+b|0,(0|(s=s+1|0))!=(0|d););if(ar[A+(f+w<<2)>>2]=b+c>>i,(0|(f=f+1|0))==(0|e))break;b=20}k=k+1|0}while((0|k)!=(0|e));ur=u}else ur=u}else ur=u}function xt(A,e,r,i,f){A|=0,e|=0,i|=0;var n,t,o,a,c,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0;if(ur=(c=ur)+2048|0,t=c,a=1<<(o=20-(f|=0)|0)-1,1<(0|(r|=0)))for(u=r,l=0;l=l+1|0,3<u>>>0;)u>>>=1;else l=0;if(n=5-l|0,k=0<(0|r)){d=0;do{for(b=r;;){if(l=b+-1|0,(0|b)<=0){l=0,u=7;break}if(w=i+((0|sr(l,r))+d<<1)|0,0|or[w>>1]){s=0,u=9;break}b=l}if(7==(0|u))for(;w=t+((0|sr(l,r))+d<<1)|0,((or[w>>1]=0)|(l=l+1|0))!=(0|r);)u=7;else if(9==(0|u))for(;;){for(u=l=0;w=i+((0|sr(l,r))+d<<1)|0,u=(0|sr(0|or[w>>1],0|tr[28532+(l<<n<<5)+s>>0]))+u|0,(0|(l=l+1|0))!=(0|b););if(h=u+64>>7,w=t+((0|sr(s,r))+d<<1)|0,or[w>>1]=(0|h)<-32768?-32768:65535&((0|h)<32767?h:32767),(0|(s=s+1|0))==(0|r))break;u=9}d=d+1|0}while((0|d)!=(0|r));if(k){h=(f=1<<f)+255|0,w=a>>o,i=0;do{for(k=0|sr(i,r),d=r;;){if(l=d+-1|0,(0|d)<=0){u=18;break}if(0|or[t+(l+k<<1)>>1]){u=19;break}d=l}if(18==(0|u))for(u=0|sr(i,e),l=0;d=(0|cr[(k=A+(l+u)|0)>>0])+w|0,tr[k>>0]=(0|d)<0?0:255&((0|d)<(0|f)?d:h),(0|(l=l+1|0))!=(0|r););else if(19==(0|u)){b=0|sr(i,e),s=0;do{for(u=l=0;u=(0|sr(0|or[t+(l+k<<1)>>1],0|tr[28532+(l<<n<<5)+s>>0]))+u|0,(0|(l=l+1|0))!=(0|d););u=(0|cr[(l=A+(s+b)|0)>>0])+(u+a>>o)|0,tr[l>>0]=(0|u)<0?0:255&((0|u)<(0|f)?u:h),s=s+1|0}while((0|s)!=(0|r))}i=i+1|0}while((0|i)!=(0|r));ur=c}else ur=c}else ur=c}function jt(A,e,r,i,f){A|=0,e|=0,i|=0;var n,t,o,a,c,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0;if(ur=(c=ur)+2048|0,t=c,a=1<<(o=20-(f|=0)|0)-1,1<(0|(r|=0)))for(u=r,l=0;l=l+1|0,3<u>>>0;)u>>>=1;else l=0;if(n=5-l|0,k=0<(0|r)){d=0;do{for(b=r;;){if(l=b+-1|0,(0|b)<=0){l=0,u=7;break}if(w=i+((0|sr(l,r))+d<<1)|0,0|or[w>>1]){s=0,u=9;break}b=l}if(7==(0|u))for(;w=t+((0|sr(l,r))+d<<1)|0,((or[w>>1]=0)|(l=l+1|0))!=(0|r);)u=7;else if(9==(0|u))for(;;){for(u=l=0;w=i+((0|sr(l,r))+d<<1)|0,u=(0|sr(0|or[w>>1],0|tr[28532+(l<<n<<5)+s>>0]))+u|0,(0|(l=l+1|0))!=(0|b););if(h=u+64>>7,w=t+((0|sr(s,r))+d<<1)|0,or[w>>1]=(0|h)<-32768?-32768:65535&((0|h)<32767?h:32767),(0|(s=s+1|0))==(0|r))break;u=9}d=d+1|0}while((0|d)!=(0|r));if(k){h=(f=1<<f)+65535|0,w=a>>o,i=0;do{for(k=0|sr(i,r),d=r;;){if(l=d+-1|0,(0|d)<=0){u=18;break}if(0|or[t+(l+k<<1)>>1]){u=19;break}d=l}if(18==(0|u))for(u=0|sr(i,e),l=0;d=(0|lr[(k=A+(l+u<<1)|0)>>1])+w|0,or[k>>1]=(0|d)<0?0:65535&((0|d)<(0|f)?d:h),(0|(l=l+1|0))!=(0|r););else if(19==(0|u)){b=0|sr(i,e),s=0;do{for(u=l=0;u=(0|sr(0|or[t+(l+k<<1)>>1],0|tr[28532+(l<<n<<5)+s>>0]))+u|0,(0|(l=l+1|0))!=(0|d););u=(0|lr[(l=A+(s+b<<1)|0)>>1])+(u+a>>o)|0,or[l>>1]=(0|u)<0?0:65535&((0|u)<(0|f)?u:h),s=s+1|0}while((0|s)!=(0|r))}i=i+1|0}while((0|i)!=(0|r));ur=c}else ur=c}else ur=c}function zt(A,e,r,i){A|=0,r|=0,i|=0;var f,n,t,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0;if(ur=(t=ur)+2048|0,n=t,1<(0|(e|=0))){for(o=e,u=0;;){if(!(3<o>>>0)){o=e,a=0;break}o>>>=1,u=u+1|0}for(;3<o>>>0;)o>>>=1,a=a+1|0;for(s=a+7|0,c=1<<u+-1,l=1<<a+6,a=e,o=0;;){if(o=o+1|0,!(3<a>>>0)){d=u,h=l,k=s;break}a>>>=1}}else c=o=0,d=-1,h=32,k=6;if(f=5-o|0,s=0<(0|e)){o=0;do{u=0;do{for(b=u<<f,l=a=0;w=r+((0|sr(a,i))+o<<1)|0,l=(0|sr(0|or[w>>1],0|tr[28532+(b<<5)+a>>0]))+l|0,(0|(a=a+1|0))!=(0|e););w=n+((0|sr(u,e))+o<<1)|0,or[w>>1]=l+c>>d,u=u+1|0}while((0|u)!=(0|e));o=o+1|0}while((0|o)!=(0|e));if(s){l=0;do{u=0|sr(l,e),c=0;do{for(s=c<<f,a=o=0;a=(0|sr(0|or[n+(o+u<<1)>>1],0|tr[28532+(s<<5)+o>>0]))+a|0,(0|(o=o+1|0))!=(0|e););or[A+(c+u<<1)>>1]=a+h>>k,c=c+1|0}while((0|c)!=(0|e));l=l+1|0}while((0|l)!=(0|e));ur=t}else ur=t}else ur=t}function Pt(A,e,r,i){A|=0,r|=0,i|=0;var f,n,t,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0;if(ur=(t=ur)+2176|0,n=t+128|0,f=0<(0|(e|=0))){for(w=0==(0|(h=e>>>1)),v=e>>>2,g=7<e>>>0,s=(l=t)+64|(k=0);;){if(a=0|sr(k,i),!w)for(c=s,o=0;u=r+(o+a<<1)|0,b=r+((d=o+h|0)+a<<1)|0,or[c+(o<<1)>>1]=(0|lr[b>>1])+(0|lr[u>>1]),or[c+(d<<1)>>1]=(0|lr[u>>1])-(0|lr[b>>1]),(0|(o=o+1|0))!=(0|h););if(g)for(b=v,d=h,u=l,l=s;;){c=l,s=u,a=0;do{for(o=0;y=c+((Z=o+a|0)<<1)|0,p=c+((m=Z+b|0)<<1)|0,or[s+(Z<<1)>>1]=(0|lr[p>>1])+(0|lr[y>>1]),or[s+(m<<1)>>1]=(0|lr[y>>1])-(0|lr[p>>1]),(0|(o=o+1|0))!=(0|b););a=a+d|0}while((0|a)<(0|e));if((0|(b>>=1))<=1)break;Z=l,d>>=1,l=u,u=Z}else u=s;for(a=u,c=0|sr(k,e),o=0;p=0|or[a+(o<<1)>>1],y=0|or[a+((Z=1|o)<<1)>>1],or[n+(o+c<<1)>>1]=y+p,or[n+(Z+c<<1)>>1]=p-y,(0|(o=o+2|0))<(0|e););if((0|(k=k+1|0))==(0|e))break;s=u}if(f){for(w=0==(0|(h=e>>>1)),v=e>>>2,g=7<e>>>0,k=0;;){if(!w)for(a=u,o=0;p=n+((0|sr(o,e))+k<<1)|0,p=0|or[p>>1],y=n+((0|sr(Z=o+h|0,e))+k<<1)|0,y=0|or[y>>1],or[a+(o<<1)>>1]=y+p,or[a+(Z<<1)>>1]=p-y,(0|(o=o+1|0))!=(0|h););if(g)for(b=v,d=h,c=l,l=u;;){u=l,s=c,a=0;do{for(o=0;p=u+((m=o+a|0)<<1)|0,y=u+((Z=m+b|0)<<1)|0,or[s+(m<<1)>>1]=(0|lr[y>>1])+(0|lr[p>>1]),or[s+(Z<<1)>>1]=(0|lr[p>>1])-(0|lr[y>>1]),(0|(o=o+1|0))!=(0|b););a=a+d|0}while((0|a)<(0|e));if((0|(b>>=1))<=1)break;Z=l,d>>=1,l=c,c=Z}else c=u;for(a=c,o=0;p=a+(o<<1)|0,y=a+((Z=1|o)<<1)|0,m=A+((0|sr(o,e))+k<<1)|0,or[m>>1]=(0|lr[y>>1])+(0|lr[p>>1]),Z=A+((0|sr(Z,e))+k<<1)|0,or[Z>>1]=(0|lr[p>>1])-(0|lr[y>>1]),(0|(o=o+2|0))<(0|e););if((0|(k=k+1|0))==(0|e))break;u=c}ur=t}else ur=t}else ur=t}function Lt(A,e,r,i,f,n,t,o,a,c){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,a|=0,c|=0;var l,u,s,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0;switch(d=0|ar[8112+((o|=0)<<2)>>2],s=(u=0|ar[8112+(a<<2)>>2])+n+(b=0|ar[8128+(a<<2)>>2])|0,l=c+-8|0,0|o){case 0:if((0|(c=0-u|0))<(0|(h=b+n|0))&&(v=0-d|0,0<(0|f)))do{for(d=t+(c+u<<1)|(b=0),k=r+(0|sr(c,i))+v|0;or[d>>1]=0|cr[k>>0],(0|(b=b+1|0))!=(0|f);)d=d+(s<<1)|0,k=k+1|0;c=c+1|0}while((0|c)!=(0|h));break;case 1:if((0|(c=0-u|0))<(0|(h=b+n|0))&&(g=0-d|0,0<(0|f)))do{for(d=t+(c+u<<1)|(b=0),k=r+(0|sr(c,i))+g|0;v=(v=(cr[(k=(m=k)+1|0)>>0]<<2)-(0|cr[m>>0])+(0|sr(0|cr[m+2>>0],-10))|0)+(58*(0|cr[m+3>>0])|0)+(17*(0|cr[m+4>>0])|0)+(0|sr(0|cr[m+5>>0],-5))|0,or[d>>1]=v+(0|cr[m+6>>0])>>l,(0|(b=b+1|0))!=(0|f);)d=d+(s<<1)|0;c=c+1|0}while((0|c)!=(0|h));break;case 2:if((0|(c=0-u|0))<(0|(h=b+n|0))&&(m=0-d|0,0<(0|f)))do{for(d=t+(c+u<<1)|(b=0),k=r+(0|sr(c,i))+m|0;g=(cr[(k=(g=k)+1|0)>>0]<<2)-(0|cr[g>>0])+(40*((0|cr[g+4>>0])+(0|cr[g+3>>0])|0)|0)+(cr[g+6>>0]<<2)-(0|cr[g+7>>0])+(0|sr((0|cr[g+5>>0])+(0|cr[g+2>>0])|0,-11))>>l&65535,or[d>>1]=g,(0|(b=b+1|0))!=(0|f);)d=d+(s<<1)|0;c=c+1|0}while((0|c)!=(0|h));break;case 3:if((0|(c=0-u|0))<(0|(h=b+n|0))&&(w=0-d|0,0<(0|f)))do{for(d=t+(c+u<<1)|(b=0),k=r+(0|sr(c,i))+w|0;g=(g=(0|sr(0|cr[(k=(m=k)+1|0)>>0],-5))+(0|cr[m>>0])|0)+(17*(0|cr[m+2>>0])|0)+(58*(0|cr[m+3>>0])|0)+(0|sr(0|cr[m+4>>0],-10))|0,or[d>>1]=g+(cr[m+5>>0]<<2)-(0|cr[m+6>>0])>>l,(0|(b=b+1|0))!=(0|f);)d=d+(s<<1)|0;c=c+1|0}while((0|c)!=(0|h))}switch(h=0==(0|o)?l:6,0|a){case 0:if(!(0<(0|f)&0<(0|n)))return;k=0;do{for(b=A+(k<<1)|(c=0),d=t+((0|sr(k,s))<<1)|0;or[b>>1]=0|or[d>>1],(0|(c=c+1|0))!=(0|n);)b=b+(e<<1)|0,d=d+2|0;k=k+1|0}while((0|k)!=(0|f));return;case 1:if(!(0<(0|f)&0<(0|n)))return;k=0;do{for(b=A+(k<<1)|(c=0),d=t+((0|sr(k,s))<<1)|0;o=(o=(or[(d=(a=d)+2|0)>>1]<<2)-(0|or[a>>1])+(0|sr(0|or[a+4>>1],-10))|0)+(58*(0|or[a+6>>1])|0)+(17*(0|or[a+8>>1])|0)+(0|sr(0|or[a+10>>1],-5))|0,or[b>>1]=o+(0|or[a+12>>1])>>h,(0|(c=c+1|0))!=(0|n);)b=b+(e<<1)|0;k=k+1|0}while((0|k)!=(0|f));return;case 2:if(!(0<(0|f)&0<(0|n)))return;k=0;do{for(b=A+(k<<1)|(c=0),d=t+((0|sr(k,s))<<1)|0;a=(or[(d=(a=d)+2|0)>>1]<<2)-(0|or[a>>1])+(40*((0|or[a+8>>1])+(0|or[a+6>>1])|0)|0)+(or[a+12>>1]<<2)-(0|or[a+14>>1])+(0|sr((0|or[a+10>>1])+(0|or[a+4>>1])|0,-11))>>h&65535,or[b>>1]=a,(0|(c=c+1|0))!=(0|n);)b=b+(e<<1)|0;k=k+1|0}while((0|k)!=(0|f));return;case 3:if(!(0<(0|f)&0<(0|n)))return;k=0;do{for(b=A+(k<<1)|(c=0),d=t+((0|sr(k,s))<<1)|0;o=(o=(0|sr(0|or[(d=(a=d)+2|0)>>1],-5))+(0|or[a>>1])|0)+(17*(0|or[a+4>>1])|0)+(58*(0|or[a+6>>1])|0)+(0|sr(0|or[a+8>>1],-10))|0,or[b>>1]=o+(or[a+10>>1]<<2)-(0|or[a+12>>1])>>h,(0|(c=c+1|0))!=(0|n);)b=b+(e<<1)|0;k=k+1|0}while((0|k)!=(0|f));return;default:return}}function Kt(A,e,r,i,f,n,t,o,a,c){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,a|=0,c|=0;var l,u,s,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0;switch(d=0|ar[8112+((o|=0)<<2)>>2],s=(u=0|ar[8112+(a<<2)>>2])+n+(b=0|ar[8128+(a<<2)>>2])|0,l=c+-8|0,0|o){case 0:if((0|(c=0-u|0))<(0|(h=b+n|0))&&(v=0-d|0,0<(0|f)))do{for(d=t+(c+u<<1)|(b=0),k=r+((0|sr(c,i))<<1)+(v<<1)|0;or[d>>1]=0|or[k>>1],(0|(b=b+1|0))!=(0|f);)d=d+(s<<1)|0,k=k+2|0;c=c+1|0}while((0|c)!=(0|h));break;case 1:if((0|(c=0-u|0))<(0|(h=b+n|0))&&(g=0-d|0,0<(0|f)))do{for(d=t+(c+u<<1)|(b=0),k=r+((0|sr(c,i))<<1)+(g<<1)|0;v=(v=(lr[(k=(m=k)+2|0)>>1]<<2)-(0|lr[m>>1])+(0|sr(0|lr[m+4>>1],-10))|0)+(58*(0|lr[m+6>>1])|0)+(17*(0|lr[m+8>>1])|0)+(0|sr(0|lr[m+10>>1],-5))|0,or[d>>1]=v+(0|lr[m+12>>1])>>l,(0|(b=b+1|0))!=(0|f);)d=d+(s<<1)|0;c=c+1|0}while((0|c)!=(0|h));break;case 2:if((0|(c=0-u|0))<(0|(h=b+n|0))&&(m=0-d|0,0<(0|f)))do{for(d=t+(c+u<<1)|(b=0),k=r+((0|sr(c,i))<<1)+(m<<1)|0;g=(lr[(k=(g=k)+2|0)>>1]<<2)-(0|lr[g>>1])+(40*((0|lr[g+8>>1])+(0|lr[g+6>>1])|0)|0)+(lr[g+12>>1]<<2)-(0|lr[g+14>>1])+(0|sr((0|lr[g+10>>1])+(0|lr[g+4>>1])|0,-11))>>l&65535,or[d>>1]=g,(0|(b=b+1|0))!=(0|f);)d=d+(s<<1)|0;c=c+1|0}while((0|c)!=(0|h));break;case 3:if((0|(c=0-u|0))<(0|(h=b+n|0))&&(w=0-d|0,0<(0|f)))do{for(d=t+(c+u<<1)|(b=0),k=r+((0|sr(c,i))<<1)+(w<<1)|0;g=(g=(0|sr(0|lr[(k=(m=k)+2|0)>>1],-5))+(0|lr[m>>1])|0)+(17*(0|lr[m+4>>1])|0)+(58*(0|lr[m+6>>1])|0)+(0|sr(0|lr[m+8>>1],-10))|0,or[d>>1]=g+(lr[m+10>>1]<<2)-(0|lr[m+12>>1])>>l,(0|(b=b+1|0))!=(0|f);)d=d+(s<<1)|0;c=c+1|0}while((0|c)!=(0|h))}switch(h=0==(0|o)?l:6,0|a){case 0:if(!(0<(0|f)&0<(0|n)))return;k=0;do{for(b=A+(k<<1)|(c=0),d=t+((0|sr(k,s))<<1)|0;or[b>>1]=0|or[d>>1],(0|(c=c+1|0))!=(0|n);)b=b+(e<<1)|0,d=d+2|0;k=k+1|0}while((0|k)!=(0|f));return;case 1:if(!(0<(0|f)&0<(0|n)))return;k=0;do{for(b=A+(k<<1)|(c=0),d=t+((0|sr(k,s))<<1)|0;o=(o=(or[(d=(a=d)+2|0)>>1]<<2)-(0|or[a>>1])+(0|sr(0|or[a+4>>1],-10))|0)+(58*(0|or[a+6>>1])|0)+(17*(0|or[a+8>>1])|0)+(0|sr(0|or[a+10>>1],-5))|0,or[b>>1]=o+(0|or[a+12>>1])>>h,(0|(c=c+1|0))!=(0|n);)b=b+(e<<1)|0;k=k+1|0}while((0|k)!=(0|f));return;case 2:if(!(0<(0|f)&0<(0|n)))return;k=0;do{for(b=A+(k<<1)|(c=0),d=t+((0|sr(k,s))<<1)|0;a=(or[(d=(a=d)+2|0)>>1]<<2)-(0|or[a>>1])+(40*((0|or[a+8>>1])+(0|or[a+6>>1])|0)|0)+(or[a+12>>1]<<2)-(0|or[a+14>>1])+(0|sr((0|or[a+10>>1])+(0|or[a+4>>1])|0,-11))>>h&65535,or[b>>1]=a,(0|(c=c+1|0))!=(0|n);)b=b+(e<<1)|0;k=k+1|0}while((0|k)!=(0|f));return;case 3:if(!(0<(0|f)&0<(0|n)))return;k=0;do{for(b=A+(k<<1)|(c=0),d=t+((0|sr(k,s))<<1)|0;o=(o=(0|sr(0|or[(d=(a=d)+2|0)>>1],-5))+(0|or[a>>1])|0)+(17*(0|or[a+4>>1])|0)+(58*(0|or[a+6>>1])|0)+(0|sr(0|or[a+8>>1],-10))|0,or[b>>1]=o+(or[a+10>>1]<<2)-(0|or[a+12>>1])>>h,(0|(c=c+1|0))!=(0|n);)b=b+(e<<1)|0;k=k+1|0}while((0|k)!=(0|f));return;default:return}}function qt(){0}function $t(A,e){var r,i=0,f=0;if(e|=0)return 0|(f=1);if(e=0|ar[(A|=0)+12>>2],r=i=0|ar[A+8>>2],(f=e-i>>2)>>>0<(0|ar[A>>2])>>>0)return 0|(f=1);if((0|e)==(0|i))return(f=0)|f;for(e=0;;){if(A=0|ar[r+(e<<2)>>2],0==(0|tr[A+100>>0])&&0==(0|ar[A+96>>2])){e=1,i=7;break}if(f>>>0<=(e=e+1|0)>>>0){e=0,i=7;break}}return 7==(0|i)?0|e:0}function Ao(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f=0,n=0,t=0,o=0,a=0;A:do{if(i){if(n=A+8|0,(0|(t=0|ar[A+12>>2]))==(0|(A=o=0|ar[n>>2])))return 0|(r=-1);for(f=t-o>>2,i=0;a=0|ar[A+(i<<2)>>2],!((0|ar[a+92>>2])==(0|e)&&(0|ar[a+104>>2])>(0|r)&&2==(0|ar[a+96>>2]));)if(f>>>0<=(i=i+1|0)>>>0){f=t,i=o;break A}return 0|i}a=0|ar[(n=A+8|0)>>2],f=0|ar[A+12>>2],A=i=a}while(0);if((0|f)==(0|i))return 0|(a=-1);for(i=0;;){if(a=0|ar[A+(i<<2)>>2],(0|ar[a+92>>2])==(0|e)&&(0|ar[a+104>>2])>(0|r)&&0|ar[a+96>>2]){A=14;break}if((i=i+1|0)>>>0>=f-(0|ar[n>>2])>>2>>>0){i=-1,A=14;break}}return 14==(0|A)?0|i:0}function eo(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f=0,n=0,t=0,o=0,a=0;A:do{if(i){if(n=A+8|0,(0|(t=0|ar[A+12>>2]))==(0|(A=o=0|ar[n>>2])))return 0|(r=-1);for(f=t-o>>2,i=0;a=0|ar[A+(i<<2)>>2],!((0|ar[a+88>>2])==(0|e)&&(0|ar[a+104>>2])>(0|r)&&2==(0|ar[a+96>>2]));)if(f>>>0<=(i=i+1|0)>>>0){f=t,i=o;break A}return 0|i}a=0|ar[(n=A+8|0)>>2],f=0|ar[A+12>>2],A=i=a}while(0);if((0|f)==(0|i))return 0|(a=-1);for(i=0;;){if(a=0|ar[A+(i<<2)>>2],(0|ar[a+88>>2])==(0|e)&&(0|ar[a+104>>2])>(0|r)&&0|ar[a+96>>2]){A=14;break}if((i=i+1|0)>>>0>=f-(0|ar[n>>2])>>2>>>0){i=-1,A=14;break}}return 14==(0|A)?0|i:0}function ro(A,e){e|=0;var r,i=0;if((0|(i=0|ar[(A|=0)+12>>2]))==(0|(r=A=0|ar[A+8>>2])))return 0|(e=-1);for(i=i-A>>2,A=0;;){if((0|ar[ar[r+(A<<2)>>2]>>2])==(0|e)){i=5;break}if(i>>>0<=(A=A+1|0)>>>0){A=-1,i=5;break}}return 5==(0|i)?0|A:0}function io(A){var e,r,i,f,n=0,t=0,o=0,a=0,c=0,l=0,u=0;if((0|(i=0|ar[(r=(A|=0)+20|0)>>2]))==(0|(n=0|ar[(f=A+24|0)>>2]))&&br(29850,29880,147,29887),1<(l=n-i>>2)>>>0)for(t=(n=0)|ar[92+(0|ar[i>>2])>>2],o=1;;){if(n=(c=(0|(a=0|ar[92+(0|ar[i+(o<<2)>>2])>>2]))<(0|t))?o:n,l>>>0<=(o=o+1|0)>>>0){l=n;break}t=c?a:t}else l=0;n=0|ar[(c=A+36|0)>>2],u=(0|ar[A+40>>2])-n|0,a=0|ar[(o=A+48|0)>>2],(0|(0==(0|u)?0:(u<<8)-1|0))==((t=0|ar[(e=A+52|0)>>2])+a|0)&&(function(A){var e=0,r=0,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;if(ur=(b=ur)+32|0,c=b+4|0,a=b,1023<(r=0|ar[(e=16+(A|=0)|0)>>2])>>>0){ar[e>>2]=r+-1024,c=0|ar[(l=A+4|0)>>2],s=0|ar[c>>2],c=c+4|0,ar[l>>2]=c,o=0|ar[(u=A+8|0)>>2],t=0|ar[(a=A+12|0)>>2],e=t,n=o;do{if((0|o)==(0|t)){if(r=0|ar[A>>2],(i=r)>>>0<c>>>0){f=(e=c)+((i=(1+(e-i>>2)|0)/-2|0)<<2)|0,e=(r=(e=n-e|0)>>2)?(Gu(0|f,0|c,0|e),0|ar[l>>2]):c,A=f+(r<<2)|0,ar[u>>2]=A,ar[l>>2]=e+(i<<2),e=A;break}if(1073741823<(e=0==(0|(e=e-i>>1))?1:e)>>>0&&(Fl(b=0|C(8),37845),ar[b>>2]=16004,I(0|b,3616,283)),f=0|El(e<<2),t=i=(n=f)+(e>>>2<<2)|0,f=f+(e<<2)|0,(0|c)==(0|o))e=t;else{for(e=t,r=c;ar[i>>2]=ar[r>>2],e=i=e+4|0,(0|(r=r+4|0))!=(0|o););r=0|ar[A>>2]}ar[A>>2]=n,ar[l>>2]=t,ar[u>>2]=e,ar[a>>2]=f,r&&(Vl(r),e=0|ar[u>>2])}else e=o}while(0);return ar[e>>2]=s,ar[u>>2]=4+(0|ar[u>>2]),ur=b}if(e=0|ar[(s=A+8|0)>>2],f=e-(0|ar[(u=A+4|0)>>2])|0,r=0|ar[(l=A+12|0)>>2],i=r-(0|ar[A>>2])|0,i>>>0<=f>>>0){for(e=0==(0|(e=i>>1))?1:e,ar[c+12>>2]=0,ar[c+16>>2]=A+12,1073741823<e>>>0&&(Fl(b=0|C(8),37845),ar[b>>2]=16004,I(0|b,3616,283)),i=0|El(e<<2),ar[c>>2]=i,t=i+(f>>2<<2)|0,ar[(o=c+8|0)>>2]=t,ar[(n=c+4|0)>>2]=t,ar[(t=c+12|0)>>2]=i+(e<<2),f=0|El(4096),ar[a>>2]=f,function(A,e){e|=0;var r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0;r=0|ar[(s=8+(A|=0)|0)>>2],u=0|ar[(i=A+12|0)>>2],t=u,a=r;do{if((0|r)==(0|u)){if(l=0|ar[(u=A+4|0)>>2],n=0|ar[A>>2],(f=n)>>>0<l>>>0){o=(n=l)+((t=(1+(n-f>>2)|0)/-2|0)<<2)|0,f=(n=(f=a-n|0)>>2)?(Gu(0|o,0|l,0|f),0|ar[u>>2]):l,l=o+(n<<2)|0,ar[s>>2]=l,ar[u>>2]=f+(t<<2),f=l;break}if(1073741823<(f=0==(0|(f=t-f>>1))?1:f)>>>0&&(Fl(s=0|C(8),37845),ar[s>>2]=16004,I(0|s,3616,283)),o=0|El(f<<2),c=t=(a=o)+(f>>>2<<2)|0,o=o+(f<<2)|0,(0|l)==(0|r))f=c;else{for(f=c,n=l;ar[t>>2]=ar[n>>2],f=t=f+4|0,(0|(n=n+4|0))!=(0|r););n=0|ar[A>>2]}ar[A>>2]=a,ar[u>>2]=c,ar[s>>2]=f,ar[i>>2]=o,n&&(Vl(n),f=0|ar[s>>2])}else f=r}while(0);ar[f>>2]=ar[e>>2],ar[s>>2]=4+(0|ar[s>>2])}(c,a),f=0|ar[s>>2];e=0|ar[u>>2],(0|f)!=(0|e);)fo(c,a=f+-4|0),f=a;return r=e,i=0|ar[A>>2],ar[A>>2]=ar[c>>2],ar[c>>2]=i,ar[u>>2]=ar[n>>2],ar[n>>2]=r,e=0|ar[s>>2],ar[s>>2]=ar[o>>2],ar[o>>2]=e,A=0|ar[l>>2],ar[l>>2]=ar[t>>2],ar[t>>2]=A,(0|e)!=(0|f)&&(ar[o>>2]=e+(~((e+-4-r|0)>>>2)<<2)),0|i&&Vl(i),ur=b}if((0|r)!=(0|e))return s=0|El(4096),ar[c>>2]=s,function(A,e){e|=0;var r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0;r=0|ar[(s=8+(A|=0)|0)>>2],u=0|ar[(i=A+12|0)>>2],t=u,a=r;do{if((0|r)==(0|u)){if(l=0|ar[(u=A+4|0)>>2],n=0|ar[A>>2],(f=n)>>>0<l>>>0){o=(n=l)+((t=(1+(n-f>>2)|0)/-2|0)<<2)|0,f=(n=(f=a-n|0)>>2)?(Gu(0|o,0|l,0|f),0|ar[u>>2]):l,l=o+(n<<2)|0,ar[s>>2]=l,ar[u>>2]=f+(t<<2),f=l;break}if(1073741823<(f=0==(0|(f=t-f>>1))?1:f)>>>0&&(Fl(s=0|C(8),37845),ar[s>>2]=16004,I(0|s,3616,283)),o=0|El(f<<2),c=t=(a=o)+(f>>>2<<2)|0,o=o+(f<<2)|0,(0|l)==(0|r))f=c;else{for(f=c,n=l;ar[t>>2]=ar[n>>2],f=t=f+4|0,(0|(n=n+4|0))!=(0|r););n=0|ar[A>>2]}ar[A>>2]=a,ar[u>>2]=c,ar[s>>2]=f,ar[i>>2]=o,n&&(Vl(n),f=0|ar[s>>2])}else f=r}while(0);ar[f>>2]=ar[e>>2],ar[s>>2]=4+(0|ar[s>>2])}(A,c),ur=b;a=0|El(4096),ar[c>>2]=a,function(A,e){e|=0;var r,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;r=0|ar[(b=4+(A|=0)|0)>>2],s=0|ar[A>>2],n=s;do{if((0|r)==(0|s)){if(f=0|ar[(s=A+8|0)>>2],l=0|ar[(u=A+12|0)>>2],f>>>0<(i=l)>>>0){t=(i=(n=f)+((o=(1+(i-n>>2)|0)/2|0)<<2)|0)+(0-(u=(n=n-r|0)>>2)<<2)|0,u&&(Gu(0|t,0|r,0|n),i=t,f=0|ar[s>>2]),ar[b>>2]=i,ar[s>>2]=f+(o<<2);break}if(1073741823<(n=0==(0|(n=i-n>>1))?1:n)>>>0&&(Fl(b=0|C(8),37845),ar[b>>2]=16004,I(0|b,3616,283)),a=0|El(n<<2),l=i=(c=a)+((n+3|0)>>>2<<2)|0,a=a+(n<<2)|0,(0|r)==(0|f))n=l,f=r;else{for(o=i,n=l,t=r;ar[o>>2]=ar[t>>2],n=o=n+4|0,(0|(t=t+4|0))!=(0|f););f=0|ar[A>>2]}ar[A>>2]=c,ar[b>>2]=l,ar[s>>2]=n,ar[u>>2]=a,f&&(Vl(f),i=0|ar[b>>2])}else i=r}while(0);ar[i+-4>>2]=ar[e>>2],ar[b>>2]=(0|ar[b>>2])-4}(A,c),a=0|ar[u>>2],c=0|ar[a>>2],a=a+4|0,ar[u>>2]=a,o=0|ar[s>>2],t=0|ar[l>>2],e=t,n=o;do{if((0|o)==(0|t)){if(r=0|ar[A>>2],(i=r)>>>0<a>>>0){f=(e=a)+((i=(1+(e-i>>2)|0)/-2|0)<<2)|0,e=(r=(e=n-e|0)>>2)?(Gu(0|f,0|a,0|e),0|ar[u>>2]):a,A=f+(r<<2)|0,ar[s>>2]=A,ar[u>>2]=e+(i<<2),e=A;break}if(1073741823<(e=0==(0|(e=e-i>>1))?1:e)>>>0&&(Fl(b=0|C(8),37845),ar[b>>2]=16004,I(0|b,3616,283)),f=0|El(e<<2),t=i=(n=f)+(e>>>2<<2)|0,f=f+(e<<2)|0,(0|a)==(0|o))e=t;else{for(e=t,r=a;ar[i>>2]=ar[r>>2],e=i=e+4|0,(0|(r=r+4|0))!=(0|o););r=0|ar[A>>2]}ar[A>>2]=n,ar[u>>2]=t,ar[s>>2]=e,ar[l>>2]=f,r&&(Vl(r),e=0|ar[s>>2])}else e=o}while(0);ar[e>>2]=c,ar[s>>2]=4+(0|ar[s>>2]),ur=b}(A+32|0),a=0|ar[o>>2],t=0|ar[e>>2],n=0|ar[c>>2]),ar[(0|ar[n+((u=t+a|0)>>>10<<2)>>2])+((1023&u)<<2)>>2]=ar[i+(l<<2)>>2],ar[e>>2]=t+1,ar[(0|ar[r>>2])+(l<<2)>>2]=ar[(0|ar[f>>2])-4>>2],ar[f>>2]=(0|ar[f>>2])-4}function fo(A,e){e|=0;var r,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;r=0|ar[(b=(A|=0)+4|0)>>2],n=s=0|ar[A>>2];do{if((0|r)==(0|s)){if((f=0|ar[(s=A+8|0)>>2])>>>0<(i=l=0|ar[(u=A+12|0)>>2])>>>0){t=(i=(n=f)+((o=(1+(i-n>>2)|0)/2|0)<<2)|0)+(0-(u=(n=n-r|0)>>2)<<2)|0,u&&(Gu(0|t,0|r,0|n),i=t,f=0|ar[s>>2]),ar[b>>2]=i,ar[s>>2]=f+(o<<2);break}if(1073741823<(n=0==(0|(n=i-n>>1))?1:n)>>>0&&(Fl(b=0|C(8),37845),ar[b>>2]=16004,I(0|b,3616,283)),l=i=(c=a=0|El(n<<2))+((n+3|0)>>>2<<2)|0,a=a+(n<<2)|0,(0|r)==(0|f))n=l,f=r;else{for(o=i,n=l,t=r;ar[o>>2]=ar[t>>2],n=o=n+4|0,(0|(t=t+4|0))!=(0|f););f=0|ar[A>>2]}ar[A>>2]=c,ar[b>>2]=l,ar[s>>2]=n,ar[u>>2]=a,f&&(Vl(f),i=0|ar[b>>2])}else i=r}while(0);ar[i+-4>>2]=ar[e>>2],ar[b>>2]=(0|ar[b>>2])-4}function no(A){var e,r=0;if(r=(A|=0)+24|0,(0|ar[(e=A+20|0)>>2])==(0|ar[r>>2]))return(r=0)|r;for(;io(A),(0|ar[e>>2])!=(0|ar[r>>2]););return 0|(A=1)}function to(A,e,r,i,f,n,t){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0;var o,a,c,l,u,s=0,b=0,d=0,k=0,h=0,w=0,v=0;ur=(u=ur)+16|0,a=u,l=(A|=0)+8|0,b=0|ar[(c=A+12|0)>>2],o=k=0|ar[l>>2],s=b;A:do{if((0|b)==(0|k))d=-1,k=b;else{for(w=b-k>>2,d=0;h=0|ar[o+(d<<2)>>2],0!=(0|tr[h+100>>0])||0!=(0|ar[h+96>>2]);)if(w>>>0<=(d=d+1|0)>>>0){d=-1;break A}lo(h),s=0|ar[c>>2],k=0|ar[l>>2],b=s}}while(0);return(0|d)==((w=b-k>>2)+-1|0)||w>>>0<=(0|ar[A+4>>2])>>>0||(v=0|ar[s+-4>>2],0!=(0|tr[v+100>>0]))||0!=(0|ar[v+96>>2])?s=b:((b=0|ar[s+-4>>2])&&(uo(b),Vl(b),s=0|ar[c>>2]),s=s+-4|0,ar[c>>2]=s),-1==(0|d)&&(d=s-(0|ar[l>>2])>>2,ao(s=0|El(10624)),ar[a>>2]=s,(b=0|ar[c>>2])>>>0<(0|ar[A+16>>2])>>>0?(ar[b>>2]=s,ar[c>>2]=4+(0|ar[c>>2])):function(A,e){e|=0;var r,i,f,n,t,o=0,a=0,c=0,l=0;f=4+(A|=0)|0,n=0|ar[A>>2],t=(0|ar[f>>2])-n|0,1073741823<(o=1+(i=t>>2)|0)>>>0&&il();c=(0|ar[(l=A+8|0)>>2])-n|0,a=c>>1,a=c>>2>>>0<536870911?a>>>0<o>>>0?o:a:1073741823;do{if(a){if(!(1073741823<a>>>0)){c=0|El(a<<2);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else c=0}while(0);ar[(r=c+(i<<2)|0)>>2]=ar[e>>2],o=r+(0-i<<2)|0,0<(0|t)&&Eu(0|o,0|n,0|t);if(ar[A>>2]=o,ar[f>>2]=4+r,ar[l>>2]=c+(a<<2),!n)return;Vl(n)}(l,a)),s=0|ar[(0|ar[l>>2])+(d<<2)>>2],(b=0|ar[e+476>>2])>>>0<4?(co(s,0|ar[e+484>>2],0|ar[e+488>>2],b,e,1,r,0,i,f,n,t),tr[s+10516>>0]=0,ur=u,0|d):(br(37782,29880,259,29925),0)}function oo(A){var e,r;e=(A|=0)+36|0,r=A+48|0,ar[(A=A+52|0)>>2]=(0|ar[A>>2])-1,A=1+(0|ar[r>>2])|0,(ar[r>>2]=A)>>>0<=2047||(Vl(0|ar[ar[e>>2]>>2]),ar[e>>2]=4+(0|ar[e>>2]),ar[r>>2]=(0|ar[r>>2])-1024)}function ao(A){var e,r,i=0;ar[(A|=0)+48>>2]=0,ar[A+52>>2]=0,ar[A+56>>2]=0,ar[A+700>>2]=0,ar[A+704>>2]=0,ar[A+708>>2]=0,ar[(i=A+736|0)>>2]=0,ar[i+4>>2]=0,ar[i+8>>2]=0,ar[i+12>>2]=0,ar[i+16>>2]=0,Qn(A+764|(ar[i+20>>2]=0)),_o(A+5932|0),tr[A+10518>>0]=0,tr[A+10519>>0]=0,Vu(A+10340|(tr[A+10520>>0]=0),0,140),ar[A>>2]=-1,ar[A+104>>2]=0,ar[A+10332>>2]=0,ar[A+10336>>2]=0,ar[A+10512>>2]=0,ar[A+4>>2]=0,ar[A+60>>2]=0,ar[A+8>>2]=0,ar[A+64>>2]=0,ar[A+12>>2]=0,ar[A+68>>2]=0,ar[A+28>>2]=0,i=A+10480|(ar[A+24>>2]=0),ar[A+10524>>2]=0,ar[i>>2]=0,ar[i+4>>2]=0,ar[i+8>>2]=0,ar[i+12>>2]=0,ar[i+16>>2]=0,ar[i+20>>2]=0,tr[A+10516>>0]=2,ar[A+88>>2]=-1,ar[A+92>>2]=-1,ar[A+96>>2]=0,tr[A+100>>0]=0,ar[(i=A+10528|0)>>2]=0,ar[i+4>>2]=0,ar[i+8>>2]=0,ar[i+12>>2]=0,ar[i+16>>2]=0,e=A+10548|0,IA(0|(e|=0),0),r=A+10576|0,gA(0|(r|=0),0)}function co(A,e,r,i,f,n,t,o,a,c,l,u){A|=0,e|=0,r|=0,i|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0,u|=0;var s,b,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0;switch(ur=(b=ur)+48|0,s=b,(f|=0)||br(30075,29989,240,30079),Eu(0|(h=A+764|0),0|f,4717),(0|h)!=(0|f)&&Wr(A+5484|0,0|ar[f+4720>>2],0|ar[f+4724>>2]),Eu(A+5496|0,f+4732|0,436),lo(A),k=0|ar[12652],ar[12652]=k+1,ar[A>>2]=k,ar[A+104>>2]=2147483647,ar[A+10332>>2]=t,ar[A+10336>>2]=o,ar[A+20>>2]=i,ar[A+24>>2]=e,ar[A+28>>2]=r,ar[(k=A+32|0)>>2]=e,ar[(h=A+36|0)>>2]=r,ar[A+10488>>2]=l,ar[(l=A+10480|0)>>2]=a,ar[l+4>>2]=c,0|i){case 3:case 0:d=g=1;break;case 1:d=2,y=8;break;case 2:d=1,y=8;break;default:br(37782,29989,276,30079)}switch(8==(0|y)&&(g=2),0|i){case 1:w=(e+1|0)/(ar[s>>2]=2)|0,ar[k>>2]=w,v=(r+1|0)/2|0,ar[h>>2]=v;break;case 2:ar[s>>2]=3,w=(e+1|0)/2|0,ar[k>>2]=w,v=r;break;case 3:ar[s>>2]=4,w=e,v=r;break;case 0:ar[s>>2]=1,ar[k>>2]=0,v=w=ar[h>>2]=0;break;default:br(49065,29989,302,30079)}ar[s+4>>2]=e,ar[s+8>>2]=r,ar[s+12>>2]=16,i=0|ar[f+496>>2],a=0|ar[f+500>>2],k=0|ar[f+504>>2],h=0|ar[f+508>>2],e=e-(0|sr(Z=a+i|0,g))|0,ar[A+72>>2]=e,l=r-(0|sr(c=h+k|0,d))|0,ar[A+76>>2]=l,ar[A+80>>2]=w-Z,ar[A+84>>2]=v-c,c=0|sr(i,g),ar[s+16>>2]=c,a=0|sr(a,g),ar[s+20>>2]=a,a=0|sr(k,d),ar[s+24>>2]=a,g=0|sr(h,d),ar[s+28>>2]=g,ar[s+32>>2]=e,ar[s+36>>2]=l,tr[A+16>>0]=8<(0|ar[f+4996>>2])&1,l=8<(0|ar[f+5004>>2])&1,tr[A+17>>0]=l,tr[A+18>>0]=l,d=(l=0==(0|t))?0:0|ar[t+544>>2];do{if(o){if(d=0|ar[o+3060>>2],u){if(Z=0|ar[o+3064>>2],l=A+10504|0,ar[A+10512>>2]=Z){ar[l>>2]=0,ar[A+10508>>2]=0;break}p=0|ar[(y=6080)>>2],y=0|ar[y+4>>2],ar[(m=l)>>2]=p,ar[m+4>>2]=y,m=d,y=25;break}y=24}else y=l|1^u?24:(p=0|ar[(y=t+536|0)>>2],y=0|ar[y+4>>2],ar[(m=A+10504|0)>>2]=p,ar[m+4>>2]=y,m=d,25)}while(0);if(24==(0|y)&&(p=0|ar[(Z=6080)>>2],Z=0|ar[Z+4>>2],ar[(m=A+10504|0)>>2]=p,ar[m+4>>2]=Z,m=d,y=25),25==(0|y)&&0|p&&(Z=0==(0|ts[15&p](t,s,A,m)),t=(0|ar[A+4>>2])+c+(0|sr(0|ar[A+40>>2],a))|0,ar[A+60>>2]=t,t=0|sr(0|ar[A+44>>2],k),ar[A+64>>2]=(0|ar[A+8>>2])+i+t,ar[A+68>>2]=(0|ar[A+12>>2])+i+t,Z))return ur=b,0|(Z=7);do{if(n){i=0|ar[(e=f+5112|0)>>2],k=0|ar[(w=f+5116|0)>>2],h=0|ar[(v=f+5108|0)>>2],a=0|sr(k,i),c=A+10404|0,d=0|ar[(l=A+10400|0)>>2];do{if((0|a)!=(0|ar[c>>2])){if($o(d),d=0|qo(a),ar[l>>2]=d){ar[c>>2]=a,y=32;break}r=ar[c>>2]=0;break}y=32}while(0);32==(0|y)&&(ar[A+10412>>2]=i,ar[A+10416>>2]=k,ar[A+10408>>2]=h,r=0!=(0|d)),h=0|ar[e>>2],k=0|ar[w>>2],i=0|ar[v>>2],a=0|sr(k,h),c=A+10424|0,d=0|ar[(l=A+10420|0)>>2];do{if((0|a)!=(0|ar[c>>2])){if($o(d),d=0|qo(a),ar[l>>2]=d){ar[c>>2]=a,y=37;break}d=ar[c>>2]=0;break}y=37}while(0);37==(0|y)&&(ar[A+10432>>2]=h,ar[A+10436>>2]=k,ar[A+10428>>2]=i,d=0!=(0|d)),e=r&d,l=A+10360|0,i=0|ar[(r=f+5052|0)>>2],k=0|ar[(v=f+5060|0)>>2],h=0|ar[(w=f+5036|0)>>2],a=0|sr(k,i),c=A+10364|0;do{if((0|a)!=(0|ar[c>>2])){if($o(0|ar[l>>2]),d=0|qo(3*a|0),ar[l>>2]=d){ar[c>>2]=a,y=43;break}d=ar[c>>2]=0;break}d=0|ar[l>>2],y=43}while(0);43==(0|y)&&(ar[A+10372>>2]=i,ar[A+10376>>2]=k,ar[A+10368>>2]=h,d=0!=(0|d)),h=e&d,i=(0|ar[w>>2])-2|0,k=ar[r>>2]<<i,i=ar[v>>2]<<i,l=A+10380|0,a=0|sr(i,k),c=A+10384|0;do{if((0|a)!=(0|ar[c>>2])){if($o(0|ar[l>>2]),d=0|qo(12*a|0),ar[l>>2]=d){ar[c>>2]=a,y=49;break}d=ar[c>>2]=0;break}d=0|ar[l>>2],y=49}while(0);49==(0|y)&&(ar[A+10392>>2]=k,ar[A+10396>>2]=i,ar[A+10388>>2]=2,d=0!=(0|d)),e=h&d,i=0|ar[f+5088>>2],k=0|ar[f+5092>>2],h=0|ar[f+5100>>2],a=0|sr(k,i),c=A+10444|0,d=0|ar[(l=A+10440|0)>>2];do{if((0|a)!=(0|ar[c>>2])){if($o(d),d=0|qo(a),ar[l>>2]=d){ar[c>>2]=a,y=54;break}d=ar[c>>2]=0;break}y=54}while(0);54==(0|y)&&(ar[A+10452>>2]=i,ar[A+10456>>2]=k,ar[A+10448>>2]=h,d=0!=(0|d)),h=e&d,i=(3+(0|ar[f+484>>2])|0)/4|0,k=(3+(0|ar[f+488>>2])|0)/4|0,a=0|sr(k,i),c=A+10464|0,d=0|ar[(l=A+10460|0)>>2];do{if((0|a)!=(0|ar[c>>2])){if($o(d),d=0|qo(a),ar[l>>2]=d){ar[c>>2]=a,y=59;break}d=ar[c>>2]=0;break}y=59}while(0);if(59==(0|y)&&(ar[A+10472>>2]=i,ar[A+10476>>2]=k,ar[A+10468>>2]=2,d=0!=(0|d)),r=h&d,h=A+10340|0,(0|(d=0|ar[(e=A+10344|0)>>2]))==(0|ar[f+5072>>2])){if(r)break;return ur=b,0|(d=7)}if(a=0|ar[(w=A+10524|0)>>2]){if(0|(d=0|ar[(l=a+-4|0)>>2]))for(d=a+(80*d|0)|0;zn(d=d+-80|0),(0|d)!=(0|a););Xl(l),d=0|ar[e>>2]}i=0|ar[f+5056>>2],k=0|ar[f+5064>>2],c=0|ar[f+5040>>2],l=0|sr(k,i);do{if((0|l)!=(0|d)){if($o(0|ar[h>>2]),d=0|qo(24*l|0),ar[h>>2]=d){ar[e>>2]=l,a=d,y=71;break}l=d=ar[e>>2]=0;break}a=0|ar[h>>2],l=d,y=71}while(0);if(71==(0|y)&&(ar[A+10352>>2]=i,ar[A+10356>>2]=k,ar[A+10348>>2]=c,d=0!=(0|a)),a=r&d,c=0|Gl(53687091<l>>>0|4294967291<(c=80*l|0)>>>0?-1:c+4|0),ar[c>>2]=l,c=c+4|0,0|l)for(d=c+(80*l|0)|0,l=c;jn(l),(0|(l=l+80|0))!=(0|d););if(ar[w>>2]=c,!a)return ur=b,0|(Z=7)}}while(0);return ur=b,(Z=0)|Z}function lo(A){var e,r=0,i=0,f=0,n=0,t=0,o=0;if(0|ar[(f=(A|=0)+4|0)>>2]&&((r=0|ar[A+10512>>2])?(o=0|ar[A+10336>>2],hs[127&r](o,A,0|ar[o+3060>>2])):(i=(r=0|ar[A+10332>>2])?0|ar[r+544>>2]:0,hs[127&ar[A+10508>>2]](r,A,i)),ar[f>>2]=0,ar[A+60>>2]=0,ar[A+8>>2]=0,ar[A+64>>2]=0,ar[A+12>>2]=0,ar[A+68>>2]=0),e=A+48|0,(0|(r=i=0|ar[(o=A+52|0)>>2]))!=(0|(f=A=0|ar[e>>2]))){for(t=0;(n=0|ar[f+(t<<2)>>2])&&(0|(r=0|ar[n+1344>>2])&&((0|(f=0|ar[(i=n+1348|0)>>2]))!=(0|r)&&(ar[i>>2]=f+(~((f+-4-r|0)>>>2)<<2)),Vl(r)),Zt(n+1332|0),0|(r=0|ar[n+776>>2])&&((0|(f=0|ar[(i=n+780|0)>>2]))!=(0|r)&&(ar[i>>2]=f+(~((f+-4-r|0)>>>2)<<2)),Vl(r)),Vl(n),r=0|ar[o>>2],A=0|ar[e>>2],i=r),(t=t+1|0)>>>0<i-(f=A)>>2>>>0;);i=A}(0|r)!=(0|f)&&(ar[o>>2]=r+(~((r+-4-i|0)>>>2)<<2))}function uo(A){var e,r,i,f=0,n=0,t=0,o=0;if(lo(A|=0),0|(n=0|ar[A+10524>>2])){if(0|(f=0|ar[(t=n+-4|0)>>2]))for(f=n+(80*f|0)|0;zn(f=f+-80|0),(0|f)!=(0|n););Xl(t)}if(r=A+10576|0,vA(0|(r|=0)),i=A+10548|0,WA(0|(i|=0)),$o(0|ar[A+10460>>2]),$o(0|ar[A+10440>>2]),$o(0|ar[A+10420>>2]),$o(0|ar[A+10400>>2]),$o(0|ar[A+10380>>2]),$o(0|ar[A+10360>>2]),$o(0|ar[A+10340>>2]),No(A+5932|0),Tn(A+764|0),0|(f=0|ar[A+748>>2])&&((0|ar[(n=A+752|0)>>2])!=(0|f)&&(ar[n>>2]=f),Vl(f)),0|(f=0|ar[A+736>>2])&&((0|(t=0|ar[(n=A+740|0)>>2]))!=(0|f)&&(ar[n>>2]=t+(~((t+-2-f|0)>>>1)<<1)),Vl(f)),0|(f=0|ar[(e=A+700|0)>>2])){if((0|(n=0|ar[(o=A+704|0)>>2]))!=(0|f)){for(;n=n+-12|0,ar[o>>2]=n,(t=0|ar[n>>2])&&(Vl(t),n=0|ar[o>>2]),(0|n)!=(0|f););f=0|ar[e>>2]}Vl(f)}(t=0|ar[A+48>>2])&&((0|(n=0|ar[(f=A+52|0)>>2]))!=(0|t)&&(ar[f>>2]=n+(~((n+-4-t|0)>>>2)<<2)),Vl(t))}function so(A,e){e|=0;var r,i;Hn(r=(A|=0)+10548|0),ar[(i=A+10528|0)>>2]=(0|ar[i>>2])+e,ar[(A=A+10544|0)>>2]=(0|ar[A>>2])+e,xn(r)}function bo(A,e){e|=0;var r;Hn(e=(A|=0)+10548|0),ar[(r=A+10528|0)>>2]=(0|ar[r>>2])-1,ar[(A=A+10532|0)>>2]=1+(0|ar[A>>2]),xn(e)}function ko(A,e){e|=0;var r,i,f,n=0;(Hn(e=(A|=0)+10548|0),i=0|ar[(n=A+10532|0)>>2],ar[n>>2]=i-1,r=1+(0|ar[(n=A+10540|0)>>2])|0,ar[n>>2]=r,(0|i)<=0&&br(30135,29989,642,30156),(0|r)==(0|ar[A+10544>>2]))?(f=A+10576|0,Xu(f|=0),xn(e)):xn(e)}function ho(A,e,r,i,f){r|=0,i|=0,f|=0,function(A,e,r,i){A|=0,r|=0,i|=0;var f,n;if(!(e|=0))return;if((0|function(A){return 0|ar[(A|=0)>>2]}(r=(0|ar[A+10524>>2])+(80*r|0)|0))>=(0|i))return;Hn(f=A+10548|0),ar[(n=A+10532|0)>>2]=(0|ar[n>>2])-1,ar[(A=A+10536|0)>>2]=1+(0|ar[A>>2]),xn(f),ar[(e=e+4|0)>>2]=2,Pn(r,i),ar[e>>2]=1,Hn(f),ar[A>>2]=(0|ar[A>>2])-1,ar[n>>2]=1+(0|ar[n>>2]),xn(f)}(A|=0,e|=0,(0|sr(0|ar[A+5820>>2],i))+r|0,f)}function wo(A){var e,r,i;if(Hn(e=(A|=0)+10548|0),i=A+10544|0,(0|ar[(r=A+10540|0)>>2])!=(0|ar[i>>2])){for(A=A+10576|0;f=A,n=e,pA(0|(f|=0),0|(n|=0)),(0|ar[r>>2])!=(0|ar[i>>2]););var f,n;xn(e)}else xn(e)}function vo(A,e,r,i,f){A|=0,e|=0,r|=0;var n=0,t=0,o=0,a=0;return((f|=0)|(i|=0)|0)<0||(0|ar[A+1248>>2])<=(0|i)||(0|ar[A+1252>>2])<=(0|f)?(A=0)|A:(t=0|ar[A+5864>>2],a=0|ar[A+5852>>2],n=(0|sr(f>>t,a))+(i>>t)|0,t=(o=0|ar[A+10320>>2])+((0|sr(r>>t,a))+(e>>t)<<2)|0,(0|ar[o+(n<<2)>>2])>(0|ar[t>>2])?(a=0)|a:(t=e>>(a=0|ar[A+5804>>2]),n=r>>a,r=i>>a,e=f>>a,a=0|ar[A+10352>>2],o=(0|sr(a,n))+t|0,a=(f=0|ar[A+10340>>2])+(24*((0|sr(a,e))+r|0)|0)|0,(0|or[f+(24*o|0)>>1])!=(0|or[a>>1])?(a=0)|a:(a=0|ar[A+5820>>2],o=(0|sr(a,n))+t|0,a=(A=0|ar[A+10308>>2])+((0|sr(a,e))+r<<2)|0,0|(a=(0|ar[A+(o<<2)>>2])==(0|ar[a>>2])))))}function go(A,e,r,i,f,n,t,o,a,c,l){if(A|=0,f|=0,n|=0,t|=0,o|=0,a|=0,(0|(l|=0))<((i|=0)+(r|=0)|0)&(1^((i+(e|=0)|0)<=(0|(c|=0))|(0|c)<(0|e)|(0|l)<(0|r)))){if((t<<1|0)==(0|i)&&!((t+e|0)<=(0|c)|1!=(0|a)|(o<<1|0)!=(0|i)|(0|l)<(o+r|0)))return 0}else{if((l|c|0)<0)return 0;if((0|ar[A+1248>>2])<=(0|c))return 0;if((0|ar[A+1252>>2])<=(0|l))return 0;if(a=0|ar[A+5864>>2],i=0|ar[A+5852>>2],o=(0|sr(l>>a,i))+(c>>a)|0,a=(t=0|ar[A+10320>>2])+((0|sr(n>>a,i))+(f>>a)<<2)|0,(0|ar[t+(o<<2)>>2])>(0|ar[a>>2]))return 0;if(f>>=i=0|ar[A+5804>>2],e=n>>i,r=c>>i,i=l>>i,n=0|ar[A+10352>>2],a=(0|sr(n,e))+f|0,n=(o=0|ar[A+10340>>2])+(24*((0|sr(n,i))+r|0)|0)|0,(0|or[o+(24*a|0)>>1])!=(0|or[n>>1]))return 0;if(n=0|ar[A+5820>>2],a=(0|sr(n,e))+f|0,n=(o=0|ar[A+10308>>2])+((0|sr(n,i))+r<<2)|0,(0|ar[o+(a<<2)>>2])!=(0|ar[n>>2]))return 0}return i=c>>(e=0|ar[A+10368>>2]),e=l>>e,(0|i)<=-1&&br(41808,30172,118,41865),(0|(r=0|ar[A+10372>>2]))<=(0|i)&&br(41808,30172,118,41865),(0|e)<=-1&&br(41869,30172,119,41865),(0|e)<(0|ar[A+10376>>2])?(A=(0|ar[A+10360>>2])+(3*((0|sr(r,e))+i|0)|0)|0,0!=(768&(cr[A>>0]|cr[A+1>>0]<<8))|0):(br(41869,30172,119,41865),0)}function mo(A){return((A|=0)+-19&255)<2|0}function po(A){return((A|=0)+-16&255)<3|0}function yo(A){return(1|(A|=0))<<24>>24==9|0}function Zo(A){return(-8&(A|=0))<<24>>24==16|0}function Co(A,e){e|=0;var r,i,f,n,t,o=0,a=0,c=0,l=0;f=(A|=0)+4|0,n=0|ar[A>>2],1073741823<(o=1+(i=(t=(0|ar[f>>2])-n|0)>>2)|0)>>>0&&il(),a=(c=(0|ar[(l=A+8|0)>>2])-n|0)>>1,a=c>>2>>>0<536870911?a>>>0<o>>>0?o:a:1073741823;do{if(a){if(!(1073741823<a>>>0)){c=0|El(a<<2);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else c=0}while(0);ar[(r=c+(i<<2)|0)>>2]=ar[e>>2],o=r+(0-i<<2)|0,0<(0|t)&&Eu(0|o,0|n,0|t),ar[A>>2]=o,ar[f>>2]=4+r,ar[l>>2]=c+(a<<2),n&&Vl(n)}function Wo(A,e,r){e|=0,r|=0;var i,f=0;for(i=f=0|ar[(A|=0)+32>>2],A=(0|ar[A+36>>2])-f>>2;;){if(f=A+-1|0,(0|A)<=0){A=0,f=4;break}if(!(((0|ar[i+(f<<2)>>2])-r|0)>(0|e))){f=4;break}A=f}return 4==(0|f)?0|A:0}function Io(A,e){e|=0;var r,i,f,n,t,o=0,a=0,c=0,l=0;f=(A|=0)+4|0,n=0|ar[A>>2],1073741823<(o=1+(i=(t=(0|ar[f>>2])-n|0)>>2)|0)>>>0&&il(),a=(c=(0|ar[(l=A+8|0)>>2])-n|0)>>1,a=c>>2>>>0<536870911?a>>>0<o>>>0?o:a:1073741823;do{if(a){if(!(1073741823<a>>>0)){c=0|El(a<<2);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else c=0}while(0);ar[(r=c+(i<<2)|0)>>2]=ar[e>>2],o=r+(0-i<<2)|0,0<(0|t)&&Eu(0|o,0|n,0|t),ar[A>>2]=o,ar[f>>2]=4+r,ar[l>>2]=c+(a<<2),n&&Vl(n)}function Bo(A){var e,r,i,f,n=0,t=0,o=0;return(n=0|ar[(e=(A|=0)+32|0)>>2])?(f=0|ar[(i=A+16|0)>>2],o=0|ar[(t=A+28|0)>>2],r=0|ar[(0|ar[f+(o>>>10<<2)>>2])+((1023&o)<<2)>>2],ar[e>>2]=n+-1,n=o+1|0,2047<(ar[t>>2]=n)>>>0&&(Vl(0|ar[f>>2]),ar[i>>2]=4+(0|ar[i>>2]),ar[t>>2]=(0|ar[t>>2])-1024),ar[(o=A+36|0)>>2]=(0|ar[o>>2])-(0|ar[24+r>>2]),0|(o=r)):(t=0)|t}function Eo(A,e){A|=0,e|=0;var r,i,f,n,t=0,o=0;if(ur=(n=ur)+16|0,o=ar[(t=n)>>2]=e){if(r=A+40|0,(f=0|ar[(i=A+44|0)>>2])-(0|ar[r>>2])>>2>>>0<16)return(0|f)==(0|ar[A+48>>2])?Io(r,t):(ar[f>>2]=o,ar[i>>2]=4+(0|ar[i>>2])),void(ur=n);$o(0|ar[e+20>>2]),0|(A=0|ar[e+32>>2])&&((0|(o=0|ar[(t=e+36|0)>>2]))!=(0|A)&&(ar[t>>2]=o+(~((o+-4-A|0)>>>2)<<2)),Vl(A)),Vl(e),ur=n}else ur=n}function Go(A){var e=0,r=0,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;if(ur=(b=ur)+32|0,c=b+4|0,a=b,1023<(r=0|ar[(e=(A|=0)+16|0)>>2])>>>0){ar[e>>2]=r+-1024,c=0|ar[(l=A+4|0)>>2],s=0|ar[c>>2],c=c+4|0,ar[l>>2]=c,o=0|ar[(u=A+8|0)>>2],e=t=0|ar[(a=A+12|0)>>2],n=o;do{if((0|o)==(0|t)){if((i=r=0|ar[A>>2])>>>0<c>>>0){f=(e=c)+((i=(1+(e-i>>2)|0)/-2|0)<<2)|0,e=(r=(e=n-e|0)>>2)?(Gu(0|f,0|c,0|e),0|ar[l>>2]):c,A=f+(r<<2)|0,ar[u>>2]=A,ar[l>>2]=e+(i<<2),e=A;break}if(1073741823<(e=0==(0|(e=e-i>>1))?1:e)>>>0&&(Fl(b=0|C(8),37845),ar[b>>2]=16004,I(0|b,3616,283)),t=i=(n=f=0|El(e<<2))+(e>>>2<<2)|0,f=f+(e<<2)|0,(0|c)==(0|o))e=t;else{for(e=t,r=c;ar[i>>2]=ar[r>>2],e=i=e+4|0,(0|(r=r+4|0))!=(0|o););r=0|ar[A>>2]}ar[A>>2]=n,ar[l>>2]=t,ar[u>>2]=e,ar[a>>2]=f,r&&(Vl(r),e=0|ar[u>>2])}else e=o}while(0);return ar[e>>2]=s,ar[u>>2]=4+(0|ar[u>>2]),void(ur=b)}if(f=(e=0|ar[(s=A+8|0)>>2])-(0|ar[(u=A+4|0)>>2])|0,(i=(r=0|ar[(l=A+12|0)>>2])-(0|ar[A>>2])|0)>>>0<=f>>>0){for(e=0==(0|(e=i>>1))?1:e,ar[c+12>>2]=0,ar[c+16>>2]=A+12,1073741823<e>>>0&&(Fl(b=0|C(8),37845),ar[b>>2]=16004,I(0|b,3616,283)),i=0|El(e<<2),t=(ar[c>>2]=i)+(f>>2<<2)|0,ar[(o=c+8|0)>>2]=t,ar[(n=c+4|0)>>2]=t,ar[(t=c+12|0)>>2]=i+(e<<2),f=0|El(4096),ar[a>>2]=f,function(A,e){e|=0;var r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0;r=0|ar[(s=8+(A|=0)|0)>>2],u=0|ar[(i=A+12|0)>>2],t=u,a=r;do{if((0|r)==(0|u)){if(l=0|ar[(u=A+4|0)>>2],n=0|ar[A>>2],(f=n)>>>0<l>>>0){o=(n=l)+((t=(1+(n-f>>2)|0)/-2|0)<<2)|0,f=(n=(f=a-n|0)>>2)?(Gu(0|o,0|l,0|f),0|ar[u>>2]):l,l=o+(n<<2)|0,ar[s>>2]=l,ar[u>>2]=f+(t<<2),f=l;break}if(1073741823<(f=0==(0|(f=t-f>>1))?1:f)>>>0&&(Fl(s=0|C(8),37845),ar[s>>2]=16004,I(0|s,3616,283)),o=0|El(f<<2),c=t=(a=o)+(f>>>2<<2)|0,o=o+(f<<2)|0,(0|l)==(0|r))f=c;else{for(f=c,n=l;ar[t>>2]=ar[n>>2],f=t=f+4|0,(0|(n=n+4|0))!=(0|r););n=0|ar[A>>2]}ar[A>>2]=a,ar[u>>2]=c,ar[s>>2]=f,ar[i>>2]=o,n&&(Vl(n),f=0|ar[s>>2])}else f=r}while(0);ar[f>>2]=ar[e>>2],ar[s>>2]=4+(0|ar[s>>2])}(c,a),f=0|ar[s>>2];(0|f)!=(0|(e=0|ar[u>>2]));)Vo(c,a=f+-4|0),f=a;return r=e,i=0|ar[A>>2],ar[A>>2]=ar[c>>2],ar[c>>2]=i,ar[u>>2]=ar[n>>2],ar[n>>2]=r,e=0|ar[s>>2],ar[s>>2]=ar[o>>2],ar[o>>2]=e,A=0|ar[l>>2],ar[l>>2]=ar[t>>2],ar[t>>2]=A,(0|e)!=(0|f)&&(ar[o>>2]=e+(~((e+-4-r|0)>>>2)<<2)),0|i&&Vl(i),void(ur=b)}if((0|r)!=(0|e))return s=0|El(4096),ar[c>>2]=s,function(A,e){e|=0;var r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0;r=0|ar[(s=8+(A|=0)|0)>>2],u=0|ar[(i=A+12|0)>>2],t=u,a=r;do{if((0|r)==(0|u)){if(l=0|ar[(u=A+4|0)>>2],n=0|ar[A>>2],(f=n)>>>0<l>>>0){o=(n=l)+((t=(1+(n-f>>2)|0)/-2|0)<<2)|0,f=(n=(f=a-n|0)>>2)?(Gu(0|o,0|l,0|f),0|ar[u>>2]):l,l=o+(n<<2)|0,ar[s>>2]=l,ar[u>>2]=f+(t<<2),f=l;break}if(1073741823<(f=0==(0|(f=t-f>>1))?1:f)>>>0&&(Fl(s=0|C(8),37845),ar[s>>2]=16004,I(0|s,3616,283)),o=0|El(f<<2),c=t=(a=o)+(f>>>2<<2)|0,o=o+(f<<2)|0,(0|l)==(0|r))f=c;else{for(f=c,n=l;ar[t>>2]=ar[n>>2],f=t=f+4|0,(0|(n=n+4|0))!=(0|r););n=0|ar[A>>2]}ar[A>>2]=a,ar[u>>2]=c,ar[s>>2]=f,ar[i>>2]=o,n&&(Vl(n),f=0|ar[s>>2])}else f=r}while(0);ar[f>>2]=ar[e>>2],ar[s>>2]=4+(0|ar[s>>2])}(A,c),void(ur=b);a=0|El(4096),ar[c>>2]=a,function(A,e){e|=0;var r,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;r=0|ar[(b=4+(A|=0)|0)>>2],s=0|ar[A>>2],n=s;do{if((0|r)==(0|s)){if(f=0|ar[(s=A+8|0)>>2],l=0|ar[(u=A+12|0)>>2],f>>>0<(i=l)>>>0){t=(i=(n=f)+((o=(1+(i-n>>2)|0)/2|0)<<2)|0)+(0-(u=(n=n-r|0)>>2)<<2)|0,u&&(Gu(0|t,0|r,0|n),i=t,f=0|ar[s>>2]),ar[b>>2]=i,ar[s>>2]=f+(o<<2);break}if(1073741823<(n=0==(0|(n=i-n>>1))?1:n)>>>0&&(Fl(b=0|C(8),37845),ar[b>>2]=16004,I(0|b,3616,283)),a=0|El(n<<2),l=i=(c=a)+((n+3|0)>>>2<<2)|0,a=a+(n<<2)|0,(0|r)==(0|f))n=l,f=r;else{for(o=i,n=l,t=r;ar[o>>2]=ar[t>>2],n=o=n+4|0,(0|(t=t+4|0))!=(0|f););f=0|ar[A>>2]}ar[A>>2]=c,ar[b>>2]=l,ar[s>>2]=n,ar[u>>2]=a,f&&(Vl(f),i=0|ar[b>>2])}else i=r}while(0);ar[i+-4>>2]=ar[e>>2],ar[b>>2]=(0|ar[b>>2])-4}(A,c),a=0|ar[u>>2],c=0|ar[a>>2],a=a+4|0,ar[u>>2]=a,o=0|ar[s>>2],e=t=0|ar[l>>2],n=o;do{if((0|o)==(0|t)){if((i=r=0|ar[A>>2])>>>0<a>>>0){f=(e=a)+((i=(1+(e-i>>2)|0)/-2|0)<<2)|0,e=(r=(e=n-e|0)>>2)?(Gu(0|f,0|a,0|e),0|ar[u>>2]):a,A=f+(r<<2)|0,ar[s>>2]=A,ar[u>>2]=e+(i<<2),e=A;break}if(1073741823<(e=0==(0|(e=e-i>>1))?1:e)>>>0&&(Fl(b=0|C(8),37845),ar[b>>2]=16004,I(0|b,3616,283)),t=i=(n=f=0|El(e<<2))+(e>>>2<<2)|0,f=f+(e<<2)|0,(0|a)==(0|o))e=t;else{for(e=t,r=a;ar[i>>2]=ar[r>>2],e=i=e+4|0,(0|(r=r+4|0))!=(0|o););r=0|ar[A>>2]}ar[A>>2]=n,ar[u>>2]=t,ar[s>>2]=e,ar[l>>2]=f,r&&(Vl(r),e=0|ar[s>>2])}else e=o}while(0);ar[e>>2]=c,ar[s>>2]=4+(0|ar[s>>2]),ur=b}function Vo(A,e){e|=0;var r,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;r=0|ar[(b=(A|=0)+4|0)>>2],n=s=0|ar[A>>2];do{if((0|r)==(0|s)){if((f=0|ar[(s=A+8|0)>>2])>>>0<(i=l=0|ar[(u=A+12|0)>>2])>>>0){t=(i=(n=f)+((o=(1+(i-n>>2)|0)/2|0)<<2)|0)+(0-(u=(n=n-r|0)>>2)<<2)|0,u&&(Gu(0|t,0|r,0|n),i=t,f=0|ar[s>>2]),ar[b>>2]=i,ar[s>>2]=f+(o<<2);break}if(1073741823<(n=0==(0|(n=i-n>>1))?1:n)>>>0&&(Fl(b=0|C(8),37845),ar[b>>2]=16004,I(0|b,3616,283)),l=i=(c=a=0|El(n<<2))+((n+3|0)>>>2<<2)|0,a=a+(n<<2)|0,(0|r)==(0|f))n=l,f=r;else{for(o=i,n=l,t=r;ar[o>>2]=ar[t>>2],n=o=n+4|0,(0|(t=t+4|0))!=(0|f););f=0|ar[A>>2]}ar[A>>2]=c,ar[b>>2]=l,ar[s>>2]=n,ar[u>>2]=a,f&&(Vl(f),i=0|ar[b>>2])}else i=r}while(0);ar[i+-4>>2]=ar[e>>2],ar[b>>2]=(0|ar[b>>2])-4}function Xo(A){var e,r,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0;if(!(r=0|ar[(e=(A|=0)+8|0)>>2]))return(l=0)|l;if(6==(0|(i=0|ar[(l=A+4|0)>>2]))){if(a=(i=0|ar[(c=24+r|0)>>2])+1|0,(0|ar[(t=28+r|0)>>2])>(0|i))f=0|ar[20+r>>2];else{if(!(f=0|qo(a)))return 0|(l=7);(n=0|ar[(o=20+r|0)>>2])&&(Eu(0|f,0|n,0|i),$o(n),i=0|ar[c>>2]),ar[o>>2]=f,ar[t>>2]=a}tr[f+i>>0]=0,ar[c>>2]=1+(0|ar[c>>2]),i=0|ar[l>>2]}if(7==(0|i)){if(t=(i=0|ar[(c=24+r|0)>>2])+2|0,(0|ar[(o=28+r|0)>>2])<(0|t)){if(!(f=0|qo(t)))return 0|(l=7);(n=0|ar[(a=20+r|0)>>2])&&(Eu(0|f,0|n,0|i),$o(n),i=0|ar[c>>2]),ar[a>>2]=f,ar[o>>2]=t}else f=0|ar[20+r>>2];tr[(i=f+i|0)>>0]=0,tr[i+1>>0]=0,ar[c>>2]=2+(0|ar[c>>2]),i=0|ar[l>>2]}return 4<(0|i)&&(i=0|ar[(o=A+16|0)>>2],c=(0|ar[A+20>>2])-i|0,n=0|ar[(f=A+28|0)>>2],(0|(0==(0|c)?0:(c<<8)-1|0))==((t=0|ar[(a=A+32|0)>>2])+n|0)?(Go(A+12|0),n=0|ar[f>>2],f=0|ar[a>>2],i=0|ar[o>>2]):f=t,ar[(0|ar[i+((c=f+n|0)>>>10<<2)>>2])+((1023&c)<<2)>>2]=r,ar[a>>2]=f+1,ar[(A=A+36|0)>>2]=(0|ar[A>>2])+(0|ar[24+r>>2]),ar[e>>2]=0),(l=ar[l>>2]=0)|l}function _o(A){var e,r=0;for(tr[(A|=0)+4138>>0]=2,r=A+4139|0,tr[A+4155>>0]=0,tr[A+4156>>0]=0,tr[r>>0]=0,tr[r+1>>0]=0,tr[r+2>>0]=0,e=(r=A+4340|(tr[r+3>>0]=0))+60|0;(0|(r=r+4|(ar[r>>2]=0)))<(0|e););Fo(A,0)}function Fo(A,e){e|=0;var r=0,i=0;if(ar[(A|=0)>>2]=0,or[A+4>>1]=0,tr[A+6>>0]=1,tr[A+7>>0]=1,ar[A+8>>2]=27,tr[A+12>>0]=0,tr[A+13>>0]=0,tr[A+14>>0]=0,ar[(e=A+16|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,or[e+16>>1]=0,tr[e+18>>0]=0,ar[A+36>>2]=1,ar[A+40>>2]=1,tr[A+44>>0]=1,tr[A+45>>0]=1,tr[A+46>>0]=1,Vu(A+4172|0,0,168),e=0|ar[A+4340>>2],(0|(i=0|ar[(r=A+4344|0)>>2]))!=(0|e)&&(ar[r>>2]=i+(~((i+-4-e|0)>>>2)<<2)),e=0|ar[A+4352>>2],(0|(i=0|ar[(r=A+4356|0)>>2]))!=(0|e)&&(ar[r>>2]=i+(~((i+-4-e|0)>>>2)<<2)),e=0|ar[A+4364>>2],(0|(i=0|ar[(r=A+4368|0)>>2]))!=(0|e)&&(ar[r>>2]=i+(~((i+-4-e|0)>>>2)<<2)),e=0|ar[A+4376>>2],(0|(i=0|ar[(r=A+4380|0)>>2]))!=(0|e)&&(ar[r>>2]=i+(~((i+-4-e|0)>>>2)<<2)),e=0|ar[A+4388>>2],(0|(i=0|ar[(r=A+4392|0)>>2]))==(0|e))return ar[(i=A+4160|0)>>2]=0,tr[(i=A+47|0)>>0]=0,tr[(i=A+48|0)>>0]=0,tr[(i=A+49|0)>>0]=0,ar[(i=A+52|0)>>2]=0,ar[(i=A+56|0)>>2]=0,tr[(i=A+60|0)>>0]=0,tr[(i=A+4125|0)>>0]=0,ar[(i=A+4128|0)>>2]=2,ar[(A=A+4132|0)>>2]=0,void(or[A+4>>1]=0);ar[r>>2]=i+(~((i+-4-e|0)>>>2)<<2),ar[(i=A+4160|0)>>2]=0,tr[(i=A+47|0)>>0]=0,tr[(i=A+48|0)>>0]=0,tr[(i=A+49|0)>>0]=0,ar[(i=A+52|0)>>2]=0,ar[(i=A+56|0)>>2]=0,tr[(i=A+60|0)>>0]=0,tr[(i=A+4125|0)>>0]=0,ar[(i=A+4128|0)>>2]=2,ar[(A=A+4132|0)>>2]=0,or[A+4>>1]=0}function No(A){var e=0,r=0,i=0;0|(e=0|ar[(A|=0)+4388>>2])&&((0|(i=0|ar[(r=A+4392|0)>>2]))!=(0|e)&&(ar[r>>2]=i+(~((i+-4-e|0)>>>2)<<2)),Vl(e)),0|(e=0|ar[A+4376>>2])&&((0|(i=0|ar[(r=A+4380|0)>>2]))!=(0|e)&&(ar[r>>2]=i+(~((i+-4-e|0)>>>2)<<2)),Vl(e)),0|(e=0|ar[A+4364>>2])&&((0|(i=0|ar[(r=A+4368|0)>>2]))!=(0|e)&&(ar[r>>2]=i+(~((i+-4-e|0)>>>2)<<2)),Vl(e)),0|(e=0|ar[A+4352>>2])&&((0|(i=0|ar[(r=A+4356|0)>>2]))!=(0|e)&&(ar[r>>2]=i+(~((i+-4-e|0)>>>2)<<2)),Vl(e)),(i=0|ar[A+4340>>2])&&((0|(r=0|ar[(e=A+4344|0)>>2]))!=(0|i)&&(ar[e>>2]=r+(~((r+-4-i|0)>>>2)<<2)),Vl(i))}function Ro(A,e){var r,i,f,n,t,o=0,a=0,c=0,l=0;if((e|=0)>>>0<=(a=0|ar[(t=(A|=0)+8|0)>>2])-(o=0|ar[(l=A+4|0)>>2])>>2>>>0)return Vu(0|o,0,e<<2|0),void(ar[l>>2]=o+(e<<2));1073741823<(o=(i=(f=o-(n=0|ar[A>>2])|0)>>2)+e|0)>>>0&&il(),a=(c=a-n|0)>>1,a=c>>2>>>0<536870911?a>>>0<o>>>0?o:a:1073741823;do{if(a){if(!(1073741823<a>>>0)){c=0|El(a<<2);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else c=0}while(0);Vu(0|(r=c+(i<<2)|0),0,e<<2|0),o=r+(0-i<<2)|0,0<(0|f)&&Eu(0|o,0|n,0|f),ar[A>>2]=o,ar[l>>2]=r+(e<<2),ar[t>>2]=c+(a<<2),n&&Vl(n)}function Yo(A,e,r){e|=0,r|=0;var i,f=0;if(!(0|tr[(A|=0)+34>>0]))return 0==(r|e|0)|0;i=0|ar[A+36>>2];A:do{if(0<(0|i)){for(f=0;(0|ar[A+4252+(f<<2)>>2])!=(0|e);)if((0|i)<=(0|(f=f+1|0))){e=f=0;break A}if(0<(0|(e=0|ar[A+40>>2])))for(f=0;;){if((0|ar[A+4296+(f<<2)>>2])==(0|r)){e=f=1;break A}if((0|e)<=(0|(f=f+1|0))){f=1,e=0;break}}else f=1,e=0}else e=f=0}while(0);return e&f|0}function Jo(A,e,r,i,f,n,t,o,a,c,l){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0;var u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_,F,N,R,Y,J,D,Q,T,M,S,U=0,O=0,H=0,x=0,j=0,z=0,P=0,L=0,K=0,q=0,$=0,AA=0,eA=0,rA=0,iA=0,fA=0,nA=0,tA=0,oA=0,aA=0,cA=0,lA=0;if(ur=(S=ur)+144|0,D=S+8|0,_=(X=S)+136|0,U=0|ar[(F=(A|=0)+10352|0)>>2],iA=(0|sr(U,r))+e|0,Q=0|ar[A+10340>>2],H=f<<1,x=(0|cr[Q+(24*iA|0)+4>>0])>>>H&3)if(M=(T=1<<(P=0|ar[((O=0==(0|f))?A+5760|0:A+5768|0)>>2]))-1|0,J=0|sr(n,e),Y=0|sr(t,r),B=0|ar[(O?A+24|0:A+32|0)>>2],E=0|ar[(O?A+28|0:A+36|0)>>2],e=Y>>(G=0|ar[A+10348>>2]),-1<(0|(i=J>>G))&(0|i)<(0|U)||br(41808,41845,118,41865),(0|e)<=-1&&br(41869,41845,119,41865),(0|(V=0|ar[A+10356>>2]))<=(0|e)&&br(41869,41845,119,41865),nA=Q+(24*((0|sr(e,U))+i|0)|0)+2|0,y=A+52|0,Z=0|ar[A+48>>2],nA=0|ar[800+(0|ar[Z+(lr[nA>>1]<<2)>>2])>>2],C=0|ar[A+5820>>2],W=Z,cA=O?aA=0:(aA=(0|ar[A+5780>>2])-1|0,(0|ar[A+5784>>2])-1|0),p=(fA=0|ar[A+5804>>2])-aA|0,fA=fA-cA|0,R=(0|B)<(J+n|0)?B-J|0:n,N=(0|E)<(Y+t|0)?E-Y|0:t,I=0!=(0|tr[Q+(24*iA|0)+22>>0]),2==(0|x)){switch((0|cr[Q+(24*iA|0)+5>>0])>>>H&3){case 0:j=z=0,tA=-1,oA=1;break;case 1:j=-(z=1),oA=tA=0;break;case 2:tA=j=-(z=1),oA=1;break;case 3:j=-(z=1),oA=-(tA=1)}if(ar[D>>2]=tA,ar[4+D>>2]=oA,ar[X>>2]=j,ar[X+4>>2]=z,m=0|sr(j,a),g=0-z&a,tr[_>>0]=0|tr[Q+(24*iA|0)+9+(f<<2)>>0],tr[1+_>>0]=0|tr[Q+(24*iA|0)+9+(f<<2)+1>>0],tr[2+_>>0]=0,tr[3+_>>0]=0|tr[Q+(24*iA|0)+9+(f<<2)+2>>0],tr[4+_>>0]=0|tr[Q+(24*iA|0)+9+(f<<2)+3>>0],(0|N)<=0)ur=S;else{f=0<(0|R),u=A+5480|0,s=A+10368|0,b=A+10372|0,d=A+10376|0,k=A+10360|0,h=R+-1|0,w=N+-1|0,v=A+5977|0,P=A+10308|0,L=(0|sr(Y>>fA,C))+(J>>p)|0,j=0;A:for(;;){if(K=o+((0|sr(A=j+Y|0,a))+J<<1)|0,q=c+((0|sr(A,l))+J<<1)|0,f){AA=0==(0|j),eA=(0|j)==(0|w),iA=(0|(rA=($=A<<cA)>>G))<0|(0|V)<=(0|rA),z=0;do{if(I&&0!=(0|tr[u>>0])){if(i=z+J<<aA>>(e=0|ar[s>>2]),e=$>>e,(0|i)<=-1){lA=23;break A}if((0|(r=0|ar[b>>2]))<=(0|i)){lA=23;break A}if((0|e)<=-1){lA=26;break A}if((0|e)>=(0|ar[d>>2])){lA=26;break A}x=(0|ar[k>>2])+(3*((0|sr(r,e))+i|0)|0)|0,1024&(cr[x>>0]|cr[x+1>>0]<<8)||(lA=28)}else lA=28;e:do{if(28==(0|lA)){if(e=(i=(x=z+J|(lA=0))<<aA)>>(r=0|ar[s>>2]),r=$>>r,(0|e)<=-1){lA=30;break A}if((0|(U=0|ar[b>>2]))<=(0|e)){lA=30;break A}if((0|r)<=-1){lA=33;break A}if((0|r)>=(0|ar[d>>2])){lA=33;break A}if(H=(0|ar[k>>2])+(3*((0|sr(U,r))+e|0)|0)|0,!(2048&(cr[H>>0]|cr[H+1>>0]<<8))){if(eA|(0|z)==(0|h)|AA|0==(0|z)){O=-1<(0|(U=i>>G)),r=0;do{if(n=(0|ar[D+(r<<2)>>2])+x|0,!((0|(t=(0|ar[X+(r<<2)>>2])+A|0))<(0|E)&(0|n)<(0|B)&-1<(t|n|0)))break e;if(e=t<<cA>>G,(0|(i=n<<aA>>G))<=-1){lA=40;break A}if((0|(H=0|ar[F>>2]))<=(0|i)){lA=40;break A}if(!(-1<(0|e)&(0|e)<(0|V))){lA=42;break A}if(e=Q+(24*((0|sr(H,e))+i|0)|0)+2|0,(e=0|lr[e>>1])>>>0>=(0|ar[y>>2])-W>>2>>>0){lA=59;break A}if(!(i=0|ar[Z+(e<<2)>>2])){lA=59;break A}if((0|(i=0|ar[i+800>>2]))<(0|nA)){if(!(O&(0|U)<(0|H))){lA=47;break A}if(iA){lA=49;break A}if(H=Q+(24*((0|sr(H,rA))+U|0)|0)+2|0,!(0|tr[764+(0|ar[Z+(lr[H>>1]<<2)>>2])>>0]))break e}if((0|nA)<(0|i)&&0==(0|tr[764+(0|ar[Z+(e<<2)>>2])>>0]))break e;if(0==(0|tr[v>>0])&&(t=(0|sr(t>>fA,C))+(n>>p)|0,H=0|ar[P>>2],(0|ar[H+(t<<2)>>2])!=(0|ar[H+(L<<2)>>2])))break e;r=r+1|0}while((0|r)<2)}t=(x=0|lr[K+(z<<1)>>1])-(0|lr[K+(z+m+tA<<1)>>1])|0,H=x-(0|lr[K+(z+g+oA<<1)>>1])|0,x=(0|tr[((0|t)<0?1:0|t?3:2)+((0|H)<0?-1:0!=(0|H)&1)+_>>0])+x|0,or[q+(z<<1)>>1]=(0|x)<0?0:65535&((0|x)<(0|T)?x:M)}}}while(0);z=z+1|0}while((0|z)<(0|R))}if((0|N)<=(0|(j=j+1|0))){lA=59;break}}if(23==(0|lA))br(41808,41845,118,41865);else if(26==(0|lA))br(41869,41845,119,41865);else if(30==(0|lA))br(41808,41845,118,41865);else if(33==(0|lA))br(41869,41845,119,41865);else if(40==(0|lA))br(41808,41845,118,41865);else if(42==(0|lA))br(41869,41845,119,41865);else if(47==(0|lA))br(41808,41845,118,41865);else if(49==(0|lA))br(41869,41845,119,41865);else if(59==(0|lA))return void(ur=S)}}else{for(i=0|cr[Q+(24*iA|0)+6+f>>0],r=(e=D)+128|0;(0|(e=e+4|(ar[e>>2]=0)))<(0|r););ar[D+((31&i)<<2)>>2]=1,ar[D+((i+1&31)<<2)>>2]=2,ar[D+((i+2&31)<<2)>>2]=3,ar[D+((i+3&31)<<2)>>2]=4,rA=P+-5|0,i=0<(0|N);A:do{if(I){if(i){K=0<(0|R),q=A+5480|0,$=A+10368|0,AA=A+10372|0,eA=A+10376|0,P=A+10360|0,L=7<(0|rA),z=0;e:for(;;){r:do{if(K){if(j=(H=z+Y|0)<<cA,t=0|sr(H,a),H=0|sr(H,l),A=0==(0|tr[q>>0]),L)for(x=-1<(0|(H=j>>(t=0|ar[$>>2]))),n=-1<(0|(O=j>>t)),U=0;;){if(i=U+J<<aA,A)lA=79;else{if((0|(e=i>>t))<=-1){lA=88;break e}if((0|(r=0|ar[AA>>2]))<=(0|e)){lA=88;break e}if(!n){lA=91;break e}if((0|O)>=(0|ar[eA>>2])){lA=91;break e}oA=(0|ar[P>>2])+(3*((0|sr(r,O))+e|0)|0)|0,1024&(cr[oA>>0]|cr[oA+1>>0]<<8)||(lA=79)}if(79==(0|lA)){if(((lA=0)|(i>>=t))<=-1){lA=95;break e}if((0|i)>=(0|ar[AA>>2])){lA=95;break e}if(!x){lA=98;break e}if((0|H)>=(0|ar[eA>>2])){lA=98;break e}}if((0|R)<=(0|(U=U+1|0)))break r}else n=0;do{if(i=(x=n+J|0)<<aA,O=0|ar[$>>2],A)lA=93;else{if(r=j>>O,(0|(e=i>>O))<=-1){lA=88;break e}if((0|(U=0|ar[AA>>2]))<=(0|e)){lA=88;break e}if((0|r)<=-1){lA=91;break e}if((0|r)>=(0|ar[eA>>2])){lA=91;break e}oA=(0|ar[P>>2])+(3*((0|sr(U,r))+e|0)|0)|0,1024&(cr[oA>>0]|cr[oA+1>>0]<<8)||(lA=93)}do{if(93==(0|lA)){if(r=i>>O,i=j>>O,((lA=0)|r)<=-1){lA=95;break e}if((0|(e=0|ar[AA>>2]))<=(0|r)){lA=95;break e}if((0|i)<=-1){lA=98;break e}if((0|i)>=(0|ar[eA>>2])){lA=98;break e}if(oA=(0|ar[P>>2])+(3*((0|sr(e,i))+r|0)|0)|0,2048&(cr[oA>>0]|cr[oA+1>>0]<<8))break;if(i=0|lr[o+(x+t<<1)>>1],(0|(e=0|ar[D+(i>>>rA<<2)>>2]))<=0)break;oA=(0|tr[e+-1+(Q+(24*iA|0)+9+(f<<2))>>0])+i|0,or[c+(x+H<<1)>>1]=(0|oA)<0?0:65535&((0|oA)<(0|T)?oA:M)}}while(0);n=n+1|0}while((0|n)<(0|R))}}while(0);if((0|N)<=(0|(z=z+1|0)))break A}88==(0|lA)?br(41808,41845,118,41865):91==(0|lA)?br(41869,41845,119,41865):95==(0|lA)?br(41808,41845,118,41865):98==(0|lA)&&br(41869,41845,119,41865)}}else if(i&&(L=7<(0|rA),0<(0|R))){e=0;do{if(r=0|sr(U=e+Y|0,a),U=0|sr(U,l),!L)for(i=0;n=0|lr[o+((O=i+J|0)+r<<1)>>1],0<(0|(t=0|ar[D+(n>>>rA<<2)>>2]))&&(lA=(0|tr[t+-1+(Q+(24*iA|0)+9+(f<<2))>>0])+n|0,or[c+(O+U<<1)>>1]=(0|lA)<0?0:65535&((0|lA)<(0|T)?lA:M)),(0|(i=i+1|0))<(0|R););e=e+1|0}while((0|e)<(0|N))}}while(0);ur=S}else ur=S}function Do(A,e,r){e|=0,r|=0;var i,f,n,t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p,y,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0,X=0,_=0,F=0,N=0,R=0,Y=0,J=0,D=0,Q=0,T=0,M=0,S=0,U=0,O=0,H=0,x=0;for(m=(A|=0)+12|0,p=A+16|0,y=A+20|0,f=A+88|0,n=A+92|0,t=A+96|0,o=A+100|0,a=A+104|0,c=A+108|0,l=A+112|0,u=A+116|0,s=A+120|0,b=A+124|0,d=A+128|0,k=A+132|0,h=A+136|0,w=A+140|0,v=A+144|0,i=A+148|0,A=0|ar[(g=A+8|0)>>2],Z=0|ar[m>>2],C=0|ar[y>>2],W=0|ar[p>>2];I=(0|cr[e+1>>0])<<8|0|cr[e>>0]|(0|cr[e+2>>0])<<16|(0|cr[e+3>>0])<<24,I=((I=A+-680876936+(Z&(C^W)^C)+(ar[f>>2]=I)|0)<<7|I>>>25)+Z|0,B=(0|cr[e+5>>0])<<8|0|cr[e+4>>0]|(0|cr[e+6>>0])<<16|(0|cr[e+7>>0])<<24,B=((B=C+-389564586+(ar[n>>2]=B)+(I&(Z^W)^W)|0)<<12|B>>>20)+I|0,E=(0|cr[e+9>>0])<<8|0|cr[e+8>>0]|(0|cr[e+10>>0])<<16|(0|cr[e+11>>0])<<24,E=((E=W+606105819+(ar[t>>2]=E)+(B&(I^Z)^Z)|0)<<17|E>>>15)+B|0,x=(0|cr[e+13>>0])<<8|0|cr[e+12>>0]|(0|cr[e+14>>0])<<16|(0|cr[e+15>>0])<<24,x=((x=Z+-1044525330+(ar[o>>2]=x)+(E&(B^I)^I)|0)<<22|x>>>10)+E|0,Y=(0|cr[e+17>>0])<<8|0|cr[e+16>>0]|(0|cr[e+18>>0])<<16|(0|cr[e+19>>0])<<24,Y=((Y=I+-176418897+(ar[a>>2]=Y)+(x&(E^B)^B)|0)<<7|Y>>>25)+x|0,I=(0|cr[e+21>>0])<<8|0|cr[e+20>>0]|(0|cr[e+22>>0])<<16|(0|cr[e+23>>0])<<24,I=((I=B+1200080426+(ar[c>>2]=I)+(Y&(x^E)^E)|0)<<12|I>>>20)+Y|0,B=(0|cr[e+25>>0])<<8|0|cr[e+24>>0]|(0|cr[e+26>>0])<<16|(0|cr[e+27>>0])<<24,B=((B=E+-1473231341+(ar[l>>2]=B)+(I&(Y^x)^x)|0)<<17|B>>>15)+I|0,E=(0|cr[e+29>>0])<<8|0|cr[e+28>>0]|(0|cr[e+30>>0])<<16|(0|cr[e+31>>0])<<24,E=((E=x+-45705983+(ar[u>>2]=E)+(B&(I^Y)^Y)|0)<<22|E>>>10)+B|0,x=(0|cr[e+33>>0])<<8|0|cr[e+32>>0]|(0|cr[e+34>>0])<<16|(0|cr[e+35>>0])<<24,x=((x=Y+1770035416+(ar[s>>2]=x)+(E&(B^I)^I)|0)<<7|x>>>25)+E|0,Y=(0|cr[e+37>>0])<<8|0|cr[e+36>>0]|(0|cr[e+38>>0])<<16|(0|cr[e+39>>0])<<24,I=((I=(ar[b>>2]=Y)+-1958414417+I+(x&(E^B)^B)|0)<<12|I>>>20)+x|0,Y=(0|cr[e+41>>0])<<8|0|cr[e+40>>0]|(0|cr[e+42>>0])<<16|(0|cr[e+43>>0])<<24,B=((B=(ar[d>>2]=Y)+-42063+B+(I&(x^E)^E)|0)<<17|B>>>15)+I|0,Y=(0|cr[e+45>>0])<<8|0|cr[e+44>>0]|(0|cr[e+46>>0])<<16|(0|cr[e+47>>0])<<24,E=((E=(ar[k>>2]=Y)+-1990404162+E+(B&(I^x)^x)|0)<<22|E>>>10)+B|0,Y=(0|cr[e+49>>0])<<8|0|cr[e+48>>0]|(0|cr[e+50>>0])<<16|(0|cr[e+51>>0])<<24,x=((x=(ar[h>>2]=Y)+1804603682+x+(E&(B^I)^I)|0)<<7|x>>>25)+E|0,Y=(0|cr[e+53>>0])<<8|0|cr[e+52>>0]|(0|cr[e+54>>0])<<16|(0|cr[e+55>>0])<<24,I=((I=(ar[w>>2]=Y)+-40341101+I+(x&(E^B)^B)|0)<<12|I>>>20)+x|0,Y=(0|cr[e+57>>0])<<8|0|cr[e+56>>0]|(0|cr[e+58>>0])<<16|(0|cr[e+59>>0])<<24,B=((B=(ar[v>>2]=Y)+-1502002290+B+(I&(x^E)^E)|0)<<17|B>>>15)+I|0,Y=(0|cr[e+61>>0])<<8|0|cr[e+60>>0]|(0|cr[e+62>>0])<<16|(0|cr[e+63>>0])<<24,E=((E=(ar[i>>2]=Y)+1236535329+E+(B&(I^x)^x)|0)<<22|E>>>10)+B|0,x=((x=(D=0|ar[n>>2])+-165796510+x+((E^B)&I^B)|0)<<5|x>>>27)+E|0,I=((I=(R=0|ar[l>>2])+-1069501632+I+((x^E)&B^E)|0)<<9|I>>>23)+x|0,B=((B=(_=0|ar[k>>2])+643717713+B+((I^x)&E^x)|0)<<14|B>>>18)+I|0,E=((E=(H=0|ar[f>>2])+-373897302+E+((B^I)&x^I)|0)<<20|E>>>12)+B|0,x=((x=(S=0|ar[c>>2])+-701558691+x+((E^B)&I^B)|0)<<5|x>>>27)+E|0,B=((B=Y+-660478335+B+(((I=((I=(Q=0|ar[d>>2])+38016083+I+((x^E)&B^E)|0)<<9|I>>>23)+x|0)^x)&E^x)|0)<<14|B>>>18)+I|0,E=((E=(F=0|ar[a>>2])+-405537848+E+((B^I)&x^I)|0)<<20|E>>>12)+B|0,x=((x=(V=0|ar[b>>2])+568446438+x+((E^B)&I^B)|0)<<5|x>>>27)+E|0,I=((I=(U=0|ar[v>>2])+-1019803690+I+((x^E)&B^E)|0)<<9|I>>>23)+x|0,B=((B=(T=0|ar[o>>2])+-187363961+B+((I^x)&E^x)|0)<<14|B>>>18)+I|0,E=((E=(J=0|ar[s>>2])+1163531501+E+((B^I)&x^I)|0)<<20|E>>>12)+B|0,x=((x=(N=0|ar[w>>2])+-1444681467+x+((E^B)&I^B)|0)<<5|x>>>27)+E|0,I=((I=(X=0|ar[t>>2])+-51403784+I+((x^E)&B^E)|0)<<9|I>>>23)+x|0,G=(B=((B=(O=0|ar[u>>2])+1735328473+B+((I^x)&E^x)|0)<<14|B>>>18)+I|0)^I,A=(G=((G=F+-145523070+(G=((G=J+1873313359+(G=((G=(M=0|ar[h>>2])+1700485571+(G=((G=H+-198630844+(G=((G=V+-640364487+(G=((G=N+681279174+(G=((G=D+-1530992060+(G=((G=S+-378558+x+(G^(E=((E=M+-1926607734+E+(G&x^I)|0)<<20|E>>>12)+B|0))|0)<<4|G>>>28)+E|0)+((B=((B=_+1839030562+B+(G^E^(I=((I=J+-2022574463+I+(E^B^G)|0)<<11|I>>>21)+G|0))|0)<<16|B>>>16)+I|0)^I^(E=((E=U+-35309556+E+(I^G^B)|0)<<23|E>>>9)+B|0))|0)<<4|G>>>28)+E|0)+((B=((B=O+-155497632+B+(G^E^(I=((I=F+1272893353+I+(E^B^G)|0)<<11|I>>>21)+G|0))|0)<<16|B>>>16)+I|0)^I^(E=((E=Q+-1094730640+E+(I^G^B)|0)<<23|E>>>9)+B|0))|0)<<4|G>>>28)+E|0)+((B=((B=T+-722521979+B+(G^E^(I=((I=H+-358537222+I+(E^B^G)|0)<<11|I>>>21)+G|0))|0)<<16|B>>>16)+I|0)^I^(E=((E=R+76029189+E+(I^G^B)|0)<<23|E>>>9)+B|0))|0)<<4|G>>>28)+E|0)+(((E=((E=X+-995338651+E+((I=((I=M+-421815835+I+(E^B^G)|0)<<11|I>>>21)+G|0)^G^(B=((B=Y+530742520+B+(G^E^I)|0)<<16|B>>>16)+I|0))|0)<<23|E>>>9)+B|0)|~I)^B)|0)<<6|G>>>26)+E|0)+(((E=((E=S+-57434055+E+(((B=((B=U+-1416354905+B+(((I=((I=O+1126891415+I+((G|~B)^E)|0)<<10|I>>>22)+G|0)|~E)^G)|0)<<15|B>>>17)+I|0)|~G)^I)|0)<<21|E>>>11)+B|0)|~I)^B)|0)<<6|G>>>26)+E|0)+(((E=((E=D+-2054922799+E+(((B=((B=Q+-1051523+B+(((I=((I=T+-1894986606+I+((G|~B)^E)|0)<<10|I>>>22)+G|0)|~E)^G)|0)<<15|B>>>17)+I|0)|~G)^I)|0)<<21|E>>>11)+B|0)|~I)^B)|0)<<6|G>>>26)+E|0)+(((E=((E=N+1309151649+E+(((B=((B=R+-1560198380+B+(((I=((I=Y+-30611744+I+((G|~B)^E)|0)<<10|I>>>22)+G|0)|~E)^G)|0)<<15|B>>>17)+I|0)|~G)^I)|0)<<21|E>>>11)+B|0)|~I)^B)|0)<<6|G>>>26)+E|0)+A|0,Z=(B=((B=X+718787259+B+(((I=((I=_+-1120210379+I+((G|~B)^E)|0)<<10|I>>>22)+G|0)|~E)^G)|0)<<15|B>>>17)+I|0)+Z+((E=V+-343485551+E+((B|~G)^I)|0)<<21|E>>>11)|0,W=B+W|0,C=I+C|0,e=e+64|0,0!=(0|(r=r+-64|0)););return ar[g>>2]=A,ar[m>>2]=Z,ar[p>>2]=W,ar[y>>2]=C,0|e}function Qo(A,e){A|=0;var r=0,i=0,f=0;r=(i=63&ar[(e|=0)>>2])+1|0,tr[e+24+i>>0]=-128,f=e+24|0,(i^=63)>>>0<8?(Vu(e+24+r|0,0,0|i),Do(e,f,64),i=56,r=0):i=i+-8|0,Vu(e+24+r|0,0,0|i),r=(i=0|ar[e>>2])<<3,ar[e>>2]=r,tr[e+80>>0]=r,tr[e+81>>0]=i>>>5,tr[e+82>>0]=i>>>13,tr[e+83>>0]=i>>>21,i=0|ar[e+4>>2],tr[e+84>>0]=i,tr[e+85>>0]=i>>>8,tr[e+86>>0]=i>>>16,tr[e+87>>0]=i>>>24,Do(e,f,64),f=e+8|0,tr[A>>0]=ar[f>>2],tr[A+1>>0]=(0|ar[f>>2])>>>8,tr[A+2>>0]=(0|ar[f>>2])>>>16,tr[A+3>>0]=(0|ar[f>>2])>>>24,f=e+12|0,tr[A+4>>0]=ar[f>>2],tr[A+5>>0]=(0|ar[f>>2])>>>8,tr[A+6>>0]=(0|ar[f>>2])>>>16,tr[A+7>>0]=(0|ar[f>>2])>>>24,f=e+16|0,tr[A+8>>0]=ar[f>>2],tr[A+9>>0]=(0|ar[f>>2])>>>8,tr[A+10>>0]=(0|ar[f>>2])>>>16,tr[A+11>>0]=(0|ar[f>>2])>>>24,f=e+20|0,tr[A+12>>0]=ar[f>>2],tr[A+13>>0]=(0|ar[f>>2])>>>8,tr[A+14>>0]=(0|ar[f>>2])>>>16,tr[A+15>>0]=(0|ar[f>>2])>>>24,Vu(0|e,0,152)}function To(A,e,r,i,f,n,t,o,a,c,l,u,s){A|=0,t|=0,o|=0,a|=0,c|=0,l|=0,u|=0,s|=0;var b,d,k,h,w,v,g,m,p,y=0,Z=0,C=0,W=0,I=0,B=0,E=0;if(ur=(p=ur)+20448|0,d=(B=p)+9088|0,k=3&(r|=0),h=3&(i|=0),m=(r>>2)+(f|=0)|0,g=(i>>2)+(n|=0)|0,Z=14-(0|ar[(e|=0)+4996>>2])|0,v=0|ar[e+484>>2],w=0|ar[e+488>>2],3&(i|r)){if(Z=0|ar[8112+(k<<2)>>2],n=0|ar[8128+(k<<2)>>2],b=0|ar[8112+(h<<2)>>2],f=0|ar[8128+(h<<2)>>2],y=0-Z|0,-1<(g-b|m-Z|0)&&(m+l+n|0)<(0|v)&&(g+u+f|0)<(0|w))f=a+((0|sr(g,n=c))+m<<1)|0;else{if((0|(e=0-b|0))<(0|(i=f+u|0))&&(W=v-1|0,I=w-1|0,(0|y)<(0|(C=n+l|0))))do{for(n=0|sr((0|(n=e+g|0))<0?0:(0|n)<(0|w)?n:I,c),r=(80*(e+b|0)|0)+Z|0,f=y;E=f+m|0,or[d+(r+f<<1)>>1]=0|or[a+(((0|E)<0?0:(0|E)<(0|v)?E:W)+n<<1)>>1],(0|(f=f+1|0))!=(0|C););e=e+1|0}while((0|e)!=(0|i));f=d+(((n=80)*b|0)+Z<<1)|0}(0|s)<9?ms[31&ar[A+220+(k<<4)+(h<<2)>>2]](t,o,f,n,l,u,B):ps[31&ar[A+300+(k<<4)+(h<<2)>>2]](t,o,f,n,l,u,B,s),ur=p}else{if(!((g|m|0)<0|(0|v)<(m+l|0)|(0|w)<(g+u|0)))return f=a+((0|sr(g,c))+m<<1)|0,(0|s)<9?ms[31&ar[A+220>>2]](t,o,f,c,l,u,B):ps[31&ar[A+300>>2]](t,o,f,c,l,u,B,s),void(ur=p);if((0|u)<=0)return void(ur=p);if(e=v-1|0,r=w-1|0,!(0<(0|l)))return void(ur=p);f=0;do{for(i=0|sr((0|(i=f+g|0))<0?0:(0|i)<(0|w)?i:r,c),y=0|sr(f,o),n=0;B=n+m|0,or[t+(n+y<<1)>>1]=(0|lr[a+(((0|B)<0?0:(0|B)<(0|v)?B:e)+i<<1)>>1])<<Z,(0|(n=n+1|0))!=(0|l););f=f+1|0}while((0|f)!=(0|u));ur=p}}function Mo(A,e,r,i,f,n,t,o,a,c,l,u,s){A|=0,t|=0,o|=0,a|=0,c|=0,l|=0,u|=0,s|=0;var b,d,k,h,w,v,g,m,p,y=0,Z=0,C=0,W=0,I=0,B=0,E=0;if(ur=(p=ur)+14768|0,d=(B=p)+9088|0,k=3&(r|=0),h=3&(i|=0),m=(r>>2)+(f|=0)|0,g=(i>>2)+(n|=0)|0,Z=14-(0|ar[(e|=0)+4996>>2])|0,v=0|ar[e+484>>2],w=0|ar[e+488>>2],3&(i|r)){if(Z=0|ar[8112+(k<<2)>>2],n=0|ar[8128+(k<<2)>>2],b=0|ar[8112+(h<<2)>>2],f=0|ar[8128+(h<<2)>>2],y=0-Z|0,-1<(g-b|m-Z|0)&&(m+l+n|0)<(0|v)&&(g+u+f|0)<(0|w))f=a+((0|sr(g,n=c))+m)|0;else{if((0|(e=0-b|0))<(0|(i=f+u|0))&&(W=v-1|0,I=w-1|0,(0|y)<(0|(C=n+l|0))))do{for(n=0|sr((0|(n=e+g|0))<0?0:(0|n)<(0|w)?n:I,c),r=(80*(e+b|0)|0)+Z|0,f=y;E=f+m|0,tr[d+(r+f)>>0]=0|tr[a+(((0|E)<0?0:(0|E)<(0|v)?E:W)+n)>>0],(0|(f=f+1|0))!=(0|C););e=e+1|0}while((0|e)!=(0|i));f=d+(((n=80)*b|0)+Z)|0}(0|s)<9?ms[31&ar[A+220+(k<<4)+(h<<2)>>2]](t,o,f,n,l,u,B):ps[31&ar[A+300+(k<<4)+(h<<2)>>2]](t,o,f,n,l,u,B,s),ur=p}else{if(!((g|m|0)<0|(0|v)<(m+l|0)|(0|w)<(g+u|0)))return f=a+((0|sr(g,c))+m)|0,(0|s)<9?ms[31&ar[A+220>>2]](t,o,f,c,l,u,B):ps[31&ar[A+300>>2]](t,o,f,c,l,u,B,s),void(ur=p);if((0|u)<=0)return void(ur=p);if(e=v-1|0,r=w-1|0,!(0<(0|l)))return void(ur=p);f=0;do{for(i=0|sr((0|(i=f+g|0))<0?0:(0|i)<(0|w)?i:r,c),y=0|sr(f,o),n=0;B=n+m|0,or[t+(n+y<<1)>>1]=(0|cr[a+(((0|B)<0?0:(0|B)<(0|v)?B:e)+i)>>0])<<Z,(0|(n=n+1|0))!=(0|l););f=f+1|0}while((0|f)!=(0|u));ur=p}}function So(A,e,r,i,f,n,t,o,a,c,l,u,s){A|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0,u|=0,s|=0;var b,d,k,h,w,v,g=0,m=0,p=0,y=0,Z=0,C=0,W=0;if(g=ur=(v=ur)+31&-32,ur=ur+19808|0,g=(k=g)+9088|0,Z=14-(0|ar[(e|=0)+5004>>2])|0,W=0|ar[e+5016>>2],w=(0|ar[e+484>>2])/(0|W)|0,C=0|ar[e+5020>>2],h=(0|ar[e+488>>2])/(0|C)|0,b=7&(r=0|sr(2/(0|W)|0,r)),d=7&(i=0|sr(2/(0|C)|0,i)),W=((0|f)/(0|W)|0)+(r>>3)|0,C=((0|n)/(0|C)|0)+(i>>3)|0,7&(i|r)){if(0<(0|W)&&(W+l|0)<=(w-2|0)&0<(0|C)&&(C+u|0)<=(h-2|0))f=a+((0|sr(C,c))+W<<1)|0,e=c;else{if(-1<(0|(i=u+2|0))&&(p=w-1|0,y=h-1|0,-1<(0|(m=l+2|0)))){r=-1;do{for(f=0|sr((0|(f=r+C|0))<0?0:(0|f)<(0|h)?f:y,c),n=80+(80*r|0)|0,e=-1;Z=e+W|0,or[g+(n+(e=e+1|0)<<1)>>1]=0|or[a+(((0|Z)<0?0:(0|Z)<(0|w)?Z:p)+f<<1)>>1],(0|e)!=(0|m););r=r+1|0}while((0|r)!=(0|i))}f=g+162|0,e=80}r=0!=(0|b),i=0!=(0|d);do{if(r&i){if((0|s)<9){Zs[7&ar[A+216>>2]](t,o,f,e,l,u,b,d,k,s);break}Zs[7&ar[A+296>>2]](t,o,f,e,l,u,b,d,k,s);break}if(r){if((0|s)<9){Zs[7&ar[A+208>>2]](t,o,f,e,l,u,b,d,k,s);break}Zs[7&ar[A+288>>2]](t,o,f,e,l,u,b,d,k,s);break}if(i||br(49065,41754,268,41798),(0|s)<9){Zs[7&ar[A+212>>2]](t,o,f,e,l,u,0,d,k,s);break}Zs[7&ar[A+292>>2]](t,o,f,e,l,u,0,d,k,s);break}while(0);ur=v}else{if(-1<(0|W)&&!((0|C)<0|(0|w)<(W+l|0)|(0|h)<(C+u|0)))return e=a+((0|sr(C,c))+W<<1)|0,(0|s)<9?ys[3&ar[A+204>>2]](t,o,e,c,l,u,0,0,0):Zs[7&ar[A+284>>2]](t,o,e,c,l,u,0,0,0,s),void(ur=v);if((0|u)<=0)return void(ur=v);if(i=w-1|0,f=h-1|0,!(0<(0|l)))return void(ur=v);r=0;do{for(n=0|sr((0|(n=r+C|0))<0?0:(0|n)<(0|h)?n:f,c),g=0|sr(r,o),e=0;s=e+W|0,or[t+(e+g<<1)>>1]=(0|lr[a+(((0|s)<0?0:(0|s)<(0|w)?s:i)+n<<1)>>1])<<Z,(0|(e=e+1|0))!=(0|l););r=r+1|0}while((0|r)!=(0|u));ur=v}}function Uo(A,e,r,i,f,n,t,o,a,c,l,u,s){A|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0,u|=0,s|=0;var b,d,k,h,w,v,g=0,m=0,p=0,y=0,Z=0,C=0,W=0;if(g=ur=(v=ur)+31&-32,ur=ur+14448|0,g=(k=g)+9088|0,Z=14-(0|ar[(e|=0)+5004>>2])|0,W=0|ar[e+5016>>2],w=(0|ar[e+484>>2])/(0|W)|0,C=0|ar[e+5020>>2],h=(0|ar[e+488>>2])/(0|C)|0,b=7&(r=0|sr(2/(0|W)|0,r)),d=7&(i=0|sr(2/(0|C)|0,i)),W=((0|f)/(0|W)|0)+(r>>3)|0,C=((0|n)/(0|C)|0)+(i>>3)|0,7&(i|r)){if(0<(0|W)&&(W+l|0)<=(w-2|0)&0<(0|C)&&(C+u|0)<=(h-2|0))f=a+((0|sr(C,c))+W)|0,e=c;else{if(-1<(0|(i=u+2|0))&&(p=w-1|0,y=h-1|0,-1<(0|(m=l+2|0)))){r=-1;do{for(f=0|sr((0|(f=r+C|0))<0?0:(0|f)<(0|h)?f:y,c),n=80+(80*r|0)|0,e=-1;Z=e+W|0,tr[g+(n+(e=e+1|0))>>0]=0|tr[a+(((0|Z)<0?0:(0|Z)<(0|w)?Z:p)+f)>>0],(0|e)!=(0|m););r=r+1|0}while((0|r)!=(0|i))}f=g+81|0,e=80}r=0!=(0|b),i=0!=(0|d);do{if(r&i){if((0|s)<9){Zs[7&ar[A+216>>2]](t,o,f,e,l,u,b,d,k,s);break}Zs[7&ar[A+296>>2]](t,o,f,e,l,u,b,d,k,s);break}if(r){if((0|s)<9){Zs[7&ar[A+208>>2]](t,o,f,e,l,u,b,d,k,s);break}Zs[7&ar[A+288>>2]](t,o,f,e,l,u,b,d,k,s);break}if(i||br(49065,41754,268,41798),(0|s)<9){Zs[7&ar[A+212>>2]](t,o,f,e,l,u,0,d,k,s);break}Zs[7&ar[A+292>>2]](t,o,f,e,l,u,0,d,k,s);break}while(0);ur=v}else{if(-1<(0|W)&&!((0|C)<0|(0|w)<(W+l|0)|(0|h)<(C+u|0)))return e=a+((0|sr(C,c))+W)|0,(0|s)<9?ys[3&ar[A+204>>2]](t,o,e,c,l,u,0,0,0):Zs[7&ar[A+284>>2]](t,o,e,c,l,u,0,0,0,s),void(ur=v);if((0|u)<=0)return void(ur=v);if(i=w-1|0,f=h-1|0,!(0<(0|l)))return void(ur=v);r=0;do{for(n=0|sr((0|(n=r+C|0))<0?0:(0|n)<(0|h)?n:f,c),g=0|sr(r,o),e=0;s=e+W|0,or[t+(e+g<<1)>>1]=(0|cr[a+(((0|s)<0?0:(0|s)<(0|w)?s:i)+n)>>0])<<Z,(0|(e=e+1|0))!=(0|l););r=r+1|0}while((0|r)!=(0|u));ur=v}}function Oo(A,e,r,i,f,n,t,o,a,c,l,u){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0,u|=0;var s,b=0,d=0,k=0,h=0,w=0;if(0|fs[63&ar[12+(0|ar[(A|=0)>>2])>>2]](A,n)||br(41907,41754,1074,41930),s=0|fs[63&ar[8+(0|ar[A>>2])>>2]](A,n),(0|ar[24+s>>2])>(0|t)&&(0|ar[28+s>>2])>(0|o)){if(i=t>>(f=0|ar[10368+s>>2]),f=o>>f,(0|i)<=-1&&br(41808,41845,118,41865),(0|(n=0|ar[10372+s>>2]))<=(0|i)&&br(41808,41845,118,41865),(0|f)<=-1&&br(41869,41845,119,41865),(0|f)>=(0|ar[10376+s>>2])&&br(41869,41845,119,41865),w=(0|ar[10360+s>>2])+(3*((0|sr(n,f))+i|0)|0)|0,!(768&(cr[w>>0]|cr[w+1>>0]<<8)))return or[l>>1]=0,or[l+2>>1]=0,void(tr[u>>0]=0);if(1==(0|tr[10516+s>>0]))return or[l>>1]=0,or[l+2>>1]=0,void(tr[u>>0]=0);if(i=t>>(f=0|ar[10388+s>>2]),f=o>>f,(0|i)<=-1&&br(41808,41845,118,41865),(0|(n=0|ar[10392+s>>2]))<=(0|i)&&br(41808,41845,118,41865),(0|f)<=-1&&br(41869,41845,119,41865),(0|f)>=(0|ar[10396+s>>2])&&br(41869,41845,119,41865),w=0|ar[10380+s>>2],h=(0|sr(n,f))+i|0,0|tr[w+(12*h|0)>>0])if(0|tr[w+(12*h|0)+1>>0]){if(b=0|ar[e+92>>2],0<(0|ar[(n=r+332|0)>>2]))for(f=0;i=92+(0|fs[63&ar[8+(0|ar[A>>2])>>2]](A,0|ar[r+980+(f<<2)>>2]))|0,(i=(0|ar[i>>2])<=(0|b))&(0|(f=f+1|0))<(0|ar[n>>2]););else i=1;if(i&0<(0|ar[(n=r+328|0)>>2]))for(f=0;i=92+(0|fs[63&ar[8+(0|ar[A>>2])>>2]](A,0|ar[r+916+(f<<2)>>2]))|0,(i=(0|ar[i>>2])<=(0|b))&(0|(f=f+1|0))<(0|ar[n>>2]););d=i?c:0|tr[r+372>>0]}else d=0;else d=1;return(k=lr[(k=w+(12*h|0)+4+(d<<2)|0)>>1]|lr[k+2>>1]<<16,b=0|tr[w+(12*h|0)+2+d>>0],n=t>>(i=0|ar[10348+s>>2]),i=o>>i,(0|n)<=-1&&br(41808,41845,118,41865),(0|(f=0|ar[10352+s>>2]))<=(0|n)&&br(41808,41845,118,41865),(0|i)<=-1&&br(41869,41845,119,41865),(0|i)>=(0|ar[10356+s>>2])&&br(41869,41845,119,41865),i=(0|ar[10340+s>>2])+(24*((0|sr(f,i))+n|0)|0)+2|0,i=0|ar[(0|ar[48+s>>2])+(lr[i>>1]<<2)>>2],(0|tr[(n=r+1300+(c<<4)+a|0)>>0])!=(0|tr[i+1300+(d<<4)+b>>0]))?(tr[u>>0]=0,or[l>>1]=0,void(or[l+2>>1]=0)):(tr[u>>0]=1,i=(0|ar[92+s>>2])-(0|ar[i+1044+(d<<6)+(b<<2)>>2])|0,f=(0|ar[e+92>>2])-(0|ar[r+1044+(c<<6)+(a<<2)>>2])|0,0!=(0|tr[n>>0])|(0|i)==(0|f)?(or[l>>1]=k,void(or[l+2>>1]=k>>>16)):(i=(0|i)<-128?-128:(0|i)<127?i:127)?(e=32+(0|sr((16384+(((0|i)<0?0-i|0:i)>>1)|0)/(0|i)|0,(0|f)<-128?-128:(0|f)<127?f:127))>>6,A=0|sr(e=(0|e)<-4096?-4096:(0|e)<4095?e:4095,k<<16>>16),A=0|sr(((c=(0|A)<0)?0-A|0:A)+127>>8,c?-1:0!=(0|A)&1),or[l>>1]=(0|A)<-32768?-32768:65535&((0|A)<32767?A:32767),e=0|sr(e,k>>16),e=0|sr(((A=(0|e)<0)?0-e|0:e)+127>>8,A?-1:0!=(0|e)&1),void(or[l+2>>1]=(0|e)<-32768?-32768:65535&((0|e)<32767?e:32767))):(or[l>>1]=k,or[l+2>>1]=k>>>16,Gr(A+4|0,1008,0),void(tr[e+10516>>0]=3)))}Gr(A+4|0,1026,0),tr[u>>0]=0}function Ho(A,e,r,i,f,n,t,o,a,c,l){A|=0,e|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0;var u,s,b,d=0;if(!(0|tr[(r|=0)+324>>0]))return or[c>>1]=0,or[c+2>>1]=0,void(tr[l>>0]=0);if(b=0|ar[e+5804>>2],d=0|ar[r+20>>2]?0:0==(0|tr[r+372>>0])&1,d=0|ar[r+916+(d<<6)+(ar[r+376>>2]<<2)>>2],!(0|fs[63&ar[12+(0|ar[A>>2])>>2]](A,d)))return or[c>>1]=0,or[c+2>>1]=0,void Gr(A+4|(tr[l>>0]=0),1012,0);if(s=n+i|0,(f>>b|0)==((u=t+f|0)>>b|0)&&(0|s)<(0|ar[e+1248>>2])&&(0|u)<(0|ar[e+1252>>2])){if(Oo(A,e,r,0,0,d,-16&s,-16&u,o,a,c,l),0|tr[l>>0])return}else or[c>>1]=0,or[c+2>>1]=0,tr[l>>0]=0;Oo(A,e,r,0,0,d,(n>>1)+i&-16,(t>>1)+f&-16,o,a,c,l)}function xo(A,e,r,i,f,n,t,o,a,c,l,u,s){A|=0,e|=0,n|=0,t|=0,a|=0,c|=0,l|=0,u|=0,s|=0;var b,d,k,h,w,v,g=0,m=0,p=0;if(m=ur=(v=ur)+31&-32,ur=ur+16|0,w=m+8|0,m=(g=m)+12|0,t=0|function(A,e,r,i,f,n,t,o,a,c,l,u){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0,u|=0;var s,b,d,k,h,w,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0;w=0|ar[(A|=0)+10060>>2],t=e>>(g=0|ar[A+10368>>2]),g=r>>g,(0|t)<=-1&&br(41808,41845,118,41865),(0|(m=0|ar[A+10372>>2]))<=(0|t)&&br(41808,41845,118,41865),(0|g)<=-1&&br(41869,41845,119,41865),(0|g)>=(0|ar[A+10376>>2])&&br(41869,41845,119,41865),p=(0|ar[A+10360>>2])+(3*((0|sr(m,g))+t|0)|0)|0,p=(65535&(cr[p>>0]|cr[p+1>>0]<<8))>>>3,t=(d=a+n|0)-1|0,(h=(0|(b=f>>w))==((k=f+-1|0)>>w|0))&&(n>>w|0)==(t>>w|0)?v=E=0:W=9;A:do{if(9==(0|W)){if(1==(0|c))switch(7&p){case 2:case 6:case 7:v=E=0;break A}if(0|go(A,e,r,i,f,n,o,a,c,k,t)){if(t>>=I=0|ar[A+10388>>2],(0|(m=k>>I))<=-1&&br(41808,41845,118,41865),(0|(g=0|ar[A+10392>>2]))<=(0|m)&&br(41808,41845,118,41865),(0|t)<=-1&&br(41869,41845,119,41865),(0|t)<(0|ar[A+10396>>2])){E=(0|ar[A+10380>>2])+(12*((0|sr(g,t))+m|0)|0)|0,or[l>>1]=0|or[E>>1],or[l+2>>1]=0|or[E+2>>1],or[l+4>>1]=0|or[E+4>>1],or[l+6>>1]=0|or[E+6>>1],or[l+8>>1]=0|or[E+8>>1],or[l+10>>1]=0|or[E+10>>1],v=E=1;break}br(41869,41845,119,41865)}else v=E=0}}while(0);if((0|u)<=(0|v))return 0|(l=v);I=n+-1|0,(0|b)==((t=(s=o+f|0)-1|0)>>w|0)&&(n>>w|0)==(I>>w|0)?C=y=0:W=22;A:do{if(22==(0|W)){if(1==(0|c))switch(7&p){case 1:case 4:case 5:C=y=0;break A}if(0|go(A,e,r,i,f,n,o,a,c,t,I)){t>>=g=0|ar[A+10388>>2],g=I>>g,(0|t)<=-1&&br(41808,41845,118,41865),(0|(m=0|ar[A+10392>>2]))<=(0|t)&&br(41808,41845,118,41865),(0|g)<=-1&&br(41869,41845,119,41865),(0|g)>=(0|ar[A+10396>>2])&&br(41869,41845,119,41865),t=(p=0|ar[A+10380>>2])+(12*(m=(0|sr(m,g))+t|0)|0)|0;do{if(E&&(y=0|tr[l>>0])<<24>>24==(0|tr[t>>0])){if(y<<24>>24){if((0|or[l+4>>1])!=(0|or[p+(12*m|0)+4>>1]))break;if((0|or[l+6>>1])!=(0|or[p+(12*m|0)+6>>1]))break;if((0|tr[l+2>>0])!=(0|tr[p+(12*m|0)+2>>0]))break}if((g=0|tr[l+1>>0])<<24>>24==(0|tr[p+(12*m|0)+1>>0])){if(!(g<<24>>24)){y=1,C=0;break A}if((0|or[l+8>>1])!=(0|or[p+(12*m|0)+8>>1]))break;if((0|or[l+10>>1])!=(0|or[p+(12*m|0)+10>>1]))break;if((0|tr[l+3>>0])==(0|tr[p+(12*m|0)+3>>0])){y=1,C=0;break A}}}}while(0);or[(y=l+(12*v|0)|0)>>1]=0|or[t>>1],or[y+2>>1]=0|or[t+2>>1],or[y+4>>1]=0|or[t+4>>1],or[y+6>>1]=0|or[t+6>>1],or[y+8>>1]=0|or[t+8>>1],or[y+10>>1]=0|or[t+10>>1],v=(C=v)+(y=1)|0}else C=y=0}}while(0);if((0|u)<=(0|v))return 0|(l=v);(0|b)==(s>>w|0)&&(n>>w|0)==(I>>w|0)||(W=47);A:do{if(47==(0|W)&&0|go(A,e,r,i,f,n,o,a,c,s,I)){t=s>>(g=0|ar[A+10388>>2]),g=I>>g,(0|t)<=-1&&br(41808,41845,118,41865),(0|(m=0|ar[A+10392>>2]))<=(0|t)&&br(41808,41845,118,41865),(0|g)<=-1&&br(41869,41845,119,41865),(0|g)>=(0|ar[A+10396>>2])&&br(41869,41845,119,41865),t=(p=0|ar[A+10380>>2])+(12*(m=(0|sr(m,g))+t|0)|0)|0;do{if(y&&(Z=0|tr[l+(12*C|0)>>0])<<24>>24==(0|tr[t>>0])){if(Z<<24>>24){if((0|or[l+(12*C|0)+4>>1])!=(0|or[p+(12*m|0)+4>>1]))break;if((0|or[l+(12*C|0)+6>>1])!=(0|or[p+(12*m|0)+6>>1]))break;if((0|tr[l+(12*C|0)+2>>0])!=(0|tr[p+(12*m|0)+2>>0]))break}if((g=0|tr[l+(12*C|0)+1>>0])<<24>>24==(0|tr[p+(12*m|0)+1>>0])){if(!(g<<24>>24))break A;if((0|or[l+(12*C|0)+8>>1])!=(0|or[p+(12*m|0)+8>>1]))break;if((0|or[l+(12*C|0)+10>>1])!=(0|or[p+(12*m|0)+10>>1]))break;if((0|tr[l+(12*C|0)+3>>0])==(0|tr[p+(12*m|0)+3>>0]))break A}}}while(0);or[(Z=l+(12*v|0)|0)>>1]=0|or[t>>1],or[Z+2>>1]=0|or[t+2>>1],or[Z+4>>1]=0|or[t+4>>1],or[Z+6>>1]=0|or[t+6>>1],or[Z+8>>1]=0|or[t+8>>1],or[Z+10>>1]=0|or[t+10>>1],v=v+1|0}}while(0);if((0|u)<=(0|v))return 0|(l=v);h&&(n>>w|0)==(d>>w|0)||(W=70);A:do{if(70==(0|W)&&0|go(A,e,r,i,f,n,o,a,c,k,d)){m=k>>(t=0|ar[A+10388>>2]),t=d>>t,(0|m)<=-1&&br(41808,41845,118,41865),(0|(g=0|ar[A+10392>>2]))<=(0|m)&&br(41808,41845,118,41865),(0|t)<=-1&&br(41869,41845,119,41865),(0|t)>=(0|ar[A+10396>>2])&&br(41869,41845,119,41865),t=(p=0|ar[A+10380>>2])+(12*(m=(0|sr(g,t))+m|0)|0)|0;do{if(E&&(B=0|tr[l>>0])<<24>>24==(0|tr[t>>0])){if(B<<24>>24){if((0|or[l+4>>1])!=(0|or[p+(12*m|0)+4>>1]))break;if((0|or[l+6>>1])!=(0|or[p+(12*m|0)+6>>1]))break;if((0|tr[l+2>>0])!=(0|tr[p+(12*m|0)+2>>0]))break}if((g=0|tr[l+1>>0])<<24>>24!=(0|tr[p+(12*m|0)+1>>0]))break;if(!(g<<24>>24))break A;if((0|or[l+8>>1])!=(0|or[p+(12*m|0)+8>>1]))break;if((0|or[l+10>>1])!=(0|or[p+(12*m|0)+10>>1]))break;if((0|tr[l+3>>0])==(0|tr[p+(12*m|0)+3>>0]))break A}}while(0);or[(B=l+(12*v|0)|0)>>1]=0|or[t>>1],or[B+2>>1]=0|or[t+2>>1],or[B+4>>1]=0|or[t+4>>1],or[B+6>>1]=0|or[t+6>>1],or[B+8>>1]=0|or[t+8>>1],or[B+10>>1]=0|or[t+10>>1],v=v+1|0}}while(0);if((0|u)<=(0|v)|4==(0|v))return 0|(l=v);if(h&&(n>>w|0)==(I>>w|0))return 0|(l=v);if(!(0|go(A,e,r,i,f,n,o,a,c,k,I)))return 0|(l=v);m=k>>(t=0|ar[A+10388>>2]),t=I>>t,(0|m)<=-1&&br(41808,41845,118,41865),(0|(g=0|ar[A+10392>>2]))<=(0|m)&&br(41808,41845,118,41865),(0|t)<=-1&&br(41869,41845,119,41865),(0|t)>=(0|ar[A+10396>>2])&&br(41869,41845,119,41865),t=(p=0|ar[A+10380>>2])+(12*(m=(0|sr(g,t))+m|0)|0)|0;do{if(y){if((g=0|tr[l+(12*C|0)>>0])<<24>>24!=(0|tr[t>>0]))break;if(g<<24>>24){if((0|or[l+(12*C|0)+4>>1])!=(0|or[p+(12*m|0)+4>>1]))break;if((0|or[l+(12*C|0)+6>>1])!=(0|or[p+(12*m|0)+6>>1]))break;if((0|tr[l+(12*C|0)+2>>0])!=(0|tr[p+(12*m|0)+2>>0]))break}if((g=0|tr[l+(12*C|0)+1>>0])<<24>>24!=(0|tr[p+(12*m|0)+1>>0]))break;if(!(g<<24>>24))return 0|(l=v);if((0|or[l+(12*C|0)+8>>1])!=(0|or[p+(12*m|0)+8>>1]))break;if((0|or[l+(12*C|0)+10>>1])!=(0|or[p+(12*m|0)+10>>1]))break;if((0|tr[l+(12*C|0)+3>>0])!=(0|tr[p+(12*m|0)+3>>0]))break;return 0|v}}while(0);do{if(E){if((g=0|tr[l>>0])<<24>>24!=(0|tr[t>>0]))break;if(g<<24>>24){if((0|or[l+4>>1])!=(0|or[p+(12*m|0)+4>>1]))break;if((0|or[l+6>>1])!=(0|or[p+(12*m|0)+6>>1]))break;if((0|tr[l+2>>0])!=(0|tr[p+(12*m|0)+2>>0]))break}if((g=0|tr[l+1>>0])<<24>>24!=(0|tr[p+(12*m|0)+1>>0]))break;if(!(g<<24>>24))return 0|(l=v);if((0|or[l+8>>1])!=(0|or[p+(12*m|0)+8>>1]))break;if((0|or[l+10>>1])!=(0|or[p+(12*m|0)+10>>1]))break;if((0|tr[l+3>>0])!=(0|tr[p+(12*m|0)+3>>0]))break;return 0|v}}while(0);return or[(l=l+(12*v|0)|0)>>1]=0|or[t>>1],or[l+2>>1]=0|or[t+2>>1],or[l+4>>1]=0|or[t+4>>1],or[l+6>>1]=0|or[t+6>>1],or[l+8>>1]=0|or[t+8>>1],or[l+10>>1]=0|or[t+10>>1],0|(l=v+1|0)}(r|=0,i|=0,f|=0,o|=0,n=(p=8==(0|o)?2<(0|ar[r+10060>>2]):0)?i:n,b=p?f:t,0,d=p?o:a,k=p?o:c,p?0:l,s,h=u+1|0),(0|u)<(0|(ar[w>>2]=t))?i=e+20|0:(Ho(A,r,e,n,b,d,k,0,0,g,m),c=0|tr[m>>0],(tr[(a=m+1|0)>>0]=0)|ar[(i=e+20|0)>>2]?a=0:(Ho(A,r,e,n,b,d,k,0,1,g+4|0,a),c|=a=0|tr[a>>0]),c<<24>>24&&(ar[w>>2]=t+1,p=s+(12*t|0)+4|0,r=0|ar[g>>2],or[p>>1]=r,or[p+2>>1]=r>>>16,p=s+(12*t|0)+8|0,g=0|ar[g+4>>2],or[p>>1]=g,or[p+2>>1]=g>>>16,tr[s+(12*t|0)>>0]=0|tr[m>>0],tr[s+(12*t|0)+1>>0]=a,tr[s+(12*t|0)+2>>0]=0,tr[s+(12*t|0)+3>>0]=0)),(c=0|ar[i>>2])||(function(A,e,r,i,f){A|=0,e|=0,r|=0,f|=0;var n,t,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0;if(1<(0|(n=0|ar[(i|=0)>>2]))&(0|n)<(0|f)){for(t=0|sr(n-1|0,n),u=0;;){if(!((0|(s=0|ar[8144+(u<<2)>>2]))<(0|n)&(0|(b=0|ar[8192+(u<<2)>>2]))<(0|n))){o=4;break}if(d=0|tr[(o=r+(12*s|0)|0)>>0]?0|fs[63&ar[8+(0|ar[A>>2])>>2]](A,0|ar[e+916+(tr[r+(12*s|0)+2>>0]<<2)>>2]):0,k=0|tr[(a=r+(12*b|0)+1|0)>>0]?0|fs[63&ar[8+(0|ar[A>>2])>>2]](A,0|ar[e+980+(tr[r+(12*b|0)+3>>0]<<2)>>2]):0,!(0!=(0|d)|(l=(c=0|tr[o>>0])<<24>>24==0))){o=18;break}if(!(0!=(0|k)|(a=(o=0|tr[a>>0])<<24>>24==0))){o=18;break}do{if(!(l|a)){if((0|ar[d+92>>2])==(0|ar[k+92>>2])&&(0|or[r+(12*s|0)+4>>1])==(0|or[r+(12*b|0)+8>>1])&&(0|or[r+(12*s|0)+6>>1])==(0|or[r+(12*b|0)+10>>1]))break;k=0|ar[i>>2],tr[r+(12*k|0)+2>>0]=0|tr[r+(12*s|0)+2>>0],tr[r+(12*k|0)+3>>0]=0|tr[r+(12*b|0)+3>>0],tr[r+(12*k|0)>>0]=c,tr[r+(12*k|0)+1>>0]=o,d=r+(12*k|0)+4|0,s=lr[(s=r+(12*s|0)+4|0)>>1]|lr[s+2>>1]<<16,or[d>>1]=s,or[d+2>>1]=s>>>16,k=r+(12*k|0)+8|0,d=lr[(d=r+(12*b|0)+8|0)>>1]|lr[d+2>>1]<<16,or[k>>1]=d,or[k+2>>1]=d>>>16,ar[i>>2]=1+(0|ar[i>>2])}}while(0);if((0|(u=u+1|0))==(0|t)){o=18;break}if((0|ar[i>>2])==(0|f)){o=18;break}}if(4==(0|o))br(49065,41754,1360,41963);else if(18==(0|o));}}(A,e,s,w,h),c=0|ar[i>>2]),t=0|ar[(a=e+328|0)>>2],1!=(0|c)&&(t=0|ar[((0|t)<(0|ar[(p=e+332|0)>>2])?a:p)>>2]),(0|u)<(0|(a=0|ar[w>>2])))ur=v;else{for(l=0;n=1==(0|c),p=(0|l)<(0|t)?255&l:0,tr[s+(12*a|0)+2>>0]=p,tr[s+(12*a|0)+3>>0]=n?-1:p,tr[s+(12*a|0)>>0]=1,tr[s+(12*a|0)+1>>0]=1&(1^n),or[(p=n=s+(12*a|0)+4|0)>>1]=0,or[p+2>>1]=0,or[(n=n+4|0)>>1]=0,n=a+1|(or[n+2>>1]=0),!((0|u)<=(0|a));)l=l+1|0,c=0|ar[i>>2],a=n;ar[w>>2]=n,ur=v}}function jo(A,e,r,i,f,n,t,o,a,c,l,u,s,b){b|=0;var d,k=0,h=0,w=0,v=0,g=0;if(g=ur=(d=ur)+31&-32,ur=ur+32|0,v=g+16|0,function(A,e,r,i,f,n,t,o,a,c,l,u,s,b,d){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,o|=0,a|=0,c|=0,l|=0,u|=0,s|=0,d|=0;var k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_=0,F=0,N=0,R=0,Y=0,J=0,D=0,Q=0,T=0,M=0,S=0,U=0,O=0,H=0,x=0,j=0,z=0,P=0,L=0,K=0,q=0;if(P=ur=(X=ur)+31&-32,ur=ur+48|0,v=P+32|0,g=P+24|0,m=P+44|0,E=P+12|0,P=(G=P)+40|0,p=(t|=0)+-1|(tr[(V=(b|=0)+1|0)>>0]=0),ar[v>>2]=p,z=c+o|0,ar[g>>2]=z,ar[4+v>>2]=p,L=z+-1|0,ar[4+g>>2]=L,tr[b>>0]=0,or[d>>1]=0,F=1&(z=(or[(U=d+2|0)>>1]=0)|go(e,i,f,n,t,o,a,c,s,p,z)),tr[m>>0]=F,L=0|go(e,i,f,n,t,o,a,c,s,p,L),tr[1+m>>0]=1&L,z|=L,L=r+916+(l<<6)+(u<<2)|0,_=0|fs[63&ar[8+(0|ar[A>>2])>>2]](A,0|ar[L>>2])){y=0|ar[_+92>>2],T=e+10368|0,k=e+10372|0,h=e+10376|0,w=e+10360|0,Z=1-l|0,C=e+10388|0,W=e+10392|0,I=e+10396|0,B=e+10380|0,D=-1,Q=0,_=F;A:for(;;){do{if(_<<24>>24!=0&&0==(0|tr[b>>0])){if(_=0|ar[v+(Q<<2)>>2],Y=0|ar[g+(Q<<2)>>2],F=_>>(N=0|ar[T>>2]),N=Y>>N,(0|F)<=-1){_=8;break A}if((0|(R=0|ar[k>>2]))<=(0|F)){_=8;break A}if((0|N)<=-1){_=11;break A}if((0|N)>=(0|ar[h>>2])){_=11;break A}if(j=(0|ar[w>>2])+(3*((0|sr(R,N))+F|0)|0)|0,768&(cr[j>>0]|cr[j+1>>0]<<8)){if(N=_>>(j=0|ar[C>>2]),_=Y>>j,(0|N)<=-1){_=15;break A}if((0|(F=0|ar[W>>2]))<=(0|N)){_=15;break A}if((0|_)<=-1){_=18;break A}if((0|_)>=(0|ar[I>>2])){_=18;break A}if(J=0|ar[B>>2],R=(0|sr(F,_))+N|0,_=0|tr[(Y=J+(12*R|0)+l|0)>>0]?0|fs[63&ar[8+(0|ar[A>>2])>>2]](A,0|ar[r+916+(l<<6)+(tr[J+(12*R|0)+2+l>>0]<<2)>>2]):0,F=0|tr[(N=J+(12*R|0)+Z|0)>>0]?0|fs[63&ar[8+(0|ar[A>>2])>>2]](A,0|ar[r+916+(Z<<6)+(tr[J+(12*R|0)+2+Z>>0]<<2)>>2]):0,0!=(0|_)&0!=(0|tr[Y>>0])&&(0|ar[_+92>>2])==(0|y)){tr[b>>0]=1,F=lr[(F=J+(12*R|0)+4+(l<<2)|0)>>1]|lr[F+2>>1]<<16,or[d>>1]=F,or[d+2>>1]=F>>>16,F=0|tr[J+(12*R|0)+2+l>>0];break}F=0!=(0|F)&0!=(0|tr[N>>0])&&(0|ar[F+92>>2])==(0|y)?(tr[b>>0]=1,F=lr[(F=J+(12*R|0)+4+(Z<<2)|0)>>1]|lr[F+2>>1]<<16,or[d>>1]=F,or[d+2>>1]=F>>>16,0|tr[J+(12*R|0)+2+Z>>0]):D}else F=D}else F=D}while(0);if(2<=(0|(_=Q+1|0))){_=3;break}D=F,_=0|tr[m+(Q=_)>>0]}if(3==(0|_)){O=r+1300+(l<<4)+u|0,H=e+92|0,x=A+4|0,j=e+10516|0,D=0,R=F;A:for(;;){if(0|tr[b>>0]){_=62;break}do{if(0|tr[m+D>>0]){if(_=0|ar[v+(D<<2)>>2],J=0|ar[g+(D<<2)>>2],F=_>>(N=0|ar[T>>2]),N=J>>N,(0|F)<=-1){_=35;break A}if((0|(Y=0|ar[k>>2]))<=(0|F)){_=35;break A}if((0|N)<=-1){_=38;break A}if((0|N)>=(0|ar[h>>2])){_=38;break A}if(u=(0|ar[w>>2])+(3*((0|sr(Y,N))+F|0)|0)|0,768&(cr[u>>0]|cr[u+1>>0]<<8)){if(N=_>>(u=0|ar[C>>2]),_=J>>u,(0|N)<=-1){_=42;break A}if((0|(F=0|ar[W>>2]))<=(0|N)){_=42;break A}if((0|_)<=-1){_=45;break A}if((0|_)>=(0|ar[I>>2])){_=45;break A}if(Y=0|ar[B>>2],_=(0|sr(F,_))+N|0,1==(0|tr[Y+(12*_|0)+l>>0])&&(M=Y+(12*_|0)+2+l|0,(0|tr[O>>0])==(0|tr[(0|tr[M>>0])+(r+1300+(l<<4))>>0]))){tr[b>>0]=1,F=lr[(F=Y+(12*_|0)+4+(l<<2)|0)>>1]|lr[F+2>>1]<<16,or[d>>1]=F,or[d+2>>1]=F>>>16,F=l,R=0|tr[M>>0];break}1==(0|tr[Y+(12*_|0)+Z>>0])&&(S=Y+(12*_|0)+2+Z|0,(0|tr[O>>0])==(0|tr[(0|tr[S>>0])+(r+1300+(Z<<4))>>0]))?(tr[b>>0]=1,F=lr[(F=Y+(12*_|0)+4+(Z<<2)|0)>>1]|lr[F+2>>1]<<16,or[d>>1]=F,or[d+2>>1]=F>>>16,F=Z,R=0|tr[S>>0]):F=-1}else F=-1}else F=-1}while(0);do{if(1==(0|tr[b>>0])){if((0|R)<0){_=61;break A}if((0|F)<=-1){_=55;break A}if(_=0|fs[63&ar[8+(0|ar[A>>2])>>2]](A,0|ar[r+916+(F<<6)+(R<<2)>>2]),fs[63&ar[8+(0|ar[A>>2])>>2]](A,0|ar[L>>2]),!((tr[O>>0]|tr[r+1300+(F<<4)+R>>0])<<24>>24)){if(N=(F=0|ar[H>>2])-(0|ar[_+92>>2])|0,_=F-y|0,F=lr[d>>1]|lr[d+2>>1]<<16,N=(0|N)<-128?-128:(0|N)<127?N:127){u=32+(0|sr((16384+(((0|N)<0?0-N|0:N)>>1)|0)/(0|N)|0,(0|_)<-128?-128:(0|_)<127?_:127))>>6,Q=0|sr(u=(0|u)<-4096?-4096:(0|u)<4095?u:4095,F<<16>>16),Q=0|sr(((J=(0|Q)<0)?0-Q|0:Q)+127>>8,J?-1:0!=(0|Q)&1),or[d>>1]=(0|Q)<-32768?-32768:65535&((0|Q)<32767?Q:32767),u=0|sr(u,F>>16),u=0|sr(((Q=(0|u)<0)?0-u|0:u)+127>>8,Q?-1:0!=(0|u)&1),or[U>>1]=(0|u)<-32768?-32768:65535&((0|u)<32767?u:32767);break}Gr(x,1008,0),tr[j>>0]=3;break}}}while(0);if(2<=(0|(D=D+1|0))){_=62;break}}if(35==(0|_))br(41808,41845,118,41865);else if(38==(0|_))br(41869,41845,119,41865);else if(42==(0|_))br(41808,41845,118,41865);else if(45==(0|_))br(41869,41845,119,41865);else if(55==(0|_))br(42011,41754,1698,42025);else{if(61==(0|_))return tr[V>>0]=0,tr[b>>0]=0,ur=X;if(62==(0|_)){_=a+t|0,ar[E>>2]=_,F=o+-1|0,ar[G>>2]=F,ar[4+E>>2]=_+-1,ar[G+4>>2]=F,ar[8+E>>2]=p,ar[G+8>>2]=F,tr[V>>0]=0,or[(u=d+4|0)>>1]=0,Y=-1,Q=or[(T=d+6|0)>>1]=0;A:for(;;){U=0|go(e,i,f,n,t,o,a,c,s,_,F),tr[P+Q>>0]=1&U;do{if(U&&0==(0|tr[V>>0])){if(N=_>>(U=0|ar[C>>2]),_=F>>U,(0|N)<=-1){_=68;break A}if((0|(F=0|ar[W>>2]))<=(0|N)){_=68;break A}if((0|_)<=-1){_=71;break A}if((0|_)>=(0|ar[I>>2])){_=71;break A}if(D=0|ar[B>>2],N=(0|sr(F,_))+N|0,F=0|tr[(R=D+(12*N|0)+l|0)>>0]?0|fs[63&ar[8+(0|ar[A>>2])>>2]](A,0|ar[r+916+(l<<6)+(tr[D+(12*N|0)+2+l>>0]<<2)>>2]):0,_=0|tr[(J=D+(12*N|0)+Z|0)>>0]?0|fs[63&ar[8+(0|ar[A>>2])>>2]](A,0|ar[r+916+(Z<<6)+(tr[D+(12*N|0)+2+Z>>0]<<2)>>2]):0,0!=(0|F)&0!=(0|tr[R>>0])&&(0|ar[F+92>>2])==(0|y)){tr[V>>0]=1,Y=lr[(Y=D+(12*N|0)+4+(l<<2)|0)>>1]|lr[Y+2>>1]<<16,or[u>>1]=Y,or[u+2>>1]=Y>>>16,Y=0|tr[D+(12*N|0)+2+l>>0];break}0!=(0|_)&0!=(0|tr[J>>0])&&(0|ar[_+92>>2])==(0|y)&&(tr[V>>0]=1,Y=lr[(Y=D+(12*N|0)+4+(Z<<2)|0)>>1]|lr[Y+2>>1]<<16,or[u>>1]=Y,or[u+2>>1]=Y>>>16,Y=0|tr[D+(12*N|0)+2+Z>>0])}}while(0);if(3<=(0|(F=Q+1|0))){_=63;break}_=0|ar[E+((Q=F)<<2)>>2],F=0|ar[G+(F<<2)>>2]}if(63==(0|_)){A:do{if(!z){0|tr[V>>0]&&(tr[b>>0]=1,z=lr[u>>1]|lr[u+2>>1]<<16,or[d>>1]=z,or[d+2>>1]=z>>>16),D=e+10332|(tr[V>>0]=0),J=0;e:for(;;){do{if(0|tr[P+J>>0]){if(F=0|ar[C>>2],_=ar[E+(J<<2)>>2]>>F,F=ar[G+(J<<2)>>2]>>F,(0|_)<=-1){_=90;break e}if((0|(N=0|ar[W>>2]))<=(0|_)){_=90;break e}if((0|F)<=-1){_=93;break e}if((0|F)>=(0|ar[I>>2])){_=93;break e}if(R=0|ar[B>>2],_=(0|sr(N,F))+_|0,1==(0|tr[R+(12*_|0)+l>>0])&&(K=R+(12*_|0)+2+l|0,(0|tr[O>>0])==(0|tr[(0|tr[K>>0])+(r+1300+(l<<4))>>0]))){tr[V>>0]=1,N=lr[(N=R+(12*_|0)+4+(l<<2)|0)>>1]|lr[N+2>>1]<<16,or[u>>1]=N,or[u+2>>1]=N>>>16,N=l,Y=0|tr[K>>0];break}1==(0|tr[R+(12*_|0)+Z>>0])&&(q=R+(12*_|0)+2+Z|0,(0|tr[O>>0])==(0|tr[(0|tr[q>>0])+(r+1300+(Z<<4))>>0]))?(tr[V>>0]=1,N=lr[(N=R+(12*_|0)+4+(Z<<2)|0)>>1]|lr[N+2>>1]<<16,or[u>>1]=N,or[u+2>>1]=N>>>16,N=Z,Y=0|tr[q>>0]):N=-1}else N=-1}while(0);do{if(1==(0|tr[V>>0])){if((0|Y)<0){_=110;break e}if((0|N)<=-1){_=103;break e}if(0==(0|(_=0|fs[63&ar[8+(0|ar[A>>2])>>2]](A,0|ar[r+916+(N<<6)+(Y<<2)>>2])))|0==(0|(F=0|fs[63&ar[8+(0|ar[A>>2])>>2]](A,0|ar[L>>2])))){Gr(4+(0|ar[D>>2])|0,1012,0),tr[j>>0]=3;break}if((0|(_=0|ar[_+92>>2]))!=(0|ar[F+92>>2])&&(tr[r+1300+(N<<4)+Y>>0]|tr[O>>0])<<24>>24==0){if(N=(F=0|ar[H>>2])-_|0,_=F-y|0,F=lr[u>>1]|lr[u+2>>1]<<16,N=(0|N)<-128?-128:(0|N)<127?N:127){z=32+(0|sr((16384+(((0|N)<0?0-N|0:N)>>1)|0)/(0|N)|0,(0|_)<-128?-128:(0|_)<127?_:127))>>6,c=0|sr(z=(0|z)<-4096?-4096:(0|z)<4095?z:4095,F<<16>>16),c=0|sr(((a=(0|c)<0)?0-c|0:c)+127>>8,a?-1:0!=(0|c)&1),or[u>>1]=(0|c)<-32768?-32768:65535&((0|c)<32767?c:32767),z=0|sr(z,F>>16),z=0|sr(((c=(0|z)<0)?0-z|0:z)+127>>8,c?-1:0!=(0|z)&1),or[T>>1]=(0|z)<-32768?-32768:65535&((0|z)<32767?z:32767);break}Gr(x,1008,0),tr[j>>0]=3;break}}}while(0);if(3<=(0|(J=J+1|0)))break A;if(0|tr[V>>0])break A}if(90==(0|_))br(41808,41845,118,41865);else if(93==(0|_))br(41869,41845,119,41865);else if(103==(0|_))br(42011,41754,1839,42025);else if(110==(0|_)){tr[V>>0]=0,tr[b>>0]=0;break}}}while(0);return ur=X}68==(0|_)?br(41808,41845,118,41865):71==(0|_)&&br(41869,41845,119,41865)}}}else 8==(0|_)?br(41808,41845,118,41865):11==(0|_)?br(41869,41845,119,41865):15==(0|_)?br(41808,41845,118,41865):18==(0|_)&&br(41869,41845,119,41865)}else ur=X}(A|=0,r|=0,e|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0,u|=0,s|=0,h=g+18|0,w=g+8|0),0|tr[h>>0]){do{if(0|tr[h+1>>0]){if((0|or[w>>1])==(0|or[w+4>>1])&&(0|or[w+2>>1])==(0|or[w+6>>1])){k=6;break}tr[v>>0]=0}else k=6}while(0);6==(0|k)&&Ho(A,r,e,t,o,a,c,u,l,g,v),A=0|ar[w>>2],or[b>>1]=A,or[b+2>>1]=A>>>16,e=A=1}else Ho(A,r,e,t,o,a,c,u,l,g,v),e=A=0;do{if(0|tr[h+1>>0]){if(e&&(0|or[w>>1])==(0|or[w+4>>1])&&(0|or[w+2>>1])==(0|or[w+6>>1]))break;h=b+(A<<2)|0,w=0|ar[w+4>>2],or[h>>1]=w,or[h+2>>1]=w>>>16,A=A+1|0}}while(0);if(0|tr[v>>0]&&(v=b+(A<<2)|0,g=0|ar[g>>2],or[v>>1]=g,or[v+2>>1]=g>>>16,A=A+1|0),(0|A)<2)return Vu(b+(A<<2)|0,0,8-(A<<2)|0),void(ur=d);2!=(0|A)?br(42063,41754,1943,42079):ur=d}function zo(A,e,r,i,f,n,t,o,a,c,l,u){var s,b;b=ur=(s=ur)+31&-32,ur=ur+16|0,function(A,e,r,i,f,n,t,o,a,c,l,u,s){A|=0,e|=0,i|=0,a|=0,c|=0,l|=0,u|=0,s|=0;var b,d,k,h,w,v=0,g=0,m=0;switch(d=ur=(w=ur)+31&-32,ur=ur+80|0,h=8+d|0,k=(t|=0)+(f|=0)|0,b=(o|=0)+(n|=0)|0,t=f>>(o=0|ar[(r|=0)+10368>>2]),o=n>>o,(0|t)<=-1&&br(41808,41845,118,41865),(0|(v=0|ar[r+10372>>2]))<=(0|t)&&br(41808,41845,118,41865),(0|o)<=-1&&br(41869,41845,119,41865),(0|o)>=(0|ar[r+10376>>2])&&br(41869,41845,119,41865),v=(0|ar[r+10360>>2])+(3*((0|sr(v,o))+t|0)|0)|0,(65535&(cr[v>>0]|cr[v+1>>0]<<8))>>>8&3){case 2:t=0|tr[i+10>>0],m=11;break;case 1:16&(t=0|tr[(o=i+10|0)>>0])?m=11:t=o;break;default:t=i+10|0}if(11==(0|m))return xo(A,e,r,f,n,k,b,a,c,l,u,m=(255&t)>>>5&255,h),m=h+(12*m|0)|0,or[s>>1]=0|or[m>>1],or[s+2>>1]=0|or[m+2>>1],or[s+4>>1]=0|or[m+4>>1],or[s+6>>1]=0|or[m+6>>1],or[s+8>>1]=0|or[m+8>>1],or[s+10>>1]=0|or[m+10>>1],0|tr[s>>0]&&12==(l+c|0)&0!=(0|tr[(g=s+1|0)>>0])&&(tr[s+3>>0]=-1,tr[g>>0]=0),ur=w;switch(3&tr[t>>0]){case 1:case 3:v=0|tr[i>>0],tr[s+2>>0]=v,tr[s>>0]=1,m=0|lr[i+4>>1],g=0|lr[i+2>>1],jo(A,e,r,f,n,a,k,b,c,l,0,v<<24>>24,u,h),v=h+(((0|cr[t>>0])>>>2&1)<<2)|0,v=lr[v>>1]|lr[v+2>>1]<<16,ar[d>>2]=v,m=(0|lr[2+d>>1])+m|0,or[s+4>>1]=v+g,or[s+6>>1]=m;break;default:tr[s+2>>0]=-1,tr[s>>0]=0}((3&tr[t>>0])-2&255)<2?(v=0|tr[i+1>>0],tr[s+3>>0]=v,tr[s+1>>0]=1,m=0|lr[i+8>>1],g=0|lr[i+6>>1],jo(A,e,r,f,n,a,k,b,c,l,1,v<<24>>24,u,h),c=h+(((0|cr[t>>0])>>>3&1)<<2)|0,c=lr[c>>1]|lr[c+2>>1]<<16,ar[4+d>>2]=c,m=(0|lr[6+d>>1])+m|0,or[s+8>>1]=c+g,or[s+10>>1]=m):(tr[s+3>>0]=-1,tr[s+1>>0]=0),ur=w}(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0,u|=0,b),function(A,e,r,i,f,n,t,o,a,c,l){A|=0,e|=0,o|=0,a|=0,c|=0,l|=0;var u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W=0,I=0,B=0,E=0,G=0,V=0,X=0,_=0,F=0,N=0,R=0,Y=0,J=0,D=0,Q=0,T=0,M=0,S=0;ur=(C=ur)+49168|0,w=C+32768|0,Y=(Z=C)+49152|0,N=(n|=0)+(i|=0)|0,X=(t|=0)+(f|=0)|0,_=(r|=0)+764|0,v=0|ar[r+5780>>2],g=0|ar[r+5784>>2],k=0|ar[r+40>>2],Q=(0|sr(k,X))+N|0,Q=(0|ar[r+4>>2])+(Q<<cr[r+16>>0])|0,m=0|ar[r+44>>2],T=(0|sr(m,(0|X)/(0|g)|0))+((0|N)/(0|v)|0)|0,p=(0|ar[r+8>>2])+(T<<cr[r+17>>0])|0,T=(0|ar[r+12>>2])+(T<<cr[r+18>>0])|0,f=255&(u=0|tr[l>>0]),ar[Y>>2]=f,i=255&(D=0|tr[l+1>>0]),ar[(n=Y+4|0)>>2]=i,h=0|ar[(F=r+5760|0)>>2],y=0|ar[(R=r+5768|0)>>2],d=u<<24>>24==0,D<<24>>24==0|0!=(0|tr[(s=r+5961|0)>>0])|d||(0|or[l+4>>1])!=(0|or[l+8>>1])||(0|or[l+6>>1])!=(0|or[l+10>>1])||(0|ar[e+916+(tr[l+2>>0]<<2)>>2])!=(0|ar[e+980+(tr[l+3>>0]<<2)>>2])||(i=ar[n>>2]=0),b=r+10516|0,D=A+4|0,V=0,n=f;A:for(;;){do{if(0|n){if(15<(n=0|tr[l+2+V>>0])<<24>>24){J=9;break A}if(G=0|fs[63&ar[8+(0|ar[A>>2])>>2]](A,0|ar[e+916+(V<<6)+(n<<24>>24<<2)>>2]),!(0|ar[G+96>>2])){tr[b>>0]=3,Gr(D,1012,0);break}if(n=0|or[(B=l+4+(V<<2)|0)>>1],f=0|or[(E=l+4+(V<<2)+2|0)>>1],t=w+(V<<13)|0,W=0|ar[G+4>>2],I=0|ar[G+40>>2],(8<(0|ar[F>>2])?To:Mo)(A,_,n,f,N,X,t,o,W,I,a,c,h),n=0|or[B>>1],f=0|or[E>>1],t=Z+(V<<13)|0,W=0|ar[G+8>>2],8<(0|ar[F>>2])){M=(0|a)/(0|v)|0,I=(0|c)/(0|g)|0,So(A,_,n,f,N,X,t,o,W,0|ar[(S=G+44|0)>>2],M,I,y),So(A,_,0|or[B>>1],0|or[E>>1],N,X,Z+16384+(V<<13)|0,o,0|ar[G+12>>2],0|ar[S>>2],M,I,y);break}M=(0|a)/(0|v)|0,S=(0|c)/(0|g)|0,Uo(A,_,n,f,N,X,t,o,W,0|ar[(I=G+44|0)>>2],M,S,y),Uo(A,_,0|or[B>>1],0|or[E>>1],N,X,Z+16384+(V<<13)|0,o,0|ar[G+12>>2],0|ar[I>>2],M,S,y);break}}while(0);if(2<=(0|(n=V+1|0)))break;n=0|ar[Y+((V=n)<<2)>>2]}if(9==(0|J))return tr[b>>0]=3,Gr(D,1012,0),ur=C;switch(f=2<(0|(f=14-(0|ar[F>>2])|0))?f:2,X=0|cr[r+5920>>0],B=2<(0|(B=14-(0|ar[R>>2])|0))?B:2,Y=0|cr[r+5921>>0],0|ar[e+20>>2]){case 1:return i=u<<24>>24==1&0==(0|i),0|tr[s>>0]?i?(S=0|tr[l+2>>0],t=(0|cr[e+380>>0])+f|0,E=(0|cr[e+381>>0])+B|0,n=0|or[e+446+(S<<1)>>1],i=tr[e+510+S>>0]<<X,W=0|or[e+542+(S<<2)>>1],I=tr[e+670+(S<<1)>>0]<<Y,B=0|or[e+542+(S<<2)+2>>1],f=tr[e+670+(S<<1)+1>>0]<<Y,(0|h)<9?ys[3&ar[A+180>>2]](Q,k,w,o,a,c,n,i,t):Zs[7&ar[A+196>>2]](Q,k,w,o,a,c,n,i,t,h),n=(0|a)/(0|v)|0,i=(0|c)/(0|g)|0,(0|y)<9?(ys[3&ar[(S=A+180|0)>>2]](p,m,Z,o,n,i,W,I,E),ys[3&ar[S>>2]](T,m,Z+16384|0,o,n,i,B,f,E)):(Zs[7&ar[(S=A+196|0)>>2]](p,m,Z,o,n,i,W,I,E,y),Zs[7&ar[S>>2]](T,m,Z+16384|0,o,n,i,B,f,E,y))):(Gr(D,1011,0),tr[b>>0]=3):i?((0|h)<9?gs[15&ar[A+176>>2]](Q,k,w,o,a,c):ms[31&ar[A+192>>2]](Q,k,w,o,a,c,h),n=(0|a)/(0|v)|0,i=(0|c)/(0|g)|0,(0|y)<9?(gs[15&ar[(S=A+176|0)>>2]](p,m,Z,o,n,i),gs[15&ar[S>>2]](T,m,Z+16384|0,o,n,i)):(ms[31&ar[(S=A+192|0)>>2]](p,m,Z,o,n,i,y),ms[31&ar[S>>2]](T,m,Z+16384|0,o,n,i,y))):(Gr(D,1011,0),tr[b>>0]=3),ur=C;case 0:return(n=u<<24>>24==1)&(i=1==(0|i))?0|tr[r+5962>>0]?(_=0|tr[l+2>>0],i=0|tr[l+3>>0],I=(0|cr[e+380>>0])+f|0,R=(0|cr[e+381>>0])+B|0,f=0|or[e+446+(_<<1)>>1],t=tr[e+510+_>>0]<<X,W=0|or[e+478+(i<<1)>>1],n=tr[e+526+i>>0]<<X,E=0|or[e+542+(_<<2)>>1],G=tr[e+670+(_<<1)>>0]<<Y,V=0|or[e+542+(_<<2)+2>>1],X=tr[e+670+(_<<1)+1>>0]<<Y,_=0|or[e+606+(i<<2)>>1],F=tr[e+702+(i<<1)>>0]<<Y,N=0|or[e+606+(i<<2)+2>>1],B=tr[e+702+(i<<1)+1>>0]<<Y,i=8192+w|0,(0|h)<9?Cs[1&ar[A+184>>2]](Q,k,w,i,o,a,c,f,t,W,n,I):Ws[1&ar[A+200>>2]](Q,k,w,i,o,a,c,f,t,W,n,I,h),f=Z+8192|0,t=Z+16384|0,W=Z+24576|0,n=(0|a)/(0|v)|0,i=(0|c)/(0|g)|0,(0|y)<9?(Cs[1&ar[(S=A+184|0)>>2]](p,m,Z,f,o,n,i,E,G,_,F,R),Cs[1&ar[S>>2]](T,m,t,W,o,n,i,V,X,N,B,R)):(Ws[1&ar[(S=A+200|0)>>2]](p,m,Z,f,o,n,i,E,G,_,F,R,y),Ws[1&ar[S>>2]](T,m,t,W,o,n,i,V,X,N,B,R,y))):(i=8192+w|0,I=A+172|0,(0|h)<9?ms[31&ar[I>>2]](Q,k,w,i,o,a,c):ps[31&ar[A+188>>2]](Q,k,w,i,o,a,c,h),f=Z+8192|0,t=Z+16384|0,W=Z+24576|0,n=(0|a)/(0|v)|0,i=(0|c)/(0|g)|0,(0|y)<9?(ms[31&ar[I>>2]](p,m,Z,f,o,n,i),ms[31&ar[I>>2]](T,m,t,W,o,n,i)):(ps[31&ar[(S=A+188|0)>>2]](p,m,Z,f,o,n,i,y),ps[31&ar[S>>2]](T,m,t,W,o,n,i,y))):n|i?(V=1&d,0|tr[r+5962>>0]?(t=0|tr[l+2+V>>0],W=(0|cr[e+380>>0])+f|0,G=(0|cr[e+381>>0])+B|0,f=0|or[e+446+(V<<5)+(t<<1)>>1],n=tr[e+510+(V<<4)+t>>0]<<X,I=0|or[e+542+(V<<6)+(t<<2)>>1],B=tr[e+670+(V<<5)+(t<<1)>>0]<<Y,E=0|or[e+542+(V<<6)+(t<<2)+2>>1],t=tr[e+670+(V<<5)+(t<<1)+1>>0]<<Y,i=w+(V<<13)|0,(0|h)<9?ys[3&ar[A+180>>2]](Q,k,i,o,a,c,f,n,W):Zs[7&ar[A+196>>2]](Q,k,i,o,a,c,f,n,W,h),f=Z+(V<<13)|0,n=(0|a)/(0|v)|0,i=(0|c)/(0|g)|0,(0|y)<9?(ys[3&ar[(S=A+180|0)>>2]](p,m,f,o,n,i,I,B,G),ys[3&ar[S>>2]](T,m,Z+16384+(V<<13)|0,o,n,i,E,t,G)):(Zs[7&ar[(S=A+196|0)>>2]](p,m,f,o,n,i,I,B,G,y),Zs[7&ar[S>>2]](T,m,Z+16384+(V<<13)|0,o,n,i,E,t,G,y))):(i=w+(V<<13)|0,(0|h)<9?gs[15&ar[A+176>>2]](Q,k,i,o,a,c):ms[31&ar[A+192>>2]](Q,k,i,o,a,c,h),f=Z+(V<<13)|0,n=(0|a)/(0|v)|0,i=(0|c)/(0|g)|0,(0|y)<9?(gs[15&ar[(S=A+176|0)>>2]](p,m,f,o,n,i),gs[15&ar[S>>2]](T,m,Z+16384+(V<<13)|0,o,n,i)):(ms[31&ar[(S=A+192|0)>>2]](p,m,f,o,n,i,y),ms[31&ar[S>>2]](T,m,Z+16384+(V<<13)|0,o,n,i,y)))):(Gr(D,1011,0),tr[b>>0]=3),ur=C;default:br(41721,41754,489,41764)}}(A,e,r,f,n,t,o,a,c,l,b),function(A,e,r,i,f,n){var t,o,a,c,l;if(n|=0,l=(e|=0)>>2,c=(r|=0)>>2,a=(i|=0)>>2,o=(f|=0)>>2,t=0|ar[(A|=0)+10392>>2],!((0|o)<=0)&&(i=A+10380|0,0<(0|a))){e=0;do{for(f=(0|sr(e+c|0,t))+l|0,r=0;A=(0|ar[i>>2])+(12*(f+r|0)|0)|0,or[A>>1]=0|or[n>>1],or[A+2>>1]=0|or[n+2>>1],or[A+4>>1]=0|or[n+4>>1],or[A+6>>1]=0|or[n+6>>1],or[A+8>>1]=0|or[n+8>>1],or[A+10>>1]=0|or[n+10>>1],(0|(r=r+1|0))!=(0|a););e=e+1|0}while((0|e)!=(0|o))}}(r,t+f|0,o+n|0,c,l,b),ur=s}function Po(A){var e;for(e=(A|=0)+100|0;(0|(A=A+2|(or[A>>1]=0)))<(0|e););}function Lo(A,e,r,i,f,n,t){A|=0,e|=0,r|=0,i|=0,n|=0,t|=0;var o,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0;if(o=ur,0!=(0|(f|=0))&&(255&(0|at(r,1)))<<24>>24!=0){do{if(t){if(-99999!=(0|(t=0|ut(r)))&(0|t)<(0|f)){t=t+1|0;break}return ur=o,(i=0)|i}t=1}while(0);if((0|(I=f-t|0))<=-1&&br(42114,42122,129,42132),l=0|at(r,1),-99999==(0|(t=0|ut(r))))return ur=o,(i=0)|i;for(u=t+1|0,a=~t,Z=0|cr[(0|ar[n>>2])+(100*I|0)+98>>0],ur=(W=ur=(C=ur)+(15+(0|+(c=Z+1|0))&-16)|0)+(15+(0|+c)&-16)|0,t=0;y=255&(0|at(r,1)),f=(tr[C+t>>0]=y)<<24>>24?1:255&(0|at(r,1)),tr[W+t>>0]=f,(0|(t=t+1|0))!=(0|c););m=0|l?a:u,t=0|ar[n>>2],p=255&(u=0|tr[t+(100*I|0)+96>>0]),y=255&(w=0|tr[t+(100*I|0)+97>>0]),w=w<<24>>24==0;A:do{if(w)d=0;else{I>>>0<(((0|ar[(l=n+4|0)>>2])-t|0)/100|0)>>>0?(s=y,k=0,b=t):br(42160,42122,174,42132);e:for(;;){for(t=s;;){if(a=t+-1|0,17<=(0|t)){E=18;break e}if((0|(f=(0|or[b+(100*I|0)+32+(a<<1)>>1])+m|0))<0&&0|tr[W+(h=a+p|0)>>0])break;if(!(1<(0|t))){d=k;break A}t=a}if(15<(0|k)){v=0,E=74;break}if(c=k+1|0,or[i+(k<<1)>>1]=f,tr[i+64+k>>0]=0|tr[C+h>>0],(0|t)<=1){d=c;break A}if(t=0|ar[n>>2],!(I>>>0<(((0|ar[l>>2])-t|0)/100|0)>>>0)){E=17;break}s=a,k=c,b=t}if(17==(0|E))br(42160,42122,174,42132);else if(18==(0|E))br(42192,42122,175,42132);else if(74==(0|E))return ur=o,0|v}}while(0);do{if((0|m)<0&&0!=(0|tr[W+Z>>0])){if(15<(0|d))return ur=o,(i=0)|i;or[i+(d<<1)>>1]=m,tr[i+64+d>>0]=0|tr[C+Z>>0],t=d+1|0;break}t=d}while(0);c=u<<24>>24==0;A:do{if(c)tr[(u=i+96|0)>>0]=t,t=0;else{for(a=0;;){if((0|(f=(0|or[(0|ar[n>>2])+(100*I|0)+(a<<1)>>1])+m|0))<0&&0!=(0|tr[W+a>>0])){if(15<(0|t)){v=0,E=74;break}or[i+(t<<1)>>1]=f,tr[i+64+t>>0]=0|tr[C+a>>0],g=t+1|0}else g=t;if((0|p)<=(0|(a=a+1|0)))break;t=g}if(74==(0|E))return ur=o,0|v;if(tr[(u=i+96|0)>>0]=g,!c){for(f=p,t=0;;){for(c=0|ar[n>>2],a=f;!(0<(0|(l=(0|or[c+(100*I|0)+((f=a+-1|0)<<1)>>1])+m|0))&&0|tr[W+f>>0]);){if(!(1<(0|a)))break A;a=f}if(15<(0|t)){v=0;break}if(c=t+1|0,or[i+32+(t<<1)>>1]=l,tr[i+80+t>>0]=0|tr[C+f>>0],!(1<(0|a))){t=c;break A}t=c}return ur=o,0|v}t=0}}while(0);do{if(0<(0|m)&&0!=(0|tr[W+Z>>0])){if(15<(0|t))return ur=o,(i=0)|i;or[i+32+(t<<1)>>1]=m,tr[i+80+t>>0]=0|tr[C+Z>>0],t=t+1|0;break}}while(0);A:do{if(!w){for(a=0;;){if(0<(0|(f=(0|or[(0|ar[n>>2])+(100*I|0)+32+(a<<1)>>1])+m|0))&&0!=(0|tr[W+(B=a+p|0)>>0])){if(15<(0|t)){v=0;break}or[i+32+(t<<1)>>1]=f,tr[i+80+t>>0]=0|tr[C+B>>0],t=t+1|0}if((0|y)<=(0|(a=a+1|0)))break A}return ur=o,0|v}}while(0);tr[i+97>>0]=t}else E=54;A:do{if(54==(0|E)){if(l=0|ut(r),((s=0|ut(r))+l|0)>(0|ar[e+528+((0|tr[e+2>>0])-1<<2)>>2]))return or[(i=i+96|0)>>1]=0,Gr(A,1018,or[i+2>>1]=0),ur=o,(i=0)|i;if(16<(0|l)|16<(0|s))return Gr(A,1018,0),ur=o,(i=0)|i;tr[(u=i+96|0)>>0]=l,tr[i+97>>0]=s;e:do{if(0<(0|l)){for(f=t=0;;){if(-99999==(0|(a=0|ut(r)))){v=0;break}if(e=255&(0|at(r,1)),or[(c=i+(t<<1)|0)>>1]=f+65535-a,tr[i+64+t>>0]=e,(0|l)<=(0|(t=t+1|0)))break e;f=0|or[c>>1]}return ur=o,0|v}}while(0);if(0<(0|s)){for(f=t=0;;){if(-99999==(0|(a=0|ut(r)))){v=0;break}if(e=255&(0|at(r,1)),or[(c=i+32+(t<<1)|0)>>1]=f+1+a,tr[i+80+t>>0]=e,(0|s)<=(0|(t=t+1|0)))break A;f=0|or[c>>1]}return ur=o,0|v}}}while(0);if((l=(tr[(s=i+99|0)>>0]=0)|tr[u>>0])<<24>>24)for(c=255&l,f=a=0;t=f+1<<24>>24,0|tr[i+64+a>>0]?tr[s>>0]=t:t=f,(0|(a=a+1|0))!=(0|c);)f=t;else t=0;if(c=255&(r=0|tr[i+97>>0]),r<<24>>24)for(a=0;f=t+1<<24>>24,0|tr[i+80+a>>0]&&(t=tr[s>>0]=f),(0|(a=a+1|0))!=(0|c););return tr[i+98>>0]=c+(255&l),ur=o,0|(i=1)}function Ko(A,e,r){A|=0,r|=0;var i,f,n,t,o,a=0,c=0,l=0,u=0,s=0;if(t=16+(i=ur=(o=ur)+31&-32)|0,n=8+i|0,ur=(f=ur=ur+32|0)+(15+((a=(e|=0)<<1)+2|0)&-16)|0,(tr[f+(a|=1)>>0]=0)<(0|a)&&Vu(0|f,46,0|a),tr[f+e>>0]=124,(a=0|tr[A+96>>0])<<24>>24)for(s=0-e|0,a&=255;u=0|or[A+((a=(c=a)+-1|0)<<1)>>1],l=0|tr[A+64+a>>0]?88:111,(0|u)<(0|s)?(ar[i>>2]=u,ar[4+i>>2]=255&l,ft(r,42221,i)):tr[f+(u+e)>>0]=l,1<(0|c););if(!((a=0|tr[A+97>>0])<<24>>24))return ar[n>>2]=f,ft(r,42228,n),void(ur=o);for(a&=255;u=0|or[A+32+((a=(c=a)+-1|0)<<1)>>1],l=0|tr[A+80+a>>0]?88:111,(0|e)<(0|u)?(ar[t>>2]=u,ar[4+t>>2]=255&l,ft(r,42221,t)):tr[f+(u+e)>>0]=l,1<(0|c););ar[n>>2]=f,ft(r,42228,n),ur=o}function qo(A){A|=0;var e,r=0,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0;b=ur=(e=ur)+31&-32,ur=ur+16|0;do{if(A>>>0<245){if(A=(l=A>>>0<11?16:A+11&-8)>>>3,3&(i=(s=0|ar[12718])>>>A)|0)return f=0|ar[(i=(A=50912+((r=(1&i^1)+A|0)<<1<<2)|0)+8|0)>>2],(0|A)==(0|(t=0|ar[(n=f+8|0)>>2]))?ar[12718]=s&~(1<<r):(ar[t+12>>2]=A,ar[i>>2]=t),p=r<<3,ar[f+4>>2]=3|p,ar[(p=f+p+4|0)>>2]=1|ar[p>>2],ur=e,0|(p=n);if((u=0|ar[12720])>>>0<l>>>0){if(0|i)return r=((r=i<<A&((r=2<<A)|0-r))&0-r)-1|0,n=0|ar[(A=(r=50912+((f=((i=(r>>>=o=r>>>12&16)>>>5&8)|o|(n=(r>>>=i)>>>2&4)|(A=(r>>>=n)>>>1&2)|(f=(r>>>=A)>>>1&1))+(r>>>f)|0)<<1<<2)|0)+8|0)>>2],(0|r)==(0|(i=0|ar[(o=n+8|0)>>2]))?(A=s&~(1<<f),ar[12718]=A):(ar[i+12>>2]=r,ar[A>>2]=i,A=s),t=(f<<3)-l|0,ar[n+4>>2]=3|l,ar[(f=n+l|0)+4>>2]=1|t,ar[f+t>>2]=t,0|u&&(n=0|ar[12723],i=50912+((r=u>>>3)<<1<<2)|0,A&(r=1<<r)?r=0|ar[(A=i+8|0)>>2]:(ar[12718]=A|r,A=(r=i)+8|0),ar[A>>2]=n,ar[r+12>>2]=n,ar[n+8>>2]=r,ar[n+12>>2]=i),ar[12720]=t,ar[12723]=f,ur=e,0|(p=o);if(a=0|ar[12719]){if(i=(a&0-a)-1|0,A=0|ar[51176+(((t=(i>>>=o=i>>>12&16)>>>5&8)|o|(c=(i>>>=t)>>>2&4)|(f=(i>>>=c)>>>1&2)|(A=(i>>>=f)>>>1&1))+(i>>>A)<<2)>>2],i=(-8&ar[A+4>>2])-l|0,f=0|ar[A+16+((0==(0|ar[A+16>>2])&1)<<2)>>2]){for(;i=(c=(o=(-8&ar[f+4>>2])-l|0)>>>0<i>>>0)?o:i,A=c?f:A,0!=(0|(f=0|ar[f+16+((0==(0|ar[f+16>>2])&1)<<2)>>2])););c=A,t=i}else c=A,t=i;if(c>>>0<(o=c+l|0)>>>0){n=0|ar[c+24>>2],r=0|ar[c+12>>2];do{if((0|r)==(0|c)){if(!(r=0|ar[(A=c+20|0)>>2])&&!(r=0|ar[(A=c+16|0)>>2])){i=0;break}for(;;)if(0|(f=0|ar[(i=r+20|0)>>2]))r=f,A=i;else{if(!(f=0|ar[(i=r+16|0)>>2]))break;r=f,A=i}ar[A>>2]=0,i=r}else i=0|ar[c+8>>2],ar[i+12>>2]=r,ar[r+8>>2]=i,i=r}while(0);do{if(0|n){if(r=0|ar[c+28>>2],(0|c)==(0|ar[(A=51176+(r<<2)|0)>>2])){if(!(ar[A>>2]=i)){ar[12719]=a&~(1<<r);break}}else if(!(ar[n+16+(((0|ar[n+16>>2])!=(0|c)&1)<<2)>>2]=i))break;ar[i+24>>2]=n,0|(r=0|ar[c+16>>2])&&(ar[i+16>>2]=r,ar[r+24>>2]=i),0|(r=0|ar[c+20>>2])&&(ar[i+20>>2]=r,ar[r+24>>2]=i)}}while(0);return t>>>0<16?(p=t+l|0,ar[c+4>>2]=3|p,ar[(p=c+p+4|0)>>2]=1|ar[p>>2]):(ar[c+4>>2]=3|l,ar[o+4>>2]=1|t,ar[o+t>>2]=t,0|u&&(f=0|ar[12723],i=50912+((r=u>>>3)<<1<<2)|0,s&(r=1<<r)?r=0|ar[(A=i+8|0)>>2]:(ar[12718]=s|r,A=(r=i)+8|0),ar[A>>2]=f,ar[r+12>>2]=f,ar[f+8>>2]=r,ar[f+12>>2]=i),ar[12720]=t,ar[12723]=o),ur=e,0|(p=c+8|0)}s=l}else s=l}else s=l}else if(A>>>0<=4294967231)if(l=-8&(A=A+11|0),c=0|ar[12719]){f=0-l|0,a=(A>>>=8)?16777215<l>>>0?31:l>>>((a=14-((u=((m=A<<(s=(A+1048320|0)>>>16&8))+520192|0)>>>16&4)|s|(a=((m<<=u)+245760|0)>>>16&2))+(m<<a>>>15)|0)+7|0)&1|a<<1:0,i=0|ar[51176+(a<<2)>>2];A:do{if(i)for(o=l<<(31==((A=0)|a)?0:25-(a>>>1)|0),t=0;;){if((n=(-8&ar[i+4>>2])-l|0)>>>0<f>>>0){if(!n){f=0,n=A=i,m=61;break A}A=i,f=n}if(t=0==(0|(n=0|ar[i+20>>2]))|(0|n)==(0|(i=0|ar[i+16+(o>>>31<<2)>>2]))?t:n,n=0==(0|i)){i=t,m=57;break}o<<=1&(1^n)}else A=i=0,m=57}while(0);if(57==(0|m)){if(0==(0|i)&0==(0|A)){if(!(A=c&((A=2<<a)|0-A))){s=l;break}s=(A&0-A)-1|0,i=(A=0)|ar[51176+(((t=(s>>>=o=s>>>12&16)>>>5&8)|o|(a=(s>>>=t)>>>2&4)|(u=(s>>>=a)>>>1&2)|(i=(s>>>=u)>>>1&1))+(s>>>i)<<2)>>2]}i?(n=i,m=61):(a=A,o=f)}if(61==(0|m))for(;;){if(m=0,i=(s=(i=(-8&ar[n+4>>2])-l|0)>>>0<f>>>0)?i:f,A=s?n:A,!(n=0|ar[n+16+((0==(0|ar[n+16>>2])&1)<<2)>>2])){a=A,o=i;break}f=i,m=61}if(0!=(0|a)&&o>>>0<((0|ar[12720])-l|0)>>>0){if((t=a+l|0)>>>0<=a>>>0)return ur=e,(p=0)|p;n=0|ar[a+24>>2],r=0|ar[a+12>>2];do{if((0|r)==(0|a)){if(!(r=0|ar[(A=a+20|0)>>2])&&!(r=0|ar[(A=a+16|0)>>2])){r=0;break}for(;;)if(0|(f=0|ar[(i=r+20|0)>>2]))r=f,A=i;else{if(!(f=0|ar[(i=r+16|0)>>2]))break;r=f,A=i}ar[A>>2]=0}else p=0|ar[a+8>>2],ar[p+12>>2]=r,ar[r+8>>2]=p}while(0);do{if(n){if(A=0|ar[a+28>>2],(0|a)==(0|ar[(i=51176+(A<<2)|0)>>2])){if(!(ar[i>>2]=r)){f=c&~(1<<A),ar[12719]=f;break}}else if(!(ar[n+16+(((0|ar[n+16>>2])!=(0|a)&1)<<2)>>2]=r)){f=c;break}ar[r+24>>2]=n,0|(A=0|ar[a+16>>2])&&(ar[r+16>>2]=A,ar[A+24>>2]=r),f=((A=0|ar[a+20>>2])&&(ar[r+20>>2]=A,ar[A+24>>2]=r),c)}else f=c}while(0);do{if(16<=o>>>0){if(ar[a+4>>2]=3|l,ar[t+4>>2]=1|o,r=(ar[t+o>>2]=o)>>>3,o>>>0<256){i=50912+(r<<1<<2)|0,(A=0|ar[12718])&(r=1<<r)?r=0|ar[(A=i+8|0)>>2]:(ar[12718]=A|r,A=(r=i)+8|0),ar[A>>2]=t,ar[r+12>>2]=t,ar[t+8>>2]=r,ar[t+12>>2]=i;break}if(i=51176+((r=(r=o>>>8)?16777215<o>>>0?31:o>>>((r=14-((g=((p=r<<(m=(r+1048320|0)>>>16&8))+520192|0)>>>16&4)|m|(r=((p<<=g)+245760|0)>>>16&2))+(p<<r>>>15)|0)+7|0)&1|r<<1:0)<<2)|0,ar[t+28>>2]=r,ar[(A=t+16|0)+4>>2]=0,ar[A>>2]=0,!(f&(A=1<<r))){ar[12719]=f|A,ar[i>>2]=t,ar[t+24>>2]=i,ar[t+12>>2]=t,ar[t+8>>2]=t;break}for(A=o<<(31==(0|r)?0:25-(r>>>1)|0),i=0|ar[i>>2];;){if((-8&ar[i+4>>2]|0)==(0|o)){m=97;break}if(!(r=0|ar[(f=i+16+(A>>>31<<2)|0)>>2])){m=96;break}A<<=1,i=r}if(96==(0|m)){ar[f>>2]=t,ar[t+24>>2]=i,ar[t+12>>2]=t,ar[t+8>>2]=t;break}if(97==(0|m)){p=0|ar[(m=i+8|0)>>2],ar[p+12>>2]=t,ar[m>>2]=t,ar[t+8>>2]=p,ar[t+12>>2]=i,ar[t+24>>2]=0;break}}else p=o+l|0,ar[a+4>>2]=3|p,ar[(p=a+p+4|0)>>2]=1|ar[p>>2]}while(0);return ur=e,0|(p=a+8|0)}s=l}else s=l;else s=-1}while(0);if(s>>>0<=(i=0|ar[12720])>>>0)return r=i-s|0,A=0|ar[12723],15<r>>>0?(p=A+s|0,ar[12723]=p,ar[12720]=r,ar[p+4>>2]=1|r,ar[p+r>>2]=r,ar[A+4>>2]=3|s):(ar[12720]=0,ar[12723]=0,ar[A+4>>2]=3|i,ar[(p=A+i+4|0)>>2]=1|ar[p>>2]),ur=e,0|(p=A+8|0);if(s>>>0<(o=0|ar[12721])>>>0)return g=o-s|0,ar[12721]=g,m=(p=0|ar[12724])+s|0,ar[12724]=m,ar[m+4>>2]=1|g,ar[p+4>>2]=3|s,ur=e,0|(p=p+8|0);if(a=s+48|0,(l=(t=(A=0|ar[12836]?0|ar[12838]:(ar[12838]=4096,ar[12837]=4096,ar[12839]=-1,ar[12840]=-1,ar[12841]=0,ar[12829]=0,A=-16&b^1431655768,ar[b>>2]=A,ar[12836]=A,4096))+(c=s+47|0)|0)&(n=0-A|0))>>>0<=s>>>0)return ur=e,(p=0)|p;if(0|(A=0|ar[12828])&&(b=(u=0|ar[12826])+l|0)>>>0<=u>>>0|A>>>0<b>>>0)return ur=e,(p=0)|p;A:do{if(4&ar[12829])r=0,m=133;else{i=0|ar[12724];e:do{if(i){for(f=51320;!((A=0|ar[f>>2])>>>0<=i>>>0&&(A+(0|ar[(h=f+4|0)>>2])|0)>>>0>i>>>0);){if(!(A=0|ar[f+8>>2])){m=118;break e}f=A}if((r=t-o&n)>>>0<2147483647)if((0|(A=0|Nu(0|r)))==((0|ar[f>>2])+(0|ar[h>>2])|0)){if(-1!=(0|A)){o=r,t=A,m=135;break A}}else f=A,m=126;else r=0}else m=118}while(0);do{if(118==(0|m))if(-1!=(0|(i=0|Nu(0)))&&(r=i,k=(r=(0==((k=(d=0|ar[12837])+-1|0)&r|0)?0:(k+r&0-d)-r|0)+l|0)+(d=0|ar[12826])|0,s>>>0<r>>>0&r>>>0<2147483647)){if(0|(h=0|ar[12828])&&k>>>0<=d>>>0|h>>>0<k>>>0){r=0;break}if((0|(A=0|Nu(0|r)))==(0|i)){o=r,t=i,m=135;break A}f=A,m=126}else r=0}while(0);do{if(126==(0|m)){if(i=0-r|0,!(r>>>0<a>>>0&r>>>0<2147483647&-1!=(0|f))){if(-1==(0|f)){r=0;break}o=r,t=f,m=135;break A}if(2147483647<=(A=c-r+(A=0|ar[12838])&0-A)>>>0){o=r,t=f,m=135;break A}if(-1==(0|Nu(0|A))){Nu(0|i),r=0;break}o=A+r|0,t=f,m=135;break A}}while(0);ar[12829]=4|ar[12829],m=133}}while(0);if(133==(0|m)&&l>>>0<2147483647&&!(-1==(0|(g=0|Nu(0|l)))|1^(v=(s+40|0)>>>0<(w=(h=0|Nu(0))-g|0)>>>0)|g>>>0<h>>>0&-1!=(0|g)&-1!=(0|h)^1)&&(o=v?w:r,t=g,m=135),135==(0|m)){r=(0|ar[12826])+o|0,(ar[12826]=r)>>>0>(0|ar[12827])>>>0&&(ar[12827]=r),c=0|ar[12724];do{if(c){for(r=51320;;){if((0|t)==((A=0|ar[r>>2])+(f=0|ar[(i=r+4|0)>>2])|0)){m=145;break}if(!(n=0|ar[r+8>>2]))break;r=n}if(145==(0|m)&&0==(8&ar[r+12>>2]|0)&&c>>>0<t>>>0&A>>>0<=c>>>0){ar[i>>2]=f+o,m=c+(p=0==(7&(p=c+8|0)|0)?0:0-p&7)|0,p=(0|ar[12721])+(o-p)|0,ar[12724]=m,ar[12721]=p,ar[m+4>>2]=1|p,ar[m+p+4>>2]=40,ar[12725]=ar[12840];break}for(t>>>0<(0|ar[12722])>>>0&&(ar[12722]=t),i=t+o|0,r=51320;;){if((0|ar[r>>2])==(0|i)){m=153;break}if(!(A=0|ar[r+8>>2]))break;r=A}if(153==(0|m)&&0==(8&ar[r+12>>2]|0)){ar[r>>2]=t,ar[(u=r+4|0)>>2]=(0|ar[u>>2])+o,l=(u=t+(0==(7&(u=t+8|0)|0)?0:0-u&7)|0)+s|0,a=(r=i+(0==(7&(r=i+8|0)|0)?0:0-r&7)|0)-u-s|0,ar[u+4>>2]=3|s;do{if((0|r)!=(0|c)){if((0|r)==(0|ar[12723])){p=(0|ar[12720])+a|0,ar[12720]=p,ar[12723]=l,ar[l+4>>2]=1|p,ar[l+p>>2]=p;break}if(1==(3&(A=0|ar[r+4>>2])|0)){o=-8&A,f=A>>>3;A:do{if(A>>>0<256){if(A=0|ar[r+8>>2],(0|(i=0|ar[r+12>>2]))==(0|A)){ar[12718]=ar[12718]&~(1<<f);break}ar[A+12>>2]=i,ar[i+8>>2]=A;break}t=0|ar[r+24>>2],A=0|ar[r+12>>2];do{if((0|A)==(0|r)){if(!(A=0|ar[(i=(f=r+16|0)+4|0)>>2])){if(!(A=0|ar[f>>2])){A=0;break}i=f}for(;;)if(0|(n=0|ar[(f=A+20|0)>>2]))A=n,i=f;else{if(!(n=0|ar[(f=A+16|0)>>2]))break;A=n,i=f}ar[i>>2]=0}else p=0|ar[r+8>>2],ar[p+12>>2]=A,ar[A+8>>2]=p}while(0);if(!t)break;f=51176+((i=0|ar[r+28>>2])<<2)|0;do{if((0|r)==(0|ar[f>>2])){if(0|(ar[f>>2]=A))break;ar[12719]=ar[12719]&~(1<<i);break A}if(!(ar[t+16+(((0|ar[t+16>>2])!=(0|r)&1)<<2)>>2]=A))break A}while(0);if(ar[A+24>>2]=t,0|(f=0|ar[(i=r+16|0)>>2])&&(ar[A+16>>2]=f,ar[f+24>>2]=A),!(i=0|ar[i+4>>2]))break;ar[A+20>>2]=i,ar[i+24>>2]=A}while(0);r=r+o|0,n=o+a|0}else n=a;if(ar[(r=r+4|0)>>2]=-2&ar[r>>2],ar[l+4>>2]=1|n,r=(ar[l+n>>2]=n)>>>3,n>>>0<256){i=50912+(r<<1<<2)|0,(A=0|ar[12718])&(r=1<<r)?r=0|ar[(A=i+8|0)>>2]:(ar[12718]=A|r,A=(r=i)+8|0),ar[A>>2]=l,ar[r+12>>2]=l,ar[l+8>>2]=r,ar[l+12>>2]=i;break}r=n>>>8;do{if(r){if(16777215<n>>>0){r=31;break}r=n>>>((r=14-((g=((p=r<<(m=(r+1048320|0)>>>16&8))+520192|0)>>>16&4)|m|(r=((p<<=g)+245760|0)>>>16&2))+(p<<r>>>15)|0)+7|0)&1|r<<1}else r=0}while(0);if(f=51176+(r<<2)|0,ar[l+28>>2]=r,ar[(A=l+16|0)+4>>2]=0,!((A=(ar[A>>2]=0)|ar[12719])&(i=1<<r))){ar[12719]=A|i,ar[f>>2]=l,ar[l+24>>2]=f,ar[l+12>>2]=l,ar[l+8>>2]=l;break}for(A=n<<(31==(0|r)?0:25-(r>>>1)|0),i=0|ar[f>>2];;){if((-8&ar[i+4>>2]|0)==(0|n)){m=194;break}if(!(r=0|ar[(f=i+16+(A>>>31<<2)|0)>>2])){m=193;break}A<<=1,i=r}if(193==(0|m)){ar[f>>2]=l,ar[l+24>>2]=i,ar[l+12>>2]=l,ar[l+8>>2]=l;break}if(194==(0|m)){p=0|ar[(m=i+8|0)>>2],ar[p+12>>2]=l,ar[m>>2]=l,ar[l+8>>2]=p,ar[l+12>>2]=i,ar[l+24>>2]=0;break}}else p=(0|ar[12721])+a|0,ar[12721]=p,ar[12724]=l,ar[l+4>>2]=1|p}while(0);return ur=e,0|(p=u+8|0)}for(r=51320;!((A=0|ar[r>>2])>>>0<=c>>>0&&c>>>0<(p=A+(0|ar[r+4>>2])|0)>>>0);)r=0|ar[r+8>>2];for(r=(A=(A=(n=p+-47|0)+(0==(7&(A=n+8|0)|0)?0:0-A&7)|0)>>>0<(n=c+16|0)>>>0?c:A)+8|0,m=t+(i=0==(7&(i=t+8|0)|0)?0:0-i&7)|0,i=o+-40-i|0,ar[12724]=m,ar[12721]=i,ar[m+4>>2]=1|i,ar[m+i+4>>2]=40,ar[12725]=ar[12840],ar[(i=A+4|0)>>2]=27,ar[r>>2]=ar[12830],ar[r+4>>2]=ar[12831],ar[r+8>>2]=ar[12832],ar[r+12>>2]=ar[12833],ar[12830]=t,ar[12831]=o,ar[12833]=0,ar[12832]=r,r=A+24|0;ar[(r=(m=r)+4|0)>>2]=7,(m+8|0)>>>0<p>>>0;);if((0|A)!=(0|c)){if(t=A-c|0,ar[i>>2]=-2&ar[i>>2],ar[c+4>>2]=1|t,r=(ar[A>>2]=t)>>>3,t>>>0<256){i=50912+(r<<1<<2)|0,(A=0|ar[12718])&(r=1<<r)?r=0|ar[(A=i+8|0)>>2]:(ar[12718]=A|r,A=(r=i)+8|0),ar[A>>2]=c,ar[r+12>>2]=c,ar[c+8>>2]=r,ar[c+12>>2]=i;break}if(f=51176+((i=(r=t>>>8)?16777215<t>>>0?31:t>>>((i=14-((g=((p=r<<(m=(r+1048320|0)>>>16&8))+520192|0)>>>16&4)|m|(i=((p<<=g)+245760|0)>>>16&2))+(p<<i>>>15)|0)+7|0)&1|i<<1:0)<<2)|0,ar[c+28>>2]=i,ar[c+20>>2]=0,!((r=(ar[n>>2]=0)|ar[12719])&(A=1<<i))){ar[12719]=r|A,ar[f>>2]=c,ar[c+24>>2]=f,ar[c+12>>2]=c,ar[c+8>>2]=c;break}for(A=t<<(31==(0|i)?0:25-(i>>>1)|0),i=0|ar[f>>2];;){if((-8&ar[i+4>>2]|0)==(0|t)){m=216;break}if(!(r=0|ar[(f=i+16+(A>>>31<<2)|0)>>2])){m=215;break}A<<=1,i=r}if(215==(0|m)){ar[f>>2]=c,ar[c+24>>2]=i,ar[c+12>>2]=c,ar[c+8>>2]=c;break}if(216==(0|m)){p=0|ar[(m=i+8|0)>>2],ar[p+12>>2]=c,ar[m>>2]=c,ar[c+8>>2]=p,ar[c+12>>2]=i,ar[c+24>>2]=0;break}}}else{for(0==(0|(p=0|ar[12722]))|t>>>0<p>>>0&&(ar[12722]=t),ar[12830]=t,ar[12831]=o,ar[12833]=0,ar[12727]=ar[12836],ar[12726]=-1,r=0;ar[(p=50912+(r<<1<<2)|0)+12>>2]=p,ar[p+8>>2]=p,32!=(0|(r=r+1|0)););m=t+(p=0==(7&(p=t+8|0)|0)?0:0-p&7)|0,p=o+-40-p|0,ar[12724]=m,ar[12721]=p,ar[m+4>>2]=1|p,ar[m+p+4>>2]=40,ar[12725]=ar[12840]}}while(0);if(s>>>0<(r=0|ar[12721])>>>0)return g=r-s|0,ar[12721]=g,m=(p=0|ar[12724])+s|0,ar[12724]=m,ar[m+4>>2]=1|g,ar[p+4>>2]=3|s,ur=e,0|(p=p+8|0)}return ar[(p=8708)>>2]=12,ur=e,(p=0)|p}function $o(A){var e=0,r=0,i=0,f=0,n=0,t=0,o=0,a=0;if(A|=0){r=A+-8|0,f=0|ar[12722],a=r+(e=-8&(A=0|ar[A+-4>>2]))|0;do{if(1&A)t=o=r;else{if(i=0|ar[r>>2],!(3&A))return;if(n=i+e|0,(t=r+(0-i)|0)>>>0<f>>>0)return;if((0|t)==(0|ar[12723])){if(3==(3&(e=0|ar[(A=a+4|0)>>2])|0))return ar[12720]=n,ar[A>>2]=-2&e,ar[t+4>>2]=1|n,void(ar[t+n>>2]=n);o=t,e=n;break}if(r=i>>>3,i>>>0<256){if(A=0|ar[t+8>>2],(0|(e=0|ar[t+12>>2]))==(0|A)){ar[12718]=ar[12718]&~(1<<r),o=t,e=n;break}ar[A+12>>2]=e,ar[e+8>>2]=A,o=t,e=n;break}f=0|ar[t+24>>2],A=0|ar[t+12>>2];do{if((0|A)==(0|t)){if(!(A=0|ar[(e=(r=t+16|0)+4|0)>>2])){if(!(A=0|ar[r>>2])){A=0;break}e=r}for(;;)if(0|(i=0|ar[(r=A+20|0)>>2]))A=i,e=r;else{if(!(i=0|ar[(r=A+16|0)>>2]))break;A=i,e=r}ar[e>>2]=0}else o=0|ar[t+8>>2],ar[o+12>>2]=A,ar[A+8>>2]=o}while(0);if(f){if(e=0|ar[t+28>>2],(0|t)==(0|ar[(r=51176+(e<<2)|0)>>2])){if(!(ar[r>>2]=A)){ar[12719]=ar[12719]&~(1<<e),o=t,e=n;break}}else if(!(ar[f+16+(((0|ar[f+16>>2])!=(0|t)&1)<<2)>>2]=A)){o=t,e=n;break}ar[A+24>>2]=f,0|(r=0|ar[(e=t+16|0)>>2])&&(ar[A+16>>2]=r,ar[r+24>>2]=A),e=(o=((e=0|ar[e+4>>2])&&(ar[A+20>>2]=e,ar[e+24>>2]=A),t),n)}else o=t,e=n}}while(0);if(!(a>>>0<=t>>>0)&&1&(i=0|ar[(A=a+4|0)>>2])){if(2&i)ar[A>>2]=-2&i,ar[o+4>>2]=1|e,f=ar[t+e>>2]=e;else{if(A=0|ar[12723],(0|a)==(0|ar[12724])){if(a=(0|ar[12721])+e|0,ar[12721]=a,ar[12724]=o,ar[o+4>>2]=1|a,(0|o)!=(0|A))return;return ar[12723]=0,void(ar[12720]=0)}if((0|a)==(0|A))return a=(0|ar[12720])+e|0,ar[12720]=a,ar[12723]=t,ar[o+4>>2]=1|a,void(ar[t+a>>2]=a);f=(-8&i)+e|0,r=i>>>3;do{if(i>>>0<256){if(e=0|ar[a+8>>2],(0|(A=0|ar[a+12>>2]))==(0|e)){ar[12718]=ar[12718]&~(1<<r);break}ar[e+12>>2]=A,ar[A+8>>2]=e;break}n=0|ar[a+24>>2],A=0|ar[a+12>>2];do{if((0|A)==(0|a)){if(!(A=0|ar[(e=(r=a+16|0)+4|0)>>2])){if(!(A=0|ar[r>>2])){r=0;break}e=r}for(;;)if(0|(i=0|ar[(r=A+20|0)>>2]))A=i,e=r;else{if(!(i=0|ar[(r=A+16|0)>>2]))break;A=i,e=r}ar[e>>2]=0,r=A}else r=0|ar[a+8>>2],ar[r+12>>2]=A,ar[A+8>>2]=r,r=A}while(0);if(0|n){if(A=0|ar[a+28>>2],(0|a)==(0|ar[(e=51176+(A<<2)|0)>>2])){if(!(ar[e>>2]=r)){ar[12719]=ar[12719]&~(1<<A);break}}else if(!(ar[n+16+(((0|ar[n+16>>2])!=(0|a)&1)<<2)>>2]=r))break;ar[r+24>>2]=n,0|(e=0|ar[(A=a+16|0)>>2])&&(ar[r+16>>2]=e,ar[e+24>>2]=r),0|(A=0|ar[A+4>>2])&&(ar[r+20>>2]=A,ar[A+24>>2]=r)}}while(0);if(ar[o+4>>2]=1|f,ar[t+f>>2]=f,(0|o)==(0|ar[12723]))return void(ar[12720]=f)}if(A=f>>>3,f>>>0<256)return r=50912+(A<<1<<2)|0,(e=0|ar[12718])&(A=1<<A)?A=0|ar[(e=r+8|0)>>2]:(ar[12718]=e|A,e=(A=r)+8|0),ar[e>>2]=o,ar[A+12>>2]=o,ar[o+8>>2]=A,void(ar[o+12>>2]=r);i=51176+((A=(A=f>>>8)?16777215<f>>>0?31:f>>>((A=14-((n=((a=A<<(t=(A+1048320|0)>>>16&8))+520192|0)>>>16&4)|t|(A=((a<<=n)+245760|0)>>>16&2))+(a<<A>>>15)|0)+7|0)&1|A<<1:0)<<2)|0,ar[o+28>>2]=A,ar[o+20>>2]=0,e=(ar[o+16>>2]=0)|ar[12719],r=1<<A;do{if(e&r){for(e=f<<(31==(0|A)?0:25-(A>>>1)|0),r=0|ar[i>>2];;){if((-8&ar[r+4>>2]|0)==(0|f)){A=73;break}if(!(A=0|ar[(i=r+16+(e>>>31<<2)|0)>>2])){A=72;break}e<<=1,r=A}if(72==(0|A)){ar[i>>2]=o,ar[o+24>>2]=r,ar[o+12>>2]=o,ar[o+8>>2]=o;break}if(73==(0|A)){a=0|ar[(t=r+8|0)>>2],ar[a+12>>2]=o,ar[t>>2]=o,ar[o+8>>2]=a,ar[o+12>>2]=r,ar[o+24>>2]=0;break}}else ar[12719]=e|r,ar[i>>2]=o,ar[o+24>>2]=i,ar[o+12>>2]=o,ar[o+8>>2]=o}while(0);if(a=(0|ar[12726])-1|0,!(ar[12726]=a)){for(A=51328;A=0|ar[A>>2];)A=A+8|0;ar[12726]=-1}}}}function Aa(A,e){e|=0;var r=0,i=0;return(A|=0)?4294967231<e>>>0?(ar[(e=8708)>>2]=12,(e=0)|e):0|(r=0|function(A,e){e|=0;var r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0;if(l=0|ar[(u=4+(A|=0)|0)>>2],r=A+(f=-8&l)|0,!(3&l))return!(e>>>0<256)&&(e+4|0)>>>0<=f>>>0&&(f-e|0)>>>0<=ar[12838]<<1>>>0?0|A:(A=0)|A;if(e>>>0<=f>>>0)return(f=f-e|0)>>>0<=15||(c=A+e|0,ar[u>>2]=1&l|e|2,ar[c+4>>2]=3|f,ar[(u=c+f+4|0)>>2]=1|ar[u>>2],ea(c,f)),0|A;if((0|r)==(0|ar[12724]))return c=(0|ar[12721])+f|0,f=c-e|0,n=A+e|0,c>>>0<=e>>>0?(A=0)|A:(ar[u>>2]=1&l|e|2,ar[n+4>>2]=1|f,ar[12724]=n,ar[12721]=f,0|A);if((0|r)==(0|ar[12723]))return(t=(0|ar[12720])+f|0)>>>0<e>>>0?(A=0)|A:(n=1&l,15<(f=t-e|0)>>>0?(c=(l=A+e|0)+f|0,ar[u>>2]=n|e|2,ar[l+4>>2]=1|f,ar[c>>2]=f,ar[(n=c+4|0)>>2]=-2&ar[n>>2],n=l):(ar[u>>2]=n|t|2,ar[(n=A+t+4|0)>>2]=1|ar[n>>2],f=n=0),ar[12720]=f,ar[12723]=n,0|A);if(2&(n=0|ar[4+r>>2])|0)return(A=0)|A;if((i=(-8&n)+f|0)>>>0<e>>>0)return(A=0)|A;c=i-e|0,t=n>>>3;do{if(n>>>0<256){if(n=0|ar[8+r>>2],(0|(f=0|ar[12+r>>2]))==(0|n)){ar[12718]=ar[12718]&~(1<<t);break}ar[n+12>>2]=f,ar[f+8>>2]=n;break}a=0|ar[24+r>>2],f=0|ar[12+r>>2];do{if((0|f)==(0|r)){if(f=0|ar[(n=(t=16+r|0)+4|0)>>2])o=n;else{if(!(f=0|ar[t>>2])){t=0;break}o=t}for(;;)if(0|(n=0|ar[(t=f+20|0)>>2]))f=n,o=t;else{if(!(t=0|ar[(n=f+16|0)>>2]))break;f=t,o=n}ar[o>>2]=0,t=f}else t=0|ar[8+r>>2],ar[t+12>>2]=f,ar[f+8>>2]=t,t=f}while(0);if(0|a){if(f=0|ar[28+r>>2],(0|r)==(0|ar[(n=51176+(f<<2)|0)>>2])){if(!(ar[n>>2]=t)){ar[12719]=ar[12719]&~(1<<f);break}}else if(!(ar[a+16+(((0|ar[a+16>>2])!=(0|r)&1)<<2)>>2]=t))break;ar[t+24>>2]=a,0|(n=0|ar[(f=16+r|0)>>2])&&(ar[t+16>>2]=n,ar[n+24>>2]=t),0|(f=0|ar[f+4>>2])&&(ar[t+20>>2]=f,ar[f+24>>2]=t)}}while(0);return f=1&l,c>>>0<16?(ar[u>>2]=i|f|2,ar[(u=A+i+4|0)>>2]=1|ar[u>>2]):(l=A+e|0,ar[u>>2]=f|e|2,ar[l+4>>2]=3|c,ar[(u=l+c+4|0)>>2]=1|ar[u>>2],ea(l,c)),0|A}(A+-8|0,e>>>0<11?16:e+11&-8))?0|(e=r+8|0):(r=0|qo(e))?(Eu(0|r,0|A,0|((i=(-8&(i=0|ar[A+-4>>2]))-(0==(3&i|0)?8:4)|0)>>>0<e>>>0?i:e)),$o(A),0|(e=r)):(e=0)|e:0|(e=0|qo(e))}function ea(A,e){var r=0,i=0,f=0,n=0,t=0,o=0,a=0;a=(A|=0)+(e|=0)|0,r=0|ar[A+4>>2];do{if(1&r)o=A,r=e;else{if(i=0|ar[A>>2],!(3&r))return;if(t=i+e|0,(0|(n=A+(0-i)|0))==(0|ar[12723])){if(3==(3&(r=0|ar[(A=a+4|0)>>2])|0))return ar[12720]=t,ar[A>>2]=-2&r,ar[n+4>>2]=1|t,void(ar[n+t>>2]=t);o=n,r=t;break}if(e=i>>>3,i>>>0<256){if(A=0|ar[n+8>>2],(0|(r=0|ar[n+12>>2]))==(0|A)){ar[12718]=ar[12718]&~(1<<e),o=n,r=t;break}ar[A+12>>2]=r,ar[r+8>>2]=A,o=n,r=t;break}f=0|ar[n+24>>2],A=0|ar[n+12>>2];do{if((0|A)==(0|n)){if(!(A=0|ar[(r=(e=n+16|0)+4|0)>>2])){if(!(A=0|ar[e>>2])){A=0;break}r=e}for(;;)if(0|(i=0|ar[(e=A+20|0)>>2]))A=i,r=e;else{if(!(i=0|ar[(e=A+16|0)>>2]))break;A=i,r=e}ar[r>>2]=0}else o=0|ar[n+8>>2],ar[o+12>>2]=A,ar[A+8>>2]=o}while(0);if(f){if(r=0|ar[n+28>>2],(0|n)==(0|ar[(e=51176+(r<<2)|0)>>2])){if(!(ar[e>>2]=A)){ar[12719]=ar[12719]&~(1<<r),o=n,r=t;break}}else if(!(ar[f+16+(((0|ar[f+16>>2])!=(0|n)&1)<<2)>>2]=A)){o=n,r=t;break}ar[A+24>>2]=f,0|(e=0|ar[(r=n+16|0)>>2])&&(ar[A+16>>2]=e,ar[e+24>>2]=A),r=(o=((r=0|ar[r+4>>2])&&(ar[A+20>>2]=r,ar[r+24>>2]=A),n),t)}else o=n,r=t}}while(0);if(2&(i=0|ar[(A=a+4|0)>>2]))ar[A>>2]=-2&i,ar[o+4>>2]=1|r,ar[o+r>>2]=r;else{if(A=0|ar[12723],(0|a)==(0|ar[12724]))return a=(0|ar[12721])+r|0,ar[12721]=a,ar[12724]=o,ar[o+4>>2]=1|a,(0|o)==(0|A)&&(ar[12723]=0,void(ar[12720]=0));if((0|a)==(0|A))return a=(0|ar[12720])+r|0,ar[12720]=a,ar[12723]=o,ar[o+4>>2]=1|a,void(ar[o+a>>2]=a);n=(-8&i)+r|0,e=i>>>3;do{if(i>>>0<256){if(r=0|ar[a+8>>2],(0|(A=0|ar[a+12>>2]))==(0|r)){ar[12718]=ar[12718]&~(1<<e);break}ar[r+12>>2]=A,ar[A+8>>2]=r;break}f=0|ar[a+24>>2],A=0|ar[a+12>>2];do{if((0|A)==(0|a)){if(!(A=0|ar[(r=(e=a+16|0)+4|0)>>2])){if(!(A=0|ar[e>>2])){e=0;break}r=e}for(;;)if(0|(i=0|ar[(e=A+20|0)>>2]))A=i,r=e;else{if(!(i=0|ar[(e=A+16|0)>>2]))break;A=i,r=e}ar[r>>2]=0,e=A}else e=0|ar[a+8>>2],ar[e+12>>2]=A,ar[A+8>>2]=e,e=A}while(0);if(0|f){if(A=0|ar[a+28>>2],(0|a)==(0|ar[(r=51176+(A<<2)|0)>>2])){if(!(ar[r>>2]=e)){ar[12719]=ar[12719]&~(1<<A);break}}else if(!(ar[f+16+(((0|ar[f+16>>2])!=(0|a)&1)<<2)>>2]=e))break;ar[e+24>>2]=f,0|(r=0|ar[(A=a+16|0)>>2])&&(ar[e+16>>2]=r,ar[r+24>>2]=e),0|(A=0|ar[A+4>>2])&&(ar[e+20>>2]=A,ar[A+24>>2]=e)}}while(0);if(ar[o+4>>2]=1|n,ar[o+n>>2]=n,(0|o)==(0|ar[12723]))return void(ar[12720]=n);r=n}if(A=r>>>3,r>>>0<256)return e=50912+(A<<1<<2)|0,(r=0|ar[12718])&(A=1<<A)?A=0|ar[(r=e+8|0)>>2]:(ar[12718]=r|A,r=(A=e)+8|0),ar[r>>2]=o,ar[A+12>>2]=o,ar[o+8>>2]=A,void(ar[o+12>>2]=e);if(f=51176+((A=(A=r>>>8)?16777215<r>>>0?31:r>>>((A=14-((n=((a=A<<(t=(A+1048320|0)>>>16&8))+520192|0)>>>16&4)|t|(A=((a<<=n)+245760|0)>>>16&2))+(a<<A>>>15)|0)+7|0)&1|A<<1:0)<<2)|0,ar[o+28>>2]=A,ar[o+20>>2]=0,!((e=(ar[o+16>>2]=0)|ar[12719])&(i=1<<A)))return ar[12719]=e|i,ar[f>>2]=o,ar[o+24>>2]=f,ar[o+12>>2]=o,void(ar[o+8>>2]=o);for(e=r<<(31==(0|A)?0:25-(A>>>1)|0),i=0|ar[f>>2];;){if((-8&ar[i+4>>2]|0)==(0|r)){A=69;break}if(!(A=0|ar[(f=i+16+(e>>>31<<2)|0)>>2])){A=68;break}e<<=1,i=A}return 68==(0|A)?(ar[f>>2]=o,ar[o+24>>2]=i,ar[o+12>>2]=o,void(ar[o+8>>2]=o)):69==(0|A)&&(a=0|ar[(t=i+8|0)>>2],ar[a+12>>2]=o,ar[t>>2]=o,ar[o+8>>2]=a,ar[o+12>>2]=i,void(ar[o+24>>2]=0))}function ra(A,e){return e|=0,(A|=0)>>>0<9?0|(e=0|qo(e)):0|(e=0|function(A,e){e|=0;var r,i=0,f=0,n=0,t=0,o=0;if((A=16<(A|=0)>>>0?A:16)+-1&A)for(i=16;;){if(!(i>>>0<A>>>0)){A=i;break}i<<=1}if((-64-A|0)>>>0<=e>>>0)return ar[(t=8708)>>2]=12,(t=0)|t;if(!(i=0|qo(12+(n=e>>>0<11?16:e+11&-8)+A|0)))return(t=0)|t;r=i+-8|0;do{if(i&A+-1){if(e=(f=15<((f=(i+A+-1&0-A)-8|0)-(e=r)|0)>>>0?f:f+A|0)-e|0,o=0|ar[(A=i+-4|0)>>2],i=(-8&o)-e|0,3&o){ar[(o=f+4|0)>>2]=i|1&ar[o>>2]|2,ar[(i=f+i+4|0)>>2]=1|ar[i>>2],ar[A>>2]=e|1&ar[A>>2]|2,ar[o>>2]=1|ar[o>>2],ea(r,e),e=A=f;break}ar[f>>2]=(0|ar[r>>2])+e,ar[f+4>>2]=i,e=A=f;break}e=A=r}while(0);3&(i=0|ar[(A=A+4|0)>>2])|0&&(t=-8&i)>>>0>(n+16|0)>>>0&&(o=t-n|0,t=e+n|0,ar[A>>2]=n|1&i|2,ar[t+4>>2]=3|o,ar[(n=t+o+4|0)>>2]=1|ar[n>>2],ea(t,o));return 0|(o=e+8|0)}(A,e))}function ia(A){return 4294963200<(A|=0)>>>0&&(ar[8708>>2]=0-A,A=-1),0|A}function fa(){return 8708}function na(A,e,r){e|=0,r|=0;var i,f,n,t,o,a=0,c=0,l=0,u=0,s=0,b=0;c=ur=(o=ur)+31&-32,ur=ur+48|0,t=c+16|0,c=(l=c)+32|0,a=0|ar[(f=(A|=0)+28|0)>>2],ar[c>>2]=a,a=(0|ar[(n=A+20|0)>>2])-a|0,ar[c+4>>2]=a,ar[c+8>>2]=e,a=a+(ar[c+12>>2]=r)|0,i=A+60|0,ar[l>>2]=ar[i>>2],ar[l+4>>2]=c,ar[l+8>>2]=2,l=0|ia(0|F(146,0|l));A:do{if((0|a)!=(0|l)){for(e=2;!((0|l)<0);)if(a=a-l|0,e=((s=(b=0|ar[c+4>>2])>>>0<l>>>0)<<31>>31)+e|0,b=l-(s?b:0)|0,ar[(c=s?c+8|0:c)>>2]=(0|ar[c>>2])+b,ar[(s=c+4|0)>>2]=(0|ar[s>>2])-b,ar[t>>2]=ar[i>>2],ar[4+t>>2]=c,ar[8+t>>2]=e,(0|a)==(0|(l=0|ia(0|F(146,0|t))))){u=3;break A}ar[A+16>>2]=0,ar[f>>2]=0,ar[n>>2]=0,ar[A>>2]=32|ar[A>>2],r=2==(0|e)?0:r-(0|ar[c+4>>2])|0}else u=3}while(0);return 3==(0|u)&&(b=0|ar[A+44>>2],ar[A+16>>2]=b+(0|ar[A+48>>2]),ar[f>>2]=b,ar[n>>2]=b),ur=o,0|r}function ta(A){var e,r=0,i=0;e=A|=0;A:do{if(3&e)for(r=e;;){if(!(0|tr[A>>0])){A=r;break A}if(!(3&(r=A=A+1|0))){i=4;break}}else i=4}while(0);if(4==(0|i)){for(;!((-2139062144&(r=0|ar[A>>2])^-2139062144)&r+-16843009);)A=A+4|0;if((255&r)<<24>>24)for(;0!=(0|tr[(A=A+1|0)>>0]););}return A-e|0}function oa(A,e){e|=0;var r=0,i=0;if(r=0|tr[(A|=0)>>0],i=0|tr[e>>0],r<<24>>24==0||r<<24>>24!=i<<24>>24)A=i;else{for(;e=e+1|0,r=0|tr[(A=A+1|0)>>0],i=0|tr[e>>0],r<<24>>24!=0&&r<<24>>24==i<<24>>24;);A=i}return(255&r)-(255&A)|0}function aa(A,e,r){A|=0;var i=0,f=0,n=0,t=0;n=255&(e|=0),i=0!=(0|(r|=0));A:do{if(i&0!=(3&A|0))for(f=255&e;;){if((0|tr[A>>0])==f<<24>>24){t=6;break A}if(!((i=0!=(0|(r=r+-1|0)))&0!=(3&(A=A+1|0)|0))){t=5;break}}else t=5}while(0);5==(0|t)&&(i?t=6:r=0);A:do{if(6==(0|t)&&(f=255&e,(0|tr[A>>0])!=f<<24>>24)){i=0|sr(n,16843009);e:do{if(3<r>>>0){for(;!((-2139062144&(n=ar[A>>2]^i)^-2139062144)&n+-16843009|0);)if(A=A+4|0,(r=r+-4|0)>>>0<=3){t=11;break e}}else t=11}while(0);if(11==(0|t)&&!r){r=0;break}for(;;){if((0|tr[A>>0])==f<<24>>24)break A;if(A=A+1|0,!(r=r+-1|0)){r=0;break}}}}while(0);return 0|(0|r?A:0)}function ca(A,e){A|=0;var r=0,i=0,f=0;i=255&(e|=0);A:do{if(i){if(3&A){r=255&e;do{if((f=0|tr[A>>0])<<24>>24==0||f<<24>>24==r<<24>>24)break A;A=A+1|0}while(0!=(3&A|0))}i=0|sr(i,16843009),r=0|ar[A>>2];e:do{if(!((-2139062144&r^-2139062144)&r+-16843009))do{if((-2139062144&(f=r^i)^-2139062144)&f+-16843009|0)break e;r=0|ar[(A=A+4|0)>>2]}while(!((-2139062144&r^-2139062144)&r+-16843009|0))}while(0);for(r=255&e;(f=0|tr[A>>0])<<24>>24!=0&&f<<24>>24!=r<<24>>24;)A=A+1|0}else A=A+(0|ta(A))|0}while(0);return 0|A}function la(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f,n;return n=ur=(f=ur)+31&-32,ur=ur+16|0,ar[n>>2]=i,i=0|ua(A,e,r,n),ur=f,0|i}function ua(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f,n,t=0,o=0,a=0,c=0,l=0;for(l=ur=(n=ur)+31&-32,ur=ur+128|0,t=l+124|0,a=9148,f=(o=l)+124|0;ar[o>>2]=ar[a>>2],a=a+4|0,(0|(o=o+4|0))<(0|f););return 2147483646<(e+-1|0)>>>0?e?(ar[(e=8708)>>2]=75,e=-1):(A=t,e=1,c=4):c=4,4==(0|c)&&(c=(c=-2-A|0)>>>0<e>>>0?c:e,ar[l+48>>2]=c,ar[(t=l+20|0)>>2]=A,e=(ar[l+44>>2]=A)+c|0,ar[(A=l+16|0)>>2]=e,ar[l+28>>2]=e,e=0|sa(l,r,i),c&&(l=0|ar[t>>2],tr[l+(((0|l)==(0|ar[A>>2]))<<31>>31)>>0]=0)),ur=n,0|e}function sa(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0;for(k=ur=(t=ur)+31&-32,ur=ur+224|0,i=k+120|0,f=k+80|0,k=(n=k)+136|0,a=(o=f)+40|0;(0|(o=o+4|(ar[o>>2]=0)))<(0|a););return ar[i>>2]=ar[r>>2],r=(0|ba(0,e,i,n,f))<0?-1:(d=-1<(0|ar[A+76>>2])?0|da():0,b=32&(r=0|ar[A>>2]),(0|tr[A+74>>0])<1&&(ar[A>>2]=-33&r),0|ar[(o=A+48|0)>>2]?r=0|ba(A,e,i,n,f):(c=0|ar[(a=A+44|0)>>2],ar[a>>2]=k,ar[(l=A+28|0)>>2]=k,ar[(u=A+20|0)>>2]=k,ar[o>>2]=80,ar[(s=A+16|0)>>2]=k+80,r=0|ba(A,e,i,n,f),c&&(ns[63&ar[A+36>>2]](A,0,0),r=0==(0|ar[u>>2])?-1:r,ar[a>>2]=c,ar[o>>2]=0,ar[s>>2]=0,ar[l>>2]=0,ar[u>>2]=0)),o=0|ar[A>>2],ar[A>>2]=o|b,0|d&&ka(),0==(32&o|0)?r:-1),ur=t,0|r}function ba(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0,f|=0;var n,t,o,a,c,l,u,s,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0;B=ur=(s=ur)+31&-32,ur=ur+64|0,c=B+16|0,I=(l=B)+24|0,u=B+8|0,B=B+20|0,ar[c>>2]=e,n=0!=(0|A),o=t=I+40|0,I=I+39|0,a=4+u|0,v=b=d=0;A:for(;;){do{if(-1<(0|b)){if((2147483647-b|0)<(0|d)){ar[(b=8708)>>2]=75,b=-1;break}b=d+b|0;break}}while(0);if(!((d=0|tr[e>>0])<<24>>24)){W=87;break}k=e;e:for(;;){switch(d<<24>>24){case 37:d=k,W=9;break e;case 0:d=k;break e}C=k+1|0,ar[c>>2]=C,d=0|tr[C>>0],k=C}e:do{if(9==(0|W))for(;;){if(37!=((W=0)|tr[k+1>>0]))break e;if(d=d+1|0,k=k+2|0,ar[c>>2]=k,37!=(0|tr[k>>0]))break;W=9}}while(0);if(d=d-e|0,n&&ha(A,e,d),0|d)e=k;else{(d=(0|tr[(h=k+1|0)>>0])-48|0)>>>0<10?(Z=(C=36==(0|tr[k+2>>0]))?d:-1,v=C?1:v,h=C?k+3|0:h):Z=-1,ar[c>>2]=h,k=((d=0|tr[h>>0])<<24>>24)-32|0;e:do{if(k>>>0<32)for(w=0,g=d;;){if(!(75913&(d=1<<k))){d=g;break e}if(w|=d,h=h+1|0,ar[c>>2]=h,32<=(k=((d=0|tr[h>>0])<<24>>24)-32|0)>>>0)break;g=d}else w=0}while(0);if(d<<24>>24==42){if((d=(0|tr[(k=h+1|0)>>0])-48|0)>>>0<10&&36==(0|tr[h+2>>0]))ar[f+(d<<2)>>2]=10,d=0|ar[i+((0|tr[k>>0])-48<<3)>>2],v=1,h=h+3|0;else{if(0|v){b=-1;break}h=(v=n?(v=3+(0|ar[r>>2])&-4,d=0|ar[v>>2],ar[r>>2]=v+4,0):d=0,k)}ar[c>>2]=h,d=(C=(0|d)<0)?0-d|0:d,w=C?8192|w:w}else{if((0|(d=0|wa(c)))<0){b=-1;break}h=0|ar[c>>2]}do{if(46==(0|tr[h>>0])){if(42!=(0|tr[h+1>>0])){ar[c>>2]=h+1,k=0|wa(c),h=0|ar[c>>2];break}if((k=(0|tr[(g=h+2|0)>>0])-48|0)>>>0<10&&36==(0|tr[h+3>>0])){ar[f+(k<<2)>>2]=10,k=0|ar[i+((0|tr[g>>0])-48<<3)>>2],h=h+4|0,ar[c>>2]=h;break}if(0|v){b=-1;break A}n?(C=3+(0|ar[r>>2])&-4,k=0|ar[C>>2],ar[r>>2]=C+4):k=0,h=ar[c>>2]=g}else k=-1}while(0);for(y=0;;){if(57<((0|tr[h>>0])-65|0)>>>0){b=-1;break A}if(C=h+1|0,ar[c>>2]=C,!(((m=255&(g=0|tr[(0|tr[h>>0])-65+(43528+(58*y|0))>>0]))+-1|0)>>>0<8))break;y=m,h=C}if(!(g<<24>>24)){b=-1;break}p=-1<(0|Z);do{if(g<<24>>24==19){if(p){b=-1;break A}W=49}else{if(p){ar[f+(Z<<2)>>2]=m,Z=0|ar[(p=i+(Z<<3)|0)+4>>2],ar[(W=l)>>2]=ar[p>>2],ar[W+4>>2]=Z,W=49;break}if(!n){b=0;break A}va(l,m,r)}}while(0);if(49!=(0|W)||(W=0,n)){h=0!=(0|y)&3==(15&(h=0|tr[h>>0])|0)?-33&h:h,p=-65537&w,Z=0==(8192&w|0)?w:p;e:do{switch(0|h){case 110:switch((255&y)<<24>>24){case 0:case 1:ar[ar[l>>2]>>2]=b,d=0,e=C;continue A;case 2:d=0|ar[l>>2],ar[d>>2]=b,ar[d+4>>2]=((0|b)<0)<<31>>31,d=0,e=C;continue A;case 3:or[ar[l>>2]>>1]=b,d=0,e=C;continue A;case 4:tr[ar[l>>2]>>0]=b,d=0,e=C;continue A;case 6:ar[ar[l>>2]>>2]=b,d=0,e=C;continue A;case 7:d=0|ar[l>>2],ar[d>>2]=b,ar[d+4>>2]=((0|b)<0)<<31>>31,d=0,e=C;continue A;default:d=0,e=C;continue A}case 112:h=120,k=8<k>>>0?k:8,e=8|Z,W=61;break;case 88:case 120:e=Z,W=61;break;case 111:g=43992,k=(w=0)==(8&Z|0)|(0|(p=o-(m=0|ma(e=0|ar[(h=l)>>2],h=0|ar[h+4>>2],t))|0))<(0|k)?k:p+1|0,p=Z,W=67;break;case 105:case 100:if(e=0|ar[(h=l)>>2],(0|(h=0|ar[h+4>>2]))<0){e=0|gu(0,0,0|e,0|h),h=D,ar[(w=l)>>2]=e,ar[w+4>>2]=h,w=1,g=43992,W=66;break e}w=0!=(2049&Z|0)&1,g=0==(2048&Z|0)?0==(1&Z|0)?43992:43994:43993,W=66;break e;case 117:g=43992,e=(w=0)|ar[(h=l)>>2],h=0|ar[h+4>>2],W=66;break;case 99:tr[I>>0]=ar[l>>2],e=I,w=0,g=43992,m=t,h=1,k=p;break;case 109:h=0|ya(0|ar[(h=8708)>>2]),W=71;break;case 115:h=0|(h=0|ar[l>>2])?h:44002,W=71;break;case 67:ar[u>>2]=ar[l>>2],ar[a>>2]=0,m=-1,h=ar[l>>2]=u,W=75;break;case 83:e=0|ar[l>>2],W=k?(m=k,h=e,75):(Za(A,32,d,0,Z),e=0,84);break;case 65:case 71:case 70:case 69:case 97:case 103:case 102:case 101:d=0|Wa(A,+J[l>>3],d,k,Z,h),e=C;continue A;default:w=0,g=43992,m=t,h=k,k=Z}}while(0);e:do{if(61==(0|W))m=0|ga(y=0|ar[(Z=l)>>2],Z=0|ar[Z+4>>2],t,32&h),w=(g=0==(8&e|0)|0==(0|y)&0==(0|Z))?0:2,g=g?43992:43992+(h>>4)|0,p=e,e=y,h=Z,W=67;else if(66==(0|W))m=0|pa(e,h,t),p=Z,W=67;else if(71==(0|W))w=W=0,g=43992,m=(y=0==(0|(Z=0|aa(e=h,0,k))))?h+k|0:Z,h=y?k:Z-h|0,k=p;else if(75==(0|W)){for(g=h,k=e=W=0;(w=0|ar[g>>2])&&!((0|(k=0|Ca(B,w)))<0|(m-e|0)>>>0<k>>>0)&&(e=k+e|0)>>>0<m>>>0;)g=g+4|0;if((0|k)<0){b=-1;break A}if(Za(A,32,d,e,Z),e)for(w=0;;){if(!(k=0|ar[h>>2])){W=84;break e}if((0|e)<(0|(w=(k=0|Ca(B,k))+w|0))){W=84;break e}if(ha(A,B,k),e>>>0<=w>>>0){W=84;break}h=h+4|0}else e=0,W=84}}while(0);if(67==(0|W))Z=(W=0)!=(0|k)|(h=0!=(0|e)|0!=(0|h)),h=o-m+(1&(1^h))|0,e=Z?m:t,m=t,h=!Z||(0|h)<(0|k)?k:h,k=-1<(0|k)?-65537&p:p;else if(84==(0|W)){W=0,Za(A,32,d,e,8192^Z),d=(0|e)<(0|d)?d:e,e=C;continue}Za(A,32,d=(0|d)<(0|(Z=(p=(0|h)<(0|(y=m-e|0))?y:h)+w|0))?Z:d,Z,k),ha(A,g,w),Za(A,48,d,Z,65536^k),Za(A,48,p,y,0),ha(A,e,y),Za(A,32,d,Z,8192^k),e=C}else d=0,e=C}}A:do{if(87==(0|W)&&!A)if(v){for(b=1;e=0|ar[f+(b<<2)>>2];)if(va(i+(b<<3)|0,e,r),10<=(0|(b=b+1|0))){b=1;break A}for(;;){if(0|ar[f+(b<<2)>>2]){b=-1;break A}if(10<=(0|(b=b+1|0))){b=1;break}}}else b=0}while(0);return ur=s,0|b}function da(){return 0}function ka(){0}function ha(A,e,r){e|=0,r|=0,32&ar[(A|=0)>>2]||Va(e,r,A)}function wa(A){var e=0,r=0,i=0;if(r=0|ar[(A|=0)>>2],(i=(0|tr[r>>0])-48|0)>>>0<10)for(e=0;e=i+(10*e|0)|0,r=r+1|0,ar[A>>2]=r,(i=(0|tr[r>>0])-48|0)>>>0<10;);else e=0;return 0|e}function va(A,e,r){A|=0,e|=0,r|=0;var i=0,f=0,n=0;A:do{if(e>>>0<=20){switch(0|e){case 9:i=3+(0|ar[r>>2])&-4,e=0|ar[i>>2],ar[r>>2]=i+4,ar[A>>2]=e;break A;case 10:i=3+(0|ar[r>>2])&-4,e=0|ar[i>>2],ar[r>>2]=i+4,ar[(i=A)>>2]=e,ar[i+4>>2]=((0|e)<0)<<31>>31;break A;case 11:i=3+(0|ar[r>>2])&-4,e=0|ar[i>>2],ar[r>>2]=i+4,ar[(i=A)>>2]=e,ar[i+4>>2]=0;break A;case 12:i=7+(0|ar[r>>2])&-8,f=0|ar[(e=i)>>2],e=0|ar[e+4>>2],ar[r>>2]=i+8,ar[(i=A)>>2]=f,ar[i+4>>2]=e;break A;case 13:f=3+(0|ar[r>>2])&-4,i=0|ar[f>>2],ar[r>>2]=f+4,i=(65535&i)<<16>>16,ar[(f=A)>>2]=i,ar[f+4>>2]=((0|i)<0)<<31>>31;break A;case 14:f=3+(0|ar[r>>2])&-4,i=0|ar[f>>2],ar[r>>2]=f+4,ar[(f=A)>>2]=65535&i,ar[f+4>>2]=0;break A;case 15:f=3+(0|ar[r>>2])&-4,i=0|ar[f>>2],ar[r>>2]=f+4,i=(255&i)<<24>>24,ar[(f=A)>>2]=i,ar[f+4>>2]=((0|i)<0)<<31>>31;break A;case 16:f=3+(0|ar[r>>2])&-4,i=0|ar[f>>2],ar[r>>2]=f+4,ar[(f=A)>>2]=255&i,ar[f+4>>2]=0;break A;case 17:case 18:f=7+(0|ar[r>>2])&-8,n=+J[f>>3],ar[r>>2]=f+8,J[A>>3]=n;break A;default:break A}}}while(0)}function ga(A,e,r,i){if(r|=0,i|=0,!(0==(0|(A|=0))&0==(0|(e|=0))))for(;tr[(r=r+-1|0)>>0]=0|cr[44040+(15&A)>>0]|i,!(0==(0|(A=0|Wu(0|A,0|e,4)))&0==(0|(e=D))););return 0|r}function ma(A,e,r){if(r|=0,!(0==(0|(A|=0))&0==(0|(e|=0))))for(;tr[(r=r+-1|0)>>0]=7&A|48,!(0==(0|(A=0|Wu(0|A,0|e,3)))&0==(0|(e=D))););return 0|r}function pa(A,e,r){r|=0;var i=0;if(0<(e|=0)>>>0|0==(0|e)&4294967295<(A|=0)>>>0){for(;i=0|Zu(0|A,0|e,10,0),tr[(r=r+-1|0)>>0]=255&i|48,A=0|yu(0|(i=A),0|e,10,0),9<e>>>0|9==(0|e)&4294967295<i>>>0;)e=D;e=A}else e=A;if(e)for(;tr[(r=r+-1|0)>>0]=(e>>>0)%10|48,!(e>>>0<10);)e=(e>>>0)/10|0;return 0|r}function ya(A){return 0|function(A,e){A|=0,e|=0;var r=0,i=0;i=0;for(;;){if((0|cr[44058+i>>0])==(0|A)){A=2;break}if(87==(0|(r=i+1|0))){r=44146,i=87,A=5;break}i=r}2==(0|A)&&(i?(r=44146,A=5):r=44146);if(5==(0|A))for(;;){for(;r=(A=r)+1|0,0!=(0|tr[A>>0]););if(!(i=i+-1|0))break;A=5}return 0|function(A,e){return 0|function(A,e){A|=0,e=(e|=0)?0|function(A,e,r){e|=0,r|=0;var i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0;i=1794895138+(0|ar[(A|=0)>>2])|0,t=0|Ga(0|ar[A+8>>2],i),f=0|Ga(0|ar[A+12>>2],i),n=0|Ga(0|ar[A+16>>2],i);A:do{if(t>>>0<e>>>2>>>0&&(s=e-(t<<2)|0,f>>>0<s>>>0&n>>>0<s>>>0)&&0==(3&(n|f)|0)){for(s=f>>>2,u=n>>>2,l=0;;){if(f=0|Ga(0|ar[A+((n=(o=(c=l+(a=t>>>1)|0)<<1)+s|0)<<2)>>2],i),!((n=0|Ga(0|ar[A+(n+1<<2)>>2],i))>>>0<e>>>0&f>>>0<(e-n|0)>>>0)){f=0;break A}if(0|tr[A+(n+f)>>0]){f=0;break A}if(!(f=0|oa(r,A+n|0)))break;if(f=(0|f)<0,1==(0|t)){f=0;break A}l=f?l:c,t=f?a:t-a|0}n=0|Ga(0|ar[A+((f=o+u|0)<<2)>>2],i),f=(f=0|Ga(0|ar[A+(f+1<<2)>>2],i))>>>0<e>>>0&n>>>0<(e-f|0)>>>0&&0==(0|tr[A+(f+n)>>0])?A+f|0:0}else f=0}while(0);return 0|f}(0|ar[e>>2],0|ar[e+4>>2],A):0;return 0|(0|e?e:A)}(A|=0,e|=0)}(r,0|ar[e+20>>2])}(A|=0,0|ar[2208])}function Za(A,e,r,i,f){A|=0,e|=0;var n,t;if(n=ur=(t=ur)+31&-32,ur=ur+256|0,(0|(i|=0))<(0|(r|=0))&0==(73728&(f|=0)|0)){if(Vu(0|n,0|e,0|((f=r-i|0)>>>0<256?f:256)),255<f>>>0){for(e=r-i|0;ha(A,n,256),255<(f=f+-256|0)>>>0;);f=255&e}ha(A,n,f)}ur=t}function Ca(A,e){return e|=0,0|(A=(A|=0)?0|Ea(A,e):0)}function Wa(A,e,r,i,f,n){A|=0,e=+e,r|=0,i|=0,f|=0,n|=0;var t,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0;l=ur=(t=ur)+31&-32,ur=ur+560|0,c=l+8|0,B=E=(w=l)+524|0,I=(l=l+512|0)+12|(ar[w>>2]=0),Ia(e),Z=(0|D)<0?(e=-e,C=1,44009):(C=0!=(2049&f|0)&1,0==(2048&f|0)?0==(1&f|0)?44010:44015:44012),Ia(e),W=2146435072&D;do{if(W>>>0<2146435072|2146435072==(0|W)&!1){if((o=0!=(d=2*Ba(e,w)))&&(ar[w>>2]=(0|ar[w>>2])-1),97==(0|(g=32|n))){b=0==(0|(k=32&n))?Z:Z+9|0,s=2|C,o=12-i|0;do{if(!(11<i>>>0|0==(0|o))){for(e=8;e*=16,0!=(0|(o=o+-1|0)););if(45==(0|tr[b>>0])){e=-(e+(-d-e));break}e=d+e-e;break}e=d}while(0);for((0|(o=0|pa(o=(0|(a=0|ar[w>>2]))<0?0-a|0:a,((0|o)<0)<<31>>31,I)))==(0|I)&&(tr[(o=l+11|0)>>0]=48),tr[o+-1>>0]=43+(a>>31&2),tr[(u=o+-2|0)>>0]=n+15,l=(0|i)<1,c=0==(8&f|0),o=E;W=~~e,a=o+1|0,tr[o>>0]=cr[44040+W>>0]|k,e=16*(e-(0|W)),o=1!=(a-B|0)||c&l&0==e?a:(tr[a>>0]=46,o+2|0),0!=e;);W=o-B|0,Za(A,32,r,o=(B=I-u|0)+s+(I=0!=(0|i)&(W+-2|0)<(0|i)?i+2|0:W)|0,f),ha(A,b,s),Za(A,48,r,o,65536^f),ha(A,E,W),Za(A,48,I-W|0,0,0),ha(A,u,B),Za(A,32,r,o,8192^f);break}for(a=(0|i)<0?6:i,o?(o=(0|ar[w>>2])-28|0,ar[w>>2]=o,e=268435456*d):(e=d,o=0|ar[w>>2]),c=W=(0|o)<0?c:c+288|0;p=~~e>>>0,ar[c>>2]=p,c=c+4|0,0!=(e=1e9*(e-(p>>>0))););if(0<(0|o))for(l=W,s=c;;){if(u=(0|o)<29?o:29,l>>>0<=(o=s+-4|0)>>>0){for(c=0;v=0|Zu(0|(m=0|vu(0|(m=0|Iu(0|ar[o>>2],0,0|u)),0|D,0|c,0)),0|(p=D),1e9,0),ar[o>>2]=v,c=0|yu(0|m,0|p,1e9,0),l>>>0<=(o=o+-4|0)>>>0;);c&&(ar[(l=l+-4|0)>>2]=c)}for(c=s;!(c>>>0<=l>>>0||0|ar[(o=c+-4|0)>>2]);)c=o;if(o=(0|ar[w>>2])-u|0,!(0<(0|(ar[w>>2]=o))))break;s=c}else l=W;if((0|o)<0){i=1+((a+25|0)/9|0)|0,h=102==(0|g);do{if(k=(0|(k=0-o|0))<9?k:9,l>>>0<c>>>0){for(u=(1<<k)-1|0,s=1e9>>>k,b=0,o=l;p=0|ar[o>>2],ar[o>>2]=(p>>>k)+b,b=0|sr(p&u,s),(o=o+4|0)>>>0<c>>>0;);o=0==(0|ar[l>>2])?l+4|0:l,o=b?(ar[c>>2]=b,l=o,c+4|0):(l=o,c)}else l=0==(0|ar[l>>2])?l+4|0:l,o=c;c=(0|i)<(o-(c=h?W:l)>>2|0)?c+(i<<2)|0:o,o=(0|ar[w>>2])+k|0,ar[w>>2]=o}while((0|o)<0);o=l,i=c}else o=l,i=c;if(p=W,o>>>0<i>>>0){if(c=9*(p-o>>2)|0,10<=(u=0|ar[o>>2])>>>0)for(l=10;c=c+1|0,(l=10*l|0)>>>0<=u>>>0;);}else c=0;if((0|(l=a-(102!=(0|g)?c:0)+(((v=0!=(0|a))&(h=103==(0|g)))<<31>>31)|0))<((9*(i-p>>2)|0)-9|0)){if(k=W+4+(((0|(l=l+9216|0))/9|0)-1024<<2)|0,(0|(l=1+((0|l)%9|0)|0))<9)for(u=10;u=10*u|0,9!=(0|(l=l+1|0)););else u=10;if((l=(k+4|0)==(0|i))&0==(0|(b=((s=0|ar[k>>2])>>>0)%(u>>>0)|0)))l=k;else if(d=0==(1&((s>>>0)/(u>>>0)|0)|0)?9007199254740992:9007199254740994,e=b>>>0<(m=(0|u)/2|0)>>>0?.5:l&(0|b)==(0|m)?1:1.5,C&&(e=(m=45==(0|tr[Z>>0]))?-e:e,d=m?-d:d),l=s-b|0,ar[k>>2]=l,d+e!=d){if(m=l+u|0,999999999<(ar[k>>2]=m)>>>0)for(c=k;(l=c+-4|0)>>>(ar[c>>2]=0)<o>>>0&&(ar[(o=o+-4|0)>>2]=0),m=1+(0|ar[l>>2])|0,999999999<(ar[l>>2]=m)>>>0;)c=l;else l=k;if(c=9*(p-o>>2)|0,10<=(s=0|ar[o>>2])>>>0)for(u=10;c=c+1|0,(u=10*u|0)>>>0<=s>>>0;);}else l=k;l=(l=l+4|0)>>>0<i>>>0?l:i,m=o}else l=i,m=o;for(g=l;;){if(g>>>0<=m>>>0){w=0;break}if(0|ar[(o=g+-4|0)>>2]){w=1;break}g=o}i=0-c|0;do{if(h){if(a=(0|c)<(0|(o=(1&(1^v))+a|0))&-5<(0|c)?(u=n+-1|0,o+-1-c|0):(u=n+-2|0,o+-1|0),!(o=8&f)){if(w&&0!=(0|(y=0|ar[g+-4>>2])))if((y>>>0)%10|0)l=0;else for(l=0,o=10;l=l+1|0,!((y>>>0)%((o=10*o|0)>>>0)|0););else l=9;if(o=(9*(g-p>>2)|0)-9|0,102==(32|u)){a=(0|a)<(0|(k=0<(0|(k=o-l|0))?k:0))?a:k,k=0;break}a=(0|a)<(0|(k=0<(0|(k=o+c-l|0))?k:0))?a:k,k=0;break}k=o}else u=n,k=8&f}while(0);if(s=0!=(0|(h=a|k))&1,b=102==(32|u))o=(v=0)<(0|c)?c:0;else{if(((l=I)-(o=0|pa(o=(0|c)<0?i:c,((0|o)<0)<<31>>31,I))|0)<2)for(;tr[(o=o+-1|0)>>0]=48,(l-o|0)<2;);tr[o+-1>>0]=43+(c>>31&2),tr[(o=o+-2|0)>>0]=u,o=l-(v=o)|0}if(Za(A,32,r,o=C+1+a+s+o|0,f),ha(A,Z,C),Za(A,48,r,o,65536^f),b){s=k=E+9|0,b=E+8|0,l=u=W>>>0<m>>>0?W:m;do{if(c=0|pa(0|ar[l>>2],0,k),(0|l)==(0|u))(0|c)==(0|k)&&(tr[b>>0]=48,c=b);else if(E>>>0<c>>>0)for(Vu(0|E,48,c-B|0);E>>>0<(c=c+-1|0)>>>0;);ha(A,c,s-c|0),l=l+4|0}while(l>>>0<=W>>>0);if(0|h&&ha(A,44056,1),l>>>0<g>>>0&0<(0|a))for(;;){if(E>>>0<(c=0|pa(0|ar[l>>2],0,k))>>>0)for(Vu(0|E,48,c-B|0);E>>>0<(c=c+-1|0)>>>0;);if(ha(A,c,(0|a)<9?a:9),c=a+-9|0,!((l=l+4|0)>>>0<g>>>0&9<(0|a))){a=c;break}a=c}Za(A,48,a+9|0,9,0)}else{if(h=w?g:m+4|0,-1<(0|a)){k=0==(0|k),i=w=E+9|0,s=0-B|0,b=E+8|0,u=m;do{(0|(c=0|pa(0|ar[u>>2],0,w)))==(0|w)&&(tr[b>>0]=48,c=b);do{if((0|u)==(0|m)){if(l=c+1|0,ha(A,c,1),k&(0|a)<1){c=l;break}ha(A,44056,1),c=l}else{if(c>>>0<=E>>>0)break;for(Vu(0|E,48,c+s|0);E>>>0<(c=c+-1|0)>>>0;);}}while(0);ha(A,c,(0|(B=i-c|0))<(0|a)?B:a),a=a-B|0,u=u+4|0}while(u>>>0<h>>>0&-1<(0|a))}Za(A,48,a+18|0,18,0),ha(A,v,I-v|0)}Za(A,32,r,o,8192^f)}else E=0!=(32&n|0),Za(A,32,r,o=C+3|0,-65537&f),ha(A,Z,C),ha(A,e!=e|!1?E?46225:44036:E?44028:44032,3),Za(A,32,r,o,8192^f)}while(0);return ur=t,0|((0|o)<(0|r)?r:o)}function Ia(A){A=+A;var e;return J[d>>3]=A,e=0|ar[d>>2],D=0|ar[d+4>>2],0|e}function Ba(A,e){return+ +function A(e,r){e=+e;r|=0;var i=0,f=0,n=0;J[d>>3]=e;i=0|ar[d>>2];f=0|ar[d+4>>2];n=0|Wu(0|i,0|f,52);switch(2047&n){case 0:i=0!=e?(e=+A(0x10000000000000000*e,r),(0|ar[r>>2])-64|0):0,ar[r>>2]=i;break;case 2047:break;default:ar[r>>2]=(2047&n)-1022,ar[d>>2]=i,ar[d+4>>2]=-2146435073&f|1071644672,e=+J[d>>3]}return+e}(A=+A,e|=0)}function Ea(A,e){A|=0,e|=0;do{if(A){if(e>>>0<128){tr[A>>0]=e,A=1;break}if(!(0|ar[ar[8832>>2]>>2])){if(57216==(-128&e|0)){tr[A>>0]=e,A=1;break}ar[(A=8708)>>2]=84,A=-1;break}if(e>>>0<2048){tr[A>>0]=e>>>6|192,tr[A+1>>0]=63&e|128,A=2;break}if(e>>>0<55296|57344==(-8192&e|0)){tr[A>>0]=e>>>12|224,tr[A+1>>0]=e>>>6&63|128,tr[A+2>>0]=63&e|128,A=3;break}if((e+-65536|0)>>>0<1048576){tr[A>>0]=e>>>18|240,tr[A+1>>0]=e>>>12&63|128,tr[A+2>>0]=e>>>6&63|128,tr[A+3>>0]=63&e|128,A=4;break}ar[(A=8708)>>2]=84,A=-1;break}A=1}while(0);return 0|A}function Ga(A,e){var r;return r=0|Bu(0|(A|=0)),0|(0==(0|(e|=0))?A:r)}function Va(A,e,r){A|=0,e|=0;var i=0,f=0,n=0,t=0,o=0;(f=0|ar[(i=(r|=0)+16|0)>>2])?n=5:0|Xa(r)?i=0:(f=0|ar[i>>2],n=5);A:do{if(5==(0|n)){if((f-(i=t=0|ar[(o=r+20|0)>>2])|0)>>>0<e>>>0){i=0|ns[63&ar[r+36>>2]](r,A,e);break}e:do{if(-1<(0|tr[r+75>>0])){for(t=e;;){if(!t){n=0,f=A;break e}if(10==(0|tr[A+(f=t+-1|0)>>0]))break;t=f}if((i=0|ns[63&ar[r+36>>2]](r,A,t))>>>0<t>>>0)break A;f=A+(n=t)|0,e=e-t|0,i=0|ar[o>>2]}else n=0,f=A}while(0);Eu(0|i,0|f,0|e),ar[o>>2]=(0|ar[o>>2])+e,i=n+e|0}}while(0);return 0|i}function Xa(A){var e=0,r=0;return r=0|tr[(e=(A|=0)+74|0)>>0],tr[e>>0]=r+255|r,0|(A=8&(e=0|ar[A>>2])?(ar[A>>2]=32|e,-1):(ar[A+8>>2]=0,r=(ar[A+4>>2]=0)|ar[A+44>>2],ar[A+28>>2]=r,ar[A+20>>2]=r,ar[A+16>>2]=r+(0|ar[A+48>>2]),0))}function _a(A,e,r){var i,f,n;return 0|(0|(i=A|=0,f=e|=0,n=r|=0,0|(n=0|Fa(i|=0,f|=0,n|=0,-1,-1))))}function Fa(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0,f|=0;var n,t,o,a;return t=ur=(a=ur)+31&-32,ur=ur+128|0,ar[t>>2]=0,ar[(o=4+t|0)>>2]=A,ar[44+t>>2]=A,ar[(n=8+t|0)>>2]=(0|A)<0?-1:A+2147483647|0,ar[76+t>>2]=-1,Na(t,0),r=0|Ra(t,r,1,i,f),0|e&&(ar[e>>2]=A+((0|ar[o>>2])+(0|ar[108+t>>2])-(0|ar[n>>2]))),ur=a,0|r}function Na(A,e){e|=0;var r,i,f;ar[(A|=0)+104>>2]=e,f=(r=0|ar[A+8>>2])-(i=0|ar[A+4>>2])|0,ar[A+108>>2]=f,ar[A+100>>2]=0!=(0|e)&(0|e)<(0|f)?i+e|0:r}function Ra(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0,f|=0;var n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0;A:do{if(36<e>>>0)ar[(f=8708)>>2]=22,i=f=0;else{for(d=A+4|0,b=A+100|0;0!=(0|Ja(n=(n=0|ar[d>>2])>>>0<(0|ar[b>>2])>>>0?(ar[d>>2]=n+1,0|cr[n>>0]):0|Ya(A))););e:do{switch(0|n){case 43:case 45:if(n=(45==(0|n))<<31>>31,(t=0|ar[d>>2])>>>0<(0|ar[b>>2])>>>0){ar[d>>2]=t+1,s=n,n=0|cr[t>>0];break e}s=n,n=0|Ya(A);break e;default:s=0}}while(0);t=0==(0|e);do{if(16==(16|e)&48==(0|n)){if(120!=(32|(n=(n=0|ar[d>>2])>>>0<(0|ar[b>>2])>>>0?(ar[d>>2]=n+1,0|cr[n>>0]):0|Ya(A)))){if(t){e=8,l=46;break}l=32;break}if(n=(n=0|ar[d>>2])>>>0<(0|ar[b>>2])>>>0?(ar[d>>2]=n+1,0|cr[n>>0]):0|Ya(A),15<(0|cr[45951+n>>0])){if((i=0!=(0|ar[b>>2]))&&(ar[d>>2]=(0|ar[d>>2])-1),!r){Na(A,0),i=f=0;break A}if(!i){i=f=0;break A}ar[d>>2]=(0|ar[d>>2])-1,i=f=0;break A}e=16,l=46}else{if(e=t?10:e,!((0|cr[45951+n>>0])>>>0<e>>>0)){0|ar[b>>2]&&(ar[d>>2]=(0|ar[d>>2])-1),Na(A,0),ar[(f=8708)>>2]=22,i=f=0;break A}l=32}}while(0);e:do{if(32==(0|l))if(10==(0|e)){if((e=n+-48|0)>>>0<10){for(n=0,t=e;n=(10*n|0)+t|0,(t=(e=(e=0|ar[d>>2])>>>0<(0|ar[b>>2])>>>0?(ar[d>>2]=e+1,0|cr[e>>0]):0|Ya(A))+-48|0)>>>0<10&n>>>0<429496729;);r=0}else e=n,r=n=0;if((o=e+-48|0)>>>0<10){t=e;do{if(e=0|wu(0|n,0|r,10,0),(u=~(c=((0|o)<0)<<31>>31))>>>0<(a=D)>>>0|(0|a)==(0|u)&~o>>>0<e>>>0){e=10,l=72;break e}n=0|vu(0|e,0|a,0|o,0|c),r=D,o=(t=(e=0|ar[d>>2])>>>0<(0|ar[b>>2])>>>0?(ar[d>>2]=e+1,0|cr[e>>0]):0|Ya(A))+-48|0}while(o>>>0<10&(r>>>0<429496729|429496729==(0|r)&n>>>0<2576980378));9<o>>>0?(t=s,e=r):(e=10,l=72)}else t=s,e=r}else l=46}while(0);e:do{if(46==(0|l)){if(!(e+-1&e)){if(l=0|tr[46207+((23*e|0)>>>5&7)>>0],(t=255&(r=0|tr[45951+n>>0]))>>>0<e>>>0){for(n=0,o=t;n=o|n<<l,t=(t=0|ar[d>>2])>>>0<(0|ar[b>>2])>>>0?(ar[d>>2]=t+1,0|cr[t>>0]):0|Ya(A),n>>>0<134217728&(o=255&(r=0|tr[45951+t>>0]))>>>0<e>>>0;);o=0}else t=n,n=o=0;if(a=0|Wu(-1,-1,0|l),e>>>0<=(255&r)>>>0|(c=D)>>>0<o>>>0|(0|o)==(0|c)&a>>>0<n>>>0){r=o,l=72;break}for(t=o;;){if(n=0|Iu(0|n,0|t,0|l),o=D,n|=255&r,t=(t=0|ar[d>>2])>>>0<(0|ar[b>>2])>>>0?(ar[d>>2]=t+1,0|cr[t>>0]):0|Ya(A),e>>>0<=(255&(r=0|tr[45951+t>>0]))>>>0|c>>>0<o>>>0|(0|o)==(0|c)&a>>>0<n>>>0){r=o,l=72;break e}t=o}}if((t=255&(r=0|tr[45951+n>>0]))>>>0<e>>>0){for(n=0,o=t;n=o+(0|sr(n,e))|0,t=(t=0|ar[d>>2])>>>0<(0|ar[b>>2])>>>0?(ar[d>>2]=t+1,0|cr[t>>0]):0|Ya(A),n>>>0<119304647&(o=255&(r=0|tr[45951+t>>0]))>>>0<e>>>0;);o=0}else t=n,o=n=0;if((255&r)>>>0<e>>>0)for(l=0|yu(-1,-1,0|e,0),u=D,c=o;;){if(u>>>0<c>>>0|(0|c)==(0|u)&l>>>0<n>>>0){r=c,l=72;break e}if(o=0|wu(0|n,0|c,0|e,0),4294967295<(a=D)>>>0|-1==(0|a)&~(r&=255)>>>0<o>>>0){r=c,l=72;break e}if(n=0|vu(0|r,0,0|o,0|a),o=D,t=(t=0|ar[d>>2])>>>0<(0|ar[b>>2])>>>0?(ar[d>>2]=t+1,0|cr[t>>0]):0|Ya(A),e>>>0<=(255&(r=0|tr[45951+t>>0]))>>>0){r=o,l=72;break}c=o}else r=o,l=72}}while(0);if(72==(0|l))if((0|cr[45951+t>>0])>>>0<e>>>0){for(;n=(n=0|ar[d>>2])>>>0<(0|ar[b>>2])>>>0?(ar[d>>2]=n+1,0|cr[n>>0]):0|Ya(A),(0|cr[45951+n>>0])>>>0<e>>>0;);ar[(t=8708)>>2]=34,t=0==(1&i|0)&!0?s:0,e=f,n=i}else t=s,e=r;if(0|ar[b>>2]&&(ar[d>>2]=(0|ar[d>>2])-1),!(e>>>0<f>>>0|(0|e)==(0|f)&n>>>0<i>>>0)){if(!(0!=(1&i|0)|!1|0!=(0|t))){ar[(d=8708)>>2]=34,i=0|vu(0|i,0|f,-1,-1),f=D;break}if(f>>>0<e>>>0|(0|e)==(0|f)&i>>>0<n>>>0){ar[(d=8708)>>2]=34;break}}i=0|gu(n^t|0,e^(i=((0|t)<0)<<31>>31)|0,0|t,0|i),f=D}}while(0);return D=f,0|i}function Ya(A){var e=0,r=0,i=0,f=0,n=0,t=0,o=0;return!(0!=(0|(t=0|ar[(r=(A|=0)+104|0)>>2]))&&(0|ar[A+108>>2])>=(0|t))&&0<=(0|(e=0|Da(A)))?(i=0|ar[r>>2],r=A+8|0,i?i=((t=n=0|ar[r>>2])-(r=0|ar[A+4>>2])|0)<(0|(i=i-(0|ar[(f=A+108|0)>>2])|0))?n=t:(n=r+(i+-1)|0,t):(f=A+108|0,n=i=0|ar[r>>2],r=0|ar[A+4>>2]),ar[A+100>>2]=n,0|i&&(ar[f>>2]=i+1-r+(0|ar[f>>2])),(0|cr[(r=r+-1|0)>>0])!=(0|e)&&(tr[r>>0]=e)):o=4,4==(0|o)&&(ar[A+100>>2]=0,e=-1),0|e}function Ja(A){return 1&(32==(0|(A|=0))|(A+-9|0)>>>0<5)|0}function Da(A){var e,r;return e=ur=(r=ur)+31&-32,ur=ur+16|0,A=0==(0|Qa(A|=0))&&1==(0|ns[63&ar[A+32>>2]](A,e,1))?0|cr[e>>0]:-1,ur=r,0|A}function Qa(A){var e=0,r=0;return r=0|tr[(e=(A|=0)+74|0)>>0],tr[e>>0]=r+255|r,r=A+28|0,(0|ar[(e=A+20|0)>>2])>>>0>(0|ar[r>>2])>>>0&&ns[63&ar[A+36>>2]](A,0,0),ar[A+16>>2]=0,ar[r>>2]=0,(ar[e>>2]=0)|(e=4&(e=0|ar[A>>2])?(ar[A>>2]=32|e,-1):(r=(0|ar[A+44>>2])+(0|ar[A+48>>2])|0,ar[A+8>>2]=r,ar[A+4>>2]=r,e<<27>>31))}function Ta(A,e,r){var i,f,n;return 0|(0|(i=A|=0,f=e|=0,n=r|=0,0|(n=0|Fa(i|=0,f|=0,n|=0,0,-2147483648))))}function Ma(){return 0|(0|ar[ar[2208]>>2]?4:1)}function Sa(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o;return f=ur=(i=ur)+31&-32,ur=ur+16|0,ar[f>>2]=r,r=0|(n=A,t=e,o=f,0|ua(n|=0,2147483647,t|=0,o|=0)),ur=i,0|r}function Ua(A,e){A|=0,e|=0;var r,i;return i=ur=(r=ur)+31&-32,ur=ur+16|0,ar[i>>2]=A,ar[4+i>>2]=e,e=0|ia(0|Q(91,0|i)),ur=r,0|e}function Oa(A,e,r,i){A|=0,r|=0,i|=0;var f=0,n=0,t=0,o=0,a=0;f=0|ar[(e|=0)>>2],a=0!=(0|i)&&0!=(0|(n=0|ar[i>>2]))?A?(ar[i>>2]=0,o=r,t=f,43):(t=f,i=r,25):5;A:do{if(5==(0|a)){if(i=0!=(0|A),0|ar[ar[(a=8832)>>2]>>2]){if(i){i=r,a=15;break}i=r,a=14;break}if(!i){r=0|ta(f),a=59;break}e:do{if(r){for(i=r;(n=0|tr[f>>0])<<24>>24;){if(f=f+1|0,ar[A>>2]=n<<24>>24&57343,!(i=i+-1|0))break e;A=A+4|0}ar[A>>2]=0,r=r-i|(ar[e>>2]=0),a=59;break A}}while(0);ar[e>>2]=f,a=59}}while(0);A:for(;;){e:do{if(14==(0|a)){for(;;){if(((255&(n=0|tr[f>>0]))-1|0)>>>0<127&&0==(3&f|0)&&(n=255&(a=0|ar[f>>2]),!(-2139062144&(a+-16843009|a)))){for(;i=i+-4|0,!(-2139062144&((n=0|ar[(f=f+4|0)>>2])+-16843009|n)|0););n&=255}if(127<=((n&=255)+-1|0)>>>0)break;f=f+1|0,i=i+-1|0}if(!(50<(n=n+-194|0)>>>0)){n=0|ar[8240+(n<<2)>>2],t=f+1|0,a=25;continue A}a=53}else{if(15==(0|a)){r:do{if(i){for(;;){n=0|tr[f>>0];do{if(((255&n)-1|0)>>>0<127&&4<i>>>0&0==(3&f|0)){for(;;){if(-2139062144&((n=0|ar[f>>2])+-16843009|n)|0){a=38;break}if(ar[A>>2]=255&n,ar[A+4>>2]=cr[f+1>>0],ar[A+8>>2]=cr[f+2>>0],t=f+4|0,n=A+16|0,ar[A+12>>2]=cr[f+3>>0],!(4<(i=i+-4|0)>>>0)){a=37;break}A=n,f=t}if(37==(0|a)){A=n,n=0|tr[(f=t)>>0];break}if(38==(0|a)){n&=255;break}}}while(0);if(127<=((n&=255)+-1|0)>>>0)break;if(f=f+1|0,ar[A>>2]=n,!(i=i+-1|0))break r;A=A+4|0}if(50<(n=n+-194|0)>>>0){a=53;break e}n=0|ar[8240+(n<<2)>>2],o=i,t=f+1|0,a=43;continue A}}while(0);ar[e>>2]=f,a=59;continue A}if(25==(0|a)){if(!(7<((a=(0|cr[t>>0])>>>3)+-16|a+(n>>26))>>>0)){if(f=t+1|0,33554432&n){if((-64&tr[f>>0])<<24>>24!=-128){f=t,a=52;break}if(f=t+2|0,524288&n){if((-64&tr[f>>0])<<24>>24!=-128){f=t,a=52;break}f=t+3|0}}i=i+-1|0,a=14;continue A}f=t,a=52}else if(43==(0|a)){if(!(7<((f=(i=(a=0)|cr[t>>0])>>>3)+-16|f+(n>>26))>>>0)){f=t+1|0,i=i+-128|n<<6;do{if((0|i)<0){if(63<(n=(0|cr[f>>0])-128|0)>>>0){f=t+-1|0,r=A;break e}if(f=t+2|0,(0|(i=n|i<<6))<0){if(63<(n=(0|cr[f>>0])-128|0)>>>0){f=t+-1|0,r=A;break e}f=t+3|0,i=n|i<<6;break}}}while(0);ar[A>>2]=i,A=A+4|0,i=o+-1|0,a=15;continue A}f=t,i=o,a=52}else if(59==(0|a))return 0|r}}while(0);if(52==(0|a)&&(f=f+-1|(a=0),n?r=A:a=53),53==(0|a)){if(!(0|tr[f>>0])){0|A&&(ar[A>>2]=0,ar[e>>2]=0),r=r-i|0,a=59;continue}r=A}ar[(a=8708)>>2]=84,r?(ar[e>>2]=f,r=-1,a=59):(r=-1,a=59)}return 0}function Ha(A){var e=0,r=0,i=0;ar[(A|=0)+76>>2],i=3;do{if(3==(0|i)){if((r=0|ar[(e=A+4|0)>>2])>>>0<(0|ar[A+8>>2])>>>0){ar[e>>2]=r+1,e=0|cr[r>>0];break}e=0|Da(A);break}}while(0);return 0|e}function xa(A,e,r){A|=0,e|=0,r|=0;var i,f;return f=ur=(i=ur)+31&-32,ur=ur+16|0,ar[f>>2]=r,r=0|sa(A,e,f),ur=i,0|r}function ja(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f,n,t=0,o=0;f=ur=(n=ur)+31&-32,ur=ur+16|0;A:do{if(A){e:do{if(3<r>>>0){for(i=r,t=0|ar[e>>2];;){if(126<((o=0|ar[t>>2])+-1|0)>>>0){if(!o)break;if(-1==(0|(o=0|Ea(A,o)))){r=-1;break A}A=A+o|0,i=i-o|0}else tr[A>>0]=o,A=A+1|0,i=i+-1|0,t=0|ar[e>>2];if(t=t+4|0,ar[e>>2]=t,i>>>0<=3)break e}tr[A>>0]=0,r=r-i|(ar[e>>2]=0);break A}i=r}while(0);if(i){for(t=0|ar[e>>2];;){if(126<((o=0|ar[t>>2])+-1|0)>>>0){if(!o){t=19;break}if(-1==(0|(o=0|Ea(f,o)))){r=-1;break A}if(i>>>0<o>>>0){t=22;break}Ea(A,0|ar[t>>2]),A=A+o|0,i=i-o|0}else tr[A>>0]=o,A=A+1|0,i=i+-1|0,t=0|ar[e>>2];if(t=t+4|0,ar[e>>2]=t,!i)break A}if(19==(0|t)){tr[A>>0]=0,r=r-i|(ar[e>>2]=0);break}if(22==(0|t)){r=r-i|0;break}}}else if(r=0|ar[e>>2],i=0|ar[r>>2]){A=r,r=0;do{if(127<i>>>0){if(-1==(0|(i=0|Ea(f,i)))){r=-1;break A}}else i=1;r=i+r|0,i=0|ar[(A=A+4|0)>>2]}while(0!=(0|i))}else r=0}while(0);return ur=n,0|r}function za(A,e,r,i){A|=0,e|=0,r|=0;var f,n,t=0,o=0,a=0,c=0;t=ur=(n=ur)+31&-32,ur=ur+16|0,i=0|ar[(f=0==(0|(i|=0))?51456:i)>>2];A:do{if(e)if(o=0==(0|A)?t:A,r){if(i)t=r,a=11;else{if(-1<(i=0|tr[e>>0])<<24>>24){ar[o>>2]=255&i,i=i<<24>>24!=0&1;break}if(t=8832,i=0|tr[e>>0],!(0|ar[ar[t>>2]>>2])){ar[o>>2]=i<<24>>24&57343,i=1;break}if(50<(i=(255&i)-194|0)>>>0){a=17;break}i=0|ar[8240+(i<<2)>>2],(t=r+-1|0)&&(e=e+1|0,a=11)}e:do{if(11==(0|a)){if(7<((c=(255&(A=0|tr[e>>0]))>>>3)+-16|c+(i>>26))>>>0){a=17;break A}for(;e=e+1|0,t=t+-1|0,!(0<=(0|(i=(255&A)-128|i<<6)));){if(!t)break e;if((-64&(A=0|tr[e>>0]))<<24>>24!=-128){a=17;break A}}ar[f>>2]=0,ar[o>>2]=i,i=r-t|0;break A}}while(0);ar[f>>2]=i,i=-2}else i=-2;else i?a=17:i=0}while(0);return 17==(0|a)&&(ar[f>>2]=0,ar[(i=8708)>>2]=84,i=-1),ur=n,0|i}function Pa(A,e,r,i,f){A|=0,r|=0,i|=0,f|=0;var n,t,o,a,c=0,l=0,u=0,s=0;t=ur=(a=ur)+31&-32,ur=ur+1040|0,n=8+t|0,s=0|ar[(e|=0)>>2],l=(o=0!=(0|A))?i:256,A=o?A:n,c=ar[t>>2]=s;A:do{if(0!=(0|l)&0!=(0|s)){for(i=0,s=r;;){if(!(131<s>>>0|(r=l>>>0<=(u=s>>>2)>>>0))){r=s;break A}if(r=s-(c=r?l:u)|0,-1==(0|(c=0|Oa(A,t,c,f))))break;if(A=(s=(0|A)==(0|n))?A:A+(c<<2)|0,i=c+i|0,!(0!=(0|(l=l-(s?0:c)|0))&0!=(0|(c=0|ar[t>>2]))))break A;s=r}i=-1,c=(l=0)|ar[t>>2]}else i=0}while(0);A:do{if(0!=(0|c)&&0!=(0|l)&0!=(0|r)){for(u=A;!(((A=0|za(u,c,r,f))+2|0)>>>0<3);){if(c=(0|ar[t>>2])+A|0,ar[t>>2]=c,i=i+1|0,!(0!=(0|(l=l+-1|0))&0!=(0|(r=r-A|0))))break A;u=u+4|0}switch(0|A){case-1:i=-1;break A;case 0:ar[t>>2]=0;break A;default:ar[f>>2]=0;break A}}}while(0);return o&&(ar[e>>2]=ar[t>>2]),ur=a,0|i}function La(A){return 1&(A=(A|=0)?0==(0|ar[A>>2]):1)|0}function Ka(A,e,r,i,f){A|=0,r|=0,i|=0,f|=0;var n,t,o,a,c=0,l=0;t=ur=(a=ur)+31&-32,ur=ur+272|0,n=8+t|0,l=0|ar[(e|=0)>>2],c=(o=0!=(0|A))?i:256,A=o?A:n,i=ar[t>>2]=l;A:do{if(0!=(0|c)&0!=(0|l)){for(f=0,l=i;;){if(!((i=c>>>0<=r>>>0)|32<r>>>0)){i=l;break A}if(r=r-(i=i?c:r)|0,-1==(0|(i=0|ja(A,t,i,0))))break;if(A=(l=(0|A)==(0|n))?A:A+i|0,f=i+f|0,!(0!=(0|(c=c-(l?0:i)|0))&0!=(0|(i=0|ar[t>>2]))))break A;l=i}f=-1,i=(c=0)|ar[t>>2]}else f=0}while(0);A:do{if(0!=(0|i)&&0!=(0|c)&0!=(0|r)){for(l=A;!(((A=0|Ea(l,0|ar[i>>2]))+1|0)>>>0<2);){if(i=4+(0|ar[t>>2])|0,ar[t>>2]=i,f=A+f|0,!(0!=(0|(c=c-A|0))&0!=(0|(r=r+-1|0))))break A;l=l+A|0}A?f=-1:ar[t>>2]=0}}while(0);return o&&(ar[e>>2]=ar[t>>2]),ur=a,0|f}function qa(A,e,r){A|=0,r|=0;var i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0;switch(0|(e|=0)){case 0:a=-149,c=24,t=4;break;case 1:case 2:a=-1074,c=53,t=4;break;default:i=0}A:do{if(4==(0|t)){for(u=A+4|0,l=A+100|0;0!=(0|Ja(e=(e=0|ar[u>>2])>>>0<(0|ar[l>>2])>>>0?(ar[u>>2]=e+1,0|cr[e>>0]):0|Ya(A))););e:do{switch(0|e){case 43:case 45:if(n=1-((45==(0|e)&1)<<1)|0,(e=0|ar[u>>2])>>>0<(0|ar[l>>2])>>>0){ar[u>>2]=e+1,f=0|cr[e>>0];break e}f=0|Ya(A);break e;default:f=e,n=1}}while(0);e=0;do{if((32|f)!=(0|tr[46216+e>>0]))break;do{if(e>>>0<7){if((f=0|ar[u>>2])>>>0<(0|ar[l>>2])>>>0){ar[u>>2]=f+1,f=0|cr[f>>0];break}f=0|Ya(A);break}}while(0);e=e+1|0}while(e>>>0<8);e:do{switch(0|e){case 8:break;case 3:t=23;break;default:if((o=0!=(0|r))&3<e>>>0){if(8==(0|e))break e;t=23;break e}r:do{if(!e){e=0;do{if((32|f)!=(0|tr[46225+e>>0]))break r;do{if(e>>>0<2){if((f=0|ar[u>>2])>>>0<(0|ar[l>>2])>>>0){ar[u>>2]=f+1,f=0|cr[f>>0];break}f=0|Ya(A);break}}while(0);e=e+1|0}while(e>>>0<3)}}while(0);switch(0|e){case 3:if(40!=(0|(e=(e=0|ar[u>>2])>>>0<(0|ar[l>>2])>>>0?(ar[u>>2]=e+1,0|cr[e>>0]):0|Ya(A)))){if(!(0|ar[l>>2])){i=h;break A}ar[u>>2]=(0|ar[u>>2])-1,i=h;break A}for(e=1;((f=(f=0|ar[u>>2])>>>0<(0|ar[l>>2])>>>0?(ar[u>>2]=f+1,0|cr[f>>0]):0|Ya(A))+-48|0)>>>0<10|(f+-65|0)>>>0<26||95==(0|f)|(f+-97|0)>>>0<26;)e=e+1|0;if(41==(0|f)){i=h;break A}if((f=0==(0|ar[l>>2]))||(ar[u>>2]=(0|ar[u>>2])-1),!o){ar[(u=8708)>>2]=22,Na(A,0),i=0;break A}if(!e){i=h;break A}for(;;)if(e=e+-1|0,f||(ar[u>>2]=(0|ar[u>>2])-1),!e){i=h;break A}case 0:if(48==(0|f)){if(120==(32|(e=(e=0|ar[u>>2])>>>0<(0|ar[l>>2])>>>0?(ar[u>>2]=e+1,0|cr[e>>0]):0|Ya(A)))){i=+$a(A,c,a,n,r);break A}e=(0|ar[l>>2]&&(ar[u>>2]=(0|ar[u>>2])-1),48)}else e=f;i=+Rr(A,e,c,a,n,r);break A;default:0|ar[l>>2]&&(ar[u>>2]=(0|ar[u>>2])-1),ar[(u=8708)>>2]=22,Na(A,0),i=0;break A}}}while(0);if(23==(0|t)&&((f=0==(0|ar[l>>2]))||(ar[u>>2]=(0|ar[u>>2])-1),0!=(0|r)&3<e>>>0))for(;f||(ar[u>>2]=(0|ar[u>>2])-1),3<(e=e+-1|0)>>>0;);i=(0|n)*w}}while(0);return+i}function $a(A,e,r,i,f){e|=0,r|=0,i|=0,f|=0;var n,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0;a=(o=(o=0|ar[(m=(A|=0)+4|0)>>2])>>>0<(0|ar[(n=A+100|0)>>2])>>>0?(ar[m>>2]=o+1,0|cr[o>>0]):0|Ya(A),0);A:for(;;){switch(0|o){case 46:s=8;break A;case 48:break;default:d=1,h=a,l=u=k=a=g=t=v=w=0;break A}(o=0|ar[m>>2])>>>0<(0|ar[n>>2])>>>0?(ar[m>>2]=o+1,o=0|cr[o>>0],a=1):(o=0|Ya(A),a=1)}if(8==(0|s))if(48==(0|(o=(o=0|ar[m>>2])>>>0<(0|ar[n>>2])>>>0?(ar[m>>2]=o+1,0|cr[o>>0]):0|Ya(A)))){for(a=l=0;o=(o=0|ar[m>>2])>>>0<(0|ar[n>>2])>>>0?(ar[m>>2]=o+1,0|cr[o>>0]):0|Ya(A),l=0|vu(0|l,0|a,-1,-1),a=D,48==(0|o););h=d=w=1,u=k=g=t=v=0}else d=w=1,h=a,l=u=k=a=g=t=v=0;for(;b=46==(0|o),!(10<=(s=o+-48|0)>>>0)||b|((32|o)-97|0)>>>0<6;){if(b){if(w){o=46;break}w=1,s=v,c=d,o=g,l=u,a=k}else{o=57<(0|o)?(32|o)-87|0:s;do{if(!((0|k)<0|0==(0|k)&u>>>0<8)){if((0|k)<0|0==(0|k)&u>>>0<14){s=v,t+=(c=d*=.0625)*(0|o),o=g;break}s=(o=0!=(0|v)|0==(0|o))?v:1,c=d,t=o?t:t+.5*d,o=g;break}s=v,c=d,o=o+(g<<4)|0}while(0);u=0|vu(0|u,0|k,1,0),h=1,k=D}o=(b=0|ar[m>>2])>>>0<(0|ar[n>>2])>>>0?(ar[m>>2]=b+1,v=s,d=c,g=o,0|cr[b>>0]):(v=s,d=c,g=o,0|Ya(A))}do{if(h){if(b=(s=0==(0|w))?u:l,s=s?k:a,(0|k)<0|0==(0|k)&u>>>0<8){for(a=g,l=k;a<<=4,u=0|vu(0|u,0|l,1,0),(0|(l=D))<0|0==(0|l)&u>>>0<8;);u=a}else u=g;if(112==(32|o)){if(0==(0|(a=0|Yr(A,f)))&-2147483648==(0|(o=D))){if(!f){Na(A,0),t=0;break}o=a=(0|ar[n>>2]&&(ar[m>>2]=(0|ar[m>>2])-1),0)}}else o=a=(0|ar[n>>2]&&(ar[m>>2]=(0|ar[m>>2])-1),0);if(l=0|vu(0|(l=0|Iu(0|b,0|s,2)),0|D,-32,-1),l=0|vu(0|l,0|D,0|a,0|o),o=D,!u){t=0*(0|i);break}if((0|(f=((0|(m=0-r|0))<0)<<31>>31))<(0|o)|(0|o)==(0|f)&m>>>0<l>>>0){ar[(e=8708)>>2]=34,t=17976931348623157e292*(0|i)*17976931348623157e292;break}if((0|o)<(0|(f=((0|(m=r+-106|0))<0)<<31>>31))|(0|o)==(0|f)&l>>>0<m>>>0){ar[(e=8708)>>2]=34,t=22250738585072014e-324*(0|i)*22250738585072014e-324;break}if(-1<(0|u)){for(a=u;a=a<<1|1&(1^(m=!(.5<=t))),t+=m?t:t+-1,l=0|vu(0|l,0|o,-1,-1),o=D,-1<(0|a););d=t,u=a}else d=t;o=0|vu(0|(r=0|gu(32,0,0|r,((0|r)<0)<<31>>31|0)),0|D,0|l,0|o),59==(0|(s=(0|(r=D))<(0|(m=((0|e)<0)<<31>>31))|(0|m)==(0|r)&o>>>0<e>>>0?0<(0|o)?59:(a=0,o=84,61):(o=e,59)))&&((0|o)<53?(o=84-(a=o)|0,s=61):t=+((c=0)|i)),61==(0|s)&&(t=+(0|i),c=+Dr(+Jr(1,o),t),o=a),0==(t=t*((i=0==(1&u|0)&0!=d&(0|o)<32)?0:d)+(c+t*(((1&i)+u|0)>>>0))-c)&&(ar[(i=8708)>>2]=34),t=+Tr(t,l)}else(a=0!=(0|(o=0|ar[n>>2])))&&(ar[m>>2]=(0|ar[m>>2])-1),f?(a&&(ar[m>>2]=(0|ar[m>>2])-1),0==(0|w)|0==(0|o)||(ar[m>>2]=(0|ar[m>>2])-1)):Na(A,0),t=0*(0|i)}while(0);return+t}function Ac(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=4464,(0|tr[(r=A+112|0)+11>>0])<0&&Vl(0|ar[r>>2]),(0|tr[(r=A+100|0)+11>>0])<0&&Vl(0|ar[r>>2]),(0|tr[(r=A+88|0)+11>>0])<0&&Vl(0|ar[r>>2]),(0|tr[(r=A+76|0)+11>>0])<0&&Vl(0|ar[r>>2]),(0|tr[(r=A+64|0)+11>>0])<0&&Vl(0|ar[r>>2]),ar[A>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(;f=i+-8|0,ar[n>>2]=f,(0|(i=(i=0|ar[i+-4>>2])?(Il(i),0|ar[n>>2]):f))!=(0|r););r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(i=0|ar[A+24>>2])&&((0|ar[(r=A+28|0)>>2])!=(0|i)&&(ar[r>>2]=i),Vl(i))}function ec(A){var e=0,r=0,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4352,0|(e=0|ar[(n=A+56|0)>>2])){if((0|(r=0|ar[(t=A+60|0)>>2]))!=(0|e)){for(i=r;r=i+-32|0,ar[t>>2]=r,(f=0|ar[i+-16>>2])&&((0|(i=0|ar[(r=i+-12|0)>>2]))!=(0|f)&&(ar[r>>2]=i+(24*~(((i+-24-f|0)>>>0)/24|0)|0)),Vl(f),r=0|ar[t>>2]),(0|r)!=(0|e);)i=r;e=0|ar[n>>2]}Vl(e)}if(ar[A>>2]=3972,0|(e=0|ar[(f=A+44|0)>>2])){if((0|(r=0|ar[(n=A+48|0)>>2]))!=(0|e)){for(;i=r+-8|0,ar[n>>2]=i,(0|(r=(r=0|ar[r+-4>>2])?(Il(r),0|ar[n>>2]):i))!=(0|e););e=0|ar[f>>2]}Vl(e)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(e=A+28|0)>>2])!=(0|r)&&(ar[e>>2]=r),Vl(r))}function rc(A,e){e|=0;var r,i,f,n=0,t=0,o=0,a=0,c=0;r=(A|=0)+4|0,i=0|ar[A>>2],178956970<(n=(t=(0|(f=(0|ar[r>>2])-i|0))/24|0)+1|0)>>>0&&il(),o=(a=((0|ar[(c=A+8|0)>>2])-i|0)/24|0)<<1,o=a>>>0<89478485?o>>>0<n>>>0?n:o:178956970;do{if(o){if(!(178956970<o>>>0)){a=0|El(24*o|0);break}Fl(c=0|C(8),37845),ar[c>>2]=16004,I(0|c,3616,283)}else a=0}while(0);ar[(t=a+(24*t|0)|0)>>2]=ar[e>>2],ar[t+4>>2]=ar[e+4>>2],ar[t+8>>2]=ar[e+8>>2],ar[t+12>>2]=ar[e+12>>2],ar[t+16>>2]=ar[e+16>>2],ar[t+20>>2]=ar[e+20>>2],n=t+(24*((0|f)/-24|0)|0)|0,0<(0|f)&&Eu(0|n,0|i,0|f),ar[A>>2]=n,ar[r>>2]=t+24,ar[c>>2]=a+(24*o|0),i&&Vl(i)}function ic(A,e){e|=0;var r,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0;r=(A|=0)+4|0,i=0|ar[A>>2],134217727<(f=(o=(0|ar[r>>2])-i>>5)+1|0)>>>0&&il(),i=(a=(0|ar[(c=A+8|0)>>2])-i|0)>>4,i=a>>5>>>0<67108863?i>>>0<f>>>0?f:i:134217727;do{if(i){if(!(134217727<i>>>0)){t=0|El(i<<5);break}Fl(c=0|C(8),37845),ar[c>>2]=16004,I(0|c,3616,283)}else t=0}while(0);if(a=t+(i<<5)|0,ar[(n=f=t+(o<<5)|0)>>2]=ar[e>>2],ar[f+4>>2]=ar[e+4>>2],ar[f+8>>2]=ar[e+8>>2],ar[f+12>>2]=ar[e+12>>2],fc(t+(o<<5)+16|0,e+16|0),e=f+32|0,t=0|ar[A>>2],(0|(i=0|ar[r>>2]))==(0|t))f=n,i=o=t;else{for(;i=(u=i)+-32|0,ar[(l=f+-32|0)>>2]=ar[i>>2],ar[l+4>>2]=ar[i+4>>2],ar[l+8>>2]=ar[i+8>>2],ar[l+12>>2]=ar[i+12>>2],o=u+-16|0,ar[(l=f+-16|0)>>2]=0,ar[(s=f+-12|0)>>2]=0,ar[f+-8>>2]=0,ar[l>>2]=ar[o>>2],l=u+-12|0,ar[s>>2]=ar[l>>2],u=u+-8|0,ar[f+-8>>2]=ar[u>>2],ar[u>>2]=0,ar[l>>2]=0,n=f=n+-32|(ar[o>>2]=0),(0|i)!=(0|t););f=n,o=0|ar[A>>2],i=0|ar[r>>2]}if(ar[A>>2]=f,ar[r>>2]=e,ar[c>>2]=a,(0|i)!=(0|(e=o)))for(;0|(f=0|ar[i+-16>>2])&&((0|(t=0|ar[(n=i+-12|0)>>2]))!=(0|f)&&(ar[n>>2]=t+(24*~(((t+-24-f|0)>>>0)/24|0)|0)),Vl(f)),(0|(i=i+-32|0))!=(0|e););o&&Vl(o)}function fc(A,e){e|=0;var r,i,f,n,t=0;ar[(A|=0)>>2]=0,ar[(n=A+4|0)>>2]=0,r=((ar[A+8>>2]=0)|(t=(0|ar[(f=e+4|0)>>2])-(0|ar[e>>2])|0))/24|0,t&&(178956970<r>>>0&&il(),i=0|El(t),ar[n>>2]=i,ar[A>>2]=i,ar[A+8>>2]=i+(24*r|0),A=0|ar[e>>2],(0|(t=(0|ar[f>>2])-A|0))<=0||(Eu(0|i,0|A,0|t),ar[n>>2]=i+(24*((t>>>0)/24|0)|0)))}function nc(A,e,r){A|=0,r|=0;var i,f=0;f=0|ar[(e|=0)+44>>2],i=0|ar[e+48>>2];A:do{if((0|f)!=(0|i)){for(e=f;f=0|ar[e>>2],(0|ar[f+20>>2])!=(0|r);)if((0|(e=e+8|0))==(0|i))break A;if(ar[A>>2]=f,e=0|ar[e+4>>2],!(ar[A+4>>2]=e))return;return void Cl(e)}}while(0);ar[A>>2]=0,ar[A+4>>2]=0}function tc(A,e,r){e|=0,r|=0;var i,f,n,t=0,o=0;if(ar[(A|=0)>>2]=0,ar[(n=A+4|0)>>2]=0,((ar[A+8>>2]=0)|(t=0|ar[e+44>>2]))!=(0|(f=0|ar[e+48>>2]))){i=A+8|0;do{o=e=0|ar[t>>2];do{if((0|ar[e+20>>2])==(0|r)){if((0|(e=0|ar[n>>2]))==(0|ar[i>>2])){oc(A,t);break}ar[e>>2]=o,o=0|ar[t+4>>2],(ar[e+4>>2]=o)&&(Cl(o),e=0|ar[n>>2]),ar[n>>2]=e+8}}while(0);t=t+8|0}while((0|t)!=(0|f))}}function oc(A,e){e|=0;var r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0;f=0|ar[(u=(A|=0)+4|0)>>2],c=n=0|ar[A>>2],536870911<(t=1+(r=f-n>>3)|0)>>>0&&il(),o=(l=(0|ar[(i=A+8|0)>>2])-n|0)>>2,o=l>>3>>>0<268435455?o>>>0<t>>>0?t:o:536870911;do{if(o){if(!(536870911<o>>>0)){a=0|El(o<<3);break}Fl(u=0|C(8),37845),ar[u>>2]=16004,I(0|u,3616,283)}else a=0}while(0);if(l=a+(o<<3)|0,ar[(t=n=a+(r<<3)|0)>>2]=ar[e>>2],o=0|ar[e+4>>2],o=(ar[a+(r<<3)+4>>2]=o)?(Cl(o),f=0|ar[u>>2],0|ar[A>>2]):c,a=n+8|0,(0|f)!=(0|o)){for(;f=(c=f)+-8|0,ar[n+-8>>2]=ar[f>>2],c=c+-4|0,ar[n+-4>>2]=ar[c>>2],ar[f>>2]=0,t=n=t+-8|(ar[c>>2]=0),(0|f)!=(0|o););o=0|ar[A>>2],f=0|ar[u>>2]}if(ar[A>>2]=t,ar[u>>2]=a,ar[i>>2]=l,(0|f)!=(0|(t=o)))for(;n=0|ar[f+-4>>2],f=f+-8|0,0|n&&Il(n),(0|f)!=(0|t););o&&Vl(o)}function ac(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0;ur=(l=ur)+224|0,W=l+212|0,I=l+56|0,C=l+200|0,Z=l+44|0,a=l+32|0,c=l+20|0,t=l,Ri((i|=0)+(0|ar[(0|ar[i>>2])-12>>2])|0,0),e=0|ar[r+16>>2],o=0|ar[r+20>>2];A:do{if((0|e)!=(0|o)){v=r+4|0,y=r+8|0,m=n+4|0,h=(k=t+8|0)+11|0;e:for(;;){switch(0|tr[v>>0]){case 0:if(p=b=e+8|0,zi(i,0|vu(0|ar[(w=y)>>2],0|ar[w+4>>2],0|ar[p>>2],0|ar[p+4>>2]),D,0),2&ar[i+(0|ar[(0|ar[i>>2])-12>>2])+16>>2]|0){e=5;break e}if(p=(d=0|ar[m>>2])-(r=0|ar[n>>2])|0,u=0|ar[(s=w=e+16|0)>>2],0<(s=0|ar[s+4>>2])>>>0|0==(0|s)&(52428800-p|0)>>>0<u>>>0){e=15;break e}if(b=0|vu(0|p,0,0|u,0|s),s=d,b>>>0<=p>>>0?b>>>0<p>>>0&&(0|s)!=(0|(g=r+b|0))&&(ar[m>>2]=g):(dn(n,b-p|0),u=0|ar[w>>2],r=0|ar[n>>2]),ji(i,r+p|0,u),2&ar[i+(0|ar[(0|ar[i>>2])-12>>2])+16>>2]|0){e=28;break e}break;case 1:if(!(r=0|ar[f>>2])){e=31;break e}w=e+8|0,p=e+16|0,cc(t,r,i,0|vu(0|ar[(d=y)>>2],0|ar[d+4>>2],0|ar[w>>2],0|ar[w+4>>2]),D,0|ar[p>>2],0|ar[p+4>>2],n),(0|tr[h>>0])<0&&Vl(0|ar[k>>2])}if((0|(e=e+24|0))==(0|o))break A}if(5==(0|e))return e=0|ar[n>>2],(0|ar[m>>2])!=(0|e)&&(ar[m>>2]=e),r=I+64|0,ar[(s=I+8|0)>>2]=4080,u=I+12|0,ar[I>>2]=164,ar[r>>2]=184,Yi(I+64|(ar[I+4>>2]=0),u),ar[I+136>>2]=0,ar[I+140>>2]=-1,ar[I>>2]=4060,ar[r>>2]=4100,ar[s>>2]=4080,Ti(u),ar[u>>2]=3908,ar[(s=I+44|0)>>2]=0,ar[s+4>>2]=0,ar[s+8>>2]=0,ar[s+12>>2]=0,ar[I+60>>2]=24,ar[W>>2]=0,ar[W+4>>2]=0,ar[W+8>>2]=0,Of(u,W),(0|tr[W+11>>0])<0&&Vl(0|ar[W>>2]),Z=0|Hf(0|Hf(e=I+8|0,20543,58),20602,25),W=b,Hf(0|$i(Z,W=0|vu(0|ar[y>>2],0|ar[y+4>>2],0|ar[W>>2],0|ar[W+4>>2]),D),17022,2),jf(C,u),Cc(A,2,100,C),(0|tr[C+11>>0])<0&&Vl(0|ar[C>>2]),ar[I>>2]=4060,ar[r>>2]=4100,ar[e>>2]=4080,ar[u>>2]=3908,(0|tr[s+11>>0])<0&&Vl(0|ar[s>>2]),si(u),ci(r),void(ur=l);if(15==(0|e))return r=I+64|0,ar[(s=I+8|0)>>2]=4080,u=I+12|0,ar[I>>2]=164,ar[r>>2]=184,Yi(I+64|(ar[I+4>>2]=0),u),ar[I+136>>2]=0,ar[I+140>>2]=-1,ar[I>>2]=4060,ar[r>>2]=4100,ar[s>>2]=4080,Ti(u),ar[u>>2]=3908,ar[(s=I+44|0)>>2]=0,ar[s+4>>2]=0,ar[s+8>>2]=0,ar[s+12>>2]=0,ar[I+60>>2]=24,ar[W>>2]=0,ar[W+4>>2]=0,ar[W+8>>2]=0,Of(u,W),(0|tr[W+11>>0])<0&&Vl(0|ar[W>>2]),W=0|Hf(e=I+8|0,20628,19),C=0|Hf(0|$i(W,0|ar[(C=w)>>2],0|ar[C+4>>2]),20648,35),Hf(0|Ki(0|Hf(0|$i(C,W=0|vu(0|ar[(W=w)>>2],0|ar[W+4>>2],0|p,0),D),20684,40),52428800),20725,6),jf(Z,u),Cc(A,6,1e3,Z),(0|tr[Z+11>>0])<0&&Vl(0|ar[Z>>2]),ar[I>>2]=4060,ar[r>>2]=4100,ar[e>>2]=4080,ar[u>>2]=3908,(0|tr[s+11>>0])<0&&Vl(0|ar[s>>2]),si(u),ci(r),void(ur=l);if(28==(0|e))return ar[a>>2]=0,ar[4+a>>2]=0,ar[8+a>>2]=0,Cc(A,2,100,a),0<=(0|tr[11+a>>0])||Vl(0|ar[a>>2]),void(ur=l);if(31==(0|e)){for(e=0|El(64),ar[c>>2]=e,ar[8+c>>2]=-2147483584,u=20732,s=(r=e)+(ar[4+c>>2]=54)|0;tr[r>>0]=0|tr[u>>0],u=u+1|0,(0|(r=r+1|0))<(0|s););return(tr[e+54>>0]=0,Cc(A,2,103,c),0<=(0|tr[11+c>>0]))?void(ur=l):(Vl(0|ar[c>>2]),void(ur=l))}}}while(0);W=0|ar[(C=49920)+4>>2],ar[(I=A)>>2]=ar[C>>2],ar[I+4>>2]=W,Rl(A+8|0,49928),ur=l}function cc(A,e,r,i,f,n,t,o){A|=0,i|=0,f|=0,n|=0,t|=0,o|=0;var a,c,l,u=0,s=0,b=0,d=0;if(ur=(l=ur)+176|0,b=l+160|0,d=l+16|0,a=l,zi(r|=0,u=0|vu(0|ar[(u=(e|=0)+64|0)>>2],0|ar[u+4>>2],0|i,0|f),D,0),!(0<t>>>0|0==(0|t)&(52428800-(c=(i=0|ar[(u=o+4|0)>>2])-(e=0|ar[o>>2])|0)|0)>>>0<n>>>0))return(f=0|vu(0|c,0,0|n,0|t))>>>0<=c>>>0?f>>>0<c>>>0&&(0|i)!=(0|(s=e+f|0))&&(ar[u>>2]=s):(dn(o,f-c|0),e=0|ar[o>>2]),ji(r,e+c|0,n),d=0|ar[(t=49920)+4>>2],ar[(n=A)>>2]=ar[t>>2],ar[n+4>>2]=d,Rl(A+8|0,49928),void(ur=l);i=d+64|0,ar[(u=d+8|0)>>2]=4080,f=d+12|0,ar[d>>2]=164,ar[i>>2]=184,Yi(d+64|(ar[d+4>>2]=0),f),ar[d+136>>2]=0,ar[d+140>>2]=-1,ar[d>>2]=4060,ar[i>>2]=4100,ar[u>>2]=4080,Ti(f),ar[f>>2]=3908,ar[(u=d+44|0)>>2]=0,ar[u+4>>2]=0,ar[u+8>>2]=0,ar[u+12>>2]=0,ar[d+60>>2]=24,ar[b>>2]=0,ar[b+4>>2]=0,ar[b+8>>2]=0,Of(f,b),(0|tr[b+11>>0])<0&&Vl(0|ar[b>>2]),b=0|Hf(0|$i(0|Hf(e=d+8|0,20787,19),n,t),20648,35),Hf(0|Ki(0|Hf(0|$i(b,n=0|vu(0|c,0,0|n,0|t),D),20684,40),52428800),20725,6),jf(a,f),Cc(A,6,1e3,a),(0|tr[a+11>>0])<0&&Vl(0|ar[a>>2]),ar[d>>2]=4060,ar[i>>2]=4100,ar[e>>2]=4080,ar[f>>2]=3908,(0|tr[u+11>>0])<0&&Vl(0|ar[u>>2]),si(f),ci(i),ur=l}function lc(A,e,r,i,f){A|=0,e|=0,r|=0,f|=0;var n,t,o,a,c,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0;ur=(c=ur)+336|0,o=c+316|0,a=c+160|0,s=c+304|0,t=(n=c)+144|0,u=0|ar[(i|=0)>>2],i=0|ar[u+56>>2],u=0|ar[u+60>>2];A:do{if((0|i)!=(0|u)){for(;l=i+16|0,(0|ar[i>>2])!=(0|r);){if((0|l)==(0|u))break A;i=l}uc(a,e+44|0),l=0|ar[i+4>>2],b=0|ar[i+8>>2];e:do{if((0|l)==(0|b))m=34;else{for(d=4+a|0,h=8+o|0,w=k=4+o|0,v=f+4|0,g=f+8|0;u=65535&(i=0|or[(s=l+2|0)>>1]),e=p=0|ar[a>>2],!(u>>>0>(0|ar[d>>2])-p>>3>>>0);){ar[k>>2]=0,ar[h>>2]=0,tr[o>>0]=0|tr[l>>0];do{if(i<<16>>16){if(s=0|ar[e+((i=u+-1|0)<<3)>>2],(u=i=0|ar[e+(i<<3)+4>>2])?(Cl(i),i=0|ar[h>>2],ar[w>>2]=s,ar[h>>2]=u,0|i&&Il(i)):(ar[w>>2]=s,ar[h>>2]=u),(0|(i=0|ar[v>>2]))==(0|ar[g>>2])){sc(f,o);break}tr[i>>0]=0|tr[o>>0],ar[i+4>>2]=ar[w>>2],u=0|ar[h>>2],(ar[i+8>>2]=u)&&(Cl(u),i=0|ar[v>>2]),ar[v>>2]=i+12}}while(0);if(0|(i=0|ar[h>>2])&&Il(i),(0|(l=l+4|0))==(0|b)){m=34;break e}}l=n+64|0,ar[(e=n+8|0)>>2]=4080,u=n+12|0,ar[n>>2]=164,ar[l>>2]=184,Yi(n+64|(ar[n+4>>2]=0),u),ar[n+136>>2]=0,ar[n+140>>2]=-1,ar[n>>2]=4060,ar[l>>2]=4100,ar[e>>2]=4080,Ti(u),ar[u>>2]=3908,ar[(e=n+44|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[n+60>>2]=24,ar[o>>2]=0,ar[4+o>>2]=0,ar[8+o>>2]=0,Of(u,o),(0|tr[11+o>>0])<0&&Vl(0|ar[o>>2]),p=0|Hf(i=n+8|0,20864,28),Hf(0|qi(0|Hf(0|Hf(0|Li(p,0|or[s>>1]),20893,11),20905,4),r),20910,23),jf(t,u),Cc(A,2,115,t),(0|tr[11+t>>0])<0&&Vl(0|ar[t>>2]),ar[n>>2]=4060,ar[l>>2]=4100,ar[i>>2]=4080,ar[u>>2]=3908,(0|tr[e+11>>0])<0&&Vl(0|ar[e>>2]),si(u),ci(l),i=a}}while(0);if(34==(0|m)&&(p=0|ar[(r=49920)+4>>2],ar[(i=A)>>2]=ar[r>>2],ar[i+4>>2]=p,Rl(A+8|0,49928),i=a),0|(i=0|ar[i>>2])){if((0|(l=0|ar[(e=4+a|0)>>2]))!=(0|i)){for(;u=l+-8|0,ar[e>>2]=u,(0|(l=(l=0|ar[l+-4>>2])?(Il(l),0|ar[e>>2]):u))!=(0|i););i=0|ar[a>>2]}Vl(i)}return void(ur=c)}}while(0);l=64+a|0,ar[(e=8+a|0)>>2]=4080,u=12+a|0,ar[a>>2]=164,ar[l>>2]=184,Yi(64+a|(ar[4+a>>2]=0),u),ar[136+a>>2]=0,ar[140+a>>2]=-1,ar[a>>2]=4060,ar[l>>2]=4100,ar[e>>2]=4080,Ti(u),ar[u>>2]=3908,ar[(e=44+a|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[60+a>>2]=24,ar[o>>2]=0,ar[4+o>>2]=0,ar[8+o>>2]=0,Of(u,o),(0|tr[11+o>>0])<0&&Vl(0|ar[o>>2]),Hf(0|qi(0|Hf(i=8+a|0,20807,9),r),20817,46),jf(s,u),Cc(A,2,116,s),(0|tr[s+11>>0])<0&&Vl(0|ar[s>>2]),ar[a>>2]=4060,ar[l>>2]=4100,ar[i>>2]=4080,ar[u>>2]=3908,(0|tr[e+11>>0])<0&&Vl(0|ar[e>>2]),si(u),ci(l),ur=c}function uc(A,e){e|=0;var r,i,f,n=0,t=0;if(ar[(A|=0)>>2]=0,ar[(f=A+4|0)>>2]=0,(r=(n=((ar[A+8>>2]=0)|ar[(i=e+4|0)>>2])-(0|ar[e>>2])|0)>>3)&&(536870911<r>>>0&&il(),t=0|El(n),ar[f>>2]=t,ar[A>>2]=t,ar[A+8>>2]=t+(r<<3),(0|(n=0|ar[e>>2]))!=(0|(e=0|ar[i>>2]))))for(;ar[t>>2]=ar[n>>2],A=0|ar[n+4>>2],0|(ar[t+4>>2]=A)&&Cl(A),n=n+8|0,t=8+(0|ar[f>>2])|0,ar[f>>2]=t,(0|n)!=(0|e););}function sc(A,e){e|=0;var r,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0;n=0|ar[(u=(A|=0)+4|0)>>2],c=i=0|ar[A>>2],357913941<(f=(a=(n-i|0)/12|0)+1|0)>>>0&&il(),t=(l=((0|ar[(r=A+8|0)>>2])-i|0)/12|0)<<1,t=l>>>0<178956970?t>>>0<f>>>0?f:t:357913941;do{if(t){if(!(357913941<t>>>0)){o=0|El(12*t|0);break}Fl(u=0|C(8),37845),ar[u>>2]=16004,I(0|u,3616,283)}else o=0}while(0);if(l=o+(12*t|0)|0,tr[(f=i=o+(12*a|0)|0)>>0]=0|tr[e>>0],ar[o+(12*a|0)+4>>2]=ar[e+4>>2],t=0|ar[e+8>>2],t=(ar[o+(12*a|0)+8>>2]=t)?(Cl(t),n=0|ar[u>>2],0|ar[A>>2]):c,o=i+12|0,(0|n)==(0|t))i=t=n;else{for(;n=(c=n)+-12|0,tr[i+-12>>0]=0|tr[n>>0],a=c+-8|0,ar[i+-8>>2]=ar[a>>2],c=c+-4|0,ar[i+-4>>2]=ar[c>>2],ar[a>>2]=0,f=i=f+-12|(ar[c>>2]=0),(0|n)!=(0|t););t=0|ar[A>>2],i=0|ar[u>>2]}if(ar[A>>2]=f,ar[u>>2]=o,ar[r>>2]=l,(0|i)!=(0|(n=t)))for(;f=0|ar[i+-4>>2],i=i+-12|0,0|f&&Il(f),(0|i)!=(0|n););t&&Vl(n)}function bc(A,e){var r=0,i=0,f=0;return e=(e|=0)+-1|0,r=0|ar[(A|=0)+76>>2],i=0|ar[A+72>>2],i=2==(0|r)?(f=2,i+e|0):(f=r<<1,(i<<1)+(0|sr(r,e))|0),r=0|ar[A+60>>2],e=(0|ar[A+56>>2])-r|0,(0|f)==(0|(r<<=1))?(A=i-e|0,0|(f=(0|(A=(i=(0|f)/2|0)+A|0))/(0|f)|0)):(A=0|sr(r,f),f=(0|sr(r,i))-(0|sr(e,f))|0,0|(f=(0|(f=(i=(0|A)/2|0)+f|0))/(0|A)|0))}function dc(A,e){var r=0,i=0,f=0;return e=(e|=0)+-1|0,r=0|ar[(A|=0)+76>>2],i=0|ar[A+72>>2],i=2==(0|r)?(f=2,i+e|0):(f=r<<1,(i<<1)+(0|sr(r,e))|0),r=0|ar[A+60>>2],e=(0|ar[A+56>>2])-r|0,(0|f)==(0|(r<<=1))?(A=e+i|0,0|(f=(0|(A=(i=(0|f)/2|0)+A|0))/(0|f)|0)):(A=0|sr(r,f),f=(0|sr(e,f))+(0|sr(r,i))|0,0|(f=(0|(f=(i=(0|A)/2|0)+f|0))/(0|A)|0))}function kc(A,e){var r=0,i=0,f=0;return e=(e|=0)+-1|0,r=0|ar[(A|=0)+84>>2],i=0|ar[A+80>>2],i=2==(0|r)?(f=2,i+e|0):(f=r<<1,(i<<1)+(0|sr(r,e))|0),r=0|ar[A+68>>2],e=(0|ar[A+64>>2])-r|0,(0|f)==(0|(r<<=1))?(A=i-e|0,0|(f=(0|(A=(i=(0|f)/2|0)+A|0))/(0|f)|0)):(A=0|sr(r,f),f=(0|sr(r,i))-(0|sr(e,f))|0,0|(f=(0|(f=(i=(0|A)/2|0)+f|0))/(0|A)|0))}function hc(A,e){var r=0,i=0,f=0;return e=(e|=0)+-1|0,r=0|ar[(A|=0)+84>>2],i=0|ar[A+80>>2],i=2==(0|r)?(f=2,i+e|0):(f=r<<1,(i<<1)+(0|sr(r,e))|0),r=0|ar[A+68>>2],e=(0|ar[A+64>>2])-r|0,(0|f)==(0|(r<<=1))?(A=e+i|0,0|(f=(0|(A=(i=(0|f)/2|0)+A|0))/(0|f)|0)):(A=0|sr(r,f),f=(0|sr(e,f))+(0|sr(r,i))|0,0|(f=(0|(f=(i=(0|A)/2|0)+f|0))/(0|A)|0))}function wc(A){var e;return e=0|ar[(A|=0)+56>>2],1-(((A=ar[A+60>>2]<<1)-e|0)/(0|A)|0)+((0|e)/(0|A)|0)|0}function vc(A){var e;return e=0|ar[(A|=0)+64>>2],1-(((A=ar[A+68>>2]<<1)-e|0)/(0|A)|0)+((0|e)/(0|A)|0)|0}function gc(A,e){e|=0;var r=0,i=0;if((0|(r=0|ar[(A|=0)+56>>2]))==(0|(A=0|ar[A+60>>2])))return(i=0)|i;for(;(0|ar[r+48>>2])!=(0|e);)if((0|(r=r+64|0))==(0|A)){r=0,i=5;break}return 5==(0|i)?0|r:0|(i=0|ar[r+20>>2])}function mc(A,e,r){A|=0,r|=0;var i=0;i=0|ar[(e|=0)+56>>2],e=0|ar[e+60>>2];A:do{if((0|i)!=(0|e)){for(;(0|ar[i+48>>2])!=(0|r);)if((0|(i=i+64|0))==(0|e))break A;return void ln(A,i+52|0)}}while(0);ar[A>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0}function pc(A,e){e|=0;var r,i,f,n,t,o,a,c,l,u,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0;if(ur=(u=ur)+32|0,o=u+20|0,t=u+16|0,n=u+12|0,a=u+8|0,c=u+4|0,l=u,(0|(s=0|ar[(A|=0)+92>>2]))==(0|(f=0|ar[A+96>>2])))return ur=u,1;r=e+4|0,i=e+8|0;A:for(;;){if((0|(A=0|ar[s+4>>2]))!=(0|(y=0|ar[s+8>>2])))do{if(w=((0|ar[(p=A+4|0)>>2])-(0|ar[A>>2])|0)>>>24&255,b=0|ar[r>>2],(d=m=0|ar[i>>2])>>>0<=b>>>0){if(g=m=0|ar[e>>2],(0|(b=(v=b-m|0)+1|0))<0){A=9;break A}k=(h=d-m|0)<<1,h=(k=h>>>0<1073741823?k>>>0<b>>>0?b:k:2147483647)?0|El(k):0,tr[(d=h+v|0)>>0]=w,b=d+1|0,d=d+(0-v)|0,0<(0|v)&&Eu(0|d,0|g,0|v),ar[e>>2]=d,ar[r>>2]=b,ar[i>>2]=h+k,m&&(Vl(g),b=0|ar[r>>2])}else tr[b>>0]=w,b=1+(0|ar[r>>2])|0,ar[r>>2]=b;if(w=((0|ar[p>>2])-(0|ar[A>>2])|0)>>>16&255,(d=m=0|ar[i>>2])>>>0<=b>>>0){if(g=m=0|ar[e>>2],(0|(b=(v=b-m|0)+1|0))<0){A=19;break A}k=(h=d-m|0)<<1,h=(k=h>>>0<1073741823?k>>>0<b>>>0?b:k:2147483647)?0|El(k):0,tr[(d=h+v|0)>>0]=w,b=d+1|0,d=d+(0-v)|0,0<(0|v)&&Eu(0|d,0|g,0|v),ar[e>>2]=d,ar[r>>2]=b,ar[i>>2]=h+k,m&&(Vl(g),b=0|ar[r>>2])}else tr[b>>0]=w,b=1+(0|ar[r>>2])|0,ar[r>>2]=b;if(w=((0|ar[p>>2])-(0|ar[A>>2])|0)>>>8&255,(d=m=0|ar[i>>2])>>>0<=b>>>0){if(g=m=0|ar[e>>2],(0|(b=(v=b-m|0)+1|0))<0){A=29;break A}k=(h=d-m|0)<<1,h=(k=h>>>0<1073741823?k>>>0<b>>>0?b:k:2147483647)?0|El(k):0,tr[(d=h+v|0)>>0]=w,b=d+1|0,d=d+(0-v)|0,0<(0|v)&&Eu(0|d,0|g,0|v),ar[e>>2]=d,ar[r>>2]=b,ar[i>>2]=h+k,m&&(Vl(g),b=0|ar[r>>2])}else tr[b>>0]=w,b=1+(0|ar[r>>2])|0,ar[r>>2]=b;if(w=(0|ar[p>>2])-(0|ar[A>>2])&255,(d=m=0|ar[i>>2])>>>0<=b>>>0){if(g=m=0|ar[e>>2],(0|(b=(v=b-m|0)+1|0))<0){A=39;break A}k=(h=d-m|0)<<1,h=(k=h>>>0<1073741823?k>>>0<b>>>0?b:k:2147483647)?0|El(k):0,tr[(d=h+v|0)>>0]=w,b=d+1|0,d=d+(0-v)|0,0<(0|v)&&Eu(0|d,0|g,0|v),ar[e>>2]=d,ar[r>>2]=b,ar[i>>2]=h+k,m&&(Vl(g),b=0|ar[r>>2])}else tr[b>>0]=w,b=1+(0|ar[r>>2])|0,ar[r>>2]=b;ar[a>>2]=b,ar[c>>2]=ar[A>>2],ar[l>>2]=ar[p>>2],ar[n>>2]=ar[a>>2],ar[t>>2]=ar[c>>2],ar[o>>2]=ar[l>>2],yc(e,n,t,o),A=A+12|0}while((0|A)!=(0|y));if((0|(s=s+16|0))==(0|f)){A=3;break}}return 3==(0|A)?(ur=u,1):(9!=(0|A)&&19!=(0|A)&&29!=(0|A)&&39!=(0|A)||il(),0)}function yc(A,e,r,i){e|=0,r|=0,i|=0;var f,n,t,o,a=0,c=0,l=0,u=0,s=0,b=0,d=0;if(e=(u=f=0|ar[(A|=0)>>2])+(s=(0|ar[e>>2])-u|0)|0,a=0|ar[r>>2],t=c=0|ar[i>>2],(0|(b=c-a|0))<=0)return 0|(d=e);if((0|b)<=((l=0|ar[(o=A+8|0)>>2])-(i=n=0|ar[(d=A+4|0)>>2])|0)){if((0|(l=i-e|0))<(0|b)){if((0|(c=i=a+l|0))==(0|t))i=n;else{for(a=n;tr[a>>0]=0|tr[i>>0],i=i+1|0,a=1+(0|ar[d>>2])|0,ar[d>>2]=a,(0|i)!=(0|t););i=a}if(!(0<(0|l)))return 0|(d=e);u=i}else u=n;if((i=e+(l=u-(e+b)|0)|0)>>>0<n>>>0)for(a=u;tr[a>>0]=0|tr[i>>0],i=i+1|0,a=1+(0|ar[d>>2])|0,ar[d>>2]=a,(0|i)!=(0|n););if(0|l&&Gu(u+(0-l)|0,0|e,0|l),(0|(i=0|ar[r>>2]))==(0|c))return 0|(d=e);for(a=e;tr[a>>0]=0|tr[i>>0],(0|(i=i+1|0))!=(0|c);)a=a+1|0;return 0|e}if((0|(i=i-u+b|0))<0&&il(),c=(u=l-u|0)<<1,c=u>>>0<1073741823?c>>>0<i>>>0?i:c:2147483647,u=e,i=b=(l=c?0|El(c):0)+s|0,s=l+c|0,(0|a)==(0|t))c=f;else{for(c=b;tr[c>>0]=0|tr[a>>0],i=c=i+1|0,(0|(a=a+1|0))!=(0|t););c=0|ar[A>>2]}return l=b+(0-(a=u-c|0))|0,0<(0|a)&&Eu(0|l,0|c,0|a),e=0<(0|(a=(0|ar[d>>2])-u|0))?(Eu(0|i,0|e,0|a),i=i+a|0,0|ar[A>>2]):c,ar[A>>2]=l,ar[d>>2]=i,ar[o>>2]=s,e&&Vl(e),0|(d=b)}function Zc(A){ar[(A|=0)>>2]=0,ar[(A=A+8|0)>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0}function Cc(A,e,r,i){e|=0,r|=0,i|=0,ar[(A|=0)>>2]=e,ar[A+4>>2]=r,Rl(A+8|0,i)}function Wc(A,e,r){A|=0,r|=0;var i,f,n,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0;if(ur=(n=ur)+176|0,o=n+160|0,i=n+16|0,f=n,t=0|ar[(e|=0)>>2],!r)return ar[A>>2]=t,ar[A+4>>2]=ar[e+4>>2],e=0|ar[(e=5352)>>2],ar[(A=A+8|0)>>2]=e,void(ur=n);if(t){switch(u=64+i|0,ar[(b=8+i|0)>>2]=4080,s=12+i|0,ar[i>>2]=164,ar[u>>2]=184,Yi(64+i|(ar[4+i>>2]=0),s),ar[136+i>>2]=0,ar[140+i>>2]=-1,ar[i>>2]=4060,ar[u>>2]=4100,ar[b>>2]=4080,Ti(s),ar[s>>2]=3908,ar[(b=44+i|0)>>2]=0,ar[b+4>>2]=0,ar[b+8>>2]=0,ar[b+12>>2]=0,ar[60+i>>2]=24,ar[o>>2]=0,ar[o+4>>2]=0,ar[o+8>>2]=0,Of(s,o),(0|tr[o+11>>0])<0&&Vl(0|ar[o>>2]),l=8+i|0,0|ar[e>>2]){case 0:a=26780;break;case 1:a=21100;break;case 2:a=21086;break;case 3:a=21064;break;case 4:a=21044;break;case 5:a=21032;break;case 6:a=21008;break;case 7:a=20974;break;default:br(49065,20948,59,20957)}switch(t=0|Hf(0|Hf(l,a,0|ta(a)),21954,2),0|ar[(o=e+4|0)>>2]){case 0:c=21942;break;case 100:c=21919;break;case 101:c=21902;break;case 118:c=21884;break;case 119:c=21864;break;case 102:c=21850;break;case 103:c=21836;break;case 104:c=21822;break;case 105:c=21808;break;case 106:c=21794;break;case 107:c=21780;break;case 108:c=21766;break;case 109:c=21752;break;case 110:c=21738;break;case 111:c=21724;break;case 112:c=21710;break;case 113:c=21696;break;case 125:c=21682;break;case 114:c=21661;break;case 115:c=21615;break;case 116:c=21584;break;case 117:c=21567;break;case 120:c=21530;break;case 121:c=21509;break;case 122:c=21472;break;case 123:c=21436;break;case 124:c=21408;break;case 1e3:c=21384;break;case 2e3:c=21351;break;case 2001:c=21328;break;case 2002:c=21290;break;case 2003:c=21240;break;case 2004:c=21221;break;case 3e3:c=21203;break;case 3001:c=21180;break;case 3002:c=21155;break;case 3003:c=21126;break;default:br(49065,20948,117,20957)}Hf(t,c,0|ta(c)),(t=0|tr[(c=(a=e+8|0)+11|0)>>0])<<24>>24<0?t=0|ar[e+12>>2]:t&=255,0|t&&(d=0|Hf(l,21954,2),Hf(d,(t=(c=0|tr[c>>0])<<24>>24<0)?0|ar[a>>2]:a,t?0|ar[e+12>>2]:255&c)),jf(f,s),Jl(r,f),t=(0|tr[r+11>>0])<0?0|ar[r>>2]:r,ar[(a=r+12|0)>>2]=t,(0|tr[f+11>>0])<0&&Vl(0|ar[f>>2]),ar[i>>2]=4060,ar[u>>2]=4100,ar[l>>2]=4080,ar[s>>2]=3908,(0|tr[b+11>>0])<0&&Vl(0|ar[b>>2]),si(s),ci(u),t=0|ar[e>>2]}else ar[(a=r+12|0)>>2]=26780,o=e+4|0,t=0;ar[A>>2]=t,ar[A+4>>2]=ar[o>>2],e=0|ar[(e=a)>>2],ar[(d=A+8|0)>>2]=e,ur=n}function Ic(A){var e,r,i,f=0;for(ar[(A|=0)+76>>2]=0,e=A+76|(ar[A+80>>2]=0),r=A+72|0,i=(f=A)+72|0;(0|(f=f+4|(ar[f>>2]=0)))<(0|i););ar[r>>2]=e,ar[A+84>>2]=0,ar[A+88>>2]=0,ar[A+92>>2]=0}function Bc(A){var e,r=0,i=0,f=0,n=0;if(0|(r=0|ar[(A|=0)+84>>2])&&((0|(f=0|ar[(i=A+88|0)>>2]))!=(0|r)&&(ar[i>>2]=f+(~((f+-4-r|0)>>>2)<<2)),Vl(r)),function A(e,r){e|=0;r|=0;if(!r)return;A(e,0|ar[r>>2]);A(e,0|ar[r+4>>2]);e=0|ar[r+24>>2];0|e&&Il(e);Vl(r);return}(A+72|0,0|ar[A+76>>2]),0|(r=0|ar[A+68>>2])&&Il(r),0|(r=0|ar[A+60>>2])&&Il(r),0|(r=0|ar[A+52>>2])&&Il(r),0|(r=0|ar[A+44>>2])&&Il(r),0|(r=0|ar[A+36>>2])&&Il(r),0|(r=0|ar[A+28>>2])&&Il(r),0|(r=0|ar[A+20>>2])&&Il(r),0|(r=0|ar[(e=A+4|0)>>2])){if((0|(i=0|ar[(n=A+8|0)>>2]))!=(0|r)){for(;f=i+-8|0,ar[n>>2]=f,(0|(i=(i=0|ar[i+-4>>2])?(Il(i),0|ar[n>>2]):f))!=(0|r););r=0|ar[e>>2]}Vl(r)}r=0|ar[A>>2],ar[A>>2]=0,r&&ds[511&ar[4+(0|ar[r>>2])>>2]](r)}function Ec(A,e){e|=0;var r,i,f,n,t,o=0,a=0,c=0;if(ur=(t=ur)+16|0,f=t,ar[(A|=0)>>2]=0,ar[(n=A+4|0)>>2]=0,((ar[A+8>>2]=0)|(o=0|ar[e+72>>2]))!=(0|(r=e+76|0))){for(i=A+8|0,c=o,a=o=0;;){if(e=0|ar[56+(0|ar[c+20>>2])>>2],ar[f>>2]=e,o>>>0<a>>>0?(ar[o>>2]=e,ar[n>>2]=o+4):Kf(A,f),e=0|ar[c+4>>2])for(;o=0|ar[e>>2];)e=o;else if(e=0|ar[(o=c+8|0)>>2],(0|ar[e>>2])!=(0|c))for(;c=0|ar[o>>2],e=0|ar[(o=c+8|0)>>2],(0|ar[e>>2])!=(0|c););if((0|e)==(0|r))break;c=e,o=0|ar[n>>2],a=0|ar[i>>2]}ur=t}else ur=t}function Gc(A,e,r){A|=0;var i,f,n,t,o,a,c,l,u,s,b,d,k,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0,X=0,_=0,F=0,N=0,R=0,Y=0,J=0,D=0,Q=0;for(ur=(k=ur)+320|0,n=k+288|0,o=k+132|0,t=k+120|0,a=k+108|0,c=k+96|0,l=k+84|0,u=k+72|0,N=k+60|0,R=k+48|0,Y=k+36|0,D=k+24|0,s=k+12|0,X=4+(b=(Q=k)+300|0)|0,m=(r|=0)+17|0,p=r+16|0,y=(e|=0)+8|0,Z=e+12|0,C=e+4|0,W=e+24|0,I=e+28|0,B=e+16|0,E=e+20|0,f=11+(i=8+(d=k+144|0)|0)|0;;){if(ar[b>>2]=0,ar[X>>2]=0,An(d,r,b),(0|ar[d>>2])!=(0|ar[12480])){J=40;break}if(0|tr[m>>0]){J=35;break}if(0|tr[p>>0]){J=30;break}(0|(h=0|ar[y>>2]))==(0|ar[Z>>2])?oc(C,b):(ar[h>>2]=ar[b>>2],v=0|ar[X>>2],(ar[h+4>>2]=v)&&(Cl(v),h=0|ar[y>>2]),ar[y>>2]=h+8),v=0|ar[b>>2],1835365473==(0|(h=0|ar[v+20>>2]))&&(0!=(0|v)&&0!=(0|(G=0|lu(v,104,136,0)))?(h=G,(v=g=0|ar[X>>2])&&Cl(g)):v=h=0,ar[W>>2]=h,h=0|ar[I>>2],ar[I>>2]=v,0|h&&Il(h),v=0|ar[b>>2],h=0|ar[v+20>>2]),1718909296==(0|h)&&(0!=(0|v)&&0!=(0|(V=0|lu(v,104,120,0)))?(h=V,(v=g=0|ar[X>>2])&&Cl(g)):v=h=0,ar[B>>2]=h,h=0|ar[E>>2],ar[E>>2]=v,0|h&&Il(h)),(0|tr[f>>0])<0&&Vl(0|ar[i>>2]),0|(h=0|ar[X>>2])&&Il(h)}if(30!=(0|J)&&35!=(0|J)&&40!=(0|J)||((0|tr[f>>0])<0&&Vl(0|ar[i>>2]),0|(h=0|ar[X>>2])&&Il(h)),!(h=0|ar[e+16>>2]))return ar[n>>2]=0,ar[4+n>>2]=0,ar[8+n>>2]=0,Cc(A,2,102,n),0<=(0|tr[11+n>>0])||Vl(0|ar[n>>2]),void(ur=k);if(!(0|function(A,e){e|=0;var r=0;if((0|(r=0|ar[(A|=0)+64>>2]))==(0|(A=0|ar[A+68>>2])))return(e=0)|e;for(;;){if((0|ar[r>>2])==(0|e)){r=1,A=4;break}if((0|(r=r+4|0))==(0|A)){r=0,A=4;break}}return 4==(0|A)?0|r:0}(h,1751476579)))return g=64+d|0,ar[(v=8+d|0)>>2]=4080,w=12+d|0,ar[d>>2]=164,ar[g>>2]=184,Yi(64+d|(ar[4+d>>2]=0),w),ar[136+d>>2]=0,ar[140+d>>2]=-1,ar[d>>2]=4060,ar[g>>2]=4100,ar[v>>2]=4080,Ti(w),ar[w>>2]=3908,ar[(v=44+d|0)>>2]=0,ar[v+4>>2]=0,ar[v+8>>2]=0,ar[v+12>>2]=0,ar[60+d>>2]=24,ar[b>>2]=0,ar[4+b>>2]=0,ar[8+b>>2]=0,Of(w,b),(0|tr[11+b>>0])<0&&Vl(0|ar[b>>2]),Hf(h=8+d|0,21957,40),jf(o,w),Cc(A,3,0,o),(0|tr[11+o>>0])<0&&Vl(0|ar[o>>2]),ar[d>>2]=4060,ar[g>>2]=4100,ar[h>>2]=4080,ar[w>>2]=3908,(0|tr[v+11>>0])<0&&Vl(0|ar[v>>2]),si(w),ci(g),void(ur=k);if(!(h=0|ar[(m=e+24|0)>>2]))return ar[t>>2]=0,ar[4+t>>2]=0,ar[8+t>>2]=0,Cc(A,2,104,t),0<=(0|tr[11+t>>0])||Vl(0|ar[t>>2]),void(ur=k);nc(b,h,1751411826),X=0!=(0|(h=0|ar[b>>2]))&&0!=(0|(w=0|lu(h,104,936,0)))?(h=0|ar[4+b>>2])?(Cl(h),h):0:w=0,0|(h=0|ar[4+b>>2])&&Il(h);do{if(w){if(1885954932!=(0|ar[w+60>>2])){if(ar[c>>2]=0,ar[4+c>>2]=0,ar[8+c>>2]=0,Cc(A,2,114,c),0<=(0|tr[11+c>>0]))break;Vl(0|ar[c>>2]);break}if(nc(b,0|ar[m>>2],1885959277),V=0!=(0|(h=0|ar[b>>2]))&&0!=(0|(_=0|lu(h,104,904,0)))?(h=0|ar[4+b>>2])?(Cl(h),g=_,h):(g=_,0):g=0,0|(h=0|ar[4+b>>2])&&Il(h),g){nc(b,0|ar[m>>2],1768977008),h=0|ar[b>>2];do{if(h){if(nc(d,h,1768973167),w=0!=(0|(h=0|ar[d>>2]))&&0!=(0|(F=0|lu(h,104,744,0)))?(h=F,(v=w=0|ar[4+d>>2])&&Cl(w),v):h=0,ar[(v=e+32|0)>>2]=h,h=0|ar[(F=e+36|0)>>2],ar[F>>2]=w,0|h&&Il(h),0|(h=0|ar[4+d>>2])&&Il(h),!(0|ar[v>>2])){if(ar[N>>2]=0,ar[N+4>>2]=0,ar[N+8>>2]=0,Cc(A,2,108,N),0<=(0|tr[N+11>>0]))break;Vl(0|ar[N>>2]);break}nc(d,0|ar[b>>2],1768975713),h=0|ar[d>>2];do{if(h){if(!(h=0|lu(h,104,712,0))){w=h=0;break}if(!(v=w=0|ar[4+d>>2])){w=v;break}Cl(w),w=v}else w=h=0}while(0);if(ar[(v=e+40|0)>>2]=h,h=0|ar[(N=e+44|0)>>2],ar[N>>2]=w,0|h&&Il(h),0|(h=0|ar[4+d>>2])&&Il(h),!(0|ar[v>>2])){if(ar[R>>2]=0,ar[R+4>>2]=0,ar[R+8>>2]=0,Cc(A,2,109,R),0<=(0|tr[R+11>>0]))break;Vl(0|ar[R>>2]);break}nc(d,0|ar[m>>2],1768714083),h=0|ar[d>>2];do{if(h){if(!(h=0|lu(h,104,872,0))){w=h=0;break}if(!(v=w=0|ar[4+d>>2])){w=v;break}Cl(w),w=v}else w=h=0}while(0);if(ar[(v=e+48|0)>>2]=h,h=0|ar[(R=e+52|0)>>2],ar[R>>2]=w,0|h&&Il(h),0|(h=0|ar[4+d>>2])&&Il(h),!(0|ar[v>>2])){if(ar[Y>>2]=0,ar[Y+4>>2]=0,ar[Y+8>>2]=0,Cc(A,2,110,Y),0<=(0|tr[Y+11>>0]))break;Vl(0|ar[Y>>2]);break}nc(d,0|ar[m>>2],1768186228),h=0|ar[d>>2];do{if(h){if(!(h=0|lu(h,104,456,0))){w=h=0;break}if(!(w=v=0|ar[4+d>>2]))break;Cl(v)}else w=h=0}while(0);ar[e+56>>2]=h,h=0|ar[(Y=e+60|0)>>2],ar[Y>>2]=w,0|h&&Il(h),0|(h=0|ar[4+d>>2])&&Il(h),nc(d,0|ar[m>>2],1769104742),h=0|ar[d>>2];do{if(h){if(!(h=0|lu(h,104,520,0))){w=h=0;break}if(!(w=v=0|ar[4+d>>2]))break;Cl(v)}else w=h=0}while(0);ar[e+64>>2]=h,h=0|ar[(Y=e+68|0)>>2],ar[Y>>2]=w,0|h&&Il(h),0|(h=0|ar[4+d>>2])&&Il(h),nc(d,0|ar[m>>2],1768517222),h=0|ar[d>>2];do{if(h){ar[e+96>>2]=ar[g+56>>2],tc(s,h,1768842853),h=0|ar[s>>2],W=0|ar[(G=4+s|0)>>2];A:do{if((0|h)==(0|W))J=167;else{for(I=e+72|0,E=B=e+76|0,C=e+80|0,Z=h;;){if(!(h=0|ar[Z>>2])){h=0;break}if(!(w=0|lu(h,104,808,0))){h=0;break}if(p=w,(h=0|ar[Z+4>>2])?Cl(h):h=0,!w)break;(y=0==(0|(r=h)))?m=0|ar[w+56>>2]:(Cl(h),m=0|ar[w+56>>2],Cl(h)),w=0|ar[B>>2];do{if(w){for(g=E;;)if(m>>>0<(v=0|ar[w+16>>2])>>>0){if(!(v=0|ar[w>>2])){J=151;break}g=w,w=v}else{if(m>>>0<=v>>>0){J=155;break}if(!(v=0|ar[(g=w+4|0)>>2])){J=154;break}w=v}if(151==(0|J)){J=0,g=v=w;break}if(154==(0|J)){J=0,v=w;break}if(155==(0|J)){J=0,v=w;break}}else g=v=B}while(0);do{if(0|ar[g>>2]){if(!h)break;Il(h)}else w=0|El(28),ar[w+16>>2]=m,ar[w+20>>2]=p,ar[w+24>>2]=r,ar[w>>2]=0,ar[w+4>>2]=0,ar[w+8>>2]=v,ar[g>>2]=w,(v=0|ar[ar[I>>2]>>2])&&(ar[I>>2]=v,w=0|ar[g>>2]),Vc(0|ar[E>>2],w),ar[C>>2]=1+(0|ar[C>>2])}while(0);if(y||(Il(h),Il(h)),(0|(Z=Z+8|0))==(0|W)){J=167;break A}}if(ar[Q>>2]=0,ar[Q+4>>2]=0,ar[Q+8>>2]=0,Cc(A,2,125,Q),(0|tr[Q+11>>0])<0&&Vl(0|ar[Q>>2]),!h)break;Il(h)}}while(0);if(167==(0|J)&&(e=0|ar[(D=49920)+4>>2],ar[(Q=A)>>2]=ar[D>>2],ar[Q+4>>2]=e,Rl(A+8|0,49928)),0|(h=0|ar[s>>2])){if((0|(w=0|ar[G>>2]))!=(0|h)){for(;v=w+-8|0,ar[G>>2]=v,(0|(w=(w=0|ar[w+-4>>2])?(Il(w),0|ar[G>>2]):v))!=(0|h););h=0|ar[s>>2]}Vl(h)}}else{if(ar[D>>2]=0,ar[D+4>>2]=0,ar[D+8>>2]=0,Cc(A,2,111,D),0<=(0|tr[D+11>>0]))break;Vl(0|ar[D>>2])}}while(0);0|(h=0|ar[4+d>>2])&&Il(h)}else ar[u>>2]=0,ar[4+u>>2]=0,ar[8+u>>2]=0,Cc(A,2,112,u),(0|tr[11+u>>0])<0&&Vl(0|ar[u>>2])}while(0);0|(h=0|ar[4+b>>2])&&Il(h)}else ar[l>>2]=0,ar[4+l>>2]=0,ar[8+l>>2]=0,Cc(A,2,107,l),(0|tr[11+l>>0])<0&&Vl(0|ar[l>>2]);0|V&&Il(V)}else ar[a>>2]=0,ar[4+a>>2]=0,ar[8+a>>2]=0,Cc(A,2,105,a),(0|tr[11+a>>0])<0&&Vl(0|ar[a>>2])}while(0);ur=(X&&Il(X),k)}function Vc(A,e){var r=0,i=0,f=0,n=0,t=0;if(t=(0|(e|=0))==(0|(A|=0)),tr[e+12>>0]=1&t,!t){for(;;){if(t=0|ar[e+8>>2],0|tr[(f=t+12|0)>>0]){r=23;break}if(i=0|ar[(n=t+8|0)>>2],(0|(r=0|ar[i>>2]))==(0|t)){if(!(r=0|ar[i+4>>2])){r=7;break}if(0|tr[(r=r+12|0)>>0]){r=7;break}e=r}else{if(!r){r=16;break}if(0|tr[(r=r+12|0)>>0]){r=16;break}e=r}if(tr[f>>0]=1,t=(0|i)==(0|A),tr[i+12>>0]=1&t,tr[e>>0]=1,t){r=23;break}e=i}if(7==(0|r))return f=(0|ar[t>>2])==(0|e)?(e=t,i):(r=0|ar[(A=t+4|0)>>2],e=0|ar[r>>2],e=(ar[A>>2]=e)?(ar[e+8>>2]=t,0|ar[n>>2]):i,ar[r+8>>2]=e,e=0|ar[n>>2],ar[((0|ar[e>>2])==(0|t)?e:e+4|0)>>2]=r,ar[r>>2]=t,ar[n>>2]=r,0|ar[(e=r)+8>>2]),tr[e+12>>0]=1,e=(tr[f+12>>0]=0)|ar[f>>2],i=0|ar[(r=e+4|0)>>2],0|(ar[f>>2]=i)&&(ar[i+8>>2]=f),t=f+8|0,ar[e+8>>2]=ar[t>>2],n=0|ar[t>>2],ar[((0|ar[n>>2])==(0|f)?n:n+4|0)>>2]=e,ar[r>>2]=f,void(ar[t>>2]=e);if(16==(0|r))return(0|ar[t>>2])==(0|e)?(f=0|ar[t>>2],e=0|ar[(r=f+4|0)>>2],(ar[t>>2]=e)&&(ar[e+8>>2]=t,i=0|ar[n>>2]),ar[f+8>>2]=i,e=0|ar[n>>2],ar[((0|ar[e>>2])==(0|t)?e:e+4|0)>>2]=f,ar[r>>2]=t,ar[n>>2]=f,i=0|ar[(e=f)+8>>2]):e=t,tr[e+12>>0]=1,e=(tr[i+12>>0]=0)|ar[(t=i+4|0)>>2],r=0|ar[e>>2],0|(ar[t>>2]=r)&&(ar[r+8>>2]=i),t=i+8|0,ar[e+8>>2]=ar[t>>2],n=0|ar[t>>2],ar[((0|ar[n>>2])==(0|i)?n:n+4|0)>>2]=e,ar[e>>2]=i,void(ar[t>>2]=e)}}function Xc(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f,n,t,o=0,a=0;ur=(t=ur)+48|0,ar[(f=(n=t)+24|0)>>2]=0,ar[4+f>>2]=0,4294967279<i>>>(ar[8+f>>2]=0)&&Nl(),i>>>0<11?(tr[11+f>>0]=i)?(o=f,a=6):o=f:(o=0|El(a=i+16&-16),ar[f>>2]=o,ar[8+f>>2]=-2147483648|a,ar[4+f>>2]=i,a=6),6==(0|a)&&Eu(0|o,0|r,0|i),a=(o=(tr[o+i>>0]=0)|El(140))+60|0,r=o+8|0,ar[o>>2]=1012,ar[a>>2]=1032,ar[o+4>>2]=0,Yi(a,r),ar[o+132>>2]=0,ar[o+136>>2]=-1,ar[o>>2]=5384,ar[a>>2]=5404,Ti(r),ar[r>>2]=3908,ar[(a=o+40|0)>>2]=0,ar[a+4>>2]=0,ar[a+8>>2]=0,ar[a+12>>2]=0,ar[o+56>>2]=8,Of(r,f),r=0|ar[e>>2],ar[e>>2]=o,r&&(ds[511&ar[4+(0|ar[r>>2])>>2]](r),o=0|ar[e>>2]),tr[n+17>>0]=0,ar[(a=n+8|0)>>2]=i,ar[a+4>>2]=0,tr[n+16>>0]=0==(0|i)&1,ar[n>>2]=o,ar[n+4>>2]=0,Gc(A,e,n),ur=(0<=(0|tr[11+f>>0])||Vl(0|ar[f>>2]),t)}function _c(A,e,r){A|=0,r|=0;var i,f=0,n=0;if(0|(f=0|ar[(i=(e|=0)+76|0)>>2])){e=i,n=f;A:for(;;){for(f=n;!((0|ar[f+16>>2])>>>0>=r>>>0);)if(!(f=0|ar[f+4>>2]))break A;if(!(n=0|ar[f>>2])){e=f;break}e=f}if((0|e)!=(0|i)&&(0|ar[e+16>>2])>>>0<=r>>>0)return void Rl(A,64+(0|ar[e+20>>2])|0)}ar[A>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0}function Fc(A,e,r,i){A|=0,r|=0,i|=0;var f,n,t,o;return ur=(o=ur)+32|0,f=o+12|0,n=o,(t=0|ar[(e|=0)+32>>2])?0|ar[(e=e+40|0)>>2]?(lc(A,t,r,e,i),void(ur=o)):(ar[n>>2]=0,ar[n+4>>2]=0,ar[n+8>>2]=0,Cc(A,2,109,n),void(ur=(0<=(0|tr[n+11>>0])||Vl(0|ar[n>>2]),o))):(ar[f>>2]=0,ar[4+f>>2]=0,ar[8+f>>2]=0,Cc(A,2,108,f),0<=(0|tr[11+f>>0])||Vl(0|ar[f>>2]),void(ur=o))}function Nc(A,e,r,i){A|=0,r|=0,i|=0;var f,n,t,o,a,c,l,u,s,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0;if(ur=(s=ur)+320|0,c=s+192|0,w=s+284|0,g=s+260|0,u=s+296|0,l=s+272|0,W=s+48|0,n=s+248|0,f=s+236|0,y=s+24|0,o=s+224|0,t=s+212|0,a=s,0|(k=0|ar[(v=(e|=0)+76|0)>>2])){b=v,h=k;A:for(;;){for(d=h;!((0|ar[d+16>>2])>>>0>=r>>>0);)if(!(d=0|ar[d+4>>2]))break A;if(!(h=0|ar[d>>2])){b=d;break}b=d}if((0|b)!=(0|v)&&(0|ar[b+16>>2])>>>0<=r>>>0){b=v;A:for(;;){for(d=k;!((0|ar[d+16>>2])>>>0>=r>>>0);)if(!(d=0|ar[d+4>>2]))break A;if(!(k=0|ar[d>>2])){b=d;break}b=d}if((0|b)!=(0|v)&&(0|ar[b+16>>2])>>>0<=r>>>0){if(Rl(u,64+(0|ar[b+20>>2])|0),function(A,e){e|=0;var r,i,f,n=0;if(ar[(A|=0)>>2]=0,ar[(f=A+4|0)>>2]=0,ar[A+8>>2]=0,n=(0|ar[(i=e+4|0)>>2])-(0|ar[e>>2])|0,!(r=n>>5))return;134217727<r>>>0&&il();if(n=0|El(n),ar[f>>2]=n,ar[A>>2]=n,ar[A+8>>2]=n+(r<<5),A=0|ar[e>>2],e=0|ar[i>>2],(0|A)==(0|e))return;for(;ar[n>>2]=ar[A>>2],ar[n+4>>2]=ar[A+4>>2],ar[n+8>>2]=ar[A+8>>2],ar[n+12>>2]=ar[A+12>>2],fc(n+16|0,A+16|0),A=A+32|0,n=32+(0|ar[f>>2])|0,ar[f>>2]=n,(0|A)!=(0|e););}(l,56+(0|ar[(p=e+48|0)>>2])|0),(0|(b=0|ar[l>>2]))!=(0|(d=0|ar[(C=4+l|0)>>2]))){for(m=0;m=(g=(0|ar[b>>2])==(0|r))?b:m,!(g|(0|(b=b+32|0))==(0|d)););if(m){ar[f>>2]=0,ar[4+f>>2]=0,ar[8+f>>2]=0,Cc(c,4,3e3,f),(0|tr[11+f>>0])<0&&Vl(0|ar[f>>2]),d=0|tr[(k=11+u|0)>>0],b=0|ar[(h=4+u|0)>>2];do{if(4==(0|(d<<24>>24<0?b:255&d))){if(0|zl(u,0,-1,27385,4)){d=0|tr[k>>0],b=0|ar[h>>2],Z=66;break}if(ar[W>>2]=0,ar[(g=W+4|0)>>2]=0,lc(y,(ar[W+8>>2]=0)|ar[e+32>>2],r,e+40|0,W),0|ar[y>>2])h=0|ar[(e=y)+4>>2],ar[(i=A)>>2]=ar[e>>2],ar[i+4>>2]=h,h=y+8|0,ar[(i=A+8|0)>>2]=ar[h>>2],ar[i+4>>2]=ar[h+4>>2],ar[i+8>>2]=ar[h+8>>2],ar[h>>2]=0,ar[h+4>>2]=0,ar[h+8>>2]=0,h=1;else{b=0|ar[W>>2],v=0|ar[g>>2];A:do{if((0|b)==(0|v))b=0,Z=45;else{for(w=b,h=0;;){if(b=0|ar[w+4>>2],1752589123==(0|ar[b+20>>2])){do{if(b){if(!(b=0|lu(b,104,488,0))){b=d=0;break}if(d=b,!(b=k=0|ar[w+8>>2]))break;Cl(k)}else b=d=0}while(0);if(0|h&&Il(h),d)break}else b=h;if((0|(w=w+12|0))==(0|v)){Z=45;break A}h=b}if(!(0|pc(d,i))){if(ar[t>>2]=0,ar[4+t>>2]=0,ar[8+t>>2]=0,Cc(A,2,117,t),0<=(0|tr[11+t>>0])){d=1;break}Vl(0|ar[t>>2]),d=1;break}ac(a,0|ar[p>>2],m,0|ar[e>>2],e+56|0,i),d=0|ar[(k=a)+4>>2],ar[(h=c)>>2]=ar[k>>2],ar[h+4>>2]=d,d=a+8|0,(0|tr[(k=(h=8+c|0)+11|0)>>0])<0?(tr[ar[h>>2]>>0]=0,ar[12+c>>2]=0):(tr[h>>0]=0,tr[k>>0]=0),Ml(h,0),ar[h>>2]=ar[d>>2],ar[h+4>>2]=ar[d+4>>2],ar[h+8>>2]=ar[d+8>>2],d=0}}while(0);45==(0|Z)&&(ar[o>>2]=0,ar[4+o>>2]=0,ar[8+o>>2]=0,Cc(A,2,106,o),d=((0|tr[11+o>>0])<0&&Vl(0|ar[o>>2]),1)),h=(b&&Il(b),d)}if((0|tr[(b=y+8|0)+11>>0])<0&&Vl(0|ar[b>>2]),0|(b=0|ar[W>>2])){if((0|(d=0|ar[g>>2]))!=(0|b)){for(;k=d+-12|0,ar[g>>2]=k,(0|(d=(d=0|ar[d+-4>>2])?(Il(d),0|ar[g>>2]):k))!=(0|b););b=0|ar[W>>2]}Vl(b)}h||(Z=78)}else Z=66}while(0);A:do{if(66==(0|Z)){4==(0|(d<<24>>24<0?b:255&d))?0|zl(u,0,-1,27390,4)&&(d=0|tr[k>>0],b=0|ar[h>>2],Z=69):Z=69;do{if(69==(0|Z)){if(4==(0|(d<<24>>24<0?b:255&d))){if(!(0|zl(u,0,-1,27400,4)))break;d=0|tr[k>>0],b=0|ar[h>>2]}if(4!=(0|(d<<24>>24<0?b:255&d))){Z=78;break A}if(0|zl(u,0,-1,27077,4)){Z=78;break A}}}while(0);ac(W,0|ar[p>>2],m,0|ar[e>>2],e+56|0,i),b=0|ar[(d=W)+4>>2],ar[(k=c)>>2]=ar[d>>2],ar[k+4>>2]=b,b=W+8|0,(0|tr[(d=(k=8+c|0)+11|0)>>0])<0?(tr[ar[k>>2]>>0]=0,ar[12+c>>2]=0):(tr[k>>0]=0,tr[d>>0]=0),Ml(k,0),ar[k>>2]=ar[b>>2],ar[k+4>>2]=ar[b+4>>2],ar[k+8>>2]=ar[b+8>>2],Z=78}}while(0);do{if(78==(0|Z)){if((0|ar[c>>2])==(0|ar[12480])){y=0|ar[(i=49920)+4>>2],ar[(W=A)>>2]=ar[i>>2],ar[W+4>>2]=y,Rl(A+8|0,49928);break}y=0|ar[(i=c)+4>>2],ar[(W=A)>>2]=ar[i>>2],ar[W+4>>2]=y,W=A+8|0,A=8+c|0,ar[W>>2]=ar[A>>2],ar[W+4>>2]=ar[A+4>>2],ar[W+8>>2]=ar[A+8>>2],ar[A>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0;break}}while(0);(0|tr[(b=8+c|0)+11>>0])<0&&Vl(0|ar[b>>2])}else Z=21}else Z=21;if(21==(0|Z)&&(d=W+64|0,ar[(h=W+8|0)>>2]=4080,k=W+12|0,ar[W>>2]=164,ar[d>>2]=184,Yi(W+64|(ar[W+4>>2]=0),k),ar[W+136>>2]=0,ar[W+140>>2]=-1,ar[W>>2]=4060,ar[d>>2]=4100,ar[h>>2]=4080,Ti(k),ar[k>>2]=3908,ar[(h=W+44|0)>>2]=0,ar[h+4>>2]=0,ar[h+8>>2]=0,ar[h+12>>2]=0,ar[W+60>>2]=24,ar[c>>2]=0,ar[4+c>>2]=0,ar[8+c>>2]=0,Of(k,c),(0|tr[11+c>>0])<0&&Vl(0|ar[c>>2]),Hf(0|qi(0|Hf(b=W+8|0,22068,13),r),22082,23),jf(n,k),Cc(A,2,117,n),(0|tr[11+n>>0])<0&&Vl(0|ar[n>>2]),ar[W>>2]=4060,ar[d>>2]=4100,ar[b>>2]=4080,ar[k>>2]=3908,(0|tr[h+11>>0])<0&&Vl(0|ar[h>>2]),si(k),ci(d)),0|(b=0|ar[l>>2])){if((0|(d=0|ar[C>>2]))!=(0|b)){for(;k=d+-32|0,ar[C>>2]=k,(0|(d=(h=0|ar[d+-16>>2])?((0|(k=0|ar[(d=d+-12|0)>>2]))!=(0|h)&&(ar[d>>2]=k+(24*~(((k+-24-h|0)>>>0)/24|0)|0)),Vl(h),0|ar[C>>2]):k))!=(0|b););b=0|ar[l>>2]}Vl(b)}return(0|tr[11+u>>0])<0&&Vl(0|ar[u>>2]),void(ur=s)}return(ar[g>>2]=0,ar[g+4>>2]=0,ar[g+8>>2]=0,Cc(A,5,2e3,g),0<=(0|tr[g+11>>0]))?void(ur=s):(Vl(0|ar[g>>2]),void(ur=s))}}ar[w>>2]=0,ar[w+4>>2]=0,ar[w+8>>2]=0,Cc(A,5,2e3,w),ur=(0<=(0|tr[w+11>>0])||Vl(0|ar[w>>2]),s)}function Rc(A,e){A|=0;var r=0;(e|=0)&&(Rc(A,0|ar[e>>2]),Rc(A,0|ar[e+4>>2]),0|(A=0|ar[e+32>>2])&&((0|ar[(r=e+36|0)>>2])!=(0|A)&&(ar[r>>2]=A),Vl(A)),Vl(e))}function Yc(A,e,r,i,f){e|=0,r|=0,i|=0,f|=0,ar[(A|=0)+24>>2]=e,ar[A+28>>2]=r,ar[A+32>>2]=i,ar[A+36>>2]=f}function Jc(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0;var n,t,o,a,c,l=0,u=0,s=0,b=0,d=0,k=0;ur=(c=ur)+48|0,n=c+12|0,t=c,(0|(f|=0))<=0&&br(22106,22121,50,22135),ar[(o=12+n|0)>>2]=0,ar[(a=16+n|0)>>2]=0,ar[20+n>>2]=0,ar[n>>2]=r,ar[4+n>>2]=i,ar[8+n>>2]=f,l=0|sr(f=(f+7|0)/8|0,r),ar[(u=24+n|0)>>2]=l,s=12+n|0,(f=0|sr(0|sr(i,r),f))?(dn(s,f),b=0|ar[s>>2],d=0|ar[a>>2],k=0|ar[20+n>>2],l=0|ar[u>>2]):k=d=b=0,ar[t>>2]=ar[n>>2],ar[t+4>>2]=ar[4+n>>2],ar[t+8>>2]=ar[8+n>>2],ar[20+n>>2]=0,ar[a>>2]=0,s=A+40|(ar[s>>2]=0),f=0|ar[(r=A+44|0)>>2];do{if(f){for(i=A+44|0;;)if((0|e)<(0|(r=0|ar[f+16>>2]))){if(!(r=0|ar[f>>2])){r=10;break}i=f,f=r}else{if((0|e)<=(0|r)){r=14;break}if(!(r=0|ar[(i=f+4|0)>>2])){r=13;break}f=r}if(10==(0|r)){i=u=f;break}if(13==(0|r)){u=f;break}if(14==(0|r)){u=f;break}}else i=u=r}while(0);0|ar[i>>2]?0|b&&Vl(b):(f=0|El(48),ar[f+16>>2]=e,ar[(r=f+20|0)>>2]=ar[t>>2],ar[r+4>>2]=ar[t+4>>2],ar[r+8>>2]=ar[t+8>>2],ar[f+32>>2]=b,ar[f+36>>2]=d,ar[f+40>>2]=k,ar[f+44>>2]=l,ar[f>>2]=0,ar[f+4>>2]=0,ar[f+8>>2]=u,ar[i>>2]=f,(r=0|ar[ar[s>>2]>>2])&&(ar[s>>2]=r,f=0|ar[i>>2]),Vc(0|ar[A+44>>2],f),ar[(A=A+48|0)>>2]=1+(0|ar[A>>2])),ur=((f=0|ar[o>>2])&&((0|ar[a>>2])!=(0|f)&&(ar[a>>2]=f),Vl(f)),c)}function Dc(A,e){return A|=0,(e|=0)&&(Dc(A,0|ar[e>>2]),Dc(A,0|ar[e+4>>2]),void Vl(e))}function Qc(A,e,r){e|=0,r|=0;var i,f=0,n=0;if(!(f=0|ar[(i=(A|=0)+44|0)>>2]))return(r=0)|r;A=i,n=f;A:for(;;){for(f=n;!((0|ar[f+16>>2])>=(0|e));)if(!(f=0|ar[f+4>>2]))break A;if(!(n=0|ar[f>>2])){A=f;break}A=f}return(0|A)==(0|i)||(0|ar[A+16>>2])>(0|e)?(r=0)|r:(0|r&&(ar[r>>2]=ar[A+44>>2]),0|(r=0|ar[A+32>>2]))}function Tc(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f,n,t,o,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0;ur=(o=ur)+64|0,t=o+36|0,ar[(k=(n=o)+32|0)>>2]=r,b=(d=0|ar[e>>2])+40|0,c=0|ar[(l=d+44|0)>>2];do{if(c){for(u=d+44|0;;)if((0|r)<(0|(l=0|ar[c+16>>2]))){if(!(l=0|ar[c>>2])){l=6;break}u=c,c=l}else{if((0|r)<=(0|l)){l=10;break}if(!(l=0|ar[(u=c+4|0)>>2])){l=9;break}c=l}if(6==(0|l)){u=s=c;break}if(9==(0|l)){s=c;break}if(10==(0|l)){s=c;break}}else u=s=l}while(0);(c=0|ar[u>>2])||(l=0|El(48),ar[l+16>>2]=r,ar[(c=l+20|0)>>2]=0,ar[c+4>>2]=0,ar[c+8>>2]=0,ar[c+12>>2]=0,ar[c+16>>2]=0,ar[c+20>>2]=0,ar[c+24>>2]=0,ar[l>>2]=0,ar[l+4>>2]=0,ar[l+8>>2]=s,ar[u>>2]=l,c=(c=0|ar[ar[b>>2]>>2])?(ar[b>>2]=c,0|ar[u>>2]):l,Vc(0|ar[d+44>>2],c),ar[(c=d+48|0)>>2]=1+(0|ar[c>>2]),c=l),b=c+20|0,ar[t>>2]=ar[b>>2],ar[4+t>>2]=ar[b+4>>2],ar[8+t>>2]=ar[b+8>>2],l=c+32|0,ar[(b=12+t|0)>>2]=0,ar[(f=16+t|0)>>2]=0,(ar[20+t>>2]=0)|(u=(0|ar[(s=c+36|0)>>2])-(0|ar[l>>2])|0)&&((0|u)<0&&il(),r=0|El(u),ar[f>>2]=r,ar[b>>2]=r,ar[20+t>>2]=r+u,u=0|ar[l>>2],0<(0|(l=(0|ar[s>>2])-u|0))&&(Eu(0|r,0|u,0|l),ar[f>>2]=r+l)),ar[(u=24+t|0)>>2]=ar[c+44>>2],function(A,e){e|=0;var r,i=0,f=0,n=0,t=0;if(!(t=0|ar[(n=4+(A|=0)|0)>>2]))return t=0;r=0|ar[e>>2],f=n,i=t;A:for(;;){for(e=i;!((0|ar[e+16>>2])>=(0|r));)if(!(e=0|ar[e+4>>2]))break A;if(!(i=0|ar[e>>2])){f=e;break}f=e}if((0|f)==(0|n))return t=0;if((0|r)<(0|ar[f+16>>2]))return t=0;if(e=0|ar[f+4>>2])for(;i=0|ar[e>>2];)e=i;else if(e=0|ar[(i=f+8|0)>>2],(0|ar[e>>2])!=(0|f))for(;n=0|ar[i>>2],e=0|ar[(i=n+8|0)>>2],(0|ar[e>>2])!=(0|n););(0|ar[A>>2])==(0|f)&&(ar[A>>2]=e);ar[(e=A+8|0)>>2]=(0|ar[e>>2])-1,function(A,e){A|=0;var r,i,f,n=0,t=0,o=0,a=0,c=0,l=0,u=0;if(t=0|ar[(e|=0)>>2])if(n=0|ar[e+4>>2])for(;;){if(!(t=0|ar[n>>2])){t=0;break}n=t}else n=e;else n=e,t=0;r=n+4|0,i=0|ar[(0|t?n:r)>>2],l=n+8|0,(f=0!=(0|i))&&(ar[8+i>>2]=ar[l>>2]);t=0|ar[l>>2],(0|ar[t>>2])==(0|n)?(ar[t>>2]=i,(0|n)==(0|A)?(A=i,c=0):(t=t+4|0,u=10)):(ar[t+4>>2]=i,u=10);10==(0|u)&&(c=0|ar[t>>2]);a=0!=(0|tr[(o=n+12|0)>>0]),(0|n)!=(0|e)&&(t=0|ar[(u=e+8|0)>>2],ar[l>>2]=t,ar[((0|ar[ar[u>>2]>>2])==(0|e)?t:t+4|0)>>2]=n,t=0|ar[e>>2],ar[n>>2]=t,ar[t+8>>2]=n,t=0|ar[e+4>>2],0|(ar[r>>2]=t)&&(ar[t+8>>2]=n),tr[o>>0]=0|tr[e+12>>0],A=(0|A)==(0|e)?n:A);if(!(a&0!=(0|A)))return;if(f)return tr[12+i>>0]=1;for(;;){if(a=0|ar[c+8>>2],t=0!=(0|tr[(n=c+12|0)>>0]),(0|ar[a>>2])==(0|c)){if(t?l=c:(tr[n>>0]=1,tr[a+12>>0]=0,n=0|ar[a>>2],o=0|ar[(t=n+4|0)>>2],0|(ar[a>>2]=o)&&(ar[o+8>>2]=a),u=a+8|0,ar[n+8>>2]=ar[u>>2],l=0|ar[u>>2],ar[((0|ar[l>>2])==(0|a)?l:l+4|0)>>2]=n,ar[t>>2]=a,ar[u>>2]=n,u=0|ar[c+4>>2],l=0|ar[u>>2],A=(0|A)==(0|u)?c:A),n=0|ar[l>>2],!(o=0==(0|n))&&0==(0|tr[n+12>>0])){A=l,u=55;break}if(0|(a=0|ar[(t=l+4|0)>>2])&&0==(0|tr[a+12>>0])){u=49;break}if(((tr[l+12>>0]=0)|(n=0|ar[l+8>>2]))==(0|A)|0==(0|tr[(t=n+12|0)>>0])){u=48;break}}else{if(t?o=c:(tr[n>>0]=1,tr[a+12>>0]=0,n=0|ar[(u=a+4|0)>>2],t=0|ar[n>>2],0|(ar[u>>2]=t)&&(ar[t+8>>2]=a),u=a+8|0,ar[n+8>>2]=ar[u>>2],o=0|ar[u>>2],ar[((0|ar[o>>2])==(0|a)?o:o+4|0)>>2]=n,ar[n>>2]=a,ar[u>>2]=n,u=0|ar[c>>2],o=0|ar[u+4>>2],A=(0|A)==(0|u)?c:A),0|(t=0|ar[o>>2])&&0==(0|tr[t+12>>0])){u=31;break}if(0|(n=0|ar[o+4>>2])&&0==(0|tr[n+12>>0])){A=n,u=32;break}if(((tr[o+12>>0]=0)|(n=0|ar[o+8>>2]))==(0|A)){u=30;break}if(!(0|tr[n+12>>0])){A=n,u=30;break}}c=0|ar[n+8>>2],c=0|ar[((0|ar[c>>2])==(0|n)?c+4|0:c)>>2]}do{if(30==(0|u))return tr[A+12>>0]=1;if(31==(0|u))A=0|ar[o+4>>2],u=A?32:33;else{if(48==(0|u))return tr[t>>0]=1;if(49==(0|u)){if(o)A=a;else{if(!(0|tr[n+12>>0])){A=l,u=55;break}A=0|ar[(t=A=l+4|0)>>2]}tr[A+12>>0]=1,tr[l+12>>0]=0,n=0|ar[A>>2],0|(ar[t>>2]=n)&&(ar[n+8>>2]=l),n=l+8|0,ar[A+8>>2]=ar[n>>2],u=0|ar[n>>2],ar[((0|ar[u>>2])==(0|l)?u:u+4|0)>>2]=A,ar[A>>2]=l,ar[n>>2]=A,n=l,u=55}}}while(0);if(32==(0|u))0|tr[A+12>>0]?u=33:n=o;else if(55==(0|u))return o=0|ar[A+8>>2],t=o+12|0,tr[A+12>>0]=0|tr[t>>0],tr[t>>0]=1,tr[n+12>>0]=1,A=0|ar[o>>2],t=0|ar[(n=A+4|0)>>2],0|(ar[o>>2]=t)&&(ar[t+8>>2]=o),u=o+8|0,ar[A+8>>2]=ar[u>>2],e=0|ar[u>>2],ar[((0|ar[e>>2])==(0|o)?e:e+4|0)>>2]=A,ar[n>>2]=o,ar[u>>2]=A;33==(0|u)&&(tr[t+12>>0]=1,tr[o+12>>0]=0,n=0|ar[(A=t+4|0)>>2],0|(ar[o>>2]=n)&&(ar[n+8>>2]=o),n=o+8|0,ar[t+8>>2]=ar[n>>2],u=0|ar[n>>2],ar[((0|ar[u>>2])==(0|o)?u:u+4|0)>>2]=t,ar[A>>2]=o,ar[n>>2]=t,n=t,A=o);t=0|ar[n+8>>2],u=t+12|0,tr[n+12>>0]=0|tr[u>>0],tr[u>>0]=1,tr[A+12>>0]=1,A=0|ar[(u=t+4|0)>>2],n=0|ar[A>>2],0|(ar[u>>2]=n)&&(ar[n+8>>2]=t);u=t+8|0,ar[A+8>>2]=ar[u>>2],e=0|ar[u>>2],ar[((0|ar[e>>2])==(0|t)?e:e+4|0)>>2]=A,ar[A>>2]=t,ar[u>>2]=A}(t,f),0|(e=0|ar[f+32>>2])&&((0|ar[(i=f+36|0)>>2])!=(0|e)&&(ar[i>>2]=e),Vl(e));Vl(f),t=1}(40+(0|ar[e>>2])|0,k),ar[n>>2]=i,ar[(d=n+4|0)>>2]=ar[t>>2],ar[d+4>>2]=ar[4+t>>2],ar[d+8>>2]=ar[8+t>>2],ar[(e=n+16|0)>>2]=0,ar[(k=n+20|0)>>2]=0,l=(ar[n+24>>2]=0)|ar[b>>2],c=(0|ar[f>>2])-l|0;do{if(c){if(!((0|c)<0)){a=0|El(c),ar[k>>2]=a,w=(ar[e>>2]=a)+c|0,ar[n+24>>2]=w,Eu(0|a,0|l,0|c),ar[k>>2]=w,h=a;break}il()}else a=w=h=0}while(0);r=0|ar[u>>2],ar[n+28>>2]=r,b=A+40|0,c=0|ar[(l=A+44|0)>>2];do{if(c){for(u=A+44|0;;)if((0|i)<(0|(l=0|ar[c+16>>2]))){if(!(l=0|ar[c>>2])){l=30;break}u=c,c=l}else{if((0|i)<=(0|l)){l=34;break}if(!(l=0|ar[(u=c+4|0)>>2])){l=33;break}c=l}if(30==(0|l)){u=s=c;break}if(33==(0|l)){s=c;break}if(34==(0|l)){s=c;break}}else u=s=l}while(0);0|ar[u>>2]||(a=0|El(48),ar[a+16>>2]=i,ar[(c=a+20|0)>>2]=ar[d>>2],ar[c+4>>2]=ar[d+4>>2],ar[c+8>>2]=ar[d+8>>2],ar[a+32>>2]=h,ar[a+36>>2]=w,ar[a+40>>2]=w,ar[n+24>>2]=0,ar[k>>2]=0,ar[e>>2]=0,ar[a+44>>2]=r,ar[a>>2]=0,ar[a+4>>2]=0,ar[a+8>>2]=s,ar[u>>2]=a,(c=0|ar[ar[b>>2]>>2])&&(ar[b>>2]=c,a=0|ar[u>>2]),Vc(0|ar[A+44>>2],a),ar[(a=A+48|0)>>2]=1+(0|ar[a>>2]),a=0|ar[n+16>>2]),0|a&&((0|ar[k>>2])!=(0|a)&&(ar[k>>2]=a),Vl(a)),ur=((a=0|ar[12+t>>2])&&((0|ar[f>>2])!=(0|a)&&(ar[f>>2]=a),Vl(a)),o)}function Mc(A,e,r,i){e|=0,r|=0,i|=0;var f,n,t,o=0,a=0;ur=(t=ur)+16|0,f=t,ar[(A|=0)>>2]=0,o=(ar[(n=A+4|0)>>2]=0)|ar[(a=e+32|0)>>2];do{if((0|o)!=(0|r)&&1==(0|r)&0==(0|o)){if(3==(0|i)&1==(0|(o=0|ar[e+36>>2]))){Sc(f,e),o=0|ar[f+4>>2],ar[A>>2]=ar[f>>2],ar[n>>2]=o;break}if(10==(0|i)&1==(0|o)){Uc(f,e),o=0|ar[f+4>>2],ar[A>>2]=ar[f>>2],ar[n>>2]=o;break}11==(0|i)&1==(0|o)?(Oc(f,e),o=0|ar[f+4>>2],ar[A>>2]=ar[f>>2],ar[n>>2]=o):o=0}else o=0}while(0);ur=(1==(0|r)&&(0|ar[a>>2])==(0|r)&&10==(0|i)&&3==(0|ar[e+36>>2])&&(function(A,e){A|=0;var r=0,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0;if(0|(f=0|ar[(c=44+(e|=0)|0)>>2])){r=c,n=f;A:for(;;){for(i=n;!(3<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(n=0|ar[i>>2])){r=i;break}r=i}if((0|r)!=(0|c)&&(0|ar[r+16>>2])<=3&&8==(0|ar[r+28>>2])){r=c,n=f;A:for(;;){for(i=n;!(4<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(n=0|ar[i>>2])){r=i;break}r=i}if((0|r)!=(0|c)&&(0|ar[r+16>>2])<=4&&8==(0|ar[r+28>>2])){r=c;A:for(;;){for(i=f;!(5<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){r=i;break}r=i}if((0|r)!=(0|c)&&(0|ar[r+16>>2])<=5&&8==(0|ar[r+28>>2])){if(i=0|El(64),ar[i+4>>2]=0,ar[i+8>>2]=0,ar[i>>2]=5420,ar[(f=i+12|0)>>2]=0,ar[f+4>>2]=0,ar[f+8>>2]=0,ar[f+12>>2]=0,ar[f+16>>2]=0,ar[i+32>>2]=26780,ar[(n=i+36|0)>>2]=0,ar[(t=i+40|0)>>2]=0,ar[(o=i+44|0)>>2]=99,ar[(a=i+48|0)>>2]=99,ar[(u=i+56|0)>>2]=0,ar[i+60>>2]=0,ar[i+52>>2]=u,d=f,b=(k=i)+16|0,Cl(i),Wl(i),r=0|ar[b>>2],ar[f>>2]=d,ar[b>>2]=k,0|r&&Bl(r),Il(i),i=0|ar[(b=e+24|0)>>2],l=0|ar[(s=e+28|0)>>2],ar[n>>2]=i,ar[t>>2]=l,ar[o>>2]=1,ar[a>>2]=10,Jc(f,10,i,l,24),t=0|ar[c>>2]){r=c,f=t;A:for(;;){for(i=f;!(3<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){r=i;break}r=i}a=(0|r)!=(0|c)&&(0|ar[r+16>>2])<=3?(o=0|ar[r+32>>2],0|ar[r+44>>2]):o=0,r=c,f=t;A:for(;;){for(i=f;!(4<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){r=i;break}r=i}n=(0|r)!=(0|c)&&(0|ar[r+16>>2])<=4?0|ar[r+32>>2]:0,r=c,f=t;A:for(;;){for(i=f;!(5<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){r=i;break}r=i}e=(c=(l=(0|r)!=(0|c)&&(0|ar[r+16>>2])<=5?0|ar[r+32>>2]:0,o),a)}else e=c=n=l=0;if(i=0|ar[u>>2]){r=u;A:for(;;){for(f=i;!(10<=(0|ar[f+16>>2]));){if(!(i=0|ar[f+4>>2]))break A;f=i}if(!(i=0|ar[f>>2])){r=f;break}r=f}t=(0|r)!=(0|u)&&(0|ar[r+16>>2])<=10?(a=0|ar[r+32>>2],0|ar[r+44>>2]):a=0}else t=a=0;if(0<(0|(r=0|ar[s>>2]))){o=0;do{if(0<(0|ar[b>>2])){for(i=0|sr(o,e),f=0|sr(o,t),r=0;h=r+i|0,tr[a+(u=(3*r|0)+f|0)>>0]=0|tr[c+h>>0],tr[a+(u+1)>>0]=0|tr[n+h>>0],tr[a+(u+2)>>0]=0|tr[l+h>>0],(0|(r=r+1|0))<(0|ar[b>>2]););r=0|ar[s>>2]}o=o+1|0}while((0|o)<(0|r))}return ar[A>>2]=d,ar[A+4>>2]=k}}}}ar[A>>2]=0,ar[A+4>>2]=0}(f,e),i=0|ar[f>>2],a=0|ar[(r=f+4|0)>>2],ar[f>>2]=0,ar[r>>2]=0,ar[A>>2]=i,ar[n>>2]=a,0|o&&Il(o)),t)}function Sc(A,e){A|=0;var r=0,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0;if(0|(f=0|ar[(c=(e|=0)+44|0)>>2])){r=c,n=f;A:for(;;){for(i=n;!(0<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(n=0|ar[i>>2])){r=i;break}r=i}if((0|r)!=(0|c)&&(0|ar[r+16>>2])<=0&&8==(0|ar[r+28>>2])){r=c,n=f;A:for(;;){for(i=n;!(1<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(n=0|ar[i>>2])){r=i;break}r=i}if((0|r)!=(0|c)&&(0|ar[r+16>>2])<=1&&8==(0|ar[r+28>>2])){r=c;A:for(;;){for(i=f;!(2<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){r=i;break}r=i}if((0|r)!=(0|c)&&(0|ar[r+16>>2])<=2&&8==(0|ar[r+28>>2])){if(i=0|El(64),ar[i+4>>2]=0,ar[i+8>>2]=0,ar[i>>2]=5420,ar[(f=i+12|0)>>2]=0,ar[f+4>>2]=0,ar[f+8>>2]=0,ar[f+12>>2]=0,ar[f+16>>2]=0,ar[i+32>>2]=26780,ar[(n=i+36|0)>>2]=0,ar[(t=i+40|0)>>2]=0,ar[(o=i+44|0)>>2]=99,ar[(a=i+48|0)>>2]=99,ar[(u=i+56|0)>>2]=0,ar[i+60>>2]=0,ar[i+52>>2]=u,Z=f,y=(C=i)+16|0,Cl(i),Wl(i),r=0|ar[y>>2],ar[f>>2]=Z,ar[y>>2]=C,0|r&&Bl(r),Il(i),g=0|ar[(y=e+24|0)>>2],m=0|ar[(p=e+28|0)>>2],ar[n>>2]=g,ar[t>>2]=m,ar[o>>2]=1,Jc(f,ar[a>>2]=3,g,m,8),Jc(f,4,0|ar[y>>2],0|ar[p>>2],8),Jc(f,5,0|ar[y>>2],0|ar[p>>2],8),o=0|ar[c>>2]){r=c,f=o;A:for(;;){for(i=f;!(0<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){r=i;break}r=i}e=(0|r)!=(0|c)&&(0|ar[r+16>>2])<=0?(a=0|ar[r+32>>2],0|ar[r+44>>2]):a=0,r=c,f=o;A:for(;;){for(i=f;!(1<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){r=i;break}r=i}t=(0|r)!=(0|c)&&(0|ar[r+16>>2])<=1?(n=0|ar[r+32>>2],0|ar[r+44>>2]):n=0,f=c,i=o;A:for(;;){for(r=i;!(2<=(0|ar[r+16>>2]));)if(!(r=0|ar[r+4>>2])){r=f;break A}if(!(i=0|ar[r>>2]))break;f=r}v=(g=(0|r)!=(0|c)&&(0|ar[r+16>>2])<=2?(m=0|ar[r+32>>2],0|ar[r+44>>2]):m=0,e)}else v=t=g=a=n=m=0;if(c=0|ar[u>>2]){r=u,f=c;A:for(;;){for(i=f;!(3<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){r=i;break}r=i}s=(0|r)!=(0|u)&&(0|ar[r+16>>2])<=3?(l=0|ar[r+32>>2],0|ar[r+44>>2]):l=0,r=u,f=c;A:for(;;){for(i=f;!(4<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){r=i;break}r=i}e=(0|r)!=(0|u)&&(0|ar[r+16>>2])<=4?(o=0|ar[r+32>>2],0|ar[r+44>>2]):o=0,f=u,i=c;A:for(;;){for(r=i;!(5<=(0|ar[r+16>>2]));)if(!(r=0|ar[r+4>>2])){r=f;break A}if(!(i=0|ar[r>>2]))break;f=r}d=(k=(0|r)!=(0|u)&&(0|ar[r+16>>2])<=5?(h=l,w=0|ar[r+32>>2],0|ar[r+44>>2]):(h=l,w=0),e)}else s=d=k=w=h=o=0;if(0<(0|(r=0|ar[p>>2]))){b=0;do{if(0<(0|ar[y>>2])){for(i=0|sr(b,v),f=0|sr(e=(0|b)/2|0,t),e=0|sr(e,g),c=0|sr(b,s),l=0|sr(b,d),u=0|sr(b,k),r=0;I=+((0|cr[n+((W=(0|r)/2|0)+f)>>0])-128|0),E=+((0|cr[m+(W+e)>>0])-128|0),W=~~((B=1.1640000343322754*((0|cr[a+(r+i)>>0])-16|0))+1.5959999561309814*E),tr[h+(r+c)>>0]=(0|W)<0?0:255<(0|W)?-1:255&W,W=~~(B-.8130000233650208*E-.39100000262260437*I),tr[o+(r+l)>>0]=(0|W)<0?0:255<(0|W)?-1:255&W,W=~~(B+2.0179998874664307*I),tr[w+(r+u)>>0]=(0|W)<0?0:255<(0|W)?-1:255&W,(0|(r=r+1|0))<(0|ar[y>>2]););r=0|ar[p>>2]}b=b+1|0}while((0|b)<(0|r))}return ar[A>>2]=Z,void(ar[A+4>>2]=C)}}}}ar[A>>2]=0,ar[A+4>>2]=0}function Uc(A,e){A|=0;var r=0,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0;if(0|(f=0|ar[(l=(e|=0)+44|0)>>2])){r=l,n=f;A:for(;;){for(i=n;!(0<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(n=0|ar[i>>2])){r=i;break}r=i}if((0|r)!=(0|l)&&(0|ar[r+16>>2])<=0&&8==(0|ar[r+28>>2])){r=l,n=f;A:for(;;){for(i=n;!(1<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(n=0|ar[i>>2])){r=i;break}r=i}if((0|r)!=(0|l)&&(0|ar[r+16>>2])<=1&&8==(0|ar[r+28>>2])){r=l;A:for(;;){for(i=f;!(2<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){r=i;break}r=i}if((0|r)!=(0|l)&&(0|ar[r+16>>2])<=2&&8==(0|ar[r+28>>2])){if(i=0|El(64),ar[i+4>>2]=0,ar[i+8>>2]=0,ar[i>>2]=5420,ar[(f=i+12|0)>>2]=0,ar[f+4>>2]=0,ar[f+8>>2]=0,ar[f+12>>2]=0,ar[f+16>>2]=0,ar[i+32>>2]=26780,ar[(n=i+36|0)>>2]=0,ar[(t=i+40|0)>>2]=0,ar[(o=i+44|0)>>2]=99,ar[(a=i+48|0)>>2]=99,ar[(c=i+56|0)>>2]=0,ar[i+60>>2]=0,ar[i+52>>2]=c,w=f,h=(v=i)+16|0,Cl(i),Wl(i),r=0|ar[h>>2],ar[f>>2]=w,ar[h>>2]=v,0|r&&Bl(r),Il(i),b=0|ar[(h=e+24|0)>>2],d=0|ar[(k=e+28|0)>>2],ar[n>>2]=b,ar[t>>2]=d,ar[o>>2]=1,Jc(f,ar[a>>2]=10,b,d,24),o=0|ar[l>>2]){r=l,f=o;A:for(;;){for(i=f;!(0<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){r=i;break}r=i}e=(0|r)!=(0|l)&&(0|ar[r+16>>2])<=0?(a=0|ar[r+32>>2],0|ar[r+44>>2]):a=0,r=l,f=o;A:for(;;){for(i=f;!(1<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){r=i;break}r=i}t=(0|r)!=(0|l)&&(0|ar[r+16>>2])<=1?(n=0|ar[r+32>>2],0|ar[r+44>>2]):n=0,f=l,i=o;A:for(;;){for(r=i;!(2<=(0|ar[r+16>>2]));)if(!(r=0|ar[r+4>>2])){r=f;break A}if(!(i=0|ar[r>>2]))break;f=r}l=(u=(s=(0|r)!=(0|l)&&(0|ar[r+16>>2])<=2?(b=a,d=0|ar[r+32>>2],0|ar[r+44>>2]):(b=a,d=0),t),e)}else l=u=s=d=b=n=0;if(i=0|ar[c>>2]){r=c;A:for(;;){for(f=i;!(10<=(0|ar[f+16>>2]));){if(!(i=0|ar[f+4>>2]))break A;f=i}if(!(i=0|ar[f>>2])){r=f;break}r=f}a=(0|r)!=(0|c)&&(0|ar[r+16>>2])<=10?(c=0|ar[r+32>>2],0|ar[r+44>>2]):c=0}else a=c=0;if(0<(0|(r=0|ar[k>>2]))){e=0;do{if(0<(0|ar[h>>2])){for(i=0|sr(e,l),f=0|sr(t=(0|e)/2|0,u),t=0|sr(t,s),o=0|sr(e,a),r=0;p=+((0|cr[n+((m=(0|r)/2|0)+f)>>0])-128|0),Z=+((0|cr[d+(m+t)>>0])-128|0),m=~~((y=1.1640000343322754*((0|cr[b+(r+i)>>0])-16|0))+1.5959999561309814*Z),tr[c+(g=(3*r|0)+o|0)>>0]=(0|m)<0?0:255<(0|m)?-1:255&m,m=~~(y-.8130000233650208*Z-.39100000262260437*p),tr[c+(g+1)>>0]=(0|m)<0?0:255<(0|m)?-1:255&m,m=~~(y+2.0179998874664307*p),tr[c+(g+2)>>0]=(0|m)<0?0:255<(0|m)?-1:255&m,(0|(r=r+1|0))<(0|ar[h>>2]););r=0|ar[k>>2]}e=e+1|0}while((0|e)<(0|r))}return ar[A>>2]=w,void(ar[A+4>>2]=v)}}}}ar[A>>2]=0,ar[A+4>>2]=0}function Oc(A,e){A|=0;var r=0,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0;if(0|(f=0|ar[(s=(e|=0)+44|0)>>2])){r=s,n=f;A:for(;;){for(i=n;!(0<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(n=0|ar[i>>2])){r=i;break}r=i}if((0|r)!=(0|s)&&(0|ar[r+16>>2])<=0&&8==(0|ar[r+28>>2])){r=s,n=f;A:for(;;){for(i=n;!(1<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(n=0|ar[i>>2])){r=i;break}r=i}if((0|r)!=(0|s)&&(0|ar[r+16>>2])<=1&&8==(0|ar[r+28>>2])){r=s;A:for(;;){for(i=f;!(2<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){r=i;break}r=i}if((0|r)!=(0|s)&&(0|ar[r+16>>2])<=2&&8==(0|ar[r+28>>2])){if(i=0|El(64),ar[i+4>>2]=0,ar[i+8>>2]=0,ar[i>>2]=5420,ar[(f=i+12|0)>>2]=0,ar[f+4>>2]=0,ar[f+8>>2]=0,ar[f+12>>2]=0,ar[f+16>>2]=0,ar[i+32>>2]=26780,ar[(n=i+36|0)>>2]=0,ar[(t=i+40|0)>>2]=0,ar[(o=i+44|0)>>2]=99,ar[(a=i+48|0)>>2]=99,ar[(u=i+56|0)>>2]=0,ar[i+60>>2]=0,ar[i+52>>2]=u,p=f,m=(y=i)+16|0,Cl(i),Wl(i),r=0|ar[m>>2],ar[f>>2]=p,ar[m>>2]=y,0|r&&Bl(r),Il(i),v=0|ar[(m=e+24|0)>>2],l=0|ar[(g=e+28|0)>>2],ar[n>>2]=v,ar[t>>2]=l,ar[o>>2]=1,ar[a>>2]=11,Jc(f,10,v,l,32),e=0==(0|(l=0|ar[s>>2])))c=33;else{r=s,f=l;A:for(;;){for(i=f;!(6<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){r=i;break}r=i}(0|r)!=(0|s)&&(0|ar[r+16>>2])<=6||(c=33)}if(33==(0|c)&&(r=s),v=(0|r)!=(0|s),e)d=t=k=h=n=w=0;else{r=s,f=l;A:for(;;){for(i=f;!(0<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){r=i;break}r=i}a=(0|r)!=(0|s)&&(0|ar[r+16>>2])<=0?(o=0|ar[r+32>>2],0|ar[r+44>>2]):o=0,r=s,f=l;A:for(;;){for(i=f;!(1<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){r=i;break}r=i}t=(0|r)!=(0|s)&&(0|ar[r+16>>2])<=1?(n=0|ar[r+32>>2],0|ar[r+44>>2]):n=0,f=s,i=l;A:for(;;){for(r=i;!(2<=(0|ar[r+16>>2]));)if(!(r=0|ar[r+4>>2])){r=f;break A}if(!(i=0|ar[r>>2]))break;f=r}d=(k=(0|r)!=(0|s)&&(0|ar[r+16>>2])<=2?(w=0|ar[r+32>>2],h=o,0|ar[r+44>>2]):(h=o,w=0),a)}if(e|1^v)s=b=0;else{r=s,f=l;A:for(;;){for(i=f;!(6<=(0|ar[i+16>>2]));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){r=i;break}r=i}s=(0|r)!=(0|s)&&(0|ar[r+16>>2])<=6?(b=0|ar[r+32>>2],0|ar[r+44>>2]):b=0}if(i=0|ar[u>>2]){r=u;A:for(;;){for(f=i;!(10<=(0|ar[f+16>>2]));){if(!(i=0|ar[f+4>>2]))break A;f=i}if(!(i=0|ar[f>>2])){r=f;break}r=f}f=(0|r)!=(0|u)&&(0|ar[r+16>>2])<=10?(u=0|ar[r+32>>2],0|ar[r+44>>2]):u=0}else f=u=0;if(0<(0|ar[g>>2])){o=0;do{if(0<(0|ar[m>>2]))if(a=0|sr(o,d),e=0|sr(c=(0|o)/2|0,t),c=0|sr(c,k),l=0|sr(o,f),i=0|sr(o,s),v)for(r=0;W=+((0|cr[n+((C=(0|r)/2|0)+e)>>0])-128|0),B=+((0|cr[w+(C+c)>>0])-128|0),C=~~((I=1.1640000343322754*((0|cr[h+(r+a)>>0])-16|0))+1.5959999561309814*B),tr[u+(Z=(r<<2)+l|0)>>0]=(0|C)<0?0:255<(0|C)?-1:255&C,C=~~(I-.8130000233650208*B-.39100000262260437*W),tr[u+(Z+1)>>0]=(0|C)<0?0:255<(0|C)?-1:255&C,C=~~(I+2.0179998874664307*W),tr[u+(Z+2)>>0]=(0|C)<0?0:255<(0|C)?-1:255&C,tr[u+(Z+3)>>0]=0|tr[b+(r+i)>>0],(0|(r=r+1|0))<(0|ar[m>>2]););else for(r=0;B=+((0|cr[n+((Z=(0|r)/2|0)+e)>>0])-128|0),W=+((0|cr[w+(Z+c)>>0])-128|0),Z=~~((I=1.1640000343322754*((0|cr[h+(r+a)>>0])-16|0))+1.5959999561309814*W),tr[u+(C=(r<<2)+l|0)>>0]=(0|Z)<0?0:255<(0|Z)?-1:255&Z,Z=~~(I-.8130000233650208*W-.39100000262260437*B),tr[u+(C+1)>>0]=(0|Z)<0?0:255<(0|Z)?-1:255&Z,Z=~~(I+2.0179998874664307*B),tr[u+(C+2)>>0]=(0|Z)<0?0:255<(0|Z)?-1:255&Z,tr[u+(C+3)>>0]=-1,(0|(r=r+1|0))<(0|ar[m>>2]););o=o+1|0}while((0|o)<(0|ar[g>>2]))}return ar[A>>2]=p,void(ar[A+4>>2]=y)}}}}ar[A>>2]=0,ar[A+4>>2]=0}function Hc(A,e,r,i){A|=0,e|=0,i|=0;var f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0;if(ur=(p=ur)+16|0,m=p,!(r|=0))return t=0|ar[e>>2],(f=0|ar[e+4>>2])||(p=0|C(4),ar[p>>2]=15880,I(0|p,3520,276)),(n=0|function(A){var e,r=0,i=0;r=0|ar[(e=4+(A|=0)|0)>>2];for(;;){if(-1==(0|r)){A=0;break}if((0|(i=0|ar[e>>2]))==(0|r)&&(ar[e>>2]=r+1),(0|i)==(0|r))break;r=i}return 0|A}(f))||(p=0|C(4),ar[p>>2]=15880,I(0|p,3520,276)),ar[i>>2]=t,f=0|ar[(m=i+4|0)>>2],ar[m>>2]=n,0|f&&Il(f),r=0|ar[(g=49920)+4>>2],ar[(m=A)>>2]=ar[g>>2],ar[m+4>>2]=r,Rl(A+8|0,49928),void(ur=p);switch(f=0|ar[e+24>>2],n=0|ar[e+28>>2],0|r){case 90:case 270:l=f,f=n;break;default:l=n}o=0|El(64),ar[o+4>>2]=0,ar[o+8>>2]=0,ar[o>>2]=5420,ar[(n=o+12|0)>>2]=0,ar[n+4>>2]=0,ar[n+8>>2]=0,ar[n+12>>2]=0,ar[n+16>>2]=0,ar[o+32>>2]=26780,ar[o+36>>2]=0,ar[o+40>>2]=0,ar[o+44>>2]=99,ar[o+48>>2]=99,ar[(a=o+56|0)>>2]=0,ar[o+60>>2]=0,ar[o+52>>2]=a,a=n,k=(c=o)+16|0,Cl(o),Wl(o),t=0|ar[k>>2],ar[n>>2]=a,ar[k>>2]=c,0|t&&Bl(t),Il(o),ar[i>>2]=a,t=0|ar[(k=i+4|0)>>2],ar[k>>2]=c,t?(Il(t),n=0|ar[(k=i)>>2]):k=i,b=0|ar[e+32>>2],d=0|ar[e+36>>2],ar[n+24>>2]=f,ar[n+28>>2]=l,ar[n+32>>2]=b,ar[n+36>>2]=d,f=0|ar[e+40>>2],d=e+44|0;A:do{if((0|f)!=(0|d)){for(e=0;l=0|ar[f+16>>2],8==(0|ar[f+28>>2]);){switch(n=0|ar[(a=f+20|0)>>2],t=0|ar[(c=f+24|0)>>2],0|r){case 90:case 270:o=n,n=t;break;default:o=t}if(Jc(0|ar[k>>2],l,n,o,8),b=0|ar[a>>2],i=0|ar[c>>2],u=0|ar[f+44>>2],s=0|ar[f+32>>2],a=44+(0|ar[k>>2])|0,t=0|ar[a>>2]){n=a;e:for(;;){for(o=t;!((0|ar[o+16>>2])>=(0|l));){if(!(t=0|ar[o+4>>2]))break e;o=t}if(!(t=0|ar[o>>2])){n=o;break}n=o}(0|n)!=(0|a)&&(0|ar[n+16>>2])<=(0|l)?(c=0|ar[n+32>>2],e=0|ar[n+44>>2]):c=0}else c=0;switch(0|r){case 270:if(0<(0|i)&&(g=i+-1|0,0<(0|b))){t=0;do{for(o=0|sr(g-t|0,u),n=0;l=c+((0|sr(n,e))+t)|0,tr[l>>0]=0|tr[s+(n+o)>>0],(0|(n=n+1|0))!=(0|b););t=t+1|0}while((0|t)!=(0|i))}break;case 180:if(0<(0|i)&&(w=i+-1|0,v=b+-1|0,0<(0|b))){t=0;do{for(o=v+(0|sr(w-t|0,u))|0,a=0|sr(t,e),n=0;tr[c+(n+a)>>0]=0|tr[s+(o-n)>>0],(0|(n=n+1|0))!=(0|b););t=t+1|0}while((0|t)!=(0|i))}break;case 90:if(0<(0|i)&&(h=b+-1|0,0<(0|b))){n=0;do{for(o=h+(0|sr(n,u))|0,t=0;l=c+((0|sr(t,e))+n)|0,tr[l>>0]=0|tr[s+(o-t)>>0],(0|(t=t+1|0))!=(0|b););n=n+1|0}while((0|n)!=(0|i))}}if(n=0|ar[f+4>>2])for(f=n;n=0|ar[f>>2];)f=n;else if(t=0|ar[(n=f+8|0)>>2],(0|ar[t>>2])==(0|f))f=t;else for(;b=0|ar[n>>2],f=0|ar[(n=b+8|0)>>2],(0|ar[f>>2])!=(0|b););if((0|f)==(0|d))break A}for(f=0|El(64),ar[m>>2]=f,ar[m+8>>2]=-2147483584,t=22220,o=(n=f)+(ar[m+4>>2]=54)|0;tr[n>>0]=0|tr[t>>0],t=t+1|0,(0|(n=n+1|0))<(0|o););return(Cc(A,4,tr[f+54>>0]=0,m),0<=(0|tr[m+11>>0]))?void(ur=p):(Vl(0|ar[m>>2]),void(ur=p))}}while(0);r=0|ar[(g=49920)+4>>2],ar[(m=A)>>2]=ar[g>>2],ar[m+4>>2]=r,Rl(A+8|0,49928),ur=p}function xc(A,e,r){A|=0,r|=0;var i,f,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0;ur=(f=ur)+16|0,w=f,n=0|ar[(e|=0)+40>>2],i=e+44|0;A:do{if((0|n)!=(0|i)){for(;8==(0|ar[n+28>>2]);){if(c=0|ar[n+20>>2],l=0|ar[n+24>>2],s=0|ar[n+44>>2],b=0|ar[n+32>>2],r){if(0<(0|l)&&(k=(0|c)/2|0,h=c+-1|0,1<(0|c))){t=0;do{for(a=h+(o=0|sr(t,s))|0,e=0;u=b+(a-e)|0,c=0|tr[(v=b+(e+o)|0)>>0],tr[v>>0]=0|tr[u>>0],tr[u>>0]=c,(0|(e=e+1|0))<(0|k););t=t+1|0}while((0|t)!=(0|l))}}else if(u=(0|l)/2|0,1<(0|l)&&(d=l+-1|0,0<(0|c))){e=0;do{for(o=0|sr(e,s),a=0|sr(d-e|0,s),t=0;v=b+(t+a)|0,l=0|tr[(g=b+(t+o)|0)>>0],tr[g>>0]=0|tr[v>>0],tr[v>>0]=l,(0|(t=t+1|0))!=(0|c););e=e+1|0}while((0|e)<(0|u))}if(e=0|ar[n+4>>2])for(;n=0|ar[e>>2];)e=n;else if(e=0|ar[(t=n+8|0)>>2],(0|ar[e>>2])!=(0|n))for(n=t;g=0|ar[n>>2],e=0|ar[(n=g+8|0)>>2],(0|ar[e>>2])!=(0|g););if((0|e)==(0|i))break A;n=e}for(e=0|El(64),ar[w>>2]=e,ar[w+8>>2]=-2147483584,t=22220,o=(n=e)+(ar[w+4>>2]=54)|0;tr[n>>0]=0|tr[t>>0],t=t+1|0,(0|(n=n+1|0))<(0|o););return(Cc(A,4,tr[e+54>>0]=0,w),0<=(0|tr[w+11>>0]))?void(ur=f):(Vl(0|ar[w>>2]),void(ur=f))}}while(0);v=0|ar[(w=49920)+4>>2],ar[(g=A)>>2]=ar[w>>2],ar[g+4>>2]=v,Rl(A+8|0,49928),ur=f}function jc(A,e,r,i,f,n,t){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0;var o,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0;ur=(o=ur)+16|0,Z=o,u=0|El(64),ar[u+4>>2]=0,ar[u+8>>2]=0,ar[u>>2]=5420,ar[(a=u+12|0)>>2]=0,ar[a+4>>2]=0,ar[a+8>>2]=0,ar[a+12>>2]=0,ar[a+16>>2]=0,ar[u+32>>2]=26780,ar[u+36>>2]=0,ar[u+40>>2]=0,ar[u+44>>2]=99,ar[u+48>>2]=99,ar[(l=u+56|0)>>2]=0,ar[u+60>>2]=0,ar[u+52>>2]=l,l=a,y=(s=u)+16|0,Cl(u),Wl(u),c=0|ar[y>>2],ar[a>>2]=l,ar[y>>2]=s,0|c&&Bl(c),Il(u),ar[t>>2]=l,c=0|ar[(y=t+4|0)>>2],ar[y>>2]=s,c?(Il(c),a=0|ar[(y=t)>>2]):y=t,p=0|ar[e+32>>2],m=0|ar[e+36>>2],ar[a+24>>2]=1-r+i,ar[a+28>>2]=1-f+n,ar[a+32>>2]=p,ar[a+36>>2]=m,a=0|ar[e+40>>2],m=e+44|0;A:do{if((0|a)!=(0|m)){for(p=e+24|0,g=e+28|0,e=0;s=0|ar[a+16>>2],8==(0|ar[a+28>>2]);){if(d=0|ar[a+20>>2],w=0|ar[a+24>>2],b=(0|(b=0|sr(d,r)))/(0|(h=0|ar[p>>2]))|0,h=(0|sr(d,i))/(0|h)|0,d=(0|(d=0|sr(w,f)))/(0|(k=0|ar[g>>2]))|0,k=(0|sr(w,n))/(0|k)|0,h=h-b+1|0,Jc(0|ar[y>>2],s,h,1-d+k|0,8),w=0|ar[a+44>>2],v=0|ar[a+32>>2],t=44+(0|ar[y>>2])|0,l=0|ar[t>>2]){c=t;e:for(;;){for(u=l;!((0|ar[u+16>>2])>=(0|s));){if(!(l=0|ar[u+4>>2]))break e;u=l}if(!(l=0|ar[u>>2])){c=u;break}c=u}u=(0|c)!=(0|t)&&(0|ar[c+16>>2])<=(0|s)?(l=0|ar[c+32>>2],0|ar[c+44>>2]):(l=0,e)}else l=0,u=e;if((0|d)<=(0|k))for(c=d;Eu(l+(0|sr(c-d|0,u))|0,v+((0|sr(c,w))+b)|0,0|h),(0|c)<(0|k);)c=c+1|0;if(c=0|ar[a+4>>2])for(a=c;c=0|ar[a>>2];)a=c;else if(l=0|ar[(c=a+8|0)>>2],(0|ar[l>>2])==(0|a))a=l;else for(;v=0|ar[c>>2],a=0|ar[(c=v+8|0)>>2],(0|ar[a>>2])!=(0|v););if((0|a)==(0|m))break A;e=u}for(a=0|El(64),ar[Z>>2]=a,ar[Z+8>>2]=-2147483584,l=22220,u=(c=a)+(ar[Z+4>>2]=54)|0;tr[c>>0]=0|tr[l>>0],l=l+1|0,(0|(c=c+1|0))<(0|u););return(Cc(A,4,tr[a+54>>0]=0,Z),0<=(0|tr[Z+11>>0]))?void(ur=o):(Vl(0|ar[Z>>2]),void(ur=o))}}while(0);n=0|ar[(f=49920)+4>>2],ar[(Z=A)>>2]=ar[f>>2],ar[Z+4>>2]=n,Rl(A+8|0,49928),ur=o}function zc(A,e,r,i,f){A|=0,e|=0,i|=0,f|=0;var n,t,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0;ur=(t=ur)+48|0,I=t+12|0,function(A,e){e|=0;var r,i,f,n,t=0,o=0,a=0,c=0,l=0;if(ar[(i=(A|=0)+4|0)>>2]=0,n=A+4|(ar[(f=A+8|0)>>2]=0),ar[A>>2]=n,(0|(t=0|ar[e+40>>2]))!=(0|(r=e+44|0)))for(l=t,e=0;;){c=l+16|0;do{if(e){for(a=0|ar[c>>2],o=i;;){if((0|a)<(0|(t=0|ar[e+16>>2]))){if(!(t=0|ar[e>>2])){t=9;break}}else{if((0|a)<=(0|t)){t=13;break}if(!(t=0|ar[(o=e+4|0)>>2])){t=12;break}e=o}o=e,e=t}if(9==(0|t)){o=a=e;break}if(12==(0|t)){a=e;break}if(13==(0|t)){a=e;break}}else o=a=n}while(0);if(0|ar[o>>2]||(e=0|El(20),ar[e+16>>2]=ar[c>>2],ar[e>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=a,ar[o>>2]=e,(t=0|ar[ar[A>>2]>>2])&&(ar[A>>2]=t,e=0|ar[o>>2]),Vc(0|ar[i>>2],e),ar[f>>2]=1+(0|ar[f>>2])),e=0|ar[l+4>>2])for(;t=0|ar[e>>2];)e=t;else if(e=0|ar[(t=l+8|0)>>2],(0|ar[e>>2])!=(0|l))for(;l=0|ar[t>>2],e=0|ar[(t=l+8|0)>>2],(0|ar[e>>2])!=(0|l););if((0|e)==(0|r))break;l=e,e=0|ar[n>>2]}}(n=(B=t)+24|0,0|ar[(r|=0)>>2]),o=0|ar[n>>2],E=4+n|0;A:do{if((0|o)!=(0|E)){for(W=e+44|0,Z=(C=(0|i)<0)?0-i|0:0,C=C?0:i,y=(0|f)<0?0-f|0:0,l=u=0,e=o;;){if(g=0|ar[e+16>>2],k=44+(0|ar[r>>2])|0,s=0==(0|(d=0|ar[k>>2])))v=0,p=l;else{o=k,c=d;e:for(;;){for(a=c;!((0|ar[a+16>>2])>=(0|g));)if(!(a=0|ar[a+4>>2]))break e;if(!(c=0|ar[a>>2])){o=a;break}o=a}p=(0|o)!=(0|k)&&(0|ar[o+16>>2])<=(0|g)?(v=0|ar[o+32>>2],0|ar[o+44>>2]):(v=0,l)}if(l=0==(0|(h=0|ar[W>>2])))w=0,m=u;else{o=W,c=h;e:for(;;){for(a=c;!((0|ar[a+16>>2])>=(0|g));)if(!(a=0|ar[a+4>>2]))break e;if(!(c=0|ar[a>>2])){o=a;break}o=a}m=(0|o)!=(0|W)&&(0|ar[o+16>>2])<=(0|g)?(w=0|ar[o+32>>2],0|ar[o+44>>2]):(w=0,u)}if(s){e=36;break}o=k,c=d;e:for(;;){for(a=c;!((0|ar[a+16>>2])>=(0|g));)if(!(a=0|ar[a+4>>2]))break e;if(!(c=0|ar[a>>2])){o=a;break}o=a}if(b=(0|o)!=(0|k)&&(0|ar[o+16>>2])<=(0|g)?0|ar[o+20>>2]:-1,s)u=-1;else{o=k,c=d;e:for(;;){for(a=c;!((0|ar[a+16>>2])>=(0|g));)if(!(a=0|ar[a+4>>2]))break e;if(!(c=0|ar[a>>2])){o=a;break}o=a}u=(0|o)!=(0|k)&&(0|ar[o+16>>2])<=(0|g)?0|ar[o+24>>2]:-1}if((0|b)<=-1){e=36;break}if((0|u)<=-1){e=38;break}if(l){e=56;break}o=W,c=h;e:for(;;){for(a=c;!((0|ar[a+16>>2])>=(0|g));)if(!(a=0|ar[a+4>>2]))break e;if(!(c=0|ar[a>>2])){o=a;break}o=a}l=(0|o)!=(0|W)&&(0|ar[o+16>>2])<=(0|g)?0|ar[o+20>>2]:-1,o=W,c=h;e:for(;;){for(a=c;!((0|ar[a+16>>2])>=(0|g));)if(!(a=0|ar[a+4>>2]))break e;if(!(c=0|ar[a>>2])){o=a;break}o=a}if(o=(0|o)!=(0|W)&&(0|ar[o+16>>2])<=(0|g)?0|ar[o+24>>2]:-1,(0|l)<=-1){e=56;break}if((0|o)<=-1){e=58;break}if(((u=(0|o)<(u+f|0)?o-f|0:u)|(a=(0|l)<(b+i|0)?l-i|0:b)|0)<0){e=60;break}if(!((0|Z)<(0|a)&(0|y)<(0|u))){e=64;break}for(l=w+C|0,c=v+Z|0,a=a-Z|0,o=y;Eu(l+(0|sr(o+f|0,m))|0,c+(0|sr(o,p))|0,0|a),(0|(o=o+1|0))<(0|u););if(o=0|ar[e+4>>2])for(e=o;o=0|ar[e>>2];)e=o;else if(a=0|ar[(o=e+8|0)>>2],(0|ar[a>>2])==(0|e))e=a;else for(;g=0|ar[o>>2],e=0|ar[(o=g+8|0)>>2],(0|ar[e>>2])!=(0|g););if((0|e)==(0|E))break A;u=m,l=p}if(36==(0|e))br(22343,22121,638,22353);else if(38==(0|e))br(22361,22121,639,22353);else if(56==(0|e))br(22371,22121,643,22353);else if(58==(0|e))br(22382,22121,644,22353);else{if(60==(0|e)){for(ar[I>>2]=0,ar[I+4>>2]=0,e=(ar[I+8>>2]=0)|El(64),ar[I>>2]=e,ar[I+8>>2]=-2147483584,a=22393,c=(o=e)+(ar[I+4>>2]=54)|0;tr[o>>0]=0|tr[a>>0],a=a+1|0,(0|(o=o+1|0))<(0|c););return(tr[e+54>>0]=0,Cc(A,2,122,I),0<=(0|tr[I+11>>0]))?(Dc(n,E=0|ar[E>>2]),void(ur=t)):(Vl(0|ar[I>>2]),Dc(n,E=0|ar[E>>2]),void(ur=t))}if(64==(0|e)){for(ar[B>>2]=0,ar[B+4>>2]=0,e=(ar[B+8>>2]=0)|El(64),ar[B>>2]=e,ar[B+8>>2]=-2147483584,a=22448,c=(o=e)+(ar[B+4>>2]=50)|0;tr[o>>0]=0|tr[a>>0],a=a+1|0,(0|(o=o+1|0))<(0|c););return(tr[e+50>>0]=0,Cc(A,2,122,B),0<=(0|tr[B+11>>0]))?(Dc(n,E=0|ar[E>>2]),void(ur=t)):(Vl(0|ar[B>>2]),Dc(n,E=0|ar[E>>2]),void(ur=t))}}}}while(0);I=0|ar[(f=49920)+4>>2],ar[(B=A)>>2]=ar[f>>2],ar[B+4>>2]=I,Rl(A+8|0,49928),Dc(n,E=0|ar[E>>2]),ur=t}function Pc(A){var e;ar[(A|=0)>>2]=15332,(0|(0|ar[(e=A+8|0)>>2]))!=(0|hf())&&fi(0|ar[e>>2]),lf()}function Lc(A){var e,r,i=0,f=0;for(ar[(A|=0)>>2]=15380,e=A+8|0,r=A+12|0,f=0;i=0|ar[e>>2],!(f>>>0>=(0|ar[r>>2])-i>>2>>>0);)0|(i=0|ar[i+(f<<2)>>2])&&yl(i),f=f+1|0;Yl(A+144|0),function(A){var e,r=0,i=0,f=0;e=0|ar[(A|=0)>>2];do{if(0|e){for(i=0|ar[(r=A+4|0)>>2];(0|i)!=(0|e);)f=i+-4|0,ar[r>>2]=f,i=f;if((A+16|0)==(0|e)){tr[A+128>>0]=0;break}Vl(e);break}}while(0)}(e),lf()}function Kc(A){var e;ar[(A|=0)>>2]=15400,0|(e=0|ar[A+8>>2])&&0|tr[A+12>>0]&&Xl(e),lf()}function qc(){return 0|ar[2704]}function $c(){return 0|ar[2319]}function Al(){return 0|ar[2318]}function el(A){ar[(A|=0)>>2]=15452,Yl(A+12|0),lf()}function rl(A){ar[(A|=0)>>2]=15492,Yl(A+16|0),lf()}function il(){kA()}function fl(A,e){e|=0;var r,i,f,n,t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_,F,N,R,Y,J,D,Q,T,M,S,U,O,H,x,j,z,P,L,K,q,$,AA,eA,rA,iA,fA,nA,tA,oA,aA,cA,lA=0,uA=0,sA=0,bA=0;for(r=ur=(i=ur)+31&-32,ur=ur+16|0,ar[(A|=0)+4>>2]=e+-1,ar[A>>2]=15380,f=lA=A+8|0,n=28,n|=0,ar[(f|=0)>>2]=0,ar[f+4>>2]=0,ar[f+8>>2]=0,(tr[f+128>>0]=0)|n&&(function(A,e){var r=0;(0|al(A|=0))>>>0<(e|=0)>>>0&&il();r=e>>>0<29&0==(0|tr[(r=A+128|0)>>0])?(tr[r>>0]=1,A+16|0):0|El(e<<2);ar[A+4>>2]=r,ar[A>>2]=r,ar[A+8>>2]=r+(e<<2)}(f,n),ol(f,n)),ar[(e=A+144|0)>>2]=0,ar[e+4>>2]=0,4294967279<(uA=(ar[e+8>>2]=0)|Fi(47010))>>>0&&Nl(),uA>>>0<11?tr[e+11>>0]=uA:(sA=0|El(bA=uA+16&-16),ar[e>>2]=sA,ar[A+152>>2]=-2147483648|bA,ar[A+148>>2]=uA,e=sA),di(e,47010,uA),Ni(e+uA|(tr[r>>0]=0),r),e=0|ar[lA>>2],uA=0|ar[(lA=A+12|0)>>2];(0|uA)!=(0|e);)bA=uA+-4|0,uA=ar[lA>>2]=bA;ar[12531]=0,ar[12530]=13044,t=A,o=50120,nl(t|=0,o|=0,0|vf(52520)),ar[12533]=0,ar[12532]=13076,a=A,c=50128,nl(a|=0,c|=0,0|vf(52528)),function(A,e,r,i){e|=0,r|=0,i|=0,ar[4+(A|=0)>>2]=i+-1,ar[A>>2]=15400,ar[(i=A+8|0)>>2]=e,tr[A+12>>0]=1&r,e||(r=0|Al(),ar[i>>2]=r)}(50136,0,0,1),l=A,u=50136,nl(l|=0,u|=0,0|vf(52536)),ar[12539]=0,ar[12538]=15596,s=A,b=50152,nl(s|=0,b|=0,0|vf(52568)),ar[12541]=0,ar[12540]=15664,d=A,k=50160,nl(d|=0,k|=0,0|vf(54328)),function(A,e){e|=0,ar[4+(A|=0)>>2]=e+-1,ar[A>>2]=15332,e=0|hf(),ar[A+8>>2]=e}(50168,1),h=A,w=50168,nl(h|=0,w|=0,0|vf(54336)),ar[12547]=0,ar[12546]=15712,v=A,g=50184,nl(v|=0,g|=0,0|vf(54344)),ar[12549]=0,ar[12548]=15760,m=A,p=50192,nl(m|=0,p|=0,0|vf(54352)),function(A,e){for(e|=0,ar[4+(A|=0)>>2]=e+-1,ar[A>>2]=15452,tr[A+8>>0]=46,tr[A+9>>0]=44,ar[(e=A+12|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,A=0;3!=(0|A);)ar[e+(A<<2)>>2]=0,A=A+1|0}(50200,1),y=A,Z=50200,nl(y|=0,Z|=0,0|vf(52552)),function(A,e){for(e|=0,ar[4+(A|=0)>>2]=e+-1,ar[A>>2]=15492,ar[A+8>>2]=46,ar[A+12>>2]=44,ar[(e=A+16|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,A=0;3!=(0|A);)ar[e+(A<<2)>>2]=0,A=A+1|0}(50224,1),C=A,W=50224,nl(C|=0,W|=0,0|vf(52576)),ar[12565]=0,ar[12564]=13108,I=A,B=50256,nl(I|=0,B|=0,0|vf(52560)),ar[12567]=0,ar[12566]=13172,E=A,G=50264,nl(E|=0,G|=0,0|vf(52584)),ar[12569]=0,ar[12568]=13236,V=A,X=50272,nl(V|=0,X|=0,0|vf(52592)),ar[12571]=0,ar[12570]=13288,_=A,F=50280,nl(_|=0,F|=0,0|vf(52600)),ar[12573]=0,ar[12572]=14836,N=A,R=50288,nl(N|=0,R|=0,0|vf(54248)),ar[12575]=0,ar[12574]=14892,Y=A,J=50296,nl(Y|=0,J|=0,0|vf(54256)),ar[12577]=0,ar[12576]=14948,D=A,Q=50304,nl(D|=0,Q|=0,0|vf(54264)),ar[12579]=0,ar[12578]=15004,T=A,M=50312,nl(T|=0,M|=0,0|vf(54272)),ar[12581]=0,ar[12580]=15060,S=A,U=50320,nl(S|=0,U|=0,0|vf(54280)),ar[12583]=0,ar[12582]=15088,O=A,H=50328,nl(O|=0,H|=0,0|vf(54288)),ar[12585]=0,ar[12584]=15116,x=A,j=50336,nl(x|=0,j|=0,0|vf(54296)),ar[12587]=0,ar[12586]=15144,z=A,P=50344,nl(z|=0,P|=0,0|vf(54304)),ar[12589]=0,ar[12588]=15576,function(A){ar[(A|=0)>>2]=15808}(50360),ar[12588]=13340,ar[12590]=13388,L=A,K=50352,nl(L|=0,K|=0,0|vf(53412)),ar[12593]=0,ar[12592]=15576,function(A){ar[(A|=0)>>2]=15844}(50376),ar[12592]=13424,ar[12594]=13472,q=A,$=50368,nl(q|=0,$|=0,0|vf(54224)),ar[12597]=0,ar[12596]=15576,AA=0|hf(),ar[12598]=AA,ar[12596]=14788,eA=A,rA=50384,nl(eA|=0,rA|=0,0|vf(54232)),ar[12601]=0,ar[12600]=15576,iA=0|hf(),ar[12602]=iA,ar[12600]=14812,fA=A,nA=50400,nl(fA|=0,nA|=0,0|vf(54240)),ar[12605]=0,ar[12604]=15172,tA=A,oA=50416,nl(tA|=0,oA|=0,0|vf(54312)),ar[12607]=0,ar[12606]=15204,aA=A,cA=50424,nl(aA|=0,cA|=0,0|vf(54320)),ur=i}function nl(A,e,r){A|=0,r|=0;var i,f=0;ml(e|=0),f=0|ar[(i=A+8|0)>>2],(0|ar[A+12>>2])-f>>2>>>0>r>>>0?A=i:(function(A,e){e|=0;var r,i,f=0,n=0;f=0|ar[(i=4+(A|=0)|0)>>2],n=0|ar[A>>2],r=f-n>>2;A:do{if(e>>>0<=r>>>0){if(e>>>0<r>>>0)for(A=n+(e<<2)|0;;){if((0|f)==(0|A))break A;n=f+-4|0,ar[i>>2]=n,f=n}}else tl(A,e-r|0)}while(0)}(i,r+1|0),f=0|ar[(A=i)>>2]),0|(f=0|ar[f+(r<<2)>>2])&&yl(f),ar[(0|ar[A>>2])+(r<<2)>>2]=e}function tl(A,e){e|=0;var r,i,f,n=0,t=0,o=0,a=0,c=0;r=ur=(f=ur)+31&-32,ur=ur+32|0,o=(A|=0)+8|0,n=0|ar[(i=A+4|0)>>2];do{if((0|ar[o>>2])-n>>2>>>0<e>>>0){if(n=(n-(0|ar[A>>2])>>2)+e|0,!((t=0|al())>>>0<n>>>0)){a=0|ar[A>>2],o=(c=(0|ar[o>>2])-a|0)>>1,cl(r,c>>2>>>0<t>>>1>>>0?o>>>0<n>>>0?n:o:t,(0|ar[i>>2])-a>>2,A+16|0),ll(r,e),ul(A,r),sl(r);break}il()}else ol(A,e)}while(0);ur=f}function ol(A,e){var r;for(r=(A|=0)+4|0,A=e|=0,e=0|ar[r>>2];e=4+((ar[e>>2]=0)|ar[r>>2])|0,ar[r>>2]=e,0!=(0|(A=A+-1|0)););}function al(){return 1073741823}function cl(A,e,r,i){e|=0,r|=0,i|=0;var f=0;ar[(A|=0)+12>>2]=0,ar[A+16>>2]=i;do{if(e){if(e>>>0<29&0==(0|tr[(f=i+112|0)>>0])){tr[f>>0]=1;break}i=0|El(e<<2);break}i=0}while(0);r=(ar[A>>2]=i)+(r<<2)|0,ar[A+8>>2]=r,ar[A+4>>2]=r,ar[A+12>>2]=i+(e<<2)}function ll(A,e){var r;for(r=(A|=0)+8|0,A=e|=0,e=0|ar[r>>2];e=4+((ar[e>>2]=0)|ar[r>>2])|0,ar[r>>2]=e,0!=(0|(A=A+-1|0)););}function ul(A,e){e|=0;var r=0,i=0,f=0,n=0,t=0;i=0|ar[(A|=0)>>2],n=e+4|0,f=(0|ar[(t=A+4|0)>>2])-i|0,r=(0|ar[n>>2])+(0-(f>>2)<<2)|0,ar[n>>2]=r,0<(0|f)?(Eu(0|r,0|i,0|f),r=0|ar[(i=n)>>2]):i=n,n=0|ar[A>>2],ar[A>>2]=r,ar[i>>2]=n,n=e+8|0,f=0|ar[t>>2],ar[t>>2]=ar[n>>2],ar[n>>2]=f,t=e+12|0,A=0|ar[(n=A+8|0)>>2],ar[n>>2]=ar[t>>2],ar[t>>2]=A,ar[e>>2]=ar[i>>2]}function sl(A){var e=0,r=0,i=0,f=0;for(e=0|ar[(A|=0)+4>>2],i=0|ar[(r=A+8|0)>>2];(0|i)!=(0|e);)f=i+-4|0,i=ar[r>>2]=f;r=0|ar[A>>2];do{if(0|r){if((0|(e=0|ar[A+16>>2]))==(0|r)){tr[e+112>>0]=0;break}Vl(r);break}}while(0)}function bl(){return 0==(0|tr[50432])&&0|ku(50432)&&(fl(50440,1),ar[13590]=50440,ar[13591]=54360),0|ar[13591]}function dl(A,e){A|=0,e=0|ar[(e|=0)>>2],ml(ar[A>>2]=e)}function kl(){return 0==(0|tr[50600])&&0|ku(50600)&&(dl(54368,0|bl()),ar[13593]=54368),0|ar[13593]}function hl(A){A|=0;var e=0;e=0|kl(),e=0|ar[e>>2],ml(ar[A>>2]=e)}function wl(A,e,r){return A|=0,e|=0,0|(A=(r|=0)?0|function(A,e,r){A|=0,e|=0,r|=0;var i=0,f=0;A:do{if(r){for(;(i=0|tr[A>>0])<<24>>24==(f=0|tr[e>>0])<<24>>24;){if(!(r=r+-1|0)){A=0;break A}A=A+1|0,e=e+1|0}A=(255&i)-(255&f)|0}else A=0}while(0);return 0|A}(A,e,r):0)}function vl(){0}function gl(A){0}function ml(A){pl((A|=0)+4|0)}function pl(A){ar[(A|=0)>>2]=1+(0|ar[A>>2])}function yl(A){return 0|(A=-1==(0|Zl((A|=0)+4|0))?(ds[511&ar[8+(0|ar[A>>2])>>2]](A),1):0)}function Zl(A){var e;return e=0|ar[(A|=0)>>2],ar[A>>2]=e-1,e-1|0}function Cl(A){ml(A|=0)}function Wl(A){pl((A|=0)+8|0)}function Il(A){0|yl(A|=0)&&Bl(A)}function Bl(A){var e;0!=(0|ar[(e=(A|=0)+8|0)>>2])&&-1!=(0|Zl(e))||ds[511&ar[16+(0|ar[A>>2])>>2]](A)}function El(A){var e;for(e=0==(0|(A|=0))?1:A;!(0|(A=0|qo(e)));){if(!(A=0|hu())){A=0;break}bs[3&A]()}return 0|A}function Gl(A){return 0|El(A|=0)}function Vl(A){$o(A|=0)}function Xl(A){Vl(A|=0)}function _l(){kA()}function Fl(A,e){e|=0,ar[(A|=0)>>2]=15984,function(A,e){A|=0;var r,i,f=0;f=0|El(13+(r=0|ta(e|=0))|0),ar[f>>2]=r,ar[f+4>>2]=r,Eu((ar[f+8>>2]=0)|(f=0|(i=f,12+(i|=0)|0)),0|e,1+r|0),ar[A>>2]=f}(A+4|0,e)}function Nl(){kA()}function Rl(A,e){e|=0;var r,i,f=0,n=0,t=0;r=ur=(i=ur)+31&-32,ur=ur+16|0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,((ar[A+8>>2]=0)|tr[e+11>>0])<0?(f=0|ar[e>>2],4294967279<(e=0|ar[e+4>>2])>>>0&&Nl(),e>>>0<11?tr[A+11>>0]=e:(n=0|El(t=e+16&-16),ar[A>>2]=n,ar[A+8>>2]=-2147483648|t,ar[A+4>>2]=e,A=n),di(A,f,e),Ni(A+e|(tr[r>>0]=0),r)):(ar[A>>2]=ar[e>>2],ar[A+4>>2]=ar[e+4>>2],ar[A+8>>2]=ar[e+8>>2]),ur=i}function Yl(A){(0|tr[(A|=0)+11>>0])<0&&Vl(0|ar[A>>2])}function Jl(A,e){var r=0,i=0;return(0|(A|=0))!=(0|(e|=0))&&Dl(A,(i=(r=0|tr[e+11>>0])<<24>>24<0)?0|ar[e>>2]:e,i?0|ar[e+4>>2]:255&r),0|A}function Dl(A,e,r){e|=0,r|=0;var i,f,n,t,o=0,a=0;f=ur=(t=ur)+31&-32,ur=ur+16|0,a=(i=(o=0|tr[(n=(A|=0)+11|0)>>0])<<24>>24<0)?(2147483647&ar[A+8>>2])-1|0:10;do{if(r>>>0<=a>>>0){if(Ql(o=i?0|ar[A>>2]:A,e,r),Ni(o+r|(tr[f>>0]=0),f),(0|tr[n>>0])<0){ar[A+4>>2]=r;break}tr[n>>0]=r;break}i?o=0|ar[A+4>>2]:o&=255,Tl(A,a,r-a|0,o,0,o,r,e)}while(0);return ur=t,0|A}function Ql(A,e,r){return A|=0,e|=0,0|(r|=0)&&Gu(0|A,0|e,0|r),0|A}function Tl(A,e,r,i,f,n,t,o){A|=0,i|=0,f|=0,n|=0,t|=0,o|=0;var a,c,l=0,u=0,s=0;a=ur=(c=ur)+31&-32,ur=ur+16|0,(-18-(e|=0)|0)>>>0<(r|=0)>>>0&&Nl(),s=(0|tr[A+11>>0])<0?0|ar[A>>2]:A,u=0|El(l=e>>>0<2147483623?(l=(l=r+e|0)>>>0<(u=e<<1)>>>0?u:l)>>>0<11?11:l+16&-16:-17),0|f&&di(u,s,f),0|t&&di(u+f|0,o,t),0|(i=(r=i-n|0)-f|0)&&di(u+f+t|0,s+f+n|0,i),10!=(0|e)&&Vl(s),ar[A>>2]=u,ar[A+8>>2]=-2147483648|l,t=r+t|0,Ni(u+(ar[A+4>>2]=t)|(tr[a>>0]=0),a),ur=c}function Ml(A,e){A|=0;var r,i=0,f=0,n=0,t=0,o=0;4294967279<(e|=0)>>>0&&Nl(),i=(n=(f=0|tr[(r=A+11|0)>>0])<<24>>24<0)?(o=0|ar[A+4>>2],(2147483647&ar[A+8>>2])-1|0):(o=255&f,10),t=(e=(t=e>>>0<o>>>0?o:e)>>>0<11)?10:(t+16&-16)-1|0;do{if((0|t)!=(0|i)){do{if(!e){if(e=0|El(t+1|0),n){n=1,i=0|ar[A>>2],f=13;break}di(e,A,1+(255&f)|0),f=14;break}e=0|ar[A>>2],f=n?(n=0,i=e,e=A,13):(di(A,e,1+(255&f)|0),Vl(e),15)}while(0);if(13==(0|f)&&(di(e,i,1+(0|ar[A+4>>2])|0),Vl(i),f=n?14:15),14==(0|f)){ar[A+8>>2]=t+1|-2147483648,ar[A+4>>2]=o,ar[A>>2]=e;break}if(15==(0|f)){tr[r>>0]=o;break}}}while(0)}function Sl(A,e){return 0|Dl(A|=0,e|=0,0|Fi(e))}function Ul(A,e,r){e|=0,r|=0;var i,f,n,t=0,o=0;i=ur=(n=ur)+31&-32,ur=ur+16|0,(o=(t=0|tr[(f=(A|=0)+11|0)>>0])<<24>>24<0)?t=0|ar[A+4>>2]:t&=255;do{if(e>>>0<=t>>>0){if(o){o=(0|ar[A>>2])+e|0,tr[i>>0]=0,Ni(o,i),ar[A+4>>2]=e;break}Ni(A+e|(tr[i>>0]=0),i),tr[f>>0]=e;break}Ol(A,e-t|0,r)}while(0);ur=n}function Ol(A,e,r){A|=0,r|=0;var i,f,n=0,t=0,o=0,a=0,c=0;return i=ur=(f=ur)+31&-32,ur=ur+16|0,0|(e|=0)&&(t=(n=0|tr[(c=A+11|0)>>0])<<24>>24<0?(o=0|ar[A+4>>2],(2147483647&ar[A+8>>2])-1|0):(o=255&n,10),a=o+e|0,(t-o|0)>>>0<e>>>0&&(Hl(A,t,a-t|0,o,o,0,0),n=0|tr[c>>0]),pe((n=n<<24>>24<0?0|ar[A>>2]:A)+o|0,e,r),(0|tr[c>>0])<0?ar[A+4>>2]=a:tr[c>>0]=a,Ni(n+a|(tr[i>>0]=0),i)),ur=f,0|A}function Hl(A,e,r,i,f,n,t){A|=0,i|=0,f|=0,n|=0,t|=0;var o=0,a=0,c=0;(-17-(e|=0)|0)>>>0<(r|=0)>>>0&&Nl(),c=(0|tr[A+11>>0])<0?0|ar[A>>2]:A,a=0|El(o=e>>>0<2147483623?(o=(o=r+e|0)>>>0<(a=e<<1)>>>0?a:o)>>>0<11?11:o+16&-16:-17),0|f&&di(a,c,f),0|(r=i-n-f|0)&&di(a+f+t|0,c+f+n|0,r),10!=(0|e)&&Vl(c),ar[A>>2]=a,ar[A+8>>2]=-2147483648|o}function xl(A,e,r){e|=0,r|=0;var i,f,n,t,o,a=0,c=0;return n=ur=(o=ur)+31&-32,ur=ur+16|0,a=(f=(a=0|tr[(t=(A|=0)+11|0)>>0])<<24>>24<0)?(c=0|ar[A+4>>2],(2147483647&ar[A+8>>2])-1|0):(c=255&a,10),i=c+r|0,r>>>0<=(a-c|0)>>>0?0|r&&(di((a=f?0|ar[A>>2]:A)+c|0,e,r),(0|tr[t>>0])<0?ar[A+4>>2]=i:tr[t>>0]=i,Ni(a+i|(tr[n>>0]=0),n)):Tl(A,a,i-a|0,c,c,0,r,e),ur=o,0|A}function jl(A,e){A|=0,e|=0;var r,i,f=0,n=0,t=0,o=0;o=ur=(i=ur)+31&-32,ur=ur+16|0,o=(r=o)+1|0,tr[r>>0]=e,e=(f=(e=0|tr[(n=A+11|0)>>0])<<24>>24<0)?(t=0|ar[A+4>>2],(2147483647&ar[A+8>>2])-1|0):(t=255&e,10),7==(0|(f=(0|t)==(0|e)?(Hl(A,e,1,e,e,0,0),e=e+1|0,(0|tr[n>>0])<0?8:7):(e=t+1|0,f?8:7)))?(tr[n>>0]=e,e=A):8==(0|f)&&(n=0|ar[A>>2],ar[A+4>>2]=e,e=n),Ni(A=e+t|0,r),Ni(A+1|(tr[o>>0]=0),o),ur=i}function zl(A,e,r,i,f){e|=0,r|=0,i|=0,f|=0;var n,t=0;return(n=(t=0|tr[(A|=0)+11>>0])<<24>>24<0)?t=0|ar[A+4>>2]:t&=255,-1==(0|f)|t>>>0<e>>>0&&kA(),r=(t=t-e|0)>>>0<r>>>0?t:r,n&&(A=0|ar[A>>2]),(A=0|wl(A+e|0,i,(t=f>>>0<r>>>0)?f:r))?0|A:0|(r>>>0<f>>>0?-1:1&t)}function Pl(A){(0|tr[(A|=0)+8+3>>0])<0&&Vl(0|ar[A>>2])}function Ll(A,e,r){return A|=0,e|=0,(r|=0)&&function(A,e,r){var i=0;if((r|=0)>>>0<=(A|=0)-(e|=0)>>2>>>0){if(0|r)for(i=A;r=r+-1|0,ar[i>>2]=ar[e>>2],r;)e=e+4|0,i=i+4|0}else for(;ar[A+((r=r+-1|0)<<2)>>2]=ar[e+(r<<2)>>2],0!=(0|r););}(A,e,r),0|A}function Kl(A,e,r,i,f,n,t,o){A|=0,i|=0,f|=0,n|=0,t|=0,o|=0;var a,c,l,u=0,s=0,b=0;c=ur=(l=ur)+31&-32,ur=ur+16|0,(1073741806-(e|=0)|0)>>>0<(r|=0)>>>0&&Nl(),b=(0|tr[3+(a=A+8|0)>>0])<0?0|ar[A>>2]:A,e>>>0<536870887?1073741823<(r=(r=(r=r+e|0)>>>0<(u=e<<1)>>>0?u:r)>>>0<2?2:r+4&-4)>>>0?kA():s=r:s=1073741807,u=0|El(s<<2),0|f&&vi(u,b,f),0|t&&vi(u+(f<<2)|0,o,t),0|(i=(r=i-n|0)-f|0)&&vi(u+(f<<2)+(t<<2)|0,b+(f<<2)+(n<<2)|0,i),1!=(0|e)&&Vl(b),ar[A>>2]=u,ar[a>>2]=-2147483648|s,t=r+t|0,sf(u+((ar[A+4>>2]=t)<<2)|(ar[c>>2]=0),c),ur=l}function ql(A,e){A|=0;var r,i,f=0,n=0,t=0,o=0,a=0;1073741807<(e|=0)>>>0&&Nl(),f=(t=(n=0|tr[(r=3+(i=A+8|0)|0)>>0])<<24>>24<0)?(a=0|ar[A+4>>2],(2147483647&ar[i>>2])-1|0):(a=255&n,1),o=(e=(o=e>>>0<a>>>0?a:e)>>>0<2)?1:(o+4&-4)-1|0;do{if((0|o)!=(0|f)){do{if(!e){if(1073741823<(e=o+1|0)>>>0&&kA(),e=0|El(e<<2),t){t=1,f=0|ar[A>>2],n=15;break}vi(e,A,1+(255&n)|0),n=16;break}e=0|ar[A>>2],n=t?(t=0,f=e,e=A,15):(vi(A,e,1+(255&n)|0),Vl(e),17)}while(0);if(15==(0|n)&&(vi(e,f,1+(0|ar[A+4>>2])|0),Vl(f),n=t?16:17),16==(0|n)){ar[i>>2]=o+1|-2147483648,ar[A+4>>2]=a,ar[A>>2]=e;break}if(17==(0|n)){tr[r>>0]=a;break}}}while(0)}function $l(A,e){return 0|function(A,e,r){e|=0,r|=0;var i,f,n,t,o,a=0,c=0;n=ur=(o=ur)+31&-32,ur=ur+16|0,c=(f=(i=0|tr[(t=(a=(A|=0)+8|0)+3|0)>>0])<<24>>24<0)?(2147483647&ar[a>>2])-1|0:1;do{if(r>>>0<=c>>>0){if(Ll(a=f?0|ar[A>>2]:A,e,r),sf(a+(r<<2)|(ar[n>>2]=0),n),(0|tr[t>>0])<0){ar[A+4>>2]=r;break}tr[t>>0]=r;break}Kl(A,c,r-c|0,a=f?0|ar[A+4>>2]:255&i,0,a,r,e)}while(0);return ur=o,0|A}(A|=0,e|=0,0|Ae(e))}function Au(A,e,r,i,f,n,t){A|=0,i|=0,f|=0,n|=0,t|=0;var o,a=0,c=0,l=0;(1073741807-(e|=0)|0)>>>0<(r|=0)>>>0&&Nl(),l=(0|tr[3+(o=A+8|0)>>0])<0?0|ar[A>>2]:A,e>>>0<536870887?1073741823<(r=(r=(r=r+e|0)>>>0<(a=e<<1)>>>0?a:r)>>>0<2?2:r+4&-4)>>>0?kA():c=r:c=1073741807,a=0|El(c<<2),0|f&&vi(a,l,f),0|(r=i-n-f|0)&&vi(a+(f<<2)+(t<<2)|0,l+(f<<2)+(n<<2)|0,r),1!=(0|e)&&Vl(l),ar[A>>2]=a,ar[o>>2]=-2147483648|c}function eu(A,e,r){e|=0,r|=0;var i,f,n,t,o=0,a=0,c=0;return f=ur=(t=ur)+31&-32,ur=ur+16|0,o=(i=(o=0|tr[(n=(a=(A|=0)+8|0)+3|0)>>0])<<24>>24<0)?(c=0|ar[A+4>>2],(2147483647&ar[a>>2])-1|0):(c=255&o,1),a=c+r|0,r>>>0<=(o-c|0)>>>0?0|r&&(vi((o=i?0|ar[A>>2]:A)+(c<<2)|0,e,r),(0|tr[n>>0])<0?ar[A+4>>2]=a:tr[n>>0]=a,sf(o+(a<<2)|(ar[f>>2]=0),f)):Kl(A,o,a-o|0,c,c,0,r,e),ur=t,0|A}function ru(A,e){A|=0,e|=0;var r,i,f,n=0,t=0,o=0,a=0;a=ur=(f=ur)+31&-32,ur=ur+16|0,a=(i=a)+4|0,ar[i>>2]=e,e=(r=(e=0|tr[(t=(n=A+8|0)+3|0)>>0])<<24>>24<0)?(o=0|ar[A+4>>2],(2147483647&ar[n>>2])-1|0):(o=255&e,1),7==(0|(n=(0|o)==(0|e)?(Au(A,e,1,e,e,0,0),e=e+1|0,(0|tr[t>>0])<0?8:7):(e=o+1|0,r?8:7)))?(tr[t>>0]=e,e=A):8==(0|n)&&(t=0|ar[A>>2],ar[A+4>>2]=e,e=t),sf(A=e+(o<<2)|0,i),sf(A+4|(ar[a>>2]=0),a),ur=f}function iu(){var A,e=0;return e=ur=(A=ur)+31&-32,ur=ur+16|0,0|BA(54452,3)?(fu(49484,e),0):(e=0|yA(0|ar[13614]),ur=A,0|e)}function fu(A,e){A|=0,e|=0;var r;r=ur=ur+31&-32,ur=ur+16|0,ar[r>>2]=e,sa(e=0|ar[2255],A,r),function(A,e){var r,i=0,f=0,n=0,t=0,o=0,a=0;i=r=255&(A|=0),0<=(0|ar[(e|=0)+76>>2])&&0!=(0|da())?((0|i)!=(0|tr[e+75>>0])&&(o=0|ar[(t=e+20|0)>>2])>>>0<(0|ar[e+16>>2])>>>0?(ar[t>>2]=o+1,tr[o>>0]=r):i=0|Ur(e,A),ka()):a=3;do{if(3==(0|a)){if((0|i)!=(0|tr[e+75>>0])&&(n=0|ar[(f=e+20|0)>>2])>>>0<(0|ar[e+16>>2])>>>0){ar[f>>2]=n+1,tr[n>>0]=r;break}i=0|Ur(e,A)}}while(0)}(10,e),kA()}function nu(A){0}function tu(A,e){return(0|(A|=0))==(0|(e|=0))|0}function ou(A,e,r,i){A|=0,r|=0,i|=0;var f,n,t;f=0|ar[(A=(e|=0)+16|0)>>2],n=e+36|0,t=e+24|0;do{if(f){if((0|f)!=(0|r)){ar[n>>2]=1+(0|ar[n>>2]),ar[t>>2]=2,tr[e+54>>0]=1;break}2==(0|ar[t>>2])&&(ar[t>>2]=i)}else ar[A>>2]=r,ar[t>>2]=i,ar[n>>2]=1}while(0)}function au(A,e,r,i){r|=0,i|=0;var f=0;(0|ar[(e|=0)+4>>2])==(0|r)&&1!=(0|ar[(f=e+28|0)>>2])&&(ar[f>>2]=i)}function cu(A,e,r,i,f){A|=0,r|=0,i|=0,f|=0;var n=0,t=0,o=0,a=0;tr[(e|=0)+53>>0]=1;do{if((0|ar[e+4>>2])==(0|i)){if(tr[e+52>>0]=1,o=e+54|0,a=e+48|0,t=e+24|0,A=e+36|0,!(n=0|ar[(i=e+16|0)>>2])){if(ar[i>>2]=r,ar[t>>2]=f,!((ar[A>>2]=1)==(0|ar[a>>2])&1==(0|f)))break;tr[o>>0]=1;break}if((0|n)!=(0|r)){ar[A>>2]=1+(0|ar[A>>2]),tr[o>>0]=1;break}2==(0|(A=0|ar[t>>2]))&&(A=ar[t>>2]=f),1==(0|ar[a>>2])&1==(0|A)&&(tr[o>>0]=1)}}while(0)}function lu(A,e,r,i){e|=0,r|=0,i|=0;var f,n,t,o,a,c,l,u=0,s=0;for(a=ur=(l=ur)+31&-32,ur=ur+64|0,s=0|ar[(A|=0)>>2],c=A+(0|ar[s+-8>>2])|0,s=0|ar[s+-4>>2],ar[a>>2]=r,ar[4+a>>2]=A,ar[8+a>>2]=e,ar[12+a>>2]=i,e=20+a|0,i=24+a|0,f=28+a|0,n=32+a|0,t=40+a|0,o=(u=A=16+a|0)+36|0;(0|(u=u+4|(ar[u>>2]=0)))<(0|o););or[A+36>>1]=0,tr[A+38>>0]=0;A:do{if(0|tu(s,r))ar[48+a>>2]=1,gs[15&ar[20+(0|ar[s>>2])>>2]](s,a,c,c,1,0),A=1==(0|ar[i>>2])?c:0;else{switch(vs[15&ar[24+(0|ar[s>>2])>>2]](s,a,c,1,0),0|ar[36+a>>2]){case 0:A=1==(0|ar[t>>2])&1==(0|ar[f>>2])&1==(0|ar[n>>2])?0|ar[e>>2]:0;break A;case 1:break;default:A=0;break A}if(1!=(0|ar[i>>2])&&!(0==(0|ar[t>>2])&1==(0|ar[f>>2])&1==(0|ar[n>>2]))){A=0;break}A=0|ar[A>>2]}}while(0);return ur=l,0|A}function uu(A){var e,r,i;ar[(A|=0)>>2]=15984,e=A+4|0,(i=r=0)|(e|=0,1)&&(r=0|function(A){return(A|=0)+-12|0}(0|ar[e>>2]),e=0|ar[(i=r+8|0)>>2],ar[i>>2]=e+-1,(e+-1|0)<0)&&Vl(r)}function su(A,e,r,i){e|=0,r|=0,i|=0;var f,n=0;n=(f=0|ar[(A|=0)+4>>2])>>8,1&f&&(n=0|ar[(0|ar[r>>2])+n>>2]),A=0|ar[A>>2],ws[31&ar[28+(0|ar[A>>2])>>2]](A,e,r+n|0,2&f|0?i:2)}function bu(A,e,r,i,f,n){e|=0,r|=0,i|=0,f|=0,n|=0;var t,o=0;o=(t=0|ar[(A|=0)+4>>2])>>8,1&t&&(o=0|ar[(0|ar[i>>2])+o>>2]),A=0|ar[A>>2],gs[15&ar[20+(0|ar[A>>2])>>2]](A,e,r,i+o|0,2&t|0?f:2,n)}function du(A,e,r,i,f){e|=0,r|=0,i|=0,f|=0;var n,t=0;t=(n=0|ar[(A|=0)+4>>2])>>8,1&n&&(t=0|ar[(0|ar[r>>2])+t>>2]),A=0|ar[A>>2],vs[15&ar[24+(0|ar[A>>2])>>2]](A,e,r+t|0,2&n|0?i:2,f)}function ku(A){return 0|(A=1==(0|tr[(A|=0)>>0])?0:tr[A>>0]=1)}function hu(){var A;return A=0|ar[13615],0|(ar[13615]=A)}function wu(A,e,r,i){e|=0,i|=0;var f,n,t,o,a,c,l,u;return r=0|(t=f=A|=0,o=n=r|=0,t=((a=(u=0)|sr(u=65535&(o|=0),l=65535&(t|=0)))>>>16)+(0|sr(u,c=t>>>16))|0,o=0|sr(u=o>>>16,l),0|(D=(t>>>16)+(0|sr(u,c))+(((65535&t)+o|0)>>>16)|0,t+o<<16|65535&a|0)),A=D,0|(D=(0|sr(e,n))+(0|sr(i,f))+A|0&A,0|r)}function vu(A,e,r,i){return 0|(D=(e|=0)+(i|=0)+((r=(A|=0)+(r|=0)>>>0)>>>0<A>>>0|0)>>>0,0|r)}function gu(A,e,r,i){return 0|(D=i=(e|=0)-(i|=0)-((A|=0)>>>0<(r|=0)>>>0|0)>>>0,A-r>>>0|0)}function mu(A){var e=0;return(0|(e=0|tr[b+(255&(A|=0))>>0]))<8?0|e:(0|(e=0|tr[b+(A>>8&255)>>0]))<8?e+8|0:(0|(e=0|tr[b+(A>>16&255)>>0]))<8?e+16|0:24+(0|tr[b+(A>>>24)>>0])|0}function pu(A,e,r,i,f){f|=0;var n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0;if(l=A|=0,t=r|=0,o=s=i|=0,!(c=a=e|=0))return n=0!=(0|f),o?(n&&(ar[f>>2]=0|A,ar[f+4>>2]=0&e),(f=s=0)|(D=s,f)):(n&&(ar[f>>2]=(l>>>0)%(t>>>0),ar[f+4>>2]=0),(s=0)|(D=s,f=(l>>>0)/(t>>>0)>>>0));n=0==(0|o);do{if(t){if(!n){if((n=(0|v(0|o))-(0|v(0|c))|0)>>>0<=31){A=l>>>((t=u=n+1|0)>>>0)&(e=n-31>>31)|c<<(o=31-n|0),e&=c>>>(u>>>0),n=0,o=l<<o;break}return f?(ar[f>>2]=0|A,ar[f+4>>2]=a|0&e,(f=s=0)|(D=s,f)):(f=s=0)|(D=s,f)}if((n=t-1|0)&t|0){A=(u=32-(o=33+(0|v(0|t))-(0|v(0|c))|0)|0)-1>>31&c>>>((b=o-32|0)>>>0)|(c<<u|l>>>((t=o)>>>0))&(e=b>>31),e&=c>>>(o>>>0),n=l<<(d=64-o|0)&(a=u>>31),o=(c<<d|l>>>(b>>>0))&a|l<<u&o-33>>31;break}return 0|f&&(ar[f>>2]=n&l,ar[f+4>>2]=0),1==(0|t)?0|(D=b=a|0&e,d=0|A):(d=0|mu(0|t),0|(D=b=c>>>(d>>>0)|0,d=c<<32-d|l>>>(d>>>0)|0))}if(n)return 0|f&&(ar[f>>2]=(c>>>0)%(t>>>0),ar[f+4>>2]=0),(b=0)|(D=b,d=(c>>>0)/(t>>>0)>>>0);if(!l)return 0|f&&(ar[f>>2]=0,ar[f+4>>2]=(c>>>0)%(o>>>0)),(b=0)|(D=b,d=(c>>>0)/(o>>>0)>>>0);if(!((n=o-1|0)&o))return 0|f&&(ar[f>>2]=0|A,ar[f+4>>2]=n&c|0&e),d=c>>>(((b=0)|mu(0|o))>>>0),0|(D=b,d);if((n=(0|v(0|o))-(0|v(0|c))|0)>>>0<=30){A=c<<(o=31-n|0)|l>>>((t=e=n+1|0)>>>0),e=c>>>(e>>>0),n=0,o=l<<o;break}return f&&(ar[f>>2]=0|A,ar[f+4>>2]=a|0&e),(d=b=0)|(D=b,d)}while(0);if(t){for(c=0|vu(0|(u=0|r),0|(l=s|0&i),-1,-1),r=D,a=o,o=0;a=n>>>31|(i=a)<<1,n=o|n<<1,gu(0|c,0|r,0|(i=A<<1|i>>>31|0),0|(s=A>>>31|e<<1|0)),o=1&(b=(d=D)>>31|((0|d)<0?-1:0)<<1),A=0|gu(0|i,0|s,b&u|0,(((0|d)<0?-1:0)>>31|((0|d)<0?-1:0)<<1)&l|0),e=D,0!=(0|(t=t-1|0)););c=a,a=0}else c=o,o=a=0;return(t=0)|f&&(ar[f>>2]=A,ar[f+4>>2]=e),0|(D=b=(0|n)>>>31|(c|t)<<1|0&(t<<1|n>>>31)|a,d=-2&(n<<1|0)|o)}function yu(A,e,r,i){return 0|pu(A|=0,e|=0,r|=0,i|=0,0)}function Zu(A,e,r,i){var f,n;return ur=(n=ur)+16|0,pu(A|=0,e|=0,r|=0,i|=0,f=0|n),ur=n,0|(D=0|ar[4+f>>2],0|ar[f>>2])}function Cu(A,e,r){return A|=0,e|=0,(0|(r|=0))<32?(D=e>>r,A>>>r|(e&(1<<r)-1)<<32-r):(D=(0|e)<0?-1:0,e>>r-32|0)}function Wu(A,e,r){return A|=0,e|=0,(0|(r|=0))<32?(D=e>>>r,A>>>r|(e&(1<<r)-1)<<32-r):e>>>r-32|(D=0)}function Iu(A,e,r){return A|=0,e|=0,(0|(r|=0))<32?(D=e<<r|(A&(1<<r)-1<<32-r)>>>32-r,A<<r):(D=A<<r-32,0)}function Bu(A){return(255&(A|=0))<<24|(A>>8&255)<<16|(A>>16&255)<<8|A>>>24|0}function Eu(A,e,r){A|=0,e|=0;var i,f,n=0;if(8192<=(0|(r|=0)))return 0|hA(0|A,0|e,0|r);if(f=0|A,i=A+r|0,(3&A)==(3&e)){for(;3&A;){if(!r)return 0|f;tr[A>>0]=0|tr[e>>0],A=A+1|0,e=e+1|0,r=r-1|0}for(n=(r=-4&i|0)-64|0;(0|A)<=(0|n);)ar[A>>2]=ar[e>>2],ar[A+4>>2]=ar[e+4>>2],ar[A+8>>2]=ar[e+8>>2],ar[A+12>>2]=ar[e+12>>2],ar[A+16>>2]=ar[e+16>>2],ar[A+20>>2]=ar[e+20>>2],ar[A+24>>2]=ar[e+24>>2],ar[A+28>>2]=ar[e+28>>2],ar[A+32>>2]=ar[e+32>>2],ar[A+36>>2]=ar[e+36>>2],ar[A+40>>2]=ar[e+40>>2],ar[A+44>>2]=ar[e+44>>2],ar[A+48>>2]=ar[e+48>>2],ar[A+52>>2]=ar[e+52>>2],ar[A+56>>2]=ar[e+56>>2],ar[A+60>>2]=ar[e+60>>2],A=A+64|0,e=e+64|0;for(;(0|A)<(0|r);)ar[A>>2]=ar[e>>2],A=A+4|0,e=e+4|0}else for(r=i-4|0;(0|A)<(0|r);)tr[A>>0]=0|tr[e>>0],tr[A+1>>0]=0|tr[e+1>>0],tr[A+2>>0]=0|tr[e+2>>0],tr[A+3>>0]=0|tr[e+3>>0],A=A+4|0,e=e+4|0;for(;(0|A)<(0|i);)tr[A>>0]=0|tr[e>>0],A=A+1|0,e=e+1|0;return 0|f}function Gu(A,e,r){var i=0;if((0|(e|=0))<(0|(A|=0))&(0|A)<(e+(r|=0)|0)){for(e=e+r|0,A=(i=A)+r|0;0<(0|r);)e=e-1|0,r=r-1|0,tr[(A=A-1|0)>>0]=0|tr[e>>0];A=i}else Eu(A,e,r);return 0|A}function Vu(A,e,r){e|=0;var i,f=0,n=0,t=0;if(i=(A|=0)+(r|=0)|0,e&=255,67<=(0|r)){for(;3&A;)tr[A>>0]=e,A=A+1|0;for(n=(f=-4&i|0)-64|0,t=e|e<<8|e<<16|e<<24;(0|A)<=(0|n);)ar[A>>2]=t,ar[A+4>>2]=t,ar[A+8>>2]=t,ar[A+12>>2]=t,ar[A+16>>2]=t,ar[A+20>>2]=t,ar[A+24>>2]=t,ar[A+28>>2]=t,ar[A+32>>2]=t,ar[A+36>>2]=t,ar[A+40>>2]=t,ar[A+44>>2]=t,ar[A+48>>2]=t,ar[A+52>>2]=t,ar[A+56>>2]=t,ar[A+60>>2]=t,A=A+64|0;for(;(0|A)<(0|f);)ar[A>>2]=t,A=A+4|0}for(;(0|A)<(0|i);)tr[A>>0]=e,A=A+1|0;return i-r|0}function Xu(A){return 0}function _u(A){return 0}function Fu(A){return 0}function Nu(A){var e,r;return 0<(0|(r=(A|=0)+15&-16|0))&(0|(A=(e=0|ar[s>>2])+r|0))<(0|e)|(0|A)<0?(y(),G(12),-1):(0|(ar[s>>2]=A))>(0|p())&&0==(0|m())?(ar[s>>2]=e,G(12),-1):0|e}function Ru(){return g(0),0}function Yu(A){return g(1),0}function Ju(A,e){return g(2),0}function Du(A,e,r){return g(3),0}function Qu(A,e,r,i){return g(4),0}function Tu(A,e,r,i,f){return g(5),0}function Mu(A,e,r,i,f){return g(6),0}function Su(A,e,r,i,f,n){return g(7),0}function Uu(A,e,r,i,f,n){return g(8),0}function Ou(A,e,r,i,f,n,t){return g(9),0}function Hu(A,e,r,i,f,n,t,o){return g(10),0}function xu(A){g(12)}function ju(A,e){g(13)}function zu(A,e,r){g(14)}function Pu(A,e,r,i){g(15)}function Lu(A,e,r,i,f){g(16)}function Ku(A,e,r,i,f,n){g(17)}function qu(A,e,r,i,f,n,t){g(18)}function $u(A,e,r,i,f,n,t,o){g(19)}function As(A,e,r,i,f,n,t,o,a){g(20)}function es(A,e,r,i,f,n,t,o,a,c){g(21)}var rs=[Ru,function(){var A,e,r=0,i=0,f=0;for(i=27827,f=(r=54464)+22|0;tr[r>>0]=0|tr[i>>0],i=i+1|0,(0|(r=r+1|0))<(0|f););if(80<=(10+(0|ta(27868))|0)>>>0)return 54464;for(i=27849,f=(r=54464+(0|ta(54464))|0)+11|0;tr[r>>0]=0|tr[i>>0],i=i+1|0,(0|(r=r+1|0))<(0|f););return A=54464,e=27868,e|=0,function(A,e){!function(A,e){A|=0;var r=0,i=0;r=e|=0;A:do{if(3&(r^A))i=8;else{if(3&r)do{if(r=0|tr[e>>0],!((tr[A>>0]=r)<<24>>24))break A;e=e+1|0,A=A+1|0}while(0!=(3&e|0));if(!((-2139062144&(r=0|ar[e>>2])^-2139062144)&r+-16843009))for(i=A;e=e+4|0,A=i+4|0,ar[i>>2]=r,!((-2139062144&(r=0|ar[e>>2])^-2139062144)&r+-16843009|0);)i=A;i=8}}while(0);if(8==(0|i)&&(i=0|tr[e>>0],(tr[A>>0]=i)<<24>>24))for(;A=A+1|0,i=0|tr[(e=e+1|0)>>0],(tr[A>>0]=i)<<24>>24!=0;);}(A|=0,e|=0)}((A|=0)+(0|ta(A))|0,e),54464},function(){return 256},function(){var A,e,r,i;return A=0|El(8),ar[A>>2]=0,r=(ar[(e=4+A|0)>>2]=0)|El(80),ar[4+r>>2]=0,ar[8+r>>2]=0,ar[r>>2]=5852,function(A){var e,r,i,f,n=0,t=0,o=0;ar[(A|=0)>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0,ar[A+12>>2]=26780,r=A+16|0,ar[(i=A+20|0)>>2]=0,n=A+20|(ar[(f=A+24|0)>>2]=0),ar[r>>2]=n,ar[A+32>>2]=0,ar[A+36>>2]=0,ar[A+28>>2]=A+32,ar[(o=A+40|0)>>2]=0,ar[o+4>>2]=0,ar[o+8>>2]=0,ar[o+12>>2]=0,ar[o+16>>2]=0,ar[o+20>>2]=0,ar[o+24>>2]=0,e=o=6004,A=0|ar[n>>2];do{if(A){for(t=i;;)if(o>>>0<(n=0|ar[A+16>>2])>>>0){if(!(n=0|ar[A>>2])){n=5;break}t=A,A=n}else{if(o>>>0<=n>>>0){n=9;break}if(!(n=0|ar[(t=A+4|0)>>2])){n=8;break}A=n}if(5==(0|n)){t=o=A;break}if(8==(0|n)){o=A;break}if(9==(0|n)){o=A;break}}else t=o=n}while(0);0|ar[t>>2]||(A=0|El(20),ar[A+16>>2]=e,ar[A>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=o,ar[t>>2]=A,(n=0|ar[ar[r>>2]>>2])&&(ar[r>>2]=n,A=0|ar[t>>2]),Vc(0|ar[i>>2],A),ar[f>>2]=1+(0|ar[f>>2]))}(i=12+r|0),ar[A>>2]=i,ar[e>>2]=r,0|A},function(){var A;return Zc(A=0|El(20)),0|A},function(){var A;return A=0|El(4),(ar[A>>2]=0)|A},function(){var A;return A=0|El(8),ar[A>>2]=0,(ar[4+A>>2]=0)|A},function(){var A;return Ic(A=0|El(100)),0|A},function(){var A;return A=0|El(12),ar[A>>2]=0,ar[4+A>>2]=0,(ar[8+A>>2]=0)|A},function(){var A;return A=0|El(12),ar[A>>2]=0,ar[4+A>>2]=0,(ar[8+A>>2]=0)|A},function(){var A;return A=0|El(12),ar[A>>2]=0,ar[4+A>>2]=0,(ar[8+A>>2]=0)|A},Ru,Ru,Ru,Ru,Ru],is=[Yu,function(A){return 0},function(A){return 0},function(A){var e=0,r=0,i=0;return(i=0|ar[(e=(A|=0)+44|0)>>2])>>>0<(r=0|ar[A+24>>2])>>>0&&(i=ar[e>>2]=r),8&ar[A+48>>2]?((r=0|ar[(e=A+16|0)>>2])>>>0<i>>>0&&(r=ar[e>>2]=i),r>>>0<=(e=0|ar[A+12>>2])>>>0?0|(A=-1):0|(A=0|cr[e>>0])):0|(A=-1)},function(A){var e=0;return 0|(A=-1==(0|(e=0|is[127&ar[36+(0|ar[(A|=0)>>2])>>2]](A)))?-1:(A=0|ar[(e=A+12|0)>>2],ar[e>>2]=A+1,0|bi(0|tr[A>>0])))},function(A){return 0|(1==(0|(A|=0))?100:0)},function(A){var e,r,i;return r=ur=(e=ur)+31&-32,ur=ur+16|0,A=0|(i=0|ar[(A|=0)+60>>2],0|(i|=0)),ar[r>>2]=A,A=0|ia(0|R(6,0|r)),ur=e,0|A},function(A){return-1},function(A){return 0},function(A){return 0},function(A){return-1},function(A){var e=0;return 0|(A=-1==(0|(e=0|is[127&ar[36+(0|ar[(A|=0)>>2])>>2]](A)))?-1:(A=0|ar[(e=A+12|0)>>2],ar[e>>2]=A+4,0|wi(0|ar[A>>2])))},function(A){var e,r,i,f,n,t,o,a,c=0,l=0;i=ur=(a=ur)+31&-32,ur=ur+16|0,f=(A|=0)+36|0,n=A+40|0,t=8+(r=8+i|0)|0,o=r,e=A+32|0;A:for(;;){if(A=0|ar[f>>2],A=0|as[31&ar[20+(0|ar[A>>2])>>2]](A,0|ar[n>>2],r,t,i),(0|Sr(r,1,l=(0|ar[i>>2])-o|0,0|ar[e>>2]))!=(0|l)){A=-1;break}switch(0|A){case 1:break;case 2:A=-1;break A;default:c=4;break A}}return 4==(0|c)&&(A=(0!=(0|Or(0|ar[e>>2])))<<31>>31),ur=a,0|A},function(A){var e,r,i,f,n,t,o,a,c=0,l=0;i=ur=(a=ur)+31&-32,ur=ur+16|0,f=(A|=0)+36|0,n=A+40|0,t=8+(r=8+i|0)|0,o=r,e=A+32|0;A:for(;;){if(A=0|ar[f>>2],A=0|as[31&ar[20+(0|ar[A>>2])>>2]](A,0|ar[n>>2],r,t,i),(0|Sr(r,1,l=(0|ar[i>>2])-o|0,0|ar[e>>2]))!=(0|l)){A=-1;break}switch(0|A){case 1:break;case 2:A=-1;break A;default:c=4;break A}}return 4==(0|c)&&(A=(0!=(0|Or(0|ar[e>>2])))<<31>>31),ur=a,0|A},function(A){return 0|tf(A|=0,0)},function(A){return 0|tf(A|=0,1)},function(A){return 0|af(A|=0,0)},function(A){return 0|af(A|=0,1)},function(A){return 2},function(A){return 0==(0|tr[50024])&&0|ku(50024)&&(function(){var A=0,e=0;if(0==(0|tr[50032])&&0|ku(50032)){e=53240;do{for(ar[e>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,A=0;3!=(0|A);)ar[e+(A<<2)>>2]=0,A=A+1|0;e=e+12|0}while(53408!=(0|e))}Sl(53240,47628),Sl(53252,47635),Sl(53264,47642),Sl(53276,47650),Sl(53288,47660),Sl(53300,47669),Sl(53312,47676),Sl(53324,47685),Sl(53336,47689),Sl(53348,47693),Sl(53360,47697),Sl(53372,47701),Sl(53384,47705),Sl(53396,47709)}(),ar[13352]=53240),0|ar[13352]},function(A){return 0==(0|tr[50008])&&0|ku(50008)&&(function(){var A=0,e=0;if(0==(0|tr[50016])&&0|ku(50016)){e=52948;do{for(ar[e>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,A=0;3!=(0|A);)ar[e+(A<<2)>>2]=0,A=A+1|0;e=e+12|0}while(53236!=(0|e))}Sl(52948,47498),Sl(52960,47506),Sl(52972,47515),Sl(52984,47521),Sl(52996,47527),Sl(53008,47531),Sl(53020,47536),Sl(53032,47541),Sl(53044,47548),Sl(53056,47558),Sl(53068,47566),Sl(53080,47575),Sl(53092,47584),Sl(53104,47588),Sl(53116,47592),Sl(53128,47596),Sl(53140,47527),Sl(53152,47600),Sl(53164,47604),Sl(53176,47608),Sl(53188,47612),Sl(53200,47616),Sl(53212,47620),Sl(53224,47624)}(),ar[13309]=52948),0|ar[13309]},function(A){return 0==(0|tr[49992])&&0|ku(49992)&&(function(){var A=0,e=0;if(0==(0|tr[5e4])&&0|ku(5e4)){e=52656;do{for(ar[e>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,A=0;3!=(0|A);)ar[e+(A<<2)>>2]=0,A=A+1|0;e=e+12|0}while(52944!=(0|e))}Sl(52656,47492),Sl(52668,47495)}(),ar[13236]=52656),0|ar[13236]},function(A){A|=0;var e,r,i=0,f=0;return e=ur=(r=ur)+31&-32,ur=ur+16|0,0==(0|tr[49984])&&0|ku(49984)&&(ar[13161]=0,ar[13162]=0,4294967279<(i=(ar[13163]=0)|Fi(47471))>>>0&&Nl(),i>>>0<11?(tr[52655]=i,A=52644):(A=0|El(f=i+16&-16),ar[13161]=A,ar[13163]=-2147483648|f,ar[13162]=i),di(A,47471,i),Ni(A+i|(tr[e>>0]=0),e)),ur=r,52644},function(A){A|=0;var e,r,i=0,f=0;return e=ur=(r=ur)+31&-32,ur=ur+16|0,0==(0|tr[49976])&&0|ku(49976)&&(ar[13158]=0,ar[13159]=0,4294967279<(i=(ar[13160]=0)|Fi(47459))>>>0&&Nl(),i>>>0<11?(tr[52643]=i,A=52632):(A=0|El(f=i+16&-16),ar[13158]=A,ar[13160]=-2147483648|f,ar[13159]=i),di(A,47459,i),Ni(A+i|(tr[e>>0]=0),e)),ur=r,52632},function(A){A|=0;var e,r,i=0,f=0;return e=ur=(r=ur)+31&-32,ur=ur+16|0,0==(0|tr[49968])&&0|ku(49968)&&(ar[13155]=0,ar[13156]=0,4294967279<(i=(ar[13157]=0)|Fi(47450))>>>0&&Nl(),i>>>0<11?(tr[52631]=i,A=52620):(A=0|El(f=i+16&-16),ar[13155]=A,ar[13157]=-2147483648|f,ar[13156]=i),di(A,47450,i),Ni(A+i|(tr[e>>0]=0),e)),ur=r,52620},function(A){A|=0;var e,r,i=0,f=0;return e=ur=(r=ur)+31&-32,ur=ur+16|0,0==(0|tr[49960])&&0|ku(49960)&&(ar[13152]=0,ar[13153]=0,4294967279<(i=(ar[13154]=0)|Fi(47441))>>>0&&Nl(),i>>>0<11?(tr[52619]=i,A=52608):(A=0|El(f=i+16&-16),ar[13152]=A,ar[13154]=-2147483648|f,ar[13153]=i),di(A,47441,i),Ni(A+i|(tr[e>>0]=0),e)),ur=r,52608},function(A){return 2},function(A){return 0==(0|tr[50104])&&0|ku(50104)&&(function(){var A=0,e=0;if(0==(0|tr[50112])&&0|ku(50112)){e=54052;do{for(ar[e>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,A=0;3!=(0|A);)ar[e+(A<<2)>>2]=0,A=A+1|0;e=e+12|0}while(54220!=(0|e))}$l(54052,14248),$l(54064,14276),$l(54076,14304),$l(54088,14336),$l(54100,14376),$l(54112,14412),$l(54124,14440),$l(54136,14476),$l(54148,14492),$l(54160,14508),$l(54172,14524),$l(54184,14540),$l(54196,14556),$l(54208,14572)}(),ar[13555]=54052),0|ar[13555]},function(A){return 0==(0|tr[50088])&&0|ku(50088)&&(function(){var A=0,e=0;if(0==(0|tr[50096])&&0|ku(50096)){e=53760;do{for(ar[e>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,A=0;3!=(0|A);)ar[e+(A<<2)>>2]=0,A=A+1|0;e=e+12|0}while(54048!=(0|e))}$l(53760,13728),$l(53772,13760),$l(53784,13796),$l(53796,13820),$l(53808,13844),$l(53820,13860),$l(53832,13880),$l(53844,13900),$l(53856,13928),$l(53868,13968),$l(53880,14e3),$l(53892,14036),$l(53904,14072),$l(53916,14088),$l(53928,14104),$l(53940,14120),$l(53952,13844),$l(53964,14136),$l(53976,14152),$l(53988,14168),$l(54e3,14184),$l(54012,14200),$l(54024,14216),$l(54036,14232)}(),ar[13512]=53760),0|ar[13512]},function(A){return 0==(0|tr[50072])&&0|ku(50072)&&(function(){var A=0,e=0;if(0==(0|tr[50080])&&0|ku(50080)){e=53468;do{for(ar[e>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,A=0;3!=(0|A);)ar[e+(A<<2)>>2]=0,A=A+1|0;e=e+12|0}while(53756!=(0|e))}$l(53468,13704),$l(53480,13716)}(),ar[13439]=53468),0|ar[13439]},function(A){A|=0;var e,r=0,i=0,f=0;if(A=ur=(e=ur)+31&-32,ur=ur+16|0,0==(0|tr[50064])&&0|ku(50064)){ar[13364]=0,ar[13365]=0,1073741807<(i=(ar[13366]=0)|Ae(13620))>>>0&&Nl();do{if(2<=i>>>0){if(!(1073741823<(r=i+4&-4)>>>0)){f=0|El(r<<2),ar[13364]=f,ar[13366]=-2147483648|r,ar[13365]=i;break}kA()}else tr[53467]=i,f=53456}while(0);vi(f,13620,i),sf(f+(i<<2)|(ar[A>>2]=0),A)}return ur=e,53456},function(A){A|=0;var e,r=0,i=0,f=0;if(A=ur=(e=ur)+31&-32,ur=ur+16|0,0==(0|tr[50056])&&0|ku(50056)){ar[13361]=0,ar[13362]=0,1073741807<(i=(ar[13363]=0)|Ae(13572))>>>0&&Nl();do{if(2<=i>>>0){if(!(1073741823<(r=i+4&-4)>>>0)){f=0|El(r<<2),ar[13361]=f,ar[13363]=-2147483648|r,ar[13362]=i;break}kA()}else tr[53455]=i,f=53444}while(0);vi(f,13572,i),sf(f+(i<<2)|(ar[A>>2]=0),A)}return ur=e,53444},function(A){A|=0;var e,r=0,i=0,f=0;if(A=ur=(e=ur)+31&-32,ur=ur+16|0,0==(0|tr[50048])&&0|ku(50048)){ar[13358]=0,ar[13359]=0,1073741807<(i=(ar[13360]=0)|Ae(13536))>>>0&&Nl();do{if(2<=i>>>0){if(!(1073741823<(r=i+4&-4)>>>0)){f=0|El(r<<2),ar[13358]=f,ar[13360]=-2147483648|r,ar[13359]=i;break}kA()}else tr[53443]=i,f=53432}while(0);vi(f,13536,i),sf(f+(i<<2)|(ar[A>>2]=0),A)}return ur=e,53432},function(A){A|=0;var e,r=0,i=0,f=0;if(A=ur=(e=ur)+31&-32,ur=ur+16|0,0==(0|tr[50040])&&0|ku(50040)){ar[13355]=0,ar[13356]=0,1073741807<(i=(ar[13357]=0)|Ae(13500))>>>0&&Nl();do{if(2<=i>>>0){if(!(1073741823<(r=i+4&-4)>>>0)){f=0|El(r<<2),ar[13355]=f,ar[13357]=-2147483648|r,ar[13356]=i;break}kA()}else tr[53431]=i,f=53420}while(0);vi(f,13500,i),sf(f+(i<<2)|(ar[A>>2]=0),A)}return ur=e,53420},function(A){return 127},function(A){return 127},function(A){return 0},function(A){return 127},function(A){return 127},function(A){return 0},function(A){return 2147483647},function(A){return 2147483647},function(A){return 0},function(A){return 2147483647},function(A){return 2147483647},function(A){return 0},function(A){return 0},function(A){return 0},function(A){return 4},function(A){var e,r=0;if(r=0|Ai(0|ar[(A=(A|=0)+8|0)>>2]),e=0|function(A,e,r){A|=0,e|=0,r|=0;var i,f=0,n=0,t=0;f=ur=(i=ur)+31&-32,ur=ur+16|0;A:do{if(e){do{if(0|r){if(t=0==(0|A)?f:A,-1<(A=0|tr[e>>0])<<24>>24){ar[t>>2]=255&A,A=A<<24>>24!=0&1;break A}if(n=8832,A=0|tr[e>>0],!(0|ar[ar[n>>2]>>2])){ar[t>>2]=A<<24>>24&57343,A=1;break A}if((A=(255&A)-194|0)>>>0<=50){if(f=e+1|0,n=0|ar[8240+(A<<2)>>2],r>>>0<4&&n&-2147483648>>>((6*r|0)-6|0)|0)break;if(((r=(A=0|cr[f>>0])>>>3)+-16|r+(n>>26))>>>0<=7){if(0<=(0|(A=A+-128|n<<6))){ar[t>>2]=A,A=2;break A}if((f=(0|cr[e+2>>0])-128|0)>>>0<=63){if(0<=(0|(f|=A<<6))){ar[t>>2]=f,A=3;break A}if((A=(0|cr[e+3>>0])-128|0)>>>0<=63){ar[t>>2]=A|f<<6,A=4;break A}}}}}}while(0);ar[(A=8708)>>2]=84,A=-1}else A=0}while(0);return ur=i,0|A}(0,0,4),0|r&&Ai(r),e)A=-1;else{if(A=0|ar[A>>2])return r=0|Ai(A),A=0|Ma(),0|r&&Ai(r),1==(0|A)|0;A=1}return 0|A},function(A){return 0},function(A){var e=0;return(A=0|ar[(A|=0)+8>>2])?(e=0|Ai(A),A=0|Ma(),e&&Ai(e)):A=1,0|A},function(A){return 0|tr[(A|=0)+8>>0]},function(A){return 0|tr[(A|=0)+9>>0]},function(A){return 0|ar[(A|=0)+8>>2]},function(A){return 0|ar[(A|=0)+12>>2]},function(A){return 1},function(A){return 1},function(A){return 1},function(A){return 0},function(A){return 0},function(A){return 4},function(A){return 49173},function(A){return 0|(e=(A|=0)+4|0,0|ar[(e|=0)>>2]);var e},function(A){var e,r,i,f,n=0;return ur=(r=ur)+16|0,f=r,ds[511&(A|=0)](f),A=0|qo((n=(i=(n=0|tr[f+11>>0])<<24>>24<0)?0|ar[f+4>>2]:255&n)+4|0),ar[A>>2]=n,e=0|ar[f>>2],Eu(A+4|0,0|(i?e:f),0|n),ur=(i&&Vl(e),r),0|A},function(A){return 0|rs[15&(A|=0)]()},function(A){return 0|rs[15&(A|=0)]()},function(A){var e,r,i,f,n,t=0;if(ur=(n=ur)+16|0,Re(i=n,40+(0|ar[(A|=0)>>2])|0),f=(t=0|ar[(r=i+4|0)>>2])-(A=0|ar[i>>2])>>3,!(e=A))return ur=n,0|f;if((0|t)!=(0|e)){for(;A=t+-8|0,ar[r>>2]=A,(t=0|ar[t+-4>>2])&&(Il(t),A=0|ar[r>>2]),(0|A)!=(0|e);)t=A;A=0|ar[i>>2]}return Vl(A),ur=n,0|f},function(A){return 1072},function(A){return 0|rs[15&(A|=0)]()},function(A){var e,r,i;return A|=0,e=0|El(20),i=0|ar[A+4>>2],ar[(r=e)>>2]=ar[A>>2],ar[4+r>>2]=i,Rl(8+e|0,A+8|0),0|e},function(A){return 1128},function(A){return 1168},function(A){return 0|(A|=0)},function(A){return 0|(A|=0)},function(A){var e;return A|=0,function(A,e){e|=0;var r,i,f,n,t,o=0,a=0;r=(A=A|0)+4|0,f=A+16|0,tr[A+17>>0]=0,ar[(o=n=A+8|0)>>2]=0,ar[o+4>>2]=0,tr[f>>0]=1,ar[A>>2]=0,ar[r>>2]=0,Rl(o=A+20|0,e),a=A+92|0,t=A+40|0,ar[(i=A+32|0)>>2]=1012,ar[a>>2]=1032,ar[A+36>>2]=0,Yi(A+92|0,t),ar[A+164>>2]=0,ar[A+168>>2]=-1,ar[i>>2]=5384,ar[a>>2]=5404,Ti(t),ar[t>>2]=3908,ar[(a=A+72|0)>>2]=0,ar[a+4>>2]=0,ar[a+8>>2]=0,ar[a+12>>2]=0,ar[A+88>>2]=8,Of(t,o),o=0|tr[e+11>>0],e=o<<24>>24<0?0|ar[e+4>>2]:255&o,ar[n>>2]=e,ar[4+n>>2]=0,tr[f>>0]=0==(0|e)&1,ar[A>>2]=i,ar[r>>2]=0}(e=0|El(176),A),0|e},function(A){return 0!=(0|tr[(A|=0)+17>>0])|0},function(A){return 1216},function(A){return 0|rs[15&(A|=0)]()},function(A){return 0|ar[(A|=0)>>2]},function(A){return 0|ar[(0|ar[(A|=0)>>2])-4>>2]},function(A){return D=0|ar[(A=(A|=0)+8|0)+4>>2],0|ar[A>>2]},function(A){return 0|ar[(A|=0)+16>>2]},function(A){return 0|ar[(A|=0)+20>>2]},function(A){return 0|ar[(0|ar[(A|=0)>>2])-4>>2]},function(A){return 0|(A|=0)},function(A){return 0|(A|=0)},function(A){return 0|ar[(A|=0)>>2]},function(A){return 1328},function(A){return 0|rs[15&(A|=0)]()},function(A){return 0|ar[(A|=0)+80>>2]},function(A){return 0|ar[(A|=0)+96>>2]},function(A){return 1400},function(A){return 1440},function(A){return 1480},function(A){return 1624},function(A){return 0|rs[15&(A|=0)]()},function(A){return((0|ar[(A|=0)+4>>2])-(0|ar[A>>2])|0)/12|0},function(A){return 1528},function(A){return 0|rs[15&(A|=0)]()},function(A){return(0|ar[(A|=0)+4>>2])-(0|ar[A>>2])>>2|0},Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu,Yu],fs=[Ju,function(A,e){e|=0;var r,i=0,f=0,n=0;if((i=0|ar[(f=(A|=0)+44|0)>>2])>>>0<(n=0|ar[A+24>>2])>>>0&&(i=ar[f>>2]=n),f=0|ar[(r=A+12|0)>>2],(0|ar[A+8>>2])>>>0>=f>>>0)return 0|(e=-1);if(-1==(0|e))return ar[r>>2]=f+-1,ar[A+16>>2]=i,(e=0)|e;if(16&ar[A+48>>2])n=255&e,f=f+-1|0;else if((n=255&e)<<24>>24!=(0|tr[(f=f+-1|0)>>0]))return 0|(e=-1);return ar[r>>2]=f,ar[A+16>>2]=i,tr[f>>0]=n,0|e},function(A,e){var r,i,f,n,t,o,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0;if(ur=(o=ur)+16|0,i=o,-1==(0|(e|=0)))return ur=o,(w=0)|w;if(n=(A|=0)+8|0,t=(0|ar[(f=A+12|0)>>2])-(0|ar[n>>2])|0,(0|(d=0|ar[(w=A+24|0)>>2]))==(0|(a=0|ar[(r=A+28|0)>>2]))){if(!(16&ar[(b=A+48|0)>>2]))return ur=o,0|(w=-1);s=0|ar[(u=A+20|0)>>2],k=(0|ar[(h=A+44|0)>>2])-s|0,jl(l=A+32|0,0),Ul(l,c=(0|tr[(a=l+11|0)>>0])<0?(2147483647&ar[A+40>>2])-1|0:10,0),(a=0|tr[a>>0])<<24>>24<0?(c=0|ar[l>>2],a=0|ar[A+36>>2]):(c=l,a&=255),a=c+a|0,ar[u>>2]=c,ar[r>>2]=a,d=c+(d-s)|0,ar[w>>2]=d,c=c+k|0,ar[h>>2]=c,l=k=h,s=a}else b=A+48|0,c=0|ar[(l=k=c=A+44|0)>>2],s=a;return u=d+1|0,ar[i>>2]=u,c=0|ar[(u>>>0<c>>>0?l:i)>>2],ar[k>>2]=c,8&ar[b>>2]|0&&((0|tr[(a=A+32|0)+11>>0])<0&&(a=0|ar[a>>2]),ar[n>>2]=a,ar[f>>2]=a+t,ar[A+16>>2]=c),(0|d)==(0|s)?(w=0|fs[63&ar[52+(0|ar[A>>2])>>2]](A,255&e),ur=o,0|w):(ar[w>>2]=u,tr[d>>0]=e,ur=o,0|(w=255&e))},function(A,e){return 0},function(A,e){return A|=0,0|(25696==(0|ar[(e|=0)+4>>2])?A+16|0:0)},function(A,e){e|=0;var r=0;return r=0|ar[(A|=0)+376156>>2],(0|ar[A+376160>>2])-r>>2>>>0<=e>>>0?(r=0)|r:0|(r=0|ar[r+(e<<2)>>2])},function(A,e){return(0|(e|=0))<=-1?(e=0)|e:0|(e=((0|ar[(A|=0)+376160>>2])-(0|ar[A+376156>>2])>>2|0)>(0|e))},function(A,e){return-1},function(A,e){return-1},function(A,e){return-1},function(A,e){return-1},function(A,e){A|=0,e|=0;var r,i,f,n,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;f=ur=(n=ur)+31&-32,ur=ur+32|0,r=16+f|0,o=8+f|0,i=4+f|0;do{if(0|Qi(e,-1))t=15;else{if(b=0|gi(e),ar[o>>2]=b,b=A+32|0,0|tr[A+44>>0]){if(1==(0|Sr(o,4,1,0|ar[b>>2]))){t=15;break}A=-1;break}for(u=o+4|0,s=A+36|0,a=A+40|0,c=8+(ar[i>>2]=r)|0,l=r,A=o;;){if(t=0|ar[s>>2],o=1==(0|(t=0|ss[15&ar[12+(0|ar[t>>2])>>2]](t,0|ar[a>>2],A,u,f,r,c,i))),(0|ar[f>>2])==(0|A)){t=14;break}if(3==(0|t)){if(1!=(0|Sr(A,1,1,0|ar[b>>2]))){t=14;break}}else{if(1!=(1|t)){t=14;break}if((0|Sr(r,1,t=(0|ar[i>>2])-l|0,0|ar[b>>2]))!=(0|t)){t=14;break}A=o?0|ar[f>>2]:A}if(!o){t=13;break}}if(13==(0|t)){t=15;break}if(14==(0|t)){A=-1;break}}}while(0);return 15==(0|t)&&(A=0|function(A){0|Qi(A|=0,-1)&&(A=0);return 0|A}(e)),ur=n,0|A},function(A,e){A|=0,e|=0;var r,i,f,n,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;f=ur=(n=ur)+31&-32,ur=ur+32|0,r=16+f|0,o=8+f|0,i=4+f|0;do{if(0|Ji(e,-1))t=15;else{if(b=0|ki(e),tr[o>>0]=b,b=A+32|0,0|tr[A+44>>0]){if(1==(0|Sr(o,1,1,0|ar[b>>2]))){t=15;break}A=-1;break}for(u=o+1|0,s=A+36|0,a=A+40|0,c=8+(ar[i>>2]=r)|0,l=r,A=o;;){if(t=0|ar[s>>2],o=1==(0|(t=0|ss[15&ar[12+(0|ar[t>>2])>>2]](t,0|ar[a>>2],A,u,f,r,c,i))),(0|ar[f>>2])==(0|A)){t=14;break}if(3==(0|t)){if(1!=(0|Sr(A,1,1,0|ar[b>>2]))){t=14;break}}else{if(1!=(1|t)){t=14;break}if((0|Sr(r,1,t=(0|ar[i>>2])-l|0,0|ar[b>>2]))!=(0|t)){t=14;break}A=o?0|ar[f>>2]:A}if(!o){t=13;break}}if(13==(0|t)){t=15;break}if(14==(0|t)){A=-1;break}}}while(0);return 15==(0|t)&&(A=0|function(A){0|Ji(A|=0,-1)&&(A=0);return 0|A}(e)),ur=n,0|A},function(A,e){var r,i,f,n,t,o=0,a=0,c=0,l=0;c=ur=(t=ur)+31&-32,ur=ur+32|0,r=c+16|0,i=c+8|0,a=c+4|0,l=0|Qi(e|=0,-1),o=0!=(0|tr[(n=(A|=0)+52|0)>>0]),f=A+48|0;do{if(l)o?o=e:(l=1&(1^(0|Qi(o=0|ar[f>>2],-1))),tr[n>>0]=l);else{if(o){switch(l=0|gi(0|ar[f>>2]),ar[a>>2]=l,l=0|ar[A+36>>2],0|ss[15&ar[12+(0|ar[l>>2])>>2]](l,0|ar[A+40>>2],a,a+4|0,c,r,8+r|0,i)){case 1:case 2:c=10;break;case 3:tr[r>>0]=ar[f>>2],ar[i>>2]=1+r,c=7;break;default:c=7}A:do{if(7==(0|c))for(o=A+32|0;;){if((a=0|ar[i>>2])>>>0<=r>>>0){a=1,o=0;break A}if(l=a+-1|0,ar[i>>2]=l,-1==(0|ai(0|tr[l>>0],0|ar[o>>2]))){c=10;break}}}while(0);if(10==(0|c)&&(a=0,o=-1),!a)break}ar[f>>2]=e,tr[n>>0]=1,o=e}}while(0);return ur=t,0|o},function(A,e){var r,i,f,n,t,o=0,a=0,c=0,l=0;c=ur=(t=ur)+31&-32,ur=ur+32|0,r=c+16|0,i=c+4|0,a=c+8|0,l=0|Ji(e|=0,-1),o=0!=(0|tr[(n=(A|=0)+52|0)>>0]),f=A+48|0;do{if(l)o?o=e:(l=1&(1^(0|Ji(o=0|ar[f>>2],-1))),tr[n>>0]=l);else{if(o){switch(l=0|ki(0|ar[f>>2]),tr[a>>0]=l,l=0|ar[A+36>>2],0|ss[15&ar[12+(0|ar[l>>2])>>2]](l,0|ar[A+40>>2],a,a+1|0,c,r,8+r|0,i)){case 1:case 2:c=10;break;case 3:tr[r>>0]=ar[f>>2],ar[i>>2]=1+r,c=7;break;default:c=7}A:do{if(7==(0|c))for(o=A+32|0;;){if((a=0|ar[i>>2])>>>0<=r>>>0){a=1,o=0;break A}if(l=a+-1|0,ar[i>>2]=l,-1==(0|ai(0|tr[l>>0],0|ar[o>>2]))){c=10;break}}}while(0);if(10==(0|c)&&(a=0,o=-1),!a)break}ar[f>>2]=e,tr[n>>0]=1,o=e}}while(0);return ur=t,0|o},function(A,e){return-1<(e|=0)<<24>>24&&(e=(0|$c())+((255&e)<<2)|0,e=255&ar[e>>2]),0|e},function(A,e){return-1<(e|=0)<<24>>24&&(e=(0|qc())+(e<<24>>24<<2)|0,e=255&ar[e>>2]),0|e},function(A,e){return 0|(e|=0)},function(A,e){return(e|=0)>>>0<128&&(e=(0|$c())+(e<<2)|0,e=0|ar[e>>2]),0|e},function(A,e){return(e|=0)>>>0<128&&(e=(0|qc())+(e<<2)|0,e=0|ar[e>>2]),0|e},function(A,e){return(e|=0)<<24>>24|0},function(A,e){return e|=0,0|is[127&(A|=0)](e)},function(A,e){return 0|ar[(e|=0)+(0|ar[(A|=0)>>2])>>2]},function(A,e){return 0|ar[(e|=0)+(0|ar[(A|=0)>>2])>>2]},function(A,e){A|=0;var r,i,f,n,t=0;return ur=(n=ur)+16|0,f=n,r=(e|=0)+4|0,i=0|ar[e>>2],ar[f>>2]=0,ar[f+4>>2]=0,4294967279<i>>>(ar[f+8>>2]=0)&&Nl(),i>>>0<11?(tr[f+11>>0]=i)?(e=f,t=6):e=f:(e=0|El(t=16+i&-16),ar[f>>2]=e,ar[f+8>>2]=-2147483648|t,ar[f+4>>2]=i,t=6),6==(0|t)&&Eu(0|e,0|r,0|i),e=(tr[e+i>>0]=0)|is[127&A](f),ur=(0<=(0|tr[f+11>>0])||Vl(0|ar[f>>2]),n),0|e},function(A,e){e|=0;var r,i=0;return i=0|ar[(A|=0)>>2],A=e+((r=0|ar[A+4>>2])>>1)|0,1&r&&(i=0|ar[(0|ar[A>>2])+i>>2]),0|is[127&i](A)},function(A,e){e|=0;var r,i=0;return i=0|ar[(A|=0)>>2],A=e+((r=0|ar[A+4>>2])>>1)|0,1&r&&(i=0|ar[(0|ar[A>>2])+i>>2]),0|is[127&i](A)},function(A,e){e|=0;var r=0,i=0;return r=0|ar[(A|=0)>>2],A=e+((i=0|ar[A+4>>2])>>1)|0,1&i&&(r=0|ar[(0|ar[A>>2])+r>>2]),r=0|is[127&r](A),A=D,i=0|El(8),ar[(e=i)>>2]=r,ar[e+4>>2]=A,0|i},function(A,e){e|=0;var r,i=0;return i=0|ar[(A|=0)>>2],A=e+((r=0|ar[A+4>>2])>>1)|0,1&r&&(i=0|ar[(0|ar[A>>2])+i>>2]),0|is[127&i](A)},function(A,e){e|=0;var r,i,f=0,n=0;return ur=(i=ur)+16|0,r=i,f=0|ar[(A|=0)>>2],A=e+((n=0|ar[A+4>>2])>>1)|0,1&n&&(f=0|ar[(0|ar[A>>2])+f>>2]),ks[63&f](r,A),f=0|qo((e=(n=(e=0|tr[r+11>>0])<<24>>24<0)?0|ar[r+4>>2]:255&e)+4|0),ar[f>>2]=e,A=0|ar[r>>2],Eu(f+4|0,0|(n?A:r),0|e),ur=(n&&Vl(A),i),0|f},function(A,e){e|=0;var r,i,f,n=0;return ur=(r=ur)+16|0,f=r,ks[63&ar[(A|=0)>>2]](f,e),A=0|qo((n=(i=(n=0|tr[f+11>>0])<<24>>24<0)?0|ar[f+4>>2]:255&n)+4|0),ar[A>>2]=n,e=0|ar[f>>2],Eu(A+4|0,0|(i?e:f),0|n),ur=(i&&Vl(e),r),0|A},function(A,e){var r,i;return e|=0,ur=(r=ur)+16|0,i=r,ks[63&(A|=0)](i,e),e=0|El(8),ar[e>>2]=ar[i>>2],ar[e+4>>2]=ar[i+4>>2],ur=r,0|e},function(A,e){e|=0;var r,i,f,n=0;return ur=(r=ur)+16|0,f=r,ks[63&ar[(A|=0)>>2]](f,e),A=0|qo((n=(i=(n=0|tr[f+11>>0])<<24>>24<0)?0|ar[f+4>>2]:255&n)+4|0),ar[A>>2]=n,e=0|ar[f>>2],Eu(A+4|0,0|(i?e:f),0|n),ur=(i&&Vl(e),r),0|A},function(A,e){var r,i,f,n,t,o,a,c,l,u;return A|=0,e|=0,ur=(i=ur)+16|0,f=(n=i)+12|0,t=i+8|0,r=0|El(8),lA(0|e),ar[n>>2]=e,o=0|dA(1584,0|n),ar[f>>2]=o,ar[t>>2]=0,ar[n>>2]=ar[t>>2],a=r,c=A,l=f,u=n,c|=0,l|=0,u|=0,ar[(a|=0)>>2]=c,u=0|El(20),l=0|ar[l>>2],lA(0|l),ar[u+4>>2]=0,ar[u+8>>2]=0,ar[u>>2]=5824,cA(0),ar[u+12>>2]=c,ar[u+16>>2]=l,cA(0),cA(0),cA(0),ar[a+4>>2]=u,cA(0),cA(0|ar[f>>2]),cA(0|e),ur=i,0|r},function(A,e){e|=0;var r,i=0;return i=0|ar[(A|=0)>>2],A=e+((r=0|ar[A+4>>2])>>1)|0,1&r&&(i=0|ar[(0|ar[A>>2])+i>>2]),0|is[127&i](A)},function(A,e){e|=0;var r,i=0;return i=0|ar[(A|=0)>>2],A=e+((r=0|ar[A+4>>2])>>1)|0,1&r&&(i=0|ar[(0|ar[A>>2])+i>>2]),0|is[127&i](A)},function(A,e){e|=0;var r,i,f=0,n=0;return ur=(i=ur)+16|0,r=i,f=0|ar[(A|=0)>>2],A=e+((n=0|ar[A+4>>2])>>1)|0,1&n&&(f=0|ar[(0|ar[A>>2])+f>>2]),ks[63&f](r,A),n=0|El(12),ar[n>>2]=ar[r>>2],ar[n+4>>2]=ar[r+4>>2],ar[n+8>>2]=ar[r+8>>2],ur=i,0|n},function(A,e){return 0|ar[(e|=0)+(0|ar[(A|=0)>>2])>>2]},function(A,e){return 0|ar[(e|=0)+(0|ar[(A|=0)>>2])>>2]},function(A,e){e|=0;var r,i=0;return i=0|ar[(A|=0)>>2],A=e+((r=0|ar[A+4>>2])>>1)|0,1&r&&(i=0|ar[(0|ar[A>>2])+i>>2]),0|is[127&i](A)},function(A,e){e|=0;var r,i=0;return i=0|ar[(A|=0)>>2],A=e+((r=0|ar[A+4>>2])>>1)|0,1&r&&(i=0|ar[(0|ar[A>>2])+i>>2]),0|is[127&i](A)},Ju,Ju,Ju,Ju,Ju,Ju,Ju,Ju,Ju,Ju,Ju,Ju,Ju,Ju,Ju,Ju,Ju,Ju,Ju,Ju,Ju,Ju,Ju],ns=[Du,function(A,e,r){return 0|(A|=0)},function(A,e,r){e|=0,r|=0;var i,f,n=0,t=0,o=0,a=0;for(i=(A|=0)+12|0,f=A+16|0,o=0;!((0|r)<=(0|o));)if((n=0|ar[i>>2])>>>0<(t=0|ar[f>>2])>>>0)di(e,n,t=(0|(a=r-o|0))<(0|(t=t-n|0))?a:t),ar[i>>2]=(0|ar[i>>2])+t,e=e+t|0,o=t+o|0;else{if(-1==(0|(n=0|is[127&ar[40+(0|ar[A>>2])>>2]](A))))break;a=0|ki(n),tr[e>>0]=a,e=e+1|0,o=o+1|0}return 0|o},function(A,e,r){e|=0,r|=0;var i,f,n=0,t=0,o=0,a=0;for(i=(A|=0)+24|0,f=A+28|0,n=0;!((0|r)<=(0|n));)if((t=0|ar[i>>2])>>>0<(o=0|ar[f>>2])>>>0)di(t,e,o=(0|(a=r-n|0))<(0|(o=o-t|0))?a:o),ar[i>>2]=(0|ar[i>>2])+o,e=e+o|0,n=o+n|0;else{if(o=0|ar[52+(0|ar[A>>2])>>2],a=0|bi(0|tr[e>>0]),-1==(0|fs[63&o](A,a)))break;e=e+1|0,n=n+1|0}return 0|n},function(A,e,r){e|=0,r|=0;var i,f,n=0;return n=ur=(f=ur)+31&-32,ur=ur+32|0,i=n,ar[(A|=0)+36>>2]=7,0==(64&ar[A>>2]|0)&&(ar[i>>2]=ar[A+60>>2],ar[i+4>>2]=21523,ar[i+8>>2]=n+16,0|N(54,0|i))&&(tr[A+75>>0]=-1),n=0|na(A,e,r),ur=f,0|n},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n=0;return n=ur=(i=ur)+31&-32,ur=ur+32|0,n=(f=n)+20|0,ar[f>>2]=ar[A+60>>2],ar[f+4>>2]=0,ar[f+8>>2]=e,ar[f+12>>2]=n,ar[f+16>>2]=r,A=(0|ia(0|V(140,0|f)))<0?ar[n>>2]=-1:0|ar[n>>2],ur=i,0|A},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t=0,o=0,a=0,c=0;return c=ur=(f=ur)+31&-32,ur=ur+32|0,ar[(c=(t=c)+16|0)>>2]=e,o=c+4|0,n=0|ar[(i=A+48|0)>>2],ar[o>>2]=r-(0!=(0|n)&1),a=A+44|0,ar[c+8>>2]=ar[a>>2],ar[c+12>>2]=n,ar[t>>2]=ar[A+60>>2],ar[t+4>>2]=c,ar[t+8>>2]=2,1<=(0|(t=0|ia(0|_(145,0|t))))?(c=0|ar[o>>2])>>>0<t>>>0&&(o=0|ar[a>>2],ar[(a=A+4|0)>>2]=o,ar[A+8>>2]=o+(t-c),t=(0|ar[i>>2]&&(ar[a>>2]=o+1,tr[e+(r+-1)>>0]=0|tr[o>>0]),r)):ar[A>>2]=ar[A>>2]|48&t^16,ur=f,0|t},na,function(A,e,r){var i,f;return e|=0,r|=0,Eu(0|(f=0|ar[(i=(A|=0)+20|0)>>2]),0|e,0|(A=r>>>0<(A=(0|ar[A+16>>2])-f|0)>>>0?r:A)),ar[i>>2]=(0|ar[i>>2])+A,0|r},function(A,e,r){return 0|(A|=0)},function(A,e,r){e|=0,r|=0;var i,f,n=0,t=0,o=0,a=0;for(i=(A|=0)+12|0,f=A+16|0,o=0;!((0|r)<=(0|o));)if((n=0|ar[i>>2])>>>0<(t=0|ar[f>>2])>>>0)vi(e,n,t=(0|(a=r-o|0))<(0|(t=t-n>>2))?a:t),ar[i>>2]=(0|ar[i>>2])+(t<<2),e=e+(t<<2)|0,o=t+o|0;else{if(-1==(0|(n=0|is[127&ar[40+(0|ar[A>>2])>>2]](A))))break;a=0|gi(n),ar[e>>2]=a,e=e+4|0,o=o+1|0}return 0|o},function(A,e,r){e|=0,r|=0;var i,f,n=0,t=0,o=0,a=0;for(i=(A|=0)+24|0,f=A+28|0,n=0;!((0|r)<=(0|n));)if((t=0|ar[i>>2])>>>0<(o=0|ar[f>>2])>>>0)vi(t,e,o=(0|(a=r-n|0))<(0|(o=o-t>>2))?a:o),ar[i>>2]=(0|ar[i>>2])+(o<<2),e=e+(o<<2)|0,n=o+n|0;else{if(o=0|ar[52+(0|ar[A>>2])>>2],a=0|wi(0|ar[e>>2]),-1==(0|fs[63&o](A,a)))break;e=e+4|0,n=n+1|0}return 0|n},function(A,e,r){A|=0,e|=0,r|=0;var i=0,f=0,n=0;A:do{if(0|tr[A+44>>0])i=0|Sr(e,4,r,0|ar[A+32>>2]);else for(i=0;;){if((0|r)<=(0|i))break A;if(n=0|ar[52+(0|ar[A>>2])>>2],f=0|wi(0|ar[e>>2]),-1==(0|(f=0|fs[63&n](A,f))))break A;i=i+1|0,e=e+4|0}}while(0);return 0|i},function(A,e,r){A|=0,e|=0,r|=0;var i=0,f=0,n=0;A:do{if(0|tr[A+44>>0])i=0|Sr(e,1,r,0|ar[A+32>>2]);else for(i=0;;){if((0|r)<=(0|i))break A;if(n=0|ar[52+(0|ar[A>>2])>>2],f=0|bi(0|tr[e>>0]),-1==(0|(f=0|fs[63&n](A,f))))break A;i=i+1|0,e=e+1|0}}while(0);return 0|i},function(A,e,r){A|=0,e|=0,r|=0;var i=0,f=0;for(A=0;(0|e)!=(0|r);)A=((f=-268435456&(i=(0|tr[e>>0])+(A<<4)|0))>>>24|f)^i,e=e+1|0;return 0|A},function(A,e,r){A|=0,e|=0,r|=0;var i=0,f=0;for(A=0;(0|e)!=(0|r);)A=((f=-268435456&(i=(0|ar[e>>2])+(A<<4)|0))>>>24|f)^i,e=e+4|0;return 0|A},function(A,e,r){return r|=0,(r=0|ti((0|tr[(e|=0)+11>>0])<0&&ar[e>>2]))>>>(-1!=(0|r)&1)|0},function(A,e,r){return r|=0,(r=0|ti((0|tr[(e|=0)+11>>0])<0&&ar[e>>2]))>>>(-1!=(0|r)&1)|0},function(A,e,r){for(A|=0,e|=0,r|=0;(0|e)!=(0|r);)-1<(A=0|tr[e>>0])<<24>>24&&(A=0|$c(),A=255&ar[A+(tr[e>>0]<<2)>>2]),tr[e>>0]=A,e=e+1|0;return 0|r},function(A,e,r){for(A|=0,e|=0,r|=0;(0|e)!=(0|r);)-1<(A=0|tr[e>>0])<<24>>24&&(A=0|qc(),A=255&ar[A+(tr[e>>0]<<2)>>2]),tr[e>>0]=A,e=e+1|0;return 0|r},function(A,e,r){return r|=0,0|(-1<(e|=0)<<24>>24?e:r)},function(A,e,r){return A|=0,e|=0,0|(A=(r|=0)>>>0<128?(A=(0|Al())+(r<<1)|0,(or[A>>1]&e)<<16>>16!=0):0)},function(A,e,r){for(A|=0,e|=0,r|=0;(0|e)!=(0|r);)(A=0|ar[e>>2])>>>0<128&&(A=0|$c(),A=0|ar[A+(ar[e>>2]<<2)>>2]),ar[e>>2]=A,e=e+4|0;return 0|r},function(A,e,r){for(A|=0,e|=0,r|=0;(0|e)!=(0|r);)(A=0|ar[e>>2])>>>0<128&&(A=0|qc(),A=0|ar[A+(ar[e>>2]<<2)>>2]),ar[e>>2]=A,e=e+4|0;return 0|r},function(A,e,r){return r|=0,0|((e|=0)>>>0<128?255&e:r)},function(A,e,r){r|=0;var i,f,n=0,t=0;if(i=ur=(f=ur)+31&-32,ur=ur+64|0,0|tu(A|=0,e|=0))e=1;else if(0!=(0|e)&&0!=(0|(t=0|lu(e,3560,3544,0)))){for(n=(e=4+i|0)+52|0;(0|(e=e+4|(ar[e>>2]=0)))<(0|n););ar[i>>2]=t,ar[8+i>>2]=A,ar[12+i>>2]=-1,ar[48+i>>2]=1,ws[31&ar[28+(0|ar[t>>2])>>2]](t,i,0|ar[r>>2],1),e=1==(0|ar[24+i>>2])?(ar[r>>2]=ar[16+i>>2],1):0}else e=0;return ur=f,0|e},function(A,e,r){return 0|tu(A|=0,e|=0)},function(A,e,r){A|=0,e|=0;var i,f,n=0,t=0,o=0,a=0;if(i=ur=(f=ur)+31&-32,ur=ur+64|0,ar[(r|=0)>>2]=ar[ar[r>>2]>>2],0|function(A,e){A=0|tu(A|=0,e|=0)?1:0|tu(e,3688);return 0|A}(A,e))A=1;else if(0!=(0|e)&&0!=(0|(n=0|lu(e,3560,3648,0)))&&0==(ar[n+8>>2]&~ar[A+8>>2]|0))if(e=n+12|0,0|tu(0|ar[(A=A+12|0)>>2],0|ar[e>>2])||0|tu(0|ar[A>>2],3680))A=1;else if(0!=(0|(A=0|ar[A>>2]))&&0!=(0|(o=0|lu(A,3560,3544,0)))&&0!=(0|(t=0|ar[e>>2]))&&0!=(0|(a=0|lu(t,3560,3544,0)))){for(e=(A=4+i|0)+52|0;(0|(A=A+4|(ar[A>>2]=0)))<(0|e););ar[i>>2]=a,ar[8+i>>2]=o,ar[12+i>>2]=-1,ar[48+i>>2]=1,ws[31&ar[28+(0|ar[a>>2])>>2]](a,i,0|ar[r>>2],1),A=1==(0|ar[24+i>>2])?(ar[r>>2]=ar[16+i>>2],1):0}else A=0;else A=0;return ur=f,0|A},function(A,e,r){return 0|tu(A|=0,e|=0)},function(A,e,r){A|=0,e|=0;var i,f,n,t,o,a=0;return ur=(o=ur)+32|0,n=o+12|0,t=o,i=(r|=0)+4|0,f=0|ar[r>>2],ar[t>>2]=0,ar[t+4>>2]=0,4294967279<f>>>(ar[t+8>>2]=0)&&Nl(),f>>>0<11?(tr[t+11>>0]=f)?(r=t,a=6):r=t:(r=0|El(a=16+f&-16),ar[t>>2]=r,ar[t+8>>2]=-2147483648|a,ar[t+4>>2]=f,a=6),6==(0|a)&&Eu(0|r,0|i,0|f),tr[r+f>>0]=0,hs[127&A](n,e,t),r=0|El(12),ar[r>>2]=ar[n>>2],ar[r+4>>2]=ar[4+n>>2],ar[r+8>>2]=ar[8+n>>2],ur=(0<=(0|tr[t+11>>0])||Vl(0|ar[t>>2]),o),0|r},function(A,e,r){var i,f;return e|=0,r|=0,ur=(i=ur)+16|0,f=i,hs[127&(A|=0)](f,e,r),lA(0|ar[f>>2]),r=0|ar[f>>2],cA(0|r),ur=i,0|r},function(A,e,r){e|=0,r|=0;var i,f,n=0,t=0;return ur=(f=ur)+16|0,i=f,n=0|ar[(A|=0)>>2],A=e+((t=0|ar[A+4>>2])>>1)|0,1&t&&(n=0|ar[(0|ar[A>>2])+n>>2]),hs[127&n](i,A,r),t=0|El(8),ar[t>>2]=ar[i>>2],ar[t+4>>2]=ar[i+4>>2],ur=f,0|t},function(A,e,r){e|=0,r|=0;var i,f,n,t=0,o=0,a=0;return ur=(n=ur)+32|0,f=(a=n)+20|0,t=0|ar[(A|=0)>>2],i=r+4|0,r=0|ar[r>>2],ar[f>>2]=0,ar[4+f>>2]=0,4294967279<r>>>(ar[8+f>>2]=0)&&Nl(),r>>>0<11?(tr[11+f>>0]=r)?(A=f,o=6):A=f:(A=0|El(o=r+16&-16),ar[f>>2]=A,ar[8+f>>2]=-2147483648|o,ar[4+f>>2]=r,o=6),6==(0|o)&&Eu(0|A,0|i,0|r),tr[A+r>>0]=0,hs[127&t](a,e,f),A=0|El(20),e=0|ar[(t=a)+4>>2],ar[(o=A)>>2]=ar[t>>2],ar[o+4>>2]=e,a=a+8|0,ar[(o=A+8|0)>>2]=ar[a>>2],ar[o+4>>2]=ar[a+4>>2],ar[o+8>>2]=ar[a+8>>2],ar[a>>2]=0,ar[a+4>>2]=0,ur=((ar[a+8>>2]=0)<=(0|tr[11+f>>0])||Vl(0|ar[f>>2]),n),0|A},function(A,e,r){var i,f;return e|=0,r|=0,ur=(i=ur)+16|0,f=i,hs[127&ar[(A|=0)>>2]](f,e,r),lA(0|ar[f>>2]),r=0|ar[f>>2],cA(0|r),ur=i,0|r},function(A,e,r){return e|=0,r|=0,Jl((0|ar[(A|=0)>>2])+(12*e|0)|0,r),1},function(A,e,r){var i,f;return e|=0,r|=0,ur=(i=ur)+16|0,f=i,hs[127&ar[(A|=0)>>2]](f,e,r),lA(0|ar[f>>2]),r=0|ar[f>>2],cA(0|r),ur=i,0|r},function(A,e,r){return e|=0,r|=0,ar[(0|ar[(A|=0)>>2])+(e<<2)>>2]=ar[r>>2],1},function(A,e,r){return 0|function(A,e,r){e|=0,r|=0;var i,f,n,t=0;return f=0|ar[(i=(A=A|0)+84|0)>>2],t=0|aa(f,0,n=r+256|0),Eu(0|e,0|f,0|(r=(t=0==(0|t)?n:t-f|0)>>>0<r>>>0?t:r)),ar[A+4>>2]=f+r,e=f+t|0,ar[A+8>>2]=e,ar[i>>2]=e,0|r}(A|=0,e|=0,r|=0)},Du,Du,Du,Du,Du,Du,Du,Du,Du,Du,Du,Du,Du,Du,Du,Du,Du,Du,Du,Du,Du,Du,Du,Du,Du,Du],ts=[Qu,function(A,e,r,i){A|=0,r|=0,i|=0;var f,n,t,o=0,a=0,c=0;if(A=0|ar[(e|=0)+4>>2],a=(0|(i=0|ar[e+8>>2]))/(0|ar[r+5784>>2])|0,c=(c=A+-1+(e=0|ar[e+12>>2])|0)-((0|c)%(0|e)|0)|0,e=(A=((0|A)/(0|ar[r+5780>>2])|0)-1+e|0)-((0|A)%(0|e)|0)|0,9<=((A=0|ar[r+5760>>2])+-8|0)>>>0&&br(29935,29989,115,29998),9<=((o=0|ar[r+5768>>2])+-8|0)>>>0&&br(30021,29989,116,29998),n=0==(0|(f=0|ra(16,0|sr(0|sr(c,i),(A+7|0)/8|0)))),t=f,0|ar[r+20>>2]){if(0==(0|(i=o=0|ra(16,a=0|sr(0|sr(e,a),(o+7|0)/8|0))))|0==(0|(A=a=0|ra(16,a)))|n)return n||$o(f),0|o&&$o(o),a&&$o(a),(r=0)|r}else{if(n)return(r=0)|r;A=i=e=0}return ar[r+4>>2]=t,ar[r+10492>>2]=0,ar[r+40>>2]=c,ar[r+8>>2]=i,ar[r+10496>>2]=0,ar[r+12>>2]=A,ar[r+10500>>2]=0,ar[r+44>>2]=e,0|(r=1)},function(A,e,r,i){for(e|=0,r|=0,i|=0;(0|e)!=(0|r);)tr[i>>0]=0|tr[e>>0],i=i+1|0,e=e+1|0;return 0|r},function(A,e,r,i){for(A|=0,e|=0,r|=0,i|=0;(0|e)!=(0|r);)A=(0|ar[e>>2])>>>0<128?(A=0|Al(),0|lr[A+(ar[e>>2]<<1)>>1]):0,or[i>>1]=A,i=i+2|0,e=e+4|0;return 0|r},function(A,e,r,i){for(A|=0,e|=0,r|=0,i|=0;;){if((0|r)==(0|i)){r=i;break}if((0|ar[r>>2])>>>0<128&&(A=0|Al(),(or[A+(ar[r>>2]<<1)>>1]&e)<<16>>16))break;r=r+4|0}return 0|r},function(A,e,r,i){for(A|=0,e|=0,r|=0,i|=0;;){if((0|r)==(0|i)){r=i;break}if(128<=(0|ar[r>>2])>>>0)break;if(A=0|Al(),!((or[A+(ar[r>>2]<<1)>>1]&e)<<16>>16))break;r=r+4|0}return 0|r},function(A,e,r,i){for(e|=0,r|=0,i|=0;(0|e)!=(0|r);)ar[i>>2]=tr[e>>0],i=i+4|0,e=e+1|0;return 0|r},function(A,e,r,i){var f,n;return e|=0,r|=0,i|=0,ur=(f=ur)+16|0,n=f,ws[31&(A|=0)](n,e,r,i),lA(0|ar[n>>2]),i=0|ar[n>>2],cA(0|i),ur=f,0|i},function(A,e,r,i){e|=0,r|=0,i|=0;var f,n,t,o,a,c=0;return ur=(a=ur)+16|0,t=a+12|0,o=a,n=0|ar[(A|=0)>>2],f=i+4|0,i=0|ar[i>>2],ar[o>>2]=0,ar[o+4>>2]=0,4294967279<i>>>(ar[o+8>>2]=0)&&Nl(),i>>>0<11?(tr[o+11>>0]=i)?(A=o,c=6):A=o:(A=0|El(c=i+16&-16),ar[o>>2]=A,ar[o+8>>2]=-2147483648|c,ar[o+4>>2]=i,c=6),6==(0|c)&&Eu(0|A,0|f,0|i),tr[A+i>>0]=0,ws[31&n](t,e,r,o),lA(0|ar[t>>2]),A=0|ar[t>>2],cA(0|A),ur=(0<=(0|tr[o+11>>0])||Vl(0|ar[o>>2]),a),0|A},function(A,e,r,i){e|=0,r|=0,i|=0;var f,n,t,o,a=0;return ur=(o=ur)+16|0,t=o,n=0|ar[(A|=0)>>2],f=i+4|0,i=0|ar[i>>2],ar[t>>2]=0,ar[t+4>>2]=0,4294967279<i>>>(ar[t+8>>2]=0)&&Nl(),i>>>0<11?(tr[t+11>>0]=i)?(A=t,a=6):A=t:(A=0|El(a=i+16&-16),ar[t>>2]=A,ar[t+8>>2]=-2147483648|a,ar[t+4>>2]=i,a=6),6==(0|a)&&Eu(0|A,0|f,0|i),A=(tr[A+i>>0]=0)|ns[63&n](e,r,t),ur=(0<=(0|tr[t+11>>0])||Vl(0|ar[t>>2]),o),0|A},function(A,e,r,i){var f,n;return e|=0,r|=0,i|=0,ur=(f=ur)+16|0,n=f,A=0|ar[(A|=0)>>2],ar[n>>2]=i,i=0|ns[63&A](e,r,n),ur=f,0|i},Qu,Qu,Qu,Qu,Qu],os=[Tu,function(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0,f=+f;var n,t,o,a,c,l,u,s,b,d,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0;return g=ur=(d=ur)+31&-32,ur=ur+176|0,u=g+72|0,o=g+48|0,t=g+32|0,h=g+24|0,k=g+8|0,c=(n=g)+134|0,a=g+68|0,l=g+76|0,b=g+64|0,s=g+60|0,g=g+56|0,ar[(w=n)>>2]=37,w=(ar[w+4>>2]=0)|Mf(n+1|0,72962,0|ar[r+4>>2]),ar[a>>2]=c,A=0|hf(),29<(0|(A=w?(ar[k>>2]=ar[r+8>>2],J[k+8>>3]=f,0|Qf(c,30,A,n,k)):(J[h>>3]=f,0|Qf(c,30,A,n,h))))?(A=0|hf(),k=w?(ar[t>>2]=ar[r+8>>2],J[8+t>>3]=f,0|Sf(a,A,n,t)):(J[o>>3]=f,0|Sf(a,A,n,o)),(A=0|ar[a>>2])?(v=k,Z=y=A):_l()):(v=A,Z=(y=0)|ar[a>>2]),h=0|Tf(Z,k=Z+v|0,r),(0|Z)!=(0|c)?(A=0|qo(v<<1))?p=m=A:_l():(m=l,p=0),Di(u,r),VA(Z,h,k,m,b,s,u),df(u),ar[g>>2]=ar[e>>2],e=0|ar[b>>2],Z=0|ar[s>>2],ar[u>>2]=ar[g>>2],Z=0|zf(u,m,e,Z,r,i),$o(p),$o(y),ur=d,0|Z},function(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0,f=+f;var n,t,o,a,c,l,u,s,b,d,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0;return g=ur=(d=ur)+31&-32,ur=ur+176|0,u=g+72|0,o=g+48|0,t=g+32|0,h=g+24|0,k=g+8|0,c=(n=g)+134|0,a=g+68|0,l=g+76|0,b=g+64|0,s=g+60|0,g=g+56|0,ar[(w=n)>>2]=37,w=(ar[w+4>>2]=0)|Mf(n+1|0,47223,0|ar[r+4>>2]),ar[a>>2]=c,A=0|hf(),29<(0|(A=w?(ar[k>>2]=ar[r+8>>2],J[k+8>>3]=f,0|Qf(c,30,A,n,k)):(J[h>>3]=f,0|Qf(c,30,A,n,h))))?(A=0|hf(),k=w?(ar[t>>2]=ar[r+8>>2],J[8+t>>3]=f,0|Sf(a,A,n,t)):(J[o>>3]=f,0|Sf(a,A,n,o)),(A=0|ar[a>>2])?(v=k,Z=y=A):_l()):(v=A,Z=(y=0)|ar[a>>2]),h=0|Tf(Z,k=Z+v|0,r),(0|Z)!=(0|c)?(A=0|qo(v<<1))?p=m=A:_l():(m=l,p=0),Di(u,r),VA(Z,h,k,m,b,s,u),df(u),ar[g>>2]=ar[e>>2],e=0|ar[b>>2],Z=0|ar[s>>2],ar[u>>2]=ar[g>>2],Z=0|zf(u,m,e,Z,r,i),$o(p),$o(y),ur=d,0|Z},function(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0,f=+f;var n,t,o,a,c,l,u,s,b,d,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0;g=ur=(d=ur)+31&-32,ur=ur+336|0,u=g+300|0,o=g+48|0,t=g+32|0,h=g+24|0,k=g+8|0,c=(n=g)+304|0,a=g+296|0,l=g+68|0,b=g+64|0,s=g+60|0,g=g+56|0,ar[(w=n)>>2]=37,w=(ar[w+4>>2]=0)|Mf(n+1|0,72962,0|ar[r+4>>2]),ar[a>>2]=c,A=0|hf(),29<(0|(A=w?(ar[k>>2]=ar[r+8>>2],J[k+8>>3]=f,0|Qf(c,30,A,n,k)):(J[h>>3]=f,0|Qf(c,30,A,n,h))))?(A=0|hf(),k=w?(ar[t>>2]=ar[r+8>>2],J[8+t>>3]=f,0|Sf(a,A,n,t)):(J[o>>3]=f,0|Sf(a,A,n,o)),(A=0|ar[a>>2])?(v=k,p=Z=A):_l()):(v=A,p=(Z=0)|ar[a>>2]),h=0|Tf(p,k=p+v|0,r);do{if((0|p)!=(0|c)){if(A=0|qo(v<<3)){y=0,C=m=A;break}_l()}else m=l,y=1,C=0}while(0);return Di(u,r),RA(p,h,k,m,b,s,u),df(u),ar[g>>2]=ar[e>>2],p=0|ar[b>>2],A=0|ar[s>>2],ar[u>>2]=ar[g>>2],A=0|FA(u,m,p,A,r,i),ar[e>>2]=A,y||$o(C),$o(Z),ur=d,0|A},function(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0,f=+f;var n,t,o,a,c,l,u,s,b,d,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0;g=ur=(d=ur)+31&-32,ur=ur+336|0,u=g+300|0,o=g+48|0,t=g+32|0,h=g+24|0,k=g+8|0,c=(n=g)+304|0,a=g+296|0,l=g+68|0,b=g+64|0,s=g+60|0,g=g+56|0,ar[(w=n)>>2]=37,w=(ar[w+4>>2]=0)|Mf(n+1|0,47223,0|ar[r+4>>2]),ar[a>>2]=c,A=0|hf(),29<(0|(A=w?(ar[k>>2]=ar[r+8>>2],J[k+8>>3]=f,0|Qf(c,30,A,n,k)):(J[h>>3]=f,0|Qf(c,30,A,n,h))))?(A=0|hf(),k=w?(ar[t>>2]=ar[r+8>>2],J[8+t>>3]=f,0|Sf(a,A,n,t)):(J[o>>3]=f,0|Sf(a,A,n,o)),(A=0|ar[a>>2])?(v=k,p=Z=A):_l()):(v=A,p=(Z=0)|ar[a>>2]),h=0|Tf(p,k=p+v|0,r);do{if((0|p)!=(0|c)){if(A=0|qo(v<<3)){y=0,C=m=A;break}_l()}else m=l,y=1,C=0}while(0);return Di(u,r),RA(p,h,k,m,b,s,u),df(u),ar[g>>2]=ar[e>>2],p=0|ar[b>>2],A=0|ar[s>>2],ar[u>>2]=ar[g>>2],A=0|FA(u,m,p,A,r,i),ar[e>>2]=A,y||$o(C),$o(Z),ur=d,0|A},Tu,Tu,Tu],as=[Mu,function(A,e,r,i,f){A|=0,r|=0,i|=0,f|=0;var n=0,t=0;for(A=e|=0;;){if((0|i)==(0|f)){t=7;break}if((0|A)==(0|r)){A=-1;break}if((e=0|tr[A>>0])<<24>>24<(n=0|tr[i>>0])<<24>>24){A=-1;break}if(n<<24>>24<e<<24>>24){A=1;break}i=i+1|0,A=A+1|0}return 7==(0|t)&&(A=(0|A)!=(0|r)&1),0|A},function(A,e,r,i,f){A|=0,r|=0,i|=0,f|=0;var n=0,t=0;for(A=e|=0;;){if((0|i)==(0|f)){t=7;break}if((0|A)==(0|r)){A=-1;break}if((0|(e=0|ar[A>>2]))<(0|(n=0|ar[i>>2]))){A=-1;break}if((0|n)<(0|e)){A=1;break}i=i+4|0,A=A+4|0}return 7==(0|t)&&(A=(0|A)!=(0|r)&1),0|A},function(A,e,r,i,f){A|=0,e|=0,i|=0,f|=0;var n,t,o=0,a=0,c=0;if(o=ur=(t=ur)+31&-32,ur=ur+16|0,n=o+4|0,1&ar[(r|=0)+4>>2]){for(Di(n,r),A=0|bf(n,52552),df(n),r=0|ar[A>>2],f?ks[63&ar[r+24>>2]](n,A):ks[63&ar[r+28>>2]](n,A),(A=0|tr[(a=11+n|0)>>0])<<24>>24<0?(r=A,A=0|ar[n>>2],c=8):f=n;8==(0|c)&&(f=A,A=r),(0|f)!=(((c=A<<24>>24<0)?0|ar[n>>2]:n)+(c?0|ar[4+n>>2]:255&A)|0);)A=0|tr[f>>0],0|(r=0|ar[e>>2])&&0|Ji(A=(0|(o=0|ar[(i=r+24|0)>>2]))==(0|ar[r+28>>2])?(c=0|ar[52+(0|ar[r>>2])>>2],A=0|bi(A),0|fs[63&c](r,A)):(ar[i>>2]=o+1,0|bi(tr[o>>0]=A)),-1)&&(ar[e>>2]=0),r=0|tr[a>>0],A=f+1|0,c=8;A=0|ar[e>>2],Yl(n)}else c=0|ar[24+(0|ar[A>>2])>>2],ar[o>>2]=ar[e>>2],ar[n>>2]=ar[o>>2],A=0|as[31&c](A,n,r,i,1&f);return ur=t,0|A},function(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0,f|=0;var n,t,o,a,c,l,u=0,s=0;return u=ur=(A=ur)+31&-32,ur=ur+64|0,s=(t=u)+52|0,c=u+39|0,n=u+16|0,a=u+12|0,o=u+4|0,u=u+8|0,tr[s>>0]=0|tr[47228],tr[s+1>>0]=0|tr[47229],tr[s+2>>0]=0|tr[47230],tr[s+3>>0]=0|tr[47231],tr[s+4>>0]=0|tr[47232],tr[s+5>>0]=0|tr[47233],XA(s+1|0,47234,1,0|ar[r+4>>2]),l=0|hf(),ar[t>>2]=f,s=0|Tf(c,f=c+(0|Qf(c,13,l,s,t))|0,r),Di(t,r),_A(c,s,f,n,a,o,t),df(t),ar[u>>2]=ar[e>>2],e=0|ar[a>>2],f=0|ar[o>>2],ar[t>>2]=ar[u>>2],f=0|zf(t,n,e,f,r,i),ur=A,0|f},function(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0,f|=0;var n,t,o,a,c,l,u=0,s=0;return u=ur=(A=ur)+31&-32,ur=ur+64|0,s=(t=u)+52|0,c=u+40|0,n=u+16|0,a=u+12|0,o=u+4|0,u=u+8|0,tr[s>>0]=0|tr[47228],tr[s+1>>0]=0|tr[47229],tr[s+2>>0]=0|tr[47230],tr[s+3>>0]=0|tr[47231],tr[s+4>>0]=0|tr[47232],tr[s+5>>0]=0|tr[47233],XA(s+1|0,47234,0,0|ar[r+4>>2]),l=0|hf(),ar[t>>2]=f,s=0|Tf(c,f=c+(0|Qf(c,12,l,s,t))|0,r),Di(t,r),_A(c,s,f,n,a,o,t),df(t),ar[u>>2]=ar[e>>2],e=0|ar[a>>2],f=0|ar[o>>2],ar[t>>2]=ar[u>>2],f=0|zf(t,n,e,f,r,i),ur=A,0|f},function(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0,f|=0;var n,t,o,a,c=0,l=0,u=0;return u=ur=(A=ur)+31&-32,ur=ur+80|0,l=(o=u)+68|0,n=u+48|0,t=u+8|0,u=u+4|0,tr[l>>0]=0|tr[47217],tr[l+1>>0]=0|tr[47218],tr[l+2>>0]=0|tr[47219],tr[l+3>>0]=0|tr[47220],tr[l+4>>0]=0|tr[47221],tr[l+5>>0]=0|tr[47222],c=0|hf(),ar[o>>2]=f,c=0|Tf(n,l=n+(f=0|Qf(n,20,c,l,o))|0,r),Di(o,r),a=0|bf(o,52536),df(o),ts[15&ar[32+(0|ar[a>>2])>>2]](a,n,l,t),f=t+f|0,ar[u>>2]=ar[e>>2],ar[o>>2]=ar[u>>2],f=0|zf(o,t,(0|c)==(0|l)?f:c-n+t|0,f,r,i),ur=A,0|f},function(A,e,r,i,f){A|=0,e|=0,i|=0,f|=0;var n,t,o=0,a=0,c=0;if(o=ur=(t=ur)+31&-32,ur=ur+16|0,n=o+4|0,1&ar[(r|=0)+4>>2]){for(Di(n,r),A=0|bf(n,52576),df(n),r=0|ar[A>>2],f?ks[63&ar[r+24>>2]](n,A):ks[63&ar[r+28>>2]](n,A),A=0|tr[(a=8+n+3|0)>>0],r=0|ar[n>>2],c=4+n|0,f=A<<24>>24<0?r:n;(0|f)!=(((o=A<<24>>24<0)?r:n)+((o?0|ar[c>>2]:255&A)<<2)|0);)A=0|ar[f>>2],0|(r=0|ar[e>>2])&&0|Qi(A=(0|(o=0|ar[(i=r+24|0)>>2]))==(0|ar[r+28>>2])?(o=0|ar[52+(0|ar[r>>2])>>2],A=0|wi(A),0|fs[63&o](r,A)):(ar[i>>2]=o+4,0|wi(ar[o>>2]=A)),-1)&&(ar[e>>2]=0),f=f+4|0,A=0|tr[a>>0],r=0|ar[n>>2];A=0|ar[e>>2],Pl(n)}else c=0|ar[24+(0|ar[A>>2])>>2],ar[o>>2]=ar[e>>2],ar[n>>2]=ar[o>>2],A=0|as[31&c](A,n,r,i,1&f);return ur=t,0|A},function(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0,f|=0;var n,t,o,a,c,l,u=0,s=0;return u=ur=(A=ur)+31&-32,ur=ur+128|0,s=(t=u)+122|0,c=u+108|0,n=u+16|0,a=u+12|0,o=u+4|0,u=u+8|0,tr[s>>0]=0|tr[47228],tr[s+1>>0]=0|tr[47229],tr[s+2>>0]=0|tr[47230],tr[s+3>>0]=0|tr[47231],tr[s+4>>0]=0|tr[47232],tr[s+5>>0]=0|tr[47233],XA(s+1|0,47234,1,0|ar[r+4>>2]),l=0|hf(),ar[t>>2]=f,s=0|Tf(c,f=c+(0|Qf(c,13,l,s,t))|0,r),Di(t,r),YA(c,s,f,n,a,o,t),df(t),ar[u>>2]=ar[e>>2],e=0|ar[a>>2],f=0|ar[o>>2],ar[t>>2]=ar[u>>2],f=0|FA(t,n,e,f,r,i),ur=A,0|f},function(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0,f|=0;var n,t,o,a,c,l,u=0,s=0;return u=ur=(A=ur)+31&-32,ur=ur+128|0,s=(t=u)+112|0,c=u+100|0,n=u+16|0,a=u+12|0,o=u+4|0,u=u+8|0,tr[s>>0]=0|tr[47228],tr[s+1>>0]=0|tr[47229],tr[s+2>>0]=0|tr[47230],tr[s+3>>0]=0|tr[47231],tr[s+4>>0]=0|tr[47232],tr[s+5>>0]=0|tr[47233],XA(s+1|0,47234,0,0|ar[r+4>>2]),l=0|hf(),ar[t>>2]=f,s=0|Tf(c,f=c+(0|Qf(c,12,l,s,t))|0,r),Di(t,r),YA(c,s,f,n,a,o,t),df(t),ar[u>>2]=ar[e>>2],e=0|ar[a>>2],f=0|ar[o>>2],ar[t>>2]=ar[u>>2],f=0|FA(t,n,e,f,r,i),ur=A,0|f},function(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0,f|=0;var n,t,o,a,c=0,l=0,u=0;return u=ur=(A=ur)+31&-32,ur=ur+192|0,l=(o=u)+176|0,n=u+156|0,t=u+4|0,u=u+152|0,tr[l>>0]=0|tr[47217],tr[l+1>>0]=0|tr[47218],tr[l+2>>0]=0|tr[47219],tr[l+3>>0]=0|tr[47220],tr[l+4>>0]=0|tr[47221],tr[l+5>>0]=0|tr[47222],c=0|hf(),ar[o>>2]=f,c=0|Tf(n,l=n+(f=0|Qf(n,20,c,l,o))|0,r),Di(o,r),a=0|bf(o,52568),df(o),ts[15&ar[48+(0|ar[a>>2])>>2]](a,n,l,t),f=t+(f<<2)|0,ar[u>>2]=ar[e>>2],ar[o>>2]=ar[u>>2],f=0|FA(o,t,(0|c)==(0|l)?f:t+(c-n<<2)|0,f,r,i),ur=A,0|f},function(A,e,r,i,f){return r|=0,ar[(f|=0)>>2]=r,3},function(A,e,r,i,f){return 0|function(A,e,r,i,f){r|=0,i|=0;var n,t,o=0,a=0,c=0,l=0,u=0,s=0,b=0;2<((n=e|=0)-(t=A|=0)|0)&0!=(4&(f|=0)|0)&&-17==(0|tr[A>>0])&&-69==(0|tr[A+1>>0])?A=-65==((b=0)|tr[A+2>>0])?A+3|0:A:b=0;A:for(;;){if(!(b>>>0<r>>>0&A>>>0<e>>>0)){0;break}l=0|tr[A>>0],s=255&l,o=A+1|0;do{if(-1<l<<24>>24){if(i>>>0<s>>>0){0;break A}A=o}else{if((255&l)<194){0;break A}if(a=A+2|0,f=n-(u=A)|0,(255&l)<224){if((0|f)<2){0;break A}if(128!=(192&(f=0|cr[o>>0])|0)){0;break A}if(i>>>0<(63&f|s<<6&1984)>>>0){0;break A}A=a;break}if(c=A+3|0,(255&l)<240){if((0|f)<3){0;break A}switch(a=0|tr[a>>0],o=0|cr[o>>0],f=224&o,l<<24>>24){case-32:if(160==(0|f))break;A=u;break A;case-19:if(128==(0|f))break;A=u;break A;default:if(128!=(192&o|0)){A=u;break A}}if(128!=(192&(f=255&a)|0)){0;break A}if(i>>>0<(o<<6&4032|s<<12&61440|63&f)>>>0){0;break A}A=c;break}if((0|f)<4|244<(255&l)){0;break A}switch(o=0|tr[o>>0],f=0|tr[a>>0],a=0|tr[c>>0],c=255&o,l<<24>>24){case-16:if(48<=(o+112&255)){A=u;break A}break;case-12:if(128==(240&c|0))break;A=u;break A;default:if(128!=(192&c|0)){A=u;break A}}if(128!=(192&(o=255&f)|0)){0;break A}if(128!=(192&(f=255&a)|0)){0;break A}if(i>>>0<(c<<12&258048|s<<18&1835008|o<<6&4032|63&f)>>>0){0;break A}A=A+4|0}}while(0);b=b+1|0}return A-t|0}(r|=0,i|=0,f|=0,1114111,0)},function(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0;var n,t=0;t=ur=(n=ur)+31&-32,ur=ur+16|0,ar[(f|=0)>>2]=r,r=0|Ai(0|ar[A+8>>2]),A=0|Ea(t,0),0|r&&Ai(r);A:do{switch(0|A){case 0:case-1:A=2;break;default:if((A=A+-1|0)>>>0>(i-(0|ar[f>>2])|0)>>>0)A=1;else for(;;){if(!A){A=0;break A}e=0|tr[t>>0],i=0|ar[f>>2],ar[f>>2]=i+1,tr[i>>0]=e,t=t+1|0,A=A+-1|0}}}while(0);return ur=n,0|A},function(A,e,r,i,f){e|=0,r|=0,f|=0;var n,t,o,a,c,l=0,u=0,s=0;t=i|=0,n=(A|=0)+8|0,s=u=0;A:for(;!((0|r)==(0|i)|f>>>0<=u>>>0);){switch(l=0|Ai(0|ar[n>>2]),A=0|(a=t-(o=r)|0,c=e,0|za(0,o|=0,a|=0,0|(c|=0)?c:51460)),0|l&&Ai(l),0|A){case-2:case-1:break A;case 0:A=1}u=u+1|0,s=A+s|0,r=r+A|0}return 0|s},function(A,e,r,i,f){for(A|=0,e|=0,r|=0,i|=0,f|=0;(0|e)!=(0|r);)A=0|tr[e>>0],tr[f>>0]=-1<A<<24>>24?A:i,f=f+1|0,e=e+1|0;return 0|r},function(A,e,r,i,f){A|=0,i|=0;var n,t=0;for(n=((r|=0)-(e|=0)|0)>>>2,A=f|=0,f=e;(0|f)!=(0|r);)t=0|ar[f>>2],tr[A>>0]=t>>>0<128?255&t:i,A=A+1|0,f=f+4|0;return e+(n<<2)|0},function(A,e,r,i,f){return r|=0,ar[(f|=0)>>2]=r,3},function(A,e,r,i,f){return 0|((i=(i|=0)-(r|=0)|0)>>>0<(f|=0)>>>0?i:f)},function(A,e,r,i,f){return r|=0,ar[(f|=0)>>2]=r,3},function(A,e,r,i,f){return 0|function(A,e,r,i,f){r|=0,i|=0;var n,t,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0;2<((n=e|=0)-(t=A|=0)|0)&0!=(4&(f|=0)|0)&&-17==(0|tr[A>>0])&&-69==(0|tr[A+1>>0])?A=-65==((d=0)|tr[A+2>>0])?A+3|0:A:d=0;A:for(;;){if(!(d>>>0<r>>>0&A>>>0<e>>>0)){0;break}if(l=0|tr[A>>0],i>>>0<(b=255&l)>>>0){0;break}a=A+1|0;do{if(l<<24>>24<=-1){if((255&l)<194){0;break A}if(c=A+2|0,f=n-(u=A)|0,(255&l)<224){if((0|f)<2){0;break A}if(128!=(192&(f=0|cr[a>>0])|0)){0;break A}if(i>>>0<(63&f|b<<6&1984)>>>0){0;break A}f=d,A=c;break}if(s=A+3|0,(255&l)<240){if((0|f)<3){0;break A}switch(o=0|tr[c>>0],a=0|cr[a>>0],f=224&a,l<<24>>24){case-32:if(160==(0|f))break;A=u;break A;case-19:if(128==(0|f))break;A=u;break A;default:if(128!=(192&a|0)){A=u;break A}}if(128!=(192&(f=255&o)|0)){0;break A}if(i>>>0<(a<<6&4032|b<<12&61440|63&f)>>>0){0;break A}f=d,A=s;break}if(245<=(255&l)){0;break A}if((r-d|0)>>>0<2|(0|f)<4){0;break A}switch(o=0|tr[a>>0],f=0|tr[c>>0],a=0|tr[s>>0],c=255&o,l<<24>>24){case-16:if(48<=(o+112&255)){A=u;break A}break;case-12:if(128==(240&c|0))break;A=u;break A;default:if(128!=(192&c|0)){A=u;break A}}if(128!=(192&(o=255&f)|0)){0;break A}if(128!=(192&(f=255&a)|0)){0;break A}if(i>>>0<(c<<12&258048|b<<18&1835008|o<<6&4032|63&f)>>>0){0;break A}f=d+1|0,A=A+4|0}else f=d,A=a}while(0);d=f+1|0}return A-t|0}(r|=0,i|=0,f|=0,1114111,0)},Mu,Mu,Mu,Mu,Mu,Mu,Mu,Mu,Mu,Mu,Mu],cs=[Su,function(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n=+n;var t,o,a,c,l,u,s,b,d,k,h,w,v,g,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0;for(C=ur=(g=ur)+31&-32,ur=ur+384|0,c=C+8|0,A=(p=C)+284|0,y=C+72|0,m=C+184|0,v=C+68|0,l=C+180|0,u=C+177|0,s=C+176|0,k=C+56|0,h=C+44|0,w=C+32|0,o=C+28|0,a=C+76|0,b=C+24|0,d=C+16|0,C=C+20|0,ar[y>>2]=A,J[c>>3]=n,99<(A=0|la(A,100,48494,c))>>>0?(A=0|hf(),J[p>>3]=n,A=0|Sf(y,A,48494,p),(m=0|ar[y>>2])||_l(),(p=0|qo(A))?(B=A,G=W=p,V=m):_l()):(W=m,B=A,V=G=0),Di(v,i),t=0|bf(v,52536),Z=0|ar[y>>2],ts[15&ar[32+(0|ar[t>>2])>>2]](t,Z,Z+B|0,W),Z=B?45==(0|tr[ar[y>>2]>>0]):0,ar[k>>2]=0,ar[4+k>>2]=0,A=ar[8+k>>2]=0;3!=(0|A);)A=A+1|(ar[k+(A<<2)>>2]=0);for(ar[h>>2]=0,ar[4+h>>2]=0,A=ar[8+h>>2]=0;3!=(0|A);)A=A+1|(ar[h+(A<<2)>>2]=0);for(ar[w>>2]=0,ar[4+w>>2]=0,A=ar[8+w>>2]=0;3!=(0|A);)A=A+1|(ar[w+(A<<2)>>2]=0);return Ge(r,Z,v,l,u,s,k,h,w,o),100<(A=(p=(0|(y=0|ar[o>>2]))<(0|B)?(m=0|tr[11+w>>0],p=0|tr[11+h>>0],A=1,m=(m<<24>>24<0?0|ar[4+w>>2]:255&m)+(B-y<<1)|0,p<<24>>24<0?0|ar[4+h>>2]:255&p):(p=0|tr[11+w>>0],A=2,m=(m=0|tr[11+h>>0])<<24>>24<0?0|ar[4+h>>2]:255&m,p<<24>>24<0?0|ar[4+w>>2]:255&p))+y+m+A|0)>>>0?(A=0|qo(A))?E=I=A:_l():(I=a,E=0),Ve(I,b,d,0|ar[i+4>>2],W,W+B|0,t,Z,l,0|tr[u>>0],0|tr[s>>0],k,h,w,y),ar[C>>2]=ar[e>>2],e=0|ar[b>>2],A=0|ar[d>>2],ar[c>>2]=ar[C>>2],A=0|zf(c,I,e,A,i,f),0|E&&$o(E),Yl(w),Yl(h),Yl(k),df(v),0|G&&$o(G),0|V&&$o(V),ur=g,0|A},function(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n=+n;var t,o,a,c,l,u,s,b,d,k,h,w,v,g,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0;for(C=ur=(g=ur)+31&-32,ur=ur+1008|0,c=C+8|0,A=(p=C)+896|0,y=C+888|0,m=C+488|0,v=C+480|0,l=C+892|0,u=C+476|0,s=C+472|0,k=C+460|0,h=C+448|0,w=C+436|0,o=C+432|0,a=C+32|0,b=C+24|0,d=C+16|0,C=C+20|0,ar[y>>2]=A,J[c>>3]=n,99<(A=0|la(A,100,48494,c))>>>0?(A=0|hf(),J[p>>3]=n,A=0|Sf(y,A,48494,p),(m=0|ar[y>>2])||_l(),(p=0|qo(A<<2))?(B=A,G=W=p,V=m):_l()):(W=m,B=A,V=G=0),Di(v,i),t=0|bf(v,52568),Z=0|ar[y>>2],ts[15&ar[48+(0|ar[t>>2])>>2]](t,Z,Z+B|0,W),Z=B?45==(0|tr[ar[y>>2]>>0]):0,ar[k>>2]=0,ar[4+k>>2]=0,A=ar[8+k>>2]=0;3!=(0|A);)A=A+1|(ar[k+(A<<2)>>2]=0);for(ar[h>>2]=0,ar[4+h>>2]=0,A=ar[8+h>>2]=0;3!=(0|A);)A=A+1|(ar[h+(A<<2)>>2]=0);for(ar[w>>2]=0,ar[4+w>>2]=0,A=ar[8+w>>2]=0;3!=(0|A);)A=A+1|(ar[w+(A<<2)>>2]=0);return Xe(r,Z,v,l,u,s,k,h,w,o),100<(A=(p=(0|(y=0|ar[o>>2]))<(0|B)?(m=0|tr[8+w+3>>0],p=0|tr[8+h+3>>0],A=1,m=(m<<24>>24<0?0|ar[4+w>>2]:255&m)+(B-y<<1)|0,p<<24>>24<0?0|ar[4+h>>2]:255&p):(p=0|tr[8+w+3>>0],A=2,m=(m=0|tr[8+h+3>>0])<<24>>24<0?0|ar[4+h>>2]:255&m,p<<24>>24<0?0|ar[4+w>>2]:255&p))+y+m+A|0)>>>0?(A=0|qo(A<<2))?E=I=A:_l():(I=a,E=0),_e(I,b,d,0|ar[i+4>>2],W,W+(B<<2)|0,t,Z,l,0|ar[u>>2],0|ar[s>>2],k,h,w,y),ar[C>>2]=ar[e>>2],e=0|ar[b>>2],A=0|ar[d>>2],ar[c>>2]=ar[C>>2],A=0|FA(c,I,e,A,i,f),0|E&&$o(E),Pl(w),Pl(h),Yl(k),df(v),0|G&&$o(G),0|V&&$o(V),ur=g,0|A},Su],ls=[Uu,function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c=0,l=0,u=0,s=0;if(u=ur=(a=ur)+31&-32,ur=ur+48|0,c=u+40|0,s=u+16|0,t=u+8|0,o=u+12|0,l=u+4|0,1&ar[(i|=0)+4>>2])for(Di(c,i),l=0|bf(c,52536),df(c),Di(c,i),A=0|bf(c,52552),df(c),ks[63&ar[24+(0|ar[A>>2])>>2]](s,A),ks[63&ar[28+(0|ar[A>>2])>>2]](s+12|0,A),ar[u>>2]=ar[r>>2],A=s+24|0,ar[c>>2]=ar[u>>2],c=(0|Ff(e,c,s,A,l,f,1))==(0|s)&1,tr[n>>0]=c,c=0|ar[e>>2];Yl(A=A+-12|0),(0|A)!=(0|s););else{switch(ar[t>>2]=-1,u=0|ar[16+(0|ar[A>>2])>>2],ar[o>>2]=ar[e>>2],ar[l>>2]=ar[r>>2],ar[s>>2]=ar[o>>2],ar[c>>2]=ar[l>>2],s=0|ls[63&u](A,s,c,i,f,t),ar[e>>2]=s,0|ar[t>>2]){case 0:tr[n>>0]=0;break;case 1:tr[n>>0]=1;break;default:tr[n>>0]=1,ar[f>>2]=4}c=0|ar[e>>2]}return ur=a,0|c},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0;Z=ur=(h=ur)+31&-32,ur=ur+224|0,c=Z+198|0,y=Z+196|0,d=Z+184|0,k=Z+172|0,l=Z+168|0,u=Z+8|0,s=Z+4|0,b=0|Wf(i|=0),If(d,i,c,y),ar[k>>2]=0,ar[4+k>>2]=0,ar[8+k>>2]=0,A=0;for(;3!=(0|A);)ar[k+(A<<2)>>2]=0,A=A+1|0;a=8+k|0,A=(0|tr[(o=11+k|0)>>0])<0?(2147483647&ar[a>>2])-1|0:10;Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A,ar[s>>2]=u,ar[Z>>2]=0,t=4+k|0,v=0|ar[e>>2],w=v;A:for(;;){g=w?0|Ji(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|bi(0|tr[i>>0]),-1)?(ar[e>>2]=0,v=p=0,1):(p=w,0):(v=p=0,1),w=0|ar[r>>2];do{if(w){if(0|Ji(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|bi(0|tr[i>>0]),-1)){ar[r>>2]=0,W=19;break}if(g)break;break A}W=19}while(0);if(19==(0|W)){if(W=0,g){w=0;break}w=0}if(i=(i=0|tr[o>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[l>>2])==(A+i|0)&&(Ul(k,i<<1,0),A=(0|tr[o>>0])<0?(2147483647&ar[a>>2])-1|0:10,Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A+i),0|kf(255&(i=(0|(i=0|ar[(g=p+12|0)>>2]))==(0|ar[(m=p+16|0)>>2])?0|is[127&ar[36+(0|ar[p>>2])>>2]](p):0|bi(0|tr[i>>0])),b,A,l,Z,0|tr[y>>0],d,u,s,c))break;(0|(i=0|ar[g>>2]))!=(0|ar[m>>2])?(ar[g>>2]=i+1,bi(0|tr[i>>0]),w=p):(is[127&ar[40+(0|ar[p>>2])>>2]](p),w=p)}0|((y=0|tr[11+d>>0])<<24>>24<0?0|ar[4+d>>2]:255&y)&&((C=0|ar[s>>2])-u|0)<160&&(Z=0|ar[Z>>2],ar[s>>2]=C+4,ar[C>>2]=Z);C=0|_f(A,0|ar[l>>2],f,b),ar[n>>2]=C,yf(d,u,0|ar[s>>2],f),i=p?(A=(0|(A=0|ar[p+12>>2]))==(0|ar[p+16>>2])?0|is[127&ar[36+(0|ar[v>>2])>>2]](p):0|bi(0|tr[A>>0]),0|Ji(A,-1)?(ar[e>>2]=0,1):0):1;do{if(w){if(0|Ji(A=(0|(A=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|bi(0|tr[A>>0]),-1)){ar[r>>2]=0,W=47;break}if(i)break;W=49;break}W=47}while(0);47==(0|W)&&i&&(W=49);49==(0|W)&&(ar[f>>2]=2|ar[f>>2]);return W=0|ar[e>>2],Yl(k),Yl(d),ur=h,0|W}(A,a,o,i,f,n),ur=t,0|n},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0;Z=ur=(h=ur)+31&-32,ur=ur+224|0,c=Z+198|0,y=Z+196|0,d=Z+184|0,k=Z+172|0,l=Z+168|0,u=Z+8|0,s=Z+4|0,b=0|Wf(i|=0),If(d,i,c,y),ar[k>>2]=0,ar[4+k>>2]=0,ar[8+k>>2]=0,A=0;for(;3!=(0|A);)ar[k+(A<<2)>>2]=0,A=A+1|0;a=8+k|0,A=(0|tr[(o=11+k|0)>>0])<0?(2147483647&ar[a>>2])-1|0:10;Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A,ar[s>>2]=u,ar[Z>>2]=0,t=4+k|0,v=0|ar[e>>2],w=v;A:for(;;){g=w?0|Ji(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|bi(0|tr[i>>0]),-1)?(ar[e>>2]=0,v=p=0,1):(p=w,0):(v=p=0,1),w=0|ar[r>>2];do{if(w){if(0|Ji(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|bi(0|tr[i>>0]),-1)){ar[r>>2]=0,W=19;break}if(g)break;break A}W=19}while(0);if(19==(0|W)){if(W=0,g){w=0;break}w=0}if(i=(i=0|tr[o>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[l>>2])==(A+i|0)&&(Ul(k,i<<1,0),A=(0|tr[o>>0])<0?(2147483647&ar[a>>2])-1|0:10,Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A+i),0|kf(255&(i=(0|(i=0|ar[(g=p+12|0)>>2]))==(0|ar[(m=p+16|0)>>2])?0|is[127&ar[36+(0|ar[p>>2])>>2]](p):0|bi(0|tr[i>>0])),b,A,l,Z,0|tr[y>>0],d,u,s,c))break;(0|(i=0|ar[g>>2]))!=(0|ar[m>>2])?(ar[g>>2]=i+1,bi(0|tr[i>>0]),w=p):(is[127&ar[40+(0|ar[p>>2])>>2]](p),w=p)}0|((y=0|tr[11+d>>0])<<24>>24<0?0|ar[4+d>>2]:255&y)&&((C=0|ar[s>>2])-u|0)<160&&(Z=0|ar[Z>>2],ar[s>>2]=C+4,ar[C>>2]=Z);C=0|Xf(A,0|ar[l>>2],f,b),ar[n>>2]=C,ar[n+4>>2]=D,yf(d,u,0|ar[s>>2],f),i=p?(A=(0|(A=0|ar[p+12>>2]))==(0|ar[p+16>>2])?0|is[127&ar[36+(0|ar[v>>2])>>2]](p):0|bi(0|tr[A>>0]),0|Ji(A,-1)?(ar[e>>2]=0,1):0):1;do{if(w){if(0|Ji(A=(0|(A=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|bi(0|tr[A>>0]),-1)){ar[r>>2]=0,W=47;break}if(i)break;W=49;break}W=47}while(0);47==(0|W)&&i&&(W=49);49==(0|W)&&(ar[f>>2]=2|ar[f>>2]);return W=0|ar[e>>2],Yl(k),Yl(d),ur=h,0|W}(A,a,o,i,f,n),ur=t,0|n},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0;Z=ur=(h=ur)+31&-32,ur=ur+224|0,c=Z+198|0,y=Z+196|0,d=Z+184|0,k=Z+172|0,l=Z+168|0,u=Z+8|0,s=Z+4|0,b=0|Wf(i|=0),If(d,i,c,y),ar[k>>2]=0,ar[4+k>>2]=0,ar[8+k>>2]=0,A=0;for(;3!=(0|A);)ar[k+(A<<2)>>2]=0,A=A+1|0;a=8+k|0,A=(0|tr[(o=11+k|0)>>0])<0?(2147483647&ar[a>>2])-1|0:10;Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A,ar[s>>2]=u,ar[Z>>2]=0,t=4+k|0,v=0|ar[e>>2],w=v;A:for(;;){g=w?0|Ji(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|bi(0|tr[i>>0]),-1)?(ar[e>>2]=0,v=p=0,1):(p=w,0):(v=p=0,1),w=0|ar[r>>2];do{if(w){if(0|Ji(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|bi(0|tr[i>>0]),-1)){ar[r>>2]=0,W=19;break}if(g)break;break A}W=19}while(0);if(19==(0|W)){if(W=0,g){w=0;break}w=0}if(i=(i=0|tr[o>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[l>>2])==(A+i|0)&&(Ul(k,i<<1,0),A=(0|tr[o>>0])<0?(2147483647&ar[a>>2])-1|0:10,Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A+i),0|kf(255&(i=(0|(i=0|ar[(g=p+12|0)>>2]))==(0|ar[(m=p+16|0)>>2])?0|is[127&ar[36+(0|ar[p>>2])>>2]](p):0|bi(0|tr[i>>0])),b,A,l,Z,0|tr[y>>0],d,u,s,c))break;(0|(i=0|ar[g>>2]))!=(0|ar[m>>2])?(ar[g>>2]=i+1,bi(0|tr[i>>0]),w=p):(is[127&ar[40+(0|ar[p>>2])>>2]](p),w=p)}0|((y=0|tr[11+d>>0])<<24>>24<0?0|ar[4+d>>2]:255&y)&&((C=0|ar[s>>2])-u|0)<160&&(Z=0|ar[Z>>2],ar[s>>2]=C+4,ar[C>>2]=Z);C=0|Vf(A,0|ar[l>>2],f,b),or[n>>1]=C,yf(d,u,0|ar[s>>2],f),i=p?(A=(0|(A=0|ar[p+12>>2]))==(0|ar[p+16>>2])?0|is[127&ar[36+(0|ar[v>>2])>>2]](p):0|bi(0|tr[A>>0]),0|Ji(A,-1)?(ar[e>>2]=0,1):0):1;do{if(w){if(0|Ji(A=(0|(A=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|bi(0|tr[A>>0]),-1)){ar[r>>2]=0,W=47;break}if(i)break;W=49;break}W=47}while(0);47==(0|W)&&i&&(W=49);49==(0|W)&&(ar[f>>2]=2|ar[f>>2]);return W=0|ar[e>>2],Yl(k),Yl(d),ur=h,0|W}(A,a,o,i,f,n),ur=t,0|n},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0;Z=ur=(h=ur)+31&-32,ur=ur+224|0,c=Z+198|0,y=Z+196|0,d=Z+184|0,k=Z+172|0,l=Z+168|0,u=Z+8|0,s=Z+4|0,b=0|Wf(i|=0),If(d,i,c,y),ar[k>>2]=0,ar[4+k>>2]=0,ar[8+k>>2]=0,A=0;for(;3!=(0|A);)ar[k+(A<<2)>>2]=0,A=A+1|0;a=8+k|0,A=(0|tr[(o=11+k|0)>>0])<0?(2147483647&ar[a>>2])-1|0:10;Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A,ar[s>>2]=u,ar[Z>>2]=0,t=4+k|0,v=0|ar[e>>2],w=v;A:for(;;){g=w?0|Ji(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|bi(0|tr[i>>0]),-1)?(ar[e>>2]=0,v=p=0,1):(p=w,0):(v=p=0,1),w=0|ar[r>>2];do{if(w){if(0|Ji(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|bi(0|tr[i>>0]),-1)){ar[r>>2]=0,W=19;break}if(g)break;break A}W=19}while(0);if(19==(0|W)){if(W=0,g){w=0;break}w=0}if(i=(i=0|tr[o>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[l>>2])==(A+i|0)&&(Ul(k,i<<1,0),A=(0|tr[o>>0])<0?(2147483647&ar[a>>2])-1|0:10,Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A+i),0|kf(255&(i=(0|(i=0|ar[(g=p+12|0)>>2]))==(0|ar[(m=p+16|0)>>2])?0|is[127&ar[36+(0|ar[p>>2])>>2]](p):0|bi(0|tr[i>>0])),b,A,l,Z,0|tr[y>>0],d,u,s,c))break;(0|(i=0|ar[g>>2]))!=(0|ar[m>>2])?(ar[g>>2]=i+1,bi(0|tr[i>>0]),w=p):(is[127&ar[40+(0|ar[p>>2])>>2]](p),w=p)}0|((y=0|tr[11+d>>0])<<24>>24<0?0|ar[4+d>>2]:255&y)&&((C=0|ar[s>>2])-u|0)<160&&(Z=0|ar[Z>>2],ar[s>>2]=C+4,ar[C>>2]=Z);C=0|Gf(A,0|ar[l>>2],f,b),ar[n>>2]=C,yf(d,u,0|ar[s>>2],f),i=p?(A=(0|(A=0|ar[p+12>>2]))==(0|ar[p+16>>2])?0|is[127&ar[36+(0|ar[v>>2])>>2]](p):0|bi(0|tr[A>>0]),0|Ji(A,-1)?(ar[e>>2]=0,1):0):1;do{if(w){if(0|Ji(A=(0|(A=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|bi(0|tr[A>>0]),-1)){ar[r>>2]=0,W=47;break}if(i)break;W=49;break}W=47}while(0);47==(0|W)&&i&&(W=49);49==(0|W)&&(ar[f>>2]=2|ar[f>>2]);return W=0|ar[e>>2],Yl(k),Yl(d),ur=h,0|W}(A,a,o,i,f,n),ur=t,0|n},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0;Z=ur=(h=ur)+31&-32,ur=ur+224|0,c=Z+198|0,y=Z+196|0,d=Z+184|0,k=Z+172|0,l=Z+168|0,u=Z+8|0,s=Z+4|0,b=0|Wf(i|=0),If(d,i,c,y),ar[k>>2]=0,ar[4+k>>2]=0,ar[8+k>>2]=0,A=0;for(;3!=(0|A);)ar[k+(A<<2)>>2]=0,A=A+1|0;a=8+k|0,A=(0|tr[(o=11+k|0)>>0])<0?(2147483647&ar[a>>2])-1|0:10;Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A,ar[s>>2]=u,ar[Z>>2]=0,t=4+k|0,v=0|ar[e>>2],w=v;A:for(;;){g=w?0|Ji(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|bi(0|tr[i>>0]),-1)?(ar[e>>2]=0,v=p=0,1):(p=w,0):(v=p=0,1),w=0|ar[r>>2];do{if(w){if(0|Ji(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|bi(0|tr[i>>0]),-1)){ar[r>>2]=0,W=19;break}if(g)break;break A}W=19}while(0);if(19==(0|W)){if(W=0,g){w=0;break}w=0}if(i=(i=0|tr[o>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[l>>2])==(A+i|0)&&(Ul(k,i<<1,0),A=(0|tr[o>>0])<0?(2147483647&ar[a>>2])-1|0:10,Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A+i),0|kf(255&(i=(0|(i=0|ar[(g=p+12|0)>>2]))==(0|ar[(m=p+16|0)>>2])?0|is[127&ar[36+(0|ar[p>>2])>>2]](p):0|bi(0|tr[i>>0])),b,A,l,Z,0|tr[y>>0],d,u,s,c))break;(0|(i=0|ar[g>>2]))!=(0|ar[m>>2])?(ar[g>>2]=i+1,bi(0|tr[i>>0]),w=p):(is[127&ar[40+(0|ar[p>>2])>>2]](p),w=p)}0|((y=0|tr[11+d>>0])<<24>>24<0?0|ar[4+d>>2]:255&y)&&((C=0|ar[s>>2])-u|0)<160&&(Z=0|ar[Z>>2],ar[s>>2]=C+4,ar[C>>2]=Z);C=0|Ef(A,0|ar[l>>2],f,b),ar[n>>2]=C,yf(d,u,0|ar[s>>2],f),i=p?(A=(0|(A=0|ar[p+12>>2]))==(0|ar[p+16>>2])?0|is[127&ar[36+(0|ar[v>>2])>>2]](p):0|bi(0|tr[A>>0]),0|Ji(A,-1)?(ar[e>>2]=0,1):0):1;do{if(w){if(0|Ji(A=(0|(A=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|bi(0|tr[A>>0]),-1)){ar[r>>2]=0,W=47;break}if(i)break;W=49;break}W=47}while(0);47==(0|W)&&i&&(W=49);49==(0|W)&&(ar[f>>2]=2|ar[f>>2]);return W=0|ar[e>>2],Yl(k),Yl(d),ur=h,0|W}(A,a,o,i,f,n),ur=t,0|n},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0;Z=ur=(h=ur)+31&-32,ur=ur+224|0,c=Z+198|0,y=Z+196|0,d=Z+184|0,k=Z+172|0,l=Z+168|0,u=Z+8|0,s=Z+4|0,b=0|Wf(i|=0),If(d,i,c,y),ar[k>>2]=0,ar[4+k>>2]=0,ar[8+k>>2]=0,A=0;for(;3!=(0|A);)ar[k+(A<<2)>>2]=0,A=A+1|0;a=8+k|0,A=(0|tr[(o=11+k|0)>>0])<0?(2147483647&ar[a>>2])-1|0:10;Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A,ar[s>>2]=u,ar[Z>>2]=0,t=4+k|0,v=0|ar[e>>2],w=v;A:for(;;){g=w?0|Ji(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|bi(0|tr[i>>0]),-1)?(ar[e>>2]=0,v=p=0,1):(p=w,0):(v=p=0,1),w=0|ar[r>>2];do{if(w){if(0|Ji(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|bi(0|tr[i>>0]),-1)){ar[r>>2]=0,W=19;break}if(g)break;break A}W=19}while(0);if(19==(0|W)){if(W=0,g){w=0;break}w=0}if(i=(i=0|tr[o>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[l>>2])==(A+i|0)&&(Ul(k,i<<1,0),A=(0|tr[o>>0])<0?(2147483647&ar[a>>2])-1|0:10,Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A+i),0|kf(255&(i=(0|(i=0|ar[(g=p+12|0)>>2]))==(0|ar[(m=p+16|0)>>2])?0|is[127&ar[36+(0|ar[p>>2])>>2]](p):0|bi(0|tr[i>>0])),b,A,l,Z,0|tr[y>>0],d,u,s,c))break;(0|(i=0|ar[g>>2]))!=(0|ar[m>>2])?(ar[g>>2]=i+1,bi(0|tr[i>>0]),w=p):(is[127&ar[40+(0|ar[p>>2])>>2]](p),w=p)}0|((y=0|tr[11+d>>0])<<24>>24<0?0|ar[4+d>>2]:255&y)&&((C=0|ar[s>>2])-u|0)<160&&(Z=0|ar[Z>>2],ar[s>>2]=C+4,ar[C>>2]=Z);C=0|Bf(A,0|ar[l>>2],f,b),ar[n>>2]=C,ar[n+4>>2]=D,yf(d,u,0|ar[s>>2],f),i=p?(A=(0|(A=0|ar[p+12>>2]))==(0|ar[p+16>>2])?0|is[127&ar[36+(0|ar[v>>2])>>2]](p):0|bi(0|tr[A>>0]),0|Ji(A,-1)?(ar[e>>2]=0,1):0):1;do{if(w){if(0|Ji(A=(0|(A=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|bi(0|tr[A>>0]),-1)){ar[r>>2]=0,W=47;break}if(i)break;W=49;break}W=47}while(0);47==(0|W)&&i&&(W=49);49==(0|W)&&(ar[f>>2]=2|ar[f>>2]);return W=0|ar[e>>2],Yl(k),Yl(d),ur=h,0|W}(A,a,o,i,f,n),ur=t,0|n},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w,v,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0;C=ur=(w=ur)+31&-32,ur=ur+240|0,c=C+200|0,l=C+199|0,W=C+198|0,h=C+184|0,k=C+172|0,u=C+168|0,s=C+8|0,b=C+4|0,I=(d=C)+197|0,C=C+196|0,gf(h,i|=0,c,l,W),ar[k>>2]=0,ar[4+k>>2]=0,ar[8+k>>2]=0,A=0;for(;3!=(0|A);)ar[k+(A<<2)>>2]=0,A=A+1|0;a=8+k|0,A=(0|tr[(o=11+k|0)>>0])<0?(2147483647&ar[a>>2])-1|0:10;Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[u>>2]=A,ar[b>>2]=s,ar[d>>2]=0,tr[I>>0]=1,tr[C>>0]=69,t=4+k|0,m=0|ar[e>>2],g=m;A:for(;;){p=g?0|Ji(i=(0|(i=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|bi(0|tr[i>>0]),-1)?(ar[e>>2]=0,m=Z=0,1):(Z=g,0):(m=Z=0,1),g=0|ar[r>>2];do{if(g){if(0|Ji(i=(0|(i=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|bi(0|tr[i>>0]),-1)){ar[r>>2]=0,E=19;break}if(p)break;break A}E=19}while(0);if(19==(0|E)){if(E=0,p){g=0;break}g=0}if(i=(i=0|tr[o>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[u>>2])==(A+i|0)&&(Ul(k,i<<1,0),A=(0|tr[o>>0])<0?(2147483647&ar[a>>2])-1|0:10,Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[u>>2]=A+i),0|mf(255&(i=(0|(i=0|ar[(p=Z+12|0)>>2]))==(0|ar[(y=Z+16|0)>>2])?0|is[127&ar[36+(0|ar[Z>>2])>>2]](Z):0|bi(0|tr[i>>0])),I,C,A,u,0|tr[l>>0],0|tr[W>>0],h,s,b,d,c))break;(0|(i=0|ar[p>>2]))!=(0|ar[y>>2])?(ar[p>>2]=i+1,bi(0|tr[i>>0]),g=Z):(is[127&ar[40+(0|ar[Z>>2])>>2]](Z),g=Z)}W=0|tr[11+h>>0],0!=(0|tr[I>>0])&&0!=(0|(W<<24>>24<0?0|ar[4+h>>2]:255&W))&&((B=0|ar[b>>2])-s|0)<160&&(I=0|ar[d>>2],ar[b>>2]=B+4,ar[B>>2]=I);v=+Cf(A,0|ar[u>>2],f),Y[n>>2]=v,yf(h,s,0|ar[b>>2],f),i=Z?(A=(0|(A=0|ar[Z+12>>2]))==(0|ar[Z+16>>2])?0|is[127&ar[36+(0|ar[m>>2])>>2]](Z):0|bi(0|tr[A>>0]),0|Ji(A,-1)?(ar[e>>2]=0,1):0):1;do{if(g){if(0|Ji(A=(0|(A=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|bi(0|tr[A>>0]),-1)){ar[r>>2]=0,E=47;break}if(i)break;E=49;break}E=47}while(0);47==(0|E)&&i&&(E=49);49==(0|E)&&(ar[f>>2]=2|ar[f>>2]);return E=0|ar[e>>2],Yl(k),Yl(h),ur=w,0|E}(A,a,o,i,f,n),ur=t,0|n},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w,v,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0;C=ur=(w=ur)+31&-32,ur=ur+240|0,c=C+200|0,l=C+199|0,W=C+198|0,h=C+184|0,k=C+172|0,u=C+168|0,s=C+8|0,b=C+4|0,I=(d=C)+197|0,C=C+196|0,gf(h,i|=0,c,l,W),ar[k>>2]=0,ar[4+k>>2]=0,ar[8+k>>2]=0,A=0;for(;3!=(0|A);)ar[k+(A<<2)>>2]=0,A=A+1|0;a=8+k|0,A=(0|tr[(o=11+k|0)>>0])<0?(2147483647&ar[a>>2])-1|0:10;Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[u>>2]=A,ar[b>>2]=s,ar[d>>2]=0,tr[I>>0]=1,tr[C>>0]=69,t=4+k|0,m=0|ar[e>>2],g=m;A:for(;;){p=g?0|Ji(i=(0|(i=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|bi(0|tr[i>>0]),-1)?(ar[e>>2]=0,m=Z=0,1):(Z=g,0):(m=Z=0,1),g=0|ar[r>>2];do{if(g){if(0|Ji(i=(0|(i=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|bi(0|tr[i>>0]),-1)){ar[r>>2]=0,E=19;break}if(p)break;break A}E=19}while(0);if(19==(0|E)){if(E=0,p){g=0;break}g=0}if(i=(i=0|tr[o>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[u>>2])==(A+i|0)&&(Ul(k,i<<1,0),A=(0|tr[o>>0])<0?(2147483647&ar[a>>2])-1|0:10,Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[u>>2]=A+i),0|mf(255&(i=(0|(i=0|ar[(p=Z+12|0)>>2]))==(0|ar[(y=Z+16|0)>>2])?0|is[127&ar[36+(0|ar[Z>>2])>>2]](Z):0|bi(0|tr[i>>0])),I,C,A,u,0|tr[l>>0],0|tr[W>>0],h,s,b,d,c))break;(0|(i=0|ar[p>>2]))!=(0|ar[y>>2])?(ar[p>>2]=i+1,bi(0|tr[i>>0]),g=Z):(is[127&ar[40+(0|ar[Z>>2])>>2]](Z),g=Z)}W=0|tr[11+h>>0],0!=(0|tr[I>>0])&&0!=(0|(W<<24>>24<0?0|ar[4+h>>2]:255&W))&&((B=0|ar[b>>2])-s|0)<160&&(I=0|ar[d>>2],ar[b>>2]=B+4,ar[B>>2]=I);v=+Zf(A,0|ar[u>>2],f),J[n>>3]=v,yf(h,s,0|ar[b>>2],f),i=Z?(A=(0|(A=0|ar[Z+12>>2]))==(0|ar[Z+16>>2])?0|is[127&ar[36+(0|ar[m>>2])>>2]](Z):0|bi(0|tr[A>>0]),0|Ji(A,-1)?(ar[e>>2]=0,1):0):1;do{if(g){if(0|Ji(A=(0|(A=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|bi(0|tr[A>>0]),-1)){ar[r>>2]=0,E=47;break}if(i)break;E=49;break}E=47}while(0);47==(0|E)&&i&&(E=49);49==(0|E)&&(ar[f>>2]=2|ar[f>>2]);return E=0|ar[e>>2],Yl(k),Yl(h),ur=w,0|E}(A,a,o,i,f,n),ur=t,0|n},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w,v,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0;C=ur=(w=ur)+31&-32,ur=ur+240|0,c=C+200|0,l=C+199|0,W=C+198|0,h=C+184|0,k=C+172|0,u=C+168|0,s=C+8|0,b=C+4|0,I=(d=C)+197|0,C=C+196|0,gf(h,i|=0,c,l,W),ar[k>>2]=0,ar[4+k>>2]=0,ar[8+k>>2]=0,A=0;for(;3!=(0|A);)ar[k+(A<<2)>>2]=0,A=A+1|0;a=8+k|0,A=(0|tr[(o=11+k|0)>>0])<0?(2147483647&ar[a>>2])-1|0:10;Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[u>>2]=A,ar[b>>2]=s,ar[d>>2]=0,tr[I>>0]=1,tr[C>>0]=69,t=4+k|0,m=0|ar[e>>2],g=m;A:for(;;){p=g?0|Ji(i=(0|(i=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|bi(0|tr[i>>0]),-1)?(ar[e>>2]=0,m=Z=0,1):(Z=g,0):(m=Z=0,1),g=0|ar[r>>2];do{if(g){if(0|Ji(i=(0|(i=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|bi(0|tr[i>>0]),-1)){ar[r>>2]=0,E=19;break}if(p)break;break A}E=19}while(0);if(19==(0|E)){if(E=0,p){g=0;break}g=0}if(i=(i=0|tr[o>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[u>>2])==(A+i|0)&&(Ul(k,i<<1,0),A=(0|tr[o>>0])<0?(2147483647&ar[a>>2])-1|0:10,Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[u>>2]=A+i),0|mf(255&(i=(0|(i=0|ar[(p=Z+12|0)>>2]))==(0|ar[(y=Z+16|0)>>2])?0|is[127&ar[36+(0|ar[Z>>2])>>2]](Z):0|bi(0|tr[i>>0])),I,C,A,u,0|tr[l>>0],0|tr[W>>0],h,s,b,d,c))break;(0|(i=0|ar[p>>2]))!=(0|ar[y>>2])?(ar[p>>2]=i+1,bi(0|tr[i>>0]),g=Z):(is[127&ar[40+(0|ar[Z>>2])>>2]](Z),g=Z)}W=0|tr[11+h>>0],0!=(0|tr[I>>0])&&0!=(0|(W<<24>>24<0?0|ar[4+h>>2]:255&W))&&((B=0|ar[b>>2])-s|0)<160&&(I=0|ar[d>>2],ar[b>>2]=B+4,ar[B>>2]=I);v=+pf(A,0|ar[u>>2],f),J[n>>3]=v,yf(h,s,0|ar[b>>2],f),i=Z?(A=(0|(A=0|ar[Z+12>>2]))==(0|ar[Z+16>>2])?0|is[127&ar[36+(0|ar[m>>2])>>2]](Z):0|bi(0|tr[A>>0]),0|Ji(A,-1)?(ar[e>>2]=0,1):0):1;do{if(g){if(0|Ji(A=(0|(A=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|bi(0|tr[A>>0]),-1)){ar[r>>2]=0,E=47;break}if(i)break;E=49;break}E=47}while(0);47==(0|E)&&i&&(E=49);49==(0|E)&&(ar[f>>2]=2|ar[f>>2]);return E=0|ar[e>>2],Yl(k),Yl(h),ur=w,0|E}(A,a,o,i,f,n),ur=t,0|n},function(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0;for(m=ur=(d=ur)+31&-32,ur=ur+240|0,p=(u=m)+204|0,s=m+192|0,b=m+180|0,y=m+176|0,c=m+16|0,l=m+8|0,m=m+4|0,ar[s>>2]=0,ar[4+s>>2]=0,A=ar[8+s>>2]=0;3!=(0|A);)A=A+1|(ar[s+(A<<2)>>2]=0);for(Di(b,i),A=0|bf(b,52536),ts[15&ar[32+(0|ar[A>>2])>>2]](A,46974,47e3,p),df(b),ar[b>>2]=0,ar[4+b>>2]=0,A=ar[8+b>>2]=0;3!=(0|A);)A=A+1|(ar[b+(A<<2)>>2]=0);o=8+b|0,Ul(b,A=(0|tr[(a=11+b|0)>>0])<0?(2147483647&ar[o>>2])-1|0:10,0),A=(0|tr[a>>0])<0?0|ar[b>>2]:b,ar[y>>2]=A,ar[l>>2]=c,t=4+b|(ar[m>>2]=0),k=h=0|ar[e>>2];A:for(;;){w=k?0|Ji(i=(0|(i=0|ar[k+12>>2]))==(0|ar[k+16>>2])?0|is[127&ar[36+(0|ar[k>>2])>>2]](k):0|bi(0|tr[i>>0]),-1)?(h=g=ar[e>>2]=0,1):(g=k,0):(h=g=0,1),k=0|ar[r>>2];do{if(k){if(0|Ji(i=(0|(i=0|ar[k+12>>2]))==(0|ar[k+16>>2])?0|is[127&ar[36+(0|ar[k>>2])>>2]](k):0|bi(0|tr[i>>0]),-1)){ar[r>>2]=0,Z=22;break}if(w)break;break A}Z=22}while(0);if(22==(0|Z)){if(Z=0,w){k=0;break}k=0}if(i=(i=0|tr[a>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[y>>2])==(A+i|0)&&(Ul(b,i<<1,0),Ul(b,A=(0|tr[a>>0])<0?(2147483647&ar[o>>2])-1|0:10,0),A=(0|tr[a>>0])<0?0|ar[b>>2]:b,ar[y>>2]=A+i),0|kf(255&(i=(0|(i=0|ar[(w=g+12|0)>>2]))==(0|ar[(v=g+16|0)>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|bi(0|tr[i>>0])),16,A,y,m,0,s,c,l,p))break;(0|(i=0|ar[w>>2]))!=(0|ar[v>>2])?(ar[w>>2]=i+1,bi(0|tr[i>>0]),k=g):(is[127&ar[40+(0|ar[g>>2])>>2]](g),k=g)}Ul(b,(0|ar[y>>2])-A|0,0),p=(0|tr[a>>0])<0?0|ar[b>>2]:b,y=0|hf(),ar[u>>2]=n,1!=(0|wf(p,y,47007,u))&&(ar[f>>2]=4),i=g?0|Ji(A=(0|(A=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[h>>2])>>2]](g):0|bi(0|tr[A>>0]),-1)?(ar[e>>2]=0,1):0:1;do{if(k){if(0|Ji(A=(0|(A=0|ar[k+12>>2]))==(0|ar[k+16>>2])?0|is[127&ar[36+(0|ar[k>>2])>>2]](k):0|bi(0|tr[A>>0]),-1)){ar[r>>2]=0,Z=49;break}if(i)break;Z=51;break}Z=49}while(0);return 49==(0|Z)&&i&&(Z=51),51==(0|Z)&&(ar[f>>2]=2|ar[f>>2]),Z=0|ar[e>>2],Yl(b),Yl(s),ur=d,0|Z},function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c=0,l=0,u=0,s=0;if(u=ur=(a=ur)+31&-32,ur=ur+48|0,c=u+40|0,s=u+16|0,t=u+8|0,o=u+12|0,l=u+4|0,1&ar[(i|=0)+4>>2])for(Di(c,i),l=0|bf(c,52568),df(c),Di(c,i),A=0|bf(c,52576),df(c),ks[63&ar[24+(0|ar[A>>2])>>2]](s,A),ks[63&ar[28+(0|ar[A>>2])>>2]](s+12|0,A),ar[u>>2]=ar[r>>2],A=s+24|0,ar[c>>2]=ar[u>>2],c=(0|Df(e,c,s,A,l,f,1))==(0|s)&1,tr[n>>0]=c,c=0|ar[e>>2];Pl(A=A+-12|0),(0|A)!=(0|s););else{switch(ar[t>>2]=-1,u=0|ar[16+(0|ar[A>>2])>>2],ar[o>>2]=ar[e>>2],ar[l>>2]=ar[r>>2],ar[s>>2]=ar[o>>2],ar[c>>2]=ar[l>>2],s=0|ls[63&u](A,s,c,i,f,t),ar[e>>2]=s,0|ar[t>>2]){case 0:tr[n>>0]=0;break;case 1:tr[n>>0]=1;break;default:tr[n>>0]=1,ar[f>>2]=4}c=0|ar[e>>2]}return ur=a,0|c},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0;Z=ur=(h=ur)+31&-32,ur=ur+304|0,c=Z+200|0,y=Z+196|0,d=Z+184|0,k=Z+172|0,l=Z+168|0,u=Z+8|0,s=Z+4|0,b=0|Wf(i|=0),Jf(d,i,c,y),ar[k>>2]=0,ar[4+k>>2]=0,ar[8+k>>2]=0,A=0;for(;3!=(0|A);)ar[k+(A<<2)>>2]=0,A=A+1|0;a=8+k|0,A=(0|tr[(o=11+k|0)>>0])<0?(2147483647&ar[a>>2])-1|0:10;Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A,ar[s>>2]=u,ar[Z>>2]=0,t=4+k|0,v=0|ar[e>>2],w=v;A:for(;;){g=w?0|Qi(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[i>>2]),-1)?(ar[e>>2]=0,v=p=0,1):(p=w,0):(v=p=0,1),w=0|ar[r>>2];do{if(w){if(0|Qi(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[i>>2]),-1)){ar[r>>2]=0,W=19;break}if(g)break;break A}W=19}while(0);if(19==(0|W)){if(W=0,g){w=0;break}w=0}if(i=(i=0|tr[o>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[l>>2])==(A+i|0)&&(Ul(k,i<<1,0),A=(0|tr[o>>0])<0?(2147483647&ar[a>>2])-1|0:10,Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A+i),0|Nf(i=(0|(i=0|ar[(g=p+12|0)>>2]))==(0|ar[(m=p+16|0)>>2])?0|is[127&ar[36+(0|ar[p>>2])>>2]](p):0|wi(0|ar[i>>2]),b,A,l,Z,0|ar[y>>2],d,u,s,c))break;(0|(i=0|ar[g>>2]))!=(0|ar[m>>2])?(ar[g>>2]=i+4,wi(0|ar[i>>2]),w=p):(is[127&ar[40+(0|ar[p>>2])>>2]](p),w=p)}0|((y=0|tr[11+d>>0])<<24>>24<0?0|ar[4+d>>2]:255&y)&&((C=0|ar[s>>2])-u|0)<160&&(Z=0|ar[Z>>2],ar[s>>2]=C+4,ar[C>>2]=Z);C=0|_f(A,0|ar[l>>2],f,b),ar[n>>2]=C,yf(d,u,0|ar[s>>2],f),i=p?(A=(0|(A=0|ar[p+12>>2]))==(0|ar[p+16>>2])?0|is[127&ar[36+(0|ar[v>>2])>>2]](p):0|wi(0|ar[A>>2]),0|Qi(A,-1)?(ar[e>>2]=0,1):0):1;do{if(w){if(0|Qi(A=(0|(A=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[A>>2]),-1)){ar[r>>2]=0,W=47;break}if(i)break;W=49;break}W=47}while(0);47==(0|W)&&i&&(W=49);49==(0|W)&&(ar[f>>2]=2|ar[f>>2]);return W=0|ar[e>>2],Yl(k),Yl(d),ur=h,0|W}(A,a,o,i,f,n),ur=t,0|n},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0;Z=ur=(h=ur)+31&-32,ur=ur+304|0,c=Z+200|0,y=Z+196|0,d=Z+184|0,k=Z+172|0,l=Z+168|0,u=Z+8|0,s=Z+4|0,b=0|Wf(i|=0),Jf(d,i,c,y),ar[k>>2]=0,ar[4+k>>2]=0,ar[8+k>>2]=0,A=0;for(;3!=(0|A);)ar[k+(A<<2)>>2]=0,A=A+1|0;a=8+k|0,A=(0|tr[(o=11+k|0)>>0])<0?(2147483647&ar[a>>2])-1|0:10;Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A,ar[s>>2]=u,ar[Z>>2]=0,t=4+k|0,v=0|ar[e>>2],w=v;A:for(;;){g=w?0|Qi(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[i>>2]),-1)?(ar[e>>2]=0,v=p=0,1):(p=w,0):(v=p=0,1),w=0|ar[r>>2];do{if(w){if(0|Qi(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[i>>2]),-1)){ar[r>>2]=0,W=19;break}if(g)break;break A}W=19}while(0);if(19==(0|W)){if(W=0,g){w=0;break}w=0}if(i=(i=0|tr[o>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[l>>2])==(A+i|0)&&(Ul(k,i<<1,0),A=(0|tr[o>>0])<0?(2147483647&ar[a>>2])-1|0:10,Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A+i),0|Nf(i=(0|(i=0|ar[(g=p+12|0)>>2]))==(0|ar[(m=p+16|0)>>2])?0|is[127&ar[36+(0|ar[p>>2])>>2]](p):0|wi(0|ar[i>>2]),b,A,l,Z,0|ar[y>>2],d,u,s,c))break;(0|(i=0|ar[g>>2]))!=(0|ar[m>>2])?(ar[g>>2]=i+4,wi(0|ar[i>>2]),w=p):(is[127&ar[40+(0|ar[p>>2])>>2]](p),w=p)}0|((y=0|tr[11+d>>0])<<24>>24<0?0|ar[4+d>>2]:255&y)&&((C=0|ar[s>>2])-u|0)<160&&(Z=0|ar[Z>>2],ar[s>>2]=C+4,ar[C>>2]=Z);C=0|Xf(A,0|ar[l>>2],f,b),ar[n>>2]=C,ar[n+4>>2]=D,yf(d,u,0|ar[s>>2],f),i=p?(A=(0|(A=0|ar[p+12>>2]))==(0|ar[p+16>>2])?0|is[127&ar[36+(0|ar[v>>2])>>2]](p):0|wi(0|ar[A>>2]),0|Qi(A,-1)?(ar[e>>2]=0,1):0):1;do{if(w){if(0|Qi(A=(0|(A=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[A>>2]),-1)){ar[r>>2]=0,W=47;break}if(i)break;W=49;break}W=47}while(0);47==(0|W)&&i&&(W=49);49==(0|W)&&(ar[f>>2]=2|ar[f>>2]);return W=0|ar[e>>2],Yl(k),Yl(d),ur=h,0|W}(A,a,o,i,f,n),ur=t,0|n},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0;Z=ur=(h=ur)+31&-32,ur=ur+304|0,c=Z+200|0,y=Z+196|0,d=Z+184|0,k=Z+172|0,l=Z+168|0,u=Z+8|0,s=Z+4|0,b=0|Wf(i|=0),Jf(d,i,c,y),ar[k>>2]=0,ar[4+k>>2]=0,ar[8+k>>2]=0,A=0;for(;3!=(0|A);)ar[k+(A<<2)>>2]=0,A=A+1|0;a=8+k|0,A=(0|tr[(o=11+k|0)>>0])<0?(2147483647&ar[a>>2])-1|0:10;Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A,ar[s>>2]=u,ar[Z>>2]=0,t=4+k|0,v=0|ar[e>>2],w=v;A:for(;;){g=w?0|Qi(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[i>>2]),-1)?(ar[e>>2]=0,v=p=0,1):(p=w,0):(v=p=0,1),w=0|ar[r>>2];do{if(w){if(0|Qi(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[i>>2]),-1)){ar[r>>2]=0,W=19;break}if(g)break;break A}W=19}while(0);if(19==(0|W)){if(W=0,g){w=0;break}w=0}if(i=(i=0|tr[o>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[l>>2])==(A+i|0)&&(Ul(k,i<<1,0),A=(0|tr[o>>0])<0?(2147483647&ar[a>>2])-1|0:10,Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A+i),0|Nf(i=(0|(i=0|ar[(g=p+12|0)>>2]))==(0|ar[(m=p+16|0)>>2])?0|is[127&ar[36+(0|ar[p>>2])>>2]](p):0|wi(0|ar[i>>2]),b,A,l,Z,0|ar[y>>2],d,u,s,c))break;(0|(i=0|ar[g>>2]))!=(0|ar[m>>2])?(ar[g>>2]=i+4,wi(0|ar[i>>2]),w=p):(is[127&ar[40+(0|ar[p>>2])>>2]](p),w=p)}0|((y=0|tr[11+d>>0])<<24>>24<0?0|ar[4+d>>2]:255&y)&&((C=0|ar[s>>2])-u|0)<160&&(Z=0|ar[Z>>2],ar[s>>2]=C+4,ar[C>>2]=Z);C=0|Vf(A,0|ar[l>>2],f,b),or[n>>1]=C,yf(d,u,0|ar[s>>2],f),i=p?(A=(0|(A=0|ar[p+12>>2]))==(0|ar[p+16>>2])?0|is[127&ar[36+(0|ar[v>>2])>>2]](p):0|wi(0|ar[A>>2]),0|Qi(A,-1)?(ar[e>>2]=0,1):0):1;do{if(w){if(0|Qi(A=(0|(A=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[A>>2]),-1)){ar[r>>2]=0,W=47;break}if(i)break;W=49;break}W=47}while(0);47==(0|W)&&i&&(W=49);49==(0|W)&&(ar[f>>2]=2|ar[f>>2]);return W=0|ar[e>>2],Yl(k),Yl(d),ur=h,0|W}(A,a,o,i,f,n),ur=t,0|n},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0;Z=ur=(h=ur)+31&-32,ur=ur+304|0,c=Z+200|0,y=Z+196|0,d=Z+184|0,k=Z+172|0,l=Z+168|0,u=Z+8|0,s=Z+4|0,b=0|Wf(i|=0),Jf(d,i,c,y),ar[k>>2]=0,ar[4+k>>2]=0,ar[8+k>>2]=0,A=0;for(;3!=(0|A);)ar[k+(A<<2)>>2]=0,A=A+1|0;a=8+k|0,A=(0|tr[(o=11+k|0)>>0])<0?(2147483647&ar[a>>2])-1|0:10;Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A,ar[s>>2]=u,ar[Z>>2]=0,t=4+k|0,v=0|ar[e>>2],w=v;A:for(;;){g=w?0|Qi(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[i>>2]),-1)?(ar[e>>2]=0,v=p=0,1):(p=w,0):(v=p=0,1),w=0|ar[r>>2];do{if(w){if(0|Qi(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[i>>2]),-1)){ar[r>>2]=0,W=19;break}if(g)break;break A}W=19}while(0);if(19==(0|W)){if(W=0,g){w=0;break}w=0}if(i=(i=0|tr[o>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[l>>2])==(A+i|0)&&(Ul(k,i<<1,0),A=(0|tr[o>>0])<0?(2147483647&ar[a>>2])-1|0:10,Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A+i),0|Nf(i=(0|(i=0|ar[(g=p+12|0)>>2]))==(0|ar[(m=p+16|0)>>2])?0|is[127&ar[36+(0|ar[p>>2])>>2]](p):0|wi(0|ar[i>>2]),b,A,l,Z,0|ar[y>>2],d,u,s,c))break;(0|(i=0|ar[g>>2]))!=(0|ar[m>>2])?(ar[g>>2]=i+4,wi(0|ar[i>>2]),w=p):(is[127&ar[40+(0|ar[p>>2])>>2]](p),w=p)}0|((y=0|tr[11+d>>0])<<24>>24<0?0|ar[4+d>>2]:255&y)&&((C=0|ar[s>>2])-u|0)<160&&(Z=0|ar[Z>>2],ar[s>>2]=C+4,ar[C>>2]=Z);C=0|Gf(A,0|ar[l>>2],f,b),ar[n>>2]=C,yf(d,u,0|ar[s>>2],f),i=p?(A=(0|(A=0|ar[p+12>>2]))==(0|ar[p+16>>2])?0|is[127&ar[36+(0|ar[v>>2])>>2]](p):0|wi(0|ar[A>>2]),0|Qi(A,-1)?(ar[e>>2]=0,1):0):1;do{if(w){if(0|Qi(A=(0|(A=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[A>>2]),-1)){ar[r>>2]=0,W=47;break}if(i)break;W=49;break}W=47}while(0);47==(0|W)&&i&&(W=49);49==(0|W)&&(ar[f>>2]=2|ar[f>>2]);return W=0|ar[e>>2],Yl(k),Yl(d),ur=h,0|W}(A,a,o,i,f,n),ur=t,0|n},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0;Z=ur=(h=ur)+31&-32,ur=ur+304|0,c=Z+200|0,y=Z+196|0,d=Z+184|0,k=Z+172|0,l=Z+168|0,u=Z+8|0,s=Z+4|0,b=0|Wf(i|=0),Jf(d,i,c,y),ar[k>>2]=0,ar[4+k>>2]=0,ar[8+k>>2]=0,A=0;for(;3!=(0|A);)ar[k+(A<<2)>>2]=0,A=A+1|0;a=8+k|0,A=(0|tr[(o=11+k|0)>>0])<0?(2147483647&ar[a>>2])-1|0:10;Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A,ar[s>>2]=u,ar[Z>>2]=0,t=4+k|0,v=0|ar[e>>2],w=v;A:for(;;){g=w?0|Qi(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[i>>2]),-1)?(ar[e>>2]=0,v=p=0,1):(p=w,0):(v=p=0,1),w=0|ar[r>>2];do{if(w){if(0|Qi(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[i>>2]),-1)){ar[r>>2]=0,W=19;break}if(g)break;break A}W=19}while(0);if(19==(0|W)){if(W=0,g){w=0;break}w=0}if(i=(i=0|tr[o>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[l>>2])==(A+i|0)&&(Ul(k,i<<1,0),A=(0|tr[o>>0])<0?(2147483647&ar[a>>2])-1|0:10,Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A+i),0|Nf(i=(0|(i=0|ar[(g=p+12|0)>>2]))==(0|ar[(m=p+16|0)>>2])?0|is[127&ar[36+(0|ar[p>>2])>>2]](p):0|wi(0|ar[i>>2]),b,A,l,Z,0|ar[y>>2],d,u,s,c))break;(0|(i=0|ar[g>>2]))!=(0|ar[m>>2])?(ar[g>>2]=i+4,wi(0|ar[i>>2]),w=p):(is[127&ar[40+(0|ar[p>>2])>>2]](p),w=p)}0|((y=0|tr[11+d>>0])<<24>>24<0?0|ar[4+d>>2]:255&y)&&((C=0|ar[s>>2])-u|0)<160&&(Z=0|ar[Z>>2],ar[s>>2]=C+4,ar[C>>2]=Z);C=0|Ef(A,0|ar[l>>2],f,b),ar[n>>2]=C,yf(d,u,0|ar[s>>2],f),i=p?(A=(0|(A=0|ar[p+12>>2]))==(0|ar[p+16>>2])?0|is[127&ar[36+(0|ar[v>>2])>>2]](p):0|wi(0|ar[A>>2]),0|Qi(A,-1)?(ar[e>>2]=0,1):0):1;do{if(w){if(0|Qi(A=(0|(A=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[A>>2]),-1)){ar[r>>2]=0,W=47;break}if(i)break;W=49;break}W=47}while(0);47==(0|W)&&i&&(W=49);49==(0|W)&&(ar[f>>2]=2|ar[f>>2]);return W=0|ar[e>>2],Yl(k),Yl(d),ur=h,0|W}(A,a,o,i,f,n),ur=t,0|n},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0;Z=ur=(h=ur)+31&-32,ur=ur+304|0,c=Z+200|0,y=Z+196|0,d=Z+184|0,k=Z+172|0,l=Z+168|0,u=Z+8|0,s=Z+4|0,b=0|Wf(i|=0),Jf(d,i,c,y),ar[k>>2]=0,ar[4+k>>2]=0,ar[8+k>>2]=0,A=0;for(;3!=(0|A);)ar[k+(A<<2)>>2]=0,A=A+1|0;a=8+k|0,A=(0|tr[(o=11+k|0)>>0])<0?(2147483647&ar[a>>2])-1|0:10;Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A,ar[s>>2]=u,ar[Z>>2]=0,t=4+k|0,v=0|ar[e>>2],w=v;A:for(;;){g=w?0|Qi(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[i>>2]),-1)?(ar[e>>2]=0,v=p=0,1):(p=w,0):(v=p=0,1),w=0|ar[r>>2];do{if(w){if(0|Qi(i=(0|(i=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[i>>2]),-1)){ar[r>>2]=0,W=19;break}if(g)break;break A}W=19}while(0);if(19==(0|W)){if(W=0,g){w=0;break}w=0}if(i=(i=0|tr[o>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[l>>2])==(A+i|0)&&(Ul(k,i<<1,0),A=(0|tr[o>>0])<0?(2147483647&ar[a>>2])-1|0:10,Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[l>>2]=A+i),0|Nf(i=(0|(i=0|ar[(g=p+12|0)>>2]))==(0|ar[(m=p+16|0)>>2])?0|is[127&ar[36+(0|ar[p>>2])>>2]](p):0|wi(0|ar[i>>2]),b,A,l,Z,0|ar[y>>2],d,u,s,c))break;(0|(i=0|ar[g>>2]))!=(0|ar[m>>2])?(ar[g>>2]=i+4,wi(0|ar[i>>2]),w=p):(is[127&ar[40+(0|ar[p>>2])>>2]](p),w=p)}0|((y=0|tr[11+d>>0])<<24>>24<0?0|ar[4+d>>2]:255&y)&&((C=0|ar[s>>2])-u|0)<160&&(Z=0|ar[Z>>2],ar[s>>2]=C+4,ar[C>>2]=Z);C=0|Bf(A,0|ar[l>>2],f,b),ar[n>>2]=C,ar[n+4>>2]=D,yf(d,u,0|ar[s>>2],f),i=p?(A=(0|(A=0|ar[p+12>>2]))==(0|ar[p+16>>2])?0|is[127&ar[36+(0|ar[v>>2])>>2]](p):0|wi(0|ar[A>>2]),0|Qi(A,-1)?(ar[e>>2]=0,1):0):1;do{if(w){if(0|Qi(A=(0|(A=0|ar[w+12>>2]))==(0|ar[w+16>>2])?0|is[127&ar[36+(0|ar[w>>2])>>2]](w):0|wi(0|ar[A>>2]),-1)){ar[r>>2]=0,W=47;break}if(i)break;W=49;break}W=47}while(0);47==(0|W)&&i&&(W=49);49==(0|W)&&(ar[f>>2]=2|ar[f>>2]);return W=0|ar[e>>2],Yl(k),Yl(d),ur=h,0|W}(A,a,o,i,f,n),ur=t,0|n},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w,v,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0;C=ur=(w=ur)+31&-32,ur=ur+352|0,c=C+208|0,l=C+200|0,W=C+196|0,h=C+184|0,k=C+172|0,u=C+168|0,s=C+8|0,b=C+4|0,I=(d=C)+337|0,C=C+336|0,Rf(h,i|=0,c,l,W),ar[k>>2]=0,ar[4+k>>2]=0,ar[8+k>>2]=0,A=0;for(;3!=(0|A);)ar[k+(A<<2)>>2]=0,A=A+1|0;a=8+k|0,A=(0|tr[(o=11+k|0)>>0])<0?(2147483647&ar[a>>2])-1|0:10;Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[u>>2]=A,ar[b>>2]=s,ar[d>>2]=0,tr[I>>0]=1,tr[C>>0]=69,t=4+k|0,m=0|ar[e>>2],g=m;A:for(;;){p=g?0|Qi(i=(0|(i=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|wi(0|ar[i>>2]),-1)?(ar[e>>2]=0,m=Z=0,1):(Z=g,0):(m=Z=0,1),g=0|ar[r>>2];do{if(g){if(0|Qi(i=(0|(i=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|wi(0|ar[i>>2]),-1)){ar[r>>2]=0,E=19;break}if(p)break;break A}E=19}while(0);if(19==(0|E)){if(E=0,p){g=0;break}g=0}if(i=(i=0|tr[o>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[u>>2])==(A+i|0)&&(Ul(k,i<<1,0),A=(0|tr[o>>0])<0?(2147483647&ar[a>>2])-1|0:10,Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[u>>2]=A+i),0|Yf(i=(0|(i=0|ar[(p=Z+12|0)>>2]))==(0|ar[(y=Z+16|0)>>2])?0|is[127&ar[36+(0|ar[Z>>2])>>2]](Z):0|wi(0|ar[i>>2]),I,C,A,u,0|ar[l>>2],0|ar[W>>2],h,s,b,d,c))break;(0|(i=0|ar[p>>2]))!=(0|ar[y>>2])?(ar[p>>2]=i+4,wi(0|ar[i>>2]),g=Z):(is[127&ar[40+(0|ar[Z>>2])>>2]](Z),g=Z)}W=0|tr[11+h>>0],0!=(0|tr[I>>0])&&0!=(0|(W<<24>>24<0?0|ar[4+h>>2]:255&W))&&((B=0|ar[b>>2])-s|0)<160&&(I=0|ar[d>>2],ar[b>>2]=B+4,ar[B>>2]=I);v=+Cf(A,0|ar[u>>2],f),Y[n>>2]=v,yf(h,s,0|ar[b>>2],f),i=Z?(A=(0|(A=0|ar[Z+12>>2]))==(0|ar[Z+16>>2])?0|is[127&ar[36+(0|ar[m>>2])>>2]](Z):0|wi(0|ar[A>>2]),0|Qi(A,-1)?(ar[e>>2]=0,1):0):1;do{if(g){if(0|Qi(A=(0|(A=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|wi(0|ar[A>>2]),-1)){ar[r>>2]=0,E=47;break}if(i)break;E=49;break}E=47}while(0);47==(0|E)&&i&&(E=49);49==(0|E)&&(ar[f>>2]=2|ar[f>>2]);return E=0|ar[e>>2],Yl(k),Yl(h),ur=w,0|E}(A,a,o,i,f,n),ur=t,0|n},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w,v,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0;C=ur=(w=ur)+31&-32,ur=ur+352|0,c=C+208|0,l=C+200|0,W=C+196|0,h=C+184|0,k=C+172|0,u=C+168|0,s=C+8|0,b=C+4|0,I=(d=C)+337|0,C=C+336|0,Rf(h,i|=0,c,l,W),ar[k>>2]=0,ar[4+k>>2]=0,ar[8+k>>2]=0,A=0;for(;3!=(0|A);)ar[k+(A<<2)>>2]=0,A=A+1|0;a=8+k|0,A=(0|tr[(o=11+k|0)>>0])<0?(2147483647&ar[a>>2])-1|0:10;Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[u>>2]=A,ar[b>>2]=s,ar[d>>2]=0,tr[I>>0]=1,tr[C>>0]=69,t=4+k|0,m=0|ar[e>>2],g=m;A:for(;;){p=g?0|Qi(i=(0|(i=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|wi(0|ar[i>>2]),-1)?(ar[e>>2]=0,m=Z=0,1):(Z=g,0):(m=Z=0,1),g=0|ar[r>>2];do{if(g){if(0|Qi(i=(0|(i=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|wi(0|ar[i>>2]),-1)){ar[r>>2]=0,E=19;break}if(p)break;break A}E=19}while(0);if(19==(0|E)){if(E=0,p){g=0;break}g=0}if(i=(i=0|tr[o>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[u>>2])==(A+i|0)&&(Ul(k,i<<1,0),A=(0|tr[o>>0])<0?(2147483647&ar[a>>2])-1|0:10,Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[u>>2]=A+i),0|Yf(i=(0|(i=0|ar[(p=Z+12|0)>>2]))==(0|ar[(y=Z+16|0)>>2])?0|is[127&ar[36+(0|ar[Z>>2])>>2]](Z):0|wi(0|ar[i>>2]),I,C,A,u,0|ar[l>>2],0|ar[W>>2],h,s,b,d,c))break;(0|(i=0|ar[p>>2]))!=(0|ar[y>>2])?(ar[p>>2]=i+4,wi(0|ar[i>>2]),g=Z):(is[127&ar[40+(0|ar[Z>>2])>>2]](Z),g=Z)}W=0|tr[11+h>>0],0!=(0|tr[I>>0])&&0!=(0|(W<<24>>24<0?0|ar[4+h>>2]:255&W))&&((B=0|ar[b>>2])-s|0)<160&&(I=0|ar[d>>2],ar[b>>2]=B+4,ar[B>>2]=I);v=+Zf(A,0|ar[u>>2],f),J[n>>3]=v,yf(h,s,0|ar[b>>2],f),i=Z?(A=(0|(A=0|ar[Z+12>>2]))==(0|ar[Z+16>>2])?0|is[127&ar[36+(0|ar[m>>2])>>2]](Z):0|wi(0|ar[A>>2]),0|Qi(A,-1)?(ar[e>>2]=0,1):0):1;do{if(g){if(0|Qi(A=(0|(A=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|wi(0|ar[A>>2]),-1)){ar[r>>2]=0,E=47;break}if(i)break;E=49;break}E=47}while(0);47==(0|E)&&i&&(E=49);49==(0|E)&&(ar[f>>2]=2|ar[f>>2]);return E=0|ar[e>>2],Yl(k),Yl(h),ur=w,0|E}(A,a,o,i,f,n),ur=t,0|n},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w,v,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0;C=ur=(w=ur)+31&-32,ur=ur+352|0,c=C+208|0,l=C+200|0,W=C+196|0,h=C+184|0,k=C+172|0,u=C+168|0,s=C+8|0,b=C+4|0,I=(d=C)+337|0,C=C+336|0,Rf(h,i|=0,c,l,W),ar[k>>2]=0,ar[4+k>>2]=0,ar[8+k>>2]=0,A=0;for(;3!=(0|A);)ar[k+(A<<2)>>2]=0,A=A+1|0;a=8+k|0,A=(0|tr[(o=11+k|0)>>0])<0?(2147483647&ar[a>>2])-1|0:10;Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[u>>2]=A,ar[b>>2]=s,ar[d>>2]=0,tr[I>>0]=1,tr[C>>0]=69,t=4+k|0,m=0|ar[e>>2],g=m;A:for(;;){p=g?0|Qi(i=(0|(i=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|wi(0|ar[i>>2]),-1)?(ar[e>>2]=0,m=Z=0,1):(Z=g,0):(m=Z=0,1),g=0|ar[r>>2];do{if(g){if(0|Qi(i=(0|(i=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|wi(0|ar[i>>2]),-1)){ar[r>>2]=0,E=19;break}if(p)break;break A}E=19}while(0);if(19==(0|E)){if(E=0,p){g=0;break}g=0}if(i=(i=0|tr[o>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[u>>2])==(A+i|0)&&(Ul(k,i<<1,0),A=(0|tr[o>>0])<0?(2147483647&ar[a>>2])-1|0:10,Ul(k,A,0),A=(0|tr[o>>0])<0?0|ar[k>>2]:k,ar[u>>2]=A+i),0|Yf(i=(0|(i=0|ar[(p=Z+12|0)>>2]))==(0|ar[(y=Z+16|0)>>2])?0|is[127&ar[36+(0|ar[Z>>2])>>2]](Z):0|wi(0|ar[i>>2]),I,C,A,u,0|ar[l>>2],0|ar[W>>2],h,s,b,d,c))break;(0|(i=0|ar[p>>2]))!=(0|ar[y>>2])?(ar[p>>2]=i+4,wi(0|ar[i>>2]),g=Z):(is[127&ar[40+(0|ar[Z>>2])>>2]](Z),g=Z)}W=0|tr[11+h>>0],0!=(0|tr[I>>0])&&0!=(0|(W<<24>>24<0?0|ar[4+h>>2]:255&W))&&((B=0|ar[b>>2])-s|0)<160&&(I=0|ar[d>>2],ar[b>>2]=B+4,ar[B>>2]=I);v=+pf(A,0|ar[u>>2],f),J[n>>3]=v,yf(h,s,0|ar[b>>2],f),i=Z?(A=(0|(A=0|ar[Z+12>>2]))==(0|ar[Z+16>>2])?0|is[127&ar[36+(0|ar[m>>2])>>2]](Z):0|wi(0|ar[A>>2]),0|Qi(A,-1)?(ar[e>>2]=0,1):0):1;do{if(g){if(0|Qi(A=(0|(A=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|wi(0|ar[A>>2]),-1)){ar[r>>2]=0,E=47;break}if(i)break;E=49;break}E=47}while(0);47==(0|E)&&i&&(E=49);49==(0|E)&&(ar[f>>2]=2|ar[f>>2]);return E=0|ar[e>>2],Yl(k),Yl(h),ur=w,0|E}(A,a,o,i,f,n),ur=t,0|n},function(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0;for(m=ur=(d=ur)+31&-32,ur=ur+320|0,p=(u=m)+208|0,s=m+192|0,b=m+180|0,y=m+176|0,c=m+16|0,l=m+8|0,m=m+4|0,ar[s>>2]=0,ar[4+s>>2]=0,A=ar[8+s>>2]=0;3!=(0|A);)A=A+1|(ar[s+(A<<2)>>2]=0);for(Di(b,i),A=0|bf(b,52568),ts[15&ar[48+(0|ar[A>>2])>>2]](A,46974,47e3,p),df(b),ar[b>>2]=0,ar[4+b>>2]=0,A=ar[8+b>>2]=0;3!=(0|A);)A=A+1|(ar[b+(A<<2)>>2]=0);o=8+b|0,Ul(b,A=(0|tr[(a=11+b|0)>>0])<0?(2147483647&ar[o>>2])-1|0:10,0),A=(0|tr[a>>0])<0?0|ar[b>>2]:b,ar[y>>2]=A,ar[l>>2]=c,t=4+b|(ar[m>>2]=0),k=h=0|ar[e>>2];A:for(;;){w=k?0|Qi(i=(0|(i=0|ar[k+12>>2]))==(0|ar[k+16>>2])?0|is[127&ar[36+(0|ar[k>>2])>>2]](k):0|wi(0|ar[i>>2]),-1)?(h=g=ar[e>>2]=0,1):(g=k,0):(h=g=0,1),k=0|ar[r>>2];do{if(k){if(0|Qi(i=(0|(i=0|ar[k+12>>2]))==(0|ar[k+16>>2])?0|is[127&ar[36+(0|ar[k>>2])>>2]](k):0|wi(0|ar[i>>2]),-1)){ar[r>>2]=0,Z=22;break}if(w)break;break A}Z=22}while(0);if(22==(0|Z)){if(Z=0,w){k=0;break}k=0}if(i=(i=0|tr[a>>0])<<24>>24<0?0|ar[t>>2]:255&i,(0|ar[y>>2])==(A+i|0)&&(Ul(b,i<<1,0),Ul(b,A=(0|tr[a>>0])<0?(2147483647&ar[o>>2])-1|0:10,0),A=(0|tr[a>>0])<0?0|ar[b>>2]:b,ar[y>>2]=A+i),0|Nf(i=(0|(i=0|ar[(w=g+12|0)>>2]))==(0|ar[(v=g+16|0)>>2])?0|is[127&ar[36+(0|ar[g>>2])>>2]](g):0|wi(0|ar[i>>2]),16,A,y,m,0,s,c,l,p))break;(0|(i=0|ar[w>>2]))!=(0|ar[v>>2])?(ar[w>>2]=i+4,wi(0|ar[i>>2]),k=g):(is[127&ar[40+(0|ar[g>>2])>>2]](g),k=g)}Ul(b,(0|ar[y>>2])-A|0,0),p=(0|tr[a>>0])<0?0|ar[b>>2]:b,y=0|hf(),ar[u>>2]=n,1!=(0|wf(p,y,47007,u))&&(ar[f>>2]=4),i=g?0|Qi(A=(0|(A=0|ar[g+12>>2]))==(0|ar[g+16>>2])?0|is[127&ar[36+(0|ar[h>>2])>>2]](g):0|wi(0|ar[A>>2]),-1)?(ar[e>>2]=0,1):0:1;do{if(k){if(0|Qi(A=(0|(A=0|ar[k+12>>2]))==(0|ar[k+16>>2])?0|is[127&ar[36+(0|ar[k>>2])>>2]](k):0|wi(0|ar[A>>2]),-1)){ar[r>>2]=0,Z=49;break}if(i)break;Z=51;break}Z=49}while(0);return 49==(0|Z)&&i&&(Z=51),51==(0|Z)&&(ar[f>>2]=2|ar[f>>2]),Z=0|ar[e>>2],Yl(b),Yl(s),ur=d,0|Z},function(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b=0,d=0;return b=ur=(A=ur)+31&-32,ur=ur+96|0,o=b+8|0,l=(u=b)+71|0,t=b+28|0,c=b+24|0,a=b+16|0,b=b+20|0,ar[(d=u)>>2]=37,XA(u+1|(ar[d+4>>2]=0),47225,1,0|ar[r+4>>2]),d=0|hf(),ar[(s=o)>>2]=f,ar[4+s>>2]=n,n=0|Tf(l,f=l+(0|Qf(l,23,d,u,o))|0,r),Di(o,r),_A(l,n,f,t,c,a,o),df(o),ar[b>>2]=ar[e>>2],f=0|ar[c>>2],n=0|ar[a>>2],ar[o>>2]=ar[b>>2],n=0|zf(o,t,f,n,r,i),ur=A,0|n},function(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b=0,d=0;return b=ur=(A=ur)+31&-32,ur=ur+96|0,o=b+8|0,l=(u=b)+71|0,t=b+28|0,c=b+24|0,a=b+16|0,b=b+20|0,ar[(d=u)>>2]=37,XA(u+1|(ar[d+4>>2]=0),47225,0,0|ar[r+4>>2]),d=0|hf(),ar[(s=o)>>2]=f,ar[4+s>>2]=n,n=0|Tf(l,f=l+(0|Qf(l,23,d,u,o))|0,r),Di(o,r),_A(l,n,f,t,c,a,o),df(o),ar[b>>2]=ar[e>>2],f=0|ar[c>>2],n=0|ar[a>>2],ar[o>>2]=ar[b>>2],n=0|zf(o,t,f,n,r,i),ur=A,0|n},function(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b=0,d=0;return b=ur=(A=ur)+31&-32,ur=ur+224|0,o=b+8|0,l=(u=b)+200|0,t=b+28|0,c=b+24|0,a=b+16|0,b=b+20|0,ar[(d=u)>>2]=37,XA(u+1|(ar[d+4>>2]=0),47225,1,0|ar[r+4>>2]),d=0|hf(),ar[(s=o)>>2]=f,ar[4+s>>2]=n,n=0|Tf(l,f=l+(0|Qf(l,23,d,u,o))|0,r),Di(o,r),YA(l,n,f,t,c,a,o),df(o),ar[b>>2]=ar[e>>2],f=0|ar[c>>2],n=0|ar[a>>2],ar[o>>2]=ar[b>>2],n=0|FA(o,t,f,n,r,i),ur=A,0|n},function(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b=0,d=0;return b=ur=(A=ur)+31&-32,ur=ur+224|0,o=b+8|0,l=(u=b)+200|0,t=b+28|0,c=b+24|0,a=b+16|0,b=b+20|0,ar[(d=u)>>2]=37,XA(u+1|(ar[d+4>>2]=0),47225,0,0|ar[r+4>>2]),d=0|hf(),ar[(s=o)>>2]=f,ar[4+s>>2]=n,n=0|Tf(l,f=l+(0|Qf(l,23,d,u,o))|0,r),Di(o,r),YA(l,n,f,t,c,a,o),df(o),ar[b>>2]=ar[e>>2],f=0|ar[c>>2],n=0|ar[a>>2],ar[o>>2]=ar[b>>2],n=0|FA(o,t,f,n,r,i),ur=A,0|n},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|QA(A,a,o,i,f,n,47753,47761),ur=t,0|n},function(A,e,r,i,f,n){e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c,l,u,s=0;return c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,l=4+c|0,s=0|is[127&ar[20+(0|ar[(s=(A|=0)+8|0)>>2])>>2]](s),ar[l>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],r=(e=(u=(r=0|tr[s+11>>0])<<24>>24<0)?0|ar[s>>2]:s)+(u?0|ar[s+4>>2]:255&r)|0,ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|QA(A,a,o,i,f,n,e,r),ur=t,0|n},function(A,e,r,i,f,n){var t,o,a;return A|=0,e|=0,r|=0,f|=0,n|=0,a=ur=(t=ur)+31&-32,ur=ur+16|0,Di(o=4+a|0,i|=0),i=0|bf(o,52536),df(o),ar[a>>2]=ar[r>>2],ar[o>>2]=ar[a>>2],JA(A,n+24|0,e,o,f,i),ur=t,0|ar[e>>2]},function(A,e,r,i,f,n){var t,o,a;return A|=0,e|=0,r|=0,f|=0,n|=0,a=ur=(t=ur)+31&-32,ur=ur+16|0,Di(o=4+a|0,i|=0),i=0|bf(o,52536),df(o),ar[a>>2]=ar[r>>2],ar[o>>2]=ar[a>>2],DA(A,n+16|0,e,o,f,i),ur=t,0|ar[e>>2]},function(A,e,r,i,f,n){var t,o,a;return A|=0,e|=0,r|=0,f|=0,n|=0,a=ur=(t=ur)+31&-32,ur=ur+16|0,Di(o=4+a|0,i|=0),i=0|bf(o,52536),df(o),ar[a>>2]=ar[r>>2],ar[o>>2]=ar[a>>2],LA(A,n+20|0,e,o,f,i),ur=t,0|ar[e>>2]},function(A,e,r,i,f,n){var t,o,a,c,l;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,ar[(l=4+c|0)>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|ie(A,a,o,i,f,n,14748,14780),ur=t,0|n},function(A,e,r,i,f,n){e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c,l,u,s=0;return c=ur=(t=ur)+31&-32,ur=ur+16|0,o=12+c|0,a=8+c|0,l=4+c|0,s=0|is[127&ar[20+(0|ar[(s=(A|=0)+8|0)>>2])>>2]](s),ar[l>>2]=ar[e>>2],ar[c>>2]=ar[r>>2],r=(e=(u=(r=0|tr[s+8+3>>0])<<24>>24<0)?0|ar[s>>2]:s)+((u?0|ar[s+4>>2]:255&r)<<2)|0,ar[a>>2]=ar[l>>2],ar[o>>2]=ar[c>>2],n=0|ie(A,a,o,i,f,n,e,r),ur=t,0|n},function(A,e,r,i,f,n){var t,o,a;return A|=0,e|=0,r|=0,f|=0,n|=0,a=ur=(t=ur)+31&-32,ur=ur+16|0,Di(o=4+a|0,i|=0),i=0|bf(o,52568),df(o),ar[a>>2]=ar[r>>2],ar[o>>2]=ar[a>>2],ee(A,n+24|0,e,o,f,i),ur=t,0|ar[e>>2]},function(A,e,r,i,f,n){var t,o,a;return A|=0,e|=0,r|=0,f|=0,n|=0,a=ur=(t=ur)+31&-32,ur=ur+16|0,Di(o=4+a|0,i|=0),i=0|bf(o,52568),df(o),ar[a>>2]=ar[r>>2],ar[o>>2]=ar[a>>2],re(A,n+16|0,e,o,f,i),ur=t,0|ar[e>>2]},function(A,e,r,i,f,n){var t,o,a;return A|=0,e|=0,r|=0,f|=0,n|=0,a=ur=(t=ur)+31&-32,ur=ur+16|0,Di(o=4+a|0,i|=0),i=0|bf(o,52568),df(o),ar[a>>2]=ar[r>>2],ar[o>>2]=ar[a>>2],de(A,n+20|0,e,o,f,i),ur=t,0|ar[e>>2]},function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p,y=0,Z=0,C=0,W=0,I=0,B=0;for(s=ur=(p=ur)+31&-32,ur=ur+176|0,c=56+s|0,d=164+s|0,k=161+s|0,h=160+s|0,w=40+s|0,v=28+s|0,g=16+s|0,t=12+s|0,a=60+s|0,l=8+s|0,u=4+s|0,Di(m=52+s|0,i|=0),b=0|bf(m,52536),Z=n+4|0,W=0|((A=(W=0|tr[(y=n+11|0)>>0])<<24>>24<0)?0|ar[Z>>2]:255&W)?(W=0|tr[(A?0|ar[n>>2]:n)>>0])<<24>>24==(0|fs[63&ar[28+(0|ar[b>>2])>>2]](b,45))<<24>>24:0,ar[w>>2]=0,ar[4+w>>2]=0,A=ar[8+w>>2]=0;3!=(0|A);)A=A+1|(ar[w+(A<<2)>>2]=0);for(ar[v>>2]=0,ar[4+v>>2]=0,A=ar[8+v>>2]=0;3!=(0|A);)A=A+1|(ar[v+(A<<2)>>2]=0);for(ar[g>>2]=0,ar[4+g>>2]=0,A=ar[8+g>>2]=0;3!=(0|A);)A=A+1|(ar[g+(A<<2)>>2]=0);return Ge(r,W,m,d,k,h,w,v,g,t),C=(o=(C=0|tr[y>>0])<<24>>24<0)?0|ar[Z>>2]:255&C,100<(A=(r=(0|(Z=0|ar[t>>2]))<(0|C)?(y=0|tr[11+g>>0],r=0|tr[11+v>>0],A=1,y=(y<<24>>24<0?0|ar[4+g>>2]:255&y)+(C-Z<<1)|0,r<<24>>24<0?0|ar[4+v>>2]:255&r):(r=0|tr[11+g>>0],A=2,y=(y=0|tr[11+v>>0])<<24>>24<0?0|ar[4+v>>2]:255&y,r<<24>>24<0?0|ar[4+g>>2]:255&r))+Z+y+A|0)>>>0?(A=0|qo(A))?B=I=A:_l():(I=a,B=0),n=o?0|ar[n>>2]:n,Ve(I,l,u,0|ar[i+4>>2],n,n+C|0,b,W,d,0|tr[k>>0],0|tr[h>>0],w,v,g,Z),ar[s>>2]=ar[e>>2],n=0|ar[l>>2],A=0|ar[u>>2],ar[c>>2]=ar[s>>2],A=0|zf(c,I,n,A,i,f),0|B&&$o(B),Yl(g),Yl(v),Yl(w),df(m),ur=p,0|A},function(A,e,r,i,f,n){A|=0,e|=0,r|=0,f|=0,n|=0;var t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p,y=0,Z=0,C=0,W=0,I=0,B=0;for(s=ur=(p=ur)+31&-32,ur=ur+480|0,c=468+s|0,d=472+s|0,k=460+s|0,h=456+s|0,w=444+s|0,v=432+s|0,g=420+s|0,t=416+s|0,a=16+s|0,l=8+s|0,u=4+s|0,Di(m=464+s|0,i|=0),b=0|bf(m,52568),Z=n+4|0,W=0|((A=(W=0|tr[(y=n+8+3|0)>>0])<<24>>24<0)?0|ar[Z>>2]:255&W)?(0|(W=0|ar[(A?0|ar[n>>2]:n)>>2]))==(0|fs[63&ar[44+(0|ar[b>>2])>>2]](b,45)):0,ar[w>>2]=0,ar[4+w>>2]=0,A=ar[8+w>>2]=0;3!=(0|A);)A=A+1|(ar[w+(A<<2)>>2]=0);for(ar[v>>2]=0,ar[4+v>>2]=0,A=ar[8+v>>2]=0;3!=(0|A);)A=A+1|(ar[v+(A<<2)>>2]=0);for(ar[g>>2]=0,ar[4+g>>2]=0,A=ar[8+g>>2]=0;3!=(0|A);)A=A+1|(ar[g+(A<<2)>>2]=0);return Xe(r,W,m,d,k,h,w,v,g,t),C=(o=(C=0|tr[y>>0])<<24>>24<0)?0|ar[Z>>2]:255&C,100<(A=(r=(0|(Z=0|ar[t>>2]))<(0|C)?(y=0|tr[8+g+3>>0],r=0|tr[8+v+3>>0],A=1,y=(y<<24>>24<0?0|ar[4+g>>2]:255&y)+(C-Z<<1)|0,r<<24>>24<0?0|ar[4+v>>2]:255&r):(r=0|tr[8+g+3>>0],A=2,y=(y=0|tr[8+v+3>>0])<<24>>24<0?0|ar[4+v>>2]:255&y,r<<24>>24<0?0|ar[4+g>>2]:255&r))+Z+y+A|0)>>>0?(A=0|qo(A<<2))?B=I=A:_l():(I=a,B=0),n=o?0|ar[n>>2]:n,_e(I,l,u,0|ar[i+4>>2],n,n+(C<<2)|0,b,W,d,0|ar[k>>2],0|ar[h>>2],w,v,g,Z),ar[s>>2]=ar[e>>2],n=0|ar[l>>2],A=0|ar[u>>2],ar[c>>2]=ar[s>>2],A=0|FA(c,I,n,A,i,f),0|B&&$o(B),Pl(g),Pl(v),Yl(w),df(m),ur=p,0|A},Uu,Uu,Uu,Uu,Uu,Uu,Uu,Uu,Uu,Uu,Uu,Uu,Uu,Uu,Uu,Uu,Uu,Uu,Uu,Uu,Uu,Uu,Uu,Uu,Uu],us=[Ou,function(A,e,r,i,f,n,t){var o;for(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,i=ur=(o=ur)+31&-32,ur=ur+112|0,r=i+4|0,ar[i>>2]=r+100,ve(A+8|0,r,i,f,n,t),t=0|ar[i>>2],n=r,r=0|ar[e>>2];(0|n)!=(0|t);)i=0|tr[n>>0],r=!r||(e=0|Ji(i=(0|(f=0|ar[(A=r+24|0)>>2]))==(0|ar[r+28>>2])?(e=0|ar[52+(0|ar[r>>2])>>2],i=0|bi(i),0|fs[63&e](r,i)):(ar[A>>2]=f+1,0|bi(tr[f>>0]=i)),-1))?0:r,n=n+1|0;return ur=o,0|r},function(A,e,r,i,f,n,t){var o;for(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,i=ur=(o=ur)+31&-32,ur=ur+416|0,r=i+8|0,ar[i>>2]=r+400,function(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c,l=0;l=ur=(t=ur)+31&-32,ur=ur+128|0,a=l+16|0,c=l+12|0,l=(o=l)+8|0,ar[c>>2]=100+a,ve(A,a,c,i,f,n),ar[(i=o)>>2]=0,ar[i+4>>2]=0,ar[l>>2]=a,i=0|function(A,e){return(e|=0)-(A|=0)>>2|0}(e,0|ar[r>>2]),A=0|Ai(0|ar[A>>2]),i=0|Oa(e,l,i,o),0|A&&Ai(A);{if(-1!=(0|i))return ar[r>>2]=e+(i<<2),ur=t;me()}}(A+8|0,r,i,f,n,t),t=0|ar[i>>2],n=r,r=0|ar[e>>2];(0|n)!=(0|t);)i=0|ar[n>>2],r=!r||(e=0|Qi(i=(0|(f=0|ar[(A=r+24|0)>>2]))==(0|ar[r+28>>2])?(e=0|ar[52+(0|ar[r>>2])>>2],i=0|wi(i),0|fs[63&e](r,i)):(ar[A>>2]=f+4,0|wi(ar[f>>2]=i)),-1))?0:r,n=n+4|0;return ur=o,0|r},function(A,e,r,i,f,n,t){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0;var o,a,c,l,u,s,b,d,k=0,h=0,w=0,v=0,g=0,m=0,p=0;if(g=ur=(b=ur)+31&-32,ur=ur+240|0,o=g+24|0,v=(c=g)+140|0,s=g+16|0,a=g+12|0,l=g+8|0,k=g+136|0,d=g+4|0,g=g+36|0,ar[s>>2]=v,ar[(u=4+s|0)>>2]=309,Di(l,f),A=0|bf(l,52536),tr[k>>0]=0,ar[d>>2]=ar[r>>2],w=0|ar[f+4>>2],ar[o>>2]=ar[d>>2],0|ye(e,o,i,l,w,n,k,A,s,a,v+100|0)){for(ts[15&ar[32+(0|ar[A>>2])>>2]](A,48278,48288,o),98<(0|(A=(w=0|ar[a>>2])-(i=0|ar[s>>2])|0))?(A=0|qo(A+2|0))?m=h=A:_l():(h=g,m=0),A=0|tr[k>>0]?(tr[h>>0]=45,h+1|0):h,h=10+o|0,v=o,k=i,f=A,A=w;!(A>>>0<=k>>>0);){for(i=0|tr[k>>0],A=o;;){if((0|A)==(0|h)){A=h;break}if((0|tr[A>>0])==i<<24>>24)break;A=A+1|0}tr[f>>0]=0|tr[A-v+48278>>0],k=k+1|0,f=f+1|0,A=0|ar[a>>2]}tr[f>>0]=0,ar[c>>2]=t,1!=(0|xr(g,48289,c))&&me(),0|m&&$o(m)}A=0|ar[e>>2];do{if(A){if(0|Ji(A=(0|(i=0|ar[A+12>>2]))==(0|ar[A+16>>2])?0|is[127&ar[36+(0|ar[A>>2])>>2]](A):0|bi(0|tr[i>>0]),-1)){ar[e>>2]=0,f=1;break}f=0==(0|ar[e>>2]);break}f=1}while(0);A=0|ar[r>>2];do{if(A){if(0|Ji(A=(0|(i=0|ar[A+12>>2]))==(0|ar[A+16>>2])?0|is[127&ar[36+(0|ar[A>>2])>>2]](A):0|bi(0|tr[i>>0]),-1)){ar[r>>2]=0,p=32;break}if(f)break;p=34;break}p=32}while(0);return 32==(0|p)&&f&&(p=34),34==(0|p)&&(ar[n>>2]=2|ar[n>>2]),i=0|ar[e>>2],df(l),A=0|ar[s>>2],(ar[s>>2]=0)|A&&ds[511&ar[u>>2]](A),ur=b,0|i},function(A,e,r,i,f,n,t){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0;var o,a,c,l,u,s,b,d=0,k=0,h=0,w=0;if(h=ur=(b=ur)+31&-32,ur=ur+144|0,d=h+24|0,A=h+32|0,s=h+16|0,a=h+8|0,k=(l=h)+28|0,h=h+4|0,ar[s>>2]=A,ar[(u=4+s|0)>>2]=309,Di(l,f),o=0|bf(l,52536),c=(tr[k>>0]=0)|ar[r>>2],ar[h>>2]=c,f=0|ar[f+4>>2],ar[d>>2]=ar[h>>2],h=c,0|ye(e,d,i,l,f,n,k,o,s,a,A+100|0)){for((0|tr[(A=t+11|0)>>0])<0?(i=0|ar[t>>2],tr[d>>0]=0,Ni(i,d),ar[t+4>>2]=0):(tr[d>>0]=0,Ni(t,d),tr[A>>0]=0),0|tr[k>>0]&&jl(t,0|fs[63&ar[28+(0|ar[o>>2])>>2]](o,45)),k=0|fs[63&ar[28+(0|ar[o>>2])>>2]](o,48),d=(f=0|ar[a>>2])+-1|0,A=0|ar[s>>2];!(d>>>0<=A>>>0)&&(0|tr[A>>0])==k<<24>>24;)A=A+1|0;!function(A,e,r){r|=0;var i,f,n,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;c=ur=(n=ur)+31&-32,ur=ur+16|0,i=e|=0,b=c+12|0,o=0|tr[(s=11+(A|=0)|0)>>0],l=(t=o<<24>>24<0)?(u=0|ar[A+4>>2],(2147483647&ar[A+8>>2])-1|0):(u=255&o,10);f=r-i|0;do{if(0|f){if(t?(o=0|ar[A>>2],a=o,t=0|ar[A+4>>2]):(t=255&o,o=a=A),0|Ze(e,o,a+t|0)){for(ar[c>>2]=0,ar[c+4>>2]=0,ar[c+8>>2]=0,4294967279<f>>>0&&Nl(),f>>>0<11?(tr[c+11>>0]=f,o=c):(o=0|El(s=16+f&-16),ar[c>>2]=o,ar[c+8>>2]=-2147483648|s,ar[c+4>>2]=f),t=o;(0|e)!=(0|r);)Ni(t,e),e=e+1|0,t=t+1|0;tr[b>>0]=0,Ni(o+f|0,b),b=0|tr[c+11>>0],xl(A,(r=b<<24>>24<0)?0|ar[c>>2]:c,r?0|ar[c+4>>2]:255&b),Yl(c);break}for(c=u+f|0,(l-u|0)>>>0<f>>>0&&Hl(A,l,c-l|0,u,u,0,0),a=(0|tr[s>>0])<0?0|ar[A>>2]:A,o=r+(u-i)|0,t=a+u|0;(0|e)!=(0|r);)Ni(t,e),t=t+1|0,e=e+1|0;if(tr[b>>0]=0,Ni(a+o|0,b),(0|tr[s>>0])<0){ar[A+4>>2]=c;break}tr[s>>0]=c;break}}while(0);ur=n}(t,A,f)}A=0|ar[e>>2];do{if(A){if(0|Ji(A=(0|(f=0|ar[A+12>>2]))==(0|ar[A+16>>2])?0|is[127&ar[36+(0|ar[A>>2])>>2]](A):0|bi(0|tr[f>>0]),-1)){ar[e>>2]=0,f=1;break}f=0==(0|ar[e>>2]);break}f=1}while(0);do{if(c){if(0|Ji(A=(0|(A=0|ar[h+12>>2]))==(0|ar[h+16>>2])?0|is[127&ar[36+(0|ar[c>>2])>>2]](h):0|bi(0|tr[A>>0]),-1)){ar[r>>2]=0,w=25;break}if(f)break;w=27;break}w=25}while(0);return 25==(0|w)&&f&&(w=27),27==(0|w)&&(ar[n>>2]=2|ar[n>>2]),f=0|ar[e>>2],df(l),A=0|ar[s>>2],(ar[s>>2]=0)|A&&ds[511&ar[u>>2]](A),ur=b,0|f},function(A,e,r,i,f,n,t){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0;var o,a,c,l,u,s,b,d,k=0,h=0,w=0,v=0,g=0,m=0,p=0;if(g=ur=(b=ur)+31&-32,ur=ur+576|0,o=g+424|0,v=(c=g)+24|0,s=g+16|0,a=g+12|0,l=g+8|0,k=g+564|0,d=g+4|0,g=g+464|0,ar[s>>2]=v,ar[(u=4+s|0)>>2]=309,Di(l,f),A=0|bf(l,52568),tr[k>>0]=0,ar[d>>2]=ar[r>>2],w=0|ar[f+4>>2],ar[o>>2]=ar[d>>2],0|Ie(e,o,i,l,w,n,k,A,s,a,v+400|0)){for(ts[15&ar[48+(0|ar[A>>2])>>2]](A,48388,48398,o),392<(0|(A=(w=0|ar[a>>2])-(i=0|ar[s>>2])|0))?(A=0|qo(2+(A>>>2)|0))?m=h=A:_l():(h=g,m=0),A=0|tr[k>>0]?(tr[h>>0]=45,h+1|0):h,h=40+o|0,v=o,k=i,f=A,A=w;!(A>>>0<=k>>>0);){for(i=0|ar[k>>2],A=o;;){if((0|A)==(0|h)){A=h;break}if((0|ar[A>>2])==(0|i))break;A=A+4|0}tr[f>>0]=0|tr[48388+(A-v>>2)>>0],k=k+4|0,f=f+1|0,A=0|ar[a>>2]}tr[f>>0]=0,ar[c>>2]=t,1!=(0|xr(g,48289,c))&&me(),0|m&&$o(m)}A=0|ar[e>>2];do{if(A){if(0|Qi(A=(0|(i=0|ar[A+12>>2]))==(0|ar[A+16>>2])?0|is[127&ar[36+(0|ar[A>>2])>>2]](A):0|wi(0|ar[i>>2]),-1)){ar[e>>2]=0,f=1;break}f=0==(0|ar[e>>2]);break}f=1}while(0);A=0|ar[r>>2];do{if(A){if(0|Qi(A=(0|(i=0|ar[A+12>>2]))==(0|ar[A+16>>2])?0|is[127&ar[36+(0|ar[A>>2])>>2]](A):0|wi(0|ar[i>>2]),-1)){ar[r>>2]=0,p=32;break}if(f)break;p=34;break}p=32}while(0);return 32==(0|p)&&f&&(p=34),34==(0|p)&&(ar[n>>2]=2|ar[n>>2]),i=0|ar[e>>2],df(l),A=0|ar[s>>2],(ar[s>>2]=0)|A&&ds[511&ar[u>>2]](A),ur=b,0|i},function(A,e,r,i,f,n,t){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0;var o,a,c,l,u,s,b,d=0,k=0,h=0,w=0;if(h=ur=(b=ur)+31&-32,ur=ur+432|0,d=h+424|0,A=h+24|0,s=h+16|0,a=h+8|0,k=(l=h)+428|0,h=h+4|0,ar[s>>2]=A,ar[(u=4+s|0)>>2]=309,Di(l,f),o=0|bf(l,52568),c=(tr[k>>0]=0)|ar[r>>2],ar[h>>2]=c,f=0|ar[f+4>>2],ar[d>>2]=ar[h>>2],h=c,0|Ie(e,d,i,l,f,n,k,o,s,a,A+400|0)){for((0|tr[(A=t+8+3|0)>>0])<0?(i=0|ar[t>>2],ar[d>>2]=0,sf(i,d),ar[t+4>>2]=0):(ar[d>>2]=0,sf(t,d),tr[A>>0]=0),0|tr[k>>0]&&ru(t,0|fs[63&ar[44+(0|ar[o>>2])>>2]](o,45)),k=0|fs[63&ar[44+(0|ar[o>>2])>>2]](o,48),d=(f=0|ar[a>>2])+-4|0,A=0|ar[s>>2];!(d>>>0<=A>>>0)&&(0|ar[A>>2])==(0|k);)A=A+4|0;!function(A,e,r){e|=0,r|=0;var i,f,n,t,o,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0;n=ur=(o=ur)+31&-32,ur=ur+16|0,k=12+n|0,i=0|tr[(t=3+(a=8+(A|=0)|0)|0)>>0],u=(c=i<<24>>24<0)?(d=0|ar[A+4>>2],(2147483647&ar[a>>2])-1|0):(d=255&i,1);f=r-e>>2;do{if(0|f){if(c?(c=0|ar[A>>2],l=c,a=0|ar[A+4>>2]):(a=255&i,c=l=A),0|Be(e,c,l+(a<<2)|0)){ar[n>>2]=0,ar[4+n>>2]=0,ar[8+n>>2]=0,1073741807<f>>>0&&Nl();do{if(2<=f>>>0){if(!(1073741823<(a=4+f&-4)>>>0)){b=0|El(a<<2),ar[n>>2]=b,ar[8+n>>2]=-2147483648|a,ar[4+n>>2]=f,s=e;break}kA()}else tr[8+n+3>>0]=f,s=e,b=n}while(0);for(;(0|s)!=(0|r);)sf(b,s),s=s+4|0,b=b+4|0;ar[k>>2]=0,sf(b,k),k=0|tr[8+n+3>>0],eu(A,(r=k<<24>>24<0)?0|ar[n>>2]:n,r?0|ar[4+n>>2]:255&k),Pl(n);break}for(c=d+f|0,(u-d|0)>>>0<f>>>0&&Au(A,u,c-u|0,d,d,0,0),a=(a=(0|tr[t>>0])<0?0|ar[A>>2]:A)+(d<<2)|0;(0|e)!=(0|r);)sf(a,e),a=a+4|0,e=e+4|0;if(ar[k>>2]=0,sf(a,k),(0|tr[t>>0])<0){ar[A+4>>2]=c;break}tr[t>>0]=c;break}}while(0);ur=o}(t,A,f)}A=0|ar[e>>2];do{if(A){if(0|Qi(A=(0|(f=0|ar[A+12>>2]))==(0|ar[A+16>>2])?0|is[127&ar[36+(0|ar[A>>2])>>2]](A):0|wi(0|ar[f>>2]),-1)){ar[e>>2]=0,f=1;break}f=0==(0|ar[e>>2]);break}f=1}while(0);do{if(c){if(0|Qi(A=(0|(A=0|ar[h+12>>2]))==(0|ar[h+16>>2])?0|is[127&ar[36+(0|ar[c>>2])>>2]](h):0|wi(0|ar[A>>2]),-1)){ar[r>>2]=0,w=25;break}if(f)break;w=27;break}w=25}while(0);return 25==(0|w)&&f&&(w=27),27==(0|w)&&(ar[n>>2]=2|ar[n>>2]),f=0|ar[e>>2],df(l),A=0|ar[s>>2],(ar[s>>2]=0)|A&&ds[511&ar[u>>2]](A),ur=b,0|f},Ou],ss=[Hu,function(A,e,r,i,f,n,t,o){A|=0,e|=0,r|=0,i|=0,n|=0,t|=0,o|=0;var a,c,l,u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_,F,N,R,Y,J,D,Q,T,M,S,U,O,H,x=0,j=0;switch(J=ur=(H=ur)+31&-32,ur=ur+144|0,a=128+J|0,o=112+J|0,O=124+J|0,x=120+J|0,c=116+J|0,l=108+J|0,u=104+J|0,s=100+J|0,b=96+J|0,d=92+J|0,k=88+J|0,h=84+J|0,w=80+J|0,v=76+J|0,g=72+J|0,m=68+J|0,p=64+J|0,y=60+J|0,Z=56+J|0,C=52+J|0,W=48+J|0,I=44+J|0,B=40+J|0,E=36+J|0,G=32+J|0,V=28+J|0,X=24+J|0,_=20+J|0,F=16+J|0,N=12+J|0,R=8+J|0,Y=4+J|0,ar[(f|=0)>>2]=0,Di(a,i),D=0|bf(a,52536),df(a),Q=n+8|0,T=n+20|0,M=n+16|0,S=n+24|0,U=A+8|0,t<<24>>24|0){case 65:case 97:ar[O>>2]=ar[r>>2],ar[a>>2]=ar[O>>2],JA(A,S,e,a,f,D),j=26;break;case 104:case 66:case 98:ar[x>>2]=ar[r>>2],ar[a>>2]=ar[x>>2],DA(A,M,e,a,f,D),j=26;break;case 99:x=0|is[127&ar[12+(0|ar[U>>2])>>2]](U),ar[c>>2]=ar[e>>2],ar[l>>2]=ar[r>>2],j=(t=(r=(j=0|tr[x+11>>0])<<24>>24<0)?0|ar[x>>2]:x)+(r?0|ar[x+4>>2]:255&j)|0,ar[o>>2]=ar[c>>2],ar[a>>2]=ar[l>>2],j=0|QA(A,o,a,i,f,n,t,j),ar[e>>2]=j,j=26;break;case 101:case 100:ar[u>>2]=ar[r>>2],ar[a>>2]=ar[u>>2],TA(A,n+12|0,e,a,f,D),j=26;break;case 68:ar[s>>2]=ar[e>>2],ar[b>>2]=ar[r>>2],ar[o>>2]=ar[s>>2],ar[a>>2]=ar[b>>2],j=0|QA(A,o,a,i,f,n,47713,47721),ar[e>>2]=j,j=26;break;case 70:ar[d>>2]=ar[e>>2],ar[k>>2]=ar[r>>2],ar[o>>2]=ar[d>>2],ar[a>>2]=ar[k>>2],j=0|QA(A,o,a,i,f,n,47721,47729),ar[e>>2]=j,j=26;break;case 72:ar[h>>2]=ar[r>>2],ar[a>>2]=ar[h>>2],MA(A,Q,e,a,f,D),j=26;break;case 73:ar[w>>2]=ar[r>>2],ar[a>>2]=ar[w>>2],SA(A,Q,e,a,f,D),j=26;break;case 106:ar[v>>2]=ar[r>>2],ar[a>>2]=ar[v>>2],UA(A,n+28|0,e,a,f,D),j=26;break;case 109:ar[g>>2]=ar[r>>2],ar[a>>2]=ar[g>>2],OA(A,M,e,a,f,D),j=26;break;case 77:ar[m>>2]=ar[r>>2],ar[a>>2]=ar[m>>2],HA(A,n+4|0,e,a,f,D),j=26;break;case 116:case 110:ar[p>>2]=ar[r>>2],ar[a>>2]=ar[p>>2],xA(A,e,a,f,D),j=26;break;case 112:ar[y>>2]=ar[r>>2],ar[a>>2]=ar[y>>2],jA(A,Q,e,a,f,D),j=26;break;case 114:ar[Z>>2]=ar[e>>2],ar[C>>2]=ar[r>>2],ar[o>>2]=ar[Z>>2],ar[a>>2]=ar[C>>2],j=0|QA(A,o,a,i,f,n,47729,47740),ar[e>>2]=j,j=26;break;case 82:ar[W>>2]=ar[e>>2],ar[I>>2]=ar[r>>2],ar[o>>2]=ar[W>>2],ar[a>>2]=ar[I>>2],j=0|QA(A,o,a,i,f,n,47740,47745),ar[e>>2]=j,j=26;break;case 83:ar[B>>2]=ar[r>>2],ar[a>>2]=ar[B>>2],zA(A,n,e,a,f,D),j=26;break;case 84:ar[E>>2]=ar[e>>2],ar[G>>2]=ar[r>>2],ar[o>>2]=ar[E>>2],ar[a>>2]=ar[G>>2],j=0|QA(A,o,a,i,f,n,47745,47753),ar[e>>2]=j,j=26;break;case 119:ar[V>>2]=ar[r>>2],ar[a>>2]=ar[V>>2],PA(A,S,e,a,f,D),j=26;break;case 120:t=0|ar[20+(0|ar[A>>2])>>2],ar[X>>2]=ar[e>>2],ar[_>>2]=ar[r>>2],ar[o>>2]=ar[X>>2],ar[a>>2]=ar[_>>2],o=0|ls[63&t](A,o,a,i,f,n);break;case 88:x=0|is[127&ar[24+(0|ar[U>>2])>>2]](U),ar[F>>2]=ar[e>>2],ar[N>>2]=ar[r>>2],j=(t=(r=(j=0|tr[x+11>>0])<<24>>24<0)?0|ar[x>>2]:x)+(r?0|ar[x+4>>2]:255&j)|0,ar[o>>2]=ar[F>>2],ar[a>>2]=ar[N>>2],j=0|QA(A,o,a,i,f,n,t,j),ar[e>>2]=j,j=26;break;case 121:ar[R>>2]=ar[r>>2],ar[a>>2]=ar[R>>2],LA(A,T,e,a,f,D),j=26;break;case 89:ar[Y>>2]=ar[r>>2],ar[a>>2]=ar[Y>>2],KA(A,T,e,a,f,D),j=26;break;case 37:ar[J>>2]=ar[r>>2],ar[a>>2]=ar[J>>2],qA(A,e,a,f,D),j=26;break;default:ar[f>>2]=4|ar[f>>2],j=26}return 26==(0|j)&&(o=0|ar[e>>2]),ur=H,0|o},function(A,e,r,i,f,n,t,o){A|=0,e|=0,r|=0,i|=0,n|=0,t|=0,o|=0;var a,c,l,u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I,B,E,G,V,X,_,F,N,R,Y,J,D,Q,T,M,S,U,O,H,x=0,j=0;switch(J=ur=(H=ur)+31&-32,ur=ur+144|0,a=128+J|0,o=112+J|0,O=124+J|0,x=120+J|0,c=116+J|0,l=108+J|0,u=104+J|0,s=100+J|0,b=96+J|0,d=92+J|0,k=88+J|0,h=84+J|0,w=80+J|0,v=76+J|0,g=72+J|0,m=68+J|0,p=64+J|0,y=60+J|0,Z=56+J|0,C=52+J|0,W=48+J|0,I=44+J|0,B=40+J|0,E=36+J|0,G=32+J|0,V=28+J|0,X=24+J|0,_=20+J|0,F=16+J|0,N=12+J|0,R=8+J|0,Y=4+J|0,ar[(f|=0)>>2]=0,Di(a,i),D=0|bf(a,52568),df(a),Q=n+8|0,T=n+20|0,M=n+16|0,S=n+24|0,U=A+8|0,t<<24>>24|0){case 65:case 97:ar[O>>2]=ar[r>>2],ar[a>>2]=ar[O>>2],ee(A,S,e,a,f,D),j=26;break;case 104:case 66:case 98:ar[x>>2]=ar[r>>2],ar[a>>2]=ar[x>>2],re(A,M,e,a,f,D),j=26;break;case 99:x=0|is[127&ar[12+(0|ar[U>>2])>>2]](U),ar[c>>2]=ar[e>>2],ar[l>>2]=ar[r>>2],j=(t=(r=(j=0|tr[x+8+3>>0])<<24>>24<0)?0|ar[x>>2]:x)+((r?0|ar[x+4>>2]:255&j)<<2)|0,ar[o>>2]=ar[c>>2],ar[a>>2]=ar[l>>2],j=0|ie(A,o,a,i,f,n,t,j),ar[e>>2]=j,j=26;break;case 101:case 100:ar[u>>2]=ar[r>>2],ar[a>>2]=ar[u>>2],fe(A,n+12|0,e,a,f,D),j=26;break;case 68:ar[s>>2]=ar[e>>2],ar[b>>2]=ar[r>>2],ar[o>>2]=ar[s>>2],ar[a>>2]=ar[b>>2],j=0|ie(A,o,a,i,f,n,14588,14620),ar[e>>2]=j,j=26;break;case 70:ar[d>>2]=ar[e>>2],ar[k>>2]=ar[r>>2],ar[o>>2]=ar[d>>2],ar[a>>2]=ar[k>>2],j=0|ie(A,o,a,i,f,n,14620,14652),ar[e>>2]=j,j=26;break;case 72:ar[h>>2]=ar[r>>2],ar[a>>2]=ar[h>>2],ne(A,Q,e,a,f,D),j=26;break;case 73:ar[w>>2]=ar[r>>2],ar[a>>2]=ar[w>>2],te(A,Q,e,a,f,D),j=26;break;case 106:ar[v>>2]=ar[r>>2],ar[a>>2]=ar[v>>2],oe(A,n+28|0,e,a,f,D),j=26;break;case 109:ar[g>>2]=ar[r>>2],ar[a>>2]=ar[g>>2],ae(A,M,e,a,f,D),j=26;break;case 77:ar[m>>2]=ar[r>>2],ar[a>>2]=ar[m>>2],ce(A,n+4|0,e,a,f,D),j=26;break;case 116:case 110:ar[p>>2]=ar[r>>2],ar[a>>2]=ar[p>>2],le(A,e,a,f,D),j=26;break;case 112:ar[y>>2]=ar[r>>2],ar[a>>2]=ar[y>>2],ue(A,Q,e,a,f,D),j=26;break;case 114:ar[Z>>2]=ar[e>>2],ar[C>>2]=ar[r>>2],ar[o>>2]=ar[Z>>2],ar[a>>2]=ar[C>>2],j=0|ie(A,o,a,i,f,n,14652,14696),ar[e>>2]=j,j=26;break;case 82:ar[W>>2]=ar[e>>2],ar[I>>2]=ar[r>>2],ar[o>>2]=ar[W>>2],ar[a>>2]=ar[I>>2],j=0|ie(A,o,a,i,f,n,14696,14716),ar[e>>2]=j,j=26;break;case 83:ar[B>>2]=ar[r>>2],ar[a>>2]=ar[B>>2],se(A,n,e,a,f,D),j=26;break;case 84:ar[E>>2]=ar[e>>2],ar[G>>2]=ar[r>>2],ar[o>>2]=ar[E>>2],ar[a>>2]=ar[G>>2],j=0|ie(A,o,a,i,f,n,14716,14748),ar[e>>2]=j,j=26;break;case 119:ar[V>>2]=ar[r>>2],ar[a>>2]=ar[V>>2],be(A,S,e,a,f,D),j=26;break;case 120:t=0|ar[20+(0|ar[A>>2])>>2],ar[X>>2]=ar[e>>2],ar[_>>2]=ar[r>>2],ar[o>>2]=ar[X>>2],ar[a>>2]=ar[_>>2],o=0|ls[63&t](A,o,a,i,f,n);break;case 88:x=0|is[127&ar[24+(0|ar[U>>2])>>2]](U),ar[F>>2]=ar[e>>2],ar[N>>2]=ar[r>>2],j=(t=(r=(j=0|tr[x+8+3>>0])<<24>>24<0)?0|ar[x>>2]:x)+((r?0|ar[x+4>>2]:255&j)<<2)|0,ar[o>>2]=ar[F>>2],ar[a>>2]=ar[N>>2],j=0|ie(A,o,a,i,f,n,t,j),ar[e>>2]=j,j=26;break;case 121:ar[R>>2]=ar[r>>2],ar[a>>2]=ar[R>>2],de(A,T,e,a,f,D),j=26;break;case 89:ar[Y>>2]=ar[r>>2],ar[a>>2]=ar[Y>>2],ke(A,T,e,a,f,D),j=26;break;case 37:ar[J>>2]=ar[r>>2],ar[a>>2]=ar[J>>2],he(A,e,a,f,D),j=26;break;default:ar[f>>2]=4|ar[f>>2],j=26}return 26==(0|j)&&(o=0|ar[e>>2]),ur=H,0|o},function(A,e,r,i,f,n,t,o){var a;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,A=ur=(e=ur)+31&-32,ur=ur+16|0,t=0|function(A,e,r,i,f,n,t,o){A|=0,e|=0,i|=0,f|=0,n|=0,t|=0,o|=0;var a=0,c=0,l=0;ar[(r|=0)>>2]=A,ar[n>>2]=i,2&o?(f-i|0)<3?A=1:(ar[n>>2]=i+1,tr[i>>0]=-17,a=0|ar[n>>2],ar[n>>2]=a+1,tr[a>>0]=-69,a=0|ar[n>>2],ar[n>>2]=a+1,tr[a>>0]=-65,a=4):a=4;A:do{if(4==(0|a))for(A=0|ar[r>>2];;){if(e>>>0<=A>>>0){A=0;break A}if(l=0|ar[A>>2],t>>>0<l>>>0|55296==(-2048&l|0)){A=2;break A}do{if(128<=l>>>0){if(c=255&(63&l|128),l>>>0<2048){if(A=0|ar[n>>2],(f-A|0)<2){A=1;break A}ar[n>>2]=A+1,tr[A>>0]=l>>>6|192,l=0|ar[n>>2],ar[n>>2]=l+1,tr[l>>0]=c;break}if(A=0|ar[n>>2],i=f-A|0,o=A+1|0,a=255&(l>>>6&63|128),l>>>0<65536){if((0|i)<3){A=1;break A}ar[n>>2]=o,tr[A>>0]=l>>>12|224,l=0|ar[n>>2],ar[n>>2]=l+1,tr[l>>0]=a,l=0|ar[n>>2],ar[n>>2]=l+1,tr[l>>0]=c;break}if((0|i)<4){A=1;break A}ar[n>>2]=o,tr[A>>0]=l>>>18|240,o=0|ar[n>>2],ar[n>>2]=o+1,tr[o>>0]=l>>>12&63|128,l=0|ar[n>>2],ar[n>>2]=l+1,tr[l>>0]=a,l=0|ar[n>>2],ar[n>>2]=l+1,tr[l>>0]=c;break}if(A=0|ar[n>>2],(f-A|0)<1){A=1;break A}ar[n>>2]=A+1,tr[A>>0]=l}while(0);A=4+(0|ar[r>>2])|0,ar[r>>2]=A}}while(0);return 0|A}(ar[(a=A+4|0)>>2]=r,i,a,ar[A>>2]=n,t,A,1114111,0),ar[f>>2]=ar[a>>2],ar[o>>2]=ar[A>>2],ur=e,0|t},function(A,e,r,i,f,n,t,o){var a;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,A=ur=(e=ur)+31&-32,ur=ur+16|0,t=0|function(A,e,r,i,f,n,t,o){A|=0,e|=0,i|=0,f|=0,n|=0,t|=0,o|=0;var a,c=0,l=0,u=0,s=0,b=0;ar[(r|=0)>>2]=A,ar[n>>2]=i,a=e,4&o|0&&(c=0|ar[r>>2],2<(a-c|0))&&-17==(0|tr[c>>0])&&-69==(0|tr[c+1>>0])&&-65==(0|tr[c+2>>0])&&(ar[r>>2]=c+3);A:for(;;){if(l=0|ar[r>>2],e>>>0<=l>>>0){A=0;break}if(b=0|ar[n>>2],f>>>0<=b>>>0){A=1;break}u=0|tr[l>>0],s=255&u,A=l+1|0;do{if(-1<u<<24>>24){if(t>>>0<s>>>0){A=2;break A}ar[b>>2]=s}else{if((255&u)<194){A=2;break A}if(c=l+2|0,i=a-l|0,(255&u)<224){if((0|i)<2){A=1;break A}if(128!=(192&(A=0|cr[A>>0])|0)){A=2;break A}if(t>>>0<(A=63&A|s<<6&1984)>>>0){A=2;break A}ar[b>>2]=A,A=c;break}if(o=l+3|0,(255&u)<240){if((0|i)<3){A=1;break A}switch(i=0|tr[c>>0],c=0|cr[A>>0],A=224&c,u<<24>>24){case-32:if(160==(0|A))break;A=2;break A;case-19:if(128==(0|A))break;A=2;break A;default:if(128!=(192&c|0)){A=2;break A}}if(128!=(192&(A=255&i)|0)){A=2;break A}if(t>>>0<(A=c<<6&4032|s<<12&61440|63&A)>>>0){A=2;break A}ar[b>>2]=A,A=o;break}if(245<=(255&u)){A=2;break A}if((0|i)<4){A=1;break A}switch(i=0|tr[A>>0],A=0|tr[c>>0],c=0|tr[o>>0],o=255&i,u<<24>>24){case-16:if(48<=(i+112&255)){A=2;break A}break;case-12:if(128==(240&o|0))break;A=2;break A;default:if(128!=(192&o|0)){A=2;break A}}if(128!=(192&(i=255&A)|0)){A=2;break A}if(128!=(192&(A=255&c)|0)){A=2;break A}if(t>>>0<(A=o<<12&258048|s<<18&1835008|i<<6&4032|63&A)>>>0){A=2;break A}ar[b>>2]=A,A=l+4|0}}while(0);ar[r>>2]=A,ar[n>>2]=4+(0|ar[n>>2])}return 0|A}(ar[(a=A+4|0)>>2]=r,i,a,ar[A>>2]=n,t,A,1114111,0),ar[f>>2]=ar[a>>2],ar[o>>2]=ar[A>>2],ur=e,0|t},function(A,e,r,i,f,n,t,o){A|=0,e|=0,i|=0,f|=0,n|=0,t|=0,o|=0;var a,c,l,u,s=0,b=0,d=0,k=0;for(d=ur=(u=ur)+31&-32,ur=ur+16|0,d=(l=d)+8|0,s=r|=0;;){if((0|s)==(0|i)){s=i;break}if(!(0|ar[s>>2]))break;s=s+4|0}ar[o>>2]=n,ar[f>>2]=r,a=t,c=A+8|0;A:for(;;){if((0|n)==(0|t)|(0|r)==(0|i)){s=35;break}switch(b=0|ar[(k=e)+4>>2],ar[(A=l)>>2]=ar[k>>2],ar[A+4>>2]=b,A=0|Ai(0|ar[c>>2]),b=0|Ka(n,f,s-r>>2,a-n|0,e),0|A&&Ai(A),0|b){case-1:s=10;break A;case 0:r=1,s=32;break A}if(n=(0|ar[o>>2])+b|0,(0|(ar[o>>2]=n))==(0|t)){s=33;break}if((0|s)==(0|i))s=i,r=0|ar[f>>2];else{if(n=0|Ai(0|ar[c>>2]),r=0|Ea(d,0),0|n&&Ai(n),-1==(0|r)){r=2,s=31;break}if(r>>>0>(a-(0|ar[o>>2])|0)>>>0){r=1,s=31;break}for(n=d;r;)b=0|tr[n>>0],k=0|ar[o>>2],ar[o>>2]=k+1,tr[k>>0]=b,n=n+1|0,r=r+-1|0;for(r=4+(0|ar[f>>2])|0,s=ar[f>>2]=r;;){if((0|s)==(0|i)){s=i;break}if(!(0|ar[s>>2]))break;s=s+4|0}n=0|ar[o>>2]}}if(10==(0|s)){for(ar[o>>2]=n;(0|r)!=(0|ar[f>>2])&&(k=0|ar[r>>2],s=0|Ai(0|ar[c>>2]),n=0|Ea(n,k),0|s&&Ai(s),-1!=(0|n));)n=(0|ar[o>>2])+n|0,ar[o>>2]=n,r=r+4|0;ar[f>>2]=r,r=2,s=32}else 31==(0|s)?s=32:33==(0|s)&&(r=0|ar[f>>2],s=35);return 32!=(0|s)&&35==(0|s)&&(r=(0|r)!=(0|i)&1),ur=u,0|r},function(A,e,r,i,f,n,t,o){A|=0,e|=0,i|=0,f|=0,n|=0,t|=0,o|=0;var a,c,l,u,s=0,b=0,d=0;for(l=ur=(u=ur)+31&-32,ur=ur+16|0,s=r|=0;;){if((0|s)==(0|i)){s=i;break}if(!(0|tr[s>>0]))break;s=s+1|0}for(ar[o>>2]=n,ar[f>>2]=r,a=t,c=A+8|0,A=n;;){if((0|A)==(0|t)|(0|r)==(0|i)){A=32;break}if(n=0|ar[(b=e)+4>>2],ar[(d=l)>>2]=ar[b>>2],ar[d+4>>2]=n,d=s,n=0|Ai(0|ar[c>>2]),b=0|Pa(A,f,d-r|0,a-A>>2,e),0|n&&Ai(n),-1==(0|b)){s=A,A=10;break}if(A=(0|ar[o>>2])+(b<<2)|0,(0|(ar[o>>2]=A))==(0|t)){A=29;break}if(r=0|ar[f>>2],(0|s)==(0|i))s=i;else{if(s=0|Ai(0|ar[c>>2]),r=0|za(A,r,1,e),0|s&&Ai(s),0|r){r=2,A=28;break}for(ar[o>>2]=4+(0|ar[o>>2]),r=1+(0|ar[f>>2])|0,s=ar[f>>2]=r;;){if((0|s)==(0|i)){s=i;break}if(!(0|tr[s>>0]))break;s=s+1|0}A=0|ar[o>>2]}}do{if(10==(0|A)){A:for(;;){if(ar[o>>2]=s,(0|r)==(0|ar[f>>2])){A=18;break}switch(A=0|Ai(0|ar[c>>2]),s=0|za(s,r,d-r|0,l),0|A&&Ai(A),0|s){case-1:A=15;break A;case-2:A=16;break A;case 0:s=1}r=r+s|0,s=4+(0|ar[o>>2])|0,A=10}if(15==(0|A)){ar[f>>2]=r,r=2,A=28;break}if(16==(0|A)){ar[f>>2]=r,r=1,A=28;break}if(18==(0|A)){r=(0|(ar[f>>2]=r))!=(0|i)&1,A=28;break}}else 29==(0|A)&&(r=0|ar[f>>2],A=32)}while(0);return 28!=(0|A)&&32==(0|A)&&(r=(0|r)!=(0|i)&1),ur=u,0|r},function(A,e,r,i,f,n,t,o){return r|=0,n|=0,o|=0,ar[(f|=0)>>2]=r,ar[o>>2]=n,3},function(A,e,r,i,f,n,t,o){return r|=0,n|=0,o|=0,ar[(f|=0)>>2]=r,ar[o>>2]=n,3},function(A,e,r,i,f,n,t,o){var a;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,A=ur=(e=ur)+31&-32,ur=ur+16|0,t=0|function(A,e,r,i,f,n,t,o){A|=0,e|=0,i|=0,f|=0,n|=0,t|=0,o|=0;var a=0,c=0,l=0,u=0,s=0;ar[(r|=0)>>2]=A,ar[n>>2]=i,2&o?(f-i|0)<3?A=1:(ar[n>>2]=i+1,tr[i>>0]=-17,a=0|ar[n>>2],ar[n>>2]=a+1,tr[a>>0]=-69,a=0|ar[n>>2],ar[n>>2]=a+1,tr[a>>0]=-65,a=4):a=4;A:do{if(4==(0|a))for(s=e,A=0|ar[r>>2];;){if(e>>>0<=A>>>0){A=0;break A}if(i=0|or[A>>1],t>>>0<(u=65535&i)>>>0){A=2;break A}do{if((65535&i)<128){if(A=0|ar[n>>2],(f-A|0)<1){A=1;break A}ar[n>>2]=A+1,tr[A>>0]=i}else{if(l=255&(128|(c=63&u)),(65535&i)<2048){if(A=0|ar[n>>2],(f-A|0)<2){A=1;break A}ar[n>>2]=A+1,tr[A>>0]=u>>>6|192,u=0|ar[n>>2],ar[n>>2]=u+1,tr[u>>0]=l;break}if(o=255&(u>>>12|224),a=255&(u>>>6&63|128),(65535&i)<55296){if(A=0|ar[n>>2],(f-A|0)<3){A=1;break A}ar[n>>2]=A+1,tr[A>>0]=o,u=0|ar[n>>2],ar[n>>2]=u+1,tr[u>>0]=a,u=0|ar[n>>2],ar[n>>2]=u+1,tr[u>>0]=l;break}if(56320<=(65535&i)){if((65535&i)<57344){A=2;break A}if(A=0|ar[n>>2],(f-A|0)<3){A=1;break A}ar[n>>2]=A+1,tr[A>>0]=o,u=0|ar[n>>2],ar[n>>2]=u+1,tr[u>>0]=a,u=0|ar[n>>2],ar[n>>2]=u+1,tr[u>>0]=l;break}if((s-A|0)<4){A=1;break A}if(56320!=(64512&(i=0|lr[(A=A+2|0)>>1])|0)){A=2;break A}if((f-(0|ar[n>>2])|0)<4){A=1;break A}if(t>>>0<(65536+((o=960&u)<<10)|c<<10|1023&i)>>>0){A=2;break A}ar[r>>2]=A,c=1+(o>>>6)|0,l=0|ar[n>>2],ar[n>>2]=l+1,tr[l>>0]=c>>>2|240,l=0|ar[n>>2],ar[n>>2]=l+1,tr[l>>0]=u>>>2&15|c<<4&48|128,l=0|ar[n>>2],ar[n>>2]=l+1,tr[l>>0]=u<<4&48|i>>>6&15|128,u=0|ar[n>>2],ar[n>>2]=u+1,tr[u>>0]=63&i|128}}while(0);A=2+(0|ar[r>>2])|0,ar[r>>2]=A}}while(0);return 0|A}(ar[(a=A+4|0)>>2]=r,i,a,ar[A>>2]=n,t,A,1114111,0),ar[f>>2]=ar[a>>2],ar[o>>2]=ar[A>>2],ur=e,0|t},function(A,e,r,i,f,n,t,o){var a;return A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,A=ur=(e=ur)+31&-32,ur=ur+16|0,t=0|function(A,e,r,i,f,n,t,o){A|=0,e|=0,i|=0,f|=0,n|=0,t|=0,o|=0;var a,c,l=0,u=0,s=0,b=0,d=0,k=0;ar[(r|=0)>>2]=A,ar[n>>2]=i,c=e,4&o|0&&(l=0|ar[r>>2],2<(c-l|0))&&-17==(0|tr[l>>0])&&-69==(0|tr[l+1>>0])&&-65==(0|tr[l+2>>0])&&(ar[r>>2]=l+3);a=f;A:for(;;){if(i=0|ar[r>>2],!(A=i>>>0<e>>>0)){k=40;break}if(d=0|ar[n>>2],f>>>0<=d>>>0){k=40;break}if(s=0|tr[i>>0],t>>>0<(b=255&s)>>>0){A=2;break}A=i+1|0;do{if(-1<s<<24>>24)or[d>>1]=255&s;else{if((255&s)<194){A=2;break A}if(l=c-i|0,o=i+2|0,(255&s)<224){if((0|l)<2){A=1;break A}if(128!=(192&(A=0|cr[A>>0])|0)){A=2;break A}if(t>>>0<(A=63&A|b<<6&1984)>>>0){A=2;break A}or[d>>1]=A,A=o;break}if(u=i+3|0,(255&s)<240){if((0|l)<3){A=1;break A}switch(i=0|tr[o>>0],l=0|cr[A>>0],A=224&l,s<<24>>24){case-32:if(160==(0|A))break;A=2;break A;case-19:if(128==(0|A))break;A=2;break A;default:if(128!=(192&l|0)){A=2;break A}}if(128!=(192&(A=255&i)|0)){A=2;break A}if(t>>>0<(65535&(A=l<<6&4032|b<<12|63&A))>>>0){A=2;break A}or[d>>1]=A,A=u;break}if(245<=(255&s)){A=2;break A}if((0|l)<4){A=1;break A}switch(l=0|tr[A>>0],A=0|tr[o>>0],i=0|tr[u>>0],u=255&l,s<<24>>24){case-16:if(48<=(l+112&255)){A=2;break A}break;case-12:if(128==(240&u|0))break;A=2;break A;default:if(128!=(192&u|0)){A=2;break A}}if(128!=(192&(o=255&A)|0)){A=2;break A}if(128!=(192&(A=255&i)|0)){A=2;break A}if((a-d|0)<4){A=1;break A}if(t>>>0<(u<<12&258048|(i=7&b)<<18|4032&(l=o<<6)|(A&=63))>>>0){A=2;break A}or[d>>1]=u<<2&60|o>>>4&3|16320+((u>>>4&3|i<<2)<<6)|55296,d=d+2|0,ar[n>>2]=d,or[d>>1]=A|960&l|56320,A=4+(0|ar[r>>2])|0}}while(0);ar[r>>2]=A,ar[n>>2]=2+(0|ar[n>>2])}40==(0|k)&&(A&=1);return 0|A}(ar[(a=A+4|0)>>2]=r,i,a,ar[A>>2]=n,t,A,1114111,0),ar[f>>2]=ar[a>>2],ar[o>>2]=ar[A>>2],ur=e,0|t},Hu,Hu,Hu,Hu,Hu],bs=[function(){g(11)},function(){W()},function(){var A,e,r,i=0,f=0,n=0,t=0,o=0;t=ur=ur+31&-32,ur=ur+48|0,r=t+32|0,A=t+24|0,o=t+16|0,t=(e=t)+36|0,0|(i=0|iu())&&0|(n=0|ar[i>>2])&&(1126902528==(-256&(f=0|ar[(i=n+48|0)>>2])|0)&1129074247==(0|(i=0|ar[i+4>>2]))||(ar[A>>2]=49345,fu(49295,A)),i=1126902529==(0|f)&1129074247==(0|i)?0|ar[n+44>>2]:n+80|0,ar[t>>2]=i,n=0|ar[n>>2],i=0|ar[n+4>>2],0|ns[63&ar[16+(0|ar[884])>>2]](3536,n,t)?(o=0|ar[t>>2],o=0|is[127&ar[8+(0|ar[o>>2])>>2]](o),ar[e>>2]=49345,ar[e+4>>2]=i,ar[e+8>>2]=o,fu(49209,e)):(ar[o>>2]=49345,ar[o+4>>2]=i,fu(49254,o))),fu(49333,r)},function(){var A,e;e=ur=(A=ur)+31&-32,ur=ur+16|0,0|CA(54456,311)?fu(49533,e):ur=A}],ds=[xu,function(A){var e,r,i;ar[(A|=0)>>2]=3872,ar[(e=A+56|0)>>2]=3892,ar[(r=A+4|0)>>2]=3908,(0|tr[11+(i=A+36|0)>>0])<0&&Vl(0|ar[i>>2]),si(r),ci(e)},function(A){var e,r,i;ar[(A|=0)>>2]=3872,ar[(e=A+56|0)>>2]=3892,ar[(r=A+4|0)>>2]=3908,(0|tr[11+(i=A+36|0)>>0])<0&&Vl(0|ar[i>>2]),si(r),ci(e),Vl(A)},function(A){var e,r,i;A=(A|=0)+(0|ar[(0|ar[A>>2])-12>>2])|0,ar[A>>2]=3872,ar[(e=A+56|0)>>2]=3892,ar[(r=A+4|0)>>2]=3908,(0|tr[11+(i=A+36|0)>>0])<0&&Vl(0|ar[i>>2]),si(r),ci(e)},function(A){var e,r,i;A=(A|=0)+(0|ar[(0|ar[A>>2])-12>>2])|0,ar[A>>2]=3872,ar[(e=A+56|0)>>2]=3892,ar[(r=A+4|0)>>2]=3908,(0|tr[11+(i=A+36|0)>>0])<0&&Vl(0|ar[i>>2]),si(r),ci(e),Vl(A)},function(A){var e;ar[(A|=0)>>2]=3908,(0|tr[11+(e=A+32|0)>>0])<0&&Vl(0|ar[e>>2]),si(A)},function(A){var e;ar[(A|=0)>>2]=3908,(0|tr[11+(e=A+32|0)>>0])<0&&Vl(0|ar[e>>2]),si(A),Vl(A)},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(f=i;i=f+-8|0,ar[n>>2]=i,(f=0|ar[f+-4>>2])&&(Il(f),i=0|ar[n>>2]),(0|i)!=(0|r);)f=i;r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(i=0|ar[A+24>>2])&&((0|ar[(r=A+28|0)>>2])!=(0|i)&&(ar[r>>2]=i),Vl(i))},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(f=i;i=f+-8|0,ar[n>>2]=i,(f=0|ar[f+-4>>2])&&(Il(f),i=0|ar[n>>2]),(0|i)!=(0|r);)f=i;r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),Vl(A)},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=4e3,0|(r=0|ar[A+64>>2])&&((0|(f=0|ar[(i=A+68|0)>>2]))!=(0|r)&&(ar[i>>2]=f+(~((f+-4-r|0)>>>2)<<2)),Vl(r)),ar[A>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(;f=i+-8|0,ar[n>>2]=f,(0|(i=(i=0|ar[i+-4>>2])?(Il(i),0|ar[n>>2]):f))!=(0|r););r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(i=0|ar[A+24>>2])&&((0|ar[(r=A+28|0)>>2])!=(0|i)&&(ar[r>>2]=i),Vl(i))},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=4e3,0|(r=0|ar[A+64>>2])&&((0|(f=0|ar[(i=A+68|0)>>2]))!=(0|r)&&(ar[i>>2]=f+(~((f+-4-r|0)>>>2)<<2)),Vl(r)),ar[A>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(;f=i+-8|0,ar[n>>2]=f,(0|(i=(i=0|ar[i+-4>>2])?(Il(i),0|ar[n>>2]):f))!=(0|r););r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),Vl(A)},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(f=i;i=f+-8|0,ar[n>>2]=i,(f=0|ar[f+-4>>2])&&(Il(f),i=0|ar[n>>2]),(0|i)!=(0|r);)f=i;r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),Vl(A)},function(A){var e,r,i;ar[(A|=0)>>2]=4060,ar[(e=A+64|0)>>2]=4100,ar[A+8>>2]=4080,ar[(r=A+12|0)>>2]=3908,(0|tr[11+(i=A+44|0)>>0])<0&&Vl(0|ar[i>>2]),si(r),ci(e)},function(A){var e,r,i;ar[(A|=0)>>2]=4060,ar[(e=A+64|0)>>2]=4100,ar[A+8>>2]=4080,ar[(r=A+12|0)>>2]=3908,(0|tr[11+(i=A+44|0)>>0])<0&&Vl(0|ar[i>>2]),si(r),ci(e),Vl(A)},function(A){var e,r,i;ar[(A=(A|=0)+-8|0)>>2]=4060,ar[(e=A+64|0)>>2]=4100,ar[A+8>>2]=4080,ar[(r=A+12|0)>>2]=3908,(0|tr[11+(i=A+44|0)>>0])<0&&Vl(0|ar[i>>2]),si(r),ci(e)},function(A){var e,r,i;ar[(A=(A|=0)+-8|0)>>2]=4060,ar[(e=A+64|0)>>2]=4100,ar[A+8>>2]=4080,ar[(r=A+12|0)>>2]=3908,(0|tr[11+(i=A+44|0)>>0])<0&&Vl(0|ar[i>>2]),si(r),ci(e),Vl(A)},function(A){var e,r,i;A=(A|=0)+(0|ar[(0|ar[A>>2])-12>>2])|0,ar[A>>2]=4060,ar[(e=A+64|0)>>2]=4100,ar[A+8>>2]=4080,ar[(r=A+12|0)>>2]=3908,(0|tr[11+(i=A+44|0)>>0])<0&&Vl(0|ar[i>>2]),si(r),ci(e)},function(A){var e,r,i;A=(A|=0)+(0|ar[(0|ar[A>>2])-12>>2])|0,ar[A>>2]=4060,ar[(e=A+64|0)>>2]=4100,ar[A+8>>2]=4080,ar[(r=A+12|0)>>2]=3908,(0|tr[11+(i=A+44|0)>>0])<0&&Vl(0|ar[i>>2]),si(r),ci(e),Vl(A)},mi,pi,function(A){mi((A|=0)+(0|ar[(0|ar[A>>2])-12>>2])|0)},function(A){pi((A|=0)+(0|ar[(0|ar[A>>2])-12>>2])|0)},Vi,Xi,function(A){Vi((A|=0)+-8|0)},function(A){Xi((A|=0)+-8|0)},function(A){Vi((A|=0)+(0|ar[(0|ar[A>>2])-12>>2])|0)},function(A){Xi((A|=0)+(0|ar[(0|ar[A>>2])-12>>2])|0)},Wi,Ii,function(A){Wi((A|=0)+(0|ar[(0|ar[A>>2])-12>>2])|0)},function(A){Ii((A|=0)+(0|ar[(0|ar[A>>2])-12>>2])|0)},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4156,ar[(r=A+16|0)>>2]=4e3,0|(i=0|ar[A+80>>2])&&((0|(n=0|ar[(f=A+84|0)>>2]))!=(0|i)&&(ar[f>>2]=n+(~((n+-4-i|0)>>>2)<<2)),Vl(i)),ar[r>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(;n=f+-8|0,ar[t>>2]=n,(0|(f=(f=0|ar[f+-4>>2])?(Il(f),0|ar[t>>2]):n))!=(0|i););i=0|ar[e>>2]}Vl(i)}ar[r>>2]=3840,(i=0|ar[A+40>>2])&&((0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i)),vl()},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4156,ar[(r=A+16|0)>>2]=4e3,0|(i=0|ar[A+80>>2])&&((0|(n=0|ar[(f=A+84|0)>>2]))!=(0|i)&&(ar[f>>2]=n+(~((n+-4-i|0)>>>2)<<2)),Vl(i)),ar[r>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(;n=f+-8|0,ar[t>>2]=n,(0|(f=(f=0|ar[f+-4>>2])?(Il(f),0|ar[t>>2]):n))!=(0|i););i=0|ar[e>>2]}Vl(i)}if(ar[r>>2]=3840,!(i=0|ar[A+40>>2]))return vl(),void Vl(A);(0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4184,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}ar[r>>2]=3840,(i=0|ar[A+40>>2])&&((0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i)),vl()},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4184,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}if(ar[r>>2]=3840,!(i=0|ar[A+40>>2]))return vl(),void Vl(A);(0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4212,ar[(r=A+16|0)>>2]=4240,(0|tr[(i=A+92|0)+11>>0])<0&&Vl(0|ar[i>>2]),ar[r>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(;n=f+-8|0,ar[t>>2]=n,(0|(f=(f=0|ar[f+-4>>2])?(Il(f),0|ar[t>>2]):n))!=(0|i););i=0|ar[e>>2]}Vl(i)}ar[r>>2]=3840,(i=0|ar[A+40>>2])&&((0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i)),vl()},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4212,ar[(r=A+16|0)>>2]=4240,(0|tr[(i=A+92|0)+11>>0])<0&&Vl(0|ar[i>>2]),ar[r>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(;n=f+-8|0,ar[t>>2]=n,(0|(f=(f=0|ar[f+-4>>2])?(Il(f),0|ar[t>>2]):n))!=(0|i););i=0|ar[e>>2]}Vl(i)}if(ar[r>>2]=3840,!(i=0|ar[A+40>>2]))return vl(),void Vl(A);(0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=4240,(0|tr[(r=A+76|0)+11>>0])<0&&Vl(0|ar[r>>2]),ar[A>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(;f=i+-8|0,ar[n>>2]=f,(0|(i=(i=0|ar[i+-4>>2])?(Il(i),0|ar[n>>2]):f))!=(0|r););r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(i=0|ar[A+24>>2])&&((0|ar[(r=A+28|0)>>2])!=(0|i)&&(ar[r>>2]=i),Vl(i))},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=4240,(0|tr[(r=A+76|0)+11>>0])<0&&Vl(0|ar[r>>2]),ar[A>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(;f=i+-8|0,ar[n>>2]=f,(0|(i=(i=0|ar[i+-4>>2])?(Il(i),0|ar[n>>2]):f))!=(0|r););r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),Vl(A)},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4268,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}ar[r>>2]=3840,(i=0|ar[A+40>>2])&&((0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i)),vl()},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4268,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}if(ar[r>>2]=3840,!(i=0|ar[A+40>>2]))return vl(),void Vl(A);(0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(f=i;i=f+-8|0,ar[n>>2]=i,(f=0|ar[f+-4>>2])&&(Il(f),i=0|ar[n>>2]),(0|i)!=(0|r);)f=i;r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),Vl(A)},function(A){ar[(A|=0)>>2]=4324,ec(A+16|0),vl()},function(A){ar[(A|=0)>>2]=4324,ec(A+16|0),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},ec,function(A){ec(A|=0),Vl(A)},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4380,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}ar[r>>2]=3840,(i=0|ar[A+40>>2])&&((0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i)),vl()},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4380,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}if(ar[r>>2]=3840,!(i=0|ar[A+40>>2]))return vl(),void Vl(A);(0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(f=i;i=f+-8|0,ar[n>>2]=i,(f=0|ar[f+-4>>2])&&(Il(f),i=0|ar[n>>2]),(0|i)!=(0|r);)f=i;r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),Vl(A)},function(A){ar[(A|=0)>>2]=4436,Ac(A+16|0),vl()},function(A){ar[(A|=0)>>2]=4436,Ac(A+16|0),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},Ac,function(A){Ac(A|=0),Vl(A)},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4492,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}ar[r>>2]=3840,(i=0|ar[A+40>>2])&&((0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i)),vl()},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4492,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}if(ar[r>>2]=3840,!(i=0|ar[A+40>>2]))return vl(),void Vl(A);(0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(f=i;i=f+-8|0,ar[n>>2]=i,(f=0|ar[f+-4>>2])&&(Il(f),i=0|ar[n>>2]),(0|i)!=(0|r);)f=i;r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),Vl(A)},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4548,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}ar[r>>2]=3840,(i=0|ar[A+40>>2])&&((0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i)),vl()},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4548,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}if(ar[r>>2]=3840,!(i=0|ar[A+40>>2]))return vl(),void Vl(A);(0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(f=i;i=f+-8|0,ar[n>>2]=i,(f=0|ar[f+-4>>2])&&(Il(f),i=0|ar[n>>2]),(0|i)!=(0|r);)f=i;r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),Vl(A)},function(A){ar[(A|=0)>>2]=4604,mn(A+16|0),vl()},function(A){ar[(A|=0)>>2]=4604,mn(A+16|0),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},mn,function(A){mn(A|=0),Vl(A)},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4660,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}ar[r>>2]=3840,(i=0|ar[A+40>>2])&&((0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i)),vl()},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4660,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}if(ar[r>>2]=3840,!(i=0|ar[A+40>>2]))return vl(),void Vl(A);(0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(f=i;i=f+-8|0,ar[n>>2]=i,(f=0|ar[f+-4>>2])&&(Il(f),i=0|ar[n>>2]),(0|i)!=(0|r);)f=i;r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),Vl(A)},gn,function(A){gn(A|=0),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=4744,0|(r=0|ar[A+68>>2])&&((0|ar[(i=A+72|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),(0|tr[(r=A+56|0)+11>>0])<0&&Vl(0|ar[r>>2]),ar[A>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(;f=i+-8|0,ar[n>>2]=f,(0|(i=(i=0|ar[i+-4>>2])?(Il(i),0|ar[n>>2]):f))!=(0|r););r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(i=0|ar[A+24>>2])&&((0|ar[(r=A+28|0)>>2])!=(0|i)&&(ar[r>>2]=i),Vl(i))},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=4744,0|(r=0|ar[A+68>>2])&&((0|ar[(i=A+72|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),(0|tr[(r=A+56|0)+11>>0])<0&&Vl(0|ar[r>>2]),ar[A>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(;f=i+-8|0,ar[n>>2]=f,(0|(i=(i=0|ar[i+-4>>2])?(Il(i),0|ar[n>>2]):f))!=(0|r););r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),Vl(A)},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4772,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}ar[r>>2]=3840,(i=0|ar[A+40>>2])&&((0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i)),vl()},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4772,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}if(ar[r>>2]=3840,!(i=0|ar[A+40>>2]))return vl(),void Vl(A);(0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(f=i;i=f+-8|0,ar[n>>2]=i,(f=0|ar[f+-4>>2])&&(Il(f),i=0|ar[n>>2]),(0|i)!=(0|r);)f=i;r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),Vl(A)},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4828,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}ar[r>>2]=3840,(i=0|ar[A+40>>2])&&((0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i)),vl()},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4828,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}if(ar[r>>2]=3840,!(i=0|ar[A+40>>2]))return vl(),void Vl(A);(0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(f=i;i=f+-8|0,ar[n>>2]=i,(f=0|ar[f+-4>>2])&&(Il(f),i=0|ar[n>>2]),(0|i)!=(0|r);)f=i;r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),Vl(A)},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4884,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}ar[r>>2]=3840,(i=0|ar[A+40>>2])&&((0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i)),vl()},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=4884,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}if(ar[r>>2]=3840,!(i=0|ar[A+40>>2]))return vl(),void Vl(A);(0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(f=i;i=f+-8|0,ar[n>>2]=i,(f=0|ar[f+-4>>2])&&(Il(f),i=0|ar[n>>2]),(0|i)!=(0|r);)f=i;r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),Vl(A)},function(A){ar[(A|=0)>>2]=4940,hn(A+16|0),vl()},function(A){ar[(A|=0)>>2]=4940,hn(A+16|0),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},hn,function(A){hn(A|=0),Vl(A)},function(A){ar[(A|=0)>>2]=4996,sn(A+16|0),vl()},function(A){ar[(A|=0)>>2]=4996,sn(A+16|0),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=5024,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}ar[r>>2]=3840,(i=0|ar[A+40>>2])&&((0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i)),vl()},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=5024,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}if(ar[r>>2]=3840,!(i=0|ar[A+40>>2]))return vl(),void Vl(A);(0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(f=i;i=f+-8|0,ar[n>>2]=i,(f=0|ar[f+-4>>2])&&(Il(f),i=0|ar[n>>2]),(0|i)!=(0|r);)f=i;r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),Vl(A)},function(A){ar[(A|=0)>>2]=5080,on(A+16|0),vl()},function(A){ar[(A|=0)>>2]=5080,on(A+16|0),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},on,function(A){on(A|=0),Vl(A)},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=5136,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}ar[r>>2]=3840,(i=0|ar[A+40>>2])&&((0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i)),vl()},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=5136,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}if(ar[r>>2]=3840,!(i=0|ar[A+40>>2]))return vl(),void Vl(A);(0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(f=i;i=f+-8|0,ar[n>>2]=i,(f=0|ar[f+-4>>2])&&(Il(f),i=0|ar[n>>2]),(0|i)!=(0|r);)f=i;r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),Vl(A)},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=5192,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}ar[r>>2]=3840,(i=0|ar[A+40>>2])&&((0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i)),vl()},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=5192,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}if(ar[r>>2]=3840,!(i=0|ar[A+40>>2]))return vl(),void Vl(A);(0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(f=i;i=f+-8|0,ar[n>>2]=i,(f=0|ar[f+-4>>2])&&(Il(f),i=0|ar[n>>2]),(0|i)!=(0|r);)f=i;r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),Vl(A)},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=5248,ar[(r=A+16|0)>>2]=5276,(0|tr[(i=A+72|0)+11>>0])<0&&Vl(0|ar[i>>2]),ar[r>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(;n=f+-8|0,ar[t>>2]=n,(0|(f=(f=0|ar[f+-4>>2])?(Il(f),0|ar[t>>2]):n))!=(0|i););i=0|ar[e>>2]}Vl(i)}ar[r>>2]=3840,(i=0|ar[A+40>>2])&&((0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i)),vl()},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=5248,ar[(r=A+16|0)>>2]=5276,(0|tr[(i=A+72|0)+11>>0])<0&&Vl(0|ar[i>>2]),ar[r>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(;n=f+-8|0,ar[t>>2]=n,(0|(f=(f=0|ar[f+-4>>2])?(Il(f),0|ar[t>>2]):n))!=(0|i););i=0|ar[e>>2]}Vl(i)}if(ar[r>>2]=3840,!(i=0|ar[A+40>>2]))return vl(),void Vl(A);(0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=5276,(0|tr[(r=A+56|0)+11>>0])<0&&Vl(0|ar[r>>2]),ar[A>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(;f=i+-8|0,ar[n>>2]=f,(0|(i=(i=0|ar[i+-4>>2])?(Il(i),0|ar[n>>2]):f))!=(0|r););r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(i=0|ar[A+24>>2])&&((0|ar[(r=A+28|0)>>2])!=(0|i)&&(ar[r>>2]=i),Vl(i))},function(A){var e,r=0,i=0,f=0,n=0;if(ar[(A|=0)>>2]=5276,(0|tr[(r=A+56|0)+11>>0])<0&&Vl(0|ar[r>>2]),ar[A>>2]=3972,0|(r=0|ar[(e=A+44|0)>>2])){if((0|(i=0|ar[(n=A+48|0)>>2]))!=(0|r)){for(;f=i+-8|0,ar[n>>2]=f,(0|(i=(i=0|ar[i+-4>>2])?(Il(i),0|ar[n>>2]):f))!=(0|r););r=0|ar[e>>2]}Vl(r)}ar[A>>2]=3840,(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),Vl(A)},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=5304,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}ar[r>>2]=3840,(i=0|ar[A+40>>2])&&((0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i)),vl()},function(A){var e,r,i=0,f=0,n=0,t=0;if(ar[(A|=0)>>2]=5304,ar[(r=A+16|0)>>2]=3972,0|(i=0|ar[(e=A+60|0)>>2])){if((0|(f=0|ar[(t=A+64|0)>>2]))!=(0|i)){for(n=f;f=n+-8|0,ar[t>>2]=f,(n=0|ar[n+-4>>2])&&(Il(n),f=0|ar[t>>2]),(0|f)!=(0|i);)n=f;i=0|ar[e>>2]}Vl(i)}if(ar[r>>2]=3840,!(i=0|ar[A+40>>2]))return vl(),void Vl(A);(0|ar[(f=A+44|0)>>2])!=(0|i)&&(ar[f>>2]=i),Vl(i),vl(),Vl(A)},function(A){ds[511&ar[4+(0|ar[(A=(A|=0)+16|0)>>2])>>2]](A)},function(A){Vl(A|=0)},sn,function(A){sn(A|=0),Vl(A)},function(A){var e,r,i;ar[(A|=0)>>2]=5384,ar[(e=A+60|0)>>2]=5404,ar[(r=A+8|0)>>2]=3908,(0|tr[11+(i=A+40|0)>>0])<0&&Vl(0|ar[i>>2]),si(r),ci(e)},function(A){var e,r,i;ar[(A|=0)>>2]=5384,ar[(e=A+60|0)>>2]=5404,ar[(r=A+8|0)>>2]=3908,(0|tr[11+(i=A+40|0)>>0])<0&&Vl(0|ar[i>>2]),si(r),ci(e),Vl(A)},function(A){var e,r,i;A=(A|=0)+(0|ar[(0|ar[A>>2])-12>>2])|0,ar[A>>2]=5384,ar[(e=A+60|0)>>2]=5404,ar[(r=A+8|0)>>2]=3908,(0|tr[11+(i=A+40|0)>>0])<0&&Vl(0|ar[i>>2]),si(r),ci(e)},function(A){var e,r,i;A=(A|=0)+(0|ar[(0|ar[A>>2])-12>>2])|0,ar[A>>2]=5384,ar[(e=A+60|0)>>2]=5404,ar[(r=A+8|0)>>2]=3908,(0|tr[11+(i=A+40|0)>>0])<0&&Vl(0|ar[i>>2]),si(r),ci(e),Vl(A)},function(A){var e=0;ar[(A|=0)>>2]=5420,Rc(A+52|0,0|ar[A+56>>2]),(0|tr[(e=A+20|0)+11>>0])<0&&Vl(0|ar[e>>2]),(e=0|ar[A+16>>2])&&Bl(e),vl()},function(A){var e=0;if(ar[(A|=0)>>2]=5420,Rc(A+52|0,0|ar[A+56>>2]),(0|tr[(e=A+20|0)+11>>0])<0&&Vl(0|ar[e>>2]),!(e=0|ar[A+16>>2]))return vl(),void Vl(A);Bl(e),vl(),Vl(A)},function(A){var e;Rc((A|=0)+52|0,0|ar[A+56>>2]),(0|tr[11+(e=A+20|0)>>0])<0&&Vl(0|ar[e>>2]),(A=0|ar[A+16>>2])&&Bl(A)},function(A){Vl(A|=0)},function(A){ar[(A|=0)>>2]=5824,cA(0|ar[A+16>>2]),vl()},function(A){ar[(A|=0)>>2]=5824,cA(0|ar[A+16>>2]),vl(),Vl(A)},function(A){var e,r,i;r=e=(A|=0)+16|0,i=0|ar[A+12>>2],i|=0,ur=(i=ur)+16|0,cA(0|aA(0|ar[(r|=0)>>2],0,50608,0|i)),cA(0|ar[r>>2]),ar[r>>2]=1,cA(0),ur=i,cA(0|ar[e>>2])},function(A){Vl(A|=0)},function(A){ar[(A|=0)>>2]=5852,Te(A+12|0),vl()},function(A){ar[(A|=0)>>2]=5852,Te(A+12|0),vl(),Vl(A)},function(A){Te((A|=0)+12|0)},function(A){Vl(A|=0)},function(A){ar[(A|=0)>>2]=5892,Bc(A+12|0),vl()},function(A){ar[(A|=0)>>2]=5892,Bc(A+12|0),vl(),Vl(A)},function(A){Bc((A|=0)+12|0)},function(A){Vl(A|=0)},function(A){ar[(A|=0)>>2]=5920,Ue(A+12|0),vl()},function(A){ar[(A|=0)>>2]=5920,Ue(A+12|0),vl(),Vl(A)},function(A){Ue((A|=0)+12|0)},function(A){Vl(A|=0)},function(A){var e,r,i=0;ar[(A|=0)>>2]=5948,e=A+12|0,0|(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),0<=(0|tr[11+e>>0])||Vl(0|ar[e>>2]),vl()},function(A){var e,r,i=0;if(ar[(A|=0)>>2]=5948,e=A+12|0,0|(r=0|ar[A+24>>2])&&((0|ar[(i=A+28|0)>>2])!=(0|r)&&(ar[i>>2]=r),Vl(r)),0<=(0|tr[11+e>>0]))return vl(),void Vl(A);Vl(0|ar[e>>2]),vl(),Vl(A)},function(A){var e,r;e=(A|=0)+12|0,0|(r=0|ar[A+24>>2])&&((0|ar[(A=A+28|0)>>2])!=(0|r)&&(ar[A>>2]=r),Vl(r)),0<=(0|tr[11+e>>0])||Vl(0|ar[e>>2])},function(A){Vl(A|=0)},function(A){(function(A){(function(A){if((0|ar[375892+(A|=0)>>2])<=0)return;!function(A){var e,r,i,f=0;{if(_u(e=420+(A|=0)|0),tr[A>>0]=1,Fu(),Xu(r=A+448|0),!(0<(0|ar[(i=A+156|0)>>2])))return WA(0|e),vA(0|r);f=0}for(;ZA(0|ar[A+28+(f<<2)>>2],0),f=f+1|0,(0|f)<(0|ar[i>>2]););WA(0|e),vA(0|r)}(A+375396|0)})(A|=0),0|A&&ds[511&ar[4+(0|ar[A>>2])>>2]](A);if(A=0|ar[12486],ar[12486]=A-1,(0|(A=A+-1|0))<0)return ar[12486]=1+(0|ar[12486]),A=12;if(0|A)return A=0;(function(){$o(0|ar[12653]),ar[12653]=0})(),A=0})(0|ar[(A|=0)>>2]),A&&Vl(A)},dr,function(A){dr(A|=0),Vl(A)},function(A){0},function(A){Vl(A|=0)},function(A){0},function(A){Vl(A|=0)},function(A){var e,r,i,f,n,t,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0;ar[(t=(A|=0)+4|0)>>2]=1,bo(0|ar[(n=A+12|0)>>2],A),o=0|ar[n>>2],u=(w=0|ar[o+5820>>2])+-1|0,i=1<<(s=0|ar[o+5804>>2]),l=A+24|0,ho(o,A,u,0|ar[(f=A+8|0)>>2],0|ar[l>>2]),0<(0|(o=0|ar[f>>2]))&&(ho(0|ar[n>>2],A,u,o+-1|0,0|ar[l>>2]),o=0|ar[f>>2]),a=o+1|0,c=0|ar[n>>2],(0|a)<(0|ar[c+5828>>2])&&(ho(c,A,u,a,0|ar[l>>2]),o=0|ar[f>>2]),r=A+16|0,function(A,e,r,i){A|=0,r|=0,i|=0;var f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;if(c=(0|(c=0|ar[(e|=0)+28>>2]))<(0|i)?c:i,1&r|0&&br(30091,29989,535,30106),1&c|0&&br(30122,29989,536,30106),n=(7+(0|ar[A+5760>>2])|0)/8|0,b=(7+(0|ar[A+5768>>2])|0)/8|0,(0|(i=0|ar[(t=e+40|0)>>2]))!=(0|(f=0|ar[(o=A+40|0)>>2]))){if((0|r)<(0|c)&&(l=A+4|0,u=e+4|0,s=e+24|0,a=0|sr(n,r),Eu(0|(f=(0|ar[l>>2])+(0|sr(a,f))|0),0|(a=(0|ar[u>>2])+(0|sr(a,i))|0),0|sr(0|ar[s>>2],n)),(0|(a=r+1|0))<(0|c)))for(i=a;a=0|sr(i,n),Eu(0|(f=(0|ar[l>>2])+(0|sr(a,0|ar[o>>2]))|0),0|(a=(0|ar[u>>2])+(0|sr(a,0|ar[t>>2]))|0),0|sr(0|ar[s>>2],n)),(0|(i=i+1|0))<(0|c););}else Eu(0|(s=(0|ar[A+4>>2])+(0|sr(0|sr(n,r),i))|0),(0|ar[e+4>>2])+(0|sr(0|sr(i,r),n))|0,0|sr(0|sr(n,c-r|0),i));if(i=(0|r)/(0|(a=0|ar[e+5784>>2]))|0,a=(0|c)/(0|a)|0,0|ar[e+20>>2]){if((0|(f=0|ar[(c=e+44|0)>>2]))==(0|(n=0|ar[(r=A+44|0)>>2])))return u=0|sr(i,b),l=0|sr(u,f),s=0|sr(a-i|0,b),Eu((0|ar[A+8>>2])+l|0,(0|ar[e+8>>2])+l|0,0|sr(s,f)),b=0|ar[r>>2],u=0|sr(u,b),Eu((0|ar[A+12>>2])+u|0,(0|ar[e+12>>2])+u|0,0|sr(s,b));if(!((0|a)<=(0|i)))for(l=A+8|0,u=e+8|0,s=e+32|0,o=A+12|0,t=e+12|0;e=0|sr(i,b),Eu(0|(n=(0|ar[l>>2])+(0|sr(e,n))|0),0|(A=(0|ar[u>>2])+(0|sr(e,f))|0),0|sr(0|ar[s>>2],b)),Eu(0|(A=(0|ar[o>>2])+(0|sr(e,0|ar[r>>2]))|0),0|(e=(0|ar[t>>2])+(0|sr(e,0|ar[c>>2]))|0),0|sr(0|ar[s>>2],b)),(0|(i=i+1|0))!=(0|a);)n=0|ar[r>>2],f=0|ar[c>>2]}}(0|ar[(e=A+20|0)>>2],0|ar[r>>2],o<<s,o+1<<s),o=0|ar[n>>2];A:do{if(0<(0|ar[o+5820>>2])){h=0;do{if(s=0|ar[f>>2],a=(0|sr(0|ar[o+10352>>2],s))+h|0,a=0|lr[(0|ar[o+10340>>2])+(24*a|0)+2>>1],c=0|ar[o+48>>2],a>>>0>=(0|ar[o+52>>2])-c>>2>>>0)break A;if(!(k=0|ar[c+(a<<2)>>2]))break A;do{if(0|tr[k+325>>0]){if(a=0|ar[r>>2],l=0|ar[a+4>>2],a=0|ar[a+40>>2],c=0|ar[e>>2],u=0|ar[c+4>>2],c=0|ar[c+40>>2],8<(0|ar[o+5760>>2])){Jo(o,h,s,k,0,i,i,l,a,u,c);break}Zn(o,h,s,k,0,i,i,l,a,u,c);break}}while(0);do{if(0|tr[k+326>>0]){if(c=0|ar[n>>2],b=(0|i)/(0|ar[c+5780>>2])|0,d=(0|i)/(0|ar[c+5784>>2])|0,l=0|ar[f>>2],a=0|ar[r>>2],u=0|ar[a+8>>2],a=0|ar[a+44>>2],o=0|ar[e>>2],s=0|ar[o+8>>2],o=0|ar[o+44>>2],(8<(0|ar[c+5768>>2])?Jo:Zn)(c,h,l,k,1,b,d,u,a,s,o),u=0|ar[n>>2],s=0|ar[f>>2],a=0|ar[r>>2],c=0|ar[a+12>>2],a=0|ar[a+44>>2],o=0|ar[e>>2],l=0|ar[o+12>>2],o=0|ar[o+44>>2],8<(0|ar[u+5768>>2])){Jo(u,h,s,k,2,b,d,c,a,l,o);break}Zn(u,h,s,k,2,b,d,c,a,l,o);break}}while(0);h=h+1|0,o=0|ar[n>>2]}while((0|h)<(0|ar[o+5820>>2]))}}while(0);if(!(0<(0|w)))return w=o,ar[t>>2]=3,void ko(w,A);for(a=0;Ln((0|ar[o+10524>>2])+(80*((0|sr(0|ar[f>>2],0|ar[o+5820>>2]))+a|0)|0)|0,4),a=a+1|0,o=0|ar[n>>2],(0|a)!=(0|w););ar[t>>2]=3,ko(o,A)},function(A){Vl(A|=0)},function(A){var e,r,i,f=0,n=0,t=0,o=0;e=0|ar[(A|=0)+20>>2],r=0|ar[(n=18596+e|0)>>2],ar[(i=A+4|0)>>2]=1,bo(r,A),n=0|ar[n>>2],t=0|ar[4+e>>2],f=0|ar[n+5836>>2],o=0|ar[n+5820>>2],(0|t)<(0|f)&&(f=0|ar[(0|ar[n+10284>>2])+(t<<2)>>2]),ar[e>>2]=f,ar[8+e>>2]=(0|f)%(0|o)|0,ar[12+e>>2]=(0|f)/(0|o)|0,f=A+8|0;do{if(0|tr[f>>0]){if(!(0|In(e)))return ar[i>>2]=3,Kn(44+(0|ar[18608+e>>2])|0,1),void ko(r,A)}else{if(n=0|ar[18600+e>>2],(t=0|ar[n+796>>2])>>>0<3){Ct(18580+e|0,t,0|ar[n+792>>2]),tr[(o=18588+e|0)>>0]=0,tr[o+1>>0]=0,tr[o+2>>0]=0,tr[o+3>>0]=0;break}br(32537,32568,1508,32577)}}while(0);dt(18556+e|0),Bn(e,0,0!=(0|tr[f>>0])),ar[i>>2]=3,Kn(44+(0|ar[18608+e>>2])|0,1),ko(r,A)},function(A){Vl(A|=0)},function(A){var e,r,i,f,n,t,o=0,a=0,c=0,l=0,u=0,s=0;if(f=0|ar[(A|=0)+16>>2],n=0|ar[(l=18596+f|0)>>2],r=0|ar[(i=5820+n|0)>>2],ar[(t=A+4|0)>>2]=1,bo(n,A),l=0|ar[l>>2],c=0|ar[4+f>>2],a=0|ar[l+5836>>2],u=0|ar[l+5820>>2],(0|c)<(0|a)&&(a=0|ar[(0|ar[l+10284>>2])+(c<<2)>>2]),ar[f>>2]=a,ar[(c=8+f|0)>>2]=(0|a)%(0|u)|0,ar[(l=12+f|0)>>2]=(0|a)/(0|u)|0,e=(0|a)/(0|r)|0,0|tr[(a=A+8|0)>>0]&&!(0|In(f))){if(0<(0|r))for(c=10524+n|0,a=0|sr(e,r),o=0;Ln((0|ar[c>>2])+(80*(o+a|0)|0)|0,1),(0|(o=o+1|0))!=(0|r););return ar[t>>2]=3,Kn(44+(0|ar[18608+f>>2])|0,1),void ko(n,A)}dt(18556+f|0),Bn(f,1,a=0|tr[a>>0]?0==(0|tr[12+(0|ar[18600+f>>2])>>0]):0);A:do{if((0|ar[l>>2])==(0|e)&&(s=0|ar[i>>2],o=0|ar[c>>2],(0|o)<(0|s)))for(u=5828+n|0,c=0|sr(e,r),l=10524+n|0,a=s;;){if((0|o)<(0|a)&&(0|e)<(0|ar[u>>2])&&Ln((0|ar[l>>2])+(80*(o+c|0)|0)|0,1),(0|(o=o+1|0))==(0|s))break A;a=0|ar[i>>2]}}while(0);ar[t>>2]=3,Kn(44+(0|ar[18608+f>>2])|0,1),ko(n,A)},function(A){Vl(A|=0)},function(A){var e,r,i,f,n,t,o,a,c=0,l=0,u=0,s=0,b=0,d=0,k=0;ar[(a=(A|=0)+4|0)>>2]=1,bo(0|ar[(t=A+8|0)>>2],A),e=0|ar[t>>2],i=0|ar[10472+e>>2],d=(0|ar[5812+e>>2])/4|0,c=0|ar[(n=A+12|0)>>2],r=0|sr(c,d),d=0|sr(l=c+1|0,d),d=(0|(b=0|ar[10476+e>>2]))<(0|d)?b:d,f=(k=0!=(0|tr[(b=A+16|0)>>0]))?2:3,u=(o=0|ar[5820+e>>2])-1|0,k?ho(e,A,u,(0|(k=(0|ar[5828+e>>2])-1|0))<(0|l)?k:l,1):(0<(0|c)?(ho(e,A,u,c+-1|0,2),l=0|ar[t>>2],c=0|ar[n>>2]):l=e,ho(l,A,u,c,2),c=1+(0|ar[n>>2])|0,l=0|ar[t>>2],(0|c)<(0|ar[l+5828>>2])&&ho(l,A,u,c,2)),c=0|ar[t>>2],l=0|ar[n>>2],0|tr[b>>0]?(k=0|Gt(c,l),c=0|ar[t>>2],u=0|sr(0|ar[c+10352>>2],0|ar[n>>2]),tr[(0|ar[c+10340>>2])+(24*u|0)+21>>0]=1&k,k&&(l=0!=(0|tr[b>>0]),s=11)):(k=0|sr(0|ar[c+10352>>2],l),0|tr[(0|ar[c+10340>>2])+(24*k|0)+21>>0]&&(l=0,s=11));do{if(11==(0|s)&&(Vt(c,l,r,d,0,i),c=0|ar[t>>2],l=0!=(0|tr[b>>0]),(8<(0|ar[c+5760>>2])?Xt:_t)(c,l,r,d,0,i),l=0|ar[t>>2],0|ar[l+5776>>2])){if(c=0!=(0|tr[b>>0]),8<(0|ar[l+5768>>2])){Ft(l,c,r,d,0,i);break}Nt(l,c,r,d,0,i);break}}while(0);if(c=0|ar[t>>2],!(0<(0|o)))return k=c,ar[a>>2]=3,void ko(k,A);for(l=0;Ln((0|ar[c+10524>>2])+(80*((0|sr(0|ar[n>>2],0|ar[c+5820>>2]))+l|0)|0)|0,f),l=l+1|0,c=0|ar[t>>2],(0|l)!=(0|o););ar[a>>2]=3,ko(c,A)},li,function(A){li(A|=0),Vl(A)},si,function(A){si(A|=0),Vl(A)},hi,function(A){hi(A|=0),Vl(A)},Zi,Ci,function(A){Zi((A|=0)+(0|ar[(0|ar[A>>2])-12>>2])|0)},function(A){Ci((A|=0)+(0|ar[(0|ar[A>>2])-12>>2])|0)},Ei,Gi,function(A){Ei((A|=0)+(0|ar[(0|ar[A>>2])-12>>2])|0)},function(A){Gi((A|=0)+(0|ar[(0|ar[A>>2])-12>>2])|0)},rf,function(A){rf(A|=0),Vl(A)},ff,function(A){ff(A|=0),Vl(A)},nf,function(A){nf(A|=0),Vl(A)},of,function(A){of(A|=0),Vl(A)},cf,function(A){cf(A|=0),Vl(A)},function(A){0|(A|=0)&&ds[511&ar[4+(0|ar[A>>2])>>2]](A)},uf,function(A){uf(),Vl(A|=0)},function(A){lf()},function(A){lf(),Vl(A|=0)},function(A){lf()},function(A){lf(),Vl(A|=0)},function(A){lf()},function(A){lf(),Vl(A|=0)},function(A){lf(A|=0)},function(A){lf(A|=0),Vl(A)},function(A){lf(A|=0)},function(A){lf(A|=0),Vl(A)},function(A){lf(A|=0)},function(A){lf(A|=0),Vl(A)},function(A){ge((A|=0)+8|0),lf()},function(A){ge((A|=0)+8|0),lf(),Vl(A)},function(A){ge((A|=0)+8|0),lf()},function(A){ge((A|=0)+8|0),lf(),Vl(A)},function(A){lf(A|=0)},function(A){lf(A|=0),Vl(A)},function(A){lf(A|=0)},function(A){lf(A|=0),Vl(A)},function(A){lf(A|=0)},function(A){lf(A|=0),Vl(A)},function(A){lf(A|=0)},function(A){lf(A|=0),Vl(A)},function(A){lf(A|=0)},function(A){lf(A|=0),Vl(A)},function(A){lf(A|=0)},function(A){lf(A|=0),Vl(A)},function(A){lf(A|=0)},function(A){lf(A|=0),Vl(A)},function(A){lf(A|=0)},function(A){lf(A|=0),Vl(A)},function(A){lf(A|=0)},function(A){lf(A|=0),Vl(A)},function(A){lf(A|=0)},function(A){lf(A|=0),Vl(A)},lf,function(A){lf(A|=0),Vl(A)},function(A){lf(A|=0),Vl(A)},Pc,function(A){Pc(A|=0),Vl(A)},Lc,function(A){Lc(A|=0),Vl(A)},Kc,function(A){Kc(A|=0),Vl(A)},el,function(A){el(A|=0),Vl(A)},rl,function(A){rl(A|=0),Vl(A)},function(A){lf(),Vl(A|=0)},function(A){lf(),Vl(A|=0)},function(A){lf(),Vl(A|=0)},function(A){lf(),Vl(A|=0)},function(A){lf(),Vl(A|=0)},gl,function(A){gl(),Vl(A|=0)},nu,function(A){nu(),Vl(A|=0)},function(A){0},function(A){0},function(A){nu(),Vl(A|=0)},uu,function(A){uu(A|=0),Vl(A)},function(A){uu(A|=0),Vl(A)},function(A){nu(),Vl(A|=0)},function(A){nu(),Vl(A|=0)},function(A){nu(),Vl(A|=0)},function(A){nu(),Vl(A|=0)},function(A){ar[(A|=0)>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0,tr[A+11>>0]=5,tr[A>>0]=0|tr[26561],tr[A+1>>0]=0|tr[26562],tr[A+2>>0]=0|tr[26563],tr[A+3>>0]=0|tr[26564],tr[A+4>>0]=0|tr[26565],tr[A+5>>0]=0},function(A){var e;(A|=0)&&(0|(e=0|ar[A+4>>2])&&Il(e),Vl(A))},function(A){var e=0;(A|=0)&&(0|(e=0|ar[A+12>>2])&&Il(e),0|(e=0|ar[A+4>>2])&&Il(e),Vl(A))},function(A){var e;(A|=0)&&((0|tr[11+(e=A+8|0)>>0])<0&&Vl(0|ar[e>>2]),Vl(A))},function(A){(A|=0)&&Vl(A)},function(A){var e,r,i,f=0;(A|=0)&&(ar[(f=A+32|0)>>2]=5384,ar[(e=A+92|0)>>2]=5404,ar[(r=A+40|0)>>2]=3908,(0|tr[11+(i=A+72|0)>>0])<0&&Vl(0|ar[i>>2]),si(r),yi(),ci(e),(0|tr[(f=A+20|0)+11>>0])<0&&Vl(0|ar[f>>2]),Vl(A))},function(A){(A|=0)&&Vl(A)},function(A){var e,r=0;(A|=0)&&(ar[A>>2]=3840,0|(e=0|ar[A+24>>2])&&((0|ar[(r=A+28|0)>>2])!=(0|e)&&(ar[r>>2]=e),Vl(e)),Vl(A))},function(A){(A|=0)&&ds[511&ar[8+(0|ar[A>>2])>>2]](A)},function(A){var e;(A|=0)&&(0|(e=0|ar[A+4>>2])&&Il(e),Vl(A))},function(A){(A|=0)&&(Bc(A),Vl(A))},function(A){var e;(A|=0)&&(0|(e=0|ar[A+4>>2])&&Il(e),Vl(A))},function(A){var e=0;(A|=0)&&(0|(e=0|ar[A+12>>2])&&Il(e),0|(e=0|ar[A+4>>2])&&Il(e),Vl(A))},function(A){var e;(A|=0)&&(0|(e=0|ar[A+4>>2])&&Il(e),Vl(A))},function(A){(A|=0)&&Vl(A)},function(A){var e=0,r=0,i=0;if(A|=0){if(0|(e=0|ar[A>>2])){if((0|(r=0|ar[(i=A+4|0)>>2]))!=(0|e)){for(;r=r+-12|0,ar[i>>2]=r,(0|tr[r+11>>0])<0&&(Vl(0|ar[r>>2]),r=0|ar[i>>2]),(0|r)!=(0|e););e=0|ar[A>>2]}Vl(e)}Vl(A)}},function(A){var e,r=0,i=0;(A|=0)&&(0|(e=0|ar[A>>2])&&((0|(i=0|ar[(r=A+4|0)>>2]))!=(0|e)&&(ar[r>>2]=i+(~((i+-4-e|0)>>>2)<<2)),Vl(e)),Vl(A))},function(A){var e;A|=0,e=0|ar[13137],ar[13137]=1+e,ar[A+4>>2]=1+e},function(A){!function(A){var e,r,i;e=0|ar[4+(A|=0)>>2],i=0|ar[A+8>>2],r=(0|ar[A>>2])+(i>>1)|0,A=1&i?0|ar[(0|ar[r>>2])+e>>2]:e;ds[511&A](r)}(0|ar[ar[(A|=0)>>2]>>2])},function(A){0},$o,function(A){var e,r;r=ur=(e=ur)+31&-32,ur=ur+16|0,$o(A|=0),0|EA(0|ar[13614],0)?fu(49583,r):ur=e},xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu,xu],ks=[ju,function(A,e){},function(A,e){var r,i;A|=0,e|=0,r=0|El(4),ar[r>>2]=0,ar[A>>2]=ar[1495],ar[A+4>>2]=ar[1496],ar[A+8>>2]=ar[1497],A=0|(i=(i=0)|ar[12486],ar[12486]=i+1,!((i+1|0)<=1)||(function(){var A=0,e=0,r=0,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0;t=1;do{for(f=0|ar[6168+(t<<2)>>2],o=1<<t,e=A=0;;){for(n=255&A,r=0,i=e;tr[f+(i<<1)>>0]=r,tr[f+(i<<1)+1>>0]=n,(0|(r=r+1|0))!=(0|o);)i=i+1|0;if((0|(A=A+1|0))==(0|o))break;e=e+o|0}for(f=0|ar[6112+(t<<2)>>2],e=A=0;;){for(n=255&A,r=0,i=e;tr[f+(i<<1)>>0]=n,(0|(r=(tr[f+(i<<1)+1>>0]=r)+1|0))!=(0|o);)i=i+1|0;if((0|(A=A+1|0))==(0|o))break;e=e+o|0}f=0|ar[6140+(t<<2)>>2],n=o<<t,A=e=0;do{if(-1<(0|e))for(i=0,r=e;(0|r)<(0|o)&(0|i)<(0|o)&&(tr[f+(A<<1)>>0]=i,tr[f+(A<<1)+1>>0]=r,A=A+1|0),e=i+1|0,0<(0|r);)i=e,r=r+-1|0;else e=0}while((0|A)<(0|n));t=t+1|0}while(6!=(0|t));a=2;do{c=1<<a,l=(1<<(b=a+-2|0)<<b)-1|0,u=6112+(b<<2)|0,s=6140+(b<<2)|0,b=6168+(b<<2)|0,o=0;do{d=0|ar[6196+(24*o|0)+(a<<2)>>2],n=(h=2==(0|o))?60010:0,t=0;do{switch(k=t<<a,0|o){case 0:i=0|ar[s>>2],r=0;do{for(A=16,e=l;A=(f=0==(0|A))?15:A+-1|0,(((0|cr[i+((e=(f<<31>>31)+e|0)<<1)>>0])<<2)+(0|cr[57282+(A<<1)>>0])|0)!=(0|r)||(((0|cr[i+(e<<1)+1>>0])<<2)+(0|cr[57282+(A<<1)+1>>0])|0)!=(0|t););tr[d+((f=r+k|0)<<1)>>0]=e,tr[d+(f<<1)+1>>0]=A,r=r+1|0}while((0|r)<(0|c));break;case 1:i=0|ar[b>>2],r=0;do{for(A=16,e=l;A=(f=0==(0|A))?15:A+-1|0,(((0|cr[i+((e=(f<<31>>31)+e|0)<<1)>>0])<<2)+(0|cr[54554+(A<<1)>>0])|0)!=(0|r)||(((0|cr[i+(e<<1)+1>>0])<<2)+(0|cr[54554+(A<<1)+1>>0])|0)!=(0|t););tr[d+((f=r+k|0)<<1)>>0]=e,tr[d+(f<<1)+1>>0]=A,r=r+1|0}while((0|r)<(0|c));break;default:i=0;do{for(f=i+k|0,e=h?0|ar[u>>2]:0,A=16,r=l;A=(w=0==(0|A))?15:A+-1|0,(((0|cr[e+((r=(w<<31>>31)+r|0)<<1)>>0])<<2)+(0|cr[n+(A<<1)>>0])|0)!=(0|i)||(((0|cr[e+(r<<1)+1>>0])<<2)+(0|cr[n+(A<<1)+1>>0])|0)!=(0|t););tr[d+(f<<1)>>0]=r,tr[d+(f<<1)+1>>0]=A,i=i+1|0}while((0|i)<(0|c))}t=t+1|0}while((0|t)<(0|c));o=o+1|0}while(3!=(0|o));a=a+1|0}while(6!=(0|a))}(),0|function(){var A=0,e=0,r=0,i=0,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0;if(!(A=0|qo(11296)))return(m=0)|m;Vu(0|A,-1,11296),ar[12653]=A,ar[12654]=A,ar[12655]=A,ar[12656]=A,ar[12657]=A,ar[12658]=A,ar[12659]=A,ar[12660]=A,s=A+16|0,ar[12661]=s,ar[12662]=s,ar[12663]=s,ar[12664]=s,ar[12665]=s,ar[12666]=s,ar[12667]=s,ar[12668]=s,ar[12669]=A+32,ar[12670]=A+96,ar[12671]=A+160,ar[12672]=A+224,ar[12673]=A+288,ar[12674]=A+352,ar[12675]=A+416,ar[12676]=A+480,ar[12677]=A+544,ar[12678]=A+608,ar[12679]=A+672,ar[12680]=A+736,ar[12681]=A+800,ar[12682]=A+864,ar[12683]=A+928,ar[12684]=A+992,s=A+1056|0,ar[12685]=s,ar[12689]=s,s=A+1312|0,ar[12686]=s,ar[12690]=s,s=A+1568|0,ar[12687]=s,ar[12691]=s,s=A+1824|0,ar[12688]=s,ar[12692]=s,s=A+2080|0,ar[12693]=s,ar[12697]=s,s=A+2336|0,ar[12694]=s,ar[12698]=s,s=A+2592|0,ar[12695]=s,ar[12699]=s,s=A+2848|0,ar[12696]=s,ar[12700]=s,s=A+3104|0,ar[12701]=s,ar[12705]=s,s=A+4128|0,ar[12702]=s,ar[12706]=s,s=A+5152|0,ar[12703]=s,ar[12707]=s,s=A+6176|0,ar[12704]=s,ar[12708]=s,s=A+7200|0,ar[12709]=s,ar[12713]=s,s=A+8224|0,ar[12710]=s,ar[12714]=s,s=A+9248|0,ar[12711]=s,ar[12715]=s,s=A+10272|0,ar[12712]=s,ar[12716]=s,s=2;A:for(;;){d=1==(0|(h=(b=1<<s)>>2)),k=s+-2|0,h=2==(0|h),u=0;do{w=0==(0|u),l=0;do{v=0==(0|l)?9:15,c=0;do{g=50612+(k<<6)+(u<<5)+(l<<4)+(c<<2)|0,a=0;do{if(i=a<<2,m=a<<s,f=0-a|0,n=a>>2,o=0==(0|(t=3&a))?2:1==(0|t)&1,d){e=0;do{if(A=0|cr[34815+(e+i)>>0],A=w?A:A+27|0,r=(0|ar[g>>2])+(e+m)|0,!((o=0|tr[r>>0])<<24>>24==-1|(255&o|0)==(0|A))){e=28;break A}tr[r>>0]=A,e=e+1|0}while((0|e)<(0|b))}else{r=0;do{do{if((0|r)!=(0|f)){switch(e=r>>2,A=3&r,0|c){case 0:A=2<(A=A+t|0)>>>0?0:0|A?1:2;break;case 1:A=o;break;case 2:A=0==(0|A)?2:1==(0|A)&1;break;default:A=2}if(w){if(A=0<(e+n|0)?A+3|0:A,h){A=A+v|0;break}A=A+21|0;break}if(h){A=A+9|0;break}A=A+12|0;break}A=0}while(0);if(A=w?A:A+27|0,e=(0|ar[g>>2])+(r+m)|0,!((i=0|tr[e>>0])<<24>>24==-1|(255&i|0)==(0|A))){e=28;break A}tr[e>>0]=A,r=r+1|0}while((0|r)<(0|b))}a=a+1|0}while((0|a)<(0|b));c=c+1|0}while((0|c)<4);l=l+1|0}while((0|l)<2);u=u+1|0}while((0|u)<2);if(6<=(0|(s=s+1|0))){A=1,e=30;break}}if(28==(0|e))br(34831,32568,2100,34907);else if(30==(0|e))return 0|A;return 0}())?(function(A){var e=0,r=0,i=0,f=0,n=0,t=0,o=0,a=0;for(ar[84+(A|=0)>>2]=0,ar[A+168>>2]=0,ar[A>>2]=6064,function(A){ar[(A|=0)>>2]=1,ar[A+4>>2]=9,ar[A+8>>2]=1,ar[A+12>>2]=1,ar[A+16>>2]=1,ar[A+20>>2]=2,ar[A+24>>2]=1,ar[A+28>>2]=1,ar[A+32>>2]=2,ar[A+36>>2]=2,ar[A+40>>2]=2,ar[A+44>>2]=2,ar[A+48>>2]=3,ar[A+52>>2]=4,ar[A+56>>2]=5,ar[A+60>>2]=6,ar[A+64>>2]=7,ar[A+68>>2]=8,ar[A+72>>2]=9,ar[A+76>>2]=10,ar[A+80>>2]=11,ar[A+84>>2]=12,ar[A+88>>2]=13,ar[A+92>>2]=14,ar[A+96>>2]=15,ar[A+100>>2]=16,ar[A+104>>2]=17,ar[A+108>>2]=18,ar[A+112>>2]=3,ar[A+116>>2]=4,ar[A+120>>2]=4,ar[A+124>>2]=4,ar[A+128>>2]=2,ar[A+132>>2]=3,ar[A+136>>2]=4,ar[A+140>>2]=5,ar[A+144>>2]=6,ar[A+148>>2]=7,ar[A+152>>2]=8,ar[A+156>>2]=9,ar[A+160>>2]=10,ar[A+164>>2]=11,ar[A+168>>2]=12,ar[A+172>>2]=13,ar[A+176>>2]=14,ar[A+180>>2]=15,ar[A+184>>2]=16,ar[A+188>>2]=17,ar[A+204>>2]=65,ar[A+212>>2]=14,ar[A+208>>2]=15,ar[A+192>>2]=66,ar[A+200>>2]=67,ar[A+196>>2]=68,ar[A+216>>2]=69,ar[A+220>>2]=70,ar[A+224>>2]=71,ar[A+228>>2]=72,ar[A+232>>2]=73,ar[A+236>>2]=16,ar[A+240>>2]=17,ar[A+244>>2]=18,ar[A+248>>2]=19,ar[A+252>>2]=20,ar[A+256>>2]=21,ar[A+260>>2]=54,ar[A+284>>2]=4,ar[A+288>>2]=5,ar[A+296>>2]=6,ar[A+292>>2]=7,ar[A+300>>2]=8,ar[A+264>>2]=22,ar[A+268>>2]=23,ar[A+272>>2]=24,ar[A+276>>2]=25,ar[A+280>>2]=26,ar[A+304>>2]=74,ar[A+308>>2]=75,ar[A+312>>2]=76,ar[A+316>>2]=77,ar[A+320>>2]=78,ar[A+324>>2]=79,ar[A+328>>2]=80,ar[A+332>>2]=81,ar[A+336>>2]=82}(A+172|0),ar[A>>2]=6040,function(A){var e;for(tr[(A|=0)>>0]=0,tr[A+1>>0]=0,e=48+(A=A+4|0)|0;((ar[A>>2]=0)|(A=A+4|0))<(0|e););}(A+548|0),ar[A+1192>>2]=0,ar[A+1196>>2]=0,ar[A+1200>>2]=0,ar[(e=A+1228|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[e+16>>2]=0,ar[e+20>>2]=0,ar[A+1848>>2]=0,ar[A+1852>>2]=0,ar[A+1856>>2]=0,ar[(e=A+1884|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[e+16>>2]=0,ar[e+20>>2]=0,ar[A+2504>>2]=0,ar[A+2508>>2]=0,ar[A+2512>>2]=0,ar[(e=A+2540|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[e+16>>2]=0,ar[e+20>>2]=0,ar[A+3160>>2]=0,ar[A+3164>>2]=0,ar[A+3168>>2]=0,ar[(e=A+3196|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[e+16>>2]=0,ar[e+20>>2]=0,ar[A+3816>>2]=0,ar[A+3820>>2]=0,ar[A+3824>>2]=0,ar[(e=A+3852|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[e+16>>2]=0,ar[e+20>>2]=0,ar[A+4472>>2]=0,ar[A+4476>>2]=0,ar[A+4480>>2]=0,ar[(e=A+4508|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[e+16>>2]=0,ar[e+20>>2]=0,ar[A+5128>>2]=0,ar[A+5132>>2]=0,ar[A+5136>>2]=0,ar[(e=A+5164|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[e+16>>2]=0,ar[e+20>>2]=0,ar[A+5784>>2]=0,ar[A+5788>>2]=0,ar[A+5792>>2]=0,ar[(e=A+5820|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[e+16>>2]=0,ar[e+20>>2]=0,ar[A+6440>>2]=0,ar[A+6444>>2]=0,ar[A+6448>>2]=0,ar[(e=A+6476|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[e+16>>2]=0,ar[e+20>>2]=0,ar[A+7096>>2]=0,ar[A+7100>>2]=0,ar[A+7104>>2]=0,ar[(e=A+7132|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[e+16>>2]=0,ar[e+20>>2]=0,ar[A+7752>>2]=0,ar[A+7756>>2]=0,ar[A+7760>>2]=0,ar[(e=A+7788|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[e+16>>2]=0,ar[e+20>>2]=0,ar[A+8408>>2]=0,ar[A+8412>>2]=0,ar[A+8416>>2]=0,ar[(e=A+8444|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[e+16>>2]=0,ar[e+20>>2]=0,ar[A+9064>>2]=0,ar[A+9068>>2]=0,ar[A+9072>>2]=0,ar[(e=A+9100|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[e+16>>2]=0,ar[e+20>>2]=0,ar[A+9720>>2]=0,ar[A+9724>>2]=0,ar[A+9728>>2]=0,ar[(e=A+9756|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[e+16>>2]=0,ar[e+20>>2]=0,ar[A+10376>>2]=0,ar[A+10380>>2]=0,ar[A+10384>>2]=0,ar[(e=A+10412|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[e+16>>2]=0,ar[e+20>>2]=0,ar[A+11032>>2]=0,ar[A+11036>>2]=0,ar[A+11040>>2]=0,ar[(e=A+11068|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[e+16>>2]=0,ar[e+20>>2]=0,Qn(A+11096|0),Qn(A+16264|0),Qn(A+21432|0),Qn(A+26600|0),Qn(A+31768|0),Qn(A+36936|0),Qn(A+42104|0),Qn(A+47272|0),Qn(A+52440|0),Qn(A+57608|0),Qn(A+62776|0),Qn(A+67944|0),Qn(A+73112|0),Qn(A+78280|0),Qn(A+83448|0),Qn(A+88616|0),e=0;_o(A+93784+(4400*e|0)|0),64!=(0|(e=e+1|0)););for(ar[(n=A+375400|0)>>2]=0,ar[n+4>>2]=0,ar[n+8>>2]=0,ar[n+12>>2]=0,ar[n+16>>2]=0,ar[n+20>>2]=0,function(A){var e,r=0;for(e=48+(r=8+(A|=0)|0)|0;((ar[r>>2]=0)|(r=r+4|0))<(0|e););ar[A>>2]=30,ar[A+4>>2]=30}(A+376148|0),ar[A+377216>>2]=0,ar[A+377220>>2]=0,ar[A+377224>>2]=0,tr[A+512>>0]=0,tr[A+513>>0]=1,tr[A+514>>0]=0,tr[A+532>>0]=0,tr[A+533>>0]=0,ar[(n=A+516|0)>>2]=-1,ar[n+4>>2]=-1,ar[n+8>>2]=-1,ar[n+12>>2]=-1,e=0|ar[4+(n=6080)>>2],ar[(t=A+536|0)>>2]=ar[n>>2],ar[t+4>>2]=e,ar[A+544>>2]=0,ar[A+375384>>2]=0,ar[A+375388>>2]=0,ar[A+375392>>2]=0,ar[A+375892>>2]=0,ar[(t=A+375896|0)>>2]=6,ar[A+375900>>2]=100,ar[A+375904>>2]=6,ar[A+375912>>2]=6,ar[A+375908>>2]=100,e=6;;){if((0|(i=(0|(n=100*e|0))/7|0))<=(0|(n=(n+100|0)/7|0)))for(f=n-i|0,r=i;a=0|ar[t>>2],e=(o=(0|a)<(0|e))?a:e,tr[A+375916+(r<<1)>>0]=e,tr[A+375916+(r<<1)+1>>0]=o?100:255&((100*(r-i|0)|0)/(0|f)|0),(0|r)<(0|n);)r=r+1|0;if(ar[A+376120+(e<<2)>>2]=n,!(0<(0|e)))break;e=e+-1|0}ar[(a=A+376204|0)>>2]=0,ar[a+4>>2]=0,ar[a+8>>2]=0,ar[a+12>>2]=0,ar[a+16>>2]=0,ar[a+20>>2]=0,tr[A+376208>>0]=1,ar[a>>2]=-1}(i=0|El(377232)),0|i):(ar[12486]=(0|ar[12486])-1,(i=0)|i)),er(ar[r>>2]=A,7,1),er(A,8,1),ar[e>>2]=r},function(A,e){A|=0,e|=0;var r,i,f=0,n=0;if(ur=(i=ur)+112|0,r=(f=i)+4|0,ar[f>>2]=ar[e+8>>2],Sa(r,32371,f),ar[A>>2]=0,ar[A+4>>2]=0,4294967279<(e=(ar[A+8>>2]=0)|ta(r))>>>0&&Nl(),e>>>0<11){if(!(tr[A+11>>0]=e))return tr[(f=(f=A)+e|0)>>0]=0,void(ur=i)}else f=0|El(n=e+16&-16),ar[A>>2]=f,ar[A+8>>2]=-2147483648|n,ar[A+4>>2]=e,A=f;Eu(0|A,0|r,0|e),tr[(n=(n=A)+e|0)>>0]=0,ur=i},function(A,e){A|=0;var r,i,f=0,n=0;if(ur=(i=ur)+112|0,r=(f=i)+8|0,n=0|ar[(e|=0)+16>>2],ar[f>>2]=ar[e+12>>2],ar[f+4>>2]=n,Sa(r,32517,f),ar[A>>2]=0,ar[A+4>>2]=0,4294967279<(e=(ar[A+8>>2]=0)|ta(r))>>>0&&Nl(),e>>>0<11){if(!(tr[A+11>>0]=e))return tr[(n=(n=A)+e|0)>>0]=0,void(ur=i)}else n=0|El(f=e+16&-16),ar[A>>2]=n,ar[A+8>>2]=-2147483648|f,ar[A+4>>2]=e,A=n;Eu(0|A,0|r,0|e),tr[(n=(n=A)+e|0)>>0]=0,ur=i},function(A,e){A|=0,e|=0;var r,i,f=0,n=0;if(ur=(i=ur)+112|0,r=(f=i)+4|0,ar[f>>2]=ar[e+12>>2],Sa(r,32991,f),ar[A>>2]=0,ar[A+4>>2]=0,4294967279<(e=(ar[A+8>>2]=0)|ta(r))>>>0&&Nl(),e>>>0<11){if(!(tr[A+11>>0]=e))return tr[(f=(f=A)+e|0)>>0]=0,void(ur=i)}else f=0|El(n=e+16&-16),ar[A>>2]=f,ar[A+8>>2]=-2147483648|n,ar[A+4>>2]=e,A=f;Eu(0|A,0|r,0|e),tr[(n=(n=A)+e|0)>>0]=0,ur=i},function(A,e){A|=0,e|=0;var r,i,f=0,n=0;if(ur=(i=ur)+112|0,r=(f=i)+4|0,ar[f>>2]=ar[e+12>>2],Sa(r,41415,f),ar[A>>2]=0,ar[A+4>>2]=0,4294967279<(e=(ar[A+8>>2]=0)|ta(r))>>>0&&Nl(),e>>>0<11){if(!(tr[A+11>>0]=e))return tr[(f=(f=A)+e|0)>>0]=0,void(ur=i)}else f=0|El(n=e+16&-16),ar[A>>2]=f,ar[A+8>>2]=-2147483648|n,ar[A+4>>2]=e,A=f;Eu(0|A,0|r,0|e),tr[(n=(n=A)+e|0)>>0]=0,ur=i},function(A,e){},function(A,e){e|=0,is[127&ar[24+(0|ar[(A|=0)>>2])>>2]](A),e=0|bf(e,54336),ar[A+36>>2]=e,e=1&(0|is[127&ar[28+(0|ar[e>>2])>>2]](e)),tr[A+44>>0]=e},function(A,e){e|=0,is[127&ar[24+(0|ar[(A|=0)>>2])>>2]](A),e=0|bf(e,54328),ar[A+36>>2]=e,e=1&(0|is[127&ar[28+(0|ar[e>>2])>>2]](e)),tr[A+44>>0]=e},function(A,e){A|=0;var r=0,i=0;i=0|bf(e|=0,54336),ar[(r=A+36|0)>>2]=i,i=0|is[127&ar[24+(0|ar[i>>2])>>2]](i),ar[(e=A+44|0)>>2]=i,r=0|ar[r>>2],r=1&(0|is[127&ar[28+(0|ar[r>>2])>>2]](r)),tr[A+53>>0]=r,8<(0|ar[e>>2])&&me()},function(A,e){A|=0;var r=0,i=0;i=0|bf(e|=0,54328),ar[(r=A+36|0)>>2]=i,i=0|is[127&ar[24+(0|ar[i>>2])>>2]](i),ar[(e=A+44|0)>>2]=i,r=0|ar[r>>2],r=1&(0|is[127&ar[28+(0|ar[r>>2])>>2]](r)),tr[A+53>>0]=r,8<(0|ar[e>>2])&&me()},function(A,e){for(e|=0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,e=ar[A+8>>2]=0;3!=(0|e);)e=e+1|(ar[A+(e<<2)>>2]=0)},function(A,e){for(e|=0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,e=ar[A+8>>2]=0;3!=(0|e);)e=e+1|(ar[A+(e<<2)>>2]=0)},function(A,e){for(e|=0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,e=ar[A+8>>2]=0;3!=(0|e);)e=e+1|(ar[A+(e<<2)>>2]=0)},function(A,e){var r;e|=0,r=ur=(e=ur)+31&-32,ur=ur+16|0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0,pe(A,tr[A+11>>0]=1,45),Ni(A+1|(tr[r>>0]=0),r),ur=e},function(A,e){tr[(A|=0)>>0]=2,tr[A+1>>0]=3,tr[A+2>>0]=0,tr[A+3>>0]=4},function(A,e){tr[(A|=0)>>0]=2,tr[A+1>>0]=3,tr[A+2>>0]=0,tr[A+3>>0]=4},function(A,e){for(e|=0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,e=ar[A+8>>2]=0;3!=(0|e);)e=e+1|(ar[A+(e<<2)>>2]=0)},function(A,e){for(e|=0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,e=ar[A+8>>2]=0;3!=(0|e);)e=e+1|(ar[A+(e<<2)>>2]=0)},function(A,e){for(e|=0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,e=ar[A+8>>2]=0;3!=(0|e);)e=e+1|(ar[A+(e<<2)>>2]=0)},function(A,e){var r;e|=0,r=ur=(e=ur)+31&-32,ur=ur+16|0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0,pe(A,tr[A+11>>0]=1,45),Ni(A+1|(tr[r>>0]=0),r),ur=e},function(A,e){tr[(A|=0)>>0]=2,tr[A+1>>0]=3,tr[A+2>>0]=0,tr[A+3>>0]=4},function(A,e){tr[(A|=0)>>0]=2,tr[A+1>>0]=3,tr[A+2>>0]=0,tr[A+3>>0]=4},function(A,e){for(e|=0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,e=ar[A+8>>2]=0;3!=(0|e);)e=e+1|(ar[A+(e<<2)>>2]=0)},function(A,e){for(e|=0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,e=ar[A+8>>2]=0;3!=(0|e);)e=e+1|(ar[A+(e<<2)>>2]=0)},function(A,e){for(e|=0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,e=ar[A+8>>2]=0;3!=(0|e);)e=e+1|(ar[A+(e<<2)>>2]=0)},function(A,e){var r;e|=0,r=ur=(e=ur)+31&-32,ur=ur+16|0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0,NA(A,tr[A+8+3>>0]=1,45),sf(A+4|(ar[r>>2]=0),r),ur=e},function(A,e){tr[(A|=0)>>0]=2,tr[A+1>>0]=3,tr[A+2>>0]=0,tr[A+3>>0]=4},function(A,e){tr[(A|=0)>>0]=2,tr[A+1>>0]=3,tr[A+2>>0]=0,tr[A+3>>0]=4},function(A,e){for(e|=0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,e=ar[A+8>>2]=0;3!=(0|e);)e=e+1|(ar[A+(e<<2)>>2]=0)},function(A,e){for(e|=0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,e=ar[A+8>>2]=0;3!=(0|e);)e=e+1|(ar[A+(e<<2)>>2]=0)},function(A,e){for(e|=0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,e=ar[A+8>>2]=0;3!=(0|e);)e=e+1|(ar[A+(e<<2)>>2]=0)},function(A,e){var r;e|=0,r=ur=(e=ur)+31&-32,ur=ur+16|0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0,NA(A,tr[A+8+3>>0]=1,45),sf(A+4|(ar[r>>2]=0),r),ur=e},function(A,e){tr[(A|=0)>>0]=2,tr[A+1>>0]=3,tr[A+2>>0]=0,tr[A+3>>0]=4},function(A,e){tr[(A|=0)>>0]=2,tr[A+1>>0]=3,tr[A+2>>0]=0,tr[A+3>>0]=4},function(A,e){},function(A,e){},function(A,e){Rl(A|=0,(e|=0)+12|0)},function(A,e){e|=0;var r,i,f,n=0;r=ur=(f=ur)+31&-32,ur=ur+16|0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,4294967279<(i=(ar[A+8>>2]=0)|Fi(49071))>>>0&&Nl(),i>>>0<11?(tr[A+11>>0]=i,e=A):(e=0|El(n=16+i&-16),ar[A>>2]=e,ar[A+8>>2]=-2147483648|n,ar[A+4>>2]=i),di(e,49071,i),Ni(e+i|(tr[r>>0]=0),r),ur=f},function(A,e){e|=0;var r,i,f,n=0;r=ur=(f=ur)+31&-32,ur=ur+16|0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,4294967279<(i=(ar[A+8>>2]=0)|Fi(49065))>>>0&&Nl(),i>>>0<11?(tr[A+11>>0]=i,e=A):(e=0|El(n=16+i&-16),ar[A>>2]=e,ar[A+8>>2]=-2147483648|n,ar[A+4>>2]=i),di(e,49065,i),Ni(e+i|(tr[r>>0]=0),r),ur=f},function(A,e){Rl(A|=0,(e|=0)+16|0)},function(A,e){e|=0;var r,i,f,n=0;r=ur=(f=ur)+31&-32,ur=ur+16|0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,1073741807<(i=(ar[A+8>>2]=0)|Ae(15548))>>>0&&Nl();do{if(2<=i>>>0){if(!(1073741823<(e=4+i&-4)>>>0)){n=0|El(e<<2),ar[A>>2]=n,ar[A+8>>2]=-2147483648|e,ar[A+4>>2]=i;break}kA()}else tr[A+8+3>>0]=i,n=A}while(0);vi(n,15548,i),sf(n+(i<<2)|(ar[r>>2]=0),r),ur=f},function(A,e){e|=0;var r,i,f,n=0;r=ur=(f=ur)+31&-32,ur=ur+16|0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,1073741807<(i=(ar[A+8>>2]=0)|Ae(15524))>>>0&&Nl();do{if(2<=i>>>0){if(!(1073741823<(e=4+i&-4)>>>0)){n=0|El(e<<2),ar[A>>2]=n,ar[A+8>>2]=-2147483648|e,ar[A+4>>2]=i;break}kA()}else tr[A+8+3>>0]=i,n=A}while(0);vi(n,15524,i),sf(n+(i<<2)|(ar[r>>2]=0),r),ur=f},function(A,e){e|=0,ds[511&(A|=0)](e)},function(A,e){e|=0,ds[511&(A|=0)](e)},function(A,e){var r,i;A|=0,i=0|ar[(e|=0)+4>>2],ar[(r=A)>>2]=ar[e>>2],ar[r+4>>2]=i,Jl(A+8|0,e+8|0)},xf,function(A,e){var r,i;return A|=0,ur=(i=ur)+16|0,r=i,(e|=0)?(ar[r>>2]=0,hs[127&ar[ar[e>>2]>>2]](A,e,r)):(ar[A>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0),void(ur=i)},function(A,e){var r,i,f,n;A|=0,e|=0,ur=(n=ur)+32|0,ar[(r=(i=n)+24|0)>>2]=0,ar[(f=4+r|0)>>2]=0,An(i,e,r),A=0|ar[i>>2]?A+4|(ar[A>>2]=0):(ar[A>>2]=ar[r>>2],ar[A+4>>2]=ar[f>>2],ar[r>>2]=0,f),((ar[A>>2]=0)|tr[(A=i+8|0)+11>>0])<0&&Vl(0|ar[A>>2]),ur=((A=0|ar[f>>2])&&Il(A),n)},function(A,e){var r,i;return A|=0,ur=(i=ur)+16|0,r=i,(e|=0)?(ar[r>>2]=0,hs[127&ar[ar[e>>2]>>2]](A,e,r)):(ar[A>>2]=0,ar[A+4>>2]=0,ar[A+8>>2]=0),void(ur=i)},Ec,function(A,e){var r,i;return e|=0,(0|(i=0|ar[(r=(A|=0)+4|0)>>2]))==(0|ar[A+8>>2])?void function(A,e){e|=0;var r,i,f=0,n=0,t=0,o=0,a=0,c=0;i=4+(A|=0)|0,f=0|ar[A>>2],t=((0|ar[i>>2])-f|0)/12|0,357913941<(n=t+1|0)>>>0&&il();a=((0|ar[(c=A+8|0)>>2])-f|0)/12|0,f=a<<1,f=a>>>0<178956970?f>>>0<n>>>0?n:f:357913941;do{if(f){if(!(357913941<f>>>0)){n=0|El(12*f|0);break}Fl(c=0|C(8),37845),ar[c>>2]=16004,I(0|c,3616,283)}else n=0}while(0);if(a=n+(12*f|0)|0,Rl(t=o=n+(12*t|0)|0,e),r=o+12|0,e=0|ar[A>>2],(0|(f=0|ar[i>>2]))==(0|e))n=t,f=t=e;else{for(n=o;f=f+-12|0,ar[(o=n+-12|0)>>2]=ar[f>>2],ar[o+4>>2]=ar[f+4>>2],ar[o+8>>2]=ar[f+8>>2],ar[f>>2]=0,ar[f+4>>2]=0,ar[f+8>>2]=0,t=n=t+-12|0,(0|f)!=(0|e););n=t,t=0|ar[A>>2],f=0|ar[i>>2]}if(ar[A>>2]=n,ar[i>>2]=r,ar[c>>2]=a,(0|f)!=(0|(n=t)))for(;(0|tr[(f=f+-12|0)+11>>0])<0&&Vl(0|ar[f>>2]),(0|f)!=(0|n););if(!t)return;Vl(t)}(A,e):(Rl(i,e),void(ar[r>>2]=12+(0|ar[r>>2])))},function(A,e){var r,i;return e|=0,(0|(i=0|ar[(r=(A|=0)+4|0)>>2]))==(0|ar[A+8>>2])?void function(A,e){e|=0;var r,i,f,n,t,o=0,a=0,c=0,l=0;f=4+(A|=0)|0,n=0|ar[A>>2],t=(0|ar[f>>2])-n|0,1073741823<(o=1+(i=t>>2)|0)>>>0&&il();c=(0|ar[(l=A+8|0)>>2])-n|0,a=c>>1,a=c>>2>>>0<536870911?a>>>0<o>>>0?o:a:1073741823;do{if(a){if(!(1073741823<a>>>0)){c=0|El(a<<2);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else c=0}while(0);ar[(r=c+(i<<2)|0)>>2]=ar[e>>2],o=r+(0-i<<2)|0,0<(0|t)&&Eu(0|o,0|n,0|t);if(ar[A>>2]=o,ar[f>>2]=4+r,ar[l>>2]=c+(a<<2),!n)return;Vl(n)}(A,e):(ar[i>>2]=ar[e>>2],void(ar[r>>2]=4+i))},function(A,e){A|=0;var r,i,f=0,n=0,t=0,o=0,a=0,c=0,l=0;if(r=(0|(e|=0))/2|0,!((0|e)<=1)){i=e+-1|0,f=0;do{for(t=0|sr(f,e),o=i+(0|sr(i-f|0,e))|0,n=0;a=A+(o-n<<1)|0,c=0|or[(l=A+(n+t<<1)|0)>>1],or[l>>1]=0|or[a>>1],or[a>>1]=c,(0|(n=n+1|0))!=(0|e););f=f+1|0}while((0|f)<(0|r))}},ju,ju,ju,ju,ju,ju,ju,ju,ju],hs=[zu,Uf,Pf,function(A,e,r){A|=0,e|=0,r|=0,e=0|ar[12481],ar[(r=A)>>2]=ar[12480],ar[r+4>>2]=e,Rl(A+8|0,49928)},function(A,e,r){A|=0,r|=0;var i,f=0,n=0,t=0,o=0;if(ur=(i=ur)+16|0,n=i,0==(0|(o=0|ar[(f=t=(e|=0)+8|0)>>2]))&0==(0|(f=0|ar[f+4>>2]))?(zi(0|ar[r>>2],0,0,2),ar[(o=r+8|0)>>2]=0,ar[o+4>>2]=0,tr[r+16>>0]=1):0|Lf(r,o=0|gu(0|o,0|f,0|ar[(e=e+16|0)>>2],0),D)&&zi(f=0|ar[r>>2],o=0|gu(0|ar[(o=t)>>2],0|ar[o+4>>2],0|ar[e>>2],0),D,1),!(0|tr[r+17>>0]))return t=0|ar[(n=49920)+4>>2],ar[(o=A)>>2]=ar[n>>2],ar[o+4>>2]=t,Rl(A+8|0,49928),void(ur=i);ar[n>>2]=0,ar[n+4>>2]=0,ar[n+8>>2]=0,Cc(A,2,100,n),ur=(0<=(0|tr[n+11>>0])||Vl(0|ar[n>>2]),i)},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c=0,l=0,u=0,s=0,b=0,d=0,k=0;if(ur=(a=ur)+160|0,f=a+136|0,t=(n=a)+56|0,o=n+4|0,ar[n>>2]=268,ar[t>>2]=288,Yi(n+56|0,o),ar[n+128>>2]=0,ar[n+132>>2]=-1,ar[n>>2]=3872,ar[t>>2]=3892,Ti(o),ar[o>>2]=3908,ar[(i=n+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[n+52>>2]=16,ar[f>>2]=0,ar[4+f>>2]=0,ar[8+f>>2]=0,Of(o,f),(0|tr[11+f>>0])<0&&Vl(0|ar[f>>2]),Uf(f,e,r),Hf(n,(b=(d=0|tr[(k=11+f|0)>>0])<<24>>24<0)?0|ar[f>>2]:f,b?0|ar[4+f>>2]:255&d),(0|tr[k>>0])<0&&Vl(0|ar[f>>2]),0<(0|ar[r>>2]))for(c=0;Hf(n,16980,2),(0|(c=c+1|0))<(0|ar[r>>2]););if(l=0|Hf(n,17248,13),k=0|ar[e+56>>2],ar[f>>2]=0,ar[4+f>>2]=0,ar[8+f>>2]=0,tr[(u=11+f|0)>>0]=4,tr[4+f>>0]=0,tr[f>>0]=k>>>24,tr[1+f>>0]=k>>>16,tr[2+f>>0]=k>>>8,tr[3+f>>0]=k,l=0|Hf(0|Hf(l,f,4),26620,1),0<(0|ar[r>>2]))for(c=0;Hf(l,16980,2),(0|(c=c+1|0))<(0|ar[r>>2]););if(l=0|Hf(l,17262,15),l=0|Hf(0|qi(l,0|ar[e+60>>2]),26620,1),0<(0|ar[r>>2]))for(c=0;Hf(l,16980,2),(0|(c=c+1|0))<(0|ar[r>>2]););if(Hf(l,17278,19),(0|tr[u>>0])<0&&Vl(0|ar[f>>2]),(0|(c=0|ar[e+64>>2]))!=(0|(r=0|ar[e+68>>2])))for(e=11+f|0,s=4+f|0,b=1+f|0,d=2+f|0,k=3+f|0,u=1;l=0|ar[c>>2],u||(tr[f>>0]=44,Hf(n,f,1)),ar[f>>2]=0,ar[4+f>>2]=0,ar[8+f>>2]=0,tr[e>>0]=4,tr[s>>0]=0,tr[f>>0]=l>>>24,tr[b>>0]=l>>>16,tr[d>>0]=l>>>8,tr[k>>0]=l,Hf(n,f,4),(0|tr[e>>0])<0&&Vl(0|ar[f>>2]),(0|(c=c+4|0))!=(0|r);)u=0;if(Hf(n,26620,1),jf(A,o),ar[n>>2]=3872,ar[t>>2]=3892,ar[o>>2]=3908,0<=(0|tr[11+i>>0]))return si(o),ci(t),void(ur=a);Vl(0|ar[i>>2]),si(o),ci(t),ur=a},function(A,e,r){A|=0,e|=0;var i,f,n,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0;if(ur=(n=ur)+32|0,h=n+16|0,c=n+4|0,w=n,0|Lf(r|=0,4,0))if(ji(k=0|ar[r>>2],h,4),5&ar[k+(0|ar[(0|ar[k>>2])-12>>2])+16>>2]){for(t=r;ar[(k=t+8|0)>>2]=0,ar[k+4>>2]=0,tr[t+16>>0]=1,0!=(0|(t=0|ar[t+4>>2])););t=0}else t=cr[h+1>>0]<<16|cr[h>>0]<<24|cr[h+2>>0]<<8|cr[h+3>>0];else t=0;if(ar[e+56>>2]=t,0|Lf(r,4,0))if(ji(k=0|ar[r>>2],h,4),5&ar[k+(0|ar[(0|ar[k>>2])-12>>2])+16>>2]){for(t=r;ar[(k=t+8|0)>>2]=0,ar[k+4>>2]=0,tr[t+16>>0]=1,0!=(0|(t=0|ar[t+4>>2])););t=0}else t=cr[h+1>>0]<<16|cr[h>>0]<<24|cr[h+2>>0]<<8|cr[h+3>>0];else t=0;if(ar[e+60>>2]=t,t=0|ar[(o=e+8|0)>>2],!(0<(o=0|ar[o+4>>2])>>>0|0==(0|o)&((a=0|ar[e+16>>2])+8|0)>>>0<t>>>0)){for(t=0|El(48),ar[c>>2]=t,ar[c+8>>2]=-2147483600,a=17209,e=(o=t)+(ar[c+4>>2]=38)|0;tr[o>>0]=0|tr[a>>0],a=a+1|0,(0|(o=o+1|0))<(0|e););return(tr[t+38>>0]=0,Cc(A,2,101,c),0<=(0|tr[c+11>>0]))?void(ur=n):(Vl(0|ar[c>>2]),void(ur=n))}l=0|Wu(0|(l=0|gu(0|(l=0|vu(0|t,0|o,-8,-1)),0|D,0|a,0)),0|D,2),i=D,f=r+17|0;A:do{if(!(0==(0|l)&0==(0|i))){u=e+64|0,s=h+1|0,b=h+2|0,d=h+3|0,k=e+68|0,a=e+72|0,c=e=0;do{if(0|tr[f>>0])break A;if(0|Lf(r,4,0))if(ji(o=0|ar[r>>2],h,4),5&ar[o+(0|ar[(0|ar[o>>2])-12>>2])+16>>2]){for(t=r;ar[(o=t+8|0)>>2]=0,ar[o+4>>2]=0,tr[t+16>>0]=1,0!=(0|(t=0|ar[t+4>>2])););t=0}else t=cr[s>>0]<<16|cr[h>>0]<<24|cr[b>>0]<<8|cr[d>>0];else t=0;ar[w>>2]=t,(o=0|ar[k>>2])>>>0<(0|ar[a>>2])>>>0?(ar[o>>2]=t,ar[k>>2]=o+4):Kf(u,w),e=0|vu(0|e,0|c,1,0),c=D}while(c>>>0<i>>>0|(0|c)==(0|i)&e>>>0<l>>>0)}}while(0);0|tr[f>>0]?(ar[h>>2]=0,ar[h+4>>2]=0,ar[h+8>>2]=0,Cc(A,2,100,h),(0|tr[h+11>>0])<0&&Vl(0|ar[h>>2])):(h=0|ar[(r=49920)+4>>2],ar[(w=A)>>2]=ar[r>>2],ar[w+4>>2]=h,Rl(A+8|0,49928)),ur=n},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c=0,l=0,u=0;if(ur=(a=ur)+160|0,f=a+136|0,t=(n=a)+56|0,o=n+4|0,ar[n>>2]=268,ar[t>>2]=288,Yi(n+56|0,o),ar[n+128>>2]=0,ar[n+132>>2]=-1,ar[n>>2]=3872,ar[t>>2]=3892,Ti(o),ar[o>>2]=3908,ar[(i=n+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[n+52>>2]=16,ar[f>>2]=0,ar[4+f>>2]=0,ar[8+f>>2]=0,Of(o,f),(0|tr[11+f>>0])<0&&Vl(0|ar[f>>2]),Pf(f,e,r),Hf(n,(u=(l=0|tr[(c=11+f|0)>>0])<<24>>24<0)?0|ar[f>>2]:f,u?0|ar[4+f>>2]:255&l),(0|tr[c>>0])<0&&Vl(0|ar[f>>2]),tn(f,e,r),Hf(n,(c=(l=0|tr[(u=11+f|0)>>0])<<24>>24<0)?0|ar[f>>2]:f,c?0|ar[4+f>>2]:255&l),(0|tr[u>>0])<0&&Vl(0|ar[f>>2]),jf(A,o),ar[n>>2]=3872,ar[t>>2]=3892,ar[o>>2]=3908,0<=(0|tr[11+i>>0]))return si(o),ci(t),void(ur=a);Vl(0|ar[i>>2]),si(o),ci(t),ur=a},function(A,e,r){A|=0;var i,f=0;ur=(i=ur)+32|0,qf(f=i,e|=0,r|=0),(0|tr[(f=f+8|0)+11>>0])<0&&Vl(0|ar[f>>2]),$f(A,e,r,-1),ur=i},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c,l=0,u=0,s=0;if(ur=(a=ur)+160|0,f=a+136|0,t=(n=a)+56|0,o=n+4|0,ar[n>>2]=268,ar[t>>2]=288,Yi(n+56|0,o),ar[n+128>>2]=0,ar[n+132>>2]=-1,ar[n>>2]=3872,ar[t>>2]=3892,Ti(o),ar[o>>2]=3908,ar[(i=n+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[n+52>>2]=16,ar[f>>2]=0,ar[4+f>>2]=0,ar[8+f>>2]=0,Of(o,f),(0|tr[11+f>>0])<0&&Vl(0|ar[f>>2]),Pf(f,e,r),Hf(n,(l=(u=0|tr[(s=11+f|0)>>0])<<24>>24<0)?0|ar[f>>2]:f,l?0|ar[4+f>>2]:255&u),(0|tr[s>>0])<0&&Vl(0|ar[f>>2]),0<(0|ar[r>>2]))for(l=0;Hf(n,16980,2),(0|(l=l+1|0))<(0|ar[r>>2]););if(u=0|Hf(n,20269,13),u=0|Hf(0|qi(u,0|ar[e+56>>2]),26620,1),0<(0|ar[r>>2]))for(l=0;Hf(u,16980,2),(0|(l=l+1|0))<(0|ar[r>>2]););if(s=0|Hf(u,20283,14),l=0|ar[e+60>>2],ar[f>>2]=0,ar[4+f>>2]=0,ar[8+f>>2]=0,tr[(u=11+f|0)>>0]=4,tr[4+f>>0]=0,tr[f>>0]=l>>>24,tr[1+f>>0]=l>>>16,tr[2+f>>0]=l>>>8,tr[3+f>>0]=l,s=0|Hf(0|Hf(s,f,4),26620,1),0<(0|ar[r>>2]))for(l=0;Hf(s,16980,2),(0|(l=l+1|0))<(0|ar[r>>2]););if(c=0|Hf(s,20298,6),Hf(0|Hf(c,(s=(r=0|tr[(l=e+76|0)+11>>0])<<24>>24<0)?0|ar[l>>2]:l,s?0|ar[e+80>>2]:255&r),26620,1),(0|tr[u>>0])<0&&Vl(0|ar[f>>2]),jf(A,o),ar[n>>2]=3872,ar[t>>2]=3892,ar[o>>2]=3908,0<=(0|tr[11+i>>0]))return si(o),ci(t),void(ur=a);Vl(0|ar[i>>2]),si(o),ci(t),ur=a},function(A,e,r){A|=0;var i,f,n,t=0,o=0,a=0,c=0,l=0;if(ur=(n=ur)+32|0,c=n+20|0,qf(t=n,e|=0,r|=0),(0|tr[(t=t+8|0)+11>>0])<0&&Vl(0|ar[t>>2]),0|Lf(r,4,0))if(ji(a=0|ar[r>>2],c,4),5&ar[a+(0|ar[(0|ar[a>>2])-12>>2])+16>>2]){for(t=r;ar[(a=t+8|0)>>2]=0,ar[a+4>>2]=0,tr[t+16>>0]=1,0!=(0|(t=0|ar[t+4>>2])););t=0}else t=cr[c+1>>0]<<16|cr[c>>0]<<24|cr[c+2>>0]<<8|cr[c+3>>0];else t=0;if(ar[e+56>>2]=t,0|Lf(r,4,0)){if(ji(a=0|ar[r>>2],c,4),5&ar[a+(0|ar[(0|ar[a>>2])-12>>2])+16>>2]){for(t=r;ar[(a=t+8|0)>>2]=0,ar[a+4>>2]=0,tr[t+16>>0]=1,0!=(0|(t=0|ar[t+4>>2])););t=0}else t=cr[c+1>>0]<<16|cr[c>>0]<<24|cr[c+2>>0]<<8|cr[c+3>>0];a=r}else t=0,a=r;if(ar[e+60>>2]=t,o=c+1|0,i=c+2|0,f=c+3|0,0|Lf(r,4,0))if(ji(t=0|ar[a>>2],c,4),5&ar[t+(0|ar[(0|ar[t>>2])-12>>2])+16>>2]){for(t=r;ar[(l=t+8|0)>>2]=0,ar[l+4>>2]=0,tr[t+16>>0]=1,0!=(0|(t=0|ar[t+4>>2])););t=0}else t=cr[o>>0]<<16|cr[c>>0]<<24|cr[i>>0]<<8|cr[f>>0];else t=0;if(ar[e+64>>2]=t,0|Lf(r,4,0))if(ji(l=0|ar[a>>2],c,4),5&ar[l+(0|ar[(0|ar[l>>2])-12>>2])+16>>2]){for(t=r;ar[(l=t+8|0)>>2]=0,ar[l+4>>2]=0,tr[t+16>>0]=1,0!=(0|(t=0|ar[t+4>>2])););t=0}else t=cr[o>>0]<<16|cr[c>>0]<<24|cr[i>>0]<<8|cr[f>>0];else t=0;if(ar[e+68>>2]=t,0|Lf(r,4,0))if(ji(l=0|ar[a>>2],c,4),5&ar[l+(0|ar[(0|ar[l>>2])-12>>2])+16>>2]){for(t=r;ar[(l=t+8|0)>>2]=0,ar[l+4>>2]=0,tr[t+16>>0]=1,0!=(0|(t=0|ar[t+4>>2])););t=0}else t=cr[o>>0]<<16|cr[c>>0]<<24|cr[i>>0]<<8|cr[f>>0];else t=0;if(ar[e+72>>2]=t,nn(c,r),(0|tr[(o=(t=e+76|0)+11|0)>>0])<0?(tr[ar[t>>2]>>0]=0,ar[e+80>>2]=0):(tr[t>>0]=0,tr[o>>0]=0),Ml(t,0),ar[t>>2]=ar[c>>2],ar[t+4>>2]=ar[c+4>>2],ar[t+8>>2]=ar[c+8>>2],!(0|tr[r+17>>0]))return c=0|ar[(r=49920)+4>>2],ar[(l=A)>>2]=ar[r>>2],ar[l+4>>2]=c,Rl(A+8|0,49928),void(ur=n);ar[c>>2]=0,ar[c+4>>2]=0,ar[c+8>>2]=0,Cc(A,2,100,c),ur=(0<=(0|tr[c+11>>0])||Vl(0|ar[c>>2]),n)},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c,l=0,u=0;if(ur=(o=ur)+160|0,l=o+136|0,n=(f=o)+56|0,t=f+4|0,ar[f>>2]=268,ar[n>>2]=288,Yi(f+56|0,t),ar[f+128>>2]=0,ar[f+132>>2]=-1,ar[f>>2]=3872,ar[n>>2]=3892,Ti(t),ar[t>>2]=3908,ar[(i=f+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[f+52>>2]=16,ar[l>>2]=0,ar[l+4>>2]=0,ar[l+8>>2]=0,Of(t,l),(0|tr[l+11>>0])<0&&Vl(0|ar[l>>2]),Pf(l,e,r),Hf(f,(u=(c=0|tr[(a=l+11|0)>>0])<<24>>24<0)?0|ar[l>>2]:l,u?0|ar[l+4>>2]:255&c),(0|tr[a>>0])<0&&Vl(0|ar[l>>2]),0<(0|ar[r>>2]))for(l=0;Hf(f,16980,2),(0|(l=l+1|0))<(0|ar[r>>2]););if(u=0|Hf(f,19579,9),Hf(0|qi(u,0|ar[e+56>>2]),26620,1),jf(A,t),ar[f>>2]=3872,ar[n>>2]=3892,ar[t>>2]=3908,0<=(0|tr[11+i>>0]))return si(t),ci(n),void(ur=o);Vl(0|ar[i>>2]),si(t),ci(n),ur=o},function(A,e,r){A|=0;var i,f=0,n=0,t=0;if(ur=(i=ur)+32|0,n=i+20|0,qf(f=i,e|=0,r|=0),(0|tr[(f=f+8|0)+11>>0])<0&&Vl(0|ar[f>>2]),0|tr[e+37>>0])if(0|Lf(r,4,0))if(ji(f=0|ar[r>>2],n,4),5&ar[f+(0|ar[(0|ar[f>>2])-12>>2])+16>>2]){for(f=r;ar[(t=f+8|0)>>2]=0,ar[t+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[n+1>>0]<<16|cr[n>>0]<<24|cr[n+2>>0]<<8|cr[n+3>>0];else f=0;else{if(0|Lf(r,2,0))if(ji(t=0|ar[r>>2],n,2),5&ar[t+(0|ar[(0|ar[t>>2])-12>>2])+16>>2]){for(f=r;ar[(t=f+8|0)>>2]=0,ar[t+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[n>>0]<<8|cr[n+1>>0];else f=0;f&=65535}if(ar[e+56>>2]=f,!(0|tr[r+17>>0]))return n=0|ar[(r=49920)+4>>2],ar[(t=A)>>2]=ar[r>>2],ar[t+4>>2]=n,Rl(A+8|0,49928),void(ur=i);ar[n>>2]=0,ar[n+4>>2]=0,ar[n+8>>2]=0,Cc(A,2,100,n),ur=(0<=(0|tr[n+11>>0])||Vl(0|ar[n>>2]),i)},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a=0,c=0,l=0,u=0,s=0;if(ur=(o=ur)+160|0,a=o+136|0,n=(f=o)+56|0,t=f+4|0,ar[f>>2]=268,ar[n>>2]=288,Yi(f+56|0,t),ar[f+128>>2]=0,ar[f+132>>2]=-1,ar[f>>2]=3872,ar[n>>2]=3892,Ti(t),ar[t>>2]=3908,ar[(i=f+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[f+52>>2]=16,ar[a>>2]=0,ar[a+4>>2]=0,ar[a+8>>2]=0,Of(t,a),(0|tr[a+11>>0])<0&&Vl(0|ar[a>>2]),Pf(a,e,r),Hf(f,(u=(c=0|tr[(l=a+11|0)>>0])<<24>>24<0)?0|ar[a>>2]:a,u?0|ar[a+4>>2]:255&c),(0|tr[l>>0])<0&&Vl(0|ar[a>>2]),(0|(a=0|ar[e+56>>2]))!=(0|(l=0|ar[e+60>>2]))){c=a;do{if(0<(0|ar[r>>2]))for(a=0;Hf(f,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(e=0|Hf(f,20002,9),e=0|Hf(0|qi(e,0|ar[c>>2]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(e,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(e=0|Hf(e,20012,23),e=0|Hf(0|Ki(e,0|cr[c+4>>0]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(e,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(u=(e=0|Hf(e,20036,24))+(0|ar[(0|ar[e>>2])-12>>2])+4|0,ar[u>>2]=-75&ar[u>>2]|8,u=(e=0|Li(e,0|or[c+6>>1]))+(0|ar[(0|ar[e>>2])-12>>2])+4|0,ar[u>>2]=-75&ar[u>>2]|2,e=0|Hf(e,26620,1),0<(0|ar[r>>2]))for(a=0;Hf(e,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(e=0|Hf(e,20061,15),Hf(0|$i(e,0|ar[(u=c+8|0)>>2],0|ar[u+4>>2]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(f,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(Hf(f,20077,11),(0|(a=0|ar[c+16>>2]))!=(0|(e=0|ar[c+20>>2])))for(;s=0|Hf(0|$i(f,0|ar[(s=a+8|0)>>2],0|ar[s+4>>2]),20089,1),$i(s,0|ar[(u=a+16|0)>>2],0|ar[u+4>>2]),0==(0|ar[(u=a)>>2])&0==(0|ar[u+4>>2])||$i(u=0|Hf(f,20091,7),0|ar[(s=a)>>2],0|ar[s+4>>2]),Hf(f,17848,1),(0|(a=a+24|0))!=(0|e););Hf(f,26620,1),c=c+32|0}while((0|c)!=(0|l))}if(jf(A,t),ar[f>>2]=3872,ar[n>>2]=3892,ar[t>>2]=3908,0<=(0|tr[11+i>>0]))return si(t),ci(n),void(ur=o);Vl(0|ar[i>>2]),si(t),ci(n),ur=o},function(A,e,r){A|=0;var i,f,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0,X=0,_=0,F=0,N=0,R=0,Y=0,J=0,D=0,Q=0,T=0,M=0,S=0,U=0,O=0,H=0,x=0,j=0,z=0,P=0,L=0,K=0,q=0;if(ur=(f=ur)+352|0,K=f+332|0,q=f+144|0,a=f+300|0,L=(i=f)+288|0,qf(n=f+312|0,e|=0,r|=0),(0|tr[(n=n+8|0)+11>>0])<0&&Vl(0|ar[n>>2]),0|Lf(r,2,0))if(ji(z=0|ar[r>>2],K,2),5&ar[z+(0|ar[(0|ar[z>>2])-12>>2])+16>>2]){for(n=r;ar[(z=n+8|0)>>2]=0,ar[z+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[K>>0]<<8|cr[K+1>>0];else n=0;if(c=n>>>12,l=n>>>8,t=n>>>4,o=1<(255&(j=0|tr[(z=e+37|0)>>0]))?15&n:0,2<=(255&j))if(0|Lf(r,4,0)){if(ji(j=0|ar[r>>2],K,4),5&ar[j+(0|ar[(0|ar[j>>2])-12>>2])+16>>2]){for(n=r;ar[(j=n+8|0)>>2]=0,ar[j+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[K+1>>0]<<16|cr[K>>0]<<24|cr[K+2>>0]<<8|cr[K+3>>0];j=n,u=23}else u=17;else{if(0|Lf(r,2,0))if(ji(j=0|ar[r>>2],K,2),5&ar[j+(0|ar[(0|ar[j>>2])-12>>2])+16>>2]){for(n=r;ar[(j=n+8|0)>>2]=0,ar[j+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[K>>0]<<8|cr[K+1>>0];else n=0;j=65535&n,u=23}A:do{if(23==(0|u)){if(1024<(0|j))return t=q+64|0,ar[(e=q+8|0)>>2]=4080,o=q+12|0,ar[q>>2]=164,ar[t>>2]=184,Yi(q+64|(ar[q+4>>2]=0),o),ar[q+136>>2]=0,ar[q+140>>2]=-1,ar[q>>2]=4060,ar[t>>2]=4100,ar[e>>2]=4080,Ti(o),ar[o>>2]=3908,ar[(e=q+44|0)>>2]=0,ar[e+4>>2]=0,ar[e+8>>2]=0,ar[e+12>>2]=0,ar[q+60>>2]=24,ar[K>>2]=0,ar[K+4>>2]=0,ar[K+8>>2]=0,Of(o,K),(0|tr[K+11>>0])<0&&Vl(0|ar[K>>2]),Hf(0|Ki(0|Hf(0|Ki(0|Hf(n=q+8|0,19871,18),j),19890,44),1024),19935,7),jf(a,o),Cc(A,6,1e3,a),(0|tr[a+11>>0])<0&&Vl(0|ar[a>>2]),ar[q>>2]=4060,ar[t>>2]=4100,ar[n>>2]=4080,ar[o>>2]=3908,(0|tr[e+11>>0])<0&&Vl(0|ar[e>>2]),si(o),ci(t),void(ur=f);if(0<(0|j)){U=q+4|0,O=q+8|0,x=q+6|0,S=255&t,I=i+12|0,B=i+4|0,E=C=i+64|0,G=i+136|0,V=i+140|0,_=i+60|0,F=K+11|0,R=L+11|0,Y=(X=i+44|0)+11|0,D=q+20|0,Q=r+17|0,T=e+60|0,M=e+64|0,Z=e+56|0,p=J=q+16|0,y=0!=(0|o),m=255&o,h=H=K+1|0,w=K+2|0,v=K+3|0,g=N=W=i+8|0,k=255&c,d=i+16|0,b=255&l,s=q+24|0,l=0;e:for(;;){if(tr[U>>0]=0,ar[O>>2]=0,ar[O+4>>2]=0,ar[O+8>>2]=0,ar[O+12>>2]=0,2<=((ar[O+16>>2]=0)|cr[z>>0]))if(0|Lf(r,4,0))if(ji(c=0|ar[r>>2],K,4),5&ar[c+(0|ar[(0|ar[c>>2])-12>>2])+16>>2]){for(n=r;ar[(c=n+8|0)>>2]=0,ar[c+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[h>>0]<<16|cr[K>>0]<<24|cr[w>>0]<<8|cr[v>>0];else n=0;else{if(0|Lf(r,2,0))if(ji(c=0|ar[r>>2],K,2),5&ar[c+(0|ar[(0|ar[c>>2])-12>>2])+16>>2]){for(n=r;ar[(c=n+8|0)>>2]=0,ar[c+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[K>>0]<<8|cr[H>>0];else n=0;n&=65535}if(ar[q>>2]=n,0|tr[z>>0]){if(0|Lf(r,2,0))if(ji(c=0|ar[r>>2],K,2),5&ar[c+(0|ar[(0|ar[c>>2])-12>>2])+16>>2]){for(n=r;ar[(c=n+8|0)>>2]=0,ar[c+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=0|tr[H>>0];else n=0;tr[U>>0]=15&n}if(0|Lf(r,2,0))if(ji(c=0|ar[r>>2],K,2),5&ar[c+(0|ar[(0|ar[c>>2])-12>>2])+16>>2]){for(n=r;ar[(c=n+8|0)>>2]=0,ar[c+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=65535&(cr[K>>0]<<8|cr[H>>0]);else n=0;switch(or[x>>1]=n,ar[(c=O)>>2]=0,ar[c+4>>2]=0,15&S){case 4:if(0|Lf(r,4,0))if(ji(u=0|ar[r>>2],K,4),5&ar[u+(0|ar[(0|ar[u>>2])-12>>2])+16>>2]){for(n=r;ar[(u=n+8|0)>>2]=0,ar[u+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[h>>0]<<16|cr[K>>0]<<24|cr[w>>0]<<8|cr[v>>0];else n=0;t=0,u=74;break;case 8:if(0|Lf(r,4,0))if(ji(u=0|ar[r>>2],K,4),5&ar[u+(0|ar[(0|ar[u>>2])-12>>2])+16>>2]){for(n=r;ar[(u=n+8|0)>>2]=0,ar[u+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[h>>0]<<16|cr[K>>0]<<24|cr[w>>0]<<8|cr[v>>0];else n=0;if(ar[(u=O)>>2]=0,ar[u+4>>2]=n,0|Lf(r,4,0))if(ji(u=0|ar[r>>2],K,4),5&ar[u+(0|ar[(0|ar[u>>2])-12>>2])+16>>2]){for(n=r;ar[(u=n+8|0)>>2]=0,ar[u+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[h>>0]<<16|cr[K>>0]<<24|cr[w>>0]<<8|cr[v>>0];else n=0;n=ar[(t=O)>>2]|n,t=0|ar[t+4>>2],u=74}74==(0|u)&&(u=0,ar[(c=O)>>2]=n,ar[c+4>>2]=t);r:do{if(0|Lf(r,2,0)){if(ji(c=0|ar[r>>2],K,2),5&ar[c+(0|ar[(0|ar[c>>2])-12>>2])+16>>2]|0){for(n=r;ar[(u=n+8|0)>>2]=0,ar[u+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););u=88;break}if(32<(65535&(e=cr[K>>0]<<8|cr[H>>0]))){ar[W>>2]=4080,ar[i>>2]=164,ar[C>>2]=184,ar[B>>2]=0,Yi(E,I),ar[G>>2]=0,ar[V>>2]=-1,ar[i>>2]=4060,ar[C>>2]=4100,ar[W>>2]=4080,Ti(I),ar[I>>2]=3908,ar[X>>2]=0,ar[X+4>>2]=0,ar[X+8>>2]=0,ar[X+12>>2]=0,ar[_>>2]=24,ar[K>>2]=0,ar[K+4>>2]=0,ar[K+8>>2]=0,Of(I,K),(0|tr[F>>0])<0&&Vl(0|ar[K>>2]),Hf(0|Ki(0|Hf(0|Ki(0|Hf(N,19943,31),e),19975,26),32),17022,2),jf(L,I),Cc(A,6,1e3,L),(0|tr[R>>0])<0&&Vl(0|ar[L>>2]),ar[i>>2]=4060,ar[C>>2]=4100,ar[N>>2]=4080,ar[I>>2]=3908,(0|tr[Y>>0])<0&&Vl(0|ar[X>>2]),si(I),ci(C),n=1;break}if(e)for(o=0;;){ar[(c=i)>>2]=0,ar[c+4>>2]=0;i:do{if(y&1<(0|cr[z>>0])){switch(15&m){case 4:if(0|Lf(r,4,0))if(ji(c=0|ar[r>>2],K,4),5&ar[c+(0|ar[(0|ar[c>>2])-12>>2])+16>>2]){for(n=r;ar[(c=n+8|0)>>2]=0,ar[c+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[h>>0]<<16|cr[K>>0]<<24|cr[w>>0]<<8|cr[v>>0];else n=0;ar[(c=i)>>2]=n,ar[c+4>>2]=0;break i;case 8:break;default:break i}if(0|Lf(r,4,0))if(ji(c=0|ar[r>>2],K,4),5&ar[c+(0|ar[(0|ar[c>>2])-12>>2])+16>>2]){for(n=r;ar[(c=n+8|0)>>2]=0,ar[c+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[h>>0]<<16|cr[K>>0]<<24|cr[w>>0]<<8|cr[v>>0];else n=0;if(ar[(c=i)>>2]=0,ar[c+4>>2]=n,0|Lf(r,4,0))if(ji(c=0|ar[r>>2],K,4),5&ar[c+(0|ar[(0|ar[c>>2])-12>>2])+16>>2]){for(n=r;ar[(c=n+8|0)>>2]=0,ar[c+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[h>>0]<<16|cr[K>>0]<<24|cr[w>>0]<<8|cr[v>>0];else n=0;a=0|ar[(t=i)+4>>2],ar[(c=i)>>2]=ar[t>>2]|n,ar[c+4>>2]=a}}while(0);switch(ar[(c=g)>>2]=0,ar[c+4>>2]=0,15&k){case 4:if(0|Lf(r,4,0))if(ji(u=0|ar[r>>2],K,4),5&ar[u+(0|ar[(0|ar[u>>2])-12>>2])+16>>2]){for(n=r;ar[(u=n+8|0)>>2]=0,ar[u+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[h>>0]<<16|cr[K>>0]<<24|cr[w>>0]<<8|cr[v>>0];else n=0;t=0,u=126;break;case 8:if(0|Lf(r,4,0))if(ji(u=0|ar[r>>2],K,4),5&ar[u+(0|ar[(0|ar[u>>2])-12>>2])+16>>2]){for(n=r;ar[(u=n+8|0)>>2]=0,ar[u+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[h>>0]<<16|cr[K>>0]<<24|cr[w>>0]<<8|cr[v>>0];else n=0;if(ar[(u=g)>>2]=0,ar[u+4>>2]=n,0|Lf(r,4,0))if(ji(u=0|ar[r>>2],K,4),5&ar[u+(0|ar[(0|ar[u>>2])-12>>2])+16>>2]){for(n=r;ar[(u=n+8|0)>>2]=0,ar[u+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[h>>0]<<16|cr[K>>0]<<24|cr[w>>0]<<8|cr[v>>0];else n=0;n=ar[(t=g)>>2]|n,t=0|ar[t+4>>2],u=126}switch(126==(0|u)&&(u=0,ar[(c=g)>>2]=n,ar[c+4>>2]=t),ar[(c=d)>>2]=0,ar[c+4>>2]=0,15&b){case 4:if(0|Lf(r,4,0))if(ji(u=0|ar[r>>2],K,4),5&ar[u+(0|ar[(0|ar[u>>2])-12>>2])+16>>2]){for(n=r;ar[(u=n+8|0)>>2]=0,ar[u+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[h>>0]<<16|cr[K>>0]<<24|cr[w>>0]<<8|cr[v>>0];else n=0;t=0,u=145;break;case 8:if(0|Lf(r,4,0))if(ji(u=0|ar[r>>2],K,4),5&ar[u+(0|ar[(0|ar[u>>2])-12>>2])+16>>2]){for(n=r;ar[(u=n+8|0)>>2]=0,ar[u+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[h>>0]<<16|cr[K>>0]<<24|cr[w>>0]<<8|cr[v>>0];else n=0;if(ar[(u=d)>>2]=0,ar[u+4>>2]=n,0|Lf(r,4,0))if(ji(u=0|ar[r>>2],K,4),5&ar[u+(0|ar[(0|ar[u>>2])-12>>2])+16>>2]){for(n=r;ar[(u=n+8|0)>>2]=0,ar[u+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[h>>0]<<16|cr[K>>0]<<24|cr[w>>0]<<8|cr[v>>0];else n=0;n=ar[(t=d)>>2]|n,t=0|ar[t+4>>2],u=145}if(145==(0|u)&&(u=0,ar[(c=d)>>2]=n,ar[c+4>>2]=t),(0|(n=0|ar[D>>2]))==(0|ar[s>>2])?rc(p,i):(ar[n>>2]=ar[i>>2],ar[n+4>>2]=ar[i+4>>2],ar[n+8>>2]=ar[i+8>>2],ar[n+12>>2]=ar[i+12>>2],ar[n+16>>2]=ar[i+16>>2],ar[n+20>>2]=ar[i+20>>2],ar[D>>2]=24+(0|ar[D>>2])),(0|e)<=(0|(o=o+1|0))){u=88;break r}}else u=88}else u=88}while(0);do{if(88==(0|u))if((u=0)|tr[Q>>0])n=0;else{if((0|(t=0|ar[T>>2]))==(0|ar[M>>2])){ic(Z,q),n=0;break}if(ar[t>>2]=ar[q>>2],ar[t+4>>2]=ar[q+4>>2],ar[t+8>>2]=ar[q+8>>2],ar[t+12>>2]=ar[q+12>>2],ar[(o=t+16|0)>>2]=0,ar[(c=t+20|0)>>2]=0,e=((ar[t+24>>2]=0)|(n=(0|ar[D>>2])-(0|ar[p>>2])|0))/24|0,0|n){if(178956970<e>>>0){u=153;break e}a=0|El(n),ar[c>>2]=a,ar[o>>2]=a,ar[t+24>>2]=a+(24*e|0),n=0|ar[p>>2],0<(0|(t=(0|ar[D>>2])-n|0))&&(Eu(0|a,0|n,0|t),ar[c>>2]=a+(24*((t>>>0)/24|0)|0))}ar[T>>2]=32+(0|ar[T>>2]),n=0}}while(0);if(0|(t=0|ar[J>>2])&&((0|(o=0|ar[D>>2]))!=(0|t)&&(ar[D>>2]=o+(24*~(((o+-24-t|0)>>>0)/24|0)|0)),Vl(t)),l=l+1|0,0|n){u=168;break}if((0|j)<=(0|l)){P=Q;break A}}if(153==(0|u))il();else if(168==(0|u))return void(ur=f)}else u=17}}while(0);17==(0|u)&&(P=r+17|0),0|tr[P>>0]?(ar[K>>2]=0,ar[K+4>>2]=0,ar[K+8>>2]=0,Cc(A,2,100,K),(0|tr[K+11>>0])<0&&Vl(0|ar[K>>2])):(K=0|ar[(L=49920)+4>>2],ar[(q=A)>>2]=ar[L>>2],ar[q+4>>2]=K,Rl(A+8|0,49928)),ur=f},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c=0,l=0,u=0;if(ur=(a=ur)+160|0,f=a+136|0,t=(n=a)+56|0,o=n+4|0,ar[n>>2]=268,ar[t>>2]=288,Yi(n+56|0,o),ar[n+128>>2]=0,ar[n+132>>2]=-1,ar[n>>2]=3872,ar[t>>2]=3892,Ti(o),ar[o>>2]=3908,ar[(i=n+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[n+52>>2]=16,ar[f>>2]=0,ar[4+f>>2]=0,ar[8+f>>2]=0,Of(o,f),(0|tr[11+f>>0])<0&&Vl(0|ar[f>>2]),Pf(f,e,r),Hf(n,(u=(l=0|tr[(c=11+f|0)>>0])<<24>>24<0)?0|ar[f>>2]:f,u?0|ar[4+f>>2]:255&l),(0|tr[c>>0])<0&&Vl(0|ar[f>>2]),tn(f,e,r),Hf(n,(c=(l=0|tr[(u=11+f|0)>>0])<<24>>24<0)?0|ar[f>>2]:f,c?0|ar[4+f>>2]:255&l),(0|tr[u>>0])<0&&Vl(0|ar[f>>2]),jf(A,o),ar[n>>2]=3872,ar[t>>2]=3892,ar[o>>2]=3908,0<=(0|tr[11+i>>0]))return si(o),ci(t),void(ur=a);Vl(0|ar[i>>2]),si(o),ci(t),ur=a},function(A,e,r){A|=0;var i,f,n=0,t=0,o=0;if(ur=(f=ur)+32|0,i=f+20|0,qf(t=f,e|=0,r|=0),(0|tr[(t=t+8|0)+11>>0])<0&&Vl(0|ar[t>>2]),0|tr[e+37>>0]){if(0|Lf(r,4,0)){if(ji(o=0|ar[r>>2],i,4),5&ar[o+(0|ar[(0|ar[o>>2])-12>>2])+16>>2]){for(n=r;ar[(o=n+8|0)>>2]=0,ar[o+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[1+i>>0]<<16|cr[i>>0]<<24|cr[2+i>>0]<<8|cr[3+i>>0];o=15}}else{if(0|Lf(r,2,0))if(ji(o=0|ar[r>>2],i,2),5&ar[o+(0|ar[(0|ar[o>>2])-12>>2])+16>>2]){for(n=r;ar[(o=n+8|0)>>2]=0,ar[o+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[i>>0]<<8|cr[1+i>>0];else n=0;n&=65535,o=15}if(15==(0|o)&&0|n)return $f(A,e,r,-1),void(ur=f);e=0|ar[(o=49920)+4>>2],ar[(r=A)>>2]=ar[o>>2],ar[r+4>>2]=e,Rl(A+8|0,49928),ur=f},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a=0,c=0,l=0,u=0;if(ur=(o=ur)+160|0,a=o+136|0,n=(f=o)+56|0,t=f+4|0,ar[f>>2]=268,ar[n>>2]=288,Yi(f+56|0,t),ar[f+128>>2]=0,ar[f+132>>2]=-1,ar[f>>2]=3872,ar[n>>2]=3892,Ti(t),ar[t>>2]=3908,ar[(i=f+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[f+52>>2]=16,ar[a>>2]=0,ar[a+4>>2]=0,ar[a+8>>2]=0,Of(t,a),(0|tr[a+11>>0])<0&&Vl(0|ar[a>>2]),Pf(a,e,r),Hf(f,(u=(l=0|tr[(c=a+11|0)>>0])<<24>>24<0)?0|ar[a>>2]:a,u?0|ar[a+4>>2]:255&l),(0|tr[c>>0])<0&&Vl(0|ar[a>>2]),0<(0|ar[r>>2]))for(a=0;Hf(f,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(c=0|Hf(f,19579,9),c=0|Hf(0|qi(c,0|ar[e+56>>2]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(c=0|Hf(c,19589,23),c=0|Hf(0|Li(c,0|or[e+60>>1]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(a=0|Hf(c,19613,11),c=0|Hf(0|Hf(a,(u=(c=0|tr[(l=e+64|0)+11>>0])<<24>>24<0)?0|ar[l>>2]:l,u?0|ar[e+68>>2]:255&c),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(a=0|Hf(c,19625,11),c=0|Hf(0|Hf(a,(u=(c=0|tr[(l=e+76|0)+11>>0])<<24>>24<0)?0|ar[l>>2]:l,u?0|ar[e+80>>2]:255&c),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(a=0|Hf(c,19637,14),c=0|Hf(0|Hf(a,(u=(c=0|tr[(l=e+88|0)+11>>0])<<24>>24<0)?0|ar[l>>2]:l,u?0|ar[e+92>>2]:255&c),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(a=0|Hf(c,19652,18),c=0|Hf(0|Hf(a,(u=(c=0|tr[(l=e+100|0)+11>>0])<<24>>24<0)?0|ar[l>>2]:l,u?0|ar[e+104>>2]:255&c),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(a=0|Hf(c,19671,15),c=0|Hf(0|Hf(a,(u=(c=0|tr[(l=e+112|0)+11>>0])<<24>>24<0)?0|ar[l>>2]:l,u?0|ar[e+116>>2]:255&c),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(l=(u=0|Hf(c,19687,13))+(0|ar[(0|ar[u>>2])-12>>2])+4|0,ar[l>>2]=1|ar[l>>2],Hf(0|Pi(u,0!=(0|tr[e+124>>0])),26620,1),jf(A,t),ar[f>>2]=3872,ar[n>>2]=3892,ar[t>>2]=3908,0<=(0|tr[11+i>>0]))return si(t),ci(n),void(ur=o);Vl(0|ar[i>>2]),si(t),ci(n),ur=o},function(A,e,r){A|=0;var i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0;if(ur=(i=ur)+32|0,u=i+20|0,qf(f=i,e|=0,r|=0),(0|tr[(f=f+8|0)+11>>0])<0&&Vl(0|ar[f>>2]),(255&(f=0|tr[(t=e+37|0)>>0]))<2){if(0|Lf(r,2,0))if(ji(l=0|ar[r>>2],u,2),5&ar[l+(0|ar[(0|ar[l>>2])-12>>2])+16>>2]){for(f=r;ar[(l=f+8|0)>>2]=0,ar[l+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[u>>0]<<8|cr[u+1>>0];else f=0;if(ar[e+56>>2]=65535&f,0|Lf(r,2,0))if(ji(l=0|ar[r>>2],u,2),5&ar[l+(0|ar[(0|ar[l>>2])-12>>2])+16>>2]){for(f=r;ar[(l=f+8|0)>>2]=0,ar[l+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=65535&(cr[u>>0]<<8|cr[u+1>>0]);else f=0;or[e+60>>1]=f,nn(u,r),(0|tr[(n=(f=e+76|0)+11|0)>>0])<0?(tr[ar[f>>2]>>0]=0,ar[e+80>>2]=0):(tr[f>>0]=0,tr[n>>0]=0),Ml(f,0),ar[f>>2]=ar[u>>2],ar[f+4>>2]=ar[u+4>>2],ar[f+8>>2]=ar[u+8>>2],nn(u,r),(0|tr[(n=(f=e+88|0)+11|0)>>0])<0?(tr[ar[f>>2]>>0]=0,ar[e+92>>2]=0):(tr[f>>0]=0,tr[n>>0]=0),Ml(f,0),ar[f>>2]=ar[u>>2],ar[f+4>>2]=ar[u+4>>2],ar[f+8>>2]=ar[u+8>>2],nn(u,r),(0|tr[(n=(f=e+100|0)+11|0)>>0])<0?(tr[ar[f>>2]>>0]=0,ar[e+104>>2]=0):(tr[f>>0]=0,tr[n>>0]=0),Ml(f,0),ar[f>>2]=ar[u>>2],ar[f+4>>2]=ar[u+4>>2],ar[f+8>>2]=ar[u+8>>2],1<(255&(f=0|tr[t>>0]))&&(o=24)}else o=24;A:do{if(24==(0|o)){if(tr[e+124>>0]=1&ar[e+40>>2],f<<24>>24!=2)if(0|Lf(r,4,0))if(ji(l=0|ar[r>>2],u,4),5&ar[l+(0|ar[(0|ar[l>>2])-12>>2])+16>>2]){for(f=r;ar[(l=f+8|0)>>2]=0,ar[l+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[u+1>>0]<<16|cr[u>>0]<<24|cr[u+2>>0]<<8|cr[u+3>>0];else f=0;else{if(0|Lf(r,2,0))if(ji(l=0|ar[r>>2],u,2),5&ar[l+(0|ar[(0|ar[l>>2])-12>>2])+16>>2]){for(f=r;ar[(l=f+8|0)>>2]=0,ar[l+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[u>>0]<<8|cr[u+1>>0];else f=0;f&=65535}if(ar[e+56>>2]=f,0|Lf(r,2,0))if(ji(l=0|ar[r>>2],u,2),5&ar[l+(0|ar[(0|ar[l>>2])-12>>2])+16>>2]){for(f=r;ar[(l=f+8|0)>>2]=0,ar[l+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=65535&(cr[u>>0]<<8|cr[u+1>>0]);else f=0;or[e+60>>1]=f;do{if(0|Lf(r,4,0)){if(ji(l=0|ar[r>>2],u,4),5&ar[l+(0|ar[(0|ar[l>>2])-12>>2])+16>>2]|0){for(f=r;ar[(l=f+8|0)>>2]=0,ar[l+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0;break}n=0|cr[u>>0],(f=(t=0|cr[u+1>>0])<<16|n<<24|(o=0|cr[u+2>>0])<<8|(a=0|cr[u+3>>0]))?(tr[u>>0]=0,tr[u+1>>0]=0,tr[u+2>>0]=0,tr[u+3>>0]=0,tr[u+4>>0]=0,((tr[u+5>>0]=0)|tr[(l=(c=e+64|0)+11|0)>>0])<0?(tr[ar[c>>2]>>0]=0,ar[e+68>>2]=0):(tr[c>>0]=0,tr[l>>0]=0),Ml(c,0),ar[e+64>>2]=t<<8|n|o<<16|a<<24,tr[e+68>>0]=0,tr[(l=e+69|0)>>0]=0|tr[u>>0],tr[l+1>>0]=0|tr[u+1>>0],tr[l+2>>0]=0|tr[u+2>>0],tr[l+3>>0]=0|tr[u+3>>0],tr[l+4>>0]=0|tr[u+4>>0],tr[l+5>>0]=0|tr[u+5>>0],tr[e+75>>0]=4):f=0}else f=0}while(0);if(nn(u,r),(0|tr[(t=(n=e+76|0)+11|0)>>0])<0?(tr[ar[n>>2]>>0]=0,ar[e+80>>2]=0):(tr[n>>0]=0,tr[t>>0]=0),Ml(n,0),ar[n>>2]=ar[u>>2],ar[n+4>>2]=ar[u+4>>2],ar[n+8>>2]=ar[u+8>>2],1970432288<=(0|f)){switch(0|f){case 1970432288:break;default:break A}nn(u,r),(0|tr[(n=(f=e+112|0)+11|0)>>0])<0?(tr[ar[f>>2]>>0]=0,ar[e+116>>2]=0):(tr[f>>0]=0,tr[n>>0]=0),Ml(f,0),ar[f>>2]=ar[u>>2],ar[f+4>>2]=ar[u+4>>2],ar[f+8>>2]=ar[u+8>>2];break}switch(0|f){case 1835625829:break;default:break A}nn(u,r),(0|tr[(n=(f=e+88|0)+11|0)>>0])<0?(tr[ar[f>>2]>>0]=0,ar[e+92>>2]=0):(tr[f>>0]=0,tr[n>>0]=0),Ml(f,0),ar[f>>2]=ar[u>>2],ar[f+4>>2]=ar[u+4>>2],ar[f+8>>2]=ar[u+8>>2],nn(u,r),(0|tr[(n=(f=e+100|0)+11|0)>>0])<0?(tr[ar[f>>2]>>0]=0,ar[e+104>>2]=0):(tr[f>>0]=0,tr[n>>0]=0),Ml(f,0),ar[f>>2]=ar[u>>2],ar[f+4>>2]=ar[u+4>>2],ar[f+8>>2]=ar[u+8>>2]}}while(0);if(!(0|tr[r+17>>0]))return r=0|ar[(e=49920)+4>>2],ar[(u=A)>>2]=ar[e>>2],ar[u+4>>2]=r,Rl(A+8|0,49928),void(ur=i);ar[u>>2]=0,ar[u+4>>2]=0,ar[u+8>>2]=0,Cc(A,2,100,u),ur=(0<=(0|tr[u+11>>0])||Vl(0|ar[u>>2]),i)},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c=0,l=0,u=0;if(ur=(a=ur)+160|0,f=a+136|0,t=(n=a)+56|0,o=n+4|0,ar[n>>2]=268,ar[t>>2]=288,Yi(n+56|0,o),ar[n+128>>2]=0,ar[n+132>>2]=-1,ar[n>>2]=3872,ar[t>>2]=3892,Ti(o),ar[o>>2]=3908,ar[(i=n+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[n+52>>2]=16,ar[f>>2]=0,ar[4+f>>2]=0,ar[8+f>>2]=0,Of(o,f),(0|tr[11+f>>0])<0&&Vl(0|ar[f>>2]),Pf(f,e,r),Hf(n,(u=(l=0|tr[(c=11+f|0)>>0])<<24>>24<0)?0|ar[f>>2]:f,u?0|ar[4+f>>2]:255&l),(0|tr[c>>0])<0&&Vl(0|ar[f>>2]),tn(f,e,r),Hf(n,(c=(l=0|tr[(u=11+f|0)>>0])<<24>>24<0)?0|ar[f>>2]:f,c?0|ar[4+f>>2]:255&l),(0|tr[u>>0])<0&&Vl(0|ar[f>>2]),jf(A,o),ar[n>>2]=3872,ar[t>>2]=3892,ar[o>>2]=3908,0<=(0|tr[11+i>>0]))return si(o),ci(t),void(ur=a);Vl(0|ar[i>>2]),si(o),ci(t),ur=a},function(A,e,r){$f(A|=0,e|=0,r|=0,-1)},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c=0,l=0,u=0;if(ur=(a=ur)+160|0,f=a+136|0,t=(n=a)+56|0,o=n+4|0,ar[n>>2]=268,ar[t>>2]=288,Yi(n+56|0,o),ar[n+128>>2]=0,ar[n+132>>2]=-1,ar[n>>2]=3872,ar[t>>2]=3892,Ti(o),ar[o>>2]=3908,ar[(i=n+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[n+52>>2]=16,ar[f>>2]=0,ar[4+f>>2]=0,ar[8+f>>2]=0,Of(o,f),(0|tr[11+f>>0])<0&&Vl(0|ar[f>>2]),Pf(f,e,r),Hf(n,(u=(l=0|tr[(c=11+f|0)>>0])<<24>>24<0)?0|ar[f>>2]:f,u?0|ar[4+f>>2]:255&l),(0|tr[c>>0])<0&&Vl(0|ar[f>>2]),tn(f,e,r),Hf(n,(c=(l=0|tr[(u=11+f|0)>>0])<<24>>24<0)?0|ar[f>>2]:f,c?0|ar[4+f>>2]:255&l),(0|tr[u>>0])<0&&Vl(0|ar[f>>2]),jf(A,o),ar[n>>2]=3872,ar[t>>2]=3892,ar[o>>2]=3908,0<=(0|tr[11+i>>0]))return si(o),ci(t),void(ur=a);Vl(0|ar[i>>2]),si(o),ci(t),ur=a},function(A,e,r){$f(A|=0,e|=0,r|=0,-1)},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a=0,c=0,l=0,u=0,s=0;if(ur=(o=ur)+160|0,a=o+136|0,n=(f=o)+56|0,t=f+4|0,ar[f>>2]=268,ar[n>>2]=288,Yi(f+56|0,t),ar[f+128>>2]=0,ar[f+132>>2]=-1,ar[f>>2]=3872,ar[n>>2]=3892,Ti(t),ar[t>>2]=3908,ar[(i=f+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[f+52>>2]=16,ar[a>>2]=0,ar[a+4>>2]=0,ar[a+8>>2]=0,Of(t,a),(0|tr[a+11>>0])<0&&Vl(0|ar[a>>2]),Pf(a,e,r),Hf(f,(c=(l=0|tr[(u=a+11|0)>>0])<<24>>24<0)?0|ar[a>>2]:a,c?0|ar[a+4>>2]:255&l),(0|tr[u>>0])<0&&Vl(0|ar[a>>2]),(0|(a=0|ar[e+56>>2]))!=(0|(u=0|ar[e+60>>2]))){l=a,a=0|ar[r>>2];do{if(0<(0|a))for(a=0;Hf(f,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(a=0|Hf(f,19266,26),Hf(0|qi(a,0|ar[l>>2]),26620,1),a=1+(0|ar[r>>2])|0,ar[r>>2]=a,(0|(e=0|ar[l+4>>2]))!=(0|(c=0|ar[l+8>>2])))do{if(0<(0|a))for(a=0;Hf(f,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););a=0|Hf(f,19293,16),s=(a=0|Hf(0|Li(a,0|or[e+2>>1]),19310,13))+(0|ar[(0|ar[a>>2])-12>>2])+4|0,ar[s>>2]=1|ar[s>>2],Hf(0|Pi(a,0!=(0|tr[e>>0])),17022,2),e=e+4|0,a=0|ar[r>>2]}while((0|e)!=(0|c));a=(0|a)<1?0:a+-1|0,ar[r>>2]=a,l=l+16|0}while((0|l)!=(0|u))}if(jf(A,t),ar[f>>2]=3872,ar[n>>2]=3892,ar[t>>2]=3908,0<=(0|tr[11+i>>0]))return si(t),ci(n),void(ur=o);Vl(0|ar[i>>2]),si(t),ci(n),ur=o},function(A,e,r){A|=0;var i,f,n,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0,V=0,X=0,_=0,F=0;ur=(n=ur)+64|0,F=n+44|0,i=n+8|0,qf(t=(f=n)+24|0,e|=0,r|=0),(0|tr[(t=t+8|0)+11>>0])<0&&Vl(0|ar[t>>2]);A:do{if(0|Lf(r,4,0)){if(ji(V=0|ar[r>>2],F,4),5&ar[V+(0|ar[(0|ar[V>>2])-12>>2])+16>>2]|0){for(t=r;ar[(_=t+8|0)>>2]=0,ar[_+4>>2]=0,tr[t+16>>0]=1,0!=(0|(t=0|ar[t+4>>2])););_=8;break}if(0<(0|(g=cr[F+1>>0]<<16|cr[F>>0]<<24|cr[F+2>>0]<<8|cr[F+3>>0]))){for(m=r+17|0,p=r+16|0,Z=8+i|0,W=e+37|0,B=e+60|0,E=e+64|0,G=e+56|0,V=y=4+i|0,b=e+40|0,d=f+2|0,k=C=12+i|0,h=I=F+1|0,w=F+2|0,v=F+3|0,s=0;;){if(0|tr[m>>0]){X=m;break A}if(0|tr[p>>0]){X=m;break A}if(ar[y>>2]=0,ar[Z>>2]=0,(ar[C>>2]=0)|tr[W>>0])if(0|Lf(r,4,0))if(ji(u=0|ar[r>>2],F,4),5&ar[u+(0|ar[(0|ar[u>>2])-12>>2])+16>>2]){for(t=r;ar[(u=t+8|0)>>2]=0,ar[u+4>>2]=0,tr[t+16>>0]=1,0!=(0|(t=0|ar[t+4>>2])););t=0}else t=cr[h>>0]<<16|cr[F>>0]<<24|cr[w>>0]<<8|cr[v>>0];else t=0;else{if(0|Lf(r,2,0))if(ji(u=0|ar[r>>2],F,2),5&ar[u+(0|ar[(0|ar[u>>2])-12>>2])+16>>2]){for(t=r;ar[(u=t+8|0)>>2]=0,ar[u+4>>2]=0,tr[t+16>>0]=1,0!=(0|(t=0|ar[t+4>>2])););t=0}else t=cr[F>>0]<<8|cr[I>>0];else t=0;t&=65535}ar[i>>2]=t;do{if(0|Lf(r,1,0)){if(ji(u=0|ar[r>>2],F,1),5&ar[u+(0|ar[(0|ar[u>>2])-12>>2])+16>>2]|0){for(t=r;ar[(u=t+8|0)>>2]=0,ar[u+4>>2]=0,tr[t+16>>0]=1,0!=(0|(t=0|ar[t+4>>2])););break}if(c=255&(u=0|tr[F>>0]),u<<24>>24){a=0;do{if(1&ar[b>>2]){if(0|Lf(r,2,0))if(ji(u=0|ar[r>>2],F,2),5&ar[u+(0|ar[(0|ar[u>>2])-12>>2])+16>>2]){for(t=r;ar[(u=t+8|0)>>2]=0,ar[u+4>>2]=0,tr[t+16>>0]=1,0!=(0|(t=0|ar[t+4>>2])););t=0}else t=65535&(cr[F>>0]<<8|cr[I>>0]);else t=0;e=(65535&t)>>>15&255,o=32767}else{if(0|Lf(r,1,0))if(ji(u=0|ar[r>>2],F,1),5&ar[u+(0|ar[(0|ar[u>>2])-12>>2])+16>>2]){for(t=r;ar[(u=t+8|0)>>2]=0,ar[u+4>>2]=0,tr[t+16>>0]=1,0!=(0|(t=0|ar[t+4>>2])););t=0}else t=0|tr[F>>0];else t=0;e=(255&t)>>>7,o=127,t&=255}tr[f>>0]=e,or[d>>1]=65535&t&o,(0|(t=0|ar[Z>>2]))==(0|ar[k>>2])?yn(V,f):(u=0|ar[f>>2],or[t>>1]=u,or[t+2>>1]=u>>>16,ar[Z>>2]=4+(0|ar[Z>>2])),a=a+1|0}while((0|a)<(0|c))}}}while(0);if((0|(o=0|ar[B>>2]))==(0|ar[E>>2]))pn(G,i),t=0|ar[y>>2];else{if(ar[o>>2]=ar[i>>2],ar[(a=o+4|0)>>2]=0,ar[(u=o+8|0)>>2]=0,t=(ar[o+12>>2]=0)|ar[V>>2],c=(e=(0|ar[Z>>2])-t|0)>>2){if(1073741823<c>>>0)break;l=0|El(e),ar[u>>2]=l,ar[a>>2]=l,ar[o+12>>2]=l+(c<<2),t=0|ar[V>>2],0<(0|(e=(0|ar[Z>>2])-t|0))&&(Eu(0|l,0|t,0|e),ar[u>>2]=l+(e>>>2<<2))}ar[B>>2]=16+(0|ar[B>>2])}if(0|t&&((0|(e=0|ar[Z>>2]))!=(0|t)&&(ar[Z>>2]=e+(~((e+-4-t|0)>>>2)<<2)),Vl(t)),(0|g)<=(0|(s=s+1|0))){X=m;break A}}il()}else _=8}else _=8}while(0);if(8==(0|_)&&(X=r+17|0),!(0|tr[X>>0]))return r=0|ar[(_=49920)+4>>2],ar[(F=A)>>2]=ar[_>>2],ar[F+4>>2]=r,Rl(A+8|0,49928),void(ur=n);ar[F>>2]=0,ar[F+4>>2]=0,ar[F+8>>2]=0,Cc(A,2,100,F),ur=(0<=(0|tr[F+11>>0])||Vl(0|ar[F>>2]),n)},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c=0,l=0,u=0;if(ur=(o=ur)+160|0,c=o+136|0,n=(f=o)+56|0,t=f+4|0,ar[f>>2]=268,ar[n>>2]=288,Yi(f+56|0,t),ar[f+128>>2]=0,ar[f+132>>2]=-1,ar[f>>2]=3872,ar[n>>2]=3892,Ti(t),ar[t>>2]=3908,ar[(i=f+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[f+52>>2]=16,ar[c>>2]=0,ar[c+4>>2]=0,ar[c+8>>2]=0,Of(t,c),(0|tr[c+11>>0])<0&&Vl(0|ar[c>>2]),Pf(c,e,r),Hf(f,(u=(a=0|tr[(l=c+11|0)>>0])<<24>>24<0)?0|ar[c>>2]:c,u?0|ar[c+4>>2]:255&a),(0|tr[l>>0])<0&&Vl(0|ar[c>>2]),0<(0|ar[r>>2]))for(c=0;Hf(f,16980,2),(0|(c=c+1|0))<(0|ar[r>>2]););if(l=0|Hf(f,19152,13),l=0|Hf(0|qi(l,0|ar[e+56>>2]),26620,1),0<(0|ar[r>>2]))for(c=0;Hf(l,16980,2),(0|(c=c+1|0))<(0|ar[r>>2]););if(u=0|Hf(l,19166,14),Hf(0|qi(u,0|ar[e+60>>2]),26620,1),jf(A,t),ar[f>>2]=3872,ar[n>>2]=3892,ar[t>>2]=3908,0<=(0|tr[11+i>>0]))return si(t),ci(n),void(ur=o);Vl(0|ar[i>>2]),si(t),ci(n),ur=o},function(A,e,r){A|=0;var i,f=0,n=0,t=0;if(ur=(i=ur)+32|0,n=i+20|0,qf(f=i,e|=0,r|=0),(0|tr[(f=f+8|0)+11>>0])<0&&Vl(0|ar[f>>2]),0|Lf(r,4,0))if(ji(f=0|ar[r>>2],n,4),5&ar[f+(0|ar[(0|ar[f>>2])-12>>2])+16>>2]){for(f=r;ar[(t=f+8|0)>>2]=0,ar[t+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[n+1>>0]<<16|cr[n>>0]<<24|cr[n+2>>0]<<8|cr[n+3>>0];else f=0;if(ar[e+56>>2]=f,0|Lf(r,4,0))if(ji(t=0|ar[r>>2],n,4),5&ar[t+(0|ar[(0|ar[t>>2])-12>>2])+16>>2]){for(f=r;ar[(t=f+8|0)>>2]=0,ar[t+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[n+1>>0]<<16|cr[n>>0]<<24|cr[n+2>>0]<<8|cr[n+3>>0];else f=0;if(ar[e+60>>2]=f,!(0|tr[r+17>>0]))return n=0|ar[(r=49920)+4>>2],ar[(t=A)>>2]=ar[r>>2],ar[t+4>>2]=n,Rl(A+8|0,49928),void(ur=i);ar[n>>2]=0,ar[n+4>>2]=0,ar[n+8>>2]=0,Cc(A,2,100,n),ur=(0<=(0|tr[n+11>>0])||Vl(0|ar[n>>2]),i)},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a=0,c=0,l=0,u=0;if(ur=(o=ur)+160|0,a=o+136|0,n=(f=o)+56|0,t=f+4|0,ar[f>>2]=268,ar[n>>2]=288,Yi(f+56|0,t),ar[f+128>>2]=0,ar[f+132>>2]=-1,ar[f>>2]=3872,ar[n>>2]=3892,Ti(t),ar[t>>2]=3908,ar[(i=f+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[f+52>>2]=16,ar[a>>2]=0,ar[a+4>>2]=0,ar[a+8>>2]=0,Of(t,a),(0|tr[a+11>>0])<0&&Vl(0|ar[a>>2]),Pf(a,e,r),Hf(f,(u=(l=0|tr[(c=a+11|0)>>0])<<24>>24<0)?0|ar[a>>2]:a,u?0|ar[a+4>>2]:255&l),(0|tr[c>>0])<0&&Vl(0|ar[a>>2]),0<(0|ar[r>>2]))for(a=0;Hf(f,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(a=0|Hf(f,19041,10),c=0|Hf(0|Hf(a,(u=(c=0|tr[(l=e+56|0)+11>>0])<<24>>24<0)?0|ar[l>>2]:l,u?0|ar[e+60>>2]:255&c),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(Hf(c,19052,14),(0|(a=0|ar[e+68>>2]))!=(0|(c=0|ar[e+72>>2])))for(;u=0|tr[a>>0],l=f+(0|ar[(0|ar[f>>2])-12>>2])+4|0,ar[l>>2]=-75&ar[l>>2]|8,ar[f+(0|ar[(0|ar[f>>2])-12>>2])+12>>2]=2,ar[f+(0|ar[(0|ar[f>>2])-12>>2])+76>>2]=48,Hf(0|Ki(f,255&u),17848,1),(0|(a=a+1|0))!=(0|c););if(Hf(f,26620,1),jf(A,t),ar[f>>2]=3872,ar[n>>2]=3892,ar[t>>2]=3908,0<=(0|tr[11+i>>0]))return si(t),ci(n),void(ur=o);Vl(0|ar[i>>2]),si(t),ci(n),ur=o},function(A,e,r){A|=0;var i,f,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0;ur=(f=ur)+32|0,d=f+20|0,qf(n=f,e|=0,r|=0),(0|tr[(n=n+8|0)+11>>0])<0&&Vl(0|ar[n>>2]),nn(d,r),(0|tr[(t=(n=e+56|0)+11|0)>>0])<0?(tr[ar[n>>2]>>0]=0,ar[e+60>>2]=0):(tr[n>>0]=0,tr[t>>0]=0),Ml(n,0),ar[n>>2]=ar[d>>2],ar[n+4>>2]=ar[d+4>>2],ar[n+8>>2]=ar[d+8>>2],i=r+16|0;A:do{if(!(0|tr[i>>0])){for(s=e+68|0,b=e+72|0,u=e+76|0;;){if(0|Lf(r,1,0))if(ji(l=0|ar[r>>2],d,1),5&ar[l+(0|ar[(0|ar[l>>2])-12>>2])+16>>2]){for(n=r;ar[(l=n+8|0)>>2]=0,ar[l+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=0|tr[d>>0];else n=0;if(t=0|ar[b>>2],(e=l=0|ar[u>>2])>>>0<=t>>>0){if(c=l=0|ar[s>>2],(0|(t=(a=t-l|0)+1|0))<0)break;o=(e=e-l|0)<<1,o=(t=e>>>0<1073741823?o>>>0<t>>>0?t:o:2147483647)?0|El(t):0,tr[(e=o+a|0)>>0]=n,n=e+(0-a)|0,0<(0|a)&&Eu(0|n,0|c,0|a),ar[s>>2]=n,ar[b>>2]=e+1,ar[u>>2]=o+t,0|l&&Vl(c)}else tr[t>>0]=n,ar[b>>2]=1+(0|ar[b>>2]);if(0|tr[i>>0])break A}il()}}while(0);if(!(0|tr[r+17>>0]))return r=0|ar[(b=49920)+4>>2],ar[(d=A)>>2]=ar[b>>2],ar[d+4>>2]=r,Rl(A+8|0,49928),void(ur=f);ar[d>>2]=0,ar[d+4>>2]=0,ar[d+8>>2]=0,Cc(A,2,100,d),ur=(0<=(0|tr[d+11>>0])||Vl(0|ar[d>>2]),f)},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c,l=0,u=0;if(ur=(o=ur)+160|0,l=o+136|0,n=(f=o)+56|0,t=f+4|0,ar[f>>2]=268,ar[n>>2]=288,Yi(f+56|0,t),ar[f+128>>2]=0,ar[f+132>>2]=-1,ar[f>>2]=3872,ar[n>>2]=3892,Ti(t),ar[t>>2]=3908,ar[(i=f+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[f+52>>2]=16,ar[l>>2]=0,ar[l+4>>2]=0,ar[l+8>>2]=0,Of(t,l),(0|tr[l+11>>0])<0&&Vl(0|ar[l>>2]),Pf(l,e,r),Hf(f,(u=(c=0|tr[(a=l+11|0)>>0])<<24>>24<0)?0|ar[l>>2]:l,u?0|ar[l+4>>2]:255&c),(0|tr[a>>0])<0&&Vl(0|ar[l>>2]),0<(0|ar[r>>2]))for(l=0;Hf(f,16980,2),(0|(l=l+1|0))<(0|ar[r>>2]););if(u=0|Hf(f,18929,10),Hf(0|Ki(u,0|ar[e+56>>2]),18940,15),jf(A,t),ar[f>>2]=3872,ar[n>>2]=3892,ar[t>>2]=3908,0<=(0|tr[11+i>>0]))return si(t),ci(n),void(ur=o);Vl(0|ar[i>>2]),si(t),ci(n),ur=o},function(A,e,r){A|=0,e|=0;var i,f=0,n=0,t=0;if(ur=(i=ur)+16|0,n=i,0|Lf(r|=0,1,0))if(ji(f=0|ar[r>>2],n,1),5&ar[f+(0|ar[(0|ar[f>>2])-12>>2])+16>>2]){for(f=r;ar[(t=f+8|0)>>2]=0,ar[t+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=0|tr[n>>0];else f=0;if(ar[e+56>>2]=90*(3&f),!(0|tr[r+17>>0]))return n=0|ar[(r=49920)+4>>2],ar[(t=A)>>2]=ar[r>>2],ar[t+4>>2]=n,Rl(A+8|0,49928),void(ur=i);ar[n>>2]=0,ar[n+4>>2]=0,ar[n+8>>2]=0,Cc(A,2,100,n),ur=(0<=(0|tr[n+11>>0])||Vl(0|ar[n>>2]),i)},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c,l,u=0;if(ur=(o=ur)+160|0,u=o+136|0,n=(f=o)+56|0,t=f+4|0,ar[f>>2]=268,ar[n>>2]=288,Yi(f+56|0,t),ar[f+128>>2]=0,ar[f+132>>2]=-1,ar[f>>2]=3872,ar[n>>2]=3892,Ti(t),ar[t>>2]=3908,ar[(i=f+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[f+52>>2]=16,ar[u>>2]=0,ar[u+4>>2]=0,ar[u+8>>2]=0,Of(t,u),(0|tr[u+11>>0])<0&&Vl(0|ar[u>>2]),Pf(u,e,r),Hf(f,(l=(c=0|tr[(a=u+11|0)>>0])<<24>>24<0)?0|ar[u>>2]:u,l?0|ar[u+4>>2]:255&c),(0|tr[a>>0])<0&&Vl(0|ar[u>>2]),0<(0|ar[r>>2]))for(u=0;Hf(f,16980,2),(0|(u=u+1|0))<(0|ar[r>>2]););switch(Hf(f,18808,13),0|tr[e+56>>0]){case 0:Hf(f,18822,9);break;case 1:Hf(f,18832,11)}if(jf(A,t),ar[f>>2]=3872,ar[n>>2]=3892,ar[t>>2]=3908,0<=(0|tr[11+i>>0]))return si(t),ci(n),void(ur=o);Vl(0|ar[i>>2]),si(t),ci(n),ur=o},function(A,e,r){A|=0,e|=0;var i,f=0,n=0,t=0;if(ur=(i=ur)+16|0,n=i,0|Lf(r|=0,1,0))if(ji(f=0|ar[r>>2],n,1),5&ar[f+(0|ar[(0|ar[f>>2])-12>>2])+16>>2]){for(f=r;ar[(t=f+8|0)>>2]=0,ar[t+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=0|tr[n>>0];else f=0;if(tr[e+56>>0]=1&f,!(0|tr[r+17>>0]))return n=0|ar[(r=49920)+4>>2],ar[(t=A)>>2]=ar[r>>2],ar[t+4>>2]=n,Rl(A+8|0,49928),void(ur=i);ar[n>>2]=0,ar[n+4>>2]=0,ar[n+8>>2]=0,Cc(A,2,100,n),ur=(0<=(0|tr[n+11>>0])||Vl(0|ar[n>>2]),i)},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c,l=0,u=0;if(ur=(o=ur)+160|0,l=o+136|0,n=(f=o)+56|0,t=f+4|0,ar[f>>2]=268,ar[n>>2]=288,Yi(f+56|0,t),ar[f+128>>2]=0,ar[f+132>>2]=-1,ar[f>>2]=3872,ar[n>>2]=3892,Ti(t),ar[t>>2]=3908,ar[(i=f+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[f+52>>2]=16,ar[l>>2]=0,ar[l+4>>2]=0,ar[l+8>>2]=0,Of(t,l),(0|tr[l+11>>0])<0&&Vl(0|ar[l>>2]),Pf(l,e,r),Hf(f,(u=(c=0|tr[(a=l+11|0)>>0])<<24>>24<0)?0|ar[l>>2]:l,u?0|ar[l+4>>2]:255&c),(0|tr[a>>0])<0&&Vl(0|ar[l>>2]),0<(0|ar[r>>2]))for(l=0;Hf(f,16980,2),(0|(l=l+1|0))<(0|ar[r>>2]););if(u=0|Hf(f,18687,16),u=0|Hf(0|Ki(u,0|ar[e+56>>2]),18704,1),u=0|Hf(0|Ki(u,0|ar[e+60>>2]),18706,3),u=0|Hf(0|Ki(u,0|ar[e+64>>2]),18704,1),Hf(0|Ki(u,0|ar[e+68>>2]),26620,1),0<(0|ar[r>>2]))for(l=0;Hf(f,16980,2),(0|(l=l+1|0))<(0|ar[r>>2]););if(u=0|Hf(f,18710,8),u=0|Hf(0|Ki(u,0|ar[e+72>>2]),18704,1),u=0|Hf(0|Ki(u,0|ar[e+76>>2]),18719,3),u=0|Hf(0|Ki(u,0|ar[e+80>>2]),18704,1),Hf(0|Ki(u,0|ar[e+84>>2]),26620,1),jf(A,t),ar[f>>2]=3872,ar[n>>2]=3892,ar[t>>2]=3908,0<=(0|tr[11+i>>0]))return si(t),ci(n),void(ur=o);Vl(0|ar[i>>2]),si(t),ci(n),ur=o},function(A,e,r){A|=0,e|=0;var i,f=0,n=0,t=0;if(ur=(i=ur)+16|0,n=i,0|Lf(r|=0,4,0))if(ji(f=0|ar[r>>2],n,4),5&ar[f+(0|ar[(0|ar[f>>2])-12>>2])+16>>2]){for(f=r;ar[(t=f+8|0)>>2]=0,ar[t+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[n+1>>0]<<16|cr[n>>0]<<24|cr[n+2>>0]<<8|cr[n+3>>0];else f=0;if(ar[e+56>>2]=f,0|Lf(r,4,0))if(ji(t=0|ar[r>>2],n,4),5&ar[t+(0|ar[(0|ar[t>>2])-12>>2])+16>>2]){for(f=r;ar[(t=f+8|0)>>2]=0,ar[t+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[n+1>>0]<<16|cr[n>>0]<<24|cr[n+2>>0]<<8|cr[n+3>>0];else f=0;if(ar[e+60>>2]=f,0|Lf(r,4,0))if(ji(t=0|ar[r>>2],n,4),5&ar[t+(0|ar[(0|ar[t>>2])-12>>2])+16>>2]){for(f=r;ar[(t=f+8|0)>>2]=0,ar[t+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[n+1>>0]<<16|cr[n>>0]<<24|cr[n+2>>0]<<8|cr[n+3>>0];else f=0;if(ar[e+64>>2]=f,0|Lf(r,4,0))if(ji(t=0|ar[r>>2],n,4),5&ar[t+(0|ar[(0|ar[t>>2])-12>>2])+16>>2]){for(f=r;ar[(t=f+8|0)>>2]=0,ar[t+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[n+1>>0]<<16|cr[n>>0]<<24|cr[n+2>>0]<<8|cr[n+3>>0];else f=0;if(ar[e+68>>2]=f,0|Lf(r,4,0))if(ji(t=0|ar[r>>2],n,4),5&ar[t+(0|ar[(0|ar[t>>2])-12>>2])+16>>2]){for(f=r;ar[(t=f+8|0)>>2]=0,ar[t+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[n+1>>0]<<16|cr[n>>0]<<24|cr[n+2>>0]<<8|cr[n+3>>0];else f=0;if(ar[e+72>>2]=f,0|Lf(r,4,0))if(ji(t=0|ar[r>>2],n,4),5&ar[t+(0|ar[(0|ar[t>>2])-12>>2])+16>>2]){for(f=r;ar[(t=f+8|0)>>2]=0,ar[t+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[n+1>>0]<<16|cr[n>>0]<<24|cr[n+2>>0]<<8|cr[n+3>>0];else f=0;if(ar[e+76>>2]=f,0|Lf(r,4,0))if(ji(t=0|ar[r>>2],n,4),5&ar[t+(0|ar[(0|ar[t>>2])-12>>2])+16>>2]){for(f=r;ar[(t=f+8|0)>>2]=0,ar[t+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[n+1>>0]<<16|cr[n>>0]<<24|cr[n+2>>0]<<8|cr[n+3>>0];else f=0;if(ar[e+80>>2]=f,0|Lf(r,4,0))if(ji(t=0|ar[r>>2],n,4),5&ar[t+(0|ar[(0|ar[t>>2])-12>>2])+16>>2]){for(f=r;ar[(t=f+8|0)>>2]=0,ar[t+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[n+1>>0]<<16|cr[n>>0]<<24|cr[n+2>>0]<<8|cr[n+3>>0];else f=0;if(ar[e+84>>2]=f,!(0|tr[r+17>>0]))return n=0|ar[(r=49920)+4>>2],ar[(t=A)>>2]=ar[r>>2],ar[t+4>>2]=n,Rl(A+8|0,49928),void(ur=i);ar[n>>2]=0,ar[n+4>>2]=0,ar[n+8>>2]=0,Cc(A,2,100,n),ur=(0<=(0|tr[n+11>>0])||Vl(0|ar[n>>2]),i)},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c=0,l=0,u=0,s=0,b=0,d=0;if(ur=(a=ur)+160|0,f=a+136|0,t=(n=a)+56|0,o=n+4|0,ar[n>>2]=268,ar[t>>2]=288,Yi(n+56|0,o),ar[n+128>>2]=0,ar[n+132>>2]=-1,ar[n>>2]=3872,ar[t>>2]=3892,Ti(o),ar[o>>2]=3908,ar[(i=n+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[n+52>>2]=16,ar[f>>2]=0,ar[4+f>>2]=0,ar[8+f>>2]=0,Of(o,f),(0|tr[11+f>>0])<0&&Vl(0|ar[f>>2]),Pf(f,e,r),Hf(n,(u=(s=0|tr[(b=11+f|0)>>0])<<24>>24<0)?0|ar[f>>2]:f,u?0|ar[4+f>>2]:255&s),(0|tr[b>>0])<0&&Vl(0|ar[f>>2]),(0|(c=0|ar[e+56>>2]))!=(0|(u=0|ar[e+60>>2]))){s=11+f|0,b=4+f|0;do{if(0<(0|ar[r>>2]))for(e=0;Hf(n,16980,2),(0|(e=e+1|0))<(0|ar[r>>2]););if(d=0|Hf(n,18557,21),xf(f,c),l=0|Hf(0|Hf(0|Hf(d,(e=(l=0|tr[s>>0])<<24>>24<0)?0|ar[f>>2]:f,e?0|ar[b>>2]:255&l),18579,1),18581,10),Hf(0|qi(l,0|ar[c+48>>2]),18592,9),(0|tr[s>>0])<0&&Vl(0|ar[f>>2]),(0|(e=0|ar[c+52>>2]))!=(0|(l=0|ar[c+56>>2])))for(;Hf(0|qi(n,0|ar[e>>2]),17848,1),(0|(e=e+4|0))!=(0|l););Hf(n,26620,1),c=c+64|0}while((0|c)!=(0|u))}if(jf(A,o),ar[n>>2]=3872,ar[t>>2]=3892,ar[o>>2]=3908,0<=(0|tr[11+i>>0]))return si(o),ci(t),void(ur=a);Vl(0|ar[i>>2]),si(o),ci(t),ur=a},function(A,e,r){A|=0;var i,f,n,t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I=0,B=0,E=0,G=0,V=0,X=0;for(ur=(W=ur)+112|0,C=W+88|0,V=(G=W)+64|0,qf(I=W+68|0,e|=0,r|=0),(0|tr[(I=I+8|0)+11>>0])<0&&Vl(0|ar[I>>2]),u=r+16|0,s=G+8|0,b=G+40|0,k=G+56|0,w=e+37|0,g=G+48|0,m=h=G+60|0,p=d=G+52|0,y=e+60|0,Z=e+64|0,i=e+56|0,n=11+(f=A+8|0)|0,t=v=1+C|0,o=2+C|0,a=3+C|0,c=G+24|0,l=G+28|0;!(0|tr[u>>0]);){if(ar[G>>2]=3840,ar[b>>2]=0,ar[s>>2]=0,ar[4+s>>2]=0,ar[8+s>>2]=0,ar[12+s>>2]=0,ar[16+s>>2]=0,ar[20+s>>2]=0,ar[24+s>>2]=0,or[28+s>>1]=0,ar[d>>2]=0,ar[k>>2]=0,ar[h>>2]=0,rn(A,G,r),(0|ar[A>>2])==(0|ar[12480])){do{if(0|tr[w>>0]){if(0|Lf(r,4,0))if(ji(E=0|ar[r>>2],C,4),5&ar[E+(0|ar[(0|ar[E>>2])-12>>2])+16>>2]){for(I=r;ar[(E=I+8|0)>>2]=0,ar[E+4>>2]=0,tr[I+16>>0]=1,0!=(0|(I=0|ar[I+4>>2])););I=0}else I=cr[t>>0]<<16|cr[C>>0]<<24|cr[o>>0]<<8|cr[a>>0];else I=0;if(ar[g>>2]=I,0|Lf(r,2,0)){if(ji(E=0|ar[r>>2],C,2),5&ar[E+(0|ar[(0|ar[E>>2])-12>>2])+16>>2]|0){for(I=r;ar[(E=I+8|0)>>2]=0,ar[E+4>>2]=0,tr[I+16>>0]=1,0!=(0|(I=0|ar[I+4>>2])););break}if(0|(E=cr[C>>0]<<8|cr[v>>0])){B=0;do{if(0|Lf(r,4,0))if(ji(e=0|ar[r>>2],C,4),5&ar[e+(0|ar[(0|ar[e>>2])-12>>2])+16>>2]){for(I=r;ar[(e=I+8|0)>>2]=0,ar[e+4>>2]=0,tr[I+16>>0]=1,0!=(0|(I=0|ar[I+4>>2])););I=0}else I=cr[t>>0]<<16|cr[C>>0]<<24|cr[o>>0]<<8|cr[a>>0];else I=0;ar[V>>2]=I,(e=0|ar[k>>2])>>>0<(0|ar[m>>2])>>>0?(ar[e>>2]=I,ar[k>>2]=e+4):Kf(p,V),B=B+1|0}while(0==(0|tr[u>>0])&(0|B)<(0|E))}}}else{if(0|Lf(r,2,0))if(ji(E=0|ar[r>>2],C,2),5&ar[E+(0|ar[(0|ar[E>>2])-12>>2])+16>>2]){for(I=r;ar[(E=I+8|0)>>2]=0,ar[E+4>>2]=0,tr[I+16>>0]=1,0!=(0|(I=0|ar[I+4>>2])););I=0}else I=cr[C>>0]<<8|cr[v>>0];else I=0;if(ar[g>>2]=65535&I,0|Lf(r,2,0)){if(ji(E=0|ar[r>>2],C,2),5&ar[E+(0|ar[(0|ar[E>>2])-12>>2])+16>>2]|0){for(I=r;ar[(E=I+8|0)>>2]=0,ar[E+4>>2]=0,tr[I+16>>0]=1,0!=(0|(I=0|ar[I+4>>2])););break}if(0|(E=cr[C>>0]<<8|cr[v>>0])){B=0;do{if(0|Lf(r,2,0))if(ji(e=0|ar[r>>2],C,2),5&ar[e+(0|ar[(0|ar[e>>2])-12>>2])+16>>2]){for(I=r;ar[(e=I+8|0)>>2]=0,ar[e+4>>2]=0,tr[I+16>>0]=1,0!=(0|(I=0|ar[I+4>>2])););I=0}else I=cr[C>>0]<<8|cr[v>>0];else I=0;I&=65535,ar[V>>2]=I,(e=0|ar[k>>2])>>>0<(0|ar[m>>2])>>>0?(ar[e>>2]=I,ar[k>>2]=e+4):Kf(p,V),B=B+1|0}while(0==(0|tr[u>>0])&(0|B)<(0|E))}}}}while(0);(0|(I=0|ar[y>>2]))==(0|ar[Z>>2])?vn(i,G):(wn(I,G),ar[y>>2]=64+(0|ar[y>>2])),B=((0|tr[n>>0])<0&&Vl(0|ar[f>>2]),0)}else B=1;if(0|(I=0|ar[d>>2])&&((0|(e=0|ar[k>>2]))!=(0|I)&&(ar[k>>2]=e+(~((e+-4-I|0)>>>2)<<2)),Vl(I)),ar[G>>2]=3840,0|(I=0|ar[c>>2])&&((0|ar[l>>2])!=(0|I)&&(ar[l>>2]=I),Vl(I)),1==(0|B)){X=64;break}}ur=(64!=(0|X)&&(0|tr[r+17>>0]?(ar[C>>2]=0,ar[4+C>>2]=0,ar[8+C>>2]=0,Cc(A,2,100,C),(0|tr[11+C>>0])<0&&Vl(0|ar[C>>2])):(V=0|ar[(G=49920)+4>>2],ar[(X=A)>>2]=ar[G>>2],ar[X+4>>2]=V,Rl(f,49928))),W)},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c=0,l=0,u=0;if(ur=(o=ur)+160|0,c=o+136|0,n=(f=o)+56|0,t=f+4|0,ar[f>>2]=268,ar[n>>2]=288,Yi(f+56|0,t),ar[f+128>>2]=0,ar[f+132>>2]=-1,ar[f>>2]=3872,ar[n>>2]=3892,Ti(t),ar[t>>2]=3908,ar[(i=f+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[f+52>>2]=16,ar[c>>2]=0,ar[c+4>>2]=0,ar[c+8>>2]=0,Of(t,c),(0|tr[c+11>>0])<0&&Vl(0|ar[c>>2]),Pf(c,e,r),Hf(f,(u=(l=0|tr[(a=c+11|0)>>0])<<24>>24<0)?0|ar[c>>2]:c,u?0|ar[c+4>>2]:255&l),(0|tr[a>>0])<0&&Vl(0|ar[c>>2]),0<(0|ar[r>>2]))for(c=0;Hf(f,16980,2),(0|(c=c+1|0))<(0|ar[r>>2]););if(l=0|Hf(f,17935,22),Hf(0|$i(l,u=0|gu(0|ar[(u=e+8|0)>>2],0|ar[u+4>>2],0|ar[e+16>>2],0),D),26620,1),jf(A,t),ar[f>>2]=3872,ar[n>>2]=3892,ar[t>>2]=3908,0<=(0|tr[11+i>>0]))return si(t),ci(n),void(ur=o);Vl(0|ar[i>>2]),si(t),ci(n),ur=o},function(A,e,r){A|=0,e|=0;var i,f=0;if(ur=(i=ur)+16|0,function(A,e){e|=0;var r,i,f,n=0;r=ur=(i=ur)+31&-32,ur=ur+32|0,f=16+r|0,ar[(n=A|=0)>>2]=0,ar[n+4>>2]=0,ar[(n=A+8|0)>>2]=-1,ar[n+4>>2]=-1,Si(f,e,1),0|tr[f>>0]&&(n=0|ar[e+(0|ar[(0|ar[e>>2])-12>>2])+24>>2],gs[15&ar[16+(0|ar[n>>2])>>2]](r,n,0,0,1,8),ar[A>>2]=ar[r>>2],ar[A+4>>2]=ar[4+r>>2],ar[A+8>>2]=ar[8+r>>2],ar[A+12>>2]=ar[12+r>>2]),ur=i}(f=i,0|ar[(r|=0)>>2]),ar[(e=e+56|0)>>2]=ar[f>>2],ar[e+4>>2]=ar[f+4>>2],ar[e+8>>2]=ar[f+8>>2],ar[e+12>>2]=ar[f+12>>2],!(0|tr[r+17>>0]))return r=0|ar[(e=49920)+4>>2],ar[(f=A)>>2]=ar[e>>2],ar[f+4>>2]=r,Rl(A+8|0,49928),void(ur=i);ar[f>>2]=0,ar[f+4>>2]=0,ar[f+8>>2]=0,Cc(A,2,100,f),ur=(0<=(0|tr[f+11>>0])||Vl(0|ar[f>>2]),i)},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c=0,l=0,u=0,s=0,b=0,d=0;if(ur=(a=ur)+160|0,f=a+136|0,t=(n=a)+56|0,o=n+4|0,ar[n>>2]=268,ar[t>>2]=288,Yi(n+56|0,o),ar[n+128>>2]=0,ar[n+132>>2]=-1,ar[n>>2]=3872,ar[t>>2]=3892,Ti(o),ar[o>>2]=3908,ar[(i=n+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[n+52>>2]=16,ar[f>>2]=0,ar[4+f>>2]=0,ar[8+f>>2]=0,Of(o,f),(0|tr[11+f>>0])<0&&Vl(0|ar[f>>2]),Pf(f,e,r),Hf(n,(u=(s=0|tr[(b=11+f|0)>>0])<<24>>24<0)?0|ar[f>>2]:f,u?0|ar[4+f>>2]:255&s),(0|tr[b>>0])<0&&Vl(0|ar[f>>2]),(0|(c=0|ar[e+56>>2]))!=(0|(u=0|ar[e+60>>2]))){s=11+f|0,b=4+f|0;do{if(0<(0|ar[r>>2]))for(e=0;Hf(n,16980,2),(0|(e=e+1|0))<(0|ar[r>>2]););if(d=0|Hf(n,17807,12),xf(f,c),l=0|Hf(0|Hf(d,(e=(l=0|tr[s>>0])<<24>>24<0)?0|ar[f>>2]:f,e?0|ar[b>>2]:255&l),26620,1),0<(0|ar[r>>2]))for(e=0;Hf(l,16980,2),(0|(e=e+1|0))<(0|ar[r>>2]););if(l=0|Hf(l,17820,12),l=0|Hf(0|qi(l,0|ar[c+48>>2]),26620,1),0<(0|ar[r>>2]))for(e=0;Hf(l,16980,2),(0|(e=e+1|0))<(0|ar[r>>2]););if(Hf(l,17833,14),(0|tr[s>>0])<0&&Vl(0|ar[f>>2]),(0|(e=0|ar[c+52>>2]))!=(0|(l=0|ar[c+56>>2])))for(;Hf(0|qi(n,0|ar[e>>2]),17848,1),(0|(e=e+4|0))!=(0|l););Hf(n,26620,1),c=c+64|0}while((0|c)!=(0|u))}if(jf(A,o),ar[n>>2]=3872,ar[t>>2]=3892,ar[o>>2]=3908,0<=(0|tr[11+i>>0]))return si(o),ci(t),void(ur=a);Vl(0|ar[i>>2]),si(o),ci(t),ur=a},function(A,e,r){var i,f,n,t,o,a,c,l,u,s,b,d,k,h,w,v,g,m,p,y,Z,C,W,I=0,B=0,E=0,G=0,V=0,X=0;for(ur=(W=ur)+96|0,y=(p=W)+84|0,Z=(r|=0)+16|0,C=p+8|0,G=p+40|0,a=p+56|0,u=8+(m=W+64|0)|0,s=11+(l=(A|=0)+8|0)|0,b=A+12|0,d=1+m|0,k=2+m|0,h=3+m|0,w=p+48|0,v=(e|=0)+60|0,g=e+64|0,i=e+56|0,f=c=p+60|0,n=V=p+52|0,t=p+24|0,o=p+28|0;!(0|tr[Z>>0]);){if(ar[p>>2]=3840,ar[G>>2]=0,ar[C>>2]=0,ar[4+C>>2]=0,ar[8+C>>2]=0,ar[12+C>>2]=0,ar[16+C>>2]=0,ar[20+C>>2]=0,ar[24+C>>2]=0,or[28+C>>1]=0,ar[V>>2]=0,ar[a>>2]=0,ar[c>>2]=0,rn(A,p,r),(0|ar[A>>2])==(0|ar[12480]))if(qf(m,p,r),B=0|ar[(I=m)+4>>2],ar[(E=A)>>2]=ar[I>>2],ar[E+4>>2]=B,(0|tr[s>>0])<0?(tr[ar[l>>2]>>0]=0,ar[b>>2]=0):(tr[l>>0]=0,tr[s>>0]=0),Ml(l,0),ar[l>>2]=ar[u>>2],ar[4+l>>2]=ar[4+u>>2],ar[8+l>>2]=ar[8+u>>2],(0|ar[A>>2])==(0|ar[12480])){if(0|Lf(r,4,0))if(ji(E=0|ar[r>>2],m,4),5&ar[E+(0|ar[(0|ar[E>>2])-12>>2])+16>>2]){for(e=r;ar[(E=e+8|0)>>2]=0,ar[E+4>>2]=0,tr[e+16>>0]=1,0!=(0|(e=0|ar[e+4>>2])););e=0}else e=cr[d>>0]<<16|cr[m>>0]<<24|cr[k>>0]<<8|cr[h>>0];else e=0;ar[w>>2]=e;A:do{if(0|Lf(r,4,0)){if(ji(E=0|ar[r>>2],m,4),5&ar[E+(0|ar[(0|ar[E>>2])-12>>2])+16>>2]|0){for(e=r;ar[(E=e+8|0)>>2]=0,ar[E+4>>2]=0,tr[e+16>>0]=1,0!=(0|(e=0|ar[e+4>>2])););break}if(0<(0|(E=cr[d>>0]<<16|cr[m>>0]<<24|cr[k>>0]<<8|cr[h>>0]))){B=0;do{if(0|tr[Z>>0])break A;if(0|Lf(r,4,0))if(ji(I=0|ar[r>>2],m,4),5&ar[I+(0|ar[(0|ar[I>>2])-12>>2])+16>>2]){for(e=r;ar[(I=e+8|0)>>2]=0,ar[I+4>>2]=0,tr[e+16>>0]=1,0!=(0|(e=0|ar[e+4>>2])););e=0}else e=cr[d>>0]<<16|cr[m>>0]<<24|cr[k>>0]<<8|cr[h>>0];else e=0;ar[y>>2]=e,(I=0|ar[a>>2])>>>0<(0|ar[f>>2])>>>0?(ar[I>>2]=e,ar[a>>2]=I+4):Kf(n,y),B=B+1|0}while((0|B)<(0|E))}}}while(0);(0|(e=0|ar[v>>2]))==(0|ar[g>>2])?cn(i,p):(an(e,p),ar[v>>2]=64+(0|ar[v>>2])),B=((0|tr[s>>0])<0&&Vl(0|ar[l>>2]),0)}else B=1;else B=1;if(0|(e=0|ar[V>>2])&&((0|(I=0|ar[a>>2]))!=(0|e)&&(ar[a>>2]=I+(~((I+-4-e|0)>>>2)<<2)),Vl(e)),ar[p>>2]=3840,0|(e=0|ar[t>>2])&&((0|ar[o>>2])!=(0|e)&&(ar[o>>2]=e),Vl(e)),1==(0|B)){X=47;break}}ur=(47!=(0|X)&&(0|tr[r+17>>0]?(ar[m>>2]=0,ar[4+m>>2]=0,ar[8+m>>2]=0,Cc(A,2,100,m),(0|tr[11+m>>0])<0&&Vl(0|ar[m>>2])):(V=0|ar[(G=49920)+4>>2],ar[(X=A)>>2]=ar[G>>2],ar[X+4>>2]=V,Rl(l,49928))),W)},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c=0,l=0,u=0;if(ur=(a=ur)+160|0,f=a+136|0,t=(n=a)+56|0,o=n+4|0,ar[n>>2]=268,ar[t>>2]=288,Yi(n+56|0,o),ar[n+128>>2]=0,ar[n+132>>2]=-1,ar[n>>2]=3872,ar[t>>2]=3892,Ti(o),ar[o>>2]=3908,ar[(i=n+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[n+52>>2]=16,ar[f>>2]=0,ar[4+f>>2]=0,ar[8+f>>2]=0,Of(o,f),(0|tr[11+f>>0])<0&&Vl(0|ar[f>>2]),Pf(f,e,r),Hf(n,(u=(l=0|tr[(c=11+f|0)>>0])<<24>>24<0)?0|ar[f>>2]:f,u?0|ar[4+f>>2]:255&l),(0|tr[c>>0])<0&&Vl(0|ar[f>>2]),tn(f,e,r),Hf(n,(c=(l=0|tr[(u=11+f|0)>>0])<<24>>24<0)?0|ar[f>>2]:f,c?0|ar[4+f>>2]:255&l),(0|tr[u>>0])<0&&Vl(0|ar[f>>2]),jf(A,o),ar[n>>2]=3872,ar[t>>2]=3892,ar[o>>2]=3908,0<=(0|tr[11+i>>0]))return si(o),ci(t),void(ur=a);Vl(0|ar[i>>2]),si(o),ci(t),ur=a},function(A,e,r){$f(A|=0,e|=0,r|=0,-1)},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a,c=0,l=0,u=0;if(ur=(a=ur)+160|0,f=a+136|0,t=(n=a)+56|0,o=n+4|0,ar[n>>2]=268,ar[t>>2]=288,Yi(n+56|0,o),ar[n+128>>2]=0,ar[n+132>>2]=-1,ar[n>>2]=3872,ar[t>>2]=3892,Ti(o),ar[o>>2]=3908,ar[(i=n+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[n+52>>2]=16,ar[f>>2]=0,ar[4+f>>2]=0,ar[8+f>>2]=0,Of(o,f),(0|tr[11+f>>0])<0&&Vl(0|ar[f>>2]),Pf(f,e,r),Hf(n,(u=(l=0|tr[(c=11+f|0)>>0])<<24>>24<0)?0|ar[f>>2]:f,u?0|ar[4+f>>2]:255&l),(0|tr[c>>0])<0&&Vl(0|ar[f>>2]),tn(f,e,r),Hf(n,(c=(l=0|tr[(u=11+f|0)>>0])<<24>>24<0)?0|ar[f>>2]:f,c?0|ar[4+f>>2]:255&l),(0|tr[u>>0])<0&&Vl(0|ar[f>>2]),jf(A,o),ar[n>>2]=3872,ar[t>>2]=3892,ar[o>>2]=3908,0<=(0|tr[11+i>>0]))return si(o),ci(t),void(ur=a);Vl(0|ar[i>>2]),si(o),ci(t),ur=a},function(A,e,r){A|=0;var i,f=0,n=0;if(ur=(i=ur)+32|0,f=i+20|0,qf(n=i,e|=0,r|=0),(0|tr[(n=n+8|0)+11>>0])<0&&Vl(0|ar[n>>2]),!(0|Lf(r,4,0)))return $f(A,e,r,n=0),void(ur=i);if(ji(n=0|ar[r>>2],f,4),5&ar[n+(0|ar[(0|ar[n>>2])-12>>2])+16>>2]){for(f=r;ar[(n=f+8|0)>>2]=0,ar[n+4>>2]=0,tr[f+16>>0]=1,0!=(0|(f=0|ar[f+4>>2])););f=0}else f=cr[f+1>>0]<<16|cr[f>>0]<<24|cr[f+2>>0]<<8|cr[f+3>>0];$f(A,e,r,n=f),ur=i},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a=0,c=0,l=0,u=0;if(ur=(o=ur)+160|0,a=o+136|0,n=(f=o)+56|0,t=f+4|0,ar[f>>2]=268,ar[n>>2]=288,Yi(f+56|0,t),ar[f+128>>2]=0,ar[f+132>>2]=-1,ar[f>>2]=3872,ar[n>>2]=3892,Ti(t),ar[t>>2]=3908,ar[(i=f+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[f+52>>2]=16,ar[a>>2]=0,ar[a+4>>2]=0,ar[a+8>>2]=0,Of(t,a),(0|tr[a+11>>0])<0&&Vl(0|ar[a>>2]),Pf(a,e,r),Hf(f,(u=(l=0|tr[(c=a+11|0)>>0])<<24>>24<0)?0|ar[a>>2]:a,u?0|ar[a+4>>2]:255&l),(0|tr[c>>0])<0&&Vl(0|ar[a>>2]),0<(0|ar[r>>2]))for(a=0;Hf(f,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(r=0|Hf(f,17543,10),Hf(0|Hf(r,(l=(u=0|tr[(c=e+56|0)+11>>0])<<24>>24<0)?0|ar[c>>2]:c,l?0|ar[e+60>>2]:255&u),26620,1),jf(A,t),ar[f>>2]=3872,ar[n>>2]=3892,ar[t>>2]=3908,0<=(0|tr[11+i>>0]))return si(t),ci(n),void(ur=o);Vl(0|ar[i>>2]),si(t),ci(n),ur=o},function(A,e,r){A|=0;var i,f,n=0,t=0;if(ur=(f=ur)+32|0,t=f+20|0,qf(n=f,e|=0,r|=0),(0|tr[(n=n+8|0)+11>>0])<0&&Vl(0|ar[n>>2]),nn(t,r),(0|tr[(i=(n=e+56|0)+11|0)>>0])<0?(tr[ar[n>>2]>>0]=0,ar[e+60>>2]=0):(tr[n>>0]=0,tr[i>>0]=0),Ml(n,0),ar[n>>2]=ar[t>>2],ar[n+4>>2]=ar[t+4>>2],ar[n+8>>2]=ar[t+8>>2],!(0|tr[r+17>>0]))return r=0|ar[(e=49920)+4>>2],ar[(t=A)>>2]=ar[e>>2],ar[t+4>>2]=r,Rl(A+8|0,49928),void(ur=f);ar[t>>2]=0,ar[t+4>>2]=0,ar[t+8>>2]=0,Cc(A,2,100,t),ur=(0<=(0|tr[t+11>>0])||Vl(0|ar[t>>2]),f)},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n,t,o,a=0,c=0,l=0,u=0,s=0,b=0,d=0;if(ur=(o=ur)+160|0,b=o+136|0,n=(f=o)+56|0,t=f+4|0,ar[f>>2]=268,ar[n>>2]=288,Yi(f+56|0,t),ar[f+128>>2]=0,ar[f+132>>2]=-1,ar[f>>2]=3872,ar[n>>2]=3892,Ti(t),ar[t>>2]=3908,ar[(i=f+36|0)>>2]=0,ar[4+i>>2]=0,ar[8+i>>2]=0,ar[12+i>>2]=0,ar[f+52>>2]=16,ar[b>>2]=0,ar[b+4>>2]=0,ar[b+8>>2]=0,Of(t,b),(0|tr[b+11>>0])<0&&Vl(0|ar[b>>2]),Pf(b,e,r),Hf(f,(l=(u=0|tr[(s=b+11|0)>>0])<<24>>24<0)?0|ar[b>>2]:b,l?0|ar[b+4>>2]:255&u),(0|tr[s>>0])<0&&Vl(0|ar[b>>2]),0<(0|ar[r>>2]))for(a=0;Hf(f,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(c=0|Hf(f,18043,23),c=0|Hf(0|Ki(c,0|cr[e+56>>0]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(c=0|Hf(c,18067,23),c=0|Hf(0|Ki(c,0|cr[e+57>>0]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(c=0|Hf(c,18091,19),c=0|Hf(0|Pi(c,0!=(0|tr[e+58>>0])),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(s=0|Hf(c,18111,21),Hf(0|Ki(s,0|cr[e+59>>0]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(f,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););for(Hf(f,18133,37),c=e+60|0,a=0;qi(f,(0|ar[c>>2])>>>(31-a|0)&1),7!=((0|a)%8|0)?3==((0|a)%4|0)&&(tr[b>>0]=46,Hf(f,b,1)):(tr[b>>0]=32,Hf(f,b,1)),(0|(a=a+1|0))<32;);if(Hf(f,26620,1),0<(0|ar[r>>2]))for(a=0;Hf(f,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););Hf(f,18171,36),s=(l=0|ar[e+64>>2])+((a=(u=0|ar[e+68>>2])>>>5)<<2)|0,u&=31,c=0!=(0|a);A:do{if(a|u|0){if(!u)for(a=0;;){e:do{if(c)for(c=0;Ki(f,0!=(ar[l>>2]&1<<c|0)&1),7&(a=a+1|0)||(tr[b>>0]=32,Hf(f,b,1)),31!=(0|c);)c=c+1|0;else for(c=0;;){if(Ki(f,0!=(ar[l>>2]&1<<c|0)&1),7&(a=a+1|0)||(tr[b>>0]=32,Hf(f,b,1)),c=(u=c)+1|0,31==(0|u))break e;if(!c)break A}}while(0);if((0|(l=l+4|0))==(0|s))break A;c=1}if(c){a=0;do{for(c=0;Ki(f,0!=(ar[l>>2]&1<<c|0)&1),7&(a=a+1|0)||(tr[b>>0]=32,Hf(f,b,1)),31!=(0|c);)c=c+1|0;l=l+4|0}while((0|l)!=(0|s))}else a=0;for(c=0;Ki(f,0!=(ar[l>>2]&1<<c|0)&1),7&(a=a+1|0)||(tr[b>>0]=32,Hf(f,b,1)),(0|(c=c+1|0))!=(0|u););}}while(0);if(Hf(f,26620,1),0<(0|ar[r>>2]))for(a=0;Hf(f,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(c=0|Hf(f,18208,19),c=0|Hf(0|Ki(c,0|cr[e+76>>0]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(c=0|Hf(c,18228,30),c=0|Hf(0|Li(c,0|or[e+78>>1]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(c=0|Hf(c,18259,18),c=0|Hf(0|Ki(c,0|cr[e+80>>0]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(c=0|Hf(c,18278,15),c=0|Hf(0|Ki(c,0|cr[e+81>>0]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(c=0|Hf(c,18294,16),c=0|Hf(0|Ki(c,0|cr[e+82>>0]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(c=0|Hf(c,18311,18),c=0|Hf(0|Ki(c,0|cr[e+83>>0]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(c=0|Hf(c,18330,16),c=0|Hf(0|Li(c,0|or[e+84>>1]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(c=0|Hf(c,18347,21),c=0|Hf(0|Ki(c,0|cr[e+86>>0]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(c=0|Hf(c,18369,21),c=0|Hf(0|Ki(c,0|cr[e+87>>0]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(c=0|Hf(c,18391,20),c=0|Hf(0|Ki(c,0|cr[e+88>>0]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(a=0|Hf(c,18412,13),Hf(0|Ki(a,0|cr[e+89>>0]),26620,1),(0|(a=0|ar[e+92>>2]))!=(0|(b=0|ar[e+96>>2]))){s=a,a=0|ar[r>>2];do{if(0<(0|a))for(a=0;Hf(f,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(Hf(f,18426,8),e=0|ar[r>>2],ar[r>>2]=e+1,-1<(0|e))for(a=0;Hf(f,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(c=0|Hf(f,18435,20),c=0|Hf(0|Ki(c,0|cr[s>>0]),26620,1),0<(0|ar[r>>2]))for(a=0;Hf(c,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if(c=0|Hf(c,18456,15),Hf(0|Ki(c,0|cr[s+1>>0]),26620,1),c=0|ar[s+4>>2],u=0|ar[s+8>>2],a=0|ar[r>>2],(0|c)!=(0|u))do{if(0<(0|a))for(a=0;Hf(f,16980,2),(0|(a=a+1|0))<(0|ar[r>>2]););if((0|(a=0|ar[c>>2]))!=(0|(l=0|ar[c+4>>2])))for(;e=0|tr[a>>0],ar[f+(0|ar[(0|ar[f>>2])-12>>2])+76>>2]=48,ar[f+(0|ar[(0|ar[f>>2])-12>>2])+12>>2]=2,d=f+(0|ar[(0|ar[f>>2])-12>>2])+4|0,ar[d>>2]=-75&ar[d>>2]|8,Hf(0|Ki(f,255&e),17848,1),(0|(a=a+1|0))!=(0|l););Hf(f,26620,1),a=f+(0|ar[(0|ar[f>>2])-12>>2])+4|0,ar[a>>2]=-75&ar[a>>2]|2,c=c+12|0,a=0|ar[r>>2]}while((0|c)!=(0|u));a=(0|a)<1?0:a+-1|0,ar[r>>2]=a,s=s+16|0}while((0|s)!=(0|b))}if(jf(A,t),ar[f>>2]=3872,ar[n>>2]=3892,ar[t>>2]=3908,0<=(0|tr[11+i>>0]))return si(t),ci(n),void(ur=o);Vl(0|ar[i>>2]),si(t),ci(n),ur=o},function(A,e,r){A|=0,e|=0;var i,f,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0,Z=0,C=0,W=0,I=0,B=0,E=0,G=0;if(ur=(f=ur)+48|0,G=f+32|0,i=f+16|0,E=f,0|Lf(r|=0,1,0))if(ji(B=0|ar[r>>2],G,1),5&ar[B+(0|ar[(0|ar[B>>2])-12>>2])+16>>2]){for(n=r;ar[(B=n+8|0)>>2]=0,ar[B+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=0|tr[G>>0];else n=0;if(tr[e+56>>0]=n,0|Lf(r,1,0))if(ji(B=0|ar[r>>2],G,1),5&ar[B+(0|ar[(0|ar[B>>2])-12>>2])+16>>2]){for(n=r;ar[(B=n+8|0)>>2]=0,ar[B+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=0|tr[G>>0];else n=0;if(B=255&n,tr[e+57>>0]=(255&n)>>>6,tr[e+58>>0]=B>>>5&1,tr[e+59>>0]=31&B,0|Lf(r,4,0)){if(ji(B=0|ar[r>>2],G,4),5&ar[B+(0|ar[(0|ar[B>>2])-12>>2])+16>>2]){for(n=r;ar[(B=n+8|0)>>2]=0,ar[B+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[G+1>>0]<<16|cr[G>>0]<<24|cr[G+2>>0]<<8|cr[G+3>>0];B=r}else n=0,B=r;for(ar[e+60>>2]=n,o=e+64|0,t=0;;){if(a=(0|t)<6,0|Lf(r,1,0))if(ji(I=0|ar[B>>2],G,1),5&ar[I+(0|ar[(0|ar[I>>2])-12>>2])+16>>2]){for(n=r;ar[(I=n+8|0)>>2]=0,ar[I+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=0|tr[G>>0];else n=0;if(!a)break;Z=255&n,W=t<<3,I=0|ar[o>>2],y=1<<(24&W),p=0|ar[(C=I+((t>>>2&134217727)<<2)|0)>>2],ar[C>>2]=128&Z|0?p|y:p&~y,y=1<<(24&W|1),p=0|ar[(C=I+((t>>>2&134217727)<<2)|0)>>2],ar[C>>2]=64&Z|0?p|y:p&~y,y=1<<(24&W|2),p=0|ar[(C=I+((t>>>2&134217727)<<2)|0)>>2],ar[C>>2]=32&Z|0?p|y:p&~y,y=1<<(24&W|3),p=0|ar[(C=I+((t>>>2&134217727)<<2)|0)>>2],ar[C>>2]=16&Z|0?p|y:p&~y,y=1<<(24&W|4),p=0|ar[(C=I+((t>>>2&134217727)<<2)|0)>>2],ar[C>>2]=8&Z|0?p|y:p&~y,y=1<<(24&W|5),p=0|ar[(C=I+((t>>>2&134217727)<<2)|0)>>2],ar[C>>2]=4&Z|0?p|y:p&~y,y=1<<(24&W|6),p=0|ar[(C=I+((t>>>2&134217727)<<2)|0)>>2],ar[C>>2]=2&Z|0?p|y:p&~y,W=1<<(24&W|7),C=0|ar[(I=I+((t>>>2&134217727)<<2)|0)>>2],ar[I>>2]=1&Z|0?C|W:C&~W,t=t+1|0}if(tr[e+76>>0]=n,0|Lf(r,2,0))if(ji(I=0|ar[B>>2],G,2),5&ar[I+(0|ar[(0|ar[I>>2])-12>>2])+16>>2]){for(n=r;ar[(I=n+8|0)>>2]=0,ar[I+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=65535&(cr[G>>0]<<8|cr[G+1>>0]);else n=0;if(or[e+78>>1]=4095&n,0|Lf(r,1,0))if(ji(I=0|ar[B>>2],G,1),5&ar[I+(0|ar[(0|ar[I>>2])-12>>2])+16>>2]){for(n=r;ar[(I=n+8|0)>>2]=0,ar[I+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=0|tr[G>>0];else n=0;if(tr[e+80>>0]=3&n,0|Lf(r,1,0))if(ji(I=0|ar[B>>2],G,1),5&ar[I+(0|ar[(0|ar[I>>2])-12>>2])+16>>2]){for(n=r;ar[(I=n+8|0)>>2]=0,ar[I+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=0|tr[G>>0];else n=0;if(tr[e+81>>0]=3&n,0|Lf(r,1,0))if(ji(I=0|ar[B>>2],G,1),5&ar[I+(0|ar[(0|ar[I>>2])-12>>2])+16>>2]){for(n=r;ar[(I=n+8|0)>>2]=0,ar[I+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=0|tr[G>>0];else n=0;if(tr[e+82>>0]=7&n|8,0|Lf(r,1,0))if(ji(I=0|ar[B>>2],G,1),5&ar[I+(0|ar[(0|ar[I>>2])-12>>2])+16>>2]){for(n=r;ar[(I=n+8|0)>>2]=0,ar[I+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=0|tr[G>>0];else n=0;if(tr[e+83>>0]=7&n|8,0|Lf(r,2,0))if(ji(I=0|ar[B>>2],G,2),5&ar[I+(0|ar[(0|ar[I>>2])-12>>2])+16>>2]){for(n=r;ar[(I=n+8|0)>>2]=0,ar[I+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=65535&(cr[G>>0]<<8|cr[G+1>>0]);else n=0;if(or[e+84>>1]=n,0|Lf(r,1,0))if(ji(I=0|ar[B>>2],G,1),5&ar[I+(0|ar[(0|ar[I>>2])-12>>2])+16>>2]){for(n=r;ar[(I=n+8|0)>>2]=0,ar[I+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=0|tr[G>>0];else n=0;I=255&n,tr[e+86>>0]=(255&n)>>>6,tr[e+87>>0]=I>>>3&7,tr[e+88>>0]=I>>>2&1,tr[e+89>>0]=1+(3&I);A:do{if(0|Lf(r,1,0)){if(ji(I=0|ar[B>>2],G,1),5&ar[I+(0|ar[(0|ar[I>>2])-12>>2])+16>>2]|0){for(n=r;ar[(E=n+8|0)>>2]=0,ar[E+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););break}if(k=255&(I=0|tr[G>>0]),I<<24>>24){h=r+17|0,v=8+i|0,m=1+i|0,p=G+1|0,y=e+96|0,Z=e+100|0,W=g=12+i|0,I=C=w=4+i|0,u=e+92|0,s=E+4|0,d=b=E+8|0,l=0;do{if(0|tr[h>>0])break A;if(0|Lf(r,1,0))if(ji(c=0|ar[B>>2],G,1),5&ar[c+(0|ar[(0|ar[c>>2])-12>>2])+16>>2]){for(n=r;ar[(c=n+8|0)>>2]=0,ar[c+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=0|tr[G>>0];else n=0;ar[w>>2]=0,ar[v>>2]=0,ar[g>>2]=0,c=255&n,tr[i>>0]=c>>>6&1,tr[m>>0]=63&c;do{if(0|Lf(r,2,0)){if(ji(c=0|ar[B>>2],G,2),5&ar[c+(0|ar[(0|ar[c>>2])-12>>2])+16>>2]){for(n=r;ar[(c=n+8|0)>>2]=0,ar[c+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););n=0}else n=cr[G>>0]<<8|cr[p>>0];if(0==(0|(c=65535&n))|0!=(0|tr[h>>0]))break;e=0;do{ar[E>>2]=0,ar[s>>2]=0,ar[b>>2]=0;do{if(0|Lf(r,2,0)){if(ji(a=0|ar[B>>2],G,2),5&ar[a+(0|ar[(0|ar[a>>2])-12>>2])+16>>2]|0){for(n=r;ar[(a=n+8|0)>>2]=0,ar[a+4>>2]=0,tr[n+16>>0]=1,0!=(0|(n=0|ar[n+4>>2])););break}if(!(a=cr[G>>0]<<8|cr[p>>0]))break;if(0|Lf(r,a,0)){t=(o=0|ar[s>>2])-(n=0|ar[E>>2])|0;do{if(t>>>0<a>>>0)dn(E,a-t|0),n=0|ar[E>>2];else{if(t>>>0<=a>>>0)break;if((0|o)==(0|(t=n+a|0)))break;ar[s>>2]=t}}while(0);ji(0|ar[B>>2],n,a)}if((n=0|ar[v>>2])>>>0<(0|ar[W>>2])>>>0){ar[n>>2]=0,ar[(a=n+4|0)>>2]=0,ar[n+8>>2]=0,ar[n>>2]=ar[E>>2],ar[a>>2]=ar[s>>2],ar[n+8>>2]=ar[d>>2],ar[d>>2]=0,ar[s>>2]=0,ar[E>>2]=0,ar[v>>2]=12+(0|ar[v>>2]);break}kn(C,E);break}}while(0);0|(n=0|ar[E>>2])&&((0|ar[s>>2])!=(0|n)&&(ar[s>>2]=n),Vl(n)),e=e+1|0}while(!((0|c)<=(0|e)|0!=(0|tr[h>>0])))}}while(0);n=0|ar[y>>2];do{if(n>>>0<(0|ar[Z>>2])>>>0)or[n>>1]=0|or[i>>1],ar[(e=n+4|0)>>2]=0,ar[(c=n+8|0)>>2]=0,ar[n+12>>2]=0,ar[e>>2]=ar[C>>2],ar[c>>2]=ar[v>>2],ar[n+12>>2]=ar[W>>2],ar[W>>2]=0,ar[v>>2]=0,ar[C>>2]=0,ar[y>>2]=16+(0|ar[y>>2]);else{if(bn(u,i),!(n=0|ar[I>>2]))break;if((0|(t=0|ar[v>>2]))!=(0|n)){for(;o=t+-12|0,ar[v>>2]=o,(0|(t=(a=0|ar[o>>2])?((0|ar[(t=t+-8|0)>>2])!=(0|a)&&(ar[t>>2]=a),Vl(a),0|ar[v>>2]):o))!=(0|n););n=0|ar[I>>2]}Vl(n)}}while(0);l=l+1|0}while((0|l)<(0|k))}}}while(0);if(0==(0|(t=0|ar[(n=a=r+8|0)>>2]))&0==(0|(n=0|ar[n+4>>2]))||((o=0|ar[r+4>>2])&&(Lf(o,t,n),t=0|ar[(n=a)>>2],n=0|ar[n+4>>2]),zi(0|ar[B>>2],t,n,1),ar[(E=a)>>2]=0,ar[E+4>>2]=0),tr[r+16>>0]=1,!(0|tr[r+17>>0]))return r=0|ar[(E=49920)+4>>2],ar[(G=A)>>2]=ar[E>>2],ar[G+4>>2]=r,Rl(A+8|0,49928),void(ur=f);ar[G>>2]=0,ar[G+4>>2]=0,ar[G+8>>2]=0,Cc(A,2,100,G),ur=(0<=(0|tr[G+11>>0])||Vl(0|ar[G>>2]),f)},function(A,e,r){e|=0,r|=0;var i,f,n,t,o=0;for(ur=(n=ur)+16|0,i=n+12|0,f=n,ar[(A|=0)>>2]=ar[1495],ar[A+4>>2]=ar[1496],ar[A+8>>2]=ar[1497],t=0|ar[e>>2],Xo(t=548+(t|=0)|0),Xo(t),tr[t>>0]=1;;){if((ar[i>>2]=0)|Ke(0|ar[e>>2],i)){A=6;break}if(0|(o=0|$e(0|ar[e>>2]))&&(Le(f,0,o,r),ar[A>>2]=ar[f>>2],ar[A+4>>2]=ar[f+4>>2],ar[A+8>>2]=ar[f+8>>2],Ar(0|ar[e>>2])),!(0|ar[i>>2])){A=6;break}}6!=(0|A)||(ur=n)},function(A,e,r){A|=0,0|(A=0|ar[(e|=0)+4>>2])&&$o(A),0|(A=0|ar[e+8>>2])&&$o(A),(A=0|ar[e+12>>2])&&$o(A)},function(A,e,r){var i,f,n,t;A|=0,e|=0,ur=(i=ur)+32|0,f=i,t=(n=0|tr[(r|=0)+11>>0])<<24>>24<0,Oe(f,0|ar[e>>2],t?0|ar[r>>2]:r,t?0|ar[r+4>>2]:255&n),Wc(A,f,0|ar[e>>2]),ur=(0<=(0|tr[(A=f+8|0)+11>>0])||Vl(0|ar[A>>2]),i)},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n=0,t=0,o=0;if(ur=(f=ur)+32|0,n=(i=f)+20|0,t=f+8|0,o=0|sA(),!e)return ar[A>>2]=o,cA((o=0)|o),void(ur=f);!function(A,e,r,i){A|=0,e|=0,r|=0;var f,n,t=0,o=0,a=0,c=0,l=0;if(ur=(n=ur)+64|0,f=n+44|0,t=n+32|0,o=n+12|0,a=n,!(i|=0))return ar[t>>2]=0,ar[t+4>>2]=0,ar[t+8>>2]=0,Cc(f,5,2001,t),(0|tr[t+11>>0])<0&&Vl(0|ar[t>>2]),Wc(A,f,0|ar[e>>2]),(0|tr[(t=8+f|0)+11>>0])<0&&Vl(0|ar[t>>2]),ur=n;if(Re(f,40+(0|ar[e>>2])|0),t=(0<=(0|r)&&(c=l=0|ar[f>>2],(0|ar[4+f>>2])-l>>3>>>0>r>>>0)?(a=0|El(16),ar[a>>2]=0,ar[a+4>>2]=0,ar[a+8>>2]=0,ar[a+12>>2]=0,ar[i>>2]=a,l=0|ar[c+(r<<3)>>2],(o=t=0|ar[c+(r<<3)+4>>2])?(Cl(t),t=0|ar[(c=a+4|0)>>2],ar[a>>2]=l,ar[c>>2]=o,0|t&&Il(t)):(ar[a>>2]=l,ar[a+4>>2]=o),t=0|ar[i>>2],o=0|ar[e>>2],0|(a=0|ar[e+4>>2])&&Cl(a),ar[t+8>>2]=o,t=0|ar[(i=t+12|0)>>2],ar[i>>2]=a,0|t&&Il(t),Wc(A,49920,0|ar[e>>2])):(ar[a>>2]=0,ar[a+4>>2]=0,ar[a+8>>2]=0,Cc(o,5,2e3,a),(0|tr[a+11>>0])<0&&Vl(0|ar[a>>2]),Wc(A,o,0|ar[e>>2]),(0|tr[(t=o+8|0)+11>>0])<0&&Vl(0|ar[t>>2])),f),0|(t=0|ar[t>>2])){if((0|(o=0|ar[(r=4+f|0)>>2]))!=(0|t)){for(;a=o+-8|0,ar[r>>2]=a,(0|(o=(o=0|ar[o+-4>>2])?(Il(o),0|ar[r>>2]):a))!=(0|t););t=0|ar[f>>2]}Vl(t)}ur=n}(t,e,r,n),t=0|ar[t>>2]?(n=0|El(12),ar[n>>2]=ar[t>>2],ar[n+4>>2]=ar[t+4>>2],ar[n+8>>2]=ar[t+8>>2],ar[i>>2]=n,0|dA(1520,0|i)):(ar[i>>2]=ar[n>>2],0|dA(1448,0|i)),ar[A>>2]=t,cA(0|o),ur=f},function(A,e,r){r|=0,ar[(e|=0)+(0|ar[(A|=0)>>2])>>2]=r},function(A,e,r){r|=0,ar[(e|=0)+(0|ar[(A|=0)>>2])>>2]=r},nc,function(A,e,r){A|=0,r|=0;var i,f=0,n=0;if(ur=(i=ur)+16|0,f=i,0|(e|=0))return Xc(A,e,(n=(f=0|tr[r+11>>0])<<24>>24<0)?0|ar[r>>2]:r,n?0|ar[r+4>>2]:255&f),void(ur=i);ar[f>>2]=0,ar[f+4>>2]=0,ar[f+8>>2]=0,Cc(A,5,2001,f),ur=(0<=(0|tr[f+11>>0])||Vl(0|ar[f>>2]),i)},function(A,e,r){r|=0,ar[(e|=0)+(0|ar[(A|=0)>>2])>>2]=r},function(A,e,r){r|=0,ar[(e|=0)+(0|ar[(A|=0)>>2])>>2]=r},function(A,e,r){e|=0,r|=0;var i,f,n,t=0,o=0;ur=(n=ur)+16|0,f=n,t=0|ar[(A|=0)>>2],i=e+((A=0|ar[A+4>>2])>>1)|0,1&A&&(t=0|ar[(0|ar[i>>2])+t>>2]),e=r+4|0,r=0|ar[r>>2],ar[f>>2]=0,ar[f+4>>2]=0,4294967279<r>>>(ar[f+8>>2]=0)&&Nl(),r>>>0<11?(tr[f+11>>0]=r)?(A=f,o=9):A=f:(A=0|El(o=r+16&-16),ar[f>>2]=A,ar[f+8>>2]=-2147483648|o,ar[f+4>>2]=r,o=9),9==(0|o)&&Eu(0|A,0|e,0|r),tr[A+r>>0]=0,ks[63&t](i,f),ur=(0<=(0|tr[f+11>>0])||Vl(0|ar[f>>2]),n)},function(A,e,r){e|=0,r|=0;var i,f,n,t=0;if((f=((t=0|ar[(n=(A|=0)+4|0)>>2])-(i=0|ar[A>>2])|0)/12|0)>>>0<e>>>0)!function(A,e,r){e|=0,r|=0;var i,f=0,n=0,t=0,o=0,a=0,c=0,l=0;if(t=0|ar[(i=8+(A|=0)|0)>>2],f=0|ar[(l=A+4|0)>>2],e>>>0<=((t-f|0)/12|0)>>>0){for(;Rl(f,r),f=12+(0|ar[l>>2])|0,ar[l>>2]=f,0!=(0|(e=e+-1|0)););return}n=0|ar[A>>2],357913941<(f=(o=(f-n|0)/12|0)+e|0)>>>0&&il();c=(a=(t-n|0)/12|0)<<1,f=a>>>0<178956970?c>>>0<f>>>0?f:c:357913941;do{if(f){if(!(357913941<f>>>0)){t=0|El(12*f|0);break}Fl(l=0|C(8),37845),ar[l>>2]=16004,I(0|l,3616,283)}else t=0}while(0);c=t+(12*f|0)|0,a=n=o=t+(12*o|0)|0,f=o;for(;Rl(f,r),a=f=a+12|0,e=e+-1|0,0!=(0|e););if(t=0|ar[A>>2],(0|(f=0|ar[l>>2]))==(0|t))e=n,f=n=t;else{for(e=o;f=f+-12|0,ar[(r=e+-12|0)>>2]=ar[f>>2],ar[r+4>>2]=ar[f+4>>2],ar[r+8>>2]=ar[f+8>>2],ar[f>>2]=0,ar[f+4>>2]=0,ar[f+8>>2]=0,n=e=n+-12|0,(0|f)!=(0|t););e=n,n=0|ar[A>>2],f=0|ar[l>>2]}if(ar[A>>2]=e,ar[l>>2]=a,ar[i>>2]=c,(0|f)!=(0|(e=n)))for(;(0|tr[(f=f+-12|0)+11>>0])<0&&Vl(0|ar[f>>2]),(0|f)!=(0|e););if(!n)return;Vl(n)}(A,e-f|0,r);else if(!(f>>>0<=e>>>0)&&(0|t)!=(0|(A=i+(12*e|0)|0)))for(;t=t+-12|0,ar[n>>2]=t,(0|tr[t+11>>0])<0&&(Vl(0|ar[t>>2]),t=0|ar[n>>2]),(0|t)!=(0|A););},function(A,e,r){A|=0,r|=0;var i,f,n,t,o=0;if(ur=(n=ur)+16|0,f=n,i=o=0|ar[(e|=0)>>2],(((0|ar[e+4>>2])-o|0)/12|0)>>>0<=r>>>0)return o=1,ar[A>>2]=o,void(ur=n);o=0|qo((r=(t=(o=0|tr[(e=i+(12*r|0)|0)+11>>0])<<24>>24<0)?0|ar[i+(12*r|0)+4>>2]:255&o)+4|0),ar[o>>2]=r,Eu(o+4|0,0|(t?0|ar[e>>2]:e),0|r),ar[f>>2]=o,o=0|dA(1680,0|f),ar[A>>2]=o,ur=n},function(A,e,r){e|=0,r|=0;var i,f,n,t=0;ur=(f=ur)+16|0,i=f,t=0|ar[(A|=0)>>2],A=e+((n=0|ar[A+4>>2])>>1)|0,1&n&&(t=0|ar[(0|ar[A>>2])+t>>2]),ar[i>>2]=r,ks[63&t](A,i),ur=f},function(A,e,r){var i,f,n,t;e|=0,r|=0,(f=(n=0|ar[(t=(A|=0)+4|0)>>2])-(i=0|ar[A>>2])>>2)>>>0<e>>>0?function(A,e,r){e|=0,r|=0;var i,f,n,t,o=0,a=0,c=0,l=0,u=0;if(a=0|ar[(t=8+(A|=0)|0)>>2],o=0|ar[(u=A+4|0)>>2],a-(c=o)>>2>>>0>=e>>>0){for(o=e,a=c;ar[a>>2]=ar[r>>2],o=o+-1|0;)a=a+4|0;return ar[u>>2]=c+(e<<2)}n=0|ar[A>>2],1073741823<(o=(i=(f=o-n|0)>>2)+e|0)>>>0&&il();l=(c=a-n|0)>>1,o=c>>2>>>0<536870911?l>>>0<o>>>0?o:l:1073741823;do{if(o){if(!(1073741823<o>>>0)){a=0|El(o<<2);break}Fl(u=0|C(8),37845),ar[u>>2]=16004,I(0|u,3616,283)}else a=0}while(0);c=a+(o<<2)|0,o=e,a=l=a+(i<<2)|0;for(;ar[a>>2]=ar[r>>2],o=o+-1|0;)a=a+4|0;o=l+(0-i<<2)|0,0<(0|f)&&Eu(0|o,0|n,0|f);if(ar[A>>2]=o,ar[u>>2]=l+(e<<2),ar[t>>2]=c,!n)return;Vl(n)}(A,e-f|0,r):f>>>0<=e>>>0||(0|n)!=(0|(A=i+(e<<2)|0))&&(ar[t>>2]=n+(~((n-4-A|0)>>>2)<<2))},function(A,e,r){A|=0,r|=0;var i,f,n=0;if(ur=(f=ur)+16|0,i=f,n=0|ar[(e|=0)>>2],(0|ar[e+4>>2])-n>>2>>>0<=r>>>0)return n=1,ar[A>>2]=n,void(ur=f);ar[i>>2]=ar[n+(r<<2)>>2],n=0|dA(3752,0|i),ar[A>>2]=n,ur=f},function(A,e,r){br(37782,28463,51,28479)},function(A,e,r){A|=0,e|=0;var i=0,f=0,n=0,t=0;if(0<(0|(r|=0))){f=0;do{for(n=0|sr(f,r),i=0;ar[A+((t=i+n|0)<<2)>>2]=or[e+(t<<1)>>1],(0|(i=i+1|0))!=(0|r););f=f+1|0}while((0|f)!=(0|r))}},function(A,e,r){A|=0,e|=0;var i=0,f=0,n=0,t=0,o=0;if(0<(0|(r|=0))){f=0;do{for(t=0|sr(f,r),n=i=0;i=(0|or[e+((o=n+t|0)<<1)>>1])+i|0,ar[A+(o<<2)>>2]=i,(0|(n=n+1|0))!=(0|r););f=f+1|0}while((0|f)!=(0|r))}},function(A,e,r){A|=0,e|=0;var i=0,f=0,n=0,t=0;if(0<(0|(r|=0))){f=0;do{for(n=i=0;t=(0|sr(n,r))+f|0,i=(0|or[e+(t<<1)>>1])+i|0,ar[A+(t<<2)>>2]=i,(0|(n=n+1|0))!=(0|r););f=f+1|0}while((0|f)!=(0|r))}},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n=0,t=0,o=0,a=0,c=0,l=0,u=0;for(ur=(f=ur)+32|0,i=f,n=0;t=0|or[e+(n<<1)>>1],l=(74*(o=0|or[e+(n+4<<1)>>1])|0)+(29*t|0)+(84*(a=0|or[e+(n+8<<1)>>1])|0)+(55*(c=0|or[e+(n+12<<1)>>1])|0)+64>>7,or[i+(n<<1)>>1]=(0|l)<-32768?-32768:65535&((0|l)<32767?l:32767),l=(0|sr(c,-84))+((0|sr(a,-29))+((74*o|0)+(55*t|0)))+64>>7,or[i+8+(n<<1)>>1]=(0|l)<-32768?-32768:65535&((0|l)<32767?l:32767),l=(74*c|0)+((0|sr(a,-74))+(74*t|0))+64>>7,or[i+16+(n<<1)>>1]=(0|l)<-32768?-32768:65535&((0|l)<32767?l:32767),t=(0|sr(c,-29))+((55*a|0)+((0|sr(o,-74))+(84*t|0)))+64>>7,or[i+24+(n<<1)>>1]=(0|t)<-32768?-32768:65535&((0|t)<32767?t:32767),4!=(0|(n=n+1|0)););for(n=0;l=0|sr(n,r),c=0|or[i+(n<<3)>>1],u=(74*(a=0|or[i+(n<<3)+2>>1])|0)+(29*c|0)+(84*(o=0|or[i+(n<<3)+4>>1])|0)+(55*(t=0|or[i+(n<<3)+6>>1])|0)+2048>>12,u=(0|cr[(e=A+l|0)>>0])+((0|u)<-32768?-32768:(0|u)<32767?u:32767)|0,tr[e>>0]=(0|u)<0?0:255&((0|u)<255?u:255),e=(0|sr(t,-84))+((0|sr(o,-29))+((74*a|0)+(55*c|0)))+2048>>12,e=(0|cr[(u=A+(l+1)|0)>>0])+((0|e)<-32768?-32768:(0|e)<32767?e:32767)|0,tr[u>>0]=(0|e)<0?0:255&((0|e)<255?e:255),u=(74*t|0)+((0|sr(o,-74))+(74*c|0))+2048>>12,u=(0|cr[(e=A+(l+2)|0)>>0])+((0|u)<-32768?-32768:(0|u)<32767?u:32767)|0,tr[e>>0]=(0|u)<0?0:255&((0|u)<255?u:255),c=(0|sr(t,-29))+((55*o|0)+((0|sr(a,-74))+(84*c|0)))+2048>>12,c=(0|cr[(l=A+(l+3)|0)>>0])+((0|c)<-32768?-32768:(0|c)<32767?c:32767)|0,tr[l>>0]=(0|c)<0?0:255&((0|c)<255?c:255),4!=(0|(n=n+1|0)););ur=f},function(A,e,r){xt(A|=0,r|=0,4,e|=0,8)},function(A,e,r){xt(A|=0,r|=0,8,e|=0,8)},function(A,e,r){xt(A|=0,r|=0,16,e|=0,8)},function(A,e,r){xt(A|=0,r|=0,32,e|=0,8)},function(A,e,r){A|=0,e|=0;var i,f,n,t,o=0,a=0,c=0,l=0,u=0,s=0,b=0;for(ur=(t=ur)+32|0,n=t,i=(r|=0)<<1,f=3*r|0,o=0;a=0|or[e+(o<<1)>>1],b=(55*(c=0|or[e+(o+r<<1)>>1])|0)+(29*a|0)+(74*(l=0|or[e+(i+o<<1)>>1])|0)+(84*(u=0|or[e+(f+o<<1)>>1])|0)+1>>1,or[n+(o<<1)>>1]=(0|b)<-32768?-32768:65535&((0|b)<32767?b:32767),s=(b=(0|sr(u,-74))+(74*(c+a|0)|0)|0)>>1,or[n+(o+4<<1)>>1]=(0|b)<-65536?-32768:65535&((0|s)<32767?s:32767),s=(55*u|0)+((0|sr(l,-74))+((0|sr(c,-29))+(84*a|0)))+1>>1,or[n+(o+8<<1)>>1]=(0|s)<-32768?-32768:65535&((0|s)<32767?s:32767),a=(0|sr(u,-29))+((74*l|0)+((0|sr(c,-84))+(55*a|0)))+1>>1,or[n+(o+12<<1)>>1]=(0|a)<-32768?-32768:65535&((0|a)<32767?a:32767),4!=(0|(o=o+1|0)););for(o=0;s=0|or[n+((b=o<<2)<<1)>>1],u=0|or[n+((1|b)<<1)>>1],l=0|or[n+((2|b)<<1)>>1],c=0|or[n+((3|b)<<1)>>1],or[A+(b<<1)>>1]=((55*u|0)+(29*s|0)+(74*l|0)+(84*c|0)+128|0)>>>8,a=((0|sr(c,-74))+(74*(u+s|0)|0)+128|0)>>>8&65535,or[A+((1|b)<<1)>>1]=a,a=((55*c|0)+((0|sr(l,-74))+((0|sr(u,-29))+(84*s|0)))+128|0)>>>8&65535,or[A+((2|b)<<1)>>1]=a,s=((0|sr(c,-29))+((74*l|0)+((0|sr(u,-84))+(55*s|0)))+128|0)>>>8&65535,or[A+((3|b)<<1)>>1]=s,4!=(0|(o=o+1|0)););ur=t},function(A,e,r){zt(A|=0,4,e|=0,r|=0)},function(A,e,r){zt(A|=0,8,e|=0,r|=0)},function(A,e,r){zt(A|=0,16,e|=0,r|=0)},function(A,e,r){zt(A|=0,32,e|=0,r|=0)},function(A,e,r){A|=0,r|=0;var i,f=0,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0;ur=(i=ur)+32|0,w=i,n=0|or[(e|=0)>>1],o=0|or[e+4>>1],c=0|or[e+2>>1],g=o+n<<16>>16,a=(f=0|or[e+6>>1])+c<<16>>16,or[w>>1]=a+g,or[(b=w+2|0)>>1]=g-a,o=n-o<<16>>16,f=c-f<<16>>16,or[(c=w+4|0)>>1]=f+o,or[(n=w+6|0)>>1]=o-f,f=0|or[e+(r<<1)>>1],o=0|or[e+(r+2<<1)>>1],a=0|or[e+(r+1<<1)>>1],t=o+f<<16>>16,m=(g=0|or[e+(r+3<<1)>>1])+a<<16>>16,or[(h=w+8|0)>>1]=m+t,or[(s=w+10|0)>>1]=t-m,o=f-o<<16>>16,g=a-g<<16>>16,or[(a=w+12|0)>>1]=g+o,or[(f=w+14|0)>>1]=o-g,o=0|or[e+((g=r<<1)<<1)>>1],m=0|or[e+(g+2<<1)>>1],t=0|or[e+((1|g)<<1)>>1],d=(l=(g=0|or[e+(g+3<<1)>>1])+t<<16>>16)+(v=m+o<<16>>16)|0,or[w+16>>1]=d,l=v-l|0,or[w+18>>1]=l,m=o-m<<16>>16,g=t-g<<16>>16,or[(t=w+20|0)>>1]=g+m,or[(o=w+22|0)>>1]=m-g,m=0|or[e+((g=3*r|0)<<1)>>1],v=0|or[e+(g+2<<1)>>1],r=0|or[e+(g+1<<1)>>1],k=(u=(g=0|or[e+(g+3<<1)>>1])+r<<16>>16)+(e=v+m<<16>>16)|0,or[w+24>>1]=k,u=e-u|0,or[w+26>>1]=u,e=(g=r-g<<16>>16)+(v=m-v<<16>>16)|0,or[w+28>>1]=e,or[(r=w+30|0)>>1]=v-g,g=(d=d<<16>>16)+(w=0|or[w>>1])<<16>>16,v=(k=k<<16>>16)+(h=0|or[h>>1])<<16>>16,or[A>>1]=v+g,or[A+8>>1]=g-v,d=w-d<<16>>16,k=h-k<<16>>16,or[A+16>>1]=k+d,or[A+24>>1]=d-k,k=(l=l<<16>>16)+(b=0|or[b>>1])<<16>>16,d=(u=u<<16>>16)+(s=0|or[s>>1])<<16>>16,or[A+2>>1]=d+k,or[A+10>>1]=k-d,l=b-l<<16>>16,u=s-u<<16>>16,or[A+18>>1]=u+l,or[A+26>>1]=l-u,c=0|or[c>>1],u=(t=0|or[t>>1])+c<<16>>16,l=(e=e<<16>>16)+(a=0|or[a>>1])<<16>>16,or[A+4>>1]=l+u,or[A+12>>1]=u-l,t=c-t<<16>>16,e=a-e<<16>>16,or[A+20>>1]=e+t,or[A+28>>1]=t-e,n=0|or[n>>1],e=0|or[o>>1],f=0|or[f>>1],o=e+n<<16>>16,t=(r=0|or[r>>1])+f<<16>>16,or[A+6>>1]=t+o,or[A+14>>1]=o-t,e=n-e<<16>>16,r=f-r<<16>>16,or[A+22>>1]=r+e,or[A+30>>1]=e-r,ur=i},function(A,e,r){A|=0,e|=0,r|=0;var i,f,n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0,w=0,v=0,g=0,m=0,p=0,y=0;for(ur=(f=ur)+128|0,i=f,n=0;o=0|sr(n,r),w=0|or[e+(o<<1)>>1],l=0|or[e+(o+4<<1)>>1],k=0|or[e+(o+1<<1)>>1],c=0|or[e+(o+5<<1)>>1],t=0|or[e+(o+2<<1)>>1],a=0|or[e+(o+6<<1)>>1],h=0|or[e+(o+3<<1)>>1],d=l+w<<16>>16,u=a+t<<16>>16,b=c+k<<16>>16,s=(o=0|or[e+(o+7<<1)>>1])+h<<16>>16,l=w-l<<16>>16,a=t-a<<16>>16,c=k-c<<16>>16,o=h-o<<16>>16,h=u+d<<16>>16,k=s+b<<16>>16,or[i+((t=n<<3)<<1)>>1]=k+h,or[i+((1|t)<<1)>>1]=h-k,u=d-u<<16>>16,s=b-s<<16>>16,or[i+((2|t)<<1)>>1]=s+u,or[i+((3|t)<<1)>>1]=u-s,s=a+l<<16>>16,u=o+c<<16>>16,or[i+((4|t)<<1)>>1]=u+s,or[i+((5|t)<<1)>>1]=s-u,a=l-a<<16>>16,o=c-o<<16>>16,or[i+((6|t)<<1)>>1]=o+a,or[i+((7|t)<<1)>>1]=a-o,8!=(0|(n=n+1|0)););for(n=0;y=0|or[i+(n<<1)>>1],s=0|or[i+((a=n+32|0)<<1)>>1],g=0|or[i+((v=n+8|0)<<1)>>1],b=0|or[i+((u=n+40|0)<<1)>>1],p=0|or[i+((t=n+16|0)<<1)>>1],k=0|or[i+((d=n+48|0)<<1)>>1],m=0|or[i+((c=n+24|0)<<1)>>1],e=s+y<<16>>16,o=k+p<<16>>16,r=b+g<<16>>16,l=(h=0|or[i+((w=n+56|0)<<1)>>1])+m<<16>>16,s=y-s<<16>>16,k=p-k<<16>>16,b=g-b<<16>>16,h=m-h<<16>>16,m=o+e<<16>>16,g=l+r<<16>>16,or[A+(n<<1)>>1]=g+m,or[A+(v<<1)>>1]=m-g,o=e-o<<16>>16,l=r-l<<16>>16,or[A+(t<<1)>>1]=l+o,or[A+(c<<1)>>1]=o-l,c=k+s<<16>>16,l=h+b<<16>>16,or[A+(a<<1)>>1]=l+c,or[A+(u<<1)>>1]=c-l,k=s-k<<16>>16,h=b-h<<16>>16,or[A+(d<<1)>>1]=h+k,or[A+(w<<1)>>1]=k-h,8!=(0|(n=n+1|0)););ur=f},function(A,e,r){Pt(A|=0,16,e|=0,r|=0)},function(A,e,r){Pt(A|=0,32,e|=0,r|=0)},zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu,zu],ws=[Pu,function(A,e,r,i){A|=0,i|=0,r=(r|=0)+8|0,gs[15&ar[16+(0|ar[(e|=0)>>2])>>2]](A,e,0|ar[r>>2],0|ar[r+4>>2],0,i)},function(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f=0,n=0,t=0;A:do{if(0|i){for(f=0;;){if(i>>>0<(t=f+4|0)>>>0){f=4;break}if(i>>>0<(f=(n=(0|cr[r+(f+1)>>0])<<16|(0|cr[r+f>>0])<<24|(0|cr[r+(f+2)>>0])<<8|0|cr[r+(f+3)>>0])+t|0)>>>0){f=7;break}if(qe(0|ar[e>>2],r+t|0,n,0,0,0),i>>>0<=f>>>0)break A}if(4==(0|f))return ar[A>>2]=ar[1498],ar[A+4>>2]=ar[1499],void(ar[A+8>>2]=ar[1500]);if(7==(0|f))return ar[A>>2]=ar[1498],ar[A+4>>2]=ar[1499],void(ar[A+8>>2]=ar[1500])}}while(0);ar[A>>2]=ar[1495],ar[A+4>>2]=ar[1496],ar[A+8>>2]=ar[1497]},function(A,e,r,i){i|=0,ar[(i=A|=0)>>2]=0,ar[i+4>>2]=0,ar[(i=A+8|0)>>2]=-1,ar[i+4>>2]=-1},function(A,e,r,i){i|=0,ar[(i=A|=0)>>2]=0,ar[i+4>>2]=0,ar[(i=A+8|0)>>2]=-1,ar[i+4>>2]=-1},function(A,e,r,i){e|=0,r|=0,i|=0;var f,n,t,o=0;for(f=ur=(t=ur)+31&-32,ur=ur+16|0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,4294967279<(n=i-r|(ar[A+8>>2]=0))>>>0&&Nl(),n>>>0<11?(tr[A+11>>0]=n,o=A):(o=0|El(e=16+n&-16),ar[A>>2]=o,ar[A+8>>2]=-2147483648|e,ar[A+4>>2]=n),e=r,A=o;(0|e)!=(0|i);)Ni(A,e),e=e+1|0,A=A+1|0;Ni(o+n|(tr[f>>0]=0),f),ur=t},function(A,e,r,i){e|=0,r|=0,i|=0;var f,n,t,o=0,a=0;f=ur=(t=ur)+31&-32,ur=ur+16|0,ar[(A|=0)>>2]=0,ar[A+4>>2]=0,1073741807<(n=i-r>>2)>>>(ar[A+8>>2]=0)&&Nl();do{if(2<=n>>>0){if(!(1073741823<(e=4+n&-4)>>>0)){a=0|El(e<<2),ar[A>>2]=a,ar[A+8>>2]=-2147483648|e,ar[A+4>>2]=n,o=r;break}kA()}else tr[A+8+3>>0]=n,o=r,a=A}while(0);for(;(0|o)!=(0|i);)sf(a,o),o=o+4|0,a=a+4|0;ar[f>>2]=0,sf(a,f),ur=t},function(A,e,r,i){r|=0,i|=0,0|tu(A|=0,0|ar[(e|=0)+8>>2])&&ou(0,e,r,i)},function(A,e,r,i){r|=0,i|=0,0|tu(A|=0,0|ar[(e|=0)+8>>2])?ou(0,e,r,i):(A=0|ar[A+8>>2],ws[31&ar[28+(0|ar[A>>2])>>2]](A,e,r,i))},function(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f=0,n=0;A:do{if(0|tu(A,0|ar[e+8>>2]))ou(0,e,r,i);else if(f=A+16+((n=0|ar[A+12>>2])<<3)|0,su(A+16|0,e,r,i),1<(0|n)){n=e+54|0,A=A+24|0;do{if(su(A,e,r,i),0|tr[n>>0])break A;A=A+8|0}while(A>>>0<f>>>0)}}while(0)},function(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f,n,t,o,a,c,l,u,s=0,b=0,d=0,k=0,h=0,w=0,v=0;if(ur=(u=ur)+64|0,l=(o=u)+56|0,c=u+52|0,b=u+40|0,a=u+36|0,v=u+24|0,f=u+20|0,n=u+16|0,t=u+12|0,s=0|sA(),ar[l>>2]=s,!e)return ar[A>>2]=s,ar[l>>2]=0,cA((v=0)|v),void(ur=u);if(!function(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c;ur=(c=ur)+32|0,ar[(t=(o=c)+24|0)>>2]=0,ar[(a=4+t|0)>>2]=0,He(o,0|ar[e>>2],t,i,f,n),0|ar[o>>2]?Wc(A,o,0|ar[e>>2]):(n=0|El(8),ar[r>>2]=n,i=0|ar[t>>2],f=0|ar[a>>2],ar[t>>2]=0,ar[a>>2]=0,ar[n>>2]=i,ar[n+4>>2]=f,Wc(A,49920,0|ar[e>>2]));(0|tr[11+(A=o+8|0)>>0])<0&&Vl(0|ar[A>>2]);(A=0|ar[a>>2])&&Il(A),ur=c}(b,e,c,r,i,0),0|ar[b>>2])v=0|El(12),ar[v>>2]=ar[b>>2],ar[v+4>>2]=ar[b+4>>2],ar[v+8>>2]=ar[b+8>>2],ar[o>>2]=v,v=0|dA(1520,0|o),ar[A>>2]=v;else{if(ar[o>>2]=cr[32+(0|ar[e>>2])>>0],Ne(l,26285,o),Re(o,40+(0|ar[e>>2])|0),b=(s=0|ar[(i=o+4|0)>>2])-(e=0|ar[o>>2])>>3,0|(r=e)){if((0|s)!=(0|r)){for(;e=s+-8|0,ar[i>>2]=e,(s=0|ar[s+-4>>2])&&(Il(s),e=0|ar[i>>2]),(0|e)!=(0|r);)s=e;e=0|ar[o>>2]}Vl(e)}switch(ar[a>>2]=b,Ne(l,26296,a),s=0|ar[c>>2],e=0|function(A,e){e|=0;var r,i=0,f=0;{if(!(i=0|ar[(r=44+(A|=0)|0)>>2]))return 0|(e=-1);A=r,f=i}A:for(;;){for(i=f;!((0|ar[i+16>>2])>=(0|e));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){A=i;break}A=i}if((0|A)==(0|r))return 0|(e=-1);if((0|ar[A+16>>2])>(0|e))return 0|(e=-1);return 0|(e=0|ar[A+20>>2])}(0|ar[s>>2],0),ar[o>>2]=e,function(A,e,r){e|=0,r|=0;var i,f;ur=(i=ur)+16|0,f=i,A=0|ar[(A=A|0)>>2],e=0|uA(0|e),ar[f>>2]=ar[r>>2],r=0|dA(3744,0|f),bA(0|A,0|e,0|r),cA(0|r),cA(0|e),ur=i}(l,26307,o),e=0|function(A,e){e|=0;var r,i=0,f=0;{if(!(i=0|ar[(r=44+(A|=0)|0)>>2]))return 0|(e=-1);A=r,f=i}A:for(;;){for(i=f;!((0|ar[i+16>>2])>=(0|e));)if(!(i=0|ar[i+4>>2]))break A;if(!(f=0|ar[i>>2])){A=i;break}A=i}if((0|A)==(0|r))return 0|(e=-1);if((0|ar[A+16>>2])>(0|e))return 0|(e=-1);return 0|(e=0|ar[A+24>>2])}(0|ar[s>>2],0),ar[a>>2]=e,function(A,e,r){e|=0,r|=0;var i,f;ur=(i=ur)+16|0,f=i,A=0|ar[(A=A|0)>>2],e=0|uA(0|e),ar[f>>2]=ar[r>>2],r=0|dA(3744,0|f),bA(0|A,0|e,0|r),cA(0|r),cA(0|e),ur=i}(l,26313,a),ar[v>>2]=0,ar[v+4>>2]=0,ar[v+8>>2]=0,ar[f>>2]=ar[36+(0|ar[s>>2])>>2],function(A,e,r){e|=0,r|=0;var i,f;ur=(i=ur)+16|0,f=i,A=0|ar[(A=A|0)>>2],e=0|uA(0|e),ar[f>>2]=ar[r>>2],r=0|dA(1376,0|f),bA(0|A,0|e,0|r),cA(0|r),cA(0|e),ur=i}(l,26320,f),ar[f>>2]=ar[32+(0|ar[s>>2])>>2],function(A,e,r){e|=0,r|=0;var i,f;ur=(i=ur)+16|0,f=i,A=0|ar[(A=A|0)>>2],e=0|uA(0|e),ar[f>>2]=ar[r>>2],r=0|dA(1384,0|f),bA(0|A,0|e,0|r),cA(0|r),cA(0|e),ur=i}(l,26327,f),e=0|ar[s>>2],0|ar[e+32>>2]){case 0:if(r=e?0|Qc(e,0,f):ar[f>>2]=0,h=(e=0|ar[s>>2])?0|Qc(e,1,n):ar[n>>2]=0,e=(e=0|ar[s>>2])?0|Qc(e,2,t):ar[t>>2]=0,Ul(v,((0|(w=0|sr(0|ar[a>>2],0|ar[o>>2])))/2|0)+w|0,0),w=(0|tr[v+11>>0])<0?0|ar[v>>2]:v,d=0|ar[o>>2],k=0|ar[a>>2],(0|d)!=(0|(b=0|ar[f>>2]))){if(0<(0|k))for(i=w,s=r,r=0;Eu(0|i,0|s,0|b),(0|(r=r+1|0))!=(0|k);)i=i+d|0,s=s+b|0}else Eu(0|w,0|r,0|sr(k,d));if(d=0|ar[o>>2],s=0|ar[a>>2],i=w+(0|sr(s,d))|0,k=(0|s)/2|0,(0|(d=(0|d)/2|0))!=(0|(b=0|ar[n>>2]))){if(1<(0|s))for(s=h,r=0;Eu(0|i,0|s,0|b),(0|(r=r+1|0))!=(0|k);)i=i+d|0,s=s+b|0}else Eu(0|i,0|h,0|sr(k,d));if(b=0|ar[o>>2],s=0|ar[a>>2],r=w+(r=0|sr(s,b))+((0|r)/4|0)|0,d=(0|s)/2|0,(0|(b=(0|b)/2|0))!=(0|(i=0|ar[t>>2]))){if(1<(0|s))for(s=0;Eu(0|r,0|e,0|i),(0|(s=s+1|0))!=(0|d);)r=r+b|0,e=e+i|0}else Eu(0|r,0|e,0|sr(d,b));break;case 1:if(10!=(0|ar[e+36>>2])&&br(26338,26407,175,22700),e=0|Qc(e,10,f),Ul(v,0|sr(3*(0|ar[o>>2])|0,0|ar[a>>2]),0),r=(0|tr[v+11>>0])<0?0|ar[v>>2]:v,d=3*(0|ar[o>>2])|0,b=0|ar[a>>2],(0|d)!=(0|(i=0|ar[f>>2]))){if(0<(0|b))for(s=0;Eu(0|r,0|e,0|i),(0|(s=s+1|0))!=(0|b);)r=r+d|0,e=e+i|0}else Eu(0|r,0|e,0|sr(b,d));break;case 2:if(0|ar[e+36>>2]&&br(26427,26407,187,22700),e=0|Qc(e,0,f),Ul(v,0|sr(0|ar[a>>2],0|ar[o>>2]),0),r=(0|tr[v+11>>0])<0?0|ar[v>>2]:v,d=0|ar[o>>2],b=0|ar[a>>2],(0|d)!=(0|(i=0|ar[f>>2]))){if(0<(0|b))for(s=0;Eu(0|r,0|e,0|i),(0|(s=s+1|0))!=(0|b);)r=r+d|0,e=e+i|0}else Eu(0|r,0|e,0|sr(b,d))}Fe(l,25603,v),0|(e=0|ar[c>>2])&&(0|(s=0|ar[e+4>>2])&&Il(s),Vl(e)),ar[A>>2]=ar[l>>2],((ar[l>>2]=0)|tr[v+11>>0])<0&&Vl(0|ar[v>>2])}v=0|ar[l>>2],cA(0|v),ur=u},function(A,e,r,i){A|=0,e|=0,r|=0,i|=0;var f,n,t,o,a,c=0,l=0;if(ur=(a=ur)+64|0,f=a+24|0,l=a+48|0,t=a+36|0,o=a,i=0|sA(),ar[l>>2]=i,!e)return ar[A>>2]=i,ar[l>>2]=0,cA((l=0)|l),void(ur=a);ar[t>>2]=0,ar[(n=4+t|0)>>2]=0,ar[8+t>>2]=0,Nc(o,e,i=65535&r,t),0|ar[o>>2]?(c=0|El(20),e=0|ar[(r=o)+4>>2],ar[(i=c)>>2]=ar[r>>2],ar[i+4>>2]=e,Rl(c+8|0,i=o+8|0),ar[f>>2]=c,c=0|dA(1072,0|f),ar[A>>2]=c):(_c(f,e,i),Fe(l,25598,f),(0|tr[11+f>>0])<0&&Vl(0|ar[f>>2]),r=0|ar[t>>2],e=(0|ar[n>>2])-r|0,ar[f>>2]=0,ar[4+f>>2]=0,4294967279<e>>>(ar[8+f>>2]=0)&&Nl(),e>>>0<11?(tr[11+f>>0]=e)?(i=f,c=12):i=f:(i=0|El(c=e+16&-16),ar[f>>2]=i,ar[8+f>>2]=-2147483648|c,ar[4+f>>2]=e,c=12),12==(0|c)&&Eu(0|i,0|r,0|e),tr[i+e>>0]=0,Fe(l,25603,f),(0|tr[11+f>>0])<0&&Vl(0|ar[f>>2]),ar[A>>2]=ar[l>>2],i=o+8|(ar[l>>2]=0)),(0|tr[i+11>>0])<0&&Vl(0|ar[o+8>>2]),0|(i=0|ar[t>>2])&&((0|ar[n>>2])!=(0|i)&&(ar[n>>2]=i),Vl(i)),l=0|ar[l>>2],cA(0|l),ur=a},function(A,e,r,i){e|=0,r|=0,i|=0;var f,n,t,o=0,a=0;ur=(t=ur)+16|0,n=t,o=0|ar[(A|=0)>>2],f=e+((A=0|ar[A+4>>2])>>1)|0,1&A&&(o=0|ar[(0|ar[f>>2])+o>>2]),e=i+4|0,i=0|ar[i>>2],ar[n>>2]=0,ar[n+4>>2]=0,4294967279<i>>>(ar[n+8>>2]=0)&&Nl(),i>>>0<11?(tr[n+11>>0]=i)?(A=n,a=9):A=n:(A=0|El(a=i+16&-16),ar[n>>2]=A,ar[n+8>>2]=-2147483648|a,ar[n+4>>2]=i,a=9),9==(0|a)&&Eu(0|A,0|e,0|i),tr[A+i>>0]=0,hs[127&o](f,r,n),ur=(0<=(0|tr[n+11>>0])||Vl(0|ar[n>>2]),t)},function(A,e,r,i){e|=0,r|=0,i|=0;var f,n,t,o=0;ur=(n=ur)+16|0,f=n,o=0|ar[(A|=0)>>2],A=e+((t=0|ar[A+4>>2])>>1)|0,1&t&&(o=0|ar[(0|ar[A>>2])+o>>2]),ar[f>>2]=i,hs[127&o](A,r,f),ur=n},function(A,e,r,i){A|=0,e|=0,i|=0;var f,n,t=0,o=0,a=0,c=0,l=0,u=0,s=0;if(f=(r|=0)+5|0,n=1<<r,31!=(0|r)){a=0;do{for(c=a<<r,l=0|sr(a,i),o=t=0;s=(o=(2048+(or[e+(t+c<<1)>>1]<<f)>>12)+o|0)+(0|cr[(u=A+(t+l)|0)>>0])|0,tr[u>>0]=(0|s)<0?0:255&((0|s)<255?s:255),(0|(t=t+1|0))<(0|n););a=a+1|0}while((0|a)<(0|n))}},function(A,e,r,i){A|=0,e|=0,i|=0;var f,n,t=0,o=0,a=0,c=0,l=0;if(f=(r|=0)+5|0,n=1<<r,31!=(0|r)){a=0;do{for(o=t=0;o=(2048+(or[e+((t<<r)+a<<1)>>1]<<f)>>12)+o|0,c=A+((0|sr(t,i))+a)|0,l=o+(0|cr[c>>0])|0,tr[c>>0]=(0|l)<0?0:255&((0|l)<255?l:255),(0|(t=t+1|0))<(0|n););a=a+1|0}while((0|a)<(0|n))}},function(A,e,r,i){br(37782,28463,68,28505)},function(A,e,r,i){A|=0,e|=0,r|=0;var f,n,t,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0;for(ur=(t=ur)+32|0,f=t,a=(n=20-(i|=0)|0)-1|0,o=0;c=0|or[e+(o<<1)>>1],b=(74*(l=0|or[e+(o+4<<1)>>1])|0)+(29*c|0)+(84*(u=0|or[e+(o+8<<1)>>1])|0)+(55*(s=0|or[e+(o+12<<1)>>1])|0)+64>>7,or[f+(o<<1)>>1]=(0|b)<-32768?-32768:65535&((0|b)<32767?b:32767),b=(0|sr(s,-84))+((0|sr(u,-29))+((74*l|0)+(55*c|0)))+64>>7,or[f+8+(o<<1)>>1]=(0|b)<-32768?-32768:65535&((0|b)<32767?b:32767),b=(74*s|0)+((0|sr(u,-74))+(74*c|0))+64>>7,or[f+16+(o<<1)>>1]=(0|b)<-32768?-32768:65535&((0|b)<32767?b:32767),c=(0|sr(s,-29))+((55*u|0)+((0|sr(l,-74))+(84*c|0)))+64>>7,or[f+24+(o<<1)>>1]=(0|c)<-32768?-32768:65535&((0|c)<32767?c:32767),4!=(0|(o=o+1|0)););for(c=1<<a,a=(e=1<<i)+65535|0,o=0;b=0|sr(o,r),s=0|or[f+(o<<3)>>1],k=(74*(u=0|or[f+(o<<3)+2>>1])|0)+(29*s|0)+(84*(l=0|or[f+(o<<3)+4>>1])|0)+(55*(i=0|or[f+(o<<3)+6>>1])|0)+c>>n,k=(0|lr[(d=A+(b<<1)|0)>>1])+((0|k)<-32768?-32768:(0|k)<32767?k:32767)|0,or[d>>1]=(0|k)<0?0:65535&((0|k)<(0|e)?k:a),d=(0|sr(i,-84))+((0|sr(l,-29))+((74*u|0)+(55*s|0)))+c>>n,d=(0|lr[(k=A+(b+1<<1)|0)>>1])+((0|d)<-32768?-32768:(0|d)<32767?d:32767)|0,or[k>>1]=(0|d)<0?0:65535&((0|d)<(0|e)?d:a),k=(74*i|0)+((0|sr(l,-74))+(74*s|0))+c>>n,k=(0|lr[(d=A+(b+2<<1)|0)>>1])+((0|k)<-32768?-32768:(0|k)<32767?k:32767)|0,or[d>>1]=(0|k)<0?0:65535&((0|k)<(0|e)?k:a),s=(0|sr(i,-29))+((55*l|0)+((0|sr(u,-74))+(84*s|0)))+c>>n,s=(0|lr[(b=A+(b+3<<1)|0)>>1])+((0|s)<-32768?-32768:(0|s)<32767?s:32767)|0,or[b>>1]=(0|s)<0?0:65535&((0|s)<(0|e)?s:a),4!=(0|(o=o+1|0)););ur=t},function(A,e,r,i){jt(A|=0,r|=0,4,e|=0,i|=0)},function(A,e,r,i){jt(A|=0,r|=0,8,e|=0,i|=0)},function(A,e,r,i){jt(A|=0,r|=0,16,e|=0,i|=0)},function(A,e,r,i){jt(A|=0,r|=0,32,e|=0,i|=0)},function(A,e,r,i){A|=0,e|=0;var f,n,t,o,a=0,c=0,l=0,u=0,s=0,b=0,d=0;for(ur=(o=ur)+32|0,t=o,c=(r|=0)+-1|0,f=(a=1<<(i|=0))+65535|0,n=0-a|0,i=0;l=0|or[e+(i<<1)>>1],d=(74*(u=0|or[e+(i+4<<1)>>1])|0)+(29*l|0)+(84*(s=0|or[e+(i+8<<1)>>1])|0)+(55*(b=0|or[e+(i+12<<1)>>1])|0)+64>>7,or[t+(i<<1)>>1]=(0|d)<(0|n)?n:(0|d)<(0|a)?d:f,d=(0|sr(b,-84))+((0|sr(s,-29))+((74*u|0)+(55*l|0)))+64>>7,or[t+8+(i<<1)>>1]=(0|d)<(0|n)?n:(0|d)<(0|a)?d:f,d=(74*b|0)+((0|sr(s,-74))+(74*l|0))+64>>7,or[t+16+(i<<1)>>1]=(0|d)<(0|n)?n:(0|d)<(0|a)?d:f,l=(0|sr(b,-29))+((55*s|0)+((0|sr(u,-74))+(84*l|0)))+64>>7,or[t+24+(i<<1)>>1]=(0|l)<(0|n)?n:(0|l)<(0|a)?l:f,4!=(0|(i=i+1|0)););for(a=1<<c,i=0;d=i<<2,b=0|or[t+(i<<3)>>1],c=74*(s=0|or[t+(i<<3)+2>>1])|0,u=0|or[t+(i<<3)+4>>1],l=0|or[t+(i<<3)+6>>1],ar[A+(d<<2)>>2]=(55*l|0)+((84*u|0)+(c+(29*b|0)))+a>>r,c=(0|sr(l,-84))+((0|sr(u,-29))+(c+(55*b|0)))+a>>r,ar[A+((1|d)<<2)>>2]=c,c=(74*l|0)+((0|sr(u,-74))+(74*b|0))+a>>r,ar[A+((2|d)<<2)>>2]=c,b=(0|sr(l,-29))+((55*u|0)+((0|sr(s,-74))+(84*b|0)))+a>>r,ar[A+((3|d)<<2)>>2]=b,4!=(0|(i=i+1|0)););ur=o},function(A,e,r,i){Ht(A|=0,4,e|=0,r|=0,i|=0)},function(A,e,r,i){Ht(A|=0,8,e|=0,r|=0,i|=0)},function(A,e,r,i){Ht(A|=0,16,e|=0,r|=0,i|=0)},function(A,e,r,i){Ht(A|=0,32,e|=0,r|=0,i|=0)},Pu,Pu,Pu,Pu,Pu],vs=[Lu,function(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0,f|=0;var n=0;do{if(0|tu(A,0|ar[e+8>>2]))au(0,e,r,i);else if(0|tu(A,0|ar[e>>2])){if(A=e+32|0,(0|ar[e+16>>2])!=(0|r)&&(0|ar[(n=e+20|0)>>2])!=(0|r)){ar[A>>2]=i,ar[n>>2]=r,ar[(i=e+40|0)>>2]=1+(0|ar[i>>2]),1==(0|ar[e+36>>2])&&2==(0|ar[e+24>>2])&&(tr[e+54>>0]=1),ar[e+44>>2]=4;break}1==(0|i)&&(ar[A>>2]=1)}}while(0)},function(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0,f|=0;var n=0,t=0,o=0,a=0;do{if(0|tu(A,0|ar[e+8>>2]))au(0,e,r,i);else{if(n=A+8|0,!(0|tu(A,0|ar[e>>2]))){o=0|ar[n>>2],vs[15&ar[24+(0|ar[o>>2])>>2]](o,e,r,i,f);break}if(A=e+32|0,(0|ar[e+16>>2])!=(0|r)&&(0|ar[(t=e+20|0)>>2])!=(0|r)){if(ar[A>>2]=i,4==(0|ar[(i=e+44|0)>>2]))break;tr[(A=e+52|0)>>0]=0,n=(tr[(a=e+53|0)>>0]=0)|ar[n>>2],gs[15&ar[20+(0|ar[n>>2])>>2]](n,e,r,r,1,f),0|tr[a>>0]?0|tr[A>>0]?A=3:(A=3,o=11):(A=4,o=11),11==(0|o)&&(ar[t>>2]=r,ar[(a=e+40|0)>>2]=1+(0|ar[a>>2]),1==(0|ar[e+36>>2])&&2==(0|ar[e+24>>2])&&(tr[e+54>>0]=1)),ar[i>>2]=A;break}1==(0|i)&&(ar[A>>2]=1)}}while(0)},function(A,e,r,i,f){A|=0,e|=0,r|=0,i|=0,f|=0;var n=0,t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0,d=0,k=0,h=0;A:do{if(0|tu(A,0|ar[e+8>>2]))au(0,e,r,i);else{if(t=A+12|0,d=e+24|0,k=e+36|0,h=e+54|0,s=A+8|0,l=A+16|0,!(0|tu(A,0|ar[e>>2]))){if(o=A+16+((b=0|ar[t>>2])<<3)|0,du(l,e,r,i,f),n=A+24|0,(0|b)<=1)break;if(0==(2&(t=0|ar[s>>2])|0)&&1!=(0|ar[k>>2])){if(!(1&t))for(;;){if(0|tr[h>>0])break A;if(1==(0|ar[k>>2]))break A;if(du(n,e,r,i,f),o>>>0<=(n=n+8|0)>>>0)break A}for(;;){if(0|tr[h>>0])break A;if(1==(0|ar[k>>2])&&1==(0|ar[d>>2]))break A;if(du(n,e,r,i,f),o>>>0<=(n=n+8|0)>>>0)break A}}for(;;){if(0|tr[h>>0])break A;if(du(n,e,r,i,f),o>>>0<=(n=n+8|0)>>>0)break A}}if(n=e+32|0,(0|ar[e+16>>2])!=(0|r)&&(0|ar[(b=e+20|0)>>2])!=(0|r)){if(ar[n>>2]=i,4==(0|ar[(u=e+44|0)>>2]))break;i=A+16+(ar[t>>2]<<3)|0,a=e+52|0,c=e+53|0,A=l,o=n=0;e:for(;;){if(i>>>0<=A>>>0){t=18;break}if(tr[a>>0]=0,tr[c>>0]=0,bu(A,e,r,r,1,f),0|tr[h>>0]){t=18;break}do{if(0|tr[c>>0]){if(!(0|tr[a>>0])){if(1&ar[s>>2]){n=1,t=o;break}n=1,t=18;break e}if(1==(0|ar[d>>2])){t=23;break e}if(!(2&ar[s>>2])){t=23;break e}t=n=1}else t=o}while(0);A=A+8|0,o=t}do{if(18==(0|t)){if(!o&&(ar[b>>2]=r,ar[(r=e+40|0)>>2]=1+(0|ar[r>>2]),1==(0|ar[k>>2]))&&2==(0|ar[d>>2])){if(tr[h>>0]=1,n){t=23;break}n=4;break}n?t=23:n=4}}while(0);23==(0|t)&&(n=3),ar[u>>2]=n;break}1==(0|i)&&(ar[n>>2]=1)}}while(0)},function(A,e,r,i,f){A|=0,e|=0,r|=0,f|=0;var n,t,o=0,a=0,c=0,l=0,u=0;if(!((0|(i|=0))<=0)){t=255+(n=1<<f)|0,f=0;do{for(a=0|sr(f,e),c=0|sr(f,i),o=0;u=(0|cr[(l=A+(o+a)|0)>>0])+(0|ar[r+(o+c<<2)>>2])|0,tr[l>>0]=(0|u)<0?0:255&((0|u)<(0|n)?u:t),(0|(o=o+1|0))!=(0|i););f=f+1|0}while((0|f)!=(0|i))}},function(A,e,r,i,f){A|=0,e|=0,r|=0,f|=0;var n,t,o=0,a=0,c=0,l=0,u=0;if(!((0|(i|=0))<=0)){t=65535+(n=1<<f)|0,f=0;do{for(a=0|sr(f,e),c=0|sr(f,i),o=0;u=(0|lr[(l=A+(o+a<<1)|0)>>1])+(0|ar[r+(o+c<<2)>>2])|0,or[l>>1]=(0|u)<0?0:65535&((0|u)<(0|n)?u:t),(0|(o=o+1|0))!=(0|i););f=f+1|0}while((0|f)!=(0|i))}},function(A,e,r,i,f){A|=0,e|=0,i|=0;var n,t=0,o=0,a=0,c=0,l=0;if(n=1<<(f|=0)+-1,0<(0|(r|=0))){a=0;do{for(c=0|sr(a,r),o=t=0;o=((or[e+((l=t+c|0)<<1)>>1]<<i)+n>>f)+o|0,ar[A+(l<<2)>>2]=o,(0|(t=t+1|0))!=(0|r););a=a+1|0}while((0|a)!=(0|r))}},function(A,e,r,i,f){A|=0,e|=0,i|=0;var n,t=0,o=0,a=0,c=0;if(n=1<<(f|=0)+-1,0<(0|(r|=0))){a=0;do{for(o=t=0;c=(0|sr(t,r))+a|0,o=((or[e+(c<<1)>>1]<<i)+n>>f)+o|0,ar[A+(c<<2)>>2]=o,(0|(t=t+1|0))!=(0|r););a=a+1|0}while((0|a)!=(0|r))}},function(A,e,r,i,f){A|=0,e|=0,i|=0;var n,t=0,o=0,a=0,c=0;if(n=1<<(f|=0)+-1,0<(0|(r|=0))){o=0;do{for(a=0|sr(o,r),t=0;ar[A+((c=t+a|0)<<2)>>2]=(or[e+(c<<1)>>1]<<i)+n>>f,(0|(t=t+1|0))!=(0|r););o=o+1|0}while((0|o)!=(0|r))}},Lu,Lu,Lu,Lu,Lu,Lu,Lu],gs=[Ku,function(A,e,r,i,f,n){A|=0,r|=0,i|=0,f|=0,n|=0;var t,o=0,a=0,c=0,l=0,u=0;l=(a=0|ar[(o=(e|=0)+44|0)>>2])>>>0<(c=u=0|ar[(t=e+24|0)>>2])>>>0?(ar[o>>2]=u,c):a,a=24&n;A:do{if(0==(0|a)||1==(0|f)&24==(0|a))o=a=-1;else{e:do{switch(0|f){case 0:a=o=0;break;case 1:if(8&n){a=((0|(o=a=(0|ar[e+12>>2])-(0|ar[e+8>>2])|0))<0)<<31>>31;break e}a=((0|(o=a=c-(0|ar[e+20>>2])|0))<0)<<31>>31;break e;case 2:(0|tr[(o=e+32|0)+11>>0])<0&&(o=0|ar[o>>2]),a=((0|(o=a=l-o|0))<0)<<31>>31;break;default:o=a=-1;break A}}while(0);if(a=0|vu(0|o,0|a,0|r,0|i),0<=(0|(o=D)))if((0|tr[(c=e+32|0)+11>>0])<0&&(c=0|ar[c>>2]),(0|(r=((0|(i=l-c|0))<0)<<31>>31))<(0|o)|(0|r)==(0|o)&i>>>0<a>>>0)o=a=-1;else{if(c=8&n,!(0==(0|a)&0==(0|o))){if(0|c&&0==(0|ar[e+12>>2])){o=a=-1;break}if(0!=(16&n|0)&0==(0|u)){o=a=-1;break}}0|c&&(ar[e+12>>2]=(0|ar[e+8>>2])+a,ar[e+16>>2]=l),16&n&&(ar[t>>2]=(0|ar[e+20>>2])+a)}else o=a=-1}}while(0);ar[(u=A)>>2]=0,ar[u+4>>2]=0,ar[(A=A+8|0)>>2]=a,ar[A+4>>2]=o},function(A,e,r,i,f,n){n|=0,ar[(n=A|=0)>>2]=0,ar[n+4>>2]=0,ar[(n=A+8|0)>>2]=-1,ar[n+4>>2]=-1},function(A,e,r,i,f,n){n|=0,ar[(n=A|=0)>>2]=0,ar[n+4>>2]=0,ar[(n=A+8|0)>>2]=-1,ar[n+4>>2]=-1},function(A,e,r,i,f,n){var t,o,a,c;for(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t=ur=(o=ur)+31&-32,ur=ur+16|0,ar[t>>2]=0,ar[4+t>>2]=0,e=ar[8+t>>2]=0;3!=(0|e);)e=e+1|(ar[t+(e<<2)>>2]=0);for(n=(e=(c=(a=0|tr[n+11>>0])<<24>>24<0)?0|ar[n>>2]:n)+(c?0|ar[n+4>>2]:255&a)|0;!(n>>>0<=e>>>0);)jl(t,0|tr[e>>0]),e=e+1|0;for(r=0|ii(0,0,0,e=(0|tr[11+t>>0])<0?0|ar[t>>2]:t),ar[A>>2]=0,ar[A+4>>2]=0,n=ar[A+8>>2]=0;3!=(0|n);)n=n+1|(ar[A+(n<<2)>>2]=0);for(n=e+(0|ta(r))|0;!(n>>>0<=e>>>0);)jl(A,0|tr[e>>0]),e=e+1|0;Yl(t),ur=o},function(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0;var t,o,a,c,l,u,s=0,b=0,d=0,k=0,h=0,w=0;for(w=ur=(u=ur)+31&-32,ur=ur+176|0,o=w+168|0,a=w+40|0,c=w+36|0,l=w+32|0,k=(t=w)+24|0,w=w+16|0,ar[t>>2]=0,ar[t+4>>2]=0,e=ar[t+8>>2]=0;3!=(0|e);)e=e+1|(ar[t+(e<<2)>>2]=0);for(ar[k+4>>2]=0,ar[k>>2]=15236,b=(e=(d=(b=0|tr[n+8+3>>0])<<24>>24<0)?0|ar[n>>2]:n)+((d?0|ar[n+4>>2]:255&b)<<2)|0,d=32+a|0,n=e,e=0;2!=(0|e)&n>>>0<b>>>0;){if(ar[l>>2]=n,2==(0|(s=0|ss[15&ar[12+(0|ar[k>>2])>>2]](k,o,n,b,l,a,d,c)))||(0|ar[l>>2])==(0|n)){h=7;break}for(e=a;!(e>>>0>=(0|ar[c>>2])>>>0);)jl(t,0|tr[e>>0]),e=e+1|0;n=0|ar[l>>2],e=s}for(7==(0|h)&&me(),lf(),n=0|ii(0,0,0,s=(0|tr[t+11>>0])<0?0|ar[t>>2]:t),ar[A>>2]=0,ar[A+4>>2]=0,e=ar[A+8>>2]=0;3!=(0|e);)e=e+1|(ar[A+(e<<2)>>2]=0);for(ar[w+4>>2]=0,ar[w>>2]=15284,d=b=s+(0|ta(n))|0,k=128+a|0,n=s,e=0;;){if(!(2!=(0|e)&n>>>0<b>>>0)){h=21;break}if(ar[l>>2]=n,2==(0|(s=0|ss[15&ar[16+(0|ar[w>>2])>>2]](w,o,n,32<(d-n|0)?n+32|0:b,l,a,k,c)))||(0|ar[l>>2])==(0|n)){h=17;break}for(e=a;!(e>>>0>=(0|ar[c>>2])>>>0);)ru(A,0|ar[e>>2]),e=e+4|0;n=0|ar[l>>2],e=s}if(17==(0|h))me();else if(21==(0|h))return lf(),Yl(t),void(ur=u)},function(A,e,r,i,f,n){r|=0,i|=0,f|=0,n|=0,0|tu(A|=0,0|ar[(e|=0)+8>>2])&&cu(0,e,r,i,f)},function(A,e,r,i,f,n){r|=0,i|=0,f|=0,n|=0,0|tu(A|=0,0|ar[(e|=0)+8>>2])?cu(0,e,r,i,f):(A=0|ar[A+8>>2],gs[15&ar[20+(0|ar[A>>2])>>2]](A,e,r,i,f,n))},function(A,e,r,i,f,n){r|=0,i|=0,f|=0,n|=0;var t=0,o=0,a=0,c=0,l=0,u=0,s=0,b=0;if(0|tu(A|=0,0|ar[(e|=0)+8>>2]))cu(0,e,r,i,f);else{t=0|tr[(b=e+52|0)>>0],a=0|tr[(o=e+53|0)>>0],c=A+16+((s=0|ar[A+12>>2])<<3)|0,tr[b>>0]=0,bu(A+16|(tr[o>>0]=0),e,r,i,f,n);A:do{if(1<(0|s)){l=e+24|0,u=e+54|0,s=A+8|0,A=A+24|0;do{if(0|tr[u>>0])break A;if(0|tr[b>>0]){if(1==(0|ar[l>>2]))break A;if(!(2&ar[s>>2]))break A}else if(0|tr[o>>0]&&0==(1&ar[s>>2]|0))break A;tr[b>>0]=0,tr[o>>0]=0,bu(A,e,r,i,f,n),A=A+8|0}while(A>>>0<c>>>0)}}while(0);tr[b>>0]=t,tr[o>>0]=a}},function(A,e,r,i,f,n){A|=0,e|=0,r|=0,i|=0,n|=0;var t=0,o=0,a=0,c=0,l=0;if(1&(f|=0)|0&&br(29556,29569,40,29588),0<(0|n)&0<(0|f)){a=0;do{for(t=A+(0|sr(a,e))|0,o=r+((0|sr(a,i))<<1)|0,c=0;l=32+(0|or[o>>1])>>6,tr[t>>0]=(0|l)<0?0:255&((0|l)<255?l:255),l=32+(0|or[o+2>>1])>>6,tr[t+1>>0]=(0|l)<0?0:255&((0|l)<255?l:255),!((0|f)<=(0|(c=c+2|0)));)t=t+2|0,o=o+4|0;a=a+1|0}while((0|a)!=(0|n))}},Ku,Ku,Ku,Ku,Ku,Ku],ms=[qu,function(A,e,r,i,f,n,t){A|=0,e|=0,r|=0,i|=0,f|=0,t|=0;var o=0,a=0,c=0,l=0,u=0,s=0;if(1&(n|=0)|0&&br(29556,29569,105,29689),0<(0|t)&0<(0|n)){l=0;do{for(c=0|sr(l,f),o=A+(0|sr(l,e))|0,a=i+(c<<1)|0,c=r+(c<<1)|0,u=0;s=64+(0|or[c>>1])+(0|or[a>>1])>>7,tr[o>>0]=(0|s)<0?0:255&((0|s)<255?s:255),s=64+(0|or[c+2>>1])+(0|or[a+2>>1])>>7,tr[o+1>>0]=(0|s)<0?0:255&((0|s)<255?s:255),!((0|n)<=(0|(u=u+2|0)));)o=o+2|0,a=a+4|0,c=c+4|0;l=l+1|0}while((0|l)!=(0|t))}},function(A,e,r,i,f,n,t){A|=0,e|=0,r|=0,i|=0,n|=0;var o,a,c,l,u=0,s=0,b=0,d=0;if(c=0<(0|(l=14-(t|=0)|0))?1<<l-1:0,1&(f|=0)|0&&br(29556,29569,172,29722),!((0|n)<=0)&&(a=65535+(o=1<<t)|0,0<(0|f))){s=0;do{for(t=A+((0|sr(s,e))<<1)|0,u=r+((0|sr(s,i))<<1)|0,b=0;d=(0|or[u>>1])+c>>l,or[t>>1]=(0|d)<0?0:65535&((0|d)<(0|o)?d:a),d=(0|or[u+2>>1])+c>>l,or[t+2>>1]=(0|d)<0?0:65535&((0|d)<(0|o)?d:a),!((0|f)<=(0|(b=b+2|0)));)t=t+4|0,u=u+4|0;s=s+1|0}while((0|s)!=(0|n))}},function(A,e,r,i,f,n,t){A|=0,e|=0,r|=0,i|=0,t|=0;var o=0,a=0,c=0,l=0,u=0,s=0;if(0<(0|(n|=0))&0<(0|(f|=0))){c=0;do{for(t=r+(0|sr(c,i))|0,o=A+((0|sr(c,e))<<1)|0,a=0;s=(0|cr[t+1>>0])<<6&65535,u=(0|cr[t+2>>0])<<6&65535,l=(0|cr[t+3>>0])<<6&65535,or[o>>1]=(0|cr[t>>0])<<6,or[o+2>>1]=s,or[o+4>>1]=u,or[o+6>>1]=l,!((0|f)<=(0|(a=a+4|0)));)t=t+4|0,o=o+8|0;c=c+1|0}while((0|c)!=(0|n))}},function(A,e,r,i,f,n,t){Lt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,0,1,8)},function(A,e,r,i,f,n,t){Lt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,0,2,8)},function(A,e,r,i,f,n,t){Lt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,0,3,8)},function(A,e,r,i,f,n,t){Lt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,1,0,8)},function(A,e,r,i,f,n,t){Lt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,1,1,8)},function(A,e,r,i,f,n,t){Lt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,1,2,8)},function(A,e,r,i,f,n,t){Lt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,1,3,8)},function(A,e,r,i,f,n,t){Lt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,2,0,8)},function(A,e,r,i,f,n,t){Lt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,2,1,8)},function(A,e,r,i,f,n,t){Lt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,2,2,8)},function(A,e,r,i,f,n,t){Lt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,2,3,8)},function(A,e,r,i,f,n,t){Lt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,3,0,8)},function(A,e,r,i,f,n,t){Lt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,3,1,8)},function(A,e,r,i,f,n,t){Lt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,3,2,8)},function(A,e,r,i,f,n,t){Lt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,3,3,8)},qu,qu,qu,qu,qu,qu,qu,qu,qu,qu,qu,qu,qu],ps=[$u,function(A,e,r,i,f,n,t,o){A|=0,e|=0,r|=0,i|=0,f|=0,t|=0;var a,c,l,u,s=0,b=0,d=0,k=0,h=0;if(l=1<<(u=15-(o|=0)|0)-1,1&(n|=0)|0&&br(29556,29569,238,29816),!((0|t)<=0)&&(c=65535+(a=1<<o)|0,0<(0|n))){d=0;do{for(b=0|sr(d,f),o=A+((0|sr(d,e))<<1)|0,s=i+(b<<1)|0,b=r+(b<<1)|0,k=0;h=(0|or[b>>1])+l+(0|or[s>>1])>>u,or[o>>1]=(0|h)<0?0:65535&((0|h)<(0|a)?h:c),h=(0|or[b+2>>1])+l+(0|or[s+2>>1])>>u,or[o+2>>1]=(0|h)<0?0:65535&((0|h)<(0|a)?h:c),!((0|n)<=(0|(k=k+2|0)));)o=o+4|0,s=s+4|0,b=b+4|0;d=d+1|0}while((0|d)!=(0|t))}},function(A,e,r,i,f,n,t,o){A|=0,e|=0,r|=0,i|=0,t|=0;var a,c=0,l=0;if(a=14-(o|=0)|0,0<(0|(n|=0))&0<(0|(f|=0))){c=0;do{for(t=A+((0|sr(c,e))<<1)|0,o=r+((0|sr(c,i))<<1)|0,l=0;or[t>>1]=(0|lr[o>>1])<<a,(0|(l=l+1|0))!=(0|f);)t=t+2|0,o=o+2|0;c=c+1|0}while((0|c)!=(0|n))}},function(A,e,r,i,f,n,t,o){Kt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,0,1,o|=0)},function(A,e,r,i,f,n,t,o){Kt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,0,2,o|=0)},function(A,e,r,i,f,n,t,o){Kt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,0,3,o|=0)},function(A,e,r,i,f,n,t,o){Kt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,1,0,o|=0)},function(A,e,r,i,f,n,t,o){Kt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,1,1,o|=0)},function(A,e,r,i,f,n,t,o){Kt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,1,2,o|=0)},function(A,e,r,i,f,n,t,o){Kt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,1,3,o|=0)},function(A,e,r,i,f,n,t,o){Kt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,2,0,o|=0)},function(A,e,r,i,f,n,t,o){Kt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,2,1,o|=0)},function(A,e,r,i,f,n,t,o){Kt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,2,2,o|=0)},function(A,e,r,i,f,n,t,o){Kt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,2,3,o|=0)},function(A,e,r,i,f,n,t,o){Kt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,3,0,o|=0)},function(A,e,r,i,f,n,t,o){Kt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,3,1,o|=0)},function(A,e,r,i,f,n,t,o){Kt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,3,2,o|=0)},function(A,e,r,i,f,n,t,o){Kt(A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,3,3,o|=0)},$u,$u,$u,$u,$u,$u,$u,$u,$u,$u,$u,$u,$u,$u],ys=[As,function(A,e,r,i,f,n,t,o,a){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0;var c,l=0,u=0,s=0,b=0,d=0;if((0|(a|=0))<=0&&br(29619,29569,60,29629),c=1<<a+-1,0<(0|n)&0<(0|f)){s=0;do{for(l=A+(0|sr(s,e))|0,u=r+((0|sr(s,i))<<1)|0,b=0;d=((0|sr(0|or[u>>1],t))+c>>a)+o|0,tr[l>>0]=(0|d)<0?0:255&((0|d)<255?d:255),(0|(b=b+1|0))!=(0|f);)l=l+1|0,u=u+2|0;s=s+1|0}while((0|s)!=(0|n))}},function(A,e,r,i,f,n,t,o,a){A|=0,e|=0,r|=0,i|=0,t|=0,o|=0,a|=0;var c=0;if(0<(0|(n|=0))&0<(0|(f|=0))){a=0;do{for(t=r+(0|sr(a,i))|0,o=A+((0|sr(a,e))<<1)|0,c=0;or[o>>1]=(0|cr[t>>0])<<6,(0|(c=c+1|0))!=(0|f);)t=t+1|0,o=o+2|0;a=a+1|0}while((0|a)!=(0|n))}},As],Zs=[es,function(A,e,r,i,f,n,t,o,a,c){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,c|=0;var l,u,s,b=0,d=0,k=0,h=0;if((0|(a|=0))<=0&&br(29619,29569,193,29754),s=1<<a+-1,!((0|n)<=0)&&(u=65535+(l=1<<c)|0,0<(0|f))){d=0;do{for(c=A+((0|sr(d,e))<<1)|0,b=r+((0|sr(d,i))<<1)|0,k=0;h=((0|sr(0|or[b>>1],t))+s>>a)+o|0,or[c>>1]=(0|h)<0?0:65535&((0|h)<(0|l)?h:u),(0|(k=k+1|0))!=(0|f);)c=c+2|0,b=b+2|0;d=d+1|0}while((0|d)!=(0|n))}},function(A,e,r,i,f,n,t,o,a,c){A|=0,e|=0,r|=0,i|=0,t|=0,o|=0,a|=0;var l,u,s,b=0,d=0,k=0,h=0,w=0,v=0;if(s=ur,k=(c|=0)+-8|0,h=0|sr((f|=0)<<1,l=(n|=0)+3|0),ur=(u=ur)+(15+(0|+h)&-16)|0,-1<(0|(h=n+2|0))){w=0<(0|f),a=-1;do{A:do{if(w)for(d=a+1|0,a=r+(((b=0)|sr(a,i))-1)|0;;){switch(0|t){case 0:c=0|cr[(a=a+1|0)>>0];break;case 1:v=a+1|0,c=(0|sr(0|cr[a>>0],-2))+(58*(0|cr[v>>0])|0)+(10*(0|cr[a+2>>0])|0)-(cr[a+3>>0]<<1)>>k&65535,a=v;break;case 2:v=a+1|0,c=(0|sr(0|cr[a>>0],-4))+(54*(0|cr[v>>0])|0)+(cr[a+2>>0]<<4)-(cr[a+3>>0]<<1)>>k&65535,a=v;break;case 3:v=a+1|0,c=(0|sr(0|cr[a>>0],-6))+(46*(0|cr[v>>0])|0)+(28*(0|cr[a+2>>0])|0)-(cr[a+3>>0]<<2)>>k&65535,a=v;break;case 4:v=a+1|0,c=(0|sr(0|cr[a>>0],-4))-(cr[a+3>>0]<<2)+(36*((0|cr[a+2>>0])+(0|cr[v>>0])|0)|0)>>k&65535,a=v;break;case 5:v=a+1|0,c=(0|sr(0|cr[a>>0],-4))+(28*(0|cr[v>>0])|0)+(46*(0|cr[a+2>>0])|0)+(0|sr(0|cr[a+3>>0],-6))>>k&65535,a=v;break;case 6:v=a+1|0,c=(0|sr(0|cr[a>>0],-2))+(cr[v>>0]<<4)+(54*(0|cr[a+2>>0])|0)-(cr[a+3>>0]<<2)>>k&65535,a=v;break;default:v=a+1|0,c=(0|sr(0|cr[a>>0],-2))+(10*(0|cr[v>>0])|0)+(58*(0|cr[a+2>>0])|0)-(cr[a+3>>0]<<1)>>k&65535,a=v}if(v=u+(d+(0|sr(b,l))<<1)|0,or[v>>1]=c,(0|(b=b+1|0))==(0|f)){a=d;break A}}else a=a+1|0}while(0)}while((0|a)!=(0|h))}if(k=0==(0|t)?k:6,(0|f)<=0)ur=s;else{h=0<(0|n),d=0;do{A:do{if(h)for(a=u+(((b=0)|sr(d,l))<<1)|0;;){switch(0|o){case 0:c=0|or[(a=a+2|0)>>1];break;case 1:v=a+2|0,c=(0|sr(0|or[a>>1],-2))+(58*(0|or[v>>1])|0)+(10*(0|or[a+4>>1])|0)-(or[a+6>>1]<<1)>>k&65535,a=v;break;case 2:v=a+2|0,c=(0|sr(0|or[a>>1],-4))+(54*(0|or[v>>1])|0)+(or[a+4>>1]<<4)-(or[a+6>>1]<<1)>>k&65535,a=v;break;case 3:v=a+2|0,c=(0|sr(0|or[a>>1],-6))+(46*(0|or[v>>1])|0)+(28*(0|or[a+4>>1])|0)-(or[a+6>>1]<<2)>>k&65535,a=v;break;case 4:v=a+2|0,c=(0|sr(0|or[a>>1],-4))-(or[a+6>>1]<<2)+(36*((0|or[a+4>>1])+(0|or[v>>1])|0)|0)>>k&65535,a=v;break;case 5:v=a+2|0,c=(0|sr(0|or[a>>1],-4))+(28*(0|or[v>>1])|0)+(46*(0|or[a+4>>1])|0)+(0|sr(0|or[a+6>>1],-6))>>k&65535,a=v;break;case 6:v=a+2|0,c=(0|sr(0|or[a>>1],-2))+(or[v>>1]<<4)+(54*(0|or[a+4>>1])|0)-(or[a+6>>1]<<2)>>k&65535,a=v;break;default:v=a+2|0,c=(0|sr(0|or[a>>1],-2))+(10*(0|or[v>>1])|0)+(58*(0|or[a+4>>1])|0)-(or[a+6>>1]<<1)>>k&65535,a=v}if(v=A+((0|sr(b,e))+d<<1)|0,or[v>>1]=c,(0|(b=b+1|0))==(0|n))break A}}while(0);d=d+1|0}while((0|d)!=(0|f));ur=s}},function(A,e,r,i,f,n,t,o,a,c){var l;if(A|=0,e|=0,r|=0,i|=0,t|=0,o|=0,a|=0,l=14-(c|=0)|0,0<(0|(n|=0))&0<(0|(f|=0))){a=0;do{for(t=r+((0|sr(a,i))<<1)|0,o=A+((0|sr(a,e))<<1)|0,c=0;or[o>>1]=(0|lr[t>>1])<<l,(0|(c=c+1|0))!=(0|f);)t=t+2|0,o=o+2|0;a=a+1|0}while((0|a)!=(0|n))}},function(A,e,r,i,f,n,t,o,a,c){A|=0,e|=0,r|=0,i|=0,t|=0,o|=0,a|=0;var l,u,s,b=0,d=0,k=0,h=0,w=0,v=0;if(s=ur,k=(c|=0)+-8|0,h=0|sr((f|=0)<<1,l=(n|=0)+3|0),ur=(u=ur)+(15+(0|+h)&-16)|0,-1<(0|(h=n+2|0))){w=0<(0|f),a=-1;do{A:do{if(w)for(d=a+1|0,a=r+(((b=0)|sr(a,i))-1<<1)|0;;){switch(0|t){case 0:c=0|or[(a=a+2|0)>>1];break;case 1:v=a+2|0,c=(0|sr(0|lr[a>>1],-2))+(58*(0|lr[v>>1])|0)+(10*(0|lr[a+4>>1])|0)-(lr[a+6>>1]<<1)>>k&65535,a=v;break;case 2:v=a+2|0,c=(0|sr(0|lr[a>>1],-4))+(54*(0|lr[v>>1])|0)+(lr[a+4>>1]<<4)-(lr[a+6>>1]<<1)>>k&65535,a=v;break;case 3:v=a+2|0,c=(0|sr(0|lr[a>>1],-6))+(46*(0|lr[v>>1])|0)+(28*(0|lr[a+4>>1])|0)-(lr[a+6>>1]<<2)>>k&65535,a=v;break;case 4:v=a+2|0,c=(0|sr(0|lr[a>>1],-4))-(lr[a+6>>1]<<2)+(36*((0|lr[a+4>>1])+(0|lr[v>>1])|0)|0)>>k&65535,a=v;break;case 5:v=a+2|0,c=(0|sr(0|lr[a>>1],-4))+(28*(0|lr[v>>1])|0)+(46*(0|lr[a+4>>1])|0)+(0|sr(0|lr[a+6>>1],-6))>>k&65535,a=v;break;case 6:v=a+2|0,c=(0|sr(0|lr[a>>1],-2))+(lr[v>>1]<<4)+(54*(0|lr[a+4>>1])|0)-(lr[a+6>>1]<<2)>>k&65535,a=v;break;default:v=a+2|0,c=(0|sr(0|lr[a>>1],-2))+(10*(0|lr[v>>1])|0)+(58*(0|lr[a+4>>1])|0)-(lr[a+6>>1]<<1)>>k&65535,a=v}if(v=u+(d+(0|sr(b,l))<<1)|0,or[v>>1]=c,(0|(b=b+1|0))==(0|f)){a=d;break A}}else a=a+1|0}while(0)}while((0|a)!=(0|h))}if(k=0==(0|t)?k:6,(0|f)<=0)ur=s;else{h=0<(0|n),d=0;do{A:do{if(h)for(a=u+(((b=0)|sr(d,l))<<1)|0;;){switch(0|o){case 0:c=0|or[(a=a+2|0)>>1];break;case 1:v=a+2|0,c=(0|sr(0|or[a>>1],-2))+(58*(0|or[v>>1])|0)+(10*(0|or[a+4>>1])|0)-(or[a+6>>1]<<1)>>k&65535,a=v;break;case 2:v=a+2|0,c=(0|sr(0|or[a>>1],-4))+(54*(0|or[v>>1])|0)+(or[a+4>>1]<<4)-(or[a+6>>1]<<1)>>k&65535,a=v;break;case 3:v=a+2|0,c=(0|sr(0|or[a>>1],-6))+(46*(0|or[v>>1])|0)+(28*(0|or[a+4>>1])|0)-(or[a+6>>1]<<2)>>k&65535,a=v;break;case 4:v=a+2|0,c=(0|sr(0|or[a>>1],-4))-(or[a+6>>1]<<2)+(36*((0|or[a+4>>1])+(0|or[v>>1])|0)|0)>>k&65535,a=v;break;case 5:v=a+2|0,c=(0|sr(0|or[a>>1],-4))+(28*(0|or[v>>1])|0)+(46*(0|or[a+4>>1])|0)+(0|sr(0|or[a+6>>1],-6))>>k&65535,a=v;break;case 6:v=a+2|0,c=(0|sr(0|or[a>>1],-2))+(or[v>>1]<<4)+(54*(0|or[a+4>>1])|0)-(or[a+6>>1]<<2)>>k&65535,a=v;break;default:v=a+2|0,c=(0|sr(0|or[a>>1],-2))+(10*(0|or[v>>1])|0)+(58*(0|or[a+4>>1])|0)-(or[a+6>>1]<<1)>>k&65535,a=v}if(v=A+((0|sr(b,e))+d<<1)|0,or[v>>1]=c,(0|(b=b+1|0))==(0|n))break A}}while(0);d=d+1|0}while((0|d)!=(0|f));ur=s}},es,es,es],Cs=[function(A,e,r,i,f,n,t,o,a,c,l,u){g(22)},function(A,e,r,i,f,n,t,o,a,c,l,u){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0;var s,b,d=0,k=0,h=0;if((0|(u|=0))<=0&&br(29619,29569,80,29658),b=a+1+l<<u,!((0|t)<=0)&&(s=u+1|0,0<(0|n))){d=0;do{for(u=0|sr(d,f),l=A+(0|sr(d,e))|0,a=i+(u<<1)|0,u=r+(u<<1)|0,k=0;h=(h=0|sr(0|or[u>>1],o))+b+(0|sr(0|or[a>>1],c))>>s,tr[l>>0]=(0|h)<0?0:255&((0|h)<255?h:255),(0|(k=k+1|0))!=(0|n);)l=l+1|0,a=a+2|0,u=u+2|0;d=d+1|0}while((0|d)!=(0|t))}}],Ws=[function(A,e,r,i,f,n,t,o,a,c,l,u,s){g(23)},function(A,e,r,i,f,n,t,o,a,c,l,u,s){A|=0,e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0,s|=0;var b,d,k,h,w=0,v=0;if((0|(u|=0))<=0&&br(29619,29569,213,29784),h=a+1+l<<u,!((0|t)<=0)&&(k=u+1|0,d=65535+(b=1<<s)|0,0<(0|n))){s=0;do{for(u=0|sr(s,f),l=A+((0|sr(s,e))<<1)|0,a=i+(u<<1)|0,u=r+(u<<1)|0,w=0;v=(v=0|sr(0|or[u>>1],o))+h+(0|sr(0|or[a>>1],c))>>k,or[l>>1]=(0|v)<0?0:65535&((0|v)<(0|b)?v:d),(0|(w=w+1|0))!=(0|n);)l=l+2|0,a=a+2|0,u=u+2|0;s=s+1|0}while((0|s)!=(0|t))}}];return{__GLOBAL__I_000101:function(){!function(A){A|=0;var e=0;(function(A,e,r){var i,f;e|=0,r|=0,f=ur=(i=ur)+31&-32,ur=ur+16|0,Ti(A|=0),ar[A>>2]=12980,ar[A+32>>2]=e,ar[A+40>>2]=r,r=-1,ar[A+48>>2]=r,tr[A+52>>0]=0,r=0|ar[8+(0|ar[A>>2])>>2],dl(f,A+4|0),ks[63&r](A,f),df(f),ur=i})(52168,A=0|ar[2223],52224),ar[12872]=12552,ar[12874]=12572,ar[12873]=0,Yi(51496,52168),ar[12892]=0,e=-1,ar[12893]=e,function(A,e,r){var i,f;e|=0,r|=0,f=ur=(i=ur)+31&-32,ur=ur+16|0,Mi(A|=0),ar[A>>2]=12916,ar[A+32>>2]=e,ar[A+40>>2]=r,r=-1,ar[A+48>>2]=r,tr[A+52>>0]=0,r=0|ar[8+(0|ar[A>>2])>>2],dl(f,A+4|0),ks[63&r](A,f),df(f),ur=i}(52232,A,52288),ar[12894]=12600,ar[12896]=12620,ar[12895]=0,Yi(51584,52232),ar[12914]=0,A=-1,ar[12915]=A,Af(52296,A=0|ar[2129],52344),ar[12916]=28,ar[12917]=48,Yi(51668,52296),ar[12935]=0,e=-1,ar[12936]=e,ef(52352,A,52400),ar[12937]=12656,ar[12938]=12676,Yi(51752,52352),ar[12956]=0,A=-1,ar[12957]=A,Af(52408,A=0|ar[2255],52456),ar[12958]=28,ar[12959]=48,Yi(51836,52408),ar[12977]=0,e=-1,ar[12978]=e,e=0|ar[51832+(0|ar[(0|ar[12958])-12>>2])+24>>2],ar[13e3]=28,ar[13001]=48,Yi(52004,e),ar[13019]=0,e=-1,ar[13020]=e,ef(52464,A,52512),ar[12979]=12656,ar[12980]=12676,Yi(51920,52464),ar[12998]=0,A=-1,ar[12999]=A,A=0|ar[51916+(0|ar[(0|ar[12979])-12>>2])+24>>2],ar[13021]=12656,ar[13022]=12676,Yi(52088,A),ar[13040]=0,A=-1,ar[13041]=A,ar[51488+(0|ar[(0|ar[12872])-12>>2])+72>>2]=51664,ar[51576+(0|ar[(0|ar[12894])-12>>2])+72>>2]=51748,A=51832+(0|ar[(0|ar[12958])-12>>2])+4|0,ar[A>>2]=8192|ar[A>>2],A=51916+(0|ar[(0|ar[12979])-12>>2])+4|0,ar[A>>2]=8192|ar[A>>2],ar[51832+(0|ar[(0|ar[12958])-12>>2])+72>>2]=51664,ar[51916+(0|ar[(0|ar[12979])-12>>2])+72>>2]=51748}(0)},__GLOBAL__sub_I_bind_cpp:function(){oA(3680,42233),S(3696,42238,1,1,0),AA(3704,42243,1,-128,127),AA(3720,42248,1,-128,127),AA(3712,42260,1,0,255),AA(3728,42274,2,-32768,32767),AA(3736,42280,2,0,65535),AA(3744,42295,4,-2147483648,2147483647),AA(3752,42299,4,0,-1),AA(3760,42312,4,-2147483648,2147483647),AA(3768,42317,4,0,-1),q(3784,42331,4),q(3792,42337,8),iA(1680,42344),iA(1936,42356),fA(1960,4,42389),P(1584,42402),eA(1984,0,42418),eA(1992,0,42448),eA(2e3,1,42485),eA(2008,2,42524),eA(2016,3,42555),eA(2024,4,42595),eA(2032,5,42624),eA(2040,4,42662),eA(2048,5,42692),eA(1992,0,42731),eA(2e3,1,42763),eA(2008,2,42796),eA(2016,3,42829),eA(2024,4,42863),eA(2032,5,42896),eA(2056,6,42930),eA(2064,7,42961),eA(2072,7,42993)},__GLOBAL__sub_I_box_cc:function(){var A,e;ur=(e=ur)+16|0,ar[(A=e)>>2]=0,ar[A+4>>2]=0,Cc(49920,ar[A+8>>2]=0,0,A),ur=(0<=(0|tr[A+11>>0])||Vl(0|ar[A>>2]),e)},__GLOBAL__sub_I_heif_cc:function(){!function(A){A|=0;var e=0;$(22499,1,5456,22516,64,290),$(22519,1,5460,22516,65,2),$(22543,1,5464,22516,66,3),$(22562,2,5468,22580,44,291),$(22584,3,5476,22614,29,51),$(22619,2,5488,22663,21,67),$(22667,3,5496,22614,30,52),$(22700,4,5508,22721,7,10),$(22727,2,5524,22580,45,292),U(1072,1080,1096,0,22516,68,22759,0,22759,0,22753,22761,293),x(1072,1,5532,22516,69,4),H(1072,22764,1072,49920,22516,70,22580,46),A=0|El(4),ar[A>>2]=0,e=0|El(4),ar[e>>2]=0,z(1072,22767,1112,22663,22,0|A,1112,22778,53,0|e),e=0|El(4),ar[e>>2]=4,A=0|El(4),ar[A>>2]=4,z(1072,22783,1120,22663,23,0|e,1120,22778,54,0|A),U(1128,1136,1152,0,22516,71,22759,0,22759,0,22798,22761,294),U(1168,1184,1200,1128,22516,72,22516,73,22516,74,22817,22761,295),x(1168,2,5536,22663,24,75),A=0|El(8),ar[A>>2]=76,ar[A+4>>2]=0,j(1168,22832,2,5544,22663,25,0|A,0),U(1216,1224,1240,0,22516,77,22759,0,22759,0,22838,22761,296),x(1216,1,5552,22516,78,5),A=0|El(8),ar[A>>2]=79,ar[A+4>>2]=0,j(1216,22845,2,5556,22663,26,0|A,0),U(64,1256,1272,0,22516,80,22759,0,22759,0,22856,22761,297),A=0|El(8),ar[A>>2]=81,ar[A+4>>2]=0,j(64,22866,2,5564,22663,27,0|A,0),A=0|El(8),ar[A>>2]=82,ar[A+4>>2]=0,j(64,22879,2,5572,22663,28,0|A,0),A=0|El(8),ar[A>>2]=83,ar[A+4>>2]=0,j(64,22895,2,5572,22663,28,0|A,0),A=0|El(8),ar[A>>2]=47,ar[A+4>>2]=0,j(64,22910,2,5580,22663,29,0|A,0),A=0|El(4),ar[A>>2]=48,j(64,22926,2,5588,22663,30,0|A,0),U(104,1288,1304,64,22516,84,22516,85,22516,86,22931,22761,298),O(104,37953,2,5596,22663,31,49),A=0|El(8),ar[A>>2]=55,ar[A+4>>2]=0,j(104,22935,3,5604,22614,31,0|A,0),A=0|El(4),ar[A>>2]=50,j(104,22926,2,5616,22663,32,0|A,0),rA(1320,104,22931,2,22516,87,22949,6,22663,33,22761,299),U(1328,1336,1352,0,22516,88,22759,0,22759,0,22951,22761,300),x(1328,1,5624,22516,89,7),A=0|El(4),ar[A>>2]=56,j(1328,22960,3,5628,22614,32,0|A,0),A=0|El(8),ar[A>>2]=90,ar[A+4>>2]=0,j(1328,22977,2,5640,22663,34,0|A,0),A=0|El(8),ar[A>>2]=91,ar[A+4>>2]=0,j(1328,22992,2,5648,22663,35,0|A,0),A=0|El(8),ar[A>>2]=51,ar[A+4>>2]=0,j(1328,23013,2,5656,22663,36,0|A,0),A=0|El(4),ar[A>>2]=11,j(1328,23026,4,5664,22721,8,0|A,0),L(1112,23052,4,0),K(1112,23068,0),K(1112,23082,1),K(1112,23114,2),K(1112,23139,3),K(1112,23171,4),K(1112,23202,5),K(1112,23225,6),L(1120,23260,4,0),K(1120,23279,0),K(1120,23305,100),K(1120,23331,101),K(1120,23362,102),K(1120,23388,103),K(1120,23414,104),K(1120,23440,105),K(1120,23466,107),K(1120,23492,108),K(1120,23518,109),K(1120,23544,110),K(1120,23570,111),K(1120,23596,112),K(1120,23622,113),K(1120,23648,114),K(1120,23678,115),K(1120,23733,116),K(1120,23778,117),K(1120,23805,118),K(1120,23837,119),K(1120,23871,1e3),K(1120,23909,2e3),K(1120,23952,2001),K(1120,23988,3e3),K(1120,24020,3001),L(1368,24057,4,0),K(1368,24081,0),K(1368,24108,1),K(1368,24130,2),K(1368,24151,3),L(1376,24173,4,0),K(1376,24185,99),K(1376,24207,0),K(1376,24230,1),K(1376,24246,2),K(1376,24262,3),K(1376,24278,10),L(1384,24308,4,0),K(1384,24324,99),K(1384,24350,0),K(1384,24372,1),K(1384,24392,2),L(1392,24419,4,0),K(1392,24432,0),K(1392,24447,2),K(1392,24463,1),K(1392,24479,3),K(1392,24494,4),K(1392,24509,5),K(1392,24524,6),K(1392,24543,10),function(A){U(1624,1648,1664,0,22516,95,22759,0,22759,0,0|(A|=0),22761,305),x(1624,1,5748,22516,96,9),A=0|El(8),ar[A>>2]=52,ar[A+4>>2]=0,j(1624,24826,3,5752,22778,59,0|A,0),A=0|El(8),ar[A>>2]=60,ar[A+4>>2]=0,j(1624,24836,4,5764,24843,12,0|A,0),A=0|El(8),ar[A>>2]=97,ar[A+4>>2]=0,j(1624,24849,2,5780,22663,39,0|A,0),A=0|El(4),ar[A>>2]=61,j(1624,41865,3,5788,22614,33,0|A,0),A=0|El(4),ar[A>>2]=34,j(1624,24854,4,5800,22721,9,0|A,0)}(24568),function(A){U(1528,1552,1568,0,22516,98,22759,0,22759,0,0|(A|=0),22761,306),x(1528,1,5680,22516,99,10),A=0|El(8),ar[A>>2]=53,ar[A+4>>2]=0,j(1528,24826,3,5684,22778,62,0|A,0),A=0|El(8),ar[A>>2]=63,ar[A+4>>2]=0,j(1528,24836,4,5696,24843,13,0|A,0),A=0|El(8),ar[A>>2]=100,ar[A+4>>2]=0,j(1528,24849,2,5712,22663,40,0|A,0),A=0|El(4),ar[A>>2]=64,j(1528,41865,3,5720,22614,35,0|A,0),A=0|El(4),ar[A>>2]=36,j(1528,24854,4,5732,22721,10,0|A,0)}(24581),U(1400,1408,1424,0,22516,92,22759,0,22759,0,24594,22761,301),U(1440,1448,1464,0,22516,93,22759,0,22759,0,24607,22761,302),U(1480,1488,1504,0,22516,94,22759,0,22759,0,24625,22761,303),nA(1520,24636,22949,8,22761,304),A=0|El(4),ar[A>>2]=0,e=0|El(4),ar[e>>2]=0,tA(1520,24647,1112,22663,37,0|A,1112,22778,57,0|e),e=0|El(4),ar[e>>2]=4,A=0|El(4),ar[A>>2]=4,tA(1520,24652,1120,22663,38,0|e,1120,22778,58,0|A),M(1520)}(0)},__GLOBAL__sub_I_iostream_cpp:function(){},___cxa_can_catch:function(A,e,r){var i,f;return A|=0,e|=0,r|=0,i=ur=(f=ur)+31&-32,ur=ur+16|0,ar[i>>2]=ar[r>>2],(A=0|ns[63&ar[16+(0|ar[A>>2])>>2]](A,e,i))&&(ar[r>>2]=ar[i>>2]),ur=f,1&A|0},___cxa_is_pointer_type:function(A){return 1&(A=(A|=0)?0!=(0|lu(A,3560,3648,0)):0)|0},___errno_location:fa,___getTypeName:function(A){return 0|(e=0|ar[(A|=0)+4>>2],(i=(i=0)|qo(r=1+(0|ta(e|=0))|0))?Eu(0|i,0|e,0|r):i=0,0|i);var e,r,i},___muldi3:wu,___udivdi3:yu,___uremdi3:Zu,_bitshift64Ashr:Cu,_bitshift64Lshr:Wu,_bitshift64Shl:Iu,_emscripten_get_global_libc:function(){return 51368},_emscripten_replace_memory:function(A){return!(16777215&u(A)||u(A)<=16777215||2147483648<u(A))&&(tr=new i(A),or=new f(A),ar=new n(A),cr=new t(A),lr=new o(A),new a(A),Y=new c(A),J=new l(A),r=A,!0)},_free:$o,_i64Add:vu,_i64Subtract:gu,_llvm_bswap_i32:Bu,_malloc:qo,_memcpy:Eu,_memmove:Gu,_memset:Vu,_pthread_cond_broadcast:Xu,_pthread_mutex_lock:_u,_pthread_mutex_unlock:Fu,_sbrk:Nu,dynCall_i:function(A){return 0|rs[15&(A|=0)]()},dynCall_ii:function(A,e){return e|=0,0|is[127&(A|=0)](0|e)},dynCall_iii:function(A,e,r){return e|=0,r|=0,0|fs[63&(A|=0)](0|e,0|r)},dynCall_iiii:function(A,e,r,i){return e|=0,r|=0,i|=0,0|ns[63&(A|=0)](0|e,0|r,0|i)},dynCall_iiiii:function(A,e,r,i,f){return e|=0,r|=0,i|=0,f|=0,0|ts[15&(A|=0)](0|e,0|r,0|i,0|f)},dynCall_iiiiid:function(A,e,r,i,f,n){return e|=0,r|=0,i|=0,f|=0,n=+n,0|os[7&(A|=0)](0|e,0|r,0|i,0|f,+n)},dynCall_iiiiii:function(A,e,r,i,f,n){return e|=0,r|=0,i|=0,f|=0,n|=0,0|as[31&(A|=0)](0|e,0|r,0|i,0|f,0|n)},dynCall_iiiiiid:function(A,e,r,i,f,n,t){return e|=0,r|=0,i|=0,f|=0,n|=0,t=+t,0|cs[3&(A|=0)](0|e,0|r,0|i,0|f,0|n,+t)},dynCall_iiiiiii:function(A,e,r,i,f,n,t){return e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,0|ls[63&(A|=0)](0|e,0|r,0|i,0|f,0|n,0|t)},dynCall_iiiiiiii:function(A,e,r,i,f,n,t,o){return e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,0|us[7&(A|=0)](0|e,0|r,0|i,0|f,0|n,0|t,0|o)},dynCall_iiiiiiiii:function(A,e,r,i,f,n,t,o,a){return e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,0|ss[15&(A|=0)](0|e,0|r,0|i,0|f,0|n,0|t,0|o,0|a)},dynCall_v:function(A){bs[3&(A|=0)]()},dynCall_vi:function(A,e){e|=0,ds[511&(A|=0)](0|e)},dynCall_vii:function(A,e,r){e|=0,r|=0,ks[63&(A|=0)](0|e,0|r)},dynCall_viii:function(A,e,r,i){e|=0,r|=0,i|=0,hs[127&(A|=0)](0|e,0|r,0|i)},dynCall_viiii:function(A,e,r,i,f){e|=0,r|=0,i|=0,f|=0,ws[31&(A|=0)](0|e,0|r,0|i,0|f)},dynCall_viiiii:function(A,e,r,i,f,n){e|=0,r|=0,i|=0,f|=0,n|=0,vs[15&(A|=0)](0|e,0|r,0|i,0|f,0|n)},dynCall_viiiiii:function(A,e,r,i,f,n,t){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,gs[15&(A|=0)](0|e,0|r,0|i,0|f,0|n,0|t)},dynCall_viiiiiii:function(A,e,r,i,f,n,t,o){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,ms[31&(A|=0)](0|e,0|r,0|i,0|f,0|n,0|t,0|o)},dynCall_viiiiiiii:function(A,e,r,i,f,n,t,o,a){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,ps[31&(A|=0)](0|e,0|r,0|i,0|f,0|n,0|t,0|o,0|a)},dynCall_viiiiiiiii:function(A,e,r,i,f,n,t,o,a,c){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,ys[3&(A|=0)](0|e,0|r,0|i,0|f,0|n,0|t,0|o,0|a,0|c)},dynCall_viiiiiiiiii:function(A,e,r,i,f,n,t,o,a,c,l){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0,Zs[7&(A|=0)](0|e,0|r,0|i,0|f,0|n,0|t,0|o,0|a,0|c,0|l)},dynCall_viiiiiiiiiiii:function(A,e,r,i,f,n,t,o,a,c,l,u,s){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0,u|=0,s|=0,Cs[1&(A|=0)](0|e,0|r,0|i,0|f,0|n,0|t,0|o,0|a,0|c,0|l,0|u,0|s)},dynCall_viiiiiiiiiiiii:function(A,e,r,i,f,n,t,o,a,c,l,u,s,b){e|=0,r|=0,i|=0,f|=0,n|=0,t|=0,o|=0,a|=0,c|=0,l|=0,u|=0,s|=0,b|=0,Ws[1&(A|=0)](0|e,0|r,0|i,0|f,0|n,0|t,0|o,0|a,0|c,0|l,0|u,0|s,0|b)},establishStackSpace:function(A,e){ur=A|=0,e|=0},getTempRet0:function(){return 0|D},runPostSets:function(){},setTempRet0:function(A){D=A|=0},setThrew:function(A,e){A|=0,e|=0,k||(k=A,0)},stackAlloc:function(A){var e;return ur=(ur=(e=ur)+(A|=0)|0)+15&-16,0|e},stackRestore:function(A){ur=A|=0},stackSave:function(){return 0|ur}}}(d.asmGlobalArg,d.asmLibraryArg,Z),Zr=d.__GLOBAL__I_000101=yr.__GLOBAL__I_000101,Cr=d.__GLOBAL__sub_I_bind_cpp=yr.__GLOBAL__sub_I_bind_cpp,Wr=d.__GLOBAL__sub_I_box_cc=yr.__GLOBAL__sub_I_box_cc,Ir=d.__GLOBAL__sub_I_heif_cc=yr.__GLOBAL__sub_I_heif_cc,Br=d.__GLOBAL__sub_I_iostream_cpp=yr.__GLOBAL__sub_I_iostream_cpp,Er=(d.___cxa_can_catch=yr.___cxa_can_catch,d.___cxa_is_pointer_type=yr.___cxa_is_pointer_type,d.___errno_location=yr.___errno_location,d.___getTypeName=yr.___getTypeName),Gr=(d.___muldi3=yr.___muldi3,d.___udivdi3=yr.___udivdi3,d.___uremdi3=yr.___uremdi3,d._bitshift64Ashr=yr._bitshift64Ashr,d._bitshift64Lshr=yr._bitshift64Lshr,d._bitshift64Shl=yr._bitshift64Shl,d._emscripten_get_global_libc=yr._emscripten_get_global_libc,d._emscripten_replace_memory=yr._emscripten_replace_memory),Vr=d._free=yr._free,Xr=(d._i64Add=yr._i64Add,d._i64Subtract=yr._i64Subtract,d._llvm_bswap_i32=yr._llvm_bswap_i32,d._malloc=yr._malloc);d._memcpy=yr._memcpy,d._memmove=yr._memmove,d._memset=yr._memset,d._pthread_cond_broadcast=yr._pthread_cond_broadcast,d._pthread_mutex_lock=yr._pthread_mutex_lock,d._pthread_mutex_unlock=yr._pthread_mutex_unlock,d._sbrk=yr._sbrk,d.establishStackSpace=yr.establishStackSpace,d.getTempRet0=yr.getTempRet0,d.runPostSets=yr.runPostSets,d.setTempRet0=yr.setTempRet0,d.setThrew=yr.setThrew,d.stackAlloc=yr.stackAlloc,d.stackRestore=yr.stackRestore,d.stackSave=yr.stackSave,d.dynCall_i=yr.dynCall_i,d.dynCall_ii=yr.dynCall_ii,d.dynCall_iii=yr.dynCall_iii,d.dynCall_iiii=yr.dynCall_iiii,d.dynCall_iiiii=yr.dynCall_iiiii,d.dynCall_iiiiid=yr.dynCall_iiiiid,d.dynCall_iiiiii=yr.dynCall_iiiiii,d.dynCall_iiiiiid=yr.dynCall_iiiiiid,d.dynCall_iiiiiii=yr.dynCall_iiiiiii,d.dynCall_iiiiiiii=yr.dynCall_iiiiiiii,d.dynCall_iiiiiiiii=yr.dynCall_iiiiiiiii,d.dynCall_v=yr.dynCall_v,d.dynCall_vi=yr.dynCall_vi,d.dynCall_vii=yr.dynCall_vii,d.dynCall_viii=yr.dynCall_viii,d.dynCall_viiii=yr.dynCall_viiii,d.dynCall_viiiii=yr.dynCall_viiiii,d.dynCall_viiiiii=yr.dynCall_viiiiii,d.dynCall_viiiiiii=yr.dynCall_viiiiiii,d.dynCall_viiiiiiii=yr.dynCall_viiiiiiii,d.dynCall_viiiiiiiii=yr.dynCall_viiiiiiiii,d.dynCall_viiiiiiiiii=yr.dynCall_viiiiiiiiii,d.dynCall_viiiiiiiiiiii=yr.dynCall_viiiiiiiiiiii,d.dynCall_viiiiiiiiiiiii=yr.dynCall_viiiiiiiiiiiii;if(k.stackAlloc=d.stackAlloc,k.stackSave=d.stackSave,k.stackRestore=d.stackRestore,k.establishStackSpace=d.establishStackSpace,k.setTempRet0=d.setTempRet0,k.getTempRet0=d.getTempRet0,d.asm=yr,sA)if("function"==typeof d.locateFile?sA=d.locateFile(sA):d.memoryInitializerPrefixURL&&(sA=d.memoryInitializerPrefixURL+sA),o||r){var _r=d.readBinary(sA);W.set(_r,k.GLOBAL_BASE)}else{lA();var Fr=function(A){A.byteLength&&(A=new Uint8Array(A)),W.set(A,k.GLOBAL_BASE),d.memoryInitializerRequest&&delete d.memoryInitializerRequest.response,uA()};function Nr(){d.readAsync(sA,Fr,function(){throw"could not load memory initializer "+sA})}var Rr=mr(sA);if(Rr)Fr(Rr.buffer);else if(d.memoryInitializerRequest){function Yr(){var A=d.memoryInitializerRequest,e=A.response;if(200!==A.status&&0!==A.status){var r=mr(d.memoryInitializerRequestURL);if(!r)return console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: "+A.status+", retrying "+sA),void Nr();e=r.buffer}Fr(e)}d.memoryInitializerRequest.response?setTimeout(Yr,0):d.memoryInitializerRequest.addEventListener("load",Yr)}else Nr()}function Jr(A){this.name="ExitStatus",this.message="Program terminated with exit("+A+")",this.status=A}(Jr.prototype=new Error).constructor=Jr;var Dr=null;function Qr(A){function e(){d.calledRun||(d.calledRun=!0,n||(AA||(AA=!0,z(L)),z(K),d.onRuntimeInitialized&&d.onRuntimeInitialized(),function(){if(d.postRun)for("function"==typeof d.postRun&&(d.postRun=[d.postRun]);d.postRun.length;)A=d.postRun.shift(),$.unshift(A);var A;z($)}()))}A=A||d.arguments,null===Dr&&(Dr=Date.now()),0<oA||(function(){if(d.preRun)for("function"==typeof d.preRun&&(d.preRun=[d.preRun]);d.preRun.length;)A=d.preRun.shift(),P.unshift(A);var A;z(P)}(),0<oA||d.calledRun||(d.setStatus?(d.setStatus("Running..."),setTimeout(function(){setTimeout(function(){d.setStatus("")},1),e()},1)):e()))}cA=function A(){d.calledRun||Qr(),d.calledRun||(cA=A)},d.run=Qr,d.exit=function(A,e){e&&d.noExitRuntime&&0===A||(d.noExitRuntime||(n=!0,R=pr,z(q),d.onExit&&d.onExit(A)),o&&process.exit(A),d.quit(A,new Jr(A)))};var Tr=[];function Mr(e){d.onAbort&&d.onAbort(e),e=void 0!==e?(d.print(e),d.printErr(e),JSON.stringify(e)):"",n=!0,0;var r="abort("+e+") at "+y()+"\\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.";throw Tr&&Tr.forEach(function(A){r=A(r,e)}),r}if(d.abort=Mr,d.preInit)for("function"==typeof d.preInit&&(d.preInit=[d.preInit]);0<d.preInit.length;)d.preInit.pop()();d.noExitRuntime=!0,Qr();function Sr(A){this.handle=A,this.img=null}Sr.prototype.free=function(){this.handle&&(xr.heif_image_handle_release(this.handle),this.handle=null)},Sr.prototype._ensureImage=function(){if(!this.img){var A=xr.heif_js_decode_image(this.handle,xr.heif_colorspace_YCbCr,xr.heif_chroma_420);if(!A||A.code)throw this.handle,A;this.data=new Uint8Array(function(A){for(var e=new ArrayBuffer(A.length),r=new Uint8Array(e),i=0,f=A.length;i<f;i++)r[i]=A.charCodeAt(i);return e}(A.data)),delete A.data,this.img=A}},Sr.prototype.get_width=function(){return this._ensureImage(),this.img.width},Sr.prototype.get_height=function(){return this._ensureImage(),this.img.height},Sr.prototype.is_primary=function(){return this._ensureImage(),!!this.img.is_primary},Sr.prototype.display=function(m,p){var y=this.get_width(),Z=this.get_height();setTimeout(function(){if(this._ensureImage(),this.img){for(var A,e,r,i,f,n=0,t=0,o=y>>1,a=o*Z,c=0,l=0,u=0,s=this.data,b=this.data.subarray(y*Z,y*Z+y*Z/4),d=this.data.subarray(y*Z+y*Z/4,y*Z+y*Z/2),k=y,h=y/2,w=y/2,v=m.data,g=0;g<a;g++)f=g<<1,A=1.164*(s[c+(i=n<<1)]-16),e=b[l+n]-128,r=d[u+n]-128,v[f<<2]=A+1.596*r,v[1+(f<<2)]=A-.813*r-.391*e,v[2+(f<<2)]=A+2.018*e,v[3+(f<<2)]=255,A=1.164*(s[c+i+1]-16),v[1+f<<2]=A+1.596*r,v[1+(1+f<<2)]=A-.813*r-.391*e,v[2+(1+f<<2)]=A+2.018*e,v[3+(1+f<<2)]=255,++n===o&&(n=0,c+=k,l=(++t>>1)*h,u=(t>>1)*w);p(m)}else p(null)}.bind(this),0)};function Ur(){this.decoder=null}Ur.prototype.decode=function(A){if(this.decoder&&xr.heif_context_free(this.decoder),this.decoder=xr.heif_context_alloc(),!this.decoder)return console.log("Could not create HEIF context"),[];var e=xr.heif_context_read_from_memory(this.decoder,A);if(e.code!==xr.heif_error_Ok)return console.log("Could not parse HEIF file",e),[];var r=xr.heif_context_get_number_of_top_level_images(this.decoder);if(!r)return console.log("No images found"),[];for(var i=[],f=0;f<r;f++){var n=xr.heif_js_context_get_image_handle(this.decoder,f);n&&!n.code?i.push(new Sr(n)):console.log("Could not get image data for id",f,n)}return i};var Or,Hr,xr={HeifDecoder:Ur,fourcc:function(A){return A.charCodeAt(0)<<24|A.charCodeAt(1)<<16|A.charCodeAt(2)<<8|A.charCodeAt(3)},BitstreamRange:d.BitstreamRange,Box:d.Box,Error:d.Error,HeifFile:d.HeifFile},jr={heif_error_code:!0,heif_suberror_code:!0,heif_compression_format:!0,heif_chroma:!0,heif_colorspace:!0,heif_channel:!0};for(Hr in jr)if(jr.hasOwnProperty(Hr))for(Or in d[Hr])d[Hr].hasOwnProperty(Or)&&"values"!==Or&&(xr[Or]=d[Hr][Or]);for(Or in d)jr.hasOwnProperty(Or)||0!==Or.indexOf("heif_")||(xr[Or]=d[Or]);function JA(A,e){return A=YA(A=A||"function_"+new Date),new Function("body","return function "+A+\'() {\\n    "use strict";    return body.apply(this, arguments);\\n};\\n\')(e)}delete this.Module;"undefined"!=typeof window?window.libheif=xr:"undefined"!=typeof global?global.libheif=xr:self.libheif=xr,"function"==typeof define&&define.amd&&define([],function(){return xr})}).call(this);\n;\nfunction processSingleImage(image) {\n    return new Promise((resolve, reject) => {\n        const w = image.get_width();\n        const h = image.get_height();\n        const whiteImage = new ImageData(w, h);\n        for (let i = 0; i < w * h; i++) {\n            whiteImage.data[i * 4 + 3] = 255;\n        }\n        image.display(whiteImage, (imageData) => {\n            if (!imageData) {\n                return reject("ERR_LIBHEIF Error while processing single image and generating image data, could not ensure image");\n            }\n            resolve(imageData);\n        });\n    });\n}\nonmessage = (message) => {\n    const id = message.data.id;\n    try {\n        const decoder = new libheif.HeifDecoder();\n        let imagesArr = decoder.decode(message.data.buffer);\n        if (!imagesArr || !imagesArr.length) {\n            throw "ERR_LIBHEIF format not supported";\n        }\n        imagesArr = imagesArr.filter((x) => {\n            let valid = true;\n            try {\n                /*\n                sometimes the heic container is valid\n                yet the images themselves are corrupt\n                */\n                x.get_height();\n            }\n            catch (e) {\n                valid = false;\n            }\n            return valid;\n        });\n        if (!imagesArr.length) {\n            throw "ERR_LIBHEIF Heic doesn\'t contain valid images";\n        }\n        Promise.all(imagesArr.map((image) => processSingleImage(image)))\n            .then((imageDataArr) => {\n            postMessage({ id, imageDataArr, error: "" });\n        })\n            .catch((e) => {\n            postMessage({\n                id,\n                imageDataArr: [],\n                error: e && e.toString ? e.toString() : e,\n            });\n        });\n    }\n    catch (e) {\n        postMessage({\n            id,\n            imageDataArr: [],\n            error: e && e.toString ? e.toString() : e,\n        });\n    }\n};\n\n'],{type:"application/javascript"});window.__heic2any__worker=new Worker(URL.createObjectURL(d));var l=["image/png","image/jpeg","image/gif"],r_blobToDataURL=function(m){return new Promise(function(v,C){var n=new FileReader;n.onerror=function(){C("ERR_DOM Error on converting blob to data URL")},n.onload=function(i){v(n.result)},n.readAsDataURL(m)})},r_dataURItoBlob=function(m){try{for(var v=atob(m.split(",")[1]),C=m.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(v.length),i=new Uint8Array(n),P=0;P<v.length;P++)i[P]=v.charCodeAt(P);return new Blob([n],{type:C})}catch(q){return q.toString?q.toString():q}},r_imageDataToBlob=function(m){var v=m.imageData,C=m.toType;void 0===C&&(C="image/png");var n=m.quality;return void 0===n&&(n=.92),(n>1||n<0)&&(n=.92),-1===l.indexOf(C)&&(C="image/png"),new Promise(function(i,P){var I=null;try{I=document.createElement("canvas")}catch{}if(!I)return P("ERR_CANVAS Error on converting imagedata to blob: Could not create canvas element");I.width=v.width,I.height=v.height;var q=I.getContext("2d");if(!q)return P("ERR_CANVAS Error on converting imagedata to blob: Could not get canvas context");q.putImageData(v,0,0),I.toBlob(function(D){return D?i(D):P("ERR_CANVAS Error on converting imagedata to blob: Could not get blob from canvas")},C,n)})},r_imagesToGif=function(m){var v=m.images,C=m.interval,n=m.gifHeight,i=m.gifWidth;return new Promise(function(P,I){gifshot.createGIF({images:v,interval:C,gifHeight:n,gifWidth:i},function(q){return q.error&&I("ERR_GIF "+q.errorCode+" "+q.errorMessage),P(q.image)})})},r_otherImageType=function(m){for(var v=new Uint8Array(m).subarray(0,4),C="",n=0;n<v.length;n++)C+=v[n].toString(16);switch(C){case"89504e47":return"image/png";case"47494638":return"image/gif";case"ffd8ffe0":case"ffd8ffe1":case"ffd8ffe2":case"ffd8ffe3":case"ffd8ffe8":return"image/jpeg";default:return!1}},r_error=function(m){var v=0;m?"string"!=typeof m&&(m=m.toString?m.toString():JSON.stringify(m)):m="ERR_UNKNOWN";for(var C=["ERR_USER","ERR_LIBHEIF","ERR_GIF","ERR_DOM","ERR_CANVAS"],n=0;n<C.length;n++)0===m.indexOf(C[n])&&(v=n+1);return{code:v,message:m}};return function E(m){var v=m.blob,C=m.toType;void 0===C&&(C="image/png");var n=m.quality;void 0===n&&(n=.92);var i=m.gifInterval;void 0===i&&(i=.4);var P=m.multiple;return void 0===P&&(P=void 0),new Promise(function(I,q){v instanceof Blob||r_error("ERR_USER library only accepts BLOBs as input"),"boolean"!=typeof P&&r_error('ERR_USER "multiple" parameter should be of type "boolean"'),"number"!=typeof n&&r_error('ERR_USER "quality" parameter should be of type "number"'),"number"!=typeof i&&r_error('ERR_USER "gifInterval" parameter should be of type "number"');var D=new FileReader;D.onload=function(M){var T=0,F=0,le=M.target.result,V=r_otherImageType(le);if(V)return q(r_error("ERR_USER Image is already browser readable: "+V));(function c(m){return new Promise(function(v,C){var n=(Math.random()*(new Date).getTime()).toString();window.__heic2any__worker.postMessage({id:n,buffer:m}),window.__heic2any__worker.addEventListener("message",function(P){if(P.data.id===n)return P.data.error?C(P.data.error):v(P.data.imageDataArr)})})})(le).then(function(de){return T=de[0].width,F=de[0].height,Promise.all(de.map(function(ye){return r_imageDataToBlob({imageData:ye,toType:C,quality:n})}))}).then(function(de){return"image/gif"===C?Promise.all(de.map(function(ye){return r_blobToDataURL(ye)})):P?(I(de),[""]):(I(de[0]),[""])}).then(function(de){return"image/gif"===C&&de?r_imagesToGif({images:de,interval:i,gifWidth:T,gifHeight:F}):""}).then(function(de){if("image/gif"===C&&de){var ye=r_dataURItoBlob(de);"string"==typeof ye?q(r_error(ye)):I(ye)}}).catch(function(de){q(r_error(de))})},D.readAsArrayBuffer(v)})}})(),St.exports.default=d()},90984:(St,be)=>{be.read=function(s,t,e,d,l){var r,c,E=8*l-d-1,m=(1<<E)-1,v=m>>1,C=-7,n=e?l-1:0,i=e?-1:1,P=s[t+n];for(n+=i,r=P&(1<<-C)-1,P>>=-C,C+=E;C>0;r=256*r+s[t+n],n+=i,C-=8);for(c=r&(1<<-C)-1,r>>=-C,C+=d;C>0;c=256*c+s[t+n],n+=i,C-=8);if(0===r)r=1-v;else{if(r===m)return c?NaN:1/0*(P?-1:1);c+=Math.pow(2,d),r-=v}return(P?-1:1)*c*Math.pow(2,r-d)},be.write=function(s,t,e,d,l,r){var c,E,m,v=8*r-l-1,C=(1<<v)-1,n=C>>1,i=23===l?Math.pow(2,-24)-Math.pow(2,-77):0,P=d?0:r-1,I=d?1:-1,q=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(E=isNaN(t)?1:0,c=C):(c=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-c))<1&&(c--,m*=2),(t+=c+n>=1?i/m:i*Math.pow(2,1-n))*m>=2&&(c++,m/=2),c+n>=C?(E=0,c=C):c+n>=1?(E=(t*m-1)*Math.pow(2,l),c+=n):(E=t*Math.pow(2,n-1)*Math.pow(2,l),c=0));l>=8;s[e+P]=255&E,P+=I,E/=256,l-=8);for(c=c<<l|E,v+=l;v>0;s[e+P]=255&c,P+=I,c/=256,v-=8);s[e+P-I]|=128*q}},35221:function(St,be,s){!function(t){"use strict";t.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(d){return/^nm$/i.test(d)},meridiem:function(d,l,r){return d<12?r?"vm":"VM":r?"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(d){return d+(1===d||8===d||d>=20?"ste":"de")},week:{dow:1,doy:4}})}(s(73270))},90869:function(St,be,s){!function(t){"use strict";var e=function(E){return 0===E?0:1===E?1:2===E?2:E%100>=3&&E%100<=10?3:E%100>=11?4:5},d={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"]},l=function(E){return function(m,v,C,n){var i=e(m),P=d[E][e(m)];return 2===i&&(P=P[v?0:1]),P.replace(/%d/i,m)}},r=["\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"];t.defineLocale("ar-dz",{months:r,monthsShort:r,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(E){return"\u0645"===E},meridiem:function(E,m,v){return E<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:l("s"),ss:l("s"),m:l("m"),mm:l("m"),h:l("h"),hh:l("h"),d:l("d"),dd:l("d"),M:l("M"),MM:l("M"),y:l("y"),yy:l("y")},postformat:function(E){return E.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(s(73270))},45916:function(St,be,s){!function(t){"use strict";t.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(73270))},60994:function(St,be,s){!function(t){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},d=function(m){return 0===m?0:1===m?1:2===m?2:m%100>=3&&m%100<=10?3:m%100>=11?4:5},l={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"]},r=function(m){return function(v,C,n,i){var P=d(v),I=l[m][d(v)];return 2===P&&(I=I[C?0:1]),I.replace(/%d/i,v)}},c=["\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"];t.defineLocale("ar-ly",{months:c,monthsShort:c,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(m){return"\u0645"===m},meridiem:function(m,v,C){return m<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:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(m){return m.replace(/\u060c/g,",")},postformat:function(m){return m.replace(/\d/g,function(v){return e[v]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(s(73270))},52787:function(St,be,s){!function(t){"use strict";t.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\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:"\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(73270))},85527:function(St,be,s){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},d={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};t.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(r){return"\u0645"===r},meridiem:function(r,c,E){return r<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(r){return r.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(c){return d[c]}).replace(/\u060c/g,",")},postformat:function(r){return r.replace(/\d/g,function(c){return e[c]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(s(73270))},71583:function(St,be,s){!function(t){"use strict";t.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(73270))},3712:function(St,be,s){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},d={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},l=function(v){return 0===v?0:1===v?1:2===v?2:v%100>=3&&v%100<=10?3:v%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"]},c=function(v){return function(C,n,i,P){var I=l(C),q=r[v][l(C)];return 2===I&&(q=q[n?0:1]),q.replace(/%d/i,C)}},E=["\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"];t.defineLocale("ar",{months:E,monthsShort:E,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(v){return"\u0645"===v},meridiem:function(v,C,n){return v<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:c("s"),ss:c("s"),m:c("m"),mm:c("m"),h:c("h"),hh:c("h"),d:c("d"),dd:c("d"),M:c("M"),MM:c("M"),y:c("y"),yy:c("y")},preparse:function(v){return v.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(C){return d[C]}).replace(/\u060c/g,",")},postformat:function(v){return v.replace(/\d/g,function(C){return e[C]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(s(73270))},69889:function(St,be,s){!function(t){"use strict";var e={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"};t.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:"bir ne\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(l){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(l)},meridiem:function(l,r,c){return l<4?"gec\u0259":l<12?"s\u0259h\u0259r":l<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(l){if(0===l)return l+"-\u0131nc\u0131";var r=l%10;return l+(e[r]||e[l%100-r]||e[l>=100?100:null])},week:{dow:1,doy:7}})}(s(73270))},44779:function(St,be,s){!function(t){"use strict";function d(r,c,E){return"m"===E?c?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===E?c?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":r+" "+function e(r,c){var E=r.split("_");return c%10==1&&c%100!=11?E[0]:c%10>=2&&c%10<=4&&(c%100<10||c%100>=20)?E[1]:E[2]}({ss:c?"\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:c?"\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:c?"\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"}[E],+r)}t.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:d,mm:d,h:d,hh:d,d:"\u0434\u0437\u0435\u043d\u044c",dd:d,M:"\u043c\u0435\u0441\u044f\u0446",MM:d,y:"\u0433\u043e\u0434",yy:d},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(r){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(r)},meridiem:function(r,c,E){return r<4?"\u043d\u043e\u0447\u044b":r<12?"\u0440\u0430\u043d\u0456\u0446\u044b":r<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(r,c){switch(c){case"M":case"d":case"DDD":case"w":case"W":return r%10!=2&&r%10!=3||r%100==12||r%100==13?r+"-\u044b":r+"-\u0456";case"D":return r+"-\u0433\u0430";default:return r}},week:{dow:1,doy:7}})}(s(73270))},61498:function(St,be,s){!function(t){"use strict";t.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\u0443_\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"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\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\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\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(d){var l=d%10,r=d%100;return 0===d?d+"-\u0435\u0432":0===r?d+"-\u0435\u043d":r>10&&r<20?d+"-\u0442\u0438":1===l?d+"-\u0432\u0438":2===l?d+"-\u0440\u0438":7===l||8===l?d+"-\u043c\u0438":d+"-\u0442\u0438"},week:{dow:1,doy:7}})}(s(73270))},89740:function(St,be,s){!function(t){"use strict";t.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(73270))},80410:function(St,be,s){!function(t){"use strict";var e={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},d={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};t.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\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\u09cd\u09b0\u09c1_\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_\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\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\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(r){return r.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(c){return d[c]})},postformat:function(r){return r.replace(/\d/g,function(c){return e[c]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(r,c){return 12===r&&(r=0),"\u09b0\u09be\u09a4"===c?r<4?r:r+12:"\u09ad\u09cb\u09b0"===c||"\u09b8\u0995\u09be\u09b2"===c?r:"\u09a6\u09c1\u09aa\u09c1\u09b0"===c?r>=3?r:r+12:"\u09ac\u09bf\u0995\u09be\u09b2"===c||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===c?r+12:void 0},meridiem:function(r,c,E){return r<4?"\u09b0\u09be\u09a4":r<6?"\u09ad\u09cb\u09b0":r<12?"\u09b8\u0995\u09be\u09b2":r<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":r<18?"\u09ac\u09bf\u0995\u09be\u09b2":r<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(s(73270))},76931:function(St,be,s){!function(t){"use strict";var e={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},d={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};t.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\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\u09cd\u09b0\u09c1_\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_\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\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\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(r){return r.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(c){return d[c]})},postformat:function(r){return r.replace(/\d/g,function(c){return e[c]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(r,c){return 12===r&&(r=0),"\u09b0\u09be\u09a4"===c&&r>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===c&&r<5||"\u09ac\u09bf\u0995\u09be\u09b2"===c?r+12:r},meridiem:function(r,c,E){return r<4?"\u09b0\u09be\u09a4":r<10?"\u09b8\u0995\u09be\u09b2":r<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":r<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(s(73270))},75513:function(St,be,s){!function(t){"use strict";var e={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},d={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};t.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\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,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_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".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(r){return r.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(c){return d[c]})},postformat:function(r){return r.replace(/\d/g,function(c){return e[c]})},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(r,c){return 12===r&&(r=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===c&&r>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===c&&r<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===c?r+12:r},meridiem:function(r,c,E){return r<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":r<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":r<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":r<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(s(73270))},7759:function(St,be,s){!function(t){"use strict";function e(q,D,M){return q+" "+function r(q,D){return 2===D?function c(q){var D={m:"v",b:"v",d:"z"};return void 0===D[q.charAt(0)]?q:D[q.charAt(0)]+q.substring(1)}(q):q}({mm:"munutenn",MM:"miz",dd:"devezh"}[M],q)}function l(q){return q>9?l(q%10):q}var E=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],m=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,P=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];t.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:P,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:P,monthsRegex:m,monthsShortRegex:m,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:E,longMonthsParse:E,shortMonthsParse:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:function d(q){switch(l(q)){case 1:case 3:case 4:case 5:case 9:return q+" bloaz";default:return q+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(q){return q+(1===q?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(q){return"g.m."===q},meridiem:function(q,D,M){return q<12?"a.m.":"g.m."}})}(s(73270))},64145:function(St,be,s){!function(t){"use strict";function e(l,r,c){var E=l+" ";switch(c){case"ss":return E+(1===l?"sekunda":2===l||3===l||4===l?"sekunde":"sekundi");case"m":return r?"jedna minuta":"jedne minute";case"mm":return E+(1===l?"minuta":2===l||3===l||4===l?"minute":"minuta");case"h":return r?"jedan sat":"jednog sata";case"hh":return E+(1===l?"sat":2===l||3===l||4===l?"sata":"sati");case"dd":return E+(1===l?"dan":"dana");case"MM":return E+(1===l?"mjesec":2===l||3===l||4===l?"mjeseca":"mjeseci");case"yy":return E+(1===l?"godina":2===l||3===l||4===l?"godine":"godina")}}t.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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(s(73270))},32656:function(St,be,s){!function(t){"use strict";t.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(d,l){var r=1===d?"r":2===d?"n":3===d?"r":4===d?"t":"\xe8";return("w"===l||"W"===l)&&(r="a"),d+r},week:{dow:1,doy:4}})}(s(73270))},47899:function(St,be,s){!function(t){"use strict";var e={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},d="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),l=[/^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],r=/^(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 c(v){return v>1&&v<5&&1!=~~(v/10)}function E(v,C,n,i){var P=v+" ";switch(n){case"s":return C||i?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return C||i?P+(c(v)?"sekundy":"sekund"):P+"sekundami";case"m":return C?"minuta":i?"minutu":"minutou";case"mm":return C||i?P+(c(v)?"minuty":"minut"):P+"minutami";case"h":return C?"hodina":i?"hodinu":"hodinou";case"hh":return C||i?P+(c(v)?"hodiny":"hodin"):P+"hodinami";case"d":return C||i?"den":"dnem";case"dd":return C||i?P+(c(v)?"dny":"dn\xed"):P+"dny";case"M":return C||i?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return C||i?P+(c(v)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):P+"m\u011bs\xedci";case"y":return C||i?"rok":"rokem";case"yy":return C||i?P+(c(v)?"roky":"let"):P+"lety"}}t.defineLocale("cs",{months:e,monthsShort:d,monthsRegex:r,monthsShortRegex:r,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:l,longMonthsParse:l,shortMonthsParse:l,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:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(s(73270))},76508:function(St,be,s){!function(t){"use strict";t.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(d){return d+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(d)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(d)?"\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(73270))},58902:function(St,be,s){!function(t){"use strict";t.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(d){var r="";return d>20?r=40===d||50===d||60===d||80===d||100===d?"fed":"ain":d>0&&(r=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][d]),d+r},week:{dow:1,doy:4}})}(s(73270))},15933:function(St,be,s){!function(t){"use strict";t.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(73270))},11649:function(St,be,s){!function(t){"use strict";function e(l,r,c,E){var m={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[l+" Tage",l+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[l+" Monate",l+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[l+" Jahre",l+" Jahren"]};return r?m[c][0]:m[c][1]}t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(s(73270))},77050:function(St,be,s){!function(t){"use strict";function e(l,r,c,E){var m={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[l+" Tage",l+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[l+" Monate",l+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[l+" Jahre",l+" Jahren"]};return r?m[c][0]:m[c][1]}t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(s(73270))},5365:function(St,be,s){!function(t){"use strict";function e(l,r,c,E){var m={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[l+" Tage",l+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[l+" Monate",l+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[l+" Jahre",l+" Jahren"]};return r?m[c][0]:m[c][1]}t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(s(73270))},80526:function(St,be,s){!function(t){"use strict";var e=["\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"],d=["\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"];t.defineLocale("dv",{months:e,monthsShort:e,weekdays:d,weekdaysShort:d,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(r){return"\u0789\u078a"===r},meridiem:function(r,c,E){return r<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(r){return r.replace(/\u060c/g,",")},postformat:function(r){return r.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(s(73270))},69358:function(St,be,s){!function(t){"use strict";t.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(l,r){return l?"string"==typeof r&&/D/.test(r.substring(0,r.indexOf("MMMM")))?this._monthsGenitiveEl[l.month()]:this._monthsNominativeEl[l.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(l,r,c){return l>11?c?"\u03bc\u03bc":"\u039c\u039c":c?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(l){return"\u03bc"===(l+"").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(l,r){var c=this._calendarEl[l],E=r&&r.hours();return function e(l){return typeof Function<"u"&&l instanceof Function||"[object Function]"===Object.prototype.toString.call(l)}(c)&&(c=c.apply(r)),c.replace("{}",E%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(73270))},68502:function(St,be,s){!function(t){"use strict";t.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(d){var l=d%10;return d+(1==~~(d%100/10)?"th":1===l?"st":2===l?"nd":3===l?"rd":"th")},week:{dow:0,doy:4}})}(s(73270))},15969:function(St,be,s){!function(t){"use strict";t.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(d){var l=d%10;return d+(1==~~(d%100/10)?"th":1===l?"st":2===l?"nd":3===l?"rd":"th")}})}(s(73270))},69395:function(St,be,s){!function(t){"use strict";t.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(d){var l=d%10;return d+(1==~~(d%100/10)?"th":1===l?"st":2===l?"nd":3===l?"rd":"th")},week:{dow:1,doy:4}})}(s(73270))},94738:function(St,be,s){!function(t){"use strict";t.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(d){var l=d%10;return d+(1==~~(d%100/10)?"th":1===l?"st":2===l?"nd":3===l?"rd":"th")},week:{dow:1,doy:4}})}(s(73270))},46921:function(St,be,s){!function(t){"use strict";t.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",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(d){var l=d%10;return d+(1==~~(d%100/10)?"th":1===l?"st":2===l?"nd":3===l?"rd":"th")}})}(s(73270))},89244:function(St,be,s){!function(t){"use strict";t.defineLocale("en-in",{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(d){var l=d%10;return d+(1==~~(d%100/10)?"th":1===l?"st":2===l?"nd":3===l?"rd":"th")},week:{dow:0,doy:6}})}(s(73270))},48225:function(St,be,s){!function(t){"use strict";t.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(d){var l=d%10;return d+(1==~~(d%100/10)?"th":1===l?"st":2===l?"nd":3===l?"rd":"th")},week:{dow:1,doy:4}})}(s(73270))},85924:function(St,be,s){!function(t){"use strict";t.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(d){var l=d%10;return d+(1==~~(d%100/10)?"th":1===l?"st":2===l?"nd":3===l?"rd":"th")},week:{dow:1,doy:4}})}(s(73270))},51393:function(St,be,s){!function(t){"use strict";t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_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:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(d){return"p"===d.charAt(0).toLowerCase()},meridiem:function(d,l,r){return d>11?r?"p.t.m.":"P.T.M.":r?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(s(73270))},39494:function(St,be,s){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),d="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),l=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(E,m){return E?/-MMM-/.test(m)?d[E.month()]:e[E.month()]:e},monthsRegex:r,monthsShortRegex:r,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:l,longMonthsParse:l,shortMonthsParse:l,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",w:"una semana",ww:"%d semanas",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(73270))},54362:function(St,be,s){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),d="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),l=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;t.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(E,m){return E?/-MMM-/.test(m)?d[E.month()]:e[E.month()]:e},monthsRegex:r,monthsShortRegex:r,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:l,longMonthsParse:l,shortMonthsParse:l,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",w:"una semana",ww:"%d semanas",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:4},invalidDate:"Fecha inv\xe1lida"})}(s(73270))},42647:function(St,be,s){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),d="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),l=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(E,m){return E?/-MMM-/.test(m)?d[E.month()]:e[E.month()]:e},monthsRegex:r,monthsShortRegex:r,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:l,longMonthsParse:l,shortMonthsParse:l,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",w:"una semana",ww:"%d semanas",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(73270))},1801:function(St,be,s){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),d="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),l=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(E,m){return E?/-MMM-/.test(m)?d[E.month()]:e[E.month()]:e},monthsRegex:r,monthsShortRegex:r,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:l,longMonthsParse:l,shortMonthsParse:l,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",w:"una semana",ww:"%d semanas",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},invalidDate:"Fecha inv\xe1lida"})}(s(73270))},83779:function(St,be,s){!function(t){"use strict";function e(l,r,c,E){var m={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[l+"sekundi",l+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[l+" minuti",l+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[l+" tunni",l+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[l+" kuu",l+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[l+" aasta",l+" aastat"]};return r?m[c][2]?m[c][2]:m[c][1]:E?m[c][0]:m[c][1]}t.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:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d p\xe4eva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(s(73270))},60922:function(St,be,s){!function(t){"use strict";t.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(73270))},51944:function(St,be,s){!function(t){"use strict";var e={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},d={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};t.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(r){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(r)},meridiem:function(r,c,E){return r<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:"%d \u062b\u0627\u0646\u06cc\u0647",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(r){return r.replace(/[\u06f0-\u06f9]/g,function(c){return d[c]}).replace(/\u060c/g,",")},postformat:function(r){return r.replace(/\d/g,function(c){return e[c]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(s(73270))},96294:function(St,be,s){!function(t){"use strict";var e="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),d=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",e[7],e[8],e[9]];function l(E,m,v,C){var n="";switch(v){case"s":return C?"muutaman sekunnin":"muutama sekunti";case"ss":n=C?"sekunnin":"sekuntia";break;case"m":return C?"minuutin":"minuutti";case"mm":n=C?"minuutin":"minuuttia";break;case"h":return C?"tunnin":"tunti";case"hh":n=C?"tunnin":"tuntia";break;case"d":return C?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":n=C?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return C?"kuukauden":"kuukausi";case"MM":n=C?"kuukauden":"kuukautta";break;case"y":return C?"vuoden":"vuosi";case"yy":n=C?"vuoden":"vuotta"}return function r(E,m){return E<10?m?d[E]:e[E]:E}(E,C)+" "+n}t.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:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(s(73270))},99909:function(St,be,s){!function(t){"use strict";t.defineLocale("fil",{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(d){return d},week:{dow:1,doy:4}})}(s(73270))},36511:function(St,be,s){!function(t){"use strict";t.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(73270))},78488:function(St,be,s){!function(t){"use strict";t.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(d,l){switch(l){default:case"M":case"Q":case"D":case"DDD":case"d":return d+(1===d?"er":"e");case"w":case"W":return d+(1===d?"re":"e")}}})}(s(73270))},23924:function(St,be,s){!function(t){"use strict";t.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(d,l){switch(l){default:case"M":case"Q":case"D":case"DDD":case"d":return d+(1===d?"er":"e");case"w":case"W":return d+(1===d?"re":"e")}},week:{dow:1,doy:4}})}(s(73270))},95346:function(St,be,s){!function(t){"use strict";var l=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,r=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];t.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("_"),monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,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",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(E,m){switch(m){case"D":return E+(1===E?"er":"");default:case"M":case"Q":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}},week:{dow:1,doy:4}})}(s(73270))},97233:function(St,be,s){!function(t){"use strict";var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),d="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(r,c){return r?/-MMM-/.test(c)?d[r.month()]:e[r.month()]:e},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(r){return r+(1===r||8===r||r>=20?"ste":"de")},week:{dow:1,doy:4}})}(s(73270))},57391:function(St,be,s){!function(t){"use strict";t.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","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 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","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 ag] 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\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(m){return m+(1===m?"d":m%10==2?"na":"mh")},week:{dow:1,doy:4}})}(s(73270))},20517:function(St,be,s){!function(t){"use strict";t.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(m){return m+(1===m?"d":m%10==2?"na":"mh")},week:{dow:1,doy:4}})}(s(73270))},73622:function(St,be,s){!function(t){"use strict";t.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(d){return 0===d.indexOf("un")?"n"+d:"en "+d},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(73270))},5779:function(St,be,s){!function(t){"use strict";function e(l,r,c,E){var m={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[l+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",l+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[l+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",l+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[l+" \u0935\u0930\u093e\u0902\u0928\u0940",l+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[l+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",l+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[l+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",l+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[l+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",l+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return E?m[c][0]:m[c][1]}t.defineLocale("gom-deva",{months:{standalone:"\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\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\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("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\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:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(l,r){return"D"===r?l+"\u0935\u0947\u0930":l},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(l,r){return 12===l&&(l=0),"\u0930\u093e\u0924\u0940"===r?l<4?l:l+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===r?l:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===r?l>12?l:l+12:"\u0938\u093e\u0902\u091c\u0947"===r?l+12:void 0},meridiem:function(l,r,c){return l<4?"\u0930\u093e\u0924\u0940":l<12?"\u0938\u0915\u093e\u0933\u0940\u0902":l<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":l<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(s(73270))},87125:function(St,be,s){!function(t){"use strict";function e(l,r,c,E){var m={s:["thoddea sekondamni","thodde sekond"],ss:[l+" sekondamni",l+" sekond"],m:["eka mintan","ek minut"],mm:[l+" mintamni",l+" mintam"],h:["eka voran","ek vor"],hh:[l+" voramni",l+" voram"],d:["eka disan","ek dis"],dd:[l+" disamni",l+" dis"],M:["eka mhoinean","ek mhoino"],MM:[l+" mhoineamni",l+" mhoine"],y:["eka vorsan","ek voros"],yy:[l+" vorsamni",l+" vorsam"]};return E?m[c][0]:m[c][1]}t.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_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 Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(l,r){return"D"===r?l+"er":l},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(l,r){return 12===l&&(l=0),"rati"===r?l<4?l:l+12:"sokallim"===r?l:"donparam"===r?l>12?l:l+12:"sanje"===r?l+12:void 0},meridiem:function(l,r,c){return l<4?"rati":l<12?"sokallim":l<16?"donparam":l<20?"sanje":"rati"}})}(s(73270))},68085:function(St,be,s){!function(t){"use strict";var e={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},d={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};t.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\u0ab9\u0ac7\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(r){return r.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(c){return d[c]})},postformat:function(r){return r.replace(/\d/g,function(c){return e[c]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(r,c){return 12===r&&(r=0),"\u0ab0\u0abe\u0aa4"===c?r<4?r:r+12:"\u0ab8\u0ab5\u0abe\u0ab0"===c?r:"\u0aac\u0aaa\u0acb\u0ab0"===c?r>=10?r:r+12:"\u0ab8\u0abe\u0a82\u0a9c"===c?r+12:void 0},meridiem:function(r,c,E){return r<4?"\u0ab0\u0abe\u0aa4":r<10?"\u0ab8\u0ab5\u0abe\u0ab0":r<17?"\u0aac\u0aaa\u0acb\u0ab0":r<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(s(73270))},62249:function(St,be,s){!function(t){"use strict";t.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(d){return 2===d?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":d+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(d){return 2===d?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":d+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(d){return 2===d?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":d+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(d){return 2===d?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":d%10==0&&10!==d?d+" \u05e9\u05e0\u05d4":d+" \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(d){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(d)},meridiem:function(d,l,r){return d<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":d<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":d<12?r?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":d<18?r?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(s(73270))},83463:function(St,be,s){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},d={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},l=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];t.defineLocale("hi",{months:{format:"\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("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\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\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\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("_"),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"},monthsParse:l,longMonthsParse:l,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\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|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\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\.?)/i,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(E){return E.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(m){return d[m]})},postformat:function(E){return E.replace(/\d/g,function(m){return e[m]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(E,m){return 12===E&&(E=0),"\u0930\u093e\u0924"===m?E<4?E:E+12:"\u0938\u0941\u092c\u0939"===m?E:"\u0926\u094b\u092a\u0939\u0930"===m?E>=10?E:E+12:"\u0936\u093e\u092e"===m?E+12:void 0},meridiem:function(E,m,v){return E<4?"\u0930\u093e\u0924":E<10?"\u0938\u0941\u092c\u0939":E<17?"\u0926\u094b\u092a\u0939\u0930":E<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(s(73270))},60985:function(St,be,s){!function(t){"use strict";function e(l,r,c){var E=l+" ";switch(c){case"ss":return E+(1===l?"sekunda":2===l||3===l||4===l?"sekunde":"sekundi");case"m":return r?"jedna minuta":"jedne minute";case"mm":return E+(1===l?"minuta":2===l||3===l||4===l?"minute":"minuta");case"h":return r?"jedan sat":"jednog sata";case"hh":return E+(1===l?"sat":2===l||3===l||4===l?"sata":"sati");case"dd":return E+(1===l?"dan":"dana");case"MM":return E+(1===l?"mjesec":2===l||3===l||4===l?"mjeseca":"mjeseci");case"yy":return E+(1===l?"godina":2===l||3===l||4===l?"godine":"godina")}}t.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:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do 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:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(s(73270))},6130:function(St,be,s){!function(t){"use strict";var e="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function d(c,E,m,v){var C=c;switch(m){case"s":return v||E?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return C+(v||E)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(v||E?" perc":" perce");case"mm":return C+(v||E?" perc":" perce");case"h":return"egy"+(v||E?" \xf3ra":" \xf3r\xe1ja");case"hh":return C+(v||E?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(v||E?" nap":" napja");case"dd":return C+(v||E?" nap":" napja");case"M":return"egy"+(v||E?" h\xf3nap":" h\xf3napja");case"MM":return C+(v||E?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(v||E?" \xe9v":" \xe9ve");case"yy":return C+(v||E?" \xe9v":" \xe9ve")}return""}function l(c){return(c?"":"[m\xfalt] ")+"["+e[this.day()]+"] LT[-kor]"}t.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("_"),monthsParseExact:!0,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(c){return"u"===c.charAt(1).toLowerCase()},meridiem:function(c,E,m){return c<12?!0===m?"de":"DE":!0===m?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return l.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return l.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:d,ss:d,m:d,mm:d,h:d,hh:d,d,dd:d,M:d,MM:d,y:d,yy:d},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(s(73270))},47398:function(St,be,s){!function(t){"use strict";t.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(d){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(d)},meridiem:function(d){return d<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":d<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":d<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(d,l){switch(l){case"DDD":case"w":case"W":case"DDDo":return 1===d?d+"-\u056b\u0576":d+"-\u0580\u0564";default:return d}},week:{dow:1,doy:7}})}(s(73270))},24232:function(St,be,s){!function(t){"use strict";t.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(d,l){return 12===d&&(d=0),"pagi"===l?d:"siang"===l?d>=11?d:d+12:"sore"===l||"malam"===l?d+12:void 0},meridiem:function(d,l,r){return d<11?"pagi":d<15?"siang":d<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:0,doy:6}})}(s(73270))},97407:function(St,be,s){!function(t){"use strict";function e(r){return r%100==11||r%10!=1}function d(r,c,E,m){var v=r+" ";switch(E){case"s":return c||m?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return e(r)?v+(c||m?"sek\xfandur":"sek\xfandum"):v+"sek\xfanda";case"m":return c?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return e(r)?v+(c||m?"m\xedn\xfatur":"m\xedn\xfatum"):c?v+"m\xedn\xfata":v+"m\xedn\xfatu";case"hh":return e(r)?v+(c||m?"klukkustundir":"klukkustundum"):v+"klukkustund";case"d":return c?"dagur":m?"dag":"degi";case"dd":return e(r)?c?v+"dagar":v+(m?"daga":"d\xf6gum"):c?v+"dagur":v+(m?"dag":"degi");case"M":return c?"m\xe1nu\xf0ur":m?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return e(r)?c?v+"m\xe1nu\xf0ir":v+(m?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):c?v+"m\xe1nu\xf0ur":v+(m?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return c||m?"\xe1r":"\xe1ri";case"yy":return e(r)?v+(c||m?"\xe1r":"\xe1rum"):v+(c||m?"\xe1r":"\xe1ri")}}t.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:d,ss:d,m:d,mm:d,h:"klukkustund",hh:d,d,dd:d,M:d,MM:d,y:d,yy:d},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(s(73270))},58960:function(St,be,s){!function(t){"use strict";t.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(d){return(/^[0-9].+$/.test(d)?"tra":"in")+" "+d},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(73270))},87973:function(St,be,s){!function(t){"use strict";t.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:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",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",w:"una settimana",ww:"%d settimane",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(73270))},75653:function(St,be,s){!function(t){"use strict";t.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(d,l){return"\u5143"===l[1]?1:parseInt(l[1]||d,10)},months:"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("_"),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(d){return"\u5348\u5f8c"===d},meridiem:function(d,l,r){return d<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(d){return d.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(d){return this.week()!==d.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(d,l){switch(l){case"y":return 1===d?"\u5143\u5e74":d+"\u5e74";case"d":case"D":case"DDD":return d+"\u65e5";default:return d}},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(73270))},9605:function(St,be,s){!function(t){"use strict";t.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(d,l){return 12===d&&(d=0),"enjing"===l?d:"siyang"===l?d>=11?d:d+12:"sonten"===l||"ndalu"===l?d+12:void 0},meridiem:function(d,l,r){return d<11?"enjing":d<15?"siyang":d<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(73270))},71418:function(St,be,s){!function(t){"use strict";t.defineLocale("ka",{months:"\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("_"),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:"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:"[\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(d){return d.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(l,r,c){return"\u10d8"===c?r+"\u10e8\u10d8":r+c+"\u10e8\u10d8"})},past:function(d){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(d)?d.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(d)?d.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):d},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(d){return 0===d?d:1===d?d+"-\u10da\u10d8":d<20||d<=100&&d%20==0||d%100==0?"\u10db\u10d4-"+d:d+"-\u10d4"},week:{dow:1,doy:7}})}(s(73270))},59357:function(St,be,s){!function(t){"use strict";var e={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"};t.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(l){return l+(e[l]||e[l%10]||e[l>=100?100:null])},week:{dow:1,doy:7}})}(s(73270))},30213:function(St,be,s){!function(t){"use strict";var e={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},d={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};t.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(r){return"\u179b\u17d2\u1784\u17b6\u1785"===r},meridiem:function(r,c,E){return r<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(r){return r.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(c){return d[c]})},postformat:function(r){return r.replace(/\d/g,function(c){return e[c]})},week:{dow:1,doy:4}})}(s(73270))},94526:function(St,be,s){!function(t){"use strict";var e={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},d={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};t.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(r){return r.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(c){return d[c]})},postformat:function(r){return r.replace(/\d/g,function(c){return e[c]})},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(r,c){return 12===r&&(r=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===c?r<4?r:r+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===c?r:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===c?r>=10?r:r+12:"\u0cb8\u0c82\u0c9c\u0cc6"===c?r+12:void 0},meridiem:function(r,c,E){return r<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":r<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":r<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":r<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(r){return r+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(s(73270))},5190:function(St,be,s){!function(t){"use strict";t.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(d,l){switch(l){case"d":case"D":case"DDD":return d+"\uc77c";case"M":return d+"\uc6d4";case"w":case"W":return d+"\uc8fc";default:return d}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(d){return"\uc624\ud6c4"===d},meridiem:function(d,l,r){return d<12?"\uc624\uc804":"\uc624\ud6c4"}})}(s(73270))},94162:function(St,be,s){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},d={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},l=["\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"];t.defineLocale("ku",{months:l,monthsShort:l,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(c){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(c)},meridiem:function(c,E,m){return c<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(c){return c.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(E){return d[E]}).replace(/\u060c/g,",")},postformat:function(c){return c.replace(/\d/g,function(E){return e[E]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(s(73270))},9022:function(St,be,s){!function(t){"use strict";var e={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"};t.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(l){return l+(e[l]||e[l%10]||e[l>=100?100:null])},week:{dow:1,doy:7}})}(s(73270))},12249:function(St,be,s){!function(t){"use strict";function e(E,m,v,C){var n={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 m?n[v][0]:n[v][1]}function r(E){if(E=parseInt(E,10),isNaN(E))return!1;if(E<0)return!0;if(E<10)return 4<=E&&E<=7;if(E<100){var m=E%10;return r(0===m?E/10:m)}if(E<1e4){for(;E>=10;)E/=10;return r(E)}return r(E/=1e3)}t.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 d(E){return r(E.substr(0,E.indexOf(" ")))?"a "+E:"an "+E},past:function l(E){return r(E.substr(0,E.indexOf(" ")))?"viru "+E:"virun "+E},s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d M\xe9int",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(s(73270))},33635:function(St,be,s){!function(t){"use strict";t.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(d){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===d},meridiem:function(d,l,r){return d<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(d){return"\u0e97\u0eb5\u0ec8"+d}})}(s(73270))},88824:function(St,be,s){!function(t){"use strict";var e={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 l(v,C,n,i){return C?c(n)[0]:i?c(n)[1]:c(n)[2]}function r(v){return v%10==0||v>10&&v<20}function c(v){return e[v].split("_")}function E(v,C,n,i){var P=v+" ";return 1===v?P+l(0,C,n[0],i):C?P+(r(v)?c(n)[1]:c(n)[0]):i?P+c(n)[1]:P+(r(v)?c(n)[1]:c(n)[2])}t.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 d(v,C,n,i){return C?"kelios sekund\u0117s":i?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:E,m:l,mm:E,h:l,hh:E,d:l,dd:E,M:l,MM:E,y:l,yy:E},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(v){return v+"-oji"},week:{dow:1,doy:4}})}(s(73270))},2913:function(St,be,s){!function(t){"use strict";var e={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 d(m,v,C){return C?v%10==1&&v%100!=11?m[2]:m[3]:v%10==1&&v%100!=11?m[0]:m[1]}function l(m,v,C){return m+" "+d(e[C],m,v)}function r(m,v,C){return d(e[C],m,v)}t.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 c(m,v){return v?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:l,m:r,mm:l,h:r,hh:l,d:r,dd:l,M:r,MM:l,y:r,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(s(73270))},56628:function(St,be,s){!function(t){"use strict";var e={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(l,r){return 1===l?r[0]:l>=2&&l<=4?r[1]:r[2]},translate:function(l,r,c){var E=e.words[c];return 1===c.length?r?E[0]:E[1]:l+" "+e.correctGrammaticalCase(l,E)}};t.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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(s(73270))},79718:function(St,be,s){!function(t){"use strict";t.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(73270))},86416:function(St,be,s){!function(t){"use strict";t.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:"\u0437\u0430 %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:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \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(d){var l=d%10,r=d%100;return 0===d?d+"-\u0435\u0432":0===r?d+"-\u0435\u043d":r>10&&r<20?d+"-\u0442\u0438":1===l?d+"-\u0432\u0438":2===l?d+"-\u0440\u0438":7===l||8===l?d+"-\u043c\u0438":d+"-\u0442\u0438"},week:{dow:1,doy:7}})}(s(73270))},8954:function(St,be,s){!function(t){"use strict";t.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(d,l){return 12===d&&(d=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===l&&d>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===l||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===l?d+12:d},meridiem:function(d,l,r){return d<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":d<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":d<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":d<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(s(73270))},25657:function(St,be,s){!function(t){"use strict";function e(l,r,c,E){switch(c){case"s":return r?"\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 l+(r?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return l+(r?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return l+(r?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return l+(r?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return l+(r?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return l+(r?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return l}}t.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(l){return"\u04ae\u0425"===l},meridiem:function(l,r,c){return l<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:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(l,r){switch(r){case"d":case"D":case"DDD":return l+" \u04e9\u0434\u04e9\u0440";default:return l}}})}(s(73270))},75031:function(St,be,s){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},d={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function l(c,E,m,v){var C="";if(E)switch(m){case"s":C="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":C="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":C="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":C="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":C="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":C="%d \u0924\u093e\u0938";break;case"d":C="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":C="%d \u0926\u093f\u0935\u0938";break;case"M":C="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":C="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":C="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":C="%d \u0935\u0930\u094d\u0937\u0947"}else switch(m){case"s":C="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":C="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":C="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":C="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":C="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":C="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":C="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":C="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":C="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":C="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":C="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":C="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return C.replace(/%d/i,c)}t.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:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},preparse:function(c){return c.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(E){return d[E]})},postformat:function(c){return c.replace(/\d/g,function(E){return e[E]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(c,E){return 12===c&&(c=0),"\u092a\u0939\u093e\u091f\u0947"===E||"\u0938\u0915\u093e\u0933\u0940"===E?c:"\u0926\u0941\u092a\u093e\u0930\u0940"===E||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===E||"\u0930\u093e\u0924\u094d\u0930\u0940"===E?c>=12?c:c+12:void 0},meridiem:function(c,E,m){return c>=0&&c<6?"\u092a\u0939\u093e\u091f\u0947":c<12?"\u0938\u0915\u093e\u0933\u0940":c<17?"\u0926\u0941\u092a\u093e\u0930\u0940":c<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(s(73270))},74743:function(St,be,s){!function(t){"use strict";t.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(d,l){return 12===d&&(d=0),"pagi"===l?d:"tengahari"===l?d>=11?d:d+12:"petang"===l||"malam"===l?d+12:void 0},meridiem:function(d,l,r){return d<11?"pagi":d<15?"tengahari":d<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(73270))},6397:function(St,be,s){!function(t){"use strict";t.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(d,l){return 12===d&&(d=0),"pagi"===l?d:"tengahari"===l?d>=11?d:d+12:"petang"===l||"malam"===l?d+12:void 0},meridiem:function(d,l,r){return d<11?"pagi":d<15?"tengahari":d<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(73270))},82694:function(St,be,s){!function(t){"use strict";t.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(73270))},83892:function(St,be,s){!function(t){"use strict";var e={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},d={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};t.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(r){return r.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(c){return d[c]})},postformat:function(r){return r.replace(/\d/g,function(c){return e[c]})},week:{dow:1,doy:4}})}(s(73270))},92013:function(St,be,s){!function(t){"use strict";t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._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",w:"en uke",ww:"%d uker",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(73270))},24373:function(St,be,s){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},d={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.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(r){return r.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(c){return d[c]})},postformat:function(r){return r.replace(/\d/g,function(c){return e[c]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(r,c){return 12===r&&(r=0),"\u0930\u093e\u0924\u093f"===c?r<4?r:r+12:"\u092c\u093f\u0939\u093e\u0928"===c?r:"\u0926\u093f\u0909\u0901\u0938\u094b"===c?r>=10?r:r+12:"\u0938\u093e\u0901\u091d"===c?r+12:void 0},meridiem:function(r,c,E){return r<3?"\u0930\u093e\u0924\u093f":r<12?"\u092c\u093f\u0939\u093e\u0928":r<16?"\u0926\u093f\u0909\u0901\u0938\u094b":r<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(73270))},82477:function(St,be,s){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),d="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),l=[/^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],r=/^(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;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(E,m){return E?/-MMM-/.test(m)?d[E.month()]:e[E.month()]:e},monthsRegex:r,monthsShortRegex:r,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:l,longMonthsParse:l,shortMonthsParse:l,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(E){return E+(1===E||8===E||E>=20?"ste":"de")},week:{dow:1,doy:4}})}(s(73270))},79709:function(St,be,s){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),d="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),l=[/^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],r=/^(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;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(E,m){return E?/-MMM-/.test(m)?d[E.month()]:e[E.month()]:e},monthsRegex:r,monthsShortRegex:r,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:l,longMonthsParse:l,shortMonthsParse:l,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",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(E){return E+(1===E||8===E||E>=20?"ste":"de")},week:{dow:1,doy:4}})}(s(73270))},48414:function(St,be,s){!function(t){"use strict";t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,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",w:"ei veke",ww:"%d veker",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(73270))},38777:function(St,be,s){!function(t){"use strict";t.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_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] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(d,l){var r=1===d?"r":2===d?"n":3===d?"r":4===d?"t":"\xe8";return("w"===l||"W"===l)&&(r="a"),d+r},week:{dow:1,doy:4}})}(s(73270))},41033:function(St,be,s){!function(t){"use strict";var e={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},d={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};t.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(r){return r.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(c){return d[c]})},postformat:function(r){return r.replace(/\d/g,function(c){return e[c]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(r,c){return 12===r&&(r=0),"\u0a30\u0a3e\u0a24"===c?r<4?r:r+12:"\u0a38\u0a35\u0a47\u0a30"===c?r:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===c?r>=10?r:r+12:"\u0a38\u0a3c\u0a3e\u0a2e"===c?r+12:void 0},meridiem:function(r,c,E){return r<4?"\u0a30\u0a3e\u0a24":r<10?"\u0a38\u0a35\u0a47\u0a30":r<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":r<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(s(73270))},54058:function(St,be,s){!function(t){"use strict";var e="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),d="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),l=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function r(m){return m%10<5&&m%10>1&&~~(m/10)%10!=1}function c(m,v,C){var n=m+" ";switch(C){case"ss":return n+(r(m)?"sekundy":"sekund");case"m":return v?"minuta":"minut\u0119";case"mm":return n+(r(m)?"minuty":"minut");case"h":return v?"godzina":"godzin\u0119";case"hh":return n+(r(m)?"godziny":"godzin");case"ww":return n+(r(m)?"tygodnie":"tygodni");case"MM":return n+(r(m)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return n+(r(m)?"lata":"lat")}}t.defineLocale("pl",{months:function(m,v){return m?/D MMMM/.test(v)?d[m.month()]:e[m.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:l,longMonthsParse:l,shortMonthsParse:l,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:c,m:c,mm:c,h:c,hh:c,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:c,M:"miesi\u0105c",MM:c,y:"rok",yy:c},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(s(73270))},44370:function(St,be,s){!function(t){"use strict";t.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",invalidDate:"Data inv\xe1lida"})}(s(73270))},39268:function(St,be,s){!function(t){"use strict";t.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",w:"uma semana",ww:"%d semanas",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(73270))},30693:function(St,be,s){!function(t){"use strict";function e(l,r,c){var m=" ";return(l%100>=20||l>=100&&l%100==0)&&(m=" de "),l+m+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[c]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._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:e,m:"un minut",mm:e,h:"o or\u0103",hh:e,d:"o zi",dd:e,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:e,M:"o lun\u0103",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(s(73270))},64126:function(St,be,s){!function(t){"use strict";function d(c,E,m){return"m"===m?E?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":c+" "+function e(c,E){var m=c.split("_");return E%10==1&&E%100!=11?m[0]:E%10>=2&&E%10<=4&&(E%100<10||E%100>=20)?m[1]:m[2]}({ss:E?"\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:E?"\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",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",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"}[m],+c)}var l=[/^\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];t.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:l,longMonthsParse:l,shortMonthsParse:l,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(c){if(c.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(c){if(c.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:d,m:d,mm:d,h:"\u0447\u0430\u0441",hh:d,d:"\u0434\u0435\u043d\u044c",dd:d,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:d,M:"\u043c\u0435\u0441\u044f\u0446",MM:d,y:"\u0433\u043e\u0434",yy:d},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(c){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(c)},meridiem:function(c,E,m){return c<4?"\u043d\u043e\u0447\u0438":c<12?"\u0443\u0442\u0440\u0430":c<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(c,E){switch(E){case"M":case"d":case"DDD":return c+"-\u0439";case"D":return c+"-\u0433\u043e";case"w":case"W":return c+"-\u044f";default:return c}},week:{dow:1,doy:4}})}(s(73270))},41163:function(St,be,s){!function(t){"use strict";var e=["\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"],d=["\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"];t.defineLocale("sd",{months:e,monthsShort:e,weekdays:d,weekdaysShort:d,weekdaysMin:d,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(r){return"\u0634\u0627\u0645"===r},meridiem:function(r,c,E){return r<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(r){return r.replace(/\u060c/g,",")},postformat:function(r){return r.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(s(73270))},17059:function(St,be,s){!function(t){"use strict";t.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(73270))},85184:function(St,be,s){!function(t){"use strict";t.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(d){return d+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(d){return"\u0db4.\u0dc0."===d||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===d},meridiem:function(d,l,r){return d>11?r?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":r?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(s(73270))},77994:function(St,be,s){!function(t){"use strict";var e="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),d="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function l(E){return E>1&&E<5}function r(E,m,v,C){var n=E+" ";switch(v){case"s":return m||C?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return m||C?n+(l(E)?"sekundy":"sek\xfand"):n+"sekundami";case"m":return m?"min\xfata":C?"min\xfatu":"min\xfatou";case"mm":return m||C?n+(l(E)?"min\xfaty":"min\xfat"):n+"min\xfatami";case"h":return m?"hodina":C?"hodinu":"hodinou";case"hh":return m||C?n+(l(E)?"hodiny":"hod\xedn"):n+"hodinami";case"d":return m||C?"de\u0148":"d\u0148om";case"dd":return m||C?n+(l(E)?"dni":"dn\xed"):n+"d\u0148ami";case"M":return m||C?"mesiac":"mesiacom";case"MM":return m||C?n+(l(E)?"mesiace":"mesiacov"):n+"mesiacmi";case"y":return m||C?"rok":"rokom";case"yy":return m||C?n+(l(E)?"roky":"rokov"):n+"rokmi"}}t.defineLocale("sk",{months:e,monthsShort:d,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: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(73270))},4095:function(St,be,s){!function(t){"use strict";function e(l,r,c,E){var m=l+" ";switch(c){case"s":return r||E?"nekaj sekund":"nekaj sekundami";case"ss":return m+(1===l?r?"sekundo":"sekundi":2===l?r||E?"sekundi":"sekundah":l<5?r||E?"sekunde":"sekundah":"sekund");case"m":return r?"ena minuta":"eno minuto";case"mm":return m+(1===l?r?"minuta":"minuto":2===l?r||E?"minuti":"minutama":l<5?r||E?"minute":"minutami":r||E?"minut":"minutami");case"h":return r?"ena ura":"eno uro";case"hh":return m+(1===l?r?"ura":"uro":2===l?r||E?"uri":"urama":l<5?r||E?"ure":"urami":r||E?"ur":"urami");case"d":return r||E?"en dan":"enim dnem";case"dd":return m+(1===l?r||E?"dan":"dnem":2===l?r||E?"dni":"dnevoma":r||E?"dni":"dnevi");case"M":return r||E?"en mesec":"enim mesecem";case"MM":return m+(1===l?r||E?"mesec":"mesecem":2===l?r||E?"meseca":"mesecema":l<5?r||E?"mesece":"meseci":r||E?"mesecev":"meseci");case"y":return r||E?"eno leto":"enim letom";case"yy":return m+(1===l?r||E?"leto":"letom":2===l?r||E?"leti":"letoma":l<5?r||E?"leta":"leti":r||E?"let":"leti")}}t.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:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(s(73270))},74101:function(St,be,s){!function(t){"use strict";t.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(d){return"M"===d.charAt(0)},meridiem:function(d,l,r){return d<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(73270))},27772:function(St,be,s){!function(t){"use strict";var e={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\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\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"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(l,r){return l%10>=1&&l%10<=4&&(l%100<10||l%100>=20)?l%10==1?r[0]:r[1]:r[2]},translate:function(l,r,c,E){var v,m=e.words[c];return 1===c.length?"y"===c&&r?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":E||r?m[0]:m[1]:(v=e.correctGrammaticalCase(l,m),"yy"===c&&r&&"\u0433\u043e\u0434\u0438\u043d\u0443"===v?l+" \u0433\u043e\u0434\u0438\u043d\u0430":l+" "+v)}};t.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:"D. M. 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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(s(73270))},51594:function(St,be,s){!function(t){"use strict";var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(l,r){return l%10>=1&&l%10<=4&&(l%100<10||l%100>=20)?l%10==1?r[0]:r[1]:r[2]},translate:function(l,r,c,E){var v,m=e.words[c];return 1===c.length?"y"===c&&r?"jedna godina":E||r?m[0]:m[1]:(v=e.correctGrammaticalCase(l,m),"yy"===c&&r&&"godinu"===v?l+" godina":l+" "+v)}};t.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:"D. M. 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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(s(73270))},76619:function(St,be,s){!function(t){"use strict";t.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(d,l,r){return d<11?"ekuseni":d<15?"emini":d<19?"entsambama":"ebusuku"},meridiemHour:function(d,l){return 12===d&&(d=0),"ekuseni"===l?d:"emini"===l?d>=11?d:d+12:"entsambama"===l||"ebusuku"===l?0===d?0:d+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(s(73270))},43608:function(St,be,s){!function(t){"use strict";t.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(d){var l=d%10;return d+(1==~~(d%100/10)?":e":1===l||2===l?":a":":e")},week:{dow:1,doy:4}})}(s(73270))},12380:function(St,be,s){!function(t){"use strict";t.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 A",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:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(s(73270))},14981:function(St,be,s){!function(t){"use strict";var e={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},d={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};t.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(r){return r+"\u0bb5\u0ba4\u0bc1"},preparse:function(r){return r.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(c){return d[c]})},postformat:function(r){return r.replace(/\d/g,function(c){return e[c]})},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(r,c,E){return r<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":r<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":r<10?" \u0b95\u0bbe\u0bb2\u0bc8":r<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":r<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":r<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(r,c){return 12===r&&(r=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===c?r<2?r:r+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===c||"\u0b95\u0bbe\u0bb2\u0bc8"===c||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===c&&r>=10?r:r+12},week:{dow:0,doy:6}})}(s(73270))},98918:function(St,be,s){!function(t){"use strict";t.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(d,l){return 12===d&&(d=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===l?d<4?d:d+12:"\u0c09\u0c26\u0c2f\u0c02"===l?d:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===l?d>=10?d:d+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===l?d+12:void 0},meridiem:function(d,l,r){return d<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":d<10?"\u0c09\u0c26\u0c2f\u0c02":d<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":d<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(s(73270))},37001:function(St,be,s){!function(t){"use strict";t.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:"segundu balun",ss:"segundu %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(d){var l=d%10;return d+(1==~~(d%100/10)?"th":1===l?"st":2===l?"nd":3===l?"rd":"th")},week:{dow:1,doy:4}})}(s(73270))},93385:function(St,be,s){!function(t){"use strict";var e={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"};t.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\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:"[\u0424\u0430\u0440\u0434\u043e \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(l,r){return 12===l&&(l=0),"\u0448\u0430\u0431"===r?l<4?l:l+12:"\u0441\u0443\u0431\u04b3"===r?l:"\u0440\u04ef\u0437"===r?l>=11?l:l+12:"\u0431\u0435\u0433\u043e\u04b3"===r?l+12:void 0},meridiem:function(l,r,c){return l<4?"\u0448\u0430\u0431":l<11?"\u0441\u0443\u0431\u04b3":l<16?"\u0440\u04ef\u0437":l<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(l){return l+(e[l]||e[l%10]||e[l>=100?100:null])},week:{dow:1,doy:7}})}(s(73270))},62199:function(St,be,s){!function(t){"use strict";t.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(d){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===d},meridiem:function(d,l,r){return d<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",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(s(73270))},51736:function(St,be,s){!function(t){"use strict";var e={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};t.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".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 sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(l,r){switch(r){case"d":case"D":case"Do":case"DD":return l;default:if(0===l)return l+"'unjy";var c=l%10;return l+(e[c]||e[l%100-c]||e[l>=100?100:null])}},week:{dow:1,doy:7}})}(s(73270))},90515:function(St,be,s){!function(t){"use strict";t.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(d){return d},week:{dow:1,doy:4}})}(s(73270))},41287:function(St,be,s){!function(t){"use strict";var e="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function r(m,v,C,n){var i=function c(m){var v=Math.floor(m%1e3/100),C=Math.floor(m%100/10),n=m%10,i="";return v>0&&(i+=e[v]+"vatlh"),C>0&&(i+=(""!==i?" ":"")+e[C]+"maH"),n>0&&(i+=(""!==i?" ":"")+e[n]),""===i?"pagh":i}(m);switch(C){case"ss":return i+" lup";case"mm":return i+" tup";case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}t.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 d(m){var v=m;return-1!==m.indexOf("jaj")?v.slice(0,-3)+"leS":-1!==m.indexOf("jar")?v.slice(0,-3)+"waQ":-1!==m.indexOf("DIS")?v.slice(0,-3)+"nem":v+" pIq"},past:function l(m){var v=m;return-1!==m.indexOf("jaj")?v.slice(0,-3)+"Hu\u2019":-1!==m.indexOf("jar")?v.slice(0,-3)+"wen":-1!==m.indexOf("DIS")?v.slice(0,-3)+"ben":v+" ret"},s:"puS lup",ss:r,m:"wa\u2019 tup",mm:r,h:"wa\u2019 rep",hh:r,d:"wa\u2019 jaj",dd:r,M:"wa\u2019 jar",MM:r,y:"wa\u2019 DIS",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(s(73270))},96417:function(St,be,s){!function(t){"use strict";var e={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"};t.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_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(l,r,c){return l<12?c?"\xf6\xf6":"\xd6\xd6":c?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(l){return"\xf6s"===l||"\xd6S"===l},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",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(l,r){switch(r){case"d":case"D":case"Do":case"DD":return l;default:if(0===l)return l+"'\u0131nc\u0131";var c=l%10;return l+(e[c]||e[l%100-c]||e[l>=100?100:null])}},week:{dow:1,doy:7}})}(s(73270))},62075:function(St,be,s){!function(t){"use strict";function d(l,r,c,E){var m={s:["viensas secunds","'iensas secunds"],ss:[l+" secunds",l+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[l+" m\xeduts",l+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[l+" \xfeoras",l+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[l+" ziuas",l+" ziuas"],M:["'n mes","'iens mes"],MM:[l+" mesen",l+" mesen"],y:["'n ar","'iens ar"],yy:[l+" ars",l+" ars"]};return E||r?m[c][0]:m[c][1]}t.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(l){return"d'o"===l.toLowerCase()},meridiem:function(l,r,c){return l>11?c?"d'o":"D'O":c?"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:d,ss:d,m:d,mm:d,h:d,hh:d,d,dd:d,M:d,MM:d,y:d,yy:d},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(s(73270))},35222:function(St,be,s){!function(t){"use strict";t.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(73270))},26935:function(St,be,s){!function(t){"use strict";t.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(73270))},20819:function(St,be,s){!function(t){"use strict";t.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(d,l){return 12===d&&(d=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===l||"\u0633\u06d5\u06be\u06d5\u0631"===l||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===l?d:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===l||"\u0643\u06d5\u0686"===l?d+12:d>=11?d:d+12},meridiem:function(d,l,r){var c=100*d+l;return c<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":c<900?"\u0633\u06d5\u06be\u06d5\u0631":c<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":c<1230?"\u0686\u06c8\u0634":c<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(d,l){switch(l){case"d":case"D":case"DDD":return d+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return d+"-\u06be\u06d5\u067e\u062a\u06d5";default:return d}},preparse:function(d){return d.replace(/\u060c/g,",")},postformat:function(d){return d.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(s(73270))},28707:function(St,be,s){!function(t){"use strict";function d(E,m,v){return"m"===v?m?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===v?m?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":E+" "+function e(E,m){var v=E.split("_");return m%10==1&&m%100!=11?v[0]:m%10>=2&&m%10<=4&&(m%100<10||m%100>=20)?v[1]:v[2]}({ss:m?"\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:m?"\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:m?"\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"}[v],+E)}function r(E){return function(){return E+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}t.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 l(E,m){var v={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===E?v.nominative.slice(1,7).concat(v.nominative.slice(0,1)):E?v[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(m)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(m)?"genitive":"nominative"][E.day()]:v.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:r("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:r("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:r("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:r("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return r("[\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:d,m:d,mm:d,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:d,d:"\u0434\u0435\u043d\u044c",dd:d,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:d,y:"\u0440\u0456\u043a",yy:d},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(E){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(E)},meridiem:function(E,m,v){return E<4?"\u043d\u043e\u0447\u0456":E<12?"\u0440\u0430\u043d\u043a\u0443":E<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(E,m){switch(m){case"M":case"d":case"DDD":case"w":case"W":return E+"-\u0439";case"D":return E+"-\u0433\u043e";default:return E}},week:{dow:1,doy:7}})}(s(73270))},2281:function(St,be,s){!function(t){"use strict";var e=["\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"],d=["\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"];t.defineLocale("ur",{months:e,monthsShort:e,weekdays:d,weekdaysShort:d,weekdaysMin:d,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(r){return"\u0634\u0627\u0645"===r},meridiem:function(r,c,E){return r<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(r){return r.replace(/\u060c/g,",")},postformat:function(r){return r.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(s(73270))},23149:function(St,be,s){!function(t){"use strict";t.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(73270))},45244:function(St,be,s){!function(t){"use strict";t.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(73270))},95844:function(St,be,s){!function(t){"use strict";t.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:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".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(d){return/^ch$/i.test(d)},meridiem:function(d,l,r){return d<12?r?"sa":"SA":r?"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 tr\u01b0\u1edbc 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",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(d){return d},week:{dow:1,doy:4}})}(s(73270))},90:function(St,be,s){!function(t){"use strict";t.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(d){var l=d%10;return d+(1==~~(d%100/10)?"th":1===l?"st":2===l?"nd":3===l?"rd":"th")},week:{dow:1,doy:4}})}(s(73270))},23135:function(St,be,s){!function(t){"use strict";t.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(73270))},78777:function(St,be,s){!function(t){"use strict";t.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(d,l){return 12===d&&(d=0),"\u51cc\u6668"===l||"\u65e9\u4e0a"===l||"\u4e0a\u5348"===l?d:"\u4e0b\u5348"===l||"\u665a\u4e0a"===l?d+12:d>=11?d:d+12},meridiem:function(d,l,r){var c=100*d+l;return c<600?"\u51cc\u6668":c<900?"\u65e9\u4e0a":c<1130?"\u4e0a\u5348":c<1230?"\u4e2d\u5348":c<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(d){return d.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(d){return this.week()!==d.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(d,l){switch(l){case"d":case"D":case"DDD":return d+"\u65e5";case"M":return d+"\u6708";case"w":case"W":return d+"\u5468";default:return d}},relativeTime:{future:"%s\u540e",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",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(s(73270))},48182:function(St,be,s){!function(t){"use strict";t.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(d,l){return 12===d&&(d=0),"\u51cc\u6668"===l||"\u65e9\u4e0a"===l||"\u4e0a\u5348"===l?d:"\u4e2d\u5348"===l?d>=11?d:d+12:"\u4e0b\u5348"===l||"\u665a\u4e0a"===l?d+12:void 0},meridiem:function(d,l,r){var c=100*d+l;return c<600?"\u51cc\u6668":c<900?"\u65e9\u4e0a":c<1200?"\u4e0a\u5348":1200===c?"\u4e2d\u5348":c<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(d,l){switch(l){case"d":case"D":case"DDD":return d+"\u65e5";case"M":return d+"\u6708";case"w":case"W":return d+"\u9031";default:return d}},relativeTime:{future:"%s\u5f8c",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(73270))},95717:function(St,be,s){!function(t){"use strict";t.defineLocale("zh-mo",{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:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",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(d,l){return 12===d&&(d=0),"\u51cc\u6668"===l||"\u65e9\u4e0a"===l||"\u4e0a\u5348"===l?d:"\u4e2d\u5348"===l?d>=11?d:d+12:"\u4e0b\u5348"===l||"\u665a\u4e0a"===l?d+12:void 0},meridiem:function(d,l,r){var c=100*d+l;return c<600?"\u51cc\u6668":c<900?"\u65e9\u4e0a":c<1130?"\u4e0a\u5348":c<1230?"\u4e2d\u5348":c<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(d,l){switch(l){case"d":case"D":case"DDD":return d+"\u65e5";case"M":return d+"\u6708";case"w":case"W":return d+"\u9031";default:return d}},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(73270))},55616:function(St,be,s){!function(t){"use strict";t.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(d,l){return 12===d&&(d=0),"\u51cc\u6668"===l||"\u65e9\u4e0a"===l||"\u4e0a\u5348"===l?d:"\u4e2d\u5348"===l?d>=11?d:d+12:"\u4e0b\u5348"===l||"\u665a\u4e0a"===l?d+12:void 0},meridiem:function(d,l,r){var c=100*d+l;return c<600?"\u51cc\u6668":c<900?"\u65e9\u4e0a":c<1130?"\u4e0a\u5348":c<1230?"\u4e2d\u5348":c<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(d,l){switch(l){case"d":case"D":case"DDD":return d+"\u65e5";case"M":return d+"\u6708";case"w":case"W":return d+"\u9031";default:return d}},relativeTime:{future:"%s\u5f8c",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(73270))},73270:function(St,be,s){(St=s.nmd(St)).exports=function(){"use strict";var t,D;function e(){return t.apply(null,arguments)}function l(N){return N instanceof Array||"[object Array]"===Object.prototype.toString.call(N)}function r(N){return null!=N&&"[object Object]"===Object.prototype.toString.call(N)}function c(N,Ae){return Object.prototype.hasOwnProperty.call(N,Ae)}function E(N){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(N).length;var Ae;for(Ae in N)if(c(N,Ae))return!1;return!0}function m(N){return void 0===N}function v(N){return"number"==typeof N||"[object Number]"===Object.prototype.toString.call(N)}function C(N){return N instanceof Date||"[object Date]"===Object.prototype.toString.call(N)}function n(N,Ae){var _t,Qe=[],Qt=N.length;for(_t=0;_t<Qt;++_t)Qe.push(Ae(N[_t],_t));return Qe}function i(N,Ae){for(var Qe in Ae)c(Ae,Qe)&&(N[Qe]=Ae[Qe]);return c(Ae,"toString")&&(N.toString=Ae.toString),c(Ae,"valueOf")&&(N.valueOf=Ae.valueOf),N}function P(N,Ae,Qe,_t){return ii(N,Ae,Qe,_t,!0).utc()}function q(N){return null==N._pf&&(N._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),N._pf}function M(N){if(null==N._isValid){var Ae=q(N),Qe=D.call(Ae.parsedDateParts,function(Qt){return null!=Qt}),_t=!isNaN(N._d.getTime())&&Ae.overflow<0&&!Ae.empty&&!Ae.invalidEra&&!Ae.invalidMonth&&!Ae.invalidWeekday&&!Ae.weekdayMismatch&&!Ae.nullInput&&!Ae.invalidFormat&&!Ae.userInvalidated&&(!Ae.meridiem||Ae.meridiem&&Qe);if(N._strict&&(_t=_t&&0===Ae.charsLeftOver&&0===Ae.unusedTokens.length&&void 0===Ae.bigHour),null!=Object.isFrozen&&Object.isFrozen(N))return _t;N._isValid=_t}return N._isValid}function T(N){var Ae=P(NaN);return null!=N?i(q(Ae),N):q(Ae).userInvalidated=!0,Ae}D=Array.prototype.some?Array.prototype.some:function(N){var _t,Ae=Object(this),Qe=Ae.length>>>0;for(_t=0;_t<Qe;_t++)if(_t in Ae&&N.call(this,Ae[_t],_t,Ae))return!0;return!1};var F=e.momentProperties=[],le=!1;function V(N,Ae){var Qe,_t,Qt,Mr=F.length;if(m(Ae._isAMomentObject)||(N._isAMomentObject=Ae._isAMomentObject),m(Ae._i)||(N._i=Ae._i),m(Ae._f)||(N._f=Ae._f),m(Ae._l)||(N._l=Ae._l),m(Ae._strict)||(N._strict=Ae._strict),m(Ae._tzm)||(N._tzm=Ae._tzm),m(Ae._isUTC)||(N._isUTC=Ae._isUTC),m(Ae._offset)||(N._offset=Ae._offset),m(Ae._pf)||(N._pf=q(Ae)),m(Ae._locale)||(N._locale=Ae._locale),Mr>0)for(Qe=0;Qe<Mr;Qe++)m(Qt=Ae[_t=F[Qe]])||(N[_t]=Qt);return N}function de(N){V(this,N),this._d=new Date(null!=N._d?N._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===le&&(le=!0,e.updateOffset(this),le=!1)}function ye(N){return N instanceof de||null!=N&&null!=N._isAMomentObject}function Ee(N){!1===e.suppressDeprecationWarnings&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+N)}function Le(N,Ae){var Qe=!0;return i(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,N),Qe){var Qt,Mr,Br,_t=[],Rn=arguments.length;for(Mr=0;Mr<Rn;Mr++){if(Qt="","object"==typeof arguments[Mr]){for(Br in Qt+="\n["+Mr+"] ",arguments[0])c(arguments[0],Br)&&(Qt+=Br+": "+arguments[0][Br]+", ");Qt=Qt.slice(0,-2)}else Qt=arguments[Mr];_t.push(Qt)}Ee(N+"\nArguments: "+Array.prototype.slice.call(_t).join("")+"\n"+(new Error).stack),Qe=!1}return Ae.apply(this,arguments)},Ae)}var he,ge={};function ue(N,Ae){null!=e.deprecationHandler&&e.deprecationHandler(N,Ae),ge[N]||(Ee(Ae),ge[N]=!0)}function ee(N){return typeof Function<"u"&&N instanceof Function||"[object Function]"===Object.prototype.toString.call(N)}function W(N,Ae){var _t,Qe=i({},N);for(_t in Ae)c(Ae,_t)&&(r(N[_t])&&r(Ae[_t])?(Qe[_t]={},i(Qe[_t],N[_t]),i(Qe[_t],Ae[_t])):null!=Ae[_t]?Qe[_t]=Ae[_t]:delete Qe[_t]);for(_t in N)c(N,_t)&&!c(Ae,_t)&&r(N[_t])&&(Qe[_t]=i({},Qe[_t]));return Qe}function L(N){null!=N&&this.set(N)}e.suppressDeprecationWarnings=!1,e.deprecationHandler=null,he=Object.keys?Object.keys:function(N){var Ae,Qe=[];for(Ae in N)c(N,Ae)&&Qe.push(Ae);return Qe};function Te(N,Ae,Qe){var _t=""+Math.abs(N);return(N>=0?Qe?"+":"":"-")+Math.pow(10,Math.max(0,Ae-_t.length)).toString().substr(1)+_t}var w=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,k=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,x={},z={};function j(N,Ae,Qe,_t){var Qt=_t;"string"==typeof _t&&(Qt=function(){return this[_t]()}),N&&(z[N]=Qt),Ae&&(z[Ae[0]]=function(){return Te(Qt.apply(this,arguments),Ae[1],Ae[2])}),Qe&&(z[Qe]=function(){return this.localeData().ordinal(Qt.apply(this,arguments),N)})}function Ne(N){return N.match(/\[[\s\S]/)?N.replace(/^\[|\]$/g,""):N.replace(/\\/g,"")}function We(N,Ae){return N.isValid()?(Ae=ze(Ae,N.localeData()),x[Ae]=x[Ae]||function tt(N){var Qe,_t,Ae=N.match(w);for(Qe=0,_t=Ae.length;Qe<_t;Qe++)Ae[Qe]=z[Ae[Qe]]?z[Ae[Qe]]:Ne(Ae[Qe]);return function(Qt){var Br,Mr="";for(Br=0;Br<_t;Br++)Mr+=ee(Ae[Br])?Ae[Br].call(Qt,N):Ae[Br];return Mr}}(Ae),x[Ae](N)):N.localeData().invalidDate()}function ze(N,Ae){var Qe=5;function _t(Qt){return Ae.longDateFormat(Qt)||Qt}for(k.lastIndex=0;Qe>=0&&k.test(N);)N=N.replace(k,_t),k.lastIndex=0,Qe-=1;return N}var S={};function K(N,Ae){var Qe=N.toLowerCase();S[Qe]=S[Qe+"s"]=S[Ae]=N}function Q(N){return"string"==typeof N?S[N]||S[N.toLowerCase()]:void 0}function B(N){var Qe,_t,Ae={};for(_t in N)c(N,_t)&&(Qe=Q(_t))&&(Ae[Qe]=N[_t]);return Ae}var re={};function fe(N,Ae){re[N]=Ae}function $e(N){return N%4==0&&N%100!=0||N%400==0}function et(N){return N<0?Math.ceil(N)||0:Math.floor(N)}function ot(N){var Ae=+N,Qe=0;return 0!==Ae&&isFinite(Ae)&&(Qe=et(Ae)),Qe}function ct(N,Ae){return function(Qe){return null!=Qe?($t(this,N,Qe),e.updateOffset(this,Ae),this):pt(this,N)}}function pt(N,Ae){return N.isValid()?N._d["get"+(N._isUTC?"UTC":"")+Ae]():NaN}function $t(N,Ae,Qe){N.isValid()&&!isNaN(Qe)&&("FullYear"===Ae&&$e(N.year())&&1===N.month()&&29===N.date()?(Qe=ot(Qe),N._d["set"+(N._isUTC?"UTC":"")+Ae](Qe,N.month(),Gn(Qe,N.month()))):N._d["set"+(N._isUTC?"UTC":"")+Ae](Qe))}var Jt,yt=/\d/,dr=/\d\d/,bt=/\d{3}/,ar=/\d{4}/,vt=/[+-]?\d{6}/,qt=/\d\d?/,br=/\d\d\d\d?/,lt=/\d\d\d\d\d\d?/,De=/\d{1,3}/,G=/\d{1,4}/,U=/[+-]?\d{1,6}/,ne=/\d+/,Re=/[+-]?\d+/,Xe=/Z|[+-]\d\d:?\d\d/gi,Nt=/Z|[+-]\d\d(?::?\d\d)?/gi,Vt=/[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;function kt(N,Ae,Qe){Jt[N]=ee(Ae)?Ae:function(_t,Qt){return _t&&Qe?Qe:Ae}}function Me(N,Ae){return c(Jt,N)?Jt[N](Ae._strict,Ae._locale):new RegExp(function ut(N){return nt(N.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(Ae,Qe,_t,Qt,Mr){return Qe||_t||Qt||Mr}))}(N))}function nt(N){return N.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Jt={};var Ht={};function pr(N,Ae){var Qe,Qt,_t=Ae;for("string"==typeof N&&(N=[N]),v(Ae)&&(_t=function(Mr,Br){Br[Ae]=ot(Mr)}),Qt=N.length,Qe=0;Qe<Qt;Qe++)Ht[N[Qe]]=_t}function Lr(N,Ae){pr(N,function(Qe,_t,Qt,Mr){Qt._w=Qt._w||{},Ae(Qe,Qt._w,Qt,Mr)})}function Kr(N,Ae,Qe){null!=Ae&&c(Ht,N)&&Ht[N](Ae,Qe._a,Qe,N)}var vn,Cn=0,Wn=1,zn=2,ti=3,yr=4,Jr=5,wt=6,nr=7,tn=8;function Gn(N,Ae){if(isNaN(N)||isNaN(Ae))return NaN;var Qe=function rn(N,Ae){return(N%Ae+Ae)%Ae}(Ae,12);return N+=(Ae-Qe)/12,1===Qe?$e(N)?29:28:31-Qe%7%2}vn=Array.prototype.indexOf?Array.prototype.indexOf:function(N){var Ae;for(Ae=0;Ae<this.length;++Ae)if(this[Ae]===N)return Ae;return-1},j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(N){return this.localeData().monthsShort(this,N)}),j("MMMM",0,0,function(N){return this.localeData().months(this,N)}),K("month","M"),fe("month",8),kt("M",qt),kt("MM",qt,dr),kt("MMM",function(N,Ae){return Ae.monthsShortRegex(N)}),kt("MMMM",function(N,Ae){return Ae.monthsRegex(N)}),pr(["M","MM"],function(N,Ae){Ae[Wn]=ot(N)-1}),pr(["MMM","MMMM"],function(N,Ae,Qe,_t){var Qt=Qe._locale.monthsParse(N,_t,Qe._strict);null!=Qt?Ae[Wn]=Qt:q(Qe).invalidMonth=N});var Yn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Dn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ti=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ni=Vt,ci=Vt;function ie(N,Ae,Qe){var _t,Qt,Mr,Br=N.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],_t=0;_t<12;++_t)Mr=P([2e3,_t]),this._shortMonthsParse[_t]=this.monthsShort(Mr,"").toLocaleLowerCase(),this._longMonthsParse[_t]=this.months(Mr,"").toLocaleLowerCase();return Qe?"MMM"===Ae?-1!==(Qt=vn.call(this._shortMonthsParse,Br))?Qt:null:-1!==(Qt=vn.call(this._longMonthsParse,Br))?Qt:null:"MMM"===Ae?-1!==(Qt=vn.call(this._shortMonthsParse,Br))||-1!==(Qt=vn.call(this._longMonthsParse,Br))?Qt:null:-1!==(Qt=vn.call(this._longMonthsParse,Br))||-1!==(Qt=vn.call(this._shortMonthsParse,Br))?Qt:null}function Mt(N,Ae){var Qe;if(!N.isValid())return N;if("string"==typeof Ae)if(/^\d+$/.test(Ae))Ae=ot(Ae);else if(!v(Ae=N.localeData().monthsParse(Ae)))return N;return Qe=Math.min(N.date(),Gn(N.year(),Ae)),N._d["set"+(N._isUTC?"UTC":"")+"Month"](Ae,Qe),N}function tr(N){return null!=N?(Mt(this,N),e.updateOffset(this,!0),this):pt(this,"Month")}function ri(){function N(Br,Rn){return Rn.length-Br.length}var Qt,Mr,Ae=[],Qe=[],_t=[];for(Qt=0;Qt<12;Qt++)Mr=P([2e3,Qt]),Ae.push(this.monthsShort(Mr,"")),Qe.push(this.months(Mr,"")),_t.push(this.months(Mr,"")),_t.push(this.monthsShort(Mr,""));for(Ae.sort(N),Qe.sort(N),_t.sort(N),Qt=0;Qt<12;Qt++)Ae[Qt]=nt(Ae[Qt]),Qe[Qt]=nt(Qe[Qt]);for(Qt=0;Qt<24;Qt++)_t[Qt]=nt(_t[Qt]);this._monthsRegex=new RegExp("^("+_t.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+Qe.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+Ae.join("|")+")","i")}function Sr(N){return $e(N)?366:365}j("Y",0,0,function(){var N=this.year();return N<=9999?Te(N,4):"+"+N}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),K("year","y"),fe("year",1),kt("Y",Re),kt("YY",qt,dr),kt("YYYY",G,ar),kt("YYYYY",U,vt),kt("YYYYYY",U,vt),pr(["YYYYY","YYYYYY"],Cn),pr("YYYY",function(N,Ae){Ae[Cn]=2===N.length?e.parseTwoDigitYear(N):ot(N)}),pr("YY",function(N,Ae){Ae[Cn]=e.parseTwoDigitYear(N)}),pr("Y",function(N,Ae){Ae[Cn]=parseInt(N,10)}),e.parseTwoDigitYear=function(N){return ot(N)+(ot(N)>68?1900:2e3)};var Er=ct("FullYear",!0);function lr(N,Ae,Qe,_t,Qt,Mr,Br){var Rn;return N<100&&N>=0?(Rn=new Date(N+400,Ae,Qe,_t,Qt,Mr,Br),isFinite(Rn.getFullYear())&&Rn.setFullYear(N)):Rn=new Date(N,Ae,Qe,_t,Qt,Mr,Br),Rn}function Cr(N){var Ae,Qe;return N<100&&N>=0?((Qe=Array.prototype.slice.call(arguments))[0]=N+400,Ae=new Date(Date.UTC.apply(null,Qe)),isFinite(Ae.getUTCFullYear())&&Ae.setUTCFullYear(N)):Ae=new Date(Date.UTC.apply(null,arguments)),Ae}function Gr(N,Ae,Qe){var _t=7+Ae-Qe;return-(7+Cr(N,0,_t).getUTCDay()-Ae)%7+_t-1}function Ln(N,Ae,Qe,_t,Qt){var Hn,Ha,Rn=1+7*(Ae-1)+(7+Qe-_t)%7+Gr(N,_t,Qt);return Rn<=0?Ha=Sr(Hn=N-1)+Rn:Rn>Sr(N)?(Hn=N+1,Ha=Rn-Sr(N)):(Hn=N,Ha=Rn),{year:Hn,dayOfYear:Ha}}function Xn(N,Ae,Qe){var Mr,Br,_t=Gr(N.year(),Ae,Qe),Qt=Math.floor((N.dayOfYear()-_t-1)/7)+1;return Qt<1?Mr=Qt+ni(Br=N.year()-1,Ae,Qe):Qt>ni(N.year(),Ae,Qe)?(Mr=Qt-ni(N.year(),Ae,Qe),Br=N.year()+1):(Br=N.year(),Mr=Qt),{week:Mr,year:Br}}function ni(N,Ae,Qe){var _t=Gr(N,Ae,Qe),Qt=Gr(N+1,Ae,Qe);return(Sr(N)-_t+Qt)/7}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),K("week","w"),K("isoWeek","W"),fe("week",5),fe("isoWeek",5),kt("w",qt),kt("ww",qt,dr),kt("W",qt),kt("WW",qt,dr),Lr(["w","ww","W","WW"],function(N,Ae,Qe,_t){Ae[_t.substr(0,1)]=ot(N)});function Ia(N,Ae){return N.slice(Ae,7).concat(N.slice(0,Ae))}j("d",0,"do","day"),j("dd",0,0,function(N){return this.localeData().weekdaysMin(this,N)}),j("ddd",0,0,function(N){return this.localeData().weekdaysShort(this,N)}),j("dddd",0,0,function(N){return this.localeData().weekdays(this,N)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),K("day","d"),K("weekday","e"),K("isoWeekday","E"),fe("day",11),fe("weekday",11),fe("isoWeekday",11),kt("d",qt),kt("e",qt),kt("E",qt),kt("dd",function(N,Ae){return Ae.weekdaysMinRegex(N)}),kt("ddd",function(N,Ae){return Ae.weekdaysShortRegex(N)}),kt("dddd",function(N,Ae){return Ae.weekdaysRegex(N)}),Lr(["dd","ddd","dddd"],function(N,Ae,Qe,_t){var Qt=Qe._locale.weekdaysParse(N,_t,Qe._strict);null!=Qt?Ae.d=Qt:q(Qe).invalidWeekday=N}),Lr(["d","e","E"],function(N,Ae,Qe,_t){Ae[_t]=ot(N)});var Oa="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),cn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Yi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wi=Vt,Wi=Vt,ra=Vt;function na(N,Ae,Qe){var _t,Qt,Mr,Br=N.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],_t=0;_t<7;++_t)Mr=P([2e3,1]).day(_t),this._minWeekdaysParse[_t]=this.weekdaysMin(Mr,"").toLocaleLowerCase(),this._shortWeekdaysParse[_t]=this.weekdaysShort(Mr,"").toLocaleLowerCase(),this._weekdaysParse[_t]=this.weekdays(Mr,"").toLocaleLowerCase();return Qe?"dddd"===Ae?-1!==(Qt=vn.call(this._weekdaysParse,Br))?Qt:null:"ddd"===Ae?-1!==(Qt=vn.call(this._shortWeekdaysParse,Br))?Qt:null:-1!==(Qt=vn.call(this._minWeekdaysParse,Br))?Qt:null:"dddd"===Ae?-1!==(Qt=vn.call(this._weekdaysParse,Br))||-1!==(Qt=vn.call(this._shortWeekdaysParse,Br))||-1!==(Qt=vn.call(this._minWeekdaysParse,Br))?Qt:null:"ddd"===Ae?-1!==(Qt=vn.call(this._shortWeekdaysParse,Br))||-1!==(Qt=vn.call(this._weekdaysParse,Br))||-1!==(Qt=vn.call(this._minWeekdaysParse,Br))?Qt:null:-1!==(Qt=vn.call(this._minWeekdaysParse,Br))||-1!==(Qt=vn.call(this._weekdaysParse,Br))||-1!==(Qt=vn.call(this._shortWeekdaysParse,Br))?Qt:null}function Ga(){function N(zo,Gs){return Gs.length-zo.length}var Mr,Br,Rn,Hn,Ha,Ae=[],Qe=[],_t=[],Qt=[];for(Mr=0;Mr<7;Mr++)Br=P([2e3,1]).day(Mr),Rn=nt(this.weekdaysMin(Br,"")),Hn=nt(this.weekdaysShort(Br,"")),Ha=nt(this.weekdays(Br,"")),Ae.push(Rn),Qe.push(Hn),_t.push(Ha),Qt.push(Rn),Qt.push(Hn),Qt.push(Ha);Ae.sort(N),Qe.sort(N),_t.sort(N),Qt.sort(N),this._weekdaysRegex=new RegExp("^("+Qt.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_t.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Qe.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+Ae.join("|")+")","i")}function mi(){return this.hours()%12||12}function Dt(N,Ae){j(N,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),Ae)})}function ve(N,Ae){return Ae._meridiemParse}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,mi),j("k",["kk",2],0,function Ct(){return this.hours()||24}),j("hmm",0,0,function(){return""+mi.apply(this)+Te(this.minutes(),2)}),j("hmmss",0,0,function(){return""+mi.apply(this)+Te(this.minutes(),2)+Te(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+Te(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+Te(this.minutes(),2)+Te(this.seconds(),2)}),Dt("a",!0),Dt("A",!1),K("hour","h"),fe("hour",13),kt("a",ve),kt("A",ve),kt("H",qt),kt("h",qt),kt("k",qt),kt("HH",qt,dr),kt("hh",qt,dr),kt("kk",qt,dr),kt("hmm",br),kt("hmmss",lt),kt("Hmm",br),kt("Hmmss",lt),pr(["H","HH"],ti),pr(["k","kk"],function(N,Ae,Qe){var _t=ot(N);Ae[ti]=24===_t?0:_t}),pr(["a","A"],function(N,Ae,Qe){Qe._isPm=Qe._locale.isPM(N),Qe._meridiem=N}),pr(["h","hh"],function(N,Ae,Qe){Ae[ti]=ot(N),q(Qe).bigHour=!0}),pr("hmm",function(N,Ae,Qe){var _t=N.length-2;Ae[ti]=ot(N.substr(0,_t)),Ae[yr]=ot(N.substr(_t)),q(Qe).bigHour=!0}),pr("hmmss",function(N,Ae,Qe){var _t=N.length-4,Qt=N.length-2;Ae[ti]=ot(N.substr(0,_t)),Ae[yr]=ot(N.substr(_t,2)),Ae[Jr]=ot(N.substr(Qt)),q(Qe).bigHour=!0}),pr("Hmm",function(N,Ae,Qe){var _t=N.length-2;Ae[ti]=ot(N.substr(0,_t)),Ae[yr]=ot(N.substr(_t))}),pr("Hmmss",function(N,Ae,Qe){var _t=N.length-4,Qt=N.length-2;Ae[ti]=ot(N.substr(0,_t)),Ae[yr]=ot(N.substr(_t,2)),Ae[Jr]=ot(N.substr(Qt))});var kn=ct("Hours",!0);var $n,Jn={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Yn,monthsShort:Dn,week:{dow:0,doy:6},weekdays:Oa,weekdaysMin:Yi,weekdaysShort:cn,meridiemParse:/[ap]\.?m?\.?/i},yn={},Mn={};function ia(N,Ae){var Qe,_t=Math.min(N.length,Ae.length);for(Qe=0;Qe<_t;Qe+=1)if(N[Qe]!==Ae[Qe])return Qe;return _t}function Ua(N){return N&&N.toLowerCase().replace("_","-")}function Na(N){var Ae=null;if(void 0===yn[N]&&St&&St.exports&&function ro(N){return null!=N.match("^[^/\\\\]*$")}(N))try{Ae=$n._abbr,s(46700)("./"+N),ga(Ae)}catch{yn[N]=null}return yn[N]}function ga(N,Ae){var Qe;return N&&((Qe=m(Ae)?Bi(N):Ka(N,Ae))?$n=Qe:typeof console<"u"&&console.warn&&console.warn("Locale "+N+" not found. Did you forget to load it?")),$n._abbr}function Ka(N,Ae){if(null!==Ae){var Qe,_t=Jn;if(Ae.abbr=N,null!=yn[N])ue("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."),_t=yn[N]._config;else if(null!=Ae.parentLocale)if(null!=yn[Ae.parentLocale])_t=yn[Ae.parentLocale]._config;else{if(null==(Qe=Na(Ae.parentLocale)))return Mn[Ae.parentLocale]||(Mn[Ae.parentLocale]=[]),Mn[Ae.parentLocale].push({name:N,config:Ae}),null;_t=Qe._config}return yn[N]=new L(W(_t,Ae)),Mn[N]&&Mn[N].forEach(function(Qt){Ka(Qt.name,Qt.config)}),ga(N),yn[N]}return delete yn[N],null}function Bi(N){var Ae;if(N&&N._locale&&N._locale._abbr&&(N=N._locale._abbr),!N)return $n;if(!l(N)){if(Ae=Na(N))return Ae;N=[N]}return function qa(N){for(var Qe,_t,Qt,Mr,Ae=0;Ae<N.length;){for(Qe=(Mr=Ua(N[Ae]).split("-")).length,_t=(_t=Ua(N[Ae+1]))?_t.split("-"):null;Qe>0;){if(Qt=Na(Mr.slice(0,Qe).join("-")))return Qt;if(_t&&_t.length>=Qe&&ia(Mr,_t)>=Qe-1)break;Qe--}Ae++}return $n}(N)}function Aa(N){var Ae,Qe=N._a;return Qe&&-2===q(N).overflow&&(Ae=Qe[Wn]<0||Qe[Wn]>11?Wn:Qe[zn]<1||Qe[zn]>Gn(Qe[Cn],Qe[Wn])?zn:Qe[ti]<0||Qe[ti]>24||24===Qe[ti]&&(0!==Qe[yr]||0!==Qe[Jr]||0!==Qe[wt])?ti:Qe[yr]<0||Qe[yr]>59?yr:Qe[Jr]<0||Qe[Jr]>59?Jr:Qe[wt]<0||Qe[wt]>999?wt:-1,q(N)._overflowDayOfYear&&(Ae<Cn||Ae>zn)&&(Ae=zn),q(N)._overflowWeeks&&-1===Ae&&(Ae=nr),q(N)._overflowWeekday&&-1===Ae&&(Ae=tn),q(N).overflow=Ae),N}var wa=/^\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)?)?$/,Eo=/^\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)?)?$/,To=/Z|[+-]\d\d(?::?\d\d)?/,Pi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ji=[["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/]],Va=/^\/?Date\((-?\d+)/i,Qi=/^(?:(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}))$/,Ri={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xo(N){var Ae,Qe,Mr,Br,Rn,Hn,_t=N._i,Qt=wa.exec(_t)||Eo.exec(_t),Ha=Pi.length,zo=Ji.length;if(Qt){for(q(N).iso=!0,Ae=0,Qe=Ha;Ae<Qe;Ae++)if(Pi[Ae][1].exec(Qt[1])){Br=Pi[Ae][0],Mr=!1!==Pi[Ae][2];break}if(null==Br)return void(N._isValid=!1);if(Qt[3]){for(Ae=0,Qe=zo;Ae<Qe;Ae++)if(Ji[Ae][1].exec(Qt[3])){Rn=(Qt[2]||" ")+Ji[Ae][0];break}if(null==Rn)return void(N._isValid=!1)}if(!Mr&&null!=Rn)return void(N._isValid=!1);if(Qt[4]){if(!To.exec(Qt[4]))return void(N._isValid=!1);Hn="Z"}N._f=Br+(Rn||"")+(Hn||""),je(N)}else N._isValid=!1}function Ra(N){var Ae=parseInt(N,10);return Ae<=49?2e3+Ae:Ae<=999?1900+Ae:Ae}function eo(N){var Qe,Ae=Qi.exec(function hs(N){return N.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(N._i));if(Ae){if(Qe=function so(N,Ae,Qe,_t,Qt,Mr){var Br=[Ra(N),Dn.indexOf(Ae),parseInt(Qe,10),parseInt(_t,10),parseInt(Qt,10)];return Mr&&Br.push(parseInt(Mr,10)),Br}(Ae[4],Ae[3],Ae[2],Ae[5],Ae[6],Ae[7]),!function Lo(N,Ae,Qe){return!N||cn.indexOf(N)===new Date(Ae[0],Ae[1],Ae[2]).getDay()||(q(Qe).weekdayMismatch=!0,Qe._isValid=!1,!1)}(Ae[1],Qe,N))return;N._a=Qe,N._tzm=function Mo(N,Ae,Qe){if(N)return Ri[N];if(Ae)return 0;var _t=parseInt(Qe,10),Qt=_t%100;return(_t-Qt)/100*60+Qt}(Ae[8],Ae[9],Ae[10]),N._d=Cr.apply(null,N._a),N._d.setUTCMinutes(N._d.getUTCMinutes()-N._tzm),q(N).rfc2822=!0}else N._isValid=!1}function Oo(N,Ae,Qe){return N??Ae??Qe}function vo(N){var Ae,Qe,Qt,Mr,Br,_t=[];if(!N._d){for(Qt=function Qn(N){var Ae=new Date(e.now());return N._useUTC?[Ae.getUTCFullYear(),Ae.getUTCMonth(),Ae.getUTCDate()]:[Ae.getFullYear(),Ae.getMonth(),Ae.getDate()]}(N),N._w&&null==N._a[zn]&&null==N._a[Wn]&&function rt(N){var Ae,Qe,_t,Qt,Mr,Br,Rn,Hn,Ha;null!=(Ae=N._w).GG||null!=Ae.W||null!=Ae.E?(Mr=1,Br=4,Qe=Oo(Ae.GG,N._a[Cn],Xn(xi(),1,4).year),_t=Oo(Ae.W,1),((Qt=Oo(Ae.E,1))<1||Qt>7)&&(Hn=!0)):(Mr=N._locale._week.dow,Br=N._locale._week.doy,Ha=Xn(xi(),Mr,Br),Qe=Oo(Ae.gg,N._a[Cn],Ha.year),_t=Oo(Ae.w,Ha.week),null!=Ae.d?((Qt=Ae.d)<0||Qt>6)&&(Hn=!0):null!=Ae.e?(Qt=Ae.e+Mr,(Ae.e<0||Ae.e>6)&&(Hn=!0)):Qt=Mr),_t<1||_t>ni(Qe,Mr,Br)?q(N)._overflowWeeks=!0:null!=Hn?q(N)._overflowWeekday=!0:(Rn=Ln(Qe,_t,Qt,Mr,Br),N._a[Cn]=Rn.year,N._dayOfYear=Rn.dayOfYear)}(N),null!=N._dayOfYear&&(Br=Oo(N._a[Cn],Qt[Cn]),(N._dayOfYear>Sr(Br)||0===N._dayOfYear)&&(q(N)._overflowDayOfYear=!0),Qe=Cr(Br,0,N._dayOfYear),N._a[Wn]=Qe.getUTCMonth(),N._a[zn]=Qe.getUTCDate()),Ae=0;Ae<3&&null==N._a[Ae];++Ae)N._a[Ae]=_t[Ae]=Qt[Ae];for(;Ae<7;Ae++)N._a[Ae]=_t[Ae]=null==N._a[Ae]?2===Ae?1:0:N._a[Ae];24===N._a[ti]&&0===N._a[yr]&&0===N._a[Jr]&&0===N._a[wt]&&(N._nextDay=!0,N._a[ti]=0),N._d=(N._useUTC?Cr:lr).apply(null,_t),Mr=N._useUTC?N._d.getUTCDay():N._d.getDay(),null!=N._tzm&&N._d.setUTCMinutes(N._d.getUTCMinutes()-N._tzm),N._nextDay&&(N._a[ti]=24),N._w&&typeof N._w.d<"u"&&N._w.d!==Mr&&(q(N).weekdayMismatch=!0)}}function je(N){if(N._f!==e.ISO_8601)if(N._f!==e.RFC_2822){N._a=[],q(N).empty=!0;var Qe,_t,Qt,Mr,Br,Ha,zo,Ae=""+N._i,Rn=Ae.length,Hn=0;for(zo=(Qt=ze(N._f,N._locale).match(w)||[]).length,Qe=0;Qe<zo;Qe++)(_t=(Ae.match(Me(Mr=Qt[Qe],N))||[])[0])&&((Br=Ae.substr(0,Ae.indexOf(_t))).length>0&&q(N).unusedInput.push(Br),Ae=Ae.slice(Ae.indexOf(_t)+_t.length),Hn+=_t.length),z[Mr]?(_t?q(N).empty=!1:q(N).unusedTokens.push(Mr),Kr(Mr,_t,N)):N._strict&&!_t&&q(N).unusedTokens.push(Mr);q(N).charsLeftOver=Rn-Hn,Ae.length>0&&q(N).unusedInput.push(Ae),N._a[ti]<=12&&!0===q(N).bigHour&&N._a[ti]>0&&(q(N).bigHour=void 0),q(N).parsedDateParts=N._a.slice(0),q(N).meridiem=N._meridiem,N._a[ti]=function Ue(N,Ae,Qe){var _t;return null==Qe?Ae:null!=N.meridiemHour?N.meridiemHour(Ae,Qe):(null!=N.isPM&&((_t=N.isPM(Qe))&&Ae<12&&(Ae+=12),!_t&&12===Ae&&(Ae=0)),Ae)}(N._locale,N._a[ti],N._meridiem),null!==(Ha=q(N).era)&&(N._a[Cn]=N._locale.erasConvertYear(Ha,N._a[Cn])),vo(N),Aa(N)}else eo(N);else xo(N)}function pa(N){var Ae=N._i,Qe=N._f;return N._locale=N._locale||Bi(N._l),null===Ae||void 0===Qe&&""===Ae?T({nullInput:!0}):("string"==typeof Ae&&(N._i=Ae=N._locale.preparse(Ae)),ye(Ae)?new de(Aa(Ae)):(C(Ae)?N._d=Ae:l(Qe)?function Yt(N){var Ae,Qe,_t,Qt,Mr,Br,Rn=!1,Hn=N._f.length;if(0===Hn)return q(N).invalidFormat=!0,void(N._d=new Date(NaN));for(Qt=0;Qt<Hn;Qt++)Mr=0,Br=!1,Ae=V({},N),null!=N._useUTC&&(Ae._useUTC=N._useUTC),Ae._f=N._f[Qt],je(Ae),M(Ae)&&(Br=!0),Mr+=q(Ae).charsLeftOver,Mr+=10*q(Ae).unusedTokens.length,q(Ae).score=Mr,Rn?Mr<_t&&(_t=Mr,Qe=Ae):(null==_t||Mr<_t||Br)&&(_t=Mr,Qe=Ae,Br&&(Rn=!0));i(N,Qe||Ae)}(N):Qe?je(N):function Wr(N){var Ae=N._i;m(Ae)?N._d=new Date(e.now()):C(Ae)?N._d=new Date(Ae.valueOf()):"string"==typeof Ae?function Bo(N){var Ae=Va.exec(N._i);null===Ae?(xo(N),!1===N._isValid&&(delete N._isValid,eo(N),!1===N._isValid&&(delete N._isValid,N._strict?N._isValid=!1:e.createFromInputFallback(N)))):N._d=new Date(+Ae[1])}(N):l(Ae)?(N._a=n(Ae.slice(0),function(Qe){return parseInt(Qe,10)}),vo(N)):r(Ae)?function Yr(N){if(!N._d){var Ae=B(N._i);N._a=n([Ae.year,Ae.month,void 0===Ae.day?Ae.date:Ae.day,Ae.hour,Ae.minute,Ae.second,Ae.millisecond],function(_t){return _t&&parseInt(_t,10)}),vo(N)}}(N):v(Ae)?N._d=new Date(Ae):e.createFromInputFallback(N)}(N),M(N)||(N._d=null),N))}function ii(N,Ae,Qe,_t,Qt){var Mr={};return(!0===Ae||!1===Ae)&&(_t=Ae,Ae=void 0),(!0===Qe||!1===Qe)&&(_t=Qe,Qe=void 0),(r(N)&&E(N)||l(N)&&0===N.length)&&(N=void 0),Mr._isAMomentObject=!0,Mr._useUTC=Mr._isUTC=Qt,Mr._l=Qe,Mr._i=N,Mr._f=Ae,Mr._strict=_t,function Un(N){var Ae=new de(Aa(pa(N)));return Ae._nextDay&&(Ae.add(1,"d"),Ae._nextDay=void 0),Ae}(Mr)}function xi(N,Ae,Qe,_t){return ii(N,Ae,Qe,_t,!1)}e.createFromInputFallback=Le("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(N){N._d=new Date(N._i+(N._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Jo=Le("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var N=xi.apply(null,arguments);return this.isValid()&&N.isValid()?N<this?this:N:T()}),Wa=Le("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var N=xi.apply(null,arguments);return this.isValid()&&N.isValid()?N>this?this:N:T()});function vs(N,Ae){var Qe,_t;if(1===Ae.length&&l(Ae[0])&&(Ae=Ae[0]),!Ae.length)return xi();for(Qe=Ae[0],_t=1;_t<Ae.length;++_t)(!Ae[_t].isValid()||Ae[_t][N](Qe))&&(Qe=Ae[_t]);return Qe}var mt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Or(N){var Ae=B(N),Qe=Ae.year||0,_t=Ae.quarter||0,Qt=Ae.month||0,Mr=Ae.week||Ae.isoWeek||0,Br=Ae.day||0,Rn=Ae.hour||0,Hn=Ae.minute||0,Ha=Ae.second||0,zo=Ae.millisecond||0;this._isValid=function Xt(N){var Ae,_t,Qe=!1,Qt=mt.length;for(Ae in N)if(c(N,Ae)&&(-1===vn.call(mt,Ae)||null!=N[Ae]&&isNaN(N[Ae])))return!1;for(_t=0;_t<Qt;++_t)if(N[mt[_t]]){if(Qe)return!1;parseFloat(N[mt[_t]])!==ot(N[mt[_t]])&&(Qe=!0)}return!0}(Ae),this._milliseconds=+zo+1e3*Ha+6e4*Hn+1e3*Rn*60*60,this._days=+Br+7*Mr,this._months=+Qt+3*_t+12*Qe,this._data={},this._locale=Bi(),this._bubble()}function Vr(N){return N instanceof Or}function Qr(N){return N<0?-1*Math.round(-1*N):Math.round(N)}function Tn(N,Ae){j(N,0,0,function(){var Qe=this.utcOffset(),_t="+";return Qe<0&&(Qe=-Qe,_t="-"),_t+Te(~~(Qe/60),2)+Ae+Te(~~Qe%60,2)})}Tn("Z",":"),Tn("ZZ",""),kt("Z",Nt),kt("ZZ",Nt),pr(["Z","ZZ"],function(N,Ae,Qe){Qe._useUTC=!0,Qe._tzm=di(Nt,N)});var si=/([\+\-]|\d\d)/gi;function di(N,Ae){var Qt,Mr,Qe=(Ae||"").match(N);return null===Qe?null:0===(Mr=60*(Qt=((Qe[Qe.length-1]||[])+"").match(si)||["-",0,0])[1]+ot(Qt[2]))?0:"+"===Qt[0]?Mr:-Mr}function vi(N,Ae){var Qe,_t;return Ae._isUTC?(Qe=Ae.clone(),_t=(ye(N)||C(N)?N.valueOf():xi(N).valueOf())-Qe.valueOf(),Qe._d.setTime(Qe._d.valueOf()+_t),e.updateOffset(Qe,!1),Qe):xi(N).local()}function qi(N){return-Math.round(N._d.getTimezoneOffset())}function fs(){return!!this.isValid()&&this._isUTC&&0===this._offset}e.updateOffset=function(){};var ft=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Lt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function it(N,Ae){var Qt,Mr,Br,Qe=N,_t=null;return Vr(N)?Qe={ms:N._milliseconds,d:N._days,M:N._months}:v(N)||!isNaN(+N)?(Qe={},Ae?Qe[Ae]=+N:Qe.milliseconds=+N):(_t=ft.exec(N))?(Qt="-"===_t[1]?-1:1,Qe={y:0,d:ot(_t[zn])*Qt,h:ot(_t[ti])*Qt,m:ot(_t[yr])*Qt,s:ot(_t[Jr])*Qt,ms:ot(Qr(1e3*_t[wt]))*Qt}):(_t=Lt.exec(N))?Qe={y:cr(_t[2],Qt="-"===_t[1]?-1:1),M:cr(_t[3],Qt),w:cr(_t[4],Qt),d:cr(_t[5],Qt),h:cr(_t[6],Qt),m:cr(_t[7],Qt),s:cr(_t[8],Qt)}:null==Qe?Qe={}:"object"==typeof Qe&&("from"in Qe||"to"in Qe)&&(Br=function Zr(N,Ae){var Qe;return N.isValid()&&Ae.isValid()?(Ae=vi(Ae,N),N.isBefore(Ae)?Qe=Fr(N,Ae):((Qe=Fr(Ae,N)).milliseconds=-Qe.milliseconds,Qe.months=-Qe.months),Qe):{milliseconds:0,months:0}}(xi(Qe.from),xi(Qe.to)),(Qe={}).ms=Br.milliseconds,Qe.M=Br.months),Mr=new Or(Qe),Vr(N)&&c(N,"_locale")&&(Mr._locale=N._locale),Vr(N)&&c(N,"_isValid")&&(Mr._isValid=N._isValid),Mr}function cr(N,Ae){var Qe=N&&parseFloat(N.replace(",","."));return(isNaN(Qe)?0:Qe)*Ae}function Fr(N,Ae){var Qe={};return Qe.months=Ae.month()-N.month()+12*(Ae.year()-N.year()),N.clone().add(Qe.months,"M").isAfter(Ae)&&--Qe.months,Qe.milliseconds=+Ae-+N.clone().add(Qe.months,"M"),Qe}function Zi(N,Ae){return function(Qe,_t){var Mr;return null!==_t&&!isNaN(+_t)&&(ue(Ae,"moment()."+Ae+"(period, number) is deprecated. Please use moment()."+Ae+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Mr=Qe,Qe=_t,_t=Mr),aa(this,it(Qe,_t),N),this}}function aa(N,Ae,Qe,_t){var Qt=Ae._milliseconds,Mr=Qr(Ae._days),Br=Qr(Ae._months);N.isValid()&&(_t=_t??!0,Br&&Mt(N,pt(N,"Month")+Br*Qe),Mr&&$t(N,"Date",pt(N,"Date")+Mr*Qe),Qt&&N._d.setTime(N._d.valueOf()+Qt*Qe),_t&&e.updateOffset(N,Mr||Br))}it.fn=Or.prototype,it.invalid=function mr(){return it(NaN)};var as=Zi(1,"add"),Io=Zi(-1,"subtract");function Yo(N){return"string"==typeof N||N instanceof String}function Rs(N){return ye(N)||C(N)||Yo(N)||v(N)||function gs(N){var Ae=l(N),Qe=!1;return Ae&&(Qe=0===N.filter(function(_t){return!v(_t)&&Yo(N)}).length),Ae&&Qe}(N)||function xs(N){var Qt,Ae=r(N)&&!E(N),Qe=!1,_t=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],Br=_t.length;for(Qt=0;Qt<Br;Qt+=1)Qe=Qe||c(N,_t[Qt]);return Ae&&Qe}(N)||null==N}function jt(N,Ae){if(N.date()<Ae.date())return-jt(Ae,N);var Qe=12*(Ae.year()-N.year())+(Ae.month()-N.month()),_t=N.clone().add(Qe,"months");return-(Qe+(Ae-_t<0?(Ae-_t)/(_t-N.clone().add(Qe-1,"months")):(Ae-_t)/(N.clone().add(Qe+1,"months")-_t)))||0}function oa(N){var Ae;return void 0===N?this._locale._abbr:(null!=(Ae=Bi(N))&&(this._locale=Ae),this)}e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ea=Le("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(N){return void 0===N?this.localeData():this.locale(N)});function da(){return this._locale}var Za=1e3,va=60*Za,co=60*va,ki=3506328*co;function Li(N,Ae){return(N%Ae+Ae)%Ae}function Qo(N,Ae,Qe){return N<100&&N>=0?new Date(N+400,Ae,Qe)-ki:new Date(N,Ae,Qe).valueOf()}function ka(N,Ae,Qe){return N<100&&N>=0?Date.UTC(N+400,Ae,Qe)-ki:Date.UTC(N,Ae,Qe)}function es(N,Ae){return Ae.erasAbbrRegex(N)}function ea(){var Qt,Mr,N=[],Ae=[],Qe=[],_t=[],Br=this.eras();for(Qt=0,Mr=Br.length;Qt<Mr;++Qt)Ae.push(nt(Br[Qt].name)),N.push(nt(Br[Qt].abbr)),Qe.push(nt(Br[Qt].narrow)),_t.push(nt(Br[Qt].name)),_t.push(nt(Br[Qt].abbr)),_t.push(nt(Br[Qt].narrow));this._erasRegex=new RegExp("^("+_t.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+Ae.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+N.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+Qe.join("|")+")","i")}function Hi(N,Ae){j(0,[N,N.length],0,Ae)}function _l(N,Ae,Qe,_t,Qt){var Mr;return null==N?Xn(this,_t,Qt).year:(Ae>(Mr=ni(N,_t,Qt))&&(Ae=Mr),Sl.call(this,N,Ae,Qe,_t,Qt))}function Sl(N,Ae,Qe,_t,Qt){var Mr=Ln(N,Ae,Qe,_t,Qt),Br=Cr(Mr.year,0,Mr.dayOfYear);return this.year(Br.getUTCFullYear()),this.month(Br.getUTCMonth()),this.date(Br.getUTCDate()),this}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),kt("N",es),kt("NN",es),kt("NNN",es),kt("NNNN",function wo(N,Ae){return Ae.erasNameRegex(N)}),kt("NNNNN",function Bn(N,Ae){return Ae.erasNarrowRegex(N)}),pr(["N","NN","NNN","NNNN","NNNNN"],function(N,Ae,Qe,_t){var Qt=Qe._locale.erasParse(N,_t,Qe._strict);Qt?q(Qe).era=Qt:q(Qe).invalidEra=N}),kt("y",ne),kt("yy",ne),kt("yyy",ne),kt("yyyy",ne),kt("yo",function Fi(N,Ae){return Ae._eraYearOrdinalRegex||ne}),pr(["y","yy","yyy","yyyy"],Cn),pr(["yo"],function(N,Ae,Qe,_t){var Qt;Qe._locale._eraYearOrdinalRegex&&(Qt=N.match(Qe._locale._eraYearOrdinalRegex)),Ae[Cn]=Qe._locale.eraYearOrdinalParse?Qe._locale.eraYearOrdinalParse(N,Qt):parseInt(N,10)}),j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Hi("gggg","weekYear"),Hi("ggggg","weekYear"),Hi("GGGG","isoWeekYear"),Hi("GGGGG","isoWeekYear"),K("weekYear","gg"),K("isoWeekYear","GG"),fe("weekYear",1),fe("isoWeekYear",1),kt("G",Re),kt("g",Re),kt("GG",qt,dr),kt("gg",qt,dr),kt("GGGG",G,ar),kt("gggg",G,ar),kt("GGGGG",U,vt),kt("ggggg",U,vt),Lr(["gggg","ggggg","GGGG","GGGGG"],function(N,Ae,Qe,_t){Ae[_t.substr(0,2)]=ot(N)}),Lr(["gg","GG"],function(N,Ae,Qe,_t){Ae[_t]=e.parseTwoDigitYear(N)}),j("Q",0,"Qo","quarter"),K("quarter","Q"),fe("quarter",7),kt("Q",yt),pr("Q",function(N,Ae){Ae[Wn]=3*(ot(N)-1)}),j("D",["DD",2],"Do","date"),K("date","D"),fe("date",9),kt("D",qt),kt("DD",qt,dr),kt("Do",function(N,Ae){return N?Ae._dayOfMonthOrdinalParse||Ae._ordinalParse:Ae._dayOfMonthOrdinalParseLenient}),pr(["D","DD"],zn),pr("Do",function(N,Ae){Ae[zn]=ot(N.match(qt)[0])});var Pe=ct("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),K("dayOfYear","DDD"),fe("dayOfYear",4),kt("DDD",De),kt("DDDD",bt),pr(["DDD","DDDD"],function(N,Ae,Qe){Qe._dayOfYear=ot(N)}),j("m",["mm",2],0,"minute"),K("minute","m"),fe("minute",14),kt("m",qt),kt("mm",qt,dr),pr(["m","mm"],yr);var y=ct("Minutes",!1);j("s",["ss",2],0,"second"),K("second","s"),fe("second",15),kt("s",qt),kt("ss",qt,dr),pr(["s","ss"],Jr);var at,Ft,X=ct("Seconds",!1);for(j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return 10*this.millisecond()}),j(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),j(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),j(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),j(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),j(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),K("millisecond","ms"),fe("millisecond",16),kt("S",De,yt),kt("SS",De,dr),kt("SSS",De,bt),at="SSSS";at.length<=9;at+="S")kt(at,ne);function sr(N,Ae){Ae[wt]=ot(1e3*("0."+N))}for(at="S";at.length<=9;at+="S")pr(at,sr);Ft=ct("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var Pr=de.prototype;function Ai(N){return N}Pr.add=as,Pr.calendar=function ht(N,Ae){1===arguments.length&&(arguments[0]?Rs(arguments[0])?(N=arguments[0],Ae=void 0):function ps(N){var Qt,Ae=r(N)&&!E(N),Qe=!1,_t=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(Qt=0;Qt<_t.length;Qt+=1)Qe=Qe||c(N,_t[Qt]);return Ae&&Qe}(arguments[0])&&(Ae=arguments[0],N=void 0):(N=void 0,Ae=void 0));var Qe=N||xi(),_t=vi(Qe,this).startOf("day"),Qt=e.calendarFormat(this,_t)||"sameElse",Mr=Ae&&(ee(Ae[Qt])?Ae[Qt].call(this,Qe):Ae[Qt]);return this.format(Mr||this.localeData().calendar(Qt,this,xi(Qe)))},Pr.clone=function He(){return new de(this)},Pr.diff=function dt(N,Ae,Qe){var _t,Qt,Mr;if(!this.isValid())return NaN;if(!(_t=vi(N,this)).isValid())return NaN;switch(Qt=6e4*(_t.utcOffset()-this.utcOffset()),Ae=Q(Ae)){case"year":Mr=jt(this,_t)/12;break;case"month":Mr=jt(this,_t);break;case"quarter":Mr=jt(this,_t)/3;break;case"second":Mr=(this-_t)/1e3;break;case"minute":Mr=(this-_t)/6e4;break;case"hour":Mr=(this-_t)/36e5;break;case"day":Mr=(this-_t-Qt)/864e5;break;case"week":Mr=(this-_t-Qt)/6048e5;break;default:Mr=this-_t}return Qe?Mr:et(Mr)},Pr.endOf=function Go(N){var Ae,Qe;if(void 0===(N=Q(N))||"millisecond"===N||!this.isValid())return this;switch(Qe=this._isUTC?ka:Qo,N){case"year":Ae=Qe(this.year()+1,0,1)-1;break;case"quarter":Ae=Qe(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":Ae=Qe(this.year(),this.month()+1,1)-1;break;case"week":Ae=Qe(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":Ae=Qe(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":Ae=Qe(this.year(),this.month(),this.date()+1)-1;break;case"hour":Ae=this._d.valueOf(),Ae+=co-Li(Ae+(this._isUTC?0:this.utcOffset()*va),co)-1;break;case"minute":Ae=this._d.valueOf(),Ae+=va-Li(Ae,va)-1;break;case"second":Ae=this._d.valueOf(),Ae+=Za-Li(Ae,Za)-1}return this._d.setTime(Ae),e.updateOffset(this,!0),this},Pr.format=function Fn(N){N||(N=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var Ae=We(this,N);return this.localeData().postformat(Ae)},Pr.from=function qn(N,Ae){return this.isValid()&&(ye(N)&&N.isValid()||xi(N).isValid())?it({to:this,from:N}).locale(this.locale()).humanize(!Ae):this.localeData().invalidDate()},Pr.fromNow=function hi(N){return this.from(xi(),N)},Pr.to=function _i(N,Ae){return this.isValid()&&(ye(N)&&N.isValid()||xi(N).isValid())?it({from:this,to:N}).locale(this.locale()).humanize(!Ae):this.localeData().invalidDate()},Pr.toNow=function gi(N){return this.to(xi(),N)},Pr.get=function It(N){return ee(this[N=Q(N)])?this[N]():this},Pr.invalidAt=function Bt(){return q(this).overflow},Pr.isAfter=function Ut(N,Ae){var Qe=ye(N)?N:xi(N);return!(!this.isValid()||!Qe.isValid())&&("millisecond"===(Ae=Q(Ae)||"millisecond")?this.valueOf()>Qe.valueOf():Qe.valueOf()<this.clone().startOf(Ae).valueOf())},Pr.isBefore=function _r(N,Ae){var Qe=ye(N)?N:xi(N);return!(!this.isValid()||!Qe.isValid())&&("millisecond"===(Ae=Q(Ae)||"millisecond")?this.valueOf()<Qe.valueOf():this.clone().endOf(Ae).valueOf()<Qe.valueOf())},Pr.isBetween=function $r(N,Ae,Qe,_t){var Qt=ye(N)?N:xi(N),Mr=ye(Ae)?Ae:xi(Ae);return!!(this.isValid()&&Qt.isValid()&&Mr.isValid())&&("("===(_t=_t||"()")[0]?this.isAfter(Qt,Qe):!this.isBefore(Qt,Qe))&&(")"===_t[1]?this.isBefore(Mr,Qe):!this.isAfter(Mr,Qe))},Pr.isSame=function Fe(N,Ae){var _t,Qe=ye(N)?N:xi(N);return!(!this.isValid()||!Qe.isValid())&&("millisecond"===(Ae=Q(Ae)||"millisecond")?this.valueOf()===Qe.valueOf():(_t=Qe.valueOf(),this.clone().startOf(Ae).valueOf()<=_t&&_t<=this.clone().endOf(Ae).valueOf()))},Pr.isSameOrAfter=function er(N,Ae){return this.isSame(N,Ae)||this.isAfter(N,Ae)},Pr.isSameOrBefore=function pe(N,Ae){return this.isSame(N,Ae)||this.isBefore(N,Ae)},Pr.isValid=function $(){return M(this)},Pr.lang=Ea,Pr.locale=oa,Pr.localeData=da,Pr.max=Wa,Pr.min=Jo,Pr.parsingFlags=function st(){return i({},q(this))},Pr.set=function fr(N,Ae){if("object"==typeof N){var _t,Qe=function qe(N){var Qe,Ae=[];for(Qe in N)c(N,Qe)&&Ae.push({unit:Qe,priority:re[Qe]});return Ae.sort(function(_t,Qt){return _t.priority-Qt.priority}),Ae}(N=B(N)),Qt=Qe.length;for(_t=0;_t<Qt;_t++)this[Qe[_t].unit](N[Qe[_t].unit])}else if(ee(this[N=Q(N)]))return this[N](Ae);return this},Pr.startOf=function qo(N){var Ae,Qe;if(void 0===(N=Q(N))||"millisecond"===N||!this.isValid())return this;switch(Qe=this._isUTC?ka:Qo,N){case"year":Ae=Qe(this.year(),0,1);break;case"quarter":Ae=Qe(this.year(),this.month()-this.month()%3,1);break;case"month":Ae=Qe(this.year(),this.month(),1);break;case"week":Ae=Qe(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":Ae=Qe(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":Ae=Qe(this.year(),this.month(),this.date());break;case"hour":Ae=this._d.valueOf(),Ae-=Li(Ae+(this._isUTC?0:this.utcOffset()*va),co);break;case"minute":Ae=this._d.valueOf(),Ae-=Li(Ae,va);break;case"second":Ae=this._d.valueOf(),Ae-=Li(Ae,Za)}return this._d.setTime(Ae),e.updateOffset(this,!0),this},Pr.subtract=Io,Pr.toArray=function Ze(){var N=this;return[N.year(),N.month(),N.date(),N.hour(),N.minute(),N.second(),N.millisecond()]},Pr.toObject=function Wt(){var N=this;return{years:N.year(),months:N.month(),date:N.date(),hours:N.hours(),minutes:N.minutes(),seconds:N.seconds(),milliseconds:N.milliseconds()}},Pr.toDate=function ya(){return new Date(this.valueOf())},Pr.toISOString=function Ur(N){if(!this.isValid())return null;var Ae=!0!==N,Qe=Ae?this.clone().utc():this;return Qe.year()<0||Qe.year()>9999?We(Qe,Ae?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ee(Date.prototype.toISOString)?Ae?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",We(Qe,"Z")):We(Qe,Ae?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Pr.inspect=function En(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var Qe,_t,N="moment",Ae="";return this.isLocal()||(N=0===this.utcOffset()?"moment.utc":"moment.parseZone",Ae="Z"),Qe="["+N+'("]',_t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(Qe+_t+"-MM-DD[T]HH:mm:ss.SSS"+Ae+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Pr[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Pr.toJSON=function g(){return this.isValid()?this.toISOString():null},Pr.toString=function Ir(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Pr.unix=function Vo(){return Math.floor(this.valueOf()/1e3)},Pr.valueOf=function $o(){return this._d.valueOf()-6e4*(this._offset||0)},Pr.creationData=function hr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Pr.eraName=function An(){var N,Ae,Qe,_t=this.localeData().eras();for(N=0,Ae=_t.length;N<Ae;++N)if(Qe=this.clone().startOf("day").valueOf(),_t[N].since<=Qe&&Qe<=_t[N].until||_t[N].until<=Qe&&Qe<=_t[N].since)return _t[N].name;return""},Pr.eraNarrow=function Ki(){var N,Ae,Qe,_t=this.localeData().eras();for(N=0,Ae=_t.length;N<Ae;++N)if(Qe=this.clone().startOf("day").valueOf(),_t[N].since<=Qe&&Qe<=_t[N].until||_t[N].until<=Qe&&Qe<=_t[N].since)return _t[N].narrow;return""},Pr.eraAbbr=function Xa(){var N,Ae,Qe,_t=this.localeData().eras();for(N=0,Ae=_t.length;N<Ae;++N)if(Qe=this.clone().startOf("day").valueOf(),_t[N].since<=Qe&&Qe<=_t[N].until||_t[N].until<=Qe&&Qe<=_t[N].since)return _t[N].abbr;return""},Pr.eraYear=function fi(){var N,Ae,Qe,_t,Qt=this.localeData().eras();for(N=0,Ae=Qt.length;N<Ae;++N)if(Qe=Qt[N].since<=Qt[N].until?1:-1,_t=this.clone().startOf("day").valueOf(),Qt[N].since<=_t&&_t<=Qt[N].until||Qt[N].until<=_t&&_t<=Qt[N].since)return(this.year()-e(Qt[N].since).year())*Qe+Qt[N].offset;return this.year()},Pr.year=Er,Pr.isLeapYear=function Ot(){return $e(this.year())},Pr.weekYear=function ys(N){return _l.call(this,N,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Pr.isoWeekYear=function yo(N){return _l.call(this,N,this.isoWeek(),this.isoWeekday(),1,4)},Pr.quarter=Pr.quarters=function Ls(N){return null==N?Math.ceil((this.month()+1)/3):this.month(3*(N-1)+this.month()%3)},Pr.month=tr,Pr.daysInMonth=function kr(){return Gn(this.year(),this.month())},Pr.week=Pr.weeks=function ma(N){var Ae=this.localeData().week(this);return null==N?Ae:this.add(7*(N-Ae),"d")},Pr.isoWeek=Pr.isoWeeks=function bn(N){var Ae=Xn(this,1,4).week;return null==N?Ae:this.add(7*(N-Ae),"d")},Pr.weeksInYear=function Sa(){var N=this.localeData()._week;return ni(this.year(),N.dow,N.doy)},Pr.weeksInWeekYear=function yl(){var N=this.localeData()._week;return ni(this.weekYear(),N.dow,N.doy)},Pr.isoWeeksInYear=function vl(){return ni(this.year(),1,4)},Pr.isoWeeksInISOWeekYear=function nl(){return ni(this.isoWeekYear(),1,4)},Pr.date=Pe,Pr.day=Pr.days=function Co(N){if(!this.isValid())return null!=N?this:NaN;var Ae=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=N?(N=function ha(N,Ae){return"string"!=typeof N?N:isNaN(N)?"number"==typeof(N=Ae.weekdaysParse(N))?N:null:parseInt(N,10)}(N,this.localeData()),this.add(N-Ae,"d")):Ae},Pr.weekday=function Fa(N){if(!this.isValid())return null!=N?this:NaN;var Ae=(this.day()+7-this.localeData()._week.dow)%7;return null==N?Ae:this.add(N-Ae,"d")},Pr.isoWeekday=function la(N){if(!this.isValid())return null!=N?this:NaN;if(null!=N){var Ae=function po(N,Ae){return"string"==typeof N?Ae.weekdaysParse(N)%7||7:isNaN(N)?null:N}(N,this.localeData());return this.day(this.day()%7?Ae:Ae-7)}return this.day()||7},Pr.dayOfYear=function rr(N){var Ae=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==N?Ae:this.add(N-Ae,"d")},Pr.hour=Pr.hours=kn,Pr.minute=Pr.minutes=y,Pr.second=Pr.seconds=X,Pr.millisecond=Pr.milliseconds=Ft,Pr.utcOffset=function Da(N,Ae,Qe){var Qt,_t=this._offset||0;if(!this.isValid())return null!=N?this:NaN;if(null!=N){if("string"==typeof N){if(null===(N=di(Nt,N)))return this}else Math.abs(N)<16&&!Qe&&(N*=60);return!this._isUTC&&Ae&&(Qt=qi(this)),this._offset=N,this._isUTC=!0,null!=Qt&&this.add(Qt,"m"),_t!==N&&(!Ae||this._changeInProgress?aa(this,it(N-_t,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?_t:qi(this)},Pr.utc=function Pa(N){return this.utcOffset(0,N)},Pr.local=function za(N){return this._isUTC&&(this.utcOffset(0,N),this._isUTC=!1,N&&this.subtract(qi(this),"m")),this},Pr.parseZone=function ja(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var N=di(Xe,this._i);null!=N?this.utcOffset(N):this.utcOffset(0,!0)}return this},Pr.hasAlignedHourOffset=function lo(N){return!!this.isValid()&&(N=N?xi(N).utcOffset():0,(this.utcOffset()-N)%60==0)},Pr.isDST=function ba(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Pr.isLocal=function Ho(){return!!this.isValid()&&!this._isUTC},Pr.isUtcOffset=function Fo(){return!!this.isValid()&&this._isUTC},Pr.isUtc=fs,Pr.isUTC=fs,Pr.zoneAbbr=function xr(){return this._isUTC?"UTC":""},Pr.zoneName=function en(){return this._isUTC?"Coordinated Universal Time":""},Pr.dates=Le("dates accessor is deprecated. Use date instead.",Pe),Pr.months=Le("months accessor is deprecated. Use month instead",tr),Pr.years=Le("years accessor is deprecated. Use year instead",Er),Pr.zone=Le("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function ua(N,Ae){return null!=N?("string"!=typeof N&&(N=-N),this.utcOffset(N,Ae),this):-this.utcOffset()}),Pr.isDSTShifted=Le("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Ba(){if(!m(this._isDSTShifted))return this._isDSTShifted;var Ae,N={};return V(N,this),(N=pa(N))._a?(Ae=N._isUTC?P(N._a):xi(N._a),this._isDSTShifted=this.isValid()&&function qr(N,Ae,Qe){var Br,_t=Math.min(N.length,Ae.length),Qt=Math.abs(N.length-Ae.length),Mr=0;for(Br=0;Br<_t;Br++)(Qe&&N[Br]!==Ae[Br]||!Qe&&ot(N[Br])!==ot(Ae[Br]))&&Mr++;return Mr+Qt}(N._a,Ae.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var ae=L.prototype;function me(N,Ae,Qe,_t){var Qt=Bi(),Mr=P().set(_t,Ae);return Qt[Qe](Mr,N)}function J(N,Ae,Qe){if(v(N)&&(Ae=N,N=void 0),N=N||"",null!=Ae)return me(N,Ae,Qe,"month");var _t,Qt=[];for(_t=0;_t<12;_t++)Qt[_t]=me(N,_t,Qe,"month");return Qt}function Oe(N,Ae,Qe,_t){"boolean"==typeof N?(v(Ae)&&(Qe=Ae,Ae=void 0),Ae=Ae||""):(Qe=Ae=N,N=!1,v(Ae)&&(Qe=Ae,Ae=void 0),Ae=Ae||"");var Br,Qt=Bi(),Mr=N?Qt._week.dow:0,Rn=[];if(null!=Qe)return me(Ae,(Qe+Mr)%7,_t,"day");for(Br=0;Br<7;Br++)Rn[Br]=me(Ae,(Br+Mr)%7,_t,"day");return Rn}ae.calendar=function Z(N,Ae,Qe){var _t=this._calendar[N]||this._calendar.sameElse;return ee(_t)?_t.call(Ae,Qe):_t},ae.longDateFormat=function Ye(N){var Ae=this._longDateFormat[N],Qe=this._longDateFormat[N.toUpperCase()];return Ae||!Qe?Ae:(this._longDateFormat[N]=Qe.match(w).map(function(_t){return"MMMM"===_t||"MM"===_t||"DD"===_t||"dddd"===_t?_t.slice(1):_t}).join(""),this._longDateFormat[N])},ae.invalidDate=function Se(){return this._invalidDate},ae.ordinal=function Tt(N){return this._ordinal.replace("%d",N)},ae.preparse=Ai,ae.postformat=Ai,ae.relativeTime=function H(N,Ae,Qe,_t){var Qt=this._relativeTime[Qe];return ee(Qt)?Qt(N,Ae,Qe,_t):Qt.replace(/%d/i,N)},ae.pastFuture=function Y(N,Ae){var Qe=this._relativeTime[N>0?"future":"past"];return ee(Qe)?Qe(Ae):Qe.replace(/%s/i,Ae)},ae.set=function se(N){var Ae,Qe;for(Qe in N)c(N,Qe)&&(ee(Ae=N[Qe])?this[Qe]=Ae:this["_"+Qe]=Ae);this._config=N,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ae.eras=function Xr(N,Ae){var Qe,_t,Qt,Mr=this._eras||Bi("en")._eras;for(Qe=0,_t=Mr.length;Qe<_t;++Qe)switch("string"==typeof Mr[Qe].since&&(Qt=e(Mr[Qe].since).startOf("day"),Mr[Qe].since=Qt.valueOf()),typeof Mr[Qe].until){case"undefined":Mr[Qe].until=1/0;break;case"string":Qt=e(Mr[Qe].until).startOf("day").valueOf(),Mr[Qe].until=Qt.valueOf()}return Mr},ae.erasParse=function fn(N,Ae,Qe){var _t,Qt,Br,Rn,Hn,Mr=this.eras();for(N=N.toUpperCase(),_t=0,Qt=Mr.length;_t<Qt;++_t)if(Br=Mr[_t].name.toUpperCase(),Rn=Mr[_t].abbr.toUpperCase(),Hn=Mr[_t].narrow.toUpperCase(),Qe)switch(Ae){case"N":case"NN":case"NNN":if(Rn===N)return Mr[_t];break;case"NNNN":if(Br===N)return Mr[_t];break;case"NNNNN":if(Hn===N)return Mr[_t]}else if([Br,Rn,Hn].indexOf(N)>=0)return Mr[_t]},ae.erasConvertYear=function Kn(N,Ae){var Qe=N.since<=N.until?1:-1;return void 0===Ae?e(N.since).year():e(N.since).year()+(Ae-N.offset)*Qe},ae.erasAbbrRegex=function uo(N){return c(this,"_erasAbbrRegex")||ea.call(this),N?this._erasAbbrRegex:this._erasRegex},ae.erasNameRegex=function Ko(N){return c(this,"_erasNameRegex")||ea.call(this),N?this._erasNameRegex:this._erasRegex},ae.erasNarrowRegex=function No(N){return c(this,"_erasNarrowRegex")||ea.call(this),N?this._erasNarrowRegex:this._erasRegex},ae.months=function Kt(N,Ae){return N?l(this._months)?this._months[N.month()]:this._months[(this._months.isFormat||Ti).test(Ae)?"format":"standalone"][N.month()]:l(this._months)?this._months:this._months.standalone},ae.monthsShort=function Ar(N,Ae){return N?l(this._monthsShort)?this._monthsShort[N.month()]:this._monthsShort[Ti.test(Ae)?"format":"standalone"][N.month()]:l(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ae.monthsParse=function Ve(N,Ae,Qe){var _t,Qt,Mr;if(this._monthsParseExact)return ie.call(this,N,Ae,Qe);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),_t=0;_t<12;_t++){if(Qt=P([2e3,_t]),Qe&&!this._longMonthsParse[_t]&&(this._longMonthsParse[_t]=new RegExp("^"+this.months(Qt,"").replace(".","")+"$","i"),this._shortMonthsParse[_t]=new RegExp("^"+this.monthsShort(Qt,"").replace(".","")+"$","i")),!Qe&&!this._monthsParse[_t]&&(Mr="^"+this.months(Qt,"")+"|^"+this.monthsShort(Qt,""),this._monthsParse[_t]=new RegExp(Mr.replace(".",""),"i")),Qe&&"MMMM"===Ae&&this._longMonthsParse[_t].test(N))return _t;if(Qe&&"MMM"===Ae&&this._shortMonthsParse[_t].test(N))return _t;if(!Qe&&this._monthsParse[_t].test(N))return _t}},ae.monthsRegex=function un(N){return this._monthsParseExact?(c(this,"_monthsRegex")||ri.call(this),N?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=ci),this._monthsStrictRegex&&N?this._monthsStrictRegex:this._monthsRegex)},ae.monthsShortRegex=function mn(N){return this._monthsParseExact?(c(this,"_monthsRegex")||ri.call(this),N?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Ni),this._monthsShortStrictRegex&&N?this._monthsShortStrictRegex:this._monthsShortRegex)},ae.week=function ta(N){return Xn(N,this._week.dow,this._week.doy).week},ae.firstDayOfYear=function Ei(){return this._week.doy},ae.firstDayOfWeek=function La(){return this._week.dow},ae.weekdays=function ji(N,Ae){var Qe=l(this._weekdays)?this._weekdays:this._weekdays[N&&!0!==N&&this._weekdays.isFormat.test(Ae)?"format":"standalone"];return!0===N?Ia(Qe,this._week.dow):N?Qe[N.day()]:Qe},ae.weekdaysMin=function Ui(N){return!0===N?Ia(this._weekdaysMin,this._week.dow):N?this._weekdaysMin[N.day()]:this._weekdaysMin},ae.weekdaysShort=function sa(N){return!0===N?Ia(this._weekdaysShort,this._week.dow):N?this._weekdaysShort[N.day()]:this._weekdaysShort},ae.weekdaysParse=function fa(N,Ae,Qe){var _t,Qt,Mr;if(this._weekdaysParseExact)return na.call(this,N,Ae,Qe);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),_t=0;_t<7;_t++){if(Qt=P([2e3,1]).day(_t),Qe&&!this._fullWeekdaysParse[_t]&&(this._fullWeekdaysParse[_t]=new RegExp("^"+this.weekdays(Qt,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[_t]=new RegExp("^"+this.weekdaysShort(Qt,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[_t]=new RegExp("^"+this.weekdaysMin(Qt,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[_t]||(Mr="^"+this.weekdays(Qt,"")+"|^"+this.weekdaysShort(Qt,"")+"|^"+this.weekdaysMin(Qt,""),this._weekdaysParse[_t]=new RegExp(Mr.replace(".",""),"i")),Qe&&"dddd"===Ae&&this._fullWeekdaysParse[_t].test(N))return _t;if(Qe&&"ddd"===Ae&&this._shortWeekdaysParse[_t].test(N))return _t;if(Qe&&"dd"===Ae&&this._minWeekdaysParse[_t].test(N))return _t;if(!Qe&&this._weekdaysParse[_t].test(N))return _t}},ae.weekdaysRegex=function ho(N){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ga.call(this),N?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=wi),this._weekdaysStrictRegex&&N?this._weekdaysStrictRegex:this._weekdaysRegex)},ae.weekdaysShortRegex=function $i(N){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ga.call(this),N?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Wi),this._weekdaysShortStrictRegex&&N?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ae.weekdaysMinRegex=function bo(N){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ga.call(this),N?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ra),this._weekdaysMinStrictRegex&&N?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ae.isPM=function Rt(N){return"p"===(N+"").toLowerCase().charAt(0)},ae.meridiem=function wn(N,Ae,Qe){return N>11?Qe?"pm":"PM":Qe?"am":"AM"},ga("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(N){var Ae=N%10;return N+(1===ot(N%100/10)?"th":1===Ae?"st":2===Ae?"nd":3===Ae?"rd":"th")}}),e.lang=Le("moment.lang is deprecated. Use moment.locale instead.",ga),e.langData=Le("moment.langData is deprecated. Use moment.localeData instead.",Bi);var nn=Math.abs;function yi(N,Ae,Qe,_t){var Qt=it(Ae,Qe);return N._milliseconds+=_t*Qt._milliseconds,N._days+=_t*Qt._days,N._months+=_t*Qt._months,N._bubble()}function Ro(N){return N<0?Math.floor(N):Math.ceil(N)}function _o(N){return 4800*N/146097}function ts(N){return 146097*N/4800}function ko(N){return function(){return this.as(N)}}var $s=ko("ms"),Is=ko("s"),il=ko("m"),Xs=ko("h"),Ss=ko("d"),Fs=ko("w"),Vs=ko("M"),Js=ko("Q"),Qs=ko("y");function os(N){return function(){return this.isValid()?this._data[N]:NaN}}var fl=os("milliseconds"),Ws=os("seconds"),al=os("minutes"),Al=os("hours"),ol=os("days"),ui=os("months"),Cl=os("years");var ss=Math.round,Ps={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tl(N,Ae,Qe,_t,Qt){return Qt.relativeTime(Ae||1,!!Qe,N,_t)}var Hc=Math.abs;function ml(N){return(N>0)-(N<0)||+N}function Yc(){if(!this.isValid())return this.localeData().invalidDate();var _t,Qt,Mr,Br,Hn,Ha,zo,Gs,N=Hc(this._milliseconds)/1e3,Ae=Hc(this._days),Qe=Hc(this._months),Rn=this.asSeconds();return Rn?(_t=et(N/60),Qt=et(_t/60),N%=60,_t%=60,Mr=et(Qe/12),Qe%=12,Br=N?N.toFixed(3).replace(/\.?0+$/,""):"",Hn=Rn<0?"-":"",Ha=ml(this._months)!==ml(Rn)?"-":"",zo=ml(this._days)!==ml(Rn)?"-":"",Gs=ml(this._milliseconds)!==ml(Rn)?"-":"",Hn+"P"+(Mr?Ha+Mr+"Y":"")+(Qe?Ha+Qe+"M":"")+(Ae?zo+Ae+"D":"")+(Qt||_t||N?"T":"")+(Qt?Gs+Qt+"H":"")+(_t?Gs+_t+"M":"")+(N?Gs+Br+"S":"")):"P0D"}var Ta=Or.prototype;return Ta.isValid=function or(){return this._isValid},Ta.abs=function dn(){var N=this._data;return this._milliseconds=nn(this._milliseconds),this._days=nn(this._days),this._months=nn(this._months),N.milliseconds=nn(N.milliseconds),N.seconds=nn(N.seconds),N.minutes=nn(N.minutes),N.hours=nn(N.hours),N.months=nn(N.months),N.years=nn(N.years),this},Ta.add=function Ca(N,Ae){return yi(this,N,Ae,1)},Ta.subtract=function Do(N,Ae){return yi(this,N,Ae,-1)},Ta.as=function Wo(N){if(!this.isValid())return NaN;var Ae,Qe,_t=this._milliseconds;if("month"===(N=Q(N))||"quarter"===N||"year"===N)switch(Ae=this._days+_t/864e5,Qe=this._months+_o(Ae),N){case"month":return Qe;case"quarter":return Qe/3;case"year":return Qe/12}else switch(Ae=this._days+Math.round(ts(this._months)),N){case"week":return Ae/7+_t/6048e5;case"day":return Ae+_t/864e5;case"hour":return 24*Ae+_t/36e5;case"minute":return 1440*Ae+_t/6e4;case"second":return 86400*Ae+_t/1e3;case"millisecond":return Math.floor(864e5*Ae)+_t;default:throw new Error("Unknown unit "+N)}},Ta.asMilliseconds=$s,Ta.asSeconds=Is,Ta.asMinutes=il,Ta.asHours=Xs,Ta.asDays=Ss,Ta.asWeeks=Fs,Ta.asMonths=Vs,Ta.asQuarters=Js,Ta.asYears=Qs,Ta.valueOf=function Ii(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ot(this._months/12):NaN},Ta._bubble=function Po(){var Qt,Mr,Br,Rn,Hn,N=this._milliseconds,Ae=this._days,Qe=this._months,_t=this._data;return N>=0&&Ae>=0&&Qe>=0||N<=0&&Ae<=0&&Qe<=0||(N+=864e5*Ro(ts(Qe)+Ae),Ae=0,Qe=0),_t.milliseconds=N%1e3,Qt=et(N/1e3),_t.seconds=Qt%60,Mr=et(Qt/60),_t.minutes=Mr%60,Br=et(Mr/60),_t.hours=Br%24,Ae+=et(Br/24),Qe+=Hn=et(_o(Ae)),Ae-=Ro(ts(Hn)),Rn=et(Qe/12),Qe%=12,_t.days=Ae,_t.months=Qe,_t.years=Rn,this},Ta.clone=function Cs(){return it(this)},Ta.get=function Ds(N){return N=Q(N),this.isValid()?this[N+"s"]():NaN},Ta.milliseconds=fl,Ta.seconds=Ws,Ta.minutes=al,Ta.hours=Al,Ta.days=ol,Ta.weeks=function Ja(){return et(this.days()/7)},Ta.months=ui,Ta.years=Cl,Ta.humanize=function yd(N,Ae){if(!this.isValid())return this.localeData().invalidDate();var Qt,Mr,Qe=!1,_t=Ps;return"object"==typeof N&&(Ae=N,N=!1),"boolean"==typeof N&&(Qe=N),"object"==typeof Ae&&(_t=Object.assign({},Ps,Ae),null!=Ae.s&&null==Ae.ss&&(_t.ss=Ae.s-1)),Mr=function ai(N,Ae,Qe,_t){var Qt=it(N).abs(),Mr=ss(Qt.as("s")),Br=ss(Qt.as("m")),Rn=ss(Qt.as("h")),Hn=ss(Qt.as("d")),Ha=ss(Qt.as("M")),zo=ss(Qt.as("w")),Gs=ss(Qt.as("y")),ls=Mr<=Qe.ss&&["s",Mr]||Mr<Qe.s&&["ss",Mr]||Br<=1&&["m"]||Br<Qe.m&&["mm",Br]||Rn<=1&&["h"]||Rn<Qe.h&&["hh",Rn]||Hn<=1&&["d"]||Hn<Qe.d&&["dd",Hn];return null!=Qe.w&&(ls=ls||zo<=1&&["w"]||zo<Qe.w&&["ww",zo]),(ls=ls||Ha<=1&&["M"]||Ha<Qe.M&&["MM",Ha]||Gs<=1&&["y"]||["yy",Gs])[2]=Ae,ls[3]=+N>0,ls[4]=_t,Tl.apply(null,ls)}(this,!Qe,_t,Qt=this.localeData()),Qe&&(Mr=Qt.pastFuture(+this,Mr)),Qt.postformat(Mr)},Ta.toISOString=Yc,Ta.toString=Yc,Ta.toJSON=Yc,Ta.locale=oa,Ta.localeData=da,Ta.toIsoString=Le("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Yc),Ta.lang=Ea,j("X",0,0,"unix"),j("x",0,0,"valueOf"),kt("x",Re),kt("X",/[+-]?\d+(\.\d{1,3})?/),pr("X",function(N,Ae,Qe){Qe._d=new Date(1e3*parseFloat(N))}),pr("x",function(N,Ae,Qe){Qe._d=new Date(ot(N))}),e.version="2.29.4",function d(N){t=N}(xi),e.fn=Pr,e.min=function is(){return vs("isBefore",[].slice.call(arguments,0))},e.max=function no(){return vs("isAfter",[].slice.call(arguments,0))},e.now=function(){return Date.now?Date.now():+new Date},e.utc=P,e.unix=function On(N){return xi(1e3*N)},e.months=function Ke(N,Ae){return J(N,Ae,"months")},e.isDate=C,e.locale=ga,e.invalid=T,e.duration=it,e.isMoment=ye,e.weekdays=function Zt(N,Ae,Qe){return Oe(N,Ae,Qe,"weekdays")},e.parseZone=function ei(){return xi.apply(null,arguments).parseZone()},e.localeData=Bi,e.isDuration=Vr,e.monthsShort=function xt(N,Ae){return J(N,Ae,"monthsShort")},e.weekdaysMin=function zr(N,Ae,Qe){return Oe(N,Ae,Qe,"weekdaysMin")},e.defineLocale=Ka,e.updateLocale=function Mi(N,Ae){if(null!=Ae){var Qe,_t,Qt=Jn;null!=yn[N]&&null!=yn[N].parentLocale?yn[N].set(W(yn[N]._config,Ae)):(null!=(_t=Na(N))&&(Qt=_t._config),Ae=W(Qt,Ae),null==_t&&(Ae.abbr=N),(Qe=new L(Ae)).parentLocale=yn[N],yn[N]=Qe),ga(N)}else null!=yn[N]&&(null!=yn[N].parentLocale?(yn[N]=yn[N].parentLocale,N===ga()&&ga(N)):null!=yn[N]&&delete yn[N]);return yn[N]},e.locales=function Xi(){return he(yn)},e.weekdaysShort=function gr(N,Ae,Qe){return Oe(N,Ae,Qe,"weekdaysShort")},e.normalizeUnits=Q,e.relativeTimeRounding=function sl(N){return void 0===N?ss:"function"==typeof N&&(ss=N,!0)},e.relativeTimeThreshold=function li(N,Ae){return void 0!==Ps[N]&&(void 0===Ae?Ps[N]:(Ps[N]=Ae,"s"===N&&(Ps.ss=Ae-1),!0))},e.calendarFormat=function xe(N,Ae){var Qe=N.diff(Ae,"days",!0);return Qe<-6?"sameElse":Qe<-1?"lastWeek":Qe<0?"lastDay":Qe<1?"sameDay":Qe<2?"nextDay":Qe<7?"nextWeek":"sameElse"},e.prototype=Pr,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},e}()},5934:(St,be,s)=>{"use strict";s.d(be,{Gn:()=>ue,Rz:()=>ge});var t=s(73991),e=s(71329),d=s(44939),l=s(17774),r=s(44070),c=s(95195),E=s(93216),m=s(68264),v=s(38440),C=s(17374),n=s(48376),i=s(32653),P=s(30003),I=s(24510);const q=new t.OlP("shareButtonsConfig");var M=(()=>{return(ee=M||(M={})).Anchor="anchor",ee.Window="window",M;var ee})();function T(ee){return ee&&"object"==typeof ee&&!Array.isArray(ee)}function F(ee,...se){if(!se.length)return ee;const W=se.shift();if(T(ee)&&T(W))for(const L in W)T(W[L])?(ee[L]||Object.assign(ee,{[L]:{}}),F(ee[L],W[L])):Object.assign(ee,{[L]:W[L]});return F(ee,...se)}const ye={description:ee=>ee.description?`${ee.description}\r\n${ee.url}`:ee.url},Ee={facebook:{type:"facebook",text:"Facebook",ariaLabel:"Share on Facebook",icon:["fab","facebook-f"],color:"#4267B2",share:{desktop:"https://www.facebook.com/sharer/sharer.php?"},params:{url:"u"}},twitter:{type:"twitter",text:"Twitter",ariaLabel:"Share on Twitter",icon:["fab","twitter"],color:"#00acee",share:{desktop:"https://twitter.com/intent/tweet?"},params:{url:"url",description:"text",tags:"hashtags",via:"via"}},linkedin:{type:"linkedin",text:"LinkedIn",ariaLabel:"Share on LinkedIn",icon:["fab","linkedin-in"],color:"#006fa6",share:{desktop:"https://www.linkedin.com/shareArticle?"},params:{url:"url",title:"title",description:"summary"}},pinterest:{type:"pinterest",text:"Pinterest",ariaLabel:"Share on Pinterest",icon:["fab","pinterest-p"],color:"#BD091D",share:{desktop:"https://pinterest.com/pin/create/button/?"},params:{url:"url",description:"description",image:"media"}},reddit:{type:"reddit",text:"Reddit",ariaLabel:"Share on Reddit",icon:["fab","reddit-alien"],color:"#FF4006",share:{desktop:"https://www.reddit.com/submit?"},params:{url:"url",title:"title"}},tumblr:{type:"tumblr",text:"Tumblr",ariaLabel:"Share on Tumblr",icon:["fab","tumblr"],color:"#36465D",share:{desktop:"https://tumblr.com/widgets/share/tool?"},params:{url:"canonicalUrl",description:"caption",tags:"tags"}},mix:{type:"mix",text:"Mix",ariaLabel:"Share on Mix",icon:["fab","mix"],color:"#eb4924",share:{desktop:"https://mix.com/add?"},params:{url:"url"}},viber:{type:"viber",text:"Viber",ariaLabel:"Share on Viber",icon:["fab","viber"],color:"#665ca7",share:{android:"viber://forward?",ios:"viber://forward?"},params:{description:"text"},paramsFunc:ye},vk:{type:"vk",text:"VKontakte",ariaLabel:"Share on VKontakte",icon:["fab","vk"],color:"#4C75A3",share:{desktop:"https://vk.com/share.php?"},params:{url:"url"}},telegram:{type:"telegram",text:"Telegram",ariaLabel:"Share on Telegram",icon:["fab","telegram-plane"],color:"#0088cc",share:{desktop:"https://t.me/share/url?"},params:{url:"url",description:"text"}},messenger:{type:"messenger",text:"Messenger",ariaLabel:"Share on Messenger",icon:["fab","facebook-messenger"],color:"#0080FF",share:{android:"fb-messenger://share/?",ios:"fb-messenger://share/?"},params:{url:"link"}},whatsapp:{type:"whatsapp",text:"WhatsApp",ariaLabel:"Share on WhatsApp",icon:["fab","whatsapp"],color:"#25D366",share:{desktop:"https://web.whatsapp.com/send?",android:"whatsapp://send?",ios:"https://api.whatsapp.com/send?"},params:{description:"text"},paramsFunc:ye},xing:{type:"xing",text:"Xing",ariaLabel:"Share on Xing",icon:["fab","xing"],color:"#006567",share:{desktop:"https://www.xing.com/spi/shares/new?"},params:{url:"url"}},line:{type:"line",text:"Line",ariaLabel:"Share on Line",icon:["fab","line"],color:"#00b900",share:{desktop:"https://social-plugins.line.me/lineit/share?"},params:{url:"url"}},sms:{type:"sms",text:"SMS",ariaLabel:"Share link via SMS",icon:["fas","sms"],color:"#20c16c",share:{desktop:"sms:?",ios:"sms:&"},params:{description:"body"},paramsFunc:ye},email:{type:"email",text:"Email",ariaLabel:"Share link via email",icon:["fas","envelope"],color:"#FF961C",share:{desktop:"mailto:?"},params:{title:"subject",description:"body"},paramsFunc:ye},print:{type:"print",text:"Print",ariaLabel:"Print page",icon:["fas","print"],color:"#765AA2",func:function V(){return new r.y(ee=>document.defaultView.print())}},copy:{type:"copy",text:"Copy link",ariaLabel:"Copy link",icon:["fas","link"],color:"#607D8B",data:{text:"Copy link",icon:["fas","link"],successText:"Copied",successIcon:["fas","check"],delay:2e3},func:function de({params:ee,data:se,clipboard:W,updater:L}){return(0,c.of)(null).pipe((0,C.b)(()=>{W.copy(ee.url),L.next({icon:se.successIcon,text:se.successText,disabled:!0})}),(0,n.g)(se.delay),(0,C.b)(()=>L.next({icon:se.icon,text:se.text,disabled:!1})),(0,i.q)(1))}}};let Le=(()=>{class ee{constructor(W,L){this._document=L,this.config={sharerMethod:M.Anchor,sharerTarget:"_blank",windowObj:this._document.defaultView,windowFuncName:"open",prop:Ee,theme:"default",include:[],exclude:[],autoSetMeta:!0,windowWidth:800,windowHeight:500,moreButtonIcon:"ellipsis-h",lessButtonIcon:"minus",moreButtonAriaLabel:"Show more share buttons",lessButtonAriaLabel:"Show less share buttons"},this.config$=new E.X(this.config),W&&this.setConfig(W)}get prop(){return this.config.prop}get windowSize(){return`width=${this.config.windowWidth}, height=${this.config.windowHeight}`}setConfig(W){this.config=F(this.config,W),this.config$.next(this.config)}addButton(W,L){this.setConfig({prop:{[W]:L}})}}return ee.\u0275fac=function(W){return new(W||ee)(t.LFG(q,8),t.LFG(l.K0))},ee.\u0275prov=t.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),ge=(()=>{class ee{constructor(W,L,he,_e,Z,Te,w){this._meta=L,this._platform=he,this._clipboard=_e,this._share=Z,this._cd=Te,this._document=w,this._destroyed=new m.x,this._updater=new m.x,this.autoSetMeta=this._share.config.autoSetMeta,this.url=this._share.config.url,this.title=this._share.config.title,this.description=this._share.config.description,this.image=this._share.config.image,this.tags=this._share.config.tags,this.opened=new t.vpe,this.closed=new t.vpe,this._el=W.nativeElement}share(){if(this._platform.isBrowser&&this.shareButton){const W=this.autoSetMeta?this.getParamsFromMetaTags():this.getParamsFromInputs();(this.shareButton.share?this.open(W):this.shareButton.func({params:W,data:this.shareButton.data,clipboard:this._clipboard,updater:this._updater})).pipe((0,P.R)(this._destroyed)).subscribe()}else console.warn(`${this.text} button is not compatible on this Platform`)}ngOnInit(){this._updater.pipe((0,C.b)(W=>{this.icon=W.icon,this.text=W.text,this._el.style.pointerEvents=W.disabled?"none":"auto",this._cd.markForCheck()}),(0,P.R)(this._destroyed)).subscribe()}ngOnChanges(W){this._platform.isBrowser&&(this._shareButtonChanged(W.shareButtonName)&&this._createShareButton(),this._urlChanged(W.url)&&(this.url=function le(ee,se){if(ee){if(/(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(ee))return ee;console.warn(`[ShareButtons]: Sharing link '${ee}' is invalid!`)}return se}(this.autoSetMeta?this.url||this._getMetaTagContent("og:url"):this.url,this._document.defaultView.location.href)))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createShareButton(){const W=this._share.config.prop[this.shareButtonName];W?(this.shareButton=W,this._el.classList.remove(`sb-${this._buttonClass}`),this._el.classList.add(`sb-${this.shareButtonName}`),this._el.style.setProperty("--button-color",this.shareButton.color),this._buttonClass=this.shareButtonName,this.color=this.shareButton.color,this.text=this.shareButton.text,this.icon=this.shareButton.icon,this._el.setAttribute("aria-label",W.ariaLabel)):console.error(`[ShareButtons]: The share button '${this.shareButtonName}' does not exist!`)}_getMetaTagContent(W){const L=this._meta.getTag(`property="${W}"`);if(L)return L.getAttribute("content");const he=this._meta.getTag(`name="${W}"`);return he?he.getAttribute("content"):void 0}_shareButtonChanged(W){return W&&(W.firstChange||W.previousValue!==W.currentValue)}_urlChanged(W){return!this.url||W&&W.previousValue!==W.currentValue}getParamsFromMetaTags(){return{url:this.url,title:this.title||this._getMetaTagContent("og:title"),description:this.description||this._getMetaTagContent("og:description"),image:this.image||this._getMetaTagContent("og:image"),via:this._share.config.twitterAccount,tags:this.tags}}getParamsFromInputs(){return{url:this.url,title:this.title,description:this.description,image:this.image,tags:this.tags,via:this._share.config.twitterAccount}}open(W){let L;if(L=this._platform.IOS&&this.shareButton.share.ios?this.shareButton.share.ios:this._platform.ANDROID&&this.shareButton.share.android?this.shareButton.share.android:this.shareButton.share.desktop,L){this._finalUrl=L+this._serializeParams(W),this._share.config.debug&&console.log("[DEBUG SHARE BUTTON]: ",this._finalUrl);const _e=this.shareButton.target||this._share.config.sharerTarget;switch(this.shareButton.method||this._share.config.sharerMethod){case M.Anchor:const Z=this._document.createElement("a");Z.setAttribute("target",_e),Z.setAttribute("rel","noopener noreferrer"),Z.href=this._finalUrl,Z.click(),Z.remove();break;case M.Window:const w=(0,this._share.config.windowObj[this._share.config.windowFuncName])(this._finalUrl,_e,this._share.windowSize);if(this._share.config.windowObj.opener=null,w)return new r.y(k=>{const x=this._document.defaultView.setInterval(()=>{w.closed&&(this._document.defaultView.clearInterval(x),this.closed.emit(this.shareButtonName),k.next(),k.complete())},200)})}this.opened.emit(this.shareButtonName)}return v.E}_serializeParams(W){return Object.entries(this.shareButton.params).map(([L,he])=>{const _e=this.shareButton.paramsFunc?this.shareButton.paramsFunc[L]:null;if(W[L]||_e){const Z=_e?_e(W):W[L];return`${he}=${encodeURIComponent(Z)}`}return""}).filter(L=>""!==L).join("&")}}return ee.\u0275fac=function(W){return new(W||ee)(t.Y36(t.SBq),t.Y36(I.h_),t.Y36(e.t4),t.Y36(d.TU),t.Y36(Le),t.Y36(t.sBO),t.Y36(l.K0))},ee.\u0275dir=t.lG2({type:ee,selectors:[["","shareButton",""]],hostBindings:function(W,L){1&W&&t.NdJ("click",function(){return L.share()})},inputs:{shareButtonName:["shareButton","shareButtonName"],autoSetMeta:"autoSetMeta",url:"url",title:"title",description:"description",image:"image",tags:"tags"},outputs:{opened:"opened",closed:"closed"},exportAs:["shareButton"],features:[t.TTD]}),ee})(),ue=(()=>{class ee{static withConfig(W){return{ngModule:ee,providers:[{provide:q,useValue:W}]}}}return ee.\u0275fac=function(W){return new(W||ee)},ee.\u0275mod=t.oAB({type:ee}),ee.\u0275inj=t.cJS({imports:[[e.ud,d.Iq]]}),ee})()},77962:St=>{self,St.exports=(()=>{var be={192:(e,d)=>{var l,r,c=function(){var E=function(ge,ue){var ee=ge,se=P[ue],W=null,L=0,he=null,_e=[],Z={},Te=function(ze,we){W=function(Ye){for(var te=new Array(Ye),Se=0;Se<Ye;Se+=1){te[Se]=new Array(Ye);for(var ke=0;ke<Ye;ke+=1)te[Se][ke]=null}return te}(L=4*ee+17),w(0,0),w(L-7,0),w(0,L-7),x(),k(),j(ze,we),ee>=7&&z(ze),null==he&&(he=tt(ee,se,_e)),Ne(he,we)},w=function(ze,we){for(var Ye=-1;Ye<=7;Ye+=1)if(!(ze+Ye<=-1||L<=ze+Ye))for(var te=-1;te<=7;te+=1)we+te<=-1||L<=we+te||(W[ze+Ye][we+te]=0<=Ye&&Ye<=6&&(0==te||6==te)||0<=te&&te<=6&&(0==Ye||6==Ye)||2<=Ye&&Ye<=4&&2<=te&&te<=4)},k=function(){for(var ze=8;ze<L-8;ze+=1)null==W[ze][6]&&(W[ze][6]=ze%2==0);for(var we=8;we<L-8;we+=1)null==W[6][we]&&(W[6][we]=we%2==0)},x=function(){for(var ze=I.getPatternPosition(ee),we=0;we<ze.length;we+=1)for(var Ye=0;Ye<ze.length;Ye+=1){var te=ze[we],Se=ze[Ye];if(null==W[te][Se])for(var ke=-2;ke<=2;ke+=1)for(var Ge=-2;Ge<=2;Ge+=1)W[te+ke][Se+Ge]=-2==ke||2==ke||-2==Ge||2==Ge||0==ke&&0==Ge}},z=function(ze){for(var we=I.getBCHTypeNumber(ee),Ye=0;Ye<18;Ye+=1){var te=!ze&&1==(we>>Ye&1);W[Math.floor(Ye/3)][Ye%3+L-8-3]=te}for(Ye=0;Ye<18;Ye+=1)te=!ze&&1==(we>>Ye&1),W[Ye%3+L-8-3][Math.floor(Ye/3)]=te},j=function(ze,we){for(var te=I.getBCHTypeInfo(se<<3|we),Se=0;Se<15;Se+=1){var ke=!ze&&1==(te>>Se&1);Se<6?W[Se][8]=ke:Se<8?W[Se+1][8]=ke:W[L-15+Se][8]=ke}for(Se=0;Se<15;Se+=1)ke=!ze&&1==(te>>Se&1),Se<8?W[8][L-Se-1]=ke:Se<9?W[8][15-Se-1+1]=ke:W[8][15-Se-1]=ke;W[L-8][8]=!ze},Ne=function(ze,we){for(var Ye=-1,te=L-1,Se=7,ke=0,Ge=I.getMaskFunction(we),Tt=L-1;Tt>0;Tt-=2)for(6==Tt&&(Tt-=1);;){for(var Et=0;Et<2;Et+=1)if(null==W[te][Tt-Et]){var H=!1;ke<ze.length&&(H=1==(ze[ke]>>>Se&1)),Ge(te,Tt-Et)&&(H=!H),W[te][Tt-Et]=H,-1==(Se-=1)&&(ke+=1,Se=7)}if((te+=Ye)<0||L<=te){te-=Ye,Ye=-Ye;break}}},tt=function(ze,we,Ye){for(var te=M.getRSBlocks(ze,we),Se=T(),ke=0;ke<Ye.length;ke+=1){var Ge=Ye[ke];Se.put(Ge.getMode(),4),Se.put(Ge.getLength(),I.getLengthInBits(Ge.getMode(),ze)),Ge.write(Se)}var Tt=0;for(ke=0;ke<te.length;ke+=1)Tt+=te[ke].dataCount;if(Se.getLengthInBits()>8*Tt)throw"code length overflow. ("+Se.getLengthInBits()+">"+8*Tt+")";for(Se.getLengthInBits()+4<=8*Tt&&Se.put(0,4);Se.getLengthInBits()%8!=0;)Se.putBit(!1);for(;!(Se.getLengthInBits()>=8*Tt||(Se.put(236,8),Se.getLengthInBits()>=8*Tt));)Se.put(17,8);return function(Et,H){for(var Y=0,S=0,K=0,Q=new Array(H.length),B=new Array(H.length),re=0;re<H.length;re+=1){var fe=H[re].dataCount,qe=H[re].totalCount-fe;S=Math.max(S,fe),K=Math.max(K,qe),Q[re]=new Array(fe);for(var $e=0;$e<Q[re].length;$e+=1)Q[re][$e]=255&Et.getBuffer()[$e+Y];Y+=fe;var et=I.getErrorCorrectPolynomial(qe),ot=D(Q[re],et.getLength()-1).mod(et);for(B[re]=new Array(et.getLength()-1),$e=0;$e<B[re].length;$e+=1){var ct=$e+ot.getLength()-B[re].length;B[re][$e]=ct>=0?ot.getAt(ct):0}}var pt=0;for($e=0;$e<H.length;$e+=1)pt+=H[$e].totalCount;var $t=new Array(pt),It=0;for($e=0;$e<S;$e+=1)for(re=0;re<H.length;re+=1)$e<Q[re].length&&($t[It]=Q[re][$e],It+=1);for($e=0;$e<K;$e+=1)for(re=0;re<H.length;re+=1)$e<B[re].length&&($t[It]=B[re][$e],It+=1);return $t}(Se,te)};Z.addData=function(ze,we){var Ye=null;switch(we=we||"Byte"){case"Numeric":Ye=F(ze);break;case"Alphanumeric":Ye=le(ze);break;case"Byte":Ye=V(ze);break;case"Kanji":Ye=de(ze);break;default:throw"mode:"+we}_e.push(Ye),he=null},Z.isDark=function(ze,we){if(ze<0||L<=ze||we<0||L<=we)throw ze+","+we;return W[ze][we]},Z.getModuleCount=function(){return L},Z.make=function(){if(ee<1){for(var ze=1;ze<40;ze++){for(var we=M.getRSBlocks(ze,se),Ye=T(),te=0;te<_e.length;te++){var Se=_e[te];Ye.put(Se.getMode(),4),Ye.put(Se.getLength(),I.getLengthInBits(Se.getMode(),ze)),Se.write(Ye)}var ke=0;for(te=0;te<we.length;te++)ke+=we[te].dataCount;if(Ye.getLengthInBits()<=8*ke)break}ee=ze}Te(!1,function(){for(var Ge=0,Tt=0,Et=0;Et<8;Et+=1){Te(!0,Et);var H=I.getLostPoint(Z);(0==Et||Ge>H)&&(Ge=H,Tt=Et)}return Tt}())},Z.createTableTag=function(ze,we){ze=ze||2;var Ye="";Ye+='<table style="',Ye+=" border-width: 0px; border-style: none;",Ye+=" border-collapse: collapse;",Ye+=" padding: 0px; margin: "+(we=void 0===we?4*ze:we)+"px;",Ye+='">',Ye+="<tbody>";for(var te=0;te<Z.getModuleCount();te+=1){Ye+="<tr>";for(var Se=0;Se<Z.getModuleCount();Se+=1)Ye+='<td style="',Ye+=" border-width: 0px; border-style: none;",Ye+=" border-collapse: collapse;",Ye+=" padding: 0px; margin: 0px;",Ye+=" width: "+ze+"px;",Ye+=" height: "+ze+"px;",Ye+=" background-color: ",Ye+=Z.isDark(te,Se)?"#000000":"#ffffff",Ye+=";",Ye+='"/>';Ye+="</tr>"}return(Ye+="</tbody>")+"</table>"},Z.createSvgTag=function(ze,we,Ye,te){var Se={};"object"==typeof arguments[0]&&(ze=(Se=arguments[0]).cellSize,we=Se.margin,Ye=Se.alt,te=Se.title),ze=ze||2,we=void 0===we?4*ze:we,(Ye="string"==typeof Ye?{text:Ye}:Ye||{}).text=Ye.text||null,Ye.id=Ye.text?Ye.id||"qrcode-description":null,(te="string"==typeof te?{text:te}:te||{}).text=te.text||null,te.id=te.text?te.id||"qrcode-title":null;var ke,Ge,Tt,Et,H=Z.getModuleCount()*ze+2*we,Y="";for(Et="l"+ze+",0 0,"+ze+" -"+ze+",0 0,-"+ze+"z ",Y+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',Y+=Se.scalable?"":' width="'+H+'px" height="'+H+'px"',Y+=' viewBox="0 0 '+H+" "+H+'" ',Y+=' preserveAspectRatio="xMinYMin meet"',Y+=te.text||Ye.text?' role="img" aria-labelledby="'+We([te.id,Ye.id].join(" ").trim())+'"':"",Y+=">",Y+=te.text?'<title id="'+We(te.id)+'">'+We(te.text)+"</title>":"",Y+=Ye.text?'<description id="'+We(Ye.id)+'">'+We(Ye.text)+"</description>":"",Y+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',Y+='<path d="',Ge=0;Ge<Z.getModuleCount();Ge+=1)for(Tt=Ge*ze+we,ke=0;ke<Z.getModuleCount();ke+=1)Z.isDark(Ge,ke)&&(Y+="M"+(ke*ze+we)+","+Tt+Et);return(Y+='" stroke="transparent" fill="black"/>')+"</svg>"},Z.createDataURL=function(ze,we){ze=ze||2,we=void 0===we?4*ze:we;var Ye=Z.getModuleCount()*ze+2*we,te=we,Se=Ye-we;return Le(Ye,Ye,function(ke,Ge){if(te<=ke&&ke<Se&&te<=Ge&&Ge<Se){var Tt=Math.floor((ke-te)/ze),Et=Math.floor((Ge-te)/ze);return Z.isDark(Et,Tt)?0:1}return 1})},Z.createImgTag=function(ze,we,Ye){ze=ze||2,we=void 0===we?4*ze:we;var te=Z.getModuleCount()*ze+2*we,Se="";return Se+="<img",Se+=' src="',Se+=Z.createDataURL(ze,we),Se+='"',Se+=' width="',Se+=te,Se+='"',Se+=' height="',Se+=te,Se+='"',Ye&&(Se+=' alt="',Se+=We(Ye),Se+='"'),Se+"/>"};var We=function(ze){for(var we="",Ye=0;Ye<ze.length;Ye+=1){var te=ze.charAt(Ye);switch(te){case"<":we+="&lt;";break;case">":we+="&gt;";break;case"&":we+="&amp;";break;case'"':we+="&quot;";break;default:we+=te}}return we};return Z.createASCII=function(ze,we){if((ze=ze||1)<2)return function(Q){Q=void 0===Q?2:Q;var B,re,fe,qe,$e,et=1*Z.getModuleCount()+2*Q,ot=Q,ct=et-Q,pt={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584","  ":" "},$t={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" ","  ":" "},It="";for(B=0;B<et;B+=2){for(fe=Math.floor((B-ot)/1),qe=Math.floor((B+1-ot)/1),re=0;re<et;re+=1)$e="\u2588",ot<=re&&re<ct&&ot<=B&&B<ct&&Z.isDark(fe,Math.floor((re-ot)/1))&&($e=" "),ot<=re&&re<ct&&ot<=B+1&&B+1<ct&&Z.isDark(qe,Math.floor((re-ot)/1))?$e+=" ":$e+="\u2588",It+=Q<1&&B+1>=ct?$t[$e]:pt[$e];It+="\n"}return et%2&&Q>0?It.substring(0,It.length-et-1)+Array(et+1).join("\u2580"):It.substring(0,It.length-1)}(we);ze-=1,we=void 0===we?2*ze:we;var Ye,te,Se,ke,Ge=Z.getModuleCount()*ze+2*we,Tt=we,Et=Ge-we,H=Array(ze+1).join("\u2588\u2588"),Y=Array(ze+1).join("  "),S="",K="";for(Ye=0;Ye<Ge;Ye+=1){for(Se=Math.floor((Ye-Tt)/ze),K="",te=0;te<Ge;te+=1)ke=1,Tt<=te&&te<Et&&Tt<=Ye&&Ye<Et&&Z.isDark(Se,Math.floor((te-Tt)/ze))&&(ke=0),K+=ke?H:Y;for(Se=0;Se<ze;Se+=1)S+=K+"\n"}return S.substring(0,S.length-1)},Z.renderTo2dContext=function(ze,we){we=we||2;for(var Ye=Z.getModuleCount(),te=0;te<Ye;te++)for(var Se=0;Se<Ye;Se++)ze.fillStyle=Z.isDark(te,Se)?"black":"white",ze.fillRect(te*we,Se*we,we,we)},Z};E.stringToBytes=(E.stringToBytesFuncs={default:function(ge){for(var ue=[],ee=0;ee<ge.length;ee+=1){var se=ge.charCodeAt(ee);ue.push(255&se)}return ue}}).default,E.createStringToBytes=function(ge,ue){var ee=function(){for(var W=Ee(ge),L=function(){var k=W.read();if(-1==k)throw"eof";return k},he=0,_e={};;){var Z=W.read();if(-1==Z)break;var Te=L(),w=L()<<8|L();_e[String.fromCharCode(Z<<8|Te)]=w,he+=1}if(he!=ue)throw he+" != "+ue;return _e}(),se="?".charCodeAt(0);return function(W){for(var L=[],he=0;he<W.length;he+=1){var _e=W.charCodeAt(he);if(_e<128)L.push(_e);else{var Z=ee[W.charAt(he)];"number"==typeof Z?(255&Z)==Z?L.push(Z):(L.push(Z>>>8),L.push(255&Z)):L.push(se)}}return L}};var m,v,C,n,i,P={L:1,M:0,Q:3,H:2},I=(m=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],v=1335,C=7973,i=function(ge){for(var ue=0;0!=ge;)ue+=1,ge>>>=1;return ue},(n={}).getBCHTypeInfo=function(ge){for(var ue=ge<<10;i(ue)-i(v)>=0;)ue^=v<<i(ue)-i(v);return 21522^(ge<<10|ue)},n.getBCHTypeNumber=function(ge){for(var ue=ge<<12;i(ue)-i(C)>=0;)ue^=C<<i(ue)-i(C);return ge<<12|ue},n.getPatternPosition=function(ge){return m[ge-1]},n.getMaskFunction=function(ge){switch(ge){case 0:return function(ue,ee){return(ue+ee)%2==0};case 1:return function(ue,ee){return ue%2==0};case 2:return function(ue,ee){return ee%3==0};case 3:return function(ue,ee){return(ue+ee)%3==0};case 4:return function(ue,ee){return(Math.floor(ue/2)+Math.floor(ee/3))%2==0};case 5:return function(ue,ee){return ue*ee%2+ue*ee%3==0};case 6:return function(ue,ee){return(ue*ee%2+ue*ee%3)%2==0};case 7:return function(ue,ee){return(ue*ee%3+(ue+ee)%2)%2==0};default:throw"bad maskPattern:"+ge}},n.getErrorCorrectPolynomial=function(ge){for(var ue=D([1],0),ee=0;ee<ge;ee+=1)ue=ue.multiply(D([1,q.gexp(ee)],0));return ue},n.getLengthInBits=function(ge,ue){if(1<=ue&&ue<10)switch(ge){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+ge}else if(ue<27)switch(ge){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+ge}else{if(!(ue<41))throw"type:"+ue;switch(ge){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+ge}}},n.getLostPoint=function(ge){for(var ue=ge.getModuleCount(),ee=0,se=0;se<ue;se+=1)for(var W=0;W<ue;W+=1){for(var L=0,he=ge.isDark(se,W),_e=-1;_e<=1;_e+=1)if(!(se+_e<0||ue<=se+_e))for(var Z=-1;Z<=1;Z+=1)W+Z<0||ue<=W+Z||0==_e&&0==Z||he==ge.isDark(se+_e,W+Z)&&(L+=1);L>5&&(ee+=3+L-5)}for(se=0;se<ue-1;se+=1)for(W=0;W<ue-1;W+=1){var Te=0;ge.isDark(se,W)&&(Te+=1),ge.isDark(se+1,W)&&(Te+=1),ge.isDark(se,W+1)&&(Te+=1),ge.isDark(se+1,W+1)&&(Te+=1),0!=Te&&4!=Te||(ee+=3)}for(se=0;se<ue;se+=1)for(W=0;W<ue-6;W+=1)ge.isDark(se,W)&&!ge.isDark(se,W+1)&&ge.isDark(se,W+2)&&ge.isDark(se,W+3)&&ge.isDark(se,W+4)&&!ge.isDark(se,W+5)&&ge.isDark(se,W+6)&&(ee+=40);for(W=0;W<ue;W+=1)for(se=0;se<ue-6;se+=1)ge.isDark(se,W)&&!ge.isDark(se+1,W)&&ge.isDark(se+2,W)&&ge.isDark(se+3,W)&&ge.isDark(se+4,W)&&!ge.isDark(se+5,W)&&ge.isDark(se+6,W)&&(ee+=40);var w=0;for(W=0;W<ue;W+=1)for(se=0;se<ue;se+=1)ge.isDark(se,W)&&(w+=1);return ee+Math.abs(100*w/ue/ue-50)/5*10},n),q=function(){for(var ge=new Array(256),ue=new Array(256),ee=0;ee<8;ee+=1)ge[ee]=1<<ee;for(ee=8;ee<256;ee+=1)ge[ee]=ge[ee-4]^ge[ee-5]^ge[ee-6]^ge[ee-8];for(ee=0;ee<255;ee+=1)ue[ge[ee]]=ee;return{glog:function(se){if(se<1)throw"glog("+se+")";return ue[se]},gexp:function(se){for(;se<0;)se+=255;for(;se>=256;)se-=255;return ge[se]}}}();function D(ge,ue){if(void 0===ge.length)throw ge.length+"/"+ue;var ee=function(){for(var W=0;W<ge.length&&0==ge[W];)W+=1;for(var L=new Array(ge.length-W+ue),he=0;he<ge.length-W;he+=1)L[he]=ge[he+W];return L}(),se={getAt:function(W){return ee[W]},getLength:function(){return ee.length},multiply:function(W){for(var L=new Array(se.getLength()+W.getLength()-1),he=0;he<se.getLength();he+=1)for(var _e=0;_e<W.getLength();_e+=1)L[he+_e]^=q.gexp(q.glog(se.getAt(he))+q.glog(W.getAt(_e)));return D(L,0)},mod:function(W){if(se.getLength()-W.getLength()<0)return se;for(var L=q.glog(se.getAt(0))-q.glog(W.getAt(0)),he=new Array(se.getLength()),_e=0;_e<se.getLength();_e+=1)he[_e]=se.getAt(_e);for(_e=0;_e<W.getLength();_e+=1)he[_e]^=q.gexp(q.glog(W.getAt(_e))+L);return D(he,0).mod(W)}};return se}var ge,ue,M=(ge=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],ue=function(se,W){var L={};return L.totalCount=se,L.dataCount=W,L},{getRSBlocks:function(se,W){var L=function(z,j){switch(j){case P.L:return ge[4*(z-1)+0];case P.M:return ge[4*(z-1)+1];case P.Q:return ge[4*(z-1)+2];case P.H:return ge[4*(z-1)+3];default:return}}(se,W);if(void 0===L)throw"bad rs block @ typeNumber:"+se+"/errorCorrectionLevel:"+W;for(var he=L.length/3,_e=[],Z=0;Z<he;Z+=1)for(var Te=L[3*Z+0],w=L[3*Z+1],k=L[3*Z+2],x=0;x<Te;x+=1)_e.push(ue(w,k));return _e}}),T=function(){var ge=[],ue=0,ee={getBuffer:function(){return ge},getAt:function(se){var W=Math.floor(se/8);return 1==(ge[W]>>>7-se%8&1)},put:function(se,W){for(var L=0;L<W;L+=1)ee.putBit(1==(se>>>W-L-1&1))},getLengthInBits:function(){return ue},putBit:function(se){var W=Math.floor(ue/8);ge.length<=W&&ge.push(0),se&&(ge[W]|=128>>>ue%8),ue+=1}};return ee},F=function(ge){var ue=ge,ee={getMode:function(){return 1},getLength:function(L){return ue.length},write:function(L){for(var he=ue,_e=0;_e+2<he.length;)L.put(se(he.substring(_e,_e+3)),10),_e+=3;_e<he.length&&(he.length-_e==1?L.put(se(he.substring(_e,_e+1)),4):he.length-_e==2&&L.put(se(he.substring(_e,_e+2)),7))}},se=function(L){for(var he=0,_e=0;_e<L.length;_e+=1)he=10*he+W(L.charAt(_e));return he},W=function(L){if("0"<=L&&L<="9")return L.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+L};return ee},le=function(ge){var ue=ge,ee={getMode:function(){return 2},getLength:function(W){return ue.length},write:function(W){for(var L=ue,he=0;he+1<L.length;)W.put(45*se(L.charAt(he))+se(L.charAt(he+1)),11),he+=2;he<L.length&&W.put(se(L.charAt(he)),6)}},se=function(W){if("0"<=W&&W<="9")return W.charCodeAt(0)-"0".charCodeAt(0);if("A"<=W&&W<="Z")return W.charCodeAt(0)-"A".charCodeAt(0)+10;switch(W){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+W}};return ee},V=function(ge){var ue=E.stringToBytes(ge);return{getMode:function(){return 4},getLength:function(ee){return ue.length},write:function(ee){for(var se=0;se<ue.length;se+=1)ee.put(ue[se],8)}}},de=function(ge){var ue=E.stringToBytesFuncs.SJIS;if(!ue)throw"sjis not supported.";!function(se,W){var L=ue("\u53cb");if(2!=L.length||38726!=(L[0]<<8|L[1]))throw"sjis not supported."}();var ee=ue(ge);return{getMode:function(){return 8},getLength:function(se){return~~(ee.length/2)},write:function(se){for(var W=ee,L=0;L+1<W.length;){var he=(255&W[L])<<8|255&W[L+1];if(33088<=he&&he<=40956)he-=33088;else{if(!(57408<=he&&he<=60351))throw"illegal char at "+(L+1)+"/"+he;he-=49472}se.put(he=192*(he>>>8&255)+(255&he),13),L+=2}if(L<W.length)throw"illegal char at "+(L+1)}}},ye=function(){var ge=[],ue={writeByte:function(ee){ge.push(255&ee)},writeShort:function(ee){ue.writeByte(ee),ue.writeByte(ee>>>8)},writeBytes:function(ee,se,W){se=se||0,W=W||ee.length;for(var L=0;L<W;L+=1)ue.writeByte(ee[L+se])},writeString:function(ee){for(var se=0;se<ee.length;se+=1)ue.writeByte(ee.charCodeAt(se))},toByteArray:function(){return ge},toString:function(){var ee="";ee+="[";for(var se=0;se<ge.length;se+=1)se>0&&(ee+=","),ee+=ge[se];return ee+"]"}};return ue},Ee=function(ge){var ue=ge,ee=0,se=0,W=0,L={read:function(){for(;W<8;){if(ee>=ue.length){if(0==W)return-1;throw"unexpected end of file./"+W}var _e=ue.charAt(ee);if(ee+=1,"="==_e)return W=0,-1;_e.match(/^\s$/)||(se=se<<6|he(_e.charCodeAt(0)),W+=6)}var Z=se>>>W-8&255;return W-=8,Z}},he=function(_e){if(65<=_e&&_e<=90)return _e-65;if(97<=_e&&_e<=122)return _e-97+26;if(48<=_e&&_e<=57)return _e-48+52;if(43==_e)return 62;if(47==_e)return 63;throw"c:"+_e};return L},Le=function(ge,ue,ee){for(var se=function(w,k){var x=w,z=k,j=new Array(w*k),Ne={setPixel:function(ze,we,Ye){j[we*x+ze]=Ye},write:function(ze){ze.writeString("GIF87a"),ze.writeShort(x),ze.writeShort(z),ze.writeByte(128),ze.writeByte(0),ze.writeByte(0),ze.writeByte(0),ze.writeByte(0),ze.writeByte(0),ze.writeByte(255),ze.writeByte(255),ze.writeByte(255),ze.writeString(","),ze.writeShort(0),ze.writeShort(0),ze.writeShort(x),ze.writeShort(z),ze.writeByte(0);var we=tt(2);ze.writeByte(2);for(var Ye=0;we.length-Ye>255;)ze.writeByte(255),ze.writeBytes(we,Ye,255),Ye+=255;ze.writeByte(we.length-Ye),ze.writeBytes(we,Ye,we.length-Ye),ze.writeByte(0),ze.writeString(";")}},tt=function(ze){for(var we=1<<ze,Ye=1+(1<<ze),te=ze+1,Se=We(),ke=0;ke<we;ke+=1)Se.add(String.fromCharCode(ke));Se.add(String.fromCharCode(we)),Se.add(String.fromCharCode(Ye));var Ge,Tt,Et,H=ye(),Y=(Ge=H,Tt=0,Et=0,{write:function(B,re){if(B>>>re)throw"length over";for(;Tt+re>=8;)Ge.writeByte(255&(B<<Tt|Et)),re-=8-Tt,B>>>=8-Tt,Et=0,Tt=0;Et|=B<<Tt,Tt+=re},flush:function(){Tt>0&&Ge.writeByte(Et)}});Y.write(we,te);var S=0,K=String.fromCharCode(j[S]);for(S+=1;S<j.length;){var Q=String.fromCharCode(j[S]);S+=1,Se.contains(K+Q)?K+=Q:(Y.write(Se.indexOf(K),te),Se.size()<4095&&(Se.size()==1<<te&&(te+=1),Se.add(K+Q)),K=Q)}return Y.write(Se.indexOf(K),te),Y.write(Ye,te),Y.flush(),H.toByteArray()},We=function(){var ze={},we=0,Ye={add:function(te){if(Ye.contains(te))throw"dup key:"+te;ze[te]=we,we+=1},size:function(){return we},indexOf:function(te){return ze[te]},contains:function(te){return void 0!==ze[te]}};return Ye};return Ne}(ge,ue),W=0;W<ue;W+=1)for(var L=0;L<ge;L+=1)se.setPixel(L,W,ee(L,W));var he=ye();se.write(he);for(var _e=function(){var w=0,k=0,x=0,z="",j={},Ne=function(We){z+=String.fromCharCode(tt(63&We))},tt=function(We){if(!(We<0)){if(We<26)return 65+We;if(We<52)return We-26+97;if(We<62)return We-52+48;if(62==We)return 43;if(63==We)return 47}throw"n:"+We};return j.writeByte=function(We){for(w=w<<8|255&We,k+=8,x+=1;k>=6;)Ne(w>>>k-6),k-=6},j.flush=function(){if(k>0&&(Ne(w<<6-k),w=0,k=0),x%3!=0)for(var We=3-x%3,ze=0;ze<We;ze+=1)z+="="},j.toString=function(){return z},j}(),Z=he.toByteArray(),Te=0;Te<Z.length;Te+=1)_e.writeByte(Z[Te]);return _e.flush(),"data:image/gif;base64,"+_e};return E}();c.stringToBytesFuncs["UTF-8"]=function(E){return function(m){for(var v=[],C=0;C<m.length;C++){var n=m.charCodeAt(C);n<128?v.push(n):n<2048?v.push(192|n>>6,128|63&n):n<55296||n>=57344?v.push(224|n>>12,128|n>>6&63,128|63&n):(C++,n=65536+((1023&n)<<10|1023&m.charCodeAt(C)),v.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return v}(E)},void 0===(r="function"==typeof(l=function(){return c})?l.apply(d,[]):l)||(e.exports=r)},796:(e,d,l)=>{"use strict";l.d(d,{default:()=>Tt});var r=function(){return(r=Object.assign||function(Et){for(var H,Y=1,S=arguments.length;Y<S;Y++)for(var K in H=arguments[Y])Object.prototype.hasOwnProperty.call(H,K)&&(Et[K]=H[K]);return Et}).apply(this,arguments)},c=function(){for(var Et=0,H=0,Y=arguments.length;H<Y;H++)Et+=arguments[H].length;var S=Array(Et),K=0;for(H=0;H<Y;H++)for(var Q=arguments[H],B=0,re=Q.length;B<re;B++,K++)S[K]=Q[B];return S},E=function(Et){return!!Et&&"object"==typeof Et&&!Array.isArray(Et)};function m(Et){for(var H=[],Y=1;Y<arguments.length;Y++)H[Y-1]=arguments[Y];if(!H.length)return Et;var S=H.shift();return void 0!==S&&E(Et)&&E(S)?(Et=r({},Et),Object.keys(S).forEach(function(K){var Q=Et[K],B=S[K];Et[K]=Array.isArray(Q)&&Array.isArray(B)?B:E(Q)&&E(B)?m(Object.assign({},Q),B):B}),m.apply(void 0,c([Et],H))):Et}function v(Et,H){var Y=document.createElement("a");Y.download=H,Y.href=Et,document.body.appendChild(Y),Y.click(),document.body.removeChild(Y)}function C(Et){var H=Et.originalHeight,Y=Et.originalWidth,S=Et.maxHiddenDots,K=Et.maxHiddenAxisDots,Q=Et.dotSize,B={x:0,y:0},re={x:0,y:0};if(H<=0||Y<=0||S<=0||Q<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var fe=H/Y;return B.x=Math.floor(Math.sqrt(S/fe)),B.x<=0&&(B.x=1),K&&K<B.x&&(B.x=K),B.x%2==0&&B.x--,re.x=B.x*Q,B.y=1+2*Math.ceil((B.x*fe-1)/2),re.y=Math.round(re.x*fe),(B.y*B.x>S||K&&K<B.y)&&(K&&K<B.y?(B.y=K,B.y%2==0&&B.x--):B.y-=2,re.y=B.y*Q,B.x=1+2*Math.ceil((B.y/fe-1)/2),re.x=Math.round(re.y/fe)),{height:re.y,width:re.x,hideYDots:B.y,hideXDots:B.x}}const n={L:.07,M:.15,Q:.25,H:.3},i="dots",P="rounded",I="classy",q="classy-rounded",M="extra-rounded";var T=function(){return(T=Object.assign||function(Et){for(var H,Y=1,S=arguments.length;Y<S;Y++)for(var K in H=arguments[Y])Object.prototype.hasOwnProperty.call(H,K)&&(Et[K]=H[K]);return Et}).apply(this,arguments)};const F=function(){function Et(H){var S=H.type;this._context=H.context,this._type=S}return Et.prototype.draw=function(H,Y,S,K){var Q,B=this._context;switch(this._type){case i:Q=this._drawDot;break;case I:Q=this._drawClassy;break;case q:Q=this._drawClassyRounded;break;case P:Q=this._drawRounded;break;case M:Q=this._drawExtraRounded;break;default:Q=this._drawSquare}Q.call(this,{x:H,y:Y,size:S,context:B,getNeighbor:K})},Et.prototype._rotateFigure=function(H){var K=H.size,Q=H.context,B=H.rotation,re=void 0===B?0:B,fe=H.draw,qe=H.x+K/2,$e=H.y+K/2;Q.translate(qe,$e),re&&Q.rotate(re),fe(),Q.closePath(),re&&Q.rotate(-re),Q.translate(-qe,-$e)},Et.prototype._basicDot=function(H){var Y=H.size,S=H.context;this._rotateFigure(T(T({},H),{draw:function(){S.arc(0,0,Y/2,0,2*Math.PI)}}))},Et.prototype._basicSquare=function(H){var Y=H.size,S=H.context;this._rotateFigure(T(T({},H),{draw:function(){S.rect(-Y/2,-Y/2,Y,Y)}}))},Et.prototype._basicSideRounded=function(H){var Y=H.size,S=H.context;this._rotateFigure(T(T({},H),{draw:function(){S.arc(0,0,Y/2,-Math.PI/2,Math.PI/2),S.lineTo(-Y/2,Y/2),S.lineTo(-Y/2,-Y/2),S.lineTo(0,-Y/2)}}))},Et.prototype._basicCornerRounded=function(H){var Y=H.size,S=H.context;this._rotateFigure(T(T({},H),{draw:function(){S.arc(0,0,Y/2,-Math.PI/2,0),S.lineTo(Y/2,Y/2),S.lineTo(-Y/2,Y/2),S.lineTo(-Y/2,-Y/2),S.lineTo(0,-Y/2)}}))},Et.prototype._basicCornerExtraRounded=function(H){var Y=H.size,S=H.context;this._rotateFigure(T(T({},H),{draw:function(){S.arc(-Y/2,Y/2,Y,-Math.PI/2,0),S.lineTo(-Y/2,Y/2),S.lineTo(-Y/2,-Y/2)}}))},Et.prototype._basicCornersRounded=function(H){var Y=H.size,S=H.context;this._rotateFigure(T(T({},H),{draw:function(){S.arc(0,0,Y/2,-Math.PI/2,0),S.lineTo(Y/2,Y/2),S.lineTo(0,Y/2),S.arc(0,0,Y/2,Math.PI/2,Math.PI),S.lineTo(-Y/2,-Y/2),S.lineTo(0,-Y/2)}}))},Et.prototype._basicCornersExtraRounded=function(H){var Y=H.size,S=H.context;this._rotateFigure(T(T({},H),{draw:function(){S.arc(-Y/2,Y/2,Y,-Math.PI/2,0),S.arc(Y/2,-Y/2,Y,Math.PI/2,Math.PI)}}))},Et.prototype._drawDot=function(H){this._basicDot({x:H.x,y:H.y,size:H.size,context:H.context,rotation:0})},Et.prototype._drawSquare=function(H){this._basicSquare({x:H.x,y:H.y,size:H.size,context:H.context,rotation:0})},Et.prototype._drawRounded=function(H){var Y=H.x,S=H.y,K=H.size,Q=H.context,B=H.getNeighbor,re=B?+B(-1,0):0,fe=B?+B(1,0):0,qe=B?+B(0,-1):0,$e=B?+B(0,1):0,et=re+fe+qe+$e;if(0!==et)if(et>2||re&&fe||qe&&$e)this._basicSquare({x:Y,y:S,size:K,context:Q,rotation:0});else{if(2===et){var ot=0;return re&&qe?ot=Math.PI/2:qe&&fe?ot=Math.PI:fe&&$e&&(ot=-Math.PI/2),void this._basicCornerRounded({x:Y,y:S,size:K,context:Q,rotation:ot})}if(1===et)return ot=0,qe?ot=Math.PI/2:fe?ot=Math.PI:$e&&(ot=-Math.PI/2),void this._basicSideRounded({x:Y,y:S,size:K,context:Q,rotation:ot})}else this._basicDot({x:Y,y:S,size:K,context:Q,rotation:0})},Et.prototype._drawExtraRounded=function(H){var Y=H.x,S=H.y,K=H.size,Q=H.context,B=H.getNeighbor,re=B?+B(-1,0):0,fe=B?+B(1,0):0,qe=B?+B(0,-1):0,$e=B?+B(0,1):0,et=re+fe+qe+$e;if(0!==et)if(et>2||re&&fe||qe&&$e)this._basicSquare({x:Y,y:S,size:K,context:Q,rotation:0});else{if(2===et){var ot=0;return re&&qe?ot=Math.PI/2:qe&&fe?ot=Math.PI:fe&&$e&&(ot=-Math.PI/2),void this._basicCornerExtraRounded({x:Y,y:S,size:K,context:Q,rotation:ot})}if(1===et)return ot=0,qe?ot=Math.PI/2:fe?ot=Math.PI:$e&&(ot=-Math.PI/2),void this._basicSideRounded({x:Y,y:S,size:K,context:Q,rotation:ot})}else this._basicDot({x:Y,y:S,size:K,context:Q,rotation:0})},Et.prototype._drawClassy=function(H){var Y=H.x,S=H.y,K=H.size,Q=H.context,B=H.getNeighbor,re=B?+B(-1,0):0,fe=B?+B(1,0):0,qe=B?+B(0,-1):0,$e=B?+B(0,1):0;re+fe+qe+$e!==0?re||qe?fe||$e?this._basicSquare({x:Y,y:S,size:K,context:Q,rotation:0}):this._basicCornerRounded({x:Y,y:S,size:K,context:Q,rotation:Math.PI/2}):this._basicCornerRounded({x:Y,y:S,size:K,context:Q,rotation:-Math.PI/2}):this._basicCornersRounded({x:Y,y:S,size:K,context:Q,rotation:Math.PI/2})},Et.prototype._drawClassyRounded=function(H){var Y=H.x,S=H.y,K=H.size,Q=H.context,B=H.getNeighbor,re=B?+B(-1,0):0,fe=B?+B(1,0):0,qe=B?+B(0,-1):0,$e=B?+B(0,1):0;re+fe+qe+$e!==0?re||qe?fe||$e?this._basicSquare({x:Y,y:S,size:K,context:Q,rotation:0}):this._basicCornerExtraRounded({x:Y,y:S,size:K,context:Q,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:Y,y:S,size:K,context:Q,rotation:-Math.PI/2}):this._basicCornersRounded({x:Y,y:S,size:K,context:Q,rotation:Math.PI/2})},Et}(),V="extra-rounded";var de=function(){return(de=Object.assign||function(Et){for(var H,Y=1,S=arguments.length;Y<S;Y++)for(var K in H=arguments[Y])Object.prototype.hasOwnProperty.call(H,K)&&(Et[K]=H[K]);return Et}).apply(this,arguments)};const ye=function(){function Et(H){var S=H.type;this._context=H.context,this._type=S}return Et.prototype.draw=function(H,Y,S,K){var Q,B=this._context;switch(this._type){case"square":Q=this._drawSquare;break;case V:Q=this._drawExtraRounded;break;default:Q=this._drawDot}Q.call(this,{x:H,y:Y,size:S,context:B,rotation:K})},Et.prototype._rotateFigure=function(H){var K=H.size,Q=H.context,B=H.rotation,re=void 0===B?0:B,fe=H.draw,qe=H.x+K/2,$e=H.y+K/2;Q.translate(qe,$e),re&&Q.rotate(re),fe(),Q.closePath(),re&&Q.rotate(-re),Q.translate(-qe,-$e)},Et.prototype._basicDot=function(H){var Y=H.size,S=H.context,K=Y/7;this._rotateFigure(de(de({},H),{draw:function(){S.arc(0,0,Y/2,0,2*Math.PI),S.arc(0,0,Y/2-K,0,2*Math.PI)}}))},Et.prototype._basicSquare=function(H){var Y=H.size,S=H.context,K=Y/7;this._rotateFigure(de(de({},H),{draw:function(){S.rect(-Y/2,-Y/2,Y,Y),S.rect(-Y/2+K,-Y/2+K,Y-2*K,Y-2*K)}}))},Et.prototype._basicExtraRounded=function(H){var S=H.context,K=H.size/7;this._rotateFigure(de(de({},H),{draw:function(){S.arc(-K,-K,2.5*K,Math.PI,-Math.PI/2),S.lineTo(K,-3.5*K),S.arc(K,-K,2.5*K,-Math.PI/2,0),S.lineTo(3.5*K,-K),S.arc(K,K,2.5*K,0,Math.PI/2),S.lineTo(-K,3.5*K),S.arc(-K,K,2.5*K,Math.PI/2,Math.PI),S.lineTo(-3.5*K,-K),S.arc(-K,-K,1.5*K,Math.PI,-Math.PI/2),S.lineTo(K,-2.5*K),S.arc(K,-K,1.5*K,-Math.PI/2,0),S.lineTo(2.5*K,-K),S.arc(K,K,1.5*K,0,Math.PI/2),S.lineTo(-K,2.5*K),S.arc(-K,K,1.5*K,Math.PI/2,Math.PI),S.lineTo(-2.5*K,-K)}}))},Et.prototype._drawDot=function(H){this._basicDot({x:H.x,y:H.y,size:H.size,context:H.context,rotation:H.rotation})},Et.prototype._drawSquare=function(H){this._basicSquare({x:H.x,y:H.y,size:H.size,context:H.context,rotation:H.rotation})},Et.prototype._drawExtraRounded=function(H){this._basicExtraRounded({x:H.x,y:H.y,size:H.size,context:H.context,rotation:H.rotation})},Et}();var Le=function(){return(Le=Object.assign||function(Et){for(var H,Y=1,S=arguments.length;Y<S;Y++)for(var K in H=arguments[Y])Object.prototype.hasOwnProperty.call(H,K)&&(Et[K]=H[K]);return Et}).apply(this,arguments)};const ge=function(){function Et(H){var S=H.type;this._context=H.context,this._type=S}return Et.prototype.draw=function(H,Y,S,K){("square"===this._type?this._drawSquare:this._drawDot).call(this,{x:H,y:Y,size:S,context:this._context,rotation:K})},Et.prototype._rotateFigure=function(H){var K=H.size,Q=H.context,B=H.rotation,re=void 0===B?0:B,fe=H.draw,qe=H.x+K/2,$e=H.y+K/2;Q.translate(qe,$e),re&&Q.rotate(re),fe(),Q.closePath(),re&&Q.rotate(-re),Q.translate(-qe,-$e)},Et.prototype._basicDot=function(H){var Y=H.size,S=H.context;this._rotateFigure(Le(Le({},H),{draw:function(){S.arc(0,0,Y/2,0,2*Math.PI)}}))},Et.prototype._basicSquare=function(H){var Y=H.size,S=H.context;this._rotateFigure(Le(Le({},H),{draw:function(){S.rect(-Y/2,-Y/2,Y,Y)}}))},Et.prototype._drawDot=function(H){this._basicDot({x:H.x,y:H.y,size:H.size,context:H.context,rotation:H.rotation})},Et.prototype._drawSquare=function(H){this._basicSquare({x:H.x,y:H.y,size:H.size,context:H.context,rotation:H.rotation})},Et}();var ee=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],se=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const W=function(){function Et(H){this._canvas=document.createElement("canvas"),this._canvas.width=H.width,this._canvas.height=H.height,this._options=H}return Object.defineProperty(Et.prototype,"context",{get:function(){return this._canvas.getContext("2d")},enumerable:!1,configurable:!0}),Object.defineProperty(Et.prototype,"width",{get:function(){return this._canvas.width},enumerable:!1,configurable:!0}),Object.defineProperty(Et.prototype,"height",{get:function(){return this._canvas.height},enumerable:!1,configurable:!0}),Et.prototype.getCanvas=function(){return this._canvas},Et.prototype.clear=function(){var H=this.context;H&&H.clearRect(0,0,this._canvas.width,this._canvas.height)},Et.prototype.drawQR=function(H){return Y=this,void 0,Q=function(){var B,re,fe,qe,$e,pt,$t=this;return function(It,fr){var yt,dr,bt,ar,vt={label:0,sent:function(){if(1&bt[0])throw bt[1];return bt[1]},trys:[],ops:[]};return ar={next:qt(0),throw:qt(1),return:qt(2)},"function"==typeof Symbol&&(ar[Symbol.iterator]=function(){return this}),ar;function qt(br){return function(lt){return function(De){if(yt)throw new TypeError("Generator is already executing.");for(;vt;)try{if(yt=1,dr&&(bt=2&De[0]?dr.return:De[0]?dr.throw||((bt=dr.return)&&bt.call(dr),0):dr.next)&&!(bt=bt.call(dr,De[1])).done)return bt;switch(dr=0,bt&&(De=[2&De[0],bt.value]),De[0]){case 0:case 1:bt=De;break;case 4:return vt.label++,{value:De[1],done:!1};case 5:vt.label++,dr=De[1],De=[0];continue;case 7:De=vt.ops.pop(),vt.trys.pop();continue;default:if(!((bt=(bt=vt.trys).length>0&&bt[bt.length-1])||6!==De[0]&&2!==De[0])){vt=0;continue}if(3===De[0]&&(!bt||De[1]>bt[0]&&De[1]<bt[3])){vt.label=De[1];break}if(6===De[0]&&vt.label<bt[1]){vt.label=bt[1],bt=De;break}if(bt&&vt.label<bt[2]){vt.label=bt[2],vt.ops.push(De);break}bt[2]&&vt.ops.pop(),vt.trys.pop();continue}De=fr.call(It,vt)}catch(G){De=[6,G],dr=0}finally{yt=bt=0}if(5&De[0])throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}([br,lt])}}}(this,function(It){switch(It.label){case 0:return B=H.getModuleCount(),re=Math.min(this._options.width,this._options.height)-2*this._options.margin,fe=Math.floor(re/B),qe={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=H,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(It.sent(),!this._image)return[2];$e=this._options,pt=Math.floor($e.imageOptions.imageSize*n[$e.qrOptions.errorCorrectionLevel]*B*B),qe=C({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:pt,maxHiddenAxisDots:B-14,dotSize:fe}),It.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(fr,yt){var dr,bt,ar,vt,qt,br;return!($t._options.imageOptions.hideBackgroundDots&&fr>=(B-qe.hideXDots)/2&&fr<(B+qe.hideXDots)/2&&yt>=(B-qe.hideYDots)/2&&yt<(B+qe.hideYDots)/2||null!==(dr=ee[fr])&&void 0!==dr&&dr[yt]||null!==(bt=ee[fr-B+7])&&void 0!==bt&&bt[yt]||null!==(ar=ee[fr])&&void 0!==ar&&ar[yt-B+7]||null!==(vt=se[fr])&&void 0!==vt&&vt[yt]||null!==(qt=se[fr-B+7])&&void 0!==qt&&qt[yt]||null!==(br=se[fr])&&void 0!==br&&br[yt-B+7])}),this.drawCorners(),this._options.image&&this.drawImage({width:qe.width,height:qe.height,count:B,dotSize:fe}),[2]}})},new((K=void 0)||(K=Promise))(function(B,re){function fe(et){try{$e(Q.next(et))}catch(ot){re(ot)}}function qe(et){try{$e(Q.throw(et))}catch(ot){re(ot)}}function $e(et){var ot;et.done?B(et.value):(ot=et.value,ot instanceof K?ot:new K(function(ct){ct(ot)})).then(fe,qe)}$e((Q=Q.apply(Y,[])).next())});var Y,K,Q},Et.prototype.drawBackground=function(){var H=this.context,Y=this._options;if(H){if(Y.backgroundOptions.gradient){var S=Y.backgroundOptions.gradient,K=this._createGradient({context:H,options:S,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});S.colorStops.forEach(function(Q){K.addColorStop(Q.offset,Q.color)}),H.fillStyle=K}else Y.backgroundOptions.color&&(H.fillStyle=Y.backgroundOptions.color);H.fillRect(0,0,this._canvas.width,this._canvas.height)}},Et.prototype.drawDots=function(H){var Y=this;if(!this._qr)throw"QR code is not defined";var S=this.context;if(!S)throw"QR code is not defined";var K=this._options,Q=this._qr.getModuleCount();if(Q>K.width||Q>K.height)throw"The canvas is too small.";var B=Math.min(K.width,K.height)-2*K.margin,re=Math.floor(B/Q),fe=Math.floor((K.width-Q*re)/2),qe=Math.floor((K.height-Q*re)/2),$e=new F({context:S,type:K.dotsOptions.type});S.beginPath();for(var et=function(It){for(var fr=function(dr){return H&&!H(It,dr)?"continue":ot._qr.isDark(It,dr)?void $e.draw(fe+It*re,qe+dr*re,re,function(bt,ar){return!(It+bt<0||dr+ar<0||It+bt>=Q||dr+ar>=Q)&&!(H&&!H(It+bt,dr+ar))&&!!Y._qr&&Y._qr.isDark(It+bt,dr+ar)}):"continue"},yt=0;yt<Q;yt++)fr(yt)},ot=this,ct=0;ct<Q;ct++)et(ct);if(K.dotsOptions.gradient){var pt=K.dotsOptions.gradient,$t=this._createGradient({context:S,options:pt,additionalRotation:0,x:fe,y:qe,size:Q*re});pt.colorStops.forEach(function(It){$t.addColorStop(It.offset,It.color)}),S.fillStyle=S.strokeStyle=$t}else K.dotsOptions.color&&(S.fillStyle=S.strokeStyle=K.dotsOptions.color);S.fill("evenodd")},Et.prototype.drawCorners=function(H){var Y=this;if(!this._qr)throw"QR code is not defined";var S=this.context;if(!S)throw"QR code is not defined";var K=this._options,Q=this._qr.getModuleCount(),B=Math.min(K.width,K.height)-2*K.margin,re=Math.floor(B/Q),fe=7*re,qe=3*re,$e=Math.floor((K.width-Q*re)/2),et=Math.floor((K.height-Q*re)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(ot){var ct,pt,$t,It,fr,yt,dr,bt,ar,vt,qt=ot[0],br=ot[1],lt=ot[2];if(!H||H(qt,br)){var De=$e+qt*re*(Q-7),G=et+br*re*(Q-7);if(null!==(ct=K.cornersSquareOptions)&&void 0!==ct&&ct.type){var U=new ye({context:S,type:null===(pt=K.cornersSquareOptions)||void 0===pt?void 0:pt.type});S.beginPath(),U.draw(De,G,fe,lt)}else{var ne=new F({context:S,type:K.dotsOptions.type});S.beginPath();for(var Re=function(Me){for(var ut=function(Ht){if(null===($t=ee[Me])||void 0===$t||!$t[Ht])return"continue";ne.draw(De+Me*re,G+Ht*re,re,function(pr,Lr){var Kr;return!(null===(Kr=ee[Me+pr])||void 0===Kr||!Kr[Ht+Lr])})},nt=0;nt<ee[Me].length;nt++)ut(nt)},Xe=0;Xe<ee.length;Xe++)Re(Xe)}if(null!==(It=K.cornersSquareOptions)&&void 0!==It&&It.gradient){var Nt=K.cornersSquareOptions.gradient,Pt=Y._createGradient({context:S,options:Nt,additionalRotation:lt,x:De,y:G,size:fe});Nt.colorStops.forEach(function(Me){Pt.addColorStop(Me.offset,Me.color)}),S.fillStyle=S.strokeStyle=Pt}else null!==(fr=K.cornersSquareOptions)&&void 0!==fr&&fr.color&&(S.fillStyle=S.strokeStyle=K.cornersSquareOptions.color);if(S.fill("evenodd"),null===(yt=K.cornersDotOptions)||void 0===yt?void 0:yt.type){var Vt=new ge({context:S,type:null===(dr=K.cornersDotOptions)||void 0===dr?void 0:dr.type});S.beginPath(),Vt.draw(De+2*re,G+2*re,qe,lt)}else{ne=new F({context:S,type:K.dotsOptions.type}),S.beginPath();var Jt=function(Me){for(var ut=function(Ht){if(null===(bt=se[Me])||void 0===bt||!bt[Ht])return"continue";ne.draw(De+Me*re,G+Ht*re,re,function(pr,Lr){var Kr;return!(null===(Kr=se[Me+pr])||void 0===Kr||!Kr[Ht+Lr])})},nt=0;nt<se[Me].length;nt++)ut(nt)};for(Xe=0;Xe<se.length;Xe++)Jt(Xe)}if(null!==(ar=K.cornersDotOptions)&&void 0!==ar&&ar.gradient){var kt=Y._createGradient({context:S,options:Nt=K.cornersDotOptions.gradient,additionalRotation:lt,x:De+2*re,y:G+2*re,size:qe});Nt.colorStops.forEach(function(Me){kt.addColorStop(Me.offset,Me.color)}),S.fillStyle=S.strokeStyle=kt}else null!==(vt=K.cornersDotOptions)&&void 0!==vt&&vt.color&&(S.fillStyle=S.strokeStyle=K.cornersDotOptions.color);S.fill("evenodd")}})},Et.prototype.loadImage=function(){var H=this;return new Promise(function(Y,S){var K=H._options,Q=new Image;if(!K.image)return S("Image is not defined");"string"==typeof K.imageOptions.crossOrigin&&(Q.crossOrigin=K.imageOptions.crossOrigin),H._image=Q,Q.onload=function(){Y()},Q.src=K.image})},Et.prototype.drawImage=function(H){var Y=H.width,S=H.height,K=H.count,Q=H.dotSize,B=this.context;if(!B)throw"canvasContext is not defined";if(!this._image)throw"image is not defined";var re=this._options,fe=Math.floor((re.width-K*Q)/2),qe=Math.floor((re.height-K*Q)/2),ot=Y-2*re.imageOptions.margin,ct=S-2*re.imageOptions.margin;B.drawImage(this._image,fe+re.imageOptions.margin+(K*Q-Y)/2,qe+re.imageOptions.margin+(K*Q-S)/2,ot<0?0:ot,ct<0?0:ct)},Et.prototype._createGradient=function(H){var Y,S=H.context,K=H.options,Q=H.additionalRotation,B=H.x,re=H.y,fe=H.size;if("radial"===K.type)Y=S.createRadialGradient(B+fe/2,re+fe/2,0,B+fe/2,re+fe/2,fe/2);else{var qe=((K.rotation||0)+Q)%(2*Math.PI),$e=(qe+2*Math.PI)%(2*Math.PI),et=B+fe/2,ot=re+fe/2,ct=B+fe/2,pt=re+fe/2;$e>=0&&$e<=.25*Math.PI||$e>1.75*Math.PI&&$e<=2*Math.PI?(et-=fe/2,ot-=fe/2*Math.tan(qe),ct+=fe/2,pt+=fe/2*Math.tan(qe)):$e>.25*Math.PI&&$e<=.75*Math.PI?(ot-=fe/2,et-=fe/2/Math.tan(qe),pt+=fe/2,ct+=fe/2/Math.tan(qe)):$e>.75*Math.PI&&$e<=1.25*Math.PI?(et+=fe/2,ot+=fe/2*Math.tan(qe),ct-=fe/2,pt-=fe/2*Math.tan(qe)):$e>1.25*Math.PI&&$e<=1.75*Math.PI&&(ot+=fe/2,et+=fe/2/Math.tan(qe),pt-=fe/2,ct-=fe/2/Math.tan(qe)),Y=S.createLinearGradient(Math.round(et),Math.round(ot),Math.round(ct),Math.round(pt))}return Y},Et}();var L=function(){return(L=Object.assign||function(Et){for(var H,Y=1,S=arguments.length;Y<S;Y++)for(var K in H=arguments[Y])Object.prototype.hasOwnProperty.call(H,K)&&(Et[K]=H[K]);return Et}).apply(this,arguments)};const he=function(){function Et(H){var S=H.type;this._svg=H.svg,this._type=S}return Et.prototype.draw=function(H,Y,S,K){var Q;switch(this._type){case i:Q=this._drawDot;break;case I:Q=this._drawClassy;break;case q:Q=this._drawClassyRounded;break;case P:Q=this._drawRounded;break;case M:Q=this._drawExtraRounded;break;default:Q=this._drawSquare}Q.call(this,{x:H,y:Y,size:S,getNeighbor:K})},Et.prototype._rotateFigure=function(H){var Y,Q=H.size,B=H.rotation,re=void 0===B?0:B,fe=H.x+Q/2,qe=H.y+Q/2;(0,H.draw)(),null===(Y=this._element)||void 0===Y||Y.setAttribute("transform","rotate("+180*re/Math.PI+","+fe+","+qe+")")},Et.prototype._basicDot=function(H){var Y=this,S=H.size,K=H.x,Q=H.y;this._rotateFigure(L(L({},H),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),Y._element.setAttribute("cx",String(K+S/2)),Y._element.setAttribute("cy",String(Q+S/2)),Y._element.setAttribute("r",String(S/2))}}))},Et.prototype._basicSquare=function(H){var Y=this,S=H.size,K=H.x,Q=H.y;this._rotateFigure(L(L({},H),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),Y._element.setAttribute("x",String(K)),Y._element.setAttribute("y",String(Q)),Y._element.setAttribute("width",String(S)),Y._element.setAttribute("height",String(S))}}))},Et.prototype._basicSideRounded=function(H){var Y=this,S=H.size,K=H.x,Q=H.y;this._rotateFigure(L(L({},H),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Y._element.setAttribute("d","M "+K+" "+Q+"v "+S+"h "+S/2+"a "+S/2+" "+S/2+", 0, 0, 0, 0 "+-S)}}))},Et.prototype._basicCornerRounded=function(H){var Y=this,S=H.size,K=H.x,Q=H.y;this._rotateFigure(L(L({},H),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Y._element.setAttribute("d","M "+K+" "+Q+"v "+S+"h "+S+"v "+-S/2+"a "+S/2+" "+S/2+", 0, 0, 0, "+-S/2+" "+-S/2)}}))},Et.prototype._basicCornerExtraRounded=function(H){var Y=this,S=H.size,K=H.x,Q=H.y;this._rotateFigure(L(L({},H),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Y._element.setAttribute("d","M "+K+" "+Q+"v "+S+"h "+S+"a "+S+" "+S+", 0, 0, 0, "+-S+" "+-S)}}))},Et.prototype._basicCornersRounded=function(H){var Y=this,S=H.size,K=H.x,Q=H.y;this._rotateFigure(L(L({},H),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Y._element.setAttribute("d","M "+K+" "+Q+"v "+S/2+"a "+S/2+" "+S/2+", 0, 0, 0, "+S/2+" "+S/2+"h "+S/2+"v "+-S/2+"a "+S/2+" "+S/2+", 0, 0, 0, "+-S/2+" "+-S/2)}}))},Et.prototype._drawDot=function(H){this._basicDot({x:H.x,y:H.y,size:H.size,rotation:0})},Et.prototype._drawSquare=function(H){this._basicSquare({x:H.x,y:H.y,size:H.size,rotation:0})},Et.prototype._drawRounded=function(H){var Y=H.x,S=H.y,K=H.size,Q=H.getNeighbor,B=Q?+Q(-1,0):0,re=Q?+Q(1,0):0,fe=Q?+Q(0,-1):0,qe=Q?+Q(0,1):0,$e=B+re+fe+qe;if(0!==$e)if($e>2||B&&re||fe&&qe)this._basicSquare({x:Y,y:S,size:K,rotation:0});else{if(2===$e){var et=0;return B&&fe?et=Math.PI/2:fe&&re?et=Math.PI:re&&qe&&(et=-Math.PI/2),void this._basicCornerRounded({x:Y,y:S,size:K,rotation:et})}if(1===$e)return et=0,fe?et=Math.PI/2:re?et=Math.PI:qe&&(et=-Math.PI/2),void this._basicSideRounded({x:Y,y:S,size:K,rotation:et})}else this._basicDot({x:Y,y:S,size:K,rotation:0})},Et.prototype._drawExtraRounded=function(H){var Y=H.x,S=H.y,K=H.size,Q=H.getNeighbor,B=Q?+Q(-1,0):0,re=Q?+Q(1,0):0,fe=Q?+Q(0,-1):0,qe=Q?+Q(0,1):0,$e=B+re+fe+qe;if(0!==$e)if($e>2||B&&re||fe&&qe)this._basicSquare({x:Y,y:S,size:K,rotation:0});else{if(2===$e){var et=0;return B&&fe?et=Math.PI/2:fe&&re?et=Math.PI:re&&qe&&(et=-Math.PI/2),void this._basicCornerExtraRounded({x:Y,y:S,size:K,rotation:et})}if(1===$e)return et=0,fe?et=Math.PI/2:re?et=Math.PI:qe&&(et=-Math.PI/2),void this._basicSideRounded({x:Y,y:S,size:K,rotation:et})}else this._basicDot({x:Y,y:S,size:K,rotation:0})},Et.prototype._drawClassy=function(H){var Y=H.x,S=H.y,K=H.size,Q=H.getNeighbor,B=Q?+Q(-1,0):0,re=Q?+Q(1,0):0,fe=Q?+Q(0,-1):0,qe=Q?+Q(0,1):0;B+re+fe+qe!==0?B||fe?re||qe?this._basicSquare({x:Y,y:S,size:K,rotation:0}):this._basicCornerRounded({x:Y,y:S,size:K,rotation:Math.PI/2}):this._basicCornerRounded({x:Y,y:S,size:K,rotation:-Math.PI/2}):this._basicCornersRounded({x:Y,y:S,size:K,rotation:Math.PI/2})},Et.prototype._drawClassyRounded=function(H){var Y=H.x,S=H.y,K=H.size,Q=H.getNeighbor,B=Q?+Q(-1,0):0,re=Q?+Q(1,0):0,fe=Q?+Q(0,-1):0,qe=Q?+Q(0,1):0;B+re+fe+qe!==0?B||fe?re||qe?this._basicSquare({x:Y,y:S,size:K,rotation:0}):this._basicCornerExtraRounded({x:Y,y:S,size:K,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:Y,y:S,size:K,rotation:-Math.PI/2}):this._basicCornersRounded({x:Y,y:S,size:K,rotation:Math.PI/2})},Et}();var _e=function(){return(_e=Object.assign||function(Et){for(var H,Y=1,S=arguments.length;Y<S;Y++)for(var K in H=arguments[Y])Object.prototype.hasOwnProperty.call(H,K)&&(Et[K]=H[K]);return Et}).apply(this,arguments)};const Z=function(){function Et(H){var S=H.type;this._svg=H.svg,this._type=S}return Et.prototype.draw=function(H,Y,S,K){var Q;switch(this._type){case"square":Q=this._drawSquare;break;case V:Q=this._drawExtraRounded;break;default:Q=this._drawDot}Q.call(this,{x:H,y:Y,size:S,rotation:K})},Et.prototype._rotateFigure=function(H){var Y,Q=H.size,B=H.rotation,re=void 0===B?0:B,fe=H.x+Q/2,qe=H.y+Q/2;(0,H.draw)(),null===(Y=this._element)||void 0===Y||Y.setAttribute("transform","rotate("+180*re/Math.PI+","+fe+","+qe+")")},Et.prototype._basicDot=function(H){var Y=this,S=H.size,K=H.x,Q=H.y,B=S/7;this._rotateFigure(_e(_e({},H),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Y._element.setAttribute("clip-rule","evenodd"),Y._element.setAttribute("d","M "+(K+S/2)+" "+Q+"a "+S/2+" "+S/2+" 0 1 0 0.1 0zm 0 "+B+"a "+(S/2-B)+" "+(S/2-B)+" 0 1 1 -0.1 0Z")}}))},Et.prototype._basicSquare=function(H){var Y=this,S=H.size,K=H.x,Q=H.y,B=S/7;this._rotateFigure(_e(_e({},H),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Y._element.setAttribute("clip-rule","evenodd"),Y._element.setAttribute("d","M "+K+" "+Q+"v "+S+"h "+S+"v "+-S+"zM "+(K+B)+" "+(Q+B)+"h "+(S-2*B)+"v "+(S-2*B)+"h "+(2*B-S)+"z")}}))},Et.prototype._basicExtraRounded=function(H){var Y=this,K=H.x,Q=H.y,B=H.size/7;this._rotateFigure(_e(_e({},H),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Y._element.setAttribute("clip-rule","evenodd"),Y._element.setAttribute("d","M "+K+" "+(Q+2.5*B)+"v "+2*B+"a "+2.5*B+" "+2.5*B+", 0, 0, 0, "+2.5*B+" "+2.5*B+"h "+2*B+"a "+2.5*B+" "+2.5*B+", 0, 0, 0, "+2.5*B+" "+2.5*-B+"v "+-2*B+"a "+2.5*B+" "+2.5*B+", 0, 0, 0, "+2.5*-B+" "+2.5*-B+"h "+-2*B+"a "+2.5*B+" "+2.5*B+", 0, 0, 0, "+2.5*-B+" "+2.5*B+"M "+(K+2.5*B)+" "+(Q+B)+"h "+2*B+"a "+1.5*B+" "+1.5*B+", 0, 0, 1, "+1.5*B+" "+1.5*B+"v "+2*B+"a "+1.5*B+" "+1.5*B+", 0, 0, 1, "+1.5*-B+" "+1.5*B+"h "+-2*B+"a "+1.5*B+" "+1.5*B+", 0, 0, 1, "+1.5*-B+" "+1.5*-B+"v "+-2*B+"a "+1.5*B+" "+1.5*B+", 0, 0, 1, "+1.5*B+" "+1.5*-B)}}))},Et.prototype._drawDot=function(H){this._basicDot({x:H.x,y:H.y,size:H.size,rotation:H.rotation})},Et.prototype._drawSquare=function(H){this._basicSquare({x:H.x,y:H.y,size:H.size,rotation:H.rotation})},Et.prototype._drawExtraRounded=function(H){this._basicExtraRounded({x:H.x,y:H.y,size:H.size,rotation:H.rotation})},Et}();var Te=function(){return(Te=Object.assign||function(Et){for(var H,Y=1,S=arguments.length;Y<S;Y++)for(var K in H=arguments[Y])Object.prototype.hasOwnProperty.call(H,K)&&(Et[K]=H[K]);return Et}).apply(this,arguments)};const w=function(){function Et(H){var S=H.type;this._svg=H.svg,this._type=S}return Et.prototype.draw=function(H,Y,S,K){("square"===this._type?this._drawSquare:this._drawDot).call(this,{x:H,y:Y,size:S,rotation:K})},Et.prototype._rotateFigure=function(H){var Y,Q=H.size,B=H.rotation,re=void 0===B?0:B,fe=H.x+Q/2,qe=H.y+Q/2;(0,H.draw)(),null===(Y=this._element)||void 0===Y||Y.setAttribute("transform","rotate("+180*re/Math.PI+","+fe+","+qe+")")},Et.prototype._basicDot=function(H){var Y=this,S=H.size,K=H.x,Q=H.y;this._rotateFigure(Te(Te({},H),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),Y._element.setAttribute("cx",String(K+S/2)),Y._element.setAttribute("cy",String(Q+S/2)),Y._element.setAttribute("r",String(S/2))}}))},Et.prototype._basicSquare=function(H){var Y=this,S=H.size,K=H.x,Q=H.y;this._rotateFigure(Te(Te({},H),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),Y._element.setAttribute("x",String(K)),Y._element.setAttribute("y",String(Q)),Y._element.setAttribute("width",String(S)),Y._element.setAttribute("height",String(S))}}))},Et.prototype._drawDot=function(H){this._basicDot({x:H.x,y:H.y,size:H.size,rotation:H.rotation})},Et.prototype._drawSquare=function(H){this._basicSquare({x:H.x,y:H.y,size:H.size,rotation:H.rotation})},Et}();var k=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],x=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const z=function(){function Et(H){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(H.width)),this._element.setAttribute("height",String(H.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=H}return Object.defineProperty(Et.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(Et.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),Et.prototype.getElement=function(){return this._element},Et.prototype.clear=function(){var H,Y=this._element;this._element=Y.cloneNode(!1),null===(H=Y?.parentNode)||void 0===H||H.replaceChild(this._element,Y),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs)},Et.prototype.drawQR=function(H){return Y=this,void 0,Q=function(){var B,re,fe,qe,$e,pt,$t=this;return function(It,fr){var yt,dr,bt,ar,vt={label:0,sent:function(){if(1&bt[0])throw bt[1];return bt[1]},trys:[],ops:[]};return ar={next:qt(0),throw:qt(1),return:qt(2)},"function"==typeof Symbol&&(ar[Symbol.iterator]=function(){return this}),ar;function qt(br){return function(lt){return function(De){if(yt)throw new TypeError("Generator is already executing.");for(;vt;)try{if(yt=1,dr&&(bt=2&De[0]?dr.return:De[0]?dr.throw||((bt=dr.return)&&bt.call(dr),0):dr.next)&&!(bt=bt.call(dr,De[1])).done)return bt;switch(dr=0,bt&&(De=[2&De[0],bt.value]),De[0]){case 0:case 1:bt=De;break;case 4:return vt.label++,{value:De[1],done:!1};case 5:vt.label++,dr=De[1],De=[0];continue;case 7:De=vt.ops.pop(),vt.trys.pop();continue;default:if(!((bt=(bt=vt.trys).length>0&&bt[bt.length-1])||6!==De[0]&&2!==De[0])){vt=0;continue}if(3===De[0]&&(!bt||De[1]>bt[0]&&De[1]<bt[3])){vt.label=De[1];break}if(6===De[0]&&vt.label<bt[1]){vt.label=bt[1],bt=De;break}if(bt&&vt.label<bt[2]){vt.label=bt[2],vt.ops.push(De);break}bt[2]&&vt.ops.pop(),vt.trys.pop();continue}De=fr.call(It,vt)}catch(G){De=[6,G],dr=0}finally{yt=bt=0}if(5&De[0])throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}([br,lt])}}}(this,function(It){switch(It.label){case 0:return B=H.getModuleCount(),re=Math.min(this._options.width,this._options.height)-2*this._options.margin,fe=Math.floor(re/B),qe={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=H,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(It.sent(),!this._image)return[2];$e=this._options,pt=Math.floor($e.imageOptions.imageSize*n[$e.qrOptions.errorCorrectionLevel]*B*B),qe=C({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:pt,maxHiddenAxisDots:B-14,dotSize:fe}),It.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(fr,yt){var dr,bt,ar,vt,qt,br;return!($t._options.imageOptions.hideBackgroundDots&&fr>=(B-qe.hideXDots)/2&&fr<(B+qe.hideXDots)/2&&yt>=(B-qe.hideYDots)/2&&yt<(B+qe.hideYDots)/2||null!==(dr=k[fr])&&void 0!==dr&&dr[yt]||null!==(bt=k[fr-B+7])&&void 0!==bt&&bt[yt]||null!==(ar=k[fr])&&void 0!==ar&&ar[yt-B+7]||null!==(vt=x[fr])&&void 0!==vt&&vt[yt]||null!==(qt=x[fr-B+7])&&void 0!==qt&&qt[yt]||null!==(br=x[fr])&&void 0!==br&&br[yt-B+7])}),this.drawCorners(),this._options.image&&this.drawImage({width:qe.width,height:qe.height,count:B,dotSize:fe}),[2]}})},new((K=void 0)||(K=Promise))(function(B,re){function fe(et){try{$e(Q.next(et))}catch(ot){re(ot)}}function qe(et){try{$e(Q.throw(et))}catch(ot){re(ot)}}function $e(et){var ot;et.done?B(et.value):(ot=et.value,ot instanceof K?ot:new K(function(ct){ct(ot)})).then(fe,qe)}$e((Q=Q.apply(Y,[])).next())});var Y,K,Q},Et.prototype.drawBackground=function(){var H,Y,K=this._options;if(this._element){var Q=null===(H=K.backgroundOptions)||void 0===H?void 0:H.gradient,B=null===(Y=K.backgroundOptions)||void 0===Y?void 0:Y.color;(Q||B)&&this._createColor({options:Q,color:B,additionalRotation:0,x:0,y:0,height:K.height,width:K.width,name:"background-color"})}},Et.prototype.drawDots=function(H){var Y,S,K=this;if(!this._qr)throw"QR code is not defined";var Q=this._options,B=this._qr.getModuleCount();if(B>Q.width||B>Q.height)throw"The canvas is too small.";var re=Math.min(Q.width,Q.height)-2*Q.margin,fe=Math.floor(re/B),qe=Math.floor((Q.width-B*fe)/2),$e=Math.floor((Q.height-B*fe)/2),et=new he({svg:this._element,type:Q.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(Y=Q.dotsOptions)||void 0===Y?void 0:Y.gradient,color:Q.dotsOptions.color,additionalRotation:0,x:qe,y:$e,height:B*fe,width:B*fe,name:"dot-color"});for(var ot=function($t){for(var It=function(yt){return H&&!H($t,yt)?"continue":null!==(S=ct._qr)&&void 0!==S&&S.isDark($t,yt)?(et.draw(qe+$t*fe,$e+yt*fe,fe,function(dr,bt){return!($t+dr<0||yt+bt<0||$t+dr>=B||yt+bt>=B)&&!(H&&!H($t+dr,yt+bt))&&!!K._qr&&K._qr.isDark($t+dr,yt+bt)}),void(et._element&&ct._dotsClipPath&&ct._dotsClipPath.appendChild(et._element))):"continue"},fr=0;fr<B;fr++)It(fr)},ct=this,pt=0;pt<B;pt++)ot(pt)},Et.prototype.drawCorners=function(){var H=this;if(!this._qr)throw"QR code is not defined";var S=this._options;if(!this._element)throw"Element code is not defined";var K=this._qr.getModuleCount(),Q=Math.min(S.width,S.height)-2*S.margin,B=Math.floor(Q/K),re=7*B,fe=3*B,qe=Math.floor((S.width-K*B)/2),$e=Math.floor((S.height-K*B)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(et){var ot,ct,pt,$t,It,fr,yt,dr,bt,ar,vt,qt,br=et[0],lt=et[1],De=et[2],G=qe+br*B*(K-7),U=$e+lt*B*(K-7),ne=H._dotsClipPath,Re=H._dotsClipPath;if((!(null===(ot=S.cornersSquareOptions)||void 0===ot)&&ot.gradient||!(null===(ct=S.cornersSquareOptions)||void 0===ct)&&ct.color)&&((ne=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+br+"-"+lt),H._defs.appendChild(ne),H._cornersSquareClipPath=H._cornersDotClipPath=Re=ne,H._createColor({options:null===(pt=S.cornersSquareOptions)||void 0===pt?void 0:pt.gradient,color:null===($t=S.cornersSquareOptions)||void 0===$t?void 0:$t.color,additionalRotation:De,x:G,y:U,height:re,width:re,name:"corners-square-color-"+br+"-"+lt})),null===(It=S.cornersSquareOptions)||void 0===It?void 0:It.type){var Xe=new Z({svg:H._element,type:S.cornersSquareOptions.type});Xe.draw(G,U,re,De),Xe._element&&ne&&ne.appendChild(Xe._element)}else for(var Nt=new he({svg:H._element,type:S.dotsOptions.type}),Pt=function(Me){for(var ut=function(Ht){if(null===(fr=k[Me])||void 0===fr||!fr[Ht])return"continue";Nt.draw(G+Me*B,U+Ht*B,B,function(pr,Lr){var Kr;return!(null===(Kr=k[Me+pr])||void 0===Kr||!Kr[Ht+Lr])}),Nt._element&&ne&&ne.appendChild(Nt._element)},nt=0;nt<k[Me].length;nt++)ut(nt)},Vt=0;Vt<k.length;Vt++)Pt(Vt);if((!(null===(yt=S.cornersDotOptions)||void 0===yt)&&yt.gradient||!(null===(dr=S.cornersDotOptions)||void 0===dr)&&dr.color)&&((Re=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+br+"-"+lt),H._defs.appendChild(Re),H._cornersDotClipPath=Re,H._createColor({options:null===(bt=S.cornersDotOptions)||void 0===bt?void 0:bt.gradient,color:null===(ar=S.cornersDotOptions)||void 0===ar?void 0:ar.color,additionalRotation:De,x:G+2*B,y:U+2*B,height:fe,width:fe,name:"corners-dot-color-"+br+"-"+lt})),null===(vt=S.cornersDotOptions)||void 0===vt?void 0:vt.type){var Jt=new w({svg:H._element,type:S.cornersDotOptions.type});Jt.draw(G+2*B,U+2*B,fe,De),Jt._element&&Re&&Re.appendChild(Jt._element)}else{Nt=new he({svg:H._element,type:S.dotsOptions.type});var kt=function(Me){for(var ut=function(Ht){if(null===(qt=x[Me])||void 0===qt||!qt[Ht])return"continue";Nt.draw(G+Me*B,U+Ht*B,B,function(pr,Lr){var Kr;return!(null===(Kr=x[Me+pr])||void 0===Kr||!Kr[Ht+Lr])}),Nt._element&&Re&&Re.appendChild(Nt._element)},nt=0;nt<x[Me].length;nt++)ut(nt)};for(Vt=0;Vt<x.length;Vt++)kt(Vt)}})},Et.prototype.loadImage=function(){var H=this;return new Promise(function(Y,S){var K=H._options,Q=new Image;if(!K.image)return S("Image is not defined");"string"==typeof K.imageOptions.crossOrigin&&(Q.crossOrigin=K.imageOptions.crossOrigin),H._image=Q,Q.onload=function(){Y()},Q.src=K.image})},Et.prototype.drawImage=function(H){var Y=H.width,S=H.height,K=H.count,Q=H.dotSize,B=this._options,re=Math.floor((B.width-K*Q)/2),fe=Math.floor((B.height-K*Q)/2),qe=re+B.imageOptions.margin+(K*Q-Y)/2,$e=fe+B.imageOptions.margin+(K*Q-S)/2,et=Y-2*B.imageOptions.margin,ot=S-2*B.imageOptions.margin,ct=document.createElementNS("http://www.w3.org/2000/svg","image");ct.setAttribute("href",B.image||""),ct.setAttribute("x",String(qe)),ct.setAttribute("y",String($e)),ct.setAttribute("width",et+"px"),ct.setAttribute("height",ot+"px"),this._element.appendChild(ct)},Et.prototype._createColor=function(H){var Y=H.options,S=H.color,K=H.additionalRotation,Q=H.x,B=H.y,re=H.height,fe=H.width,qe=H.name,$e=fe>re?fe:re,et=document.createElementNS("http://www.w3.org/2000/svg","rect");if(et.setAttribute("x",String(Q)),et.setAttribute("y",String(B)),et.setAttribute("height",String(re)),et.setAttribute("width",String(fe)),et.setAttribute("clip-path","url('#clip-path-"+qe+"')"),Y){var ot;if("radial"===Y.type)(ot=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",qe),ot.setAttribute("gradientUnits","userSpaceOnUse"),ot.setAttribute("fx",String(Q+fe/2)),ot.setAttribute("fy",String(B+re/2)),ot.setAttribute("cx",String(Q+fe/2)),ot.setAttribute("cy",String(B+re/2)),ot.setAttribute("r",String($e/2));else{var ct=((Y.rotation||0)+K)%(2*Math.PI),pt=(ct+2*Math.PI)%(2*Math.PI),$t=Q+fe/2,It=B+re/2,fr=Q+fe/2,yt=B+re/2;pt>=0&&pt<=.25*Math.PI||pt>1.75*Math.PI&&pt<=2*Math.PI?($t-=fe/2,It-=re/2*Math.tan(ct),fr+=fe/2,yt+=re/2*Math.tan(ct)):pt>.25*Math.PI&&pt<=.75*Math.PI?(It-=re/2,$t-=fe/2/Math.tan(ct),yt+=re/2,fr+=fe/2/Math.tan(ct)):pt>.75*Math.PI&&pt<=1.25*Math.PI?($t+=fe/2,It+=re/2*Math.tan(ct),fr-=fe/2,yt-=re/2*Math.tan(ct)):pt>1.25*Math.PI&&pt<=1.75*Math.PI&&(It+=re/2,$t+=fe/2/Math.tan(ct),yt-=re/2,fr-=fe/2/Math.tan(ct)),(ot=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",qe),ot.setAttribute("gradientUnits","userSpaceOnUse"),ot.setAttribute("x1",String(Math.round($t))),ot.setAttribute("y1",String(Math.round(It))),ot.setAttribute("x2",String(Math.round(fr))),ot.setAttribute("y2",String(Math.round(yt)))}Y.colorStops.forEach(function(dr){var bt=dr.offset,ar=dr.color,vt=document.createElementNS("http://www.w3.org/2000/svg","stop");vt.setAttribute("offset",100*bt+"%"),vt.setAttribute("stop-color",ar),ot.appendChild(vt)}),et.setAttribute("fill","url('#"+qe+"')"),this._defs.appendChild(ot)}else S&&et.setAttribute("fill",S);this._element.appendChild(et)},Et}(),j="canvas";for(var Ne={},tt=0;tt<=40;tt++)Ne[tt]=tt;const We={type:j,width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:Ne[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{color:"#fff"}};var ze=function(){return(ze=Object.assign||function(Et){for(var H,Y=1,S=arguments.length;Y<S;Y++)for(var K in H=arguments[Y])Object.prototype.hasOwnProperty.call(H,K)&&(Et[K]=H[K]);return Et}).apply(this,arguments)};function we(Et){var H=ze({},Et);if(!H.colorStops||!H.colorStops.length)throw"Field 'colorStops' is required in gradient";return H.rotation=H.rotation?Number(H.rotation):0,H.colorStops=H.colorStops.map(function(Y){return ze(ze({},Y),{offset:Number(Y.offset)})}),H}function Ye(Et){var H=ze({},Et);return H.width=Number(H.width),H.height=Number(H.height),H.margin=Number(H.margin),H.imageOptions=ze(ze({},H.imageOptions),{hideBackgroundDots:Boolean(H.imageOptions.hideBackgroundDots),imageSize:Number(H.imageOptions.imageSize),margin:Number(H.imageOptions.margin)}),H.margin>Math.min(H.width,H.height)&&(H.margin=Math.min(H.width,H.height)),H.dotsOptions=ze({},H.dotsOptions),H.dotsOptions.gradient&&(H.dotsOptions.gradient=we(H.dotsOptions.gradient)),H.cornersSquareOptions&&(H.cornersSquareOptions=ze({},H.cornersSquareOptions),H.cornersSquareOptions.gradient&&(H.cornersSquareOptions.gradient=we(H.cornersSquareOptions.gradient))),H.cornersDotOptions&&(H.cornersDotOptions=ze({},H.cornersDotOptions),H.cornersDotOptions.gradient&&(H.cornersDotOptions.gradient=we(H.cornersDotOptions.gradient))),H.backgroundOptions&&(H.backgroundOptions=ze({},H.backgroundOptions),H.backgroundOptions.gradient&&(H.backgroundOptions.gradient=we(H.backgroundOptions.gradient))),H}var te=l(192),Se=l.n(te),ke=function(Et,H,Y,S){return new(Y||(Y=Promise))(function(K,Q){function B(qe){try{fe(S.next(qe))}catch($e){Q($e)}}function re(qe){try{fe(S.throw(qe))}catch($e){Q($e)}}function fe(qe){var $e;qe.done?K(qe.value):($e=qe.value,$e instanceof Y?$e:new Y(function(et){et($e)})).then(B,re)}fe((S=S.apply(Et,H||[])).next())})},Ge=function(Et,H){var Y,S,K,Q,B={label:0,sent:function(){if(1&K[0])throw K[1];return K[1]},trys:[],ops:[]};return Q={next:re(0),throw:re(1),return:re(2)},"function"==typeof Symbol&&(Q[Symbol.iterator]=function(){return this}),Q;function re(fe){return function(qe){return function($e){if(Y)throw new TypeError("Generator is already executing.");for(;B;)try{if(Y=1,S&&(K=2&$e[0]?S.return:$e[0]?S.throw||((K=S.return)&&K.call(S),0):S.next)&&!(K=K.call(S,$e[1])).done)return K;switch(S=0,K&&($e=[2&$e[0],K.value]),$e[0]){case 0:case 1:K=$e;break;case 4:return B.label++,{value:$e[1],done:!1};case 5:B.label++,S=$e[1],$e=[0];continue;case 7:$e=B.ops.pop(),B.trys.pop();continue;default:if(!((K=(K=B.trys).length>0&&K[K.length-1])||6!==$e[0]&&2!==$e[0])){B=0;continue}if(3===$e[0]&&(!K||$e[1]>K[0]&&$e[1]<K[3])){B.label=$e[1];break}if(6===$e[0]&&B.label<K[1]){B.label=K[1],K=$e;break}if(K&&B.label<K[2]){B.label=K[2],B.ops.push($e);break}K[2]&&B.ops.pop(),B.trys.pop();continue}$e=H.call(Et,B)}catch(et){$e=[6,et],S=0}finally{Y=K=0}if(5&$e[0])throw $e[1];return{value:$e[0]?$e[1]:void 0,done:!0}}([fe,qe])}}};const Tt=function(){function Et(H){this._options=H?Ye(m(We,H)):We,this.update()}return Et._clearContainer=function(H){H&&(H.innerHTML="")},Et.prototype._getQRStylingElement=function(H){return void 0===H&&(H="png"),ke(this,void 0,void 0,function(){var Y,S,K;return Ge(this,function(Q){switch(Q.label){case 0:if(!this._qr)throw"QR code is empty";return"svg"!==H.toLowerCase()?[3,2]:(S=void 0,Y=void 0,this._svg&&this._svgDrawingPromise?(Y=this._svg,S=this._svgDrawingPromise):(Y=new z(this._options),S=Y.drawQR(this._qr)),[4,S]);case 1:return Q.sent(),[2,Y];case 2:return S=void 0,K=void 0,this._canvas&&this._canvasDrawingPromise?(K=this._canvas,S=this._canvasDrawingPromise):(K=new W(this._options),S=K.drawQR(this._qr)),[4,S];case 3:return Q.sent(),[2,K]}})})},Et.prototype.update=function(H){Et._clearContainer(this._container),this._options=H?Ye(m(this._options,H)):this._options,this._options.data&&(this._qr=Se()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(Y){switch(!0){case/^[0-9]*$/.test(Y):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(Y):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===j?(this._canvas=new W(this._options),this._canvasDrawingPromise=this._canvas.drawQR(this._qr),this._svgDrawingPromise=void 0,this._svg=void 0):(this._svg=new z(this._options),this._svgDrawingPromise=this._svg.drawQR(this._qr),this._canvasDrawingPromise=void 0,this._canvas=void 0),this.append(this._container))},Et.prototype.append=function(H){if(H){if("function"!=typeof H.appendChild)throw"Container should be a single DOM node";this._options.type===j?this._canvas&&H.appendChild(this._canvas.getCanvas()):this._svg&&H.appendChild(this._svg.getElement()),this._container=H}},Et.prototype.getRawData=function(H){return void 0===H&&(H="png"),ke(this,void 0,void 0,function(){var Y,S,K;return Ge(this,function(Q){switch(Q.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getQRStylingElement(H)];case 1:return Y=Q.sent(),"svg"===H.toLowerCase()?(S=new XMLSerializer,K=S.serializeToString(Y.getElement()),[2,new Blob(['<?xml version="1.0" standalone="no"?>\r\n'+K],{type:"image/svg+xml"})]):[2,new Promise(function(B){return Y.getCanvas().toBlob(B,"image/"+H,1)})]}})})},Et.prototype.download=function(H){return ke(this,void 0,void 0,function(){var Y,S,K,Q,B;return Ge(this,function(re){switch(re.label){case 0:if(!this._qr)throw"QR code is empty";return Y="png",S="qr","string"==typeof H?(Y=H,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof H&&null!==H&&(H.name&&(S=H.name),H.extension&&(Y=H.extension)),[4,this._getQRStylingElement(Y)];case 1:return K=re.sent(),"svg"===Y.toLowerCase()?(Q=new XMLSerializer,B='<?xml version="1.0" standalone="no"?>\r\n'+(B=Q.serializeToString(K.getElement())),v("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(B),S+".svg")):v(K.getCanvas().toDataURL("image/"+Y),S+"."+Y),[2]}})})},Et}()}},s={};function t(e){if(s[e])return s[e].exports;var d=s[e]={exports:{}};return be[e](d,d.exports,t),d.exports}return t.n=e=>{var d=e&&e.__esModule?()=>e.default:()=>e;return t.d(d,{a:d}),d},t.d=(e,d)=>{for(var l in d)t.o(d,l)&&!t.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:d[l]})},t.o=(e,d)=>Object.prototype.hasOwnProperty.call(e,d),t(796)})().default},60413:(St,be,s)=>{const e=s(97156),d=s(70656),l=s(93950),r=s(80930);function c(E,m,v,C,n){const i=[].slice.call(arguments,1),P=i.length,I="function"==typeof i[P-1];if(!I&&!e())throw new Error("Callback required as last argument");if(!I){if(P<1)throw new Error("Too few arguments provided");return 1===P?(v=m,m=C=void 0):2===P&&!m.getContext&&(C=v,v=m,m=void 0),new Promise(function(q,D){try{const M=d.create(v,C);q(E(M,m,C))}catch(M){D(M)}})}if(P<2)throw new Error("Too few arguments provided");2===P?(n=v,v=m,m=C=void 0):3===P&&(m.getContext&&typeof n>"u"?(n=C,C=void 0):(n=C,C=v,v=m,m=void 0));try{const q=d.create(v,C);n(null,E(q,m,C))}catch(q){n(q)}}c.bind(null,l.render),c.bind(null,l.renderToDataURL),c.bind(null,function(E,m,v){return r.render(E,v)})},97156:St=>{St.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},92704:(St,be,s)=>{const t=s(16909).getSymbolSize;be.getRowColCoords=function(d){if(1===d)return[];const l=Math.floor(d/7)+2,r=t(d),c=145===r?26:2*Math.ceil((r-13)/(2*l-2)),E=[r-7];for(let m=1;m<l-1;m++)E[m]=E[m-1]-c;return E.push(6),E.reverse()},be.getPositions=function(d){const l=[],r=be.getRowColCoords(d),c=r.length;for(let E=0;E<c;E++)for(let m=0;m<c;m++)0===E&&0===m||0===E&&m===c-1||E===c-1&&0===m||l.push([r[E],r[m]]);return l}},48712:(St,be,s)=>{const t=s(50013),e=["0","1","2","3","4","5","6","7","8","9","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"," ","$","%","*","+","-",".","/",":"];function d(l){this.mode=t.ALPHANUMERIC,this.data=l}d.getBitsLength=function(r){return 11*Math.floor(r/2)+r%2*6},d.prototype.getLength=function(){return this.data.length},d.prototype.getBitsLength=function(){return d.getBitsLength(this.data.length)},d.prototype.write=function(r){let c;for(c=0;c+2<=this.data.length;c+=2){let E=45*e.indexOf(this.data[c]);E+=e.indexOf(this.data[c+1]),r.put(E,11)}this.data.length%2&&r.put(e.indexOf(this.data[c]),6)},St.exports=d},58940:St=>{function be(){this.buffer=[],this.length=0}be.prototype={get:function(s){const t=Math.floor(s/8);return 1==(this.buffer[t]>>>7-s%8&1)},put:function(s,t){for(let e=0;e<t;e++)this.putBit(1==(s>>>t-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(s){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),s&&(this.buffer[t]|=128>>>this.length%8),this.length++}},St.exports=be},97267:St=>{function be(s){if(!s||s<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=s,this.data=new Uint8Array(s*s),this.reservedBit=new Uint8Array(s*s)}be.prototype.set=function(s,t,e,d){const l=s*this.size+t;this.data[l]=e,d&&(this.reservedBit[l]=!0)},be.prototype.get=function(s,t){return this.data[s*this.size+t]},be.prototype.xor=function(s,t,e){this.data[s*this.size+t]^=e},be.prototype.isReserved=function(s,t){return this.reservedBit[s*this.size+t]},St.exports=be},73439:(St,be,s)=>{const t=s(44097),e=s(50013);function d(l){this.mode=e.BYTE,"string"==typeof l&&(l=t(l)),this.data=new Uint8Array(l)}d.getBitsLength=function(r){return 8*r},d.prototype.getLength=function(){return this.data.length},d.prototype.getBitsLength=function(){return d.getBitsLength(this.data.length)},d.prototype.write=function(l){for(let r=0,c=this.data.length;r<c;r++)l.put(this.data[r],8)},St.exports=d},59386:(St,be,s)=>{const t=s(23255),e=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],d=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];be.getBlocksCount=function(r,c){switch(c){case t.L:return e[4*(r-1)+0];case t.M:return e[4*(r-1)+1];case t.Q:return e[4*(r-1)+2];case t.H:return e[4*(r-1)+3];default:return}},be.getTotalCodewordsCount=function(r,c){switch(c){case t.L:return d[4*(r-1)+0];case t.M:return d[4*(r-1)+1];case t.Q:return d[4*(r-1)+2];case t.H:return d[4*(r-1)+3];default:return}}},23255:(St,be)=>{be.L={bit:1},be.M={bit:0},be.Q={bit:3},be.H={bit:2},be.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},be.from=function(e,d){if(be.isValid(e))return e;try{return function s(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return be.L;case"m":case"medium":return be.M;case"q":case"quartile":return be.Q;case"h":case"high":return be.H;default:throw new Error("Unknown EC Level: "+t)}}(e)}catch{return d}}},27033:(St,be,s)=>{const t=s(16909).getSymbolSize;be.getPositions=function(l){const r=t(l);return[[0,0],[r-7,0],[0,r-7]]}},89511:(St,be,s)=>{const t=s(16909),l=t.getBCHDigit(1335);be.getEncodedBits=function(c,E){const m=c.bit<<3|E;let v=m<<10;for(;t.getBCHDigit(v)-l>=0;)v^=1335<<t.getBCHDigit(v)-l;return 21522^(m<<10|v)}},24137:(St,be)=>{const s=new Uint8Array(512),t=new Uint8Array(256);(function(){let d=1;for(let l=0;l<255;l++)s[l]=d,t[d]=l,d<<=1,256&d&&(d^=285);for(let l=255;l<512;l++)s[l]=s[l-255]})(),be.log=function(d){if(d<1)throw new Error("log("+d+")");return t[d]},be.exp=function(d){return s[d]},be.mul=function(d,l){return 0===d||0===l?0:s[t[d]+t[l]]}},91027:(St,be,s)=>{const t=s(50013),e=s(16909);function d(l){this.mode=t.KANJI,this.data=l}d.getBitsLength=function(r){return 13*r},d.prototype.getLength=function(){return this.data.length},d.prototype.getBitsLength=function(){return d.getBitsLength(this.data.length)},d.prototype.write=function(l){let r;for(r=0;r<this.data.length;r++){let c=e.toSJIS(this.data[r]);if(c>=33088&&c<=40956)c-=33088;else{if(!(c>=57408&&c<=60351))throw new Error("Invalid SJIS character: "+this.data[r]+"\nMake sure your charset is UTF-8");c-=49472}c=192*(c>>>8&255)+(255&c),l.put(c,13)}},St.exports=d},26572:(St,be)=>{be.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function t(e,d,l){switch(e){case be.Patterns.PATTERN000:return(d+l)%2==0;case be.Patterns.PATTERN001:return d%2==0;case be.Patterns.PATTERN010:return l%3==0;case be.Patterns.PATTERN011:return(d+l)%3==0;case be.Patterns.PATTERN100:return(Math.floor(d/2)+Math.floor(l/3))%2==0;case be.Patterns.PATTERN101:return d*l%2+d*l%3==0;case be.Patterns.PATTERN110:return(d*l%2+d*l%3)%2==0;case be.Patterns.PATTERN111:return(d*l%3+(d+l)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}be.isValid=function(d){return null!=d&&""!==d&&!isNaN(d)&&d>=0&&d<=7},be.from=function(d){return be.isValid(d)?parseInt(d,10):void 0},be.getPenaltyN1=function(d){const l=d.size;let r=0,c=0,E=0,m=null,v=null;for(let C=0;C<l;C++){c=E=0,m=v=null;for(let n=0;n<l;n++){let i=d.get(C,n);i===m?c++:(c>=5&&(r+=c-5+3),m=i,c=1),i=d.get(n,C),i===v?E++:(E>=5&&(r+=E-5+3),v=i,E=1)}c>=5&&(r+=c-5+3),E>=5&&(r+=E-5+3)}return r},be.getPenaltyN2=function(d){const l=d.size;let r=0;for(let c=0;c<l-1;c++)for(let E=0;E<l-1;E++){const m=d.get(c,E)+d.get(c,E+1)+d.get(c+1,E)+d.get(c+1,E+1);(4===m||0===m)&&r++}return 3*r},be.getPenaltyN3=function(d){const l=d.size;let r=0,c=0,E=0;for(let m=0;m<l;m++){c=E=0;for(let v=0;v<l;v++)c=c<<1&2047|d.get(m,v),v>=10&&(1488===c||93===c)&&r++,E=E<<1&2047|d.get(v,m),v>=10&&(1488===E||93===E)&&r++}return 40*r},be.getPenaltyN4=function(d){let l=0;const r=d.data.length;for(let E=0;E<r;E++)l+=d.data[E];return 10*Math.abs(Math.ceil(100*l/r/5)-10)},be.applyMask=function(d,l){const r=l.size;for(let c=0;c<r;c++)for(let E=0;E<r;E++)l.isReserved(E,c)||l.xor(E,c,t(d,E,c))},be.getBestMask=function(d,l){const r=Object.keys(be.Patterns).length;let c=0,E=1/0;for(let m=0;m<r;m++){l(m),be.applyMask(m,d);const v=be.getPenaltyN1(d)+be.getPenaltyN2(d)+be.getPenaltyN3(d)+be.getPenaltyN4(d);be.applyMask(m,d),v<E&&(E=v,c=m)}return c}},50013:(St,be,s)=>{const t=s(2364),e=s(67306);be.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},be.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},be.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},be.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},be.MIXED={bit:-1},be.getCharCountIndicator=function(r,c){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!t.isValid(c))throw new Error("Invalid version: "+c);return c>=1&&c<10?r.ccBits[0]:c<27?r.ccBits[1]:r.ccBits[2]},be.getBestModeForData=function(r){return e.testNumeric(r)?be.NUMERIC:e.testAlphanumeric(r)?be.ALPHANUMERIC:e.testKanji(r)?be.KANJI:be.BYTE},be.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},be.isValid=function(r){return r&&r.bit&&r.ccBits},be.from=function(r,c){if(be.isValid(r))return r;try{return function d(l){if("string"!=typeof l)throw new Error("Param is not a string");switch(l.toLowerCase()){case"numeric":return be.NUMERIC;case"alphanumeric":return be.ALPHANUMERIC;case"kanji":return be.KANJI;case"byte":return be.BYTE;default:throw new Error("Unknown mode: "+l)}}(r)}catch{return c}}},15219:(St,be,s)=>{const t=s(50013);function e(d){this.mode=t.NUMERIC,this.data=d.toString()}e.getBitsLength=function(l){return 10*Math.floor(l/3)+(l%3?l%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(l){let r,c,E;for(r=0;r+3<=this.data.length;r+=3)c=this.data.substr(r,3),E=parseInt(c,10),l.put(E,10);const m=this.data.length-r;m>0&&(c=this.data.substr(r),E=parseInt(c,10),l.put(E,3*m+1))},St.exports=e},42296:(St,be,s)=>{const t=s(24137);be.mul=function(d,l){const r=new Uint8Array(d.length+l.length-1);for(let c=0;c<d.length;c++)for(let E=0;E<l.length;E++)r[c+E]^=t.mul(d[c],l[E]);return r},be.mod=function(d,l){let r=new Uint8Array(d);for(;r.length-l.length>=0;){const c=r[0];for(let m=0;m<l.length;m++)r[m]^=t.mul(l[m],c);let E=0;for(;E<r.length&&0===r[E];)E++;r=r.slice(E)}return r},be.generateECPolynomial=function(d){let l=new Uint8Array([1]);for(let r=0;r<d;r++)l=be.mul(l,new Uint8Array([1,t.exp(r)]));return l}},70656:(St,be,s)=>{const t=s(16909),e=s(23255),d=s(58940),l=s(97267),r=s(92704),c=s(27033),E=s(26572),m=s(59386),v=s(39209),C=s(9874),n=s(89511),i=s(50013),P=s(63150);function T(ye,Ee,Le){const ge=ye.size,ue=n.getEncodedBits(Ee,Le);let ee,se;for(ee=0;ee<15;ee++)se=1==(ue>>ee&1),ye.set(ee<6?ee:ee<8?ee+1:ge-15+ee,8,se,!0),ye.set(8,ee<8?ge-ee-1:ee<9?15-ee-1+1:15-ee-1,se,!0);ye.set(ge-8,8,1,!0)}function de(ye,Ee,Le,ge){let ue;if(Array.isArray(ye))ue=P.fromArray(ye);else{if("string"!=typeof ye)throw new Error("Invalid data");{let he=Ee;if(!he){const _e=P.rawSplit(ye);he=C.getBestVersionForData(_e,Le)}ue=P.fromString(ye,he||40)}}const ee=C.getBestVersionForData(ue,Le);if(!ee)throw new Error("The amount of data is too big to be stored in a QR Code");if(Ee){if(Ee<ee)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+ee+".\n")}else Ee=ee;const se=function le(ye,Ee,Le){const ge=new d;Le.forEach(function(L){ge.put(L.mode.bit,4),ge.put(L.getLength(),i.getCharCountIndicator(L.mode,ye)),L.write(ge)});const se=8*(t.getSymbolTotalCodewords(ye)-m.getTotalCodewordsCount(ye,Ee));for(ge.getLengthInBits()+4<=se&&ge.put(0,4);ge.getLengthInBits()%8!=0;)ge.putBit(0);const W=(se-ge.getLengthInBits())/8;for(let L=0;L<W;L++)ge.put(L%2?17:236,8);return function V(ye,Ee,Le){const ge=t.getSymbolTotalCodewords(Ee),ee=ge-m.getTotalCodewordsCount(Ee,Le),se=m.getBlocksCount(Ee,Le),L=se-ge%se,he=Math.floor(ge/se),_e=Math.floor(ee/se),Z=_e+1,Te=he-_e,w=new v(Te);let k=0;const x=new Array(se),z=new Array(se);let j=0;const Ne=new Uint8Array(ye.buffer);for(let Ye=0;Ye<se;Ye++){const te=Ye<L?_e:Z;x[Ye]=Ne.slice(k,k+te),z[Ye]=w.encode(x[Ye]),k+=te,j=Math.max(j,te)}const tt=new Uint8Array(ge);let ze,we,We=0;for(ze=0;ze<j;ze++)for(we=0;we<se;we++)ze<x[we].length&&(tt[We++]=x[we][ze]);for(ze=0;ze<Te;ze++)for(we=0;we<se;we++)tt[We++]=z[we][ze];return tt}(ge,ye,Ee)}(Ee,Le,ue),W=t.getSymbolSize(Ee),L=new l(W);return function I(ye,Ee){const Le=ye.size,ge=c.getPositions(Ee);for(let ue=0;ue<ge.length;ue++){const ee=ge[ue][0],se=ge[ue][1];for(let W=-1;W<=7;W++)if(!(ee+W<=-1||Le<=ee+W))for(let L=-1;L<=7;L++)se+L<=-1||Le<=se+L||ye.set(ee+W,se+L,W>=0&&W<=6&&(0===L||6===L)||L>=0&&L<=6&&(0===W||6===W)||W>=2&&W<=4&&L>=2&&L<=4,!0)}}(L,Ee),function q(ye){const Ee=ye.size;for(let Le=8;Le<Ee-8;Le++){const ge=Le%2==0;ye.set(Le,6,ge,!0),ye.set(6,Le,ge,!0)}}(L),function D(ye,Ee){const Le=r.getPositions(Ee);for(let ge=0;ge<Le.length;ge++){const ue=Le[ge][0],ee=Le[ge][1];for(let se=-2;se<=2;se++)for(let W=-2;W<=2;W++)ye.set(ue+se,ee+W,-2===se||2===se||-2===W||2===W||0===se&&0===W,!0)}}(L,Ee),T(L,Le,0),Ee>=7&&function M(ye,Ee){const Le=ye.size,ge=C.getEncodedBits(Ee);let ue,ee,se;for(let W=0;W<18;W++)ue=Math.floor(W/3),ee=W%3+Le-8-3,se=1==(ge>>W&1),ye.set(ue,ee,se,!0),ye.set(ee,ue,se,!0)}(L,Ee),function F(ye,Ee){const Le=ye.size;let ge=-1,ue=Le-1,ee=7,se=0;for(let W=Le-1;W>0;W-=2)for(6===W&&W--;;){for(let L=0;L<2;L++)if(!ye.isReserved(ue,W-L)){let he=!1;se<Ee.length&&(he=1==(Ee[se]>>>ee&1)),ye.set(ue,W-L,he),ee--,-1===ee&&(se++,ee=7)}if(ue+=ge,ue<0||Le<=ue){ue-=ge,ge=-ge;break}}}(L,se),isNaN(ge)&&(ge=E.getBestMask(L,T.bind(null,L,Le))),E.applyMask(ge,L),T(L,Le,ge),{modules:L,version:Ee,errorCorrectionLevel:Le,maskPattern:ge,segments:ue}}be.create=function(Ee,Le){if(typeof Ee>"u"||""===Ee)throw new Error("No input text");let ue,ee,ge=e.M;return typeof Le<"u"&&(ge=e.from(Le.errorCorrectionLevel,e.M),ue=C.from(Le.version),ee=E.from(Le.maskPattern),Le.toSJISFunc&&t.setToSJISFunction(Le.toSJISFunc)),de(Ee,ue,ge,ee)}},39209:(St,be,s)=>{const t=s(42296);function e(d){this.genPoly=void 0,this.degree=d,this.degree&&this.initialize(this.degree)}e.prototype.initialize=function(l){this.degree=l,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(l){if(!this.genPoly)throw new Error("Encoder not initialized");const r=new Uint8Array(l.length+this.degree);r.set(l);const c=t.mod(r,this.genPoly),E=this.degree-c.length;if(E>0){const m=new Uint8Array(this.degree);return m.set(c,E),m}return c},St.exports=e},67306:(St,be)=>{const s="[0-9]+";let e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";e=e.replace(/u/g,"\\u");const d="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";be.KANJI=new RegExp(e,"g"),be.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),be.BYTE=new RegExp(d,"g"),be.NUMERIC=new RegExp(s,"g"),be.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const l=new RegExp("^"+e+"$"),r=new RegExp("^"+s+"$"),c=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");be.testKanji=function(m){return l.test(m)},be.testNumeric=function(m){return r.test(m)},be.testAlphanumeric=function(m){return c.test(m)}},63150:(St,be,s)=>{const t=s(50013),e=s(15219),d=s(48712),l=s(73439),r=s(91027),c=s(67306),E=s(16909),m=s(75697);function v(M){return unescape(encodeURIComponent(M)).length}function C(M,T,F){const le=[];let V;for(;null!==(V=M.exec(F));)le.push({data:V[0],index:V.index,mode:T,length:V[0].length});return le}function n(M){const T=C(c.NUMERIC,t.NUMERIC,M),F=C(c.ALPHANUMERIC,t.ALPHANUMERIC,M);let le,V;return E.isKanjiModeEnabled()?(le=C(c.BYTE,t.BYTE,M),V=C(c.KANJI,t.KANJI,M)):(le=C(c.BYTE_KANJI,t.BYTE,M),V=[]),T.concat(F,le,V).sort(function(ye,Ee){return ye.index-Ee.index}).map(function(ye){return{data:ye.data,mode:ye.mode,length:ye.length}})}function i(M,T){switch(T){case t.NUMERIC:return e.getBitsLength(M);case t.ALPHANUMERIC:return d.getBitsLength(M);case t.KANJI:return r.getBitsLength(M);case t.BYTE:return l.getBitsLength(M)}}function D(M,T){let F;const le=t.getBestModeForData(M);if(F=t.from(T,le),F!==t.BYTE&&F.bit<le.bit)throw new Error('"'+M+'" cannot be encoded with mode '+t.toString(F)+".\n Suggested mode is: "+t.toString(le));switch(F===t.KANJI&&!E.isKanjiModeEnabled()&&(F=t.BYTE),F){case t.NUMERIC:return new e(M);case t.ALPHANUMERIC:return new d(M);case t.KANJI:return new r(M);case t.BYTE:return new l(M)}}be.fromArray=function(T){return T.reduce(function(F,le){return"string"==typeof le?F.push(D(le,null)):le.data&&F.push(D(le.data,le.mode)),F},[])},be.fromString=function(T,F){const V=function I(M){const T=[];for(let F=0;F<M.length;F++){const le=M[F];switch(le.mode){case t.NUMERIC:T.push([le,{data:le.data,mode:t.ALPHANUMERIC,length:le.length},{data:le.data,mode:t.BYTE,length:le.length}]);break;case t.ALPHANUMERIC:T.push([le,{data:le.data,mode:t.BYTE,length:le.length}]);break;case t.KANJI:T.push([le,{data:le.data,mode:t.BYTE,length:v(le.data)}]);break;case t.BYTE:T.push([{data:le.data,mode:t.BYTE,length:v(le.data)}])}}return T}(n(T,E.isKanjiModeEnabled())),de=function q(M,T){const F={},le={start:{}};let V=["start"];for(let de=0;de<M.length;de++){const ye=M[de],Ee=[];for(let Le=0;Le<ye.length;Le++){const ge=ye[Le],ue=""+de+Le;Ee.push(ue),F[ue]={node:ge,lastCount:0},le[ue]={};for(let ee=0;ee<V.length;ee++){const se=V[ee];F[se]&&F[se].node.mode===ge.mode?(le[se][ue]=i(F[se].lastCount+ge.length,ge.mode)-i(F[se].lastCount,ge.mode),F[se].lastCount+=ge.length):(F[se]&&(F[se].lastCount=ge.length),le[se][ue]=i(ge.length,ge.mode)+4+t.getCharCountIndicator(ge.mode,T))}}V=Ee}for(let de=0;de<V.length;de++)le[V[de]].end=0;return{map:le,table:F}}(V,F),ye=m.find_path(de.map,"start","end"),Ee=[];for(let Le=1;Le<ye.length-1;Le++)Ee.push(de.table[ye[Le]].node);return be.fromArray(function P(M){return M.reduce(function(T,F){const le=T.length-1>=0?T[T.length-1]:null;return le&&le.mode===F.mode?(T[T.length-1].data+=F.data,T):(T.push(F),T)},[])}(Ee))},be.rawSplit=function(T){return be.fromArray(n(T,E.isKanjiModeEnabled()))}},16909:(St,be)=>{let s;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];be.getSymbolSize=function(d){if(!d)throw new Error('"version" cannot be null or undefined');if(d<1||d>40)throw new Error('"version" should be in range from 1 to 40');return 4*d+17},be.getSymbolTotalCodewords=function(d){return t[d]},be.getBCHDigit=function(e){let d=0;for(;0!==e;)d++,e>>>=1;return d},be.setToSJISFunction=function(d){if("function"!=typeof d)throw new Error('"toSJISFunc" is not a valid function.');s=d},be.isKanjiModeEnabled=function(){return typeof s<"u"},be.toSJIS=function(d){return s(d)}},2364:(St,be)=>{be.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},9874:(St,be,s)=>{const t=s(16909),e=s(59386),d=s(23255),l=s(50013),r=s(2364),E=t.getBCHDigit(7973);function v(i,P){return l.getCharCountIndicator(i,P)+4}function C(i,P){let I=0;return i.forEach(function(q){const D=v(q.mode,P);I+=D+q.getBitsLength()}),I}be.from=function(P,I){return r.isValid(P)?parseInt(P,10):I},be.getCapacity=function(P,I,q){if(!r.isValid(P))throw new Error("Invalid QR Code version");typeof q>"u"&&(q=l.BYTE);const T=8*(t.getSymbolTotalCodewords(P)-e.getTotalCodewordsCount(P,I));if(q===l.MIXED)return T;const F=T-v(q,P);switch(q){case l.NUMERIC:return Math.floor(F/10*3);case l.ALPHANUMERIC:return Math.floor(F/11*2);case l.KANJI:return Math.floor(F/13);default:return Math.floor(F/8)}},be.getBestVersionForData=function(P,I){let q;const D=d.from(I,d.M);if(Array.isArray(P)){if(P.length>1)return function n(i,P){for(let I=1;I<=40;I++)if(C(i,I)<=be.getCapacity(I,P,l.MIXED))return I}(P,D);if(0===P.length)return 1;q=P[0]}else q=P;return function m(i,P,I){for(let q=1;q<=40;q++)if(P<=be.getCapacity(q,I,i))return q}(q.mode,q.getLength(),D)},be.getEncodedBits=function(P){if(!r.isValid(P)||P<7)throw new Error("Invalid QR Code version");let I=P<<12;for(;t.getBCHDigit(I)-E>=0;)I^=7973<<t.getBCHDigit(I)-E;return P<<12|I}},93950:(St,be,s)=>{const t=s(34016);be.render=function(r,c,E){let m=E,v=c;typeof m>"u"&&(!c||!c.getContext)&&(m=c,c=void 0),c||(v=function d(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),m=t.getOptions(m);const C=t.getImageWidth(r.modules.size,m),n=v.getContext("2d"),i=n.createImageData(C,C);return t.qrToImageData(i.data,r,m),function e(l,r,c){l.clearRect(0,0,r.width,r.height),r.style||(r.style={}),r.height=c,r.width=c,r.style.height=c+"px",r.style.width=c+"px"}(n,v,C),n.putImageData(i,0,0),v},be.renderToDataURL=function(r,c,E){let m=E;return typeof m>"u"&&(!c||!c.getContext)&&(m=c,c=void 0),m||(m={}),be.render(r,c,m).toDataURL(m.type||"image/png",(m.rendererOpts||{}).quality)}},80930:(St,be,s)=>{const t=s(34016);function e(r,c){const E=r.a/255,m=c+'="'+r.hex+'"';return E<1?m+" "+c+'-opacity="'+E.toFixed(2).slice(1)+'"':m}function d(r,c,E){let m=r+c;return typeof E<"u"&&(m+=" "+E),m}be.render=function(c,E,m){const v=t.getOptions(E),C=c.modules.size,n=c.modules.data,i=C+2*v.margin,P=v.color.light.a?"<path "+e(v.color.light,"fill")+' d="M0 0h'+i+"v"+i+'H0z"/>':"",I="<path "+e(v.color.dark,"stroke")+' d="'+function l(r,c,E){let m="",v=0,C=!1,n=0;for(let i=0;i<r.length;i++){const P=Math.floor(i%c),I=Math.floor(i/c);!P&&!C&&(C=!0),r[i]?(n++,i>0&&P>0&&r[i-1]||(m+=C?d("M",P+E,.5+I+E):d("m",v,0),v=0,C=!1),P+1<c&&r[i+1]||(m+=d("h",n),n=0)):v++}return m}(n,C,v.margin)+'"/>',M='<svg xmlns="http://www.w3.org/2000/svg" '+(v.width?'width="'+v.width+'" height="'+v.width+'" ':"")+'viewBox="0 0 '+i+" "+i+'" shape-rendering="crispEdges">'+P+I+"</svg>\n";return"function"==typeof m&&m(null,M),M}},34016:(St,be)=>{function s(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);(3===e.length||4===e.length)&&(e=Array.prototype.concat.apply([],e.map(function(l){return[l,l]}))),6===e.length&&e.push("F","F");const d=parseInt(e.join(""),16);return{r:d>>24&255,g:d>>16&255,b:d>>8&255,a:255&d,hex:"#"+e.slice(0,6).join("")}}be.getOptions=function(e){e||(e={}),e.color||(e.color={});const l=e.width&&e.width>=21?e.width:void 0;return{width:l,scale:l?4:e.scale||4,margin:typeof e.margin>"u"||null===e.margin||e.margin<0?4:e.margin,color:{dark:s(e.color.dark||"#000000ff"),light:s(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},be.getScale=function(e,d){return d.width&&d.width>=e+2*d.margin?d.width/(e+2*d.margin):d.scale},be.getImageWidth=function(e,d){const l=be.getScale(e,d);return Math.floor((e+2*d.margin)*l)},be.qrToImageData=function(e,d,l){const r=d.modules.size,c=d.modules.data,E=be.getScale(r,l),m=Math.floor((r+2*l.margin)*E),v=l.margin*E,C=[l.color.light,l.color.dark];for(let n=0;n<m;n++)for(let i=0;i<m;i++){let P=4*(n*m+i),I=l.color.light;n>=v&&i>=v&&n<m-v&&i<m-v&&(I=C[c[Math.floor((n-v)/E)*r+Math.floor((i-v)/E)]?1:0]),e[P++]=I.r,e[P++]=I.g,e[P++]=I.b,e[P]=I.a}}},93216:(St,be,s)=>{"use strict";s.d(be,{X:()=>e});var t=s(68264);class e extends t.x{constructor(l){super(),this._value=l}get value(){return this.getValue()}_subscribe(l){const r=super._subscribe(l);return!r.closed&&l.next(this._value),r}getValue(){const{hasError:l,thrownError:r,_value:c}=this;if(l)throw r;return this._throwIfClosed(),c}next(l){super.next(this._value=l)}}},44070:(St,be,s)=>{"use strict";s.d(be,{y:()=>m});var t=s(5324),e=s(22292),d=s(48268),l=s(20602),r=s(23243),c=s(27479),E=s(79848);let m=(()=>{class i{constructor(I){I&&(this._subscribe=I)}lift(I){const q=new i;return q.source=this,q.operator=I,q}subscribe(I,q,D){const M=function n(i){return i&&i instanceof t.Lv||function C(i){return i&&(0,c.m)(i.next)&&(0,c.m)(i.error)&&(0,c.m)(i.complete)}(i)&&(0,e.Nn)(i)}(I)?I:new t.Hp(I,q,D);return(0,E.x)(()=>{const{operator:T,source:F}=this;M.add(T?T.call(M,F):F?this._subscribe(M):this._trySubscribe(M))}),M}_trySubscribe(I){try{return this._subscribe(I)}catch(q){I.error(q)}}forEach(I,q){return new(q=v(q))((D,M)=>{let T;T=this.subscribe(F=>{try{I(F)}catch(le){M(le),T?.unsubscribe()}},M,D)})}_subscribe(I){var q;return null===(q=this.source)||void 0===q?void 0:q.subscribe(I)}[d.L](){return this}pipe(...I){return(0,l.U)(I)(this)}toPromise(I){return new(I=v(I))((q,D)=>{let M;this.subscribe(T=>M=T,T=>D(T),()=>q(M))})}}return i.create=P=>new i(P),i})();function v(i){var P;return null!==(P=i??r.v.Promise)&&void 0!==P?P:Promise}},68264:(St,be,s)=>{"use strict";s.d(be,{x:()=>E});var t=s(44070),e=s(22292);const l=(0,s(93922).d)(v=>function(){v(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var r=s(35848),c=s(79848);let E=(()=>{class v extends t.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const i=new m(this,this);return i.operator=n,i}_throwIfClosed(){if(this.closed)throw new l}next(n){(0,c.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const i=this.observers.slice();for(const P of i)P.next(n)}})}error(n){(0,c.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:i}=this;for(;i.length;)i.shift().error(n)}})}complete(){(0,c.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:i,isStopped:P,observers:I}=this;return i||P?e.Lc:(I.push(n),new e.w0(()=>(0,r.P)(I,n)))}_checkFinalizedStatuses(n){const{hasError:i,thrownError:P,isStopped:I}=this;i?n.error(P):I&&n.complete()}asObservable(){const n=new t.y;return n.source=this,n}}return v.create=(C,n)=>new m(C,n),v})();class m extends E{constructor(C,n){super(),this.destination=C,this.source=n}next(C){var n,i;null===(i=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===i||i.call(n,C)}error(C){var n,i;null===(i=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===i||i.call(n,C)}complete(){var C,n;null===(n=null===(C=this.destination)||void 0===C?void 0:C.complete)||void 0===n||n.call(C)}_subscribe(C){var n,i;return null!==(i=null===(n=this.source)||void 0===n?void 0:n.subscribe(C))&&void 0!==i?i:e.Lc}}},5324:(St,be,s)=>{"use strict";s.d(be,{Hp:()=>P,Lv:()=>i});var t=s(27479),e=s(22292),d=s(23243),l=s(73367),r=s(80222);const c=v("C",void 0,void 0);function v(T,F,le){return{kind:T,value:F,error:le}}var C=s(2631),n=s(79848);class i extends e.w0{constructor(F){super(),this.isStopped=!1,F?(this.destination=F,(0,e.Nn)(F)&&F.add(this)):this.destination=M}static create(F,le,V){return new P(F,le,V)}next(F){this.isStopped?D(function m(T){return v("N",T,void 0)}(F),this):this._next(F)}error(F){this.isStopped?D(function E(T){return v("E",void 0,T)}(F),this):(this.isStopped=!0,this._error(F))}complete(){this.isStopped?D(c,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(F){this.destination.next(F)}_error(F){try{this.destination.error(F)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class P extends i{constructor(F,le,V){let de;if(super(),(0,t.m)(F))de=F;else if(F){let ye;({next:de,error:le,complete:V}=F),this&&d.v.useDeprecatedNextContext?(ye=Object.create(F),ye.unsubscribe=()=>this.unsubscribe()):ye=F,de=de?.bind(ye),le=le?.bind(ye),V=V?.bind(ye)}this.destination={next:de?I(de):r.Z,error:I(le??q),complete:V?I(V):r.Z}}}function I(T,F){return(...le)=>{try{T(...le)}catch(V){d.v.useDeprecatedSynchronousErrorHandling?(0,n.O)(V):(0,l.h)(V)}}}function q(T){throw T}function D(T,F){const{onStoppedNotification:le}=d.v;le&&C.z.setTimeout(()=>le(T,F))}const M={closed:!0,next:r.Z,error:q,complete:r.Z}},22292:(St,be,s)=>{"use strict";s.d(be,{Lc:()=>c,w0:()=>r,Nn:()=>E});var t=s(27479);const d=(0,s(93922).d)(v=>function(n){v(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((i,P)=>`${P+1}) ${i.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=n});var l=s(35848);class r{constructor(C){this.initialTeardown=C,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let C;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const I of n)I.remove(this);else n.remove(this);const{initialTeardown:i}=this;if((0,t.m)(i))try{i()}catch(I){C=I instanceof d?I.errors:[I]}const{_teardowns:P}=this;if(P){this._teardowns=null;for(const I of P)try{m(I)}catch(q){C=C??[],q instanceof d?C=[...C,...q.errors]:C.push(q)}}if(C)throw new d(C)}}add(C){var n;if(C&&C!==this)if(this.closed)m(C);else{if(C instanceof r){if(C.closed||C._hasParent(this))return;C._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(C)}}_hasParent(C){const{_parentage:n}=this;return n===C||Array.isArray(n)&&n.includes(C)}_addParent(C){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(C),n):n?[n,C]:C}_removeParent(C){const{_parentage:n}=this;n===C?this._parentage=null:Array.isArray(n)&&(0,l.P)(n,C)}remove(C){const{_teardowns:n}=this;n&&(0,l.P)(n,C),C instanceof r&&C._removeParent(this)}}r.EMPTY=(()=>{const v=new r;return v.closed=!0,v})();const c=r.EMPTY;function E(v){return v instanceof r||v&&"closed"in v&&(0,t.m)(v.remove)&&(0,t.m)(v.add)&&(0,t.m)(v.unsubscribe)}function m(v){(0,t.m)(v)?v():v.unsubscribe()}},23243:(St,be,s)=>{"use strict";s.d(be,{v:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},10166:(St,be,s)=>{"use strict";s.d(be,{c:()=>c});var t=s(44070),e=s(22292),d=s(1423),l=s(35694),r=s(49681);class c extends t.y{constructor(m,v){super(),this.source=m,this.subjectFactory=v,this._subject=null,this._refCount=0,this._connection=null,(0,r.A)(m)&&(this.lift=m.lift)}_subscribe(m){return this.getSubject().subscribe(m)}getSubject(){const m=this._subject;return(!m||m.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:m}=this;this._subject=this._connection=null,m?.unsubscribe()}connect(){let m=this._connection;if(!m){m=this._connection=new e.w0;const v=this.getSubject();m.add(this.source.subscribe(new l.Q(v,void 0,()=>{this._teardown(),v.complete()},C=>{this._teardown(),v.error(C)},()=>this._teardown()))),m.closed&&(this._connection=null,m=e.w0.EMPTY)}return m}refCount(){return(0,d.x)()(this)}}},70754:(St,be,s)=>{"use strict";s.d(be,{a:()=>C});var t=s(44070),e=s(27227),d=s(51728),l=s(54874),r=s(13159),c=s(13596),E=s(81391),m=s(35694),v=s(1552);function C(...P){const I=(0,c.yG)(P),q=(0,c.jO)(P),{args:D,keys:M}=(0,e.D)(P);if(0===D.length)return(0,d.D)([],I);const T=new t.y(function n(P,I,q=l.y){return D=>{i(I,()=>{const{length:M}=P,T=new Array(M);let F=M,le=M;for(let V=0;V<M;V++)i(I,()=>{const de=(0,d.D)(P[V],I);let ye=!1;de.subscribe(new m.Q(D,Ee=>{T[V]=Ee,ye||(ye=!0,le--),le||D.next(q(T.slice()))},()=>{--F||D.complete()}))},D)},D)}}(D,I,M?F=>(0,E.n)(M,F):l.y));return q?T.pipe((0,r.Z)(q)):T}function i(P,I,q){P?(0,v.f)(q,P,I):I()}},71785:(St,be,s)=>{"use strict";s.d(be,{z:()=>r});var t=s(13834),d=s(13596),l=s(51728);function r(...c){return function e(){return(0,t.J)(1)}()((0,l.D)(c,(0,d.yG)(c)))}},92588:(St,be,s)=>{"use strict";s.d(be,{P:()=>d});var t=s(44070),e=s(33171);function d(l){return new t.y(r=>{(0,e.Xf)(l()).subscribe(r)})}},38440:(St,be,s)=>{"use strict";s.d(be,{E:()=>e});const e=new(s(44070).y)(r=>r.complete())},80842:(St,be,s)=>{"use strict";s.d(be,{D:()=>m});var t=s(44070),e=s(27227),d=s(33171),l=s(13596),r=s(35694),c=s(13159),E=s(81391);function m(...v){const C=(0,l.jO)(v),{args:n,keys:i}=(0,e.D)(v),P=new t.y(I=>{const{length:q}=n;if(!q)return void I.complete();const D=new Array(q);let M=q,T=q;for(let F=0;F<q;F++){let le=!1;(0,d.Xf)(n[F]).subscribe(new r.Q(I,V=>{le||(le=!0,T--),D[F]=V},()=>M--,void 0,()=>{(!M||!le)&&(T||I.next(i?(0,E.n)(i,D):D),I.complete())}))}});return C?P.pipe((0,c.Z)(C)):P}},51728:(St,be,s)=>{"use strict";s.d(be,{D:()=>Ee});var t=s(33171),e=s(1552),d=s(49681),l=s(35694);function r(Le,ge=0){return(0,d.e)((ue,ee)=>{ue.subscribe(new l.Q(ee,se=>(0,e.f)(ee,Le,()=>ee.next(se),ge),()=>(0,e.f)(ee,Le,()=>ee.complete(),ge),se=>(0,e.f)(ee,Le,()=>ee.error(se),ge)))})}function c(Le,ge=0){return(0,d.e)((ue,ee)=>{ee.add(Le.schedule(()=>ue.subscribe(ee),ge))})}var v=s(44070),n=s(31794),i=s(27479);function I(Le,ge){if(!Le)throw new Error("Iterable cannot be null");return new v.y(ue=>{(0,e.f)(ue,ge,()=>{const ee=Le[Symbol.asyncIterator]();(0,e.f)(ue,ge,()=>{ee.next().then(se=>{se.done?ue.complete():ue.next(se.value)})},0,!0)})})}var q=s(81828),D=s(70757),M=s(63901),T=s(13296),F=s(71009),le=s(94704),V=s(46401);function Ee(Le,ge){return ge?function ye(Le,ge){if(null!=Le){if((0,q.c)(Le))return function E(Le,ge){return(0,t.Xf)(Le).pipe(c(ge),r(ge))}(Le,ge);if((0,M.z)(Le))return function C(Le,ge){return new v.y(ue=>{let ee=0;return ge.schedule(function(){ee===Le.length?ue.complete():(ue.next(Le[ee++]),ue.closed||this.schedule())})})}(Le,ge);if((0,D.t)(Le))return function m(Le,ge){return(0,t.Xf)(Le).pipe(c(ge),r(ge))}(Le,ge);if((0,F.D)(Le))return I(Le,ge);if((0,T.T)(Le))return function P(Le,ge){return new v.y(ue=>{let ee;return(0,e.f)(ue,ge,()=>{ee=Le[n.h](),(0,e.f)(ue,ge,()=>{let se,W;try{({value:se,done:W}=ee.next())}catch(L){return void ue.error(L)}W?ue.complete():ue.next(se)},0,!0)}),()=>(0,i.m)(ee?.return)&&ee.return()})}(Le,ge);if((0,V.L)(Le))return function de(Le,ge){return I((0,V.Q)(Le),ge)}(Le,ge)}throw(0,le.z)(Le)}(Le,ge):(0,t.Xf)(Le)}},74845:(St,be,s)=>{"use strict";s.d(be,{R:()=>C});var t=s(33171),e=s(44070),d=s(86443),l=s(63901),r=s(27479),c=s(13159);const E=["addListener","removeListener"],m=["addEventListener","removeEventListener"],v=["on","off"];function C(q,D,M,T){if((0,r.m)(M)&&(T=M,M=void 0),T)return C(q,D,M).pipe((0,c.Z)(T));const[F,le]=function I(q){return(0,r.m)(q.addEventListener)&&(0,r.m)(q.removeEventListener)}(q)?m.map(V=>de=>q[V](D,de,M)):function i(q){return(0,r.m)(q.addListener)&&(0,r.m)(q.removeListener)}(q)?E.map(n(q,D)):function P(q){return(0,r.m)(q.on)&&(0,r.m)(q.off)}(q)?v.map(n(q,D)):[];if(!F&&(0,l.z)(q))return(0,d.z)(V=>C(V,D,M))((0,t.Xf)(q));if(!F)throw new TypeError("Invalid event target");return new e.y(V=>{const de=(...ye)=>V.next(1<ye.length?ye:ye[0]);return F(de),()=>le(de)})}function n(q,D){return M=>T=>q[M](D,T)}},33171:(St,be,s)=>{"use strict";s.d(be,{Xf:()=>P});var t=s(49126),e=s(63901),d=s(70757),l=s(44070),r=s(81828),c=s(71009),E=s(94704),m=s(13296),v=s(46401),C=s(27479),n=s(73367),i=s(48268);function P(V){if(V instanceof l.y)return V;if(null!=V){if((0,r.c)(V))return function I(V){return new l.y(de=>{const ye=V[i.L]();if((0,C.m)(ye.subscribe))return ye.subscribe(de);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(V);if((0,e.z)(V))return function q(V){return new l.y(de=>{for(let ye=0;ye<V.length&&!de.closed;ye++)de.next(V[ye]);de.complete()})}(V);if((0,d.t)(V))return function D(V){return new l.y(de=>{V.then(ye=>{de.closed||(de.next(ye),de.complete())},ye=>de.error(ye)).then(null,n.h)})}(V);if((0,c.D)(V))return T(V);if((0,m.T)(V))return function M(V){return new l.y(de=>{for(const ye of V)if(de.next(ye),de.closed)return;de.complete()})}(V);if((0,v.L)(V))return function F(V){return T((0,v.Q)(V))}(V)}throw(0,E.z)(V)}function T(V){return new l.y(de=>{(function le(V,de){var ye,Ee,Le,ge;return(0,t.mG)(this,void 0,void 0,function*(){try{for(ye=(0,t.KL)(V);!(Ee=yield ye.next()).done;)if(de.next(Ee.value),de.closed)return}catch(ue){Le={error:ue}}finally{try{Ee&&!Ee.done&&(ge=ye.return)&&(yield ge.call(ye))}finally{if(Le)throw Le.error}}de.complete()})})(V,de).catch(ye=>de.error(ye))})}},91135:(St,be,s)=>{"use strict";s.d(be,{F:()=>d});var t=s(9615),e=s(81953);function d(l=0,r=t.z){return l<0&&(l=0),(0,e.H)(l,l,r)}},50805:(St,be,s)=>{"use strict";s.d(be,{T:()=>c});var t=s(13834),e=s(33171),d=s(38440),l=s(13596),r=s(51728);function c(...E){const m=(0,l.yG)(E),v=(0,l._6)(E,1/0),C=E;return C.length?1===C.length?(0,e.Xf)(C[0]):(0,t.J)(v)((0,r.D)(C,m)):d.E}},95195:(St,be,s)=>{"use strict";s.d(be,{of:()=>d});var t=s(13596),e=s(51728);function d(...l){const r=(0,t.yG)(l);return(0,e.D)(l,r)}},99099:(St,be,s)=>{"use strict";s.d(be,{_:()=>d});var t=s(44070),e=s(27479);function d(l,r){const c=(0,e.m)(l)?l:()=>l,E=m=>m.error(c());return new t.y(r?m=>r.schedule(E,0,m):E)}},81953:(St,be,s)=>{"use strict";s.d(be,{H:()=>r});var t=s(44070),e=s(9615),d=s(63088);function r(c=0,E,m=e.P){let v=-1;return null!=E&&((0,d.K)(E)?m=E:v=E),new t.y(C=>{let n=function l(c){return c instanceof Date&&!isNaN(c)}(c)?+c-m.now():c;n<0&&(n=0);let i=0;return m.schedule(function(){C.closed||(C.next(i++),0<=v?this.schedule(void 0,v):C.complete())},n)})}},35694:(St,be,s)=>{"use strict";s.d(be,{Q:()=>e});var t=s(5324);class e extends t.Lv{constructor(l,r,c,E,m){super(l),this.onFinalize=m,this._next=r?function(v){try{r(v)}catch(C){l.error(C)}}:super._next,this._error=E?function(v){try{E(v)}catch(C){l.error(C)}finally{this.unsubscribe()}}:super._error,this._complete=c?function(){try{c()}catch(v){l.error(v)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var l;const{closed:r}=this;super.unsubscribe(),!r&&(null===(l=this.onFinalize)||void 0===l||l.call(this))}}},12245:(St,be,s)=>{"use strict";s.d(be,{e:()=>E});var t=s(9615),e=s(49681),d=s(33171),l=s(35694),c=s(81953);function E(m,v=t.P){return function r(m){return(0,e.e)((v,C)=>{let n=!1,i=null,P=null,I=!1;const q=()=>{if(P?.unsubscribe(),P=null,n){n=!1;const M=i;i=null,C.next(M)}I&&C.complete()},D=()=>{P=null,I&&C.complete()};v.subscribe(new l.Q(C,M=>{n=!0,i=M,P||(0,d.Xf)(m(M)).subscribe(P=new l.Q(C,q,D))},()=>{I=!0,(!n||!P||P.closed)&&C.complete()}))})}(()=>(0,c.H)(m,v))}},32837:(St,be,s)=>{"use strict";s.d(be,{K:()=>l});var t=s(33171),e=s(35694),d=s(49681);function l(r){return(0,d.e)((c,E)=>{let C,m=null,v=!1;m=c.subscribe(new e.Q(E,void 0,void 0,n=>{C=(0,t.Xf)(r(n,l(r)(c))),m?(m.unsubscribe(),m=null,C.subscribe(E)):v=!0})),v&&(m.unsubscribe(),m=null,C.subscribe(E))})}},16424:(St,be,s)=>{"use strict";s.d(be,{b:()=>d});var t=s(86443),e=s(27479);function d(l,r){return(0,e.m)(r)?(0,t.z)(l,r,1):(0,t.z)(l,1)}},75746:(St,be,s)=>{"use strict";s.d(be,{D:()=>r});var t=s(49681),e=s(80222),d=s(35694),l=s(33171);function r(c){return(0,t.e)((E,m)=>{let v=!1,C=null,n=null;const i=()=>{if(n?.unsubscribe(),n=null,v){v=!1;const P=C;C=null,m.next(P)}};E.subscribe(new d.Q(m,P=>{n?.unsubscribe(),v=!0,C=P,n=new d.Q(m,i,e.Z),(0,l.Xf)(c(P)).subscribe(n)},()=>{i(),m.complete()},void 0,()=>{C=n=null}))})}},59435:(St,be,s)=>{"use strict";s.d(be,{b:()=>l});var t=s(9615),e=s(49681),d=s(35694);function l(r,c=t.z){return(0,e.e)((E,m)=>{let v=null,C=null,n=null;const i=()=>{if(v){v.unsubscribe(),v=null;const I=C;C=null,m.next(I)}};function P(){const I=n+r,q=c.now();if(q<I)return v=this.schedule(void 0,I-q),void m.add(v);i()}E.subscribe(new d.Q(m,I=>{C=I,n=c.now(),v||(v=c.schedule(P,r),m.add(v))},()=>{i(),m.complete()},void 0,()=>{C=v=null}))})}},48376:(St,be,s)=>{"use strict";s.d(be,{g:()=>i});var t=s(9615),e=s(71785),d=s(32653),l=s(49681),r=s(35694),c=s(80222),m=s(3532),v=s(86443);function C(P,I){return I?q=>(0,e.z)(I.pipe((0,d.q)(1),function E(){return(0,l.e)((P,I)=>{P.subscribe(new r.Q(I,c.Z))})}()),q.pipe(C(P))):(0,v.z)((q,D)=>P(q,D).pipe((0,d.q)(1),(0,m.h)(q)))}var n=s(81953);function i(P,I=t.z){const q=(0,n.H)(P,I);return C(()=>q)}},40354:(St,be,s)=>{"use strict";s.d(be,{x:()=>l});var t=s(54874),e=s(49681),d=s(35694);function l(c,E=t.y){return c=c??r,(0,e.e)((m,v)=>{let C,n=!0;m.subscribe(new d.Q(v,i=>{const P=E(i);(n||!c(C,P))&&(n=!1,C=P,v.next(i))}))})}function r(c,E){return c===E}},9754:(St,be,s)=>{"use strict";s.d(be,{h:()=>d});var t=s(49681),e=s(35694);function d(l,r){return(0,t.e)((c,E)=>{let m=0;c.subscribe(new e.Q(E,v=>l.call(r,v,m++)&&E.next(v)))})}},88283:(St,be,s)=>{"use strict";s.d(be,{x:()=>e});var t=s(49681);function e(d){return(0,t.e)((l,r)=>{try{l.subscribe(r)}finally{r.add(d)}})}},87580:(St,be,s)=>{"use strict";s.d(be,{U:()=>d});var t=s(49681),e=s(35694);function d(l,r){return(0,t.e)((c,E)=>{let m=0;c.subscribe(new e.Q(E,v=>{E.next(l.call(r,v,m++))}))})}},3532:(St,be,s)=>{"use strict";s.d(be,{h:()=>e});var t=s(87580);function e(d){return(0,t.U)(()=>d)}},13834:(St,be,s)=>{"use strict";s.d(be,{J:()=>d});var t=s(86443),e=s(54874);function d(l=1/0){return(0,t.z)(e.y,l)}},86443:(St,be,s)=>{"use strict";s.d(be,{z:()=>m});var t=s(87580),e=s(33171),d=s(49681),l=s(1552),r=s(35694),E=s(27479);function m(v,C,n=1/0){return(0,E.m)(C)?m((i,P)=>(0,t.U)((I,q)=>C(i,I,P,q))((0,e.Xf)(v(i,P))),n):("number"==typeof C&&(n=C),(0,d.e)((i,P)=>function c(v,C,n,i,P,I,q,D){const M=[];let T=0,F=0,le=!1;const V=()=>{le&&!M.length&&!T&&C.complete()},de=Ee=>T<i?ye(Ee):M.push(Ee),ye=Ee=>{I&&C.next(Ee),T++;let Le=!1;(0,e.Xf)(n(Ee,F++)).subscribe(new r.Q(C,ge=>{P?.(ge),I?de(ge):C.next(ge)},()=>{Le=!0},void 0,()=>{if(Le)try{for(T--;M.length&&T<i;){const ge=M.shift();q?(0,l.f)(C,q,()=>ye(ge)):ye(ge)}V()}catch(ge){C.error(ge)}}))};return v.subscribe(new r.Q(C,de,()=>{le=!0,V()})),()=>{D?.()}}(i,P,v,n)))}},1423:(St,be,s)=>{"use strict";s.d(be,{x:()=>d});var t=s(49681),e=s(35694);function d(){return(0,t.e)((l,r)=>{let c=null;l._refCount++;const E=new e.Q(r,void 0,void 0,void 0,()=>{if(!l||l._refCount<=0||0<--l._refCount)return void(c=null);const m=l._connection,v=c;c=null,m&&(!v||m===v)&&m.unsubscribe(),r.unsubscribe()});l.subscribe(E),E.closed||(c=l.connect())})}},7957:(St,be,s)=>{"use strict";s.d(be,{B:()=>c});var t=s(51728),e=s(32653),d=s(68264),l=s(5324),r=s(49681);function c(m={}){const{connector:v=(()=>new d.x),resetOnError:C=!0,resetOnComplete:n=!0,resetOnRefCountZero:i=!0}=m;return P=>{let I=null,q=null,D=null,M=0,T=!1,F=!1;const le=()=>{q?.unsubscribe(),q=null},V=()=>{le(),I=D=null,T=F=!1},de=()=>{const ye=I;V(),ye?.unsubscribe()};return(0,r.e)((ye,Ee)=>{M++,!F&&!T&&le();const Le=D=D??v();Ee.add(()=>{M--,0===M&&!F&&!T&&(q=E(de,i))}),Le.subscribe(Ee),I||(I=new l.Hp({next:ge=>Le.next(ge),error:ge=>{F=!0,le(),q=E(V,C,ge),Le.error(ge)},complete:()=>{T=!0,le(),q=E(V,n),Le.complete()}}),(0,t.D)(ye).subscribe(I))})(P)}}function E(m,v,...C){return!0===v?(m(),null):!1===v?null:v(...C).pipe((0,e.q)(1)).subscribe(()=>m())}},43113:(St,be,s)=>{"use strict";s.d(be,{d:()=>r});var t=s(68264),e=s(93450);class d extends t.x{constructor(E=1/0,m=1/0,v=e.l){super(),this._bufferSize=E,this._windowTime=m,this._timestampProvider=v,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=m===1/0,this._bufferSize=Math.max(1,E),this._windowTime=Math.max(1,m)}next(E){const{isStopped:m,_buffer:v,_infiniteTimeWindow:C,_timestampProvider:n,_windowTime:i}=this;m||(v.push(E),!C&&v.push(n.now()+i)),this._trimBuffer(),super.next(E)}_subscribe(E){this._throwIfClosed(),this._trimBuffer();const m=this._innerSubscribe(E),{_infiniteTimeWindow:v,_buffer:C}=this,n=C.slice();for(let i=0;i<n.length&&!E.closed;i+=v?1:2)E.next(n[i]);return this._checkFinalizedStatuses(E),m}_trimBuffer(){const{_bufferSize:E,_timestampProvider:m,_buffer:v,_infiniteTimeWindow:C}=this,n=(C?1:2)*E;if(E<1/0&&n<v.length&&v.splice(0,v.length-n),!C){const i=m.now();let P=0;for(let I=1;I<v.length&&v[I]<=i;I+=2)P=I;P&&v.splice(0,P+1)}}}var l=s(7957);function r(c,E,m){var v,C;let n,i=!1;return c&&"object"==typeof c?(n=null!==(v=c.bufferSize)&&void 0!==v?v:1/0,E=null!==(C=c.windowTime)&&void 0!==C?C:1/0,i=!!c.refCount,m=c.scheduler):n=c??1/0,(0,l.B)({connector:()=>new d(n,E,m),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}},94276:(St,be,s)=>{"use strict";s.d(be,{T:()=>e});var t=s(9754);function e(d){return(0,t.h)((l,r)=>d<=r)}},41743:(St,be,s)=>{"use strict";s.d(be,{O:()=>l});var t=s(71785),e=s(13596),d=s(49681);function l(...r){const c=(0,e.yG)(r);return(0,d.e)((E,m)=>{(c?(0,t.z)(r,E,c):(0,t.z)(r,E)).subscribe(m)})}},81565:(St,be,s)=>{"use strict";s.d(be,{w:()=>l});var t=s(33171),e=s(49681),d=s(35694);function l(r,c){return(0,e.e)((E,m)=>{let v=null,C=0,n=!1;const i=()=>n&&!v&&m.complete();E.subscribe(new d.Q(m,P=>{v?.unsubscribe();let I=0;const q=C++;(0,t.Xf)(r(P,q)).subscribe(v=new d.Q(m,D=>m.next(c?c(P,D,q,I++):D),()=>{v=null,i()}))},()=>{n=!0,i()}))})}},32653:(St,be,s)=>{"use strict";s.d(be,{q:()=>l});var t=s(38440),e=s(49681),d=s(35694);function l(r){return r<=0?()=>t.E:(0,e.e)((c,E)=>{let m=0;c.subscribe(new d.Q(E,v=>{++m<=r&&(E.next(v),r<=m&&E.complete())}))})}},30003:(St,be,s)=>{"use strict";s.d(be,{R:()=>r});var t=s(49681),e=s(35694),d=s(33171),l=s(80222);function r(c){return(0,t.e)((E,m)=>{(0,d.Xf)(c).subscribe(new e.Q(m,()=>m.complete(),l.Z)),!m.closed&&E.subscribe(m)})}},61458:(St,be,s)=>{"use strict";s.d(be,{o:()=>d});var t=s(49681),e=s(35694);function d(l,r=!1){return(0,t.e)((c,E)=>{let m=0;c.subscribe(new e.Q(E,v=>{const C=l(v,m++);(C||r)&&E.next(v),!C&&E.complete()}))})}},17374:(St,be,s)=>{"use strict";s.d(be,{b:()=>r});var t=s(27479),e=s(49681),d=s(35694),l=s(54874);function r(c,E,m){const v=(0,t.m)(c)||E||m?{next:c,error:E,complete:m}:c;return v?(0,e.e)((C,n)=>{var i;null===(i=v.subscribe)||void 0===i||i.call(v);let P=!0;C.subscribe(new d.Q(n,I=>{var q;null===(q=v.next)||void 0===q||q.call(v,I),n.next(I)},()=>{var I;P=!1,null===(I=v.complete)||void 0===I||I.call(v),n.complete()},I=>{var q;P=!1,null===(q=v.error)||void 0===q||q.call(v,I),n.error(I)},()=>{var I,q;P&&(null===(I=v.unsubscribe)||void 0===I||I.call(v)),null===(q=v.finalize)||void 0===q||q.call(v)}))}):l.y}},43088:(St,be,s)=>{"use strict";s.d(be,{o:()=>r});var t=s(22292);class e extends t.w0{constructor(E,m){super()}schedule(E,m=0){return this}}const d={setInterval(...c){const{delegate:E}=d;return(E?.setInterval||setInterval)(...c)},clearInterval(c){const{delegate:E}=d;return(E?.clearInterval||clearInterval)(c)},delegate:void 0};var l=s(35848);class r extends e{constructor(E,m){super(E,m),this.scheduler=E,this.work=m,this.pending=!1}schedule(E,m=0){if(this.closed)return this;this.state=E;const v=this.id,C=this.scheduler;return null!=v&&(this.id=this.recycleAsyncId(C,v,m)),this.pending=!0,this.delay=m,this.id=this.id||this.requestAsyncId(C,this.id,m),this}requestAsyncId(E,m,v=0){return d.setInterval(E.flush.bind(E,this),v)}recycleAsyncId(E,m,v=0){if(null!=v&&this.delay===v&&!1===this.pending)return m;d.clearInterval(m)}execute(E,m){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const v=this._execute(E,m);if(v)return v;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(E,m){let C,v=!1;try{this.work(E)}catch(n){v=!0,C=n||new Error("Scheduled action threw falsy error")}if(v)return this.unsubscribe(),C}unsubscribe(){if(!this.closed){const{id:E,scheduler:m}=this,{actions:v}=m;this.work=this.state=this.scheduler=null,this.pending=!1,(0,l.P)(v,this),null!=E&&(this.id=this.recycleAsyncId(m,E,null)),this.delay=null,super.unsubscribe()}}}},94713:(St,be,s)=>{"use strict";s.d(be,{v:()=>d});var t=s(93450);class e{constructor(r,c=e.now){this.schedulerActionCtor=r,this.now=c}schedule(r,c=0,E){return new this.schedulerActionCtor(this,r).schedule(E,c)}}e.now=t.l.now;class d extends e{constructor(r,c=e.now){super(r,c),this.actions=[],this._active=!1,this._scheduled=void 0}flush(r){const{actions:c}=this;if(this._active)return void c.push(r);let E;this._active=!0;do{if(E=r.execute(r.state,r.delay))break}while(r=c.shift());if(this._active=!1,E){for(;r=c.shift();)r.unsubscribe();throw E}}}},57421:(St,be,s)=>{"use strict";s.d(be,{E:()=>I});var t=s(43088);let d,e=1;const l={};function r(D){return D in l&&(delete l[D],!0)}const c={setImmediate(D){const M=e++;return l[M]=!0,d||(d=Promise.resolve()),d.then(()=>r(M)&&D()),M},clearImmediate(D){r(D)}},{setImmediate:m,clearImmediate:v}=c,C={setImmediate(...D){const{delegate:M}=C;return(M?.setImmediate||m)(...D)},clearImmediate(D){const{delegate:M}=C;return(M?.clearImmediate||v)(D)},delegate:void 0};var i=s(94713);const I=new class P extends i.v{flush(M){this._active=!0,this._scheduled=void 0;const{actions:T}=this;let F,le=-1;M=M||T.shift();const V=T.length;do{if(F=M.execute(M.state,M.delay))break}while(++le<V&&(M=T.shift()));if(this._active=!1,F){for(;++le<V&&(M=T.shift());)M.unsubscribe();throw F}}}(class n extends t.o{constructor(M,T){super(M,T),this.scheduler=M,this.work=T}requestAsyncId(M,T,F=0){return null!==F&&F>0?super.requestAsyncId(M,T,F):(M.actions.push(this),M._scheduled||(M._scheduled=C.setImmediate(M.flush.bind(M,void 0))))}recycleAsyncId(M,T,F=0){if(null!=F&&F>0||null==F&&this.delay>0)return super.recycleAsyncId(M,T,F);0===M.actions.length&&(C.clearImmediate(T),M._scheduled=void 0)}})},9615:(St,be,s)=>{"use strict";s.d(be,{P:()=>l,z:()=>d});var t=s(43088);const d=new(s(94713).v)(t.o),l=d},93450:(St,be,s)=>{"use strict";s.d(be,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},2631:(St,be,s)=>{"use strict";s.d(be,{z:()=>t});const t={setTimeout(...e){const{delegate:d}=t;return(d?.setTimeout||setTimeout)(...e)},clearTimeout(e){const{delegate:d}=t;return(d?.clearTimeout||clearTimeout)(e)},delegate:void 0}},31794:(St,be,s)=>{"use strict";s.d(be,{h:()=>e});const e=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},48268:(St,be,s)=>{"use strict";s.d(be,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},88167:(St,be,s)=>{"use strict";s.d(be,{K:()=>e});const e=(0,s(93922).d)(d=>function(){d(this),this.name="EmptyError",this.message="no elements in sequence"})},13596:(St,be,s)=>{"use strict";s.d(be,{_6:()=>c,jO:()=>l,yG:()=>r});var t=s(27479),e=s(63088);function d(E){return E[E.length-1]}function l(E){return(0,t.m)(d(E))?E.pop():void 0}function r(E){return(0,e.K)(d(E))?E.pop():void 0}function c(E,m){return"number"==typeof d(E)?E.pop():m}},27227:(St,be,s)=>{"use strict";s.d(be,{D:()=>r});const{isArray:t}=Array,{getPrototypeOf:e,prototype:d,keys:l}=Object;function r(E){if(1===E.length){const m=E[0];if(t(m))return{args:m,keys:null};if(function c(E){return E&&"object"==typeof E&&e(E)===d}(m)){const v=l(m);return{args:v.map(C=>m[C]),keys:v}}}return{args:E,keys:null}}},35848:(St,be,s)=>{"use strict";function t(e,d){if(e){const l=e.indexOf(d);0<=l&&e.splice(l,1)}}s.d(be,{P:()=>t})},93922:(St,be,s)=>{"use strict";function t(e){const l=e(r=>{Error.call(r),r.stack=(new Error).stack});return l.prototype=Object.create(Error.prototype),l.prototype.constructor=l,l}s.d(be,{d:()=>t})},81391:(St,be,s)=>{"use strict";function t(e,d){return e.reduce((l,r,c)=>(l[r]=d[c],l),{})}s.d(be,{n:()=>t})},79848:(St,be,s)=>{"use strict";s.d(be,{O:()=>l,x:()=>d});var t=s(23243);let e=null;function d(r){if(t.v.useDeprecatedSynchronousErrorHandling){const c=!e;if(c&&(e={errorThrown:!1,error:null}),r(),c){const{errorThrown:E,error:m}=e;if(e=null,E)throw m}}else r()}function l(r){t.v.useDeprecatedSynchronousErrorHandling&&e&&(e.errorThrown=!0,e.error=r)}},1552:(St,be,s)=>{"use strict";function t(e,d,l,r=0,c=!1){const E=d.schedule(function(){l(),c?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(E),!c)return E}s.d(be,{f:()=>t})},54874:(St,be,s)=>{"use strict";function t(e){return e}s.d(be,{y:()=>t})},63901:(St,be,s)=>{"use strict";s.d(be,{z:()=>t});const t=e=>e&&"number"==typeof e.length&&"function"!=typeof e},71009:(St,be,s)=>{"use strict";s.d(be,{D:()=>e});var t=s(27479);function e(d){return Symbol.asyncIterator&&(0,t.m)(d?.[Symbol.asyncIterator])}},27479:(St,be,s)=>{"use strict";function t(e){return"function"==typeof e}s.d(be,{m:()=>t})},81828:(St,be,s)=>{"use strict";s.d(be,{c:()=>d});var t=s(48268),e=s(27479);function d(l){return(0,e.m)(l[t.L])}},13296:(St,be,s)=>{"use strict";s.d(be,{T:()=>d});var t=s(31794),e=s(27479);function d(l){return(0,e.m)(l?.[t.h])}},45929:(St,be,s)=>{"use strict";s.d(be,{b:()=>d});var t=s(44070),e=s(27479);function d(l){return!!l&&(l instanceof t.y||(0,e.m)(l.lift)&&(0,e.m)(l.subscribe))}},70757:(St,be,s)=>{"use strict";s.d(be,{t:()=>e});var t=s(27479);function e(d){return(0,t.m)(d?.then)}},46401:(St,be,s)=>{"use strict";s.d(be,{L:()=>l,Q:()=>d});var t=s(49126),e=s(27479);function d(r){return(0,t.FC)(this,arguments,function*(){const E=r.getReader();try{for(;;){const{value:m,done:v}=yield(0,t.qq)(E.read());if(v)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(m)}}finally{E.releaseLock()}})}function l(r){return(0,e.m)(r?.getReader)}},63088:(St,be,s)=>{"use strict";s.d(be,{K:()=>e});var t=s(27479);function e(d){return d&&(0,t.m)(d.schedule)}},49681:(St,be,s)=>{"use strict";s.d(be,{A:()=>e,e:()=>d});var t=s(27479);function e(l){return(0,t.m)(l?.lift)}function d(l){return r=>{if(e(r))return r.lift(function(c){try{return l(c,this)}catch(E){this.error(E)}});throw new TypeError("Unable to lift unknown Observable type")}}},13159:(St,be,s)=>{"use strict";s.d(be,{Z:()=>l});var t=s(87580);const{isArray:e}=Array;function l(r){return(0,t.U)(c=>function d(r,c){return e(c)?r(...c):r(c)}(r,c))}},80222:(St,be,s)=>{"use strict";function t(){}s.d(be,{Z:()=>t})},20602:(St,be,s)=>{"use strict";s.d(be,{U:()=>d,z:()=>e});var t=s(54874);function e(...l){return d(l)}function d(l){return 0===l.length?t.y:1===l.length?l[0]:function(c){return l.reduce((E,m)=>m(E),c)}}},73367:(St,be,s)=>{"use strict";s.d(be,{h:()=>d});var t=s(23243),e=s(2631);function d(l){e.z.setTimeout(()=>{const{onUnhandledError:r}=t.v;if(!r)throw l;r(l)})}},94704:(St,be,s)=>{"use strict";function t(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}s.d(be,{z:()=>t})},46700:(St,be,s)=>{var t={"./af":35221,"./af.js":35221,"./ar":3712,"./ar-dz":90869,"./ar-dz.js":90869,"./ar-kw":45916,"./ar-kw.js":45916,"./ar-ly":60994,"./ar-ly.js":60994,"./ar-ma":52787,"./ar-ma.js":52787,"./ar-sa":85527,"./ar-sa.js":85527,"./ar-tn":71583,"./ar-tn.js":71583,"./ar.js":3712,"./az":69889,"./az.js":69889,"./be":44779,"./be.js":44779,"./bg":61498,"./bg.js":61498,"./bm":89740,"./bm.js":89740,"./bn":76931,"./bn-bd":80410,"./bn-bd.js":80410,"./bn.js":76931,"./bo":75513,"./bo.js":75513,"./br":7759,"./br.js":7759,"./bs":64145,"./bs.js":64145,"./ca":32656,"./ca.js":32656,"./cs":47899,"./cs.js":47899,"./cv":76508,"./cv.js":76508,"./cy":58902,"./cy.js":58902,"./da":15933,"./da.js":15933,"./de":5365,"./de-at":11649,"./de-at.js":11649,"./de-ch":77050,"./de-ch.js":77050,"./de.js":5365,"./dv":80526,"./dv.js":80526,"./el":69358,"./el.js":69358,"./en-au":68502,"./en-au.js":68502,"./en-ca":15969,"./en-ca.js":15969,"./en-gb":69395,"./en-gb.js":69395,"./en-ie":94738,"./en-ie.js":94738,"./en-il":46921,"./en-il.js":46921,"./en-in":89244,"./en-in.js":89244,"./en-nz":48225,"./en-nz.js":48225,"./en-sg":85924,"./en-sg.js":85924,"./eo":51393,"./eo.js":51393,"./es":1801,"./es-do":39494,"./es-do.js":39494,"./es-mx":54362,"./es-mx.js":54362,"./es-us":42647,"./es-us.js":42647,"./es.js":1801,"./et":83779,"./et.js":83779,"./eu":60922,"./eu.js":60922,"./fa":51944,"./fa.js":51944,"./fi":96294,"./fi.js":96294,"./fil":99909,"./fil.js":99909,"./fo":36511,"./fo.js":36511,"./fr":95346,"./fr-ca":78488,"./fr-ca.js":78488,"./fr-ch":23924,"./fr-ch.js":23924,"./fr.js":95346,"./fy":97233,"./fy.js":97233,"./ga":57391,"./ga.js":57391,"./gd":20517,"./gd.js":20517,"./gl":73622,"./gl.js":73622,"./gom-deva":5779,"./gom-deva.js":5779,"./gom-latn":87125,"./gom-latn.js":87125,"./gu":68085,"./gu.js":68085,"./he":62249,"./he.js":62249,"./hi":83463,"./hi.js":83463,"./hr":60985,"./hr.js":60985,"./hu":6130,"./hu.js":6130,"./hy-am":47398,"./hy-am.js":47398,"./id":24232,"./id.js":24232,"./is":97407,"./is.js":97407,"./it":87973,"./it-ch":58960,"./it-ch.js":58960,"./it.js":87973,"./ja":75653,"./ja.js":75653,"./jv":9605,"./jv.js":9605,"./ka":71418,"./ka.js":71418,"./kk":59357,"./kk.js":59357,"./km":30213,"./km.js":30213,"./kn":94526,"./kn.js":94526,"./ko":5190,"./ko.js":5190,"./ku":94162,"./ku.js":94162,"./ky":9022,"./ky.js":9022,"./lb":12249,"./lb.js":12249,"./lo":33635,"./lo.js":33635,"./lt":88824,"./lt.js":88824,"./lv":2913,"./lv.js":2913,"./me":56628,"./me.js":56628,"./mi":79718,"./mi.js":79718,"./mk":86416,"./mk.js":86416,"./ml":8954,"./ml.js":8954,"./mn":25657,"./mn.js":25657,"./mr":75031,"./mr.js":75031,"./ms":6397,"./ms-my":74743,"./ms-my.js":74743,"./ms.js":6397,"./mt":82694,"./mt.js":82694,"./my":83892,"./my.js":83892,"./nb":92013,"./nb.js":92013,"./ne":24373,"./ne.js":24373,"./nl":79709,"./nl-be":82477,"./nl-be.js":82477,"./nl.js":79709,"./nn":48414,"./nn.js":48414,"./oc-lnc":38777,"./oc-lnc.js":38777,"./pa-in":41033,"./pa-in.js":41033,"./pl":54058,"./pl.js":54058,"./pt":39268,"./pt-br":44370,"./pt-br.js":44370,"./pt.js":39268,"./ro":30693,"./ro.js":30693,"./ru":64126,"./ru.js":64126,"./sd":41163,"./sd.js":41163,"./se":17059,"./se.js":17059,"./si":85184,"./si.js":85184,"./sk":77994,"./sk.js":77994,"./sl":4095,"./sl.js":4095,"./sq":74101,"./sq.js":74101,"./sr":51594,"./sr-cyrl":27772,"./sr-cyrl.js":27772,"./sr.js":51594,"./ss":76619,"./ss.js":76619,"./sv":43608,"./sv.js":43608,"./sw":12380,"./sw.js":12380,"./ta":14981,"./ta.js":14981,"./te":98918,"./te.js":98918,"./tet":37001,"./tet.js":37001,"./tg":93385,"./tg.js":93385,"./th":62199,"./th.js":62199,"./tk":51736,"./tk.js":51736,"./tl-ph":90515,"./tl-ph.js":90515,"./tlh":41287,"./tlh.js":41287,"./tr":96417,"./tr.js":96417,"./tzl":62075,"./tzl.js":62075,"./tzm":26935,"./tzm-latn":35222,"./tzm-latn.js":35222,"./tzm.js":26935,"./ug-cn":20819,"./ug-cn.js":20819,"./uk":28707,"./uk.js":28707,"./ur":2281,"./ur.js":2281,"./uz":45244,"./uz-latn":23149,"./uz-latn.js":23149,"./uz.js":45244,"./vi":95844,"./vi.js":95844,"./x-pseudo":90,"./x-pseudo.js":90,"./yo":23135,"./yo.js":23135,"./zh-cn":78777,"./zh-cn.js":78777,"./zh-hk":48182,"./zh-hk.js":48182,"./zh-mo":95717,"./zh-mo.js":95717,"./zh-tw":55616,"./zh-tw.js":55616};function e(l){var r=d(l);return s(r)}function d(l){if(!s.o(t,l)){var r=new Error("Cannot find module '"+l+"'");throw r.code="MODULE_NOT_FOUND",r}return t[l]}e.keys=function(){return Object.keys(t)},e.resolve=d,St.exports=e,e.id=46700},49126:(St,be,s)=>{"use strict";function m(ue,ee,se,W){return new(se||(se=Promise))(function(he,_e){function Z(k){try{w(W.next(k))}catch(x){_e(x)}}function Te(k){try{w(W.throw(k))}catch(x){_e(x)}}function w(k){k.done?he(k.value):function L(he){return he instanceof se?he:new se(function(_e){_e(he)})}(k.value).then(Z,Te)}w((W=W.apply(ue,ee||[])).next())})}function M(ue){return this instanceof M?(this.v=ue,this):new M(ue)}function T(ue,ee,se){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var L,W=se.apply(ue,ee||[]),he=[];return L={},_e("next"),_e("throw"),_e("return"),L[Symbol.asyncIterator]=function(){return this},L;function _e(z){W[z]&&(L[z]=function(j){return new Promise(function(Ne,tt){he.push([z,j,Ne,tt])>1||Z(z,j)})})}function Z(z,j){try{!function Te(z){z.value instanceof M?Promise.resolve(z.value.v).then(w,k):x(he[0][2],z)}(W[z](j))}catch(Ne){x(he[0][3],Ne)}}function w(z){Z("next",z)}function k(z){Z("throw",z)}function x(z,j){z(j),he.shift(),he.length&&Z(he[0][0],he[0][1])}}function le(ue){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var se,ee=ue[Symbol.asyncIterator];return ee?ee.call(ue):(ue=function i(ue){var ee="function"==typeof Symbol&&Symbol.iterator,se=ee&&ue[ee],W=0;if(se)return se.call(ue);if(ue&&"number"==typeof ue.length)return{next:function(){return ue&&W>=ue.length&&(ue=void 0),{value:ue&&ue[W++],done:!ue}}};throw new TypeError(ee?"Object is not iterable.":"Symbol.iterator is not defined.")}(ue),se={},W("next"),W("throw"),W("return"),se[Symbol.asyncIterator]=function(){return this},se);function W(he){se[he]=ue[he]&&function(_e){return new Promise(function(Z,Te){!function L(he,_e,Z,Te){Promise.resolve(Te).then(function(w){he({value:w,done:Z})},_e)}(Z,Te,(_e=ue[he](_e)).done,_e.value)})}}}s.d(be,{FC:()=>T,KL:()=>le,mG:()=>m,qq:()=>M})},96191:(St,be,s)=>{"use strict";s.d(be,{F4:()=>C,IO:()=>q,LC:()=>e,SB:()=>v,X$:()=>l,ZE:()=>F,ZN:()=>T,_j:()=>t,eR:()=>n,jt:()=>r,k1:()=>le,l3:()=>d,oB:()=>m,pV:()=>P,ru:()=>c,vP:()=>E});class t{}class e{}const d="*";function l(V,de){return{type:7,name:V,definitions:de,options:{}}}function r(V,de=null){return{type:4,styles:de,timings:V}}function c(V,de=null){return{type:3,steps:V,options:de}}function E(V,de=null){return{type:2,steps:V,options:de}}function m(V){return{type:6,styles:V,offset:null}}function v(V,de,ye){return{type:0,name:V,styles:de,options:ye}}function C(V){return{type:5,steps:V}}function n(V,de,ye=null){return{type:1,expr:V,animation:de,options:ye}}function P(V=null){return{type:9,options:V}}function q(V,de,ye=null){return{type:11,selector:V,animation:de,options:ye}}function M(V){Promise.resolve().then(V)}class T{constructor(de=0,ye=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=de+ye}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(de=>de()),this._onDoneFns=[])}onStart(de){this._originalOnStartFns.push(de),this._onStartFns.push(de)}onDone(de){this._originalOnDoneFns.push(de),this._onDoneFns.push(de)}onDestroy(de){this._onDestroyFns.push(de)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){M(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(de=>de()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(de=>de()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(de){this._position=this.totalTime?de*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(de){const ye="start"==de?this._onStartFns:this._onDoneFns;ye.forEach(Ee=>Ee()),ye.length=0}}class F{constructor(de){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=de;let ye=0,Ee=0,Le=0;const ge=this.players.length;0==ge?M(()=>this._onFinish()):this.players.forEach(ue=>{ue.onDone(()=>{++ye==ge&&this._onFinish()}),ue.onDestroy(()=>{++Ee==ge&&this._onDestroy()}),ue.onStart(()=>{++Le==ge&&this._onStart()})}),this.totalTime=this.players.reduce((ue,ee)=>Math.max(ue,ee.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(de=>de()),this._onDoneFns=[])}init(){this.players.forEach(de=>de.init())}onStart(de){this._onStartFns.push(de)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(de=>de()),this._onStartFns=[])}onDone(de){this._onDoneFns.push(de)}onDestroy(de){this._onDestroyFns.push(de)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(de=>de.play())}pause(){this.players.forEach(de=>de.pause())}restart(){this.players.forEach(de=>de.restart())}finish(){this._onFinish(),this.players.forEach(de=>de.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(de=>de.destroy()),this._onDestroyFns.forEach(de=>de()),this._onDestroyFns=[])}reset(){this.players.forEach(de=>de.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(de){const ye=de*this.totalTime;this.players.forEach(Ee=>{const Le=Ee.totalTime?Math.min(1,ye/Ee.totalTime):1;Ee.setPosition(Le)})}getPosition(){const de=this.players.reduce((ye,Ee)=>null===ye||Ee.totalTime>ye.totalTime?Ee:ye,null);return null!=de?de.getPosition():0}beforeDestroy(){this.players.forEach(de=>{de.beforeDestroy&&de.beforeDestroy()})}triggerCallback(de){const ye="start"==de?this._onStartFns:this._onDoneFns;ye.forEach(Ee=>Ee()),ye.length=0}}const le="!"},70232:(St,be,s)=>{"use strict";s.d(be,{$s:()=>ee,Em:()=>_e,Kd:()=>$t,X6:()=>K,ic:()=>Te,kH:()=>bt,mK:()=>Ge,qV:()=>ke,qm:()=>br,rt:()=>lt,s1:()=>he,tE:()=>dr,yG:()=>Q});var t=s(17774),e=s(73991),d=s(71329),l=s(68264),r=s(22292),c=s(93216),E=s(95195),m=s(20849),v=s(17374),C=s(59435),n=s(9754),i=s(87580),P=s(32653),I=s(94276),q=s(40354),D=s(30003),M=s(45903),T=s(5547),F=s(75999);function ye(De,G){return(De.getAttribute(G)||"").match(/\S+/g)||[]}const Le="cdk-describedby-message",ge="cdk-describedby-host";let ue=0,ee=(()=>{class De{constructor(U,ne){this._platform=ne,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ue++,this._document=U,this._id=(0,e.f3M)(e.AFp)+"-"+ue++}describe(U,ne,Re){if(!this._canBeDescribed(U,ne))return;const Xe=se(ne,Re);"string"!=typeof ne?(W(ne,this._id),this._messageRegistry.set(Xe,{messageElement:ne,referenceCount:0})):this._messageRegistry.has(Xe)||this._createMessageElement(ne,Re),this._isElementDescribedByMessage(U,Xe)||this._addMessageReference(U,Xe)}removeDescription(U,ne,Re){if(!ne||!this._isElementNode(U))return;const Xe=se(ne,Re);if(this._isElementDescribedByMessage(U,Xe)&&this._removeMessageReference(U,Xe),"string"==typeof ne){const Nt=this._messageRegistry.get(Xe);Nt&&0===Nt.referenceCount&&this._deleteMessageElement(Xe)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const U=this._document.querySelectorAll(`[${ge}="${this._id}"]`);for(let ne=0;ne<U.length;ne++)this._removeCdkDescribedByReferenceIds(U[ne]),U[ne].removeAttribute(ge);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(U,ne){const Re=this._document.createElement("div");W(Re,this._id),Re.textContent=U,ne&&Re.setAttribute("role",ne),this._createMessagesContainer(),this._messagesContainer.appendChild(Re),this._messageRegistry.set(se(U,ne),{messageElement:Re,referenceCount:0})}_deleteMessageElement(U){this._messageRegistry.get(U)?.messageElement?.remove(),this._messageRegistry.delete(U)}_createMessagesContainer(){if(this._messagesContainer)return;const U="cdk-describedby-message-container",ne=this._document.querySelectorAll(`.${U}[platform="server"]`);for(let Xe=0;Xe<ne.length;Xe++)ne[Xe].remove();const Re=this._document.createElement("div");Re.style.visibility="hidden",Re.classList.add(U),Re.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&Re.setAttribute("platform","server"),this._document.body.appendChild(Re),this._messagesContainer=Re}_removeCdkDescribedByReferenceIds(U){const ne=ye(U,"aria-describedby").filter(Re=>0!=Re.indexOf(Le));U.setAttribute("aria-describedby",ne.join(" "))}_addMessageReference(U,ne){const Re=this._messageRegistry.get(ne);(function V(De,G,U){const ne=ye(De,G);ne.some(Re=>Re.trim()==U.trim())||(ne.push(U.trim()),De.setAttribute(G,ne.join(" ")))})(U,"aria-describedby",Re.messageElement.id),U.setAttribute(ge,this._id),Re.referenceCount++}_removeMessageReference(U,ne){const Re=this._messageRegistry.get(ne);Re.referenceCount--,function de(De,G,U){const Re=ye(De,G).filter(Xe=>Xe!=U.trim());Re.length?De.setAttribute(G,Re.join(" ")):De.removeAttribute(G)}(U,"aria-describedby",Re.messageElement.id),U.removeAttribute(ge)}_isElementDescribedByMessage(U,ne){const Re=ye(U,"aria-describedby"),Xe=this._messageRegistry.get(ne),Nt=Xe&&Xe.messageElement.id;return!!Nt&&-1!=Re.indexOf(Nt)}_canBeDescribed(U,ne){if(!this._isElementNode(U))return!1;if(ne&&"object"==typeof ne)return!0;const Re=null==ne?"":`${ne}`.trim(),Xe=U.getAttribute("aria-label");return!(!Re||Xe&&Xe.trim()===Re)}_isElementNode(U){return U.nodeType===this._document.ELEMENT_NODE}}return De.\u0275fac=function(U){return new(U||De)(e.LFG(t.K0),e.LFG(d.t4))},De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();function se(De,G){return"string"==typeof De?`${G||""}/${De}`:De}function W(De,G){De.id||(De.id=`${Le}-${G}-${ue++}`)}class L{constructor(G){this._items=G,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new l.x,this._typeaheadSubscription=r.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=U=>U.disabled,this._pressedLetters=[],this.tabOut=new l.x,this.change=new l.x,G instanceof e.n_E&&(this._itemChangesSubscription=G.changes.subscribe(U=>{if(this._activeItem){const Re=U.toArray().indexOf(this._activeItem);Re>-1&&Re!==this._activeItemIndex&&(this._activeItemIndex=Re)}}))}skipPredicate(G){return this._skipPredicateFn=G,this}withWrap(G=!0){return this._wrap=G,this}withVerticalOrientation(G=!0){return this._vertical=G,this}withHorizontalOrientation(G){return this._horizontal=G,this}withAllowedModifierKeys(G){return this._allowedModifierKeys=G,this}withTypeAhead(G=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,v.b)(U=>this._pressedLetters.push(U)),(0,C.b)(G),(0,n.h)(()=>this._pressedLetters.length>0),(0,i.U)(()=>this._pressedLetters.join(""))).subscribe(U=>{const ne=this._getItemsArray();for(let Re=1;Re<ne.length+1;Re++){const Xe=(this._activeItemIndex+Re)%ne.length,Nt=ne[Xe];if(!this._skipPredicateFn(Nt)&&0===Nt.getLabel().toUpperCase().trim().indexOf(U)){this.setActiveItem(Xe);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(G=!0){return this._homeAndEnd=G,this}withPageUpDown(G=!0,U=10){return this._pageUpAndDown={enabled:G,delta:U},this}setActiveItem(G){const U=this._activeItem;this.updateActiveItem(G),this._activeItem!==U&&this.change.next(this._activeItemIndex)}onKeydown(G){const U=G.keyCode,Re=["altKey","ctrlKey","metaKey","shiftKey"].every(Xe=>!G[Xe]||this._allowedModifierKeys.indexOf(Xe)>-1);switch(U){case m.Mf:return void this.tabOut.next();case m.JH:if(this._vertical&&Re){this.setNextItemActive();break}return;case m.LH:if(this._vertical&&Re){this.setPreviousItemActive();break}return;case m.SV:if(this._horizontal&&Re){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case m.oh:if(this._horizontal&&Re){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case m.Sd:if(this._homeAndEnd&&Re){this.setFirstItemActive();break}return;case m.uR:if(this._homeAndEnd&&Re){this.setLastItemActive();break}return;case m.Ku:if(this._pageUpAndDown.enabled&&Re){const Xe=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(Xe>0?Xe:0,1);break}return;case m.VM:if(this._pageUpAndDown.enabled&&Re){const Xe=this._activeItemIndex+this._pageUpAndDown.delta,Nt=this._getItemsArray().length;this._setActiveItemByIndex(Xe<Nt?Xe:Nt-1,-1);break}return;default:return void((Re||(0,m.Vb)(G,"shiftKey"))&&(G.key&&1===G.key.length?this._letterKeyStream.next(G.key.toLocaleUpperCase()):(U>=m.A&&U<=m.Z||U>=m.xE&&U<=m.aO)&&this._letterKeyStream.next(String.fromCharCode(U))))}this._pressedLetters=[],G.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(G){const U=this._getItemsArray(),ne="number"==typeof G?G:U.indexOf(G);this._activeItem=U[ne]??null,this._activeItemIndex=ne}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(G){this._wrap?this._setActiveInWrapMode(G):this._setActiveInDefaultMode(G)}_setActiveInWrapMode(G){const U=this._getItemsArray();for(let ne=1;ne<=U.length;ne++){const Re=(this._activeItemIndex+G*ne+U.length)%U.length;if(!this._skipPredicateFn(U[Re]))return void this.setActiveItem(Re)}}_setActiveInDefaultMode(G){this._setActiveItemByIndex(this._activeItemIndex+G,G)}_setActiveItemByIndex(G,U){const ne=this._getItemsArray();if(ne[G]){for(;this._skipPredicateFn(ne[G]);)if(!ne[G+=U])return;this.setActiveItem(G)}}_getItemsArray(){return this._items instanceof e.n_E?this._items.toArray():this._items}}class he extends L{setActiveItem(G){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(G),this.activeItem&&this.activeItem.setActiveStyles()}}class _e extends L{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(G){return this._origin=G,this}setActiveItem(G){super.setActiveItem(G),this.activeItem&&this.activeItem.focus(this._origin)}}let Te=(()=>{class De{constructor(U){this._platform=U}isDisabled(U){return U.hasAttribute("disabled")}isVisible(U){return function k(De){return!!(De.offsetWidth||De.offsetHeight||"function"==typeof De.getClientRects&&De.getClientRects().length)}(U)&&"visible"===getComputedStyle(U).visibility}isTabbable(U){if(!this._platform.isBrowser)return!1;const ne=function w(De){try{return De.frameElement}catch{return null}}(function te(De){return De.ownerDocument&&De.ownerDocument.defaultView||window}(U));if(ne&&(-1===ze(ne)||!this.isVisible(ne)))return!1;let Re=U.nodeName.toLowerCase(),Xe=ze(U);return U.hasAttribute("contenteditable")?-1!==Xe:!("iframe"===Re||"object"===Re||this._platform.WEBKIT&&this._platform.IOS&&!function we(De){let G=De.nodeName.toLowerCase(),U="input"===G&&De.type;return"text"===U||"password"===U||"select"===G||"textarea"===G}(U))&&("audio"===Re?!!U.hasAttribute("controls")&&-1!==Xe:"video"===Re?-1!==Xe&&(null!==Xe||this._platform.FIREFOX||U.hasAttribute("controls")):U.tabIndex>=0)}isFocusable(U,ne){return function Ye(De){return!function z(De){return function Ne(De){return"input"==De.nodeName.toLowerCase()}(De)&&"hidden"==De.type}(De)&&(function x(De){let G=De.nodeName.toLowerCase();return"input"===G||"select"===G||"button"===G||"textarea"===G}(De)||function j(De){return function tt(De){return"a"==De.nodeName.toLowerCase()}(De)&&De.hasAttribute("href")}(De)||De.hasAttribute("contenteditable")||We(De))}(U)&&!this.isDisabled(U)&&(ne?.ignoreVisibility||this.isVisible(U))}}return De.\u0275fac=function(U){return new(U||De)(e.LFG(d.t4))},De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();function We(De){if(!De.hasAttribute("tabindex")||void 0===De.tabIndex)return!1;let G=De.getAttribute("tabindex");return!(!G||isNaN(parseInt(G,10)))}function ze(De){if(!We(De))return null;const G=parseInt(De.getAttribute("tabindex")||"",10);return isNaN(G)?-1:G}class Se{get enabled(){return this._enabled}set enabled(G){this._enabled=G,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(G,this._startAnchor),this._toggleAnchorTabIndex(G,this._endAnchor))}constructor(G,U,ne,Re,Xe=!1){this._element=G,this._checker=U,this._ngZone=ne,this._document=Re,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Xe||this.attachAnchors()}destroy(){const G=this._startAnchor,U=this._endAnchor;G&&(G.removeEventListener("focus",this.startAnchorListener),G.remove()),U&&(U.removeEventListener("focus",this.endAnchorListener),U.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(G){return new Promise(U=>{this._executeOnStable(()=>U(this.focusInitialElement(G)))})}focusFirstTabbableElementWhenReady(G){return new Promise(U=>{this._executeOnStable(()=>U(this.focusFirstTabbableElement(G)))})}focusLastTabbableElementWhenReady(G){return new Promise(U=>{this._executeOnStable(()=>U(this.focusLastTabbableElement(G)))})}_getRegionBoundary(G){const U=this._element.querySelectorAll(`[cdk-focus-region-${G}], [cdkFocusRegion${G}], [cdk-focus-${G}]`);return"start"==G?U.length?U[0]:this._getFirstTabbableElement(this._element):U.length?U[U.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(G){const U=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(U){if(!this._checker.isFocusable(U)){const ne=this._getFirstTabbableElement(U);return ne?.focus(G),!!ne}return U.focus(G),!0}return this.focusFirstTabbableElement(G)}focusFirstTabbableElement(G){const U=this._getRegionBoundary("start");return U&&U.focus(G),!!U}focusLastTabbableElement(G){const U=this._getRegionBoundary("end");return U&&U.focus(G),!!U}hasAttached(){return this._hasAttached}_getFirstTabbableElement(G){if(this._checker.isFocusable(G)&&this._checker.isTabbable(G))return G;const U=G.children;for(let ne=0;ne<U.length;ne++){const Re=U[ne].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(U[ne]):null;if(Re)return Re}return null}_getLastTabbableElement(G){if(this._checker.isFocusable(G)&&this._checker.isTabbable(G))return G;const U=G.children;for(let ne=U.length-1;ne>=0;ne--){const Re=U[ne].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(U[ne]):null;if(Re)return Re}return null}_createAnchor(){const G=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,G),G.classList.add("cdk-visually-hidden"),G.classList.add("cdk-focus-trap-anchor"),G.setAttribute("aria-hidden","true"),G}_toggleAnchorTabIndex(G,U){G?U.setAttribute("tabindex","0"):U.removeAttribute("tabindex")}toggleAnchors(G){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(G,this._startAnchor),this._toggleAnchorTabIndex(G,this._endAnchor))}_executeOnStable(G){this._ngZone.isStable?G():this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(G)}}let ke=(()=>{class De{constructor(U,ne,Re){this._checker=U,this._ngZone=ne,this._document=Re}create(U,ne=!1){return new Se(U,this._checker,this._ngZone,this._document,ne)}}return De.\u0275fac=function(U){return new(U||De)(e.LFG(Te),e.LFG(e.R0b),e.LFG(t.K0))},De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})(),Ge=(()=>{class De{get enabled(){return this.focusTrap.enabled}set enabled(U){this.focusTrap.enabled=(0,M.Ig)(U)}get autoCapture(){return this._autoCapture}set autoCapture(U){this._autoCapture=(0,M.Ig)(U)}constructor(U,ne,Re){this._elementRef=U,this._focusTrapFactory=ne,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(U){const ne=U.autoCapture;ne&&!ne.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,d.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return De.\u0275fac=function(U){return new(U||De)(e.Y36(e.SBq),e.Y36(ke),e.Y36(t.K0))},De.\u0275dir=e.lG2({type:De,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[e.TTD]}),De})();function K(De){return 0===De.buttons||0===De.offsetX&&0===De.offsetY}function Q(De){const G=De.touches&&De.touches[0]||De.changedTouches&&De.changedTouches[0];return!(!G||-1!==G.identifier||null!=G.radiusX&&1!==G.radiusX||null!=G.radiusY&&1!==G.radiusY)}const B=new e.OlP("cdk-input-modality-detector-options"),re={ignoreKeys:[m.zL,m.jx,m.b2,m.MW,m.JU]},qe=(0,d.i$)({passive:!0,capture:!0});let $e=(()=>{class De{get mostRecentModality(){return this._modality.value}constructor(U,ne,Re,Xe){this._platform=U,this._mostRecentTarget=null,this._modality=new c.X(null),this._lastTouchMs=0,this._onKeydown=Nt=>{this._options?.ignoreKeys?.some(Pt=>Pt===Nt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,d.sA)(Nt))},this._onMousedown=Nt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(K(Nt)?"keyboard":"mouse"),this._mostRecentTarget=(0,d.sA)(Nt))},this._onTouchstart=Nt=>{Q(Nt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,d.sA)(Nt))},this._options={...re,...Xe},this.modalityDetected=this._modality.pipe((0,I.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,q.x)()),U.isBrowser&&ne.runOutsideAngular(()=>{Re.addEventListener("keydown",this._onKeydown,qe),Re.addEventListener("mousedown",this._onMousedown,qe),Re.addEventListener("touchstart",this._onTouchstart,qe)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,qe),document.removeEventListener("mousedown",this._onMousedown,qe),document.removeEventListener("touchstart",this._onTouchstart,qe))}}return De.\u0275fac=function(U){return new(U||De)(e.LFG(d.t4),e.LFG(e.R0b),e.LFG(t.K0),e.LFG(B,8))},De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();const et=new e.OlP("liveAnnouncerElement",{providedIn:"root",factory:function ot(){return null}}),ct=new e.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let pt=0,$t=(()=>{class De{constructor(U,ne,Re,Xe){this._ngZone=ne,this._defaultOptions=Xe,this._document=Re,this._liveElement=U||this._createLiveElement()}announce(U,...ne){const Re=this._defaultOptions;let Xe,Nt;return 1===ne.length&&"number"==typeof ne[0]?Nt=ne[0]:[Xe,Nt]=ne,this.clear(),clearTimeout(this._previousTimeout),Xe||(Xe=Re&&Re.politeness?Re.politeness:"polite"),null==Nt&&Re&&(Nt=Re.duration),this._liveElement.setAttribute("aria-live",Xe),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Pt=>this._currentResolve=Pt)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=U,"number"==typeof Nt&&(this._previousTimeout=setTimeout(()=>this.clear(),Nt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const U="cdk-live-announcer-element",ne=this._document.getElementsByClassName(U),Re=this._document.createElement("div");for(let Xe=0;Xe<ne.length;Xe++)ne[Xe].remove();return Re.classList.add(U),Re.classList.add("cdk-visually-hidden"),Re.setAttribute("aria-atomic","true"),Re.setAttribute("aria-live","polite"),Re.id="cdk-live-announcer-"+pt++,this._document.body.appendChild(Re),Re}_exposeAnnouncerToModals(U){const ne=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let Re=0;Re<ne.length;Re++){const Xe=ne[Re],Nt=Xe.getAttribute("aria-owns");Nt?-1===Nt.indexOf(U)&&Xe.setAttribute("aria-owns",Nt+" "+U):Xe.setAttribute("aria-owns",U)}}}return De.\u0275fac=function(U){return new(U||De)(e.LFG(et,8),e.LFG(e.R0b),e.LFG(t.K0),e.LFG(ct,8))},De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();const fr=new e.OlP("cdk-focus-monitor-default-options"),yt=(0,d.i$)({passive:!0,capture:!0});let dr=(()=>{class De{constructor(U,ne,Re,Xe,Nt){this._ngZone=U,this._platform=ne,this._inputModalityDetector=Re,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new l.x,this._rootNodeFocusAndBlurListener=Pt=>{for(let Jt=(0,d.sA)(Pt);Jt;Jt=Jt.parentElement)"focus"===Pt.type?this._onFocus(Pt,Jt):this._onBlur(Pt,Jt)},this._document=Xe,this._detectionMode=Nt?.detectionMode||0}monitor(U,ne=!1){const Re=(0,M.fI)(U);if(!this._platform.isBrowser||1!==Re.nodeType)return(0,E.of)(null);const Xe=(0,d.kV)(Re)||this._getDocument(),Nt=this._elementInfo.get(Re);if(Nt)return ne&&(Nt.checkChildren=!0),Nt.subject;const Pt={checkChildren:ne,subject:new l.x,rootNode:Xe};return this._elementInfo.set(Re,Pt),this._registerGlobalListeners(Pt),Pt.subject}stopMonitoring(U){const ne=(0,M.fI)(U),Re=this._elementInfo.get(ne);Re&&(Re.subject.complete(),this._setClasses(ne),this._elementInfo.delete(ne),this._removeGlobalListeners(Re))}focusVia(U,ne,Re){const Xe=(0,M.fI)(U);Xe===this._getDocument().activeElement?this._getClosestElementsInfo(Xe).forEach(([Pt,Vt])=>this._originChanged(Pt,ne,Vt)):(this._setOrigin(ne),"function"==typeof Xe.focus&&Xe.focus(Re))}ngOnDestroy(){this._elementInfo.forEach((U,ne)=>this.stopMonitoring(ne))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(U){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(U)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:U&&this._isLastInteractionFromInputLabel(U)?"mouse":"program"}_shouldBeAttributedToTouch(U){return 1===this._detectionMode||!!U?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(U,ne){U.classList.toggle("cdk-focused",!!ne),U.classList.toggle("cdk-touch-focused","touch"===ne),U.classList.toggle("cdk-keyboard-focused","keyboard"===ne),U.classList.toggle("cdk-mouse-focused","mouse"===ne),U.classList.toggle("cdk-program-focused","program"===ne)}_setOrigin(U,ne=!1){this._ngZone.runOutsideAngular(()=>{this._origin=U,this._originFromTouchInteraction="touch"===U&&ne,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(U,ne){const Re=this._elementInfo.get(ne),Xe=(0,d.sA)(U);!Re||!Re.checkChildren&&ne!==Xe||this._originChanged(ne,this._getFocusOrigin(Xe),Re)}_onBlur(U,ne){const Re=this._elementInfo.get(ne);!Re||Re.checkChildren&&U.relatedTarget instanceof Node&&ne.contains(U.relatedTarget)||(this._setClasses(ne),this._emitOrigin(Re,null))}_emitOrigin(U,ne){U.subject.observers.length&&this._ngZone.run(()=>U.subject.next(ne))}_registerGlobalListeners(U){if(!this._platform.isBrowser)return;const ne=U.rootNode,Re=this._rootNodeFocusListenerCount.get(ne)||0;Re||this._ngZone.runOutsideAngular(()=>{ne.addEventListener("focus",this._rootNodeFocusAndBlurListener,yt),ne.addEventListener("blur",this._rootNodeFocusAndBlurListener,yt)}),this._rootNodeFocusListenerCount.set(ne,Re+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,D.R)(this._stopInputModalityDetector)).subscribe(Xe=>{this._setOrigin(Xe,!0)}))}_removeGlobalListeners(U){const ne=U.rootNode;if(this._rootNodeFocusListenerCount.has(ne)){const Re=this._rootNodeFocusListenerCount.get(ne);Re>1?this._rootNodeFocusListenerCount.set(ne,Re-1):(ne.removeEventListener("focus",this._rootNodeFocusAndBlurListener,yt),ne.removeEventListener("blur",this._rootNodeFocusAndBlurListener,yt),this._rootNodeFocusListenerCount.delete(ne))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(U,ne,Re){this._setClasses(U,ne),this._emitOrigin(Re,ne),this._lastFocusOrigin=ne}_getClosestElementsInfo(U){const ne=[];return this._elementInfo.forEach((Re,Xe)=>{(Xe===U||Re.checkChildren&&Xe.contains(U))&&ne.push([Xe,Re])}),ne}_isLastInteractionFromInputLabel(U){const{_mostRecentTarget:ne,mostRecentModality:Re}=this._inputModalityDetector;if("mouse"!==Re||!ne||ne===U||"INPUT"!==U.nodeName&&"TEXTAREA"!==U.nodeName||U.disabled)return!1;const Xe=U.labels;if(Xe)for(let Nt=0;Nt<Xe.length;Nt++)if(Xe[Nt].contains(ne))return!0;return!1}}return De.\u0275fac=function(U){return new(U||De)(e.LFG(e.R0b),e.LFG(d.t4),e.LFG($e),e.LFG(t.K0,8),e.LFG(fr,8))},De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})(),bt=(()=>{class De{constructor(U,ne){this._elementRef=U,this._focusMonitor=ne,this._focusOrigin=null,this.cdkFocusChange=new e.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const U=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(U,1===U.nodeType&&U.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(ne=>{this._focusOrigin=ne,this.cdkFocusChange.emit(ne)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return De.\u0275fac=function(U){return new(U||De)(e.Y36(e.SBq),e.Y36(dr))},De.\u0275dir=e.lG2({type:De,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),De})();const ar="cdk-high-contrast-black-on-white",vt="cdk-high-contrast-white-on-black",qt="cdk-high-contrast-active";let br=(()=>{class De{constructor(U,ne){this._platform=U,this._document=ne,this._breakpointSubscription=(0,e.f3M)(F.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const U=this._document.createElement("div");U.style.backgroundColor="rgb(1,2,3)",U.style.position="absolute",this._document.body.appendChild(U);const ne=this._document.defaultView||window,Re=ne&&ne.getComputedStyle?ne.getComputedStyle(U):null,Xe=(Re&&Re.backgroundColor||"").replace(/ /g,"");switch(U.remove(),Xe){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 U=this._document.body.classList;U.remove(qt,ar,vt),this._hasCheckedHighContrastMode=!0;const ne=this.getHighContrastMode();1===ne?U.add(qt,ar):2===ne&&U.add(qt,vt)}}}return De.\u0275fac=function(U){return new(U||De)(e.LFG(d.t4),e.LFG(t.K0))},De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})(),lt=(()=>{class De{constructor(U){U._applyBodyHighContrastModeCssClasses()}}return De.\u0275fac=function(U){return new(U||De)(e.LFG(br))},De.\u0275mod=e.oAB({type:De}),De.\u0275inj=e.cJS({imports:[T.Q8]}),De})()},88793:(St,be,s)=>{"use strict";s.d(be,{Is:()=>E,vT:()=>v});var t=s(73991),e=s(17774);const d=new t.OlP("cdk-dir-doc",{providedIn:"root",factory:function l(){return(0,t.f3M)(e.K0)}}),r=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let E=(()=>{class C{constructor(i){this.value="ltr",this.change=new t.vpe,i&&(this.value=function c(C){const n=C?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?r.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((i.body?i.body.dir:null)||(i.documentElement?i.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return C.\u0275fac=function(i){return new(i||C)(t.LFG(d,8))},C.\u0275prov=t.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})(),v=(()=>{class C{}return C.\u0275fac=function(i){return new(i||C)},C.\u0275mod=t.oAB({type:C}),C.\u0275inj=t.cJS({}),C})()},44939:(St,be,s)=>{"use strict";s.d(be,{Iq:()=>E,TU:()=>l,i3:()=>c});var t=s(17774),e=s(73991);class d{constructor(v,C){this._document=C;const n=this._textarea=this._document.createElement("textarea"),i=n.style;i.position="fixed",i.top=i.opacity="0",i.left="-999em",n.setAttribute("aria-hidden","true"),n.value=v,n.readOnly=!0,this._document.body.appendChild(n)}copy(){const v=this._textarea;let C=!1;try{if(v){const n=this._document.activeElement;v.select(),v.setSelectionRange(0,v.value.length),C=this._document.execCommand("copy"),n&&n.focus()}}catch{}return C}destroy(){const v=this._textarea;v&&(v.remove(),this._textarea=void 0)}}let l=(()=>{class m{constructor(C){this._document=C}copy(C){const n=this.beginCopy(C),i=n.copy();return n.destroy(),i}beginCopy(C){return new d(C,this._document)}}return m.\u0275fac=function(C){return new(C||m)(e.LFG(t.K0))},m.\u0275prov=e.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();const r=new e.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let c=(()=>{class m{constructor(C,n,i){this._clipboard=C,this._ngZone=n,this.text="",this.attempts=1,this.copied=new e.vpe,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}copy(C=this.attempts){if(C>1){let n=C;const i=this._clipboard.beginCopy(this.text);this._pending.add(i);const P=()=>{const I=i.copy();I||!--n||this._destroyed?(this._currentTimeout=null,this._pending.delete(i),i.destroy(),this.copied.emit(I)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(P,1))};P()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(C=>C.destroy()),this._pending.clear(),this._destroyed=!0}}return m.\u0275fac=function(C){return new(C||m)(e.Y36(l),e.Y36(e.R0b),e.Y36(r,8))},m.\u0275dir=e.lG2({type:m,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(C,n){1&C&&e.NdJ("click",function(){return n.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),m})(),E=(()=>{class m{}return m.\u0275fac=function(C){return new(C||m)},m.\u0275mod=e.oAB({type:m}),m.\u0275inj=e.cJS({}),m})()},45903:(St,be,s)=>{"use strict";s.d(be,{Eq:()=>r,HM:()=>c,Ig:()=>e,du:()=>m,fI:()=>E,su:()=>d,t6:()=>l});var t=s(73991);function e(v){return null!=v&&"false"!=`${v}`}function d(v,C=0){return l(v)?Number(v):C}function l(v){return!isNaN(parseFloat(v))&&!isNaN(Number(v))}function r(v){return Array.isArray(v)?v:[v]}function c(v){return null==v?"":"string"==typeof v?v:`${v}px`}function E(v){return v instanceof t.SBq?v.nativeElement:v}function m(v,C=/\s+/){const n=[];if(null!=v){const i=Array.isArray(v)?v:`${v}`.split(C);for(const P of i){const I=`${P}`.trim();I&&n.push(I)}}return n}},71106:(St,be,s)=>{"use strict";s.d(be,{A8:()=>n,Ov:()=>v,Z9:()=>r,eX:()=>m,k:()=>i,o2:()=>l,yy:()=>E});var t=s(10166),e=s(68264),d=s(73991);class l{}function r(P){return P&&"function"==typeof P.connect&&!(P instanceof t.c)}class E{applyChanges(I,q,D,M,T){I.forEachOperation((F,le,V)=>{let de,ye;if(null==F.previousIndex){const Ee=D(F,le,V);de=q.createEmbeddedView(Ee.templateRef,Ee.context,Ee.index),ye=1}else null==V?(q.remove(le),ye=3):(de=q.get(le),q.move(de,V),ye=2);T&&T({context:de?.context,operation:ye,record:F})})}detach(){}}class m{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(I,q,D,M,T){I.forEachOperation((F,le,V)=>{let de,ye;null==F.previousIndex?(de=this._insertView(()=>D(F,le,V),V,q,M(F)),ye=de?1:0):null==V?(this._detachAndCacheView(le,q),ye=3):(de=this._moveView(le,V,q,M(F)),ye=2),T&&T({context:de?.context,operation:ye,record:F})})}detach(){for(const I of this._viewCache)I.destroy();this._viewCache=[]}_insertView(I,q,D,M){const T=this._insertViewFromCache(q,D);if(T)return void(T.context.$implicit=M);const F=I();return D.createEmbeddedView(F.templateRef,F.context,F.index)}_detachAndCacheView(I,q){const D=q.detach(I);this._maybeCacheView(D,q)}_moveView(I,q,D,M){const T=D.get(I);return D.move(T,q),T.context.$implicit=M,T}_maybeCacheView(I,q){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(I);else{const D=q.indexOf(I);-1===D?I.destroy():q.remove(D)}}_insertViewFromCache(I,q){const D=this._viewCache.pop();return D&&q.insert(D,I),D||null}}class v{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(I=!1,q,D=!0,M){this._multiple=I,this._emitChanges=D,this.compareWith=M,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new e.x,q&&q.length&&(I?q.forEach(T=>this._markSelected(T)):this._markSelected(q[0]),this._selectedToEmit.length=0)}select(...I){this._verifyValueAssignment(I),I.forEach(D=>this._markSelected(D));const q=this._hasQueuedChanges();return this._emitChangeEvent(),q}deselect(...I){this._verifyValueAssignment(I),I.forEach(D=>this._unmarkSelected(D));const q=this._hasQueuedChanges();return this._emitChangeEvent(),q}setSelection(...I){this._verifyValueAssignment(I);const q=this.selected,D=new Set(I);I.forEach(T=>this._markSelected(T)),q.filter(T=>!D.has(T)).forEach(T=>this._unmarkSelected(T));const M=this._hasQueuedChanges();return this._emitChangeEvent(),M}toggle(I){return this.isSelected(I)?this.deselect(I):this.select(I)}clear(I=!0){this._unmarkAll();const q=this._hasQueuedChanges();return I&&this._emitChangeEvent(),q}isSelected(I){return this._selection.has(this._getConcreteValue(I))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(I){this._multiple&&this.selected&&this._selected.sort(I)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(I){I=this._getConcreteValue(I),this.isSelected(I)||(this._multiple||this._unmarkAll(),this.isSelected(I)||this._selection.add(I),this._emitChanges&&this._selectedToEmit.push(I))}_unmarkSelected(I){I=this._getConcreteValue(I),this.isSelected(I)&&(this._selection.delete(I),this._emitChanges&&this._deselectedToEmit.push(I))}_unmarkAll(){this.isEmpty()||this._selection.forEach(I=>this._unmarkSelected(I))}_verifyValueAssignment(I){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(I){if(this.compareWith){for(let q of this._selection)if(this.compareWith(I,q))return q;return I}return I}}let n=(()=>{class P{constructor(){this._listeners=[]}notify(q,D){for(let M of this._listeners)M(q,D)}listen(q){return this._listeners.push(q),()=>{this._listeners=this._listeners.filter(D=>q!==D)}}ngOnDestroy(){this._listeners=[]}}return P.\u0275fac=function(q){return new(q||P)},P.\u0275prov=d.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})();const i=new d.OlP("_ViewRepeater")},74467:(St,be,s)=>{"use strict";s.d(be,{LL:()=>D,Su:()=>ge,Vq:()=>Ee,ib:()=>I});var t=s(70232),e=s(58153),d=s(71329),l=s(27444),r=s(17774),c=s(73991),E=s(20849),m=s(68264),v=s(92588),C=s(95195),n=s(88793),i=s(41743);function P(ue,ee){}class I{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let D=(()=>{class ue extends l.en{constructor(se,W,L,he,_e,Z,Te,w){super(),this._elementRef=se,this._focusTrapFactory=W,this._config=he,this._interactivityChecker=_e,this._ngZone=Z,this._overlayRef=Te,this._focusMonitor=w,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=k=>{this._portalOutlet.hasAttached();const x=this._portalOutlet.attachDomPortal(k);return this._contentAttached(),x},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=L}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(se){this._portalOutlet.hasAttached();const W=this._portalOutlet.attachComponentPortal(se);return this._contentAttached(),W}attachTemplatePortal(se){this._portalOutlet.hasAttached();const W=this._portalOutlet.attachTemplatePortal(se);return this._contentAttached(),W}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(se,W){this._interactivityChecker.isFocusable(se)||(se.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const L=()=>{se.removeEventListener("blur",L),se.removeEventListener("mousedown",L),se.removeAttribute("tabindex")};se.addEventListener("blur",L),se.addEventListener("mousedown",L)})),se.focus(W)}_focusByCssSelector(se,W){let L=this._elementRef.nativeElement.querySelector(se);L&&this._forceFocus(L,W)}_trapFocus(){const se=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||se.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(W=>{W||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const se=this._config.restoreFocus;let W=null;if("string"==typeof se?W=this._document.querySelector(se):"boolean"==typeof se?W=se?this._elementFocusedBeforeDialogWasOpened:null:se&&(W=se),this._config.restoreFocus&&W&&"function"==typeof W.focus){const L=(0,d.ht)(),he=this._elementRef.nativeElement;(!L||L===this._document.body||L===he||he.contains(L))&&(this._focusMonitor?(this._focusMonitor.focusVia(W,this._closeInteractionType),this._closeInteractionType=null):W.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const se=this._elementRef.nativeElement,W=(0,d.ht)();return se===W||se.contains(W)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,d.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return ue.\u0275fac=function(se){return new(se||ue)(c.Y36(c.SBq),c.Y36(t.qV),c.Y36(r.K0,8),c.Y36(I),c.Y36(t.ic),c.Y36(c.R0b),c.Y36(e.Iu),c.Y36(t.tE))},ue.\u0275cmp=c.Xpm({type:ue,selectors:[["cdk-dialog-container"]],viewQuery:function(se,W){if(1&se&&c.Gf(l.Pl,7),2&se){let L;c.iGM(L=c.CRH())&&(W._portalOutlet=L.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(se,W){2&se&&c.uIk("id",W._config.id||null)("role",W._config.role)("aria-modal",W._config.ariaModal)("aria-labelledby",W._config.ariaLabel?null:W._ariaLabelledBy)("aria-label",W._config.ariaLabel)("aria-describedby",W._config.ariaDescribedBy||null)},features:[c.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(se,W){1&se&&c.YNc(0,P,0,0,"ng-template",0)},dependencies:[l.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),ue})();class M{constructor(ee,se){this.overlayRef=ee,this.config=se,this.closed=new m.x,this.disableClose=se.disableClose,this.backdropClick=ee.backdropClick(),this.keydownEvents=ee.keydownEvents(),this.outsidePointerEvents=ee.outsidePointerEvents(),this.id=se.id,this.keydownEvents.subscribe(W=>{W.keyCode===E.hY&&!this.disableClose&&!(0,E.Vb)(W)&&(W.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=ee.detachments().subscribe(()=>{!1!==se.closeOnOverlayDetachments&&this.close()})}close(ee,se){if(this.containerInstance){const W=this.closed;this.containerInstance._closeInteractionType=se?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),W.next(ee),W.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(ee="",se=""){return this.overlayRef.updateSize({width:ee,height:se}),this}addPanelClass(ee){return this.overlayRef.addPanelClass(ee),this}removePanelClass(ee){return this.overlayRef.removePanelClass(ee),this}}const T=new c.OlP("DialogScrollStrategy"),F=new c.OlP("DialogData"),le=new c.OlP("DefaultDialogConfig"),de={provide:T,deps:[e.aV],useFactory:function V(ue){return()=>ue.scrollStrategies.block()}};let ye=0,Ee=(()=>{class ue{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(se,W,L,he,_e,Z){this._overlay=se,this._injector=W,this._defaultOptions=L,this._parentDialog=he,this._overlayContainer=_e,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new m.x,this._afterOpenedAtThisLevel=new m.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,v.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,i.O)(void 0))),this._scrollStrategy=Z}open(se,W){(W={...this._defaultOptions||new I,...W}).id=W.id||"cdk-dialog-"+ye++,W.id&&this.getDialogById(W.id);const he=this._getOverlayConfig(W),_e=this._overlay.create(he),Z=new M(_e,W),Te=this._attachContainer(_e,Z,W);return Z.containerInstance=Te,this._attachDialogContent(se,Z,Te,W),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Z),Z.closed.subscribe(()=>this._removeOpenDialog(Z,!0)),this.afterOpened.next(Z),Z}closeAll(){Le(this.openDialogs,se=>se.close())}getDialogById(se){return this.openDialogs.find(W=>W.id===se)}ngOnDestroy(){Le(this._openDialogsAtThisLevel,se=>{!1===se.config.closeOnDestroy&&this._removeOpenDialog(se,!1)}),Le(this._openDialogsAtThisLevel,se=>se.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(se){const W=new e.X_({positionStrategy:se.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:se.scrollStrategy||this._scrollStrategy(),panelClass:se.panelClass,hasBackdrop:se.hasBackdrop,direction:se.direction,minWidth:se.minWidth,minHeight:se.minHeight,maxWidth:se.maxWidth,maxHeight:se.maxHeight,width:se.width,height:se.height,disposeOnNavigation:se.closeOnNavigation});return se.backdropClass&&(W.backdropClass=se.backdropClass),W}_attachContainer(se,W,L){const he=L.injector||L.viewContainerRef?.injector,_e=[{provide:I,useValue:L},{provide:M,useValue:W},{provide:e.Iu,useValue:se}];let Z;L.container?"function"==typeof L.container?Z=L.container:(Z=L.container.type,_e.push(...L.container.providers(L))):Z=D;const Te=new l.C5(Z,L.viewContainerRef,c.zs3.create({parent:he||this._injector,providers:_e}),L.componentFactoryResolver);return se.attach(Te).instance}_attachDialogContent(se,W,L,he){if(se instanceof c.Rgc){const _e=this._createInjector(he,W,L,void 0);let Z={$implicit:he.data,dialogRef:W};he.templateContext&&(Z={...Z,..."function"==typeof he.templateContext?he.templateContext():he.templateContext}),L.attachTemplatePortal(new l.UE(se,null,Z,_e))}else{const _e=this._createInjector(he,W,L,this._injector),Z=L.attachComponentPortal(new l.C5(se,he.viewContainerRef,_e,he.componentFactoryResolver));W.componentInstance=Z.instance}}_createInjector(se,W,L,he){const _e=se.injector||se.viewContainerRef?.injector,Z=[{provide:F,useValue:se.data},{provide:M,useValue:W}];return se.providers&&("function"==typeof se.providers?Z.push(...se.providers(W,se,L)):Z.push(...se.providers)),se.direction&&(!_e||!_e.get(n.Is,null,{optional:!0}))&&Z.push({provide:n.Is,useValue:{value:se.direction,change:(0,C.of)()}}),c.zs3.create({parent:_e||he,providers:Z})}_removeOpenDialog(se,W){const L=this.openDialogs.indexOf(se);L>-1&&(this.openDialogs.splice(L,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((he,_e)=>{he?_e.setAttribute("aria-hidden",he):_e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),W&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const se=this._overlayContainer.getContainerElement();if(se.parentElement){const W=se.parentElement.children;for(let L=W.length-1;L>-1;L--){const he=W[L];he!==se&&"SCRIPT"!==he.nodeName&&"STYLE"!==he.nodeName&&!he.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(he,he.getAttribute("aria-hidden")),he.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const se=this._parentDialog;return se?se._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return ue.\u0275fac=function(se){return new(se||ue)(c.LFG(e.aV),c.LFG(c.zs3),c.LFG(le,8),c.LFG(ue,12),c.LFG(e.Xj),c.LFG(T))},ue.\u0275prov=c.Yz7({token:ue,factory:ue.\u0275fac}),ue})();function Le(ue,ee){let se=ue.length;for(;se--;)ee(ue[se])}let ge=(()=>{class ue{}return ue.\u0275fac=function(se){return new(se||ue)},ue.\u0275mod=c.oAB({type:ue}),ue.\u0275inj=c.cJS({providers:[Ee,de],imports:[e.U8,l.eL,t.rt,l.eL]}),ue})()},20849:(St,be,s)=>{"use strict";s.d(be,{A:()=>z,JH:()=>le,JU:()=>c,K5:()=>r,Ku:()=>P,LH:()=>T,L_:()=>i,MW:()=>ct,Mf:()=>d,SV:()=>F,Sd:()=>D,VM:()=>I,Vb:()=>mn,Z:()=>ot,ZH:()=>e,aO:()=>Z,b2:()=>kr,hY:()=>n,jx:()=>E,oh:()=>M,uR:()=>q,xE:()=>Le,yY:()=>Ee,zL:()=>m});const e=8,d=9,r=13,c=16,E=17,m=18,n=27,i=32,P=33,I=34,q=35,D=36,M=37,T=38,F=39,le=40,Ee=46,Le=48,Z=57,z=65,ot=90,ct=91,kr=224;function mn(un,...ri){return ri.length?ri.some(Sr=>un[Sr]):un.altKey||un.shiftKey||un.ctrlKey||un.metaKey}},75999:(St,be,s)=>{"use strict";s.d(be,{Yg:()=>le,u3:()=>de});var t=s(73991),e=s(45903),d=s(68264),l=s(70754),r=s(71785),c=s(44070),E=s(32653),m=s(94276),v=s(59435),C=s(87580),n=s(41743),i=s(30003),P=s(71329);const q=new Set;let D,M=(()=>{class ye{constructor(Le){this._platform=Le,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):F}matchMedia(Le){return(this._platform.WEBKIT||this._platform.BLINK)&&function T(ye){if(!q.has(ye))try{D||(D=document.createElement("style"),D.setAttribute("type","text/css"),document.head.appendChild(D)),D.sheet&&(D.sheet.insertRule(`@media ${ye} {body{ }}`,0),q.add(ye))}catch(Ee){console.error(Ee)}}(Le),this._matchMedia(Le)}}return ye.\u0275fac=function(Le){return new(Le||ye)(t.LFG(P.t4))},ye.\u0275prov=t.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();function F(ye){return{matches:"all"===ye||""===ye,media:ye,addListener:()=>{},removeListener:()=>{}}}let le=(()=>{class ye{constructor(Le,ge){this._mediaMatcher=Le,this._zone=ge,this._queries=new Map,this._destroySubject=new d.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Le){return V((0,e.Eq)(Le)).some(ue=>this._registerQuery(ue).mql.matches)}observe(Le){const ue=V((0,e.Eq)(Le)).map(se=>this._registerQuery(se).observable);let ee=(0,l.a)(ue);return ee=(0,r.z)(ee.pipe((0,E.q)(1)),ee.pipe((0,m.T)(1),(0,v.b)(0))),ee.pipe((0,C.U)(se=>{const W={matches:!1,breakpoints:{}};return se.forEach(({matches:L,query:he})=>{W.matches=W.matches||L,W.breakpoints[he]=L}),W}))}_registerQuery(Le){if(this._queries.has(Le))return this._queries.get(Le);const ge=this._mediaMatcher.matchMedia(Le),ee={observable:new c.y(se=>{const W=L=>this._zone.run(()=>se.next(L));return ge.addListener(W),()=>{ge.removeListener(W)}}).pipe((0,n.O)(ge),(0,C.U)(({matches:se})=>({query:Le,matches:se})),(0,i.R)(this._destroySubject)),mql:ge};return this._queries.set(Le,ee),ee}}return ye.\u0275fac=function(Le){return new(Le||ye)(t.LFG(M),t.LFG(t.R0b))},ye.\u0275prov=t.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();function V(ye){return ye.map(Ee=>Ee.split(",")).reduce((Ee,Le)=>Ee.concat(Le)).map(Ee=>Ee.trim())}const de={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},5547:(St,be,s)=>{"use strict";s.d(be,{Q8:()=>v,wD:()=>m});var t=s(45903),e=s(73991),d=s(44070),l=s(68264),r=s(59435);let c=(()=>{class C{create(i){return typeof MutationObserver>"u"?null:new MutationObserver(i)}}return C.\u0275fac=function(i){return new(i||C)},C.\u0275prov=e.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})(),E=(()=>{class C{constructor(i){this._mutationObserverFactory=i,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((i,P)=>this._cleanupObserver(P))}observe(i){const P=(0,t.fI)(i);return new d.y(I=>{const D=this._observeElement(P).subscribe(I);return()=>{D.unsubscribe(),this._unobserveElement(P)}})}_observeElement(i){if(this._observedElements.has(i))this._observedElements.get(i).count++;else{const P=new l.x,I=this._mutationObserverFactory.create(q=>P.next(q));I&&I.observe(i,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(i,{observer:I,stream:P,count:1})}return this._observedElements.get(i).stream}_unobserveElement(i){this._observedElements.has(i)&&(this._observedElements.get(i).count--,this._observedElements.get(i).count||this._cleanupObserver(i))}_cleanupObserver(i){if(this._observedElements.has(i)){const{observer:P,stream:I}=this._observedElements.get(i);P&&P.disconnect(),I.complete(),this._observedElements.delete(i)}}}return C.\u0275fac=function(i){return new(i||C)(e.LFG(c))},C.\u0275prov=e.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})(),m=(()=>{class C{get disabled(){return this._disabled}set disabled(i){this._disabled=(0,t.Ig)(i),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(i){this._debounce=(0,t.su)(i),this._subscribe()}constructor(i,P,I){this._contentObserver=i,this._elementRef=P,this._ngZone=I,this.event=new e.vpe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const i=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?i.pipe((0,r.b)(this.debounce)):i).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return C.\u0275fac=function(i){return new(i||C)(e.Y36(E),e.Y36(e.SBq),e.Y36(e.R0b))},C.\u0275dir=e.lG2({type:C,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),C})(),v=(()=>{class C{}return C.\u0275fac=function(i){return new(i||C)},C.\u0275mod=e.oAB({type:C}),C.\u0275inj=e.cJS({providers:[c]}),C})()},58153:(St,be,s)=>{"use strict";s.d(be,{Iu:()=>Te,U8:()=>S,X_:()=>Le,Xj:()=>Z,_G:()=>x,aV:()=>Se,pI:()=>Et,xu:()=>Tt});var t=s(9620),e=s(17774),d=s(73991),l=s(45903),r=s(71329),c=s(9754),E=s(32653),m=s(30003),v=s(61458),C=s(88793),n=s(27444),i=s(68264),P=s(22292),I=s(50805),q=s(20849);const D=(0,r.Mq)();class M{constructor(B,re){this._viewportRuler=B,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=re}attach(){}enable(){if(this._canBeEnabled()){const B=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=B.style.left||"",this._previousHTMLStyles.top=B.style.top||"",B.style.left=(0,l.HM)(-this._previousScrollPosition.left),B.style.top=(0,l.HM)(-this._previousScrollPosition.top),B.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const B=this._document.documentElement,fe=B.style,qe=this._document.body.style,$e=fe.scrollBehavior||"",et=qe.scrollBehavior||"";this._isEnabled=!1,fe.left=this._previousHTMLStyles.left,fe.top=this._previousHTMLStyles.top,B.classList.remove("cdk-global-scrollblock"),D&&(fe.scrollBehavior=qe.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),D&&(fe.scrollBehavior=$e,qe.scrollBehavior=et)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const re=this._document.body,fe=this._viewportRuler.getViewportSize();return re.scrollHeight>fe.height||re.scrollWidth>fe.width}}class F{constructor(B,re,fe,qe){this._scrollDispatcher=B,this._ngZone=re,this._viewportRuler=fe,this._config=qe,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(B){this._overlayRef=B}enable(){if(this._scrollSubscription)return;const B=this._scrollDispatcher.scrolled(0).pipe((0,c.h)(re=>!re||!this._overlayRef.overlayElement.contains(re.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=B.subscribe(()=>{const re=this._viewportRuler.getViewportScrollPosition().top;Math.abs(re-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=B.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class le{enable(){}disable(){}attach(){}}function V(Q,B){return B.some(re=>Q.bottom<re.top||Q.top>re.bottom||Q.right<re.left||Q.left>re.right)}function de(Q,B){return B.some(re=>Q.top<re.top||Q.bottom>re.bottom||Q.left<re.left||Q.right>re.right)}class ye{constructor(B,re,fe,qe){this._scrollDispatcher=B,this._viewportRuler=re,this._ngZone=fe,this._config=qe,this._scrollSubscription=null}attach(B){this._overlayRef=B}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const re=this._overlayRef.overlayElement.getBoundingClientRect(),{width:fe,height:qe}=this._viewportRuler.getViewportSize();V(re,[{width:fe,height:qe,bottom:qe,right:fe,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Ee=(()=>{class Q{constructor(re,fe,qe,$e){this._scrollDispatcher=re,this._viewportRuler=fe,this._ngZone=qe,this.noop=()=>new le,this.close=et=>new F(this._scrollDispatcher,this._ngZone,this._viewportRuler,et),this.block=()=>new M(this._viewportRuler,this._document),this.reposition=et=>new ye(this._scrollDispatcher,this._viewportRuler,this._ngZone,et),this._document=$e}}return Q.\u0275fac=function(re){return new(re||Q)(d.LFG(t.mF),d.LFG(t.rL),d.LFG(d.R0b),d.LFG(e.K0))},Q.\u0275prov=d.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})();class Le{constructor(B){if(this.scrollStrategy=new le,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,B){const re=Object.keys(B);for(const fe of re)void 0!==B[fe]&&(this[fe]=B[fe])}}}class ee{constructor(B,re){this.connectionPair=B,this.scrollableViewProperties=re}}let L=(()=>{class Q{constructor(re){this._attachedOverlays=[],this._document=re}ngOnDestroy(){this.detach()}add(re){this.remove(re),this._attachedOverlays.push(re)}remove(re){const fe=this._attachedOverlays.indexOf(re);fe>-1&&this._attachedOverlays.splice(fe,1),0===this._attachedOverlays.length&&this.detach()}}return Q.\u0275fac=function(re){return new(re||Q)(d.LFG(e.K0))},Q.\u0275prov=d.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})(),he=(()=>{class Q extends L{constructor(re,fe){super(re),this._ngZone=fe,this._keydownListener=qe=>{const $e=this._attachedOverlays;for(let et=$e.length-1;et>-1;et--)if($e[et]._keydownEvents.observers.length>0){const ot=$e[et]._keydownEvents;this._ngZone?this._ngZone.run(()=>ot.next(qe)):ot.next(qe);break}}}add(re){super.add(re),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Q.\u0275fac=function(re){return new(re||Q)(d.LFG(e.K0),d.LFG(d.R0b,8))},Q.\u0275prov=d.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})(),_e=(()=>{class Q extends L{constructor(re,fe,qe){super(re),this._platform=fe,this._ngZone=qe,this._cursorStyleIsSet=!1,this._pointerDownListener=$e=>{this._pointerDownEventTarget=(0,r.sA)($e)},this._clickListener=$e=>{const et=(0,r.sA)($e),ot="click"===$e.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:et;this._pointerDownEventTarget=null;const ct=this._attachedOverlays.slice();for(let pt=ct.length-1;pt>-1;pt--){const $t=ct[pt];if($t._outsidePointerEvents.observers.length<1||!$t.hasAttached())continue;if($t.overlayElement.contains(et)||$t.overlayElement.contains(ot))break;const It=$t._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>It.next($e)):It.next($e)}}}add(re){if(super.add(re),!this._isAttached){const fe=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(fe)):this._addEventListeners(fe),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=fe.style.cursor,fe.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const re=this._document.body;re.removeEventListener("pointerdown",this._pointerDownListener,!0),re.removeEventListener("click",this._clickListener,!0),re.removeEventListener("auxclick",this._clickListener,!0),re.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(re.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(re){re.addEventListener("pointerdown",this._pointerDownListener,!0),re.addEventListener("click",this._clickListener,!0),re.addEventListener("auxclick",this._clickListener,!0),re.addEventListener("contextmenu",this._clickListener,!0)}}return Q.\u0275fac=function(re){return new(re||Q)(d.LFG(e.K0),d.LFG(r.t4),d.LFG(d.R0b,8))},Q.\u0275prov=d.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})(),Z=(()=>{class Q{constructor(re,fe){this._platform=fe,this._document=re}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const re="cdk-overlay-container";if(this._platform.isBrowser||(0,r.Oy)()){const qe=this._document.querySelectorAll(`.${re}[platform="server"], .${re}[platform="test"]`);for(let $e=0;$e<qe.length;$e++)qe[$e].remove()}const fe=this._document.createElement("div");fe.classList.add(re),(0,r.Oy)()?fe.setAttribute("platform","test"):this._platform.isBrowser||fe.setAttribute("platform","server"),this._document.body.appendChild(fe),this._containerElement=fe}}return Q.\u0275fac=function(re){return new(re||Q)(d.LFG(e.K0),d.LFG(r.t4))},Q.\u0275prov=d.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})();class Te{constructor(B,re,fe,qe,$e,et,ot,ct,pt,$t=!1){this._portalOutlet=B,this._host=re,this._pane=fe,this._config=qe,this._ngZone=$e,this._keyboardDispatcher=et,this._document=ot,this._location=ct,this._outsideClickDispatcher=pt,this._animationsDisabled=$t,this._backdropElement=null,this._backdropClick=new i.x,this._attachments=new i.x,this._detachments=new i.x,this._locationChanges=P.w0.EMPTY,this._backdropClickHandler=It=>this._backdropClick.next(It),this._backdropTransitionendHandler=It=>{this._disposeBackdrop(It.target)},this._keydownEvents=new i.x,this._outsidePointerEvents=new i.x,qe.scrollStrategy&&(this._scrollStrategy=qe.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=qe.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(B){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const re=this._portalOutlet.attach(B);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,E.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof re?.onDestroy&&re.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),re}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const B=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),B}dispose(){const B=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,B&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(B){B!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=B,this.hasAttached()&&(B.attach(this),this.updatePosition()))}updateSize(B){this._config={...this._config,...B},this._updateElementSize()}setDirection(B){this._config={...this._config,direction:B},this._updateElementDirection()}addPanelClass(B){this._pane&&this._toggleClasses(this._pane,B,!0)}removePanelClass(B){this._pane&&this._toggleClasses(this._pane,B,!1)}getDirection(){const B=this._config.direction;return B?"string"==typeof B?B:B.value:"ltr"}updateScrollStrategy(B){B!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=B,this.hasAttached()&&(B.attach(this),B.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const B=this._pane.style;B.width=(0,l.HM)(this._config.width),B.height=(0,l.HM)(this._config.height),B.minWidth=(0,l.HM)(this._config.minWidth),B.minHeight=(0,l.HM)(this._config.minHeight),B.maxWidth=(0,l.HM)(this._config.maxWidth),B.maxHeight=(0,l.HM)(this._config.maxHeight)}_togglePointerEvents(B){this._pane.style.pointerEvents=B?"":"none"}_attachBackdrop(){const B="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(B)})}):this._backdropElement.classList.add(B)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const B=this._backdropElement;if(B){if(this._animationsDisabled)return void this._disposeBackdrop(B);B.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{B.addEventListener("transitionend",this._backdropTransitionendHandler)}),B.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(B)},500))}}_toggleClasses(B,re,fe){const qe=(0,l.Eq)(re||[]).filter($e=>!!$e);qe.length&&(fe?B.classList.add(...qe):B.classList.remove(...qe))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const B=this._ngZone.onStable.pipe((0,m.R)((0,I.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),B.unsubscribe())})})}_disposeScrollStrategy(){const B=this._scrollStrategy;B&&(B.disable(),B.detach&&B.detach())}_disposeBackdrop(B){B&&(B.removeEventListener("click",this._backdropClickHandler),B.removeEventListener("transitionend",this._backdropTransitionendHandler),B.remove(),this._backdropElement===B&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const w="cdk-overlay-connected-position-bounding-box",k=/([A-Za-z%]+)$/;class x{get positions(){return this._preferredPositions}constructor(B,re,fe,qe,$e){this._viewportRuler=re,this._document=fe,this._platform=qe,this._overlayContainer=$e,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new i.x,this._resizeSubscription=P.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(B)}attach(B){this._validatePositions(),B.hostElement.classList.add(w),this._overlayRef=B,this._boundingBox=B.hostElement,this._pane=B.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const B=this._originRect,re=this._overlayRect,fe=this._viewportRect,qe=this._containerRect,$e=[];let et;for(let ot of this._preferredPositions){let ct=this._getOriginPoint(B,qe,ot),pt=this._getOverlayPoint(ct,re,ot),$t=this._getOverlayFit(pt,re,fe,ot);if($t.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ot,ct);this._canFitWithFlexibleDimensions($t,pt,fe)?$e.push({position:ot,origin:ct,overlayRect:re,boundingBoxRect:this._calculateBoundingBoxRect(ct,ot)}):(!et||et.overlayFit.visibleArea<$t.visibleArea)&&(et={overlayFit:$t,overlayPoint:pt,originPoint:ct,position:ot,overlayRect:re})}if($e.length){let ot=null,ct=-1;for(const pt of $e){const $t=pt.boundingBoxRect.width*pt.boundingBoxRect.height*(pt.position.weight||1);$t>ct&&(ct=$t,ot=pt)}return this._isPushed=!1,void this._applyPosition(ot.position,ot.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(et.position,et.originPoint);this._applyPosition(et.position,et.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&z(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(w),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const B=this._lastPosition;if(B){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const re=this._getOriginPoint(this._originRect,this._containerRect,B);this._applyPosition(B,re)}else this.apply()}withScrollableContainers(B){return this._scrollables=B,this}withPositions(B){return this._preferredPositions=B,-1===B.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(B){return this._viewportMargin=B,this}withFlexibleDimensions(B=!0){return this._hasFlexibleDimensions=B,this}withGrowAfterOpen(B=!0){return this._growAfterOpen=B,this}withPush(B=!0){return this._canPush=B,this}withLockedPosition(B=!0){return this._positionLocked=B,this}setOrigin(B){return this._origin=B,this}withDefaultOffsetX(B){return this._offsetX=B,this}withDefaultOffsetY(B){return this._offsetY=B,this}withTransformOriginOn(B){return this._transformOriginSelector=B,this}_getOriginPoint(B,re,fe){let qe,$e;if("center"==fe.originX)qe=B.left+B.width/2;else{const et=this._isRtl()?B.right:B.left,ot=this._isRtl()?B.left:B.right;qe="start"==fe.originX?et:ot}return re.left<0&&(qe-=re.left),$e="center"==fe.originY?B.top+B.height/2:"top"==fe.originY?B.top:B.bottom,re.top<0&&($e-=re.top),{x:qe,y:$e}}_getOverlayPoint(B,re,fe){let qe,$e;return qe="center"==fe.overlayX?-re.width/2:"start"===fe.overlayX?this._isRtl()?-re.width:0:this._isRtl()?0:-re.width,$e="center"==fe.overlayY?-re.height/2:"top"==fe.overlayY?0:-re.height,{x:B.x+qe,y:B.y+$e}}_getOverlayFit(B,re,fe,qe){const $e=Ne(re);let{x:et,y:ot}=B,ct=this._getOffset(qe,"x"),pt=this._getOffset(qe,"y");ct&&(et+=ct),pt&&(ot+=pt);let fr=0-ot,yt=ot+$e.height-fe.height,dr=this._subtractOverflows($e.width,0-et,et+$e.width-fe.width),bt=this._subtractOverflows($e.height,fr,yt),ar=dr*bt;return{visibleArea:ar,isCompletelyWithinViewport:$e.width*$e.height===ar,fitsInViewportVertically:bt===$e.height,fitsInViewportHorizontally:dr==$e.width}}_canFitWithFlexibleDimensions(B,re,fe){if(this._hasFlexibleDimensions){const qe=fe.bottom-re.y,$e=fe.right-re.x,et=j(this._overlayRef.getConfig().minHeight),ot=j(this._overlayRef.getConfig().minWidth);return(B.fitsInViewportVertically||null!=et&&et<=qe)&&(B.fitsInViewportHorizontally||null!=ot&&ot<=$e)}return!1}_pushOverlayOnScreen(B,re,fe){if(this._previousPushAmount&&this._positionLocked)return{x:B.x+this._previousPushAmount.x,y:B.y+this._previousPushAmount.y};const qe=Ne(re),$e=this._viewportRect,et=Math.max(B.x+qe.width-$e.width,0),ot=Math.max(B.y+qe.height-$e.height,0),ct=Math.max($e.top-fe.top-B.y,0),pt=Math.max($e.left-fe.left-B.x,0);let $t=0,It=0;return $t=qe.width<=$e.width?pt||-et:B.x<this._viewportMargin?$e.left-fe.left-B.x:0,It=qe.height<=$e.height?ct||-ot:B.y<this._viewportMargin?$e.top-fe.top-B.y:0,this._previousPushAmount={x:$t,y:It},{x:B.x+$t,y:B.y+It}}_applyPosition(B,re){if(this._setTransformOrigin(B),this._setOverlayElementStyles(re,B),this._setBoundingBoxStyles(re,B),B.panelClass&&this._addPanelClasses(B.panelClass),this._lastPosition=B,this._positionChanges.observers.length){const fe=this._getScrollVisibility(),qe=new ee(B,fe);this._positionChanges.next(qe)}this._isInitialRender=!1}_setTransformOrigin(B){if(!this._transformOriginSelector)return;const re=this._boundingBox.querySelectorAll(this._transformOriginSelector);let fe,qe=B.overlayY;fe="center"===B.overlayX?"center":this._isRtl()?"start"===B.overlayX?"right":"left":"start"===B.overlayX?"left":"right";for(let $e=0;$e<re.length;$e++)re[$e].style.transformOrigin=`${fe} ${qe}`}_calculateBoundingBoxRect(B,re){const fe=this._viewportRect,qe=this._isRtl();let $e,et,ot,$t,It,fr;if("top"===re.overlayY)et=B.y,$e=fe.height-et+this._viewportMargin;else if("bottom"===re.overlayY)ot=fe.height-B.y+2*this._viewportMargin,$e=fe.height-ot+this._viewportMargin;else{const yt=Math.min(fe.bottom-B.y+fe.top,B.y),dr=this._lastBoundingBoxSize.height;$e=2*yt,et=B.y-yt,$e>dr&&!this._isInitialRender&&!this._growAfterOpen&&(et=B.y-dr/2)}if("end"===re.overlayX&&!qe||"start"===re.overlayX&&qe)fr=fe.width-B.x+this._viewportMargin,$t=B.x-this._viewportMargin;else if("start"===re.overlayX&&!qe||"end"===re.overlayX&&qe)It=B.x,$t=fe.right-B.x;else{const yt=Math.min(fe.right-B.x+fe.left,B.x),dr=this._lastBoundingBoxSize.width;$t=2*yt,It=B.x-yt,$t>dr&&!this._isInitialRender&&!this._growAfterOpen&&(It=B.x-dr/2)}return{top:et,left:It,bottom:ot,right:fr,width:$t,height:$e}}_setBoundingBoxStyles(B,re){const fe=this._calculateBoundingBoxRect(B,re);!this._isInitialRender&&!this._growAfterOpen&&(fe.height=Math.min(fe.height,this._lastBoundingBoxSize.height),fe.width=Math.min(fe.width,this._lastBoundingBoxSize.width));const qe={};if(this._hasExactPosition())qe.top=qe.left="0",qe.bottom=qe.right=qe.maxHeight=qe.maxWidth="",qe.width=qe.height="100%";else{const $e=this._overlayRef.getConfig().maxHeight,et=this._overlayRef.getConfig().maxWidth;qe.height=(0,l.HM)(fe.height),qe.top=(0,l.HM)(fe.top),qe.bottom=(0,l.HM)(fe.bottom),qe.width=(0,l.HM)(fe.width),qe.left=(0,l.HM)(fe.left),qe.right=(0,l.HM)(fe.right),qe.alignItems="center"===re.overlayX?"center":"end"===re.overlayX?"flex-end":"flex-start",qe.justifyContent="center"===re.overlayY?"center":"bottom"===re.overlayY?"flex-end":"flex-start",$e&&(qe.maxHeight=(0,l.HM)($e)),et&&(qe.maxWidth=(0,l.HM)(et))}this._lastBoundingBoxSize=fe,z(this._boundingBox.style,qe)}_resetBoundingBoxStyles(){z(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){z(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(B,re){const fe={},qe=this._hasExactPosition(),$e=this._hasFlexibleDimensions,et=this._overlayRef.getConfig();if(qe){const $t=this._viewportRuler.getViewportScrollPosition();z(fe,this._getExactOverlayY(re,B,$t)),z(fe,this._getExactOverlayX(re,B,$t))}else fe.position="static";let ot="",ct=this._getOffset(re,"x"),pt=this._getOffset(re,"y");ct&&(ot+=`translateX(${ct}px) `),pt&&(ot+=`translateY(${pt}px)`),fe.transform=ot.trim(),et.maxHeight&&(qe?fe.maxHeight=(0,l.HM)(et.maxHeight):$e&&(fe.maxHeight="")),et.maxWidth&&(qe?fe.maxWidth=(0,l.HM)(et.maxWidth):$e&&(fe.maxWidth="")),z(this._pane.style,fe)}_getExactOverlayY(B,re,fe){let qe={top:"",bottom:""},$e=this._getOverlayPoint(re,this._overlayRect,B);return this._isPushed&&($e=this._pushOverlayOnScreen($e,this._overlayRect,fe)),"bottom"===B.overlayY?qe.bottom=this._document.documentElement.clientHeight-($e.y+this._overlayRect.height)+"px":qe.top=(0,l.HM)($e.y),qe}_getExactOverlayX(B,re,fe){let et,qe={left:"",right:""},$e=this._getOverlayPoint(re,this._overlayRect,B);return this._isPushed&&($e=this._pushOverlayOnScreen($e,this._overlayRect,fe)),et=this._isRtl()?"end"===B.overlayX?"left":"right":"end"===B.overlayX?"right":"left","right"===et?qe.right=this._document.documentElement.clientWidth-($e.x+this._overlayRect.width)+"px":qe.left=(0,l.HM)($e.x),qe}_getScrollVisibility(){const B=this._getOriginRect(),re=this._pane.getBoundingClientRect(),fe=this._scrollables.map(qe=>qe.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:de(B,fe),isOriginOutsideView:V(B,fe),isOverlayClipped:de(re,fe),isOverlayOutsideView:V(re,fe)}}_subtractOverflows(B,...re){return re.reduce((fe,qe)=>fe-Math.max(qe,0),B)}_getNarrowedViewportRect(){const B=this._document.documentElement.clientWidth,re=this._document.documentElement.clientHeight,fe=this._viewportRuler.getViewportScrollPosition();return{top:fe.top+this._viewportMargin,left:fe.left+this._viewportMargin,right:fe.left+B-this._viewportMargin,bottom:fe.top+re-this._viewportMargin,width:B-2*this._viewportMargin,height:re-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(B,re){return"x"===re?null==B.offsetX?this._offsetX:B.offsetX:null==B.offsetY?this._offsetY:B.offsetY}_validatePositions(){}_addPanelClasses(B){this._pane&&(0,l.Eq)(B).forEach(re=>{""!==re&&-1===this._appliedPanelClasses.indexOf(re)&&(this._appliedPanelClasses.push(re),this._pane.classList.add(re))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(B=>{this._pane.classList.remove(B)}),this._appliedPanelClasses=[])}_getOriginRect(){const B=this._origin;if(B instanceof d.SBq)return B.nativeElement.getBoundingClientRect();if(B instanceof Element)return B.getBoundingClientRect();const re=B.width||0,fe=B.height||0;return{top:B.y,bottom:B.y+fe,left:B.x,right:B.x+re,height:fe,width:re}}}function z(Q,B){for(let re in B)B.hasOwnProperty(re)&&(Q[re]=B[re]);return Q}function j(Q){if("number"!=typeof Q&&null!=Q){const[B,re]=Q.split(k);return re&&"px"!==re?null:parseFloat(B)}return Q||null}function Ne(Q){return{top:Math.floor(Q.top),right:Math.floor(Q.right),bottom:Math.floor(Q.bottom),left:Math.floor(Q.left),width:Math.floor(Q.width),height:Math.floor(Q.height)}}const ze="cdk-global-overlay-wrapper";class we{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(B){const re=B.getConfig();this._overlayRef=B,this._width&&!re.width&&B.updateSize({width:this._width}),this._height&&!re.height&&B.updateSize({height:this._height}),B.hostElement.classList.add(ze),this._isDisposed=!1}top(B=""){return this._bottomOffset="",this._topOffset=B,this._alignItems="flex-start",this}left(B=""){return this._xOffset=B,this._xPosition="left",this}bottom(B=""){return this._topOffset="",this._bottomOffset=B,this._alignItems="flex-end",this}right(B=""){return this._xOffset=B,this._xPosition="right",this}start(B=""){return this._xOffset=B,this._xPosition="start",this}end(B=""){return this._xOffset=B,this._xPosition="end",this}width(B=""){return this._overlayRef?this._overlayRef.updateSize({width:B}):this._width=B,this}height(B=""){return this._overlayRef?this._overlayRef.updateSize({height:B}):this._height=B,this}centerHorizontally(B=""){return this.left(B),this._xPosition="center",this}centerVertically(B=""){return this.top(B),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const B=this._overlayRef.overlayElement.style,re=this._overlayRef.hostElement.style,fe=this._overlayRef.getConfig(),{width:qe,height:$e,maxWidth:et,maxHeight:ot}=fe,ct=!("100%"!==qe&&"100vw"!==qe||et&&"100%"!==et&&"100vw"!==et),pt=!("100%"!==$e&&"100vh"!==$e||ot&&"100%"!==ot&&"100vh"!==ot),$t=this._xPosition,It=this._xOffset,fr="rtl"===this._overlayRef.getConfig().direction;let yt="",dr="",bt="";ct?bt="flex-start":"center"===$t?(bt="center",fr?dr=It:yt=It):fr?"left"===$t||"end"===$t?(bt="flex-end",yt=It):("right"===$t||"start"===$t)&&(bt="flex-start",dr=It):"left"===$t||"start"===$t?(bt="flex-start",yt=It):("right"===$t||"end"===$t)&&(bt="flex-end",dr=It),B.position=this._cssPosition,B.marginLeft=ct?"0":yt,B.marginTop=pt?"0":this._topOffset,B.marginBottom=this._bottomOffset,B.marginRight=ct?"0":dr,re.justifyContent=bt,re.alignItems=pt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const B=this._overlayRef.overlayElement.style,re=this._overlayRef.hostElement,fe=re.style;re.classList.remove(ze),fe.justifyContent=fe.alignItems=B.marginTop=B.marginBottom=B.marginLeft=B.marginRight=B.position="",this._overlayRef=null,this._isDisposed=!0}}let Ye=(()=>{class Q{constructor(re,fe,qe,$e){this._viewportRuler=re,this._document=fe,this._platform=qe,this._overlayContainer=$e}global(){return new we}flexibleConnectedTo(re){return new x(re,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Q.\u0275fac=function(re){return new(re||Q)(d.LFG(t.rL),d.LFG(e.K0),d.LFG(r.t4),d.LFG(Z))},Q.\u0275prov=d.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})(),te=0,Se=(()=>{class Q{constructor(re,fe,qe,$e,et,ot,ct,pt,$t,It,fr,yt){this.scrollStrategies=re,this._overlayContainer=fe,this._componentFactoryResolver=qe,this._positionBuilder=$e,this._keyboardDispatcher=et,this._injector=ot,this._ngZone=ct,this._document=pt,this._directionality=$t,this._location=It,this._outsideClickDispatcher=fr,this._animationsModuleType=yt}create(re){const fe=this._createHostElement(),qe=this._createPaneElement(fe),$e=this._createPortalOutlet(qe),et=new Le(re);return et.direction=et.direction||this._directionality.value,new Te($e,fe,qe,et,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(re){const fe=this._document.createElement("div");return fe.id="cdk-overlay-"+te++,fe.classList.add("cdk-overlay-pane"),re.appendChild(fe),fe}_createHostElement(){const re=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(re),re}_createPortalOutlet(re){return this._appRef||(this._appRef=this._injector.get(d.z2F)),new n.u0(re,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Q.\u0275fac=function(re){return new(re||Q)(d.LFG(Ee),d.LFG(Z),d.LFG(d._Vd),d.LFG(Ye),d.LFG(he),d.LFG(d.zs3),d.LFG(d.R0b),d.LFG(e.K0),d.LFG(C.Is),d.LFG(e.Ye),d.LFG(_e),d.LFG(d.QbO,8))},Q.\u0275prov=d.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})();const ke=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ge=new d.OlP("cdk-connected-overlay-scroll-strategy");let Tt=(()=>{class Q{constructor(re){this.elementRef=re}}return Q.\u0275fac=function(re){return new(re||Q)(d.Y36(d.SBq))},Q.\u0275dir=d.lG2({type:Q,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),Q})(),Et=(()=>{class Q{get offsetX(){return this._offsetX}set offsetX(re){this._offsetX=re,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(re){this._offsetY=re,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(re){this._hasBackdrop=(0,l.Ig)(re)}get lockPosition(){return this._lockPosition}set lockPosition(re){this._lockPosition=(0,l.Ig)(re)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(re){this._flexibleDimensions=(0,l.Ig)(re)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(re){this._growAfterOpen=(0,l.Ig)(re)}get push(){return this._push}set push(re){this._push=(0,l.Ig)(re)}constructor(re,fe,qe,$e,et){this._overlay=re,this._dir=et,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=P.w0.EMPTY,this._attachSubscription=P.w0.EMPTY,this._detachSubscription=P.w0.EMPTY,this._positionSubscription=P.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new d.vpe,this.positionChange=new d.vpe,this.attach=new d.vpe,this.detach=new d.vpe,this.overlayKeydown=new d.vpe,this.overlayOutsideClick=new d.vpe,this._templatePortal=new n.UE(fe,qe),this._scrollStrategyFactory=$e,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(re){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),re.origin&&this.open&&this._position.apply()),re.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=ke);const re=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=re.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=re.detachments().subscribe(()=>this.detach.emit()),re.keydownEvents().subscribe(fe=>{this.overlayKeydown.next(fe),fe.keyCode===q.hY&&!this.disableClose&&!(0,q.Vb)(fe)&&(fe.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(fe=>{this.overlayOutsideClick.next(fe)})}_buildConfig(){const re=this._position=this.positionStrategy||this._createPositionStrategy(),fe=new Le({direction:this._dir,positionStrategy:re,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(fe.width=this.width),(this.height||0===this.height)&&(fe.height=this.height),(this.minWidth||0===this.minWidth)&&(fe.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(fe.minHeight=this.minHeight),this.backdropClass&&(fe.backdropClass=this.backdropClass),this.panelClass&&(fe.panelClass=this.panelClass),fe}_updatePositionStrategy(re){const fe=this.positions.map(qe=>({originX:qe.originX,originY:qe.originY,overlayX:qe.overlayX,overlayY:qe.overlayY,offsetX:qe.offsetX||this.offsetX,offsetY:qe.offsetY||this.offsetY,panelClass:qe.panelClass||void 0}));return re.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(fe).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const re=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(re),re}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Tt?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(re=>{this.backdropClick.emit(re)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,v.o)(()=>this.positionChange.observers.length>0)).subscribe(re=>{this.positionChange.emit(re),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Q.\u0275fac=function(re){return new(re||Q)(d.Y36(Se),d.Y36(d.Rgc),d.Y36(d.s_b),d.Y36(Ge),d.Y36(C.Is,8))},Q.\u0275dir=d.lG2({type:Q,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[d.TTD]}),Q})();const Y={provide:Ge,deps:[Se],useFactory:function H(Q){return()=>Q.scrollStrategies.reposition()}};let S=(()=>{class Q{}return Q.\u0275fac=function(re){return new(re||Q)},Q.\u0275mod=d.oAB({type:Q}),Q.\u0275inj=d.cJS({providers:[Se,Y],imports:[C.vT,n.eL,t.Cl,t.Cl]}),Q})()},71329:(St,be,s)=>{"use strict";s.d(be,{Mq:()=>I,Oy:()=>V,_i:()=>q,ht:()=>F,i$:()=>n,kV:()=>T,qK:()=>m,sA:()=>le,t4:()=>l,ud:()=>r});var t=s(73991),e=s(17774);let d;try{d=typeof Intl<"u"&&Intl.v8BreakIterator}catch{d=!1}let c,l=(()=>{class de{constructor(Ee){this._platformId=Ee,this.isBrowser=this._platformId?(0,e.NF)(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&&!d)&&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 de.\u0275fac=function(Ee){return new(Ee||de)(t.LFG(t.Lbi))},de.\u0275prov=t.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})(),r=(()=>{class de{}return de.\u0275fac=function(Ee){return new(Ee||de)},de.\u0275mod=t.oAB({type:de}),de.\u0275inj=t.cJS({}),de})();const E=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function m(){if(c)return c;if("object"!=typeof document||!document)return c=new Set(E),c;let de=document.createElement("input");return c=new Set(E.filter(ye=>(de.setAttribute("type",ye),de.type===ye))),c}let v,i,P,D;function n(de){return function C(){if(null==v&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>v=!0}))}finally{v=v||!1}return v}()?de:!!de.capture}function I(){if(null==P){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return P=!1,P;if("scrollBehavior"in document.documentElement.style)P=!0;else{const de=Element.prototype.scrollTo;P=!!de&&!/\{\s*\[native code\]\s*\}/.test(de.toString())}}return P}function q(){if("object"!=typeof document||!document)return 0;if(null==i){const de=document.createElement("div"),ye=de.style;de.dir="rtl",ye.width="1px",ye.overflow="auto",ye.visibility="hidden",ye.pointerEvents="none",ye.position="absolute";const Ee=document.createElement("div"),Le=Ee.style;Le.width="2px",Le.height="1px",de.appendChild(Ee),document.body.appendChild(de),i=0,0===de.scrollLeft&&(de.scrollLeft=1,i=0===de.scrollLeft?1:2),de.remove()}return i}function T(de){if(function M(){if(null==D){const de=typeof document<"u"?document.head:null;D=!(!de||!de.createShadowRoot&&!de.attachShadow)}return D}()){const ye=de.getRootNode?de.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ye instanceof ShadowRoot)return ye}return null}function F(){let de=typeof document<"u"&&document?document.activeElement:null;for(;de&&de.shadowRoot;){const ye=de.shadowRoot.activeElement;if(ye===de)break;de=ye}return de}function le(de){return de.composedPath?de.composedPath()[0]:de.target}function V(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},27444:(St,be,s)=>{"use strict";s.d(be,{C5:()=>C,Pl:()=>F,UE:()=>n,eL:()=>V,en:()=>P,ig:()=>M,u0:()=>q});var t=s(73991),e=s(17774);class v{attach(Ee){return this._attachedHost=Ee,Ee.attach(this)}detach(){let Ee=this._attachedHost;null!=Ee&&(this._attachedHost=null,Ee.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Ee){this._attachedHost=Ee}}class C extends v{constructor(Ee,Le,ge,ue,ee){super(),this.component=Ee,this.viewContainerRef=Le,this.injector=ge,this.componentFactoryResolver=ue,this.projectableNodes=ee}}class n extends v{constructor(Ee,Le,ge,ue){super(),this.templateRef=Ee,this.viewContainerRef=Le,this.context=ge,this.injector=ue}get origin(){return this.templateRef.elementRef}attach(Ee,Le=this.context){return this.context=Le,super.attach(Ee)}detach(){return this.context=void 0,super.detach()}}class i extends v{constructor(Ee){super(),this.element=Ee instanceof t.SBq?Ee.nativeElement:Ee}}class P{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Ee){return Ee instanceof C?(this._attachedPortal=Ee,this.attachComponentPortal(Ee)):Ee instanceof n?(this._attachedPortal=Ee,this.attachTemplatePortal(Ee)):this.attachDomPortal&&Ee instanceof i?(this._attachedPortal=Ee,this.attachDomPortal(Ee)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(Ee){this._disposeFn=Ee}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class q extends P{constructor(Ee,Le,ge,ue,ee){super(),this.outletElement=Ee,this._componentFactoryResolver=Le,this._appRef=ge,this._defaultInjector=ue,this.attachDomPortal=se=>{const W=se.element,L=this._document.createComment("dom-portal");W.parentNode.insertBefore(L,W),this.outletElement.appendChild(W),this._attachedPortal=se,super.setDisposeFn(()=>{L.parentNode&&L.parentNode.replaceChild(W,L)})},this._document=ee}attachComponentPortal(Ee){const ge=(Ee.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Ee.component);let ue;return Ee.viewContainerRef?(ue=Ee.viewContainerRef.createComponent(ge,Ee.viewContainerRef.length,Ee.injector||Ee.viewContainerRef.injector,Ee.projectableNodes||void 0),this.setDisposeFn(()=>ue.destroy())):(ue=ge.create(Ee.injector||this._defaultInjector||t.zs3.NULL),this._appRef.attachView(ue.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ue.hostView),ue.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ue)),this._attachedPortal=Ee,ue}attachTemplatePortal(Ee){let Le=Ee.viewContainerRef,ge=Le.createEmbeddedView(Ee.templateRef,Ee.context,{injector:Ee.injector});return ge.rootNodes.forEach(ue=>this.outletElement.appendChild(ue)),ge.detectChanges(),this.setDisposeFn(()=>{let ue=Le.indexOf(ge);-1!==ue&&Le.remove(ue)}),this._attachedPortal=Ee,ge}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Ee){return Ee.hostView.rootNodes[0]}}let M=(()=>{class ye extends n{constructor(Le,ge){super(Le,ge)}}return ye.\u0275fac=function(Le){return new(Le||ye)(t.Y36(t.Rgc),t.Y36(t.s_b))},ye.\u0275dir=t.lG2({type:ye,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[t.qOj]}),ye})(),F=(()=>{class ye extends P{constructor(Le,ge,ue){super(),this._componentFactoryResolver=Le,this._viewContainerRef=ge,this._isInitialized=!1,this.attached=new t.vpe,this.attachDomPortal=ee=>{const se=ee.element,W=this._document.createComment("dom-portal");ee.setAttachedHost(this),se.parentNode.insertBefore(W,se),this._getRootNode().appendChild(se),this._attachedPortal=ee,super.setDisposeFn(()=>{W.parentNode&&W.parentNode.replaceChild(se,W)})},this._document=ue}get portal(){return this._attachedPortal}set portal(Le){this.hasAttached()&&!Le&&!this._isInitialized||(this.hasAttached()&&super.detach(),Le&&super.attach(Le),this._attachedPortal=Le||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(Le){Le.setAttachedHost(this);const ge=null!=Le.viewContainerRef?Le.viewContainerRef:this._viewContainerRef,ee=(Le.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Le.component),se=ge.createComponent(ee,ge.length,Le.injector||ge.injector,Le.projectableNodes||void 0);return ge!==this._viewContainerRef&&this._getRootNode().appendChild(se.hostView.rootNodes[0]),super.setDisposeFn(()=>se.destroy()),this._attachedPortal=Le,this._attachedRef=se,this.attached.emit(se),se}attachTemplatePortal(Le){Le.setAttachedHost(this);const ge=this._viewContainerRef.createEmbeddedView(Le.templateRef,Le.context,{injector:Le.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Le,this._attachedRef=ge,this.attached.emit(ge),ge}_getRootNode(){const Le=this._viewContainerRef.element.nativeElement;return Le.nodeType===Le.ELEMENT_NODE?Le:Le.parentNode}}return ye.\u0275fac=function(Le){return new(Le||ye)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36(e.K0))},ye.\u0275dir=t.lG2({type:ye,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[t.qOj]}),ye})(),V=(()=>{class ye{}return ye.\u0275fac=function(Le){return new(Le||ye)},ye.\u0275mod=t.oAB({type:ye}),ye.\u0275inj=t.cJS({}),ye})()},9620:(St,be,s)=>{"use strict";s.d(be,{PQ:()=>L,ZD:()=>We,mF:()=>W,Cl:()=>ze,rL:()=>_e});var t=s(45903),e=s(73991),d=s(68264),l=s(95195),r=s(44070),c=s(74845),E=s(43088),m=s(22292);const v={schedule(we){let Ye=requestAnimationFrame,te=cancelAnimationFrame;const{delegate:Se}=v;Se&&(Ye=Se.requestAnimationFrame,te=Se.cancelAnimationFrame);const ke=Ye(Ge=>{te=void 0,we(Ge)});return new m.w0(()=>te?.(ke))},requestAnimationFrame(...we){const{delegate:Ye}=v;return(Ye?.requestAnimationFrame||requestAnimationFrame)(...we)},cancelAnimationFrame(...we){const{delegate:Ye}=v;return(Ye?.cancelAnimationFrame||cancelAnimationFrame)(...we)},delegate:void 0};var n=s(94713);const P=new class i extends n.v{flush(Ye){this._active=!0,this._scheduled=void 0;const{actions:te}=this;let Se,ke=-1;Ye=Ye||te.shift();const Ge=te.length;do{if(Se=Ye.execute(Ye.state,Ye.delay))break}while(++ke<Ge&&(Ye=te.shift()));if(this._active=!1,Se){for(;++ke<Ge&&(Ye=te.shift());)Ye.unsubscribe();throw Se}}}(class C extends E.o{constructor(Ye,te){super(Ye,te),this.scheduler=Ye,this.work=te}requestAsyncId(Ye,te,Se=0){return null!==Se&&Se>0?super.requestAsyncId(Ye,te,Se):(Ye.actions.push(this),Ye._scheduled||(Ye._scheduled=v.requestAnimationFrame(()=>Ye.flush(void 0))))}recycleAsyncId(Ye,te,Se=0){if(null!=Se&&Se>0||null==Se&&this.delay>0)return super.recycleAsyncId(Ye,te,Se);0===Ye.actions.length&&(v.cancelAnimationFrame(te),Ye._scheduled=void 0)}});var q=s(57421),D=s(12245),M=s(9754),T=s(30003),F=s(41743),le=s(71329),V=s(17774),de=s(88793);const ye=["contentWrapper"],Ee=["*"],Le=new e.OlP("VIRTUAL_SCROLL_STRATEGY");let W=(()=>{class we{constructor(te,Se,ke){this._ngZone=te,this._platform=Se,this._scrolled=new d.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ke}register(te){this.scrollContainers.has(te)||this.scrollContainers.set(te,te.elementScrolled().subscribe(()=>this._scrolled.next(te)))}deregister(te){const Se=this.scrollContainers.get(te);Se&&(Se.unsubscribe(),this.scrollContainers.delete(te))}scrolled(te=20){return this._platform.isBrowser?new r.y(Se=>{this._globalSubscription||this._addGlobalListener();const ke=te>0?this._scrolled.pipe((0,D.e)(te)).subscribe(Se):this._scrolled.subscribe(Se);return this._scrolledCount++,()=>{ke.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,l.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((te,Se)=>this.deregister(Se)),this._scrolled.complete()}ancestorScrolled(te,Se){const ke=this.getAncestorScrollContainers(te);return this.scrolled(Se).pipe((0,M.h)(Ge=>!Ge||ke.indexOf(Ge)>-1))}getAncestorScrollContainers(te){const Se=[];return this.scrollContainers.forEach((ke,Ge)=>{this._scrollableContainsElement(Ge,te)&&Se.push(Ge)}),Se}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(te,Se){let ke=(0,t.fI)(Se),Ge=te.getElementRef().nativeElement;do{if(ke==Ge)return!0}while(ke=ke.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const te=this._getWindow();return(0,c.R)(te.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return we.\u0275fac=function(te){return new(te||we)(e.LFG(e.R0b),e.LFG(le.t4),e.LFG(V.K0,8))},we.\u0275prov=e.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),L=(()=>{class we{constructor(te,Se,ke,Ge){this.elementRef=te,this.scrollDispatcher=Se,this.ngZone=ke,this.dir=Ge,this._destroyed=new d.x,this._elementScrolled=new r.y(Tt=>this.ngZone.runOutsideAngular(()=>(0,c.R)(this.elementRef.nativeElement,"scroll").pipe((0,T.R)(this._destroyed)).subscribe(Tt)))}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(te){const Se=this.elementRef.nativeElement,ke=this.dir&&"rtl"==this.dir.value;null==te.left&&(te.left=ke?te.end:te.start),null==te.right&&(te.right=ke?te.start:te.end),null!=te.bottom&&(te.top=Se.scrollHeight-Se.clientHeight-te.bottom),ke&&0!=(0,le._i)()?(null!=te.left&&(te.right=Se.scrollWidth-Se.clientWidth-te.left),2==(0,le._i)()?te.left=te.right:1==(0,le._i)()&&(te.left=te.right?-te.right:te.right)):null!=te.right&&(te.left=Se.scrollWidth-Se.clientWidth-te.right),this._applyScrollToOptions(te)}_applyScrollToOptions(te){const Se=this.elementRef.nativeElement;(0,le.Mq)()?Se.scrollTo(te):(null!=te.top&&(Se.scrollTop=te.top),null!=te.left&&(Se.scrollLeft=te.left))}measureScrollOffset(te){const Se="left",Ge=this.elementRef.nativeElement;if("top"==te)return Ge.scrollTop;if("bottom"==te)return Ge.scrollHeight-Ge.clientHeight-Ge.scrollTop;const Tt=this.dir&&"rtl"==this.dir.value;return"start"==te?te=Tt?"right":Se:"end"==te&&(te=Tt?Se:"right"),Tt&&2==(0,le._i)()?te==Se?Ge.scrollWidth-Ge.clientWidth-Ge.scrollLeft:Ge.scrollLeft:Tt&&1==(0,le._i)()?te==Se?Ge.scrollLeft+Ge.scrollWidth-Ge.clientWidth:-Ge.scrollLeft:te==Se?Ge.scrollLeft:Ge.scrollWidth-Ge.clientWidth-Ge.scrollLeft}}return we.\u0275fac=function(te){return new(te||we)(e.Y36(e.SBq),e.Y36(W),e.Y36(e.R0b),e.Y36(de.Is,8))},we.\u0275dir=e.lG2({type:we,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),we})(),_e=(()=>{class we{constructor(te,Se,ke){this._platform=te,this._change=new d.x,this._changeListener=Ge=>{this._change.next(Ge)},this._document=ke,Se.runOutsideAngular(()=>{if(te.isBrowser){const Ge=this._getWindow();Ge.addEventListener("resize",this._changeListener),Ge.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const te=this._getWindow();te.removeEventListener("resize",this._changeListener),te.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const te={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),te}getViewportRect(){const te=this.getViewportScrollPosition(),{width:Se,height:ke}=this.getViewportSize();return{top:te.top,left:te.left,bottom:te.top+ke,right:te.left+Se,height:ke,width:Se}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const te=this._document,Se=this._getWindow(),ke=te.documentElement,Ge=ke.getBoundingClientRect();return{top:-Ge.top||te.body.scrollTop||Se.scrollY||ke.scrollTop||0,left:-Ge.left||te.body.scrollLeft||Se.scrollX||ke.scrollLeft||0}}change(te=20){return te>0?this._change.pipe((0,D.e)(te)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const te=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:te.innerWidth,height:te.innerHeight}:{width:0,height:0}}}return we.\u0275fac=function(te){return new(te||we)(e.LFG(le.t4),e.LFG(e.R0b),e.LFG(V.K0,8))},we.\u0275prov=e.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})();const Z=new e.OlP("VIRTUAL_SCROLLABLE");let Te=(()=>{class we extends L{constructor(te,Se,ke,Ge){super(te,Se,ke,Ge)}measureViewportSize(te){const Se=this.elementRef.nativeElement;return"horizontal"===te?Se.clientWidth:Se.clientHeight}}return we.\u0275fac=function(te){return new(te||we)(e.Y36(e.SBq),e.Y36(W),e.Y36(e.R0b),e.Y36(de.Is,8))},we.\u0275dir=e.lG2({type:we,features:[e.qOj]}),we})();const k=typeof requestAnimationFrame<"u"?P:q.E;let x=(()=>{class we extends Te{get orientation(){return this._orientation}set orientation(te){this._orientation!==te&&(this._orientation=te,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(te){this._appendOnly=(0,t.Ig)(te)}constructor(te,Se,ke,Ge,Tt,Et,H,Y){super(te,Et,ke,Tt),this.elementRef=te,this._changeDetectorRef=Se,this._scrollStrategy=Ge,this.scrollable=Y,this._platform=(0,e.f3M)(le.t4),this._detachedSubject=new d.x,this._renderedRangeSubject=new d.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new r.y(S=>this._scrollStrategy.scrolledIndexChange.subscribe(K=>Promise.resolve().then(()=>this.ngZone.run(()=>S.next(K))))),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=m.w0.EMPTY,this._viewportChanges=H.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}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((0,F.O)(null),(0,D.e)(0,k)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(te){this.ngZone.runOutsideAngular(()=>{this._forOf=te,this._forOf.dataStream.pipe((0,T.R)(this._detachedSubject)).subscribe(Se=>{const ke=Se.length;ke!==this._dataLength&&(this._dataLength=ke,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(te){return this.getElementRef().nativeElement.getBoundingClientRect()[te]}setTotalContentSize(te){this._totalContentSize!==te&&(this._totalContentSize=te,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(te){(function w(we,Ye){return we.start==Ye.start&&we.end==Ye.end})(this._renderedRange,te)||(this.appendOnly&&(te={start:0,end:Math.max(this._renderedRange.end,te.end)}),this._renderedRangeSubject.next(this._renderedRange=te),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(te,Se="to-start"){te=this.appendOnly&&"to-start"===Se?0:te;const Ge="horizontal"==this.orientation,Tt=Ge?"X":"Y";let H=`translate${Tt}(${Number((Ge&&this.dir&&"rtl"==this.dir.value?-1:1)*te)}px)`;this._renderedContentOffset=te,"to-end"===Se&&(H+=` translate${Tt}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=H&&(this._renderedContentTransform=H,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(te,Se="auto"){const ke={behavior:Se};"horizontal"===this.orientation?ke.start=te:ke.top=te,this.scrollable.scrollTo(ke)}scrollToIndex(te,Se="auto"){this._scrollStrategy.scrollToIndex(te,Se)}measureScrollOffset(te){let Se;return Se=this.scrollable==this?ke=>super.measureScrollOffset(ke):ke=>this.scrollable.measureScrollOffset(ke),Math.max(0,Se(te??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(te){let Se;const Tt="rtl"==this.dir?.value;Se="start"==te?Tt?"right":"left":"end"==te?Tt?"left":"right":te||("horizontal"===this.orientation?"left":"top");const Et=this.scrollable.measureBoundingClientRectWithScrollOffset(Se);return this.elementRef.nativeElement.getBoundingClientRect()[Se]-Et}measureRenderedContentSize(){const te=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?te.offsetWidth:te.offsetHeight}measureRangeSize(te){return this._forOf?this._forOf.measureRangeSize(te,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(te){te&&this._runAfterChangeDetection.push(te),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 te=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const Se of te)Se()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return we.\u0275fac=function(te){return new(te||we)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(Le,8),e.Y36(de.Is,8),e.Y36(W),e.Y36(_e),e.Y36(Z,8))},we.\u0275cmp=e.Xpm({type:we,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(te,Se){if(1&te&&e.Gf(ye,7),2&te){let ke;e.iGM(ke=e.CRH())&&(Se._contentWrapper=ke.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(te,Se){2&te&&e.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===Se.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Se.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[e._Bn([{provide:L,useFactory:(Ye,te)=>Ye||te,deps:[[new e.FiY,new e.tBr(Z)],we]}]),e.qOj,e.jDz],ngContentSelectors:Ee,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(te,Se){1&te&&(e.F$t(),e.TgZ(0,"div",0,1),e.Hsn(2),e.qZA(),e._UZ(3,"div",2)),2&te&&(e.xp6(3),e.Udp("width",Se._totalContentWidth)("height",Se._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}),we})(),We=(()=>{class we{}return we.\u0275fac=function(te){return new(te||we)},we.\u0275mod=e.oAB({type:we}),we.\u0275inj=e.cJS({}),we})(),ze=(()=>{class we{}return we.\u0275fac=function(te){return new(te||we)},we.\u0275mod=e.oAB({type:we}),we.\u0275inj=e.cJS({imports:[de.vT,We,x,de.vT,We]}),we})()},56729:(St,be,s)=>{"use strict";s.d(be,{B8:()=>le,KL:()=>P,U5:()=>ye,be:()=>F,gx:()=>T,st:()=>V,u6:()=>I});var t=s(70232),e=s(88793),d=s(45903),l=s(20849),r=s(73991),c=s(71329),E=s(68264),m=s(95195),v=s(41743),C=s(30003);function n(Ee,Le){1&Ee&&r.Hsn(0)}const i=["*"];let P=(()=>{class Ee{constructor(ge){this._elementRef=ge}focus(){this._elementRef.nativeElement.focus()}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(r.Y36(r.SBq))},Ee.\u0275dir=r.lG2({type:Ee,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),Ee})(),I=(()=>{class Ee{constructor(ge){this.template=ge}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(r.Y36(r.Rgc))},Ee.\u0275dir=r.lG2({type:Ee,selectors:[["","cdkStepLabel",""]]}),Ee})(),q=0;const T=new r.OlP("STEPPER_GLOBAL_OPTIONS");let F=(()=>{class Ee{get editable(){return this._editable}set editable(ge){this._editable=(0,d.Ig)(ge)}get optional(){return this._optional}set optional(ge){this._optional=(0,d.Ig)(ge)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(ge){this._completedOverride=(0,d.Ig)(ge)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(ge){this._customError=(0,d.Ig)(ge)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(ge,ue){this._stepper=ge,this.interacted=!1,this.interactedStream=new r.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=ue||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(r.Y36((0,r.Gpc)(()=>le)),r.Y36(T,8))},Ee.\u0275cmp=r.Xpm({type:Ee,selectors:[["cdk-step"]],contentQueries:function(ge,ue,ee){if(1&ge&&r.Suo(ee,I,5),2&ge){let se;r.iGM(se=r.CRH())&&(ue.stepLabel=se.first)}},viewQuery:function(ge,ue){if(1&ge&&r.Gf(r.Rgc,7),2&ge){let ee;r.iGM(ee=r.CRH())&&(ue.content=ee.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[r.TTD],ngContentSelectors:i,decls:1,vars:0,template:function(ge,ue){1&ge&&(r.F$t(),r.YNc(0,n,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),Ee})(),le=(()=>{class Ee{get linear(){return this._linear}set linear(ge){this._linear=(0,d.Ig)(ge)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ge){const ue=(0,d.su)(ge);this.steps&&this._steps?(this._isValidIndex(ue),this.selected?._markAsInteracted(),this._selectedIndex!==ue&&!this._anyControlsInvalidOrPending(ue)&&(ue>=this._selectedIndex||this.steps.toArray()[ue].editable)&&this._updateSelectedItemIndex(ue)):this._selectedIndex=ue}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(ge){this.selectedIndex=ge&&this.steps?this.steps.toArray().indexOf(ge):-1}get orientation(){return this._orientation}set orientation(ge){this._orientation=ge,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===ge)}constructor(ge,ue,ee){this._dir=ge,this._changeDetectorRef=ue,this._elementRef=ee,this._destroyed=new E.x,this.steps=new r.n_E,this._sortedHeaders=new r.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new r.vpe,this._orientation="horizontal",this._groupId=q++}ngAfterContentInit(){this._steps.changes.pipe((0,v.O)(this._steps),(0,C.R)(this._destroyed)).subscribe(ge=>{this.steps.reset(ge.filter(ue=>ue._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,v.O)(this._stepHeader),(0,C.R)(this._destroyed)).subscribe(ge=>{this._sortedHeaders.reset(ge.toArray().sort((ue,ee)=>ue._elementRef.nativeElement.compareDocumentPosition(ee._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new t.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,m.of)()).pipe((0,v.O)(this._layoutDirection()),(0,C.R)(this._destroyed)).subscribe(ge=>this._keyManager.withHorizontalOrientation(ge)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(ge=>ge.reset()),this._stateChanged()}_getStepLabelId(ge){return`cdk-step-label-${this._groupId}-${ge}`}_getStepContentId(ge){return`cdk-step-content-${this._groupId}-${ge}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(ge){const ue=ge-this._selectedIndex;return ue<0?"rtl"===this._layoutDirection()?"next":"previous":ue>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(ge,ue="number"){const ee=this.steps.toArray()[ge],se=this._isCurrentStep(ge);return ee._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(ee,se):this._getGuidelineLogic(ee,se,ue)}_getDefaultIndicatorLogic(ge,ue){return ge._showError()&&ge.hasError&&!ue?"error":!ge.completed||ue?"number":ge.editable?"edit":"done"}_getGuidelineLogic(ge,ue,ee="number"){return ge._showError()&&ge.hasError&&!ue?"error":ge.completed&&!ue?"done":ge.completed&&ue?ee:ge.editable&&ue?"edit":ee}_isCurrentStep(ge){return this._selectedIndex===ge}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(ge){const ue=this.steps.toArray();this.selectionChange.emit({selectedIndex:ge,previouslySelectedIndex:this._selectedIndex,selectedStep:ue[ge],previouslySelectedStep:ue[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(ge):this._keyManager.updateActiveItem(ge),this._selectedIndex=ge,this._stateChanged()}_onKeydown(ge){const ue=(0,l.Vb)(ge),ee=ge.keyCode,se=this._keyManager;null==se.activeItemIndex||ue||ee!==l.L_&&ee!==l.K5?se.setFocusOrigin("keyboard").onKeydown(ge):(this.selectedIndex=se.activeItemIndex,ge.preventDefault())}_anyControlsInvalidOrPending(ge){return!!(this._linear&&ge>=0)&&this.steps.toArray().slice(0,ge).some(ue=>{const ee=ue.stepControl;return(ee?ee.invalid||ee.pending||!ue.interacted:!ue.completed)&&!ue.optional&&!ue._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const ge=this._elementRef.nativeElement,ue=(0,c.ht)();return ge===ue||ge.contains(ue)}_isValidIndex(ge){return ge>-1&&(!this.steps||ge<this.steps.length)}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(r.Y36(e.Is,8),r.Y36(r.sBO),r.Y36(r.SBq))},Ee.\u0275dir=r.lG2({type:Ee,selectors:[["","cdkStepper",""]],contentQueries:function(ge,ue,ee){if(1&ge&&(r.Suo(ee,F,5),r.Suo(ee,P,5)),2&ge){let se;r.iGM(se=r.CRH())&&(ue._steps=se),r.iGM(se=r.CRH())&&(ue._stepHeader=se)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),Ee})(),V=(()=>{class Ee{constructor(ge){this._stepper=ge,this.type="submit"}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(r.Y36(le))},Ee.\u0275dir=r.lG2({type:Ee,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(ge,ue){1&ge&&r.NdJ("click",function(){return ue._stepper.next()}),2&ge&&r.Ikx("type",ue.type)},inputs:{type:"type"}}),Ee})(),ye=(()=>{class Ee{}return Ee.\u0275fac=function(ge){return new(ge||Ee)},Ee.\u0275mod=r.oAB({type:Ee}),Ee.\u0275inj=r.cJS({imports:[e.vT]}),Ee})()},52908:(St,be,s)=>{"use strict";s.d(be,{$E:()=>et,Af:()=>se,D5:()=>ye,FT:()=>$e,HT:()=>dr,Hx:()=>fr,Kb:()=>ze,O_:()=>de,QJ:()=>W,Sq:()=>We,T$:()=>qe,Z4:()=>Ee,_J:()=>te,bH:()=>ot,fe:()=>tt,fo:()=>ue,hD:()=>L,nl:()=>_e,oF:()=>Z,pF:()=>re,pN:()=>le,qM:()=>Ye,r2:()=>Se,s$:()=>z,xN:()=>we,zC:()=>$t});var t=s(88793),e=s(45903),d=s(71106),l=s(71329),r=s(9620),c=s(17774),E=s(73991),m=s(68264),v=s(51728),C=s(93216),n=s(45929),i=s(95195),P=s(30003),I=s(32653);const q=[[["caption"]],[["colgroup"],["col"]]],D=["caption","colgroup, col"];function M(bt,ar){if(1&bt&&(E.TgZ(0,"th",3),E._uU(1),E.qZA()),2&bt){const vt=E.oxw();E.Udp("text-align",vt.justify),E.xp6(1),E.hij(" ",vt.headerText," ")}}function T(bt,ar){if(1&bt&&(E.TgZ(0,"td",4),E._uU(1),E.qZA()),2&bt){const vt=ar.$implicit,qt=E.oxw();E.Udp("text-align",qt.justify),E.xp6(1),E.hij(" ",qt.dataAccessor(vt,qt.name)," ")}}function F(bt){return class extends bt{get sticky(){return this._sticky}set sticky(ar){const vt=this._sticky;this._sticky=(0,e.Ig)(ar),this._hasStickyChanged=vt!==this._sticky}hasStickyChanged(){const ar=this._hasStickyChanged;return this._hasStickyChanged=!1,ar}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...ar){super(...ar),this._sticky=!1,this._hasStickyChanged=!1}}}const le=new E.OlP("CDK_TABLE"),V=new E.OlP("text-column-options");let de=(()=>{class bt{constructor(vt){this.template=vt}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36(E.Rgc))},bt.\u0275dir=E.lG2({type:bt,selectors:[["","cdkCellDef",""]]}),bt})(),ye=(()=>{class bt{constructor(vt){this.template=vt}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36(E.Rgc))},bt.\u0275dir=E.lG2({type:bt,selectors:[["","cdkHeaderCellDef",""]]}),bt})(),Ee=(()=>{class bt{constructor(vt){this.template=vt}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36(E.Rgc))},bt.\u0275dir=E.lG2({type:bt,selectors:[["","cdkFooterCellDef",""]]}),bt})();class Le{}const ge=F(Le);let ue=(()=>{class bt extends ge{get name(){return this._name}set name(vt){this._setNameInput(vt)}get stickyEnd(){return this._stickyEnd}set stickyEnd(vt){const qt=this._stickyEnd;this._stickyEnd=(0,e.Ig)(vt),this._hasStickyChanged=qt!==this._stickyEnd}constructor(vt){super(),this._table=vt,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(vt){vt&&(this._name=vt,this.cssClassFriendlyName=vt.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36(le,8))},bt.\u0275dir=E.lG2({type:bt,selectors:[["","cdkColumnDef",""]],contentQueries:function(vt,qt,br){if(1&vt&&(E.Suo(br,de,5),E.Suo(br,ye,5),E.Suo(br,Ee,5)),2&vt){let lt;E.iGM(lt=E.CRH())&&(qt.cell=lt.first),E.iGM(lt=E.CRH())&&(qt.headerCell=lt.first),E.iGM(lt=E.CRH())&&(qt.footerCell=lt.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[E._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:bt}]),E.qOj]}),bt})();class ee{constructor(ar,vt){vt.nativeElement.classList.add(...ar._columnCssClassName)}}let se=(()=>{class bt extends ee{constructor(vt,qt){super(vt,qt)}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36(ue),E.Y36(E.SBq))},bt.\u0275dir=E.lG2({type:bt,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[E.qOj]}),bt})(),W=(()=>{class bt extends ee{constructor(vt,qt){if(super(vt,qt),1===vt._table?._elementRef.nativeElement.nodeType){const br=vt._table._elementRef.nativeElement.getAttribute("role");qt.nativeElement.setAttribute("role","grid"===br||"treegrid"===br?"gridcell":"cell")}}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36(ue),E.Y36(E.SBq))},bt.\u0275dir=E.lG2({type:bt,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[E.qOj]}),bt})(),L=(()=>{class bt extends ee{constructor(vt,qt){if(super(vt,qt),1===vt._table?._elementRef.nativeElement.nodeType){const br=vt._table._elementRef.nativeElement.getAttribute("role");qt.nativeElement.setAttribute("role","grid"===br||"treegrid"===br?"gridcell":"cell")}}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36(ue),E.Y36(E.SBq))},bt.\u0275dir=E.lG2({type:bt,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[E.qOj]}),bt})();class he{constructor(){this.tasks=[],this.endTasks=[]}}const _e=new E.OlP("_COALESCED_STYLE_SCHEDULER");let Z=(()=>{class bt{constructor(vt){this._ngZone=vt,this._currentSchedule=null,this._destroyed=new m.x}schedule(vt){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(vt)}scheduleEnd(vt){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(vt)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new he,this._getScheduleObservable().pipe((0,P.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const vt=this._currentSchedule;this._currentSchedule=new he;for(const qt of vt.tasks)qt();for(const qt of vt.endTasks)qt()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,v.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,I.q)(1))}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.LFG(E.R0b))},bt.\u0275prov=E.Yz7({token:bt,factory:bt.\u0275fac}),bt})(),w=(()=>{class bt{constructor(vt,qt){this.template=vt,this._differs=qt}ngOnChanges(vt){if(!this._columnsDiffer){const qt=vt.columns&&vt.columns.currentValue||[];this._columnsDiffer=this._differs.find(qt).create(),this._columnsDiffer.diff(qt)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(vt){return this instanceof z?vt.headerCell.template:this instanceof tt?vt.footerCell.template:vt.cell.template}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36(E.Rgc),E.Y36(E.ZZ4))},bt.\u0275dir=E.lG2({type:bt,features:[E.TTD]}),bt})();class k extends w{}const x=F(k);let z=(()=>{class bt extends x{constructor(vt,qt,br){super(vt,qt),this._table=br}ngOnChanges(vt){super.ngOnChanges(vt)}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36(E.Rgc),E.Y36(E.ZZ4),E.Y36(le,8))},bt.\u0275dir=E.lG2({type:bt,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[E.qOj,E.TTD]}),bt})();class j extends w{}const Ne=F(j);let tt=(()=>{class bt extends Ne{constructor(vt,qt,br){super(vt,qt),this._table=br}ngOnChanges(vt){super.ngOnChanges(vt)}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36(E.Rgc),E.Y36(E.ZZ4),E.Y36(le,8))},bt.\u0275dir=E.lG2({type:bt,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[E.qOj,E.TTD]}),bt})(),We=(()=>{class bt extends w{constructor(vt,qt,br){super(vt,qt),this._table=br}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36(E.Rgc),E.Y36(E.ZZ4),E.Y36(le,8))},bt.\u0275dir=E.lG2({type:bt,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[E.qOj]}),bt})(),ze=(()=>{class bt{constructor(vt){this._viewContainer=vt,bt.mostRecentCellOutlet=this}ngOnDestroy(){bt.mostRecentCellOutlet===this&&(bt.mostRecentCellOutlet=null)}}return bt.mostRecentCellOutlet=null,bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36(E.s_b))},bt.\u0275dir=E.lG2({type:bt,selectors:[["","cdkCellOutlet",""]]}),bt})(),we=(()=>{class bt{}return bt.\u0275fac=function(vt){return new(vt||bt)},bt.\u0275cmp=E.Xpm({type:bt,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(vt,qt){1&vt&&E.GkF(0,0)},dependencies:[ze],encapsulation:2}),bt})(),Ye=(()=>{class bt{}return bt.\u0275fac=function(vt){return new(vt||bt)},bt.\u0275cmp=E.Xpm({type:bt,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(vt,qt){1&vt&&E.GkF(0,0)},dependencies:[ze],encapsulation:2}),bt})(),te=(()=>{class bt{}return bt.\u0275fac=function(vt){return new(vt||bt)},bt.\u0275cmp=E.Xpm({type:bt,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(vt,qt){1&vt&&E.GkF(0,0)},dependencies:[ze],encapsulation:2}),bt})(),Se=(()=>{class bt{constructor(vt){this.templateRef=vt,this._contentClassName="cdk-no-data-row"}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36(E.Rgc))},bt.\u0275dir=E.lG2({type:bt,selectors:[["ng-template","cdkNoDataRow",""]]}),bt})();const ke=["top","bottom","left","right"];class Ge{constructor(ar,vt,qt,br,lt=!0,De=!0,G){this._isNativeHtmlTable=ar,this._stickCellCss=vt,this.direction=qt,this._coalescedStyleScheduler=br,this._isBrowser=lt,this._needsPositionStickyOnElement=De,this._positionListener=G,this._cachedCellWidths=[],this._borderCellCss={top:`${vt}-border-elem-top`,bottom:`${vt}-border-elem-bottom`,left:`${vt}-border-elem-left`,right:`${vt}-border-elem-right`}}clearStickyPositioning(ar,vt){const qt=[];for(const br of ar)if(br.nodeType===br.ELEMENT_NODE){qt.push(br);for(let lt=0;lt<br.children.length;lt++)qt.push(br.children[lt])}this._coalescedStyleScheduler.schedule(()=>{for(const br of qt)this._removeStickyStyle(br,vt)})}updateStickyColumns(ar,vt,qt,br=!0){if(!ar.length||!this._isBrowser||!vt.some(Nt=>Nt)&&!qt.some(Nt=>Nt))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const lt=ar[0],De=lt.children.length,G=this._getCellWidths(lt,br),U=this._getStickyStartColumnPositions(G,vt),ne=this._getStickyEndColumnPositions(G,qt),Re=vt.lastIndexOf(!0),Xe=qt.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Nt="rtl"===this.direction,Pt=Nt?"right":"left",Vt=Nt?"left":"right";for(const Jt of ar)for(let kt=0;kt<De;kt++){const Me=Jt.children[kt];vt[kt]&&this._addStickyStyle(Me,Pt,U[kt],kt===Re),qt[kt]&&this._addStickyStyle(Me,Vt,ne[kt],kt===Xe)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Re?[]:G.slice(0,Re+1).map((Jt,kt)=>vt[kt]?Jt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Xe?[]:G.slice(Xe).map((Jt,kt)=>qt[kt+Xe]?Jt:null).reverse()}))})}stickRows(ar,vt,qt){if(!this._isBrowser)return;const br="bottom"===qt?ar.slice().reverse():ar,lt="bottom"===qt?vt.slice().reverse():vt,De=[],G=[],U=[];for(let Re=0,Xe=0;Re<br.length;Re++){if(!lt[Re])continue;De[Re]=Xe;const Nt=br[Re];U[Re]=this._isNativeHtmlTable?Array.from(Nt.children):[Nt];const Pt=Nt.getBoundingClientRect().height;Xe+=Pt,G[Re]=Pt}const ne=lt.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{for(let Re=0;Re<br.length;Re++){if(!lt[Re])continue;const Xe=De[Re],Nt=Re===ne;for(const Pt of U[Re])this._addStickyStyle(Pt,qt,Xe,Nt)}"top"===qt?this._positionListener?.stickyHeaderRowsUpdated({sizes:G,offsets:De,elements:U}):this._positionListener?.stickyFooterRowsUpdated({sizes:G,offsets:De,elements:U})})}updateStickyFooterContainer(ar,vt){if(!this._isNativeHtmlTable)return;const qt=ar.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{vt.some(br=>!br)?this._removeStickyStyle(qt,["bottom"]):this._addStickyStyle(qt,"bottom",0,!1)})}_removeStickyStyle(ar,vt){for(const br of vt)ar.style[br]="",ar.classList.remove(this._borderCellCss[br]);ke.some(br=>-1===vt.indexOf(br)&&ar.style[br])?ar.style.zIndex=this._getCalculatedZIndex(ar):(ar.style.zIndex="",this._needsPositionStickyOnElement&&(ar.style.position=""),ar.classList.remove(this._stickCellCss))}_addStickyStyle(ar,vt,qt,br){ar.classList.add(this._stickCellCss),br&&ar.classList.add(this._borderCellCss[vt]),ar.style[vt]=`${qt}px`,ar.style.zIndex=this._getCalculatedZIndex(ar),this._needsPositionStickyOnElement&&(ar.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(ar){const vt={top:100,bottom:10,left:1,right:1};let qt=0;for(const br of ke)ar.style[br]&&(qt+=vt[br]);return qt?`${qt}`:""}_getCellWidths(ar,vt=!0){if(!vt&&this._cachedCellWidths.length)return this._cachedCellWidths;const qt=[],br=ar.children;for(let lt=0;lt<br.length;lt++)qt.push(br[lt].getBoundingClientRect().width);return this._cachedCellWidths=qt,qt}_getStickyStartColumnPositions(ar,vt){const qt=[];let br=0;for(let lt=0;lt<ar.length;lt++)vt[lt]&&(qt[lt]=br,br+=ar[lt]);return qt}_getStickyEndColumnPositions(ar,vt){const qt=[];let br=0;for(let lt=ar.length;lt>0;lt--)vt[lt]&&(qt[lt]=br,br+=ar[lt]);return qt}}const re=new E.OlP("CDK_SPL");let qe=(()=>{class bt{constructor(vt,qt){this.viewContainer=vt,this.elementRef=qt}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36(E.s_b),E.Y36(E.SBq))},bt.\u0275dir=E.lG2({type:bt,selectors:[["","rowOutlet",""]]}),bt})(),$e=(()=>{class bt{constructor(vt,qt){this.viewContainer=vt,this.elementRef=qt}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36(E.s_b),E.Y36(E.SBq))},bt.\u0275dir=E.lG2({type:bt,selectors:[["","headerRowOutlet",""]]}),bt})(),et=(()=>{class bt{constructor(vt,qt){this.viewContainer=vt,this.elementRef=qt}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36(E.s_b),E.Y36(E.SBq))},bt.\u0275dir=E.lG2({type:bt,selectors:[["","footerRowOutlet",""]]}),bt})(),ot=(()=>{class bt{constructor(vt,qt){this.viewContainer=vt,this.elementRef=qt}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36(E.s_b),E.Y36(E.SBq))},bt.\u0275dir=E.lG2({type:bt,selectors:[["","noDataRowOutlet",""]]}),bt})(),$t=(()=>{class bt{get trackBy(){return this._trackByFn}set trackBy(vt){this._trackByFn=vt}get dataSource(){return this._dataSource}set dataSource(vt){this._dataSource!==vt&&this._switchDataSource(vt)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(vt){this._multiTemplateDataRows=(0,e.Ig)(vt),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(vt){this._fixedLayout=(0,e.Ig)(vt),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(vt,qt,br,lt,De,G,U,ne,Re,Xe,Nt,Pt){this._differs=vt,this._changeDetectorRef=qt,this._elementRef=br,this._dir=De,this._platform=U,this._viewRepeater=ne,this._coalescedStyleScheduler=Re,this._viewportRuler=Xe,this._stickyPositioningListener=Nt,this._ngZone=Pt,this._onDestroy=new m.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new E.vpe,this.viewChange=new C.X({start:0,end:Number.MAX_VALUE}),lt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=G,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((vt,qt)=>this.trackBy?this.trackBy(qt.dataIndex,qt.data):qt),this._viewportRuler.change().pipe((0,P.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const qt=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||qt,this._forceRecalculateCellWidths=qt,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(vt=>{vt.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,d.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const vt=this._dataDiffer.diff(this._renderRows);if(!vt)return this._updateNoDataRow(),void this.contentChanged.next();const qt=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(vt,qt,(br,lt,De)=>this._getEmbeddedViewArgs(br.item,De),br=>br.item.data,br=>{1===br.operation&&br.context&&this._renderCellTemplateForItem(br.record.item.rowDef,br.context)}),this._updateRowIndexContext(),vt.forEachIdentityChange(br=>{qt.get(br.currentIndex).context.$implicit=br.item.data}),this._updateNoDataRow(),this._ngZone&&E.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,I.q)(1),(0,P.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(vt){this._customColumnDefs.add(vt)}removeColumnDef(vt){this._customColumnDefs.delete(vt)}addRowDef(vt){this._customRowDefs.add(vt)}removeRowDef(vt){this._customRowDefs.delete(vt)}addHeaderRowDef(vt){this._customHeaderRowDefs.add(vt),this._headerRowDefChanged=!0}removeHeaderRowDef(vt){this._customHeaderRowDefs.delete(vt),this._headerRowDefChanged=!0}addFooterRowDef(vt){this._customFooterRowDefs.add(vt),this._footerRowDefChanged=!0}removeFooterRowDef(vt){this._customFooterRowDefs.delete(vt),this._footerRowDefChanged=!0}setNoDataRow(vt){this._customNoDataRow=vt}updateStickyHeaderRowStyles(){const vt=this._getRenderedRows(this._headerRowOutlet),br=this._elementRef.nativeElement.querySelector("thead");br&&(br.style.display=vt.length?"":"none");const lt=this._headerRowDefs.map(De=>De.sticky);this._stickyStyler.clearStickyPositioning(vt,["top"]),this._stickyStyler.stickRows(vt,lt,"top"),this._headerRowDefs.forEach(De=>De.resetStickyChanged())}updateStickyFooterRowStyles(){const vt=this._getRenderedRows(this._footerRowOutlet),br=this._elementRef.nativeElement.querySelector("tfoot");br&&(br.style.display=vt.length?"":"none");const lt=this._footerRowDefs.map(De=>De.sticky);this._stickyStyler.clearStickyPositioning(vt,["bottom"]),this._stickyStyler.stickRows(vt,lt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,lt),this._footerRowDefs.forEach(De=>De.resetStickyChanged())}updateStickyColumnStyles(){const vt=this._getRenderedRows(this._headerRowOutlet),qt=this._getRenderedRows(this._rowOutlet),br=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...vt,...qt,...br],["left","right"]),this._stickyColumnStylesNeedReset=!1),vt.forEach((lt,De)=>{this._addStickyColumnStyles([lt],this._headerRowDefs[De])}),this._rowDefs.forEach(lt=>{const De=[];for(let G=0;G<qt.length;G++)this._renderRows[G].rowDef===lt&&De.push(qt[G]);this._addStickyColumnStyles(De,lt)}),br.forEach((lt,De)=>{this._addStickyColumnStyles([lt],this._footerRowDefs[De])}),Array.from(this._columnDefsByName.values()).forEach(lt=>lt.resetStickyChanged())}_getAllRenderRows(){const vt=[],qt=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let br=0;br<this._data.length;br++){let lt=this._data[br];const De=this._getRenderRowsForData(lt,br,qt.get(lt));this._cachedRenderRowsMap.has(lt)||this._cachedRenderRowsMap.set(lt,new WeakMap);for(let G=0;G<De.length;G++){let U=De[G];const ne=this._cachedRenderRowsMap.get(U.data);ne.has(U.rowDef)?ne.get(U.rowDef).push(U):ne.set(U.rowDef,[U]),vt.push(U)}}return vt}_getRenderRowsForData(vt,qt,br){return this._getRowDefs(vt,qt).map(De=>{const G=br&&br.has(De)?br.get(De):[];if(G.length){const U=G.shift();return U.dataIndex=qt,U}return{data:vt,rowDef:De,dataIndex:qt}})}_cacheColumnDefs(){this._columnDefsByName.clear(),It(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(qt=>{this._columnDefsByName.has(qt.name),this._columnDefsByName.set(qt.name,qt)})}_cacheRowDefs(){this._headerRowDefs=It(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=It(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=It(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const vt=this._rowDefs.filter(qt=>!qt.when);this._defaultRowDef=vt[0]}_renderUpdatedColumns(){const vt=(De,G)=>De||!!G.getColumnsDiff(),qt=this._rowDefs.reduce(vt,!1);qt&&this._forceRenderDataRows();const br=this._headerRowDefs.reduce(vt,!1);br&&this._forceRenderHeaderRows();const lt=this._footerRowDefs.reduce(vt,!1);return lt&&this._forceRenderFooterRows(),qt||br||lt}_switchDataSource(vt){this._data=[],(0,d.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),vt||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=vt}_observeRenderChanges(){if(!this.dataSource)return;let vt;(0,d.Z9)(this.dataSource)?vt=this.dataSource.connect(this):(0,n.b)(this.dataSource)?vt=this.dataSource:Array.isArray(this.dataSource)&&(vt=(0,i.of)(this.dataSource)),this._renderChangeSubscription=vt.pipe((0,P.R)(this._onDestroy)).subscribe(qt=>{this._data=qt||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((vt,qt)=>this._renderRow(this._headerRowOutlet,vt,qt)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((vt,qt)=>this._renderRow(this._footerRowOutlet,vt,qt)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(vt,qt){const br=Array.from(qt.columns||[]).map(G=>this._columnDefsByName.get(G)),lt=br.map(G=>G.sticky),De=br.map(G=>G.stickyEnd);this._stickyStyler.updateStickyColumns(vt,lt,De,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(vt){const qt=[];for(let br=0;br<vt.viewContainer.length;br++){const lt=vt.viewContainer.get(br);qt.push(lt.rootNodes[0])}return qt}_getRowDefs(vt,qt){if(1==this._rowDefs.length)return[this._rowDefs[0]];let br=[];if(this.multiTemplateDataRows)br=this._rowDefs.filter(lt=>!lt.when||lt.when(qt,vt));else{let lt=this._rowDefs.find(De=>De.when&&De.when(qt,vt))||this._defaultRowDef;lt&&br.push(lt)}return br}_getEmbeddedViewArgs(vt,qt){return{templateRef:vt.rowDef.template,context:{$implicit:vt.data},index:qt}}_renderRow(vt,qt,br,lt={}){const De=vt.viewContainer.createEmbeddedView(qt.template,lt,br);return this._renderCellTemplateForItem(qt,lt),De}_renderCellTemplateForItem(vt,qt){for(let br of this._getCellTemplates(vt))ze.mostRecentCellOutlet&&ze.mostRecentCellOutlet._viewContainer.createEmbeddedView(br,qt);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const vt=this._rowOutlet.viewContainer;for(let qt=0,br=vt.length;qt<br;qt++){const De=vt.get(qt).context;De.count=br,De.first=0===qt,De.last=qt===br-1,De.even=qt%2==0,De.odd=!De.even,this.multiTemplateDataRows?(De.dataIndex=this._renderRows[qt].dataIndex,De.renderIndex=qt):De.index=this._renderRows[qt].dataIndex}}_getCellTemplates(vt){return vt&&vt.columns?Array.from(vt.columns,qt=>{const br=this._columnDefsByName.get(qt);return vt.extractCellTemplate(br)}):[]}_applyNativeTableSections(){const vt=this._document.createDocumentFragment(),qt=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const br of qt){const lt=this._document.createElement(br.tag);lt.setAttribute("role","rowgroup");for(const De of br.outlets)lt.appendChild(De.elementRef.nativeElement);vt.appendChild(lt)}this._elementRef.nativeElement.appendChild(vt)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const vt=(qt,br)=>qt||br.hasStickyChanged();this._headerRowDefs.reduce(vt,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(vt,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(vt,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ge(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,i.of)()).pipe((0,P.R)(this._onDestroy)).subscribe(qt=>{this._stickyStyler.direction=qt,this.updateStickyColumnStyles()})}_getOwnDefs(vt){return vt.filter(qt=>!qt._table||qt._table===this)}_updateNoDataRow(){const vt=this._customNoDataRow||this._noDataRow;if(!vt)return;const qt=0===this._rowOutlet.viewContainer.length;if(qt===this._isShowingNoDataRow)return;const br=this._noDataRowOutlet.viewContainer;if(qt){const lt=br.createEmbeddedView(vt.templateRef),De=lt.rootNodes[0];1===lt.rootNodes.length&&De?.nodeType===this._document.ELEMENT_NODE&&(De.setAttribute("role","row"),De.classList.add(vt._contentClassName))}else br.clear();this._isShowingNoDataRow=qt}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36(E.ZZ4),E.Y36(E.sBO),E.Y36(E.SBq),E.$8M("role"),E.Y36(t.Is,8),E.Y36(c.K0),E.Y36(l.t4),E.Y36(d.k),E.Y36(_e),E.Y36(r.rL),E.Y36(re,12),E.Y36(E.R0b,8))},bt.\u0275cmp=E.Xpm({type:bt,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(vt,qt,br){if(1&vt&&(E.Suo(br,Se,5),E.Suo(br,ue,5),E.Suo(br,We,5),E.Suo(br,z,5),E.Suo(br,tt,5)),2&vt){let lt;E.iGM(lt=E.CRH())&&(qt._noDataRow=lt.first),E.iGM(lt=E.CRH())&&(qt._contentColumnDefs=lt),E.iGM(lt=E.CRH())&&(qt._contentRowDefs=lt),E.iGM(lt=E.CRH())&&(qt._contentHeaderRowDefs=lt),E.iGM(lt=E.CRH())&&(qt._contentFooterRowDefs=lt)}},viewQuery:function(vt,qt){if(1&vt&&(E.Gf(qe,7),E.Gf($e,7),E.Gf(et,7),E.Gf(ot,7)),2&vt){let br;E.iGM(br=E.CRH())&&(qt._rowOutlet=br.first),E.iGM(br=E.CRH())&&(qt._headerRowOutlet=br.first),E.iGM(br=E.CRH())&&(qt._footerRowOutlet=br.first),E.iGM(br=E.CRH())&&(qt._noDataRowOutlet=br.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(vt,qt){2&vt&&E.ekj("cdk-table-fixed-layout",qt.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[E._Bn([{provide:le,useExisting:bt},{provide:d.k,useClass:d.yy},{provide:_e,useClass:Z},{provide:re,useValue:null}])],ngContentSelectors:D,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(vt,qt){1&vt&&(E.F$t(q),E.Hsn(0),E.Hsn(1,1),E.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[qe,$e,et,ot],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),bt})();function It(bt,ar){return bt.concat(Array.from(ar))}let fr=(()=>{class bt{get name(){return this._name}set name(vt){this._name=vt,this._syncColumnDefName()}constructor(vt,qt){this._table=vt,this._options=qt,this.justify="start",this._options=qt||{}}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((vt,qt)=>vt[qt])),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const vt=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(vt):vt[0].toUpperCase()+vt.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return bt.\u0275fac=function(vt){return new(vt||bt)(E.Y36($t,8),E.Y36(V,8))},bt.\u0275cmp=E.Xpm({type:bt,selectors:[["cdk-text-column"]],viewQuery:function(vt,qt){if(1&vt&&(E.Gf(ue,7),E.Gf(de,7),E.Gf(ye,7)),2&vt){let br;E.iGM(br=E.CRH())&&(qt.columnDef=br.first),E.iGM(br=E.CRH())&&(qt.cell=br.first),E.iGM(br=E.CRH())&&(qt.headerCell=br.first)}},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(vt,qt){1&vt&&(E.ynx(0,0),E.YNc(1,M,2,3,"th",1),E.YNc(2,T,2,3,"td",2),E.BQk())},dependencies:[de,ye,ue,L,se],encapsulation:2}),bt})(),dr=(()=>{class bt{}return bt.\u0275fac=function(vt){return new(vt||bt)},bt.\u0275mod=E.oAB({type:bt}),bt.\u0275inj=E.cJS({imports:[r.Cl]}),bt})()},24e3:(St,be,s)=>{"use strict";s.d(be,{IC:()=>P,Ky:()=>I,Lq:()=>n});var t=s(71329),e=s(73991),d=s(45903),l=s(38440),r=s(68264),c=s(74845),E=s(12245),m=s(30003),v=s(17774);const C=(0,t.i$)({passive:!0});let n=(()=>{class q{constructor(M,T){this._platform=M,this._ngZone=T,this._monitoredElements=new Map}monitor(M){if(!this._platform.isBrowser)return l.E;const T=(0,d.fI)(M),F=this._monitoredElements.get(T);if(F)return F.subject;const le=new r.x,V="cdk-text-field-autofilled",de=ye=>{"cdk-text-field-autofill-start"!==ye.animationName||T.classList.contains(V)?"cdk-text-field-autofill-end"===ye.animationName&&T.classList.contains(V)&&(T.classList.remove(V),this._ngZone.run(()=>le.next({target:ye.target,isAutofilled:!1}))):(T.classList.add(V),this._ngZone.run(()=>le.next({target:ye.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{T.addEventListener("animationstart",de,C),T.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(T,{subject:le,unlisten:()=>{T.removeEventListener("animationstart",de,C)}}),le}stopMonitoring(M){const T=(0,d.fI)(M),F=this._monitoredElements.get(T);F&&(F.unlisten(),F.subject.complete(),T.classList.remove("cdk-text-field-autofill-monitored"),T.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(T))}ngOnDestroy(){this._monitoredElements.forEach((M,T)=>this.stopMonitoring(T))}}return q.\u0275fac=function(M){return new(M||q)(e.LFG(t.t4),e.LFG(e.R0b))},q.\u0275prov=e.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"}),q})(),P=(()=>{class q{get minRows(){return this._minRows}set minRows(M){this._minRows=(0,d.su)(M),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(M){this._maxRows=(0,d.su)(M),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(M){M=(0,d.Ig)(M),this._enabled!==M&&((this._enabled=M)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(M){this._cachedPlaceholderHeight=void 0,M?this._textareaElement.setAttribute("placeholder",M):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(M,T,F,le){this._elementRef=M,this._platform=T,this._ngZone=F,this._destroyed=new r.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=V=>{this._hasFocus="focus"===V.type},this._document=le,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const M=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;M&&(this._textareaElement.style.minHeight=M)}_setMaxHeight(){const M=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;M&&(this._textareaElement.style.maxHeight=M)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const M=this._getWindow();(0,c.R)(M,"resize").pipe((0,E.e)(16),(0,m.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let M=this._textareaElement.cloneNode(!1);M.rows=1,M.style.position="absolute",M.style.visibility="hidden",M.style.border="none",M.style.padding="0",M.style.height="",M.style.minHeight="",M.style.maxHeight="",M.style.overflow="hidden",this._textareaElement.parentNode.appendChild(M),this._cachedLineHeight=M.clientHeight,M.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const M=this._textareaElement,T=M.style.marginBottom||"",F=this._platform.FIREFOX,le=F&&this._hasFocus,V=F?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";le&&(M.style.marginBottom=`${M.clientHeight}px`),M.classList.add(V);const de=M.scrollHeight-4;return M.classList.remove(V),le&&(M.style.marginBottom=T),de}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const M=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=M}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(M=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const T=this._elementRef.nativeElement,F=T.value;if(!M&&this._minRows===this._previousMinRows&&F===this._previousValue)return;const le=this._measureScrollHeight(),V=Math.max(le,this._cachedPlaceholderHeight||0);T.style.height=`${V}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(T)):setTimeout(()=>this._scrollToCaretPosition(T))}),this._previousValue=F,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(M){const{selectionStart:T,selectionEnd:F}=M;!this._destroyed.isStopped&&this._hasFocus&&M.setSelectionRange(T,F)}}return q.\u0275fac=function(M){return new(M||q)(e.Y36(e.SBq),e.Y36(t.t4),e.Y36(e.R0b),e.Y36(v.K0,8))},q.\u0275dir=e.lG2({type:q,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(M,T){1&M&&e.NdJ("input",function(){return T._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),q})(),I=(()=>{class q{}return q.\u0275fac=function(M){return new(M||q)},q.\u0275mod=e.oAB({type:q}),q.\u0275inj=e.cJS({}),q})()},17774:(St,be,s)=>{"use strict";s.d(be,{Do:()=>F,ED:()=>Ln,EM:()=>ro,H9:()=>mi,HT:()=>l,JF:()=>Bi,JJ:()=>bo,K0:()=>c,Mx:()=>ci,NF:()=>Mn,O5:()=>Sr,OU:()=>ve,Ov:()=>Oa,PC:()=>$a,PM:()=>$n,RF:()=>Cr,S$:()=>D,V_:()=>v,Ye:()=>le,b0:()=>T,bD:()=>kn,ez:()=>Dr,gd:()=>Wi,mk:()=>ie,n9:()=>Gr,q:()=>d,rS:()=>wi,sg:()=>mn,tP:()=>La,uU:()=>Ui,w_:()=>r});var t=s(73991);let e=null;function d(){return e}function l(xe){e||(e=xe)}class r{}const c=new t.OlP("DocumentToken");let E=(()=>{class xe{historyGo(He){throw new Error("Not implemented")}}return xe.\u0275fac=function(He){return new(He||xe)},xe.\u0275prov=t.Yz7({token:xe,factory:function(){return function m(){return(0,t.LFG)(C)}()},providedIn:"platform"}),xe})();const v=new t.OlP("Location Initialized");let C=(()=>{class xe extends E{constructor(He){super(),this._doc=He,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return d().getBaseHref(this._doc)}onPopState(He){const Ut=d().getGlobalEventTarget(this._doc,"window");return Ut.addEventListener("popstate",He,!1),()=>Ut.removeEventListener("popstate",He)}onHashChange(He){const Ut=d().getGlobalEventTarget(this._doc,"window");return Ut.addEventListener("hashchange",He,!1),()=>Ut.removeEventListener("hashchange",He)}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(He){this._location.pathname=He}pushState(He,Ut,_r){n()?this._history.pushState(He,Ut,_r):this._location.hash=_r}replaceState(He,Ut,_r){n()?this._history.replaceState(He,Ut,_r):this._location.hash=_r}forward(){this._history.forward()}back(){this._history.back()}historyGo(He=0){this._history.go(He)}getState(){return this._history.state}}return xe.\u0275fac=function(He){return new(He||xe)(t.LFG(c))},xe.\u0275prov=t.Yz7({token:xe,factory:function(){return function i(){return new C((0,t.LFG)(c))}()},providedIn:"platform"}),xe})();function n(){return!!window.history.pushState}function P(xe,ht){if(0==xe.length)return ht;if(0==ht.length)return xe;let He=0;return xe.endsWith("/")&&He++,ht.startsWith("/")&&He++,2==He?xe+ht.substring(1):1==He?xe+ht:xe+"/"+ht}function I(xe){const ht=xe.match(/#|\?|$/),He=ht&&ht.index||xe.length;return xe.slice(0,He-("/"===xe[He-1]?1:0))+xe.slice(He)}function q(xe){return xe&&"?"!==xe[0]?"?"+xe:xe}let D=(()=>{class xe{historyGo(He){throw new Error("Not implemented")}}return xe.\u0275fac=function(He){return new(He||xe)},xe.\u0275prov=t.Yz7({token:xe,factory:function(){return(0,t.f3M)(T)},providedIn:"root"}),xe})();const M=new t.OlP("appBaseHref");let T=(()=>{class xe extends D{constructor(He,Ut){super(),this._platformLocation=He,this._removeListenerFns=[],this._baseHref=Ut??this._platformLocation.getBaseHrefFromDOM()??(0,t.f3M)(c).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(He){this._removeListenerFns.push(this._platformLocation.onPopState(He),this._platformLocation.onHashChange(He))}getBaseHref(){return this._baseHref}prepareExternalUrl(He){return P(this._baseHref,He)}path(He=!1){const Ut=this._platformLocation.pathname+q(this._platformLocation.search),_r=this._platformLocation.hash;return _r&&He?`${Ut}${_r}`:Ut}pushState(He,Ut,_r,$r){const Fe=this.prepareExternalUrl(_r+q($r));this._platformLocation.pushState(He,Ut,Fe)}replaceState(He,Ut,_r,$r){const Fe=this.prepareExternalUrl(_r+q($r));this._platformLocation.replaceState(He,Ut,Fe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(He=0){this._platformLocation.historyGo?.(He)}}return xe.\u0275fac=function(He){return new(He||xe)(t.LFG(E),t.LFG(M,8))},xe.\u0275prov=t.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),F=(()=>{class xe extends D{constructor(He,Ut){super(),this._platformLocation=He,this._baseHref="",this._removeListenerFns=[],null!=Ut&&(this._baseHref=Ut)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(He){this._removeListenerFns.push(this._platformLocation.onPopState(He),this._platformLocation.onHashChange(He))}getBaseHref(){return this._baseHref}path(He=!1){let Ut=this._platformLocation.hash;return null==Ut&&(Ut="#"),Ut.length>0?Ut.substring(1):Ut}prepareExternalUrl(He){const Ut=P(this._baseHref,He);return Ut.length>0?"#"+Ut:Ut}pushState(He,Ut,_r,$r){let Fe=this.prepareExternalUrl(_r+q($r));0==Fe.length&&(Fe=this._platformLocation.pathname),this._platformLocation.pushState(He,Ut,Fe)}replaceState(He,Ut,_r,$r){let Fe=this.prepareExternalUrl(_r+q($r));0==Fe.length&&(Fe=this._platformLocation.pathname),this._platformLocation.replaceState(He,Ut,Fe)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(He=0){this._platformLocation.historyGo?.(He)}}return xe.\u0275fac=function(He){return new(He||xe)(t.LFG(E),t.LFG(M,8))},xe.\u0275prov=t.Yz7({token:xe,factory:xe.\u0275fac}),xe})(),le=(()=>{class xe{constructor(He){this._subject=new t.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=He;const Ut=this._locationStrategy.getBaseHref();this._basePath=function Ee(xe){if(new RegExp("^(https?:)?//").test(xe)){const[,He]=xe.split(/\/\/[^\/]+/);return He}return xe}(I(ye(Ut))),this._locationStrategy.onPopState(_r=>{this._subject.emit({url:this.path(!0),pop:!0,state:_r.state,type:_r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(He=!1){return this.normalize(this._locationStrategy.path(He))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(He,Ut=""){return this.path()==this.normalize(He+q(Ut))}normalize(He){return xe.stripTrailingSlash(function de(xe,ht){if(!xe||!ht.startsWith(xe))return ht;const He=ht.substring(xe.length);return""===He||["/",";","?","#"].includes(He[0])?He:ht}(this._basePath,ye(He)))}prepareExternalUrl(He){return He&&"/"!==He[0]&&(He="/"+He),this._locationStrategy.prepareExternalUrl(He)}go(He,Ut="",_r=null){this._locationStrategy.pushState(_r,"",He,Ut),this._notifyUrlChangeListeners(this.prepareExternalUrl(He+q(Ut)),_r)}replaceState(He,Ut="",_r=null){this._locationStrategy.replaceState(_r,"",He,Ut),this._notifyUrlChangeListeners(this.prepareExternalUrl(He+q(Ut)),_r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(He=0){this._locationStrategy.historyGo?.(He)}onUrlChange(He){return this._urlChangeListeners.push(He),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ut=>{this._notifyUrlChangeListeners(Ut.url,Ut.state)})),()=>{const Ut=this._urlChangeListeners.indexOf(He);this._urlChangeListeners.splice(Ut,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(He="",Ut){this._urlChangeListeners.forEach(_r=>_r(He,Ut))}subscribe(He,Ut,_r){return this._subject.subscribe({next:He,error:Ut,complete:_r})}}return xe.normalizeQueryParams=q,xe.joinWithSlash=P,xe.stripTrailingSlash=I,xe.\u0275fac=function(He){return new(He||xe)(t.LFG(D))},xe.\u0275prov=t.Yz7({token:xe,factory:function(){return function V(){return new le((0,t.LFG)(D))}()},providedIn:"root"}),xe})();function ye(xe){return xe.replace(/\/index.html$/,"")}const Le={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 ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Percent=1]="Percent",ge[ge.Currency=2]="Currency",ge[ge.Scientific=3]="Scientific",ge))(),ee=(()=>((ee=ee||{})[ee.Format=0]="Format",ee[ee.Standalone=1]="Standalone",ee))(),se=(()=>((se=se||{})[se.Narrow=0]="Narrow",se[se.Abbreviated=1]="Abbreviated",se[se.Wide=2]="Wide",se[se.Short=3]="Short",se))(),W=(()=>((W=W||{})[W.Short=0]="Short",W[W.Medium=1]="Medium",W[W.Long=2]="Long",W[W.Full=3]="Full",W))(),L=(()=>((L=L||{})[L.Decimal=0]="Decimal",L[L.Group=1]="Group",L[L.List=2]="List",L[L.PercentSign=3]="PercentSign",L[L.PlusSign=4]="PlusSign",L[L.MinusSign=5]="MinusSign",L[L.Exponential=6]="Exponential",L[L.SuperscriptingExponent=7]="SuperscriptingExponent",L[L.PerMille=8]="PerMille",L[L.Infinity=9]="Infinity",L[L.NaN=10]="NaN",L[L.TimeSeparator=11]="TimeSeparator",L[L.CurrencyDecimal=12]="CurrencyDecimal",L[L.CurrencyGroup=13]="CurrencyGroup",L))();function j(xe,ht){return Y((0,t.cg1)(xe)[t.wAp.DateFormat],ht)}function Ne(xe,ht){return Y((0,t.cg1)(xe)[t.wAp.TimeFormat],ht)}function tt(xe,ht){return Y((0,t.cg1)(xe)[t.wAp.DateTimeFormat],ht)}function We(xe,ht){const He=(0,t.cg1)(xe),Ut=He[t.wAp.NumberSymbols][ht];if(typeof Ut>"u"){if(ht===L.CurrencyDecimal)return He[t.wAp.NumberSymbols][L.Decimal];if(ht===L.CurrencyGroup)return He[t.wAp.NumberSymbols][L.Group]}return Ut}function ze(xe,ht){return(0,t.cg1)(xe)[t.wAp.NumberFormats][ht]}function Ge(xe){if(!xe[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${xe[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Y(xe,ht){for(let He=ht;He>-1;He--)if(typeof xe[He]<"u")return xe[He];throw new Error("Locale data API: locale data undefined")}function S(xe){const[ht,He]=xe.split(":");return{hours:+ht,minutes:+He}}const Q=2,re=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,fe={},qe=/((?:[^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 $e=(()=>(($e=$e||{})[$e.Short=0]="Short",$e[$e.ShortGMT=1]="ShortGMT",$e[$e.Long=2]="Long",$e[$e.Extended=3]="Extended",$e))(),et=(()=>((et=et||{})[et.FullYear=0]="FullYear",et[et.Month=1]="Month",et[et.Date=2]="Date",et[et.Hours=3]="Hours",et[et.Minutes=4]="Minutes",et[et.Seconds=5]="Seconds",et[et.FractionalSeconds=6]="FractionalSeconds",et[et.Day=7]="Day",et))(),ot=(()=>((ot=ot||{})[ot.DayPeriods=0]="DayPeriods",ot[ot.Days=1]="Days",ot[ot.Months=2]="Months",ot[ot.Eras=3]="Eras",ot))();function ct(xe,ht,He,Ut){let _r=function Jt(xe){if(Me(xe))return xe;if("number"==typeof xe&&!isNaN(xe))return new Date(xe);if("string"==typeof xe){if(xe=xe.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(xe)){const[_r,$r=1,Fe=1]=xe.split("-").map(er=>+er);return pt(_r,$r-1,Fe)}const He=parseFloat(xe);if(!isNaN(xe-He))return new Date(He);let Ut;if(Ut=xe.match(re))return function kt(xe){const ht=new Date(0);let He=0,Ut=0;const _r=xe[8]?ht.setUTCFullYear:ht.setFullYear,$r=xe[8]?ht.setUTCHours:ht.setHours;xe[9]&&(He=Number(xe[9]+xe[10]),Ut=Number(xe[9]+xe[11])),_r.call(ht,Number(xe[1]),Number(xe[2])-1,Number(xe[3]));const Fe=Number(xe[4]||0)-He,er=Number(xe[5]||0)-Ut,pe=Number(xe[6]||0),dt=Math.floor(1e3*parseFloat("0."+(xe[7]||0)));return $r.call(ht,Fe,er,pe,dt),ht}(Ut)}const ht=new Date(xe);if(!Me(ht))throw new Error(`Unable to convert "${xe}" into a date`);return ht}(xe);ht=$t(He,ht)||ht;let er,Fe=[];for(;ht;){if(er=qe.exec(ht),!er){Fe.push(ht);break}{Fe=Fe.concat(er.slice(1));const jt=Fe.pop();if(!jt)break;ht=jt}}let pe=_r.getTimezoneOffset();Ut&&(pe=Nt(Ut,pe),_r=function Vt(xe,ht,He){const Ut=He?-1:1,_r=xe.getTimezoneOffset();return function Pt(xe,ht){return(xe=new Date(xe.getTime())).setMinutes(xe.getMinutes()+ht),xe}(xe,Ut*(Nt(ht,_r)-_r))}(_r,Ut,!0));let dt="";return Fe.forEach(jt=>{const Ir=function Xe(xe){if(Re[xe])return Re[xe];let ht;switch(xe){case"G":case"GG":case"GGG":ht=ar(ot.Eras,se.Abbreviated);break;case"GGGG":ht=ar(ot.Eras,se.Wide);break;case"GGGGG":ht=ar(ot.Eras,se.Narrow);break;case"y":ht=dr(et.FullYear,1,0,!1,!0);break;case"yy":ht=dr(et.FullYear,2,0,!0,!0);break;case"yyy":ht=dr(et.FullYear,3,0,!1,!0);break;case"yyyy":ht=dr(et.FullYear,4,0,!1,!0);break;case"Y":ht=ne(1);break;case"YY":ht=ne(2,!0);break;case"YYY":ht=ne(3);break;case"YYYY":ht=ne(4);break;case"M":case"L":ht=dr(et.Month,1,1);break;case"MM":case"LL":ht=dr(et.Month,2,1);break;case"MMM":ht=ar(ot.Months,se.Abbreviated);break;case"MMMM":ht=ar(ot.Months,se.Wide);break;case"MMMMM":ht=ar(ot.Months,se.Narrow);break;case"LLL":ht=ar(ot.Months,se.Abbreviated,ee.Standalone);break;case"LLLL":ht=ar(ot.Months,se.Wide,ee.Standalone);break;case"LLLLL":ht=ar(ot.Months,se.Narrow,ee.Standalone);break;case"w":ht=U(1);break;case"ww":ht=U(2);break;case"W":ht=U(1,!0);break;case"d":ht=dr(et.Date,1);break;case"dd":ht=dr(et.Date,2);break;case"c":case"cc":ht=dr(et.Day,1);break;case"ccc":ht=ar(ot.Days,se.Abbreviated,ee.Standalone);break;case"cccc":ht=ar(ot.Days,se.Wide,ee.Standalone);break;case"ccccc":ht=ar(ot.Days,se.Narrow,ee.Standalone);break;case"cccccc":ht=ar(ot.Days,se.Short,ee.Standalone);break;case"E":case"EE":case"EEE":ht=ar(ot.Days,se.Abbreviated);break;case"EEEE":ht=ar(ot.Days,se.Wide);break;case"EEEEE":ht=ar(ot.Days,se.Narrow);break;case"EEEEEE":ht=ar(ot.Days,se.Short);break;case"a":case"aa":case"aaa":ht=ar(ot.DayPeriods,se.Abbreviated);break;case"aaaa":ht=ar(ot.DayPeriods,se.Wide);break;case"aaaaa":ht=ar(ot.DayPeriods,se.Narrow);break;case"b":case"bb":case"bbb":ht=ar(ot.DayPeriods,se.Abbreviated,ee.Standalone,!0);break;case"bbbb":ht=ar(ot.DayPeriods,se.Wide,ee.Standalone,!0);break;case"bbbbb":ht=ar(ot.DayPeriods,se.Narrow,ee.Standalone,!0);break;case"B":case"BB":case"BBB":ht=ar(ot.DayPeriods,se.Abbreviated,ee.Format,!0);break;case"BBBB":ht=ar(ot.DayPeriods,se.Wide,ee.Format,!0);break;case"BBBBB":ht=ar(ot.DayPeriods,se.Narrow,ee.Format,!0);break;case"h":ht=dr(et.Hours,1,-12);break;case"hh":ht=dr(et.Hours,2,-12);break;case"H":ht=dr(et.Hours,1);break;case"HH":ht=dr(et.Hours,2);break;case"m":ht=dr(et.Minutes,1);break;case"mm":ht=dr(et.Minutes,2);break;case"s":ht=dr(et.Seconds,1);break;case"ss":ht=dr(et.Seconds,2);break;case"S":ht=dr(et.FractionalSeconds,1);break;case"SS":ht=dr(et.FractionalSeconds,2);break;case"SSS":ht=dr(et.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ht=qt($e.Short);break;case"ZZZZZ":ht=qt($e.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ht=qt($e.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ht=qt($e.Long);break;default:return null}return Re[xe]=ht,ht}(jt);dt+=Ir?Ir(_r,He,pe):"''"===jt?"'":jt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),dt}function pt(xe,ht,He){const Ut=new Date(0);return Ut.setFullYear(xe,ht,He),Ut.setHours(0,0,0),Ut}function $t(xe,ht){const He=function _e(xe){return(0,t.cg1)(xe)[t.wAp.LocaleId]}(xe);if(fe[He]=fe[He]||{},fe[He][ht])return fe[He][ht];let Ut="";switch(ht){case"shortDate":Ut=j(xe,W.Short);break;case"mediumDate":Ut=j(xe,W.Medium);break;case"longDate":Ut=j(xe,W.Long);break;case"fullDate":Ut=j(xe,W.Full);break;case"shortTime":Ut=Ne(xe,W.Short);break;case"mediumTime":Ut=Ne(xe,W.Medium);break;case"longTime":Ut=Ne(xe,W.Long);break;case"fullTime":Ut=Ne(xe,W.Full);break;case"short":const _r=$t(xe,"shortTime"),$r=$t(xe,"shortDate");Ut=It(tt(xe,W.Short),[_r,$r]);break;case"medium":const Fe=$t(xe,"mediumTime"),er=$t(xe,"mediumDate");Ut=It(tt(xe,W.Medium),[Fe,er]);break;case"long":const pe=$t(xe,"longTime"),dt=$t(xe,"longDate");Ut=It(tt(xe,W.Long),[pe,dt]);break;case"full":const jt=$t(xe,"fullTime"),Ir=$t(xe,"fullDate");Ut=It(tt(xe,W.Full),[jt,Ir])}return Ut&&(fe[He][ht]=Ut),Ut}function It(xe,ht){return ht&&(xe=xe.replace(/\{([^}]+)}/g,function(He,Ut){return null!=ht&&Ut in ht?ht[Ut]:He})),xe}function fr(xe,ht,He="-",Ut,_r){let $r="";(xe<0||_r&&xe<=0)&&(_r?xe=1-xe:(xe=-xe,$r=He));let Fe=String(xe);for(;Fe.length<ht;)Fe="0"+Fe;return Ut&&(Fe=Fe.slice(Fe.length-ht)),$r+Fe}function dr(xe,ht,He=0,Ut=!1,_r=!1){return function($r,Fe){let er=function bt(xe,ht){switch(xe){case et.FullYear:return ht.getFullYear();case et.Month:return ht.getMonth();case et.Date:return ht.getDate();case et.Hours:return ht.getHours();case et.Minutes:return ht.getMinutes();case et.Seconds:return ht.getSeconds();case et.FractionalSeconds:return ht.getMilliseconds();case et.Day:return ht.getDay();default:throw new Error(`Unknown DateType value "${xe}".`)}}(xe,$r);if((He>0||er>-He)&&(er+=He),xe===et.Hours)0===er&&-12===He&&(er=12);else if(xe===et.FractionalSeconds)return function yt(xe,ht){return fr(xe,3).substring(0,ht)}(er,ht);const pe=We(Fe,L.MinusSign);return fr(er,ht,pe,Ut,_r)}}function ar(xe,ht,He=ee.Format,Ut=!1){return function(_r,$r){return function vt(xe,ht,He,Ut,_r,$r){switch(He){case ot.Months:return function w(xe,ht,He){const Ut=(0,t.cg1)(xe),$r=Y([Ut[t.wAp.MonthsFormat],Ut[t.wAp.MonthsStandalone]],ht);return Y($r,He)}(ht,_r,Ut)[xe.getMonth()];case ot.Days:return function Te(xe,ht,He){const Ut=(0,t.cg1)(xe),$r=Y([Ut[t.wAp.DaysFormat],Ut[t.wAp.DaysStandalone]],ht);return Y($r,He)}(ht,_r,Ut)[xe.getDay()];case ot.DayPeriods:const Fe=xe.getHours(),er=xe.getMinutes();if($r){const dt=function Tt(xe){const ht=(0,t.cg1)(xe);return Ge(ht),(ht[t.wAp.ExtraData][2]||[]).map(Ut=>"string"==typeof Ut?S(Ut):[S(Ut[0]),S(Ut[1])])}(ht),jt=function Et(xe,ht,He){const Ut=(0,t.cg1)(xe);Ge(Ut);const $r=Y([Ut[t.wAp.ExtraData][0],Ut[t.wAp.ExtraData][1]],ht)||[];return Y($r,He)||[]}(ht,_r,Ut),Ir=dt.findIndex(Ur=>{if(Array.isArray(Ur)){const[En,Fn]=Ur,qn=Fe>=En.hours&&er>=En.minutes,hi=Fe<Fn.hours||Fe===Fn.hours&&er<Fn.minutes;if(En.hours<Fn.hours){if(qn&&hi)return!0}else if(qn||hi)return!0}else if(Ur.hours===Fe&&Ur.minutes===er)return!0;return!1});if(-1!==Ir)return jt[Ir]}return function Z(xe,ht,He){const Ut=(0,t.cg1)(xe),$r=Y([Ut[t.wAp.DayPeriodsFormat],Ut[t.wAp.DayPeriodsStandalone]],ht);return Y($r,He)}(ht,_r,Ut)[Fe<12?0:1];case ot.Eras:return function k(xe,ht){return Y((0,t.cg1)(xe)[t.wAp.Eras],ht)}(ht,Ut)[xe.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${He}`)}}(_r,$r,xe,ht,He,Ut)}}function qt(xe){return function(ht,He,Ut){const _r=-1*Ut,$r=We(He,L.MinusSign),Fe=_r>0?Math.floor(_r/60):Math.ceil(_r/60);switch(xe){case $e.Short:return(_r>=0?"+":"")+fr(Fe,2,$r)+fr(Math.abs(_r%60),2,$r);case $e.ShortGMT:return"GMT"+(_r>=0?"+":"")+fr(Fe,1,$r);case $e.Long:return"GMT"+(_r>=0?"+":"")+fr(Fe,2,$r)+":"+fr(Math.abs(_r%60),2,$r);case $e.Extended:return 0===Ut?"Z":(_r>=0?"+":"")+fr(Fe,2,$r)+":"+fr(Math.abs(_r%60),2,$r);default:throw new Error(`Unknown zone width "${xe}"`)}}}const br=0,lt=4;function G(xe){return pt(xe.getFullYear(),xe.getMonth(),xe.getDate()+(lt-xe.getDay()))}function U(xe,ht=!1){return function(He,Ut){let _r;if(ht){const $r=new Date(He.getFullYear(),He.getMonth(),1).getDay()-1,Fe=He.getDate();_r=1+Math.floor((Fe+$r)/7)}else{const $r=G(He),Fe=function De(xe){const ht=pt(xe,br,1).getDay();return pt(xe,0,1+(ht<=lt?lt:lt+7)-ht)}($r.getFullYear()),er=$r.getTime()-Fe.getTime();_r=1+Math.round(er/6048e5)}return fr(_r,xe,We(Ut,L.MinusSign))}}function ne(xe,ht=!1){return function(He,Ut){return fr(G(He).getFullYear(),xe,We(Ut,L.MinusSign),ht)}}const Re={};function Nt(xe,ht){xe=xe.replace(/:/g,"");const He=Date.parse("Jan 01, 1970 00:00:00 "+xe)/6e4;return isNaN(He)?ht:He}function Me(xe){return xe instanceof Date&&!isNaN(xe.valueOf())}const ut=/^(\d+)?\.((\d+)(-(\d+))?)?$/,nt=22,Ht=".",pr="0",Lr=";",Kr=",",Cn="#",Wn="\xa4";function ti(xe,ht,He,Ut,_r,$r,Fe=!1){let er="",pe=!1;if(isFinite(xe)){let dt=function rn(xe){let Ut,_r,$r,Fe,er,ht=Math.abs(xe)+"",He=0;for((_r=ht.indexOf(Ht))>-1&&(ht=ht.replace(Ht,"")),($r=ht.search(/e/i))>0?(_r<0&&(_r=$r),_r+=+ht.slice($r+1),ht=ht.substring(0,$r)):_r<0&&(_r=ht.length),$r=0;ht.charAt($r)===pr;$r++);if($r===(er=ht.length))Ut=[0],_r=1;else{for(er--;ht.charAt(er)===pr;)er--;for(_r-=$r,Ut=[],Fe=0;$r<=er;$r++,Fe++)Ut[Fe]=Number(ht.charAt($r))}return _r>nt&&(Ut=Ut.splice(0,nt-1),He=_r-1,_r=1),{digits:Ut,exponent:He,integerLen:_r}}(xe);Fe&&(dt=function tn(xe){if(0===xe.digits[0])return xe;const ht=xe.digits.length-xe.integerLen;return xe.exponent?xe.exponent+=2:(0===ht?xe.digits.push(0,0):1===ht&&xe.digits.push(0),xe.integerLen+=2),xe}(dt));let jt=ht.minInt,Ir=ht.minFrac,Ur=ht.maxFrac;if($r){const gi=$r.match(ut);if(null===gi)throw new Error(`${$r} is not a valid digit info`);const oa=gi[1],Ea=gi[3],da=gi[5];null!=oa&&(jt=Gn(oa)),null!=Ea&&(Ir=Gn(Ea)),null!=da?Ur=Gn(da):null!=Ea&&Ir>Ur&&(Ur=Ir)}!function vn(xe,ht,He){if(ht>He)throw new Error(`The minimum number of digits after fraction (${ht}) is higher than the maximum (${He}).`);let Ut=xe.digits,_r=Ut.length-xe.integerLen;const $r=Math.min(Math.max(ht,_r),He);let Fe=$r+xe.integerLen,er=Ut[Fe];if(Fe>0){Ut.splice(Math.max(xe.integerLen,Fe));for(let Ir=Fe;Ir<Ut.length;Ir++)Ut[Ir]=0}else{_r=Math.max(0,_r),xe.integerLen=1,Ut.length=Math.max(1,Fe=$r+1),Ut[0]=0;for(let Ir=1;Ir<Fe;Ir++)Ut[Ir]=0}if(er>=5)if(Fe-1<0){for(let Ir=0;Ir>Fe;Ir--)Ut.unshift(0),xe.integerLen++;Ut.unshift(1),xe.integerLen++}else Ut[Fe-1]++;for(;_r<Math.max(0,$r);_r++)Ut.push(0);let pe=0!==$r;const dt=ht+xe.integerLen,jt=Ut.reduceRight(function(Ir,Ur,En,Fn){return Fn[En]=(Ur+=Ir)<10?Ur:Ur-10,pe&&(0===Fn[En]&&En>=dt?Fn.pop():pe=!1),Ur>=10?1:0},0);jt&&(Ut.unshift(jt),xe.integerLen++)}(dt,Ir,Ur);let En=dt.digits,Fn=dt.integerLen;const qn=dt.exponent;let hi=[];for(pe=En.every(gi=>!gi);Fn<jt;Fn++)En.unshift(0);for(;Fn<0;Fn++)En.unshift(0);Fn>0?hi=En.splice(Fn,En.length):(hi=En,En=[0]);const _i=[];for(En.length>=ht.lgSize&&_i.unshift(En.splice(-ht.lgSize,En.length).join(""));En.length>ht.gSize;)_i.unshift(En.splice(-ht.gSize,En.length).join(""));En.length&&_i.unshift(En.join("")),er=_i.join(We(He,Ut)),hi.length&&(er+=We(He,_r)+hi.join("")),qn&&(er+=We(He,L.Exponential)+"+"+qn)}else er=We(He,L.Infinity);return er=xe<0&&!pe?ht.negPre+er+ht.negSuf:ht.posPre+er+ht.posSuf,er}function nr(xe,ht="-"){const He={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ut=xe.split(Lr),_r=Ut[0],$r=Ut[1],Fe=-1!==_r.indexOf(Ht)?_r.split(Ht):[_r.substring(0,_r.lastIndexOf(pr)+1),_r.substring(_r.lastIndexOf(pr)+1)],er=Fe[0],pe=Fe[1]||"";He.posPre=er.substring(0,er.indexOf(Cn));for(let jt=0;jt<pe.length;jt++){const Ir=pe.charAt(jt);Ir===pr?He.minFrac=He.maxFrac=jt+1:Ir===Cn?He.maxFrac=jt+1:He.posSuf+=Ir}const dt=er.split(Kr);if(He.gSize=dt[1]?dt[1].length:0,He.lgSize=dt[2]||dt[1]?(dt[2]||dt[1]).length:0,$r){const jt=_r.length-He.posPre.length-He.posSuf.length,Ir=$r.indexOf(Cn);He.negPre=$r.substring(0,Ir).replace(/'/g,""),He.negSuf=$r.slice(Ir+jt).replace(/'/g,"")}else He.negPre=ht+He.posPre,He.negSuf=He.posSuf;return He}function Gn(xe){const ht=parseInt(xe);if(isNaN(ht))throw new Error("Invalid integer literal when parsing "+xe);return ht}function ci(xe,ht){ht=encodeURIComponent(ht);for(const He of xe.split(";")){const Ut=He.indexOf("="),[_r,$r]=-1==Ut?[He,""]:[He.slice(0,Ut),He.slice(Ut+1)];if(_r.trim()===ht)return decodeURIComponent($r)}return null}const Kt=/\s+/,Ar=[];let ie=(()=>{class xe{constructor(He,Ut,_r,$r){this._iterableDiffers=He,this._keyValueDiffers=Ut,this._ngEl=_r,this._renderer=$r,this.initialClasses=Ar,this.stateMap=new Map}set klass(He){this.initialClasses=null!=He?He.trim().split(Kt):Ar}set ngClass(He){this.rawClass="string"==typeof He?He.trim().split(Kt):He}ngDoCheck(){for(const Ut of this.initialClasses)this._updateState(Ut,!0);const He=this.rawClass;if(Array.isArray(He)||He instanceof Set)for(const Ut of He)this._updateState(Ut,!0);else if(null!=He)for(const Ut of Object.keys(He))this._updateState(Ut,Boolean(He[Ut]));this._applyStateDiff()}_updateState(He,Ut){const _r=this.stateMap.get(He);void 0!==_r?(_r.enabled!==Ut&&(_r.changed=!0,_r.enabled=Ut),_r.touched=!0):this.stateMap.set(He,{enabled:Ut,changed:!0,touched:!0})}_applyStateDiff(){for(const He of this.stateMap){const Ut=He[0],_r=He[1];_r.changed?(this._toggleClass(Ut,_r.enabled),_r.changed=!1):_r.touched||(_r.enabled&&this._toggleClass(Ut,!1),this.stateMap.delete(Ut)),_r.touched=!1}}_toggleClass(He,Ut){(He=He.trim()).length>0&&He.split(Kt).forEach(_r=>{Ut?this._renderer.addClass(this._ngEl.nativeElement,_r):this._renderer.removeClass(this._ngEl.nativeElement,_r)})}}return xe.\u0275fac=function(He){return new(He||xe)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))},xe.\u0275dir=t.lG2({type:xe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),xe})();class kr{constructor(ht,He,Ut,_r){this.$implicit=ht,this.ngForOf=He,this.index=Ut,this.count=_r}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 mn=(()=>{class xe{set ngForOf(He){this._ngForOf=He,this._ngForOfDirty=!0}set ngForTrackBy(He){this._trackByFn=He}get ngForTrackBy(){return this._trackByFn}constructor(He,Ut,_r){this._viewContainer=He,this._template=Ut,this._differs=_r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(He){He&&(this._template=He)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const He=this._ngForOf;!this._differ&&He&&(this._differ=this._differs.find(He).create(this.ngForTrackBy))}if(this._differ){const He=this._differ.diff(this._ngForOf);He&&this._applyChanges(He)}}_applyChanges(He){const Ut=this._viewContainer;He.forEachOperation((_r,$r,Fe)=>{if(null==_r.previousIndex)Ut.createEmbeddedView(this._template,new kr(_r.item,this._ngForOf,-1,-1),null===Fe?void 0:Fe);else if(null==Fe)Ut.remove(null===$r?void 0:$r);else if(null!==$r){const er=Ut.get($r);Ut.move(er,Fe),un(er,_r)}});for(let _r=0,$r=Ut.length;_r<$r;_r++){const er=Ut.get(_r).context;er.index=_r,er.count=$r,er.ngForOf=this._ngForOf}He.forEachIdentityChange(_r=>{un(Ut.get(_r.currentIndex),_r)})}static ngTemplateContextGuard(He,Ut){return!0}}return xe.\u0275fac=function(He){return new(He||xe)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))},xe.\u0275dir=t.lG2({type:xe,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),xe})();function un(xe,ht){xe.context.$implicit=ht.item}let Sr=(()=>{class xe{constructor(He,Ut){this._viewContainer=He,this._context=new Er,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ut}set ngIf(He){this._context.$implicit=this._context.ngIf=He,this._updateView()}set ngIfThen(He){Ot("ngIfThen",He),this._thenTemplateRef=He,this._thenViewRef=null,this._updateView()}set ngIfElse(He){Ot("ngIfElse",He),this._elseTemplateRef=He,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(He,Ut){return!0}}return xe.\u0275fac=function(He){return new(He||xe)(t.Y36(t.s_b),t.Y36(t.Rgc))},xe.\u0275dir=t.lG2({type:xe,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),xe})();class Er{constructor(){this.$implicit=null,this.ngIf=null}}function Ot(xe,ht){if(ht&&!ht.createEmbeddedView)throw new Error(`${xe} must be a TemplateRef, but received '${(0,t.AaK)(ht)}'.`)}class lr{constructor(ht,He){this._viewContainerRef=ht,this._templateRef=He,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ht){ht&&!this._created?this.create():!ht&&this._created&&this.destroy()}}let Cr=(()=>{class xe{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(He){this._ngSwitch=He,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(He){this._defaultViews.push(He)}_matchCase(He){const Ut=He==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ut,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ut}_updateDefaultCases(He){if(this._defaultViews.length>0&&He!==this._defaultUsed){this._defaultUsed=He;for(const Ut of this._defaultViews)Ut.enforceState(He)}}}return xe.\u0275fac=function(He){return new(He||xe)},xe.\u0275dir=t.lG2({type:xe,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),xe})(),Gr=(()=>{class xe{constructor(He,Ut,_r){this.ngSwitch=_r,_r._addCase(),this._view=new lr(He,Ut)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return xe.\u0275fac=function(He){return new(He||xe)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(Cr,9))},xe.\u0275dir=t.lG2({type:xe,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),xe})(),Ln=(()=>{class xe{constructor(He,Ut,_r){_r._addDefault(new lr(He,Ut))}}return xe.\u0275fac=function(He){return new(He||xe)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(Cr,9))},xe.\u0275dir=t.lG2({type:xe,selectors:[["","ngSwitchDefault",""]],standalone:!0}),xe})(),$a=(()=>{class xe{constructor(He,Ut,_r){this._ngEl=He,this._differs=Ut,this._renderer=_r,this._ngStyle=null,this._differ=null}set ngStyle(He){this._ngStyle=He,!this._differ&&He&&(this._differ=this._differs.find(He).create())}ngDoCheck(){if(this._differ){const He=this._differ.diff(this._ngStyle);He&&this._applyChanges(He)}}_setStyle(He,Ut){const[_r,$r]=He.split("."),Fe=-1===_r.indexOf("-")?void 0:t.JOm.DashCase;null!=Ut?this._renderer.setStyle(this._ngEl.nativeElement,_r,$r?`${Ut}${$r}`:Ut,Fe):this._renderer.removeStyle(this._ngEl.nativeElement,_r,Fe)}_applyChanges(He){He.forEachRemovedItem(Ut=>this._setStyle(Ut.key,null)),He.forEachAddedItem(Ut=>this._setStyle(Ut.key,Ut.currentValue)),He.forEachChangedItem(Ut=>this._setStyle(Ut.key,Ut.currentValue))}}return xe.\u0275fac=function(He){return new(He||xe)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))},xe.\u0275dir=t.lG2({type:xe,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),xe})(),La=(()=>{class xe{constructor(He){this._viewContainerRef=He,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(He){if(He.ngTemplateOutlet||He.ngTemplateOutletInjector){const Ut=this._viewContainerRef;if(this._viewRef&&Ut.remove(Ut.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:_r,ngTemplateOutletContext:$r,ngTemplateOutletInjector:Fe}=this;this._viewRef=Ut.createEmbeddedView(_r,$r,Fe?{injector:Fe}:void 0)}else this._viewRef=null}else this._viewRef&&He.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return xe.\u0275fac=function(He){return new(He||xe)(t.Y36(t.s_b))},xe.\u0275dir=t.lG2({type:xe,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.TTD]}),xe})();function ma(xe,ht){return new t.vHH(2100,!1)}class bn{createSubscription(ht,He){return ht.subscribe({next:He,error:Ut=>{throw Ut}})}dispose(ht){ht.unsubscribe()}}class ha{createSubscription(ht,He){return ht.then(He,Ut=>{throw Ut})}dispose(ht){}}const po=new ha,Ia=new bn;let Oa=(()=>{class xe{constructor(He){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=He}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(He){return this._obj?He!==this._obj?(this._dispose(),this.transform(He)):this._latestValue:(He&&this._subscribe(He),this._latestValue)}_subscribe(He){this._obj=He,this._strategy=this._selectStrategy(He),this._subscription=this._strategy.createSubscription(He,Ut=>this._updateLatestValue(He,Ut))}_selectStrategy(He){if((0,t.QGY)(He))return po;if((0,t.F4k)(He))return Ia;throw ma()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(He,Ut){He===this._obj&&(this._latestValue=Ut,this._ref.markForCheck())}}return xe.\u0275fac=function(He){return new(He||xe)(t.Y36(t.sBO,16))},xe.\u0275pipe=t.Yjl({name:"async",type:xe,pure:!1,standalone:!0}),xe})();const Yi=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let wi=(()=>{class xe{transform(He){if(null==He)return null;if("string"!=typeof He)throw ma();return He.replace(Yi,Ut=>Ut[0].toUpperCase()+Ut.slice(1).toLowerCase())}}return xe.\u0275fac=function(He){return new(He||xe)},xe.\u0275pipe=t.Yjl({name:"titlecase",type:xe,pure:!0,standalone:!0}),xe})(),Wi=(()=>{class xe{transform(He){if(null==He)return null;if("string"!=typeof He)throw ma();return He.toUpperCase()}}return xe.\u0275fac=function(He){return new(He||xe)},xe.\u0275pipe=t.Yjl({name:"uppercase",type:xe,pure:!0,standalone:!0}),xe})();const ji=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),sa=new t.OlP("DATE_PIPE_DEFAULT_OPTIONS");let Ui=(()=>{class xe{constructor(He,Ut,_r){this.locale=He,this.defaultTimezone=Ut,this.defaultOptions=_r}transform(He,Ut,_r,$r){if(null==He||""===He||He!=He)return null;try{return ct(He,Ut??this.defaultOptions?.dateFormat??"mediumDate",$r||this.locale,_r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Fe){throw ma()}}}return xe.\u0275fac=function(He){return new(He||xe)(t.Y36(t.soG,16),t.Y36(ji,24),t.Y36(sa,24))},xe.\u0275pipe=t.Yjl({name:"date",type:xe,pure:!0,standalone:!0}),xe})(),bo=(()=>{class xe{constructor(He){this._locale=He}transform(He,Ut,_r){if(!Ct(He))return null;_r=_r||this._locale;try{return function wt(xe,ht,He){return ti(xe,nr(ze(ht,ge.Decimal),We(ht,L.MinusSign)),ht,L.Group,L.Decimal,He)}(Dt(He),_r,Ut)}catch($r){throw ma()}}}return xe.\u0275fac=function(He){return new(He||xe)(t.Y36(t.soG,16))},xe.\u0275pipe=t.Yjl({name:"number",type:xe,pure:!0,standalone:!0}),xe})(),mi=(()=>{class xe{constructor(He,Ut="USD"){this._locale=He,this._defaultCurrencyCode=Ut}transform(He,Ut=this._defaultCurrencyCode,_r="symbol",$r,Fe){if(!Ct(He))return null;Fe=Fe||this._locale,"boolean"==typeof _r&&(_r=_r?"symbol":"code");let er=Ut||this._defaultCurrencyCode;"code"!==_r&&(er="symbol"===_r||"symbol-narrow"===_r?function K(xe,ht,He="en"){const Ut=function Se(xe){return(0,t.cg1)(xe)[t.wAp.Currencies]}(He)[xe]||Le[xe]||[],_r=Ut[1];return"narrow"===ht&&"string"==typeof _r?_r:Ut[0]||xe}(er,"symbol"===_r?"wide":"narrow",Fe):_r);try{return function yr(xe,ht,He,Ut,_r){const Fe=nr(ze(ht,ge.Currency),We(ht,L.MinusSign));return Fe.minFrac=function B(xe){let ht;const He=Le[xe];return He&&(ht=He[2]),"number"==typeof ht?ht:Q}(Ut),Fe.maxFrac=Fe.minFrac,ti(xe,Fe,ht,L.CurrencyGroup,L.CurrencyDecimal,_r).replace(Wn,He).replace(Wn,"").trim()}(Dt(He),Fe,er,Ut,$r)}catch(pe){throw ma()}}}return xe.\u0275fac=function(He){return new(He||xe)(t.Y36(t.soG,16),t.Y36(t.EJc,16))},xe.\u0275pipe=t.Yjl({name:"currency",type:xe,pure:!0,standalone:!0}),xe})();function Ct(xe){return!(null==xe||""===xe||xe!=xe)}function Dt(xe){if("string"==typeof xe&&!isNaN(Number(xe)-parseFloat(xe)))return Number(xe);if("number"!=typeof xe)throw new Error(`${xe} is not a number`);return xe}let ve=(()=>{class xe{transform(He,Ut,_r){if(null==He)return null;if(!this.supports(He))throw ma();return He.slice(Ut,_r)}supports(He){return"string"==typeof He||Array.isArray(He)}}return xe.\u0275fac=function(He){return new(He||xe)},xe.\u0275pipe=t.Yjl({name:"slice",type:xe,pure:!1,standalone:!0}),xe})(),Dr=(()=>{class xe{}return xe.\u0275fac=function(He){return new(He||xe)},xe.\u0275mod=t.oAB({type:xe}),xe.\u0275inj=t.cJS({}),xe})();const kn="browser",wn="server";function Mn(xe){return xe===kn}function $n(xe){return xe===wn}let ro=(()=>{class xe{}return xe.\u0275prov=(0,t.Yz7)({token:xe,providedIn:"root",factory:()=>new Na((0,t.LFG)(c),window)}),xe})();class Na{constructor(ht,He){this.document=ht,this.window=He,this.offset=()=>[0,0]}setOffset(ht){this.offset=Array.isArray(ht)?()=>ht:ht}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ht){this.supportsScrolling()&&this.window.scrollTo(ht[0],ht[1])}scrollToAnchor(ht){if(!this.supportsScrolling())return;const He=function Ka(xe,ht){const He=xe.getElementById(ht)||xe.getElementsByName(ht)[0];if(He)return He;if("function"==typeof xe.createTreeWalker&&xe.body&&(xe.body.createShadowRoot||xe.body.attachShadow)){const Ut=xe.createTreeWalker(xe.body,NodeFilter.SHOW_ELEMENT);let _r=Ut.currentNode;for(;_r;){const $r=_r.shadowRoot;if($r){const Fe=$r.getElementById(ht)||$r.querySelector(`[name="${ht}"]`);if(Fe)return Fe}_r=Ut.nextNode()}}return null}(this.document,ht);He&&(this.scrollToElement(He),He.focus())}setHistoryScrollRestoration(ht){if(this.supportScrollRestoration()){const He=this.window.history;He&&He.scrollRestoration&&(He.scrollRestoration=ht)}}scrollToElement(ht){const He=ht.getBoundingClientRect(),Ut=He.left+this.window.pageXOffset,_r=He.top+this.window.pageYOffset,$r=this.offset();this.window.scrollTo(Ut-$r[0],_r-$r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ht=ga(this.window.history)||ga(Object.getPrototypeOf(this.window.history));return!(!ht||!ht.writable&&!ht.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ga(xe){return Object.getOwnPropertyDescriptor(xe,"scrollRestoration")}class Bi{}},45734:(St,be,s)=>{"use strict";s.d(be,{JF:()=>qt,LE:()=>T,TP:()=>k,WM:()=>C,Zn:()=>W,eN:()=>_e});var t=s(17774),e=s(73991),d=s(95195),l=s(44070),r=s(16424),c=s(9754),E=s(87580);class m{}class v{}class C{constructor(G){this.normalizedNames=new Map,this.lazyUpdate=null,G?this.lazyInit="string"==typeof G?()=>{this.headers=new Map,G.split("\n").forEach(U=>{const ne=U.indexOf(":");if(ne>0){const Re=U.slice(0,ne),Xe=Re.toLowerCase(),Nt=U.slice(ne+1).trim();this.maybeSetNormalizedName(Re,Xe),this.headers.has(Xe)?this.headers.get(Xe).push(Nt):this.headers.set(Xe,[Nt])}})}:()=>{this.headers=new Map,Object.entries(G).forEach(([U,ne])=>{let Re;if(Re="string"==typeof ne?[ne]:"number"==typeof ne?[ne.toString()]:ne.map(Xe=>Xe.toString()),Re.length>0){const Xe=U.toLowerCase();this.headers.set(Xe,Re),this.maybeSetNormalizedName(U,Xe)}})}:this.headers=new Map}has(G){return this.init(),this.headers.has(G.toLowerCase())}get(G){this.init();const U=this.headers.get(G.toLowerCase());return U&&U.length>0?U[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(G){return this.init(),this.headers.get(G.toLowerCase())||null}append(G,U){return this.clone({name:G,value:U,op:"a"})}set(G,U){return this.clone({name:G,value:U,op:"s"})}delete(G,U){return this.clone({name:G,value:U,op:"d"})}maybeSetNormalizedName(G,U){this.normalizedNames.has(U)||this.normalizedNames.set(U,G)}init(){this.lazyInit&&(this.lazyInit instanceof C?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(G=>this.applyUpdate(G)),this.lazyUpdate=null))}copyFrom(G){G.init(),Array.from(G.headers.keys()).forEach(U=>{this.headers.set(U,G.headers.get(U)),this.normalizedNames.set(U,G.normalizedNames.get(U))})}clone(G){const U=new C;return U.lazyInit=this.lazyInit&&this.lazyInit instanceof C?this.lazyInit:this,U.lazyUpdate=(this.lazyUpdate||[]).concat([G]),U}applyUpdate(G){const U=G.name.toLowerCase();switch(G.op){case"a":case"s":let ne=G.value;if("string"==typeof ne&&(ne=[ne]),0===ne.length)return;this.maybeSetNormalizedName(G.name,U);const Re=("a"===G.op?this.headers.get(U):void 0)||[];Re.push(...ne),this.headers.set(U,Re);break;case"d":const Xe=G.value;if(Xe){let Nt=this.headers.get(U);if(!Nt)return;Nt=Nt.filter(Pt=>-1===Xe.indexOf(Pt)),0===Nt.length?(this.headers.delete(U),this.normalizedNames.delete(U)):this.headers.set(U,Nt)}else this.headers.delete(U),this.normalizedNames.delete(U)}}forEach(G){this.init(),Array.from(this.normalizedNames.keys()).forEach(U=>G(this.normalizedNames.get(U),this.headers.get(U)))}}class i{encodeKey(G){return D(G)}encodeValue(G){return D(G)}decodeKey(G){return decodeURIComponent(G)}decodeValue(G){return decodeURIComponent(G)}}const I=/%(\d[a-f0-9])/gi,q={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function D(De){return encodeURIComponent(De).replace(I,(G,U)=>q[U]??G)}function M(De){return`${De}`}class T{constructor(G={}){if(this.updates=null,this.cloneFrom=null,this.encoder=G.encoder||new i,G.fromString){if(G.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function P(De,G){const U=new Map;return De.length>0&&De.replace(/^\?/,"").split("&").forEach(Re=>{const Xe=Re.indexOf("="),[Nt,Pt]=-1==Xe?[G.decodeKey(Re),""]:[G.decodeKey(Re.slice(0,Xe)),G.decodeValue(Re.slice(Xe+1))],Vt=U.get(Nt)||[];Vt.push(Pt),U.set(Nt,Vt)}),U}(G.fromString,this.encoder)}else G.fromObject?(this.map=new Map,Object.keys(G.fromObject).forEach(U=>{const ne=G.fromObject[U],Re=Array.isArray(ne)?ne.map(M):[M(ne)];this.map.set(U,Re)})):this.map=null}has(G){return this.init(),this.map.has(G)}get(G){this.init();const U=this.map.get(G);return U?U[0]:null}getAll(G){return this.init(),this.map.get(G)||null}keys(){return this.init(),Array.from(this.map.keys())}append(G,U){return this.clone({param:G,value:U,op:"a"})}appendAll(G){const U=[];return Object.keys(G).forEach(ne=>{const Re=G[ne];Array.isArray(Re)?Re.forEach(Xe=>{U.push({param:ne,value:Xe,op:"a"})}):U.push({param:ne,value:Re,op:"a"})}),this.clone(U)}set(G,U){return this.clone({param:G,value:U,op:"s"})}delete(G,U){return this.clone({param:G,value:U,op:"d"})}toString(){return this.init(),this.keys().map(G=>{const U=this.encoder.encodeKey(G);return this.map.get(G).map(ne=>U+"="+this.encoder.encodeValue(ne)).join("&")}).filter(G=>""!==G).join("&")}clone(G){const U=new T({encoder:this.encoder});return U.cloneFrom=this.cloneFrom||this,U.updates=(this.updates||[]).concat(G),U}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(G=>this.map.set(G,this.cloneFrom.map.get(G))),this.updates.forEach(G=>{switch(G.op){case"a":case"s":const U=("a"===G.op?this.map.get(G.param):void 0)||[];U.push(M(G.value)),this.map.set(G.param,U);break;case"d":if(void 0===G.value){this.map.delete(G.param);break}{let ne=this.map.get(G.param)||[];const Re=ne.indexOf(M(G.value));-1!==Re&&ne.splice(Re,1),ne.length>0?this.map.set(G.param,ne):this.map.delete(G.param)}}}),this.cloneFrom=this.updates=null)}}class le{constructor(){this.map=new Map}set(G,U){return this.map.set(G,U),this}get(G){return this.map.has(G)||this.map.set(G,G.defaultValue()),this.map.get(G)}delete(G){return this.map.delete(G),this}has(G){return this.map.has(G)}keys(){return this.map.keys()}}function de(De){return typeof ArrayBuffer<"u"&&De instanceof ArrayBuffer}function ye(De){return typeof Blob<"u"&&De instanceof Blob}function Ee(De){return typeof FormData<"u"&&De instanceof FormData}class ge{constructor(G,U,ne,Re){let Xe;if(this.url=U,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=G.toUpperCase(),function V(De){switch(De){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Re?(this.body=void 0!==ne?ne:null,Xe=Re):Xe=ne,Xe&&(this.reportProgress=!!Xe.reportProgress,this.withCredentials=!!Xe.withCredentials,Xe.responseType&&(this.responseType=Xe.responseType),Xe.headers&&(this.headers=Xe.headers),Xe.context&&(this.context=Xe.context),Xe.params&&(this.params=Xe.params)),this.headers||(this.headers=new C),this.context||(this.context=new le),this.params){const Nt=this.params.toString();if(0===Nt.length)this.urlWithParams=U;else{const Pt=U.indexOf("?");this.urlWithParams=U+(-1===Pt?"?":Pt<U.length-1?"&":"")+Nt}}else this.params=new T,this.urlWithParams=U}serializeBody(){return null===this.body?null:de(this.body)||ye(this.body)||Ee(this.body)||function Le(De){return typeof URLSearchParams<"u"&&De instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof T?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||Ee(this.body)?null:ye(this.body)?this.body.type||null:de(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof T?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(G={}){const U=G.method||this.method,ne=G.url||this.url,Re=G.responseType||this.responseType,Xe=void 0!==G.body?G.body:this.body,Nt=void 0!==G.withCredentials?G.withCredentials:this.withCredentials,Pt=void 0!==G.reportProgress?G.reportProgress:this.reportProgress;let Vt=G.headers||this.headers,Jt=G.params||this.params;const kt=G.context??this.context;return void 0!==G.setHeaders&&(Vt=Object.keys(G.setHeaders).reduce((Me,ut)=>Me.set(ut,G.setHeaders[ut]),Vt)),G.setParams&&(Jt=Object.keys(G.setParams).reduce((Me,ut)=>Me.set(ut,G.setParams[ut]),Jt)),new ge(U,ne,Xe,{params:Jt,headers:Vt,context:kt,reportProgress:Pt,responseType:Re,withCredentials:Nt})}}var ue=(()=>((ue=ue||{})[ue.Sent=0]="Sent",ue[ue.UploadProgress=1]="UploadProgress",ue[ue.ResponseHeader=2]="ResponseHeader",ue[ue.DownloadProgress=3]="DownloadProgress",ue[ue.Response=4]="Response",ue[ue.User=5]="User",ue))();class ee{constructor(G,U=200,ne="OK"){this.headers=G.headers||new C,this.status=void 0!==G.status?G.status:U,this.statusText=G.statusText||ne,this.url=G.url||null,this.ok=this.status>=200&&this.status<300}}class se extends ee{constructor(G={}){super(G),this.type=ue.ResponseHeader}clone(G={}){return new se({headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class W extends ee{constructor(G={}){super(G),this.type=ue.Response,this.body=void 0!==G.body?G.body:null}clone(G={}){return new W({body:void 0!==G.body?G.body:this.body,headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class L extends ee{constructor(G){super(G,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${G.url||"(unknown url)"}`:`Http failure response for ${G.url||"(unknown url)"}: ${G.status} ${G.statusText}`,this.error=G.error||null}}function he(De,G){return{body:G,headers:De.headers,context:De.context,observe:De.observe,params:De.params,reportProgress:De.reportProgress,responseType:De.responseType,withCredentials:De.withCredentials}}let _e=(()=>{class De{constructor(U){this.handler=U}request(U,ne,Re={}){let Xe;if(U instanceof ge)Xe=U;else{let Vt,Jt;Vt=Re.headers instanceof C?Re.headers:new C(Re.headers),Re.params&&(Jt=Re.params instanceof T?Re.params:new T({fromObject:Re.params})),Xe=new ge(U,ne,void 0!==Re.body?Re.body:null,{headers:Vt,context:Re.context,params:Jt,reportProgress:Re.reportProgress,responseType:Re.responseType||"json",withCredentials:Re.withCredentials})}const Nt=(0,d.of)(Xe).pipe((0,r.b)(Vt=>this.handler.handle(Vt)));if(U instanceof ge||"events"===Re.observe)return Nt;const Pt=Nt.pipe((0,c.h)(Vt=>Vt instanceof W));switch(Re.observe||"body"){case"body":switch(Xe.responseType){case"arraybuffer":return Pt.pipe((0,E.U)(Vt=>{if(null!==Vt.body&&!(Vt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Vt.body}));case"blob":return Pt.pipe((0,E.U)(Vt=>{if(null!==Vt.body&&!(Vt.body instanceof Blob))throw new Error("Response is not a Blob.");return Vt.body}));case"text":return Pt.pipe((0,E.U)(Vt=>{if(null!==Vt.body&&"string"!=typeof Vt.body)throw new Error("Response is not a string.");return Vt.body}));default:return Pt.pipe((0,E.U)(Vt=>Vt.body))}case"response":return Pt;default:throw new Error(`Unreachable: unhandled observe type ${Re.observe}}`)}}delete(U,ne={}){return this.request("DELETE",U,ne)}get(U,ne={}){return this.request("GET",U,ne)}head(U,ne={}){return this.request("HEAD",U,ne)}jsonp(U,ne){return this.request("JSONP",U,{params:(new T).append(ne,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(U,ne={}){return this.request("OPTIONS",U,ne)}patch(U,ne,Re={}){return this.request("PATCH",U,he(Re,ne))}post(U,ne,Re={}){return this.request("POST",U,he(Re,ne))}put(U,ne,Re={}){return this.request("PUT",U,he(Re,ne))}}return De.\u0275fac=function(U){return new(U||De)(e.LFG(m))},De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac}),De})();function Z(De,G){return G(De)}function Te(De,G){return(U,ne)=>G.intercept(U,{handle:Re=>De(Re,ne)})}const k=new e.OlP("HTTP_INTERCEPTORS"),x=new e.OlP("HTTP_INTERCEPTOR_FNS");function z(){let De=null;return(G,U)=>(null===De&&(De=((0,e.f3M)(k,{optional:!0})??[]).reduceRight(Te,Z)),De(G,U))}let j=(()=>{class De extends m{constructor(U,ne){super(),this.backend=U,this.injector=ne,this.chain=null}handle(U){if(null===this.chain){const ne=Array.from(new Set(this.injector.get(x)));this.chain=ne.reduceRight((Re,Xe)=>function w(De,G,U){return(ne,Re)=>U.runInContext(()=>G(ne,Xe=>De(Xe,Re)))}(Re,Xe,this.injector),Z)}return this.chain(U,ne=>this.backend.handle(ne))}}return De.\u0275fac=function(U){return new(U||De)(e.LFG(v),e.LFG(e.lqb))},De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac}),De})();const Et=/^\)\]\}',?\n/;let Y=(()=>{class De{constructor(U){this.xhrFactory=U}handle(U){if("JSONP"===U.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new l.y(ne=>{const Re=this.xhrFactory.build();if(Re.open(U.method,U.urlWithParams),U.withCredentials&&(Re.withCredentials=!0),U.headers.forEach((nt,Ht)=>Re.setRequestHeader(nt,Ht.join(","))),U.headers.has("Accept")||Re.setRequestHeader("Accept","application/json, text/plain, */*"),!U.headers.has("Content-Type")){const nt=U.detectContentTypeHeader();null!==nt&&Re.setRequestHeader("Content-Type",nt)}if(U.responseType){const nt=U.responseType.toLowerCase();Re.responseType="json"!==nt?nt:"text"}const Xe=U.serializeBody();let Nt=null;const Pt=()=>{if(null!==Nt)return Nt;const nt=Re.statusText||"OK",Ht=new C(Re.getAllResponseHeaders()),pr=function H(De){return"responseURL"in De&&De.responseURL?De.responseURL:/^X-Request-URL:/m.test(De.getAllResponseHeaders())?De.getResponseHeader("X-Request-URL"):null}(Re)||U.url;return Nt=new se({headers:Ht,status:Re.status,statusText:nt,url:pr}),Nt},Vt=()=>{let{headers:nt,status:Ht,statusText:pr,url:Lr}=Pt(),Kr=null;204!==Ht&&(Kr=typeof Re.response>"u"?Re.responseText:Re.response),0===Ht&&(Ht=Kr?200:0);let Cn=Ht>=200&&Ht<300;if("json"===U.responseType&&"string"==typeof Kr){const Wn=Kr;Kr=Kr.replace(Et,"");try{Kr=""!==Kr?JSON.parse(Kr):null}catch(zn){Kr=Wn,Cn&&(Cn=!1,Kr={error:zn,text:Kr})}}Cn?(ne.next(new W({body:Kr,headers:nt,status:Ht,statusText:pr,url:Lr||void 0})),ne.complete()):ne.error(new L({error:Kr,headers:nt,status:Ht,statusText:pr,url:Lr||void 0}))},Jt=nt=>{const{url:Ht}=Pt(),pr=new L({error:nt,status:Re.status||0,statusText:Re.statusText||"Unknown Error",url:Ht||void 0});ne.error(pr)};let kt=!1;const Me=nt=>{kt||(ne.next(Pt()),kt=!0);let Ht={type:ue.DownloadProgress,loaded:nt.loaded};nt.lengthComputable&&(Ht.total=nt.total),"text"===U.responseType&&Re.responseText&&(Ht.partialText=Re.responseText),ne.next(Ht)},ut=nt=>{let Ht={type:ue.UploadProgress,loaded:nt.loaded};nt.lengthComputable&&(Ht.total=nt.total),ne.next(Ht)};return Re.addEventListener("load",Vt),Re.addEventListener("error",Jt),Re.addEventListener("timeout",Jt),Re.addEventListener("abort",Jt),U.reportProgress&&(Re.addEventListener("progress",Me),null!==Xe&&Re.upload&&Re.upload.addEventListener("progress",ut)),Re.send(Xe),ne.next({type:ue.Sent}),()=>{Re.removeEventListener("error",Jt),Re.removeEventListener("abort",Jt),Re.removeEventListener("load",Vt),Re.removeEventListener("timeout",Jt),U.reportProgress&&(Re.removeEventListener("progress",Me),null!==Xe&&Re.upload&&Re.upload.removeEventListener("progress",ut)),Re.readyState!==Re.DONE&&Re.abort()}})}}return De.\u0275fac=function(U){return new(U||De)(e.LFG(t.JF))},De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac}),De})();const S=new e.OlP("XSRF_ENABLED"),Q=new e.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),re=new e.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class fe{}let qe=(()=>{class De{constructor(U,ne,Re){this.doc=U,this.platform=ne,this.cookieName=Re,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const U=this.doc.cookie||"";return U!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,t.Mx)(U,this.cookieName),this.lastCookieString=U),this.lastToken}}return De.\u0275fac=function(U){return new(U||De)(e.LFG(t.K0),e.LFG(e.Lbi),e.LFG(Q))},De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac}),De})();function $e(De,G){const U=De.url.toLowerCase();if(!(0,e.f3M)(S)||"GET"===De.method||"HEAD"===De.method||U.startsWith("http://")||U.startsWith("https://"))return G(De);const ne=(0,e.f3M)(fe).getToken(),Re=(0,e.f3M)(re);return null!=ne&&!De.headers.has(Re)&&(De=De.clone({headers:De.headers.set(Re,ne)})),G(De)}var ot=(()=>((ot=ot||{})[ot.Interceptors=0]="Interceptors",ot[ot.LegacyInterceptors=1]="LegacyInterceptors",ot[ot.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ot[ot.NoXsrfProtection=3]="NoXsrfProtection",ot[ot.JsonpSupport=4]="JsonpSupport",ot[ot.RequestsMadeViaParent=5]="RequestsMadeViaParent",ot))();function ct(De,G){return{\u0275kind:De,\u0275providers:G}}function pt(...De){const G=[_e,Y,j,{provide:m,useExisting:j},{provide:v,useExisting:Y},{provide:x,useValue:$e,multi:!0},{provide:S,useValue:!0},{provide:fe,useClass:qe}];for(const U of De)G.push(...U.\u0275providers);return(0,e.MR2)(G)}const It=new e.OlP("LEGACY_INTERCEPTOR_FN");let qt=(()=>{class De{}return De.\u0275fac=function(U){return new(U||De)},De.\u0275mod=e.oAB({type:De}),De.\u0275inj=e.cJS({providers:[pt(ct(ot.LegacyInterceptors,[{provide:It,useFactory:z},{provide:x,useExisting:It,multi:!0}]))]}),De})()},73991:(St,be,s)=>{"use strict";s.d(be,{$8M:()=>wo,$WT:()=>Yn,$Z:()=>af,AFp:()=>o2,ALo:()=>Sp,AaK:()=>m,AsE:()=>In,BQk:()=>_u,CHM:()=>xi,CRH:()=>Lp,CZH:()=>aA,CqO:()=>G0,D6c:()=>vE,DdM:()=>Ap,Dn7:()=>Mp,EJc:()=>Lb,EiD:()=>Yu,EpF:()=>Df,F$t:()=>Lf,F4k:()=>F0,FYo:()=>a0,FiY:()=>ko,G48:()=>nE,Gf:()=>Pp,GfV:()=>o0,GkF:()=>Uc,Gpc:()=>n,Gre:()=>el,Hsn:()=>Ff,Ikx:()=>mh,JOm:()=>ls,JVY:()=>FA,JZr:()=>D,Jf7:()=>d0,KtG:()=>Jo,L6k:()=>GA,LAX:()=>Ec,LFG:()=>qt,LSH:()=>Vu,Lbi:()=>Ib,Lck:()=>k1,MAs:()=>If,MGl:()=>mu,MMx:()=>Nh,MR2:()=>QA,N_p:()=>vh,NdJ:()=>Hs,O4$:()=>Zi,OlP:()=>Sa,Oqu:()=>So,P3R:()=>zu,PXZ:()=>Qb,Q6J:()=>Zs,QGY:()=>fu,QbO:()=>Db,Qsj:()=>om,QtT:()=>rp,R0b:()=>El,RDi:()=>xA,Rgc:()=>K0,SBq:()=>ed,SDv:()=>tp,Sil:()=>Gb,Suo:()=>kp,TTD:()=>qa,TgZ:()=>Gc,Tol:()=>Gt,Udp:()=>ce,VKq:()=>mp,W1O:()=>Bp,WFA:()=>Vl,WLB:()=>hp,X6Q:()=>rE,XFs:()=>S,Xpm:()=>Cn,Xts:()=>ju,Y36:()=>Tc,YKP:()=>ap,YNc:()=>Rf,Yjl:()=>tn,Yz7:()=>We,Z0I:()=>te,ZZ4:()=>Kh,_Bn:()=>ip,_UZ:()=>k0,_Vd:()=>oc,_c5:()=>bE,_uU:()=>Si,aQg:()=>eg,c2e:()=>Pb,cJS:()=>we,cg1:()=>gh,d8E:()=>hh,dDg:()=>zb,dqk:()=>qe,eBb:()=>UA,eFA:()=>b2,eJc:()=>Fh,ekj:()=>Ie,eoX:()=>m2,evT:()=>Bd,f3M:()=>lt,g9A:()=>l2,gM2:()=>Op,h0i:()=>vu,hGG:()=>EE,hij:()=>Pn,iGM:()=>Dp,ifc:()=>Vt,ip1:()=>a2,jDz:()=>sp,kEZ:()=>gp,kL8:()=>xg,kYT:()=>Jr,kcU:()=>as,lG2:()=>nr,lcZ:()=>Cp,lqb:()=>ac,lri:()=>f2,mCW:()=>Jc,n5z:()=>Ko,n_E:()=>eA,oAB:()=>yr,oJD:()=>T_,oxw:()=>B0,pB0:()=>jc,pQV:()=>yh,q3G:()=>rs,q4F:()=>s0,qLn:()=>rd,qOj:()=>ou,qZA:()=>du,qzn:()=>bc,rWj:()=>A2,s9C:()=>gd,sBO:()=>iE,s_b:()=>rA,soG:()=>oA,tBr:()=>Ii,tHW:()=>Eh,tb:()=>g2,tp0:()=>Is,uIk:()=>I0,uOi:()=>Wu,vHH:()=>M,vpe:()=>Wl,wAp:()=>Ci,xi3:()=>Tp,xp6:()=>H_,ynx:()=>uu,z2F:()=>sA,z3N:()=>wl,zSh:()=>Ld,zs3:()=>Il});var t=s(68264),e=s(22292),d=s(44070),l=s(50805),r=s(7957);function c(a){for(let o in a)if(a[o]===c)return o;throw Error("Could not find renamed property on target object.")}function E(a,o){for(const u in o)o.hasOwnProperty(u)&&!a.hasOwnProperty(u)&&(a[u]=o[u])}function m(a){if("string"==typeof a)return a;if(Array.isArray(a))return"["+a.map(m).join(", ")+"]";if(null==a)return""+a;if(a.overriddenName)return`${a.overriddenName}`;if(a.name)return`${a.name}`;const o=a.toString();if(null==o)return""+o;const u=o.indexOf("\n");return-1===u?o:o.substring(0,u)}function v(a,o){return null==a||""===a?null===o?"":o:null==o||""===o?a:a+" "+o}const C=c({__forward_ref__:c});function n(a){return a.__forward_ref__=n,a.toString=function(){return m(this())},a}function i(a){return P(a)?a():a}function P(a){return"function"==typeof a&&a.hasOwnProperty(C)&&a.__forward_ref__===n}function I(a){return a&&!!a.\u0275providers}const D="https://g.co/ng/security#xss";class M extends Error{constructor(o,u){super(T(o,u)),this.code=o}}function T(a,o){return`NG0${Math.abs(a)}${o?": "+o.trim():""}`}function F(a){return"string"==typeof a?a:null==a?"":String(a)}function Ee(a,o){throw new M(-201,!1)}function z(a,o,u,h){throw new Error(`ASSERTION ERROR: ${a}`+(null==h?"":` [Expected=> ${u} ${h} ${o} <=Actual]`))}function We(a){return{token:a.token,providedIn:a.providedIn||null,factory:a.factory,value:void 0}}function we(a){return{providers:a.providers||[],imports:a.imports||[]}}function Ye(a){return Se(a,Tt)||Se(a,H)}function te(a){return null!==Ye(a)}function Se(a,o){return a.hasOwnProperty(o)?a[o]:null}function Ge(a){return a&&(a.hasOwnProperty(Et)||a.hasOwnProperty(Y))?a[Et]:null}const Tt=c({\u0275prov:c}),Et=c({\u0275inj:c}),H=c({ngInjectableDef:c}),Y=c({ngInjectorDef:c});var S=(()=>((S=S||{})[S.Default=0]="Default",S[S.Host=1]="Host",S[S.Self=2]="Self",S[S.SkipSelf=4]="SkipSelf",S[S.Optional=8]="Optional",S))();let K;function B(a){const o=K;return K=a,o}function re(a,o,u){const h=Ye(a);return h&&"root"==h.providedIn?void 0===h.value?h.value=h.factory():h.value:u&S.Optional?null:void 0!==o?o:void Ee(m(a))}const qe=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ct={},pt="__NG_DI_FLAG__",$t="ngTempTokenPath",It="ngTokenPath",fr=/\n/gm,yt="\u0275",dr="__source";let bt;function ar(a){const o=bt;return bt=a,o}function vt(a,o=S.Default){if(void 0===bt)throw new M(-203,!1);return null===bt?re(a,void 0,o):bt.get(a,o&S.Optional?null:void 0,o)}function qt(a,o=S.Default){return(function Q(){return K}()||vt)(i(a),o)}function lt(a,o=S.Default){return qt(a,De(o))}function De(a){return typeof a>"u"||"number"==typeof a?a:0|(a.optional&&8)|(a.host&&1)|(a.self&&2)|(a.skipSelf&&4)}function G(a){const o=[];for(let u=0;u<a.length;u++){const h=i(a[u]);if(Array.isArray(h)){if(0===h.length)throw new M(900,!1);let b,O=S.Default;for(let oe=0;oe<h.length;oe++){const Ce=h[oe],Be=ne(Ce);"number"==typeof Be?-1===Be?b=Ce.token:O|=Be:b=Ce}o.push(qt(b,O))}else o.push(qt(h))}return o}function U(a,o){return a[pt]=o,a.prototype[pt]=o,a}function ne(a){return a[pt]}function Nt(a){return{toString:a}.toString()}var Pt=(()=>((Pt=Pt||{})[Pt.OnPush=0]="OnPush",Pt[Pt.Default=1]="Default",Pt))(),Vt=(()=>{return(a=Vt||(Vt={}))[a.Emulated=0]="Emulated",a[a.None=2]="None",a[a.ShadowDom=3]="ShadowDom",Vt;var a})();const Jt={},kt=[],Me=c({\u0275cmp:c}),ut=c({\u0275dir:c}),nt=c({\u0275pipe:c}),Ht=c({\u0275mod:c}),pr=c({\u0275fac:c}),Lr=c({__NG_ELEMENT_ID__:c});let Kr=0;function Cn(a){return Nt(()=>{const o=Ti(a),u={...o,decls:a.decls,vars:a.vars,template:a.template,consts:a.consts||null,ngContentSelectors:a.ngContentSelectors,onPush:a.changeDetection===Pt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:o.standalone&&a.dependencies||null,getStandaloneInjector:null,data:a.data||{},encapsulation:a.encapsulation||Vt.Emulated,id:"c"+Kr++,styles:a.styles||kt,_:null,schemas:a.schemas||null,tView:null};Ni(u);const h=a.dependencies;return u.directiveDefs=ci(h,!1),u.pipeDefs=ci(h,!0),u})}function zn(a){return rn(a)||vn(a)}function ti(a){return null!==a}function yr(a){return Nt(()=>({type:a.type,bootstrap:a.bootstrap||kt,declarations:a.declarations||kt,imports:a.imports||kt,exports:a.exports||kt,transitiveCompileScopes:null,schemas:a.schemas||null,id:a.id||null}))}function Jr(a,o){return Nt(()=>{const u=Dn(a,!0);u.declarations=o.declarations||kt,u.imports=o.imports||kt,u.exports=o.exports||kt})}function wt(a,o){if(null==a)return Jt;const u={};for(const h in a)if(a.hasOwnProperty(h)){let b=a[h],O=b;Array.isArray(b)&&(O=b[1],b=b[0]),u[b]=h,o&&(o[b]=O)}return u}function nr(a){return Nt(()=>{const o=Ti(a);return Ni(o),o})}function tn(a){return{type:a.type,name:a.name,factory:null,pure:!1!==a.pure,standalone:!0===a.standalone,onDestroy:a.type.prototype.ngOnDestroy||null}}function rn(a){return a[Me]||null}function vn(a){return a[ut]||null}function Gn(a){return a[nt]||null}function Yn(a){const o=rn(a)||vn(a)||Gn(a);return null!==o&&o.standalone}function Dn(a,o){const u=a[Ht]||null;if(!u&&!0===o)throw new Error(`Type ${m(a)} does not have '\u0275mod' property.`);return u}function Ti(a){const o={};return{type:a.type,providersResolver:null,factory:null,hostBindings:a.hostBindings||null,hostVars:a.hostVars||0,hostAttrs:a.hostAttrs||null,contentQueries:a.contentQueries||null,declaredInputs:o,exportAs:a.exportAs||null,standalone:!0===a.standalone,selectors:a.selectors||kt,viewQuery:a.viewQuery||null,features:a.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:wt(a.inputs,o),outputs:wt(a.outputs)}}function Ni(a){a.features?.forEach(o=>o(a))}function ci(a,o){if(!a)return null;const u=o?Gn:zn;return()=>("function"==typeof a?a():a).map(h=>u(h)).filter(ti)}const Kt=0,Ar=1,ie=2,Ve=3,Mt=4,tr=5,kr=6,mn=7,un=8,ri=9,Sr=10,Er=11,Ot=12,lr=13,Cr=14,Gr=15,Ln=16,Xn=17,ni=18,ta=19,$a=20,La=21,Ei=22,bn=1,ha=2,po=7,Ia=8,Oa=9,cn=10;function wi(a){return Array.isArray(a)&&"object"==typeof a[bn]}function Wi(a){return Array.isArray(a)&&!0===a[bn]}function ra(a){return 0!=(4&a.flags)}function ji(a){return a.componentOffset>-1}function sa(a){return 1==(1&a.flags)}function Ui(a){return!!a.template}function na(a){return 0!=(256&a[ie])}function ia(a,o){return a.hasOwnProperty(pr)?a[pr]:null}class Ua{constructor(o,u,h){this.previousValue=o,this.currentValue=u,this.firstChange=h}isFirstChange(){return this.firstChange}}function qa(){return ro}function ro(a){return a.type.prototype.ngOnChanges&&(a.setInput=ga),Na}function Na(){const a=Mi(this),o=a?.current;if(o){const u=a.previous;if(u===Jt)a.previous=o;else for(let h in o)u[h]=o[h];a.current=null,this.ngOnChanges(o)}}function ga(a,o,u,h){const b=this.declaredInputs[u],O=Mi(a)||function Bi(a,o){return a[Ka]=o}(a,{previous:Jt,current:null}),oe=O.current||(O.current={}),Ce=O.previous,Be=Ce[b];oe[b]=new Ua(Be&&Be.currentValue,o,Ce===Jt),a[h]=o}qa.ngInherit=!0;const Ka="__ngSimpleChanges__";function Mi(a){return a[Ka]||null}const wa=function(a,o,u){},Eo="svg";function Pi(a){for(;Array.isArray(a);)a=a[Kt];return a}function Va(a,o){return Pi(o[a])}function Qi(a,o){return Pi(o[a.index])}function xo(a,o){return a.data[o]}function so(a,o){return a[o]}function Ra(a,o){const u=o[a];return wi(u)?u:u[Kt]}function Lo(a){return 64==(64&a[ie])}function eo(a,o){return null==o?null:a[o]}function Bo(a){a[ni]=0}function Oo(a,o){a[tr]+=o;let u=a,h=a[Ve];for(;null!==h&&(1===o&&1===u[tr]||-1===o&&0===u[tr]);)h[tr]+=o,u=h,h=h[Ve]}const Qn={lFrame:Ho(null),bindingsEnabled:!0};function Yr(){return Qn.bindingsEnabled}function Wr(){return Qn.lFrame.lView}function ii(){return Qn.lFrame.tView}function xi(a){return Qn.lFrame.contextLView=a,a[un]}function Jo(a){return Qn.lFrame.contextLView=null,a}function Wa(){let a=vs();for(;null!==a&&64===a.type;)a=a.parent;return a}function vs(){return Qn.lFrame.currentTNode}function is(){const a=Qn.lFrame,o=a.currentTNode;return a.isParent?o:o.parent}function no(a,o){const u=Qn.lFrame;u.currentTNode=a,u.isParent=o}function Zo(){return Qn.lFrame.isParent}function mt(){Qn.lFrame.isParent=!1}function Or(){const a=Qn.lFrame;let o=a.bindingRootIndex;return-1===o&&(o=a.bindingRootIndex=a.tView.bindingStartIndex),o}function Vr(){return Qn.lFrame.bindingIndex}function qr(){return Qn.lFrame.bindingIndex++}function Tn(a){const o=Qn.lFrame,u=o.bindingIndex;return o.bindingIndex=o.bindingIndex+a,u}function di(a){Qn.lFrame.inI18n=a}function vi(a,o){const u=Qn.lFrame;u.bindingIndex=u.bindingRootIndex=a,Da(o)}function Da(a){Qn.lFrame.currentDirectiveIndex=a}function ua(a){const o=Qn.lFrame.currentDirectiveIndex;return-1===o?null:a[o]}function Pa(){return Qn.lFrame.currentQueryIndex}function za(a){Qn.lFrame.currentQueryIndex=a}function ja(a){const o=a[Ar];return 2===o.type?o.declTNode:1===o.type?a[kr]:null}function lo(a,o,u){if(u&S.SkipSelf){let b=o,O=a;for(;!(b=b.parent,null!==b||u&S.Host||(b=ja(O),null===b||(O=O[Gr],10&b.type))););if(null===b)return!1;o=b,a=O}const h=Qn.lFrame=Ba();return h.currentTNode=o,h.lView=a,!0}function ba(a){const o=Ba(),u=a[Ar];Qn.lFrame=o,o.currentTNode=u.firstChild,o.lView=a,o.tView=u,o.contextLView=a,o.bindingIndex=u.bindingStartIndex,o.inI18n=!1}function Ba(){const a=Qn.lFrame,o=null===a?null:a.child;return null===o?Ho(a):o}function Ho(a){const o={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:a,child:null,inI18n:!1};return null!==a&&(a.child=o),o}function Fo(){const a=Qn.lFrame;return Qn.lFrame=a.parent,a.currentTNode=null,a.lView=null,a}const fs=Fo;function ft(){const a=Fo();a.isParent=!0,a.tView=null,a.selectedIndex=-1,a.contextLView=null,a.elementDepthCount=0,a.currentDirectiveIndex=-1,a.currentNamespace=null,a.bindingRootIndex=-1,a.bindingIndex=-1,a.currentQueryIndex=0}function cr(){return Qn.lFrame.selectedIndex}function Fr(a){Qn.lFrame.selectedIndex=a}function Zr(){const a=Qn.lFrame;return xo(a.tView,a.selectedIndex)}function Zi(){Qn.lFrame.currentNamespace=Eo}function as(){!function Io(){Qn.lFrame.currentNamespace=null}()}function xs(a,o){for(let u=o.directiveStart,h=o.directiveEnd;u<h;u++){const O=a.data[u].type.prototype,{ngAfterContentInit:oe,ngAfterContentChecked:Ce,ngAfterViewInit:Be,ngAfterViewChecked:gt,ngOnDestroy:zt}=O;oe&&(a.contentHooks??(a.contentHooks=[])).push(-u,oe),Ce&&((a.contentHooks??(a.contentHooks=[])).push(u,Ce),(a.contentCheckHooks??(a.contentCheckHooks=[])).push(u,Ce)),Be&&(a.viewHooks??(a.viewHooks=[])).push(-u,Be),gt&&((a.viewHooks??(a.viewHooks=[])).push(u,gt),(a.viewCheckHooks??(a.viewCheckHooks=[])).push(u,gt)),null!=zt&&(a.destroyHooks??(a.destroyHooks=[])).push(u,zt)}}function gs(a,o,u){ht(a,o,3,u)}function ps(a,o,u,h){(3&a[ie])===u&&ht(a,o,u,h)}function xe(a,o){let u=a[ie];(3&u)===o&&(u&=2047,u+=1,a[ie]=u)}function ht(a,o,u,h){const O=h??-1,oe=o.length-1;let Ce=0;for(let Be=void 0!==h?65535&a[ni]:0;Be<oe;Be++)if("number"==typeof o[Be+1]){if(Ce=o[Be],null!=h&&Ce>=h)break}else o[Be]<0&&(a[ni]+=65536),(Ce<O||-1==O)&&(He(a,u,o,Be),a[ni]=(4294901760&a[ni])+Be+2),Be++}function He(a,o,u,h){const b=u[h]<0,O=u[h+1],Ce=a[b?-u[h]:u[h]];if(b){if(a[ie]>>11<a[ni]>>16&&(3&a[ie])===o){a[ie]+=2048,wa(4,Ce,O);try{O.call(Ce)}finally{wa(5,Ce,O)}}}else{wa(4,Ce,O);try{O.call(Ce)}finally{wa(5,Ce,O)}}}const Ut=-1;class _r{constructor(o,u,h){this.factory=o,this.resolving=!1,this.canSeeViewProviders=u,this.injectImpl=h}}function En(a,o,u){let h=0;for(;h<u.length;){const b=u[h];if("number"==typeof b){if(0!==b)break;h++;const O=u[h++],oe=u[h++],Ce=u[h++];a.setAttribute(o,oe,Ce,O)}else{const O=b,oe=u[++h];qn(O)?a.setProperty(o,O,oe):a.setAttribute(o,O,oe),h++}}return h}function Fn(a){return 3===a||4===a||6===a}function qn(a){return 64===a.charCodeAt(0)}function hi(a,o){if(null!==o&&0!==o.length)if(null===a||0===a.length)a=o.slice();else{let u=-1;for(let h=0;h<o.length;h++){const b=o[h];"number"==typeof b?u=b:0===u||_i(a,u,b,null,-1===u||2===u?o[++h]:null)}}return a}function _i(a,o,u,h,b){let O=0,oe=a.length;if(-1===o)oe=-1;else for(;O<a.length;){const Ce=a[O++];if("number"==typeof Ce){if(Ce===o){oe=-1;break}if(Ce>o){oe=O-1;break}}}for(;O<a.length;){const Ce=a[O];if("number"==typeof Ce)break;if(Ce===u){if(null===h)return void(null!==b&&(a[O+1]=b));if(h===a[O+1])return void(a[O+2]=b)}O++,null!==h&&O++,null!==b&&O++}-1!==oe&&(a.splice(oe,0,o),O=oe+1),a.splice(O++,0,u),null!==h&&a.splice(O++,0,h),null!==b&&a.splice(O++,0,b)}function gi(a){return a!==Ut}function oa(a){return 32767&a}function da(a,o){let u=function Ea(a){return a>>16}(a),h=o;for(;u>0;)h=h[Gr],u--;return h}let Za=!0;function va(a){const o=Za;return Za=a,o}const ki=255,Li=5;let Qo=0;const ka={};function Go(a,o){const u=Vo(a,o);if(-1!==u)return u;const h=o[Ar];h.firstCreatePass&&(a.injectorIndex=o.length,$o(h.data,a),$o(o,null),$o(h.blueprint,null));const b=ya(a,o),O=a.injectorIndex;if(gi(b)){const oe=oa(b),Ce=da(b,o),Be=Ce[Ar].data;for(let gt=0;gt<8;gt++)o[O+gt]=Ce[oe+gt]|Be[oe+gt]}return o[O+8]=b,O}function $o(a,o){a.push(0,0,0,0,0,0,0,0,o)}function Vo(a,o){return-1===a.injectorIndex||a.parent&&a.parent.injectorIndex===a.injectorIndex||null===o[a.injectorIndex+8]?-1:a.injectorIndex}function ya(a,o){if(a.parent&&-1!==a.parent.injectorIndex)return a.parent.injectorIndex;let u=0,h=null,b=o;for(;null!==b;){if(h=es(b),null===h)return Ut;if(u++,b=b[Gr],-1!==h.injectorIndex)return h.injectorIndex|u<<16}return Ut}function Ze(a,o,u){!function qo(a,o,u){let h;"string"==typeof u?h=u.charCodeAt(0)||0:u.hasOwnProperty(Lr)&&(h=u[Lr]),null==h&&(h=u[Lr]=Qo++);const b=h&ki;o.data[a+(b>>Li)]|=1<<b}(a,o,u)}function g(a,o,u){if(u&S.Optional||void 0!==a)return a;Ee()}function $(a,o,u,h){if(u&S.Optional&&void 0===h&&(h=null),!(u&(S.Self|S.Host))){const b=a[ri],O=B(void 0);try{return b?b.get(o,h,u&S.Optional):re(o,h,u&S.Optional)}finally{B(O)}}return g(h,0,u)}function st(a,o,u,h=S.Default,b){if(null!==a){if(1024&o[ie]){const oe=function No(a,o,u,h,b){let O=a,oe=o;for(;null!==O&&null!==oe&&1024&oe[ie]&&!(256&oe[ie]);){const Ce=Bt(O,oe,u,h|S.Self,ka);if(Ce!==ka)return Ce;let Be=O.parent;if(!Be){const gt=oe[La];if(gt){const zt=gt.get(u,ka,h);if(zt!==ka)return zt}Be=es(oe),oe=oe[Gr]}O=Be}return b}(a,o,u,h,ka);if(oe!==ka)return oe}const O=Bt(a,o,u,h,ka);if(O!==ka)return O}return $(o,u,h,b)}function Bt(a,o,u,h,b){const O=function Kn(a){if("string"==typeof a)return a.charCodeAt(0)||0;const o=a.hasOwnProperty(Lr)?a[Lr]:void 0;return"number"==typeof o?o>=0?o&ki:fi:o}(u);if("function"==typeof O){if(!lo(o,a,h))return h&S.Host?g(b,0,h):$(o,u,h,b);try{const oe=O(h);if(null!=oe||h&S.Optional)return oe;Ee()}finally{fs()}}else if("number"==typeof O){let oe=null,Ce=Vo(a,o),Be=Ut,gt=h&S.Host?o[Ln][kr]:null;for((-1===Ce||h&S.SkipSelf)&&(Be=-1===Ce?ya(a,o):o[Ce+8],Be!==Ut&&Ki(h,!1)?(oe=o[Ar],Ce=oa(Be),o=da(Be,o)):Ce=-1);-1!==Ce;){const zt=o[Ar];if(An(O,Ce,zt.data)){const ur=hr(Ce,o,u,oe,h,gt);if(ur!==ka)return ur}Be=o[Ce+8],Be!==Ut&&Ki(h,o[Ar].data[Ce+8]===gt)&&An(O,Ce,o)?(oe=zt,Ce=oa(Be),o=da(Be,o)):Ce=-1}}return b}function hr(a,o,u,h,b,O){const oe=o[Ar],Ce=oe.data[a+8],zt=Xr(Ce,oe,u,null==h?ji(Ce)&&Za:h!=oe&&0!=(3&Ce.type),b&S.Host&&O===Ce);return null!==zt?fn(o,oe,zt,Ce):ka}function Xr(a,o,u,h,b){const O=a.providerIndexes,oe=o.data,Ce=1048575&O,Be=a.directiveStart,zt=O>>20,Rr=b?Ce+zt:a.directiveEnd;for(let Hr=h?Ce:Ce+zt;Hr<Rr;Hr++){const an=oe[Hr];if(Hr<Be&&u===an||Hr>=Be&&an.type===u)return Hr}if(b){const Hr=oe[Be];if(Hr&&Ui(Hr)&&Hr.type===u)return Be}return null}function fn(a,o,u,h){let b=a[u];const O=o.data;if(function $r(a){return a instanceof _r}(b)){const oe=b;oe.resolving&&function V(a,o){const u=o?`. Dependency path: ${o.join(" > ")} > ${a}`:"";throw new M(-200,`Circular dependency in DI detected for ${a}${u}`)}(function le(a){return"function"==typeof a?a.name||a.toString():"object"==typeof a&&null!=a&&"function"==typeof a.type?a.type.name||a.type.toString():F(a)}(O[u]));const Ce=va(oe.canSeeViewProviders);oe.resolving=!0;const Be=oe.injectImpl?B(oe.injectImpl):null;lo(a,h,S.Default);try{b=a[u]=oe.factory(void 0,O,a,h),o.firstCreatePass&&u>=h.directiveStart&&function Rs(a,o,u){const{ngOnChanges:h,ngOnInit:b,ngDoCheck:O}=o.type.prototype;if(h){const oe=ro(o);(u.preOrderHooks??(u.preOrderHooks=[])).push(a,oe),(u.preOrderCheckHooks??(u.preOrderCheckHooks=[])).push(a,oe)}b&&(u.preOrderHooks??(u.preOrderHooks=[])).push(0-a,b),O&&((u.preOrderHooks??(u.preOrderHooks=[])).push(a,O),(u.preOrderCheckHooks??(u.preOrderCheckHooks=[])).push(a,O))}(u,O[u],o)}finally{null!==Be&&B(Be),va(Ce),oe.resolving=!1,fs()}}return b}function An(a,o,u){return!!(u[o+(a>>Li)]&1<<a)}function Ki(a,o){return!(a&S.Self||a&S.Host&&o)}class Xa{constructor(o,u){this._tNode=o,this._lView=u}get(o,u,h){return st(this._tNode,this._lView,o,De(h),u)}}function fi(){return new Xa(Wa(),Wr())}function Ko(a){return Nt(()=>{const o=a.prototype.constructor,u=o[pr]||uo(o),h=Object.prototype;let b=Object.getPrototypeOf(a.prototype).constructor;for(;b&&b!==h;){const O=b[pr]||uo(b);if(O&&O!==u)return O;b=Object.getPrototypeOf(b)}return O=>new O})}function uo(a){return P(a)?()=>{const o=uo(i(a));return o&&o()}:ia(a)}function es(a){const o=a[Ar],u=o.type;return 2===u?o.declTNode:1===u?a[kr]:null}function wo(a){return function Wt(a,o){if("class"===o)return a.classes;if("style"===o)return a.styles;const u=a.attrs;if(u){const h=u.length;let b=0;for(;b<h;){const O=u[b];if(Fn(O))break;if(0===O)b+=2;else if("number"==typeof O)for(b++;b<h&&"string"==typeof u[b];)b++;else{if(O===o)return u[b+1];b+=2}}}return null}(Wa(),a)}const Fi="__parameters__";function yo(a,o,u){return Nt(()=>{const h=function ys(a){return function(...u){if(a){const h=a(...u);for(const b in h)this[b]=h[b]}}}(o);function b(...O){if(this instanceof b)return h.apply(this,O),this;const oe=new b(...O);return Ce.annotation=oe,Ce;function Ce(Be,gt,zt){const ur=Be.hasOwnProperty(Fi)?Be[Fi]:Object.defineProperty(Be,Fi,{value:[]})[Fi];for(;ur.length<=zt;)ur.push(null);return(ur[zt]=ur[zt]||[]).push(oe),Be}}return u&&(b.prototype=Object.create(u.prototype)),b.prototype.ngMetadataName=a,b.annotationCls=b,b})}class Sa{constructor(o,u){this._desc=o,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof u?this.__NG_ELEMENT_ID__=u:void 0!==u&&(this.\u0275prov=We({token:this,providedIn:u.providedIn||"root",factory:u.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ei(a,o){a.forEach(u=>Array.isArray(u)?ei(u,o):o(u))}function Ai(a,o,u){o>=a.length?a.push(u):a.splice(o,0,u)}function ae(a,o){return o>=a.length-1?a.pop():a.splice(o,1)[0]}function me(a,o){const u=[];for(let h=0;h<a;h++)u.push(o);return u}function Zt(a,o,u){let h=zr(a,o);return h>=0?a[1|h]=u:(h=~h,function Ke(a,o,u,h){let b=a.length;if(b==o)a.push(u,h);else if(1===b)a.push(h,a[0]),a[0]=u;else{for(b--,a.push(a[b-1],a[b]);b>o;)a[b]=a[b-2],b--;a[o]=u,a[o+1]=h}}(a,h,o,u)),h}function gr(a,o){const u=zr(a,o);if(u>=0)return a[1|u]}function zr(a,o){return function dn(a,o,u){let h=0,b=a.length>>u;for(;b!==h;){const O=h+(b-h>>1),oe=a[O<<u];if(o===oe)return O<<u;oe>o?b=O:h=O+1}return~(b<<u)}(a,o,1)}const Ii=U(yo("Inject",a=>({token:a})),-1),ko=U(yo("Optional"),8),Is=U(yo("SkipSelf"),4);var ls=(()=>((ls=ls||{})[ls.Important=1]="Important",ls[ls.DashCase=2]="DashCase",ls))();const uA=/^>|^->|<!--|-->|--!>|<!-$/g,_A=/(<|>)/,fA="\u200b$1\u200b";const Cu=new Map;let AA=0;const Mu="__ngContext__";function Ts(a,o){wi(o)?(a[Mu]=o[$a],function mA(a){Cu.set(a[$a],a)}(o)):a[Mu]=o}let Ou;function fo(a,o){return Ou(a,o)}function Ml(a){const o=a[Ve];return Wi(o)?o[Ve]:o}function Nu(a){return Td(a[lr])}function ll(a){return Td(a[Mt])}function Td(a){for(;null!==a&&!Wi(a);)a=a[Mt];return a}function jl(a,o,u,h,b){if(null!=h){let O,oe=!1;Wi(h)?O=h:wi(h)&&(oe=!0,h=h[Kt]);const Ce=Pi(h);0===a&&null!==u?null==b?ql(o,u,Ce):Ql(o,u,Ce,b||null,!0):1===a&&null!==u?Ql(o,u,Ce,b||null,!0):2===a?wd(o,Ce,oe):3===a&&o.destroyNode(Ce),null!=O&&function m_(a,o,u,h,b){const O=u[po];O!==Pi(u)&&jl(o,a,h,O,b);for(let Ce=cn;Ce<u.length;Ce++){const Be=u[Ce];gc(Be[Ar],Be,a,o,h,O)}}(o,a,O,u,b)}}function wu(a,o){return a.createText(o)}function l_(a,o,u){a.setValue(o,u)}function c_(a,o){return a.createComment(function hc(a){return a.replace(uA,o=>o.replace(_A,fA))}(o))}function Ru(a,o,u){return a.createElement(o,u)}function MA(a,o){const u=a[Oa],h=u.indexOf(o),b=o[Ve];512&o[ie]&&(o[ie]&=-513,Oo(b,-1)),u.splice(h,1)}function io(a,o){if(a.length<=cn)return;const u=cn+o,h=a[u];if(h){const b=h[Xn];null!==b&&b!==a&&MA(b,h),o>0&&(a[u-1][Mt]=h[Mt]);const O=ae(a,cn+o);!function d_(a,o){gc(a,o,o[Er],2,null,null),o[Kt]=null,o[kr]=null}(h[Ar],h);const oe=O[ta];null!==oe&&oe.detachView(O[Ar]),h[Ve]=null,h[Mt]=null,h[ie]&=-65}return h}function cs(a,o){if(!(128&o[ie])){const u=o[Er];u.destroyNode&&gc(a,o,u,3,null,null),function u_(a){let o=a[lr];if(!o)return Xl(a[Ar],a);for(;o;){let u=null;if(wi(o))u=o[lr];else{const h=o[cn];h&&(u=h)}if(!u){for(;o&&!o[Mt]&&o!==a;)wi(o)&&Xl(o[Ar],o),o=o[Ve];null===o&&(o=a),wi(o)&&Xl(o[Ar],o),u=o&&o[Mt]}o=u}}(o)}}function Xl(a,o){if(!(128&o[ie])){o[ie]&=-65,o[ie]|=128,function rg(a,o){let u;if(null!=a&&null!=(u=a.destroyHooks))for(let h=0;h<u.length;h+=2){const b=o[u[h]];if(!(b instanceof _r)){const O=u[h+1];if(Array.isArray(O))for(let oe=0;oe<O.length;oe+=2){const Ce=b[O[oe]],Be=O[oe+1];wa(4,Ce,Be);try{Be.call(Ce)}finally{wa(5,Ce,Be)}}else{wa(4,b,O);try{O.call(b)}finally{wa(5,b,O)}}}}}(a,o),function Jl(a,o){const u=a.cleanup,h=o[mn];let b=-1;if(null!==u)for(let O=0;O<u.length-1;O+=2)if("string"==typeof u[O]){const oe=u[O+3];oe>=0?h[b=oe]():h[b=-oe].unsubscribe(),O+=2}else{const oe=h[b=u[O+1]];u[O].call(oe)}if(null!==h){for(let O=b+1;O<h.length;O++)(0,h[O])();o[mn]=null}}(a,o),1===o[Ar].type&&o[Er].destroy();const u=o[Xn];if(null!==u&&Wi(o[Ve])){u!==o[Ve]&&MA(u,o);const h=o[ta];null!==h&&h.detachView(a)}!function hA(a){Cu.delete(a[$a])}(o)}}function OA(a,o,u){return Us(a,o.parent,u)}function Us(a,o,u){let h=o;for(;null!==h&&40&h.type;)h=(o=h).parent;if(null===h)return u[Kt];{const{componentOffset:b}=h;if(b>-1){const{encapsulation:O}=a.data[h.directiveStart+b];if(O===Vt.None||O===Vt.Emulated)return null}return Qi(h,u)}}function Ql(a,o,u,h,b){a.insertBefore(o,u,h,b)}function ql(a,o,u){a.appendChild(o,u)}function xu(a,o,u,h,b){null!==h?Ql(a,o,u,h,b):ql(a,o,u)}function Ol(a,o){return a.parentNode(o)}function Du(a,o,u){return Md(a,o,u)}function Ms(a,o,u){return 40&a.type?Qi(a,u):null}let Od,pc,Id,zc,Md=Ms;function Pu(a,o){Md=a,Od=o}function Nd(a,o,u,h){const b=OA(a,h,o),O=o[Er],Ce=Du(h.parent||o[kr],h,o);if(null!=b)if(Array.isArray(u))for(let Be=0;Be<u.length;Be++)xu(O,b,u[Be],Ce,!1);else xu(O,b,u,Ce,!1);void 0!==Od&&Od(O,h,o,u,b)}function ku(a,o){if(null!==o){const u=o.type;if(3&u)return Qi(o,a);if(4&u)return Lu(-1,a[o.index]);if(8&u){const h=o.child;if(null!==h)return ku(a,h);{const b=a[o.index];return Wi(b)?Lu(-1,b):Pi(b)}}if(32&u)return fo(o,a)()||Pi(a[o.index]);{const h=NA(a,o);return null!==h?Array.isArray(h)?h[0]:ku(Ml(a[Ln]),h):ku(a,o.next)}}return null}function NA(a,o){return null!==o?a[Ln][kr].projection[o.projection]:null}function Lu(a,o){const u=cn+a+1;if(u<o.length){const h=o[u],b=h[Ar].firstChild;if(null!==b)return ku(h,b)}return o[po]}function wd(a,o,u){const h=Ol(a,o);h&&function Vc(a,o,u,h){a.removeChild(o,u,h)}(a,h,o,u)}function Fu(a,o,u,h,b,O,oe){for(;null!=u;){const Ce=h[u.index],Be=u.type;if(oe&&0===o&&(Ce&&Ts(Pi(Ce),h),u.flags|=2),32!=(32&u.flags))if(8&Be)Fu(a,o,u.child,h,b,O,!1),jl(o,a,b,Ce,O);else if(32&Be){const gt=fo(u,h);let zt;for(;zt=gt();)jl(o,a,b,zt,O);jl(o,a,b,Ce,O)}else 16&Be?A_(a,o,h,u,b,O):jl(o,a,b,Ce,O);u=oe?u.projectionNext:u.next}}function gc(a,o,u,h,b,O){Fu(u,h,a.firstChild,o,b,O,!1)}function A_(a,o,u,h,b,O){const oe=u[Ln],Be=oe[kr].projection[h.projection];if(Array.isArray(Be))for(let gt=0;gt<Be.length;gt++)jl(o,a,b,Be[gt],O);else Fu(a,o,Be,oe[Ve],b,O,!0)}function Rd(a,o,u){""===u?a.removeAttribute(o,"class"):a.setAttribute(o,"class",u)}function xd(a,o,u){const{mergedAttrs:h,classes:b,styles:O}=u;null!==h&&En(a,o,h),null!==b&&Rd(a,o,b),null!==O&&function wA(a,o,u){a.setAttribute(o,"style",u)}(a,o,O)}function Kl(a){return function Nl(){if(void 0===pc&&(pc=null,qe.trustedTypes))try{pc=qe.trustedTypes.createPolicy("angular",{createHTML:a=>a,createScript:a=>a,createScriptURL:a=>a})}catch{}return pc}()?.createHTML(a)||a}function xA(a){Id=a}function b_(){return void 0!==Id?Id:typeof document<"u"?document:void 0}function Gu(){if(void 0===zc&&(zc=null,qe.trustedTypes))try{zc=qe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:a=>a,createScript:a=>a,createScriptURL:a=>a})}catch{}return zc}function Uu(a){return Gu()?.createHTML(a)||a}function Bu(a){return Gu()?.createScriptURL(a)||a}class ec{constructor(o){this.changingThisBreaksApplicationSecurity=o}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${D})`}}class Dd extends ec{getTypeName(){return"HTML"}}class IA extends ec{getTypeName(){return"Style"}}class DA extends ec{getTypeName(){return"Script"}}class PA extends ec{getTypeName(){return"URL"}}class kA extends ec{getTypeName(){return"ResourceURL"}}function wl(a){return a instanceof ec?a.changingThisBreaksApplicationSecurity:a}function bc(a,o){const u=function LA(a){return a instanceof ec&&a.getTypeName()||null}(a);if(null!=u&&u!==o){if("ResourceURL"===u&&"URL"===o)return!0;throw new Error(`Required a safe ${o}, got a ${u} (see ${D})`)}return u===o}function FA(a){return new Dd(a)}function GA(a){return new IA(a)}function UA(a){return new DA(a)}function Ec(a){return new PA(a)}function jc(a){return new kA(a)}function Xc(a){const o=new ng(a);return function v_(){try{return!!(new window.DOMParser).parseFromString(Kl(""),"text/html")}catch{return!1}}()?new BA(o):o}class BA{constructor(o){this.inertDocumentHelper=o}getInertBodyElement(o){o="<body><remove></remove>"+o;try{const u=(new window.DOMParser).parseFromString(Kl(o),"text/html").body;return null===u?this.inertDocumentHelper.getInertBodyElement(o):(u.removeChild(u.firstChild),u)}catch{return null}}}class ng{constructor(o){this.defaultDoc=o,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(o){const u=this.inertDocument.createElement("template");return u.innerHTML=Kl(o),u}}const ZA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Jc(a){return(a=String(a)).match(ZA)?a:"unsafe:"+a}function qs(a){const o={};for(const u of a.split(","))o[u]=!0;return o}function Qc(...a){const o={};for(const u of a)for(const h in u)u.hasOwnProperty(h)&&(o[h]=!0);return o}const Zu=qs("area,br,col,hr,img,wbr"),Hu=qs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),y_=qs("rp,rt"),tc=Qc(Zu,Qc(Hu,qs("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")),Qc(y_,qs("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")),Qc(y_,Hu)),rc=qs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),S_=Qc(rc,qs("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"),qs("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")),HA=qs("script,style,template");class C_{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(o){let u=o.firstChild,h=!0;for(;u;)if(u.nodeType===Node.ELEMENT_NODE?h=this.startElement(u):u.nodeType===Node.TEXT_NODE?this.chars(u.nodeValue):this.sanitizedSomething=!0,h&&u.firstChild)u=u.firstChild;else for(;u;){u.nodeType===Node.ELEMENT_NODE&&this.endElement(u);let b=this.checkClobberedElement(u,u.nextSibling);if(b){u=b;break}u=this.checkClobberedElement(u,u.parentNode)}return this.buf.join("")}startElement(o){const u=o.nodeName.toLowerCase();if(!tc.hasOwnProperty(u))return this.sanitizedSomething=!0,!HA.hasOwnProperty(u);this.buf.push("<"),this.buf.push(u);const h=o.attributes;for(let b=0;b<h.length;b++){const O=h.item(b),oe=O.name,Ce=oe.toLowerCase();if(!S_.hasOwnProperty(Ce)){this.sanitizedSomething=!0;continue}let Be=O.value;rc[Ce]&&(Be=Jc(Be)),this.buf.push(" ",oe,'="',qc(Be),'"')}return this.buf.push(">"),!0}endElement(o){const u=o.nodeName.toLowerCase();tc.hasOwnProperty(u)&&!Zu.hasOwnProperty(u)&&(this.buf.push("</"),this.buf.push(u),this.buf.push(">"))}chars(o){this.buf.push(qc(o))}checkClobberedElement(o,u){if(u&&(o.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${o.outerHTML}`);return u}}const YA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$A=/([^\#-~ |!])/g;function qc(a){return a.replace(/&/g,"&amp;").replace(YA,function(o){return"&#"+(1024*(o.charCodeAt(0)-55296)+(o.charCodeAt(1)-56320)+65536)+";"}).replace($A,function(o){return"&#"+o.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Gl;function Yu(a,o){let u=null;try{Gl=Gl||Xc(a);let h=o?String(o):"";u=Gl.getInertBodyElement(h);let b=5,O=h;do{if(0===b)throw new Error("Failed to sanitize html because the input is unstable");b--,h=O,O=u.innerHTML,u=Gl.getInertBodyElement(h)}while(h!==O);return Kl((new C_).sanitizeChildren($u(u)||u))}finally{if(u){const h=$u(u)||u;for(;h.firstChild;)h.removeChild(h.firstChild)}}}function $u(a){return"content"in a&&function VA(a){return a.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===a.nodeName}(a)?a.content:null}var rs=(()=>((rs=rs||{})[rs.NONE=0]="NONE",rs[rs.HTML=1]="HTML",rs[rs.STYLE=2]="STYLE",rs[rs.SCRIPT=3]="SCRIPT",rs[rs.URL=4]="URL",rs[rs.RESOURCE_URL=5]="RESOURCE_URL",rs))();function T_(a){const o=vc();return o?Uu(o.sanitize(rs.HTML,a)||""):bc(a,"HTML")?Uu(wl(a)):Yu(b_(),F(a))}function Vu(a){const o=vc();return o?o.sanitize(rs.URL,a)||"":bc(a,"URL")?wl(a):Jc(F(a))}function Wu(a){const o=vc();if(o)return Bu(o.sanitize(rs.RESOURCE_URL,a)||"");if(bc(a,"ResourceURL"))return Bu(wl(a));throw new M(904,!1)}function zu(a,o,u){return function JA(a,o){return"src"===o&&("embed"===a||"frame"===a||"iframe"===a||"media"===a||"script"===a)||"href"===o&&("base"===a||"link"===a)?Wu:Vu}(o,u)(a)}function vc(){const a=Wr();return a&&a[Ot]}const ju=new Sa("ENVIRONMENT_INITIALIZER"),M_=new Sa("INJECTOR",-1),ic=new Sa("INJECTOR_DEF_TYPES");class O_{get(o,u=ct){if(u===ct){const h=new Error(`NullInjectorError: No provider for ${m(o)}!`);throw h.name="NullInjectorError",h}return u}}function QA(a){return{\u0275providers:a}}function qA(...a){return{\u0275providers:N_(0,a),\u0275fromNgModule:!0}}function N_(a,...o){const u=[],h=new Set;let b;return ei(o,O=>{const oe=O;Xu(oe,u,[],h)&&(b||(b=[]),b.push(oe))}),void 0!==b&&KA(b,u),u}function KA(a,o){for(let u=0;u<a.length;u++){const{providers:b}=a[u];Ju(b,O=>{o.push(O)})}}function Xu(a,o,u,h){if(!(a=i(a)))return!1;let b=null,O=Ge(a);const oe=!O&&rn(a);if(O||oe){if(oe&&!oe.standalone)return!1;b=a}else{const Be=a.ngModule;if(O=Ge(Be),!O)return!1;b=Be}const Ce=h.has(b);if(oe){if(Ce)return!1;if(h.add(b),oe.dependencies){const Be="function"==typeof oe.dependencies?oe.dependencies():oe.dependencies;for(const gt of Be)Xu(gt,o,u,h)}}else{if(!O)return!1;{if(null!=O.imports&&!Ce){let gt;h.add(b);try{ei(O.imports,zt=>{Xu(zt,o,u,h)&&(gt||(gt=[]),gt.push(zt))})}finally{}void 0!==gt&&KA(gt,o)}if(!Ce){const gt=ia(b)||(()=>new b);o.push({provide:b,useFactory:gt,deps:kt},{provide:ic,useValue:b,multi:!0},{provide:ju,useValue:()=>qt(b),multi:!0})}const Be=O.providers;null==Be||Ce||Ju(Be,zt=>{o.push(zt)})}}return b!==a&&void 0!==a.providers}function Ju(a,o){for(let u of a)I(u)&&(u=u.\u0275providers),Array.isArray(u)?Ju(u,o):o(u)}const Pd=c({provide:String,useValue:c});function Qu(a){return null!==a&&"object"==typeof a&&Pd in a}function Ul(a){return"function"==typeof a}const Ld=new Sa("Set Injector scope."),Fd={},em={};let Ku;function Gd(){return void 0===Ku&&(Ku=new O_),Ku}class ac{}class R_ extends ac{get destroyed(){return this._destroyed}constructor(o,u,h,b){super(),this.parent=u,this.source=h,this.scopes=b,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,t0(o,oe=>this.processProvider(oe)),this.records.set(M_,Bl(void 0,this)),b.has("environment")&&this.records.set(ac,Bl(void 0,this));const O=this.records.get(Ld);null!=O&&"string"==typeof O.value&&this.scopes.add(O.value),this.injectorDefTypes=new Set(this.get(ic.multi,kt,S.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const o of this._ngOnDestroyHooks)o.ngOnDestroy();for(const o of this._onDestroyHooks)o()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(o){this._onDestroyHooks.push(o)}runInContext(o){this.assertNotDestroyed();const u=ar(this),h=B(void 0);try{return o()}finally{ar(u),B(h)}}get(o,u=ct,h=S.Default){this.assertNotDestroyed(),h=De(h);const b=ar(this),O=B(void 0);try{if(!(h&S.SkipSelf)){let Ce=this.records.get(o);if(void 0===Ce){const Be=function x_(a){return"function"==typeof a||"object"==typeof a&&a instanceof Sa}(o)&&Ye(o);Ce=Be&&this.injectableDefInScope(Be)?Bl(e0(o),Fd):null,this.records.set(o,Ce)}if(null!=Ce)return this.hydrate(o,Ce)}return(h&S.Self?Gd():this.parent).get(o,u=h&S.Optional&&u===ct?null:u)}catch(oe){if("NullInjectorError"===oe.name){if((oe[$t]=oe[$t]||[]).unshift(m(o)),b)throw oe;return function Re(a,o,u,h){const b=a[$t];throw o[dr]&&b.unshift(o[dr]),a.message=function Xe(a,o,u,h=null){a=a&&"\n"===a.charAt(0)&&a.charAt(1)==yt?a.slice(2):a;let b=m(o);if(Array.isArray(o))b=o.map(m).join(" -> ");else if("object"==typeof o){let O=[];for(let oe in o)if(o.hasOwnProperty(oe)){let Ce=o[oe];O.push(oe+":"+("string"==typeof Ce?JSON.stringify(Ce):m(Ce)))}b=`{${O.join(", ")}}`}return`${u}${h?"("+h+")":""}[${b}]: ${a.replace(fr,"\n  ")}`}("\n"+a.message,b,u,h),a[It]=b,a[$t]=null,a}(oe,o,"R3InjectorError",this.source)}throw oe}finally{B(O),ar(b)}}resolveInjectorInitializers(){const o=ar(this),u=B(void 0);try{const h=this.get(ju.multi,kt,S.Self);for(const b of h)b()}finally{ar(o),B(u)}}toString(){const o=[],u=this.records;for(const h of u.keys())o.push(m(h));return`R3Injector[${o.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processProvider(o){let u=Ul(o=i(o))?o:i(o&&o.provide);const h=function rm(a){return Qu(a)?Bl(void 0,a.useValue):Bl(Ud(a),Fd)}(o);if(Ul(o)||!0!==o.multi)this.records.get(u);else{let b=this.records.get(u);b||(b=Bl(void 0,Fd,!0),b.factory=()=>G(b.multi),this.records.set(u,b)),u=o,b.multi.push(o)}this.records.set(u,h)}hydrate(o,u){return u.value===Fd&&(u.value=em,u.value=u.factory()),"object"==typeof u.value&&u.value&&function im(a){return null!==a&&"object"==typeof a&&"function"==typeof a.ngOnDestroy}(u.value)&&this._ngOnDestroyHooks.add(u.value),u.value}injectableDefInScope(o){if(!o.providedIn)return!1;const u=i(o.providedIn);return"string"==typeof u?"any"===u||this.scopes.has(u):this.injectorDefTypes.has(u)}}function e0(a){const o=Ye(a),u=null!==o?o.factory:ia(a);if(null!==u)return u;if(a instanceof Sa)throw new M(204,!1);if(a instanceof Function)return function tm(a){const o=a.length;if(o>0)throw me(o,"?"),new M(204,!1);const u=function ke(a){return a&&(a[Tt]||a[H])||null}(a);return null!==u?()=>u.factory(a):()=>new a}(a);throw new M(204,!1)}function Ud(a,o,u){let h;if(Ul(a)){const b=i(a);return ia(b)||e0(b)}if(Qu(a))h=()=>i(a.useValue);else if(function qu(a){return!(!a||!a.useFactory)}(a))h=()=>a.useFactory(...G(a.deps||[]));else if(function kd(a){return!(!a||!a.useExisting)}(a))h=()=>qt(i(a.useExisting));else{const b=i(a&&(a.useClass||a.provide));if(!function nm(a){return!!a.deps}(a))return ia(b)||e0(b);h=()=>new b(...G(a.deps))}return h}function Bl(a,o,u=!1){return{factory:a,value:o,multi:u?[]:void 0}}function t0(a,o){for(const u of a)Array.isArray(u)?t0(u,o):u&&I(u)?t0(u.\u0275providers,o):o(u)}class ns{}class I_{}class Kc{resolveComponentFactory(o){throw function D_(a){const o=Error(`No component factory found for ${m(a)}. Did you add it to @NgModule.entryComponents?`);return o.ngComponent=a,o}(o)}}let oc=(()=>{class a{}return a.NULL=new Kc,a})();function P_(){return yc(Wa(),Wr())}function yc(a,o){return new ed(Qi(a,o))}let ed=(()=>{class a{constructor(u){this.nativeElement=u}}return a.__NG_ELEMENT_ID__=P_,a})();function n0(a){return a instanceof ed?a.nativeElement:a}class a0{}let om=(()=>{class a{}return a.__NG_ELEMENT_ID__=()=>function sm(){const a=Wr(),u=Ra(Wa().index,a);return(wi(u)?u:a)[Er]}(),a})(),lm=(()=>{class a{}return a.\u0275prov=We({token:a,providedIn:"root",factory:()=>null}),a})();class o0{constructor(o){this.full=o,this.major=o.split(".")[0],this.minor=o.split(".")[1],this.patch=o.split(".").slice(2).join(".")}}const s0=new o0("15.2.9"),l0={},td="ngOriginalError";function ao(a){return a[td]}class rd{constructor(){this._console=console}handleError(o){const u=this._findOriginalError(o);this._console.error("ERROR",o),u&&this._console.error("ORIGINAL ERROR",u)}_findOriginalError(o){let u=o&&ao(o);for(;u&&ao(u);)u=ao(u);return u||null}}function d0(a){return a.ownerDocument.defaultView}function Bd(a){return a.ownerDocument}function xl(a){return a instanceof Function?a():a}function G_(a,o,u){let h=a.length;for(;;){const b=a.indexOf(o,u);if(-1===b)return b;if(0===b||a.charCodeAt(b-1)<=32){const O=o.length;if(b+O===h||a.charCodeAt(b+O)<=32)return b}u=b+1}}const Yd="ng-template";function Sc(a,o,u){let h=0,b=!0;for(;h<a.length;){let O=a[h++];if("string"==typeof O&&b){const oe=a[h++];if(u&&"class"===O&&-1!==G_(oe.toLowerCase(),o,0))return!0}else{if(1===O){for(;h<a.length&&"string"==typeof(O=a[h++]);)if(O.toLowerCase()===o)return!0;return!1}"number"==typeof O&&(b=!1)}}return!1}function u0(a){return 4===a.type&&a.value!==Yd}function U_(a,o,u){return o===(4!==a.type||u?a.value:Yd)}function jo(a,o,u){let h=4;const b=a.attrs||[],O=function Am(a){for(let o=0;o<a.length;o++)if(Fn(a[o]))return o;return a.length}(b);let oe=!1;for(let Ce=0;Ce<o.length;Ce++){const Be=o[Ce];if("number"!=typeof Be){if(!oe)if(4&h){if(h=2|1&h,""!==Be&&!U_(a,Be,u)||""===Be&&1===o.length){if(ds(h))return!1;oe=!0}}else{const gt=8&h?Be:o[++Ce];if(8&h&&null!==a.attrs){if(!Sc(a.attrs,gt,u)){if(ds(h))return!1;oe=!0}continue}const ur=nd(8&h?"class":Be,b,u0(a),u);if(-1===ur){if(ds(h))return!1;oe=!0;continue}if(""!==gt){let Rr;Rr=ur>O?"":b[ur+1].toLowerCase();const Hr=8&h?Rr:null;if(Hr&&-1!==G_(Hr,gt,0)||2&h&&gt!==Rr){if(ds(h))return!1;oe=!0}}}}else{if(!oe&&!ds(h)&&!ds(Be))return!1;if(oe&&ds(Be))continue;oe=!1,h=Be|1&h}}return ds(h)||oe}function ds(a){return 0==(1&a)}function nd(a,o,u,h){if(null===o)return-1;let b=0;if(h||!u){let O=!1;for(;b<o.length;){const oe=o[b];if(oe===a)return b;if(3===oe||6===oe)O=!0;else{if(1===oe||2===oe){let Ce=o[++b];for(;"string"==typeof Ce;)Ce=o[++b];continue}if(4===oe)break;if(0===oe){b+=4;continue}}b+=O?1:2}return-1}return function mm(a,o){let u=a.indexOf(4);if(u>-1)for(u++;u<a.length;){const h=a[u];if("number"==typeof h)return-1;if(h===o)return u;u++}return-1}(o,a)}function B_(a,o,u=!1){for(let h=0;h<o.length;h++)if(jo(a,o[h],u))return!0;return!1}function hm(a,o){e:for(let u=0;u<o.length;u++){const h=o[u];if(a.length===h.length){for(let b=0;b<a.length;b++)if(a[b]!==h[b])continue e;return!0}}return!1}function Z_(a,o){return a?":not("+o.trim()+")":o}function gm(a){let o=a[0],u=1,h=2,b="",O=!1;for(;u<a.length;){let oe=a[u];if("string"==typeof oe)if(2&h){const Ce=a[++u];b+="["+oe+(Ce.length>0?'="'+Ce+'"':"")+"]"}else 8&h?b+="."+oe:4&h&&(b+=" "+oe);else""!==b&&!ds(oe)&&(o+=Z_(O,b),b=""),h=oe,O=O||!ds(h);u++}return""!==b&&(o+=Z_(O,b)),o}const Vi={};function H_(a){Y_(ii(),Wr(),cr()+a,!1)}function Y_(a,o,u,h){if(!h)if(3==(3&o[ie])){const O=a.preOrderCheckHooks;null!==O&&gs(o,O,u)}else{const O=a.preOrderHooks;null!==O&&ps(o,O,0,u)}Fr(u)}function z_(a,o=null,u=null,h){const b=j_(a,o,u,h);return b.resolveInjectorInitializers(),b}function j_(a,o=null,u=null,h,b=new Set){const O=[u||kt,qA(a)];return h=h||("object"==typeof a?void 0:m(a)),new R_(O,o||Gd(),h||null,b)}let Il=(()=>{class a{static create(u,h){if(Array.isArray(u))return z_({name:""},h,u,"");{const b=u.name??"";return z_({name:b},u.parent,u.providers,b)}}}return a.THROW_IF_NOT_FOUND=ct,a.NULL=new O_,a.\u0275prov=We({token:a,providedIn:"any",factory:()=>qt(M_)}),a.__NG_ELEMENT_ID__=-1,a})();function Tc(a,o=S.Default){const u=Wr();return null===u?qt(a,o):st(Wa(),u,i(a),o)}function af(){throw new Error("invalid")}function sf(a,o){const u=a.contentQueries;if(null!==u)for(let h=0;h<u.length;h+=2){const O=u[h+1];if(-1!==O){const oe=a.data[O];za(u[h]),oe.contentQueries(2,o[O],O)}}}function g0(a,o,u,h,b,O,oe,Ce,Be,gt,zt){const ur=o.blueprint.slice();return ur[Kt]=b,ur[ie]=76|h,(null!==zt||a&&1024&a[ie])&&(ur[ie]|=1024),Bo(ur),ur[Ve]=ur[Gr]=a,ur[un]=u,ur[Sr]=oe||a&&a[Sr],ur[Er]=Ce||a&&a[Er],ur[Ot]=Be||a&&a[Ot]||null,ur[ri]=gt||a&&a[ri]||null,ur[kr]=O,ur[$a]=function Tu(){return AA++}(),ur[La]=zt,ur[Ln]=2==o.type?a[Ln]:ur,ur}function Mc(a,o,u,h,b){let O=a.data[o];if(null===O)O=p0(a,o,u,h,b),function si(){return Qn.lFrame.inI18n}()&&(O.flags|=32);else if(64&O.type){O.type=u,O.value=h,O.attrs=b;const oe=is();O.injectorIndex=null===oe?-1:oe.injectorIndex}return no(O,!0),O}function p0(a,o,u,h,b){const O=vs(),oe=Zo(),Be=a.data[o]=function y0(a,o,u,h,b,O){return{type:u,index:h,insertBeforeIndex:null,injectorIndex:o?o.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:b,attrs:O,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:o,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,oe?O:O&&O.parent,u,o,h,b);return null===a.firstChild&&(a.firstChild=Be),null!==O&&(oe?null==O.child&&null!==Be.parent&&(O.child=Be):null===O.next&&(O.next=Be,Be.prev=O)),Be}function id(a,o,u,h){if(0===u)return-1;const b=o.length;for(let O=0;O<u;O++)o.push(h),a.blueprint.push(h),a.data.push(null);return b}function ad(a,o,u){ba(o);try{const h=a.viewQuery;null!==h&&Qd(1,h,u);const b=a.template;null!==b&&b0(a,o,b,1,u),a.firstCreatePass&&(a.firstCreatePass=!1),a.staticContentQueries&&sf(a,o),a.staticViewQueries&&Qd(2,a.viewQuery,u);const O=a.components;null!==O&&function km(a,o){for(let u=0;u<o.length;u++)Af(a,o[u])}(o,O)}catch(h){throw a.firstCreatePass&&(a.incompleteFirstPass=!0,a.firstCreatePass=!1),h}finally{o[ie]&=-5,ft()}}function cl(a,o,u,h){const b=o[ie];if(128!=(128&b)){ba(o);try{Bo(o),function Qr(a){return Qn.lFrame.bindingIndex=a}(a.bindingStartIndex),null!==u&&b0(a,o,u,2,h);const oe=3==(3&b);if(oe){const gt=a.preOrderCheckHooks;null!==gt&&gs(o,gt,null)}else{const gt=a.preOrderHooks;null!==gt&&ps(o,gt,0,null),xe(o,0)}if(function ff(a){for(let o=Nu(a);null!==o;o=ll(o)){if(!o[ha])continue;const u=o[Oa];for(let h=0;h<u.length;h++){const b=u[h];512&b[ie]||Oo(b[Ve],1),b[ie]|=512}}}(o),function Ym(a){for(let o=Nu(a);null!==o;o=ll(o))for(let u=cn;u<o.length;u++){const h=o[u],b=h[Ar];Lo(h)&&cl(b,h,b.template,h[un])}}(o),null!==a.contentQueries&&sf(a,o),oe){const gt=a.contentCheckHooks;null!==gt&&gs(o,gt)}else{const gt=a.contentHooks;null!==gt&&ps(o,gt,1),xe(o,1)}!function Dm(a,o){const u=a.hostBindingOpCodes;if(null!==u)try{for(let h=0;h<u.length;h++){const b=u[h];if(b<0)Fr(~b);else{const O=b,oe=u[++h],Ce=u[++h];vi(oe,O),Ce(2,o[O])}}}finally{Fr(-1)}}(a,o);const Ce=a.components;null!==Ce&&function Pm(a,o){for(let u=0;u<o.length;u++)Zl(a,o[u])}(o,Ce);const Be=a.viewQuery;if(null!==Be&&Qd(2,Be,h),oe){const gt=a.viewCheckHooks;null!==gt&&gs(o,gt)}else{const gt=a.viewHooks;null!==gt&&ps(o,gt,2),xe(o,2)}!0===a.firstUpdatePass&&(a.firstUpdatePass=!1),o[ie]&=-41,512&o[ie]&&(o[ie]&=-513,Oo(o[Ve],-1))}finally{ft()}}}function b0(a,o,u,h,b){const O=cr(),oe=2&h;try{Fr(-1),oe&&o.length>Ei&&Y_(a,o,Ei,!1),wa(oe?2:0,b),u(h,b)}finally{Fr(O),wa(oe?3:1,b)}}function od(a,o,u){if(ra(o)){const b=o.directiveEnd;for(let O=o.directiveStart;O<b;O++){const oe=a.data[O];oe.contentQueries&&oe.contentQueries(1,u[O],O)}}}function sd(a,o,u){Yr()&&(function Bm(a,o,u,h){const b=u.directiveStart,O=u.directiveEnd;ji(u)&&function Dl(a,o,u){const h=Qi(o,a),b=Bs(u),O=a[Sr],oe=gl(a,g0(a,b,null,u.onPush?32:16,h,o,O,O.createRenderer(h,u),null,null,null));a[o.index]=oe}(o,u,a.data[b+u.componentOffset]),a.firstCreatePass||Go(u,o),Ts(h,o);const oe=u.initialInputs;for(let Ce=b;Ce<O;Ce++){const Be=a.data[Ce],gt=fn(o,a,Ce,u);Ts(gt,o),null!==oe&&Hm(0,Ce-b,gt,Be,0,oe),Ui(Be)&&(Ra(u.index,o)[un]=fn(o,a,Ce,u))}}(a,o,u,Qi(u,o)),64==(64&u.flags)&&C0(a,o,u))}function ld(a,o,u=Qi){const h=o.localNames;if(null!==h){let b=o.index+1;for(let O=0;O<h.length;O+=2){const oe=h[O+1],Ce=-1===oe?u(o,a):a[oe];a[b++]=Ce}}}function Bs(a){const o=a.tView;return null===o||o.incompleteFirstPass?a.tView=Vd(1,null,a.template,a.decls,a.vars,a.directiveDefs,a.pipeDefs,a.viewQuery,a.schemas,a.consts):o}function Vd(a,o,u,h,b,O,oe,Ce,Be,gt){const zt=Ei+h,ur=zt+b,Rr=function E0(a,o){const u=[];for(let h=0;h<o;h++)u.push(h<a?null:Vi);return u}(zt,ur),Hr="function"==typeof gt?gt():gt;return Rr[Ar]={type:a,blueprint:Rr,template:u,queries:null,viewQuery:Ce,declTNode:o,data:Rr.slice().fill(null,zt),bindingStartIndex:zt,expandoStartIndex:ur,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 O?O():O,pipeRegistry:"function"==typeof oe?oe():oe,firstChild:null,schemas:Be,consts:Hr,incompleteFirstPass:!1}}function v0(a,o,u,h){const b=dd(o);null===u?b.push(h):(b.push(u),a.firstCreatePass&&hf(a).push(h,b.length-1))}function Lm(a,o,u,h){for(let b in a)if(a.hasOwnProperty(b)){u=null===u?{}:u;const O=a[b];null===h?cf(u,o,b,O):h.hasOwnProperty(b)&&cf(u,o,h[b],O)}return u}function cf(a,o,u,h){a.hasOwnProperty(u)?a[u].push(o,h):a[u]=[o,h]}function zs(a,o,u,h,b,O,oe,Ce){const Be=Qi(o,u);let zt,gt=o.inputs;!Ce&&null!=gt&&(zt=gt[h])?(N0(a,u,zt,h,b),ji(o)&&function gg(a,o){const u=Ra(o,a);16&u[ie]||(u[ie]|=32)}(u,o.index)):3&o.type&&(h=function df(a){return"class"===a?"className":"for"===a?"htmlFor":"formaction"===a?"formAction":"innerHtml"===a?"innerHTML":"readonly"===a?"readOnly":"tabindex"===a?"tabIndex":a}(h),b=null!=oe?oe(b,o.value||"",h):b,O.setProperty(Be,h,b))}function Wd(a,o,u,h){if(Yr()){const b=null===h?null:{"":-1},O=function T0(a,o){const u=a.directiveRegistry;let h=null,b=null;if(u)for(let O=0;O<u.length;O++){const oe=u[O];if(B_(o,oe.selectors,!1))if(h||(h=[]),Ui(oe))if(null!==oe.findHostDirectiveDefs){const Ce=[];b=b||new Map,oe.findHostDirectiveDefs(oe,Ce,b),h.unshift(...Ce,oe),Oc(a,o,Ce.length)}else h.unshift(oe),Oc(a,o,0);else b=b||new Map,oe.findHostDirectiveDefs?.(oe,h,b),h.push(oe)}return null===h?null:[h,b]}(a,u);let oe,Ce;null===O?oe=Ce=null:[oe,Ce]=O,null!==oe&&Um(a,o,u,oe,b,Ce),b&&function zd(a,o,u){if(o){const h=a.localNames=[];for(let b=0;b<o.length;b+=2){const O=u[o[b+1]];if(null==O)throw new M(-301,!1);h.push(o[b],O)}}}(u,h,b)}u.mergedAttrs=hi(u.mergedAttrs,u.attrs)}function Um(a,o,u,h,b,O){for(let gt=0;gt<h.length;gt++)Ze(Go(u,o),a,h[gt].type);!function _f(a,o,u){a.flags|=1,a.directiveStart=o,a.directiveEnd=o+u,a.providerIndexes=o}(u,a.data.length,h.length);for(let gt=0;gt<h.length;gt++){const zt=h[gt];zt.providersResolver&&zt.providersResolver(zt)}let oe=!1,Ce=!1,Be=id(a,o,h.length,null);for(let gt=0;gt<h.length;gt++){const zt=h[gt];u.mergedAttrs=hi(u.mergedAttrs,zt.hostAttrs),M0(a,u,o,Be,zt),jd(Be,zt,b),null!==zt.contentQueries&&(u.flags|=4),(null!==zt.hostBindings||null!==zt.hostAttrs||0!==zt.hostVars)&&(u.flags|=64);const ur=zt.type.prototype;!oe&&(ur.ngOnChanges||ur.ngOnInit||ur.ngDoCheck)&&((a.preOrderHooks??(a.preOrderHooks=[])).push(u.index),oe=!0),!Ce&&(ur.ngOnChanges||ur.ngDoCheck)&&((a.preOrderCheckHooks??(a.preOrderCheckHooks=[])).push(u.index),Ce=!0),Be++}!function sc(a,o,u){const b=o.directiveEnd,O=a.data,oe=o.attrs,Ce=[];let Be=null,gt=null;for(let zt=o.directiveStart;zt<b;zt++){const ur=O[zt],Rr=u?u.get(ur):null,an=Rr?Rr.outputs:null;Be=Lm(ur.inputs,zt,Be,Rr?Rr.inputs:null),gt=Lm(ur.outputs,zt,gt,an);const xn=null===Be||null===oe||u0(o)?null:cd(Be,zt,oe);Ce.push(xn)}null!==Be&&(Be.hasOwnProperty("class")&&(o.flags|=8),Be.hasOwnProperty("style")&&(o.flags|=16)),o.initialInputs=Ce,o.inputs=Be,o.outputs=gt}(a,u,O)}function C0(a,o,u){const h=u.directiveStart,b=u.directiveEnd,O=u.index,oe=function qi(){return Qn.lFrame.currentDirectiveIndex}();try{Fr(O);for(let Ce=h;Ce<b;Ce++){const Be=a.data[Ce],gt=o[Ce];Da(Ce),(null!==Be.hostBindings||0!==Be.hostVars||null!==Be.hostAttrs)&&Zm(Be,gt)}}finally{Fr(-1),Da(oe)}}function Zm(a,o){null!==a.hostBindings&&a.hostBindings(1,o)}function Oc(a,o,u){o.componentOffset=u,(a.components??(a.components=[])).push(o.index)}function jd(a,o,u){if(u){if(o.exportAs)for(let h=0;h<o.exportAs.length;h++)u[o.exportAs[h]]=a;Ui(o)&&(u[""]=a)}}function M0(a,o,u,h,b){a.data[h]=b;const O=b.factory||(b.factory=ia(b.type)),oe=new _r(O,Ui(b),Tc);a.blueprint[h]=oe,u[h]=oe,function uf(a,o,u,h,b){const O=b.hostBindings;if(O){let oe=a.hostBindingOpCodes;null===oe&&(oe=a.hostBindingOpCodes=[]);const Ce=~o.index;(function S0(a){let o=a.length;for(;o>0;){const u=a[--o];if("number"==typeof u&&u<0)return u}return 0})(oe)!=Ce&&oe.push(Ce),oe.push(u,h,O)}}(a,o,h,id(a,u,b.hostVars,Vi),b)}function Nc(a,o,u,h,b,O,oe){if(null==O)a.removeAttribute(o,b,u);else{const Ce=null==oe?F(O):oe(O,h||"",b);a.setAttribute(o,b,Ce,u)}}function Hm(a,o,u,h,b,O){const oe=O[o];if(null!==oe){const Ce=h.setInput;for(let Be=0;Be<oe.length;){const gt=oe[Be++],zt=oe[Be++],ur=oe[Be++];null!==Ce?h.setInput(u,ur,gt,zt):u[zt]=ur}}}function cd(a,o,u){let h=null,b=0;for(;b<u.length;){const O=u[b];if(0!==O)if(5!==O){if("number"==typeof O)break;if(a.hasOwnProperty(O)){null===h&&(h=[]);const oe=a[O];for(let Ce=0;Ce<oe.length;Ce+=2)if(oe[Ce]===o){h.push(O,oe[Ce+1],u[b+1]);break}}b+=2}else b+=2;else b+=4}return h}function O0(a,o,u,h){return[a,!0,!1,o,null,0,h,u,null,null]}function Zl(a,o){const u=Ra(o,a);if(Lo(u)){const h=u[Ar];48&u[ie]?cl(h,u,h.template,u[un]):u[tr]>0&&Xd(u)}}function Xd(a){for(let h=Nu(a);null!==h;h=ll(h))for(let b=cn;b<h.length;b++){const O=h[b];if(Lo(O))if(512&O[ie]){const oe=O[Ar];cl(oe,O,oe.template,O[un])}else O[tr]>0&&Xd(O)}const u=a[Ar].components;if(null!==u)for(let h=0;h<u.length;h++){const b=Ra(u[h],a);Lo(b)&&b[tr]>0&&Xd(b)}}function Af(a,o){const u=Ra(o,a),h=u[Ar];(function hl(a,o){for(let u=o.length;u<a.blueprint.length;u++)o.push(a.blueprint[u])})(h,u),ad(h,u,u[un])}function gl(a,o){return a[lr]?a[Cr][Mt]=o:a[lr]=o,a[Cr]=o,o}function Hl(a){for(;a;){a[ie]|=32;const o=Ml(a);if(na(a)&&!o)return a;a=o}return null}function Jd(a,o,u,h=!0){const b=o[Sr];b.begin&&b.begin();try{cl(a,o,a.template,u)}catch(oe){throw h&&gf(o,oe),oe}finally{b.end&&b.end()}}function Qd(a,o,u){za(0),o(a,u)}function dd(a){return a[mn]||(a[mn]=[])}function hf(a){return a.cleanup||(a.cleanup=[])}function Kd(a,o,u){return(null===a||Ui(a))&&(u=function Ji(a){for(;Array.isArray(a);){if("object"==typeof a[bn])return a;a=a[Kt]}return null}(u[o.index])),u[Er]}function gf(a,o){const u=a[ri],h=u?u.get(rd,null):null;h&&h.handleError(o)}function N0(a,o,u,h,b){for(let O=0;O<u.length;){const oe=u[O++],Ce=u[O++],Be=o[oe],gt=a.data[oe];null!==gt.setInput?gt.setInput(Be,b,h,Ce):Be[Ce]=b}}function Pl(a,o,u){const h=Va(o,a);l_(a[Er],h,u)}function Ns(a,o,u){let h=u?a.styles:null,b=u?a.classes:null,O=0;if(null!==o)for(let oe=0;oe<o.length;oe++){const Ce=o[oe];"number"==typeof Ce?O=Ce:1==O?b=v(b,Ce):2==O&&(h=v(h,Ce+": "+o[++oe]+";"))}u?a.styles=h:a.stylesWithoutHost=h,u?a.classes=b:a.classesWithoutHost=b}function ud(a,o,u,h,b=!1){for(;null!==u;){const O=o[u.index];if(null!==O&&h.push(Pi(O)),Wi(O))for(let Ce=cn;Ce<O.length;Ce++){const Be=O[Ce],gt=Be[Ar].firstChild;null!==gt&&ud(Be[Ar],Be,gt,h)}const oe=u.type;if(8&oe)ud(a,o,u.child,h);else if(32&oe){const Ce=fo(u,o);let Be;for(;Be=Ce();)h.push(Be)}else if(16&oe){const Ce=NA(o,u);if(Array.isArray(Ce))h.push(...Ce);else{const Be=Ml(o[Ln]);ud(Be[Ar],Be,Ce,h,!0)}}u=b?u.projectionNext:u.next}return h}class Yl{get rootNodes(){const o=this._lView,u=o[Ar];return ud(u,o,u.firstChild,[])}constructor(o,u){this._lView=o,this._cdRefInjectingView=u,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[un]}set context(o){this._lView[un]=o}get destroyed(){return 128==(128&this._lView[ie])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const o=this._lView[Ve];if(Wi(o)){const u=o[Ia],h=u?u.indexOf(this):-1;h>-1&&(io(o,h),ae(u,h))}this._attachedToViewContainer=!1}cs(this._lView[Ar],this._lView)}onDestroy(o){v0(this._lView[Ar],this._lView,null,o)}markForCheck(){Hl(this._cdRefInjectingView||this._lView)}detach(){this._lView[ie]&=-65}reattach(){this._lView[ie]|=64}detectChanges(){Jd(this._lView[Ar],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function SA(a,o){gc(a,o,o[Er],2,null,null)}(this._lView[Ar],this._lView)}attachToAppRef(o){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=o}}class eu extends Yl{constructor(o){super(o),this._view=o}detectChanges(){const o=this._view;Jd(o[Ar],o,o[un],!1)}checkNoChanges(){}get context(){return null}}class pf extends oc{constructor(o){super(),this.ngModule=o}resolveComponentFactory(o){const u=rn(o);return new tu(u,this.ngModule)}}function bf(a){const o=[];for(let u in a)a.hasOwnProperty(u)&&o.push({propName:a[u],templateName:u});return o}class pg{constructor(o,u){this.injector=o,this.parentInjector=u}get(o,u,h){h=De(h);const b=this.injector.get(o,l0,h);return b!==l0||u===l0?b:this.parentInjector.get(o,u,h)}}class tu extends I_{get inputs(){return bf(this.componentDef.inputs)}get outputs(){return bf(this.componentDef.outputs)}constructor(o,u){super(),this.componentDef=o,this.ngModule=u,this.componentType=o.type,this.selector=function pm(a){return a.map(gm).join(",")}(o.selectors),this.ngContentSelectors=o.ngContentSelectors?o.ngContentSelectors:[],this.isBoundToModule=!!u}create(o,u,h,b){let O=(b=b||this.ngModule)instanceof ac?b:b?.injector;O&&null!==this.componentDef.getStandaloneInjector&&(O=this.componentDef.getStandaloneInjector(O)||O);const oe=O?new pg(o,O):o,Ce=oe.get(a0,null);if(null===Ce)throw new M(407,!1);const Be=oe.get(lm,null),gt=Ce.createRenderer(null,this.componentDef),zt=this.componentDef.selectors[0][0]||"div",ur=h?function lf(a,o,u){return a.selectRootElement(o,u===Vt.ShadowDom)}(gt,h,this.componentDef.encapsulation):Ru(gt,zt,function $m(a){const o=a.toLowerCase();return"svg"===o?Eo:"math"===o?"math":null}(zt)),Rr=this.componentDef.onPush?288:272,Hr=Vd(0,null,null,1,0,null,null,null,null,null),an=g0(null,Hr,null,Rr,null,null,Ce,gt,Be,oe,null);let xn,Zn;ba(an);try{const oi=this.componentDef;let Oi,pn=null;oi.findHostDirectiveDefs?(Oi=[],pn=new Map,oi.findHostDirectiveDefs(oi,Oi,pn),Oi.push(oi)):Oi=[oi];const zi=function Vm(a,o){const u=a[Ar],h=Ei;return a[h]=o,Mc(u,h,2,"#host",null)}(an,ur),Xo=function Wm(a,o,u,h,b,O,oe,Ce){const Be=b[Ar];!function nu(a,o,u,h){for(const b of a)o.mergedAttrs=hi(o.mergedAttrs,b.hostAttrs);null!==o.mergedAttrs&&(Ns(o,o.mergedAttrs,!0),null!==u&&xd(h,u,o))}(h,a,o,oe);const gt=O.createRenderer(o,u),zt=g0(b,Bs(u),null,u.onPush?32:16,b[a.index],a,O,gt,Ce||null,null,null);return Be.firstCreatePass&&Oc(Be,a,h.length-1),gl(b,zt),b[a.index]=zt}(zi,ur,oi,Oi,an,Ce,gt);Zn=xo(Hr,Ei),ur&&function Ef(a,o,u,h){if(h)En(a,u,["ng-version",s0.full]);else{const{attrs:b,classes:O}=function $d(a){const o=[],u=[];let h=1,b=2;for(;h<a.length;){let O=a[h];if("string"==typeof O)2===b?""!==O&&o.push(O,a[++h]):8===b&&u.push(O);else{if(!ds(b))break;b=O}h++}return{attrs:o,classes:u}}(o.selectors[0]);b&&En(a,u,b),O&&O.length>0&&Rd(a,u,O.join(" "))}}(gt,oi,ur,h),void 0!==u&&function vf(a,o,u){const h=a.projection=[];for(let b=0;b<o.length;b++){const O=u[b];h.push(null!=O?Array.from(O):null)}}(Zn,this.ngContentSelectors,u),xn=function iu(a,o,u,h,b,O){const oe=Wa(),Ce=b[Ar],Be=Qi(oe,b);Um(Ce,b,oe,u,null,h);for(let zt=0;zt<u.length;zt++)Ts(fn(b,Ce,oe.directiveStart+zt,oe),b);C0(Ce,b,oe),Be&&Ts(Be,b);const gt=fn(b,Ce,oe.directiveStart+oe.componentOffset,oe);if(a[un]=b[un]=gt,null!==O)for(const zt of O)zt(gt,o);return od(Ce,oe,a),gt}(Xo,oi,Oi,pn,an,[zm]),ad(Hr,an,null)}finally{ft()}return new ru(this.componentType,xn,yc(Zn,an),an,Zn)}}class ru extends ns{constructor(o,u,h,b,O){super(),this.location=h,this._rootLView=b,this._tNode=O,this.instance=u,this.hostView=this.changeDetectorRef=new eu(b),this.componentType=o}setInput(o,u){const h=this._tNode.inputs;let b;if(null!==h&&(b=h[o])){const O=this._rootLView;N0(O[Ar],O,b,o,u),Hl(Ra(this._tNode.index,O))}}get injector(){return new Xa(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(o){this.hostView.onDestroy(o)}}function zm(){const a=Wa();xs(Wr()[Ar],a)}function ou(a){let o=function au(a){return Object.getPrototypeOf(a.prototype).constructor}(a.type),u=!0;const h=[a];for(;o;){let b;if(Ui(a))b=o.\u0275cmp||o.\u0275dir;else{if(o.\u0275cmp)throw new M(903,!1);b=o.\u0275dir}if(b){if(u){h.push(b);const oe=a;oe.inputs=w0(a.inputs),oe.declaredInputs=w0(a.declaredInputs),oe.outputs=w0(a.outputs);const Ce=b.hostBindings;Ce&&Qm(a,Ce);const Be=b.viewQuery,gt=b.contentQueries;if(Be&&Xm(a,Be),gt&&Jm(a,gt),E(a.inputs,b.inputs),E(a.declaredInputs,b.declaredInputs),E(a.outputs,b.outputs),Ui(b)&&b.data.animation){const zt=a.data;zt.animation=(zt.animation||[]).concat(b.data.animation)}}const O=b.features;if(O)for(let oe=0;oe<O.length;oe++){const Ce=O[oe];Ce&&Ce.ngInherit&&Ce(a),Ce===ou&&(u=!1)}}o=Object.getPrototypeOf(o)}!function jm(a){let o=0,u=null;for(let h=a.length-1;h>=0;h--){const b=a[h];b.hostVars=o+=b.hostVars,b.hostAttrs=hi(b.hostAttrs,u=hi(u,b.hostAttrs))}}(h)}function w0(a){return a===Jt?{}:a===kt?[]:a}function Xm(a,o){const u=a.viewQuery;a.viewQuery=u?(h,b)=>{o(h,b),u(h,b)}:o}function Jm(a,o){const u=a.contentQueries;a.contentQueries=u?(h,b,O)=>{o(h,b,O),u(h,b,O)}:o}function Qm(a,o){const u=a.hostBindings;a.hostBindings=u?(h,b)=>{o(h,b),u(h,b)}:o}function wc(a){return!!fd(a)&&(Array.isArray(a)||!(a instanceof Map)&&Symbol.iterator in a)}function fd(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function pl(a,o,u){return a[o]=u}function ws(a,o,u){return!Object.is(a[o],u)&&(a[o]=u,!0)}function xc(a,o,u,h){const b=ws(a,o,u);return ws(a,o+1,h)||b}function I0(a,o,u,h){const b=Wr();return ws(b,qr(),o)&&(ii(),function Ks(a,o,u,h,b,O){const oe=Qi(a,o);Nc(o[Er],oe,O,a.value,u,h,b)}(Zr(),b,a,o,u,h)),I0}function cc(a,o,u,h){return ws(a,qr(),u)?o+F(u)+h:Vi}function Rf(a,o,u,h,b,O,oe,Ce){const Be=Wr(),gt=ii(),zt=a+Ei,ur=gt.firstCreatePass?function rh(a,o,u,h,b,O,oe,Ce,Be){const gt=o.consts,zt=Mc(o,a,4,oe||null,eo(gt,Ce));Wd(o,u,zt,eo(gt,Be)),xs(o,zt);const ur=zt.tView=Vd(2,zt,h,b,O,o.directiveRegistry,o.pipeRegistry,null,o.schemas,gt);return null!==o.queries&&(o.queries.template(o,zt),ur.queries=o.queries.embeddedTView(zt)),zt}(zt,gt,Be,o,u,h,b,O,oe):gt.data[zt];no(ur,!1);const Rr=Be[Er].createComment("");Nd(gt,Be,Rr,ur),Ts(Rr,Be),gl(Be,Be[zt]=O0(Rr,Be,Rr,ur)),sa(ur)&&sd(gt,Be,ur),null!=oe&&ld(Be,ur,Ce)}function If(a){return so(function Xt(){return Qn.lFrame.contextLView}(),Ei+a)}function Zs(a,o,u){const h=Wr();return ws(h,qr(),o)&&zs(ii(),Zr(),h,a,o,h[Er],u,!1),Zs}function md(a,o,u,h,b){const oe=b?"class":"style";N0(a,u,o.inputs[oe],oe,h)}function Gc(a,o,u,h){const b=Wr(),O=ii(),oe=Ei+a,Ce=b[Er],Be=O.firstCreatePass?function hd(a,o,u,h,b,O){const oe=o.consts,Be=Mc(o,a,2,h,eo(oe,b));return Wd(o,u,Be,eo(oe,O)),null!==Be.attrs&&Ns(Be,Be.attrs,!1),null!==Be.mergedAttrs&&Ns(Be,Be.mergedAttrs,!0),null!==o.queries&&o.queries.elementStart(o,Be),Be}(oe,O,b,o,u,h):O.data[oe],gt=b[oe]=Ru(Ce,o,function Yo(){return Qn.lFrame.currentNamespace}()),zt=sa(Be);return no(Be,!0),xd(Ce,gt,Be),32!=(32&Be.flags)&&Nd(O,b,gt,Be),0===function je(){return Qn.lFrame.elementDepthCount}()&&Ts(gt,b),function Ue(){Qn.lFrame.elementDepthCount++}(),zt&&(sd(O,b,Be),od(O,Be,b)),null!==h&&ld(b,Be),Gc}function du(){let a=Wa();Zo()?mt():(a=a.parent,no(a,!1));const o=a;!function Yt(){Qn.lFrame.elementDepthCount--}();const u=ii();return u.firstCreatePass&&(xs(u,a),ra(a)&&u.queries.elementEnd(a)),null!=o.classesWithoutHost&&function dt(a){return 0!=(8&a.flags)}(o)&&md(u,o,Wr(),o.classesWithoutHost,!0),null!=o.stylesWithoutHost&&function jt(a){return 0!=(16&a.flags)}(o)&&md(u,o,Wr(),o.stylesWithoutHost,!1),du}function k0(a,o,u,h){return Gc(a,o,u,h),du(),k0}function uu(a,o,u){const h=Wr(),b=ii(),O=a+Ei,oe=b.firstCreatePass?function L0(a,o,u,h,b){const O=o.consts,oe=eo(O,h),Ce=Mc(o,a,8,"ng-container",oe);return null!==oe&&Ns(Ce,oe,!0),Wd(o,u,Ce,eo(O,b)),null!==o.queries&&o.queries.elementStart(o,Ce),Ce}(O,b,h,o,u):b.data[O];no(oe,!0);const Ce=h[O]=h[Er].createComment("");return Nd(b,h,Ce,oe),Ts(Ce,h),sa(oe)&&(sd(b,h,oe),od(b,oe,h)),null!=u&&ld(h,oe),uu}function _u(){let a=Wa();const o=ii();return Zo()?mt():(a=a.parent,no(a,!1)),o.firstCreatePass&&(xs(o,a),ra(a)&&o.queries.elementEnd(a)),_u}function Uc(a,o,u){return uu(a,o,u),_u(),Uc}function Df(){return Wr()}function fu(a){return!!a&&"function"==typeof a.then}function F0(a){return!!a&&"function"==typeof a.subscribe}const G0=F0;function Hs(a,o,u,h){const b=Wr(),O=ii(),oe=Wa();return Pf(O,b,b[Er],oe,a,o,h),Hs}function Vl(a,o){const u=Wa(),h=Wr(),b=ii();return Pf(b,h,Kd(ua(b.data),u,h),u,a,o),Vl}function Pf(a,o,u,h,b,O,oe){const Ce=sa(h),gt=a.firstCreatePass&&hf(a),zt=o[un],ur=dd(o);let Rr=!0;if(3&h.type||oe){const xn=Qi(h,o),Zn=oe?oe(xn):xn,oi=ur.length,Oi=oe?zi=>oe(Pi(zi[h.index])):h.index;let pn=null;if(!oe&&Ce&&(pn=function nh(a,o,u,h){const b=a.cleanup;if(null!=b)for(let O=0;O<b.length-1;O+=2){const oe=b[O];if(oe===u&&b[O+1]===h){const Ce=o[mn],Be=b[O+2];return Ce.length>Be?Ce[Be]:null}"string"==typeof oe&&(O+=2)}return null}(a,o,b,h.index)),null!==pn)(pn.__ngLastListenerFn__||pn).__ngNextListenerFn__=O,pn.__ngLastListenerFn__=O,Rr=!1;else{O=kf(h,o,zt,O,!1);const zi=u.listen(Zn,b,O);ur.push(O,zi),gt&&gt.push(b,Oi,oi,oi+1)}}else O=kf(h,o,zt,O,!1);const Hr=h.outputs;let an;if(Rr&&null!==Hr&&(an=Hr[b])){const xn=an.length;if(xn)for(let Zn=0;Zn<xn;Zn+=2){const Xo=o[an[Zn]][an[Zn+1]].subscribe(O),ms=ur.length;ur.push(O,Xo),gt&&gt.push(b,h.index,ms,-(ms+1))}}}function U0(a,o,u,h){try{return wa(6,o,u),!1!==u(h)}catch(b){return gf(a,b),!1}finally{wa(7,o,u)}}function kf(a,o,u,h,b){return function O(oe){if(oe===Function)return h;Hl(a.componentOffset>-1?Ra(a.index,o):o);let Be=U0(o,u,h,oe),gt=O.__ngNextListenerFn__;for(;gt;)Be=U0(o,u,gt,oe)&&Be,gt=gt.__ngNextListenerFn__;return b&&!1===Be&&(oe.preventDefault(),oe.returnValue=!1),Be}}function B0(a=1){return function Lt(a){return(Qn.lFrame.contextLView=function it(a,o){for(;a>0;)o=o[Gr],a--;return o}(a,Qn.lFrame.contextLView))[un]}(a)}function Au(a,o){let u=null;const h=function fm(a){const o=a.attrs;if(null!=o){const u=o.indexOf(5);if(!(1&u))return o[u+1]}return null}(a);for(let b=0;b<o.length;b++){const O=o[b];if("*"!==O){if(null===h?B_(a,O,!0):hm(h,O))return b}else u=b}return u}function Lf(a){const o=Wr()[Ln][kr];if(!o.projection){const h=o.projection=me(a?a.length:1,null),b=h.slice();let O=o.child;for(;null!==O;){const oe=a?Au(O,a):0;null!==oe&&(b[oe]?b[oe].projectionNext=O:h[oe]=O,b[oe]=O),O=O.next}}}function Ff(a,o=0,u){const h=Wr(),b=ii(),O=Mc(b,Ei+a,16,null,u||null);null===O.projection&&(O.projection=o),mt(),32!=(32&O.flags)&&function f_(a,o,u){A_(o[Er],0,o,u,OA(a,u,o),Du(u.parent||o[kr],u,o))}(b,h,O)}function gd(a,o,u){return mu(a,"",o,"",u),gd}function mu(a,o,u,h,b){const O=Wr(),oe=cc(O,o,u,h);return oe!==Vi&&zs(ii(),Zr(),O,a,oe,O[Er],b,!1),mu}function hu(a,o){return a<<17|o<<2}function kl(a){return a>>17&32767}function $0(a){return 2|a}function uc(a){return(131068&a)>>2}function V0(a,o){return-131069&a|o<<2}function gu(a){return 1|a}function ch(a,o,u,h,b){const O=a[u+1],oe=null===o;let Ce=h?kl(O):uc(O),Be=!1;for(;0!==Ce&&(!1===Be||oe);){const zt=a[Ce+1];Sg(a[Ce],o)&&(Be=!0,a[Ce+1]=h?gu(zt):$0(zt)),Ce=h?kl(zt):uc(zt)}Be&&(a[u+1]=h?$0(O):gu(O))}function Sg(a,o){return null===a||null==o||(Array.isArray(a)?a[1]:a)===o||!(!Array.isArray(a)||"string"!=typeof o)&&zr(a,o)>=0}const us={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Yf(a){return a.substring(us.key,us.keyEnd)}function $f(a,o){const u=us.textEnd;return u===o?-1:(o=us.keyEnd=function fh(a,o,u){for(;o<u&&a.charCodeAt(o)>32;)o++;return o}(a,us.key=o,u),Bc(a,o,u))}function Bc(a,o,u){for(;o<u&&a.charCodeAt(o)<=32;)o++;return o}function ce(a,o,u){return vr(a,o,u,!1),ce}function Ie(a,o){return vr(a,o,null,!0),Ie}function Gt(a){Nr(pi,ir,a,!0)}function ir(a,o){for(let u=function uh(a){return function Wf(a){us.key=0,us.keyEnd=0,us.value=0,us.valueEnd=0,us.textEnd=a.length}(a),$f(a,Bc(a,0,us.textEnd))}(o);u>=0;u=$f(o,u))Zt(a,Yf(o),!0)}function vr(a,o,u,h){const b=Wr(),O=ii(),oe=Tn(2);O.firstUpdatePass&&Tr(O,a,oe,h),o!==Vi&&ws(b,oe,o)&&to(O,O.data[cr()],b,b[Er],a,b[oe+1]=function go(a,o){return null==a||""===a||("string"==typeof o?a+=o:"object"==typeof a&&(a=m(wl(a)))),a}(o,u),h,oe)}function Nr(a,o,u,h){const b=ii(),O=Tn(2);b.firstUpdatePass&&Tr(b,null,O,h);const oe=Wr();if(u!==Vi&&ws(oe,O,u)){const Ce=b.data[cr()];if(ca(Ce,h)&&!wr(b,O)){let Be=h?Ce.classesWithoutHost:Ce.stylesWithoutHost;null!==Be&&(u=v(Be,u||"")),md(b,Ce,oe,u,h)}else!function _a(a,o,u,h,b,O,oe,Ce){b===Vi&&(b=kt);let Be=0,gt=0,zt=0<b.length?b[0]:null,ur=0<O.length?O[0]:null;for(;null!==zt||null!==ur;){const Rr=Be<b.length?b[Be+1]:void 0,Hr=gt<O.length?O[gt+1]:void 0;let xn,an=null;zt===ur?(Be+=2,gt+=2,Rr!==Hr&&(an=ur,xn=Hr)):null===ur||null!==zt&&zt<ur?(Be+=2,an=zt):(gt+=2,an=ur,xn=Hr),null!==an&&to(a,o,u,h,an,xn,oe,Ce),zt=Be<b.length?b[Be]:null,ur=gt<O.length?O[gt]:null}}(b,Ce,oe,oe[Er],oe[O+1],oe[O+1]=function jn(a,o,u){if(null==u||""===u)return kt;const h=[],b=wl(u);if(Array.isArray(b))for(let O=0;O<b.length;O++)a(h,b[O],!0);else if("object"==typeof b)for(const O in b)b.hasOwnProperty(O)&&a(h,O,b[O]);else"string"==typeof b&&o(h,b);return h}(a,o,u),h,O)}}function wr(a,o){return o>=a.expandoStartIndex}function Tr(a,o,u,h){const b=a.data;if(null===b[u+1]){const O=b[cr()],oe=wr(a,u);ca(O,h)&&null===o&&!oe&&(o=!1),o=function jr(a,o,u,h){const b=ua(a);let O=h?o.residualClasses:o.residualStyles;if(null===b)0===(h?o.classBindings:o.styleBindings)&&(u=on(u=Nn(null,a,o,u,h),o.attrs,h),O=null);else{const oe=o.directiveStylingLast;if(-1===oe||a[oe]!==b)if(u=Nn(b,a,o,u,h),null===O){let Be=function _n(a,o,u){const h=u?o.classBindings:o.styleBindings;if(0!==uc(h))return a[kl(h)]}(a,o,h);void 0!==Be&&Array.isArray(Be)&&(Be=Nn(null,a,o,Be[1],h),Be=on(Be,o.attrs,h),function sn(a,o,u,h){a[kl(u?o.classBindings:o.styleBindings)]=h}(a,o,h,Be))}else O=function Sn(a,o,u){let h;const b=o.directiveEnd;for(let O=1+o.directiveStylingLast;O<b;O++)h=on(h,a[O].hostAttrs,u);return on(h,o.attrs,u)}(a,o,h)}return void 0!==O&&(h?o.residualClasses=O:o.residualStyles=O),u}(b,O,o,h),function lh(a,o,u,h,b,O){let oe=O?o.classBindings:o.styleBindings,Ce=kl(oe),Be=uc(oe);a[h]=u;let zt,gt=!1;if(Array.isArray(u)?(zt=u[1],(null===zt||zr(u,zt)>0)&&(gt=!0)):zt=u,b)if(0!==Be){const Rr=kl(a[Ce+1]);a[h+1]=hu(Rr,Ce),0!==Rr&&(a[Rr+1]=V0(a[Rr+1],h)),a[Ce+1]=function ah(a,o){return 131071&a|o<<17}(a[Ce+1],h)}else a[h+1]=hu(Ce,0),0!==Ce&&(a[Ce+1]=V0(a[Ce+1],h)),Ce=h;else a[h+1]=hu(Be,0),0===Ce?Ce=h:a[Be+1]=V0(a[Be+1],h),Be=h;gt&&(a[h+1]=$0(a[h+1])),ch(a,zt,h,!0),ch(a,zt,h,!1),function yg(a,o,u,h,b){const O=b?a.residualClasses:a.residualStyles;null!=O&&"string"==typeof o&&zr(O,o)>=0&&(u[h+1]=gu(u[h+1]))}(o,zt,a,h,O),oe=hu(Ce,Be),O?o.classBindings=oe:o.styleBindings=oe}(b,O,o,u,oe,h)}}function Nn(a,o,u,h,b){let O=null;const oe=u.directiveEnd;let Ce=u.directiveStylingLast;for(-1===Ce?Ce=u.directiveStart:Ce++;Ce<oe&&(O=o[Ce],h=on(h,O.hostAttrs,b),O!==a);)Ce++;return null!==a&&(u.directiveStylingLast=Ce),h}function on(a,o,u){const h=u?1:2;let b=-1;if(null!==o)for(let O=0;O<o.length;O++){const oe=o[O];"number"==typeof oe?b=oe:b===h&&(Array.isArray(a)||(a=void 0===a?[]:["",a]),Zt(a,oe,!!u||o[++O]))}return void 0===a?null:a}function pi(a,o,u){const h=String(o);""!==h&&!h.includes(" ")&&Zt(a,h,u)}function to(a,o,u,h,b,O,oe,Ce){if(!(3&o.type))return;const Be=a.data,gt=Be[Ce+1],zt=function oh(a){return 1==(1&a)}(gt)?Qa(Be,o,u,b,uc(gt),oe):void 0;oo(zt)||(oo(O)||function ih(a){return 2==(2&a)}(gt)&&(O=Qa(Be,null,u,b,Ce,oe)),function h_(a,o,u,h,b){if(o)b?a.addClass(u,h):a.removeClass(u,h);else{let O=-1===h.indexOf("-")?void 0:ls.DashCase;null==b?a.removeStyle(u,h,O):("string"==typeof b&&b.endsWith("!important")&&(b=b.slice(0,-10),O|=ls.Important),a.setStyle(u,h,b,O))}}(h,oe,Va(cr(),u),b,O))}function Qa(a,o,u,h,b,O){const oe=null===o;let Ce;for(;b>0;){const Be=a[b],gt=Array.isArray(Be),zt=gt?Be[1]:Be,ur=null===zt;let Rr=u[b+1];Rr===Vi&&(Rr=ur?kt:void 0);let Hr=ur?gr(Rr,h):zt===h?Rr:void 0;if(gt&&!oo(Hr)&&(Hr=gr(Be,h)),oo(Hr)&&(Ce=Hr,oe))return Ce;const an=a[b+1];b=oe?kl(an):uc(an)}if(null!==o){let Be=O?o.residualClasses:o.residualStyles;null!=Be&&(Ce=gr(Be,h))}return Ce}function oo(a){return void 0!==a}function ca(a,o){return 0!=(a.flags&(o?8:16))}function Si(a,o=""){const u=Wr(),h=ii(),b=a+Ei,O=h.firstCreatePass?Mc(h,b,1,o,null):h.data[b],oe=u[b]=wu(u[Er],o);Nd(h,u,oe,O),no(O,!1)}function So(a){return Pn("",a,""),So}function Pn(a,o,u){const h=Wr(),b=cc(h,a,o,u);return b!==Vi&&Pl(h,cr(),b),Pn}function In(a,o,u,h,b){const O=Wr(),oe=function $l(a,o,u,h,b,O){const Ce=xc(a,Vr(),u,b);return Tn(2),Ce?o+F(u)+h+F(b)+O:Vi}(O,a,o,u,h,b);return oe!==Vi&&Pl(O,cr(),oe),In}function el(a,o,u){Nr(Zt,ir,cc(Wr(),a,o,u),!0)}function mh(a,o,u){const h=Wr();return ws(h,qr(),o)&&zs(ii(),Zr(),h,a,o,h[Er],u,!0),mh}function hh(a,o,u){const h=Wr();if(ws(h,qr(),o)){const O=ii(),oe=Zr();zs(O,oe,h,a,o,Kd(ua(O.data),oe,h),u,!0)}return hh}const Ed=void 0;var F2=["en",[["a","p"],["AM","PM"],Ed],[["AM","PM"],Ed,Ed],[["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"]],Ed,[["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"]],Ed,[["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}",Ed,"{1} 'at' {0}",Ed],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function L2(a){const u=Math.floor(Math.abs(a)),h=a.toString().replace(/^[^.]*\.?/,"").length;return 1===u&&0===h?1:5}];let bu={};function gh(a){const o=function G2(a){return a.toLowerCase().replace(/_/g,"-")}(a);let u=Ig(o);if(u)return u;const h=o.split("-")[0];if(u=Ig(h),u)return u;if("en"===h)return F2;throw new M(701,!1)}function xg(a){return gh(a)[Ci.PluralCase]}function Ig(a){return a in bu||(bu[a]=qe.ng&&qe.ng.common&&qe.ng.common.locales&&qe.ng.common.locales[a]),bu[a]}var Ci=(()=>((Ci=Ci||{})[Ci.LocaleId=0]="LocaleId",Ci[Ci.DayPeriodsFormat=1]="DayPeriodsFormat",Ci[Ci.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ci[Ci.DaysFormat=3]="DaysFormat",Ci[Ci.DaysStandalone=4]="DaysStandalone",Ci[Ci.MonthsFormat=5]="MonthsFormat",Ci[Ci.MonthsStandalone=6]="MonthsStandalone",Ci[Ci.Eras=7]="Eras",Ci[Ci.FirstDayOfWeek=8]="FirstDayOfWeek",Ci[Ci.WeekendRange=9]="WeekendRange",Ci[Ci.DateFormat=10]="DateFormat",Ci[Ci.TimeFormat=11]="TimeFormat",Ci[Ci.DateTimeFormat=12]="DateTimeFormat",Ci[Ci.NumberSymbols=13]="NumberSymbols",Ci[Ci.NumberFormats=14]="NumberFormats",Ci[Ci.CurrencyCode=15]="CurrencyCode",Ci[Ci.CurrencySymbol=16]="CurrencySymbol",Ci[Ci.CurrencyName=17]="CurrencyName",Ci[Ci.Currencies=18]="Currencies",Ci[Ci.Directionality=19]="Directionality",Ci[Ci.PluralCase=20]="PluralCase",Ci[Ci.ExtraData=21]="ExtraData",Ci))();const U2=["zero","one","two","few","many"],Eu="en-US",Jf={marker:"element"},Qf={marker:"ICU"};var _s=(()=>((_s=_s||{})[_s.SHIFT=2]="SHIFT",_s[_s.APPEND_EAGERLY=1]="APPEND_EAGERLY",_s[_s.COMMENT=2]="COMMENT",_s))();let Dg=Eu;function Pg(a){(function x(a,o){null==a&&z(o,a,null,"!=")})(a,"Expected localeId to be defined"),"string"==typeof a&&(Dg=a.toLowerCase().replace(/_/g,"-"))}function kg(a,o,u){const h=o.insertBeforeIndex,b=Array.isArray(h)?h[0]:h;return null===b?Ms(a,0,u):Pi(u[b])}function Lg(a,o,u,h,b){const O=o.insertBeforeIndex;if(Array.isArray(O)){let oe=h,Ce=null;if(3&o.type||(Ce=oe,oe=b),null!==oe&&-1===o.componentOffset)for(let Be=1;Be<O.length;Be++)Ql(a,oe,u[O[Be]],Ce,!1)}}function Fg(a,o){if(a.push(o),a.length>1)for(let u=a.length-2;u>=0;u--){const h=a[u];Gg(h)||Y2(h,o)&&null===$2(h)&&V2(h,o.index)}}function Gg(a){return!(64&a.type)}function Y2(a,o){return Gg(o)||a.index>o.index}function $2(a){const o=a.insertBeforeIndex;return Array.isArray(o)?o[0]:o}function V2(a,o){const u=a.insertBeforeIndex;Array.isArray(u)?u[0]=o:(Pu(kg,Lg),a.insertBeforeIndex=o)}function W0(a,o){const u=a.data[o];return null===u||"string"==typeof u?null:u.hasOwnProperty("currentCaseLViewIndex")?u:u.value}function j2(a,o,u){const h=p0(a,u,64,null,null);return Fg(o,h),h}function qf(a,o){const u=o[a.currentCaseLViewIndex];return null===u?u:u<0?~u:u}function Ug(a){return a>>>17}function Bg(a){return(131070&a)>>>1}let z0=0,j0=0;function Hg(a,o,u,h){const b=u[Er];let oe,O=null;for(let Ce=0;Ce<o.length;Ce++){const Be=o[Ce];if("string"==typeof Be){const gt=o[++Ce];null===u[gt]&&(u[gt]=wu(b,Be))}else if("number"==typeof Be)switch(1&Be){case 0:const gt=Ug(Be);let zt,ur;if(null===O&&(O=gt,oe=Ol(b,h)),gt===O?(zt=h,ur=oe):(zt=null,ur=Pi(u[gt])),null!==ur){const xn=Bg(Be);Ql(b,ur,u[xn],zt,!1);const oi=W0(a,xn);if(null!==oi&&"object"==typeof oi){const Oi=qf(oi,u);null!==Oi&&Hg(a,oi.create[Oi],u,u[oi.anchorIdx])}}break;case 1:const Hr=o[++Ce],an=o[++Ce];Nc(b,Va(Be>>>1,u),null,null,Hr,an,null)}else switch(Be){case Qf:const gt=o[++Ce],zt=o[++Ce];null===u[zt]&&Ts(u[zt]=c_(b,gt),u);break;case Jf:const ur=o[++Ce],Rr=o[++Ce];null===u[Rr]&&Ts(u[Rr]=Ru(b,ur,null),u)}}}function Yg(a,o,u,h,b){for(let O=0;O<u.length;O++){const oe=u[O],Ce=u[++O];if(oe&b){let Be="";for(let gt=O+1;gt<=O+Ce;gt++){const zt=u[gt];if("string"==typeof zt)Be+=zt;else if("number"==typeof zt)if(zt<0)Be+=F(o[h-zt]);else{const ur=zt>>>2;switch(3&zt){case 1:const Rr=u[++gt],Hr=u[++gt],an=a.data[ur];"string"==typeof an?Nc(o[Er],o[ur],null,an,Rr,Be,Hr):zs(a,an,o,Rr,Be,o[Er],Hr,!1);break;case 0:const xn=o[ur];null!==xn&&l_(o[Er],xn,Be);break;case 2:K2(a,W0(a,ur),o,Be);break;case 3:$g(a,W0(a,ur),h,o)}}}}else{const Be=u[O+1];if(Be>0&&3==(3&Be)){const zt=W0(a,Be>>>2);o[zt.currentCaseLViewIndex]<0&&$g(a,zt,h,o)}}O+=Ce}}function $g(a,o,u,h){let b=h[o.currentCaseLViewIndex];if(null!==b){let O=z0;b<0&&(b=h[o.currentCaseLViewIndex]=~b,O=-1),Yg(a,h,o.update[b],u,O)}}function K2(a,o,u,h){const b=function e1(a,o){let u=a.cases.indexOf(o);if(-1===u)switch(a.type){case 1:{const h=function B2(a,o){const u=xg(o)(parseInt(a,10)),h=U2[u];return void 0!==h?h:"other"}(o,function H2(){return Dg}());u=a.cases.indexOf(h),-1===u&&"other"!==h&&(u=a.cases.indexOf("other"));break}case 0:u=a.cases.indexOf("other")}return-1===u?null:u}(o,h);if(qf(o,u)!==b&&(Vg(a,o,u),u[o.currentCaseLViewIndex]=null===b?null:~b,null!==b)){const oe=u[o.anchorIdx];oe&&Hg(a,o.create[b],u,oe)}}function Vg(a,o,u){let h=qf(o,u);if(null!==h){const b=o.remove[h];for(let O=0;O<b.length;O++){const oe=b[O];if(oe>0){const Ce=Va(oe,u);null!==Ce&&wd(u[Er],Ce)}else Vg(a,W0(a,~oe),u)}}}function t1(){const a=[];let u,h,o=-1;function O(Ce,Be){o=0;const gt=qf(Ce,Be);h=null!==gt?Ce.remove[gt]:kt}function oe(){if(o<h.length){const Ce=h[o++];return Ce>0?u[Ce]:(a.push(o,h),O(u[Ar].data[~Ce],u),oe())}return 0===a.length?null:(h=a.pop(),o=a.pop(),oe())}return function b(Ce,Be){for(u=Be;a.length;)a.pop();return O(Ce.value,Be),oe}}const Kf=/\ufffd(\d+):?\d*\ufffd/gi,n1=/\ufffd(\d+)\ufffd/,zg=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,X0="\ufffd",a1=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,o1=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,s1=/\uE500/g;function jg(a,o,u,h,b,O,oe){const Ce=id(a,h,1,null);let Be=Ce<<_s.SHIFT,gt=is();o===gt&&(gt=null),null===gt&&(Be|=_s.APPEND_EAGERLY),oe&&(Be|=_s.COMMENT,function vA(a){void 0===Ou&&(Ou=a())}(t1)),b.push(Be,null===O?"":O);const zt=p0(a,Ce,oe?32:1,null===O?"":O,null);Fg(u,zt);const ur=zt.index;return no(zt,!1),null!==gt&&o!==gt&&function z2(a,o){let u=a.insertBeforeIndex;null===u?(Pu(kg,Lg),u=a.insertBeforeIndex=[null,o]):(function se(a,o,u){a!=o&&z(u,a,o,"==")}(Array.isArray(u),!0,"Expecting array here"),u.push(o))}(gt,ur),zt}function d1(a,o,u,h,b,O,oe){const Ce=oe.match(Kf),Be=jg(a,o,u,O,h,Ce?null:oe,!1);Ce&&J0(b,oe,Be.index,null,0,null)}function J0(a,o,u,h,b,O){const oe=a.length,Ce=oe+1;a.push(null,null);const Be=oe+2,gt=o.split(Kf);let zt=0;for(let ur=0;ur<gt.length;ur++){const Rr=gt[ur];if(1&ur){const Hr=b+parseInt(Rr,10);a.push(-1-Hr),zt|=Xg(Hr)}else""!==Rr&&a.push(Rr)}return a.push(u<<2|(h?1:0)),h&&a.push(h,O),a[oe]=zt,a[Ce]=a.length-Be,zt}function Xg(a){return 1<<Math.min(a,31)}function Jg(a){let o,O,u="",h=0,b=!1;for(;null!==(o=a1.exec(a));)b?o[0]===`${X0}/*${O}${X0}`&&(h=o.index,b=!1):(u+=a.substring(h,o.index+o[0].length),O=o[1],b=!0);return u+=a.slice(h),u}function Qg(a,o,u,h,b,O){let oe=0;const Ce={type:b.type,currentCaseLViewIndex:id(a,o,1,null),anchorIdx:O,cases:[],create:[],remove:[],update:[]};(function p1(a,o,u){a.push(Xg(o.mainBinding),2,-1-o.mainBinding,u<<2|2)})(u,b,O),function W2(a,o,u){const h=a.data[o];null===h?a.data[o]=u:h.value=u}(a,O,Ce);const Be=b.values;for(let gt=0;gt<Be.length;gt++){const zt=Be[gt],ur=[];for(let Rr=0;Rr<zt.length;Rr++){const Hr=zt[Rr];if("string"!=typeof Hr){const an=ur.push(Hr)-1;zt[Rr]=`\x3c!--\ufffd${an}\ufffd--\x3e`}}oe=h1(a,Ce,o,u,h,b.cases[gt],zt.join(""),ur)|oe}oe&&function b1(a,o,u){a.push(o,1,u<<2|3)}(u,oe,O)}function m1(a){const o=[],u=[];let h=1,b=0;const O=ph(a=a.replace(zg,function(oe,Ce,Be){return h="select"===Be?0:1,b=parseInt(Ce.slice(1),10),""}));for(let oe=0;oe<O.length;){let Ce=O[oe++].trim();1===h&&(Ce=Ce.replace(/\s*(?:=)?(\w+)\s*/,"$1")),Ce.length&&o.push(Ce);const Be=ph(O[oe++]);o.length>u.length&&u.push(Be)}return{type:h,mainBinding:b,cases:o,values:u}}function ph(a){if(!a)return[];let o=0;const u=[],h=[],b=/[{}]/g;let O;for(b.lastIndex=0;O=b.exec(a);){const Ce=O.index;if("}"==O[0]){if(u.pop(),0==u.length){const Be=a.substring(o,Ce);zg.test(Be)?h.push(m1(Be)):h.push(Be),o=Ce+1}}else{if(0==u.length){const Be=a.substring(o,Ce);h.push(Be),o=Ce+1}u.push("{")}}const oe=a.substring(o);return h.push(oe),h}function h1(a,o,u,h,b,O,oe,Ce){const Be=[],gt=[],zt=[];o.cases.push(O),o.create.push(Be),o.remove.push(gt),o.update.push(zt);const Rr=Xc(b_()).getInertBodyElement(oe),Hr=$u(Rr)||Rr;return Hr?qg(a,o,u,h,Be,gt,zt,Hr,b,Ce,0):0}function qg(a,o,u,h,b,O,oe,Ce,Be,gt,zt){let ur=0,Rr=Ce.firstChild;for(;Rr;){const Hr=id(a,u,1,null);switch(Rr.nodeType){case Node.ELEMENT_NODE:const an=Rr,xn=an.tagName.toLowerCase();if(tc.hasOwnProperty(xn)){bh(b,Jf,xn,Be,Hr),a.data[Hr]=xn;const pn=an.attributes;for(let zi=0;zi<pn.length;zi++){const Xo=pn.item(zi),ms=Xo.name.toLowerCase();Xo.value.match(Kf)?S_.hasOwnProperty(ms)&&J0(oe,Xo.value,Hr,Xo.name,0,rc[ms]?Jc:null):E1(b,Hr,Xo)}ur=qg(a,o,u,h,b,O,oe,Rr,Hr,gt,zt+1)|ur,Kg(O,Hr,zt)}break;case Node.TEXT_NODE:const Zn=Rr.textContent||"",oi=Zn.match(Kf);bh(b,null,oi?"":Zn,Be,Hr),Kg(O,Hr,zt),oi&&(ur=J0(oe,Zn,Hr,null,0,null)|ur);break;case Node.COMMENT_NODE:const Oi=n1.exec(Rr.textContent||"");if(Oi){const zi=gt[parseInt(Oi[1],10)];bh(b,Qf,"",Be,Hr),Qg(a,u,h,Be,zi,Hr),g1(O,Hr,zt)}}Rr=Rr.nextSibling}return ur}function Kg(a,o,u){0===u&&a.push(o)}function g1(a,o,u){0===u&&(a.push(~o),a.push(o))}function bh(a,o,u,h,b){null!==o&&a.push(o),a.push(u,b,function X2(a,o,u){return a|o<<17|u<<1}(0,h,b))}function E1(a,o,u){a.push(o<<1|1,u.name,u.value)}function Eh(a,o,u=-1){const h=ii(),b=Wr(),O=Ei+a,oe=eo(h.consts,o),Ce=is();h.firstCreatePass&&function c1(a,o,u,h,b,O){const oe=is(),Ce=[],Be=[],gt=[[]];b=function A1(a,o){if(function f1(a){return-1===a}(o))return Jg(a);{const u=a.indexOf(`:${o}${X0}`)+2+o.toString().length,h=a.search(new RegExp(`${X0}\\/\\*\\d+:${o}${X0}`));return Jg(a.substring(u,h))}}(b,O);const zt=function l1(a){return a.replace(s1," ")}(b).split(o1);for(let ur=0;ur<zt.length;ur++){let Rr=zt[ur];if(1&ur){const Hr=47===Rr.charCodeAt(0),xn=(Rr.charCodeAt(Hr?1:0),Ei+Number.parseInt(Rr.substring(Hr?2:1)));if(Hr)gt.shift(),no(is(),!1);else{const Zn=j2(a,gt[0],xn);gt.unshift([]),no(Zn,!0)}}else{const Hr=ph(Rr);for(let an=0;an<Hr.length;an++){let xn=Hr[an];if(1&an){const Zn=xn;if("object"!=typeof Zn)throw new Error(`Unable to parse ICU expression in "${b}" message.`);Qg(a,u,Be,o,Zn,jg(a,oe,gt[0],u,Ce,"",!0).index)}else""!==xn&&d1(a,oe,gt[0],Ce,Be,u,xn)}}}a.data[h]={create:Ce,update:Be}}(h,null===Ce?0:Ce.index,b,O,oe,u);const Be=h.data[O],zt=Us(h,Ce===b[kr]?null:Ce,b);(function q2(a,o,u,h){const b=a[Er];for(let O=0;O<o.length;O++){const oe=o[O++],Ce=o[O],gt=(oe&_s.APPEND_EAGERLY)===_s.APPEND_EAGERLY,zt=oe>>>_s.SHIFT;let ur=a[zt];null===ur&&(ur=a[zt]=(oe&_s.COMMENT)===_s.COMMENT?b.createComment(Ce):wu(b,Ce)),gt&&null!==u&&Ql(b,u,ur,h,!1)}})(b,Be.create,zt,Ce&&8&Ce.type?b[Ce.index]:null),di(!0)}function vh(){di(!1)}function tp(a,o,u){Eh(a,o,u),vh()}function yh(a){return function J2(a){a&&(z0|=1<<Math.min(j0,31)),j0++}(ws(Wr(),qr(),a)),yh}function rp(a){!function Q2(a,o,u){if(j0>0){const h=a.data[u];Yg(a,o,Array.isArray(h)?h:h.update,Vr()-j0-1,z0)}z0=0,j0=0}(ii(),Wr(),a+Ei)}function Sh(a,o,u,h,b){if(a=i(a),Array.isArray(a))for(let O=0;O<a.length;O++)Sh(a[O],o,u,h,b);else{const O=ii(),oe=Wr();let Ce=Ul(a)?a:i(a.provide),Be=Ud(a);const gt=Wa(),zt=1048575&gt.providerIndexes,ur=gt.directiveStart,Rr=gt.providerIndexes>>20;if(Ul(a)||!a.multi){const Hr=new _r(Be,b,Tc),an=Th(Ce,o,b?zt:zt+Rr,ur);-1===an?(Ze(Go(gt,oe),O,Ce),Ch(O,a,o.length),o.push(Ce),gt.directiveStart++,gt.directiveEnd++,b&&(gt.providerIndexes+=1048576),u.push(Hr),oe.push(Hr)):(u[an]=Hr,oe[an]=Hr)}else{const Hr=Th(Ce,o,zt+Rr,ur),an=Th(Ce,o,zt,zt+Rr),Zn=an>=0&&u[an];if(b&&!Zn||!b&&!(Hr>=0&&u[Hr])){Ze(Go(gt,oe),O,Ce);const oi=function P1(a,o,u,h,b){const O=new _r(a,u,Tc);return O.multi=[],O.index=o,O.componentProviders=0,np(O,b,h&&!u),O}(b?D1:I1,u.length,b,h,Be);!b&&Zn&&(u[an].providerFactory=oi),Ch(O,a,o.length,0),o.push(Ce),gt.directiveStart++,gt.directiveEnd++,b&&(gt.providerIndexes+=1048576),u.push(oi),oe.push(oi)}else Ch(O,a,Hr>-1?Hr:an,np(u[b?an:Hr],Be,!b&&h));!b&&h&&Zn&&u[an].componentProviders++}}}function Ch(a,o,u,h){const b=Ul(o),O=function w_(a){return!!a.useClass}(o);if(b||O){const Be=(O?i(o.useClass):o).prototype.ngOnDestroy;if(Be){const gt=a.destroyHooks||(a.destroyHooks=[]);if(!b&&o.multi){const zt=gt.indexOf(u);-1===zt?gt.push(u,[h,Be]):gt[zt+1].push(h,Be)}else gt.push(u,Be)}}}function np(a,o,u){return u&&a.componentProviders++,a.multi.push(o)-1}function Th(a,o,u,h){for(let b=u;b<h;b++)if(o[b]===a)return b;return-1}function I1(a,o,u,h){return Mh(this.multi,[])}function D1(a,o,u,h){const b=this.multi;let O;if(this.providerFactory){const oe=this.providerFactory.componentProviders,Ce=fn(u,u[Ar],this.providerFactory.index,h);O=Ce.slice(0,oe),Mh(b,O);for(let Be=oe;Be<Ce.length;Be++)O.push(Ce[Be])}else O=[],Mh(b,O);return O}function Mh(a,o){for(let u=0;u<a.length;u++)o.push((0,a[u])());return o}function ip(a,o=[]){return u=>{u.providersResolver=(h,b)=>function x1(a,o,u){const h=ii();if(h.firstCreatePass){const b=Ui(a);Sh(u,h.data,h.blueprint,b,!0),Sh(o,h.data,h.blueprint,b,!1)}}(h,b?b(a):a,o)}}class vu{}class ap{}function k1(a,o){return new op(a,o??null)}class op extends vu{constructor(o,u){super(),this._parent=u,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new pf(this);const h=Dn(o);this._bootstrapComponents=xl(h.bootstrap),this._r3Injector=j_(o,u,[{provide:vu,useValue:this},{provide:oc,useValue:this.componentFactoryResolver}],m(o),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(o)}get injector(){return this._r3Injector}destroy(){const o=this._r3Injector;!o.destroyed&&o.destroy(),this.destroyCbs.forEach(u=>u()),this.destroyCbs=null}onDestroy(o){this.destroyCbs.push(o)}}class Oh extends ap{constructor(o){super(),this.moduleType=o}create(o){return new op(this.moduleType,o)}}class L1 extends vu{constructor(o,u,h){super(),this.componentFactoryResolver=new pf(this),this.instance=null;const b=new R_([...o,{provide:vu,useValue:this},{provide:oc,useValue:this.componentFactoryResolver}],u||Gd(),h,new Set(["environment"]));this.injector=b,b.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(o){this.injector.onDestroy(o)}}function Nh(a,o,u=null){return new L1(a,o,u).injector}let F1=(()=>{class a{constructor(u){this._injector=u,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(u){if(!u.standalone)return null;if(!this.cachedInjectors.has(u.id)){const h=N_(0,u.type),b=h.length>0?Nh([h],this._injector,`Standalone[${u.type.name}]`):null;this.cachedInjectors.set(u.id,b)}return this.cachedInjectors.get(u.id)}ngOnDestroy(){try{for(const u of this.cachedInjectors.values())null!==u&&u.destroy()}finally{this.cachedInjectors.clear()}}}return a.\u0275prov=We({token:a,providedIn:"environment",factory:()=>new a(qt(ac))}),a})();function sp(a){a.getStandaloneInjector=o=>o.get(F1).getOrCreateStandaloneInjector(a)}function Ap(a,o,u){const h=Or()+a,b=Wr();return b[h]===Vi?pl(b,h,u?o.call(u):o()):function Rc(a,o){return a[o]}(b,h)}function mp(a,o,u,h){return pp(Wr(),Or(),a,o,u,h)}function hp(a,o,u,h,b){return bp(Wr(),Or(),a,o,u,h,b)}function gp(a,o,u,h,b,O){return Ep(Wr(),Or(),a,o,u,h,b,O)}function Q0(a,o){const u=a[o];return u===Vi?void 0:u}function pp(a,o,u,h,b,O){const oe=o+u;return ws(a,oe,b)?pl(a,oe+1,O?h.call(O,b):h(b)):Q0(a,oe+1)}function bp(a,o,u,h,b,O,oe){const Ce=o+u;return xc(a,Ce,b,O)?pl(a,Ce+2,oe?h.call(oe,b,O):h(b,O)):Q0(a,Ce+2)}function Ep(a,o,u,h,b,O,oe,Ce){const Be=o+u;return function Ic(a,o,u,h,b){const O=xc(a,o,u,h);return ws(a,o+2,b)||O}(a,Be,b,O,oe)?pl(a,Be+3,Ce?h.call(Ce,b,O,oe):h(b,O,oe)):Q0(a,Be+3)}function vp(a,o,u,h,b,O,oe,Ce,Be){const gt=o+u;return function dl(a,o,u,h,b,O){const oe=xc(a,o,u,h);return xc(a,o+2,b,O)||oe}(a,gt,b,O,oe,Ce)?pl(a,gt+4,Be?h.call(Be,b,O,oe,Ce):h(b,O,oe,Ce)):Q0(a,gt+4)}function Sp(a,o){const u=ii();let h;const b=a+Ei;u.firstCreatePass?(h=function q1(a,o){if(o)for(let u=o.length-1;u>=0;u--){const h=o[u];if(a===h.name)return h}}(o,u.pipeRegistry),u.data[b]=h,h.onDestroy&&(u.destroyHooks??(u.destroyHooks=[])).push(b,h.onDestroy)):h=u.data[b];const O=h.factory||(h.factory=ia(h.type)),oe=B(Tc);try{const Ce=va(!1),Be=O();return va(Ce),function xf(a,o,u,h){u>=a.data.length&&(a.data[u]=null,a.blueprint[u]=null),o[u]=h}(u,Wr(),b,Be),Be}finally{B(oe)}}function Cp(a,o,u){const h=a+Ei,b=Wr(),O=so(b,h);return q0(b,h)?pp(b,Or(),o,O.transform,u,O):O.transform(u)}function Tp(a,o,u,h){const b=a+Ei,O=Wr(),oe=so(O,b);return q0(O,b)?bp(O,Or(),o,oe.transform,u,h,oe):oe.transform(u,h)}function Mp(a,o,u,h,b){const O=a+Ei,oe=Wr(),Ce=so(oe,O);return q0(oe,O)?Ep(oe,Or(),o,Ce.transform,u,h,b,Ce):Ce.transform(u,h,b)}function Op(a,o,u,h,b,O){const oe=a+Ei,Ce=Wr(),Be=so(Ce,oe);return q0(Ce,oe)?vp(Ce,Or(),o,Be.transform,u,h,b,O,Be):Be.transform(u,h,b,O)}function q0(a,o){return a[Ar].data[o].pure}function Rh(a){return o=>{setTimeout(a,void 0,o)}}const Wl=class eb extends t.x{constructor(o=!1){super(),this.__isAsync=o}emit(o){super.next(o)}subscribe(o,u,h){let b=o,O=u||(()=>null),oe=h;if(o&&"object"==typeof o){const Be=o;b=Be.next?.bind(Be),O=Be.error?.bind(Be),oe=Be.complete?.bind(Be)}this.__isAsync&&(O=Rh(O),b&&(b=Rh(b)),oe&&(oe=Rh(oe)));const Ce=super.subscribe({next:b,error:O,complete:oe});return o instanceof e.w0&&o.add(Ce),Ce}};function tb(){return this._results[Symbol.iterator]()}class eA{get changes(){return this._changes||(this._changes=new Wl)}constructor(o=!1){this._emitDistinctChangesOnly=o,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const u=eA.prototype;u[Symbol.iterator]||(u[Symbol.iterator]=tb)}get(o){return this._results[o]}map(o){return this._results.map(o)}filter(o){return this._results.filter(o)}find(o){return this._results.find(o)}reduce(o,u){return this._results.reduce(o,u)}forEach(o){this._results.forEach(o)}some(o){return this._results.some(o)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(o,u){const h=this;h.dirty=!1;const b=function On(a){return a.flat(Number.POSITIVE_INFINITY)}(o);(this._changesDetected=!function Pr(a,o,u){if(a.length!==o.length)return!1;for(let h=0;h<a.length;h++){let b=a[h],O=o[h];if(u&&(b=u(b),O=u(O)),O!==b)return!1}return!0}(h._results,b,u))&&(h._results=b,h.length=b.length,h.last=b[this.length-1],h.first=b[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let K0=(()=>{class a{}return a.__NG_ELEMENT_ID__=ib,a})();const rb=K0,nb=class extends rb{constructor(o,u,h){super(),this._declarationLView=o,this._declarationTContainer=u,this.elementRef=h}createEmbeddedView(o,u){const h=this._declarationTContainer.tView,b=g0(this._declarationLView,h,o,16,null,h.declTNode,null,null,null,null,u||null);b[Xn]=this._declarationLView[this._declarationTContainer.index];const oe=this._declarationLView[ta];return null!==oe&&(b[ta]=oe.createEmbeddedView(h)),ad(h,b,o),new Yl(b)}};function ib(){return tA(Wa(),Wr())}function tA(a,o){return 4&a.type?new nb(o,a,yc(a,o)):null}let rA=(()=>{class a{}return a.__NG_ELEMENT_ID__=ab,a})();function ab(){return Rp(Wa(),Wr())}const ob=rA,Np=class extends ob{constructor(o,u,h){super(),this._lContainer=o,this._hostTNode=u,this._hostLView=h}get element(){return yc(this._hostTNode,this._hostLView)}get injector(){return new Xa(this._hostTNode,this._hostLView)}get parentInjector(){const o=ya(this._hostTNode,this._hostLView);if(gi(o)){const u=da(o,this._hostLView),h=oa(o);return new Xa(u[Ar].data[h+8],u)}return new Xa(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(o){const u=wp(this._lContainer);return null!==u&&u[o]||null}get length(){return this._lContainer.length-cn}createEmbeddedView(o,u,h){let b,O;"number"==typeof h?b=h:null!=h&&(b=h.index,O=h.injector);const oe=o.createEmbeddedView(u||{},O);return this.insert(oe,b),oe}createComponent(o,u,h,b,O){const oe=o&&!function en(a){return"function"==typeof a}(o);let Ce;if(oe)Ce=u;else{const ur=u||{};Ce=ur.index,h=ur.injector,b=ur.projectableNodes,O=ur.environmentInjector||ur.ngModuleRef}const Be=oe?o:new tu(rn(o)),gt=h||this.parentInjector;if(!O&&null==Be.ngModule){const Rr=(oe?gt:this.parentInjector).get(ac,null);Rr&&(O=Rr)}const zt=Be.create(gt,b,void 0,O);return this.insert(zt.hostView,Ce),zt}insert(o,u){const h=o._lView,b=h[Ar];if(function Mo(a){return Wi(a[Ve])}(h)){const zt=this.indexOf(o);if(-1!==zt)this.detach(zt);else{const ur=h[Ve],Rr=new Np(ur,ur[kr],ur[Ve]);Rr.detach(Rr.indexOf(o))}}const O=this._adjustIndex(u),oe=this._lContainer;!function CA(a,o,u,h){const b=cn+h,O=u.length;h>0&&(u[b-1][Mt]=o),h<O-cn?(o[Mt]=u[b],Ai(u,cn+h,o)):(u.push(o),o[Mt]=null),o[Ve]=u;const oe=o[Xn];null!==oe&&u!==oe&&function TA(a,o){const u=a[Oa];o[Ln]!==o[Ve][Ve][Ln]&&(a[ha]=!0),null===u?a[Oa]=[o]:u.push(o)}(oe,o);const Ce=o[ta];null!==Ce&&Ce.insertView(a),o[ie]|=64}(b,h,oe,O);const Ce=Lu(O,oe),Be=h[Er],gt=Ol(Be,oe[po]);return null!==gt&&function tg(a,o,u,h,b,O){h[Kt]=b,h[kr]=o,gc(a,h,u,1,b,O)}(b,oe[kr],Be,h,gt,Ce),o.attachToViewContainerRef(),Ai(xh(oe),O,o),o}move(o,u){return this.insert(o,u)}indexOf(o){const u=wp(this._lContainer);return null!==u?u.indexOf(o):-1}remove(o){const u=this._adjustIndex(o,-1),h=io(this._lContainer,u);h&&(ae(xh(this._lContainer),u),cs(h[Ar],h))}detach(o){const u=this._adjustIndex(o,-1),h=io(this._lContainer,u);return h&&null!=ae(xh(this._lContainer),u)?new Yl(h):null}_adjustIndex(o,u=0){return o??this.length+u}};function wp(a){return a[Ia]}function xh(a){return a[Ia]||(a[Ia]=[])}function Rp(a,o){let u;const h=o[a.index];if(Wi(h))u=h;else{let b;if(8&a.type)b=Pi(h);else{const O=o[Er];b=O.createComment("");const oe=Qi(a,o);Ql(O,Ol(O,oe),b,function __(a,o){return a.nextSibling(o)}(O,oe),!1)}o[a.index]=u=O0(h,o,b,a),gl(o,u)}return new Np(u,a,o)}class Ih{constructor(o){this.queryList=o,this.matches=null}clone(){return new Ih(this.queryList)}setDirty(){this.queryList.setDirty()}}class Dh{constructor(o=[]){this.queries=o}createEmbeddedView(o){const u=o.queries;if(null!==u){const h=null!==o.contentQueries?o.contentQueries[0]:u.length,b=[];for(let O=0;O<h;O++){const oe=u.getByIndex(O);b.push(this.queries[oe.indexInDeclarationView].clone())}return new Dh(b)}return null}insertView(o){this.dirtyQueriesWithMatches(o)}detachView(o){this.dirtyQueriesWithMatches(o)}dirtyQueriesWithMatches(o){for(let u=0;u<this.queries.length;u++)null!==Up(o,u).matches&&this.queries[u].setDirty()}}class xp{constructor(o,u,h=null){this.predicate=o,this.flags=u,this.read=h}}class Ph{constructor(o=[]){this.queries=o}elementStart(o,u){for(let h=0;h<this.queries.length;h++)this.queries[h].elementStart(o,u)}elementEnd(o){for(let u=0;u<this.queries.length;u++)this.queries[u].elementEnd(o)}embeddedTView(o){let u=null;for(let h=0;h<this.length;h++){const b=null!==u?u.length:0,O=this.getByIndex(h).embeddedTView(o,b);O&&(O.indexInDeclarationView=h,null!==u?u.push(O):u=[O])}return null!==u?new Ph(u):null}template(o,u){for(let h=0;h<this.queries.length;h++)this.queries[h].template(o,u)}getByIndex(o){return this.queries[o]}get length(){return this.queries.length}track(o){this.queries.push(o)}}class kh{constructor(o,u=-1){this.metadata=o,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=u}elementStart(o,u){this.isApplyingToNode(u)&&this.matchTNode(o,u)}elementEnd(o){this._declarationNodeIndex===o.index&&(this._appliesToNextNode=!1)}template(o,u){this.elementStart(o,u)}embeddedTView(o,u){return this.isApplyingToNode(o)?(this.crossesNgTemplate=!0,this.addMatch(-o.index,u),new kh(this.metadata)):null}isApplyingToNode(o){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const u=this._declarationNodeIndex;let h=o.parent;for(;null!==h&&8&h.type&&h.index!==u;)h=h.parent;return u===(null!==h?h.index:-1)}return this._appliesToNextNode}matchTNode(o,u){const h=this.metadata.predicate;if(Array.isArray(h))for(let b=0;b<h.length;b++){const O=h[b];this.matchTNodeWithReadOption(o,u,sb(u,O)),this.matchTNodeWithReadOption(o,u,Xr(u,o,O,!1,!1))}else h===K0?4&u.type&&this.matchTNodeWithReadOption(o,u,-1):this.matchTNodeWithReadOption(o,u,Xr(u,o,h,!1,!1))}matchTNodeWithReadOption(o,u,h){if(null!==h){const b=this.metadata.read;if(null!==b)if(b===ed||b===rA||b===K0&&4&u.type)this.addMatch(u.index,-2);else{const O=Xr(u,o,b,!1,!1);null!==O&&this.addMatch(u.index,O)}else this.addMatch(u.index,h)}}addMatch(o,u){null===this.matches?this.matches=[o,u]:this.matches.push(o,u)}}function sb(a,o){const u=a.localNames;if(null!==u)for(let h=0;h<u.length;h+=2)if(u[h]===o)return u[h+1];return null}function cb(a,o,u,h){return-1===u?function lb(a,o){return 11&a.type?yc(a,o):4&a.type?tA(a,o):null}(o,a):-2===u?function db(a,o,u){return u===ed?yc(o,a):u===K0?tA(o,a):u===rA?Rp(o,a):void 0}(a,o,h):fn(a,a[Ar],u,o)}function Ip(a,o,u,h){const b=o[ta].queries[h];if(null===b.matches){const O=a.data,oe=u.matches,Ce=[];for(let Be=0;Be<oe.length;Be+=2){const gt=oe[Be];Ce.push(gt<0?null:cb(o,O[gt],oe[Be+1],u.metadata.read))}b.matches=Ce}return b.matches}function Lh(a,o,u,h){const b=a.queries.getByIndex(u),O=b.matches;if(null!==O){const oe=Ip(a,o,b,u);for(let Ce=0;Ce<O.length;Ce+=2){const Be=O[Ce];if(Be>0)h.push(oe[Ce/2]);else{const gt=O[Ce+1],zt=o[-Be];for(let ur=cn;ur<zt.length;ur++){const Rr=zt[ur];Rr[Xn]===Rr[Ve]&&Lh(Rr[Ar],Rr,gt,h)}if(null!==zt[Oa]){const ur=zt[Oa];for(let Rr=0;Rr<ur.length;Rr++){const Hr=ur[Rr];Lh(Hr[Ar],Hr,gt,h)}}}}}return h}function Dp(a){const o=Wr(),u=ii(),h=Pa();za(h+1);const b=Up(u,h);if(a.dirty&&function hs(a){return 4==(4&a[ie])}(o)===(2==(2&b.metadata.flags))){if(null===b.matches)a.reset([]);else{const O=b.crossesNgTemplate?Lh(u,o,h,[]):Ip(u,o,b,h);a.reset(O,n0),a.notifyOnChanges()}return!0}return!1}function Pp(a,o,u){const h=ii();h.firstCreatePass&&(Gp(h,new xp(a,o,u),-1),2==(2&o)&&(h.staticViewQueries=!0)),Fp(h,Wr(),o)}function kp(a,o,u,h){const b=ii();if(b.firstCreatePass){const O=Wa();Gp(b,new xp(o,u,h),O.index),function _b(a,o){const u=a.contentQueries||(a.contentQueries=[]);o!==(u.length?u[u.length-1]:-1)&&u.push(a.queries.length-1,o)}(b,a),2==(2&u)&&(b.staticContentQueries=!0)}Fp(b,Wr(),u)}function Lp(){return function ub(a,o){return a[ta].queries[o].queryList}(Wr(),Pa())}function Fp(a,o,u){const h=new eA(4==(4&u));v0(a,o,h,h.destroy),null===o[ta]&&(o[ta]=new Dh),o[ta].queries.push(new Ih(h))}function Gp(a,o,u){null===a.queries&&(a.queries=new Ph),a.queries.track(new kh(o,u))}function Up(a,o){return a.queries.getByIndex(o)}function Bp(a,o){return tA(a,o)}function Fh(a){return!!Dn(a)}function iA(...a){}const a2=new Sa("Application Initializer");let aA=(()=>{class a{constructor(u){this.appInits=u,this.resolve=iA,this.reject=iA,this.initialized=!1,this.done=!1,this.donePromise=new Promise((h,b)=>{this.resolve=h,this.reject=b})}runInitializers(){if(this.initialized)return;const u=[],h=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let b=0;b<this.appInits.length;b++){const O=this.appInits[b]();if(fu(O))u.push(O);else if(G0(O)){const oe=new Promise((Ce,Be)=>{O.subscribe({complete:Ce,error:Be})});u.push(oe)}}Promise.all(u).then(()=>{h()}).catch(b=>{this.reject(b)}),0===u.length&&h(),this.initialized=!0}}return a.\u0275fac=function(u){return new(u||a)(qt(a2,8))},a.\u0275prov=We({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const o2=new Sa("AppId",{providedIn:"root",factory:function s2(){return`${Hh()}${Hh()}${Hh()}`}});function Hh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const l2=new Sa("Platform Initializer"),Ib=new Sa("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Db=new Sa("AnimationModuleType");let Pb=(()=>{class a{log(u){console.log(u)}warn(u){console.warn(u)}}return a.\u0275fac=function(u){return new(u||a)},a.\u0275prov=We({token:a,factory:a.\u0275fac,providedIn:"platform"}),a})();const oA=new Sa("LocaleId",{providedIn:"root",factory:()=>lt(oA,S.Optional|S.SkipSelf)||function kb(){return typeof $localize<"u"&&$localize.locale||Eu}()}),Lb=new Sa("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Fb{constructor(o,u){this.ngModuleFactory=o,this.componentFactories=u}}let Gb=(()=>{class a{compileModuleSync(u){return new Oh(u)}compileModuleAsync(u){return Promise.resolve(this.compileModuleSync(u))}compileModuleAndAllComponentsSync(u){const h=this.compileModuleSync(u),O=xl(Dn(u).declarations).reduce((oe,Ce)=>{const Be=rn(Ce);return Be&&oe.push(new tu(Be)),oe},[]);return new Fb(h,O)}compileModuleAndAllComponentsAsync(u){return Promise.resolve(this.compileModuleAndAllComponentsSync(u))}clearCache(){}clearCacheFor(u){}getModuleId(u){}}return a.\u0275fac=function(u){return new(u||a)},a.\u0275prov=We({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const Zb=(()=>Promise.resolve(0))();function Yh(a){typeof Zone>"u"?Zb.then(()=>{a&&a.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",a)}class El{constructor({enableLongStackTrace:o=!1,shouldCoalesceEventChangeDetection:u=!1,shouldCoalesceRunChangeDetection:h=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Wl(!1),this.onMicrotaskEmpty=new Wl(!1),this.onStable=new Wl(!1),this.onError=new Wl(!1),typeof Zone>"u")throw new M(908,!1);Zone.assertZonePatched();const b=this;b._nesting=0,b._outer=b._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(b._inner=b._inner.fork(new Zone.TaskTrackingZoneSpec)),o&&Zone.longStackTraceZoneSpec&&(b._inner=b._inner.fork(Zone.longStackTraceZoneSpec)),b.shouldCoalesceEventChangeDetection=!h&&u,b.shouldCoalesceRunChangeDetection=h,b.lastRequestAnimationFrameId=-1,b.nativeRequestAnimationFrame=function Hb(){let a=qe.requestAnimationFrame,o=qe.cancelAnimationFrame;if(typeof Zone<"u"&&a&&o){const u=a[Zone.__symbol__("OriginalDelegate")];u&&(a=u);const h=o[Zone.__symbol__("OriginalDelegate")];h&&(o=h)}return{nativeRequestAnimationFrame:a,nativeCancelAnimationFrame:o}}().nativeRequestAnimationFrame,function Vb(a){const o=()=>{!function $b(a){a.isCheckStableRunning||-1!==a.lastRequestAnimationFrameId||(a.lastRequestAnimationFrameId=a.nativeRequestAnimationFrame.call(qe,()=>{a.fakeTopEventTask||(a.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{a.lastRequestAnimationFrameId=-1,Vh(a),a.isCheckStableRunning=!0,$h(a),a.isCheckStableRunning=!1},void 0,()=>{},()=>{})),a.fakeTopEventTask.invoke()}),Vh(a))}(a)};a._inner=a._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(u,h,b,O,oe,Ce)=>{try{return u2(a),u.invokeTask(b,O,oe,Ce)}finally{(a.shouldCoalesceEventChangeDetection&&"eventTask"===O.type||a.shouldCoalesceRunChangeDetection)&&o(),_2(a)}},onInvoke:(u,h,b,O,oe,Ce,Be)=>{try{return u2(a),u.invoke(b,O,oe,Ce,Be)}finally{a.shouldCoalesceRunChangeDetection&&o(),_2(a)}},onHasTask:(u,h,b,O)=>{u.hasTask(b,O),h===b&&("microTask"==O.change?(a._hasPendingMicrotasks=O.microTask,Vh(a),$h(a)):"macroTask"==O.change&&(a.hasPendingMacrotasks=O.macroTask))},onHandleError:(u,h,b,O)=>(u.handleError(b,O),a.runOutsideAngular(()=>a.onError.emit(O)),!1)})}(b)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!El.isInAngularZone())throw new M(909,!1)}static assertNotInAngularZone(){if(El.isInAngularZone())throw new M(909,!1)}run(o,u,h){return this._inner.run(o,u,h)}runTask(o,u,h,b){const O=this._inner,oe=O.scheduleEventTask("NgZoneEvent: "+b,o,Yb,iA,iA);try{return O.runTask(oe,u,h)}finally{O.cancelTask(oe)}}runGuarded(o,u,h){return this._inner.runGuarded(o,u,h)}runOutsideAngular(o){return this._outer.run(o)}}const Yb={};function $h(a){if(0==a._nesting&&!a.hasPendingMicrotasks&&!a.isStable)try{a._nesting++,a.onMicrotaskEmpty.emit(null)}finally{if(a._nesting--,!a.hasPendingMicrotasks)try{a.runOutsideAngular(()=>a.onStable.emit(null))}finally{a.isStable=!0}}}function Vh(a){a.hasPendingMicrotasks=!!(a._hasPendingMicrotasks||(a.shouldCoalesceEventChangeDetection||a.shouldCoalesceRunChangeDetection)&&-1!==a.lastRequestAnimationFrameId)}function u2(a){a._nesting++,a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))}function _2(a){a._nesting--,$h(a)}class Wb{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Wl,this.onMicrotaskEmpty=new Wl,this.onStable=new Wl,this.onError=new Wl}run(o,u,h){return o.apply(u,h)}runGuarded(o,u,h){return o.apply(u,h)}runOutsideAngular(o){return o()}runTask(o,u,h,b){return o.apply(u,h)}}const f2=new Sa(""),A2=new Sa("");let Wh,zb=(()=>{class a{constructor(u,h,b){this._ngZone=u,this.registry=h,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Wh||(function jb(a){Wh=a}(b),b.addToWindow(h)),this._watchAngularEvents(),u.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:()=>{El.assertNotInAngularZone(),Yh(()=>{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())Yh(()=>{for(;0!==this._callbacks.length;){let u=this._callbacks.pop();clearTimeout(u.timeoutId),u.doneCb(this._didWork)}this._didWork=!1});else{let u=this.getPendingTasks();this._callbacks=this._callbacks.filter(h=>!h.updateCb||!h.updateCb(u)||(clearTimeout(h.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(u=>({source:u.source,creationLocation:u.creationLocation,data:u.data})):[]}addCallback(u,h,b){let O=-1;h&&h>0&&(O=setTimeout(()=>{this._callbacks=this._callbacks.filter(oe=>oe.timeoutId!==O),u(this._didWork,this.getPendingTasks())},h)),this._callbacks.push({doneCb:u,timeoutId:O,updateCb:b})}whenStable(u,h,b){if(b&&!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(u,h,b),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(u){this.registry.registerApplication(u,this)}unregisterApplication(u){this.registry.unregisterApplication(u)}findProviders(u,h,b){return[]}}return a.\u0275fac=function(u){return new(u||a)(qt(El),qt(m2),qt(A2))},a.\u0275prov=We({token:a,factory:a.\u0275fac}),a})(),m2=(()=>{class a{constructor(){this._applications=new Map}registerApplication(u,h){this._applications.set(u,h)}unregisterApplication(u){this._applications.delete(u)}unregisterAllApplications(){this._applications.clear()}getTestability(u){return this._applications.get(u)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(u,h=!0){return Wh?.findTestabilityInTree(this,u,h)??null}}return a.\u0275fac=function(u){return new(u||a)},a.\u0275prov=We({token:a,factory:a.\u0275fac,providedIn:"platform"}),a})();const mc=!1;let Zc=null;const h2=new Sa("AllowMultipleToken"),zh=new Sa("PlatformDestroyListeners"),g2=new Sa("appBootstrapListener");class Qb{constructor(o,u){this.name=o,this.token=u}}function b2(a,o,u=[]){const h=`Platform: ${o}`,b=new Sa(h);return(O=[])=>{let oe=jh();if(!oe||oe.injector.get(h2,!1)){const Ce=[...u,...O,{provide:b,useValue:!0}];a?a(Ce):function qb(a){if(Zc&&!Zc.get(h2,!1))throw new M(400,!1);Zc=a;const o=a.get(v2);(function p2(a){const o=a.get(l2,null);o&&o.forEach(u=>u())})(a)}(function E2(a=[],o){return Il.create({name:o,providers:[{provide:Ld,useValue:"platform"},{provide:zh,useValue:new Set([()=>Zc=null])},...a]})}(Ce,h))}return function eE(a){const o=jh();if(!o)throw new M(401,!1);return o}()}}function jh(){return Zc?.get(v2)??null}let v2=(()=>{class a{constructor(u){this._injector=u,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(u,h){const b=function S2(a,o){let u;return u="noop"===a?new Wb:("zone.js"===a?void 0:a)||new El(o),u}(h?.ngZone,function y2(a){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!a||!a.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!a||!a.ngZoneRunCoalescing)||!1}}(h)),O=[{provide:El,useValue:b}];return b.run(()=>{const oe=Il.create({providers:O,parent:this.injector,name:u.moduleType.name}),Ce=u.create(oe),Be=Ce.injector.get(rd,null);if(!Be)throw new M(402,!1);return b.runOutsideAngular(()=>{const gt=b.onError.subscribe({next:zt=>{Be.handleError(zt)}});Ce.onDestroy(()=>{lA(this._modules,Ce),gt.unsubscribe()})}),function C2(a,o,u){try{const h=u();return fu(h)?h.catch(b=>{throw o.runOutsideAngular(()=>a.handleError(b)),b}):h}catch(h){throw o.runOutsideAngular(()=>a.handleError(h)),h}}(Be,b,()=>{const gt=Ce.injector.get(aA);return gt.runInitializers(),gt.donePromise.then(()=>(Pg(Ce.injector.get(oA,Eu)||Eu),this._moduleDoBootstrap(Ce),Ce))})})}bootstrapModule(u,h=[]){const b=T2({},h);return function Xb(a,o,u){const h=new Oh(u);return Promise.resolve(h)}(0,0,u).then(O=>this.bootstrapModuleFactory(O,b))}_moduleDoBootstrap(u){const h=u.injector.get(sA);if(u._bootstrapComponents.length>0)u._bootstrapComponents.forEach(b=>h.bootstrap(b));else{if(!u.instance.ngDoBootstrap)throw new M(-403,!1);u.instance.ngDoBootstrap(h)}this._modules.push(u)}onDestroy(u){this._destroyListeners.push(u)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new M(404,!1);this._modules.slice().forEach(h=>h.destroy()),this._destroyListeners.forEach(h=>h());const u=this._injector.get(zh,null);u&&(u.forEach(h=>h()),u.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return a.\u0275fac=function(u){return new(u||a)(qt(Il))},a.\u0275prov=We({token:a,factory:a.\u0275fac,providedIn:"platform"}),a})();function T2(a,o){return Array.isArray(o)?o.reduce(T2,a):{...a,...o}}let sA=(()=>{class a{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(u,h,b){this._zone=u,this._injector=h,this._exceptionHandler=b,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 O=new d.y(Ce=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Ce.next(this._stable),Ce.complete()})}),oe=new d.y(Ce=>{let Be;this._zone.runOutsideAngular(()=>{Be=this._zone.onStable.subscribe(()=>{El.assertNotInAngularZone(),Yh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Ce.next(!0))})})});const gt=this._zone.onUnstable.subscribe(()=>{El.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Ce.next(!1)}))});return()=>{Be.unsubscribe(),gt.unsubscribe()}});this.isStable=(0,l.T)(O,oe.pipe((0,r.B)()))}bootstrap(u,h){const b=u instanceof I_;if(!this._injector.get(aA).done){!b&&Yn(u);throw new M(405,mc)}let oe;oe=b?u:this._injector.get(oc).resolveComponentFactory(u),this.componentTypes.push(oe.componentType);const Ce=function Jb(a){return a.isBoundToModule}(oe)?void 0:this._injector.get(vu),gt=oe.create(Il.NULL,[],h||oe.selector,Ce),zt=gt.location.nativeElement,ur=gt.injector.get(f2,null);return ur?.registerApplication(zt),gt.onDestroy(()=>{this.detachView(gt.hostView),lA(this.components,gt),ur?.unregisterApplication(zt)}),this._loadComponent(gt),gt}tick(){if(this._runningTick)throw new M(101,!1);try{this._runningTick=!0;for(let u of this._views)u.detectChanges()}catch(u){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(u))}finally{this._runningTick=!1}}attachView(u){const h=u;this._views.push(h),h.attachToAppRef(this)}detachView(u){const h=u;lA(this._views,h),h.detachFromAppRef()}_loadComponent(u){this.attachView(u.hostView),this.tick(),this.components.push(u);const h=this._injector.get(g2,[]);h.push(...this._bootstrapListeners),h.forEach(b=>b(u))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(u=>u()),this._views.slice().forEach(u=>u.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(u){return this._destroyListeners.push(u),()=>lA(this._destroyListeners,u)}destroy(){if(this._destroyed)throw new M(406,!1);const u=this._injector;u.destroy&&!u.destroyed&&u.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return a.\u0275fac=function(u){return new(u||a)(qt(El),qt(ac),qt(rd))},a.\u0275prov=We({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();function lA(a,o){const u=a.indexOf(o);u>-1&&a.splice(u,1)}function rE(){return!1}function nE(){}let iE=(()=>{class a{}return a.__NG_ELEMENT_ID__=aE,a})();function aE(a){return function oE(a,o,u){if(ji(a)&&!u){const h=Ra(a.index,o);return new Yl(h,h)}return 47&a.type?new Yl(o[Ln],o):null}(Wa(),Wr(),16==(16&a))}class R2{constructor(){}supports(o){return wc(o)}create(o){return new _E(o)}}const uE=(a,o)=>o;class _E{constructor(o){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=o||uE}forEachItem(o){let u;for(u=this._itHead;null!==u;u=u._next)o(u)}forEachOperation(o){let u=this._itHead,h=this._removalsHead,b=0,O=null;for(;u||h;){const oe=!h||u&&u.currentIndex<I2(h,b,O)?u:h,Ce=I2(oe,b,O),Be=oe.currentIndex;if(oe===h)b--,h=h._nextRemoved;else if(u=u._next,null==oe.previousIndex)b++;else{O||(O=[]);const gt=Ce-b,zt=Be-b;if(gt!=zt){for(let Rr=0;Rr<gt;Rr++){const Hr=Rr<O.length?O[Rr]:O[Rr]=0,an=Hr+Rr;zt<=an&&an<gt&&(O[Rr]=Hr+1)}O[oe.previousIndex]=zt-gt}}Ce!==Be&&o(oe,Ce,Be)}}forEachPreviousItem(o){let u;for(u=this._previousItHead;null!==u;u=u._nextPrevious)o(u)}forEachAddedItem(o){let u;for(u=this._additionsHead;null!==u;u=u._nextAdded)o(u)}forEachMovedItem(o){let u;for(u=this._movesHead;null!==u;u=u._nextMoved)o(u)}forEachRemovedItem(o){let u;for(u=this._removalsHead;null!==u;u=u._nextRemoved)o(u)}forEachIdentityChange(o){let u;for(u=this._identityChangesHead;null!==u;u=u._nextIdentityChange)o(u)}diff(o){if(null==o&&(o=[]),!wc(o))throw new M(900,!1);return this.check(o)?this:null}onDestroy(){}check(o){this._reset();let b,O,oe,u=this._itHead,h=!1;if(Array.isArray(o)){this.length=o.length;for(let Ce=0;Ce<this.length;Ce++)O=o[Ce],oe=this._trackByFn(Ce,O),null!==u&&Object.is(u.trackById,oe)?(h&&(u=this._verifyReinsertion(u,O,oe,Ce)),Object.is(u.item,O)||this._addIdentityChange(u,O)):(u=this._mismatch(u,O,oe,Ce),h=!0),u=u._next}else b=0,function su(a,o){if(Array.isArray(a))for(let u=0;u<a.length;u++)o(a[u]);else{const u=a[Symbol.iterator]();let h;for(;!(h=u.next()).done;)o(h.value)}}(o,Ce=>{oe=this._trackByFn(b,Ce),null!==u&&Object.is(u.trackById,oe)?(h&&(u=this._verifyReinsertion(u,Ce,oe,b)),Object.is(u.item,Ce)||this._addIdentityChange(u,Ce)):(u=this._mismatch(u,Ce,oe,b),h=!0),u=u._next,b++}),this.length=b;return this._truncate(u),this.collection=o,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let o;for(o=this._previousItHead=this._itHead;null!==o;o=o._next)o._nextPrevious=o._next;for(o=this._additionsHead;null!==o;o=o._nextAdded)o.previousIndex=o.currentIndex;for(this._additionsHead=this._additionsTail=null,o=this._movesHead;null!==o;o=o._nextMoved)o.previousIndex=o.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(o,u,h,b){let O;return null===o?O=this._itTail:(O=o._prev,this._remove(o)),null!==(o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(h,null))?(Object.is(o.item,u)||this._addIdentityChange(o,u),this._reinsertAfter(o,O,b)):null!==(o=null===this._linkedRecords?null:this._linkedRecords.get(h,b))?(Object.is(o.item,u)||this._addIdentityChange(o,u),this._moveAfter(o,O,b)):o=this._addAfter(new fE(u,h),O,b),o}_verifyReinsertion(o,u,h,b){let O=null===this._unlinkedRecords?null:this._unlinkedRecords.get(h,null);return null!==O?o=this._reinsertAfter(O,o._prev,b):o.currentIndex!=b&&(o.currentIndex=b,this._addToMoves(o,b)),o}_truncate(o){for(;null!==o;){const u=o._next;this._addToRemovals(this._unlink(o)),o=u}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(o,u,h){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(o);const b=o._prevRemoved,O=o._nextRemoved;return null===b?this._removalsHead=O:b._nextRemoved=O,null===O?this._removalsTail=b:O._prevRemoved=b,this._insertAfter(o,u,h),this._addToMoves(o,h),o}_moveAfter(o,u,h){return this._unlink(o),this._insertAfter(o,u,h),this._addToMoves(o,h),o}_addAfter(o,u,h){return this._insertAfter(o,u,h),this._additionsTail=null===this._additionsTail?this._additionsHead=o:this._additionsTail._nextAdded=o,o}_insertAfter(o,u,h){const b=null===u?this._itHead:u._next;return o._next=b,o._prev=u,null===b?this._itTail=o:b._prev=o,null===u?this._itHead=o:u._next=o,null===this._linkedRecords&&(this._linkedRecords=new x2),this._linkedRecords.put(o),o.currentIndex=h,o}_remove(o){return this._addToRemovals(this._unlink(o))}_unlink(o){null!==this._linkedRecords&&this._linkedRecords.remove(o);const u=o._prev,h=o._next;return null===u?this._itHead=h:u._next=h,null===h?this._itTail=u:h._prev=u,o}_addToMoves(o,u){return o.previousIndex===u||(this._movesTail=null===this._movesTail?this._movesHead=o:this._movesTail._nextMoved=o),o}_addToRemovals(o){return null===this._unlinkedRecords&&(this._unlinkedRecords=new x2),this._unlinkedRecords.put(o),o.currentIndex=null,o._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=o,o._prevRemoved=null):(o._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=o),o}_addIdentityChange(o,u){return o.item=u,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=o:this._identityChangesTail._nextIdentityChange=o,o}}class fE{constructor(o,u){this.item=o,this.trackById=u,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 AE{constructor(){this._head=null,this._tail=null}add(o){null===this._head?(this._head=this._tail=o,o._nextDup=null,o._prevDup=null):(this._tail._nextDup=o,o._prevDup=this._tail,o._nextDup=null,this._tail=o)}get(o,u){let h;for(h=this._head;null!==h;h=h._nextDup)if((null===u||u<=h.currentIndex)&&Object.is(h.trackById,o))return h;return null}remove(o){const u=o._prevDup,h=o._nextDup;return null===u?this._head=h:u._nextDup=h,null===h?this._tail=u:h._prevDup=u,null===this._head}}class x2{constructor(){this.map=new Map}put(o){const u=o.trackById;let h=this.map.get(u);h||(h=new AE,this.map.set(u,h)),h.add(o)}get(o,u){const b=this.map.get(o);return b?b.get(o,u):null}remove(o){const u=o.trackById;return this.map.get(u).remove(o)&&this.map.delete(u),o}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function I2(a,o,u){const h=a.previousIndex;if(null===h)return h;let b=0;return u&&h<u.length&&(b=u[h]),h+o+b}class D2{constructor(){}supports(o){return o instanceof Map||fd(o)}create(){return new mE}}class mE{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(o){let u;for(u=this._mapHead;null!==u;u=u._next)o(u)}forEachPreviousItem(o){let u;for(u=this._previousMapHead;null!==u;u=u._nextPrevious)o(u)}forEachChangedItem(o){let u;for(u=this._changesHead;null!==u;u=u._nextChanged)o(u)}forEachAddedItem(o){let u;for(u=this._additionsHead;null!==u;u=u._nextAdded)o(u)}forEachRemovedItem(o){let u;for(u=this._removalsHead;null!==u;u=u._nextRemoved)o(u)}diff(o){if(o){if(!(o instanceof Map||fd(o)))throw new M(900,!1)}else o=new Map;return this.check(o)?this:null}onDestroy(){}check(o){this._reset();let u=this._mapHead;if(this._appendAfter=null,this._forEach(o,(h,b)=>{if(u&&u.key===b)this._maybeAddToChanges(u,h),this._appendAfter=u,u=u._next;else{const O=this._getOrCreateRecordForKey(b,h);u=this._insertBeforeOrAppend(u,O)}}),u){u._prev&&(u._prev._next=null),this._removalsHead=u;for(let h=u;null!==h;h=h._nextRemoved)h===this._mapHead&&(this._mapHead=null),this._records.delete(h.key),h._nextRemoved=h._next,h.previousValue=h.currentValue,h.currentValue=null,h._prev=null,h._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(o,u){if(o){const h=o._prev;return u._next=o,u._prev=h,o._prev=u,h&&(h._next=u),o===this._mapHead&&(this._mapHead=u),this._appendAfter=o,o}return this._appendAfter?(this._appendAfter._next=u,u._prev=this._appendAfter):this._mapHead=u,this._appendAfter=u,null}_getOrCreateRecordForKey(o,u){if(this._records.has(o)){const b=this._records.get(o);this._maybeAddToChanges(b,u);const O=b._prev,oe=b._next;return O&&(O._next=oe),oe&&(oe._prev=O),b._next=null,b._prev=null,b}const h=new hE(o);return this._records.set(o,h),h.currentValue=u,this._addToAdditions(h),h}_reset(){if(this.isDirty){let o;for(this._previousMapHead=this._mapHead,o=this._previousMapHead;null!==o;o=o._next)o._nextPrevious=o._next;for(o=this._changesHead;null!==o;o=o._nextChanged)o.previousValue=o.currentValue;for(o=this._additionsHead;null!=o;o=o._nextAdded)o.previousValue=o.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(o,u){Object.is(u,o.currentValue)||(o.previousValue=o.currentValue,o.currentValue=u,this._addToChanges(o))}_addToAdditions(o){null===this._additionsHead?this._additionsHead=this._additionsTail=o:(this._additionsTail._nextAdded=o,this._additionsTail=o)}_addToChanges(o){null===this._changesHead?this._changesHead=this._changesTail=o:(this._changesTail._nextChanged=o,this._changesTail=o)}_forEach(o,u){o instanceof Map?o.forEach(u):Object.keys(o).forEach(h=>u(o[h],h))}}class hE{constructor(o){this.key=o,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 P2(){return new Kh([new R2])}let Kh=(()=>{class a{constructor(u){this.factories=u}static create(u,h){if(null!=h){const b=h.factories.slice();u=u.concat(b)}return new a(u)}static extend(u){return{provide:a,useFactory:h=>a.create(u,h||P2()),deps:[[a,new Is,new ko]]}}find(u){const h=this.factories.find(b=>b.supports(u));if(null!=h)return h;throw new M(901,!1)}}return a.\u0275prov=We({token:a,providedIn:"root",factory:P2}),a})();function k2(){return new eg([new D2])}let eg=(()=>{class a{constructor(u){this.factories=u}static create(u,h){if(h){const b=h.factories.slice();u=u.concat(b)}return new a(u)}static extend(u){return{provide:a,useFactory:h=>a.create(u,h||k2()),deps:[[a,new Is,new ko]]}}find(u){const h=this.factories.find(b=>b.supports(u));if(h)return h;throw new M(901,!1)}}return a.\u0275prov=We({token:a,providedIn:"root",factory:k2}),a})();const bE=b2(null,"core",[]);let EE=(()=>{class a{constructor(u){}}return a.\u0275fac=function(u){return new(u||a)(qt(sA))},a.\u0275mod=yr({type:a}),a.\u0275inj=we({}),a})();function vE(a){return"boolean"==typeof a?a:null!=a&&"false"!==a}},5708:(St,be,s)=>{"use strict";function t(C){for(let n in C){let i=C[n]??"";switch(n){case"display":C.display="flex"===i?["-webkit-flex","flex"]:"inline-flex"===i?["-webkit-inline-flex","inline-flex"]:i;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":C["-webkit-"+n]=i;break;case"flex-direction":C["-webkit-flex-direction"]=i,C["flex-direction"]=i;break;case"order":C.order=C["-webkit-"+n]=isNaN(+i)?"0":i}}return C}s.d(be,{Ar:()=>l,GK:()=>t,iQ:()=>d,kt:()=>v,tj:()=>c});const e="inline",d=["row","column","row-reverse","column-reverse"];function l(C){let[n,i,P]=r(C);return function m(C,n=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":C,"flex-wrap":n||null}}(n,i,P)}function r(C){C=C?.toLowerCase()??"";let[n,i,P]=C.split(" ");return d.find(I=>I===n)||(n=d[0]),i===e&&(i=P!==e?P:"",P=e),[n,E(i),!!P]}function c(C){let[n]=r(C);return n.indexOf("row")>-1}function E(C){if(C)switch(C.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":C="wrap-reverse";break;case"no":case"none":case"nowrap":C="nowrap";break;default:C="wrap"}return C}function v(C,...n){if(null==C)throw TypeError("Cannot convert undefined or null to object");for(let i of n)if(null!=i)for(let P in i)i.hasOwnProperty(P)&&(C[P]=i[P]);return C}},84531:(St,be,s)=>{"use strict";s.d(be,{Bs:()=>ge,FL:()=>br,IR:()=>le,Ot:()=>ar,QI:()=>ee,RK:()=>se,WU:()=>Ee,g5:()=>ye,iR:()=>ot,u0:()=>fr,wY:()=>Le,yB:()=>$e});var t=s(73991),e=s(17774),d=s(93216),l=s(44070),r=s(50805),c=s(68264),E=s(57421),m=s(95195),v=s(5708),C=s(9754),n=s(17374),i=s(59435),P=s(81565),I=s(87580),q=s(40354),D=s(30003);const T={provide:t.tb,useFactory:function M(lt,De){return()=>{if((0,e.NF)(De)){const G=Array.from(lt.querySelectorAll(`[class*=${F}]`)),U=/\bflex-layout-.+?\b/g;G.forEach(ne=>{ne.classList.contains(`${F}ssr`)&&ne.parentNode?ne.parentNode.removeChild(ne):ne.className.replace(U,"")})}}},deps:[e.K0,t.Lbi],multi:!0},F="flex-layout-";let le=(()=>{class lt{}return lt.\u0275fac=function(G){return new(G||lt)},lt.\u0275mod=t.oAB({type:lt}),lt.\u0275inj=t.cJS({providers:[T]}),lt})();class V{constructor(De=!1,G="all",U="",ne="",Re=0){this.matches=De,this.mediaQuery=G,this.mqAlias=U,this.suffix=ne,this.priority=Re,this.property=""}clone(){return new V(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let de=(()=>{class lt{constructor(){this.stylesheet=new Map}addStyleToElement(G,U,ne){const Re=this.stylesheet.get(G);Re?Re.set(U,ne):this.stylesheet.set(G,new Map([[U,ne]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(G,U){const ne=this.stylesheet.get(G);let Re="";if(ne){const Xe=ne.get(U);("number"==typeof Xe||"string"==typeof Xe)&&(Re=Xe+"")}return Re}}return lt.\u0275fac=function(G){return new(G||lt)},lt.\u0275prov=t.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();const ye={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Ee=new t.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>ye}),Le=new t.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),ge=new t.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function ue(lt,De){return lt=lt?.clone()??new V,De&&(lt.mqAlias=De.alias,lt.mediaQuery=De.mediaQuery,lt.suffix=De.suffix,lt.priority=De.priority),lt}class ee{constructor(){this.shouldCache=!0}sideEffect(De,G,U){}}let se=(()=>{class lt{constructor(G,U,ne,Re){this._serverStylesheet=G,this._serverModuleLoaded=U,this._platformId=ne,this.layoutConfig=Re}applyStyleToElement(G,U,ne=null){let Re={};"string"==typeof U&&(Re[U]=ne,U=Re),Re=this.layoutConfig.disableVendorPrefixes?U:(0,v.GK)(U),this._applyMultiValueStyleToElement(Re,G)}applyStyleToElements(G,U=[]){const ne=this.layoutConfig.disableVendorPrefixes?G:(0,v.GK)(G);U.forEach(Re=>{this._applyMultiValueStyleToElement(ne,Re)})}getFlowDirection(G){const U="flex-direction";let ne=this.lookupStyle(G,U);return[ne||"row",this.lookupInlineStyle(G,U)||(0,e.PM)(this._platformId)&&this._serverModuleLoaded?ne:""]}hasWrap(G){return"wrap"===this.lookupStyle(G,"flex-wrap")}lookupAttributeValue(G,U){return G.getAttribute(U)??""}lookupInlineStyle(G,U){return(0,e.NF)(this._platformId)?G.style.getPropertyValue(U):function W(lt,De){return _e(lt)[De]??""}(G,U)}lookupStyle(G,U,ne=!1){let Re="";return G&&((Re=this.lookupInlineStyle(G,U))||((0,e.NF)(this._platformId)?ne||(Re=getComputedStyle(G).getPropertyValue(U)):this._serverModuleLoaded&&(Re=this._serverStylesheet.getStyleForElement(G,U)))),Re?Re.trim():""}_applyMultiValueStyleToElement(G,U){Object.keys(G).sort().forEach(ne=>{const Re=G[ne],Xe=Array.isArray(Re)?Re:[Re];Xe.sort();for(let Nt of Xe)Nt=Nt?Nt+"":"",(0,e.NF)(this._platformId)||!this._serverModuleLoaded?(0,e.NF)(this._platformId)?U.style.setProperty(ne,Nt):L(U,ne,Nt):this._serverStylesheet.addStyleToElement(U,ne,Nt)})}}return lt.\u0275fac=function(G){return new(G||lt)(t.LFG(de),t.LFG(Le),t.LFG(t.Lbi),t.LFG(Ee))},lt.\u0275prov=t.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();function L(lt,De,G){De=De.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const U=_e(lt);U[De]=G??"",function he(lt,De){let G="";for(const U in De)De[U]&&(G+=`${U}:${De[U]};`);lt.setAttribute("style",G)}(lt,U)}function _e(lt){const De={},G=lt.getAttribute("style");if(G){const U=G.split(/;+/g);for(let ne=0;ne<U.length;ne++){const Re=U[ne].trim();if(Re.length>0){const Xe=Re.indexOf(":");if(-1===Xe)throw new Error(`Invalid CSS style: ${Re}`);De[Re.substr(0,Xe).trim()]=Re.substr(Xe+1).trim()}}}return De}function Z(lt,De){return(De&&De.priority||0)-(lt&&lt.priority||0)}function Te(lt,De){return(lt.priority||0)-(De.priority||0)}let w=(()=>{class lt{constructor(G,U,ne){this._zone=G,this._platformId=U,this._document=ne,this.source=new d.X(new V(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const G=[];return this.registry.forEach((U,ne)=>{U.matches&&G.push(ne)}),G}isActive(G){return this.registry.get(G)?.matches??this.registerQuery(G).some(ne=>ne.matches)}observe(G,U=!1){if(G&&G.length){const ne=this._observable$.pipe((0,C.h)(Xe=>!U||G.indexOf(Xe.mediaQuery)>-1)),Re=new l.y(Xe=>{const Nt=this.registerQuery(G);if(Nt.length){const Pt=Nt.pop();Nt.forEach(Vt=>{Xe.next(Vt)}),this.source.next(Pt)}Xe.complete()});return(0,r.T)(Re,ne)}return this._observable$}registerQuery(G){const U=Array.isArray(G)?G:[G],ne=[];return function x(lt,De){const G=lt.filter(U=>!k[U]);if(G.length>0){const U=G.join(", ");try{const ne=De.createElement("style");ne.setAttribute("type","text/css"),ne.styleSheet||ne.appendChild(De.createTextNode(`\n/*\n  @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n  see http://bit.ly/2sd4HMP\n*/\n@media ${U} {.fx-query-test{ }}\n`)),De.head.appendChild(ne),G.forEach(Re=>k[Re]=ne)}catch(ne){console.error(ne)}}}(U,this._document),U.forEach(Re=>{const Xe=Pt=>{this._zone.run(()=>this.source.next(new V(Pt.matches,Re)))};let Nt=this.registry.get(Re);Nt||(Nt=this.buildMQL(Re),Nt.addListener(Xe),this.pendingRemoveListenerFns.push(()=>Nt.removeListener(Xe)),this.registry.set(Re,Nt)),Nt.matches&&ne.push(new V(!0,Re))}),ne}ngOnDestroy(){let G;for(;G=this.pendingRemoveListenerFns.pop();)G()}buildMQL(G){return function j(lt,De){return De&&window.matchMedia("all").addListener?window.matchMedia(lt):function z(lt){const De=new EventTarget;return De.matches="all"===lt||""===lt,De.media=lt,De.addListener=()=>{},De.removeListener=()=>{},De.addEventListener=()=>{},De.dispatchEvent=()=>!1,De.onchange=null,De}(lt)}(G,(0,e.NF)(this._platformId))}}return lt.\u0275fac=function(G){return new(G||lt)(t.LFG(t.R0b),t.LFG(t.Lbi),t.LFG(e.K0))},lt.\u0275prov=t.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();const k={},Ne=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],tt="(orientation: portrait) and (max-width: 599.98px)",We="(orientation: landscape) and (max-width: 959.98px)",ze="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",we="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Ye="(orientation: portrait) and (min-width: 840px)",te="(orientation: landscape) and (min-width: 1280px)",Se={HANDSET:`${tt}, ${We}`,TABLET:`${ze} , ${we}`,WEB:`${Ye}, ${te} `,HANDSET_PORTRAIT:`${tt}`,TABLET_PORTRAIT:`${ze} `,WEB_PORTRAIT:`${Ye}`,HANDSET_LANDSCAPE:`${We}`,TABLET_LANDSCAPE:`${we}`,WEB_LANDSCAPE:`${te}`},ke=[{alias:"handset",priority:2e3,mediaQuery:Se.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Se.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Se.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Se.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Se.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Se.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Se.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Se.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Se.WEB_PORTRAIT,overlapping:!0}],Ge=/(\.|-|_)/g;function Tt(lt){let De=lt.length>0?lt.charAt(0):"",G=lt.length>1?lt.slice(1):"";return De.toUpperCase()+G}const S=new t.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const lt=(0,t.f3M)(ge),De=(0,t.f3M)(Ee),G=[].concat.apply([],(lt||[]).map(ne=>Array.isArray(ne)?ne:[ne]));return function Y(lt,De=[]){const G={};return lt.forEach(U=>{G[U.alias]=U}),De.forEach(U=>{G[U.alias]?(0,v.kt)(G[U.alias],U):G[U.alias]=U}),function H(lt){return lt.forEach(De=>{De.suffix||(De.suffix=function Et(lt){return lt.replace(Ge,"|").split("|").map(Tt).join("")}(De.alias),De.overlapping=!!De.overlapping)}),lt}(Object.keys(G).map(U=>G[U]))}((De.disableDefaultBps?[]:Ne).concat(De.addOrientationBps?ke:[]),G)}});let K=(()=>{class lt{constructor(G){this.findByMap=new Map,this.items=[...G].sort(Te)}findByAlias(G){return G?this.findWithPredicate(G,U=>U.alias===G):null}findByQuery(G){return this.findWithPredicate(G,U=>U.mediaQuery===G)}get overlappings(){return this.items.filter(G=>G.overlapping)}get aliases(){return this.items.map(G=>G.alias)}get suffixes(){return this.items.map(G=>G?.suffix??"")}findWithPredicate(G,U){let ne=this.findByMap.get(G);return ne||(ne=this.items.find(U)??null,this.findByMap.set(G,ne)),ne??null}}return lt.\u0275fac=function(G){return new(G||lt)(t.LFG(S))},lt.\u0275prov=t.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();const Q="print",B={alias:Q,mediaQuery:Q,priority:1e3};let re=(()=>{class lt{constructor(G,U,ne){this.breakpoints=G,this.layoutConfig=U,this._document=ne,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new fe,this.deactivations=[]}withPrintQuery(G){return[...G,Q]}isPrintEvent(G){return G.mediaQuery.startsWith(Q)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(G=>this.breakpoints.findByAlias(G)).filter(G=>null!==G)}getEventBreakpoints({mediaQuery:G}){const U=this.breakpoints.findByQuery(G);return(U?[...this.printBreakPoints,U]:this.printBreakPoints).sort(Z)}updateEvent(G){let U=this.breakpoints.findByQuery(G.mediaQuery);return this.isPrintEvent(G)&&(U=this.getEventBreakpoints(G)[0],G.mediaQuery=U?.mediaQuery??""),ue(G,U)}registerBeforeAfterPrintHooks(G){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const U=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(G,this.getEventBreakpoints(new V(!0,Q))),G.updateStyles())},ne=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(G),G.updateStyles())};this._document.defaultView.addEventListener("beforeprint",U),this._document.defaultView.addEventListener("afterprint",ne),this.beforePrintEventListeners.push(U),this.afterPrintEventListeners.push(ne)}interceptEvents(G){return U=>{this.isPrintEvent(U)?U.matches&&!this.isPrinting?(this.startPrinting(G,this.getEventBreakpoints(U)),G.updateStyles()):!U.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(G),G.updateStyles()):this.collectActivations(G,U)}}blockPropagation(){return G=>!(this.isPrinting||this.isPrintEvent(G))}startPrinting(G,U){this.isPrinting=!0,this.formerActivations=G.activatedBreakpoints,G.activatedBreakpoints=this.queue.addPrintBreakpoints(U)}stopPrinting(G){G.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(G,U){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!U.matches){const ne=this.breakpoints.findByQuery(U.mediaQuery);if(ne){const Re=this.formerActivations&&this.formerActivations.includes(ne),Xe=!this.formerActivations&&G.activatedBreakpoints.includes(ne);(Re||Xe)&&(this.deactivations.push(ne),this.deactivations.sort(Z))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(G=>this._document.defaultView.removeEventListener("beforeprint",G)),this.afterPrintEventListeners.forEach(G=>this._document.defaultView.removeEventListener("afterprint",G)))}}return lt.\u0275fac=function(G){return new(G||lt)(t.LFG(K),t.LFG(Ee),t.LFG(e.K0))},lt.\u0275prov=t.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();class fe{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(De){return De.push(B),De.sort(Z),De.forEach(G=>this.addBreakpoint(G)),this.printBreakpoints}addBreakpoint(De){De&&void 0===this.printBreakpoints.find(U=>U.mediaQuery===De.mediaQuery)&&(this.printBreakpoints=function qe(lt){return lt?.mediaQuery.startsWith(Q)??!1}(De)?[De,...this.printBreakpoints]:[...this.printBreakpoints,De])}clear(){this.printBreakpoints=[]}}let $e=(()=>{class lt{constructor(G,U,ne){this.matchMedia=G,this.breakpoints=U,this.hook=ne,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new c.x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(G){this._activatedBreakpoints=[...G]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(G){this._useFallbacks=G}onMediaChange(G){const U=this.findByQuery(G.mediaQuery);if(U){G=ue(G,U);const ne=this.activatedBreakpoints.indexOf(U);G.matches&&-1===ne?(this._activatedBreakpoints.push(U),this._activatedBreakpoints.sort(Z),this.updateStyles()):!G.matches&&-1!==ne&&(this._activatedBreakpoints.splice(ne,1),this._activatedBreakpoints.sort(Z),this.updateStyles())}}init(G,U,ne,Re,Xe=[]){et(this.updateMap,G,U,ne),et(this.clearMap,G,U,Re),this.buildElementKeyMap(G,U),this.watchExtraTriggers(G,U,Xe)}getValue(G,U,ne){const Re=this.elementMap.get(G);if(Re){const Xe=void 0!==ne?Re.get(ne):this.getActivatedValues(Re,U);if(Xe)return Xe.get(U)}}hasValue(G,U){const ne=this.elementMap.get(G);if(ne){const Re=this.getActivatedValues(ne,U);if(Re)return void 0!==Re.get(U)||!1}return!1}setValue(G,U,ne,Re){let Xe=this.elementMap.get(G);if(Xe){const Pt=(Xe.get(Re)??new Map).set(U,ne);Xe.set(Re,Pt),this.elementMap.set(G,Xe)}else Xe=(new Map).set(Re,(new Map).set(U,ne)),this.elementMap.set(G,Xe);const Nt=this.getValue(G,U);void 0!==Nt&&this.updateElement(G,U,Nt)}trackValue(G,U){return this.subject.asObservable().pipe((0,C.h)(ne=>ne.element===G&&ne.key===U))}updateStyles(){this.elementMap.forEach((G,U)=>{const ne=new Set(this.elementKeyMap.get(U));let Re=this.getActivatedValues(G);Re&&Re.forEach((Xe,Nt)=>{this.updateElement(U,Nt,Xe),ne.delete(Nt)}),ne.forEach(Xe=>{if(Re=this.getActivatedValues(G,Xe),Re){const Nt=Re.get(Xe);this.updateElement(U,Xe,Nt)}else this.clearElement(U,Xe)})})}clearElement(G,U){const ne=this.clearMap.get(G);if(ne){const Re=ne.get(U);Re&&(Re(),this.subject.next({element:G,key:U,value:""}))}}updateElement(G,U,ne){const Re=this.updateMap.get(G);if(Re){const Xe=Re.get(U);Xe&&(Xe(ne),this.subject.next({element:G,key:U,value:ne}))}}releaseElement(G){const U=this.watcherMap.get(G);U&&(U.forEach(Re=>Re.unsubscribe()),this.watcherMap.delete(G));const ne=this.elementMap.get(G);ne&&(ne.forEach((Re,Xe)=>ne.delete(Xe)),this.elementMap.delete(G))}triggerUpdate(G,U){const ne=this.elementMap.get(G);if(ne){const Re=this.getActivatedValues(ne,U);Re&&(U?this.updateElement(G,U,Re.get(U)):Re.forEach((Xe,Nt)=>this.updateElement(G,Nt,Xe)))}}buildElementKeyMap(G,U){let ne=this.elementKeyMap.get(G);ne||(ne=new Set,this.elementKeyMap.set(G,ne)),ne.add(U)}watchExtraTriggers(G,U,ne){if(ne&&ne.length){let Re=this.watcherMap.get(G);if(Re||(Re=new Map,this.watcherMap.set(G,Re)),!Re.get(U)){const Nt=(0,r.T)(...ne).subscribe(()=>{const Pt=this.getValue(G,U);this.updateElement(G,U,Pt)});Re.set(U,Nt)}}}findByQuery(G){return this.breakpoints.findByQuery(G)}getActivatedValues(G,U){for(let Re=0;Re<this.activatedBreakpoints.length;Re++){const Nt=G.get(this.activatedBreakpoints[Re].alias);if(Nt&&(void 0===U||Nt.has(U)&&null!=Nt.get(U)))return Nt}if(!this._useFallbacks)return;const ne=G.get("");return void 0===U||ne&&ne.has(U)?ne:void 0}observeActivations(){const G=this.breakpoints.items.map(U=>U.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(G)).pipe((0,n.b)(this.hook.interceptEvents(this)),(0,C.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return lt.\u0275fac=function(G){return new(G||lt)(t.LFG(w),t.LFG(K),t.LFG(re))},lt.\u0275prov=t.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();function et(lt,De,G,U){if(void 0!==U){const ne=lt.get(De)??new Map;ne.set(G,U),lt.set(De,ne)}}let ot=(()=>{class lt{constructor(G,U,ne,Re){this.elementRef=G,this.styleBuilder=U,this.styler=ne,this.marshal=Re,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new c.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(G){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,G,this.marshal.activatedAlias)}ngOnChanges(G){Object.keys(G).forEach(U=>{if(-1!==this.inputs.indexOf(U)){const ne=U.split(".").slice(1).join(".");this.setValue(G[U].currentValue,ne)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(G=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),G)}addStyles(G,U){const ne=this.styleBuilder,Re=ne.shouldCache;let Xe=this.styleCache.get(G);(!Xe||!Re)&&(Xe=ne.buildStyles(G,U),Re&&this.styleCache.set(G,Xe)),this.mru={...Xe},this.applyStyleToElement(Xe),ne.sideEffect(G,Xe,U)}clearStyles(){Object.keys(this.mru).forEach(G=>{this.mru[G]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(G,U=!1){if(G){const[ne,Re]=this.styler.getFlowDirection(G);if(!Re&&U){const Xe=(0,v.Ar)(ne);this.styler.applyStyleToElements(Xe,[G])}return ne.trim()}return"row"}hasWrap(G){return this.styler.hasWrap(G)}applyStyleToElement(G,U,ne=this.nativeElement){this.styler.applyStyleToElement(ne,G,U)}setValue(G,U){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,G,U)}updateWithValue(G){this.currentValue!==G&&(this.addStyles(G),this.currentValue=G)}}return lt.\u0275fac=function(G){return new(G||lt)(t.Y36(t.SBq),t.Y36(ee),t.Y36(se),t.Y36($e))},lt.\u0275dir=t.lG2({type:lt,features:[t.TTD]}),lt})();class pt extends EventTarget{constructor(De){super(),this._mediaQuery=De,this._isActive=!1,this._listeners=[],this.onchange=null}get matches(){return this._isActive}get media(){return this._mediaQuery}destroy(){this.deactivate(),this._listeners=[]}activate(){return this._isActive||(this._isActive=!0,this._listeners.forEach(De=>{De.call(this,{matches:this.matches,media:this.media})})),this}deactivate(){return this._isActive&&(this._isActive=!1,this._listeners.forEach(De=>{De.call(this,{matches:this.matches,media:this.media})})),this}addListener(De){-1===this._listeners.indexOf(De)&&this._listeners.push(De),this._isActive&&De.call(this,{matches:this.matches,media:this.media})}removeListener(De){}dispatchEvent(De){return!1}}let fr=(()=>{class lt{constructor(G,U,ne){this.breakpoints=G,this.matchMedia=U,this.hook=ne,this.filterOverlaps=!1,this.destroyed$=new c.x,this._media$=this.watchActivations()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}asObservable(){return this._media$}isActive(G){return function dr(lt){return lt.flatMap(De=>De.split(",")).map(De=>De.trim())}(function It(lt){return Array.isArray(lt)?lt:[lt]}(G)).some(ne=>{const Re=function yt(lt,De){return(De.findByAlias(lt)??De.findByQuery(lt))?.mediaQuery??null}(ne,this.breakpoints);return null!==Re&&this.matchMedia.isActive(Re)})}watchActivations(){const G=this.breakpoints.items.map(U=>U.mediaQuery);return this.buildObservable(G)}buildObservable(G){return this.matchMedia.observe(this.hook.withPrintQuery(G)).pipe((0,C.h)(Xe=>Xe.matches),(0,i.b)(0,E.E),(0,P.w)(Xe=>(0,m.of)(this.findAllActivations())),(0,I.U)(Xe=>this.filterOverlaps?Xe.filter(Nt=>this.breakpoints.findByQuery(Nt.mediaQuery)?.overlapping??!0):Xe),(0,C.h)(Xe=>Xe.filter(Pt=>Pt.mediaQuery.length>0).length>0),(0,q.x)((Xe,Nt)=>{if(Xe.length!==Nt.length)return!1;const Pt=Xe.map(kt=>kt.mediaQuery),Vt=new Set(Nt.map(kt=>kt.mediaQuery));return 0===new Set(Pt.filter(kt=>!Vt.has(kt))).size}),(0,D.R)(this.destroyed$))}findAllActivations(){return this.matchMedia.activations.map(ne=>new V(!0,ne)).map(ne=>this.hook.isPrintEvent(ne)?this.hook.updateEvent(ne):ne).map(ne=>ue(ne,this.breakpoints.findByQuery(ne.mediaQuery))).sort(Z)}}return lt.\u0275fac=function(G){return new(G||lt)(t.LFG(K),t.LFG(w),t.LFG(re))},lt.\u0275prov=t.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();function ar(lt,De="1",G="1"){let U=[De,G,lt],ne=lt.indexOf("calc");if(ne>0){U[2]=vt(lt.substring(ne).trim());let Re=lt.substr(0,ne).trim().split(" ");2==Re.length&&(U[0]=Re[0],U[1]=Re[1])}else if(0==ne)U[2]=vt(lt.trim());else{let Re=lt.split(" ");U=3===Re.length?Re:[De,G,lt]}return U}function vt(lt){return lt.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}const qt="x";function br(lt,De){if(void 0===De)return lt;const G=U=>{const ne=+U.slice(0,-qt.length);return lt.endsWith(qt)&&!isNaN(ne)?`${ne*De.value}${De.unit}`:lt};return lt.includes(" ")?lt.split(" ").map(G).join(" "):G(lt)}},74351:(St,be,s)=>{"use strict";s.d(be,{Zl:()=>_e,aT:()=>w,b8:()=>de,oO:()=>D});var t=s(73991),e=s(84531),d=s(17774),l=s(45903),r=s(30003),c=s(24510);let P=(()=>{class k extends e.iR{constructor(z,j,Ne,tt,We,ze,we){super(z,null,j,Ne),this.ngClassInstance=we,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new d.mk(tt,We,z,ze)),this.init(),this.setValue("","")}set klass(z){this.ngClassInstance.klass=z,this.setValue(z,"")}updateWithValue(z){this.ngClassInstance.ngClass=z,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return k.\u0275fac=function(z){return new(z||k)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(d.mk,10))},k.\u0275dir=t.lG2({type:k,inputs:{klass:["class","klass"]},features:[t.qOj]}),k})();const I=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let D=(()=>{class k extends P{constructor(){super(...arguments),this.inputs=I}}return k.\u0275fac=function(){let x;return function(j){return(x||(x=t.n5z(k)))(j||k)}}(),k.\u0275dir=t.lG2({type:k,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[t.qOj]}),k})(),M=(()=>{class k extends e.QI{buildStyles(z,j){return{display:"true"===z?j.display||(j.isServer?"initial":""):"none"}}}return k.\u0275fac=function(){let x;return function(j){return(x||(x=t.n5z(k)))(j||k)}}(),k.\u0275prov=t.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})(),T=(()=>{class k extends e.iR{constructor(z,j,Ne,tt,We,ze,we){super(z,j,Ne,tt),this.layoutConfig=We,this.platformId=ze,this.serverModuleLoaded=we,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const z=Array.from(this.nativeElement.children);for(let Ne=0;Ne<z.length;Ne++)if(this.marshal.hasValue(z[Ne],"flex")){this.hasFlexChild=!0;break}F.has(this.nativeElement)?this.display=F.get(this.nativeElement):(this.display=this.getDisplayStyle(),F.set(this.nativeElement,this.display)),this.init();const j=this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY,"");void 0===j||""===j?this.setValue(!0,""):this.triggerUpdate()}ngOnChanges(z){Object.keys(z).forEach(j=>{if(-1!==this.inputs.indexOf(j)){const Ne=j.split("."),tt=Ne.slice(1).join("."),We=z[j].currentValue;let ze=""===We||0!==We&&(0,l.Ig)(We);"fxHide"===Ne[0]&&(ze=!ze),this.setValue(ze,tt)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(z=>{this.marshal.trackValue(this.nativeElement,z).pipe((0,r.R)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(z=!0){if(""===z)return;const j=(0,d.PM)(this.platformId);this.addStyles(z?"true":"false",{display:this.display,isServer:j}),j&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return k.\u0275fac=function(z){return new(z||k)(t.Y36(t.SBq),t.Y36(M),t.Y36(e.RK),t.Y36(e.yB),t.Y36(e.WU),t.Y36(t.Lbi),t.Y36(e.wY))},k.\u0275dir=t.lG2({type:k,features:[t.qOj,t.TTD]}),k})();const F=new WeakMap,le=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let de=(()=>{class k extends T{constructor(){super(...arguments),this.inputs=le}}return k.\u0275fac=function(){let x;return function(j){return(x||(x=t.n5z(k)))(j||k)}}(),k.\u0275dir=t.lG2({type:k,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[t.qOj]}),k})();class ye{constructor(x,z,j=!0){this.key=x,this.value=z,this.key=j?x.replace(/['"]/g,"").trim():x.trim(),this.value=j?z.replace(/['"]/g,"").trim():z.trim(),this.value=this.value.replace(/;/,"")}}function Ee(k){let x=typeof k;return"object"===x?k.constructor===Array?"array":k.constructor===Set?"set":"object":x}function ee(k){const[x,...z]=k.split(":");return new ye(x,z.join(":"))}function se(k,x){return x.key&&(k[x.key]=x.value),k}let W=(()=>{class k extends e.iR{constructor(z,j,Ne,tt,We,ze,we,Ye,te){super(z,null,j,Ne),this.sanitizer=tt,this.ngStyleInstance=we,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new d.PC(z,We,ze)),this.init();const Se=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(Se),this.isServer=Ye&&(0,d.PM)(te)}updateWithValue(z){const j=this.buildStyleMap(z);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...j},this.isServer&&this.applyStyleToElement(j),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(z){const j=Ne=>this.sanitizer.sanitize(t.q3G.STYLE,Ne)??"";if(z)switch(Ee(z)){case"string":return Z(function Le(k,x=";"){return String(k).trim().split(x).map(z=>z.trim()).filter(z=>""!==z)}(z),j);case"array":return Z(z,j);default:return function ue(k,x){let z=[];return"set"===Ee(k)?k.forEach(j=>z.push(j)):Object.keys(k).forEach(j=>{z.push(`${j}:${k[j]}`)}),function ge(k,x){return k.map(ee).filter(j=>!!j).map(j=>(x&&(j.value=x(j.value)),j)).reduce(se,{})}(z,x)}(z,j)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return k.\u0275fac=function(z){return new(z||k)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(c.H7),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(d.PC,10),t.Y36(e.wY),t.Y36(t.Lbi))},k.\u0275dir=t.lG2({type:k,features:[t.qOj]}),k})();const L=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let _e=(()=>{class k extends W{constructor(){super(...arguments),this.inputs=L}}return k.\u0275fac=function(){let x;return function(j){return(x||(x=t.n5z(k)))(j||k)}}(),k.\u0275dir=t.lG2({type:k,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[t.qOj]}),k})();function Z(k,x){return k.map(ee).filter(j=>!!j).map(j=>(x&&(j.value=x(j.value)),j)).reduce(se,{})}let w=(()=>{class k{}return k.\u0275fac=function(z){return new(z||k)},k.\u0275mod=t.oAB({type:k}),k.\u0275inj=t.cJS({imports:[e.IR]}),k})()},27579:(St,be,s)=>{"use strict";s.d(be,{SQ:()=>T,UT:()=>te,Wh:()=>pt,XD:()=>Q,ae:()=>br,r7:()=>tt,s9:()=>fe,xw:()=>n,yH:()=>he});var t=s(73991),e=s(88793),d=s(84531),l=s(5708),r=s(68264),c=s(30003);let E=(()=>{class lt extends d.QI{buildStyles(G,{display:U}){const ne=(0,l.Ar)(G);return{...ne,display:"none"===U?U:ne.display}}}return lt.\u0275fac=function(){let De;return function(U){return(De||(De=t.n5z(lt)))(U||lt)}}(),lt.\u0275prov=t.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();const m=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let C=(()=>{class lt extends d.iR{constructor(G,U,ne,Re,Xe){super(G,ne,U,Re),this._config=Xe,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(G){const ne=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=i.get(ne)??new Map,i.set(ne,this.styleCache),this.currentValue!==G&&(this.addStyles(G,{display:ne}),this.currentValue=G)}}return lt.\u0275fac=function(G){return new(G||lt)(t.Y36(t.SBq),t.Y36(d.RK),t.Y36(E),t.Y36(d.yB),t.Y36(d.WU))},lt.\u0275dir=t.lG2({type:lt,features:[t.qOj]}),lt})(),n=(()=>{class lt extends C{constructor(){super(...arguments),this.inputs=m}}return lt.\u0275fac=function(){let De;return function(U){return(De||(De=t.n5z(lt)))(U||lt)}}(),lt.\u0275dir=t.lG2({type:lt,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[t.qOj]}),lt})();const i=new Map,P={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let I=(()=>{class lt extends d.QI{constructor(G,U){super(),this._styler=G,this._config=U}buildStyles(G,U){return G.endsWith(ye)?(G=G.slice(0,G.indexOf(ye)),function Le(lt,De){const[G,U]=lt.split(" "),Re=Vt=>`-${Vt}`;let Xe="0px",Nt=Re(U??G),Pt="0px";return"rtl"===De?Pt=Re(G):Xe=Re(G),{margin:`0px ${Xe} ${Nt} ${Pt}`}}(G=(0,d.FL)(G,this._config.multiplier),U.directionality)):{}}sideEffect(G,U,ne){const Re=ne.items;if(G.endsWith(ye)){G=G.slice(0,G.indexOf(ye));const Xe=function Ee(lt,De){const[G,U]=lt.split(" ");let Re="0px",Nt="0px";return"rtl"===De?Nt=G:Re=G,{padding:`0px ${Re} ${U??G} ${Nt}`}}(G=(0,d.FL)(G,this._config.multiplier),ne.directionality);this._styler.applyStyleToElements(Xe,ne.items)}else{G=(0,d.FL)(G,this._config.multiplier),G=this.addFallbackUnit(G);const Xe=Re.pop(),Nt=function ue(lt,De){const G=ge(De.directionality,De.layout),U={...P};return U[G]=lt,U}(G,ne);this._styler.applyStyleToElements(Nt,Re),this._styler.applyStyleToElements(P,[Xe])}}addFallbackUnit(G){return isNaN(+G)?G:`${G}${this._config.defaultUnit}`}}return lt.\u0275fac=function(G){return new(G||lt)(t.LFG(d.RK),t.LFG(d.WU))},lt.\u0275prov=t.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();const q=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let M=(()=>{class lt extends d.iR{constructor(G,U,ne,Re,Xe,Nt){super(G,Xe,Re,Nt),this.zone=U,this.directionality=ne,this.styleUtils=Re,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new r.x;const Pt=[this.directionality.change,this.observerSubject.asObservable()];this.init(Pt),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,c.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const G=this.nativeElement.children,U=[];for(let ne=G.length;ne--;)U[ne]=G[ne];return U}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(G){const ne=G.value.split(" ");this.layout=ne[0],l.iQ.find(Re=>Re===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(G){const U=this.childrenNodes.filter(ne=>1===ne.nodeType&&this.willDisplay(ne)).sort((ne,Re)=>{const Xe=+this.styler.lookupStyle(ne,"order"),Nt=+this.styler.lookupStyle(Re,"order");return isNaN(Xe)||isNaN(Nt)||Xe===Nt?0:Xe>Nt?1:-1});if(U.length>0){const ne=this.directionality.value,Re=this.layout;"row"===Re&&"rtl"===ne?this.styleCache=F:"row"===Re&&"rtl"!==ne?this.styleCache=V:"column"===Re&&"rtl"===ne?this.styleCache=le:"column"===Re&&"rtl"!==ne&&(this.styleCache=de),this.addStyles(G,{directionality:ne,items:U,layout:Re})}}clearStyles(){const G=Object.keys(this.mru).length>0,U=G?"padding":ge(this.directionality.value,this.layout);G&&super.clearStyles(),this.styleUtils.applyStyleToElements({[U]:""},this.childrenNodes)}willDisplay(G){const U=this.marshal.getValue(G,"show-hide");return!0===U||void 0===U&&"none"!==this.styleUtils.lookupStyle(G,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(G=>{G.some(ne=>ne.addedNodes&&ne.addedNodes.length>0||ne.removedNodes&&ne.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return lt.\u0275fac=function(G){return new(G||lt)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(e.Is),t.Y36(d.RK),t.Y36(I),t.Y36(d.yB))},lt.\u0275dir=t.lG2({type:lt,features:[t.qOj]}),lt})(),T=(()=>{class lt extends M{constructor(){super(...arguments),this.inputs=q}}return lt.\u0275fac=function(){let De;return function(U){return(De||(De=t.n5z(lt)))(U||lt)}}(),lt.\u0275dir=t.lG2({type:lt,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[t.qOj]}),lt})();const F=new Map,le=new Map,V=new Map,de=new Map,ye=" grid";function ge(lt,De){switch(De){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===lt?"margin-left":"margin-right";case"row-reverse":return"rtl"===lt?"margin-right":"margin-left"}}let ee=(()=>{class lt extends d.QI{constructor(G){super(),this.layoutConfig=G}buildStyles(G,U){let[ne,Re,...Xe]=G.split(" "),Nt=Xe.join(" ");const Pt=U.direction.indexOf("column")>-1?"column":"row",Vt=(0,l.tj)(Pt)?"max-width":"max-height",Jt=(0,l.tj)(Pt)?"min-width":"min-height",kt=String(Nt).indexOf("calc")>-1,Me=kt||"auto"===Nt,ut=String(Nt).indexOf("%")>-1&&!kt,nt=String(Nt).indexOf("px")>-1||String(Nt).indexOf("rem")>-1||String(Nt).indexOf("em")>-1||String(Nt).indexOf("vw")>-1||String(Nt).indexOf("vh")>-1;let Ht=kt||nt;ne="0"==ne?0:ne,Re="0"==Re?0:Re;const pr=!ne&&!Re;let Lr={};const Kr={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Nt||""){case"":Nt="row"===Pt?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":ne=0,Nt="auto";break;case"grow":Nt="100%";break;case"noshrink":Re=0,Nt="auto";break;case"auto":break;case"none":ne=0,Re=0,Nt="auto";break;default:!Ht&&!ut&&!isNaN(Nt)&&(Nt+="%"),"0%"===Nt&&(Ht=!0),"0px"===Nt&&(Nt="0%"),Lr=(0,l.kt)(Kr,kt?{"flex-grow":ne,"flex-shrink":Re,"flex-basis":Ht?Nt:"100%"}:{flex:`${ne} ${Re} ${Ht?Nt:"100%"}`})}return Lr.flex||Lr["flex-grow"]||(Lr=(0,l.kt)(Kr,kt?{"flex-grow":ne,"flex-shrink":Re,"flex-basis":Nt}:{flex:`${ne} ${Re} ${Nt}`})),"0%"!==Nt&&"0px"!==Nt&&"0.000000001px"!==Nt&&"auto"!==Nt&&(Lr[Jt]=pr||Ht&&ne?Nt:null,Lr[Vt]=pr||!Me&&Re?Nt:null),Lr[Jt]||Lr[Vt]?U.hasWrap&&(Lr[kt?"flex-basis":"flex"]=Lr[Vt]?kt?Lr[Vt]:`${ne} ${Re} ${Lr[Vt]}`:kt?Lr[Jt]:`${ne} ${Re} ${Lr[Jt]}`):Lr=(0,l.kt)(Kr,kt?{"flex-grow":ne,"flex-shrink":Re,"flex-basis":Nt}:{flex:`${ne} ${Re} ${Nt}`}),(0,l.kt)(Lr,{"box-sizing":"border-box"})}}return lt.\u0275fac=function(G){return new(G||lt)(t.LFG(d.WU))},lt.\u0275prov=t.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();const se=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let L=(()=>{class lt extends d.iR{constructor(G,U,ne,Re,Xe){super(G,Re,U,Xe),this.layoutConfig=ne,this.marshal=Xe,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(G){this.flexShrink=G||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(G){this.flexGrow=G||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,c.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,c.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(G){const ne=G.value.split(" ");this.direction=ne[0],this.wrap=void 0!==ne[1]&&"wrap"===ne[1],this.triggerUpdate()}updateWithValue(G){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const ne=this.direction,Re=ne.startsWith("row"),Xe=this.wrap;Re&&Xe?this.styleCache=Te:Re&&!Xe?this.styleCache=_e:!Re&&Xe?this.styleCache=w:!Re&&!Xe&&(this.styleCache=Z);const Nt=String(G).replace(";",""),Pt=(0,d.Ot)(Nt,this.flexGrow,this.flexShrink);this.addStyles(Pt.join(" "),{direction:ne,hasWrap:Xe})}triggerReflow(){const G=this.activatedValue;if(void 0!==G){const U=(0,d.Ot)(G+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,U.join(" "))}}}return lt.\u0275fac=function(G){return new(G||lt)(t.Y36(t.SBq),t.Y36(d.RK),t.Y36(d.WU),t.Y36(ee),t.Y36(d.yB))},lt.\u0275dir=t.lG2({type:lt,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[t.qOj]}),lt})(),he=(()=>{class lt extends L{constructor(){super(...arguments),this.inputs=se}}return lt.\u0275fac=function(){let De;return function(U){return(De||(De=t.n5z(lt)))(U||lt)}}(),lt.\u0275dir=t.lG2({type:lt,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[t.qOj]}),lt})();const _e=new Map,Z=new Map,Te=new Map,w=new Map;let k=(()=>{class lt extends d.QI{buildStyles(G){return{order:G&&parseInt(G,10)||""}}}return lt.\u0275fac=function(){let De;return function(U){return(De||(De=t.n5z(lt)))(U||lt)}}(),lt.\u0275prov=t.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();const x=["fxFlexOrder","fxFlexOrder.xs","fxFlexOrder.sm","fxFlexOrder.md","fxFlexOrder.lg","fxFlexOrder.xl","fxFlexOrder.lt-sm","fxFlexOrder.lt-md","fxFlexOrder.lt-lg","fxFlexOrder.lt-xl","fxFlexOrder.gt-xs","fxFlexOrder.gt-sm","fxFlexOrder.gt-md","fxFlexOrder.gt-lg"];let j=(()=>{class lt extends d.iR{constructor(G,U,ne,Re){super(G,ne,U,Re),this.DIRECTIVE_KEY="flex-order",this.styleCache=Ne,this.init()}}return lt.\u0275fac=function(G){return new(G||lt)(t.Y36(t.SBq),t.Y36(d.RK),t.Y36(k),t.Y36(d.yB))},lt.\u0275dir=t.lG2({type:lt,features:[t.qOj]}),lt})();const Ne=new Map;let tt=(()=>{class lt extends j{constructor(){super(...arguments),this.inputs=x}}return lt.\u0275fac=function(){let De;return function(U){return(De||(De=t.n5z(lt)))(U||lt)}}(),lt.\u0275dir=t.lG2({type:lt,selectors:[["","fxFlexOrder",""],["","fxFlexOrder.xs",""],["","fxFlexOrder.sm",""],["","fxFlexOrder.md",""],["","fxFlexOrder.lg",""],["","fxFlexOrder.xl",""],["","fxFlexOrder.lt-sm",""],["","fxFlexOrder.lt-md",""],["","fxFlexOrder.lt-lg",""],["","fxFlexOrder.lt-xl",""],["","fxFlexOrder.gt-xs",""],["","fxFlexOrder.gt-sm",""],["","fxFlexOrder.gt-md",""],["","fxFlexOrder.gt-lg",""]],inputs:{fxFlexOrder:"fxFlexOrder","fxFlexOrder.xs":"fxFlexOrder.xs","fxFlexOrder.sm":"fxFlexOrder.sm","fxFlexOrder.md":"fxFlexOrder.md","fxFlexOrder.lg":"fxFlexOrder.lg","fxFlexOrder.xl":"fxFlexOrder.xl","fxFlexOrder.lt-sm":"fxFlexOrder.lt-sm","fxFlexOrder.lt-md":"fxFlexOrder.lt-md","fxFlexOrder.lt-lg":"fxFlexOrder.lt-lg","fxFlexOrder.lt-xl":"fxFlexOrder.lt-xl","fxFlexOrder.gt-xs":"fxFlexOrder.gt-xs","fxFlexOrder.gt-sm":"fxFlexOrder.gt-sm","fxFlexOrder.gt-md":"fxFlexOrder.gt-md","fxFlexOrder.gt-lg":"fxFlexOrder.gt-lg"},features:[t.qOj]}),lt})(),We=(()=>{class lt extends d.QI{constructor(G){super(),this._config=G}buildStyles(G,U){G||(G="0"),G=(0,d.FL)(G,this._config.multiplier);const ne=String(G).indexOf("%")>-1;!(String(G).indexOf("px")>-1)&&!ne&&!isNaN(+G)&&(G=`${G}%`);const Xe=U.isRtl?"margin-right":"margin-left";return(0,l.tj)(U.layout)?{[Xe]:G}:{"margin-top":G}}}return lt.\u0275fac=function(G){return new(G||lt)(t.LFG(d.WU))},lt.\u0275prov=t.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();const ze=["fxFlexOffset","fxFlexOffset.xs","fxFlexOffset.sm","fxFlexOffset.md","fxFlexOffset.lg","fxFlexOffset.xl","fxFlexOffset.lt-sm","fxFlexOffset.lt-md","fxFlexOffset.lt-lg","fxFlexOffset.lt-xl","fxFlexOffset.gt-xs","fxFlexOffset.gt-sm","fxFlexOffset.gt-md","fxFlexOffset.gt-lg"];let Ye=(()=>{class lt extends d.iR{constructor(G,U,ne,Re,Xe){super(G,ne,Xe,Re),this.directionality=U,this.DIRECTIVE_KEY="flex-offset",this.init([this.directionality.change]),this.parentElement&&this.marshal.trackValue(this.parentElement,"layout-gap").pipe((0,c.R)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))}updateWithValue(G=""){const U=this.getFlexFlowDirection(this.parentElement,!0),ne="rtl"===this.directionality.value;"row"===U&&ne?this.styleCache=Se:"row"!==U||ne?"column"===U&&ne?this.styleCache=ke:"column"===U&&!ne&&(this.styleCache=Tt):this.styleCache=Ge,this.addStyles(G+"",{layout:U,isRtl:ne})}}return lt.\u0275fac=function(G){return new(G||lt)(t.Y36(t.SBq),t.Y36(e.Is),t.Y36(We),t.Y36(d.yB),t.Y36(d.RK))},lt.\u0275dir=t.lG2({type:lt,features:[t.qOj]}),lt})(),te=(()=>{class lt extends Ye{constructor(){super(...arguments),this.inputs=ze}}return lt.\u0275fac=function(){let De;return function(U){return(De||(De=t.n5z(lt)))(U||lt)}}(),lt.\u0275dir=t.lG2({type:lt,selectors:[["","fxFlexOffset",""],["","fxFlexOffset.xs",""],["","fxFlexOffset.sm",""],["","fxFlexOffset.md",""],["","fxFlexOffset.lg",""],["","fxFlexOffset.xl",""],["","fxFlexOffset.lt-sm",""],["","fxFlexOffset.lt-md",""],["","fxFlexOffset.lt-lg",""],["","fxFlexOffset.lt-xl",""],["","fxFlexOffset.gt-xs",""],["","fxFlexOffset.gt-sm",""],["","fxFlexOffset.gt-md",""],["","fxFlexOffset.gt-lg",""]],inputs:{fxFlexOffset:"fxFlexOffset","fxFlexOffset.xs":"fxFlexOffset.xs","fxFlexOffset.sm":"fxFlexOffset.sm","fxFlexOffset.md":"fxFlexOffset.md","fxFlexOffset.lg":"fxFlexOffset.lg","fxFlexOffset.xl":"fxFlexOffset.xl","fxFlexOffset.lt-sm":"fxFlexOffset.lt-sm","fxFlexOffset.lt-md":"fxFlexOffset.lt-md","fxFlexOffset.lt-lg":"fxFlexOffset.lt-lg","fxFlexOffset.lt-xl":"fxFlexOffset.lt-xl","fxFlexOffset.gt-xs":"fxFlexOffset.gt-xs","fxFlexOffset.gt-sm":"fxFlexOffset.gt-sm","fxFlexOffset.gt-md":"fxFlexOffset.gt-md","fxFlexOffset.gt-lg":"fxFlexOffset.gt-lg"},features:[t.qOj]}),lt})();const Se=new Map,ke=new Map,Ge=new Map,Tt=new Map;let Et=(()=>{class lt extends d.QI{buildStyles(G){const U={};switch(G=G||"stretch"){case"start":U["align-self"]="flex-start";break;case"end":U["align-self"]="flex-end";break;default:U["align-self"]=G}return U}}return lt.\u0275fac=function(){let De;return function(U){return(De||(De=t.n5z(lt)))(U||lt)}}(),lt.\u0275prov=t.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();const H=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let S=(()=>{class lt extends d.iR{constructor(G,U,ne,Re){super(G,ne,U,Re),this.DIRECTIVE_KEY="flex-align",this.styleCache=K,this.init()}}return lt.\u0275fac=function(G){return new(G||lt)(t.Y36(t.SBq),t.Y36(d.RK),t.Y36(Et),t.Y36(d.yB))},lt.\u0275dir=t.lG2({type:lt,features:[t.qOj]}),lt})();const K=new Map;let Q=(()=>{class lt extends S{constructor(){super(...arguments),this.inputs=H}}return lt.\u0275fac=function(){let De;return function(U){return(De||(De=t.n5z(lt)))(U||lt)}}(),lt.\u0275dir=t.lG2({type:lt,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[t.qOj]}),lt})();const B={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let re=(()=>{class lt extends d.QI{buildStyles(G){return B}}return lt.\u0275fac=function(){let De;return function(U){return(De||(De=t.n5z(lt)))(U||lt)}}(),lt.\u0275prov=t.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})(),fe=(()=>{class lt extends d.iR{constructor(G,U,ne,Re){super(G,ne,U,Re),this.styleCache=qe,this.addStyles("")}}return lt.\u0275fac=function(G){return new(G||lt)(t.Y36(t.SBq),t.Y36(d.RK),t.Y36(re),t.Y36(d.yB))},lt.\u0275dir=t.lG2({type:lt,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[t.qOj]}),lt})();const qe=new Map;let $e=(()=>{class lt extends d.QI{buildStyles(G,U){const ne={},[Re,Xe]=G.split(" ");switch(Re){case"center":ne["justify-content"]="center";break;case"space-around":ne["justify-content"]="space-around";break;case"space-between":ne["justify-content"]="space-between";break;case"space-evenly":ne["justify-content"]="space-evenly";break;case"end":case"flex-end":ne["justify-content"]="flex-end";break;default:ne["justify-content"]="flex-start"}switch(Xe){case"start":case"flex-start":ne["align-items"]=ne["align-content"]="flex-start";break;case"center":ne["align-items"]=ne["align-content"]="center";break;case"end":case"flex-end":ne["align-items"]=ne["align-content"]="flex-end";break;case"space-between":ne["align-content"]="space-between",ne["align-items"]="stretch";break;case"space-around":ne["align-content"]="space-around",ne["align-items"]="stretch";break;case"baseline":ne["align-content"]="stretch",ne["align-items"]="baseline";break;default:ne["align-items"]=ne["align-content"]="stretch"}return(0,l.kt)(ne,{display:U.inline?"inline-flex":"flex","flex-direction":U.layout,"box-sizing":"border-box","max-width":"stretch"===Xe?(0,l.tj)(U.layout)?null:"100%":null,"max-height":"stretch"===Xe&&(0,l.tj)(U.layout)?"100%":null})}}return lt.\u0275fac=function(){let De;return function(U){return(De||(De=t.n5z(lt)))(U||lt)}}(),lt.\u0275prov=t.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();const et=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let ct=(()=>{class lt extends d.iR{constructor(G,U,ne,Re){super(G,ne,U,Re),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,c.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(G){const U=this.layout||"row",ne=this.inline;"row"===U&&ne?this.styleCache=dr:"row"!==U||ne?"row-reverse"===U&&ne?this.styleCache=ar:"row-reverse"!==U||ne?"column"===U&&ne?this.styleCache=bt:"column"!==U||ne?"column-reverse"===U&&ne?this.styleCache=vt:"column-reverse"===U&&!ne&&(this.styleCache=yt):this.styleCache=It:this.styleCache=fr:this.styleCache=$t,this.addStyles(G,{layout:U,inline:ne})}onLayoutChange(G){const U=G.value.split(" ");this.layout=U[0],this.inline=G.value.includes("inline"),l.iQ.find(ne=>ne===this.layout)||(this.layout="row"),this.triggerUpdate()}}return lt.\u0275fac=function(G){return new(G||lt)(t.Y36(t.SBq),t.Y36(d.RK),t.Y36($e),t.Y36(d.yB))},lt.\u0275dir=t.lG2({type:lt,features:[t.qOj]}),lt})(),pt=(()=>{class lt extends ct{constructor(){super(...arguments),this.inputs=et}}return lt.\u0275fac=function(){let De;return function(U){return(De||(De=t.n5z(lt)))(U||lt)}}(),lt.\u0275dir=t.lG2({type:lt,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[t.qOj]}),lt})();const $t=new Map,It=new Map,fr=new Map,yt=new Map,dr=new Map,bt=new Map,ar=new Map,vt=new Map;let br=(()=>{class lt{}return lt.\u0275fac=function(G){return new(G||lt)},lt.\u0275mod=t.oAB({type:lt}),lt.\u0275inj=t.cJS({imports:[d.IR,e.vT]}),lt})()},15645:(St,be,s)=>{"use strict";s.d(be,{Cf:()=>T,F:()=>kr,Fd:()=>Ua,Fj:()=>I,JJ:()=>Y,JL:()=>S,JU:()=>m,NI:()=>ri,On:()=>La,Q7:()=>Ka,QS:()=>Bo,UX:()=>vo,Zs:()=>Mi,_Y:()=>Ei,a5:()=>Ge,cw:()=>Vt,gN:()=>ke,kI:()=>V,nD:()=>To,nJ:()=>Jt,oH:()=>ji,p4:()=>Sr,qQ:()=>ro,qu:()=>Mo,sg:()=>Ui,u:()=>$i,u5:()=>Qn,wV:()=>bn,x0:()=>fa});var t=s(73991),e=s(17774),d=s(51728),l=s(80842),r=s(87580);let c=(()=>{class rt{constructor(Ue,Yt){this._renderer=Ue,this._elementRef=Yt,this.onChange=Yr=>{},this.onTouched=()=>{}}setProperty(Ue,Yt){this._renderer.setProperty(this._elementRef.nativeElement,Ue,Yt)}registerOnTouched(Ue){this.onTouched=Ue}registerOnChange(Ue){this.onChange=Ue}setDisabledState(Ue){this.setProperty("disabled",Ue)}}return rt.\u0275fac=function(Ue){return new(Ue||rt)(t.Y36(t.Qsj),t.Y36(t.SBq))},rt.\u0275dir=t.lG2({type:rt}),rt})(),E=(()=>{class rt extends c{}return rt.\u0275fac=function(){let je;return function(Yt){return(je||(je=t.n5z(rt)))(Yt||rt)}}(),rt.\u0275dir=t.lG2({type:rt,features:[t.qOj]}),rt})();const m=new t.OlP("NgValueAccessor"),n={provide:m,useExisting:(0,t.Gpc)(()=>I),multi:!0},P=new t.OlP("CompositionEventMode");let I=(()=>{class rt extends c{constructor(Ue,Yt,Yr){super(Ue,Yt),this._compositionMode=Yr,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function i(){const rt=(0,e.q)()?(0,e.q)().getUserAgent():"";return/android (\d+)/.test(rt.toLowerCase())}())}writeValue(Ue){this.setProperty("value",Ue??"")}_handleInput(Ue){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ue)}_compositionStart(){this._composing=!0}_compositionEnd(Ue){this._composing=!1,this._compositionMode&&this.onChange(Ue)}}return rt.\u0275fac=function(Ue){return new(Ue||rt)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(P,8))},rt.\u0275dir=t.lG2({type:rt,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(Ue,Yt){1&Ue&&t.NdJ("input",function(Un){return Yt._handleInput(Un.target.value)})("blur",function(){return Yt.onTouched()})("compositionstart",function(){return Yt._compositionStart()})("compositionend",function(Un){return Yt._compositionEnd(Un.target.value)})},features:[t._Bn([n]),t.qOj]}),rt})();const q=!1;function D(rt){return null==rt||("string"==typeof rt||Array.isArray(rt))&&0===rt.length}function M(rt){return null!=rt&&"number"==typeof rt.length}const T=new t.OlP("NgValidators"),F=new t.OlP("NgAsyncValidators"),le=/^(?=.{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])?)*$/;class V{static min(je){return de(je)}static max(je){return ye(je)}static required(je){return Ee(je)}static requiredTrue(je){return Le(je)}static email(je){return function ge(rt){return D(rt.value)||le.test(rt.value)?null:{email:!0}}(je)}static minLength(je){return function ue(rt){return je=>D(je.value)||!M(je.value)?null:je.value.length<rt?{minlength:{requiredLength:rt,actualLength:je.value.length}}:null}(je)}static maxLength(je){return ee(je)}static pattern(je){return function se(rt){if(!rt)return W;let je,Ue;return"string"==typeof rt?(Ue="","^"!==rt.charAt(0)&&(Ue+="^"),Ue+=rt,"$"!==rt.charAt(rt.length-1)&&(Ue+="$"),je=new RegExp(Ue)):(Ue=rt.toString(),je=rt),Yt=>{if(D(Yt.value))return null;const Yr=Yt.value;return je.test(Yr)?null:{pattern:{requiredPattern:Ue,actualValue:Yr}}}}(je)}static nullValidator(je){return null}static compose(je){return k(je)}static composeAsync(je){return z(je)}}function de(rt){return je=>{if(D(je.value)||D(rt))return null;const Ue=parseFloat(je.value);return!isNaN(Ue)&&Ue<rt?{min:{min:rt,actual:je.value}}:null}}function ye(rt){return je=>{if(D(je.value)||D(rt))return null;const Ue=parseFloat(je.value);return!isNaN(Ue)&&Ue>rt?{max:{max:rt,actual:je.value}}:null}}function Ee(rt){return D(rt.value)?{required:!0}:null}function Le(rt){return!0===rt.value?null:{required:!0}}function ee(rt){return je=>M(je.value)&&je.value.length>rt?{maxlength:{requiredLength:rt,actualLength:je.value.length}}:null}function W(rt){return null}function L(rt){return null!=rt}function he(rt){const je=(0,t.QGY)(rt)?(0,d.D)(rt):rt;if(q&&!(0,t.CqO)(je)){let Ue="Expected async validator to return Promise or Observable.";throw"object"==typeof rt&&(Ue+=" Are you using a synchronous validator where an async validator is expected?"),new t.vHH(-1101,Ue)}return je}function _e(rt){let je={};return rt.forEach(Ue=>{je=null!=Ue?{...je,...Ue}:je}),0===Object.keys(je).length?null:je}function Z(rt,je){return je.map(Ue=>Ue(rt))}function w(rt){return rt.map(je=>function Te(rt){return!rt.validate}(je)?je:Ue=>je.validate(Ue))}function k(rt){if(!rt)return null;const je=rt.filter(L);return 0==je.length?null:function(Ue){return _e(Z(Ue,je))}}function x(rt){return null!=rt?k(w(rt)):null}function z(rt){if(!rt)return null;const je=rt.filter(L);return 0==je.length?null:function(Ue){const Yt=Z(Ue,je).map(he);return(0,l.D)(Yt).pipe((0,r.U)(_e))}}function j(rt){return null!=rt?z(w(rt)):null}function Ne(rt,je){return null===rt?[je]:Array.isArray(rt)?[...rt,je]:[rt,je]}function tt(rt){return rt._rawValidators}function We(rt){return rt._rawAsyncValidators}function ze(rt){return rt?Array.isArray(rt)?rt:[rt]:[]}function we(rt,je){return Array.isArray(rt)?rt.includes(je):rt===je}function Ye(rt,je){const Ue=ze(je);return ze(rt).forEach(Yr=>{we(Ue,Yr)||Ue.push(Yr)}),Ue}function te(rt,je){return ze(je).filter(Ue=>!we(rt,Ue))}class Se{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(je){this._rawValidators=je||[],this._composedValidatorFn=x(this._rawValidators)}_setAsyncValidators(je){this._rawAsyncValidators=je||[],this._composedAsyncValidatorFn=j(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(je){this._onDestroyCallbacks.push(je)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(je=>je()),this._onDestroyCallbacks=[]}reset(je){this.control&&this.control.reset(je)}hasError(je,Ue){return!!this.control&&this.control.hasError(je,Ue)}getError(je,Ue){return this.control?this.control.getError(je,Ue):null}}class ke extends Se{get formDirective(){return null}get path(){return null}}class Ge extends Se{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Tt{constructor(je){this._cd=je}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 Y=(()=>{class rt extends Tt{constructor(Ue){super(Ue)}}return rt.\u0275fac=function(Ue){return new(Ue||rt)(t.Y36(Ge,2))},rt.\u0275dir=t.lG2({type:rt,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ue,Yt){2&Ue&&t.ekj("ng-untouched",Yt.isUntouched)("ng-touched",Yt.isTouched)("ng-pristine",Yt.isPristine)("ng-dirty",Yt.isDirty)("ng-valid",Yt.isValid)("ng-invalid",Yt.isInvalid)("ng-pending",Yt.isPending)},features:[t.qOj]}),rt})(),S=(()=>{class rt extends Tt{constructor(Ue){super(Ue)}}return rt.\u0275fac=function(Ue){return new(Ue||rt)(t.Y36(ke,10))},rt.\u0275dir=t.lG2({type:rt,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ue,Yt){2&Ue&&t.ekj("ng-untouched",Yt.isUntouched)("ng-touched",Yt.isTouched)("ng-pristine",Yt.isPristine)("ng-dirty",Yt.isDirty)("ng-valid",Yt.isValid)("ng-invalid",Yt.isInvalid)("ng-pending",Yt.isPending)("ng-submitted",Yt.isSubmitted)},features:[t.qOj]}),rt})();function fr(rt,je){return rt?`with name: '${je}'`:`at index: ${je}`}const ar=!1,vt="VALID",qt="INVALID",br="PENDING",lt="DISABLED";function De(rt){return(Re(rt)?rt.validators:rt)||null}function U(rt,je){return(Re(je)?je.asyncValidators:rt)||null}function Re(rt){return null!=rt&&!Array.isArray(rt)&&"object"==typeof rt}function Xe(rt,je,Ue){const Yt=rt.controls;if(!(je?Object.keys(Yt):Yt).length)throw new t.vHH(1e3,ar?function yt(rt){return`\n    There are no form controls registered with this ${rt?"group":"array"} yet. If you're using ngModel,\n    you may want to check next tick (e.g. use setTimeout).\n  `}(je):"");if(!Yt[Ue])throw new t.vHH(1001,ar?function dr(rt,je){return`Cannot find form control ${fr(rt,je)}`}(je,Ue):"")}function Nt(rt,je,Ue){rt._forEachChild((Yt,Yr)=>{if(void 0===Ue[Yr])throw new t.vHH(1002,ar?function bt(rt,je){return`Must supply a value for form control ${fr(rt,je)}`}(je,Yr):"")})}class Pt{constructor(je,Ue){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(je),this._assignAsyncValidators(Ue)}get validator(){return this._composedValidatorFn}set validator(je){this._rawValidators=this._composedValidatorFn=je}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(je){this._rawAsyncValidators=this._composedAsyncValidatorFn=je}get parent(){return this._parent}get valid(){return this.status===vt}get invalid(){return this.status===qt}get pending(){return this.status==br}get disabled(){return this.status===lt}get enabled(){return this.status!==lt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(je){this._assignValidators(je)}setAsyncValidators(je){this._assignAsyncValidators(je)}addValidators(je){this.setValidators(Ye(je,this._rawValidators))}addAsyncValidators(je){this.setAsyncValidators(Ye(je,this._rawAsyncValidators))}removeValidators(je){this.setValidators(te(je,this._rawValidators))}removeAsyncValidators(je){this.setAsyncValidators(te(je,this._rawAsyncValidators))}hasValidator(je){return we(this._rawValidators,je)}hasAsyncValidator(je){return we(this._rawAsyncValidators,je)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(je={}){this.touched=!0,this._parent&&!je.onlySelf&&this._parent.markAsTouched(je)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(je=>je.markAllAsTouched())}markAsUntouched(je={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ue=>{Ue.markAsUntouched({onlySelf:!0})}),this._parent&&!je.onlySelf&&this._parent._updateTouched(je)}markAsDirty(je={}){this.pristine=!1,this._parent&&!je.onlySelf&&this._parent.markAsDirty(je)}markAsPristine(je={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ue=>{Ue.markAsPristine({onlySelf:!0})}),this._parent&&!je.onlySelf&&this._parent._updatePristine(je)}markAsPending(je={}){this.status=br,!1!==je.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!je.onlySelf&&this._parent.markAsPending(je)}disable(je={}){const Ue=this._parentMarkedDirty(je.onlySelf);this.status=lt,this.errors=null,this._forEachChild(Yt=>{Yt.disable({...je,onlySelf:!0})}),this._updateValue(),!1!==je.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...je,skipPristineCheck:Ue}),this._onDisabledChange.forEach(Yt=>Yt(!0))}enable(je={}){const Ue=this._parentMarkedDirty(je.onlySelf);this.status=vt,this._forEachChild(Yt=>{Yt.enable({...je,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:je.emitEvent}),this._updateAncestors({...je,skipPristineCheck:Ue}),this._onDisabledChange.forEach(Yt=>Yt(!1))}_updateAncestors(je){this._parent&&!je.onlySelf&&(this._parent.updateValueAndValidity(je),je.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(je){this._parent=je}getRawValue(){return this.value}updateValueAndValidity(je={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===vt||this.status===br)&&this._runAsyncValidator(je.emitEvent)),!1!==je.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!je.onlySelf&&this._parent.updateValueAndValidity(je)}_updateTreeValidity(je={emitEvent:!0}){this._forEachChild(Ue=>Ue._updateTreeValidity(je)),this.updateValueAndValidity({onlySelf:!0,emitEvent:je.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?lt:vt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(je){if(this.asyncValidator){this.status=br,this._hasOwnPendingAsyncValidator=!0;const Ue=he(this.asyncValidator(this));this._asyncValidationSubscription=Ue.subscribe(Yt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Yt,{emitEvent:je})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(je,Ue={}){this.errors=je,this._updateControlsErrors(!1!==Ue.emitEvent)}get(je){let Ue=je;return null==Ue||(Array.isArray(Ue)||(Ue=Ue.split(".")),0===Ue.length)?null:Ue.reduce((Yt,Yr)=>Yt&&Yt._find(Yr),this)}getError(je,Ue){const Yt=Ue?this.get(Ue):this;return Yt&&Yt.errors?Yt.errors[je]:null}hasError(je,Ue){return!!this.getError(je,Ue)}get root(){let je=this;for(;je._parent;)je=je._parent;return je}_updateControlsErrors(je){this.status=this._calculateStatus(),je&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(je)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?lt:this.errors?qt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(br)?br:this._anyControlsHaveStatus(qt)?qt:vt}_anyControlsHaveStatus(je){return this._anyControls(Ue=>Ue.status===je)}_anyControlsDirty(){return this._anyControls(je=>je.dirty)}_anyControlsTouched(){return this._anyControls(je=>je.touched)}_updatePristine(je={}){this.pristine=!this._anyControlsDirty(),this._parent&&!je.onlySelf&&this._parent._updatePristine(je)}_updateTouched(je={}){this.touched=this._anyControlsTouched(),this._parent&&!je.onlySelf&&this._parent._updateTouched(je)}_registerOnCollectionChange(je){this._onCollectionChange=je}_setUpdateStrategy(je){Re(je)&&null!=je.updateOn&&(this._updateOn=je.updateOn)}_parentMarkedDirty(je){return!je&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(je){return null}_assignValidators(je){this._rawValidators=Array.isArray(je)?je.slice():je,this._composedValidatorFn=function G(rt){return Array.isArray(rt)?x(rt):rt||null}(this._rawValidators)}_assignAsyncValidators(je){this._rawAsyncValidators=Array.isArray(je)?je.slice():je,this._composedAsyncValidatorFn=function ne(rt){return Array.isArray(rt)?j(rt):rt||null}(this._rawAsyncValidators)}}class Vt extends Pt{constructor(je,Ue,Yt){super(De(Ue),U(Yt,Ue)),this.controls=je,this._initObservables(),this._setUpdateStrategy(Ue),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(je,Ue){return this.controls[je]?this.controls[je]:(this.controls[je]=Ue,Ue.setParent(this),Ue._registerOnCollectionChange(this._onCollectionChange),Ue)}addControl(je,Ue,Yt={}){this.registerControl(je,Ue),this.updateValueAndValidity({emitEvent:Yt.emitEvent}),this._onCollectionChange()}removeControl(je,Ue={}){this.controls[je]&&this.controls[je]._registerOnCollectionChange(()=>{}),delete this.controls[je],this.updateValueAndValidity({emitEvent:Ue.emitEvent}),this._onCollectionChange()}setControl(je,Ue,Yt={}){this.controls[je]&&this.controls[je]._registerOnCollectionChange(()=>{}),delete this.controls[je],Ue&&this.registerControl(je,Ue),this.updateValueAndValidity({emitEvent:Yt.emitEvent}),this._onCollectionChange()}contains(je){return this.controls.hasOwnProperty(je)&&this.controls[je].enabled}setValue(je,Ue={}){Nt(this,!0,je),Object.keys(je).forEach(Yt=>{Xe(this,!0,Yt),this.controls[Yt].setValue(je[Yt],{onlySelf:!0,emitEvent:Ue.emitEvent})}),this.updateValueAndValidity(Ue)}patchValue(je,Ue={}){null!=je&&(Object.keys(je).forEach(Yt=>{const Yr=this.controls[Yt];Yr&&Yr.patchValue(je[Yt],{onlySelf:!0,emitEvent:Ue.emitEvent})}),this.updateValueAndValidity(Ue))}reset(je={},Ue={}){this._forEachChild((Yt,Yr)=>{Yt.reset(je[Yr],{onlySelf:!0,emitEvent:Ue.emitEvent})}),this._updatePristine(Ue),this._updateTouched(Ue),this.updateValueAndValidity(Ue)}getRawValue(){return this._reduceChildren({},(je,Ue,Yt)=>(je[Yt]=Ue.getRawValue(),je))}_syncPendingControls(){let je=this._reduceChildren(!1,(Ue,Yt)=>!!Yt._syncPendingControls()||Ue);return je&&this.updateValueAndValidity({onlySelf:!0}),je}_forEachChild(je){Object.keys(this.controls).forEach(Ue=>{const Yt=this.controls[Ue];Yt&&je(Yt,Ue)})}_setUpControls(){this._forEachChild(je=>{je.setParent(this),je._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(je){for(const[Ue,Yt]of Object.entries(this.controls))if(this.contains(Ue)&&je(Yt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ue,Yt,Yr)=>((Yt.enabled||this.disabled)&&(Ue[Yr]=Yt.value),Ue))}_reduceChildren(je,Ue){let Yt=je;return this._forEachChild((Yr,Un)=>{Yt=Ue(Yt,Yr,Un)}),Yt}_allControlsDisabled(){for(const je of Object.keys(this.controls))if(this.controls[je].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(je){return this.controls.hasOwnProperty(je)?this.controls[je]:null}}const Jt=Vt;class Me extends Vt{}const nt=new t.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Ht}),Ht="always";function pr(rt,je){return[...je.path,rt]}function Lr(rt,je,Ue=Ht){zn(rt,je),je.valueAccessor.writeValue(rt.value),(rt.disabled||"always"===Ue)&&je.valueAccessor.setDisabledState?.(rt.disabled),function yr(rt,je){je.valueAccessor.registerOnChange(Ue=>{rt._pendingValue=Ue,rt._pendingChange=!0,rt._pendingDirty=!0,"change"===rt.updateOn&&wt(rt,je)})}(rt,je),function nr(rt,je){const Ue=(Yt,Yr)=>{je.valueAccessor.writeValue(Yt),Yr&&je.viewToModelUpdate(Yt)};rt.registerOnChange(Ue),je._registerOnDestroy(()=>{rt._unregisterOnChange(Ue)})}(rt,je),function Jr(rt,je){je.valueAccessor.registerOnTouched(()=>{rt._pendingTouched=!0,"blur"===rt.updateOn&&rt._pendingChange&&wt(rt,je),"submit"!==rt.updateOn&&rt.markAsTouched()})}(rt,je),function Wn(rt,je){if(je.valueAccessor.setDisabledState){const Ue=Yt=>{je.valueAccessor.setDisabledState(Yt)};rt.registerOnDisabledChange(Ue),je._registerOnDestroy(()=>{rt._unregisterOnDisabledChange(Ue)})}}(rt,je)}function Kr(rt,je,Ue=!0){const Yt=()=>{};je.valueAccessor&&(je.valueAccessor.registerOnChange(Yt),je.valueAccessor.registerOnTouched(Yt)),ti(rt,je),rt&&(je._invokeOnDestroyCallbacks(),rt._registerOnCollectionChange(()=>{}))}function Cn(rt,je){rt.forEach(Ue=>{Ue.registerOnValidatorChange&&Ue.registerOnValidatorChange(je)})}function zn(rt,je){const Ue=tt(rt);null!==je.validator?rt.setValidators(Ne(Ue,je.validator)):"function"==typeof Ue&&rt.setValidators([Ue]);const Yt=We(rt);null!==je.asyncValidator?rt.setAsyncValidators(Ne(Yt,je.asyncValidator)):"function"==typeof Yt&&rt.setAsyncValidators([Yt]);const Yr=()=>rt.updateValueAndValidity();Cn(je._rawValidators,Yr),Cn(je._rawAsyncValidators,Yr)}function ti(rt,je){let Ue=!1;if(null!==rt){if(null!==je.validator){const Yr=tt(rt);if(Array.isArray(Yr)&&Yr.length>0){const Un=Yr.filter(pa=>pa!==je.validator);Un.length!==Yr.length&&(Ue=!0,rt.setValidators(Un))}}if(null!==je.asyncValidator){const Yr=We(rt);if(Array.isArray(Yr)&&Yr.length>0){const Un=Yr.filter(pa=>pa!==je.asyncValidator);Un.length!==Yr.length&&(Ue=!0,rt.setAsyncValidators(Un))}}}const Yt=()=>{};return Cn(je._rawValidators,Yt),Cn(je._rawAsyncValidators,Yt),Ue}function wt(rt,je){rt._pendingDirty&&rt.markAsDirty(),rt.setValue(rt._pendingValue,{emitModelToViewChange:!1}),je.viewToModelUpdate(rt._pendingValue),rt._pendingChange=!1}function tn(rt,je){zn(rt,je)}function Ni(rt,je){if(!rt.hasOwnProperty("model"))return!1;const Ue=rt.model;return!!Ue.isFirstChange()||!Object.is(je,Ue.currentValue)}function Kt(rt,je){rt._syncPendingControls(),je.forEach(Ue=>{const Yt=Ue.control;"submit"===Yt.updateOn&&Yt._pendingChange&&(Ue.viewToModelUpdate(Yt._pendingValue),Yt._pendingChange=!1)})}function Ar(rt,je){if(!je)return null;let Ue,Yt,Yr;return Array.isArray(je),je.forEach(Un=>{Un.constructor===I?Ue=Un:function ci(rt){return Object.getPrototypeOf(rt.constructor)===E}(Un)?Yt=Un:Yr=Un}),Yr||Yt||Ue||null}const Mt={provide:ke,useExisting:(0,t.Gpc)(()=>kr)},tr=(()=>Promise.resolve())();let kr=(()=>{class rt extends ke{constructor(Ue,Yt,Yr){super(),this.callSetDisabledState=Yr,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new Vt({},x(Ue),j(Yt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ue){tr.then(()=>{const Yt=this._findContainer(Ue.path);Ue.control=Yt.registerControl(Ue.name,Ue.control),Lr(Ue.control,Ue,this.callSetDisabledState),Ue.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ue)})}getControl(Ue){return this.form.get(Ue.path)}removeControl(Ue){tr.then(()=>{const Yt=this._findContainer(Ue.path);Yt&&Yt.removeControl(Ue.name),this._directives.delete(Ue)})}addFormGroup(Ue){tr.then(()=>{const Yt=this._findContainer(Ue.path),Yr=new Vt({});tn(Yr,Ue),Yt.registerControl(Ue.name,Yr),Yr.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ue){tr.then(()=>{const Yt=this._findContainer(Ue.path);Yt&&Yt.removeControl(Ue.name)})}getFormGroup(Ue){return this.form.get(Ue.path)}updateModel(Ue,Yt){tr.then(()=>{this.form.get(Ue.path).setValue(Yt)})}setValue(Ue){this.control.setValue(Ue)}onSubmit(Ue){return this.submitted=!0,Kt(this.form,this._directives),this.ngSubmit.emit(Ue),"dialog"===Ue?.target?.method}onReset(){this.resetForm()}resetForm(Ue){this.form.reset(Ue),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ue){return Ue.pop(),Ue.length?this.form.get(Ue):this.form}}return rt.\u0275fac=function(Ue){return new(Ue||rt)(t.Y36(T,10),t.Y36(F,10),t.Y36(nt,8))},rt.\u0275dir=t.lG2({type:rt,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ue,Yt){1&Ue&&t.NdJ("submit",function(Un){return Yt.onSubmit(Un)})("reset",function(){return Yt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([Mt]),t.qOj]}),rt})();function mn(rt,je){const Ue=rt.indexOf(je);Ue>-1&&rt.splice(Ue,1)}function un(rt){return"object"==typeof rt&&null!==rt&&2===Object.keys(rt).length&&"value"in rt&&"disabled"in rt}const ri=class extends Pt{constructor(je=null,Ue,Yt){super(De(Ue),U(Yt,Ue)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(je),this._setUpdateStrategy(Ue),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Re(Ue)&&(Ue.nonNullable||Ue.initialValueIsDefault)&&(this.defaultValue=un(je)?je.value:je)}setValue(je,Ue={}){this.value=this._pendingValue=je,this._onChange.length&&!1!==Ue.emitModelToViewChange&&this._onChange.forEach(Yt=>Yt(this.value,!1!==Ue.emitViewToModelChange)),this.updateValueAndValidity(Ue)}patchValue(je,Ue={}){this.setValue(je,Ue)}reset(je=this.defaultValue,Ue={}){this._applyFormState(je),this.markAsPristine(Ue),this.markAsUntouched(Ue),this.setValue(this.value,Ue),this._pendingChange=!1}_updateValue(){}_anyControls(je){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(je){this._onChange.push(je)}_unregisterOnChange(je){mn(this._onChange,je)}registerOnDisabledChange(je){this._onDisabledChange.push(je)}_unregisterOnDisabledChange(je){mn(this._onDisabledChange,je)}_forEachChild(je){}_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(je){un(je)?(this.value=this._pendingValue=je.value,je.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=je}},Sr=ri;let Ot=(()=>{class rt extends ke{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return pr(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return rt.\u0275fac=function(){let je;return function(Yt){return(je||(je=t.n5z(rt)))(Yt||rt)}}(),rt.\u0275dir=t.lG2({type:rt,features:[t.qOj]}),rt})();const ta={provide:Ge,useExisting:(0,t.Gpc)(()=>La)},$a=(()=>Promise.resolve())();let La=(()=>{class rt extends Ge{constructor(Ue,Yt,Yr,Un,pa,Wr){super(),this._changeDetectorRef=pa,this.callSetDisabledState=Wr,this.control=new ri,this._registered=!1,this.update=new t.vpe,this._parent=Ue,this._setValidators(Yt),this._setAsyncValidators(Yr),this.valueAccessor=Ar(0,Un)}ngOnChanges(Ue){if(this._checkForErrors(),!this._registered||"name"in Ue){if(this._registered&&(this._checkName(),this.formDirective)){const Yt=Ue.name.previousValue;this.formDirective.removeControl({name:Yt,path:this._getPath(Yt)})}this._setUpControl()}"isDisabled"in Ue&&this._updateDisabled(Ue),Ni(Ue,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(Ue){this.viewModel=Ue,this.update.emit(Ue)}_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(){Lr(this.control,this,this.callSetDisabledState),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(Ue){$a.then(()=>{this.control.setValue(Ue,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Ue){const Yt=Ue.isDisabled.currentValue,Yr=0!==Yt&&(0,t.D6c)(Yt);$a.then(()=>{Yr&&!this.control.disabled?this.control.disable():!Yr&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Ue){return this._parent?pr(Ue,this._parent):[Ue]}}return rt.\u0275fac=function(Ue){return new(Ue||rt)(t.Y36(ke,9),t.Y36(T,10),t.Y36(F,10),t.Y36(m,10),t.Y36(t.sBO,8),t.Y36(nt,8))},rt.\u0275dir=t.lG2({type:rt,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([ta]),t.qOj,t.TTD]}),rt})(),Ei=(()=>{class rt{}return rt.\u0275fac=function(Ue){return new(Ue||rt)},rt.\u0275dir=t.lG2({type:rt,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),rt})();const ma={provide:m,useExisting:(0,t.Gpc)(()=>bn),multi:!0};let bn=(()=>{class rt extends E{writeValue(Ue){this.setProperty("value",Ue??"")}registerOnChange(Ue){this.onChange=Yt=>{Ue(""==Yt?null:parseFloat(Yt))}}}return rt.\u0275fac=function(){let je;return function(Yt){return(je||(je=t.n5z(rt)))(Yt||rt)}}(),rt.\u0275dir=t.lG2({type:rt,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ue,Yt){1&Ue&&t.NdJ("input",function(Un){return Yt.onChange(Un.target.value)})("blur",function(){return Yt.onTouched()})},features:[t._Bn([ma]),t.qOj]}),rt})(),Ia=(()=>{class rt{}return rt.\u0275fac=function(Ue){return new(Ue||rt)},rt.\u0275mod=t.oAB({type:rt}),rt.\u0275inj=t.cJS({}),rt})();const Wi=new t.OlP("NgModelWithFormControlWarning"),ra={provide:Ge,useExisting:(0,t.Gpc)(()=>ji)};let ji=(()=>{class rt extends Ge{set isDisabled(Ue){}constructor(Ue,Yt,Yr,Un,pa){super(),this._ngModelWarningConfig=Un,this.callSetDisabledState=pa,this.update=new t.vpe,this._ngModelWarningSent=!1,this._setValidators(Ue),this._setAsyncValidators(Yt),this.valueAccessor=Ar(0,Yr)}ngOnChanges(Ue){if(this._isControlChanged(Ue)){const Yt=Ue.form.previousValue;Yt&&Kr(Yt,this,!1),Lr(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Ni(Ue,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Kr(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ue){this.viewModel=Ue,this.update.emit(Ue)}_isControlChanged(Ue){return Ue.hasOwnProperty("form")}}return rt._ngModelWarningSentOnce=!1,rt.\u0275fac=function(Ue){return new(Ue||rt)(t.Y36(T,10),t.Y36(F,10),t.Y36(m,10),t.Y36(Wi,8),t.Y36(nt,8))},rt.\u0275dir=t.lG2({type:rt,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t._Bn([ra]),t.qOj,t.TTD]}),rt})();const sa={provide:ke,useExisting:(0,t.Gpc)(()=>Ui)};let Ui=(()=>{class rt extends ke{constructor(Ue,Yt,Yr){super(),this.callSetDisabledState=Yr,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(Ue),this._setAsyncValidators(Yt)}ngOnChanges(Ue){this._checkFormPresent(),Ue.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ti(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ue){const Yt=this.form.get(Ue.path);return Lr(Yt,Ue,this.callSetDisabledState),Yt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ue),Yt}getControl(Ue){return this.form.get(Ue.path)}removeControl(Ue){Kr(Ue.control||null,Ue,!1),function ie(rt,je){const Ue=rt.indexOf(je);Ue>-1&&rt.splice(Ue,1)}(this.directives,Ue)}addFormGroup(Ue){this._setUpFormContainer(Ue)}removeFormGroup(Ue){this._cleanUpFormContainer(Ue)}getFormGroup(Ue){return this.form.get(Ue.path)}addFormArray(Ue){this._setUpFormContainer(Ue)}removeFormArray(Ue){this._cleanUpFormContainer(Ue)}getFormArray(Ue){return this.form.get(Ue.path)}updateModel(Ue,Yt){this.form.get(Ue.path).setValue(Yt)}onSubmit(Ue){return this.submitted=!0,Kt(this.form,this.directives),this.ngSubmit.emit(Ue),"dialog"===Ue?.target?.method}onReset(){this.resetForm()}resetForm(Ue){this.form.reset(Ue),this.submitted=!1}_updateDomValue(){this.directives.forEach(Ue=>{const Yt=Ue.control,Yr=this.form.get(Ue.path);Yt!==Yr&&(Kr(Yt||null,Ue),(rt=>rt instanceof ri)(Yr)&&(Lr(Yr,Ue,this.callSetDisabledState),Ue.control=Yr))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ue){const Yt=this.form.get(Ue.path);tn(Yt,Ue),Yt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ue){if(this.form){const Yt=this.form.get(Ue.path);Yt&&function rn(rt,je){return ti(rt,je)}(Yt,Ue)&&Yt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){zn(this.form,this),this._oldForm&&ti(this._oldForm,this)}_checkFormPresent(){}}return rt.\u0275fac=function(Ue){return new(Ue||rt)(t.Y36(T,10),t.Y36(F,10),t.Y36(nt,8))},rt.\u0275dir=t.lG2({type:rt,selectors:[["","formGroup",""]],hostBindings:function(Ue,Yt){1&Ue&&t.NdJ("submit",function(Un){return Yt.onSubmit(Un)})("reset",function(){return Yt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([sa]),t.qOj,t.TTD]}),rt})();const na={provide:ke,useExisting:(0,t.Gpc)(()=>fa)};let fa=(()=>{class rt extends Ot{constructor(Ue,Yt,Yr){super(),this._parent=Ue,this._setValidators(Yt),this._setAsyncValidators(Yr)}_checkParentType(){la(this._parent)}}return rt.\u0275fac=function(Ue){return new(Ue||rt)(t.Y36(ke,13),t.Y36(T,10),t.Y36(F,10))},rt.\u0275dir=t.lG2({type:rt,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[t._Bn([na]),t.qOj]}),rt})();const Co={provide:ke,useExisting:(0,t.Gpc)(()=>Fa)};let Fa=(()=>{class rt extends ke{constructor(Ue,Yt,Yr){super(),this._parent=Ue,this._setValidators(Yt),this._setAsyncValidators(Yr)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return pr(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){la(this._parent)}}return rt.\u0275fac=function(Ue){return new(Ue||rt)(t.Y36(ke,13),t.Y36(T,10),t.Y36(F,10))},rt.\u0275dir=t.lG2({type:rt,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[t._Bn([Co]),t.qOj]}),rt})();function la(rt){return!(rt instanceof fa||rt instanceof Ui||rt instanceof Fa)}const ho={provide:Ge,useExisting:(0,t.Gpc)(()=>$i)};let $i=(()=>{class rt extends Ge{set isDisabled(Ue){}constructor(Ue,Yt,Yr,Un,pa){super(),this._ngModelWarningConfig=pa,this._added=!1,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=Ue,this._setValidators(Yt),this._setAsyncValidators(Yr),this.valueAccessor=Ar(0,Un)}ngOnChanges(Ue){this._added||this._setUpControl(),Ni(Ue,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ue){this.viewModel=Ue,this.update.emit(Ue)}get path(){return pr(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return rt._ngModelWarningSentOnce=!1,rt.\u0275fac=function(Ue){return new(Ue||rt)(t.Y36(ke,13),t.Y36(T,10),t.Y36(F,10),t.Y36(m,10),t.Y36(Wi,8))},rt.\u0275dir=t.lG2({type:rt,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([ho]),t.qOj,t.TTD]}),rt})();function Mn(rt){return"number"==typeof rt?rt:parseFloat(rt)}let $n=(()=>{class rt{constructor(){this._validator=W}ngOnChanges(Ue){if(this.inputName in Ue){const Yt=this.normalizeInput(Ue[this.inputName].currentValue);this._enabled=this.enabled(Yt),this._validator=this._enabled?this.createValidator(Yt):W,this._onChange&&this._onChange()}}validate(Ue){return this._validator(Ue)}registerOnValidatorChange(Ue){this._onChange=Ue}enabled(Ue){return null!=Ue}}return rt.\u0275fac=function(Ue){return new(Ue||rt)},rt.\u0275dir=t.lG2({type:rt,features:[t.TTD]}),rt})();const ia={provide:T,useExisting:(0,t.Gpc)(()=>Ua),multi:!0};let Ua=(()=>{class rt extends $n{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Ue=>Mn(Ue),this.createValidator=Ue=>ye(Ue)}}return rt.\u0275fac=function(){let je;return function(Yt){return(je||(je=t.n5z(rt)))(Yt||rt)}}(),rt.\u0275dir=t.lG2({type:rt,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Ue,Yt){2&Ue&&t.uIk("max",Yt._enabled?Yt.max:null)},inputs:{max:"max"},features:[t._Bn([ia]),t.qOj]}),rt})();const qa={provide:T,useExisting:(0,t.Gpc)(()=>ro),multi:!0};let ro=(()=>{class rt extends $n{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Ue=>Mn(Ue),this.createValidator=Ue=>de(Ue)}}return rt.\u0275fac=function(){let je;return function(Yt){return(je||(je=t.n5z(rt)))(Yt||rt)}}(),rt.\u0275dir=t.lG2({type:rt,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Ue,Yt){2&Ue&&t.uIk("min",Yt._enabled?Yt.min:null)},inputs:{min:"min"},features:[t._Bn([qa]),t.qOj]}),rt})();const Na={provide:T,useExisting:(0,t.Gpc)(()=>Ka),multi:!0},ga={provide:T,useExisting:(0,t.Gpc)(()=>Mi),multi:!0};let Ka=(()=>{class rt extends $n{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.D6c,this.createValidator=Ue=>Ee}enabled(Ue){return Ue}}return rt.\u0275fac=function(){let je;return function(Yt){return(je||(je=t.n5z(rt)))(Yt||rt)}}(),rt.\u0275dir=t.lG2({type:rt,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ue,Yt){2&Ue&&t.uIk("required",Yt._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([Na]),t.qOj]}),rt})(),Mi=(()=>{class rt extends Ka{constructor(){super(...arguments),this.createValidator=Ue=>Le}}return rt.\u0275fac=function(){let je;return function(Yt){return(je||(je=t.n5z(rt)))(Yt||rt)}}(),rt.\u0275dir=t.lG2({type:rt,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Ue,Yt){2&Ue&&t.uIk("required",Yt._enabled?"":null)},features:[t._Bn([ga]),t.qOj]}),rt})();const Eo={provide:T,useExisting:(0,t.Gpc)(()=>To),multi:!0};let To=(()=>{class rt extends $n{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=Ue=>function yn(rt){return"number"==typeof rt?rt:parseInt(rt,10)}(Ue),this.createValidator=Ue=>ee(Ue)}}return rt.\u0275fac=function(){let je;return function(Yt){return(je||(je=t.n5z(rt)))(Yt||rt)}}(),rt.\u0275dir=t.lG2({type:rt,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Ue,Yt){2&Ue&&t.uIk("maxlength",Yt._enabled?Yt.maxlength:null)},inputs:{maxlength:"maxlength"},features:[t._Bn([Eo]),t.qOj]}),rt})(),xo=(()=>{class rt{}return rt.\u0275fac=function(Ue){return new(Ue||rt)},rt.\u0275mod=t.oAB({type:rt}),rt.\u0275inj=t.cJS({imports:[Ia]}),rt})();class so extends Pt{constructor(je,Ue,Yt){super(De(Ue),U(Yt,Ue)),this.controls=je,this._initObservables(),this._setUpdateStrategy(Ue),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(je){return this.controls[this._adjustIndex(je)]}push(je,Ue={}){this.controls.push(je),this._registerControl(je),this.updateValueAndValidity({emitEvent:Ue.emitEvent}),this._onCollectionChange()}insert(je,Ue,Yt={}){this.controls.splice(je,0,Ue),this._registerControl(Ue),this.updateValueAndValidity({emitEvent:Yt.emitEvent})}removeAt(je,Ue={}){let Yt=this._adjustIndex(je);Yt<0&&(Yt=0),this.controls[Yt]&&this.controls[Yt]._registerOnCollectionChange(()=>{}),this.controls.splice(Yt,1),this.updateValueAndValidity({emitEvent:Ue.emitEvent})}setControl(je,Ue,Yt={}){let Yr=this._adjustIndex(je);Yr<0&&(Yr=0),this.controls[Yr]&&this.controls[Yr]._registerOnCollectionChange(()=>{}),this.controls.splice(Yr,1),Ue&&(this.controls.splice(Yr,0,Ue),this._registerControl(Ue)),this.updateValueAndValidity({emitEvent:Yt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(je,Ue={}){Nt(this,!1,je),je.forEach((Yt,Yr)=>{Xe(this,!1,Yr),this.at(Yr).setValue(Yt,{onlySelf:!0,emitEvent:Ue.emitEvent})}),this.updateValueAndValidity(Ue)}patchValue(je,Ue={}){null!=je&&(je.forEach((Yt,Yr)=>{this.at(Yr)&&this.at(Yr).patchValue(Yt,{onlySelf:!0,emitEvent:Ue.emitEvent})}),this.updateValueAndValidity(Ue))}reset(je=[],Ue={}){this._forEachChild((Yt,Yr)=>{Yt.reset(je[Yr],{onlySelf:!0,emitEvent:Ue.emitEvent})}),this._updatePristine(Ue),this._updateTouched(Ue),this.updateValueAndValidity(Ue)}getRawValue(){return this.controls.map(je=>je.getRawValue())}clear(je={}){this.controls.length<1||(this._forEachChild(Ue=>Ue._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:je.emitEvent}))}_adjustIndex(je){return je<0?je+this.length:je}_syncPendingControls(){let je=this.controls.reduce((Ue,Yt)=>!!Yt._syncPendingControls()||Ue,!1);return je&&this.updateValueAndValidity({onlySelf:!0}),je}_forEachChild(je){this.controls.forEach((Ue,Yt)=>{je(Ue,Yt)})}_updateValue(){this.value=this.controls.filter(je=>je.enabled||this.disabled).map(je=>je.value)}_anyControls(je){return this.controls.some(Ue=>Ue.enabled&&je(Ue))}_setUpControls(){this._forEachChild(je=>this._registerControl(je))}_allControlsDisabled(){for(const je of this.controls)if(je.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(je){je.setParent(this),je._registerOnCollectionChange(this._onCollectionChange)}_find(je){return this.at(je)??null}}function Lo(rt){return!!rt&&(void 0!==rt.asyncValidators||void 0!==rt.validators||void 0!==rt.updateOn)}let Mo=(()=>{class rt{constructor(){this.useNonNullable=!1}get nonNullable(){const Ue=new rt;return Ue.useNonNullable=!0,Ue}group(Ue,Yt=null){const Yr=this._reduceControls(Ue);let Un={};return Lo(Yt)?Un=Yt:null!==Yt&&(Un.validators=Yt.validator,Un.asyncValidators=Yt.asyncValidator),new Vt(Yr,Un)}record(Ue,Yt=null){const Yr=this._reduceControls(Ue);return new Me(Yr,Yt)}control(Ue,Yt,Yr){let Un={};return this.useNonNullable?(Lo(Yt)?Un=Yt:(Un.validators=Yt,Un.asyncValidators=Yr),new ri(Ue,{...Un,nonNullable:!0})):new ri(Ue,Yt,Yr)}array(Ue,Yt,Yr){const Un=Ue.map(pa=>this._createControl(pa));return new so(Un,Yt,Yr)}_reduceControls(Ue){const Yt={};return Object.keys(Ue).forEach(Yr=>{Yt[Yr]=this._createControl(Ue[Yr])}),Yt}_createControl(Ue){return Ue instanceof ri||Ue instanceof Pt?Ue:Array.isArray(Ue)?this.control(Ue[0],Ue.length>1?Ue[1]:null,Ue.length>2?Ue[2]:null):this.control(Ue)}}return rt.\u0275fac=function(Ue){return new(Ue||rt)},rt.\u0275prov=t.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"}),rt})(),Bo=(()=>{class rt extends Mo{group(Ue,Yt=null){return super.group(Ue,Yt)}control(Ue,Yt,Yr){return super.control(Ue,Yt,Yr)}array(Ue,Yt,Yr){return super.array(Ue,Yt,Yr)}}return rt.\u0275fac=function(){let je;return function(Yt){return(je||(je=t.n5z(rt)))(Yt||rt)}}(),rt.\u0275prov=t.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"}),rt})(),Qn=(()=>{class rt{static withConfig(Ue){return{ngModule:rt,providers:[{provide:nt,useValue:Ue.callSetDisabledState??Ht}]}}}return rt.\u0275fac=function(Ue){return new(Ue||rt)},rt.\u0275mod=t.oAB({type:rt}),rt.\u0275inj=t.cJS({imports:[xo]}),rt})(),vo=(()=>{class rt{static withConfig(Ue){return{ngModule:rt,providers:[{provide:Wi,useValue:Ue.warnOnNgModelWithFormControl??"always"},{provide:nt,useValue:Ue.callSetDisabledState??Ht}]}}}return rt.\u0275fac=function(Ue){return new(Ue||rt)},rt.\u0275mod=t.oAB({type:rt}),rt.\u0275inj=t.cJS({imports:[xo]}),rt})()},69621:(St,be,s)=>{"use strict";s.d(be,{A9:()=>I,Yi:()=>D,vV:()=>M});var t=s(70232),e=s(45903),d=s(71106),l=s(73991),r=s(15645),c=s(52051);const E=["button"],m=["*"],v=new l.OlP("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),C=new l.OlP("MatButtonToggleGroup"),n={provide:r.JU,useExisting:(0,l.Gpc)(()=>I),multi:!0};let i=0;class P{constructor(F,le){this.source=F,this.value=le}}let I=(()=>{class T{get name(){return this._name}set name(le){this._name=le,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(le){this._vertical=(0,e.Ig)(le)}get value(){const le=this._selectionModel?this._selectionModel.selected:[];return this.multiple?le.map(V=>V.value):le[0]?le[0].value:void 0}set value(le){this._setSelectionByValue(le),this.valueChange.emit(this.value)}get selected(){const le=this._selectionModel?this._selectionModel.selected:[];return this.multiple?le:le[0]||null}get multiple(){return this._multiple}set multiple(le){this._multiple=(0,e.Ig)(le),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(le){this._disabled=(0,e.Ig)(le),this._markButtonsForCheck()}constructor(le,V){this._changeDetector=le,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+i++,this.valueChange=new l.vpe,this.change=new l.vpe,this.appearance=V&&V.appearance?V.appearance:"standard"}ngOnInit(){this._selectionModel=new d.Ov(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(le=>le.checked))}writeValue(le){this.value=le,this._changeDetector.markForCheck()}registerOnChange(le){this._controlValueAccessorChangeFn=le}registerOnTouched(le){this._onTouched=le}setDisabledState(le){this.disabled=le}_emitChangeEvent(le){const V=new P(le,this.value);this._controlValueAccessorChangeFn(V.value),this.change.emit(V)}_syncButtonToggle(le,V,de=!1,ye=!1){!this.multiple&&this.selected&&!le.checked&&(this.selected.checked=!1),this._selectionModel?V?this._selectionModel.select(le):this._selectionModel.deselect(le):ye=!0,ye?Promise.resolve().then(()=>this._updateModelValue(le,de)):this._updateModelValue(le,de)}_isSelected(le){return this._selectionModel&&this._selectionModel.isSelected(le)}_isPrechecked(le){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(V=>null!=le.value&&V===le.value):le.value===this._rawValue)}_setSelectionByValue(le){this._rawValue=le,this._buttonToggles&&(this.multiple&&le?(Array.isArray(le),this._clearSelection(),le.forEach(V=>this._selectValue(V))):(this._clearSelection(),this._selectValue(le)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(le=>le.checked=!1)}_selectValue(le){const V=this._buttonToggles.find(de=>null!=de.value&&de.value===le);V&&(V.checked=!0,this._selectionModel.select(V))}_updateModelValue(le,V){V&&this._emitChangeEvent(le),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(le=>le._markForCheck())}}return T.\u0275fac=function(le){return new(le||T)(l.Y36(l.sBO),l.Y36(v,8))},T.\u0275dir=l.lG2({type:T,selectors:[["mat-button-toggle-group"]],contentQueries:function(le,V,de){if(1&le&&l.Suo(de,D,5),2&le){let ye;l.iGM(ye=l.CRH())&&(V._buttonToggles=ye)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(le,V){2&le&&(l.uIk("aria-disabled",V.disabled),l.ekj("mat-button-toggle-vertical",V.vertical)("mat-button-toggle-group-appearance-standard","standard"===V.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[l._Bn([n,{provide:C,useExisting:T}])]}),T})();const q=(0,c.Kr)(class{});let D=(()=>{class T extends q{get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(le){this._appearance=le}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(le){const V=(0,e.Ig)(le);V!==this._checked&&(this._checked=V,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(le){this._disabled=(0,e.Ig)(le)}constructor(le,V,de,ye,Ee,Le){super(),this._changeDetectorRef=V,this._elementRef=de,this._focusMonitor=ye,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new l.vpe;const ge=Number(Ee);this.tabIndex=ge||0===ge?ge:null,this.buttonToggleGroup=le,this.appearance=Le&&Le.appearance?Le.appearance:"standard"}ngOnInit(){const le=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+i++,le&&(le._isPrechecked(this)?this.checked=!0:le._isSelected(this)!==this._checked&&le._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const le=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),le&&le._isSelected(this)&&le._syncButtonToggle(this,!1,!1,!0)}focus(le){this._buttonElement.nativeElement.focus(le)}_onButtonClick(){const le=!!this._isSingleSelector()||!this._checked;le!==this._checked&&(this._checked=le,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new P(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return T.\u0275fac=function(le){return new(le||T)(l.Y36(C,8),l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(t.tE),l.$8M("tabindex"),l.Y36(v,8))},T.\u0275cmp=l.Xpm({type:T,selectors:[["mat-button-toggle"]],viewQuery:function(le,V){if(1&le&&l.Gf(E,5),2&le){let de;l.iGM(de=l.CRH())&&(V._buttonElement=de.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(le,V){1&le&&l.NdJ("focus",function(){return V.focus()}),2&le&&(l.uIk("aria-label",null)("aria-labelledby",null)("id",V.id)("name",null),l.ekj("mat-button-toggle-standalone",!V.buttonToggleGroup)("mat-button-toggle-checked",V.checked)("mat-button-toggle-disabled",V.disabled)("mat-button-toggle-appearance-standard","standard"===V.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[l.qOj],ngContentSelectors:m,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(le,V){if(1&le&&(l.F$t(),l.TgZ(0,"button",0,1),l.NdJ("click",function(){return V._onButtonClick()}),l.TgZ(2,"span",2),l.Hsn(3),l.qZA()(),l._UZ(4,"span",3)(5,"span",4)),2&le){const de=l.MAs(1);l.Q6J("id",V.buttonId)("disabled",V.disabled||null),l.uIk("tabindex",V.disabled?-1:V.tabIndex)("aria-pressed",V.checked)("name",V._getButtonName())("aria-label",V.ariaLabel)("aria-labelledby",V.ariaLabelledby),l.xp6(5),l.Q6J("matRippleTrigger",de)("matRippleDisabled",V.disableRipple||V.disabled)}},dependencies:[c.wG],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),T})(),M=(()=>{class T{}return T.\u0275fac=function(le){return new(le||T)},T.\u0275mod=l.oAB({type:T}),T.\u0275inj=l.cJS({imports:[c.BQ,c.si,c.BQ]}),T})()},45005:(St,be,s)=>{"use strict";s.d(be,{RK:()=>Z,lW:()=>Ee,ot:()=>w});var t=s(71329),e=s(73991),d=s(70232),l=s(52051);const r=["mat-button",""],c=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],E=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],P=["mat-icon-button",""],I=["*"],T=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],F=(0,l.pj)((0,l.Id)((0,l.Kr)(class{constructor(k){this._elementRef=k}})));let le=(()=>{class k extends F{constructor(z,j,Ne,tt){super(z),this._platform=j,this._ngZone=Ne,this._animationMode=tt,this._focusMonitor=(0,e.f3M)(d.tE),this._isFab=!1;const We=z.nativeElement.classList;for(const ze of T)this._hasHostAttributes(ze.selector)&&ze.mdcClasses.forEach(we=>{We.add(we)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(z="program",j){z?this._focusMonitor.focusVia(this._elementRef.nativeElement,z,j):this._elementRef.nativeElement.focus(j)}_hasHostAttributes(...z){return z.some(j=>this._elementRef.nativeElement.hasAttribute(j))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return k.\u0275fac=function(z){e.$Z()},k.\u0275dir=e.lG2({type:k,viewQuery:function(z,j){if(1&z&&e.Gf(l.wG,5),2&z){let Ne;e.iGM(Ne=e.CRH())&&(j.ripple=Ne.first)}},features:[e.qOj]}),k})(),Ee=(()=>{class k extends le{constructor(z,j,Ne,tt){super(z,j,Ne,tt)}}return k.\u0275fac=function(z){return new(z||k)(e.Y36(e.SBq),e.Y36(t.t4),e.Y36(e.R0b),e.Y36(e.QbO,8))},k.\u0275cmp=e.Xpm({type:k,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(z,j){2&z&&(e.uIk("disabled",j.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===j._animationMode)("mat-unthemed",!j.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:r,ngContentSelectors:E,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(z,j){1&z&&(e.F$t(c),e._UZ(0,"span",0),e.Hsn(1),e.TgZ(2,"span",1),e.Hsn(3,1),e.qZA(),e.Hsn(4,2),e._UZ(5,"span",2)(6,"span",3)(7,"span",4)),2&z&&(e.ekj("mdc-button__ripple",!j._isFab)("mdc-fab__ripple",j._isFab),e.xp6(6),e.Q6J("matRippleDisabled",j._isRippleDisabled())("matRippleTrigger",j._elementRef.nativeElement))},dependencies:[l.wG],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n      100% + 4px\n    );width:calc(\n      100% + 4px\n    );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),k})(),Z=(()=>{class k extends le{constructor(z,j,Ne,tt){super(z,j,Ne,tt)}}return k.\u0275fac=function(z){return new(z||k)(e.Y36(e.SBq),e.Y36(t.t4),e.Y36(e.R0b),e.Y36(e.QbO,8))},k.\u0275cmp=e.Xpm({type:k,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(z,j){2&z&&(e.uIk("disabled",j.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===j._animationMode)("mat-unthemed",!j.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:P,ngContentSelectors:I,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(z,j){1&z&&(e.F$t(),e._UZ(0,"span",0),e.Hsn(1),e._UZ(2,"span",1)(3,"span",2)(4,"span",3)),2&z&&(e.xp6(3),e.Q6J("matRippleDisabled",j._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",j._elementRef.nativeElement))},dependencies:[l.wG],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),k})(),w=(()=>{class k{}return k.\u0275fac=function(z){return new(z||k)},k.\u0275mod=e.oAB({type:k}),k.\u0275inj=e.cJS({imports:[l.BQ,l.si,l.BQ]}),k})()},52051:(St,be,s)=>{"use strict";s.d(be,{yN:()=>V,mZ:()=>de,_A:()=>k,rD:()=>Ye,sG:()=>x,Ad:()=>Te,K7:()=>yt,HF:()=>pt,Y2:()=>qe,BQ:()=>Le,X2:()=>te,uc:()=>Ge,XK:()=>ze,rN:()=>ar,nP:()=>ot,us:()=>ct,wG:()=>$e,si:()=>et,IR:()=>re,MP:()=>vt,CB:()=>br,jH:()=>lt,pj:()=>W,Kr:()=>L,Id:()=>se,FD:()=>_e,dB:()=>Z,sb:()=>he,E0:()=>Se});var t=s(73991),e=s(70232),d=s(88793),r=s(17774),c=s(71329),E=s(45903),m=s(44070),v=s(68264),C=s(41743),n=s(20849);const I=["text"];let V=(()=>{class G{}return G.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",G.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",G.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",G.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",G})(),de=(()=>{class G{}return G.COMPLEX="375ms",G.ENTERING="225ms",G.EXITING="195ms",G})();const Ee=new t.OlP("mat-sanity-checks",{providedIn:"root",factory:function ye(){return!0}});let Le=(()=>{class G{constructor(ne,Re,Xe){this._sanityChecks=Re,this._document=Xe,this._hasDoneGlobalChecks=!1,ne._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(ne){return!(0,c.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[ne])}}return G.\u0275fac=function(ne){return new(ne||G)(t.LFG(e.qm),t.LFG(Ee,8),t.LFG(r.K0))},G.\u0275mod=t.oAB({type:G}),G.\u0275inj=t.cJS({imports:[d.vT,d.vT]}),G})();function se(G){return class extends G{get disabled(){return this._disabled}set disabled(U){this._disabled=(0,E.Ig)(U)}constructor(...U){super(...U),this._disabled=!1}}}function W(G,U){return class extends G{get color(){return this._color}set color(ne){const Re=ne||this.defaultColor;Re!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Re&&this._elementRef.nativeElement.classList.add(`mat-${Re}`),this._color=Re)}constructor(...ne){super(...ne),this.defaultColor=U,this.color=U}}}function L(G){return class extends G{get disableRipple(){return this._disableRipple}set disableRipple(U){this._disableRipple=(0,E.Ig)(U)}constructor(...U){super(...U),this._disableRipple=!1}}}function he(G,U=0){return class extends G{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ne){this._tabIndex=null!=ne?(0,E.su)(ne):this.defaultTabIndex}constructor(...ne){super(...ne),this._tabIndex=U,this.defaultTabIndex=U}}}function _e(G){return class extends G{updateErrorState(){const U=this.errorState,Nt=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Nt!==U&&(this.errorState=Nt,this.stateChanges.next())}constructor(...U){super(...U),this.errorState=!1}}}function Z(G){return class extends G{constructor(...U){super(...U),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new m.y(ne=>{this._isInitialized?this._notifySubscriber(ne):this._pendingSubscribers.push(ne)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(U){U.next(),U.complete()}}}const Te=new t.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function w(){return(0,t.f3M)(t.soG)}});class k{constructor(){this._localeChanges=new v.x,this.localeChanges=this._localeChanges}getValidDateOrNull(U){return this.isDateInstance(U)&&this.isValid(U)?U:null}deserialize(U){return null==U||this.isDateInstance(U)&&this.isValid(U)?U:this.invalid()}setLocale(U){this.locale=U,this._localeChanges.next()}compareDate(U,ne){return this.getYear(U)-this.getYear(ne)||this.getMonth(U)-this.getMonth(ne)||this.getDate(U)-this.getDate(ne)}sameDate(U,ne){if(U&&ne){let Re=this.isValid(U),Xe=this.isValid(ne);return Re&&Xe?!this.compareDate(U,ne):Re==Xe}return U==ne}clampDate(U,ne,Re){return ne&&this.compareDate(U,ne)<0?ne:Re&&this.compareDate(U,Re)>0?Re:U}}const x=new t.OlP("mat-date-formats"),z=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function j(G,U){const ne=Array(G);for(let Re=0;Re<G;Re++)ne[Re]=U(Re);return ne}let Ne=(()=>{class G extends k{constructor(ne,Re){super(),this.useUtcForDisplay=!1,super.setLocale(ne)}getYear(ne){return ne.getFullYear()}getMonth(ne){return ne.getMonth()}getDate(ne){return ne.getDate()}getDayOfWeek(ne){return ne.getDay()}getMonthNames(ne){const Re=new Intl.DateTimeFormat(this.locale,{month:ne,timeZone:"utc"});return j(12,Xe=>this._format(Re,new Date(2017,Xe,1)))}getDateNames(){const ne=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return j(31,Re=>this._format(ne,new Date(2017,0,Re+1)))}getDayOfWeekNames(ne){const Re=new Intl.DateTimeFormat(this.locale,{weekday:ne,timeZone:"utc"});return j(7,Xe=>this._format(Re,new Date(2017,0,Xe+1)))}getYearName(ne){const Re=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Re,ne)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(ne){return this.getDate(this._createDateWithOverflow(this.getYear(ne),this.getMonth(ne)+1,0))}clone(ne){return new Date(ne.getTime())}createDate(ne,Re,Xe){let Nt=this._createDateWithOverflow(ne,Re,Xe);return Nt.getMonth(),Nt}today(){return new Date}parse(ne,Re){return"number"==typeof ne?new Date(ne):ne?new Date(Date.parse(ne)):null}format(ne,Re){if(!this.isValid(ne))throw Error("NativeDateAdapter: Cannot format invalid date.");const Xe=new Intl.DateTimeFormat(this.locale,{...Re,timeZone:"utc"});return this._format(Xe,ne)}addCalendarYears(ne,Re){return this.addCalendarMonths(ne,12*Re)}addCalendarMonths(ne,Re){let Xe=this._createDateWithOverflow(this.getYear(ne),this.getMonth(ne)+Re,this.getDate(ne));return this.getMonth(Xe)!=((this.getMonth(ne)+Re)%12+12)%12&&(Xe=this._createDateWithOverflow(this.getYear(Xe),this.getMonth(Xe),0)),Xe}addCalendarDays(ne,Re){return this._createDateWithOverflow(this.getYear(ne),this.getMonth(ne),this.getDate(ne)+Re)}toIso8601(ne){return[ne.getUTCFullYear(),this._2digit(ne.getUTCMonth()+1),this._2digit(ne.getUTCDate())].join("-")}deserialize(ne){if("string"==typeof ne){if(!ne)return null;if(z.test(ne)){let Re=new Date(ne);if(this.isValid(Re))return Re}}return super.deserialize(ne)}isDateInstance(ne){return ne instanceof Date}isValid(ne){return!isNaN(ne.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(ne,Re,Xe){const Nt=new Date;return Nt.setFullYear(ne,Re,Xe),Nt.setHours(0,0,0,0),Nt}_2digit(ne){return("00"+ne).slice(-2)}_format(ne,Re){const Xe=new Date;return Xe.setUTCFullYear(Re.getFullYear(),Re.getMonth(),Re.getDate()),Xe.setUTCHours(Re.getHours(),Re.getMinutes(),Re.getSeconds(),Re.getMilliseconds()),ne.format(Xe)}}return G.\u0275fac=function(ne){return new(ne||G)(t.LFG(Te,8),t.LFG(c.t4))},G.\u0275prov=t.Yz7({token:G,factory:G.\u0275fac}),G})();const tt={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let We=(()=>{class G{}return G.\u0275fac=function(ne){return new(ne||G)},G.\u0275mod=t.oAB({type:G}),G.\u0275inj=t.cJS({providers:[{provide:k,useClass:Ne}]}),G})(),ze=(()=>{class G{}return G.\u0275fac=function(ne){return new(ne||G)},G.\u0275mod=t.oAB({type:G}),G.\u0275inj=t.cJS({providers:[{provide:x,useValue:tt}],imports:[We]}),G})(),Ye=(()=>{class G{isErrorState(ne,Re){return!!(ne&&ne.invalid&&(ne.touched||Re&&Re.submitted))}}return G.\u0275fac=function(ne){return new(ne||G)},G.\u0275prov=t.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"}),G})(),te=(()=>{class G{}return G.\u0275fac=function(ne){return new(ne||G)},G.\u0275dir=t.lG2({type:G,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),G})();function Se(G,U,ne="mat"){G.changes.pipe((0,C.O)(G)).subscribe(({length:Re})=>{ke(U,`${ne}-2-line`,!1),ke(U,`${ne}-3-line`,!1),ke(U,`${ne}-multi-line`,!1),2===Re||3===Re?ke(U,`${ne}-${Re}-line`,!0):Re>3&&ke(U,`${ne}-multi-line`,!0)})}function ke(G,U,ne){G.nativeElement.classList.toggle(U,ne)}let Ge=(()=>{class G{}return G.\u0275fac=function(ne){return new(ne||G)},G.\u0275mod=t.oAB({type:G}),G.\u0275inj=t.cJS({imports:[Le,Le]}),G})();class Tt{constructor(U,ne,Re,Xe=!1){this._renderer=U,this.element=ne,this.config=Re,this._animationForciblyDisabledThroughCss=Xe,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Et=(0,c.i$)({passive:!0,capture:!0});class H{constructor(){this._events=new Map,this._delegateEventHandler=U=>{const ne=(0,c.sA)(U);ne&&this._events.get(U.type)?.forEach((Re,Xe)=>{(Xe===ne||Xe.contains(ne))&&Re.forEach(Nt=>Nt.handleEvent(U))})}}addHandler(U,ne,Re,Xe){const Nt=this._events.get(ne);if(Nt){const Pt=Nt.get(Re);Pt?Pt.add(Xe):Nt.set(Re,new Set([Xe]))}else this._events.set(ne,new Map([[Re,new Set([Xe])]])),U.runOutsideAngular(()=>{document.addEventListener(ne,this._delegateEventHandler,Et)})}removeHandler(U,ne,Re){const Xe=this._events.get(U);if(!Xe)return;const Nt=Xe.get(ne);Nt&&(Nt.delete(Re),0===Nt.size&&Xe.delete(ne),0===Xe.size&&(this._events.delete(U),document.removeEventListener(U,this._delegateEventHandler,Et)))}}const Y={enterDuration:225,exitDuration:150},K=(0,c.i$)({passive:!0,capture:!0}),Q=["mousedown","touchstart"],B=["mouseup","mouseleave","touchend","touchcancel"];class re{constructor(U,ne,Re,Xe){this._target=U,this._ngZone=ne,this._platform=Xe,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Xe.isBrowser&&(this._containerElement=(0,E.fI)(Re))}fadeInRipple(U,ne,Re={}){const Xe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Nt={...Y,...Re.animation};Re.centered&&(U=Xe.left+Xe.width/2,ne=Xe.top+Xe.height/2);const Pt=Re.radius||function fe(G,U,ne){const Re=Math.max(Math.abs(G-ne.left),Math.abs(G-ne.right)),Xe=Math.max(Math.abs(U-ne.top),Math.abs(U-ne.bottom));return Math.sqrt(Re*Re+Xe*Xe)}(U,ne,Xe),Vt=U-Xe.left,Jt=ne-Xe.top,kt=Nt.enterDuration,Me=document.createElement("div");Me.classList.add("mat-ripple-element"),Me.style.left=Vt-Pt+"px",Me.style.top=Jt-Pt+"px",Me.style.height=2*Pt+"px",Me.style.width=2*Pt+"px",null!=Re.color&&(Me.style.backgroundColor=Re.color),Me.style.transitionDuration=`${kt}ms`,this._containerElement.appendChild(Me);const ut=window.getComputedStyle(Me),Ht=ut.transitionDuration,pr="none"===ut.transitionProperty||"0s"===Ht||"0s, 0s"===Ht||0===Xe.width&&0===Xe.height,Lr=new Tt(this,Me,Re,pr);Me.style.transform="scale3d(1, 1, 1)",Lr.state=0,Re.persistent||(this._mostRecentTransientRipple=Lr);let Kr=null;return!pr&&(kt||Nt.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Cn=()=>this._finishRippleTransition(Lr),Wn=()=>this._destroyRipple(Lr);Me.addEventListener("transitionend",Cn),Me.addEventListener("transitioncancel",Wn),Kr={onTransitionEnd:Cn,onTransitionCancel:Wn}}),this._activeRipples.set(Lr,Kr),(pr||!kt)&&this._finishRippleTransition(Lr),Lr}fadeOutRipple(U){if(2===U.state||3===U.state)return;const ne=U.element,Re={...Y,...U.config.animation};ne.style.transitionDuration=`${Re.exitDuration}ms`,ne.style.opacity="0",U.state=2,(U._animationForciblyDisabledThroughCss||!Re.exitDuration)&&this._finishRippleTransition(U)}fadeOutAll(){this._getActiveRipples().forEach(U=>U.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(U=>{U.config.persistent||U.fadeOut()})}setupTriggerEvents(U){const ne=(0,E.fI)(U);!this._platform.isBrowser||!ne||ne===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=ne,Q.forEach(Re=>{re._eventManager.addHandler(this._ngZone,Re,ne,this)}))}handleEvent(U){"mousedown"===U.type?this._onMousedown(U):"touchstart"===U.type?this._onTouchStart(U):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{B.forEach(ne=>{this._triggerElement.addEventListener(ne,this,K)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(U){0===U.state?this._startFadeOutTransition(U):2===U.state&&this._destroyRipple(U)}_startFadeOutTransition(U){const ne=U===this._mostRecentTransientRipple,{persistent:Re}=U.config;U.state=1,!Re&&(!ne||!this._isPointerDown)&&U.fadeOut()}_destroyRipple(U){const ne=this._activeRipples.get(U)??null;this._activeRipples.delete(U),this._activeRipples.size||(this._containerRect=null),U===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),U.state=3,null!==ne&&(U.element.removeEventListener("transitionend",ne.onTransitionEnd),U.element.removeEventListener("transitioncancel",ne.onTransitionCancel)),U.element.remove()}_onMousedown(U){const ne=(0,e.X6)(U),Re=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!ne&&!Re&&(this._isPointerDown=!0,this.fadeInRipple(U.clientX,U.clientY,this._target.rippleConfig))}_onTouchStart(U){if(!this._target.rippleDisabled&&!(0,e.yG)(U)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const ne=U.changedTouches;for(let Re=0;Re<ne.length;Re++)this.fadeInRipple(ne[Re].clientX,ne[Re].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(U=>{!U.config.persistent&&(1===U.state||U.config.terminateOnPointerUp&&0===U.state)&&U.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const U=this._triggerElement;U&&(Q.forEach(ne=>re._eventManager.removeHandler(ne,U,this)),this._pointerUpEventsRegistered&&B.forEach(ne=>U.removeEventListener(ne,this,K)))}}re._eventManager=new H;const qe=new t.OlP("mat-ripple-global-options");let $e=(()=>{class G{get disabled(){return this._disabled}set disabled(ne){ne&&this.fadeOutAllNonPersistent(),this._disabled=ne,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(ne){this._trigger=ne,this._setupTriggerEventsIfEnabled()}constructor(ne,Re,Xe,Nt,Pt){this._elementRef=ne,this._animationMode=Pt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Nt||{},this._rippleRenderer=new re(this,Re,ne,Xe)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(ne,Re=0,Xe){return"number"==typeof ne?this._rippleRenderer.fadeInRipple(ne,Re,{...this.rippleConfig,...Xe}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...ne})}}return G.\u0275fac=function(ne){return new(ne||G)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(c.t4),t.Y36(qe,8),t.Y36(t.QbO,8))},G.\u0275dir=t.lG2({type:G,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(ne,Re){2&ne&&t.ekj("mat-ripple-unbounded",Re.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),G})(),et=(()=>{class G{}return G.\u0275fac=function(ne){return new(ne||G)},G.\u0275mod=t.oAB({type:G}),G.\u0275inj=t.cJS({imports:[Le,Le]}),G})(),ot=(()=>{class G{constructor(ne){this._animationMode=ne,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return G.\u0275fac=function(ne){return new(ne||G)(t.Y36(t.QbO,8))},G.\u0275cmp=t.Xpm({type:G,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(ne,Re){2&ne&&t.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Re.state)("mat-pseudo-checkbox-checked","checked"===Re.state)("mat-pseudo-checkbox-disabled",Re.disabled)("mat-pseudo-checkbox-minimal","minimal"===Re.appearance)("mat-pseudo-checkbox-full","full"===Re.appearance)("_mat-animation-noopable","NoopAnimations"===Re._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(ne,Re){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),G})(),ct=(()=>{class G{}return G.\u0275fac=function(ne){return new(ne||G)},G.\u0275mod=t.oAB({type:G}),G.\u0275inj=t.cJS({imports:[Le]}),G})();const pt=new t.OlP("MAT_OPTION_PARENT_COMPONENT"),yt=new t.OlP("MatOptgroup");let bt=0;class ar{constructor(U,ne=!1){this.source=U,this.isUserInput=ne}}let vt=(()=>{class G{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(ne){this._disabled=(0,E.Ig)(ne)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(ne,Re,Xe,Nt){this._element=ne,this._changeDetectorRef=Re,this._parent=Xe,this.group=Nt,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+bt++,this.onSelectionChange=new t.vpe,this._stateChanges=new v.x}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(ne,Re){const Xe=this._getHostElement();"function"==typeof Xe.focus&&Xe.focus(Re)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(ne){(ne.keyCode===n.K5||ne.keyCode===n.L_)&&!(0,n.Vb)(ne)&&(this._selectViaInteraction(),ne.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const ne=this.viewValue;ne!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=ne)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(ne=!1){this.onSelectionChange.emit(new ar(this,ne))}}return G.\u0275fac=function(ne){t.$Z()},G.\u0275dir=t.lG2({type:G,viewQuery:function(ne,Re){if(1&ne&&t.Gf(I,7),2&ne){let Xe;t.iGM(Xe=t.CRH())&&(Re._text=Xe.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),G})();function br(G,U,ne){if(ne.length){let Re=U.toArray(),Xe=ne.toArray(),Nt=0;for(let Pt=0;Pt<G+1;Pt++)Re[Pt].group&&Re[Pt].group===Xe[Nt]&&Nt++;return Nt}return 0}function lt(G,U,ne,Re){return G<ne?G:G+U>ne+Re?Math.max(0,G-Re+U):ne}},88961:(St,be,s)=>{"use strict";s.d(be,{By:()=>rn,DK:()=>Dn,FA:()=>ci,M5:()=>Ni,Mq:()=>Jt,_g:()=>Yn,dp:()=>Ti,hl:()=>pr,nW:()=>Kr,wx:()=>Gn,zY:()=>tn});var t=s(70232),e=s(58153),d=s(27444),l=s(17774),r=s(73991),c=s(45005),E=s(9620),m=s(52051),v=s(68264),C=s(22292),n=s(50805),i=s(95195),P=s(20849),I=s(88793),q=s(71329),D=s(32653),M=s(41743),T=s(9754),F=s(45903),le=s(96191),V=s(15645),de=s(96229),ye=s(41084);const Ee=["mat-calendar-body",""];function Le(Kt,Ar){if(1&Kt&&(r.TgZ(0,"tr",3)(1,"td",4),r._uU(2),r.qZA()()),2&Kt){const ie=r.oxw();r.xp6(1),r.Udp("padding-top",ie._cellPadding)("padding-bottom",ie._cellPadding),r.uIk("colspan",ie.numCols),r.xp6(1),r.hij(" ",ie.label," ")}}function ge(Kt,Ar){if(1&Kt&&(r.TgZ(0,"td",4),r._uU(1),r.qZA()),2&Kt){const ie=r.oxw(2);r.Udp("padding-top",ie._cellPadding)("padding-bottom",ie._cellPadding),r.uIk("colspan",ie._firstRowOffset),r.xp6(1),r.hij(" ",ie._firstRowOffset>=ie.labelMinRequiredCells?ie.label:""," ")}}function ue(Kt,Ar){if(1&Kt){const ie=r.EpF();r.TgZ(0,"td",8)(1,"button",9),r.NdJ("click",function(Mt){const kr=r.CHM(ie).$implicit,mn=r.oxw(2);return r.KtG(mn._cellClicked(kr,Mt))})("focus",function(Mt){const kr=r.CHM(ie).$implicit,mn=r.oxw(2);return r.KtG(mn._emitActiveDateChange(kr,Mt))}),r.TgZ(2,"span",10),r._uU(3),r.qZA(),r._UZ(4,"span",11),r.qZA()()}if(2&Kt){const ie=Ar.$implicit,Ve=Ar.index,Mt=r.oxw().index,tr=r.oxw();r.Udp("width",tr._cellWidth)("padding-top",tr._cellPadding)("padding-bottom",tr._cellPadding),r.uIk("data-mat-row",Mt)("data-mat-col",Ve),r.xp6(1),r.ekj("mat-calendar-body-disabled",!ie.enabled)("mat-calendar-body-active",tr._isActiveCell(Mt,Ve))("mat-calendar-body-range-start",tr._isRangeStart(ie.compareValue))("mat-calendar-body-range-end",tr._isRangeEnd(ie.compareValue))("mat-calendar-body-in-range",tr._isInRange(ie.compareValue))("mat-calendar-body-comparison-bridge-start",tr._isComparisonBridgeStart(ie.compareValue,Mt,Ve))("mat-calendar-body-comparison-bridge-end",tr._isComparisonBridgeEnd(ie.compareValue,Mt,Ve))("mat-calendar-body-comparison-start",tr._isComparisonStart(ie.compareValue))("mat-calendar-body-comparison-end",tr._isComparisonEnd(ie.compareValue))("mat-calendar-body-in-comparison-range",tr._isInComparisonRange(ie.compareValue))("mat-calendar-body-preview-start",tr._isPreviewStart(ie.compareValue))("mat-calendar-body-preview-end",tr._isPreviewEnd(ie.compareValue))("mat-calendar-body-in-preview",tr._isInPreview(ie.compareValue)),r.Q6J("ngClass",ie.cssClasses)("tabindex",tr._isActiveCell(Mt,Ve)?0:-1),r.uIk("aria-label",ie.ariaLabel)("aria-disabled",!ie.enabled||null)("aria-pressed",tr._isSelected(ie.compareValue))("aria-current",tr.todayValue===ie.compareValue?"date":null)("aria-describedby",tr._getDescribedby(ie.compareValue)),r.xp6(1),r.ekj("mat-calendar-body-selected",tr._isSelected(ie.compareValue))("mat-calendar-body-comparison-identical",tr._isComparisonIdentical(ie.compareValue))("mat-calendar-body-today",tr.todayValue===ie.compareValue),r.xp6(1),r.hij(" ",ie.displayValue," ")}}function ee(Kt,Ar){if(1&Kt&&(r.TgZ(0,"tr",5),r.YNc(1,ge,2,6,"td",6),r.YNc(2,ue,5,48,"td",7),r.qZA()),2&Kt){const ie=Ar.$implicit,Ve=Ar.index,Mt=r.oxw();r.xp6(1),r.Q6J("ngIf",0===Ve&&Mt._firstRowOffset),r.xp6(1),r.Q6J("ngForOf",ie)}}function se(Kt,Ar){if(1&Kt&&(r.TgZ(0,"th",5)(1,"span",6),r._uU(2),r.qZA(),r.TgZ(3,"span",7),r._uU(4),r.qZA()()),2&Kt){const ie=Ar.$implicit;r.xp6(2),r.Oqu(ie.long),r.xp6(2),r.Oqu(ie.narrow)}}const W=["*"];function L(Kt,Ar){}function he(Kt,Ar){if(1&Kt){const ie=r.EpF();r.TgZ(0,"mat-month-view",5),r.NdJ("activeDateChange",function(Mt){r.CHM(ie);const tr=r.oxw();return r.KtG(tr.activeDate=Mt)})("_userSelection",function(Mt){r.CHM(ie);const tr=r.oxw();return r.KtG(tr._dateSelected(Mt))})("dragStarted",function(Mt){r.CHM(ie);const tr=r.oxw();return r.KtG(tr._dragStarted(Mt))})("dragEnded",function(Mt){r.CHM(ie);const tr=r.oxw();return r.KtG(tr._dragEnded(Mt))}),r.qZA()}if(2&Kt){const ie=r.oxw();r.Q6J("activeDate",ie.activeDate)("selected",ie.selected)("dateFilter",ie.dateFilter)("maxDate",ie.maxDate)("minDate",ie.minDate)("dateClass",ie.dateClass)("comparisonStart",ie.comparisonStart)("comparisonEnd",ie.comparisonEnd)("startDateAccessibleName",ie.startDateAccessibleName)("endDateAccessibleName",ie.endDateAccessibleName)("activeDrag",ie._activeDrag)}}function _e(Kt,Ar){if(1&Kt){const ie=r.EpF();r.TgZ(0,"mat-year-view",6),r.NdJ("activeDateChange",function(Mt){r.CHM(ie);const tr=r.oxw();return r.KtG(tr.activeDate=Mt)})("monthSelected",function(Mt){r.CHM(ie);const tr=r.oxw();return r.KtG(tr._monthSelectedInYearView(Mt))})("selectedChange",function(Mt){r.CHM(ie);const tr=r.oxw();return r.KtG(tr._goToDateInView(Mt,"month"))}),r.qZA()}if(2&Kt){const ie=r.oxw();r.Q6J("activeDate",ie.activeDate)("selected",ie.selected)("dateFilter",ie.dateFilter)("maxDate",ie.maxDate)("minDate",ie.minDate)("dateClass",ie.dateClass)}}function Z(Kt,Ar){if(1&Kt){const ie=r.EpF();r.TgZ(0,"mat-multi-year-view",7),r.NdJ("activeDateChange",function(Mt){r.CHM(ie);const tr=r.oxw();return r.KtG(tr.activeDate=Mt)})("yearSelected",function(Mt){r.CHM(ie);const tr=r.oxw();return r.KtG(tr._yearSelectedInMultiYearView(Mt))})("selectedChange",function(Mt){r.CHM(ie);const tr=r.oxw();return r.KtG(tr._goToDateInView(Mt,"year"))}),r.qZA()}if(2&Kt){const ie=r.oxw();r.Q6J("activeDate",ie.activeDate)("selected",ie.selected)("dateFilter",ie.dateFilter)("maxDate",ie.maxDate)("minDate",ie.minDate)("dateClass",ie.dateClass)}}function Te(Kt,Ar){}const w=["button"];function k(Kt,Ar){1&Kt&&(r.O4$(),r.TgZ(0,"svg",3),r._UZ(1,"path",4),r.qZA())}const x=[[["","matDatepickerToggleIcon",""]]],z=["[matDatepickerToggleIcon]"],j=[[["input","matStartDate",""]],[["input","matEndDate",""]]],Ne=["input[matStartDate]","input[matEndDate]"];function tt(Kt,Ar){1&Kt&&(r.TgZ(0,"div",0),r.Hsn(1),r.qZA())}let ze=(()=>{class Kt{constructor(){this.changes=new v.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(ie,Ve){return`${ie} \u2013 ${Ve}`}formatYearRangeLabel(ie,Ve){return`${ie} to ${Ve}`}}return Kt.\u0275fac=function(ie){return new(ie||Kt)},Kt.\u0275prov=r.Yz7({token:Kt,factory:Kt.\u0275fac,providedIn:"root"}),Kt})();class we{constructor(Ar,ie,Ve,Mt,tr={},kr=Ar,mn){this.value=Ar,this.displayValue=ie,this.ariaLabel=Ve,this.enabled=Mt,this.cssClasses=tr,this.compareValue=kr,this.rawValue=mn}}let Ye=1,te=(()=>{class Kt{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(ie,Ve){this._elementRef=ie,this._ngZone=Ve,this._platform=(0,r.f3M)(q.t4),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new r.vpe,this.previewChange=new r.vpe,this.activeDateChange=new r.vpe,this.dragStarted=new r.vpe,this.dragEnded=new r.vpe,this._didDragSinceMouseDown=!1,this._enterHandler=Mt=>{if(this._skipNextFocus&&"focus"===Mt.type)this._skipNextFocus=!1;else if(Mt.target&&this.isRange){const tr=this._getCellFromElement(Mt.target);tr&&this._ngZone.run(()=>this.previewChange.emit({value:tr.enabled?tr:null,event:Mt}))}},this._touchmoveHandler=Mt=>{if(!this.isRange)return;const tr=H(Mt),kr=tr?this._getCellFromElement(tr):null;tr!==Mt.target&&(this._didDragSinceMouseDown=!0),ke(Mt.target)&&Mt.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:kr?.enabled?kr:null,event:Mt}))},this._leaveHandler=Mt=>{null!==this.previewEnd&&this.isRange&&("blur"!==Mt.type&&(this._didDragSinceMouseDown=!0),Mt.target&&this._getCellFromElement(Mt.target)&&(!Mt.relatedTarget||!this._getCellFromElement(Mt.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Mt})))},this._mousedownHandler=Mt=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const tr=Mt.target&&this._getCellFromElement(Mt.target);!tr||!this._isInRange(tr.rawValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:tr.rawValue,event:Mt})})},this._mouseupHandler=Mt=>{if(!this.isRange)return;const tr=ke(Mt.target);tr?tr.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const kr=this._getCellFromElement(tr);this.dragEnded.emit({value:kr?.rawValue??null,event:Mt})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:Mt})})},this._touchendHandler=Mt=>{const tr=H(Mt);tr&&this._mouseupHandler({target:tr})},this._id="mat-calendar-body-"+Ye++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,Ve.runOutsideAngular(()=>{const Mt=ie.nativeElement;Mt.addEventListener("mouseenter",this._enterHandler,!0),Mt.addEventListener("touchmove",this._touchmoveHandler,!0),Mt.addEventListener("focus",this._enterHandler,!0),Mt.addEventListener("mouseleave",this._leaveHandler,!0),Mt.addEventListener("blur",this._leaveHandler,!0),Mt.addEventListener("mousedown",this._mousedownHandler),Mt.addEventListener("touchstart",this._mousedownHandler),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(ie,Ve){this._didDragSinceMouseDown||ie.enabled&&this.selectedValueChange.emit({value:ie.value,event:Ve})}_emitActiveDateChange(ie,Ve){ie.enabled&&this.activeDateChange.emit({value:ie.value,event:Ve})}_isSelected(ie){return this.startValue===ie||this.endValue===ie}ngOnChanges(ie){const Ve=ie.numCols,{rows:Mt,numCols:tr}=this;(ie.rows||Ve)&&(this._firstRowOffset=Mt&&Mt.length&&Mt[0].length?tr-Mt[0].length:0),(ie.cellAspectRatio||Ve||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/tr+"%"),(Ve||!this._cellWidth)&&(this._cellWidth=100/tr+"%")}ngOnDestroy(){const ie=this._elementRef.nativeElement;ie.removeEventListener("mouseenter",this._enterHandler,!0),ie.removeEventListener("touchmove",this._touchmoveHandler,!0),ie.removeEventListener("focus",this._enterHandler,!0),ie.removeEventListener("mouseleave",this._leaveHandler,!0),ie.removeEventListener("blur",this._leaveHandler,!0),ie.removeEventListener("mousedown",this._mousedownHandler),ie.removeEventListener("touchstart",this._mousedownHandler),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(ie,Ve){let Mt=ie*this.numCols+Ve;return ie&&(Mt-=this._firstRowOffset),Mt==this.activeCell}_focusActiveCell(ie=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(()=>{setTimeout(()=>{const Ve=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Ve&&(ie||(this._skipNextFocus=!0),Ve.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(ie){return Ge(ie,this.startValue,this.endValue)}_isRangeEnd(ie){return Tt(ie,this.startValue,this.endValue)}_isInRange(ie){return Et(ie,this.startValue,this.endValue,this.isRange)}_isComparisonStart(ie){return Ge(ie,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(ie,Ve,Mt){if(!this._isComparisonStart(ie)||this._isRangeStart(ie)||!this._isInRange(ie))return!1;let tr=this.rows[Ve][Mt-1];if(!tr){const kr=this.rows[Ve-1];tr=kr&&kr[kr.length-1]}return tr&&!this._isRangeEnd(tr.compareValue)}_isComparisonBridgeEnd(ie,Ve,Mt){if(!this._isComparisonEnd(ie)||this._isRangeEnd(ie)||!this._isInRange(ie))return!1;let tr=this.rows[Ve][Mt+1];if(!tr){const kr=this.rows[Ve+1];tr=kr&&kr[0]}return tr&&!this._isRangeStart(tr.compareValue)}_isComparisonEnd(ie){return Tt(ie,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(ie){return Et(ie,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(ie){return this.comparisonStart===this.comparisonEnd&&ie===this.comparisonStart}_isPreviewStart(ie){return Ge(ie,this.previewStart,this.previewEnd)}_isPreviewEnd(ie){return Tt(ie,this.previewStart,this.previewEnd)}_isInPreview(ie){return Et(ie,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(ie){return this.isRange?this.startValue===ie&&this.endValue===ie?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===ie?this._startDateLabelId:this.endValue===ie?this._endDateLabelId:null:null}_getCellFromElement(ie){const Ve=ke(ie);if(Ve){const Mt=Ve.getAttribute("data-mat-row"),tr=Ve.getAttribute("data-mat-col");if(Mt&&tr)return this.rows[parseInt(Mt)][parseInt(tr)]}return null}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.Y36(r.SBq),r.Y36(r.R0b))},Kt.\u0275cmp=r.Xpm({type:Kt,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[r.TTD],attrs:Ee,decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(ie,Ve){1&ie&&(r.YNc(0,Le,3,6,"tr",0),r.YNc(1,ee,3,2,"tr",1),r.TgZ(2,"label",2),r._uU(3),r.qZA(),r.TgZ(4,"label",2),r._uU(5),r.qZA()),2&ie&&(r.Q6J("ngIf",Ve._firstRowOffset<Ve.labelMinRequiredCells),r.xp6(1),r.Q6J("ngForOf",Ve.rows),r.xp6(1),r.Q6J("id",Ve._startDateLabelId),r.xp6(1),r.hij(" ",Ve.startDateAccessibleName,"\n"),r.xp6(1),r.Q6J("id",Ve._endDateLabelId),r.xp6(1),r.hij(" ",Ve.endDateAccessibleName,"\n"))},dependencies:[l.mk,l.sg,l.O5],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0}),Kt})();function Se(Kt){return"TD"===Kt?.nodeName}function ke(Kt){let Ar;return Se(Kt)?Ar=Kt:Se(Kt.parentNode)?Ar=Kt.parentNode:Se(Kt.parentNode?.parentNode)&&(Ar=Kt.parentNode.parentNode),null!=Ar?.getAttribute("data-mat-row")?Ar:null}function Ge(Kt,Ar,ie){return null!==ie&&Ar!==ie&&Kt<ie&&Kt===Ar}function Tt(Kt,Ar,ie){return null!==Ar&&Ar!==ie&&Kt>=Ar&&Kt===ie}function Et(Kt,Ar,ie,Ve){return Ve&&null!==Ar&&null!==ie&&Ar!==ie&&Kt>=Ar&&Kt<=ie}function H(Kt){const Ar=Kt.changedTouches[0];return document.elementFromPoint(Ar.clientX,Ar.clientY)}class Y{constructor(Ar,ie){this.start=Ar,this.end=ie}}let S=(()=>{class Kt{constructor(ie,Ve){this.selection=ie,this._adapter=Ve,this._selectionChanged=new v.x,this.selectionChanged=this._selectionChanged,this.selection=ie}updateSelection(ie,Ve){const Mt=this.selection;this.selection=ie,this._selectionChanged.next({selection:ie,source:Ve,oldValue:Mt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(ie){return this._adapter.isDateInstance(ie)&&this._adapter.isValid(ie)}}return Kt.\u0275fac=function(ie){r.$Z()},Kt.\u0275prov=r.Yz7({token:Kt,factory:Kt.\u0275fac}),Kt})(),K=(()=>{class Kt extends S{constructor(ie){super(null,ie)}add(ie){super.updateSelection(ie,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const ie=new Kt(this._adapter);return ie.updateSelection(this.selection,this),ie}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.LFG(m._A))},Kt.\u0275prov=r.Yz7({token:Kt,factory:Kt.\u0275fac}),Kt})(),Q=(()=>{class Kt extends S{constructor(ie){super(new Y(null,null),ie)}add(ie){let{start:Ve,end:Mt}=this.selection;null==Ve?Ve=ie:null==Mt?Mt=ie:(Ve=ie,Mt=null),super.updateSelection(new Y(Ve,Mt),this)}isValid(){const{start:ie,end:Ve}=this.selection;return null==ie&&null==Ve||(null!=ie&&null!=Ve?this._isValidDateInstance(ie)&&this._isValidDateInstance(Ve)&&this._adapter.compareDate(ie,Ve)<=0:(null==ie||this._isValidDateInstance(ie))&&(null==Ve||this._isValidDateInstance(Ve)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const ie=new Kt(this._adapter);return ie.updateSelection(this.selection,this),ie}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.LFG(m._A))},Kt.\u0275prov=r.Yz7({token:Kt,factory:Kt.\u0275fac}),Kt})();const re={provide:S,deps:[[new r.FiY,new r.tp0,S],m._A],useFactory:function B(Kt,Ar){return Kt||new K(Ar)}},qe={provide:S,deps:[[new r.FiY,new r.tp0,S],m._A],useFactory:function fe(Kt,Ar){return Kt||new Q(Ar)}},$e=new r.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let et=(()=>{class Kt{constructor(ie){this._dateAdapter=ie}selectionFinished(ie,Ve){let{start:Mt,end:tr}=Ve;return null==Mt?Mt=ie:null==tr&&ie&&this._dateAdapter.compareDate(ie,Mt)>=0?tr=ie:(Mt=ie,tr=null),new Y(Mt,tr)}createPreview(ie,Ve){let Mt=null,tr=null;return Ve.start&&!Ve.end&&ie&&(Mt=Ve.start,tr=ie),new Y(Mt,tr)}createDrag(ie,Ve,Mt){let tr=Ve.start,kr=Ve.end;if(!tr||!kr)return null;const mn=this._dateAdapter,un=0!==mn.compareDate(tr,kr),ri=mn.getYear(Mt)-mn.getYear(ie),Sr=mn.getMonth(Mt)-mn.getMonth(ie),Er=mn.getDate(Mt)-mn.getDate(ie);return un&&mn.sameDate(ie,Ve.start)?(tr=Mt,mn.compareDate(Mt,kr)>0&&(kr=mn.addCalendarYears(kr,ri),kr=mn.addCalendarMonths(kr,Sr),kr=mn.addCalendarDays(kr,Er))):un&&mn.sameDate(ie,Ve.end)?(kr=Mt,mn.compareDate(Mt,tr)<0&&(tr=mn.addCalendarYears(tr,ri),tr=mn.addCalendarMonths(tr,Sr),tr=mn.addCalendarDays(tr,Er))):(tr=mn.addCalendarYears(tr,ri),tr=mn.addCalendarMonths(tr,Sr),tr=mn.addCalendarDays(tr,Er),kr=mn.addCalendarYears(kr,ri),kr=mn.addCalendarMonths(kr,Sr),kr=mn.addCalendarDays(kr,Er)),new Y(tr,kr)}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.LFG(m._A))},Kt.\u0275prov=r.Yz7({token:Kt,factory:Kt.\u0275fac}),Kt})();const ct={provide:$e,deps:[[new r.FiY,new r.tp0,$e],m._A],useFactory:function ot(Kt,Ar){return Kt||new et(Ar)}};let $t=(()=>{class Kt{get activeDate(){return this._activeDate}set activeDate(ie){const Ve=this._activeDate,Mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Mt,this.minDate,this.maxDate),this._hasSameMonthAndYear(Ve,this._activeDate)||this._init()}get selected(){return this._selected}set selected(ie){this._selected=ie instanceof Y?ie:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(ie){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get maxDate(){return this._maxDate}set maxDate(ie){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}constructor(ie,Ve,Mt,tr,kr){this._changeDetectorRef=ie,this._dateFormats=Ve,this._dateAdapter=Mt,this._dir=tr,this._rangeStrategy=kr,this._rerenderSubscription=C.w0.EMPTY,this.activeDrag=null,this.selectedChange=new r.vpe,this._userSelection=new r.vpe,this.dragStarted=new r.vpe,this.dragEnded=new r.vpe,this.activeDateChange=new r.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,M.O)(null)).subscribe(()=>this._init())}ngOnChanges(ie){const Ve=ie.comparisonStart||ie.comparisonEnd;Ve&&!Ve.firstChange&&this._setRanges(this.selected),ie.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(ie){const Ve=ie.value,Mt=this._getDateFromDayOfMonth(Ve);let tr,kr;this._selected instanceof Y?(tr=this._getDateInCurrentMonth(this._selected.start),kr=this._getDateInCurrentMonth(this._selected.end)):tr=kr=this._getDateInCurrentMonth(this._selected),(tr!==Ve||kr!==Ve)&&this.selectedChange.emit(Mt),this._userSelection.emit({value:Mt,event:ie.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(ie){const Mt=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(ie.value),this._dateAdapter.compareDate(Mt,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(ie){const Ve=this._activeDate,Mt=this._isRtl();switch(ie.keyCode){case P.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Mt?1:-1);break;case P.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Mt?-1:1);break;case P.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case P.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case P.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case P.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case P.Ku:this.activeDate=ie.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case P.VM:this.activeDate=ie.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case P.K5:case P.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&ie.preventDefault());case P.hY:return void(null!=this._previewEnd&&!(0,P.Vb)(ie)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:ie}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:ie})),ie.preventDefault(),ie.stopPropagation()));default:return}this._dateAdapter.compareDate(Ve,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),ie.preventDefault()}_handleCalendarBodyKeyup(ie){(ie.keyCode===P.L_||ie.keyCode===P.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:ie}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let ie=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(ie)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(ie){this._matCalendarBody._focusActiveCell(ie)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:ie,value:Ve}){if(this._rangeStrategy){const Mt=Ve?Ve.rawValue:null,tr=this._rangeStrategy.createPreview(Mt,this.selected,ie);if(this._previewStart=this._getCellCompareValue(tr.start),this._previewEnd=this._getCellCompareValue(tr.end),this.activeDrag&&Mt){const kr=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,Mt,ie);kr&&(this._previewStart=this._getCellCompareValue(kr.start),this._previewEnd=this._getCellCompareValue(kr.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(ie){if(this.activeDrag)if(ie.value){const Ve=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,ie.value,ie.event);this.dragEnded.emit({value:Ve??null,event:ie.event})}else this.dragEnded.emit({value:null,event:ie.event})}_getDateFromDayOfMonth(ie){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),ie)}_initWeekdays(){const ie=this._dateAdapter.getFirstDayOfWeek(),Ve=this._dateAdapter.getDayOfWeekNames("narrow");let tr=this._dateAdapter.getDayOfWeekNames("long").map((kr,mn)=>({long:kr,narrow:Ve[mn]}));this._weekdays=tr.slice(ie).concat(tr.slice(0,ie))}_createWeekCells(){const ie=this._dateAdapter.getNumDaysInMonth(this.activeDate),Ve=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Mt=0,tr=this._firstWeekOffset;Mt<ie;Mt++,tr++){7==tr&&(this._weeks.push([]),tr=0);const kr=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),Mt+1),mn=this._shouldEnableDate(kr),un=this._dateAdapter.format(kr,this._dateFormats.display.dateA11yLabel),ri=this.dateClass?this.dateClass(kr,"month"):void 0;this._weeks[this._weeks.length-1].push(new we(Mt+1,Ve[Mt],un,mn,ri,this._getCellCompareValue(kr),kr))}}_shouldEnableDate(ie){return!!ie&&(!this.minDate||this._dateAdapter.compareDate(ie,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(ie,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(ie))}_getDateInCurrentMonth(ie){return ie&&this._hasSameMonthAndYear(ie,this.activeDate)?this._dateAdapter.getDate(ie):null}_hasSameMonthAndYear(ie,Ve){return!(!ie||!Ve||this._dateAdapter.getMonth(ie)!=this._dateAdapter.getMonth(Ve)||this._dateAdapter.getYear(ie)!=this._dateAdapter.getYear(Ve))}_getCellCompareValue(ie){if(ie){const Ve=this._dateAdapter.getYear(ie),Mt=this._dateAdapter.getMonth(ie),tr=this._dateAdapter.getDate(ie);return new Date(Ve,Mt,tr).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(ie){ie instanceof Y?(this._rangeStart=this._getCellCompareValue(ie.start),this._rangeEnd=this._getCellCompareValue(ie.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(ie),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(ie){return!this.dateFilter||this.dateFilter(ie)}_clearPreview(){this._previewStart=this._previewEnd=null}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.Y36(r.sBO),r.Y36(m.sG,8),r.Y36(m._A,8),r.Y36(I.Is,8),r.Y36($e,8))},Kt.\u0275cmp=r.Xpm({type:Kt,selectors:[["mat-month-view"]],viewQuery:function(ie,Ve){if(1&ie&&r.Gf(te,5),2&ie){let Mt;r.iGM(Mt=r.CRH())&&(Ve._matCalendarBody=Mt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[r.TTD],decls:7,vars:15,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(ie,Ve){1&ie&&(r.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),r.YNc(3,se,5,2,"th",2),r.qZA(),r.TgZ(4,"tr"),r._UZ(5,"th",3),r.qZA()(),r.TgZ(6,"tbody",4),r.NdJ("selectedValueChange",function(tr){return Ve._dateSelected(tr)})("activeDateChange",function(tr){return Ve._updateActiveDate(tr)})("previewChange",function(tr){return Ve._previewChanged(tr)})("dragStarted",function(tr){return Ve.dragStarted.emit(tr)})("dragEnded",function(tr){return Ve._dragEnded(tr)})("keyup",function(tr){return Ve._handleCalendarBodyKeyup(tr)})("keydown",function(tr){return Ve._handleCalendarBodyKeydown(tr)}),r.qZA()()),2&ie&&(r.xp6(3),r.Q6J("ngForOf",Ve._weekdays),r.xp6(3),r.Q6J("label",Ve._monthLabel)("rows",Ve._weeks)("todayValue",Ve._todayDate)("startValue",Ve._rangeStart)("endValue",Ve._rangeEnd)("comparisonStart",Ve._comparisonRangeStart)("comparisonEnd",Ve._comparisonRangeEnd)("previewStart",Ve._previewStart)("previewEnd",Ve._previewEnd)("isRange",Ve._isRange)("labelMinRequiredCells",3)("activeCell",Ve._dateAdapter.getDate(Ve.activeDate)-1)("startDateAccessibleName",Ve.startDateAccessibleName)("endDateAccessibleName",Ve.endDateAccessibleName))},dependencies:[l.sg,te],encapsulation:2,changeDetection:0}),Kt})();const It=24;let yt=(()=>{class Kt{get activeDate(){return this._activeDate}set activeDate(ie){let Ve=this._activeDate;const Mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Mt,this.minDate,this.maxDate),dr(this._dateAdapter,Ve,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(ie){this._selected=ie instanceof Y?ie:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie)),this._setSelectedYear(ie)}get minDate(){return this._minDate}set minDate(ie){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get maxDate(){return this._maxDate}set maxDate(ie){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}constructor(ie,Ve,Mt){this._changeDetectorRef=ie,this._dateAdapter=Ve,this._dir=Mt,this._rerenderSubscription=C.w0.EMPTY,this.selectedChange=new r.vpe,this.yearSelected=new r.vpe,this.activeDateChange=new r.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,M.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Ve=this._dateAdapter.getYear(this._activeDate)-bt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Mt=0,tr=[];Mt<It;Mt++)tr.push(Ve+Mt),4==tr.length&&(this._years.push(tr.map(kr=>this._createCellForYear(kr))),tr=[]);this._changeDetectorRef.markForCheck()}_yearSelected(ie){const Ve=ie.value,Mt=this._dateAdapter.createDate(Ve,0,1),tr=this._getDateFromYear(Ve);this.yearSelected.emit(Mt),this.selectedChange.emit(tr)}_updateActiveDate(ie){const Mt=this._activeDate;this.activeDate=this._getDateFromYear(ie.value),this._dateAdapter.compareDate(Mt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(ie){const Ve=this._activeDate,Mt=this._isRtl();switch(ie.keyCode){case P.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Mt?1:-1);break;case P.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Mt?-1:1);break;case P.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case P.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case P.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-bt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case P.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,It-bt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case P.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ie.altKey?10*-It:-It);break;case P.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ie.altKey?10*It:It);break;case P.K5:case P.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Ve,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),ie.preventDefault()}_handleCalendarBodyKeyup(ie){(ie.keyCode===P.L_||ie.keyCode===P.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:ie}),this._selectionKeyPressed=!1)}_getActiveCell(){return bt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(ie){const Ve=this._dateAdapter.getMonth(this.activeDate),Mt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(ie,Ve,1));return this._dateAdapter.createDate(ie,Ve,Math.min(this._dateAdapter.getDate(this.activeDate),Mt))}_createCellForYear(ie){const Ve=this._dateAdapter.createDate(ie,0,1),Mt=this._dateAdapter.getYearName(Ve),tr=this.dateClass?this.dateClass(Ve,"multi-year"):void 0;return new we(ie,Mt,Mt,this._shouldEnableYear(ie),tr)}_shouldEnableYear(ie){if(null==ie||this.maxDate&&ie>this._dateAdapter.getYear(this.maxDate)||this.minDate&&ie<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let Mt=this._dateAdapter.createDate(ie,0,1);this._dateAdapter.getYear(Mt)==ie;Mt=this._dateAdapter.addCalendarDays(Mt,1))if(this.dateFilter(Mt))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(ie){if(this._selectedYear=null,ie instanceof Y){const Ve=ie.start||ie.end;Ve&&(this._selectedYear=this._dateAdapter.getYear(Ve))}else ie&&(this._selectedYear=this._dateAdapter.getYear(ie))}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.Y36(r.sBO),r.Y36(m._A,8),r.Y36(I.Is,8))},Kt.\u0275cmp=r.Xpm({type:Kt,selectors:[["mat-multi-year-view"]],viewQuery:function(ie,Ve){if(1&ie&&r.Gf(te,5),2&ie){let Mt;r.iGM(Mt=r.CRH())&&(Ve._matCalendarBody=Mt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(ie,Ve){1&ie&&(r.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),r._UZ(3,"th",2),r.qZA()(),r.TgZ(4,"tbody",3),r.NdJ("selectedValueChange",function(tr){return Ve._yearSelected(tr)})("activeDateChange",function(tr){return Ve._updateActiveDate(tr)})("keyup",function(tr){return Ve._handleCalendarBodyKeyup(tr)})("keydown",function(tr){return Ve._handleCalendarBodyKeydown(tr)}),r.qZA()()),2&ie&&(r.xp6(4),r.Q6J("rows",Ve._years)("todayValue",Ve._todayYear)("startValue",Ve._selectedYear)("endValue",Ve._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",Ve._getActiveCell()))},dependencies:[te],encapsulation:2,changeDetection:0}),Kt})();function dr(Kt,Ar,ie,Ve,Mt){const tr=Kt.getYear(Ar),kr=Kt.getYear(ie),mn=ar(Kt,Ve,Mt);return Math.floor((tr-mn)/It)===Math.floor((kr-mn)/It)}function bt(Kt,Ar,ie,Ve){return function vt(Kt,Ar){return(Kt%Ar+Ar)%Ar}(Kt.getYear(Ar)-ar(Kt,ie,Ve),It)}function ar(Kt,Ar,ie){let Ve=0;return ie?Ve=Kt.getYear(ie)-It+1:Ar&&(Ve=Kt.getYear(Ar)),Ve}let qt=(()=>{class Kt{get activeDate(){return this._activeDate}set activeDate(ie){let Ve=this._activeDate;const Mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Mt,this.minDate,this.maxDate),this._dateAdapter.getYear(Ve)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(ie){this._selected=ie instanceof Y?ie:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie)),this._setSelectedMonth(ie)}get minDate(){return this._minDate}set minDate(ie){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get maxDate(){return this._maxDate}set maxDate(ie){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}constructor(ie,Ve,Mt,tr){this._changeDetectorRef=ie,this._dateFormats=Ve,this._dateAdapter=Mt,this._dir=tr,this._rerenderSubscription=C.w0.EMPTY,this.selectedChange=new r.vpe,this.monthSelected=new r.vpe,this.activeDateChange=new r.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,M.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(ie){const Ve=ie.value,Mt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ve,1);this.monthSelected.emit(Mt);const tr=this._getDateFromMonth(Ve);this.selectedChange.emit(tr)}_updateActiveDate(ie){const Mt=this._activeDate;this.activeDate=this._getDateFromMonth(ie.value),this._dateAdapter.compareDate(Mt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(ie){const Ve=this._activeDate,Mt=this._isRtl();switch(ie.keyCode){case P.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Mt?1:-1);break;case P.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Mt?-1:1);break;case P.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case P.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case P.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case P.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case P.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ie.altKey?-10:-1);break;case P.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ie.altKey?10:1);break;case P.K5:case P.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Ve,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),ie.preventDefault()}_handleCalendarBodyKeyup(ie){(ie.keyCode===P.L_||ie.keyCode===P.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:ie}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let ie=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Ve=>Ve.map(Mt=>this._createCellForMonth(Mt,ie[Mt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(ie){return ie&&this._dateAdapter.getYear(ie)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(ie):null}_getDateFromMonth(ie){const Ve=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),ie,1),Mt=this._dateAdapter.getNumDaysInMonth(Ve);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),ie,Math.min(this._dateAdapter.getDate(this.activeDate),Mt))}_createCellForMonth(ie,Ve){const Mt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),ie,1),tr=this._dateAdapter.format(Mt,this._dateFormats.display.monthYearA11yLabel),kr=this.dateClass?this.dateClass(Mt,"year"):void 0;return new we(ie,Ve.toLocaleUpperCase(),tr,this._shouldEnableMonth(ie),kr)}_shouldEnableMonth(ie){const Ve=this._dateAdapter.getYear(this.activeDate);if(null==ie||this._isYearAndMonthAfterMaxDate(Ve,ie)||this._isYearAndMonthBeforeMinDate(Ve,ie))return!1;if(!this.dateFilter)return!0;for(let tr=this._dateAdapter.createDate(Ve,ie,1);this._dateAdapter.getMonth(tr)==ie;tr=this._dateAdapter.addCalendarDays(tr,1))if(this.dateFilter(tr))return!0;return!1}_isYearAndMonthAfterMaxDate(ie,Ve){if(this.maxDate){const Mt=this._dateAdapter.getYear(this.maxDate),tr=this._dateAdapter.getMonth(this.maxDate);return ie>Mt||ie===Mt&&Ve>tr}return!1}_isYearAndMonthBeforeMinDate(ie,Ve){if(this.minDate){const Mt=this._dateAdapter.getYear(this.minDate),tr=this._dateAdapter.getMonth(this.minDate);return ie<Mt||ie===Mt&&Ve<tr}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(ie){this._selectedMonth=ie instanceof Y?this._getMonthInCurrentYear(ie.start)||this._getMonthInCurrentYear(ie.end):this._getMonthInCurrentYear(ie)}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.Y36(r.sBO),r.Y36(m.sG,8),r.Y36(m._A,8),r.Y36(I.Is,8))},Kt.\u0275cmp=r.Xpm({type:Kt,selectors:[["mat-year-view"]],viewQuery:function(ie,Ve){if(1&ie&&r.Gf(te,5),2&ie){let Mt;r.iGM(Mt=r.CRH())&&(Ve._matCalendarBody=Mt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(ie,Ve){1&ie&&(r.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),r._UZ(3,"th",2),r.qZA()(),r.TgZ(4,"tbody",3),r.NdJ("selectedValueChange",function(tr){return Ve._monthSelected(tr)})("activeDateChange",function(tr){return Ve._updateActiveDate(tr)})("keyup",function(tr){return Ve._handleCalendarBodyKeyup(tr)})("keydown",function(tr){return Ve._handleCalendarBodyKeydown(tr)}),r.qZA()()),2&ie&&(r.xp6(4),r.Q6J("label",Ve._yearLabel)("rows",Ve._months)("todayValue",Ve._todayMonth)("startValue",Ve._selectedMonth)("endValue",Ve._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",Ve._dateAdapter.getMonth(Ve.activeDate)))},dependencies:[te],encapsulation:2,changeDetection:0}),Kt})(),br=1,lt=(()=>{class Kt{constructor(ie,Ve,Mt,tr,kr){this._intl=ie,this.calendar=Ve,this._dateAdapter=Mt,this._dateFormats=tr,this._id="mat-calendar-header-"+br++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>kr.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-It)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:It)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(ie,Ve){return"month"==this.calendar.currentView?this._dateAdapter.getYear(ie)==this._dateAdapter.getYear(Ve)&&this._dateAdapter.getMonth(ie)==this._dateAdapter.getMonth(Ve):"year"==this.calendar.currentView?this._dateAdapter.getYear(ie)==this._dateAdapter.getYear(Ve):dr(this._dateAdapter,ie,Ve,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const Ve=this._dateAdapter.getYear(this.calendar.activeDate)-bt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Mt=Ve+It-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(Ve,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(Mt,0,1))]}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.Y36(ze),r.Y36((0,r.Gpc)(()=>De)),r.Y36(m._A,8),r.Y36(m.sG,8),r.Y36(r.sBO))},Kt.\u0275cmp=r.Xpm({type:Kt,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:W,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(ie,Ve){1&ie&&(r.F$t(),r.TgZ(0,"div",0)(1,"div",1)(2,"button",2),r.NdJ("click",function(){return Ve.currentPeriodClicked()}),r.TgZ(3,"span",3),r._uU(4),r.qZA(),r.O4$(),r.TgZ(5,"svg",4),r._UZ(6,"polygon",5),r.qZA()(),r.kcU(),r._UZ(7,"div",6),r.Hsn(8),r.TgZ(9,"button",7),r.NdJ("click",function(){return Ve.previousClicked()}),r.qZA(),r.TgZ(10,"button",8),r.NdJ("click",function(){return Ve.nextClicked()}),r.qZA()()(),r.TgZ(11,"label",9),r._uU(12),r.qZA()),2&ie&&(r.xp6(2),r.uIk("aria-label",Ve.periodButtonLabel)("aria-describedby",Ve._periodButtonLabelId),r.xp6(2),r.Oqu(Ve.periodButtonText),r.xp6(1),r.ekj("mat-calendar-invert","month"!==Ve.calendar.currentView),r.xp6(4),r.Q6J("disabled",!Ve.previousEnabled()),r.uIk("aria-label",Ve.prevButtonLabel),r.xp6(1),r.Q6J("disabled",!Ve.nextEnabled()),r.uIk("aria-label",Ve.nextButtonLabel),r.xp6(1),r.Q6J("id",Ve._periodButtonLabelId),r.xp6(1),r.Oqu(Ve.periodButtonDescription))},dependencies:[c.lW,c.RK],encapsulation:2,changeDetection:0}),Kt})(),De=(()=>{class Kt{get startAt(){return this._startAt}set startAt(ie){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get selected(){return this._selected}set selected(ie){this._selected=ie instanceof Y?ie:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get minDate(){return this._minDate}set minDate(ie){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get maxDate(){return this._maxDate}set maxDate(ie){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get activeDate(){return this._clampedActiveDate}set activeDate(ie){this._clampedActiveDate=this._dateAdapter.clampDate(ie,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(ie){const Ve=this._currentView!==ie?ie:null;this._currentView=ie,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Ve&&this.viewChanged.emit(Ve)}constructor(ie,Ve,Mt,tr){this._dateAdapter=Ve,this._dateFormats=Mt,this._changeDetectorRef=tr,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new r.vpe,this.yearSelected=new r.vpe,this.monthSelected=new r.vpe,this.viewChanged=new r.vpe(!0),this._userSelection=new r.vpe,this._userDragDrop=new r.vpe,this._activeDrag=null,this.stateChanges=new v.x,this._intlChanges=ie.changes.subscribe(()=>{tr.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new d.C5(this.headerComponent||lt),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(ie){const Ve=ie.minDate&&!this._dateAdapter.sameDate(ie.minDate.previousValue,ie.minDate.currentValue)?ie.minDate:void 0,Mt=ie.maxDate&&!this._dateAdapter.sameDate(ie.maxDate.previousValue,ie.maxDate.currentValue)?ie.maxDate:void 0,tr=Ve||Mt||ie.dateFilter;if(tr&&!tr.firstChange){const kr=this._getCurrentViewComponent();kr&&(this._changeDetectorRef.detectChanges(),kr._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(ie){const Ve=ie.value;(this.selected instanceof Y||Ve&&!this._dateAdapter.sameDate(Ve,this.selected))&&this.selectedChange.emit(Ve),this._userSelection.emit(ie)}_yearSelectedInMultiYearView(ie){this.yearSelected.emit(ie)}_monthSelectedInYearView(ie){this.monthSelected.emit(ie)}_goToDateInView(ie,Ve){this.activeDate=ie,this.currentView=Ve}_dragStarted(ie){this._activeDrag=ie}_dragEnded(ie){this._activeDrag&&(ie.value&&this._userDragDrop.emit(ie),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.Y36(ze),r.Y36(m._A,8),r.Y36(m.sG,8),r.Y36(r.sBO))},Kt.\u0275cmp=r.Xpm({type:Kt,selectors:[["mat-calendar"]],viewQuery:function(ie,Ve){if(1&ie&&(r.Gf($t,5),r.Gf(qt,5),r.Gf(yt,5)),2&ie){let Mt;r.iGM(Mt=r.CRH())&&(Ve.monthView=Mt.first),r.iGM(Mt=r.CRH())&&(Ve.yearView=Mt.first),r.iGM(Mt=r.CRH())&&(Ve.multiYearView=Mt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[r._Bn([re]),r.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(ie,Ve){1&ie&&(r.YNc(0,L,0,0,"ng-template",0),r.TgZ(1,"div",1),r.YNc(2,he,1,11,"mat-month-view",2),r.YNc(3,_e,1,6,"mat-year-view",3),r.YNc(4,Z,1,6,"mat-multi-year-view",4),r.qZA()),2&ie&&(r.Q6J("cdkPortalOutlet",Ve._calendarHeaderPortal),r.xp6(1),r.Q6J("ngSwitch",Ve.currentView),r.xp6(1),r.Q6J("ngSwitchCase","month"),r.xp6(1),r.Q6J("ngSwitchCase","year"),r.xp6(1),r.Q6J("ngSwitchCase","multi-year"))},dependencies:[l.RF,l.n9,t.kH,d.Pl,$t,qt,yt],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0}),Kt})();const G={transformPanel:(0,le.X$)("transformPanel",[(0,le.eR)("void => enter-dropdown",(0,le.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,le.F4)([(0,le.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,le.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,le.eR)("void => enter-dialog",(0,le.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,le.F4)([(0,le.oB)({opacity:0,transform:"scale(0.7)"}),(0,le.oB)({transform:"none",opacity:1})]))),(0,le.eR)("* => void",(0,le.jt)("100ms linear",(0,le.oB)({opacity:0})))]),fadeInCalendar:(0,le.X$)("fadeInCalendar",[(0,le.SB)("void",(0,le.oB)({opacity:0})),(0,le.SB)("enter",(0,le.oB)({opacity:1})),(0,le.eR)("void => *",(0,le.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let U=0;const ne=new r.OlP("mat-datepicker-scroll-strategy"),Xe={provide:ne,deps:[e.aV],useFactory:function Re(Kt){return()=>Kt.scrollStrategies.reposition()}},Nt=(0,m.pj)(class{constructor(Kt){this._elementRef=Kt}});let Pt=(()=>{class Kt extends Nt{constructor(ie,Ve,Mt,tr,kr,mn){super(ie),this._changeDetectorRef=Ve,this._globalModel=Mt,this._dateAdapter=tr,this._rangeSelectionStrategy=kr,this._subscriptions=new C.w0,this._animationDone=new v.x,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=mn.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(ie){const Ve=this._model.selection,Mt=ie.value,tr=Ve instanceof Y;if(tr&&this._rangeSelectionStrategy){const kr=this._rangeSelectionStrategy.selectionFinished(Mt,Ve,ie.event);this._model.updateSelection(kr,this)}else Mt&&(tr||!this._dateAdapter.sameDate(Mt,Ve))&&this._model.add(Mt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(ie){this._model.updateSelection(ie.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(ie){this._isAnimating="start"===ie.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(ie,Ve){this._model=ie?this._globalModel.clone():this._globalModel,this._actionsPortal=ie,Ve&&this._changeDetectorRef.detectChanges()}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(S),r.Y36(m._A),r.Y36($e,8),r.Y36(ze))},Kt.\u0275cmp=r.Xpm({type:Kt,selectors:[["mat-datepicker-content"]],viewQuery:function(ie,Ve){if(1&ie&&r.Gf(De,5),2&ie){let Mt;r.iGM(Mt=r.CRH())&&(Ve._calendar=Mt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(ie,Ve){1&ie&&r.WFA("@transformPanel.start",function(tr){return Ve._handleAnimationEvent(tr)})("@transformPanel.done",function(tr){return Ve._handleAnimationEvent(tr)}),2&ie&&(r.d8E("@transformPanel",Ve._animationState),r.ekj("mat-datepicker-content-touch",Ve.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[r.qOj],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(ie,Ve){if(1&ie&&(r.TgZ(0,"div",0)(1,"mat-calendar",1),r.NdJ("yearSelected",function(tr){return Ve.datepicker._selectYear(tr)})("monthSelected",function(tr){return Ve.datepicker._selectMonth(tr)})("viewChanged",function(tr){return Ve.datepicker._viewChanged(tr)})("_userSelection",function(tr){return Ve._handleUserSelection(tr)})("_userDragDrop",function(tr){return Ve._handleUserDragDrop(tr)}),r.qZA(),r.YNc(2,Te,0,0,"ng-template",2),r.TgZ(3,"button",3),r.NdJ("focus",function(){return Ve._closeButtonFocused=!0})("blur",function(){return Ve._closeButtonFocused=!1})("click",function(){return Ve.datepicker.close()}),r._uU(4),r.qZA()()),2&ie){let Mt;r.ekj("mat-datepicker-content-container-with-custom-header",Ve.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Ve._actionsPortal),r.uIk("aria-modal",!0)("aria-labelledby",null!==(Mt=Ve._dialogLabelId)&&void 0!==Mt?Mt:void 0),r.xp6(1),r.Q6J("id",Ve.datepicker.id)("ngClass",Ve.datepicker.panelClass)("startAt",Ve.datepicker.startAt)("startView",Ve.datepicker.startView)("minDate",Ve.datepicker._getMinDate())("maxDate",Ve.datepicker._getMaxDate())("dateFilter",Ve.datepicker._getDateFilter())("headerComponent",Ve.datepicker.calendarHeaderComponent)("selected",Ve._getSelected())("dateClass",Ve.datepicker.dateClass)("comparisonStart",Ve.comparisonStart)("comparisonEnd",Ve.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",Ve.startDateAccessibleName)("endDateAccessibleName",Ve.endDateAccessibleName),r.xp6(1),r.Q6J("cdkPortalOutlet",Ve._actionsPortal),r.xp6(1),r.ekj("cdk-visually-hidden",!Ve._closeButtonFocused),r.Q6J("color",Ve.color||"primary"),r.xp6(1),r.Oqu(Ve._closeButtonText)}},dependencies:[l.mk,c.lW,t.mK,d.Pl,De],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[G.transformPanel,G.fadeInCalendar]},changeDetection:0}),Kt})(),Vt=(()=>{class Kt{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(ie){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(ie){this._color=ie}get touchUi(){return this._touchUi}set touchUi(ie){this._touchUi=(0,F.Ig)(ie)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(ie){const Ve=(0,F.Ig)(ie);Ve!==this._disabled&&(this._disabled=Ve,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(ie){this._restoreFocus=(0,F.Ig)(ie)}get panelClass(){return this._panelClass}set panelClass(ie){this._panelClass=(0,F.du)(ie)}get opened(){return this._opened}set opened(ie){(0,F.Ig)(ie)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(ie,Ve,Mt,tr,kr,mn,un){this._overlay=ie,this._ngZone=Ve,this._viewContainerRef=Mt,this._dateAdapter=kr,this._dir=mn,this._model=un,this._inputStateChanges=C.w0.EMPTY,this._document=(0,r.f3M)(l.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new r.vpe,this.monthSelected=new r.vpe,this.viewChanged=new r.vpe(!0),this.openedStream=new r.vpe,this.closedStream=new r.vpe,this._opened=!1,this.id="mat-datepicker-"+U++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new v.x,this._scrollStrategy=tr}ngOnChanges(ie){const Ve=ie.xPosition||ie.yPosition;if(Ve&&!Ve.firstChange&&this._overlayRef){const Mt=this._overlayRef.getConfig().positionStrategy;Mt instanceof e._G&&(this._setConnectedPositions(Mt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(ie){this._model.add(ie)}_selectYear(ie){this.yearSelected.emit(ie)}_selectMonth(ie){this.monthSelected.emit(ie)}_viewChanged(ie){this.viewChanged.emit(ie)}registerInput(ie){return this._inputStateChanges.unsubscribe(),this.datepickerInput=ie,this._inputStateChanges=ie.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(ie){this._actionsPortal=ie,this._componentRef?.instance._assignActions(ie,!0)}removeActions(ie){ie===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,q.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const ie=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,Ve=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:Mt,location:tr}=this._componentRef;Mt._startExitAnimation(),Mt._animationDone.pipe((0,D.q)(1)).subscribe(()=>{const kr=this._document.activeElement;ie&&(!kr||kr===this._document.activeElement||tr.nativeElement.contains(kr))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}ie?setTimeout(Ve):Ve()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(ie){ie.datepicker=this,ie.color=this.color,ie._dialogLabelId=this.datepickerInput.getOverlayLabelId(),ie._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const ie=this.touchUi,Ve=new d.C5(Pt,this._viewContainerRef),Mt=this._overlayRef=this._overlay.create(new e.X_({positionStrategy:ie?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[ie?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:ie?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(ie?"dialog":"popup")}));this._getCloseStream(Mt).subscribe(tr=>{tr&&tr.preventDefault(),this.close()}),Mt.keydownEvents().subscribe(tr=>{const kr=tr.keyCode;(kr===P.LH||kr===P.JH||kr===P.oh||kr===P.SV||kr===P.Ku||kr===P.VM)&&tr.preventDefault()}),this._componentRef=Mt.attach(Ve),this._forwardContentValues(this._componentRef.instance),ie||this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(()=>Mt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const ie=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(ie)}_setConnectedPositions(ie){const Ve="end"===this.xPosition?"end":"start",Mt="start"===Ve?"end":"start",tr="above"===this.yPosition?"bottom":"top",kr="top"===tr?"bottom":"top";return ie.withPositions([{originX:Ve,originY:kr,overlayX:Ve,overlayY:tr},{originX:Ve,originY:tr,overlayX:Ve,overlayY:kr},{originX:Mt,originY:kr,overlayX:Mt,overlayY:tr},{originX:Mt,originY:tr,overlayX:Mt,overlayY:kr}])}_getCloseStream(ie){const Ve=["ctrlKey","shiftKey","metaKey"];return(0,n.T)(ie.backdropClick(),ie.detachments(),ie.keydownEvents().pipe((0,T.h)(Mt=>Mt.keyCode===P.hY&&!(0,P.Vb)(Mt)||this.datepickerInput&&(0,P.Vb)(Mt,"altKey")&&Mt.keyCode===P.LH&&Ve.every(tr=>!(0,P.Vb)(Mt,tr)))))}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.Y36(e.aV),r.Y36(r.R0b),r.Y36(r.s_b),r.Y36(ne),r.Y36(m._A,8),r.Y36(I.Is,8),r.Y36(S))},Kt.\u0275dir=r.lG2({type:Kt,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[r.TTD]}),Kt})(),Jt=(()=>{class Kt extends Vt{}return Kt.\u0275fac=function(){let Ar;return function(Ve){return(Ar||(Ar=r.n5z(Kt)))(Ve||Kt)}}(),Kt.\u0275cmp=r.Xpm({type:Kt,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[r._Bn([re,{provide:Vt,useExisting:Kt}]),r.qOj],decls:0,vars:0,template:function(ie,Ve){},encapsulation:2,changeDetection:0}),Kt})();class kt{constructor(Ar,ie){this.target=Ar,this.targetElement=ie,this.value=this.target.value}}let Me=(()=>{class Kt{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(ie){this._assignValueProgrammatically(ie)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(ie){const Ve=(0,F.Ig)(ie),Mt=this._elementRef.nativeElement;this._disabled!==Ve&&(this._disabled=Ve,this.stateChanges.next(void 0)),Ve&&this._isInitialized&&Mt.blur&&Mt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(ie){this._model=ie,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Ve=>{if(this._shouldHandleChangeEvent(Ve)){const Mt=this._getValueFromModel(Ve.selection);this._lastValueValid=this._isValidValue(Mt),this._cvaOnChange(Mt),this._onTouched(),this._formatValue(Mt),this.dateInput.emit(new kt(this,this._elementRef.nativeElement)),this.dateChange.emit(new kt(this,this._elementRef.nativeElement))}})}constructor(ie,Ve,Mt){this._elementRef=ie,this._dateAdapter=Ve,this._dateFormats=Mt,this.dateChange=new r.vpe,this.dateInput=new r.vpe,this.stateChanges=new v.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=C.w0.EMPTY,this._localeSubscription=C.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=tr=>{const kr=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tr.value));return!kr||this._matchesFilter(kr)?null:{matDatepickerFilter:!0}},this._minValidator=tr=>{const kr=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tr.value)),mn=this._getMinDate();return!mn||!kr||this._dateAdapter.compareDate(mn,kr)<=0?null:{matDatepickerMin:{min:mn,actual:kr}}},this._maxValidator=tr=>{const kr=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tr.value)),mn=this._getMaxDate();return!mn||!kr||this._dateAdapter.compareDate(mn,kr)>=0?null:{matDatepickerMax:{max:mn,actual:kr}}},this._lastValueValid=!1,this._localeSubscription=Ve.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(ie){ut(ie,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(ie){this._validatorOnChange=ie}validate(ie){return this._validator?this._validator(ie):null}writeValue(ie){this._assignValueProgrammatically(ie)}registerOnChange(ie){this._cvaOnChange=ie}registerOnTouched(ie){this._onTouched=ie}setDisabledState(ie){this.disabled=ie}_onKeydown(ie){(0,P.Vb)(ie,"altKey")&&ie.keyCode===P.JH&&["ctrlKey","shiftKey","metaKey"].every(tr=>!(0,P.Vb)(ie,tr))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),ie.preventDefault())}_onInput(ie){const Ve=this._lastValueValid;let Mt=this._dateAdapter.parse(ie,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(Mt),Mt=this._dateAdapter.getValidDateOrNull(Mt);const tr=!this._dateAdapter.sameDate(Mt,this.value);!Mt||tr?this._cvaOnChange(Mt):(ie&&!this.value&&this._cvaOnChange(Mt),Ve!==this._lastValueValid&&this._validatorOnChange()),tr&&(this._assignValue(Mt),this.dateInput.emit(new kt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new kt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(ie){this._elementRef.nativeElement.value=null!=ie?this._dateAdapter.format(ie,this._dateFormats.display.dateInput):""}_assignValue(ie){this._model?(this._assignValueToModel(ie),this._pendingValue=null):this._pendingValue=ie}_isValidValue(ie){return!ie||this._dateAdapter.isValid(ie)}_parentDisabled(){return!1}_assignValueProgrammatically(ie){ie=this._dateAdapter.deserialize(ie),this._lastValueValid=this._isValidValue(ie),ie=this._dateAdapter.getValidDateOrNull(ie),this._assignValue(ie),this._formatValue(ie)}_matchesFilter(ie){const Ve=this._getDateFilter();return!Ve||Ve(ie)}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.Y36(r.SBq),r.Y36(m._A,8),r.Y36(m.sG,8))},Kt.\u0275dir=r.lG2({type:Kt,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[r.TTD]}),Kt})();function ut(Kt,Ar){const ie=Object.keys(Kt);for(let Ve of ie){const{previousValue:Mt,currentValue:tr}=Kt[Ve];if(!Ar.isDateInstance(Mt)||!Ar.isDateInstance(tr))return!0;if(!Ar.sameDate(Mt,tr))return!0}return!1}const nt={provide:V.JU,useExisting:(0,r.Gpc)(()=>pr),multi:!0},Ht={provide:V.Cf,useExisting:(0,r.Gpc)(()=>pr),multi:!0};let pr=(()=>{class Kt extends Me{set matDatepicker(ie){ie&&(this._datepicker=ie,this._closedSubscription=ie.closedStream.subscribe(()=>this._onTouched()),this._registerModel(ie.registerInput(this)))}get min(){return this._min}set min(ie){const Ve=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie));this._dateAdapter.sameDate(Ve,this._min)||(this._min=Ve,this._validatorOnChange())}get max(){return this._max}set max(ie){const Ve=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie));this._dateAdapter.sameDate(Ve,this._max)||(this._max=Ve,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(ie){const Ve=this._matchesFilter(this.value);this._dateFilter=ie,this._matchesFilter(this.value)!==Ve&&this._validatorOnChange()}constructor(ie,Ve,Mt,tr){super(ie,Ve,Mt),this._formField=tr,this._closedSubscription=C.w0.EMPTY,this._validator=V.kI.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(ie){return ie}_assignValueToModel(ie){this._model&&this._model.updateSelection(ie,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(ie){return ie.source!==this}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.Y36(r.SBq),r.Y36(m._A,8),r.Y36(m.sG,8),r.Y36(de.G_,8))},Kt.\u0275dir=r.lG2({type:Kt,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(ie,Ve){1&ie&&r.NdJ("input",function(tr){return Ve._onInput(tr.target.value)})("change",function(){return Ve._onChange()})("blur",function(){return Ve._onBlur()})("keydown",function(tr){return Ve._onKeydown(tr)}),2&ie&&(r.Ikx("disabled",Ve.disabled),r.uIk("aria-haspopup",Ve._datepicker?"dialog":null)("aria-owns",(null==Ve._datepicker?null:Ve._datepicker.opened)&&Ve._datepicker.id||null)("min",Ve.min?Ve._dateAdapter.toIso8601(Ve.min):null)("max",Ve.max?Ve._dateAdapter.toIso8601(Ve.max):null)("data-mat-calendar",Ve._datepicker?Ve._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[r._Bn([nt,Ht,{provide:ye.Jk,useExisting:Kt}]),r.qOj]}),Kt})(),Lr=(()=>{class Kt{}return Kt.\u0275fac=function(ie){return new(ie||Kt)},Kt.\u0275dir=r.lG2({type:Kt,selectors:[["","matDatepickerToggleIcon",""]]}),Kt})(),Kr=(()=>{class Kt{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(ie){this._disabled=(0,F.Ig)(ie)}constructor(ie,Ve,Mt){this._intl=ie,this._changeDetectorRef=Ve,this._stateChanges=C.w0.EMPTY;const tr=Number(Mt);this.tabIndex=tr||0===tr?tr:null}ngOnChanges(ie){ie.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(ie){this.datepicker&&!this.disabled&&(this.datepicker.open(),ie.stopPropagation())}_watchStateChanges(){const ie=this.datepicker?this.datepicker.stateChanges:(0,i.of)(),Ve=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,i.of)(),Mt=this.datepicker?(0,n.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,i.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,n.T)(this._intl.changes,ie,Ve,Mt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.Y36(ze),r.Y36(r.sBO),r.$8M("tabindex"))},Kt.\u0275cmp=r.Xpm({type:Kt,selectors:[["mat-datepicker-toggle"]],contentQueries:function(ie,Ve,Mt){if(1&ie&&r.Suo(Mt,Lr,5),2&ie){let tr;r.iGM(tr=r.CRH())&&(Ve._customIcon=tr.first)}},viewQuery:function(ie,Ve){if(1&ie&&r.Gf(w,5),2&ie){let Mt;r.iGM(Mt=r.CRH())&&(Ve._button=Mt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(ie,Ve){1&ie&&r.NdJ("click",function(tr){return Ve._open(tr)}),2&ie&&(r.uIk("tabindex",null)("data-mat-calendar",Ve.datepicker?Ve.datepicker.id:null),r.ekj("mat-datepicker-toggle-active",Ve.datepicker&&Ve.datepicker.opened)("mat-accent",Ve.datepicker&&"accent"===Ve.datepicker.color)("mat-warn",Ve.datepicker&&"warn"===Ve.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[r.TTD],ngContentSelectors:z,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(ie,Ve){1&ie&&(r.F$t(x),r.TgZ(0,"button",0,1),r.YNc(2,k,2,0,"svg",2),r.Hsn(3),r.qZA()),2&ie&&(r.Q6J("disabled",Ve.disabled)("disableRipple",Ve.disableRipple),r.uIk("aria-haspopup",Ve.datepicker?"dialog":null)("aria-label",Ve.ariaLabel||Ve._intl.openCalendarLabel)("tabindex",Ve.disabled?-1:Ve.tabIndex),r.xp6(2),r.Q6J("ngIf",!Ve._customIcon))},dependencies:[l.O5,c.RK],styles:[".mat-datepicker-toggle{pointer-events:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),Kt})();function Cn(Kt){return yr(Kt,!0)}function Wn(Kt){return Kt.nodeType===Node.ELEMENT_NODE}function yr(Kt,Ar){if(Wn(Kt)&&Ar){const Ve=(Kt.getAttribute?.("aria-labelledby")?.split(/\s+/g)||[]).reduce((Mt,tr)=>{const kr=document.getElementById(tr);return kr&&Mt.push(kr),Mt},[]);if(Ve.length)return Ve.map(Mt=>yr(Mt,!1)).join(" ")}if(Wn(Kt)){const ie=Kt.getAttribute("aria-label")?.trim();if(ie)return ie}if(function zn(Kt){return"INPUT"===Kt.nodeName}(Kt)||function ti(Kt){return"TEXTAREA"===Kt.nodeName}(Kt)){if(Kt.labels?.length)return Array.from(Kt.labels).map(Mt=>yr(Mt,!1)).join(" ");const ie=Kt.getAttribute("placeholder")?.trim();if(ie)return ie;const Ve=Kt.getAttribute("title")?.trim();if(Ve)return Ve}return(Kt.textContent||"").replace(/\s+/g," ").trim()}const Jr=new r.OlP("MAT_DATE_RANGE_INPUT_PARENT"),nr=(0,m.FD)((()=>{class Kt extends Me{constructor(ie,Ve,Mt,tr,kr,mn,un,ri){super(Ve,un,ri),this._rangeInput=ie,this._elementRef=Ve,this._defaultErrorStateMatcher=Mt,this._injector=tr,this._parentForm=kr,this._parentFormGroup=mn,this._dir=(0,r.f3M)(I.Is,{optional:!0})}ngOnInit(){const ie=this._injector.get(V.a5,null,{optional:!0,self:!0});ie&&(this.ngControl=ie)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}getMirrorValue(){const ie=this._elementRef.nativeElement,Ve=ie.value;return Ve.length>0?Ve:ie.placeholder}_onInput(ie){super._onInput(ie),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:ie}){return ie!==this._rangeInput._startInput&&ie!==this._rangeInput._endInput}_assignValueProgrammatically(ie){super._assignValueProgrammatically(ie),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange()}_getAccessibleName(){return Cn(this._elementRef.nativeElement)}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.Y36(Jr),r.Y36(r.SBq),r.Y36(m.rD),r.Y36(r.zs3),r.Y36(V.F,8),r.Y36(V.sg,8),r.Y36(m._A,8),r.Y36(m.sG,8))},Kt.\u0275dir=r.lG2({type:Kt,features:[r.qOj]}),Kt})());let tn=(()=>{class Kt extends nr{constructor(ie,Ve,Mt,tr,kr,mn,un,ri){super(ie,Ve,Mt,tr,kr,mn,un,ri),this._startValidator=Sr=>{const Er=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Sr.value)),Ot=this._model?this._model.selection.end:null;return!Er||!Ot||this._dateAdapter.compareDate(Er,Ot)<=0?null:{matStartDateInvalid:{end:Ot,actual:Er}}},this._validator=V.kI.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(ie){return ie.start}_shouldHandleChangeEvent(ie){return!(!super._shouldHandleChangeEvent(ie)||(ie.oldValue?.start?ie.selection.start&&!this._dateAdapter.compareDate(ie.oldValue.start,ie.selection.start):!ie.selection.start))}_assignValueToModel(ie){if(this._model){const Ve=new Y(ie,this._model.selection.end);this._model.updateSelection(Ve,this)}}_formatValue(ie){super._formatValue(ie),this._rangeInput._handleChildValueChange()}_onKeydown(ie){const Ve=this._rangeInput._endInput,Mt=this._elementRef.nativeElement,tr="rtl"!==this._dir?.value;(ie.keyCode===P.SV&&tr||ie.keyCode===P.oh&&!tr)&&Mt.selectionStart===Mt.value.length&&Mt.selectionEnd===Mt.value.length?(ie.preventDefault(),Ve._elementRef.nativeElement.setSelectionRange(0,0),Ve.focus()):super._onKeydown(ie)}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.Y36(Jr),r.Y36(r.SBq),r.Y36(m.rD),r.Y36(r.zs3),r.Y36(V.F,8),r.Y36(V.sg,8),r.Y36(m._A,8),r.Y36(m.sG,8))},Kt.\u0275dir=r.lG2({type:Kt,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(ie,Ve){1&ie&&r.NdJ("input",function(tr){return Ve._onInput(tr.target.value)})("change",function(){return Ve._onChange()})("keydown",function(tr){return Ve._onKeydown(tr)})("blur",function(){return Ve._onBlur()}),2&ie&&(r.Ikx("disabled",Ve.disabled),r.uIk("aria-haspopup",Ve._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==Ve._rangeInput.rangePicker?null:Ve._rangeInput.rangePicker.opened)&&Ve._rangeInput.rangePicker.id||null)("min",Ve._getMinDate()?Ve._dateAdapter.toIso8601(Ve._getMinDate()):null)("max",Ve._getMaxDate()?Ve._dateAdapter.toIso8601(Ve._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[r._Bn([{provide:V.JU,useExisting:Kt,multi:!0},{provide:V.Cf,useExisting:Kt,multi:!0}]),r.qOj]}),Kt})(),rn=(()=>{class Kt extends nr{constructor(ie,Ve,Mt,tr,kr,mn,un,ri){super(ie,Ve,Mt,tr,kr,mn,un,ri),this._endValidator=Sr=>{const Er=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Sr.value)),Ot=this._model?this._model.selection.start:null;return!Er||!Ot||this._dateAdapter.compareDate(Er,Ot)>=0?null:{matEndDateInvalid:{start:Ot,actual:Er}}},this._validator=V.kI.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(ie){return ie.end}_shouldHandleChangeEvent(ie){return!(!super._shouldHandleChangeEvent(ie)||(ie.oldValue?.end?ie.selection.end&&!this._dateAdapter.compareDate(ie.oldValue.end,ie.selection.end):!ie.selection.end))}_assignValueToModel(ie){if(this._model){const Ve=new Y(this._model.selection.start,ie);this._model.updateSelection(Ve,this)}}_onKeydown(ie){const Ve=this._rangeInput._startInput,Mt=this._elementRef.nativeElement,tr="rtl"!==this._dir?.value;if(ie.keyCode!==P.ZH||Mt.value)if((ie.keyCode===P.oh&&tr||ie.keyCode===P.SV&&!tr)&&0===Mt.selectionStart&&0===Mt.selectionEnd){ie.preventDefault();const kr=Ve._elementRef.nativeElement.value.length;Ve._elementRef.nativeElement.setSelectionRange(kr,kr),Ve.focus()}else super._onKeydown(ie);else Ve.focus()}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.Y36(Jr),r.Y36(r.SBq),r.Y36(m.rD),r.Y36(r.zs3),r.Y36(V.F,8),r.Y36(V.sg,8),r.Y36(m._A,8),r.Y36(m.sG,8))},Kt.\u0275dir=r.lG2({type:Kt,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(ie,Ve){1&ie&&r.NdJ("input",function(tr){return Ve._onInput(tr.target.value)})("change",function(){return Ve._onChange()})("keydown",function(tr){return Ve._onKeydown(tr)})("blur",function(){return Ve._onBlur()}),2&ie&&(r.Ikx("disabled",Ve.disabled),r.uIk("aria-haspopup",Ve._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==Ve._rangeInput.rangePicker?null:Ve._rangeInput.rangePicker.opened)&&Ve._rangeInput.rangePicker.id||null)("min",Ve._getMinDate()?Ve._dateAdapter.toIso8601(Ve._getMinDate()):null)("max",Ve._getMaxDate()?Ve._dateAdapter.toIso8601(Ve._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[r._Bn([{provide:V.JU,useExisting:Kt,multi:!0},{provide:V.Cf,useExisting:Kt,multi:!0}]),r.qOj]}),Kt})(),vn=0,Gn=(()=>{class Kt{get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){const ie=this._startInput?._getPlaceholder()||"",Ve=this._endInput?._getPlaceholder()||"";return ie||Ve?`${ie} ${this.separator} ${Ve}`:""}get rangePicker(){return this._rangePicker}set rangePicker(ie){ie&&(this._model=ie.registerInput(this),this._rangePicker=ie,this._closedSubscription.unsubscribe(),this._closedSubscription=ie.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched()}),this._registerModel(this._model))}get required(){return this._required??(this._isTargetRequired(this)||this._isTargetRequired(this._startInput)||this._isTargetRequired(this._endInput))??!1}set required(ie){this._required=(0,F.Ig)(ie)}get dateFilter(){return this._dateFilter}set dateFilter(ie){const Ve=this._startInput,Mt=this._endInput,tr=Ve&&Ve._matchesFilter(Ve.value),kr=Mt&&Mt._matchesFilter(Ve.value);this._dateFilter=ie,Ve&&Ve._matchesFilter(Ve.value)!==tr&&Ve._validatorOnChange(),Mt&&Mt._matchesFilter(Mt.value)!==kr&&Mt._validatorOnChange()}get min(){return this._min}set min(ie){const Ve=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie));this._dateAdapter.sameDate(Ve,this._min)||(this._min=Ve,this._revalidate())}get max(){return this._max}set max(ie){const Ve=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ie));this._dateAdapter.sameDate(Ve,this._max)||(this._max=Ve,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(ie){const Ve=(0,F.Ig)(ie);Ve!==this._groupDisabled&&(this._groupDisabled=Ve,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const ie=!!this._startInput&&this._startInput.isEmpty(),Ve=!!this._endInput&&this._endInput.isEmpty();return ie&&Ve}constructor(ie,Ve,Mt,tr,kr){this._changeDetectorRef=ie,this._elementRef=Ve,this._dateAdapter=tr,this._formField=kr,this._closedSubscription=C.w0.EMPTY,this.id="mat-date-range-input-"+vn++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new v.x,kr?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")&&Ve.nativeElement.classList.add("mat-mdc-input-element","mat-mdc-form-field-input-control","mdc-text-field__input"),this.ngControl=Mt}setDescribedByIds(ie){this._ariaDescribedBy=ie.length?ie.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),(0,n.T)(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(ie){ut(ie,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(ie){const Ve="start"===ie?this._startInput:this._endInput;return Ve?Ve.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const ie=this._formField;return ie&&ie._hasFloatingLabel()?ie._labelId:null}_getStartDateAccessibleName(){return this._startInput._getAccessibleName()}_getEndDateAccessibleName(){return this._endInput._getAccessibleName()}_updateFocus(ie){this.focused=null!==ie,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(ie){this._startInput&&this._startInput._registerModel(ie),this._endInput&&this._endInput._registerModel(ie)}_isTargetRequired(ie){return ie?.ngControl?.control?.hasValidator(V.kI.required)}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(V.gN,10),r.Y36(m._A,8),r.Y36(de.G_,8))},Kt.\u0275cmp=r.Xpm({type:Kt,selectors:[["mat-date-range-input"]],contentQueries:function(ie,Ve,Mt){if(1&ie&&(r.Suo(Mt,tn,5),r.Suo(Mt,rn,5)),2&ie){let tr;r.iGM(tr=r.CRH())&&(Ve._startInput=tr.first),r.iGM(tr=r.CRH())&&(Ve._endInput=tr.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(ie,Ve){2&ie&&(r.uIk("id",Ve.id)("aria-labelledby",Ve._getAriaLabelledby())("aria-describedby",Ve._ariaDescribedBy)("data-mat-calendar",Ve.rangePicker?Ve.rangePicker.id:null),r.ekj("mat-date-range-input-hide-placeholders",Ve._shouldHidePlaceholders())("mat-date-range-input-required",Ve.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[r._Bn([{provide:de.Eo,useExisting:Kt},{provide:Jr,useExisting:Kt}]),r.TTD],ngContentSelectors:Ne,decls:11,vars:5,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-wrapper","mat-date-range-input-end-wrapper"]],template:function(ie,Ve){1&ie&&(r.F$t(j),r.TgZ(0,"div",0),r.NdJ("cdkFocusChange",function(tr){return Ve._updateFocus(tr)}),r.TgZ(1,"div",1),r.Hsn(2),r.TgZ(3,"span",2),r._uU(4),r.qZA()(),r.TgZ(5,"span",3),r._uU(6),r.qZA(),r.TgZ(7,"div",4),r.Hsn(8,1),r.TgZ(9,"span",2),r._uU(10),r.qZA()()()),2&ie&&(r.xp6(4),r.Oqu(Ve._getInputMirrorValue("start")),r.xp6(1),r.ekj("mat-date-range-input-separator-hidden",Ve._shouldHideSeparator()),r.xp6(1),r.Oqu(Ve.separator),r.xp6(4),r.Oqu(Ve._getInputMirrorValue("end")))},dependencies:[t.kH],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-end-wrapper{flex-grow:1}.mat-date-range-input-inner{position:absolute;top:0;left:0;font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%;height:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0}),Kt})(),Yn=(()=>{class Kt extends Vt{_forwardContentValues(ie){super._forwardContentValues(ie);const Ve=this.datepickerInput;Ve&&(ie.comparisonStart=Ve.comparisonStart,ie.comparisonEnd=Ve.comparisonEnd,ie.startDateAccessibleName=Ve._getStartDateAccessibleName(),ie.endDateAccessibleName=Ve._getEndDateAccessibleName())}}return Kt.\u0275fac=function(){let Ar;return function(Ve){return(Ar||(Ar=r.n5z(Kt)))(Ve||Kt)}}(),Kt.\u0275cmp=r.Xpm({type:Kt,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[r._Bn([qe,ct,{provide:Vt,useExisting:Kt}]),r.qOj],decls:0,vars:0,template:function(ie,Ve){},encapsulation:2,changeDetection:0}),Kt})(),Dn=(()=>{class Kt{constructor(ie){this._datepicker=ie}_applySelection(){this._datepicker._applyPendingSelection(),this._datepicker.close()}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.Y36(Vt))},Kt.\u0275dir=r.lG2({type:Kt,selectors:[["","matDatepickerApply",""],["","matDateRangePickerApply",""]],hostBindings:function(ie,Ve){1&ie&&r.NdJ("click",function(){return Ve._applySelection()})}}),Kt})(),Ti=(()=>{class Kt{constructor(ie){this._datepicker=ie}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.Y36(Vt))},Kt.\u0275dir=r.lG2({type:Kt,selectors:[["","matDatepickerCancel",""],["","matDateRangePickerCancel",""]],hostBindings:function(ie,Ve){1&ie&&r.NdJ("click",function(){return Ve._datepicker.close()})}}),Kt})(),Ni=(()=>{class Kt{constructor(ie,Ve){this._datepicker=ie,this._viewContainerRef=Ve}ngAfterViewInit(){this._portal=new d.UE(this._template,this._viewContainerRef),this._datepicker.registerActions(this._portal)}ngOnDestroy(){this._datepicker.removeActions(this._portal),this._portal&&this._portal.isAttached&&this._portal?.detach()}}return Kt.\u0275fac=function(ie){return new(ie||Kt)(r.Y36(Vt),r.Y36(r.s_b))},Kt.\u0275cmp=r.Xpm({type:Kt,selectors:[["mat-datepicker-actions"],["mat-date-range-picker-actions"]],viewQuery:function(ie,Ve){if(1&ie&&r.Gf(r.Rgc,5),2&ie){let Mt;r.iGM(Mt=r.CRH())&&(Ve._template=Mt.first)}},ngContentSelectors:W,decls:1,vars:0,consts:[[1,"mat-datepicker-actions"]],template:function(ie,Ve){1&ie&&(r.F$t(),r.YNc(0,tt,2,0,"ng-template"))},styles:[".mat-datepicker-actions{display:flex;justify-content:flex-end;align-items:center;padding:0 8px 8px 8px}.mat-datepicker-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),Kt})(),ci=(()=>{class Kt{}return Kt.\u0275fac=function(ie){return new(ie||Kt)},Kt.\u0275mod=r.oAB({type:Kt}),Kt.\u0275inj=r.cJS({providers:[ze,Xe],imports:[l.ez,c.ot,e.U8,t.rt,d.eL,m.BQ,E.ZD]}),Kt})()},45720:(St,be,s)=>{"use strict";s.d(be,{H8:()=>We,Is:()=>we,WI:()=>W,ZT:()=>j,so:()=>ee,uh:()=>Ne,uw:()=>x,xY:()=>tt});var t=s(58153),e=s(17774),d=s(73991),l=s(70232),r=s(74467),c=s(45903),E=s(27444),m=s(68264),v=s(50805),C=s(92588),n=s(9754),i=s(32653),P=s(41743),I=s(20849),q=s(52051);function M(Se,ke){}s(96191);class T{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const F="mdc-dialog--open",le="mdc-dialog--opening",V="mdc-dialog--closing";let Ee=(()=>{class Se extends r.LL{constructor(Ge,Tt,Et,H,Y,S,K,Q){super(Ge,Tt,Et,H,Y,S,K,Q),this._animationStateChanged=new d.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(Ge){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Ge})}}return Se.\u0275fac=function(Ge){return new(Ge||Se)(d.Y36(d.SBq),d.Y36(l.qV),d.Y36(e.K0,8),d.Y36(T),d.Y36(l.ic),d.Y36(d.R0b),d.Y36(t.Iu),d.Y36(l.tE))},Se.\u0275cmp=d.Xpm({type:Se,selectors:[["ng-component"]],features:[d.qOj],decls:0,vars:0,template:function(Ge,Tt){},encapsulation:2}),Se})();const Le="--mat-dialog-transition-duration";function ge(Se){return null==Se?null:"number"==typeof Se?Se:Se.endsWith("ms")?(0,c.su)(Se.substring(0,Se.length-2)):Se.endsWith("s")?1e3*(0,c.su)(Se.substring(0,Se.length-1)):"0"===Se?0:null}let ue=(()=>{class Se extends Ee{constructor(Ge,Tt,Et,H,Y,S,K,Q,B){super(Ge,Tt,Et,H,Y,S,K,B),this._animationMode=Q,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._openAnimationDuration=this._animationsEnabled?ge(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?ge(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._openAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._closeAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._openAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Le,`${this._openAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(le,F)),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(F),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(F),this._animationsEnabled?(this._hostElement.style.setProperty(Le,`${this._openAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(V)),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(le,V)}_waitForAnimationToComplete(Ge,Tt){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(Tt,Ge)}_requestAnimationFrame(Ge){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(Ge):Ge()})}}return Se.\u0275fac=function(Ge){return new(Ge||Se)(d.Y36(d.SBq),d.Y36(l.qV),d.Y36(e.K0,8),d.Y36(T),d.Y36(l.ic),d.Y36(d.R0b),d.Y36(t.Iu),d.Y36(d.QbO,8),d.Y36(l.tE))},Se.\u0275cmp=d.Xpm({type:Se,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(Ge,Tt){2&Ge&&(d.Ikx("id",Tt._config.id),d.uIk("aria-modal",Tt._config.ariaModal)("role",Tt._config.role)("aria-labelledby",Tt._config.ariaLabel?null:Tt._ariaLabelledBy)("aria-label",Tt._config.ariaLabel)("aria-describedby",Tt._config.ariaDescribedBy||null),d.ekj("_mat-animation-noopable",!Tt._animationsEnabled))},features:[d.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(Ge,Tt){1&Ge&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,M,0,0,"ng-template",2),d.qZA()())},dependencies:[E.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title,.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__actions,.mat-mdc-dialog-container.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title{border-bottom-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, "Arial");line-height:var(--mdc-dialog-subhead-line-height, 14px);font-size:var(--mdc-dialog-subhead-size, 14px);font-weight:var(--mdc-dialog-subhead-weight, 500);letter-spacing:var(--mdc-dialog-subhead-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, black)}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, "Arial");line-height:var(--mdc-dialog-supporting-text-line-height, 14px);font-size:var(--mdc-dialog-supporting-text-size, 14px);font-weight:var(--mdc-dialog-supporting-text-weight, 500);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, black)}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2}),Se})();class ee{constructor(ke,Ge,Tt){this._ref=ke,this._containerInstance=Tt,this._afterOpened=new m.x,this._beforeClosed=new m.x,this._state=0,this.disableClose=Ge.disableClose,this.id=ke.id,Tt._animationStateChanged.pipe((0,n.h)(Et=>"opened"===Et.state),(0,i.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Tt._animationStateChanged.pipe((0,n.h)(Et=>"closed"===Et.state),(0,i.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),ke.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,v.T)(this.backdropClick(),this.keydownEvents().pipe((0,n.h)(Et=>Et.keyCode===I.hY&&!this.disableClose&&!(0,I.Vb)(Et)))).subscribe(Et=>{this.disableClose||(Et.preventDefault(),se(this,"keydown"===Et.type?"keyboard":"mouse"))})}close(ke){this._result=ke,this._containerInstance._animationStateChanged.pipe((0,n.h)(Ge=>"closing"===Ge.state),(0,i.q)(1)).subscribe(Ge=>{this._beforeClosed.next(ke),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),Ge.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(ke){let Ge=this._ref.config.positionStrategy;return ke&&(ke.left||ke.right)?ke.left?Ge.left(ke.left):Ge.right(ke.right):Ge.centerHorizontally(),ke&&(ke.top||ke.bottom)?ke.top?Ge.top(ke.top):Ge.bottom(ke.bottom):Ge.centerVertically(),this._ref.updatePosition(),this}updateSize(ke="",Ge=""){return this._ref.updateSize(ke,Ge),this}addPanelClass(ke){return this._ref.addPanelClass(ke),this}removePanelClass(ke){return this._ref.removePanelClass(ke),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function se(Se,ke,Ge){return Se._closeInteractionType=ke,Se.close(Ge)}const W=new d.OlP("MatMdcDialogData"),L=new d.OlP("mat-mdc-dialog-default-options"),he=new d.OlP("mat-mdc-dialog-scroll-strategy"),Z={provide:he,deps:[t.aV],useFactory:function _e(Se){return()=>Se.scrollStrategies.block()}};let w=0,k=(()=>{class Se{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const Ge=this._parentDialog;return Ge?Ge._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(Ge,Tt,Et,H,Y,S,K,Q,B,re){this._overlay=Ge,this._defaultOptions=Et,this._parentDialog=H,this._dialogRefConstructor=K,this._dialogContainerType=Q,this._dialogDataToken=B,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new m.x,this._afterOpenedAtThisLevel=new m.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=T,this.afterAllClosed=(0,C.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,P.O)(void 0))),this._scrollStrategy=S,this._dialog=Tt.get(r.Vq)}open(Ge,Tt){let Et;(Tt={...this._defaultOptions||new T,...Tt}).id=Tt.id||`${this._idPrefix}${w++}`,Tt.scrollStrategy=Tt.scrollStrategy||this._scrollStrategy();const H=this._dialog.open(Ge,{...Tt,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:Tt},{provide:r.ib,useValue:Tt}]},templateContext:()=>({dialogRef:Et}),providers:(Y,S,K)=>(Et=new this._dialogRefConstructor(Y,Tt,K),Et.updatePosition(Tt?.position),[{provide:this._dialogContainerType,useValue:K},{provide:this._dialogDataToken,useValue:S.data},{provide:this._dialogRefConstructor,useValue:Et}])});return Et.componentInstance=H.componentInstance,this.openDialogs.push(Et),this.afterOpened.next(Et),Et.afterClosed().subscribe(()=>{const Y=this.openDialogs.indexOf(Et);Y>-1&&(this.openDialogs.splice(Y,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Et}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(Ge){return this.openDialogs.find(Tt=>Tt.id===Ge)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(Ge){let Tt=Ge.length;for(;Tt--;)Ge[Tt].close()}}return Se.\u0275fac=function(Ge){d.$Z()},Se.\u0275prov=d.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),x=(()=>{class Se extends k{constructor(Ge,Tt,Et,H,Y,S,K,Q){super(Ge,Tt,H,S,K,Y,ee,ue,W,Q),this._idPrefix="mat-mdc-dialog-"}}return Se.\u0275fac=function(Ge){return new(Ge||Se)(d.LFG(t.aV),d.LFG(d.zs3),d.LFG(e.Ye,8),d.LFG(L,8),d.LFG(he),d.LFG(Se,12),d.LFG(t.Xj),d.LFG(d.QbO,8))},Se.\u0275prov=d.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),z=0,j=(()=>{class Se{constructor(Ge,Tt,Et){this.dialogRef=Ge,this._elementRef=Tt,this._dialog=Et,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=ze(this._elementRef,this._dialog.openDialogs))}ngOnChanges(Ge){const Tt=Ge._matDialogClose||Ge._matDialogCloseResult;Tt&&(this.dialogResult=Tt.currentValue)}_onButtonClick(Ge){se(this.dialogRef,0===Ge.screenX&&0===Ge.screenY?"keyboard":"mouse",this.dialogResult)}}return Se.\u0275fac=function(Ge){return new(Ge||Se)(d.Y36(ee,8),d.Y36(d.SBq),d.Y36(x))},Se.\u0275dir=d.lG2({type:Se,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Ge,Tt){1&Ge&&d.NdJ("click",function(H){return Tt._onButtonClick(H)}),2&Ge&&d.uIk("aria-label",Tt.ariaLabel||null)("type",Tt.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[d.TTD]}),Se})(),Ne=(()=>{class Se{constructor(Ge,Tt,Et){this._dialogRef=Ge,this._elementRef=Tt,this._dialog=Et,this.id="mat-mdc-dialog-title-"+z++}ngOnInit(){this._dialogRef||(this._dialogRef=ze(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const Ge=this._dialogRef._containerInstance;Ge&&!Ge._ariaLabelledBy&&(Ge._ariaLabelledBy=this.id)})}}return Se.\u0275fac=function(Ge){return new(Ge||Se)(d.Y36(ee,8),d.Y36(d.SBq),d.Y36(x))},Se.\u0275dir=d.lG2({type:Se,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(Ge,Tt){2&Ge&&d.Ikx("id",Tt.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Se})(),tt=(()=>{class Se{}return Se.\u0275fac=function(Ge){return new(Ge||Se)},Se.\u0275dir=d.lG2({type:Se,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]}),Se})(),We=(()=>{class Se{constructor(){this.align="start"}}return Se.\u0275fac=function(Ge){return new(Ge||Se)},Se.\u0275dir=d.lG2({type:Se,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(Ge,Tt){2&Ge&&d.ekj("mat-mdc-dialog-actions-align-center","center"===Tt.align)("mat-mdc-dialog-actions-align-end","end"===Tt.align)},inputs:{align:"align"}}),Se})();function ze(Se,ke){let Ge=Se.nativeElement.parentElement;for(;Ge&&!Ge.classList.contains("mat-mdc-dialog-container");)Ge=Ge.parentElement;return Ge?ke.find(Tt=>Tt.id===Ge.id):null}let we=(()=>{class Se{}return Se.\u0275fac=function(Ge){return new(Ge||Se)},Se.\u0275mod=d.oAB({type:Se}),Se.\u0275inj=d.cJS({providers:[x,Z],imports:[r.Su,t.U8,E.eL,q.BQ,q.BQ]}),Se})()},9:(St,be,s)=>{"use strict";s.d(be,{d:()=>l,t:()=>r});var t=s(73991),e=s(45903),d=s(52051);let l=(()=>{class c{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(m){this._vertical=(0,e.Ig)(m)}get inset(){return this._inset}set inset(m){this._inset=(0,e.Ig)(m)}}return c.\u0275fac=function(m){return new(m||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(m,v){2&m&&(t.uIk("aria-orientation",v.vertical?"vertical":"horizontal"),t.ekj("mat-divider-vertical",v.vertical)("mat-divider-horizontal",!v.vertical)("mat-divider-inset",v.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(m,v){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),c})(),r=(()=>{class c{}return c.\u0275fac=function(m){return new(m||c)},c.\u0275mod=t.oAB({type:c}),c.\u0275inj=t.cJS({imports:[d.BQ,d.BQ]}),c})()},63591:(St,be,s)=>{"use strict";s.d(be,{pp:()=>we,To:()=>Ye,ib:()=>x,VG:()=>z,u4:()=>We,yz:()=>tt,yK:()=>ze});var t=s(73991),e=s(71106),d=s(45903),l=s(68264),r=s(22292);let c=0;const E=new t.OlP("CdkAccordion");let m=(()=>{class te{constructor(){this._stateChanges=new l.x,this._openCloseAllActions=new l.x,this.id="cdk-accordion-"+c++,this._multi=!1}get multi(){return this._multi}set multi(ke){this._multi=(0,d.Ig)(ke)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(ke){this._stateChanges.next(ke)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return te.\u0275fac=function(ke){return new(ke||te)},te.\u0275dir=t.lG2({type:te,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[t._Bn([{provide:E,useExisting:te}]),t.TTD]}),te})(),v=0,C=(()=>{class te{get expanded(){return this._expanded}set expanded(ke){ke=(0,d.Ig)(ke),this._expanded!==ke&&(this._expanded=ke,this.expandedChange.emit(ke),ke?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ke){this._disabled=(0,d.Ig)(ke)}constructor(ke,Ge,Tt){this.accordion=ke,this._changeDetectorRef=Ge,this._expansionDispatcher=Tt,this._openCloseAllSubscription=r.w0.EMPTY,this.closed=new t.vpe,this.opened=new t.vpe,this.destroyed=new t.vpe,this.expandedChange=new t.vpe,this.id="cdk-accordion-child-"+v++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=Tt.listen((Et,H)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===H&&this.id!==Et&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(ke=>{this.disabled||(this.expanded=ke)})}}return te.\u0275fac=function(ke){return new(ke||te)(t.Y36(E,12),t.Y36(t.sBO),t.Y36(e.A8))},te.\u0275dir=t.lG2({type:te,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[t._Bn([{provide:E,useValue:void 0}])]}),te})(),n=(()=>{class te{}return te.\u0275fac=function(ke){return new(ke||te)},te.\u0275mod=t.oAB({type:te}),te.\u0275inj=t.cJS({}),te})();var i=s(27444),P=s(17774),I=s(52051),q=s(70232),D=s(40354),M=s(41743),T=s(9754),F=s(32653),le=s(20849),V=s(38440),de=s(50805),ye=s(96191);const Ee=["body"];function Le(te,Se){}const ge=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],ue=["mat-expansion-panel-header","*","mat-action-row"];function ee(te,Se){if(1&te&&t._UZ(0,"span",2),2&te){const ke=t.oxw();t.Q6J("@indicatorRotate",ke._getExpandedState())}}const se=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],W=["mat-panel-title","mat-panel-description","*"],L=new t.OlP("MAT_ACCORDION"),he="225ms cubic-bezier(0.4,0.0,0.2,1)",_e={indicatorRotate:(0,ye.X$)("indicatorRotate",[(0,ye.SB)("collapsed, void",(0,ye.oB)({transform:"rotate(0deg)"})),(0,ye.SB)("expanded",(0,ye.oB)({transform:"rotate(180deg)"})),(0,ye.eR)("expanded <=> collapsed, void => collapsed",(0,ye.jt)(he))]),bodyExpansion:(0,ye.X$)("bodyExpansion",[(0,ye.SB)("collapsed, void",(0,ye.oB)({height:"0px",visibility:"hidden"})),(0,ye.SB)("expanded",(0,ye.oB)({height:"*",visibility:"visible"})),(0,ye.eR)("expanded <=> collapsed, void => collapsed",(0,ye.jt)(he))])},Z=new t.OlP("MAT_EXPANSION_PANEL");let Te=(()=>{class te{constructor(ke,Ge){this._template=ke,this._expansionPanel=Ge}}return te.\u0275fac=function(ke){return new(ke||te)(t.Y36(t.Rgc),t.Y36(Z,8))},te.\u0275dir=t.lG2({type:te,selectors:[["ng-template","matExpansionPanelContent",""]]}),te})(),w=0;const k=new t.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let x=(()=>{class te extends C{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(ke){this._hideToggle=(0,d.Ig)(ke)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(ke){this._togglePosition=ke}constructor(ke,Ge,Tt,Et,H,Y,S){super(ke,Ge,Tt),this._viewContainerRef=Et,this._animationMode=Y,this._hideToggle=!1,this.afterExpand=new t.vpe,this.afterCollapse=new t.vpe,this._inputChanges=new l.x,this._headerId="mat-expansion-panel-header-"+w++,this._bodyAnimationDone=new l.x,this.accordion=ke,this._document=H,this._bodyAnimationDone.pipe((0,D.x)((K,Q)=>K.fromState===Q.fromState&&K.toState===Q.toState)).subscribe(K=>{"void"!==K.fromState&&("expanded"===K.toState?this.afterExpand.emit():"collapsed"===K.toState&&this.afterCollapse.emit())}),S&&(this.hideToggle=S.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,M.O)(null),(0,T.h)(()=>this.expanded&&!this._portal),(0,F.q)(1)).subscribe(()=>{this._portal=new i.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(ke){this._inputChanges.next(ke)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const ke=this._document.activeElement,Ge=this._body.nativeElement;return ke===Ge||Ge.contains(ke)}return!1}}return te.\u0275fac=function(ke){return new(ke||te)(t.Y36(L,12),t.Y36(t.sBO),t.Y36(e.A8),t.Y36(t.s_b),t.Y36(P.K0),t.Y36(t.QbO,8),t.Y36(k,8))},te.\u0275cmp=t.Xpm({type:te,selectors:[["mat-expansion-panel"]],contentQueries:function(ke,Ge,Tt){if(1&ke&&t.Suo(Tt,Te,5),2&ke){let Et;t.iGM(Et=t.CRH())&&(Ge._lazyContent=Et.first)}},viewQuery:function(ke,Ge){if(1&ke&&t.Gf(Ee,5),2&ke){let Tt;t.iGM(Tt=t.CRH())&&(Ge._body=Tt.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(ke,Ge){2&ke&&t.ekj("mat-expanded",Ge.expanded)("_mat-animation-noopable","NoopAnimations"===Ge._animationMode)("mat-expansion-panel-spacing",Ge._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[t._Bn([{provide:L,useValue:void 0},{provide:Z,useExisting:te}]),t.qOj,t.TTD],ngContentSelectors:ue,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(ke,Ge){1&ke&&(t.F$t(ge),t.Hsn(0),t.TgZ(1,"div",0,1),t.NdJ("@bodyExpansion.done",function(Et){return Ge._bodyAnimationDone.next(Et)}),t.TgZ(3,"div",2),t.Hsn(4,1),t.YNc(5,Le,0,0,"ng-template",3),t.qZA(),t.Hsn(6,2),t.qZA()),2&ke&&(t.xp6(1),t.Q6J("@bodyExpansion",Ge._getExpandedState())("id",Ge.id),t.uIk("aria-labelledby",Ge._headerId),t.xp6(4),t.Q6J("cdkPortalOutlet",Ge._portal))},dependencies:[i.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[_e.bodyExpansion]},changeDetection:0}),te})(),z=(()=>{class te{}return te.\u0275fac=function(ke){return new(ke||te)},te.\u0275dir=t.lG2({type:te,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),te})();class j{}const Ne=(0,I.sb)(j);let tt=(()=>{class te extends Ne{constructor(ke,Ge,Tt,Et,H,Y,S){super(),this.panel=ke,this._element=Ge,this._focusMonitor=Tt,this._changeDetectorRef=Et,this._animationMode=Y,this._parentChangeSubscription=r.w0.EMPTY;const K=ke.accordion?ke.accordion._stateChanges.pipe((0,T.h)(Q=>!(!Q.hideToggle&&!Q.togglePosition))):V.E;this.tabIndex=parseInt(S||"")||0,this._parentChangeSubscription=(0,de.T)(ke.opened,ke.closed,K,ke._inputChanges.pipe((0,T.h)(Q=>!!(Q.hideToggle||Q.disabled||Q.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),ke.closed.pipe((0,T.h)(()=>ke._containsFocus())).subscribe(()=>Tt.focusVia(Ge,"program")),H&&(this.expandedHeight=H.expandedHeight,this.collapsedHeight=H.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const ke=this._isExpanded();return ke&&this.expandedHeight?this.expandedHeight:!ke&&this.collapsedHeight?this.collapsedHeight:null}_keydown(ke){switch(ke.keyCode){case le.L_:case le.K5:(0,le.Vb)(ke)||(ke.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(ke))}}focus(ke,Ge){ke?this._focusMonitor.focusVia(this._element,ke,Ge):this._element.nativeElement.focus(Ge)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(ke=>{ke&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return te.\u0275fac=function(ke){return new(ke||te)(t.Y36(x,1),t.Y36(t.SBq),t.Y36(q.tE),t.Y36(t.sBO),t.Y36(k,8),t.Y36(t.QbO,8),t.$8M("tabindex"))},te.\u0275cmp=t.Xpm({type:te,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(ke,Ge){1&ke&&t.NdJ("click",function(){return Ge._toggle()})("keydown",function(Et){return Ge._keydown(Et)}),2&ke&&(t.uIk("id",Ge.panel._headerId)("tabindex",Ge.tabIndex)("aria-controls",Ge._getPanelId())("aria-expanded",Ge._isExpanded())("aria-disabled",Ge.panel.disabled),t.Udp("height",Ge._getHeaderHeight()),t.ekj("mat-expanded",Ge._isExpanded())("mat-expansion-toggle-indicator-after","after"===Ge._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Ge._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Ge._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[t.qOj],ngContentSelectors:W,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(ke,Ge){1&ke&&(t.F$t(se),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,ee,1,1,"span",1)),2&ke&&(t.ekj("mat-content-hide-toggle",!Ge._showToggle()),t.xp6(4),t.Q6J("ngIf",Ge._showToggle()))},dependencies:[P.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[_e.indicatorRotate]},changeDetection:0}),te})(),We=(()=>{class te{}return te.\u0275fac=function(ke){return new(ke||te)},te.\u0275dir=t.lG2({type:te,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),te})(),ze=(()=>{class te{}return te.\u0275fac=function(ke){return new(ke||te)},te.\u0275dir=t.lG2({type:te,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),te})(),we=(()=>{class te extends m{constructor(){super(...arguments),this._ownHeaders=new t.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(ke){this._hideToggle=(0,d.Ig)(ke)}ngAfterContentInit(){this._headers.changes.pipe((0,M.O)(this._headers)).subscribe(ke=>{this._ownHeaders.reset(ke.filter(Ge=>Ge.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new q.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(ke){this._keyManager.onKeydown(ke)}_handleHeaderFocus(ke){this._keyManager.updateActiveItem(ke)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}}return te.\u0275fac=function(){let Se;return function(Ge){return(Se||(Se=t.n5z(te)))(Ge||te)}}(),te.\u0275dir=t.lG2({type:te,selectors:[["mat-accordion"]],contentQueries:function(ke,Ge,Tt){if(1&ke&&t.Suo(Tt,tt,5),2&ke){let Et;t.iGM(Et=t.CRH())&&(Ge._headers=Et)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(ke,Ge){2&ke&&t.ekj("mat-accordion-multi",Ge.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[t._Bn([{provide:L,useExisting:te}]),t.qOj]}),te})(),Ye=(()=>{class te{}return te.\u0275fac=function(ke){return new(ke||te)},te.\u0275mod=t.oAB({type:te}),te.\u0275inj=t.cJS({imports:[P.ez,I.BQ,n,i.eL]}),te})()},96229:(St,be,s)=>{"use strict";s.d(be,{Bi:()=>Ye,Eo:()=>ze,G_:()=>Se,Lv:()=>te,Px:()=>_e,TN:()=>We,UO:()=>we,Ve:()=>Te,ab:()=>se});var t=s(73991),e=s(96191);const se=new t.OlP("MatError"),_e=new t.OlP("MatPrefix"),Te=new t.OlP("MatSuffix"),We={transitionMessages:(0,e.X$)("transitionMessages",[(0,e.SB)("enter",(0,e.oB)({opacity:1,transform:"translateY(0%)"})),(0,e.eR)("void => enter",[(0,e.oB)({opacity:0,transform:"translateY(-5px)"}),(0,e.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ze=(()=>{class Q{}return Q.\u0275fac=function(re){return new(re||Q)},Q.\u0275dir=t.lG2({type:Q}),Q})();function we(){return Error("Placeholder attribute and child element were both specified.")}function Ye(Q){return Error(`A hint was already declared for 'align="${Q}"'.`)}function te(){return Error("mat-form-field must contain a MatFormFieldControl.")}const Se=new t.OlP("MatFormField")},45379:(St,be,s)=>{"use strict";s.d(be,{Hw:()=>z,Ps:()=>j,jv:()=>ge});var t=s(73991),e=s(52051),d=s(45903),l=s(17774),r=s(95195),c=s(99099),E=s(80842),m=s(22292),v=s(17374),C=s(87580),n=s(32837),i=s(88283),P=s(7957),I=s(32653),q=s(45734),D=s(24510);const M=["*"];let T;function le(Ne){return function F(){if(void 0===T&&(T=null,typeof window<"u")){const Ne=window;void 0!==Ne.trustedTypes&&(T=Ne.trustedTypes.createPolicy("angular#components",{createHTML:tt=>tt}))}return T}()?.createHTML(Ne)||Ne}function V(Ne){return Error(`Unable to find icon with the name "${Ne}"`)}function ye(Ne){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Ne}".`)}function Ee(Ne){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Ne}".`)}class Le{constructor(tt,We,ze){this.url=tt,this.svgText=We,this.options=ze}}let ge=(()=>{class Ne{constructor(We,ze,we,Ye){this._httpClient=We,this._sanitizer=ze,this._errorHandler=Ye,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=we}addSvgIcon(We,ze,we){return this.addSvgIconInNamespace("",We,ze,we)}addSvgIconLiteral(We,ze,we){return this.addSvgIconLiteralInNamespace("",We,ze,we)}addSvgIconInNamespace(We,ze,we,Ye){return this._addSvgIconConfig(We,ze,new Le(we,null,Ye))}addSvgIconResolver(We){return this._resolvers.push(We),this}addSvgIconLiteralInNamespace(We,ze,we,Ye){const te=this._sanitizer.sanitize(t.q3G.HTML,we);if(!te)throw Ee(we);const Se=le(te);return this._addSvgIconConfig(We,ze,new Le("",Se,Ye))}addSvgIconSet(We,ze){return this.addSvgIconSetInNamespace("",We,ze)}addSvgIconSetLiteral(We,ze){return this.addSvgIconSetLiteralInNamespace("",We,ze)}addSvgIconSetInNamespace(We,ze,we){return this._addSvgIconSetConfig(We,new Le(ze,null,we))}addSvgIconSetLiteralInNamespace(We,ze,we){const Ye=this._sanitizer.sanitize(t.q3G.HTML,ze);if(!Ye)throw Ee(ze);const te=le(Ye);return this._addSvgIconSetConfig(We,new Le("",te,we))}registerFontClassAlias(We,ze=We){return this._fontCssClassesByAlias.set(We,ze),this}classNameForFontAlias(We){return this._fontCssClassesByAlias.get(We)||We}setDefaultFontSetClass(...We){return this._defaultFontSetClass=We,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(We){const ze=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,We);if(!ze)throw ye(We);const we=this._cachedIconsByUrl.get(ze);return we?(0,r.of)(se(we)):this._loadSvgIconFromConfig(new Le(We,null)).pipe((0,v.b)(Ye=>this._cachedIconsByUrl.set(ze,Ye)),(0,C.U)(Ye=>se(Ye)))}getNamedSvgIcon(We,ze=""){const we=W(ze,We);let Ye=this._svgIconConfigs.get(we);if(Ye)return this._getSvgFromConfig(Ye);if(Ye=this._getIconConfigFromResolvers(ze,We),Ye)return this._svgIconConfigs.set(we,Ye),this._getSvgFromConfig(Ye);const te=this._iconSetConfigs.get(ze);return te?this._getSvgFromIconSetConfigs(We,te):(0,c._)(V(we))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(We){return We.svgText?(0,r.of)(se(this._svgElementFromConfig(We))):this._loadSvgIconFromConfig(We).pipe((0,C.U)(ze=>se(ze)))}_getSvgFromIconSetConfigs(We,ze){const we=this._extractIconWithNameFromAnySet(We,ze);if(we)return(0,r.of)(we);const Ye=ze.filter(te=>!te.svgText).map(te=>this._loadSvgIconSetFromConfig(te).pipe((0,n.K)(Se=>{const Ge=`Loading icon set URL: ${this._sanitizer.sanitize(t.q3G.RESOURCE_URL,te.url)} failed: ${Se.message}`;return this._errorHandler.handleError(new Error(Ge)),(0,r.of)(null)})));return(0,E.D)(Ye).pipe((0,C.U)(()=>{const te=this._extractIconWithNameFromAnySet(We,ze);if(!te)throw V(We);return te}))}_extractIconWithNameFromAnySet(We,ze){for(let we=ze.length-1;we>=0;we--){const Ye=ze[we];if(Ye.svgText&&Ye.svgText.toString().indexOf(We)>-1){const te=this._svgElementFromConfig(Ye),Se=this._extractSvgIconFromSet(te,We,Ye.options);if(Se)return Se}}return null}_loadSvgIconFromConfig(We){return this._fetchIcon(We).pipe((0,v.b)(ze=>We.svgText=ze),(0,C.U)(()=>this._svgElementFromConfig(We)))}_loadSvgIconSetFromConfig(We){return We.svgText?(0,r.of)(null):this._fetchIcon(We).pipe((0,v.b)(ze=>We.svgText=ze))}_extractSvgIconFromSet(We,ze,we){const Ye=We.querySelector(`[id="${ze}"]`);if(!Ye)return null;const te=Ye.cloneNode(!0);if(te.removeAttribute("id"),"svg"===te.nodeName.toLowerCase())return this._setSvgAttributes(te,we);if("symbol"===te.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(te),we);const Se=this._svgElementFromString(le("<svg></svg>"));return Se.appendChild(te),this._setSvgAttributes(Se,we)}_svgElementFromString(We){const ze=this._document.createElement("DIV");ze.innerHTML=We;const we=ze.querySelector("svg");if(!we)throw Error("<svg> tag not found");return we}_toSvgElement(We){const ze=this._svgElementFromString(le("<svg></svg>")),we=We.attributes;for(let Ye=0;Ye<we.length;Ye++){const{name:te,value:Se}=we[Ye];"id"!==te&&ze.setAttribute(te,Se)}for(let Ye=0;Ye<We.childNodes.length;Ye++)We.childNodes[Ye].nodeType===this._document.ELEMENT_NODE&&ze.appendChild(We.childNodes[Ye].cloneNode(!0));return ze}_setSvgAttributes(We,ze){return We.setAttribute("fit",""),We.setAttribute("height","100%"),We.setAttribute("width","100%"),We.setAttribute("preserveAspectRatio","xMidYMid meet"),We.setAttribute("focusable","false"),ze&&ze.viewBox&&We.setAttribute("viewBox",ze.viewBox),We}_fetchIcon(We){const{url:ze,options:we}=We,Ye=we?.withCredentials??!1;if(!this._httpClient)throw function de(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==ze)throw Error(`Cannot fetch icon from URL "${ze}".`);const te=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,ze);if(!te)throw ye(ze);const Se=this._inProgressUrlFetches.get(te);if(Se)return Se;const ke=this._httpClient.get(te,{responseType:"text",withCredentials:Ye}).pipe((0,C.U)(Ge=>le(Ge)),(0,i.x)(()=>this._inProgressUrlFetches.delete(te)),(0,P.B)());return this._inProgressUrlFetches.set(te,ke),ke}_addSvgIconConfig(We,ze,we){return this._svgIconConfigs.set(W(We,ze),we),this}_addSvgIconSetConfig(We,ze){const we=this._iconSetConfigs.get(We);return we?we.push(ze):this._iconSetConfigs.set(We,[ze]),this}_svgElementFromConfig(We){if(!We.svgElement){const ze=this._svgElementFromString(We.svgText);this._setSvgAttributes(ze,We.options),We.svgElement=ze}return We.svgElement}_getIconConfigFromResolvers(We,ze){for(let we=0;we<this._resolvers.length;we++){const Ye=this._resolvers[we](ze,We);if(Ye)return L(Ye)?new Le(Ye.url,null,Ye.options):new Le(Ye,null)}}}return Ne.\u0275fac=function(We){return new(We||Ne)(t.LFG(q.eN,8),t.LFG(D.H7),t.LFG(l.K0,8),t.LFG(t.qLn))},Ne.\u0275prov=t.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})();function se(Ne){return Ne.cloneNode(!0)}function W(Ne,tt){return Ne+":"+tt}function L(Ne){return!(!Ne.url||!Ne.options)}const he=(0,e.pj)(class{constructor(Ne){this._elementRef=Ne}}),_e=new t.OlP("MAT_ICON_DEFAULT_OPTIONS"),Z=new t.OlP("mat-icon-location",{providedIn:"root",factory:function Te(){const Ne=(0,t.f3M)(l.K0),tt=Ne?Ne.location:null;return{getPathname:()=>tt?tt.pathname+tt.search:""}}}),w=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],k=w.map(Ne=>`[${Ne}]`).join(", "),x=/^url\(['"]?#(.*?)['"]?\)$/;let z=(()=>{class Ne extends he{get inline(){return this._inline}set inline(We){this._inline=(0,d.Ig)(We)}get svgIcon(){return this._svgIcon}set svgIcon(We){We!==this._svgIcon&&(We?this._updateSvgIcon(We):this._svgIcon&&this._clearSvgElement(),this._svgIcon=We)}get fontSet(){return this._fontSet}set fontSet(We){const ze=this._cleanupFontValue(We);ze!==this._fontSet&&(this._fontSet=ze,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(We){const ze=this._cleanupFontValue(We);ze!==this._fontIcon&&(this._fontIcon=ze,this._updateFontIconClasses())}constructor(We,ze,we,Ye,te,Se){super(We),this._iconRegistry=ze,this._location=Ye,this._errorHandler=te,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=m.w0.EMPTY,Se&&(Se.color&&(this.color=this.defaultColor=Se.color),Se.fontSet&&(this.fontSet=Se.fontSet)),we||We.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(We){if(!We)return["",""];const ze=We.split(":");switch(ze.length){case 1:return["",ze[0]];case 2:return ze;default:throw Error(`Invalid icon name: "${We}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const We=this._elementsWithExternalReferences;if(We&&We.size){const ze=this._location.getPathname();ze!==this._previousPath&&(this._previousPath=ze,this._prependPathToReferences(ze))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(We){this._clearSvgElement();const ze=this._location.getPathname();this._previousPath=ze,this._cacheChildrenWithExternalReferences(We),this._prependPathToReferences(ze),this._elementRef.nativeElement.appendChild(We)}_clearSvgElement(){const We=this._elementRef.nativeElement;let ze=We.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();ze--;){const we=We.childNodes[ze];(1!==we.nodeType||"svg"===we.nodeName.toLowerCase())&&we.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const We=this._elementRef.nativeElement,ze=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(we=>we.length>0);this._previousFontSetClass.forEach(we=>We.classList.remove(we)),ze.forEach(we=>We.classList.add(we)),this._previousFontSetClass=ze,this.fontIcon!==this._previousFontIconClass&&!ze.includes("mat-ligature-font")&&(this._previousFontIconClass&&We.classList.remove(this._previousFontIconClass),this.fontIcon&&We.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(We){return"string"==typeof We?We.trim().split(" ")[0]:We}_prependPathToReferences(We){const ze=this._elementsWithExternalReferences;ze&&ze.forEach((we,Ye)=>{we.forEach(te=>{Ye.setAttribute(te.name,`url('${We}#${te.value}')`)})})}_cacheChildrenWithExternalReferences(We){const ze=We.querySelectorAll(k),we=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ye=0;Ye<ze.length;Ye++)w.forEach(te=>{const Se=ze[Ye],ke=Se.getAttribute(te),Ge=ke?ke.match(x):null;if(Ge){let Tt=we.get(Se);Tt||(Tt=[],we.set(Se,Tt)),Tt.push({name:te,value:Ge[1]})}})}_updateSvgIcon(We){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),We){const[ze,we]=this._splitIconName(We);ze&&(this._svgNamespace=ze),we&&(this._svgName=we),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(we,ze).pipe((0,I.q)(1)).subscribe(Ye=>this._setSvgElement(Ye),Ye=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${ze}:${we}! ${Ye.message}`))})}}}return Ne.\u0275fac=function(We){return new(We||Ne)(t.Y36(t.SBq),t.Y36(ge),t.$8M("aria-hidden"),t.Y36(Z),t.Y36(t.qLn),t.Y36(_e,8))},Ne.\u0275cmp=t.Xpm({type:Ne,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(We,ze){2&We&&(t.uIk("data-mat-icon-type",ze._usingFontIcon()?"font":"svg")("data-mat-icon-name",ze._svgName||ze.fontIcon)("data-mat-icon-namespace",ze._svgNamespace||ze.fontSet)("fontIcon",ze._usingFontIcon()?ze.fontIcon:null),t.ekj("mat-icon-inline",ze.inline)("mat-icon-no-color","primary"!==ze.color&&"accent"!==ze.color&&"warn"!==ze.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[t.qOj],ngContentSelectors:M,decls:1,vars:0,template:function(We,ze){1&We&&(t.F$t(),t.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),Ne})(),j=(()=>{class Ne{}return Ne.\u0275fac=function(We){return new(We||Ne)},Ne.\u0275mod=t.oAB({type:Ne}),Ne.\u0275inj=t.cJS({imports:[e.BQ,e.BQ]}),Ne})()},41084:(St,be,s)=>{"use strict";s.d(be,{Jk:()=>C,Nt:()=>I});var t=s(45903),e=s(71329),d=s(24e3),l=s(73991),r=s(15645),c=s(52051),E=s(96229),m=s(68264);const C=new l.OlP("MAT_INPUT_VALUE_ACCESSOR"),n=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let i=0;const P=(0,c.FD)(class{constructor(D,M,T,F){this._defaultErrorStateMatcher=D,this._parentForm=M,this._parentFormGroup=T,this.ngControl=F,this.stateChanges=new m.x}});let I=(()=>{class D extends P{get disabled(){return this._disabled}set disabled(T){this._disabled=(0,t.Ig)(T),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(T){this._id=T||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(r.kI.required)??!1}set required(T){this._required=(0,t.Ig)(T)}get type(){return this._type}set type(T){this._type=T||"text",this._validateType(),!this._isTextarea&&(0,e.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(T){T!==this.value&&(this._inputValueAccessor.value=T,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(T){this._readonly=(0,t.Ig)(T)}constructor(T,F,le,V,de,ye,Ee,Le,ge,ue){super(ye,V,de,le),this._elementRef=T,this._platform=F,this._autofillMonitor=Le,this._formField=ue,this._uid="mat-input-"+i++,this.focused=!1,this.stateChanges=new m.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(W=>(0,e.qK)().has(W)),this._iOSKeyupListener=W=>{const L=W.target;!L.value&&0===L.selectionStart&&0===L.selectionEnd&&(L.setSelectionRange(1,1),L.setSelectionRange(0,0))};const ee=this._elementRef.nativeElement,se=ee.nodeName.toLowerCase();this._inputValueAccessor=Ee||ee,this._previousNativeValue=this.value,this.id=this.id,F.IOS&&ge.runOutsideAngular(()=>{T.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===se,this._isTextarea="textarea"===se,this._isInFormField=!!ue,this._isNativeSelect&&(this.controlType=ee.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(T=>{this.autofilled=T.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(T){this._elementRef.nativeElement.focus(T)}_focusChanged(T){T!==this.focused&&(this.focused=T,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const T=this._elementRef.nativeElement.value;this._previousNativeValue!==T&&(this._previousNativeValue=T,this.stateChanges.next())}_dirtyCheckPlaceholder(){const T=this._getPlaceholder();if(T!==this._previousPlaceholder){const F=this._elementRef.nativeElement;this._previousPlaceholder=T,T?F.setAttribute("placeholder",T):F.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){n.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let T=this._elementRef.nativeElement.validity;return T&&T.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const T=this._elementRef.nativeElement,F=T.options[0];return this.focused||T.multiple||!this.empty||!!(T.selectedIndex>-1&&F&&F.label)}return this.focused||!this.empty}setDescribedByIds(T){T.length?this._elementRef.nativeElement.setAttribute("aria-describedby",T.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const T=this._elementRef.nativeElement;return this._isNativeSelect&&(T.multiple||T.size>1)}}return D.\u0275fac=function(T){return new(T||D)(l.Y36(l.SBq),l.Y36(e.t4),l.Y36(r.a5,10),l.Y36(r.F,8),l.Y36(r.sg,8),l.Y36(c.rD),l.Y36(C,10),l.Y36(d.Lq),l.Y36(l.R0b),l.Y36(E.G_,8))},D.\u0275dir=l.lG2({type:D,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(T,F){1&T&&l.NdJ("focus",function(){return F._focusChanged(!0)})("blur",function(){return F._focusChanged(!1)})("input",function(){return F._onInput()}),2&T&&(l.Ikx("id",F.id)("disabled",F.disabled)("required",F.required),l.uIk("name",F.name||null)("readonly",F.readonly&&!F._isNativeSelect||null)("aria-invalid",F.empty&&F.required?null:F.errorState)("aria-required",F.required)("id",F.id),l.ekj("mat-input-server",F._isServer)("mat-mdc-form-field-textarea-control",F._isInFormField&&F._isTextarea)("mat-mdc-form-field-input-control",F._isInFormField)("mdc-text-field__input",F._isInFormField)("mat-mdc-native-select-inline",F._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[l._Bn([{provide:E.Eo,useExisting:D}]),l.qOj,l.TTD]}),D})()},13710:(St,be,s)=>{"use strict";s.d(be,{VN:()=>Et,D8:()=>K,QJ:()=>Y});var t=s(73991),e=s(52051),d=s(26191),l=s(17774),r=s(9620),c=s(58153),E=s(70232),m=s(45903),v=s(71329),n=(s(96191),s(22292)),i=s(68264),P=s(92588),I=s(50805),q=s(95195),D=s(74845),M=s(20849),T=s(27444),F=s(15645),le=s(96229),V=s(41743),de=s(81565),ye=s(32653),Ee=s(9754),Le=s(87580),ge=s(17374),ue=s(48376),ee=s(88793);const se=["panel"];let _e=0;class Z{constructor(B,re){this.source=B,this.option=re}}const Te=(0,e.Kr)(class{}),w=new t.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function k(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let x=(()=>{class Q extends Te{get isOpen(){return this._isOpen&&this.showPanel}_setColor(re){this._color=re,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(re){this._autoActiveFirstOption=(0,m.Ig)(re)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(re){this._autoSelectActiveOption=(0,m.Ig)(re)}set classList(re){this._classList=re&&re.length?(0,m.du)(re).reduce((fe,qe)=>(fe[qe]=!0,fe),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(re,fe,qe,$e){super(),this._changeDetectorRef=re,this._elementRef=fe,this._defaults=qe,this._activeOptionChanges=n.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this._autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this._autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.optionSelected=new t.vpe,this.opened=new t.vpe,this.closed=new t.vpe,this.optionActivated=new t.vpe,this._classList={},this.id="mat-autocomplete-"+_e++,this.inertGroups=$e?.SAFARI||!1}ngAfterContentInit(){this._keyManager=new E.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(re=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[re]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(re){this.panel&&(this.panel.nativeElement.scrollTop=re)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(re){const fe=new Z(this,re);this.optionSelected.emit(fe)}_getPanelAriaLabelledby(re){return this.ariaLabel?null:this.ariaLabelledby?(re?re+" ":"")+this.ariaLabelledby:re}_setVisibilityClasses(re){re[this._visibleClass]=this.showPanel,re[this._hiddenClass]=!this.showPanel}_setThemeClasses(re){re["mat-primary"]="primary"===this._color,re["mat-warn"]="warn"===this._color,re["mat-accent"]="accent"===this._color}}return Q.\u0275fac=function(re){return new(re||Q)(t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(w),t.Y36(v.t4))},Q.\u0275dir=t.lG2({type:Q,viewQuery:function(re,fe){if(1&re&&(t.Gf(t.Rgc,7),t.Gf(se,5)),2&re){let qe;t.iGM(qe=t.CRH())&&(fe.template=qe.first),t.iGM(qe=t.CRH())&&(fe.panel=qe.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[t.qOj]}),Q})();const ze=new t.OlP("mat-autocomplete-scroll-strategy"),Ye={provide:ze,deps:[c.aV],useFactory:function we(Q){return()=>Q.scrollStrategies.reposition()}};let te=(()=>{class Q{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(re){this._autocompleteDisabled=(0,m.Ig)(re)}constructor(re,fe,qe,$e,et,ot,ct,pt,$t,It,fr){this._element=re,this._overlay=fe,this._viewContainerRef=qe,this._zone=$e,this._changeDetectorRef=et,this._dir=ct,this._formField=pt,this._document=$t,this._viewportRuler=It,this._defaults=fr,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=n.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new i.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,P.P)(()=>{const yt=this.autocomplete?this.autocomplete.options:null;return yt?yt.changes.pipe((0,V.O)(yt),(0,de.w)(()=>(0,I.T)(...yt.map(dr=>dr.onSelectionChange)))):this._zone.onStable.pipe((0,ye.q)(1),(0,de.w)(()=>this.optionSelections))}),this._scrollStrategy=ot}ngAfterViewInit(){const re=this._getWindow();typeof re<"u"&&this._zone.runOutsideAngular(()=>re.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(re){re.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const re=this._getWindow();typeof re<"u"&&re.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,I.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,Ee.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,Ee.h)(()=>this._overlayAttached)):(0,q.of)()).pipe((0,Le.U)(re=>re instanceof e.rN?re:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,I.T)((0,D.R)(this._document,"click"),(0,D.R)(this._document,"auxclick"),(0,D.R)(this._document,"touchend")).pipe((0,Ee.h)(re=>{const fe=(0,v.sA)(re),qe=this._formField?this._formField._elementRef.nativeElement:null,$e=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&fe!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!qe||!qe.contains(fe))&&(!$e||!$e.contains(fe))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(fe)}))}writeValue(re){Promise.resolve(null).then(()=>this._assignOptionValue(re))}registerOnChange(re){this._onChange=re}registerOnTouched(re){this._onTouched=re}setDisabledState(re){this._element.nativeElement.disabled=re}_handleKeydown(re){const fe=re.keyCode,qe=(0,M.Vb)(re);if(fe===M.hY&&!qe&&re.preventDefault(),this.activeOption&&fe===M.K5&&this.panelOpen&&!qe)this.activeOption._selectViaInteraction(),this._resetActiveItem(),re.preventDefault();else if(this.autocomplete){const $e=this.autocomplete._keyManager.activeItem,et=fe===M.LH||fe===M.JH;fe===M.Mf||et&&!qe&&this.panelOpen?this.autocomplete._keyManager.onKeydown(re):et&&this._canOpen()&&this.openPanel(),(et||this.autocomplete._keyManager.activeItem!==$e)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(re){let fe=re.target,qe=fe.value;"number"===fe.type&&(qe=""==qe?null:parseFloat(qe)),this._previousValue!==qe&&(this._previousValue=qe,this._pendingAutoselectedOption=null,this._onChange(qe),this._canOpen()&&this._document.activeElement===re.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(re=!1){this._formField&&"auto"===this._formField.floatLabel&&(re?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const re=this._zone.onStable.pipe((0,ye.q)(1)),fe=this.autocomplete.options.changes.pipe((0,ge.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,ue.g)(0));return(0,I.T)(re,fe).pipe((0,de.w)(()=>(this._zone.run(()=>{const qe=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),qe!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,ye.q)(1)).subscribe(qe=>this._setValueAndClose(qe))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(re){const fe=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(re):re;this._updateNativeInputValue(fe??"")}_updateNativeInputValue(re){this._formField?this._formField._control.value=re:this._element.nativeElement.value=re,this._previousValue=re}_setValueAndClose(re){const fe=re?re.source:this._pendingAutoselectedOption;fe&&(this._clearPreviousSelectedOption(fe),this._assignOptionValue(fe.value),this._onChange(fe.value),this.autocomplete._emitSelectEvent(fe),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(re){this.autocomplete.options.forEach(fe=>{fe!==re&&fe.selected&&fe.deselect()})}_attachOverlay(){let re=this._overlayRef;re?(this._positionStrategy.setOrigin(this._getConnectedElement()),re.updateSize({width:this._getPanelWidth()})):(this._portal=new T.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),re=this._overlay.create(this._getOverlayConfig()),this._overlayRef=re,this._handleOverlayEvents(re),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&re&&re.updateSize({width:this._getPanelWidth()})})),re&&!re.hasAttached()&&(re.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const fe=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&fe!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new c.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const re=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(re),this._positionStrategy=re,re}_setStrategyPositions(re){const fe=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],qe=this._aboveClass,$e=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:qe},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:qe}];let et;et="above"===this.position?$e:"below"===this.position?fe:[...fe,...$e],re.withPositions(et)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const re=this.autocomplete;re.autoActiveFirstOption?re._keyManager.setFirstItemActive():re._keyManager.setActiveItem(-1)}_canOpen(){const re=this._element.nativeElement;return!re.readOnly&&!re.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(re){const fe=this.autocomplete,qe=(0,e.CB)(re,fe.options,fe.optionGroups);if(0===re&&1===qe)fe._setScrollTop(0);else if(fe.panel){const $e=fe.options.toArray()[re];if($e){const et=$e._getHostElement(),ot=(0,e.jH)(et.offsetTop,et.offsetHeight,fe._getScrollTop(),fe.panel.nativeElement.offsetHeight);fe._setScrollTop(ot)}}}_handleOverlayEvents(re){re.keydownEvents().subscribe(fe=>{(fe.keyCode===M.hY&&!(0,M.Vb)(fe)||fe.keyCode===M.LH&&(0,M.Vb)(fe,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),fe.stopPropagation(),fe.preventDefault())}),re.outsidePointerEvents().subscribe()}}return Q.\u0275fac=function(re){return new(re||Q)(t.Y36(t.SBq),t.Y36(c.aV),t.Y36(t.s_b),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(ze),t.Y36(ee.Is,8),t.Y36(le.G_,9),t.Y36(l.K0,8),t.Y36(r.rL),t.Y36(w,8))},Q.\u0275dir=t.lG2({type:Q,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[t.TTD]}),Q})();function Ge(Q,B){if(1&Q&&(t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA()),2&Q){const re=B.id,fe=t.oxw();t.Q6J("id",fe.id)("ngClass",fe._classList),t.uIk("aria-label",fe.ariaLabel||null)("aria-labelledby",fe._getPanelAriaLabelledby(re))}}const Tt=["*"];let Et=(()=>{class Q extends x{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return Q.\u0275fac=function(){let B;return function(fe){return(B||(B=t.n5z(Q)))(fe||Q)}}(),Q.\u0275cmp=t.Xpm({type:Q,selectors:[["mat-autocomplete"]],contentQueries:function(re,fe,qe){if(1&re&&(t.Suo(qe,e.K7,5),t.Suo(qe,d.CK,5)),2&re){let $e;t.iGM($e=t.CRH())&&(fe.optionGroups=$e),t.iGM($e=t.CRH())&&(fe.options=$e)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[t._Bn([{provide:e.HF,useExisting:Q}]),t.qOj],ngContentSelectors:Tt,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(re,fe){1&re&&(t.F$t(),t.YNc(0,Ge,3,4,"ng-template"))},dependencies:[l.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),Q})();const H={provide:F.JU,useExisting:(0,t.Gpc)(()=>Y),multi:!0};let Y=(()=>{class Q extends te{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return Q.\u0275fac=function(){let B;return function(fe){return(B||(B=t.n5z(Q)))(fe||Q)}}(),Q.\u0275dir=t.lG2({type:Q,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(re,fe){1&re&&t.NdJ("focusin",function(){return fe._handleFocus()})("blur",function(){return fe._onTouched()})("input",function($e){return fe._handleInput($e)})("keydown",function($e){return fe._handleKeydown($e)})("click",function(){return fe._handleClick()}),2&re&&t.uIk("autocomplete",fe.autocompleteAttribute)("role",fe.autocompleteDisabled?null:"combobox")("aria-autocomplete",fe.autocompleteDisabled?null:"list")("aria-activedescendant",fe.panelOpen&&fe.activeOption?fe.activeOption.id:null)("aria-expanded",fe.autocompleteDisabled?null:fe.panelOpen.toString())("aria-owns",fe.autocompleteDisabled||!fe.panelOpen||null==fe.autocomplete?null:fe.autocomplete.id)("aria-haspopup",fe.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[t._Bn([H]),t.qOj]}),Q})(),K=(()=>{class Q{}return Q.\u0275fac=function(re){return new(re||Q)},Q.\u0275mod=t.oAB({type:Q}),Q.\u0275inj=t.cJS({providers:[Ye],imports:[c.U8,d.Uc,e.BQ,l.ez,r.ZD,d.Uc,e.BQ]}),Q})()},43073:(St,be,s)=>{"use strict";s.d(be,{Nr:()=>n,eB:()=>C,yu:()=>i});var t=s(73991),e=s(52051),d=s(70232);const l=["mat-button",""],r=["*"],m=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],v=(0,e.pj)((0,e.Id)((0,e.Kr)(class{constructor(P){this._elementRef=P}})));let C=(()=>{class P extends v{constructor(q,D,M){super(q),this._focusMonitor=D,this._animationMode=M,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const T of m)this._hasHostAttributes(T)&&this._getHostElement().classList.add(T);q.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(q,D){q?this._focusMonitor.focusVia(this._getHostElement(),q,D):this._getHostElement().focus(D)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...q){return q.some(D=>this._getHostElement().hasAttribute(D))}}return P.\u0275fac=function(q){return new(q||P)(t.Y36(t.SBq),t.Y36(d.tE),t.Y36(t.QbO,8))},P.\u0275cmp=t.Xpm({type:P,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(q,D){if(1&q&&t.Gf(e.wG,5),2&q){let M;t.iGM(M=t.CRH())&&(D.ripple=M.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(q,D){2&q&&(t.uIk("disabled",D.disabled||null),t.ekj("_mat-animation-noopable","NoopAnimations"===D._animationMode)("mat-button-disabled",D.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[t.qOj],attrs:l,ngContentSelectors:r,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(q,D){1&q&&(t.F$t(),t.TgZ(0,"span",0),t.Hsn(1),t.qZA(),t._UZ(2,"span",1)(3,"span",2)),2&q&&(t.xp6(2),t.ekj("mat-button-ripple-round",D.isRoundButton||D.isIconButton),t.Q6J("matRippleDisabled",D._isRippleDisabled())("matRippleCentered",D.isIconButton)("matRippleTrigger",D._getHostElement()))},dependencies:[e.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),P})(),n=(()=>{class P extends C{constructor(q,D,M,T){super(D,q,M),this._ngZone=T,this._haltDisabledEvents=F=>{this.disabled&&(F.preventDefault(),F.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return P.\u0275fac=function(q){return new(q||P)(t.Y36(d.tE),t.Y36(t.SBq),t.Y36(t.QbO,8),t.Y36(t.R0b,8))},P.\u0275cmp=t.Xpm({type:P,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(q,D){2&q&&(t.uIk("tabindex",D.disabled?-1:D.tabIndex)("disabled",D.disabled||null)("aria-disabled",D.disabled.toString()),t.ekj("_mat-animation-noopable","NoopAnimations"===D._animationMode)("mat-button-disabled",D.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[t.qOj],attrs:l,ngContentSelectors:r,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(q,D){1&q&&(t.F$t(),t.TgZ(0,"span",0),t.Hsn(1),t.qZA(),t._UZ(2,"span",1)(3,"span",2)),2&q&&(t.xp6(2),t.ekj("mat-button-ripple-round",D.isRoundButton||D.isIconButton),t.Q6J("matRippleDisabled",D._isRippleDisabled())("matRippleCentered",D.isIconButton)("matRippleTrigger",D._getHostElement()))},dependencies:[e.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),P})(),i=(()=>{class P{}return P.\u0275fac=function(q){return new(q||P)},P.\u0275mod=t.oAB({type:P}),P.\u0275inj=t.cJS({imports:[e.si,e.BQ,e.BQ]}),P})()},43732:(St,be,s)=>{"use strict";s.d(be,{H7:()=>de,IF:()=>ye,Qi:()=>v,S$:()=>le,Xh:()=>P,_K:()=>n,k0:()=>I,lb:()=>F,mi:()=>C,ou:()=>q,u7:()=>V});var t=s(73991),e=s(52051);const d=["*",[["mat-card-footer"]]],l=["*","mat-card-footer"],r=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],c=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n      [mat-card-title], [mat-card-subtitle],\n      [matCardTitle], [matCardSubtitle]","*"],E=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],m=["mat-card-title, mat-card-subtitle,\n      [mat-card-title], [mat-card-subtitle],\n      [matCardTitle], [matCardSubtitle]","img","*"];let v=(()=>{class Ee{}return Ee.\u0275fac=function(ge){return new(ge||Ee)},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Ee})(),C=(()=>{class Ee{}return Ee.\u0275fac=function(ge){return new(ge||Ee)},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Ee})(),n=(()=>{class Ee{}return Ee.\u0275fac=function(ge){return new(ge||Ee)},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),Ee})(),P=(()=>{class Ee{}return Ee.\u0275fac=function(ge){return new(ge||Ee)},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),Ee})(),I=(()=>{class Ee{}return Ee.\u0275fac=function(ge){return new(ge||Ee)},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),Ee})(),q=(()=>{class Ee{}return Ee.\u0275fac=function(ge){return new(ge||Ee)},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),Ee})(),F=(()=>{class Ee{}return Ee.\u0275fac=function(ge){return new(ge||Ee)},Ee.\u0275dir=t.lG2({type:Ee,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),Ee})(),le=(()=>{class Ee{constructor(ge){this._animationMode=ge}}return Ee.\u0275fac=function(ge){return new(ge||Ee)(t.Y36(t.QbO,8))},Ee.\u0275cmp=t.Xpm({type:Ee,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(ge,ue){2&ge&&t.ekj("_mat-animation-noopable","NoopAnimations"===ue._animationMode)},exportAs:["matCard"],ngContentSelectors:l,decls:2,vars:0,template:function(ge,ue){1&ge&&(t.F$t(d),t.Hsn(0),t.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),Ee})(),V=(()=>{class Ee{}return Ee.\u0275fac=function(ge){return new(ge||Ee)},Ee.\u0275cmp=t.Xpm({type:Ee,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:c,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(ge,ue){1&ge&&(t.F$t(r),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0}),Ee})(),de=(()=>{class Ee{}return Ee.\u0275fac=function(ge){return new(ge||Ee)},Ee.\u0275cmp=t.Xpm({type:Ee,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:m,decls:4,vars:0,template:function(ge,ue){1&ge&&(t.F$t(E),t.TgZ(0,"div"),t.Hsn(1),t.qZA(),t.Hsn(2,1),t.Hsn(3,2))},encapsulation:2,changeDetection:0}),Ee})(),ye=(()=>{class Ee{}return Ee.\u0275fac=function(ge){return new(ge||Ee)},Ee.\u0275mod=t.oAB({type:Ee}),Ee.\u0275inj=t.cJS({imports:[e.BQ,e.BQ]}),Ee})()},85006:(St,be,s)=>{"use strict";s.d(be,{FC:()=>ue,Zh:()=>ee});var t=s(70232),e=s(73991),d=s(15645),l=s(52051),r=s(45903);const c=["input"],E=["label"],v=new e.OlP("mat-checkbox-default-options",{providedIn:"root",factory:C});function C(){return{color:"accent",clickAction:"check-indeterminate"}}let P=0;const I=C(),q=(0,l.sb)((0,l.pj)((0,l.Kr)((0,l.Id)(class{constructor(se){this._elementRef=se}}))));let D=(()=>{class se extends q{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(L){this._required=(0,r.Ig)(L)}constructor(L,he,_e,Z,Te,w,k){super(he),this._changeDetectorRef=_e,this._ngZone=Z,this._animationMode=w,this._options=k,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new e.vpe,this.indeterminateChange=new e.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||I,this.color=this.defaultColor=this._options.color||I.color,this.tabIndex=parseInt(Te)||0,this.id=this._uniqueId=`${L}${++P}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(L){const he=(0,r.Ig)(L);he!=this.checked&&(this._checked=he,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(L){const he=(0,r.Ig)(L);he!==this.disabled&&(this._disabled=he,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(L){const he=L!=this._indeterminate;this._indeterminate=(0,r.Ig)(L),he&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(L){this.checked=!!L}registerOnChange(L){this._controlValueAccessorChangeFn=L}registerOnTouched(L){this._onTouched=L}setDisabledState(L){this.disabled=L}_transitionCheckState(L){let he=this._currentCheckState,_e=this._getAnimationTargetElement();if(he!==L&&_e&&(this._currentAnimationClass&&_e.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(he,L),this._currentCheckState=L,this._currentAnimationClass.length>0)){_e.classList.add(this._currentAnimationClass);const Z=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{_e.classList.remove(Z)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const L=this._options?.clickAction;this.disabled||"noop"===L?!this.disabled&&"noop"===L&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==L&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(L){L.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(L,he){if("NoopAnimations"===this._animationMode)return"";switch(L){case 0:if(1===he)return this._animationClasses.uncheckedToChecked;if(3==he)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===he?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===he?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===he?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(L){const he=this._inputElement;he&&(he.nativeElement.indeterminate=L)}}return se.\u0275fac=function(L){e.$Z()},se.\u0275dir=e.lG2({type:se,viewQuery:function(L,he){if(1&L&&(e.Gf(c,5),e.Gf(E,5),e.Gf(l.wG,5)),2&L){let _e;e.iGM(_e=e.CRH())&&(he._inputElement=_e.first),e.iGM(_e=e.CRH())&&(he._labelElement=_e.first),e.iGM(_e=e.CRH())&&(he.ripple=_e.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[e.qOj]}),se})(),le=(()=>{class se{}return se.\u0275fac=function(L){return new(L||se)},se.\u0275mod=e.oAB({type:se}),se.\u0275inj=e.cJS({}),se})();var de=s(5547);const ye=function(se){return{enterDuration:se}},Ee=["*"];class Le{}const ge={provide:d.JU,useExisting:(0,e.Gpc)(()=>ue),multi:!0};let ue=(()=>{class se extends D{constructor(L,he,_e,Z,Te,w,k){super("mat-checkbox-",L,he,Z,Te,w,k),this._focusMonitor=_e,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(L){const he=new Le;return he.source=this,he.checked=L,he}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(L=>{L||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(L){L.stopPropagation(),super._handleInputClick()}focus(L,he){L?this._focusMonitor.focusVia(this._inputElement,L,he):this._inputElement.nativeElement.focus(he)}}return se.\u0275fac=function(L){return new(L||se)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(t.tE),e.Y36(e.R0b),e.$8M("tabindex"),e.Y36(e.QbO,8),e.Y36(v,8))},se.\u0275cmp=e.Xpm({type:se,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(L,he){2&L&&(e.Ikx("id",he.id),e.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),e.ekj("mat-checkbox-indeterminate",he.indeterminate)("mat-checkbox-checked",he.checked)("mat-checkbox-disabled",he.disabled)("mat-checkbox-label-before","before"==he.labelPosition)("_mat-animation-noopable","NoopAnimations"===he._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[e._Bn([ge]),e.qOj],ngContentSelectors:Ee,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(L,he){if(1&L&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),e.NdJ("change",function(Z){return he._onInteractionEvent(Z)})("click",function(Z){return he._onInputClick(Z)}),e.qZA(),e.TgZ(5,"span",5),e._UZ(6,"span",6),e.qZA(),e._UZ(7,"span",7),e.TgZ(8,"span",8),e.O4$(),e.TgZ(9,"svg",9),e._UZ(10,"path",10),e.qZA(),e.kcU(),e._UZ(11,"span",11),e.qZA()(),e.TgZ(12,"span",12,13),e.NdJ("cdkObserveContent",function(){return he._onLabelTextChange()}),e.TgZ(14,"span",14),e._uU(15,"\xa0"),e.qZA(),e.Hsn(16),e.qZA()()),2&L){const _e=e.MAs(1),Z=e.MAs(13);e.uIk("for",he.inputId),e.xp6(2),e.ekj("mat-checkbox-inner-container-no-side-margin",!Z.textContent||!Z.textContent.trim()),e.xp6(1),e.Q6J("id",he.inputId)("required",he.required)("checked",he.checked)("disabled",he.disabled)("tabIndex",he.tabIndex),e.uIk("value",he.value)("name",he.name)("aria-label",he.ariaLabel||null)("aria-labelledby",he.ariaLabelledby)("aria-describedby",he.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",_e)("matRippleDisabled",he._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",e.VKq(18,ye,"NoopAnimations"===he._animationMode?0:150))}},dependencies:[l.wG,de.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),se})(),ee=(()=>{class se{}return se.\u0275fac=function(L){return new(L||se)},se.\u0275mod=e.oAB({type:se}),se.\u0275inj=e.cJS({imports:[l.si,l.BQ,de.Q8,le,l.BQ,le]}),se})()},43719:(St,be,s)=>{"use strict";s.d(be,{$d:()=>Ee,Y6:()=>ue,ir:()=>he,lw:()=>ge,yD:()=>w});var t=s(20849),e=s(73991),d=s(52051),l=s(45903),r=s(71329),c=s(17774),E=s(68264),m=s(50805),v=s(32653),C=s(30003),n=s(41743),i=s(70232),P=s(88793),I=s(71106),q=s(15645),D=s(96229);const M=["*"],F=new e.OlP("MatChipRemove"),le=new e.OlP("MatChipAvatar"),V=new e.OlP("MatChipTrailingIcon");class de{constructor(x){this._elementRef=x}}const ye=(0,d.sb)((0,d.pj)((0,d.Kr)(de),"primary"),-1);let Ee=(()=>{class k{}return k.\u0275fac=function(z){return new(z||k)},k.\u0275dir=e.lG2({type:k,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[e._Bn([{provide:le,useExisting:k}])]}),k})(),ge=(()=>{class k extends ye{get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(z){const j=(0,l.Ig)(z);j!==this._selected&&(this._selected=j,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(z){this._value=z}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(z){this._selectable=(0,l.Ig)(z)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(z){this._disabled=(0,l.Ig)(z)}get removable(){return this._removable}set removable(z){this._removable=(0,l.Ig)(z)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}constructor(z,j,Ne,tt,We,ze,we,Ye){super(z),this._ngZone=j,this._changeDetectorRef=We,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new E.x,this._onBlur=new E.x,this.selectionChange=new e.vpe,this.destroyed=new e.vpe,this.removed=new e.vpe,this._addHostClassName(),this._chipRippleTarget=ze.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new d.IR(this,j,this._chipRippleTarget,Ne),this._chipRipple.setupTriggerEvents(z),this.rippleConfig=tt||{},this._animationsDisabled="NoopAnimations"===we,this.tabIndex=null!=Ye&&parseInt(Ye)||-1}_addHostClassName(){const z="mat-basic-chip",j=this._elementRef.nativeElement;j.hasAttribute(z)||j.tagName.toLowerCase()===z?j.classList.add(z):j.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(z=!1){return this._selected=!this.selected,this._dispatchSelectionChange(z),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(z){this.disabled&&z.preventDefault()}_handleKeydown(z){if(!this.disabled)switch(z.keyCode){case t.yY:case t.ZH:this.remove(),z.preventDefault();break;case t.L_:this.selectable&&this.toggleSelected(!0),z.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,v.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(z=!1){this.selectionChange.emit({source:this,isUserInput:z,selected:this._selected})}}return k.\u0275fac=function(z){return new(z||k)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(r.t4),e.Y36(d.Y2,8),e.Y36(e.sBO),e.Y36(c.K0),e.Y36(e.QbO,8),e.$8M("tabindex"))},k.\u0275dir=e.lG2({type:k,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(z,j,Ne){if(1&z&&(e.Suo(Ne,le,5),e.Suo(Ne,V,5),e.Suo(Ne,F,5)),2&z){let tt;e.iGM(tt=e.CRH())&&(j.avatar=tt.first),e.iGM(tt=e.CRH())&&(j.trailingIcon=tt.first),e.iGM(tt=e.CRH())&&(j.removeIcon=tt.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(z,j){1&z&&e.NdJ("click",function(tt){return j._handleClick(tt)})("keydown",function(tt){return j._handleKeydown(tt)})("focus",function(){return j.focus()})("blur",function(){return j._blur()}),2&z&&(e.uIk("tabindex",j.disabled?null:j.tabIndex)("role",j.role)("disabled",j.disabled||null)("aria-disabled",j.disabled.toString())("aria-selected",j.ariaSelected),e.ekj("mat-chip-selected",j.selected)("mat-chip-with-avatar",j.avatar)("mat-chip-with-trailing-icon",j.trailingIcon||j.removeIcon)("mat-chip-disabled",j.disabled)("_mat-animation-noopable",j._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[e.qOj]}),k})(),ue=(()=>{class k{constructor(z,j){this._parentChip=z,"BUTTON"===j.nativeElement.nodeName&&j.nativeElement.setAttribute("type","button")}_handleClick(z){const j=this._parentChip;j.removable&&!j.disabled&&j.remove(),z.stopPropagation(),z.preventDefault()}}return k.\u0275fac=function(z){return new(z||k)(e.Y36(ge),e.Y36(e.SBq))},k.\u0275dir=e.lG2({type:k,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(z,j){1&z&&e.NdJ("click",function(tt){return j._handleClick(tt)})},features:[e._Bn([{provide:F,useExisting:k}])]}),k})();const ee=new e.OlP("mat-chips-default-options"),se=(0,d.FD)(class{constructor(k,x,z,j){this._defaultErrorStateMatcher=k,this._parentForm=x,this._parentFormGroup=z,this.ngControl=j,this.stateChanges=new E.x}});let W=0;class L{constructor(x,z){this.source=x,this.value=z}}let he=(()=>{class k extends se{get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(z){this._explicitRole=z}get multiple(){return this._multiple}set multiple(z){this._multiple=(0,l.Ig)(z),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(z){this._compareWith=z,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(z){this.writeValue(z),this._value=z}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(q.kI.required)??!1}set required(z){this._required=(0,l.Ig)(z),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(z){this._placeholder=z,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(z){this._disabled=(0,l.Ig)(z),this._syncChipsState()}get selectable(){return this._selectable}set selectable(z){this._selectable=(0,l.Ig)(z),this._syncChipsState()}set tabIndex(z){this._userTabIndex=z,this._tabIndex=z}get chipSelectionChanges(){return(0,m.T)(...this.chips.map(z=>z.selectionChange))}get chipFocusChanges(){return(0,m.T)(...this.chips.map(z=>z._onFocus))}get chipBlurChanges(){return(0,m.T)(...this.chips.map(z=>z._onBlur))}get chipRemoveChanges(){return(0,m.T)(...this.chips.map(z=>z.destroyed))}constructor(z,j,Ne,tt,We,ze,we){super(ze,tt,We,we),this._elementRef=z,this._changeDetectorRef=j,this._dir=Ne,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new E.x,this._uid="mat-chip-list-"+W++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(Ye,te)=>Ye===te,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new e.vpe,this.valueChange=new e.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this._keyManager=new i.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,C.R)(this._destroyed)).subscribe(z=>this._keyManager.withHorizontalOrientation(z)),this._keyManager.tabOut.subscribe(()=>this._allowFocusEscape()),this.chips.changes.pipe((0,n.O)(null),(0,C.R)(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new I.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(z){this._chipInput=z,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",z.id)}setDescribedByIds(z){z.length?this._elementRef.nativeElement.setAttribute("aria-describedby",z.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(z){this.chips&&this._setSelectionByValue(z,!1)}registerOnChange(z){this._onChange=z}registerOnTouched(z){this._onTouched=z}setDisabledState(z){this.disabled=z,this.stateChanges.next()}onContainerClick(z){this._originatesFromChip(z)||this.focus()}focus(z){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(z),this.stateChanges.next()))}_focusInput(z){this._chipInput&&this._chipInput.focus(z)}_keydown(z){const j=z.target;j&&j.classList.contains("mat-chip")&&(this._keyManager.onKeydown(z),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const z=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(z)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(z){return z>=0&&z<this.chips.length}_setSelectionByValue(z,j=!0){if(this._clearSelection(),this.chips.forEach(Ne=>Ne.deselect()),Array.isArray(z))z.forEach(Ne=>this._selectValue(Ne,j)),this._sortValues();else{const Ne=this._selectValue(z,j);Ne&&j&&this._keyManager.setActiveItem(Ne)}}_selectValue(z,j=!0){const Ne=this.chips.find(tt=>null!=tt.value&&this._compareWith(tt.value,z));return Ne&&(j?Ne.selectViaInteraction():Ne.select(),this._selectionModel.select(Ne)),Ne}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(z){this._selectionModel.clear(),this.chips.forEach(j=>{j!==z&&j.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(z=>{z.selected&&this._selectionModel.select(z)}),this.stateChanges.next())}_propagateChanges(z){let j=null;j=Array.isArray(this.selected)?this.selected.map(Ne=>Ne.value):this.selected?this.selected.value:z,this._value=j,this.change.emit(new L(this,j)),this.valueChange.emit(j),this._onChange(j),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(z=>{z.source.selected?this._selectionModel.select(z.source):this._selectionModel.deselect(z.source),this.multiple||this.chips.forEach(j=>{!this._selectionModel.isSelected(j)&&j.selected&&j.deselect()}),z.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(z=>{let j=this.chips.toArray().indexOf(z.chip);this._isValidIndex(j)&&this._keyManager.updateActiveItem(j),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(z=>{const j=z.chip,Ne=this.chips.toArray().indexOf(z.chip);this._isValidIndex(Ne)&&j._hasFocus&&(this._lastDestroyedChipIndex=Ne)})}_originatesFromChip(z){let j=z.target;for(;j&&j!==this._elementRef.nativeElement;){if(j.classList.contains("mat-chip"))return!0;j=j.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(z=>z._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(z=>{z._chipListDisabled=this._disabled,z._chipListMultiple=this.multiple,z.chipListSelectable=this._selectable})}}return k.\u0275fac=function(z){return new(z||k)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(P.Is,8),e.Y36(q.F,8),e.Y36(q.sg,8),e.Y36(d.rD),e.Y36(q.a5,10))},k.\u0275cmp=e.Xpm({type:k,selectors:[["mat-chip-list"]],contentQueries:function(z,j,Ne){if(1&z&&e.Suo(Ne,ge,5),2&z){let tt;e.iGM(tt=e.CRH())&&(j.chips=tt)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(z,j){1&z&&e.NdJ("focus",function(){return j.focus()})("blur",function(){return j._blur()})("keydown",function(tt){return j._keydown(tt)}),2&z&&(e.Ikx("id",j._uid),e.uIk("tabindex",j.disabled?null:j._tabIndex)("aria-required",j.role?j.required:null)("aria-disabled",j.disabled.toString())("aria-invalid",j.errorState)("aria-multiselectable",j.multiple)("role",j.role)("aria-orientation",j.ariaOrientation),e.ekj("mat-chip-list-disabled",j.disabled)("mat-chip-list-invalid",j.errorState)("mat-chip-list-required",j.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[e._Bn([{provide:D.Eo,useExisting:k}]),e.qOj],ngContentSelectors:M,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(z,j){1&z&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),k})(),w=(()=>{class k{}return k.\u0275fac=function(z){return new(z||k)},k.\u0275mod=e.oAB({type:k}),k.\u0275inj=e.cJS({providers:[d.rD,{provide:ee,useValue:{separatorKeyCodes:[t.K5]}}],imports:[d.BQ]}),k})()},26191:(St,be,s)=>{"use strict";s.d(be,{CK:()=>C,Uc:()=>n});var t=s(73991),e=s(17774),d=s(52051);function c(i,P){if(1&i&&t._UZ(0,"mat-pseudo-checkbox",5),2&i){const I=t.oxw();t.Q6J("state",I.selected?"checked":"unchecked")("disabled",I.disabled)}}function E(i,P){if(1&i&&(t.TgZ(0,"span",6),t._uU(1),t.qZA()),2&i){const I=t.oxw();t.xp6(1),t.hij("(",I.group.label,")")}}const m=["*"];let C=(()=>{class i extends d.MP{constructor(I,q,D,M){super(I,q,D,M)}}return i.\u0275fac=function(I){return new(I||i)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(d.HF,8),t.Y36(d.K7,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(I,q){1&I&&t.NdJ("click",function(){return q._selectViaInteraction()})("keydown",function(M){return q._handleKeydown(M)}),2&I&&(t.Ikx("id",q.id),t.uIk("tabindex",q._getTabIndex())("aria-selected",q.selected)("aria-disabled",q.disabled.toString()),t.ekj("mat-selected",q.selected)("mat-option-multiple",q.multiple)("mat-active",q.active)("mat-option-disabled",q.disabled))},exportAs:["matOption"],features:[t.qOj],ngContentSelectors:m,decls:6,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["text",""],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(I,q){1&I&&(t.F$t(),t.YNc(0,c,1,2,"mat-pseudo-checkbox",0),t.TgZ(1,"span",1,2),t.Hsn(3),t.qZA(),t.YNc(4,E,2,1,"span",3),t._UZ(5,"div",4)),2&I&&(t.Q6J("ngIf",q.multiple),t.xp6(4),t.Q6J("ngIf",q.group&&q.group._inert),t.xp6(1),t.Q6J("matRippleTrigger",q._getHostElement())("matRippleDisabled",q.disabled||q.disableRipple))},dependencies:[d.wG,e.O5,d.nP],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),i})(),n=(()=>{class i{}return i.\u0275fac=function(I){return new(I||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[d.si,e.ez,d.BQ,d.us]}),i})()},4692:(St,be,s)=>{"use strict";s.d(be,{$V:()=>w,g4:()=>ze,nI:()=>he,nX:()=>we,pH:()=>Te,v_:()=>We,wp:()=>Ye});var t=s(5547),e=s(17774),d=s(73991),l=s(52051),r=s(96229),c=s(88793),E=s(45903),m=s(68264),v=s(50805),C=s(74845),n=s(41743),i=s(30003),P=s(32653),I=s(71329);const q=["connectionContainer"],D=["inputContainer"],M=["label"];function T(te,Se){1&te&&(d.ynx(0),d.TgZ(1,"div",14),d._UZ(2,"div",15)(3,"div",16)(4,"div",17),d.qZA(),d.TgZ(5,"div",18),d._UZ(6,"div",15)(7,"div",16)(8,"div",17),d.qZA(),d.BQk())}function F(te,Se){if(1&te){const ke=d.EpF();d.TgZ(0,"div",19),d.NdJ("cdkObserveContent",function(){d.CHM(ke);const Tt=d.oxw();return d.KtG(Tt.updateOutlineGap())}),d.Hsn(1,1),d.qZA()}if(2&te){const ke=d.oxw();d.Q6J("cdkObserveContentDisabled","outline"!=ke.appearance)}}function le(te,Se){if(1&te&&(d.ynx(0),d.Hsn(1,2),d.TgZ(2,"span"),d._uU(3),d.qZA(),d.BQk()),2&te){const ke=d.oxw(2);d.xp6(3),d.Oqu(ke._control.placeholder)}}function V(te,Se){1&te&&d.Hsn(0,3,["*ngSwitchCase","true"])}function de(te,Se){1&te&&(d.TgZ(0,"span",23),d._uU(1," *"),d.qZA())}function ye(te,Se){if(1&te){const ke=d.EpF();d.TgZ(0,"label",20,21),d.NdJ("cdkObserveContent",function(){d.CHM(ke);const Tt=d.oxw();return d.KtG(Tt.updateOutlineGap())}),d.YNc(2,le,4,1,"ng-container",12),d.YNc(3,V,1,0,"ng-content",12),d.YNc(4,de,2,0,"span",22),d.qZA()}if(2&te){const ke=d.oxw();d.ekj("mat-empty",ke._control.empty&&!ke._shouldAlwaysFloat())("mat-form-field-empty",ke._control.empty&&!ke._shouldAlwaysFloat())("mat-accent","accent"==ke.color)("mat-warn","warn"==ke.color),d.Q6J("cdkObserveContentDisabled","outline"!=ke.appearance)("id",ke._labelId)("ngSwitch",ke._hasLabel()),d.uIk("for",ke._control.id)("aria-owns",ke._control.id),d.xp6(2),d.Q6J("ngSwitchCase",!1),d.xp6(1),d.Q6J("ngSwitchCase",!0),d.xp6(1),d.Q6J("ngIf",!ke.hideRequiredMarker&&ke._control.required&&!ke._control.disabled)}}function Ee(te,Se){1&te&&(d.TgZ(0,"div",24),d.Hsn(1,4),d.qZA())}function Le(te,Se){if(1&te&&(d.TgZ(0,"div",25),d._UZ(1,"span",26),d.qZA()),2&te){const ke=d.oxw();d.xp6(1),d.ekj("mat-accent","accent"==ke.color)("mat-warn","warn"==ke.color)}}function ge(te,Se){if(1&te&&(d.TgZ(0,"div"),d.Hsn(1,5),d.qZA()),2&te){const ke=d.oxw();d.Q6J("@transitionMessages",ke._subscriptAnimationState)}}function ue(te,Se){if(1&te&&(d.TgZ(0,"div",30),d._uU(1),d.qZA()),2&te){const ke=d.oxw(2);d.Q6J("id",ke._hintLabelId),d.xp6(1),d.Oqu(ke.hintLabel)}}function ee(te,Se){if(1&te&&(d.TgZ(0,"div",27),d.YNc(1,ue,2,2,"div",28),d.Hsn(2,6),d._UZ(3,"div",29),d.Hsn(4,7),d.qZA()),2&te){const ke=d.oxw();d.Q6J("@transitionMessages",ke._subscriptAnimationState),d.xp6(1),d.Q6J("ngIf",ke.hintLabel)}}const se=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],W=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let L=0,he=(()=>{class te{constructor(ke,Ge){this.id="mat-error-"+L++,ke||Ge.nativeElement.setAttribute("aria-live","polite")}}return te.\u0275fac=function(ke){return new(ke||te)(d.$8M("aria-live"),d.Y36(d.SBq))},te.\u0275dir=d.lG2({type:te,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(ke,Ge){2&ke&&d.uIk("id",Ge.id)},inputs:{id:"id"},features:[d._Bn([{provide:r.ab,useExisting:te}])]}),te})(),_e=0;const Z=new d.OlP("MatHint");let Te=(()=>{class te{constructor(){this.align="start",this.id="mat-hint-"+_e++}}return te.\u0275fac=function(ke){return new(ke||te)},te.\u0275dir=d.lG2({type:te,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(ke,Ge){2&ke&&(d.uIk("id",Ge.id)("align",null),d.ekj("mat-form-field-hint-end","end"===Ge.align))},inputs:{align:"align",id:"id"},features:[d._Bn([{provide:Z,useExisting:te}])]}),te})(),w=(()=>{class te{}return te.\u0275fac=function(ke){return new(ke||te)},te.\u0275dir=d.lG2({type:te,selectors:[["mat-label"]]}),te})(),k=(()=>{class te{}return te.\u0275fac=function(ke){return new(ke||te)},te.\u0275dir=d.lG2({type:te,selectors:[["mat-placeholder"]]}),te})(),x=0;const Ne=(0,l.pj)(class{constructor(te){this._elementRef=te}},"primary"),tt=new d.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let We=(()=>{class te extends Ne{get appearance(){return this._appearance}set appearance(ke){const Ge=this._appearance;this._appearance=ke||this._defaults?.appearance||"legacy","outline"===this._appearance&&Ge!==ke&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(ke){this._hideRequiredMarker=(0,E.Ig)(ke)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(ke){this._hintLabel=ke,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(ke){ke!==this._floatLabel&&(this._floatLabel=ke||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(ke){this._explicitFormFieldControl=ke}constructor(ke,Ge,Tt,Et,H,Y,S){super(ke),this._changeDetectorRef=Ge,this._dir=Tt,this._defaults=Et,this._platform=H,this._ngZone=Y,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new m.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+x++,this._labelId="mat-form-field-label-"+x++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==S,this.appearance=Et?.appearance||"legacy",Et&&(this._hideRequiredMarker=Boolean(Et.hideRequiredMarker),Et.color&&(this.color=this.defaultColor=Et.color))}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const ke=this._control;ke.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${ke.controlType}`),ke.stateChanges.pipe((0,n.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),ke.ngControl&&ke.ngControl.valueChanges&&ke.ngControl.valueChanges.pipe((0,i.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,i.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,v.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,n.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,n.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,i.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(ke){const Ge=this._control?this._control.ngControl:null;return Ge&&Ge[ke]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,C.R)(this._label.nativeElement,"transitionend").pipe((0,P.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let ke=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&ke.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Ge=this._hintChildren?this._hintChildren.find(Et=>"start"===Et.align):null,Tt=this._hintChildren?this._hintChildren.find(Et=>"end"===Et.align):null;Ge?ke.push(Ge.id):this._hintLabel&&ke.push(this._hintLabelId),Tt&&ke.push(Tt.id)}else this._errorChildren&&ke.push(...this._errorChildren.map(Ge=>Ge.id));this._control.setDescribedByIds(ke)}}_validateControlChild(){}updateOutlineGap(){const ke=this._label?this._label.nativeElement:null,Ge=this._connectionContainerRef.nativeElement,Tt=".mat-form-field-outline-start",Et=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!ke||!ke.children.length||!ke.textContent.trim()){const Q=Ge.querySelectorAll(`${Tt}, ${Et}`);for(let B=0;B<Q.length;B++)Q[B].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let H=0,Y=0;const S=Ge.querySelectorAll(Tt),K=Ge.querySelectorAll(Et);if(this._label&&this._label.nativeElement.children.length){const Q=Ge.getBoundingClientRect();if(0===Q.width&&0===Q.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const B=this._getStartEnd(Q),re=ke.children,fe=this._getStartEnd(re[0].getBoundingClientRect());let qe=0;for(let $e=0;$e<re.length;$e++)qe+=re[$e].offsetWidth;H=Math.abs(fe-B)-5,Y=qe>0?.75*qe+10:0}for(let Q=0;Q<S.length;Q++)S[Q].style.width=`${H}px`;for(let Q=0;Q<K.length;Q++)K[Q].style.width=`${Y}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(ke){return this._dir&&"rtl"===this._dir.value?ke.right:ke.left}_isAttachedToDOM(){const ke=this._elementRef.nativeElement;if(ke.getRootNode){const Ge=ke.getRootNode();return Ge&&Ge!==ke}return document.documentElement.contains(ke)}}return te.\u0275fac=function(ke){return new(ke||te)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(c.Is,8),d.Y36(tt,8),d.Y36(I.t4),d.Y36(d.R0b),d.Y36(d.QbO,8))},te.\u0275cmp=d.Xpm({type:te,selectors:[["mat-form-field"]],contentQueries:function(ke,Ge,Tt){if(1&ke&&(d.Suo(Tt,r.Eo,5),d.Suo(Tt,r.Eo,7),d.Suo(Tt,w,5),d.Suo(Tt,w,7),d.Suo(Tt,k,5),d.Suo(Tt,r.ab,5),d.Suo(Tt,Z,5),d.Suo(Tt,r.Px,5),d.Suo(Tt,r.Ve,5)),2&ke){let Et;d.iGM(Et=d.CRH())&&(Ge._controlNonStatic=Et.first),d.iGM(Et=d.CRH())&&(Ge._controlStatic=Et.first),d.iGM(Et=d.CRH())&&(Ge._labelChildNonStatic=Et.first),d.iGM(Et=d.CRH())&&(Ge._labelChildStatic=Et.first),d.iGM(Et=d.CRH())&&(Ge._placeholderChild=Et.first),d.iGM(Et=d.CRH())&&(Ge._errorChildren=Et),d.iGM(Et=d.CRH())&&(Ge._hintChildren=Et),d.iGM(Et=d.CRH())&&(Ge._prefixChildren=Et),d.iGM(Et=d.CRH())&&(Ge._suffixChildren=Et)}},viewQuery:function(ke,Ge){if(1&ke&&(d.Gf(q,7),d.Gf(D,5),d.Gf(M,5)),2&ke){let Tt;d.iGM(Tt=d.CRH())&&(Ge._connectionContainerRef=Tt.first),d.iGM(Tt=d.CRH())&&(Ge._inputContainerRef=Tt.first),d.iGM(Tt=d.CRH())&&(Ge._label=Tt.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(ke,Ge){2&ke&&d.ekj("mat-form-field-appearance-standard","standard"==Ge.appearance)("mat-form-field-appearance-fill","fill"==Ge.appearance)("mat-form-field-appearance-outline","outline"==Ge.appearance)("mat-form-field-appearance-legacy","legacy"==Ge.appearance)("mat-form-field-invalid",Ge._control.errorState)("mat-form-field-can-float",Ge._canLabelFloat())("mat-form-field-should-float",Ge._shouldLabelFloat())("mat-form-field-has-label",Ge._hasFloatingLabel())("mat-form-field-hide-placeholder",Ge._hideControlPlaceholder())("mat-form-field-disabled",Ge._control.disabled)("mat-form-field-autofilled",Ge._control.autofilled)("mat-focused",Ge._control.focused)("ng-untouched",Ge._shouldForward("untouched"))("ng-touched",Ge._shouldForward("touched"))("ng-pristine",Ge._shouldForward("pristine"))("ng-dirty",Ge._shouldForward("dirty"))("ng-valid",Ge._shouldForward("valid"))("ng-invalid",Ge._shouldForward("invalid"))("ng-pending",Ge._shouldForward("pending"))("_mat-animation-noopable",!Ge._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[d._Bn([{provide:r.G_,useExisting:te}]),d.qOj],ngContentSelectors:W,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(ke,Ge){1&ke&&(d.F$t(se),d.TgZ(0,"div",0)(1,"div",1,2),d.NdJ("click",function(Et){return Ge._control.onContainerClick&&Ge._control.onContainerClick(Et)}),d.YNc(3,T,9,0,"ng-container",3),d.YNc(4,F,2,1,"div",4),d.TgZ(5,"div",5,6),d.Hsn(7),d.TgZ(8,"span",7),d.YNc(9,ye,5,16,"label",8),d.qZA()(),d.YNc(10,Ee,2,0,"div",9),d.qZA(),d.YNc(11,Le,2,4,"div",10),d.TgZ(12,"div",11),d.YNc(13,ge,2,1,"div",12),d.YNc(14,ee,5,2,"div",13),d.qZA()()),2&ke&&(d.xp6(3),d.Q6J("ngIf","outline"==Ge.appearance),d.xp6(1),d.Q6J("ngIf",Ge._prefixChildren.length),d.xp6(5),d.Q6J("ngIf",Ge._hasFloatingLabel()),d.xp6(1),d.Q6J("ngIf",Ge._suffixChildren.length),d.xp6(1),d.Q6J("ngIf","outline"!=Ge.appearance),d.xp6(1),d.Q6J("ngSwitch",Ge._getDisplayedMessages()),d.xp6(1),d.Q6J("ngSwitchCase","error"),d.xp6(1),d.Q6J("ngSwitchCase","hint"))},dependencies:[e.O5,e.RF,e.n9,t.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}.mat-form-field .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-button-base,.mat-form-field .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-form-field .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon{font-size:1em;display:inline-block;margin:-2px 0 1px}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-icon-button{font-size:inherit;width:1.5em;height:1.5em;padding:0}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon{line-height:1.5em;margin:0}.mat-form-field .mat-datepicker-toggle .mat-mdc-button-base{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-datepicker-toggle .mat-mdc-button-base{vertical-align:baseline}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[r.TN.transitionMessages]},changeDetection:0}),te})(),ze=(()=>{class te{}return te.\u0275fac=function(ke){return new(ke||te)},te.\u0275dir=d.lG2({type:te,selectors:[["","matPrefix",""]],features:[d._Bn([{provide:r.Px,useExisting:te}])]}),te})(),we=(()=>{class te{}return te.\u0275fac=function(ke){return new(ke||te)},te.\u0275dir=d.lG2({type:te,selectors:[["","matSuffix",""]],features:[d._Bn([{provide:r.Ve,useExisting:te}])]}),te})(),Ye=(()=>{class te{}return te.\u0275fac=function(ke){return new(ke||te)},te.\u0275mod=d.oAB({type:te}),te.\u0275inj=d.cJS({imports:[e.ez,l.BQ,t.Q8,l.BQ]}),te})()},54449:(St,be,s)=>{"use strict";s.d(be,{k0:()=>E,x4:()=>m});var t=s(73991),e=s(41084),d=s(96229),l=s(4692),r=s(24e3),c=s(52051);let E=(()=>{class v extends e.Nt{constructor(){super(...arguments),this._legacyFormField=(0,t.f3M)(d.G_,{optional:!0})}_getPlaceholder(){const n=this._legacyFormField;return n&&"legacy"===n.appearance&&!n._hasLabel?.()?null:this.placeholder}}return v.\u0275fac=function(){let C;return function(i){return(C||(C=t.n5z(v)))(i||v)}}(),v.\u0275dir=t.lG2({type:v,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:15,hostBindings:function(n,i){2&n&&(t.uIk("data-placeholder",i.placeholder),t.ekj("mat-input-server",i._isServer)("mat-mdc-input-element",!1)("mat-mdc-form-field-textarea-control",!1)("mat-mdc-form-field-input-control",!1)("mdc-text-field__input",!1)("mat-mdc-native-select-inline",!1)("mat-native-select-inline",i._isInlineSelect()))},exportAs:["matInput"],features:[t._Bn([{provide:d.Eo,useExisting:v}]),t.qOj]}),v})(),m=(()=>{class v{}return v.\u0275fac=function(n){return new(n||v)},v.\u0275mod=t.oAB({type:v}),v.\u0275inj=t.cJS({providers:[c.rD],imports:[r.Ky,l.wp,c.BQ,r.Ky,l.wp]}),v})()},82918:(St,be,s)=>{"use strict";s.d(be,{Zj:()=>qt,ap:()=>lt,gR:()=>Vt,O$:()=>Nt,kh:()=>Pt});var t=s(17774),e=s(73991),d=s(52051),l=s(45903),m=(s(71329),s(22292),s(50805),s(68264)),C=(s(5547),s(70232)),n=s(71106),i=s(20849),P=s(15645),I=s(30003);const Ge=new e.OlP("MatList");var $e=s(41743),et=s(9);const ot=["*"],ct='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}',It=["text"];function fr(Jt,kt){if(1&Jt&&e._UZ(0,"mat-pseudo-checkbox",5),2&Jt){const Me=e.oxw();e.Q6J("state",Me.selected?"checked":"unchecked")("disabled",Me.disabled)}}const yt=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],dr=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],bt=(0,d.Id)((0,d.Kr)(class{}));let qt=(()=>{class Jt extends bt{constructor(Me){super(),this._elementRef=Me,this._stateChanges=new m.x,"action-list"===this._getListType()&&(Me.nativeElement.classList.add("mat-action-list"),Me.nativeElement.setAttribute("role","group"))}_getListType(){const Me=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===Me?"list":"mat-action-list"===Me?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Jt.\u0275fac=function(Me){return new(Me||Jt)(e.Y36(e.SBq))},Jt.\u0275cmp=e.Xpm({type:Jt,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[e._Bn([{provide:Ge,useExisting:Jt}]),e.qOj,e.TTD],ngContentSelectors:ot,decls:1,vars:0,template:function(Me,ut){1&Me&&(e.F$t(),e.Hsn(0))},styles:[ct],encapsulation:2,changeDetection:0}),Jt})(),br=(()=>{class Jt{}return Jt.\u0275fac=function(Me){return new(Me||Jt)},Jt.\u0275dir=e.lG2({type:Jt,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Jt})(),lt=(()=>{class Jt{}return Jt.\u0275fac=function(Me){return new(Me||Jt)},Jt.\u0275dir=e.lG2({type:Jt,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Jt})();const U=(0,d.Kr)(class{}),ne=(0,d.Kr)(class{}),Re={provide:P.JU,useExisting:(0,e.Gpc)(()=>Pt),multi:!0};class Xe{constructor(kt,Me){this.source=kt,this.options=Me}}let Nt=(()=>{class Jt extends ne{get color(){return this._color||this.selectionList.color}set color(Me){this._color=Me}get value(){return this._value}set value(Me){this.selected&&!this.selectionList.compareWith(Me,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=Me}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(Me){const ut=(0,l.Ig)(Me);ut!==this._disabled&&(this._disabled=ut,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(Me){const ut=(0,l.Ig)(Me);ut!==this._selected&&(this._setSelected(ut),(ut||this.selectionList.multiple)&&this.selectionList._reportValueChange())}constructor(Me,ut,nt){super(),this._element=Me,this._changeDetector=ut,this.selectionList=nt,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.selectedChange=new e.vpe,this.checkboxPosition="after",this._inputsInitialized=!1}ngOnInit(){const Me=this.selectionList;Me._value&&Me._value.some(nt=>Me.compareWith(this._value,nt))&&this._setSelected(!0);const ut=this._selected;Promise.resolve().then(()=>{(this._selected||ut)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){(0,d.E0)(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const Me=this._hasFocus,ut=this.selectionList._removeOptionFromList(this);Me&&ut&&ut.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){!this.disabled&&(this.selectionList.multiple||!this.selected)&&(this.toggle(),this.selectionList._emitChangeEvent([this]))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(Me){return Me!==this._selected&&(this._selected=Me,Me?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this.selectedChange.emit(Me),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return Jt.\u0275fac=function(Me){return new(Me||Jt)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36((0,e.Gpc)(()=>Pt)))},Jt.\u0275cmp=e.Xpm({type:Jt,selectors:[["mat-list-option"]],contentQueries:function(Me,ut,nt){if(1&Me&&(e.Suo(nt,br,5),e.Suo(nt,lt,5),e.Suo(nt,d.X2,5)),2&Me){let Ht;e.iGM(Ht=e.CRH())&&(ut._avatar=Ht.first),e.iGM(Ht=e.CRH())&&(ut._icon=Ht.first),e.iGM(Ht=e.CRH())&&(ut._lines=Ht)}},viewQuery:function(Me,ut){if(1&Me&&e.Gf(It,5),2&Me){let nt;e.iGM(nt=e.CRH())&&(ut._text=nt.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(Me,ut){1&Me&&e.NdJ("focus",function(){return ut._handleFocus()})("blur",function(){return ut._handleBlur()})("click",function(){return ut._handleClick()}),2&Me&&(e.uIk("aria-selected",ut.selected)("aria-disabled",ut.disabled)("tabindex",-1),e.ekj("mat-list-item-disabled",ut.disabled)("mat-list-item-with-avatar",ut._avatar||ut._icon)("mat-primary","primary"===ut.color)("mat-accent","primary"!==ut.color&&"warn"!==ut.color)("mat-warn","warn"===ut.color)("mat-list-single-selected-option",ut.selected&&!ut.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[e.qOj],ngContentSelectors:dr,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(Me,ut){1&Me&&(e.F$t(yt),e.TgZ(0,"div",0),e._UZ(1,"div",1),e.YNc(2,fr,1,2,"mat-pseudo-checkbox",2),e.TgZ(3,"div",3,4),e.Hsn(5),e.qZA(),e.Hsn(6,1),e.qZA()),2&Me&&(e.ekj("mat-list-item-content-reverse","after"==ut.checkboxPosition),e.xp6(1),e.Q6J("matRippleTrigger",ut._getHostElement())("matRippleDisabled",ut._isRippleDisabled()),e.xp6(1),e.Q6J("ngIf",ut.selectionList.multiple))},dependencies:[d.wG,d.nP,t.O5],encapsulation:2,changeDetection:0}),Jt})(),Pt=(()=>{class Jt extends U{get disabled(){return this._disabled}set disabled(Me){this._disabled=(0,l.Ig)(Me),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(Me){const ut=(0,l.Ig)(Me);ut!==this._multiple&&(this._multiple=ut,this.selectedOptions=new n.Ov(this._multiple,this.selectedOptions.selected))}constructor(Me,ut,nt){super(),this._element=Me,this._changeDetector=ut,this._focusMonitor=nt,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new e.vpe,this.color="accent",this.compareWith=(Ht,pr)=>Ht===pr,this._disabled=!1,this.selectedOptions=new n.Ov(this._multiple),this._tabIndex=-1,this._onChange=Ht=>{},this._destroyed=new m.x,this._onTouched=()=>{}}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new C.Em(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.subscribe(()=>this._allowFocusEscape()),this.options.changes.pipe((0,$e.O)(null),(0,I.R)(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe((0,I.R)(this._destroyed)).subscribe(Me=>{if(Me.added)for(let ut of Me.added)ut.selected=!0;if(Me.removed)for(let ut of Me.removed)ut.selected=!1}),this._focusMonitor.monitor(this._element).pipe((0,I.R)(this._destroyed)).subscribe(Me=>{if("keyboard"===Me||"program"===Me){let ut=0;for(let nt=0;nt<this.options.length;nt++)if(this.options.get(nt)?.selected){ut=nt;break}this._keyManager.setActiveItem(ut)}})}ngOnChanges(Me){const ut=Me.disableRipple,nt=Me.color;(ut&&!ut.firstChange||nt&&!nt.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._keyManager?.destroy(),this._focusMonitor.stopMonitoring(this._element),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(Me){this._element.nativeElement.focus(Me)}selectAll(){return this._setAllOptionsSelected(!0)}deselectAll(){return this._setAllOptionsSelected(!1)}_setFocusedOption(Me){this._keyManager.updateActiveItem(Me)}_removeOptionFromList(Me){const ut=this._getOptionIndex(Me);return ut>-1&&this._keyManager.activeItemIndex===ut&&(ut>0?this._keyManager.updateActiveItem(ut-1):0===ut&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(ut+1,this.options.length-1))),this._keyManager.activeItem}_keydown(Me){const ut=Me.keyCode,nt=this._keyManager,Ht=nt.activeItemIndex,pr=(0,i.Vb)(Me);switch(ut){case i.L_:case i.K5:!pr&&!nt.isTyping()&&(this._toggleFocusedOption(),Me.preventDefault());break;default:if(ut===i.A&&this.multiple&&(0,i.Vb)(Me,"ctrlKey")&&!nt.isTyping()){const Lr=this.options.some(Kr=>!Kr.disabled&&!Kr.selected);this._setAllOptionsSelected(Lr,!0,!0),Me.preventDefault()}else nt.onKeydown(Me)}this.multiple&&(ut===i.LH||ut===i.JH)&&Me.shiftKey&&nt.activeItemIndex!==Ht&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const Me=this._getSelectedOptionValues();this._onChange(Me),this._value=Me}}_emitChangeEvent(Me){this.selectionChange.emit(new Xe(this,Me))}writeValue(Me){this._value=Me,this.options&&this._setOptionsFromValues(Me||[])}setDisabledState(Me){this.disabled=Me}registerOnChange(Me){this._onChange=Me}registerOnTouched(Me){this._onTouched=Me}_setOptionsFromValues(Me){this.options.forEach(ut=>ut._setSelected(!1)),Me.forEach(ut=>{const nt=this.options.find(Ht=>!Ht.selected&&this.compareWith(Ht.value,ut));nt&&nt._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(Me=>Me.selected).map(Me=>Me.value)}_toggleFocusedOption(){let Me=this._keyManager.activeItemIndex;if(null!=Me&&this._isValidIndex(Me)){let ut=this.options.toArray()[Me];ut&&!ut.disabled&&(this._multiple||!ut.selected)&&(ut.toggle(),this._emitChangeEvent([ut]))}}_setAllOptionsSelected(Me,ut,nt){const Ht=[];return this.options.forEach(pr=>{(!ut||!pr.disabled)&&pr._setSelected(Me)&&Ht.push(pr)}),Ht.length&&(this._reportValueChange(),nt&&this._emitChangeEvent(Ht)),Ht}_isValidIndex(Me){return Me>=0&&Me<this.options.length}_getOptionIndex(Me){return this.options.toArray().indexOf(Me)}_markOptionsForCheck(){this.options&&this.options.forEach(Me=>Me._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return Jt.\u0275fac=function(Me){return new(Me||Jt)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(C.tE))},Jt.\u0275cmp=e.Xpm({type:Jt,selectors:[["mat-selection-list"]],contentQueries:function(Me,ut,nt){if(1&Me&&e.Suo(nt,Nt,5),2&Me){let Ht;e.iGM(Ht=e.CRH())&&(ut.options=Ht)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(Me,ut){1&Me&&e.NdJ("keydown",function(Ht){return ut._keydown(Ht)}),2&Me&&e.uIk("aria-multiselectable",ut.multiple)("aria-disabled",ut.disabled.toString())("tabindex",ut._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[e._Bn([Re]),e.qOj,e.TTD],ngContentSelectors:ot,decls:1,vars:0,template:function(Me,ut){1&Me&&(e.F$t(),e.Hsn(0))},styles:[ct],encapsulation:2,changeDetection:0}),Jt})(),Vt=(()=>{class Jt{}return Jt.\u0275fac=function(Me){return new(Me||Jt)},Jt.\u0275mod=e.oAB({type:Jt}),Jt.\u0275inj=e.cJS({imports:[d.uc,d.si,d.BQ,d.us,t.ez,d.uc,d.BQ,d.us,et.t]}),Jt})()},17145:(St,be,s)=>{"use strict";s.d(be,{W0:()=>re,tN:()=>fe,jT:()=>et,D8:()=>qe});var t=s(73991),e=s(70232),d=s(45903),l=s(20849),r=s(68264),c=s(50805),E=s(22292),m=s(95195),v=s(57421),C=s(41743),n=s(81565),i=s(32653),P=s(30003),I=s(9754),q=s(48376),D=s(52051),M=s(17774),T=s(27444),F=s(96191),le=s(88793),V=s(58153),de=s(71329);const ye=["mat-menu-item",""];function Ee(ot,ct){1&ot&&(t.O4$(),t.TgZ(0,"svg",3),t._UZ(1,"polygon",4),t.qZA())}const Le=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],ge=["mat-icon, [matMenuItemIcon]","*"],se=new t.OlP("MAT_MENU_PANEL"),W=(0,D.Kr)((0,D.Id)(class{}));let L=(()=>{class ot extends W{constructor(pt,$t,It,fr,yt){super(),this._elementRef=pt,this._document=$t,this._focusMonitor=It,this._parentMenu=fr,this._changeDetectorRef=yt,this.role="menuitem",this._hovered=new r.x,this._focused=new r.x,this._highlighted=!1,this._triggersSubmenu=!1,fr?.addItem?.(this)}focus(pt,$t){this._focusMonitor&&pt?this._focusMonitor.focusVia(this._getHostElement(),pt,$t):this._getHostElement().focus($t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(pt){this.disabled&&(pt.preventDefault(),pt.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const pt=this._elementRef.nativeElement.cloneNode(!0),$t=pt.querySelectorAll("mat-icon, .material-icons");for(let It=0;It<$t.length;It++)$t[It].remove();return pt.textContent?.trim()||""}_setHighlighted(pt){this._highlighted=pt,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(pt){this._triggersSubmenu=pt,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return ot.\u0275fac=function(pt){return new(pt||ot)(t.Y36(t.SBq),t.Y36(M.K0),t.Y36(e.tE),t.Y36(se,8),t.Y36(t.sBO))},ot.\u0275cmp=t.Xpm({type:ot,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator","mdc-list-item"],hostVars:8,hostBindings:function(pt,$t){1&pt&&t.NdJ("click",function(fr){return $t._checkDisabled(fr)})("mouseenter",function(){return $t._handleMouseEnter()}),2&pt&&(t.uIk("role",$t.role)("tabindex",$t._getTabIndex())("aria-disabled",$t.disabled)("disabled",$t.disabled||null),t.ekj("mat-mdc-menu-item-highlighted",$t._highlighted)("mat-mdc-menu-item-submenu-trigger",$t._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[t.qOj],attrs:ye,ngContentSelectors:ge,decls:5,vars:3,consts:[[1,"mdc-list-item__primary-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(pt,$t){1&pt&&(t.F$t(Le),t.Hsn(0),t.TgZ(1,"span",0),t.Hsn(2,1),t.qZA(),t._UZ(3,"div",1),t.YNc(4,Ee,2,0,"svg",2)),2&pt&&(t.xp6(3),t.Q6J("matRippleDisabled",$t.disableRipple||$t.disabled)("matRippleTrigger",$t._getHostElement()),t.xp6(1),t.Q6J("ngIf",$t._triggersSubmenu))},dependencies:[M.O5,D.wG],encapsulation:2,changeDetection:0}),ot})();const Te=new t.OlP("MatMenuContent"),x={transformMenu:(0,F.X$)("transformMenu",[(0,F.SB)("void",(0,F.oB)({opacity:0,transform:"scale(0.8)"})),(0,F.eR)("void => enter",(0,F.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,F.oB)({opacity:1,transform:"scale(1)"}))),(0,F.eR)("* => void",(0,F.jt)("100ms 25ms linear",(0,F.oB)({opacity:0})))]),fadeInItems:(0,F.X$)("fadeInItems",[(0,F.SB)("showing",(0,F.oB)({opacity:1})),(0,F.eR)("void => *",[(0,F.oB)({opacity:0}),(0,F.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ne=0;const tt=new t.OlP("mat-menu-default-options",{providedIn:"root",factory:function We(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let ze=(()=>{class ot{get xPosition(){return this._xPosition}set xPosition(pt){this._xPosition=pt,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(pt){this._yPosition=pt,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(pt){this._overlapTrigger=(0,d.Ig)(pt)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(pt){this._hasBackdrop=(0,d.Ig)(pt)}set panelClass(pt){const $t=this._previousPanelClass;$t&&$t.length&&$t.split(" ").forEach(It=>{this._classList[It]=!1}),this._previousPanelClass=pt,pt&&pt.length&&(pt.split(" ").forEach(It=>{this._classList[It]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(pt){this.panelClass=pt}constructor(pt,$t,It,fr){this._elementRef=pt,this._ngZone=$t,this._defaultOptions=It,this._changeDetectorRef=fr,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new t.n_E,this._classList={},this._panelAnimationState="void",this._animationDone=new r.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new t.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Ne++}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,C.O)(this._directDescendantItems),(0,n.w)(pt=>(0,c.T)(...pt.map($t=>$t._focused)))).subscribe(pt=>this._keyManager.updateActiveItem(pt)),this._directDescendantItems.changes.subscribe(pt=>{const $t=this._keyManager;if("enter"===this._panelAnimationState&&$t.activeItem?._hasFocus()){const It=pt.toArray(),fr=Math.max(0,Math.min(It.length-1,$t.activeItemIndex||0));It[fr]&&!It[fr].disabled?$t.setActiveItem(fr):$t.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,C.O)(this._directDescendantItems),(0,n.w)($t=>(0,c.T)(...$t.map(It=>It._hovered))))}addItem(pt){}removeItem(pt){}_handleKeydown(pt){const $t=pt.keyCode,It=this._keyManager;switch($t){case l.hY:(0,l.Vb)(pt)||(pt.preventDefault(),this.closed.emit("keydown"));break;case l.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case l.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return($t===l.LH||$t===l.JH)&&It.setFocusOrigin("keyboard"),void It.onKeydown(pt)}pt.stopPropagation()}focusFirstItem(pt="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,i.q)(1)).subscribe(()=>{let $t=null;if(this._directDescendantItems.length&&($t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!$t||!$t.contains(document.activeElement)){const It=this._keyManager;It.setFocusOrigin(pt).setFirstItemActive(),!It.activeItem&&$t&&$t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(pt){const $t=Math.min(this._baseElevation+pt,24),It=`${this._elevationPrefix}${$t}`,fr=Object.keys(this._classList).find(yt=>yt.startsWith(this._elevationPrefix));(!fr||fr===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[It]=!0,this._previousElevation=It)}setPositionClasses(pt=this.xPosition,$t=this.yPosition){const It=this._classList;It["mat-menu-before"]="before"===pt,It["mat-menu-after"]="after"===pt,It["mat-menu-above"]="above"===$t,It["mat-menu-below"]="below"===$t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(pt){this._animationDone.next(pt),this._isAnimating=!1}_onAnimationStart(pt){this._isAnimating=!0,"enter"===pt.toState&&0===this._keyManager.activeItemIndex&&(pt.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,C.O)(this._allItems)).subscribe(pt=>{this._directDescendantItems.reset(pt.filter($t=>$t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ot.\u0275fac=function(pt){return new(pt||ot)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(tt),t.Y36(t.sBO))},ot.\u0275dir=t.lG2({type:ot,contentQueries:function(pt,$t,It){if(1&pt&&(t.Suo(It,Te,5),t.Suo(It,L,5),t.Suo(It,L,4)),2&pt){let fr;t.iGM(fr=t.CRH())&&($t.lazyContent=fr.first),t.iGM(fr=t.CRH())&&($t._allItems=fr),t.iGM(fr=t.CRH())&&($t.items=fr)}},viewQuery:function(pt,$t){if(1&pt&&t.Gf(t.Rgc,5),2&pt){let It;t.iGM(It=t.CRH())&&($t.templateRef=It.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),ot})();const Ye=new t.OlP("mat-menu-scroll-strategy"),Se={provide:Ye,deps:[V.aV],useFactory:function te(ot){return()=>ot.scrollStrategies.reposition()}},ke=(0,de.i$)({passive:!0});let Tt=(()=>{class ot{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(pt){this.menu=pt}get menu(){return this._menu}set menu(pt){pt!==this._menu&&(this._menu=pt,this._menuCloseSubscription.unsubscribe(),pt&&(this._menuCloseSubscription=pt.close.subscribe($t=>{this._destroyMenu($t),("click"===$t||"tab"===$t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit($t)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(pt,$t,It,fr,yt,dr,bt,ar,vt){this._overlay=pt,this._element=$t,this._viewContainerRef=It,this._menuItemInstance=dr,this._dir=bt,this._focusMonitor=ar,this._ngZone=vt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=E.w0.EMPTY,this._hoverSubscription=E.w0.EMPTY,this._menuCloseSubscription=E.w0.EMPTY,this._changeDetectorRef=(0,t.f3M)(t.sBO),this._handleTouchStart=qt=>{(0,e.yG)(qt)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new t.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new t.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=fr,this._parentMaterialMenu=yt instanceof ze?yt:void 0,$t.nativeElement.addEventListener("touchstart",this._handleTouchStart,ke)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,ke),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const pt=this.menu;if(this._menuOpen||!pt)return;const $t=this._createOverlay(pt),It=$t.getConfig(),fr=It.positionStrategy;this._setPosition(pt,fr),It.hasBackdrop=null==pt.hasBackdrop?!this.triggersSubmenu():pt.hasBackdrop,$t.attach(this._getPortal(pt)),pt.lazyContent&&pt.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(pt),pt instanceof ze&&(pt._startAnimation(),pt._directDescendantItems.changes.pipe((0,P.R)(pt.close)).subscribe(()=>{fr.withLockedPosition(!1).reapplyLastPosition(),fr.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(pt,$t){this._focusMonitor&&pt?this._focusMonitor.focusVia(this._element,pt,$t):this._element.nativeElement.focus($t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(pt){if(!this._overlayRef||!this.menuOpen)return;const $t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===pt||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,$t instanceof ze?($t._resetAnimation(),$t.lazyContent?$t._animationDone.pipe((0,I.h)(It=>"void"===It.toState),(0,i.q)(1),(0,P.R)($t.lazyContent._attached)).subscribe({next:()=>$t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),$t?.lazyContent?.detach())}_initMenu(pt){pt.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,pt.direction=this.dir,this._setMenuElevation(pt),pt.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(pt){if(pt.setElevation){let $t=0,It=pt.parentMenu;for(;It;)$t++,It=It.parentMenu;pt.setElevation($t)}}_setIsMenuOpen(pt){pt!==this._menuOpen&&(this._menuOpen=pt,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(pt),this._changeDetectorRef.markForCheck())}_createOverlay(pt){if(!this._overlayRef){const $t=this._getOverlayConfig(pt);this._subscribeToPositions(pt,$t.positionStrategy),this._overlayRef=this._overlay.create($t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(pt){return new V.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:pt.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:pt.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(pt,$t){pt.setPositionClasses&&$t.positionChanges.subscribe(It=>{const fr="start"===It.connectionPair.overlayX?"after":"before",yt="top"===It.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>pt.setPositionClasses(fr,yt)):pt.setPositionClasses(fr,yt)})}_setPosition(pt,$t){let[It,fr]="before"===pt.xPosition?["end","start"]:["start","end"],[yt,dr]="above"===pt.yPosition?["bottom","top"]:["top","bottom"],[bt,ar]=[yt,dr],[vt,qt]=[It,fr],br=0;if(this.triggersSubmenu()){if(qt=It="before"===pt.xPosition?"start":"end",fr=vt="end"===It?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const lt=this._parentMaterialMenu.items.first;this._parentInnerPadding=lt?lt._getHostElement().offsetTop:0}br="bottom"===yt?this._parentInnerPadding:-this._parentInnerPadding}}else pt.overlapTrigger||(bt="top"===yt?"bottom":"top",ar="top"===dr?"bottom":"top");$t.withPositions([{originX:It,originY:bt,overlayX:vt,overlayY:yt,offsetY:br},{originX:fr,originY:bt,overlayX:qt,overlayY:yt,offsetY:br},{originX:It,originY:ar,overlayX:vt,overlayY:dr,offsetY:-br},{originX:fr,originY:ar,overlayX:qt,overlayY:dr,offsetY:-br}])}_menuClosingActions(){const pt=this._overlayRef.backdropClick(),$t=this._overlayRef.detachments(),It=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,m.of)(),fr=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,I.h)(yt=>yt!==this._menuItemInstance),(0,I.h)(()=>this._menuOpen)):(0,m.of)();return(0,c.T)(pt,It,fr,$t)}_handleMousedown(pt){(0,e.X6)(pt)||(this._openedBy=0===pt.button?"mouse":void 0,this.triggersSubmenu()&&pt.preventDefault())}_handleKeydown(pt){const $t=pt.keyCode;($t===l.K5||$t===l.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&($t===l.SV&&"ltr"===this.dir||$t===l.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(pt){this.triggersSubmenu()?(pt.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,I.h)(pt=>pt===this._menuItemInstance&&!pt.disabled),(0,q.g)(0,v.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ze&&this.menu._isAnimating?this.menu._animationDone.pipe((0,i.q)(1),(0,q.g)(0,v.E),(0,P.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(pt){return(!this._portal||this._portal.templateRef!==pt.templateRef)&&(this._portal=new T.UE(pt.templateRef,this._viewContainerRef)),this._portal}}return ot.\u0275fac=function(pt){return new(pt||ot)(t.Y36(V.aV),t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(Ye),t.Y36(se,8),t.Y36(L,10),t.Y36(le.Is,8),t.Y36(e.tE),t.Y36(t.R0b))},ot.\u0275dir=t.lG2({type:ot,hostVars:3,hostBindings:function(pt,$t){1&pt&&t.NdJ("click",function(fr){return $t._handleClick(fr)})("mousedown",function(fr){return $t._handleMousedown(fr)})("keydown",function(fr){return $t._handleKeydown(fr)}),2&pt&&t.uIk("aria-haspopup",$t.menu?"menu":null)("aria-expanded",$t.menuOpen)("aria-controls",$t.menuOpen?$t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),ot})();var Y=s(9620);function S(ot,ct){if(1&ot){const pt=t.EpF();t.TgZ(0,"div",0),t.NdJ("keydown",function(It){t.CHM(pt);const fr=t.oxw();return t.KtG(fr._handleKeydown(It))})("click",function(){t.CHM(pt);const It=t.oxw();return t.KtG(It.closed.emit("click"))})("@transformMenu.start",function(It){t.CHM(pt);const fr=t.oxw();return t.KtG(fr._onAnimationStart(It))})("@transformMenu.done",function(It){t.CHM(pt);const fr=t.oxw();return t.KtG(fr._onAnimationDone(It))}),t.TgZ(1,"div",1),t.Hsn(2),t.qZA()()}if(2&ot){const pt=t.oxw();t.Q6J("id",pt.panelId)("ngClass",pt._classList)("@transformMenu",pt._panelAnimationState),t.uIk("aria-label",pt.ariaLabel||null)("aria-labelledby",pt.ariaLabelledby||null)("aria-describedby",pt.ariaDescribedby||null)}}const K=["*"],Q=["mat-menu-item",""];function B(ot,ct){1&ot&&(t.O4$(),t.TgZ(0,"svg",2),t._UZ(1,"polygon",3),t.qZA())}let re=(()=>{class ot extends ze{constructor(pt,$t,It,fr){super(pt,$t,It,fr),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ot.\u0275fac=function(pt){return new(pt||ot)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(tt),t.Y36(t.sBO))},ot.\u0275cmp=t.Xpm({type:ot,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(pt,$t){2&pt&&t.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[t._Bn([{provide:se,useExisting:ot}]),t.qOj],ngContentSelectors:K,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(pt,$t){1&pt&&(t.F$t(),t.YNc(0,S,3,6,"ng-template"))},dependencies:[M.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[x.transformMenu,x.fadeInItems]},changeDetection:0}),ot})(),fe=(()=>{class ot extends L{}return ot.\u0275fac=function(){let ct;return function($t){return(ct||(ct=t.n5z(ot)))($t||ot)}}(),ot.\u0275cmp=t.Xpm({type:ot,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:20,hostBindings:function(pt,$t){2&pt&&(t.uIk("role",$t.role)("tabindex",$t._getTabIndex())("aria-disabled",$t.disabled.toString())("disabled",$t.disabled||null),t.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",$t._highlighted)("mat-menu-item-submenu-trigger",$t._triggersSubmenu)("mat-mdc-menu-item",!1)("mat-mdc-focus-indicator",!1)("mdc-list-item",!1)("mat-mdc-menu-item-highlighted",!1)("mat-mdc-menu-item-submenu-trigger",!1))},inputs:{disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matMenuItem"],features:[t._Bn([{provide:L,useExisting:ot}]),t.qOj],attrs:Q,ngContentSelectors:K,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(pt,$t){1&pt&&(t.F$t(),t.Hsn(0),t._UZ(1,"div",0),t.YNc(2,B,2,0,"svg",1)),2&pt&&(t.xp6(1),t.Q6J("matRippleDisabled",$t.disableRipple||$t.disabled)("matRippleTrigger",$t._getHostElement()),t.xp6(1),t.Q6J("ngIf",$t._triggersSubmenu))},dependencies:[M.O5,D.wG],encapsulation:2,changeDetection:0}),ot})(),qe=(()=>{class ot extends Tt{}return ot.\u0275fac=function(){let ct;return function($t){return(ct||(ct=t.n5z(ot)))($t||ot)}}(),ot.\u0275dir=t.lG2({type:ot,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[t.qOj]}),ot})(),et=(()=>{class ot{}return ot.\u0275fac=function(pt){return new(pt||ot)},ot.\u0275mod=t.oAB({type:ot}),ot.\u0275inj=t.cJS({providers:[Se],imports:[M.ez,D.BQ,D.si,V.U8,Y.ZD,D.BQ]}),ot})()},47108:(St,be,s)=>{"use strict";s.d(be,{cl:()=>se,gf:()=>W});var t=s(17774),e=s(73991),d=s(52051),l=s(43073),r=s(80398),c=s(58153),E=s(70232),m=s(9620),v=s(88793),C=s(75999),n=s(71329),i=s(31180);s(96191);const I=["tooltip"];let q=(()=>{class L extends i.xT{constructor(_e,Z,Te,w,k,x,z,j,Ne,tt,We,ze){super(_e,Z,Te,w,k,x,z,j,Ne,tt,We,ze),this._tooltipComponent=D}}return L.\u0275fac=function(_e){return new(_e||L)(e.Y36(c.aV),e.Y36(e.SBq),e.Y36(m.mF),e.Y36(e.s_b),e.Y36(e.R0b),e.Y36(n.t4),e.Y36(E.$s),e.Y36(E.tE),e.Y36(i.cV),e.Y36(v.Is,8),e.Y36(i.Jm,8),e.Y36(t.K0))},L.\u0275dir=e.lG2({type:L,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[e.qOj]}),L})(),D=(()=>{class L extends i.tr{constructor(_e,Z,Te){super(_e,Te),this._breakpointObserver=Z,this._isHandset=this._breakpointObserver.observe(C.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return L.\u0275fac=function(_e){return new(_e||L)(e.Y36(e.sBO),e.Y36(C.Yg),e.Y36(e.QbO,8))},L.\u0275cmp=e.Xpm({type:L,selectors:[["mat-tooltip-component"]],viewQuery:function(_e,Z){if(1&_e&&e.Gf(I,7),2&_e){let Te;e.iGM(Te=e.CRH())&&(Z._tooltip=Te.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(_e,Z){1&_e&&e.NdJ("mouseleave",function(w){return Z._handleMouseLeave(w)}),2&_e&&e.Udp("zoom",Z.isVisible()?1:null)},features:[e.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(_e,Z){if(1&_e&&(e.TgZ(0,"div",0,1),e.NdJ("animationend",function(w){return Z._handleAnimationEnd(w)}),e.ALo(2,"async"),e._uU(3),e.qZA()),2&_e){let Te;e.ekj("mat-tooltip-handset",null==(Te=e.lcZ(2,4,Z._isHandset))?null:Te.matches),e.Q6J("ngClass",Z.tooltipClass),e.xp6(3),e.Oqu(Z.message)}},dependencies:[t.mk,t.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),L})(),M=(()=>{class L{}return L.\u0275fac=function(_e){return new(_e||L)},L.\u0275mod=e.oAB({type:L}),L.\u0275inj=e.cJS({providers:[i.Mp],imports:[E.rt,t.ez,c.U8,d.BQ,d.BQ,m.ZD]}),L})();var F=s(64652),le=s(4692),V=s(26191);function de(L,he){if(1&L&&(e.TgZ(0,"mat-option",19),e._uU(1),e.qZA()),2&L){const _e=he.$implicit;e.Q6J("value",_e),e.xp6(1),e.hij(" ",_e," ")}}function ye(L,he){if(1&L){const _e=e.EpF();e.TgZ(0,"mat-form-field",16)(1,"mat-select",17),e.NdJ("selectionChange",function(Te){e.CHM(_e);const w=e.oxw(2);return e.KtG(w._changePageSize(Te.value))}),e.YNc(2,de,2,2,"mat-option",18),e.qZA()()}if(2&L){const _e=e.oxw(2);e.Q6J("appearance",_e._formFieldAppearance)("color",_e.color),e.xp6(1),e.Q6J("value",_e.pageSize)("disabled",_e.disabled)("panelClass",_e.selectConfig.panelClass||"")("disableOptionCentering",_e.selectConfig.disableOptionCentering)("aria-label",_e._intl.itemsPerPageLabel),e.xp6(1),e.Q6J("ngForOf",_e._displayedPageSizeOptions)}}function Ee(L,he){if(1&L&&(e.TgZ(0,"div",20),e._uU(1),e.qZA()),2&L){const _e=e.oxw(2);e.xp6(1),e.Oqu(_e.pageSize)}}function Le(L,he){if(1&L&&(e.TgZ(0,"div",12)(1,"div",13),e._uU(2),e.qZA(),e.YNc(3,ye,3,8,"mat-form-field",14),e.YNc(4,Ee,2,1,"div",15),e.qZA()),2&L){const _e=e.oxw();e.xp6(2),e.hij(" ",_e._intl.itemsPerPageLabel," "),e.xp6(1),e.Q6J("ngIf",_e._displayedPageSizeOptions.length>1),e.xp6(1),e.Q6J("ngIf",_e._displayedPageSizeOptions.length<=1)}}function ge(L,he){if(1&L){const _e=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){e.CHM(_e);const Te=e.oxw();return e.KtG(Te.firstPage())}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",22),e.qZA()()}if(2&L){const _e=e.oxw();e.Q6J("matTooltip",_e._intl.firstPageLabel)("matTooltipDisabled",_e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",_e._previousButtonsDisabled()),e.uIk("aria-label",_e._intl.firstPageLabel)}}function ue(L,he){if(1&L){const _e=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(_e);const Te=e.oxw();return e.KtG(Te.lastPage())}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",24),e.qZA()()}if(2&L){const _e=e.oxw();e.Q6J("matTooltip",_e._intl.lastPageLabel)("matTooltipDisabled",_e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",_e._nextButtonsDisabled()),e.uIk("aria-label",_e._intl.lastPageLabel)}}const ee=new e.OlP("MAT_LEGACY_PAGINATOR_DEFAULT_OPTIONS");let se=(()=>{class L extends F.n7{constructor(_e,Z,Te){super(_e,Z,Te),Te&&null!=Te.formFieldAppearance&&(this._formFieldAppearance=Te.formFieldAppearance)}}return L.\u0275fac=function(_e){return new(_e||L)(e.Y36(F.ye),e.Y36(e.sBO),e.Y36(ee,8))},L.\u0275cmp=e.Xpm({type:L,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[e.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(_e,Z){1&_e&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Le,5,3,"div",2),e.TgZ(3,"div",3)(4,"div",4),e._uU(5),e.qZA(),e.YNc(6,ge,3,5,"button",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return Z.previousPage()}),e.O4$(),e.TgZ(8,"svg",7),e._UZ(9,"path",8),e.qZA()(),e.kcU(),e.TgZ(10,"button",9),e.NdJ("click",function(){return Z.nextPage()}),e.O4$(),e.TgZ(11,"svg",7),e._UZ(12,"path",10),e.qZA()(),e.YNc(13,ue,3,5,"button",11),e.qZA()()()),2&_e&&(e.xp6(2),e.Q6J("ngIf",!Z.hidePageSize),e.xp6(3),e.hij(" ",Z._intl.getRangeLabel(Z.pageIndex,Z.pageSize,Z.length)," "),e.xp6(1),e.Q6J("ngIf",Z.showFirstLastButtons),e.xp6(1),e.Q6J("matTooltip",Z._intl.previousPageLabel)("matTooltipDisabled",Z._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Z._previousButtonsDisabled()),e.uIk("aria-label",Z._intl.previousPageLabel),e.xp6(3),e.Q6J("matTooltip",Z._intl.nextPageLabel)("matTooltipDisabled",Z._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Z._nextButtonsDisabled()),e.uIk("aria-label",Z._intl.nextPageLabel),e.xp6(3),e.Q6J("ngIf",Z.showFirstLastButtons))},dependencies:[t.sg,t.O5,l.eB,le.v_,r.x8,V.CK,q],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),L})(),W=(()=>{class L{}return L.\u0275fac=function(_e){return new(_e||L)},L.\u0275mod=e.oAB({type:L}),L.\u0275inj=e.cJS({providers:[F.ik],imports:[t.ez,l.yu,r.uw,M,d.BQ]}),L})()},16124:(St,be,s)=>{"use strict";s.d(be,{eI:()=>T,jc:()=>le});var t=s(73991),e=s(17774),d=s(52051),l=s(45903);const r=new t.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),c=new t.OlP("mat-progress-bar-location",{providedIn:"root",factory:function E(){const V=(0,t.f3M)(e.K0),de=V?V.location:null;return{getPathname:()=>de?de.pathname+de.search:""}}});var i=s(22292),P=s(74845),I=s(9754);const q=["primaryValueBar"],D=(0,d.pj)(class{constructor(V){this._elementRef=V}},"primary");let M=0,T=(()=>{class V extends D{constructor(ye,Ee,Le,ge,ue,ee){super(ye),this._ngZone=Ee,this._animationMode=Le,this._changeDetectorRef=ee,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new t.vpe,this._animationEndSubscription=i.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+M++;const se=ge?ge.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${se}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===Le,ue&&(ue.color&&(this.color=this.defaultColor=ue.color),this.mode=ue.mode||this.mode)}get value(){return this._value}set value(ye){this._value=F((0,l.su)(ye)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(ye){this._bufferValue=F(ye||0),this._changeDetectorRef?.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const ye=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,P.R)(ye,"transitionend").pipe((0,I.h)(Ee=>Ee.target===ye)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return V.\u0275fac=function(ye){return new(ye||V)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.QbO,8),t.Y36(c,8),t.Y36(r,8),t.Y36(t.sBO))},V.\u0275cmp=t.Xpm({type:V,selectors:[["mat-progress-bar"]],viewQuery:function(ye,Ee){if(1&ye&&t.Gf(q,5),2&ye){let Le;t.iGM(Le=t.CRH())&&(Ee._primaryValueBar=Le.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(ye,Ee){2&ye&&(t.uIk("aria-valuenow","indeterminate"===Ee.mode||"query"===Ee.mode?null:Ee.value)("mode",Ee.mode),t.ekj("_mat-animation-noopable",Ee._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[t.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(ye,Ee){1&ye&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),t._UZ(4,"circle",3),t.qZA()(),t._UZ(5,"rect",4),t.qZA(),t.kcU(),t._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),t.qZA()),2&ye&&(t.xp6(3),t.Q6J("id",Ee.progressbarId),t.xp6(2),t.uIk("fill",Ee._rectangleFillValue),t.xp6(1),t.Q6J("ngStyle",Ee._bufferTransform()),t.xp6(1),t.Q6J("ngStyle",Ee._primaryTransform()))},dependencies:[e.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0}),V})();function F(V,de=0,ye=100){return Math.max(de,Math.min(ye,V))}let le=(()=>{class V{}return V.\u0275fac=function(ye){return new(ye||V)},V.\u0275mod=t.oAB({type:V}),V.\u0275inj=t.cJS({imports:[e.ez,d.BQ,d.BQ]}),V})()},81560:(St,be,s)=>{"use strict";s.d(be,{sN:()=>Ee,UK:()=>Le});var t=s(45903),e=s(71329),d=s(9620),l=s(17774),r=s(73991),c=s(52051);const C=new r.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function n(){return{diameter:i}}}),i=100;var M=s(22292);function T(ue,ee){if(1&ue&&(r.O4$(),r._UZ(0,"circle",4)),2&ue){const se=r.oxw(),W=r.MAs(1);r.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+se._spinnerAnimationLabel)("stroke-dashoffset",se._getStrokeDashOffset(),"px")("stroke-dasharray",se._getStrokeCircumference(),"px")("stroke-width",se._getCircleStrokeWidth(),"%")("transform-origin",se._getCircleTransformOrigin(W)),r.uIk("r",se._getCircleRadius())}}function F(ue,ee){if(1&ue&&(r.O4$(),r._UZ(0,"circle",4)),2&ue){const se=r.oxw(),W=r.MAs(1);r.Udp("stroke-dashoffset",se._getStrokeDashOffset(),"px")("stroke-dasharray",se._getStrokeCircumference(),"px")("stroke-width",se._getCircleStrokeWidth(),"%")("transform-origin",se._getCircleTransformOrigin(W)),r.uIk("r",se._getCircleRadius())}}const de=(0,c.pj)(class{constructor(ue){this._elementRef=ue}},"primary");class Ee extends de{get diameter(){return this._diameter}set diameter(ee){this._diameter=(0,t.su)(ee),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(ee){this._strokeWidth=(0,t.su)(ee)}get value(){return"determinate"===this.mode?this._value:0}set value(ee){this._value=Math.max(0,Math.min(100,(0,t.su)(ee)))}constructor(ee,se,W,L,he,_e,Z,Te){super(ee),this._document=W,this._diameter=100,this._value=0,this._resizeSubscription=M.w0.EMPTY,this.mode="determinate";const w=Ee._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),w.has(W.head)||w.set(W.head,new Set([100])),this._noopAnimations="NoopAnimations"===L&&!!he&&!he._forceAnimations,"mat-spinner"===ee.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),he&&(he.color&&(this.color=this.defaultColor=he.color),he.diameter&&(this.diameter=he.diameter),he.strokeWidth&&(this.strokeWidth=he.strokeWidth)),se.isBrowser&&se.SAFARI&&Z&&_e&&Te&&(this._resizeSubscription=Z.change(150).subscribe(()=>{"indeterminate"===this.mode&&Te.run(()=>_e.markForCheck())}))}ngOnInit(){const ee=this._elementRef.nativeElement;this._styleRoot=(0,e.kV)(ee)||this._document.head,this._attachStyleNode(),ee.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const ee=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${ee} ${ee}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(ee){const se=50*(ee.currentScale??1);return`${se}% ${se}%`}_attachStyleNode(){const ee=this._styleRoot,se=this._diameter,W=Ee._diameters;let L=W.get(ee);if(!L||!L.has(se)){const he=this._document.createElement("style");he.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),he.textContent=this._getAnimationText(),ee.appendChild(he),L||(L=new Set,W.set(ee,L)),L.add(se)}}_getAnimationText(){const ee=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.0001%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,""+.95*ee).replace(/END_VALUE/g,""+.2*ee).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ee._diameters=new WeakMap,Ee.\u0275fac=function(ee){return new(ee||Ee)(r.Y36(r.SBq),r.Y36(e.t4),r.Y36(l.K0,8),r.Y36(r.QbO,8),r.Y36(C),r.Y36(r.sBO),r.Y36(d.rL),r.Y36(r.R0b))},Ee.\u0275cmp=r.Xpm({type:Ee,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(ee,se){2&ee&&(r.uIk("aria-valuemin","determinate"===se.mode?0:null)("aria-valuemax","determinate"===se.mode?100:null)("aria-valuenow","determinate"===se.mode?se.value:null)("mode",se.mode),r.Udp("width",se.diameter,"px")("height",se.diameter,"px"),r.ekj("_mat-animation-noopable",se._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[r.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(ee,se){1&ee&&(r.O4$(),r.TgZ(0,"svg",0,1),r.YNc(2,T,1,11,"circle",2),r.YNc(3,F,1,9,"circle",3),r.qZA()),2&ee&&(r.Udp("width",se.diameter,"px")("height",se.diameter,"px"),r.Q6J("ngSwitch","indeterminate"===se.mode),r.uIk("viewBox",se._getViewBox()),r.xp6(2),r.Q6J("ngSwitchCase",!0),r.xp6(1),r.Q6J("ngSwitchCase",!1))},dependencies:[l.RF,l.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let Le=(()=>{class ue{}return ue.\u0275fac=function(se){return new(se||ue)},ue.\u0275mod=r.oAB({type:ue}),ue.\u0275inj=r.cJS({imports:[c.BQ,l.ez,c.BQ]}),ue})()},79044:(St,be,s)=>{"use strict";s.d(be,{vy:()=>ge,OY:()=>Le,Xo:()=>ue});var t=s(73991),e=s(52051),d=s(70232),l=s(71106),r=s(15645),c=s(45903);const E=["input"];let v=0;class C{constructor(se,W){this.source=se,this.value=W}}const i=new t.OlP("MatRadioGroup"),P=new t.OlP("mat-radio-default-options",{providedIn:"root",factory:function I(){return{color:"accent"}}});let q=(()=>{class ee{get name(){return this._name}set name(W){this._name=W,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(W){this._labelPosition="before"===W?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(W){this._value!==W&&(this._value=W,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(W){this._selected=W,this.value=W?W.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(W){this._disabled=(0,c.Ig)(W),this._markRadiosForCheck()}get required(){return this._required}set required(W){this._required=(0,c.Ig)(W),this._markRadiosForCheck()}constructor(W){this._changeDetector=W,this._value=null,this._name="mat-radio-group-"+v++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new t.vpe}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(W=>{W.name=this.name,W._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(L=>{L.checked=this.value===L.value,L.checked&&(this._selected=L)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new C(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(W=>W._markForCheck())}writeValue(W){this.value=W,this._changeDetector.markForCheck()}registerOnChange(W){this._controlValueAccessorChangeFn=W}registerOnTouched(W){this.onTouched=W}setDisabledState(W){this.disabled=W,this._changeDetector.markForCheck()}}return ee.\u0275fac=function(W){return new(W||ee)(t.Y36(t.sBO))},ee.\u0275dir=t.lG2({type:ee,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),ee})();class D{constructor(se){this._elementRef=se}}const M=(0,e.Kr)((0,e.sb)(D));let T=(()=>{class ee extends M{get checked(){return this._checked}set checked(W){const L=(0,c.Ig)(W);this._checked!==L&&(this._checked=L,L&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!L&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),L&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(W){this._value!==W&&(this._value=W,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===W),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(W){this._labelPosition=W}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(W){this._setDisabled((0,c.Ig)(W))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(W){this._required=(0,c.Ig)(W)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(W){this._color=W}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(W,L,he,_e,Z,Te,w,k){super(L),this._changeDetector=he,this._focusMonitor=_e,this._radioDispatcher=Z,this._providerOverride=w,this._uniqueId="mat-radio-"+ ++v,this.id=this._uniqueId,this.change=new t.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=W,this._noopAnimations="NoopAnimations"===Te,k&&(this.tabIndex=(0,c.su)(k,0))}focus(W,L){L?this._focusMonitor.focusVia(this._inputElement,L,W):this._inputElement.nativeElement.focus(W)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((W,L)=>{W!==this.id&&L===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(W=>{!W&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new C(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(W){W.stopPropagation()}_onInputInteraction(W){if(W.stopPropagation(),!this.checked&&!this.disabled){const L=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),L&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(W){this._onInputInteraction(W),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(W){this._disabled!==W&&(this._disabled=W,this._changeDetector.markForCheck())}_updateTabIndex(){const W=this.radioGroup;let L;if(L=W&&W.selected&&!this.disabled?W.selected===this?this.tabIndex:-1:this.tabIndex,L!==this._previousTabIndex){const he=this._inputElement?.nativeElement;he&&(he.setAttribute("tabindex",L+""),this._previousTabIndex=L)}}}return ee.\u0275fac=function(W){t.$Z()},ee.\u0275dir=t.lG2({type:ee,viewQuery:function(W,L){if(1&W&&t.Gf(E,5),2&W){let he;t.iGM(he=t.CRH())&&(L._inputElement=he.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[t.qOj]}),ee})();const de=function(ee){return{enterDuration:ee}},ye=["*"],Ee={provide:r.JU,useExisting:(0,t.Gpc)(()=>Le),multi:!0};let Le=(()=>{class ee extends q{}return ee.\u0275fac=function(){let se;return function(L){return(se||(se=t.n5z(ee)))(L||ee)}}(),ee.\u0275dir=t.lG2({type:ee,selectors:[["mat-radio-group"]],contentQueries:function(W,L,he){if(1&W&&t.Suo(he,ge,5),2&W){let _e;t.iGM(_e=t.CRH())&&(L._radios=_e)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[t._Bn([Ee,{provide:i,useExisting:ee}]),t.qOj]}),ee})(),ge=(()=>{class ee extends T{constructor(W,L,he,_e,Z,Te,w,k){super(W,L,he,_e,Z,Te,w,k)}}return ee.\u0275fac=function(W){return new(W||ee)(t.Y36(i,8),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(d.tE),t.Y36(l.A8),t.Y36(t.QbO,8),t.Y36(P,8),t.$8M("tabindex"))},ee.\u0275cmp=t.Xpm({type:ee,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(W,L){1&W&&t.NdJ("focus",function(){return L._inputElement.nativeElement.focus()}),2&W&&(t.uIk("tabindex",null)("id",L.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),t.ekj("mat-radio-checked",L.checked)("mat-radio-disabled",L.disabled)("_mat-animation-noopable",L._noopAnimations)("mat-primary","primary"===L.color)("mat-accent","accent"===L.color)("mat-warn","warn"===L.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[t.qOj],ngContentSelectors:ye,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(W,L){if(1&W&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2),t._UZ(3,"span",3)(4,"span",4),t.TgZ(5,"input",5,6),t.NdJ("change",function(_e){return L._onInputInteraction(_e)})("click",function(_e){return L._onInputClick(_e)}),t.qZA(),t.TgZ(7,"span",7),t._UZ(8,"span",8),t.qZA()(),t.TgZ(9,"span",9)(10,"span",10),t._uU(11,"\xa0"),t.qZA(),t.Hsn(12),t.qZA()()),2&W){const he=t.MAs(1);t.uIk("for",L.inputId),t.xp6(5),t.Q6J("id",L.inputId)("checked",L.checked)("disabled",L.disabled)("required",L.required),t.uIk("name",L.name)("value",L.value)("aria-label",L.ariaLabel)("aria-labelledby",L.ariaLabelledby)("aria-describedby",L.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",he)("matRippleDisabled",L._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(17,de,L._noopAnimations?0:150)),t.xp6(2),t.ekj("mat-radio-label-before","before"==L.labelPosition)}},dependencies:[e.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),ee})(),ue=(()=>{class ee{}return ee.\u0275fac=function(W){return new(W||ee)},ee.\u0275mod=t.oAB({type:ee}),ee.\u0275inj=t.cJS({imports:[e.si,e.BQ,e.BQ]}),ee})()},80398:(St,be,s)=>{"use strict";s.d(be,{uw:()=>W,x8:()=>se});var t=s(58153),e=s(17774),d=s(73991),l=s(52051),r=s(26191),c=s(96229),E=s(4692),m=s(9620),v=s(23126),C=s(30003),n=s(32653),i=s(96191);function P(L,he){if(1&L&&(d.TgZ(0,"span",8),d._uU(1),d.qZA()),2&L){const _e=d.oxw();d.xp6(1),d.Oqu(_e.placeholder)}}function I(L,he){if(1&L&&(d.TgZ(0,"span",12),d._uU(1),d.qZA()),2&L){const _e=d.oxw(2);d.xp6(1),d.Oqu(_e.triggerValue)}}function q(L,he){1&L&&d.Hsn(0,0,["*ngSwitchCase","true"])}function D(L,he){if(1&L&&(d.TgZ(0,"span",9),d.YNc(1,I,2,1,"span",10),d.YNc(2,q,1,0,"ng-content",11),d.qZA()),2&L){const _e=d.oxw();d.Q6J("ngSwitch",!!_e.customTrigger),d.xp6(2),d.Q6J("ngSwitchCase",!0)}}function M(L,he){if(1&L){const _e=d.EpF();d.TgZ(0,"div",13)(1,"div",14,15),d.NdJ("@transformPanel.done",function(Te){d.CHM(_e);const w=d.oxw();return d.KtG(w._panelDoneAnimatingStream.next(Te.toState))})("keydown",function(Te){d.CHM(_e);const w=d.oxw();return d.KtG(w._handleKeydown(Te))}),d.Hsn(3,1),d.qZA()()}if(2&L){const _e=d.oxw();d.Q6J("@transformPanelWrap",void 0),d.xp6(1),d.Gre("mat-select-panel ",_e._getPanelTheme(),""),d.Udp("transform-origin",_e._transformOrigin)("font-size",_e._triggerFontSize,"px"),d.Q6J("ngClass",_e.panelClass)("@transformPanel",_e.multiple?"showing-multiple":"showing"),d.uIk("id",_e.id+"-panel")("aria-multiselectable",_e.multiple)("aria-label",_e.ariaLabel||null)("aria-labelledby",_e._getPanelAriaLabelledby())}}const T=[[["mat-select-trigger"]],"*"],F=["mat-select-trigger","*"],le={transformPanelWrap:(0,i.X$)("transformPanelWrap",[(0,i.eR)("* => void",(0,i.IO)("@transformPanel",[(0,i.pV)()],{optional:!0}))]),transformPanel:(0,i.X$)("transformPanel",[(0,i.SB)("void",(0,i.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,i.SB)("showing",(0,i.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,i.SB)("showing-multiple",(0,i.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,i.eR)("void => *",(0,i.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,i.eR)("* => void",(0,i.jt)("100ms 25ms linear",(0,i.oB)({opacity:0})))])},V=256;class ue{constructor(he,_e){this.source=he,this.value=_e}}let se=(()=>{class L extends v.hC{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(_e,Z,Te){const w=this._getItemHeight();return Math.min(Math.max(0,w*_e-Z+w/2),Te)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,C.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,n.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(_e){const Z=(0,l.CB)(_e,this.options,this.optionGroups),Te=this._getItemHeight();this.panel.nativeElement.scrollTop=0===_e&&1===Z?0:(0,l.jH)((_e+Z)*Te,Te,this.panel.nativeElement.scrollTop,V)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(_e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(_e)}_getChangeEvent(_e){return new ue(this,_e)}_getOverlayMinWidth(){return this._triggerRect?.width}_calculateOverlayOffsetX(){const _e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),Z=this._viewportRuler.getViewportSize(),Te=this._isRtl(),w=this.multiple?56:32;let k;if(this.multiple)k=40;else if(this.disableOptionCentering)k=16;else{let j=this._selectionModel.selected[0]||this.options.first;k=j&&j.group?32:16}Te||(k*=-1);const x=0-(_e.left+k-(Te?w:0)),z=_e.right+k-Z.width+(Te?0:w);x>0?k+=x+8:z>0&&(k-=z+8),this._overlayDir.offsetX=Math.round(k),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(_e,Z,Te){const w=this._getItemHeight(),k=(w-this._triggerRect.height)/2,x=Math.floor(V/w);let z;return this.disableOptionCentering?0:(z=0===this._scrollTop?_e*w:this._scrollTop===Te?(_e-(this._getItemCount()-x))*w+(w-(this._getItemCount()*w-V)%w):Z-w/2,Math.round(-1*z-k))}_checkOverlayWithinViewport(_e){const Z=this._getItemHeight(),Te=this._viewportRuler.getViewportSize(),w=this._triggerRect.top-8,k=Te.height-this._triggerRect.bottom-8,x=Math.abs(this._offsetY),j=Math.min(this._getItemCount()*Z,V)-x-this._triggerRect.height;j>k?this._adjustPanelUp(j,k):x>w?this._adjustPanelDown(x,w,_e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(_e,Z){const Te=Math.round(_e-Z);this._scrollTop-=Te,this._offsetY-=Te,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(_e,Z,Te){const w=Math.round(_e-Z);if(this._scrollTop+=w,this._offsetY+=w,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=Te)return this._scrollTop=Te,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const _e=this._getItemHeight(),Z=this._getItemCount(),Te=Math.min(Z*_e,V),k=Z*_e-Te;let x;x=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),x+=(0,l.CB)(x,this.options,this.optionGroups);const z=Te/2;this._scrollTop=this._calculateOverlayScroll(x,z,k),this._offsetY=this._calculateOverlayOffsetY(x,z,k),this._checkOverlayWithinViewport(k)}_getOriginBasedOnOption(){const _e=this._getItemHeight(),Z=(_e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-Z+_e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return L.\u0275fac=function(){let he;return function(Z){return(he||(he=d.n5z(L)))(Z||L)}}(),L.\u0275cmp=d.Xpm({type:L,selectors:[["mat-select"]],contentQueries:function(_e,Z,Te){if(1&_e&&(d.Suo(Te,v.LZ,5),d.Suo(Te,r.CK,5),d.Suo(Te,l.K7,5)),2&_e){let w;d.iGM(w=d.CRH())&&(Z.customTrigger=w.first),d.iGM(w=d.CRH())&&(Z.options=w),d.iGM(w=d.CRH())&&(Z.optionGroups=w)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(_e,Z){1&_e&&d.NdJ("keydown",function(w){return Z._handleKeydown(w)})("focus",function(){return Z._onFocus()})("blur",function(){return Z._onBlur()}),2&_e&&(d.uIk("id",Z.id)("tabindex",Z.tabIndex)("aria-controls",Z.panelOpen?Z.id+"-panel":null)("aria-expanded",Z.panelOpen)("aria-label",Z.ariaLabel||null)("aria-required",Z.required.toString())("aria-disabled",Z.disabled.toString())("aria-invalid",Z.errorState)("aria-activedescendant",Z._getAriaActiveDescendant()),d.ekj("mat-select-disabled",Z.disabled)("mat-select-invalid",Z.errorState)("mat-select-required",Z.required)("mat-select-empty",Z.empty)("mat-select-multiple",Z.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[d._Bn([{provide:c.Eo,useExisting:L},{provide:l.HF,useExisting:L}]),d.qOj],ngContentSelectors:F,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(_e,Z){if(1&_e&&(d.F$t(T),d.TgZ(0,"div",0,1),d.NdJ("click",function(){return Z.toggle()}),d.TgZ(3,"div",2),d.YNc(4,P,2,1,"span",3),d.YNc(5,D,3,2,"span",4),d.qZA(),d.TgZ(6,"div",5),d._UZ(7,"div",6),d.qZA()(),d.YNc(8,M,4,14,"ng-template",7),d.NdJ("backdropClick",function(){return Z.close()})("attach",function(){return Z._onAttached()})("detach",function(){return Z.close()})),2&_e){const Te=d.MAs(1);d.uIk("aria-owns",Z.panelOpen?Z.id+"-panel":null),d.xp6(3),d.Q6J("ngSwitch",Z.empty),d.uIk("id",Z._valueId),d.xp6(1),d.Q6J("ngSwitchCase",!0),d.xp6(1),d.Q6J("ngSwitchCase",!1),d.xp6(3),d.Q6J("cdkConnectedOverlayPanelClass",Z._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",Z._scrollStrategy)("cdkConnectedOverlayOrigin",Te)("cdkConnectedOverlayOpen",Z.panelOpen)("cdkConnectedOverlayPositions",Z._positions)("cdkConnectedOverlayMinWidth",Z._getOverlayMinWidth())("cdkConnectedOverlayOffsetY",Z._offsetY)}},dependencies:[e.mk,e.RF,e.n9,e.ED,t.pI,t.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[le.transformPanelWrap,le.transformPanel]},changeDetection:0}),L})(),W=(()=>{class L{}return L.\u0275fac=function(_e){return new(_e||L)},L.\u0275mod=d.oAB({type:L}),L.\u0275inj=d.cJS({providers:[v.Ep],imports:[e.ez,t.U8,r.Uc,l.BQ,m.ZD,E.wp,r.Uc,l.BQ]}),L})()},70431:(St,be,s)=>{"use strict";s.d(be,{pl:()=>q,y:()=>I});var t=s(58153),e=s(27444),d=s(17774),l=s(73991),r=s(52051),c=s(43073),E=s(50682),m=s(70232),v=s(75999);function C(D,M){if(1&D){const T=l.EpF();l.TgZ(0,"div",2)(1,"button",3),l.NdJ("click",function(){l.CHM(T);const le=l.oxw();return l.KtG(le.action())}),l._uU(2),l.qZA()()}if(2&D){const T=l.oxw();l.xp6(2),l.Oqu(T.data.action)}}function n(D,M){}let i=(()=>{class D{constructor(T,F){this.snackBarRef=T,this.data=F}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return D.\u0275fac=function(T){return new(T||D)(l.Y36(E.OX),l.Y36(E.qD))},D.\u0275cmp=l.Xpm({type:D,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(T,F){1&T&&(l.TgZ(0,"span",0),l._uU(1),l.qZA(),l.YNc(2,C,3,1,"div",1)),2&T&&(l.xp6(1),l.Oqu(F.data.message),l.xp6(1),l.Q6J("ngIf",F.hasAction))},dependencies:[d.O5,c.eB],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),D})(),P=(()=>{class D extends E.xi{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return D.\u0275fac=function(){let M;return function(F){return(M||(M=l.n5z(D)))(F||D)}}(),D.\u0275cmp=l.Xpm({type:D,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(T,F){1&T&&l.WFA("@state.done",function(V){return F.onAnimationEnd(V)}),2&T&&l.d8E("@state",F._animationState)},features:[l.qOj],decls:3,vars:3,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(T,F){1&T&&(l.TgZ(0,"div",0),l.YNc(1,n,0,0,"ng-template",1),l.qZA(),l._UZ(2,"div")),2&T&&(l.xp6(2),l.uIk("aria-live",F._live)("role",F._role)("id",F._liveElementId))},dependencies:[e.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[E.Et.snackBarState]}}),D})(),I=(()=>{class D{}return D.\u0275fac=function(T){return new(T||D)},D.\u0275mod=l.oAB({type:D}),D.\u0275inj=l.cJS({imports:[t.U8,e.eL,d.ez,c.yu,r.BQ,r.BQ]}),D})(),q=(()=>{class D extends E.rA{constructor(T,F,le,V,de,ye){super(T,F,le,V,de,ye),this.simpleSnackBarComponent=i,this.snackBarContainerComponent=P,this.handsetCssClass="mat-snack-bar-handset"}}return D.\u0275fac=function(T){return new(T||D)(l.LFG(t.aV),l.LFG(m.Kd),l.LFG(l.zs3),l.LFG(v.Yg),l.LFG(D,12),l.LFG(E.Ve))},D.\u0275prov=l.Yz7({token:D,factory:D.\u0275fac,providedIn:I}),D})()},36442:(St,be,s)=>{"use strict";s.d(be,{R7:()=>Ti,Ql:()=>un,SK:()=>ie,gz:()=>mn,Nn:()=>ri});var t=s(70232),e=s(5547),d=s(27444),l=s(17774),r=s(73991),c=s(52051),E=s(32653),m=s(88793),v=s(22292),C=s(68264),n=s(74845),i=s(95195),P=s(50805),I=s(38440),q=s(44070),D=s(81953),M=s(41743),T=s(40354),F=s(30003),le=s(81565),V=s(94276),de=s(9754),ye=s(96191),Ee=s(45903),Le=s(9620),ge=s(71329),ue=s(20849);function ee(Sr,Er){}const se=function(Sr){return{animationDuration:Sr}},W=function(Sr,Er){return{value:Sr,params:Er}},te={translateTab:(0,ye.X$)("translateTab",[(0,ye.SB)("center, void, left-origin-center, right-origin-center",(0,ye.oB)({transform:"none"})),(0,ye.SB)("left",(0,ye.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,ye.SB)("right",(0,ye.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,ye.eR)("* => left, * => right, left => center, right => center",(0,ye.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,ye.eR)("void => left-origin-center",[(0,ye.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,ye.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,ye.eR)("void => right-origin-center",[(0,ye.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,ye.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Se=(()=>{class Sr extends d.Pl{constructor(Ot,lr,Cr,Gr){super(Ot,lr,Gr),this._host=Cr,this._centeringSub=v.w0.EMPTY,this._leavingSub=v.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,M.O)(this._host._isCenterPosition(this._host._position))).subscribe(Ot=>{Ot&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Sr.\u0275fac=function(Ot){return new(Ot||Sr)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36((0,r.Gpc)(()=>Ge)),r.Y36(l.K0))},Sr.\u0275dir=r.lG2({type:Sr,selectors:[["","matTabBodyHost",""]],features:[r.qOj]}),Sr})(),ke=(()=>{class Sr{set position(Ot){this._positionIndex=Ot,this._computePositionAnimationState()}constructor(Ot,lr,Cr){this._elementRef=Ot,this._dir=lr,this._dirChangeSubscription=v.w0.EMPTY,this._translateTabComplete=new C.x,this._onCentering=new r.vpe,this._beforeCentering=new r.vpe,this._afterLeavingCenter=new r.vpe,this._onCentered=new r.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,lr&&(this._dirChangeSubscription=lr.change.subscribe(Gr=>{this._computePositionAnimationState(Gr),Cr.markForCheck()})),this._translateTabComplete.pipe((0,T.x)((Gr,Ln)=>Gr.fromState===Ln.fromState&&Gr.toState===Ln.toState)).subscribe(Gr=>{this._isCenterPosition(Gr.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Gr.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Ot){const lr=this._isCenterPosition(Ot.toState);this._beforeCentering.emit(lr),lr&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Ot){return"center"==Ot||"left-origin-center"==Ot||"right-origin-center"==Ot}_computePositionAnimationState(Ot=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Ot?"left":"right":this._positionIndex>0?"ltr"==Ot?"right":"left":"center"}_computePositionFromOrigin(Ot){const lr=this._getLayoutDirection();return"ltr"==lr&&Ot<=0||"rtl"==lr&&Ot>0?"left-origin-center":"right-origin-center"}}return Sr.\u0275fac=function(Ot){return new(Ot||Sr)(r.Y36(r.SBq),r.Y36(m.Is,8),r.Y36(r.sBO))},Sr.\u0275dir=r.lG2({type:Sr,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Sr})(),Ge=(()=>{class Sr extends ke{constructor(Ot,lr,Cr){super(Ot,lr,Cr)}}return Sr.\u0275fac=function(Ot){return new(Ot||Sr)(r.Y36(r.SBq),r.Y36(m.Is,8),r.Y36(r.sBO))},Sr.\u0275cmp=r.Xpm({type:Sr,selectors:[["mat-tab-body"]],viewQuery:function(Ot,lr){if(1&Ot&&r.Gf(d.Pl,5),2&Ot){let Cr;r.iGM(Cr=r.CRH())&&(lr._portalHost=Cr.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[r.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Ot,lr){1&Ot&&(r.TgZ(0,"div",0,1),r.NdJ("@translateTab.start",function(Gr){return lr._onTranslateTabStarted(Gr)})("@translateTab.done",function(Gr){return lr._translateTabComplete.next(Gr)}),r.YNc(2,ee,0,0,"ng-template",2),r.qZA()),2&Ot&&r.Q6J("@translateTab",r.WLB(3,W,lr._position,r.VKq(1,se,lr.animationDuration)))},dependencies:[Se],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[te.translateTab]}}),Sr})();const Tt=new r.OlP("MatTabContent");let Et=(()=>{class Sr{constructor(Ot){this.template=Ot}}return Sr.\u0275fac=function(Ot){return new(Ot||Sr)(r.Y36(r.Rgc))},Sr.\u0275dir=r.lG2({type:Sr,selectors:[["","matTabContent",""]],features:[r._Bn([{provide:Tt,useExisting:Sr}])]}),Sr})();const H=new r.OlP("MatTabLabel"),Y=new r.OlP("MAT_TAB");let S=(()=>{class Sr extends d.ig{constructor(Ot,lr,Cr){super(Ot,lr),this._closestTab=Cr}}return Sr.\u0275fac=function(Ot){return new(Ot||Sr)(r.Y36(r.Rgc),r.Y36(r.s_b),r.Y36(Y,8))},Sr.\u0275dir=r.lG2({type:Sr,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[r._Bn([{provide:H,useExisting:Sr}]),r.qOj]}),Sr})();const qe=new r.OlP("MatInkBarPositioner",{providedIn:"root",factory:function fe(){return Er=>({left:Er?(Er.offsetLeft||0)+"px":"0",width:Er?(Er.offsetWidth||0)+"px":"0"})}}),$e=(0,c.Id)(class{});let et=(()=>{class Sr extends $e{constructor(Ot){super(),this.elementRef=Ot}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Sr.\u0275fac=function(Ot){return new(Ot||Sr)(r.Y36(r.SBq))},Sr.\u0275dir=r.lG2({type:Sr,features:[r.qOj]}),Sr})();const pt=(0,c.Id)(class{}),$t=new r.OlP("MAT_TAB_GROUP");let It=(()=>{class Sr extends pt{get content(){return this._contentPortal}constructor(Ot,lr){super(),this._viewContainerRef=Ot,this._closestTabGroup=lr,this.textLabel="",this._contentPortal=null,this._stateChanges=new C.x,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(Ot){(Ot.hasOwnProperty("textLabel")||Ot.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new d.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Ot){Ot&&Ot._closestTab===this&&(this._templateLabel=Ot)}}return Sr.\u0275fac=function(Ot){return new(Ot||Sr)(r.Y36(r.s_b),r.Y36($t,8))},Sr.\u0275dir=r.lG2({type:Sr,viewQuery:function(Ot,lr){if(1&Ot&&r.Gf(r.Rgc,7),2&Ot){let Cr;r.iGM(Cr=r.CRH())&&(lr._implicitContent=Cr.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[r.qOj,r.TTD]}),Sr})();const yt=(0,ge.i$)({passive:!0});let ar=(()=>{class Sr{get disablePagination(){return this._disablePagination}set disablePagination(Ot){this._disablePagination=(0,Ee.Ig)(Ot)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Ot){Ot=(0,Ee.su)(Ot),this._selectedIndex!=Ot&&(this._selectedIndexChanged=!0,this._selectedIndex=Ot,this._keyManager&&this._keyManager.updateActiveItem(Ot))}constructor(Ot,lr,Cr,Gr,Ln,Xn,ni){this._elementRef=Ot,this._changeDetectorRef=lr,this._viewportRuler=Cr,this._dir=Gr,this._ngZone=Ln,this._platform=Xn,this._animationMode=ni,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new C.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new C.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new r.vpe,this.indexFocused=new r.vpe,Ln.runOutsideAngular(()=>{(0,n.R)(Ot.nativeElement,"mouseleave").pipe((0,F.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,n.R)(this._previousPaginator.nativeElement,"touchstart",yt).pipe((0,F.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,n.R)(this._nextPaginator.nativeElement,"touchstart",yt).pipe((0,F.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Ot=this._dir?this._dir.change:(0,i.of)("ltr"),lr=this._viewportRuler.change(150),Cr=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new t.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,E.q)(1)).subscribe(Cr),(0,P.T)(Ot,lr,this._items.changes,this._itemsResized()).pipe((0,F.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Cr()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(Gr=>{this.indexFocused.emit(Gr),this._setTabFocus(Gr)})}_itemsResized(){return"function"!=typeof ResizeObserver?I.E:this._items.changes.pipe((0,M.O)(this._items),(0,le.w)(Ot=>new q.y(lr=>this._ngZone.runOutsideAngular(()=>{const Cr=new ResizeObserver(Gr=>lr.next(Gr));return Ot.forEach(Gr=>Cr.observe(Gr.elementRef.nativeElement)),()=>{Cr.disconnect()}}))),(0,V.T)(1),(0,de.h)(Ot=>Ot.some(lr=>lr.contentRect.width>0&&lr.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Ot){if(!(0,ue.Vb)(Ot))switch(Ot.keyCode){case ue.K5:case ue.L_:if(this.focusIndex!==this.selectedIndex){const lr=this._items.get(this.focusIndex);lr&&!lr.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Ot))}break;default:this._keyManager.onKeydown(Ot)}}_onContentChanges(){const Ot=this._elementRef.nativeElement.textContent;Ot!==this._currentTextContent&&(this._currentTextContent=Ot||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(Ot){!this._isValidIndex(Ot)||this.focusIndex===Ot||!this._keyManager||this._keyManager.setActiveItem(Ot)}_isValidIndex(Ot){return!this._items||!!this._items.toArray()[Ot]}_setTabFocus(Ot){if(this._showPaginationControls&&this._scrollToLabel(Ot),this._items&&this._items.length){this._items.toArray()[Ot].focus();const lr=this._tabListContainer.nativeElement;lr.scrollLeft="ltr"==this._getLayoutDirection()?0:lr.scrollWidth-lr.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Ot=this.scrollDistance,lr="ltr"===this._getLayoutDirection()?-Ot:Ot;this._tabList.nativeElement.style.transform=`translateX(${Math.round(lr)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Ot){this._scrollTo(Ot)}_scrollHeader(Ot){return this._scrollTo(this._scrollDistance+("before"==Ot?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Ot){this._stopInterval(),this._scrollHeader(Ot)}_scrollToLabel(Ot){if(this.disablePagination)return;const lr=this._items?this._items.toArray()[Ot]:null;if(!lr)return;const Cr=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Gr,offsetWidth:Ln}=lr.elementRef.nativeElement;let Xn,ni;"ltr"==this._getLayoutDirection()?(Xn=Gr,ni=Xn+Ln):(ni=this._tabListInner.nativeElement.offsetWidth-Gr,Xn=ni-Ln);const ta=this.scrollDistance,$a=this.scrollDistance+Cr;Xn<ta?this.scrollDistance-=ta-Xn:ni>$a&&(this.scrollDistance+=Math.min(ni-$a,Xn-ta))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Ot=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Ot||(this.scrollDistance=0),Ot!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Ot}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const Ot=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,lr=Ot?Ot.elementRef.nativeElement:null;lr?this._inkBar.alignToElement(lr):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Ot,lr){lr&&null!=lr.button&&0!==lr.button||(this._stopInterval(),(0,D.H)(650,100).pipe((0,F.R)((0,P.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Cr,distance:Gr}=this._scrollHeader(Ot);(0===Gr||Gr>=Cr)&&this._stopInterval()}))}_scrollTo(Ot){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const lr=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(lr,Ot)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:lr,distance:this._scrollDistance}}}return Sr.\u0275fac=function(Ot){return new(Ot||Sr)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(Le.rL),r.Y36(m.Is,8),r.Y36(r.R0b),r.Y36(ge.t4),r.Y36(r.QbO,8))},Sr.\u0275dir=r.lG2({type:Sr,inputs:{disablePagination:"disablePagination"}}),Sr})(),vt=(()=>{class Sr extends ar{get disableRipple(){return this._disableRipple}set disableRipple(Ot){this._disableRipple=(0,Ee.Ig)(Ot)}constructor(Ot,lr,Cr,Gr,Ln,Xn,ni){super(Ot,lr,Cr,Gr,Ln,Xn,ni),this._disableRipple=!1}_itemSelected(Ot){Ot.preventDefault()}}return Sr.\u0275fac=function(Ot){return new(Ot||Sr)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(Le.rL),r.Y36(m.Is,8),r.Y36(r.R0b),r.Y36(ge.t4),r.Y36(r.QbO,8))},Sr.\u0275dir=r.lG2({type:Sr,inputs:{disableRipple:"disableRipple"},features:[r.qOj]}),Sr})();const br=new r.OlP("MAT_TABS_CONFIG");let lt=0;const De=(0,c.pj)((0,c.Kr)(class{constructor(Sr){this._elementRef=Sr}}),"primary");let G=(()=>{class Sr extends De{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Ot){this._dynamicHeight=(0,Ee.Ig)(Ot)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Ot){this._indexToSelect=(0,Ee.su)(Ot,null)}get animationDuration(){return this._animationDuration}set animationDuration(Ot){this._animationDuration=/^\d+$/.test(Ot+"")?Ot+"ms":Ot}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Ot){this._contentTabIndex=(0,Ee.su)(Ot,null)}get disablePagination(){return this._disablePagination}set disablePagination(Ot){this._disablePagination=(0,Ee.Ig)(Ot)}get preserveContent(){return this._preserveContent}set preserveContent(Ot){this._preserveContent=(0,Ee.Ig)(Ot)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Ot){const lr=this._elementRef.nativeElement.classList;lr.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),Ot&&lr.add("mat-tabs-with-background",`mat-background-${Ot}`),this._backgroundColor=Ot}constructor(Ot,lr,Cr,Gr){super(Ot),this._changeDetectorRef=lr,this._animationMode=Gr,this._tabs=new r.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=v.w0.EMPTY,this._tabLabelSubscription=v.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new r.vpe,this.focusChange=new r.vpe,this.animationDone=new r.vpe,this.selectedTabChange=new r.vpe(!0),this._groupId=lt++,this.animationDuration=Cr&&Cr.animationDuration?Cr.animationDuration:"500ms",this.disablePagination=!(!Cr||null==Cr.disablePagination)&&Cr.disablePagination,this.dynamicHeight=!(!Cr||null==Cr.dynamicHeight)&&Cr.dynamicHeight,this.contentTabIndex=Cr?.contentTabIndex??null,this.preserveContent=!!Cr?.preserveContent}ngAfterContentChecked(){const Ot=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Ot){const lr=null==this._selectedIndex;if(!lr){this.selectedTabChange.emit(this._createChangeEvent(Ot));const Cr=this._tabBodyWrapper.nativeElement;Cr.style.minHeight=Cr.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Cr,Gr)=>Cr.isActive=Gr===Ot),lr||(this.selectedIndexChange.emit(Ot),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((lr,Cr)=>{lr.position=Cr-Ot,null!=this._selectedIndex&&0==lr.position&&!lr.origin&&(lr.origin=Ot-this._selectedIndex)}),this._selectedIndex!==Ot&&(this._selectedIndex=Ot,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Ot=this._clampTabIndex(this._indexToSelect);if(Ot===this._selectedIndex){const lr=this._tabs.toArray();let Cr;for(let Gr=0;Gr<lr.length;Gr++)if(lr[Gr].isActive){this._indexToSelect=this._selectedIndex=Gr,this._lastFocusedTabIndex=null,Cr=lr[Gr];break}!Cr&&lr[Ot]&&Promise.resolve().then(()=>{lr[Ot].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Ot))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,M.O)(this._allTabs)).subscribe(Ot=>{this._tabs.reset(Ot.filter(lr=>lr._closestTabGroup===this||!lr._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(Ot){const lr=this._tabHeader;lr&&(lr.focusIndex=Ot)}_focusChanged(Ot){this._lastFocusedTabIndex=Ot,this.focusChange.emit(this._createChangeEvent(Ot))}_createChangeEvent(Ot){const lr=new ne;return lr.index=Ot,this._tabs&&this._tabs.length&&(lr.tab=this._tabs.toArray()[Ot]),lr}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,P.T)(...this._tabs.map(Ot=>Ot._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Ot){return Math.min(this._tabs.length-1,Math.max(Ot||0,0))}_getTabLabelId(Ot){return`mat-tab-label-${this._groupId}-${Ot}`}_getTabContentId(Ot){return`mat-tab-content-${this._groupId}-${Ot}`}_setTabBodyWrapperHeight(Ot){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const lr=this._tabBodyWrapper.nativeElement;lr.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(lr.style.height=Ot+"px")}_removeTabBodyWrapperHeight(){const Ot=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Ot.clientHeight,Ot.style.height="",this.animationDone.emit()}_handleClick(Ot,lr,Cr){lr.focusIndex=Cr,Ot.disabled||(this.selectedIndex=Cr)}_getTabIndex(Ot){return Ot===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(Ot,lr){Ot&&"mouse"!==Ot&&"touch"!==Ot&&(this._tabHeader.focusIndex=lr)}}return Sr.\u0275fac=function(Ot){return new(Ot||Sr)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(br,8),r.Y36(r.QbO,8))},Sr.\u0275dir=r.lG2({type:Sr,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[r.qOj]}),Sr})();class ne{}function nt(Sr,Er){1&Sr&&r.Hsn(0)}const Ht=["*"];function pr(Sr,Er){}const Lr=function(Sr){return{animationDuration:Sr}},Kr=function(Sr,Er){return{value:Sr,params:Er}},Cn=["tabListContainer"],Wn=["tabList"],zn=["tabListInner"],ti=["nextPaginator"],yr=["previousPaginator"],Jr=["tabBodyWrapper"],wt=["tabHeader"];function nr(Sr,Er){}function tn(Sr,Er){if(1&Sr&&r.YNc(0,nr,0,0,"ng-template",10),2&Sr){const Ot=r.oxw().$implicit;r.Q6J("cdkPortalOutlet",Ot.templateLabel)}}function rn(Sr,Er){if(1&Sr&&r._uU(0),2&Sr){const Ot=r.oxw().$implicit;r.Oqu(Ot.textLabel)}}function vn(Sr,Er){if(1&Sr){const Ot=r.EpF();r.TgZ(0,"div",6),r.NdJ("click",function(){const Cr=r.CHM(Ot),Gr=Cr.$implicit,Ln=Cr.index,Xn=r.oxw(),ni=r.MAs(1);return r.KtG(Xn._handleClick(Gr,ni,Ln))})("cdkFocusChange",function(Cr){const Ln=r.CHM(Ot).index,Xn=r.oxw();return r.KtG(Xn._tabFocusChanged(Cr,Ln))}),r.TgZ(1,"div",7),r.YNc(2,tn,1,1,"ng-template",8),r.YNc(3,rn,1,1,"ng-template",null,9,r.W1O),r.qZA()()}if(2&Sr){const Ot=Er.$implicit,lr=Er.index,Cr=r.MAs(4),Gr=r.oxw();r.ekj("mat-tab-label-active",Gr.selectedIndex===lr),r.Q6J("id",Gr._getTabLabelId(lr))("ngClass",Ot.labelClass)("disabled",Ot.disabled)("matRippleDisabled",Ot.disabled||Gr.disableRipple),r.uIk("tabIndex",Gr._getTabIndex(lr))("aria-posinset",lr+1)("aria-setsize",Gr._tabs.length)("aria-controls",Gr._getTabContentId(lr))("aria-selected",Gr.selectedIndex===lr)("aria-label",Ot.ariaLabel||null)("aria-labelledby",!Ot.ariaLabel&&Ot.ariaLabelledby?Ot.ariaLabelledby:null),r.xp6(2),r.Q6J("ngIf",Ot.templateLabel)("ngIfElse",Cr)}}function Gn(Sr,Er){if(1&Sr){const Ot=r.EpF();r.TgZ(0,"mat-tab-body",11),r.NdJ("_onCentered",function(){r.CHM(Ot);const Cr=r.oxw();return r.KtG(Cr._removeTabBodyWrapperHeight())})("_onCentering",function(Cr){r.CHM(Ot);const Gr=r.oxw();return r.KtG(Gr._setTabBodyWrapperHeight(Cr))}),r.qZA()}if(2&Sr){const Ot=Er.$implicit,lr=Er.index,Cr=r.oxw();r.ekj("mat-tab-body-active",Cr.selectedIndex===lr),r.Q6J("id",Cr._getTabContentId(lr))("ngClass",Ot.bodyClass)("content",Ot.content)("position",Ot.position)("origin",Ot.origin)("animationDuration",Cr.animationDuration)("preserveContent",Cr.preserveContent),r.uIk("tabindex",null!=Cr.contentTabIndex&&Cr.selectedIndex===lr?Cr.contentTabIndex:null)("aria-labelledby",Cr._getTabLabelId(lr))}}let Dn=(()=>{class Sr{constructor(Ot,lr,Cr,Gr){this._elementRef=Ot,this._ngZone=lr,this._inkBarPositioner=Cr,this._animationMode=Gr}alignToElement(Ot){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,E.q)(1)).subscribe(()=>{const lr=this._inkBarPositioner(Ot),Cr=this._elementRef.nativeElement;Cr.style.left=lr.left,Cr.style.width=lr.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Sr.\u0275fac=function(Ot){return new(Ot||Sr)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(qe),r.Y36(r.QbO,8))},Sr.\u0275dir=r.lG2({type:Sr,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Ot,lr){2&Ot&&r.ekj("_mat-animation-noopable","NoopAnimations"===lr._animationMode)}}),Sr})(),Ti=(()=>{class Sr extends It{get templateLabel(){return this._templateLabel}set templateLabel(Ot){this._setTemplateLabelInput(Ot)}}return Sr.\u0275fac=function(){let Er;return function(lr){return(Er||(Er=r.n5z(Sr)))(lr||Sr)}}(),Sr.\u0275cmp=r.Xpm({type:Sr,selectors:[["mat-tab"]],contentQueries:function(Ot,lr,Cr){if(1&Ot&&(r.Suo(Cr,H,5),r.Suo(Cr,Tt,7,r.Rgc)),2&Ot){let Gr;r.iGM(Gr=r.CRH())&&(lr.templateLabel=Gr.first),r.iGM(Gr=r.CRH())&&(lr._explicitContent=Gr.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[r._Bn([{provide:Y,useExisting:Sr}]),r.qOj],ngContentSelectors:Ht,decls:1,vars:0,template:function(Ot,lr){1&Ot&&(r.F$t(),r.YNc(0,nt,1,0,"ng-template"))},encapsulation:2}),Sr})(),Ni=(()=>{class Sr extends Se{constructor(Ot,lr,Cr,Gr){super(Ot,lr,Cr,Gr)}}return Sr.\u0275fac=function(Ot){return new(Ot||Sr)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36((0,r.Gpc)(()=>ci)),r.Y36(l.K0))},Sr.\u0275dir=r.lG2({type:Sr,selectors:[["","matTabBodyHost",""]],features:[r.qOj]}),Sr})(),ci=(()=>{class Sr extends ke{constructor(Ot,lr,Cr){super(Ot,lr,Cr)}}return Sr.\u0275fac=function(Ot){return new(Ot||Sr)(r.Y36(r.SBq),r.Y36(m.Is,8),r.Y36(r.sBO))},Sr.\u0275cmp=r.Xpm({type:Sr,selectors:[["mat-tab-body"]],viewQuery:function(Ot,lr){if(1&Ot&&r.Gf(d.Pl,5),2&Ot){let Cr;r.iGM(Cr=r.CRH())&&(lr._portalHost=Cr.first)}},hostAttrs:[1,"mat-tab-body"],features:[r.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Ot,lr){1&Ot&&(r.TgZ(0,"div",0,1),r.NdJ("@translateTab.start",function(Gr){return lr._onTranslateTabStarted(Gr)})("@translateTab.done",function(Gr){return lr._translateTabComplete.next(Gr)}),r.YNc(2,pr,0,0,"ng-template",2),r.qZA()),2&Ot&&r.Q6J("@translateTab",r.WLB(3,Kr,lr._position,r.VKq(1,Lr,lr.animationDuration)))},dependencies:[Ni],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[te.translateTab]}}),Sr})(),Kt=(()=>{class Sr extends et{}return Sr.\u0275fac=function(){let Er;return function(lr){return(Er||(Er=r.n5z(Sr)))(lr||Sr)}}(),Sr.\u0275dir=r.lG2({type:Sr,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Ot,lr){2&Ot&&(r.uIk("aria-disabled",!!lr.disabled),r.ekj("mat-tab-disabled",lr.disabled))},inputs:{disabled:"disabled"},features:[r.qOj]}),Sr})(),Ar=(()=>{class Sr extends vt{constructor(Ot,lr,Cr,Gr,Ln,Xn,ni){super(Ot,lr,Cr,Gr,Ln,Xn,ni)}}return Sr.\u0275fac=function(Ot){return new(Ot||Sr)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(Le.rL),r.Y36(m.Is,8),r.Y36(r.R0b),r.Y36(ge.t4),r.Y36(r.QbO,8))},Sr.\u0275cmp=r.Xpm({type:Sr,selectors:[["mat-tab-header"]],contentQueries:function(Ot,lr,Cr){if(1&Ot&&r.Suo(Cr,Kt,4),2&Ot){let Gr;r.iGM(Gr=r.CRH())&&(lr._items=Gr)}},viewQuery:function(Ot,lr){if(1&Ot&&(r.Gf(Dn,7),r.Gf(Cn,7),r.Gf(Wn,7),r.Gf(zn,7),r.Gf(ti,5),r.Gf(yr,5)),2&Ot){let Cr;r.iGM(Cr=r.CRH())&&(lr._inkBar=Cr.first),r.iGM(Cr=r.CRH())&&(lr._tabListContainer=Cr.first),r.iGM(Cr=r.CRH())&&(lr._tabList=Cr.first),r.iGM(Cr=r.CRH())&&(lr._tabListInner=Cr.first),r.iGM(Cr=r.CRH())&&(lr._nextPaginator=Cr.first),r.iGM(Cr=r.CRH())&&(lr._previousPaginator=Cr.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Ot,lr){2&Ot&&r.ekj("mat-tab-header-pagination-controls-enabled",lr._showPaginationControls)("mat-tab-header-rtl","rtl"==lr._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[r.qOj],ngContentSelectors:Ht,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Ot,lr){1&Ot&&(r.F$t(),r.TgZ(0,"button",0,1),r.NdJ("click",function(){return lr._handlePaginatorClick("before")})("mousedown",function(Gr){return lr._handlePaginatorPress("before",Gr)})("touchend",function(){return lr._stopInterval()}),r._UZ(2,"div",2),r.qZA(),r.TgZ(3,"div",3,4),r.NdJ("keydown",function(Gr){return lr._handleKeydown(Gr)}),r.TgZ(5,"div",5,6),r.NdJ("cdkObserveContent",function(){return lr._onContentChanges()}),r.TgZ(7,"div",7,8),r.Hsn(9),r.qZA(),r._UZ(10,"mat-ink-bar"),r.qZA()(),r.TgZ(11,"button",9,10),r.NdJ("mousedown",function(Gr){return lr._handlePaginatorPress("after",Gr)})("click",function(){return lr._handlePaginatorClick("after")})("touchend",function(){return lr._stopInterval()}),r._UZ(13,"div",2),r.qZA()),2&Ot&&(r.ekj("mat-tab-header-pagination-disabled",lr._disableScrollBefore),r.Q6J("matRippleDisabled",lr._disableScrollBefore||lr.disableRipple)("disabled",lr._disableScrollBefore||null),r.xp6(5),r.ekj("_mat-animation-noopable","NoopAnimations"===lr._animationMode),r.xp6(6),r.ekj("mat-tab-header-pagination-disabled",lr._disableScrollAfter),r.Q6J("matRippleDisabled",lr._disableScrollAfter||lr.disableRipple)("disabled",lr._disableScrollAfter||null))},dependencies:[c.wG,e.wD,Dn],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),Sr})(),ie=(()=>{class Sr extends G{constructor(Ot,lr,Cr,Gr){super(Ot,lr,Cr,Gr)}}return Sr.\u0275fac=function(Ot){return new(Ot||Sr)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(br,8),r.Y36(r.QbO,8))},Sr.\u0275cmp=r.Xpm({type:Sr,selectors:[["mat-tab-group"]],contentQueries:function(Ot,lr,Cr){if(1&Ot&&r.Suo(Cr,Ti,5),2&Ot){let Gr;r.iGM(Gr=r.CRH())&&(lr._allTabs=Gr)}},viewQuery:function(Ot,lr){if(1&Ot&&(r.Gf(Jr,5),r.Gf(wt,5)),2&Ot){let Cr;r.iGM(Cr=r.CRH())&&(lr._tabBodyWrapper=Cr.first),r.iGM(Cr=r.CRH())&&(lr._tabHeader=Cr.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Ot,lr){2&Ot&&r.ekj("mat-tab-group-dynamic-height",lr.dynamicHeight)("mat-tab-group-inverted-header","below"===lr.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[r._Bn([{provide:$t,useExisting:Sr}]),r.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(Ot,lr){1&Ot&&(r.TgZ(0,"mat-tab-header",0,1),r.NdJ("indexFocused",function(Gr){return lr._focusChanged(Gr)})("selectFocusedIndex",function(Gr){return lr.selectedIndex=Gr}),r.YNc(2,vn,5,15,"div",2),r.qZA(),r.TgZ(3,"div",3,4),r.YNc(5,Gn,1,11,"mat-tab-body",5),r.qZA()),2&Ot&&(r.Q6J("selectedIndex",lr.selectedIndex||0)("disableRipple",lr.disableRipple)("disablePagination",lr.disablePagination),r.xp6(2),r.Q6J("ngForOf",lr._tabs),r.xp6(1),r.ekj("_mat-animation-noopable","NoopAnimations"===lr._animationMode),r.xp6(2),r.Q6J("ngForOf",lr._tabs))},dependencies:[l.mk,l.sg,l.O5,d.Pl,c.wG,t.kH,Kt,ci,Ar],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),Sr})(),mn=(()=>{class Sr extends S{}return Sr.\u0275fac=function(){let Er;return function(lr){return(Er||(Er=r.n5z(Sr)))(lr||Sr)}}(),Sr.\u0275dir=r.lG2({type:Sr,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[r._Bn([{provide:H,useExisting:Sr}]),r.qOj]}),Sr})(),un=(()=>{class Sr extends Et{}return Sr.\u0275fac=function(){let Er;return function(lr){return(Er||(Er=r.n5z(Sr)))(lr||Sr)}}(),Sr.\u0275dir=r.lG2({type:Sr,selectors:[["","matTabContent",""]],features:[r._Bn([{provide:Tt,useExisting:Sr}]),r.qOj]}),Sr})(),ri=(()=>{class Sr{}return Sr.\u0275fac=function(Ot){return new(Ot||Sr)},Sr.\u0275mod=r.oAB({type:Sr}),Sr.\u0275inj=r.cJS({imports:[l.ez,c.BQ,d.eL,c.si,e.Q8,t.rt,c.BQ]}),Sr})()},64652:(St,be,s)=>{"use strict";s.d(be,{ik:()=>P,n7:()=>T,ye:()=>n});var t=s(73991),e=s(68264),d=s(52051),l=s(45903);let n=(()=>{class de{constructor(){this.changes=new e.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(Ee,Le,ge)=>{if(0==ge||0==Le)return`0 of ${ge}`;const ue=Ee*Le;return`${ue+1} \u2013 ${ue<(ge=Math.max(ge,0))?Math.min(ue+Le,ge):ue+Le} of ${ge}`}}}return de.\u0275fac=function(Ee){return new(Ee||de)},de.\u0275prov=t.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})();const P={provide:n,deps:[[new t.FiY,new t.tp0,n]],useFactory:function i(de){return de||new n}},M=(0,d.Id)((0,d.dB)(class{}));let T=(()=>{class de extends M{get pageIndex(){return this._pageIndex}set pageIndex(Ee){this._pageIndex=Math.max((0,l.su)(Ee),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(Ee){this._length=(0,l.su)(Ee),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(Ee){this._pageSize=Math.max((0,l.su)(Ee),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(Ee){this._pageSizeOptions=(Ee||[]).map(Le=>(0,l.su)(Le)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(Ee){this._hidePageSize=(0,l.Ig)(Ee)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(Ee){this._showFirstLastButtons=(0,l.Ig)(Ee)}constructor(Ee,Le,ge){if(super(),this._intl=Ee,this._changeDetectorRef=Le,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new t.vpe,this._intlChanges=Ee.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),ge){const{pageSize:ue,pageSizeOptions:ee,hidePageSize:se,showFirstLastButtons:W}=ge;null!=ue&&(this._pageSize=ue),null!=ee&&(this._pageSizeOptions=ee),null!=se&&(this._hidePageSize=se),null!=W&&(this._showFirstLastButtons=W)}}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const Ee=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(Ee)}previousPage(){if(!this.hasPreviousPage())return;const Ee=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(Ee)}firstPage(){if(!this.hasPreviousPage())return;const Ee=this.pageIndex;this.pageIndex=0,this._emitPageEvent(Ee)}lastPage(){if(!this.hasNextPage())return;const Ee=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(Ee)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const Ee=this.getNumberOfPages()-1;return this.pageIndex<Ee&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(Ee){const ge=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/Ee)||0,this.pageSize=Ee,this._emitPageEvent(ge)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((Ee,Le)=>Ee-Le),this._changeDetectorRef.markForCheck())}_emitPageEvent(Ee){this.page.emit({previousPageIndex:Ee,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return de.\u0275fac=function(Ee){t.$Z()},de.\u0275dir=t.lG2({type:de,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[t.qOj]}),de})()},23126:(St,be,s)=>{"use strict";s.d(be,{Ep:()=>j,LZ:()=>Ne,PG:()=>z,hC:()=>ze});var t=s(58153),e=s(73991),d=s(52051),l=s(96229),r=s(9620),c=s(70232),E=s(88793),m=s(45903),v=s(71106),C=s(20849),n=s(15645),i=s(68264),P=s(92588),I=s(50805),q=s(41743),D=s(81565),M=s(32653),T=s(9754),F=s(87580),le=s(40354),V=s(30003);s(96191);const ye=["trigger"],Ee=["panel"];let w=0;const k=new e.OlP("mat-select-scroll-strategy"),z=new e.OlP("MAT_SELECT_CONFIG"),j={provide:k,deps:[t.aV],useFactory:function x(Se){return()=>Se.scrollStrategies.reposition()}},Ne=new e.OlP("MatSelectTrigger"),We=(0,d.Kr)((0,d.sb)((0,d.Id)((0,d.FD)(class{constructor(Se,ke,Ge,Tt,Et){this._elementRef=Se,this._defaultErrorStateMatcher=ke,this._parentForm=Ge,this._parentFormGroup=Tt,this.ngControl=Et,this.stateChanges=new i.x}}))));let ze=(()=>{class Se extends We{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(Ge){this._placeholder=Ge,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(n.kI.required)??!1}set required(Ge){this._required=(0,m.Ig)(Ge),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(Ge){this._multiple=(0,m.Ig)(Ge)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(Ge){this._disableOptionCentering=(0,m.Ig)(Ge)}get compareWith(){return this._compareWith}set compareWith(Ge){this._compareWith=Ge,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Ge){this._assignValue(Ge)&&this._onChange(Ge)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(Ge){this._typeaheadDebounceInterval=(0,m.su)(Ge)}get id(){return this._id}set id(Ge){this._id=Ge||this._uid,this.stateChanges.next()}constructor(Ge,Tt,Et,H,Y,S,K,Q,B,re,fe,qe,$e,et){super(Y,H,K,Q,re),this._viewportRuler=Ge,this._changeDetectorRef=Tt,this._ngZone=Et,this._dir=S,this._parentFormField=B,this._liveAnnouncer=$e,this._defaultOptions=et,this._panelOpen=!1,this._compareWith=(ot,ct)=>ot===ct,this._uid="mat-select-"+w++,this._triggerAriaLabelledBy=null,this._destroy=new i.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+w++,this._panelDoneAnimatingStream=new i.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,P.P)(()=>{const ot=this.options;return ot?ot.changes.pipe((0,q.O)(ot),(0,D.w)(()=>(0,I.T)(...ot.map(ct=>ct.onSelectionChange)))):this._ngZone.onStable.pipe((0,M.q)(1),(0,D.w)(()=>this.optionSelectionChanges))}),this.openedChange=new e.vpe,this._openedStream=this.openedChange.pipe((0,T.h)(ot=>ot),(0,F.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,T.h)(ot=>!ot),(0,F.U)(()=>{})),this.selectionChange=new e.vpe,this.valueChange=new e.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=et?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=et.typeaheadDebounceInterval),this._scrollStrategyFactory=qe,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(fe)||0,this.id=this.id}ngOnInit(){this._selectionModel=new v.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,le.x)(),(0,V.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,V.R)(this._destroy)).subscribe(Ge=>{Ge.added.forEach(Tt=>Tt.select()),Ge.removed.forEach(Tt=>Tt.deselect())}),this.options.changes.pipe((0,q.O)(null),(0,V.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const Ge=this._getTriggerAriaLabelledby(),Tt=this.ngControl;if(Ge!==this._triggerAriaLabelledBy){const Et=this._elementRef.nativeElement;this._triggerAriaLabelledBy=Ge,Ge?Et.setAttribute("aria-labelledby",Ge):Et.removeAttribute("aria-labelledby")}Tt&&(this._previousControl!==Tt.control&&(void 0!==this._previousControl&&null!==Tt.disabled&&Tt.disabled!==this.disabled&&(this.disabled=Tt.disabled),this._previousControl=Tt.control),this.updateErrorState())}ngOnChanges(Ge){(Ge.disabled||Ge.userAriaDescribedBy)&&this.stateChanges.next(),Ge.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(Ge){this._assignValue(Ge)}registerOnChange(Ge){this._onChange=Ge}registerOnTouched(Ge){this._onTouched=Ge}setDisabledState(Ge){this.disabled=Ge,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const Ge=this._selectionModel.selected.map(Tt=>Tt.viewValue);return this._isRtl()&&Ge.reverse(),Ge.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(Ge){this.disabled||(this.panelOpen?this._handleOpenKeydown(Ge):this._handleClosedKeydown(Ge))}_handleClosedKeydown(Ge){const Tt=Ge.keyCode,Et=Tt===C.JH||Tt===C.LH||Tt===C.oh||Tt===C.SV,H=Tt===C.K5||Tt===C.L_,Y=this._keyManager;if(!Y.isTyping()&&H&&!(0,C.Vb)(Ge)||(this.multiple||Ge.altKey)&&Et)Ge.preventDefault(),this.open();else if(!this.multiple){const S=this.selected;Y.onKeydown(Ge);const K=this.selected;K&&S!==K&&this._liveAnnouncer.announce(K.viewValue,1e4)}}_handleOpenKeydown(Ge){const Tt=this._keyManager,Et=Ge.keyCode,H=Et===C.JH||Et===C.LH,Y=Tt.isTyping();if(H&&Ge.altKey)Ge.preventDefault(),this.close();else if(Y||Et!==C.K5&&Et!==C.L_||!Tt.activeItem||(0,C.Vb)(Ge))if(!Y&&this._multiple&&Et===C.A&&Ge.ctrlKey){Ge.preventDefault();const S=this.options.some(K=>!K.disabled&&!K.selected);this.options.forEach(K=>{K.disabled||(S?K.select():K.deselect())})}else{const S=Tt.activeItemIndex;Tt.onKeydown(Ge),this._multiple&&H&&Ge.shiftKey&&Tt.activeItem&&Tt.activeItemIndex!==S&&Tt.activeItem._selectViaInteraction()}else Ge.preventDefault(),Tt.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,M.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(Ge){if(this.options.forEach(Tt=>Tt.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&Ge)Array.isArray(Ge),Ge.forEach(Tt=>this._selectOptionByValue(Tt)),this._sortValues();else{const Tt=this._selectOptionByValue(Ge);Tt?this._keyManager.updateActiveItem(Tt):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(Ge){const Tt=this.options.find(Et=>{if(this._selectionModel.isSelected(Et))return!1;try{return null!=Et.value&&this._compareWith(Et.value,Ge)}catch{return!1}});return Tt&&this._selectionModel.select(Tt),Tt}_assignValue(Ge){return!!(Ge!==this._value||this._multiple&&Array.isArray(Ge))&&(this.options&&this._setSelectionByValue(Ge),this._value=Ge,!0)}_initKeyManager(){this._keyManager=new c.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const Ge=(0,I.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,V.R)(Ge)).subscribe(Tt=>{this._onSelect(Tt.source,Tt.isUserInput),Tt.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,I.T)(...this.options.map(Tt=>Tt._stateChanges)).pipe((0,V.R)(Ge)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(Ge,Tt){const Et=this._selectionModel.isSelected(Ge);null!=Ge.value||this._multiple?(Et!==Ge.selected&&(Ge.selected?this._selectionModel.select(Ge):this._selectionModel.deselect(Ge)),Tt&&this._keyManager.setActiveItem(Ge),this.multiple&&(this._sortValues(),Tt&&this.focus())):(Ge.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(Ge.value)),Et!==this._selectionModel.isSelected(Ge)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const Ge=this.options.toArray();this._selectionModel.sort((Tt,Et)=>this.sortComparator?this.sortComparator(Tt,Et,Ge):Ge.indexOf(Tt)-Ge.indexOf(Et)),this.stateChanges.next()}}_propagateChanges(Ge){let Tt=null;Tt=this.multiple?this.selected.map(Et=>Et.value):this.selected?this.selected.value:Ge,this._value=Tt,this.valueChange.emit(Tt),this._onChange(Tt),this.selectionChange.emit(this._getChangeEvent(Tt)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(Ge){this._elementRef.nativeElement.focus(Ge)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const Ge=this._parentFormField?.getLabelId();return this.ariaLabelledby?(Ge?Ge+" ":"")+this.ariaLabelledby:Ge}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const Ge=this._parentFormField?.getLabelId();let Tt=(Ge?Ge+" ":"")+this._valueId;return this.ariaLabelledby&&(Tt+=" "+this.ariaLabelledby),Tt}_panelDoneAnimating(Ge){this.openedChange.emit(Ge)}setDescribedByIds(Ge){Ge.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Ge.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Se.\u0275fac=function(Ge){return new(Ge||Se)(e.Y36(r.rL),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(d.rD),e.Y36(e.SBq),e.Y36(E.Is,8),e.Y36(n.F,8),e.Y36(n.sg,8),e.Y36(l.G_,8),e.Y36(n.a5,10),e.$8M("tabindex"),e.Y36(k),e.Y36(c.Kd),e.Y36(z,8))},Se.\u0275dir=e.lG2({type:Se,viewQuery:function(Ge,Tt){if(1&Ge&&(e.Gf(ye,5),e.Gf(Ee,5),e.Gf(t.pI,5)),2&Ge){let Et;e.iGM(Et=e.CRH())&&(Tt.trigger=Et.first),e.iGM(Et=e.CRH())&&(Tt.panel=Et.first),e.iGM(Et=e.CRH())&&(Tt._overlayDir=Et.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[e.qOj,e.TTD]}),Se})()},68287:(St,be,s)=>{"use strict";s.d(be,{LW:()=>x,SJ:()=>ze,jA:()=>z,kh:()=>j});var t=s(9620),e=s(17774),d=s(73991),l=s(52051),r=s(70232),c=s(88793),E=s(45903),m=s(20849),v=s(71329),C=s(68264),n=s(74845),i=s(50805),P=s(9754),I=s(87580),q=s(3532),D=s(30003),M=s(40354),T=s(32653),F=s(41743),le=s(59435),V=s(96191);const de=["*"],ye=["content"];function Ee(we,Ye){if(1&we){const te=d.EpF();d.TgZ(0,"div",2),d.NdJ("click",function(){d.CHM(te);const ke=d.oxw();return d.KtG(ke._onBackdropClicked())}),d.qZA()}if(2&we){const te=d.oxw();d.ekj("mat-drawer-shown",te._isShowingBackdrop())}}function Le(we,Ye){1&we&&(d.TgZ(0,"mat-drawer-content"),d.Hsn(1,2),d.qZA())}const ge=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ue=["mat-drawer","mat-drawer-content","*"],_e={transformDrawer:(0,V.X$)("transform",[(0,V.SB)("open, open-instant",(0,V.oB)({transform:"none",visibility:"visible"})),(0,V.SB)("void",(0,V.oB)({"box-shadow":"none",visibility:"hidden"})),(0,V.eR)("void => open-instant",(0,V.jt)("0ms")),(0,V.eR)("void <=> open, open-instant => void",(0,V.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Te=new d.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function k(){return!1}}),w=new d.OlP("MAT_DRAWER_CONTAINER");let x=(()=>{class we extends t.PQ{constructor(te,Se,ke,Ge,Tt){super(ke,Ge,Tt),this._changeDetectorRef=te,this._container=Se}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return we.\u0275fac=function(te){return new(te||we)(d.Y36(d.sBO),d.Y36((0,d.Gpc)(()=>j)),d.Y36(d.SBq),d.Y36(t.mF),d.Y36(d.R0b))},we.\u0275cmp=d.Xpm({type:we,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(te,Se){2&te&&d.Udp("margin-left",Se._container._contentMargins.left,"px")("margin-right",Se._container._contentMargins.right,"px")},features:[d._Bn([{provide:t.PQ,useExisting:we}]),d.qOj],ngContentSelectors:de,decls:1,vars:0,template:function(te,Se){1&te&&(d.F$t(),d.Hsn(0))},encapsulation:2,changeDetection:0}),we})(),z=(()=>{class we{get position(){return this._position}set position(te){(te="end"===te?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(te),this._position=te,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(te){this._mode=te,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(te){this._disableClose=(0,E.Ig)(te)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(te){("true"===te||"false"===te||null==te)&&(te=(0,E.Ig)(te)),this._autoFocus=te}get opened(){return this._opened}set opened(te){this.toggle((0,E.Ig)(te))}constructor(te,Se,ke,Ge,Tt,Et,H,Y){this._elementRef=te,this._focusTrapFactory=Se,this._focusMonitor=ke,this._platform=Ge,this._ngZone=Tt,this._interactivityChecker=Et,this._doc=H,this._container=Y,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new C.x,this._animationEnd=new C.x,this._animationState="void",this.openedChange=new d.vpe(!0),this._openedStream=this.openedChange.pipe((0,P.h)(S=>S),(0,I.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,P.h)(S=>S.fromState!==S.toState&&0===S.toState.indexOf("open")),(0,q.h)(void 0)),this._closedStream=this.openedChange.pipe((0,P.h)(S=>!S),(0,I.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,P.h)(S=>S.fromState!==S.toState&&"void"===S.toState),(0,q.h)(void 0)),this._destroyed=new C.x,this.onPositionChanged=new d.vpe,this._modeChanged=new C.x,this.openedChange.subscribe(S=>{S?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,n.R)(this._elementRef.nativeElement,"keydown").pipe((0,P.h)(S=>S.keyCode===m.hY&&!this.disableClose&&!(0,m.Vb)(S)),(0,D.R)(this._destroyed)).subscribe(S=>this._ngZone.run(()=>{this.close(),S.stopPropagation(),S.preventDefault()}))}),this._animationEnd.pipe((0,M.x)((S,K)=>S.fromState===K.fromState&&S.toState===K.toState)).subscribe(S=>{const{fromState:K,toState:Q}=S;(0===Q.indexOf("open")&&"void"===K||"void"===Q&&0===K.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(te,Se){this._interactivityChecker.isFocusable(te)||(te.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const ke=()=>{te.removeEventListener("blur",ke),te.removeEventListener("mousedown",ke),te.removeAttribute("tabindex")};te.addEventListener("blur",ke),te.addEventListener("mousedown",ke)})),te.focus(Se)}_focusByCssSelector(te,Se){let ke=this._elementRef.nativeElement.querySelector(te);ke&&this._forceFocus(ke,Se)}_takeFocus(){if(!this._focusTrap)return;const te=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Se=>{!Se&&"function"==typeof this._elementRef.nativeElement.focus&&te.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(te){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,te):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const te=this._doc.activeElement;return!!te&&this._elementRef.nativeElement.contains(te)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(te){return this.toggle(!0,te)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(te=!this.opened,Se){te&&Se&&(this._openedVia=Se);const ke=this._setOpen(te,!te&&this._isFocusWithinDrawer(),this._openedVia||"program");return te||(this._openedVia=null),ke}_setOpen(te,Se,ke){return this._opened=te,te?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",Se&&this._restoreFocus(ke)),this._updateFocusTrapState(),new Promise(Ge=>{this.openedChange.pipe((0,T.q)(1)).subscribe(Tt=>Ge(Tt?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(te){const Se=this._elementRef.nativeElement,ke=Se.parentNode;"end"===te?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),ke.insertBefore(this._anchor,Se)),ke.appendChild(Se)):this._anchor&&this._anchor.parentNode.insertBefore(Se,this._anchor)}}return we.\u0275fac=function(te){return new(te||we)(d.Y36(d.SBq),d.Y36(r.qV),d.Y36(r.tE),d.Y36(v.t4),d.Y36(d.R0b),d.Y36(r.ic),d.Y36(e.K0,8),d.Y36(w,8))},we.\u0275cmp=d.Xpm({type:we,selectors:[["mat-drawer"]],viewQuery:function(te,Se){if(1&te&&d.Gf(ye,5),2&te){let ke;d.iGM(ke=d.CRH())&&(Se._content=ke.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(te,Se){1&te&&d.WFA("@transform.start",function(Ge){return Se._animationStarted.next(Ge)})("@transform.done",function(Ge){return Se._animationEnd.next(Ge)}),2&te&&(d.uIk("align",null),d.d8E("@transform",Se._animationState),d.ekj("mat-drawer-end","end"===Se.position)("mat-drawer-over","over"===Se.mode)("mat-drawer-push","push"===Se.mode)("mat-drawer-side","side"===Se.mode)("mat-drawer-opened",Se.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:de,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(te,Se){1&te&&(d.F$t(),d.TgZ(0,"div",0,1),d.Hsn(2),d.qZA())},dependencies:[t.PQ],encapsulation:2,data:{animation:[_e.transformDrawer]},changeDetection:0}),we})(),j=(()=>{class we{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(te){this._autosize=(0,E.Ig)(te)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(te){this._backdropOverride=null==te?null:(0,E.Ig)(te)}get scrollable(){return this._userContent||this._content}constructor(te,Se,ke,Ge,Tt,Et=!1,H){this._dir=te,this._element=Se,this._ngZone=ke,this._changeDetectorRef=Ge,this._animationMode=H,this._drawers=new d.n_E,this.backdropClick=new d.vpe,this._destroyed=new C.x,this._doCheckSubject=new C.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new C.x,te&&te.change.pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Tt.change().pipe((0,D.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Et}ngAfterContentInit(){this._allDrawers.changes.pipe((0,F.O)(this._allDrawers),(0,D.R)(this._destroyed)).subscribe(te=>{this._drawers.reset(te.filter(Se=>!Se._container||Se._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,F.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(te=>{this._watchDrawerToggle(te),this._watchDrawerPosition(te),this._watchDrawerMode(te)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,le.b)(10),(0,D.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(te=>te.open())}close(){this._drawers.forEach(te=>te.close())}updateContentMargins(){let te=0,Se=0;if(this._left&&this._left.opened)if("side"==this._left.mode)te+=this._left._getWidth();else if("push"==this._left.mode){const ke=this._left._getWidth();te+=ke,Se-=ke}if(this._right&&this._right.opened)if("side"==this._right.mode)Se+=this._right._getWidth();else if("push"==this._right.mode){const ke=this._right._getWidth();Se+=ke,te-=ke}te=te||null,Se=Se||null,(te!==this._contentMargins.left||Se!==this._contentMargins.right)&&(this._contentMargins={left:te,right:Se},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(te){te._animationStarted.pipe((0,P.h)(Se=>Se.fromState!==Se.toState),(0,D.R)(this._drawers.changes)).subscribe(Se=>{"open-instant"!==Se.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==te.mode&&te.openedChange.pipe((0,D.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(te.opened))}_watchDrawerPosition(te){te&&te.onPositionChanged.pipe((0,D.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,T.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(te){te&&te._modeChanged.pipe((0,D.R)((0,i.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(te){const Se=this._element.nativeElement.classList,ke="mat-drawer-container-has-open";te?Se.add(ke):Se.remove(ke)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(te=>{"end"==te.position?this._end=te:this._start=te}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(te=>te&&!te.disableClose&&this._canHaveBackdrop(te)).forEach(te=>te._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(te){return"side"!==te.mode||!!this._backdropOverride}_isDrawerOpen(te){return null!=te&&te.opened}}return we.\u0275fac=function(te){return new(te||we)(d.Y36(c.Is,8),d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(d.sBO),d.Y36(t.rL),d.Y36(Te),d.Y36(d.QbO,8))},we.\u0275cmp=d.Xpm({type:we,selectors:[["mat-drawer-container"]],contentQueries:function(te,Se,ke){if(1&te&&(d.Suo(ke,x,5),d.Suo(ke,z,5)),2&te){let Ge;d.iGM(Ge=d.CRH())&&(Se._content=Ge.first),d.iGM(Ge=d.CRH())&&(Se._allDrawers=Ge)}},viewQuery:function(te,Se){if(1&te&&d.Gf(x,5),2&te){let ke;d.iGM(ke=d.CRH())&&(Se._userContent=ke.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(te,Se){2&te&&d.ekj("mat-drawer-container-explicit-backdrop",Se._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[d._Bn([{provide:w,useExisting:we}])],ngContentSelectors:ue,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(te,Se){1&te&&(d.F$t(ge),d.YNc(0,Ee,1,2,"div",0),d.Hsn(1),d.Hsn(2,1),d.YNc(3,Le,2,0,"mat-drawer-content",1)),2&te&&(d.Q6J("ngIf",Se.hasBackdrop),d.xp6(3),d.Q6J("ngIf",!Se._content))},dependencies:[e.O5,x],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),we})(),ze=(()=>{class we{}return we.\u0275fac=function(te){return new(te||we)},we.\u0275mod=d.oAB({type:we}),we.\u0275inj=d.cJS({imports:[e.ez,l.BQ,t.ZD,t.ZD,l.BQ]}),we})()},33867:(St,be,s)=>{"use strict";s.d(be,{Rr:()=>q,rP:()=>F});var t=s(73991),e=s(15645),d=s(70232),l=s(52051),r=s(45903),c=s(17774);const E=["switch"],m=["*"],v=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),C={provide:e.JU,useExisting:(0,t.Gpc)(()=>q),multi:!0};class n{constructor(V,de){this.source=V,this.checked=de}}let i=0;const P=(0,l.sb)((0,l.pj)((0,l.Kr)((0,l.Id)(class{constructor(le){this._elementRef=le}}))));let I=(()=>{class le extends P{get required(){return this._required}set required(de){this._required=(0,r.Ig)(de)}get checked(){return this._checked}set checked(de){this._checked=(0,r.Ig)(de),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(de,ye,Ee,Le,ge,ue,ee){super(de),this._focusMonitor=ye,this._changeDetectorRef=Ee,this.defaults=ge,this._onChange=se=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new t.vpe,this.toggleChange=new t.vpe,this.tabIndex=parseInt(Le)||0,this.color=this.defaultColor=ge.color||"accent",this._noopAnimations="NoopAnimations"===ue,this.id=this._uniqueId=`${ee}${++i}`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(de=>{"keyboard"===de||"program"===de?(this._focused=!0,this._changeDetectorRef.markForCheck()):de||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(de){this.checked=!!de}registerOnChange(de){this._onChange=de}registerOnTouched(de){this._onTouched=de}setDisabledState(de){this.disabled=de,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return le.\u0275fac=function(de){t.$Z()},le.\u0275dir=t.lG2({type:le,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[t.qOj]}),le})(),q=(()=>{class le extends I{get buttonId(){return`${this.id||this._uniqueId}-button`}constructor(de,ye,Ee,Le,ge,ue){super(de,ye,Ee,Le,ge,ue,"mat-mdc-slide-toggle-"),this._labelId=this._uniqueId+"-label"}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new n(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(de){return new n(this,de)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}}return le.\u0275fac=function(de){return new(de||le)(t.Y36(t.SBq),t.Y36(d.tE),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(v),t.Y36(t.QbO,8))},le.\u0275cmp=t.Xpm({type:le,selectors:[["mat-slide-toggle"]],viewQuery:function(de,ye){if(1&de&&t.Gf(E,5),2&de){let Ee;t.iGM(Ee=t.CRH())&&(ye._switchElement=Ee.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(de,ye){2&de&&(t.Ikx("id",ye.id),t.uIk("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),t.ekj("mat-mdc-slide-toggle-focused",ye._focused)("mat-mdc-slide-toggle-checked",ye.checked)("_mat-animation-noopable",ye._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[t._Bn([C]),t.qOj],ngContentSelectors:m,decls:17,vars:24,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"],[3,"for","click"]],template:function(de,ye){if(1&de&&(t.F$t(),t.TgZ(0,"div",0)(1,"button",1,2),t.NdJ("click",function(){return ye._handleClick()}),t._UZ(3,"div",3),t.TgZ(4,"div",4)(5,"div",5)(6,"div",6),t._UZ(7,"div",7),t.qZA(),t.TgZ(8,"div",8),t._UZ(9,"div",9),t.qZA(),t.TgZ(10,"div",10),t.O4$(),t.TgZ(11,"svg",11),t._UZ(12,"path",12),t.qZA(),t.TgZ(13,"svg",13),t._UZ(14,"path",14),t.qZA()()()()(),t.kcU(),t.TgZ(15,"label",15),t.NdJ("click",function(Le){return Le.stopPropagation()}),t.Hsn(16),t.qZA()()),2&de){const Ee=t.MAs(2);t.ekj("mdc-form-field--align-end","before"==ye.labelPosition),t.xp6(1),t.ekj("mdc-switch--selected",ye.checked)("mdc-switch--unselected",!ye.checked)("mdc-switch--checked",ye.checked)("mdc-switch--disabled",ye.disabled),t.Q6J("tabIndex",ye.tabIndex)("disabled",ye.disabled),t.uIk("id",ye.buttonId)("name",ye.name)("aria-label",ye.ariaLabel)("aria-labelledby",ye._getAriaLabelledBy())("aria-describedby",ye.ariaDescribedby)("aria-required",ye.required||null)("aria-checked",ye.checked),t.xp6(8),t.Q6J("matRippleTrigger",Ee)("matRippleDisabled",ye.disableRipple||ye.disabled)("matRippleCentered",!0),t.xp6(6),t.Q6J("for",ye.buttonId),t.uIk("id",ye._labelId)}},dependencies:[l.wG],styles:['.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mdc-switch{width:var(--mdc-switch-track-width, 36px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, #616161)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color, var(--mdc-theme-surface, #fff))}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__focus-ring-wrapper,.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height, 20px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape, 10px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width, 20px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width, 20px))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 18px);height:var(--mdc-switch-selected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 18px);height:var(--mdc-switch-unselected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size, 48px);width:var(--mdc-switch-state-layer-size, 48px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height, 14px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape, 7px)}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}'],encapsulation:2,changeDetection:0}),le})(),T=(()=>{class le{}return le.\u0275fac=function(de){return new(de||le)},le.\u0275mod=t.oAB({type:le}),le.\u0275inj=t.cJS({}),le})(),F=(()=>{class le{}return le.\u0275fac=function(de){return new(de||le)},le.\u0275mod=t.oAB({type:le}),le.\u0275inj=t.cJS({imports:[T,l.BQ,l.si,c.ez,T,l.BQ]}),le})()},6822:(St,be,s)=>{"use strict";s.d(be,{$5:()=>L,KP:()=>_e,pH:()=>ge});var t=s(88793),e=s(45903),d=s(71329),l=s(73991),r=s(52051),c=s(32653),E=s(17774),m=s(15645),v=s(68264);const C=["knob"],n=["valueIndicatorContainer"];function i(Z,Te){if(1&Z&&(l.TgZ(0,"div",4,5)(2,"div",6)(3,"span",7),l._uU(4),l.qZA()()()),2&Z){const w=l.oxw();l.xp6(4),l.Oqu(w.valueIndicatorText)}}const P=["trackActive"];function I(Z,Te){if(1&Z&&l._UZ(0,"div"),2&Z){const w=Te.$implicit,k=Te.index,x=l.oxw(3);l.Tol(0===w?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),l.Udp("transform",x._calcTickMarkTransform(k))}}function q(Z,Te){if(1&Z&&(l.ynx(0),l.YNc(1,I,1,4,"div",11),l.BQk()),2&Z){const w=l.oxw(2);l.xp6(1),l.Q6J("ngForOf",w._tickMarks)}}function D(Z,Te){if(1&Z&&(l.TgZ(0,"div",8,9),l.YNc(2,q,2,1,"ng-container",10),l.qZA()),2&Z){const w=l.oxw();l.xp6(2),l.Q6J("ngIf",w._cachedWidth)}}function M(Z,Te){if(1&Z&&l._UZ(0,"mat-slider-visual-thumb",7),2&Z){const w=l.oxw();l.Q6J("discrete",w.discrete)("thumbPosition",1)("valueIndicatorText",w.startValueIndicatorText)}}const T=["*"],F=new l.OlP("_MatSlider"),le=new l.OlP("_MatSliderThumb"),V=new l.OlP("_MatSliderRangeThumb"),de=new l.OlP("_MatSliderVisualThumb");let Ee=(()=>{class Z{constructor(w,k,x,z){this._cdr=w,this._ngZone=k,this._slider=z,this._isHovered=!1,this._isActive=!1,this._isValueIndicatorVisible=!1,this._onPointerMove=j=>{if(this._sliderInput._isFocused)return;const Ne=this._hostElement.getBoundingClientRect(),tt=this._isSliderThumbHovered(j,Ne);this._isHovered=tt,tt?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)},this._onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)},this._onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")},this._onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")},this._onDragStart=()=>{this._isActive=!0,this._showActiveRipple()},this._onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef)},this._hostElement=x.nativeElement}ngAfterViewInit(){this._ripple.radius=24,this._sliderInput=this._slider._getInput(this.thumbPosition),this._sliderInputEl=this._sliderInput._hostElement;const w=this._sliderInputEl;this._ngZone.runOutsideAngular(()=>{w.addEventListener("pointermove",this._onPointerMove),w.addEventListener("pointerdown",this._onDragStart),w.addEventListener("pointerup",this._onDragEnd),w.addEventListener("pointerleave",this._onMouseLeave),w.addEventListener("focus",this._onFocus),w.addEventListener("blur",this._onBlur)})}ngOnDestroy(){const w=this._sliderInputEl;w.removeEventListener("pointermove",this._onPointerMove),w.removeEventListener("pointerdown",this._onDragStart),w.removeEventListener("pointerup",this._onDragEnd),w.removeEventListener("pointerleave",this._onMouseLeave),w.removeEventListener("focus",this._onFocus),w.removeEventListener("blur",this._onBlur)}_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(w){return 0===w?.state||1===w?.state}_showRipple(w,k){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(1===this.thumbPosition?2:1)._showValueIndicator(),!this._slider._globalRippleOptions?.disabled||k))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:w,centered:!0,persistent:!0})}_hideRipple(w){if(w?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();const k=this._getSibling();k._isShowingAnyRipple()||(this._hideValueIndicator(),k._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(1===this.thumbPosition?2:1)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}_isSliderThumbHovered(w,k){const x=k.width/2,tt=w.clientY-(k.y+x);return Math.pow(w.clientX-(k.x+x),2)+Math.pow(tt,2)<Math.pow(x,2)}}return Z.\u0275fac=function(w){return new(w||Z)(l.Y36(l.sBO),l.Y36(l.R0b),l.Y36(l.SBq),l.Y36(F))},Z.\u0275cmp=l.Xpm({type:Z,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(w,k){if(1&w&&(l.Gf(r.wG,5),l.Gf(C,5),l.Gf(n,5)),2&w){let x;l.iGM(x=l.CRH())&&(k._ripple=x.first),l.iGM(x=l.CRH())&&(k._knob=x.first),l.iGM(x=l.CRH())&&(k._valueIndicatorContainer=x.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[l._Bn([{provide:de,useExisting:Z}])],decls:4,vars:2,consts:[["class","mdc-slider__value-indicator-container",4,"ngIf"],[1,"mdc-slider__thumb-knob"],["knob",""],["matRipple","",1,"mat-mdc-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator-container"],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(w,k){1&w&&(l.YNc(0,i,5,1,"div",0),l._UZ(1,"div",1,2)(3,"div",3)),2&w&&(l.Q6J("ngIf",k.discrete),l.xp6(3),l.Q6J("matRippleDisabled",!0))},dependencies:[E.O5,r.wG],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0}),Z})();const Le=(0,r.pj)((0,r.Kr)(class{constructor(Z){this._elementRef=Z}}),"primary");let ge=(()=>{class Z extends Le{get disabled(){return this._disabled}set disabled(w){this._disabled=(0,e.Ig)(w);const k=this._getInput(2),x=this._getInput(1);k&&(k.disabled=this._disabled),x&&(x.disabled=this._disabled)}get discrete(){return this._discrete}set discrete(w){this._discrete=(0,e.Ig)(w),this._updateValueIndicatorUIs()}get showTickMarks(){return this._showTickMarks}set showTickMarks(w){this._showTickMarks=(0,e.Ig)(w)}get min(){return this._min}set min(w){const k=(0,e.su)(w,this._min);this._min!==k&&this._updateMin(k)}_updateMin(w){const k=this._min;this._min=w,this._isRange?this._updateMinRange({old:k,new:w}):this._updateMinNonRange(w),this._onMinMaxOrStepChange()}_updateMinRange(w){const k=this._getInput(2),x=this._getInput(1),z=k.value,j=x.value;x.min=w.new,k.min=Math.max(w.new,x.value),x.max=Math.min(k.max,k.value),x._updateWidthInactive(),k._updateWidthInactive(),w.new<w.old?this._onTranslateXChangeBySideEffect(k,x):this._onTranslateXChangeBySideEffect(x,k),z!==k.value&&this._onValueChange(k),j!==x.value&&this._onValueChange(x)}_updateMinNonRange(w){const k=this._getInput(2);if(k){const x=k.value;k.min=w,k._updateThumbUIByValue(),this._updateTrackUI(k),x!==k.value&&this._onValueChange(k)}}get max(){return this._max}set max(w){const k=(0,e.su)(w,this._max);this._max!==k&&this._updateMax(k)}_updateMax(w){const k=this._max;this._max=w,this._isRange?this._updateMaxRange({old:k,new:w}):this._updateMaxNonRange(w),this._onMinMaxOrStepChange()}_updateMaxRange(w){const k=this._getInput(2),x=this._getInput(1),z=k.value,j=x.value;k.max=w.new,x.max=Math.min(w.new,k.value),k.min=x.value,k._updateWidthInactive(),x._updateWidthInactive(),w.new>w.old?this._onTranslateXChangeBySideEffect(x,k):this._onTranslateXChangeBySideEffect(k,x),z!==k.value&&this._onValueChange(k),j!==x.value&&this._onValueChange(x)}_updateMaxNonRange(w){const k=this._getInput(2);if(k){const x=k.value;k.max=w,k._updateThumbUIByValue(),this._updateTrackUI(k),x!==k.value&&this._onValueChange(k)}}get step(){return this._step}set step(w){const k=(0,e.su)(w,this._step);this._step!==k&&this._updateStep(k)}_updateStep(w){this._step=w,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){const w=this._getInput(2),k=this._getInput(1),x=w.value,z=k.value,j=k.value;w.min=this._min,k.max=this._max,w.step=this._step,k.step=this._step,this._platform.SAFARI&&(w.value=w.value,k.value=k.value),w.min=Math.max(this._min,k.value),k.max=Math.min(this._max,w.value),k._updateWidthInactive(),w._updateWidthInactive(),w.value<j?this._onTranslateXChangeBySideEffect(k,w):this._onTranslateXChangeBySideEffect(w,k),x!==w.value&&this._onValueChange(w),z!==k.value&&this._onValueChange(k)}_updateStepNonRange(){const w=this._getInput(2);if(w){const k=w.value;w.step=this._step,this._platform.SAFARI&&(w.value=w.value),w._updateThumbUIByValue(),k!==w.value&&this._onValueChange(w)}}constructor(w,k,x,z,j,Ne,tt){super(z),this._ngZone=w,this._cdr=k,this._platform=x,this._dir=j,this._globalRippleOptions=Ne,this._disabled=!1,this._discrete=!1,this._showTickMarks=!1,this._min=0,this._max=100,this._step=0,this.displayWith=We=>`${We}`,this._rippleRadius=24,this.startValueIndicatorText="",this.endValueIndicatorText="",this._isRange=!1,this._isRtl=!1,this._hasViewInitialized=!1,this._tickMarkTrackWidth=0,this._hasAnimation=!1,this._resizeTimer=null,this._knobRadius=8,this._thumbsOverlap=!1,this._noopAnimations="NoopAnimations"===tt,this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl="rtl"===this._dir.value}ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();const w=this._getInput(2),k=this._getInput(1);this._isRange=!!w&&!!k,this._cdr.detectChanges();const x=this._getThumb(2);this._rippleRadius=x._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._inputOffset=this._knobRadius,this._isRange?this._initUIRange(w,k):this._initUINonRange(w),this._updateTrackUI(w),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(w){w.initProps(),w.initUI(),this._updateValueIndicatorUI(w),this._hasViewInitialized=!0,w._updateThumbUIByValue()}_initUIRange(w,k){w.initProps(),w.initUI(),k.initProps(),k.initUI(),w._updateMinMax(),k._updateMinMax(),w._updateStaticStyles(),k._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,w._updateThumbUIByValue(),k._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl="rtl"===this._dir.value,this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){const w=this._getInput(2),k=this._getInput(1);w._setIsLeftThumb(),k._setIsLeftThumb(),w.translateX=w._calcTranslateXByValue(),k.translateX=k._calcTranslateXByValue(),w._updateStaticStyles(),k._updateStaticStyles(),w._updateWidthInactive(),k._updateWidthInactive(),w._updateThumbUIByValue(),k._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(2)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(1)._isActive||this._getThumb(2)._isActive}_getValue(w=2){const k=this._getInput(w);return k?k.value:this.min}_skipUpdate(){return!(!this._getInput(1)?._skipUIUpdate&&!this._getInput(2)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(w){const k=this._trackActive.nativeElement.style,x=w.left!==k.left&&w.right!==k.right;k.left=w.left,k.right=w.right,k.transformOrigin=w.transformOrigin,x?(this._elementRef.nativeElement.classList.add("mat-mdc-slider-disable-track-animation"),this._ngZone.onStable.pipe((0,c.q)(1)).subscribe(()=>{this._elementRef.nativeElement.classList.remove("mat-mdc-slider-disable-track-animation"),k.transform=w.transform})):k.transform=w.transform}_calcTickMarkTransform(w){return`translateX(${w*(this._tickMarkTrackWidth/(this._tickMarks.length-1))}px`}_onTranslateXChange(w){this._hasViewInitialized&&(this._updateThumbUI(w),this._updateTrackUI(w),this._updateOverlappingThumbUI(w))}_onTranslateXChangeBySideEffect(w,k){this._hasViewInitialized&&(w._updateThumbUIByValue(),k._updateThumbUIByValue())}_onValueChange(w){this._hasViewInitialized&&(this._updateValueIndicatorUI(w),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){const w=this._getInput(2),k=this._getInput(1);w._updateThumbUIByValue(),k._updateThumbUIByValue(),w._updateStaticStyles(),k._updateStaticStyles(),w._updateMinMax(),k._updateMinMax(),w._updateWidthInactive(),k._updateWidthInactive()}else{const w=this._getInput(2);w&&w._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_areThumbsOverlapping(){const w=this._getInput(1),k=this._getInput(2);return!(!w||!k)&&k.translateX-w.translateX<20}_updateOverlappingThumbClassNames(w){const k=w.getSibling(),x=this._getThumb(w.thumbPosition);this._getThumb(k.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),x._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(w){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(w))}_updateThumbUI(w){this._skipUpdate()||(this._getThumb(2===w.thumbPosition?2:1)._hostElement.style.transform=`translateX(${w.translateX}px)`)}_updateValueIndicatorUI(w){if(this._skipUpdate())return;const k=this.displayWith(w.value);if(this._hasViewInitialized?w._valuetext=k:w._hostElement.setAttribute("aria-valuetext",k),this.discrete){1===w.thumbPosition?this.startValueIndicatorText=k:this.endValueIndicatorText=k;const x=this._getThumb(w.thumbPosition);k.length<3?x._hostElement.classList.add("mdc-slider__thumb--short-value"):x._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){const w=this._getInput(2),k=this._getInput(1);w&&this._updateValueIndicatorUI(w),k&&this._updateValueIndicatorUI(k)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;const w=this._step&&this._step>0?this._step:1,x=(Math.floor(this.max/w)*w-this.min)/(this.max-this.min);this._tickMarkTrackWidth=this._cachedWidth*x-6}_updateTrackUI(w){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(w):this._updateTrackUINonRange(w))}_updateTrackUIRange(w){const k=w.getSibling();if(!k||!this._cachedWidth)return;const x=Math.abs(k.translateX-w.translateX)/this._cachedWidth;this._setTrackActiveStyles(w._isLeftThumb&&this._cachedWidth?{left:"auto",right:this._cachedWidth-k.translateX+"px",transformOrigin:"right",transform:`scaleX(${x})`}:{left:`${k.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${x})`})}_updateTrackUINonRange(w){this._setTrackActiveStyles(this._isRtl?{left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-w.fillPercentage})`}:{left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${w.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||void 0===this.step||void 0===this.min||void 0===this.max)return;const w=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(w):this._updateTickMarkUINonRange(w),this._isRtl&&this._tickMarks.reverse()}_updateTickMarkUINonRange(w){const k=this._getValue();let x=Math.max(Math.round((k-this.min)/w),0),z=Math.max(Math.round((this.max-k)/w),0);this._isRtl?x++:z++,this._tickMarks=Array(x).fill(0).concat(Array(z).fill(1))}_updateTickMarkUIRange(w){const k=this._getValue(),x=this._getValue(1),z=Math.max(Math.floor((x-this.min)/w),0),j=Math.max(Math.floor((k-x)/w)+1,0),Ne=Math.max(Math.floor((this.max-k)/w),0);this._tickMarks=Array(z).fill(1).concat(Array(j).fill(0),Array(Ne).fill(1))}_getInput(w){return 2===w&&this._input?this._input:this._inputs?.length?1===w?this._inputs.first:this._inputs.last:void 0}_getThumb(w){return 2===w?this._thumbs?.last:this._thumbs?.first}_setTransition(w){this._hasAnimation=w&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}}return Z.\u0275fac=function(w){return new(w||Z)(l.Y36(l.R0b),l.Y36(l.sBO),l.Y36(d.t4),l.Y36(l.SBq),l.Y36(t.Is,8),l.Y36(r.Y2,8),l.Y36(l.QbO,8))},Z.\u0275cmp=l.Xpm({type:Z,selectors:[["mat-slider"]],contentQueries:function(w,k,x){if(1&w&&(l.Suo(x,le,5),l.Suo(x,V,4)),2&w){let z;l.iGM(z=l.CRH())&&(k._input=z.first),l.iGM(z=l.CRH())&&(k._inputs=z)}},viewQuery:function(w,k){if(1&w&&(l.Gf(P,5),l.Gf(de,5)),2&w){let x;l.iGM(x=l.CRH())&&(k._trackActive=x.first),l.iGM(x=l.CRH())&&(k._thumbs=x)}},hostAttrs:[1,"mat-mdc-slider","mdc-slider"],hostVars:10,hostBindings:function(w,k){2&w&&l.ekj("mdc-slider--range",k._isRange)("mdc-slider--disabled",k.disabled)("mdc-slider--discrete",k.discrete)("mdc-slider--tick-marks",k.showTickMarks)("_mat-animation-noopable",k._noopAnimations)},inputs:{color:"color",disableRipple:"disableRipple",disabled:"disabled",discrete:"discrete",showTickMarks:"showTickMarks",min:"min",max:"max",step:"step",displayWith:"displayWith"},exportAs:["matSlider"],features:[l._Bn([{provide:F,useExisting:Z}]),l.qOj],ngContentSelectors:T,decls:9,vars:5,consts:[[1,"mdc-slider__track"],[1,"mdc-slider__track--inactive"],[1,"mdc-slider__track--active"],[1,"mdc-slider__track--active_fill"],["trackActive",""],["class","mdc-slider__tick-marks",4,"ngIf"],[3,"discrete","thumbPosition","valueIndicatorText",4,"ngIf"],[3,"discrete","thumbPosition","valueIndicatorText"],[1,"mdc-slider__tick-marks"],["tickMarkContainer",""],[4,"ngIf"],[3,"class","transform",4,"ngFor","ngForOf"]],template:function(w,k){1&w&&(l.F$t(),l.Hsn(0),l.TgZ(1,"div",0),l._UZ(2,"div",1),l.TgZ(3,"div",2),l._UZ(4,"div",3,4),l.qZA(),l.YNc(6,D,3,1,"div",5),l.qZA(),l.YNc(7,M,1,3,"mat-slider-visual-thumb",6),l._UZ(8,"mat-slider-visual-thumb",7)),2&w&&(l.xp6(6),l.Q6J("ngIf",k.showTickMarks),l.xp6(1),l.Q6J("ngIf",k._isRange),l.xp6(1),l.Q6J("discrete",k.discrete)("thumbPosition",2)("valueIndicatorText",k.endValueIndicatorText))},dependencies:[E.sg,E.O5,Ee],styles:['.mdc-slider{cursor:pointer;height:48px;margin:0 24px;position:relative;touch-action:pan-y}.mdc-slider .mdc-slider__track{position:absolute;top:50%;transform:translateY(-50%);width:100%}.mdc-slider .mdc-slider__track--active,.mdc-slider .mdc-slider__track--inactive{display:flex;height:100%;position:absolute;width:100%}.mdc-slider .mdc-slider__track--active{overflow:hidden}.mdc-slider .mdc-slider__track--active_fill{border-top-style:solid;box-sizing:border-box;height:100%;width:100%;position:relative;-webkit-transform-origin:left;transform-origin:left}[dir=rtl] .mdc-slider .mdc-slider__track--active_fill,.mdc-slider .mdc-slider__track--active_fill[dir=rtl]{-webkit-transform-origin:right;transform-origin:right}.mdc-slider .mdc-slider__track--inactive{left:0;top:0}.mdc-slider .mdc-slider__track--inactive::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-slider .mdc-slider__track--inactive::before{border-color:CanvasText}}.mdc-slider .mdc-slider__value-indicator-container{bottom:44px;left:var(--slider-value-indicator-container-left, 50%);pointer-events:none;position:absolute;right:var(--slider-value-indicator-container-right);transform:var(--slider-value-indicator-container-transform, translateX(-50%))}.mdc-slider .mdc-slider__value-indicator{transition:transform 100ms 0ms cubic-bezier(0.4, 0, 1, 1);align-items:center;border-radius:4px;display:flex;height:32px;padding:0 12px;transform:scale(0);transform-origin:bottom}.mdc-slider .mdc-slider__value-indicator::before{border-left:6px solid rgba(0,0,0,0);border-right:6px solid rgba(0,0,0,0);border-top:6px solid;bottom:-5px;content:"";height:0;left:var(--slider-value-indicator-caret-left, 50%);position:absolute;right:var(--slider-value-indicator-caret-right);transform:var(--slider-value-indicator-caret-transform, translateX(-50%));width:0}.mdc-slider .mdc-slider__value-indicator::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-slider .mdc-slider__value-indicator::after{border-color:CanvasText}}.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator-container{pointer-events:auto}.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:transform 100ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale(1)}@media(prefers-reduced-motion){.mdc-slider .mdc-slider__value-indicator,.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:none}}.mdc-slider .mdc-slider__thumb{display:flex;left:-24px;outline:none;position:absolute;user-select:none;height:48px;width:48px}.mdc-slider .mdc-slider__thumb--top{z-index:1}.mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-style:solid;border-width:1px;box-sizing:content-box}.mdc-slider .mdc-slider__thumb-knob{box-sizing:border-box;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%)}.mdc-slider .mdc-slider__tick-marks{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:space-between;padding:0 1px;position:absolute;width:100%}.mdc-slider--discrete .mdc-slider__thumb,.mdc-slider--discrete .mdc-slider__track--active_fill{transition:transform 80ms ease}@media(prefers-reduced-motion){.mdc-slider--discrete .mdc-slider__thumb,.mdc-slider--discrete .mdc-slider__track--active_fill{transition:none}}.mdc-slider--disabled{cursor:auto}.mdc-slider--disabled .mdc-slider__thumb{pointer-events:none}.mdc-slider__input{cursor:pointer;left:0;margin:0;height:100%;opacity:0;pointer-events:none;position:absolute;top:0;width:100%}.mat-mdc-slider{display:inline-block;box-sizing:border-box;outline:none;vertical-align:middle;margin-left:8px;margin-right:8px;width:auto;min-width:112px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-slider .mdc-slider__thumb-knob{background-color:var(--mdc-slider-handle-color, var(--mdc-theme-primary, #6200ee));border-color:var(--mdc-slider-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb-knob{background-color:var(--mdc-slider-disabled-handle-color, var(--mdc-theme-on-surface, #000));border-color:var(--mdc-slider-disabled-handle-color, var(--mdc-theme-on-surface, #000))}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb::before,.mat-mdc-slider .mdc-slider__thumb::after{background-color:var(--mdc-slider-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slider .mdc-slider__thumb:hover::before,.mat-mdc-slider .mdc-slider__thumb.mdc-ripple-surface--hover::before{opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mat-mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded--background-focused::before,.mat-mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mat-mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mat-mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mat-mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mat-mdc-slider .mdc-slider__track--active_fill{border-color:var(--mdc-slider-active-track-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__track--active_fill{border-color:var(--mdc-slider-disabled-active-track-color, var(--mdc-theme-on-surface, #000))}.mat-mdc-slider .mdc-slider__track--inactive{background-color:var(--mdc-slider-inactive-track-color, var(--mdc-theme-primary, #6200ee));opacity:.24}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__track--inactive{background-color:var(--mdc-slider-disabled-inactive-track-color, var(--mdc-theme-on-surface, #000));opacity:.24}.mat-mdc-slider .mdc-slider__tick-mark--active{background-color:var(--mdc-slider-with-tick-marks-active-container-color, var(--mdc-theme-on-primary, #fff));opacity:var(--mdc-slider-with-tick-marks-active-container-opacity, 0.6)}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--active{background-color:var(--mdc-slider-with-tick-marks-active-container-color, var(--mdc-theme-on-primary, #fff));opacity:var(--mdc-slider-with-tick-marks-active-container-opacity, 0.6)}.mat-mdc-slider .mdc-slider__tick-mark--inactive{background-color:var(--mdc-slider-with-tick-marks-inactive-container-color, var(--mdc-theme-primary, #6200ee));opacity:var(--mdc-slider-with-tick-marks-inactive-container-opacity, 0.6)}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--inactive{background-color:var(--mdc-slider-with-tick-marks-disabled-container-color, var(--mdc-theme-on-surface, #000));opacity:var(--mdc-slider-with-tick-marks-inactive-container-opacity, 0.6)}.mat-mdc-slider .mdc-slider__value-indicator{background-color:var(--mdc-slider-label-container-color, #666666);opacity:1}.mat-mdc-slider .mdc-slider__value-indicator::before{border-top-color:var(--mdc-slider-label-container-color, #666666)}.mat-mdc-slider .mdc-slider__value-indicator{color:var(--mdc-slider-label-label-text-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slider .mdc-slider__track{height:var(--mdc-slider-inactive-track-height, 4px)}.mat-mdc-slider .mdc-slider__track--active{height:var(--mdc-slider-active-track-height, 6px);top:calc((var(--mdc-slider-inactive-track-height, 4px) - var(--mdc-slider-active-track-height, 6px)) / 2)}.mat-mdc-slider .mdc-slider__track--active_fill{border-top-width:var(--mdc-slider-active-track-height, 6px)}.mat-mdc-slider .mdc-slider__track--inactive{height:var(--mdc-slider-inactive-track-height, 4px)}.mat-mdc-slider .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-mark--inactive{height:var(--mdc-slider-with-tick-marks-container-size, 2px);width:var(--mdc-slider-with-tick-marks-container-size, 2px)}.mat-mdc-slider.mdc-slider--disabled{opacity:0.38}.mat-mdc-slider .mdc-slider__value-indicator-text{letter-spacing:var(--mdc-slider-label-label-text-tracking, 0.0071428571em);font-size:var(--mdc-slider-label-label-text-size, 0.875rem);font-family:var(--mdc-slider-label-label-text-font, Roboto, sans-serif);font-weight:var(--mdc-slider-label-label-text-weight, 500);line-height:var(--mdc-slider-label-label-text-line-height, 1.375rem)}.mat-mdc-slider .mdc-slider__track--active{border-radius:var(--mdc-slider-active-track-shape, 9999px)}.mat-mdc-slider .mdc-slider__track--inactive{border-radius:var(--mdc-slider-inactive-track-shape, 9999px)}.mat-mdc-slider .mdc-slider__thumb-knob{border-radius:var(--mdc-slider-handle-shape, 50%);width:var(--mdc-slider-handle-width, 20px);height:var(--mdc-slider-handle-height, 20px);border-style:solid;border-width:calc(var(--mdc-slider-handle-height, 20px) / 2) calc(var(--mdc-slider-handle-width, 20px) / 2)}.mat-mdc-slider .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-mark--inactive{border-radius:var(--mdc-slider-with-tick-marks-container-shape, 50%)}.mat-mdc-slider .mdc-slider__thumb-knob{box-shadow:var(--mdc-slider-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb-knob{background-color:var(--mdc-slider-hover-handle-color, var(--mdc-theme-primary, #6200ee));border-color:var(--mdc-slider-hover-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb-knob{background-color:var(--mdc-slider-focus-handle-color, var(--mdc-theme-primary, #6200ee));border-color:var(--mdc-slider-focus-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb:not(:disabled):active .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:not(:disabled):active .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:not(:disabled):active .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:var(--mdc-slider-with-overlap-handle-outline-color, #fff);border-width:var(--mdc-slider-with-overlap-handle-outline-width, 1px)}.mat-mdc-slider .mdc-slider__input{box-sizing:content-box;pointer-events:auto}.mat-mdc-slider .mdc-slider__input.mat-mdc-slider-input-no-pointer-events{pointer-events:none}.mat-mdc-slider .mdc-slider__input.mat-slider__right-input{left:auto;right:0}.mat-mdc-slider .mdc-slider__thumb,.mat-mdc-slider .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider.mat-mdc-slider-with-animation.mat-mdc-slider-disable-track-animation .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider.mdc-slider--discrete .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider.mat-mdc-slider-with-animation.mat-mdc-slider-disable-track-animation .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider .mdc-slider__track,.mat-mdc-slider .mdc-slider__thumb{pointer-events:none}.mat-mdc-slider .mdc-slider__value-indicator{opacity:var(--mat-mdc-slider-value-indicator-opacity, 1)}.mat-mdc-slider .mat-ripple .mat-ripple-element{background-color:var(--mat-mdc-slider-ripple-color, transparent)}.mat-mdc-slider .mat-ripple .mat-mdc-slider-hover-ripple{background-color:var(--mat-mdc-slider-hover-ripple-color, transparent)}.mat-mdc-slider .mat-ripple .mat-mdc-slider-focus-ripple,.mat-mdc-slider .mat-ripple .mat-mdc-slider-active-ripple{background-color:var(--mat-mdc-slider-focus-ripple-color, transparent)}.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__track--active_fill,.mat-mdc-slider._mat-animation-noopable .mdc-slider__value-indicator{transition:none}.mat-mdc-slider .mat-mdc-focus-indicator::before{border-radius:50%}.mdc-slider__thumb--focused .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),Z})();const se={provide:m.JU,useExisting:(0,l.Gpc)(()=>L),multi:!0};let L=(()=>{class Z{get value(){return(0,e.su)(this._hostElement.value)}set value(w){const k=(0,e.su)(w).toString();this._hasSetInitialValue?this._isActive||(this._hostElement.value=k,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges()):this._initialValue=k}get translateX(){return this._slider.min>=this._slider.max?(this._translateX=0,this._translateX):(void 0===this._translateX&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(w){this._translateX=w}get min(){return(0,e.su)(this._hostElement.min)}set min(w){this._hostElement.min=(0,e.su)(w).toString(),this._cdr.detectChanges()}get max(){return(0,e.su)(this._hostElement.max)}set max(w){this._hostElement.max=(0,e.su)(w).toString(),this._cdr.detectChanges()}get step(){return(0,e.su)(this._hostElement.step)}set step(w){this._hostElement.step=(0,e.su)(w).toString(),this._cdr.detectChanges()}get disabled(){return(0,e.Ig)(this._hostElement.disabled)}set disabled(w){this._hostElement.disabled=(0,e.Ig)(w),this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?0===this._translateX?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_setIsFocused(w){this._isFocused=w}constructor(w,k,x,z){this._ngZone=w,this._elementRef=k,this._cdr=x,this._slider=z,this.valueChange=new l.vpe,this.dragStart=new l.vpe,this.dragEnd=new l.vpe,this.thumbPosition=2,this._knobRadius=8,this._isActive=!1,this._isFocused=!1,this._hasSetInitialValue=!1,this._destroyed=new v.x,this._skipUIUpdate=!1,this._onChangeFn=()=>{},this._onTouchedFn=()=>{},this._hostElement=k.nativeElement,this._ngZone.runOutsideAngular(()=>{this._hostElement.addEventListener("pointerdown",this._onPointerDown.bind(this)),this._hostElement.addEventListener("pointermove",this._onPointerMove.bind(this)),this._hostElement.addEventListener("pointerup",this._onPointerUp.bind(this))})}ngOnDestroy(){this._hostElement.removeEventListener("pointerdown",this._onPointerDown),this._hostElement.removeEventListener("pointermove",this._onPointerMove),this._hostElement.removeEventListener("pointerup",this._onPointerUp),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,void 0===this._initialValue?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(w){this.disabled||0!==w.button||(this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(w,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(w),this.dragStart.emit({source:this,parent:this._slider,value:this.value})))}_handleValueCorrection(w){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(w)},0)}_fixValue(w){const k=w.clientX-this._slider._cachedLeft,x=this._slider._cachedWidth,z=0===this._slider.step?1:this._slider.step,j=Math.floor((this._slider.max-this._slider.min)/z),We=Math.round((this._slider._isRtl?1-k/x:k/x)*j)/j*(this._slider.max-this._slider.min)+this._slider.min,ze=Math.round(We/z)*z;if(ze===this.value)return this._slider._onValueChange(this),void(this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(w,{withAnimation:this._slider._hasAnimation}));this.value=ze,this.valueChange.emit(this.value),this._onChangeFn(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(w,{withAnimation:this._slider._hasAnimation})}_onPointerMove(w){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(w)}_onPointerUp(){this._isActive&&(this._isActive=!1,this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive()))}_clamp(w){return Math.max(Math.min(w,this._slider._cachedWidth),0)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*this._slider._cachedWidth:this.percentage*this._slider._cachedWidth}_calcTranslateXByPointerEvent(w){return w.clientX-this._slider._cachedLeft}_updateWidthActive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding}px)`}_updateWidthInactive(){this._hostElement.style.padding="0px",this._hostElement.style.width="calc(100% + 48px)",this._hostElement.style.left="-24px"}_updateThumbUIByValue(w){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(w)}_updateThumbUIByPointerEvent(w,k){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(w)),this._updateThumbUI(k)}_updateThumbUI(w){this._slider._setTransition(!!w?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(w){this.value=w}registerOnChange(w){this._onChangeFn=w}registerOnTouched(w){this._onTouchedFn=w}setDisabledState(w){this.disabled=w}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}}return Z.\u0275fac=function(w){return new(w||Z)(l.Y36(l.R0b),l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(F))},Z.\u0275dir=l.lG2({type:Z,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(w,k){1&w&&l.NdJ("change",function(){return k._onChange()})("input",function(){return k._onInput()})("blur",function(){return k._onBlur()})("focus",function(){return k._onFocus()}),2&w&&l.uIk("aria-valuetext",k._valuetext)},inputs:{value:"value"},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],features:[l._Bn([se,{provide:le,useExisting:Z}])]}),Z})(),_e=(()=>{class Z{}return Z.\u0275fac=function(w){return new(w||Z)},Z.\u0275mod=l.oAB({type:Z}),Z.\u0275inj=l.cJS({imports:[r.BQ,E.ez,r.si]}),Z})()},50682:(St,be,s)=>{"use strict";s.d(be,{Et:()=>Le,OX:()=>T,Ve:()=>L,ZX:()=>se,qD:()=>F,rA:()=>he,ux:()=>_e,xi:()=>ue});var t=s(73991),e=s(68264),d=s(17774),l=s(45005),r=s(96191),c=s(27444),E=s(71329),m=s(32653),v=s(30003),C=s(70232),n=s(75999),i=s(58153),P=s(52051);function I(Z,Te){if(1&Z){const w=t.EpF();t.TgZ(0,"div",2)(1,"button",3),t.NdJ("click",function(){t.CHM(w);const x=t.oxw();return t.KtG(x.action())}),t._uU(2),t.qZA()()}if(2&Z){const w=t.oxw();t.xp6(2),t.hij(" ",w.data.action," ")}}const q=["label"];function D(Z,Te){}const M=Math.pow(2,31)-1;class T{constructor(Te,w){this._overlayRef=w,this._afterDismissed=new e.x,this._afterOpened=new e.x,this._onAction=new e.x,this._dismissedByAction=!1,this.containerInstance=Te,Te._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(Te){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(Te,M))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const F=new t.OlP("MatSnackBarData");class le{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let V=(()=>{class Z{}return Z.\u0275fac=function(w){return new(w||Z)},Z.\u0275dir=t.lG2({type:Z,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}),Z})(),de=(()=>{class Z{}return Z.\u0275fac=function(w){return new(w||Z)},Z.\u0275dir=t.lG2({type:Z,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}),Z})(),ye=(()=>{class Z{}return Z.\u0275fac=function(w){return new(w||Z)},Z.\u0275dir=t.lG2({type:Z,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}),Z})(),Ee=(()=>{class Z{constructor(w,k){this.snackBarRef=w,this.data=k}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return Z.\u0275fac=function(w){return new(w||Z)(t.Y36(T),t.Y36(F))},Z.\u0275cmp=t.Xpm({type:Z,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(w,k){1&w&&(t.TgZ(0,"div",0),t._uU(1),t.qZA(),t.YNc(2,I,3,1,"div",1)),2&w&&(t.xp6(1),t.hij(" ",k.data.message,"\n"),t.xp6(1),t.Q6J("ngIf",k.hasAction))},dependencies:[d.O5,l.lW,V,de,ye],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),Z})();const Le={snackBarState:(0,r.X$)("state",[(0,r.SB)("void, hidden",(0,r.oB)({transform:"scale(0.8)",opacity:0})),(0,r.SB)("visible",(0,r.oB)({transform:"scale(1)",opacity:1})),(0,r.eR)("* => visible",(0,r.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,r.eR)("* => void, * => hidden",(0,r.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,r.oB)({opacity:0})))])};let ge=0,ue=(()=>{class Z extends c.en{constructor(w,k,x,z,j){super(),this._ngZone=w,this._elementRef=k,this._changeDetectorRef=x,this._platform=z,this.snackBarConfig=j,this._document=(0,t.f3M)(d.K0),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new e.x,this._onExit=new e.x,this._onEnter=new e.x,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+ge++,this.attachDomPortal=Ne=>{this._assertNotAttached();const tt=this._portalOutlet.attachDomPortal(Ne);return this._afterPortalAttached(),tt},this._live="assertive"!==j.politeness||j.announcementMessage?"off"===j.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(w){this._assertNotAttached();const k=this._portalOutlet.attachComponentPortal(w);return this._afterPortalAttached(),k}attachTemplatePortal(w){this._assertNotAttached();const k=this._portalOutlet.attachTemplatePortal(w);return this._afterPortalAttached(),k}onAnimationEnd(w){const{fromState:k,toState:x}=w;if(("void"===x&&"void"!==k||"hidden"===x)&&this._completeExit(),"visible"===x){const z=this._onEnter;this._ngZone.run(()=>{z.next(),z.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,m.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const w=this._elementRef.nativeElement,k=this.snackBarConfig.panelClass;k&&(Array.isArray(k)?k.forEach(x=>w.classList.add(x)):w.classList.add(k)),this._exposeToModals()}_exposeToModals(){const w=this._liveElementId,k=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let x=0;x<k.length;x++){const z=k[x],j=z.getAttribute("aria-owns");this._trackedModals.add(z),j?-1===j.indexOf(w)&&z.setAttribute("aria-owns",j+" "+w):z.setAttribute("aria-owns",w)}}_clearFromModals(){this._trackedModals.forEach(w=>{const k=w.getAttribute("aria-owns");if(k){const x=k.replace(this._liveElementId,"").trim();x.length>0?w.setAttribute("aria-owns",x):w.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const w=this._elementRef.nativeElement.querySelector("[aria-hidden]"),k=this._elementRef.nativeElement.querySelector("[aria-live]");if(w&&k){let x=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&w.contains(document.activeElement)&&(x=document.activeElement),w.removeAttribute("aria-hidden"),k.appendChild(w),x?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return Z.\u0275fac=function(w){return new(w||Z)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(E.t4),t.Y36(le))},Z.\u0275dir=t.lG2({type:Z,viewQuery:function(w,k){if(1&w&&t.Gf(c.Pl,7),2&w){let x;t.iGM(x=t.CRH())&&(k._portalOutlet=x.first)}},features:[t.qOj]}),Z})(),ee=(()=>{class Z extends ue{_afterPortalAttached(){super._afterPortalAttached();const w=this._label.nativeElement,k="mdc-snackbar__label";w.classList.toggle(k,!w.querySelector(`.${k}`))}}return Z.\u0275fac=function(){let Te;return function(k){return(Te||(Te=t.n5z(Z)))(k||Z)}}(),Z.\u0275cmp=t.Xpm({type:Z,selectors:[["mat-snack-bar-container"]],viewQuery:function(w,k){if(1&w&&t.Gf(q,7),2&w){let x;t.iGM(x=t.CRH())&&(k._label=x.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(w,k){1&w&&t.WFA("@state.done",function(z){return k.onAnimationEnd(z)}),2&w&&t.d8E("@state",k._animationState)},features:[t.qOj],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(w,k){1&w&&(t.TgZ(0,"div",0)(1,"div",1,2)(3,"div",3),t.YNc(4,D,0,0,"ng-template",4),t.qZA(),t._UZ(5,"div"),t.qZA()()),2&w&&(t.xp6(5),t.uIk("aria-live",k._live)("role",k._role)("id",k._liveElementId))},dependencies:[c.Pl],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss svg,.mat-mdc-snack-bar-container .mdc-snackbar__dismiss img{width:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px));height:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size, inherit);font-family:var(--mdc-snackbar-supporting-text-font, inherit);font-weight:var(--mdc-snackbar-supporting-text-weight, inherit);line-height:var(--mdc-snackbar-supporting-text-line-height, inherit)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-mdc-snack-bar-button-color, transparent);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[Le.snackBarState]}}),Z})(),se=(()=>{class Z{}return Z.\u0275fac=function(w){return new(w||Z)},Z.\u0275mod=t.oAB({type:Z}),Z.\u0275inj=t.cJS({imports:[i.U8,c.eL,d.ez,l.ot,P.BQ,P.BQ]}),Z})();const L=new t.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function W(){return new le}});let he=(()=>{class Z{get _openedSnackBarRef(){const w=this._parentSnackBar;return w?w._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(w){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=w:this._snackBarRefAtThisLevel=w}constructor(w,k,x,z,j,Ne){this._overlay=w,this._live=k,this._injector=x,this._breakpointObserver=z,this._parentSnackBar=j,this._defaultConfig=Ne,this._snackBarRefAtThisLevel=null}openFromComponent(w,k){return this._attach(w,k)}openFromTemplate(w,k){return this._attach(w,k)}open(w,k="",x){const z={...this._defaultConfig,...x};return z.data={message:w,action:k},z.announcementMessage===w&&(z.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,z)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(w,k){const z=t.zs3.create({parent:k&&k.viewContainerRef&&k.viewContainerRef.injector||this._injector,providers:[{provide:le,useValue:k}]}),j=new c.C5(this.snackBarContainerComponent,k.viewContainerRef,z),Ne=w.attach(j);return Ne.instance.snackBarConfig=k,Ne.instance}_attach(w,k){const x={...new le,...this._defaultConfig,...k},z=this._createOverlay(x),j=this._attachSnackBarContainer(z,x),Ne=new T(j,z);if(w instanceof t.Rgc){const tt=new c.UE(w,null,{$implicit:x.data,snackBarRef:Ne});Ne.instance=j.attachTemplatePortal(tt)}else{const tt=this._createInjector(x,Ne),We=new c.C5(w,void 0,tt),ze=j.attachComponentPortal(We);Ne.instance=ze.instance}return this._breakpointObserver.observe(n.u3.HandsetPortrait).pipe((0,v.R)(z.detachments())).subscribe(tt=>{z.overlayElement.classList.toggle(this.handsetCssClass,tt.matches)}),x.announcementMessage&&j._onAnnounce.subscribe(()=>{this._live.announce(x.announcementMessage,x.politeness)}),this._animateSnackBar(Ne,x),this._openedSnackBarRef=Ne,this._openedSnackBarRef}_animateSnackBar(w,k){w.afterDismissed().subscribe(()=>{this._openedSnackBarRef==w&&(this._openedSnackBarRef=null),k.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{w.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):w.containerInstance.enter(),k.duration&&k.duration>0&&w.afterOpened().subscribe(()=>w._dismissAfter(k.duration))}_createOverlay(w){const k=new i.X_;k.direction=w.direction;let x=this._overlay.position().global();const z="rtl"===w.direction,j="left"===w.horizontalPosition||"start"===w.horizontalPosition&&!z||"end"===w.horizontalPosition&&z,Ne=!j&&"center"!==w.horizontalPosition;return j?x.left("0"):Ne?x.right("0"):x.centerHorizontally(),"top"===w.verticalPosition?x.top("0"):x.bottom("0"),k.positionStrategy=x,this._overlay.create(k)}_createInjector(w,k){return t.zs3.create({parent:w&&w.viewContainerRef&&w.viewContainerRef.injector||this._injector,providers:[{provide:T,useValue:k},{provide:F,useValue:w.data}]})}}return Z.\u0275fac=function(w){return new(w||Z)(t.LFG(i.aV),t.LFG(C.Kd),t.LFG(t.zs3),t.LFG(n.Yg),t.LFG(Z,12),t.LFG(L))},Z.\u0275prov=t.Yz7({token:Z,factory:Z.\u0275fac}),Z})(),_e=(()=>{class Z extends he{constructor(w,k,x,z,j,Ne){super(w,k,x,z,j,Ne),this.simpleSnackBarComponent=Ee,this.snackBarContainerComponent=ee,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return Z.\u0275fac=function(w){return new(w||Z)(t.LFG(i.aV),t.LFG(C.Kd),t.LFG(t.zs3),t.LFG(n.Yg),t.LFG(Z,12),t.LFG(L))},Z.\u0275prov=t.Yz7({token:Z,factory:Z.\u0275fac,providedIn:se}),Z})()},4473:(St,be,s)=>{"use strict";s.d(be,{C0:()=>Tt,Ic:()=>H,T5:()=>S,VY:()=>j,Vq:()=>Et});var t=s(27444),e=s(56729),d=s(17774),l=s(73991),r=s(52051),c=s(45379),E=s(70232),m=s(68264),v=s(22292),C=s(88793),n=s(81565),i=s(87580),P=s(41743),I=s(30003),q=s(40354),D=s(96191);function M(K,Q){if(1&K&&l.GkF(0,8),2&K){const B=l.oxw();l.Q6J("ngTemplateOutlet",B.iconOverrides[B.state])("ngTemplateOutletContext",B._getIconContext())}}function T(K,Q){if(1&K&&(l.TgZ(0,"span",13),l._uU(1),l.qZA()),2&K){const B=l.oxw(2);l.xp6(1),l.Oqu(B._getDefaultTextForState(B.state))}}function F(K,Q){if(1&K&&(l.TgZ(0,"span",14),l._uU(1),l.qZA()),2&K){const B=l.oxw(2);l.xp6(1),l.Oqu(B._intl.completedLabel)}}function le(K,Q){if(1&K&&(l.TgZ(0,"span",14),l._uU(1),l.qZA()),2&K){const B=l.oxw(2);l.xp6(1),l.Oqu(B._intl.editableLabel)}}function V(K,Q){if(1&K&&(l.TgZ(0,"mat-icon",13),l._uU(1),l.qZA()),2&K){const B=l.oxw(2);l.xp6(1),l.Oqu(B._getDefaultTextForState(B.state))}}function de(K,Q){if(1&K&&(l.ynx(0,9),l.YNc(1,T,2,1,"span",10),l.YNc(2,F,2,1,"span",11),l.YNc(3,le,2,1,"span",11),l.YNc(4,V,2,1,"mat-icon",12),l.BQk()),2&K){const B=l.oxw();l.Q6J("ngSwitch",B.state),l.xp6(1),l.Q6J("ngSwitchCase","number"),l.xp6(1),l.Q6J("ngIf","done"===B.state),l.xp6(1),l.Q6J("ngIf","edit"===B.state)}}function ye(K,Q){if(1&K&&(l.TgZ(0,"div",15),l.GkF(1,16),l.qZA()),2&K){const B=l.oxw();l.xp6(1),l.Q6J("ngTemplateOutlet",B._templateLabel().template)}}function Ee(K,Q){if(1&K&&(l.TgZ(0,"div",15),l._uU(1),l.qZA()),2&K){const B=l.oxw();l.xp6(1),l.Oqu(B.label)}}function Le(K,Q){if(1&K&&(l.TgZ(0,"div",17),l._uU(1),l.qZA()),2&K){const B=l.oxw();l.xp6(1),l.Oqu(B._intl.optionalLabel)}}function ge(K,Q){if(1&K&&(l.TgZ(0,"div",18),l._uU(1),l.qZA()),2&K){const B=l.oxw();l.xp6(1),l.Oqu(B.errorMessage)}}function ue(K,Q){}function ee(K,Q){if(1&K&&(l.Hsn(0),l.YNc(1,ue,0,0,"ng-template",0)),2&K){const B=l.oxw();l.xp6(1),l.Q6J("cdkPortalOutlet",B._portal)}}const se=["*"];function W(K,Q){1&K&&l._UZ(0,"div",11)}const L=function(K,Q){return{step:K,i:Q}};function he(K,Q){if(1&K&&(l.ynx(0),l.GkF(1,9),l.YNc(2,W,1,0,"div",10),l.BQk()),2&K){const B=Q.$implicit,re=Q.index,fe=Q.last;l.oxw(2);const qe=l.MAs(4);l.xp6(1),l.Q6J("ngTemplateOutlet",qe)("ngTemplateOutletContext",l.WLB(3,L,B,re)),l.xp6(1),l.Q6J("ngIf",!fe)}}const _e=function(K){return{animationDuration:K}},Z=function(K,Q){return{value:K,params:Q}};function Te(K,Q){if(1&K){const B=l.EpF();l.TgZ(0,"div",12),l.NdJ("@horizontalStepTransition.done",function(fe){l.CHM(B);const qe=l.oxw(2);return l.KtG(qe._animationDone.next(fe))}),l.GkF(1,13),l.qZA()}if(2&K){const B=Q.$implicit,re=Q.index,fe=l.oxw(2);l.ekj("mat-horizontal-stepper-content-inactive",fe.selectedIndex!==re),l.Q6J("@horizontalStepTransition",l.WLB(8,Z,fe._getAnimationDirection(re),l.VKq(6,_e,fe._getAnimationDuration())))("id",fe._getStepContentId(re)),l.uIk("aria-labelledby",fe._getStepLabelId(re)),l.xp6(1),l.Q6J("ngTemplateOutlet",B.content)}}function w(K,Q){if(1&K&&(l.TgZ(0,"div",4)(1,"div",5),l.YNc(2,he,3,6,"ng-container",6),l.qZA(),l.TgZ(3,"div",7),l.YNc(4,Te,2,11,"div",8),l.qZA()()),2&K){const B=l.oxw();l.xp6(2),l.Q6J("ngForOf",B.steps),l.xp6(2),l.Q6J("ngForOf",B.steps)}}function k(K,Q){if(1&K){const B=l.EpF();l.TgZ(0,"div",15),l.GkF(1,9),l.TgZ(2,"div",16)(3,"div",17),l.NdJ("@verticalStepTransition.done",function(fe){l.CHM(B);const qe=l.oxw(2);return l.KtG(qe._animationDone.next(fe))}),l.TgZ(4,"div",18),l.GkF(5,13),l.qZA()()()()}if(2&K){const B=Q.$implicit,re=Q.index,fe=Q.last,qe=l.oxw(2),$e=l.MAs(4);l.xp6(1),l.Q6J("ngTemplateOutlet",$e)("ngTemplateOutletContext",l.WLB(10,L,B,re)),l.xp6(1),l.ekj("mat-stepper-vertical-line",!fe),l.xp6(1),l.ekj("mat-vertical-stepper-content-inactive",qe.selectedIndex!==re),l.Q6J("@verticalStepTransition",l.WLB(15,Z,qe._getAnimationDirection(re),l.VKq(13,_e,qe._getAnimationDuration())))("id",qe._getStepContentId(re)),l.uIk("aria-labelledby",qe._getStepLabelId(re)),l.xp6(2),l.Q6J("ngTemplateOutlet",B.content)}}function x(K,Q){if(1&K&&(l.ynx(0),l.YNc(1,k,6,18,"div",14),l.BQk()),2&K){const B=l.oxw();l.xp6(1),l.Q6J("ngForOf",B.steps)}}function z(K,Q){if(1&K){const B=l.EpF();l.TgZ(0,"mat-step-header",19),l.NdJ("click",function(){const qe=l.CHM(B).step;return l.KtG(qe.select())})("keydown",function(fe){l.CHM(B);const qe=l.oxw();return l.KtG(qe._onKeydown(fe))}),l.qZA()}if(2&K){const B=Q.step,re=Q.i,fe=l.oxw();l.ekj("mat-horizontal-stepper-header","horizontal"===fe.orientation)("mat-vertical-stepper-header","vertical"===fe.orientation),l.Q6J("tabIndex",fe._getFocusIndex()===re?0:-1)("id",fe._getStepLabelId(re))("index",re)("state",fe._getIndicatorType(re,B.state))("label",B.stepLabel||B.label)("selected",fe.selectedIndex===re)("active",fe._stepIsNavigable(re,B))("optional",B.optional)("errorMessage",B.errorMessage)("iconOverrides",fe._iconOverrides)("disableRipple",fe.disableRipple||!fe._stepIsNavigable(re,B))("color",B.color||fe.color),l.uIk("aria-posinset",re+1)("aria-setsize",fe.steps.length)("aria-controls",fe._getStepContentId(re))("aria-selected",fe.selectedIndex==re)("aria-label",B.ariaLabel||null)("aria-labelledby",!B.ariaLabel&&B.ariaLabelledby?B.ariaLabelledby:null)("aria-disabled",!fe._stepIsNavigable(re,B)||null)}}let j=(()=>{class K extends e.u6{}return K.\u0275fac=function(){let Q;return function(re){return(Q||(Q=l.n5z(K)))(re||K)}}(),K.\u0275dir=l.lG2({type:K,selectors:[["","matStepLabel",""]],features:[l.qOj]}),K})(),Ne=(()=>{class K{constructor(){this.changes=new m.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return K.\u0275fac=function(B){return new(B||K)},K.\u0275prov=l.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})();const We={provide:Ne,deps:[[new l.FiY,new l.tp0,Ne]],useFactory:function tt(K){return K||new Ne}},ze=(0,r.pj)(class extends e.KL{constructor(Q){super(Q)}},"primary");let we=(()=>{class K extends ze{constructor(B,re,fe,qe){super(fe),this._intl=B,this._focusMonitor=re,this._intlSubscription=B.changes.subscribe(()=>qe.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(B,re){B?this._focusMonitor.focusVia(this._elementRef,B,re):this._elementRef.nativeElement.focus(re)}_stringLabel(){return this.label instanceof j?null:this.label}_templateLabel(){return this.label instanceof j?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(B){return"number"==B?`${this.index+1}`:"edit"==B?"create":"error"==B?"warning":B}}return K.\u0275fac=function(B){return new(B||K)(l.Y36(Ne),l.Y36(E.tE),l.Y36(l.SBq),l.Y36(l.sBO))},K.\u0275cmp=l.Xpm({type:K,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[l.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(B,re){1&B&&(l._UZ(0,"div",0),l.TgZ(1,"div")(2,"div",1),l.YNc(3,M,1,2,"ng-container",2),l.YNc(4,de,5,4,"ng-container",3),l.qZA()(),l.TgZ(5,"div",4),l.YNc(6,ye,2,1,"div",5),l.YNc(7,Ee,2,1,"div",5),l.YNc(8,Le,2,1,"div",6),l.YNc(9,ge,2,1,"div",7),l.qZA()),2&B&&(l.Q6J("matRippleTrigger",re._getHostElement())("matRippleDisabled",re.disableRipple),l.xp6(1),l.Gre("mat-step-icon-state-",re.state," mat-step-icon"),l.ekj("mat-step-icon-selected",re.selected),l.xp6(1),l.Q6J("ngSwitch",!(!re.iconOverrides||!re.iconOverrides[re.state])),l.xp6(1),l.Q6J("ngSwitchCase",!0),l.xp6(2),l.ekj("mat-step-label-active",re.active)("mat-step-label-selected",re.selected)("mat-step-label-error","error"==re.state),l.xp6(1),l.Q6J("ngIf",re._templateLabel()),l.xp6(1),l.Q6J("ngIf",re._stringLabel()),l.xp6(1),l.Q6J("ngIf",re.optional&&"error"!=re.state),l.xp6(1),l.Q6J("ngIf","error"==re.state))},dependencies:[d.O5,d.tP,d.RF,d.n9,d.ED,c.Hw,r.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),K})();const Se={horizontalStepTransition:(0,D.X$)("horizontalStepTransition",[(0,D.SB)("previous",(0,D.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,D.SB)("current",(0,D.oB)({transform:"none",visibility:"inherit"})),(0,D.SB)("next",(0,D.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,D.eR)("* => *",(0,D.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,D.X$)("verticalStepTransition",[(0,D.SB)("previous",(0,D.oB)({height:"0px",visibility:"hidden"})),(0,D.SB)("next",(0,D.oB)({height:"0px",visibility:"hidden"})),(0,D.SB)("current",(0,D.oB)({height:"*",visibility:"inherit"})),(0,D.eR)("* <=> current",(0,D.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let ke=(()=>{class K{constructor(B){this.templateRef=B}}return K.\u0275fac=function(B){return new(B||K)(l.Y36(l.Rgc))},K.\u0275dir=l.lG2({type:K,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),K})(),Ge=(()=>{class K{constructor(B){this._template=B}}return K.\u0275fac=function(B){return new(B||K)(l.Y36(l.Rgc))},K.\u0275dir=l.lG2({type:K,selectors:[["ng-template","matStepContent",""]]}),K})(),Tt=(()=>{class K extends e.be{constructor(B,re,fe,qe){super(B,qe),this._errorStateMatcher=re,this._viewContainerRef=fe,this._isSelected=v.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,n.w)(()=>this._stepper.selectionChange.pipe((0,i.U)(B=>B.selectedStep===this),(0,P.O)(this._stepper.selected===this)))).subscribe(B=>{B&&this._lazyContent&&!this._portal&&(this._portal=new t.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(B,re){return this._errorStateMatcher.isErrorState(B,re)||!!(B&&B.invalid&&this.interacted)}}return K.\u0275fac=function(B){return new(B||K)(l.Y36((0,l.Gpc)(()=>Et)),l.Y36(r.rD,4),l.Y36(l.s_b),l.Y36(e.gx,8))},K.\u0275cmp=l.Xpm({type:K,selectors:[["mat-step"]],contentQueries:function(B,re,fe){if(1&B&&(l.Suo(fe,j,5),l.Suo(fe,Ge,5)),2&B){let qe;l.iGM(qe=l.CRH())&&(re.stepLabel=qe.first),l.iGM(qe=l.CRH())&&(re._lazyContent=qe.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[l._Bn([{provide:r.rD,useExisting:K},{provide:e.be,useExisting:K}]),l.qOj],ngContentSelectors:se,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(B,re){1&B&&(l.F$t(),l.YNc(0,ee,2,1,"ng-template"))},dependencies:[t.Pl],encapsulation:2,changeDetection:0}),K})(),Et=(()=>{class K extends e.B8{get animationDuration(){return this._animationDuration}set animationDuration(B){this._animationDuration=/^\d+$/.test(B)?B+"ms":B}constructor(B,re,fe){super(B,re,fe),this.steps=new l.n_E,this.animationDone=new l.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new m.x,this._animationDuration="";const qe=fe.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===qe?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:B,templateRef:re})=>this._iconOverrides[B]=re),this.steps.changes.pipe((0,I.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,q.x)((B,re)=>B.fromState===re.fromState&&B.toState===re.toState),(0,I.R)(this._destroyed)).subscribe(B=>{"current"===B.toState&&this.animationDone.emit()})}_stepIsNavigable(B,re){return re.completed||this.selectedIndex===B||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return K.\u0275fac=function(B){return new(B||K)(l.Y36(C.Is,8),l.Y36(l.sBO),l.Y36(l.SBq))},K.\u0275cmp=l.Xpm({type:K,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(B,re,fe){if(1&B&&(l.Suo(fe,Tt,5),l.Suo(fe,ke,5)),2&B){let qe;l.iGM(qe=l.CRH())&&(re._steps=qe),l.iGM(qe=l.CRH())&&(re._icons=qe)}},viewQuery:function(B,re){if(1&B&&l.Gf(we,5),2&B){let fe;l.iGM(fe=l.CRH())&&(re._stepHeader=fe)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(B,re){2&B&&(l.uIk("aria-orientation",re.orientation),l.ekj("mat-stepper-horizontal","horizontal"===re.orientation)("mat-stepper-vertical","vertical"===re.orientation)("mat-stepper-label-position-end","horizontal"===re.orientation&&"end"==re.labelPosition)("mat-stepper-label-position-bottom","horizontal"===re.orientation&&"bottom"==re.labelPosition)("mat-stepper-header-position-bottom","bottom"===re.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[l._Bn([{provide:e.B8,useExisting:K}]),l.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(B,re){1&B&&(l.ynx(0,0),l.YNc(1,w,5,2,"div",1),l.YNc(2,x,2,1,"ng-container",2),l.BQk(),l.YNc(3,z,1,23,"ng-template",null,3,l.W1O)),2&B&&(l.Q6J("ngSwitch",re.orientation),l.xp6(1),l.Q6J("ngSwitchCase","horizontal"),l.xp6(1),l.Q6J("ngSwitchCase","vertical"))},dependencies:[d.sg,d.O5,d.tP,d.RF,d.n9,we],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[Se.horizontalStepTransition,Se.verticalStepTransition]},changeDetection:0}),K})(),H=(()=>{class K extends e.st{}return K.\u0275fac=function(){let Q;return function(re){return(Q||(Q=l.n5z(K)))(re||K)}}(),K.\u0275dir=l.lG2({type:K,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(B,re){2&B&&l.Ikx("type",re.type)},inputs:{type:"type"},features:[l.qOj]}),K})(),S=(()=>{class K{}return K.\u0275fac=function(B){return new(B||K)},K.\u0275mod=l.oAB({type:K}),K.\u0275inj=l.cJS({providers:[We,r.rD],imports:[r.BQ,d.ez,t.eL,e.U5,c.Ps,r.si,r.BQ]}),K})()},20469:(St,be,s)=>{"use strict";s.d(be,{BZ:()=>M,Dz:()=>T,Ee:()=>L,Gk:()=>W,Ke:()=>ge,Q2:()=>se,XQ:()=>ee,as:()=>Le,by:()=>k,ev:()=>Ee,fO:()=>F,ge:()=>de,mD:()=>le,nj:()=>ue,p0:()=>Z,w1:()=>V,yh:()=>ye});var t=s(73991),e=s(52908),d=s(71106),l=s(52051),r=s(93216),c=s(68264),E=s(50805),m=s(95195),v=s(70754),C=s(45903),n=s(87580);const i=[[["caption"]],[["colgroup"],["col"]]],P=["caption","colgroup, col"];let M=(()=>{class x extends e.zC{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}}return x.\u0275fac=function(){let z;return function(Ne){return(z||(z=t.n5z(x)))(Ne||x)}}(),x.\u0275cmp=t.Xpm({type:x,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(j,Ne){2&j&&t.ekj("mdc-table-fixed-layout",Ne.fixedLayout)},exportAs:["matTable"],features:[t._Bn([{provide:e.zC,useExisting:x},{provide:e.pN,useExisting:x},{provide:e.nl,useClass:e.oF},{provide:d.k,useClass:d.yy},{provide:e.pF,useValue:null}]),t.qOj],ngContentSelectors:P,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(j,Ne){1&j&&(t.F$t(i),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[e.T$,e.FT,e.$E,e.bH],styles:[".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2}),x})(),T=(()=>{class x extends e.O_{}return x.\u0275fac=function(){let z;return function(Ne){return(z||(z=t.n5z(x)))(Ne||x)}}(),x.\u0275dir=t.lG2({type:x,selectors:[["","matCellDef",""]],features:[t._Bn([{provide:e.O_,useExisting:x}]),t.qOj]}),x})(),F=(()=>{class x extends e.D5{}return x.\u0275fac=function(){let z;return function(Ne){return(z||(z=t.n5z(x)))(Ne||x)}}(),x.\u0275dir=t.lG2({type:x,selectors:[["","matHeaderCellDef",""]],features:[t._Bn([{provide:e.D5,useExisting:x}]),t.qOj]}),x})(),le=(()=>{class x extends e.Z4{}return x.\u0275fac=function(){let z;return function(Ne){return(z||(z=t.n5z(x)))(Ne||x)}}(),x.\u0275dir=t.lG2({type:x,selectors:[["","matFooterCellDef",""]],features:[t._Bn([{provide:e.Z4,useExisting:x}]),t.qOj]}),x})(),V=(()=>{class x extends e.fo{get name(){return this._name}set name(j){this._setNameInput(j)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return x.\u0275fac=function(){let z;return function(Ne){return(z||(z=t.n5z(x)))(Ne||x)}}(),x.\u0275dir=t.lG2({type:x,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[t._Bn([{provide:e.fo,useExisting:x},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:x}]),t.qOj]}),x})(),de=(()=>{class x extends e.Af{}return x.\u0275fac=function(){let z;return function(Ne){return(z||(z=t.n5z(x)))(Ne||x)}}(),x.\u0275dir=t.lG2({type:x,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[t.qOj]}),x})(),ye=(()=>{class x extends e.QJ{}return x.\u0275fac=function(){let z;return function(Ne){return(z||(z=t.n5z(x)))(Ne||x)}}(),x.\u0275dir=t.lG2({type:x,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[t.qOj]}),x})(),Ee=(()=>{class x extends e.hD{}return x.\u0275fac=function(){let z;return function(Ne){return(z||(z=t.n5z(x)))(Ne||x)}}(),x.\u0275dir=t.lG2({type:x,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[t.qOj]}),x})(),Le=(()=>{class x extends e.s${}return x.\u0275fac=function(){let z;return function(Ne){return(z||(z=t.n5z(x)))(Ne||x)}}(),x.\u0275dir=t.lG2({type:x,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[t._Bn([{provide:e.s$,useExisting:x}]),t.qOj]}),x})(),ge=(()=>{class x extends e.fe{}return x.\u0275fac=function(){let z;return function(Ne){return(z||(z=t.n5z(x)))(Ne||x)}}(),x.\u0275dir=t.lG2({type:x,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[t._Bn([{provide:e.fe,useExisting:x}]),t.qOj]}),x})(),ue=(()=>{class x extends e.Sq{}return x.\u0275fac=function(){let z;return function(Ne){return(z||(z=t.n5z(x)))(Ne||x)}}(),x.\u0275dir=t.lG2({type:x,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[t._Bn([{provide:e.Sq,useExisting:x}]),t.qOj]}),x})(),ee=(()=>{class x extends e.xN{}return x.\u0275fac=function(){let z;return function(Ne){return(z||(z=t.n5z(x)))(Ne||x)}}(),x.\u0275cmp=t.Xpm({type:x,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[t._Bn([{provide:e.xN,useExisting:x}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(j,Ne){1&j&&t.GkF(0,0)},dependencies:[e.Kb],encapsulation:2}),x})(),se=(()=>{class x extends e.qM{}return x.\u0275fac=function(){let z;return function(Ne){return(z||(z=t.n5z(x)))(Ne||x)}}(),x.\u0275cmp=t.Xpm({type:x,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],features:[t._Bn([{provide:e.qM,useExisting:x}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(j,Ne){1&j&&t.GkF(0,0)},dependencies:[e.Kb],encapsulation:2}),x})(),W=(()=>{class x extends e._J{}return x.\u0275fac=function(){let z;return function(Ne){return(z||(z=t.n5z(x)))(Ne||x)}}(),x.\u0275cmp=t.Xpm({type:x,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[t._Bn([{provide:e._J,useExisting:x}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(j,Ne){1&j&&t.GkF(0,0)},dependencies:[e.Kb],encapsulation:2}),x})(),L=(()=>{class x extends e.r2{constructor(){super(...arguments),this._contentClassName="mat-mdc-no-data-row"}}return x.\u0275fac=function(){let z;return function(Ne){return(z||(z=t.n5z(x)))(Ne||x)}}(),x.\u0275dir=t.lG2({type:x,selectors:[["ng-template","matNoDataRow",""]],features:[t._Bn([{provide:e.r2,useExisting:x}]),t.qOj]}),x})(),Z=(()=>{class x{}return x.\u0275fac=function(j){return new(j||x)},x.\u0275mod=t.oAB({type:x}),x.\u0275inj=t.cJS({imports:[l.BQ,e.HT,l.BQ]}),x})();class w extends d.o2{get data(){return this._data.value}set data(z){z=Array.isArray(z)?z:[],this._data.next(z),this._renderChangesSubscription||this._filterData(z)}get filter(){return this._filter.value}set filter(z){this._filter.next(z),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(z){this._sort=z,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(z){this._paginator=z,this._updateChangeSubscription()}constructor(z=[]){super(),this._renderData=new r.X([]),this._filter=new r.X(""),this._internalPageChanges=new c.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(j,Ne)=>{const tt=j[Ne];if((0,C.t6)(tt)){const We=Number(tt);return We<9007199254740991?We:tt}return tt},this.sortData=(j,Ne)=>{const tt=Ne.active,We=Ne.direction;return tt&&""!=We?j.sort((ze,we)=>{let Ye=this.sortingDataAccessor(ze,tt),te=this.sortingDataAccessor(we,tt);const Se=typeof Ye,ke=typeof te;Se!==ke&&("number"===Se&&(Ye+=""),"number"===ke&&(te+=""));let Ge=0;return null!=Ye&&null!=te?Ye>te?Ge=1:Ye<te&&(Ge=-1):null!=Ye?Ge=1:null!=te&&(Ge=-1),Ge*("asc"==We?1:-1)}):j},this.filterPredicate=(j,Ne)=>{const tt=Object.keys(j).reduce((ze,we)=>ze+j[we]+"\u25ec","").toLowerCase(),We=Ne.trim().toLowerCase();return-1!=tt.indexOf(We)},this._data=new r.X(z),this._updateChangeSubscription()}_updateChangeSubscription(){const z=this._sort?(0,E.T)(this._sort.sortChange,this._sort.initialized):(0,m.of)(null),j=this._paginator?(0,E.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,m.of)(null),tt=(0,v.a)([this._data,this._filter]).pipe((0,n.U)(([we])=>this._filterData(we))),We=(0,v.a)([tt,z]).pipe((0,n.U)(([we])=>this._orderData(we))),ze=(0,v.a)([We,j]).pipe((0,n.U)(([we])=>this._pageData(we)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=ze.subscribe(we=>this._renderData.next(we))}_filterData(z){return this.filteredData=null==this.filter||""===this.filter?z:z.filter(j=>this.filterPredicate(j,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(z){return this.sort?this.sortData(z.slice(),this.sort):z}_pageData(z){if(!this.paginator)return z;const j=this.paginator.pageIndex*this.paginator.pageSize;return z.slice(j,j+this.paginator.pageSize)}_updatePaginator(z){Promise.resolve().then(()=>{const j=this.paginator;if(j&&(j.length=z,j.pageIndex>0)){const Ne=Math.ceil(j.length/j.pageSize)-1||0,tt=Math.min(j.pageIndex,Ne);tt!==j.pageIndex&&(j.pageIndex=tt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class k extends w{}},4324:(St,be,s)=>{"use strict";s.d(be,{Ye:()=>v,g0:()=>n,rD:()=>m});var t=s(73991),e=s(52051),d=s(71329),l=s(17774);const r=["*",[["mat-toolbar-row"]]],c=["*","mat-toolbar-row"],E=(0,e.pj)(class{constructor(i){this._elementRef=i}});let m=(()=>{class i{}return i.\u0275fac=function(I){return new(I||i)},i.\u0275dir=t.lG2({type:i,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),i})(),v=(()=>{class i extends E{constructor(I,q,D){super(I),this._platform=q,this._document=D}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return i.\u0275fac=function(I){return new(I||i)(t.Y36(t.SBq),t.Y36(d.t4),t.Y36(l.K0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-toolbar"]],contentQueries:function(I,q,D){if(1&I&&t.Suo(D,m,5),2&I){let M;t.iGM(M=t.CRH())&&(q._toolbarRows=M)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(I,q){2&I&&t.ekj("mat-toolbar-multiple-rows",q._toolbarRows.length>0)("mat-toolbar-single-row",0===q._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[t.qOj],ngContentSelectors:c,decls:2,vars:0,template:function(I,q){1&I&&(t.F$t(r),t.Hsn(0),t.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),i})(),n=(()=>{class i{}return i.\u0275fac=function(I){return new(I||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[e.BQ,e.BQ]}),i})()},31180:(St,be,s)=>{"use strict";s.d(be,{AV:()=>k,Jm:()=>ye,Mp:()=>V,cV:()=>F,gM:()=>_e,tr:()=>Z,xT:()=>he});var t=s(30003),e=s(32653),d=s(45903),l=s(20849),r=s(73991),c=s(17774),E=s(71329),m=s(70232),v=s(88793),C=s(58153),n=s(9620),i=s(27444),P=s(68264),q=(s(96191),s(52051));const D=["tooltip"],F=new r.OlP("mat-tooltip-scroll-strategy"),V={provide:F,deps:[C.aV],useFactory:function le(x){return()=>x.scrollStrategies.reposition({scrollThrottle:20})}},ye=new r.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function de(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),Le="tooltip-panel",ge=(0,E.i$)({passive:!0});let he=(()=>{class x{get position(){return this._position}set position(j){j!==this._position&&(this._position=j,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(j){this._positionAtOrigin=(0,d.Ig)(j),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(j){this._disabled=(0,d.Ig)(j),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(j){this._showDelay=(0,d.su)(j)}get hideDelay(){return this._hideDelay}set hideDelay(j){this._hideDelay=(0,d.su)(j),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(j){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=j?String(j).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(j){this._tooltipClass=j,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(j,Ne,tt,We,ze,we,Ye,te,Se,ke,Ge,Tt){this._overlay=j,this._elementRef=Ne,this._scrollDispatcher=tt,this._viewContainerRef=We,this._ngZone=ze,this._platform=we,this._ariaDescriber=Ye,this._focusMonitor=te,this._dir=ke,this._defaultOptions=Ge,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new P.x,this._scrollStrategy=Se,this._document=Tt,Ge&&(Ge.position&&(this.position=Ge.position),Ge.positionAtOrigin&&(this.positionAtOrigin=Ge.positionAtOrigin),Ge.touchGestures&&(this.touchGestures=Ge.touchGestures)),ke.change.pipe((0,t.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,t.R)(this._destroyed)).subscribe(j=>{j?"keyboard"===j&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const j=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Ne,tt])=>{j.removeEventListener(Ne,tt,ge)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(j,this.message,"tooltip"),this._focusMonitor.stopMonitoring(j)}show(j=this.showDelay,Ne){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const tt=this._createOverlay(Ne);this._detach(),this._portal=this._portal||new i.C5(this._tooltipComponent,this._viewContainerRef);const We=this._tooltipInstance=tt.attach(this._portal).instance;We._triggerElement=this._elementRef.nativeElement,We._mouseLeaveHideDelay=this._hideDelay,We.afterHidden().pipe((0,t.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),We.show(j)}hide(j=this.hideDelay){const Ne=this._tooltipInstance;Ne&&(Ne.isVisible()?Ne.hide(j):(Ne._cancelPendingAnimations(),this._detach()))}toggle(j){this._isTooltipVisible()?this.hide():this.show(void 0,j)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(j){if(this._overlayRef){const We=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!j)&&We._origin instanceof r.SBq)return this._overlayRef;this._detach()}const Ne=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),tt=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&j||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Ne);return tt.positionChanges.pipe((0,t.R)(this._destroyed)).subscribe(We=>{this._updateCurrentPositionClass(We.connectionPair),this._tooltipInstance&&We.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:tt,panelClass:`${this._cssClassPrefix}-${Le}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,t.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,t.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,t.R)(this._destroyed)).subscribe(We=>{this._isTooltipVisible()&&We.keyCode===l.hY&&!(0,l.Vb)(We)&&(We.preventDefault(),We.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(j){const Ne=j.getConfig().positionStrategy,tt=this._getOrigin(),We=this._getOverlayPosition();Ne.withPositions([this._addOffset({...tt.main,...We.main}),this._addOffset({...tt.fallback,...We.fallback})])}_addOffset(j){return j}_getOrigin(){const j=!this._dir||"ltr"==this._dir.value,Ne=this.position;let tt;"above"==Ne||"below"==Ne?tt={originX:"center",originY:"above"==Ne?"top":"bottom"}:"before"==Ne||"left"==Ne&&j||"right"==Ne&&!j?tt={originX:"start",originY:"center"}:("after"==Ne||"right"==Ne&&j||"left"==Ne&&!j)&&(tt={originX:"end",originY:"center"});const{x:We,y:ze}=this._invertPosition(tt.originX,tt.originY);return{main:tt,fallback:{originX:We,originY:ze}}}_getOverlayPosition(){const j=!this._dir||"ltr"==this._dir.value,Ne=this.position;let tt;"above"==Ne?tt={overlayX:"center",overlayY:"bottom"}:"below"==Ne?tt={overlayX:"center",overlayY:"top"}:"before"==Ne||"left"==Ne&&j||"right"==Ne&&!j?tt={overlayX:"end",overlayY:"center"}:("after"==Ne||"right"==Ne&&j||"left"==Ne&&!j)&&(tt={overlayX:"start",overlayY:"center"});const{x:We,y:ze}=this._invertPosition(tt.overlayX,tt.overlayY);return{main:tt,fallback:{overlayX:We,overlayY:ze}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,e.q)(1),(0,t.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(j){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=j,this._tooltipInstance._markForCheck())}_invertPosition(j,Ne){return"above"===this.position||"below"===this.position?"top"===Ne?Ne="bottom":"bottom"===Ne&&(Ne="top"):"end"===j?j="start":"start"===j&&(j="end"),{x:j,y:Ne}}_updateCurrentPositionClass(j){const{overlayY:Ne,originX:tt,originY:We}=j;let ze;if(ze="center"===Ne?this._dir&&"rtl"===this._dir.value?"end"===tt?"left":"right":"start"===tt?"left":"right":"bottom"===Ne&&"top"===We?"above":"below",ze!==this._currentPosition){const we=this._overlayRef;if(we){const Ye=`${this._cssClassPrefix}-${Le}-`;we.removePanelClass(Ye+this._currentPosition),we.addPanelClass(Ye+ze)}this._currentPosition=ze}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",j=>{let Ne;this._setupPointerExitEventsIfNeeded(),void 0!==j.x&&void 0!==j.y&&(Ne=j),this.show(void 0,Ne)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",j=>{const Ne=j.targetTouches?.[0],tt=Ne?{x:Ne.clientX,y:Ne.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,tt),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const j=[];if(this._platformSupportsMouseEvents())j.push(["mouseleave",Ne=>{const tt=Ne.relatedTarget;(!tt||!this._overlayRef?.overlayElement.contains(tt))&&this.hide()}],["wheel",Ne=>this._wheelListener(Ne)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Ne=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};j.push(["touchend",Ne],["touchcancel",Ne])}this._addListeners(j),this._passiveListeners.push(...j)}_addListeners(j){j.forEach(([Ne,tt])=>{this._elementRef.nativeElement.addEventListener(Ne,tt,ge)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(j){if(this._isTooltipVisible()){const Ne=this._document.elementFromPoint(j.clientX,j.clientY),tt=this._elementRef.nativeElement;Ne!==tt&&!tt.contains(Ne)&&this.hide()}}_disableNativeGesturesIfNecessary(){const j=this.touchGestures;if("off"!==j){const Ne=this._elementRef.nativeElement,tt=Ne.style;("on"===j||"INPUT"!==Ne.nodeName&&"TEXTAREA"!==Ne.nodeName)&&(tt.userSelect=tt.msUserSelect=tt.webkitUserSelect=tt.MozUserSelect="none"),("on"===j||!Ne.draggable)&&(tt.webkitUserDrag="none"),tt.touchAction="none",tt.webkitTapHighlightColor="transparent"}}}return x.\u0275fac=function(j){r.$Z()},x.\u0275dir=r.lG2({type:x,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),x})(),_e=(()=>{class x extends he{constructor(j,Ne,tt,We,ze,we,Ye,te,Se,ke,Ge,Tt){super(j,Ne,tt,We,ze,we,Ye,te,Se,ke,Ge,Tt),this._tooltipComponent=Te,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(j){const tt=!this._dir||"ltr"==this._dir.value;return"top"===j.originY?j.offsetY=-8:"bottom"===j.originY?j.offsetY=8:"start"===j.originX?j.offsetX=tt?-8:8:"end"===j.originX&&(j.offsetX=tt?8:-8),j}}return x.\u0275fac=function(j){return new(j||x)(r.Y36(C.aV),r.Y36(r.SBq),r.Y36(n.mF),r.Y36(r.s_b),r.Y36(r.R0b),r.Y36(E.t4),r.Y36(m.$s),r.Y36(m.tE),r.Y36(F),r.Y36(v.Is,8),r.Y36(ye,8),r.Y36(c.K0))},x.\u0275dir=r.lG2({type:x,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[r.qOj]}),x})(),Z=(()=>{class x{constructor(j,Ne){this._changeDetectorRef=j,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new P.x,this._animationsDisabled="NoopAnimations"===Ne}show(j){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},j)}hide(j){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},j)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:j}){(!j||!this._triggerElement.contains(j))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:j}){(j===this._showAnimation||j===this._hideAnimation)&&this._finalizeAnimation(j===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(j){j?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(j){const Ne=this._tooltip.nativeElement,tt=this._showAnimation,We=this._hideAnimation;if(Ne.classList.remove(j?We:tt),Ne.classList.add(j?tt:We),this._isVisible=j,j&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const ze=getComputedStyle(Ne);("0s"===ze.getPropertyValue("animation-duration")||"none"===ze.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}j&&this._onShow(),this._animationsDisabled&&(Ne.classList.add("_mat-animation-noopable"),this._finalizeAnimation(j))}}return x.\u0275fac=function(j){return new(j||x)(r.Y36(r.sBO),r.Y36(r.QbO,8))},x.\u0275dir=r.lG2({type:x}),x})(),Te=(()=>{class x extends Z{constructor(j,Ne,tt){super(j,tt),this._elementRef=Ne,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const j=this._elementRef.nativeElement.getBoundingClientRect();return j.height>24&&j.width>=200}}return x.\u0275fac=function(j){return new(j||x)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.QbO,8))},x.\u0275cmp=r.Xpm({type:x,selectors:[["mat-tooltip-component"]],viewQuery:function(j,Ne){if(1&j&&r.Gf(D,7),2&j){let tt;r.iGM(tt=r.CRH())&&(Ne._tooltip=tt.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(j,Ne){1&j&&r.NdJ("mouseleave",function(We){return Ne._handleMouseLeave(We)}),2&j&&r.Udp("zoom",Ne.isVisible()?1:null)},features:[r.qOj],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(j,Ne){1&j&&(r.TgZ(0,"div",0,1),r.NdJ("animationend",function(We){return Ne._handleAnimationEnd(We)}),r.TgZ(2,"div",2),r._uU(3),r.qZA()()),2&j&&(r.ekj("mdc-tooltip--multiline",Ne._isMultiline),r.Q6J("ngClass",Ne.tooltipClass),r.xp6(3),r.Oqu(Ne.message))},dependencies:[c.mk],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),x})(),k=(()=>{class x{}return x.\u0275fac=function(j){return new(j||x)},x.\u0275mod=r.oAB({type:x}),x.\u0275inj=r.cJS({providers:[V],imports:[m.rt,c.ez,C.U8,q.BQ,q.BQ,n.ZD]}),x})()},24510:(St,be,s)=>{"use strict";s.d(be,{Dx:()=>$e,H7:()=>Pt,b2:()=>Q,h_:()=>re,q6:()=>H,se:()=>L});var t=s(17774),e=s(73991);class d extends t.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class l extends d{static makeCurrent(){(0,t.HT)(new l)}onAndCancel(ut,nt,Ht){return ut.addEventListener(nt,Ht,!1),()=>{ut.removeEventListener(nt,Ht,!1)}}dispatchEvent(ut,nt){ut.dispatchEvent(nt)}remove(ut){ut.parentNode&&ut.parentNode.removeChild(ut)}createElement(ut,nt){return(nt=nt||this.getDefaultDocument()).createElement(ut)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ut){return ut.nodeType===Node.ELEMENT_NODE}isShadowRoot(ut){return ut instanceof DocumentFragment}getGlobalEventTarget(ut,nt){return"window"===nt?window:"document"===nt?ut:"body"===nt?ut.body:null}getBaseHref(ut){const nt=function c(){return r=r||document.querySelector("base"),r?r.getAttribute("href"):null}();return null==nt?null:function m(Me){E=E||document.createElement("a"),E.setAttribute("href",Me);const ut=E.pathname;return"/"===ut.charAt(0)?ut:`/${ut}`}(nt)}resetBaseElement(){r=null}getUserAgent(){return window.navigator.userAgent}getCookie(ut){return(0,t.Mx)(document.cookie,ut)}}let E,r=null;const v=new e.OlP("TRANSITION_ID"),n=[{provide:e.ip1,useFactory:function C(Me,ut,nt){return()=>{nt.get(e.CZH).donePromise.then(()=>{const Ht=(0,t.q)(),pr=ut.querySelectorAll(`style[ng-transition="${Me}"]`);for(let Lr=0;Lr<pr.length;Lr++)Ht.remove(pr[Lr])})}},deps:[v,t.K0,e.zs3],multi:!0}];let P=(()=>{class Me{build(){return new XMLHttpRequest}}return Me.\u0275fac=function(nt){return new(nt||Me)},Me.\u0275prov=e.Yz7({token:Me,factory:Me.\u0275fac}),Me})();const I=new e.OlP("EventManagerPlugins");let q=(()=>{class Me{constructor(nt,Ht){this._zone=Ht,this._eventNameToPlugin=new Map,nt.forEach(pr=>{pr.manager=this}),this._plugins=nt.slice().reverse()}addEventListener(nt,Ht,pr){return this._findPluginFor(Ht).addEventListener(nt,Ht,pr)}addGlobalEventListener(nt,Ht,pr){return this._findPluginFor(Ht).addGlobalEventListener(nt,Ht,pr)}getZone(){return this._zone}_findPluginFor(nt){const Ht=this._eventNameToPlugin.get(nt);if(Ht)return Ht;const pr=this._plugins;for(let Lr=0;Lr<pr.length;Lr++){const Kr=pr[Lr];if(Kr.supports(nt))return this._eventNameToPlugin.set(nt,Kr),Kr}throw new Error(`No event manager plugin found for event ${nt}`)}}return Me.\u0275fac=function(nt){return new(nt||Me)(e.LFG(I),e.LFG(e.R0b))},Me.\u0275prov=e.Yz7({token:Me,factory:Me.\u0275fac}),Me})();class D{constructor(ut){this._doc=ut}addGlobalEventListener(ut,nt,Ht){const pr=(0,t.q)().getGlobalEventTarget(this._doc,ut);if(!pr)throw new Error(`Unsupported event target ${pr} for event ${nt}`);return this.addEventListener(pr,nt,Ht)}}let M=(()=>{class Me{constructor(){this.usageCount=new Map}addStyles(nt){for(const Ht of nt)1===this.changeUsageCount(Ht,1)&&this.onStyleAdded(Ht)}removeStyles(nt){for(const Ht of nt)0===this.changeUsageCount(Ht,-1)&&this.onStyleRemoved(Ht)}onStyleRemoved(nt){}onStyleAdded(nt){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(nt,Ht){const pr=this.usageCount;let Lr=pr.get(nt)??0;return Lr+=Ht,Lr>0?pr.set(nt,Lr):pr.delete(nt),Lr}ngOnDestroy(){for(const nt of this.getAllStyles())this.onStyleRemoved(nt);this.usageCount.clear()}}return Me.\u0275fac=function(nt){return new(nt||Me)},Me.\u0275prov=e.Yz7({token:Me,factory:Me.\u0275fac}),Me})(),T=(()=>{class Me extends M{constructor(nt){super(),this.doc=nt,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(nt){for(const Ht of this.hostNodes)this.addStyleToHost(Ht,nt)}onStyleRemoved(nt){const Ht=this.styleRef;Ht.get(nt)?.forEach(Lr=>Lr.remove()),Ht.delete(nt)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(nt){this.hostNodes.add(nt);for(const Ht of this.getAllStyles())this.addStyleToHost(nt,Ht)}removeHost(nt){this.hostNodes.delete(nt)}addStyleToHost(nt,Ht){const pr=this.doc.createElement("style");pr.textContent=Ht,nt.appendChild(pr);const Lr=this.styleRef.get(Ht);Lr?Lr.push(pr):this.styleRef.set(Ht,[pr])}resetHostNodes(){const nt=this.hostNodes;nt.clear(),nt.add(this.doc.head)}}return Me.\u0275fac=function(nt){return new(nt||Me)(e.LFG(t.K0))},Me.\u0275prov=e.Yz7({token:Me,factory:Me.\u0275fac}),Me})();const F={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/"},le=/%COMP%/g,ge=new e.OlP("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function se(Me,ut){return ut.flat(100).map(nt=>nt.replace(le,Me))}function W(Me){return ut=>{if("__ngUnwrap__"===ut)return Me;!1===Me(ut)&&(ut.preventDefault(),ut.returnValue=!1)}}let L=(()=>{class Me{constructor(nt,Ht,pr,Lr){this.eventManager=nt,this.sharedStylesHost=Ht,this.appId=pr,this.removeStylesOnCompDestory=Lr,this.rendererByCompId=new Map,this.defaultRenderer=new he(nt)}createRenderer(nt,Ht){if(!nt||!Ht)return this.defaultRenderer;const pr=this.getOrCreateRenderer(nt,Ht);return pr instanceof x?pr.applyToHost(nt):pr instanceof k&&pr.applyStyles(),pr}getOrCreateRenderer(nt,Ht){const pr=this.rendererByCompId;let Lr=pr.get(Ht.id);if(!Lr){const Kr=this.eventManager,Cn=this.sharedStylesHost,Wn=this.removeStylesOnCompDestory;switch(Ht.encapsulation){case e.ifc.Emulated:Lr=new x(Kr,Cn,Ht,this.appId,Wn);break;case e.ifc.ShadowDom:return new w(Kr,Cn,nt,Ht);default:Lr=new k(Kr,Cn,Ht,Wn)}Lr.onDestroy=()=>pr.delete(Ht.id),pr.set(Ht.id,Lr)}return Lr}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return Me.\u0275fac=function(nt){return new(nt||Me)(e.LFG(q),e.LFG(T),e.LFG(e.AFp),e.LFG(ge))},Me.\u0275prov=e.Yz7({token:Me,factory:Me.\u0275fac}),Me})();class he{constructor(ut){this.eventManager=ut,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ut,nt){return nt?document.createElementNS(F[nt]||nt,ut):document.createElement(ut)}createComment(ut){return document.createComment(ut)}createText(ut){return document.createTextNode(ut)}appendChild(ut,nt){(Te(ut)?ut.content:ut).appendChild(nt)}insertBefore(ut,nt,Ht){ut&&(Te(ut)?ut.content:ut).insertBefore(nt,Ht)}removeChild(ut,nt){ut&&ut.removeChild(nt)}selectRootElement(ut,nt){let Ht="string"==typeof ut?document.querySelector(ut):ut;if(!Ht)throw new Error(`The selector "${ut}" did not match any elements`);return nt||(Ht.textContent=""),Ht}parentNode(ut){return ut.parentNode}nextSibling(ut){return ut.nextSibling}setAttribute(ut,nt,Ht,pr){if(pr){nt=pr+":"+nt;const Lr=F[pr];Lr?ut.setAttributeNS(Lr,nt,Ht):ut.setAttribute(nt,Ht)}else ut.setAttribute(nt,Ht)}removeAttribute(ut,nt,Ht){if(Ht){const pr=F[Ht];pr?ut.removeAttributeNS(pr,nt):ut.removeAttribute(`${Ht}:${nt}`)}else ut.removeAttribute(nt)}addClass(ut,nt){ut.classList.add(nt)}removeClass(ut,nt){ut.classList.remove(nt)}setStyle(ut,nt,Ht,pr){pr&(e.JOm.DashCase|e.JOm.Important)?ut.style.setProperty(nt,Ht,pr&e.JOm.Important?"important":""):ut.style[nt]=Ht}removeStyle(ut,nt,Ht){Ht&e.JOm.DashCase?ut.style.removeProperty(nt):ut.style[nt]=""}setProperty(ut,nt,Ht){ut[nt]=Ht}setValue(ut,nt){ut.nodeValue=nt}listen(ut,nt,Ht){return"string"==typeof ut?this.eventManager.addGlobalEventListener(ut,nt,W(Ht)):this.eventManager.addEventListener(ut,nt,W(Ht))}}function Te(Me){return"TEMPLATE"===Me.tagName&&void 0!==Me.content}class w extends he{constructor(ut,nt,Ht,pr){super(ut),this.sharedStylesHost=nt,this.hostEl=Ht,this.shadowRoot=Ht.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Lr=se(pr.id,pr.styles);for(const Kr of Lr){const Cn=document.createElement("style");Cn.textContent=Kr,this.shadowRoot.appendChild(Cn)}}nodeOrShadowRoot(ut){return ut===this.hostEl?this.shadowRoot:ut}appendChild(ut,nt){return super.appendChild(this.nodeOrShadowRoot(ut),nt)}insertBefore(ut,nt,Ht){return super.insertBefore(this.nodeOrShadowRoot(ut),nt,Ht)}removeChild(ut,nt){return super.removeChild(this.nodeOrShadowRoot(ut),nt)}parentNode(ut){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ut)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class k extends he{constructor(ut,nt,Ht,pr,Lr=Ht.id){super(ut),this.sharedStylesHost=nt,this.removeStylesOnCompDestory=pr,this.rendererUsageCount=0,this.styles=se(Lr,Ht.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class x extends k{constructor(ut,nt,Ht,pr,Lr){const Kr=pr+"-"+Ht.id;super(ut,nt,Ht,Lr,Kr),this.contentAttr=function ue(Me){return"_ngcontent-%COMP%".replace(le,Me)}(Kr),this.hostAttr=function ee(Me){return"_nghost-%COMP%".replace(le,Me)}(Kr)}applyToHost(ut){this.applyStyles(),this.setAttribute(ut,this.hostAttr,"")}createElement(ut,nt){const Ht=super.createElement(ut,nt);return super.setAttribute(Ht,this.contentAttr,""),Ht}}let z=(()=>{class Me extends D{constructor(nt){super(nt)}supports(nt){return!0}addEventListener(nt,Ht,pr){return nt.addEventListener(Ht,pr,!1),()=>this.removeEventListener(nt,Ht,pr)}removeEventListener(nt,Ht,pr){return nt.removeEventListener(Ht,pr)}}return Me.\u0275fac=function(nt){return new(nt||Me)(e.LFG(t.K0))},Me.\u0275prov=e.Yz7({token:Me,factory:Me.\u0275fac}),Me})();const j=["alt","control","meta","shift"],Ne={"\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"},tt={alt:Me=>Me.altKey,control:Me=>Me.ctrlKey,meta:Me=>Me.metaKey,shift:Me=>Me.shiftKey};let We=(()=>{class Me extends D{constructor(nt){super(nt)}supports(nt){return null!=Me.parseEventName(nt)}addEventListener(nt,Ht,pr){const Lr=Me.parseEventName(Ht),Kr=Me.eventCallback(Lr.fullKey,pr,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.q)().onAndCancel(nt,Lr.domEventName,Kr))}static parseEventName(nt){const Ht=nt.toLowerCase().split("."),pr=Ht.shift();if(0===Ht.length||"keydown"!==pr&&"keyup"!==pr)return null;const Lr=Me._normalizeKey(Ht.pop());let Kr="",Cn=Ht.indexOf("code");if(Cn>-1&&(Ht.splice(Cn,1),Kr="code."),j.forEach(zn=>{const ti=Ht.indexOf(zn);ti>-1&&(Ht.splice(ti,1),Kr+=zn+".")}),Kr+=Lr,0!=Ht.length||0===Lr.length)return null;const Wn={};return Wn.domEventName=pr,Wn.fullKey=Kr,Wn}static matchEventFullKeyCode(nt,Ht){let pr=Ne[nt.key]||nt.key,Lr="";return Ht.indexOf("code.")>-1&&(pr=nt.code,Lr="code."),!(null==pr||!pr)&&(pr=pr.toLowerCase()," "===pr?pr="space":"."===pr&&(pr="dot"),j.forEach(Kr=>{Kr!==pr&&(0,tt[Kr])(nt)&&(Lr+=Kr+".")}),Lr+=pr,Lr===Ht)}static eventCallback(nt,Ht,pr){return Lr=>{Me.matchEventFullKeyCode(Lr,nt)&&pr.runGuarded(()=>Ht(Lr))}}static _normalizeKey(nt){return"esc"===nt?"escape":nt}}return Me.\u0275fac=function(nt){return new(nt||Me)(e.LFG(t.K0))},Me.\u0275prov=e.Yz7({token:Me,factory:Me.\u0275fac}),Me})();const H=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:t.bD},{provide:e.g9A,useValue:function ke(){l.makeCurrent()},multi:!0},{provide:t.K0,useFactory:function Tt(){return(0,e.RDi)(document),document},deps:[]}]),Y=new e.OlP(""),S=[{provide:e.rWj,useClass:class i{addToWindow(ut){e.dqk.getAngularTestability=(Ht,pr=!0)=>{const Lr=ut.findTestabilityInTree(Ht,pr);if(null==Lr)throw new Error("Could not find testability for element.");return Lr},e.dqk.getAllAngularTestabilities=()=>ut.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>ut.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(Ht=>{const pr=e.dqk.getAllAngularTestabilities();let Lr=pr.length,Kr=!1;const Cn=function(Wn){Kr=Kr||Wn,Lr--,0==Lr&&Ht(Kr)};pr.forEach(function(Wn){Wn.whenStable(Cn)})})}findTestabilityInTree(ut,nt,Ht){return null==nt?null:ut.getTestability(nt)??(Ht?(0,t.q)().isShadowRoot(nt)?this.findTestabilityInTree(ut,nt.host,!0):this.findTestabilityInTree(ut,nt.parentElement,!0):null)}},deps:[]},{provide:e.lri,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]}],K=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function Ge(){return new e.qLn},deps:[]},{provide:I,useClass:z,multi:!0,deps:[t.K0,e.R0b,e.Lbi]},{provide:I,useClass:We,multi:!0,deps:[t.K0]},{provide:L,useClass:L,deps:[q,T,e.AFp,ge]},{provide:e.FYo,useExisting:L},{provide:M,useExisting:T},{provide:T,useClass:T,deps:[t.K0]},{provide:q,useClass:q,deps:[I,e.R0b]},{provide:t.JF,useClass:P,deps:[]},[]];let Q=(()=>{class Me{constructor(nt){}static withServerTransition(nt){return{ngModule:Me,providers:[{provide:e.AFp,useValue:nt.appId},{provide:v,useExisting:e.AFp},n]}}}return Me.\u0275fac=function(nt){return new(nt||Me)(e.LFG(Y,12))},Me.\u0275mod=e.oAB({type:Me}),Me.\u0275inj=e.cJS({providers:[...K,...S],imports:[t.ez,e.hGG]}),Me})(),re=(()=>{class Me{constructor(nt){this._doc=nt,this._dom=(0,t.q)()}addTag(nt,Ht=!1){return nt?this._getOrCreateElement(nt,Ht):null}addTags(nt,Ht=!1){return nt?nt.reduce((pr,Lr)=>(Lr&&pr.push(this._getOrCreateElement(Lr,Ht)),pr),[]):[]}getTag(nt){return nt&&this._doc.querySelector(`meta[${nt}]`)||null}getTags(nt){if(!nt)return[];const Ht=this._doc.querySelectorAll(`meta[${nt}]`);return Ht?[].slice.call(Ht):[]}updateTag(nt,Ht){if(!nt)return null;Ht=Ht||this._parseSelector(nt);const pr=this.getTag(Ht);return pr?this._setMetaElementAttributes(nt,pr):this._getOrCreateElement(nt,!0)}removeTag(nt){this.removeTagElement(this.getTag(nt))}removeTagElement(nt){nt&&this._dom.remove(nt)}_getOrCreateElement(nt,Ht=!1){if(!Ht){const Kr=this._parseSelector(nt),Cn=this.getTags(Kr).filter(Wn=>this._containsAttributes(nt,Wn))[0];if(void 0!==Cn)return Cn}const pr=this._dom.createElement("meta");return this._setMetaElementAttributes(nt,pr),this._doc.getElementsByTagName("head")[0].appendChild(pr),pr}_setMetaElementAttributes(nt,Ht){return Object.keys(nt).forEach(pr=>Ht.setAttribute(this._getMetaKeyMap(pr),nt[pr])),Ht}_parseSelector(nt){const Ht=nt.name?"name":"property";return`${Ht}="${nt[Ht]}"`}_containsAttributes(nt,Ht){return Object.keys(nt).every(pr=>Ht.getAttribute(this._getMetaKeyMap(pr))===nt[pr])}_getMetaKeyMap(nt){return fe[nt]||nt}}return Me.\u0275fac=function(nt){return new(nt||Me)(e.LFG(t.K0))},Me.\u0275prov=e.Yz7({token:Me,factory:function(nt){let Ht=null;return Ht=nt?new nt:function B(){return new re((0,e.LFG)(t.K0))}(),Ht},providedIn:"root"}),Me})();const fe={httpEquiv:"http-equiv"};let $e=(()=>{class Me{constructor(nt){this._doc=nt}getTitle(){return this._doc.title}setTitle(nt){this._doc.title=nt||""}}return Me.\u0275fac=function(nt){return new(nt||Me)(e.LFG(t.K0))},Me.\u0275prov=e.Yz7({token:Me,factory:function(nt){let Ht=null;return Ht=nt?new nt:function qe(){return new $e((0,e.LFG)(t.K0))}(),Ht},providedIn:"root"}),Me})();typeof window<"u"&&window;let Pt=(()=>{class Me{}return Me.\u0275fac=function(nt){return new(nt||Me)},Me.\u0275prov=e.Yz7({token:Me,factory:function(nt){let Ht=null;return Ht=nt?new(nt||Me):e.LFG(Jt),Ht},providedIn:"root"}),Me})(),Jt=(()=>{class Me extends Pt{constructor(nt){super(),this._doc=nt}sanitize(nt,Ht){if(null==Ht)return null;switch(nt){case e.q3G.NONE:return Ht;case e.q3G.HTML:return(0,e.qzn)(Ht,"HTML")?(0,e.z3N)(Ht):(0,e.EiD)(this._doc,String(Ht)).toString();case e.q3G.STYLE:return(0,e.qzn)(Ht,"Style")?(0,e.z3N)(Ht):Ht;case e.q3G.SCRIPT:if((0,e.qzn)(Ht,"Script"))return(0,e.z3N)(Ht);throw new Error("unsafe value used in a script context");case e.q3G.URL:return(0,e.qzn)(Ht,"URL")?(0,e.z3N)(Ht):(0,e.mCW)(String(Ht));case e.q3G.RESOURCE_URL:if((0,e.qzn)(Ht,"ResourceURL"))return(0,e.z3N)(Ht);throw new Error(`unsafe value used in a resource URL context (see ${e.JZr})`);default:throw new Error(`Unexpected SecurityContext ${nt} (see ${e.JZr})`)}}bypassSecurityTrustHtml(nt){return(0,e.JVY)(nt)}bypassSecurityTrustStyle(nt){return(0,e.L6k)(nt)}bypassSecurityTrustScript(nt){return(0,e.eBb)(nt)}bypassSecurityTrustUrl(nt){return(0,e.LAX)(nt)}bypassSecurityTrustResourceUrl(nt){return(0,e.pB0)(nt)}}return Me.\u0275fac=function(nt){return new(nt||Me)(e.LFG(t.K0))},Me.\u0275prov=e.Yz7({token:Me,factory:function(nt){let Ht=null;return Ht=nt?new nt:function Vt(Me){return new Jt(Me.get(t.K0))}(e.LFG(e.zs3)),Ht},providedIn:"root"}),Me})()},64886:(St,be,s)=>{"use strict";s.d(be,{gz:()=>fa,m2:()=>ri,F0:()=>ya,rH:()=>Wt,Od:()=>g,Bz:()=>at,lC:()=>Ua});var t=s(73991),e=s(51728),d=s(95195),l=s(93216),r=s(88167),c=s(70754),E=s(71785),m=s(92588),v=s(20602),C=s(99099),n=s(44070),i=s(38440),P=s(10166),I=s(68264),q=s(17774),D=s(87580),M=s(81565),T=s(32653),F=s(41743),le=s(9754),V=s(86443),de=s(49681),ye=s(35694);function Ee(ae){return(0,de.e)((me,J)=>{let Oe=!1;me.subscribe(new ye.Q(J,Ke=>{Oe=!0,J.next(Ke)},()=>{Oe||J.next(ae),J.complete()}))})}function Le(ae=ge){return(0,de.e)((me,J)=>{let Oe=!1;me.subscribe(new ye.Q(J,Ke=>{Oe=!0,J.next(Ke)},()=>Oe?J.complete():J.error(ae())))})}function ge(){return new r.K}var ue=s(54874);function ee(ae,me){const J=arguments.length>=2;return Oe=>Oe.pipe(ae?(0,le.h)((Ke,xt)=>ae(Ke,xt,Oe)):ue.y,(0,T.q)(1),J?Ee(me):Le(()=>new r.K))}var se=s(16424),W=s(17374),L=s(32837);function _e(ae,me){return(0,de.e)(function he(ae,me,J,Oe,Ke){return(xt,Zt)=>{let gr=J,zr=me,nn=0;xt.subscribe(new ye.Q(Zt,dn=>{const yi=nn++;zr=gr?ae(zr,dn,yi):(gr=!0,dn),Oe&&Zt.next(zr)},Ke&&(()=>{gr&&Zt.next(zr),Zt.complete()})))}}(ae,me,arguments.length>=2,!0))}function Z(ae){return ae<=0?()=>i.E:(0,de.e)((me,J)=>{let Oe=[];me.subscribe(new ye.Q(J,Ke=>{Oe.push(Ke),ae<Oe.length&&Oe.shift()},()=>{for(const Ke of Oe)J.next(Ke);J.complete()},void 0,()=>{Oe=null}))})}function Te(ae,me){const J=arguments.length>=2;return Oe=>Oe.pipe(ae?(0,le.h)((Ke,xt)=>ae(Ke,xt,Oe)):ue.y,Z(1),J?Ee(me):Le(()=>new r.K))}var w=s(61458),k=s(3532),x=s(88283),z=s(1423),j=s(13834),Ne=s(24510);const tt="primary",We=Symbol("RouteTitle");class ze{constructor(me){this.params=me||{}}has(me){return Object.prototype.hasOwnProperty.call(this.params,me)}get(me){if(this.has(me)){const J=this.params[me];return Array.isArray(J)?J[0]:J}return null}getAll(me){if(this.has(me)){const J=this.params[me];return Array.isArray(J)?J:[J]}return[]}get keys(){return Object.keys(this.params)}}function we(ae){return new ze(ae)}function Ye(ae,me,J){const Oe=J.path.split("/");if(Oe.length>ae.length||"full"===J.pathMatch&&(me.hasChildren()||Oe.length<ae.length))return null;const Ke={};for(let xt=0;xt<Oe.length;xt++){const Zt=Oe[xt],gr=ae[xt];if(Zt.startsWith(":"))Ke[Zt.substring(1)]=gr;else if(Zt!==gr.path)return null}return{consumed:ae.slice(0,Oe.length),posParams:Ke}}function Se(ae,me){const J=ae?Object.keys(ae):void 0,Oe=me?Object.keys(me):void 0;if(!J||!Oe||J.length!=Oe.length)return!1;let Ke;for(let xt=0;xt<J.length;xt++)if(Ke=J[xt],!ke(ae[Ke],me[Ke]))return!1;return!0}function ke(ae,me){if(Array.isArray(ae)&&Array.isArray(me)){if(ae.length!==me.length)return!1;const J=[...ae].sort(),Oe=[...me].sort();return J.every((Ke,xt)=>Oe[xt]===Ke)}return ae===me}function Ge(ae){return Array.prototype.concat.apply([],ae)}function Tt(ae){return ae.length>0?ae[ae.length-1]:null}function H(ae,me){for(const J in ae)ae.hasOwnProperty(J)&&me(ae[J],J)}function Y(ae){return(0,t.CqO)(ae)?ae:(0,t.QGY)(ae)?(0,e.D)(Promise.resolve(ae)):(0,d.of)(ae)}const S=!1,K={exact:function fe(ae,me,J){if(!fr(ae.segments,me.segments)||!ot(ae.segments,me.segments,J)||ae.numberOfChildren!==me.numberOfChildren)return!1;for(const Oe in me.children)if(!ae.children[Oe]||!fe(ae.children[Oe],me.children[Oe],J))return!1;return!0},subset:$e},Q={exact:function re(ae,me){return Se(ae,me)},subset:function qe(ae,me){return Object.keys(me).length<=Object.keys(ae).length&&Object.keys(me).every(J=>ke(ae[J],me[J]))},ignored:()=>!0};function B(ae,me,J){return K[J.paths](ae.root,me.root,J.matrixParams)&&Q[J.queryParams](ae.queryParams,me.queryParams)&&!("exact"===J.fragment&&ae.fragment!==me.fragment)}function $e(ae,me,J){return et(ae,me,me.segments,J)}function et(ae,me,J,Oe){if(ae.segments.length>J.length){const Ke=ae.segments.slice(0,J.length);return!(!fr(Ke,J)||me.hasChildren()||!ot(Ke,J,Oe))}if(ae.segments.length===J.length){if(!fr(ae.segments,J)||!ot(ae.segments,J,Oe))return!1;for(const Ke in me.children)if(!ae.children[Ke]||!$e(ae.children[Ke],me.children[Ke],Oe))return!1;return!0}{const Ke=J.slice(0,ae.segments.length),xt=J.slice(ae.segments.length);return!!(fr(ae.segments,Ke)&&ot(ae.segments,Ke,Oe)&&ae.children[tt])&&et(ae.children[tt],me,xt,Oe)}}function ot(ae,me,J){return me.every((Oe,Ke)=>Q[J](ae[Ke].parameters,Oe.parameters))}class ct{constructor(me=new pt([],{}),J={},Oe=null){this.root=me,this.queryParams=J,this.fragment=Oe}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=we(this.queryParams)),this._queryParamMap}toString(){return ar.serialize(this)}}class pt{constructor(me,J){this.segments=me,this.children=J,this.parent=null,H(J,(Oe,Ke)=>Oe.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vt(this)}}class $t{constructor(me,J){this.path=me,this.parameters=J}get parameterMap(){return this._parameterMap||(this._parameterMap=we(this.parameters)),this._parameterMap}toString(){return Re(this)}}function fr(ae,me){return ae.length===me.length&&ae.every((J,Oe)=>J.path===me[Oe].path)}let dr=(()=>{class ae{}return ae.\u0275fac=function(J){return new(J||ae)},ae.\u0275prov=t.Yz7({token:ae,factory:function(){return new bt},providedIn:"root"}),ae})();class bt{parse(me){const J=new nt(me);return new ct(J.parseRootSegment(),J.parseQueryParams(),J.parseFragment())}serialize(me){const J=`/${qt(me.root,!0)}`,Oe=function Nt(ae){const me=Object.keys(ae).map(J=>{const Oe=ae[J];return Array.isArray(Oe)?Oe.map(Ke=>`${lt(J)}=${lt(Ke)}`).join("&"):`${lt(J)}=${lt(Oe)}`}).filter(J=>!!J);return me.length?`?${me.join("&")}`:""}(me.queryParams);return`${J}${Oe}${"string"==typeof me.fragment?`#${function De(ae){return encodeURI(ae)}(me.fragment)}`:""}`}}const ar=new bt;function vt(ae){return ae.segments.map(me=>Re(me)).join("/")}function qt(ae,me){if(!ae.hasChildren())return vt(ae);if(me){const J=ae.children[tt]?qt(ae.children[tt],!1):"",Oe=[];return H(ae.children,(Ke,xt)=>{xt!==tt&&Oe.push(`${xt}:${qt(Ke,!1)}`)}),Oe.length>0?`${J}(${Oe.join("//")})`:J}{const J=function yt(ae,me){let J=[];return H(ae.children,(Oe,Ke)=>{Ke===tt&&(J=J.concat(me(Oe,Ke)))}),H(ae.children,(Oe,Ke)=>{Ke!==tt&&(J=J.concat(me(Oe,Ke)))}),J}(ae,(Oe,Ke)=>Ke===tt?[qt(ae.children[tt],!1)]:[`${Ke}:${qt(Oe,!1)}`]);return 1===Object.keys(ae.children).length&&null!=ae.children[tt]?`${vt(ae)}/${J[0]}`:`${vt(ae)}/(${J.join("//")})`}}function br(ae){return encodeURIComponent(ae).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lt(ae){return br(ae).replace(/%3B/gi,";")}function G(ae){return br(ae).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function U(ae){return decodeURIComponent(ae)}function ne(ae){return U(ae.replace(/\+/g,"%20"))}function Re(ae){return`${G(ae.path)}${function Xe(ae){return Object.keys(ae).map(me=>`;${G(me)}=${G(ae[me])}`).join("")}(ae.parameters)}`}const Pt=/^[^\/()?;=#]+/;function Vt(ae){const me=ae.match(Pt);return me?me[0]:""}const Jt=/^[^=?&#]+/,Me=/^[^&#]+/;class nt{constructor(me){this.url=me,this.remaining=me}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new pt([],{}):new pt([],this.parseChildren())}parseQueryParams(){const me={};if(this.consumeOptional("?"))do{this.parseQueryParam(me)}while(this.consumeOptional("&"));return me}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const me=[];for(this.peekStartsWith("(")||me.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),me.push(this.parseSegment());let J={};this.peekStartsWith("/(")&&(this.capture("/"),J=this.parseParens(!0));let Oe={};return this.peekStartsWith("(")&&(Oe=this.parseParens(!1)),(me.length>0||Object.keys(J).length>0)&&(Oe[tt]=new pt(me,J)),Oe}parseSegment(){const me=Vt(this.remaining);if(""===me&&this.peekStartsWith(";"))throw new t.vHH(4009,S);return this.capture(me),new $t(U(me),this.parseMatrixParams())}parseMatrixParams(){const me={};for(;this.consumeOptional(";");)this.parseParam(me);return me}parseParam(me){const J=Vt(this.remaining);if(!J)return;this.capture(J);let Oe="";if(this.consumeOptional("=")){const Ke=Vt(this.remaining);Ke&&(Oe=Ke,this.capture(Oe))}me[U(J)]=U(Oe)}parseQueryParam(me){const J=function kt(ae){const me=ae.match(Jt);return me?me[0]:""}(this.remaining);if(!J)return;this.capture(J);let Oe="";if(this.consumeOptional("=")){const Zt=function ut(ae){const me=ae.match(Me);return me?me[0]:""}(this.remaining);Zt&&(Oe=Zt,this.capture(Oe))}const Ke=ne(J),xt=ne(Oe);if(me.hasOwnProperty(Ke)){let Zt=me[Ke];Array.isArray(Zt)||(Zt=[Zt],me[Ke]=Zt),Zt.push(xt)}else me[Ke]=xt}parseParens(me){const J={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Oe=Vt(this.remaining),Ke=this.remaining[Oe.length];if("/"!==Ke&&")"!==Ke&&";"!==Ke)throw new t.vHH(4010,S);let xt;Oe.indexOf(":")>-1?(xt=Oe.slice(0,Oe.indexOf(":")),this.capture(xt),this.capture(":")):me&&(xt=tt);const Zt=this.parseChildren();J[xt]=1===Object.keys(Zt).length?Zt[tt]:new pt([],Zt),this.consumeOptional("//")}return J}peekStartsWith(me){return this.remaining.startsWith(me)}consumeOptional(me){return!!this.peekStartsWith(me)&&(this.remaining=this.remaining.substring(me.length),!0)}capture(me){if(!this.consumeOptional(me))throw new t.vHH(4011,S)}}function Ht(ae){return ae.segments.length>0?new pt([],{[tt]:ae}):ae}function pr(ae){const me={};for(const Oe of Object.keys(ae.children)){const xt=pr(ae.children[Oe]);(xt.segments.length>0||xt.hasChildren())&&(me[Oe]=xt)}return function Lr(ae){if(1===ae.numberOfChildren&&ae.children[tt]){const me=ae.children[tt];return new pt(ae.segments.concat(me.segments),me.children)}return ae}(new pt(ae.segments,me))}function Kr(ae){return ae instanceof ct}const Cn=!1;function yr(ae,me,J,Oe,Ke){if(0===J.length)return nr(me.root,me.root,me.root,Oe,Ke);const xt=function vn(ae){if("string"==typeof ae[0]&&1===ae.length&&"/"===ae[0])return new rn(!0,0,ae);let me=0,J=!1;const Oe=ae.reduce((Ke,xt,Zt)=>{if("object"==typeof xt&&null!=xt){if(xt.outlets){const gr={};return H(xt.outlets,(zr,nn)=>{gr[nn]="string"==typeof zr?zr.split("/"):zr}),[...Ke,{outlets:gr}]}if(xt.segmentPath)return[...Ke,xt.segmentPath]}return"string"!=typeof xt?[...Ke,xt]:0===Zt?(xt.split("/").forEach((gr,zr)=>{0==zr&&"."===gr||(0==zr&&""===gr?J=!0:".."===gr?me++:""!=gr&&Ke.push(gr))}),Ke):[...Ke,xt]},[]);return new rn(J,me,Oe)}(J);return xt.toRoot()?nr(me.root,me.root,new pt([],{}),Oe,Ke):function Zt(zr){const nn=function Dn(ae,me,J,Oe){if(ae.isAbsolute)return new Gn(me.root,!0,0);if(-1===Oe)return new Gn(J,J===me.root,0);return function Ti(ae,me,J){let Oe=ae,Ke=me,xt=J;for(;xt>Ke;){if(xt-=Ke,Oe=Oe.parent,!Oe)throw new t.vHH(4005,Cn&&"Invalid number of '../'");Ke=Oe.segments.length}return new Gn(Oe,!1,Ke-xt)}(J,Oe+(Jr(ae.commands[0])?0:1),ae.numberOfDoubleDots)}(xt,me,ae.snapshot?._urlSegment,zr),dn=nn.processChildren?Kt(nn.segmentGroup,nn.index,xt.commands):ci(nn.segmentGroup,nn.index,xt.commands);return nr(me.root,nn.segmentGroup,dn,Oe,Ke)}(ae.snapshot?._lastPathIndex)}function Jr(ae){return"object"==typeof ae&&null!=ae&&!ae.outlets&&!ae.segmentPath}function wt(ae){return"object"==typeof ae&&null!=ae&&ae.outlets}function nr(ae,me,J,Oe,Ke){let Zt,xt={};Oe&&H(Oe,(zr,nn)=>{xt[nn]=Array.isArray(zr)?zr.map(dn=>`${dn}`):`${zr}`}),Zt=ae===me?J:tn(ae,me,J);const gr=Ht(pr(Zt));return new ct(gr,xt,Ke)}function tn(ae,me,J){const Oe={};return H(ae.children,(Ke,xt)=>{Oe[xt]=Ke===me?J:tn(Ke,me,J)}),new pt(ae.segments,Oe)}class rn{constructor(me,J,Oe){if(this.isAbsolute=me,this.numberOfDoubleDots=J,this.commands=Oe,me&&Oe.length>0&&Jr(Oe[0]))throw new t.vHH(4003,Cn&&"Root segment cannot have matrix parameters");const Ke=Oe.find(wt);if(Ke&&Ke!==Tt(Oe))throw new t.vHH(4004,Cn&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gn{constructor(me,J,Oe){this.segmentGroup=me,this.processChildren=J,this.index=Oe}}function ci(ae,me,J){if(ae||(ae=new pt([],{})),0===ae.segments.length&&ae.hasChildren())return Kt(ae,me,J);const Oe=function Ar(ae,me,J){let Oe=0,Ke=me;const xt={match:!1,pathIndex:0,commandIndex:0};for(;Ke<ae.segments.length;){if(Oe>=J.length)return xt;const Zt=ae.segments[Ke],gr=J[Oe];if(wt(gr))break;const zr=`${gr}`,nn=Oe<J.length-1?J[Oe+1]:null;if(Ke>0&&void 0===zr)break;if(zr&&nn&&"object"==typeof nn&&void 0===nn.outlets){if(!tr(zr,nn,Zt))return xt;Oe+=2}else{if(!tr(zr,{},Zt))return xt;Oe++}Ke++}return{match:!0,pathIndex:Ke,commandIndex:Oe}}(ae,me,J),Ke=J.slice(Oe.commandIndex);if(Oe.match&&Oe.pathIndex<ae.segments.length){const xt=new pt(ae.segments.slice(0,Oe.pathIndex),{});return xt.children[tt]=new pt(ae.segments.slice(Oe.pathIndex),ae.children),Kt(xt,0,Ke)}return Oe.match&&0===Ke.length?new pt(ae.segments,{}):Oe.match&&!ae.hasChildren()?ie(ae,me,J):Oe.match?Kt(ae,0,Ke):ie(ae,me,J)}function Kt(ae,me,J){if(0===J.length)return new pt(ae.segments,{});{const Oe=function Ni(ae){return wt(ae[0])?ae[0].outlets:{[tt]:ae}}(J),Ke={};if(!Oe[tt]&&ae.children[tt]&&1===ae.numberOfChildren&&0===ae.children[tt].segments.length){const xt=Kt(ae.children[tt],me,J);return new pt(ae.segments,xt.children)}return H(Oe,(xt,Zt)=>{"string"==typeof xt&&(xt=[xt]),null!==xt&&(Ke[Zt]=ci(ae.children[Zt],me,xt))}),H(ae.children,(xt,Zt)=>{void 0===Oe[Zt]&&(Ke[Zt]=xt)}),new pt(ae.segments,Ke)}}function ie(ae,me,J){const Oe=ae.segments.slice(0,me);let Ke=0;for(;Ke<J.length;){const xt=J[Ke];if(wt(xt)){const zr=Ve(xt.outlets);return new pt(Oe,zr)}if(0===Ke&&Jr(J[0])){Oe.push(new $t(ae.segments[me].path,Mt(J[0]))),Ke++;continue}const Zt=wt(xt)?xt.outlets[tt]:`${xt}`,gr=Ke<J.length-1?J[Ke+1]:null;Zt&&gr&&Jr(gr)?(Oe.push(new $t(Zt,Mt(gr))),Ke+=2):(Oe.push(new $t(Zt,{})),Ke++)}return new pt(Oe,{})}function Ve(ae){const me={};return H(ae,(J,Oe)=>{"string"==typeof J&&(J=[J]),null!==J&&(me[Oe]=ie(new pt([],{}),0,J))}),me}function Mt(ae){const me={};return H(ae,(J,Oe)=>me[Oe]=`${J}`),me}function tr(ae,me,J){return ae==J.path&&Se(me,J.parameters)}const kr="imperative";class mn{constructor(me,J){this.id=me,this.url=J}}class un extends mn{constructor(me,J,Oe="imperative",Ke=null){super(me,J),this.type=0,this.navigationTrigger=Oe,this.restoredState=Ke}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ri extends mn{constructor(me,J,Oe){super(me,J),this.urlAfterRedirects=Oe,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Sr extends mn{constructor(me,J,Oe,Ke){super(me,J),this.reason=Oe,this.code=Ke,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Er extends mn{constructor(me,J,Oe,Ke){super(me,J),this.reason=Oe,this.code=Ke,this.type=16}}class Ot extends mn{constructor(me,J,Oe,Ke){super(me,J),this.error=Oe,this.target=Ke,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class lr extends mn{constructor(me,J,Oe,Ke){super(me,J),this.urlAfterRedirects=Oe,this.state=Ke,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cr extends mn{constructor(me,J,Oe,Ke){super(me,J),this.urlAfterRedirects=Oe,this.state=Ke,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gr extends mn{constructor(me,J,Oe,Ke,xt){super(me,J),this.urlAfterRedirects=Oe,this.state=Ke,this.shouldActivate=xt,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ln extends mn{constructor(me,J,Oe,Ke){super(me,J),this.urlAfterRedirects=Oe,this.state=Ke,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xn extends mn{constructor(me,J,Oe,Ke){super(me,J),this.urlAfterRedirects=Oe,this.state=Ke,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ni{constructor(me){this.route=me,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ta{constructor(me){this.route=me,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class $a{constructor(me){this.snapshot=me,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class La{constructor(me){this.snapshot=me,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ei{constructor(me){this.snapshot=me,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ma{constructor(me){this.snapshot=me,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bn{constructor(me,J,Oe){this.routerEvent=me,this.position=J,this.anchor=Oe,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Ia=(()=>{class ae{createUrlTree(J,Oe,Ke,xt,Zt,gr){return yr(J||Oe.root,Ke,xt,Zt,gr)}}return ae.\u0275fac=function(J){return new(J||ae)},ae.\u0275prov=t.Yz7({token:ae,factory:ae.\u0275fac}),ae})(),cn=(()=>{class ae{}return ae.\u0275fac=function(J){return new(J||ae)},ae.\u0275prov=t.Yz7({token:ae,factory:function(me){return Ia.\u0275fac(me)},providedIn:"root"}),ae})();class Yi{constructor(me){this._root=me}get root(){return this._root.value}parent(me){const J=this.pathFromRoot(me);return J.length>1?J[J.length-2]:null}children(me){const J=wi(me,this._root);return J?J.children.map(Oe=>Oe.value):[]}firstChild(me){const J=wi(me,this._root);return J&&J.children.length>0?J.children[0].value:null}siblings(me){const J=Wi(me,this._root);return J.length<2?[]:J[J.length-2].children.map(Ke=>Ke.value).filter(Ke=>Ke!==me)}pathFromRoot(me){return Wi(me,this._root).map(J=>J.value)}}function wi(ae,me){if(ae===me.value)return me;for(const J of me.children){const Oe=wi(ae,J);if(Oe)return Oe}return null}function Wi(ae,me){if(ae===me.value)return[me];for(const J of me.children){const Oe=Wi(ae,J);if(Oe.length)return Oe.unshift(me),Oe}return[]}class ra{constructor(me,J){this.value=me,this.children=J}toString(){return`TreeNode(${this.value})`}}function ji(ae){const me={};return ae&&ae.children.forEach(J=>me[J.value.outlet]=J),me}class sa extends Yi{constructor(me,J){super(me),this.snapshot=J,$i(this,me)}toString(){return this.snapshot.toString()}}function Ui(ae,me){const J=function na(ae,me){const Zt=new la([],{},{},"",{},tt,me,null,ae.root,-1,{});return new ho("",new ra(Zt,[]))}(ae,me),Oe=new l.X([new $t("",{})]),Ke=new l.X({}),xt=new l.X({}),Zt=new l.X({}),gr=new l.X(""),zr=new fa(Oe,Ke,Zt,gr,xt,tt,me,J.root);return zr.snapshot=J.root,new sa(new ra(zr,[]),J)}class fa{constructor(me,J,Oe,Ke,xt,Zt,gr,zr){this.url=me,this.params=J,this.queryParams=Oe,this.fragment=Ke,this.data=xt,this.outlet=Zt,this.component=gr,this.title=this.data?.pipe((0,D.U)(nn=>nn[We]))??(0,d.of)(void 0),this._futureSnapshot=zr}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,D.U)(me=>we(me)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,D.U)(me=>we(me)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Co(ae,me="emptyOnly"){const J=ae.pathFromRoot;let Oe=0;if("always"!==me)for(Oe=J.length-1;Oe>=1;){const Ke=J[Oe],xt=J[Oe-1];if(Ke.routeConfig&&""===Ke.routeConfig.path)Oe--;else{if(xt.component)break;Oe--}}return function Fa(ae){return ae.reduce((me,J)=>({params:{...me.params,...J.params},data:{...me.data,...J.data},resolve:{...J.data,...me.resolve,...J.routeConfig?.data,...J._resolvedData}}),{params:{},data:{},resolve:{}})}(J.slice(Oe))}class la{get title(){return this.data?.[We]}constructor(me,J,Oe,Ke,xt,Zt,gr,zr,nn,dn,yi){this.url=me,this.params=J,this.queryParams=Oe,this.fragment=Ke,this.data=xt,this.outlet=Zt,this.component=gr,this.routeConfig=zr,this._urlSegment=nn,this._lastPathIndex=dn,this._resolve=yi}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=we(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=we(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Oe=>Oe.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ho extends Yi{constructor(me,J){super(J),this.url=me,$i(this,J)}toString(){return bo(this._root)}}function $i(ae,me){me.value._routerState=ae,me.children.forEach(J=>$i(ae,J))}function bo(ae){const me=ae.children.length>0?` { ${ae.children.map(bo).join(", ")} } `:"";return`${ae.value}${me}`}function Ga(ae){if(ae.snapshot){const me=ae.snapshot,J=ae._futureSnapshot;ae.snapshot=J,Se(me.queryParams,J.queryParams)||ae.queryParams.next(J.queryParams),me.fragment!==J.fragment&&ae.fragment.next(J.fragment),Se(me.params,J.params)||ae.params.next(J.params),function te(ae,me){if(ae.length!==me.length)return!1;for(let J=0;J<ae.length;++J)if(!Se(ae[J],me[J]))return!1;return!0}(me.url,J.url)||ae.url.next(J.url),Se(me.data,J.data)||ae.data.next(J.data)}else ae.snapshot=ae._futureSnapshot,ae.data.next(ae._futureSnapshot.data)}function mi(ae,me){const J=Se(ae.params,me.params)&&function It(ae,me){return fr(ae,me)&&ae.every((J,Oe)=>Se(J.parameters,me[Oe].parameters))}(ae.url,me.url);return J&&!(!ae.parent!=!me.parent)&&(!ae.parent||mi(ae.parent,me.parent))}function Dt(ae,me,J){if(J&&ae.shouldReuseRoute(me.value,J.value.snapshot)){const Oe=J.value;Oe._futureSnapshot=me.value;const Ke=function ve(ae,me,J){return me.children.map(Oe=>{for(const Ke of J.children)if(ae.shouldReuseRoute(Oe.value,Ke.value.snapshot))return Dt(ae,Oe,Ke);return Dt(ae,Oe)})}(ae,me,J);return new ra(Oe,Ke)}{if(ae.shouldAttach(me.value)){const xt=ae.retrieve(me.value);if(null!==xt){const Zt=xt.route;return Zt.value._futureSnapshot=me.value,Zt.children=me.children.map(gr=>Dt(ae,gr)),Zt}}const Oe=function Rt(ae){return new fa(new l.X(ae.url),new l.X(ae.params),new l.X(ae.queryParams),new l.X(ae.fragment),new l.X(ae.data),ae.outlet,ae.component,ae)}(me.value),Ke=me.children.map(xt=>Dt(ae,xt));return new ra(Oe,Ke)}}const Dr="ngNavigationCancelingError";function kn(ae,me){const{redirectTo:J,navigationBehaviorOptions:Oe}=Kr(me)?{redirectTo:me,navigationBehaviorOptions:void 0}:me,Ke=wn(!1,0,me);return Ke.url=J,Ke.navigationBehaviorOptions=Oe,Ke}function wn(ae,me,J){const Oe=new Error("NavigationCancelingError: "+(ae||""));return Oe[Dr]=!0,Oe.cancellationCode=me,J&&(Oe.url=J),Oe}function Jn(ae){return yn(ae)&&Kr(ae.url)}function yn(ae){return ae&&ae[Dr]}class Mn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new $n,this.attachRef=null}}let $n=(()=>{class ae{constructor(){this.contexts=new Map}onChildOutletCreated(J,Oe){const Ke=this.getOrCreateContext(J);Ke.outlet=Oe,this.contexts.set(J,Ke)}onChildOutletDestroyed(J){const Oe=this.getContext(J);Oe&&(Oe.outlet=null,Oe.attachRef=null)}onOutletDeactivated(){const J=this.contexts;return this.contexts=new Map,J}onOutletReAttached(J){this.contexts=J}getOrCreateContext(J){let Oe=this.getContext(J);return Oe||(Oe=new Mn,this.contexts.set(J,Oe)),Oe}getContext(J){return this.contexts.get(J)||null}}return ae.\u0275fac=function(J){return new(J||ae)},ae.\u0275prov=t.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();const ia=!1;let Ua=(()=>{class ae{constructor(){this.activated=null,this._activatedRoute=null,this.name=tt,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.parentContexts=(0,t.f3M)($n),this.location=(0,t.f3M)(t.s_b),this.changeDetector=(0,t.f3M)(t.sBO),this.environmentInjector=(0,t.f3M)(t.lqb)}ngOnChanges(J){if(J.name){const{firstChange:Oe,previousValue:Ke}=J.name;if(Oe)return;this.isTrackedInParentContexts(Ke)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Ke)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(J){return this.parentContexts.getContext(J)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const J=this.parentContexts.getContext(this.name);J?.route&&(J.attachRef?this.attach(J.attachRef,J.route):this.activateWith(J.route,J.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.vHH(4012,ia);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.vHH(4012,ia);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.vHH(4012,ia);this.location.detach();const J=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(J.instance),J}attach(J,Oe){this.activated=J,this._activatedRoute=Oe,this.location.insert(J.hostView),this.attachEvents.emit(J.instance)}deactivate(){if(this.activated){const J=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(J)}}activateWith(J,Oe){if(this.isActivated)throw new t.vHH(4013,ia);this._activatedRoute=J;const Ke=this.location,Zt=J.snapshot.component,gr=this.parentContexts.getOrCreateContext(this.name).children,zr=new qa(J,gr,Ke.injector);if(Oe&&function ro(ae){return!!ae.resolveComponentFactory}(Oe)){const nn=Oe.resolveComponentFactory(Zt);this.activated=Ke.createComponent(nn,Ke.length,zr)}else this.activated=Ke.createComponent(Zt,{index:Ke.length,injector:zr,environmentInjector:Oe??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return ae.\u0275fac=function(J){return new(J||ae)},ae.\u0275dir=t.lG2({type:ae,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.TTD]}),ae})();class qa{constructor(me,J,Oe){this.route=me,this.childContexts=J,this.parent=Oe}get(me,J){return me===fa?this.route:me===$n?this.childContexts:this.parent.get(me,J)}}let Na=(()=>{class ae{}return ae.\u0275fac=function(J){return new(J||ae)},ae.\u0275cmp=t.Xpm({type:ae,selectors:[["ng-component"]],standalone:!0,features:[t.jDz],decls:1,vars:0,template:function(J,Oe){1&J&&t._UZ(0,"router-outlet")},dependencies:[Ua],encapsulation:2}),ae})();function ga(ae,me){return ae.providers&&!ae._injector&&(ae._injector=(0,t.MMx)(ae.providers,me,`Route: ${ae.path}`)),ae._injector??me}function Pi(ae){const me=ae.children&&ae.children.map(Pi),J=me?{...ae,children:me}:{...ae};return!J.component&&!J.loadComponent&&(me||J.loadChildren)&&J.outlet&&J.outlet!==tt&&(J.component=Na),J}function Ji(ae){return ae.outlet||tt}function Va(ae,me){const J=ae.filter(Oe=>Ji(Oe)===me);return J.push(...ae.filter(Oe=>Ji(Oe)!==me)),J}function Qi(ae){if(!ae)return null;if(ae.routeConfig?._injector)return ae.routeConfig._injector;for(let me=ae.parent;me;me=me.parent){const J=me.routeConfig;if(J?._loadedInjector)return J._loadedInjector;if(J?._injector)return J._injector}return null}class xo{constructor(me,J,Oe,Ke){this.routeReuseStrategy=me,this.futureState=J,this.currState=Oe,this.forwardEvent=Ke}activate(me){const J=this.futureState._root,Oe=this.currState?this.currState._root:null;this.deactivateChildRoutes(J,Oe,me),Ga(this.futureState.root),this.activateChildRoutes(J,Oe,me)}deactivateChildRoutes(me,J,Oe){const Ke=ji(J);me.children.forEach(xt=>{const Zt=xt.value.outlet;this.deactivateRoutes(xt,Ke[Zt],Oe),delete Ke[Zt]}),H(Ke,(xt,Zt)=>{this.deactivateRouteAndItsChildren(xt,Oe)})}deactivateRoutes(me,J,Oe){const Ke=me.value,xt=J?J.value:null;if(Ke===xt)if(Ke.component){const Zt=Oe.getContext(Ke.outlet);Zt&&this.deactivateChildRoutes(me,J,Zt.children)}else this.deactivateChildRoutes(me,J,Oe);else xt&&this.deactivateRouteAndItsChildren(J,Oe)}deactivateRouteAndItsChildren(me,J){me.value.component&&this.routeReuseStrategy.shouldDetach(me.value.snapshot)?this.detachAndStoreRouteSubtree(me,J):this.deactivateRouteAndOutlet(me,J)}detachAndStoreRouteSubtree(me,J){const Oe=J.getContext(me.value.outlet),Ke=Oe&&me.value.component?Oe.children:J,xt=ji(me);for(const Zt of Object.keys(xt))this.deactivateRouteAndItsChildren(xt[Zt],Ke);if(Oe&&Oe.outlet){const Zt=Oe.outlet.detach(),gr=Oe.children.onOutletDeactivated();this.routeReuseStrategy.store(me.value.snapshot,{componentRef:Zt,route:me,contexts:gr})}}deactivateRouteAndOutlet(me,J){const Oe=J.getContext(me.value.outlet),Ke=Oe&&me.value.component?Oe.children:J,xt=ji(me);for(const Zt of Object.keys(xt))this.deactivateRouteAndItsChildren(xt[Zt],Ke);Oe&&(Oe.outlet&&(Oe.outlet.deactivate(),Oe.children.onOutletDeactivated()),Oe.attachRef=null,Oe.resolver=null,Oe.route=null)}activateChildRoutes(me,J,Oe){const Ke=ji(J);me.children.forEach(xt=>{this.activateRoutes(xt,Ke[xt.value.outlet],Oe),this.forwardEvent(new ma(xt.value.snapshot))}),me.children.length&&this.forwardEvent(new La(me.value.snapshot))}activateRoutes(me,J,Oe){const Ke=me.value,xt=J?J.value:null;if(Ga(Ke),Ke===xt)if(Ke.component){const Zt=Oe.getOrCreateContext(Ke.outlet);this.activateChildRoutes(me,J,Zt.children)}else this.activateChildRoutes(me,J,Oe);else if(Ke.component){const Zt=Oe.getOrCreateContext(Ke.outlet);if(this.routeReuseStrategy.shouldAttach(Ke.snapshot)){const gr=this.routeReuseStrategy.retrieve(Ke.snapshot);this.routeReuseStrategy.store(Ke.snapshot,null),Zt.children.onOutletReAttached(gr.contexts),Zt.attachRef=gr.componentRef,Zt.route=gr.route.value,Zt.outlet&&Zt.outlet.attach(gr.componentRef,gr.route.value),Ga(gr.route.value),this.activateChildRoutes(me,null,Zt.children)}else{const gr=Qi(Ke.snapshot),zr=gr?.get(t._Vd)??null;Zt.attachRef=null,Zt.route=Ke,Zt.resolver=zr,Zt.injector=gr,Zt.outlet&&Zt.outlet.activateWith(Ke,Zt.injector),this.activateChildRoutes(me,null,Zt.children)}}else this.activateChildRoutes(me,null,Oe)}}class so{constructor(me){this.path=me,this.route=this.path[this.path.length-1]}}class Ra{constructor(me,J){this.component=me,this.route=J}}function hs(ae,me,J){const Oe=ae._root;return eo(Oe,me?me._root:null,J,[Oe.value])}function Mo(ae,me){const J=Symbol(),Oe=me.get(ae,J);return Oe===J?"function"!=typeof ae||(0,t.Z0I)(ae)?me.get(ae):ae:Oe}function eo(ae,me,J,Oe,Ke={canDeactivateChecks:[],canActivateChecks:[]}){const xt=ji(me);return ae.children.forEach(Zt=>{(function Bo(ae,me,J,Oe,Ke={canDeactivateChecks:[],canActivateChecks:[]}){const xt=ae.value,Zt=me?me.value:null,gr=J?J.getContext(ae.value.outlet):null;if(Zt&&xt.routeConfig===Zt.routeConfig){const zr=function Oo(ae,me,J){if("function"==typeof J)return J(ae,me);switch(J){case"pathParamsChange":return!fr(ae.url,me.url);case"pathParamsOrQueryParamsChange":return!fr(ae.url,me.url)||!Se(ae.queryParams,me.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mi(ae,me)||!Se(ae.queryParams,me.queryParams);default:return!mi(ae,me)}}(Zt,xt,xt.routeConfig.runGuardsAndResolvers);zr?Ke.canActivateChecks.push(new so(Oe)):(xt.data=Zt.data,xt._resolvedData=Zt._resolvedData),eo(ae,me,xt.component?gr?gr.children:null:J,Oe,Ke),zr&&gr&&gr.outlet&&gr.outlet.isActivated&&Ke.canDeactivateChecks.push(new Ra(gr.outlet.component,Zt))}else Zt&&Qn(me,gr,Ke),Ke.canActivateChecks.push(new so(Oe)),eo(ae,null,xt.component?gr?gr.children:null:J,Oe,Ke)})(Zt,xt[Zt.value.outlet],J,Oe.concat([Zt.value]),Ke),delete xt[Zt.value.outlet]}),H(xt,(Zt,gr)=>Qn(Zt,J.getContext(gr),Ke)),Ke}function Qn(ae,me,J){const Oe=ji(ae),Ke=ae.value;H(Oe,(xt,Zt)=>{Qn(xt,Ke.component?me?me.children.getContext(Zt):null:me,J)}),J.canDeactivateChecks.push(new Ra(Ke.component&&me&&me.outlet&&me.outlet.isActivated?me.outlet.component:null,Ke))}function vo(ae){return"function"==typeof ae}function ii(ae){return ae instanceof r.K||"EmptyError"===ae?.name}const xi=Symbol("INITIAL_VALUE");function Jo(){return(0,M.w)(ae=>(0,c.a)(ae.map(me=>me.pipe((0,T.q)(1),(0,F.O)(xi)))).pipe((0,D.U)(me=>{for(const J of me)if(!0!==J){if(J===xi)return xi;if(!1===J||J instanceof ct)return J}return!0}),(0,le.h)(me=>me!==xi),(0,T.q)(1)))}function Or(ae){return(0,v.z)((0,W.b)(me=>{if(Kr(me))throw kn(0,me)}),(0,D.U)(me=>!0===me))}const Qr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function qr(ae,me,J,Oe,Ke){const xt=Tn(ae,me,J);return xt.matched?function Vr(ae,me,J,Oe){const Ke=me.canMatch;if(!Ke||0===Ke.length)return(0,d.of)(!0);const xt=Ke.map(Zt=>{const gr=Mo(Zt,ae);return Y(function Un(ae){return ae&&vo(ae.canMatch)}(gr)?gr.canMatch(me,J):ae.runInContext(()=>gr(me,J)))});return(0,d.of)(xt).pipe(Jo(),Or())}(Oe=ga(me,Oe),me,J).pipe((0,D.U)(Zt=>!0===Zt?xt:{...Qr})):(0,d.of)(xt)}function Tn(ae,me,J){if(""===me.path)return"full"===me.pathMatch&&(ae.hasChildren()||J.length>0)?{...Qr}:{matched:!0,consumedSegments:[],remainingSegments:J,parameters:{},positionalParamSegments:{}};const Ke=(me.matcher||Ye)(J,ae,me);if(!Ke)return{...Qr};const xt={};H(Ke.posParams,(gr,zr)=>{xt[zr]=gr.path});const Zt=Ke.consumed.length>0?{...xt,...Ke.consumed[Ke.consumed.length-1].parameters}:xt;return{matched:!0,consumedSegments:Ke.consumed,remainingSegments:J.slice(Ke.consumed.length),parameters:Zt,positionalParamSegments:Ke.posParams??{}}}function si(ae,me,J,Oe){if(J.length>0&&function qi(ae,me,J){return J.some(Oe=>ua(ae,me,Oe)&&Ji(Oe)!==tt)}(ae,J,Oe)){const xt=new pt(me,function vi(ae,me,J,Oe){const Ke={};Ke[tt]=Oe,Oe._sourceSegment=ae,Oe._segmentIndexShift=me.length;for(const xt of J)if(""===xt.path&&Ji(xt)!==tt){const Zt=new pt([],{});Zt._sourceSegment=ae,Zt._segmentIndexShift=me.length,Ke[Ji(xt)]=Zt}return Ke}(ae,me,Oe,new pt(J,ae.children)));return xt._sourceSegment=ae,xt._segmentIndexShift=me.length,{segmentGroup:xt,slicedSegments:[]}}if(0===J.length&&function Da(ae,me,J){return J.some(Oe=>ua(ae,me,Oe))}(ae,J,Oe)){const xt=new pt(ae.segments,function di(ae,me,J,Oe,Ke){const xt={};for(const Zt of Oe)if(ua(ae,J,Zt)&&!Ke[Ji(Zt)]){const gr=new pt([],{});gr._sourceSegment=ae,gr._segmentIndexShift=me.length,xt[Ji(Zt)]=gr}return{...Ke,...xt}}(ae,me,J,Oe,ae.children));return xt._sourceSegment=ae,xt._segmentIndexShift=me.length,{segmentGroup:xt,slicedSegments:J}}const Ke=new pt(ae.segments,ae.children);return Ke._sourceSegment=ae,Ke._segmentIndexShift=me.length,{segmentGroup:Ke,slicedSegments:J}}function ua(ae,me,J){return(!(ae.hasChildren()||me.length>0)||"full"!==J.pathMatch)&&""===J.path}function Pa(ae,me,J,Oe){return!!(Ji(ae)===Oe||Oe!==tt&&ua(me,J,ae))&&("**"===ae.path||Tn(me,ae,J).matched)}function za(ae,me,J){return 0===me.length&&!ae.children[J]}const ja=!1;class lo{constructor(me){this.segmentGroup=me||null}}class ba{constructor(me){this.urlTree=me}}function Ba(ae){return(0,C._)(new lo(ae))}function Ho(ae){return(0,C._)(new ba(ae))}class Lt{constructor(me,J,Oe,Ke,xt){this.injector=me,this.configLoader=J,this.urlSerializer=Oe,this.urlTree=Ke,this.config=xt,this.allowRedirects=!0}apply(){const me=si(this.urlTree.root,[],[],this.config).segmentGroup,J=new pt(me.segments,me.children);return this.expandSegmentGroup(this.injector,this.config,J,tt).pipe((0,D.U)(xt=>this.createUrlTree(pr(xt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,L.K)(xt=>{if(xt instanceof ba)return this.allowRedirects=!1,this.match(xt.urlTree);throw xt instanceof lo?this.noMatchError(xt):xt}))}match(me){return this.expandSegmentGroup(this.injector,this.config,me.root,tt).pipe((0,D.U)(Ke=>this.createUrlTree(pr(Ke),me.queryParams,me.fragment))).pipe((0,L.K)(Ke=>{throw Ke instanceof lo?this.noMatchError(Ke):Ke}))}noMatchError(me){return new t.vHH(4002,ja)}createUrlTree(me,J,Oe){const Ke=Ht(me);return new ct(Ke,J,Oe)}expandSegmentGroup(me,J,Oe,Ke){return 0===Oe.segments.length&&Oe.hasChildren()?this.expandChildren(me,J,Oe).pipe((0,D.U)(xt=>new pt([],xt))):this.expandSegment(me,Oe,J,Oe.segments,Ke,!0)}expandChildren(me,J,Oe){const Ke=[];for(const xt of Object.keys(Oe.children))"primary"===xt?Ke.unshift(xt):Ke.push(xt);return(0,e.D)(Ke).pipe((0,se.b)(xt=>{const Zt=Oe.children[xt],gr=Va(J,xt);return this.expandSegmentGroup(me,gr,Zt,xt).pipe((0,D.U)(zr=>({segment:zr,outlet:xt})))}),_e((xt,Zt)=>(xt[Zt.outlet]=Zt.segment,xt),{}),Te())}expandSegment(me,J,Oe,Ke,xt,Zt){return(0,e.D)(Oe).pipe((0,se.b)(gr=>this.expandSegmentAgainstRoute(me,J,Oe,gr,Ke,xt,Zt).pipe((0,L.K)(nn=>{if(nn instanceof lo)return(0,d.of)(null);throw nn}))),ee(gr=>!!gr),(0,L.K)((gr,zr)=>{if(ii(gr))return za(J,Ke,xt)?(0,d.of)(new pt([],{})):Ba(J);throw gr}))}expandSegmentAgainstRoute(me,J,Oe,Ke,xt,Zt,gr){return Pa(Ke,J,xt,Zt)?void 0===Ke.redirectTo?this.matchSegmentAgainstRoute(me,J,Ke,xt,Zt):gr&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(me,J,Oe,Ke,xt,Zt):Ba(J):Ba(J)}expandSegmentAgainstRouteUsingRedirect(me,J,Oe,Ke,xt,Zt){return"**"===Ke.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(me,Oe,Ke,Zt):this.expandRegularSegmentAgainstRouteUsingRedirect(me,J,Oe,Ke,xt,Zt)}expandWildCardWithParamsAgainstRouteUsingRedirect(me,J,Oe,Ke){const xt=this.applyRedirectCommands([],Oe.redirectTo,{});return Oe.redirectTo.startsWith("/")?Ho(xt):this.lineralizeSegments(Oe,xt).pipe((0,V.z)(Zt=>{const gr=new pt(Zt,{});return this.expandSegment(me,gr,J,Zt,Ke,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(me,J,Oe,Ke,xt,Zt){const{matched:gr,consumedSegments:zr,remainingSegments:nn,positionalParamSegments:dn}=Tn(J,Ke,xt);if(!gr)return Ba(J);const yi=this.applyRedirectCommands(zr,Ke.redirectTo,dn);return Ke.redirectTo.startsWith("/")?Ho(yi):this.lineralizeSegments(Ke,yi).pipe((0,V.z)(Ca=>this.expandSegment(me,J,Oe,Ca.concat(nn),Zt,!1)))}matchSegmentAgainstRoute(me,J,Oe,Ke,xt){return"**"===Oe.path?(me=ga(Oe,me),Oe.loadChildren?(Oe._loadedRoutes?(0,d.of)({routes:Oe._loadedRoutes,injector:Oe._loadedInjector}):this.configLoader.loadChildren(me,Oe)).pipe((0,D.U)(gr=>(Oe._loadedRoutes=gr.routes,Oe._loadedInjector=gr.injector,new pt(Ke,{})))):(0,d.of)(new pt(Ke,{}))):qr(J,Oe,Ke,me).pipe((0,M.w)(({matched:Zt,consumedSegments:gr,remainingSegments:zr})=>Zt?this.getChildConfig(me=Oe._injector??me,Oe,Ke).pipe((0,V.z)(dn=>{const yi=dn.injector??me,Ca=dn.routes,{segmentGroup:Do,slicedSegments:Ro}=si(J,gr,zr,Ca),Po=new pt(Do.segments,Do.children);if(0===Ro.length&&Po.hasChildren())return this.expandChildren(yi,Ca,Po).pipe((0,D.U)(Ii=>new pt(gr,Ii)));if(0===Ca.length&&0===Ro.length)return(0,d.of)(new pt(gr,{}));const _o=Ji(Oe)===xt;return this.expandSegment(yi,Po,Ca,Ro,_o?tt:xt,!0).pipe((0,D.U)(Wo=>new pt(gr.concat(Wo.segments),Wo.children)))})):Ba(J)))}getChildConfig(me,J,Oe){return J.children?(0,d.of)({routes:J.children,injector:me}):J.loadChildren?void 0!==J._loadedRoutes?(0,d.of)({routes:J._loadedRoutes,injector:J._loadedInjector}):function mr(ae,me,J,Oe){const Ke=me.canLoad;if(void 0===Ke||0===Ke.length)return(0,d.of)(!0);const xt=Ke.map(Zt=>{const gr=Mo(Zt,ae);return Y(function je(ae){return ae&&vo(ae.canLoad)}(gr)?gr.canLoad(me,J):ae.runInContext(()=>gr(me,J)))});return(0,d.of)(xt).pipe(Jo(),Or())}(me,J,Oe).pipe((0,V.z)(Ke=>Ke?this.configLoader.loadChildren(me,J).pipe((0,W.b)(xt=>{J._loadedRoutes=xt.routes,J._loadedInjector=xt.injector})):function fs(ae){return(0,C._)(wn(ja,3))}())):(0,d.of)({routes:[],injector:me})}lineralizeSegments(me,J){let Oe=[],Ke=J.root;for(;;){if(Oe=Oe.concat(Ke.segments),0===Ke.numberOfChildren)return(0,d.of)(Oe);if(Ke.numberOfChildren>1||!Ke.children[tt])return me.redirectTo,(0,C._)(new t.vHH(4e3,ja));Ke=Ke.children[tt]}}applyRedirectCommands(me,J,Oe){return this.applyRedirectCreateUrlTree(J,this.urlSerializer.parse(J),me,Oe)}applyRedirectCreateUrlTree(me,J,Oe,Ke){const xt=this.createSegmentGroup(me,J.root,Oe,Ke);return new ct(xt,this.createQueryParams(J.queryParams,this.urlTree.queryParams),J.fragment)}createQueryParams(me,J){const Oe={};return H(me,(Ke,xt)=>{if("string"==typeof Ke&&Ke.startsWith(":")){const gr=Ke.substring(1);Oe[xt]=J[gr]}else Oe[xt]=Ke}),Oe}createSegmentGroup(me,J,Oe,Ke){const xt=this.createSegments(me,J.segments,Oe,Ke);let Zt={};return H(J.children,(gr,zr)=>{Zt[zr]=this.createSegmentGroup(me,gr,Oe,Ke)}),new pt(xt,Zt)}createSegments(me,J,Oe,Ke){return J.map(xt=>xt.path.startsWith(":")?this.findPosParam(me,xt,Ke):this.findOrReturn(xt,Oe))}findPosParam(me,J,Oe){const Ke=Oe[J.path.substring(1)];if(!Ke)throw new t.vHH(4001,ja);return Ke}findOrReturn(me,J){let Oe=0;for(const Ke of J){if(Ke.path===me.path)return J.splice(Oe),Ke;Oe++}return me}}class Fr{}class aa{constructor(me,J,Oe,Ke,xt,Zt,gr){this.injector=me,this.rootComponentType=J,this.config=Oe,this.urlTree=Ke,this.url=xt,this.paramsInheritanceStrategy=Zt,this.urlSerializer=gr}recognize(){const me=si(this.urlTree.root,[],[],this.config.filter(J=>void 0===J.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,me,tt).pipe((0,D.U)(J=>{if(null===J)return null;const Oe=new la([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},tt,this.rootComponentType,null,this.urlTree.root,-1,{}),Ke=new ra(Oe,J),xt=new ho(this.url,Ke);return this.inheritParamsAndData(xt._root),xt}))}inheritParamsAndData(me){const J=me.value,Oe=Co(J,this.paramsInheritanceStrategy);J.params=Object.freeze(Oe.params),J.data=Object.freeze(Oe.data),me.children.forEach(Ke=>this.inheritParamsAndData(Ke))}processSegmentGroup(me,J,Oe,Ke){return 0===Oe.segments.length&&Oe.hasChildren()?this.processChildren(me,J,Oe):this.processSegment(me,J,Oe,Oe.segments,Ke)}processChildren(me,J,Oe){return(0,e.D)(Object.keys(Oe.children)).pipe((0,se.b)(Ke=>{const xt=Oe.children[Ke],Zt=Va(J,Ke);return this.processSegmentGroup(me,Zt,xt,Ke)}),_e((Ke,xt)=>Ke&&xt?(Ke.push(...xt),Ke):null),(0,w.o)(Ke=>null!==Ke),Ee(null),Te(),(0,D.U)(Ke=>{if(null===Ke)return null;const xt=Rs(Ke);return function as(ae){ae.sort((me,J)=>me.value.outlet===tt?-1:J.value.outlet===tt?1:me.value.outlet.localeCompare(J.value.outlet))}(xt),xt}))}processSegment(me,J,Oe,Ke,xt){return(0,e.D)(J).pipe((0,se.b)(Zt=>this.processSegmentAgainstRoute(Zt._injector??me,Zt,Oe,Ke,xt)),ee(Zt=>!!Zt),(0,L.K)(Zt=>{if(ii(Zt))return za(Oe,Ke,xt)?(0,d.of)([]):(0,d.of)(null);throw Zt}))}processSegmentAgainstRoute(me,J,Oe,Ke,xt){if(J.redirectTo||!Pa(J,Oe,Ke,xt))return(0,d.of)(null);let Zt;if("**"===J.path){const gr=Ke.length>0?Tt(Ke).parameters:{},zr=ps(Oe)+Ke.length,nn=new la(Ke,gr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,ht(J),Ji(J),J.component??J._loadedComponent??null,J,gs(Oe),zr,He(J));Zt=(0,d.of)({snapshot:nn,consumedSegments:[],remainingSegments:[]})}else Zt=qr(Oe,J,Ke,me).pipe((0,D.U)(({matched:gr,consumedSegments:zr,remainingSegments:nn,parameters:dn})=>{if(!gr)return null;const yi=ps(Oe)+zr.length;return{snapshot:new la(zr,dn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,ht(J),Ji(J),J.component??J._loadedComponent??null,J,gs(Oe),yi,He(J)),consumedSegments:zr,remainingSegments:nn}}));return Zt.pipe((0,M.w)(gr=>{if(null===gr)return(0,d.of)(null);const{snapshot:zr,consumedSegments:nn,remainingSegments:dn}=gr;me=J._injector??me;const yi=J._loadedInjector??me,Ca=function Io(ae){return ae.children?ae.children:ae.loadChildren?ae._loadedRoutes:[]}(J),{segmentGroup:Do,slicedSegments:Ro}=si(Oe,nn,dn,Ca.filter(_o=>void 0===_o.redirectTo));if(0===Ro.length&&Do.hasChildren())return this.processChildren(yi,Ca,Do).pipe((0,D.U)(_o=>null===_o?null:[new ra(zr,_o)]));if(0===Ca.length&&0===Ro.length)return(0,d.of)([new ra(zr,[])]);const Po=Ji(J)===xt;return this.processSegment(yi,Ca,Do,Ro,Po?tt:xt).pipe((0,D.U)(_o=>null===_o?null:[new ra(zr,_o)]))}))}}function Yo(ae){const me=ae.value.routeConfig;return me&&""===me.path&&void 0===me.redirectTo}function Rs(ae){const me=[],J=new Set;for(const Oe of ae){if(!Yo(Oe)){me.push(Oe);continue}const Ke=me.find(xt=>Oe.value.routeConfig===xt.value.routeConfig);void 0!==Ke?(Ke.children.push(...Oe.children),J.add(Ke)):me.push(Oe)}for(const Oe of J){const Ke=Rs(Oe.children);me.push(new ra(Oe.value,Ke))}return me.filter(Oe=>!J.has(Oe))}function gs(ae){let me=ae;for(;me._sourceSegment;)me=me._sourceSegment;return me}function ps(ae){let me=ae,J=me._segmentIndexShift??0;for(;me._sourceSegment;)me=me._sourceSegment,J+=me._segmentIndexShift??0;return J-1}function ht(ae){return ae.data||{}}function He(ae){return ae.resolve||{}}function dt(ae){return"string"==typeof ae.title||null===ae.title}function jt(ae){return(0,M.w)(me=>{const J=ae(me);return J?(0,e.D)(J).pipe((0,D.U)(()=>me)):(0,d.of)(me)})}const Ur=new t.OlP("ROUTES");let En=(()=>{class ae{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.f3M)(t.Sil)}loadComponent(J){if(this.componentLoaders.get(J))return this.componentLoaders.get(J);if(J._loadedComponent)return(0,d.of)(J._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(J);const Oe=Y(J.loadComponent()).pipe((0,D.U)(qn),(0,W.b)(xt=>{this.onLoadEndListener&&this.onLoadEndListener(J),J._loadedComponent=xt}),(0,x.x)(()=>{this.componentLoaders.delete(J)})),Ke=new P.c(Oe,()=>new I.x).pipe((0,z.x)());return this.componentLoaders.set(J,Ke),Ke}loadChildren(J,Oe){if(this.childrenLoaders.get(Oe))return this.childrenLoaders.get(Oe);if(Oe._loadedRoutes)return(0,d.of)({routes:Oe._loadedRoutes,injector:Oe._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Oe);const xt=this.loadModuleFactoryOrRoutes(Oe.loadChildren).pipe((0,D.U)(gr=>{this.onLoadEndListener&&this.onLoadEndListener(Oe);let zr,nn,dn=!1;Array.isArray(gr)?nn=gr:(zr=gr.create(J).injector,nn=Ge(zr.get(Ur,[],t.XFs.Self|t.XFs.Optional)));return{routes:nn.map(Pi),injector:zr}}),(0,x.x)(()=>{this.childrenLoaders.delete(Oe)})),Zt=new P.c(xt,()=>new I.x).pipe((0,z.x)());return this.childrenLoaders.set(Oe,Zt),Zt}loadModuleFactoryOrRoutes(J){return Y(J()).pipe((0,D.U)(qn),(0,V.z)(Oe=>Oe instanceof t.YKP||Array.isArray(Oe)?(0,d.of)(Oe):(0,e.D)(this.compiler.compileModuleAsync(Oe))))}}return ae.\u0275fac=function(J){return new(J||ae)},ae.\u0275prov=t.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();function qn(ae){return function Fn(ae){return ae&&"object"==typeof ae&&"default"in ae}(ae)?ae.default:ae}let _i=(()=>{class ae{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new I.x,this.configLoader=(0,t.f3M)(En),this.environmentInjector=(0,t.f3M)(t.lqb),this.urlSerializer=(0,t.f3M)(dr),this.rootContexts=(0,t.f3M)($n),this.navigationId=0,this.afterPreactivation=()=>(0,d.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Ke=>this.events.next(new ta(Ke)),this.configLoader.onLoadStartListener=Ke=>this.events.next(new ni(Ke))}complete(){this.transitions?.complete()}handleNavigationRequest(J){const Oe=++this.navigationId;this.transitions?.next({...this.transitions.value,...J,id:Oe})}setupNavigations(J){return this.transitions=new l.X({id:0,targetPageId:0,currentUrlTree:J.currentUrlTree,currentRawUrl:J.currentUrlTree,extractedUrl:J.urlHandlingStrategy.extract(J.currentUrlTree),urlAfterRedirects:J.urlHandlingStrategy.extract(J.currentUrlTree),rawUrl:J.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:kr,restoredState:null,currentSnapshot:J.routerState.snapshot,targetSnapshot:null,currentRouterState:J.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,le.h)(Oe=>0!==Oe.id),(0,D.U)(Oe=>({...Oe,extractedUrl:J.urlHandlingStrategy.extract(Oe.rawUrl)})),(0,M.w)(Oe=>{let Ke=!1,xt=!1;return(0,d.of)(Oe).pipe((0,W.b)(Zt=>{this.currentNavigation={id:Zt.id,initialUrl:Zt.rawUrl,extractedUrl:Zt.extractedUrl,trigger:Zt.source,extras:Zt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,M.w)(Zt=>{const gr=J.browserUrlTree.toString(),zr=!J.navigated||Zt.extractedUrl.toString()!==gr||gr!==J.currentUrlTree.toString();if(!zr&&"reload"!==(Zt.extras.onSameUrlNavigation??J.onSameUrlNavigation)){const dn="";return this.events.next(new Er(Zt.id,J.serializeUrl(Oe.rawUrl),dn,0)),J.rawUrlTree=Zt.rawUrl,Zt.resolve(null),i.E}if(J.urlHandlingStrategy.shouldProcessUrl(Zt.rawUrl))return gi(Zt.source)&&(J.browserUrlTree=Zt.extractedUrl),(0,d.of)(Zt).pipe((0,M.w)(dn=>{const yi=this.transitions?.getValue();return this.events.next(new un(dn.id,this.urlSerializer.serialize(dn.extractedUrl),dn.source,dn.restoredState)),yi!==this.transitions?.getValue()?i.E:Promise.resolve(dn)}),function it(ae,me,J,Oe){return(0,M.w)(Ke=>function ft(ae,me,J,Oe,Ke){return new Lt(ae,me,J,Oe,Ke).apply()}(ae,me,J,Ke.extractedUrl,Oe).pipe((0,D.U)(xt=>({...Ke,urlAfterRedirects:xt}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,J.config),(0,W.b)(dn=>{this.currentNavigation={...this.currentNavigation,finalUrl:dn.urlAfterRedirects},Oe.urlAfterRedirects=dn.urlAfterRedirects}),function Ut(ae,me,J,Oe,Ke){return(0,V.z)(xt=>function Zi(ae,me,J,Oe,Ke,xt,Zt="emptyOnly"){return new aa(ae,me,J,Oe,Ke,Zt,xt).recognize().pipe((0,M.w)(gr=>null===gr?function Zr(ae){return new n.y(me=>me.error(ae))}(new Fr):(0,d.of)(gr)))}(ae,me,J,xt.urlAfterRedirects,Oe.serialize(xt.urlAfterRedirects),Oe,Ke).pipe((0,D.U)(Zt=>({...xt,targetSnapshot:Zt}))))}(this.environmentInjector,this.rootComponentType,J.config,this.urlSerializer,J.paramsInheritanceStrategy),(0,W.b)(dn=>{if(Oe.targetSnapshot=dn.targetSnapshot,"eager"===J.urlUpdateStrategy){if(!dn.extras.skipLocationChange){const Ca=J.urlHandlingStrategy.merge(dn.urlAfterRedirects,dn.rawUrl);J.setBrowserUrl(Ca,dn)}J.browserUrlTree=dn.urlAfterRedirects}const yi=new lr(dn.id,this.urlSerializer.serialize(dn.extractedUrl),this.urlSerializer.serialize(dn.urlAfterRedirects),dn.targetSnapshot);this.events.next(yi)}));if(zr&&J.urlHandlingStrategy.shouldProcessUrl(J.rawUrlTree)){const{id:dn,extractedUrl:yi,source:Ca,restoredState:Do,extras:Ro}=Zt,Po=new un(dn,this.urlSerializer.serialize(yi),Ca,Do);this.events.next(Po);const _o=Ui(yi,this.rootComponentType).snapshot;return Oe={...Zt,targetSnapshot:_o,urlAfterRedirects:yi,extras:{...Ro,skipLocationChange:!1,replaceUrl:!1}},(0,d.of)(Oe)}{const dn="";return this.events.next(new Er(Zt.id,J.serializeUrl(Oe.extractedUrl),dn,1)),J.rawUrlTree=Zt.rawUrl,Zt.resolve(null),i.E}}),(0,W.b)(Zt=>{const gr=new Cr(Zt.id,this.urlSerializer.serialize(Zt.extractedUrl),this.urlSerializer.serialize(Zt.urlAfterRedirects),Zt.targetSnapshot);this.events.next(gr)}),(0,D.U)(Zt=>Oe={...Zt,guards:hs(Zt.targetSnapshot,Zt.currentSnapshot,this.rootContexts)}),function Wa(ae,me){return(0,V.z)(J=>{const{targetSnapshot:Oe,currentSnapshot:Ke,guards:{canActivateChecks:xt,canDeactivateChecks:Zt}}=J;return 0===Zt.length&&0===xt.length?(0,d.of)({...J,guardsResult:!0}):function vs(ae,me,J,Oe){return(0,e.D)(ae).pipe((0,V.z)(Ke=>function or(ae,me,J,Oe,Ke){const xt=me&&me.routeConfig?me.routeConfig.canDeactivate:null;if(!xt||0===xt.length)return(0,d.of)(!0);const Zt=xt.map(gr=>{const zr=Qi(me)??Ke,nn=Mo(gr,zr);return Y(function Yr(ae){return ae&&vo(ae.canDeactivate)}(nn)?nn.canDeactivate(ae,me,J,Oe):zr.runInContext(()=>nn(ae,me,J,Oe))).pipe(ee())});return(0,d.of)(Zt).pipe(Jo())}(Ke.component,Ke.route,J,me,Oe)),ee(Ke=>!0!==Ke,!0))}(Zt,Oe,Ke,ae).pipe((0,V.z)(gr=>gr&&function rt(ae){return"boolean"==typeof ae}(gr)?function is(ae,me,J,Oe){return(0,e.D)(me).pipe((0,se.b)(Ke=>(0,E.z)(function Zo(ae,me){return null!==ae&&me&&me(new $a(ae)),(0,d.of)(!0)}(Ke.route.parent,Oe),function no(ae,me){return null!==ae&&me&&me(new Ei(ae)),(0,d.of)(!0)}(Ke.route,Oe),function Xt(ae,me,J){const Oe=me[me.length-1],xt=me.slice(0,me.length-1).reverse().map(Zt=>function Lo(ae){const me=ae.routeConfig?ae.routeConfig.canActivateChild:null;return me&&0!==me.length?{node:ae,guards:me}:null}(Zt)).filter(Zt=>null!==Zt).map(Zt=>(0,m.P)(()=>{const gr=Zt.guards.map(zr=>{const nn=Qi(Zt.node)??J,dn=Mo(zr,nn);return Y(function Yt(ae){return ae&&vo(ae.canActivateChild)}(dn)?dn.canActivateChild(Oe,ae):nn.runInContext(()=>dn(Oe,ae))).pipe(ee())});return(0,d.of)(gr).pipe(Jo())}));return(0,d.of)(xt).pipe(Jo())}(ae,Ke.path,J),function mt(ae,me,J){const Oe=me.routeConfig?me.routeConfig.canActivate:null;if(!Oe||0===Oe.length)return(0,d.of)(!0);const Ke=Oe.map(xt=>(0,m.P)(()=>{const Zt=Qi(me)??J,gr=Mo(xt,Zt);return Y(function Ue(ae){return ae&&vo(ae.canActivate)}(gr)?gr.canActivate(me,ae):Zt.runInContext(()=>gr(me,ae))).pipe(ee())}));return(0,d.of)(Ke).pipe(Jo())}(ae,Ke.route,J))),ee(Ke=>!0!==Ke,!0))}(Oe,xt,ae,me):(0,d.of)(gr)),(0,D.U)(gr=>({...J,guardsResult:gr})))})}(this.environmentInjector,Zt=>this.events.next(Zt)),(0,W.b)(Zt=>{if(Oe.guardsResult=Zt.guardsResult,Kr(Zt.guardsResult))throw kn(0,Zt.guardsResult);const gr=new Gr(Zt.id,this.urlSerializer.serialize(Zt.extractedUrl),this.urlSerializer.serialize(Zt.urlAfterRedirects),Zt.targetSnapshot,!!Zt.guardsResult);this.events.next(gr)}),(0,le.h)(Zt=>!!Zt.guardsResult||(J.restoreHistory(Zt),this.cancelNavigationTransition(Zt,"",3),!1)),jt(Zt=>{if(Zt.guards.canActivateChecks.length)return(0,d.of)(Zt).pipe((0,W.b)(gr=>{const zr=new Ln(gr.id,this.urlSerializer.serialize(gr.extractedUrl),this.urlSerializer.serialize(gr.urlAfterRedirects),gr.targetSnapshot);this.events.next(zr)}),(0,M.w)(gr=>{let zr=!1;return(0,d.of)(gr).pipe(function _r(ae,me){return(0,V.z)(J=>{const{targetSnapshot:Oe,guards:{canActivateChecks:Ke}}=J;if(!Ke.length)return(0,d.of)(J);let xt=0;return(0,e.D)(Ke).pipe((0,se.b)(Zt=>function $r(ae,me,J,Oe){const Ke=ae.routeConfig,xt=ae._resolve;return void 0!==Ke?.title&&!dt(Ke)&&(xt[We]=Ke.title),function Fe(ae,me,J,Oe){const Ke=function er(ae){return[...Object.keys(ae),...Object.getOwnPropertySymbols(ae)]}(ae);if(0===Ke.length)return(0,d.of)({});const xt={};return(0,e.D)(Ke).pipe((0,V.z)(Zt=>function pe(ae,me,J,Oe){const Ke=Qi(me)??Oe,xt=Mo(ae,Ke);return Y(xt.resolve?xt.resolve(me,J):Ke.runInContext(()=>xt(me,J)))}(ae[Zt],me,J,Oe).pipe(ee(),(0,W.b)(gr=>{xt[Zt]=gr}))),Z(1),(0,k.h)(xt),(0,L.K)(Zt=>ii(Zt)?i.E:(0,C._)(Zt)))}(xt,ae,me,Oe).pipe((0,D.U)(Zt=>(ae._resolvedData=Zt,ae.data=Co(ae,J).resolve,Ke&&dt(Ke)&&(ae.data[We]=Ke.title),null)))}(Zt.route,Oe,ae,me)),(0,W.b)(()=>xt++),Z(1),(0,V.z)(Zt=>xt===Ke.length?(0,d.of)(J):i.E))})}(J.paramsInheritanceStrategy,this.environmentInjector),(0,W.b)({next:()=>zr=!0,complete:()=>{zr||(J.restoreHistory(gr),this.cancelNavigationTransition(gr,"",2))}}))}),(0,W.b)(gr=>{const zr=new Xn(gr.id,this.urlSerializer.serialize(gr.extractedUrl),this.urlSerializer.serialize(gr.urlAfterRedirects),gr.targetSnapshot);this.events.next(zr)}))}),jt(Zt=>{const gr=zr=>{const nn=[];zr.routeConfig?.loadComponent&&!zr.routeConfig._loadedComponent&&nn.push(this.configLoader.loadComponent(zr.routeConfig).pipe((0,W.b)(dn=>{zr.component=dn}),(0,D.U)(()=>{})));for(const dn of zr.children)nn.push(...gr(dn));return nn};return(0,c.a)(gr(Zt.targetSnapshot.root)).pipe(Ee(),(0,T.q)(1))}),jt(()=>this.afterPreactivation()),(0,D.U)(Zt=>{const gr=function Ct(ae,me,J){const Oe=Dt(ae,me._root,J?J._root:void 0);return new sa(Oe,me)}(J.routeReuseStrategy,Zt.targetSnapshot,Zt.currentRouterState);return Oe={...Zt,targetRouterState:gr}}),(0,W.b)(Zt=>{J.currentUrlTree=Zt.urlAfterRedirects,J.rawUrlTree=J.urlHandlingStrategy.merge(Zt.urlAfterRedirects,Zt.rawUrl),J.routerState=Zt.targetRouterState,"deferred"===J.urlUpdateStrategy&&(Zt.extras.skipLocationChange||J.setBrowserUrl(J.rawUrlTree,Zt),J.browserUrlTree=Zt.urlAfterRedirects)}),((ae,me,J)=>(0,D.U)(Oe=>(new xo(me,Oe.targetRouterState,Oe.currentRouterState,J).activate(ae),Oe)))(this.rootContexts,J.routeReuseStrategy,Zt=>this.events.next(Zt)),(0,T.q)(1),(0,W.b)({next:Zt=>{Ke=!0,this.lastSuccessfulNavigation=this.currentNavigation,J.navigated=!0,this.events.next(new ri(Zt.id,this.urlSerializer.serialize(Zt.extractedUrl),this.urlSerializer.serialize(J.currentUrlTree))),J.titleStrategy?.updateTitle(Zt.targetRouterState.snapshot),Zt.resolve(!0)},complete:()=>{Ke=!0}}),(0,x.x)(()=>{Ke||xt||this.cancelNavigationTransition(Oe,"",1),this.currentNavigation?.id===Oe.id&&(this.currentNavigation=null)}),(0,L.K)(Zt=>{if(xt=!0,yn(Zt)){Jn(Zt)||(J.navigated=!0,J.restoreHistory(Oe,!0));const gr=new Sr(Oe.id,this.urlSerializer.serialize(Oe.extractedUrl),Zt.message,Zt.cancellationCode);if(this.events.next(gr),Jn(Zt)){const zr=J.urlHandlingStrategy.merge(Zt.url,J.rawUrlTree),nn={skipLocationChange:Oe.extras.skipLocationChange,replaceUrl:"eager"===J.urlUpdateStrategy||gi(Oe.source)};J.scheduleNavigation(zr,kr,null,nn,{resolve:Oe.resolve,reject:Oe.reject,promise:Oe.promise})}else Oe.resolve(!1)}else{J.restoreHistory(Oe,!0);const gr=new Ot(Oe.id,this.urlSerializer.serialize(Oe.extractedUrl),Zt,Oe.targetSnapshot??void 0);this.events.next(gr);try{Oe.resolve(J.errorHandler(Zt))}catch(zr){Oe.reject(zr)}}return i.E}))}))}cancelNavigationTransition(J,Oe,Ke){const xt=new Sr(J.id,this.urlSerializer.serialize(J.extractedUrl),Oe,Ke);this.events.next(xt),J.resolve(!1)}}return ae.\u0275fac=function(J){return new(J||ae)},ae.\u0275prov=t.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();function gi(ae){return ae!==kr}let oa=(()=>{class ae{buildTitle(J){let Oe,Ke=J.root;for(;void 0!==Ke;)Oe=this.getResolvedTitleForRoute(Ke)??Oe,Ke=Ke.children.find(xt=>xt.outlet===tt);return Oe}getResolvedTitleForRoute(J){return J.data[We]}}return ae.\u0275fac=function(J){return new(J||ae)},ae.\u0275prov=t.Yz7({token:ae,factory:function(){return(0,t.f3M)(Ea)},providedIn:"root"}),ae})(),Ea=(()=>{class ae extends oa{constructor(J){super(),this.title=J}updateTitle(J){const Oe=this.buildTitle(J);void 0!==Oe&&this.title.setTitle(Oe)}}return ae.\u0275fac=function(J){return new(J||ae)(t.LFG(Ne.Dx))},ae.\u0275prov=t.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),da=(()=>{class ae{}return ae.\u0275fac=function(J){return new(J||ae)},ae.\u0275prov=t.Yz7({token:ae,factory:function(){return(0,t.f3M)(va)},providedIn:"root"}),ae})();class Za{shouldDetach(me){return!1}store(me,J){}shouldAttach(me){return!1}retrieve(me){return null}shouldReuseRoute(me,J){return me.routeConfig===J.routeConfig}}let va=(()=>{class ae extends Za{}return ae.\u0275fac=function(){let me;return function(Oe){return(me||(me=t.n5z(ae)))(Oe||ae)}}(),ae.\u0275prov=t.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();const ki=new t.OlP("",{providedIn:"root",factory:()=>({})});let Li=(()=>{class ae{}return ae.\u0275fac=function(J){return new(J||ae)},ae.\u0275prov=t.Yz7({token:ae,factory:function(){return(0,t.f3M)(Qo)},providedIn:"root"}),ae})(),Qo=(()=>{class ae{shouldProcessUrl(J){return!0}extract(J){return J}merge(J,Oe){return J}}return ae.\u0275fac=function(J){return new(J||ae)},ae.\u0275prov=t.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();function qo(ae){throw ae}function Go(ae,me,J){return me.parse("/")}const $o={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Vo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ya=(()=>{class ae{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,t.f3M)(t.c2e),this.isNgZoneEnabled=!1,this.options=(0,t.f3M)(ki,{optional:!0})||{},this.errorHandler=this.options.errorHandler||qo,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Go,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,t.f3M)(Li),this.routeReuseStrategy=(0,t.f3M)(da),this.urlCreationStrategy=(0,t.f3M)(cn),this.titleStrategy=(0,t.f3M)(oa),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=Ge((0,t.f3M)(Ur,{optional:!0})??[]),this.navigationTransitions=(0,t.f3M)(_i),this.urlSerializer=(0,t.f3M)(dr),this.location=(0,t.f3M)(q.Ye),this.isNgZoneEnabled=(0,t.f3M)(t.R0b)instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new ct,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Ui(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(J=>{this.lastSuccessfulId=J.id,this.currentPageId=this.browserPageId??0},J=>{this.console.warn(`Unhandled Navigation Error: ${J}`)})}resetRootComponentType(J){this.routerState.root.component=J,this.navigationTransitions.rootComponentType=J}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const J=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),kr,J)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(J=>{const Oe="popstate"===J.type?"popstate":"hashchange";"popstate"===Oe&&setTimeout(()=>{this.navigateToSyncWithBrowser(J.url,Oe,J.state)},0)}))}navigateToSyncWithBrowser(J,Oe,Ke){const xt={replaceUrl:!0},Zt=Ke?.navigationId?Ke:null;if(Ke){const zr={...Ke};delete zr.navigationId,delete zr.\u0275routerPageId,0!==Object.keys(zr).length&&(xt.state=zr)}const gr=this.parseUrl(J);this.scheduleNavigation(gr,Oe,Zt,xt)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(J){this.config=J.map(Pi),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(J,Oe={}){const{relativeTo:Ke,queryParams:xt,fragment:Zt,queryParamsHandling:gr,preserveFragment:zr}=Oe,nn=zr?this.currentUrlTree.fragment:Zt;let dn=null;switch(gr){case"merge":dn={...this.currentUrlTree.queryParams,...xt};break;case"preserve":dn=this.currentUrlTree.queryParams;break;default:dn=xt||null}return null!==dn&&(dn=this.removeEmptyProps(dn)),this.urlCreationStrategy.createUrlTree(Ke,this.routerState,this.currentUrlTree,J,dn,nn??null)}navigateByUrl(J,Oe={skipLocationChange:!1}){const Ke=Kr(J)?J:this.parseUrl(J),xt=this.urlHandlingStrategy.merge(Ke,this.rawUrlTree);return this.scheduleNavigation(xt,kr,null,Oe)}navigate(J,Oe={skipLocationChange:!1}){return function Ze(ae){for(let me=0;me<ae.length;me++){const J=ae[me];if(null==J)throw new t.vHH(4008,false)}}(J),this.navigateByUrl(this.createUrlTree(J,Oe),Oe)}serializeUrl(J){return this.urlSerializer.serialize(J)}parseUrl(J){let Oe;try{Oe=this.urlSerializer.parse(J)}catch(Ke){Oe=this.malformedUriErrorHandler(Ke,this.urlSerializer,J)}return Oe}isActive(J,Oe){let Ke;if(Ke=!0===Oe?{...$o}:!1===Oe?{...Vo}:Oe,Kr(J))return B(this.currentUrlTree,J,Ke);const xt=this.parseUrl(J);return B(this.currentUrlTree,xt,Ke)}removeEmptyProps(J){return Object.keys(J).reduce((Oe,Ke)=>{const xt=J[Ke];return null!=xt&&(Oe[Ke]=xt),Oe},{})}scheduleNavigation(J,Oe,Ke,xt,Zt){if(this.disposed)return Promise.resolve(!1);let gr,zr,nn,dn;return Zt?(gr=Zt.resolve,zr=Zt.reject,nn=Zt.promise):nn=new Promise((yi,Ca)=>{gr=yi,zr=Ca}),dn="computed"===this.canceledNavigationResolution?Ke&&Ke.\u0275routerPageId?Ke.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:dn,source:Oe,restoredState:Ke,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:J,extras:xt,resolve:gr,reject:zr,promise:nn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),nn.catch(yi=>Promise.reject(yi))}setBrowserUrl(J,Oe){const Ke=this.urlSerializer.serialize(J);if(this.location.isCurrentPathEqualTo(Ke)||Oe.extras.replaceUrl){const Zt={...Oe.extras.state,...this.generateNgRouterState(Oe.id,this.browserPageId)};this.location.replaceState(Ke,"",Zt)}else{const xt={...Oe.extras.state,...this.generateNgRouterState(Oe.id,Oe.targetPageId)};this.location.go(Ke,"",xt)}}restoreHistory(J,Oe=!1){if("computed"===this.canceledNavigationResolution){const xt=this.currentPageId-(this.browserPageId??this.currentPageId);0!==xt?this.location.historyGo(xt):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===xt&&(this.resetState(J),this.browserUrlTree=J.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(Oe&&this.resetState(J),this.resetUrlToCurrentUrlTree())}resetState(J){this.routerState=J.currentRouterState,this.currentUrlTree=J.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,J.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(J,Oe){return"computed"===this.canceledNavigationResolution?{navigationId:J,\u0275routerPageId:Oe}:{navigationId:J}}}return ae.\u0275fac=function(J){return new(J||ae)},ae.\u0275prov=t.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),Wt=(()=>{class ae{constructor(J,Oe,Ke,xt,Zt,gr){this.router=J,this.route=Oe,this.tabIndexAttribute=Ke,this.renderer=xt,this.el=Zt,this.locationStrategy=gr,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new I.x;const zr=Zt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===zr||"area"===zr,this.isAnchorElement?this.subscription=J.events.subscribe(nn=>{nn instanceof ri&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(J){this._preserveFragment=(0,t.D6c)(J)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(J){this._skipLocationChange=(0,t.D6c)(J)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(J){this._replaceUrl=(0,t.D6c)(J)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(J){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",J)}ngOnChanges(J){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(J){null!=J?(this.commands=Array.isArray(J)?J:[J],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(J,Oe,Ke,xt,Zt){return!!(null===this.urlTree||this.isAnchorElement&&(0!==J||Oe||Ke||xt||Zt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const J=null===this.href?null:(0,t.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",J)}applyAttributeValue(J,Oe){const Ke=this.renderer,xt=this.el.nativeElement;null!==Oe?Ke.setAttribute(xt,J,Oe):Ke.removeAttribute(xt,J)}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 ae.\u0275fac=function(J){return new(J||ae)(t.Y36(ya),t.Y36(fa),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(q.S$))},ae.\u0275dir=t.lG2({type:ae,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(J,Oe){1&J&&t.NdJ("click",function(xt){return Oe.onClick(xt.button,xt.ctrlKey,xt.shiftKey,xt.altKey,xt.metaKey)}),2&J&&t.uIk("target",Oe.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[t.TTD]}),ae})(),g=(()=>{class ae{get isActive(){return this._isActive}constructor(J,Oe,Ke,xt,Zt){this.router=J,this.element=Oe,this.renderer=Ke,this.cdr=xt,this.link=Zt,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=J.events.subscribe(gr=>{gr instanceof ri&&this.update()})}ngAfterContentInit(){(0,d.of)(this.links.changes,(0,d.of)(null)).pipe((0,j.J)()).subscribe(J=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const J=[...this.links.toArray(),this.link].filter(Oe=>!!Oe).map(Oe=>Oe.onChanges);this.linkInputChangesSubscription=(0,e.D)(J).pipe((0,j.J)()).subscribe(Oe=>{this._isActive!==this.isLinkActive(this.router)(Oe)&&this.update()})}set routerLinkActive(J){const Oe=Array.isArray(J)?J:J.split(" ");this.classes=Oe.filter(Ke=>!!Ke)}ngOnChanges(J){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const J=this.hasActiveLinks();this._isActive!==J&&(this._isActive=J,this.cdr.markForCheck(),this.classes.forEach(Oe=>{J?this.renderer.addClass(this.element.nativeElement,Oe):this.renderer.removeClass(this.element.nativeElement,Oe)}),J&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(J))})}isLinkActive(J){const Oe=function $(ae){return!!ae.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Ke=>!!Ke.urlTree&&J.isActive(Ke.urlTree,Oe)}hasActiveLinks(){const J=this.isLinkActive(this.router);return this.link&&J(this.link)||this.links.some(J)}}return ae.\u0275fac=function(J){return new(J||ae)(t.Y36(ya),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(Wt,8))},ae.\u0275dir=t.lG2({type:ae,selectors:[["","routerLinkActive",""]],contentQueries:function(J,Oe,Ke){if(1&J&&t.Suo(Ke,Wt,5),2&J){let xt;t.iGM(xt=t.CRH())&&(Oe.links=xt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.TTD]}),ae})();class st{}let Xr=(()=>{class ae{constructor(J,Oe,Ke,xt,Zt){this.router=J,this.injector=Ke,this.preloadingStrategy=xt,this.loader=Zt}setUpPreloading(){this.subscription=this.router.events.pipe((0,le.h)(J=>J instanceof ri),(0,se.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(J,Oe){const Ke=[];for(const xt of Oe){xt.providers&&!xt._injector&&(xt._injector=(0,t.MMx)(xt.providers,J,`Route: ${xt.path}`));const Zt=xt._injector??J,gr=xt._loadedInjector??Zt;(xt.loadChildren&&!xt._loadedRoutes&&void 0===xt.canLoad||xt.loadComponent&&!xt._loadedComponent)&&Ke.push(this.preloadConfig(Zt,xt)),(xt.children||xt._loadedRoutes)&&Ke.push(this.processRoutes(gr,xt.children??xt._loadedRoutes))}return(0,e.D)(Ke).pipe((0,j.J)())}preloadConfig(J,Oe){return this.preloadingStrategy.preload(Oe,()=>{let Ke;Ke=Oe.loadChildren&&void 0===Oe.canLoad?this.loader.loadChildren(J,Oe):(0,d.of)(null);const xt=Ke.pipe((0,V.z)(Zt=>null===Zt?(0,d.of)(void 0):(Oe._loadedRoutes=Zt.routes,Oe._loadedInjector=Zt.injector,this.processRoutes(Zt.injector??J,Zt.routes))));if(Oe.loadComponent&&!Oe._loadedComponent){const Zt=this.loader.loadComponent(Oe);return(0,e.D)([xt,Zt]).pipe((0,j.J)())}return xt})}}return ae.\u0275fac=function(J){return new(J||ae)(t.LFG(ya),t.LFG(t.Sil),t.LFG(t.lqb),t.LFG(st),t.LFG(En))},ae.\u0275prov=t.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();const fn=new t.OlP("");let Kn=(()=>{class ae{constructor(J,Oe,Ke,xt,Zt={}){this.urlSerializer=J,this.transitions=Oe,this.viewportScroller=Ke,this.zone=xt,this.options=Zt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Zt.scrollPositionRestoration=Zt.scrollPositionRestoration||"disabled",Zt.anchorScrolling=Zt.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(J=>{J instanceof un?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=J.navigationTrigger,this.restoredId=J.restoredState?J.restoredState.navigationId:0):J instanceof ri&&(this.lastId=J.id,this.scheduleScrollEvent(J,this.urlSerializer.parse(J.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(J=>{J instanceof bn&&(J.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(J.position):J.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(J.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(J,Oe){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new bn(J,"popstate"===this.lastSource?this.store[this.restoredId]:null,Oe))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return ae.\u0275fac=function(J){t.$Z()},ae.\u0275prov=t.Yz7({token:ae,factory:ae.\u0275fac}),ae})();var An=(()=>((An=An||{})[An.COMPLETE=0]="COMPLETE",An[An.FAILED=1]="FAILED",An[An.REDIRECTING=2]="REDIRECTING",An))();const Xa=!1;function uo(ae,me){return{\u0275kind:ae,\u0275providers:me}}const No=new t.OlP("",{providedIn:"root",factory:()=>!1});function Fi(){const ae=(0,t.f3M)(t.zs3);return me=>{const J=ae.get(t.z2F);if(me!==J.components[0])return;const Oe=ae.get(ya),Ke=ae.get(ea);1===ae.get(Hi)&&Oe.initialNavigation(),ae.get(nl,null,t.XFs.Optional)?.setUpPreloading(),ae.get(fn,null,t.XFs.Optional)?.init(),Oe.resetRootComponentType(J.componentTypes[0]),Ke.closed||(Ke.next(),Ke.complete(),Ke.unsubscribe())}}const ea=new t.OlP(Xa?"bootstrap done indicator":"",{factory:()=>new I.x}),Hi=new t.OlP(Xa?"initial navigation":"",{providedIn:"root",factory:()=>1});function vl(){let ae=[];return ae=Xa?[{provide:t.Xts,multi:!0,useFactory:()=>{const me=(0,t.f3M)(ya);return()=>me.events.subscribe(J=>{console.group?.(`Router Event: ${J.constructor.name}`),console.log(function ha(ae){if(!("type"in ae))return`Unknown Router Event: ${ae.constructor.name}`;switch(ae.type){case 14:return`ActivationEnd(path: '${ae.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${ae.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${ae.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${ae.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${ae.id}, url: '${ae.url}', urlAfterRedirects: '${ae.urlAfterRedirects}', state: ${ae.state}, shouldActivate: ${ae.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${ae.id}, url: '${ae.url}', urlAfterRedirects: '${ae.urlAfterRedirects}', state: ${ae.state})`;case 2:return`NavigationCancel(id: ${ae.id}, url: '${ae.url}')`;case 16:return`NavigationSkipped(id: ${ae.id}, url: '${ae.url}')`;case 1:return`NavigationEnd(id: ${ae.id}, url: '${ae.url}', urlAfterRedirects: '${ae.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${ae.id}, url: '${ae.url}', error: ${ae.error})`;case 0:return`NavigationStart(id: ${ae.id}, url: '${ae.url}')`;case 6:return`ResolveEnd(id: ${ae.id}, url: '${ae.url}', urlAfterRedirects: '${ae.urlAfterRedirects}', state: ${ae.state})`;case 5:return`ResolveStart(id: ${ae.id}, url: '${ae.url}', urlAfterRedirects: '${ae.urlAfterRedirects}', state: ${ae.state})`;case 10:return`RouteConfigLoadEnd(path: ${ae.route.path})`;case 9:return`RouteConfigLoadStart(path: ${ae.route.path})`;case 4:return`RoutesRecognized(id: ${ae.id}, url: '${ae.url}', urlAfterRedirects: '${ae.urlAfterRedirects}', state: ${ae.state})`;case 15:return`Scroll(anchor: '${ae.anchor}', position: '${ae.position?`${ae.position[0]}, ${ae.position[1]}`:null}')`}}(J)),console.log(J),console.groupEnd?.()})}}]:[],uo(1,ae)}const nl=new t.OlP(Xa?"router preloader":"");function Sa(ae){return uo(0,[{provide:nl,useExisting:Xr},{provide:st,useExisting:ae}])}const Ls=!1,rr=new t.OlP(Ls?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),y=[q.Ye,{provide:dr,useClass:bt},ya,$n,{provide:fa,useFactory:function Ko(ae){return ae.routerState.root},deps:[ya]},En,Ls?{provide:No,useValue:!0}:[]];function X(){return new t.PXZ("Router",ya)}let at=(()=>{class ae{constructor(J){}static forRoot(J,Oe){return{ngModule:ae,providers:[y,Ls&&Oe?.enableTracing?vl().\u0275providers:[],{provide:Ur,multi:!0,useValue:J},{provide:rr,useFactory:en,deps:[[ya,new t.FiY,new t.tp0]]},{provide:ki,useValue:Oe||{}},Oe?.useHash?{provide:q.S$,useClass:q.Do}:{provide:q.S$,useClass:q.b0},{provide:fn,useFactory:()=>{const ae=(0,t.f3M)(q.EM),me=(0,t.f3M)(t.R0b),J=(0,t.f3M)(ki),Oe=(0,t.f3M)(_i),Ke=(0,t.f3M)(dr);return J.scrollOffset&&ae.setOffset(J.scrollOffset),new Kn(Ke,Oe,ae,me,J)}},Oe?.preloadingStrategy?Sa(Oe.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:X},Oe?.initialNavigation?Pr(Oe):[],[{provide:On,useFactory:Fi},{provide:t.tb,multi:!0,useExisting:On}]]}}static forChild(J){return{ngModule:ae,providers:[{provide:Ur,multi:!0,useValue:J}]}}}return ae.\u0275fac=function(J){return new(J||ae)(t.LFG(rr,8))},ae.\u0275mod=t.oAB({type:ae}),ae.\u0275inj=t.cJS({imports:[Na]}),ae})();function en(ae){if(Ls&&ae)throw new t.vHH(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Pr(ae){return["disabled"===ae.initialNavigation?uo(3,[{provide:t.ip1,multi:!0,useFactory:()=>{const me=(0,t.f3M)(ya);return()=>{me.setUpLocationChangeListener()}}},{provide:Hi,useValue:2}]).\u0275providers:[],"enabledBlocking"===ae.initialNavigation?uo(2,[{provide:Hi,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:me=>{const J=me.get(q.V_,Promise.resolve());return()=>J.then(()=>new Promise(Oe=>{const Ke=me.get(ya),xt=me.get(ea);(function Ki(ae,me){ae.events.pipe((0,le.h)(J=>J instanceof ri||J instanceof Sr||J instanceof Ot||J instanceof Er),(0,D.U)(J=>J instanceof ri||J instanceof Er?An.COMPLETE:J instanceof Sr&&(0===J.code||1===J.code)?An.REDIRECTING:An.FAILED),(0,le.h)(J=>J!==An.REDIRECTING),(0,T.q)(1)).subscribe(()=>{me()})})(Ke,()=>{Oe(!0)}),me.get(_i).afterPreactivation=()=>(Oe(!0),xt.closed?(0,d.of)(void 0):xt),Ke.initialNavigation()}))}}]).\u0275providers:[]]}const On=new t.OlP(Ls?"Router Initializer":"")},92446:(St,be,s)=>{"use strict";s.d(be,{uH:()=>Zo});var t=s(73991);function e(mt){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Xt){return typeof Xt}:function(Xt){return Xt&&"function"==typeof Symbol&&Xt.constructor===Symbol&&Xt!==Symbol.prototype?"symbol":typeof Xt})(mt)}function l(mt,Xt){for(var or=0;or<Xt.length;or++){var mr=Xt[or];mr.enumerable=mr.enumerable||!1,mr.configurable=!0,"value"in mr&&(mr.writable=!0),Object.defineProperty(mt,mr.key,mr)}}function c(mt,Xt,or){return Xt in mt?Object.defineProperty(mt,Xt,{value:or,enumerable:!0,configurable:!0,writable:!0}):mt[Xt]=or,mt}function E(mt){for(var Xt=1;Xt<arguments.length;Xt++){var or=null!=arguments[Xt]?arguments[Xt]:{},mr=Object.keys(or);"function"==typeof Object.getOwnPropertySymbols&&(mr=mr.concat(Object.getOwnPropertySymbols(or).filter(function(Or){return Object.getOwnPropertyDescriptor(or,Or).enumerable}))),mr.forEach(function(Or){c(mt,Or,or[Or])})}return mt}function m(mt,Xt){return function n(mt){if(Array.isArray(mt))return mt}(mt)||function P(mt,Xt){var or=[],mr=!0,Or=!1,Vr=void 0;try{for(var qr,Qr=mt[Symbol.iterator]();!(mr=(qr=Qr.next()).done)&&(or.push(qr.value),!Xt||or.length!==Xt);mr=!0);}catch(Tn){Or=!0,Vr=Tn}finally{try{!mr&&null!=Qr.return&&Qr.return()}finally{if(Or)throw Vr}}return or}(mt,Xt)||function q(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var M={},T={};try{typeof window<"u"&&(M=window),typeof document<"u"&&(T=document),typeof MutationObserver<"u"&&MutationObserver,typeof performance<"u"&&performance}catch{}var de=(M.navigator||{}).userAgent,ye=void 0===de?"":de,Ee=M,Le=T,se=!!Le.documentElement&&!!Le.head&&"function"==typeof Le.addEventListener&&"function"==typeof Le.createElement,L=(~ye.indexOf("MSIE")||ye.indexOf("Trident/"),"___FONT_AWESOME___"),_e="fa",Z="svg-inline--fa",ke=[1,2,3,4,5,6,7,8,9,10],Ge=ke.concat([11,12,13,14,15,16,17,18,19,20]),Et={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Y=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",Et.GROUP,Et.SWAP_OPACITY,Et.PRIMARY,Et.SECONDARY].concat(ke.map(function(mt){return"".concat(mt,"x")})).concat(Ge.map(function(mt){return"w-".concat(mt)})),Ee.FontAwesomeConfig||{});Le&&"function"==typeof Le.querySelector&&[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(mt){var Xt=m(mt,2),mr=Xt[1],Or=function K(mt){return""===mt||"false"!==mt&&("true"===mt||mt)}(function S(mt){var Xt=Le.querySelector("script["+mt+"]");if(Xt)return Xt.getAttribute(mt)}(Xt[0]));null!=Or&&(Y[mr]=Or)});var re=E({},{familyPrefix:_e,replacementClass:Z,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},Y);re.autoReplaceSvg||(re.observeMutations=!1);var fe=E({},re);Ee.FontAwesomeConfig=fe;var qe=Ee||{};qe[L]||(qe[L]={}),qe[L].styles||(qe[L].styles={}),qe[L].hooks||(qe[L].hooks={}),qe[L].shims||(qe[L].shims=[]);var $e=qe[L],et=[];se&&((Le.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Le.readyState)||Le.addEventListener("DOMContentLoaded",function mt(){Le.removeEventListener("DOMContentLoaded",mt),et.map(function(Xt){return Xt()})}));var qt,$t="pending",It="settled",fr="fulfilled",yt="rejected",dr=function(){},bt=typeof global<"u"&&typeof global.process<"u"&&"function"==typeof global.process.emit,ar=typeof setImmediate>"u"?setTimeout:setImmediate,vt=[];function br(){for(var mt=0;mt<vt.length;mt++)vt[mt][0](vt[mt][1]);vt=[],qt=!1}function lt(mt,Xt){vt.push([mt,Xt]),qt||(qt=!0,ar(br,0))}function G(mt){var Xt=mt.owner,or=Xt._state,mr=Xt._data,Or=mt[or],Vr=mt.then;if("function"==typeof Or){or=fr;try{mr=Or(mr)}catch(Qr){Xe(Vr,Qr)}}U(Vr,mr)||(or===fr&&ne(Vr,mr),or===yt&&Xe(Vr,mr))}function U(mt,Xt){var or;try{if(mt===Xt)throw new TypeError("A promises callback cannot return that same promise.");if(Xt&&("function"==typeof Xt||"object"===e(Xt))){var mr=Xt.then;if("function"==typeof mr)return mr.call(Xt,function(Or){or||(or=!0,Xt===Or?Re(mt,Or):ne(mt,Or))},function(Or){or||(or=!0,Xe(mt,Or))}),!0}}catch(Or){return or||Xe(mt,Or),!0}return!1}function ne(mt,Xt){(mt===Xt||!U(mt,Xt))&&Re(mt,Xt)}function Re(mt,Xt){mt._state===$t&&(mt._state=It,mt._data=Xt,lt(Pt,mt))}function Xe(mt,Xt){mt._state===$t&&(mt._state=It,mt._data=Xt,lt(Vt,mt))}function Nt(mt){mt._then=mt._then.forEach(G)}function Pt(mt){mt._state=fr,Nt(mt)}function Vt(mt){mt._state=yt,Nt(mt),!mt._handled&&bt&&global.process.emit("unhandledRejection",mt._data,mt)}function Jt(mt){global.process.emit("rejectionHandled",mt)}function kt(mt){if("function"!=typeof mt)throw new TypeError("Promise resolver "+mt+" is not a function");if(!(this instanceof kt))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function De(mt,Xt){function mr(Or){Xe(Xt,Or)}try{mt(function or(Or){ne(Xt,Or)},mr)}catch(Or){mr(Or)}}(mt,this)}kt.prototype={constructor:kt,_state:$t,_then:null,_data:void 0,_handled:!1,then:function(Xt,or){var mr={owner:this,then:new this.constructor(dr),fulfilled:Xt,rejected:or};return(or||Xt)&&!this._handled&&(this._handled=!0,this._state===yt&&bt&&lt(Jt,this)),this._state===fr||this._state===yt?lt(G,mr):this._then.push(mr),mr.then},catch:function(Xt){return this.then(null,Xt)}},kt.all=function(mt){if(!Array.isArray(mt))throw new TypeError("You must pass an array to Promise.all().");return new kt(function(Xt,or){var mr=[],Or=0;function Vr(Tn){return Or++,function(si){mr[Tn]=si,--Or||Xt(mr)}}for(var qr,Qr=0;Qr<mt.length;Qr++)(qr=mt[Qr])&&"function"==typeof qr.then?qr.then(Vr(Qr),or):mr[Qr]=qr;Or||Xt(mr)})},kt.race=function(mt){if(!Array.isArray(mt))throw new TypeError("You must pass an array to Promise.race().");return new kt(function(Xt,or){for(var Or,mr=0;mr<mt.length;mr++)(Or=mt[mr])&&"function"==typeof Or.then?Or.then(Xt,or):Xt(Or)})},kt.resolve=function(mt){return mt&&"object"===e(mt)&&mt.constructor===kt?mt:new kt(function(Xt){Xt(mt)})},kt.reject=function(mt){return new kt(function(Xt,or){or(mt)})};var ri=function(Xt,or,mr,Or){var Tn,si,di,Vr=Object.keys(Xt),Qr=Vr.length,qr=void 0!==Or?function(Xt,or){return function(mr,Or,Vr,Qr){return Xt.call(or,mr,Or,Vr,Qr)}}(or,Or):or;for(void 0===mr?(Tn=1,di=Xt[Vr[0]]):(Tn=0,di=mr);Tn<Qr;Tn++)di=qr(di,Xt[si=Vr[Tn]],si,Xt);return di};function Er(mt,Xt){var mr=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,Or=void 0!==mr&&mr,Vr=Object.keys(Xt).reduce(function(Qr,qr){var Tn=Xt[qr];return Tn.icon?Qr[Tn.iconName]=Tn.icon:Qr[qr]=Tn,Qr},{});"function"!=typeof $e.hooks.addPack||Or?$e.styles[mt]=E({},$e.styles[mt]||{},Vr):$e.hooks.addPack(mt,Vr),"fas"===mt&&Er("fa",Xt)}var Ot=$e.styles,lr=$e.shims,Xn=function(){var Xt=function(Or){return ri(Ot,function(Vr,Qr,qr){return Vr[qr]=ri(Qr,Or,{}),Vr},{})};Xt(function(mr,Or,Vr){return Or[3]&&(mr[Or[3]]=Vr),mr}),Xt(function(mr,Or,Vr){var Qr=Or[2];return mr[Vr]=Vr,Qr.forEach(function(qr){mr[qr]=Vr}),mr});var or="far"in Ot;ri(lr,function(mr,Or){var Qr=Or[1];return"far"===Qr&&!or&&(Qr="fas"),mr[Or[0]]={prefix:Qr,iconName:Or[2]},mr},{})};function Ct(mt){this.name="MissingIcon",this.message=mt||"Icon unavailable",this.stack=(new Error).stack}Xn(),(Ct.prototype=Object.create(Error.prototype)).constructor=Ct;var Dt={fill:"currentColor"},ve={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},Dr=(E({},Dt,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),E({},ve,{attributeName:"opacity"}));E({},Dt,{cx:"256",cy:"364",r:"28"}),E({},ve,{attributeName:"r",values:"28;14;28;28;14;28;"}),E({},Dr,{values:"1;0;1;1;0;1;"}),E({},Dt,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),E({},Dr,{values:"1;0;0;0;0;1;"}),E({},Dt,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),E({},Dr,{values:"0;0;1;1;0;0;"});new(function(){function mt(){(function d(mt,Xt){if(!(mt instanceof Xt))throw new TypeError("Cannot call a class as a function")})(this,mt),this.definitions={}}return function r(mt,Xt,or){Xt&&l(mt.prototype,Xt),or&&l(mt,or)}(mt,[{key:"add",value:function(){for(var or=this,mr=arguments.length,Or=new Array(mr),Vr=0;Vr<mr;Vr++)Or[Vr]=arguments[Vr];var Qr=Or.reduce(this._pullDefinitions,{});Object.keys(Qr).forEach(function(qr){or.definitions[qr]=E({},or.definitions[qr]||{},Qr[qr]),Er(qr,Qr[qr]),Xn()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(or,mr){var Or=mr.prefix&&mr.iconName&&mr.icon?{0:mr}:mr;return Object.keys(Or).map(function(Vr){var Qr=Or[Vr],qr=Qr.prefix,Tn=Qr.iconName,si=Qr.icon;or[qr]||(or[qr]={}),or[qr][Tn]=si}),or}}]),mt}());let Zo=(()=>{class mt{}return mt.\u0275fac=function(or){return new(or||mt)},mt.\u0275mod=t.oAB({type:mt}),mt.\u0275inj=t.cJS({}),mt})()},97107:(St,be,s)=>{"use strict";s.d(be,{Ek:()=>Et,sN:()=>Tt});var t=s(73991),e=s(17774),d=s(24510);const l=function(H){return{ratio:H}};function r(H,Y){if(1&H){const S=t.EpF();t.TgZ(0,"img",7),t.NdJ("load",function(){t.CHM(S);const Q=t.oxw(2);return t.KtG(Q.imageLoading=!1)}),t.qZA()}if(2&H){const S=t.oxw(2);t.Q6J("ngClass",t.VKq(5,l,S.ratio))("src",S.fileUrl,t.LSH)("alt",S.alt)("title",S.title),t.uIk("loading",1==S.lazy?"lazy":null)}}function c(H,Y){if(1&H&&t._UZ(0,"iframe",8),2&H){const S=t.oxw(2);t.Q6J("src",S.fileUrl,t.uOi),t.uIk("loading",1==S.lazy?"lazy":null)}}function E(H,Y){if(1&H){const S=t.EpF();t.TgZ(0,"video",9),t.NdJ("click",function(Q){t.CHM(S);const B=t.oxw(2);return t.KtG(B.videoClickHandler(Q))}),t._UZ(1,"source",10),t._uU(2," Your browser does not support the video tag. "),t.qZA()}if(2&H){const S=t.oxw(2);t.Q6J("id","video_"+S.imageIndex)("ngClass",t.VKq(5,l,S.ratio))("autoplay",S.videoAutoPlay),t.uIk("controls",S.showVideoControls?S.showVideoControls:null),t.xp6(1),t.Q6J("src",S.fileUrl,t.LSH)}}function m(H,Y){if(1&H&&(t.TgZ(0,"div",11),t._uU(1,"Invalid file format"),t.qZA()),2&H){const S=t.oxw(2);t.Q6J("dir",S.direction)}}function v(H,Y){1&H&&t._UZ(0,"span",12)}const C=function(H){return{"ng-fullimage-loading":H}};function n(H,Y){if(1&H&&(t.TgZ(0,"div",1),t.YNc(1,r,1,7,"img",2),t.YNc(2,c,1,2,"iframe",3),t.YNc(3,E,3,7,"video",4),t.YNc(4,m,2,1,"div",5),t.YNc(5,v,1,0,"span",6),t.qZA()),2&H){const S=t.oxw();t.Q6J("ngClass",t.VKq(6,C,S.imageLoading)),t.xp6(1),t.Q6J("ngIf",S.type===S.IMAGE&&S.fileUrl),t.xp6(1),t.Q6J("ngIf",S.type===S.YOUTUBE&&S.fileUrl),t.xp6(1),t.Q6J("ngIf",S.type===S.VIDEO),t.xp6(1),t.Q6J("ngIf",!S.fileUrl),t.xp6(1),t.Q6J("ngIf",S.type===S.YOUTUBE||S.type===S.VIDEO||S.isVideo)}}const i=["lightboxDiv"],P=["lightboxImageDiv"];function I(H,Y){1&H&&(t.TgZ(0,"div",13),t._UZ(1,"div",14),t.qZA())}const q=function(H){return{width:H}};function D(H,Y){if(1&H){const S=t.EpF();t.TgZ(0,"div",15,16),t.NdJ("touchstart",function(Q){t.CHM(S);const B=t.oxw(2);return t.KtG(B.swipeLightboxImg(Q,"start"))})("touchend",function(Q){t.CHM(S);const B=t.oxw(2);return t.KtG(B.swipeLightboxImg(Q,"end"))}),t.TgZ(2,"div",17),t.NdJ("click",function(){const B=t.CHM(S).$implicit,re=t.oxw(2);return t.KtG(!(null!=B&&B.video)&&re.closeLightbox())}),t.qZA(),t._UZ(3,"custom-img",18),t.qZA()}if(2&H){const S=Y.$implicit,K=Y.index,Q=t.oxw(2);t.Q6J("ngStyle",t.VKq(13,q,Q.popupWidth+"px")),t.uIk("id","ng-lightbox-image-"+K),t.xp6(3),t.Q6J("imageUrl",(null==S?null:S.image)||(null==S?null:S.video))("isVideo",!!(null!=S&&S.posterImage||null!=S&&S.video))("currentImageIndex",Q.currentImageIndex)("imageIndex",K)("speed",Q.speed)("videoAutoPlay",Q.videoAutoPlay&&K==Q.currentImageIndex)("showVideoControls",Q.showVideoControls?1:0)("alt",(null==S?null:S.alt)||(null==S?null:S.title)||"")("title",(null==S?null:S.title)||(null==S?null:S.alt)||"")("showVideo",!0)("direction",Q.direction)}}const M=function(H){return{disable:H}};function T(H,Y){if(1&H){const S=t.EpF();t.TgZ(0,"a",19),t.NdJ("click",function(){t.CHM(S);const Q=t.oxw(2);return t.KtG(Q.prevImageLightbox())}),t._uU(1,"\u2039"),t.qZA()}if(2&H){const S=t.oxw(2);t.Q6J("ngClass",t.VKq(1,M,S.lightboxPrevDisable))}}function F(H,Y){if(1&H){const S=t.EpF();t.TgZ(0,"a",20),t.NdJ("click",function(){t.CHM(S);const Q=t.oxw(2);return t.KtG(Q.nextImageLightbox())}),t._uU(1,"\u203a"),t.qZA()}if(2&H){const S=t.oxw(2);t.Q6J("ngClass",t.VKq(1,M,S.lightboxNextDisable))}}function le(H,Y){if(1&H&&(t.TgZ(0,"div",21),t._uU(1),t.qZA()),2&H){const S=t.oxw(2);t.xp6(1),t.AsE("",S.currentImageIndex+1," of ",S.totalImages,"")}}const V=function(H,Y,S){return{"margin-left":H,"grid-template-columns":Y,transition:S}},de=function(H,Y){return{show:H,hide:Y}};function ye(H,Y){if(1&H){const S=t.EpF();t.TgZ(0,"div",1)(1,"div",2)(2,"a",3),t.NdJ("click",function(){t.CHM(S);const Q=t.oxw();return t.KtG(Q.closeLightbox())}),t.qZA(),t.TgZ(3,"div",4,5),t.YNc(5,I,2,0,"div",6),t.TgZ(6,"div",7),t.YNc(7,D,4,15,"div",8),t.qZA(),t.TgZ(8,"div",9),t._uU(9),t.qZA(),t.YNc(10,T,2,3,"a",10),t.YNc(11,F,2,3,"a",11),t.qZA()(),t.YNc(12,le,2,2,"div",12),t.qZA()}if(2&H){const S=t.oxw();t.xp6(5),t.Q6J("ngIf",S.showLoading),t.xp6(1),t.Q6J("ngStyle",t.kEZ(9,V,S.marginLeft+"px","repeat("+S.images.length+",1fr)",S.effectStyle)),t.xp6(1),t.Q6J("ngForOf",S.images),t.xp6(1),t.Q6J("dir",S.direction)("ngClass",t.WLB(13,de,S.title,!S.title)),t.xp6(1),t.Oqu(S.title),t.xp6(1),t.Q6J("ngIf",S.images.length>1),t.xp6(1),t.Q6J("ngIf",S.images.length>1),t.xp6(1),t.Q6J("ngIf",S.paginationShow)}}const Ee=["sliderMain"],Le=["imageDiv"];function ge(H,Y){if(1&H&&(t.TgZ(0,"div",16),t._uU(1),t.qZA()),2&H){const S=t.oxw().$implicit,K=t.oxw(2);t.Q6J("dir",K.textDirection),t.xp6(1),t.Oqu(null==S?null:S.title)}}const ue=function(H,Y){return{"image-popup":H,"selected-image":Y}},ee=function(H,Y,S){return{width:H,"margin-left":Y,"margin-right":S}};function se(H,Y){if(1&H){const S=t.EpF();t.TgZ(0,"div",12,13),t.NdJ("click",function(){const B=t.CHM(S).$implicit,re=t.oxw(2);return t.KtG(re.imageOnClick(B.index))})("mouseenter",function(){t.CHM(S);const Q=t.oxw(2);return t.KtG(Q.stopSlideOnHover&&Q.imageMouseEnterHandler())})("mouseleave",function(){t.CHM(S);const Q=t.oxw(2);return t.KtG(Q.stopSlideOnHover&&Q.imageAutoSlide())}),t._UZ(2,"custom-img",14),t.YNc(3,ge,2,2,"div",15),t.qZA()}if(2&H){const S=Y.$implicit,K=Y.index,Q=t.oxw(2);t.Q6J("ngClass",t.WLB(10,ue,Q.imagePopup,Q.activeImageIndex==K))("ngStyle",t.kEZ(13,ee,Q.sliderImageWidth+"px",Q.imageMargin+"px",Q.imageMargin+"px")),t.xp6(2),t.Q6J("imageUrl",(null==S?null:S.thumbImage)||(null==S?null:S.posterImage)||(null==S?null:S.video))("isVideo",!!(null!=S&&S.posterImage||null!=S&&S.video))("alt",(null==S?null:S.alt)||(null==S?null:S.title)||"")("title",(null==S?null:S.title)||(null==S?null:S.alt)||"")("direction",Q.textDirection)("ratio",Q.manageImageRatio)("lazy",Q.lazyLoading),t.xp6(1),t.Q6J("ngIf",null==S?null:S.title)}}const W=function(H){return{"with-ng-main-pagination":H}},L=function(H,Y,S){return{"margin-left":H,width:Y,transition:S}};function he(H,Y){if(1&H){const S=t.EpF();t.TgZ(0,"div",10),t.NdJ("touchstart",function(Q){t.CHM(S);const B=t.oxw();return t.KtG(B.swipe(Q,"start"))})("touchend",function(Q){t.CHM(S);const B=t.oxw();return t.KtG(B.swipe(Q,"end"))}),t.YNc(1,se,4,17,"div",11),t.qZA()}if(2&H){const S=t.oxw();t.Q6J("ngClass",t.VKq(3,W,S.paginationShow))("ngStyle",t.kEZ(5,L,S.leftPos+"px",S.imageParentDivWidth+"px",S.effectStyle)),t.xp6(1),t.Q6J("ngForOf",S.imageObj)}}function _e(H,Y){1&H&&(t.TgZ(0,"div",17),t._UZ(1,"span",18),t.qZA())}function Z(H,Y){if(1&H){const S=t.EpF();t.TgZ(0,"a",19),t.NdJ("click",function(){t.CHM(S);const Q=t.oxw();return t.KtG(Q.prev())})("mouseenter",function(){t.CHM(S);const Q=t.oxw();return t.KtG(Q.stopSlideOnHover&&Q.imageMouseEnterHandler())})("mouseleave",function(){t.CHM(S);const Q=t.oxw();return t.KtG(Q.stopSlideOnHover&&Q.imageAutoSlide())}),t._uU(1,"\u2039"),t.qZA()}if(2&H){const S=t.oxw();t.Q6J("ngClass",t.VKq(1,M,S.sliderPrevDisable))}}function Te(H,Y){if(1&H){const S=t.EpF();t.TgZ(0,"a",20),t.NdJ("click",function(){t.CHM(S);const Q=t.oxw();return t.KtG(Q.next())})("mouseenter",function(){t.CHM(S);const Q=t.oxw();return t.KtG(Q.imageMouseEnterHandler())})("mouseleave",function(){t.CHM(S);const Q=t.oxw();return t.KtG(Q.imageAutoSlide())}),t._uU(1,"\u203a"),t.qZA()}if(2&H){const S=t.oxw();t.Q6J("ngClass",t.VKq(1,M,S.sliderNextDisable))}}function w(H,Y){if(1&H&&(t.TgZ(0,"div",21),t._uU(1),t.qZA()),2&H){const S=t.oxw();t.xp6(1),t.AsE("",S.visiableImageIndex+1," of ",S.totalImages,"")}}function k(H,Y){if(1&H){const S=t.EpF();t.TgZ(0,"div")(1,"slider-lightbox",22),t.NdJ("prevImage",function(Q){t.CHM(S);const B=t.oxw();return t.KtG(B.lightboxArrowClickHandler(Q))})("nextImage",function(Q){t.CHM(S);const B=t.oxw();return t.KtG(B.lightboxArrowClickHandler(Q))})("close",function(){t.CHM(S);const Q=t.oxw();return t.KtG(Q.close())}),t.qZA()()}if(2&H){const S=t.oxw();t.xp6(1),t.Q6J("paginationShow",S.paginationShow)("showVideoControls",S.showVideoControls)("arrowKeyMove",S.arrowKeyMove)("images",S.ligthboxImageObj)("infinite",S.infinite)("animationSpeed",S.speed)("imageIndex",S.activeImageIndex)("show",S.ligthboxShow)("direction",S.textDirection)("videoAutoPlay",S.videoAutoPlay)}}const x=function(H){return{height:H}},z="DESC";let Ne=(()=>{class H{constructor(){}isBase64(S){return/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/.test(S)}base64FileExtension(S){return S.substring(11,S.indexOf(";base64"))}orderArray(S=[],K="ASC"){return S?.length&&K?S.sort((Q,B)=>null!==Q.order&&Q.order?null!==B.order&&B.order?Q.order>B.order?K===z?-1:1:Q.order<B.order?K===z?1:-1:void 0:-1:1):S}}return H.\u0275fac=function(S){return new(S||H)},H.\u0275prov=t.Yz7({token:H,factory:H.\u0275fac}),H})();const tt=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=|\?v=)([^#\&\?]*).*/,We=["jpeg","jpg","gif","png"],ze=["mp4"];let we=(()=>{class H{constructor(S,K,Q){this.imageSliderService=S,this.sanitizer=K,this.YOUTUBE="youtube",this.IMAGE="image",this.VIDEO="video",this.fileUrl="",this.fileExtension="",this.type=this.IMAGE,this.imageLoading=!0,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,this.lazy=!1}ngOnChanges(S){this.imageUrl&&this.imageUrl&&this.imageUrl&&"string"==typeof this.imageUrl&&(S.imageUrl&&S.imageUrl.firstChange||this.videoAutoPlay)&&this.setUrl()}setUrl(){const S=this.imageUrl;this.imageLoading=!0,this.fileUrl=this.sanitizer.bypassSecurityTrustResourceUrl(S),this.fileExtension=S.split(".").pop().split(/\#|\?/)[0],this.imageSliderService.base64FileExtension(S)&&(We.indexOf(this.imageSliderService.base64FileExtension(S).toLowerCase())>-1||ze.indexOf(this.imageSliderService.base64FileExtension(S).toLowerCase())>-1)&&(this.fileExtension=this.imageSliderService.base64FileExtension(S));const K=S.match(tt);if(K&&11===K[2].length)this.showVideo?(this.type=this.YOUTUBE,this.fileUrl=this.sanitizer.bypassSecurityTrustResourceUrl(`https://www.youtube.com/embed/${K[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/${K[2]}/0.jpg`));else if(this.fileExtension&&We.indexOf(this.fileExtension.toLowerCase())>-1)this.type=this.IMAGE;else if(this.fileExtension&&ze.indexOf(this.fileExtension.toLowerCase())>-1&&(this.type=this.VIDEO,this.videoAutoPlay&&document.getElementById(`video_${this.imageIndex}`))){const Q=document.getElementById(`video_${this.imageIndex}`);setTimeout(()=>{Q.play()},1e3*this.speed)}}videoClickHandler(S){S&&S.srcElement&&!this.showVideoControls&&(S.srcElement.paused?S.srcElement.play():S.srcElement.pause())}}return H.\u0275fac=function(S){return new(S||H)(t.Y36(Ne),t.Y36(d.H7),t.Y36(e.K0))},H.\u0275cmp=t.Xpm({type:H,selectors:[["custom-img"]],inputs:{showVideo:"showVideo",videoAutoPlay:"videoAutoPlay",showVideoControls:"showVideoControls",currentImageIndex:"currentImageIndex",imageIndex:"imageIndex",speed:"speed",imageUrl:"imageUrl",isVideo:"isVideo",alt:"alt",title:"title",direction:"direction",ratio:"ratio",lazy:"lazy"},features:[t.TTD],decls:1,vars:1,consts:[["class","custom-image-main",3,"ngClass",4,"ngIf"],[1,"custom-image-main",3,"ngClass"],["class","image",3,"ngClass","src","alt","title","load",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","load"],["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(S,K){1&S&&t.YNc(0,n,6,8,"div",0),2&S&&t.Q6J("ngIf",K.fileUrl)},dependencies:[e.mk,e.O5],encapsulation:2}),H})(),Se=(()=>{class H{constructor(S,K,Q,B){this.cdRef=S,this.sanitizer=K,this.elRef=Q,this.document=B,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 t.vpe,this.prevImage=new t.vpe,this.nextImage=new t.vpe}set imageIndex(S){void 0!==S&&S>-1&&S<this.images.length&&(this.currentImageIndex=S),this.nextPrevDisable()}set show(S){this.imageFullscreenView=S,this.elRef.nativeElement.ownerDocument.body.style.overflow="",!0===S&&(this.elRef.nativeElement.ownerDocument.body.style.overflow="hidden",this.setPopupSliderWidth())}set animationSpeed(S){S&&"number"==typeof S&&S>=.1&&S<=5&&(this.speed=S)}onResize(S){this.effectStyle="none",this.setPopupSliderWidth()}handleKeyboardEvent(S){S&&S.key&&this.arrowKeyMove&&("arrowright"===S.key.toLowerCase()&&this.nextImageLightbox(),"arrowleft"===S.key.toLowerCase()&&this.prevImageLightbox(),"escape"===S.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 S in this.document.getElementsByTagName("iframe"))this.document.getElementsByTagName("iframe")[S]&&this.document.getElementsByTagName("iframe")[S].contentWindow&&this.document.getElementsByTagName("iframe")[S].contentWindow.postMessage&&this.document.getElementsByTagName("iframe")[S].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*");for(const S in this.document.getElementsByTagName("video"))this.document.getElementsByTagName("video")[S]&&this.document.getElementsByTagName("video")[S].pause&&this.document.getElementsByTagName("video")[S].pause()}}resetState(){this.images=[]}swipeLightboxImg(S,K){const Q=[S.changedTouches[0].pageX,S.changedTouches[0].pageY],B=(new Date).getTime();if("start"===K)this.swipeLightboxImgCoord=Q,this.swipeLightboxImgTime=B;else if("end"===K){const re=[Q[0]-this.swipeLightboxImgCoord[0],Q[1]-this.swipeLightboxImgCoord[1]];B-this.swipeLightboxImgTime<1e3&&Math.abs(re[0])>30&&Math.abs(re[0])>Math.abs(3*re[1])&&(re[0]<0?this.nextImageLightbox():this.prevImageLightbox())}}}return H.\u0275fac=function(S){return new(S||H)(t.Y36(t.sBO),t.Y36(d.H7),t.Y36(t.SBq),t.Y36(e.K0))},H.\u0275cmp=t.Xpm({type:H,selectors:[["slider-lightbox"]],viewQuery:function(S,K){if(1&S&&(t.Gf(i,5),t.Gf(P,5)),2&S){let Q;t.iGM(Q=t.CRH())&&(K.lightboxDiv=Q.first),t.iGM(Q=t.CRH())&&(K.lightboxImageDiv=Q.first)}},hostBindings:function(S,K){1&S&&t.NdJ("resize",function(B){return K.onResize(B)},!1,t.Jf7)("keyup",function(B){return K.handleKeyboardEvent(B)},!1,t.evT)},inputs:{images:"images",imageIndex:"imageIndex",show:"show",videoAutoPlay:"videoAutoPlay",direction:"direction",paginationShow:"paginationShow",animationSpeed:"animationSpeed",infinite:"infinite",arrowKeyMove:"arrowKeyMove",showVideoControls:"showVideoControls"},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",""],[1,"close-outside",3,"click"],[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(S,K){1&S&&t.YNc(0,ye,13,16,"div",0),2&S&&t.Q6J("ngIf",K.imageFullscreenView)},dependencies:[e.mk,e.sg,e.O5,e.PC,we],encapsulation:2}),H})(),Tt=(()=>{class H{constructor(S,K,Q,B){this.cdRef=S,this.platformId=K,this.imageSliderService=Q,this.elRef=B,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.sliderOrderType="ASC",this.ligthboxShow=!1,this.activeImageIndex=-1,this.visiableImageIndex=0,this.infinite=!1,this.imagePopup=!0,this.images=[],this.videoAutoPlay=!1,this.paginationShow=!1,this.arrowKeyMove=!0,this.manageImageRatio=!1,this.showVideoControls=!0,this.lazyLoading=!1,this.imageClick=new t.vpe,this.arrowClick=new t.vpe,this.lightboxArrowClick=new t.vpe,this.lightboxClose=new t.vpe}set imageSize(S){S&&"object"==typeof S&&(S.hasOwnProperty("space")&&"number"==typeof S.space&&S.space>-1&&(this.imageMargin=S.space),S.hasOwnProperty("width")&&("number"==typeof S.width||"string"==typeof S.width)&&(this.sliderImageReceivedWidth=S.width),S.hasOwnProperty("height")&&("number"==typeof S.height||"string"==typeof S.height)&&(this.sliderImageReceivedHeight=S.height))}set direction(S){S&&(this.textDirection=S)}set animationSpeed(S){S&&"number"==typeof S&&S>=.1&&S<=5&&(this.speed=S,this.effectStyle=`all ${this.speed}s ease-in-out`)}set slideImage(S){S&&"number"==typeof S&&(this.slideImageCount=Math.round(S))}set autoSlide(S){S&&("number"==typeof S||"boolean"==typeof S||"object"==typeof S)&&("number"==typeof S&&S>=1&&S<=5?S=Math.round(S):"boolean"==typeof S?S=1:"object"==typeof S&&S.hasOwnProperty("interval")&&Math.round(S.interval)&&Math.round(S.interval)>=1&&Math.round(S.interval)<=5&&(this.stopSlideOnHover=!S.hasOwnProperty("stopOnHover")||S.stopOnHover,S=Math.round(S.interval)),this.autoSlideCount=1e3*S)}set showArrow(S){void 0!==S&&"boolean"==typeof S&&(this.showArrowButton=S)}set orderType(S){void 0!==S&&"string"==typeof S&&(this.sliderOrderType=S.toUpperCase())}set defaultActiveImage(S){"number"==typeof S&&S>-1&&(this.activeImageIndex=S)}onResize(S){this.setSliderWidth()}handleKeyboardEvent(S){S&&S.key&&("arrowright"===S.key.toLowerCase()&&!this.ligthboxShow&&this.arrowKeyMove&&this.next(),"arrowleft"===S.key.toLowerCase()&&!this.ligthboxShow&&this.arrowKeyMove&&this.prev(),"escape"===S.key.toLowerCase()&&this.ligthboxShow&&this.close())}ngOnInit(){if(this.infinite){this.effectStyle="none",this.leftPos=-1*this.sliderImageSizeWithPadding*this.slideImageCount;for(let S=1;S<=this.slideImageCount;S++)this.imageObj.unshift(this.imageObj[this.imageObj.length-S])}}ngAfterViewInit(){this.setSliderWidth(),this.cdRef.detectChanges(),(0,e.NF)(this.platformId)&&this.imageAutoSlide()}ngOnDestroy(){this.autoSlideInterval&&clearInterval(this.autoSlideInterval),!0===this.ligthboxShow&&this.close()}ngOnChanges(S){if(S.images&&S.images.hasOwnProperty("previousValue")&&S.images.hasOwnProperty("currentValue")&&S.images.previousValue!=S.images.currentValue&&this.setSliderImages(S.images.currentValue),S&&S.imageSize){const K=S.imageSize;K&&K.previousValue&&K.currentValue&&K.previousValue.width&&K.previousValue.height&&K.currentValue.width&&K.currentValue.height&&(K.previousValue.width!==K.currentValue.width||K.previousValue.height!==K.currentValue.height)&&this.setSliderWidth()}}ngDoCheck(){this.images&&this.ligthboxImageObj&&this.images.length!==this.ligthboxImageObj.length&&this.setSliderImages(this.images)}setSliderImages(S){S&&S instanceof Array&&S.length?(S.find(Q=>{if(Q.hasOwnProperty("order"))return!0})&&(S=this.imageSliderService.orderArray(S,this.sliderOrderType.toUpperCase())),this.imageObj=S.map((Q,B)=>(Q.index=B,Q)),this.ligthboxImageObj=[...this.imageObj],this.totalImages=this.imageObj.length):(this.imageObj=[],this.ligthboxImageObj=[],this.totalImages=0,this.imageParentDivWidth=0,this.activeImageIndex=0),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)))),(0,e.NF)(this.platformId)&&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.sliderImageSizeWithPadding*this.visiableImageIndex+2*this.imageMargin)),this.nextPrevSliderButtonDisable()}imageOnClick(S){this.activeImageIndex=S,this.imagePopup&&this.showLightbox(),this.imageClick.emit(S)}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.sliderArrowDisableTeam("previous"),this.getVisiableIndex())}next(){this.sliderNextDisable||(this.infinite?this.infiniteNextImg():this.nextImg(),this.sliderArrowDisableTeam("next"),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 S=0;S<this.slideImageCount;S++)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 S=0;S<this.slideImageCount;S++)this.imageObj.push(this.imageObj[this.slideImageCount]),this.imageObj.shift();this.leftPos=-1*this.sliderImageSizeWithPadding*this.slideImageCount},1e3*this.speed)}getVisiableIndex(){const S=Math.round((Math.abs(this.leftPos)+this.sliderImageWidth)/this.sliderImageWidth);this.imageObj[S-1]&&void 0!==this.imageObj[S-1].index&&(this.visiableImageIndex=this.imageObj[S-1].index)}sliderArrowDisableTeam(S){this.sliderNextDisable=!0,this.sliderPrevDisable=!0,setTimeout(()=>{this.nextPrevSliderButtonDisable(S)},1e3*this.speed)}nextPrevSliderButtonDisable(S){this.sliderNextDisable=!1,this.sliderPrevDisable=!1;const K={};this.infinite||(this.imageParentDivWidth+this.leftPos<=this.sliderMainDivWidth&&(this.sliderNextDisable=!0),this.leftPos>=0&&(this.sliderPrevDisable=!0),K.prevDisable=this.sliderPrevDisable,K.nextDisable=this.sliderNextDisable),S&&this.arrowClick.emit({action:S,...K})}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(S){this.lightboxArrowClick.emit(S)}swipe(S,K){const Q=[S.changedTouches[0].pageX,S.changedTouches[0].pageY],B=(new Date).getTime();if("start"===K)this.swipeCoord=Q,this.swipeTime=B;else if("end"===K){const re=[Q[0]-this.swipeCoord[0],Q[1]-this.swipeCoord[1]];B-this.swipeTime<1e3&&Math.abs(re[0])>30&&Math.abs(re[0])>Math.abs(3*re[1])&&(re[0]<0?this.next():this.prev())}}}return H.\u0275fac=function(S){return new(S||H)(t.Y36(t.sBO),t.Y36(t.Lbi),t.Y36(Ne),t.Y36(t.SBq))},H.\u0275cmp=t.Xpm({type:H,selectors:[["ng-image-slider"]],viewQuery:function(S,K){if(1&S&&(t.Gf(Ee,5),t.Gf(Le,5)),2&S){let Q;t.iGM(Q=t.CRH())&&(K.sliderMain=Q.first),t.iGM(Q=t.CRH())&&(K.imageDiv=Q.first)}},hostBindings:function(S,K){1&S&&t.NdJ("resize",function(B){return K.onResize(B)},!1,t.Jf7)("keyup",function(B){return K.handleKeyboardEvent(B)},!1,t.evT)},inputs:{imageSize:"imageSize",infinite:"infinite",imagePopup:"imagePopup",direction:"direction",animationSpeed:"animationSpeed",images:"images",slideImage:"slideImage",autoSlide:"autoSlide",showArrow:"showArrow",orderType:"orderType",videoAutoPlay:"videoAutoPlay",paginationShow:"paginationShow",arrowKeyMove:"arrowKeyMove",manageImageRatio:"manageImageRatio",showVideoControls:"showVideoControls",defaultActiveImage:"defaultActiveImage",lazyLoading:"lazyLoading"},outputs:{imageClick:"imageClick",arrowClick:"arrowClick",lightboxArrowClick:"lightboxArrowClick",lightboxClose:"lightboxClose"},features:[t.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","lazy"],["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(S,K){1&S&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2,3),t.YNc(4,he,2,9,"div",4),t.YNc(5,_e,2,0,"div",5),t.YNc(6,Z,2,3,"a",6),t.YNc(7,Te,2,3,"a",7),t.qZA(),t.YNc(8,w,2,2,"div",8),t.qZA()(),t.YNc(9,k,2,10,"div",9)),2&S&&(t.Q6J("ngStyle",t.VKq(8,x,K.sliderImageHeight+"px")),t.xp6(2),t.Q6J("ngStyle",t.VKq(10,x,K.sliderImageHeight+"px")),t.xp6(2),t.Q6J("ngIf",K.imageObj.length),t.xp6(1),t.Q6J("ngIf",!K.imageObj.length),t.xp6(1),t.Q6J("ngIf",K.showArrowButton&&K.imageObj.length>1),t.xp6(1),t.Q6J("ngIf",K.showArrowButton&&K.imageObj.length>1),t.xp6(1),t.Q6J("ngIf",K.imageObj.length&&K.paginationShow),t.xp6(1),t.Q6J("ngIf",K.ligthboxShow))},dependencies:[e.mk,e.sg,e.O5,e.PC,we,Se],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);background-size:40px 40px;background-repeat:no-repeat;position:absolute;z-index:8;display:block;height:40px;width:40px;top:4px;right:8px;opacity:.4;transition:all .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;display:inline-block;box-shadow:inset 0 0 1px #0000003d,0 0 2px #0000001f;border-radius:5px}.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;margin:auto;height:100%;width:100%;inset: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=);background-size:140px 80px;background-repeat:no-repeat;position:absolute;z-index:6;display:block;height:100%;width:100%;top:0;left:0;background-position:center center}.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:all .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:all .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}.close-outside{height:100%;width:100%;position:absolute;top:0;left:0}@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:#0009;width:100%;height:100%;top:0;overflow:hidden;transition:all .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:all .5s ease;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;border-color:#00000059;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:0px;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.ng-fullimage-loading{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}.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{width:100%;height:100%}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .lightbox-image-main .lightbox-image .custom-image-main img{transition:all .5s ease-in-out;width:auto;height:auto;max-height:100%;max-width:100%;position:absolute;z-index:11;margin:auto;inset:0}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .lightbox-image-main .lightbox-image .custom-image-main iframe{inset:0;margin:auto;width:100%;height:100%;border:0;position:absolute}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .lightbox-image-main .lightbox-image .custom-image-main video{inset: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:#00000059;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:all .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:all .2s ease}.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}}\n"],encapsulation:2}),H})(),Et=(()=>{class H{}return H.\u0275fac=function(S){return new(S||H)},H.\u0275mod=t.oAB({type:H}),H.\u0275inj=t.cJS({providers:[Ne],imports:[e.ez]}),H})()},61551:(St,be,s)=>{"use strict";s.d(be,{Ll:()=>ue,QG:()=>ge,ap:()=>Le});var t=s(48046),e=s(73991),d=s(24510),l=s(17774);const r=["wrapper"],c=["sourceImage"];function E(ee,se){if(1&ee){const W=e.EpF();e.TgZ(0,"img",4,5),e.NdJ("load",function(){e.CHM(W);const he=e.oxw();return e.KtG(he.imageLoadedInView())})("mousedown",function(he){e.CHM(W);const _e=e.oxw();return e.KtG(_e.startMove(he,_e.moveTypes.Drag))})("touchstart",function(he){e.CHM(W);const _e=e.oxw();return e.KtG(_e.startMove(he,_e.moveTypes.Drag))})("error",function(he){e.CHM(W);const _e=e.oxw();return e.KtG(_e.loadImageError(he))}),e.qZA()}if(2&ee){const W=e.oxw();e.Udp("visibility",W.imageVisible?"visible":"hidden")("transform",W.safeTransformStyle),e.ekj("ngx-ic-draggable",!W.disabled&&W.allowMoveImage),e.Q6J("src",W.safeImgDataUrl,e.LSH),e.uIk("alt",W.imageAltText)}}function m(ee,se){if(1&ee){const W=e.EpF();e.ynx(0),e.TgZ(1,"span",9),e.NdJ("mousedown",function(he){e.CHM(W);const _e=e.oxw(2);return e.KtG(_e.startMove(he,_e.moveTypes.Resize,"topleft"))})("touchstart",function(he){e.CHM(W);const _e=e.oxw(2);return e.KtG(_e.startMove(he,_e.moveTypes.Resize,"topleft"))}),e._UZ(2,"span",10),e.qZA(),e.TgZ(3,"span",11),e._UZ(4,"span",10),e.qZA(),e.TgZ(5,"span",12),e.NdJ("mousedown",function(he){e.CHM(W);const _e=e.oxw(2);return e.KtG(_e.startMove(he,_e.moveTypes.Resize,"topright"))})("touchstart",function(he){e.CHM(W);const _e=e.oxw(2);return e.KtG(_e.startMove(he,_e.moveTypes.Resize,"topright"))}),e._UZ(6,"span",10),e.qZA(),e.TgZ(7,"span",13),e._UZ(8,"span",10),e.qZA(),e.TgZ(9,"span",14),e.NdJ("mousedown",function(he){e.CHM(W);const _e=e.oxw(2);return e.KtG(_e.startMove(he,_e.moveTypes.Resize,"bottomright"))})("touchstart",function(he){e.CHM(W);const _e=e.oxw(2);return e.KtG(_e.startMove(he,_e.moveTypes.Resize,"bottomright"))}),e._UZ(10,"span",10),e.qZA(),e.TgZ(11,"span",15),e._UZ(12,"span",10),e.qZA(),e.TgZ(13,"span",16),e.NdJ("mousedown",function(he){e.CHM(W);const _e=e.oxw(2);return e.KtG(_e.startMove(he,_e.moveTypes.Resize,"bottomleft"))})("touchstart",function(he){e.CHM(W);const _e=e.oxw(2);return e.KtG(_e.startMove(he,_e.moveTypes.Resize,"bottomleft"))}),e._UZ(14,"span",10),e.qZA(),e.TgZ(15,"span",17),e._UZ(16,"span",10),e.qZA(),e.TgZ(17,"span",18),e.NdJ("mousedown",function(he){e.CHM(W);const _e=e.oxw(2);return e.KtG(_e.startMove(he,_e.moveTypes.Resize,"top"))})("touchstart",function(he){e.CHM(W);const _e=e.oxw(2);return e.KtG(_e.startMove(he,_e.moveTypes.Resize,"top"))}),e.qZA(),e.TgZ(18,"span",19),e.NdJ("mousedown",function(he){e.CHM(W);const _e=e.oxw(2);return e.KtG(_e.startMove(he,_e.moveTypes.Resize,"right"))})("touchstart",function(he){e.CHM(W);const _e=e.oxw(2);return e.KtG(_e.startMove(he,_e.moveTypes.Resize,"right"))}),e.qZA(),e.TgZ(19,"span",20),e.NdJ("mousedown",function(he){e.CHM(W);const _e=e.oxw(2);return e.KtG(_e.startMove(he,_e.moveTypes.Resize,"bottom"))})("touchstart",function(he){e.CHM(W);const _e=e.oxw(2);return e.KtG(_e.startMove(he,_e.moveTypes.Resize,"bottom"))}),e.qZA(),e.TgZ(20,"span",21),e.NdJ("mousedown",function(he){e.CHM(W);const _e=e.oxw(2);return e.KtG(_e.startMove(he,_e.moveTypes.Resize,"left"))})("touchstart",function(he){e.CHM(W);const _e=e.oxw(2);return e.KtG(_e.startMove(he,_e.moveTypes.Resize,"left"))}),e.qZA(),e.BQk()}}function v(ee,se){if(1&ee){const W=e.EpF();e.TgZ(0,"div",6),e.NdJ("keydown",function(he){e.CHM(W);const _e=e.oxw();return e.KtG(_e.keyboardAccess(he))}),e.TgZ(1,"div",7),e.NdJ("mousedown",function(he){e.CHM(W);const _e=e.oxw();return e.KtG(_e.startMove(he,_e.moveTypes.Move))})("touchstart",function(he){e.CHM(W);const _e=e.oxw();return e.KtG(_e.startMove(he,_e.moveTypes.Move))}),e.qZA(),e.YNc(2,m,21,0,"ng-container",8),e.qZA()}if(2&ee){const W=e.oxw();e.Udp("top",W.cropper.y1,"px")("left",W.cropper.x1,"px")("width",W.cropper.x2-W.cropper.x1,"px")("height",W.cropper.y2-W.cropper.y1,"px")("margin-left","center"===W.alignImage?W.marginLeft:null)("visibility",W.imageVisible?"visible":"hidden"),e.ekj("ngx-ic-round",W.roundCropper),e.xp6(2),e.Q6J("ngIf",!W.hideResizeSquares)}}class C{constructor(){this.format="png",this.maintainAspectRatio=!0,this.transform={},this.aspectRatio=1,this.resetCropOnAspectRatioChange=!0,this.resizeToWidth=0,this.resizeToHeight=0,this.cropperMinWidth=0,this.cropperMinHeight=0,this.cropperMaxHeight=0,this.cropperMaxWidth=0,this.cropperStaticWidth=0,this.cropperStaticHeight=0,this.canvasRotation=0,this.initialStepSize=3,this.roundCropper=!1,this.onlyScaleDown=!1,this.imageQuality=92,this.autoCrop=!0,this.backgroundColor=null,this.containWithinAspectRatio=!1,this.hideResizeSquares=!1,this.alignImage="center",this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20,this.cropperScaledMaxWidth=20,this.cropperScaledMaxHeight=20,this.stepSize=this.initialStepSize}setOptions(se){Object.keys(se).filter(W=>W in this).forEach(W=>this[W]=se[W]),this.validateOptions()}setOptionsFromChanges(se){Object.keys(se).filter(W=>W in this).forEach(W=>this[W]=se[W].currentValue),this.validateOptions()}validateOptions(){if(this.maintainAspectRatio&&!this.aspectRatio)throw new Error("`aspectRatio` should > 0 when `maintainAspectRatio` is enabled")}}var n=(()=>{return(ee=n||(n={})).Drag="drag",ee.Move="move",ee.Resize="resize",ee.Pinch="pinch",n;var ee})();function D(ee,se){return ee/100*se}let M=(()=>{class ee{crop(W,L,he,_e){const Z=this.getImagePosition(W,L,he,_e),Te=Z.x2-Z.x1,w=Z.y2-Z.y1,k=document.createElement("canvas");k.width=Te,k.height=w;const x=k.getContext("2d");if(!x)return null;null!=_e.backgroundColor&&(x.fillStyle=_e.backgroundColor,x.fillRect(0,0,Te,w));const z=(_e.transform.scale||1)*(_e.transform.flipH?-1:1),j=(_e.transform.scale||1)*(_e.transform.flipV?-1:1),{translateH:Ne,translateV:tt}=this.getCanvasTranslate(W,L,_e),We=L.transformed;x.setTransform(z,0,0,j,We.size.width/2+Ne,We.size.height/2+tt),x.translate(-Z.x1/z,-Z.y1/j),x.rotate((_e.transform.rotate||0)*Math.PI/180),x.drawImage(We.image,-We.size.width/2,-We.size.height/2);const ze={width:Te,height:w,imagePosition:Z,cropperPosition:{...he}};_e.containWithinAspectRatio&&(ze.offsetImagePosition=this.getOffsetImagePosition(W,L,he,_e));const we=this.getResizeRatio(Te,w,_e);return 1!==we&&(ze.width=Math.round(Te*we),ze.height=_e.maintainAspectRatio?Math.round(ze.width/_e.aspectRatio):Math.round(w*we),function q(ee,se,W){const L=ee.width,he=ee.height,_e=L/(se=Math.round(se)),Z=he/(W=Math.round(W)),Te=Math.ceil(_e/2),w=Math.ceil(Z/2),k=ee.getContext("2d");if(k){const x=k.getImageData(0,0,L,he),z=k.createImageData(se,W),j=x.data,Ne=z.data;for(let tt=0;tt<W;tt++)for(let We=0;We<se;We++){const ze=4*(We+tt*se),we=tt*Z;let Ye=0,te=0,Se=0,ke=0,Ge=0,Tt=0,Et=0;const H=Math.floor(We*_e),Y=Math.floor(tt*Z);let S=Math.ceil((We+1)*_e),K=Math.ceil((tt+1)*Z);S=Math.min(S,L),K=Math.min(K,he);for(let Q=Y;Q<K;Q++){const B=Math.abs(we-Q)/w,re=We*_e,fe=B*B;for(let qe=H;qe<S;qe++){const $e=Math.abs(re-qe)/Te,et=Math.sqrt(fe+$e*$e);if(et>=1)continue;Ye=2*et*et*et-3*et*et+1;const ot=4*(qe+Q*L);Et+=Ye*j[ot+3],Se+=Ye,j[ot+3]<255&&(Ye=Ye*j[ot+3]/250),ke+=Ye*j[ot],Ge+=Ye*j[ot+1],Tt+=Ye*j[ot+2],te+=Ye}}Ne[ze]=ke/te,Ne[ze+1]=Ge/te,Ne[ze+2]=Tt/te,Ne[ze+3]=Et/Se}ee.width=se,ee.height=W,k.putImageData(z,0,0)}}(k,ze.width,ze.height)),ze.base64=k.toDataURL("image/"+_e.format,this.getQuality(_e)),ze}getCanvasTranslate(W,L,he){if("px"===he.transform.translateUnit){const _e=this.getRatio(W,L);return{translateH:(he.transform.translateH||0)*_e,translateV:(he.transform.translateV||0)*_e}}return{translateH:he.transform.translateH?D(he.transform.translateH,L.transformed.size.width):0,translateV:he.transform.translateV?D(he.transform.translateV,L.transformed.size.height):0}}getRatio(W,L){return L.transformed.size.width/W.nativeElement.offsetWidth}getImagePosition(W,L,he,_e){const Z=this.getRatio(W,L),Te={x1:Math.round(he.x1*Z),y1:Math.round(he.y1*Z),x2:Math.round(he.x2*Z),y2:Math.round(he.y2*Z)};return _e.containWithinAspectRatio||(Te.x1=Math.max(Te.x1,0),Te.y1=Math.max(Te.y1,0),Te.x2=Math.min(Te.x2,L.transformed.size.width),Te.y2=Math.min(Te.y2,L.transformed.size.height)),Te}getOffsetImagePosition(W,L,he,_e){const w=L.transformed.size.width/W.nativeElement.offsetWidth;let k,x;(_e.canvasRotation+L.exifTransform.rotate)%2?(k=(L.transformed.size.width-L.original.size.height)/2,x=(L.transformed.size.height-L.original.size.width)/2):(k=(L.transformed.size.width-L.original.size.width)/2,x=(L.transformed.size.height-L.original.size.height)/2);const z={x1:Math.round(he.x1*w)-k,y1:Math.round(he.y1*w)-x,x2:Math.round(he.x2*w)-k,y2:Math.round(he.y2*w)-x};return _e.containWithinAspectRatio||(z.x1=Math.max(z.x1,0),z.y1=Math.max(z.y1,0),z.x2=Math.min(z.x2,L.transformed.size.width),z.y2=Math.min(z.y2,L.transformed.size.height)),z}getResizeRatio(W,L,he){const _e=he.resizeToWidth/W,Z=he.resizeToHeight/L,Te=new Array;he.resizeToWidth>0&&Te.push(_e),he.resizeToHeight>0&&Te.push(Z);const w=0===Te.length?1:Math.min(...Te);return w>1&&!he.onlyScaleDown?w:Math.min(w,1)}getQuality(W){return Math.min(1,Math.max(0,W.imageQuality/100))}}return ee.\u0275fac=function(W){return new(W||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),T=(()=>{class ee{resetCropperPosition(W,L,he){if(!W?.nativeElement)return;const _e=W.nativeElement;if(he.cropperStaticHeight&&he.cropperStaticWidth)L.x1=0,L.x2=_e.offsetWidth>he.cropperStaticWidth?he.cropperStaticWidth:_e.offsetWidth,L.y1=0,L.y2=_e.offsetHeight>he.cropperStaticHeight?he.cropperStaticHeight:_e.offsetHeight;else{const Z=Math.min(he.cropperScaledMaxWidth,_e.offsetWidth),Te=Math.min(he.cropperScaledMaxHeight,_e.offsetHeight);if(he.maintainAspectRatio)if(_e.offsetWidth/he.aspectRatio<_e.offsetHeight){L.x1=0,L.x2=Z;const w=Z/he.aspectRatio;L.y1=(_e.offsetHeight-w)/2,L.y2=L.y1+w}else{L.y1=0,L.y2=Te;const w=Te*he.aspectRatio;L.x1=(_e.offsetWidth-w)/2,L.x2=L.x1+w}else L.x1=0,L.x2=Z,L.y1=0,L.y2=Te}}move(W,L,he){const _e=this.getClientX(W)-L.clientX,Z=this.getClientY(W)-L.clientY;he.x1=L.x1+_e,he.y1=L.y1+Z,he.x2=L.x2+_e,he.y2=L.y2+Z}resize(W,L,he,_e,Z){const Te=this.getClientX(W)-L.clientX,w=this.getClientY(W)-L.clientY;switch(L.position){case"left":he.x1=Math.min(Math.max(L.x1+Te,he.x2-Z.cropperScaledMaxWidth),he.x2-Z.cropperScaledMinWidth);break;case"topleft":he.x1=Math.min(Math.max(L.x1+Te,he.x2-Z.cropperScaledMaxWidth),he.x2-Z.cropperScaledMinWidth),he.y1=Math.min(Math.max(L.y1+w,he.y2-Z.cropperScaledMaxHeight),he.y2-Z.cropperScaledMinHeight);break;case"top":he.y1=Math.min(Math.max(L.y1+w,he.y2-Z.cropperScaledMaxHeight),he.y2-Z.cropperScaledMinHeight);break;case"topright":he.x2=Math.max(Math.min(L.x2+Te,he.x1+Z.cropperScaledMaxWidth),he.x1+Z.cropperScaledMinWidth),he.y1=Math.min(Math.max(L.y1+w,he.y2-Z.cropperScaledMaxHeight),he.y2-Z.cropperScaledMinHeight);break;case"right":he.x2=Math.max(Math.min(L.x2+Te,he.x1+Z.cropperScaledMaxWidth),he.x1+Z.cropperScaledMinWidth);break;case"bottomright":he.x2=Math.max(Math.min(L.x2+Te,he.x1+Z.cropperScaledMaxWidth),he.x1+Z.cropperScaledMinWidth),he.y2=Math.max(Math.min(L.y2+w,he.y1+Z.cropperScaledMaxHeight),he.y1+Z.cropperScaledMinHeight);break;case"bottom":he.y2=Math.max(Math.min(L.y2+w,he.y1+Z.cropperScaledMaxHeight),he.y1+Z.cropperScaledMinHeight);break;case"bottomleft":he.x1=Math.min(Math.max(L.x1+Te,he.x2-Z.cropperScaledMaxWidth),he.x2-Z.cropperScaledMinWidth),he.y2=Math.max(Math.min(L.y2+w,he.y1+Z.cropperScaledMaxHeight),he.y1+Z.cropperScaledMinHeight);break;case"center":const k=W.scale,x=Math.min(Math.max(Z.cropperScaledMinWidth,Math.abs(L.x2-L.x1)*k),Z.cropperScaledMaxWidth),z=Math.min(Math.max(Z.cropperScaledMinHeight,Math.abs(L.y2-L.y1)*k),Z.cropperScaledMaxHeight);he.x1=L.clientX-x/2,he.x2=L.clientX+x/2,he.y1=L.clientY-z/2,he.y2=L.clientY+z/2,he.x1<0?(he.x2-=he.x1,he.x1=0):he.x2>_e.width&&(he.x1-=he.x2-_e.width,he.x2=_e.width),he.y1<0?(he.y2-=he.y1,he.y1=0):he.y2>_e.height&&(he.y1-=he.y2-_e.height,he.y2=_e.height)}Z.maintainAspectRatio&&this.checkAspectRatio(L.position,he,_e,Z)}checkAspectRatio(W,L,he,_e){let Z=0,Te=0;switch(W){case"top":L.x2=L.x1+(L.y2-L.y1)*_e.aspectRatio,Z=Math.max(L.x2-he.width,0),Te=Math.max(0-L.y1,0),(Z>0||Te>0)&&(L.x2-=Te*_e.aspectRatio>Z?Te*_e.aspectRatio:Z,L.y1+=Te*_e.aspectRatio>Z?Te:Z/_e.aspectRatio);break;case"bottom":L.x2=L.x1+(L.y2-L.y1)*_e.aspectRatio,Z=Math.max(L.x2-he.width,0),Te=Math.max(L.y2-he.height,0),(Z>0||Te>0)&&(L.x2-=Te*_e.aspectRatio>Z?Te*_e.aspectRatio:Z,L.y2-=Te*_e.aspectRatio>Z?Te:Z/_e.aspectRatio);break;case"topleft":L.y1=L.y2-(L.x2-L.x1)/_e.aspectRatio,Z=Math.max(0-L.x1,0),Te=Math.max(0-L.y1,0),(Z>0||Te>0)&&(L.x1+=Te*_e.aspectRatio>Z?Te*_e.aspectRatio:Z,L.y1+=Te*_e.aspectRatio>Z?Te:Z/_e.aspectRatio);break;case"topright":L.y1=L.y2-(L.x2-L.x1)/_e.aspectRatio,Z=Math.max(L.x2-he.width,0),Te=Math.max(0-L.y1,0),(Z>0||Te>0)&&(L.x2-=Te*_e.aspectRatio>Z?Te*_e.aspectRatio:Z,L.y1+=Te*_e.aspectRatio>Z?Te:Z/_e.aspectRatio);break;case"right":case"bottomright":L.y2=L.y1+(L.x2-L.x1)/_e.aspectRatio,Z=Math.max(L.x2-he.width,0),Te=Math.max(L.y2-he.height,0),(Z>0||Te>0)&&(L.x2-=Te*_e.aspectRatio>Z?Te*_e.aspectRatio:Z,L.y2-=Te*_e.aspectRatio>Z?Te:Z/_e.aspectRatio);break;case"left":case"bottomleft":L.y2=L.y1+(L.x2-L.x1)/_e.aspectRatio,Z=Math.max(0-L.x1,0),Te=Math.max(L.y2-he.height,0),(Z>0||Te>0)&&(L.x1+=Te*_e.aspectRatio>Z?Te*_e.aspectRatio:Z,L.y2-=Te*_e.aspectRatio>Z?Te:Z/_e.aspectRatio);break;case"center":L.x2=L.x1+(L.y2-L.y1)*_e.aspectRatio,L.y2=L.y1+(L.x2-L.x1)/_e.aspectRatio;const w=Math.max(0-L.x1,0),k=Math.max(L.x2-he.width,0),x=Math.max(L.y2-he.height,0),z=Math.max(0-L.y1,0);(w>0||k>0||x>0||z>0)&&(L.x1+=x*_e.aspectRatio>w?x*_e.aspectRatio:w,L.x2-=z*_e.aspectRatio>k?z*_e.aspectRatio:k,L.y1+=z*_e.aspectRatio>k?z:k/_e.aspectRatio,L.y2-=x*_e.aspectRatio>w?x:w/_e.aspectRatio)}}getClientX(W){return W.touches?.[0].clientX||W.clientX||0}getClientY(W){return W.touches?.[0].clientY||W.clientY||0}}return ee.\u0275fac=function(W){return new(W||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();let Ee=(()=>{class ee{constructor(){this.autoRotateSupported=function le(){return new Promise(ee=>{const se=new Image;se.onload=()=>{ee(1===se.width&&2===se.height)},se.src="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q=="})}()}loadImageFile(W,L){return new Promise((he,_e)=>{const Z=new FileReader;Z.onload=Te=>{this.loadImage(Te.target.result,W.type,L).then(he).catch(_e)},Z.readAsDataURL(W)})}loadImage(W,L,he){return this.isValidImageType(L)?this.loadBase64Image(W,he):Promise.reject(new Error("Invalid image type"))}isValidImageType(W){return/image\/(png|jpg|jpeg|bmp|gif|tiff|webp|x-icon|vnd.microsoft.icon)/.test(W)}loadImageFromURL(W,L){return new Promise((he,_e)=>{const Z=new Image;Z.onerror=()=>_e,Z.onload=()=>{const Te=document.createElement("canvas"),w=Te.getContext("2d");Te.width=Z.width,Te.height=Z.height,w?.drawImage(Z,0,0),this.loadBase64Image(Te.toDataURL(),L).then(he)},Z.crossOrigin="anonymous",Z.src=W})}loadBase64Image(W,L){return new Promise((he,_e)=>{const Z=new Image;Z.onload=()=>he({originalImage:Z,originalBase64:W}),Z.onerror=_e,Z.src=W}).then(he=>this.transformImageBase64(he,L))}transformImageBase64(W,L){var he=this;return(0,t.Z)(function*(){const _e=yield he.autoRotateSupported,Z=yield function V(ee){switch("string"==typeof ee&&(ee=function de(ee){const se=new DataView(function ye(ee){ee=ee.replace(/^data\:([^\;]+)\;base64,/gim,"");const se=atob(ee),W=se.length,L=new Uint8Array(W);for(let he=0;he<W;he++)L[he]=se.charCodeAt(he);return L.buffer}(ee));if(65496!==se.getUint16(0,!1))return-2;const W=se.byteLength;let L=2;for(;L<W;){if(se.getUint16(L+2,!1)<=8)return-1;const he=se.getUint16(L,!1);if(L+=2,65505==he){if(1165519206!==se.getUint32(L+=2,!1))return-1;const _e=18761==se.getUint16(L+=6,!1);L+=se.getUint32(L+4,_e);const Z=se.getUint16(L,_e);L+=2;for(let Te=0;Te<Z;Te++)if(274==se.getUint16(L+12*Te,_e))return se.getUint16(L+12*Te+8,_e)}else{if(65280!=(65280&he))break;L+=se.getUint16(L,!1)}}return-1}(ee)),ee){case 2:return{rotate:0,flip:!0};case 3:return{rotate:2,flip:!1};case 4:return{rotate:2,flip:!0};case 5:return{rotate:1,flip:!0};case 6:return{rotate:1,flip:!1};case 7:return{rotate:3,flip:!0};case 8:return{rotate:3,flip:!1};default:return{rotate:0,flip:!1}}}(_e?-1:W.originalBase64);return W.originalImage&&W.originalImage.complete?he.transformLoadedImage({original:{base64:W.originalBase64,image:W.originalImage,size:{width:W.originalImage.naturalWidth,height:W.originalImage.naturalHeight}},exifTransform:Z},L):Promise.reject(new Error("No image loaded"))})()}transformLoadedImage(W,L){var he=this;return(0,t.Z)(function*(){const _e=L.canvasRotation+W.exifTransform.rotate,Z={width:W.original.image.naturalWidth,height:W.original.image.naturalHeight};if(0===_e&&!W.exifTransform.flip&&!L.containWithinAspectRatio)return{original:{base64:W.original.base64,image:W.original.image,size:{...Z}},transformed:{base64:W.original.base64,image:W.original.image,size:{...Z}},exifTransform:W.exifTransform};const Te=he.getTransformedSize(Z,W.exifTransform,L),w=document.createElement("canvas");w.width=Te.width,w.height=Te.height;const k=w.getContext("2d");k?.setTransform(W.exifTransform.flip?-1:1,0,0,1,w.width/2,w.height/2),k?.rotate(Math.PI*(_e/2)),k?.drawImage(W.original.image,-Z.width/2,-Z.height/2);const x=w.toDataURL(),z=yield he.loadImageFromBase64(x);return{original:{base64:W.original.base64,image:W.original.image,size:{...Z}},transformed:{base64:x,image:z,size:{width:z.width,height:z.height}},exifTransform:W.exifTransform}})()}loadImageFromBase64(W){return new Promise((L,he)=>{const _e=new Image;_e.onload=()=>L(_e),_e.onerror=he,_e.src=W})}getTransformedSize(W,L,he){const _e=he.canvasRotation+L.rotate;if(he.containWithinAspectRatio){if(_e%2){const Te=W.height/he.aspectRatio;return{width:Math.max(W.height,W.width*he.aspectRatio),height:Math.max(W.width,Te)}}{const Te=W.width/he.aspectRatio;return{width:Math.max(W.width,W.height*he.aspectRatio),height:Math.max(W.height,Te)}}}return _e%2?{height:W.width,width:W.height}:{width:W.width,height:W.height}}}return ee.\u0275fac=function(W){return new(W||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),Le=(()=>{class ee{constructor(W,L,he,_e,Z){this.cropService=W,this.cropperPositionService=L,this.loadImageService=he,this.sanitizer=_e,this.cd=Z,this.Hammer=window?.Hammer||null,this.settings=new C,this.setImageMaxSizeRetries=0,this.resizedWhileHidden=!1,this.marginLeft="0px",this.maxSize={width:0,height:0},this.moveTypes=n,this.imageVisible=!1,this.format=this.settings.format,this.transform={},this.maintainAspectRatio=this.settings.maintainAspectRatio,this.aspectRatio=this.settings.aspectRatio,this.resetCropOnAspectRatioChange=this.settings.resetCropOnAspectRatioChange,this.resizeToWidth=this.settings.resizeToWidth,this.resizeToHeight=this.settings.resizeToHeight,this.cropperMinWidth=this.settings.cropperMinWidth,this.cropperMinHeight=this.settings.cropperMinHeight,this.cropperMaxHeight=this.settings.cropperMaxHeight,this.cropperMaxWidth=this.settings.cropperMaxWidth,this.cropperStaticWidth=this.settings.cropperStaticWidth,this.cropperStaticHeight=this.settings.cropperStaticHeight,this.canvasRotation=this.settings.canvasRotation,this.initialStepSize=this.settings.initialStepSize,this.roundCropper=this.settings.roundCropper,this.onlyScaleDown=this.settings.onlyScaleDown,this.imageQuality=this.settings.imageQuality,this.autoCrop=this.settings.autoCrop,this.backgroundColor=this.settings.backgroundColor,this.containWithinAspectRatio=this.settings.containWithinAspectRatio,this.hideResizeSquares=this.settings.hideResizeSquares,this.allowMoveImage=!1,this.cropper={x1:-100,y1:-100,x2:1e4,y2:1e4},this.alignImage=this.settings.alignImage,this.disabled=!1,this.hidden=!1,this.imageCropped=new e.vpe,this.startCropImage=new e.vpe,this.imageLoaded=new e.vpe,this.cropperReady=new e.vpe,this.loadImageFailed=new e.vpe,this.transformChange=new e.vpe,this.reset()}ngOnChanges(W){this.onChangesUpdateSettings(W),this.onChangesInputImage(W),this.loadedImage?.original.image.complete&&(W.containWithinAspectRatio||W.canvasRotation)&&this.loadImageService.transformLoadedImage(this.loadedImage,this.settings).then(L=>this.setLoadedImage(L)).catch(L=>this.loadImageError(L)),(W.cropper||W.maintainAspectRatio||W.aspectRatio)&&(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),!this.maintainAspectRatio||!this.resetCropOnAspectRatioChange&&this.aspectRatioIsCorrect()||!W.maintainAspectRatio&&!W.aspectRatio?W.cropper&&(this.checkCropperPosition(!1),this.doAutoCrop()):this.resetCropperPosition(),this.cd.markForCheck()),W.transform&&(this.transform=this.transform||{},this.setCssTransform(),this.doAutoCrop(),this.cd.markForCheck()),W.hidden&&this.resizedWhileHidden&&!this.hidden&&setTimeout(()=>{this.onResize(),this.resizedWhileHidden=!1})}onChangesUpdateSettings(W){this.settings.setOptionsFromChanges(W),this.settings.cropperStaticHeight&&this.settings.cropperStaticWidth&&this.settings.setOptions({hideResizeSquares:!0,cropperMinWidth:this.settings.cropperStaticWidth,cropperMinHeight:this.settings.cropperStaticHeight,cropperMaxHeight:this.settings.cropperStaticHeight,cropperMaxWidth:this.settings.cropperStaticWidth,maintainAspectRatio:!1})}onChangesInputImage(W){(W.imageChangedEvent||W.imageURL||W.imageBase64||W.imageFile)&&this.reset(),W.imageChangedEvent&&this.isValidImageChangedEvent()&&this.loadImageFile(this.imageChangedEvent.target.files[0]),W.imageURL&&this.imageURL&&this.loadImageFromURL(this.imageURL),W.imageBase64&&this.imageBase64&&this.loadBase64Image(this.imageBase64),W.imageFile&&this.imageFile&&this.loadImageFile(this.imageFile)}isValidImageChangedEvent(){return this.imageChangedEvent?.target?.files?.length>0}setCssTransform(){const W=this.transform?.translateUnit||"%";this.safeTransformStyle=this.sanitizer.bypassSecurityTrustStyle(`translate(${this.transform.translateH||0}${W}, ${this.transform.translateV||0}${W}) scaleX(`+(this.transform.scale||1)*(this.transform.flipH?-1:1)+") scaleY("+(this.transform.scale||1)*(this.transform.flipV?-1:1)+") rotate("+(this.transform.rotate||0)+"deg)")}ngOnInit(){this.settings.stepSize=this.initialStepSize,this.activatePinchGesture()}reset(){this.imageVisible=!1,this.loadedImage=void 0,this.safeImgDataUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",this.moveStart={active:!1,type:null,position:null,x1:0,y1:0,x2:0,y2:0,clientX:0,clientY:0},this.maxSize={width:0,height:0},this.cropper.x1=-100,this.cropper.y1=-100,this.cropper.x2=1e4,this.cropper.y2=1e4}loadImageFile(W){this.loadImageService.loadImageFile(W,this.settings).then(L=>this.setLoadedImage(L)).catch(L=>this.loadImageError(L))}loadBase64Image(W){this.loadImageService.loadBase64Image(W,this.settings).then(L=>this.setLoadedImage(L)).catch(L=>this.loadImageError(L))}loadImageFromURL(W){this.loadImageService.loadImageFromURL(W,this.settings).then(L=>this.setLoadedImage(L)).catch(L=>this.loadImageError(L))}setLoadedImage(W){this.loadedImage=W,this.safeImgDataUrl=this.sanitizer.bypassSecurityTrustResourceUrl(W.transformed.base64),this.cd.markForCheck()}loadImageError(W){console.error(W),this.loadImageFailed.emit()}imageLoadedInView(){null!=this.loadedImage&&(this.imageLoaded.emit(this.loadedImage),this.setImageMaxSizeRetries=0,setTimeout(()=>this.checkImageMaxSizeRecursively()))}checkImageMaxSizeRecursively(){this.setImageMaxSizeRetries>40?this.loadImageFailed.emit():this.sourceImageLoaded()?(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.resetCropperPosition(),this.cropperReady.emit({...this.maxSize}),this.cd.markForCheck()):(this.setImageMaxSizeRetries++,setTimeout(()=>this.checkImageMaxSizeRecursively(),50))}sourceImageLoaded(){return this.sourceImage?.nativeElement?.offsetWidth>0}onResize(){this.loadedImage&&(this.hidden?this.resizedWhileHidden=!0:(this.resizeCropperPosition(),this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize()))}activatePinchGesture(){if(this.Hammer){const W=new this.Hammer(this.wrapper.nativeElement);W.get("pinch").set({enable:!0}),W.on("pinchmove",this.onPinch.bind(this)),W.on("pinchend",this.pinchStop.bind(this)),W.on("pinchstart",this.startPinch.bind(this))}else(0,e.X6Q)()&&console.warn("[NgxImageCropper] Could not find HammerJS - Pinch Gesture won't work")}resizeCropperPosition(){const W=this.sourceImage.nativeElement;(this.maxSize.width!==W.offsetWidth||this.maxSize.height!==W.offsetHeight)&&(this.cropper.x1=this.cropper.x1*W.offsetWidth/this.maxSize.width,this.cropper.x2=this.cropper.x2*W.offsetWidth/this.maxSize.width,this.cropper.y1=this.cropper.y1*W.offsetHeight/this.maxSize.height,this.cropper.y2=this.cropper.y2*W.offsetHeight/this.maxSize.height)}resetCropperPosition(){this.cropperPositionService.resetCropperPosition(this.sourceImage,this.cropper,this.settings),this.doAutoCrop(),this.imageVisible=!0}keyboardAccess(W){this.changeKeyboardStepSize(W),this.keyboardMoveCropper(W)}changeKeyboardStepSize(W){const L=+W.key;L>=1&&L<=9&&(this.settings.stepSize=L)}keyboardMoveCropper(W){if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(W.key))return;const he=W.shiftKey?n.Resize:n.Move,_e=W.altKey?function P(ee){switch(ee){case"ArrowUp":return"bottom";case"ArrowRight":return"left";case"ArrowDown":return"top";default:return"right"}}(W.key):function i(ee){switch(ee){case"ArrowUp":return"top";case"ArrowRight":return"right";case"ArrowDown":return"bottom";default:return"left"}}(W.key),Z=function I(ee,se){switch(ee){case"ArrowUp":return{clientX:0,clientY:-1*se};case"ArrowRight":return{clientX:se,clientY:0};case"ArrowDown":return{clientX:0,clientY:se};default:return{clientX:-1*se,clientY:0}}}(W.key,this.settings.stepSize);W.preventDefault(),W.stopPropagation(),this.startMove({clientX:0,clientY:0},he,_e),this.moveImg(Z),this.moveStop()}startMove(W,L,he=null){this.disabled||this.moveStart?.active&&this.moveStart?.type===n.Pinch||L===n.Drag&&!this.allowMoveImage||(W.preventDefault&&W.preventDefault(),this.moveStart={active:!0,type:L,position:he,transform:{...this.transform},clientX:this.cropperPositionService.getClientX(W),clientY:this.cropperPositionService.getClientY(W),...this.cropper})}startPinch(W){this.safeImgDataUrl&&(W.preventDefault&&W.preventDefault(),this.moveStart={active:!0,type:n.Pinch,position:"center",clientX:this.cropper.x1+(this.cropper.x2-this.cropper.x1)/2,clientY:this.cropper.y1+(this.cropper.y2-this.cropper.y1)/2,...this.cropper})}moveImg(W){if(this.moveStart.active){if(W.stopPropagation&&W.stopPropagation(),W.preventDefault&&W.preventDefault(),this.moveStart.type===n.Move)this.cropperPositionService.move(W,this.moveStart,this.cropper),this.checkCropperPosition(!0);else if(this.moveStart.type===n.Resize)!this.cropperStaticWidth&&!this.cropperStaticHeight&&this.cropperPositionService.resize(W,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1);else if(this.moveStart.type===n.Drag){const L=this.cropperPositionService.getClientX(W)-this.moveStart.clientX,he=this.cropperPositionService.getClientY(W)-this.moveStart.clientY;this.transform={...this.transform,translateH:(this.moveStart.transform?.translateH||0)+L,translateV:(this.moveStart.transform?.translateV||0)+he},this.setCssTransform()}this.cd.detectChanges()}}onPinch(W){this.moveStart.active&&(W.stopPropagation&&W.stopPropagation(),W.preventDefault&&W.preventDefault(),this.moveStart.type===n.Pinch&&(this.cropperPositionService.resize(W,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1)),this.cd.detectChanges())}setMaxSize(){if(this.sourceImage){const W=this.sourceImage.nativeElement;this.maxSize.width=W.offsetWidth,this.maxSize.height=W.offsetHeight,this.marginLeft=this.sanitizer.bypassSecurityTrustStyle("calc(50% - "+this.maxSize.width/2+"px)")}}setCropperScaledMinSize(){this.loadedImage?.transformed?.image?(this.setCropperScaledMinWidth(),this.setCropperScaledMinHeight()):(this.settings.cropperScaledMinWidth=20,this.settings.cropperScaledMinHeight=20)}setCropperScaledMinWidth(){this.settings.cropperScaledMinWidth=this.cropperMinWidth>0?Math.max(20,this.cropperMinWidth/this.loadedImage.transformed.image.width*this.maxSize.width):20}setCropperScaledMinHeight(){this.settings.cropperScaledMinHeight=this.maintainAspectRatio?Math.max(20,this.settings.cropperScaledMinWidth/this.aspectRatio):this.cropperMinHeight>0?Math.max(20,this.cropperMinHeight/this.loadedImage.transformed.image.height*this.maxSize.height):20}setCropperScaledMaxSize(){if(this.loadedImage?.transformed?.image){const W=this.loadedImage.transformed.size.width/this.maxSize.width;this.settings.cropperScaledMaxWidth=this.cropperMaxWidth>20?this.cropperMaxWidth/W:this.maxSize.width,this.settings.cropperScaledMaxHeight=this.cropperMaxHeight>20?this.cropperMaxHeight/W:this.maxSize.height,this.maintainAspectRatio&&(this.settings.cropperScaledMaxWidth>this.settings.cropperScaledMaxHeight*this.aspectRatio?this.settings.cropperScaledMaxWidth=this.settings.cropperScaledMaxHeight*this.aspectRatio:this.settings.cropperScaledMaxWidth<this.settings.cropperScaledMaxHeight*this.aspectRatio&&(this.settings.cropperScaledMaxHeight=this.settings.cropperScaledMaxWidth/this.aspectRatio))}else this.settings.cropperScaledMaxWidth=this.maxSize.width,this.settings.cropperScaledMaxHeight=this.maxSize.height}checkCropperPosition(W=!1){this.cropper.x1<0&&(this.cropper.x2-=W?this.cropper.x1:0,this.cropper.x1=0),this.cropper.y1<0&&(this.cropper.y2-=W?this.cropper.y1:0,this.cropper.y1=0),this.cropper.x2>this.maxSize.width&&(this.cropper.x1-=W?this.cropper.x2-this.maxSize.width:0,this.cropper.x2=this.maxSize.width),this.cropper.y2>this.maxSize.height&&(this.cropper.y1-=W?this.cropper.y2-this.maxSize.height:0,this.cropper.y2=this.maxSize.height)}moveStop(){this.moveStart.active&&(this.moveStart.active=!1,this.moveStart?.type===n.Drag?this.transformChange.emit(this.transform):this.doAutoCrop())}pinchStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}doAutoCrop(){this.autoCrop&&this.crop()}crop(){if(null!=this.loadedImage?.transformed?.image){this.startCropImage.emit();const W=this.cropService.crop(this.sourceImage,this.loadedImage,this.cropper,this.settings);return null!=W&&this.imageCropped.emit(W),W}return null}aspectRatioIsCorrect(){return(this.cropper.x2-this.cropper.x1)/(this.cropper.y2-this.cropper.y1)===this.aspectRatio}}return ee.\u0275fac=function(W){return new(W||ee)(e.Y36(M),e.Y36(T),e.Y36(Ee),e.Y36(d.H7),e.Y36(e.sBO))},ee.\u0275cmp=e.Xpm({type:ee,selectors:[["image-cropper"]],viewQuery:function(W,L){if(1&W&&(e.Gf(r,7),e.Gf(c,5)),2&W){let he;e.iGM(he=e.CRH())&&(L.wrapper=he.first),e.iGM(he=e.CRH())&&(L.sourceImage=he.first)}},hostVars:6,hostBindings:function(W,L){1&W&&e.NdJ("resize",function(){return L.onResize()},!1,e.Jf7)("mousemove",function(_e){return L.moveImg(_e)},!1,e.evT)("touchmove",function(_e){return L.moveImg(_e)},!1,e.evT)("mouseup",function(){return L.moveStop()},!1,e.evT)("touchend",function(){return L.moveStop()},!1,e.evT),2&W&&(e.Udp("text-align",L.alignImage),e.ekj("disabled",L.disabled)("ngx-ix-hidden",L.hidden))},inputs:{imageChangedEvent:"imageChangedEvent",imageURL:"imageURL",imageBase64:"imageBase64",imageFile:"imageFile",imageAltText:"imageAltText",format:"format",transform:"transform",maintainAspectRatio:"maintainAspectRatio",aspectRatio:"aspectRatio",resetCropOnAspectRatioChange:"resetCropOnAspectRatioChange",resizeToWidth:"resizeToWidth",resizeToHeight:"resizeToHeight",cropperMinWidth:"cropperMinWidth",cropperMinHeight:"cropperMinHeight",cropperMaxHeight:"cropperMaxHeight",cropperMaxWidth:"cropperMaxWidth",cropperStaticWidth:"cropperStaticWidth",cropperStaticHeight:"cropperStaticHeight",canvasRotation:"canvasRotation",initialStepSize:"initialStepSize",roundCropper:"roundCropper",onlyScaleDown:"onlyScaleDown",imageQuality:"imageQuality",autoCrop:"autoCrop",backgroundColor:"backgroundColor",containWithinAspectRatio:"containWithinAspectRatio",hideResizeSquares:"hideResizeSquares",allowMoveImage:"allowMoveImage",cropper:"cropper",alignImage:"alignImage",disabled:"disabled",hidden:"hidden"},outputs:{imageCropped:"imageCropped",startCropImage:"startCropImage",imageLoaded:"imageLoaded",cropperReady:"cropperReady",loadImageFailed:"loadImageFailed",transformChange:"transformChange"},features:[e.TTD],decls:5,vars:10,consts:[["wrapper",""],["class","ngx-ic-source-image",3,"src","visibility","transform","ngx-ic-draggable","load","mousedown","touchstart","error",4,"ngIf"],[1,"ngx-ic-overlay"],["class","ngx-ic-cropper","tabindex","0",3,"ngx-ic-round","top","left","width","height","margin-left","visibility","keydown",4,"ngIf"],[1,"ngx-ic-source-image",3,"src","load","mousedown","touchstart","error"],["sourceImage",""],["tabindex","0",1,"ngx-ic-cropper",3,"keydown"],[1,"ngx-ic-move",3,"mousedown","touchstart"],[4,"ngIf"],[1,"ngx-ic-resize","ngx-ic-topleft",3,"mousedown","touchstart"],[1,"ngx-ic-square"],[1,"ngx-ic-resize","ngx-ic-top"],[1,"ngx-ic-resize","ngx-ic-topright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-right"],[1,"ngx-ic-resize","ngx-ic-bottomright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-bottom"],[1,"ngx-ic-resize","ngx-ic-bottomleft",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-left"],[1,"ngx-ic-resize-bar","ngx-ic-top",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-right",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-bottom",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-left",3,"mousedown","touchstart"]],template:function(W,L){1&W&&(e.TgZ(0,"div",null,0),e.YNc(2,E,2,8,"img",1),e._UZ(3,"div",2),e.YNc(4,v,3,15,"div",3),e.qZA()),2&W&&(e.Udp("background",L.imageVisible&&L.backgroundColor),e.xp6(2),e.Q6J("ngIf",L.safeImgDataUrl),e.xp6(1),e.Udp("width",L.maxSize.width,"px")("height",L.maxSize.height,"px")("margin-left","center"===L.alignImage?L.marginLeft:null),e.xp6(1),e.Q6J("ngIf",L.imageVisible))},dependencies:[l.O5],styles:['[_nghost-%COMP%]{display:flex;position:relative;width:100%;max-width:100%;max-height:100%;overflow:hidden;padding:5px;text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:100%;position:relative}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   img.ngx-ic-source-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%;transform-origin:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   img.ngx-ic-source-image.ngx-ic-draggable[_ngcontent-%COMP%]{user-drag:none;-webkit-user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;cursor:grab}[_nghost-%COMP%]   .ngx-ic-overlay[_ngcontent-%COMP%]{position:absolute;pointer-events:none;touch-action:none;outline:var(--cropper-overlay-color, white) solid 100vw;top:0;left:0}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]{position:absolute;display:flex;color:#53535c;background:transparent;outline:rgba(255,255,255,.3) solid 100vw;outline:var(--cropper-outline-color, rgba(255, 255, 255, .3)) solid 100vw;touch-action:none}@media (orientation: portrait){[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]{outline-width:100vh}}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]:after{position:absolute;content:"";inset:0;pointer-events:none;border:dashed 1px;opacity:.75;color:inherit;z-index:1}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-move[_ngcontent-%COMP%]{width:100%;cursor:move;border:1px solid rgba(255,255,255,.5)}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]:focus   .ngx-ic-move[_ngcontent-%COMP%]{border-color:#1e90ff;border-width:2px}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize[_ngcontent-%COMP%]{position:absolute;display:inline-block;line-height:6px;padding:8px;opacity:.85;z-index:1}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize[_ngcontent-%COMP%]   .ngx-ic-square[_ngcontent-%COMP%]{display:inline-block;background:#53535C;width:6px;height:6px;border:1px solid rgba(255,255,255,.5);box-sizing:content-box}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-topleft[_ngcontent-%COMP%]{top:-12px;left:-12px;cursor:nwse-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-top[_ngcontent-%COMP%]{top:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-topright[_ngcontent-%COMP%]{top:-12px;right:-12px;cursor:nesw-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-right[_ngcontent-%COMP%]{top:calc(50% - 12px);right:-12px;cursor:ew-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-bottomright[_ngcontent-%COMP%]{bottom:-12px;right:-12px;cursor:nwse-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-bottomleft[_ngcontent-%COMP%]{bottom:-12px;left:-12px;cursor:nesw-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-left[_ngcontent-%COMP%]{top:calc(50% - 12px);left:-12px;cursor:ew-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize-bar[_ngcontent-%COMP%]{position:absolute;z-index:1}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize-bar.ngx-ic-top[_ngcontent-%COMP%]{top:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize-bar.ngx-ic-right[_ngcontent-%COMP%]{top:11px;right:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize-bar.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize-bar.ngx-ic-left[_ngcontent-%COMP%]{top:11px;left:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%]   .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]{outline-color:transparent}[_nghost-%COMP%]   .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{border-radius:100%;box-shadow:0 0 0 100vw #ffffff4d;box-shadow:0 0 0 100vw var(--cropper-outline-color, rgba(255, 255, 255, .3))}@media (orientation: portrait){[_nghost-%COMP%]   .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{box-shadow:0 0 0 100vh #ffffff4d;box-shadow:0 0 0 100vh var(--cropper-outline-color, rgba(255, 255, 255, .3))}}[_nghost-%COMP%]   .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]   .ngx-ic-move[_ngcontent-%COMP%]{border-radius:100%}.disabled[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize[_ngcontent-%COMP%], .disabled[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize-bar[_ngcontent-%COMP%], .disabled[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-move[_ngcontent-%COMP%]{display:none}.ngx-ix-hidden[_nghost-%COMP%]{display:none}'],changeDetection:0}),ee})(),ge=(()=>{class ee{}return ee.\u0275fac=function(W){return new(W||ee)},ee.\u0275mod=e.oAB({type:ee}),ee.\u0275inj=e.cJS({imports:[[l.ez]]}),ee})();function ue(ee){const se=ee.split(","),W=se[0].replace("data:","").replace(";base64",""),L=atob(se[1]),he=new ArrayBuffer(L.length),_e=new Uint8Array(he);for(let Z=0;Z<L.length;Z+=1)_e[Z]=L.charCodeAt(Z);return new Blob([he],{type:W})}},38545:(St,be,s)=>{"use strict";s.d(be,{g6:()=>he,fi:()=>Te,H:()=>Z});var t=s(48046),e=s(73991);const d={toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},l=new e.OlP("config",{providedIn:"root",factory:()=>({modules:d})});var E=s(17774),m=s(24510),v=s(92588),C=s(45929),n=s(88167),i=s(5324);function P(w,k){const x="object"==typeof k;return new Promise((z,j)=>{const Ne=new i.Hp({next:tt=>{z(tt),Ne.unsubscribe()},error:j,complete:()=>{x?z(k.defaultValue):j(new n.K)}});w.subscribe(Ne)})}var I=s(22292),q=s(74845),D=s(43113),M=s(86443),T=s(59435),F=s(15645);function le(w,k){1&w&&e._UZ(0,"pre",3)}function V(w,k){if(1&w&&e.YNc(0,le,1,0,"pre",2),2&w){const x=e.oxw(),z=e.MAs(4);e.Q6J("ngIf",x.preserve)("ngIfElse",z)}}function de(w,k){1&w&&e._UZ(0,"pre",3)}function ye(w,k){if(1&w&&e.YNc(0,de,1,0,"pre",2),2&w){const x=e.oxw(),z=e.MAs(4);e.Q6J("ngIf",x.preserve)("ngIfElse",z)}}function Ee(w,k){1&w&&e._UZ(0,"div",3)}const Le=[[["","quill-editor-toolbar",""]]],ge=["[quill-editor-toolbar]"];function ue(w,k){1&w&&e._UZ(0,"div",1)}function ee(w,k){1&w&&e._UZ(0,"pre",1)}const se=(w,k)=>w||k||"html";let W=(()=>{class w{constructor(x,z){var j=this;this.config=z,this.quill$=(0,v.P)((0,t.Z)(function*(){if(!j.Quill){const Ne=j.document.addEventListener;j.document.addEventListener=j.document.__zone_symbol__addEventListener||j.document.addEventListener;const tt=yield s.e(125).then(s.t.bind(s,63635,19));j.document.addEventListener=Ne,j.Quill=tt.default?tt.default:tt}return j.config.customOptions?.forEach(Ne=>{const tt=j.Quill.import(Ne.import);tt.whitelist=Ne.whitelist,j.Quill.register(tt,!0,j.config.suppressGlobalRegisterWarning)}),yield j.registerCustomModules(j.Quill,j.config.customModules,j.config.suppressGlobalRegisterWarning)})).pipe((0,D.d)({bufferSize:1,refCount:!0})),this.document=x.get(E.K0),this.config||(this.config={modules:d})}getQuill(){return this.quill$}registerCustomModules(x,z,j){return(0,t.Z)(function*(){if(Array.isArray(z))for(let{implementation:Ne,path:tt}of z)(0,C.b)(Ne)&&(Ne=yield P(Ne)),x.register(tt,Ne,j);return x})()}}return w.\u0275fac=function(x){return new(x||w)(e.LFG(e.zs3),e.LFG(l,8))},w.\u0275prov=e.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w})(),L=(()=>{class w{constructor(){this.required=!1,this.customToolbarPosition="top",this.styles=null,this.strict=!0,this.customOptions=[],this.customModules=[],this.preserveWhitespace=!1,this.trimOnValidation=!1,this.compareValues=!1,this.filterNull=!1,this.defaultEmptyValue=null,this.onEditorCreated=new e.vpe,this.onEditorChanged=new e.vpe,this.onContentChanged=new e.vpe,this.onSelectionChanged=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.disabled=!1,this.preserve=!1,this.toolbarPosition="top",this.subscription=null,this.quillSubscription=null,this.elementRef=(0,e.f3M)(e.SBq),this.document=(0,e.f3M)(E.K0),this.cd=(0,e.f3M)(e.sBO),this.domSanitizer=(0,e.f3M)(m.H7),this.platformId=(0,e.f3M)(e.Lbi),this.renderer=(0,e.f3M)(e.Qsj),this.zone=(0,e.f3M)(e.R0b),this.service=(0,e.f3M)(W),this.valueGetter=(x,z)=>{let j=z.querySelector(".ql-editor").innerHTML;("<p><br></p>"===j||"<div><br></div>"===j)&&(j=this.defaultEmptyValue);let Ne=j;const tt=se(this.format,this.service.config.format);if("text"===tt)Ne=x.getText();else if("object"===tt)Ne=x.getContents();else if("json"===tt)try{Ne=JSON.stringify(x.getContents())}catch{Ne=x.getText()}return Ne},this.valueSetter=(x,z)=>{const j=se(this.format,this.service.config.format);if("html"===j)return([!0,!1].includes(this.sanitize)?this.sanitize:this.service.config.sanitize||!1)&&(z=this.domSanitizer.sanitize(e.q3G.HTML,z)),x.clipboard.convert(z);if("json"===j)try{return JSON.parse(z)}catch{return[{insert:z}]}return z},this.selectionChangeHandler=(x,z,j)=>{const Ne=!x&&!!this.onModelTouched;!this.onBlur.observed&&!this.onFocus.observed&&!this.onSelectionChanged.observed&&!Ne||this.zone.run(()=>{null===x?this.onBlur.emit({editor:this.quillEditor,source:j}):null===z&&this.onFocus.emit({editor:this.quillEditor,source:j}),this.onSelectionChanged.emit({editor:this.quillEditor,oldRange:z,range:x,source:j}),Ne&&this.onModelTouched(),this.cd.markForCheck()})},this.textChangeHandler=(x,z,j)=>{const Ne=this.quillEditor.getText(),tt=this.quillEditor.getContents();let We=this.editorElem.querySelector(".ql-editor").innerHTML;("<p><br></p>"===We||"<div><br></div>"===We)&&(We=this.defaultEmptyValue);const ze=this.trackChanges||this.service.config.trackChanges,we=("user"===j||ze&&"all"===ze)&&!!this.onModelChange;!this.onContentChanged.observed&&!we||this.zone.run(()=>{we&&this.onModelChange(this.valueGetter(this.quillEditor,this.editorElem)),this.onContentChanged.emit({content:tt,delta:x,editor:this.quillEditor,html:We,oldDelta:z,source:j,text:Ne}),this.cd.markForCheck()})},this.editorChangeHandler=(x,z,j,Ne)=>{if(this.onEditorChanged.observed)if("text-change"===x){const tt=this.quillEditor.getText(),We=this.quillEditor.getContents();let ze=this.editorElem.querySelector(".ql-editor").innerHTML;("<p><br></p>"===ze||"<div><br></div>"===ze)&&(ze=this.defaultEmptyValue),this.zone.run(()=>{this.onEditorChanged.emit({content:We,delta:z,editor:this.quillEditor,event:x,html:ze,oldDelta:j,source:Ne,text:tt}),this.cd.markForCheck()})}else this.zone.run(()=>{this.onEditorChanged.emit({editor:this.quillEditor,event:x,oldRange:j,range:z,source:Ne}),this.cd.markForCheck()})}}static normalizeClassNames(x){return x.trim().split(" ").reduce((j,Ne)=>{const tt=Ne.trim();return tt&&j.push(tt),j},[])}ngOnInit(){this.preserve=this.preserveWhitespace,this.toolbarPosition=this.customToolbarPosition}ngAfterViewInit(){(0,E.PM)(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe((0,M.z)(x=>{const z=[this.service.registerCustomModules(x,this.customModules)],j=this.beforeRender??this.service.config.beforeRender;return j&&z.push(j()),Promise.all(z).then(()=>x)})).subscribe(x=>{this.editorElem=this.elementRef.nativeElement.querySelector("[quill-editor-element]");const z=this.elementRef.nativeElement.querySelector("[quill-editor-toolbar]"),j=Object.assign({},this.modules||this.service.config.modules);z?j.toolbar=z:void 0===j.toolbar&&(j.toolbar=d.toolbar);let Ne=void 0!==this.placeholder?this.placeholder:this.service.config.placeholder;void 0===Ne&&(Ne="Insert text here ..."),this.styles&&Object.keys(this.styles).forEach(Se=>{this.renderer.setStyle(this.editorElem,Se,this.styles[Se])}),this.classes&&this.addClasses(this.classes),this.customOptions.forEach(Se=>{const ke=x.import(Se.import);ke.whitelist=Se.whitelist,x.register(ke,!0)});let tt=this.bounds&&"self"===this.bounds?this.editorElem:this.bounds;tt||(tt=this.service.config.bounds?this.service.config.bounds:this.document.body);let We=this.debug;!We&&!1!==We&&this.service.config.debug&&(We=this.service.config.debug);let ze=this.readOnly;!ze&&!1!==this.readOnly&&(ze=void 0!==this.service.config.readOnly&&this.service.config.readOnly);let we=this.defaultEmptyValue;this.service.config.hasOwnProperty("defaultEmptyValue")&&(we=this.service.config.defaultEmptyValue);let Ye=this.scrollingContainer;!Ye&&null!==this.scrollingContainer&&(Ye=null===this.service.config.scrollingContainer||this.service.config.scrollingContainer?this.service.config.scrollingContainer:null);let te=this.formats;if(!te&&void 0===te&&(te=this.service.config.formats?[...this.service.config.formats]:null===this.service.config.formats?null:void 0),this.zone.runOutsideAngular(()=>{if(this.quillEditor=new x(this.editorElem,{bounds:tt,debug:We,formats:te,modules:j,placeholder:Ne,readOnly:ze,defaultEmptyValue:we,scrollingContainer:Ye,strict:this.strict,theme:this.theme||(this.service.config.theme?this.service.config.theme:"snow")}),this.linkPlaceholder){const ke=this.quillEditor?.theme?.tooltip?.root?.querySelector("input[data-link]");ke?.dataset&&(ke.dataset.link=this.linkPlaceholder)}}),this.content){if("text"===se(this.format,this.service.config.format))this.quillEditor.setText(this.content,"silent");else{const ke=this.valueSetter(this.quillEditor,this.content);this.quillEditor.setContents(ke,"silent")}this.quillEditor.getModule("history").clear()}this.setDisabledState(),this.addQuillEventListeners(),(this.onEditorCreated.observed||this.onValidatorChanged)&&requestAnimationFrame(()=>{this.onValidatorChanged&&this.onValidatorChanged(),this.onEditorCreated.emit(this.quillEditor),this.onEditorCreated.complete()})}))}ngOnDestroy(){this.dispose(),this.quillSubscription?.unsubscribe(),this.quillSubscription=null}ngOnChanges(x){if(this.quillEditor){if(x.readOnly&&this.quillEditor.enable(!x.readOnly.currentValue),x.placeholder&&(this.quillEditor.root.dataset.placeholder=x.placeholder.currentValue),x.defaultEmptyValue&&(this.quillEditor.root.dataset.defaultEmptyValue=x.defaultEmptyValue.currentValue),x.styles){const z=x.styles.currentValue,j=x.styles.previousValue;j&&Object.keys(j).forEach(Ne=>{this.renderer.removeStyle(this.editorElem,Ne)}),z&&Object.keys(z).forEach(Ne=>{this.renderer.setStyle(this.editorElem,Ne,this.styles[Ne])})}if(x.classes){const z=x.classes.currentValue,j=x.classes.previousValue;j&&this.removeClasses(j),z&&this.addClasses(z)}x.debounceTime&&this.addQuillEventListeners()}}addClasses(x){w.normalizeClassNames(x).forEach(z=>{this.renderer.addClass(this.editorElem,z)})}removeClasses(x){w.normalizeClassNames(x).forEach(z=>{this.renderer.removeClass(this.editorElem,z)})}writeValue(x){if(this.filterNull&&null===x||(this.content=x,!this.quillEditor))return;const z=se(this.format,this.service.config.format),j=this.valueSetter(this.quillEditor,x);if(this.compareValues){const Ne=this.quillEditor.getContents();if(JSON.stringify(Ne)===JSON.stringify(j))return}x?"text"===z?this.quillEditor.setText(x):this.quillEditor.setContents(j):this.quillEditor.setText("")}setDisabledState(x=this.disabled){this.disabled=x,this.quillEditor&&(x?(this.quillEditor.disable(),this.renderer.setAttribute(this.elementRef.nativeElement,"disabled","disabled")):(this.readOnly||this.quillEditor.enable(),this.renderer.removeAttribute(this.elementRef.nativeElement,"disabled")))}registerOnChange(x){this.onModelChange=x}registerOnTouched(x){this.onModelTouched=x}registerOnValidatorChange(x){this.onValidatorChanged=x}validate(){if(!this.quillEditor)return null;const x={};let z=!0;const j=this.quillEditor.getText(),Ne=this.trimOnValidation?j.trim().length:1===j.length&&0===j.trim().length?0:j.length-1,tt=this.quillEditor.getContents().ops,We=tt&&1===tt.length&&["\n",""].includes(tt[0].insert);return this.minLength&&Ne&&Ne<this.minLength&&(x.minLengthError={given:Ne,minLength:this.minLength},z=!1),this.maxLength&&Ne>this.maxLength&&(x.maxLengthError={given:Ne,maxLength:this.maxLength},z=!1),this.required&&!Ne&&We&&(x.requiredError={empty:!0},z=!1),z?null:x}addQuillEventListeners(){this.dispose(),this.zone.runOutsideAngular(()=>{this.subscription=new I.w0,this.subscription.add((0,q.R)(this.quillEditor,"selection-change").subscribe(([j,Ne,tt])=>{this.selectionChangeHandler(j,Ne,tt)}));let x=(0,q.R)(this.quillEditor,"text-change"),z=(0,q.R)(this.quillEditor,"editor-change");"number"==typeof this.debounceTime&&(x=x.pipe((0,T.b)(this.debounceTime)),z=z.pipe((0,T.b)(this.debounceTime))),this.subscription.add(x.subscribe(([j,Ne,tt])=>{this.textChangeHandler(j,Ne,tt)})),this.subscription.add(z.subscribe(([j,Ne,tt,We])=>{this.editorChangeHandler(j,Ne,tt,We)}))})}dispose(){null!==this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}}return w.\u0275fac=function(x){return new(x||w)},w.\u0275dir=e.lG2({type:w,inputs:{format:"format",theme:"theme",modules:"modules",debug:"debug",readOnly:"readOnly",placeholder:"placeholder",maxLength:"maxLength",minLength:"minLength",required:"required",formats:"formats",customToolbarPosition:"customToolbarPosition",sanitize:"sanitize",beforeRender:"beforeRender",styles:"styles",strict:"strict",scrollingContainer:"scrollingContainer",bounds:"bounds",customOptions:"customOptions",customModules:"customModules",trackChanges:"trackChanges",preserveWhitespace:"preserveWhitespace",classes:"classes",trimOnValidation:"trimOnValidation",linkPlaceholder:"linkPlaceholder",compareValues:"compareValues",filterNull:"filterNull",debounceTime:"debounceTime",defaultEmptyValue:"defaultEmptyValue",valueGetter:"valueGetter",valueSetter:"valueSetter"},outputs:{onEditorCreated:"onEditorCreated",onEditorChanged:"onEditorChanged",onContentChanged:"onContentChanged",onSelectionChanged:"onSelectionChanged",onFocus:"onFocus",onBlur:"onBlur"},features:[e.TTD]}),w})(),he=(()=>{class w extends L{}return w.\u0275fac=function(){let k;return function(z){return(k||(k=e.n5z(w)))(z||w)}}(),w.\u0275cmp=e.Xpm({type:w,selectors:[["quill-editor"]],standalone:!0,features:[e._Bn([{multi:!0,provide:F.JU,useExisting:(0,e.Gpc)(()=>w)},{multi:!0,provide:F.Cf,useExisting:(0,e.Gpc)(()=>w)}]),e.qOj,e.jDz],ngContentSelectors:ge,decls:5,vars:2,consts:[[3,"ngIf"],["noPreserveTpl",""],["quill-editor-element","",4,"ngIf","ngIfElse"],["quill-editor-element",""]],template:function(x,z){1&x&&(e.F$t(Le),e.YNc(0,V,1,2,"ng-template",0),e.Hsn(1),e.YNc(2,ye,1,2,"ng-template",0),e.YNc(3,Ee,1,0,"ng-template",null,1,e.W1O)),2&x&&(e.Q6J("ngIf","top"!==z.toolbarPosition),e.xp6(2),e.Q6J("ngIf","top"===z.toolbarPosition))},dependencies:[E.ez,E.O5],styles:["[_nghost-%COMP%]{display:inline-block}"]}),w})(),_e=(()=>{class w{constructor(x,z){this.sanitizer=x,this.service=z,this.content="",this.innerHTML="",this.themeClass="ql-snow"}ngOnChanges(x){if(x.theme?this.themeClass=`ql-${x.theme.currentValue||(this.service.config.theme?this.service.config.theme:"snow")} ngx-quill-view-html`:this.theme||(this.themeClass=`ql-${this.service.config.theme?this.service.config.theme:"snow"} ngx-quill-view-html`),x.content){const z=x.content.currentValue,j=[!0,!1].includes(this.sanitize)?this.sanitize:this.service.config.sanitize||!1;this.innerHTML=j?z:this.sanitizer.bypassSecurityTrustHtml(z)}}}return w.\u0275fac=function(x){return new(x||w)(e.Y36(m.H7),e.Y36(W))},w.\u0275cmp=e.Xpm({type:w,selectors:[["quill-view-html"]],inputs:{content:"content",theme:"theme",sanitize:"sanitize"},standalone:!0,features:[e.TTD,e.jDz],decls:2,vars:2,consts:[[1,"ql-container",3,"ngClass"],[1,"ql-editor",3,"innerHTML"]],template:function(x,z){1&x&&(e.TgZ(0,"div",0),e._UZ(1,"div",1),e.qZA()),2&x&&(e.Q6J("ngClass",z.themeClass),e.xp6(1),e.Q6J("innerHTML",z.innerHTML,e.oJD))},dependencies:[E.ez,E.mk],styles:[".ql-container.ngx-quill-view-html{border:0}\n"],encapsulation:2}),w})(),Z=(()=>{class w{constructor(x,z,j,Ne,tt,We){this.elementRef=x,this.renderer=z,this.zone=j,this.service=Ne,this.domSanitizer=tt,this.platformId=We,this.strict=!0,this.customModules=[],this.customOptions=[],this.preserveWhitespace=!1,this.onEditorCreated=new e.vpe,this.preserve=!1,this.quillSubscription=null,this.valueSetter=(ze,we)=>{const Ye=se(this.format,this.service.config.format);let te=we;if("text"===Ye)ze.setText(te);else{if("html"===Ye)([!0,!1].includes(this.sanitize)?this.sanitize:this.service.config.sanitize||!1)&&(we=this.domSanitizer.sanitize(e.q3G.HTML,we)),te=ze.clipboard.convert(we);else if("json"===Ye)try{te=JSON.parse(we)}catch{te=[{insert:we}]}ze.setContents(te)}}}ngOnInit(){this.preserve=this.preserveWhitespace}ngOnChanges(x){this.quillEditor&&x.content&&this.valueSetter(this.quillEditor,x.content.currentValue)}ngAfterViewInit(){(0,E.PM)(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe((0,M.z)(x=>{const z=[this.service.registerCustomModules(x,this.customModules)],j=this.beforeRender??this.service.config.beforeRender;return j&&z.push(j()),Promise.all(z).then(()=>x)})).subscribe(x=>{const z=Object.assign({},this.modules||this.service.config.modules);z.toolbar=!1,this.customOptions.forEach(We=>{const ze=x.import(We.import);ze.whitelist=We.whitelist,x.register(ze,!0)});let j=this.debug;!j&&!1!==j&&this.service.config.debug&&(j=this.service.config.debug);let Ne=this.formats;!Ne&&void 0===Ne&&(Ne=this.service.config.formats?Object.assign({},this.service.config.formats):null===this.service.config.formats?null:void 0);const tt=this.theme||(this.service.config.theme?this.service.config.theme:"snow");this.editorElem=this.elementRef.nativeElement.querySelector("[quill-view-element]"),this.zone.runOutsideAngular(()=>{this.quillEditor=new x(this.editorElem,{debug:j,formats:Ne,modules:z,readOnly:!0,strict:this.strict,theme:tt})}),this.renderer.addClass(this.editorElem,"ngx-quill-view"),this.content&&this.valueSetter(this.quillEditor,this.content),this.onEditorCreated.observers.length&&requestAnimationFrame(()=>{this.onEditorCreated.emit(this.quillEditor),this.onEditorCreated.complete()})}))}ngOnDestroy(){this.quillSubscription?.unsubscribe(),this.quillSubscription=null}}return w.\u0275fac=function(x){return new(x||w)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(W),e.Y36(m.H7),e.Y36(e.Lbi))},w.\u0275cmp=e.Xpm({type:w,selectors:[["quill-view"]],inputs:{format:"format",theme:"theme",modules:"modules",debug:"debug",formats:"formats",sanitize:"sanitize",beforeRender:"beforeRender",strict:"strict",content:"content",customModules:"customModules",customOptions:"customOptions",preserveWhitespace:"preserveWhitespace"},outputs:{onEditorCreated:"onEditorCreated"},standalone:!0,features:[e.TTD,e.jDz],decls:2,vars:2,consts:[["quill-view-element","",4,"ngIf"],["quill-view-element",""]],template:function(x,z){1&x&&(e.YNc(0,ue,1,0,"div",0),e.YNc(1,ee,1,0,"pre",0)),2&x&&(e.Q6J("ngIf",!z.preserve),e.xp6(1),e.Q6J("ngIf",z.preserve))},dependencies:[E.ez,E.O5],styles:[".ql-container.ngx-quill-view{border:0}\n"],encapsulation:2}),w})(),Te=(()=>{class w{static forRoot(x){return{ngModule:w,providers:[{provide:l,useValue:x}]}}}return w.\u0275fac=function(x){return new(x||w)},w.\u0275mod=e.oAB({type:w}),w.\u0275inj=e.cJS({imports:[he,Z,_e]}),w})()},48046:(St,be,s)=>{"use strict";function t(d,l,r,c,E,m,v){try{var C=d[m](v),n=C.value}catch(i){return void r(i)}C.done?l(n):Promise.resolve(n).then(c,E)}function e(d){return function(){var l=this,r=arguments;return new Promise(function(c,E){var m=d.apply(l,r);function v(n){t(m,c,E,v,C,"next",n)}function C(n){t(m,c,E,v,C,"throw",n)}v(void 0)})}}s.d(be,{Z:()=>e})}},St=>{St(St.s=8380)}]);
//# sourceMappingURL=main.d4d7a3791a155708.js.map