var rpi=rpi||{};
rpi.Time={getTime:function(a,d,g){return"chat"==g?this.getChatTime(a,d||"en"):g?this.getFormatTime(a,g,d||"en"):this.getDefaultTime(a,d||"en")},getChatTime:function(a,d){var g=((new Date).getTime()-a)/1E3/60/60,m=g/24;return 24>g?this.getFormatTime(a,"HH:mm",d):365>m?this.getFormatTime(a,"dd.MM HH:mm",d):this.getFormatTime(a,"yyyy.MM.dd HH:mm",d)},getDefaultTime:function(a,d){return this.getTimeAgo(a,d)},getTimeAgo:function(a,d){a=((new Date).getTime()-a)/1E3;var g=a/60,m=g/60,f=m/24,n=f/365;d=rpi.Time.Messages[d]?
d:"en";return 45>a?rpi.Time.Messages[d].second:90>a?rpi.Time.Messages[d].minute:45>g?rpi.Time.Messages[d].minutes(g):90>g?rpi.Time.Messages[d].hour:24>m?rpi.Time.Messages[d].hours(m):48>m?rpi.Time.Messages[d].day:30>f?rpi.Time.Messages[d].days(f):60>f?rpi.Time.Messages[d].month:365>f?rpi.Time.Messages[d].months(f):2>n?rpi.Time.Messages[d].year:rpi.Time.Messages[d].years(n)},getTime12:function(a,d){a=new Date(a);return(a.getHours()%12?a.getHours()%12:12)+":"+a.getMinutes()+(12<=a.getHours()?" PM":
" AM")},getFormatTime:function(a,d,g){var m=new Date(a),f={SS:m.getMilliseconds(),ss:m.getSeconds(),mm:m.getMinutes(),HH:m.getHours(),hh:(m.getHours()%12?m.getHours()%12:12)+(12<=m.getHours()?"PM":"AM"),dd:m.getDate(),MM:m.getMonth()+1,yyyy:m.getFullYear(),yy:String(m.getFullYear()).toString().substr(2,2),ago:this.getTimeAgo(a,g),12:this.getTime12(a,g)};return d.replace(/(SS|ss|mm|HH|hh|DD|dd|MM|yyyy|yy|ago|12)/g,function(n,k){n=f[k];return 10>n?"0"+n:n})},declineNum:function(a,d,g,m){return a+" "+
this.declineMsg(a,d,g,m)},declineMsg:function(a,d,g,m,f){var n=a%10;return 1==n&&(1==a||20<a)?d:1<n&&5>n&&(20<a||10>a)?g:a?m:f}};
rpi.Time.Messages={ru:{second:"\u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e",minute:"\u043c\u0438\u043d\u0443\u0442\u0443 \u043d\u0430\u0437\u0430\u0434",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"\u043c\u0438\u043d\u0443\u0442\u0430 \u043d\u0430\u0437\u0430\u0434","\u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430\u0437\u0430\u0434","\u043c\u0438\u043d\u0443\u0442 \u043d\u0430\u0437\u0430\u0434")},hour:"\u0447\u0430\u0441 \u043d\u0430\u0437\u0430\u0434",hours:function(a){return rpi.Time.declineNum(Math.round(a),
"\u0447\u0430\u0441 \u043d\u0430\u0437\u0430\u0434","\u0447\u0430\u0441\u0430 \u043d\u0430\u0437\u0430\u0434","\u0447\u0430\u0441\u043e\u0432 \u043d\u0430\u0437\u0430\u0434")},day:"\u0434\u0435\u043d\u044c \u043d\u0430\u0437\u0430\u0434",days:function(a){return rpi.Time.declineNum(Math.round(a),"\u0434\u0435\u043d\u044c \u043d\u0430\u0437\u0430\u0434","\u0434\u043d\u044f \u043d\u0430\u0437\u0430\u0434","\u0434\u043d\u0435\u0439 \u043d\u0430\u0437\u0430\u0434")},month:"\u043c\u0435\u0441\u044f\u0446 \u043d\u0430\u0437\u0430\u0434",
months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"\u043c\u0435\u0441\u044f\u0446 \u043d\u0430\u0437\u0430\u0434","\u043c\u0435\u0441\u044f\u0446\u0430 \u043d\u0430\u0437\u0430\u0434","\u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u043d\u0430\u0437\u0430\u0434")},year:"\u0433\u043e\u0434 \u043d\u0430\u0437\u0430\u0434",years:function(a){return rpi.Time.declineNum(Math.round(a),"\u0433\u043e\u0434 \u043d\u0430\u0437\u0430\u0434","\u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434",
"\u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434")}},en:{second:"just now",minute:"1m ago",minutes:function(a){return Math.round(a)+"m ago"},hour:"1h ago",hours:function(a){return Math.round(a)+"h ago"},day:"a day ago",days:function(a){return Math.round(a)+" days ago"},month:"a month ago",months:function(a){return Math.floor(a/30)+" months ago"},year:"a year ago",years:function(a){return Math.round(a)+" years ago"}},uk:{second:"\u0442\u0456\u043b\u044c\u043a\u0438 \u0449\u043e",minute:"\u0445\u0432\u0438\u043b\u0438\u043d\u0443 \u0442\u043e\u043c\u0443",
minutes:function(a){return rpi.Time.declineNum(Math.round(a),"\u0445\u0432\u0438\u043b\u0438\u043d\u0443 \u0442\u043e\u043c\u0443","\u0445\u0432\u0438\u043b\u0438\u043d\u0438 \u0442\u043e\u043c\u0443","\u0445\u0432\u0438\u043b\u0438\u043d \u0442\u043e\u043c\u0443")},hour:"\u0433\u043e\u0434\u0438\u043d\u0443 \u0442\u043e\u043c\u0443",hours:function(a){return rpi.Time.declineNum(Math.round(a),"\u0433\u043e\u0434\u0438\u043d\u0443 \u0442\u043e\u043c\u0443","\u0433\u043e\u0434\u0438\u043d\u0438 \u0442\u043e\u043c\u0443",
"\u0433\u043e\u0434\u0438\u043d \u0442\u043e\u043c\u0443")},day:"\u0434\u0435\u043d\u044c \u0442\u043e\u043c\u0443",days:function(a){return rpi.Time.declineNum(Math.round(a),"\u0434\u0435\u043d\u044c \u0442\u043e\u043c\u0443","\u0434\u043d\u0456 \u0442\u043e\u043c\u0443","\u0434\u043d\u0456\u0432 \u0442\u043e\u043c\u0443")},month:"\u043c\u0456\u0441\u044f\u0446\u044c \u0442\u043e\u043c\u0443",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"\u043c\u0456\u0441\u044f\u0446\u044c \u0442\u043e\u043c\u0443",
"\u043c\u0456\u0441\u044f\u0446\u0456 \u0442\u043e\u043c\u0443","\u043c\u0456\u0441\u044f\u0446\u0456\u0432 \u0442\u043e\u043c\u0443")},year:"\u0440\u0456\u043a \u0442\u043e\u043c\u0443",years:function(a){return rpi.Time.declineNum(Math.round(a),"\u0440\u0456\u043a \u0442\u043e\u043c\u0443","\u0440\u043e\u043a\u0438 \u0442\u043e\u043c\u0443","\u0440\u043e\u043a\u0456\u0432 \u0442\u043e\u043c\u0443")}},ro:{second:"chiar acum",minute:"\u00een urm\u0103 minut",minutes:function(a){return rpi.Time.declineNum(Math.round(a),
"o minuta in urma","minute in urma","de minute in urma")},hour:"acum o ora",hours:function(a){return rpi.Time.declineNum(Math.round(a),"acum o ora","ore in urma","de ore in urma")},day:"o zi in urma",days:function(a){return rpi.Time.declineNum(Math.round(a),"o zi in urma","zile in urma","de zile in urma")},month:"o luna in urma",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"o luna in urma","luni in urma","de luni in urma")},year:"un an in urma",years:function(a){return rpi.Time.declineNum(Math.round(a),
"un an in urma","ani in urma","de ani in urma")}},lv:{second:"Maz\u0101k par min\u016bti",minute:"Pirms min\u016btes",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"pirms min\u016btes","pirms min\u016bt\u0113m","pirms min\u016bt\u0113m")},hour:"pirms stundas",hours:function(a){return rpi.Time.declineNum(Math.round(a),"pirms stundas","pirms stund\u0101m","pirms stund\u0101m")},day:"pirms dienas",days:function(a){return rpi.Time.declineNum(Math.round(a),"pirms dienas","pirms dien\u0101m",
"pirms dien\u0101m")},month:"pirms m\u0113ne\u0161a",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"pirms m\u0113ne\u0161a","pirms m\u0113ne\u0161iem","pirms m\u0113ne\u0161iem")},year:"pirms gada",years:function(a){return rpi.Time.declineNum(Math.round(a),"pirms gada","pirms gadiem","pirms gadiem")}},lt:{second:"k\u0105 tik",minute:"prie\u0161 minut\u0119",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"minut\u0117 prie\u0161","minut\u0117s prie\u0161","minu\u010di\u0173 prie\u0161")},
hour:"prie\u0161 valand\u0105",hours:function(a){return rpi.Time.declineNum(Math.round(a),"valanda prie\u0161","valandos prie\u0161","valand\u0173 prie\u0161")},day:"prie\u0161 dien\u0105",days:function(a){return rpi.Time.declineNum(Math.round(a),"diena prie\u0161","dienos prie\u0161","dien\u0173 prie\u0161")},month:"prie\u0161 m\u0117nes\u012f",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"m\u0117nes\u012f prie\u0161","m\u0117nesiai prie\u0161","m\u0117nesi\u0173 prie\u0161")},
year:"prie\u0161 metus",years:function(a){return rpi.Time.declineNum(Math.round(a),"metai prie\u0161","metai prie\u0161","met\u0173 prie\u0161")}},kk:{second:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442\u0442\u0430\u043d \u0430\u0437 \u0443\u0430\u049b\u044b\u0442 \u0431\u04b1\u0440\u044b\u043d",minute:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442 \u0431\u04b1\u0440\u044b\u043d",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"\u043c\u0438\u043d\u0443\u0442 \u0431\u04b1\u0440\u044b\u043d",
"\u043c\u0438\u043d\u0443\u0442 \u0431\u04b1\u0440\u044b\u043d","\u043c\u0438\u043d\u0443\u0442 \u0431\u04b1\u0440\u044b\u043d")},hour:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442 \u0431\u04b1\u0440\u044b\u043d",hours:function(a){return rpi.Time.declineNum(Math.round(a),"\u0441\u0430\u0493\u0430\u0442 \u0431\u04b1\u0440\u044b\u043d","\u0441\u0430\u0493\u0430\u0442 \u0431\u04b1\u0440\u044b\u043d","\u0441\u0430\u0493\u0430\u0442 \u0431\u04b1\u0440\u044b\u043d")},day:"\u0431\u0456\u0440 \u043a\u04af\u043d \u0431\u04b1\u0440\u044b\u043d",
days:function(a){return rpi.Time.declineNum(Math.round(a),"\u043a\u04af\u043d \u0431\u04b1\u0440\u044b\u043d","\u043a\u04af\u043d \u0431\u04b1\u0440\u044b\u043d","\u043a\u04af\u043d \u0431\u04b1\u0440\u044b\u043d")},month:"\u0431\u0456\u0440 \u0430\u0439 \u0431\u04b1\u0440\u044b\u043d",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"\u0430\u0439 \u0431\u04b1\u0440\u044b\u043d","\u0430\u0439 \u0431\u04b1\u0440\u044b\u043d","\u0430\u0439 \u0431\u04b1\u0440\u044b\u043d")},year:"\u0431\u0456\u0440 \u0436\u044b\u043b \u0431\u04b1\u0440\u044b\u043d",
years:function(a){return rpi.Time.declineNum(Math.round(a),"\u0436\u044b\u043b \u0431\u04b1\u0440\u044b\u043d","\u0436\u044b\u043b \u0431\u04b1\u0440\u044b\u043d","\u0436\u044b\u043b \u0431\u04b1\u0440\u044b\u043d")}},ka:{second:"\u10ec\u10d0\u10db\u10d8\u10e1 \u10ec\u10d8\u10dc",minute:"\u10ec\u10e3\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"\u10ec\u10e3\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10ec\u10e3\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc",
"\u10ec\u10e3\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc")},hour:"\u10e1\u10d0\u10d0\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc",hours:function(a){return rpi.Time.declineNum(Math.round(a),"\u10e1\u10d0\u10d0\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10e1\u10d0\u10d0\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10e1\u10d0\u10d0\u10d7\u10d8\u10e1 \u10ec\u10d8\u10dc")},day:"\u10d3\u10e6\u10d8\u10e1 \u10ec\u10d8\u10dc",days:function(a){return rpi.Time.declineNum(Math.round(a),"\u10d3\u10e6\u10d8\u10e1 \u10ec\u10d8\u10dc",
"\u10d3\u10e6\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10d3\u10e6\u10d8\u10e1 \u10ec\u10d8\u10dc")},month:"\u10d7\u10d5\u10d8\u10e1 \u10ec\u10d8\u10dc",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"\u10d7\u10d5\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10d7\u10d5\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10d7\u10d5\u10d8\u10e1 \u10ec\u10d8\u10dc")},year:"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc",years:function(a){return rpi.Time.declineNum(Math.round(a),"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc",
"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc","\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc")}},hy:{second:"\u0574\u056b \u0584\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576 \u0561\u057c\u0561\u057b",minute:"\u0574\u0565\u056f \u0580\u0578\u057a\u0565 \u0561\u057c\u0561\u057b",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"\u0580\u0578\u057a\u0565 \u0561\u057c\u0561\u057b","\u0580\u0578\u057a\u0565 \u0561\u057c\u0561\u057b","\u0580\u0578\u057a\u0565 \u0561\u057c\u0561\u057b")},
hour:"\u0574\u0565\u056f \u056a\u0561\u0574 \u0561\u057c\u0561\u057b",hours:function(a){return rpi.Time.declineNum(Math.round(a),"\u056a\u0561\u0574 \u0561\u057c\u0561\u057b","\u056a\u0561\u0574 \u0561\u057c\u0561\u057b","\u056a\u0561\u0574 \u0561\u057c\u0561\u057b")},day:"\u0574\u0565\u056f \u0585\u0580 \u0561\u057c\u0561\u057b",days:function(a){return rpi.Time.declineNum(Math.round(a),"\u0585\u0580 \u0561\u057c\u0561\u057b","\u0585\u0580 \u0561\u057c\u0561\u057b","\u0585\u0580 \u0561\u057c\u0561\u057b")},
month:"\u0574\u0565\u056f \u0561\u0574\u056b\u057d \u0561\u057c\u0561\u057b",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"\u0561\u0574\u056b\u057d \u0561\u057c\u0561\u057b","\u0561\u0574\u056b\u057d \u0561\u057c\u0561\u057b","\u0561\u0574\u056b\u057d \u0561\u057c\u0561\u057b")},year:"\u0574\u0565\u056f \u057f\u0561\u0580\u056b \u0561\u057c\u0561\u057b",years:function(a){return rpi.Time.declineNum(Math.round(a),"\u057f\u0561\u0580\u056b \u0561\u057c\u0561\u057b","\u057f\u0561\u0580\u056b \u0561\u057c\u0561\u057b",
"\u057f\u0561\u0580\u056b \u0561\u057c\u0561\u057b")}},fr:{second:"tout \u00e0 l'heure",minute:"environ une minute",minutes:function(a){return Math.round(a)+" minutes"},hour:"environ une heure",hours:function(a){return"environ "+Math.round(a)+" heures"},day:"un jour",days:function(a){return Math.round(a)+" jours"},month:"environ un mois",months:function(a){return Math.floor(a/30)+" mois"},year:"environ un an",years:function(a){return Math.round(a)+" ans"}},es:{second:"ahora",minute:"hace un minuto",
minutes:function(a){return"hace "+Math.round(a)+" minuts"},hour:"hace una hora",hours:function(a){return"hace "+Math.round(a)+" horas"},day:"hace un dia",days:function(a){return"hace "+Math.round(a)+" d\u00edas"},month:"hace un mes",months:function(a){return"hace "+Math.floor(a/30)+" meses"},year:"hace a\u00f1os",years:function(a){return"hace "+Math.round(a)+" a\u00f1os"}},el:{second:"\u03bb\u03b9\u03b3\u03cc\u03c4\u03b5\u03c1\u03bf \u03b1\u03c0\u03cc \u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",
minute:"\u03b3\u03cd\u03c1\u03c9 \u03c3\u03c4\u03bf \u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",minutes:function(a){return Math.round(a)+" minutes"},hour:"\u03b3\u03cd\u03c1\u03c9 \u03c3\u03c4\u03b7\u03bd \u03bc\u03b9\u03b1 \u03ce\u03c1\u03b1",hours:function(a){return"about "+Math.round(a)+" hours"},day:"\u03bc\u03b9\u03b1 \u03bc\u03ad\u03c1\u03b1",days:function(a){return Math.round(a)+" days"},month:"\u03b3\u03cd\u03c1\u03c9 \u03c3\u03c4\u03bf\u03bd \u03ad\u03bd\u03b1 \u03bc\u03ae\u03bd\u03b1",
months:function(a){return Math.floor(a/30)+" months"},year:"\u03b3\u03cd\u03c1\u03c9 \u03c3\u03c4\u03bf\u03bd \u03ad\u03bd\u03b1 \u03c7\u03c1\u03cc\u03bd\u03bf",years:function(a){return Math.round(a)+" years"}},de:{second:"soeben",minute:"vor einer Minute",minutes:function(a){return"vor "+Math.round(a)+" Minuten"},hour:"vor einer Stunde",hours:function(a){return"vor "+Math.round(a)+" Stunden"},day:"vor einem Tag",days:function(a){return"vor "+Math.round(a)+" Tagen"},month:"vor einem Monat",months:function(a){return"vor "+
Math.floor(a/30)+" Monaten"},year:"vor einem Jahr",years:function(a){return"vor "+Math.round(a)+" Jahren"}},be:{second:"\u043c\u0435\u043d\u0448 \u0437\u0430 \u0445\u0432\u0456\u043b\u0456\u043d\u0443 \u0442\u0430\u043c\u0443",minute:"\u0445\u0432\u0456\u043b\u0456\u043d\u0443 \u0442\u0430\u043c\u0443",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"\u0445\u0432\u0456\u043b\u0456\u043d\u0430 \u0442\u0430\u043c\u0443","\u0445\u0432\u0456\u043b\u0456\u043d\u044b \u0442\u0430\u043c\u0443",
"\u0445\u0432\u0456\u043b\u0456\u043d \u0442\u0430\u043c\u0443")},hour:"\u0433\u0430\u0434\u0437\u0456\u043d\u0443 \u0442\u0430\u043c\u0443",hours:function(a){return rpi.Time.declineNum(Math.round(a),"\u0433\u0430\u0434\u0437\u0456\u043d\u0443 \u0442\u0430\u043c\u0443","\u0433\u0430\u0434\u0437\u0456\u043d\u044b \u0442\u0430\u043c\u0443","\u0433\u0430\u0434\u0437\u0456\u043d \u0442\u0430\u043c\u0443")},day:"\u0434\u0437\u0435\u043d\u044c \u0442\u0430\u043c\u0443",days:function(a){return rpi.Time.declineNum(Math.round(a),
"\u0434\u0437\u0435\u043d\u044c \u0442\u0430\u043c\u0443","\u0434\u043d\u0456 \u0442\u0430\u043c\u0443","\u0434\u0437\u0451\u043d \u0442\u0430\u043c\u0443")},month:"\u043c\u0435\u0441\u044f\u0446 \u0442\u0430\u043c\u0443",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"\u043c\u0435\u0441\u044f\u0446 \u0442\u0430\u043c\u0443","\u043c\u0435\u0441\u044f\u0446\u0430 \u0442\u0430\u043c\u0443","\u043c\u0435\u0441\u044f\u0446\u0430\u045e \u0442\u0430\u043c\u0443")},year:"\u0433\u043e\u0434 \u0442\u0430\u043c\u0443",
years:function(a){return rpi.Time.declineNum(Math.round(a),"\u0433\u043e\u0434 \u0442\u0430\u043c\u0443","\u0433\u0430\u0434\u044b \u0442\u0430\u043c\u0443","\u0433\u043e\u0434 \u0442\u0430\u043c\u0443")}},it:{second:"proprio ora",minute:"un minuto fa",minutes:function(a){return rpi.Time.declineNum(Math.round(a),"un minuto fa","minuti fa","minuti fa")},hour:"un'ora fa",hours:function(a){return rpi.Time.declineNum(Math.round(a),"un'ora fa","ore fa","ore fa")},day:"un giorno fa",days:function(a){return rpi.Time.declineNum(Math.round(a),
"un giorno fa","giorni fa","giorni fa")},month:"un mese fa",months:function(a){return rpi.Time.declineNum(Math.floor(a/30),"un mese fa","mesi fa","mesi fa")},year:"un anno fa",years:function(a){return rpi.Time.declineNum(Math.round(a),"un anno fa","anni fa","anni fa")}},tr:{second:"az \u00f6nce",minute:"dakika \u00f6nce",minutes:function(a){return Math.round(a)+" dakika \u00f6nce"},hour:"saat \u00f6nce",hours:function(a){return Math.round(a)+" saat \u00f6nce"},day:"g\u00fcn \u00f6nce",days:function(a){return Math.round(a)+
" g\u00fcn \u00f6nce"},month:"ay \u00f6nce",months:function(a){return Math.floor(a/30)+" ay \u00f6nce"},year:"y\u0131l \u00f6nce",years:function(a){return Math.round(a)+" y\u0131l \u00f6nce"}},nb:{second:"n\u00e5 nettopp",minute:"ett minutt siden",minutes:function(a){return Math.round(a)+" minutter siden"},hour:"en time siden",hours:function(a){return Math.round(a)+" timer siden"},day:"en dag siden",days:function(a){return Math.round(a)+" dager siden"},month:"en m\u00e5ned siden",months:function(a){return Math.floor(a/
30)+" m\u00e5neder siden"},year:"ett \u00e5r siden",years:function(a){return Math.round(a)+" \u00e5r siden"}},da:{second:"lige nu",minute:"et minut siden",minutes:function(a){return Math.round(a)+" minutter siden"},hour:"en time siden",hours:function(a){return Math.round(a)+" timer siden"},day:"en dag siden",days:function(a){return Math.round(a)+" dage siden"},month:"en m\u00e5ned siden",months:function(a){return Math.floor(a/30)+" m\u00e5neder siden"},year:"et \u00e5r siden",years:function(a){return Math.round(a)+
" \u00e5r siden"}},nl:{second:"zojuist",minute:"minuten geleden",minutes:function(a){return Math.round(a)+" minuten geleden"},hour:"uur geleden",hours:function(a){return Math.round(a)+" uur geleden"},day:"1 dag geleden",days:function(a){return Math.round(a)+" dagen geleden"},month:"maand geleden",months:function(a){return Math.floor(a/30)+" maanden geleden"},year:"jaar geleden",years:function(a){return Math.round(a)+" jaar geleden"}},ca:{second:"ara mateix",minute:"fa un minut",minutes:function(a){return"fa "+
Math.round(a)+" minuts"},hour:"fa una hora",hours:function(a){return"fa "+Math.round(a)+" hores"},day:"fa un dia",days:function(a){return"fa "+Math.round(a)+" dies"},month:"fa un mes",months:function(a){return"fa "+Math.floor(a/30)+" mesos"},year:"fa un any",years:function(a){return"fa "+Math.round(a)+" anys"}},sv:{second:"just nu",minute:"en minut sedan",minutes:function(a){return Math.round(a)+" minuter sedan"},hour:"en timme sedan",hours:function(a){return Math.round(a)+" timmar sedan"},day:"en dag sedan",
days:function(a){return Math.round(a)+" dagar sedan"},month:"en m\u00e5nad sedan",months:function(a){return Math.floor(a/30)+" m\u00e5nader sedan"},year:"ett \u00e5r sedan",years:function(a){return Math.round(a)+" \u00e5r sedan"}},pl:{second:"w\u0142a\u015bnie teraz",minute:"minut\u0119 temu",minutes:function(a){return Math.round(a)+" minut temu"},hour:"godzin\u0119 temu",hours:function(a){return Math.round(a)+" godzin temu"},day:"wczoraj",days:function(a){return Math.round(a)+" dni temu"},month:"miesi\u0105c temu",
months:function(a){return Math.floor(a/30)+" miesi\u0119cy temu"},year:"rok temu",years:function(a){return Math.round(a)+" lat temu"}},pt:{second:"agora",minute:"1 minuto atr\u00e1s",minutes:function(a){return Math.round(a)+" minutos atr\u00e1s"},hour:"1 hora atr\u00e1s",hours:function(a){return Math.round(a)+" horas atr\u00e1s"},day:"1 dia atr\u00e1s",days:function(a){return Math.round(a)+" dias atr\u00e1s"},month:"1 m\u00eas atr\u00e1s",months:function(a){return Math.floor(a/30)+" meses atr\u00e1s"},
year:"1 ano atr\u00e1s",years:function(a){return Math.round(a)+" anos atr\u00e1s"}},hu:{second:"\u00e9pp az im\u00e9nt",minute:"1 perccel ezel\u0151tt",minutes:function(a){return Math.round(a)+" perccel ezel\u0151tt"},hour:"\u00f3r\u00e1val ezel\u0151tt",hours:function(a){return Math.round(a)+" \u00f3r\u00e1val ezel\u0151tt"},day:"nappal ezel\u0151tt",days:function(a){return Math.round(a)+" nappal ezel\u0151tt"},month:"h\u00f3nappal ezel\u0151tt",months:function(a){return Math.floor(a/30)+" h\u00f3nappal ezel\u0151tt"},
year:"\u00e9vvel ezel\u0151tt",years:function(a){return Math.round(a)+" \u00e9vvel ezel\u0151tt"}},fi:{second:"juuri nyt",minute:"minuutti sitten",minutes:function(a){return Math.round(a)+" minuuttia sitten"},hour:"tunti sitten",hours:function(a){return Math.round(a)+" tuntia sitten"},day:"p\u00e4iv\u00e4 sitten",days:function(a){return Math.round(a)+" p\u00e4iv\u00e4\u00e4 sitten"},month:"kuukausi sitten",months:function(a){return Math.floor(a/30)+" kuukautta sitten"},year:"vuosi sitten",years:function(a){return Math.round(a)+
" vuotta sitten"}},he:{second:"\u05d4\u05e8\u05d2\u05e2",minute:"\u05dc\u05e4\u05e0\u05d9 \u05d3\u05e7\u05d4",minutes:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05d3\u05e7\u05d5\u05ea"},hour:"\u05dc\u05e4\u05e0\u05d9 \u05e9\u05e2\u05d4",hours:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05e9\u05e2\u05d5\u05ea"},day:"\u05dc\u05e4\u05e0\u05d9 \u05d9\u05d5\u05dd",days:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05d9\u05de\u05d9\u05dd"},month:"\u05dc\u05e4\u05e0\u05d9 \u05d7\u05d5\u05d3\u05e9",
months:function(a){return 2==Math.floor(a/30)?"\u05dc\u05e4\u05e0\u05d9 \u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":"\u05dc\u05e4\u05e0\u05d9 "+Math.floor(a/30)+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},year:"\u05dc\u05e4\u05e0\u05d9 \u05e9\u05e0\u05d4",years:function(a){return"\u05dc\u05e4\u05e0\u05d9 "+Math.round(a)+" \u05e9\u05e0\u05d9\u05dd"}},bg:{second:"\u0432 \u043c\u043e\u043c\u0435\u043d\u0442\u0430",minute:"\u043f\u0440\u0435\u0434\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430",minutes:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+
Math.round(a)+" \u043c\u0438\u043d\u0443\u0442\u0438"},hour:"\u043f\u0440\u0435\u0434\u0438 1 \u0447\u0430\u0441",hours:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.round(a)+" \u0447\u0430\u0441\u0430"},day:"\u043f\u0440\u0435\u0434\u0438 1 \u0434\u0435\u043d",days:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.round(a)+" \u0434\u043d\u0438"},month:"\u043f\u0440\u0435\u0434\u0438 1 \u043c\u0435\u0441\u0435\u0446",months:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.floor(a/
30)+" \u043c\u0435\u0441\u0435\u0446\u0430"},year:"\u043f\u0440\u0435\u0434\u0438 1 \u0433\u043e\u0434\u0438\u043d\u0430",years:function(a){return"\u043f\u0440\u0435\u0434\u0438 "+Math.round(a)+" \u0433\u043e\u0434\u0438\u043d\u0438"}},sk:{second:"pr\u00e1ve teraz",minute:"pred min\u00fatov",minutes:function(a){return"pred "+Math.round(a)+" min\u00fatami"},hour:"pred hodinou",hours:function(a){return"pred "+Math.round(a)+" hodinami"},day:"v\u010dera",days:function(a){return"pred "+Math.round(a)+" d\u0148ami"},
month:"pred mesiacom",months:function(a){return"pred "+Math.floor(a/30)+" mesiacmi"},year:"pred rokom",years:function(a){return"pred "+Math.round(a)+" rokmi"}},lo:{second:"\u0ea7\u0eb1\u0ec8\u0e87\u0e81\u0eb5\u0ec9\u0e99\u0eb5\u0ec9",minute:"\u0edc\u0eb6\u0ec8\u0e87\u0e99\u0eb2\u0e97\u0eb5\u0e81\u0ec8\u0ead\u0e99",minutes:function(a){return Math.round(a)+" \u0e99\u0eb2\u0e97\u0eb5\u0e81\u0ec8\u0ead\u0e99"},hour:"\u0edc\u0eb6\u0ec8\u0e87\u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87\u0e81\u0ec8\u0ead\u0e99",
hours:function(a){return Math.round(a)+" \u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87\u0e81\u0ec8\u0ead\u0e99"},day:"\u0edc\u0eb6\u0ec8\u0e87\u0ea1\u0eb7\u0ec9\u0e81\u0ec8\u0ead\u0e99",days:function(a){return Math.round(a)+" \u0ea1\u0eb7\u0ec9\u0e81\u0ec8\u0ead\u0e99"},month:"\u0edc\u0eb6\u0ec8\u0e87\u0ec0\u0e94\u0eb7\u0ead\u0e99\u0e81\u0ec8\u0ead\u0e99",months:function(a){return Math.floor(a/30)+" \u0ec0\u0e94\u0eb7\u0ead\u0e99\u0e81\u0ec8\u0ead\u0e99"},year:"\u0edc\u0eb6\u0ec8\u0e87\u0e9b\u0eb5\u0e81\u0ec8\u0ead\u0e99",
years:function(a){return Math.round(a)+" \u0e9b\u0eb5\u0e81\u0ec8\u0ead\u0e99"}},sl:{second:"pravkar",minute:"pred eno minuto",minutes:function(a){return"pred "+Math.round(a)+" minutami"},hour:"pred eno uro",hours:function(a){return"pred "+Math.round(a)+" urami"},day:"pred enim dnem",days:function(a){return"pred "+Math.round(a)+" dnevi"},month:"pred enim mesecem",months:function(a){return"pred "+Math.floor(a/30)+" meseci"},year:"pred enim letom",years:function(a){return"pred "+Math.round(a)+" leti"}},
et:{second:"just n\u00fc\u00fcd",minute:"minut tagasi",minutes:function(a){return Math.round(a)+" minutit tagasi"},hour:"tund tagasi",hours:function(a){return Math.round(a)+" tundi tagasi"},day:"p\u00e4ev tagasi",days:function(a){return Math.round(a)+" p\u00e4eva tagasi"},month:"kuu aega tagasi",months:function(a){return Math.floor(a/30)+" kuud tagasi"},year:"aasta tagasi",years:function(a){return Math.round(a)+" aastat tagasi"}},ja:{second:"\u305f\u3063\u305f\u4eca",minute:"1\u5206\u524d",minutes:function(a){return Math.round(a)+
"\u5206\u524d"},hour:"1\u6642\u9593\u524d",hours:function(a){return Math.round(a)+"\u6642\u9593\u524d"},day:"1\u65e5\u524d",days:function(a){return Math.round(a)+"\u65e5\u524d"},month:"1\u30f6\u6708\u524d",months:function(a){return Math.floor(a/30)+"\u30f6\u6708\u524d"},year:"1\u5e74\u524d",years:function(a){return Math.round(a)+"\u5e74\u524d"}}};rpi=rpi||{};
rpi.Utils={__:function(a,d){return d&&d[a]||a},isVisible:function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)&&"hidden"!==window.getComputedStyle(a).visibility},isInViewport:function(a,d=0){a=a.getBoundingClientRect();return a.top<window.innerHeight*(1+d)&&a.bottom>-window.innerHeight*d&&a.left<window.innerWidth*(1+d)&&a.right>-window.innerWidth*d},isRTL:function(){return"rtl"==(window.getComputedStyle?window.getComputedStyle(document.body,null).getPropertyValue("direction"):
document.body.currentStyle.direction)},getParent:function(a,d){d=d||"rplg";if(0>a.className.split(" ").indexOf(d))for(;(a=a.parentElement)&&0>a.className.split(" ").indexOf(d););return a},lang:function(){var a=navigator;return(a.language||a.systemLanguage||a.userLanguage||"en").substr(0,2).toLowerCase()},popup:function(a,d,g){var m=document.documentElement;a=window.open(a,"","scrollbars=yes, width="+d+", height="+g+", top="+((window.innerHeight?window.innerHeight:m.clientHeight?m.clientHeight:screen.height)/
2-g/2+(void 0!=window.screenTop?window.screenTop:window.screenY))+", left="+((window.innerWidth?window.innerWidth:m.clientWidth?m.clientWidth:screen.width)/2-d/2+(void 0!=window.screenLeft?window.screenLeft:window.screenX)));window.focus&&a.focus();return a},ajax:function(a,d,g,m){const f=new XMLHttpRequest;f.open(d,a,!0);f.setRequestHeader("Content-Type","application/json");f.onreadystatechange=function(){if((f.readyState===XMLHttpRequest.DONE||f.readyState===f.DONE)&&200===f.status){const n=JSON.parse(f.responseText);
"function"===typeof m?m(n):"function"===typeof g&&g(n)}};f.send(g&&"function"!==typeof g?JSON.stringify(g):null)},anchor:function(a,d,g,m,f){const n=[];g.open_link&&n.push("noopener");g.nofollow_link&&n.push("nofollow");return'<a href="'+a+'"'+(m?' class="'+m+'"':"")+(g.open_link?' target="_blank"':"")+(n.length?' rel="'+n.join(" ")+'"':"")+(f?' aria-label="'+f+'"':"")+">"+d+"</a>"},rm:function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},capit:function(a){return a.charAt(0).toUpperCase()+a.slice(1)},
url:function(a){try{return(new URL(a,window.location.origin)).href}catch(d){return""}},clear:function(){this.rm(document.getElementById("rpi-style"));if(rpi.Instances)for(;rpi.Instances.length;)rpi.Instances.pop().clear()}};rpi=rpi||{};
rpi.Column=function(a,d,g){const m=a.getAttribute("data-id"),f=new RegExp(g.col+"-[xsml]+"),n=new RegExp('$|(\\[data-id="'+m+'"\\]\\s+.'+g.card+"\\s*{\\s*--col:\\s*\\d+\\s*!important\\s*;?(\\s*--gap:\\s*\\d+\\s*!important;?)?})"),k=a.getElementsByClassName(g.cnt)[0];var p=null;return p={init:function(h,q){rpi.Utils.isVisible(k)?(h&&h(),p.resize(),window.addEventListener("resize",p.resize),q&&q(),rpi.Instances=rpi.Instances||[],rpi.Instances.push(p)):setTimeout(p.init,300)},resize:function(){let h=
p.getSize();k.className=k.className.replace(f,g.col+"-"+h);if(d.breakpoints){let q=k.offsetWidth,e=d.breakpoints.split(",");e.sort(p.brsort);for(let t=0;t<e.length;t++){let u=e[t].split(":");if(q<parseInt(u[0])){p.setCol(u[1]);break}}}return h},getSize:function(){let h=k.offsetWidth;return 510>h?"xs":750>h?"x":1100>h?"s":1450>h?"m":1800>h?"l":"xl"},setCol:function(h){const q=this.getStyle();q.innerHTML=q.innerHTML.replace(n,(m?'[data-id="'+m+'"] ':"")+"."+g.card+"{--col:"+h+"!important;--gap:"+(h-
1)+"!important}")},getCol:function(){let h=this.getStyle().innerHTML.match(/--col:\s*(\d+)/);return h&&1<h.length?h[1]:!1},getStyle:function(){let h=document.getElementById("rpi-style");h||(h=document.createElement("style"),h.id="rpi-style",document.head.appendChild(h));return h},setBreakpoints:function(h){d.breakpoints=h},brsort:function(h,q){return parseInt(h.split(":")[0])>parseInt(q.split(":")[0])?1:-1},clear:function(){window.removeEventListener("resize",p.resize)}}};rpi=rpi||{};
rpi.Common=function(a,d,g){var m=null;return m={init:function(){var f=a.getElementsByClassName(g.time);let n=a.getElementsByClassName(g.text);if(!d.time_format)for(var k=0;k<f.length;k++)f[k].innerHTML=m.time(f[k].getAttribute("data-time"));for(f=0;f<n.length;f++)(k=n[f])&&k.innerHTML&&(k.innerHTML=m.trimtext(k.innerHTML),k=k.getElementsByClassName(g.readmore)[0])&&(k.onclick=m.opentext)},initOnce:function(f){var n=f.getElementsByClassName(g.time)[0];f=f.getElementsByClassName(g.text)[0];n&&!d.time_format&&
(n.innerHTML=m.time(n.getAttribute("data-time")));f&&f.innerHTML&&(f.innerHTML=m.trimtext(f.innerHTML),n=f.getElementsByClassName(g.readmore)[0])&&(n.onclick=m.opentext)},time:function(f){return rpi.Time.getTimeAgo(parseInt(f)*(1E10>f?1E3:1),rpi.Utils.lang())},trimtext:function(f,n){var k=parseInt(d.text_size);if(f&&k&&f.length>k){f=Array.from(f);let p=f.slice(0,k).join("").indexOf(" ")+1;if(1>p||k-p>k/2)p=f.length>k?k:f.length;let h=k="";0<p&&(k=f.slice(0,p-1).join(""),h=f.slice(p-1).join(""));return k+
(!n&&h?'<span class="rpi-s">... </span><input type="hidden" value="'+encodeURIComponent(h)+'"></input><span class="'+g.readmore+'">'+rpi.Utils.__("read more",d.trans)+"</span>":"")}return f},opentext:function(){let f=this.parentNode,n=this.previousSibling,k=this.previousSibling.previousSibling,p=decodeURIComponent(n.value);rpi.Utils.rm(n);rpi.Utils.rm(k);rpi.Utils.rm(this);f.innerHTML+=p}}};rpi=rpi||{};
rpi.Media=function(a,d,{root:g="rpi",card:m="rpi-card"}={}){var f=null,n=null;return n={init:function(){f=a.getElementsByClassName("rpi-thumb");for(let k=0;k<f.length;k++)f[k].setAttribute("data-idx",k),function(p,h){p.onclick=function(){n.show(p,h);return!1}}(f[k],k)},clicks:function(k){k=k.getElementsByClassName("rpi-thumb");for(let p=0;p<k.length;p++)(function(h,q){h.onclick=function(){let e=parseInt(h.getAttribute("data-idx"));n.show(f[e],e);return!1}})(k[p],p)},show:function(k,p){if(!(0>p||p>=
f.length)){var h=document.querySelector(".rpi-lightbox"),q=k.src.replace(/=s[0-9]{1,3}/g,"=s500");k=rpi.Utils.getParent(k,m).outerHTML;if(h){let e=h.querySelector(".rpi-lightbox-media img"),t=h.querySelector(".rpi-lightbox-review"),u=h.querySelector(".rpi-lightbox-prev");next=h.querySelector(".rpi-lightbox-next");e.src=q;t.innerHTML!==k&&(t.innerHTML=k,n.clicks(t));u.onclick=function(x){n.show(f[p-1],p-1)};next.onclick=function(x){n.show(f[p+1],p+1)}}else h=document.createElement("div"),h.className=
"rpi-lightbox",h.innerHTML='<div class="rpi-x"></div><div class="rpi-lightbox-inner"><div class="rpi-lightbox-xxx"><div class="rpi-lightbox-content"><div class="rpi-lightbox-media"><div class="rpi-lightbox-btn rpi-lightbox-prev"></div><img src="'+q+'" alt=""><div class="rpi-lightbox-btn rpi-lightbox-next"></div></div><div class="'+g+' rpi-lightbox-review">'+k+"</div></div></div></div>",q=h.querySelector(".rpi-x"),k=h.querySelector(".rpi-lightbox-prev"),next=h.querySelector(".rpi-lightbox-next"),q.onclick=
function(){h.style.display="none"},h.onclick=function(e){h==e.target&&(h.style.display="none")},k.onclick=function(e){n.show(f[p-1],p-1)},next.onclick=function(e){n.show(f[p+1],p+1)},n.clicks(h),document.body.appendChild(h);h.style.display="flex"}}}};rpi=rpi||{};
rpi.Slider=function(a,d,g,m){a.getAttribute("data-id");const f=a.getElementsByClassName(g.cnt)[0],n=a.getElementsByClassName(g.content)[0],k=n?n.getElementsByClassName(g.cards)[0]:null,p=n?n.getElementsByClassName(g.dotsWrap)[0]:null,h=n?n.getElementsByClassName(g.dots)[0]:null,q=k?parseInt(k.getAttribute("data-count")):0;var e=null,t=n?n.getElementsByClassName(g.card):null,u="",x="",A=null,y=null,w=null,B=null,C=!1,z=!1,D=0,E=0;return e={init:function(b,l){rpi.Utils.isVisible(f)?(b&&b(),e.resize(),
e.actions(),t.length&&e.swipeAutoStart(),l&&l(),rpi.Instances=rpi.Instances||[],rpi.Instances.push(e)):setTimeout(e.init,300)},resize:function(b){let l=m.column.resize(),r=m.column.getCol();b&&k.scrollLeft!=b*e.reviewWidth()&&k.scrollTo(t[b].offsetLeft,0);!t.length||u==l&&x==r||(e.hasDots()&&(e.dotsInit(),e.dotSwipe(b,!0)),u=l,x=r);a.style.setProperty("--root-bg",e.bg(a))},bg:function(b){return b&&"transparent"!==(c=getComputedStyle(b).backgroundColor.replace(/\s/g,""))&&"rgba(0,0,0,0)"!==c?c:e.bg(b.parentElement)},
actions:function(){d.mousestop&&e.addMouseEvents();window.addEventListener("resize",e.resizeListener);k&&(k.addEventListener("scroll",e.scrollListener,!1),d.wheelscroll&&n.addEventListener("wheel",e.wheelListener,!1));var b=f.getElementsByClassName(g.btnPrev)[0];b&&(b.onclick=function(l){l.preventDefault();l.stopPropagation();e.btnClick(-1)});if(b=f.getElementsByClassName(g.btnNext)[0])b.onclick=function(l){l.preventDefault();l.stopPropagation();e.btnClick(1)}},resizeListener:function(){var b=E;clearTimeout(A);
A=setTimeout(e.resize,150,b)},scrollListener:function(){clearTimeout(y);clearTimeout(w);w=setTimeout(e.scrollEnd,150)},wheelListener:function(b){var l=b.target;if((l=-1<l.className.indexOf(g.text)?l:-1<l.parentNode.className.indexOf(g.text)?l.parentNode:null)&&l.scrollHeight>l.clientHeight)return!0;b.preventDefault();D++;clearTimeout(B);B=setTimeout(e.wheelEnd,150,b)},addMouseEvents:function(){f.addEventListener("mouseover",e.mouseOver,!1);f.addEventListener("mouseleave",e.mouseLeave,!1)},delMouseEvents:function(){f.removeEventListener("mouseover",
e.mouseOver);f.removeEventListener("mouseleave",e.mouseLeave)},mouseOver:function(){C=1;e.swipeAutoStop()},mouseLeave:function(){C=0;e.swipeAutoStart()},btnClick:function(b){e.swipeManual(b*e.swipePerBtn())},wheelEnd:function(b){e.swipeManual(Math.sign(b.wheelDelta)*D*e.swipeStep());D=0},scrollEnd:function(){E=e.reviewsIdx();z?z=!1:e.loadNextReviews();(!d.mousestop||C)&&d.mousestop||(!d.clickstop||z)&&d.clickstop||e.swipeAutoStart();e.hasDots()&&e.dotSwipe(void 0,!0)},loadNextReviews:function(b){b=
b?e.reviewsIdx()+parseInt(b):e.hasDots()?(b=h.getElementsByClassName("active")[0])?parseInt(b.getAttribute("data-index"))*e.swipePerDot():e.reviewsIdx():e.reviewsIdx();b=e.getAjaxSize(b);0<b&&m.view.loadNextReviews(b)},getAjaxSize:function(b){let l=0;const r=parseInt(k.getAttribute("data-offset")),v=parseInt(d.pagination);if(q>r){let F=b-r;Math.abs(F)<3*e.swipePerDot()?l=v:F&&(l=Math.ceil(b/v)*v-r)}b=r+l-q;return 0<b?l-b:l},dotsInit:function(){if(h){var b=Math.round(q/e.swipePerDot());h.innerHTML=
"";for(let l=0;l<b;l++){let r=document.createElement("button");r.className=g.dot;r.setAttribute("data-index",l);r.setAttribute("title",l);r.setAttribute("aria-label","Go to page "+l);r.onclick=e.dotClick;h.appendChild(r)}e.dotsPadding()}},dotClick:function(b){b.preventDefault();b.stopPropagation();b=parseInt(this.getAttribute("data-index"));var l=h.getElementsByClassName("active")[0];l=parseInt(l.getAttribute("data-index"));e.swipeManual(Math.abs(b-l)*e.swipePerDot()*Math.sign(b-l))},dotsPadding:function(){let b=
p.getBoundingClientRect().height;f.style.paddingBottom=b+"px"},dotSwipe:function(b,l){b=Math.round((void 0!==b?b:e.reviewsIdx())/e.swipePerDot());b=0>b?0:b>=h.childNodes.length?h.childNodes.length-1:b;b=h.querySelector("."+g.dot+'[data-index="'+b+'"]');let r=h.getElementsByClassName("active")[0];e.dotActivate(r,b);e.dotScroll(b,l)},dotScroll:function(b,l){let r=Math.round(h.scrollWidth/h.childNodes.length),v=Math.floor(Math.round(h.offsetWidth/r)/2);l?h.scrollTo(b.offsetLeft-v*r,0):h.scrollTo({left:b.offsetLeft-
v*r,behavior:"smooth"})},dotActivate:function(b,l){b&&(b.classList.remove("active"),b.classList.remove("s1"),b.previousSibling&&(b.previousSibling.classList.remove("s2"),b.previousSibling.previousSibling&&b.previousSibling.previousSibling.classList.remove("s3")),b.nextSibling&&(b.nextSibling.classList.remove("s2"),b.nextSibling.nextSibling&&b.nextSibling.nextSibling.classList.remove("s3")));l&&(l.classList.add("active"),l.classList.add("s1"),l.previousSibling&&(l.previousSibling.classList.add("s2"),
l.previousSibling.previousSibling&&l.previousSibling.previousSibling.classList.add("s3")),l.nextSibling&&(l.nextSibling.classList.add("s2"),l.nextSibling.nextSibling&&l.nextSibling.nextSibling.classList.add("s3")))},swipeManual:function(b){z=!0;e.loadNextReviews(b);e.scroll(b);d.clickstop&&(e.swipeAutoStop(),e.delMouseEvents())},swipeAuto:function(){if(rpi.Utils.isInViewport(f))if(e.isScrollEnd())e.scroll(-(q-e.reviewsPerView()));else{let b=e.swipeStep()<e.reviewsAhead()?e.swipeStep():e.reviewsAhead();
e.scroll(b)}e.swipeAutoStart()},scroll:function(b){b=e.reviewsIdx()+parseInt(b);let l=rpi.Utils.isRTL()?b+e.reviewsPerView()-1:b;l=0>l?0:l>=t.length?t.length-1:l;-1<l&&l<t.length&&(k.scrollTo({left:t[l].offsetLeft,behavior:"smooth"}),e.hasDots()&&e.dotSwipe(b))},swipeAutoStart:function(){d.autoplay&&(y=setTimeout(e.swipeAuto,1E3*parseInt(d.speed)))},swipeAutoStop:function(){clearTimeout(y);w&&setTimeout(function(){clearTimeout(w)},100)},isScrollEnd:function(){var b=k.querySelector("."+g.card+":last-child"),
l=b.getBoundingClientRect();b=b.parentNode.getBoundingClientRect();return(2>Math.abs(b.left-l.left)||b.left<=l.left)&&l.left<b.right&&(2>Math.abs(b.right-l.right)||b.right>=l.right)&&l.right>b.left},swipeStep:function(){return d.swipe_step||e.reviewsPerView()},swipePerBtn:function(){return d.swipe_per_btn||e.reviewsPerView()},swipePerDot:function(){return d.swipe_per_dot||e.reviewsPerView()},reviewWidth:function(){return Math.round(k.scrollWidth/t.length)},reviewHeight:function(){return t[0].offsetHeight},
reviewsPerView:function(){return Math.round(k.offsetWidth/e.reviewWidth())},reviewsIdx:function(){let b=rpi.Utils.isRTL()?-k.scrollLeft:k.scrollLeft;return Math.round(b/e.reviewWidth())},reviewsAhead:function(){return t.length-(e.reviewsIdx()+e.reviewsPerView())},hasDots:function(){return h&&!d.hide_dots&&0<e.swipePerDot()},setBreakpoints:function(b){m.column.setBreakpoints(b);e.resize()},clear:function(){clearTimeout(A);clearTimeout(y);clearTimeout(w);clearTimeout(B);window.removeEventListener("resize",
e.resizeListener);k.removeEventListener("scroll",e.scrollListener);n.removeEventListener("wheel",e.wheelListener)}}};function rplg_badge_init(a,d,g){var m=a.querySelector(".wp-"+d+"-badge"),f=a.querySelector(".wp-"+d+"-form");m&&f&&(a=document.createElement("div"),a.className=g+" wpac",-1<m.className.indexOf("-fixed")&&a.appendChild(m),a.appendChild(f),document.body.appendChild(a),m.onclick=function(){f.style.display="block"})}
function rplg_next_reviews(a,d){var g=this.parentNode,m="."+a+"-review."+a+"-hide";reviews=g.querySelectorAll(m);for(var f=0;f<d&&f<reviews.length;f++)reviews[f]&&(reviews[f].className=reviews[f].className.replace(a+"-hide"," "));reviews=g.querySelectorAll(m);1>reviews.length&&g.removeChild(this);return!1}function rplg_leave_review_window(){rpi.Utils.popup(this.getAttribute("href"),620,500);return!1}
function grw_init(a,d){a=rpi.Utils.getParent(a,"wp-gr");if("true"!=a.getAttribute("data-exec")){a.setAttribute("data-exec","true");var g=JSON.parse(a.getAttribute("data-options"));rpi.Common(a,g,{time:"wp-google-time",text:"wp-google-text",readmore:"wp-more-toggle"}).init();rpi.Media(a,{},{root:"wp-gr",card:"grw-review"}).init();!a.getElementsByClassName("grw-review")[0]||"slider"!=d&&"grid"!=d||(d=a.getElementsByClassName("grw-row")[0],d=JSON.parse(d.getAttribute("data-options")),g=rpi.Column(a,
d,{cnt:"grw-row",col:"grw-row",card:"grw-review"}),rpi.Slider(a,d,{cnt:"grw-row",col:"grw-row",content:"grw-content",cards:"grw-reviews",card:"grw-review",text:"wp-google-text",btnPrev:"grw-prev",btnNext:"grw-next",dotsWrap:"rpi-dots-wrap",dots:"rpi-dots",dot:"rpi-dot"},{column:g}).init())}}
function grw_root_bg(a){if(!a)return null;const d=getComputedStyle(a).backgroundColor.replace(/\s+/g,"").toLowerCase();return d&&"transparent"!==d&&"rgba(0,0,0,0)"!==d?getComputedStyle(a).backgroundColor:grw_root_bg(a.parentElement)}function grw_boot(){const a=document.querySelectorAll('.wp-gr[data-exec="false"]');for(let g=0;g<a.length;g++){var d=a[g];grw_init(d,d.getAttribute("data-layout"));d.style.setProperty("--root-bg",grw_root_bg(d))}}document.addEventListener("DOMContentLoaded",grw_boot);
