{"version":3,"sources":["jquery_cookie.js"],"names":["factory","define","amd","exports","module","require","jQuery","$","pluses","encode","s","config","raw","encodeURIComponent","read","converter","value","indexOf","slice","replace","decodeURIComponent","json","JSON","parse","e","parseCookieValue","isFunction","cookie","key","options","arguments","length","extend","defaults","expires","days","t","Date","setMilliseconds","getMilliseconds","document","stringify","String","toUTCString","path","domain","secure","join","result","undefined","cookies","split","i","l","parts","name","shift","removeCookie"],"mappings":"CAOC,SAAUA,GACY,mBAAXC,QAAyBA,OAAOC,IAE1CD,OAAO,CAAC,UAAWD,GACU,iBAAZG,QAEjBC,OAAOD,QAAUH,EAAQK,QAAQ,WAGjCL,EAAQM,QATV,CAWE,SAAUC,GAEX,IAAIC,EAAS,MAEb,SAASC,EAAOC,GACf,OAAOC,EAAOC,IAAMF,EAAIG,mBAAmBH,GA0B5C,SAASI,EAAKJ,EAAGK,GAChB,IAAIC,EAAQL,EAAOC,IAAMF,EAhB1B,SAA0BA,GACF,IAAnBA,EAAEO,QAAQ,OAEbP,EAAIA,EAAEQ,MAAM,GAAI,GAAGC,QAAQ,OAAQ,KAAKA,QAAQ,QAAS,OAG1D,IAKC,OADAT,EAAIU,mBAAmBV,EAAES,QAAQX,EAAQ,MAClCG,EAAOU,KAAOC,KAAKC,MAAMb,GAAKA,EACpC,MAAMc,KAIqBC,CAAiBf,GAC9C,OAAOH,EAAEmB,WAAWX,GAAaA,EAAUC,GAASA,EAGrD,IAAIL,EAASJ,EAAEoB,OAAS,SAAUC,EAAKZ,EAAOa,GAI7C,GAAuB,EAAnBC,UAAUC,SAAexB,EAAEmB,WAAWV,GAAQ,CAGjD,GAA+B,iBAF/Ba,EAAUtB,EAAEyB,OAAO,GAAIrB,EAAOsB,SAAUJ,IAErBK,QAAsB,CACxC,IAAIC,EAAON,EAAQK,QAASE,EAAIP,EAAQK,QAAU,IAAIG,KACtDD,EAAEE,gBAAgBF,EAAEG,kBAA2B,MAAPJ,GAGzC,OAAQK,SAASb,OAAS,CACzBlB,EAAOmB,GAAM,KArCcZ,EAqCYA,EApClCP,EAAOE,EAAOU,KAAOC,KAAKmB,UAAUzB,GAAS0B,OAAO1B,KAqCzDa,EAAQK,QAAU,aAAeL,EAAQK,QAAQS,cAAgB,GACjEd,EAAQe,KAAU,UAAYf,EAAQe,KAAO,GAC7Cf,EAAQgB,OAAU,YAAchB,EAAQgB,OAAS,GACjDhB,EAAQiB,OAAU,WAAa,IAC9BC,KAAK,IAaR,IAvDD,IAA8B/B,EAJdN,EAmDXsC,EAASpB,OAAMqB,EAAY,GAI9BC,EAAUV,SAASb,OAASa,SAASb,OAAOwB,MAAM,MAAQ,GAC1DC,EAAI,EACJC,EAAIH,EAAQnB,OAENqB,EAAIC,EAAGD,IAAK,CAClB,IAAIE,EAAQJ,EAAQE,GAAGD,MAAM,KAC5BI,GA7Da7C,EA6DC4C,EAAME,QA5Df7C,EAAOC,IAAMF,EAAIU,mBAAmBV,IA6DzCiB,EAAS2B,EAAMP,KAAK,KAErB,GAAInB,IAAQ2B,EAAM,CAEjBP,EAASlC,EAAKa,EAAQX,GACtB,MAIIY,QAAmCqB,KAA3BtB,EAASb,EAAKa,MAC1BqB,EAAOO,GAAQ5B,GAIjB,OAAOqB,GAGRrC,EAAOsB,SAAW,GAElB1B,EAAEkD,aAAe,SAAU7B,EAAKC,GAG/B,OADAtB,EAAEoB,OAAOC,EAAK,GAAIrB,EAAEyB,OAAO,GAAIH,EAAS,CAAEK,SAAU,MAC5C3B,EAAEoB,OAAOC","file":"../jquery_cookie.js","sourcesContent":["/*!\r\n * jQuery Cookie Plugin v1.4.1\r\n * https://github.com/carhartl/jquery-cookie\r\n *\r\n * Copyright 2006, 2014 Klaus Hartl\r\n * Released under the MIT license\r\n */\r\n(function (factory) {\r\n\tif (typeof define === 'function' && define.amd) {\r\n\t\t// AMD (Register as an anonymous module)\r\n\t\tdefine(['jquery'], factory);\r\n\t} else if (typeof exports === 'object') {\r\n\t\t// Node/CommonJS\r\n\t\tmodule.exports = factory(require('jquery'));\r\n\t} else {\r\n\t\t// Browser globals\r\n\t\tfactory(jQuery);\r\n\t}\r\n}(function ($) {\r\n\r\n\tvar pluses = /\\+/g;\r\n\r\n\tfunction encode(s) {\r\n\t\treturn config.raw ? s : encodeURIComponent(s);\r\n\t}\r\n\r\n\tfunction decode(s) {\r\n\t\treturn config.raw ? s : decodeURIComponent(s);\r\n\t}\r\n\r\n\tfunction stringifyCookieValue(value) {\r\n\t\treturn encode(config.json ? JSON.stringify(value) : String(value));\r\n\t}\r\n\r\n\tfunction parseCookieValue(s) {\r\n\t\tif (s.indexOf('\"') === 0) {\r\n\t\t\t// This is a quoted cookie as according to RFC2068, unescape...\r\n\t\t\ts = s.slice(1, -1).replace(/\\\\\"/g, '\"').replace(/\\\\\\\\/g, '\\\\');\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\t// Replace server-side written pluses with spaces.\r\n\t\t\t// If we can't decode the cookie, ignore it, it's unusable.\r\n\t\t\t// If we can't parse the cookie, ignore it, it's unusable.\r\n\t\t\ts = decodeURIComponent(s.replace(pluses, ' '));\r\n\t\t\treturn config.json ? JSON.parse(s) : s;\r\n\t\t} catch(e) {}\r\n\t}\r\n\r\n\tfunction read(s, converter) {\r\n\t\tvar value = config.raw ? s : parseCookieValue(s);\r\n\t\treturn $.isFunction(converter) ? converter(value) : value;\r\n\t}\r\n\r\n\tvar config = $.cookie = function (key, value, options) {\r\n\r\n\t\t// Write\r\n\r\n\t\tif (arguments.length > 1 && !$.isFunction(value)) {\r\n\t\t\toptions = $.extend({}, config.defaults, options);\r\n\r\n\t\t\tif (typeof options.expires === 'number') {\r\n\t\t\t\tvar days = options.expires, t = options.expires = new Date();\r\n\t\t\t\tt.setMilliseconds(t.getMilliseconds() + days * 864e+5);\r\n\t\t\t}\r\n\r\n\t\t\treturn (document.cookie = [\r\n\t\t\t\tencode(key), '=', stringifyCookieValue(value),\r\n\t\t\t\toptions.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE\r\n\t\t\t\toptions.path ? '; path=' + options.path : '',\r\n\t\t\t\toptions.domain ? '; domain=' + options.domain : '',\r\n\t\t\t\toptions.secure ? '; secure' : ''\r\n\t\t\t].join(''));\r\n\t\t}\r\n\r\n\t\t// Read\r\n\r\n\t\tvar result = key ? undefined : {},\r\n\t\t\t// To prevent the for loop in the first place assign an empty array\r\n\t\t\t// in case there are no cookies at all. Also prevents odd result when\r\n\t\t\t// calling $.cookie().\r\n\t\t\tcookies = document.cookie ? document.cookie.split('; ') : [],\r\n\t\t\ti = 0,\r\n\t\t\tl = cookies.length;\r\n\r\n\t\tfor (; i < l; i++) {\r\n\t\t\tvar parts = cookies[i].split('='),\r\n\t\t\t\tname = decode(parts.shift()),\r\n\t\t\t\tcookie = parts.join('=');\r\n\r\n\t\t\tif (key === name) {\r\n\t\t\t\t// If second argument (value) is a function it's a converter...\r\n\t\t\t\tresult = read(cookie, value);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\t// Prevent storing a cookie that we couldn't decode.\r\n\t\t\tif (!key && (cookie = read(cookie)) !== undefined) {\r\n\t\t\t\tresult[name] = cookie;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t};\r\n\r\n\tconfig.defaults = {};\r\n\r\n\t$.removeCookie = function (key, options) {\r\n\t\t// Must not alter options, thus extending a fresh object...\r\n\t\t$.cookie(key, '', $.extend({}, options, { expires: -1 }));\r\n\t\treturn !$.cookie(key);\r\n\t};\r\n\r\n}));"]}