-
Notifications
You must be signed in to change notification settings - Fork 2
/
transit-amd-min.js
112 lines (111 loc) · 42.3 KB
/
transit-amd-min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// transit-js 0.8.874
// 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(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
function b(a){var c=0;return function(){return c<a.length?{done:!1,value:a[c++]}:{done:!0}}}var m="function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,d){if(a==Array.prototype||a==Object.prototype)return a;a[c]=d.value;return a};
function n(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var c=0;c<a.length;++c){var d=a[c];if(d&&d.Math==Math)return d}throw Error("Cannot find global object");}var p=n(this);function t(a,c){if(c)a:{var d=p;a=a.split(".");for(var e=0;e<a.length-1;e++){var f=a[e];if(!(f in d))break a;d=d[f]}a=a[a.length-1];e=d[a];c=c(e);c!=e&&null!=c&&m(d,a,{configurable:!0,writable:!0,value:c})}}
t("Symbol",function(a){function c(f){if(this instanceof c)throw new TypeError("Symbol is not a constructor");return new d("jscomp_symbol_"+(f||"")+"_"+e++,f)}function d(f,g){this.h=f;m(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;d.prototype.toString=function(){return this.h};var e=0;return c});
t("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var c="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),d=0;d<c.length;d++){var e=p[c[d]];"function"===typeof e&&"function"!=typeof e.prototype[a]&&m(e.prototype,a,{configurable:!0,writable:!0,value:function(){return v(b(this))}})}return a});function v(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
function w(a,c){a instanceof String&&(a+="");var d=0,e=!1,f={next:function(){if(!e&&d<a.length){var g=d++;return{value:c(g,a[g]),done:!1}}e=!0;return{done:!0,value:void 0}}};f[Symbol.iterator]=function(){return f};return f}t("Array.prototype.entries",function(a){return a?a:function(){return w(this,function(c,d){return[c,d]})}});t("Array.prototype.keys",function(a){return a?a:function(){return w(this,function(c){return c})}});
t("Array.prototype.values",function(a){return a?a:function(){return w(this,function(c,d){return d})}});var x=this||self;function y(a){var c=typeof a;return"object"!=c?c:a?Array.isArray(a)?"array":c:"null"};var z={s:{}};z.s.X="undefined"!=typeof Object.keys?function(a){return Object.keys(a)}:function(a){var c=[],d=0,e;for(e in a)c[d++]=e;return c};z.s.isArray="undefined"!=typeof Array.isArray?function(a){return Array.isArray(a)}:function(a){return"array"===y(a)};z.s.fb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";z.s.pb=function(a){return Math.round(Math.random()*a)};z.s.H=function(){return z.s.pb(15).toString(16)};
z.s.randomUUID=function(){var a=(8|3&z.s.pb(14)).toString(16);return z.s.H()+z.s.H()+z.s.H()+z.s.H()+z.s.H()+z.s.H()+z.s.H()+z.s.H()+"-"+z.s.H()+z.s.H()+z.s.H()+z.s.H()+"-4"+z.s.H()+z.s.H()+z.s.H()+"-"+a+z.s.H()+z.s.H()+z.s.H()+"-"+z.s.H()+z.s.H()+z.s.H()+z.s.H()+z.s.H()+z.s.H()+z.s.H()+z.s.H()+z.s.H()+z.s.H()+z.s.H()+z.s.H()};
z.s.btoa=function(a){if("undefined"!=typeof btoa)return btoa(a);a=String(a);for(var c,d,e=0,f=z.s.fb,g="";a.charAt(e|0)||(f="=",e%1);g+=f.charAt(63&c>>8-e%1*8)){d=a.charCodeAt(e+=.75);if(255<d)throw Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");c=c<<8|d}return g};
z.s.atob=function(a){if("undefined"!=typeof atob)return atob(a);a=String(a).replace(/=+$/,"");if(1==a.length%4)throw Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var c=0,d,e,f=0,g="";e=a.charAt(f++);~e&&(d=c%4?64*d+e:e,c++%4)?g+=String.fromCharCode(255&d>>(-2*c&6)):0)e=z.s.fb.indexOf(e);return g};z.s.Bb=function(a){for(var c=0,d=a.length,e="",f;c<d;)f=a.subarray(c,Math.min(c+32768,d)),e+=String.fromCharCode.apply(null,f),c+=32768;return z.s.btoa(e)};
z.s.sb=function(a){a=z.s.atob(a);for(var c=a.length,d=new Uint8Array(c),e=0;e<c;e++)d[e]=a.charCodeAt(e);return d};z.F={};z.F.P="~";z.F.Ab="#";z.F.la="^";z.F.ab="`";z.F.ba="~#";z.A={};z.A.yb=3;z.A.ga=48;z.A.ha=44;z.A.$a=z.A.ha*z.A.ha;z.A.vb=4096;z.A.lb=function(a,c){if(a.length>z.A.yb){if(c)return!0;c=a.charAt(1);return a.charAt(0)===z.F.P?":"===c||"$"===c||"#"===c:!1}return!1};z.A.jb=function(a){var c=Math.floor(a/z.A.ha);a=String.fromCharCode(a%z.A.ha+z.A.ga);return 0===c?z.F.la+a:z.F.la+String.fromCharCode(c+z.A.ga)+a};z.A.Ja=function(){this.h=this.K=0;this.cache={}};
z.A.Ja.prototype.write=function(a,c){return z.A.lb(a,c)?(0===z.A.vb?(this.clear(),this.h=0,this.cache={}):this.K===z.A.$a&&this.clear(),c=this.cache[a],null==c?(this.cache[a]=[z.A.jb(this.K),this.h],this.K++,a):c[1]!=this.h?(c[1]=this.h,c[0]=z.A.jb(this.K),this.K++,a):c[0]):a};z.A.Ja.prototype.clear=function(){this.K=0;this.h++};z.A.writeCache=function(){return new z.A.Ja};z.A.Qb=function(a){return a.charAt(0)===z.F.la&&" "!==a.charAt(1)};
z.A.Eb=function(a){return 2===a.length?a.charCodeAt(1)-z.A.ga:(a.charCodeAt(1)-z.A.ga)*z.A.ha+(a.charCodeAt(2)-z.A.ga)};z.A.ka=function(){this.K=0;this.cache=[]};z.A.ka.prototype.write=function(a){this.K==z.A.$a&&(this.K=0);this.cache[this.K]=a;this.K++;return a};z.A.ka.prototype.read=function(a){return this.cache[z.A.Eb(a)]};z.A.ka.prototype.clear=function(){this.K=0};z.A.readCache=function(){return new z.A.ka};z.l={};z.l.Qa="transit$hashCode$";z.l.ib=1;z.l.equals=function(a,c){if(null==a)return null==c;if(a===c)return!0;if("object"===typeof a){if(z.s.isArray(a)){if(z.s.isArray(c)&&a.length===c.length){for(var d=0;d<a.length;d++)if(!z.l.equals(a[d],c[d]))return!1;return!0}return!1}if(a.R)return a.R(c);if(null!=c&&"object"===typeof c){if(c.R)return c.R(a);d=0;var e=z.s.X(c).length,f;for(f in a)if(a.hasOwnProperty(f)&&(d++,!c.hasOwnProperty(f)||!z.l.equals(a[f],c[f])))return!1;return d===e}}return!1};
z.l.Ra=function(a,c){return a^c+2654435769+(a<<6)+(a>>2)};z.l.Wa={};z.l.Xa=0;z.l.zb=256;z.l.Mb=function(a){var c=z.l.Wa[a];if(null!=c)return c;for(var d=c=0;d<a.length;++d)c=31*c+a.charCodeAt(d),c%=4294967296;z.l.Xa++;z.l.Xa>=z.l.zb&&(z.l.Wa={},z.l.Xa=1);return z.l.Wa[a]=c};z.l.hashMapLike=function(a){var c=0;if(null!=a.forEach)a.forEach(function(k,l){c=(c+(z.l.v(l)^z.l.v(k)))%4503599627370496});else for(var d=z.s.X(a),e=0;e<d.length;e++){var f=d[e],g=a[f];c=(c+(z.l.v(f)^z.l.v(g)))%4503599627370496}return c};
z.l.hashArrayLike=function(a){var c=0;if(z.s.isArray(a))for(var d=0;d<a.length;d++)c=z.l.Ra(c,z.l.v(a[d]));else a.forEach&&a.forEach(function(e){c=z.l.Ra(c,z.l.v(e))});return c};
z.l.v=function(a){if(null==a)return 0;switch(typeof a){case "number":return a;case "boolean":return!0===a?1:0;case "string":return z.l.Mb(a);case "function":var c=a[z.l.Qa];if(c)return c;c=z.l.ib;"undefined"!=typeof Object.defineProperty?Object.defineProperty(a,z.l.Qa,{value:c,enumerable:!1}):a[z.l.Qa]=c;z.l.ib++;return c;default:return a instanceof Date?a.valueOf():z.s.isArray(a)?z.l.hashArrayLike(a):a.T?a.T():z.l.hashMapLike(a)}};z.l.extendToEQ=function(a,c){a.T=c.hashCode;a.R=c.equals;return a};function A(a,c){this.o=a|0;this.h=c|0}function B(a){return 4294967296*a.h+(a.o>>>0)}
A.prototype.toString=function(a){a=a||10;if(2>a||36<a)throw Error("radix out of range: "+a);var c=this.h>>21;if(0==c||-1==c&&(0!=this.o||-2097152!=this.h))return c=B(this),10==a?""+c:c.toString(a);c=14-(a>>2);var d=Math.pow(a,c),e=C(d,d/4294967296);d=D(this,e);e=Math.abs(B(this.add(E(G(d,e)))));var f=10==a?""+e:e.toString(a);f.length<c&&(f="0000000000000".substr(f.length-c)+f);e=B(d);return(10==a?e:e.toString(a))+f};function H(a){return 0==a.o&&0==a.h}
A.prototype.equals=function(a){return this.o==a.o&&this.h==a.h};function I(a,c){return a.h==c.h?a.o==c.o?0:a.o>>>0>c.o>>>0?1:-1:a.h>c.h?1:-1}function E(a){var c=~a.o+1|0;return C(c,~a.h+!c|0)}A.prototype.add=function(a){var c=this.h>>>16,d=this.h&65535,e=this.o>>>16,f=a.h>>>16,g=a.h&65535,k=a.o>>>16;a=(this.o&65535)+(a.o&65535);k=(a>>>16)+(e+k);e=k>>>16;e+=d+g;c=(e>>>16)+(c+f)&65535;return C((k&65535)<<16|a&65535,c<<16|e&65535)};
function G(a,c){if(H(a))return a;if(H(c))return c;var d=a.h>>>16,e=a.h&65535,f=a.o>>>16;a=a.o&65535;var g=c.h>>>16,k=c.h&65535,l=c.o>>>16;c=c.o&65535;var q=a*c;var r=(q>>>16)+f*c;var u=r>>>16;r=(r&65535)+a*l;u+=r>>>16;u+=e*c;var F=u>>>16;u=(u&65535)+f*l;F+=u>>>16;u=(u&65535)+a*k;F=F+(u>>>16)+(d*c+e*l+f*k+a*g)&65535;return C((r&65535)<<16|q&65535,F<<16|u&65535)}
function D(a,c){if(H(c))throw Error("division by zero");if(0>a.h){if(a.equals(J)){if(c.equals(K)||c.equals(L))return J;if(c.equals(J))return K;var d=1;if(0==d)d=a;else{var e=a.h;d=32>d?C(a.o>>>d|e<<32-d,e>>d):C(e>>d-32,0<=e?0:-1)}d=M(D(d,c),1);if(d.equals(N))return 0>c.h?K:L;a=a.add(E(G(c,d)));return d.add(D(a,c))}return 0>c.h?D(E(a),E(c)):E(D(E(a),c))}if(H(a))return N;if(0>c.h)return c.equals(J)?N:E(D(a,E(c)));for(e=N;0<=I(a,c);){d=Math.max(1,Math.floor(B(a)/B(c)));var f=Math.ceil(Math.log(d)/Math.LN2);
f=48>=f?1:Math.pow(2,f-48);for(var g=O(d),k=G(g,c);0>k.h||0<I(k,a);)d-=f,g=O(d),k=G(g,c);H(g)&&(g=K);e=e.add(g);a=a.add(E(k))}return e}A.prototype.and=function(a){return C(this.o&a.o,this.h&a.h)};A.prototype.or=function(a){return C(this.o|a.o,this.h|a.h)};A.prototype.xor=function(a){return C(this.o^a.o,this.h^a.h)};function M(a,c){c&=63;if(0==c)return a;var d=a.o;return 32>c?C(d<<c,a.h<<c|d>>>32-c):C(0,d<<c-32)}
function P(a,c){c&=63;if(0==c)return a;var d=a.h;return 32>c?C(a.o>>>c|d<<32-c,d>>>c):32==c?C(d,0):C(d>>>c-32,0)}function O(a){return 0<a?0x7fffffffffffffff<=a?Q:new A(a,a/4294967296):0>a?-9223372036854775808>=a?J:E(new A(-a,-a/4294967296)):N}function C(a,c){return new A(a,c)}
function R(a,c){if("-"==a.charAt(0))return E(R(a.substring(1),c));var d=parseInt(a,c||10);if(9007199254740991>=d)return new A(d%4294967296|0,d/4294967296|0);if(0==a.length)throw Error("number format error: empty string");if(0<=a.indexOf("-"))throw Error('number format error: interior "-" character: '+a);c=c||10;if(2>c||36<c)throw Error("radix out of range: "+c);d=O(Math.pow(c,8));for(var e=N,f=0;f<a.length;f+=8){var g=Math.min(8,a.length-f),k=parseInt(a.substring(f,f+g),c);8>g?e=G(e,O(Math.pow(c,
g))).add(O(k)):(e=G(e,d),e=e.add(O(k)))}return e}var N=C(0,0),K=C(1,0),L=C(-1,-1),Q=C(4294967295,2147483647),J=C(0,2147483648);z.types={};"undefined"!=typeof Symbol?z.types.ca=Symbol.iterator:z.types.ca="@@iterator";z.types.O=function(a,c){this.tag=a;this.rep=c;this.v=-1};z.types.O.prototype.toString=function(){return"[TaggedValue: "+this.tag+", "+this.rep+"]"};z.types.O.prototype.h=function(a){return z.l.equals(this,a)};z.types.O.prototype.equiv=z.types.O.prototype.h;z.types.O.prototype.R=function(a){return a instanceof z.types.O?this.tag===a.tag&&z.l.equals(this.rep,a.rep):!1};
z.types.O.prototype.T=function(){-1===this.v&&(this.v=z.l.Ra(z.l.v(this.tag),z.l.v(this.rep)));return this.v};z.types.U=function(a,c){return new z.types.O(a,c)};z.types.isTaggedValue=function(a){return a instanceof z.types.O};z.types.$b=function(){return null};z.types.Cb=function(a){return"t"===a};z.types.wb=R("9007199254740991");z.types.xb=R("-9007199254740991");
z.types.kb=function(a){if("number"===typeof a)return a;if(a instanceof A)return a;a=R(a,10);var c;(c=0<I(a,z.types.wb))||(c=0>I(a,z.types.xb));return c?a:B(a)};A.prototype.N=function(a){return z.l.equals(this,a)};A.prototype.equiv=A.prototype.N;A.prototype.R=function(a){return a instanceof A&&this.equals(a)};A.prototype.T=function(){return this.o};z.types.isInteger=function(a){return a instanceof A?!0:"number"===typeof a&&!isNaN(a)&&Infinity!==a&&parseFloat(a)===parseInt(a,10)};z.types.Lb=function(a){return parseFloat(a)};
z.types.eb=function(a){return z.types.U("n",a)};z.types.Pb=function(a){return a instanceof z.types.O&&"n"===a.tag};z.types.cb=function(a){return z.types.U("f",a)};z.types.Ob=function(a){return a instanceof z.types.O&&"f"===a.tag};z.types.Db=function(a){return a};z.types.S=function(a){this.L=a;this.v=-1};z.types.S.prototype.toString=function(){return":"+this.L};z.types.S.prototype.namespace=function(){var a=this.L.indexOf("/");return-1!=a?this.L.substring(0,a):null};
z.types.S.prototype.name=function(){var a=this.L.indexOf("/");return-1!=a?this.L.substring(a+1,this.L.length):this.L};z.types.S.prototype.h=function(a){return z.l.equals(this,a)};z.types.S.prototype.equiv=z.types.S.prototype.h;z.types.S.prototype.R=function(a){return a instanceof z.types.S&&this.L==a.L};z.types.S.prototype.T=function(){-1===this.v&&(this.v=z.l.v(this.L));return this.v};z.types.keyword=function(a){return new z.types.S(a)};z.types.isKeyword=function(a){return a instanceof z.types.S};
z.types.Symbol=function(a){this.L=a;this.v=-1};z.types.Symbol.prototype.namespace=function(){var a=this.L.indexOf("/");return-1!=a?this.L.substring(0,a):null};z.types.Symbol.prototype.name=function(){var a=this.L.indexOf("/");return-1!=a?this.L.substring(a+1,this.L.length):this.L};z.types.Symbol.prototype.toString=function(){return this.L};z.types.Symbol.prototype.h=function(a){return z.l.equals(this,a)};z.types.Symbol.prototype.equiv=z.types.Symbol.prototype.h;
z.types.Symbol.prototype.R=function(a){return a instanceof z.types.Symbol&&this.L==a.L};z.types.Symbol.prototype.T=function(){-1===this.v&&(this.v=z.l.v(this.L));return this.v};z.types.symbol=function(a){return new z.types.Symbol(a)};z.types.isSymbol=function(a){return a instanceof z.types.Symbol};z.types.na=function(a,c,d){var e="";d=d||c+1;for(var f=8*(7-c),g=M(new A(255,0),f);c<d;c++,f-=8,g=P(g,8)){var k=P(a.and(g),f).toString(16);1==k.length&&(k="0"+k);e+=k}return e};
z.types.V=function(a,c){this.h=a;this.o=c;this.v=-1};z.types.V.prototype.toString=function(){var a=this.h,c=this.o;var d=z.types.na(a,0,4)+"-";d+=z.types.na(a,4,6)+"-";d+=z.types.na(a,6,8)+"-";d+=z.types.na(c,0,2)+"-";return d+=z.types.na(c,2,8)};z.types.V.prototype.N=function(a){return z.l.equals(this,a)};z.types.V.prototype.equiv=z.types.V.prototype.N;z.types.V.prototype.R=function(a){return a instanceof z.types.V&&this.h.equals(a.h)&&this.o.equals(a.o)};
z.types.V.prototype.T=function(){-1===this.v&&(this.v=z.l.v(this.toString()));return this.v};z.types.UUIDfromString=function(a){a=a.replace(/-/g,"");var c,d;var e=c=0;for(d=24;8>e;e+=2,d-=8)c|=parseInt(a.substring(e,e+2),16)<<d;var f=0;e=8;for(d=24;16>e;e+=2,d-=8)f|=parseInt(a.substring(e,e+2),16)<<d;var g=C(f,c);c=0;e=16;for(d=24;24>e;e+=2,d-=8)c|=parseInt(a.substring(e,e+2),16)<<d;f=0;for(d=e=24;32>e;e+=2,d-=8)f|=parseInt(a.substring(e,e+2),16)<<d;return new z.types.V(g,C(f,c))};z.types.uuid=function(a){return z.types.UUIDfromString(a)};
z.types.isUUID=function(a){return a instanceof z.types.V};z.types.date=function(a){a="number"===typeof a?a:parseInt(a,10);return new Date(a)};z.types.Yb=function(a){return new Date(a)};Date.prototype.R=function(a){return a instanceof Date?this.valueOf()===a.valueOf():!1};Date.prototype.T=function(){return this.valueOf()};z.types.binary=function(a,c){return c&&!1===c.Va||"undefined"==typeof x.h?"undefined"!=typeof Uint8Array?z.s.sb(a):z.types.U("b",a):new x.h(a,"base64")};
z.types.isBinary=function(a){return"undefined"!=typeof x.h&&a instanceof x.h?!0:"undefined"!=typeof Uint8Array&&a instanceof Uint8Array?!0:a instanceof z.types.O&&"b"===a.tag};z.types.uri=function(a){return z.types.U("r",a)};z.types.isURI=function(a){return a instanceof z.types.O&&"r"===a.tag};z.types.da=0;z.types.Ha=1;z.types.Za=2;z.types.Y=function(a,c){this.entries=a;this.type=c||z.types.da;this.K=0};
z.types.Y.prototype.next=function(){if(this.K<this.entries.length){var a=null;this.type===z.types.da?a=this.entries[this.K]:this.type===z.types.Ha?a=this.entries[this.K+1]:a=[this.entries[this.K],this.entries[this.K+1]];a={value:a,done:!1};this.K+=2;return a}return{value:null,done:!0}};z.types.Y.prototype.next=z.types.Y.prototype.next;z.types.Y.prototype[z.types.ca]=function(){return this};
z.types.Z=function(a,c){this.map=a;this.type=c||z.types.da;this.keys=S(this.map);this.K=0;this.o=null;this.h=0};z.types.Z.prototype.next=function(){if(this.K<this.map.size){null!=this.o&&this.h<this.o.length||(this.o=this.map.map[this.keys[this.K]],this.h=0);var a=null;this.type===z.types.da?a=this.o[this.h]:this.type===z.types.Ha?a=this.o[this.h+1]:a=[this.o[this.h],this.o[this.h+1]];a={value:a,done:!1};this.K++;this.h+=2;return a}return{value:null,done:!0}};z.types.Z.prototype.next=z.types.Z.prototype.next;
z.types.Z.prototype[z.types.ca]=function(){return this};
z.types.Ta=function(a,c){if(a instanceof z.types.B&&z.types.isMap(c)){if(a.size!==c.size)return!1;for(var d in a.map)for(var e=a.map[d],f=0;f<e.length;f+=2)if(!z.l.equals(e[f+1],c.get(e[f])))return!1;return!0}if(a instanceof z.types.C&&z.types.isMap(c)){if(a.size!==c.size)return!1;a=a.I;for(f=0;f<a.length;f+=2)if(!z.l.equals(a[f+1],c.get(a[f])))return!1;return!0}if(null!=c&&"object"===typeof c&&(f=z.s.X(c),d=f.length,a.size===d)){for(e=0;e<d;e++){var g=f[e];if(!a.has(g)||!z.l.equals(c[g],a.get(g)))return!1}return!0}return!1};
z.types.Na=8;z.types.Ya=32;z.types.rb=32;z.types.print=function(a){return null==a?"null":"array"===y(a)?"["+a.toString()+"]":"string"===y(a)?'"'+a+'"':a.toString()};z.types.ob=function(a){var c=0,d="TransitMap {";a.forEach(function(e,f){d+=z.types.print(f)+" => "+z.types.print(e);c<a.size-1&&(d+=", ");c++});return d+"}"};z.types.Vb=function(a){var c=0,d="TransitSet {";a.forEach(function(e){d+=z.types.print(e);c<a.size-1&&(d+=", ");c++});return d+"}"};
z.types.C=function(a){this.I=a;this.G=null;this.v=-1;this.size=a.length/2;this.h=0};z.types.C.prototype.toString=function(){return z.types.ob(this)};z.types.C.prototype.inspect=function(){return this.toString()};function T(a){if(a.G)throw Error("Invalid operation, already converted");if(a.size<z.types.Na)return!1;a.h++;return a.h>z.types.rb?(a.G=z.types.map(a.I,!1,!0),a.I=[],!0):!1}z.types.C.prototype.clear=function(){this.v=-1;this.G?this.G.clear():this.I=[];this.size=0};
z.types.C.prototype.clear=z.types.C.prototype.clear;z.types.C.prototype.keys=function(){return this.G?this.G.keys():new z.types.Y(this.I,z.types.da)};z.types.C.prototype.keys=z.types.C.prototype.keys;z.types.C.prototype.o=function(){if(this.G)return this.G.o();for(var a=[],c=0,d=0;d<this.I.length;c++,d+=2)a[c]=this.I[d];return a};z.types.C.prototype.keySet=z.types.C.prototype.o;z.types.C.prototype.entries=function(){return this.G?this.G.entries():new z.types.Y(this.I,z.types.Za)};
z.types.C.prototype.entries=z.types.C.prototype.entries;z.types.C.prototype.values=function(){return this.G?this.G.values():new z.types.Y(this.I,z.types.Ha)};z.types.C.prototype.values=z.types.C.prototype.values;z.types.C.prototype.forEach=function(a){if(this.G)this.G.forEach(a);else for(var c=0;c<this.I.length;c+=2)a(this.I[c+1],this.I[c])};z.types.C.prototype.forEach=z.types.C.prototype.forEach;
z.types.C.prototype.get=function(a,c){if(this.G)return this.G.get(a);if(T(this))return this.get(a);for(var d=0;d<this.I.length;d+=2)if(z.l.equals(this.I[d],a))return this.I[d+1];return c};z.types.C.prototype.get=z.types.C.prototype.get;z.types.C.prototype.has=function(a){if(this.G)return this.G.has(a);if(T(this))return this.has(a);for(var c=0;c<this.I.length;c+=2)if(z.l.equals(this.I[c],a))return!0;return!1};z.types.C.prototype.has=z.types.C.prototype.has;
z.types.C.prototype.set=function(a,c){this.v=-1;if(this.G)this.G.set(a,c),this.size=this.G.size;else{for(var d=0;d<this.I.length;d+=2)if(z.l.equals(this.I[d],a)){this.I[d+1]=c;return}this.I.push(a);this.I.push(c);this.size++;this.size>z.types.Ya&&(this.G=z.types.map(this.I,!1,!0),this.I=null)}};z.types.C.prototype.set=z.types.C.prototype.set;
z.types.C.prototype["delete"]=function(a){this.v=-1;if(this.G)return a=this.G.delete(a),this.size=this.G.size,a;for(var c=0;c<this.I.length;c+=2)if(z.l.equals(this.I[c],a))return a=this.I[c+1],this.I.splice(c,2),this.size--,a};z.types.C.prototype.N=function(){var a=z.types.map();this.forEach(function(c,d){a.set(d,c)});return a};z.types.C.prototype.clone=z.types.C.prototype.N;z.types.C.prototype[z.types.ca]=function(){return this.entries()};
z.types.C.prototype.T=function(){if(this.G)return this.G.T();-1===this.v&&(this.v=z.l.hashMapLike(this));return this.v};z.types.C.prototype.R=function(a){return this.G?z.types.Ta(this.G,a):z.types.Ta(this,a)};z.types.B=function(a,c,d){this.map=c||{};this.h=a||[];this.size=d||0;this.v=-1};z.types.B.prototype.toString=function(){return z.types.ob(this)};z.types.B.prototype.inspect=function(){return this.toString()};z.types.B.prototype.clear=function(){this.v=-1;this.map={};this.h=[];this.size=0};
z.types.B.prototype.clear=z.types.B.prototype.clear;function S(a){return null!=a.h?a.h:z.s.X(a.map)}z.types.B.prototype["delete"]=function(a){this.v=-1;this.h=null;for(var c=z.l.v(a),d=this.map[c],e=0;e<d.length;e+=2)if(z.l.equals(a,d[e]))return a=d[e+1],d.splice(e,2),0===d.length&&delete this.map[c],this.size--,a};z.types.B.prototype.entries=function(){return new z.types.Z(this,z.types.Za)};z.types.B.prototype.entries=z.types.B.prototype.entries;
z.types.B.prototype.forEach=function(a){for(var c=S(this),d=0;d<c.length;d++)for(var e=this.map[c[d]],f=0;f<e.length;f+=2)a(e[f+1],e[f],this)};z.types.B.prototype.forEach=z.types.B.prototype.forEach;z.types.B.prototype.get=function(a,c){var d=z.l.v(a);d=this.map[d];if(null!=d)for(c=0;c<d.length;c+=2){if(z.l.equals(a,d[c]))return d[c+1]}else return c};z.types.B.prototype.get=z.types.B.prototype.get;
z.types.B.prototype.has=function(a){var c=z.l.v(a);c=this.map[c];if(null!=c)for(var d=0;d<c.length;d+=2)if(z.l.equals(a,c[d]))return!0;return!1};z.types.B.prototype.has=z.types.B.prototype.has;z.types.B.prototype.keys=function(){return new z.types.Z(this,z.types.da)};z.types.B.prototype.keys=z.types.B.prototype.keys;z.types.B.prototype.o=function(){for(var a=S(this),c=[],d=0;d<a.length;d++)for(var e=this.map[a[d]],f=0;f<e.length;f+=2)c.push(e[f]);return c};z.types.B.prototype.keySet=z.types.B.prototype.o;
z.types.B.prototype.set=function(a,c){this.v=-1;var d=z.l.v(a),e=this.map[d];if(null==e)this.h&&this.h.push(d),this.map[d]=[a,c],this.size++;else{d=!0;for(var f=0;f<e.length;f+=2)if(z.l.equals(c,e[f])){d=!1;e[f]=c;break}d&&(e.push(a),e.push(c),this.size++)}};z.types.B.prototype.set=z.types.B.prototype.set;z.types.B.prototype.values=function(){return new z.types.Z(this,z.types.Ha)};z.types.B.prototype.values=z.types.B.prototype.values;
z.types.B.prototype.N=function(){var a=z.types.map();this.forEach(function(c,d){a.set(d,c)});return a};z.types.B.prototype.clone=z.types.B.prototype.N;z.types.B.prototype[z.types.ca]=function(){return this.entries()};z.types.B.prototype.T=function(){-1===this.v&&(this.v=z.l.hashMapLike(this));return this.v};z.types.B.prototype.R=function(a){return z.types.Ta(this,a)};
z.types.map=function(a,c,d){a=a||[];c=!1===c?c:!0;if((!0!==d||!d)&&a.length<=2*z.types.Ya){if(c){var e=a;a=[];for(c=0;c<e.length;c+=2){var f=!1;for(d=0;d<a.length;d+=2)if(z.l.equals(a[d],e[c])){a[d+1]=e[c+1];f=!0;break}f||(a.push(e[c]),a.push(e[c+1]))}}return new z.types.C(a)}e={};f=[];var g=0;for(c=0;c<a.length;c+=2){d=z.l.v(a[c]);var k=e[d];if(null==k)f.push(d),e[d]=[a[c],a[c+1]],g++;else{var l=!0;for(d=0;d<k.length;d+=2)if(z.l.equals(k[d],a[c])){k[d+1]=a[c+1];l=!1;break}l&&(k.push(a[c]),k.push(a[c+
1]),g++)}}return new z.types.B(f,e,g)};z.types.Nb=function(a){return a instanceof z.types.C};z.types.isMap=function(a){return a instanceof z.types.C||a instanceof z.types.B};z.types.D=function(a){this.map=a;this.size=a.size};z.types.D.prototype.toString=function(){return z.types.Vb(this)};z.types.D.prototype.inspect=function(){return this.toString()};z.types.D.prototype.add=function(a){this.map.set(a,a);this.size=this.map.size};z.types.D.prototype.add=z.types.D.prototype.add;
z.types.D.prototype.clear=function(){this.map=new z.types.B;this.size=0};z.types.D.prototype.clear=z.types.D.prototype.clear;z.types.D.prototype["delete"]=function(a){a=this.map.delete(a);this.size=this.map.size;return a};z.types.D.prototype.entries=function(){return this.map.entries()};z.types.D.prototype.entries=z.types.D.prototype.entries;z.types.D.prototype.forEach=function(a){var c=this;this.map.forEach(function(d,e){a(e,c)})};z.types.D.prototype.forEach=z.types.D.prototype.forEach;
z.types.D.prototype.has=function(a){return this.map.has(a)};z.types.D.prototype.has=z.types.D.prototype.has;z.types.D.prototype.keys=function(){return this.map.keys()};z.types.D.prototype.keys=z.types.D.prototype.keys;z.types.D.prototype.o=function(){return this.map.o()};z.types.D.prototype.keySet=z.types.D.prototype.o;z.types.D.prototype.values=function(){return this.map.values()};z.types.D.prototype.values=z.types.D.prototype.values;
z.types.D.prototype.h=function(){var a=z.types.set();this.forEach(function(c){a.add(c)});return a};z.types.D.prototype.clone=z.types.D.prototype.h;z.types.D.prototype[z.types.ca]=function(){return this.values()};z.types.D.prototype.R=function(a){if(a instanceof z.types.D){if(this.size===a.size)return z.l.equals(this.map,a.map)}else return!1};z.types.D.prototype.T=function(){return z.l.v(this.map)};
z.types.set=function(a){a=a||[];for(var c={},d=[],e=0,f=0;f<a.length;f++){var g=z.l.v(a[f]),k=c[g];if(null==k)d.push(g),c[g]=[a[f],a[f]],e++;else{g=!0;for(var l=0;l<k.length;l+=2)if(z.l.equals(k[l],a[f])){g=!1;break}g&&(k.push(a[f]),k.push(a[f]),e++)}}return new z.types.D(new z.types.B(d,c,e))};z.types.isSet=function(a){return a instanceof z.types.D};z.types.quoted=function(a){return z.types.U("'",a)};z.types.isQuoted=function(a){return a instanceof z.types.O&&"'"===a.tag};
z.types.list=function(a){return z.types.U("list",a)};z.types.isList=function(a){return a instanceof z.types.O&&"list"===a.tag};z.types.link=function(a){return z.types.U("link",a)};z.types.isLink=function(a){return a instanceof z.types.O&&"link"===a.tag};z.types.Wb=function(a){switch(a){case "-INF":return-Infinity;case "INF":return Infinity;case "NaN":return NaN;default:throw Error("Invalid special double value "+a);}};z.j={};z.j.decoder={};z.j.decoder.bb=function(a){this.La=a};z.j.decoder.tag=function(a){return new z.j.decoder.bb(a)};z.j.decoder.mb=function(a){return a&&a instanceof z.j.decoder.bb};z.j.decoder.Sb=function(a){switch(a){case "_":case "s":case "?":case "i":case "d":case "b":case "'":case "array":case "map":return!0}return!1};
z.j.decoder.aa=function(a){this.N=a||{};this.g={};for(var c in this.oa.g)this.g[c]=this.oa.g[c];for(c in this.N.handlers){if(z.j.decoder.Sb(c))throw Error('Cannot override handler for ground type "'+c+'"');this.g[c]=this.N.handlers[c]}this.Ka=null!=this.N.preferStrings?this.N.preferStrings:this.oa.Ka;this.Va=null!=this.N.preferBuffers?this.N.preferBuffers:this.oa.Va;this.Pa=this.N.defaultHandler||this.oa.Pa;this.o=this.N.mapBuilder;this.ea=this.N.arrayBuilder};
z.j.decoder.aa.prototype.oa={g:{_:function(){return null},"?":function(a){return z.types.Cb(a)},b:function(a,c){return z.types.binary(a,c)},i:function(a){return z.types.kb(a)},n:function(a){return z.types.eb(a)},d:function(a){return z.types.Lb(a)},f:function(a){return z.types.cb(a)},c:function(a){return z.types.Db(a)},":":function(a){return z.types.keyword(a)},$:function(a){return z.types.symbol(a)},r:function(a){return z.types.uri(a)},z:function(a){return z.types.Wb(a)},"'":function(a){return a},
m:function(a){return z.types.date(a)},t:function(a){return z.types.Yb(a)},u:function(a){return z.types.uuid(a)},set:function(a){return z.types.set(a)},list:function(a){return z.types.list(a)},link:function(a){return z.types.link(a)},cmap:function(a){return z.types.map(a,!1)}},Pa:function(a,c){return z.types.U(a,c)},Ka:!0,Va:!0};
z.j.decoder.aa.prototype.h=function(a,c,d,e){if(null==a)return null;switch(typeof a){case "string":return z.A.lb(a,d)?(a=U(this,a),c&&c.write(a,d),c=a):c=z.A.Qb(a)?c.read(a,d):U(this,a),c;case "object":if(z.s.isArray(a))if("^ "===a[0])if(this.o)if(a.length<2*z.types.Na+1&&this.o.fromArray){e=[];for(d=1;d<a.length;d+=2)e.push(this.h(a[d],c,!0,!1)),e.push(this.h(a[d+1],c,!1,!1));c=this.o.fromArray(e,a)}else{e=this.o.init(a);for(d=1;d<a.length;d+=2)e=this.o.add(e,this.h(a[d],c,!0,!1),this.h(a[d+1],c,
!1,!1),a);c=this.o.finalize(e,a)}else{e=[];for(d=1;d<a.length;d+=2)e.push(this.h(a[d],c,!0,!1)),e.push(this.h(a[d+1],c,!1,!1));c=z.types.map(e,!1)}else c=V(this,a,c,d,e);else{d=z.s.X(a);var f=d[0];e=1==d.length?this.h(f,c,!1,!1):null;if(z.j.decoder.mb(e))a=a[f],d=this.g[e.La],c=null!=d?d(this.h(a,c,!1,!0),this):z.types.U(e.La,this.h(a,c,!1,!1));else if(this.o)if(d.length<2*z.types.Na&&this.o.fromArray){var g=[];for(e=0;e<d.length;e++)f=d[e],g.push(this.h(f,c,!0,!1)),g.push(this.h(a[f],c,!1,!1));c=
this.o.fromArray(g,a)}else{g=this.o.init(a);for(e=0;e<d.length;e++)f=d[e],g=this.o.add(g,this.h(f,c,!0,!1),this.h(a[f],c,!1,!1),a);c=this.o.finalize(g,a)}else{g=[];for(e=0;e<d.length;e++)f=d[e],g.push(this.h(f,c,!0,!1)),g.push(this.h(a[f],c,!1,!1));c=z.types.map(g,!1)}}return c}return a};z.j.decoder.aa.prototype.decode=z.j.decoder.aa.prototype.h;
function V(a,c,d,e,f){if(f){var g=[];for(f=0;f<c.length;f++)g.push(a.h(c[f],d,e,!1));return g}g=d&&d.K;if(2===c.length&&"string"===typeof c[0]&&(f=a.h(c[0],d,!1,!1),z.j.decoder.mb(f)))return c=c[1],g=a.g[f.La],null!=g?g=g(a.h(c,d,e,!0),a):z.types.U(f.La,a.h(c,d,e,!1));d&&g!=d.K&&(d.K=g);if(a.ea){if(32>=c.length&&a.ea.fromArray){g=[];for(f=0;f<c.length;f++)g.push(a.h(c[f],d,e,!1));return a.ea.fromArray(g,c)}g=a.ea.init(c);for(f=0;f<c.length;f++)g=a.ea.add(g,a.h(c[f],d,e,!1),c);return a.ea.finalize(g,
c)}g=[];for(f=0;f<c.length;f++)g.push(a.h(c[f],d,e,!1));return g}function U(a,c){if(c.charAt(0)===z.F.P){var d=c.charAt(1);if(d===z.F.P||d===z.F.la||d===z.F.ab)return c.substring(1);if(d===z.F.Ab)return z.j.decoder.tag(c.substring(2));var e=a.g[d];return null==e?a.Pa(d,c.substring(2)):e(c.substring(2),a)}return c}z.j.decoder.decoder=function(a){return new z.j.decoder.aa(a)};z.j.reader={};z.j.reader.ub=function(a){this.decoder=new z.j.decoder.aa(a)};z.j.reader.ya=function(a,c){this.o=a;this.h=c||{};this.cache=this.h.cache?this.h.cache:new z.A.ka};z.j.reader.ya.prototype.read=function(a){var c=this.cache;a=this.o.decoder.h(JSON.parse(a),c);this.cache.clear();return a};z.j.reader.ya.prototype.read=z.j.reader.ya.prototype.read;z.g={};z.g.gb=0;z.g.Oa="transit$guid$"+z.s.randomUUID();z.g.qb=function(a){if(null==a)return"null";if(a===String)return"string";if(a===Boolean)return"boolean";if(a===Number)return"number";if(a===Array)return"array";if(a===Object)return"map";var c=a[z.g.Oa];null==c&&("undefined"!=typeof Object.defineProperty?(c=++z.g.gb,Object.defineProperty(a,z.g.Oa,{value:c,enumerable:!1})):a[z.g.Oa]=c=++z.g.gb);return c};z.g.constructor=function(a){return null==a?null:a.constructor};
z.g.fa=function(a,c){a=a.toString();for(var d=a.length;d<c;d++)a="0"+a;return a};z.g.stringableKeys=function(a){a=z.s.X(a);for(var c=0;c<a.length;c++);return!0};z.g.wa=function(){};z.g.wa.prototype.tag=function(){return"_"};z.g.wa.prototype.rep=function(){return null};z.g.wa.prototype.M=function(){return"null"};z.g.za=function(){};z.g.za.prototype.tag=function(){return"s"};z.g.za.prototype.rep=function(a){return a};z.g.za.prototype.M=function(a){return a};z.g.xa=function(){};
z.g.xa.prototype.tag=function(){return"i"};z.g.xa.prototype.rep=function(a){return a};z.g.xa.prototype.M=function(a){return a.toString()};z.g.ta=function(){};z.g.ta.prototype.tag=function(){return"i"};z.g.ta.prototype.rep=function(a){return a.toString()};z.g.ta.prototype.M=function(a){return a.toString()};z.g.ra=function(){};z.g.ra.prototype.tag=function(){return"?"};z.g.ra.prototype.rep=function(a){return a};z.g.ra.prototype.M=function(a){return a.toString()};z.g.qa=function(){};
z.g.qa.prototype.tag=function(){return"array"};z.g.qa.prototype.rep=function(a){return a};z.g.qa.prototype.M=function(){return null};z.g.va=function(){};z.g.va.prototype.tag=function(){return"map"};z.g.va.prototype.rep=function(a){return a};z.g.va.prototype.M=function(){return null};z.g.Ia=function(){};z.g.Ia.prototype.tag=function(){return"t"};
z.g.Ia.prototype.rep=function(a){return a.getUTCFullYear()+"-"+z.g.fa(a.getUTCMonth()+1,2)+"-"+z.g.fa(a.getUTCDate(),2)+"T"+z.g.fa(a.getUTCHours(),2)+":"+z.g.fa(a.getUTCMinutes(),2)+":"+z.g.fa(a.getUTCSeconds(),2)+"."+z.g.fa(a.getUTCMilliseconds(),3)+"Z"};z.g.Ia.prototype.M=function(a,c){return c.rep(a)};z.g.ia=function(){};z.g.ia.prototype.tag=function(){return"m"};z.g.ia.prototype.rep=function(a){return a.valueOf()};z.g.ia.prototype.M=function(a){return a.valueOf().toString()};
z.g.ia.prototype.hb=function(){return new z.g.Ia};z.g.Fa=function(){};z.g.Fa.prototype.tag=function(){return"u"};z.g.Fa.prototype.rep=function(a){return a.toString()};z.g.Fa.prototype.M=function(a){return a.toString()};z.g.ua=function(){};z.g.ua.prototype.tag=function(){return":"};z.g.ua.prototype.rep=function(a){return a.L};z.g.ua.prototype.M=function(a,c){return c.rep(a)};z.g.Aa=function(){};z.g.Aa.prototype.tag=function(){return"$"};z.g.Aa.prototype.rep=function(a){return a.L};
z.g.Aa.prototype.M=function(a,c){return c.rep(a)};z.g.Ba=function(){};z.g.Ba.prototype.tag=function(a){return a.tag};z.g.Ba.prototype.rep=function(a){return a.rep};z.g.Ba.prototype.M=function(){return null};z.g.Ea=function(){};z.g.Ea.prototype.tag=function(){return"set"};z.g.Ea.prototype.rep=function(a){var c=[];a.forEach(function(d){c.push(d)});return z.types.U("array",c)};z.g.Ea.prototype.M=function(){return null};z.g.Ca=function(){};z.g.Ca.prototype.tag=function(){return"map"};
z.g.Ca.prototype.rep=function(a){return a};z.g.Ca.prototype.M=function(){return null};z.g.Da=function(){};z.g.Da.prototype.tag=function(){return"map"};z.g.Da.prototype.rep=function(a){return a};z.g.Da.prototype.M=function(){return null};z.g.sa=function(){};z.g.sa.prototype.tag=function(){return"b"};z.g.sa.prototype.rep=function(a){return a.toString("base64")};z.g.sa.prototype.M=function(){return null};z.g.Ga=function(){};z.g.Ga.prototype.tag=function(){return"b"};z.g.Ga.prototype.rep=function(a){return z.s.Bb(a)};
z.g.Ga.prototype.M=function(){return null};
z.g.Fb=function(a){a.set(null,new z.g.wa);a.set(String,new z.g.za);a.set(Number,new z.g.xa);a.set(A,new z.g.ta);a.set(Boolean,new z.g.ra);a.set(Array,new z.g.qa);a.set(Object,new z.g.va);a.set(Date,new z.g.ia);a.set(z.types.V,new z.g.Fa);a.set(z.types.S,new z.g.ua);a.set(z.types.Symbol,new z.g.Aa);a.set(z.types.O,new z.g.Ba);a.set(z.types.D,new z.g.Ea);a.set(z.types.C,new z.g.Ca);a.set(z.types.B,new z.g.Da);"undefined"!=typeof x.h&&a.set(x.h,new z.g.sa);"undefined"!=typeof Uint8Array&&a.set(Uint8Array,
new z.g.Ga)};z.g.ja=function(){this.g={};z.g.Fb(this)};z.g.ja.prototype.get=function(a){a="string"===typeof a?this.g[a]:this.g[z.g.qb(a)];return null!=a?a:this.g["default"]};z.g.ja.prototype.get=z.g.ja.prototype.get;z.g.Xb=function(a){switch(a){case "null":case "string":case "boolean":case "number":case "array":case "map":return!1}return!0};z.g.ja.prototype.set=function(a,c){"string"===typeof a&&z.g.Xb(a)?this.g[a]=c:this.g[z.g.qb(a)]=c};z.j.writer={};z.j.writer.escape=function(a){if(0<a.length){var c=a.charAt(0);return c===z.F.P||c===z.F.la||c===z.F.ab?z.F.P+a:a}return a};
z.j.writer.tb=function(a){this.h=a||{};this.Ka=null!=this.h.preferStrings?this.h.preferStrings:!0;this.nb=this.h.objectBuilder||null;this.transform=this.h.transform||null;this.g=new z.g.ja;if(a=this.h.handlers){if(z.s.isArray(a)||!a.forEach)throw Error('transit writer "handlers" option must be a map');var c=this;a.forEach(function(d,e){if(void 0!==e)c.g.set(e,d);else throw Error("Cannot create handler for JavaScript undefined");})}this.ma=this.h.handlerForForeign;this.Ma=this.h.unpack||function(d){return z.types.Nb(d)&&
null===d.G?d.I:!1};this.pa=this.h&&this.h.verbose||!1};function W(a,c){var d=a.g.get(z.g.constructor(c));return null!=d?d:(c=c&&c.transitTag)?a.g.get(c):null}function X(a,c,d,e,f){a=a+c+d;return f?f.write(a,e):a}z.j.writer.Jb=function(a,c,d){var e=[];if(z.s.isArray(c))for(var f=0;f<c.length;f++)e.push(z.j.writer.J(a,c[f],!1,d));else c.forEach(function(g){e.push(z.j.writer.J(a,g,!1,d))});return e};z.j.writer.Gb=function(a,c,d){return z.j.writer.Jb(a,c,d)};
z.j.writer.Sa=function(a,c){return"string"!==typeof c?(a=W(a,c))&&1===a.tag(c).length:!0};z.j.writer.stringableKeys=function(a,c){var d=a.Ma(c),e=!0;if(d){for(c=0;c<d.length&&(e=z.j.writer.Sa(a,d[c]),e);c+=2);return e}if(c.keys){d=c.keys();var f=null;if(d.next){for(f=d.next();!f.done;){e=z.j.writer.Sa(a,f.value);if(!e)break;f=d.next()}return e}}if(c.forEach)return c.forEach(function(g,k){e=e&&z.j.writer.Sa(a,k)}),e;throw Error("Cannot walk keys of object type "+z.g.constructor(c).name);};
z.j.writer.Rb=function(a){if(a.constructor.transit$isObject)return!0;var c=a.constructor.toString();c=c.substr(9);c=c.substr(0,c.indexOf("("));c="Object"==c;"undefined"!=typeof Object.defineProperty?Object.defineProperty(a.constructor,"transit$isObject",{value:c,enumerable:!1}):a.constructor.transit$isObject=c;return c};
z.j.writer.Ib=function(a,c,d){var e=null,f=null,g=null;e=null;var k=0;if(c.constructor===Object||null!=c.forEach||a.ma&&z.j.writer.Rb(c)){if(a.pa){if(null!=c.forEach){if(z.j.writer.stringableKeys(a,c)){var l={};c.forEach(function(q,r){l[z.j.writer.J(a,r,!0,!1)]=z.j.writer.J(a,q,!1,d)});return l}e=a.Ma(c);f=[];g=X(z.F.ba,"cmap","",!0,d);if(e)for(;k<e.length;k+=2)f.push(z.j.writer.J(a,e[k],!1,!1)),f.push(z.j.writer.J(a,e[k+1],!1,d));else c.forEach(function(q,r){f.push(z.j.writer.J(a,r,!1,!1));f.push(z.j.writer.J(a,
q,!1,d))});l={};l[g]=f;return l}e=z.s.X(c);for(l={};k<e.length;k++)l[z.j.writer.J(a,e[k],!0,!1)]=z.j.writer.J(a,c[e[k]],!1,d);return l}if(null!=c.forEach){if(z.j.writer.stringableKeys(a,c)){e=a.Ma(c);l=["^ "];if(e)for(;k<e.length;k+=2)l.push(z.j.writer.J(a,e[k],!0,d)),l.push(z.j.writer.J(a,e[k+1],!1,d));else c.forEach(function(q,r){l.push(z.j.writer.J(a,r,!0,d));l.push(z.j.writer.J(a,q,!1,d))});return l}e=a.Ma(c);f=[];g=X(z.F.ba,"cmap","",!0,d);if(e)for(;k<e.length;k+=2)f.push(z.j.writer.J(a,e[k],
!1,d)),f.push(z.j.writer.J(a,e[k+1],!1,d));else c.forEach(function(q,r){f.push(z.j.writer.J(a,r,!1,d));f.push(z.j.writer.J(a,q,!1,d))});return[g,f]}l=["^ "];for(e=z.s.X(c);k<e.length;k++)l.push(z.j.writer.J(a,e[k],!0,d)),l.push(z.j.writer.J(a,c[e[k]],!1,d));return l}if(null!=a.nb)return a.nb(c,function(q){return z.j.writer.J(a,q,!0,d)},function(q){return z.j.writer.J(a,q,!1,d)});k=z.g.constructor(c).name;e=Error("Cannot write "+k);e.data={Ua:c,type:k};throw e;};
z.j.writer.Kb=function(a,c,d,e){if(a.pa){var f={};f[X(z.F.ba,c,"",!0,e)]=z.j.writer.J(a,d,!1,e);return f}return[X(z.F.ba,c,"",!0,e),z.j.writer.J(a,d,!1,e)]};z.j.writer.Hb=function(a,c,d,e,f,g,k){if(1===d.length){if("string"===typeof e)return X(z.F.P,d,e,g,k);if(g||a.Ka){(e=a.pa&&c.hb())?(d=e.tag(f),e=e.M(f,e)):e=c.M(f,c);if(null!==e)return X(z.F.P,d,e,g,k);c=Error('Tag "'+d+'" cannot be encoded as string');c.data={tag:d,rep:e,Ua:f};throw c;}}return z.j.writer.Kb(a,d,e,k)};
z.j.writer.J=function(a,c,d,e){null!==a.transform&&(c=a.transform(c));var f=W(a,c)||(a.ma?a.ma(c,a.g):null),g=f?f.tag(c):null,k=f?f.rep(c):null;if(null!=f&&null!=g)switch(g){case "_":return d?X(z.F.P,"_","",d,e):null;case "s":return X("","",z.j.writer.escape(k),d,e);case "?":return d?X(z.F.P,"?",k.toString()[0],d,e):k;case "i":return Infinity===k?X(z.F.P,"z","INF",d,e):-Infinity===k?X(z.F.P,"z","-INF",d,e):isNaN(k)?X(z.F.P,"z","NaN",d,e):d||"string"===typeof k||k instanceof A?X(z.F.P,"i",k.toString(),
d,e):k;case "d":return d?X(k.P,"d",k,d,e):k;case "b":return X(z.F.P,"b",k,d,e);case "'":return a.pa?(c={},d=X(z.F.ba,"'","",!0,e),c[d]=z.j.writer.J(a,k,!1,e),a=c):a=[X(z.F.ba,"'","",!0,e),z.j.writer.J(a,k,!1,e)],a;case "array":return z.j.writer.Gb(a,k,e);case "map":return z.j.writer.Ib(a,k,e);default:return z.j.writer.Hb(a,f,g,k,c,d,e)}else throw a=z.g.constructor(c).name,e=Error("Cannot write "+a),e.data={Ua:c,type:a},e;};
z.j.writer.Ub=function(a,c){a=W(a,c)||(a.ma?a.ma(c,a.g):null);if(null!=a)return 1===a.tag(c).length?z.types.quoted(c):c;a=z.g.constructor(c).name;var d=Error("Cannot write "+a);d.data={Ua:c,type:a};throw d;};z.j.writer.Tb=function(a,c,d,e){return JSON.stringify(z.j.writer.J(a,z.j.writer.Ub(a,c),d,e))};z.j.writer.W=function(a,c){this.h=a;this.o=c||{};!1===this.o.cache?this.cache=null:this.cache=this.o.cache?this.o.cache:new z.A.Ja};z.j.writer.W.prototype.N=function(){return this.h};
z.j.writer.W.prototype.marshaller=z.j.writer.W.prototype.N;z.j.writer.W.prototype.write=function(a,c){c=c||{};var d=c.asMapKey||!1,e=this.h.pa?!1:this.cache;a=!1===c.marshalTop?z.j.writer.J(this.h,a,d,e):z.j.writer.Tb(this.h,a,d,e);null!=this.cache&&this.cache.clear();return a};z.j.writer.W.prototype.write=z.j.writer.W.prototype.write;z.j.writer.W.prototype.register=function(a,c){this.h.g.set(a,c)};z.j.writer.W.prototype.register=z.j.writer.W.prototype.register;z.reader=function(a,c){if("json"===a||"json-verbose"===a||null==a)return a=new z.j.reader.ub(c),new z.j.reader.ya(a,c);throw Error("Cannot create reader of type "+a);};z.writer=function(a,c){if("json"===a||"json-verbose"===a||null==a)return"json-verbose"===a&&(null==c&&(c={}),c.verbose=!0),a=new z.j.writer.tb(c),new z.j.writer.W(a,c);c=Error('Type must be "json"');c.data={type:a};throw c;};
z.makeWriteHandler=function(a){function c(){}c.prototype.tag=a.tag;c.prototype.rep=a.rep;c.prototype.M=a.stringRep;c.prototype.hb=a.getVerboseHandler;return new c};z.makeBuilder=function(a){function c(){}c.prototype.init=a.init;c.prototype.add=a.add;c.prototype.finalize=a.finalize;c.prototype.fromArray=a.fromArray;return new c};z.date=z.types.date;z.integer=z.types.kb;z.isInteger=z.types.isInteger;z.uuid=z.types.uuid;z.isUUID=z.types.isUUID;z.bigInt=z.types.eb;z.isBigInt=z.types.Pb;z.bigDec=z.types.cb;
z.isBigDec=z.types.Ob;z.keyword=z.types.keyword;z.isKeyword=z.types.isKeyword;z.symbol=z.types.symbol;z.isSymbol=z.types.isSymbol;z.binary=z.types.binary;z.isBinary=z.types.isBinary;z.uri=z.types.uri;z.isURI=z.types.isURI;z.map=z.types.map;z.isMap=z.types.isMap;z.set=z.types.set;z.isSet=z.types.isSet;z.list=z.types.list;z.isList=z.types.isList;z.quoted=z.types.quoted;z.isQuoted=z.types.isQuoted;z.tagged=z.types.U;z.isTaggedValue=z.types.isTaggedValue;z.link=z.types.link;z.isLink=z.types.isLink;
z.hash=z.l.v;z.hashMapLike=z.l.hashMapLike;z.hashArrayLike=z.l.hashArrayLike;z.equals=z.l.equals;z.extendToEQ=z.l.extendToEQ;z.mapToObject=function(a){var c={};a.forEach(function(d,e){if("string"!==typeof e)throw Error("Cannot convert map with non-string keys");c[e]=d});return c};z.objectToMap=function(a){var c=z.map(),d;for(d in a)a.hasOwnProperty(d)&&c.set(d,a[d]);return c};z.decoder=z.j.decoder.decoder;z.readCache=z.A.readCache;z.writeCache=z.A.writeCache;z.UUIDfromString=z.types.UUIDfromString;
z.randomUUID=z.s.randomUUID;z.stringableKeys=z.j.writer.stringableKeys;z.Zb={};define("transit",[],function(){return z});})();