(()=>{if(document.querySelector("#basic-rater"))raterJs({starSize:22,rating:3,element:document.querySelector("#basic-rater"),rateCallback:function(e,t){this.setRating(e),t()}});if(document.querySelector("#rater-step"))raterJs({starSize:22,rating:1.5,element:document.querySelector("#rater-step"),rateCallback:function(e,t){this.setRating(e),t()}});var e=function(e){return{then:function(e){setTimeout((function(){e(5*Math.random())}),1e3)}}};if(document.querySelector("#rater-message"))var t=raterJs({isBusyText:"Rating in progress. Please wait...",starSize:22,element:document.querySelector("#rater-message"),rateCallback:function(r,n){t.setRating(r),e().then((function(e){t.setRating(e),n()}))}});if(document.querySelector("#rater-unlimitedstar"))raterJs({max:16,readOnly:!0,rating:4.4,element:document.querySelector("#rater-unlimitedstar")});if(document.querySelector("#rater-onhover"))raterJs({starSize:22,rating:1,element:document.querySelector("#rater-onhover"),rateCallback:function(e,t){this.setRating(e),t()},onHover:function(e,t){document.querySelector(".ratingnum").textContent=e},onLeave:function(e,t){document.querySelector(".ratingnum").textContent=t}});if(document.querySelector("#raterreset"))var r=raterJs({starSize:22,rating:2,element:document.querySelector("#raterreset"),rateCallback:function(e,t){this.setRating(e),t()}});document.querySelector("#raterreset-button")&&document.querySelector("#raterreset-button").addEventListener("click",(function(){r.clear()}),!1)})();