UNPKG

gojs

Version:

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

121 lines 975 kB
/* * GoJS v2.1.18 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-2020 by Northwoods Software Corporation. All Rights Reserved. * THIS SOFTWARE IS LICENSED. THE LICENSE AGREEMENT IS AT: https://gojs.net/2.1.18/license.html. * DO NOT MODIFY THIS FILE. DO NOT DISTRIBUTE A MODIFIED COPY OF THE CONTENTS OF THIS FILE. */ (function() { var t;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function ba(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(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.lB=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&&(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 w(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 Ea(){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.bB;if(c&&c[b])return!0;a=Object.getPrototypeOf(a)}return!1} function Sa(a,b,c){Object.defineProperty(Ua.prototype,a,{get:b,set:c})}function Wa(){var a=Xa;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="32ab5ff3b26f42dc0ed90f21442913b5";ra.adym="gojs.net";ra.vfo="28e647fdb26e";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.ix=[]}ib.prototype.toString=function(){return this.ix.join("")};ib.prototype.add=function(a){""!==a&&this.ix.push(a)};ib.className="StringBuilder";function jb(){}jb.className="PropertyCollection"; var F={pm:!1,Zx:!1,Dz:!1,eB:!1,iB:!1,my:!1,cB:null,trace:function(a){qa.console&&qa.console.log(a)},dB: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.Lm=Object.getOwnPropertyNames(d.prototype);for(var e={vk:0};e.vk<b.Lm.length;e={vk:e.vk},e.vk++){var f=Object.getOwnPropertyDescriptor(d.prototype,b.Lm[e.vk]);void 0!==f.get&&void 0===f.set&&Object.defineProperty(d.prototype, b.Lm[e.vk],{set:function(a,b){return function(){throw Error("Property "+a.Lm[b.vk]+" of "+a.x+" is read-only.");}}(b,e)})}}}b={Lm:b.Lm,x:b.x}}}};function kb(){}kb.prototype.reset=function(){};kb.prototype.next=function(){return!1};kb.prototype.ld=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.Kd=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.ld;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.ld=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.Kd=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.ld;mb.prototype.next=mb.prototype.next; mb.prototype.reset=mb.prototype.reset;mb.className="SingletonIterator";function nb(a){this.ub=a;this.mf=null;a.Ka=null;this.oa=a.u;this.Ua=-1}nb.prototype.reset=function(){var a=this.ub;a.Ka=null;this.oa=a.u;this.Ua=-1};nb.prototype.next=function(){var a=this.ub;if(a.u!==this.oa){if(0>this.key)return!1;Aa(a)}a=a.j;var b=a.length,c=++this.Ua,d=this.mf;if(null!==d)for(;c<b;){var e=a[c];if(d(e))return this.key=this.Ua=c,this.value=e,!0;c++}else{if(c<b)return this.key=c,this.value=a[c],!0;this.Kd()}return!1}; nb.prototype.ld=function(){return this.next()};nb.prototype.first=function(){var a=this.ub;this.oa=a.u;this.Ua=0;a=a.j;var b=a.length,c=this.mf;if(null!==c){for(var d=0;d<b;){var e=a[d];if(c(e))return this.key=this.Ua=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.ub;b.Ka=null;var c=b.u;this.Ua=-1;for(var d=b.j,e=d.length,f=this.mf,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.ub;b.Ka=null;var c=b.u;this.Ua=-1;for(var d=b.j,e=d.length,f=this.mf,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.ub;b.Ka=null;var c=b.u;this.Ua=-1;for(var d=b.j,e=d.length,f=this.mf,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.ub;b.Ka=null;var c=b.u;this.Ua=-1;for(var d=[],e=b.j,f=e.length,g=this.mf,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.qb();return a.iterator};nb.prototype.filter=function(a){var b=this.ub;b.Ka=null;var c=b.u;this.Ua=-1;for(var d=[],e=b.j,f=e.length,g=this.mf,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.qb();return a.iterator}; nb.prototype.Kd=function(){this.key=-1;this.value=null;this.oa=-1;this.mf=null;this.ub.Ka=this};nb.prototype.toString=function(){return"ListIterator@"+this.Ua+"/"+this.ub.count}; ma.Object.defineProperties(nb.prototype,{iterator:{configurable:!0,get:function(){return this}},predicate:{configurable:!0,get:function(){return this.mf},set:function(a){this.mf=a}},count:{configurable:!0,get:function(){var a=this.mf;if(null!==a){for(var b=0,c=this.ub.j,d=c.length,e=0;e<d;e++)a(c[e])&&b++;return b}return this.ub.j.length}}});nb.prototype.first=nb.prototype.first;nb.prototype.hasNext=nb.prototype.ld;nb.prototype.next=nb.prototype.next; nb.prototype.reset=nb.prototype.reset;nb.className="ListIterator";function ob(a){this.ub=a;a.lh=null;this.oa=a.u;this.Ua=a.j.length}ob.prototype.reset=function(){var a=this.ub;a.lh=null;this.oa=a.u;this.Ua=a.j.length};ob.prototype.next=function(){var a=this.ub;if(a.u!==this.oa){if(0>this.key)return!1;Aa(a)}var b=--this.Ua;if(0<=b)return this.key=b,this.value=a.j[b],!0;this.Kd();return!1};ob.prototype.ld=function(){return this.next()}; ob.prototype.first=function(){var a=this.ub;this.oa=a.u;var b=a.j;this.Ua=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.ub;b.lh=null;var c=b.u,d=b.j,e=d.length;this.Ua=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.ub;b.lh=null;var c=b.u,d=b.j,e=d.length;this.Ua=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.ub;b.lh=null;var c=b.u,d=b.j,e=d.length;this.Ua=e;for(--e;0<=e;e--)a(d[e]),b.u!==c&&Aa(b);return this};ob.prototype.map=function(a){var b=this.ub;b.lh=null;var c=b.u,d=[],e=b.j,f=e.length;this.Ua=f;for(--f;0<=f;f--)d.push(a(e[f])),b.u!==c&&Aa(b);a=new H;a.j=d;a.qb();return a.iterator}; ob.prototype.filter=function(a){var b=this.ub;b.lh=null;var c=b.u,d=[],e=b.j,f=e.length;this.Ua=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.qb();return a.iterator};ob.prototype.Kd=function(){this.key=-1;this.value=null;this.oa=-1;this.ub.lh=this};ob.prototype.toString=function(){return"ListIteratorBackwards("+this.Ua+"/"+this.ub.count+")"}; ma.Object.defineProperties(ob.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.ub.j.length}}});ob.prototype.first=ob.prototype.first;ob.prototype.hasNext=ob.prototype.ld;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.lh=this.Ka=null;void 0!==a&&("function"===typeof a||"string"===typeof a?Ea():this.addAll(a))}t=H.prototype;t.qb=function(){var a=this.u;a++;999999999<a&&(a=0);this.u=a};t.freeze=function(){this.s=!0;return this};t.ka=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.qb();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.qb();return this};t.clear=function(){this.s&&va(this);this.j.length=0;this.qb()};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.O=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.O(a)};t.od=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.od(a,b)};t.first=function(){var a=this.j;return 0===a.length?null:a[0]};t.cc=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.qb();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.qb();return b};t=H.prototype;t.yb=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.qb()}; 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.qb();return!0};t.delete=function(a){return this.remove(a)};t.hb=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.qb()}; 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.qb();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.ua=function(){for(var a=this.j,b=this.count,c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}; t.Fw=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.qb();return this}; t.qj=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.qb()),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.qb();return this};t.reverse=function(){this.s&&va(this);this.j.reverse();this.qb();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.Ka;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.lh;return null!==a?(a.reset(),a):new ob(this)}}});H.prototype.reverse=H.prototype.reverse;H.prototype.sortRange=H.prototype.qj;H.prototype.sort=H.prototype.sort;H.prototype.toSet=H.prototype.Fw;H.prototype.toArray=H.prototype.ua;H.prototype.removeRange=H.prototype.removeRange;H.prototype.removeAt=H.prototype.hb;H.prototype["delete"]=H.prototype.delete;H.prototype.remove=H.prototype.remove;H.prototype.insertAt=H.prototype.yb; H.prototype.pop=H.prototype.pop;H.prototype.last=H.prototype.cc;H.prototype.first=H.prototype.first;H.prototype.set=H.prototype.set;H.prototype.setElt=H.prototype.od;H.prototype.get=H.prototype.get;H.prototype.elt=H.prototype.O;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.ka; H.prototype.freeze=H.prototype.freeze;H.className="List";function tb(a){this.Ag=a;a.Ka=null;this.oa=a.u;this.ra=null}tb.prototype.reset=function(){var a=this.Ag;a.Ka=null;this.oa=a.u;this.ra=null};tb.prototype.next=function(){var a=this.Ag;if(a.u!==this.oa){if(null===this.key)return!1;Aa(a)}var b=this.ra;b=null===b?a.ga:b.va;if(null!==b)return this.ra=b,this.value=b.value,this.key=b.key,!0;this.Kd();return!1};tb.prototype.ld=function(){return this.next()}; tb.prototype.first=function(){var a=this.Ag;this.oa=a.u;a=a.ga;if(null!==a){this.ra=a;var b=a.value;this.key=a.key;return this.value=b}return null};tb.prototype.any=function(a){var b=this.Ag;b.Ka=null;var c=b.u;this.ra=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.Ag;b.Ka=null;var c=b.u;this.ra=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.Ag;b.Ka=null;var c=b.u;this.ra=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.Ag;b.Ka=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.Ag;b.Ka=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.Kd=function(){this.value=this.key=null;this.oa=-1;this.Ag.Ka=this};tb.prototype.toString=function(){return null!==this.ra?"SetIterator@"+this.ra.value:"SetIterator"};ma.Object.defineProperties(tb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.Ag.Jb}}});tb.prototype.first=tb.prototype.first;tb.prototype.hasNext=tb.prototype.ld;tb.prototype.next=tb.prototype.next;tb.prototype.reset=tb.prototype.reset; tb.className="SetIterator";function I(a){fb(this);this.s=!1;this.Lb={};this.Jb=0;this.Ka=null;this.u=0;this.ff=this.ga=null;void 0!==a&&("function"===typeof a||"string"===typeof a?Ea():this.addAll(a))}t=I.prototype;t.qb=function(){var a=this.u;a++;999999999<a&&(a=0);this.u=a};t.freeze=function(){this.s=!0;return this};t.ka=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.Lb[b]&&(this.Jb++,a=new vb(a,a),this.Lb[b]=a,b=this.ff,null===b?this.ga=a:(a.Ql=b,b.va=a),this.ff=a,this.qb());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.Lb[b]};t.has=function(a){return this.contains(a)};t.oz=function(a){if(null===a)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0};t.pz=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.Lb[b];if(void 0===a)return!1;var c=a.va,d=a.Ql;null!==c&&(c.Ql=d);null!==d&&(d.va=c);this.ga===a&&(this.ga=c);this.ff===a&&(this.ff=d);delete this.Lb[b];this.Jb--;this.qb();return!0};t.delete=function(a){return this.remove(a)}; t.Wq=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.NA=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.Wq(a);return this};t.clear=function(){this.s&&va(this);this.Lb={};this.Jb=0;null!==this.Ka&&this.Ka.reset();this.ff=this.ga=null;this.qb()}; I.prototype.copy=function(){var a=new I,b=this.Lb,c;for(c in b)a.add(b[c].value);return a};I.prototype.ua=function(){var a=Array(this.Jb),b=this.Lb,c=0,d;for(d in b)a[c]=b[d].value,c++;return a};I.prototype.Ew=function(){var a=new H,b=this.Lb,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.Jb}},size:{configurable:!0,get:function(){return this.Jb}},iterator:{configurable:!0,get:function(){if(0>=this.Jb)return lb;var a=this.Ka;return null!==a?(a.reset(),a):new tb(this)}}});I.prototype.toList=I.prototype.Ew;I.prototype.toArray=I.prototype.ua;I.prototype.clear=I.prototype.clear;I.prototype.retainAll=I.prototype.NA;I.prototype.removeAll=I.prototype.Wq; I.prototype["delete"]=I.prototype.delete;I.prototype.remove=I.prototype.remove;I.prototype.first=I.prototype.first;I.prototype.containsAny=I.prototype.pz;I.prototype.containsAll=I.prototype.oz;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.ka;I.prototype.freeze=I.prototype.freeze;var wb=1;I.className="Set";I.uniqueHash=fb;I.hashIdUnique=ub;I.hashId=pb; function zb(a){this.la=a;this.oa=a.u;this.ra=null}zb.prototype.reset=function(){this.oa=this.la.u;this.ra=null};zb.prototype.next=function(){var a=this.la;if(a.u!==this.oa){if(null===this.key)return!1;Aa(a)}var b=this.ra;b=null===b?a.ga:b.va;if(null!==b)return this.ra=b,this.value=this.key=a=b.key,!0;this.Kd();return!1};zb.prototype.ld=function(){return this.next()};zb.prototype.first=function(){var a=this.la;this.oa=a.u;a=a.ga;return null!==a?(this.ra=a,this.value=this.key=a=a.key):null}; zb.prototype.any=function(a){var b=this.la,c=b.u;this.ra=null;for(var d=b.ga;null!==d;){if(a(d.key))return!0;b.u!==c&&Aa(b);d=d.va}return!1};zb.prototype.all=function(a){var b=this.la,c=b.u;this.ra=null;for(var d=b.ga;null!==d;){if(!a(d.key))return!1;b.u!==c&&Aa(b);d=d.va}return!0};zb.prototype.each=function(a){var b=this.la,c=b.u;this.ra=null;for(var d=b.ga;null!==d;)a(d.key),b.u!==c&&Aa(b),d=d.va;return this}; zb.prototype.map=function(a){var b=this.la,c=b.u;this.ra=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};zb.prototype.filter=function(a){var b=this.la,c=b.u;this.ra=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};zb.prototype.Kd=function(){this.value=this.key=null;this.oa=-1};zb.prototype.toString=function(){return null!==this.ra?"MapKeySetIterator@"+this.ra.value:"MapKeySetIterator"}; ma.Object.defineProperties(zb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.la.Jb}}});zb.prototype.first=zb.prototype.first;zb.prototype.hasNext=zb.prototype.ld;zb.prototype.next=zb.prototype.next;zb.prototype.reset=zb.prototype.reset;zb.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.ka=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.Fw=function(){var a=new I,b=this.la.Lb,c;for(c in b)a.add(b[c].key);return a};Ab.prototype.ua=function(){var a=this.la.Lb,b=Array(this.la.Jb),c=0,d;for(d in a)b[c]=a[d].key,c++;return b};Ab.prototype.Ew=function(){var a=new H,b=this.la.Lb,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.Jb}},size:{configurable:!0,get:function(){return this.la.Jb}},iterator:{configurable:!0,get:function(){return 0>=this.la.Jb?lb:new zb(this.la)}}});Ab.prototype.toList=Ab.prototype.Ew;Ab.prototype.toArray=Ab.prototype.ua;Ab.prototype.toSet=Ab.prototype.Fw;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.ka;Ab.prototype.freeze=Ab.prototype.freeze;Ab.className="MapKeySet";function Bb(a){this.la=a;a.ef=null;this.oa=a.u;this.ra=null}Bb.prototype.reset=function(){var a=this.la;a.ef=null;this.oa=a.u;this.ra=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.ra;b=null===b?a.ga:b.va;if(null!==b)return this.ra=b,this.value=b.value,this.key=b.key,!0;this.Kd();return!1};Bb.prototype.ld=function(){return this.next()};Bb.prototype.first=function(){var a=this.la;this.oa=a.u;a=a.ga;if(null!==a){this.ra=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.ef=null;var c=b.u;this.ra=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.ef=null;var c=b.u;this.ra=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.ef=null;var c=b.u;this.ra=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.ef=null;var c=b.u;this.ra=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.ef=null;var c=b.u;this.ra=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.Kd=function(){this.value=this.key=null;this.oa=-1;this.la.ef=this}; Bb.prototype.toString=function(){return null!==this.ra?"MapValueSetIterator@"+this.ra.value:"MapValueSetIterator"};ma.Object.defineProperties(Bb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.la.Jb}}});Bb.prototype.first=Bb.prototype.first;Bb.prototype.hasNext=Bb.prototype.ld;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.Ql=this.va=null}vb.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"};vb.className="KeyValuePair";function Cb(a){this.la=a;a.Ka=null;this.oa=a.u;this.ra=null}Cb.prototype.reset=function(){var a=this.la;a.Ka=null;this.oa=a.u;this.ra=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.ra;b=null===b?a.ga:b.va;if(null!==b)return this.ra=b,this.key=b.key,this.value=b.value,!0;this.Kd();return!1};Cb.prototype.ld=function(){return this.next()};Cb.prototype.first=function(){var a=this.la;this.oa=a.u;a=a.ga;return null!==a?(this.ra=a,this.key=a.key,this.value=a.value,a):null}; Cb.prototype.any=function(a){var b=this.la;b.Ka=null;var c=b.u;this.ra=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.Ka=null;var c=b.u;this.ra=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.Ka=null;var c=b.u;this.ra=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.Ka=null;var c=b.u;this.ra=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.Ka=null;var c=b.u;this.ra=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.Kd=function(){this.value=this.key=null;this.oa=-1;this.la.Ka=this};Cb.prototype.toString=function(){return null!==this.ra?"MapIterator@"+this.ra:"MapIterator"}; ma.Object.defineProperties(Cb.prototype,{iterator:{configurable:!0,get:function(){return this}},count:{configurable:!0,get:function(){return this.la.Jb}}});Cb.prototype.first=Cb.prototype.first;Cb.prototype.hasNext=Cb.prototype.ld;Cb.prototype.next=Cb.prototype.next;Cb.prototype.reset=Cb.prototype.reset;Cb.className="MapIterator"; function Db(a){fb(this);this.s=!1;this.Lb={};this.Jb=0;this.ef=this.Ka=null;this.u=0;this.ff=this.ga=null;void 0!==a&&("function"===typeof a||"string"===typeof a?Ea():this.addAll(a))}t=Db.prototype;t.qb=function(){var a=this.u;a++;999999999<a&&(a=0);this.u=a};t.freeze=function(){this.s=!0;return this};t.ka=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.Lb[c];void 0===d?(this.Jb++,a=new vb(a,b),this.Lb[c]=a,c=this.ff,null===c?this.ga=a:(a.Ql=c,c.va=a),this.ff=a,this.qb()):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.Lb[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.Lb[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.Lb[b];if(void 0===a)return!1;var c=a.va,d=a.Ql;null!==c&&(c.Ql=d);null!==d&&(d.va=c);this.ga===a&&(this.ga=c);this.ff===a&&(this.ff=d);delete this.Lb[b];this.Jb--;this.qb();return!0};t.delete=function(a){return this.remove(a)};t.clear=function(){this.s&&va(this);this.Lb={};this.Jb=0;null!==this.Ka&&this.Ka.reset();null!==this.ef&&this.ef.reset();this.ff=this.ga=null;this.qb()}; Db.prototype.copy=function(){var a=new Db,b=this.Lb,c;for(c in b){var d=b[c];a.add(d.key,d.value)}return a};Db.prototype.ua=function(){var a=this.Lb,b=Array(this.Jb),c=0,d;for(d in a){var e=a[d];b[c]=new vb(e.key,e.value);c++}return b};Db.prototype.Of=function(){return new Ab(this)}; ma.Object.defineProperties(Db.prototype,{count:{configurable:!0,get:function(){return this.Jb}},size:{configurable:!0,get:function(){return this.Jb}},iterator:{configurable:!0,get:function(){if(0>=this.count)return lb;var a=this.Ka;return null!==a?(a.reset(),a):new Cb(this)}},iteratorKeys:{configurable:!0,get:function(){return 0>=this.count?lb:new zb(this)}},iteratorValues:{configurable:!0,get:function(){if(0>=this.count)return lb; var a=this.ef;return null!==a?(a.reset(),a):new Bb(this)}}});Db.prototype.toKeySet=Db.prototype.Of;Db.prototype.toArray=Db.prototype.ua;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.ka;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.Og=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&&(w(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.ka=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&&w(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.bj=function(a,b){return this.G===a&&this.H===b};t.Sa=function(a){return K.C(this.G,a.x)&&K.C(this.H,a.y)};t.add=function(a){F&&(w(a,J,J,"add:p"),this.ha());this.G+=a.x;this.H+=a.y;return this};t.ie=function(a){F&&(w(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.Pe=function(a){F&&w(a,J,J,"distanceSquaredPoint:p");var b=a.x-this.G;a=a.y-this.H;return b*b+a*a};t.kd=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&&w(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.GA=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.Th(a,b,c,d,this.G,this.H,this);return this};t.HA=function(a,b){F&&(w(a,J,J,"projectOntoLineSegmentPoint:p"),w(b,J,J,"projectOntoLineSegmentPoint:q"));K.Th(a.x,a.y,b.x,b.y,this.G,this.H,this);return this}; t.TA=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.Cq(this.G,this.H,a,b,c,d,this);return this};t.UA=function(a,b){F&&(w(a,J,J,"snapToGridPoint:p"),w(b,Hb,J,"snapToGridPoint:q"));K.Cq(this.G,this.H,a.x,a.y,b.width,b.height,this);return this};t.pj=function(a,b){F&&(w(a,L,J,"setRectSpot:r"),w(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.Jk=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"),w(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&&w(a,Ib,J,"transform:t");a.xa(this);return this};function Jb(a,b){F&&w(b,Ib,J,"transformInverted:t");b.de(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.Jk;J.prototype.setRectSpot=J.prototype.pj;J.prototype.snapToGridPoint=J.prototype.UA;J.prototype.snapToGrid=J.prototype.TA; J.prototype.projectOntoLineSegmentPoint=J.prototype.HA;J.prototype.projectOntoLineSegment=J.prototype.GA;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.Iq(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.kd;J.prototype.distanceSquaredPoint=J.prototype.Pe;J.prototype.scale=J.prototype.scale;J.prototype.rotate=J.prototype.rotate;J.prototype.offset=J.prototype.offset;J.prototype.subtract=J.prototype.ie;J.prototype.add=J.prototype.add;J.prototype.equalsApprox=J.prototype.Sa;J.prototype.equalTo=J.prototype.bj;J.prototype.equals=J.prototype.A; J.prototype.set=J.prototype.set;J.prototype.setTo=J.prototype.Og;var Rb=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=Rb=(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,Zb,$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.Og=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&&(w(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.ka=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&&w(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.bj=function(a,b){return this.ea===a&&this.da===b}; t.Sa=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.Sa;Hb.prototype.equalTo=Hb.prototype.bj; Hb.prototype.equals=Hb.prototype.A;Hb.prototype.set=Hb.prototype.set;Hb.prototype.setTo=Hb.prototype.Og;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=Zb=(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.Og=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&&(w(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.pd=function(a){F&&(w(a,J,L,"setPoint:p"),this.ha());this.G=a.x;this.H=a.y;return this};t.RA=function(a){F&&(w(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.da;return a};t=L.prototype;t.ia=function(){this.s=!0;Object.freeze(this);return this}; t.J=function(){return this.s||Obje