UNPKG

gojs

Version:

Interactive diagrams, charts, and graphs, such as trees, flowcharts, orgcharts, UML, BPMN, or business diagrams

120 lines 990 kB
/* * GoJS v2.1.35 JavaScript Library for HTML Diagrams, https://gojs.net * GoJS and Northwoods Software are registered trademarks of Northwoods Software Corporation, https://www.nwoods.com. * Copyright (C) 1998-2021 by Northwoods Software Corporation. All Rights Reserved. * THIS SOFTWARE IS LICENSED. THE LICENSE AGREEMENT IS AT: https://gojs.net/2.1.35/license.html. * DO NOT MODIFY THIS FILE. DO NOT DISTRIBUTE A MODIFIED COPY OF THE CONTENTS OF THIS FILE. */ (function() { var t;function ba(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function ca(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ba(a)}}function da(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c}var ea="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},fa; if("function"==typeof Object.setPrototypeOf)fa=Object.setPrototypeOf;else{var ha;a:{var ia={a:!0},ja={};try{ja.__proto__=ia;ha=ja.a;break a}catch(a){}ha=!1}fa=ha?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ka=fa; function la(a,b){a.prototype=ea(b.prototype);a.prototype.constructor=a;if(ka)ka(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.KB=b.prototype}var ma="undefined"!=typeof window&&window===self?self:"undefined"!=typeof global&&null!=global?global:self,na="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)}; function pa(a){if(a){for(var b=ma,c=["Array","prototype","fill"],d=0;d<c.length-1;d++){var e=c[d];e in b||(b[e]={});b=b[e]}c=c[c.length-1];d=b[c];a=a(d);a!=d&&null!=a&&na(b,c,{configurable:!0,writable:!0,value:a})}}pa(function(a){return a?a:function(a,c,d){var b=this.length||0;0>c&&(c=Math.max(0,b+c));if(null==d||d>b)d=b;d=Number(d);0>d&&(d=Math.max(0,b+d));for(c=Number(c||0);c<d;c++)this[c]=a;return this}});var qa="object"===typeof self&&self.self===self&&self||"object"===typeof global&&global.global===global&&global||"object"===typeof window&&window.window===window&&window||{};void 0===qa.requestAnimationFrame&&(void 0===qa.setImmediate?qa.requestAnimationFrame=function(a){qa.setTimeout(a,0)}:qa.requestAnimationFrame=qa.setImmediate);function ra(){}function sa(a,b){var c=-1;return function(){var d=this,e=arguments;-1!==c&&qa.clearTimeout(c);c=ta(function(){c=-1;a.apply(d,e)},b)}} function ta(a,b){return qa.setTimeout(a,b)}function ua(a){return qa.document.createElement(a)}function v(a){throw Error(a);}function va(a,b){a="The object is frozen, so its properties cannot be set: "+a.toString();void 0!==b&&(a+=" to value: "+b);v(a)}function x(a,b,c,d){a instanceof b||(c=wa(c),void 0!==d&&(c+="."+d),xa(a,b,c))}function A(a,b,c,d){typeof a!==b&&(c=wa(c),void 0!==d&&(c+="."+d),xa(a,b,c))} function C(a,b,c){"number"===typeof a&&isFinite(a)||(b=wa(b),void 0!==c&&(b+="."+c),v(b+" must be a real number type, and not NaN or Infinity: "+a))}function xa(a,b,c,d){b=wa(b);c=wa(c);void 0!==d&&(c+="."+d);"string"===typeof a?v(c+" value is not an instance of "+b+': "'+a+'"'):v(c+" value is not an instance of "+b+": "+a)}function ya(a,b,c,d){c=wa(c);void 0!==d&&(c+="."+d);v(c+" is not in the range "+b+": "+a)} function za(a){v(("string"===typeof a.className?a.className:"")+" constructor cannot take any arguments.")}function Aa(a){v("Collection was modified during iteration: "+a.toString()+"\n Perhaps you should iterate over a copy of the collection,\n or you could collect items to be removed from the collection after the iteration.")}function Ba(a,b){v("No property to set for this enum value: "+b+" on "+a.toString())}function Ca(a){qa.console&&qa.console.log(a)} function Da(){qa.console&&qa.console.log("Warning: List/Map/Set constructors no longer take an argument that enforces type.Instead they take an optional collection of Values to add to the collection. See 2.0 changelog for details.")}function Fa(a){return"object"===typeof a&&null!==a}function Ga(a){return Array.isArray(a)||qa.NodeList&&a instanceof qa.NodeList||qa.HTMLCollection&&a instanceof qa.HTMLCollection}function Ha(a,b,c){Ga(a)||xa(a,"Array or NodeList or HTMLCollection",b,c)} function Ia(a){return Array.prototype.slice.call(a)}function Ja(a,b,c){Array.isArray(a)?b>=a.length?a.push(c):a.splice(b,0,c):v("Cannot insert an object into an HTMLCollection or NodeList: "+c+" at "+b)}function Ka(a,b){Array.isArray(a)?b>=a.length?a.pop():a.splice(b,1):v("Cannot remove an object from an HTMLCollection or NodeList at "+b)}function La(){var a=Na.pop();return void 0===a?[]:a}function Oa(a){a.length=0;Na.push(a)} function wa(a){return null===a?"*":"string"===typeof a?a:"function"===typeof a&&"string"===typeof a.className?a.className:""}function Pa(a){if("function"===typeof a){if(a.className)return a.className;if(a.name)return a.name;var b=a.toString();b=b.substring(9,b.indexOf("(")).trim();if(""!==b)return a._className=b}else if(Fa(a)&&a.constructor)return Pa(a.constructor);return typeof a} function Qa(a){var b=a;Fa(a)&&(a.text?b=a.text:a.name?b=a.name:void 0!==a.key?b=a.key:void 0!==a.id?b=a.id:a.constructor===Object&&(a.Text?b=a.Text:a.Name?b=a.Name:void 0!==a.Key?b=a.Key:void 0!==a.Id?b=a.Id:void 0!==a.ID&&(b=a.ID)));return void 0===b?"undefined":null===b?"null":b.toString()}function Ra(a,b){if(a.hasOwnProperty(b))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(b))return!0;var c=a.AB;if(c&&c[b])return!0;a=Object.getPrototypeOf(a)}return!1} function Sa(a,b,c){Object.defineProperty(Ta.prototype,a,{get:b,set:c})}function Ua(){var a=Xa;if(void 0===qa.document)return a;if(0===a.length)for(var b=qa.document.getElementsByTagName("canvas"),c=b.length,d=0;d<c;d++){var e=b[d];e.parentElement&&e.parentElement.B&&a.push(e.parentElement.B)}return a} function Ya(a){for(var b=[],c=0;256>c;c++)b["0123456789abcdef".charAt(c>>4)+"0123456789abcdef".charAt(c&15)]=String.fromCharCode(c);a.length%2&&(a="0"+a);c=[];for(var d=0,e=0;e<a.length;e+=2)c[d++]=b[a.substr(e,2)];a=c.join("");a=""===a?"0":a;b=[];for(c=0;256>c;c++)b[c]=c;for(c=d=0;256>c;c++)d=(d+b[c]+119)%256,e=b[c],b[c]=b[d],b[d]=e;d=c=0;for(var f="",g=0;g<a.length;g++)c=(c+1)%256,d=(d+b[c])%256,e=b[c],b[c]=b[d],b[d]=e,f+=String.fromCharCode(a.charCodeAt(g)^b[(b[c]+b[d])%256]);return f} var Za=void 0!==qa.navigator&&0<qa.navigator.userAgent.indexOf("MSIE 9.0"),$a=void 0!==qa.navigator&&0<qa.navigator.userAgent.indexOf("MSIE 10.0"),bb=void 0!==qa.navigator&&0<qa.navigator.userAgent.indexOf("Trident/7"),cb=void 0!==qa.navigator&&0<qa.navigator.userAgent.indexOf("Edge/"),db=void 0!==qa.navigator&&void 0!==qa.navigator.platform&&0<=qa.navigator.platform.toUpperCase().indexOf("MAC"),eb=void 0!==qa.navigator&&void 0!==qa.navigator.platform&&null!==qa.navigator.platform.match(/(iPhone|iPod|iPad)/i), Na=[];Object.freeze([]);var Xa=[];ra.className="Util";ra.Dx="32ab5ff3b26f42dc0ed90f21452913b5";ra.adym="gojs.net";ra.vfo="28e647fdb063";ra.className="Util";function E(a,b,c){fb(this);this.l=a;this.Wa=b;this.w=c}E.prototype.toString=function(){return"EnumValue."+this.Wa};function gb(a,b){return void 0===b||null===b||""===b?null:a[b]}function hb(a,b,c,d){a.classType!==b&&(c=wa(c),void 0!==d&&(c+="."+d),xa(a,"function"==="a constant of class "+typeof b.className?b.className:"",c))} ma.Object.defineProperties(E.prototype,{classType:{configurable:!0,get:function(){return this.l}},name:{configurable:!0,get:function(){return this.Wa}},value:{configurable:!0,get:function(){return this.w}}});E.className="EnumValue";function ib(){this.Bx=[]}ib.prototype.toString=function(){return this.Bx.join("")};ib.prototype.add=function(a){""!==a&&this.Bx.push(a)};ib.className="StringBuilder";function jb(){}jb.className="PropertyCollection"; var F={zm:!1,zy:!1,dA:!1,DB:!1,HB:!1,Py:!1,yy:!1,BB:null,trace:function(a){qa.console&&qa.console.log(a)},CB:function(a,b,c,d){a.strokeStyle="red";a.fillStyle="red";a.font="8px sans-serif";a.beginPath();a.moveTo(-10,0);a.lineTo(10,0);a.moveTo(0,-10);a.lineTo(0,10);a.stroke();a.setTransform(1,0,0,1,0,0);a.scale(c,c);a.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy);a.lineWidth=2;a.beginPath();a.moveTo(d.left,d.top+20);a.lineTo(d.left,d.top);a.lineTo(d.left+20,d.top);a.moveTo(d.right,d.bottom-20);a.lineTo(d.right, d.bottom);a.lineTo(d.right-20,d.bottom);a.stroke();a.fillText("DB: "+Math.round(d.x)+", "+Math.round(d.y)+", "+Math.round(d.width)+", "+Math.round(d.height),d.left,d.top-5)},Iz:function(a){var b={},c;for(c in a){b.x=c;if("licenseKey"!==b.x){var d=a[b.x];if(void 0!==d.prototype){b.Sm=Object.getOwnPropertyNames(d.prototype);for(var e={Gk:0};e.Gk<b.Sm.length;e={Gk:e.Gk},e.Gk++){var f=Object.getOwnPropertyDescriptor(d.prototype,b.Sm[e.Gk]);void 0!==f.get&&void 0===f.set&&Object.defineProperty(d.prototype, b.Sm[e.Gk],{set:function(a,b){return function(){throw Error("Property "+a.Sm[b.Gk]+" of "+a.x+" is read-only.");}}(b,e)})}}}b={Sm:b.Sm,x:b.x}}}};function kb(){}kb.prototype.reset=function(){};kb.prototype.next=function(){return!1};kb.prototype.td=function(){return!1};kb.prototype.first=function(){return null};kb.prototype.any=function(){return!1};kb.prototype.all=function(){return!0};kb.prototype.each=function(){return this};kb.prototype.map=function(){return this};kb.prototype.filter=function(){return this}; kb.prototype.Sd=function(){};kb.prototype.toString=function(){return"EmptyIterator"};ma.Object.defineProperties(kb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return 0}}});kb.prototype.first=kb.prototype.first;kb.prototype.hasNext=kb.prototype.td;kb.prototype.next=kb.prototype.next;kb.prototype.reset=kb.prototype.reset;var lb=null;kb.className="EmptyIterator";lb=new kb;function mb(a){this.key=-1;this.value=a} mb.prototype.reset=function(){this.key=-1};mb.prototype.next=function(){return-1===this.key?(this.key=0,!0):!1};mb.prototype.td=function(){return this.next()};mb.prototype.first=function(){this.key=0;return this.value};mb.prototype.any=function(a){this.key=-1;return a(this.value)};mb.prototype.all=function(a){this.key=-1;return a(this.value)};mb.prototype.each=function(a){this.key=-1;a(this.value);return this};mb.prototype.map=function(a){return new mb(a(this.value))}; mb.prototype.filter=function(a){return a(this.value)?new mb(this.value):lb};mb.prototype.Sd=function(){this.value=null};mb.prototype.toString=function(){return"SingletonIterator("+this.value+")"};ma.Object.defineProperties(mb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return 1}}});mb.prototype.first=mb.prototype.first;mb.prototype.hasNext=mb.prototype.td;mb.prototype.next=mb.prototype.next; mb.prototype.reset=mb.prototype.reset;mb.className="SingletonIterator";function nb(a){this.xb=a;this.sf=null;a.Ma=null;this.oa=a.u;this.Va=-1}nb.prototype.reset=function(){var a=this.xb;a.Ma=null;this.oa=a.u;this.Va=-1};nb.prototype.next=function(){var a=this.xb;if(a.u!==this.oa){if(0>this.key)return!1;Aa(a)}a=a.j;var b=a.length,c=++this.Va,d=this.sf;if(null!==d)for(;c<b;){var e=a[c];if(d(e))return this.key=this.Va=c,this.value=e,!0;c++}else{if(c<b)return this.key=c,this.value=a[c],!0;this.Sd()}return!1}; nb.prototype.td=function(){return this.next()};nb.prototype.first=function(){var a=this.xb;this.oa=a.u;this.Va=0;a=a.j;var b=a.length,c=this.sf;if(null!==c){for(var d=0;d<b;){var e=a[d];if(c(e))return this.key=this.Va=d,this.value=e;d++}return null}return 0<b?(a=a[0],this.key=0,this.value=a):null};nb.prototype.any=function(a){var b=this.xb;b.Ma=null;var c=b.u;this.Va=-1;for(var d=b.j,e=d.length,f=this.sf,g=0;g<e;g++){var h=d[g];if(null===f||f(h)){if(a(h))return!0;b.u!==c&&Aa(b)}}return!1}; nb.prototype.all=function(a){var b=this.xb;b.Ma=null;var c=b.u;this.Va=-1;for(var d=b.j,e=d.length,f=this.sf,g=0;g<e;g++){var h=d[g];if(null===f||f(h)){if(!a(h))return!1;b.u!==c&&Aa(b)}}return!0};nb.prototype.each=function(a){var b=this.xb;b.Ma=null;var c=b.u;this.Va=-1;for(var d=b.j,e=d.length,f=this.sf,g=0;g<e;g++){var h=d[g];if(null===f||f(h))a(h),b.u!==c&&Aa(b)}return this}; nb.prototype.map=function(a){var b=this.xb;b.Ma=null;var c=b.u;this.Va=-1;for(var d=[],e=b.j,f=e.length,g=this.sf,h=0;h<f;h++){var k=e[h];if(null===g||g(k))d.push(a(k)),b.u!==c&&Aa(b)}a=new H;a.j=d;a.sb();return a.iterator};nb.prototype.filter=function(a){var b=this.xb;b.Ma=null;var c=b.u;this.Va=-1;for(var d=[],e=b.j,f=e.length,g=this.sf,h=0;h<f;h++){var k=e[h];if(null===g||g(k))a(k)&&d.push(k),b.u!==c&&Aa(b)}a=new H;a.j=d;a.sb();return a.iterator}; nb.prototype.Sd=function(){this.key=-1;this.value=null;this.oa=-1;this.sf=null;this.xb.Ma=this};nb.prototype.toString=function(){return"ListIterator@"+this.Va+"/"+this.xb.count}; ma.Object.defineProperties(nb.prototype,{iterator:{configurable:!0,get:function(){return this}},predicate:{configurable:!0,get:function(){return this.sf},set:function(a){this.sf=a}},count:{configurable:!0,get:function(){var a=this.sf;if(null!==a){for(var b=0,c=this.xb.j,d=c.length,e=0;e<d;e++)a(c[e])&&b++;return b}return this.xb.j.length}}});nb.prototype.first=nb.prototype.first;nb.prototype.hasNext=nb.prototype.td;nb.prototype.next=nb.prototype.next; nb.prototype.reset=nb.prototype.reset;nb.className="ListIterator";function ob(a){this.xb=a;a.rh=null;this.oa=a.u;this.Va=a.j.length}ob.prototype.reset=function(){var a=this.xb;a.rh=null;this.oa=a.u;this.Va=a.j.length};ob.prototype.next=function(){var a=this.xb;if(a.u!==this.oa){if(0>this.key)return!1;Aa(a)}var b=--this.Va;if(0<=b)return this.key=b,this.value=a.j[b],!0;this.Sd();return!1};ob.prototype.td=function(){return this.next()}; ob.prototype.first=function(){var a=this.xb;this.oa=a.u;var b=a.j;this.Va=a=b.length-1;return 0<=a?(b=b[a],this.key=a,this.value=b):null};ob.prototype.any=function(a){var b=this.xb;b.rh=null;var c=b.u,d=b.j,e=d.length;this.Va=e;for(--e;0<=e;e--){if(a(d[e]))return!0;b.u!==c&&Aa(b)}return!1};ob.prototype.all=function(a){var b=this.xb;b.rh=null;var c=b.u,d=b.j,e=d.length;this.Va=e;for(--e;0<=e;e--){if(!a(d[e]))return!1;b.u!==c&&Aa(b)}return!0}; ob.prototype.each=function(a){var b=this.xb;b.rh=null;var c=b.u,d=b.j,e=d.length;this.Va=e;for(--e;0<=e;e--)a(d[e]),b.u!==c&&Aa(b);return this};ob.prototype.map=function(a){var b=this.xb;b.rh=null;var c=b.u,d=[],e=b.j,f=e.length;this.Va=f;for(--f;0<=f;f--)d.push(a(e[f])),b.u!==c&&Aa(b);a=new H;a.j=d;a.sb();return a.iterator}; ob.prototype.filter=function(a){var b=this.xb;b.rh=null;var c=b.u,d=[],e=b.j,f=e.length;this.Va=f;for(--f;0<=f;f--){var g=e[f];a(g)&&d.push(g);b.u!==c&&Aa(b)}a=new H;a.j=d;a.sb();return a.iterator};ob.prototype.Sd=function(){this.key=-1;this.value=null;this.oa=-1;this.xb.rh=this};ob.prototype.toString=function(){return"ListIteratorBackwards("+this.Va+"/"+this.xb.count+")"}; ma.Object.defineProperties(ob.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.xb.j.length}}});ob.prototype.first=ob.prototype.first;ob.prototype.hasNext=ob.prototype.td;ob.prototype.next=ob.prototype.next;ob.prototype.reset=ob.prototype.reset;ob.className="ListIteratorBackwards"; function H(a){fb(this);this.s=!1;this.j=[];this.u=0;this.rh=this.Ma=null;void 0!==a&&("function"===typeof a||"string"===typeof a?Da():this.addAll(a))}t=H.prototype;t.sb=function(){var a=this.u;a++;999999999<a&&(a=0);this.u=a};t.freeze=function(){this.s=!0;return this};t.ja=function(){this.s=!1;return this};t.toString=function(){return"List()#"+pb(this)};t.add=function(a){if(null===a)return this;this.s&&va(this,a);this.j.push(a);this.sb();return this};t.push=function(a){this.add(a)}; t.addAll=function(a){if(null===a)return this;this.s&&va(this);var b=this.j;if(Ga(a))for(var c=a.length,d=0;d<c;d++)b.push(a[d]);else for(a=a.iterator;a.next();)b.push(a.value);this.sb();return this};t.clear=function(){this.s&&va(this);this.j.length=0;this.sb()};t.contains=function(a){return null===a?!1:-1!==this.j.indexOf(a)};t.has=function(a){return this.contains(a)};t.indexOf=function(a){return null===a?-1:this.j.indexOf(a)}; t.M=function(a){F&&C(a,H,"elt:i");var b=this.j;(0>a||a>=b.length)&&ya(a,"0 <= i < length",H,"elt:i");return b[a]};t.get=function(a){return this.M(a)};t.Tc=function(a,b){F&&C(a,H,"setElt:i");var c=this.j;(0>a||a>=c.length)&&ya(a,"0 <= i < length",H,"setElt:i");this.s&&va(this,a);c[a]=b};t.set=function(a,b){this.Tc(a,b)};t.first=function(){var a=this.j;return 0===a.length?null:a[0]};t.bc=function(){var a=this.j,b=a.length;return 0<b?a[b-1]:null}; t.pop=function(){this.s&&va(this);var a=this.j;return 0<a.length?a.pop():null};H.prototype.any=function(a){for(var b=this.j,c=this.u,d=b.length,e=0;e<d;e++){if(a(b[e]))return!0;this.u!==c&&Aa(this)}return!1};H.prototype.all=function(a){for(var b=this.j,c=this.u,d=b.length,e=0;e<d;e++){if(!a(b[e]))return!1;this.u!==c&&Aa(this)}return!0};H.prototype.each=function(a){for(var b=this.j,c=this.u,d=b.length,e=0;e<d;e++)a(b[e]),this.u!==c&&Aa(this);return this}; H.prototype.map=function(a){for(var b=new H,c=[],d=this.j,e=this.u,f=d.length,g=0;g<f;g++)c.push(a(d[g])),this.u!==e&&Aa(this);b.j=c;b.sb();return b};H.prototype.filter=function(a){for(var b=new H,c=[],d=this.j,e=this.u,f=d.length,g=0;g<f;g++){var h=d[g];a(h)&&c.push(h);this.u!==e&&Aa(this)}b.j=c;b.sb();return b};t=H.prototype;t.Ab=function(a,b){F&&C(a,H,"insertAt:i");0>a&&ya(a,">= 0",H,"insertAt:i");this.s&&va(this,a);var c=this.j;a>=c.length?c.push(b):c.splice(a,0,b);this.sb()}; t.remove=function(a){if(null===a)return!1;this.s&&va(this,a);var b=this.j;a=b.indexOf(a);if(-1===a)return!1;a===b.length-1?b.pop():b.splice(a,1);this.sb();return!0};t.delete=function(a){return this.remove(a)};t.ib=function(a){F&&C(a,H,"removeAt:i");var b=this.j;(0>a||a>=b.length)&&ya(a,"0 <= i < length",H,"removeAt:i");this.s&&va(this,a);a===b.length-1?b.pop():b.splice(a,1);this.sb()}; t.removeRange=function(a,b){F&&(C(a,H,"removeRange:from"),C(b,H,"removeRange:to"));var c=this.j,d=c.length;if(0>a)a=0;else if(a>=d)return this;if(0>b)return this;b>=d&&(b=d-1);if(a>b)return this;this.s&&va(this);for(var e=a,f=b+1;f<d;)c[e++]=c[f++];c.length=d-(b-a+1);this.sb();return this};H.prototype.copy=function(){var a=new H,b=this.j;0<b.length&&(a.j=Array.prototype.slice.call(b));return a};t=H.prototype;t.ta=function(){for(var a=this.j,b=this.count,c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}; t.Vw=function(){for(var a=new I,b=this.j,c=this.count,d=0;d<c;d++)a.add(b[d]);return a};t.sort=function(a){F&&A(a,"function",H,"sort:sortfunc");this.s&&va(this);this.j.sort(a);this.sb();return this}; t.Dj=function(a,b,c){var d=this.j,e=d.length;void 0===b&&(b=0);void 0===c&&(c=e);F&&(A(a,"function",H,"sortRange:sortfunc"),C(b,H,"sortRange:from"),C(c,H,"sortRange:to"));this.s&&va(this);var f=c-b;if(1>=f)return this;(0>b||b>=e-1)&&ya(b,"0 <= from < length",H,"sortRange:from");if(2===f)return c=d[b],e=d[b+1],0<a(c,e)&&(d[b]=e,d[b+1]=c,this.sb()),this;if(0===b)if(c>=e)d.sort(a);else for(b=d.slice(0,c),b.sort(a),a=0;a<c;a++)d[a]=b[a];else if(c>=e)for(c=d.slice(b),c.sort(a),a=b;a<e;a++)d[a]=c[a-b]; else for(e=d.slice(b,c),e.sort(a),a=b;a<c;a++)d[a]=e[a-b];this.sb();return this};t.reverse=function(){this.s&&va(this);this.j.reverse();this.sb();return this}; ma.Object.defineProperties(H.prototype,{_dataArray:{configurable:!0,get:function(){return this.j}},count:{configurable:!0,get:function(){return this.j.length}},size:{configurable:!0,get:function(){return this.j.length}},length:{configurable:!0,get:function(){return this.j.length}},iterator:{configurable:!0,get:function(){if(0>=this.j.length)return lb;var a=this.Ma;return null!==a?(a.reset(),a):new nb(this)}},iteratorBackwards:{configurable:!0, enumerable:!0,get:function(){if(0>=this.j.length)return lb;var a=this.rh;return null!==a?(a.reset(),a):new ob(this)}}});H.prototype.reverse=H.prototype.reverse;H.prototype.sortRange=H.prototype.Dj;H.prototype.sort=H.prototype.sort;H.prototype.toSet=H.prototype.Vw;H.prototype.toArray=H.prototype.ta;H.prototype.removeRange=H.prototype.removeRange;H.prototype.removeAt=H.prototype.ib;H.prototype["delete"]=H.prototype.delete;H.prototype.remove=H.prototype.remove;H.prototype.insertAt=H.prototype.Ab; H.prototype.pop=H.prototype.pop;H.prototype.last=H.prototype.bc;H.prototype.first=H.prototype.first;H.prototype.set=H.prototype.set;H.prototype.setElt=H.prototype.Tc;H.prototype.get=H.prototype.get;H.prototype.elt=H.prototype.M;H.prototype.indexOf=H.prototype.indexOf;H.prototype.has=H.prototype.has;H.prototype.contains=H.prototype.contains;H.prototype.clear=H.prototype.clear;H.prototype.addAll=H.prototype.addAll;H.prototype.push=H.prototype.push;H.prototype.add=H.prototype.add;H.prototype.thaw=H.prototype.ja; H.prototype.freeze=H.prototype.freeze;H.className="List";function tb(a){this.Fg=a;a.Ma=null;this.oa=a.u;this.qa=null}tb.prototype.reset=function(){var a=this.Fg;a.Ma=null;this.oa=a.u;this.qa=null};tb.prototype.next=function(){var a=this.Fg;if(a.u!==this.oa){if(null===this.key)return!1;Aa(a)}var b=this.qa;b=null===b?a.ga:b.va;if(null!==b)return this.qa=b,this.value=b.value,this.key=b.key,!0;this.Sd();return!1};tb.prototype.td=function(){return this.next()}; tb.prototype.first=function(){var a=this.Fg;this.oa=a.u;a=a.ga;if(null!==a){this.qa=a;var b=a.value;this.key=a.key;return this.value=b}return null};tb.prototype.any=function(a){var b=this.Fg;b.Ma=null;var c=b.u;this.qa=null;for(var d=b.ga;null!==d;){if(a(d.value))return!0;b.u!==c&&Aa(b);d=d.va}return!1};tb.prototype.all=function(a){var b=this.Fg;b.Ma=null;var c=b.u;this.qa=null;for(var d=b.ga;null!==d;){if(!a(d.value))return!1;b.u!==c&&Aa(b);d=d.va}return!0}; tb.prototype.each=function(a){var b=this.Fg;b.Ma=null;var c=b.u;this.qa=null;for(var d=b.ga;null!==d;)a(d.value),b.u!==c&&Aa(b),d=d.va;return this};tb.prototype.map=function(a){var b=this.Fg;b.Ma=null;for(var c=new H,d=b.u,e=b.ga;null!==e;)c.add(a(e.value)),b.u!==d&&Aa(b),e=e.va;return c.iterator};tb.prototype.filter=function(a){var b=this.Fg;b.Ma=null;for(var c=new H,d=b.u,e=b.ga;null!==e;){var f=e.value;a(f)&&c.add(f);b.u!==d&&Aa(b);e=e.va}return c.iterator}; tb.prototype.Sd=function(){this.value=this.key=null;this.oa=-1;this.Fg.Ma=this};tb.prototype.toString=function(){return null!==this.qa?"SetIterator@"+this.qa.value:"SetIterator"};ma.Object.defineProperties(tb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.Fg.Lb}}});tb.prototype.first=tb.prototype.first;tb.prototype.hasNext=tb.prototype.td;tb.prototype.next=tb.prototype.next;tb.prototype.reset=tb.prototype.reset; tb.className="SetIterator";function I(a){fb(this);this.s=!1;this.Nb={};this.Lb=0;this.Ma=null;this.u=0;this.lf=this.ga=null;void 0!==a&&("function"===typeof a||"string"===typeof a?Da():this.addAll(a))}t=I.prototype;t.sb=function(){var a=this.u;a++;999999999<a&&(a=0);this.u=a};t.freeze=function(){this.s=!0;return this};t.ja=function(){this.s=!1;return this};t.toString=function(){return"Set()#"+pb(this)}; t.add=function(a){if(null===a)return this;this.s&&va(this,a);var b=a;Fa(a)&&(b=ub(a));void 0===this.Nb[b]&&(this.Lb++,a=new vb(a,a),this.Nb[b]=a,b=this.lf,null===b?this.ga=a:(a.am=b,b.va=a),this.lf=a,this.sb());return this};t.addAll=function(a){if(null===a)return this;this.s&&va(this);if(Ga(a))for(var b=a.length,c=0;c<b;c++)this.add(a[c]);else for(a=a.iterator;a.next();)this.add(a.value);return this}; t.contains=function(a){if(null===a)return!1;var b=a;return Fa(a)&&(b=pb(a),void 0===b)?!1:void 0!==this.Nb[b]};t.has=function(a){return this.contains(a)};t.Qz=function(a){if(null===a)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0};t.Rz=function(a){if(null===a)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1};t.first=function(){var a=this.ga;return null===a?null:a.value}; I.prototype.any=function(a){for(var b=this.u,c=this.ga;null!==c;){if(a(c.value))return!0;this.u!==b&&Aa(this);c=c.va}return!1};I.prototype.all=function(a){for(var b=this.u,c=this.ga;null!==c;){if(!a(c.value))return!1;this.u!==b&&Aa(this);c=c.va}return!0};I.prototype.each=function(a){for(var b=this.u,c=this.ga;null!==c;)a(c.value),this.u!==b&&Aa(this),c=c.va;return this};I.prototype.map=function(a){for(var b=new I,c=this.u,d=this.ga;null!==d;)b.add(a(d.value)),this.u!==c&&Aa(this),d=d.va;return b}; I.prototype.filter=function(a){for(var b=new I,c=this.u,d=this.ga;null!==d;){var e=d.value;a(e)&&b.add(e);this.u!==c&&Aa(this);d=d.va}return b};t=I.prototype;t.remove=function(a){if(null===a)return!1;this.s&&va(this,a);var b=a;if(Fa(a)&&(b=pb(a),void 0===b))return!1;a=this.Nb[b];if(void 0===a)return!1;var c=a.va,d=a.am;null!==c&&(c.am=d);null!==d&&(d.va=c);this.ga===a&&(this.ga=c);this.lf===a&&(this.lf=d);delete this.Nb[b];this.Lb--;this.sb();return!0};t.delete=function(a){return this.remove(a)}; t.jr=function(a){if(null===a)return this;this.s&&va(this);if(Ga(a))for(var b=a.length,c=0;c<b;c++)this.remove(a[c]);else for(a=a.iterator;a.next();)this.remove(a.value);return this};t.kB=function(a){if(null===a||0===this.count)return this;this.s&&va(this);var b=new I;b.addAll(a);a=[];for(var c=this.iterator;c.next();){var d=c.value;b.contains(d)||a.push(d)}this.jr(a);return this};t.clear=function(){this.s&&va(this);this.Nb={};this.Lb=0;null!==this.Ma&&this.Ma.reset();this.lf=this.ga=null;this.sb()}; I.prototype.copy=function(){var a=new I,b=this.Nb,c;for(c in b)a.add(b[c].value);return a};I.prototype.ta=function(){var a=Array(this.Lb),b=this.Nb,c=0,d;for(d in b)a[c]=b[d].value,c++;return a};I.prototype.Uw=function(){var a=new H,b=this.Nb,c;for(c in b)a.add(b[c].value);return a};function fb(a){a.__gohashid=wb++}function ub(a){var b=a.__gohashid;void 0===b&&(b=wb++,a.__gohashid=b);return b}function pb(a){return a.__gohashid} ma.Object.defineProperties(I.prototype,{count:{configurable:!0,get:function(){return this.Lb}},size:{configurable:!0,get:function(){return this.Lb}},iterator:{configurable:!0,get:function(){if(0>=this.Lb)return lb;var a=this.Ma;return null!==a?(a.reset(),a):new tb(this)}}});I.prototype.toList=I.prototype.Uw;I.prototype.toArray=I.prototype.ta;I.prototype.clear=I.prototype.clear;I.prototype.retainAll=I.prototype.kB;I.prototype.removeAll=I.prototype.jr; I.prototype["delete"]=I.prototype.delete;I.prototype.remove=I.prototype.remove;I.prototype.first=I.prototype.first;I.prototype.containsAny=I.prototype.Rz;I.prototype.containsAll=I.prototype.Qz;I.prototype.has=I.prototype.has;I.prototype.contains=I.prototype.contains;I.prototype.addAll=I.prototype.addAll;I.prototype.add=I.prototype.add;I.prototype.thaw=I.prototype.ja;I.prototype.freeze=I.prototype.freeze;var wb=1;I.className="Set";I.uniqueHash=fb;I.hashIdUnique=ub;I.hashId=pb; function xb(a){this.la=a;this.oa=a.u;this.qa=null}xb.prototype.reset=function(){this.oa=this.la.u;this.qa=null};xb.prototype.next=function(){var a=this.la;if(a.u!==this.oa){if(null===this.key)return!1;Aa(a)}var b=this.qa;b=null===b?a.ga:b.va;if(null!==b)return this.qa=b,this.value=this.key=a=b.key,!0;this.Sd();return!1};xb.prototype.td=function(){return this.next()};xb.prototype.first=function(){var a=this.la;this.oa=a.u;a=a.ga;return null!==a?(this.qa=a,this.value=this.key=a=a.key):null}; xb.prototype.any=function(a){var b=this.la,c=b.u;this.qa=null;for(var d=b.ga;null!==d;){if(a(d.key))return!0;b.u!==c&&Aa(b);d=d.va}return!1};xb.prototype.all=function(a){var b=this.la,c=b.u;this.qa=null;for(var d=b.ga;null!==d;){if(!a(d.key))return!1;b.u!==c&&Aa(b);d=d.va}return!0};xb.prototype.each=function(a){var b=this.la,c=b.u;this.qa=null;for(var d=b.ga;null!==d;)a(d.key),b.u!==c&&Aa(b),d=d.va;return this}; xb.prototype.map=function(a){var b=this.la,c=b.u;this.qa=null;for(var d=new H,e=b.ga;null!==e;)d.add(a(e.key)),b.u!==c&&Aa(b),e=e.va;return d.iterator};xb.prototype.filter=function(a){var b=this.la,c=b.u;this.qa=null;for(var d=new H,e=b.ga;null!==e;){var f=e.key;a(f)&&d.add(f);b.u!==c&&Aa(b);e=e.va}return d.iterator};xb.prototype.Sd=function(){this.value=this.key=null;this.oa=-1};xb.prototype.toString=function(){return null!==this.qa?"MapKeySetIterator@"+this.qa.value:"MapKeySetIterator"}; ma.Object.defineProperties(xb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.la.Lb}}});xb.prototype.first=xb.prototype.first;xb.prototype.hasNext=xb.prototype.td;xb.prototype.next=xb.prototype.next;xb.prototype.reset=xb.prototype.reset;xb.className="MapKeySetIterator";function Ab(a){I.call(this);fb(this);this.s=!0;this.la=a}la(Ab,I);t=Ab.prototype;t.freeze=function(){return this};t.ja=function(){return this}; t.toString=function(){return"MapKeySet("+this.la.toString()+")"};t.add=function(){v("This Set is read-only: "+this.toString());return this};t.contains=function(a){return this.la.contains(a)};t.has=function(a){return this.contains(a)};t.remove=function(){v("This Set is read-only: "+this.toString());return!1};t.delete=function(a){return this.remove(a)};t.clear=function(){v("This Set is read-only: "+this.toString())};t.first=function(){var a=this.la.ga;return null!==a?a.key:null}; Ab.prototype.any=function(a){for(var b=this.la.ga;null!==b;){if(a(b.key))return!0;b=b.va}return!1};Ab.prototype.all=function(a){for(var b=this.la.ga;null!==b;){if(!a(b.key))return!1;b=b.va}return!0};Ab.prototype.each=function(a){for(var b=this.la.ga;null!==b;)a(b.key),b=b.va;return this};Ab.prototype.map=function(a){for(var b=new I,c=this.la.ga;null!==c;)b.add(a(c.key)),c=c.va;return b};Ab.prototype.filter=function(a){for(var b=new I,c=this.la.ga;null!==c;){var d=c.key;a(d)&&b.add(d);c=c.va}return b}; Ab.prototype.copy=function(){return new Ab(this.la)};Ab.prototype.Vw=function(){var a=new I,b=this.la.Nb,c;for(c in b)a.add(b[c].key);return a};Ab.prototype.ta=function(){var a=this.la.Nb,b=Array(this.la.Lb),c=0,d;for(d in a)b[c]=a[d].key,c++;return b};Ab.prototype.Uw=function(){var a=new H,b=this.la.Nb,c;for(c in b)a.add(b[c].key);return a}; ma.Object.defineProperties(Ab.prototype,{count:{configurable:!0,get:function(){return this.la.Lb}},size:{configurable:!0,get:function(){return this.la.Lb}},iterator:{configurable:!0,get:function(){return 0>=this.la.Lb?lb:new xb(this.la)}}});Ab.prototype.toList=Ab.prototype.Uw;Ab.prototype.toArray=Ab.prototype.ta;Ab.prototype.toSet=Ab.prototype.Vw;Ab.prototype.first=Ab.prototype.first;Ab.prototype.clear=Ab.prototype.clear;Ab.prototype["delete"]=Ab.prototype.delete; Ab.prototype.remove=Ab.prototype.remove;Ab.prototype.has=Ab.prototype.has;Ab.prototype.contains=Ab.prototype.contains;Ab.prototype.add=Ab.prototype.add;Ab.prototype.thaw=Ab.prototype.ja;Ab.prototype.freeze=Ab.prototype.freeze;Ab.className="MapKeySet";function Bb(a){this.la=a;a.kf=null;this.oa=a.u;this.qa=null}Bb.prototype.reset=function(){var a=this.la;a.kf=null;this.oa=a.u;this.qa=null}; Bb.prototype.next=function(){var a=this.la;if(a.u!==this.oa){if(null===this.key)return!1;Aa(a)}var b=this.qa;b=null===b?a.ga:b.va;if(null!==b)return this.qa=b,this.value=b.value,this.key=b.key,!0;this.Sd();return!1};Bb.prototype.td=function(){return this.next()};Bb.prototype.first=function(){var a=this.la;this.oa=a.u;a=a.ga;if(null!==a){this.qa=a;var b=a.value;this.key=a.key;return this.value=b}return null}; Bb.prototype.any=function(a){var b=this.la;b.kf=null;var c=b.u;this.qa=null;for(var d=b.ga;null!==d;){if(a(d.value))return!0;b.u!==c&&Aa(b);d=d.va}return!1};Bb.prototype.all=function(a){var b=this.la;b.kf=null;var c=b.u;this.qa=null;for(var d=b.ga;null!==d;){if(!a(d.value))return!1;b.u!==c&&Aa(b);d=d.va}return!0};Bb.prototype.each=function(a){var b=this.la;b.kf=null;var c=b.u;this.qa=null;for(var d=b.ga;null!==d;)a(d.value),b.u!==c&&Aa(b),d=d.va;return this}; Bb.prototype.map=function(a){var b=this.la;b.kf=null;var c=b.u;this.qa=null;for(var d=new H,e=b.ga;null!==e;)d.add(a(e.value)),b.u!==c&&Aa(b),e=e.va;return d.iterator};Bb.prototype.filter=function(a){var b=this.la;b.kf=null;var c=b.u;this.qa=null;for(var d=new H,e=b.ga;null!==e;){var f=e.value;a(f)&&d.add(f);b.u!==c&&Aa(b);e=e.va}return d.iterator};Bb.prototype.Sd=function(){this.value=this.key=null;this.oa=-1;this.la.kf=this}; Bb.prototype.toString=function(){return null!==this.qa?"MapValueSetIterator@"+this.qa.value:"MapValueSetIterator"};ma.Object.defineProperties(Bb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.la.Lb}}});Bb.prototype.first=Bb.prototype.first;Bb.prototype.hasNext=Bb.prototype.td;Bb.prototype.next=Bb.prototype.next;Bb.prototype.reset=Bb.prototype.reset;Bb.className="MapValueSetIterator"; function vb(a,b){this.key=a;this.value=b;this.am=this.va=null}vb.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"};vb.className="KeyValuePair";function Cb(a){this.la=a;a.Ma=null;this.oa=a.u;this.qa=null}Cb.prototype.reset=function(){var a=this.la;a.Ma=null;this.oa=a.u;this.qa=null}; Cb.prototype.next=function(){var a=this.la;if(a.u!==this.oa){if(null===this.key)return!1;Aa(a)}var b=this.qa;b=null===b?a.ga:b.va;if(null!==b)return this.qa=b,this.key=b.key,this.value=b.value,!0;this.Sd();return!1};Cb.prototype.td=function(){return this.next()};Cb.prototype.first=function(){var a=this.la;this.oa=a.u;a=a.ga;return null!==a?(this.qa=a,this.key=a.key,this.value=a.value,a):null}; Cb.prototype.any=function(a){var b=this.la;b.Ma=null;var c=b.u;this.qa=null;for(var d=b.ga;null!==d;){if(a(d))return!0;b.u!==c&&Aa(b);d=d.va}return!1};Cb.prototype.all=function(a){var b=this.la;b.Ma=null;var c=b.u;this.qa=null;for(var d=b.ga;null!==d;){if(!a(d))return!1;b.u!==c&&Aa(b);d=d.va}return!0};Cb.prototype.each=function(a){var b=this.la;b.Ma=null;var c=b.u;this.qa=null;for(var d=b.ga;null!==d;)a(d),b.u!==c&&Aa(b),d=d.va;return this}; Cb.prototype.map=function(a){var b=this.la;b.Ma=null;var c=b.u;this.qa=null;for(var d=new H,e=b.ga;null!==e;)d.add(a(e)),b.u!==c&&Aa(b),e=e.va;return d.iterator};Cb.prototype.filter=function(a){var b=this.la;b.Ma=null;var c=b.u;this.qa=null;for(var d=new H,e=b.ga;null!==e;)a(e)&&d.add(e),b.u!==c&&Aa(b),e=e.va;return d.iterator};Cb.prototype.Sd=function(){this.value=this.key=null;this.oa=-1;this.la.Ma=this};Cb.prototype.toString=function(){return null!==this.qa?"MapIterator@"+this.qa:"MapIterator"}; ma.Object.defineProperties(Cb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.la.Lb}}});Cb.prototype.first=Cb.prototype.first;Cb.prototype.hasNext=Cb.prototype.td;Cb.prototype.next=Cb.prototype.next;Cb.prototype.reset=Cb.prototype.reset;Cb.className="MapIterator"; function Db(a){fb(this);this.s=!1;this.Nb={};this.Lb=0;this.kf=this.Ma=null;this.u=0;this.lf=this.ga=null;void 0!==a&&("function"===typeof a||"string"===typeof a?Da():this.addAll(a))}t=Db.prototype;t.sb=function(){var a=this.u;a++;999999999<a&&(a=0);this.u=a};t.freeze=function(){this.s=!0;return this};t.ja=function(){this.s=!1;return this};t.toString=function(){return"Map()#"+pb(this)}; t.add=function(a,b){this.s&&va(this,a);var c=a;Fa(a)&&(c=ub(a));var d=this.Nb[c];void 0===d?(this.Lb++,a=new vb(a,b),this.Nb[c]=a,c=this.lf,null===c?this.ga=a:(a.am=c,c.va=a),this.lf=a,this.sb()):d.value=b;return this};t.set=function(a,b){return this.add(a,b)}; t.addAll=function(a){if(null===a)return this;if(Ga(a))for(var b=a.length,c=0;c<b;c++){var d=a[c];this.add(d.key,d.value)}else if(a instanceof Db)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)b=a.value,this.add(b.key,b.value);return this};t.first=function(){return this.ga};Db.prototype.any=function(a){for(var b=this.u,c=this.ga;null!==c;){if(a(c))return!0;this.u!==b&&Aa(this);c=c.va}return!1}; Db.prototype.all=function(a){for(var b=this.u,c=this.ga;null!==c;){if(!a(c))return!1;this.u!==b&&Aa(this);c=c.va}return!0};Db.prototype.each=function(a){for(var b=this.u,c=this.ga;null!==c;)a(c),this.u!==b&&Aa(this),c=c.va;return this};Db.prototype.map=function(a){for(var b=new Db,c=this.u,d=this.ga;null!==d;)b.add(d.key,a(d)),this.u!==c&&Aa(this),d=d.va;return b};Db.prototype.filter=function(a){for(var b=new Db,c=this.u,d=this.ga;null!==d;)a(d)&&b.add(d.key,d.value),this.u!==c&&Aa(this),d=d.va;return b}; t=Db.prototype;t.contains=function(a){var b=a;return Fa(a)&&(b=pb(a),void 0===b)?!1:void 0!==this.Nb[b]};t.has=function(a){return this.contains(a)};t.K=function(a){var b=a;if(Fa(a)&&(b=pb(a),void 0===b))return null;a=this.Nb[b];return void 0===a?null:a.value};t.get=function(a){return this.K(a)}; t.remove=function(a){if(null===a)return!1;this.s&&va(this,a);var b=a;if(Fa(a)&&(b=pb(a),void 0===b))return!1;a=this.Nb[b];if(void 0===a)return!1;var c=a.va,d=a.am;null!==c&&(c.am=d);null!==d&&(d.va=c);this.ga===a&&(this.ga=c);this.lf===a&&(this.lf=d);delete this.Nb[b];this.Lb--;this.sb();return!0};t.delete=function(a){return this.remove(a)};t.clear=function(){this.s&&va(this);this.Nb={};this.Lb=0;null!==this.Ma&&this.Ma.reset();null!==this.kf&&this.kf.reset();this.lf=this.ga=null;this.sb()}; Db.prototype.copy=function(){var a=new Db,b=this.Nb,c;for(c in b){var d=b[c];a.add(d.key,d.value)}return a};Db.prototype.ta=function(){var a=this.Nb,b=Array(this.Lb),c=0,d;for(d in a){var e=a[d];b[c]=new vb(e.key,e.value);c++}return b};Db.prototype.Vf=function(){return new Ab(this)}; ma.Object.defineProperties(Db.prototype,{count:{configurable:!0,get:function(){return this.Lb}},size:{configurable:!0,get:function(){return this.Lb}},iterator:{configurable:!0,get:function(){if(0>=this.count)return lb;var a=this.Ma;return null!==a?(a.reset(),a):new Cb(this)}},iteratorKeys:{configurable:!0,get:function(){return 0>=this.count?lb:new xb(this)}},iteratorValues:{configurable:!0,get:function(){if(0>=this.count)return lb; var a=this.kf;return null!==a?(a.reset(),a):new Bb(this)}}});Db.prototype.toKeySet=Db.prototype.Vf;Db.prototype.toArray=Db.prototype.ta;Db.prototype.clear=Db.prototype.clear;Db.prototype["delete"]=Db.prototype.delete;Db.prototype.remove=Db.prototype.remove;Db.prototype.get=Db.prototype.get;Db.prototype.getValue=Db.prototype.K;Db.prototype.has=Db.prototype.has;Db.prototype.contains=Db.prototype.contains;Db.prototype.first=Db.prototype.first;Db.prototype.addAll=Db.prototype.addAll; Db.prototype.set=Db.prototype.set;Db.prototype.add=Db.prototype.add;Db.prototype.thaw=Db.prototype.ja;Db.prototype.freeze=Db.prototype.freeze;Db.className="Map";function J(a,b){void 0===a?this.H=this.G=0:"number"===typeof a&&"number"===typeof b?(this.G=a,this.H=b):v("Invalid arguments to Point constructor: "+a+", "+b);this.s=!1}J.prototype.assign=function(a){this.G=a.G;this.H=a.H;return this};J.prototype.h=function(a,b){this.G=a;this.H=b;return this}; J.prototype.Ug=function(a,b){F&&(A(a,"number",J,"setTo:x"),A(b,"number",J,"setTo:y"),this.ha());this.G=a;this.H=b;return this};J.prototype.set=function(a){F&&(x(a,J,J,"set:p"),this.ha());this.G=a.G;this.H=a.H;return this};J.prototype.copy=function(){var a=new J;a.G=this.G;a.H=this.H;return a};t=J.prototype;t.ia=function(){this.s=!0;Object.freeze(this);return this};t.J=function(){return this.s||Object.isFrozen(this)?this:this.copy().freeze()};t.freeze=function(){this.s=!0;return this}; t.ja=function(){Object.isFrozen(this)&&v("cannot thaw constant: "+this);this.s=!1;return this};t.ha=function(a){if(F&&this.s){var b="The Point is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);v(b)}};function Eb(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));return new J(c,e)}return new J} function Fb(a){F&&x(a,J);return a.x.toString()+" "+a.y.toString()}t.toString=function(){return"Point("+this.x+","+this.y+")"};t.A=function(a){return a instanceof J?this.G===a.x&&this.H===a.y:!1};t.oj=function(a,b){return this.G===a&&this.H===b};t.Ta=function(a){return K.C(this.G,a.x)&&K.C(this.H,a.y)};t.add=function(a){F&&(x(a,J,J,"add:p"),this.ha());this.G+=a.x;this.H+=a.y;return this};t.ke=function(a){F&&(x(a,J,J,"subtract:p"),this.ha());this.G-=a.x;this.H-=a.y;return this}; t.offset=function(a,b){F&&(C(a,J,"offset:dx"),C(b,J,"offset:dy"),this.ha());this.G+=a;this.H+=b;return this};J.prototype.rotate=function(a){F&&(C(a,J,"rotate:angle"),this.ha());if(0===a)return this;var b=this.G,c=this.H;if(0===b&&0===c)return this;360<=a?a-=360:0>a&&(a+=360);if(90===a){a=0;var d=1}else 180===a?(a=-1,d=0):270===a?(a=0,d=-1):(d=a*Math.PI/180,a=Math.cos(d),d=Math.sin(d));this.G=a*b-d*c;this.H=d*b+a*c;return this};t=J.prototype; t.scale=function(a,b){F&&(C(a,J,"scale:sx"),C(b,J,"scale:sy"),this.ha());this.G*=a;this.H*=b;return this};t.Se=function(a){F&&x(a,J,J,"distanceSquaredPoint:p");var b=a.x-this.G;a=a.y-this.H;return b*b+a*a};t.sd=function(a,b){F&&(C(a,J,"distanceSquared:px"),C(b,J,"distanceSquared:py"));a-=this.G;b-=this.H;return a*a+b*b};t.normalize=function(){F&&this.ha();var a=this.G,b=this.H,c=Math.sqrt(a*a+b*b);0<c&&(this.G=a/c,this.H=b/c);return this}; t.Xa=function(a){F&&x(a,J,J,"directionPoint:p");return Gb(a.x-this.G,a.y-this.H)};t.direction=function(a,b){F&&(C(a,J,"direction:px"),C(b,J,"direction:py"));return Gb(a-this.G,b-this.H)};function Gb(a,b){if(0===a)return 0<b?90:0>b?270:0;if(0===b)return 0<a?0:180;if(isNaN(a)||isNaN(b))return 0;var c=180*Math.atan(Math.abs(b/a))/Math.PI;0>a?c=0>b?c+180:180-c:0>b&&(c=360-c);return c} t.dB=function(a,b,c,d){F&&(C(a,J,"projectOntoLineSegment:px"),C(b,J,"projectOntoLineSegment:py"),C(c,J,"projectOntoLineSegment:qx"),C(d,J,"projectOntoLineSegment:qy"));K.Zh(a,b,c,d,this.G,this.H,this);return this};t.eB=function(a,b){F&&(x(a,J,J,"projectOntoLineSegmentPoint:p"),x(b,J,J,"projectOntoLineSegmentPoint:q"));K.Zh(a.x,a.y,b.x,b.y,this.G,this.H,this);return this}; t.pB=function(a,b,c,d){F&&(C(a,J,"snapToGrid:originx"),C(b,J,"snapToGrid:originy"),C(c,J,"snapToGrid:cellwidth"),C(d,J,"snapToGrid:cellheight"));K.Nq(this.G,this.H,a,b,c,d,this);return this};t.qB=function(a,b){F&&(x(a,J,J,"snapToGridPoint:p"),x(b,Hb,J,"snapToGridPoint:q"));K.Nq(this.G,this.H,a.x,a.y,b.width,b.height,this);return this};t.Cj=function(a,b){F&&(x(a,L,J,"setRectSpot:r"),x(b,M,J,"setRectSpot:spot"),this.ha());this.G=a.x+b.x*a.width+b.offsetX;this.H=a.y+b.y*a.height+b.offsetY;return this}; t.Uk=function(a,b,c,d,e){F&&(C(a,J,"setSpot:x"),C(b,J,"setSpot:y"),C(c,J,"setSpot:w"),C(d,J,"setSpot:h"),(0>c||0>d)&&v("Point.setSpot:Width and height cannot be negative"),x(e,M,J,"setSpot:spot"),this.ha());this.G=a+e.x*c+e.offsetX;this.H=b+e.y*d+e.offsetY;return this};t.transform=function(a){F&&x(a,Ib,J,"transform:t");a.ya(this);return this};function Jb(a,b){F&&x(b,Ib,J,"transformInverted:t");b.Kd(a);return a} function Kb(a,b,c,d,e,f){F&&(C(a,J,"distanceLineSegmentSquared:px"),C(b,J,"distanceLineSegmentSquared:py"),C(c,J,"distanceLineSegmentSquared:ax"),C(d,J,"distanceLineSegmentSquared:ay"),C(e,J,"distanceLineSegmentSquared:bx"),C(f,J,"distanceLineSegmentSquared:by"));var g=e-c,h=f-d,k=g*g+h*h;c-=a;d-=b;var l=-c*g-d*h;if(0>=l||l>=k)return g=e-a,h=f-b,Math.min(c*c+d*d,g*g+h*h);a=g*d-h*c;return a*a/k} function Lb(a,b,c,d){F&&(C(a,J,"distanceSquared:px"),C(b,J,"distanceSquared:py"),C(c,J,"distanceSquared:qx"),C(d,J,"distanceSquared:qy"));a=c-a;b=d-b;return a*a+b*b}function Mb(a,b,c,d){F&&(C(a,J,"direction:px"),C(b,J,"direction:py"),C(c,J,"direction:qx"),C(d,J,"direction:qy"));a=c-a;b=d-b;if(0===a)return 0<b?90:0>b?270:0;if(0===b)return 0<a?0:180;if(isNaN(a)||isNaN(b))return 0;d=180*Math.atan(Math.abs(b/a))/Math.PI;0>a?d=0>b?d+180:180-d:0>b&&(d=360-d);return d} t.o=function(){return isFinite(this.x)&&isFinite(this.y)};J.alloc=function(){var a=Nb.pop();return void 0===a?new J:a};J.allocAt=function(a,b){var c=Nb.pop();if(void 0===c)return new J(a,b);c.x=a;c.y=b;return c};J.free=function(a){Nb.push(a)}; ma.Object.defineProperties(J.prototype,{x:{configurable:!0,get:function(){return this.G},set:function(a){F&&(A(a,"number",J,"x"),this.ha(a));this.G=a}},y:{configurable:!0,get:function(){return this.H},set:function(a){F&&(A(a,"number",J,"y"),this.ha(a));this.H=a}}});J.prototype.isReal=J.prototype.o;J.prototype.setSpot=J.prototype.Uk;J.prototype.setRectSpot=J.prototype.Cj;J.prototype.snapToGridPoint=J.prototype.qB;J.prototype.snapToGrid=J.prototype.pB; J.prototype.projectOntoLineSegmentPoint=J.prototype.eB;J.prototype.projectOntoLineSegment=J.prototype.dB;J.intersectingLineSegments=function(a,b,c,d,e,f,g,h){F&&(C(a,L,"intersectingLineSegments:a1x"),C(b,L,"intersectingLineSegments:a1y"),C(c,L,"intersectingLineSegments:a2x"),C(d,L,"intersectingLineSegments:a2y"),C(e,L,"intersectingLineSegments:b1x"),C(f,L,"intersectingLineSegments:b1y"),C(g,L,"intersectingLineSegments:b2x"),C(h,L,"intersectingLineSegments:b2y"));return K.Vq(a,b,c,d,e,f,g,h)}; J.prototype.direction=J.prototype.direction;J.prototype.directionPoint=J.prototype.Xa;J.prototype.normalize=J.prototype.normalize;J.prototype.distanceSquared=J.prototype.sd;J.prototype.distanceSquaredPoint=J.prototype.Se;J.prototype.scale=J.prototype.scale;J.prototype.rotate=J.prototype.rotate;J.prototype.offset=J.prototype.offset;J.prototype.subtract=J.prototype.ke;J.prototype.add=J.prototype.add;J.prototype.equalsApprox=J.prototype.Ta;J.prototype.equalTo=J.prototype.oj;J.prototype.equals=J.prototype.A; J.prototype.set=J.prototype.set;J.prototype.setTo=J.prototype.Ug;var Ob=null,Sb=null,Tb=null,Ub=null,Vb=null,Nb=[];J.className="Point";J.parse=Eb;J.stringify=Fb;J.distanceLineSegmentSquared=Kb;J.distanceSquared=Lb;J.direction=Mb;J.Origin=Ob=(new J(0,0)).ia();J.InfiniteTopLeft=Sb=(new J(-Infinity,-Infinity)).ia();J.InfiniteBottomRight=Tb=(new J(Infinity,Infinity)).ia();J.SixPoint=Ub=(new J(6,6)).ia();J.NoPoint=Vb=(new J(NaN,NaN)).ia();J.parse=Eb;J.stringify=Fb;J.distanceLineSegmentSquared=Kb; J.distanceSquared=Lb;J.direction=Mb;function Hb(a,b){void 0===a?this.da=this.ea=0:"number"===typeof a&&(0<=a||isNaN(a))&&"number"===typeof b&&(0<=b||isNaN(b))?(this.ea=a,this.da=b):v("Invalid arguments to Size constructor: "+a+", "+b);this.s=!1}var Wb,Xb,Yb,$b,ac,bc,cc;Hb.prototype.assign=function(a){this.ea=a.ea;this.da=a.da;return this};Hb.prototype.h=function(a,b){this.ea=a;this.da=b;return this}; Hb.prototype.Ug=function(a,b){F&&(A(a,"number",Hb,"setTo:w"),A(b,"number",Hb,"setTo:h"),0>a&&ya(a,">= 0",Hb,"setTo:w"),0>b&&ya(b,">= 0",Hb,"setTo:h"),this.ha());this.ea=a;this.da=b;return this};Hb.prototype.set=function(a){F&&(x(a,Hb,Hb,"set:s"),this.ha());this.ea=a.ea;this.da=a.da;return this};Hb.prototype.copy=function(){var a=new Hb;a.ea=this.ea;a.da=this.da;return a};t=Hb.prototype;t.ia=function(){this.s=!0;Object.freeze(this);return this}; t.J=function(){return this.s||Object.isFrozen(this)?this:this.copy().freeze()};t.freeze=function(){this.s=!0;return this};t.ja=function(){Object.isFrozen(this)&&v("cannot thaw constant: "+this);this.s=!1;return this};t.ha=function(a){if(F&&this.s){var b="The Size is frozen, so its properties cannot be set: "+this.toString();void 0!==a&&(b+=" to value: "+a);v(b)}}; function dc(a){if("string"===typeof a){a=a.split(" ");for(var b=0,c=0;""===a[b];)b++;var d=a[b++];d&&(c=parseFloat(d));for(var e=0;""===a[b];)b++;(d=a[b++])&&(e=parseFloat(d));return new Hb(c,e)}return new Hb}function ec(a){F&&x(a,Hb);return a.width.toString()+" "+a.height.toString()}t.toString=function(){return"Size("+this.width+","+this.height+")"};t.A=function(a){return a instanceof Hb?this.ea===a.width&&this.da===a.height:!1};t.oj=function(a,b){return this.ea===a&&this.da===b}; t.Ta=function(a){return K.C(this.ea,a.width)&&K.C(this.da,a.height)};t.o=function(){return isFinite(this.width)&&isFinite(this.height)};Hb.alloc=function(){var a=fc.pop();return void 0===a?new Hb:a};Hb.free=function(a){fc.push(a)}; ma.Object.defineProperties(Hb.prototype,{width:{configurable:!0,get:function(){return this.ea},set:function(a){F&&(A(a,"number",Hb,"width"),this.ha(a));0>a&&ya(a,">= 0",Hb,"width");this.ea=a}},height:{configurable:!0,get:function(){return this.da},set:function(a){F&&(A(a,"number",Hb,"height"),this.ha(a));0>a&&ya(a,">= 0",Hb,"height");this.da=a}}});Hb.prototype.isReal=Hb.prototype.o;Hb.prototype.equalsApprox=Hb.prototype.Ta;Hb.prototype.equalTo=Hb.prototype.oj; Hb.prototype.equals=Hb.prototype.A;Hb.prototype.set=Hb.prototype.set;Hb.prototype.setTo=Hb.prototype.Ug;var fc=[];Hb.className="Size";Hb.parse=dc;Hb.stringify=ec;Hb.ZeroSize=Wb=(new Hb(0,0)).ia();Hb.OneSize=Xb=(new Hb(1,1)).ia();Hb.SixSize=Yb=(new Hb(6,6)).ia();Hb.EightSize=$b=(new Hb(8,8)).ia();Hb.TenSize=ac=(new Hb(10,10)).ia();Hb.InfiniteSize=bc=(new Hb(Infinity,Infinity)).ia();Hb.NoSize=cc=(new Hb(NaN,NaN)).ia();Hb.parse=dc;Hb.stringify=ec; function L(a,b,c,d){void 0===a?this.da=this.ea=this.H=this.G=0:a instanceof J?(c=a.x,a=a.y,b instanceof J?(d=b.x,b=b.y,this.G=Math.min(c,d),this.H=Math.min(a,b),this.ea=Math.abs(c-d),this.da=Math.abs(a-b)):b instanceof Hb?(this.G=c,this.H=a,this.ea=b.width,this.da=b.height):v("Incorrect arguments supplied to Rect constructor")):"number"===typeof a&&"number"===typeof b&&"number"===typeof c&&(0<=c||isNaN(c))&&"number"===typeof d&&(0<=d||isNaN(d))?(this.G=a,this.H=b,this.ea=c,this.da=d):v("Invalid arguments to Rect constructor: "+ a+", "+b+", "+c+", "+d);this.s=!1}t=L.prototype;t.assign=function(a){this.G=a.G;this.H=a.H;this.ea=a.ea;this.da=a.da;return this};t.h=function(a,b,c,d){this.G=a;this.H=b;this.ea=c;this.da=d;return this};function gc(a,b,c){a.ea=b;a.da=c}t.Ug=function(a,b,c,d){F&&(A(a,"number",L,"setTo:x"),A(b,"number",L,"setTo:y"),A(c,"number",L,"setTo:w"),A(d,"number",L,"setTo:h"),0>c&&ya(c,">= 0",L,"setTo:w"),0>d&&ya(d,">= 0",L,"setTo:h"),this.ha());this.G=a;this.H=b;this.ea=c;this.da=d;return this}; t.set=function(a){F&&(x(a,L,L,"set:r"),this.ha());this.G=a.G;this.H=a.H;this.ea=a.ea;this.da=a.da;return this};t.vd=function(a){F&&(x(a,J,L,"setPoint:p"),this.ha());this.G=a.x;this.H=a.y;return this};t.oB=function(a){F&&(x(a,Hb,L,"setSize:s"),this.ha());this.ea=a.width;this.da=a.height;return this};L.prototype.copy=function(){var a=new L;a.G=this.G;a.H=this.H;a.ea=this.ea;a.da=this.