{"version":3,"file":"../jquery.cookie.min.js","sources":["jquery.cookie.js"],"sourcesContent":["/*!\r\n * jQuery Cookie Plugin v1.3.1\r\n * https://github.com/carhartl/jquery-cookie\r\n *\r\n * Copyright 2013 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 anonymous module.\r\n\t\tdefine(['jquery'], factory);\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 raw(s) {\r\n\t\treturn s;\r\n\t}\r\n\r\n\tfunction decoded(s) {\r\n\t\treturn decodeURIComponent(s.replace(pluses, ' '));\r\n\t}\r\n\r\n\tfunction converted(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\t\ttry {\r\n\t\t\treturn config.json ? JSON.parse(s) : s;\r\n\t\t} catch(er) {}\r\n\t}\r\n\r\n\tvar config = $.cookie = function (key, value, options) {\r\n\r\n\t\t// write\r\n\t\tif (value !== undefined) {\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.setDate(t.getDate() + days);\r\n\t\t\t}\r\n\r\n\t\t\tvalue = config.json ? JSON.stringify(value) : String(value);\r\n\r\n\t\t\treturn (document.cookie = [\r\n\t\t\t\tconfig.raw ? key : encodeURIComponent(key),\r\n\t\t\t\t'=',\r\n\t\t\t\tconfig.raw ? value : encodeURIComponent(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\t\tvar decode = config.raw ? raw : decoded;\r\n\t\tvar cookies = document.cookie.split('; ');\r\n\t\tvar result = key ? undefined : {};\r\n\t\tfor (var i = 0, l = cookies.length; i < l; i++) {\r\n\t\t\tvar parts = cookies[i].split('=');\r\n\t\t\tvar name = decode(parts.shift());\r\n\t\t\tvar cookie = decode(parts.join('='));\r\n\r\n\t\t\tif (key && key === name) {\r\n\t\t\t\tresult = converted(cookie);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tif (!key) {\r\n\t\t\t\tresult[name] = converted(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\tif ($.cookie(key) !== undefined) {\r\n\t\t\t// Must not alter options, thus extending a fresh object...\r\n\t\t\t$.cookie(key, '', $.extend({}, options, { expires: -1 }));\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t};\r\n\r\n}));\r\n"],"names":["factory","define","amd","jQuery","$","pluses","raw","s","decoded","decodeURIComponent","replace","converted","indexOf","slice","config","json","JSON","parse","er","cookie","key","value","options","days","t","undefined","extend","defaults","expires","Date","setDate","getDate","stringify","String","document","encodeURIComponent","toUTCString","path","domain","secure","join","decode","cookies","split","result","i","l","length","parts","name","shift","removeCookie"],"mappings":"CAOC,SAAUA,GACY,mBAAXC,QAAyBA,OAAOC,IAE1CD,OAAO,CAAC,UAAWD,GAGnBA,EAAQG,QANV,CAQE,SAAUC,GAEX,IAAIC,EAAS,MAEb,SAASC,EAAIC,GACZ,OAAOA,EAGR,SAASC,EAAQD,GAChB,OAAOE,mBAAmBF,EAAEG,QAAQL,EAAQ,MAG7C,SAASM,EAAUJ,GACK,IAAnBA,EAAE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