// 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(){var d=this; function f(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"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}function g(a,b){var c=a.split("."),e=d;c[0]in e||!e.execScript||e.execScript("var "+c[0]);for(var k;c.length&&(k=c.shift());)c.length||void 0===b?e[k]?e=e[k]:e=e[k]={}:e[k]=b};var h="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",l="undefined"!=typeof Array.isArray?function(a){return Array.isArray(a)}:function(a){return"array"==f(a)};function m(a){return function(b){return!a.apply(null,Array.prototype.slice.call(arguments,0))}}function n(a){this.a=a}n.prototype["@@transducer/init"]=function(){throw Error("init not implemented");};n.prototype["@@transducer/result"]=function(a){return a};n.prototype["@@transducer/step"]=function(a,b){return this.a(a,b)}; function p(a){return"function"==typeof a?new n(a):a}function q(a){this["@@transducer/reduced"]=!0;this["@@transducer/value"]=a}function r(a){return new q(a)}function t(a){return a instanceof q||a&&a["@@transducer/reduced"]}function u(a){return t(a)?a:r(a)}function v(a){return a["@@transducer/value"]}function w(a){return t(a)?v(a):a}function x(a){return a} function y(a){var b=arguments.length;if(2==b){var c=arguments[0],e=arguments[1];return function(a){return c(e.apply(null,Array.prototype.slice.call(arguments,0)))}}if(2