1var rpi=rpi||{};rpi.Time={getTime:function(a,e,f){return"chat"==f?this.getChatTime(a,e||"en"):f?this.getFormatTime(a,f,e||"en"):this.getDefaultTime(a,e||"en")},getChatTime:function(a,e){var f=((new Date).getTime()-a)/1E3/60/60,n=f/24;return 24>f?this.getFormatTime(a,"HH:mm",e):365>n?this.getFormatTime(a,"dd.MM HH:mm",e):this.getFormatTime(a,"yyyy.MM.dd HH:mm",e)},getDefaultTime:function(a,e){return this.getTimeAgo(a,e)},getTimeAgo:function(a,e){a=((new Date).getTime()-a)/1E3;var f=a/60,n=f/60,l=n/24,p=l/365;e=rpi.Time.Messages[e]?e:"en";return 45>a?rpi.Time.Messages[e].second:90>a?rpi.Time.Messages[e].minute:45>f?rpi.Time.Messages[e].minutes(f):90>f?rpi.Time.Messages[e].hour:24>n?rpi.Time.Messages[e].hours(n):48>n?rpi.Time.Messages[e].day:30>l?rpi.Time.Messages[e].days(l):60>l?rpi.Time.Messages[e].month:365>l?rpi.Time.Messages[e].months(l):2>p?rpi.Time.Messages[e].year:rpi.Time.Messages[e].years(p)},getTime12:function(a,e){a=new Date(a);return(a.getHours()%12?a.getHours()%12:12)+":"+a.getMinutes()+(12<=a.getHours()?" PM":" AM")},getFormatTime:function(a,e,f){var n=new Date(a),l={SS:n.getMilliseconds(),ss:n.getSeconds(),mm:n.getMinutes(),HH:n.getHours(),hh:(n.getHours()%12?n.getHours()%12:12)+(12<=n.getHours()?"PM":"AM"),dd:n.getDate(),MM:n.getMonth()+1,yyyy:n.getFullYear(),yy:String(n.getFullYear()).toString().substr(2,2),ago:this.getTimeAgo(a,f),12:this.getTime12(a,f)};return e.replace(/(SS|ss|mm|HH|hh|DD|dd|MM|yyyy|yy|ago|12)/g,function(p,h){p=l[h];return 10>p?"0"+p:p})},declineNum:function(a,e,f,n){return a+" "+this.declineMsg(a,e,f,n)},declineMsg:function(a,e,f,n,l){var p=a%10;return 1==p&&(1==a||20<a)?e:1<p&&5>p&&(20<a||10>a)?f:a?n:l}};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\u
10117nes\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 "+
1Math.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)+" ja
1ar 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)+"\u30f
16\u6708\u524d"},year:"1\u5e74\u524d",years:function(a){return Math.round(a)+"\u5e74\u524d"}}};rpi=rpi||{};rpi.Utils={__:function(a,e){return e&&e[a]||a},isVisible:function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)&&"hidden"!==window.getComputedStyle(a).visibility},isRTL:function(){return"rtl"==(window.getComputedStyle?window.getComputedStyle(document.body,null).getPropertyValue("direction"):document.body.currentStyle.direction)},getParent:function(a,e){e=e||"rplg";if(0>a.className.split(" ").indexOf(e))for(;(a=a.parentElement)&&0>a.className.split(" ").indexOf(e););return a},lang:function(){var a=navigator;return(a.language||a.systemLanguage||a.userLanguage||"en").substr(0,2).toLowerCase()},popup:function(a,e,f){var n=document.documentElement;a=window.open(a,"","scrollbars=yes, width="+e+", height="+f+", top="+((window.innerHeight?window.innerHeight:n.clientHeight?n.clientHeight:screen.height)/2-f/2+(void 0!=window.screenTop?window.screenTop:window.screenY))+", left="+((window.innerWidth?window.innerWidth:n.clientWidth?n.clientWidth:screen.width)/2-e/2+(void 0!=window.screenLeft?window.screenLeft:window.screenX)));window.focus&&a.focus();return a},ajax:function(a,e,f,n){const l=new XMLHttpRequest;l.open(e,a,!0);l.setRequestHeader("Content-Type","application/json");l.onreadystatechange=function(){if((l.readyState===XMLHttpRequest.DONE||l.readyState===l.DONE)&&200===l.status){const p=JSON.parse(l.responseText);"function"===typeof n?n(p):"function"===typeof f&&f(p)}};l.send(f&&"function"!==typeof f?JSON.stringify(f):null)},anchor:function(a,e,f,n,l){const p=[];f.open_link&&p.push("noopener");f.nofollow_link&&p.push("nofollow");return'<a href="'+a+'"'+(n?' class="'+n+'"':"")+(f.open_link?' target="_blank"':"")+(p.length?' rel="'+p.join(" ")+'"':"")+(l?' aria-label="'+l+'"':"")+">"+e+"</a>"},rm:function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},capit:function(a){return a.charAt(0).toUpperCase()+a.slice(1)},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,e,f){const n=a.getAttribute("data-id"),l=new RegExp(f.col+"-[xsml]+"),p=new RegExp('$|(\\[data-id="'+n+'"\\]\\s+.'+f.card+"\\s*{\\s*--col:\\s*\\d+\\s*!important\\s*;?(\\s*--gap:\\s*\\d+\\s*!important;?)?})"),h=a.getElementsByClassName(f.cnt)[0];var q=null;return q={init:function(g,r){rpi.Utils.isVisible(h)?(g&&g(),q.resize(),window.addEventListener("resize",q.resize),r&&r(),rpi.Instances=rpi.Instances||[],rpi.Instances.push(q)):setTimeout(q.init,300)},resize:function(){let g=q.getSize();h.className=h.className.replace(l,f.col+"-"+g);if(e.breakpoints){let r=h.offsetWidth,b=e.breakpoints.split(",");b.sort(q.brsort);for(let d=0;d<b.length;d++){let k=b[d].split(":");if(r<parseInt(k[0])){q.setCol(k[1]);break}}}return g},getSize:function(){let g=h.offsetWidth;return 510>g?"xs":750>g?"x":1100>g?"s":1450>g?"m":1800>g?"l":"xl"},setCol:function(g){const r=this.getStyle();r.innerHTML=r.innerHTML.replace(p,(n?'[data-id="'+n+'"] ':"")+"."+f.card+"{--col:"+g+"!important;--gap:"+(g-1)+"!important}")},getCol:function(){let g=this.getStyle().innerHTML.match(/--col:\s*(\d+)/);return g&&1<g.length?g[1]:!1},getStyle:function(){let g=document.getElementById("rpi-style");g||(g=document.createElement("style"),g.id="rpi-style",document.head.appendChild(g));return g},setBreakpoints:function(g){e.breakpoints=g},brsort:function(g,r){return parseInt(g.split(":")[0])>parseInt(r.split(":")[0])?1:-1},clear:function(){window.removeEventListener("resize",q.resize)}}};rpi=rpi||{};rpi.Common=function(a,e,f){var n=null;return n={init:function(){var l=a.getElementsByClassName(f.time);let p=a.getElementsByClassName(f.text);for(var h=0;h<l.length;h++)l[h].innerHTML=n.time(l[h].getAttribute("data-time"));for(l=0;l<p.length;l++)(h=p[l])&&h.innerHTML&&(h.innerHTML=n.trimtext(h.innerHTML),h=h.getElementsByClassName(f.readmore)[0])&&(h.onclick=n.opentext)},initOnce:function(l){var p=l.getElementsByClassName(f.time)[0];l=l.getElementsByClassName(f.text)[0];p&&(p.innerHTML=n.time(p.getAttribute("data-time")));l&&l.innerHTML&&(l.innerHTML=n.trimtext(l.innerHTML),p=l.getElementsByClassName(f.readmore)[0])&&(p.onclick=n.opentext)},time:function(l){return e.time_format?l:rpi.Time.getTimeAgo(1E3*parseInt(l),rpi.Utils.lang())},trimtext:function(l,p){var h=parseInt(e.text_size);if(l&&h&&l.length>h){var q=l.substring(0,h).indexOf(" ")+1;if(1>q||h-q>h/2)q=h;var g=h="";0<q&&(h=l.substring(0,q-1),g=l.substring(q-1,l.length));return h+(!p&&g?'<span class="rpi-s">... </span><input type="hidden" value="'+encodeURIComponent(g)+'"></input><span class="'+f.readmore+'">'+rpi.Utils.__("read more",e.trans)+"</span>":"")}return l},opentext:function(){let l=this.parentNode,p=this.previousSibling,h=this.previousSibling.previousSibling,q=decodeURIComponent(p.value);rpi.Utils.rm(p);rpi.Utils.rm(h);rpi.Utils.rm(this);l.innerHTML+=q}}};rpi=rpi||{};rpi.View=function(a,e,f){const n=a.getAttribute("data-id");a.getElementsByClassName("rpi-cnt");const l=a.getElementsByClassName("rpi-header")[0],p=a.getElementsByClassName("rpi-content")[0],h=p?p.getElementsByClassName("rpi-cards")[0]:null,q=a.getElementsByClassName("rpi-url")[0],g=rpi.Media(a);var r=null;return r={boot:function(){f.cb&&f.cb.pre&&f.cb.pre();rpi.Utils.ajax(r.getAjaxUrl("brb_widget"),"POST",function(b){h.setAttribute("data-count",b.count);h.setAttribute("data-offset",b.offset);b.bizs&&r.addBusiness(b.bizs[0],b.options);r.addReviews(b,[],function(d){r.initStyle();f.cb&&f.cb.post&&f.cb.post()})});r.initPagin()},init:function(){g.init();r.initStyle();r.initPagin()},initPagin:function(){q&&(q.onclick=function(){r.loadNextReviews(e.pagination,function(b){r.delPaginBtn();f.cbp&&f.cbp(b)});return!1})},loadNextReviews:function(b,d){if(0<b){const k=[];b=parseInt(b);r.preloadReviews(k,b);r.loadAjaxReviews(k,b,d)}},preloadReviews:function(b,d){var k=parseInt(h.getAttribute("data-count")),u=parseInt(h.getAttribute("data-offset"));d=k-u>d?d:k-u;k=h.getElementsByClassName("rpi-card");if(k.length){u=k.length-1;for(let t=0;t<d;t++){let A=k[Math.round(Math.random()*u)].cloneNode(!0);A.style="filter: blur(4px);";h.appendChild(A);b.push(A)}}},loadAjaxReviews:function(b,d,k){rpi.Utils.ajax(r.getAjaxUrl("brb_get_reviews",d),"POST",function(u){h.setAttribute("data-offset",u.offset);r.addReviews(u,b,k)})},getAjaxUrl:function(b,d){const k=parseInt(h.getAttribute("data-offset"));b=brb_vars.ajaxurl+"?action="+b+"&id="+n+"&offset="+k+"&size="+(d||e.pagination);f.filter&&(d=f.filter,d.bid&&(b+="&bid="+d.bid),d.provider&&(b+="&provider="+d.provider));return b},addBusiness:function(b,d){const k=l.getElementsByClassName("rpi-cards")[0];b=r.createRating(b,d);k.appendChild(b)},createRating:function(b,d){const k=document.createElement("div");k.className="rpi-card";k.setAttribute("data-provider",b.provider);k.innerHTML=r.ratingInner(b,d);return k},ratingInner:function(b,d){return'<div class="rpi-card-inner rpi-flexwrap rpi-logo rpi-logo-'+b.provider+'"><div class="rpi-flex"><div class="rpi-img"><img src="'+b.photo+'" class="rpi-img" loading="lazy" alt=""></div><div class="rpi-info"><a href="'+b.url+'" class="rpi-name">'+b.name+"</a>"+r.ratingScore(b)+"</div></div>"+(d.header_hide_seeall&&d.header_hide_write?"":r.ratingBtns(b,d))+"</div>"},ratingScore:function(b){let d=b.rating;"yelp"==b.provider&&(d=Math.round(2*d)/2);return'<div class="rpi-score">
1'+rpi.View.stars(d,b.provider,!0)+"</div>"},ratingBtns:function(b,d){const k=r.allReviewsUrl(b),u=r.writeReviewUrl(b);return'<div class="rpi-slider-btn">'+(d.header_hide_seeall?"":'<div class="rpi-review_us rpi-clickable"><a href="'+k+'" target="_blank" rel="noopener">See all reviews</a></div>')+(d.header_hide_write?"":'<div class="rpi-review_us rpi-clickable"><a href="'+u+'" class="rpi-logo_after rpi-logo-'+b.provider+'" target="_blank" rel="noopener" onclick="rpi.Utils.popup(\''+u+"', 800, 600)\">review us on</a></div>")+"</div>"},allReviewsUrl:function(b){if(b.wr){let d=b.wr.split(":");b.id=d[1];b.provider=d[0]}switch(b.provider){case "google":return"https://search.google.com/local/reviews?placeid="+b.id;case "facebook":return"https://facebook.com/"+b.id+"/reviews";case "yelp":return b.url}},writeReviewUrl:function(b){if(b.wr){let d=b.wr.split(":");b.id=d[1];b.provider=d[0]}switch(b.provider){case "google":return"https://search.google.com/local/writereview?placeid="+b.id;case "facebook":return"https://facebook.com/"+b.id+"/reviews";case "yelp":return"https://www.yelp.com/writeareview/biz/"+b.id}},addReviews:function(b,d,k){let u=b.reviews.length;a.getAttribute("data-opts")&&(e=JSON.parse(a.getAttribute("data-opts")));for(let t=0;t<u;t++){let A=r.createCard(d.shift(),b.reviews[t]);f.common.initOnce(A);r.initReviewStyle(A,e);r.initLogoStyle(A,e.style_logo);d.length||h.appendChild(A)}for(;d.length;)rpi.Utils.rm(d.shift());g.init();r.delPaginBtn();k&&k(b)},createCard:function(b,d){b?b.style="":(b=document.createElement("div"),b.className="rpi-card");b.setAttribute("data-provider",d.provider);b.innerHTML=r.reviewInner(d);return b},reviewInner:function(b){a.style.getPropertyValue("--img-size");let d=b.reply?b.reply.text||b.reply:null;return'<div class="rpi-card-inner"><i></i><div class="rpi-flex">'+(e.hide_avatar?"":r.reviewAvatar(b))+'<div class="rpi-info">'+(e.hide_name?"":r.reviewName(b))+(e.disable_review_time?"":'<div class="rpi-time" data-time="'+b.time+'"></div>')+rpi.View.stars(b.rating,b.provider)+'</div></div><div class="rpi-body"><div class="rpi-text rpi-scroll" tabindex="0">'+b.text+" </div>"+(b.media?'<div class="rpi-media">'+r.reviewMedia(b)+"</div>":"")+(d?'<div class="rpi-reply rpi-scroll"><b>'+rpi.Utils.__("Response from the owner",e.trans)+":</b> "+d+"</div>":"")+"</div></div>"},reviewReply:function(b,d){let k=b.getElementsByClassName("rpi-reply")[0];k||(k=document.createElement("div"),k.className="rpi-reply rpi-scroll",b.getElementsByClassName("rpi-body")[0].appendChild(k));k.innerHTML="<b>"+rpi.Utils.__("Response from the owner",e.trans)+":</b> "+d},reviewName:function(b){const d=rpi.Utils.capit(b.provider)+" user",k=b.author_name?b.author_name:d;return b.author_url&&!e.disable_user_link?rpi.Utils.anchor(b.author_url,k,e,"rpi-name",d+" profile"):'<div class="rpi-name">'+k+"</div>"},reviewAvatar:function(b){let d=b.author_avatar;var k=a.style.getPropertyValue("--img-size");k=k?k.replace("px",""):56;let u=e.hide_name&&b.author_name?b.author_name:"";switch(b.provider){case "google":(b=d.match(/googleusercontent\.com\/([^\/]+)\/([^\/]+)\/([^\/]+)\/([^\/]+)\/photo\.jpg/))&&4<b.length&&"AAAAAAAAAAA"==b[3][0]&&(d=d.replace("/photo.jpg","/s128-c0x00000000-cc-rp-mo/photo.jpg"));d&&=/=.*s\d{2,3}/.test(d)?d.replace(/(=.*)s\d{2,3}/,"$1s"+k):-1<d.indexOf("-mo")?d.replace("-mo","-mo-s"+k):d.replace("-rp","-rp-s"+k);break;case "yelp":d&&=d.replace(/(ms)|(o)\.jpg/,128>=k?"ms":"o")}return'<div class="rpi-img"><img src="'+d+'" class="rpi-img" '+(e.lazy_load_img?'loading="lazy"':"")+' width="'+k+'" height="'+k+'" alt="'+u+'" onerror="if(this.src!=\''+brb_vars.gavatar+"')this.src='"+brb_vars.gavatar+"';\"></div>"},reviewMedia:function(b){let d="";var k=a.style.getPropertyValue("--media-lines");k=22*(k?k:2);for(let u=0;u<b.media.length;u++)d+='<img class="rpi-thumb rpi-clickable" src="'+b.media[u].thumbnailUrl.replace(/(=.*)s\d{2,3}/,"$1s"+k)+'" onclick="rpi.Utils.popup(\''+b.media[u].googleUrl+'\', 800, 600)" alt="" loading="lazy">';return d},initStyle:function(){var b=a.getAttribute("data-opts");b&&(e=JSON.parse(b));if(l){b=l.getElementsByClassName("rpi-card");for(var d=0;d<b.length;d++)this.initLogoStyle(b[d],e.head_logo),this.initYelpBasedLogo(b[d],e.head_logo)}if(p){b=h.getElementsByClassName("rpi-card");for(d=0;d<b.length;d++)this.initReviewStyle(b[d],e);this.initCtrlStyle(e);b=p.getElementsByClassName("rpi-card");for(d=0;d<b.length;d++)this.initLogoStyle(b[d],e.style_logo)}},initYelpBasedLogo:function(b,d){5==d&&(b=b.getElementsByClassName("rpi-logo-yelp")[0])&&!b.innerText&&(b.classList.remove("rpi-logo"),b.classList.add("rpi-logo_after"))},initReviewStyle:function(b,d){let k=b.getElementsByClassName("rpi-card-inner")[0],u=b.getElementsByTagName("i")[0],t=b.getElementsByClassName("rpi-flex")[0],A=b.getElementsByClassName("rpi-img")[0],y=b.getElementsByClassName("rpi-info")[0],B=b.getElementsByClassName("rpi-time")[0],D=b.getElementsByClassName("rpi-name")[0],z=b.getElementsByClassName("rpi-stars")[0],x=b.getElementsByClassName("rpi-body")[0],v=b.getElementsByClassName("rpi-text")[0],c=b.getElementsByClassName("rpi-reply")[0];D&&y.appendChild(D);B&&y.appendChild(B);z&&y.appendChild(z);b.className="rpi-card";k.className="rpi-card-inner";t.className="rpi-flex";x.className="rpi-body";u.className="";switch(d.style_style){case "1":case "7":k.appendChild(t);x&&k.appendChild(x);x.className+=" rpi-normal-up__body";break;case "2":case "8":x&&k.appendChild(x);k.appendChild(t);x.className+=" rpi-normal-down__body";break;case "3":b.appendChild(t);b.appendChild(k);x&&k.appendChild(x);u.className="rpi-triangle rpi-triangle_up";t.className+=" rpi-bubble__flex rpi-bubble__flex_up";"none"!=this.getCssVar("--card-br")&&(u.className+=" rpi-triangle__br_up",k.className+=" rpi-bubble__inner rpi-bubble__inner_up");break;case "4":b.appendChild(k);b.appendChild(t);x&&k.appendChild(x);u.className="rpi-triangle rpi-triangle_down";t.className+=" rpi-bubble__flex rpi-bubble__flex_down";"none"!=this.getCssVar("--card-br")&&(u.className+=" rpi-triangle__br_down",k.className+=" rpi-bubble__inner rpi-bubble__inner_down");break;case "5":k.appendChild(t);t.appendChild(y);x&&y.appendChild(x);t.className+=" rpi-shift-up__flex";break;case "6":k.appendChild(t),t.appendChild(y),x&&y.prepend(x),t.className+=" rpi-shift-down__flex"}switch(d.style_style){case "7":b.className+=" rpi-avaborder-up";break;case "8":b.className+=" rpi-avaborder-down"}x&&c&&x.appendChild(c);if(z)switch(d.style_stars){case "1":B?(y.insertBefore(z,B),y.insertBefore(B,z)):D?(y.insertBefore(z,D),y.insertBefore(D,z)):y.appendChild(z);break;case "2":B?y.insertBefore(z,B):y.appendChild(z);break;case "3":D?y.insertBefore(z,D):B?y.insertBefore(z,B):y.prepend(z);break;case "4":x?x.prepend(z):k.appendChild(z);break;case "5":v?v.prepend(z):x.appendChild(z);break;case "6":x?(x.appendChild(z),c&&x.insertBefore(z,c)):k.appendChild(z)}if(A)switch(d.style_ava){case "1":t.appendChild(A);t.appendChild(y);break;case "2":t.appendChild(y),t.appendChild(A)}}
1,initCtrlStyle:function(b){let d=p.getElementsByClassName("rpi-controls")[0];if(d)switch(d.className="rpi-controls",b.style_style){case "3":d.className+=" rpi-bubble-up__ctrl";break;case "4":d.className+=" rpi-bubble-down__ctrl"}},initLogoStyle:function(b,d){let k=b.getElementsByClassName("rpi-card-inner")[0],u=b.getAttribute("data-provider"),t=u.split(",");1<t.length?this.initLogoMultiple(b,k,t,d):this.initLogoSingle(b,k,u,d)},initLogoSingle:function(b,d,k,u){let t=b.getElementsByClassName("rpi-logo")[0];k=["rpi-logo","rpi-logo-"+k];t&&t.classList.remove(...k);switch(u){case "1":case "6":b=b.getElementsByClassName("rpi-body")[0];"6"==u&&k.push("rpi-logo-left");d.classList.contains("rpi-bubble__inner")&&b?b.classList.add(...k):d.classList.add(...k);break;case "2":(d=b.getElementsByClassName("rpi-name")[0])&&d.classList.add(...k);break;case "3":(d=b.getElementsByClassName("rpi-img")[0])&&d.classList.add(...k);break;case "4":b.getElementsByClassName("rpi-stars")[0].classList.add(...k);break;case "5":if(d=b.getElementsByClassName("rpi-based")[0])u=d.innerText.match(/(\d+)/)[1],d.innerHTML=d.innerText.replace(u,u+' <span class="'+k.join(" ")+'"></span>')}},initLogoMultiple:function(b,d,k,u){let t=b.getElementsByClassName("rpi-logos")[0];t||=this.createLogos(k);switch(u){case "0":rpi.Utils.rm(t);break;case "1":d.prepend(t);break;case "2":(b=b.getElementsByClassName("rpi-name")[0])&&b.prepend(t);break;case "4":d=b.getElementsByClassName("rpi-score")[0];b=b.getElementsByClassName("rpi-stars")[0];d.appendChild(t);d.insertBefore(t,b);break;case "5":if(b=b.getElementsByClassName("rpi-based")[0])d=b.innerText.match(/(\d+)/)[1],b.innerHTML=b.innerText.replace(d,d+" "+t.outerHTML),rpi.Utils.rm(t)}},createLogos:function(b){let d=document.createElement("span");d.className="rpi-logos";for(let k=0;k<b.length;k++)d.innerHTML+='<span class="rpi-logo rpi-logo-'+b[k]+'">';return d},getCssVar:function(b){return a.style.getPropertyValue(b)},delPaginBtn:function(){if(q){const b=parseInt(h.getAttribute("data-count"));parseInt(h.getAttribute("data-offset"))>=b&&rpi.Utils.rm(q)}}}};rpi.View.STAR='<span class="rpi-star"></span>';rpi.View.STAR_H='<span class="rpi-star rpi-star-h"></span>';rpi.View.STAR_O='<span class="rpi-star rpi-star-o"></span>';rpi.View.stars=function(a,e,f=!1){return'<div class="rpi-stars" data-info="'+[a,e].join()+'">'+rpi.View.star(a,f)+"</div>"};rpi.View.star=function(a,e=!1){let f="";if(0<a){let n=1;e&&(n++,f=rpi.View.starRating(a));for(;6>n;n++)e=a-n,f=0<=e?f+rpi.View.STAR:-1<e&&0>e?-.75>e?f+rpi.View.STAR_O:-.25<e?f+rpi.View.STAR:f+rpi.View.STAR_H:f+rpi.View.STAR_O}else f=[rpi.View.STAR_O,rpi.View.STAR_O,rpi.View.STAR_O,rpi.View.STAR_O,rpi.View.STAR_O].join("");return f};rpi.View.starRating=function(a){return'<span class="rpi-star" data-rating="'+a+'"></span>'};rpi.View.widthAnim=function(a,e,f){const n=a.style,l=e+"px";"none"==n.display?(n.display="block",setTimeout(function(){n.opacity=0<n.opacity?0:1;n.width=n.width!=l?l:0},10)):(n.opacity=0<n.opacity?0:1,n.width=n.width!=l?l:0,setTimeout(function(){n.display="none"},f))};rpi=rpi||{};rpi.Media=function(a,e,{root:f="rpi",card:n="rpi-card"}={}){var l=null,p=null;return p={init:function(){l=a.getElementsByClassName("rpi-thumb");for(let h=0;h<l.length;h++)l[h].setAttribute("data-idx",h),function(q,g){q.onclick=function(){p.show(q,g);return!1}}(l[h],h)},clicks:function(h){h=h.getElementsByClassName("rpi-thumb");for(let q=0;q<h.length;q++)(function(g,r){g.onclick=function(){let b=parseInt(g.getAttribute("data-idx"));p.show(l[b],b);return!1}})(h[q],q)},show:function(h,q){if(!(0>q||q>=l.length)){var g=document.querySelector(".rpi-lightbox"),r=h.src.replace(/=s[0-9]{1,3}/g,"=s500");h=rpi.Utils.getParent(h,n).outerHTML;if(g){let b=g.querySelector(".rpi-lightbox-media img"),d=g.querySelector(".rpi-lightbox-review"),k=g.querySelector(".rpi-lightbox-prev");next=g.querySelector(".rpi-lightbox-next");b.src=r;d.innerHTML!==h&&(d.innerHTML=h,p.clicks(d));k.onclick=function(u){p.show(l[q-1],q-1)};next.onclick=function(u){p.show(l[q+1],q+1)}}else g=document.createElement("div"),g.className="rpi-lightbox",g.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="'+r+'" alt=""><div class="rpi-lightbox-btn rpi-lightbox-next"></div></div><div class="'+f+' rpi-lightbox-review">'+h+"</div></div></div></div>",r=g.querySelector(".rpi-x"),h=g.querySelector(".rpi-lightbox-prev"),next=g.querySelector(".rpi-lightbox-next"),r.oncl
1ick=function(){g.style.display="none"},g.onclick=function(b){g==b.target&&(g.style.display="none")},h.onclick=function(b){p.show(l[q-1],q-1)},next.onclick=function(b){p.show(l[q+1],q+1)},p.clicks(g),document.body.appendChild(g);g.style.display="flex"}}}};rpi=rpi||{};rpi.Flash=function(a,e){var f=a.getAttribute("data-id");sessionStorage.getItem("rpi_flash_"+f)||(e.ajax_load?rpi.Utils.ajax(brb_vars.ajaxurl+"?action=brb_widget&id="+f,"POST",function(n){a.innerHTML='<div class="rpi-flash{{hide}}"><div class="rpi-flash-wrap{{right}}"><div class="rpi-flash-content"><div class="rpi-flash-card"><div class="rpi-flash-story rpi-flex" data-idx="1"></div><div class="rpi-flash-form rpi-content"><div class="rpi-cards" data-count="{{count}}" data-offset="{{offset}}"></div><div style="text-align:center"><a href="#" class="rpi-url">More reviews</a></div></div></div><div class="rpi-x"></div></div></div></div>'.replace("{{hide}}",n.options.flash_hide_mobile?" rpi-flash-hide":"").replace("{{right}}","right"==n.options.flash_pos?" rpi-flash-right":"").replace("{{count}}",n.count).replace("{{offset}}",n.reviews.length);rpi.Flash.core(a,e,n.options).init(n)}):(f=a.getElementsByClassName("rpi-flash")[0],f=JSON.parse(f.getAttribute("data-opts")),rpi.Flash.core(a,e,f).init()))};rpi.Flash.LOGO='<span style="position:relative;display:inline-block"><svg viewBox="0 0 1792 1792" width="44" height="44"><path d="M1728 647q0 22-26 48l-363 354 86 500q1 7 1 20 0 21-10.5 35.5t-30.5 14.5q-19 0-40-12l-449-236-449 236q-22 12-40 12-21 0-31.5-14.5t-10.5-35.5q0-6 2-20l86-500-364-354q-25-27-25-48 0-37 56-46l502-73 225-455q19-41 49-41t49 41l225 455 502 73q56 9 56 46z" fill="#FFAF02"></path></svg><svg width="25" height="25" viewBox="0 0 1792 1792" style="position:absolute;bottom:0;right:0;border:1px solid #fff;border-radius:50%;background:#fff"><path d="M1299 813l-422 422q-19 19-45 19t-45-19l-294-294q-19-19-19-45t19-45l102-102q19-19 45-19t45 19l147 147 275-275q19-19 45-19t45 19l102 102q19 19 19 45t-19 45zm141 83q0-148-73-273t-198-198-273-73-273 73-198 198-73 273 73 273 198 198 273 73 273-73 198-198 73-273zm224 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z" fill="#8cc976"></path></svg></span>';rpi.Flash.core=function(a,e,f){const n="rpi_flash_"+a.getAttribute("data-id"),l=a.getElementsByClassName("rpi-flash")[0],p=a.getElementsByClassName("rpi-flash-content")[0],h=p.getElementsByClassName("rpi-x")[0],q=p.getElementsByClassName("rpi-flash-card")[0],g=p.getElementsByClassName("rpi-flash-story")[0],r=p.getElementsByClassName("rpi-cards")[0],b=[],d=function(c){for(let m=0;m<c.reviews.length;m++)b.push(c.reviews[m])},k=rpi.Common(a,e,{time:"rpi-time",text:"rpi-text",readmore:"rpi-readmore"}),u=rpi.View(a,e,{common:k,cbp:d});let t=0,A=!1,y=!1,B=1E3*(f.flash_start||3),D=1E3*(f.flash_visible||5),z=1E3*(f.flash_invisible||5),x=null;var v=null;return v={init:function(c){c?u.addReviews(c,[],function(m){u.init();v.init2()}):(k.init(),u.init(),v.init2())},init2:function(){v.fillReviews();h.onclick=v.hide;g.onclick=v.showReview;document.body.appendChild(a);setTimeout(v.showStory,B)},fillReviews:function(){let c=a.getElementsByClassName("rpi-card");for(let w=0;w<c.length;w++){let C=c[w].getElementsByClassName("rpi-stars")[0].getAttribute("data-info").split(",");var m="";f.disable_review_time||(m=c[w].getElementsByClassName("rpi-time")[0],m=f.time_format?m.innerText:m.getAttribute("data-time"));let E=c[w].getElementsByClassName("rpi-name"),F=c[w].getElementsByClassName("rpi-text");b.push({rating:C[0],text:F.length&&F[0].firstChild?F[0].firstChild.nodeValue:"",time:m,author_avatar:f.hide_avatar?"":c[w].querySelector("img.rpi-img").getAttribute("src"),author_name:f.hide_name?"":E.length?E[0].innerText:"",author_url:f.hide_name?"":E.length?E[0].href:"",provider:c[w].getAttribute("data-provider")})}},showStory:function(){if(!y&&!A)if(v.nextStory(a,g,t,b),p.className="rpi-flash-content rpi-flash-visible",t+1<b.length)t+=1;else{const c=parseInt(r.getAttribute("data-count")),m=parseInt(r.getAttribute("data-offset"));c>m?(u.loadNextReviews(e.pagination,d),t+=1):t=0}A=!1;x=setTimeout(function(){var c;if(c=!y)c=p.parentElement.querySelector(":hover")!==p;
1c&&!A&&(p.className="rpi-flash-content");x=setTimeout(v.showStory,z)},D)},showReview:function(){y=!0;let c=parseInt(g.getAttribute("data-idx")),m=q.querySelector(".rpi-flash-form .rpi-card:nth-child("+c+")");m.className="rpi-card rpi-highlight";setTimeout(function(){m.scrollIntoView({behavior:"smooth",block:"center"})},300);q.className="rpi-flash-card rpi-flash-expanded";p.className="rpi-flash-content rpi-flash-visible";h.className="rpi-x rpi-xa";h.onclick=function(){m.className="rpi-card";q.className="rpi-flash-card";h.className="rpi-x";y=!1;A=!0;h.onclick=v.hide}},hide:function(){let c=JSON.parse(sessionStorage.getItem(n)||"{}");c.hide=!0;sessionStorage.setItem(n,JSON.stringify(c));clearTimeout(x);p.className="rpi-flash-content"},nextStory:function(c,m,w,C){q.style.height="auto";l.style.setProperty("--flash-height","auto");if(m.firstChild){c=C[w];C=m.getElementsByClassName("rpi-flash-img");const E=m.getElementsByClassName("rpi-flash-head"),F=m.getElementsByClassName("rpi-flash-body"),G=m.getElementsByClassName("rpi-flash-footer");f.flash_user_photo&&C.length&&(C[0].innerHTML=v.img(c));E.length&&(E[0].innerHTML=v.head(c));F.length&&(F[0].innerHTML=v.body(c));G.length&&(G[0].innerHTML=v.footer(c));m.setAttribute("data-idx",w+1)}else m.innerHTML=v.createStory(w,C);setTimeout(function(){l.style.setProperty("--flash-height",m.offsetHeight+"px");q.style.height=""},1)},createStory:function(c,m){c=m[c];return(f.flash_hide_logo&&!f.flash_user_photo?"":'<div class="rpi-flash-img">'+v.img(c)+"</div>")+'<div class="rpi-info"><div class="rpi-flash-head">'+v.head(c)+'</div><div class="rpi-flash-body">'+v.body(c)+'</div><div class="rpi-flash-footer">'+v.footer(c)+"</div></div>"},img:function(c){return f.flash_user_photo?'<img src="'+c.author_avatar+'" class="rpi-img" alt="'+c.author_name+'" width="44" height="44">':rpi.Flash.LOGO},head:function(c){return f.flash_head?v.temp(c,f.flash_head):v.photo(c,16,16)+(f.hide_name?"":v.name(c))+"<span> "+f.text.m1.replace("%s",'<span class="rpi-flash-rating rpi-star">'+c.rating+"</span>")+"</span>"},body:function(c){return f.flash_body?v.temp(c,f.flash_body):rpi.View.stars(c.rating,c.provider)+f.text.m2+v.provider(c)},footer:function(c){return f.flash_footer?v.temp(c,f.flash_footer):f.disable_review_time?"":k.time(c.time)},name:function(c){return'<span class="rpi-flash-name">'+c.author_name+"</span> "},star:function(c){return'<span class="rpi-flash-rating rpi-star">'+c.rating+"</span>"},provider:function(c){return'<span class="rpi-logo rpi-logo-'+c.provider+'"></span>'},photo:function(c,m,w){return f.flash_user_photo||f.hide_avatar?"":'<span class="rpi-flash-photo">'+v.photoImg(c,m,w)+"</span>"},photoImg:function(c,m,w){return'<img src="'+c.author_avatar+'" class="rpi-img" alt="'+c.author_name+'" width="'+m+'" height="'+w+'">'},temp:function(c,m){return decodeURIComponent(m).replace("{{review_rating}}",v.star(c)).replace("{{review_stars}}",rpi.View.stars(c.rating,c.provider)).replace("{{review_text}}",k.trimtext(c.text,!0)).replace("{{review_time}}",k.time(c.time)).replace("{{review_provider}}",v.provider(c)).replace("{{review_name}}",v.name(c)).replace("{{review_name_url}}",c.author_url).replace("{{review_photo}}",v.photo(c,16,16))}}};rpi=rpi||{};rpi.Badge=function(a,e){if(!e.ajax_load){var f=a.getElementsByClassName("rpi-badge-cnt")[0];f=JSON.parse(f.getAttribute("data-opts"));rpi.Badge.core(a,e,f).init()}};rpi.Badge.core=function(a,e,f){const n=a.getAttribute("data-id");a.getElementsByClassName("rpi-badge-cnt");const l=a.getElementsByClassName("rpi-badge");var p=null;return p={init:function(h){if(!h)for(h=0;h<l.length;h++)(function(q){let g="rpi_badge_"+[n,q.getAttribute("data-provider"),q.getAttribute("data-id")].join("_");var r=sessionStorage.getItem(g);q.style.display=r?"none":"inline-block";if(!r){if(r=q.getElementsByClassName("rpi-x")[0])r.onclick=function(){sessionStorage.setItem(g,1);q.style.display="none"};"sidebar"==f.badge_click&&(q.getElementsByClassName("rpi-badge-body")[0].onclick=p.badgeClick)}})(l[h])},badgeClick:function(h){var q=h.currentTarget.parentNode;h=q.getAttribute("data-id");q=q.getAttribute("data-provider");var g=["rpi_sb",h,q].join("_");let r=document.getElementById(g);if(r)rpi.View.widthAnim(r.getElementsByClassName("rpi-sb")[0],368,300);else{r=document.createElement("div");r.id=g;r.className="rpi";r.setAttribute("data-id",n);r.setAttribute("data-opts",a.getAttribute("data-opts"));r.setAttribute("style",a.getAttribute("style"));r.innerHTML='<div class="rpi-sb rpi-sb-'+f.badge_pos+'" style="display:none;width:0"><div class="rpi-sbb"></div><div class="rpi-sbh"><div class="rpi-sbhi rpi-header"><div class="rpi-cards"></div></div></div><div class="rpi-sbc"><div class="rpi-sbci rpi-content"><div class="rpi-cards" data-count="0" data-offset="0"></div><div style="text-align:center"><a href="#" class="rpi-url">More reviews</a></div></div></div><div class="rpi-sbf"></div><div class="rpi-x"></div><style>.rplg img.rpi-img{max-width:var(--img-size)!important;height:var(--img-size)!important}</style></div>';document.body.appendChild(r);e.style_style="5";g=rpi.Common(r,e,{time:"rpi-time",text:"rpi-text",readmore:"rpi-readmore"});const b={};h&&(b.bid=h);q&&(b.provider=q);const d=r.getElementsByClassName("rpi-sb")[0],k=r.getElementsByClassName("rpi-header")[0];rpi.View(r,e,{common:g,filter:b,cb:{pre:function(){rpi.View.widthAnim(d,368,300)},post:function(){d.style.setProperty("--sbh-height",k.offsetHeight+"px")}}}
1).boot();r.getElementsByClassName("rpi-x")[0].onclick=function(u){rpi.View.widthAnim(d,368,300)}}}}};rpi=rpi||{};rpi.Slider=function(a,e,f,n){a.getAttribute("data-id");const l=a.getElementsByClassName(f.cnt)[0],p=a.getElementsByClassName(f.content)[0],h=p?p.getElementsByClassName(f.cards)[0]:null,q=p?p.getElementsByClassName(f.dotsWrap)[0]:null,g=p?p.getElementsByClassName(f.dots)[0]:null,r=h?parseInt(h.getAttribute("data-count")):0;var b=null,d=p?p.getElementsByClassName(f.card):null,k="",u="",t=null,A=null,y=null,B=null,D=!1,z=!1,x=0,v=0;return b={init:function(c,m){rpi.Utils.isVisible(l)?(c&&c(),b.resize(),b.actions(),d.length&&b.swipeAutoStart(),m&&m(),rpi.Instances=rpi.Instances||[],rpi.Instances.push(b)):setTimeout(b.init,300)},resize:function(c){let m=n.column.resize(),w=n.column.getCol();c&&h.scrollLeft!=c*b.reviewWidth()&&h.scrollTo(d[c].offsetLeft,0);!d.length||k==m&&u==w||(b.hasDots()&&(b.dotsInit(),b.dotSwipe(c,!0)),k=m,u=w)},actions:function(){e.mousestop&&b.addMouseEvents();window.addEventListener("resize",b.resizeListener);h&&(h.addEventListener("scroll",b.scrollListener,!1),e.wheelscroll&&p.addEventListener("wheel",b.wheelListener,!1));var c=l.getElementsByClassName(f.btnPrev)[0];c&&(c.onclick=function(m){b.btnClick(-1)});if(c=l.getElementsByClassName(f.btnNext)[0])c.onclick=function(m){b.btnClick(1)}},resizeListener:function(){var c=v;clearTimeout(t);t=setTimeout(b.resize,150,c)},scrollListener:function(){clearTimeout(A);clearTimeout(y);y=setTimeout(b.scrollEnd,150)},wheelListener:function(c){var m=c.target;if((m=-1<m.className.indexOf(f.text)?m:-1<m.parentNode.className.indexOf(f.text)?m.parentNode:null)&&m.scrollHeight>m.clientHeight)return!0;c.preventDefault();x++;clearTimeout(B);B=setTimeout(b.wheelEnd,150,c)},addMouseEvents:function(){l.addEventListener("mouseover",b.mouseOver,!1);l.addEventListener("mouseleave",b.mouseLeave,!1)},delMouseEvents:function(){l.removeEventListener("mouseover",b.mouseOver);l.removeEventListener("mouseleave",b.mouseLeave)},mouseOver:function(){D=1;b.swipeAutoStop()},mouseLeave:function(){D=0;b.swipeAutoStart()},btnClick:function(c){b.swipeManual(c*b.swipePerBtn())},wheelEnd:function(c){b.swipeManual(Math.sign(c.wheelDelta)*x*b.swipeStep());x=0},scrollEnd:function(){v=b.reviewsIdx();z?z=!1:b.loadNextReviews();(!e.mousestop||D)&&e.mousestop||(!e.clickstop||z)&&e.clickstop||b.swipeAutoStart();b.hasDots()&&b.dotSwipe(void 0,!0)},loadNextReviews:function(c){c=c?b.reviewsIdx()+parseInt(c):b.hasDots()?(c=g.getElementsByClassName("active")[0])?parseInt(c.getAttribute("data-index"))*b.swipePerDot():b.reviewsIdx():b.reviewsIdx();c=b.getAjaxSize(c);0<c&&n.view.loadNextReviews(c)},getAjaxSize:function(c){let m=0;const w=parseInt(h.getAttribute("data-offset")),C=parseInt(e.pagination);if(r>w){let E=c-w;Math.abs(E)<3*b.swipePerDot()?m=C:E&&(m=Math.ceil(c/C)*C-w)}c=w+m-r;return 0<c?m-c:m},dotsInit:function(){if(g){var c=Math.round(r/b.swipePerDot());g.innerHTML="";for(let m=0;m<c;m++){let w=document.createElement("div");w.className=f.dot;w.setAttribute("data-index",m);w.setAttribute("title",m);w.onclick=b.dotClick;g.appendChild(w)}b.dotsPadding()}},dotClick:function(){let c=parseInt(this.getAttribute("data-index"));var m=g.getElementsByClassName("active")[0];m=parseInt(m.getAttribute("data-index"));b.swipeManual(Math.abs(c-m)*b.swipePerDot()*Math.sign(c-m))},dotsPadding:function(){let c=q.getBoundingClientRect().height;l.style.paddingBottom=c+"px"},dotSwipe:function(c,m){c=Math.round((void 0!==c?c:b.reviewsIdx())/b.swipePerDot());c=0>c?0:c>=g.childNodes.length?g.childNodes.length-1:c;c=g.querySelector("."+f.dot+'[data-index="'+c+'"]');let w=g.getElementsByClassName("active")[0];b.dotActivate(w,c);b.dotScroll(c,m)},dotScroll:function(c,m){let w=Math.round(g.scrollWidth/g.childNodes.length),C=Math.floor(Math.round(g.offsetWidth/w)/2);m?g.scrollTo(c.offsetLeft-C*w,0):g.scrollTo({left:c.offsetLeft-C*w,behavior:"smooth"})},dotActivate:function(c,m){c&&(c.classList.remove("active"),c.classList.remove("s1"),c.previousSibling&&(c.previousSibling.classList.remove("s2"),c.previousSibling.previousSibling&&c.previousSibling.previousSibling.classList.remove("s3")),c.nextSibling&&(c.nextSibling.classList.remove("s2"),c.nextSibling.nextSibling&&c.nextSibling.nextSibling.classList.remove("s3")));m&&(m.classList.add("active"),m.classList.add("s1"),m.previousSibling&&(m.previousSibling.classList.add("s2"),m.previousSibling.previousSibling&&m.previousSibling.previousSibling.classList.add("s3")),m.nextSibling&&(m.nextSibling.classList.add("s2"),m.nextSibling.nextSibling&&m.nextSibling.nextSibling.classList.add("s3")))},swipeManual:function(c){z=!0;b.loadNextReviews(c);b.scroll(c);e.clickstop&&(b.swipeAutoStop(),b.delMouseEvents())},swipeAuto:function(){if(b.isScrollEnd())b.scroll(-(r-b.reviewsPerView()));else{let c=b.swipeStep()<b.reviewsAhead()?b.swipeStep():b.reviewsAhead();b.scroll(c)}b.swipeAutoStart()},scroll:function(c){c=b.reviewsIdx()+parseInt(c);let m=rpi.Utils.isRTL()?c+b.reviewsPerView()-1:c;m=0>m?0:m>=d.length?d.length-1:m;-1<m&&m<d.length&&(h.scrollTo({left:d[m].offsetLeft,behavior:"smooth"}),b.hasDots()&&b.dotSwipe(c))},swipeAutoStart:function(){e.autoplay&&(A=setTimeout(b.swipeAuto,1E3*parseInt(e.speed)))},swipeAutoStop:function(){clearTimeout(A);y&&setTimeout(function(){clearTimeout(y)},100)},isScrollEnd:function(){var c=h.querySelector("."+f.card+":last-child"),m=c.getBoundingClientRect();c=c.parentNode.getBoundingClientRect();return(2>Math.abs(c.left-m.left)||c.left<=m.left)&&m.left<c.right&&(2>Math.abs(c.right-m.right)||c.right>=m.right)&&m.right>c.left},swipeStep:function(){return e.swipe_step||b.reviewsPerView()},swipePerBtn:function(){return e.swipe_per_btn||b.reviewsPerView()},swipePerDot:function(){return e.swipe_per_dot||b.reviewsPerView()},reviewWidth:function(){return Math.round(h.scrollWidth/d.length)},reviewHeight:function(){return d[0].offsetHeight},reviewsPerView:function(){return Math.round(h.offsetWidth/b.reviewWidth())},reviewsIdx:function(){let c=rpi.Utils.isRTL()?-h.scrollLeft:h.scrollLeft;return Math.round(c/b.reviewWidth())},reviewsAhead:function(){return d.length-(b.reviewsIdx()+b.reviewsPerView())},hasDots:function(){return g&&!e.hide_dots&&0<b.swipePerDot()},setBreakpoints:function(c){n.column.setBreakpoints(c);b.resize()},clear:function(){clearTimeout(t);clearTimeout(A);clearTimeout(y);clearTimeout(B);window.removeEventListener("resize",b.resizeListener);h.removeEventListener("scroll",b.scrollListener);p.removeEventListener("wheel",b.wheelListener)}}};var RichPlugins=RichPlugins||{Tag:function(a,e){const f=a.getAttribute("data-id"),n=a.getElementsByClassName("rpi-tag")[0],l=a.getElementsByClassName("rpi-tag-cnt")[0],p=JSON.parse(l.getAttribute("data-opts"));var h=null;return h={init:function(){let q=a.querySelector(".rpi-stars[data-reviewus]");q&&(h.starsInit(q),q.onclick=function(g){g="svg"==g.target.tagName?g.target:g.target.parentNode;g=[...g.parentNode.children].indexOf(g);rpi.Utils.popup(2<g?this.getAttribute("data-reviewus"):"https://app.richplugins.com/feedback?s="+g,800,600)});0<p.tag_popup&&setTimeout(function(){n.className+=" rpi-pop-up"},1E3*p.tag_popup);if("sidebar"==p.tag_click){let g=a.getElementsByClassName("rpi-sb")[0];g||(g=document.createElement("div"),g.className="rpi-sb",g.setAttribute("data-layout",p.tag_sidebar),g.setAttribute("style","display:none;width:0"),g.innerHTML='<div class="rpi-sbb"></div><div class="rpi-sbc"><div class="rpi-sbci"></div></div><div class="rpi-x"></div>',a.appendChild(g));g.getElementsByClassName("rpi-x")[0].onclick=function(r){rpi.View.widthAnim(g,368,300)};l.onclick=function(r){rpi.View.widthAnim(g,368,300);let b=g.getElementsByClassName("rpi-sbci")[0];""==b.innerHTML&&rpi.Utils.ajax(brb_vars.ajaxurl+"?action=brb_embed&brb_collection_id="+f+"&brb_view_mode="+p.tag_sidebar,"POST",function(d){b.innerHTML=d.data;RichPlugins.init(b.querySelector('.rpi[data-exec=""]'))})}}console.log("RichPlugins Tag initialized")},starsInit:function(q){let g=q.getAttribute("data-info").split(",");q.innerHTML=render_stars(g[0],g[1],g[2])}}},Flash:function(a,e){return This={init:function(){rpi.Flash(a,e)}}},Badge:function(a,e){return This={init:function(){rpi.Badge(a,e)}}},List:function(a,e){const f=rpi.Common(a,e,{time:"rpi-time",text:"rpi-text",readmore:"rpi-readmore"}),n=rpi.Column(a,e,{cnt:"rpi-cnt",col:"rpi-col",card:"rpi-card"}),l=rpi.View(a,e,{common:f}),p=a.querySelector(".rpi-content .rpi-cards");var h=null;return h={init:function(){f.init();n.init();l.init();h.actions();console.log("RichPlugins List initialized")},actions:function(){var q=a.getElementsByClassName("rpi-url")[0];q&&(q.onclick=function(){l.loadNextReviews(e.pagination,function(){let g=parseInt(p.getAttribute("data-count"));parseInt(p.getAttribute("data-offset"))>=g&&rpi.Utils.rm(q)});return!1})}}},Slider:function(a,e){const f=rpi.Common(a,e,{time:"rpi-time",text:"rpi-text",readmore:"rpi-readmore"}),n=rpi.Column(a,e,{cnt:"rpi-cnt",col:"rpi-col",card:"rpi-card"}),l=rpi.View(a,e,{common:f});e=a.getElementsByClassName("rpi-cnt")[0];e=JSON.parse(e.getAttribute("data-opts"));const p=rpi.Slider(a,e,{cnt:"rpi-cnt",col:"rpi-col",content:"rpi-content",cards:"rpi-cards",card:"rpi-card",text:"rpi-text",btnPrev:"rpi-slider-prev",btnNext:"rpi-slider-next",dotsWrap:"rpi-dots-wrap",dots:"rpi-dots",dot:"rpi-dot"},{view:l,column:n});return{init:function(){p.init(function(){f.init()},function(){l.init();console.log("RichPlugins slider initialized")})}}},init:function(a){a.setAttribute("data-exec","1");let e=JSON.parse(a.getAttribute("data-opts")),f=rpi.Utils.capit(e.layout);"List"==f||"Grid"==f?RichPlugins.List(a,e).init():RichPlugins[f]&&RichPlugins[f](a,e).init()}};document.addEventListener("DOMContentLoaded",function(){const a=document.querySelectorAll('.rpi[data-exec=""]');if(a.length){rpi.Utils.clear();for(var e=0;e<a.length;
1e++)RichPlugins.init(a[e])}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.