'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.unpack = exports.pack = undefined;

var _utils;

function _load_utils() {
  return _utils = require('../utils');
}

var pack = exports.pack = function pack(x) {
  return (0, (_utils || _load_utils()).isString)(x) ? (0, (_utils || _load_utils()).toBase64)(x) : (0, (_utils || _load_utils()).toBase64)(x.join('+++'));
};
var unpack = exports.unpack = function unpack(str) {
  return (0, (_utils || _load_utils()).fromBase64)(str).split('+++');
};