jQuery.cookie=function(e,i,t){if(void 0!==i||e&&"string"!=typeof e)if("string"==typeof e){t=t||{},null===i&&(i="",t.expires=new Date(0));var o,r="";if(t.expires&&("number"==typeof t.expires||t.expires.toUTCString))"number"==typeof t.expires?(o=new Date).setTime(o.getTime()+24*t.expires*60*60*1e3):o=t.expires,r="; expires="+o.toUTCString();var n=t.path?"; path="+t.path:"",s=t.domain?"; domain="+t.domain:"",p=t.secure?"; secure":"",a="; samesite="+(t.samesite||"lax");document.cookie=e+"="+encodeURIComponent(i)+r+n+s+p+a}else for(var m in e)jQuery.cookie(m,e[m],i||t);else if(document.cookie){for(var u,c=document.cookie.split(";"),f=0;f<c.length;f++){var d=c[f].trim();if(e){if(d.substr(0,e.length+1)==e+"="){u=decodeURIComponent(d.substr(e.length+1));break}}else{var l=d.indexOf("=");u[d.substr(0,l)]=decodeURIComponent(d.substr(l+1))}}return u}};
