// transit-js 0.8.861 // http://transit-format.org // // Copyright 2014 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 h=this; function aa(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 k(a,b){var c=a.split("."),d=h;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};function ba(a,b,c){return Object.prototype.hasOwnProperty.call(a,b)?a[b]:a[b]=c(b)};function l(a,b){this.s=a|0;this.j=b|0}var ca={},da={};function n(a){return ba(ca,a,function(a){return new l(a,0>a?-1:0)})}function ea(a){a|=0;return-128<=a&&128>a?n(a):new l(a,0>a?-1:0)}function p(a){return isNaN(a)?n(0):a<=-fa?q():a+1>=fa?ga():0>a?r(p(-a)):new l(a%t|0,a/t|0)}function u(a,b){return new l(a,b)} function ja(a,b){if(!a.length)throw Error("number format error: empty string");var c=b||10;if(2>c||36g?(g=p(Math.pow(c,g)),e=v(e,g).add(p(m))):(e=v(e,d),e=e.add(p(m)))}return e}var t=4294967296,fa=t*t/2; function ga(){return ba(da,ka,function(){return u(-1,2147483647)})}function q(){return ba(da,la,function(){return u(0,-2147483648)})}function ma(){return ba(da,na,function(){return ea(16777216)})}function w(a){return a.j*t+(0<=a.s?a.s:t+a.s)} l.prototype.toString=function(a){a=a||10;if(2>a||36this.j){if(y(this,q())){var b=p(a);var c=z(this,b);b=A(v(c,b),this);return c.toString(a)+b.s.toString(a)}return"-"+r(this).toString(a)}c=p(Math.pow(a,6));b=this;for(var d="";;){var e=z(b,c),f=(A(b,v(e,c)).s>>>0).toString(a);b=e;if(x(b))return f+d;for(;6>f.length;)f="0"+f;d=""+f+d}};function x(a){return!a.j&&!a.s}function y(a,b){return a.j==b.j&&a.s==b.s} function B(a,b){if(y(a,b))return 0;var c=0>a.j,d=0>b.j;return c&&!d?-1:!c&&d?1:0>A(a,b).j?-1:1}function r(a){return y(a,q())?q():u(~a.s,~a.j).add(n(1))}l.prototype.add=function(a){var b=this.j>>>16,c=this.j&65535,d=this.s>>>16,e=a.j>>>16,f=a.j&65535,g=a.s>>>16;a=0+((this.s&65535)+(a.s&65535));g=0+(a>>>16)+(d+g);d=0+(g>>>16);d+=c+f;b=0+(d>>>16)+(b+e)&65535;return u((g&65535)<<16|a&65535,b<<16|d&65535)};function A(a,b){return a.add(r(b))} function v(a,b){if(x(a)||x(b))return n(0);if(y(a,q()))return 1==(b.s&1)?q():n(0);if(y(b,q()))return 1==(a.s&1)?q():n(0);if(0>a.j)return 0>b.j?v(r(a),r(b)):r(v(r(a),b));if(0>b.j)return r(v(a,r(b)));if(0>B(a,ma())&&0>B(b,ma()))return p(w(a)*w(b));var c=a.j>>>16,d=a.j&65535,e=a.s>>>16,f=a.s&65535,g=b.j>>>16,m=b.j&65535,Ea=b.s>>>16,ha=b.s&65535;var Xa=0+f*ha;var Z=0+(Xa>>>16)+e*ha;var I=0+(Z>>>16);Z=(Z&65535)+f*Ea;I+=Z>>>16;I+=d*ha;var ia=0+(I>>>16);I=(I&65535)+e*Ea;ia+=I>>>16;I=(I&65535)+f*m;ia=ia+(I>>> 16)+(c*ha+d*Ea+e*m+f*g)&65535;return u((Z&65535)<<16|Xa&65535,ia<<16|I&65535)} function z(a,b){if(x(b))throw Error("division by zero");if(x(a))return n(0);if(y(a,q())){if(y(b,n(1))||y(b,n(-1)))return q();if(y(b,q()))return n(1);var c=1;var d=a.j;c=32>c?u(a.s>>>c|d<<32-c,d>>c):u(d>>c-32,0<=d?0:-1);c=oa(z(c,b),1);if(y(c,n(0)))return 0>b.j?n(1):n(-1);d=A(a,v(b,c));return c.add(z(d,b))}if(y(b,q()))return n(0);if(0>a.j)return 0>b.j?z(r(a),r(b)):r(z(r(a),b));if(0>b.j)return r(z(a,r(b)));var e=n(0);for(d=a;0<=B(d,b);){c=Math.max(1,Math.floor(w(d)/w(b)));for(var f=Math.ceil(Math.log(c)/ Math.LN2),f=48>=f?1:Math.pow(2,f-48),g=p(c),m=v(g,b);0>m.j||0b?u(c<>>32-b):u(0,c<b?u(a.s>>>b|c<<32-b,c>>>b):32==b?u(c,0):u(c>>>b-32,0)}return a}var ka=1,la=2,na=6;function qa(a,b){if(3>2)}var xa={},ya=0; function za(a){var b=0;if(null!=a.forEach)a.forEach(function(a,c){b=(b+(H(c)^H(a)))%4503599627370496});else for(var c=C(a),d=0;dB(a,Da)?a:w(a)}l.prototype.a=function(a){return F(this,a)};l.prototype.equiv=l.prototype.a;l.prototype.D=function(a){return a instanceof l&&y(this,a)};l.prototype.F=function(){return this.s};function Ga(a){return K("n",a)}function Ha(a){return K("f",a)}function L(a){this.v=a;this.a=-1}L.prototype.toString=function(){return":"+this.v}; L.prototype.namespace=function(){var a=this.v.indexOf("/");return-1!=a?this.v.substring(0,a):null};L.prototype.name=function(){var a=this.v.indexOf("/");return-1!=a?this.v.substring(a+1,this.v.length):this.v};L.prototype.g=function(a){return F(this,a)};L.prototype.equiv=L.prototype.g;L.prototype.D=function(a){return a instanceof L&&this.v==a.v};L.prototype.F=function(){-1===this.a&&(this.a=H(this.v));return this.a};function Ia(a){return new L(a)}function M(a){this.v=a;this.a=-1} M.prototype.namespace=function(){var a=this.v.indexOf("/");return-1!=a?this.v.substring(0,a):null};M.prototype.name=function(){var a=this.v.indexOf("/");return-1!=a?this.v.substring(a+1,this.v.length):this.v};M.prototype.toString=function(){return this.v};M.prototype.g=function(a){return F(this,a)};M.prototype.equiv=M.prototype.g;M.prototype.D=function(a){return a instanceof M&&this.v==a.v};M.prototype.F=function(){-1===this.a&&(this.a=H(this.v));return this.a};function Ja(a){return new M(a)} function Ka(a,b,c){var d="";c=c||b+1;for(var e=8*(7-b),f=oa(ea(255),e);bd;d+=2,c-=8)b|=parseInt(a.substring(d,d+2),16)<d;d+=2,c-=8)e|=parseInt(a.substring(d,d+2),16)<d;d+=2,c-=8)b|=parseInt(a.substring(d,d+2),16)<d;d+=2,c-=8)e|=parseInt(a.substring(d,d+2),16)<>(-2*d&6)):0)f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(f);c=m}d=c.length;e=new Uint8Array(d);for(f=0;f< d;f++)e[f]=c.charCodeAt(f);c=e}else c=K("b",a);else c=new h.G(a,"base64");return c}function Oa(a){return K("r",a)}function O(a,b){this.entries=a;this.type=b||0;this.o=0}O.prototype.next=function(){if(this.o "+Sa(d);ba.size)return!1;a.g++;return 32=a.length){if(b){var d=a;a=[];for(b=0;b>8-c%1*8)){b=a.charCodeAt(c+=.75);if(255a.length&&this.g.fromArray){d=[];for(c=1;cc.length&&this.g.fromArray){var f=[];for(e=0;e=b.length&&a.C.fromArray){f=[];for(e=0;e