You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(function(e){"use strict";vara=function(b,d,c){return1===arguments.length?a.get(b):a.set(b,d,c)};a._document=document;a._navigator=navigator;a.defaults={path:"/"};a.get=function(b){a._cachedDocumentCookie!==a._document.cookie&&a._renewCache();returna._cache[b]};a.set=function(b,d,c){c=a._getExtendedOptions(c);c.expires=a._getExpiresDate(d===e?-1:c.expires);a._document.cookie=a._generateCookieString(b,d,c);returna};a.expire=function(b,d){returna.set(b,e,d)};a._getExtendedOptions=function(b){return{path:b&&b.path||a.defaults.path,domain:b&&b.domain||a.defaults.domain,expires:b&&b.expires||a.defaults.expires,secure:b&&b.secure!==e?b.secure:a.defaults.secure}};a._isValidDate=function(b){return"[object Date]"===Object.prototype.toString.call(b)&&!isNaN(b.getTime())};a._getExpiresDate=function(b,d){d=d||newDate;switch(typeofb){case"number":b=newDate(d.getTime()+1E3*b);break;case"string":b=newDate(b)}if(b&&!a._isValidDate(b))throwError("`expires` parameter cannot be converted to a valid Date instance");returnb};a._generateCookieString=function(b,a,c){b=encodeURIComponent(b);a=(a+"").replace(/[^!#$&-+\--:<-\[\]-~]/g,encodeURIComponent);c=c||{};b=b+"="+a+(c.path?";path="+c.path:"");b+=c.domain?";domain="+c.domain:"";b+=c.expires?";expires="+c.expires.toUTCString():"";returnb+=c.secure?";secure":""};a._getCookieObjectFromString=function(b){vard={};b=b?b.split("; "):[];for(varc=0;c<b.length;c++){varf=a._getKeyValuePairFromCookieString(b[c]);d[f.key]===e&&(d[f.key]=f.value)}returnd};a._getKeyValuePairFromCookieString=function(b){vara=b.indexOf("="),a=0>a?b.length:a;return{key:decodeURIComponent(b.substr(0,a)),value:decodeURIComponent(b.substr(a+1))}};a._renewCache=function(){a._cache=a._getCookieObjectFromString(a._document.cookie);a._cachedDocumentCookie=a._document.cookie};a._areEnabled=function(){varb="1"===a.set("cookies.js",1).get("cookies.js");a.expire("cookies.js");returnb};a.enabled=a._areEnabled();"function"===typeofdefine&&define.amd?define(function(){returna}):"undefined"!==typeofexports?("undefined"!==typeofmodule&&module.exports&&(exports=module.exports=a),exports.Cookies=a):window.Cookies=a})();
0 commit comments