// transit-js 0.8.837 // 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(){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 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};function c(a,b){this.H=a|0;this.B=b|0}var ba,ca,da,ea,fa,ga,ha={};function l(a){if(-128<=a&&128>a){var b=ha[a];if(b)return b}b=new c(a|0,0>a?-1:0);-128<=a&&128>a&&(ha[a]=b);return b}function m(a){isNaN(a)||!isFinite(a)?a=n():a<=-ia?a=q():a+1>=ia?(ea||(ea=r(-1,2147483647)),a=ea):a=0>a?t(m(-a)):new c(a%u|0,a/u|0);return a}function r(a,b){return new c(a,b)} function v(a,b){if(0==a.length)throw Error("number format error: empty string");var d=b||10;if(2>d||36h?(h=m(Math.pow(d,h)),f=w(f,h).add(m(k))):(f=w(f,e),f=f.add(m(k)))}return f}var u=4294967296,ia=u*u/2; function n(){ba||(ba=l(0));return ba}function x(){ca||(ca=l(1));return ca}function ja(){da||(da=l(-1));return da}function q(){fa||(fa=r(0,-2147483648));return fa}function ka(){ga||(ga=l(16777216));return ga}function y(a){return a.B*u+(0<=a.H?a.H:u+a.H)} c.prototype.toString=function(a){a=a||10;if(2>a||36this.B){if(this.equals(q())){var b=m(a),d=A(this,b),b=C(w(d,b),this);return d.toString(a)+b.H.toString(a)}return"-"+t(this).toString(a)}for(var d=m(Math.pow(a,6)),b=this,e="";;){var f=A(b,d),g=C(b,w(f,d)).H.toString(a),b=f;if(z(b))return g+e;for(;6>g.length;)g="0"+g;e=""+g+e}};function z(a){return 0==a.B&&0==a.H}c.prototype.equals=function(a){return this.B==a.B&&this.H==a.H}; function D(a,b){if(a.equals(b))return 0;var d=0>a.B,e=0>b.B;return d&&!e?-1:!d&&e?1:0>C(a,b).B?-1:1}function t(a){return a.equals(q())?q():r(~a.H,~a.B).add(x())}c.prototype.add=function(a){var b=this.B>>>16,d=this.B&65535,e=this.H>>>16,f=a.B>>>16,g=a.B&65535,h=a.H>>>16,k;k=0+((this.H&65535)+(a.H&65535));a=0+(k>>>16);a+=e+h;e=0+(a>>>16);e+=d+g;d=0+(e>>>16);d=d+(b+f)&65535;return r((a&65535)<<16|k&65535,d<<16|e&65535)};function C(a,b){return a.add(t(b))} function w(a,b){if(z(a)||z(b))return n();if(a.equals(q()))return 1==(b.H&1)?q():n();if(b.equals(q()))return 1==(a.H&1)?q():n();if(0>a.B)return 0>b.B?w(t(a),t(b)):t(w(t(a),b));if(0>b.B)return t(w(a,t(b)));var d=ka();if(d=0>D(a,d))d=ka(),d=0>D(b,d);if(d)return m(y(a)*y(b));var d=a.B>>>16,e=a.B&65535,f=a.H>>>16,g=a.H&65535,h=b.B>>>16,k=b.B&65535,va=b.H>>>16,V=b.H&65535,F,p,B,wa;wa=0+g*V;B=0+(wa>>>16);B+=f*V;p=0+(B>>>16);B=(B&65535)+g*va;p+=B>>>16;B&=65535;p+=e*V;F=0+(p>>>16);p=(p&65535)+f*va;F+=p>>> 16;p&=65535;p+=g*k;F+=p>>>16;p&=65535;F=F+(d*V+e*va+f*k+g*h)&65535;return r(B<<16|wa&65535,F<<16|p)} function A(a,b){if(z(b))throw Error("division by zero");if(z(a))return n();if(a.equals(q())){if(b.equals(x())||b.equals(ja()))return q();if(b.equals(q()))return x();var d;d=1;if(0==d)d=a;else{var e=a.B;d=32>d?r(a.H>>>d|e<<32-d,e>>d):r(e>>d-32,0<=e?0:-1)}d=la(A(d,b),1);if(d.equals(n()))return 0>b.B?x():ja();e=C(a,w(b,d));return d.add(A(e,b))}if(b.equals(q()))return n();if(0>a.B)return 0>b.B?A(t(a),t(b)):t(A(t(a),b));if(0>b.B)return t(A(a,t(b)));for(var f=n(),e=a;0<=D(e,b);){d=Math.max(1,Math.floor(y(e)/ y(b)));for(var g=Math.ceil(Math.log(d)/Math.LN2),g=48>=g?1:Math.pow(2,g-48),h=m(d),k=w(h,b);0>k.B||0b?r(d<>>32-b):r(0,d<b?r(a.H>>>b|d<<32-b,d>>>b):32==b?r(d,0):r(d>>>b-32,0)};var E={w:{}};E.w.L="~";E.w.Sa="#";E.w.Z="^";E.w.wa="`";E.w.T="~#";E.v={};E.v.Qa=3;E.v.X=48;E.v.Y=44;E.v.va=E.v.Y*E.v.Y;E.v.Na=4096;E.v.Fa=function(a,b){if(a.length>E.v.Qa){if(b)return!0;var d=a.charAt(1);return a.charAt(0)===E.w.L?":"===d||"$"===d||"#"===d:!1}return!1};E.v.Da=function(a){var b=Math.floor(a/E.v.Y);a=String.fromCharCode(a%E.v.Y+E.v.X);return 0===b?E.w.Z+a:E.w.Z+String.fromCharCode(b+E.v.X)+a};function G(){this.a=this.G=0;this.s={}} G.prototype.write=function(a,b){if(E.v.Fa(a,b)){0===E.v.Na?(this.clear(),this.a=0,this.s={}):this.G===E.v.va&&this.clear();var d=this.s[a];return null==d?(this.s[a]=[E.v.Da(this.G),this.a],this.G++,a):d[1]!=this.a?(d[1]=this.a,d[0]=E.v.Da(this.G),this.G++,a):d[0]}return a};G.prototype.clear=function(){this.G=0;this.a++};E.v.writeCache=function(){return new G};E.v.ib=function(a){return a.charAt(0)===E.w.Z&&" "!==a.charAt(1)}; E.v.Wa=function(a){return 2===a.length?a.charCodeAt(1)-E.v.X:(a.charCodeAt(1)-E.v.X)*E.v.Y+(a.charCodeAt(2)-E.v.X)};function H(){this.G=0;this.a=[]}H.prototype.write=function(a){this.G==E.v.va&&(this.G=0);this.a[this.G]=a;this.G++;return a};H.prototype.qa=function(a){return this.a[E.v.Wa(a)]};H.prototype.clear=function(){this.G=0};E.v.readCache=function(){return new H};E.j={};E.j.R="undefined"!=typeof Object.keys?function(a){return Object.keys(a)}:function(a){var b=[],d=0,e;for(e in a)b[d++]=e;return b};E.j.isArray="undefined"!=typeof Array.isArray?function(a){return Array.isArray(a)}:function(a){return"array"===aa(a)};E.j.za="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";E.j.Ja=function(a){return Math.round(Math.random()*a)};E.j.C=function(){return E.j.Ja(15).toString(16)}; E.j.randomUUID=function(){var a=(8|3&E.j.Ja(14)).toString(16);return E.j.C()+E.j.C()+E.j.C()+E.j.C()+E.j.C()+E.j.C()+E.j.C()+E.j.C()+"-"+E.j.C()+E.j.C()+E.j.C()+E.j.C()+"-4"+E.j.C()+E.j.C()+E.j.C()+"-"+a+E.j.C()+E.j.C()+E.j.C()+"-"+E.j.C()+E.j.C()+E.j.C()+E.j.C()+E.j.C()+E.j.C()+E.j.C()+E.j.C()+E.j.C()+E.j.C()+E.j.C()+E.j.C()}; E.j.btoa=function(a){if("undefined"!=typeof btoa)return btoa(a);a=String(a);for(var b,d,e=0,f=E.j.za,g="";a.charAt(e|0)||(f="=",e%1);g+=f.charAt(63&b>>8-e%1*8)){d=a.charCodeAt(e+=.75);if(255>(-2*b&6)):0)e=E.j.za.indexOf(e);return g};E.j.Ta=function(a){for(var b=0,d=a.length,e="",f=null;b>2)};E.g.ra={};E.g.sa=0;E.g.Ra=256;E.g.eb=function(a){var b=E.g.ra[a];if(null!=b)return b;for(var d=b=0;d=E.g.Ra&&(E.g.ra={},E.g.sa=1);return E.g.ra[a]=b}; E.g.hashMapLike=function(a){var b=0;if(null!=a.forEach)a.forEach(function(a,d){b=(b+(E.g.o(d)^E.g.o(a)))%4503599627370496});else for(var d=E.j.R(a),e=0;eD(a,E.types.Pa)?a:y(a)};c.prototype.a=function(a){return E.g.equals(this,a)};c.prototype.equiv=c.prototype.a; c.prototype.M=function(a){return a instanceof c&&this.equals(a)};c.prototype.N=function(){return this.H};E.types.isInteger=function(a){return a instanceof c?!0:"number"===typeof a&&!isNaN(a)&&Infinity!==a&&parseFloat(a)===parseInt(a,10)};E.types.cb=function(a){return parseFloat(a)};E.types.ya=function(a){return E.types.O("n",a)};E.types.hb=function(a){return a instanceof I&&"n"===a.tag};E.types.xa=function(a){return E.types.O("f",a)};E.types.gb=function(a){return a instanceof I&&"f"===a.tag}; E.types.Va=function(a){return a};function J(a){this.I=a;this.o=-1}J.prototype.toString=function(){return":"+this.I};J.prototype.namespace=function(){var a=this.I.indexOf("/");return-1!=a?this.I.substring(0,a):null};J.prototype.name=function(){var a=this.I.indexOf("/");return-1!=a?this.I.substring(a+1,this.I.length):this.I};J.prototype.a=function(a){return E.g.equals(this,a)};J.prototype.equiv=J.prototype.a;J.prototype.M=function(a){return a instanceof J&&this.I==a.I}; J.prototype.N=function(){-1===this.o&&(this.o=E.g.o(this.I));return this.o};E.types.keyword=function(a){return new J(a)};E.types.isKeyword=function(a){return a instanceof J};function K(a){this.I=a;this.o=-1}K.prototype.namespace=function(){var a=this.I.indexOf("/");return-1!=a?this.I.substring(0,a):null};K.prototype.name=function(){var a=this.I.indexOf("/");return-1!=a?this.I.substring(a+1,this.I.length):this.I};K.prototype.toString=function(){return this.I}; K.prototype.a=function(a){return E.g.equals(this,a)};K.prototype.equiv=K.prototype.a;K.prototype.M=function(a){return a instanceof K&&this.I==a.I};K.prototype.N=function(){-1===this.o&&(this.o=E.g.o(this.I));return this.o};E.types.symbol=function(a){return new K(a)};E.types.isSymbol=function(a){return a instanceof K};E.types.ba=function(a,b,d){var e="";d=d||b+1;for(var f=8*(7-b),g=la(l(255),f);bg;g+=2,f-=8)d|=parseInt(a.substring(g,g+2),16)<g;g+=2,f-=8)e|=parseInt(a.substring(g,g+2),16)<g;g+=2,f-=8)d|=parseInt(a.substring(g,g+2),16)<g;g+=2,f-=8)e|=parseInt(a.substring(g,g+2),16)< "+E.types.print(e);bE.types.La?(a.A=E.types.map(a.D,!1,!0),a.D=[],!0):!1}P.prototype.clear=function(){this.o=-1;this.A?this.A.clear():this.D=[];this.size=0};P.prototype.clear=P.prototype.clear; P.prototype.keys=function(){return this.A?this.A.keys():new M(this.D,E.types.V)};P.prototype.keys=P.prototype.keys;P.prototype.s=function(){if(this.A)return this.A.s();for(var a=[],b=0,d=0;dE.types.ta&&(this.A=E.types.map(this.D,!1,!0),this.D=null)}}; P.prototype.set=P.prototype.set;P.prototype["delete"]=function(a){this.o=-1;if(this.A)return a=this.A["delete"](a),this.size=this.A.size,a;for(var b=0;b=b.length&&a.P.fromArray){g=[];for(f=0;f