Team:NAWI Graz/Resources/netlogo 3


//# sourceMappingURL=info.js.map </script>

   <script>(function() {
 window.RactivePlot = RactiveWidget.extend({
   data: function() {
     return {
       contextMenuOptions: [this.standardOptions(this)["delete"]]
     };
   },
template: "
"
 });

}).call(this);

//# sourceMappingURL=plot.js.map </script>

   <script>(function() {
 window.RactiveModelTitle = RactiveContextable.extend({
   data: function() {
     return {
       contextMenuOptions: [this.standardOptions(this).edit],
       isEditing: void 0,
       title: void 0
     };
   },
   oninit: function() {
     var defaultOnEmpty;
     defaultOnEmpty = function(s) {
       if (s === ) {
         return "Untitled";
       } else {
         return s;
       }
     };
     return this.on('editTitle', function() {
       var newName, oldName, ref;
       if (this.get('isEditing')) {
         oldName = this.get('title');
         newName = prompt("Enter a new name for your model", oldName);
         this.set('title', (ref = defaultOnEmpty(newName)) != null ? ref : oldName);
       }
     });
   },
template: "
\n
\n

\n Template:Title\n

\n
\n
"
 });

}).call(this);

//# sourceMappingURL=title.js.map </script>

   <script>(function() {
 window.addProxyTo = function(proxies, objKeyPairs, key, value) {
   var apply, backingValue, setters;
   apply = function(x) {
     return function(f) {
       return f(x);
     };
   };
   backingValue = value;
   setters = objKeyPairs.map(function(arg) {
     var descriptor, key, obj, ref, ref1;
     obj = arg[0], key = arg[1];
     descriptor = (ref = Object.getOwnPropertyDescriptor(obj, key)) != null ? ref : {};
     return (ref1 = descriptor.set) != null ? ref1 : (function(x) {
       return obj[key] = x;
     });
   });
   Object.defineProperty(proxies, key, {
     get: function() {
       return backingValue;
     },
     set: function(newValue) {
       backingValue = newValue;
       return setters.forEach(apply(newValue));
     }
   });
   return proxies;
 };

}).call(this);

//# sourceMappingURL=proxy.js.map </script>

   <script>(function() {
 var arrayContains, elemById, elemsByClass, nodeListToArray, pipeline,
   slice = [].slice;
 elemById = function(id) {
   return document.getElementById(id);
 };
 elemsByClass = function(className) {
   return document.getElementsByClassName(className);
 };
 arrayContains = function(xs) {
   return function(x) {
     return xs.indexOf(x) !== -1;
   };
 };
 nodeListToArray = function(nodeList) {
   return Array.prototype.slice.call(nodeList);
 };
 pipeline = function() {
   var functions;
   functions = 1 <= arguments.length ? slice.call(arguments, 0) : [];
   return function() {
     var args, f, fs, h, i, len, out;
     args = 1 <= arguments.length ? slice.call(arguments, 0) : [];
     h = functions[0], fs = 2 <= functions.length ? slice.call(functions, 1) : [];
     out = h.apply(null, args);
     for (i = 0, len = fs.length; i < len; i++) {
       f = fs[i];
       out = f(out);
     }
     return out;
   };
 };
 window.setupInterfaceEditor = function(ractive) {
   var handleContextMenu, hideContextMenu;
   hideContextMenu = function() {
     return ractive.findComponent('contextMenu').fire('coverThineself');
   };
   document.addEventListener("click", hideContextMenu);
   document.addEventListener("contextmenu", function(e) {
     var c, classes, elem, elems, hasClass, latestElem, listOfLists;
     latestElem = e.target;
     elems = [];
     while (latestElem != null) {
       elems.push(latestElem);
       latestElem = latestElem.parentElement;
     }
     listOfLists = (function() {
       var i, len, results;
       results = [];
       for (i = 0, len = elems.length; i < len; i++) {
         elem = elems[i];
         results.push((function() {
           var j, len1, ref, results1;
           ref = elem.classList;
           results1 = [];
           for (j = 0, len1 = ref.length; j < len1; j++) {
             c = ref[j];
             results1.push(c);
           }
           return results1;
         })());
       }
       return results;
     })();
     classes = listOfLists.reduce(function(acc, x) {
       return acc.concat(x);
     });
     hasClass = arrayContains(classes);
     if ((!hasClass("netlogo-widget")) && (!hasClass("netlogo-widget-container"))) {
       return hideContextMenu();
     }
   });
   window.onkeyup = function(e) {
     if (e.keyCode === 27) {
       return hideContextMenu();
     }
   };
   ractive.on('toggleInterfaceLock', function() {
     var applyClassChanges, isEditing, unlockers, widgets;
     isEditing = !this.get('isEditing');
     this.set('isEditing', isEditing);
     applyClassChanges = isEditing ? function(e) {
       return e.classList.add('interface-unlocked');
     } : function(e) {
       return e.classList.remove('interface-unlocked');
     };
     widgets = pipeline(elemsByClass, nodeListToArray)("netlogo-widget");
     unlockers = pipeline(elemsByClass, nodeListToArray)("netlogo-interface-unlocker");
     widgets.concat(unlockers).forEach(applyClassChanges);
   });
   handleContextMenu = function(arg, trueEvent) {
     var component;
     component = arg.component;
     if (this.get("isEditing")) {
       trueEvent.preventDefault();
       trueEvent.stopPropagation();
       this.findComponent('contextMenu').fire('revealThineself', component.get('contextMenuOptions'), trueEvent.pageX, trueEvent.pageY);
       return false;
     } else {
       return true;
     }
   };
   ractive.on('showContextMenu', handleContextMenu);
   ractive.on('*.showContextMenu', handleContextMenu);
   return ractive.on('*.hideContextMenu', hideContextMenu);
 };

}).call(this);

//# sourceMappingURL=setupinterfaceeditor.js.map </script>

   <script>(function() {
 var IMAGE_SIZE, drawPath, setColoring,
   extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
   hasProp = {}.hasOwnProperty;
 IMAGE_SIZE = 300;
 window.ShapeDrawer = (function() {
   function ShapeDrawer(shapes1, onePixel1) {
     this.shapes = shapes1;
     this.onePixel = onePixel1;
   }
   ShapeDrawer.prototype.setTransparency = function(ctx, color) {
     return ctx.globalAlpha = color.length > 3 ? color[3] / 255 : 1;
   };
   ShapeDrawer.prototype.drawShape = function(ctx, color, shapeName, thickness) {
     if (thickness == null) {
       thickness = 1;
     }
     ctx.translate(.5, -.5);
     ctx.scale(-1 / IMAGE_SIZE, 1 / IMAGE_SIZE);
     this.setTransparency(ctx, color);
     ctx.save();
     ctx.beginPath();
     ctx.rect(0, 0, IMAGE_SIZE, IMAGE_SIZE);
     ctx.clip();
     this.drawRawShape(ctx, color, shapeName, thickness);
     ctx.restore();
   };
   ShapeDrawer.prototype.drawRawShape = function(ctx, color, shapeName, thickness) {
     var elem, j, len, ref, shape;
     if (thickness == null) {
       thickness = 1;
     }
     ctx.lineWidth = IMAGE_SIZE * this.onePixel * thickness;
     shape = this.shapes[shapeName] || defaultShape;
     ref = shape.elements;
     for (j = 0, len = ref.length; j < len; j++) {
       elem = ref[j];
       draw[elem.type](ctx, color, elem);
     }
   };
   return ShapeDrawer;
 })();
 window.CachingShapeDrawer = (function(superClass) {
   extend(CachingShapeDrawer, superClass);
   function CachingShapeDrawer(shapes, onePixel) {
     CachingShapeDrawer.__super__.constructor.call(this, shapes, onePixel);
     this.shapeCache = {};
   }
   CachingShapeDrawer.prototype.drawShape = function(ctx, color, shapeName, thickness) {
     var shapeCanvas, shapeCtx, shapeKey;
     if (thickness == null) {
       thickness = 1;
     }
     shapeName = shapeName.toLowerCase();
     shapeKey = this.shapeKey(shapeName, color);
     shapeCanvas = this.shapeCache[shapeKey];
     if (shapeCanvas == null) {
       shapeCanvas = document.createElement('canvas');
       shapeCanvas.width = shapeCanvas.height = IMAGE_SIZE;
       shapeCtx = shapeCanvas.getContext('2d');
       this.drawRawShape(shapeCtx, color, shapeName);
       this.shapeCache[shapeKey] = shapeCanvas;
     }
     ctx.translate(.5, -.5);
     ctx.scale(-1 / IMAGE_SIZE, 1 / IMAGE_SIZE);
     this.setTransparency(ctx, color);
     ctx.drawImage(shapeCanvas, 0, 0);
   };
   CachingShapeDrawer.prototype.shapeKey = function(shapeName, color) {
     return [shapeName, netlogoColorToOpaqueCSS(color)];
   };
   return CachingShapeDrawer;
 })(ShapeDrawer);
 setColoring = function(ctx, color, element) {
   color = netlogoColorToOpaqueCSS(color);
   if (element.filled) {
     if (element.marked) {
       ctx.fillStyle = color;
     } else {
       ctx.fillStyle = element.color;
     }
   } else {
     if (element.marked) {
       ctx.strokeStyle = color;
     } else {
       ctx.strokeStyle = element.color;
     }
   }
 };
 drawPath = function(ctx, color, element) {
   setColoring(ctx, color, element);
   if (element.filled) {
     ctx.fill();
   } else {
     ctx.stroke();
   }
 };
 window.draw = {
   circle: function(ctx, color, circle) {
     var r;
     r = circle.diam / 2;
     ctx.beginPath();
     ctx.arc(circle.x + r, circle.y + r, r, 0, 2 * Math.PI, false);
     ctx.closePath();
     drawPath(ctx, color, circle);
   },
   polygon: function(ctx, color, polygon) {
     var i, j, len, ref, x, xcors, y, ycors;
     xcors = polygon.xcors;
     ycors = polygon.ycors;
     ctx.beginPath();
     ctx.moveTo(xcors[0], ycors[0]);
     ref = xcors.slice(1);
     for (i = j = 0, len = ref.length; j < len; i = ++j) {
       x = ref[i];
       y = ycors[i + 1];
       ctx.lineTo(x, y);
     }
     ctx.closePath();
     drawPath(ctx, color, polygon);
   },
   rectangle: function(ctx, color, rectangle) {
     var h, w, x, y;
     x = rectangle.xmin;
     y = rectangle.ymin;
     w = rectangle.xmax - x;
     h = rectangle.ymax - y;
     setColoring(ctx, color, rectangle);
     if (rectangle.filled) {
       ctx.fillRect(x, y, w, h);
     } else {
       ctx.strokeRect(x, y, w, h);
     }
   },
   line: function(ctx, color, line) {
     var h, w, x, y;
     x = line.x1;
     y = line.y1;
     w = line.x2 - line.x1;
     h = line.y2 - line.y1;
     setColoring(ctx, color, line);
     ctx.beginPath();
     ctx.moveTo(line.x1, line.y1);
     ctx.lineTo(line.x2, line.y2);
     ctx.stroke();
   }
 };
 window.defaultShape = {
   rotate: true,
   elements: [
     {
       type: 'polygon',
       color: 'grey',
       filled: 'true',
       marked: 'true',
       xcors: [150, 40, 150, 260],
       ycors: [5, 250, 205, 250]
     }
   ]
 };

}).call(this);

