System.register(["__unresolved_0"], function (_export, _context) {
  "use strict";

  var _loader, _cjsExports, __cjsMetaURL;

  _export("default", void 0);

  return {
    setters: [function (_unresolved_) {
      _loader = _unresolved_.default;
    }],
    execute: function () {
      _loader.define(_context.meta.url, function (exports, _require, module, __filename, __dirname) {
        var require = _loader.createRequireWithReqMap({}, _require);

        (function () {
          var Queue = function Queue() {
            this.head = null;
            this.tail = null;
          };

          Queue.prototype = {
            add: function add(item) {
              var entry = {
                item: item,
                next: null
              };
              if (this.head) this.tail.next = entry;else this.head = entry;
              this.tail = entry;
            },
            get: function get() {
              var entry = this.head;

              if (entry) {
                this.head = entry.next;
                if (this.tail === entry) this.tail = null;
                return entry.item;
              }
            }
          };
          module.exports = Queue;
        })();

        _export("default", _cjsExports = module.exports);
      });

      _export("__cjsMetaURL", __cjsMetaURL = _context.meta.url);
    }
  };
});
//# sourceMappingURL=queue.js.map