text: if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
  if (!__coverage__['build/async-queue/async-queue.js']) {
     __coverage__['build/async-queue/async-queue.js'] = {"path":"build/async-queue/async-queue.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":42}}},"2":{"name":"(anonymous_2)","line":41,"loc":{"start":{"line":41,"column":15},"end":{"line":41,"column":26}}},"3":{"name":"(anonymous_3)","line":74,"loc":{"start":{"line":74,"column":19},"end":{"line":74,"column":31}}},"4":{"name":"(anonymous_4)","line":98,"loc":{"start":{"line":98,"column":12},"end":{"line":98,"column":24}}},"5":{"name":"(anonymous_5)","line":121,"loc":{"start":{"line":121,"column":18},"end":{"line":121,"column":30}}},"6":{"name":"(anonymous_6)","line":141,"loc":{"start":{"line":141,"column":11},"end":{"line":141,"column":23}}},"7":{"name":"(anonymous_7)","line":166,"loc":{"start":{"line":166,"column":18},"end":{"line":166,"column":31}}},"8":{"name":"(anonymous_8)","line":185,"loc":{"start":{"line":185,"column":14},"end":{"line":185,"column":34}}},"9":{"name":"(anonymous_9)","line":196,"loc":{"start":{"line":196,"column":29},"end":{"line":196,"column":41}}},"10":{"name":"(anonymous_10)","line":218,"loc":{"start":{"line":218,"column":10},"end":{"line":218,"column":22}}},"11":{"name":"(anonymous_11)","line":264,"loc":{"start":{"line":264,"column":15},"end":{"line":264,"column":35}}},"12":{"name":"(anonymous_12)","line":288,"loc":{"start":{"line":288,"column":16},"end":{"line":288,"column":36}}},"13":{"name":"(anonymous_13)","line":289,"loc":{"start":{"line":289,"column":56},"end":{"line":289,"column":68}}},"14":{"name":"(anonymous_14)","line":305,"loc":{"start":{"line":305,"column":16},"end":{"line":305,"column":28}}},"15":{"name":"(anonymous_15)","line":317,"loc":{"start":{"line":317,"column":17},"end":{"line":317,"column":30}}},"16":{"name":"(anonymous_16)","line":330,"loc":{"start":{"line":330,"column":10},"end":{"line":330,"column":22}}},"17":{"name":"(anonymous_17)","line":346,"loc":{"start":{"line":346,"column":16},"end":{"line":346,"column":28}}},"18":{"name":"(anonymous_18)","line":350,"loc":{"start":{"line":350,"column":34},"end":{"line":350,"column":47}}},"19":{"name":"(anonymous_19)","line":370,"loc":{"start":{"line":370,"column":11},"end":{"line":370,"column":23}}},"20":{"name":"(anonymous_20)","line":388,"loc":{"start":{"line":388,"column":11},"end":{"line":388,"column":23}}},"21":{"name":"(anonymous_21)","line":418,"loc":{"start":{"line":418,"column":14},"end":{"line":418,"column":34}}},"22":{"name":"(anonymous_22)","line":439,"loc":{"start":{"line":439,"column":18},"end":{"line":439,"column":32}}},"23":{"name":"(anonymous_23)","line":455,"loc":{"start":{"line":455,"column":14},"end":{"line":455,"column":34}}},"24":{"name":"(anonymous_24)","line":459,"loc":{"start":{"line":459,"column":34},"end":{"line":459,"column":46}}},"25":{"name":"(anonymous_25)","line":481,"loc":{"start":{"line":481,"column":20},"end":{"line":481,"column":33}}},"26":{"name":"(anonymous_26)","line":501,"loc":{"start":{"line":501,"column":13},"end":{"line":501,"column":33}}},"27":{"name":"(anonymous_27)","line":507,"loc":{"start":{"line":507,"column":34},"end":{"line":507,"column":46}}},"28":{"name":"(anonymous_28)","line":529,"loc":{"start":{"line":529,"column":19},"end":{"line":529,"column":32}}},"29":{"name":"(anonymous_29)","line":541,"loc":{"start":{"line":541,"column":11},"end":{"line":541,"column":23}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":554,"column":48}},"2":{"start":{"line":41,"column":0},"end":{"line":44,"column":2}},"3":{"start":{"line":42,"column":4},"end":{"line":42,"column":17}},"4":{"start":{"line":43,"column":4},"end":{"line":43,"column":36}},"5":{"start":{"line":46,"column":0},"end":{"line":53,"column":35}},"6":{"start":{"line":70,"column":0},"end":{"line":78,"column":33}},"7":{"start":{"line":75,"column":8},"end":{"line":75,"column":29}},"8":{"start":{"line":76,"column":8},"end":{"line":76,"column":36}},"9":{"start":{"line":80,"column":0},"end":{"line":550,"column":3}},"10":{"start":{"line":99,"column":8},"end":{"line":99,"column":72}},"11":{"start":{"line":101,"column":8},"end":{"line":101,"column":21}},"12":{"start":{"line":110,"column":8},"end":{"line":110,"column":27}},"13":{"start":{"line":112,"column":8},"end":{"line":112,"column":27}},"14":{"start":{"line":122,"column":8},"end":{"line":128,"column":11}},"15":{"start":{"line":142,"column":8},"end":{"line":142,"column":21}},"16":{"start":{"line":144,"column":8},"end":{"line":152,"column":9}},"17":{"start":{"line":145,"column":12},"end":{"line":145,"column":62}},"18":{"start":{"line":146,"column":12},"end":{"line":151,"column":13}},"19":{"start":{"line":147,"column":16},"end":{"line":147,"column":57}},"20":{"start":{"line":148,"column":16},"end":{"line":148,"column":32}},"21":{"start":{"line":150,"column":16},"end":{"line":150,"column":22}},"22":{"start":{"line":154,"column":8},"end":{"line":154,"column":32}},"23":{"start":{"line":167,"column":8},"end":{"line":169,"column":9}},"24":{"start":{"line":168,"column":12},"end":{"line":168,"column":28}},"25":{"start":{"line":186,"column":8},"end":{"line":188,"column":9}},"26":{"start":{"line":187,"column":12},"end":{"line":187,"column":28}},"27":{"start":{"line":190,"column":8},"end":{"line":204,"column":21}},"28":{"start":{"line":197,"column":16},"end":{"line":199,"column":17}},"29":{"start":{"line":198,"column":20},"end":{"line":198,"column":41}},"30":{"start":{"line":200,"column":16},"end":{"line":203,"column":17}},"31":{"start":{"line":201,"column":20},"end":{"line":202,"column":60}},"32":{"start":{"line":206,"column":8},"end":{"line":206,"column":38}},"33":{"start":{"line":219,"column":8},"end":{"line":220,"column":24}},"34":{"start":{"line":222,"column":8},"end":{"line":225,"column":9}},"35":{"start":{"line":223,"column":12},"end":{"line":223,"column":33}},"36":{"start":{"line":224,"column":12},"end":{"line":224,"column":24}},"37":{"start":{"line":227,"column":8},"end":{"line":242,"column":9}},"38":{"start":{"line":231,"column":12},"end":{"line":233,"column":41}},"39":{"start":{"line":239,"column":12},"end":{"line":241,"column":13}},"40":{"start":{"line":240,"column":16},"end":{"line":240,"column":22}},"41":{"start":{"line":244,"column":8},"end":{"line":250,"column":9}},"42":{"start":{"line":249,"column":12},"end":{"line":249,"column":34}},"43":{"start":{"line":252,"column":8},"end":{"line":252,"column":20}},"44":{"start":{"line":266,"column":8},"end":{"line":266,"column":51}},"45":{"start":{"line":267,"column":8},"end":{"line":267,"column":35}},"46":{"start":{"line":269,"column":8},"end":{"line":269,"column":30}},"47":{"start":{"line":270,"column":8},"end":{"line":270,"column":51}},"48":{"start":{"line":272,"column":8},"end":{"line":272,"column":58}},"49":{"start":{"line":274,"column":8},"end":{"line":274,"column":52}},"50":{"start":{"line":275,"column":8},"end":{"line":275,"column":32}},"51":{"start":{"line":277,"column":8},"end":{"line":277,"column":20}},"52":{"start":{"line":289,"column":8},"end":{"line":293,"column":11}},"53":{"start":{"line":290,"column":12},"end":{"line":292,"column":13}},"54":{"start":{"line":291,"column":16},"end":{"line":291,"column":27}},"55":{"start":{"line":295,"column":8},"end":{"line":295,"column":21}},"56":{"start":{"line":306,"column":8},"end":{"line":306,"column":31}},"57":{"start":{"line":318,"column":8},"end":{"line":318,"column":21}},"58":{"start":{"line":331,"column":8},"end":{"line":331,"column":67}},"59":{"start":{"line":333,"column":8},"end":{"line":333,"column":20}},"60":{"start":{"line":347,"column":8},"end":{"line":348,"column":23}},"61":{"start":{"line":350,"column":8},"end":{"line":355,"column":11}},"62":{"start":{"line":351,"column":12},"end":{"line":354,"column":13}},"63":{"start":{"line":352,"column":16},"end":{"line":352,"column":27}},"64":{"start":{"line":353,"column":16},"end":{"line":353,"column":30}},"65":{"start":{"line":357,"column":8},"end":{"line":357,"column":24}},"66":{"start":{"line":371,"column":8},"end":{"line":373,"column":9}},"67":{"start":{"line":372,"column":12},"end":{"line":372,"column":35}},"68":{"start":{"line":375,"column":8},"end":{"line":375,"column":30}},"69":{"start":{"line":377,"column":8},"end":{"line":377,"column":20}},"70":{"start":{"line":390,"column":8},"end":{"line":390,"column":21}},"71":{"start":{"line":392,"column":8},"end":{"line":395,"column":9}},"72":{"start":{"line":393,"column":12},"end":{"line":393,"column":35}},"73":{"start":{"line":394,"column":12},"end":{"line":394,"column":34}},"74":{"start":{"line":403,"column":8},"end":{"line":405,"column":9}},"75":{"start":{"line":404,"column":12},"end":{"line":404,"column":23}},"76":{"start":{"line":407,"column":8},"end":{"line":407,"column":20}},"77":{"start":{"line":419,"column":8},"end":{"line":419,"column":43}},"78":{"start":{"line":421,"column":8},"end":{"line":426,"column":9}},"79":{"start":{"line":422,"column":12},"end":{"line":422,"column":27}},"80":{"start":{"line":423,"column":12},"end":{"line":425,"column":13}},"81":{"start":{"line":424,"column":16},"end":{"line":424,"column":25}},"82":{"start":{"line":428,"column":8},"end":{"line":428,"column":18}},"83":{"start":{"line":440,"column":8},"end":{"line":440,"column":33}},"84":{"start":{"line":442,"column":8},"end":{"line":442,"column":44}},"85":{"start":{"line":456,"column":8},"end":{"line":456,"column":48}},"86":{"start":{"line":458,"column":8},"end":{"line":465,"column":9}},"87":{"start":{"line":459,"column":12},"end":{"line":462,"column":25}},"88":{"start":{"line":460,"column":20},"end":{"line":460,"column":48}},"89":{"start":{"line":461,"column":20},"end":{"line":461,"column":31}},"90":{"start":{"line":464,"column":12},"end":{"line":464,"column":40}},"91":{"start":{"line":467,"column":8},"end":{"line":467,"column":20}},"92":{"start":{"line":482,"column":8},"end":{"line":483,"column":64}},"93":{"start":{"line":485,"column":8},"end":{"line":485,"column":30}},"94":{"start":{"line":487,"column":8},"end":{"line":489,"column":9}},"95":{"start":{"line":488,"column":12},"end":{"line":488,"column":38}},"96":{"start":{"line":502,"column":8},"end":{"line":502,"column":48}},"97":{"start":{"line":506,"column":8},"end":{"line":513,"column":9}},"98":{"start":{"line":507,"column":12},"end":{"line":510,"column":24}},"99":{"start":{"line":508,"column":20},"end":{"line":508,"column":47}},"100":{"start":{"line":509,"column":20},"end":{"line":509,"column":31}},"101":{"start":{"line":512,"column":12},"end":{"line":512,"column":39}},"102":{"start":{"line":515,"column":8},"end":{"line":515,"column":20}},"103":{"start":{"line":530,"column":8},"end":{"line":530,"column":41}},"104":{"start":{"line":532,"column":8},"end":{"line":532,"column":61}},"105":{"start":{"line":544,"column":8},"end":{"line":546,"column":9}},"106":{"start":{"line":545,"column":12},"end":{"line":545,"column":24}},"107":{"start":{"line":548,"column":8},"end":{"line":548,"column":30}}},"branchMap":{"1":{"line":78,"type":"binary-expr","locations":[{"start":{"line":78,"column":3},"end":{"line":78,"column":25}},{"start":{"line":78,"column":29},"end":{"line":78,"column":31}}]},"2":{"line":146,"type":"if","locations":[{"start":{"line":146,"column":12},"end":{"line":146,"column":12}},{"start":{"line":146,"column":12},"end":{"line":146,"column":12}}]},"3":{"line":146,"type":"binary-expr","locations":[{"start":{"line":146,"column":16},"end":{"line":146,"column":24}},{"start":{"line":146,"column":28},"end":{"line":146,"column":44}}]},"4":{"line":154,"type":"binary-expr","locations":[{"start":{"line":154,"column":15},"end":{"line":154,"column":23}},{"start":{"line":154,"column":27},"end":{"line":154,"column":31}}]},"5":{"line":167,"type":"if","locations":[{"start":{"line":167,"column":8},"end":{"line":167,"column":8}},{"start":{"line":167,"column":8},"end":{"line":167,"column":8}}]},"6":{"line":186,"type":"if","locations":[{"start":{"line":186,"column":8},"end":{"line":186,"column":8}},{"start":{"line":186,"column":8},"end":{"line":186,"column":8}}]},"7":{"line":186,"type":"binary-expr","locations":[{"start":{"line":186,"column":12},"end":{"line":186,"column":32}},{"start":{"line":186,"column":36},"end":{"line":186,"column":54}}]},"8":{"line":194,"type":"cond-expr","locations":[{"start":{"line":194,"column":36},"end":{"line":194,"column":52}},{"start":{"line":194,"column":55},"end":{"line":194,"column":63}}]},"9":{"line":197,"type":"if","locations":[{"start":{"line":197,"column":16},"end":{"line":197,"column":16}},{"start":{"line":197,"column":16},"end":{"line":197,"column":16}}]},"10":{"line":200,"type":"if","locations":[{"start":{"line":200,"column":16},"end":{"line":200,"column":16}},{"start":{"line":200,"column":16},"end":{"line":200,"column":16}}]},"11":{"line":201,"type":"binary-expr","locations":[{"start":{"line":201,"column":37},"end":{"line":201,"column":52}},{"start":{"line":201,"column":56},"end":{"line":201,"column":57}}]},"12":{"line":222,"type":"if","locations":[{"start":{"line":222,"column":8},"end":{"line":222,"column":8}},{"start":{"line":222,"column":8},"end":{"line":222,"column":8}}]},"13":{"line":228,"type":"binary-expr","locations":[{"start":{"line":228,"column":12},"end":{"line":228,"column":20}},{"start":{"line":228,"column":24},"end":{"line":228,"column":41}}]},"14":{"line":231,"type":"cond-expr","locations":[{"start":{"line":232,"column":16},"end":{"line":232,"column":39}},{"start":{"line":233,"column":16},"end":{"line":233,"column":40}}]},"15":{"line":239,"type":"if","locations":[{"start":{"line":239,"column":12},"end":{"line":239,"column":12}},{"start":{"line":239,"column":12},"end":{"line":239,"column":12}}]},"16":{"line":244,"type":"if","locations":[{"start":{"line":244,"column":8},"end":{"line":244,"column":8}},{"start":{"line":244,"column":8},"end":{"line":244,"column":8}}]},"17":{"line":272,"type":"binary-expr","locations":[{"start":{"line":272,"column":19},"end":{"line":272,"column":32}},{"start":{"line":272,"column":36},"end":{"line":272,"column":57}}]},"18":{"line":290,"type":"if","locations":[{"start":{"line":290,"column":12},"end":{"line":290,"column":12}},{"start":{"line":290,"column":12},"end":{"line":290,"column":12}}]},"19":{"line":351,"type":"if","locations":[{"start":{"line":351,"column":12},"end":{"line":351,"column":12}},{"start":{"line":351,"column":12},"end":{"line":351,"column":12}}]},"20":{"line":371,"type":"if","locations":[{"start":{"line":371,"column":8},"end":{"line":371,"column":8}},{"start":{"line":371,"column":8},"end":{"line":371,"column":8}}]},"21":{"line":371,"type":"binary-expr","locations":[{"start":{"line":371,"column":12},"end":{"line":371,"column":25}},{"start":{"line":371,"column":29},"end":{"line":371,"column":52}}]},"22":{"line":392,"type":"if","locations":[{"start":{"line":392,"column":8},"end":{"line":392,"column":8}},{"start":{"line":392,"column":8},"end":{"line":392,"column":8}}]},"23":{"line":392,"type":"binary-expr","locations":[{"start":{"line":392,"column":12},"end":{"line":392,"column":25}},{"start":{"line":392,"column":29},"end":{"line":392,"column":52}}]},"24":{"line":403,"type":"if","locations":[{"start":{"line":403,"column":8},"end":{"line":403,"column":8}},{"start":{"line":403,"column":8},"end":{"line":403,"column":8}}]},"25":{"line":423,"type":"if","locations":[{"start":{"line":423,"column":12},"end":{"line":423,"column":12}},{"start":{"line":423,"column":12},"end":{"line":423,"column":12}}]},"26":{"line":423,"type":"binary-expr","locations":[{"start":{"line":423,"column":16},"end":{"line":423,"column":30}},{"start":{"line":423,"column":34},"end":{"line":423,"column":51}}]},"27":{"line":442,"type":"cond-expr","locations":[{"start":{"line":442,"column":26},"end":{"line":442,"column":36}},{"start":{"line":442,"column":39},"end":{"line":442,"column":43}}]},"28":{"line":458,"type":"if","locations":[{"start":{"line":458,"column":8},"end":{"line":458,"column":8}},{"start":{"line":458,"column":8},"end":{"line":458,"column":8}}]},"29":{"line":483,"type":"cond-expr","locations":[{"start":{"line":483,"column":34},"end":{"line":483,"column":56}},{"start":{"line":483,"column":59},"end":{"line":483,"column":63}}]},"30":{"line":487,"type":"if","locations":[{"start":{"line":487,"column":8},"end":{"line":487,"column":8}},{"start":{"line":487,"column":8},"end":{"line":487,"column":8}}]},"31":{"line":506,"type":"if","locations":[{"start":{"line":506,"column":8},"end":{"line":506,"column":8}},{"start":{"line":506,"column":8},"end":{"line":506,"column":8}}]},"32":{"line":532,"type":"cond-expr","locations":[{"start":{"line":532,"column":31},"end":{"line":532,"column":53}},{"start":{"line":532,"column":56},"end":{"line":532,"column":60}}]},"33":{"line":544,"type":"if","locations":[{"start":{"line":544,"column":8},"end":{"line":544,"column":8}},{"start":{"line":544,"column":8},"end":{"line":544,"column":8}}]}},"code":["(function () { YUI.add('async-queue', function (Y, NAME) {","","/**"," * <p>AsyncQueue allows you create a chain of function callbacks executed"," * via setTimeout (or synchronously) that are guaranteed to run in order."," * Items in the queue can be promoted or removed.  Start or resume the"," * execution chain with run().  pause() to temporarily delay execution, or"," * stop() to halt and clear the queue.</p>"," *"," * @module async-queue"," */","","/**"," * <p>A specialized queue class that supports scheduling callbacks to execute"," * sequentially, iteratively, even asynchronously.</p>"," *"," * <p>Callbacks can be function refs or objects with the following keys.  Only"," * the <code>fn</code> key is required.</p>"," *"," * <ul>"," * <li><code>fn</code> -- The callback function</li>"," * <li><code>context</code> -- The execution context for the callbackFn.</li>"," * <li><code>args</code> -- Arguments to pass to callbackFn.</li>"," * <li><code>timeout</code> -- Millisecond delay before executing callbackFn."," *                     (Applies to each iterative execution of callback)</li>"," * <li><code>iterations</code> -- Number of times to repeat the callback."," * <li><code>until</code> -- Repeat the callback until this function returns"," *                         true.  This setting trumps iterations.</li>"," * <li><code>autoContinue</code> -- Set to false to prevent the AsyncQueue from"," *                        executing the next callback in the Queue after"," *                        the callback completes.</li>"," * <li><code>id</code> -- Name that can be used to get, promote, get the"," *                        indexOf, or delete this callback.</li>"," * </ul>"," *"," * @class AsyncQueue"," * @extends EventTarget"," * @constructor"," * @param callback* {Function|Object} 0..n callbacks to seed the queue"," */","Y.AsyncQueue = function() {","    this._init();","    this.add.apply(this, arguments);","};","","var Queue   = Y.AsyncQueue,","    EXECUTE = 'execute',","    SHIFT   = 'shift',","    PROMOTE = 'promote',","    REMOVE  = 'remove',","","    isObject   = Y.Lang.isObject,","    isFunction = Y.Lang.isFunction;","","/**"," * <p>Static default values used to populate callback configuration properties."," * Preconfigured defaults include:</p>"," *"," * <ul>"," *  <li><code>autoContinue</code>: <code>true</code></li>"," *  <li><code>iterations</code>: 1</li>"," *  <li><code>timeout</code>: 10 (10ms between callbacks)</li>"," *  <li><code>until</code>: (function to run until iterations &lt;= 0)</li>"," * </ul>"," *"," * @property defaults"," * @type {Object}"," * @static"," */","Queue.defaults = Y.mix({","    autoContinue : true,","    iterations   : 1,","    timeout      : 10,","    until        : function () {","        this.iterations |= 0;","        return this.iterations <= 0;","    }","}, Y.config.queueDefaults || {});","","Y.extend(Queue, Y.EventTarget, {","    /**","     * Used to indicate the queue is currently executing a callback.","     *","     * @property _running","     * @type {Boolean|Object} true for synchronous callback execution, the","     *                        return handle from Y.later for async callbacks.","     *                        Otherwise false.","     * @protected","     */","    _running : false,","","    /**","     * Initializes the AsyncQueue instance properties and events.","     *","     * @method _init","     * @protected","     */","    _init : function () {","        Y.EventTarget.call(this, { prefix: 'queue', emitFacade: true });","","        this._q = [];","","        /**","         * Callback defaults for this instance.  Static defaults that are not","         * overridden are also included.","         *","         * @property defaults","         * @type {Object}","         */","        this.defaults = {};","","        this._initEvents();","    },","","    /**","     * Initializes the instance events.","     *","     * @method _initEvents","     * @protected","     */","    _initEvents : function () {","        this.publish({","            'execute' : { defaultFn : this._defExecFn,    emitFacade: true },","            'shift'   : { defaultFn : this._defShiftFn,   emitFacade: true },","            'add'     : { defaultFn : this._defAddFn,     emitFacade: true },","            'promote' : { defaultFn : this._defPromoteFn, emitFacade: true },","            'remove'  : { defaultFn : this._defRemoveFn,  emitFacade: true }","        });","    },","","    /**","     * Returns the next callback needing execution.  If a callback is","     * configured to repeat via iterations or until, it will be returned until","     * the completion criteria is met.","     *","     * When the queue is empty, null is returned.","     *","     * @method next","     * @return {Function} the callback to execute","     */","    next : function () {","        var callback;","","        while (this._q.length) {","            callback = this._q[0] = this._prepare(this._q[0]);","            if (callback && callback.until()) {","                this.fire(SHIFT, { callback: callback });","                callback = null;","            } else {","                break;","            }","        }","","        return callback || null;","    },","","    /**","     * Default functionality for the &quot;shift&quot; event.  Shifts the","     * callback stored in the event object's <em>callback</em> property from","     * the queue if it is the first item.","     *","     * @method _defShiftFn","     * @param e {Event} The event object","     * @protected","     */","    _defShiftFn : function (e) {","        if (this.indexOf(e.callback) === 0) {","            this._q.shift();","        }","    },","","    /**","     * Creates a wrapper function to execute the callback using the aggregated","     * configuration generated by combining the static AsyncQueue.defaults, the","     * instance defaults, and the specified callback settings.","     *","     * The wrapper function is decorated with the callback configuration as","     * properties for runtime modification.","     *","     * @method _prepare","     * @param callback {Object|Function} the raw callback","     * @return {Function} a decorated function wrapper to execute the callback","     * @protected","     */","    _prepare: function (callback) {","        if (isFunction(callback) && callback._prepared) {","            return callback;","        }","","        var config = Y.merge(","            Queue.defaults,","            { context : this, args: [], _prepared: true },","            this.defaults,","            (isFunction(callback) ? { fn: callback } : callback)),","","            wrapper = Y.bind(function () {","                if (!wrapper._running) {","                    wrapper.iterations--;","                }","                if (isFunction(wrapper.fn)) {","                    wrapper.fn.apply(wrapper.context || Y,","                                     Y.Array(wrapper.args));","                }","            }, this);","","        return Y.mix(wrapper, config);","    },","","    /**","     * Sets the queue in motion.  All queued callbacks will be executed in","     * order unless pause() or stop() is called or if one of the callbacks is","     * configured with autoContinue: false.","     *","     * @method run","     * @return {AsyncQueue} the AsyncQueue instance","     * @chainable","     */","    run : function () {","        var callback,","            cont = true;","","        if (this._executing) {","            this._running = true;","            return this;","        }","","        for (callback = this.next();","            callback && !this.isRunning();","            callback = this.next())","        {","            cont = (callback.timeout < 0) ?","                this._execute(callback) :","                this._schedule(callback);","","            // Break to avoid an extra call to next (final-expression of the","            // 'for' loop), because the until function of the next callback","            // in the queue may return a wrong result if it depends on the","            // not-yet-finished work of the previous callback.","            if (!cont) {","                break;","            }","        }","","        if (!callback) {","            /**","             * Event fired when there is no remaining callback in the running queue. Also fired after stop().","             * @event complete","             */","            this.fire('complete');","        }","","        return this;","    },","","    /**","     * Handles the execution of callbacks. Returns a boolean indicating","     * whether it is appropriate to continue running.","     *","     * @method _execute","     * @param callback {Object} the callback object to execute","     * @return {Boolean} whether the run loop should continue","     * @protected","     */","    _execute : function (callback) {","","        this._running   = callback._running = true;","        this._executing = callback;","","        callback.iterations--;","        this.fire(EXECUTE, { callback: callback });","","        var cont = this._running && callback.autoContinue;","","        this._running   = callback._running = false;","        this._executing = false;","","        return cont;","    },","","    /**","     * Schedules the execution of asynchronous callbacks.","     *","     * @method _schedule","     * @param callback {Object} the callback object to execute","     * @return {Boolean} whether the run loop should continue","     * @protected","     */","    _schedule : function (callback) {","        this._running = Y.later(callback.timeout, this, function () {","            if (this._execute(callback)) {","                this.run();","            }","        });","","        return false;","    },","","    /**","     * Determines if the queue is waiting for a callback to complete execution.","     *","     * @method isRunning","     * @return {Boolean} true if queue is waiting for a","     *                   from any initiated transactions","     */","    isRunning : function () {","        return !!this._running;","    },","","    /**","     * Default functionality for the &quot;execute&quot; event.  Executes the","     * callback function","     *","     * @method _defExecFn","     * @param e {Event} the event object","     * @protected","     */","    _defExecFn : function (e) {","        e.callback();","    },","","    /**","     * Add any number of callbacks to the end of the queue. Callbacks may be","     * provided as functions or objects.","     *","     * @method add","     * @param callback* {Function|Object} 0..n callbacks","     * @return {AsyncQueue} the AsyncQueue instance","     * @chainable","     */","    add : function () {","        this.fire('add', { callbacks: Y.Array(arguments,0,true) });","","        return this;","    },","","    /**","     * Default functionality for the &quot;add&quot; event.  Adds the callbacks","     * in the event facade to the queue. Callbacks successfully added to the","     * queue are present in the event's <code>added</code> property in the","     * after phase.","     *","     * @method _defAddFn","     * @param e {Event} the event object","     * @protected","     */","    _defAddFn : function(e) {","        var _q = this._q,","            added = [];","","        Y.Array.each(e.callbacks, function (c) {","            if (isObject(c)) {","                _q.push(c);","                added.push(c);","            }","        });","","        e.added = added;","    },","","    /**","     * Pause the execution of the queue after the execution of the current","     * callback completes.  If called from code outside of a queued callback,","     * clears the timeout for the pending callback. Paused queue can be","     * restarted with q.run()","     *","     * @method pause","     * @return {AsyncQueue} the AsyncQueue instance","     * @chainable","     */","    pause: function () {","        if (this._running && isObject(this._running)) {","            this._running.cancel();","        }","","        this._running = false;","","        return this;","    },","","    /**","     * Stop and clear the queue after the current execution of the","     * current callback completes.","     *","     * @method stop","     * @return {AsyncQueue} the AsyncQueue instance","     * @chainable","     */","    stop : function () {","","        this._q = [];","","        if (this._running && isObject(this._running)) {","            this._running.cancel();","            this._running = false;","        }","        // otherwise don't systematically set this._running to false, because if","        // stop has been called from inside a queued callback, the _execute method","        // currenty running needs to call run() one more time for the 'complete'","        // event to be fired.","","        // if stop is called from outside a callback, we need to explicitely call","        // run() once again to fire the 'complete' event.","        if (!this._executing) {","            this.run();","        }","","        return this;","    },","","    /**","     * Returns the current index of a callback.  Pass in either the id or","     * callback function from getCallback.","     *","     * @method indexOf","     * @param callback {String|Function} the callback or its specified id","     * @return {Number} index of the callback or -1 if not found","     */","    indexOf : function (callback) {","        var i = 0, len = this._q.length, c;","","        for (; i < len; ++i) {","            c = this._q[i];","            if (c === callback || c.id === callback) {","                return i;","            }","        }","","        return -1;","    },","","    /**","     * Retrieve a callback by its id.  Useful to modify the configuration","     * while the queue is running.","     *","     * @method getCallback","     * @param id {String} the id assigned to the callback","     * @return {Object} the callback object","     */","    getCallback : function (id) {","        var i = this.indexOf(id);","","        return (i > -1) ? this._q[i] : null;","    },","","    /**","     * Promotes the named callback to the top of the queue. If a callback is","     * currently executing or looping (via until or iterations), the promotion","     * is scheduled to occur after the current callback has completed.","     *","     * @method promote","     * @param callback {String|Object} the callback object or a callback's id","     * @return {AsyncQueue} the AsyncQueue instance","     * @chainable","     */","    promote : function (callback) {","        var payload = { callback : callback },e;","","        if (this.isRunning()) {","            e = this.after(SHIFT, function () {","                    this.fire(PROMOTE, payload);","                    e.detach();","                }, this);","        } else {","            this.fire(PROMOTE, payload);","        }","","        return this;","    },","","    /**","     * <p>Default functionality for the &quot;promote&quot; event.  Promotes the","     * named callback to the head of the queue.</p>","     *","     * <p>The event object will contain a property &quot;callback&quot;, which","     * holds the id of a callback or the callback object itself.</p>","     *","     * @method _defPromoteFn","     * @param e {Event} the custom event","     * @protected","     */","    _defPromoteFn : function (e) {","        var i = this.indexOf(e.callback),","            promoted = (i > -1) ? this._q.splice(i,1)[0] : null;","","        e.promoted = promoted;","","        if (promoted) {","            this._q.unshift(promoted);","        }","    },","","    /**","     * Removes the callback from the queue.  If the queue is active, the","     * removal is scheduled to occur after the current callback has completed.","     *","     * @method remove","     * @param callback {String|Object} the callback object or a callback's id","     * @return {AsyncQueue} the AsyncQueue instance","     * @chainable","     */","    remove : function (callback) {","        var payload = { callback : callback },e;","","        // Can't return the removed callback because of the deferral until","        // current callback is complete","        if (this.isRunning()) {","            e = this.after(SHIFT, function () {","                    this.fire(REMOVE, payload);","                    e.detach();","                },this);","        } else {","            this.fire(REMOVE, payload);","        }","","        return this;","    },","","    /**","     * <p>Default functionality for the &quot;remove&quot; event.  Removes the","     * callback from the queue.</p>","     *","     * <p>The event object will contain a property &quot;callback&quot;, which","     * holds the id of a callback or the callback object itself.</p>","     *","     * @method _defRemoveFn","     * @param e {Event} the custom event","     * @protected","     */","    _defRemoveFn : function (e) {","        var i = this.indexOf(e.callback);","","        e.removed = (i > -1) ? this._q.splice(i,1)[0] : null;","    },","","    /**","     * Returns the number of callbacks in the queue.","     *","     * @method size","     * @return {Number}","     */","    size : function () {","        // next() flushes callbacks that have met their until() criteria and","        // therefore shouldn't count since they wouldn't execute anyway.","        if (!this.isRunning()) {","            this.next();","        }","","        return this._q.length;","    }","});","","","","}, 'patched-v3.18.1', {\"requires\": [\"event-custom\"]});","","}());"]};
  }
  var __cov_O36jymnQJbOjHJXjG8T1YQ = __coverage__['build/async-queue/async-queue.js'];
  __cov_O36jymnQJbOjHJXjG8T1YQ.s['1']++;YUI.add('async-queue',function(Y,NAME){__cov_O36jymnQJbOjHJXjG8T1YQ.f['1']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['2']++;Y.AsyncQueue=function(){__cov_O36jymnQJbOjHJXjG8T1YQ.f['2']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['3']++;this._init();__cov_O36jymnQJbOjHJXjG8T1YQ.s['4']++;this.add.apply(this,arguments);};__cov_O36jymnQJbOjHJXjG8T1YQ.s['5']++;var Queue=Y.AsyncQueue,EXECUTE='execute',SHIFT='shift',PROMOTE='promote',REMOVE='remove',isObject=Y.Lang.isObject,isFunction=Y.Lang.isFunction;__cov_O36jymnQJbOjHJXjG8T1YQ.s['6']++;Queue.defaults=Y.mix({autoContinue:true,iterations:1,timeout:10,until:function(){__cov_O36jymnQJbOjHJXjG8T1YQ.f['3']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['7']++;this.iterations|=0;__cov_O36jymnQJbOjHJXjG8T1YQ.s['8']++;return this.iterations<=0;}},(__cov_O36jymnQJbOjHJXjG8T1YQ.b['1'][0]++,Y.config.queueDefaults)||(__cov_O36jymnQJbOjHJXjG8T1YQ.b['1'][1]++,{}));__cov_O36jymnQJbOjHJXjG8T1YQ.s['9']++;Y.extend(Queue,Y.EventTarget,{_running:false,_init:function(){__cov_O36jymnQJbOjHJXjG8T1YQ.f['4']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['10']++;Y.EventTarget.call(this,{prefix:'queue',emitFacade:true});__cov_O36jymnQJbOjHJXjG8T1YQ.s['11']++;this._q=[];__cov_O36jymnQJbOjHJXjG8T1YQ.s['12']++;this.defaults={};__cov_O36jymnQJbOjHJXjG8T1YQ.s['13']++;this._initEvents();},_initEvents:function(){__cov_O36jymnQJbOjHJXjG8T1YQ.f['5']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['14']++;this.publish({'execute':{defaultFn:this._defExecFn,emitFacade:true},'shift':{defaultFn:this._defShiftFn,emitFacade:true},'add':{defaultFn:this._defAddFn,emitFacade:true},'promote':{defaultFn:this._defPromoteFn,emitFacade:true},'remove':{defaultFn:this._defRemoveFn,emitFacade:true}});},next:function(){__cov_O36jymnQJbOjHJXjG8T1YQ.f['6']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['15']++;var callback;__cov_O36jymnQJbOjHJXjG8T1YQ.s['16']++;while(this._q.length){__cov_O36jymnQJbOjHJXjG8T1YQ.s['17']++;callback=this._q[0]=this._prepare(this._q[0]);__cov_O36jymnQJbOjHJXjG8T1YQ.s['18']++;if((__cov_O36jymnQJbOjHJXjG8T1YQ.b['3'][0]++,callback)&&(__cov_O36jymnQJbOjHJXjG8T1YQ.b['3'][1]++,callback.until())){__cov_O36jymnQJbOjHJXjG8T1YQ.b['2'][0]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['19']++;this.fire(SHIFT,{callback:callback});__cov_O36jymnQJbOjHJXjG8T1YQ.s['20']++;callback=null;}else{__cov_O36jymnQJbOjHJXjG8T1YQ.b['2'][1]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['21']++;break;}}__cov_O36jymnQJbOjHJXjG8T1YQ.s['22']++;return(__cov_O36jymnQJbOjHJXjG8T1YQ.b['4'][0]++,callback)||(__cov_O36jymnQJbOjHJXjG8T1YQ.b['4'][1]++,null);},_defShiftFn:function(e){__cov_O36jymnQJbOjHJXjG8T1YQ.f['7']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['23']++;if(this.indexOf(e.callback)===0){__cov_O36jymnQJbOjHJXjG8T1YQ.b['5'][0]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['24']++;this._q.shift();}else{__cov_O36jymnQJbOjHJXjG8T1YQ.b['5'][1]++;}},_prepare:function(callback){__cov_O36jymnQJbOjHJXjG8T1YQ.f['8']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['25']++;if((__cov_O36jymnQJbOjHJXjG8T1YQ.b['7'][0]++,isFunction(callback))&&(__cov_O36jymnQJbOjHJXjG8T1YQ.b['7'][1]++,callback._prepared)){__cov_O36jymnQJbOjHJXjG8T1YQ.b['6'][0]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['26']++;return callback;}else{__cov_O36jymnQJbOjHJXjG8T1YQ.b['6'][1]++;}__cov_O36jymnQJbOjHJXjG8T1YQ.s['27']++;var config=Y.merge(Queue.defaults,{context:this,args:[],_prepared:true},this.defaults,isFunction(callback)?(__cov_O36jymnQJbOjHJXjG8T1YQ.b['8'][0]++,{fn:callback}):(__cov_O36jymnQJbOjHJXjG8T1YQ.b['8'][1]++,callback)),wrapper=Y.bind(function(){__cov_O36jymnQJbOjHJXjG8T1YQ.f['9']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['28']++;if(!wrapper._running){__cov_O36jymnQJbOjHJXjG8T1YQ.b['9'][0]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['29']++;wrapper.iterations--;}else{__cov_O36jymnQJbOjHJXjG8T1YQ.b['9'][1]++;}__cov_O36jymnQJbOjHJXjG8T1YQ.s['30']++;if(isFunction(wrapper.fn)){__cov_O36jymnQJbOjHJXjG8T1YQ.b['10'][0]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['31']++;wrapper.fn.apply((__cov_O36jymnQJbOjHJXjG8T1YQ.b['11'][0]++,wrapper.context)||(__cov_O36jymnQJbOjHJXjG8T1YQ.b['11'][1]++,Y),Y.Array(wrapper.args));}else{__cov_O36jymnQJbOjHJXjG8T1YQ.b['10'][1]++;}},this);__cov_O36jymnQJbOjHJXjG8T1YQ.s['32']++;return Y.mix(wrapper,config);},run:function(){__cov_O36jymnQJbOjHJXjG8T1YQ.f['10']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['33']++;var callback,cont=true;__cov_O36jymnQJbOjHJXjG8T1YQ.s['34']++;if(this._executing){__cov_O36jymnQJbOjHJXjG8T1YQ.b['12'][0]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['35']++;this._running=true;__cov_O36jymnQJbOjHJXjG8T1YQ.s['36']++;return this;}else{__cov_O36jymnQJbOjHJXjG8T1YQ.b['12'][1]++;}__cov_O36jymnQJbOjHJXjG8T1YQ.s['37']++;for(callback=this.next();(__cov_O36jymnQJbOjHJXjG8T1YQ.b['13'][0]++,callback)&&(__cov_O36jymnQJbOjHJXjG8T1YQ.b['13'][1]++,!this.isRunning());callback=this.next()){__cov_O36jymnQJbOjHJXjG8T1YQ.s['38']++;cont=callback.timeout<0?(__cov_O36jymnQJbOjHJXjG8T1YQ.b['14'][0]++,this._execute(callback)):(__cov_O36jymnQJbOjHJXjG8T1YQ.b['14'][1]++,this._schedule(callback));__cov_O36jymnQJbOjHJXjG8T1YQ.s['39']++;if(!cont){__cov_O36jymnQJbOjHJXjG8T1YQ.b['15'][0]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['40']++;break;}else{__cov_O36jymnQJbOjHJXjG8T1YQ.b['15'][1]++;}}__cov_O36jymnQJbOjHJXjG8T1YQ.s['41']++;if(!callback){__cov_O36jymnQJbOjHJXjG8T1YQ.b['16'][0]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['42']++;this.fire('complete');}else{__cov_O36jymnQJbOjHJXjG8T1YQ.b['16'][1]++;}__cov_O36jymnQJbOjHJXjG8T1YQ.s['43']++;return this;},_execute:function(callback){__cov_O36jymnQJbOjHJXjG8T1YQ.f['11']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['44']++;this._running=callback._running=true;__cov_O36jymnQJbOjHJXjG8T1YQ.s['45']++;this._executing=callback;__cov_O36jymnQJbOjHJXjG8T1YQ.s['46']++;callback.iterations--;__cov_O36jymnQJbOjHJXjG8T1YQ.s['47']++;this.fire(EXECUTE,{callback:callback});__cov_O36jymnQJbOjHJXjG8T1YQ.s['48']++;var cont=(__cov_O36jymnQJbOjHJXjG8T1YQ.b['17'][0]++,this._running)&&(__cov_O36jymnQJbOjHJXjG8T1YQ.b['17'][1]++,callback.autoContinue);__cov_O36jymnQJbOjHJXjG8T1YQ.s['49']++;this._running=callback._running=false;__cov_O36jymnQJbOjHJXjG8T1YQ.s['50']++;this._executing=false;__cov_O36jymnQJbOjHJXjG8T1YQ.s['51']++;return cont;},_schedule:function(callback){__cov_O36jymnQJbOjHJXjG8T1YQ.f['12']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['52']++;this._running=Y.later(callback.timeout,this,function(){__cov_O36jymnQJbOjHJXjG8T1YQ.f['13']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['53']++;if(this._execute(callback)){__cov_O36jymnQJbOjHJXjG8T1YQ.b['18'][0]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['54']++;this.run();}else{__cov_O36jymnQJbOjHJXjG8T1YQ.b['18'][1]++;}});__cov_O36jymnQJbOjHJXjG8T1YQ.s['55']++;return false;},isRunning:function(){__cov_O36jymnQJbOjHJXjG8T1YQ.f['14']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['56']++;return!!this._running;},_defExecFn:function(e){__cov_O36jymnQJbOjHJXjG8T1YQ.f['15']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['57']++;e.callback();},add:function(){__cov_O36jymnQJbOjHJXjG8T1YQ.f['16']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['58']++;this.fire('add',{callbacks:Y.Array(arguments,0,true)});__cov_O36jymnQJbOjHJXjG8T1YQ.s['59']++;return this;},_defAddFn:function(e){__cov_O36jymnQJbOjHJXjG8T1YQ.f['17']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['60']++;var _q=this._q,added=[];__cov_O36jymnQJbOjHJXjG8T1YQ.s['61']++;Y.Array.each(e.callbacks,function(c){__cov_O36jymnQJbOjHJXjG8T1YQ.f['18']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['62']++;if(isObject(c)){__cov_O36jymnQJbOjHJXjG8T1YQ.b['19'][0]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['63']++;_q.push(c);__cov_O36jymnQJbOjHJXjG8T1YQ.s['64']++;added.push(c);}else{__cov_O36jymnQJbOjHJXjG8T1YQ.b['19'][1]++;}});__cov_O36jymnQJbOjHJXjG8T1YQ.s['65']++;e.added=added;},pause:function(){__cov_O36jymnQJbOjHJXjG8T1YQ.f['19']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['66']++;if((__cov_O36jymnQJbOjHJXjG8T1YQ.b['21'][0]++,this._running)&&(__cov_O36jymnQJbOjHJXjG8T1YQ.b['21'][1]++,isObject(this._running))){__cov_O36jymnQJbOjHJXjG8T1YQ.b['20'][0]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['67']++;this._running.cancel();}else{__cov_O36jymnQJbOjHJXjG8T1YQ.b['20'][1]++;}__cov_O36jymnQJbOjHJXjG8T1YQ.s['68']++;this._running=false;__cov_O36jymnQJbOjHJXjG8T1YQ.s['69']++;return this;},stop:function(){__cov_O36jymnQJbOjHJXjG8T1YQ.f['20']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['70']++;this._q=[];__cov_O36jymnQJbOjHJXjG8T1YQ.s['71']++;if((__cov_O36jymnQJbOjHJXjG8T1YQ.b['23'][0]++,this._running)&&(__cov_O36jymnQJbOjHJXjG8T1YQ.b['23'][1]++,isObject(this._running))){__cov_O36jymnQJbOjHJXjG8T1YQ.b['22'][0]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['72']++;this._running.cancel();__cov_O36jymnQJbOjHJXjG8T1YQ.s['73']++;this._running=false;}else{__cov_O36jymnQJbOjHJXjG8T1YQ.b['22'][1]++;}__cov_O36jymnQJbOjHJXjG8T1YQ.s['74']++;if(!this._executing){__cov_O36jymnQJbOjHJXjG8T1YQ.b['24'][0]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['75']++;this.run();}else{__cov_O36jymnQJbOjHJXjG8T1YQ.b['24'][1]++;}__cov_O36jymnQJbOjHJXjG8T1YQ.s['76']++;return this;},indexOf:function(callback){__cov_O36jymnQJbOjHJXjG8T1YQ.f['21']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['77']++;var i=0,len=this._q.length,c;__cov_O36jymnQJbOjHJXjG8T1YQ.s['78']++;for(;i<len;++i){__cov_O36jymnQJbOjHJXjG8T1YQ.s['79']++;c=this._q[i];__cov_O36jymnQJbOjHJXjG8T1YQ.s['80']++;if((__cov_O36jymnQJbOjHJXjG8T1YQ.b['26'][0]++,c===callback)||(__cov_O36jymnQJbOjHJXjG8T1YQ.b['26'][1]++,c.id===callback)){__cov_O36jymnQJbOjHJXjG8T1YQ.b['25'][0]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['81']++;return i;}else{__cov_O36jymnQJbOjHJXjG8T1YQ.b['25'][1]++;}}__cov_O36jymnQJbOjHJXjG8T1YQ.s['82']++;return-1;},getCallback:function(id){__cov_O36jymnQJbOjHJXjG8T1YQ.f['22']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['83']++;var i=this.indexOf(id);__cov_O36jymnQJbOjHJXjG8T1YQ.s['84']++;return i>-1?(__cov_O36jymnQJbOjHJXjG8T1YQ.b['27'][0]++,this._q[i]):(__cov_O36jymnQJbOjHJXjG8T1YQ.b['27'][1]++,null);},promote:function(callback){__cov_O36jymnQJbOjHJXjG8T1YQ.f['23']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['85']++;var payload={callback:callback},e;__cov_O36jymnQJbOjHJXjG8T1YQ.s['86']++;if(this.isRunning()){__cov_O36jymnQJbOjHJXjG8T1YQ.b['28'][0]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['87']++;e=this.after(SHIFT,function(){__cov_O36jymnQJbOjHJXjG8T1YQ.f['24']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['88']++;this.fire(PROMOTE,payload);__cov_O36jymnQJbOjHJXjG8T1YQ.s['89']++;e.detach();},this);}else{__cov_O36jymnQJbOjHJXjG8T1YQ.b['28'][1]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['90']++;this.fire(PROMOTE,payload);}__cov_O36jymnQJbOjHJXjG8T1YQ.s['91']++;return this;},_defPromoteFn:function(e){__cov_O36jymnQJbOjHJXjG8T1YQ.f['25']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['92']++;var i=this.indexOf(e.callback),promoted=i>-1?(__cov_O36jymnQJbOjHJXjG8T1YQ.b['29'][0]++,this._q.splice(i,1)[0]):(__cov_O36jymnQJbOjHJXjG8T1YQ.b['29'][1]++,null);__cov_O36jymnQJbOjHJXjG8T1YQ.s['93']++;e.promoted=promoted;__cov_O36jymnQJbOjHJXjG8T1YQ.s['94']++;if(promoted){__cov_O36jymnQJbOjHJXjG8T1YQ.b['30'][0]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['95']++;this._q.unshift(promoted);}else{__cov_O36jymnQJbOjHJXjG8T1YQ.b['30'][1]++;}},remove:function(callback){__cov_O36jymnQJbOjHJXjG8T1YQ.f['26']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['96']++;var payload={callback:callback},e;__cov_O36jymnQJbOjHJXjG8T1YQ.s['97']++;if(this.isRunning()){__cov_O36jymnQJbOjHJXjG8T1YQ.b['31'][0]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['98']++;e=this.after(SHIFT,function(){__cov_O36jymnQJbOjHJXjG8T1YQ.f['27']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['99']++;this.fire(REMOVE,payload);__cov_O36jymnQJbOjHJXjG8T1YQ.s['100']++;e.detach();},this);}else{__cov_O36jymnQJbOjHJXjG8T1YQ.b['31'][1]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['101']++;this.fire(REMOVE,payload);}__cov_O36jymnQJbOjHJXjG8T1YQ.s['102']++;return this;},_defRemoveFn:function(e){__cov_O36jymnQJbOjHJXjG8T1YQ.f['28']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['103']++;var i=this.indexOf(e.callback);__cov_O36jymnQJbOjHJXjG8T1YQ.s['104']++;e.removed=i>-1?(__cov_O36jymnQJbOjHJXjG8T1YQ.b['32'][0]++,this._q.splice(i,1)[0]):(__cov_O36jymnQJbOjHJXjG8T1YQ.b['32'][1]++,null);},size:function(){__cov_O36jymnQJbOjHJXjG8T1YQ.f['29']++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['105']++;if(!this.isRunning()){__cov_O36jymnQJbOjHJXjG8T1YQ.b['33'][0]++;__cov_O36jymnQJbOjHJXjG8T1YQ.s['106']++;this.next();}else{__cov_O36jymnQJbOjHJXjG8T1YQ.b['33'][1]++;}__cov_O36jymnQJbOjHJXjG8T1YQ.s['107']++;return this._q.length;}});},'patched-v3.18.1',{'requires':['event-custom']});
  