//# sourceMappingURL=drawshape.js.map </script>

   <script>defaultShapes = {
 "default": {
   "rotate": true,
   "elements": [
     {
       "xcors": [
         150,
         40,
         150,
         260
       ],
       "ycors": [
         5,
         250,
         205,
         250
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "airplane": {
   "rotate": true,
   "elements": [
     {
       "xcors": [
         150,
         135,
         120,
         120,
         15,
         15,
         120,
         135,
         105,
         120,
         150,
         180,
         210,
         165,
         180,
         285,
         285,
         180,
         180,
         165
       ],
       "ycors": [
         0,
         15,
         60,
         105,
         165,
         195,
         180,
         240,
         270,
         285,
         270,
         285,
         270,
         240,
         180,
         195,
         165,
         105,
         60,
         15
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "arrow": {
   "rotate": true,
   "elements": [
     {
       "xcors": [
         150,
         0,
         105,
         105,
         195,
         195,
         300
       ],
       "ycors": [
         0,
         150,
         150,
         293,
         293,
         150,
         150
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "box": {
   "rotate": false,
   "elements": [
     {
       "xcors": [
         150,
         285,
         285,
         150
       ],
       "ycors": [
         285,
         225,
         75,
         135
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         150,
         15,
         150,
         285
       ],
       "ycors": [
         135,
         75,
         15,
         75
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         15,
         15,
         150,
         150
       ],
       "ycors": [
         75,
         225,
         285,
         135
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x1": 150,
       "y1": 285,
       "x2": 150,
       "y2": 135,
       "type": "line",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": false,
       "marked": false
     },
     {
       "x1": 150,
       "y1": 135,
       "x2": 15,
       "y2": 75,
       "type": "line",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": false,
       "marked": false
     },
     {
       "x1": 150,
       "y1": 135,
       "x2": 285,
       "y2": 75,
       "type": "line",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": false,
       "marked": false
     }
   ]
 },
 "bug": {
   "rotate": true,
   "elements": [
     {
       "x": 96,
       "y": 182,
       "diam": 108,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 110,
       "y": 127,
       "diam": 80,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 110,
       "y": 75,
       "diam": 80,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x1": 150,
       "y1": 100,
       "x2": 80,
       "y2": 30,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     },
     {
       "x1": 150,
       "y1": 100,
       "x2": 220,
       "y2": 30,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     }
   ]
 },
 "butterfly": {
   "rotate": true,
   "elements": [
     {
       "xcors": [
         150,
         209,
         225,
         225,
         195,
         165,
         150
       ],
       "ycors": [
         165,
         199,
         225,
         255,
         270,
         255,
         240
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         150,
         89,
         75,
         75,
         105,
         135,
         150
       ],
       "ycors": [
         165,
         198,
         225,
         255,
         270,
         255,
         240
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         139,
         100,
         55,
         25,
         10,
         10,
         25,
         40,
         85,
         139
       ],
       "ycors": [
         148,
         105,
         90,
         90,
         105,
         135,
         180,
         195,
         194,
         163
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         162,
         200,
         245,
         275,
         290,
         290,
         275,
         260,
         215,
         162
       ],
       "ycors": [
         150,
         105,
         90,
         90,
         105,
         135,
         180,
         195,
         195,
         165
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         150,
         135,
         120,
         135,
         150,
         165,
         180,
         165
       ],
       "ycors": [
         255,
         225,
         150,
         120,
         105,
         120,
         150,
         225
       ],
       "type": "polygon",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x": 135,
       "y": 90,
       "diam": 30,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x1": 150,
       "y1": 105,
       "x2": 195,
       "y2": 60,
       "type": "line",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": false,
       "marked": false
     },
     {
       "x1": 150,
       "y1": 105,
       "x2": 105,
       "y2": 60,
       "type": "line",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": false,
       "marked": false
     }
   ]
 },
 "car": {
   "rotate": false,
   "elements": [
     {
       "xcors": [
         300,
         279,
         261,
         240,
         226,
         213,
         203,
         185,
         159,
         135,
         75,
         0,
         0,
         0,
         300,
         300
       ],
       "ycors": [
         180,
         164,
         144,
         135,
         132,
         106,
         84,
         63,
         50,
         50,
         60,
         150,
         165,
         225,
         225,
         180
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 180,
       "y": 180,
       "diam": 90,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x": 30,
       "y": 180,
       "diam": 90,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xcors": [
         162,
         132,
         134,
         209,
         194,
         189,
         180
       ],
       "ycors": [
         80,
         78,
         135,
         135,
         105,
         96,
         89
       ],
       "type": "polygon",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x": 47,
       "y": 195,
       "diam": 58,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 195,
       "y": 195,
       "diam": 58,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "circle": {
   "rotate": false,
   "elements": [
     {
       "x": 0,
       "y": 0,
       "diam": 300,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "circle 2": {
   "rotate": false,
   "elements": [
     {
       "x": 0,
       "y": 0,
       "diam": 300,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 30,
       "y": 30,
       "diam": 240,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     }
   ]
 },
 "cloud": {
   "rotate": false,
   "elements": [
     {
       "x": 13,
       "y": 118,
       "diam": 94,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 86,
       "y": 101,
       "diam": 127,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 51,
       "y": 51,
       "diam": 108,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 118,
       "y": 43,
       "diam": 95,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 158,
       "y": 68,
       "diam": 134,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "co2-molecule": {
   "rotate": true,
   "elements": [
     {
       "x": 183,
       "y": 63,
       "diam": 84,
       "type": "circle",
       "color": "rgba(255, 255, 255, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x": 183,
       "y": 63,
       "diam": 84,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": false,
       "marked": false
     },
     {
       "x": 75,
       "y": 75,
       "diam": 150,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 75,
       "y": 75,
       "diam": 150,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": false,
       "marked": false
     },
     {
       "x": 33,
       "y": 63,
       "diam": 84,
       "type": "circle",
       "color": "rgba(255, 255, 255, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x": 33,
       "y": 63,
       "diam": 84,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": false,
       "marked": false
     }
   ]
 },
 "cow": {
   "rotate": false,
   "elements": [
     {
       "xcors": [
         200,
         197,
         179,
         177,
         166,
         140,
         93,
         78,
         72,
         49,
         48,
         37,
         25,
         25,
         45,
         103,
         179,
         198,
         252,
         272,
         293,
         285,
         255,
         242,
         224
       ],
       "ycors": [
         193,
         249,
         249,
         196,
         187,
         189,
         191,
         179,
         211,
         209,
         181,
         149,
         120,
         89,
         72,
         84,
         75,
         76,
         64,
         81,
         103,
         121,
         121,
         118,
         167
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         73,
         86,
         62,
         48
       ],
       "ycors": [
         210,
         251,
         249,
         208
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         25,
         16,
         9,
         23,
         25,
         39
       ],
       "ycors": [
         114,
         195,
         204,
         213,
         200,
         123
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "cylinder": {
   "rotate": false,
   "elements": [
     {
       "x": 0,
       "y": 0,
       "diam": 300,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "dot": {
   "rotate": false,
   "elements": [
     {
       "x": 90,
       "y": 90,
       "diam": 120,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "face happy": {
   "rotate": false,
   "elements": [
     {
       "x": 8,
       "y": 8,
       "diam": 285,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 60,
       "y": 75,
       "diam": 60,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x": 180,
       "y": 75,
       "diam": 60,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xcors": [
         150,
         90,
         62,
         47,
         67,
         90,
         109,
         150,
         192,
         210,
         227,
         251,
         236,
         212
       ],
       "ycors": [
         255,
         239,
         213,
         191,
         179,
         203,
         218,
         225,
         218,
         203,
         181,
         194,
         217,
         240
       ],
       "type": "polygon",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     }
   ]
 },
 "face neutral": {
   "rotate": false,
   "elements": [
     {
       "x": 8,
       "y": 7,
       "diam": 285,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 60,
       "y": 75,
       "diam": 60,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x": 180,
       "y": 75,
       "diam": 60,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xmin": 60,
       "ymin": 195,
       "xmax": 240,
       "ymax": 225,
       "type": "rectangle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     }
   ]
 },
 "face sad": {
   "rotate": false,
   "elements": [
     {
       "x": 8,
       "y": 8,
       "diam": 285,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 60,
       "y": 75,
       "diam": 60,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x": 180,
       "y": 75,
       "diam": 60,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xcors": [
         150,
         90,
         62,
         47,
         67,
         90,
         109,
         150,
         192,
         210,
         227,
         251,
         236,
         212
       ],
       "ycors": [
         168,
         184,
         210,
         232,
         244,
         220,
         205,
         198,
         205,
         220,
         242,
         229,
         206,
         183
       ],
       "type": "polygon",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     }
   ]
 },
 "fish": {
   "rotate": false,
   "elements": [
     {
       "xcors": [
         44,
         21,
         15,
         0,
         15,
         0,
         13,
         20,
         45
       ],
       "ycors": [
         131,
         87,
         86,
         120,
         150,
         180,
         214,
         212,
         166
       ],
       "type": "polygon",
       "color": "rgba(255, 255, 255, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xcors": [
         135,
         119,
         95,
         76,
         46,
         60
       ],
       "ycors": [
         195,
         235,
         218,
         210,
         204,
         165
       ],
       "type": "polygon",
       "color": "rgba(255, 255, 255, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xcors": [
         75,
         83,
         71,
         86,
         166,
         135
       ],
       "ycors": [
         45,
         77,
         103,
         114,
         78,
         60
       ],
       "type": "polygon",
       "color": "rgba(255, 255, 255, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xcors": [
         30,
         151,
         226,
         280,
         292,
         292,
         287,
         270,
         195,
         151,
         30
       ],
       "ycors": [
         136,
         77,
         81,
         119,
         146,
         160,
         170,
         195,
         210,
         212,
         166
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 215,
       "y": 106,
       "diam": 30,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     }
   ]
 },
 "flag": {
   "rotate": false,
   "elements": [
     {
       "xmin": 60,
       "ymin": 15,
       "xmax": 75,
       "ymax": 300,
       "type": "rectangle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         90,
         270,
         90
       ],
       "ycors": [
         150,
         90,
         30
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x1": 75,
       "y1": 135,
       "x2": 90,
       "y2": 135,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     },
     {
       "x1": 75,
       "y1": 45,
       "x2": 90,
       "y2": 45,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     }
   ]
 },
 "flower": {
   "rotate": false,
   "elements": [
     {
       "xcors": [
         135,
         165,
         180,
         180,
         150,
         165,
         195,
         195,
         165
       ],
       "ycors": [
         120,
         165,
         210,
         240,
         300,
         300,
         240,
         195,
         135
       ],
       "type": "polygon",
       "color": "rgba(89, 176, 60, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x": 85,
       "y": 132,
       "diam": 38,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 130,
       "y": 147,
       "diam": 38,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 192,
       "y": 85,
       "diam": 38,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 85,
       "y": 40,
       "diam": 38,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 177,
       "y": 40,
       "diam": 38,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 177,
       "y": 132,
       "diam": 38,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 70,
       "y": 85,
       "diam": 38,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 130,
       "y": 25,
       "diam": 38,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 96,
       "y": 51,
       "diam": 108,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 113,
       "y": 68,
       "diam": 74,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xcors": [
         189,
         219,
         249,
         279,
         234
       ],
       "ycors": [
         233,
         188,
         173,
         188,
         218
       ],
       "type": "polygon",
       "color": "rgba(89, 176, 60, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xcors": [
         180,
         150,
         105,
         75,
         135
       ],
       "ycors": [
         255,
         210,
         210,
         240,
         240
       ],
       "type": "polygon",
       "color": "rgba(89, 176, 60, 1.0)",
       "filled": true,
       "marked": false
     }
   ]
 },
 "house": {
   "rotate": false,
   "elements": [
     {
       "xmin": 45,
       "ymin": 120,
       "xmax": 255,
       "ymax": 285,
       "type": "rectangle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xmin": 120,
       "ymin": 210,
       "xmax": 180,
       "ymax": 285,
       "type": "rectangle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xcors": [
         15,
         150,
         285
       ],
       "ycors": [
         120,
         15,
         120
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x1": 30,
       "y1": 120,
       "x2": 270,
       "y2": 120,
       "type": "line",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": false,
       "marked": false
     }
   ]
 },
 "leaf": {
   "rotate": false,
   "elements": [
     {
       "xcors": [
         150,
         135,
         120,
         60,
         30,
         60,
         60,
         15,
         30,
         15,
         40,
         45,
         60,
         90,
         105,
         120,
         105,
         120,
         135,
         150,
         165,
         180,
         195,
         180,
         195,
         210,
         240,
         255,
         263,
         285,
         270,
         285,
         240,
         240,
         270,
         240,
         180,
         165
       ],
       "ycors": [
         210,
         195,
         210,
         210,
         195,
         180,
         165,
         135,
         120,
         105,
         104,
         90,
         90,
         105,
         120,
         120,
         60,
         60,
         30,
         15,
         30,
         60,
         60,
         120,
         120,
         105,
         90,
         90,
         104,
         105,
         120,
         135,
         165,
         180,
         195,
         210,
         210,
         195
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         135,
         135,
         120,
         105,
         105,
         135,
         165,
         165
       ],
       "ycors": [
         195,
         240,
         255,
         255,
         285,
         285,
         240,
         195
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "line": {
   "rotate": true,
   "elements": [
     {
       "x1": 150,
       "y1": 0,
       "x2": 150,
       "y2": 300,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     }
   ]
 },
 "line half": {
   "rotate": true,
   "elements": [
     {
       "x1": 150,
       "y1": 0,
       "x2": 150,
       "y2": 150,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     }
   ]
 },
 "molecule water": {
   "rotate": true,
   "elements": [
     {
       "x": 183,
       "y": 63,
       "diam": 84,
       "type": "circle",
       "color": "rgba(255, 255, 255, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x": 183,
       "y": 63,
       "diam": 84,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": false,
       "marked": false
     },
     {
       "x": 75,
       "y": 75,
       "diam": 150,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 75,
       "y": 75,
       "diam": 150,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": false,
       "marked": false
     },
     {
       "x": 33,
       "y": 63,
       "diam": 84,
       "type": "circle",
       "color": "rgba(255, 255, 255, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x": 33,
       "y": 63,
       "diam": 84,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": false,
       "marked": false
     }
   ]
 },
 "pentagon": {
   "rotate": false,
   "elements": [
     {
       "xcors": [
         150,
         15,
         60,
         240,
         285
       ],
       "ycors": [
         15,
         120,
         285,
         285,
         120
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "person": {
   "rotate": false,
   "elements": [
     {
       "x": 110,
       "y": 5,
       "diam": 80,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         105,
         120,
         90,
         105,
         135,
         150,
         165,
         195,
         210,
         180,
         195
       ],
       "ycors": [
         90,
         195,
         285,
         300,
         300,
         225,
         300,
         300,
         285,
         195,
         90
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xmin": 127,
       "ymin": 79,
       "xmax": 172,
       "ymax": 94,
       "type": "rectangle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         195,
         240,
         225,
         165
       ],
       "ycors": [
         90,
         150,
         180,
         105
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         105,
         60,
         75,
         135
       ],
       "ycors": [
         90,
         150,
         180,
         105
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "plant": {
   "rotate": false,
   "elements": [
     {
       "xmin": 135,
       "ymin": 90,
       "xmax": 165,
       "ymax": 300,
       "type": "rectangle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         135,
         90,
         45,
         75,
         135
       ],
       "ycors": [
         255,
         210,
         195,
         255,
         285
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         165,
         210,
         255,
         225,
         165
       ],
       "ycors": [
         255,
         210,
         195,
         255,
         285
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         135,
         90,
         45,
         75,
         135
       ],
       "ycors": [
         180,
         135,
         120,
         180,
         210
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         165,
         165,
         225,
         255,
         210
       ],
       "ycors": [
         180,
         210,
         180,
         120,
         135
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         135,
         90,
         45,
         75,
         135
       ],
       "ycors": [
         105,
         60,
         45,
         105,
         135
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         165,
         165,
         225,
         255,
         210
       ],
       "ycors": [
         105,
         135,
         105,
         45,
         60
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         135,
         120,
         150,
         180,
         165
       ],
       "ycors": [
         90,
         45,
         15,
         45,
         90
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "ray": {
   "rotate": true,
   "elements": [
     {
       "x1": 150,
       "y1": 0,
       "x2": 150,
       "y2": 315,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     },
     {
       "x1": 120,
       "y1": 255,
       "x2": 150,
       "y2": 225,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     },
     {
       "x1": 150,
       "y1": 225,
       "x2": 180,
       "y2": 255,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     },
     {
       "x1": 120,
       "y1": 165,
       "x2": 150,
       "y2": 135,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     },
     {
       "x1": 120,
       "y1": 75,
       "x2": 150,
       "y2": 45,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     },
     {
       "x1": 150,
       "y1": 135,
       "x2": 180,
       "y2": 165,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     },
     {
       "x1": 150,
       "y1": 45,
       "x2": 180,
       "y2": 75,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     }
   ]
 },
 "sheep": {
   "rotate": false,
   "elements": [
     {
       "x": 203,
       "y": 65,
       "diam": 88,
       "type": "circle",
       "color": "rgba(255, 255, 255, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 70,
       "y": 65,
       "diam": 162,
       "type": "circle",
       "color": "rgba(255, 255, 255, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 150,
       "y": 105,
       "diam": 120,
       "type": "circle",
       "color": "rgba(255, 255, 255, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         218,
         240,
         255,
         278
       ],
       "ycors": [
         120,
         165,
         165,
         120
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x": 214,
       "y": 72,
       "diam": 67,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xmin": 164,
       "ymin": 223,
       "xmax": 179,
       "ymax": 298,
       "type": "rectangle",
       "color": "rgba(255, 255, 255, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         45,
         30,
         30,
         15,
         45
       ],
       "ycors": [
         285,
         285,
         240,
         195,
         210
       ],
       "type": "polygon",
       "color": "rgba(255, 255, 255, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 3,
       "y": 83,
       "diam": 150,
       "type": "circle",
       "color": "rgba(255, 255, 255, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xmin": 65,
       "ymin": 221,
       "xmax": 80,
       "ymax": 296,
       "type": "rectangle",
       "color": "rgba(255, 255, 255, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         195,
         210,
         210,
         240,
         195
       ],
       "ycors": [
         285,
         285,
         240,
         210,
         210
       ],
       "type": "polygon",
       "color": "rgba(255, 255, 255, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         276,
         285,
         302,
         294
       ],
       "ycors": [
         85,
         105,
         99,
         83
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xcors": [
         219,
         210,
         193,
         201
       ],
       "ycors": [
         85,
         105,
         99,
         83
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": false
     }
   ]
 },
 "square": {
   "rotate": false,
   "elements": [
     {
       "xmin": 30,
       "ymin": 30,
       "xmax": 270,
       "ymax": 270,
       "type": "rectangle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "square 2": {
   "rotate": false,
   "elements": [
     {
       "xmin": 30,
       "ymin": 30,
       "xmax": 270,
       "ymax": 270,
       "type": "rectangle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xmin": 60,
       "ymin": 60,
       "xmax": 240,
       "ymax": 240,
       "type": "rectangle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     }
   ]
 },
 "star": {
   "rotate": false,
   "elements": [
     {
       "xcors": [
         151,
         185,
         298,
         207,
         242,
         151,
         59,
         94,
         3,
         116
       ],
       "ycors": [
         1,
         108,
         108,
         175,
         282,
         216,
         282,
         175,
         108,
         108
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "target": {
   "rotate": false,
   "elements": [
     {
       "x": 0,
       "y": 0,
       "diam": 300,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 30,
       "y": 30,
       "diam": 240,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x": 60,
       "y": 60,
       "diam": 180,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 90,
       "y": 90,
       "diam": 120,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x": 120,
       "y": 120,
       "diam": 60,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "tree": {
   "rotate": false,
   "elements": [
     {
       "x": 118,
       "y": 3,
       "diam": 94,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xmin": 120,
       "ymin": 195,
       "xmax": 180,
       "ymax": 300,
       "type": "rectangle",
       "color": "rgba(157, 110, 72, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x": 65,
       "y": 21,
       "diam": 108,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 116,
       "y": 41,
       "diam": 127,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 45,
       "y": 90,
       "diam": 120,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 104,
       "y": 74,
       "diam": 152,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "triangle": {
   "rotate": false,
   "elements": [
     {
       "xcors": [
         150,
         15,
         285
       ],
       "ycors": [
         30,
         255,
         255
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "triangle 2": {
   "rotate": false,
   "elements": [
     {
       "xcors": [
         150,
         15,
         285
       ],
       "ycors": [
         30,
         255,
         255
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         151,
         225,
         75
       ],
       "ycors": [
         99,
         223,
         224
       ],
       "type": "polygon",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     }
   ]
 },
 "truck": {
   "rotate": false,
   "elements": [
     {
       "xmin": 4,
       "ymin": 45,
       "xmax": 195,
       "ymax": 187,
       "type": "rectangle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         296,
         296,
         259,
         244,
         208,
         207
       ],
       "ycors": [
         193,
         150,
         134,
         104,
         104,
         194
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xmin": 195,
       "ymin": 60,
       "xmax": 195,
       "ymax": 105,
       "type": "rectangle",
       "color": "rgba(255, 255, 255, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xcors": [
         238,
         252,
         219,
         218
       ],
       "ycors": [
         112,
         141,
         141,
         112
       ],
       "type": "polygon",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x": 234,
       "y": 174,
       "diam": 42,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xmin": 181,
       "ymin": 185,
       "xmax": 214,
       "ymax": 194,
       "type": "rectangle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 144,
       "y": 174,
       "diam": 42,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x": 24,
       "y": 174,
       "diam": 42,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x": 24,
       "y": 174,
       "diam": 42,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     },
     {
       "x": 144,
       "y": 174,
       "diam": 42,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     },
     {
       "x": 234,
       "y": 174,
       "diam": 42,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     }
   ]
 },
 "turtle": {
   "rotate": true,
   "elements": [
     {
       "xcors": [
         215,
         240,
         246,
         228,
         215,
         193
       ],
       "ycors": [
         204,
         233,
         254,
         266,
         252,
         210
       ],
       "type": "polygon",
       "color": "rgba(89, 176, 60, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xcors": [
         195,
         225,
         245,
         260,
         269,
         261,
         240,
         225,
         210
       ],
       "ycors": [
         90,
         75,
         75,
         89,
         108,
         124,
         105,
         105,
         105
       ],
       "type": "polygon",
       "color": "rgba(89, 176, 60, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xcors": [
         105,
         75,
         55,
         40,
         31,
         39,
         60,
         75,
         90
       ],
       "ycors": [
         90,
         75,
         75,
         89,
         108,
         124,
         105,
         105,
         105
       ],
       "type": "polygon",
       "color": "rgba(89, 176, 60, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xcors": [
         132,
         134,
         107,
         108,
         150,
         192,
         192,
         169,
         172
       ],
       "ycors": [
         85,
         64,
         51,
         17,
         2,
         18,
         52,
         65,
         87
       ],
       "type": "polygon",
       "color": "rgba(89, 176, 60, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xcors": [
         85,
         60,
         54,
         72,
         85,
         107
       ],
       "ycors": [
         204,
         233,
         254,
         266,
         252,
         210
       ],
       "type": "polygon",
       "color": "rgba(89, 176, 60, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xcors": [
         119,
         179,
         209,
         224,
         220,
         175,
         128,
         81,
         74,
         88
       ],
       "ycors": [
         75,
         75,
         101,
         135,
         225,
         261,
         261,
         224,
         135,
         99
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "wheel": {
   "rotate": false,
   "elements": [
     {
       "x": 3,
       "y": 3,
       "diam": 294,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x": 30,
       "y": 30,
       "diam": 240,
       "type": "circle",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "x1": 150,
       "y1": 285,
       "x2": 150,
       "y2": 15,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     },
     {
       "x1": 15,
       "y1": 150,
       "x2": 285,
       "y2": 150,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     },
     {
       "x": 120,
       "y": 120,
       "diam": 60,
       "type": "circle",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "x1": 216,
       "y1": 40,
       "x2": 79,
       "y2": 269,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     },
     {
       "x1": 40,
       "y1": 84,
       "x2": 269,
       "y2": 221,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     },
     {
       "x1": 40,
       "y1": 216,
       "x2": 269,
       "y2": 79,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     },
     {
       "x1": 84,
       "y1": 40,
       "x2": 221,
       "y2": 269,
       "type": "line",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": false,
       "marked": true
     }
   ]
 },
 "wolf": {
   "rotate": false,
   "elements": [
     {
       "xcors": [
         253,
         245,
         245
       ],
       "ycors": [
         133,
         131,
         133
       ],
       "type": "polygon",
       "color": "rgba(0, 0, 0, 1.0)",
       "filled": true,
       "marked": false
     },
     {
       "xcors": [
         2,
         13,
         30,
         38,
         38,
         20,
         20,
         27,
         38,
         40,
         31,
         31,
         60,
         68,
         75,
         66,
         65,
         82,
         84,
         100,
         103,
         77,
         79,
         100,
         98,
         119,
         143,
         160,
         166,
         172,
         173,
         167,
         160,
         154,
         169,
         178,
         186,
         198,
         200,
         217,
         219,
         207,
         195,
         192,
         210,
         227,
         242,
         259,
         284,
         277,
         293,
         299,
         297,
         273,
         270
       ],
       "ycors": [
         194,
         197,
         191,
         193,
         205,
         226,
         257,
         265,
         266,
         260,
         253,
         230,
         206,
         198,
         209,
         228,
         243,
         261,
         268,
         267,
         261,
         239,
         231,
         207,
         196,
         201,
         202,
         195,
         210,
         213,
         238,
         251,
         248,
         265,
         264,
         247,
         240,
         260,
         271,
         271,
         262,
         258,
         230,
         198,
         184,
         164,
         144,
         145,
         151,
         141,
         140,
         134,
         127,
         119,
         105
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         -1,
         14,
         36,
         40,
         53,
         82,
         134,
         159,
         188,
         227,
         236,
         238,
         268,
         269,
         281,
         269,
         269
       ],
       "ycors": [
         195,
         180,
         166,
         153,
         140,
         131,
         133,
         126,
         115,
         108,
         102,
         98,
         86,
         92,
         87,
         103,
         113
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 },
 "x": {
   "rotate": false,
   "elements": [
     {
       "xcors": [
         270,
         225,
         30,
         75
       ],
       "ycors": [
         75,
         30,
         225,
         270
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     },
     {
       "xcors": [
         30,
         75,
         270,
         225
       ],
       "ycors": [
         75,
         30,
         225,
         270
       ],
       "type": "polygon",
       "color": "rgba(141, 141, 141, 1.0)",
       "filled": true,
       "marked": true
     }
   ]
 }

} </script>

   <script>(function() {
 var bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
 window.Line = (function() {
   function Line(x11, y11, x21, y21) {
     this.x1 = x11;
     this.y1 = y11;
     this.x2 = x21;
     this.y2 = y21;
   }
   Line.prototype.midpoint = function() {
     var midpointX, midpointY;
     midpointX = (this.x1 + this.x2) / 2;
     midpointY = (this.y1 + this.y2) / 2;
     return [midpointX, midpointY];
   };
   return Line;
 })();
 window.LinkDrawer = (function() {
   function LinkDrawer(view, shapes) {
     var directionIndicators, name, ref, shape;
     this.view = view;
     this.shapes = shapes;
     this._drawLinkLine = bind(this._drawLinkLine, this);
     this.traceCurvedLine = bind(this.traceCurvedLine, this);
     directionIndicators = {};
     ref = this.shapes;
     for (name in ref) {
       shape = ref[name];
       directionIndicators[name] = shape['direction-indicator'];
     }
     this.linkShapeDrawer = new ShapeDrawer(directionIndicators);
   }
   LinkDrawer.prototype.traceCurvedLine = function(x1, y1, x2, y2, cx, cy, ctx) {
     ctx.moveTo(x1, y1);
     return ctx.quadraticCurveTo(cx, cy, x2, y2);
   };
   LinkDrawer.prototype.shouldWrapInDim = function(canWrap, dimensionSize, cor1, cor2) {
     var distance;
     distance = Math.abs(cor1 - cor2);
     return canWrap && distance > dimensionSize / 2;
   };
   LinkDrawer.prototype.calculateShortestLineAngle = function(x1, y1, x2, y2) {
     var shortestX, shortestY;
     shortestX = Math.min(x1 - x2, x2 - x1);
     shortestY = Math.min(y1 - y2, y2 - y1);
     return Math.atan2(shortestY, shortestX);
   };
   LinkDrawer.prototype.calculateComps = function(x1, y1, x2, y2, size) {
     var xcomp, ycomp;
     xcomp = (y2 - y1) / size;
     ycomp = (x1 - x2) / size;
     return [xcomp, ycomp];
   };
   LinkDrawer.prototype.calculateSublineOffset = function(centerOffset, thickness, xcomp, ycomp) {
     var thicknessFactor, xOff, yOff;
     thicknessFactor = thickness / this.view.onePixel;
     xOff = centerOffset * thicknessFactor * xcomp;
     yOff = centerOffset * thicknessFactor * ycomp;
     return [xOff, yOff];
   };
   LinkDrawer.prototype.getOffsetSubline = function(x1, y1, x2, y2, xOff, yOff) {
     var lx1, lx2, ly1, ly2;
     lx1 = x1 + xOff;
     lx2 = x2 + xOff;
     ly1 = y1 + yOff;
     ly2 = y2 + yOff;
     return new Line(lx1, ly1, lx2, ly2);
   };
   LinkDrawer.prototype.calculateControlPoint = function(midpointX, midpointY, curviness, xcomp, ycomp) {
     var controlX, controlY;
     controlX = midpointX - curviness * xcomp;
     controlY = midpointY - curviness * ycomp;
     return [controlX, controlY];
   };
   LinkDrawer.prototype.drawSubline = function(arg, dashPattern, thickness, color, isCurved, controlX, controlY, ctx) {
     var x1, x2, y1, y2;
     x1 = arg.x1, y1 = arg.y1, x2 = arg.x2, y2 = arg.y2;
     ctx.save();
     ctx.beginPath();
     ctx.setLineDash(dashPattern.map((function(_this) {
       return function(x) {
         return x * _this.view.onePixel;
       };
     })(this)));
     ctx.strokeStyle = netlogoColorToCSS(color);
     ctx.lineWidth = thickness;
     ctx.lineCap = isCurved ? 'round' : 'square';
     this.traceCurvedLine(x1, y1, x2, y2, controlX, controlY, ctx);
     ctx.stroke();
     ctx.setLineDash([1, 0]);
     return ctx.restore();
   };
   LinkDrawer.prototype.drawShape = function(x, y, cx, cy, heading, color, thickness, linkShape, shapeName, ctx) {
     var baseThickness, realThickness, scale, shapeTheta, shift, shiftCoefficientX, shiftCoefficientY, sx, sy, theta, thicknessFactor;
     ctx.save();
     theta = this.calculateShortestLineAngle(x, y, cx, cy);
     shiftCoefficientX = x - cx > 0 ? -1 : 1;
     shiftCoefficientY = y - cy > 0 ? -1 : 1;
     shift = this.view.onePixel * 20;
     sx = x + shift * Math.abs(Math.cos(theta)) * shiftCoefficientX;
     sy = y + shift * Math.abs(Math.sin(theta)) * shiftCoefficientY;
     shapeTheta = Math.atan2(sy - y, sx - x) - Math.PI / 2;
     ctx.translate(sx, sy);
     if (linkShape['direction-indicator'].rotate) {
       ctx.rotate(shapeTheta);
     } else {
       ctx.rotate(Math.PI);
     }
     thicknessFactor = thickness / this.view.onePixel;
     baseThickness = 3 / 2;
     if (thickness <= 1) {
       scale = 1 / this.view.onePixel / 2;
       realThickness = thickness * baseThickness;
     } else {
       scale = thicknessFactor / 2;
       realThickness = baseThickness;
     }
     ctx.scale(scale, scale);
     this.linkShapeDrawer.drawShape(ctx, color, shapeName, realThickness);
     return ctx.restore();
   };
   LinkDrawer.prototype.drawLabel = function(x, y, labelText, color) {
     return this.view.drawLabel(x - 3 * this.view.onePixel, y + 3 * this.view.onePixel, labelText, color);
   };
   LinkDrawer.prototype.draw = function(link, end1, end2, canWrapX, canWrapY, ctx, isStamp) {
     var adjustedThickness, color, theta, thickness, wrapX, wrapY, x1, x2, y1, y2;
     if (ctx == null) {
       ctx = this.view.ctx;
     }
     if (isStamp == null) {
       isStamp = false;
     }
     if (!link['hidden?']) {
       color = link.color, thickness = link.thickness;
       x1 = end1.xcor, y1 = end1.ycor;
       x2 = end2.xcor, y2 = end2.ycor;
       theta = this.calculateShortestLineAngle(x1, y1, x2, y2);
       adjustedThickness = thickness > this.view.onePixel ? thickness : this.view.onePixel;
       wrapX = this.shouldWrapInDim(canWrapX, this.view.worldWidth, x1, x2);
       wrapY = this.shouldWrapInDim(canWrapY, this.view.worldHeight, y1, y2);
       return this.getWrappedLines(x1, y1, x2, y2, wrapX, wrapY).forEach(this._drawLinkLine(link, adjustedThickness, ctx, isStamp));
     }
   };
   LinkDrawer.prototype._drawLinkLine = function(arg, thickness, ctx, isStamp) {
     var color, heading, isDirected, label, labelColor, shapeName, size;
     color = arg.color, size = arg.size, heading = arg.heading, isDirected = arg['directed?'], shapeName = arg.shape, label = arg.label, labelColor = arg['label-color'];
     return (function(_this) {
       return function(arg1) {
         var curviness, lines, linkShape, x1, x2, y1, y2;
         x1 = arg1.x1, y1 = arg1.y1, x2 = arg1.x2, y2 = arg1.y2;
         linkShape = _this.shapes[shapeName];
         curviness = linkShape.curviness, lines = linkShape.lines;
         return lines.forEach(function(line) {
           var centerOffset, controlX, controlY, dashPattern, hasLabel, isCurved, isMiddleLine, midpointX, midpointY, offsetSubline, ref, ref1, ref2, ref3, visible, xOff, xcomp, yOff, ycomp;
           centerOffset = line['x-offset'], dashPattern = line['dash-pattern'], visible = line['is-visible'];
           if (visible) {
             ref = _this.calculateComps(x1, y1, x2, y2, size), xcomp = ref[0], ycomp = ref[1];
             ref1 = _this.calculateSublineOffset(centerOffset, thickness, xcomp, ycomp), xOff = ref1[0], yOff = ref1[1];
             offsetSubline = _this.getOffsetSubline(x1, y1, x2, y2, xOff, yOff);
             isMiddleLine = line === lines[1];
             isCurved = curviness > 0;
             hasLabel = label != null;
             ref2 = offsetSubline.midpoint(), midpointX = ref2[0], midpointY = ref2[1];
             ref3 = _this.calculateControlPoint(midpointX, midpointY, curviness, xcomp, ycomp), controlX = ref3[0], controlY = ref3[1];
             _this.drawSubline(offsetSubline, dashPattern, thickness, color, isCurved, controlX, controlY, ctx);
             if (isMiddleLine) {
               if (isDirected && size > (.25 * _this.view.onePixel)) {
                 _this.drawShape(x2, y2, controlX, controlY, heading, color, thickness, linkShape, shapeName, ctx);
               }
               if (hasLabel && !isStamp) {
                 return _this.drawLabel(controlX, controlY, label, labelColor);
               }
             }
           }
         });
       };
     })(this);
   };
   LinkDrawer.prototype.getWrappedLines = function(x1, y1, x2, y2, lineWrapsX, lineWrapsY) {
     var worldHeight, worldWidth;
     worldWidth = this.view.worldWidth;
     worldHeight = this.view.worldHeight;
     if (lineWrapsX && lineWrapsY) {
       if (x1 < x2) {
         if (y1 < y2) {
           return [new Line(x1, y1, x2 - worldWidth, y2 - worldHeight), new Line(x1 + worldWidth, y1, x2, y2 - worldHeight), new Line(x1 + worldWidth, y1 + worldHeight, x2, y2), new Line(x1, y1 + worldHeight, x2 - worldWidth, y2)];
         } else {
           return [new Line(x1, y1, x2 - worldWidth, y2 + worldHeight), new Line(x1 + worldWidth, y1, x2, y2 + worldHeight), new Line(x1 + worldWidth, y1 - worldHeight, x2, y2), new Line(x1, y1 - worldHeight, x2 - worldWidth, y2)];
         }
       } else {
         if (y1 < y2) {
           return [new Line(x1, y1, x2 + worldWidth, y2 - worldHeight), new Line(x1 - worldWidth, y1, x2, y2 - worldHeight), new Line(x1 - worldWidth, y1 + worldHeight, x2, y2), new Line(x1, y1 + worldHeight, x2 + worldWidth, y2)];
         } else {
           return [new Line(x1, y1, x2 + worldWidth, y2 + worldHeight), new Line(x1 - worldWidth, y1, x2, y2 + worldHeight), new Line(x1 - worldWidth, y1 - worldHeight, x2, y2), new Line(x1, y1 - worldHeight, x2 + worldWidth, y2)];
         }
       }
     } else if (lineWrapsX) {
       if (x1 < x2) {
         return [new Line(x1, y1, x2 - worldWidth, y2), new Line(x1 + worldWidth, y1, x2, y2)];
       } else {
         return [new Line(x1, y1, x2 + worldWidth, y2), new Line(x1 - worldWidth, y1, x2, y2)];
       }
     } else if (lineWrapsY) {
       if (y1 < y2) {
         return [new Line(x1, y1, x2, y2 - worldHeight), new Line(x1, y1 + worldHeight, x2, y2)];
       } else {
         return [new Line(x1, y1 - worldHeight, x2, y2), new Line(x1, y1, x2, y2 + worldHeight)];
       }
     } else {
       return [new Line(x1, y1, x2, y2)];
     }
   };
   return LinkDrawer;
 })();

}).call(this);

//# sourceMappingURL=linkdrawer.js.map </script>

   <script>(function() {
 var Drawer, DrawingLayer, FOLLOW, OBSERVE, PatchDrawer, RIDE, SpotlightDrawer, TurtleDrawer, View, WATCH,
   bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
   extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
   hasProp = {}.hasOwnProperty,
   slice = [].slice;
 window.AgentStreamController = (function() {
   function AgentStreamController(container, fontSize) {
     this.container = container;
     this.mouseYcor = bind(this.mouseYcor, this);
     this.mouseXcor = bind(this.mouseXcor, this);
     this.view = new View(fontSize);
     this.turtleDrawer = new TurtleDrawer(this.view);
     this.drawingLayer = new DrawingLayer(this.view, this.turtleDrawer);
     this.patchDrawer = new PatchDrawer(this.view);
     this.spotlightDrawer = new SpotlightDrawer(this.view);
     this.container.appendChild(this.view.visibleCanvas);
     this.mouseDown = false;
     this.mouseInside = false;
     this.mouseX = 0;
     this.mouseY = 0;
     this.initMouseTracking();
     this.initTouchTracking();
     this.model = new AgentModel();
     this.model.world.turtleshapelist = defaultShapes;
     this.repaint();
   }
   AgentStreamController.prototype.mouseXcor = function() {
     return this.view.xPixToPcor(this.mouseX);
   };
   AgentStreamController.prototype.mouseYcor = function() {
     return this.view.yPixToPcor(this.mouseY);
   };
   AgentStreamController.prototype.initMouseTracking = function() {
     this.view.visibleCanvas.addEventListener('mousedown', (function(_this) {
       return function(e) {
         return _this.mouseDown = true;
       };
     })(this));
     document.addEventListener('mouseup', (function(_this) {
       return function(e) {
         return _this.mouseDown = false;
       };
     })(this));
     this.view.visibleCanvas.addEventListener('mouseenter', (function(_this) {
       return function(e) {
         return _this.mouseInside = true;
       };
     })(this));
     this.view.visibleCanvas.addEventListener('mouseleave', (function(_this) {
       return function(e) {
         return _this.mouseInside = false;
       };
     })(this));
     return this.view.visibleCanvas.addEventListener('mousemove', (function(_this) {
       return function(e) {
         var rect;
         rect = _this.view.visibleCanvas.getBoundingClientRect();
         _this.mouseX = e.clientX - rect.left;
         return _this.mouseY = e.clientY - rect.top;
       };
     })(this));
   };
   AgentStreamController.prototype.initTouchTracking = function() {
     var endTouch, trackTouch;
     endTouch = (function(_this) {
       return function(e) {
         _this.mouseDown = false;
         _this.mouseInside = false;
       };
     })(this);
     trackTouch = (function(_this) {
       return function(arg) {
         var bottom, clientX, clientY, left, ref, right, top;
         clientX = arg.clientX, clientY = arg.clientY;
         ref = _this.view.visibleCanvas.getBoundingClientRect(), bottom = ref.bottom, left = ref.left, top = ref.top, right = ref.right;
         if (((left <= clientX && clientX <= right)) && ((top <= clientY && clientY <= bottom))) {
           _this.mouseInside = true;
           _this.mouseX = clientX - left;
           _this.mouseY = clientY - top;
         } else {
           _this.mouseInside = false;
         }
       };
     })(this);
     document.addEventListener('touchend', endTouch);
     document.addEventListener('touchcancel', endTouch);
     this.view.visibleCanvas.addEventListener('touchmove', (function(_this) {
       return function(e) {
         e.preventDefault();
         trackTouch(e.changedTouches[0]);
       };
     })(this));
     this.view.visibleCanvas.addEventListener('touchstart', (function(_this) {
       return function(e) {
         _this.mouseDown = true;
         trackTouch(e.touches[0]);
       };
     })(this));
   };
   AgentStreamController.prototype.repaint = function() {
     this.view.transformToWorld(this.model.world);
     this.patchDrawer.repaint(this.model);
     this.drawingLayer.repaint(this.model);
     this.turtleDrawer.repaint(this.model);
     this.spotlightDrawer.repaint(this.model);
     return this.view.repaint(this.model);
   };
   AgentStreamController.prototype.applyUpdate = function(modelUpdate) {
     return this.model.update(modelUpdate);
   };
   AgentStreamController.prototype.update = function(modelUpdate) {
     var k, len, u, updates;
     updates = Array.isArray(modelUpdate) ? modelUpdate : [modelUpdate];
     for (k = 0, len = updates.length; k < len; k++) {
       u = updates[k];
       this.applyUpdate(u);
     }
     return this.repaint();
   };
   return AgentStreamController;
 })();
 OBSERVE = 0;
 RIDE = 1;
 FOLLOW = 2;
 WATCH = 3;
 View = (function() {
   function View(fontSize1) {
     this.fontSize = fontSize1;
     this.usePatchCoordinates = bind(this.usePatchCoordinates, this);
     this.canvas = document.createElement('canvas');
     this.ctx = this.canvas.getContext('2d');
     this.visibleCanvas = document.createElement('canvas');
     this.visibleCanvas.classList.add('netlogo-canvas', 'unselectable');
     this.visibleCanvas.width = 500;
     this.visibleCanvas.height = 500;
     this.visibleCanvas.style.width = "100%";
     this.visibleCtx = this.visibleCanvas.getContext('2d');
   }
   View.prototype.transformToWorld = function(world) {
     return this.transformCanvasToWorld(world, this.canvas, this.ctx);
   };
   View.prototype.transformCanvasToWorld = function(world, canvas, ctx) {
     var ref;
     this.quality = Math.max((ref = window.devicePixelRatio) != null ? ref : 2, 2);
     this.maxpxcor = world.maxpxcor != null ? world.maxpxcor : 25;
     this.minpxcor = world.minpxcor != null ? world.minpxcor : -25;
     this.maxpycor = world.maxpycor != null ? world.maxpycor : 25;
     this.minpycor = world.minpycor != null ? world.minpycor : -25;
     this.patchsize = world.patchsize != null ? world.patchsize : 9;
     this.wrapX = world.wrappingallowedinx;
     this.wrapY = world.wrappingallowediny;
     this.onePixel = 1 / this.patchsize;
     this.worldWidth = this.maxpxcor - this.minpxcor + 1;
     this.worldHeight = this.maxpycor - this.minpycor + 1;
     this.worldCenterX = (this.maxpxcor + this.minpxcor) / 2;
     this.worldCenterY = (this.maxpycor + this.minpycor) / 2;
     this.centerX = this.worldWidth / 2;
     this.centerY = this.worldHeight / 2;
     canvas.width = this.worldWidth * this.patchsize * this.quality;
     canvas.height = this.worldHeight * this.patchsize * this.quality;
     canvas.style.width = this.worldWidth * this.patchsize;
     canvas.style.height = this.worldHeight * this.patchsize;
     ctx.font = this.fontSize + 'px "Lucida Grande", sans-serif';
     ctx.imageSmoothingEnabled = false;
     ctx.webkitImageSmoothingEnabled = false;
     ctx.mozImageSmoothingEnabled = false;
     ctx.oImageSmoothingEnabled = false;
     return ctx.msImageSmoothingEnabled = false;
   };
   View.prototype.usePatchCoordinates = function(ctx) {
     if (ctx == null) {
       ctx = this.ctx;
     }
     return (function(_this) {
       return function(drawFn) {
         var h, w;
         ctx.save();
         w = _this.canvas.width;
         h = _this.canvas.height;
         ctx.setTransform(w / _this.worldWidth, 0, 0, -h / _this.worldHeight, -(_this.minpxcor - .5) * w / _this.worldWidth, (_this.maxpycor + .5) * h / _this.worldHeight);
         drawFn();
         return ctx.restore();
       };
     })(this);
   };
   View.prototype.withCompositing = function(gco, ctx) {
     if (ctx == null) {
       ctx = this.ctx;
     }
     return function(drawFn) {
       var oldGCO;
       oldGCO = ctx.globalCompositeOperation;
       ctx.globalCompositeOperation = gco;
       drawFn();
       return ctx.globalCompositeOperation = oldGCO;
     };
   };
   View.prototype.offsetX = function() {
     return this.worldCenterX - this.centerX;
   };
   View.prototype.offsetY = function() {
     return this.worldCenterY - this.centerY;
   };
   View.prototype.xPixToPcor = function(x) {
     return (this.worldWidth * x / this.visibleCanvas.clientWidth + this.worldWidth - this.offsetX()) % this.worldWidth + this.minpxcor - .5;
   };
   View.prototype.yPixToPcor = function(y) {
     return (-this.worldHeight * y / this.visibleCanvas.clientHeight + 2 * this.worldHeight - this.offsetY()) % this.worldHeight + this.minpycor - .5;
   };
   View.prototype.xPcorToCanvas = function(x) {
     return (x - this.minpxcor + .5) / this.worldWidth * this.visibleCanvas.width;
   };
   View.prototype.yPcorToCanvas = function(y) {
     return (this.maxpycor + .5 - y) / this.worldHeight * this.visibleCanvas.height;
   };
   View.prototype.drawLabel = function(xcor, ycor, label, color, ctx) {
     if (ctx == null) {
       ctx = this.ctx;
     }
     label = label != null ? label.toString() : ;
     if (label.length > 0) {
       return this.drawWrapped(xcor, ycor, label.length * this.fontSize / this.onePixel, (function(_this) {
         return function(x, y) {
           ctx.save();
           ctx.translate(x, y);
           ctx.scale(_this.onePixel, -_this.onePixel);
           ctx.textAlign = 'end';
           ctx.fillStyle = netlogoColorToCSS(color);
           ctx.fillText(label, 0, 0);
           return ctx.restore();
         };
       })(this));
     }
   };
   View.prototype.drawWrapped = function(xcor, ycor, size, drawFn) {
     var k, l, len, len1, x, xs, y, ys;
     xs = this.wrapX ? [xcor - this.worldWidth, xcor, xcor + this.worldWidth] : [xcor];
     ys = this.wrapY ? [ycor - this.worldHeight, ycor, ycor + this.worldHeight] : [ycor];
     for (k = 0, len = xs.length; k < len; k++) {
       x = xs[k];
       if ((x + size / 2) > this.minpxcor - 0.5 && (x - size / 2) < this.maxpxcor + 0.5) {
         for (l = 0, len1 = ys.length; l < len1; l++) {
           y = ys[l];
           if ((y + size / 2) > this.minpycor - 0.5 && (y - size / 2) < this.maxpycor + 0.5) {
             drawFn(x, y);
           }
         }
       }
     }
   };
   View.prototype.turtleType = 1;
   View.prototype.patchType = 2;
   View.prototype.linkType = 3;
   View.prototype.watch = function(model) {
     var id, links, observer, patches, ref, turtles, type;
     observer = model.observer, turtles = model.turtles, links = model.links, patches = model.patches;
     if (model.observer.perspective !== OBSERVE && observer.targetagent && observer.targetagent[1] >= 0) {
       ref = observer.targetagent, type = ref[0], id = ref[1];
       switch (type) {
         case this.turtleType:
           return model.turtles[id];
         case this.patchType:
           return model.patches[id];
         case this.linkType:
           return model.links[id];
       }
     } else {
       return null;
     }
   };
   View.prototype.follow = function(model) {
     var persp;
     persp = model.observer.perspective;
     if (persp === FOLLOW || persp === RIDE) {
       return this.watch(model);
     } else {
       return null;
     }
   };
   View.prototype.repaint = function(model) {
     var dx, dy, height, k, len, results, target, width, x, xs, y, ys;
     target = this.follow(model);
     this.visibleCanvas.width = this.canvas.width;
     this.visibleCanvas.height = this.canvas.height;
     this.visibleCanvas.style.width = this.canvas.style.width;
     this.visibleCanvas.style.height = this.canvas.style.height;
     if (target != null) {
       width = this.visibleCanvas.width;
       height = this.visibleCanvas.height;
       this.centerX = target.xcor;
       this.centerY = target.ycor;
       x = -this.xPcorToCanvas(this.centerX) + width / 2;
       y = -this.yPcorToCanvas(this.centerY) + height / 2;
       xs = this.wrapX ? [x - width, x, x + width] : [x];
       ys = this.wrapY ? [y - height, y, y + height] : [y];
       results = [];
       for (k = 0, len = xs.length; k < len; k++) {
         dx = xs[k];
         results.push((function() {
           var l, len1, results1;
           results1 = [];
           for (l = 0, len1 = ys.length; l < len1; l++) {
             dy = ys[l];
             results1.push(this.visibleCtx.drawImage(this.canvas, dx, dy));
           }
           return results1;
         }).call(this));
       }
       return results;
     } else {
       this.centerX = this.worldCenterX;
       this.centerY = this.worldCenterY;
       return this.visibleCtx.drawImage(this.canvas, 0, 0);
     }
   };
   return View;
 })();
 Drawer = (function() {
   function Drawer(view) {
     this.view = view;
   }
   return Drawer;
 })();


 /*
 Possible drawing events:
 
 { type: "clear-drawing" }
 
 { type: "line", fromX, fromY, toX, toY, rgb, size, penMode }
 
 { type: "stamp-image", agentType: "turtle", stamp: {x, y, size, heading, color, shapeName, stampMode} }
 
 { type: "stamp-image", agentType: "link", stamp: {
     x1, y1, x2, y2, midpointX, midpointY, heading, color, shapeName, thickness, 'directed?', size, 'hidden?', stampMode
   }
 }
  */
 DrawingLayer = (function(superClass) {
   extend(DrawingLayer, superClass);
   function DrawingLayer(view, turtleDrawer) {
     this.view = view;
     this.turtleDrawer = turtleDrawer;
     this.drawLine = bind(this.drawLine, this);
     this.canvas = document.createElement('canvas');
     this.canvas.id = 'dlayer';
     this.ctx = this.canvas.getContext('2d');
   }
   DrawingLayer.prototype.resizeCanvas = function() {
     this.canvas.width = this.view.canvas.width;
     return this.canvas.height = this.view.canvas.height;
   };
   DrawingLayer.prototype.clearDrawing = function() {
     return this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
   };
   DrawingLayer.prototype._rgbToCss = function(arg) {
     var b, g, r;
     r = arg[0], g = arg[1], b = arg[2];
     return "rgb(" + r + ", " + g + ", " + b + ")";
   };
   DrawingLayer.prototype.makeMockTurtleObject = function(arg) {
     var color, heading, shape, size, xcor, ycor;
     xcor = arg.x, ycor = arg.y, shape = arg.shapeName, size = arg.size, heading = arg.heading, color = arg.color;
     return {
       xcor: xcor,
       ycor: ycor,
       shape: shape,
       size: size,
       heading: heading,
       color: color
     };
   };
   DrawingLayer.prototype.makeMockLinkObject = function(arg) {
     var color, end1, end2, heading, isDirected, isHidden, midpointX, midpointY, mockLink, shapeName, size, thickness, x1, x2, y1, y2;
     x1 = arg.x1, y1 = arg.y1, x2 = arg.x2, y2 = arg.y2, shapeName = arg.shapeName, color = arg.color, heading = arg.heading, size = arg.size, isDirected = arg['directed?'], isHidden = arg['hidden?'], midpointX = arg.midpointX, midpointY = arg.midpointY, thickness = arg.thickness;
     end1 = {
       xcor: x1,
       ycor: y1
     };
     end2 = {
       xcor: x2,
       ycor: y2
     };
     mockLink = {
       shape: shapeName,
       color: color,
       heading: heading,
       size: size,
       'directed?': isDirected,
       'hidden?': isHidden,
       midpointX: midpointX,
       midpointY: midpointY,
       thickness: thickness
     };
     return [mockLink, end1, end2];
   };
   DrawingLayer.prototype.stampTurtle = function(turtleStamp) {
     var mockTurtleObject;
     mockTurtleObject = this.makeMockTurtleObject(turtleStamp);
     return this.view.usePatchCoordinates(this.ctx)((function(_this) {
       return function() {
         return _this.view.withCompositing(_this.compositingOperation(turtleStamp.stampMode), _this.ctx)(function() {
           return _this.turtleDrawer.drawTurtle(mockTurtleObject, _this.ctx, true);
         });
       };
     })(this));
   };
   DrawingLayer.prototype.stampLink = function(linkStamp) {
     var mockLinkObject;
     mockLinkObject = this.makeMockLinkObject(linkStamp);
     return this.view.usePatchCoordinates(this.ctx)((function(_this) {
       return function() {
         return _this.view.withCompositing(_this.compositingOperation(linkStamp.stampMode), _this.ctx)(function() {
           var ref;
           return (ref = _this.turtleDrawer.linkDrawer).draw.apply(ref, slice.call(mockLinkObject).concat([_this.wrapX], [_this.wrapY], [_this.ctx], [true]));
         });
       };
     })(this));
   };
   DrawingLayer.prototype.compositingOperation = function(mode) {
     if (mode === 'erase') {
       return 'destination-out';
     } else {
       return 'source-over';
     }
   };
   DrawingLayer.prototype.drawStamp = function(arg) {
     var agentType, stamp;
     agentType = arg.agentType, stamp = arg.stamp;
     if (agentType === 'turtle') {
       return this.stampTurtle(stamp);
     } else if (agentType === 'link') {
       return this.stampLink(stamp);
     }
   };
   DrawingLayer.prototype.drawLine = function(arg) {
     var color, penColor, penMode, size, x1, x2, y1, y2;
     color = arg.rgb, size = arg.size, penMode = arg.penMode, x1 = arg.fromX, y1 = arg.fromY, x2 = arg.toX, y2 = arg.toY;
     if (penMode !== 'up') {
       penColor = color;
       return this.view.usePatchCoordinates(this.ctx)((function(_this) {
         return function() {
           _this.ctx.save();
           _this.ctx.strokeStyle = _this._rgbToCss(penColor);
           _this.ctx.lineWidth = _this.view.onePixel;
           _this.ctx.beginPath();
           _this.ctx.moveTo(x1, y1);
           _this.ctx.lineTo(x2, y2);
           _this.view.withCompositing(_this.compositingOperation(penMode), _this.ctx)(function() {
             return _this.ctx.stroke();
           });
           return _this.ctx.restore();
         };
       })(this));
     }
   };
   DrawingLayer.prototype.draw = function() {
     return this.events.forEach((function(_this) {
       return function(event) {
         switch (event.type) {
           case 'clear-drawing':
             return _this.clearDrawing();
           case 'line':
             return _this.drawLine(event);
           case 'stamp-image':
             return _this.drawStamp(event);
         }
       };
     })(this));
   };
   DrawingLayer.prototype.repaint = function(model) {
     var world;
     world = model.world;
     this.wrapX = world.wrappingallowedinx;
     this.wrapY = world.wrappingallowediny;
     this.events = model.drawingEvents;
     model.drawingEvents = [];
     if (this.canvas.width !== this.view.canvas.width || this.canvas.height !== this.view.canvas.height) {
       this.resizeCanvas();
     }
     this.draw();
     return this.view.ctx.drawImage(this.canvas, 0, 0);
   };
   return DrawingLayer;
 })(Drawer);
 SpotlightDrawer = (function(superClass) {
   extend(SpotlightDrawer, superClass);
   function SpotlightDrawer(view) {
     this.view = view;
   }
   SpotlightDrawer.prototype.dimmed = "rgba(0, 0, 50, " + (100 / 255) + ")";
   SpotlightDrawer.prototype.spotlightInnerBorder = "rgba(200, 255, 255, " + (100 / 255) + ")";
   SpotlightDrawer.prototype.spotlightOuterBorder = "rgba(200, 255, 255, " + (50 / 255) + ")";
   SpotlightDrawer.prototype.clear = 'white';
   SpotlightDrawer.prototype.outer = function() {
     return 10 / this.view.patchsize;
   };
   SpotlightDrawer.prototype.middle = function() {
     return 8 / this.view.patchsize;
   };
   SpotlightDrawer.prototype.inner = function() {
     return 4 / this.view.patchsize;
   };
   SpotlightDrawer.prototype.drawCircle = function(x, y, innerDiam, outerDiam, color) {
     var ctx;
     ctx = this.view.ctx;
     ctx.fillStyle = color;
     ctx.beginPath();
     ctx.arc(x, y, outerDiam / 2, 0, 2 * Math.PI);
     ctx.arc(x, y, innerDiam / 2, 0, 2 * Math.PI, true);
     return ctx.fill();
   };
   SpotlightDrawer.prototype.drawSpotlight = function(xcor, ycor, size, dimOther) {
     var ctx;
     ctx = this.view.ctx;
     ctx.lineWidth = this.view.onePixel;
     ctx.beginPath();
     if (dimOther) {
       this.view.drawWrapped(xcor, ycor, size + this.outer(), (function(_this) {
         return function(x, y) {
           ctx.moveTo(x, y);
           return ctx.arc(x, y, (size + _this.outer()) / 2, 0, 2 * Math.PI, true);
         };
       })(this));
       ctx.rect(this.view.minpxcor - 0.5, this.view.minpycor - 0.5, this.view.worldWidth, this.view.worldHeight);
       ctx.fillStyle = this.dimmed;
       ctx.fill();
     }
     return this.view.drawWrapped(xcor, ycor, size + this.outer(), (function(_this) {
       return function(x, y) {
         _this.drawCircle(x, y, size, size + _this.outer(), _this.dimmed);
         _this.drawCircle(x, y, size, size + _this.middle(), _this.spotlightOuterBorder);
         return _this.drawCircle(x, y, size, size + _this.inner(), _this.spotlightInnerBorder);
       };
     })(this));
   };
   SpotlightDrawer.prototype.adjustSize = function(size) {
     return Math.max(size, this.view.worldWidth / 16, this.view.worldHeight / 16);
   };
   SpotlightDrawer.prototype.dimensions = function(agent) {
     if (agent.xcor != null) {
       return [agent.xcor, agent.ycor, 2 * agent.size];
     } else if (agent.pxcor != null) {
       return [agent.pxcor, agent.pycor, 2];
     } else {
       return [agent.midpointx, agent.midpointy, agent.size];
     }
   };
   SpotlightDrawer.prototype.repaint = function(model) {
     return this.view.usePatchCoordinates()((function(_this) {
       return function() {
         var ref, size, watched, xcor, ycor;
         watched = _this.view.watch(model);
         if (watched != null) {
           ref = _this.dimensions(watched), xcor = ref[0], ycor = ref[1], size = ref[2];
           return _this.drawSpotlight(xcor, ycor, _this.adjustSize(size), model.observer.perspective === WATCH);
         }
       };
     })(this));
   };
   return SpotlightDrawer;
 })(Drawer);
 TurtleDrawer = (function(superClass) {
   extend(TurtleDrawer, superClass);
   function TurtleDrawer(view) {
     this.view = view;
     this.turtleShapeDrawer = new ShapeDrawer({}, this.view.onePixel);
     this.linkDrawer = new LinkDrawer(this.view, {});
   }
   TurtleDrawer.prototype.drawTurtle = function(turtle, ctx, isStamp) {
     var size, xcor, ycor;
     if (ctx == null) {
       ctx = this.view.ctx;
     }
     if (isStamp == null) {
       isStamp = false;
     }
     if (!turtle['hidden?']) {
       xcor = turtle.xcor;
       ycor = turtle.ycor;
       size = turtle.size;
       this.view.drawWrapped(xcor, ycor, size, ((function(_this) {
         return function(x, y) {
           return _this.drawTurtleAt(turtle, x, y, ctx);
         };
       })(this)));
       if (!isStamp) {
         return this.view.drawLabel(xcor + turtle.size / 2, ycor - turtle.size / 2, turtle.label, turtle['label-color'], ctx);
       }
     }
   };
   TurtleDrawer.prototype.drawTurtleAt = function(turtle, xcor, ycor, ctx) {
     var angle, heading, scale, shape, shapeName;
     heading = turtle.heading;
     scale = turtle.size;
     angle = (180 - heading) / 360 * 2 * Math.PI;
     shapeName = turtle.shape;
     shape = this.turtleShapeDrawer.shapes[shapeName] || defaultShape;
     ctx.save();
     ctx.translate(xcor, ycor);
     if (shape.rotate) {
       ctx.rotate(angle);
     } else {
       ctx.rotate(Math.PI);
     }
     ctx.scale(scale, scale);
     this.turtleShapeDrawer.drawShape(ctx, turtle.color, shapeName, 1 / scale);
     return ctx.restore();
   };
   TurtleDrawer.prototype.drawLink = function(link, end1, end2, wrapX, wrapY) {
     return this.linkDrawer.draw(link, end1, end2, wrapX, wrapY);
   };
   TurtleDrawer.prototype.repaint = function(model) {
     var links, pixelRatioChanged, ref, turtleShapeListChanged, turtles, world;
     world = model.world;
     turtles = model.turtles;
     links = model.links;
     turtleShapeListChanged = (world.turtleshapelist != null) && world.turtleshapelist !== this.turtleShapeDrawer.shapes;
     pixelRatioChanged = this.turtleShapeDrawer.onePixel !== this.view.onePixel;
     if (turtleShapeListChanged || pixelRatioChanged) {
       this.turtleShapeDrawer = new ShapeDrawer((ref = world.turtleshapelist) != null ? ref : this.turtleShapeDrawer.shapes, this.view.onePixel);
     }
     if (world.linkshapelist !== this.linkDrawer.shapes && (world.linkshapelist != null)) {
       this.linkDrawer = new LinkDrawer(this.view, world.linkshapelist);
     }
     return this.view.usePatchCoordinates()((function(_this) {
       return function() {
         var end1, end2, id, link, results, turtle;
         for (id in links) {
           link = links[id];
           end1 = turtles[link.end1];
           end2 = turtles[link.end2];
           _this.drawLink(link, end1, end2, world.wrappingallowedinx, world.wrappingallowediny);
         }
         _this.view.ctx.lineWidth = _this.onePixel;
         results = [];
         for (id in turtles) {
           turtle = turtles[id];
           results.push(_this.drawTurtle(turtle));
         }
         return results;
       };
     })(this));
   };
   return TurtleDrawer;
 })(Drawer);
 PatchDrawer = (function() {
   function PatchDrawer(view) {
     this.view = view;
     this.scratchCanvas = document.createElement('canvas');
     this.scratchCtx = this.scratchCanvas.getContext('2d');
   }
   PatchDrawer.prototype.colorPatches = function(patches) {
     var b, g, height, i, imageData, j, k, maxX, maxY, minX, minY, numPatches, patch, r, ref, ref1, trans, width;
     width = this.view.worldWidth;
     height = this.view.worldHeight;
     minX = this.view.minpxcor;
     maxX = this.view.maxpxcor;
     minY = this.view.minpycor;
     maxY = this.view.maxpycor;
     this.scratchCanvas.width = width;
     this.scratchCanvas.height = height;
     imageData = this.scratchCtx.createImageData(width, height);
     numPatches = ((maxY - minY) * width + (maxX - minX)) * 4;
     for (i = k = 0, ref = numPatches; 0 <= ref ? k < ref : k > ref; i = 0 <= ref ? ++k : --k) {
       patch = patches[i];
       if (patch != null) {
         j = 4 * i;
         ref1 = netlogoColorToRGB(patch.pcolor), r = ref1[0], g = ref1[1], b = ref1[2];
         imageData.data[j + 0] = r;
         imageData.data[j + 1] = g;
         imageData.data[j + 2] = b;
         imageData.data[j + 3] = 255;
       }
     }
     this.scratchCtx.putImageData(imageData, 0, 0);
     trans = minY + maxY;
     return this.view.ctx.drawImage(this.scratchCanvas, 0, 0, this.view.canvas.width, this.view.canvas.height);
   };
   PatchDrawer.prototype.labelPatches = function(patches) {
     return this.view.usePatchCoordinates()((function(_this) {
       return function() {
         var ignore, patch, results;
         results = [];
         for (ignore in patches) {
           patch = patches[ignore];
           results.push(_this.view.drawLabel(patch.pxcor + .5, patch.pycor - .5, patch.plabel, patch['plabel-color']));
         }
         return results;
       };
     })(this));
   };
   PatchDrawer.prototype.clearPatches = function() {
     this.view.ctx.fillStyle = "black";
     return this.view.ctx.fillRect(0, 0, this.view.canvas.width, this.view.canvas.height);
   };
   PatchDrawer.prototype.repaint = function(model) {
     var patches, world;
     world = model.world;
     patches = model.patches;
     if (world.patchesallblack) {
       this.clearPatches();
     } else {
       this.colorPatches(patches);
     }
     if (world.patcheswithlabels) {
       return this.labelPatches(patches);
     }
   };
   return PatchDrawer;
 })();

}).call(this);

//# sourceMappingURL=view.js.map </script>

   <script>(function() {
 var createPlotOps, fillOutWidgets, isValidValue, partials, reporterOf, setUpButton, setUpDimensionsProxies, setUpMonitor, setUpSlider, showErrors, template,
   hasProp = {}.hasOwnProperty;
 window.bindWidgets = function(container, widgets, code, info, readOnly, filename) {
   var animateWithClass, clearMouse, controller, dialog, dropNLogoExtension, existsInObj, exporting, fontSizeProxy, model, mouse, mousetrap, output, outputWidget, plotOps, ractive, sanitizedMarkdown, updateUICallback, viewController, viewModel, widgetObj, worldConfig, write;
   if (typeof container === 'string') {
     container = document.querySelector(container);
   }
   controller = null;
   updateUICallback = function() {
     controller.redraw();
     return controller.updateWidgets();
   };
   fillOutWidgets(widgets, updateUICallback);
   sanitizedMarkdown = function(md) {
     return html_sanitize(markdown.toHTML(md), function(url) {
       if (/^https?:\/\//.test(url)) {
         return url;
       } else {
         return void 0;
       }
     }, function(id) {
       return id;
     });
   };
   dropNLogoExtension = function(s) {
     if (s.match(/.*\.nlogo/) != null) {
       return s.slice(0, -6);
     } else {
       return s;
     }
   };
   existsInObj = function(f) {
     return function(obj) {
       var _, v;
       for (_ in obj) {
         v = obj[_];
         if (f(v)) {
           return true;
         }
       }
       return false;
     };
   };
   widgetObj = widgets.reduce((function(acc, widget, index) {
     acc[index] = widget;
     return acc;
   }), {});
   model = {
     widgetObj: widgetObj,
     speed: 0.0,
     ticks: "",
     ticksStarted: false,
     width: 0,
     height: 0,
     code: code,
     info: info,
     readOnly: readOnly,
     lastCompiledCode: code,
     lastCompileFailed: false,
     isStale: false,
     exportForm: false,
     modelTitle: dropNLogoExtension(filename),
     consoleOutput: ,
     outputWidgetOutput: ,
     markdown: sanitizedMarkdown,
     hasFocus: false,
     isEditing: false,
     primaryView: void 0
   };
   animateWithClass = function(klass) {
     return function(t, params) {
       var event, eventNames, j, len, listener;
       params = t.processParams(params);
       eventNames = ['animationend', 'webkitAnimationEnd', 'oAnimationEnd', 'msAnimationEnd'];
       listener = function(l) {
         return function(e) {
           var event, j, len;
           e.target.classList.remove(klass);
           for (j = 0, len = eventNames.length; j < len; j++) {
             event = eventNames[j];
             e.target.removeEventListener(event, l);
           }
           return t.complete();
         };
       };
       for (j = 0, len = eventNames.length; j < len; j++) {
         event = eventNames[j];
         t.node.addEventListener(event, listener(listener));
       }
       return t.node.classList.add(klass);
     };
   };
   Ractive.transitions.grow = animateWithClass('growing');
   Ractive.transitions.shrink = animateWithClass('shrinking');
   ractive = new Ractive({
     el: container,
     template: template,
     partials: partials,
     components: {
       console: RactiveConsoleWidget,
       contextMenu: RactiveContextMenu,
       editableTitle: RactiveModelTitle,
       editor: RactiveEditorWidget,
       infotab: RactiveInfoTabWidget,
       tickCounter: RactiveTickCounter,
       labelWidget: RactiveLabel,
       switchWidget: RactiveSwitch,
       buttonWidget: RactiveButton,
       sliderWidget: RactiveSlider,
       chooserWidget: RactiveChooser,
       monitorWidget: RactiveMonitor,
       inputWidget: RactiveInput,
       outputWidget: RactiveOutputArea,
       plotWidget: RactivePlot,
       viewWidget: RactiveView
     },
     data: function() {
       return model;
     }
   });
   container.querySelector('.netlogo-model').focus();
   mousetrap = Mousetrap(container.querySelector('.netlogo-model'));
   mousetrap.bind(['ctrl+shift+alt+i', 'command+shift+alt+i'], (function(_this) {
     return function() {
       return ractive.fire('toggleInterfaceLock');
     };
   })(this));
   viewModel = widgets.filter(function(w) {
     return w.type === 'view';
   })[0];
   ractive.set('primaryView', viewModel);
   viewController = new AgentStreamController(container.querySelector('.netlogo-view-container'), viewModel.fontSize);
   setUpDimensionsProxies(viewModel, viewController.model.world);
   fontSizeProxy = addProxyTo(viewModel.proxies, [[viewModel, "fontSize"], [viewController.view, "fontSize"]], "fontSize", viewModel.fontSize);
   outputWidget = widgets.filter(function(w) {
     return w.type === 'output';
   })[0];
   plotOps = createPlotOps(container, widgets);
   clearMouse = function() {
     viewController.mouseDown = false;
   };
   mouse = {
     peekIsDown: function() {
       return viewController.mouseDown;
     },
     peekIsInside: function() {
       return viewController.mouseInside;
     },
     peekX: viewController.mouseXcor,
     peekY: viewController.mouseYcor
   };
   write = function(str) {
     return model.consoleOutput += str;
   };
   output = {
     clear: function() {
       return model.outputWidgetOutput = "";
     },
     write: function(str) {
       output = ractive.findComponent('outputWidget');
       return (output != null ? output : ractive.findComponent('console')).appendText(str);
     }
   };
   dialog = {
     confirm: function(str) {
       clearMouse();
       return window.confirm(str);
     },
     input: function(str) {
       clearMouse();
       return window.prompt(str, "");
     },
     notify: function(str) {
       clearMouse();
       return window.nlwAlerter.display("NetLogo Notification", true, str);
     },
     yesOrNo: function(str) {
       clearMouse();
       return window.confirm(str);
     }
   };
   worldConfig = {
     resizeWorld: function() {
       var runningForeverButtons;
       runningForeverButtons = widgets.filter(function(arg) {
         var forever, running, type;
         type = arg.type, forever = arg.forever, running = arg.running;
         return type === "button" && forever && running;
       });
       runningForeverButtons.forEach(function(button) {
         return button.running = false;
       });
     }
   };
   exporting = {
     exportOutput: function(filename) {
       var exportBlob, exportText, ref, ref1;
       exportText = (ref = (ref1 = ractive.findComponent('outputWidget')) != null ? ref1.get('text') : void 0) != null ? ref : ractive.findComponent('console').get('output');
       exportBlob = new Blob([exportText], {
         type: "text/plain:charset=utf-8"
       });
       saveAs(exportBlob, filename);
     },
     exportView: function(filename) {
       var anchor;
       anchor = document.createElement("a");
       anchor.setAttribute("href", viewController.view.visibleCanvas.toDataURL("img/png"));
       anchor.setAttribute("download", filename);
       anchor.click();
     }
   };
   ractive.observe('widgetObj.*.currentValue', function(newVal, oldVal, keyPath, widgetNum) {
     var widget;
     widget = widgetObj[widgetNum];
     if ((widget.variable != null) && (typeof world !== "undefined" && world !== null) && newVal !== oldVal && isValidValue(widget, newVal)) {
       return world.observer.setGlobal(widget.variable, newVal);
     }
   });
   ractive.observe('widgetObj.*.right', function() {
     var i, w;
     return this.set('width', Math.max.apply(Math, (function() {
       var ref, results;
       ref = this.get('widgetObj');
       results = [];
       for (i in ref) {
         if (!hasProp.call(ref, i)) continue;
         w = ref[i];
         if (w.right != null) {
           results.push(w.right);
         }
       }
       return results;
     }).call(this)));
   });
   ractive.observe('widgetObj.*.bottom', function() {
     var i, w;
     return this.set('height', Math.max.apply(Math, (function() {
       var ref, results;
       ref = this.get('widgetObj');
       results = [];
       for (i in ref) {
         if (!hasProp.call(ref, i)) continue;
         w = ref[i];
         if (w.bottom != null) {
           results.push(w.bottom);
         }
       }
       return results;
     }).call(this)));
   });
   ractive.on('checkFocus', function(_, node) {
     return this.set('hasFocus', document.activeElement === node);
   });
   ractive.on('checkActionKeys', function(_, e) {
     var char, ref, results, w;
     if (this.get('hasFocus')) {
       char = String.fromCharCode(e.which != null ? e.which : e.keyCode);
       ref = this.get('widgetObj');
       results = [];
       for (_ in ref) {
         w = ref[_];
         if (w.type === 'button' && w.actionKey === char) {
           results.push(w.run());
         }
       }
       return results;
     }
   });
   ractive.on('*.renameInterfaceGlobal', function(_, oldName, newName, value) {
     if (!existsInObj(function(arg) {
       var variable;
       variable = arg.variable;
       return variable === oldName;
     })(this.get('widgetObj'))) {
       world.observer.setGlobal(oldName, void 0);
     }
     world.observer.setGlobal(newName, value);
     return false;
   });
   ractive.on('*.redraw-view', function() {
     return viewController.repaint();
   });
   ractive.on('*.update-topology', function() {
     var ref, wrapX, wrapY;
     ref = viewController.model.world, wrapX = ref.wrappingallowedinx, wrapY = ref.wrappingallowediny;
     return world.changeTopology(wrapX, wrapY);
   });
   ractive.on('*.resize-view', function() {
     var maxpxcor, maxpycor, minpxcor, minpycor, patchSize, ref;
     ref = viewController.model.world, minpxcor = ref.minpxcor, maxpxcor = ref.maxpxcor, minpycor = ref.minpycor, maxpycor = ref.maxpycor, patchSize = ref.patchSize;
     world.patchSize = patchSize;
     return world.resize(minpxcor, maxpxcor, minpycor, maxpycor);
   });
   controller = new WidgetController(ractive, model, widgetObj, viewController, plotOps, mouse, write, output, dialog, worldConfig, exporting);
   ractive.on('*.unregisterWidget', function(_, id) {
     return controller.removeWidgetById(id);
   });
   setupInterfaceEditor(ractive);
   return controller;
 };
 showErrors = function(errors) {
   if (errors.length > 0) {
     if (window.nlwAlerter != null) {
       return window.nlwAlerter.displayError(errors.join('
')); } else { return alert(errors.join('\n')); } } };
 window.handlingErrors = function(f) {
   return function() {
     var ex, message;
     try {
       return f();
     } catch (error) {
       ex = error;
       if (!(ex instanceof Exception.HaltInterrupt)) {
         message = !(ex instanceof TypeError) ? ex.message : "A type error has occurred in the simulation engine.\nMore information about these sorts of errors can be found\n<a href=\"https://netlogoweb.org/info#type-errors\">here</a>.

\nAdvanced users might find the generated error helpful, which is as follows:

\n" + ex.message + "

"; showErrors([message]); throw new Exception.HaltInterrupt; } else { throw ex; } } }; };
 window.WidgetController = (function() {
   function WidgetController(ractive1, model1, widgetObj1, viewController1, plotOps1, mouse1, write1, output1, dialog1, worldConfig1, exporting1) {
     this.ractive = ractive1;
     this.model = model1;
     this.widgetObj = widgetObj1;
     this.viewController = viewController1;
     this.plotOps = plotOps1;
     this.mouse = mouse1;
     this.write = write1;
     this.output = output1;
     this.dialog = dialog1;
     this.worldConfig = worldConfig1;
     this.exporting = exporting1;
   }
   WidgetController.prototype.runForevers = function() {
     var j, len, ref, results, widget;
     ref = this.widgets();
     results = [];
     for (j = 0, len = ref.length; j < len; j++) {
       widget = ref[j];
       if (widget.type === 'button' && widget.forever && widget.running) {
         results.push(widget.run());
       } else {
         results.push(void 0);
       }
     }
     return results;
   };
   WidgetController.prototype.updateWidgets = function() {
     var _, chartOps, err, isValidValue, j, len, maxValue, minValue, ref, ref1, stepValue, value, widget;
     ref = this.plotOps;
     for (_ in ref) {
       chartOps = ref[_];
       chartOps.redraw();
     }
     ref1 = this.widgets();
     for (j = 0, len = ref1.length; j < len; j++) {
       widget = ref1[j];
       if (widget.currentValue != null) {
         if (widget.variable != null) {
           widget.currentValue = world.observer.getGlobal(widget.variable);
         } else if (widget.reporter != null) {
           try {
             widget.currentValue = widget.reporter();
             value = widget.currentValue;
             isValidValue = (value != null) && ((typeof value !== "number") || isFinite(value));
             if (!isValidValue) {
               widget.currentValue = 'N/A';
             }
           } catch (error) {
             err = error;
             widget.currentValue = 'N/A';
           }
         }
         if ((widget.precision != null) && typeof widget.currentValue === 'number' && isFinite(widget.currentValue)) {
           widget.currentValue = NLMath.precision(widget.currentValue, widget.precision);
         }
       }
       if (widget['type'] === 'slider') {
         maxValue = widget.getMax();
         stepValue = widget.getStep();
         minValue = widget.getMin();
         if (widget.maxValue !== maxValue || widget.stepValue !== stepValue || widget.minValue !== minValue) {
           widget.maxValue = maxValue;
           widget.stepValue = stepValue;
           widget.minValue = minValue - 0.000001;
           widget.minValue = minValue;
         }
       }
       if (widget['type'] === 'view') {
         widget.right = widget.left + this.viewController.container.scrollWidth;
         widget.bottom = widget.top + this.viewController.container.scrollHeight;
       }
     }
     if (world.ticker.ticksAreStarted()) {
       this.model.ticks = Math.floor(world.ticker.tickCount());
       this.model.ticksStarted = true;
     } else {
       this.model.ticks = ;
       this.model.ticksStarted = false;
     }
     return this.ractive.update();
   };
   WidgetController.prototype.removeWidgetById = function(id) {
     delete this.widgetObj[id];
   };
   WidgetController.prototype.widgets = function() {
     var _, ref, results, v;
     ref = this.widgetObj;
     results = [];
     for (_ in ref) {
       v = ref[_];
       results.push(v);
     }
     return results;
   };
   WidgetController.prototype.freshenUpWidgets = function(widgets) {
     var f, index, j, len, storedWidget, widget;
     for (index = j = 0, len = widgets.length; j < len; index = ++j) {
       widget = widgets[index];
       storedWidget = this.widgetObj[index];
       storedWidget.compilation = widget.compilation;
       f = (function() {
         switch (widget.type) {
           case "button":
             return setUpButton((function(_this) {
               return function() {
                 _this.redraw();
                 return _this.updateWidgets();
               };
             })(this));
           case "monitor":
             return setUpMonitor;
           case "slider":
             return setUpSlider;
         }
       }).call(this);
       if (typeof f === "function") {
         f(widget, storedWidget);
       }
     }
   };
   WidgetController.prototype.speed = function() {
     return this.model.speed;
   };
   WidgetController.prototype.setCode = function(code) {
     this.ractive.set('code', code);
     if (this.ractive.findComponent('editor') != null) {
       this.ractive.findComponent('editor').setCode(code);
     }
     this.ractive.fire('controller.recompile');
   };
   WidgetController.prototype.redraw = function() {
     if (Updater.hasUpdates()) {
       return this.viewController.update(Updater.collectUpdates());
     }
   };
   WidgetController.prototype.teardown = function() {
     return this.ractive.teardown();
   };
   WidgetController.prototype.code = function() {
     return this.ractive.get('code');
   };
   return WidgetController;
 })();
 reporterOf = function(str) {
   return new Function("return " + str);
 };
 fillOutWidgets = function(widgets, updateUICallback) {
   var i, j, len, results, widget;
   results = [];
   for (i = j = 0, len = widgets.length; j < len; i = ++j) {
     widget = widgets[i];
     widget.id = i;
     if (widget.variable != null) {
       widget.variable = widget.variable.toLowerCase();
     }
     switch (widget['type']) {
       case "switch":
         results.push(widget.currentValue = widget.on);
         break;
       case "slider":
         widget.currentValue = widget["default"];
         results.push(setUpSlider(widget, widget));
         break;
       case "inputBox":
         widget.currentValue = widget.boxedValue.value;
         results.push(widget.display = widget.variable);
         break;
       case "button":
         results.push(setUpButton(updateUICallback)(widget, widget));
         break;
       case "chooser":
         results.push(widget.currentValue = widget.choices[widget.currentChoice]);
         break;
       case "monitor":
         results.push(setUpMonitor(widget, widget));
         break;
       default:
         results.push(void 0);
     }
   }
   return results;
 };
 setUpButton = function(updateUI) {
   return function(source, destination) {
     var task;
     if (source.forever) {
       destination.running = false;
     }
     if (source.compilation.success) {
       destination.compiledSource = source.compiledSource;
       task = window.handlingErrors(new Function(destination.compiledSource));
       (function(task) {
         var wrappedTask;
         wrappedTask = source.forever ? function() {
           var ex, mustStop;
           mustStop = (function() {
             try {
               return task() instanceof Exception.StopInterrupt;
             } catch (error) {
               ex = error;
               return ex instanceof Exception.HaltInterrupt;
             }
           })();
           if (mustStop) {
             destination.running = false;
             return updateUI();
           }
         } : function() {
           task();
           return updateUI();
         };
         return (function(wrappedTask) {
           return destination.run = wrappedTask;
         })(wrappedTask);
       })(task);
     } else {
       destination.run = function() {
         destination.running = false;
         return showErrors(["Button failed to compile with:"].concat(source.compilation.messages));
       };
     }
   };
 };
 setUpMonitor = function(source, destination) {
   if (source.compilation.success) {
     destination.compiledSource = source.compiledSource;
     destination.reporter = reporterOf(destination.compiledSource);
     destination.currentValue = "";
   } else {
     destination.reporter = function() {
       return "N/A";
     };
     destination.currentValue = "N/A";
   }
 };
 setUpSlider = function(source, destination) {
   var value;
   value = source.currentValue;
   if (source.compilation.success) {
     destination.getMin = reporterOf(source.compiledMin);
     destination.getMax = reporterOf(source.compiledMax);
     destination.getStep = reporterOf(source.compiledStep);
   } else {
     destination.getMin = function() {
       return value;
     };
     destination.getMax = function() {
       return value;
     };
     destination.getStep = function() {
       return 0;
     };
   }
   destination.minValue = value;
   destination.maxValue = value + 1;
   destination.stepValue = 1;
 };
 setUpDimensionsProxies = function(viewWidget, modelView) {
   var mName, translations, wName;
   translations = {
     maxPxcor: "maxpxcor",
     maxPycor: "maxpycor",
     minPxcor: "minpxcor",
     minPycor: "minpycor",
     patchSize: "patchsize",
     wrappingAllowedInX: "wrappingallowedinx",
     wrappingAllowedInY: "wrappingallowediny"
   };
   viewWidget.proxies = {};
   for (wName in translations) {
     mName = translations[wName];
     addProxyTo(viewWidget.proxies, [[viewWidget.dimensions, wName], [modelView, mName]], wName, viewWidget.dimensions[wName]);
   }
 };
 createPlotOps = function(container, widgets) {
   var display, id, j, len, plotOps, ref, type;
   plotOps = {};
   for (j = 0, len = widgets.length; j < len; j++) {
     ref = widgets[j], display = ref.display, id = ref.id, type = ref.type;
     if (type === "plot") {
       plotOps[display] = new HighchartsOps(container.querySelector("#netlogo-plot-" + id));
     }
   }
   return plotOps;
 };
 isValidValue = function(widget, value) {
   return (value != null) && (function() {
     switch (widget.type) {
       case 'slider':
         return !isNaN(value);
       case 'inputBox':
         return !(widget.boxedValue.type === 'Number' && isNaN(value));
       default:
         return true;
     }
   })();
 };
template = "
\n
\n
\n
\n <a href=\"http://ccl.northwestern.edu/netlogo/\">\n <img style=\"vertical-align: middle;\" alt=\"NetLogo\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAANcSURBVHjarJRdaFxFFMd/M/dj7252uxubKms+bGprVyIVbNMWWqkQqtLUSpQWfSiV+oVFTcE3DeiDgvoiUSiCYLH2oVoLtQ+iaaIWWtE2FKGkkSrkq5svN+sm7ma/7p3x4W42lEbjQw8MM8yc87/nzPnNFVprbqWJXyMyXuMqx1Ni6N3ny3cX8tOHNLoBUMvESoFI2Xbs4zeO1lzREpSrMSNS1zkBDv6uo1/noz1H7mpvS4SjprAl2AZYEqzKbEowBAgBAkjPKX2599JjT7R0bj412D0JYNplPSBD1G2SmR/e6u1ikEHG2vYiGxoJmxAyIGSCI8GpCItKimtvl2JtfGujDNkX6epuAhCjNeAZxM1ocPy2Qh4toGQ5DLU+ysiuA2S3P0KgJkjAgEAlQylAA64CG/jlUk6//ng4cNWmLK0yOPNMnG99Rs9LQINVKrD+wmke7upg55PrWP3eYcwrlykpKCkoelDy/HVegQhoABNAepbACwjOt72gZkJhypX70YDWEEklue+rbnYc2MiGp1upPfYReiJJUUG58gFXu4udch1wHcjFIgy0HyIjb2yvBpT2F6t+6+f+D15lW8c9JDo7iPSdgVIRLUqL2AyHDQAOf9hfbqxvMF98eT3RuTS1avHyl+Stcphe2chP9+4k/t3RbXVl3W+Ws17FY56/w3VcbO/koS/eZLoAqrQMxADZMTYOfwpwoWjL4+bCYcgssMqGOzPD6CIkZ/3SxTJ0ayFIN6/BnBrZb2XdE1JUgkJWkfrUNRJnPyc16zsbgPyXIUJBpvc+y89nk/S8/4nek3NPGeBWMwzGvhUPnP6RubRLwfODlqqx3LSCyee2MnlwMwA2RwgO5qouVcHmksUdJweYyi8hZkrUjgT5t/ejNq0jBsSqNWsKyT9uFtxw7Bs585d3g46KOeT2bWHmtd14KyP+5mzqpsYU3OyioACMhGiqPTMocsrHId9cy9BLDzKxq8X3ctMwlV6yKSHL4fr4dd0DeQBTBUgUkvpE1kVPbqkX117ZzuSaFf4zyfz5n9A4lk0yNU7vyb7jTy1kmFGipejKvh6h9n0W995ZPTu227hqmCz33xXgFV1v9NzI96NfjndWt7XWCB/7BSICFWL+j3lAofpCtfYFb6X9MwCJZ07mUsXRGwAAAABJRU5ErkJggg==\"/>\n powered by NetLogo\n </a>\n
\n
\n <editableTitle title=\"Template:ModelTitle\" isEditing=\"Template:IsEditing\"/>\n {{# !readOnly }}\n
\n
\n File:\n <button class=\"netlogo-ugly-button\" on-click=\"openNewFile\">New</button>\n
\n
\n Export:\n <button class=\"netlogo-ugly-button\" on-click=\"exportnlogo\">NetLogo</button>\n <button class=\"netlogo-ugly-button\" on-click=\"exportHtml\">HTML</button>\n
\n
\n Template:/\n
\n\n
\n\n <contextMenu></contextMenu>\n\n <label class=\"netlogo-widget netlogo-speed-slider\">\n model speed\n <input type=\"range\" min=-1 max=1 step=0.01 value=Template:Speed />\n <tickCounter isVisible=\"Template:PrimaryView.showTickCounter\"\n label=\"Template:PrimaryView.tickCounterLabel\" value=\"Template:Ticks\" />\n </label>\n\n
\n {{#widgetObj:key}}\n {{# type === 'view' }} <viewWidget id=\"{{>widgetID}}\" dims=\"position: absolute; left: Template:Left; top: Template:Top;\" widget=Template:This ticks=\"Template:Ticks\" /> Template:/\n {{# type === 'textBox' }} <labelWidget id=\"{{>widgetID}}\" dims=\"{{>dimensions}}\" widget=Template:This /> Template:/\n {{# type === 'switch' }} <switchWidget id=\"{{>widgetID}}\" dims=\"{{>dimensions}}\" widget=Template:This /> Template:/\n {{# type === 'button' }} <buttonWidget id=\"{{>widgetID}}\" dims=\"{{>dimensions}}\" widget=Template:This errorClass=\"{{>errorClass}}\" ticksStarted=\"Template:TicksStarted\"/> Template:/\n {{# type === 'slider' }} <sliderWidget id=\"{{>widgetID}}\" dims=\"{{>dimensions}}\" widget=Template:This errorClass=\"{{>errorClass}}\" /> Template:/\n {{# type === 'chooser' }} <chooserWidget id=\"{{>widgetID}}\" dims=\"{{>dimensions}}\" widget=Template:This /> Template:/\n {{# type === 'monitor' }} <monitorWidget id=\"{{>widgetID}}\" dims=\"{{>dimensions}}\" widget=Template:This errorClass=\"{{>errorClass}}\" /> Template:/\n {{# type === 'inputBox' }} <inputWidget id=\"{{>widgetID}}\" dims=\"{{>dimensions}}\" widget=Template:This /> Template:/\n {{# type === 'plot' }} <plotWidget id=\"{{>widgetID}}\" dims=\"{{>dimensions}}\" widget=Template:This /> Template:/\n {{# type === 'output' }} <outputWidget id=\"{{>widgetID}}\" dims=\"{{>dimensions}}\" widget=Template:This text=\"Template:OutputWidgetOutput\" /> Template:/\n Template:/\n
\n\n
\n {{# !readOnly }}\n <label class=\"netlogo-tab{{#showConsole}} netlogo-activeTemplate:/\">\n <input id=\"console-toggle\" type=\"checkbox\" checked=\"Template:ShowConsole\" />\n Command Center\n </label>\n {{#showConsole}}\n <console output=\"Template:ConsoleOutput\"/>\n Template:/\n Template:/\n <label class=\"netlogo-tab{{#showCode}} netlogo-activeTemplate:/\">\n <input id=\"code-tab-toggle\" type=\"checkbox\" checked=\"Template:ShowCode\" />\n NetLogo Code\n </label>\n {{#showCode}}\n <editor code='Template:Code' lastCompiledCode='Template:LastCompiledCode' readOnly='Template:ReadOnly' />\n Template:/\n <label class=\"netlogo-tab{{#showInfo}} netlogo-activeTemplate:/\">\n <input id=\"info-toggle\" type=\"checkbox\" checked=\"Template:ShowInfo\" />\n Model Info\n </label>\n {{#showInfo}}\n <infotab rawText='Template:Info' editing='false' />\n Template:/\n
\n
";
 partials = {
   errorClass: "{{# !compilation.success}}netlogo-widget-errorTemplate:/",
   dimensions: "position: absolute;\nleft: Template:Leftpx; top: Template:Toppx;\nwidth: Template:Right - leftpx; height: Template:Bottom - toppx;",
   widgetID: "netlogo-Template:Type-Template:Id"
 };

}).call(this);

//# sourceMappingURL=widgets.js.map </script>

   <script>

/*

 type Metric = {
   interval: Number
 , reporter: () => Any
 }
 type VariableConfig = {
   name:           String
   parameterSpace: { type: "discreteValues", values: Array[Any] }
                 | { type: "range", min: Number, max: Number, interval: Number }
 }
 type BehaviorSpaceConfig =
   {
     parameterSet:        { type: "discreteCombos",   combos:    Array[Object[Any]]    }
                        | { type: "cartesianProduct", variables: Array[VariableConfig] }
     repetitionsPerCombo: Number
     metrics:             Object[Metric]
     setup:               () => Unit
     go:                  () => Unit
     stopCondition:       () => Boolean
     iterationLimit:      Number
   }
 type Results = Array[{ config: Object[Any], results: Object[Object[Any]] }]
*/

(function() {

 var cartesianProduct, executeRun, genCartesianSet;
 window.runBabyBehaviorSpace = function(config, setGlobal, dump) {
   var combination, finalParameterSet, flatten, go, iterationLimit, j, key, len, metrics, pSet, parameterSet, repetitionsPerCombo, results, results1, setup, stopCondition, value;
   parameterSet = config.parameterSet, repetitionsPerCombo = config.repetitionsPerCombo, metrics = config.metrics, setup = config.setup, go = config.go, stopCondition = config.stopCondition, iterationLimit = config.iterationLimit;
   parameterSet = (function() {
     switch (parameterSet.type) {
       case "discreteCombos":
         return parameterSet.combos;
       case "cartesianProduct":
         return genCartesianSet(parameterSet.variables);
       default:
         throw new Exception("Unknown parameter set type: " + type);
     }
   })();
   flatten = function(xs) {
     var ref;
     return (ref = []).concat.apply(ref, xs);
   };
   finalParameterSet = flatten((function() {
     var j, len, results1;
     results1 = [];
     for (j = 0, len = parameterSet.length; j < len; j++) {
       combination = parameterSet[j];
       results1.push((function() {
         var k, ref, results2;
         results2 = [];
         for (k = 1, ref = repetitionsPerCombo; 1 <= ref ? k <= ref : k >= ref; 1 <= ref ? k++ : k--) {
           results2.push(combination);
         }
         return results2;
       })());
     }
     return results1;
   })());
   results1 = [];
   for (j = 0, len = finalParameterSet.length; j < len; j++) {
     pSet = finalParameterSet[j];
     for (key in pSet) {
       value = pSet[key];
       setGlobal(key, value);
     }
     results = executeRun(setup, go, stopCondition, iterationLimit, metrics, dump);
     results1.push({
       config: pSet,
       results: results
     });
   }
   return results1;
 };
 cartesianProduct = function(xs) {
   return xs.reduce(function(acc, x) {
     var nested;
     nested = acc.map(function(a) {
       return x.map(function(b) {
         return a.concat(b);
       });
     });
     return nested.reduce((function(flattened, l) {
       return flattened.concat(l);
     }), []);
   }, [[]]);
 };
 genCartesianSet = function(variables) {
   var basicParameterSet, condense;
   basicParameterSet = variables.map(function(arg) {
     var interval, max, min, name, ref, type, values, x;
     name = arg.name, (ref = arg.parameterSpace, type = ref.type, values = ref.values, min = ref.min, max = ref.max, interval = ref.interval);
     values = (function() {
       var j, ref1, ref2, ref3, results1;
       switch (type) {
         case "discreteValues":
           return values;
         case "range":
           results1 = [];
           for (x = j = ref1 = min, ref2 = max, ref3 = interval; ref3 > 0 ? j <= ref2 : j >= ref2; x = j += ref3) {
             results1.push(x);
           }
           return results1;
           break;
         default:
           throw new Exception("Unknown parameter space type: " + type);
       }
     })();
     return values.map(function(value) {
       return {
         name: name,
         value: value
       };
     });
   });
   condense = (function(acc, arg) {
     var name, value;
     name = arg.name, value = arg.value;
     acc[name] = value;
     return acc;
   });
   return cartesianProduct(basicParameterSet).map(function(combo) {
     return combo.reduce(condense, {});
   });
 };
 executeRun = function(setup, go, stopCondition, iterationLimit, metrics, dump) {
   var iters, maxIters, measure, measurements;
   iters = 0;
   maxIters = iterationLimit < 1 ? -1 : iterationLimit;
   measurements = {};
   measure = function(i) {
     var interval, ms, name, ref, reporter;
     ms = {};
     for (name in metrics) {
       ref = metrics[name], reporter = ref.reporter, interval = ref.interval;
       if (interval === 0 || (i % interval) === 0) {
         ms[name] = dump(reporter());
       }
     }
     if (Object.keys(ms).length > 0) {
       measurements[i] = ms;
     }
   };
   setup();
   while (!stopCondition() && iters < maxIters) {
     measure(iters);
     go();
     iters++;
   }
   measure(iters);
   return measurements;
 };

}).call(this);

//# sourceMappingURL=babybehaviorspace.js.map </script>

   <script>(function() {
 var Tortoise, defaultDisplayError, finishLoading, fromNlogo, fromNlogoWithoutCode, fromURL, globalEval, handleAjaxLoad, handleCompilation, loadData, loadError, loading, newSession, normalizedFileName, openSession, reportAjaxError, reportCompilerError, startLoading, toNetLogoMarkdown, toNetLogoWebMarkdown;
 loadError = function(url) {
return "Unable to load NetLogo model from " + url + ", please ensure:\n
    \n
  • That you can download the resource <a target=\"_blank\" href=\"" + url + "\">at this link</a>
  • \n
  • That the server containing the resource has\n <a target=\"_blank\" href=\"https://en.wikipedia.org/wiki/Cross-origin_resource_sharing\">\n Cross-Origin Resource Sharing\n </a>\n configured appropriately
  • \n
\nIf you have followed the above steps and are still seeing this error,\nplease send an email to our <a href=\"mailto:bugs@ccl.northwestern.edu\">\"bugs\" mailing list</a>\nwith the following information:\n
    \n
  • The full URL of this page (copy and paste from address bar)
  • \n
  • Your operating system and browser version
  • \n
";
 };
 toNetLogoWebMarkdown = function(md) {
   return md.replace(new RegExp(, 'g'), function(match, commentText) {
     return "[nlw-comment]: <> (" + (commentText.trim()) + ")";
   });
 };
 toNetLogoMarkdown = function(md) {
   return md.replace(new RegExp('\\[nlw-comment\\]: <> \\(([^\\)]*)\\)', 'g'), function(match, commentText) {
     return "";
   });
 };
 handleAjaxLoad = (function(_this) {
   return function(url, onSuccess, onFailure) {
     var req;
     req = new XMLHttpRequest();
     req.open('GET', url);
     req.onreadystatechange = function() {
       if (req.readyState === req.DONE) {
         if (req.status === 0 || req.status >= 400) {
           return onFailure(req);
         } else {
           return onSuccess(req.responseText);
         }
       }
     };
     return req.send("");
   };
 })(this);
 newSession = function(container, modelResult, readOnly, filename, lastCompileFailed, onError) {
   var widgetController, widgets;
   if (readOnly == null) {
     readOnly = false;
   }
   if (filename == null) {
     filename = "export";
   }
   if (onError == null) {
     onError = void 0;
   }
   widgets = globalEval(modelResult.widgets);
   widgetController = bindWidgets(container, widgets, modelResult.code, toNetLogoWebMarkdown(modelResult.info), readOnly, filename);
   if (window.modelConfig == null) {
     window.modelConfig = {};
   }
   modelConfig.plotOps = widgetController.plotOps;
   modelConfig.exporting = widgetController.exporting;
   modelConfig.mouse = widgetController.mouse;
   modelConfig.print = {
     write: widgetController.write
   };
   modelConfig.output = widgetController.output;
   modelConfig.dialog = widgetController.dialog;
   modelConfig.world = widgetController.worldConfig;
   globalEval(modelResult.model.result);
   return new SessionLite(widgetController, lastCompileFailed, onError);
 };
 normalizedFileName = function(path) {
   var pathComponents;
   pathComponents = path.split(/\/|\\/);
   return decodeURI(pathComponents[pathComponents.length - 1]);
 };
 loadData = function(container, pathOrURL, name, loader, onError) {
   return {
     container: container,
     loader: loader,
     onError: onError,
     modelPath: pathOrURL,
     name: name
   };
 };
 openSession = function(load) {
   return function(model, lastCompileFailed) {
     var name, ref, session;
     name = (ref = load.name) != null ? ref : normalizedFileName(load.modelPath);
     session = newSession(load.container, model, false, name, lastCompileFailed, load.onError);
     load.loader.finish();
     return session;
   };
 };
 loading = function(process) {
   var loader;
   document.querySelector("#loading-overlay").style.display = "";
   loader = {
     finish: function() {
       return document.querySelector("#loading-overlay").style.display = "none";
     }
   };
   return setTimeout(process(loader), 20);
 };
 defaultDisplayError = function(container) {
   return function(errors) {
return container.innerHTML = "
" + errors + "
";
   };
 };
 reportCompilerError = function(load) {
   return function(res) {
     var errors;
     errors = res.model.result.map(function(err) {
       var contains, message;
       contains = function(s, x) {
         return s.indexOf(x) > -1;
       };
       message = err.message;
       if (contains(message, "Couldn't find corresponding reader") || contains(message, "Models must have 12 sections")) {
         return message + " (see <a href='https://netlogoweb.org/info#model-format-error'>here</a> for more information)";
       } else {
         return message;
       }
     }).join('
'); load.onError(errors); return load.loader.finish(); }; };
 reportAjaxError = function(load) {
   return function(req) {
     load.onError(loadError(load.modelPath));
     return load.loader.finish();
   };
 };
 startLoading = function(process) {
   document.querySelector("#loading-overlay").style.display = "";
   if ((process != null)) {
     return setTimeout(process, 20);
   }
 };
 finishLoading = function() {
   return document.querySelector("#loading-overlay").style.display = "none";
 };
 fromNlogo = function(nlogo, container, path, callback, onError) {
   if (onError == null) {
     onError = defaultDisplayError(container);
   }
   return loading(function(loader) {
     var load, name, segments;
     segments = path.split(/\/|\\/);
     name = segments[segments.length - 1];
     load = loadData(container, path, name, loader, onError);
     return handleCompilation(nlogo, callback, load);
   });
 };
 fromURL = function(url, modelName, container, callback, onError) {
   if (onError == null) {
     onError = defaultDisplayError(container);
   }
   return loading(function(loader) {
     var compile, load;
     load = loadData(container, url, modelName, loader, onError);
     compile = function(nlogo) {
       return handleCompilation(nlogo, callback, load);
     };
     return handleAjaxLoad(url, compile, reportAjaxError(load));
   });
 };
 handleCompilation = function(nlogo, callback, load) {
   var compiler, onFailure, onSuccess, result, success;
   onSuccess = function(input, lastCompileFailed) {
     return callback(openSession(load)(input, lastCompileFailed));
   };
   onFailure = reportCompilerError(load);
   compiler = new BrowserCompiler();
   result = compiler.fromNlogo(nlogo, []);
   if (result.model.success) {
     return onSuccess(result, false);
   } else {
     success = fromNlogoWithoutCode(nlogo, compiler, onSuccess);
     onFailure(result, success);
   }
 };
 fromNlogoWithoutCode = function(nlogo, compiler, onSuccess) {
   var first, newNlogo, result;
   first = nlogo.indexOf("@#$#@#$#@");
   if (first < 0) {
     return false;
   } else {
     newNlogo = nlogo.substring(first);
     result = compiler.fromNlogo(newNlogo, []);
     if (!result.model.success) {
       return false;
     } else {
       result.code = nlogo.substring(0, first);
       onSuccess(result, true);
       return result.model.success;
     }
   }
 };
 Tortoise = {
   startLoading: startLoading,
   finishLoading: finishLoading,
   fromNlogo: fromNlogo,
   fromURL: fromURL,
   toNetLogoMarkdown: toNetLogoMarkdown,
   toNetLogoWebMarkdown: toNetLogoWebMarkdown
 };
 if (typeof window !== "undefined" && window !== null) {
   window.Tortoise = Tortoise;
 } else {
   exports.Tortoise = Tortoise;
 }
 globalEval = eval;

}).call(this);

//# sourceMappingURL=tortoise.js.map </script>

   <script>(function() {
 var DEFAULT_REDRAW_DELAY, FAST_UPDATE_EXP, MAX_REDRAW_DELAY, MAX_UPDATE_DELAY, MAX_UPDATE_TIME, REDRAW_EXP, SLOW_UPDATE_EXP, globalEval, now, ref,
   bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
   slice = [].slice;
 MAX_UPDATE_DELAY = 1000;
 FAST_UPDATE_EXP = 0.5;
 SLOW_UPDATE_EXP = 4;
 MAX_UPDATE_TIME = 100;
 DEFAULT_REDRAW_DELAY = 1000 / 30;
 MAX_REDRAW_DELAY = 1000;
 REDRAW_EXP = 2;
 window.SessionLite = (function() {
   function SessionLite(widgetController, lastCompileFailed, displayError) {
     this.widgetController = widgetController;
     this.displayError = displayError;
     this.promptFilename = bind(this.promptFilename, this);
     this.eventLoop = bind(this.eventLoop, this);
     this._eventLoopTimeout = -1;
     this._lastRedraw = 0;
     this._lastUpdate = 0;
     this.widgetController.ractive.on('*.recompile', (function(_this) {
       return function(_, event) {
         return _this.recompile();
       };
     })(this));
     this.widgetController.ractive.on('exportnlogo', (function(_this) {
       return function(_, event) {
         return _this.exportnlogo(event);
       };
     })(this));
     this.widgetController.ractive.on('exportHtml', (function(_this) {
       return function(_, event) {
         return _this.exportHtml(event);
       };
     })(this));
     this.widgetController.ractive.on('openNewFile', (function(_this) {
       return function(_, event) {
         return _this.openNewFile();
       };
     })(this));
     this.widgetController.ractive.on('console.run', (function(_this) {
       return function(_, code) {
         return _this.run(code);
       };
     })(this));
     this.widgetController.ractive.set('lastCompileFailed', lastCompileFailed);
     this.drawEveryFrame = false;
   }
   SessionLite.prototype.modelTitle = function() {
     return this.widgetController.ractive.get('modelTitle');
   };
   SessionLite.prototype.startLoop = function() {
     if (procedures.startup != null) {
       window.handlingErrors(procedures.startup)();
     }
     this.widgetController.redraw();
     this.widgetController.updateWidgets();
     return requestAnimationFrame(this.eventLoop);
   };
   SessionLite.prototype.updateDelay = function() {
     var delay, speed, speedFactor, viewWidget;
     viewWidget = this.widgetController.widgets().filter(function(arg) {
       var type;
       type = arg.type;
       return type === 'view';
     })[0];
     speed = this.widgetController.speed();
     delay = 1000 / viewWidget.frameRate;
     if (speed > 0) {
       speedFactor = Math.pow(Math.abs(speed), FAST_UPDATE_EXP);
       return delay * (1 - speedFactor);
     } else {
       speedFactor = Math.pow(Math.abs(speed), SLOW_UPDATE_EXP);
       return MAX_UPDATE_DELAY * speedFactor + delay * (1 - speedFactor);
     }
   };
   SessionLite.prototype.redrawDelay = function() {
     var speed, speedFactor;
     speed = this.widgetController.speed();
     if (speed > 0) {
       speedFactor = Math.pow(Math.abs(this.widgetController.speed()), REDRAW_EXP);
       return MAX_REDRAW_DELAY * speedFactor + DEFAULT_REDRAW_DELAY * (1 - speedFactor);
     } else {
       return DEFAULT_REDRAW_DELAY;
     }
   };
   SessionLite.prototype.eventLoop = function(timestamp) {
     var i, j, maxNumUpdates, ref, updatesDeadline;
     this._eventLoopTimeout = requestAnimationFrame(this.eventLoop);
     updatesDeadline = Math.min(this._lastRedraw + this.redrawDelay(), now() + MAX_UPDATE_TIME);
     maxNumUpdates = this.drawEveryFrame ? 1 : (now() - this._lastUpdate) / this.updateDelay();
     for (i = j = 1, ref = maxNumUpdates; j <= ref; i = j += 1) {
       this._lastUpdate = now();
       this.widgetController.runForevers();
       if (now() >= updatesDeadline) {
         break;
       }
     }
     if (Updater.hasUpdates()) {
       if (i > maxNumUpdates || now() - this._lastRedraw > this.redrawDelay() || this.drawEveryFrame) {
         this._lastRedraw = now();
         this.widgetController.redraw();
       }
     }
     return this.widgetController.updateWidgets();
   };
   SessionLite.prototype.teardown = function() {
     this.widgetController.teardown();
     return cancelAnimationFrame(this._eventLoopTimeout);
   };
   SessionLite.prototype.recompile = function() {
     return Tortoise.startLoading((function(_this) {
       return function() {
         var code;
         world.clearAll();
         _this.widgetController.redraw();
         code = _this.widgetController.code();
         return codeCompile(code, [], [], _this.widgetController.widgets(), function(res) {
           var currentValue, i, j, k, len, ref, ref1, results, sliderVals, type, v, variable;
           if (res.model.success) {
             sliderVals = {};
             ref = _this.widgetController.widgets();
             for (i = j = 0, len = ref.length; j < len; i = ++j) {
               ref1 = ref[i], currentValue = ref1.currentValue, type = ref1.type;
               if (type === "slider") {
                 sliderVals[i] = currentValue;
               }
             }
             globalEval(res.model.result);
             _this.widgetController.ractive.set('isStale', false);
             _this.widgetController.ractive.set('lastCompiledCode', code);
             _this.widgetController.ractive.set('lastCompileFailed', false);
             _this.widgetController.freshenUpWidgets(globalEval(res.widgets));
             results = [];
             for (k in sliderVals) {
               v = sliderVals[k];
               variable = _this.widgetController.widgets()[k].variable;
               results.push(world.observer.setGlobal(variable, v));
             }
             return results;
           } else {
             _this.widgetController.ractive.set('lastCompileFailed', true);
             return _this.alertCompileError(res.model.result);
           }
         }, _this.alertCompileError);
       };
     })(this));
   };
   SessionLite.prototype.getNlogo = function() {
     return (new BrowserCompiler()).exportNlogo({
       info: Tortoise.toNetLogoMarkdown(this.widgetController.ractive.get('info')),
       code: this.widgetController.ractive.get('code'),
       widgets: this.widgetController.widgets(),
       turtleShapes: turtleShapes,
       linkShapes: linkShapes
     });
   };
   SessionLite.prototype.exportnlogo = function() {
     var exportBlob, exportName, exportedNLogo;
     exportName = this.promptFilename(".nlogo");
     if (exportName != null) {
       exportedNLogo = this.getNlogo();
       if (exportedNLogo.success) {
         exportBlob = new Blob([exportedNLogo.result], {
           type: "text/plain:charset=utf-8"
         });
         return saveAs(exportBlob, exportName);
       } else {
         return this.alertCompileError(exportedNLogo.result);
       }
     }
   };
   SessionLite.prototype.promptFilename = function(extension) {
     var suggestion;
     suggestion = this.modelTitle() + extension;
     return window.prompt('Filename:', suggestion);
   };
   SessionLite.prototype.exportHtml = function() {
     var exportName;
     exportName = this.promptFilename(".html");
     if (exportName != null) {
       window.req = new XMLHttpRequest();
       req.open('GET', standaloneURL);
       req.onreadystatechange = (function(_this) {
         return function() {
           var dom, exportBlob, nlogo, nlogoScript, parser, wrapper;
           if (req.readyState === req.DONE) {
             if (req.status === 200) {
               nlogo = _this.getNlogo();
               if (nlogo.success) {
                 parser = new DOMParser();
                 dom = parser.parseFromString(req.responseText, "text/html");
                 nlogoScript = dom.querySelector("#nlogo-code");
                 nlogoScript.textContent = nlogo.result;
                 nlogoScript.dataset.filename = exportName.replace(/\.html$/, ".nlogo");
                 wrapper = document.createElement("div");
                 wrapper.appendChild(dom.documentElement);
                 exportBlob = new Blob([wrapper.innerHTML], {
                   type: "text/html:charset=utf-8"
                 });
                 return saveAs(exportBlob, exportName);
               } else {
                 return _this.alertCompileError(nlogo.result);
               }
             } else {
               return alert("Couldn't get standalone page");
             }
           }
         };
       })(this);
       return req.send("");
     }
   };
   SessionLite.prototype.openNewFile = function() {
     if (confirm('Are you sure you want to open a new model?  You will lose any changes that you have not exported.')) {
       parent.postMessage({
         hash: "NewModel",
         type: "nlw-set-hash"
       }, "*");
       window.postMessage({
         type: "nlw-open-new"
       }, "*");
     }
   };
   SessionLite.prototype.makeForm = function(method, path, data) {
     var field, form, name, value;
     form = document.createElement('form');
     form.setAttribute('method', method);
     form.setAttribute('action', path);
     for (name in data) {
       value = data[name];
       field = document.createElement('input');
       field.setAttribute('type', 'hidden');
       field.setAttribute('name', name);
       field.setAttribute('value', value);
       form.appendChild(field);
     }
     return form;
   };
   SessionLite.prototype.asyncRunBabyBehaviorSpace = function(config, reaction) {
     return Tortoise.startLoading((function(_this) {
       return function() {
         reaction(_this.runBabyBehaviorSpace(config));
         return Tortoise.finishLoading();
       };
     })(this));
   };
   SessionLite.prototype.runBabyBehaviorSpace = function(arg) {
     var _, compiledMetrics, convert, dumper, go, goCode, iterationLimit, j, last, map, massagedConfig, metricFs, metrics, miniDump, parameterSet, pipeline, ref, ref1, ref2, repetitionsPerCombo, result, setGlobal, setup, setupCode, stopCondition, stopConditionCode, toObject, unwrapCompilation, zip;
     parameterSet = arg.parameterSet, repetitionsPerCombo = arg.repetitionsPerCombo, metrics = arg.metrics, setupCode = arg.setupCode, goCode = arg.goCode, stopConditionCode = arg.stopConditionCode, iterationLimit = arg.iterationLimit;
     dumper = tortoise_require('engine/dump');
     ref = tortoise_require('brazier/array'), last = ref.last, map = ref.map, toObject = ref.toObject, zip = ref.zip;
     pipeline = tortoise_require('brazier/function').pipeline;
     result = (new BrowserCompiler()).fromModel({
       code: this.widgetController.code(),
       widgets: this.widgetController.widgets(),
       commands: [setupCode, goCode],
       reporters: metrics.map(function(m) {
         return m.reporter;
       }).concat([stopConditionCode]),
       turtleShapes: [],
       linkShapes: []
     });
     unwrapCompilation = function(prefix, defaultCode) {
       return function(arg1) {
         var compiledCode, success;
         compiledCode = arg1.result, success = arg1.success;
         return new Function("" + prefix + (success ? compiledCode : defaultCode));
       };
     };
     ref1 = result.commands.map(unwrapCompilation("", "")), setup = ref1[0], go = ref1[1];
     ref2 = result.reporters.map(unwrapCompilation("return ", "-1")), metricFs = 2 <= ref2.length ? slice.call(ref2, 0, j = ref2.length - 1) : (j = 0, []), _ = ref2[j++];
     stopCondition = unwrapCompilation("return ", "false")(last(result.reporters));
     convert = function(arg1) {
       var f, interval, ref3, reporter;
       (ref3 = arg1[0], reporter = ref3.reporter, interval = ref3.interval), f = arg1[1];
       return [
         reporter, {
           reporter: f,
           interval: interval
         }
       ];
     };
     compiledMetrics = pipeline(zip(metrics), map(convert), toObject)(metricFs);
     massagedConfig = {
       parameterSet: parameterSet,
       repetitionsPerCombo: repetitionsPerCombo,
       metrics: compiledMetrics,
       setup: setup,
       go: go,
       stopCondition: stopCondition,
       iterationLimit: iterationLimit
     };
     setGlobal = world.observer.setGlobal.bind(world.observer);
     miniDump = function(x) {
       var ref3;
       if (Array.isArray(x)) {
         return x.map(miniDump);
       } else if ((ref3 = typeof x) === "boolean" || ref3 === "number" || ref3 === "string") {
         return x;
       } else {
         return dumper(x);
       }
     };
     return window.runBabyBehaviorSpace(massagedConfig, setGlobal, miniDump);
   };
   SessionLite.prototype.run = function(code) {
     Tortoise.startLoading();
     return codeCompile(this.widgetController.code(), [code], [], this.widgetController.widgets(), (function(_this) {
       return function(arg) {
         var commands, ex, modelResult, modelSuccess, ref, ref1, result, success;
         commands = arg.commands, (ref = arg.model, modelResult = ref.result, modelSuccess = ref.success);
         if (modelSuccess) {
           ref1 = commands[0], result = ref1.result, success = ref1.success;
           if (success) {
             try {
               return window.handlingErrors(new Function(result))();
             } catch (error) {
               ex = error;
               if (!(ex instanceof Exception.HaltInterrupt)) {
                 throw ex;
               }
             }
           } else {
             return _this.alertCompileError(result);
           }
         } else {
           return _this.alertCompileError(modelResult);
         }
       };
     })(this), this.alertCompileError);
   };
   SessionLite.prototype.alertCompileError = function(result) {
     var alertText;
     alertText = result.map(function(err) {
       return err.message;
     }).join('\n');
     return this.displayError(alertText);
   };
   return SessionLite;
 })();
 globalEval = eval;
 window.AgentModel = tortoise_require('agentmodel');
 window.codeCompile = function(code, commands, reporters, widgets, onFulfilled, onErrors) {
   var compileParams, ex;
   compileParams = {
     code: code,
     widgets: widgets,
     commands: commands,
     reporters: reporters,
     turtleShapes: typeof turtleShapes !== "undefined" && turtleShapes !== null ? turtleShapes : [],
     linkShapes: typeof linkShapes !== "undefined" && linkShapes !== null ? linkShapes : []
   };
   try {
     return onFulfilled((new BrowserCompiler()).fromModel(compileParams));
   } catch (error) {
     ex = error;
     return onErrors([ex]);
   } finally {
     Tortoise.finishLoading();
   }
 };
 window.serverNlogoCompile = function(model, commands, reporters, widgets, onFulfilled) {
   var compileCallback, compileParams;
   compileParams = {
     model: model,
     commands: JSON.stringify(commands),
     reporters: JSON.stringify(reporters)
   };
   compileCallback = function(res) {
     return onFulfilled(JSON.parse(res));
   };
   return ajax('/compile-nlogo', compileParams, compileCallback);
 };
 window.serverCodeCompile = function(code, commands, reporters, widgets, onFulfilled) {
   var compileCallback, compileParams;
   compileParams = {
     code: code,
     widgets: JSON.stringify(widgets),
     commands: JSON.stringify(commands),
     reporters: JSON.stringify(reporters),
     turtleShapes: JSON.stringify(typeof turtleShapes !== "undefined" && turtleShapes !== null ? turtleShapes : []),
     linkShapes: JSON.stringify(typeof linkShapes !== "undefined" && linkShapes !== null ? linkShapes : [])
   };
   compileCallback = function(res) {
     return onFulfilled(JSON.parse(res));
   };
   return ajax('/compile-code', compileParams, compileCallback);
 };
 window.ajax = function(url, params, callback) {
   var key, paramPairs, req, value;
   paramPairs = (function() {
     var results;
     results = [];
     for (key in params) {
       value = params[key];
       results.push(encodeURIComponent(key) + '=' + encodeURIComponent(value));
     }
     return results;
   })();
   req = new XMLHttpRequest();
   req.open('POST', url);
   req.onreadystatechange = function() {
     if (req.readyState === req.DONE) {
       return callback(req.responseText);
     }
   };
   req.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
   return req.send(paramPairs.join('&'));
 };
 now = (ref = typeof performance !== "undefined" && performance !== null ? performance.now.bind(performance) : void 0) != null ? ref : Date.now.bind(Date);

}).call(this);

//# sourceMappingURL=session-lite.js.map </script>

   <script>(function() {
 var PenBundle, PlotOps,
   extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
   hasProp = {}.hasOwnProperty;
 PenBundle = tortoise_require('engine/plot/pen');
 PlotOps = tortoise_require('engine/plot/plotops');
 window.HighchartsOps = (function(superClass) {
   extend(HighchartsOps, superClass);
   HighchartsOps.prototype._chart = void 0;
   HighchartsOps.prototype._penNameToSeriesNum = void 0;
   function HighchartsOps(elemID) {
     var addPoint, registerPen, reset, resetPen, resize, updatePenColor, updatePenMode;
     resize = function(xMin, xMax, yMin, yMax) {
       this._chart.xAxis[0].setExtremes(xMin, xMax);
       this._chart.yAxis[0].setExtremes(yMin, yMax);
     };
     reset = function(plot) {
       this._chart.destroy();
       this._chart = new Highcharts.Chart({
         chart: {
           animation: false,
           renderTo: elemID,
           spacingBottom: 10,
           spacingLeft: 15,
           spacingRight: 15,
           zoomType: "xy"
         },
         credits: {
           enabled: false
         },
         legend: {
           enabled: plot.isLegendEnabled,
           margin: 5,
           itemStyle: {
             fontSize: "10px"
           }
         },
         series: [],
         title: {
           text: plot.name,
           style: {
             fontSize: "12px"
           }
         },
         exporting: {
           buttons: {
             contextButton: {
               height: 10,
               symbolSize: 10,
               symbolStrokeWidth: 1,
               symbolY: 5
             }
           }
         },
         tooltip: {
           formatter: function() {
             var y;
             y = Number(Highcharts.numberFormat(this.point.y, 3, '.', ));
             return "" + this.series.name + ": " + y + "
"; } }, xAxis: { title: { text: plot.xLabel, style: { fontSize: '10px' } }, labels: { style: { fontSize: '9px' } } }, yAxis: { title: { text: plot.yLabel, x: -7, style: { fontSize: '10px' } }, labels: { padding: 0, x: -15, style: { fontSize: '9px' } } }, plotOptions: { series: { turboThreshold: 1 } } }); this._penNameToSeriesNum = {}; }; registerPen = function(pen) { var isScatter, mode, num; num = this._chart.series.length; mode = this.modeToString(pen.getDisplayMode()); isScatter = mode === 'scatter'; this._chart.addSeries({ color: this.colorToRGBString(pen.getColor()), data: [], dataLabels: { enabled: false }, marker: { enabled: isScatter, radius: isScatter ? 1 : 4 }, name: pen.name, type: mode }); this._penNameToSeriesNum[pen.name] = num; }; resetPen = (function(_this) { return function(pen) { return function() { var ref; if ((ref = _this.penToSeries(pen)) != null) { ref.setData([]); } }; }; })(this); addPoint = (function(_this) { return function(pen) { return function(x, y) { _this.penToSeries(pen).addPoint([x, y], false); }; }; })(this); updatePenMode = (function(_this) { return function(pen) { return function(mode) { var ref, type; type = _this.modeToString(mode); if ((ref = _this.penToSeries(pen)) != null) { ref.update({ type: type }); } }; }; })(this); updatePenColor = (function(_this) { return function(pen) { return function(color) { var hcColor, series; hcColor = _this.colorToRGBString(color); series = _this.penToSeries(pen); series.options.color = hcColor; series.update(series.options); }; }; })(this); HighchartsOps.__super__.constructor.call(this, resize, reset, registerPen, resetPen, addPoint, updatePenMode, updatePenColor); this._chart = Highcharts.chart(elemID, {}); this._penNameToSeriesNum = {}; this._chart.options.exporting.buttons.contextButton.menuItems.pop(); this._chart.options.exporting.buttons.contextButton.menuItems.pop(); }
   HighchartsOps.prototype.modeToString = function(mode) {
     var Bar, Line, Point, ref;
     ref = PenBundle.DisplayMode, Bar = ref.Bar, Line = ref.Line, Point = ref.Point;
     switch (mode) {
       case Bar:
         return 'column';
       case Line:
         return 'line';
       case Point:
         return 'scatter';
       default:
         return 'line';
     }
   };
   HighchartsOps.prototype.penToSeries = function(pen) {
     return this._chart.series[this._penNameToSeriesNum[pen.name]];
   };
   HighchartsOps.prototype.redraw = function() {
     return this._chart.redraw();
   };
   return HighchartsOps;
 })(PlotOps);

}).call(this);

//# sourceMappingURL=highchartsops.js.map </script>

   <script>(function() {
 window.NLWAlerter = (function() {
   function NLWAlerter(_alertWindow, _isStandalone) {
     this._alertWindow = _alertWindow;
     this._isStandalone = _isStandalone;
     this.alertContainer = this._alertWindow.querySelector("#alert-dialog");
   }
   NLWAlerter.prototype.display = function(title, dismissable, content) {
     this._alertWindow.querySelector("#alert-title").innerHTML = title;
     this._alertWindow.querySelector("#alert-message").innerHTML = content;
     if (this._isStandalone) {
       this._alertWindow.querySelector(".standalone-text").style.display = ;
     }
     if (!dismissable) {
       this._alertWindow.querySelector("#alert-dismiss-container").style.display = 'none';
     } else {
       this._alertWindow.querySelector("#alert-dismiss-container").style.display = ;
     }
     this._alertWindow.style.display = ;
   };
   NLWAlerter.prototype.displayError = function(content, dismissable, title) {
     if (dismissable == null) {
       dismissable = true;
     }
     if (title == null) {
       title = "Error";
     }
     this.display(title, dismissable, content);
   };
   NLWAlerter.prototype.hide = function() {
     this._alertWindow.style.display = 'none';
   };
   return NLWAlerter;
 })();

}).call(this);

//# sourceMappingURL=alert.js.map </script>

   <script>(function() {
 var ref;
 window.exports = (ref = window.exports) != null ? ref : {};
 window.exports.newModel = "@#$#@#$#@\nGRAPHICS-WINDOW\n210\n10\n647\n448\n-1\n-1\n13.0\n1\n10\n1\n1\n1\n0\n1\n1\n1\n-16\n16\n-16\n16\n0\n0\n1\nticks\n30.0\n\n@#$#@#$#@\n## WHAT IS IT?\n\n(a general understanding of what the model is trying to show or explain)\n\n## HOW IT WORKS\n\n(what rules the agents use to create the overall behavior of the model)\n\n## HOW TO USE IT\n\n(how to use the model, including a description of each of the items in the Interface tab)\n\n## THINGS TO NOTICE\n\n(suggested things for the user to notice while running the model)\n\n## THINGS TO TRY\n\n(suggested things for the user to try to do (move sliders, switches, etc.) with the model)\n\n## EXTENDING THE MODEL\n\n(suggested things to add or change in the Code tab to make the model more complicated, detailed, accurate, etc.)\n\n## NETLOGO FEATURES\n\n(interesting or unusual features of NetLogo that the model uses, particularly in the Code tab; or where workarounds were needed for missing features)\n\n## RELATED MODELS\n\n(models in the NetLogo Models Library and elsewhere which are of related interest)\n\n## CREDITS AND REFERENCES\n\n(a reference to the model's URL on the web if it has one, as well as any other necessary credits, citations, and links)\n@#$#@#$#@\ndefault\ntrue\n0\nPolygon -7500403 true true 150 5 40 250 150 205 260 250\n\nairplane\ntrue\n0\nPolygon -7500403 true true 150 0 135 15 120 60 120 105 15 165 15 195 120 180 135 240 105 270 120 285 150 270 180 285 210 270 165 240 180 180 285 195 285 165 180 105 180 60 165 15\n\narrow\ntrue\n0\nPolygon -7500403 true true 150 0 0 150 105 150 105 293 195 293 195 150 300 150\n\nbox\nfalse\n0\nPolygon -7500403 true true 150 285 285 225 285 75 150 135\nPolygon -7500403 true true 150 135 15 75 150 15 285 75\nPolygon -7500403 true true 15 75 15 225 150 285 150 135\nLine -16777216 false 150 285 150 135\nLine -16777216 false 150 135 15 75\nLine -16777216 false 150 135 285 75\n\nbug\ntrue\n0\nCircle -7500403 true true 96 182 108\nCircle -7500403 true true 110 127 80\nCircle -7500403 true true 110 75 80\nLine -7500403 true 150 100 80 30\nLine -7500403 true 150 100 220 30\n\nbutterfly\ntrue\n0\nPolygon -7500403 true true 150 165 209 199 225 225 225 255 195 270 165 255 150 240\nPolygon -7500403 true true 150 165 89 198 75 225 75 255 105 270 135 255 150 240\nPolygon -7500403 true true 139 148 100 105 55 90 25 90 10 105 10 135 25 180 40 195 85 194 139 163\nPolygon -7500403 true true 162 150 200 105 245 90 275 90 290 105 290 135 275 180 260 195 215 195 162 165\nPolygon -16777216 true false 150 255 135 225 120 150 135 120 150 105 165 120 180 150 165 225\nCircle -16777216 true false 135 90 30\nLine -16777216 false 150 105 195 60\nLine -16777216 false 150 105 105 60\n\ncar\nfalse\n0\nPolygon -7500403 true true 300 180 279 164 261 144 240 135 226 132 213 106 203 84 185 63 159 50 135 50 75 60 0 150 0 165 0 225 300 225 300 180\nCircle -16777216 true false 180 180 90\nCircle -16777216 true false 30 180 90\nPolygon -16777216 true false 162 80 132 78 134 135 209 135 194 105 189 96 180 89\nCircle -7500403 true true 47 195 58\nCircle -7500403 true true 195 195 58\n\ncircle\nfalse\n0\nCircle -7500403 true true 0 0 300\n\ncircle 2\nfalse\n0\nCircle -7500403 true true 0 0 300\nCircle -16777216 true false 30 30 240\n\ncow\nfalse\n0\nPolygon -7500403 true true 200 193 197 249 179 249 177 196 166 187 140 189 93 191 78 179 72 211 49 209 48 181 37 149 25 120 25 89 45 72 103 84 179 75 198 76 252 64 272 81 293 103 285 121 255 121 242 118 224 167\nPolygon -7500403 true true 73 210 86 251 62 249 48 208\nPolygon -7500403 true true 25 114 16 195 9 204 23 213 25 200 39 123\n\ncylinder\nfalse\n0\nCircle -7500403 true true 0 0 300\n\ndot\nfalse\n0\nCircle -7500403 true true 90 90 120\n\nface happy\nfalse\n0\nCircle -7500403 true true 8 8 285\nCircle -16777216 true false 60 75 60\nCircle -16777216 true false 180 75 60\nPolygon -16777216 true false 150 255 90 239 62 213 47 191 67 179 90 203 109 218 150 225 192 218 210 203 227 181 251 194 236 217 212 240\n\nface neutral\nfalse\n0\nCircle -7500403 true true 8 7 285\nCircle -16777216 true false 60 75 60\nCircle -16777216 true false 180 75 60\nRectangle -16777216 true false 60 195 240 225\n\nface sad\nfalse\n0\nCircle -7500403 true true 8 8 285\nCircle -16777216 true false 60 75 60\nCircle -16777216 true false 180 75 60\nPolygon -16777216 true false 150 168 90 184 62 210 47 232 67 244 90 220 109 205 150 198 192 205 210 220 227 242 251 229 236 206 212 183\n\nfish\nfalse\n0\nPolygon -1 true false 44 131 21 87 15 86 0 120 15 150 0 180 13 214 20 212 45 166\nPolygon -1 true false 135 195 119 235 95 218 76 210 46 204 60 165\nPolygon -1 true false 75 45 83 77 71 103 86 114 166 78 135 60\nPolygon -7500403 true true 30 136 151 77 226 81 280 119 292 146 292 160 287 170 270 195 195 210 151 212 30 166\nCircle -16777216 true false 215 106 30\n\nflag\nfalse\n0\nRectangle -7500403 true true 60 15 75 300\nPolygon -7500403 true true 90 150 270 90 90 30\nLine -7500403 true 75 135 90 135\nLine -7500403 true 75 45 90 45\n\nflower\nfalse\n0\nPolygon -10899396 true false 135 120 165 165 180 210 180 240 150 300 165 300 195 240 195 195 165 135\nCircle -7500403 true true 85 132 38\nCircle -7500403 true true 130 147 38\nCircle -7500403 true true 192 85 38\nCircle -7500403 true true 85 40 38\nCircle -7500403 true true 177 40 38\nCircle -7500403 true true 177 132 38\nCircle -7500403 true true 70 85 38\nCircle -7500403 true true 130 25 38\nCircle -7500403 true true 96 51 108\nCircle -16777216 true false 113 68 74\nPolygon -10899396 true false 189 233 219 188 249 173 279 188 234 218\nPolygon -10899396 true false 180 255 150 210 105 210 75 240 135 240\n\nhouse\nfalse\n0\nRectangle -7500403 true true 45 120 255 285\nRectangle -16777216 true false 120 210 180 285\nPolygon -7500403 true true 15 120 150 15 285 120\nLine -16777216 false 30 120 270 120\n\nleaf\nfalse\n0\nPolygon -7500403 true true 150 210 135 195 120 210 60 210 30 195 60 180 60 165 15 135 30 120 15 105 40 104 45 90 60 90 90 105 105 120 120 120 105 60 120 60 135 30 150 15 165 30 180 60 195 60 180 120 195 120 210 105 240 90 255 90 263 104 285 105 270 120 285 135 240 165 240 180 270 195 240 210 180 210 165 195\nPolygon -7500403 true true 135 195 135 240 120 255 105 255 105 285 135 285 165 240 165 195\n\nline\ntrue\n0\nLine -7500403 true 150 0 150 300\n\nline half\ntrue\n0\nLine -7500403 true 150 0 150 150\n\npentagon\nfalse\n0\nPolygon -7500403 true true 150 15 15 120 60 285 240 285 285 120\n\nperson\nfalse\n0\nCircle -7500403 true true 110 5 80\nPolygon -7500403 true true 105 90 120 195 90 285 105 300 135 300 150 225 165 300 195 300 210 285 180 195 195 90\nRectangle -7500403 true true 127 79 172 94\nPolygon -7500403 true true 195 90 240 150 225 180 165 105\nPolygon -7500403 true true 105 90 60 150 75 180 135 105\n\nplant\nfalse\n0\nRectangle -7500403 true true 135 90 165 300\nPolygon -7500403 true true 135 255 90 210 45 195 75 255 135 285\nPolygon -7500403 true true 165 255 210 210 255 195 225 255 165 285\nPolygon -7500403 true true 135 180 90 135 45 120 75 180 135 210\nPolygon -7500403 true true 165 180 165 210 225 180 255 120 210 135\nPolygon -7500403 true true 135 105 90 60 45 45 75 105 135 135\nPolygon -7500403 true true 165 105 165 135 225 105 255 45 210 60\nPolygon -7500403 true true 135 90 120 45 150 15 180 45 165 90\n\nsheep\nfalse\n15\nCircle -1 true true 203 65 88\nCircle -1 true true 70 65 162\nCircle -1 true true 150 105 120\nPolygon -7500403 true false 218 120 240 165 255 165 278 120\nCircle -7500403 true false 214 72 67\nRectangle -1 true true 164 223 179 298\nPolygon -1 true true 45 285 30 285 30 240 15 195 45 210\nCircle -1 true true 3 83 150\nRectangle -1 true true 65 221 80 296\nPolygon -1 true true 195 285 210 285 210 240 240 210 195 210\nPolygon -7500403 true false 276 85 285 105 302 99 294 83\nPolygon -7500403 true false 219 85 210 105 193 99 201 83\n\nsquare\nfalse\n0\nRectangle -7500403 true true 30 30 270 270\n\nsquare 2\nfalse\n0\nRectangle -7500403 true true 30 30 270 270\nRectangle -16777216 true false 60 60 240 240\n\nstar\nfalse\n0\nPolygon -7500403 true true 151 1 185 108 298 108 207 175 242 282 151 216 59 282 94 175 3 108 116 108\n\ntarget\nfalse\n0\nCircle -7500403 true true 0 0 300\nCircle -16777216 true false 30 30 240\nCircle -7500403 true true 60 60 180\nCircle -16777216 true false 90 90 120\nCircle -7500403 true true 120 120 60\n\ntree\nfalse\n0\nCircle -7500403 true true 118 3 94\nRectangle -6459832 true false 120 195 180 300\nCircle -7500403 true true 65 21 108\nCircle -7500403 true true 116 41 127\nCircle -7500403 true true 45 90 120\nCircle -7500403 true true 104 74 152\n\ntriangle\nfalse\n0\nPolygon -7500403 true true 150 30 15 255 285 255\n\ntriangle 2\nfalse\n0\nPolygon -7500403 true true 150 30 15 255 285 255\nPolygon -16777216 true false 151 99 225 223 75 224\n\ntruck\nfalse\n0\nRectangle -7500403 true true 4 45 195 187\nPolygon -7500403 true true 296 193 296 150 259 134 244 104 208 104 207 194\nRectangle -1 true false 195 60 195 105\nPolygon -16777216 true false 238 112 252 141 219 141 218 112\nCircle -16777216 true false 234 174 42\nRectangle -7500403 true true 181 185 214 194\nCircle -16777216 true false 144 174 42\nCircle -16777216 true false 24 174 42\nCircle -7500403 false true 24 174 42\nCircle -7500403 false true 144 174 42\nCircle -7500403 false true 234 174 42\n\nturtle\ntrue\n0\nPolygon -10899396 true false 215 204 240 233 246 254 228 266 215 252 193 210\nPolygon -10899396 true false 195 90 225 75 245 75 260 89 269 108 261 124 240 105 225 105 210 105\nPolygon -10899396 true false 105 90 75 75 55 75 40 89 31 108 39 124 60 105 75 105 90 105\nPolygon -10899396 true false 132 85 134 64 107 51 108 17 150 2 192 18 192 52 169 65 172 87\nPolygon -10899396 true false 85 204 60 233 54 254 72 266 85 252 107 210\nPolygon -7500403 true true 119 75 179 75 209 101 224 135 220 225 175 261 128 261 81 224 74 135 88 99\n\nwheel\nfalse\n0\nCircle -7500403 true true 3 3 294\nCircle -16777216 true false 30 30 240\nLine -7500403 true 150 285 150 15\nLine -7500403 true 15 150 285 150\nCircle -7500403 true true 120 120 60\nLine -7500403 true 216 40 79 269\nLine -7500403 true 40 84 269 221\nLine -7500403 true 40 216 269 79\nLine -7500403 true 84 40 221 269\n\nwolf\nfalse\n0\nPolygon -16777216 true false 253 133 245 131 245 133\nPolygon -7500403 true true 2 194 13 197 30 191 38 193 38 205 20 226 20 257 27 265 38 266 40 260 31 253 31 230 60 206 68 198 75 209 66 228 65 243 82 261 84 268 100 267 103 261 77 239 79 231 100 207 98 196 119 201 143 202 160 195 166 210 172 213 173 238 167 251 160 248 154 265 169 264 178 247 186 240 198 260 200 271 217 271 219 262 207 258 195 230 192 198 210 184 227 164 242 144 259 145 284 151 277 141 293 140 299 134 297 127 273 119 270 105\nPolygon -7500403 true true -1 195 14 180 36 166 40 153 53 140 82 131 134 133 159 126 188 115 227 108 236 102 238 98 268 86 269 92 281 87 269 103 269 113\n\nx\nfalse\n0\nPolygon -7500403 true true 270 75 225 30 30 225 75 270\nPolygon -7500403 true true 30 75 75 30 270 225 225 270\n@#$#@#$#@\nNetLogo 6.0.1\n@#$#@#$#@\n@#$#@#$#@\n@#$#@#$#@\n@#$#@#$#@\n@#$#@#$#@\ndefault\n0.0\n-0.2 0 0.0 1.0\n0.0 1 1.0 0.0\n0.2 0 0.0 1.0\nlink direction\ntrue\n0\nLine -7500403 true 150 150 90 180\nLine -7500403 true 150 150 210 180\n@#$#@#$#@\n0\n@#$#@#$#@";

}).call(this);

//# sourceMappingURL=new-model.js.map </script>


<script type="text/javascript">

   var jsRoutes = {}; (function(_root){

var _nS = function(c,f,b){var e=c.split(f||"."),g=b||_root,d,a;for(d=0,a=e.length;d<a;d++){g=g[e[d]]=g[e[d]]||{}}return g} var _qS = function(items){var qs = ; for(var i=0;i<items.length;i++) {if(items[i]) qs += (qs ? '&' : ) + items[i]}; return qs ? ('?' + qs) : } var _s = function(p,s){return p+((s===true||(s&&s.secure))?'s':)+':\/\/'} var _wA = function(r){return {ajax:function(c){c=c||{};c.url=r.url;c.type=r.method;return jQuery.ajax(c)}, method:r.method,type:r.method,url:r.url,absoluteURL: function(s){return _s('http',s)+'netlogoweb.org'+r.url},webSocketURL: function(s){return _s('ws',s)+'netlogoweb.org'+r.url}}} _nS('controllers.Local'); _root['controllers']['Local']['standalone'] =

       function() {
         return _wA({method:"GET", url:"\/" + "standalone"})
       }
     ;

})(jsRoutes) </script>


   <script type="text/nlogo" id="nlogo-code" data-filename="colibot7.nlogo">globals [is_wall cycler a moder]

breed [thymios thymio] patches-own[arena cchange bac wall ph_value] thymios-own[left_sensor right_sensor]

to startup

 reset

end

to reset

 ca
 ask patches [set pcolor white]
 ask patches with [pxcor = min-pxcor + 1 or pxcor = -2 or (pycor = min-pycor + 1 and pxcor < 0) or (pycor = max-pycor - 1 and pxcor < 0)][ask neighbors [ask neighbors [set pcolor black]]]
 ask patches with [pxcor > 0][set pcolor white]
 bg_info
 draw_bg
 ask patches with [pxcor = 0][set pcolor black]
 ask patches [set arena false set wall false]
 ;ask patches with [distancexy -64 0 >= 52 and pxcor < 0] [set pcolor black]
 ask patch -110 -50 [sprout-thymios 1  [ set size 15 set color grey set heading 45]]
 ask patches with [pxcor < 0 and pcolor = white][set arena true]
 ask patches with [pxcor < 0 and arena = false][set wall true]
 ask patches with [pcolor = black and pxcor > 0] [set cchange true]
 ask patches with [pcolor = 5][set bac true set ph_value 7]
 ask patches with [bac = true][set pcolor grey]
 set moder mode
 if mode = "ph-sensitivity - follow light" [ask patches with [pcolor = white and pxcor < 0 ][set pcolor blue]]
 reset-ticks

end

to draw if mouse-down? = true [if mouse-xcor < 0 and mouse-xcor > min-pxcor [ask patch mouse-xcor mouse-ycor [ ask neighbors [

   set pcolor black set arena false set wall true ask neighbors [set pcolor black set arena false set wall true]]]]]
 tick

end

to go

 if moder != mode [
   if mode = "temperature" [reset]
   if mode = "ph-sensitivity - follow light" [reset
     ask patches with [pcolor = white and pxcor < 0 ][set pcolor blue]]
   if mode = "ph-sensitivity - maze" [reset]]
 if mode = "temperature" [sense_wall_temp reactor_temp react_temp]
 if mode = "ph-sensitivity - follow light" [shiner ask thymio 0 [sense_light]]
 if mode = "ph-sensitivity - maze" [ask thymio 0 [set_ph]]
 tick

end


to set_ph

 ask patches with [bac = true or cchange = true][set pcolor grey]
 sense_wall_ph
 reactor_ph
 let measurement 0
 ask one-of patches with [bac = true] [set measurement ph_value]
 ifelse measurement < 7 [rt random 45][ifelse measurement > 7 [lt random 45][repeat 100 [if [wall] of patch-ahead 1 = false [fd 0.1]]]]

end

to shiner

 ask patches with [pcolor != black and pxcor < 0 ][set pcolor blue]
 ifelse mouse-inside? = true [ask patch mouse-xcor mouse-ycor [ask patches with [distance myself < 50 and pxcor < 0 and pcolor != black][let di distance myself set pcolor scale-color yellow di -20 60 ]]][]

end

to sense_wall_temp

 ask thymio 0 [
 ask patches with [bac = true or cchange = true][set pcolor grey]
 set is_wall 0
 ask patches in-cone 10 20 [if wall = true [set is_wall 1]]
   set cycler 10]

end

to sense_wall_ph

 set is_wall 0
 let head heading
 let x xcor
 let y ycor
 set heading heading + 15 fd 1
 ifelse count patches with [wall = true] in-cone 15 33 > 0 [
   set right_sensor distance min-one-of patches with [wall = true] [distance myself]][set right_sensor 99]
 set heading head
 setxy x y
 set heading heading - 15 fd 1
 ifelse count patches with [wall = true] in-cone 15 33 > 0 [
   set left_sensor distance min-one-of patches with [wall = true] [distance myself]][set left_sensor 99]
 ask thymio 0 [type "left: " type left_sensor type " right: " print right_sensor]
 set heading head
 setxy x y

end

to sense_light

 ask patches with [bac = true or cchange = true][set pcolor grey]
 set is_wall 0
 let head heading
 let x xcor
 let y ycor
 set heading heading + 25 fd 8
 set right_sensor pcolor - 40
 set heading head
 setxy x y
 set heading heading - 25 fd 8
 set left_sensor pcolor - 40
 set heading head
 setxy x y
set heading heading + 25 fd 8
set right_sensor distance min-one-of patches with [wall = true] [distance myself]
set heading head
setxy x y
set heading heading - 25 fd 8
set left_sensor distance min-one-of patches with [wall = true] [distance myself]
set heading head
setxy x y
ifelse
left_sensor < right_sensor
[if left_sensor < 6 [set is_wall 1]]
[if right_sensor < 6 [set is_wall 2]]
set cycler 1
 ; reactor_ph
let measurement 0
ask one-of patches with [pycor > 0 and cchange = true] [set measurement pcolor]
ifelse measurement = green
[repeat 100 [if [wall] of patch-ahead 1 = false [fd 0.1]]]
[ifelse is_wall = 1 [rt 45][lt 45]]
 ifelse left_sensor < 50 or right_sensor < 50 [ifelse right_sensor > left_sensor [set is_wall 1 lt random 15][set is_wall 2 rt random 15] fd 1][set is_wall 0]
 reactor_light
 set cycler 10

end


to reactor_temp

 while [cycler > 0] [
   ask thymio 0 [
     ifelse is_wall != 0
     [ask patches with [pycor > 0 and cchange = true][set pcolor red]]
     [ask patches with [pycor > 0 and cchange = true][set pcolor green]]
     if cycler mod 7 = 0 [ask patches with [bac = true] [set pcolor pink]]
     if cycler mod 13 = 0 [ask patches with [bac = true] [set pcolor blue]]
     set cycler cycler - 1
     if cycler <= 0 [
       ifelse is_wall != 0 [
         ask patches with [bac = true] [set pcolor red]
         ask patches with [pycor < 0 and cchange = true][set pcolor red]][
         ask patches with [bac = true] [set pcolor green]
         ask patches with [pycor < 0 and cchange = true][set pcolor green]]
       repeat 5 [wait 0.2 ]]
   ]
   if cycler <= 0 [set cycler 0]
  repeat 50 [wait 0.0005]]

end


to reactor_light

 while [cycler > 0] [
   ask thymio 0 [
     ifelse is_wall != 0
     [ask patches with [pycor > 0 and cchange = true][set pcolor red]]
     [ask patches with [pycor > 0 and cchange = true][set pcolor green]]
     if cycler mod 2 = 0 [ask patches with [bac = true] [set pcolor pink]]
     if cycler mod 4 = 0 [ask patches with [bac = true] [set pcolor blue]]
     set cycler cycler - 1
     if cycler <= 0 [
       ifelse is_wall != 0 [
         if is_wall = 1 [
         ask patches with [bac = true] [set pcolor red]
           ask patches with [cchange = true][set pcolor red]]
         if is_wall = 2 [
         ask patches with [bac = true] [set pcolor yellow]
           ask patches with [ cchange = true][set pcolor yellow]]
       ][
         ask patches with [bac = true] [set pcolor green]
         ask patches with [pycor < 0 and cchange = true][set pcolor green]]


   ]
     if cycler <= 0 [set cycler 0]]]

end

to reactor_ph

 let co 0
 if left_sensor < right_sensor
   [
     if left_sensor < 6 [ask patches with [bac = true][set ph_value ph_value - 1  set pcolor green set co 1]]]
    ;   let diff ph_value - 7
     ;set ph_value ph_value - (diff / 1.1)]]]
 if right_sensor < left_sensor
   [
     if right_sensor < 6 [ask patches with [bac = true][set ph_value ph_value + 1 set pcolor red set co 2 ]]]
    ; let diff ph_value - 7
     ;  set ph_value ph_value - (diff / 1.1)]]]
 if right_sensor = left_sensor [ask patches with [bac = true][set ph_value 7]]
 if co = 1 [ask patches with [pcolor = grey][set pcolor green]]
 if co = 2 [ask patches with [pcolor = grey][set pcolor red]]
 set cycler 1

end

to react_temp

 ask thymio 0 [
 let measurement 0
 ask one-of patches with [pycor > 0 and cchange = true] [set measurement pcolor]
 ifelse measurement = green
 [repeat 100 [if [wall] of patch-ahead 1 = false [fd 0.1]]]
   [set heading heading + random 45]]

end



to safey

 ask patches with [pxcor > 0 and pcolor != white] [type "[" type pxcor type " " type pycor type " " type pcolor print "]" ]

end

to draw_bg

 let b length a
 let c 0
 repeat b [
   let x item 0 item c a
   let y item 1 item c a
   let co item 2 item c a
   ask patch x y [set pcolor co]
   set c c + 1
 ]

end

to bg_info set a [ [69 -52 5] [77 -44 5] [37 21 0] [30 -24 4.1] [87 -9 5] [30 -27 8.9] [114 -43 5] [42 47 0] [79 -38 5] [76 13 5] [67 5 0] [43 16 0] [93 -11 5] [82 -45 5] [104 -52 5] [39 -25 0] [101 -48 5] [85 6 5] [108 4 5] [34 -29 7.1] [40 36 2.6] [109 -25 5] [79 -50 5] [101 -53 5] [77 -1 5] [18 -26 0.2] [78 -18 5] [108 -48 5] [20 48 8.6] [113 -29 5] [67 3 0] [71 -25 5] [34 -35 7.1] [97 -48 5] [101 -21 5] [76 -36 5] [43 46 0] [113 19 5] [113 -28 5] [98 19 5] [96 9 5] [99 -20 5] [73 -34 5] [84 0 5] [33 -29 0] [33 25 7.1] [43 -34 0] [39 17 0] [59 7 0] [73 -40 5] [86 -39 5] [47 -21 6.5] [32 -33 0] [75 -14 5] [32 40 100] [37 -45 0] [31 29 0] [73 -47 5] [108 -7 5] [30 24 7.1] [94 -8 5] [80 -24 5] [70 0 0] [77 19 5] [82 -51 5] [80 14 5] [22 -15 1.6] [76 -20 5] [102 -42 5] [94 -17 5] [86 -20 5] [72 5 5] [19 -21 0] [20 29 0] [35 -46 0] [106 -53 5] [72 -3 5] [105 -29 5] [26 36 7.1] [49 15 0] [111 -19 5] [95 -42 5] [90 -4 5] [85 -14 5] [106 4 5] [90 -41 5] [108 -32 5] [114 -26 5] [71 19 5] [71 -17 5] [79 -45 5] [103 -46 5] [86 9 5] [71 -15 5] [106 -27 5] [104 -7 5] [88 3 5] [110 12 5] [83 14 5] [78 -43 5] [89 -7 5] [90 -29 5] [72 -22 5] [96 13 5] [32 28 0] [42 32 7.6] [112 8 5] [100 -39 5] [23 -33 2.8] [105 -24 5] [46 -20 0] [110 -11 5] [39 20 0] [106 -17 5] [41 -23 3.4] [43 -18 0] [101 -52 5] [79 9 5] [17 42 6.5] [30 38 0] [109 -22 5] [84 -38 5] [110 -14 5] [109 -37 5] [95 -22 5] [31 -38 7.1] [30 35 7.4] [22 -19 4.9] [68 -38 0] [72 -10 5] [81 -6 5] [76 -23 5] [98 -30 5] [32 -44 0] [34 -30 7.1] [107 -32 5] [106 -54 5] [81 -53 5] [74 -14 5] [35 20 0] [31 -27 0.8] [103 1 5] [111 -32 5] [90 4 5] [99 -3 5] [108 -47 5] [92 -38 5] [33 -39 0] [81 -10 5] [79 -42 5] [103 -32 5] [83 2 5] [84 18 5] [77 9 5] [109 -2 5] [66 -37 0] [78 12 5] [38 18 0] [90 -36 5] [77 -26 5] [19 -18 8.6] [83 -51 5] [113 1 5] [32 41 9.2] [79 -19 5] [33 18 0] [54 9 0] [88 5 5] [45 -21 0] [105 0 5] [96 16 5] [39 -41 0] [81 -39 5] [83 17 5] [95 -10 5] [80 8 5] [86 -38 5] [110 -16 5] [105 -45 5] [70 17 5] [114 -30 5] [94 -24 5] [18 40 0] [39 36 0] [111 -7 5] [97 -22 5] [80 1 5] [95 -15 5] [42 -41 0] [70 -41 5] [87 -20 5] [74 12 5] [96 4 5] [104 -31 5] [88 16 5] [49 -42 0] [71 -48 5] [41 -45 0] [79 -17 5] [109 15 5] [75 -6 5] [100 -49 5] [74 -3 5] [88 -33 5] [91 -53 5] [110 -3 5] [101 -39 5] [96 -22 5] [113 16 5] [39 -45 0] [41 19 0] [75 18 5] [88 -44 5] [71 -28 5] [55 7 0] [74 -44 5] [107 -42 5] [39 -44 0] [88 14 5] [85 -23 5] [96 -30 5] [44 33 0] [45 13 0] [101 -4 5] [99 -19 5] [75 -35 5] [104 -28 5] [87 -22 5] [42 -35 8.2] [23 -16 1] [85 -22 5] [69 14 5] [87 -37 5] [111 0 5] [88 -46 5] [114 -17 5] [62 -37 0] [99 -25 5] [55 10 0] [38 -23 6.1] [108 -45 5] [26 -26 0] [24 43 7.2] [58 -39 0] [22 -17 0] [109 -46 5] [95 14 5] [91 10 5] [96 -32 5] [81 -22 5] [86 -47 5] [88 -48 5] [75 -26 5] [94 -40 5] [102 -10 5] [44 16 0] [95 18 5] [114 -29 5] [108 14 5] [73 -16 5] [113 -31 5] [96 -24 5] [33 24 7.1] [31 28 0] [90 -26 5] [88 -22 5] [60 7 0] [113 -10 5] [48 -41 0] [84 8 5] [91 17 5] [108 9 5] [98 -16 5] [98 -32 5] [46 -18 8.6] [113 -27 5] [72 -46 5] [20 -19 0] [23 37 0.2] [107 15 5] [69 2 0] [95 -2 5] [105 -48 5] [95 -54 5] [82 6 5] [31 23 0] [77 -3 5] [75 1 5] [82 -48 5] [53 -40 0] [102 1 5] [99 -55 5] [21 44 4.9] [72 -50 5] [34 -41 7.1] [99 12 5] [111 14 5] [110 -28 5] [19 -25 0] [73 -49 5] [72 14 5] [42 16 0] [24 38 0] [82 -49 5] [103 -2 5] [100 -4 5] [63 7 0] [95 -43 5] [108 -51 5] [113 15 5] [89 -31 5] [42 46 0] [83 -41 5] [92 -5 5] [111 -41 5] [73 -11 5] [102 -3 5] [113 -7 5] [114 -36 5] [108 -15 5] [89 -40 5] [105 -41 5] [79 10 5] [37 34 0] [96 -26 5] [111 -37 5] [36 -43 0] [56 -42 0] [34 38 0.9] [20 -21 0] [57 7 0] [61 5 0] [89 -19 5] [109 -20 5] [90 -47 5] [86 -27 5] [72 -23 5] [78 -14 5] [33 31 7.1] [79 4 5] [89 -44 5] [69 13 5] [95 -35 5] [90 3 5] [101 -11 5] [92 -41 5] [96 -19 5] [71 -8 5] [84 3 5] [76 -41 5] [90 -10 5] [110 -7 5] [78 -32 5] [46 34 5.9] [45 -19 0] [99 -22 5] [20 47 0.8] [85 13 5] [95 -32 5] [102 -15 5] [91 -2 5] [95 -46 5] [34 18 0] [62 4 0] [32 -35 0] [72 13 5] [84 -6 5] [107 -10 5] [72 16 5] [73 -7 5] [92 -16 5] [105 -50 5] [69 -50 5] [70 18 5] [96 6 5] [78 -1 5] [19 38 0.7] [86 15 5] [100 -41 5] [24 42 0.5] [111 10 5] [41 16 0] [91 -15 5] [109 3 5] [71 3 0] [92 4 5] [37 17 0] [108 -18 5] [81 -19 5] [62 -40 0] [39 -22 0] [93 -33 5] [102 -50 5] [33 -27 0] [101 -14 5] [107 3 5] [93 -17 5] [76 -55 5] [84 17 5] [112 1 5] [94 -42 5] [71 -14 5] [76 -16 5] [71 -6 5] [55 -41 0] [79 -35 5] [108 -3 5] [98 -3 5] [79 -14 5] [71 10 5] [99 4 5] [78 -22 5] [75 -40 5] [76 -32 5] [33 -38 0] [35 -26 2.9] [84 -18 5] [75 13 5] [92 -22 5] [79 -31 5] [35 21 0] [64 -38 0] [91 0 5] [97 -36 5] [24 40 0] [38 -27 7.1] [73 -32 5] [95 -41 5] [55 12 0] [74 8 5] [94 -53 5] [38 41 0] [77 -2 5] [71 -47 5] [80 -37 5] [63 4 0] [20 -18 0] [90 15 5] [94 -33 5] [110 6 5] [27 -22 1.9] [18 -25 0] [23 34 9.4] [87 -24 5] [44 -18 0] [66 3 0] [45 42 0] [46 36 1.4] [89 -32 5] [93 4 5] [25 -21 0.5] [83 5 5] [43 -15 1.5] [104 -30 5] [74 -9 5] [99 2 5] [69 -16 5] [45 -29 0] [58 6 0] [113 -18 5] [106 -42 5] [56 -38 0] [113 -36 5] [91 -3 5] [72 -19 5] [113 -49 5] [72 15 5] [91 -25 5] [101 5 5] [108 10 5] [70 10 5] [84 -49 5] [96 -35 5] [79 -16 5] [85 8 5] [98 -27 5] [111 -30 5] [74 -36 5] [18 32 1] [95 19 5] [33 -41 0] [97 0 5] [19 -24 0] [81 -17 5] [69 12 5] [108 -37 5] [78 -41 5] [35 -43 0] [93 -18 5] [59 -39 0] [86 -9 5] [69 -54 5] [31 27 0] [104 4 5] [73 -33 5] [101 -5 5] [88 -55 5] [105 -27 5] [89 -13 5] [110 -35 5] [96 -12 5] [76 1 5] [103 -41 5] [74 -33 5] [87 -33 5] [31 21 0] [86 -23 5] [42 15 0] [98 -39 5] [36 42 4.5] [112 -36 5] [110 11 5] [100 15 5] [109 -16 5] [100 18 5] [87 4 5] [89 19 5] [81 9 5] [81 -36 5] [20 34 4.7] [36 16 0] [108 -1 5] [77 -20 5] [74 14 5] [41 31 9.4] [27 -28 2.8] [89 -25 5] [77 -16 5] [39 43 7.2] [92 -47 5] [76 5 5] [92 -34 5] [103 -10 5] [97 -4 5] [67 -39 0] [98 -19 5] [53 11 0] [69 -42 5] [93 -3 5] [88 -20 5] [92 1 5] [95 16 5] [45 44 1.6] [89 15 5] [47 -42 0] [40 -25 0] [79 6 5] [107 5 5] [31 -45 0] [102 15 5] [87 -27 5] [49 12 0] [87 -17 5] [69 -34 5] [79 -33 5] [73 -26 5] [88 -16 5] [96 -27 5] [84 -8 5] [71 -21 5] [35 19 0] [89 -43 5] [69 4 0] [45 -30 0] [40 -21 0.5] [105 -14 5] [56 6 0] [93 10 5] [50 -39 0] [69 -28 5] [95 -33 5] [75 11 5] [69 -53 5] [91 -1 5] [106 -48 5] [20 35 8] [101 -45 5] [77 1 5] [84 -4 5] [88 13 5] [97 -43 5] [93 -51 5] [20 -23 0.2] [84 -42 5] [74 -8 5] [106 -24 5] [107 -51 5] [80 -13 5] [106 -18 5] [100 -37 5] [104 -55 5] [85 -37 5] [82 -10 5] [111 -39 5] [75 -39 5] [73 -23 5] [97 -24 5] [112 -55 5] [25 44 4.9] [29 36 8.9] [96 10 5] [100 -3 5] [91 -33 5] [103 -26 5] [112 -41 5] [80 -8 5] [33 -32 0] [79 -54 5] [113 -52 5] [23 38 0] [30 32 7.1] [91 -37 5] [106 11 5] [71 -22 5] [104 -12 5] [64 6 0] [106 -25 5] [101 -10 5] [104 -5 5] [43 -31 7.6] [33 33 7.1] [85 17 5] [93 -53 5] [90 14 5] [94 8 5] [105 10 5] [24 -29 9.4] [32 30 0] [84 -28 5] [46 12 0] [88 -27 5] [44 -35 7.1] [69 -2 5] [69 19 5] [80 -53 5] [114 -33 5] [106 0 5] [95 0 5] [102 19 5] [85 -27 5] [86 -41 5] [111 4 5] [108 -41 5] [82 -25 5] [37 32 8.5] [103 -17 5] [78 -48 5] [108 -10 5] [81 -32 5] [90 -38 5] [89 3 5] [103 16 5] [99 -43 5] [85 -20 5] [83 6 5] [83 18 5] [32 33 0] [88 11 5] [87 -48 5] [113 -44 5] [30 29 7.1] [80 -31 5] [81 -2 5] [82 -44 5] [87 -6 5] [69 -9 5] [32 22 0] [37 -41 0] [84 -26 5] [113 -12 5] [33 -33 0] [99 -30 5] [105 -25 5] [85 -24 5] [24 -24 0.6] [82 5 5] [72 -42 5] [40 18 0] [113 8 5] [100 -8 5] [92 -6 5] [93 -48 5] [67 -36 0] [101 -9 5] [114 -20 5] [87 -23 5] [96 -13 5] [95 13 5] [32 -22 9.2] [105 -15 5] [80 -54 5] [107 -52 5] [98 -46 5] [111 -50 5] [19 -19 1.6] [77 -13 5] [110 -24 5] [83 10 5] [70 -26 5] [80 -27 5] [81 -16 5] [37 -21 4.5] [93 -43 5] [70 -27 5] [81 17 5] [41 -40 0] [87 15 5] [98 -13 5] [112 -1 5] [40 -29 0] [100 -45 5] [112 -17 5] [99 -24 5] [104 -39 5] [110 -1 5] [25 39 0] [30 28 7.1] [79 -23 5] [105 -16 5] [113 -16 5] [82 -40 5] [98 -9 5] [81 -54 5] [74 -13 5] [101 -1 5] [43 -16 0] [77 -8 5] [45 43 0] [98 6 5] [21 -31 0] [105 -1 5] [88 -10 5] [107 -46 5] [107 10 5] [85 -16 5] [73 6 5] [75 -22 5] [31 36 0] [33 20 0] [107 8 5] [46 41 3.9] [95 4 5] [26 -21 0] [90 -39 5] [26 32 8.5] [101 -32 5] [98 -25 5] [81 -31 5] [98 3 5] [112 12 5] [80 -42 5] [96 11 5] [81 16 5] [109 -32 5] [93 3 5] [84 -9 5] [107 -30 5] [50 -41 0] [17 39 0.4] [91 7 5] [37 18 0] [77 -4 5] [56 7 0] [85 -25 5] [92 -31 5] [26 -31 2.2] [46 35 3.4] [43 35 8] [85 -19 5] [41 18 0] [43 34 4.7] [101 19 5] [74 -22 5] [85 14 5] [113 -34 5] [79 -46 5] [80 -5 5] [78 -42 5] [80 -49 5] [96 19 5] [81 -23 5] [92 -44 5] [92 12 5] [100 -27 5] [75 -1 5] [91 5 5] [85 -43 5] [98 10 5] [96 18 5] [81 0 5] [41 48 9.4] [72 -40 5] [113 -41 5] [96 -20 5] [94 7 5] [93 -4 5] [100 -22 5] [110 -26 5] [87 -10 5] [105 -6 5] [75 15 5] [102 -28 5] [77 -32 5] [73 4 5] [91 -55 5] [34 -24 0] [23 35 6.6] [83 -24 5] [108 -35 5] [30 -26 2.9] [93 -44 5] [39 -31 2.2] [74 13 5] [90 -9 5] [109 -21 5] [73 -2 5] [78 -2 5] [100 -42 5] [80 -36 5] [73 9 5] [17 40 1.7] [96 -42 5] [101 -29 5] [25 -26 0] [32 24 0] [104 12 5] [95 -44 5] [102 -22 5] [103 6 5] [34 37 2.9] [89 -34 5] [91 -5 5] [96 -39 5] [111 -49 5] [92 -48 5] [95 -31 5] [90 -22 5] [97 -21 5] [70 -44 5] [59 -37 0] [60 9 0] [71 17 5] [110 -20 5] [82 -30 5] [84 6 5] [19 42 0] [63 -37 0] [90 -5 5] [82 -33 5] [44 44 0] [82 2 5] [95 17 5] [96 -54 5] [84 -36 5] [106 -33 5] [82 15 5] [72 -35 5] [83 1 5] [110 -45 5] [79 -40 5] [103 7 5] [76 -54 5] [112 -18 5] [92 10 5] [100 9 5] [113 -19 5] [87 -34 5] [44 -34 0] [87 -45 5] [110 0 5] [92 -12 5] [94 16 5] [104 -32 5] [86 -14 5] [58 -41 0] [69 -25 5] [44 15 0] [83 -44 5] [81 -5 5] [78 1 5] [89 -24 5] [79 7 5] [96 -49 5] [102 -43 5] [65 -36 0] [79 -25 5] [79 0 5] [99 -26 5] [73 -12 5] [96 -23 5] [98 -48 5] [32 -25 0] [91 -52 5] [101 -22 5] [101 1 5] [99 17 5] [17 34 5.9] [85 5 5] [81 12 5] [109 -19 5] [81 -46 5] [20 -25 0.7] [85 -35 5] [100 13 5] [38 37 0] [69 10 5] [83 8 5] [94 -35 5] [84 -27 5] [86 -19 5] [76 -4 5] [96 -14 5] [95 -34 5] [84 -7 5] [95 2 5] [23 -18 8.5] [104 -4 5] [71 9 5] [83 -29 5] [107 -40 5] [76 11 5] [84 -5 5] [22 31 9.4] [89 -11 5] [86 -46 5] [72 -48 5] [92 -36 5] [80 -29 5] [66 -36 0] [72 -5 5] [73 -44 5] [21 31 0.1] [96 -34 5] [92 -3 5] [104 -1 5] [70 -43 5] [86 -30 5] [86 -6 5] [32 -23 100] [78 -13 5] [103 -33 5] [88 1 5] [88 -13 5] [40 -24 0] [47 12 0] [22 -32 0.1] [85 12 5] [41 -22 7.1] [94 12 5] [28 -21 4.5] [33 21 0] [97 -18 5] [110 -39 5] [110 19 5] [71 -20 5] [22 -34 0] [85 -40 5] [104 0 5] [78 0 5] [74 10 5] [107 -1 5] [57 -41 0] [73 -52 5] [100 -50 5] [72 -6 5] [80 -16 5] [113 -53 5] [104 -54 5] [79 -52 5] [32 -42 0] [97 14 5] [98 -14 5] [18 33 0] [111 9 5] [72 12 5] [101 -35 5] [64 -37 0] [109 -3 5] [114 -35 5] [111 -40 5] [52 -41 0] [87 -42 5] [114 5 5] [86 -3 5] [87 -5 5] [99 -39 5] [112 -16 5] [76 -44 5] [71 5 5] [78 -25 5] [31 -34 7.1] [75 14 5] [112 -33 5] [98 1 5] [82 8 5] [20 -26 0.6] [41 15 0] [74 17 5] [70 -13 5] [40 -27 0] [47 -39 0] [102 18 5] [107 2 5] [33 22 0] [61 6 0] [45 15 0] [75 -16 5] [72 9 5] [89 -29 5] [41 -26 0.2] [32 -28 0] [95 -18 5] [34 -27 0.8] [22 -18 0] [44 39 0.5] [99 9 5] [87 -38 5] [96 -55 5] [69 -47 5] [88 8 5] [92 6 5] [20 33 1.5] [79 -10 5] [70 -49 5] [70 2 0] [77 -19 5] [51 14 0] [105 -55 5] [44 -28 8] [33 -22 9.2] [94 -23 5] [40 -26 0] [108 -26 5] [104 11 5] [110 10 5] [18 -29 5.9] [87 -55 5] [81 -41 5] [70 15 5] [84 9 5] [36 -41 0] [89 14 5] [100 -28 5] [67 4 0] [106 2 5] [101 4 5] [83 -19 5] [53 -38 0] [71 -38 5] [91 -54 5] [38 -31 8.5] [96 2 5] [88 -1 5] [31 -33 7.1] [99 -18 5] [84 -31 5] [81 14 5] [54 -40 0] [19 43 0] [96 8 5] [25 42 0] [65 2 0] [105 -44 5] [78 -15 5] [108 -40 5] [21 -34 0] [89 -46 5] [106 -10 5] [93 -41 5] [76 19 5] [21 -16 0.8] [75 -24 5] [93 18 5] [96 -53 5] [94 -54 5] [99 -52 5] [102 2 5] [98 -36 5] [98 11 5] [108 16 5] [44 30 2] [23 39 0.6] [76 -53 5] [31 22 0] [103 12 5] [106 -5 5] [17 33 8.1] [97 -40 5] [22 30 2.8] [103 18 5] [72 -53 5] [90 -54 5] [95 -11 5] [94 -49 5] [102 6 5] [81 -27 5] [21 30 0] [92 -53 5] [96 15 5] [101 -33 5] [111 -26 5] [43 18 0] [83 -17 5] [72 -41 5] [41 -21 9.7] [74 -24 5] [105 19 5] [31 24 0] [51 -41 0] [85 -30 5] [87 -14 5] [76 -26 5] [97 -33 5] [113 -9 5] [59 -40 0] [55 -38 0] [77 3 5] [93 -28 5] [107 -45 5] [72 -54 5] [107 -35 5] [101 15 5] [27 -23 6.1] [99 -46 5] [110 -54 5] [22 46 1.2] [95 6 5] [75 -8 5] [35 -44 0] [38 -28 2.8] [111 -25 5] [91 -19 5] [73 -29 5] [100 -31 5] [94 -3 5] [103 -34 5] [47 -27 1.4] [111 -55 5] [94 -12 5] [32 -30 0] [32 31 0] [102 12 5] [32 -38 0] [20 -30 0] [92 -29 5] [109 14 5] [104 -49 5] [74 0 5] [87 -30 5] [77 -31 5] [103 -22 5] [102 -4 5] [85 -49 5] [86 -45 5] [91 -32 5] [73 10 5] [75 -45 5] [107 -39 5] [43 48 8.6] [90 -51 5] [89 -51 5] [102 -24 5] [94 -2 5] [88 -9 5] [45 -41 0] [44 41 0] [100 -52 5] [88 -47 5] [106 -30 5] [108 -33 5] [39 42 0.5] [95 -36 5] [97 -47 5] [81 19 5] [113 -3 5] [48 -40 0] [98 -41 5] [19 32 0] [44 34 0] [110 -34 5] [33 -26 0] [97 19 5] [71 -29 5] [88 -54 5] [74 -26 5] [76 -40 5] [71 15 5] [71 -46 5] [99 -29 5] [109 -27 5] [97 -9 5] [46 14 0] [107 19 5] [96 -6 5] [67 -37 0] [84 -12 5] [22 29 0] [83 -43 5] [95 -39 5] [72 2 5] [106 15 5] [79 -13 5] [114 -16 5] [104 -14 5] [71 -30 5] [46 37 0.2] [86 -1 5] [65 -37 0] [85 2 5] [25 -20 7.2] [98 -47 5] [102 -34 5] [84 -39 5] [103 5 5] [85 -44 5] [39 -24 0] [94 -55 5] [37 36 7.1] [25 -23 0] [84 -14 5] [96 -7 5] [77 -50 5] [104 6 5] [80 13 5] [42 29 0] [71 -26 5] [99 -28 5] [97 -2 5] [83 16 5] [110 -46 5] [24 37 0] [73 5 5] [22 -35 0] [91 -35 5] [101 -30 5] [84 -54 5] [75 -27 5] [85 -1 5] [46 -32 7] [102 -16 5] [44 37 0.6] [71 2 0] [70 -32 5] [101 -47 5] [97 7 5] [44 45 0] [43 33 1.5] [99 -54 5] [103 -31 5] [57 10 0] [108 2 5] [77 12 5] [38 -41 0] [87 -46 5] [86 -25 5] [76 17 5] [104 3 5] [54 -41 0] [109 -5 5] [52 -38 0] [74 5 5] [99 -38 5] [114 -12 5] [114 15 5] [78 15 5] [79 -20 5] [84 -11 5] [20 -31 0] [72 -15 5] [81 -50 5] [54 10 0] [88 -35 5] [83 4 5] [19 29 9.4] [85 -7 5] [17 36 1.4] [48 12 0] [91 4 5] [42 -15 9.4] [89 -1 5] [90 -45 5] [87 -29 5] [23 29 8.8] [76 -27 5] [46 -31 1] [74 -6 5] [33 38 0] [69 5 0] [32 -27 0] [19 -22 0] [79 -4 5] [45 -33 2] [88 -30 5] [113 -43 5] [46 42 6.5] [36 17 0] [111 12 5] [33 -46 0] [100 -21 5] [84 7 5] [97 -28 5] [94 -27 5] [94 -52 5] [75 -2 5] [34 -46 0] [91 -4 5] [73 1 5] [25 36 0] [46 -28 0] [104 -27 5] [99 -9 5] [79 -22 5] [83 -42 5] [77 -38 5] [92 14 5] [77 -49 5] [103 -4 5] [109 -15 5] [37 16 0] [78 -16 5] [37 42 0] [113 -6 5] [45 -28 0] [93 -35 5] [24 -21 9.7] [102 -47 5] [38 -42 0] [106 -34 5] [104 -19 5] [55 -39 0] [104 -10 5] [89 -55 5] [108 -30 5] [38 -20 1.3] [113 -40 5] [44 -19 0] [90 -14 5] [91 -27 5] [29 38 0.9] [61 8 0] [95 -16 5] [83 -30 5] [19 34 0] [92 -14 5] [83 -4 5] [107 -6 5] [21 -18 0] [96 12 5] [90 -7 5] [39 19 0] [107 -22 5] [46 -27 0] [107 -26 5] [96 -29 5] [61 -40 0] [80 10 5] [83 -46 5] [46 -41 0] [43 17 0] [107 -50 5] [107 -27 5] [94 -7 5] [81 -8 5] [79 -5 5] [45 37 0] [69 7 5] [93 12 5] [42 17 0] [75 -5 5] [34 -26 0] [20 28 7.1] [68 3 0] [49 -43 0] [114 -2 5] [80 9 5] [91 -45 5] [42 14 0] [44 -30 1.5] [32 -32 0] [110 1 5] [98 -37 5] [103 -5 5] [40 -42 0] [87 18 5] [103 -3 5] [104 1 5] [70 -28 5] [69 -49 5] [39 16 0] [86 -12 5] [42 18 0] [89 12 5] [100 -29 5] [19 33 0] [106 -40 5] [92 7 5] [76 -37 5] [90 -49 5] [81 5 5] [111 -29 5] [43 15 0] [42 -44 0] [63 5 0] [110 -31 5] [84 -20 5] [106 -36 5] [113 -38 5] [62 -38 0] [103 11 5] [91 14 5] [73 -6 5] [82 -54 5] [83 -40 5] [89 2 5] [71 8 5] [97 11 5] [97 16 5] [82 -55 5] [110 -36 5] [30 22 0] [91 9 5] [89 17 5] [46 16 0] [74 -35 5] [105 -39 5] [89 -16 5] [71 13 5] [69 -10 5] [87 -31 5] [87 11 5] [101 -40 5] [46 -19 1.6] [81 -11 5] [75 -33 5] [75 -25 5] [99 -12 5] [30 40 1.7] [36 33 8.5] [77 -37 5] [92 -8 5] [34 -31 7.1] [106 -26 5] [52 11 0] [110 -53 5] [87 17 5] [98 -2 5] [114 -11 5] [38 15 0] [104 10 5] [102 -48 5] [18 44 1.6] [69 -33 5] [33 -25 0] [76 15 5] [34 -43 0] [111 -34 5] [64 3 0] [82 14 5] [111 -31 5] [105 -49 5] [102 -21 5] [96 -43 5] [89 6 5] [76 -24 5] [96 -9 5] [105 -38 5] [99 -13 5] [81 -9 5] [59 -41 0] [106 -37 5] [99 10 5] [93 -21 5] [74 4 5] [52 -40 0] [91 -22 5] [49 -41 0] [78 -50 5] [102 -18 5] [78 9 5] [75 -49 5] [75 6 5] [110 -29 5] [110 5 5] [104 7 5] [75 -3 5] [75 -11 5] [68 5 0] [84 13 5] [78 -23 5] [100 -5 5] [106 -8 5] [73 -20 5] [90 8 5] [109 -35 5] [70 -46 5] [18 -27 1.4] [82 -42 5] [109 -39 5] [48 10 0] [114 -50 5] [75 -29 5] [80 -7 5] [107 1 5] [61 4 0] [76 2 5] [112 9 5] [105 -42 5] [111 2 5] [82 -34 5] [83 -38 5] [106 -31 5] [112 -47 5] [103 3 5] [109 -11 5] [114 8 5] [88 0 5] [87 10 5] [114 0 5] [85 -32 5] [81 -37 5] [76 -49 5] [74 -28 5] [76 -52 5] [39 35 0] [73 -10 5] [40 39 0.6] [75 5 5] [100 -25 5] [45 31 7] [99 -31 5] [33 34 7.1] [114 -27 5] [73 0 5] [96 14 5] [79 -34 5] [99 -53 5] [106 -52 5] [87 -40 5] [97 6 5] [95 -19 5] [90 -48 5] [61 -39 0] [77 -40 5] [103 13 5] [38 34 0] [102 3 5] [83 9 5] [112 -48 5] [110 -2 5] [18 39 0] [99 8 5] [102 -53 5] [77 -30 5] [114 -9 5] [100 -20 5] [90 11 5] [91 -41 5] [88 -45 5] [38 38 0] [95 -5 5] [91 -36 5] [75 -53 5] [89 -18 5] [109 -17 5] [106 -12 5] [100 10 5] [69 -6 5] [94 -50 5] [74 -7 5] [44 -31 0] [69 -27 5] [85 -8 5] [103 10 5] [57 -39 0] [106 1 5] [39 38 0] [70 -6 5] [109 0 5] [106 3 5] [98 -33 5] [54 -38 0] [69 -32 5] [78 -35 5] [105 13 5] [89 -52 5] [100 -26 5] [79 -48 5] [108 -46 5] [37 43 1.3] [110 -21 5] [104 -48 5] [112 -49 5] [26 41 1.9] [52 12 0] [45 39 0] [64 -39 0] [58 5 0] [77 -34 5] [93 -38 5] [41 -17 9.6] [101 8 5] [93 5 5] [88 9 5] [111 -54 5] [71 -3 5] [81 -34 5] [78 -31 5] [54 7 0] [90 9 5] [89 -12 5] [67 2 0] [104 5 5] [60 6 0] [72 -25 5] [87 -39 5] [84 -37 5] [72 4 5] [70 -2 5] [96 7 5] [69 15 5] [43 -33 0] [112 14 5] [92 -39 5] [88 7 5] [70 -9 5] [96 -48 5] [105 -19 5] [106 -46 5] [76 18 5] [80 -50 5] [75 -28 5] [18 35 0] [89 -42 5] [26 -27 0] [92 -46 5] [44 -21 3.9] [75 -18 5] [20 42 3.9] [80 -15 5] [77 -10 5] [88 -29 5] [96 0 5] [52 -42 0] [61 7 0] [31 -44 0] [82 18 5] [87 1 5] [113 -21 5] [107 -2 5] [100 -55 5] [65 3 0] [70 3 0] [82 -26 5] [111 -17 5] [100 7 5] [87 2 5] [104 -41 5] [20 -28 0] [44 -43 0] [85 11 5] [105 8 5] [20 -24 0.5] [92 5 5] [108 19 5] [69 -29 5] [58 -38 0] [113 14 5] [90 -34 5] [100 -10 5] [108 0 5] [113 -48 5] [73 -45 5] [25 -27 0] [83 -34 5] [108 -50 5] [65 5 0] [104 -17 5] [76 -8 5] [96 -17 5] [81 -7 5] [90 6 5] [101 -24 5] [96 -4 5] [70 -17 5] [79 -1 5] [86 1 5] [21 -21 3.9] [75 -41 5] [109 -50 5] [33 -30 0] [112 -43 5] [93 -37 5] [89 -36 5] [40 -23 0] [44 43 0] [108 -29 5] [91 2 5] [82 16 5] [92 -50 5] [114 3 5] [110 -38 5] [49 -40 0] [93 -46 5] [90 0 5] [92 -10 5] [111 -21 5] [19 -31 1] [74 -5 5] [113 -45 5] [65 -38 0] [32 38 0] [60 4 0] [103 -52 5] [40 37 0.2] [106 -50 5] [74 -53 5] [94 5 5] [26 33 0.3] [76 -15 5] [113 -24 5] [51 13 0] [99 13 5] [89 5 5] [110 -47 5] [54 12 0] [114 -49 5] [39 -21 0] [32 -34 0] [81 11 5] [36 18 0] [91 -39 5] [71 -36 5] [38 36 0] [31 -30 7.1] [42 -16 1] [78 -33 5] [53 -41 0] [95 -4 5] [82 -39 5] [70 5 5] [73 15 5] [91 -29 5] [92 0 5] [112 -14 5] [76 8 5] [106 -55 5] [51 12 0] [103 17 5] [110 -51 5] [77 -27 5] [88 -26 5] [71 -10 5] [90 -18 5] [42 -33 2.8] [109 -42 5] [34 -44 0] [98 0 5] [103 9 5] [93 16 5] [32 20 0] [77 -46 5] [73 -38 5] [73 -18 5] [94 -5 5] [102 -55 5] [90 -8 5] [79 -32 5] [112 -25 5] [32 39 0] [99 -35 5] [84 -29 5] [98 -4 5] [25 -30 5.4] [99 -6 5] [22 48 9.5] [85 16 5] [102 -36 5] [82 -24 5] [91 -31 5] [71 -51 5] [96 -25 5] [106 -43 5] [81 15 5] [74 -30 5] [95 -40 5] [85 10 5] [93 -52 5] [78 -34 5] [101 -8 5] [104 -8 5] [29 39 4.1] [114 7 5] [107 -41 5] [93 -2 5] [97 -14 5] [70 -1 5] [87 14 5] [111 -33 5] [110 9 5] [112 -38 5] [107 -48 5] [107 -5 5] [25 40 0] [104 -11 5] [48 -39 0] [43 -40 0] [105 6 5] [70 -11 5] [91 -11 5] [80 -43 5] [87 12 5] [96 -11 5] [64 4 0] [94 -9 5] [104 18 5] [97 -17 5] [104 14 5] [102 -31 5] [73 19 5] [19 -28 0] [86 -5 5] [43 29 0] [41 -41 0] [107 -33 5] [82 -36 5] [92 -52 5] [81 -12 5] [108 -6 5] [86 -2 5] [33 36 0.8] [24 -33 89.9] [20 41 7.5] [105 -10 5] [110 -17 5] [45 -34 9.4] [70 -50 5] [83 -15 5] [31 -42 7.1] [91 -40 5] [72 -37 5] [82 -15 5] [108 -28 5] [85 -34 5] [45 41 0] [105 11 5] [111 -9 5] [39 40 0] [53 -42 0] [69 -14 5] [90 -2 5] [103 -54 5] [102 7 5] [89 -53 5] [55 -40 0] [66 1 0] [57 11 0] [53 10 0] [101 17 5] [96 -3 5] [50 12 0] [113 7 5] [76 -12 5] [34 20 0] [39 34 0] [92 -2 5] [85 -2 5] [90 -3 5] [109 -52 5] [89 -50 5] [20 -33 2.1] [95 10 5] [45 33 0] [41 -25 0] [112 4 5] [88 -15 5] [84 -35 5] [34 -38 7.1] [113 -4 5] [75 -7 5] [84 -33 5] [71 -11 5] [64 -36 0] [101 -3 5] [74 -18 5] [80 -25 5] [71 7 5] [100 -18 5] [111 -8 5] [76 -19 5] [111 -27 5] [101 -37 5] [73 -54 5] [40 -40 0] [97 -8 5] [71 -43 5] [87 0 5] [90 -33 5] [81 -18 5] [90 19 5] [27 -29 0] [65 4 0] [31 35 0] [75 2 5] [75 -34 5] [78 4 5] [92 -32 5] [107 -43 5] [114 -22 5] [23 -34 0] [103 2 5] [65 7 0] [76 -47 5] [88 -5 5] [85 -48 5] [96 -38 5] [44 -40 0] [85 -39 5] [93 -6 5] [85 -17 5] [46 -29 0] [42 28 0] [84 -19 5] [100 -35 5] [46 15 0] [93 -32 5] [72 -18 5] [44 42 0] [87 -41 5] [76 -43 5] [42 44 4.9] [88 -38 5] [83 -3 5] [103 -12 5] [85 -28 5] [94 -39 5] [87 -52 5] [112 -39 5] [70 -52 5] [83 3 5] [76 -31 5] [75 -15 5] [102 17 5] [17 37 0.2] [100 -1 5] [75 -48 5] [77 18 5] [114 1 5] [77 -28 5] [84 -24 5] [32 -31 0] [76 -30 5] [88 -34 5] [114 -46 5] [99 -5 5] [50 -40 0] [114 18 5] [113 -22 5] [70 1 0] [93 -13 5] [108 -43 5] [93 -42 5] [96 -1 5] [93 -8 5] [60 8 0] [80 3 5] [101 -51 5] [77 15 5] [110 8 5] [78 5 5] [107 17 5] [80 -4 5] [89 -48 5] [101 -15 5] [26 -22 0] [22 28 8.2] [102 -23 5] [38 -44 0] [71 -52 5] [110 -50 5] [92 -40 5] [97 9 5] [108 12 5] [88 -14 5] [72 7 5] [107 -55 5] [84 -43 5] [111 -47 5] [107 -12 5] [69 9 5] [92 -54 5] [25 41 0] [103 -6 5] [98 17 5] [104 15 5] [109 -8 5] [97 -13 5] [110 -9 5] [40 -28 0] [103 -21 5] [18 38 0] [88 -50 5] [79 -8 5] [80 -3 5] [32 -41 0] [113 -46 5] [84 -25 5] [51 -43 0] [91 -21 5] [105 14 5] [107 -28 5] [48 -42 0] [80 11 5] [80 -1 5] [80 -46 5] [83 -33 5] [106 10 5] [47 13 0] [73 -15 5] [43 -17 0] [80 -23 5] [75 -13 5] [37 -29 5.8] [39 -29 0] [94 -36 5] [38 33 0] [110 2 5] [100 -15 5] [72 19 5] [92 19 5] [93 6 5] [110 -37 5] [92 -30 5] [89 16 5] [88 -7 5] [91 -34 5] [92 -13 5] [99 -15 5] [69 -39 0] [109 7 5] [92 -35 5] [108 18 5] [70 -18 5] [93 -40 5] [104 -38 5] [96 -44 5] [73 16 5] [72 3 5] [42 -18 8.5] [31 -35 7.1] [40 14 0] [81 -48 5] [112 -4 5] [39 -43 0] [41 47 1] [84 -16 5] [69 -51 5] [52 8 0] [37 35 2.8] [42 45 0] [110 4 5] [109 -48 5] [25 34 0] [86 -48 5] [73 14 5] [87 -53 5] [40 -22 0] [103 8 5] [78 -11 5] [77 11 5] [114 -54 5] [75 -50 5] [99 3 5] [52 10 0] [72 8 5] [90 -20 5] [70 -29 5] [110 3 5] [104 -2 5] [82 -3 5] [78 16 5] [103 -30 5] [100 -24 5] [93 -14 5] [78 -40 5] [100 2 5] [103 -7 5] [68 4 0] [33 -23 100] [113 10 5] [93 -54 5] [44 38 0.7] [70 19 5] [74 18 5] [75 16 5] [86 14 5] [98 9 5] [85 18 5] [100 -12 5] [88 -41 5] [93 -1 5] [108 -27 5] [99 -17 5] [90 -25 5] [109 -28 5] [104 -37 5] [49 -39 0] [74 -55 5] [86 -37 5] [105 -54 5] [101 -49 5] [111 11 5] [86 12 5] [71 -5 5] [112 5 5] [31 31 0] [87 19 5] [75 -32 5] [82 4 5] [91 -43 5] [80 -40 5] [25 43 0] [101 16 5] [81 13 5] [99 -2 5] [105 -18 5] [51 11 0] [114 -23 5] [109 -49 5] [100 -54 5] [72 -51 5] [87 5 5] [82 -47 5] [79 8 5] [75 8 5] [82 -7 5] [77 6 5] [87 -11 5] [90 12 5] [50 10 0] [56 -39 0] [98 13 5] [105 -5 5] [84 5 5] [85 1 5] [75 -46 5] [29 40 9.7] [94 -18 5] [97 17 5] [66 5 0] [110 -40 5] [71 -19 5] [107 -37 5] [69 -20 5] [95 12 5] [88 17 5] [93 1 5] [22 -33 0] [90 -32 5] [106 -28 5] [78 -45 5] [101 9 5] [75 19 5] [101 -7 5] [101 7 5] [111 -3 5] [82 -41 5] [96 -8 5] [113 -17 5] [95 -17 5] [71 -35 5] [47 -40 0] [74 -19 5] [47 -41 0] [101 -36 5] [33 35 7.4] [39 -42 0] [101 12 5] [77 7 5] [112 -27 5] [92 -9 5] [107 9 5] [78 -46 5] [38 -43 0] [105 -4 5] [80 -21 5] [91 19 5] [92 -33 5] [108 -12 5] [37 -44 0] [86 -36 5] [100 -32 5] [98 -18 5] [74 -10 5] [110 15 5] [31 -25 0] [83 -16 5] [105 -33 5] [105 -17 5] [69 -13 5] [74 -40 5] [77 17 5] [66 2 0] [108 -20 5] [102 -52 5] [89 -9 5] [104 -34 5] [44 17 0] [109 11 5] [101 3 5] [109 4 5] [107 -23 5] [74 15 5] [31 40 100] [107 12 5] [114 -21 5] [30 20 0] [95 -47 5] [41 28 8.2] [106 8 5] [84 -1 5] [33 39 0] [17 35 3.4] [103 4 5] [19 -27 0] [111 -12 5] [69 -18 5] [107 -53 5] [109 -45 5] [113 2 5] [67 -35 0] [32 19 0] [103 -29 5] [34 -32 7.1] [98 -42 5] [78 6 5] [105 15 5] [114 17 5] [88 -11 5] [83 -52 5] [92 -7 5] [38 -21 0] [89 -37 5] [36 34 5.8] [45 -25 0.7] [71 11 5] [94 4 5] [19 35 0] [69 -35 0] [107 -47 5] [79 1 5] [112 -10 5] [103 -40 5] [100 -11 5] [46 -40 0] [105 -32 5] [85 -41 5] [86 18 5] [40 19 0] [88 -8 5] [74 -34 5] [74 2 5] [42 31 0.1] [31 -39 7.1] [100 -40 5] [114 -47 5] [105 18 5] [102 11 5] [93 -26 5] [99 -50 5] [89 1 5] [73 -5 5] [44 -33 0] [98 -51 5] [108 -31 5] [109 -36 5] [98 -45 5] [114 -55 5] [61 -38 0] [112 -30 5] [106 -51 5] [81 -30 5] [91 -23 5] [108 -13 5] [31 34 0] [20 -20 0] [79 -18 5] [82 -27 5] [19 46 3.2] [101 -19 5] [111 8 5] [78 -36 5] [78 7 5] [27 -20 1.3] [78 -4 5] [107 -11 5] [90 -35 5] [102 5 5] [103 -55 5] [73 -36 5] [33 -37 0] [78 19 5] [86 -17 5] [47 -23 1.7] [80 19 5] [69 3 0] [94 -4 5] [106 -13 5] [21 32 7.5] [105 -7 5] [107 -21 5] [84 -3 5] [105 -36 5] [80 12 5] [114 -32 5] [69 -30 5] [54 11 0] [97 -46 5] [74 -48 5] [105 -46 5] [19 30 2.1] [71 -41 5] [109 -6 5] [99 -1 5] [102 -5 5] [109 -26 5] [33 23 0] [111 19 5] [69 -1 5] [107 -49 5] [97 2 5] [90 -17 5] [21 -33 0] [74 -31 5] [35 -41 0] [94 -45 5] [93 -19 5] [33 27 7.1] [87 8 5] [81 -44 5] [100 -48 5] [74 -29 5] [30 23 7.1] [111 -51 5] [108 -55 5] [71 -27 5] [101 -34 5] [108 -16 5] [114 -14 5] [31 37 0] [112 -54 5] [73 -9 5] [114 2 5] [98 14 5] [86 3 5] [32 -29 0] [46 -42 0] [43 45 0] [77 -11 5] [92 -21 5] [72 -52 5] [30 25 7.1] [44 -20 1] [103 -27 5] [81 -4 5] [41 29 0] [58 -37 0] [85 -26 5] [108 -19 5] [71 -1 5] [45 -32 0] [30 -23 9.7] [90 13 5] [113 -42 5] [70 -36 0] [113 -32 5] [80 -28 5] [84 14 5] [69 -19 5] [83 -23 5] [20 -17 3.2] [106 -45 5] [83 -14 5] [104 -36 5] [86 -10 5] [94 -11 5] [75 -31 5] [89 -3 5] [38 -22 1.9] [61 9 0] [100 -51 5] [34 40 9.7] [60 -37 0] [97 -29 5] [74 -4 5] [20 36 9.8] [112 -42 5] [73 11 5] [86 10 5] [79 -28 5] [83 -2 5] [46 -23 0] [109 9 5] [47 -28 3.4] [98 -21 5] [108 -9 5] [92 -23 5] [90 -1 5] [95 -8 5] [70 -45 5] [78 -10 5] [106 -2 5] [91 -9 5] [101 -23 5] [101 -16 5] [85 -9 5] [100 12 5] [94 -21 5] [100 -47 5] [90 7 5] [58 9 0] [102 -41 5] [106 -9 5] [99 5 5] [32 34 0] [72 -16 5] [109 10 5] [89 -17 5] [81 -51 5] [85 15 5] [20 46 0] [95 -20 5] [77 -14 5] [107 -7 5] [85 -29 5] [106 -35 5] [91 1 5] [83 -49 5] [56 8 0] [55 9 0] [88 -12 5] [112 -5 5] [106 6 5] [78 -47 5] [20 31 0] [72 -1 5] [90 10 5] [100 -33 5] [109 -1 5] [102 -20 5] [98 16 5] [98 -20 5] [75 -17 5] [84 -10 5] [43 -42 0] [37 19 0] [35 -27 8.9] [31 -32 7.1] [73 2 5] [109 -30 5] [94 -14 5] [83 -47 5] [106 -47 5] [78 -27 5] [69 0 0] [109 -33 5] [96 -52 5] [62 6 0] [69 -37 0] [46 -25 0] [109 13 5] [110 -43 5] [83 -10 5] [69 -31 5] [20 -29 0] [80 -32 5] [82 11 5] [72 -14 5] [74 7 5] [81 -47 5] [56 -40 0] [106 -20 5] [22 47 1] [90 -40 5] [93 -24 5] [27 -30 0.3] [97 -20 5] [108 17 5] [94 -15 5] [80 -26 5] [110 18 5] [114 -53 5] [44 12 0] [97 -34 5] [90 -23 5] [111 1 5] [80 -33 5] [106 -22 5] [111 -6 5] [31 -28 7.4] [20 40 9.5] [83 -35 5] [83 -20 5] [39 18 0] [34 -36 7.1] [106 -44 5] [84 1 5] [95 3 5] [109 12 5] [19 -29 0] [99 -7 5] [95 9 5] [101 13 5] [23 30 89.9] [80 -35 5] [86 -15 5] [74 -45 5] [108 -39 5] [103 -35 5] [108 13 5] [96 -33 5] [77 -25 5] [48 11 0] [112 -35 5] [112 -24 5] [53 12 0] [95 -9 5] [92 -20 5] [102 -49 5] [97 4 5] [94 18 5] [45 -17 3.2] [45 -27 0.2] [31 41 9.2] [90 16 5] [19 36 0.2] [98 -29 5] [40 42 9.7] [74 -52 5] [72 -28 5] [89 -2 5] [41 17 0] [98 -8 5] [74 11 5] [114 13 5] [107 -3 5] [70 -23 5] [75 -47 5] [97 -37 5] [86 2 5] [34 22 0] [111 -2 5] [70 4 0] [108 -23 5] [34 -40 7.1] [18 -20 8.6] [98 -17 5] [70 -24 5] [91 -8 5] [93 -12 5] [108 11 5] [63 8 0] [111 -42 5] [90 -43 5] [94 -31 5] [97 -51 5] [114 -10 5] [107 -38 5] [97 -49 5] [45 32 1] [110 17 5] [106 18 5] [79 -41 5] [105 -26 5] [79 -36 5] [88 -6 5] [20 30 0] [95 -7 5] [82 0 5] [86 19 5] [85 -31 5] [74 -39 5] [48 14 0] [35 -25 0.9] [88 -17 5] [71 -12 5] [114 -38 5] [85 -4 5] [69 -38 0] [107 18 5] [41 -42 0] [79 -12 5] [71 -31 5] [110 -42 5] [108 -36 5] [76 -18 5] [101 -31 5] [105 -11 5] [109 -44 5] [112 -44 5] [109 1 5] [92 -17 5] [47 15 0] [102 -44 5] [75 -19 5] [109 5 5] [83 -18 5] [47 -24 0.4] [80 6 5] [84 -41 5] [98 -22 5] [111 -52 5] [71 -32 5] [19 -30 0] [82 -4 5] [90 -31 5] [98 -40 5] [90 -53 5] [104 -3 5] [69 -11 5] [109 17 5] [19 39 0.5] [80 -47 5] [23 -17 1.2] [73 -24 5] [94 -37 5] [113 13 5] [70 -39 5] [59 6 0] [81 10 5] [86 -40 5] [99 18 5] [108 -38 5] [103 -38 5] [72 -44 5] [108 -21 5] [97 -44 5] [114 -39 5] [88 15 5] [114 14 5] [70 -54 5] [101 -18 5] [76 -29 5] [74 3 5] [98 -1 5] [74 -20 5] [30 34 7.1] [103 -20 5] [75 -37 5] [34 -39 7.1] [41 -27 2.6] [91 -17 5] [86 5 5] [111 -5 5] [72 -31 5] [76 -6 5] [97 -1 5] [72 -24 5] [23 -15 9.5] [71 -45 5] [77 2 5] [108 -49 5] [71 6 5] [72 -2 5] [80 -6 5] [88 -36 5] [102 -38 5] [31 -31 7.1] [107 -8 5] [72 -7 5] [50 -42 0] [80 -34 5] [83 -45 5] [50 -43 0] [78 14 5] [85 -21 5] [107 -15 5] [83 -11 5] [77 -42 5] [28 -29 5.8] [69 17 5] [91 18 5] [98 -12 5] [17 41 3.9] [89 -21 5] [88 6 5] [47 11 0] [109 -18 5] [19 -20 0] [97 -54 5] [75 4 5] [79 -43 5] [74 -23 5] [34 17 0] [71 -44 5] [96 -51 5] [97 13 5] [51 -40 0] [81 -15 5] [92 -49 5] [104 -44 5] [67 6 0] [101 -27 5] [110 -32 5] [78 13 5] [106 5 5] [103 -44 5] [94 -51 5] [80 -10 5] [109 19 5] [21 -30 1.5] [109 -29 5] [91 -26 5] [71 -42 5] [76 -34 5] [45 -40 0] [17 43 8.6] [45 -26 0.6] [18 41 0] [108 -8 5] [25 38 0] [103 -50 5] [113 -30 5] [113 -1 5] [93 -49 5] [77 -48 5] [83 -37 5] [76 10 5] [87 -21 5] [112 -23 5] [94 11 5] [33 -42 0] [59 5 0] [79 -6 5] [85 -47 5] [74 -41 5] [95 15 5] [77 -54 5] [26 40 6.1] [21 -32 0] [92 2 5] [103 -24 5] [89 -27 5] [87 -54 5] [70 -3 5] [82 -12 5] [95 -26 5] [106 17 5] [78 -21 5] [27 -27 7.1] [105 4 5] [81 -20 5] [69 -22 5] [113 -2 5] [101 -50 5] [82 -13 5] [60 5 0] [68 -36 0] [102 -6 5] [71 -49 5] [103 -9 5] [80 16 5] [93 -39 5] [79 -39 5] [70 -48 5] [81 -1 5] [79 14 5] [114 -44 5] [40 38 0] [92 -37 5] [71 12 5] [98 18 5] [88 19 5] [86 -26 5] [73 -13 5] [105 2 5] [86 -31 5] [100 11 5] [44 -32 0] [79 -27 5] [81 -3 5] [113 12 5] [104 -29 5] [38 -30 0.3] [77 0 5] [113 -35 5] [85 -46 5] [59 -38 0] [111 -13 5] [70 7 5] [80 -41 5] [72 -43 5] [90 -6 5] [92 16 5] [18 37 0] [100 -16 5] [92 -19 5] [61 -36 0] [87 -28 5] [52 13 0] [72 6 5] [66 -35 0] [96 5 5] [87 -44 5] [23 42 9.7] [87 -49 5] [25 -29 0] [93 -30 5] [31 -36 7.1] [88 -4 5] [94 -32 5] [99 -47 5] [93 0 5] [81 -42 5] [101 10 5] [41 -34 8.9] [113 -47 5] [50 -38 0] [102 -40 5] [81 -25 5] [81 -33 5] [18 -28 3.4] [86 -28 5] [42 48 1.5] [55 -37 0] [94 9 5] [73 -43 5] [24 33 5.4] [111 15 5] [84 -55 5] [78 -29 5] [111 -16 5] [97 -38 5] [83 -13 5] [19 -32 7] [77 -36 5] [19 45 0] [114 -15 5] [106 -38 5] [97 -16 5] [111 7 5] [88 12 5] [83 -7 5] [55 11 0] [114 11 5] [96 -46 5] [38 35 0] [103 -1 5] [26 -29 0] [82 -23 5] [84 -22 5] [70 8 5] [99 -40 5] [70 -33 5] [64 2 0] [101 0 5] [89 -14 5] [75 -51 5] [86 -29 5] [109 -24 5] [26 -19 4.9] [76 4 5] [93 -36 5] [96 -37 5] [94 -1 5] [74 -2 5] [102 -35 5] [81 1 5] [104 16 5] [78 -19 5] [103 14 5] [95 -29 5] [90 -42 5] [107 0 5] [103 -18 5] [75 -21 5] [83 13 5] [26 -30 0] [82 -46 5] [70 13 5] [62 -39 0] [57 6 0] [58 7 0] [46 32 9.8] [97 -53 5] [110 -48 5] [113 -13 5] [107 11 5] [88 -18 5] [93 2 5] [24 -22 7.1] [99 -48 5] [113 -11 5] [103 0 5] [73 -42 5] [43 -19 4.9] [25 35 0] [52 -39 0] [18 36 0] [59 9 0] [94 -6 5] [111 5 5] [85 -45 5] [66 -39 0] [99 -49 5] [97 8 5] [21 -29 4.7] [31 39 0] [92 -4 5] [68 0 0] [86 6 5] [111 -45 5] [86 -42 5] [76 -21 5] [35 17 0] [49 11 0] [58 -40 0] [44 -44 0] [111 -22 5] [82 -35 5] [72 -34 5] [112 -31 5] [114 -42 5] [90 -15 5] [63 -36 0] [79 15 5] [108 -44 5] [88 -37 5] [99 16 5] [73 12 5] [44 32 0] [73 -4 5] [39 37 0] [78 -24 5] [110 13 5] [96 -18 5] [72 -21 5] [88 -2 5] [69 -24 5] [25 32 2.2] [81 4 5] [109 -10 5] [104 -42 5] [44 -23 9.5] [96 1 5] [60 -40 0] [25 37 0] [57 9 0] [83 -22 5] [89 7 5] [76 -42 5] [97 -10 5] [22 -16 0] [82 -20 5] [79 -37 5] [95 -30 5] [76 -51 5] [108 -11 5] [107 13 5] [70 16 5] [23 41 7.1] [112 -51 5] [98 12 5] [22 -31 7.5] [40 -44 0] [62 7 0] [94 -34 5] [107 -18 5] [99 -4 5] [114 -34 5] [92 -24 5] [33 30 7.1] [101 -28 5] [102 -54 5] [99 0 5] [69 -8 5] [95 -6 5] [114 -4 5] [79 -24 5] [44 35 0] [59 8 0] [112 -13 5] [84 -46 5] [76 -50 5] [24 -28 6.6] [109 -54 5] [78 -8 5] [101 -43 5] [86 -51 5] [33 32 7.1] [73 -27 5] [71 4 5] [104 -16 5] [108 5 5] [103 -25 5] [112 7 5] [107 -20 5] [70 -30 5] [114 -48 5] [47 14 0] [105 -9 5] [103 -16 5] [96 -15 5] [86 4 5] [68 1 0] [26 -25 0] [112 -21 5] [107 -31 5] [79 -44 5] [89 -38 5] [37 40 6.1] [94 -46 5] [83 -27 5] [45 17 0] [93 15 5] [104 -23 5] [75 -42 5] [44 14 0] [81 -43 5] [100 17 5] [96 -2 5] [72 -11 5] [87 16 5] [89 -10 5] [33 -34 0] [112 13 5] [72 -8 5] [69 16 5] [30 39 0] [78 -39 5] [65 -40 0] [21 -15 8.6] [106 -11 5] [78 3 5] [103 -23 5] [100 4 5] [98 -44 5] [49 10 0] [101 2 5] [104 -13 5] [85 -36 5] [113 -15 5] [114 -31 5] [88 -42 5] [73 -1 5] [105 16 5] [71 -39 5] [104 -43 5] [110 -44 5] [74 1 5] [54 -39 0] [70 -15 5] [93 -55 5] [76 -45 5] [113 -54 5] [104 -53 5] [113 -25 5] [82 -38 5] [107 14 5] [76 -13 5] [48 15 0] [97 -41 5] [94 19 5] [111 -38 5] [83 -28 5] [86 7 5] [42 13 0] [45 -22 0] [91 11 5] [35 18 0] [39 41 0] [92 13 5] [76 -48 5] [78 -51 5] [83 -32 5] [45 16 0] [73 3 5] [99 -27 5] [82 -43 5] [110 -30 5] [34 -25 0] [88 4 5] [98 -53 5] [106 -4 5] [66 -40 0] [95 -28 5] [33 -43 0] [78 -26 5] [89 -6 5] [79 -21 5] [97 -45 5] [105 -12 5] [32 25 0] [80 -19 5] [87 3 5] [57 -38 0] [89 -49 5] [82 -32 5] [90 -52 5] [97 -26 5] [104 -24 5] [90 5 5] [43 47 0.8] [76 -5 5] [93 -27 5] [98 -15 5] [77 -15 5] [34 -42 0] [82 -18 5] [79 2 5] [42 -17 1.2] [30 36 0.8] [69 -43 5] [103 -43 5] [82 -50 5] [77 -12 5] [65 -39 0] [87 -2 5] [20 44 0] [51 10 0] [55 -42 0] [70 -14 5] [78 -38 5] [78 18 5] [101 11 5] [112 -50 5] [89 -33 5] [40 17 0] [111 -1 5] [21 47 0] [101 -42 5] [85 7 5] [101 -55 5] [70 -20 5] [70 -51 5] [99 -51 5] [94 3 5] [104 -6 5] [73 -30 5] [99 15 5] [53 -39 0] [77 -21 5] [110 -15 5] [92 11 5] [80 -22 5] [86 8 5] [79 -3 5] [108 -42 5] [73 -21 5] [73 17 5] [90 -50 5] [101 -2 5] [113 -5 5] [72 -36 5] [88 -21 5] [83 -39 5] [85 -53 5] [98 -11 5] [111 18 5] [92 8 5] [78 -20 5] [72 17 5] [87 -8 5] [87 -32 5] [90 17 5] [103 -51 5] [104 -47 5] [101 18 5] [71 -2 5] [24 34 0] [103 -49 5] [93 9 5] [60 -36 0] [63 -40 0] [84 -23 5] [104 -18 5] [71 16 5] [70 -31 5] [105 -30 5] [106 -49 5] [97 -27 5] [89 -45 5] [44 46 3.2] [84 -44 5] [43 42 3.9] [80 -51 5] [95 -13 5] [93 -47 5] [89 4 5] [76 -46 5] [102 -12 5] [97 15 5] [80 -9 5] [108 1 5] [84 -52 5] [37 20 0] [31 32 0] [77 -6 5] [78 -17 5] [95 -21 5] [88 -39 5] [80 0 5] [95 8 5] [113 -39 5] [97 -31 5] [89 -26 5] [107 -16 5] [46 38 0] [21 48 1.6] [78 8 5] [108 -14 5] [107 -29 5] [86 -35 5] [107 -44 5] [46 -26 0] [71 -50 5] [47 -31 9.8] [21 -19 0] [82 -9 5] [53 8 0] [40 34 9.4] [111 -23 5] [113 -33 5] [97 -23 5] [88 10 5] [57 8 0] [88 -32 5] [26 43 1.3] [32 37 0] [74 -43 5] [108 -17 5] [114 9 5] [106 -32 5] [114 -3 5] [103 -14 5] [110 -41 5] [113 4 5] [86 -52 5] [68 -39 0] [106 9 5] [18 -24 0.4] [96 -31 5] [17 32 39.9] [112 -2 5] [70 -8 5] [56 9 0] [38 20 0] [101 -6 5] [100 -6 5] [46 -21 0] [57 -37 0] [89 -22 5] [111 6 5] [93 8 5] [91 -48 5] [76 -10 5] [87 6 5] [84 -47 5] [94 17 5] [93 7 5] [80 -17 5] [94 1 5] [43 28 7.1] [106 -19 5] [66 -38 0] [85 -11 5] [99 -11 5] [109 -53 5] [113 -23 5] [100 -46 5] [114 16 5] [52 9 0] [108 -22 5] [30 26 7.1] [73 18 5] [104 -26 5] [85 -15 5] [71 -7 5] [113 -26 5] [94 -16 5] [103 -45 5] [102 -19 5] [107 -17 5] [70 -37 0] [102 -29 5] [76 -33 5] [96 -16 5] [71 1 0] [31 -29 7.1] [112 -40 5] [71 -34 5] [71 -23 5] [90 -30 5] [108 -25 5] [92 -25 5] [73 7 5] [78 -5 5] [98 4 5] [109 -14 5] [94 -30 5] [114 -7 5] [82 -31 5] [79 -51 5] [74 -42 5] [111 -24 5] [104 -25 5] [111 -36 5] [75 -44 5] [88 -31 5] [87 -16 5] [110 -52 5] [95 -48 5] [106 -6 5] [98 -6 5] [91 12 5] [69 -3 5] [96 -5 5] [111 -18 5] [88 2 5] [20 -27 0.2] [40 15 0] [39 39 0] [92 -51 5] [86 13 5] [79 -53 5] [98 5 5] [95 5 5] [102 10 5] [89 -39 5] [94 14 5] [91 -51 5] [33 -28 0] [93 -25 5] [77 -43 5] [91 13 5] [75 7 5] [63 -39 0] [112 -19 5] [105 12 5] [72 -13 5] [110 16 5] [40 41 7.1] [109 18 5] [80 -44 5] [84 2 5] [101 -26 5] [20 -32 0] [73 -51 5] [105 -47 5] [73 8 5] [89 -4 5] [80 18 5] [25 -24 0] [96 -28 5] [78 2 5] [113 11 5] [41 -43 0] [100 3 5] [31 26 0] [91 8 5] [94 -48 5] [72 -20 5] [97 -50 5] [84 -50 5] [112 -15 5] [96 -47 5] [73 -17 5] [110 -22 5] [77 -5 5] [75 -10 5] [82 19 5] [50 14 0] [42 -40 0] [34 39 4.1] [80 -39 5] [74 19 5] [114 4 5] [92 -15 5] [93 11 5] [77 5 5] [77 16 5] [109 -40 5] [83 7 5] [58 10 0] [38 -29 0] [39 -30 0] [44 36 0.2] [92 -18 5] [106 -1 5] [53 9 0] [27 -31 8.5] [110 -23 5] [72 -45 5] [88 -53 5] [30 21 0] [80 -14 5] [47 -43 0] [81 -45 5] [99 -33 5] [91 6 5] [100 6 5] [70 -5 5] [60 -41 0] [89 10 5] [90 -37 5] [44 -17 0] [73 -31 5] [21 29 0] [102 -45 5] [91 -50 5] [32 -46 0] [69 8 5] [79 13 5] [72 18 5] [89 8 5] [85 -12 5] [114 -28 5] [93 -16 5] [74 -21 5] [86 16 5] [110 -12 5] [100 -38 5] [70 6 5] [76 6 5] [45 36 0] [74 6 5] [70 -34 5] [87 -15 5] [45 -39 0] [84 -45 5] [86 0 5] [95 -14 5] [102 -46 5] [35 -24 4.1] [85 9 5] [19 40 0.2] [24 -27 2.6] [95 -53 5] [45 14 0] [78 -3 5] [104 -50 5] [85 -50 5] [83 11 5] [79 3 5] [105 -13 5] [112 0 5] [44 -15 8.6] [113 0 5] [86 -4 5] [64 5 0] [106 13 5] [32 21 0] [105 -3 5] [31 38 0] [70 -16 5] [91 15 5] [75 3 5] [95 -27 5] [56 -41 0] [72 -47 5] [86 -33 5] [20 -22 0] [42 -42 0] [93 -29 5] [49 14 0] [92 9 5] [42 30 0] [19 41 0] [113 -51 5] [114 -6 5] [79 19 5] [43 43 1] [107 -25 5] [102 13 5] [82 -16 5] [91 -30 5] [46 -24 0] [93 14 5] [112 -29 5] [107 -4 5] [18 -22 3.9] [37 33 0.3] [78 17 5] [109 6 5] [46 39 0.4] [30 27 7.1] [112 -34 5] [113 6 5] [71 -55 5] [74 -38 5] [114 10 5] [73 -41 5] [90 -28 5] [95 -38 5] [39 33 5.4] [75 9 5] [96 -36 5] [83 -31 5] [109 -41 5] [70 -47 5] [21 28 0] [103 -36 5] [70 -42 5] [87 -50 5] [30 30 7.1] [108 -2 5] [86 17 5] [114 19 5] [81 -55 5] [90 -19 5] [74 -32 5] [102 -9 5] [114 -13 5] [110 -5 5] [78 11 5] [104 2 5] [69 -44 5] [45 35 0] [72 -38 5] [112 6 5] [77 -17 5] [95 -3 5] [80 15 5] [79 11 5] [72 11 5] [19 44 0] [72 10 5] [76 -7 5] [83 -26 5] [84 -32 5] [97 1 5] [110 -49 5] [112 -3 5] [82 -11 5] [72 -32 5] [31 -26 0] [98 7 5] [105 -2 5] [26 34 0] [88 18 5] [89 -54 5] [24 -25 0] [112 -9 5] [85 0 5] [97 -39 5] [108 3 5] [108 -53 5] [111 -35 5] [80 7 5] [94 -26 5] [87 -35 5] [92 15 5] [44 -41 0] [90 18 5] [61 -41 0] [40 -20 7.2] [90 -12 5] [103 -19 5] [108 -4 5] [76 12 5] [95 -12 5] [102 -8 5] [99 19 5] [85 -13 5] [74 -47 5] [108 -24 5] [99 -21 5] [74 -25 5] [39 -19 4.9] [18 -23 1.7] [88 -43 5] [105 17 5] [103 -53 5] [30 -25 0.9] [102 -17 5] [72 -39 5] [94 0 5] [70 -55 5] [98 2 5] [21 -20 1] [84 12 5] [79 12 5] [105 -20 5] [95 -24 5] [21 45 0] [93 17 5] [81 -52 5] [110 -13 5] [72 -4 5] [89 -23 5] [86 -24 5] [103 -11 5] [24 -26 0.2] [91 -47 5] [74 -51 5] [25 -22 0] [70 -4 5] [44 13 0] [106 -21 5] [80 -18 5] [43 -32 0.1] [84 -2 5] [82 13 5] [103 -13 5] [85 3 5] [28 -30 8.5] [90 -44 5] [82 -22 5] [72 1 5] [81 -24 5] [72 -29 5] [69 -36 0] [64 -40 0] [94 -38 5] [82 -1 5] [26 35 2.8] [112 -20 5] [18 31 7] [39 -27 0] [114 -51 5] [89 -28 5] [39 -28 0] [34 21 0] [74 -16 5] [75 10 5] [33 -35 0] [91 -46 5] [79 -7 5] [82 -28 5] [97 -12 5] [73 -28 5] [93 13 5] [88 -52 5] [60 -39 0] [34 19 0] [87 13 5] [88 -3 5] [81 -13 5] [99 14 5] [99 -36 5] [98 -50 5] [84 -51 5] [51 9 0] [74 9 5] [90 -13 5] [108 6 5] [91 3 5] [107 16 5] [97 -7 5] [35 -23 9.7] [97 -35 5] [102 -13 5] [111 -48 5] [104 -9 5] [73 -39 5] [112 -32 5] [78 -54 5] [21 -23 9.5] [93 -31 5] [112 -11 5] [69 -55 5] [83 -55 5] [87 -43 5] [88 -25 5] [99 -32 5] [114 -19 5] [112 10 5] [91 -49 5] [98 -43 5] [92 -11 5] [89 -41 5] [76 -25 5] [113 3 5] [96 -40 5] [78 -6 5] [98 -35 5] [78 -9 5] [109 -23 5] [26 42 0] [102 -14 5] [19 37 0.6] [69 -45 5] [21 -35 7.1] [112 -6 5] [37 -43 0] [43 44 0] [103 -8 5] [114 -24 5] [75 -38 5] [30 31 7.1] [114 -41 5] [87 -7 5] [101 -54 5] [75 -9 5] [72 -33 5] [43 30 0] [98 8 5] [89 -47 5] [105 -8 5] [77 -23 5] [45 -20 0] [31 -23 1.7] [109 -43 5] [111 -11 5] [109 -55 5] [90 -11 5] [86 -43 5] [96 -21 5] [102 14 5] [79 -49 5] [97 -25 5] [105 9 5] [92 -45 5] [47 -22 3.9] [95 -51 5] [62 8 0] [70 -7 5] [104 -46 5] [90 -55 5] [24 39 0] [67 1 0] [106 7 5] [87 -19 5] [38 16 0] [79 5 5] [94 -10 5] [79 -30 5] [55 8 0] [49 13 0] [69 -46 5] [90 1 5] [107 -54 5] [98 -24 5] [70 -21 5] [111 16 5] [33 26 7.1] [36 21 0] [101 -12 5] [57 -40 0] [72 -12 5] [112 19 5] [77 8 5] [86 -11 5] [83 0 5] [82 1 5] [34 -33 7.1] [102 -25 5] [107 7 5] [47 -30 8.1] [94 15 5] [102 -11 5] [84 -13 5] [87 -25 5] [33 -44 0] [77 -7 5] [86 -53 5] [100 -13 5] [18 -31 39.9] [36 -45 0] [107 -36 5] [43 -44 0] [78 -7 5] [94 -20 5] [100 -17 5] [76 -22 5] [102 -37 5] [87 -12 5] [31 19 0] [53 13 0] [102 -26 5] [43 14 0] [37 -30 8.5] [31 30 0] [93 19 5] [111 3 5] [101 -41 5] [71 -33 5] [40 -43 0] [99 -8 5] [23 46 9.6] [30 33 7.1] [105 5 5] [80 2 5] [111 -53 5] [69 -48 5] [107 -13 5] [82 -37 5] [113 9 5] [72 -49 5] [32 -26 0] [87 -26 5] [32 -36 0] [109 -9 5] [85 -33 5] [97 -19 5] [109 -4 5] [100 -2 5] [112 2 5] [104 -22 5] [90 -27 5] [23 40 3.4] [73 -55 5] [105 -53 5] [76 16 5] [69 -21 5] [66 6 0] [45 34 0] [74 -27 5] [88 -24 5] [83 -25 5] [46 11 0] [77 -22 5] [98 -52 5] [46 -39 0] [72 -26 5] [74 -46 5] [32 -39 0] [97 -15 5] [92 -55 5] [45 -42 0] [110 -25 5] [81 -26 5] [39 -23 0] [92 -28 5] [89 -35 5] [91 -13 5] [103 15 5] [99 -41 5] [18 -21 6.5] [44 -29 4.7] [93 -9 5] [76 14 5] [19 31 0] [81 3 5] [54 8 0] [109 16 5] [82 -19 5] [97 12 5] [51 -38 0] [83 -21 5] [90 -24 5] [87 -18 5] [88 -51 5] [112 -37 5] [94 -43 5] [80 -55 5] [97 -55 5] [76 3 5] [105 -43 5] [27 33 8.5] [98 -23 5] [101 -44 5] [91 -42 5] [21 -17 0] [106 -14 5] [114 -8 5] [32 -43 0] [78 -49 5] [86 -13 5] [83 -6 5] [69 -17 5] [62 3 0] [79 -47 5] [86 -32 5] [98 -54 5] [103 -37 5] [106 -39 5] [112 -12 5] [77 -39 5] [73 -14 5] [24 -23 3.4] [95 -49 5] [38 32 2.2] [91 -6 5] [95 -37 5] [88 -28 5] [60 -38 0] [74 -1 5] [81 2 5] [19 -26 0] [36 -46 0] [81 -21 5] [103 19 5] [54 -42 0] [18 34 0] [82 -29 5] [106 19 5] [114 12 5] [101 -46 5] [45 -24 0.5] [41 -44 0] [113 -55 5] [100 -43 5] [47 -26 0.2] [85 -52 5] [75 -20 5] [95 -50 5] [87 -36 5] [32 27 0] [84 11 5] [73 -46 5] [84 15 5] [62 5 0] [76 9 5] [45 40 0] [20 32 0] [24 -34 8.8] [92 -27 5] [91 -7 5] [91 -28 5] [99 7 5] [20 -34 9.4] [40 16 0] [94 13 5] [50 11 0] [95 11 5] [24 35 0] [69 1 0] [76 -11 5] [75 12 5] [82 -53 5] [31 25 0] [84 4 5] [91 -16 5] [82 -17 5] [106 -41 5] [18 42 0] [78 -44 5] [91 -20 5] [78 10 5] [100 14 5] [112 -22 5] [91 -14 5] [85 -3 5] [113 5 5] [110 -27 5] [72 -17 5] [33 28 7.1] [99 -16 5] [85 -6 5] [94 -13 5] [89 -20 5] [70 -35 5] [61 -37 0] [100 -44 5] [86 -34 5] [40 -41 0] [73 -3 5] [31 20 0] [78 -12 5] [105 -22 5] [90 -46 5] [77 -29 5] [75 0 5] [84 -15 5] [112 -26 5] [43 -35 0] [81 -38 5] [94 -44 5] [46 -44 0] [46 33 8.1] [83 -8 5] [85 -55 5] [71 -9 5] [69 -5 5] [51 -42 0] [93 -23 5] [44 -16 0.8] [48 13 0] [90 -21 5] [24 -17 9.6] [91 -38 5] [110 14 5] [32 18 0] [42 -43 0] [104 -45 5] [104 17 5] [111 -4 5] [26 -23 0] [34 -45 0] [46 -43 0] [97 3 5] [30 37 0] [39 -26 0] [88 -40 5] [96 -10 5] [103 -28 5] [77 14 5] [77 -18 5] [89 18 5] [46 -22 0] [74 -54 5] [71 18 5] [99 -14 5] [112 17 5] [81 -40 5] [96 3 5] [74 16 5] [85 -10 5] [82 -52 5] [87 -1 5] [103 -48 5] [74 -50 5] [99 11 5] [110 -19 5] [90 -16 5] [77 4 5] [83 -54 5] [70 9 5] [45 45 8.6] [27 -21 0] [63 3 0] [40 46 9.6] [100 -30 5] [73 13 5] [93 -5 5] [109 8 5] [83 15 5] [21 -27 9.8] [100 -7 5] [46 43 8.6] [113 -20 5] [97 -5 5] [86 -44 5] [74 -37 5] [68 -37 0] [38 -45 0] [70 -19 5] [92 -26 5] [79 -29 5] [18 43 0] [78 -52 5] [80 4 5] [95 -45 5] [47 -29 5.9] [113 -14 5] [94 -22 5] [110 -10 5] [77 -53 5] [76 -9 5] [75 -54 5] [107 -24 5] [69 -7 5] [75 -30 5] [100 -53 5] [43 -41 0] [85 -18 5] [70 -53 5] [107 -9 5] [102 -27 5] [113 17 5] [107 -19 5] [104 -35 5] [18 45 8.6] [96 17 5] [32 -37 0] [76 -38 5] [70 -12 5] [111 13 5] [78 -53 5] [101 -38 5] [75 17 5] [32 36 0] [56 11 0] [32 -45 0] [71 -4 5] [45 -44 0] [108 8 5] [105 -35 5] [26 -20 0] [94 6 5] [93 -20 5] [25 -25 0] [24 41 0] [82 10 5] [101 -20 5] [73 -48 5] [100 -9 5] [106 16 5] [47 16 0] [112 -28 5] [41 14 0] [38 42 0] [82 17 5] [41 46 1.2] [114 -40 5] [106 14 5] [72 0 5] [104 -51 5] [73 -22 5] [33 -24 0] [112 -53 5] [106 12 5] [98 -5 5] [69 -26 5] [98 -34 5] [80 5 5] [114 -25 5] [89 -8 5] [89 9 5] [45 -43 0] [80 -52 5] [103 -39 5] [70 -40 5] [98 15 5] [81 18 5] [92 -1 5] [85 -38 5] [43 13 0] [84 -34 5] [30 19 7] [106 -29 5] [105 7 5] [74 -17 5] [69 11 5] [38 43 0] [43 32 0] [31 -37 7.1] [72 -30 5] [76 -28 5] [88 -23 5] [108 -5 5] [34 -28 7.4] [91 -24 5] [99 -45 5] [47 -20 8.6] [93 -45 5] [31 -43 0] [86 -21 5] [77 -33 5] [65 -35 0] [23 36 2.6] [108 -52 5] [33 19 0] [100 1 5] [77 -9 5] [92 18 5] [69 -41 5] [22 45 8.5] [99 -23 5] [39 -20 0] [102 8 5] [113 18 5] [98 -26 5] [92 17 5] [76 -3 5] [36 -42 0] [104 8 5] [29 37 2.9] [109 -51 5] [25 -28 0] [33 29 7.1] [34 36 8.9] [86 -22 5] [47 -25 0] [44 29 9.4] [113 -50 5] [69 -4 5] [75 -4 5] [112 -7 5] [64 7 0] [100 8 5] [109 -31 5] [56 -37 0] [114 -52 5] [109 -13 5] [85 -51 5] [75 -36 5] [41 -24 0.6] [112 15 5] [71 -16 5] [96 -50 5] [99 1 5] [83 -48 5] [80 -45 5] [81 6 5] [74 -12 5] [69 6 5] [91 -44 5] [84 10 5] [111 -15 5] [32 32 0] [89 -15 5] [27 42 4.5] [105 -28 5] [105 -52 5] [111 -14 5] [86 -18 5] [63 6 0] [94 -29 5] [97 -11 5] [40 35 6.6] [110 -18 5] [89 0 5] [87 -13 5] [108 7 5] [71 -18 5] [111 -44 5] [31 -41 7.1] [102 -30 5] [77 -41 5] [104 13 5] [102 9 5] [85 19 5] [109 -38 5] [72 -55 5] [76 -39 5] [84 -17 5] [85 -54 5] [38 44 4.9] [32 35 0] [97 -52 5] [102 -51 5] [77 -24 5] [101 -13 5] [23 -32 9.4] [87 7 5] [95 1 5] [106 -23 5] [92 3 5] [114 -37 5] [100 -19 5] [40 40 3.4] [84 16 5] [76 -35 5] [70 14 5] [72 -9 5] [84 -53 5] [83 -1 5] [97 5 5] [46 40 1.7] [80 -48 5] [111 -10 5] [95 -55 5] [100 16 5] [82 -21 5] [99 -42 5] [106 -16 5] [45 38 0] [70 -10 5] [66 4 0] [83 -9 5] [38 17 0] [71 -24 5] [37 41 1.9] [33 -40 0] [35 -42 0] [105 -23 5] [94 -25 5] [42 -34 0] [33 -45 0] [74 -49 5] [86 -50 5] [106 -15 5] [25 33 0] [78 -30 5] [83 -53 5] [85 -5 5] [86 -49 5] [108 15 5] [99 -37 5] [101 -25 5] [84 -40 5] [44 40 0.2] [43 41 7.5] [105 -51 5] [110 -55 5] [110 7 5] [38 40 0] [71 14 5] [42 -32 9.4] [112 16 5] [101 6 5] [102 -33 5] [93 -22 5] [102 -7 5] [100 0 5] [83 -50 5] [76 -1 5] [98 -55 5] [58 8 0] [79 16 5] [97 -42 5] [105 -34 5] [114 -45 5] [107 4 5] [108 -34 5] [41 45 8.5] [83 12 5] [100 -36 5] [104 -40 5] [86 -7 5] [77 10 5] [70 -22 5] [87 -47 5] [20 45 0] [96 -41 5] [94 -47 5] [71 -53 5] [110 -33 5] [44 31 0] [100 19 5] [32 23 0] [85 4 5] [62 -36 0] [71 -54 5] [71 0 5] [93 -50 5] [102 -39 5] [45 -18 0] [73 -53 5] [94 10 5] [108 -54 5] [111 -43 5] [59 10 0] [44 -22 7.5] [113 -8 5] [38 39 0] [76 -14 5] [113 -37 5] [31 -24 0] [75 -55 5] [46 -30 0] [104 19 5] [32 29 0] [97 10 5] [21 -22 7.5] [81 -35 5] [102 0 5] [94 -41 5] [79 17 5] [20 43 1] [73 -37 5] [44 -27 9.8] [100 -14 5] [79 -11 5] [80 -30 5] [90 2 5] [70 11 5] [34 -23 1.7] [77 -47 5] [86 -16 5] [26 -24 0] [45 -23 0.2] [107 -14 5] [67 -38 0] [112 3 5] [85 -42 5] [112 11 5] [34 -37 7.1] [80 -38 5] [96 -45 5] [75 -23 5] [78 -37 5] [19 -23 0] [73 -35 5] [76 7 5] [82 7 5] [80 -11 5] [69 18 5] [109 -12 5] [94 2 5] [82 -5 5] [102 -32 5] [70 -38 0] [82 9 5] [33 40 1.7] [74 -11 5] [99 -34 5] [69 -23 5] [102 -2 5] [39 15 0] [99 -44 5] [71 -13 5] [112 -46 5] [94 -19 5] [111 -28 5] [82 -14 5] [82 -2 5] [95 7 5] [78 -55 5] [50 13 0] [77 -52 5] [73 -50 5] [83 -12 5] [84 -48 5] [98 -7 5] [76 -2 5] [91 -10 5] [79 -26 5] [94 -28 5] [81 8 5] [35 22 0] [44 -42 0] [80 -20 5] [35 -45 0] [98 -49 5] [38 19 0] [82 -8 5] [87 -4 5] [32 -40 0] [27 34 5.8] [84 -30 5] [103 -42 5] [87 9 5] [104 -21 5] [63 -38 0] [34 -34 7.1] [75 -43 5] [81 -49 5] [95 -23 5] [75 -52 5] [75 -12 5] [81 -29 5] [101 -17 5] [109 2 5] [33 -36 0] [112 -45 5] [86 -54 5] [109 -34 5] [43 31 0] [82 -6 5] [111 -46 5] [77 -55 5] [93 -7 5] [98 -31 5] [89 13 5] [76 -17 5] [89 11 5] [33 -31 0] [106 -3 5] [93 -34 5] [37 -42 0] [105 -40 5] [103 -47 5] [81 7 5] [81 -28 5] [69 -15 5] [102 -1 5] [102 16 5] [56 10 0] [104 -15 5] [74 -15 5] [26 -28 0] [50 9 0] [114 -5 5] [104 -20 5] [45 12 0] [77 -45 5] [48 -43 0] [31 -40 7.1] [95 -1 5] [73 -25 5] [69 -12 5] [73 -8 5] [92 -43 5] [73 -19 5] [110 -8 5] [114 -1 5] [18 -30 8.1] [107 -34 5] [86 11 5] [98 -38 5] [99 6 5] [100 -23 5] [70 -25 5] [86 -8 5] [84 -21 5] [91 -12 5] [89 -30 5] [80 -2 5] [107 6 5] [114 6 5] [41 30 2.8] [23 -35 8.2] [88 -19 5] [111 -20 5] [87 -51 5] [93 -15 5] [36 20 0] [51 -39 0] [83 19 5] [32 26 0] [79 18 5] [110 -4 5] [77 -51 5] [100 -34 5] [84 19 5] [17 38 0] [97 -6 5] [82 12 5] [105 -37 5] [72 -27 5] [83 -5 5] [109 -47 5] [101 14 5] [71 -40 5] [82 3 5] [102 4 5] [92 -42 5] [40 29 8.9] [79 -2 5] [106 -7 5] [112 -8 5] [111 17 5] [104 -33 5] [21 -28 8] [40 -30 5.4] [43 40 9.5] [77 -35 5] [105 1 5] [100 5 5] [98 -10 5] [78 -28 5] [97 -3 5] [81 -14 5] [88 -49 5] [46 13 0] [68 2 0] [69 -40 5] [21 46 0] [97 18 5] [79 -55 5] [98 -28 5] [95 -52 5] [32 -24 0] [79 -15 5] [43 -43 0] [104 9 5] [114 -18 5] [97 -30 5] [65 6 0] [112 18 5] [24 36 0] [41 -29 9.4] [91 -18 5] [45 -31 0] [41 -28 6.6] [36 19 0] [105 -31 5] [97 -32 5] [95 -25 5] [112 -52 5] [43 36 9.8] [87 -3 5] [86 -55 5] [68 -35 0] [80 17 5] [76 0 5] [79 -9 5] [70 12 5] [105 3 5] [93 -10 5] [83 -36 5] [33 37 0] [89 -5 5] [36 -44 0] [80 -12 5] [99 -10 5] [109 -7 5] [103 -15 5] [110 -6 5] [105 -21 5] [31 33 0] [71 -37 5] [91 16 5] [40 -45 0]

 [77 13 5]]

end @#$#@#$#@ GRAPHICS-WINDOW 219 10 990 397 -1 -1 3 1 10 1 1 1 0 0 0 1 -128 128 -64 64 1 1 1 ticks 30

BUTTON 6 10 69 43 NIL reset NIL 1 T OBSERVER NIL NIL NIL NIL 1

BUTTON 6 84 69 117 NIL go T 1 T OBSERVER NIL NIL NIL NIL 1

CHOOSER 7 165 200 210 mode mode "temperature" "ph-sensitivity - maze" "ph-sensitivity - follow light" 2

BUTTON 6 45 69 78 NIL draw T 1 T OBSERVER NIL NIL NIL NIL 1 @#$#@#$#@

    1. WHAT IS IT?

(a general understanding of what the model is trying to show or explain)

    1. HOW IT WORKS

(what rules the agents use to create the overall behavior of the model)

    1. HOW TO USE IT

(how to use the model, including a description of each of the items in the Interface tab)

    1. THINGS TO NOTICE

(suggested things for the user to notice while running the model)

    1. THINGS TO TRY

(suggested things for the user to try to do (move sliders, switches, etc.) with the model)

    1. EXTENDING THE MODEL

(suggested things to add or change in the Code tab to make the model more complicated, detailed, accurate, etc.)

    1. NETLOGO FEATURES

(interesting or unusual features of NetLogo that the model uses, particularly in the Code tab; or where workarounds were needed for missing features)

    1. RELATED MODELS

(models in the NetLogo Models Library and elsewhere which are of related interest)

    1. CREDITS AND REFERENCES

(a reference to the model's URL on the web if it has one, as well as any other necessary credits, citations, and links) @#$#@#$#@ default true 0 Polygon -7500403 true true 150 5 40 250 150 205 260 250

airplane true 0 Polygon -7500403 true true 150 0 135 15 120 60 120 105 15 165 15 195 120 180 135 240 105 270 120 285 150 270 180 285 210 270 165 240 180 180 285 195 285 165 180 105 180 60 165 15

arrow true 0 Polygon -7500403 true true 150 0 0 150 105 150 105 293 195 293 195 150 300 150

box false 0 Polygon -7500403 true true 150 285 285 225 285 75 150 135 Polygon -7500403 true true 150 135 15 75 150 15 285 75 Polygon -7500403 true true 15 75 15 225 150 285 150 135 Line -16777216 false 150 285 150 135 Line -16777216 false 150 135 15 75 Line -16777216 false 150 135 285 75

bug true 0 Circle -7500403 true true 96 182 108 Circle -7500403 true true 110 127 80 Circle -7500403 true true 110 75 80 Line -7500403 true 150 100 80 30 Line -7500403 true 150 100 220 30

butterfly true 0 Polygon -7500403 true true 150 165 209 199 225 225 225 255 195 270 165 255 150 240 Polygon -7500403 true true 150 165 89 198 75 225 75 255 105 270 135 255 150 240 Polygon -7500403 true true 139 148 100 105 55 90 25 90 10 105 10 135 25 180 40 195 85 194 139 163 Polygon -7500403 true true 162 150 200 105 245 90 275 90 290 105 290 135 275 180 260 195 215 195 162 165 Polygon -16777216 true false 150 255 135 225 120 150 135 120 150 105 165 120 180 150 165 225 Circle -16777216 true false 135 90 30 Line -16777216 false 150 105 195 60 Line -16777216 false 150 105 105 60

car false 0 Polygon -7500403 true true 300 180 279 164 261 144 240 135 226 132 213 106 203 84 185 63 159 50 135 50 75 60 0 150 0 165 0 225 300 225 300 180 Circle -16777216 true false 180 180 90 Circle -16777216 true false 30 180 90 Polygon -16777216 true false 162 80 132 78 134 135 209 135 194 105 189 96 180 89 Circle -7500403 true true 47 195 58 Circle -7500403 true true 195 195 58

circle false 0 Circle -7500403 true true 0 0 300

circle 2 false 0 Circle -7500403 true true 0 0 300 Circle -16777216 true false 30 30 240

cow false 0 Polygon -7500403 true true 200 193 197 249 179 249 177 196 166 187 140 189 93 191 78 179 72 211 49 209 48 181 37 149 25 120 25 89 45 72 103 84 179 75 198 76 252 64 272 81 293 103 285 121 255 121 242 118 224 167 Polygon -7500403 true true 73 210 86 251 62 249 48 208 Polygon -7500403 true true 25 114 16 195 9 204 23 213 25 200 39 123

cylinder false 0 Circle -7500403 true true 0 0 300

dot false 0 Circle -7500403 true true 90 90 120

face happy false 0 Circle -7500403 true true 8 8 285 Circle -16777216 true false 60 75 60 Circle -16777216 true false 180 75 60 Polygon -16777216 true false 150 255 90 239 62 213 47 191 67 179 90 203 109 218 150 225 192 218 210 203 227 181 251 194 236 217 212 240

face neutral false 0 Circle -7500403 true true 8 7 285 Circle -16777216 true false 60 75 60 Circle -16777216 true false 180 75 60 Rectangle -16777216 true false 60 195 240 225

face sad false 0 Circle -7500403 true true 8 8 285 Circle -16777216 true false 60 75 60 Circle -16777216 true false 180 75 60 Polygon -16777216 true false 150 168 90 184 62 210 47 232 67 244 90 220 109 205 150 198 192 205 210 220 227 242 251 229 236 206 212 183

fish false 0 Polygon -1 true false 44 131 21 87 15 86 0 120 15 150 0 180 13 214 20 212 45 166 Polygon -1 true false 135 195 119 235 95 218 76 210 46 204 60 165 Polygon -1 true false 75 45 83 77 71 103 86 114 166 78 135 60 Polygon -7500403 true true 30 136 151 77 226 81 280 119 292 146 292 160 287 170 270 195 195 210 151 212 30 166 Circle -16777216 true false 215 106 30

flag false 0 Rectangle -7500403 true true 60 15 75 300 Polygon -7500403 true true 90 150 270 90 90 30 Line -7500403 true 75 135 90 135 Line -7500403 true 75 45 90 45

flower false 0 Polygon -10899396 true false 135 120 165 165 180 210 180 240 150 300 165 300 195 240 195 195 165 135 Circle -7500403 true true 85 132 38 Circle -7500403 true true 130 147 38 Circle -7500403 true true 192 85 38 Circle -7500403 true true 85 40 38 Circle -7500403 true true 177 40 38 Circle -7500403 true true 177 132 38 Circle -7500403 true true 70 85 38 Circle -7500403 true true 130 25 38 Circle -7500403 true true 96 51 108 Circle -16777216 true false 113 68 74 Polygon -10899396 true false 189 233 219 188 249 173 279 188 234 218 Polygon -10899396 true false 180 255 150 210 105 210 75 240 135 240

house false 0 Rectangle -7500403 true true 45 120 255 285 Rectangle -16777216 true false 120 210 180 285 Polygon -7500403 true true 15 120 150 15 285 120 Line -16777216 false 30 120 270 120

leaf false 0 Polygon -7500403 true true 150 210 135 195 120 210 60 210 30 195 60 180 60 165 15 135 30 120 15 105 40 104 45 90 60 90 90 105 105 120 120 120 105 60 120 60 135 30 150 15 165 30 180 60 195 60 180 120 195 120 210 105 240 90 255 90 263 104 285 105 270 120 285 135 240 165 240 180 270 195 240 210 180 210 165 195 Polygon -7500403 true true 135 195 135 240 120 255 105 255 105 285 135 285 165 240 165 195

line true 0 Line -7500403 true 150 0 150 300

line half true 0 Line -7500403 true 150 0 150 150

pentagon false 0 Polygon -7500403 true true 150 15 15 120 60 285 240 285 285 120

person false 0 Circle -7500403 true true 110 5 80 Polygon -7500403 true true 105 90 120 195 90 285 105 300 135 300 150 225 165 300 195 300 210 285 180 195 195 90 Rectangle -7500403 true true 127 79 172 94 Polygon -7500403 true true 195 90 240 150 225 180 165 105 Polygon -7500403 true true 105 90 60 150 75 180 135 105

plant false 0 Rectangle -7500403 true true 135 90 165 300 Polygon -7500403 true true 135 255 90 210 45 195 75 255 135 285 Polygon -7500403 true true 165 255 210 210 255 195 225 255 165 285 Polygon -7500403 true true 135 180 90 135 45 120 75 180 135 210 Polygon -7500403 true true 165 180 165 210 225 180 255 120 210 135 Polygon -7500403 true true 135 105 90 60 45 45 75 105 135 135 Polygon -7500403 true true 165 105 165 135 225 105 255 45 210 60 Polygon -7500403 true true 135 90 120 45 150 15 180 45 165 90

sheep false 15 Circle -1 true true 203 65 88 Circle -1 true true 70 65 162 Circle -1 true true 150 105 120 Polygon -7500403 true false 218 120 240 165 255 165 278 120 Circle -7500403 true false 214 72 67 Rectangle -1 true true 164 223 179 298 Polygon -1 true true 45 285 30 285 30 240 15 195 45 210 Circle -1 true true 3 83 150 Rectangle -1 true true 65 221 80 296 Polygon -1 true true 195 285 210 285 210 240 240 210 195 210 Polygon -7500403 true false 276 85 285 105 302 99 294 83 Polygon -7500403 true false 219 85 210 105 193 99 201 83

square false 0 Rectangle -7500403 true true 30 30 270 270

square 2 false 0 Rectangle -7500403 true true 30 30 270 270 Rectangle -16777216 true false 60 60 240 240

star false 0 Polygon -7500403 true true 151 1 185 108 298 108 207 175 242 282 151 216 59 282 94 175 3 108 116 108

target false 0 Circle -7500403 true true 0 0 300 Circle -16777216 true false 30 30 240 Circle -7500403 true true 60 60 180 Circle -16777216 true false 90 90 120 Circle -7500403 true true 120 120 60

tree false 0 Circle -7500403 true true 118 3 94 Rectangle -6459832 true false 120 195 180 300 Circle -7500403 true true 65 21 108 Circle -7500403 true true 116 41 127 Circle -7500403 true true 45 90 120 Circle -7500403 true true 104 74 152

triangle false 0 Polygon -7500403 true true 150 30 15 255 285 255

triangle 2 false 0 Polygon -7500403 true true 150 30 15 255 285 255 Polygon -16777216 true false 151 99 225 223 75 224

truck false 0 Rectangle -7500403 true true 4 45 195 187 Polygon -7500403 true true 296 193 296 150 259 134 244 104 208 104 207 194 Rectangle -1 true false 195 60 195 105 Polygon -16777216 true false 238 112 252 141 219 141 218 112 Circle -16777216 true false 234 174 42 Rectangle -7500403 true true 181 185 214 194 Circle -16777216 true false 144 174 42 Circle -16777216 true false 24 174 42 Circle -7500403 false true 24 174 42 Circle -7500403 false true 144 174 42 Circle -7500403 false true 234 174 42

turtle true 0 Polygon -10899396 true false 215 204 240 233 246 254 228 266 215 252 193 210 Polygon -10899396 true false 195 90 225 75 245 75 260 89 269 108 261 124 240 105 225 105 210 105 Polygon -10899396 true false 105 90 75 75 55 75 40 89 31 108 39 124 60 105 75 105 90 105 Polygon -10899396 true false 132 85 134 64 107 51 108 17 150 2 192 18 192 52 169 65 172 87 Polygon -10899396 true false 85 204 60 233 54 254 72 266 85 252 107 210 Polygon -7500403 true true 119 75 179 75 209 101 224 135 220 225 175 261 128 261 81 224 74 135 88 99

ufo top false 0 Circle -1 true false 15 15 270 Circle -16777216 false false 15 15 270 Circle -7500403 true true 75 75 150 Circle -16777216 false false 75 75 150 Circle -7500403 true true 60 60 30 Circle -7500403 true true 135 30 30 Circle -7500403 true true 210 60 30 Circle -7500403 true true 240 135 30 Circle -7500403 true true 210 210 30 Circle -7500403 true true 135 240 30 Circle -7500403 true true 60 210 30 Circle -7500403 true true 30 135 30 Circle -16777216 false false 30 135 30 Circle -16777216 false false 60 210 30 Circle -16777216 false false 135 240 30 Circle -16777216 false false 210 210 30 Circle -16777216 false false 240 135 30 Circle -16777216 false false 210 60 30 Circle -16777216 false false 135 30 30 Circle -16777216 false false 60 60 30

wheel false 0 Circle -7500403 true true 3 3 294 Circle -16777216 true false 30 30 240 Line -7500403 true 150 285 150 15 Line -7500403 true 15 150 285 150 Circle -7500403 true true 120 120 60 Line -7500403 true 216 40 79 269 Line -7500403 true 40 84 269 221 Line -7500403 true 40 216 269 79 Line -7500403 true 84 40 221 269

wolf false 0 Polygon -16777216 true false 253 133 245 131 245 133 Polygon -7500403 true true 2 194 13 197 30 191 38 193 38 205 20 226 20 257 27 265 38 266 40 260 31 253 31 230 60 206 68 198 75 209 66 228 65 243 82 261 84 268 100 267 103 261 77 239 79 231 100 207 98 196 119 201 143 202 160 195 166 210 172 213 173 238 167 251 160 248 154 265 169 264 178 247 186 240 198 260 200 271 217 271 219 262 207 258 195 230 192 198 210 184 227 164 242 144 259 145 284 151 277 141 293 140 299 134 297 127 273 119 270 105 Polygon -7500403 true true -1 195 14 180 36 166 40 153 53 140 82 131 134 133 159 126 188 115 227 108 236 102 238 98 268 86 269 92 281 87 269 103 269 113

x false 0 Polygon -7500403 true true 270 75 225 30 30 225 75 270 Polygon -7500403 true true 30 75 75 30 270 225 225 270 @#$#@#$#@ NetLogo 6.0.2 @#$#@#$#@ @#$#@#$#@ @#$#@#$#@ @#$#@#$#@ @#$#@#$#@ default 0 -0.2 0 0 1 0 1 1 0 0.2 0 0 1 link direction true 0 Line -7500403 true 150 150 90 180 Line -7500403 true 150 150 210 180 @#$#@#$#@

@#$#@#$#@ </script>

   <script>
     Ractive.DEBUG = false;
     var loadingOverlay  = document.getElementById("loading-overlay");
     var activeContainer = loadingOverlay;
     var modelContainer  = document.querySelector("#netlogo-model-container");
     var nlogoScript     = document.querySelector("#nlogo-code");
     var standaloneURL   = "//netlogoweb.org/standalone";
     var pageTitle       = function(modelTitle) {
       if (modelTitle != null && modelTitle != "") {
         return "NetLogo Web: " + modelTitle;
       } else {
         return "NetLogo Web";
       }
     };
     var session;
     var openSession = function(s) {
       session = s;
       document.title = pageTitle(session.modelTitle());
       activeContainer = modelContainer;
       session.startLoop();
     };
     var isStandaloneHTML = false;
     if (nlogoScript.textContent.length > 0) {
       isStandaloneHTML = true;
     }
     window.nlwAlerter = new NLWAlerter(document.getElementById("alert-overlay"), isStandaloneHTML);
     var displayError = function(error) {
       // in the case where we're still loading the model, we have to
       // post an error that cannot be dismissed, as well as ensuring that
       // the frame we're in matches the size of the error on display.
       if (activeContainer === loadingOverlay) {
         window.nlwAlerter.displayError(error, false);
         activeContainer = window.nlwAlerter.alertContainer;
       } else {
         window.nlwAlerter.displayError(error);
       }
     };
     var loadModel = function(nlogo, path) {
       if (session) {
         session.teardown();
       }
       window.nlwAlerter.hide();
       activeContainer = loadingOverlay;
       Tortoise.fromNlogo(nlogo, modelContainer, path, openSession, displayError);
     };
     if (nlogoScript.textContent.length > 0) {
       Tortoise.fromNlogo(nlogoScript.textContent,
                          modelContainer,
                          nlogoScript.dataset.filename,
                          openSession,
                          displayError);
     } else if (window.location.search.length > 0) {
       var query    = window.location.search.slice(1);
       var pairs    = query.split(/&(?=\w+=)/).map(function(x) { return x.split('='); });
       var paramObj = pairs.reduce(function(acc, pair) { acc[pair[0]] = pair[1]; return acc; }, {})
       var url       = (paramObj.url  !== undefined) ?           paramObj.url   : query;
       var modelName = (paramObj.name !== undefined) ? decodeURI(paramObj.name) : undefined;
       Tortoise.fromURL(url, modelName, modelContainer, openSession, displayError);
     } else {
       loadModel(exports.newModel, "NewModel");
     }
     window.addEventListener("message", function (e) {
       if (e.data.type === "nlw-load-model") {
         loadModel(e.data.nlogo, e.data.path);
       } else if (e.data.type === "nlw-open-new") {
         loadModel(exports.newModel, "NewModel");
       } else if (e.data.type === "nlw-update-model-state") {
         session.widgetController.setCode(e.data.codeTabContents);
       } else if (e.data.type === "run-baby-behaviorspace") {
         var reaction =
           function(results) {
             e.source.postMessage({ type: "baby-behaviorspace-results", id: e.data.id, data: results }, "*");
           };
         session.asyncRunBabyBehaviorSpace(e.data.config, reaction);
      }
     });
     if (parent !== window) {
       var width = "", height = "";
       window.setInterval(function() {
         if (activeContainer.offsetWidth  !== width ||
             activeContainer.offsetHeight !== height ||
             (session !== undefined && document.title != pageTitle(session.modelTitle()))) {
           if (session !== undefined) {
             document.title = pageTitle(session.modelTitle());
           }
           width = activeContainer.offsetWidth;
           height = activeContainer.offsetHeight;
           parent.postMessage({
             width:  activeContainer.offsetWidth,
             height: activeContainer.offsetHeight,
             title:  document.title,
             type:   "nlw-resize"
           }, "*");
         }
       }, 200);
     }
   </script>
 

</body></html>