text: 
  
  
  
  <!DOCTYPE html>
  <html lang="en" class=" is-copy-enabled is-u2f-enabled">
    <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#">
      <meta charset='utf-8'>
      
  
      <link crossorigin="anonymous" href="https://assets-cdn.github.com/assets/frameworks-b94ec35a696398c8a00f27343992e597c93faadce7783164f7f8967248cc818f.css" integrity="sha256-uU7DWmljmMigDyc0OZLll8k/qtzneDFk9/iWckjMgY8=" media="all" rel="stylesheet" />
      <link crossorigin="anonymous" href="https://assets-cdn.github.com/assets/github-aebd420532800f9cce20cd765d8312a057d4628ae7bc626c8535e671d7767037.css" integrity="sha256-rr1CBTKAD5zOIM12XYMSoFfUYornvGJshTXmcdd2cDc=" media="all" rel="stylesheet" />
      
      
      
      
  
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta http-equiv="Content-Language" content="en">
      <meta name="viewport" content="width=device-width">
      
      <title>js-cookie/js.cookie.js at master · js-cookie/js-cookie</title>
      <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">
      <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
      <link rel="apple-touch-icon" href="/apple-touch-icon.png">
      <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">
      <link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">
      <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png">
      <link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png">
      <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png">
      <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png">
      <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png">
      <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png">
      <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png">
      <meta property="fb:app_id" content="1401488693436528">
  
        <meta content="https://avatars1.githubusercontent.com/u/11557446?v=3&amp;s=400" name="twitter:image:src" /><meta content="@github" name="twitter:site" /><meta content="summary" name="twitter:card" /><meta content="js-cookie/js-cookie" name="twitter:title" /><meta content="js-cookie - A simple, lightweight JavaScript API for handling browser cookies" name="twitter:description" />
        <meta content="https://avatars1.githubusercontent.com/u/11557446?v=3&amp;s=400" property="og:image" /><meta content="GitHub" property="og:site_name" /><meta content="object" property="og:type" /><meta content="js-cookie/js-cookie" property="og:title" /><meta content="https://github.com/js-cookie/js-cookie" property="og:url" /><meta content="js-cookie - A simple, lightweight JavaScript API for handling browser cookies" property="og:description" />
        <meta name="browser-stats-url" content="https://api.github.com/_private/browser/stats">
      <meta name="browser-errors-url" content="https://api.github.com/_private/browser/errors">
      <link rel="assets" href="https://assets-cdn.github.com/">
      <link rel="web-socket" href="wss://live.github.com/_sockets/VjI6MTQzMjA5MDkxOjYzNjk4MTNlYTYxZWNiMjgzYmRkODU2NGI4NTlmY2U4MmY5ODhmMDk0YzRhMGJiOWRhM2Q5NmM3YmJkOWUyMzk=--20cf00f27c0bc1afc6b2b1b3bc96553975e9cb52">
      <meta name="pjax-timeout" content="1000">
      <link rel="sudo-modal" href="/sessions/sudo_modal">
      <meta name="request-id" content="181B3AD1:1A1A:A5DC06D:5859E106" data-pjax-transient>
  
      <meta name="msapplication-TileImage" content="/windows-tile.png">
      <meta name="msapplication-TileColor" content="#ffffff">
      <meta name="selected-link" value="repo_source" data-pjax-transient>
  
      <meta name="google-site-verification" content="KT5gs8h0wvaagLKAVWq8bbeNwnZZK1r1XQysX3xurLU">
  <meta name="google-site-verification" content="ZzhVyEFwb7w3e0-uOTltm8Jsck2F5StVihD0exw2fsA">
      <meta name="google-analytics" content="UA-3769691-2">
  
  <meta content="collector.githubapp.com" name="octolytics-host" /><meta content="github" name="octolytics-app-id" /><meta content="181B3AD1:1A1A:A5DC06D:5859E106" name="octolytics-dimension-request_id" /><meta content="22946981" name="octolytics-actor-id" /><meta content="bitcoinextreme" name="octolytics-actor-login" /><meta content="f257c66156f581f6394ae86eab52bef483ca40adb9fb89b1407dd30196eaa3e3" name="octolytics-actor-hash" />
  <meta content="/&lt;user-name&gt;/&lt;repo-name&gt;/blob/show" data-pjax-transient="true" name="analytics-location" />
  
  
  
    <meta class="js-ga-set" name="dimension1" content="Logged In">
  
  
  
          <meta name="hostname" content="github.com">
      <meta name="user-login" content="bitcoinextreme">
  
          <meta name="expected-hostname" content="github.com">
        <meta name="js-proxy-site-detection-payload" content="OThiNGJmMzBlYjEyODA5NGJmYmIyMWJjMDIyNDc0OGI5MWY5YzIyOTdkOWU2MTA5ZDFlYjM5N2FkM2Y4N2RlZHx7InJlbW90ZV9hZGRyZXNzIjoiMjQuMjcuNTguMjA5IiwicmVxdWVzdF9pZCI6IjE4MUIzQUQxOjFBMUE6QTVEQzA2RDo1ODU5RTEwNiIsInRpbWVzdGFtcCI6MTQ4MjI4NTMyOCwiaG9zdCI6ImdpdGh1Yi5jb20ifQ==">
  
  
        <link rel="mask-icon" href="https://assets-cdn.github.com/pinned-octocat.svg" color="#000000">
        <link rel="icon" type="image/x-icon" href="https://assets-cdn.github.com/favicon.ico">
  
      <meta name="html-safe-nonce" content="6db4e29e8f4995cba03af353b4bbfb8aa41d55ec">
      <meta content="60b4dbcf49c37c0434e4f8eb0edec50603216491" name="form-nonce" />
  
      <meta http-equiv="x-pjax-version" content="9ac6f3e80176faec82e45cb144ad6878">
      
  
        
    <meta name="description" content="js-cookie - A simple, lightweight JavaScript API for handling browser cookies">
    <meta name="go-import" content="github.com/js-cookie/js-cookie git https://github.com/js-cookie/js-cookie.git">
  
    <meta content="11557446" name="octolytics-dimension-user_id" /><meta content="js-cookie" name="octolytics-dimension-user_login" /><meta content="32531480" name="octolytics-dimension-repository_id" /><meta content="js-cookie/js-cookie" name="octolytics-dimension-repository_nwo" /><meta content="true" name="octolytics-dimension-repository_public" /><meta content="false" name="octolytics-dimension-repository_is_fork" /><meta content="32531480" name="octolytics-dimension-repository_network_root_id" /><meta content="js-cookie/js-cookie" name="octolytics-dimension-repository_network_root_nwo" />
    <link href="https://github.com/js-cookie/js-cookie/commits/master.atom" rel="alternate" title="Recent Commits to js-cookie:master" type="application/atom+xml">
  
  
        <link rel="canonical" href="https://github.com/js-cookie/js-cookie/blob/master/src/js.cookie.js" data-pjax-transient>
    </head>
  
  
    <body class="logged-in  env-production linux vis-public page-blob">
      <div id="js-pjax-loader-bar" class="pjax-loader-bar"><div class="progress"></div></div>
      <a href="#start-of-content" tabindex="1" class="accessibility-aid js-skip-to-content">Skip to content</a>
  
      
      
      
  
  
  
          <div class="header header-logged-in true" role="banner">
    <div class="container clearfix">
  
      <a class="header-logo-invertocat" href="https://github.com/" data-hotkey="g d" aria-label="Homepage" data-ga-click="Header, go to dashboard, icon:logo">
    <svg aria-hidden="true" class="octicon octicon-mark-github" height="28" version="1.1" viewBox="0 0 16 16" width="28"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>
  </a>
  
  
          <div class="header-search scoped-search site-scoped-search js-site-search" role="search">
    <!-- '"` --><!-- </textarea></xmp> --></option></form><form accept-charset="UTF-8" action="/js-cookie/js-cookie/search" class="js-site-search-form" data-scoped-search-url="/js-cookie/js-cookie/search" data-unscoped-search-url="/search" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
      <label class="form-control header-search-wrapper js-chromeless-input-container">
        <div class="header-search-scope">This repository</div>
        <input type="text"
          class="form-control header-search-input js-site-search-focus js-site-search-field is-clearable"
          data-hotkey="s"
          name="q"
          placeholder="Search"
          aria-label="Search this repository"
          data-unscoped-placeholder="Search GitHub"
          data-scoped-placeholder="Search"
          autocapitalize="off">
      </label>
  </form></div>
  
  
        <ul class="header-nav float-left" role="navigation">
          <li class="header-nav-item">
            <a href="/pulls" aria-label="Pull requests you created" class="js-selected-navigation-item header-nav-link" data-ga-click="Header, click, Nav menu - item:pulls context:user" data-hotkey="g p" data-selected-links="/pulls /pulls/assigned /pulls/mentioned /pulls">
              Pull requests
  </a>        </li>
          <li class="header-nav-item">
            <a href="/issues" aria-label="Issues you created" class="js-selected-navigation-item header-nav-link" data-ga-click="Header, click, Nav menu - item:issues context:user" data-hotkey="g i" data-selected-links="/issues /issues/assigned /issues/mentioned /issues">
              Issues
  </a>        </li>
            <li class="header-nav-item">
              <a class="header-nav-link" href="https://gist.github.com/" data-ga-click="Header, go to gist, text:gist">Gist</a>
            </li>
        </ul>
  
      
  <ul class="header-nav user-nav float-right" id="user-links">
    <li class="header-nav-item">
      
  
    </li>
  
    <li class="header-nav-item dropdown js-menu-container">
      <a class="header-nav-link tooltipped tooltipped-s js-menu-target" href="/new"
         aria-label="Create new…"
         data-ga-click="Header, create new, icon:add">
        <svg aria-hidden="true" class="octicon octicon-plus float-left" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 9H7v5H5V9H0V7h5V2h2v5h5z"/></svg>
        <span class="dropdown-caret"></span>
      </a>
  
      <div class="dropdown-menu-content js-menu-content">
        <ul class="dropdown-menu dropdown-menu-sw">
          
  <a class="dropdown-item" href="/new" data-ga-click="Header, create new repository">
    New repository
  </a>
  
    <a class="dropdown-item" href="/new/import" data-ga-click="Header, import a repository">
      Import repository
    </a>
  
  <a class="dropdown-item" href="https://gist.github.com/" data-ga-click="Header, create new gist">
    New gist
  </a>
  
    <a class="dropdown-item" href="/organizations/new" data-ga-click="Header, create new organization">
      New organization
    </a>
  
  
  
    <div class="dropdown-divider"></div>
    <div class="dropdown-header">
      <span title="js-cookie/js-cookie">This repository</span>
    </div>
      <a class="dropdown-item" href="/js-cookie/js-cookie/issues/new" data-ga-click="Header, create new issue">
        New issue
      </a>
  
        </ul>
      </div>
    </li>
  
    <li class="header-nav-item dropdown js-menu-container">
      <a class="header-nav-link name tooltipped tooltipped-sw js-menu-target" href="/bitcoinextreme"
         aria-label="View profile and more"
         data-ga-click="Header, show menu, icon:avatar">
        <img alt="@bitcoinextreme" class="avatar" height="20" src="https://avatars1.githubusercontent.com/u/22946981?v=3&amp;s=40" width="20" />
        <span class="dropdown-caret"></span>
      </a>
  
      <div class="dropdown-menu-content js-menu-content">
        <div class="dropdown-menu dropdown-menu-sw">
          <div class="dropdown-header header-nav-current-user css-truncate">
            Signed in as <strong class="css-truncate-target">bitcoinextreme</strong>
          </div>
  
          <div class="dropdown-divider"></div>
  
          <a class="dropdown-item" href="/bitcoinextreme" data-ga-click="Header, go to profile, text:your profile">
            Your profile
          </a>
          <a class="dropdown-item" href="/bitcoinextreme?tab=stars" data-ga-click="Header, go to starred repos, text:your stars">
            Your stars
          </a>
          <a class="dropdown-item" href="/explore" data-ga-click="Header, go to explore, text:explore">
            Explore
          </a>
            <a class="dropdown-item" href="/integrations" data-ga-click="Header, go to integrations, text:integrations">
              Integrations
            </a>
          <a class="dropdown-item" href="https://help.github.com" data-ga-click="Header, go to help, text:help">
            Help
          </a>
  
          <div class="dropdown-divider"></div>
  
          <a class="dropdown-item" href="/settings/profile" data-ga-click="Header, go to settings, icon:settings">
            Settings
          </a>
  
          <!-- '"` --><!-- </textarea></xmp> --></option></form><form accept-charset="UTF-8" action="/logout" class="logout-form" data-form-nonce="60b4dbcf49c37c0434e4f8eb0edec50603216491" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="WMu1pOAt4A2f+UiRMt+U1UOJqKnBQ0T1UZ3nsDGwioeCUmAotzuSfkShNpS1P74FgivP5YZn2WeRPas4viTRVg==" /></div>
            <button type="submit" class="dropdown-item dropdown-signout" data-ga-click="Header, sign out, icon:logout">
              Sign out
            </button>
  </form>      </div>
      </div>
    </li>
  </ul>
  
  
      
    </div>
  </div>
  
  
        
  
  
      <div id="start-of-content" class="accessibility-aid"></div>
  
        <div id="js-flash-container">
  </div>
  
  
      <div role="main">
          <div itemscope itemtype="http://schema.org/SoftwareSourceCode">
      <div id="js-repo-pjax-container" data-pjax-container>
        
  <div class="pagehead repohead instapaper_ignore readability-menu experiment-repo-nav">
    <div class="container repohead-details-container">
  
      
  
  <ul class="pagehead-actions">
  
    <li>
          <!-- '"` --><!-- </textarea></xmp> --></option></form><form accept-charset="UTF-8" action="/notifications/subscribe" class="js-social-container" data-autosubmit="true" data-form-nonce="60b4dbcf49c37c0434e4f8eb0edec50603216491" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="F5MMBQYQ+diks3zk2aQlfBRcmdo5tIAC6bHQQhVgtbZlbJgauIOSn4SYBq1T7a0NaijyFBNhtKOCd/ZC1qj4ng==" /></div>      <input class="form-control" id="repository_id" name="repository_id" type="hidden" value="32531480" />
  
          <div class="select-menu js-menu-container js-select-menu">
            <a href="/js-cookie/js-cookie/subscription"
              class="btn btn-sm btn-with-count select-menu-button js-menu-target" role="button" tabindex="0" aria-haspopup="true"
              data-ga-click="Repository, click Watch settings, action:blob#show">
              <span class="js-select-button">
                <svg aria-hidden="true" class="octicon octicon-eye" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M8.06 2C3 2 0 8 0 8s3 6 8.06 6C13 14 16 8 16 8s-3-6-7.94-6zM8 12c-2.2 0-4-1.78-4-4 0-2.2 1.8-4 4-4 2.22 0 4 1.8 4 4 0 2.22-1.78 4-4 4zm2-4c0 1.11-.89 2-2 2-1.11 0-2-.89-2-2 0-1.11.89-2 2-2 1.11 0 2 .89 2 2z"/></svg>
                Watch
              </span>
            </a>
            <a class="social-count js-social-count"
              href="/js-cookie/js-cookie/watchers"
              aria-label="194 users are watching this repository">
              194
            </a>
  
          <div class="select-menu-modal-holder">
            <div class="select-menu-modal subscription-menu-modal js-menu-content" aria-hidden="true">
              <div class="select-menu-header js-navigation-enable" tabindex="-1">
                <svg aria-label="Close" class="octicon octicon-x js-menu-close" height="16" role="img" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48z"/></svg>
                <span class="select-menu-title">Notifications</span>
              </div>
  
                <div class="select-menu-list js-navigation-container" role="menu">
  
                  <div class="select-menu-item js-navigation-item selected" role="menuitem" tabindex="0">
                    <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                    <div class="select-menu-item-text">
                      <input checked="checked" id="do_included" name="do" type="radio" value="included" />
                      <span class="select-menu-item-heading">Not watching</span>
                      <span class="description">Be notified when participating or @mentioned.</span>
                      <span class="js-select-button-text hidden-select-button-text">
                        <svg aria-hidden="true" class="octicon octicon-eye" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M8.06 2C3 2 0 8 0 8s3 6 8.06 6C13 14 16 8 16 8s-3-6-7.94-6zM8 12c-2.2 0-4-1.78-4-4 0-2.2 1.8-4 4-4 2.22 0 4 1.8 4 4 0 2.22-1.78 4-4 4zm2-4c0 1.11-.89 2-2 2-1.11 0-2-.89-2-2 0-1.11.89-2 2-2 1.11 0 2 .89 2 2z"/></svg>
                        Watch
                      </span>
                    </div>
                  </div>
  
                  <div class="select-menu-item js-navigation-item " role="menuitem" tabindex="0">
                    <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                    <div class="select-menu-item-text">
                      <input id="do_subscribed" name="do" type="radio" value="subscribed" />
                      <span class="select-menu-item-heading">Watching</span>
                      <span class="description">Be notified of all conversations.</span>
                      <span class="js-select-button-text hidden-select-button-text">
                        <svg aria-hidden="true" class="octicon octicon-eye" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M8.06 2C3 2 0 8 0 8s3 6 8.06 6C13 14 16 8 16 8s-3-6-7.94-6zM8 12c-2.2 0-4-1.78-4-4 0-2.2 1.8-4 4-4 2.22 0 4 1.8 4 4 0 2.22-1.78 4-4 4zm2-4c0 1.11-.89 2-2 2-1.11 0-2-.89-2-2 0-1.11.89-2 2-2 1.11 0 2 .89 2 2z"/></svg>
                        Unwatch
                      </span>
                    </div>
                  </div>
  
                  <div class="select-menu-item js-navigation-item " role="menuitem" tabindex="0">
                    <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                    <div class="select-menu-item-text">
                      <input id="do_ignore" name="do" type="radio" value="ignore" />
                      <span class="select-menu-item-heading">Ignoring</span>
                      <span class="description">Never be notified.</span>
                      <span class="js-select-button-text hidden-select-button-text">
                        <svg aria-hidden="true" class="octicon octicon-mute" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M8 2.81v10.38c0 .67-.81 1-1.28.53L3 10H1c-.55 0-1-.45-1-1V7c0-.55.45-1 1-1h2l3.72-3.72C7.19 1.81 8 2.14 8 2.81zm7.53 3.22l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06L11.44 8 9.47 9.97l1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06L13.56 8l1.97-1.97z"/></svg>
                        Stop ignoring
                      </span>
                    </div>
                  </div>
  
                </div>
  
              </div>
            </div>
          </div>
  </form>
    </li>
  
    <li>
      
    <div class="js-toggler-container js-social-container starring-container ">
  
      <!-- '"` --><!-- </textarea></xmp> --></option></form><form accept-charset="UTF-8" action="/js-cookie/js-cookie/unstar" class="starred" data-form-nonce="60b4dbcf49c37c0434e4f8eb0edec50603216491" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="jtRP21Eucio+VezQLiq23ae9gmjg56zBULNcpeCEtjmpPmAbDHrgQpW7n4BP1rTRNk8/kP2sD2WnpaSfyUkfPQ==" /></div>
        <button
          type="submit"
          class="btn btn-sm btn-with-count js-toggler-target"
          aria-label="Unstar this repository" title="Unstar js-cookie/js-cookie"
          data-ga-click="Repository, click unstar button, action:blob#show; text:Unstar">
          <svg aria-hidden="true" class="octicon octicon-star" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path fill-rule="evenodd" d="M14 6l-4.9-.64L7 1 4.9 5.36 0 6l3.6 3.26L2.67 14 7 11.67 11.33 14l-.93-4.74z"/></svg>
          Unstar
        </button>
          <a class="social-count js-social-count" href="/js-cookie/js-cookie/stargazers"
             aria-label="4789 users starred this repository">
            4,789
          </a>
  </form>
      <!-- '"` --><!-- </textarea></xmp> --></option></form><form accept-charset="UTF-8" action="/js-cookie/js-cookie/star" class="unstarred" data-form-nonce="60b4dbcf49c37c0434e4f8eb0edec50603216491" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="Qn4IkpCrDP1Hk1jr21LSdi/DzyBeC3Eq63QJ1ASqmqYVVwOcBDXRNpqI15LbCwaaBIf/Lcl4sMd34SisJHrOVA==" /></div>
        <button
          type="submit"
          class="btn btn-sm btn-with-count js-toggler-target"
          aria-label="Star this repository" title="Star js-cookie/js-cookie"
          data-ga-click="Repository, click star button, action:blob#show; text:Star">
          <svg aria-hidden="true" class="octicon octicon-star" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path fill-rule="evenodd" d="M14 6l-4.9-.64L7 1 4.9 5.36 0 6l3.6 3.26L2.67 14 7 11.67 11.33 14l-.93-4.74z"/></svg>
          Star
        </button>
          <a class="social-count js-social-count" href="/js-cookie/js-cookie/stargazers"
             aria-label="4789 users starred this repository">
            4,789
          </a>
  </form>  </div>
  
    </li>
  
    <li>
            <!-- '"` --><!-- </textarea></xmp> --></option></form><form accept-charset="UTF-8" action="/js-cookie/js-cookie/fork" class="btn-with-count" data-form-nonce="60b4dbcf49c37c0434e4f8eb0edec50603216491" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="fm4tDHhOoyiSOVJFHpHkn9WLcOl9QOBoH/bLlZq5sQHE4PuREQncAr7eYZlZKX3Is3XZerf1lG8WssjBnb3/7g==" /></div>
              <button
                  type="submit"
                  class="btn btn-sm btn-with-count"
                  data-ga-click="Repository, show fork modal, action:blob#show; text:Fork"
                  title="Fork your own copy of js-cookie/js-cookie to your account"
                  aria-label="Fork your own copy of js-cookie/js-cookie to your account">
                <svg aria-hidden="true" class="octicon octicon-repo-forked" height="16" version="1.1" viewBox="0 0 10 16" width="10"><path fill-rule="evenodd" d="M8 1a1.993 1.993 0 0 0-1 3.72V6L5 8 3 6V4.72A1.993 1.993 0 0 0 2 1a1.993 1.993 0 0 0-1 3.72V6.5l3 3v1.78A1.993 1.993 0 0 0 5 15a1.993 1.993 0 0 0 1-3.72V9.5l3-3V4.72A1.993 1.993 0 0 0 8 1zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3 10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3-10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"/></svg>
                Fork
              </button>
  </form>
      <a href="/js-cookie/js-cookie/network" class="social-count"
         aria-label="746 users forked this repository">
        746
      </a>
    </li>
  </ul>
  
      <h1 class="public ">
    <svg aria-hidden="true" class="octicon octicon-repo" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M4 9H3V8h1v1zm0-3H3v1h1V6zm0-2H3v1h1V4zm0-2H3v1h1V2zm8-1v12c0 .55-.45 1-1 1H6v2l-1.5-1.5L3 16v-2H1c-.55 0-1-.45-1-1V1c0-.55.45-1 1-1h10c.55 0 1 .45 1 1zm-1 10H1v2h2v-1h3v1h5v-2zm0-10H2v9h9V1z"/></svg>
    <span class="author" itemprop="author"><a href="/js-cookie" class="url fn" rel="author">js-cookie</a></span><!--
  --><span class="path-divider">/</span><!--
  --><strong itemprop="name"><a href="/js-cookie/js-cookie" data-pjax="#js-repo-pjax-container">js-cookie</a></strong>
  
  </h1>
  
    </div>
    <div class="container">
      
  <nav class="reponav js-repo-nav js-sidenav-container-pjax"
       itemscope
       itemtype="http://schema.org/BreadcrumbList"
       role="navigation"
       data-pjax="#js-repo-pjax-container">
  
    <span itemscope itemtype="http://schema.org/ListItem" itemprop="itemListElement">
      <a href="/js-cookie/js-cookie" class="js-selected-navigation-item selected reponav-item" data-hotkey="g c" data-selected-links="repo_source repo_downloads repo_commits repo_releases repo_tags repo_branches /js-cookie/js-cookie" itemprop="url">
        <svg aria-hidden="true" class="octicon octicon-code" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path fill-rule="evenodd" d="M9.5 3L8 4.5 11.5 8 8 11.5 9.5 13 14 8 9.5 3zm-5 0L0 8l4.5 5L6 11.5 2.5 8 6 4.5 4.5 3z"/></svg>
        <span itemprop="name">Code</span>
        <meta itemprop="position" content="1">
  </a>  </span>
  
      <span itemscope itemtype="http://schema.org/ListItem" itemprop="itemListElement">
        <a href="/js-cookie/js-cookie/issues" class="js-selected-navigation-item reponav-item" data-hotkey="g i" data-selected-links="repo_issues repo_labels repo_milestones /js-cookie/js-cookie/issues" itemprop="url">
          <svg aria-hidden="true" class="octicon octicon-issue-opened" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"/></svg>
          <span itemprop="name">Issues</span>
          <span class="counter">7</span>
          <meta itemprop="position" content="2">
  </a>    </span>
  
    <span itemscope itemtype="http://schema.org/ListItem" itemprop="itemListElement">
      <a href="/js-cookie/js-cookie/pulls" class="js-selected-navigation-item reponav-item" data-hotkey="g p" data-selected-links="repo_pulls /js-cookie/js-cookie/pulls" itemprop="url">
        <svg aria-hidden="true" class="octicon octicon-git-pull-request" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M11 11.28V5c-.03-.78-.34-1.47-.94-2.06C9.46 2.35 8.78 2.03 8 2H7V0L4 3l3 3V4h1c.27.02.48.11.69.31.21.2.3.42.31.69v6.28A1.993 1.993 0 0 0 10 15a1.993 1.993 0 0 0 1-3.72zm-1 2.92c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zM4 3c0-1.11-.89-2-2-2a1.993 1.993 0 0 0-1 3.72v6.56A1.993 1.993 0 0 0 2 15a1.993 1.993 0 0 0 1-3.72V4.72c.59-.34 1-.98 1-1.72zm-.8 10c0 .66-.55 1.2-1.2 1.2-.65 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"/></svg>
        <span itemprop="name">Pull requests</span>
        <span class="counter">9</span>
        <meta itemprop="position" content="3">
  </a>  </span>
  
    <a href="/js-cookie/js-cookie/projects" class="js-selected-navigation-item reponav-item" data-selected-links="repo_projects new_repo_project repo_project /js-cookie/js-cookie/projects">
      <svg aria-hidden="true" class="octicon octicon-project" height="16" version="1.1" viewBox="0 0 15 16" width="15"><path fill-rule="evenodd" d="M10 12h3V2h-3v10zm-4-2h3V2H6v8zm-4 4h3V2H2v12zm-1 1h13V1H1v14zM14 0H1a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h13a1 1 0 0 0 1-1V1a1 1 0 0 0-1-1z"/></svg>
      Projects
      <span class="counter">0</span>
  </a>
      <a href="/js-cookie/js-cookie/wiki" class="js-selected-navigation-item reponav-item" data-hotkey="g w" data-selected-links="repo_wiki /js-cookie/js-cookie/wiki">
        <svg aria-hidden="true" class="octicon octicon-book" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M3 5h4v1H3V5zm0 3h4V7H3v1zm0 2h4V9H3v1zm11-5h-4v1h4V5zm0 2h-4v1h4V7zm0 2h-4v1h4V9zm2-6v9c0 .55-.45 1-1 1H9.5l-1 1-1-1H2c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1h5.5l1 1 1-1H15c.55 0 1 .45 1 1zm-8 .5L7.5 3H2v9h6V3.5zm7-.5H9.5l-.5.5V12h6V3z"/></svg>
        Wiki
  </a>
  
    <a href="/js-cookie/js-cookie/pulse" class="js-selected-navigation-item reponav-item" data-selected-links="pulse /js-cookie/js-cookie/pulse">
      <svg aria-hidden="true" class="octicon octicon-pulse" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path fill-rule="evenodd" d="M11.5 8L8.8 5.4 6.6 8.5 5.5 1.6 2.38 8H0v2h3.6l.9-1.8.9 5.4L9 8.5l1.6 1.5H14V8z"/></svg>
      Pulse
  </a>
    <a href="/js-cookie/js-cookie/graphs" class="js-selected-navigation-item reponav-item" data-selected-links="repo_graphs repo_contributors /js-cookie/js-cookie/graphs">
      <svg aria-hidden="true" class="octicon octicon-graph" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M16 14v1H0V0h1v14h15zM5 13H3V8h2v5zm4 0H7V3h2v10zm4 0h-2V6h2v7z"/></svg>
      Graphs
  </a>
  
  </nav>
  
    </div>
  </div>
  
  <div class="container new-discussion-timeline experiment-repo-nav">
    <div class="repository-content">
  
      
  
  <a href="/js-cookie/js-cookie/blob/7fd36e66b60a4e0ac9d09207fb3a348a2969152c/src/js.cookie.js" class="d-none js-permalink-shortcut" data-hotkey="y">Permalink</a>
  
  <!-- blob contrib key: blob_contributors:v21:5cb7e1b7975c194ce9b191c5274f26f3 -->
  
  <div class="file-navigation js-zeroclipboard-container">
    
  <div class="select-menu branch-select-menu js-menu-container js-select-menu float-left">
    <button class="btn btn-sm select-menu-button js-menu-target css-truncate" data-hotkey="w"
      
      type="button" aria-label="Switch branches or tags" tabindex="0" aria-haspopup="true">
      <i>Branch:</i>
      <span class="js-select-button css-truncate-target">master</span>
    </button>
  
    <div class="select-menu-modal-holder js-menu-content js-navigation-container" data-pjax aria-hidden="true">
  
      <div class="select-menu-modal">
        <div class="select-menu-header">
          <svg aria-label="Close" class="octicon octicon-x js-menu-close" height="16" role="img" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48z"/></svg>
          <span class="select-menu-title">Switch branches/tags</span>
        </div>
  
        <div class="select-menu-filters">
          <div class="select-menu-text-filter">
            <input type="text" aria-label="Filter branches/tags" id="context-commitish-filter-field" class="form-control js-filterable-field js-navigation-enable" placeholder="Filter branches/tags">
          </div>
          <div class="select-menu-tabs">
            <ul>
              <li class="select-menu-tab">
                <a href="#" data-tab-filter="branches" data-filter-placeholder="Filter branches/tags" class="js-select-menu-tab" role="tab">Branches</a>
              </li>
              <li class="select-menu-tab">
                <a href="#" data-tab-filter="tags" data-filter-placeholder="Find a tag…" class="js-select-menu-tab" role="tab">Tags</a>
              </li>
            </ul>
          </div>
        </div>
  
        <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="branches" role="menu">
  
          <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
  
  
              <a class="select-menu-item js-navigation-item js-navigation-open "
                 href="/js-cookie/js-cookie/blob/changes-pr-284/src/js.cookie.js"
                 data-name="changes-pr-284"
                 data-skip-pjax="true"
                 rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text">
                  changes-pr-284
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                 href="/js-cookie/js-cookie/blob/clarify-encoding/src/js.cookie.js"
                 data-name="clarify-encoding"
                 data-skip-pjax="true"
                 rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text">
                  clarify-encoding
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                 href="/js-cookie/js-cookie/blob/expires-example-in-minutes/src/js.cookie.js"
                 data-name="expires-example-in-minutes"
                 data-skip-pjax="true"
                 rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text">
                  expires-example-in-minutes
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                 href="/js-cookie/js-cookie/blob/fix-amd-qunitv2/src/js.cookie.js"
                 data-name="fix-amd-qunitv2"
                 data-skip-pjax="true"
                 rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text">
                  fix-amd-qunitv2
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                 href="/js-cookie/js-cookie/blob/fix-release-steps/src/js.cookie.js"
                 data-name="fix-release-steps"
                 data-skip-pjax="true"
                 rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text">
                  fix-release-steps
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                 href="/js-cookie/js-cookie/blob/greenkeeper-grunt-contrib-jshint-1.1.0/src/js.cookie.js"
                 data-name="greenkeeper-grunt-contrib-jshint-1.1.0"
                 data-skip-pjax="true"
                 rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text">
                  greenkeeper-grunt-contrib-jshint-1.1.0
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                 href="/js-cookie/js-cookie/blob/greenkeeper-grunt-contrib-uglify-1.0.2/src/js.cookie.js"
                 data-name="greenkeeper-grunt-contrib-uglify-1.0.2"
                 data-skip-pjax="true"
                 rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text">
                  greenkeeper-grunt-contrib-uglify-1.0.2
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                 href="/js-cookie/js-cookie/blob/greenkeeper-grunt-jscs-3.0.1/src/js.cookie.js"
                 data-name="greenkeeper-grunt-jscs-3.0.1"
                 data-skip-pjax="true"
                 rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text">
                  greenkeeper-grunt-jscs-3.0.1
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                 href="/js-cookie/js-cookie/blob/greenkeeper-grunt-saucelabs-9.0.0/src/js.cookie.js"
                 data-name="greenkeeper-grunt-saucelabs-9.0.0"
                 data-skip-pjax="true"
                 rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text">
                  greenkeeper-grunt-saucelabs-9.0.0
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                 href="/js-cookie/js-cookie/blob/greenkeeper-qunitjs-2.1.0/src/js.cookie.js"
                 data-name="greenkeeper-qunitjs-2.1.0"
                 data-skip-pjax="true"
                 rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text">
                  greenkeeper-qunitjs-2.1.0
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                 href="/js-cookie/js-cookie/blob/greenkeeper-requirejs-2.3.1/src/js.cookie.js"
                 data-name="greenkeeper-requirejs-2.3.1"
                 data-skip-pjax="true"
                 rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text">
                  greenkeeper-requirejs-2.3.1
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                 href="/js-cookie/js-cookie/blob/greenkeeper-requirejs-2.3.2/src/js.cookie.js"
                 data-name="greenkeeper-requirejs-2.3.2"
                 data-skip-pjax="true"
                 rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text">
                  greenkeeper-requirejs-2.3.2
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open selected"
                 href="/js-cookie/js-cookie/blob/master/src/js.cookie.js"
                 data-name="master"
                 data-skip-pjax="true"
                 rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target js-select-menu-filter-text">
                  master
                </span>
              </a>
          </div>
  
            <div class="select-menu-no-results">Nothing to show</div>
        </div>
  
        <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="tags">
          <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
  
  
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v2.1.3/src/js.cookie.js"
                data-name="v2.1.3"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v2.1.3">
                  v2.1.3
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v2.1.2/src/js.cookie.js"
                data-name="v2.1.2"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v2.1.2">
                  v2.1.2
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v2.1.1/src/js.cookie.js"
                data-name="v2.1.1"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v2.1.1">
                  v2.1.1
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v2.1.0/src/js.cookie.js"
                data-name="v2.1.0"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v2.1.0">
                  v2.1.0
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v2.0.4/src/js.cookie.js"
                data-name="v2.0.4"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v2.0.4">
                  v2.0.4
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v2.0.3/src/js.cookie.js"
                data-name="v2.0.3"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v2.0.3">
                  v2.0.3
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v2.0.2/src/js.cookie.js"
                data-name="v2.0.2"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v2.0.2">
                  v2.0.2
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v2.0.1/src/js.cookie.js"
                data-name="v2.0.1"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v2.0.1">
                  v2.0.1
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v2.0.0/src/js.cookie.js"
                data-name="v2.0.0"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v2.0.0">
                  v2.0.0
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v2.0.0-beta.1/src/js.cookie.js"
                data-name="v2.0.0-beta.1"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v2.0.0-beta.1">
                  v2.0.0-beta.1
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v1.5.1/src/js.cookie.js"
                data-name="v1.5.1"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v1.5.1">
                  v1.5.1
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v1.5.0/src/js.cookie.js"
                data-name="v1.5.0"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v1.5.0">
                  v1.5.0
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v1.4.1/src/js.cookie.js"
                data-name="v1.4.1"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v1.4.1">
                  v1.4.1
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v1.4.0/src/js.cookie.js"
                data-name="v1.4.0"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v1.4.0">
                  v1.4.0
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v1.3.1/src/js.cookie.js"
                data-name="v1.3.1"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v1.3.1">
                  v1.3.1
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v1.3.0/src/js.cookie.js"
                data-name="v1.3.0"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v1.3.0">
                  v1.3.0
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v1.2.0/src/js.cookie.js"
                data-name="v1.2.0"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v1.2.0">
                  v1.2.0
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v1.1/src/js.cookie.js"
                data-name="v1.1"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v1.1">
                  v1.1
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/v1.0/src/js.cookie.js"
                data-name="v1.0"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="v1.0">
                  v1.0
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/js-cookie/js-cookie/tree/latest/src/js.cookie.js"
                data-name="latest"
                data-skip-pjax="true"
                rel="nofollow">
                <svg aria-hidden="true" class="octicon octicon-check select-menu-item-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"/></svg>
                <span class="select-menu-item-text css-truncate-target" title="latest">
                  latest
                </span>
              </a>
          </div>
  
          <div class="select-menu-no-results">Nothing to show</div>
        </div>
  
      </div>
    </div>
  </div>
  
    <div class="BtnGroup float-right">
      <a href="/js-cookie/js-cookie/find/master"
            class="js-pjax-capture-input btn btn-sm BtnGroup-item"
            data-pjax
            data-hotkey="t">
        Find file
      </a>
      <button aria-label="Copy file path to clipboard" class="js-zeroclipboard btn btn-sm BtnGroup-item tooltipped tooltipped-s" data-copied-hint="Copied!" type="button">Copy path</button>
    </div>
    <div class="breadcrumb js-zeroclipboard-target">
      <span class="repo-root js-repo-root"><span class="js-path-segment"><a href="/js-cookie/js-cookie"><span>js-cookie</span></a></span></span><span class="separator">/</span><span class="js-path-segment"><a href="/js-cookie/js-cookie/tree/master/src"><span>src</span></a></span><span class="separator">/</span><strong class="final-path">js.cookie.js</strong>
    </div>
  </div>
  
  
    <div class="commit-tease">
        <span class="float-right">
          <a class="commit-tease-sha" href="/js-cookie/js-cookie/commit/68acf18560eb7a5d21db7197ae24d975971d1ae0" data-pjax>
            68acf18
          </a>
          <relative-time datetime="2016-09-02T03:58:54Z">Sep 1, 2016</relative-time>
        </span>
        <div>
          <img alt="@FagnerMartinsBrack" class="avatar" height="20" src="https://avatars2.githubusercontent.com/u/835857?v=3&amp;s=40" width="20" />
          <a href="/FagnerMartinsBrack" class="user-mention" rel="contributor">FagnerMartinsBrack</a>
            <a href="/js-cookie/js-cookie/commit/68acf18560eb7a5d21db7197ae24d975971d1ae0" class="message" data-pjax="true" title="Release version 2.1.3">Release version 2.1.3</a>
        </div>
  
      <div class="commit-tease-contributors">
        <button type="button" class="btn-link muted-link contributors-toggle" data-facebox="#blob_contributors_box">
          <strong>6</strong>
           contributors
        </button>
            <a class="avatar-link tooltipped tooltipped-s" aria-label="FagnerMartinsBrack" href="/js-cookie/js-cookie/commits/latest/src/js.cookie.js?author=FagnerMartinsBrack"><img alt="@FagnerMartinsBrack" class="avatar" height="20" src="https://avatars2.githubusercontent.com/u/835857?v=3&amp;s=40" width="20" /> </a>
      <a class="avatar-link tooltipped tooltipped-s" aria-label="tomsouthall" href="/js-cookie/js-cookie/commits/latest/src/js.cookie.js?author=tomsouthall"><img alt="@tomsouthall" class="avatar" height="20" src="https://avatars2.githubusercontent.com/u/125066?v=3&amp;s=40" width="20" /> </a>
      <a class="avatar-link tooltipped tooltipped-s" aria-label="icamys" href="/js-cookie/js-cookie/commits/latest/src/js.cookie.js?author=icamys"><img alt="@icamys" class="avatar" height="20" src="https://avatars1.githubusercontent.com/u/6891299?v=3&amp;s=40" width="20" /> </a>
      <a class="avatar-link tooltipped tooltipped-s" aria-label="carhartl" href="/js-cookie/js-cookie/commits/latest/src/js.cookie.js?author=carhartl"><img alt="@carhartl" class="avatar" height="20" src="https://avatars3.githubusercontent.com/u/21918?v=3&amp;s=40" width="20" /> </a>
      <a class="avatar-link tooltipped tooltipped-s" aria-label="everdimension" href="/js-cookie/js-cookie/commits/latest/src/js.cookie.js?author=everdimension"><img alt="@everdimension" class="avatar" height="20" src="https://avatars1.githubusercontent.com/u/5347023?v=3&amp;s=40" width="20" /> </a>
      <a class="avatar-link tooltipped tooltipped-s" aria-label="dimac" href="/js-cookie/js-cookie/commits/latest/src/js.cookie.js?author=dimac"><img alt="@dimac" class="avatar" height="20" src="https://avatars1.githubusercontent.com/u/2960518?v=3&amp;s=40" width="20" /> </a>
  
  
      </div>
  
      <div id="blob_contributors_box" style="display:none">
        <h2 class="facebox-header" data-facebox-id="facebox-header">Users who have contributed to this file</h2>
        <ul class="facebox-user-list" data-facebox-id="facebox-description">
            <li class="facebox-user-list-item">
              <img alt="@FagnerMartinsBrack" height="24" src="https://avatars0.githubusercontent.com/u/835857?v=3&amp;s=48" width="24" />
              <a href="/FagnerMartinsBrack">FagnerMartinsBrack</a>
            </li>
            <li class="facebox-user-list-item">
              <img alt="@tomsouthall" height="24" src="https://avatars0.githubusercontent.com/u/125066?v=3&amp;s=48" width="24" />
              <a href="/tomsouthall">tomsouthall</a>
            </li>
            <li class="facebox-user-list-item">
              <img alt="@icamys" height="24" src="https://avatars3.githubusercontent.com/u/6891299?v=3&amp;s=48" width="24" />
              <a href="/icamys">icamys</a>
            </li>
            <li class="facebox-user-list-item">
              <img alt="@carhartl" height="24" src="https://avatars1.githubusercontent.com/u/21918?v=3&amp;s=48" width="24" />
              <a href="/carhartl">carhartl</a>
            </li>
            <li class="facebox-user-list-item">
              <img alt="@everdimension" height="24" src="https://avatars3.githubusercontent.com/u/5347023?v=3&amp;s=48" width="24" />
              <a href="/everdimension">everdimension</a>
            </li>
            <li class="facebox-user-list-item">
              <img alt="@dimac" height="24" src="https://avatars3.githubusercontent.com/u/2960518?v=3&amp;s=48" width="24" />
              <a href="/dimac">dimac</a>
            </li>
        </ul>
      </div>
    </div>
  
  
  <div class="file">
    <div class="file-header">
    <div class="file-actions">
  
      <div class="BtnGroup">
        <a href="/js-cookie/js-cookie/raw/master/src/js.cookie.js" class="btn btn-sm BtnGroup-item" id="raw-url">Raw</a>
          <a href="/js-cookie/js-cookie/blame/master/src/js.cookie.js" class="btn btn-sm js-update-url-with-hash BtnGroup-item">Blame</a>
        <a href="/js-cookie/js-cookie/commits/master/src/js.cookie.js" class="btn btn-sm BtnGroup-item" rel="nofollow">History</a>
      </div>
  
  
          <!-- '"` --><!-- </textarea></xmp> --></option></form><form accept-charset="UTF-8" action="/js-cookie/js-cookie/edit/master/src/js.cookie.js" class="inline-form js-update-url-with-hash" data-form-nonce="60b4dbcf49c37c0434e4f8eb0edec50603216491" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="f44aUSXqAs+lmTwKTqR8b5K57chLJdrXZAgGQP7sL0MYkUzWP+2yUy9YC7Nfp4wzMvCTVB6IpG+V9AZ6/AB74w==" /></div>
            <button class="btn-octicon tooltipped tooltipped-nw" type="submit"
              aria-label="Fork this project and edit the file" data-hotkey="e" data-disable-with>
              <svg aria-hidden="true" class="octicon octicon-pencil" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path fill-rule="evenodd" d="M0 12v3h3l8-8-3-3-8 8zm3 2H1v-2h1v1h1v1zm10.3-9.3L12 6 9 3l1.3-1.3a.996.996 0 0 1 1.41 0l1.59 1.59c.39.39.39 1.02 0 1.41z"/></svg>
            </button>
  </form>        <!-- '"` --><!-- </textarea></xmp> --></option></form><form accept-charset="UTF-8" action="/js-cookie/js-cookie/delete/master/src/js.cookie.js" class="inline-form" data-form-nonce="60b4dbcf49c37c0434e4f8eb0edec50603216491" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="Ml6PWjLTXyzm15LRffFGRjwkaQn2xf+T2cSv9vbnT+/zXGCJbLwD3vYR4EzvoWenrsggrhlsDXkVKLTaG4Zf2A==" /></div>
            <button class="btn-octicon btn-octicon-danger tooltipped tooltipped-nw" type="submit"
              aria-label="Fork this project and delete the file" data-disable-with>
              <svg aria-hidden="true" class="octicon octicon-trashcan" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M11 2H9c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1H2c-.55 0-1 .45-1 1v1c0 .55.45 1 1 1v9c0 .55.45 1 1 1h7c.55 0 1-.45 1-1V5c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 12H3V5h1v8h1V5h1v8h1V5h1v8h1V5h1v9zm1-10H2V3h9v1z"/></svg>
            </button>
  </form>  </div>
  
    <div class="file-info">
        157 lines (133 sloc)
        <span class="file-info-divider"></span>
      3.59 KB
    </div>
  </div>
  
    
  
    <div itemprop="text" class="blob-wrapper data type-javascript">
        <table class="highlight tab-size js-file-line-container" data-tab-size="8">
        <tr>
          <td id="L1" class="blob-num js-line-number" data-line-number="1"></td>
          <td id="LC1" class="blob-code blob-code-inner js-file-line"><span class="pl-c"><span class="pl-c">/*</span>!</span></td>
        </tr>
        <tr>
          <td id="L2" class="blob-num js-line-number" data-line-number="2"></td>
          <td id="LC2" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> * JavaScript Cookie v2.1.3</span></td>
        </tr>
        <tr>
          <td id="L3" class="blob-num js-line-number" data-line-number="3"></td>
          <td id="LC3" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> * https://github.com/js-cookie/js-cookie</span></td>
        </tr>
        <tr>
          <td id="L4" class="blob-num js-line-number" data-line-number="4"></td>
          <td id="LC4" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> *</span></td>
        </tr>
        <tr>
          <td id="L5" class="blob-num js-line-number" data-line-number="5"></td>
          <td id="LC5" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> * Copyright 2006, 2015 Klaus Hartl &amp; Fagner Brack</span></td>
        </tr>
        <tr>
          <td id="L6" class="blob-num js-line-number" data-line-number="6"></td>
          <td id="LC6" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> * Released under the MIT license</span></td>
        </tr>
        <tr>
          <td id="L7" class="blob-num js-line-number" data-line-number="7"></td>
          <td id="LC7" class="blob-code blob-code-inner js-file-line"><span class="pl-c"> <span class="pl-c">*/</span></span></td>
        </tr>
        <tr>
          <td id="L8" class="blob-num js-line-number" data-line-number="8"></td>
          <td id="LC8" class="blob-code blob-code-inner js-file-line">;(<span class="pl-k">function</span> (<span class="pl-smi">factory</span>) {</td>
        </tr>
        <tr>
          <td id="L9" class="blob-num js-line-number" data-line-number="9"></td>
          <td id="LC9" class="blob-code blob-code-inner js-file-line">	<span class="pl-k">var</span> registeredInModuleLoader <span class="pl-k">=</span> <span class="pl-c1">false</span>;</td>
        </tr>
        <tr>
          <td id="L10" class="blob-num js-line-number" data-line-number="10"></td>
          <td id="LC10" class="blob-code blob-code-inner js-file-line">	<span class="pl-k">if</span> (<span class="pl-k">typeof</span> define <span class="pl-k">===</span> <span class="pl-s"><span class="pl-pds">&#39;</span>function<span class="pl-pds">&#39;</span></span> <span class="pl-k">&amp;&amp;</span> <span class="pl-smi">define</span>.<span class="pl-smi">amd</span>) {</td>
        </tr>
        <tr>
          <td id="L11" class="blob-num js-line-number" data-line-number="11"></td>
          <td id="LC11" class="blob-code blob-code-inner js-file-line">		<span class="pl-en">define</span>(factory);</td>
        </tr>
        <tr>
          <td id="L12" class="blob-num js-line-number" data-line-number="12"></td>
          <td id="LC12" class="blob-code blob-code-inner js-file-line">		registeredInModuleLoader <span class="pl-k">=</span> <span class="pl-c1">true</span>;</td>
        </tr>
        <tr>
          <td id="L13" class="blob-num js-line-number" data-line-number="13"></td>
          <td id="LC13" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="L14" class="blob-num js-line-number" data-line-number="14"></td>
          <td id="LC14" class="blob-code blob-code-inner js-file-line">	<span class="pl-k">if</span> (<span class="pl-k">typeof</span> <span class="pl-c1">exports</span> <span class="pl-k">===</span> <span class="pl-s"><span class="pl-pds">&#39;</span>object<span class="pl-pds">&#39;</span></span>) {</td>
        </tr>
        <tr>
          <td id="L15" class="blob-num js-line-number" data-line-number="15"></td>
          <td id="LC15" class="blob-code blob-code-inner js-file-line">		<span class="pl-c1">module</span>.<span class="pl-smi">exports</span> <span class="pl-k">=</span> <span class="pl-en">factory</span>();</td>
        </tr>
        <tr>
          <td id="L16" class="blob-num js-line-number" data-line-number="16"></td>
          <td id="LC16" class="blob-code blob-code-inner js-file-line">		registeredInModuleLoader <span class="pl-k">=</span> <span class="pl-c1">true</span>;</td>
        </tr>
        <tr>
          <td id="L17" class="blob-num js-line-number" data-line-number="17"></td>
          <td id="LC17" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="L18" class="blob-num js-line-number" data-line-number="18"></td>
          <td id="LC18" class="blob-code blob-code-inner js-file-line">	<span class="pl-k">if</span> (<span class="pl-k">!</span>registeredInModuleLoader) {</td>
        </tr>
        <tr>
          <td id="L19" class="blob-num js-line-number" data-line-number="19"></td>
          <td id="LC19" class="blob-code blob-code-inner js-file-line">		<span class="pl-k">var</span> OldCookies <span class="pl-k">=</span> <span class="pl-c1">window</span>.<span class="pl-smi">Cookies</span>;</td>
        </tr>
        <tr>
          <td id="L20" class="blob-num js-line-number" data-line-number="20"></td>
          <td id="LC20" class="blob-code blob-code-inner js-file-line">		<span class="pl-k">var</span> api <span class="pl-k">=</span> <span class="pl-c1">window</span>.<span class="pl-smi">Cookies</span> <span class="pl-k">=</span> <span class="pl-en">factory</span>();</td>
        </tr>
        <tr>
          <td id="L21" class="blob-num js-line-number" data-line-number="21"></td>
          <td id="LC21" class="blob-code blob-code-inner js-file-line">		<span class="pl-smi">api</span>.<span class="pl-en">noConflict</span> <span class="pl-k">=</span> <span class="pl-k">function</span> () {</td>
        </tr>
        <tr>
          <td id="L22" class="blob-num js-line-number" data-line-number="22"></td>
          <td id="LC22" class="blob-code blob-code-inner js-file-line">			<span class="pl-c1">window</span>.<span class="pl-smi">Cookies</span> <span class="pl-k">=</span> OldCookies;</td>
        </tr>
        <tr>
          <td id="L23" class="blob-num js-line-number" data-line-number="23"></td>
          <td id="LC23" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">return</span> api;</td>
        </tr>
        <tr>
          <td id="L24" class="blob-num js-line-number" data-line-number="24"></td>
          <td id="LC24" class="blob-code blob-code-inner js-file-line">		};</td>
        </tr>
        <tr>
          <td id="L25" class="blob-num js-line-number" data-line-number="25"></td>
          <td id="LC25" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="L26" class="blob-num js-line-number" data-line-number="26"></td>
          <td id="LC26" class="blob-code blob-code-inner js-file-line">}(<span class="pl-k">function</span> () {</td>
        </tr>
        <tr>
          <td id="L27" class="blob-num js-line-number" data-line-number="27"></td>
          <td id="LC27" class="blob-code blob-code-inner js-file-line">	<span class="pl-k">function</span> <span class="pl-en">extend</span> () {</td>
        </tr>
        <tr>
          <td id="L28" class="blob-num js-line-number" data-line-number="28"></td>
          <td id="LC28" class="blob-code blob-code-inner js-file-line">		<span class="pl-k">var</span> i <span class="pl-k">=</span> <span class="pl-c1">0</span>;</td>
        </tr>
        <tr>
          <td id="L29" class="blob-num js-line-number" data-line-number="29"></td>
          <td id="LC29" class="blob-code blob-code-inner js-file-line">		<span class="pl-k">var</span> result <span class="pl-k">=</span> {};</td>
        </tr>
        <tr>
          <td id="L30" class="blob-num js-line-number" data-line-number="30"></td>
          <td id="LC30" class="blob-code blob-code-inner js-file-line">		<span class="pl-k">for</span> (; i <span class="pl-k">&lt;</span> <span class="pl-c1">arguments</span>.<span class="pl-c1">length</span>; i<span class="pl-k">++</span>) {</td>
        </tr>
        <tr>
          <td id="L31" class="blob-num js-line-number" data-line-number="31"></td>
          <td id="LC31" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">var</span> attributes <span class="pl-k">=</span> <span class="pl-c1">arguments</span>[ i ];</td>
        </tr>
        <tr>
          <td id="L32" class="blob-num js-line-number" data-line-number="32"></td>
          <td id="LC32" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">for</span> (<span class="pl-k">var</span> key <span class="pl-k">in</span> attributes) {</td>
        </tr>
        <tr>
          <td id="L33" class="blob-num js-line-number" data-line-number="33"></td>
          <td id="LC33" class="blob-code blob-code-inner js-file-line">				result[key] <span class="pl-k">=</span> attributes[key];</td>
        </tr>
        <tr>
          <td id="L34" class="blob-num js-line-number" data-line-number="34"></td>
          <td id="LC34" class="blob-code blob-code-inner js-file-line">			}</td>
        </tr>
        <tr>
          <td id="L35" class="blob-num js-line-number" data-line-number="35"></td>
          <td id="LC35" class="blob-code blob-code-inner js-file-line">		}</td>
        </tr>
        <tr>
          <td id="L36" class="blob-num js-line-number" data-line-number="36"></td>
          <td id="LC36" class="blob-code blob-code-inner js-file-line">		<span class="pl-k">return</span> result;</td>
        </tr>
        <tr>
          <td id="L37" class="blob-num js-line-number" data-line-number="37"></td>
          <td id="LC37" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="L38" class="blob-num js-line-number" data-line-number="38"></td>
          <td id="LC38" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L39" class="blob-num js-line-number" data-line-number="39"></td>
          <td id="LC39" class="blob-code blob-code-inner js-file-line">	<span class="pl-k">function</span> <span class="pl-en">init</span> (<span class="pl-smi">converter</span>) {</td>
        </tr>
        <tr>
          <td id="L40" class="blob-num js-line-number" data-line-number="40"></td>
          <td id="LC40" class="blob-code blob-code-inner js-file-line">		<span class="pl-k">function</span> <span class="pl-en">api</span> (<span class="pl-smi">key</span>, <span class="pl-smi">value</span>, <span class="pl-smi">attributes</span>) {</td>
        </tr>
        <tr>
          <td id="L41" class="blob-num js-line-number" data-line-number="41"></td>
          <td id="LC41" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">var</span> result;</td>
        </tr>
        <tr>
          <td id="L42" class="blob-num js-line-number" data-line-number="42"></td>
          <td id="LC42" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">if</span> (<span class="pl-k">typeof</span> <span class="pl-c1">document</span> <span class="pl-k">===</span> <span class="pl-s"><span class="pl-pds">&#39;</span>undefined<span class="pl-pds">&#39;</span></span>) {</td>
        </tr>
        <tr>
          <td id="L43" class="blob-num js-line-number" data-line-number="43"></td>
          <td id="LC43" class="blob-code blob-code-inner js-file-line">				<span class="pl-k">return</span>;</td>
        </tr>
        <tr>
          <td id="L44" class="blob-num js-line-number" data-line-number="44"></td>
          <td id="LC44" class="blob-code blob-code-inner js-file-line">			}</td>
        </tr>
        <tr>
          <td id="L45" class="blob-num js-line-number" data-line-number="45"></td>
          <td id="LC45" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L46" class="blob-num js-line-number" data-line-number="46"></td>
          <td id="LC46" class="blob-code blob-code-inner js-file-line">			<span class="pl-c"><span class="pl-c">//</span> Write</span></td>
        </tr>
        <tr>
          <td id="L47" class="blob-num js-line-number" data-line-number="47"></td>
          <td id="LC47" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L48" class="blob-num js-line-number" data-line-number="48"></td>
          <td id="LC48" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">if</span> (<span class="pl-c1">arguments</span>.<span class="pl-c1">length</span> <span class="pl-k">&gt;</span> <span class="pl-c1">1</span>) {</td>
        </tr>
        <tr>
          <td id="L49" class="blob-num js-line-number" data-line-number="49"></td>
          <td id="LC49" class="blob-code blob-code-inner js-file-line">				attributes <span class="pl-k">=</span> <span class="pl-en">extend</span>({</td>
        </tr>
        <tr>
          <td id="L50" class="blob-num js-line-number" data-line-number="50"></td>
          <td id="LC50" class="blob-code blob-code-inner js-file-line">					path<span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">&#39;</span>/<span class="pl-pds">&#39;</span></span></td>
        </tr>
        <tr>
          <td id="L51" class="blob-num js-line-number" data-line-number="51"></td>
          <td id="LC51" class="blob-code blob-code-inner js-file-line">				}, <span class="pl-smi">api</span>.<span class="pl-smi">defaults</span>, attributes);</td>
        </tr>
        <tr>
          <td id="L52" class="blob-num js-line-number" data-line-number="52"></td>
          <td id="LC52" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L53" class="blob-num js-line-number" data-line-number="53"></td>
          <td id="LC53" class="blob-code blob-code-inner js-file-line">				<span class="pl-k">if</span> (<span class="pl-k">typeof</span> <span class="pl-smi">attributes</span>.<span class="pl-smi">expires</span> <span class="pl-k">===</span> <span class="pl-s"><span class="pl-pds">&#39;</span>number<span class="pl-pds">&#39;</span></span>) {</td>
        </tr>
        <tr>
          <td id="L54" class="blob-num js-line-number" data-line-number="54"></td>
          <td id="LC54" class="blob-code blob-code-inner js-file-line">					<span class="pl-k">var</span> expires <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-en">Date</span>();</td>
        </tr>
        <tr>
          <td id="L55" class="blob-num js-line-number" data-line-number="55"></td>
          <td id="LC55" class="blob-code blob-code-inner js-file-line">					<span class="pl-smi">expires</span>.<span class="pl-c1">setMilliseconds</span>(<span class="pl-smi">expires</span>.<span class="pl-c1">getMilliseconds</span>() <span class="pl-k">+</span> <span class="pl-smi">attributes</span>.<span class="pl-smi">expires</span> <span class="pl-k">*</span> <span class="pl-c1">864e+5</span>);</td>
        </tr>
        <tr>
          <td id="L56" class="blob-num js-line-number" data-line-number="56"></td>
          <td id="LC56" class="blob-code blob-code-inner js-file-line">					<span class="pl-smi">attributes</span>.<span class="pl-smi">expires</span> <span class="pl-k">=</span> expires;</td>
        </tr>
        <tr>
          <td id="L57" class="blob-num js-line-number" data-line-number="57"></td>
          <td id="LC57" class="blob-code blob-code-inner js-file-line">				}</td>
        </tr>
        <tr>
          <td id="L58" class="blob-num js-line-number" data-line-number="58"></td>
          <td id="LC58" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L59" class="blob-num js-line-number" data-line-number="59"></td>
          <td id="LC59" class="blob-code blob-code-inner js-file-line">				<span class="pl-k">try</span> {</td>
        </tr>
        <tr>
          <td id="L60" class="blob-num js-line-number" data-line-number="60"></td>
          <td id="LC60" class="blob-code blob-code-inner js-file-line">					result <span class="pl-k">=</span> <span class="pl-c1">JSON</span>.<span class="pl-en">stringify</span>(value);</td>
        </tr>
        <tr>
          <td id="L61" class="blob-num js-line-number" data-line-number="61"></td>
          <td id="LC61" class="blob-code blob-code-inner js-file-line">					<span class="pl-k">if</span> (<span class="pl-sr"><span class="pl-pds">/</span><span class="pl-k">^</span><span class="pl-c1">[<span class="pl-cce">\{\[</span>]</span><span class="pl-pds">/</span></span>.<span class="pl-c1">test</span>(result)) {</td>
        </tr>
        <tr>
          <td id="L62" class="blob-num js-line-number" data-line-number="62"></td>
          <td id="LC62" class="blob-code blob-code-inner js-file-line">						value <span class="pl-k">=</span> result;</td>
        </tr>
        <tr>
          <td id="L63" class="blob-num js-line-number" data-line-number="63"></td>
          <td id="LC63" class="blob-code blob-code-inner js-file-line">					}</td>
        </tr>
        <tr>
          <td id="L64" class="blob-num js-line-number" data-line-number="64"></td>
          <td id="LC64" class="blob-code blob-code-inner js-file-line">				} <span class="pl-k">catch</span> (e) {}</td>
        </tr>
        <tr>
          <td id="L65" class="blob-num js-line-number" data-line-number="65"></td>
          <td id="LC65" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L66" class="blob-num js-line-number" data-line-number="66"></td>
          <td id="LC66" class="blob-code blob-code-inner js-file-line">				<span class="pl-k">if</span> (<span class="pl-k">!</span><span class="pl-smi">converter</span>.<span class="pl-smi">write</span>) {</td>
        </tr>
        <tr>
          <td id="L67" class="blob-num js-line-number" data-line-number="67"></td>
          <td id="LC67" class="blob-code blob-code-inner js-file-line">					value <span class="pl-k">=</span> <span class="pl-c1">encodeURIComponent</span>(<span class="pl-c1">String</span>(value))</td>
        </tr>
        <tr>
          <td id="L68" class="blob-num js-line-number" data-line-number="68"></td>
          <td id="LC68" class="blob-code blob-code-inner js-file-line">						.<span class="pl-c1">replace</span>(<span class="pl-sr"><span class="pl-pds">/</span>%(23<span class="pl-k">|</span>24<span class="pl-k">|</span>26<span class="pl-k">|</span>2B<span class="pl-k">|</span>3A<span class="pl-k">|</span>3C<span class="pl-k">|</span>3E<span class="pl-k">|</span>3D<span class="pl-k">|</span>2F<span class="pl-k">|</span>3F<span class="pl-k">|</span>40<span class="pl-k">|</span>5B<span class="pl-k">|</span>5D<span class="pl-k">|</span>5E<span class="pl-k">|</span>60<span class="pl-k">|</span>7B<span class="pl-k">|</span>7D<span class="pl-k">|</span>7C)<span class="pl-pds">/</span>g</span>, decodeURIComponent);</td>
        </tr>
        <tr>
          <td id="L69" class="blob-num js-line-number" data-line-number="69"></td>
          <td id="LC69" class="blob-code blob-code-inner js-file-line">				} <span class="pl-k">else</span> {</td>
        </tr>
        <tr>
          <td id="L70" class="blob-num js-line-number" data-line-number="70"></td>
          <td id="LC70" class="blob-code blob-code-inner js-file-line">					value <span class="pl-k">=</span> <span class="pl-smi">converter</span>.<span class="pl-c1">write</span>(value, key);</td>
        </tr>
        <tr>
          <td id="L71" class="blob-num js-line-number" data-line-number="71"></td>
          <td id="LC71" class="blob-code blob-code-inner js-file-line">				}</td>
        </tr>
        <tr>
          <td id="L72" class="blob-num js-line-number" data-line-number="72"></td>
          <td id="LC72" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L73" class="blob-num js-line-number" data-line-number="73"></td>
          <td id="LC73" class="blob-code blob-code-inner js-file-line">				key <span class="pl-k">=</span> <span class="pl-c1">encodeURIComponent</span>(<span class="pl-c1">String</span>(key));</td>
        </tr>
        <tr>
          <td id="L74" class="blob-num js-line-number" data-line-number="74"></td>
          <td id="LC74" class="blob-code blob-code-inner js-file-line">				key <span class="pl-k">=</span> <span class="pl-smi">key</span>.<span class="pl-c1">replace</span>(<span class="pl-sr"><span class="pl-pds">/</span>%(23<span class="pl-k">|</span>24<span class="pl-k">|</span>26<span class="pl-k">|</span>2B<span class="pl-k">|</span>5E<span class="pl-k">|</span>60<span class="pl-k">|</span>7C)<span class="pl-pds">/</span>g</span>, decodeURIComponent);</td>
        </tr>
        <tr>
          <td id="L75" class="blob-num js-line-number" data-line-number="75"></td>
          <td id="LC75" class="blob-code blob-code-inner js-file-line">				key <span class="pl-k">=</span> <span class="pl-smi">key</span>.<span class="pl-c1">replace</span>(<span class="pl-sr"><span class="pl-pds">/</span><span class="pl-c1">[<span class="pl-cce">\(\)</span>]</span><span class="pl-pds">/</span>g</span>, escape);</td>
        </tr>
        <tr>
          <td id="L76" class="blob-num js-line-number" data-line-number="76"></td>
          <td id="LC76" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L77" class="blob-num js-line-number" data-line-number="77"></td>
          <td id="LC77" class="blob-code blob-code-inner js-file-line">				<span class="pl-k">return</span> (<span class="pl-c1">document</span>.<span class="pl-c1">cookie</span> <span class="pl-k">=</span> [</td>
        </tr>
        <tr>
          <td id="L78" class="blob-num js-line-number" data-line-number="78"></td>
          <td id="LC78" class="blob-code blob-code-inner js-file-line">					key, <span class="pl-s"><span class="pl-pds">&#39;</span>=<span class="pl-pds">&#39;</span></span>, value,</td>
        </tr>
        <tr>
          <td id="L79" class="blob-num js-line-number" data-line-number="79"></td>
          <td id="LC79" class="blob-code blob-code-inner js-file-line">					<span class="pl-smi">attributes</span>.<span class="pl-smi">expires</span> <span class="pl-k">?</span> <span class="pl-s"><span class="pl-pds">&#39;</span>; expires=<span class="pl-pds">&#39;</span></span> <span class="pl-k">+</span> <span class="pl-smi">attributes</span>.<span class="pl-smi">expires</span>.<span class="pl-c1">toUTCString</span>() <span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">&#39;</span><span class="pl-pds">&#39;</span></span>, <span class="pl-c"><span class="pl-c">//</span> use expires attribute, max-age is not supported by IE</span></td>
        </tr>
        <tr>
          <td id="L80" class="blob-num js-line-number" data-line-number="80"></td>
          <td id="LC80" class="blob-code blob-code-inner js-file-line">					<span class="pl-smi">attributes</span>.<span class="pl-smi">path</span> <span class="pl-k">?</span> <span class="pl-s"><span class="pl-pds">&#39;</span>; path=<span class="pl-pds">&#39;</span></span> <span class="pl-k">+</span> <span class="pl-smi">attributes</span>.<span class="pl-smi">path</span> <span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">&#39;</span><span class="pl-pds">&#39;</span></span>,</td>
        </tr>
        <tr>
          <td id="L81" class="blob-num js-line-number" data-line-number="81"></td>
          <td id="LC81" class="blob-code blob-code-inner js-file-line">					<span class="pl-smi">attributes</span>.<span class="pl-smi">domain</span> <span class="pl-k">?</span> <span class="pl-s"><span class="pl-pds">&#39;</span>; domain=<span class="pl-pds">&#39;</span></span> <span class="pl-k">+</span> <span class="pl-smi">attributes</span>.<span class="pl-smi">domain</span> <span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">&#39;</span><span class="pl-pds">&#39;</span></span>,</td>
        </tr>
        <tr>
          <td id="L82" class="blob-num js-line-number" data-line-number="82"></td>
          <td id="LC82" class="blob-code blob-code-inner js-file-line">					<span class="pl-smi">attributes</span>.<span class="pl-smi">secure</span> <span class="pl-k">?</span> <span class="pl-s"><span class="pl-pds">&#39;</span>; secure<span class="pl-pds">&#39;</span></span> <span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">&#39;</span><span class="pl-pds">&#39;</span></span></td>
        </tr>
        <tr>
          <td id="L83" class="blob-num js-line-number" data-line-number="83"></td>
          <td id="LC83" class="blob-code blob-code-inner js-file-line">				].<span class="pl-c1">join</span>(<span class="pl-s"><span class="pl-pds">&#39;</span><span class="pl-pds">&#39;</span></span>));</td>
        </tr>
        <tr>
          <td id="L84" class="blob-num js-line-number" data-line-number="84"></td>
          <td id="LC84" class="blob-code blob-code-inner js-file-line">			}</td>
        </tr>
        <tr>
          <td id="L85" class="blob-num js-line-number" data-line-number="85"></td>
          <td id="LC85" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L86" class="blob-num js-line-number" data-line-number="86"></td>
          <td id="LC86" class="blob-code blob-code-inner js-file-line">			<span class="pl-c"><span class="pl-c">//</span> Read</span></td>
        </tr>
        <tr>
          <td id="L87" class="blob-num js-line-number" data-line-number="87"></td>
          <td id="LC87" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L88" class="blob-num js-line-number" data-line-number="88"></td>
          <td id="LC88" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">if</span> (<span class="pl-k">!</span>key) {</td>
        </tr>
        <tr>
          <td id="L89" class="blob-num js-line-number" data-line-number="89"></td>
          <td id="LC89" class="blob-code blob-code-inner js-file-line">				result <span class="pl-k">=</span> {};</td>
        </tr>
        <tr>
          <td id="L90" class="blob-num js-line-number" data-line-number="90"></td>
          <td id="LC90" class="blob-code blob-code-inner js-file-line">			}</td>
        </tr>
        <tr>
          <td id="L91" class="blob-num js-line-number" data-line-number="91"></td>
          <td id="LC91" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L92" class="blob-num js-line-number" data-line-number="92"></td>
          <td id="LC92" class="blob-code blob-code-inner js-file-line">			<span class="pl-c"><span class="pl-c">//</span> To prevent the for loop in the first place assign an empty array</span></td>
        </tr>
        <tr>
          <td id="L93" class="blob-num js-line-number" data-line-number="93"></td>
          <td id="LC93" class="blob-code blob-code-inner js-file-line">			<span class="pl-c"><span class="pl-c">//</span> in case there are no cookies at all. Also prevents odd result when</span></td>
        </tr>
        <tr>
          <td id="L94" class="blob-num js-line-number" data-line-number="94"></td>
          <td id="LC94" class="blob-code blob-code-inner js-file-line">			<span class="pl-c"><span class="pl-c">//</span> calling &quot;get()&quot;</span></td>
        </tr>
        <tr>
          <td id="L95" class="blob-num js-line-number" data-line-number="95"></td>
          <td id="LC95" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">var</span> cookies <span class="pl-k">=</span> <span class="pl-c1">document</span>.<span class="pl-c1">cookie</span> <span class="pl-k">?</span> <span class="pl-c1">document</span>.<span class="pl-c1">cookie</span>.<span class="pl-c1">split</span>(<span class="pl-s"><span class="pl-pds">&#39;</span>; <span class="pl-pds">&#39;</span></span>) <span class="pl-k">:</span> [];</td>
        </tr>
        <tr>
          <td id="L96" class="blob-num js-line-number" data-line-number="96"></td>
          <td id="LC96" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">var</span> rdecode <span class="pl-k">=</span><span class="pl-sr"> <span class="pl-pds">/</span>(%<span class="pl-c1">[<span class="pl-c1">0-9A-Z</span>]</span><span class="pl-k">{2}</span>)<span class="pl-k">+</span><span class="pl-pds">/</span>g</span>;</td>
        </tr>
        <tr>
          <td id="L97" class="blob-num js-line-number" data-line-number="97"></td>
          <td id="LC97" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">var</span> i <span class="pl-k">=</span> <span class="pl-c1">0</span>;</td>
        </tr>
        <tr>
          <td id="L98" class="blob-num js-line-number" data-line-number="98"></td>
          <td id="LC98" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L99" class="blob-num js-line-number" data-line-number="99"></td>
          <td id="LC99" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">for</span> (; i <span class="pl-k">&lt;</span> <span class="pl-smi">cookies</span>.<span class="pl-c1">length</span>; i<span class="pl-k">++</span>) {</td>
        </tr>
        <tr>
          <td id="L100" class="blob-num js-line-number" data-line-number="100"></td>
          <td id="LC100" class="blob-code blob-code-inner js-file-line">				<span class="pl-k">var</span> parts <span class="pl-k">=</span> cookies[i].<span class="pl-c1">split</span>(<span class="pl-s"><span class="pl-pds">&#39;</span>=<span class="pl-pds">&#39;</span></span>);</td>
        </tr>
        <tr>
          <td id="L101" class="blob-num js-line-number" data-line-number="101"></td>
          <td id="LC101" class="blob-code blob-code-inner js-file-line">				<span class="pl-k">var</span> cookie <span class="pl-k">=</span> <span class="pl-smi">parts</span>.<span class="pl-c1">slice</span>(<span class="pl-c1">1</span>).<span class="pl-c1">join</span>(<span class="pl-s"><span class="pl-pds">&#39;</span>=<span class="pl-pds">&#39;</span></span>);</td>
        </tr>
        <tr>
          <td id="L102" class="blob-num js-line-number" data-line-number="102"></td>
          <td id="LC102" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L103" class="blob-num js-line-number" data-line-number="103"></td>
          <td id="LC103" class="blob-code blob-code-inner js-file-line">				<span class="pl-k">if</span> (<span class="pl-smi">cookie</span>.<span class="pl-c1">charAt</span>(<span class="pl-c1">0</span>) <span class="pl-k">===</span> <span class="pl-s"><span class="pl-pds">&#39;</span>&quot;<span class="pl-pds">&#39;</span></span>) {</td>
        </tr>
        <tr>
          <td id="L104" class="blob-num js-line-number" data-line-number="104"></td>
          <td id="LC104" class="blob-code blob-code-inner js-file-line">					cookie <span class="pl-k">=</span> <span class="pl-smi">cookie</span>.<span class="pl-c1">slice</span>(<span class="pl-c1">1</span>, <span class="pl-k">-</span><span class="pl-c1">1</span>);</td>
        </tr>
        <tr>
          <td id="L105" class="blob-num js-line-number" data-line-number="105"></td>
          <td id="LC105" class="blob-code blob-code-inner js-file-line">				}</td>
        </tr>
        <tr>
          <td id="L106" class="blob-num js-line-number" data-line-number="106"></td>
          <td id="LC106" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L107" class="blob-num js-line-number" data-line-number="107"></td>
          <td id="LC107" class="blob-code blob-code-inner js-file-line">				<span class="pl-k">try</span> {</td>
        </tr>
        <tr>
          <td id="L108" class="blob-num js-line-number" data-line-number="108"></td>
          <td id="LC108" class="blob-code blob-code-inner js-file-line">					<span class="pl-k">var</span> name <span class="pl-k">=</span> parts[<span class="pl-c1">0</span>].<span class="pl-c1">replace</span>(rdecode, decodeURIComponent);</td>
        </tr>
        <tr>
          <td id="L109" class="blob-num js-line-number" data-line-number="109"></td>
          <td id="LC109" class="blob-code blob-code-inner js-file-line">					cookie <span class="pl-k">=</span> <span class="pl-smi">converter</span>.<span class="pl-smi">read</span> <span class="pl-k">?</span></td>
        </tr>
        <tr>
          <td id="L110" class="blob-num js-line-number" data-line-number="110"></td>
          <td id="LC110" class="blob-code blob-code-inner js-file-line">						<span class="pl-smi">converter</span>.<span class="pl-en">read</span>(cookie, name) <span class="pl-k">:</span> <span class="pl-en">converter</span>(cookie, name) <span class="pl-k">||</span></td>
        </tr>
        <tr>
          <td id="L111" class="blob-num js-line-number" data-line-number="111"></td>
          <td id="LC111" class="blob-code blob-code-inner js-file-line">						<span class="pl-smi">cookie</span>.<span class="pl-c1">replace</span>(rdecode, decodeURIComponent);</td>
        </tr>
        <tr>
          <td id="L112" class="blob-num js-line-number" data-line-number="112"></td>
          <td id="LC112" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L113" class="blob-num js-line-number" data-line-number="113"></td>
          <td id="LC113" class="blob-code blob-code-inner js-file-line">					<span class="pl-k">if</span> (<span class="pl-c1">this</span>.<span class="pl-smi">json</span>) {</td>
        </tr>
        <tr>
          <td id="L114" class="blob-num js-line-number" data-line-number="114"></td>
          <td id="LC114" class="blob-code blob-code-inner js-file-line">						<span class="pl-k">try</span> {</td>
        </tr>
        <tr>
          <td id="L115" class="blob-num js-line-number" data-line-number="115"></td>
          <td id="LC115" class="blob-code blob-code-inner js-file-line">							cookie <span class="pl-k">=</span> <span class="pl-c1">JSON</span>.<span class="pl-c1">parse</span>(cookie);</td>
        </tr>
        <tr>
          <td id="L116" class="blob-num js-line-number" data-line-number="116"></td>
          <td id="LC116" class="blob-code blob-code-inner js-file-line">						} <span class="pl-k">catch</span> (e) {}</td>
        </tr>
        <tr>
          <td id="L117" class="blob-num js-line-number" data-line-number="117"></td>
          <td id="LC117" class="blob-code blob-code-inner js-file-line">					}</td>
        </tr>
        <tr>
          <td id="L118" class="blob-num js-line-number" data-line-number="118"></td>
          <td id="LC118" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L119" class="blob-num js-line-number" data-line-number="119"></td>
          <td id="LC119" class="blob-code blob-code-inner js-file-line">					<span class="pl-k">if</span> (key <span class="pl-k">===</span> name) {</td>
        </tr>
        <tr>
          <td id="L120" class="blob-num js-line-number" data-line-number="120"></td>
          <td id="LC120" class="blob-code blob-code-inner js-file-line">						result <span class="pl-k">=</span> cookie;</td>
        </tr>
        <tr>
          <td id="L121" class="blob-num js-line-number" data-line-number="121"></td>
          <td id="LC121" class="blob-code blob-code-inner js-file-line">						<span class="pl-k">break</span>;</td>
        </tr>
        <tr>
          <td id="L122" class="blob-num js-line-number" data-line-number="122"></td>
          <td id="LC122" class="blob-code blob-code-inner js-file-line">					}</td>
        </tr>
        <tr>
          <td id="L123" class="blob-num js-line-number" data-line-number="123"></td>
          <td id="LC123" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L124" class="blob-num js-line-number" data-line-number="124"></td>
          <td id="LC124" class="blob-code blob-code-inner js-file-line">					<span class="pl-k">if</span> (<span class="pl-k">!</span>key) {</td>
        </tr>
        <tr>
          <td id="L125" class="blob-num js-line-number" data-line-number="125"></td>
          <td id="LC125" class="blob-code blob-code-inner js-file-line">						result[name] <span class="pl-k">=</span> cookie;</td>
        </tr>
        <tr>
          <td id="L126" class="blob-num js-line-number" data-line-number="126"></td>
          <td id="LC126" class="blob-code blob-code-inner js-file-line">					}</td>
        </tr>
        <tr>
          <td id="L127" class="blob-num js-line-number" data-line-number="127"></td>
          <td id="LC127" class="blob-code blob-code-inner js-file-line">				} <span class="pl-k">catch</span> (e) {}</td>
        </tr>
        <tr>
          <td id="L128" class="blob-num js-line-number" data-line-number="128"></td>
          <td id="LC128" class="blob-code blob-code-inner js-file-line">			}</td>
        </tr>
        <tr>
          <td id="L129" class="blob-num js-line-number" data-line-number="129"></td>
          <td id="LC129" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L130" class="blob-num js-line-number" data-line-number="130"></td>
          <td id="LC130" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">return</span> result;</td>
        </tr>
        <tr>
          <td id="L131" class="blob-num js-line-number" data-line-number="131"></td>
          <td id="LC131" class="blob-code blob-code-inner js-file-line">		}</td>
        </tr>
        <tr>
          <td id="L132" class="blob-num js-line-number" data-line-number="132"></td>
          <td id="LC132" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L133" class="blob-num js-line-number" data-line-number="133"></td>
          <td id="LC133" class="blob-code blob-code-inner js-file-line">		<span class="pl-smi">api</span>.<span class="pl-smi">set</span> <span class="pl-k">=</span> api;</td>
        </tr>
        <tr>
          <td id="L134" class="blob-num js-line-number" data-line-number="134"></td>
          <td id="LC134" class="blob-code blob-code-inner js-file-line">		<span class="pl-smi">api</span>.<span class="pl-en">get</span> <span class="pl-k">=</span> <span class="pl-k">function</span> (<span class="pl-smi">key</span>) {</td>
        </tr>
        <tr>
          <td id="L135" class="blob-num js-line-number" data-line-number="135"></td>
          <td id="LC135" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">return</span> <span class="pl-smi">api</span>.<span class="pl-c1">call</span>(api, key);</td>
        </tr>
        <tr>
          <td id="L136" class="blob-num js-line-number" data-line-number="136"></td>
          <td id="LC136" class="blob-code blob-code-inner js-file-line">		};</td>
        </tr>
        <tr>
          <td id="L137" class="blob-num js-line-number" data-line-number="137"></td>
          <td id="LC137" class="blob-code blob-code-inner js-file-line">		<span class="pl-smi">api</span>.<span class="pl-en">getJSON</span> <span class="pl-k">=</span> <span class="pl-k">function</span> () {</td>
        </tr>
        <tr>
          <td id="L138" class="blob-num js-line-number" data-line-number="138"></td>
          <td id="LC138" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">return</span> <span class="pl-smi">api</span>.<span class="pl-c1">apply</span>({</td>
        </tr>
        <tr>
          <td id="L139" class="blob-num js-line-number" data-line-number="139"></td>
          <td id="LC139" class="blob-code blob-code-inner js-file-line">				json<span class="pl-k">:</span> <span class="pl-c1">true</span></td>
        </tr>
        <tr>
          <td id="L140" class="blob-num js-line-number" data-line-number="140"></td>
          <td id="LC140" class="blob-code blob-code-inner js-file-line">			}, [].<span class="pl-smi">slice</span>.<span class="pl-c1">call</span>(<span class="pl-c1">arguments</span>));</td>
        </tr>
        <tr>
          <td id="L141" class="blob-num js-line-number" data-line-number="141"></td>
          <td id="LC141" class="blob-code blob-code-inner js-file-line">		};</td>
        </tr>
        <tr>
          <td id="L142" class="blob-num js-line-number" data-line-number="142"></td>
          <td id="LC142" class="blob-code blob-code-inner js-file-line">		<span class="pl-smi">api</span>.<span class="pl-smi">defaults</span> <span class="pl-k">=</span> {};</td>
        </tr>
        <tr>
          <td id="L143" class="blob-num js-line-number" data-line-number="143"></td>
          <td id="LC143" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L144" class="blob-num js-line-number" data-line-number="144"></td>
          <td id="LC144" class="blob-code blob-code-inner js-file-line">		<span class="pl-smi">api</span>.<span class="pl-en">remove</span> <span class="pl-k">=</span> <span class="pl-k">function</span> (<span class="pl-smi">key</span>, <span class="pl-smi">attributes</span>) {</td>
        </tr>
        <tr>
          <td id="L145" class="blob-num js-line-number" data-line-number="145"></td>
          <td id="LC145" class="blob-code blob-code-inner js-file-line">			<span class="pl-en">api</span>(key, <span class="pl-s"><span class="pl-pds">&#39;</span><span class="pl-pds">&#39;</span></span>, <span class="pl-en">extend</span>(attributes, {</td>
        </tr>
        <tr>
          <td id="L146" class="blob-num js-line-number" data-line-number="146"></td>
          <td id="LC146" class="blob-code blob-code-inner js-file-line">				expires<span class="pl-k">:</span> <span class="pl-k">-</span><span class="pl-c1">1</span></td>
        </tr>
        <tr>
          <td id="L147" class="blob-num js-line-number" data-line-number="147"></td>
          <td id="LC147" class="blob-code blob-code-inner js-file-line">			}));</td>
        </tr>
        <tr>
          <td id="L148" class="blob-num js-line-number" data-line-number="148"></td>
          <td id="LC148" class="blob-code blob-code-inner js-file-line">		};</td>
        </tr>
        <tr>
          <td id="L149" class="blob-num js-line-number" data-line-number="149"></td>
          <td id="LC149" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L150" class="blob-num js-line-number" data-line-number="150"></td>
          <td id="LC150" class="blob-code blob-code-inner js-file-line">		<span class="pl-smi">api</span>.<span class="pl-smi">withConverter</span> <span class="pl-k">=</span> init;</td>
        </tr>
        <tr>
          <td id="L151" class="blob-num js-line-number" data-line-number="151"></td>
          <td id="LC151" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L152" class="blob-num js-line-number" data-line-number="152"></td>
          <td id="LC152" class="blob-code blob-code-inner js-file-line">		<span class="pl-k">return</span> api;</td>
        </tr>
        <tr>
          <td id="L153" class="blob-num js-line-number" data-line-number="153"></td>
          <td id="LC153" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="L154" class="blob-num js-line-number" data-line-number="154"></td>
          <td id="LC154" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L155" class="blob-num js-line-number" data-line-number="155"></td>
          <td id="LC155" class="blob-code blob-code-inner js-file-line">	<span class="pl-k">return</span> <span class="pl-en">init</span>(<span class="pl-k">function</span> () {});</td>
        </tr>
        <tr>
          <td id="L156" class="blob-num js-line-number" data-line-number="156"></td>
          <td id="LC156" class="blob-code blob-code-inner js-file-line">}));</td>
        </tr>
  </table>
  
    </div>
  
  </div>
  
  <button type="button" data-facebox="#jump-to-line" data-facebox-class="linejump" data-hotkey="l" class="d-none">Jump to Line</button>
  <div id="jump-to-line" style="display:none">
    <!-- '"` --><!-- </textarea></xmp> --></option></form><form accept-charset="UTF-8" action="" class="js-jump-to-line-form" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
      <input class="form-control linejump-input js-jump-to-line-field" type="text" placeholder="Jump to line&hellip;" aria-label="Jump to line" autofocus>
      <button type="submit" class="btn">Go</button>
  </form></div>
  
    </div>
    <div class="modal-backdrop js-touch-events"></div>
  </div>
  
  
      </div>
    </div>
  
      </div>
  
          <div class="container site-footer-container">
    <div class="site-footer" role="contentinfo">
      <ul class="site-footer-links float-right">
          <li><a href="https://github.com/contact" data-ga-click="Footer, go to contact, text:contact">Contact GitHub</a></li>
        <li><a href="https://developer.github.com" data-ga-click="Footer, go to api, text:api">API</a></li>
        <li><a href="https://training.github.com" data-ga-click="Footer, go to training, text:training">Training</a></li>
        <li><a href="https://shop.github.com" data-ga-click="Footer, go to shop, text:shop">Shop</a></li>
          <li><a href="https://github.com/blog" data-ga-click="Footer, go to blog, text:blog">Blog</a></li>
          <li><a href="https://github.com/about" data-ga-click="Footer, go to about, text:about">About</a></li>
  
      </ul>
  
      <a href="https://github.com" aria-label="Homepage" class="site-footer-mark" title="GitHub">
        <svg aria-hidden="true" class="octicon octicon-mark-github" height="24" version="1.1" viewBox="0 0 16 16" width="24"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>
  </a>
      <ul class="site-footer-links">
        <li>&copy; 2016 <span title="0.10840s from github-fe135-cp1-prd.iad.github.net">GitHub</span>, Inc.</li>
          <li><a href="https://github.com/site/terms" data-ga-click="Footer, go to terms, text:terms">Terms</a></li>
          <li><a href="https://github.com/site/privacy" data-ga-click="Footer, go to privacy, text:privacy">Privacy</a></li>
          <li><a href="https://github.com/security" data-ga-click="Footer, go to security, text:security">Security</a></li>
          <li><a href="https://status.github.com/" data-ga-click="Footer, go to status, text:status">Status</a></li>
          <li><a href="https://help.github.com" data-ga-click="Footer, go to help, text:help">Help</a></li>
      </ul>
    </div>
  </div>
  
  
  
      
  
      <div id="ajax-error-message" class="ajax-error-message flash flash-error">
        <svg aria-hidden="true" class="octicon octicon-alert" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M8.865 1.52c-.18-.31-.51-.5-.87-.5s-.69.19-.87.5L.275 13.5c-.18.31-.18.69 0 1 .19.31.52.5.87.5h13.7c.36 0 .69-.19.86-.5.17-.31.18-.69.01-1L8.865 1.52zM8.995 13h-2v-2h2v2zm0-3h-2V6h2v4z"/></svg>
        <button type="button" class="flash-close js-flash-close js-ajax-error-dismiss" aria-label="Dismiss error">
          <svg aria-hidden="true" class="octicon octicon-x" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48z"/></svg>
        </button>
        You can't perform that action at this time.
      </div>
  
  
        
        <script crossorigin="anonymous" integrity="sha256-qGcOKOeLPwGU3+T/SVUz+lI+fnAAbb9axOapfoqVer0=" src="https://assets-cdn.github.com/assets/frameworks-a8670e28e78b3f0194dfe4ff495533fa523e7e70006dbf5ac4e6a97e8a957abd.js"></script>
        <script async="async" crossorigin="anonymous" integrity="sha256-i28Sf4dlo1o0664ifALHi3SQSHK/WAdbTtwTTU6ywhg=" src="https://assets-cdn.github.com/assets/github-8b6f127f8765a35a34ebae227c02c78b74904872bf58075b4edc134d4eb2c218.js"></script>
        
        
        
        
      <div class="js-stale-session-flash stale-session-flash flash flash-warn flash-banner d-none">
        <svg aria-hidden="true" class="octicon octicon-alert" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M8.865 1.52c-.18-.31-.51-.5-.87-.5s-.69.19-.87.5L.275 13.5c-.18.31-.18.69 0 1 .19.31.52.5.87.5h13.7c.36 0 .69-.19.86-.5.17-.31.18-.69.01-1L8.865 1.52zM8.995 13h-2v-2h2v2zm0-3h-2V6h2v4z"/></svg>
        <span class="signed-in-tab-flash">You signed in with another tab or window. <a href="">Reload</a> to refresh your session.</span>
        <span class="signed-out-tab-flash">You signed out in another tab or window. <a href="">Reload</a> to refresh your session.</span>
      </div>
      <div class="facebox" id="facebox" style="display:none;">
    <div class="facebox-popup">
      <div class="facebox-content" role="dialog" aria-labelledby="facebox-header" aria-describedby="facebox-description">
      </div>
      <button type="button" class="facebox-close js-facebox-close" aria-label="Close modal">
        <svg aria-hidden="true" class="octicon octicon-x" height="16" version="1.1" viewBox="0 0 12 16" width="12"><path fill-rule="evenodd" d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48z"/></svg>
      </button>
    </div>
  </div>
  
    </body>
  </html>
  
  