Element.prototype.isNodeList=function(){return!1};NodeList.prototype.isNodeList=HTMLCollection.prototype.isNodeList=function(){return!0}; if(void 0===Trustindex)var Trustindex=function(){return{loaded_css:[],resizerTimeoutPointer:null,CDNUrl:"https://cdn.trustindex.io/",getDefaultAvatarUrl:function(){let a=Math.floor(10*Math.random())+1;return Trustindex.CDNUrl+"assets/default-avatar/noprofile-"+(10>a?"0":"")+a+".svg"},getWidgetUrl:function(a){return"undefined"==typeof a?!1:Trustindex.CDNUrl+"widgets/"+a.substring(0,2)+"/"+a+"/"},init:function(){let a=document.querySelectorAll("div[src*='.trustindex.io'],div[data-src*='.trustindex.io'],script[src*='.trustindex.io']"); for(let c=0;cf.length)continue;f=f[f.length-1];f=f.split("&")[0];if(!f||-1!=f.search("="))continue;if(e.getAttribute("data-ti-loaded"))continue;let l=document.createElement("div");l.innerHTML="loading...";e.after(l);e.setAttribute("data-ti-loaded",!0);let h=new XMLHttpRequest;h.open("GET",Trustindex.getWidgetUrl(f)+"content.html"); h.send();h.onload=function(){if(4==h.readyState&&200==h.status)if(h.responseText){var k=Trustindex.createElementFromHTML(h.responseText),g=k[0];l.replaceWith(g);for(let m=0;m ';b.innerHTML=e;(a=b.querySelector('.dot[data-pager-state="'+(a.pager_state||0)+'"]'))&&a.classList.add("active")}},init_pager:function(a){if(window.jQuery&&a instanceof jQuery)a.each(function(){Trustindex.init_pager(this)});else if(void 0!==a.isNodeList&&a.isNodeList())a.forEach(function(b){Trustindex.init_pager(b)}); else if(!a.classList.contains("ti-certificate")){void 0===a.layout_id&&Trustindex.init_widget(a);"ti-widget"!=a.getAttribute("class")&&Trustindex.resize_widget(a);a.pager_inited=!0;Trustindex.init_dots(a);Trustindex.setClickableParts(a);Trustindex.setReadMore(a);Trustindex.handleSubContents(a);if(null!==a.pager_autoplay_timeout){a.pager_state=0;a.pager_state_dots=0;a.pager_moving=!1;a.pager_autoplay_direction="next";a.pager_position="0px";a.pager_autoplay_timeout=parseInt(a.pager_autoplay_timeout); "left"==a.rotate_to&&(a.pager_state=Trustindex.getMaximumPagerState(a)-1,a.slider_loop&&a.querySelector(".ti-controls-dots")&&"none"!=window.getComputedStyle(a.querySelector(".ti-controls-dots")).display&&(a.pager_state=Trustindex.getReviewNum(a)-2),a.pager_state_dots=a.pager_state,Trustindex.moverBtnClicked(a,"next"==a.pager_autoplay_direction,"auto",1),a.slider_loop&&(a.pager_autoplay_direction="prev"));Trustindex.controlsShowHide(a);a.querySelectorAll(".ti-review-item").forEach(function(d){d.style.position= "relative"});a.querySelector(".ti-widget-container").addEventListener("mouseenter",function(d){a.mouse_over=!0});a.querySelector(".ti-widget-container").addEventListener("mouseleave",function(d){a.mouse_over=!1});a.addEventListener("click",function(d){if(d.target.matches(".ti-controls .ti-next")||d.target.matches(".ti-controls .ti-prev"))d.preventDefault(),Trustindex.moverBtnClicked(a,d.target.classList.contains("ti-next"),"manual",500)},!1);Trustindex.setAutoplay(a);let b,c;a.querySelector(".ti-reviews-container").addEventListener("touchstart", function(d){b=d.touches[0].pageX;c=null;a.mouse_over=!0},{passive:!0});a.querySelector(".ti-reviews-container").addEventListener("touchmove",function(d){c=d.touches[0].pageX},{passive:!0});a.querySelector(".ti-reviews-container").addEventListener("touchend",function(d){b&&c&&60c,a.querySelectorAll(".ti-review-content").forEach(function(e){e.scrollTop=0}),Trustindex.moverBtnClicked(a,d,"manual",500));c=b=null;a.mouse_over=!1},{passive:!0})}if("admin.trustindex.io"!=location.hostname|| 53==a.layout_id)a.addEventListener("click",function(b){b.target.matches(".disable-widget")?(b.preventDefault(),a.classList.add("ti-disabled"),document.querySelectorAll('.ti-widget:not([data-layout-id="53"])').forEach(function(c){c.classList.add("ti-disabled")}),53!=a.layout_id&&Trustindex.setCookie("ti-widget-disabled",1,10,"/",location.hostname),a.querySelector(".ti-enable-widget")||a.remove()):b.target.matches(".ti-enable-widget")&&(b.preventDefault(),a.classList.remove("ti-disabled"),Trustindex.setReadMore(a, 10),document.querySelectorAll('.ti-widget:not([data-layout-id="53"])').forEach(function(c){c.classList.remove("ti-disabled");Trustindex.setReadMore(c,10)}),53!=a.layout_id&&Trustindex.removeCookie("ti-widget-disabled","/",location.hostname))}),Trustindex.getCookie("ti-widget-disabled")&&document.querySelectorAll(".ti-widget").forEach(function(b){b.classList.add("ti-disabled")});a.removeEventListener("click",Trustindex.popupHandler);a.addEventListener("click",Trustindex.popupHandler);a.removeEventListener("click", Trustindex.popupCloseHandler);a.addEventListener("click",Trustindex.popupCloseHandler);a.removeEventListener("click",Trustindex.readMoreHandler);a.addEventListener("click",Trustindex.readMoreHandler)}},removePopupEvents:function(){document.querySelectorAll('.ti-widget a[href="#popup"], .ti-widget a[href="#dropdown"]').forEach(function(a){let b=a.cloneNode(!0);a.parentNode.replaceChild(b,a);a=b.closest(".ti-widget");Trustindex.handleSubContents(a)});window.removeEventListener("scroll",Trustindex.removePopupEvents)}, setAutoplay:function(a,b){void 0!==b&&(a.pager_autoplay_timeout=b);void 0!==a.intervalPointer&&clearInterval(a.intervalPointer);0h&&(a.pager_state=k&&(f-=parseInt(f/k)*k);for(let g=0;gh&&(g+=":last-child");a.reviews_container_wrapper.querySelectorAll(g).forEach(function(m){m.remove()})},d);if(0>b&&!1===e){l=a.reviews_container_wrapper.querySelectorAll(".ti-review-item.ti-cloned.ti-cloned--start").length;let g=a.reviews_container_wrapper.querySelector(".ti-review-item:nth-last-child("+ (-1*b+l)+")").cloneNode(!0);g.classList.add("ti-cloned","ti-cloned--start");g.style.marginLeft=-1*a.reviews_container_wrapper.offsetWidth/Trustindex.getVisibleReviewNum(a)+"px";a.reviews_container_wrapper.insertBefore(g,a.reviews_container_wrapper.firstChild);setTimeout(function(){g.style.marginLeft="";Trustindex.resetPager(a)},d)}else!0===e&&setTimeout(function(){let g=a.reviews_container_wrapper.querySelector(".ti-review-item.ti-cloned.ti-cloned--start:first-child");g&&(g.remove(),Trustindex.resetPager(a))}, d);!0===e?(a.pager_state_dots++,a.pager_state_dots>k-1&&(a.pager_state_dots=0)):!1===e?(a.pager_state_dots--,0>a.pager_state_dots&&(a.pager_state_dots=k-1)):"resize"!==e&&(a.pager_state_dots=b)}else a.pager_state_dots=b;a.pager_state=b;a.pager_moving=!0;Trustindex.controlsShowHide(a);Trustindex.slideReviews(a,d);"auto"!=c&&void 0!==a.intervalPointer&&(clearInterval(a.intervalPointer),delete a.intervalPointer)},slideReviews:function(a,b){if(void 0!==a.pager_position){void 0===b&&(b=1E3);var c=Trustindex.getVisibleReviewNum(a); c=-1*a.pager_state*a.reviews_container_wrapper.offsetWidth/c+"px";Trustindex.animateReviews(a,a.pager_position,c,b);a.pager_position=c;setTimeout(function(){a.pager_moving=!1},b)}},noReviewsAnimation:function(a,b){a.pager_moving=!0;let c=parseInt(a.pager_position),d=b?-1:1,e=function(h,k,g,m){setTimeout(function(){Trustindex.animateReviews(a,h+"px",k+"px",g)},m)},f=0,l=0;[{pos:50,speed:160},{pos:-70,speed:100},{pos:40,speed:80},{pos:-20,speed:120}].forEach(function(h,k){0==k?f=c+h.pos*d:(c=f,f+=h.pos* d);e(c,f,h.speed,l);l+=h.speed});setTimeout(function(){a.pager_moving=!1},l)},animateReviews:function(a,b,c,d){a.querySelectorAll(".ti-review-item").forEach(function(e){e.animate({left:[b,c]},{duration:d,fill:"both",easing:"ease-in-out"});setTimeout(()=>{if(!Trustindex.isReviewVisible(e)){let f=e.querySelector(".ti-read-more .ti-read-more-collapse");f&&f.click()}},d)})},setClickableParts:function(a){if("undefined"==typeof a.clickable_parts_setted){a.clickable_parts_setted=!0;var b=a.querySelector("a[href]"); b&&"#"!=b.getAttribute("href")&&(a=b.closest(".ti-header:not(a), .ti-footer:not(a)"))&&a.querySelector(".ti-large-logo, .ti-profile-img, .ti-profile-details, .ti-logo-stars-flex")&&(a.classList.add("ti-clickable-link"),a.addEventListener("click",function(c){if("A"==c.target.nodeName)return!1;Trustindex.openWindow(b.getAttribute("href"));c.preventDefault()}))}},setReadMore:function(a,b){if(!a)return!1;"undefined"==typeof b&&(b=500);setTimeout(function(){let c=a.querySelectorAll(".ti-read-more");c&& c.forEach(function(d){let e=d.closest(".ti-review-item").querySelector(d.getAttribute("data-container"));e||=d.closest(".ti-review-content").querySelector(".ti-inner");let f=10;e.getAttribute("style")&&-1!=e.getAttribute("style").indexOf("height")&&(f=500);e.setAttribute("style","");d.setAttribute("style","");setTimeout(()=>{var l=e.scrollHeight>e.offsetHeight;if(e.closest(".ti-popup-widget")){l=parseFloat(window.getComputedStyle(e,null).getPropertyValue("font-size"));let h=parseInt(window.getComputedStyle(e, null).getPropertyValue("-webkit-line-clamp"));parseFloat(window.getComputedStyle(e,null).getPropertyValue("max-height"));l=parseInt(1.44*l*h);l=e.scrollHeight>l}l&&"block"!=window.getComputedStyle(d,null).getPropertyValue("display")&&(l=!1);l?(e.style.setProperty("height",e.offsetHeight+"px","important"),e.setAttribute("data-initial-height",e.offsetHeight),0":d.innerHTML=''+d.innerText+"",d.setAttribute("style","")):d.getAttribute("data-container")?(d.innerHTML=" ",d.style.opacity=0,d.style.pointerEvents="none",c.length==d.closest(".ti-reviews-container").querySelectorAll('.ti-read-more[style*="opacity: 0"]').length&&c.forEach(h=>h.style.display="none")):d.style.display="none"},f)})},b)},readMoreHandler:function(a){if(a.target.matches(".ti-read-more-active")){a.preventDefault(); a=a.target;let b=a.closest(".ti-review-item").querySelector(a.parentNode.getAttribute("data-container"));b||=a.closest(".ti-review-content").querySelector(".ti-inner");a.classList.contains("ti-read-more-collapse")?(b.style.setProperty("-webkit-line-clamp",""),b.style.setProperty("height",b.getAttribute("data-initial-height")+"px","important"),a.innerHTML=a.parentNode.getAttribute("data-open-text"),a.classList.remove("ti-read-more-collapse")):(b.style.setProperty("-webkit-line-clamp","unset","important"), b.style.setProperty("height",b.scrollHeight+"px","important"),a.innerHTML=a.parentNode.getAttribute("data-collapse-text"),a.classList.add("ti-read-more-collapse"),a.innerHTML||(a.parentNode.style.display="none"))}},handleSubContents:function(a){a.querySelectorAll("a[data-subcontent]").forEach(function(b){let c=b.getAttribute("data-subcontent"),d=a.querySelector(b.getAttribute("data-subcontent-target"));d&&"undefined"!=typeof a.pid&&a.pid&&(""!=d.innerHTML.trim()?b.setAttribute("data-subcontent-loaded", !0):b.addEventListener("click",function(){if(!b.getAttribute("data-subcontent-loaded")){b.classList.add("ti-loading");setTimeout(function(){b.setAttribute("data-subcontent-loaded",!0)},50);let e=new XMLHttpRequest;e.open("GET",Trustindex.getWidgetUrl(a.pid)+"_subcontent-"+c+".html");e.send();e.onload=function(){4==e.readyState&&200==e.status&&(d.innerHTML=e.responseText,b.dispatchEvent(new Event("subcontent-loaded")),b.classList.remove("ti-loading"),Trustindex.formatReviews())}}}))})},formatReviews:function(a){(a= document.querySelectorAll(".ti-widget .ti-review-content, .ti-widget .ti-inner .ti-review-text"))&&a.length&&a.forEach(function(b){var c=b.querySelector(".ti-inner");c&&(b=c);c=b.querySelectorAll("svg");0==c.length&&(c=b.innerHTML,c=c.replace(//gm,' · '), c=c.replace(//gm,' · '),c=c.replace("\u263a", ' · ').replace("\u2639",' · '), c=c.replace(/\n/g,"
"),b.innerHTML=c,c=b.querySelectorAll("svg"));if(c.length){let e=.95*parseInt(b.style.fontSize||14);c.forEach(function(f){f.style.width=e+"px";f.style.height=e+"px"})}b.innerHTML=Trustindex.decodeHtml(b.innerHTML);let d=b.closest(".ti-review-item");if(d){let e=d.querySelector(".ti-profile-img-sprite");e&&setTimeout(()=>{let f=d.closest(".ti-widget").getAttribute("data-pid"),l=d.getAttribute("data-index")?parseInt(d.getAttribute("data-index")):[].indexOf.call(d.parentNode.children, d);var h=getComputedStyle(e);h=parseInt(h.height||"0");if(!h||isNaN(h))h=40;e.style.background='url("'+Trustindex.getWidgetUrl(f)+'sprite.jpg") 0 '+l*h*-1+"px"},50)}});a=document.querySelectorAll(".ti-widget .ti-review-item[data-platform-page-url]");a.forEach(function(b){let c=b.querySelector(".ti-name"),d=b.getAttribute("data-platform-page-url");c.style.cursor="pointer";c.addEventListener("click",function(e){Trustindex.openWindow(d)})});a=document.querySelectorAll(".ti-widget .ti-review-item[data-time]"); a.forEach(function(b){let c=b.querySelector(".ti-date:not(.ti-date-comment)"),d=parseInt(b.getAttribute("data-time"));c&&(c.innerHTML=Trustindex.getRelativeTime(d,b.closest(".ti-widget").getAttribute("data-time-locale")))})},replaceErrorImages:function(){let a=document.querySelectorAll(".ti-widget .ti-review-item .ti-profile-img img");a&&a.forEach(function(b){if(!b.complete||void 0!==b.naturalWidth&&0!=b.naturalWidth){let c=function(){this.setAttribute("src",Trustindex.getDefaultAvatarUrl());this.removeEventListener("error", c)};b.removeEventListener("error",c);b.addEventListener("error",c)}else b.setAttribute("src",Trustindex.getDefaultAvatarUrl())})},controlsShowHide:function(a){let b=Trustindex.getReviewNum(a),c=Trustindex.getVisibleReviewNum(a);a.isPrev=!0;a.isNext=!0;a.slider_loop?b==c&&(Trustindex.toggleElement(a.querySelector(".ti-prev"),"hide"),Trustindex.toggleElement(a.querySelector(".ti-next"),"hide"),a.isPrev=!1,a.isNext=!1):(0==a.pager_state?(Trustindex.toggleElement(a.querySelector(".ti-prev"),"hide"),a.pager_autoplay_direction= "next",a.isPrev=!1):Trustindex.toggleElement(a.querySelector(".ti-prev")),a.pager_state>=b-c?(Trustindex.toggleElement(a.querySelector(".ti-next"),"hide"),a.pager_autoplay_direction="prev",a.isNext=!1):Trustindex.toggleElement(a.querySelector(".ti-next")));a.querySelectorAll(".dot").forEach(function(d){d.classList.remove("active")});(a=a.querySelector('.dot[data-pager-state="'+a.pager_state_dots+'"]'))&&a.classList.add("active")},resize_widget:function(a){void 0===a.container&&Trustindex.init_widget(a); a.style.width="";var b=a.offsetWidth;a.style.display="none";var c=window.getComputedStyle(a,null).getPropertyValue("width");let d=a;var e=0;do{d=d.parentNode;if("HTML"==d.nodeName)break;d.clientWidth&&(e=window.getComputedStyle(d,null),e=d.clientWidth-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight))}while(0==e);"100%"==c&&b>e&&e&&(a.style.width=e+"px");a.style.display="";"undefined"==typeof a.original_cols&&(b=a.container.classList.toString(),-1==b.indexOf("ti-col-")?a.original_cols=1:a.original_cols= parseInt(b.replace(/^.*ti-col-(\d+).*$/,"$1")));if(1>=a.original_cols)return!1;let f=5;a.container.offsetWidth>a.reviews_container.offsetWidth?520>a.offsetWidth?(a.container.setAttribute("class","ti-widget-container ti-col-1"),f=1):750>a.offsetWidth?(a.container.setAttribute("class","ti-widget-container ti-col-2"),f=1):1100>a.offsetWidth?(a.container.setAttribute("class","ti-widget-container ti-col-3"),f=2):1450>a.offsetWidth?(a.container.setAttribute("class","ti-widget-container ti-col-4"),f=3): 1800>a.offsetWidth?(a.container.setAttribute("class","ti-widget-container ti-col-5"),f=4):(a.container.setAttribute("class","ti-widget-container ti-col-6"),f=5):(540>a.offsetWidth?(a.container.setAttribute("class","ti-widget-container ti-col-1"),f=1):760>a.offsetWidth?(a.container.setAttribute("class","ti-widget-container ti-col-2"),f=2):1200>a.offsetWidth?(a.container.setAttribute("class","ti-widget-container ti-col-3"),f=3):1550>a.offsetWidth?(a.container.setAttribute("class","ti-widget-container ti-col-4"), f=4):(a.container.setAttribute("class","ti-widget-container ti-col-5"),f=5),1a.reviews_container.offsetWidth&&--b;"46"!=a.dataset.layoutId&&"47"!=a.dataset.layoutId||--b;a=Math.floor(a.reviews_container.offsetWidth/a.reviews_container.querySelector(".ti-review-item").offsetWidth);return Math.max(b,a,1)},getReviewNum:function(a){return a.querySelectorAll(".ti-review-item:not(.ti-cloned)").length},getMaximumPagerState:function(a){let b=Trustindex.getReviewNum(a);a=Trustindex.getVisibleReviewNum(a); return Math.max(b-a,0)},resetPager:function(a){a.pager_position=0;a.pager_state=0;a.reviews_container_wrapper.querySelectorAll(".ti-review-item").forEach(function(b){b.animate({left:0},{fill:"both"})})},addCSS:function(a,b){let c=document.createElement("link");c.type="text/css";c.rel="stylesheet";c.href=a;document.head.appendChild(c);b&&c.addEventListener("load",b)},addJS:function(a,b){let c=document.createElement("script");c.type="text/javascript";c.src=a;document.head.appendChild(c);b&&c.addEventListener("load", b)},popupHandler:function(a){let b=a.target,c=function(){b.classList.toggle("active");let d=b.closest(".ti-widget");d&&(d.querySelectorAll(".ti-dropdown-widget, .ti-popup-widget").forEach(function(e){e.classList.toggle("active")}),Trustindex.setReadMore(d,10));b.removeEventListener("subcontent-loaded",c)};if(b.matches('a[href="#dropdown"]')||b.matches('a[href="#popup"]'))b.getAttribute("data-subcontent-loaded")?c():b.addEventListener("subcontent-loaded",c),a.preventDefault()},popupCloseHandler:function(a){a.target.matches(".ti-header .ti-close-lg")&& (a.preventDefault(),(a=a.target.closest(".ti-widget"))&&(a=a.querySelector("a.ti-header[href]"))&&a.click())},openWindow:function(a){let b=document.createElement("a");b.href=a;b.target="_blank";b.rel="noopener noreferrer nofollow";b.click()},isVisible:function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},isReviewVisible:function(a){let b=a.closest(".ti-reviews-container-wrapper"),c=a.offsetLeft-b.offsetLeft;a=c+a.offsetWidth;return c>=b.scrollLeft&&a<=b.scrollLeft+b.offsetWidth}, getRelativeTime:function(a,b){b=b.split("|");let c=b.shift();var d=b.shift(),e=[86400,604800,2419200,31536E3];let f=(new Date).getTime()/1E3-a;for(a=e.length-1;0<=a;a--)if(f>=e[a])return d=Math.floor(f/e[a]),e=2*a,1