// transducers-js 0.4.180 // http://github.com/cognitect-labs/transducers-js // // Copyright 2014-2015 Cognitect. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS-IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License.. ;(function(){function c(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var d=Object.prototype.toString.call(a);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; else if("function"==b&&"undefined"==typeof a.call)return"object";return b};var f={};f.d="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";f.f=function(a){return"string"==typeof a};f.isArray="undefined"!=typeof Array.isArray?function(a){return Array.isArray(a)}:function(a){return"array"==c(a)};f.e=function(a){return"object"==c(a)};f.k=function(a){return a[f.d]||a.next};f.slice=function(a,b,d){return null==d?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,d)};f.complement=function(a){return function(b){return!a.apply(null,f.slice(arguments,0))}}; function g(a){this.a=a}g.prototype["@@transducer/init"]=function(){throw Error("init not implemented");};g.prototype["@@transducer/result"]=function(a){return a};g.prototype["@@transducer/step"]=function(a,b){return this.a(a,b)};f.wrap=function(a){return"function"==typeof a?new g(a):a};function h(a){this["@@transducer/reduced"]=!0;this["@@transducer/value"]=a}f.reduced=function(a){return new h(a)};f.isReduced=function(a){return a instanceof h||a&&a["@@transducer/reduced"]}; f.ensureReduced=function(a){return f.isReduced(a)?a:f.reduced(a)};f.deref=function(a){return a["@@transducer/value"]};f.unreduced=function(a){return f.isReduced(a)?f.deref(a):a};f.identity=function(a){return a};f.comp=function(a){var b=arguments.length;if(2==b){var d=arguments[0],e=arguments[1];return function(a){return d(e.apply(null,f.slice(arguments,0)))}}if(2