JAL-1996 added notes for an alternative way to view example pages source code
[jalview.git] / examples / example_biojs.html
1 <html>
2 <header><title>BioJS viewer</title></header>
3
4 <body>
5
6 <!-- include MSA js + css -->
7 <!-- <script src="https://s3-eu-west-1.amazonaws.com/biojs/msa/latest/msa.js"></script> -->
8 <!-- <link type=text/css rel=stylesheet href=https://s3-eu-west-1.amazonaws.com/biojs/msa/latest/msa.css /> -->
9  
10  <img src="http://www.jalview.org/help/html/Jalview_Logo.png" alt="Jalview Logo" title="This html page was generated from Jalview, to import the data back to Jalview, please drag the generated html file and drop it unto the Jalview workbench.
11  
12  Alternatively, you could copy the url from the address bar and use Jalview's url importer (main menu-> File-> Input Alignment-> from URL) to import back the alignment jalview." >
13
14 </br>
15 </br>
16
17 <input type="button" name="divToggleButton" id="divToggleButton" onclick="javascipt:toggleMenuVisibility();" value="Show Menu"></input>
18 <button onclick="javascipt:openJalviewUsingCurrentUrl();">Launch in Jalview</button>
19
20 </br>
21 </br> 
22   
23 <div id="yourDiv">press "Run with JS"</div>
24 <input type='hidden' id='seqData' name='seqData' value='{"globalColorScheme":"zappo","seqs":[{"id":"1","start":1,"name":"FER_CAPAA/1-97","seq":"----------------------------------------------------------ASYKVKLITPDGPIEFDCPDDVYILDQAEEAGHDLPYSCRAGSCSSCAGKIAGGAVDQTDGNFLDDDQLEEGWVLTCVAYPQSDVTIETHKEAELVG-","features":[],"end":97},{"id":"2","start":1,"name":"FER_CAPAN/1-144","seq":"------MASVSATMISTSFMPRKPAVTSLKPIP-NVG-EALFGLKS---ANGGKVTCMASYKVKLITPDGPIEFDCPDNVYILDQAEEAGHDLPYSCRAGSCSSCAGKIAGGAVDQTDGNFLDDDQLEEGWVLTCVAYPQSDVTIETHKEAELVG-","features":[{"text":"feature_1","xEnd":46,"fillColor":"#8c25cd","xStart":16}],"end":144},{"id":"3","start":1,"name":"FER1_SOLLC/1-144","seq":"------MASISGTMISTSFLPRKPAVTSLKAIS-NVG-EALFGLKS---GRNGRITCMASYKVKLITPEGPIEFECPDDVYILDQAEEEGHDLPYSCRAGSCSSCAGKVTAGSVDQSDGNFLDEDQEAAGFVLTCVAYPKGDVTIETHKEEELTA-","features":[],"end":144},{"id":"4","start":1,"name":"Q93XJ9_SOLTU/1-144","seq":"------MASISGTMISTSFLPRKPVVTSLKAIS-NVG-EALFGLKS---GRNGRITCMASYKVKLITPDGPIEFECPDDVYILDQAEEEGHDLPYSCRAGSCSSCAGKVTAGTVDQSDGKFLDDDQEAAGFVLTCVAYPKCDVTIETHKEEELTA-","features":[],"end":144},{"id":"5","start":1,"name":"FER1_PEA/1-149","seq":"---MATTPALYGTAVSTSFLRTQPMPMSVTTTKAFSN--GFLGLKT-SLKRGDLAVAMASYKVKLVTPDGTQEFECPSDVYILDHAEEVGIDLPYSCRAGSCSSCAGKVVGGEVDQSDGSFLDDEQIEAGFVLTCVAYPTSDVVIETHKEEDLTA-","features":[],"end":149},{"id":"6","start":1,"name":"Q7XA98_TRIPR/1-152","seq":"---MATTPALYGTAVSTSFMRRQPVPMSVATTTTTKAFPSGFGLKSVSTKRGDLAVAMATYKVKLITPEGPQEFDCPDDVYILDHAEEVGIELPYSCRAGSCSSCAGKVVNGNVNQEDGSFLDDEQIEGGWVLTCVAFPTSDVTIETHKEEELTA-","features":[{"text":"feature_2","xEnd":24,"fillColor":"#0000cc","xStart":8}],"end":152},{"id":"7","start":1,"name":"FER1_MESCR/1-148","seq":"--MAATTAALSGATMSTAFAPKT--PPMTAALPTNVG-RALFGLKS--SASRGRVTAMAAYKVTLVTPEGKQELECPDDVYILDAAEEAGIDLPYSCRAGSCSSCAGKVTSGSVNQDDGSFLDDDQIKEGWVLTCVAYPTGDVTIETHKEEELTA-","features":[],"end":148},{"id":"8","start":1,"name":"FER1_SPIOL/1-147","seq":"----MAATTTTMMGMATTFVPKPQAPPMMAALPSNTG-RSLFGLKT--GSRGGRMT-MAAYKVTLVTPTGNVEFQCPDDVYILDAAEEEGIDLPYSCRAGSCSSCAGKLKTGSLNQDDQSFLDDDQIDEGWVLTCAAYPVSDVTIETHKEEELTA-","features":[],"end":147},{"id":"9","start":1,"name":"FER3_RAPSA/1-96","seq":"----------------------------------------------------------ATYKVKFITPEGEQEVECDDDVYVLDAAEEAGIDLPYSCRAGSCSSCAGKVVSGSVDQSDQSFLDDDQIAEGFVLTCAAYPTSDVTIETHREEDMV--","features":[],"end":96},{"id":"10","start":1,"name":"FER1_ARATH/1-148","seq":"----MASTALSSAIVGTSFIRRSPAPISLRSLPSANT-QSLFGLKS-GTARGGRVTAMATYKVKFITPEGELEVECDDDVYVLDAAEEAGIDLPYSCRAGSCSSCAGKVVSGSVDQSDQSFLDDEQIGEGFVLTCAAYPTSDVTIETHKEEDIV--","features":[],"end":148},{"id":"11","start":1,"name":"FER_BRANA/1-96","seq":"----------------------------------------------------------ATYKVKFITPEGEQEVECDDDVYVLDAAEEAGIDLPYSCRAGSCSSCAGKVVSGFVDQSDESFLDDDQIAEGFVLTCAAYPTSDVTIETHKEEELV--","features":[],"end":96},{"id":"12","start":1,"name":"FER2_ARATH/1-148","seq":"----MASTALSSAIVSTSFLRRQQTPISLRSLPFANT-QSLFGLKS-STARGGRVTAMATYKVKFITPEGEQEVECEEDVYVLDAAEEAGLDLPYSCRAGSCSSCAGKVVSGSIDQSDQSFLDDEQMSEGYVLTCVAYPTSDVVIETHKEEAIM--","features":[{"text":"feature_3","xEnd":32,"fillColor":"#ffff00","xStart":4}],"end":148},{"id":"13","start":1,"name":"Q93Z60_ARATH/1-118","seq":"----MASTALSSAIVSTSFLRRQQTPISLRSLPFANT-QSLFGLKS-STARGGRVTAMATYKVKFITPEGEQEVECEEDVYVLDAAEEAGLDLPYSCRAGSCSSCAGKVVSGSIDQSDQSFLDD--------------------------------","features":[],"end":118},{"id":"14","start":1,"name":"FER1_MAIZE/1-150","seq":"MATVLGSPRAPAFFFSSSSLRAAPAPTAVALPAAKVG---IMGRSA---SSRRRLRAQATYNVKLITPEGEVELQVPDDVYILDQAEEDGIDLPYSCRAGSCSSCAGKVVSGSVDQSDQSYLDDGQIADGWVLTCHAYPTSDVVIETHKEEELTGA","features":[],"end":150},{"id":"15","start":1,"name":"O80429_MAIZE/1-140","seq":"---------MAATALSMSILRAPP-PCFSSPLRLRVAVAKPLAAPM----RRQLLRAQATYNVKLITPEGEVELQVPDDVYILDFAEEEGIDLPFSCRAGSCSSCAGKVVSGSVDQSDQSFLNDNQVADGWVLTCAAYPTSDVVIETHKEDDLL--","features":[],"end":140}],"webStartUrl":"http://www.jalview.org/services/launchApp","jalviewVersion":"Test"}'/>
25
26 </body>
27 </html>
28
29
30
31 <script>
32
33 function toggleMenuVisibility(){
34         var menu = document.getElementsByClassName("biojs_msa_menubar");
35         var divToggleButton = document.getElementById("divToggleButton");
36         if(menu[0].style.display == 'block'){
37           menu[0].style.display = 'none';
38           divToggleButton.value="Show Menu";
39        }else{
40           menu[0].style.display = 'block'; 
41           divToggleButton.value="Hide Menu";
42           }
43 }
44
45
46 function openJalviewUsingCurrentUrl(){
47         var jalviewData = JSON.parse(document.getElementById("seqData").value)
48     var jalviewVersion = jalviewData['jalviewVersion'];
49     var url = jalviewData['webStartUrl'];
50         var myForm = document.createElement("form");
51         myForm.action = url;
52         
53     var heap = document.createElement("input") ;
54     heap.setAttribute("name", "jvm-max-heap") ;
55     heap.setAttribute("value", "2G");
56     myForm.appendChild(heap) ;
57     
58     var target = document.createElement("input") ;
59     target.setAttribute("name", "open") ;
60     target.setAttribute("value", document.URL);
61     myForm.appendChild(target) ;
62     
63     var jvVersion = document.createElement("input") ;
64     jvVersion.setAttribute("name", "version") ;
65     jvVersion.setAttribute("value", jalviewVersion);
66     myForm.appendChild(jvVersion) ;
67     
68         document.body.appendChild(myForm) ;
69         myForm.submit() ;
70         document.body.removeChild(myForm) ;
71 }
72
73
74 require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
75 var css = ".biojs_msa_stage {\n  cursor: default;\n  line-height: normal; }\n\n.biojs_msa_labels {\n  color: black;\n  display: inline-block;\n  white-space: nowrap;\n  cursor: pointer;\n  vertical-align: top; }\n\n.biojs_msa_seqblock {\n  cursor: move; }\n\n.biojs_msa_layer {\n  display: block;\n  white-space: nowrap; }\n\n.biojs_msa_labelblock::-webkit-scrollbar, .biojs_msa_header::-webkit-scrollbar {\n  -webkit-appearance: none;\n  width: 7px;\n  height: 7px; }\n\n.biojs_msa_labelblock::-webkit-scrollbar-thumb, .biojs_msa_header::-webkit-scrollbar-thumb {\n  border-radius: 4px;\n  background-color: rgba(0, 0, 0, 0.5);\n  box-shadow: 0 0 1px rgba(255, 255, 255, 0.5); }\n\n.biojs_msa_marker {\n  color: grey;\n  white-space: nowrap;\n  cursor: pointer; }\n\n.biojs_msa_marker span {\n  text-align: center; }\n\n.biojs_msa_menubar .biojs_msa_menubar_alink {\n  background: #3498db;\n  background-image: -webkit-linear-gradient(top, #3498db, #2980b9);\n  background-image: -moz-linear-gradient(top, #3498db, #2980b9);\n  background-image: -ms-linear-gradient(top, #3498db, #2980b9);\n  background-image: -o-linear-gradient(top, #3498db, #2980b9);\n  background-image: linear-gradient(to bottom, #3498db, #2980b9);\n  -webkit-border-radius: 28;\n  -moz-border-radius: 28;\n  border-radius: 28px;\n  font-family: Arial;\n  color: #ffffff;\n  padding: 3px 10px 3px 10px;\n  margin-left: 10px;\n  text-decoration: none; }\n\n.biojs_msa_menubar .biojs_msa_menubar_alink:hover {\n  cursor: pointer; }\n\n/* jquery dropdown CSS */\n.dropdown {\n  position: absolute;\n  z-index: 9999999;\n  display: none; }\n\n.dropdown .dropdown-menu,\n.dropdown .dropdown-panel {\n  min-width: 160px;\n  max-width: 360px;\n  list-style: none;\n  background: #FFF;\n  border: solid 1px #DDD;\n  border: solid 1px rgba(0, 0, 0, 0.2);\n  border-radius: 6px;\n  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n  overflow: visible;\n  padding: 4px 0;\n  margin: 0; }\n\n.dropdown .dropdown-panel {\n  padding: 10px; }\n\n.dropdown.dropdown-scroll .dropdown-menu,\n.dropdown.dropdown-scroll .dropdown-panel {\n  max-height: 358px;\n  overflow: auto; }\n\n.dropdown .dropdown-menu LI {\n  list-style: none;\n  padding: 0 0;\n  margin: 0;\n  line-height: 18px; }\n\n.dropdown .dropdown-menu LI,\n.dropdown .dropdown-menu LABEL {\n  display: block;\n  color: #555;\n  text-decoration: none;\n  line-height: 18px;\n  padding: 3px 15px;\n  white-space: nowrap; }\n\n.dropdown .dropdown-menu LI:hover,\n.dropdown .dropdown-menu LABEL:hover {\n  background-color: #08C;\n  color: #FFF;\n  cursor: pointer; }\n\n.dropdown .dropdown-menu .dropdown-divider {\n  font-size: 1px;\n  border-top: solid 1px #E5E5E5;\n  padding: 0;\n  margin: 5px 0; }\n"; (require("/home/travis/build/greenify/biojs-vis-msa/node_modules/cssify"))(css); module.exports = css;
76 },{"/home/travis/build/greenify/biojs-vis-msa/node_modules/cssify":48}],2:[function(require,module,exports){
77 module.exports = require("./src/index");
78
79 },{"./src/index":72}],3:[function(require,module,exports){
80 var _ = require('underscore');
81 var viewType = require("backbone-viewj");
82 var pluginator;
83
84 module.exports = pluginator = viewType.extend({
85   renderSubviews: function() {
86     var oldEl = this.el;
87     var el = document.createElement("div");
88     this.setElement(el);
89     var frag = document.createDocumentFragment();
90     if (oldEl.parentNode != null) {
91       oldEl.parentNode.replaceChild(this.el, oldEl);
92     }
93     var views = this._views();
94     var viewsSorted = _.sortBy(views, function(el) {
95       return el.ordering;
96     });
97     var view, node;
98     for (var i = 0; i <  viewsSorted.length; i++) {
99       view = viewsSorted[i];
100       view.render();
101       node = view.el;
102       if (node != null) {
103         frag.appendChild(node);
104       }
105     }
106     el.appendChild(frag);
107     return el;
108   },
109   addView: function(key, view) {
110     var views = this._views();
111     if (view == null) {
112       throw "Invalid plugin. ";
113     }
114     if (view.ordering == null) {
115       view.ordering = key;
116     }
117     return views[key] = view;
118   },
119   removeViews: function() {
120     var el, key;
121     var views = this._views();
122     for (key in views) {
123       el = views[key];
124       el.undelegateEvents();
125       el.unbind();
126       if (el.removeViews != null) {
127         el.removeViews();
128       }
129       el.remove();
130     }
131     return this.views = {};
132   },
133   removeView: function(key) {
134     var views = this._views();
135     views[key].remove();
136     return delete views[key];
137   },
138   getView: function(key) {
139     var views = this._views();
140     return views[key];
141   },
142   remove: function() {
143     this.removeViews();
144     return viewType.prototype.remove.apply(this);
145   },
146   _views: function() {
147     if (this.views == null) {
148       this.views = {};
149     }
150     return this.views;
151   }
152 });
153
154 },{"backbone-viewj":10,"underscore":59}],4:[function(require,module,exports){
155 //     Backbone.js 1.1.2
156
157 //     (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
158 //     Backbone may be freely distributed under the MIT license.
159 //     For all details and documentation:
160 //     http://backbonejs.org
161
162 var Events = require("backbone-events-standalone");
163 var extend = require("backbone-extend-standalone");
164 var _ = require("underscore");
165 var Model = require("./model");
166
167 // Create local references to array methods we'll want to use later.
168 var array = [];
169 var slice = array.slice;
170
171 // Backbone.Collection
172 // -------------------
173
174 // If models tend to represent a single row of data, a Backbone Collection is
175 // more analogous to a table full of data ... or a small slice or page of that
176 // table, or a collection of rows that belong together for a particular reason
177 // -- all of the messages in this particular folder, all of the documents
178 // belonging to this particular author, and so on. Collections maintain
179 // indexes of their models, both in order, and for lookup by `id`.
180
181 // Create a new **Collection**, perhaps to contain a specific type of `model`.
182 // If a `comparator` is specified, the Collection will maintain
183 // its models in sort order, as they're added and removed.
184 var Collection = function(models, options) {
185   options || (options = {});
186   if (options.model) this.model = options.model;
187   if (options.comparator !== void 0) this.comparator = options.comparator;
188   this._reset();
189   this.initialize.apply(this, arguments);
190   if (models) this.reset(models, _.extend({silent: true}, options));
191 };
192
193 // Default options for `Collection#set`.
194 var setOptions = {add: true, remove: true, merge: true};
195 var addOptions = {add: true, remove: false};
196
197 // Define the Collection's inheritable methods.
198 _.extend(Collection.prototype, Events, {
199
200   // The default model for a collection is just a **Backbone.Model**.
201   // This should be overridden in most cases.
202   model: Model,
203
204   // Initialize is an empty function by default. Override it with your own
205   // initialization logic.
206   initialize: function(){},
207
208     // The JSON representation of a Collection is an array of the
209     // models' attributes.
210   toJSON: function(options) {
211     return this.map(function(model){ return model.toJSON(options); });
212   },
213
214     // Proxy `Backbone.sync` by default.
215   sync: function() {
216     return Backbone.sync.apply(this, arguments);
217   },
218
219     // Add a model, or list of models to the set.
220   add: function(models, options) {
221     return this.set(models, _.extend({merge: false}, options, addOptions));
222   },
223
224     // Remove a model, or a list of models from the set.
225   remove: function(models, options) {
226     var singular = !_.isArray(models);
227     models = singular ? [models] : _.clone(models);
228     options || (options = {});
229     for (var i = 0, length = models.length; i < length; i++) {
230       var model = models[i] = this.get(models[i]);
231       if (!model) continue;
232       var id = this.modelId(model.attributes);
233       if (id != null) delete this._byId[id];
234       delete this._byId[model.cid];
235       var index = this.indexOf(model);
236       this.models.splice(index, 1);
237       this.length--;
238       if (!options.silent) {
239         options.index = index;
240         model.trigger('remove', model, this, options);
241       }
242       this._removeReference(model, options);
243     }
244     return singular ? models[0] : models;
245   },
246
247     // Update a collection by `set`-ing a new list of models, adding new ones,
248     // removing models that are no longer present, and merging models that
249     // already exist in the collection, as necessary. Similar to **Model#set**,
250     // the core operation for updating the data contained by the collection.
251   set: function(models, options) {
252     options = _.defaults({}, options, setOptions);
253     if (options.parse) models = this.parse(models, options);
254     var singular = !_.isArray(models);
255     models = singular ? (models ? [models] : []) : models.slice();
256     var id, model, attrs, existing, sort;
257     var at = options.at;
258     var sortable = this.comparator && (at == null) && options.sort !== false;
259     var sortAttr = _.isString(this.comparator) ? this.comparator : null;
260     var toAdd = [], toRemove = [], modelMap = {};
261     var add = options.add, merge = options.merge, remove = options.remove;
262     var order = !sortable && add && remove ? [] : false;
263
264     // Turn bare objects into model references, and prevent invalid models
265     // from being added.
266     for (var i = 0, length = models.length; i < length; i++) {
267       attrs = models[i];
268
269       // If a duplicate is found, prevent it from being added and
270       // optionally merge it into the existing model.
271       if (existing = this.get(attrs)) {
272         if (remove) modelMap[existing.cid] = true;
273         if (merge && attrs !== existing) {
274           attrs = this._isModel(attrs) ? attrs.attributes : attrs;
275           if (options.parse) attrs = existing.parse(attrs, options);
276           existing.set(attrs, options);
277           if (sortable && !sort && existing.hasChanged(sortAttr)) sort = true;
278         }
279         models[i] = existing;
280
281         // If this is a new, valid model, push it to the `toAdd` list.
282       } else if (add) {
283         model = models[i] = this._prepareModel(attrs, options);
284         if (!model) continue;
285         toAdd.push(model);
286         this._addReference(model, options);
287       }
288
289       // Do not add multiple models with the same `id`.
290       model = existing || model;
291       if (!model) continue;
292       id = this.modelId(model.attributes);
293       if (order && (model.isNew() || !modelMap[id])) order.push(model);
294       modelMap[id] = true;
295     }
296
297     // Remove nonexistent models if appropriate.
298     if (remove) {
299       for (var i = 0, length = this.length; i < length; i++) {
300         if (!modelMap[(model = this.models[i]).cid]) toRemove.push(model);
301       }
302       if (toRemove.length) this.remove(toRemove, options);
303     }
304
305     // See if sorting is needed, update `length` and splice in new models.
306     if (toAdd.length || (order && order.length)) {
307       if (sortable) sort = true;
308       this.length += toAdd.length;
309       if (at != null) {
310         for (var i = 0, length = toAdd.length; i < length; i++) {
311           this.models.splice(at + i, 0, toAdd[i]);
312         }
313       } else {
314         if (order) this.models.length = 0;
315         var orderedModels = order || toAdd;
316         for (var i = 0, length = orderedModels.length; i < length; i++) {
317           this.models.push(orderedModels[i]);
318         }
319       }
320     }
321
322     // Silently sort the collection if appropriate.
323     if (sort) this.sort({silent: true});
324
325     // Unless silenced, it's time to fire all appropriate add/sort events.
326     if (!options.silent) {
327       var addOpts = at != null ? _.clone(options) : options;
328       for (var i = 0, length = toAdd.length; i < length; i++) {
329         if (at != null) addOpts.index = at + i;
330         (model = toAdd[i]).trigger('add', model, this, addOpts);
331       }
332       if (sort || (order && order.length)) this.trigger('sort', this, options);
333     }
334
335     // Return the added (or merged) model (or models).
336     return singular ? models[0] : models;
337   },
338
339     // When you have more items than you want to add or remove individually,
340     // you can reset the entire set with a new list of models, without firing
341     // any granular `add` or `remove` events. Fires `reset` when finished.
342     // Useful for bulk operations and optimizations.
343   reset: function(models, options) {
344     options || (options = {});
345     for (var i = 0, length = this.models.length; i < length; i++) {
346       this._removeReference(this.models[i], options);
347     }
348     options.previousModels = this.models;
349     this._reset();
350     models = this.add(models, _.extend({silent: true}, options));
351     if (!options.silent) this.trigger('reset', this, options);
352     return models;
353   },
354
355     // Add a model to the end of the collection.
356   push: function(model, options) {
357     return this.add(model, _.extend({at: this.length}, options));
358   },
359
360     // Remove a model from the end of the collection.
361   pop: function(options) {
362     var model = this.at(this.length - 1);
363     this.remove(model, options);
364     return model;
365   },
366
367     // Add a model to the beginning of the collection.
368   unshift: function(model, options) {
369     return this.add(model, _.extend({at: 0}, options));
370   },
371
372     // Remove a model from the beginning of the collection.
373   shift: function(options) {
374     var model = this.at(0);
375     this.remove(model, options);
376     return model;
377   },
378
379     // Slice out a sub-array of models from the collection.
380   slice: function() {
381     return slice.apply(this.models, arguments);
382   },
383
384     // Get a model from the set by id.
385   get: function(obj) {
386     if (obj == null) return void 0;
387     var id = this.modelId(this._isModel(obj) ? obj.attributes : obj);
388     return this._byId[obj] || this._byId[id] || this._byId[obj.cid];
389   },
390
391     // Get the model at the given index.
392   at: function(index) {
393     if (index < 0) index += this.length;
394     return this.models[index];
395   },
396
397     // Return models with matching attributes. Useful for simple cases of
398     // `filter`.
399   where: function(attrs, first) {
400     if (_.isEmpty(attrs)) return first ? void 0 : [];
401     return this[first ? 'find' : 'filter'](function(model) {
402       for (var key in attrs) {
403         if (attrs[key] !== model.get(key)) return false;
404       }
405       return true;
406     });
407   },
408
409     // Return the first model with matching attributes. Useful for simple cases
410     // of `find`.
411   findWhere: function(attrs) {
412     return this.where(attrs, true);
413   },
414
415     // Force the collection to re-sort itself. You don't need to call this under
416     // normal circumstances, as the set will maintain sort order as each item
417     // is added.
418   sort: function(options) {
419     if (!this.comparator) throw new Error('Cannot sort a set without a comparator');
420     options || (options = {});
421
422     // Run sort based on type of `comparator`.
423     if (_.isString(this.comparator) || this.comparator.length === 1) {
424       this.models = this.sortBy(this.comparator, this);
425     } else {
426       this.models.sort(_.bind(this.comparator, this));
427     }
428
429     if (!options.silent) this.trigger('sort', this, options);
430     return this;
431   },
432
433     // Pluck an attribute from each model in the collection.
434   pluck: function(attr) {
435     return _.invoke(this.models, 'get', attr);
436   },
437
438     // Fetch the default set of models for this collection, resetting the
439     // collection when they arrive. If `reset: true` is passed, the response
440     // data will be passed through the `reset` method instead of `set`.
441   fetch: function(options) {
442     options = options ? _.clone(options) : {};
443     if (options.parse === void 0) options.parse = true;
444     var success = options.success;
445     var collection = this;
446     options.success = function(resp) {
447       var method = options.reset ? 'reset' : 'set';
448       collection[method](resp, options);
449       if (success) success(collection, resp, options);
450       collection.trigger('sync', collection, resp, options);
451     };
452     wrapError(this, options);
453     return this.sync('read', this, options);
454   },
455
456     // Create a new instance of a model in this collection. Add the model to the
457     // collection immediately, unless `wait: true` is passed, in which case we
458     // wait for the server to agree.
459   create: function(model, options) {
460     options = options ? _.clone(options) : {};
461     if (!(model = this._prepareModel(model, options))) return false;
462     if (!options.wait) this.add(model, options);
463     var collection = this;
464     var success = options.success;
465     options.success = function(model, resp) {
466       if (options.wait) collection.add(model, options);
467       if (success) success(model, resp, options);
468     };
469     model.save(null, options);
470     return model;
471   },
472
473     // **parse** converts a response into a list of models to be added to the
474     // collection. The default implementation is just to pass it through.
475   parse: function(resp, options) {
476     return resp;
477   },
478
479     // Create a new collection with an identical list of models as this one.
480   clone: function() {
481     return new this.constructor(this.models, {
482       model: this.model,
483       comparator: this.comparator
484     });
485   },
486
487     // Define how to uniquely identify models in the collection.
488   modelId: function (attrs) {
489     return attrs[this.model.prototype.idAttribute || 'id'];
490   },
491
492     // Private method to reset all internal state. Called when the collection
493     // is first initialized or reset.
494   _reset: function() {
495     this.length = 0;
496     this.models = [];
497     this._byId  = {};
498   },
499
500     // Prepare a hash of attributes (or other model) to be added to this
501     // collection.
502   _prepareModel: function(attrs, options) {
503     if (this._isModel(attrs)) {
504       if (!attrs.collection) attrs.collection = this;
505       return attrs;
506     }
507     options = options ? _.clone(options) : {};
508     options.collection = this;
509     var model = new this.model(attrs, options);
510     if (!model.validationError) return model;
511     this.trigger('invalid', this, model.validationError, options);
512     return false;
513   },
514
515     // Method for checking whether an object should be considered a model for
516     // the purposes of adding to the collection.
517   _isModel: function (model) {
518     return model instanceof Model;
519   },
520
521     // Internal method to create a model's ties to a collection.
522   _addReference: function(model, options) {
523     this._byId[model.cid] = model;
524     var id = this.modelId(model.attributes);
525     if (id != null) this._byId[id] = model;
526     model.on('all', this._onModelEvent, this);
527   },
528
529     // Internal method to sever a model's ties to a collection.
530   _removeReference: function(model, options) {
531     if (this === model.collection) delete model.collection;
532     model.off('all', this._onModelEvent, this);
533   },
534
535     // Internal method called every time a model in the set fires an event.
536     // Sets need to update their indexes when models change ids. All other
537     // events simply proxy through. "add" and "remove" events that originate
538     // in other collections are ignored.
539   _onModelEvent: function(event, model, collection, options) {
540     if ((event === 'add' || event === 'remove') && collection !== this) return;
541     if (event === 'destroy') this.remove(model, options);
542     if (event === 'change') {
543       var prevId = this.modelId(model.previousAttributes());
544       var id = this.modelId(model.attributes);
545       if (prevId !== id) {
546         if (prevId != null) delete this._byId[prevId];
547         if (id != null) this._byId[id] = model;
548       }
549     }
550     this.trigger.apply(this, arguments);
551   }
552
553 });
554
555 // Underscore methods that we want to implement on the Collection.
556 // 90% of the core usefulness of Backbone Collections is actually implemented
557 // right here:
558 var methods = ['forEach', 'each', 'map', 'collect', 'reduce', 'foldl',
559     'inject', 'reduceRight', 'foldr', 'find', 'detect', 'filter', 'select',
560     'reject', 'every', 'all', 'some', 'any', 'include', 'contains', 'invoke',
561     'max', 'min', 'toArray', 'size', 'first', 'head', 'take', 'initial', 'rest',
562     'tail', 'drop', 'last', 'without', 'difference', 'indexOf', 'shuffle',
563     'lastIndexOf', 'isEmpty', 'chain', 'sample', 'partition'];
564
565 // Mix in each Underscore method as a proxy to `Collection#models`.
566 _.each(methods, function(method) {
567   if (!_[method]) return;
568   Collection.prototype[method] = function() {
569     var args = slice.call(arguments);
570     args.unshift(this.models);
571     return _[method].apply(_, args);
572   };
573 });
574
575 // Underscore methods that take a property name as an argument.
576 var attributeMethods = ['groupBy', 'countBy', 'sortBy', 'indexBy'];
577
578 // Use attributes instead of properties.
579 _.each(attributeMethods, function(method) {
580   if (!_[method]) return;
581   Collection.prototype[method] = function(value, context) {
582     var iterator = _.isFunction(value) ? value : function(model) {
583       return model.get(value);
584     };
585     return _[method](this.models, iterator, context);
586   };
587 });
588
589 // setup inheritance
590 Collection.extend = extend;
591 module.exports = Collection;
592
593 },{"./model":6,"backbone-events-standalone":8,"backbone-extend-standalone":9,"underscore":59}],5:[function(require,module,exports){
594 module.exports.Model = require("./model");
595 module.exports.Collection = require("./collection");
596 module.exports.Events = require("backbone-events-standalone");
597 module.exports.extend = require("backbone-extend-standalone");
598
599 },{"./collection":4,"./model":6,"backbone-events-standalone":8,"backbone-extend-standalone":9}],6:[function(require,module,exports){
600 //     Backbone.js 1.1.2
601
602 //     (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
603 //     Backbone may be freely distributed under the MIT license.
604 //     For all details and documentation:
605 //     http://backbonejs.org
606
607 var Events = require("backbone-events-standalone");
608 var extend = require("backbone-extend-standalone");
609 var _ = require("underscore");
610
611 // Backbone.Model
612 // --------------
613
614 // Backbone **Models** are the basic data object in the framework --
615 // frequently representing a row in a table in a database on your server.
616 // A discrete chunk of data and a bunch of useful, related methods for
617 // performing computations and transformations on that data.
618
619 // Create a new model with the specified attributes. A client id (`cid`)
620 // is automatically generated and assigned for you.
621 var Model = function(attributes, options) {
622   var attrs = attributes || {};
623   options || (options = {});
624   this.cid = _.uniqueId('c');
625   this.attributes = {};
626   if (options.collection) this.collection = options.collection;
627   if (options.parse) attrs = this.parse(attrs, options) || {};
628   attrs = _.defaults({}, attrs, _.result(this, 'defaults'));
629   this.set(attrs, options);
630   this.changed = {};
631   this.initialize.apply(this, arguments);
632 };
633
634 // Attach all inheritable methods to the Model prototype.
635 _.extend(Model.prototype, Events, {
636
637   // A hash of attributes whose current and previous value differ.
638   changed: null,
639
640   // The value returned during the last failed validation.
641   validationError: null,
642
643     // The default name for the JSON `id` attribute is `"id"`. MongoDB and
644     // CouchDB users may want to set this to `"_id"`.
645   idAttribute: 'id',
646
647     // Initialize is an empty function by default. Override it with your own
648     // initialization logic.
649   initialize: function(){},
650
651     // Return a copy of the model's `attributes` object.
652   toJSON: function(options) {
653     return _.clone(this.attributes);
654   },
655
656     // Proxy `Backbone.sync` by default -- but override this if you need
657     // custom syncing semantics for *this* particular model.
658   sync: function() {
659     return Backbone.sync.apply(this, arguments);
660   },
661
662     // Get the value of an attribute.
663   get: function(attr) {
664     return this.attributes[attr];
665   },
666
667     // Get the HTML-escaped value of an attribute.
668   escape: function(attr) {
669     return _.escape(this.get(attr));
670   },
671
672     // Returns `true` if the attribute contains a value that is not null
673     // or undefined.
674   has: function(attr) {
675     return this.get(attr) != null;
676   },
677
678     // Set a hash of model attributes on the object, firing `"change"`. This is
679     // the core primitive operation of a model, updating the data and notifying
680     // anyone who needs to know about the change in state. The heart of the beast.
681   set: function(key, val, options) {
682     var attr, attrs, unset, changes, silent, changing, prev, current;
683     if (key == null) return this;
684
685     // Handle both `"key", value` and `{key: value}` -style arguments.
686     if (typeof key === 'object') {
687       attrs = key;
688       options = val;
689     } else {
690       (attrs = {})[key] = val;
691     }
692
693     options || (options = {});
694
695     // Run validation.
696     if (!this._validate(attrs, options)) return false;
697
698     // Extract attributes and options.
699     unset           = options.unset;
700     silent          = options.silent;
701     changes         = [];
702     changing        = this._changing;
703     this._changing  = true;
704
705     if (!changing) {
706       this._previousAttributes = _.clone(this.attributes);
707       this.changed = {};
708     }
709     current = this.attributes, prev = this._previousAttributes;
710
711     // Check for changes of `id`.
712     if (this.idAttribute in attrs) this.id = attrs[this.idAttribute];
713
714     // For each `set` attribute, update or delete the current value.
715     for (attr in attrs) {
716       val = attrs[attr];
717       if (!_.isEqual(current[attr], val)) changes.push(attr);
718       if (!_.isEqual(prev[attr], val)) {
719         this.changed[attr] = val;
720       } else {
721         delete this.changed[attr];
722       }
723       unset ? delete current[attr] : current[attr] = val;
724     }
725
726     // Trigger all relevant attribute changes.
727     if (!silent) {
728       if (changes.length) this._pending = options;
729       for (var i = 0, length = changes.length; i < length; i++) {
730         this.trigger('change:' + changes[i], this, current[changes[i]], options);
731       }
732     }
733
734     // You might be wondering why there's a `while` loop here. Changes can
735     // be recursively nested within `"change"` events.
736     if (changing) return this;
737     if (!silent) {
738       while (this._pending) {
739         options = this._pending;
740         this._pending = false;
741         this.trigger('change', this, options);
742       }
743     }
744     this._pending = false;
745     this._changing = false;
746     return this;
747   },
748
749     // Remove an attribute from the model, firing `"change"`. `unset` is a noop
750     // if the attribute doesn't exist.
751   unset: function(attr, options) {
752     return this.set(attr, void 0, _.extend({}, options, {unset: true}));
753   },
754
755     // Clear all attributes on the model, firing `"change"`.
756   clear: function(options) {
757     var attrs = {};
758     for (var key in this.attributes) attrs[key] = void 0;
759     return this.set(attrs, _.extend({}, options, {unset: true}));
760   },
761
762     // Determine if the model has changed since the last `"change"` event.
763     // If you specify an attribute name, determine if that attribute has changed.
764   hasChanged: function(attr) {
765     if (attr == null) return !_.isEmpty(this.changed);
766     return _.has(this.changed, attr);
767   },
768
769     // Return an object containing all the attributes that have changed, or
770     // false if there are no changed attributes. Useful for determining what
771     // parts of a view need to be updated and/or what attributes need to be
772     // persisted to the server. Unset attributes will be set to undefined.
773     // You can also pass an attributes object to diff against the model,
774     // determining if there *would be* a change.
775   changedAttributes: function(diff) {
776     if (!diff) return this.hasChanged() ? _.clone(this.changed) : false;
777     var val, changed = false;
778     var old = this._changing ? this._previousAttributes : this.attributes;
779     for (var attr in diff) {
780       if (_.isEqual(old[attr], (val = diff[attr]))) continue;
781       (changed || (changed = {}))[attr] = val;
782     }
783     return changed;
784   },
785
786     // Get the previous value of an attribute, recorded at the time the last
787     // `"change"` event was fired.
788   previous: function(attr) {
789     if (attr == null || !this._previousAttributes) return null;
790     return this._previousAttributes[attr];
791   },
792
793     // Get all of the attributes of the model at the time of the previous
794     // `"change"` event.
795   previousAttributes: function() {
796     return _.clone(this._previousAttributes);
797   },
798
799     // Fetch the model from the server. If the server's representation of the
800     // model differs from its current attributes, they will be overridden,
801     // triggering a `"change"` event.
802   fetch: function(options) {
803     options = options ? _.clone(options) : {};
804     if (options.parse === void 0) options.parse = true;
805     var model = this;
806     var success = options.success;
807     options.success = function(resp) {
808       if (!model.set(model.parse(resp, options), options)) return false;
809       if (success) success(model, resp, options);
810       model.trigger('sync', model, resp, options);
811     };
812     wrapError(this, options);
813     return this.sync('read', this, options);
814   },
815
816     // Set a hash of model attributes, and sync the model to the server.
817     // If the server returns an attributes hash that differs, the model's
818     // state will be `set` again.
819   save: function(key, val, options) {
820     var attrs, method, xhr, attributes = this.attributes;
821
822     // Handle both `"key", value` and `{key: value}` -style arguments.
823     if (key == null || typeof key === 'object') {
824       attrs = key;
825       options = val;
826     } else {
827       (attrs = {})[key] = val;
828     }
829
830     options = _.extend({validate: true}, options);
831
832     // If we're not waiting and attributes exist, save acts as
833     // `set(attr).save(null, opts)` with validation. Otherwise, check if
834     // the model will be valid when the attributes, if any, are set.
835     if (attrs && !options.wait) {
836       if (!this.set(attrs, options)) return false;
837     } else {
838       if (!this._validate(attrs, options)) return false;
839     }
840
841     // Set temporary attributes if `{wait: true}`.
842     if (attrs && options.wait) {
843       this.attributes = _.extend({}, attributes, attrs);
844     }
845
846     // After a successful server-side save, the client is (optionally)
847     // updated with the server-side state.
848     if (options.parse === void 0) options.parse = true;
849     var model = this;
850     var success = options.success;
851     options.success = function(resp) {
852       // Ensure attributes are restored during synchronous saves.
853       model.attributes = attributes;
854       var serverAttrs = model.parse(resp, options);
855       if (options.wait) serverAttrs = _.extend(attrs || {}, serverAttrs);
856       if (_.isObject(serverAttrs) && !model.set(serverAttrs, options)) {
857         return false;
858       }
859       if (success) success(model, resp, options);
860       model.trigger('sync', model, resp, options);
861     };
862     wrapError(this, options);
863
864     method = this.isNew() ? 'create' : (options.patch ? 'patch' : 'update');
865     if (method === 'patch' && !options.attrs) options.attrs = attrs;
866     xhr = this.sync(method, this, options);
867
868     // Restore attributes.
869     if (attrs && options.wait) this.attributes = attributes;
870
871     return xhr;
872   },
873
874     // Destroy this model on the server if it was already persisted.
875     // Optimistically removes the model from its collection, if it has one.
876     // If `wait: true` is passed, waits for the server to respond before removal.
877   destroy: function(options) {
878     options = options ? _.clone(options) : {};
879     var model = this;
880     var success = options.success;
881
882     var destroy = function() {
883       model.stopListening();
884       model.trigger('destroy', model, model.collection, options);
885     };
886
887     options.success = function(resp) {
888       if (options.wait || model.isNew()) destroy();
889       if (success) success(model, resp, options);
890       if (!model.isNew()) model.trigger('sync', model, resp, options);
891     };
892
893     if (this.isNew()) {
894       options.success();
895       return false;
896     }
897     wrapError(this, options);
898
899     var xhr = this.sync('delete', this, options);
900     if (!options.wait) destroy();
901     return xhr;
902   },
903
904     // Default URL for the model's representation on the server -- if you're
905     // using Backbone's restful methods, override this to change the endpoint
906     // that will be called.
907   url: function() {
908     var base =
909       _.result(this, 'urlRoot') ||
910       _.result(this.collection, 'url') ||
911       urlError();
912     if (this.isNew()) return base;
913     return base.replace(/([^\/])$/, '$1/') + encodeURIComponent(this.id);
914   },
915
916     // **parse** converts a response into the hash of attributes to be `set` on
917     // the model. The default implementation is just to pass the response along.
918   parse: function(resp, options) {
919     return resp;
920   },
921
922     // Create a new model with identical attributes to this one.
923   clone: function() {
924     return new this.constructor(this.attributes);
925   },
926
927     // A model is new if it has never been saved to the server, and lacks an id.
928   isNew: function() {
929     return !this.has(this.idAttribute);
930   },
931
932     // Check if the model is currently in a valid state.
933   isValid: function(options) {
934     return this._validate({}, _.extend(options || {}, { validate: true }));
935   },
936
937     // Run validation against the next complete set of model attributes,
938     // returning `true` if all is well. Otherwise, fire an `"invalid"` event.
939   _validate: function(attrs, options) {
940     if (!options.validate || !this.validate) return true;
941     attrs = _.extend({}, this.attributes, attrs);
942     var error = this.validationError = this.validate(attrs, options) || null;
943     if (!error) return true;
944     this.trigger('invalid', this, error, _.extend(options, {validationError: error}));
945     return false;
946   }
947
948 });
949
950 // Underscore methods that we want to implement on the Model.
951 var modelMethods = ['keys', 'values', 'pairs', 'invert', 'pick', 'omit', 'chain', 'isEmpty'];
952
953 // Mix in each Underscore method as a proxy to `Model#attributes`.
954 _.each(modelMethods, function(method) {
955   if (!_[method]) return;
956   Model.prototype[method] = function() {
957     var args = slice.call(arguments);
958     args.unshift(this.attributes);
959     return _[method].apply(_, args);
960   };
961 });
962
963 // setup inheritance
964 Model.extend = extend;
965 module.exports = Model;
966
967 },{"backbone-events-standalone":8,"backbone-extend-standalone":9,"underscore":59}],7:[function(require,module,exports){
968 /**
969  * Standalone extraction of Backbone.Events, no external dependency required.
970  * Degrades nicely when Backone/underscore are already available in the current
971  * global context.
972  *
973  * Note that docs suggest to use underscore's `_.extend()` method to add Events
974  * support to some given object. A `mixin()` method has been added to the Events
975  * prototype to avoid using underscore for that sole purpose:
976  *
977  *     var myEventEmitter = BackboneEvents.mixin({});
978  *
979  * Or for a function constructor:
980  *
981  *     function MyConstructor(){}
982  *     MyConstructor.prototype.foo = function(){}
983  *     BackboneEvents.mixin(MyConstructor.prototype);
984  *
985  * (c) 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
986  * (c) 2013 Nicolas Perriault
987  */
988 /* global exports:true, define, module */
989 (function() {
990   var root = this,
991       breaker = {},
992       nativeForEach = Array.prototype.forEach,
993       hasOwnProperty = Object.prototype.hasOwnProperty,
994       slice = Array.prototype.slice,
995       idCounter = 0;
996
997   // Returns a partial implementation matching the minimal API subset required
998   // by Backbone.Events
999   function miniscore() {
1000     return {
1001       keys: Object.keys || function (obj) {
1002         if (typeof obj !== "object" && typeof obj !== "function" || obj === null) {
1003           throw new TypeError("keys() called on a non-object");
1004         }
1005         var key, keys = [];
1006         for (key in obj) {
1007           if (obj.hasOwnProperty(key)) {
1008             keys[keys.length] = key;
1009           }
1010         }
1011         return keys;
1012       },
1013
1014       uniqueId: function(prefix) {
1015         var id = ++idCounter + '';
1016         return prefix ? prefix + id : id;
1017       },
1018
1019       has: function(obj, key) {
1020         return hasOwnProperty.call(obj, key);
1021       },
1022
1023       each: function(obj, iterator, context) {
1024         if (obj == null) return;
1025         if (nativeForEach && obj.forEach === nativeForEach) {
1026           obj.forEach(iterator, context);
1027         } else if (obj.length === +obj.length) {
1028           for (var i = 0, l = obj.length; i < l; i++) {
1029             if (iterator.call(context, obj[i], i, obj) === breaker) return;
1030           }
1031         } else {
1032           for (var key in obj) {
1033             if (this.has(obj, key)) {
1034               if (iterator.call(context, obj[key], key, obj) === breaker) return;
1035             }
1036           }
1037         }
1038       },
1039
1040       once: function(func) {
1041         var ran = false, memo;
1042         return function() {
1043           if (ran) return memo;
1044           ran = true;
1045           memo = func.apply(this, arguments);
1046           func = null;
1047           return memo;
1048         };
1049       }
1050     };
1051   }
1052
1053   var _ = miniscore(), Events;
1054
1055   // Backbone.Events
1056   // ---------------
1057
1058   // A module that can be mixed in to *any object* in order to provide it with
1059   // custom events. You may bind with `on` or remove with `off` callback
1060   // functions to an event; `trigger`-ing an event fires all callbacks in
1061   // succession.
1062   //
1063   //     var object = {};
1064   //     _.extend(object, Backbone.Events);
1065   //     object.on('expand', function(){ alert('expanded'); });
1066   //     object.trigger('expand');
1067   //
1068   Events = {
1069
1070     // Bind an event to a `callback` function. Passing `"all"` will bind
1071     // the callback to all events fired.
1072     on: function(name, callback, context) {
1073       if (!eventsApi(this, 'on', name, [callback, context]) || !callback) return this;
1074       this._events || (this._events = {});
1075       var events = this._events[name] || (this._events[name] = []);
1076       events.push({callback: callback, context: context, ctx: context || this});
1077       return this;
1078     },
1079
1080     // Bind an event to only be triggered a single time. After the first time
1081     // the callback is invoked, it will be removed.
1082     once: function(name, callback, context) {
1083       if (!eventsApi(this, 'once', name, [callback, context]) || !callback) return this;
1084       var self = this;
1085       var once = _.once(function() {
1086         self.off(name, once);
1087         callback.apply(this, arguments);
1088       });
1089       once._callback = callback;
1090       return this.on(name, once, context);
1091     },
1092
1093     // Remove one or many callbacks. If `context` is null, removes all
1094     // callbacks with that function. If `callback` is null, removes all
1095     // callbacks for the event. If `name` is null, removes all bound
1096     // callbacks for all events.
1097     off: function(name, callback, context) {
1098       var retain, ev, events, names, i, l, j, k;
1099       if (!this._events || !eventsApi(this, 'off', name, [callback, context])) return this;
1100       if (!name && !callback && !context) {
1101         this._events = {};
1102         return this;
1103       }
1104
1105       names = name ? [name] : _.keys(this._events);
1106       for (i = 0, l = names.length; i < l; i++) {
1107         name = names[i];
1108         if (events = this._events[name]) {
1109           this._events[name] = retain = [];
1110           if (callback || context) {
1111             for (j = 0, k = events.length; j < k; j++) {
1112               ev = events[j];
1113               if ((callback && callback !== ev.callback && callback !== ev.callback._callback) ||
1114                   (context && context !== ev.context)) {
1115                 retain.push(ev);
1116               }
1117             }
1118           }
1119           if (!retain.length) delete this._events[name];
1120         }
1121       }
1122
1123       return this;
1124     },
1125
1126     // Trigger one or many events, firing all bound callbacks. Callbacks are
1127     // passed the same arguments as `trigger` is, apart from the event name
1128     // (unless you're listening on `"all"`, which will cause your callback to
1129     // receive the true name of the event as the first argument).
1130     trigger: function(name) {
1131       if (!this._events) return this;
1132       var args = slice.call(arguments, 1);
1133       if (!eventsApi(this, 'trigger', name, args)) return this;
1134       var events = this._events[name];
1135       var allEvents = this._events.all;
1136       if (events) triggerEvents(events, args);
1137       if (allEvents) triggerEvents(allEvents, arguments);
1138       return this;
1139     },
1140
1141     // Tell this object to stop listening to either specific events ... or
1142     // to every object it's currently listening to.
1143     stopListening: function(obj, name, callback) {
1144       var listeners = this._listeners;
1145       if (!listeners) return this;
1146       var deleteListener = !name && !callback;
1147       if (typeof name === 'object') callback = this;
1148       if (obj) (listeners = {})[obj._listenerId] = obj;
1149       for (var id in listeners) {
1150         listeners[id].off(name, callback, this);
1151         if (deleteListener) delete this._listeners[id];
1152       }
1153       return this;
1154     }
1155
1156   };
1157
1158   // Regular expression used to split event strings.
1159   var eventSplitter = /\s+/;
1160
1161   // Implement fancy features of the Events API such as multiple event
1162   // names `"change blur"` and jQuery-style event maps `{change: action}`
1163   // in terms of the existing API.
1164   var eventsApi = function(obj, action, name, rest) {
1165     if (!name) return true;
1166
1167     // Handle event maps.
1168     if (typeof name === 'object') {
1169       for (var key in name) {
1170         obj[action].apply(obj, [key, name[key]].concat(rest));
1171       }
1172       return false;
1173     }
1174
1175     // Handle space separated event names.
1176     if (eventSplitter.test(name)) {
1177       var names = name.split(eventSplitter);
1178       for (var i = 0, l = names.length; i < l; i++) {
1179         obj[action].apply(obj, [names[i]].concat(rest));
1180       }
1181       return false;
1182     }
1183
1184     return true;
1185   };
1186
1187   // A difficult-to-believe, but optimized internal dispatch function for
1188   // triggering events. Tries to keep the usual cases speedy (most internal
1189   // Backbone events have 3 arguments).
1190   var triggerEvents = function(events, args) {
1191     var ev, i = -1, l = events.length, a1 = args[0], a2 = args[1], a3 = args[2];
1192     switch (args.length) {
1193       case 0: while (++i < l) (ev = events[i]).callback.call(ev.ctx); return;
1194       case 1: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1); return;
1195       case 2: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2); return;
1196       case 3: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2, a3); return;
1197       default: while (++i < l) (ev = events[i]).callback.apply(ev.ctx, args);
1198     }
1199   };
1200
1201   var listenMethods = {listenTo: 'on', listenToOnce: 'once'};
1202
1203   // Inversion-of-control versions of `on` and `once`. Tell *this* object to
1204   // listen to an event in another object ... keeping track of what it's
1205   // listening to.
1206   _.each(listenMethods, function(implementation, method) {
1207     Events[method] = function(obj, name, callback) {
1208       var listeners = this._listeners || (this._listeners = {});
1209       var id = obj._listenerId || (obj._listenerId = _.uniqueId('l'));
1210       listeners[id] = obj;
1211       if (typeof name === 'object') callback = this;
1212       obj[implementation](name, callback, this);
1213       return this;
1214     };
1215   });
1216
1217   // Aliases for backwards compatibility.
1218   Events.bind   = Events.on;
1219   Events.unbind = Events.off;
1220
1221   // Mixin utility
1222   Events.mixin = function(proto) {
1223     var exports = ['on', 'once', 'off', 'trigger', 'stopListening', 'listenTo',
1224                    'listenToOnce', 'bind', 'unbind'];
1225     _.each(exports, function(name) {
1226       proto[name] = this[name];
1227     }, this);
1228     return proto;
1229   };
1230
1231   // Export Events as BackboneEvents depending on current context
1232   if (typeof define === "function") {
1233     define(function() {
1234       return Events;
1235     });
1236   } else if (typeof exports !== 'undefined') {
1237     if (typeof module !== 'undefined' && module.exports) {
1238       exports = module.exports = Events;
1239     }
1240     exports.BackboneEvents = Events;
1241   } else {
1242     root.BackboneEvents = Events;
1243   }
1244 })(this);
1245
1246 },{}],8:[function(require,module,exports){
1247 module.exports = require('./backbone-events-standalone');
1248
1249 },{"./backbone-events-standalone":7}],9:[function(require,module,exports){
1250 (function (definition) {
1251   if (typeof exports === "object") {
1252     module.exports = definition();
1253   }
1254   else if (typeof define === 'function' && define.amd) {
1255     define(definition);
1256   }
1257   else {
1258     window.BackboneExtend = definition();
1259   }
1260 })(function () {
1261   "use strict";
1262   
1263   // mini-underscore
1264   var _ = {
1265     has: function (obj, key) {
1266       return Object.prototype.hasOwnProperty.call(obj, key);
1267     },
1268   
1269     extend: function(obj) {
1270       for (var i=1; i<arguments.length; ++i) {
1271         var source = arguments[i];
1272         if (source) {
1273           for (var prop in source) {
1274             obj[prop] = source[prop];
1275           }
1276         }
1277       }
1278       return obj;
1279     }
1280   };
1281
1282   /// Following code is pasted from Backbone.js ///
1283
1284   // Helper function to correctly set up the prototype chain, for subclasses.
1285   // Similar to `goog.inherits`, but uses a hash of prototype properties and
1286   // class properties to be extended.
1287   var extend = function(protoProps, staticProps) {
1288     var parent = this;
1289     var child;
1290
1291     // The constructor function for the new subclass is either defined by you
1292     // (the "constructor" property in your `extend` definition), or defaulted
1293     // by us to simply call the parent's constructor.
1294     if (protoProps && _.has(protoProps, 'constructor')) {
1295       child = protoProps.constructor;
1296     } else {
1297       child = function(){ return parent.apply(this, arguments); };
1298     }
1299
1300     // Add static properties to the constructor function, if supplied.
1301     _.extend(child, parent, staticProps);
1302
1303     // Set the prototype chain to inherit from `parent`, without calling
1304     // `parent`'s constructor function.
1305     var Surrogate = function(){ this.constructor = child; };
1306     Surrogate.prototype = parent.prototype;
1307     child.prototype = new Surrogate();
1308
1309     // Add prototype properties (instance properties) to the subclass,
1310     // if supplied.
1311     if (protoProps) _.extend(child.prototype, protoProps);
1312
1313     // Set a convenience property in case the parent's prototype is needed
1314     // later.
1315     child.__super__ = parent.prototype;
1316
1317     return child;
1318   };
1319
1320   // Expose the extend function
1321   return extend;
1322 });
1323
1324 },{}],10:[function(require,module,exports){
1325 // this is the extracted view model from backbone
1326 // note that we inject jbone as jquery replacment
1327 // (and underscore directly)
1328 //
1329 // Views are almost more convention than they are actual code.
1330 //  MVC pattern
1331 // Backbone.View
1332 // -------------
1333
1334 var _ = require("underscore");
1335 var Events = require("backbone-events-standalone");
1336 var extend = require("backbone-extend-standalone");
1337 var $ = require('jbone');
1338
1339 // Backbone Views are almost more convention than they are actual code. A View
1340 // is simply a JavaScript object that represents a logical chunk of UI in the
1341 // DOM. This might be a single item, an entire list, a sidebar or panel, or
1342 // even the surrounding frame which wraps your whole app. Defining a chunk of
1343 // UI as a **View** allows you to define your DOM events declaratively, without
1344 // having to worry about render order ... and makes it easy for the view to
1345 // react to specific changes in the state of your models.
1346
1347 // Creating a Backbone.View creates its initial element outside of the DOM,
1348 // if an existing element is not provided...
1349 var View =  function(options) {
1350   this.cid = _.uniqueId('view');
1351   options || (options = {});
1352   _.extend(this, _.pick(options, viewOptions));
1353   this._ensureElement();
1354   this.initialize.apply(this, arguments);
1355 };
1356
1357 // Cached regex to split keys for `delegate`.
1358 var delegateEventSplitter = /^(\S+)\s*(.*)$/;
1359
1360 // List of view options to be merged as properties.
1361 var viewOptions = ['model', 'collection', 'el', 'id', 'attributes', 'className', 'tagName', 'events'];
1362
1363 // Set up all inheritable **Backbone.View** properties and methods.
1364 _.extend(View.prototype, Events, {
1365
1366   // The default `tagName` of a View's element is `"div"`.
1367   tagName: 'div',
1368
1369   // jQuery delegate for element lookup, scoped to DOM elements within the
1370   // current view. This should be preferred to global lookups where possible.
1371   $: function(selector) {
1372     return this.$el.find(selector);
1373   },
1374
1375     // Initialize is an empty function by default. Override it with your own
1376     // initialization logic.
1377   initialize: function(){},
1378
1379     // **render** is the core function that your view should override, in order
1380     // to populate its element (`this.el`), with the appropriate HTML. The
1381     // convention is for **render** to always return `this`.
1382   render: function() {
1383     return this;
1384   },
1385
1386     // Remove this view by taking the element out of the DOM, and removing any
1387     // applicable Backbone.Events listeners.
1388   remove: function() {
1389     this._removeElement();
1390     this.stopListening();
1391     return this;
1392   },
1393
1394     // Remove this view's element from the document and all event listeners
1395     // attached to it. Exposed for subclasses using an alternative DOM
1396     // manipulation API.
1397   _removeElement: function() {
1398     this.$el.remove();
1399   },
1400
1401     // Change the view's element (`this.el` property) and re-delegate the
1402     // view's events on the new element.
1403   setElement: function(element) {
1404     this.undelegateEvents();
1405     this._setElement(element);
1406     this.delegateEvents();
1407     return this;
1408   },
1409
1410     // Creates the `this.el` and `this.$el` references for this view using the
1411     // given `el`. `el` can be a CSS selector or an HTML string, a jQuery
1412     // context or an element. Subclasses can override this to utilize an
1413     // alternative DOM manipulation API and are only required to set the
1414     // `this.el` property.
1415   _setElement: function(el) {
1416     this.$el = el instanceof $ ? el : $(el);
1417     this.el = this.$el[0];
1418   },
1419
1420     // Set callbacks, where `this.events` is a hash of
1421     //
1422     // *{"event selector": "callback"}*
1423     //
1424     //     {
1425     //       'mousedown .title':  'edit',
1426     //       'click .button':     'save',
1427     //       'click .open':       function(e) { ... }
1428     //     }
1429     //
1430     // pairs. Callbacks will be bound to the view, with `this` set properly.
1431     // Uses event delegation for efficiency.
1432     // Omitting the selector binds the event to `this.el`.
1433   delegateEvents: function(events) {
1434     if (!(events || (events = _.result(this, 'events')))) return this;
1435     this.undelegateEvents();
1436     for (var key in events) {
1437       var method = events[key];
1438       if (!_.isFunction(method)) method = this[events[key]];
1439       if (!method) continue;
1440       var match = key.match(delegateEventSplitter);
1441       this.delegate(match[1], match[2], _.bind(method, this));
1442     }
1443     return this;
1444   },
1445
1446     // Add a single event listener to the view's element (or a child element
1447     // using `selector`). This only works for delegate-able events: not `focus`,
1448     // `blur`, and not `change`, `submit`, and `reset` in Internet Explorer.
1449   delegate: function(eventName, selector, listener) {
1450     this.$el.on(eventName + '.delegateEvents' + this.cid, selector, listener);
1451   },
1452
1453     // Clears all callbacks previously bound to the view by `delegateEvents`.
1454     // You usually don't need to use this, but may wish to if you have multiple
1455     // Backbone views attached to the same DOM element.
1456   undelegateEvents: function() {
1457     if (this.$el) this.$el.off('.delegateEvents' + this.cid);
1458     return this;
1459   },
1460
1461     // A finer-grained `undelegateEvents` for removing a single delegated event.
1462     // `selector` and `listener` are both optional.
1463   undelegate: function(eventName, selector, listener) {
1464     this.$el.off(eventName + '.delegateEvents' + this.cid, selector, listener);
1465   },
1466
1467     // Produces a DOM element to be assigned to your view. Exposed for
1468     // subclasses using an alternative DOM manipulation API.
1469   _createElement: function(tagName) {
1470     return document.createElement(tagName);
1471   },
1472
1473     // Ensure that the View has a DOM element to render into.
1474     // If `this.el` is a string, pass it through `$()`, take the first
1475     // matching element, and re-assign it to `el`. Otherwise, create
1476     // an element from the `id`, `className` and `tagName` properties.
1477   _ensureElement: function() {
1478     if (!this.el) {
1479       var attrs = _.extend({}, _.result(this, 'attributes'));
1480       if (this.id) attrs.id = _.result(this, 'id');
1481       if (this.className) attrs['class'] = _.result(this, 'className');
1482       this.setElement(this._createElement(_.result(this, 'tagName')));
1483       this._setAttributes(attrs);
1484     } else {
1485       this.setElement(_.result(this, 'el'));
1486     }
1487   },
1488
1489     // Set attributes from a hash on this view's element.  Exposed for
1490     // subclasses using an alternative DOM manipulation API.
1491   _setAttributes: function(attributes) {
1492     this.$el.attr(attributes);
1493   }
1494
1495 });
1496
1497 // setup inheritance
1498 View.extend = extend;
1499 module.exports = View;
1500
1501 },{"backbone-events-standalone":12,"backbone-extend-standalone":13,"jbone":50,"underscore":59}],11:[function(require,module,exports){
1502 module.exports=require(7)
1503 },{"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-events-standalone/backbone-events-standalone.js":7}],12:[function(require,module,exports){
1504 module.exports=require(8)
1505 },{"./backbone-events-standalone":11,"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-events-standalone/index.js":8}],13:[function(require,module,exports){
1506 module.exports=require(9)
1507 },{"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-extend-standalone/backbone-extend-standalone.js":9}],14:[function(require,module,exports){
1508 var events = require("backbone-events-standalone");
1509
1510 events.onAll = function(callback,context){
1511   this.on("all", callback,context);
1512   return this;
1513 };
1514
1515 // Mixin utility
1516 events.oldMixin = events.mixin;
1517 events.mixin = function(proto) {
1518   events.oldMixin(proto);
1519   // add custom onAll
1520   var exports = ['onAll'];
1521   for(var i=0; i < exports.length;i++){
1522     var name = exports[i];
1523     proto[name] = this[name];
1524   }
1525   return proto;
1526 };
1527
1528 module.exports = events;
1529
1530 },{"backbone-events-standalone":16}],15:[function(require,module,exports){
1531 module.exports=require(7)
1532 },{"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-events-standalone/backbone-events-standalone.js":7}],16:[function(require,module,exports){
1533 module.exports=require(8)
1534 },{"./backbone-events-standalone":15,"/home/travis/build/greenify/biojs-vis-msa/node_modules/backbone-thin/node_modules/backbone-events-standalone/index.js":8}],17:[function(require,module,exports){
1535 // Generated by CoffeeScript 1.8.0
1536 var GenericReader, xhr;
1537
1538 xhr = require('nets');
1539
1540 module.exports = GenericReader = (function() {
1541   function GenericReader() {}
1542
1543   GenericReader.read = function(url, callback) {
1544     var onret;
1545     onret = (function(_this) {
1546       return function(err, response, text) {
1547         return _this._onRetrieval(text, callback);
1548       };
1549     })(this);
1550     return xhr(url, onret);
1551   };
1552
1553   GenericReader._onRetrieval = function(text, callback) {
1554     var rText;
1555     rText = this.parse(text);
1556     return callback(rText);
1557   };
1558
1559   return GenericReader;
1560
1561 })();
1562
1563 },{"nets":undefined}],18:[function(require,module,exports){
1564 // Generated by CoffeeScript 1.8.0
1565 var Seq;
1566
1567 module.exports = Seq = (function() {
1568   function Seq(seq, name, id) {
1569     var meta;
1570     this.seq = seq;
1571     this.name = name;
1572     this.id = id;
1573     meta = {};
1574   }
1575
1576   return Seq;
1577
1578 })();
1579
1580 },{}],19:[function(require,module,exports){
1581 // Generated by CoffeeScript 1.8.0
1582 var strings;
1583
1584 strings = {
1585   contains: function(text, search) {
1586     return ''.indexOf.call(text, search, 0) !== -1;
1587   }
1588 };
1589
1590 module.exports = strings;
1591
1592 },{}],20:[function(require,module,exports){
1593 module.exports=require(17)
1594 },{"/home/travis/build/greenify/biojs-vis-msa/node_modules/biojs-io-clustal/lib/generic_reader.js":17,"nets":undefined}],21:[function(require,module,exports){
1595 // Generated by CoffeeScript 1.8.0
1596 var Fasta, GenericReader, Seq, Str,
1597   __hasProp = {}.hasOwnProperty,
1598   __extends = 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; };
1599
1600 Str = require("./strings");
1601
1602 GenericReader = require("./generic_reader");
1603
1604 Seq = require("biojs-model").seq;
1605
1606 module.exports = Fasta = (function(_super) {
1607   __extends(Fasta, _super);
1608
1609   function Fasta() {
1610     return Fasta.__super__.constructor.apply(this, arguments);
1611   }
1612
1613   Fasta.parse = function(text) {
1614     var currentSeq, database, databaseID, identifiers, k, label, line, seqs, _i, _len;
1615     seqs = [];
1616     if (Object.prototype.toString.call(text) !== '[object Array]') {
1617       text = text.split("\n");
1618     }
1619     for (_i = 0, _len = text.length; _i < _len; _i++) {
1620       line = text[_i];
1621       if (line[0] === ">" || line[0] === ";") {
1622         label = line.slice(1);
1623         currentSeq = new Seq("", label, seqs.length);
1624         seqs.push(currentSeq);
1625         if (Str.contains("|", line)) {
1626           identifiers = label.split("|");
1627           k = 1;
1628           while (k < identifiers.length) {
1629             database = identifiers[k];
1630             databaseID = identifiers[k + 1];
1631             currentSeq.meta[database] = databaseID;
1632             k += 2;
1633           }
1634           currentSeq.name = identifiers[identifiers.length - 1];
1635         }
1636       } else {
1637         currentSeq.seq += line;
1638       }
1639     }
1640     return seqs;
1641   };
1642
1643   return Fasta;
1644
1645 })(GenericReader);
1646
1647 },{"./generic_reader":20,"./strings":22,"biojs-model":25}],22:[function(require,module,exports){
1648 module.exports=require(19)
1649 },{"/home/travis/build/greenify/biojs-vis-msa/node_modules/biojs-io-clustal/lib/strings.js":19}],23:[function(require,module,exports){
1650 // Generated by CoffeeScript 1.8.0
1651 var Utils;
1652
1653 Utils = {};
1654
1655 Utils.splitNChars = function(txt, num) {
1656   var i, result, _i, _ref;
1657   result = [];
1658   for (i = _i = 0, _ref = txt.length - 1; num > 0 ? _i <= _ref : _i >= _ref; i = _i += num) {
1659     result.push(txt.substr(i, num));
1660   }
1661   return result;
1662 };
1663
1664 module.exports = Utils;
1665
1666 },{}],24:[function(require,module,exports){
1667 // Generated by CoffeeScript 1.8.0
1668 var FastaExporter, Utils;
1669
1670 Utils = require("./utils");
1671
1672 module.exports = FastaExporter = (function() {
1673   function FastaExporter() {}
1674
1675   FastaExporter["export"] = function(seqs, access) {
1676     var seq, text, _i, _len;
1677     text = "";
1678     for (_i = 0, _len = seqs.length; _i < _len; _i++) {
1679       seq = seqs[_i];
1680       if (access != null) {
1681         seq = access(seq);
1682       }
1683       text += ">" + seq.name + "\n";
1684       text += (Utils.splitNChars(seq.seq, 80)).join("\n");
1685       text += "\n";
1686     }
1687     return text;
1688   };
1689
1690   return FastaExporter;
1691
1692 })();
1693
1694 },{"./utils":23}],25:[function(require,module,exports){
1695 module.exports.seq = require("./seq");
1696
1697 },{"./seq":26}],26:[function(require,module,exports){
1698 module.exports = function(seq, name, id) {
1699     this.seq = seq;
1700     this.name = name;
1701     this.id = id;
1702     this.meta = {};
1703 };
1704
1705 },{}],27:[function(require,module,exports){
1706 module.exports=require(25)
1707 },{"./seq":28,"/home/travis/build/greenify/biojs-vis-msa/node_modules/biojs-io-fasta/node_modules/biojs-model/src/index.js":25}],28:[function(require,module,exports){
1708 module.exports=require(26)
1709 },{"/home/travis/build/greenify/biojs-vis-msa/node_modules/biojs-io-fasta/node_modules/biojs-model/src/seq.js":26}],29:[function(require,module,exports){
1710 module.exports = require('./src/index.js')
1711
1712 },{"./src/index.js":36}],30:[function(require,module,exports){
1713 module.exports = {
1714   A: "#00a35c",
1715   R: "#00fc03",
1716   N: "#00eb14",
1717   D: "#00eb14",
1718   C: "#0000ff",
1719   Q: "#00f10e",
1720   E: "#00f10e",
1721   G: "#009d62",
1722   H: "#00d52a",
1723   I: "#0054ab",
1724   L: "#007b84",
1725   K: "#00ff00",
1726   M: "#009768",
1727   F: "#008778",
1728   P: "#00e01f",
1729   S: "#00d52a",
1730   T: "#00db24",
1731   W: "#00a857",
1732   Y: "#00e619",
1733   V: "#005fa0",
1734   B: "#00eb14",
1735   X: "#00b649",
1736   Z: "#00f10e"
1737 };
1738
1739 },{}],31:[function(require,module,exports){
1740 module.exports = {
1741   A: "#BBBBBB",
1742   B: "grey",
1743   C: "yellow",
1744   D: "red",
1745   E: "red",
1746   F: "magenta",
1747   G: "brown",
1748   H: "#00FFFF",
1749   I: "#BBBBBB",
1750   J: "#fff",
1751   K: "#00FFFF",
1752   L: "#BBBBBB",
1753   M: "#BBBBBB",
1754   N: "green",
1755   O: "#fff",
1756   P: "brown",
1757   Q: "green",
1758   R: "#00FFFF",
1759   S: "green",
1760   T: "green",
1761   U: "#fff",
1762   V: "#BBBBBB",
1763   W: "magenta",
1764   X: "grey",
1765   Y: "magenta",
1766   Z: "grey",
1767   Gap: "grey"
1768 };
1769
1770 },{}],32:[function(require,module,exports){
1771 module.exports = {
1772   A: "orange",
1773   B: "#fff",
1774   C: "green",
1775   D: "red",
1776   E: "red",
1777   F: "blue",
1778   G: "orange",
1779   H: "red",
1780   I: "green",
1781   J: "#fff",
1782   K: "red",
1783   L: "green",
1784   M: "green",
1785   N: "#fff",
1786   O: "#fff",
1787   P: "orange",
1788   Q: "#fff",
1789   R: "red",
1790   S: "orange",
1791   T: "orange",
1792   U: "#fff",
1793   V: "green",
1794   W: "blue",
1795   X: "#fff",
1796   Y: "blue",
1797   Z: "#fff",
1798   Gap: "#fff"
1799 };
1800
1801 },{}],33:[function(require,module,exports){
1802 module.exports = {
1803   A: "#80a0f0",
1804   R: "#f01505",
1805   N: "#00ff00",
1806   D: "#c048c0",
1807   C: "#f08080",
1808   Q: "#00ff00",
1809   E: "#c048c0",
1810   G: "#f09048",
1811   H: "#15a4a4",
1812   I: "#80a0f0",
1813   L: "#80a0f0",
1814   K: "#f01505",
1815   M: "#80a0f0",
1816   F: "#80a0f0",
1817   P: "#ffff00",
1818   S: "#00ff00",
1819   T: "#00ff00",
1820   W: "#80a0f0",
1821   Y: "#15a4a4",
1822   V: "#80a0f0",
1823   B: "#fff",
1824   X: "#fff",
1825   Z: "#fff"
1826 };
1827
1828 },{}],34:[function(require,module,exports){
1829 module.exports = {
1830   A: "#e718e7",
1831   R: "#6f906f",
1832   N: "#1be41b",
1833   D: "#778877",
1834   C: "#23dc23",
1835   Q: "#926d92",
1836   E: "#ff00ff",
1837   G: "#00ff00",
1838   H: "#758a75",
1839   I: "#8a758a",
1840   L: "#ae51ae",
1841   K: "#a05fa0",
1842   M: "#ef10ef",
1843   F: "#986798",
1844   P: "#00ff00",
1845   S: "#36c936",
1846   T: "#47b847",
1847   W: "#8a758a",
1848   Y: "#21de21",
1849   V: "#857a85",
1850   B: "#49b649",
1851   X: "#758a75",
1852   Z: "#c936c9"
1853 };
1854
1855 },{}],35:[function(require,module,exports){
1856 module.exports = {
1857   A: "#ad0052",
1858   B: "#0c00f3",
1859   C: "#c2003d",
1860   D: "#0c00f3",
1861   E: "#0c00f3",
1862   F: "#cb0034",
1863   G: "#6a0095",
1864   H: "#1500ea",
1865   I: "#ff0000",
1866   J: "#fff",
1867   K: "#0000ff",
1868   L: "#ea0015",
1869   M: "#b0004f",
1870   N: "#0c00f3",
1871   O: "#fff",
1872   P: "#4600b9",
1873   Q: "#0c00f3",
1874   R: "#0000ff",
1875   S: "#5e00a1",
1876   T: "#61009e",
1877   U: "#fff",
1878   V: "#f60009",
1879   W: "#5b00a4",
1880   X: "#680097",
1881   Y: "#4f00b0",
1882   Z: "#0c00f3"
1883 };
1884
1885 },{}],36:[function(require,module,exports){
1886 module.exports.selector = require("./selector");
1887
1888 // basics
1889 module.exports.taylor = require("./taylor");
1890 module.exports.zappo= require("./zappo");
1891 module.exports.hydro= require("./hydrophobicity");
1892
1893 module.exports.clustal = require("./clustal");
1894 module.exports.clustal2 = require("./clustal2");
1895
1896 module.exports.curied = require("./buried");
1897 module.exports.cinema = require("./cinema");
1898 module.exports.nucleotide  = require("./nucleotide");
1899 module.exports.helix  = require("./helix");
1900 module.exports.lesk  = require("./lesk");
1901 module.exports.mae = require("./mae");
1902 module.exports.purine = require("./purine");
1903 module.exports.strand = require("./strand");
1904 module.exports.turn = require("./turn");
1905
1906 },{"./buried":30,"./cinema":31,"./clustal":32,"./clustal2":33,"./helix":34,"./hydrophobicity":35,"./lesk":37,"./mae":38,"./nucleotide":39,"./purine":40,"./selector":41,"./strand":42,"./taylor":43,"./turn":44,"./zappo":45}],37:[function(require,module,exports){
1907 module.exports = {
1908   A: " orange",
1909   B: " #fff",
1910   C: " green",
1911   D: " red",
1912   E: " red",
1913   F: " green",
1914   G: " orange",
1915   H: " magenta",
1916   I: " green",
1917   J: " #fff",
1918   K: " red",
1919   L: " green",
1920   M: " green",
1921   N: " magenta",
1922   O: " #fff",
1923   P: " green",
1924   Q: " magenta",
1925   R: " red",
1926   S: " orange",
1927   T: " orange",
1928   U: " #fff",
1929   V: " green",
1930   W: " green",
1931   X: " #fff",
1932   Y: " green",
1933   Z: " #fff",
1934   Gap: " #fff"
1935 };
1936
1937 },{}],38:[function(require,module,exports){
1938 module.exports = {
1939   A: " #77dd88",
1940   B: " #fff",
1941   C: " #99ee66",
1942   D: " #55bb33",
1943   E: " #55bb33",
1944   F: " #9999ff",
1945   G: " #77dd88",
1946   H: " #5555ff",
1947   I: " #66bbff",
1948   J: " #fff",
1949   K: " #ffcc77",
1950   L: " #66bbff",
1951   M: " #66bbff",
1952   N: " #55bb33",
1953   O: " #fff",
1954   P: " #eeaaaa",
1955   Q: " #55bb33",
1956   R: " #ffcc77",
1957   S: " #ff4455",
1958   T: " #ff4455",
1959   U: " #fff",
1960   V: " #66bbff",
1961   W: " #9999ff",
1962   X: " #fff",
1963   Y: " #9999ff",
1964   Z: " #fff",
1965   Gap: " #fff"
1966 };
1967
1968 },{}],39:[function(require,module,exports){
1969 module.exports = {
1970   A: " #64F73F",
1971   C: " #FFB340",
1972   G: " #EB413C",
1973   T: " #3C88EE",
1974   U: " #3C88EE"
1975 };
1976
1977 },{}],40:[function(require,module,exports){
1978 module.exports = {
1979   A: " #FF83FA",
1980   C: " #40E0D0",
1981   G: " #FF83FA",
1982   R: " #FF83FA",
1983   T: " #40E0D0",
1984   U: " #40E0D0",
1985   Y: " #40E0D0"
1986 };
1987
1988 },{}],41:[function(require,module,exports){
1989 var Buried = require("./buried");
1990 var Cinema = require("./cinema");
1991 var Clustal = require("./clustal");
1992 var Clustal2 = require("./clustal2");
1993 var Helix = require("./helix");
1994 var Hydro = require("./hydrophobicity");
1995 var Lesk = require("./lesk");
1996 var Mae = require("./mae");
1997 var Nucleotide = require("./nucleotide");
1998 var Purine = require("./purine");
1999 var Strand = require("./strand");
2000 var Taylor = require("./taylor");
2001 var Turn = require("./turn");
2002 var Zappo = require("./zappo");
2003
2004 module.exports = Colors = {
2005   mapping: {
2006     buried: Buried,
2007     buried_index: Buried,
2008     cinema: Cinema,
2009     clustal2: Clustal2,
2010     clustal: Clustal,
2011     helix: Helix,
2012     helix_propensity: Helix,
2013     hydro: Hydro,
2014     lesk: Lesk,
2015     mae: Mae,
2016     nucleotide: Nucleotide,
2017     purine: Purine,
2018     purine_pyrimidine: Purine,
2019     strand: Strand,
2020     strand_propensity: Strand,
2021     taylor: Taylor,
2022     turn: Turn,
2023     turn_propensity: Turn,
2024     zappo: Zappo,
2025   },
2026   getColor: function(scheme) {
2027     var color = Colors.mapping[scheme];
2028     if (color === undefined) {
2029       color = {};
2030     }
2031     return color;
2032   }
2033 };
2034
2035 },{"./buried":30,"./cinema":31,"./clustal":32,"./clustal2":33,"./helix":34,"./hydrophobicity":35,"./lesk":37,"./mae":38,"./nucleotide":39,"./purine":40,"./strand":42,"./taylor":43,"./turn":44,"./zappo":45}],42:[function(require,module,exports){
2036 module.exports = {
2037   A: "#5858a7",
2038   R: "#6b6b94",
2039   N: "#64649b",
2040   D: "#2121de",
2041   C: "#9d9d62",
2042   Q: "#8c8c73",
2043   E: "#0000ff",
2044   G: "#4949b6",
2045   H: "#60609f",
2046   I: "#ecec13",
2047   L: "#b2b24d",
2048   K: "#4747b8",
2049   M: "#82827d",
2050   F: "#c2c23d",
2051   P: "#2323dc",
2052   S: "#4949b6",
2053   T: "#9d9d62",
2054   W: "#c0c03f",
2055   Y: "#d3d32c",
2056   V: "#ffff00",
2057   B: "#4343bc",
2058   X: "#797986",
2059   Z: "#4747b8"
2060 };
2061
2062 },{}],43:[function(require,module,exports){
2063 module.exports = {
2064   A: "#ccff00",
2065   R: "#0000ff",
2066   N: "#cc00ff",
2067   D: "#ff0000",
2068   C: "#ffff00",
2069   Q: "#ff00cc",
2070   E: "#ff0066",
2071   G: "#ff9900",
2072   H: "#0066ff",
2073   I: "#66ff00",
2074   L: "#33ff00",
2075   K: "#6600ff",
2076   M: "#00ff00",
2077   F: "#00ff66",
2078   P: "#ffcc00",
2079   S: "#ff3300",
2080   T: "#ff6600",
2081   W: "#00ccff",
2082   Y: "#00ffcc",
2083   V: "#99ff00",
2084   B: "#fff",
2085   X: "#fff",
2086   Z: "#fff"
2087 };
2088
2089 },{}],44:[function(require,module,exports){
2090 module.exports = {
2091   A: "#2cd3d3",
2092   R: "#708f8f",
2093   N: "#ff0000",
2094   D: "#e81717",
2095   C: "#a85757",
2096   Q: "#3fc0c0",
2097   E: "#778888",
2098   G: "#ff0000",
2099   H: "#708f8f",
2100   I: "#00ffff",
2101   L: "#1ce3e3",
2102   K: "#7e8181",
2103   M: "#1ee1e1",
2104   F: "#1ee1e1",
2105   P: "#f60909",
2106   S: "#e11e1e",
2107   T: "#738c8c",
2108   W: "#738c8c",
2109   Y: "#9d6262",
2110   V: "#07f8f8",
2111   B: "#f30c0c",
2112   X: "#7c8383",
2113   Z: "#5ba4a4"
2114 };
2115
2116 },{}],45:[function(require,module,exports){
2117 module.exports = {
2118   A: "#ffafaf",
2119   R: "#6464ff",
2120   N: "#00ff00",
2121   D: "#ff0000",
2122   C: "#ffff00",
2123   Q: "#00ff00",
2124   E: "#ff0000",
2125   G: "#ff00ff",
2126   H: "#6464ff",
2127   I: "#ffafaf",
2128   L: "#ffafaf",
2129   K: "#6464ff",
2130   M: "#ffafaf",
2131   F: "#ffc800",
2132   P: "#ff00ff",
2133   S: "#00ff00",
2134   T: "#00ff00",
2135   W: "#ffc800",
2136   Y: "#ffc800",
2137   V: "#ffafaf",
2138   B: "#fff",
2139   X: "#fff",
2140   Z: "#fff"
2141 };
2142
2143 },{}],46:[function(require,module,exports){
2144 /*
2145  * JavaScript Canvas to Blob 2.0.5
2146  * https://github.com/blueimp/JavaScript-Canvas-to-Blob
2147  *
2148  * Copyright 2012, Sebastian Tschan
2149  * https://blueimp.net
2150  *
2151  * Licensed under the MIT license:
2152  * http://www.opensource.org/licenses/MIT
2153  *
2154  * Based on stackoverflow user Stoive's code snippet:
2155  * http://stackoverflow.com/q/4998908
2156  */
2157 var CanvasPrototype = window.HTMLCanvasElement &&
2158 window.HTMLCanvasElement.prototype,
2159   hasBlobConstructor = window.Blob && (function () {
2160     try {
2161       return Boolean(new Blob());
2162     } catch (e) {
2163       return false;
2164     }
2165   }()),
2166   hasArrayBufferViewSupport = hasBlobConstructor && window.Uint8Array &&
2167   (function () {
2168     try {
2169       return new Blob([new Uint8Array(100)]).size === 100;
2170     } catch (e) {
2171       return false;
2172     }
2173   }()),
2174   BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder ||
2175   window.MozBlobBuilder || window.MSBlobBuilder,
2176   dataURLtoBlob = (hasBlobConstructor || BlobBuilder) && window.atob &&
2177   window.ArrayBuffer && window.Uint8Array && function (dataURI) {
2178     var byteString,
2179     arrayBuffer,
2180     intArray,
2181       i,
2182       mimeString,
2183         bb;
2184     if (dataURI.split(',')[0].indexOf('base64') >= 0) {
2185       // Convert base64 to raw binary data held in a string:
2186       byteString = atob(dataURI.split(',')[1]);
2187     } else {
2188       // Convert base64/URLEncoded data component to raw binary data:
2189       byteString = decodeURIComponent(dataURI.split(',')[1]);
2190     }
2191     // Write the bytes of the string to an ArrayBuffer:
2192     arrayBuffer = new ArrayBuffer(byteString.length);
2193     intArray = new Uint8Array(arrayBuffer);
2194     for (i = 0; i < byteString.length; i += 1) {
2195       intArray[i] = byteString.charCodeAt(i);
2196     }
2197     // Separate out the mime component:
2198     mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0];
2199     // Write the ArrayBuffer (or ArrayBufferView) to a blob:
2200     if (hasBlobConstructor) {
2201       return new Blob(
2202           [hasArrayBufferViewSupport ? intArray : arrayBuffer],
2203           {type: mimeString}
2204           );
2205     }
2206     bb = new BlobBuilder();
2207     bb.append(arrayBuffer);
2208     return bb.getBlob(mimeString);
2209   };
2210 if (window.HTMLCanvasElement && !CanvasPrototype.toBlob) {
2211   if (CanvasPrototype.mozGetAsFile) {
2212     CanvasPrototype.toBlob = function (callback, type, quality) {
2213       if (quality && CanvasPrototype.toDataURL && dataURLtoBlob) {
2214         callback(dataURLtoBlob(this.toDataURL(type, quality)));
2215       } else {
2216         callback(this.mozGetAsFile('blob', type));
2217       }
2218     };
2219   } else if (CanvasPrototype.toDataURL && dataURLtoBlob) {
2220     CanvasPrototype.toBlob = function (callback, type, quality) {
2221       callback(dataURLtoBlob(this.toDataURL(type, quality)));
2222     };
2223   }
2224 }
2225
2226 module.exports = dataURLtoBlob;
2227
2228 },{}],47:[function(require,module,exports){
2229 /* FileSaver.js
2230  *  A saveAs() FileSaver implementation.
2231  *  2014-05-27
2232  *
2233  *  By Eli Grey, http://eligrey.com
2234  *  License: X11/MIT
2235  *    See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md
2236  */
2237
2238 /*global self */
2239 /*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */
2240
2241 /*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
2242
2243 var saveAs = saveAs
2244   // IE 10+ (native saveAs)
2245   || (typeof navigator !== "undefined" &&
2246       navigator.msSaveOrOpenBlob && navigator.msSaveOrOpenBlob.bind(navigator))
2247   // Everyone else
2248   || (function(view) {
2249         "use strict";
2250         // IE <10 is explicitly unsupported
2251         if (typeof navigator !== "undefined" &&
2252             /MSIE [1-9]\./.test(navigator.userAgent)) {
2253                 return;
2254         }
2255         var
2256                   doc = view.document
2257                   // only get URL when necessary in case Blob.js hasn't overridden it yet
2258                 , get_URL = function() {
2259                         return view.URL || view.webkitURL || view;
2260                 }
2261                 , save_link = doc.createElementNS("http://www.w3.org/1999/xhtml", "a")
2262                 , can_use_save_link = !view.externalHost && "download" in save_link
2263                 , click = function(node) {
2264                         var event = doc.createEvent("MouseEvents");
2265                         event.initMouseEvent(
2266                                 "click", true, false, view, 0, 0, 0, 0, 0
2267                                 , false, false, false, false, 0, null
2268                         );
2269                         node.dispatchEvent(event);
2270                 }
2271                 , webkit_req_fs = view.webkitRequestFileSystem
2272                 , req_fs = view.requestFileSystem || webkit_req_fs || view.mozRequestFileSystem
2273                 , throw_outside = function(ex) {
2274                         (view.setImmediate || view.setTimeout)(function() {
2275                                 throw ex;
2276                         }, 0);
2277                 }
2278                 , force_saveable_type = "application/octet-stream"
2279                 , fs_min_size = 0
2280                 , deletion_queue = []
2281                 , process_deletion_queue = function() {
2282                         var i = deletion_queue.length;
2283                         while (i--) {
2284                                 var file = deletion_queue[i];
2285                                 if (typeof file === "string") { // file is an object URL
2286                                         get_URL().revokeObjectURL(file);
2287                                 } else { // file is a File
2288                                         file.remove();
2289                                 }
2290                         }
2291                         deletion_queue.length = 0; // clear queue
2292                 }
2293                 , dispatch = function(filesaver, event_types, event) {
2294                         event_types = [].concat(event_types);
2295                         var i = event_types.length;
2296                         while (i--) {
2297                                 var listener = filesaver["on" + event_types[i]];
2298                                 if (typeof listener === "function") {
2299                                         try {
2300                                                 listener.call(filesaver, event || filesaver);
2301                                         } catch (ex) {
2302                                                 throw_outside(ex);
2303                                         }
2304                                 }
2305                         }
2306                 }
2307                 , FileSaver = function(blob, name) {
2308                         // First try a.download, then web filesystem, then object URLs
2309                         var
2310                                   filesaver = this
2311                                 , type = blob.type
2312                                 , blob_changed = false
2313                                 , object_url
2314                                 , target_view
2315                                 , get_object_url = function() {
2316                                         var object_url = get_URL().createObjectURL(blob);
2317                                         deletion_queue.push(object_url);
2318                                         return object_url;
2319                                 }
2320                                 , dispatch_all = function() {
2321                                         dispatch(filesaver, "writestart progress write writeend".split(" "));
2322                                 }
2323                                 // on any filesys errors revert to saving with object URLs
2324                                 , fs_error = function() {
2325                                         // don't create more object URLs than needed
2326                                         if (blob_changed || !object_url) {
2327                                                 object_url = get_object_url(blob);
2328                                         }
2329                                         if (target_view) {
2330                                                 target_view.location.href = object_url;
2331                                         } else {
2332                                                 window.open(object_url, "_blank");
2333                                         }
2334                                         filesaver.readyState = filesaver.DONE;
2335                                         dispatch_all();
2336                                 }
2337                                 , abortable = function(func) {
2338                                         return function() {
2339                                                 if (filesaver.readyState !== filesaver.DONE) {
2340                                                         return func.apply(this, arguments);
2341                                                 }
2342                                         };
2343                                 }
2344                                 , create_if_not_found = {create: true, exclusive: false}
2345                                 , slice
2346                         ;
2347                         filesaver.readyState = filesaver.INIT;
2348                         if (!name) {
2349                                 name = "download";
2350                         }
2351                         if (can_use_save_link) {
2352                                 object_url = get_object_url(blob);
2353                                 save_link.href = object_url;
2354                                 save_link.download = name;
2355                                 click(save_link);
2356                                 filesaver.readyState = filesaver.DONE;
2357                                 dispatch_all();
2358                                 return;
2359                         }
2360                         // Object and web filesystem URLs have a problem saving in Google Chrome when
2361                         // viewed in a tab, so I force save with application/octet-stream
2362                         // http://code.google.com/p/chromium/issues/detail?id=91158
2363                         if (view.chrome && type && type !== force_saveable_type) {
2364                                 slice = blob.slice || blob.webkitSlice;
2365                                 blob = slice.call(blob, 0, blob.size, force_saveable_type);
2366                                 blob_changed = true;
2367                         }
2368                         // Since I can't be sure that the guessed media type will trigger a download
2369                         // in WebKit, I append .download to the filename.
2370                         // https://bugs.webkit.org/show_bug.cgi?id=65440
2371                         if (webkit_req_fs && name !== "download") {
2372                                 name += ".download";
2373                         }
2374                         if (type === force_saveable_type || webkit_req_fs) {
2375                                 target_view = view;
2376                         }
2377                         if (!req_fs) {
2378                                 fs_error();
2379                                 return;
2380                         }
2381                         fs_min_size += blob.size;
2382                         req_fs(view.TEMPORARY, fs_min_size, abortable(function(fs) {
2383                                 fs.root.getDirectory("saved", create_if_not_found, abortable(function(dir) {
2384                                         var save = function() {
2385                                                 dir.getFile(name, create_if_not_found, abortable(function(file) {
2386                                                         file.createWriter(abortable(function(writer) {
2387                                                                 writer.onwriteend = function(event) {
2388                                                                         target_view.location.href = file.toURL();
2389                                                                         deletion_queue.push(file);
2390                                                                         filesaver.readyState = filesaver.DONE;
2391                                                                         dispatch(filesaver, "writeend", event);
2392                                                                 };
2393                                                                 writer.onerror = function() {
2394                                                                         var error = writer.error;
2395                                                                         if (error.code !== error.ABORT_ERR) {
2396                                                                                 fs_error();
2397                                                                         }
2398                                                                 };
2399                                                                 "writestart progress write abort".split(" ").forEach(function(event) {
2400                                                                         writer["on" + event] = filesaver["on" + event];
2401                                                                 });
2402                                                                 writer.write(blob);
2403                                                                 filesaver.abort = function() {
2404                                                                         writer.abort();
2405                                                                         filesaver.readyState = filesaver.DONE;
2406                                                                 };
2407                                                                 filesaver.readyState = filesaver.WRITING;
2408                                                         }), fs_error);
2409                                                 }), fs_error);
2410                                         };
2411                                         dir.getFile(name, {create: false}, abortable(function(file) {
2412                                                 // delete file if it already exists
2413                                                 file.remove();
2414                                                 save();
2415                                         }), abortable(function(ex) {
2416                                                 if (ex.code === ex.NOT_FOUND_ERR) {
2417                                                         save();
2418                                                 } else {
2419                                                         fs_error();
2420                                                 }
2421                                         }));
2422                                 }), fs_error);
2423                         }), fs_error);
2424                 }
2425                 , FS_proto = FileSaver.prototype
2426                 , saveAs = function(blob, name) {
2427                         return new FileSaver(blob, name);
2428                 }
2429         ;
2430         FS_proto.abort = function() {
2431                 var filesaver = this;
2432                 filesaver.readyState = filesaver.DONE;
2433                 dispatch(filesaver, "abort");
2434         };
2435         FS_proto.readyState = FS_proto.INIT = 0;
2436         FS_proto.WRITING = 1;
2437         FS_proto.DONE = 2;
2438
2439         FS_proto.error =
2440         FS_proto.onwritestart =
2441         FS_proto.onprogress =
2442         FS_proto.onwrite =
2443         FS_proto.onabort =
2444         FS_proto.onerror =
2445         FS_proto.onwriteend =
2446                 null;
2447
2448         view.addEventListener("unload", process_deletion_queue, false);
2449         saveAs.unload = function() {
2450                 process_deletion_queue();
2451                 view.removeEventListener("unload", process_deletion_queue, false);
2452         };
2453         return saveAs;
2454 }(
2455            typeof self !== "undefined" && self
2456         || typeof window !== "undefined" && window
2457         || this.content
2458 ));
2459 // `self` is undefined in Firefox for Android content script context
2460 // while `this` is nsIContentFrameMessageManager
2461 // with an attribute `content` that corresponds to the window
2462
2463 amdDefine = window.define;
2464 if( typeof amdDefine === "undefined" && (typeof window.almond !== "undefined" 
2465     && "define" in window.almond )){
2466   amdDefine = window.almond.define;
2467 }
2468
2469 if (typeof module !== "undefined" && module !== null) {
2470   module.exports = saveAs;
2471 } else if ((typeof amdDefine !== "undefined" && amdDefine !== null) && (amdDefine.amd != null)) {
2472   amdDefine("saveAs",[], function() {
2473     return saveAs;
2474   });
2475 }
2476
2477 },{}],48:[function(require,module,exports){
2478 module.exports = function (css, customDocument) {
2479   var doc = customDocument || document;
2480   if (doc.createStyleSheet) {
2481     var sheet = doc.createStyleSheet()
2482     sheet.cssText = css;
2483     return sheet.ownerNode;
2484   } else {
2485     var head = doc.getElementsByTagName('head')[0],
2486         style = doc.createElement('style');
2487
2488     style.type = 'text/css';
2489
2490     if (style.styleSheet) {
2491       style.styleSheet.cssText = css;
2492     } else {
2493       style.appendChild(doc.createTextNode(css));
2494     }
2495
2496     head.appendChild(style);
2497     return style;
2498   }
2499 };
2500
2501 module.exports.byUrl = function(url) {
2502   if (document.createStyleSheet) {
2503     return document.createStyleSheet(url).ownerNode;
2504   } else {
2505     var head = document.getElementsByTagName('head')[0],
2506         link = document.createElement('link');
2507
2508     link.rel = 'stylesheet';
2509     link.href = url;
2510
2511     head.appendChild(link);
2512     return link;
2513   }
2514 };
2515
2516 },{}],49:[function(require,module,exports){
2517 var Utils = {};
2518
2519
2520 /*
2521 Remove an element and provide a function that inserts it into its original position
2522 https://developers.google.com/speed/articles/javascript-dom
2523 @param element {Element} The element to be temporarily removed
2524 @return {Function} A function that inserts the element into its original position
2525  */
2526
2527 Utils.removeToInsertLater = function(element) {
2528   var nextSibling, parentNode;
2529   parentNode = element.parentNode;
2530   nextSibling = element.nextSibling;
2531   parentNode.removeChild(element);
2532   return function() {
2533     if (nextSibling) {
2534       parentNode.insertBefore(element, nextSibling);
2535     } else {
2536       parentNode.appendChild(element);
2537     }
2538   };
2539 };
2540
2541
2542 /*
2543 fastest possible way to destroy all sub nodes (aka childs)
2544 http://jsperf.com/innerhtml-vs-removechild/15
2545 @param element {Element} The element for which all childs should be removed
2546  */
2547
2548 Utils.removeAllChilds = function(element) {
2549   var count;
2550   count = 0;
2551   while (element.firstChild) {
2552     count++;
2553     element.removeChild(element.firstChild);
2554   }
2555 };
2556
2557 module.exports = Utils;
2558
2559 },{}],50:[function(require,module,exports){
2560 /*!
2561  * jBone v1.0.19 - 2014-10-12 - Library for DOM manipulation
2562  *
2563  * https://github.com/kupriyanenko/jbone
2564  *
2565  * Copyright 2014 Alexey Kupriyanenko
2566  * Released under the MIT license.
2567  */
2568
2569 (function (win) {
2570
2571 var
2572 // cache previous versions
2573 _$ = win.$,
2574 _jBone = win.jBone,
2575
2576 // Quick match a standalone tag
2577 rquickSingleTag = /^<(\w+)\s*\/?>$/,
2578
2579 // A simple way to check for HTML strings
2580 // Prioritize #id over <tag> to avoid XSS via location.hash
2581 rquickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
2582
2583 // Alias for function
2584 slice = [].slice,
2585 splice = [].splice,
2586 keys = Object.keys,
2587
2588 // Alias for global variables
2589 doc = document,
2590
2591 isString = function(el) {
2592     return typeof el === "string";
2593 },
2594 isObject = function(el) {
2595     return el instanceof Object;
2596 },
2597 isFunction = function(el) {
2598     var getType = {};
2599     return el && getType.toString.call(el) === "[object Function]";
2600 },
2601 isArray = function(el) {
2602     return Array.isArray(el);
2603 },
2604 jBone = function(element, data) {
2605     return new fn.init(element, data);
2606 },
2607 fn;
2608
2609 // set previous values and return the instance upon calling the no-conflict mode
2610 jBone.noConflict = function() {
2611     win.$ = _$;
2612     win.jBone = _jBone;
2613
2614     return jBone;
2615 };
2616
2617 fn = jBone.fn = jBone.prototype = {
2618     init: function(element, data) {
2619         var elements, tag, wraper, fragment;
2620
2621         if (!element) {
2622             return this;
2623         }
2624         if (isString(element)) {
2625             // Create single DOM element
2626             if (tag = rquickSingleTag.exec(element)) {
2627                 this[0] = doc.createElement(tag[1]);
2628                 this.length = 1;
2629
2630                 if (isObject(data)) {
2631                     this.attr(data);
2632                 }
2633
2634                 return this;
2635             }
2636             // Create DOM collection
2637             if ((tag = rquickExpr.exec(element)) && tag[1]) {
2638                 fragment = doc.createDocumentFragment();
2639                 wraper = doc.createElement("div");
2640                 wraper.innerHTML = element;
2641                 while (wraper.lastChild) {
2642                     fragment.appendChild(wraper.firstChild);
2643                 }
2644                 elements = slice.call(fragment.childNodes);
2645
2646                 return jBone.merge(this, elements);
2647             }
2648             // Find DOM elements with querySelectorAll
2649             if (jBone.isElement(data)) {
2650                 return jBone(data).find(element);
2651             }
2652
2653             try {
2654                 elements = doc.querySelectorAll(element);
2655
2656                 return jBone.merge(this, elements);
2657             } catch (e) {
2658                 return this;
2659             }
2660         }
2661         // Wrap DOMElement
2662         if (element.nodeType) {
2663             this[0] = element;
2664             this.length = 1;
2665
2666             return this;
2667         }
2668         // Run function
2669         if (isFunction(element)) {
2670             return element();
2671         }
2672         // Return jBone element as is
2673         if (element instanceof jBone) {
2674             return element;
2675         }
2676
2677         // Return element wrapped by jBone
2678         return jBone.makeArray(element, this);
2679     },
2680
2681     pop: [].pop,
2682     push: [].push,
2683     reverse: [].reverse,
2684     shift: [].shift,
2685     sort: [].sort,
2686     splice: [].splice,
2687     slice: [].slice,
2688     indexOf: [].indexOf,
2689     forEach: [].forEach,
2690     unshift: [].unshift,
2691     concat: [].concat,
2692     join: [].join,
2693     every: [].every,
2694     some: [].some,
2695     filter: [].filter,
2696     map: [].map,
2697     reduce: [].reduce,
2698     reduceRight: [].reduceRight,
2699     length: 0
2700 };
2701
2702 fn.constructor = jBone;
2703
2704 fn.init.prototype = fn;
2705
2706 jBone.setId = function(el) {
2707     var jid = el.jid;
2708
2709     if (el === win) {
2710         jid = "window";
2711     } else if (el.jid === undefined) {
2712         el.jid = jid = ++jBone._cache.jid;
2713     }
2714
2715     if (!jBone._cache.events[jid]) {
2716         jBone._cache.events[jid] = {};
2717     }
2718 };
2719
2720 jBone.getData = function(el) {
2721     el = el instanceof jBone ? el[0] : el;
2722
2723     var jid = el === win ? "window" : el.jid;
2724
2725     return {
2726         jid: jid,
2727         events: jBone._cache.events[jid]
2728     };
2729 };
2730
2731 jBone.isElement = function(el) {
2732     return el && el instanceof jBone || el instanceof HTMLElement || isString(el);
2733 };
2734
2735 jBone._cache = {
2736     events: {},
2737     jid: 0
2738 };
2739
2740 function isArraylike(obj) {
2741     var length = obj.length,
2742         type = typeof obj;
2743
2744     if (isFunction(type) || obj === win) {
2745         return false;
2746     }
2747
2748     if (obj.nodeType === 1 && length) {
2749         return true;
2750     }
2751
2752     return isArray(type) || length === 0 ||
2753         typeof length === "number" && length > 0 && (length - 1) in obj;
2754 }
2755
2756 jBone.merge = function(first, second) {
2757     var l = second.length,
2758         i = first.length,
2759         j = 0;
2760
2761     while (j < l) {
2762         first[i++] = second[j++];
2763     }
2764
2765     first.length = i;
2766
2767     return first;
2768 };
2769
2770 jBone.contains = function(container, contained) {
2771     var result;
2772
2773     container.reverse().some(function(el) {
2774         if (el.contains(contained)) {
2775             return result = el;
2776         }
2777     });
2778
2779     return result;
2780 };
2781
2782 jBone.extend = function(target) {
2783     var k, kl, i, tg;
2784
2785     splice.call(arguments, 1).forEach(function(object) {
2786         if (!object) {
2787             return;
2788         }
2789
2790         k = keys(object);
2791         kl = k.length;
2792         i = 0;
2793         tg = target; //caching target for perf improvement
2794
2795         for (; i < kl; i++) {
2796             tg[k[i]] = object[k[i]];
2797         }
2798     });
2799
2800     return target;
2801 };
2802
2803 jBone.makeArray = function(arr, results) {
2804     var ret = results || [];
2805
2806     if (arr !== null) {
2807         if (isArraylike(arr)) {
2808             jBone.merge(ret, isString(arr) ? [arr] : arr);
2809         } else {
2810             ret.push(arr);
2811         }
2812     }
2813
2814     return ret;
2815 };
2816
2817 function BoneEvent(e, data) {
2818     var key, setter;
2819
2820     this.originalEvent = e;
2821
2822     setter = function(key, e) {
2823         if (key === "preventDefault") {
2824             this[key] = function() {
2825                 this.defaultPrevented = true;
2826                 return e[key]();
2827             };
2828         } else if (isFunction(e[key])) {
2829             this[key] = function() {
2830                 return e[key]();
2831             };
2832         } else {
2833             this[key] = e[key];
2834         }
2835     };
2836
2837     for (key in e) {
2838         if (e[key] || typeof e[key] === "function") {
2839             setter.call(this, key, e);
2840         }
2841     }
2842
2843     jBone.extend(this, data);
2844 }
2845
2846 jBone.Event = function(event, data) {
2847     var namespace, eventType;
2848
2849     if (event.type && !data) {
2850         data = event;
2851         event = event.type;
2852     }
2853
2854     namespace = event.split(".").splice(1).join(".");
2855     eventType = event.split(".")[0];
2856
2857     event = doc.createEvent("Event");
2858     event.initEvent(eventType, true, true);
2859
2860     return jBone.extend(event, {
2861         namespace: namespace,
2862         isDefaultPrevented: function() {
2863             return event.defaultPrevented;
2864         }
2865     }, data);
2866 };
2867
2868 fn.on = function(event) {
2869     var args = arguments,
2870         length = this.length,
2871         i = 0,
2872         callback, target, namespace, fn, events, eventType, expectedTarget, addListener;
2873
2874     if (args.length === 2) {
2875         callback = args[1];
2876     } else {
2877         target = args[1];
2878         callback = args[2];
2879     }
2880
2881     addListener = function(el) {
2882         jBone.setId(el);
2883         events = jBone.getData(el).events;
2884         event.split(" ").forEach(function(event) {
2885             eventType = event.split(".")[0];
2886             namespace = event.split(".").splice(1).join(".");
2887             events[eventType] = events[eventType] || [];
2888
2889             fn = function(e) {
2890                 if (e.namespace && e.namespace !== namespace) {
2891                     return;
2892                 }
2893
2894                 expectedTarget = null;
2895                 if (!target) {
2896                     callback.call(el, e);
2897                 } else if (~jBone(el).find(target).indexOf(e.target) || (expectedTarget = jBone.contains(jBone(el).find(target), e.target))) {
2898                     expectedTarget = expectedTarget || e.target;
2899                     e = new BoneEvent(e, {
2900                         currentTarget: expectedTarget
2901                     });
2902
2903                     callback.call(expectedTarget, e);
2904                 }
2905             };
2906
2907             events[eventType].push({
2908                 namespace: namespace,
2909                 fn: fn,
2910                 originfn: callback
2911             });
2912
2913             el.addEventListener && el.addEventListener(eventType, fn, false);
2914         });
2915     };
2916
2917     for (; i < length; i++) {
2918         addListener(this[i]);
2919     }
2920
2921     return this;
2922 };
2923
2924 fn.one = function(event) {
2925     var args = arguments,
2926         i = 0,
2927         length = this.length,
2928         callback, target, addListener;
2929
2930     if (args.length === 2) {
2931         callback = args[1];
2932     } else {
2933         target = args[1], callback = args[2];
2934     }
2935
2936     addListener = function(el) {
2937         event.split(" ").forEach(function(event) {
2938             var fn = function(e) {
2939                 jBone(el).off(event, fn);
2940                 callback.call(el, e);
2941             };
2942
2943             if (!target) {
2944                 jBone(el).on(event, fn);
2945             } else {
2946                 jBone(el).on(event, target, fn);
2947             }
2948         });
2949     };
2950
2951     for (; i < length; i++) {
2952         addListener(this[i]);
2953     }
2954
2955     return this;
2956 };
2957
2958 fn.trigger = function(event) {
2959     var events = [],
2960         i = 0,
2961         length = this.length,
2962         dispatchEvents;
2963
2964     if (!event) {
2965         return this;
2966     }
2967
2968     if (isString(event)) {
2969         events = event.split(" ").map(function(event) {
2970             return jBone.Event(event);
2971         });
2972     } else {
2973         event = event instanceof Event ? event : jBone.Event(event);
2974         events = [event];
2975     }
2976
2977     dispatchEvents = function(el) {
2978         events.forEach(function(event) {
2979             if (!event.type) {
2980                 return;
2981             }
2982
2983             el.dispatchEvent && el.dispatchEvent(event);
2984         });
2985     };
2986
2987     for (; i < length; i++) {
2988         dispatchEvents(this[i]);
2989     }
2990
2991     return this;
2992 };
2993
2994 fn.off = function(event, fn) {
2995     var i = 0,
2996         length = this.length,
2997         removeListener = function(events, eventType, index, el, e) {
2998             var callback;
2999
3000             // get callback
3001             if ((fn && e.originfn === fn) || !fn) {
3002                 callback = e.fn;
3003             }
3004
3005             if (events[eventType][index].fn === callback) {
3006                 el.removeEventListener(eventType, callback);
3007
3008                 // remove handler from cache
3009                 jBone._cache.events[jBone.getData(el).jid][eventType].splice(index, 1);
3010             }
3011         },
3012         events, namespace, removeListeners, eventType;
3013
3014     removeListeners = function(el) {
3015         var l, eventsByType, e;
3016
3017         events = jBone.getData(el).events;
3018
3019         if (!events) {
3020             return;
3021         }
3022
3023         // remove all events
3024         if (!event && events) {
3025             return keys(events).forEach(function(eventType) {
3026                 eventsByType = events[eventType];
3027                 l = eventsByType.length;
3028
3029                 while(l--) {
3030                     removeListener(events, eventType, l, el, eventsByType[l]);
3031                 }
3032             });
3033         }
3034
3035         event.split(" ").forEach(function(event) {
3036             eventType = event.split(".")[0];
3037             namespace = event.split(".").splice(1).join(".");
3038
3039             // remove named events
3040             if (events[eventType]) {
3041                 eventsByType = events[eventType];
3042                 l = eventsByType.length;
3043
3044                 while(l--) {
3045                     e = eventsByType[l];
3046                     if (!namespace || (namespace && e.namespace === namespace)) {
3047                         removeListener(events, eventType, l, el, e);
3048                     }
3049                 }
3050             }
3051             // remove all namespaced events
3052             else if (namespace) {
3053                 keys(events).forEach(function(eventType) {
3054                     eventsByType = events[eventType];
3055                     l = eventsByType.length;
3056
3057                     while(l--) {
3058                         e = eventsByType[l];
3059                         if (e.namespace.split(".")[0] === namespace.split(".")[0]) {
3060                             removeListener(events, eventType, l, el, e);
3061                         }
3062                     }
3063                 });
3064             }
3065         });
3066     };
3067
3068     for (; i < length; i++) {
3069         removeListeners(this[i]);
3070     }
3071
3072     return this;
3073 };
3074
3075 fn.find = function(selector) {
3076     var results = [],
3077         i = 0,
3078         length = this.length,
3079         finder = function(el) {
3080             if (isFunction(el.querySelectorAll)) {
3081                 [].forEach.call(el.querySelectorAll(selector), function(found) {
3082                     results.push(found);
3083                 });
3084             }
3085         };
3086
3087     for (; i < length; i++) {
3088         finder(this[i]);
3089     }
3090
3091     return jBone(results);
3092 };
3093
3094 fn.get = function(index) {
3095     return this[index];
3096 };
3097
3098 fn.eq = function(index) {
3099     return jBone(this[index]);
3100 };
3101
3102 fn.parent = function() {
3103     var results = [],
3104         parent,
3105         i = 0,
3106         length = this.length;
3107
3108     for (; i < length; i++) {
3109         if (!~results.indexOf(parent = this[i].parentElement) && parent) {
3110             results.push(parent);
3111         }
3112     }
3113
3114     return jBone(results);
3115 };
3116
3117 fn.toArray = function() {
3118     return slice.call(this);
3119 };
3120
3121 fn.is = function() {
3122     var args = arguments;
3123
3124     return this.some(function(el) {
3125         return el.tagName.toLowerCase() === args[0];
3126     });
3127 };
3128
3129 fn.has = function() {
3130     var args = arguments;
3131
3132     return this.some(function(el) {
3133         return el.querySelectorAll(args[0]).length;
3134     });
3135 };
3136
3137 fn.attr = function(key, value) {
3138     var args = arguments,
3139         i = 0,
3140         length = this.length,
3141         setter;
3142
3143     if (isString(key) && args.length === 1) {
3144         return this[0] && this[0].getAttribute(key);
3145     }
3146
3147     if (args.length === 2) {
3148         setter = function(el) {
3149             el.setAttribute(key, value);
3150         };
3151     } else if (isObject(key)) {
3152         setter = function(el) {
3153             keys(key).forEach(function(name) {
3154                 el.setAttribute(name, key[name]);
3155             });
3156         };
3157     }
3158
3159     for (; i < length; i++) {
3160         setter(this[i]);
3161     }
3162
3163     return this;
3164 };
3165
3166 fn.removeAttr = function(key) {
3167     var i = 0,
3168         length = this.length;
3169
3170     for (; i < length; i++) {
3171         this[i].removeAttribute(key);
3172     }
3173
3174     return this;
3175 };
3176
3177 fn.val = function(value) {
3178     var i = 0,
3179         length = this.length;
3180
3181     if (arguments.length === 0) {
3182         return this[0] && this[0].value;
3183     }
3184
3185     for (; i < length; i++) {
3186         this[i].value = value;
3187     }
3188
3189     return this;
3190 };
3191
3192 fn.css = function(key, value) {
3193     var args = arguments,
3194         i = 0,
3195         length = this.length,
3196         setter;
3197
3198     // Get attribute
3199     if (isString(key) && args.length === 1) {
3200         return this[0] && win.getComputedStyle(this[0])[key];
3201     }
3202
3203     // Set attributes
3204     if (args.length === 2) {
3205         setter = function(el) {
3206             el.style[key] = value;
3207         };
3208     } else if (isObject(key)) {
3209         setter = function(el) {
3210             keys(key).forEach(function(name) {
3211                 el.style[name] = key[name];
3212             });
3213         };
3214     }
3215
3216     for (; i < length; i++) {
3217         setter(this[i]);
3218     }
3219
3220     return this;
3221 };
3222
3223 fn.data = function(key, value) {
3224     var args = arguments, data = {},
3225         i = 0,
3226         length = this.length,
3227         setter,
3228         setValue = function(el, key, value) {
3229             if (isObject(value)) {
3230                 el.jdata = el.jdata || {};
3231                 el.jdata[key] = value;
3232             } else {
3233                 el.dataset[key] = value;
3234             }
3235         },
3236         getValue = function(value) {
3237             if (value === "true") {
3238                 return true;
3239             } else if (value === "false") {
3240                 return false;
3241             } else {
3242                 return value;
3243             }
3244         };
3245
3246     // Get all data
3247     if (args.length === 0) {
3248         this[0].jdata && (data = this[0].jdata);
3249
3250         keys(this[0].dataset).forEach(function(key) {
3251             data[key] = getValue(this[0].dataset[key]);
3252         }, this);
3253
3254         return data;
3255     }
3256     // Get data by name
3257     if (args.length === 1 && isString(key)) {
3258         return this[0] && getValue(this[0].dataset[key] || this[0].jdata && this[0].jdata[key]);
3259     }
3260
3261     // Set data
3262     if (args.length === 1 && isObject(key)) {
3263         setter = function(el) {
3264             keys(key).forEach(function(name) {
3265                 setValue(el, name, key[name]);
3266             });
3267         };
3268     } else if (args.length === 2) {
3269         setter = function(el) {
3270             setValue(el, key, value);
3271         };
3272     }
3273
3274     for (; i < length; i++) {
3275         setter(this[i]);
3276     }
3277
3278     return this;
3279 };
3280
3281 fn.removeData = function(key) {
3282     var i = 0,
3283         length = this.length,
3284         jdata, dataset;
3285
3286     for (; i < length; i++) {
3287         jdata = this[i].jdata;
3288         dataset = this[i].dataset;
3289
3290         if (key) {
3291             jdata && jdata[key] && delete jdata[key];
3292             delete dataset[key];
3293         } else {
3294             for (key in jdata) {
3295                 delete jdata[key];
3296             }
3297
3298             for (key in dataset) {
3299                 delete dataset[key];
3300             }
3301         }
3302     }
3303
3304     return this;
3305 };
3306
3307 fn.html = function(value) {
3308     var args = arguments,
3309         el;
3310
3311     // add HTML into elements
3312     if (args.length === 1 && value !== undefined) {
3313         return this.empty().append(value);
3314     }
3315     // get HTML from element
3316     else if (args.length === 0 && (el = this[0])) {
3317         return el.innerHTML;
3318     }
3319
3320     return this;
3321 };
3322
3323 fn.append = function(appended) {
3324     var i = 0,
3325         length = this.length,
3326         setter;
3327
3328     // create jBone object and then append
3329     if (isString(appended) && rquickExpr.exec(appended)) {
3330         appended = jBone(appended);
3331     }
3332     // create text node for inserting
3333     else if (!isObject(appended)) {
3334         appended = document.createTextNode(appended);
3335     }
3336
3337     appended = appended instanceof jBone ? appended : jBone(appended);
3338
3339     setter = function(el, i) {
3340         appended.forEach(function(node) {
3341             if (i) {
3342                 el.appendChild(node.cloneNode());
3343             } else {
3344                 el.appendChild(node);
3345             }
3346         });
3347     };
3348
3349     for (; i < length; i++) {
3350         setter(this[i], i);
3351     }
3352
3353     return this;
3354 };
3355
3356 fn.appendTo = function(to) {
3357     jBone(to).append(this);
3358
3359     return this;
3360 };
3361
3362 fn.empty = function() {
3363     var i = 0,
3364         length = this.length,
3365         el;
3366
3367     for (; i < length; i++) {
3368         el = this[i];
3369
3370         while (el.lastChild) {
3371             el.removeChild(el.lastChild);
3372         }
3373     }
3374
3375     return this;
3376 };
3377
3378 fn.remove = function() {
3379     var i = 0,
3380         length = this.length,
3381         el;
3382
3383     // remove all listners
3384     this.off();
3385
3386     for (; i < length; i++) {
3387         el = this[i];
3388
3389         // remove data and nodes
3390         delete el.jdata;
3391         el.parentNode && el.parentNode.removeChild(el);
3392     }
3393
3394     return this;
3395 };
3396
3397 if (typeof module === "object" && module && typeof module.exports === "object") {
3398     // Expose jBone as module.exports in loaders that implement the Node
3399     // module pattern (including browserify). Do not create the global, since
3400     // the user will be storing it themselves locally, and globals are frowned
3401     // upon in the Node module world.
3402     module.exports = jBone;
3403 }
3404 // Register as a AMD module
3405 else if (typeof define === "function" && define.amd) {
3406     define(function() {
3407         return jBone;
3408     });
3409
3410     win.jBone = win.$ = jBone;
3411 } else if (typeof win === "object" && typeof win.document === "object") {
3412     win.jBone = win.$ = jBone;
3413 }
3414
3415 }(window));
3416
3417 },{}],51:[function(require,module,exports){
3418 var Mouse;
3419
3420 module.exports = Mouse = {
3421   rel: function(e) {
3422     var mouseX, mouseY, rect, target;
3423     mouseX = e.offsetX;
3424     mouseY = e.offsetY;
3425     if (mouseX == null) {
3426       rect = target.getBoundingClientRect();
3427       target = e.target || e.srcElement;
3428       if (mouseX == null) {
3429         mouseX = e.clientX - rect.left;
3430         mouseY = e.clientY - rect.top;
3431       }
3432       if (mouseX == null) {
3433         mouseX = e.pageX - target.offsetLeft;
3434         mouseY = e.pageY - target.offsetTop;
3435       }
3436       if (mouseX == null) {
3437         console.log(e, "no mouse event defined. your browser sucks");
3438         return;
3439       }
3440     }
3441     return [mouseX, mouseY];
3442   },
3443   abs: function(e) {
3444     var mouseX, mouseY;
3445     mouseX = e.pageX;
3446     mouseY = e.pageY;
3447     if (mouseX == null) {
3448       mouseX = e.layerX;
3449       mouseY = e.layerY;
3450     }
3451     if (mouseX == null) {
3452       mouseX = e.clientX;
3453       mouseY = e.clientY;
3454     }
3455     if (mouseX == null) {
3456       mouseX = e.x;
3457       mouseY = e.y;
3458     }
3459     return [mouseX, mouseY];
3460   },
3461   wheelDelta: function(e) {
3462     var delta, dir;
3463     delta = [e.deltaX, e.deltaY];
3464     if (delta[0] == null) {
3465       dir = Math.floor(e.detail / 3);
3466       delta = [0, e.mozMovementX * dir];
3467     }
3468     return delta;
3469   }
3470 };
3471
3472 },{}],52:[function(require,module,exports){
3473 var window = require("global/window")
3474 var once = require("once")
3475 var parseHeaders = require('parse-headers')
3476
3477 var messages = {
3478     "0": "Internal XMLHttpRequest Error",
3479     "4": "4xx Client Error",
3480     "5": "5xx Server Error"
3481 }
3482
3483 var XHR = window.XMLHttpRequest || noop
3484 var XDR = "withCredentials" in (new XHR()) ? XHR : window.XDomainRequest
3485
3486 module.exports = createXHR
3487
3488 function createXHR(options, callback) {
3489     if (typeof options === "string") {
3490         options = { uri: options }
3491     }
3492
3493     options = options || {}
3494     callback = once(callback)
3495
3496     var xhr = options.xhr || null
3497
3498     if (!xhr) {
3499         if (options.cors || options.useXDR) {
3500             xhr = new XDR()
3501         }else{
3502             xhr = new XHR()
3503         }
3504     }
3505
3506     var uri = xhr.url = options.uri || options.url
3507     var method = xhr.method = options.method || "GET"
3508     var body = options.body || options.data
3509     var headers = xhr.headers = options.headers || {}
3510     var sync = !!options.sync
3511     var isJson = false
3512     var key
3513     var load = options.response ? loadResponse : loadXhr
3514
3515     if ("json" in options) {
3516         isJson = true
3517         headers["Accept"] = "application/json"
3518         if (method !== "GET" && method !== "HEAD") {
3519             headers["Content-Type"] = "application/json"
3520             body = JSON.stringify(options.json)
3521         }
3522     }
3523
3524     xhr.onreadystatechange = readystatechange
3525     xhr.onload = load
3526     xhr.onerror = error
3527     // IE9 must have onprogress be set to a unique function.
3528     xhr.onprogress = function () {
3529         // IE must die
3530     }
3531     // hate IE
3532     xhr.ontimeout = noop
3533     xhr.open(method, uri, !sync)
3534                                     //backward compatibility
3535     if (options.withCredentials || (options.cors && options.withCredentials !== false)) {
3536         xhr.withCredentials = true
3537     }
3538
3539     // Cannot set timeout with sync request
3540     if (!sync) {
3541         xhr.timeout = "timeout" in options ? options.timeout : 5000
3542     }
3543
3544     if (xhr.setRequestHeader) {
3545         for(key in headers){
3546             if(headers.hasOwnProperty(key)){
3547                 xhr.setRequestHeader(key, headers[key])
3548             }
3549         }
3550     } else if (options.headers) {
3551         throw new Error("Headers cannot be set on an XDomainRequest object")
3552     }
3553
3554     if ("responseType" in options) {
3555         xhr.responseType = options.responseType
3556     }
3557     
3558     if ("beforeSend" in options && 
3559         typeof options.beforeSend === "function"
3560     ) {
3561         options.beforeSend(xhr)
3562     }
3563
3564     xhr.send(body)
3565
3566     return xhr
3567
3568     function readystatechange() {
3569         if (xhr.readyState === 4) {
3570             load()
3571         }
3572     }
3573
3574     function getBody() {
3575         // Chrome with requestType=blob throws errors arround when even testing access to responseText
3576         var body = null
3577
3578         if (xhr.response) {
3579             body = xhr.response
3580         } else if (xhr.responseType === 'text' || !xhr.responseType) {
3581             body = xhr.responseText || xhr.responseXML
3582         }
3583
3584         if (isJson) {
3585             try {
3586                 body = JSON.parse(body)
3587             } catch (e) {}
3588         }
3589
3590         return body
3591     }
3592
3593     function getStatusCode() {
3594         return xhr.status === 1223 ? 204 : xhr.status
3595     }
3596
3597     // if we're getting a none-ok statusCode, build & return an error
3598     function errorFromStatusCode(status) {
3599         var error = null
3600         if (status === 0 || (status >= 400 && status < 600)) {
3601             var message = (typeof body === "string" ? body : false) ||
3602                 messages[String(status).charAt(0)]
3603             error = new Error(message)
3604             error.statusCode = status
3605         }
3606
3607         return error
3608     }
3609
3610     // will load the data & process the response in a special response object
3611     function loadResponse() {
3612         var status = getStatusCode()
3613         var error = errorFromStatusCode(status)
3614         var response = {
3615             body: getBody(),
3616             statusCode: status,
3617             statusText: xhr.statusText,
3618             raw: xhr
3619         }
3620         if(xhr.getAllResponseHeaders){ //remember xhr can in fact be XDR for CORS in IE
3621             response.headers = parseHeaders(xhr.getAllResponseHeaders())
3622         } else {
3623             response.headers = {}
3624         }
3625
3626         callback(error, response, response.body)
3627     }
3628
3629     // will load the data and add some response properties to the source xhr
3630     // and then respond with that
3631     function loadXhr() {
3632         var status = getStatusCode()
3633         var error = errorFromStatusCode(status)
3634
3635         xhr.status = xhr.statusCode = status
3636         xhr.body = getBody()
3637         xhr.headers = parseHeaders(xhr.getAllResponseHeaders())
3638
3639         callback(error, xhr, xhr.body)
3640     }
3641
3642     function error(evt) {
3643         callback(evt, xhr)
3644     }
3645 }
3646
3647
3648 function noop() {}
3649
3650 },{"global/window":53,"once":54,"parse-headers":58}],53:[function(require,module,exports){
3651 (function (global){
3652 if (typeof window !== "undefined") {
3653     module.exports = window;
3654 } else if (typeof global !== "undefined") {
3655     module.exports = global;
3656 } else if (typeof self !== "undefined"){
3657     module.exports = self;
3658 } else {
3659     module.exports = {};
3660 }
3661
3662 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
3663 },{}],54:[function(require,module,exports){
3664 module.exports = once
3665
3666 once.proto = once(function () {
3667   Object.defineProperty(Function.prototype, 'once', {
3668     value: function () {
3669       return once(this)
3670     },
3671     configurable: true
3672   })
3673 })
3674
3675 function once (fn) {
3676   var called = false
3677   return function () {
3678     if (called) return
3679     called = true
3680     return fn.apply(this, arguments)
3681   }
3682 }
3683
3684 },{}],55:[function(require,module,exports){
3685 var isFunction = require('is-function')
3686
3687 module.exports = forEach
3688
3689 var toString = Object.prototype.toString
3690 var hasOwnProperty = Object.prototype.hasOwnProperty
3691
3692 function forEach(list, iterator, context) {
3693     if (!isFunction(iterator)) {
3694         throw new TypeError('iterator must be a function')
3695     }
3696
3697     if (arguments.length < 3) {
3698         context = this
3699     }
3700     
3701     if (toString.call(list) === '[object Array]')
3702         forEachArray(list, iterator, context)
3703     else if (typeof list === 'string')
3704         forEachString(list, iterator, context)
3705     else
3706         forEachObject(list, iterator, context)
3707 }
3708
3709 function forEachArray(array, iterator, context) {
3710     for (var i = 0, len = array.length; i < len; i++) {
3711         if (hasOwnProperty.call(array, i)) {
3712             iterator.call(context, array[i], i, array)
3713         }
3714     }
3715 }
3716
3717 function forEachString(string, iterator, context) {
3718     for (var i = 0, len = string.length; i < len; i++) {
3719         // no such thing as a sparse string.
3720         iterator.call(context, string.charAt(i), i, string)
3721     }
3722 }
3723
3724 function forEachObject(object, iterator, context) {
3725     for (var k in object) {
3726         if (hasOwnProperty.call(object, k)) {
3727             iterator.call(context, object[k], k, object)
3728         }
3729     }
3730 }
3731
3732 },{"is-function":56}],56:[function(require,module,exports){
3733 module.exports = isFunction
3734
3735 var toString = Object.prototype.toString
3736
3737 function isFunction (fn) {
3738   var string = toString.call(fn)
3739   return string === '[object Function]' ||
3740     (typeof fn === 'function' && string !== '[object RegExp]') ||
3741     (typeof window !== 'undefined' &&
3742      // IE8 and below
3743      (fn === window.setTimeout ||
3744       fn === window.alert ||
3745       fn === window.confirm ||
3746       fn === window.prompt))
3747 };
3748
3749 },{}],57:[function(require,module,exports){
3750
3751 exports = module.exports = trim;
3752
3753 function trim(str){
3754   return str.replace(/^\s*|\s*$/g, '');
3755 }
3756
3757 exports.left = function(str){
3758   return str.replace(/^\s*/, '');
3759 };
3760
3761 exports.right = function(str){
3762   return str.replace(/\s*$/, '');
3763 };
3764
3765 },{}],58:[function(require,module,exports){
3766 var trim = require('trim')
3767   , forEach = require('for-each')
3768   , isArray = function(arg) {
3769       return Object.prototype.toString.call(arg) === '[object Array]';
3770     }
3771
3772 module.exports = function (headers) {
3773   if (!headers)
3774     return {}
3775
3776   var result = {}
3777
3778   forEach(
3779       trim(headers).split('\n')
3780     , function (row) {
3781         var index = row.indexOf(':')
3782           , key = trim(row.slice(0, index)).toLowerCase()
3783           , value = trim(row.slice(index + 1))
3784
3785         if (typeof(result[key]) === 'undefined') {
3786           result[key] = value
3787         } else if (isArray(result[key])) {
3788           result[key].push(value)
3789         } else {
3790           result[key] = [ result[key], value ]
3791         }
3792       }
3793   )
3794
3795   return result
3796 }
3797 },{"for-each":55,"trim":57}],59:[function(require,module,exports){
3798 //     Underscore.js 1.7.0
3799 //     http://underscorejs.org
3800 //     (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
3801 //     Underscore may be freely distributed under the MIT license.
3802
3803 (function() {
3804
3805   // Baseline setup
3806   // --------------
3807
3808   // Establish the root object, `window` in the browser, or `exports` on the server.
3809   var root = this;
3810
3811   // Save the previous value of the `_` variable.
3812   var previousUnderscore = root._;
3813
3814   // Save bytes in the minified (but not gzipped) version:
3815   var ArrayProto = Array.prototype, ObjProto = Object.prototype, FuncProto = Function.prototype;
3816
3817   // Create quick reference variables for speed access to core prototypes.
3818   var
3819     push             = ArrayProto.push,
3820     slice            = ArrayProto.slice,
3821     concat           = ArrayProto.concat,
3822     toString         = ObjProto.toString,
3823     hasOwnProperty   = ObjProto.hasOwnProperty;
3824
3825   // All **ECMAScript 5** native function implementations that we hope to use
3826   // are declared here.
3827   var
3828     nativeIsArray      = Array.isArray,
3829     nativeKeys         = Object.keys,
3830     nativeBind         = FuncProto.bind;
3831
3832   // Create a safe reference to the Underscore object for use below.
3833   var _ = function(obj) {
3834     if (obj instanceof _) return obj;
3835     if (!(this instanceof _)) return new _(obj);
3836     this._wrapped = obj;
3837   };
3838
3839   // Export the Underscore object for **Node.js**, with
3840   // backwards-compatibility for the old `require()` API. If we're in
3841   // the browser, add `_` as a global object.
3842   if (typeof exports !== 'undefined') {
3843     if (typeof module !== 'undefined' && module.exports) {
3844       exports = module.exports = _;
3845     }
3846     exports._ = _;
3847   } else {
3848     root._ = _;
3849   }
3850
3851   // Current version.
3852   _.VERSION = '1.7.0';
3853
3854   // Internal function that returns an efficient (for current engines) version
3855   // of the passed-in callback, to be repeatedly applied in other Underscore
3856   // functions.
3857   var createCallback = function(func, context, argCount) {
3858     if (context === void 0) return func;
3859     switch (argCount == null ? 3 : argCount) {
3860       case 1: return function(value) {
3861         return func.call(context, value);
3862       };
3863       case 2: return function(value, other) {
3864         return func.call(context, value, other);
3865       };
3866       case 3: return function(value, index, collection) {
3867         return func.call(context, value, index, collection);
3868       };
3869       case 4: return function(accumulator, value, index, collection) {
3870         return func.call(context, accumulator, value, index, collection);
3871       };
3872     }
3873     return function() {
3874       return func.apply(context, arguments);
3875     };
3876   };
3877
3878   // A mostly-internal function to generate callbacks that can be applied
3879   // to each element in a collection, returning the desired result â€” either
3880   // identity, an arbitrary callback, a property matcher, or a property accessor.
3881   _.iteratee = function(value, context, argCount) {
3882     if (value == null) return _.identity;
3883     if (_.isFunction(value)) return createCallback(value, context, argCount);
3884     if (_.isObject(value)) return _.matches(value);
3885     return _.property(value);
3886   };
3887
3888   // Collection Functions
3889   // --------------------
3890
3891   // The cornerstone, an `each` implementation, aka `forEach`.
3892   // Handles raw objects in addition to array-likes. Treats all
3893   // sparse array-likes as if they were dense.
3894   _.each = _.forEach = function(obj, iteratee, context) {
3895     if (obj == null) return obj;
3896     iteratee = createCallback(iteratee, context);
3897     var i, length = obj.length;
3898     if (length === +length) {
3899       for (i = 0; i < length; i++) {
3900         iteratee(obj[i], i, obj);
3901       }
3902     } else {
3903       var keys = _.keys(obj);
3904       for (i = 0, length = keys.length; i < length; i++) {
3905         iteratee(obj[keys[i]], keys[i], obj);
3906       }
3907     }
3908     return obj;
3909   };
3910
3911   // Return the results of applying the iteratee to each element.
3912   _.map = _.collect = function(obj, iteratee, context) {
3913     if (obj == null) return [];
3914     iteratee = _.iteratee(iteratee, context);
3915     var keys = obj.length !== +obj.length && _.keys(obj),
3916         length = (keys || obj).length,
3917         results = Array(length),
3918         currentKey;
3919     for (var index = 0; index < length; index++) {
3920       currentKey = keys ? keys[index] : index;
3921       results[index] = iteratee(obj[currentKey], currentKey, obj);
3922     }
3923     return results;
3924   };
3925
3926   var reduceError = 'Reduce of empty array with no initial value';
3927
3928   // **Reduce** builds up a single result from a list of values, aka `inject`,
3929   // or `foldl`.
3930   _.reduce = _.foldl = _.inject = function(obj, iteratee, memo, context) {
3931     if (obj == null) obj = [];
3932     iteratee = createCallback(iteratee, context, 4);
3933     var keys = obj.length !== +obj.length && _.keys(obj),
3934         length = (keys || obj).length,
3935         index = 0, currentKey;
3936     if (arguments.length < 3) {
3937       if (!length) throw new TypeError(reduceError);
3938       memo = obj[keys ? keys[index++] : index++];
3939     }
3940     for (; index < length; index++) {
3941       currentKey = keys ? keys[index] : index;
3942       memo = iteratee(memo, obj[currentKey], currentKey, obj);
3943     }
3944     return memo;
3945   };
3946
3947   // The right-associative version of reduce, also known as `foldr`.
3948   _.reduceRight = _.foldr = function(obj, iteratee, memo, context) {
3949     if (obj == null) obj = [];
3950     iteratee = createCallback(iteratee, context, 4);
3951     var keys = obj.length !== + obj.length && _.keys(obj),
3952         index = (keys || obj).length,
3953         currentKey;
3954     if (arguments.length < 3) {
3955       if (!index) throw new TypeError(reduceError);
3956       memo = obj[keys ? keys[--index] : --index];
3957     }
3958     while (index--) {
3959       currentKey = keys ? keys[index] : index;
3960       memo = iteratee(memo, obj[currentKey], currentKey, obj);
3961     }
3962     return memo;
3963   };
3964
3965   // Return the first value which passes a truth test. Aliased as `detect`.
3966   _.find = _.detect = function(obj, predicate, context) {
3967     var result;
3968     predicate = _.iteratee(predicate, context);
3969     _.some(obj, function(value, index, list) {
3970       if (predicate(value, index, list)) {
3971         result = value;
3972         return true;
3973       }
3974     });
3975     return result;
3976   };
3977
3978   // Return all the elements that pass a truth test.
3979   // Aliased as `select`.
3980   _.filter = _.select = function(obj, predicate, context) {
3981     var results = [];
3982     if (obj == null) return results;
3983     predicate = _.iteratee(predicate, context);
3984     _.each(obj, function(value, index, list) {
3985       if (predicate(value, index, list)) results.push(value);
3986     });
3987     return results;
3988   };
3989
3990   // Return all the elements for which a truth test fails.
3991   _.reject = function(obj, predicate, context) {
3992     return _.filter(obj, _.negate(_.iteratee(predicate)), context);
3993   };
3994
3995   // Determine whether all of the elements match a truth test.
3996   // Aliased as `all`.
3997   _.every = _.all = function(obj, predicate, context) {
3998     if (obj == null) return true;
3999     predicate = _.iteratee(predicate, context);
4000     var keys = obj.length !== +obj.length && _.keys(obj),
4001         length = (keys || obj).length,
4002         index, currentKey;
4003     for (index = 0; index < length; index++) {
4004       currentKey = keys ? keys[index] : index;
4005       if (!predicate(obj[currentKey], currentKey, obj)) return false;
4006     }
4007     return true;
4008   };
4009
4010   // Determine if at least one element in the object matches a truth test.
4011   // Aliased as `any`.
4012   _.some = _.any = function(obj, predicate, context) {
4013     if (obj == null) return false;
4014     predicate = _.iteratee(predicate, context);
4015     var keys = obj.length !== +obj.length && _.keys(obj),
4016         length = (keys || obj).length,
4017         index, currentKey;
4018     for (index = 0; index < length; index++) {
4019       currentKey = keys ? keys[index] : index;
4020       if (predicate(obj[currentKey], currentKey, obj)) return true;
4021     }
4022     return false;
4023   };
4024
4025   // Determine if the array or object contains a given value (using `===`).
4026   // Aliased as `include`.
4027   _.contains = _.include = function(obj, target) {
4028     if (obj == null) return false;
4029     if (obj.length !== +obj.length) obj = _.values(obj);
4030     return _.indexOf(obj, target) >= 0;
4031   };
4032
4033   // Invoke a method (with arguments) on every item in a collection.
4034   _.invoke = function(obj, method) {
4035     var args = slice.call(arguments, 2);
4036     var isFunc = _.isFunction(method);
4037     return _.map(obj, function(value) {
4038       return (isFunc ? method : value[method]).apply(value, args);
4039     });
4040   };
4041
4042   // Convenience version of a common use case of `map`: fetching a property.
4043   _.pluck = function(obj, key) {
4044     return _.map(obj, _.property(key));
4045   };
4046
4047   // Convenience version of a common use case of `filter`: selecting only objects
4048   // containing specific `key:value` pairs.
4049   _.where = function(obj, attrs) {
4050     return _.filter(obj, _.matches(attrs));
4051   };
4052
4053   // Convenience version of a common use case of `find`: getting the first object
4054   // containing specific `key:value` pairs.
4055   _.findWhere = function(obj, attrs) {
4056     return _.find(obj, _.matches(attrs));
4057   };
4058
4059   // Return the maximum element (or element-based computation).
4060   _.max = function(obj, iteratee, context) {
4061     var result = -Infinity, lastComputed = -Infinity,
4062         value, computed;
4063     if (iteratee == null && obj != null) {
4064       obj = obj.length === +obj.length ? obj : _.values(obj);
4065       for (var i = 0, length = obj.length; i < length; i++) {
4066         value = obj[i];
4067         if (value > result) {
4068           result = value;
4069         }
4070       }
4071     } else {
4072       iteratee = _.iteratee(iteratee, context);
4073       _.each(obj, function(value, index, list) {
4074         computed = iteratee(value, index, list);
4075         if (computed > lastComputed || computed === -Infinity && result === -Infinity) {
4076           result = value;
4077           lastComputed = computed;
4078         }
4079       });
4080     }
4081     return result;
4082   };
4083
4084   // Return the minimum element (or element-based computation).
4085   _.min = function(obj, iteratee, context) {
4086     var result = Infinity, lastComputed = Infinity,
4087         value, computed;
4088     if (iteratee == null && obj != null) {
4089       obj = obj.length === +obj.length ? obj : _.values(obj);
4090       for (var i = 0, length = obj.length; i < length; i++) {
4091         value = obj[i];
4092         if (value < result) {
4093           result = value;
4094         }
4095       }
4096     } else {
4097       iteratee = _.iteratee(iteratee, context);
4098       _.each(obj, function(value, index, list) {
4099         computed = iteratee(value, index, list);
4100         if (computed < lastComputed || computed === Infinity && result === Infinity) {
4101           result = value;
4102           lastComputed = computed;
4103         }
4104       });
4105     }
4106     return result;
4107   };
4108
4109   // Shuffle a collection, using the modern version of the
4110   // [Fisher-Yates shuffle](http://en.wikipedia.org/wiki/Fisher–Yates_shuffle).
4111   _.shuffle = function(obj) {
4112     var set = obj && obj.length === +obj.length ? obj : _.values(obj);
4113     var length = set.length;
4114     var shuffled = Array(length);
4115     for (var index = 0, rand; index < length; index++) {
4116       rand = _.random(0, index);
4117       if (rand !== index) shuffled[index] = shuffled[rand];
4118       shuffled[rand] = set[index];
4119     }
4120     return shuffled;
4121   };
4122
4123   // Sample **n** random values from a collection.
4124   // If **n** is not specified, returns a single random element.
4125   // The internal `guard` argument allows it to work with `map`.
4126   _.sample = function(obj, n, guard) {
4127     if (n == null || guard) {
4128       if (obj.length !== +obj.length) obj = _.values(obj);
4129       return obj[_.random(obj.length - 1)];
4130     }
4131     return _.shuffle(obj).slice(0, Math.max(0, n));
4132   };
4133
4134   // Sort the object's values by a criterion produced by an iteratee.
4135   _.sortBy = function(obj, iteratee, context) {
4136     iteratee = _.iteratee(iteratee, context);
4137     return _.pluck(_.map(obj, function(value, index, list) {
4138       return {
4139         value: value,
4140         index: index,
4141         criteria: iteratee(value, index, list)
4142       };
4143     }).sort(function(left, right) {
4144       var a = left.criteria;
4145       var b = right.criteria;
4146       if (a !== b) {
4147         if (a > b || a === void 0) return 1;
4148         if (a < b || b === void 0) return -1;
4149       }
4150       return left.index - right.index;
4151     }), 'value');
4152   };
4153
4154   // An internal function used for aggregate "group by" operations.
4155   var group = function(behavior) {
4156     return function(obj, iteratee, context) {
4157       var result = {};
4158       iteratee = _.iteratee(iteratee, context);
4159       _.each(obj, function(value, index) {
4160         var key = iteratee(value, index, obj);
4161         behavior(result, value, key);
4162       });
4163       return result;
4164     };
4165   };
4166
4167   // Groups the object's values by a criterion. Pass either a string attribute
4168   // to group by, or a function that returns the criterion.
4169   _.groupBy = group(function(result, value, key) {
4170     if (_.has(result, key)) result[key].push(value); else result[key] = [value];
4171   });
4172
4173   // Indexes the object's values by a criterion, similar to `groupBy`, but for
4174   // when you know that your index values will be unique.
4175   _.indexBy = group(function(result, value, key) {
4176     result[key] = value;
4177   });
4178
4179   // Counts instances of an object that group by a certain criterion. Pass
4180   // either a string attribute to count by, or a function that returns the
4181   // criterion.
4182   _.countBy = group(function(result, value, key) {
4183     if (_.has(result, key)) result[key]++; else result[key] = 1;
4184   });
4185
4186   // Use a comparator function to figure out the smallest index at which
4187   // an object should be inserted so as to maintain order. Uses binary search.
4188   _.sortedIndex = function(array, obj, iteratee, context) {
4189     iteratee = _.iteratee(iteratee, context, 1);
4190     var value = iteratee(obj);
4191     var low = 0, high = array.length;
4192     while (low < high) {
4193       var mid = low + high >>> 1;
4194       if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;
4195     }
4196     return low;
4197   };
4198
4199   // Safely create a real, live array from anything iterable.
4200   _.toArray = function(obj) {
4201     if (!obj) return [];
4202     if (_.isArray(obj)) return slice.call(obj);
4203     if (obj.length === +obj.length) return _.map(obj, _.identity);
4204     return _.values(obj);
4205   };
4206
4207   // Return the number of elements in an object.
4208   _.size = function(obj) {
4209     if (obj == null) return 0;
4210     return obj.length === +obj.length ? obj.length : _.keys(obj).length;
4211   };
4212
4213   // Split a collection into two arrays: one whose elements all satisfy the given
4214   // predicate, and one whose elements all do not satisfy the predicate.
4215   _.partition = function(obj, predicate, context) {
4216     predicate = _.iteratee(predicate, context);
4217     var pass = [], fail = [];
4218     _.each(obj, function(value, key, obj) {
4219       (predicate(value, key, obj) ? pass : fail).push(value);
4220     });
4221     return [pass, fail];
4222   };
4223
4224   // Array Functions
4225   // ---------------
4226
4227   // Get the first element of an array. Passing **n** will return the first N
4228   // values in the array. Aliased as `head` and `take`. The **guard** check
4229   // allows it to work with `_.map`.
4230   _.first = _.head = _.take = function(array, n, guard) {
4231     if (array == null) return void 0;
4232     if (n == null || guard) return array[0];
4233     if (n < 0) return [];
4234     return slice.call(array, 0, n);
4235   };
4236
4237   // Returns everything but the last entry of the array. Especially useful on
4238   // the arguments object. Passing **n** will return all the values in
4239   // the array, excluding the last N. The **guard** check allows it to work with
4240   // `_.map`.
4241   _.initial = function(array, n, guard) {
4242     return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));
4243   };
4244
4245   // Get the last element of an array. Passing **n** will return the last N
4246   // values in the array. The **guard** check allows it to work with `_.map`.
4247   _.last = function(array, n, guard) {
4248     if (array == null) return void 0;
4249     if (n == null || guard) return array[array.length - 1];
4250     return slice.call(array, Math.max(array.length - n, 0));
4251   };
4252
4253   // Returns everything but the first entry of the array. Aliased as `tail` and `drop`.
4254   // Especially useful on the arguments object. Passing an **n** will return
4255   // the rest N values in the array. The **guard**
4256   // check allows it to work with `_.map`.
4257   _.rest = _.tail = _.drop = function(array, n, guard) {
4258     return slice.call(array, n == null || guard ? 1 : n);
4259   };
4260
4261   // Trim out all falsy values from an array.
4262   _.compact = function(array) {
4263     return _.filter(array, _.identity);
4264   };
4265
4266   // Internal implementation of a recursive `flatten` function.
4267   var flatten = function(input, shallow, strict, output) {
4268     if (shallow && _.every(input, _.isArray)) {
4269       return concat.apply(output, input);
4270     }
4271     for (var i = 0, length = input.length; i < length; i++) {
4272       var value = input[i];
4273       if (!_.isArray(value) && !_.isArguments(value)) {
4274         if (!strict) output.push(value);
4275       } else if (shallow) {
4276         push.apply(output, value);
4277       } else {
4278         flatten(value, shallow, strict, output);
4279       }
4280     }
4281     return output;
4282   };
4283
4284   // Flatten out an array, either recursively (by default), or just one level.
4285   _.flatten = function(array, shallow) {
4286     return flatten(array, shallow, false, []);
4287   };
4288
4289   // Return a version of the array that does not contain the specified value(s).
4290   _.without = function(array) {
4291     return _.difference(array, slice.call(arguments, 1));
4292   };
4293
4294   // Produce a duplicate-free version of the array. If the array has already
4295   // been sorted, you have the option of using a faster algorithm.
4296   // Aliased as `unique`.
4297   _.uniq = _.unique = function(array, isSorted, iteratee, context) {
4298     if (array == null) return [];
4299     if (!_.isBoolean(isSorted)) {
4300       context = iteratee;
4301       iteratee = isSorted;
4302       isSorted = false;
4303     }
4304     if (iteratee != null) iteratee = _.iteratee(iteratee, context);
4305     var result = [];
4306     var seen = [];
4307     for (var i = 0, length = array.length; i < length; i++) {
4308       var value = array[i];
4309       if (isSorted) {
4310         if (!i || seen !== value) result.push(value);
4311         seen = value;
4312       } else if (iteratee) {
4313         var computed = iteratee(value, i, array);
4314         if (_.indexOf(seen, computed) < 0) {
4315           seen.push(computed);
4316           result.push(value);
4317         }
4318       } else if (_.indexOf(result, value) < 0) {
4319         result.push(value);
4320       }
4321     }
4322     return result;
4323   };
4324
4325   // Produce an array that contains the union: each distinct element from all of
4326   // the passed-in arrays.
4327   _.union = function() {
4328     return _.uniq(flatten(arguments, true, true, []));
4329   };
4330
4331   // Produce an array that contains every item shared between all the
4332   // passed-in arrays.
4333   _.intersection = function(array) {
4334     if (array == null) return [];
4335     var result = [];
4336     var argsLength = arguments.length;
4337     for (var i = 0, length = array.length; i < length; i++) {
4338       var item = array[i];
4339       if (_.contains(result, item)) continue;
4340       for (var j = 1; j < argsLength; j++) {
4341         if (!_.contains(arguments[j], item)) break;
4342       }
4343       if (j === argsLength) result.push(item);
4344     }
4345     return result;
4346   };
4347
4348   // Take the difference between one array and a number of other arrays.
4349   // Only the elements present in just the first array will remain.
4350   _.difference = function(array) {
4351     var rest = flatten(slice.call(arguments, 1), true, true, []);
4352     return _.filter(array, function(value){
4353       return !_.contains(rest, value);
4354     });
4355   };
4356
4357   // Zip together multiple lists into a single array -- elements that share
4358   // an index go together.
4359   _.zip = function(array) {
4360     if (array == null) return [];
4361     var length = _.max(arguments, 'length').length;
4362     var results = Array(length);
4363     for (var i = 0; i < length; i++) {
4364       results[i] = _.pluck(arguments, i);
4365     }
4366     return results;
4367   };
4368
4369   // Converts lists into objects. Pass either a single array of `[key, value]`
4370   // pairs, or two parallel arrays of the same length -- one of keys, and one of
4371   // the corresponding values.
4372   _.object = function(list, values) {
4373     if (list == null) return {};
4374     var result = {};
4375     for (var i = 0, length = list.length; i < length; i++) {
4376       if (values) {
4377         result[list[i]] = values[i];
4378       } else {
4379         result[list[i][0]] = list[i][1];
4380       }
4381     }
4382     return result;
4383   };
4384
4385   // Return the position of the first occurrence of an item in an array,
4386   // or -1 if the item is not included in the array.
4387   // If the array is large and already in sort order, pass `true`
4388   // for **isSorted** to use binary search.
4389   _.indexOf = function(array, item, isSorted) {
4390     if (array == null) return -1;
4391     var i = 0, length = array.length;
4392     if (isSorted) {
4393       if (typeof isSorted == 'number') {
4394         i = isSorted < 0 ? Math.max(0, length + isSorted) : isSorted;
4395       } else {
4396         i = _.sortedIndex(array, item);
4397         return array[i] === item ? i : -1;
4398       }
4399     }
4400     for (; i < length; i++) if (array[i] === item) return i;
4401     return -1;
4402   };
4403
4404   _.lastIndexOf = function(array, item, from) {
4405     if (array == null) return -1;
4406     var idx = array.length;
4407     if (typeof from == 'number') {
4408       idx = from < 0 ? idx + from + 1 : Math.min(idx, from + 1);
4409     }
4410     while (--idx >= 0) if (array[idx] === item) return idx;
4411     return -1;
4412   };
4413
4414   // Generate an integer Array containing an arithmetic progression. A port of
4415   // the native Python `range()` function. See
4416   // [the Python documentation](http://docs.python.org/library/functions.html#range).
4417   _.range = function(start, stop, step) {
4418     if (arguments.length <= 1) {
4419       stop = start || 0;
4420       start = 0;
4421     }
4422     step = step || 1;
4423
4424     var length = Math.max(Math.ceil((stop - start) / step), 0);
4425     var range = Array(length);
4426
4427     for (var idx = 0; idx < length; idx++, start += step) {
4428       range[idx] = start;
4429     }
4430
4431     return range;
4432   };
4433
4434   // Function (ahem) Functions
4435   // ------------------
4436
4437   // Reusable constructor function for prototype setting.
4438   var Ctor = function(){};
4439
4440   // Create a function bound to a given object (assigning `this`, and arguments,
4441   // optionally). Delegates to **ECMAScript 5**'s native `Function.bind` if
4442   // available.
4443   _.bind = function(func, context) {
4444     var args, bound;
4445     if (nativeBind && func.bind === nativeBind) return nativeBind.apply(func, slice.call(arguments, 1));
4446     if (!_.isFunction(func)) throw new TypeError('Bind must be called on a function');
4447     args = slice.call(arguments, 2);
4448     bound = function() {
4449       if (!(this instanceof bound)) return func.apply(context, args.concat(slice.call(arguments)));
4450       Ctor.prototype = func.prototype;
4451       var self = new Ctor;
4452       Ctor.prototype = null;
4453       var result = func.apply(self, args.concat(slice.call(arguments)));
4454       if (_.isObject(result)) return result;
4455       return self;
4456     };
4457     return bound;
4458   };
4459
4460   // Partially apply a function by creating a version that has had some of its
4461   // arguments pre-filled, without changing its dynamic `this` context. _ acts
4462   // as a placeholder, allowing any combination of arguments to be pre-filled.
4463   _.partial = function(func) {
4464     var boundArgs = slice.call(arguments, 1);
4465     return function() {
4466       var position = 0;
4467       var args = boundArgs.slice();
4468       for (var i = 0, length = args.length; i < length; i++) {
4469         if (args[i] === _) args[i] = arguments[position++];
4470       }
4471       while (position < arguments.length) args.push(arguments[position++]);
4472       return func.apply(this, args);
4473     };
4474   };
4475
4476   // Bind a number of an object's methods to that object. Remaining arguments
4477   // are the method names to be bound. Useful for ensuring that all callbacks
4478   // defined on an object belong to it.
4479   _.bindAll = function(obj) {
4480     var i, length = arguments.length, key;
4481     if (length <= 1) throw new Error('bindAll must be passed function names');
4482     for (i = 1; i < length; i++) {
4483       key = arguments[i];
4484       obj[key] = _.bind(obj[key], obj);
4485     }
4486     return obj;
4487   };
4488
4489   // Memoize an expensive function by storing its results.
4490   _.memoize = function(func, hasher) {
4491     var memoize = function(key) {
4492       var cache = memoize.cache;
4493       var address = hasher ? hasher.apply(this, arguments) : key;
4494       if (!_.has(cache, address)) cache[address] = func.apply(this, arguments);
4495       return cache[address];
4496     };
4497     memoize.cache = {};
4498     return memoize;
4499   };
4500
4501   // Delays a function for the given number of milliseconds, and then calls
4502   // it with the arguments supplied.
4503   _.delay = function(func, wait) {
4504     var args = slice.call(arguments, 2);
4505     return setTimeout(function(){
4506       return func.apply(null, args);
4507     }, wait);
4508   };
4509
4510   // Defers a function, scheduling it to run after the current call stack has
4511   // cleared.
4512   _.defer = function(func) {
4513     return _.delay.apply(_, [func, 1].concat(slice.call(arguments, 1)));
4514   };
4515
4516   // Returns a function, that, when invoked, will only be triggered at most once
4517   // during a given window of time. Normally, the throttled function will run
4518   // as much as it can, without ever going more than once per `wait` duration;
4519   // but if you'd like to disable the execution on the leading edge, pass
4520   // `{leading: false}`. To disable execution on the trailing edge, ditto.
4521   _.throttle = function(func, wait, options) {
4522     var context, args, result;
4523     var timeout = null;
4524     var previous = 0;
4525     if (!options) options = {};
4526     var later = function() {
4527       previous = options.leading === false ? 0 : _.now();
4528       timeout = null;
4529       result = func.apply(context, args);
4530       if (!timeout) context = args = null;
4531     };
4532     return function() {
4533       var now = _.now();
4534       if (!previous && options.leading === false) previous = now;
4535       var remaining = wait - (now - previous);
4536       context = this;
4537       args = arguments;
4538       if (remaining <= 0 || remaining > wait) {
4539         clearTimeout(timeout);
4540         timeout = null;
4541         previous = now;
4542         result = func.apply(context, args);
4543         if (!timeout) context = args = null;
4544       } else if (!timeout && options.trailing !== false) {
4545         timeout = setTimeout(later, remaining);
4546       }
4547       return result;
4548     };
4549   };
4550
4551   // Returns a function, that, as long as it continues to be invoked, will not
4552   // be triggered. The function will be called after it stops being called for
4553   // N milliseconds. If `immediate` is passed, trigger the function on the
4554   // leading edge, instead of the trailing.
4555   _.debounce = function(func, wait, immediate) {
4556     var timeout, args, context, timestamp, result;
4557
4558     var later = function() {
4559       var last = _.now() - timestamp;
4560
4561       if (last < wait && last > 0) {
4562         timeout = setTimeout(later, wait - last);
4563       } else {
4564         timeout = null;
4565         if (!immediate) {
4566           result = func.apply(context, args);
4567           if (!timeout) context = args = null;
4568         }
4569       }
4570     };
4571
4572     return function() {
4573       context = this;
4574       args = arguments;
4575       timestamp = _.now();
4576       var callNow = immediate && !timeout;
4577       if (!timeout) timeout = setTimeout(later, wait);
4578       if (callNow) {
4579         result = func.apply(context, args);
4580         context = args = null;
4581       }
4582
4583       return result;
4584     };
4585   };
4586
4587   // Returns the first function passed as an argument to the second,
4588   // allowing you to adjust arguments, run code before and after, and
4589   // conditionally execute the original function.
4590   _.wrap = function(func, wrapper) {
4591     return _.partial(wrapper, func);
4592   };
4593
4594   // Returns a negated version of the passed-in predicate.
4595   _.negate = function(predicate) {
4596     return function() {
4597       return !predicate.apply(this, arguments);
4598     };
4599   };
4600
4601   // Returns a function that is the composition of a list of functions, each
4602   // consuming the return value of the function that follows.
4603   _.compose = function() {
4604     var args = arguments;
4605     var start = args.length - 1;
4606     return function() {
4607       var i = start;
4608       var result = args[start].apply(this, arguments);
4609       while (i--) result = args[i].call(this, result);
4610       return result;
4611     };
4612   };
4613
4614   // Returns a function that will only be executed after being called N times.
4615   _.after = function(times, func) {
4616     return function() {
4617       if (--times < 1) {
4618         return func.apply(this, arguments);
4619       }
4620     };
4621   };
4622
4623   // Returns a function that will only be executed before being called N times.
4624   _.before = function(times, func) {
4625     var memo;
4626     return function() {
4627       if (--times > 0) {
4628         memo = func.apply(this, arguments);
4629       } else {
4630         func = null;
4631       }
4632       return memo;
4633     };
4634   };
4635
4636   // Returns a function that will be executed at most one time, no matter how
4637   // often you call it. Useful for lazy initialization.
4638   _.once = _.partial(_.before, 2);
4639
4640   // Object Functions
4641   // ----------------
4642
4643   // Retrieve the names of an object's properties.
4644   // Delegates to **ECMAScript 5**'s native `Object.keys`
4645   _.keys = function(obj) {
4646     if (!_.isObject(obj)) return [];
4647     if (nativeKeys) return nativeKeys(obj);
4648     var keys = [];
4649     for (var key in obj) if (_.has(obj, key)) keys.push(key);
4650     return keys;
4651   };
4652
4653   // Retrieve the values of an object's properties.
4654   _.values = function(obj) {
4655     var keys = _.keys(obj);
4656     var length = keys.length;
4657     var values = Array(length);
4658     for (var i = 0; i < length; i++) {
4659       values[i] = obj[keys[i]];
4660     }
4661     return values;
4662   };
4663
4664   // Convert an object into a list of `[key, value]` pairs.
4665   _.pairs = function(obj) {
4666     var keys = _.keys(obj);
4667     var length = keys.length;
4668     var pairs = Array(length);
4669     for (var i = 0; i < length; i++) {
4670       pairs[i] = [keys[i], obj[keys[i]]];
4671     }
4672     return pairs;
4673   };
4674
4675   // Invert the keys and values of an object. The values must be serializable.
4676   _.invert = function(obj) {
4677     var result = {};
4678     var keys = _.keys(obj);
4679     for (var i = 0, length = keys.length; i < length; i++) {
4680       result[obj[keys[i]]] = keys[i];
4681     }
4682     return result;
4683   };
4684
4685   // Return a sorted list of the function names available on the object.
4686   // Aliased as `methods`
4687   _.functions = _.methods = function(obj) {
4688     var names = [];
4689     for (var key in obj) {
4690       if (_.isFunction(obj[key])) names.push(key);
4691     }
4692     return names.sort();
4693   };
4694
4695   // Extend a given object with all the properties in passed-in object(s).
4696   _.extend = function(obj) {
4697     if (!_.isObject(obj)) return obj;
4698     var source, prop;
4699     for (var i = 1, length = arguments.length; i < length; i++) {
4700       source = arguments[i];
4701       for (prop in source) {
4702         if (hasOwnProperty.call(source, prop)) {
4703             obj[prop] = source[prop];
4704         }
4705       }
4706     }
4707     return obj;
4708   };
4709
4710   // Return a copy of the object only containing the whitelisted properties.
4711   _.pick = function(obj, iteratee, context) {
4712     var result = {}, key;
4713     if (obj == null) return result;
4714     if (_.isFunction(iteratee)) {
4715       iteratee = createCallback(iteratee, context);
4716       for (key in obj) {
4717         var value = obj[key];
4718         if (iteratee(value, key, obj)) result[key] = value;
4719       }
4720     } else {
4721       var keys = concat.apply([], slice.call(arguments, 1));
4722       obj = new Object(obj);
4723       for (var i = 0, length = keys.length; i < length; i++) {
4724         key = keys[i];
4725         if (key in obj) result[key] = obj[key];
4726       }
4727     }
4728     return result;
4729   };
4730
4731    // Return a copy of the object without the blacklisted properties.
4732   _.omit = function(obj, iteratee, context) {
4733     if (_.isFunction(iteratee)) {
4734       iteratee = _.negate(iteratee);
4735     } else {
4736       var keys = _.map(concat.apply([], slice.call(arguments, 1)), String);
4737       iteratee = function(value, key) {
4738         return !_.contains(keys, key);
4739       };
4740     }
4741     return _.pick(obj, iteratee, context);
4742   };
4743
4744   // Fill in a given object with default properties.
4745   _.defaults = function(obj) {
4746     if (!_.isObject(obj)) return obj;
4747     for (var i = 1, length = arguments.length; i < length; i++) {
4748       var source = arguments[i];
4749       for (var prop in source) {
4750         if (obj[prop] === void 0) obj[prop] = source[prop];
4751       }
4752     }
4753     return obj;
4754   };
4755
4756   // Create a (shallow-cloned) duplicate of an object.
4757   _.clone = function(obj) {
4758     if (!_.isObject(obj)) return obj;
4759     return _.isArray(obj) ? obj.slice() : _.extend({}, obj);
4760   };
4761
4762   // Invokes interceptor with the obj, and then returns obj.
4763   // The primary purpose of this method is to "tap into" a method chain, in
4764   // order to perform operations on intermediate results within the chain.
4765   _.tap = function(obj, interceptor) {
4766     interceptor(obj);
4767     return obj;
4768   };
4769
4770   // Internal recursive comparison function for `isEqual`.
4771   var eq = function(a, b, aStack, bStack) {
4772     // Identical objects are equal. `0 === -0`, but they aren't identical.
4773     // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).
4774     if (a === b) return a !== 0 || 1 / a === 1 / b;
4775     // A strict comparison is necessary because `null == undefined`.
4776     if (a == null || b == null) return a === b;
4777     // Unwrap any wrapped objects.
4778     if (a instanceof _) a = a._wrapped;
4779     if (b instanceof _) b = b._wrapped;
4780     // Compare `[[Class]]` names.
4781     var className = toString.call(a);
4782     if (className !== toString.call(b)) return false;
4783     switch (className) {
4784       // Strings, numbers, regular expressions, dates, and booleans are compared by value.
4785       case '[object RegExp]':
4786       // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')
4787       case '[object String]':
4788         // Primitives and their corresponding object wrappers are equivalent; thus, `"5"` is
4789         // equivalent to `new String("5")`.
4790         return '' + a === '' + b;
4791       case '[object Number]':
4792         // `NaN`s are equivalent, but non-reflexive.
4793         // Object(NaN) is equivalent to NaN
4794         if (+a !== +a) return +b !== +b;
4795         // An `egal` comparison is performed for other numeric values.
4796         return +a === 0 ? 1 / +a === 1 / b : +a === +b;
4797       case '[object Date]':
4798       case '[object Boolean]':
4799         // Coerce dates and booleans to numeric primitive values. Dates are compared by their
4800         // millisecond representations. Note that invalid dates with millisecond representations
4801         // of `NaN` are not equivalent.
4802         return +a === +b;
4803     }
4804     if (typeof a != 'object' || typeof b != 'object') return false;
4805     // Assume equality for cyclic structures. The algorithm for detecting cyclic
4806     // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.
4807     var length = aStack.length;
4808     while (length--) {
4809       // Linear search. Performance is inversely proportional to the number of
4810       // unique nested structures.
4811       if (aStack[length] === a) return bStack[length] === b;
4812     }
4813     // Objects with different constructors are not equivalent, but `Object`s
4814     // from different frames are.
4815     var aCtor = a.constructor, bCtor = b.constructor;
4816     if (
4817       aCtor !== bCtor &&
4818       // Handle Object.create(x) cases
4819       'constructor' in a && 'constructor' in b &&
4820       !(_.isFunction(aCtor) && aCtor instanceof aCtor &&
4821         _.isFunction(bCtor) && bCtor instanceof bCtor)
4822     ) {
4823       return false;
4824     }
4825     // Add the first object to the stack of traversed objects.
4826     aStack.push(a);
4827     bStack.push(b);
4828     var size, result;
4829     // Recursively compare objects and arrays.
4830     if (className === '[object Array]') {
4831       // Compare array lengths to determine if a deep comparison is necessary.
4832       size = a.length;
4833       result = size === b.length;
4834       if (result) {
4835         // Deep compare the contents, ignoring non-numeric properties.
4836         while (size--) {
4837           if (!(result = eq(a[size], b[size], aStack, bStack))) break;
4838         }
4839       }
4840     } else {
4841       // Deep compare objects.
4842       var keys = _.keys(a), key;
4843       size = keys.length;
4844       // Ensure that both objects contain the same number of properties before comparing deep equality.
4845       result = _.keys(b).length === size;
4846       if (result) {
4847         while (size--) {
4848           // Deep compare each member
4849           key = keys[size];
4850           if (!(result = _.has(b, key) && eq(a[key], b[key], aStack, bStack))) break;
4851         }
4852       }
4853     }
4854     // Remove the first object from the stack of traversed objects.
4855     aStack.pop();
4856     bStack.pop();
4857     return result;
4858   };
4859
4860   // Perform a deep comparison to check if two objects are equal.
4861   _.isEqual = function(a, b) {
4862     return eq(a, b, [], []);
4863   };
4864
4865   // Is a given array, string, or object empty?
4866   // An "empty" object has no enumerable own-properties.
4867   _.isEmpty = function(obj) {
4868     if (obj == null) return true;
4869     if (_.isArray(obj) || _.isString(obj) || _.isArguments(obj)) return obj.length === 0;
4870     for (var key in obj) if (_.has(obj, key)) return false;
4871     return true;
4872   };
4873
4874   // Is a given value a DOM element?
4875   _.isElement = function(obj) {
4876     return !!(obj && obj.nodeType === 1);
4877   };
4878
4879   // Is a given value an array?
4880   // Delegates to ECMA5's native Array.isArray
4881   _.isArray = nativeIsArray || function(obj) {
4882     return toString.call(obj) === '[object Array]';
4883   };
4884
4885   // Is a given variable an object?
4886   _.isObject = function(obj) {
4887     var type = typeof obj;
4888     return type === 'function' || type === 'object' && !!obj;
4889   };
4890
4891   // Add some isType methods: isArguments, isFunction, isString, isNumber, isDate, isRegExp.
4892   _.each(['Arguments', 'Function', 'String', 'Number', 'Date', 'RegExp'], function(name) {
4893     _['is' + name] = function(obj) {
4894       return toString.call(obj) === '[object ' + name + ']';
4895     };
4896   });
4897
4898   // Define a fallback version of the method in browsers (ahem, IE), where
4899   // there isn't any inspectable "Arguments" type.
4900   if (!_.isArguments(arguments)) {
4901     _.isArguments = function(obj) {
4902       return _.has(obj, 'callee');
4903     };
4904   }
4905
4906   // Optimize `isFunction` if appropriate. Work around an IE 11 bug.
4907   if (typeof /./ !== 'function') {
4908     _.isFunction = function(obj) {
4909       return typeof obj == 'function' || false;
4910     };
4911   }
4912
4913   // Is a given object a finite number?
4914   _.isFinite = function(obj) {
4915     return isFinite(obj) && !isNaN(parseFloat(obj));
4916   };
4917
4918   // Is the given value `NaN`? (NaN is the only number which does not equal itself).
4919   _.isNaN = function(obj) {
4920     return _.isNumber(obj) && obj !== +obj;
4921   };
4922
4923   // Is a given value a boolean?
4924   _.isBoolean = function(obj) {
4925     return obj === true || obj === false || toString.call(obj) === '[object Boolean]';
4926   };
4927
4928   // Is a given value equal to null?
4929   _.isNull = function(obj) {
4930     return obj === null;
4931   };
4932
4933   // Is a given variable undefined?
4934   _.isUndefined = function(obj) {
4935     return obj === void 0;
4936   };
4937
4938   // Shortcut function for checking if an object has a given property directly
4939   // on itself (in other words, not on a prototype).
4940   _.has = function(obj, key) {
4941     return obj != null && hasOwnProperty.call(obj, key);
4942   };
4943
4944   // Utility Functions
4945   // -----------------
4946
4947   // Run Underscore.js in *noConflict* mode, returning the `_` variable to its
4948   // previous owner. Returns a reference to the Underscore object.
4949   _.noConflict = function() {
4950     root._ = previousUnderscore;
4951     return this;
4952   };
4953
4954   // Keep the identity function around for default iteratees.
4955   _.identity = function(value) {
4956     return value;
4957   };
4958
4959   _.constant = function(value) {
4960     return function() {
4961       return value;
4962     };
4963   };
4964
4965   _.noop = function(){};
4966
4967   _.property = function(key) {
4968     return function(obj) {
4969       return obj[key];
4970     };
4971   };
4972
4973   // Returns a predicate for checking whether an object has a given set of `key:value` pairs.
4974   _.matches = function(attrs) {
4975     var pairs = _.pairs(attrs), length = pairs.length;
4976     return function(obj) {
4977       if (obj == null) return !length;
4978       obj = new Object(obj);
4979       for (var i = 0; i < length; i++) {
4980         var pair = pairs[i], key = pair[0];
4981         if (pair[1] !== obj[key] || !(key in obj)) return false;
4982       }
4983       return true;
4984     };
4985   };
4986
4987   // Run a function **n** times.
4988   _.times = function(n, iteratee, context) {
4989     var accum = Array(Math.max(0, n));
4990     iteratee = createCallback(iteratee, context, 1);
4991     for (var i = 0; i < n; i++) accum[i] = iteratee(i);
4992     return accum;
4993   };
4994
4995   // Return a random integer between min and max (inclusive).
4996   _.random = function(min, max) {
4997     if (max == null) {
4998       max = min;
4999       min = 0;
5000     }
5001     return min + Math.floor(Math.random() * (max - min + 1));
5002   };
5003
5004   // A (possibly faster) way to get the current timestamp as an integer.
5005   _.now = Date.now || function() {
5006     return new Date().getTime();
5007   };
5008
5009    // List of HTML entities for escaping.
5010   var escapeMap = {
5011     '&': '&amp;',
5012     '<': '&lt;',
5013     '>': '&gt;',
5014     '"': '&quot;',
5015     "'": '&#x27;',
5016     '`': '&#x60;'
5017   };
5018   var unescapeMap = _.invert(escapeMap);
5019
5020   // Functions for escaping and unescaping strings to/from HTML interpolation.
5021   var createEscaper = function(map) {
5022     var escaper = function(match) {
5023       return map[match];
5024     };
5025     // Regexes for identifying a key that needs to be escaped
5026     var source = '(?:' + _.keys(map).join('|') + ')';
5027     var testRegexp = RegExp(source);
5028     var replaceRegexp = RegExp(source, 'g');
5029     return function(string) {
5030       string = string == null ? '' : '' + string;
5031       return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;
5032     };
5033   };
5034   _.escape = createEscaper(escapeMap);
5035   _.unescape = createEscaper(unescapeMap);
5036
5037   // If the value of the named `property` is a function then invoke it with the
5038   // `object` as context; otherwise, return it.
5039   _.result = function(object, property) {
5040     if (object == null) return void 0;
5041     var value = object[property];
5042     return _.isFunction(value) ? object[property]() : value;
5043   };
5044
5045   // Generate a unique integer id (unique within the entire client session).
5046   // Useful for temporary DOM ids.
5047   var idCounter = 0;
5048   _.uniqueId = function(prefix) {
5049     var id = ++idCounter + '';
5050     return prefix ? prefix + id : id;
5051   };
5052
5053   // By default, Underscore uses ERB-style template delimiters, change the
5054   // following template settings to use alternative delimiters.
5055   _.templateSettings = {
5056     evaluate    : /<%([\s\S]+?)%>/g,
5057     interpolate : /<%=([\s\S]+?)%>/g,
5058     escape      : /<%-([\s\S]+?)%>/g
5059   };
5060
5061   // When customizing `templateSettings`, if you don't want to define an
5062   // interpolation, evaluation or escaping regex, we need one that is
5063   // guaranteed not to match.
5064   var noMatch = /(.)^/;
5065
5066   // Certain characters need to be escaped so that they can be put into a
5067   // string literal.
5068   var escapes = {
5069     "'":      "'",
5070     '\\':     '\\',
5071     '\r':     'r',
5072     '\n':     'n',
5073     '\u2028': 'u2028',
5074     '\u2029': 'u2029'
5075   };
5076
5077   var escaper = /\\|'|\r|\n|\u2028|\u2029/g;
5078
5079   var escapeChar = function(match) {
5080     return '\\' + escapes[match];
5081   };
5082
5083   // JavaScript micro-templating, similar to John Resig's implementation.
5084   // Underscore templating handles arbitrary delimiters, preserves whitespace,
5085   // and correctly escapes quotes within interpolated code.
5086   // NB: `oldSettings` only exists for backwards compatibility.
5087   _.template = function(text, settings, oldSettings) {
5088     if (!settings && oldSettings) settings = oldSettings;
5089     settings = _.defaults({}, settings, _.templateSettings);
5090
5091     // Combine delimiters into one regular expression via alternation.
5092     var matcher = RegExp([
5093       (settings.escape || noMatch).source,
5094       (settings.interpolate || noMatch).source,
5095       (settings.evaluate || noMatch).source
5096     ].join('|') + '|$', 'g');
5097
5098     // Compile the template source, escaping string literals appropriately.
5099     var index = 0;
5100     var source = "__p+='";
5101     text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {
5102       source += text.slice(index, offset).replace(escaper, escapeChar);
5103       index = offset + match.length;
5104
5105       if (escape) {
5106         source += "'+\n((__t=(" + escape + "))==null?'':_.escape(__t))+\n'";
5107       } else if (interpolate) {
5108         source += "'+\n((__t=(" + interpolate + "))==null?'':__t)+\n'";
5109       } else if (evaluate) {
5110         source += "';\n" + evaluate + "\n__p+='";
5111       }
5112
5113       // Adobe VMs need the match returned to produce the correct offest.
5114       return match;
5115     });
5116     source += "';\n";
5117
5118     // If a variable is not specified, place data values in local scope.
5119     if (!settings.variable) source = 'with(obj||{}){\n' + source + '}\n';
5120
5121     source = "var __t,__p='',__j=Array.prototype.join," +
5122       "print=function(){__p+=__j.call(arguments,'');};\n" +
5123       source + 'return __p;\n';
5124
5125     try {
5126       var render = new Function(settings.variable || 'obj', '_', source);
5127     } catch (e) {
5128       e.source = source;
5129       throw e;
5130     }
5131
5132     var template = function(data) {
5133       return render.call(this, data, _);
5134     };
5135
5136     // Provide the compiled source as a convenience for precompilation.
5137     var argument = settings.variable || 'obj';
5138     template.source = 'function(' + argument + '){\n' + source + '}';
5139
5140     return template;
5141   };
5142
5143   // Add a "chain" function. Start chaining a wrapped Underscore object.
5144   _.chain = function(obj) {
5145     var instance = _(obj);
5146     instance._chain = true;
5147     return instance;
5148   };
5149
5150   // OOP
5151   // ---------------
5152   // If Underscore is called as a function, it returns a wrapped object that
5153   // can be used OO-style. This wrapper holds altered versions of all the
5154   // underscore functions. Wrapped objects may be chained.
5155
5156   // Helper function to continue chaining intermediate results.
5157   var result = function(obj) {
5158     return this._chain ? _(obj).chain() : obj;
5159   };
5160
5161   // Add your own custom functions to the Underscore object.
5162   _.mixin = function(obj) {
5163     _.each(_.functions(obj), function(name) {
5164       var func = _[name] = obj[name];
5165       _.prototype[name] = function() {
5166         var args = [this._wrapped];
5167         push.apply(args, arguments);
5168         return result.call(this, func.apply(_, args));
5169       };
5170     });
5171   };
5172
5173   // Add all of the Underscore functions to the wrapper object.
5174   _.mixin(_);
5175
5176   // Add all mutator Array functions to the wrapper.
5177   _.each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {
5178     var method = ArrayProto[name];
5179     _.prototype[name] = function() {
5180       var obj = this._wrapped;
5181       method.apply(obj, arguments);
5182       if ((name === 'shift' || name === 'splice') && obj.length === 0) delete obj[0];
5183       return result.call(this, obj);
5184     };
5185   });
5186
5187   // Add all accessor Array functions to the wrapper.
5188   _.each(['concat', 'join', 'slice'], function(name) {
5189     var method = ArrayProto[name];
5190     _.prototype[name] = function() {
5191       return result.call(this, method.apply(this._wrapped, arguments));
5192     };
5193   });
5194
5195   // Extracts the result from a wrapped and chained object.
5196   _.prototype.value = function() {
5197     return this._wrapped;
5198   };
5199
5200   // AMD registration happens at the end for compatibility with AMD loaders
5201   // that may not enforce next-turn semantics on modules. Even though general
5202   // practice for AMD registration is to be anonymous, underscore registers
5203   // as a named module because, like jQuery, it is a base library that is
5204   // popular enough to be bundled in a third party lib, but not be part of
5205   // an AMD load request. Those cases could generate an error when an
5206   // anonymous define() is called outside of a loader request.
5207   if (typeof define === 'function' && define.amd) {
5208     define('underscore', [], function() {
5209       return _;
5210     });
5211   }
5212 }.call(this));
5213
5214 },{}],60:[function(require,module,exports){
5215 var _;
5216
5217 _ = require("underscore");
5218
5219 module.exports = function(seqs) {
5220   var occs;
5221   seqs = seqs.map(function(el) {
5222     return el.get("seq");
5223   });
5224   occs = new Array(seqs.length);
5225   _.each(seqs, function(el, i) {
5226     return _.each(el, function(char, pos) {
5227       if (occs[pos] == null) {
5228         occs[pos] = {};
5229       }
5230       if (occs[pos][char] == null) {
5231         occs[pos][char] = 0;
5232       }
5233       return occs[pos][char]++;
5234     });
5235   });
5236   return _.reduce(occs, function(memo, occ) {
5237     var keys;
5238     keys = _.keys(occ);
5239     return memo += _.max(keys, function(key) {
5240       return occ[key];
5241     });
5242   }, "");
5243 };
5244
5245
5246
5247 },{"underscore":59}],61:[function(require,module,exports){
5248 var identitiyCalc;
5249
5250 module.exports = identitiyCalc = function(seqs, consensus) {
5251   if (consensus === void 0) {
5252     console.warn("bug on consenus calc");
5253     return;
5254   }
5255   return seqs.each(function(seqObj) {
5256     var i, matches, seq, total, _i, _ref;
5257     seq = seqObj.get("seq");
5258     matches = 0;
5259     total = 0;
5260     for (i = _i = 0, _ref = seq.length - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
5261       if (seq[i] !== "-" && consensus[i] !== "-") {
5262         total++;
5263         if (seq[i] === consensus[i]) {
5264           matches++;
5265         }
5266       }
5267     }
5268     return seqObj.set("identity", matches / total);
5269   });
5270 };
5271
5272
5273
5274 },{}],62:[function(require,module,exports){
5275 module.exports.consensus = require("./ConsensusCalc");
5276
5277
5278
5279 },{"./ConsensusCalc":60}],63:[function(require,module,exports){
5280 var Colorator, Model;
5281
5282 Model = require("backbone-thin").Model;
5283
5284 module.exports = Colorator = Model.extend({
5285   defaults: {
5286     scheme: "taylor",
5287     colorBackground: true,
5288     showLowerCase: true,
5289     opacity: 0.6
5290   }
5291 });
5292
5293
5294
5295 },{"backbone-thin":5}],64:[function(require,module,exports){
5296 var Columns, Model, consenus, _;
5297
5298 Model = require("backbone-thin").Model;
5299
5300 consenus = require("../algo/ConsensusCalc");
5301
5302 _ = require("underscore");
5303
5304 module.exports = Columns = Model.extend({
5305   defaults: {
5306     scaling: "lin"
5307   },
5308   initialize: function() {
5309     if (this.get("hidden") == null) {
5310       return this.set("hidden", []);
5311     }
5312   },
5313   calcHiddenColumns: function(n) {
5314     var hidden, i, newX, _i, _len;
5315     hidden = this.get("hidden");
5316     newX = n;
5317     for (_i = 0, _len = hidden.length; _i < _len; _i++) {
5318       i = hidden[_i];
5319       if (i <= newX) {
5320         newX++;
5321       }
5322     }
5323     return newX - n;
5324   },
5325   _calcConservationPre: function(seqs) {
5326     var cons, matches, nMax, total;
5327     console.log(seqs.length);
5328     if (seqs.length > 1000) {
5329       return;
5330     }
5331     cons = consenus(seqs);
5332     seqs = seqs.map(function(el) {
5333       return el.get("seq");
5334     });
5335     nMax = (_.max(seqs, function(el) {
5336       return el.length;
5337     })).length;
5338     total = new Array(nMax);
5339     matches = new Array(nMax);
5340     _.each(seqs, function(el, i) {
5341       return _.each(el, function(char, pos) {
5342         total[pos] = total[pos] + 1 || 1;
5343         if (cons[pos] === char) {
5344           return matches[pos] = matches[pos] + 1 || 1;
5345         }
5346       });
5347     });
5348     return [matches, total, nMax];
5349   },
5350   calcConservation: function(seqs) {
5351     if (this.attributes.scaling === "exp") {
5352       return this.calcConservationExp(seqs);
5353     } else if (this.attributes.scaling === "log") {
5354       return this.calcConservationLog(seqs);
5355     } else if (this.attributes.scaling === "lin") {
5356       return this.calcConservationLin(seqs);
5357     }
5358   },
5359   calcConservationLin: function(seqs) {
5360     var i, matches, nMax, total, _i, _ref, _ref1;
5361     _ref = this._calcConservationPre(seqs), matches = _ref[0], total = _ref[1], nMax = _ref[2];
5362     for (i = _i = 0, _ref1 = nMax - 1; 0 <= _ref1 ? _i <= _ref1 : _i >= _ref1; i = 0 <= _ref1 ? ++_i : --_i) {
5363       matches[i] = matches[i] / total[i];
5364     }
5365     this.set("conserv", matches);
5366     return matches;
5367   },
5368   calcConservationLog: function(seqs) {
5369     var i, matches, nMax, total, _i, _ref, _ref1;
5370     _ref = this._calcConservationPre(seqs), matches = _ref[0], total = _ref[1], nMax = _ref[2];
5371     for (i = _i = 0, _ref1 = nMax - 1; 0 <= _ref1 ? _i <= _ref1 : _i >= _ref1; i = 0 <= _ref1 ? ++_i : --_i) {
5372       matches[i] = Math.log(matches[i] + 1) / Math.log(total[i] + 1);
5373     }
5374     this.set("conserv", matches);
5375     return matches;
5376   },
5377   calcConservationExp: function(seqs) {
5378     var i, matches, nMax, total, _i, _ref, _ref1;
5379     _ref = this._calcConservationPre(seqs), matches = _ref[0], total = _ref[1], nMax = _ref[2];
5380     for (i = _i = 0, _ref1 = nMax - 1; 0 <= _ref1 ? _i <= _ref1 : _i >= _ref1; i = 0 <= _ref1 ? ++_i : --_i) {
5381       matches[i] = Math.exp(matches[i] + 1) / Math.exp(total[i] + 1);
5382     }
5383     this.set("conserv", matches);
5384     return matches;
5385   }
5386 });
5387
5388
5389
5390 },{"../algo/ConsensusCalc":60,"backbone-thin":5,"underscore":59}],65:[function(require,module,exports){
5391 var Config, Model;
5392
5393 Model = require("backbone-thin").Model;
5394
5395 module.exports = Config = Model.extend({
5396   defaults: {
5397     registerMouseHover: false,
5398     registerMouseClicks: true,
5399     importProxy: "https://cors-anywhere.herokuapp.com/",
5400     eventBus: true
5401   }
5402 });
5403
5404
5405
5406 },{"backbone-thin":5}],66:[function(require,module,exports){
5407 var Consenus, Model, consenusCalc;
5408
5409 Model = require("backbone-thin").Model;
5410
5411 consenusCalc = require("../algo/ConsensusCalc");
5412
5413 module.exports = Consenus = Model.extend({
5414   defaults: {
5415     consenus: ""
5416   },
5417   getConsensus: function(seqs) {
5418     var cons;
5419     if (seqs.length > 1000) {
5420       return;
5421     }
5422     cons = consenusCalc(seqs);
5423     this.set("consenus", cons);
5424     return cons;
5425   }
5426 });
5427
5428
5429
5430 },{"../algo/ConsensusCalc":60,"backbone-thin":5}],67:[function(require,module,exports){
5431 var ColumnSelection, Model, PosSelection, RowSelection, Selection, _;
5432
5433 _ = require("underscore");
5434
5435 Model = require("backbone-thin").Model;
5436
5437 Selection = Model.extend({
5438   defaults: {
5439     type: "super"
5440   }
5441 });
5442
5443 RowSelection = Selection.extend({
5444   defaults: _.extend({}, Selection.prototype.defaults, {
5445     type: "row",
5446     seqId: ""
5447   }),
5448   inRow: function(seqId) {
5449     return seqId === this.get("seqId");
5450   },
5451   inColumn: function(rowPos) {
5452     return true;
5453   },
5454   getLength: function() {
5455     return 1;
5456   }
5457 });
5458
5459 ColumnSelection = Selection.extend({
5460   defaults: _.extend({}, Selection.prototype.defaults, {
5461     type: "column",
5462     xStart: -1,
5463     xEnd: -1
5464   }),
5465   inRow: function() {
5466     return true;
5467   },
5468   inColumn: function(rowPos) {
5469     return xStart <= rowPos && rowPos <= xEnd;
5470   },
5471   getLength: function() {
5472     return xEnd - xStart;
5473   }
5474 });
5475
5476 PosSelection = RowSelection.extend(_.extend({}, _.pick(ColumnSelection, "inColumn"), _.pick(ColumnSelection, "getLength"), {
5477   defaults: _.extend({}, ColumnSelection.prototype.defaults, RowSelection.prototype.defaults, {
5478     type: "pos"
5479   })
5480 }));
5481
5482 module.exports.sel = Selection;
5483
5484 module.exports.possel = PosSelection;
5485
5486 module.exports.rowsel = RowSelection;
5487
5488 module.exports.columnsel = ColumnSelection;
5489
5490
5491
5492 },{"backbone-thin":5,"underscore":59}],68:[function(require,module,exports){
5493 var Collection, SelectionManager, sel, _;
5494
5495 sel = require("./Selection");
5496
5497 _ = require("underscore");
5498
5499 Collection = require("backbone-thin").Collection;
5500
5501 module.exports = SelectionManager = Collection.extend({
5502   model: sel.sel,
5503   initialize: function(data, opts) {
5504     this.g = opts.g;
5505     this.listenTo(this.g, "residue:click", function(e) {
5506       return this._handleE(e.evt, new sel.possel({
5507         xStart: e.rowPos,
5508         xEnd: e.rowPos,
5509         seqId: e.seqId
5510       }));
5511     });
5512     this.listenTo(this.g, "row:click", function(e) {
5513       return this._handleE(e.evt, new sel.rowsel({
5514         xStart: e.rowPos,
5515         xEnd: e.rowPos,
5516         seqId: e.seqId
5517       }));
5518     });
5519     return this.listenTo(this.g, "column:click", function(e) {
5520       return this._handleE(e.evt, new sel.columnsel({
5521         xStart: e.rowPos,
5522         xEnd: e.rowPos + e.stepSize - 1
5523       }));
5524     });
5525   },
5526   getSelForRow: function(seqId) {
5527     return this.filter(function(el) {
5528       return el.inRow(seqId);
5529     });
5530   },
5531   getSelForColumns: function(rowPos) {
5532     return this.filter(function(el) {
5533       return el.inColumn(rowPos);
5534     });
5535   },
5536   getBlocksForRow: function(seqId, maxLen) {
5537     var blocks, seli, selis, _i, _j, _k, _len, _ref, _ref1, _results, _results1;
5538     selis = this.filter(function(el) {
5539       return el.inRow(seqId);
5540     });
5541     blocks = [];
5542     for (_i = 0, _len = selis.length; _i < _len; _i++) {
5543       seli = selis[_i];
5544       if (seli.attributes.type === "row") {
5545         blocks = (function() {
5546           _results = [];
5547           for (var _j = 0; 0 <= maxLen ? _j <= maxLen : _j >= maxLen; 0 <= maxLen ? _j++ : _j--){ _results.push(_j); }
5548           return _results;
5549         }).apply(this);
5550         break;
5551       } else {
5552         blocks = blocks.concat((function() {
5553           _results1 = [];
5554           for (var _k = _ref = seli.attributes.xStart, _ref1 = seli.attributes.xEnd; _ref <= _ref1 ? _k <= _ref1 : _k >= _ref1; _ref <= _ref1 ? _k++ : _k--){ _results1.push(_k); }
5555           return _results1;
5556         }).apply(this));
5557       }
5558     }
5559     return blocks;
5560   },
5561   getAllColumnBlocks: function(conf) {
5562     var blocks, filtered, maxLen, seli, withPos, _i, _j, _len, _ref, _ref1, _results;
5563     maxLen = conf.maxLen;
5564     withPos = conf.withPos;
5565     blocks = [];
5566     if (conf.withPos) {
5567       filtered = this.filter(function(el) {
5568         return el.get('xStart') != null;
5569       });
5570     } else {
5571       filtered = this.filter(function(el) {
5572         return el.get('type') === "column";
5573       });
5574     }
5575     for (_i = 0, _len = filtered.length; _i < _len; _i++) {
5576       seli = filtered[_i];
5577       blocks = blocks.concat((function() {
5578         _results = [];
5579         for (var _j = _ref = seli.attributes.xStart, _ref1 = seli.attributes.xEnd; _ref <= _ref1 ? _j <= _ref1 : _j >= _ref1; _ref <= _ref1 ? _j++ : _j--){ _results.push(_j); }
5580         return _results;
5581       }).apply(this));
5582     }
5583     blocks = _.uniq(blocks);
5584     return blocks;
5585   },
5586   invertRow: function(rows) {
5587     var el, inverted, s, selRows, _i, _len;
5588     selRows = this.where({
5589       type: "row"
5590     });
5591     selRows = _.map(selRows, function(el) {
5592       return el.attributes.seqId;
5593     });
5594     inverted = _.filter(rows, function(el) {
5595       if (selRows.indexOf(el) >= 0) {
5596         return false;
5597       }
5598       return true;
5599     });
5600     s = [];
5601     for (_i = 0, _len = inverted.length; _i < _len; _i++) {
5602       el = inverted[_i];
5603       s.push(new sel.rowsel({
5604         seqId: el
5605       }));
5606     }
5607     console.log(s);
5608     return this.reset(s);
5609   },
5610   invertCol: function(columns) {
5611     var el, inverted, s, selColumns, xEnd, xStart, _i, _len;
5612     selColumns = this.where({
5613       type: "column"
5614     });
5615     selColumns = _.reduce(selColumns, function(memo, el) {
5616       var _i, _ref, _ref1, _results;
5617       return memo.concat((function() {
5618         _results = [];
5619         for (var _i = _ref = el.attributes.xStart, _ref1 = el.attributes.xEnd; _ref <= _ref1 ? _i <= _ref1 : _i >= _ref1; _ref <= _ref1 ? _i++ : _i--){ _results.push(_i); }
5620         return _results;
5621       }).apply(this));
5622     }, []);
5623     inverted = _.filter(columns, function(el) {
5624       if (selColumns.indexOf(el) >= 0) {
5625         return false;
5626       }
5627       return true;
5628     });
5629     if (inverted.length === 0) {
5630       return;
5631     }
5632     s = [];
5633     console.log(inverted);
5634     xStart = xEnd = inverted[0];
5635     for (_i = 0, _len = inverted.length; _i < _len; _i++) {
5636       el = inverted[_i];
5637       if (xEnd + 1 === el) {
5638         xEnd = el;
5639       } else {
5640         s.push(new sel.columnsel({
5641           xStart: xStart,
5642           xEnd: xEnd
5643         }));
5644         xStart = xEnd = el;
5645       }
5646     }
5647     if (xStart !== xEnd) {
5648       s.push(new sel.columnsel({
5649         xStart: xStart,
5650         xEnd: inverted[inverted.length - 1]
5651       }));
5652     }
5653     return this.reset(s);
5654   },
5655   _handleE: function(e, selection) {
5656     if (e.ctrlKey || e.metaKey) {
5657       return this.add(selection);
5658     } else {
5659       return this.reset([selection]);
5660     }
5661   },
5662   _reduceColumns: function() {
5663     return this.each(function(el, index, arr) {
5664       var cols, left, lefts, right, rights, xEnd, xStart, _i, _j, _len, _len1;
5665       cols = _.filter(arr, function(el) {
5666         return el.get('type') === 'column';
5667       });
5668       xStart = el.get('xStart');
5669       xEnd = el.get('xEnd');
5670       lefts = _.filter(cols, function(el) {
5671         return el.get('xEnd') === (xStart - 1);
5672       });
5673       for (_i = 0, _len = lefts.length; _i < _len; _i++) {
5674         left = lefts[_i];
5675         left.set('xEnd', xStart);
5676       }
5677       rights = _.filter(cols, function(el) {
5678         return el.get('xStart') === (xEnd + 1);
5679       });
5680       for (_j = 0, _len1 = rights.length; _j < _len1; _j++) {
5681         right = rights[_j];
5682         right.set('xStart', xEnd);
5683       }
5684       if (lefts.length > 0 || rights.length > 0) {
5685         console.log("removed el");
5686         return el.collection.remove(el);
5687       }
5688     });
5689   }
5690 });
5691
5692
5693
5694 },{"./Selection":67,"backbone-thin":5,"underscore":59}],69:[function(require,module,exports){
5695 var Model, Visibility;
5696
5697 Model = require("backbone-thin").Model;
5698
5699 module.exports = Visibility = Model.extend({
5700   defaults: {
5701     overviewBox: 30,
5702     headerBox: -1,
5703     alignmentBody: 0
5704   }
5705 });
5706
5707
5708
5709 },{"backbone-thin":5}],70:[function(require,module,exports){
5710 var Model, Visibility;
5711
5712 Model = require("backbone-thin").Model;
5713
5714 module.exports = Visibility = Model.extend({
5715   defaults: {
5716     sequences: true,
5717     markers: true,
5718     metacell: false,
5719     conserv: true,
5720     overviewbox: false,
5721     labels: true,
5722     labelName: true,
5723     labelId: true,
5724     labelPartition: false,
5725     labelCheckbox: false
5726   }
5727 });
5728
5729
5730
5731 },{"backbone-thin":5}],71:[function(require,module,exports){
5732 var Model, Zoomer;
5733
5734 Model = require("backbone-thin").Model;
5735
5736 module.exports = Zoomer = Model.extend({
5737   constructor: function(attributes, options) {
5738     Model.apply(this, arguments);
5739     this.g = options.g;
5740     return this;
5741   },
5742   defaults: {
5743     alignmentWidth: "auto",
5744     alignmentHeight: 195,
5745     columnWidth: 15,
5746     rowHeight: 15,
5747     labelWidth: 100,
5748     metaWidth: 100,
5749     textVisible: true,
5750     labelIdLength: 30,
5751     labelFontsize: "13px",
5752     labelLineHeight: "13px",
5753     markerFontsize: "10px",
5754     stepSize: 1,
5755     markerStepSize: 2,
5756     residueFont: "13px mono",
5757     canvasEventScale: 1,
5758     boxRectHeight: 5,
5759     boxRectWidth: 5,
5760     menuFontsize: "20px",
5761     menuItemFontsize: "18px",
5762     menuItemLineHeight: "18px",
5763     menuMarginLeft: "5px",
5764     menuPadding: "3px 5px 3px 5px",
5765     _alignmentScrollLeft: 0,
5766     _alignmentScrollTop: 0
5767   },
5768   getAlignmentWidth: function(n) {
5769     if (this.get("alignmentWidth") === "auto") {
5770       return this.get("columnWidth") * n;
5771     } else {
5772       return this.get("alignmentWidth");
5773     }
5774   },
5775   setLeftOffset: function(n) {
5776     var val;
5777     val = (n - 1) * this.get('columnWidth');
5778     val = Math.max(0, val);
5779     return this.set("_alignmentScrollLeft", val);
5780   },
5781   setTopOffset: function(n) {
5782     var val;
5783     val = (n - 1) * this.get('rowHeight');
5784     val = Math.max(0, val);
5785     return this.set("_alignmentScrollTop", val);
5786   },
5787   getLabelWidth: function() {
5788     var paddingLeft;
5789     paddingLeft = 0;
5790     if (this.g.vis.get("labels")) {
5791       paddingLeft += this.get("labelWidth");
5792     }
5793     if (this.g.vis.get("metacell")) {
5794       paddingLeft += this.get("metaWidth");
5795     }
5796     return paddingLeft;
5797   },
5798   _adjustWidth: function(el, model) {
5799     var calcWidth, maxWidth, parentWidth, val;
5800     if ((el.parentNode != null) && el.parentNode.offsetWidth !== 0) {
5801       parentWidth = el.parentNode.offsetWidth;
5802     } else {
5803       parentWidth = document.body.clientWidth - 35;
5804     }
5805     maxWidth = parentWidth - this.getLabelWidth();
5806     calcWidth = this.getAlignmentWidth(model.getMaxLength() - this.g.columns.get('hidden').length);
5807     val = Math.min(maxWidth, calcWidth);
5808     val = Math.floor(val / this.get("columnWidth")) * this.get("columnWidth");
5809     return this.set("alignmentWidth", val);
5810   },
5811   _checkScrolling: function(scrollObj, opts) {
5812     var xScroll, yScroll;
5813     xScroll = scrollObj[0];
5814     yScroll = scrollObj[1];
5815     this.set("_alignmentScrollLeft", xScroll, opts);
5816     return this.set("_alignmentScrollTop", yScroll, opts);
5817   }
5818 });
5819
5820
5821
5822 },{"backbone-thin":5}],72:[function(require,module,exports){
5823 module.exports.msa = require("./msa");
5824
5825 module.exports.model = require("./model");
5826
5827 module.exports.algo = require("./algo");
5828
5829 module.exports.menu = require("./menu");
5830
5831 module.exports.utils = require("./utils");
5832
5833 module.exports.selection = require("./g/selection/Selection");
5834
5835 module.exports.view = require("backbone-viewj");
5836
5837 module.exports.boneView = require("backbone-childs");
5838
5839 module.exports._ = require('underscore');
5840
5841 module.exports.$ = require('jbone');
5842
5843 module.exports.version = "0.1.0";
5844
5845
5846
5847 },{"./algo":62,"./g/selection/Selection":67,"./menu":74,"./model":89,"./msa":90,"./utils":92,"backbone-childs":3,"backbone-viewj":10,"jbone":50,"underscore":59}],73:[function(require,module,exports){
5848 var ColorMenu, ExportMenu, ExtraMenu, FilterMenu, HelpMenu, ImportMenu, MenuView, OrderingMenu, SelectionMenu, VisMenu, boneView;
5849
5850 boneView = require("backbone-childs");
5851
5852 ImportMenu = require("./views/ImportMenu");
5853
5854 FilterMenu = require("./views/FilterMenu");
5855
5856 SelectionMenu = require("./views/SelectionMenu");
5857
5858 VisMenu = require("./views/VisMenu");
5859
5860 ColorMenu = require("./views/ColorMenu");
5861
5862 OrderingMenu = require("./views/OrderingMenu");
5863
5864 ExtraMenu = require("./views/ExtraMenu");
5865
5866 ExportMenu = require("./views/ExportMenu");
5867
5868 HelpMenu = require("./views/HelpMenu");
5869
5870 module.exports = MenuView = boneView.extend({
5871   initialize: function(data) {
5872     this.msa = data.msa;
5873     this.addView("10_import", new ImportMenu({
5874       model: this.msa.seqs,
5875       g: this.msa.g
5876     }));
5877     this.addView("20_filter", new FilterMenu({
5878       model: this.msa.seqs,
5879       g: this.msa.g
5880     }));
5881     this.addView("30_selection", new SelectionMenu({
5882       model: this.msa.seqs,
5883       g: this.msa.g
5884     }));
5885     this.addView("40_vis", new VisMenu({
5886       model: this.msa.seqs,
5887       g: this.msa.g
5888     }));
5889     this.addView("50_color", new ColorMenu({
5890       model: this.msa.seqs,
5891       g: this.msa.g
5892     }));
5893     this.addView("60_ordering", new OrderingMenu({
5894       model: this.msa.seqs,
5895       g: this.msa.g
5896     }));
5897     this.addView("70_extra", new ExtraMenu({
5898       model: this.msa.seqs,
5899       g: this.msa.g
5900     }));
5901     this.addView("80_export", new ExportMenu({
5902       model: this.msa.seqs,
5903       g: this.msa.g,
5904       msa: this.msa
5905     }));
5906     return this.addView("90_help", new HelpMenu({
5907       g: this.msa.g
5908     }));
5909   },
5910   render: function() {
5911     this.renderSubviews();
5912     this.el.setAttribute("class", "biojs_msa_menubar");
5913     return this.el.appendChild(document.createElement("p"));
5914   }
5915 });
5916
5917
5918
5919 },{"./views/ColorMenu":76,"./views/ExportMenu":77,"./views/ExtraMenu":78,"./views/FilterMenu":79,"./views/HelpMenu":80,"./views/ImportMenu":81,"./views/OrderingMenu":82,"./views/SelectionMenu":83,"./views/VisMenu":84,"backbone-childs":3}],74:[function(require,module,exports){
5920 module.exports.defaultmenu = require("./defaultmenu");
5921
5922 module.exports.menubuilder = require("./menubuilder");
5923
5924
5925
5926 },{"./defaultmenu":73,"./menubuilder":75}],75:[function(require,module,exports){
5927 var BMath, MenuBuilder, jbone, view;
5928
5929 BMath = require("../utils/bmath");
5930
5931 jbone = require("jbone");
5932
5933 view = require("backbone-viewj");
5934
5935 module.exports = MenuBuilder = view.extend({
5936   setName: function(name) {
5937     this.name = name;
5938     return this._nodes = [];
5939   },
5940   addNode: function(label, callback, data) {
5941     var style;
5942     if (data != null) {
5943       style = data.style;
5944     }
5945     if (this._nodes == null) {
5946       this._nodes = [];
5947     }
5948     return this._nodes.push({
5949       label: label,
5950       callback: callback,
5951       style: style
5952     });
5953   },
5954   buildDOM: function() {
5955     return this._buildM({
5956       nodes: this._nodes,
5957       name: this.name
5958     });
5959   },
5960   _buildM: function(data) {
5961     var displayedButton, frag, key, li, menu, menuUl, name, node, nodes, style, _i, _len, _ref;
5962     nodes = data.nodes;
5963     name = data.name;
5964     menu = document.createElement("div");
5965     menu.className = "dropdown dropdown-tip";
5966     menu.id = "adrop-" + BMath.uniqueId();
5967     menu.style.display = "none";
5968     menuUl = document.createElement("ul");
5969     menuUl.className = "dropdown-menu";
5970     for (_i = 0, _len = nodes.length; _i < _len; _i++) {
5971       node = nodes[_i];
5972       li = document.createElement("li");
5973       li.textContent = node.label;
5974       _ref = node.style;
5975       for (key in _ref) {
5976         style = _ref[key];
5977         li.style[key] = style;
5978       }
5979       li.addEventListener("click", node.callback);
5980       if (this.g != null) {
5981         li.style.lineHeight = this.g.zoomer.get("menuItemLineHeight");
5982       }
5983       menuUl.appendChild(li);
5984     }
5985     menu.appendChild(menuUl);
5986     frag = document.createDocumentFragment();
5987     displayedButton = document.createElement("a");
5988     displayedButton.textContent = name;
5989     displayedButton.className = "biojs_msa_menubar_alink";
5990     if (this.g != null) {
5991       menuUl.style.fontSize = this.g.zoomer.get("menuItemFontsize");
5992       displayedButton.style.fontSize = this.g.zoomer.get("menuFontsize");
5993       displayedButton.style.marginLeft = this.g.zoomer.get("menuMarginLeft");
5994       displayedButton.style.padding = this.g.zoomer.get("menuPadding");
5995     }
5996     jbone(displayedButton).on("click", (function(_this) {
5997       return function(e) {
5998         _this._showMenu(e, menu, displayedButton);
5999         return window.setTimeout(function() {
6000           return jbone(document.body).one("click", function(e) {
6001             console.log("next click");
6002             return menu.style.display = "none";
6003           });
6004         }, 5);
6005       };
6006     })(this));
6007     frag.appendChild(menu);
6008     frag.appendChild(displayedButton);
6009     return frag;
6010   },
6011   _showMenu: function(e, menu, target) {
6012     var rect;
6013     menu.style.display = "block";
6014     menu.style.position = "absolute";
6015     rect = target.getBoundingClientRect();
6016     menu.style.left = rect.left + "px";
6017     return menu.style.top = (rect.top + target.offsetHeight) + "px";
6018   }
6019 });
6020
6021
6022
6023 },{"../utils/bmath":91,"backbone-viewj":10,"jbone":50}],76:[function(require,module,exports){
6024 var ColorMenu, MenuBuilder, dom, _;
6025
6026 MenuBuilder = require("../menubuilder");
6027
6028 _ = require("underscore");
6029
6030 dom = require("dom-helper");
6031
6032 module.exports = ColorMenu = MenuBuilder.extend({
6033   initialize: function(data) {
6034     this.g = data.g;
6035     this.el.style.display = "inline-block";
6036     return this.listenTo(this.g.colorscheme, "change", function() {
6037       return this.render();
6038     });
6039   },
6040   render: function() {
6041     var colorschemes, menuColor, scheme, text, _i, _len;
6042     menuColor = this.setName("Color scheme");
6043     colorschemes = this.getColorschemes();
6044     for (_i = 0, _len = colorschemes.length; _i < _len; _i++) {
6045       scheme = colorschemes[_i];
6046       this.addScheme(menuColor, scheme);
6047     }
6048     text = "Background";
6049     if (this.g.colorscheme.get("colorBackground")) {
6050       text = "Hide " + text;
6051     } else {
6052       text = "Show " + text;
6053     }
6054     this.addNode(text, (function(_this) {
6055       return function() {
6056         return _this.g.colorscheme.set("colorBackground", !_this.g.colorscheme.get("colorBackground"));
6057       };
6058     })(this));
6059     this.grey(menuColor);
6060     dom.removeAllChilds(this.el);
6061     this.el.appendChild(this.buildDOM());
6062     return this;
6063   },
6064   addScheme: function(menuColor, scheme) {
6065     var current, style;
6066     style = {};
6067     current = this.g.colorscheme.get("scheme");
6068     if (current === scheme.id) {
6069       style.backgroundColor = "#77ED80";
6070     }
6071     return this.addNode(scheme.name, (function(_this) {
6072       return function() {
6073         return _this.g.colorscheme.set("scheme", scheme.id);
6074       };
6075     })(this), {
6076       style: style
6077     });
6078   },
6079   getColorschemes: function() {
6080     var schemes;
6081     schemes = [];
6082     schemes.push({
6083       name: "Zappo",
6084       id: "zappo"
6085     });
6086     schemes.push({
6087       name: "Taylor",
6088       id: "taylor"
6089     });
6090     schemes.push({
6091       name: "Hydrophobicity",
6092       id: "hydro"
6093     });
6094     schemes.push({
6095       name: "Lesk",
6096       id: "lesk"
6097     });
6098     schemes.push({
6099       name: "Cinema",
6100       id: "cinema"
6101     });
6102     schemes.push({
6103       name: "MAE",
6104       id: "mae"
6105     });
6106     schemes.push({
6107       name: "Clustal",
6108       id: "clustal"
6109     });
6110     schemes.push({
6111       name: "Clustal2",
6112       id: "clustal2"
6113     });
6114     schemes.push({
6115       name: "Turn",
6116       id: "turn"
6117     });
6118     schemes.push({
6119       name: "Strand",
6120       id: "strand"
6121     });
6122     schemes.push({
6123       name: "Buried",
6124       id: "buried"
6125     });
6126     schemes.push({
6127       name: "Helix",
6128       id: "helix"
6129     });
6130     schemes.push({
6131       name: "Nucleotide",
6132       id: "nucleotide"
6133     });
6134     schemes.push({
6135       name: "Purine",
6136       id: "purine"
6137     });
6138     schemes.push({
6139       name: "PID",
6140       id: "pid"
6141     });
6142     schemes.push({
6143       name: "No color",
6144       id: "foo"
6145     });
6146     return schemes;
6147   },
6148   grey: function(menuColor) {
6149     this.addNode("Grey", (function(_this) {
6150       return function() {
6151         _this.g.colorscheme.set("showLowerCase", false);
6152         return _this.model.each(function(seq) {
6153           var grey, residues;
6154           residues = seq.get("seq");
6155           grey = [];
6156           _.each(residues, function(el, index) {
6157             if (el === el.toLowerCase()) {
6158               return grey.push(index);
6159             }
6160           });
6161           return seq.set("grey", grey);
6162         });
6163       };
6164     })(this));
6165     this.addNode("Grey by threshold", (function(_this) {
6166       return function() {
6167         var conserv, grey, i, maxLen, threshold, _i, _ref;
6168         threshold = prompt("Enter threshold (in percent)", 20);
6169         threshold = threshold / 100;
6170         maxLen = _this.model.getMaxLength();
6171         conserv = _this.g.columns.get("conserv");
6172         grey = [];
6173         for (i = _i = 0, _ref = maxLen - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
6174           console.log(conserv[i]);
6175           if (conserv[i] < threshold) {
6176             grey.push(i);
6177           }
6178         }
6179         return _this.model.each(function(seq) {
6180           return seq.set("grey", grey);
6181         });
6182       };
6183     })(this));
6184     this.addNode("Grey selection", (function(_this) {
6185       return function() {
6186         var maxLen;
6187         maxLen = _this.model.getMaxLength();
6188         return _this.model.each(function(seq) {
6189           var blocks;
6190           blocks = _this.g.selcol.getBlocksForRow(seq.get("id"), maxLen);
6191           return seq.set("grey", blocks);
6192         });
6193       };
6194     })(this));
6195     return this.addNode("Reset grey", (function(_this) {
6196       return function() {
6197         _this.g.colorscheme.set("showLowerCase", true);
6198         return _this.model.each(function(seq) {
6199           return seq.set("grey", []);
6200         });
6201       };
6202     })(this));
6203   }
6204 });
6205
6206
6207
6208 },{"../menubuilder":75,"dom-helper":49,"underscore":59}],77:[function(require,module,exports){
6209 var ExportMenu, FastaExporter, MenuBuilder, blobURL, saveAs, _;
6210
6211 MenuBuilder = require("../menubuilder");
6212
6213 saveAs = require("browser-saveas");
6214
6215 FastaExporter = require("biojs-io-fasta").writer;
6216
6217 _ = require("underscore");
6218
6219 blobURL = require("blueimp_canvastoblob");
6220
6221 module.exports = ExportMenu = MenuBuilder.extend({
6222   initialize: function(data) {
6223     this.g = data.g;
6224     this.msa = data.msa;
6225     return this.el.style.display = "inline-block";
6226   },
6227   render: function() {
6228     this.setName("Export");
6229     this.addNode("Export sequences", (function(_this) {
6230       return function() {
6231         var blob, text;
6232         text = FastaExporter["export"](_this.model.toJSON());
6233         blob = new Blob([text], {
6234           type: 'text/plain'
6235         });
6236         return saveAs(blob, "all.fasta");
6237       };
6238     })(this));
6239     this.addNode("Export selection", (function(_this) {
6240       return function() {
6241         var blob, i, selection, text, _i, _ref;
6242         selection = _this.g.selcol.pluck("seqId");
6243         if (selection != null) {
6244           selection = _this.model.filter(function(el) {
6245             return _.contains(selection, el.get("id"));
6246           });
6247           for (i = _i = 0, _ref = selection.length - 1; _i <= _ref; i = _i += 1) {
6248             selection[i] = selection[i].toJSON();
6249           }
6250         } else {
6251           selection = _this.model.toJSON();
6252           console.log("no selection found");
6253         }
6254         text = FastaExporter["export"](selection);
6255         blob = new Blob([text], {
6256           type: 'text/plain'
6257         });
6258         return saveAs(blob, "selection.fasta");
6259       };
6260     })(this));
6261     this.addNode("Export image", (function(_this) {
6262       return function() {
6263         var canvas, url;
6264         canvas = _this.msa.getView('stage').getView('body').getView('seqblock').el;
6265         if (canvas != null) {
6266           url = canvas.toDataURL('image/png');
6267           return saveAs(blobURL(url), "biojs-msa.png", "image/png");
6268         }
6269       };
6270     })(this));
6271     this.el.appendChild(this.buildDOM());
6272     return this;
6273   }
6274 });
6275
6276
6277
6278 },{"../menubuilder":75,"biojs-io-fasta":undefined,"blueimp_canvastoblob":46,"browser-saveas":47,"underscore":59}],78:[function(require,module,exports){
6279 var ExtraMenu, MenuBuilder, Seq, consenus;
6280
6281 MenuBuilder = require("../menubuilder");
6282
6283 consenus = require("../../algo/ConsensusCalc");
6284
6285 Seq = require("../../model/Sequence");
6286
6287 module.exports = ExtraMenu = MenuBuilder.extend({
6288   initialize: function(data) {
6289     this.g = data.g;
6290     return this.el.style.display = "inline-block";
6291   },
6292   render: function() {
6293     this.setName("Extras");
6294     this.addNode("Add consensus seq", (function(_this) {
6295       return function() {
6296         var con, seq;
6297         con = consenus(_this.model);
6298         console.log(con);
6299         seq = new Seq({
6300           seq: con,
6301           id: "0c",
6302           name: "consenus"
6303         });
6304         _this.model.add(seq);
6305         _this.model.comparator = function(seq) {
6306           return seq.get("id");
6307         };
6308         return _this.model.sort();
6309       };
6310     })(this));
6311     this.addNode("Increase font size", (function(_this) {
6312       return function() {
6313         _this.g.zoomer.set("columnWidth", _this.g.zoomer.get("columnWidth") + 2);
6314         _this.g.zoomer.set("labelWidth", _this.g.zoomer.get("columnWidth") + 5);
6315         _this.g.zoomer.set("rowHeight", _this.g.zoomer.get("rowHeight") + 2);
6316         return _this.g.zoomer.set("labelFontSize", _this.g.zoomer.get("labelFontSize") + 2);
6317       };
6318     })(this));
6319     this.addNode("Decrease font size", (function(_this) {
6320       return function() {
6321         _this.g.zoomer.set("columnWidth", _this.g.zoomer.get("columnWidth") - 2);
6322         _this.g.zoomer.set("rowHeight", _this.g.zoomer.get("rowHeight") - 2);
6323         _this.g.zoomer.set("labelFontSize", _this.g.zoomer.get("labelFontSize") - 2);
6324         if (_this.g.zoomer.get("columnWidth") < 8) {
6325           return _this.g.zoomer.set("textVisible", false);
6326         }
6327       };
6328     })(this));
6329     this.addNode("Bar chart exp scaling", (function(_this) {
6330       return function() {
6331         return _this.g.columns.set("scaling", "exp");
6332       };
6333     })(this));
6334     this.addNode("Bar chart linear scaling", (function(_this) {
6335       return function() {
6336         return _this.g.columns.set("scaling", "lin");
6337       };
6338     })(this));
6339     this.addNode("Bar chart log scaling", (function(_this) {
6340       return function() {
6341         return _this.g.columns.set("scaling", "log");
6342       };
6343     })(this));
6344     this.addNode("Minimized width", (function(_this) {
6345       return function() {
6346         return _this.g.zoomer.set("alignmentWidth", 600);
6347       };
6348     })(this));
6349     this.addNode("Minimized height", (function(_this) {
6350       return function() {
6351         return _this.g.zoomer.set("alignmentHeight", 120);
6352       };
6353     })(this));
6354     this.addNode("Jump to a column", (function(_this) {
6355       return function() {
6356         var offset;
6357         offset = prompt("Column", "20");
6358         if (offset < 0 || offset > _this.model.getMaxLength() || isNaN(offset)) {
6359           alert("invalid column");
6360           return;
6361         }
6362         return _this.g.zoomer.setLeftOffset(offset);
6363       };
6364     })(this));
6365     this.el.appendChild(this.buildDOM());
6366     return this;
6367   }
6368 });
6369
6370
6371
6372 },{"../../algo/ConsensusCalc":60,"../../model/Sequence":88,"../menubuilder":75}],79:[function(require,module,exports){
6373 var FilterMenu, MenuBuilder, _;
6374
6375 MenuBuilder = require("../menubuilder");
6376
6377 _ = require("underscore");
6378
6379 module.exports = FilterMenu = MenuBuilder.extend({
6380   initialize: function(data) {
6381     this.g = data.g;
6382     return this.el.style.display = "inline-block";
6383   },
6384   render: function() {
6385     this.setName("Filter");
6386     this.addNode("Hide columns by threshold", (function(_this) {
6387       return function(e) {
6388         var conserv, hidden, i, maxLen, threshold, _i, _ref;
6389         threshold = prompt("Enter threshold (in percent)", 20);
6390         threshold = threshold / 100;
6391         maxLen = _this.model.getMaxLength();
6392         hidden = [];
6393         conserv = _this.g.columns.get("conserv");
6394         for (i = _i = 0, _ref = maxLen - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
6395           if (conserv[i] < threshold) {
6396             hidden.push(i);
6397           }
6398         }
6399         return _this.g.columns.set("hidden", hidden);
6400       };
6401     })(this));
6402     this.addNode("Hide columns by selection", (function(_this) {
6403       return function() {
6404         var hidden, hiddenOld;
6405         hiddenOld = _this.g.columns.get("hidden");
6406         hidden = hiddenOld.concat(_this.g.selcol.getAllColumnBlocks({
6407           maxLen: _this.model.getMaxLength(),
6408           withPos: true
6409         }));
6410         _this.g.selcol.reset([]);
6411         return _this.g.columns.set("hidden", hidden);
6412       };
6413     })(this));
6414     this.addNode("Hide columns by gaps", (function(_this) {
6415       return function() {
6416         var gapContent, gaps, hidden, i, maxLen, threshold, total, _i, _ref;
6417         threshold = prompt("Enter threshold (in percent)", 20);
6418         threshold = threshold / 100;
6419         maxLen = _this.model.getMaxLength();
6420         hidden = [];
6421         for (i = _i = 0, _ref = maxLen - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
6422           gaps = 0;
6423           total = 0;
6424           _this.model.each(function(el) {
6425             if (el.get('seq')[i] === "-") {
6426               gaps++;
6427             }
6428             return total++;
6429           });
6430           gapContent = gaps / total;
6431           if (gapContent > threshold) {
6432             hidden.push(i);
6433           }
6434         }
6435         return _this.g.columns.set("hidden", hidden);
6436       };
6437     })(this));
6438     this.addNode("Hide seqs by identity", (function(_this) {
6439       return function() {
6440         var threshold;
6441         threshold = prompt("Enter threshold (in percent)", 20);
6442         threshold = threshold / 100;
6443         return _this.model.each(function(el) {
6444           if (el.get('identity') < threshold) {
6445             return el.set('hidden', true);
6446           }
6447         });
6448       };
6449     })(this));
6450     this.addNode("Hide seqs by selection", (function(_this) {
6451       return function() {
6452         var hidden, ids;
6453         hidden = _this.g.selcol.where({
6454           type: "row"
6455         });
6456         ids = _.map(hidden, function(el) {
6457           return el.get('seqId');
6458         });
6459         _this.g.selcol.reset([]);
6460         return _this.model.each(function(el) {
6461           if (ids.indexOf(el.get('id')) >= 0) {
6462             return el.set('hidden', true);
6463           }
6464         });
6465       };
6466     })(this));
6467     this.addNode("Hide seqs by gaps", (function(_this) {
6468       return function() {
6469         var threshold;
6470         threshold = prompt("Enter threshold (in percent)", 40);
6471         return _this.model.each(function(el, i) {
6472           var gaps, seq;
6473           seq = el.get('seq');
6474           gaps = _.reduce(seq, (function(memo, c) {
6475             if (c === '-') {
6476               memo++;
6477             }
6478             return memo;
6479           }), 0);
6480           console.log(gaps);
6481           if (gaps > threshold) {
6482             return el.set('hidden', true);
6483           }
6484         });
6485       };
6486     })(this));
6487     this.addNode("Reset", (function(_this) {
6488       return function() {
6489         _this.g.columns.set("hidden", []);
6490         return _this.model.each(function(el) {
6491           if (el.get('hidden')) {
6492             return el.set('hidden', false);
6493           }
6494         });
6495       };
6496     })(this));
6497     this.el.appendChild(this.buildDOM());
6498     return this;
6499   }
6500 });
6501
6502
6503
6504 },{"../menubuilder":75,"underscore":59}],80:[function(require,module,exports){
6505 var HelpMenu, MenuBuilder;
6506
6507 MenuBuilder = require("../menubuilder");
6508
6509 module.exports = HelpMenu = MenuBuilder.extend({
6510   initialize: function(data) {
6511     return this.g = data.g;
6512   },
6513   render: function() {
6514     this.setName("Help");
6515     this.addNode("About the project", (function(_this) {
6516       return function() {
6517         return window.open("https://github.com/greenify/biojs-vis-msa");
6518       };
6519     })(this));
6520     this.addNode("Report issues", (function(_this) {
6521       return function() {
6522         return window.open("https://github.com/greenify/biojs-vis-msa/issues");
6523       };
6524     })(this));
6525     this.addNode("User manual", (function(_this) {
6526       return function() {
6527         return window.open("https://github.com/greenify/biojs-vis-msa/wiki");
6528       };
6529     })(this));
6530     this.el.style.display = "inline-block";
6531     this.el.appendChild(this.buildDOM());
6532     return this;
6533   }
6534 });
6535
6536
6537
6538 },{"../menubuilder":75}],81:[function(require,module,exports){
6539 var Clustal, FastaReader, ImportMenu, MenuBuilder, corsURL;
6540
6541 Clustal = require("biojs-io-clustal");
6542
6543 FastaReader = require("biojs-io-fasta").parse;
6544
6545 MenuBuilder = require("../menubuilder");
6546
6547 corsURL = require("../../utils/proxy").corsURL;
6548
6549 module.exports = ImportMenu = MenuBuilder.extend({
6550   initialize: function(data) {
6551     this.g = data.g;
6552     return this.el.style.display = "inline-block";
6553   },
6554   render: function() {
6555     this.setName("Import");
6556     this.addNode("FASTA", (function(_this) {
6557       return function(e) {
6558         var url;
6559         url = prompt("URL", "/test/dummy/samples/p53.clustalo.fasta");
6560         url = corsURL(url, _this.g);
6561         return FastaReader.read(url, function(seqs) {
6562           var zoomer;
6563           zoomer = _this.g.zoomer.toJSON();
6564           zoomer.labelWidth = 200;
6565           zoomer.boxRectHeight = 2;
6566           zoomer.boxRectWidth = 2;
6567           _this.model.reset([]);
6568           _this.g.zoomer.set(zoomer);
6569           _this.model.reset(seqs);
6570           return _this.g.columns.calcConservation(_this.model);
6571         });
6572       };
6573     })(this));
6574     this.addNode("CLUSTAL", (function(_this) {
6575       return function() {
6576         var url;
6577         url = prompt("URL", "/test/dummy/samples/p53.clustalo.clustal");
6578         url = corsURL(url, _this.g);
6579         return Clustal.read(url, function(seqs) {
6580           var zoomer;
6581           zoomer = _this.g.zoomer.toJSON();
6582           zoomer.labelWidth = 200;
6583           zoomer.boxRectHeight = 2;
6584           zoomer.boxRectWidth = 2;
6585           _this.model.reset([]);
6586           _this.g.zoomer.set(zoomer);
6587           _this.model.reset(seqs);
6588           return _this.g.columns.calcConservation(_this.model);
6589         });
6590       };
6591     })(this));
6592     this.addNode("add your own Parser", (function(_this) {
6593       return function() {
6594         return window.open("https://github.com/biojs/biojs2");
6595       };
6596     })(this));
6597     this.el.appendChild(this.buildDOM());
6598     return this;
6599   }
6600 });
6601
6602
6603
6604 },{"../../utils/proxy":93,"../menubuilder":75,"biojs-io-clustal":undefined,"biojs-io-fasta":undefined}],82:[function(require,module,exports){
6605 var MenuBuilder, OrderingMenu, dom, _;
6606
6607 MenuBuilder = require("../menubuilder");
6608
6609 dom = require("dom-helper");
6610
6611 _ = require('underscore');
6612
6613 module.exports = OrderingMenu = MenuBuilder.extend({
6614   initialize: function(data) {
6615     this.g = data.g;
6616     this.order = "ID";
6617     return this.el.style.display = "inline-block";
6618   },
6619   setOrder: function(order) {
6620     this.order = order;
6621     return this.render();
6622   },
6623   render: function() {
6624     var comps, el, m, _i, _len;
6625     this.setName("Ordering");
6626     comps = this.getComparators();
6627     for (_i = 0, _len = comps.length; _i < _len; _i++) {
6628       m = comps[_i];
6629       this._addNode(m);
6630     }
6631     el = this.buildDOM();
6632     dom.removeAllChilds(this.el);
6633     this.el.appendChild(el);
6634     return this;
6635   },
6636   _addNode: function(m) {
6637     var style, text;
6638     text = m.text;
6639     style = {};
6640     if (text === this.order) {
6641       style.backgroundColor = "#77ED80";
6642     }
6643     return this.addNode(text, (function(_this) {
6644       return function() {
6645         if (m.precode != null) {
6646           m.precode();
6647         }
6648         _this.model.comparator = m.comparator;
6649         _this.model.sort();
6650         return _this.setOrder(m.text);
6651       };
6652     })(this), {
6653       style: style
6654     });
6655   },
6656   getComparators: function() {
6657     var models;
6658     models = [];
6659     models.push({
6660       text: "ID",
6661       comparator: "id"
6662     });
6663     models.push({
6664       text: "ID Desc",
6665       comparator: function(a, b) {
6666         return -a.get("id").localeCompare(b.get("id"));
6667       }
6668     });
6669     models.push({
6670       text: "Label",
6671       comparator: "name"
6672     });
6673     models.push({
6674       text: "Label Desc",
6675       comparator: function(a, b) {
6676         return -a.get("name").localeCompare(b.get("name"));
6677       }
6678     });
6679     models.push({
6680       text: "Seq",
6681       comparator: "seq"
6682     });
6683     models.push({
6684       text: "Seq Desc",
6685       comparator: function(a, b) {
6686         return -a.get("seq").localeCompare(b.get("seq"));
6687       }
6688     });
6689     models.push({
6690       text: "Identity",
6691       comparator: "identity"
6692     });
6693     models.push({
6694       text: "Identity Desc",
6695       comparator: function(seq) {
6696         return -seq.get("identity");
6697       }
6698     });
6699     models.push({
6700       text: "Partition codes",
6701       comparator: "partition",
6702       precode: (function(_this) {
6703         return function() {
6704           _this.g.vis.set('labelPartition', true);
6705           return _this.model.each(function(el) {
6706             return el.set('partition', _.random(1, 3));
6707           });
6708         };
6709       })(this)
6710     });
6711     return models;
6712   }
6713 });
6714
6715
6716
6717 },{"../menubuilder":75,"dom-helper":49,"underscore":59}],83:[function(require,module,exports){
6718 var MenuBuilder, SelectionMenu, sel;
6719
6720 sel = require("../../g/selection/Selection");
6721
6722 MenuBuilder = require("../menubuilder");
6723
6724 module.exports = SelectionMenu = MenuBuilder.extend({
6725   initialize: function(data) {
6726     this.g = data.g;
6727     return this.el.style.display = "inline-block";
6728   },
6729   render: function() {
6730     this.setName("Selection");
6731     this.addNode("Find Motif (supports RegEx)", (function(_this) {
6732       return function() {
6733         var leftestIndex, newSeli, origIndex, search, selcol;
6734         search = prompt("your search", "D");
6735         search = new RegExp(search, "gi");
6736         selcol = _this.g.selcol;
6737         newSeli = [];
6738         leftestIndex = origIndex = 100042;
6739         _this.model.each(function(seq) {
6740           var args, index, match, strSeq, _results;
6741           strSeq = seq.get("seq");
6742           _results = [];
6743           while (match = search.exec(strSeq)) {
6744             index = match.index;
6745             args = {
6746               xStart: index,
6747               xEnd: index + match[0].length - 1,
6748               seqId: seq.get("id")
6749             };
6750             newSeli.push(new sel.possel(args));
6751             _results.push(leftestIndex = Math.min(index, leftestIndex));
6752           }
6753           return _results;
6754         });
6755         if (newSeli.length === 0) {
6756           alert("no selection found");
6757         }
6758         selcol.reset(newSeli);
6759         if (leftestIndex === origIndex) {
6760           leftestIndex = 0;
6761         }
6762         return _this.g.zoomer.setLeftOffset(leftestIndex);
6763       };
6764     })(this));
6765     this.addNode("Invert columns", (function(_this) {
6766       return function() {
6767         var _i, _ref, _results;
6768         return _this.g.selcol.invertCol((function() {
6769           _results = [];
6770           for (var _i = 0, _ref = _this.model.getMaxLength(); 0 <= _ref ? _i <= _ref : _i >= _ref; 0 <= _ref ? _i++ : _i--){ _results.push(_i); }
6771           return _results;
6772         }).apply(this));
6773       };
6774     })(this));
6775     this.addNode("Invert rows", (function(_this) {
6776       return function() {
6777         return _this.g.selcol.invertRow(_this.model.pluck("id"));
6778       };
6779     })(this));
6780     this.addNode("Reset", (function(_this) {
6781       return function() {
6782         return _this.g.selcol.reset();
6783       };
6784     })(this));
6785     this.el.appendChild(this.buildDOM());
6786     return this;
6787   }
6788 });
6789
6790
6791
6792 },{"../../g/selection/Selection":67,"../menubuilder":75}],84:[function(require,module,exports){
6793 var ImportMenu, MenuBuilder, dom;
6794
6795 MenuBuilder = require("../menubuilder");
6796
6797 dom = require("dom-helper");
6798
6799 module.exports = ImportMenu = MenuBuilder.extend({
6800   initialize: function(data) {
6801     this.g = data.g;
6802     this.el.style.display = "inline-block";
6803     return this.listenTo(this.g.vis, "change", this.render);
6804   },
6805   render: function() {
6806     var visEl, visElements, _i, _len;
6807     this.setName("Vis. elements");
6808     visElements = this.getVisElements();
6809     for (_i = 0, _len = visElements.length; _i < _len; _i++) {
6810       visEl = visElements[_i];
6811       this._addVisEl(visEl);
6812     }
6813     this.addNode("Reset", (function(_this) {
6814       return function() {
6815         _this.g.vis.set("labels", true);
6816         _this.g.vis.set("sequences", true);
6817         _this.g.vis.set("metacell", true);
6818         _this.g.vis.set("conserv", true);
6819         _this.g.vis.set("labelId", true);
6820         _this.g.vis.set("labelName", true);
6821         return _this.g.vis.set("labelCheckbox", false);
6822       };
6823     })(this));
6824     this.addNode("Toggle mouseover events", (function(_this) {
6825       return function() {
6826         return _this.g.config.set("registerMouseHover", !_this.g.config.get("registerMouseHover"));
6827       };
6828     })(this));
6829     dom.removeAllChilds(this.el);
6830     this.el.appendChild(this.buildDOM());
6831     return this;
6832   },
6833   _addVisEl: function(visEl) {
6834     var pre, style;
6835     style = {};
6836     if (this.g.vis.get(visEl.id)) {
6837       pre = "Hide ";
6838       style.color = "red";
6839     } else {
6840       pre = "Show ";
6841       style.color = "green";
6842     }
6843     return this.addNode(pre + visEl.name, (function(_this) {
6844       return function() {
6845         return _this.g.vis.set(visEl.id, !_this.g.vis.get(visEl.id));
6846       };
6847     })(this), {
6848       style: style
6849     });
6850   },
6851   getVisElements: function() {
6852     var vis;
6853     vis = [];
6854     vis.push({
6855       name: "Markers",
6856       id: "markers"
6857     });
6858     vis.push({
6859       name: "Labels",
6860       id: "labels"
6861     });
6862     vis.push({
6863       name: "Sequences",
6864       id: "sequences"
6865     });
6866     vis.push({
6867       name: "Meta info",
6868       id: "metacell"
6869     });
6870     vis.push({
6871       name: "Overviewbox",
6872       id: "overviewbox"
6873     });
6874     vis.push({
6875       name: "conserv",
6876       id: "conserv"
6877     });
6878     vis.push({
6879       name: "LabelName",
6880       id: "labelName"
6881     });
6882     vis.push({
6883       name: "LabelId",
6884       id: "labelId"
6885     });
6886     vis.push({
6887       name: "LabelCheckbox",
6888       id: "labelCheckbox"
6889     });
6890     return vis;
6891   }
6892 });
6893
6894
6895
6896 },{"../menubuilder":75,"dom-helper":49}],85:[function(require,module,exports){
6897 var Feature, Model;
6898
6899 Feature = require("./Feature");
6900
6901 Model = require("backbone-thin").Model;
6902
6903 module.exports = Feature = Model.extend({
6904   defaults: {
6905     xStart: -1,
6906     xEnd: -1,
6907     height: -1,
6908     text: "",
6909     fillColor: "red",
6910     fillOpacity: 0.5,
6911     type: "rectangle",
6912     borderSize: 1,
6913     borderColor: "black",
6914     borderOpacity: 0.5,
6915     validate: true
6916   },
6917   validate: function() {
6918     if (isNaN(this.attributes.xStart || isNaN(this.attributes.xEnd))) {
6919       return "features need integer start and end.";
6920     }
6921   },
6922   contains: function(index) {
6923     return this.attributes.xStart <= index && index <= this.attributes.xEnd;
6924   }
6925 });
6926
6927
6928
6929 },{"./Feature":85,"backbone-thin":5}],86:[function(require,module,exports){
6930 var Collection, Feature, FeatureCol, _;
6931
6932 Feature = require("./Feature");
6933
6934 Collection = require("backbone-thin").Collection;
6935
6936 _ = require("underscore");
6937
6938 module.exports = FeatureCol = Collection.extend({
6939   model: Feature,
6940   constructor: function() {
6941     this.startOnCache = [];
6942     this.on("all", function() {
6943       return this.startOnCache = [];
6944     }, this);
6945     return Collection.apply(this, arguments);
6946   },
6947   startOn: function(index) {
6948     if (this.startOnCache[index] == null) {
6949       this.startOnCache[index] = this.where({
6950         xStart: index
6951       });
6952     }
6953     return this.startOnCache[index];
6954   },
6955   contains: function(index) {
6956     return this.reduce(function(el, memo) {
6957       return memo || el.contains(index);
6958     }, false);
6959   },
6960   getMinRows: function() {
6961     var len, rows, x;
6962     len = this.max(function(el) {
6963       return el.get("xEnd");
6964     });
6965     rows = (function() {
6966       var _i, _results;
6967       _results = [];
6968       for (x = _i = 1; 1 <= len ? _i <= len : _i >= len; x = 1 <= len ? ++_i : --_i) {
6969         _results.push(0);
6970       }
6971       return _results;
6972     })();
6973     this.each(function(el) {
6974       var _i, _ref, _ref1, _results;
6975       _results = [];
6976       for (x = _i = _ref = el.get("xStart"), _ref1 = feature.get("xEnd"); _i <= _ref1; x = _i += 1) {
6977         _results.push(rows[x]++);
6978       }
6979       return _results;
6980     });
6981     return _.max(rows);
6982   }
6983 });
6984
6985
6986
6987 },{"./Feature":85,"backbone-thin":5,"underscore":59}],87:[function(require,module,exports){
6988 var Collection, SeqManager, Sequence;
6989
6990 Sequence = require("./Sequence");
6991
6992 Collection = require("backbone-thin").Collection;
6993
6994 module.exports = SeqManager = Collection.extend({
6995   model: Sequence,
6996   constructor: function() {
6997     Collection.apply(this, arguments);
6998     this.on("all", function() {
6999       return this.lengthCache = null;
7000     }, this);
7001     this.lengthCache = null;
7002     return this;
7003   },
7004   getMaxLength: function() {
7005     if (this.models.length === 0) {
7006       return 0;
7007     }
7008     if (this.lengthCache === null) {
7009       this.lengthCache = this.max(function(seq) {
7010         return seq.get("seq").length;
7011       }).get("seq").length;
7012     }
7013     return this.lengthCache;
7014   },
7015   prev: function(model, endless) {
7016     var index;
7017     index = this.indexOf(model) - 1;
7018     if (index < 0 && endless) {
7019       index = this.length - 1;
7020     }
7021     return this.at(index);
7022   },
7023   next: function(model, endless) {
7024     var index;
7025     index = this.indexOf(model) + 1;
7026     if (index === this.length && endless) {
7027       index = 0;
7028     }
7029     return this.at(index);
7030   },
7031   calcHiddenSeqs: function(n) {
7032     var i, nNew, _i;
7033     nNew = n;
7034     for (i = _i = 0; 0 <= nNew ? _i <= nNew : _i >= nNew; i = 0 <= nNew ? ++_i : --_i) {
7035       if (this.at(i).get("hidden")) {
7036         nNew++;
7037       }
7038     }
7039     return nNew - n;
7040   }
7041 });
7042
7043
7044
7045 },{"./Sequence":88,"backbone-thin":5}],88:[function(require,module,exports){
7046 var FeatureCol, Model, Sequence;
7047
7048 Model = require("backbone-thin").Model;
7049
7050 FeatureCol = require("./FeatureCol");
7051
7052 module.exports = Sequence = Model.extend({
7053   defaults: {
7054     name: "",
7055     id: "",
7056     seq: ""
7057   },
7058   initialize: function() {
7059     this.set("grey", []);
7060     return this.set("features", new FeatureCol());
7061   }
7062 });
7063
7064
7065
7066 },{"./FeatureCol":86,"backbone-thin":5}],89:[function(require,module,exports){
7067 module.exports.seq = require("./Sequence");
7068
7069 module.exports.seqcol = require("./SeqCollection");
7070
7071 module.exports.feature = require("./Feature");
7072
7073 module.exports.featurecol = require("./FeatureCol");
7074
7075
7076
7077 },{"./Feature":85,"./FeatureCol":86,"./SeqCollection":87,"./Sequence":88}],90:[function(require,module,exports){
7078 var Colorator, Columns, Config, Consensus, Eventhandler, SelCol, SeqCollection, Stage, VisOrdering, Visibility, Zoomer, boneView;
7079
7080 SeqCollection = require("./model/SeqCollection");
7081
7082 Colorator = require("./g/colorator");
7083
7084 Consensus = require("./g/consensus");
7085
7086 Columns = require("./g/columns");
7087
7088 Config = require("./g/config");
7089
7090 SelCol = require("./g/selection/SelectionCol");
7091
7092 Visibility = require("./g/visibility");
7093
7094 VisOrdering = require("./g/visOrdering");
7095
7096 Zoomer = require("./g/zoomer");
7097
7098 boneView = require("backbone-childs");
7099
7100 Eventhandler = require("biojs-events");
7101
7102 Stage = require("./views/Stage");
7103
7104 module.exports = boneView.extend({
7105   initialize: function(data) {
7106     var _ref;
7107     if (data.columns == null) {
7108       data.columns = {};
7109     }
7110     if (data.conf == null) {
7111       data.conf = {};
7112     }
7113     if (data.vis == null) {
7114       data.vis = {};
7115     }
7116     if (data.zoomer == null) {
7117       if (!((_ref = data.visorder) != null ? _ref : data.zoomer = {})) {
7118         data.visorder = {};
7119       }
7120     }
7121     this.g = Eventhandler.mixin({});
7122     if (data.seqs === void 0 || data.seqs.length === 0) {
7123       console.log("warning. empty seqs.");
7124     }
7125     this.seqs = new SeqCollection(data.seqs);
7126     this.g.config = new Config(data.conf);
7127     this.g.consensus = new Consensus();
7128     this.g.columns = new Columns(data.columns);
7129     this.g.colorscheme = new Colorator();
7130     this.g.selcol = new SelCol([], {
7131       g: this.g
7132     });
7133     this.g.vis = new Visibility(data.vis);
7134     this.g.visorder = new VisOrdering(data.visorder);
7135     this.g.zoomer = new Zoomer(data.zoomer, {
7136       g: this.g
7137     });
7138     this.addView("stage", new Stage({
7139       model: this.seqs,
7140       g: this.g
7141     }));
7142     this.el.setAttribute("class", "biojs_msa_div");
7143     if (this.g.config.get("eventBus") === true) {
7144       return this.startEventBus();
7145     }
7146   },
7147   startEventBus: function() {
7148     var busObjs, key, _i, _len, _results;
7149     busObjs = ["config", "consensus", "columns", "colorscheme", "selcol", "vis", "visorder", "zoomer"];
7150     _results = [];
7151     for (_i = 0, _len = busObjs.length; _i < _len; _i++) {
7152       key = busObjs[_i];
7153       _results.push(this._proxyToG(key));
7154     }
7155     return _results;
7156   },
7157   _proxyToG: function(key) {
7158     return this.listenTo(this.g[key], "all", function(name, prev, now) {
7159       if (name === "change") {
7160         return;
7161       }
7162       return this.g.trigger(key + ":" + name, now);
7163     });
7164   },
7165   render: function() {
7166     this.renderSubviews();
7167     this.g.vis.set("loaded", true);
7168     return this;
7169   }
7170 });
7171
7172
7173
7174 },{"./g/colorator":63,"./g/columns":64,"./g/config":65,"./g/consensus":66,"./g/selection/SelectionCol":68,"./g/visOrdering":69,"./g/visibility":70,"./g/zoomer":71,"./model/SeqCollection":87,"./views/Stage":100,"backbone-childs":3,"biojs-events":14}],91:[function(require,module,exports){
7175 var BMath;
7176
7177 module.exports = BMath = (function() {
7178   function BMath() {}
7179
7180   BMath.randomInt = function(lower, upper) {
7181     var _ref, _ref1;
7182     if (upper == null) {
7183       _ref = [0, lower], lower = _ref[0], upper = _ref[1];
7184     }
7185     if (lower > upper) {
7186       _ref1 = [upper, lower], lower = _ref1[0], upper = _ref1[1];
7187     }
7188     return Math.floor(Math.random() * (upper - lower + 1) + lower);
7189   };
7190
7191   BMath.uniqueId = function(length) {
7192     var id;
7193     if (length == null) {
7194       length = 8;
7195     }
7196     id = "";
7197     while (id.length < length) {
7198       id += Math.random().toString(36).substr(2);
7199     }
7200     return id.substr(0, length);
7201   };
7202
7203   BMath.getRandomInt = function(min, max) {
7204     return Math.floor(Math.random() * (max - min + 1)) + min;
7205   };
7206
7207   return BMath;
7208
7209 })();
7210
7211
7212
7213 },{}],92:[function(require,module,exports){
7214 module.exports.bmath = require("./bmath");
7215
7216 module.exports.proxy = require("./proxy");
7217
7218 module.exports.seqgen = require("./seqgen");
7219
7220
7221
7222 },{"./bmath":91,"./proxy":93,"./seqgen":94}],93:[function(require,module,exports){
7223 var proxy;
7224
7225 module.exports = proxy = {
7226   corsURL: (function(_this) {
7227     return function(url, g) {
7228       _this.g = g;
7229       if (document.URL.indexOf('localhost') >= 0 && url[0] === "/") {
7230         return url;
7231       }
7232       url = url.replace("www\.", "");
7233       url = url.replace("http://", "");
7234       url = _this.g.config.get('importProxy') + url;
7235       return url;
7236     };
7237   })(this)
7238 };
7239
7240
7241
7242 },{}],94:[function(require,module,exports){
7243 var BMath, Sequence, seqgen;
7244
7245 Sequence = require("biojs-model").seq;
7246
7247 BMath = require("./bmath");
7248
7249 seqgen = module.exports = {
7250   _generateSequence: function(len) {
7251     var i, possible, text, _i, _ref;
7252     text = "";
7253     possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
7254     for (i = _i = 0, _ref = len - 1; _i <= _ref; i = _i += 1) {
7255       text += possible.charAt(Math.floor(Math.random() * possible.length));
7256     }
7257     return text;
7258   },
7259   getDummySequences: function(len, seqLen) {
7260     var i, seqs, _i;
7261     seqs = [];
7262     if (len == null) {
7263       len = BMath.getRandomInt(3, 5);
7264     }
7265     if (seqLen == null) {
7266       seqLen = BMath.getRandomInt(50, 200);
7267     }
7268     for (i = _i = 1; _i <= len; i = _i += 1) {
7269       seqs.push(new Sequence(seqgen._generateSequence(seqLen), "seq" + i, "r" + i));
7270     }
7271     return seqs;
7272   }
7273 };
7274
7275
7276
7277 },{"./bmath":91,"biojs-model":27}],95:[function(require,module,exports){
7278 var Base, Line, Polygon, Rect, setAttr, svgns;
7279
7280 svgns = "http://www.w3.org/2000/svg";
7281
7282 setAttr = function(obj, opts) {
7283   var name, value;
7284   for (name in opts) {
7285     value = opts[name];
7286     obj.setAttributeNS(null, name, value);
7287   }
7288   return obj;
7289 };
7290
7291 Base = function(opts) {
7292   var svg;
7293   svg = document.createElementNS(svgns, 'svg');
7294   svg.setAttribute("width", opts.width);
7295   svg.setAttribute("height", opts.height);
7296   return svg;
7297 };
7298
7299 Rect = function(opts) {
7300   var rect;
7301   rect = document.createElementNS(svgns, 'rect');
7302   return setAttr(rect, opts);
7303 };
7304
7305 Line = function(opts) {
7306   var line;
7307   line = document.createElementNS(svgns, 'line');
7308   return setAttr(line, opts);
7309 };
7310
7311 Polygon = function(opts) {
7312   var line;
7313   line = document.createElementNS(svgns, 'polygon');
7314   return setAttr(line, opts);
7315 };
7316
7317 module.exports.rect = Rect;
7318
7319 module.exports.line = Line;
7320
7321 module.exports.polygon = Polygon;
7322
7323 module.exports.base = Base;
7324
7325
7326
7327 },{}],96:[function(require,module,exports){
7328 var LabelBlock, SeqBlock, boneView;
7329
7330 boneView = require("backbone-childs");
7331
7332 SeqBlock = require("./CanvasSeqBlock");
7333
7334 LabelBlock = require("./labels/LabelBlock");
7335
7336 module.exports = boneView.extend({
7337   initialize: function(data) {
7338     var labelblock, seqblock;
7339     this.g = data.g;
7340     if (true) {
7341       labelblock = new LabelBlock({
7342         model: this.model,
7343         g: this.g
7344       });
7345       labelblock.ordering = -1;
7346       this.addView("labelblock", labelblock);
7347     }
7348     if (this.g.vis.get("sequences")) {
7349       seqblock = new SeqBlock({
7350         model: this.model,
7351         g: this.g
7352       });
7353       seqblock.ordering = 0;
7354       this.addView("seqblock", seqblock);
7355     }
7356     this.listenTo(this.g.zoomer, "change:alignmentHeight", this.adjustHeight);
7357     return this.listenTo(this.g.columns, "change:hidden", this.adjustHeight);
7358   },
7359   render: function() {
7360     this.renderSubviews();
7361     this.el.className = "biojs_msa_albody";
7362     this.el.style.whiteSpace = "nowrap";
7363     this.adjustHeight();
7364     return this;
7365   },
7366   adjustHeight: function() {
7367     if (this.g.zoomer.get("alignmentHeight") === "auto") {
7368       this.el.style.height = (this.g.zoomer.get("rowHeight") * this.model.length) + 5;
7369     } else {
7370       this.el.style.height = this.g.zoomer.get("alignmentHeight");
7371     }
7372     return this.el.style.width = this.getWidth() + 15;
7373   },
7374   getWidth: function() {
7375     var width;
7376     width = 0;
7377     if (this.g.vis.get("labels")) {
7378       width += this.g.zoomer.get("labelWidth");
7379     }
7380     if (this.g.vis.get("metacell")) {
7381       width += this.g.zoomer.get("metaWidth");
7382     }
7383     if (this.g.vis.get("sequences")) {
7384       width += this.g.zoomer.get("alignmentWidth");
7385     }
7386     return width;
7387   }
7388 });
7389
7390
7391
7392 },{"./CanvasSeqBlock":98,"./labels/LabelBlock":104,"backbone-childs":3}],97:[function(require,module,exports){
7393 var CanvasCharCache, Events;
7394
7395 Events = require("biojs-events");
7396
7397 module.exports = CanvasCharCache = (function() {
7398   function CanvasCharCache(g) {
7399     this.g = g;
7400     this.cache = {};
7401     this.cacheHeight = 0;
7402     this.cacheWidth = 0;
7403   }
7404
7405   CanvasCharCache.prototype.getFontTile = function(letter, width, height) {
7406     if (width !== this.cacheWidth || height !== this.cacheHeight) {
7407       this.cacheHeight = height;
7408       this.cacheWidth = width;
7409       this.cache = {};
7410     }
7411     if (this.cache[letter] === void 0) {
7412       this.createTile(letter, width, height);
7413     }
7414     return this.cache[letter];
7415   };
7416
7417   CanvasCharCache.prototype.createTile = function(letter, width, height) {
7418     var canvas;
7419     canvas = this.cache[letter] = document.createElement("canvas");
7420     canvas.width = width;
7421     canvas.height = height;
7422     this.ctx = canvas.getContext('2d');
7423     this.ctx.font = this.g.zoomer.get("residueFont");
7424     this.ctx.textBaseline = 'middle';
7425     this.ctx.textAlign = "center";
7426     return this.ctx.fillText(letter, width / 2, height / 2, width);
7427   };
7428
7429   return CanvasCharCache;
7430
7431 })();
7432
7433
7434
7435 },{"biojs-events":14}],98:[function(require,module,exports){
7436 var CharCache, boneView, colorSelector, jbone, mouse, _;
7437
7438 boneView = require("backbone-childs");
7439
7440 mouse = require("mouse-pos");
7441
7442 colorSelector = require("biojs-util-colorschemes").selector;
7443
7444 _ = require("underscore");
7445
7446 jbone = require("jbone");
7447
7448 CharCache = require("./CanvasCharCache");
7449
7450 module.exports = boneView.extend({
7451   tagName: "canvas",
7452   initialize: function(data) {
7453     this.g = data.g;
7454     this.listenTo(this.g.zoomer, "change:_alignmentScrollLeft change:_alignmentScrollTop", function(model, value, options) {
7455       if (((options != null ? options.origin : void 0) == null) || options.origin !== "canvasseq") {
7456         return this.render();
7457       }
7458     });
7459     this.listenTo(this.g.columns, "change:hidden", this.render);
7460     this.listenTo(this.g.zoomer, "change:alignmentWidth", this.render);
7461     this.listenTo(this.g.colorscheme, "change", this.render);
7462     this.listenTo(this.g.selcol, "reset add", this.render);
7463     this.el.style.display = "inline-block";
7464     this.el.style.overflowX = "hidden";
7465     this.el.style.overflowY = "hidden";
7466     this.el.className = "biojs_msa_seqblock";
7467     this.ctx = this.el.getContext('2d');
7468     this.cache = new CharCache(this.g);
7469     this.throttleTime = 0;
7470     this.throttleCounts = 0;
7471     if (document.documentElement.style.webkitAppearance != null) {
7472       this.throttledDraw = function() {
7473         var start, tTime;
7474         start = +new Date();
7475         this.draw();
7476         this.throttleTime += +new Date() - start;
7477         this.throttleCounts++;
7478         if (this.throttleCounts > 15) {
7479           tTime = Math.ceil(this.throttleTime / this.throttleCounts);
7480           console.log("avgDrawTime/WebKit", tTime);
7481           return this.throttledDraw = this.draw;
7482         }
7483       };
7484     } else {
7485       this.throttledDraw = _.throttle(this.throttledDraw, 30);
7486     }
7487     return this.manageEvents();
7488   },
7489   throttledDraw: function() {
7490     var start, tTime;
7491     start = +new Date();
7492     this.draw();
7493     this.throttleTime += +new Date() - start;
7494     this.throttleCounts++;
7495     if (this.throttleCounts > 15) {
7496       tTime = Math.ceil(this.throttleTime / this.throttleCounts);
7497       console.log("avgDrawTime", tTime);
7498       tTime *= 1.2;
7499       tTime = Math.max(20, tTime);
7500       return this.throttledDraw = _.throttle(this.draw, tTime);
7501     }
7502   },
7503   manageEvents: function() {
7504     var events;
7505     events = {};
7506     events.mousedown = "_onmousedown";
7507     events.touchstart = "_ontouchstart";
7508     if (this.g.config.get("registerMouseClicks")) {
7509       events.dblclick = "_onclick";
7510     }
7511     if (this.g.config.get("registerMouseHover")) {
7512       events.mousein = "_onmousein";
7513       events.mouseout = "_onmouseout";
7514     }
7515     events.mousewheel = "_onmousewheel";
7516     events.DOMMouseScroll = "_onmousewheel";
7517     this.delegateEvents(events);
7518     this.listenTo(this.g.config, "change:registerMouseHover", this.manageEvents);
7519     this.listenTo(this.g.config, "change:registerMouseClick", this.manageEvents);
7520     return this.dragStart = [];
7521   },
7522   draw: function() {
7523     var rectHeight;
7524     this.el.width = this.el.width;
7525     rectHeight = this.g.zoomer.get("rowHeight");
7526     this.ctx.globalAlpha = this.g.colorscheme.get("opacity");
7527     this.drawSeqs(function(data) {
7528       return this.drawSeq(data, this._drawRect);
7529     });
7530     this.ctx.globalAlpha = 1;
7531     this.drawSeqs(function(data) {
7532       return this.drawSeq(data, this._drawLetter);
7533     });
7534     return this.drawSeqs(this.drawSeqExtended);
7535   },
7536   drawSeqs: function(callback) {
7537     var hidden, i, rectHeight, start, y, _i, _ref, _results;
7538     rectHeight = this.g.zoomer.get("rowHeight");
7539     hidden = this.g.columns.get("hidden");
7540     start = Math.max(0, Math.abs(Math.ceil(-this.g.zoomer.get('_alignmentScrollTop') / rectHeight)));
7541     y = -Math.abs(-this.g.zoomer.get('_alignmentScrollTop') % rectHeight);
7542     _results = [];
7543     for (i = _i = start, _ref = this.model.length - 1; _i <= _ref; i = _i += 1) {
7544       if (this.model.at(i).get('hidden')) {
7545         continue;
7546       }
7547       callback.call(this, {
7548         model: this.model.at(i),
7549         y: y,
7550         hidden: hidden
7551       });
7552       y = y + rectHeight;
7553       if (y > this.el.height) {
7554         break;
7555       } else {
7556         _results.push(void 0);
7557       }
7558     }
7559     return _results;
7560   },
7561   drawSeq: function(data, callback) {
7562     var c, elWidth, j, rectHeight, rectWidth, res, seq, start, x, y, _i, _ref, _results;
7563     seq = data.model.get("seq");
7564     y = data.y;
7565     rectWidth = this.g.zoomer.get("columnWidth");
7566     rectHeight = this.g.zoomer.get("rowHeight");
7567     start = Math.max(0, Math.abs(Math.ceil(-this.g.zoomer.get('_alignmentScrollLeft') / rectWidth)));
7568     x = -Math.abs(-this.g.zoomer.get('_alignmentScrollLeft') % rectWidth);
7569     res = {
7570       rectWidth: rectWidth,
7571       rectHeight: rectHeight,
7572       y: y
7573     };
7574     elWidth = this.el.width;
7575     _results = [];
7576     for (j = _i = start, _ref = seq.length - 1; _i <= _ref; j = _i += 1) {
7577       c = seq[j];
7578       c = c.toUpperCase();
7579       res.x = x;
7580       res.c = c;
7581       if (data.hidden.indexOf(j) < 0) {
7582         callback(this, res);
7583       } else {
7584         continue;
7585       }
7586       x = x + rectWidth;
7587       if (x > elWidth) {
7588         break;
7589       } else {
7590         _results.push(void 0);
7591       }
7592     }
7593     return _results;
7594   },
7595   _drawRect: function(that, data) {
7596     var color;
7597     color = that.color[data.c];
7598     if (color != null) {
7599       that.ctx.fillStyle = color;
7600       return that.ctx.fillRect(data.x, data.y, data.rectWidth, data.rectHeight);
7601     }
7602   },
7603   _drawLetter: function(that, data) {
7604     return that.ctx.drawImage(that.cache.getFontTile(data.c, data.rectWidth, data.rectHeight), data.x, data.y, data.rectWidth, data.rectHeight);
7605   },
7606   drawSeqExtended: function(data) {
7607     var f, features, j, mNextSel, mPrevSel, rectHeight, rectWidth, selection, seq, start, starts, x, xZero, yZero, _i, _j, _len, _ref, _ref1;
7608     seq = data.model.get("seq");
7609     rectWidth = this.g.zoomer.get("columnWidth");
7610     rectHeight = this.g.zoomer.get("rowHeight");
7611     start = Math.max(0, Math.abs(Math.ceil(-this.g.zoomer.get('_alignmentScrollLeft') / rectWidth)));
7612     x = -Math.abs(-this.g.zoomer.get('_alignmentScrollLeft') % rectWidth);
7613     xZero = x - start * rectWidth;
7614     selection = this._getSelection(data.model);
7615     _ref = this._getPrevNextSelection(data.model), mPrevSel = _ref[0], mNextSel = _ref[1];
7616     features = data.model.get("features");
7617     yZero = data.y;
7618     for (j = _i = start, _ref1 = seq.length - 1; _i <= _ref1; j = _i += 1) {
7619       starts = features.startOn(j);
7620       if (data.hidden.indexOf(j) >= 0) {
7621         continue;
7622       }
7623       if (starts.length > 0) {
7624         for (_j = 0, _len = starts.length; _j < _len; _j++) {
7625           f = starts[_j];
7626           this.appendFeature({
7627             f: f,
7628             xZero: x,
7629             yZero: yZero
7630           });
7631         }
7632       }
7633       x = x + rectWidth;
7634       if (x > this.el.width) {
7635         break;
7636       }
7637     }
7638     return this._appendSelection({
7639       model: data.model,
7640       xZero: xZero,
7641       yZero: yZero,
7642       hidden: data.hidden
7643     });
7644   },
7645   render: function() {
7646     this.el.setAttribute('height', this.g.zoomer.get("alignmentHeight"));
7647     this.el.setAttribute('width', this.g.zoomer.get("alignmentWidth"));
7648     this.g.zoomer._adjustWidth(this.el, this.model);
7649     this.g.zoomer._checkScrolling(this._checkScrolling([this.g.zoomer.get('_alignmentScrollLeft'), this.g.zoomer.get('_alignmentScrollTop')]), {
7650       header: "canvasseq"
7651     });
7652     this.color = colorSelector.getColor(this.g.colorscheme.get("scheme"));
7653     this.throttledDraw();
7654     return this;
7655   },
7656   _onmousemove: function(e, reversed) {
7657     var dragEnd, i, relDist, relEnd, scaleFactor, scrollCorrected, _i, _j, _k;
7658     if (this.dragStart.length === 0) {
7659       return;
7660     }
7661     dragEnd = mouse.abs(e);
7662     relEnd = [dragEnd[0] - this.dragStart[0], dragEnd[1] - this.dragStart[1]];
7663     scaleFactor = this.g.zoomer.get("canvasEventScale");
7664     if (reversed) {
7665       scaleFactor = 3;
7666     }
7667     for (i = _i = 0; _i <= 1; i = _i += 1) {
7668       relEnd[i] = relEnd[i] * scaleFactor;
7669     }
7670     relDist = [this.dragStartScroll[0] - relEnd[0], this.dragStartScroll[1] - relEnd[1]];
7671     for (i = _j = 0; _j <= 1; i = _j += 1) {
7672       relDist[i] = Math.round(relDist[i]);
7673     }
7674     scrollCorrected = this._checkScrolling(relDist);
7675     this.g.zoomer._checkScrolling(scrollCorrected, {
7676       origin: "canvasseq"
7677     });
7678     for (i = _k = 0; _k <= 1; i = _k += 1) {
7679       if (scrollCorrected[i] !== relDist[i]) {
7680         if (scrollCorrected[i] === 0) {
7681           this.dragStart[i] = dragEnd[i];
7682           this.dragStartScroll[i] = 0;
7683         } else {
7684           this.dragStart[i] = dragEnd[i] - scrollCorrected[i];
7685         }
7686       }
7687     }
7688     this.throttledDraw();
7689     if (e.preventDefault != null) {
7690       e.preventDefault();
7691       return e.stopPropagation();
7692     }
7693   },
7694   _ontouchmove: function(e) {
7695     this._onmousemove(e.changedTouches[0], true);
7696     e.preventDefault();
7697     return e.stopPropagation();
7698   },
7699   _onmousedown: function(e) {
7700     this.dragStart = mouse.abs(e);
7701     this.dragStartScroll = [this.g.zoomer.get('_alignmentScrollLeft'), this.g.zoomer.get('_alignmentScrollTop')];
7702     jbone(document.body).on('mousemove.overmove', (function(_this) {
7703       return function(e) {
7704         return _this._onmousemove(e);
7705       };
7706     })(this));
7707     jbone(document.body).on('mouseup.overup', (function(_this) {
7708       return function() {
7709         return _this._cleanup();
7710       };
7711     })(this));
7712     return e.preventDefault();
7713   },
7714   _ontouchstart: function(e) {
7715     this.dragStart = mouse.abs(e.changedTouches[0]);
7716     this.dragStartScroll = [this.g.zoomer.get('_alignmentScrollLeft'), this.g.zoomer.get('_alignmentScrollTop')];
7717     jbone(document.body).on('touchmove.overtmove', (function(_this) {
7718       return function(e) {
7719         return _this._ontouchmove(e);
7720       };
7721     })(this));
7722     return jbone(document.body).on('touchend.overtend touchleave.overtleave touchcancel.overtcanel', (function(_this) {
7723       return function(e) {
7724         return _this._touchCleanup(e);
7725       };
7726     })(this));
7727   },
7728   _onmousewinout: function(e) {
7729     if (e.toElement === document.body.parentNode) {
7730       return this._cleanup();
7731     }
7732   },
7733   _cleanup: function() {
7734     this.dragStart = [];
7735     jbone(document.body).off('.overmove');
7736     jbone(document.body).off('.overup');
7737     return jbone(document.body).off('.overout');
7738   },
7739   _touchCleanup: function(e) {
7740     if (e.changedTouches.length > 0) {
7741       this._onmousemove(e.changedTouches[0], true);
7742     }
7743     this.dragStart = [];
7744     jbone(document.body).off('.overtmove');
7745     jbone(document.body).off('.overtend');
7746     jbone(document.body).off('.overtleave');
7747     return jbone(document.body).off('.overtcancel');
7748   },
7749   _onmousewheel: function(e) {
7750     var delta;
7751     delta = mouse.wheelDelta(e);
7752     this.g.zoomer.set('_alignmentScrollLeft', this.g.zoomer.get('_alignmentScrollLeft') + delta[0]);
7753     this.g.zoomer.set('_alignmentScrollTop', this.g.zoomer.get('_alignmentScrollTop') + delta[1]);
7754     return e.preventDefault();
7755   },
7756   _onclick: function(e) {
7757     this.g.trigger("residue:click", this._getClickPos(e));
7758     return this.throttledDraw();
7759   },
7760   _onmousein: function(e) {
7761     this.g.trigger("residue:click", this._getClickPos(e));
7762     return this.throttledDraw();
7763   },
7764   _onmouseout: function(e) {
7765     this.g.trigger("residue:click", this._getClickPos(e));
7766     return this.throttledDraw();
7767   },
7768   _getClickPos: function(e) {
7769     var coords, seqId, x, y;
7770     coords = mouse.rel(e);
7771     coords[0] += this.g.zoomer.get("_alignmentScrollLeft");
7772     coords[1] += this.g.zoomer.get("_alignmentScrollTop");
7773     x = Math.floor(coords[0] / this.g.zoomer.get("columnWidth"));
7774     y = Math.floor(coords[1] / this.g.zoomer.get("rowHeight"));
7775     x += this.g.columns.calcHiddenColumns(x);
7776     y += this.model.calcHiddenSeqs(y);
7777     x = Math.max(0, x);
7778     y = Math.max(0, y);
7779     seqId = this.model.at(y).get("id");
7780     return {
7781       seqId: seqId,
7782       rowPos: x,
7783       evt: e
7784     };
7785   },
7786   _checkScrolling: function(scrollObj) {
7787     var i, max, _i;
7788     max = [this.model.getMaxLength() * this.g.zoomer.get("columnWidth") - this.g.zoomer.get('alignmentWidth'), this.model.length * this.g.zoomer.get("rowHeight") - this.g.zoomer.get('alignmentHeight')];
7789     for (i = _i = 0; _i <= 1; i = _i += 1) {
7790       if (scrollObj[i] > max[i]) {
7791         scrollObj[i] = max[i];
7792       }
7793       if (scrollObj[i] < 0) {
7794         scrollObj[i] = 0;
7795       }
7796     }
7797     return scrollObj;
7798   },
7799   _getSelection: function(model) {
7800     var maxLen, n, rows, sel, selection, sels, _i, _j, _k, _len, _ref, _ref1, _ref2;
7801     maxLen = model.get("seq").length;
7802     selection = [];
7803     sels = this.g.selcol.getSelForRow(model.get("id"));
7804     rows = _.find(sels, function(el) {
7805       return el.get("type") === "row";
7806     });
7807     if (rows != null) {
7808       for (n = _i = 0, _ref = maxLen - 1; _i <= _ref; n = _i += 1) {
7809         selection.push(n);
7810       }
7811     } else if (sels.length > 0) {
7812       for (_j = 0, _len = sels.length; _j < _len; _j++) {
7813         sel = sels[_j];
7814         for (n = _k = _ref1 = sel.get("xStart"), _ref2 = sel.get("xEnd"); _k <= _ref2; n = _k += 1) {
7815           selection.push(n);
7816         }
7817       }
7818     }
7819     return selection;
7820   },
7821   appendFeature: function(data) {
7822     var beforeStyle, beforeWidth, boxHeight, boxWidth, f, width;
7823     f = data.f;
7824     boxWidth = this.g.zoomer.get("columnWidth");
7825     boxHeight = this.g.zoomer.get("rowHeight");
7826     width = (f.get("xEnd") - f.get("xStart")) * boxWidth;
7827     beforeWidth = this.ctx.lineWidth;
7828     this.ctx.lineWidth = 3;
7829     beforeStyle = this.ctx.strokeStyle;
7830     this.ctx.strokeStyle = f.get("fillColor");
7831     this.ctx.strokeRect(data.xZero, data.yZero, width, boxHeight);
7832     this.ctx.strokeStyle = beforeStyle;
7833     return this.ctx.lineWidth = beforeWidth;
7834   },
7835   _appendSelection: function(data) {
7836     var boxHeight, boxWidth, hiddenOffset, k, mNextSel, mPrevSel, n, selection, seq, _i, _ref, _ref1, _results;
7837     seq = data.model.get("seq");
7838     selection = this._getSelection(data.model);
7839     _ref = this._getPrevNextSelection(data.model), mPrevSel = _ref[0], mNextSel = _ref[1];
7840     boxWidth = this.g.zoomer.get("columnWidth");
7841     boxHeight = this.g.zoomer.get("rowHeight");
7842     if (selection.length === 0) {
7843       return;
7844     }
7845     hiddenOffset = 0;
7846     _results = [];
7847     for (n = _i = 0, _ref1 = seq.length - 1; _i <= _ref1; n = _i += 1) {
7848       if (data.hidden.indexOf(n) >= 0) {
7849         _results.push(hiddenOffset++);
7850       } else {
7851         k = n - hiddenOffset;
7852         if (selection.indexOf(n) >= 0 && (k === 0 || selection.indexOf(n - 1) < 0)) {
7853           _results.push(this._renderSelection({
7854             n: n,
7855             k: k,
7856             selection: selection,
7857             mPrevSel: mPrevSel,
7858             mNextSel: mNextSel,
7859             xZero: data.xZero,
7860             yZero: data.yZero,
7861             model: data.model
7862           }));
7863         } else {
7864           _results.push(void 0);
7865         }
7866       }
7867     }
7868     return _results;
7869   },
7870   _renderSelection: function(data) {
7871     var beforeStyle, beforeWidth, boxHeight, boxWidth, hidden, i, k, mNextSel, mPrevSel, n, selection, selectionLength, totalWidth, xPart, xPos, xZero, yZero, _i, _j, _ref, _ref1;
7872     xZero = data.xZero;
7873     yZero = data.yZero;
7874     n = data.n;
7875     k = data.k;
7876     selection = data.selection;
7877     mPrevSel = data.mPrevSel;
7878     mNextSel = data.mNextSel;
7879     selectionLength = 0;
7880     for (i = _i = n, _ref = data.model.get("seq").length - 1; _i <= _ref; i = _i += 1) {
7881       if (selection.indexOf(i) >= 0) {
7882         selectionLength++;
7883       } else {
7884         break;
7885       }
7886     }
7887     boxWidth = this.g.zoomer.get("columnWidth");
7888     boxHeight = this.g.zoomer.get("rowHeight");
7889     totalWidth = (boxWidth * selectionLength) + 1;
7890     hidden = this.g.columns.get('hidden');
7891     this.ctx.beginPath();
7892     beforeWidth = this.ctx.lineWidth;
7893     this.ctx.lineWidth = 3;
7894     beforeStyle = this.ctx.strokeStyle;
7895     this.ctx.strokeStyle = "#FF0000";
7896     xZero += k * boxWidth;
7897     xPart = 0;
7898     for (i = _j = 0, _ref1 = selectionLength - 1; 0 <= _ref1 ? _j <= _ref1 : _j >= _ref1; i = 0 <= _ref1 ? ++_j : --_j) {
7899       xPos = n + i;
7900       if (hidden.indexOf(xPos) >= 0) {
7901         continue;
7902       }
7903       if (!((mPrevSel != null) && mPrevSel.indexOf(xPos) >= 0)) {
7904         this.ctx.moveTo(xZero + xPart, yZero);
7905         this.ctx.lineTo(xPart + boxWidth + xZero, yZero);
7906       }
7907       if (!((mNextSel != null) && mNextSel.indexOf(xPos) >= 0)) {
7908         this.ctx.moveTo(xPart + xZero, boxHeight + yZero);
7909         this.ctx.lineTo(xPart + boxWidth + xZero, boxHeight + yZero);
7910       }
7911       xPart += boxWidth;
7912     }
7913     this.ctx.moveTo(xZero, yZero);
7914     this.ctx.lineTo(xZero, boxHeight + yZero);
7915     this.ctx.moveTo(xZero + totalWidth, yZero);
7916     this.ctx.lineTo(xZero + totalWidth, boxHeight + yZero);
7917     this.ctx.stroke();
7918     this.ctx.strokeStyle = beforeStyle;
7919     return this.ctx.lineWidth = beforeWidth;
7920   },
7921   _getPrevNextSelection: function(model) {
7922     var mNextSel, mPrevSel, modelNext, modelPrev;
7923     modelPrev = model.collection.prev(model);
7924     modelNext = model.collection.next(model);
7925     if (modelPrev != null) {
7926       mPrevSel = this._getSelection(modelPrev);
7927     }
7928     if (modelNext != null) {
7929       mNextSel = this._getSelection(modelNext);
7930     }
7931     return [mPrevSel, mNextSel];
7932   }
7933 });
7934
7935
7936
7937 },{"./CanvasCharCache":97,"backbone-childs":3,"biojs-util-colorschemes":29,"jbone":50,"mouse-pos":51,"underscore":59}],99:[function(require,module,exports){
7938 var OverviewBox, colorSelector, jbone, mouse, selection, view, _;
7939
7940 view = require("backbone-viewj");
7941
7942 mouse = require("mouse-pos");
7943
7944 selection = require("../g/selection/Selection");
7945
7946 colorSelector = require("biojs-util-colorschemes").selector;
7947
7948 jbone = require("jbone");
7949
7950 _ = require("underscore");
7951
7952 module.exports = OverviewBox = view.extend({
7953   className: "biojs_msa_overviewbox",
7954   tagName: "canvas",
7955   initialize: function(data) {
7956     this.g = data.g;
7957     this.listenTo(this.g.zoomer, "change:boxRectWidth change:boxRectHeight", this.render);
7958     this.listenTo(this.g.selcol, "add reset change", this.render);
7959     this.listenTo(this.g.columns, "change:hidden", this.render);
7960     this.listenTo(this.g.colorscheme, "change:showLowerCase", this.render);
7961     this.listenTo(this.model, "change", _.debounce(this.render, 5));
7962     this.color = colorSelector.getColor(this.g.colorscheme.get("scheme"));
7963     this.listenTo(this.g.colorscheme, "change:scheme", function() {
7964       this.color = colorSelector.getColor(this.g.colorscheme.get("scheme"));
7965       return this.render();
7966     });
7967     return this.dragStart = [];
7968   },
7969   events: {
7970     click: "_onclick",
7971     mousedown: "_onmousedown"
7972   },
7973   render: function() {
7974     var c, color, hidden, i, j, rectHeight, rectWidth, seq, showLowerCase, x, y, _i, _j, _ref, _ref1;
7975     this._createCanvas();
7976     this.el.textContent = "overview";
7977     this.ctx.fillStyle = "#999999";
7978     this.ctx.fillRect(0, 0, this.el.width, this.el.height);
7979     rectWidth = this.g.zoomer.get("boxRectWidth");
7980     rectHeight = this.g.zoomer.get("boxRectHeight");
7981     hidden = this.g.columns.get("hidden");
7982     showLowerCase = this.g.colorscheme.get("showLowerCase");
7983     y = -rectHeight;
7984     for (i = _i = 0, _ref = this.model.length - 1; _i <= _ref; i = _i += 1) {
7985       seq = this.model.at(i).get("seq");
7986       x = 0;
7987       y = y + rectHeight;
7988       if (this.model.at(i).get("hidden")) {
7989         console.log(this.model.at(i).get("hidden"));
7990         this.ctx.fillStyle = "grey";
7991         this.ctx.fillRect(0, y, seq.length * rectWidth, rectHeight);
7992         continue;
7993       }
7994       for (j = _j = 0, _ref1 = seq.length - 1; _j <= _ref1; j = _j += 1) {
7995         c = seq[j];
7996         if (showLowerCase) {
7997           c = c.toUpperCase();
7998         }
7999         color = this.color[c];
8000         if (hidden.indexOf(j) >= 0) {
8001           color = "grey";
8002         }
8003         if (color != null) {
8004           this.ctx.fillStyle = color;
8005           this.ctx.fillRect(x, y, rectWidth, rectHeight);
8006         }
8007         x = x + rectWidth;
8008       }
8009     }
8010     return this._drawSelection();
8011   },
8012   _drawSelection: function() {
8013     var i, maxHeight, pos, rectHeight, rectWidth, sel, seq, _i, _ref;
8014     if (this.dragStart.length > 0 && !this.prolongSelection) {
8015       return;
8016     }
8017     rectWidth = this.g.zoomer.get("boxRectWidth");
8018     rectHeight = this.g.zoomer.get("boxRectHeight");
8019     maxHeight = rectHeight * this.model.length;
8020     this.ctx.fillStyle = "#ffff00";
8021     this.ctx.globalAlpha = 0.9;
8022     for (i = _i = 0, _ref = this.g.selcol.length - 1; _i <= _ref; i = _i += 1) {
8023       sel = this.g.selcol.at(i);
8024       if (sel.get('type') === 'column') {
8025         this.ctx.fillRect(rectWidth * sel.get('xStart'), 0, rectWidth * (sel.get('xEnd') - sel.get('xStart') + 1), maxHeight);
8026       } else if (sel.get('type') === 'row') {
8027         seq = (this.model.filter(function(el) {
8028           return el.get('id') === sel.get('seqId');
8029         }))[0];
8030         pos = this.model.indexOf(seq);
8031         this.ctx.fillRect(0, rectHeight * pos, rectWidth * seq.get('seq').length, rectHeight);
8032       } else if (sel.get('type') === 'pos') {
8033         seq = (this.model.filter(function(el) {
8034           return el.get('id') === sel.get('seqId');
8035         }))[0];
8036         pos = this.model.indexOf(seq);
8037         this.ctx.fillRect(rectWidth * sel.get('xStart'), rectHeight * pos, rectWidth * (sel.get('xEnd') - sel.get('xStart') + 1), rectHeight);
8038       }
8039     }
8040     return this.ctx.globalAlpha = 1;
8041   },
8042   _onclick: function(evt) {
8043     return this.g.trigger("meta:click", {
8044       seqId: this.model.get("id", {
8045         evt: evt
8046       })
8047     });
8048   },
8049   _onmousemove: function(e) {
8050     var rect;
8051     if (this.dragStart.length === 0) {
8052       return;
8053     }
8054     this.render();
8055     this.ctx.fillStyle = "#ffff00";
8056     this.ctx.globalAlpha = 0.9;
8057     rect = this._calcSelection(mouse.abs(e));
8058     this.ctx.fillRect(rect[0][0], rect[1][0], rect[0][1] - rect[0][0], rect[1][1] - rect[1][0]);
8059     e.preventDefault();
8060     return e.stopPropagation();
8061   },
8062   _onmousedown: function(e) {
8063     this.dragStart = mouse.abs(e);
8064     this.dragStartRel = mouse.rel(e);
8065     if (e.ctrlKey || e.metaKey) {
8066       this.prolongSelection = true;
8067     } else {
8068       this.prolongSelection = false;
8069     }
8070     jbone(document.body).on('mousemove.overmove', (function(_this) {
8071       return function(e) {
8072         return _this._onmousemove(e);
8073       };
8074     })(this));
8075     jbone(document.body).on('mouseup.overup', (function(_this) {
8076       return function(e) {
8077         return _this._onmouseup(e);
8078       };
8079     })(this));
8080     return this.dragStart;
8081   },
8082   _calcSelection: function(dragMove) {
8083     var dragRel, i, rect, _i, _j;
8084     dragRel = [dragMove[0] - this.dragStart[0], dragMove[1] - this.dragStart[1]];
8085     for (i = _i = 0; _i <= 1; i = _i += 1) {
8086       dragRel[i] = this.dragStartRel[i] + dragRel[i];
8087     }
8088     rect = [[this.dragStartRel[0], dragRel[0]], [this.dragStartRel[1], dragRel[1]]];
8089     for (i = _j = 0; _j <= 1; i = _j += 1) {
8090       if (rect[i][1] < rect[i][0]) {
8091         rect[i] = [rect[i][1], rect[i][0]];
8092       }
8093       rect[i][0] = Math.max(rect[i][0], 0);
8094     }
8095     return rect;
8096   },
8097   _endSelection: function(dragEnd) {
8098     var args, i, j, rect, selis, _i, _j, _k, _ref, _ref1;
8099     jbone(document.body).off('.overmove');
8100     jbone(document.body).off('.overup');
8101     if (this.dragStart.length === 0) {
8102       return;
8103     }
8104     rect = this._calcSelection(dragEnd);
8105     for (i = _i = 0; _i <= 1; i = ++_i) {
8106       rect[0][i] = Math.floor(rect[0][i] / this.g.zoomer.get("boxRectWidth"));
8107     }
8108     for (i = _j = 0; _j <= 1; i = ++_j) {
8109       rect[1][i] = Math.floor(rect[1][i] / this.g.zoomer.get("boxRectHeight"));
8110     }
8111     rect[0][1] = Math.min(this.model.getMaxLength() - 1, rect[0][1]);
8112     rect[1][1] = Math.min(this.model.length - 1, rect[1][1]);
8113     selis = [];
8114     for (j = _k = _ref = rect[1][0], _ref1 = rect[1][1]; _k <= _ref1; j = _k += 1) {
8115       args = {
8116         seqId: this.model.at(j).get('id'),
8117         xStart: rect[0][0],
8118         xEnd: rect[0][1]
8119       };
8120       selis.push(new selection.possel(args));
8121     }
8122     this.dragStart = [];
8123     if (this.prolongSelection) {
8124       this.g.selcol.add(selis);
8125     } else {
8126       this.g.selcol.reset(selis);
8127     }
8128     this.g.zoomer.setLeftOffset(rect[0][0]);
8129     return this.g.zoomer.setTopOffset(rect[1][0]);
8130   },
8131   _onmouseup: function(e) {
8132     return this._endSelection(mouse.abs(e));
8133   },
8134   _onmouseout: function(e) {
8135     return this._endSelection(mouse.abs(e));
8136   },
8137   _createCanvas: function() {
8138     var rectHeight, rectWidth;
8139     rectWidth = this.g.zoomer.get("boxRectWidth");
8140     rectHeight = this.g.zoomer.get("boxRectHeight");
8141     this.el.height = this.model.length * rectHeight;
8142     this.el.width = this.model.getMaxLength() * rectWidth;
8143     this.ctx = this.el.getContext("2d");
8144     this.el.style.overflow = "scroll";
8145     return this.el.style.cursor = "crosshair";
8146   }
8147 });
8148
8149
8150
8151 },{"../g/selection/Selection":67,"backbone-viewj":10,"biojs-util-colorschemes":29,"jbone":50,"mouse-pos":51,"underscore":59}],100:[function(require,module,exports){
8152 var AlignmentBody, HeaderBlock, OverviewBox, boneView, identityCalc, _;
8153
8154 boneView = require("backbone-childs");
8155
8156 AlignmentBody = require("./AlignmentBody");
8157
8158 HeaderBlock = require("./header/HeaderBlock");
8159
8160 OverviewBox = require("./OverviewBox");
8161
8162 identityCalc = require("../algo/identityCalc");
8163
8164 _ = require('underscore');
8165
8166 module.exports = boneView.extend({
8167   initialize: function(data) {
8168     this.g = data.g;
8169     this.draw();
8170     this.listenTo(this.model, "reset", function() {
8171       this.isNotDirty = false;
8172       return this.rerender();
8173     });
8174     this.listenTo(this.model, "change:hidden", _.debounce(this.rerender, 10));
8175     this.listenTo(this.model, "sort", this.rerender);
8176     this.listenTo(this.model, "add", function() {
8177       return console.log("seq add");
8178     });
8179     this.listenTo(this.g.vis, "change:sequences", this.rerender);
8180     this.listenTo(this.g.vis, "change:overviewbox", this.rerender);
8181     return this.listenTo(this.g.visorder, "change", this.rerender);
8182   },
8183   draw: function() {
8184     var body, consensus, headerblock, overviewbox;
8185     this.removeViews();
8186     if (!this.isNotDirty) {
8187       consensus = this.g.consensus.getConsensus(this.model);
8188       identityCalc(this.model, consensus);
8189       this.isNotDirty = true;
8190     }
8191     if (this.g.vis.get("overviewbox")) {
8192       overviewbox = new OverviewBox({
8193         model: this.model,
8194         g: this.g
8195       });
8196       overviewbox.ordering = this.g.visorder.get('overviewBox');
8197       this.addView("overviewbox", overviewbox);
8198     }
8199     if (true) {
8200       headerblock = new HeaderBlock({
8201         model: this.model,
8202         g: this.g
8203       });
8204       headerblock.ordering = this.g.visorder.get('headerBox');
8205       this.addView("headerblock", headerblock);
8206     }
8207     body = new AlignmentBody({
8208       model: this.model,
8209       g: this.g
8210     });
8211     body.ordering = this.g.visorder.get('alignmentBody');
8212     return this.addView("body", body);
8213   },
8214   render: function() {
8215     this.renderSubviews();
8216     this.el.className = "biojs_msa_stage";
8217     return this;
8218   },
8219   rerender: function() {
8220     this.draw();
8221     return this.render();
8222   }
8223 });
8224
8225
8226
8227 },{"../algo/identityCalc":61,"./AlignmentBody":96,"./OverviewBox":99,"./header/HeaderBlock":102,"backbone-childs":3,"underscore":59}],101:[function(require,module,exports){
8228 var ConservationView, dom, svg, view;
8229
8230 view = require("backbone-viewj");
8231
8232 dom = require("dom-helper");
8233
8234 svg = require("../../utils/svg");
8235
8236 ConservationView = view.extend({
8237   className: "biojs_msa_conserv",
8238   initialize: function(data) {
8239     this.g = data.g;
8240     this.listenTo(this.g.zoomer, "change:stepSize change:labelWidth change:columnWidth", this.render);
8241     this.listenTo(this.g.vis, "change:labels change:metacell", this.render);
8242     this.listenTo(this.g.columns, "change:scaling", this.render);
8243     this.listenTo(this.model, "reset", this.render);
8244     return this.manageEvents();
8245   },
8246   render: function() {
8247     var avgHeight, cellWidth, height, hidden, i, maxHeight, n, nMax, rect, s, stepSize, width, x, _i, _ref;
8248     this.g.columns.calcConservation(this.model);
8249     dom.removeAllChilds(this.el);
8250     nMax = this.model.getMaxLength();
8251     cellWidth = this.g.zoomer.get("columnWidth");
8252     maxHeight = 20;
8253     width = cellWidth * (nMax - this.g.columns.get('hidden').length);
8254     console.log(this.g.columns.get('hidden'));
8255     s = svg.base({
8256       height: maxHeight,
8257       width: width
8258     });
8259     s.style.display = "inline-block";
8260     s.style.cursor = "pointer";
8261     stepSize = this.g.zoomer.get("stepSize");
8262     hidden = this.g.columns.get("hidden");
8263     x = 0;
8264     n = 0;
8265     while (n < nMax) {
8266       if (hidden.indexOf(n) >= 0) {
8267         n += stepSize;
8268         continue;
8269       }
8270       width = cellWidth * stepSize;
8271       avgHeight = 0;
8272       for (i = _i = 0, _ref = stepSize - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
8273         avgHeight += this.g.columns.get("conserv")[n];
8274       }
8275       height = maxHeight * (avgHeight / stepSize);
8276       rect = svg.rect({
8277         x: x,
8278         y: maxHeight - height,
8279         width: width - cellWidth / 4,
8280         height: height,
8281         style: "stroke:red;stroke-width:1;"
8282       });
8283       rect.rowPos = n;
8284       s.appendChild(rect);
8285       x += width;
8286       n += stepSize;
8287     }
8288     this.el.appendChild(s);
8289     return this;
8290   },
8291   _onclick: function(evt) {
8292     var i, rowPos, stepSize, _i, _ref, _results;
8293     rowPos = evt.target.rowPos;
8294     stepSize = this.g.zoomer.get("stepSize");
8295     _results = [];
8296     for (i = _i = 0, _ref = stepSize - 1; _i <= _ref; i = _i += 1) {
8297       _results.push(this.g.trigger("bar:click", {
8298         rowPos: rowPos + i,
8299         evt: evt
8300       }));
8301     }
8302     return _results;
8303   },
8304   manageEvents: function() {
8305     var events;
8306     events = {};
8307     if (this.g.config.get("registerMouseClicks")) {
8308       events.click = "_onclick";
8309     }
8310     if (this.g.config.get("registerMouseHover")) {
8311       events.mousein = "_onmousein";
8312       events.mouseout = "_onmouseout";
8313     }
8314     this.delegateEvents(events);
8315     this.listenTo(this.g.config, "change:registerMouseHover", this.manageEvents);
8316     return this.listenTo(this.g.config, "change:registerMouseClick", this.manageEvents);
8317   },
8318   _onmousein: function(evt) {
8319     var rowPos;
8320     rowPos = this.g.zoomer.get("stepSize" * evt.rowPos);
8321     return this.g.trigger("bar:mousein", {
8322       rowPos: rowPos,
8323       evt: evt
8324     });
8325   },
8326   _onmouseout: function(evt) {
8327     var rowPos;
8328     rowPos = this.g.zoomer.get("stepSize" * evt.rowPos);
8329     return this.g.trigger("bar:mouseout", {
8330       rowPos: rowPos,
8331       evt: evt
8332     });
8333   }
8334 });
8335
8336 module.exports = ConservationView;
8337
8338
8339
8340 },{"../../utils/svg":95,"backbone-viewj":10,"dom-helper":49}],102:[function(require,module,exports){
8341 var ConservationView, MarkerView, boneView, identityCalc, _;
8342
8343 MarkerView = require("./MarkerView");
8344
8345 ConservationView = require("./ConservationView");
8346
8347 identityCalc = require("../../algo/identityCalc");
8348
8349 boneView = require("backbone-childs");
8350
8351 _ = require('underscore');
8352
8353 module.exports = boneView.extend({
8354   initialize: function(data) {
8355     this.g = data.g;
8356     this.blockEvents = false;
8357     this.listenTo(this.g.vis, "change:markers change:conserv", function() {
8358       this.draw();
8359       return this.render();
8360     });
8361     this.listenTo(this.g.vis, "change", this._setSpacer);
8362     this.listenTo(this.g.zoomer, "change:alignmentWidth", function() {
8363       return this._adjustWidth();
8364     });
8365     this.listenTo(this.g.zoomer, "change:_alignmentScrollLeft", this._adjustScrollingLeft);
8366     this.listenTo(this.g.columns, "change:hidden", function() {
8367       this.draw();
8368       return this.render();
8369     });
8370     this.draw();
8371     this._onscroll = this._sendScrollEvent;
8372     return this.g.vis.once('change:loaded', this._adjustScrollingLeft, this);
8373   },
8374   events: {
8375     "scroll": "_onscroll"
8376   },
8377   draw: function() {
8378     var consensus, conserv, marker;
8379     this.removeViews();
8380     if (!this.isNotDirty) {
8381       consensus = this.g.consensus.getConsensus(this.model);
8382       identityCalc(this.model, consensus);
8383       this.isNotDirty = true;
8384     }
8385     if (this.g.vis.get("conserv")) {
8386       conserv = new ConservationView({
8387         model: this.model,
8388         g: this.g
8389       });
8390       conserv.ordering = -20;
8391       this.addView("conserv", conserv);
8392     }
8393     if (this.g.vis.get("markers")) {
8394       marker = new MarkerView({
8395         model: this.model,
8396         g: this.g
8397       });
8398       marker.ordering = -10;
8399       return this.addView("marker", marker);
8400     }
8401   },
8402   render: function() {
8403     this.renderSubviews();
8404     this._setSpacer();
8405     this.el.className = "biojs_msa_header";
8406     this.el.style.overflowX = "auto";
8407     this._adjustWidth();
8408     this._adjustScrollingLeft();
8409     return this;
8410   },
8411   _sendScrollEvent: function() {
8412     if (!this.blockEvents) {
8413       this.g.zoomer.set("_alignmentScrollLeft", this.el.scrollLeft, {
8414         origin: "header"
8415       });
8416     }
8417     return this.blockEvents = false;
8418   },
8419   _adjustScrollingLeft: function(model, value, options) {
8420     var scrollLeft;
8421     if (((options != null ? options.origin : void 0) == null) || options.origin !== "header") {
8422       scrollLeft = this.g.zoomer.get("_alignmentScrollLeft");
8423       this.blockEvents = true;
8424       return this.el.scrollLeft = scrollLeft;
8425     }
8426   },
8427   _setSpacer: function() {
8428     return this.el.style.marginLeft = this._getLabelWidth() + "px";
8429   },
8430   _getLabelWidth: function() {
8431     var paddingLeft;
8432     paddingLeft = 0;
8433     if (this.g.vis.get("labels")) {
8434       paddingLeft += this.g.zoomer.get("labelWidth");
8435     }
8436     if (this.g.vis.get("metacell")) {
8437       paddingLeft += this.g.zoomer.get("metaWidth");
8438     }
8439     return paddingLeft;
8440   },
8441   _adjustWidth: function() {
8442     return this.el.style.width = this.g.zoomer.get("alignmentWidth") + "px";
8443   }
8444 });
8445
8446
8447
8448 },{"../../algo/identityCalc":61,"./ConservationView":101,"./MarkerView":103,"backbone-childs":3,"underscore":59}],103:[function(require,module,exports){
8449 var HeaderView, dom, jbone, svg, view;
8450
8451 view = require("backbone-viewj");
8452
8453 dom = require("dom-helper");
8454
8455 svg = require("../../utils/svg");
8456
8457 jbone = require("jbone");
8458
8459 HeaderView = view.extend({
8460   className: "biojs_msa_marker",
8461   initialize: function(data) {
8462     this.g = data.g;
8463     this.listenTo(this.g.zoomer, "change:stepSize change:labelWidth change:columnWidth change:markerStepSize change:markerFontsize", this.render);
8464     this.listenTo(this.g.vis, "change:labels change:metacell", this.render);
8465     return this.manageEvents();
8466   },
8467   render: function() {
8468     var cellWidth, container, hidden, n, nMax, span, stepSize;
8469     dom.removeAllChilds(this.el);
8470     this.el.style.fontSize = this.g.zoomer.get("markerFontsize");
8471     container = document.createElement("span");
8472     n = 0;
8473     cellWidth = this.g.zoomer.get("columnWidth");
8474     nMax = this.model.getMaxLength();
8475     stepSize = this.g.zoomer.get("stepSize");
8476     hidden = this.g.columns.get("hidden");
8477     while (n < nMax) {
8478       if (hidden.indexOf(n) >= 0) {
8479         this.markerHidden(span, n, stepSize);
8480         n += stepSize;
8481         continue;
8482       }
8483       span = document.createElement("span");
8484       span.style.width = (cellWidth * stepSize) + "px";
8485       span.style.display = "inline-block";
8486       if ((n + 1) % this.g.zoomer.get('markerStepSize') === 0) {
8487         span.textContent = n + 1;
8488       } else {
8489         span.textContent = ".";
8490       }
8491       span.rowPos = n;
8492       n += stepSize;
8493       container.appendChild(span);
8494     }
8495     this.el.appendChild(container);
8496     return this;
8497   },
8498   markerHidden: function(span, n, stepSize) {
8499     var hidden, index, j, length, min, nMax, prevHidden, s, triangle, _i, _j;
8500     hidden = this.g.columns.get("hidden").slice(0);
8501     min = Math.max(0, n - stepSize);
8502     prevHidden = true;
8503     for (j = _i = min; _i <= n; j = _i += 1) {
8504       prevHidden &= hidden.indexOf(j) >= 0;
8505     }
8506     if (prevHidden) {
8507       return;
8508     }
8509     nMax = this.model.getMaxLength();
8510     length = 0;
8511     index = -1;
8512     for (n = _j = n; _j <= nMax; n = _j += 1) {
8513       if (!(index >= 0)) {
8514         index = hidden.indexOf(n);
8515       }
8516       if (hidden.indexOf(n) >= 0) {
8517         length++;
8518       } else {
8519         break;
8520       }
8521     }
8522     s = svg.base({
8523       height: 10,
8524       width: 10
8525     });
8526     s.style.position = "relative";
8527     triangle = svg.polygon({
8528       points: "0,0 5,5 10,0",
8529       style: "fill:lime;stroke:purple;stroke-width:1"
8530     });
8531     jbone(triangle).on("click", (function(_this) {
8532       return function(evt) {
8533         hidden.splice(index, length);
8534         return _this.g.columns.set("hidden", hidden);
8535       };
8536     })(this));
8537     s.appendChild(triangle);
8538     span.appendChild(s);
8539     return s;
8540   },
8541   manageEvents: function() {
8542     var events;
8543     events = {};
8544     if (this.g.config.get("registerMouseClicks")) {
8545       events.click = "_onclick";
8546     }
8547     if (this.g.config.get("registerMouseHover")) {
8548       events.mousein = "_onmousein";
8549       events.mouseout = "_onmouseout";
8550     }
8551     this.delegateEvents(events);
8552     this.listenTo(this.g.config, "change:registerMouseHover", this.manageEvents);
8553     return this.listenTo(this.g.config, "change:registerMouseClick", this.manageEvents);
8554   },
8555   _onclick: function(evt) {
8556     var rowPos, stepSize;
8557     rowPos = evt.target.rowPos;
8558     stepSize = this.g.zoomer.get("stepSize");
8559     return this.g.trigger("column:click", {
8560       rowPos: rowPos,
8561       stepSize: stepSize,
8562       evt: evt
8563     });
8564   },
8565   _onmousein: function(evt) {
8566     var rowPos, stepSize;
8567     rowPos = this.g.zoomer.get("stepSize" * evt.rowPos);
8568     stepSize = this.g.zoomer.get("stepSize");
8569     return this.g.trigger("column:mousein", {
8570       rowPos: rowPos,
8571       stepSize: stepSize,
8572       evt: evt
8573     });
8574   },
8575   _onmouseout: function(evt) {
8576     var rowPos, stepSize;
8577     rowPos = this.g.zoomer.get("stepSize" * evt.rowPos);
8578     stepSize = this.g.zoomer.get("stepSize");
8579     return this.g.trigger("column:mouseout", {
8580       rowPos: rowPos,
8581       stepSize: stepSize,
8582       evt: evt
8583     });
8584   }
8585 });
8586
8587 module.exports = HeaderView;
8588
8589
8590
8591 },{"../../utils/svg":95,"backbone-viewj":10,"dom-helper":49,"jbone":50}],104:[function(require,module,exports){
8592 var LabelRowView, boneView;
8593
8594 LabelRowView = require("./LabelRowView");
8595
8596 boneView = require("backbone-childs");
8597
8598 module.exports = boneView.extend({
8599   initialize: function(data) {
8600     this.g = data.g;
8601     this.draw();
8602     this.listenTo(this.g.zoomer, "change:_alignmentScrollTop", this._adjustScrollingTop);
8603     return this.g.vis.once('change:loaded', this._adjustScrollingTop, this);
8604   },
8605   draw: function() {
8606     var i, view, _i, _ref, _results;
8607     this.removeViews();
8608     _results = [];
8609     for (i = _i = 0, _ref = this.model.length - 1; _i <= _ref; i = _i += 1) {
8610       if (this.model.at(i).get('hidden')) {
8611         continue;
8612       }
8613       view = new LabelRowView({
8614         model: this.model.at(i),
8615         g: this.g
8616       });
8617       view.ordering = i;
8618       _results.push(this.addView("row_" + i, view));
8619     }
8620     return _results;
8621   },
8622   events: {
8623     "scroll": "_sendScrollEvent"
8624   },
8625   _sendScrollEvent: function() {
8626     return this.g.zoomer.set("_alignmentScrollTop", this.el.scrollTop, {
8627       origin: "label"
8628     });
8629   },
8630   _adjustScrollingTop: function() {
8631     return this.el.scrollTop = this.g.zoomer.get("_alignmentScrollTop");
8632   },
8633   render: function() {
8634     this.renderSubviews();
8635     this.el.className = "biojs_msa_labelblock";
8636     this.el.style.display = "inline-block";
8637     this.el.style.verticalAlign = "top";
8638     this.el.style.height = this.g.zoomer.get("alignmentHeight") + "px";
8639     this.el.style.overflowY = "auto";
8640     this.el.style.overflowX = "hidden";
8641     this.el.style.fontSize = "" + (this.g.zoomer.get("labelFontsize"));
8642     this.el.style.lineHeight = "" + (this.g.zoomer.get("labelLineHeight"));
8643     return this;
8644   }
8645 });
8646
8647
8648
8649 },{"./LabelRowView":105,"backbone-childs":3}],105:[function(require,module,exports){
8650 var LabelView, MetaView, boneView;
8651
8652 boneView = require("backbone-childs");
8653
8654 LabelView = require("./LabelView");
8655
8656 MetaView = require("./MetaView");
8657
8658 module.exports = boneView.extend({
8659   initialize: function(data) {
8660     this.g = data.g;
8661     this.draw();
8662     this.listenTo(this.g.vis, "change:labels", this.drawR);
8663     return this.listenTo(this.g.vis, "change:metacell", this.drawR);
8664   },
8665   draw: function() {
8666     this.removeViews();
8667     if (this.g.vis.get("labels")) {
8668       this.addView("labels", new LabelView({
8669         model: this.model,
8670         g: this.g
8671       }));
8672     }
8673     if (this.g.vis.get("metacell")) {
8674       return this.addView("metacell", new MetaView({
8675         model: this.model,
8676         g: this.g
8677       }));
8678     }
8679   },
8680   drawR: function() {
8681     this.draw();
8682     return this.render();
8683   },
8684   render: function() {
8685     this.renderSubviews();
8686     this.el.setAttribute("class", "biojs_msa_labelrow");
8687     this.el.style.height = this.g.zoomer.get("rowHeight");
8688     return this;
8689   }
8690 });
8691
8692
8693
8694 },{"./LabelView":106,"./MetaView":107,"backbone-childs":3}],106:[function(require,module,exports){
8695 var LabelView, dom, view;
8696
8697 view = require("backbone-viewj");
8698
8699 dom = require("dom-helper");
8700
8701 LabelView = view.extend({
8702   initialize: function(data) {
8703     this.seq = data.seq;
8704     this.g = data.g;
8705     return this.manageEvents();
8706   },
8707   manageEvents: function() {
8708     var events;
8709     events = {};
8710     if (this.g.config.get("registerMouseClicks")) {
8711       events.click = "_onclick";
8712     }
8713     if (this.g.config.get("registerMouseHover")) {
8714       events.mousein = "_onmousein";
8715       events.mouseout = "_onmouseout";
8716     }
8717     this.delegateEvents(events);
8718     this.listenTo(this.g.config, "change:registerMouseHover", this.manageEvents);
8719     this.listenTo(this.g.config, "change:registerMouseClick", this.manageEvents);
8720     this.listenTo(this.g.vis, "change:labelName", this.render);
8721     this.listenTo(this.g.vis, "change:labelId", this.render);
8722     this.listenTo(this.g.vis, "change:labelPartition", this.render);
8723     return this.listenTo(this.g.vis, "change:labelCheckbox", this.render);
8724   },
8725   render: function() {
8726     var checkBox, id, name, part;
8727     dom.removeAllChilds(this.el);
8728     this.el.style.width = "" + (this.g.zoomer.get("labelWidth")) + "px";
8729     this.el.style.height = "" + (this.g.zoomer.get("rowHeight")) + "px";
8730     this.el.setAttribute("class", "biojs_msa_labels");
8731     if (this.g.vis.get("labelCheckbox")) {
8732       checkBox = document.createElement("input");
8733       checkBox.setAttribute("type", "checkbox");
8734       checkBox.value = this.model.get('id');
8735       checkBox.name = "seq";
8736       this.el.appendChild(checkBox);
8737     }
8738     if (this.g.vis.get("labelId")) {
8739       id = document.createElement("span");
8740       id.textContent = this.model.get("id");
8741       id.style.width = this.g.zoomer.get("labelIdLength");
8742       id.style.display = "inline-block";
8743       this.el.appendChild(id);
8744     }
8745     if (this.g.vis.get("labelPartition")) {
8746       part = document.createElement("span");
8747       part.style.width = 15;
8748       part.textContent = this.model.get("partition");
8749       part.style.display = "inline-block";
8750       this.el.appendChild(id);
8751       this.el.appendChild(part);
8752     }
8753     if (this.g.vis.get("labelName")) {
8754       name = document.createElement("span");
8755       name.textContent = this.model.get("name");
8756       this.el.appendChild(name);
8757     }
8758     this.el.style.overflow = scroll;
8759     return this;
8760   },
8761   _onclick: function(evt) {
8762     var seqId;
8763     seqId = this.model.get("id");
8764     return this.g.trigger("row:click", {
8765       seqId: seqId,
8766       evt: evt
8767     });
8768   },
8769   _onmousein: function(evt) {
8770     var seqId;
8771     seqId = this.model.get("id");
8772     return this.g.trigger("row:mouseout", {
8773       seqId: seqId,
8774       evt: evt
8775     });
8776   },
8777   _onmouseout: function(evt) {
8778     var seqId;
8779     seqId = this.model.get("id");
8780     return this.g.trigger("row:mouseout", {
8781       seqId: seqId,
8782       evt: evt
8783     });
8784   }
8785 });
8786
8787 module.exports = LabelView;
8788
8789
8790
8791 },{"backbone-viewj":10,"dom-helper":49}],107:[function(require,module,exports){
8792 var MenuBuilder, MetaView, dom, view, _;
8793
8794 view = require("backbone-viewj");
8795
8796 MenuBuilder = require("../../menu/menubuilder");
8797
8798 _ = require('underscore');
8799
8800 dom = require("dom-helper");
8801
8802 module.exports = MetaView = view.extend({
8803   className: "biojs_msa_metaview",
8804   initialize: function(data) {
8805     return this.g = data.g;
8806   },
8807   events: {
8808     click: "_onclick",
8809     mousein: "_onmousein",
8810     mouseout: "_onmouseout"
8811   },
8812   render: function() {
8813     var gapSpan, gaps, ident, identSpan, menu, seq, width;
8814     dom.removeAllChilds(this.el);
8815     this.el.style.display = "inline-block";
8816     width = this.g.zoomer.get("metaWidth");
8817     this.el.style.width = width - 5;
8818     this.el.style.paddingRight = 5;
8819     seq = this.model.get('seq');
8820     gaps = _.reduce(seq, (function(memo, c) {
8821       if (c === '-') {
8822         memo++;
8823       }
8824       return memo;
8825     }), 0);
8826     gaps = (gaps / seq.length).toFixed(1);
8827     gapSpan = document.createElement('span');
8828     gapSpan.textContent = gaps;
8829     gapSpan.style.display = "inline-block";
8830     gapSpan.style.width = 35;
8831     this.el.appendChild(gapSpan);
8832     ident = this.model.get('identity');
8833     identSpan = document.createElement('span');
8834     identSpan.textContent = ident.toFixed(2);
8835     identSpan.style.display = "inline-block";
8836     identSpan.style.width = 40;
8837     this.el.appendChild(identSpan);
8838     menu = new MenuBuilder("↗");
8839     menu.addNode("Uniprot", (function(_this) {
8840       return function(e) {
8841         return window.open("http://beta.uniprot.org/uniprot/Q7T2N8");
8842       };
8843     })(this));
8844     this.el.appendChild(menu.buildDOM());
8845     this.el.width = 10;
8846     this.el.style.height = "" + (this.g.zoomer.get("rowHeight")) + "px";
8847     return this.el.style.cursor = "pointer";
8848   },
8849   _onclick: function(evt) {
8850     return this.g.trigger("meta:click", {
8851       seqId: this.model.get("id", {
8852         evt: evt
8853       })
8854     });
8855   },
8856   _onmousein: function(evt) {
8857     return this.g.trigger("meta:mousein", {
8858       seqId: this.model.get("id", {
8859         evt: evt
8860       })
8861     });
8862   },
8863   _onmouseout: function(evt) {
8864     return this.g.trigger("meta:mouseout", {
8865       seqId: this.model.get("id", {
8866         evt: evt
8867       })
8868     });
8869   }
8870 });
8871
8872
8873
8874 },{"../../menu/menubuilder":75,"backbone-viewj":10,"dom-helper":49,"underscore":59}],"biojs-io-clustal":[function(require,module,exports){
8875 // Generated by CoffeeScript 1.8.0
8876 var Clustal, GenericReader, Seq, Str,
8877   __hasProp = {}.hasOwnProperty,
8878   __extends = 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; };
8879
8880 Str = require("./strings");
8881
8882 GenericReader = require("./generic_reader");
8883
8884 Seq = require("./seq");
8885
8886 module.exports = Clustal = (function(_super) {
8887   __extends(Clustal, _super);
8888
8889   function Clustal() {
8890     return Clustal.__super__.constructor.apply(this, arguments);
8891   }
8892
8893   Clustal.parse = function(text) {
8894     var blockstate, k, label, line, lines, match, regex, seqCounter, seqs, sequence;
8895     seqs = [];
8896     if (Object.prototype.toString.call(text) === '[object Array]') {
8897       lines = text;
8898     } else {
8899       lines = text.split("\n");
8900     }
8901     if (lines[0].slice(0, 6) === !"CLUSTAL") {
8902       throw new Error("Invalid CLUSTAL Header");
8903     }
8904     k = 0;
8905     blockstate = 1;
8906     seqCounter = 0;
8907     while (k < lines.length) {
8908       k++;
8909       line = lines[k];
8910       if ((line == null) || line.length === 0) {
8911         blockstate = 1;
8912         continue;
8913       }
8914       if (line.trim().length === 0) {
8915         blockstate = 1;
8916         continue;
8917       } else {
8918         if (Str.contains(line, "*")) {
8919           continue;
8920         }
8921         if (blockstate === 1) {
8922           seqCounter = 0;
8923           blockstate = 0;
8924         }
8925         regex = /^(?:\s*)(\S+)(?:\s+)(\S+)(?:\s*)(\d*)(?:\s*|$)/g;
8926         match = regex.exec(line);
8927         if (match != null) {
8928           label = match[1];
8929           sequence = match[2];
8930           if (seqCounter >= seqs.length) {
8931             seqs.push(new Seq(sequence, label, seqCounter));
8932           } else {
8933             seqs[seqCounter].seq += sequence;
8934           }
8935           seqCounter++;
8936         } else {
8937           console.log(line);
8938         }
8939       }
8940     }
8941     return seqs;
8942   };
8943
8944   return Clustal;
8945
8946 })(GenericReader);
8947
8948 },{"./generic_reader":17,"./seq":18,"./strings":19}],"biojs-io-fasta":[function(require,module,exports){
8949 // Generated by CoffeeScript 1.8.0
8950 module.exports.parse = require("./parser");
8951
8952 module.exports.writer = require("./writer");
8953
8954 },{"./parser":21,"./writer":24}],"biojs-vis-msa":[function(require,module,exports){
8955 if (typeof biojs === 'undefined') {
8956   biojs = {};
8957 }
8958 if (typeof biojs.vis === 'undefined') {
8959   biojs.vis = {};
8960 }
8961 // use two namespaces
8962 window.msa = biojs.vis.msa = module.exports = require('./index');
8963
8964 // TODO: how should this be bundled
8965
8966 if (typeof biojs.io === 'undefined') {
8967   biojs.io = {};
8968 }
8969 // just bundle the two parsers
8970 window.biojs.io.fasta = require("biojs-io-fasta");
8971 window.biojs.io.clustal = require("biojs-io-clustal");
8972 window.biojs.xhr = require("nets");
8973
8974 // simulate standalone flag
8975 window.biojsVisMsa = window.msa;
8976
8977 require('./build/msa.css');
8978
8979 },{"./build/msa.css":1,"./index":2,"biojs-io-clustal":undefined,"biojs-io-fasta":undefined,"nets":undefined}],"nets":[function(require,module,exports){
8980 var req = require('request')
8981
8982 module.exports = Nets
8983
8984 function Nets(uri, opts, cb) {
8985   req(uri, opts, cb)
8986 }
8987 },{"request":52}]},{},["biojs-vis-msa"])
8988 //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyaWZ5L25vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCIvaG9tZS90cmF2aXMvYnVpbGQvZ3JlZW5pZnkvYmlvanMtdmlzLW1zYS9idWlsZC9tc2EuY3NzIiwiL2hvbWUvdHJhdmlzL2J1aWxkL2dyZWVuaWZ5L2Jpb2pzLXZpcy1tc2EvaW5kZXguanMiLCIvaG9tZS90cmF2aXMvYnVpbGQvZ3JlZW5pZnkvYmlvanMtdmlzLW1zYS9ub2RlX21vZHVsZXMvYmFja2Jv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cnR5LmNhbGwob2JqLCBrZXkpO1xuICAgICAgfSxcblxuICAgICAgZWFjaDogZnVuY3Rpb24ob2JqLCBpdGVyYXRvciwgY29udGV4dCkge1xuICAgICAgICBpZiAob2JqID09IG51bGwpIHJldHVybjtcbiAgICAgICAgaWYgKG5hdGl2ZUZvckVhY2ggJiYgb2JqLmZvckVhY2ggPT09IG5hdGl2ZUZvckVhY2gpIHtcbiAgICAgICAgICBvYmouZm9yRWFjaChpdGVyYXRvciwgY29udGV4dCk7XG4gICAgICAgIH0gZWxzZSBpZiAob2JqLmxlbmd0aCA9PT0gK29iai5sZW5ndGgpIHtcbiAgICAgICAgICBmb3IgKHZhciBpID0gMCwgbCA9IG9iai5sZW5ndGg7IGkgPCBsOyBpKyspIHtcbiAgICAgICAgICAgIGlmIChpdGVyYXRvci5jYWxsKGNvbnRleHQsIG9ialtpXSwgaSwgb2JqKSA9PT0gYnJlYWtlcikgcmV0dXJuO1xuICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBmb3IgKHZhciBrZXkgaW4gb2JqKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5oYXMob2JqLCBrZXkpKSB7XG4gICAgICAgICAgICAgIGlmIChpdGVyYXRvci5jYWxsKGNvbnRleHQsIG9ialtrZXldLCBrZXksIG9iaikgPT09IGJyZWFrZXIpIHJldHVybjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH0sXG5cbiAgICAgIG9uY2U6IGZ1bmN0aW9uKGZ1bmMpIHtcbiAgICAgICAgdmFyIHJhbiA9IGZhbHNlLCBtZW1vO1xuICAgICAgICByZXR1cm4gZnVuY3Rpb24oKSB7XG4gICAgICAgICAgaWYgKHJhbikgcmV0dXJuIG1lbW87XG4gICAgICAgICAgcmFuID0gdHJ1ZTtcbiAgICAgICAgICBtZW1vID0gZnVuYy5hcHBseSh0aGlzLCBhcmd1bWVudHMpO1xuICAgICAgICAgIGZ1bm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0YWcsIHdyYXBlciwgZnJhZ21lbnQ7XG5cbiAgICAgICAgaWYgKCFlbGVtZW50KSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcztcbiAgICAgICAgfVxuICAgICAgICBpZiAoaXNTdHJpbmcoZWxlbWVudCkpIHtcbiAgICAgICAgICAgIC8vIENyZWF0ZSBzaW5nbGUgRE9NIGVsZW1lbnRcbiAgICAgICAgICAgIGlmICh0YWcgPSBycXVpY2tTaW5nbGVUYWcuZXhlYyhlbGVtZW50KSkge1xuICAgICAgICAgICAgICAgIHRoaXNbMF0gPSBkb2MuY3JlYXRlRWxlbWVudCh0YWdbMV0pO1xuICAgICAgICAgICAgICAgIHRoaXMubGVuZ3RoID0gMTtcblxuICAgICAgICAgICAgICAgIGlmIChpc09iamVjdChkYXRhKSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmF0dHIoZGF0YSk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAvLyBDcmVhdGUgRE9NIGNvbGxlY3Rpb25cbiAgICAgICAgICAgIGlmICgodGFnID0gcnF1aWNrRXhwci5leGVjKGVsZW1lbnQpKSAmJiB0YWdbMV0pIHtcbiAgICAgICAgICAgICAgICBmcmFnbWVudCA9IGRvYy5jcmVhdGVEb2N1bWVudEZyYWdtZW50KCk7XG4gICAgICAgICAgICAgICAgd3JhcGVyID0gZG9jLmNyZWF0ZUVsZW1lbnQoXCJkaXZcIik7XG4gICAgICAgICAgICAgICAgd3JhcGVyLmlubmVySFRNTCA9IGVsZW1lbnQ7XG4gICAgICAgICAgICAgICAgd2hpbGUgKHdyYXBlci5sYXN0Q2hpbGQpIHtcbiAgICAgICAgICAgICAgICAgICAgZnJhZ21lbnQuYXBwZW5kQ2hpbGQod3JhcGVyLmZpcnN0Q2hpbGQpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbGVtZW50cyA9IHNsaWNlLmNhbGwoZnJhZ21lbnQuY2hpbGROb2Rlcyk7XG5cbiAgICAgICAgICAgICAgICByZXR1cm4gakJvbmUubWVyZ2UodGhpcywgZWxlbWVudHMpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgLy8gRmluZCBET00gZWxlbWVudHMgd2l0aCBxdWVyeVNlbGVjdG9yQWxsXG4gICAgICAgICAgICBpZiAoakJvbmUuaXNFbGVtZW50KGRhdGEpKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGpCb25lKGRhdGEpLmZpbmQoZWxlbWVudCk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgZWxlbWVudHMgPSBkb2MucXVlcnlTZWxlY3RvckFsbChlbGVtZW50KTtcblxuICAgICAgICAgICAgICAgIHJldHVybiBqQm9uZS5tZXJnZSh0aGlzLCBlbGVtZW50cyk7XG4gICAgICAgICAgICB9IGNhdGNoIChlKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgLy8gV3JhcCBET01FbGVtZW50XG4gICAgICAgIGlmIChlbGVtZW50Lm5vZGVUeXBlKSB7XG4gICAgICAgICAgICB0aGlzWzBdID0gZWxlbWVudDtcbiAgICAgICAgICAgIHRoaXMubGVuZ3RoID0gMTtcblxuICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgIH1cbiAgICAgICAgLy8gUnVuIGZ1bmN0aW9uXG4gICAgICAgIGlmIChpc0Z1bmN0aW9uKGVsZW1lbnQpKSB7XG4gICAgICAgICAgICByZXR1cm4gZWxlbWVudCgpO1xuICAgICAgICB9XG4gICAgICAgIC8vIFJldHVybiBqQm9uZSBlbGVtZW50IGFzIGlzXG4gICAgICAgIGlmIChlbGVtZW50IGluc3RhbmNlb2YgakJvbmUpIHtcbiAgICAgICAgICAgIHJldHVybiBlbGVtZW50O1xuICAgIC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JvbmUubWVyZ2UgPSBmdW5jdGlvbihmaXJzdCwgc2Vjb25kKSB7XG4gICAgdmFyIGwgPSBzZWNvbmQubGVuZ3RoLFxuICAgICAgICBpID0gZmlyc3QubGVuZ3RoLFxuICAgICAgICBqID0gMDtcblxuICAgIHdoaWxlIChqIDwgbCkge1xuICAgICAgICBmaXJzdFtpKytdID0gc2Vjb25kW2orK107XG4gICAgfVxuXG4gICAgZmlyc3QubGVuZ3RoID0gaTtcblxuICAgIHJldHVybiBmaXJzdDtcbn07XG5cbmpCb25lLmNvbnRhaW5zID0gZnVuY3Rpb24oY29udGFpbmVyLCBjb250YWluZWQpIHtcbiAgICB2YXIgcmVzdWx0O1xuXG4gICAgY29udGFpbmVyLnJldmVyc2UoKS5zb21lKGZ1bmN0aW9uKGVsKSB7XG4gICAgICAgIGlmIChlbC5jb250YWlucyhjb250YWluZWQpKSB7XG4gICAgICAgICAgICByZXR1cm4gcmVzdWx0ID0gZWw7XG4gICAgICAgIH1cbiAgICB9KTtcblxuICAgIHJldHVybiByZXN1bHQ7XG59O1xuXG5qQm9uZS5leHRlbmQgPSBmdW5jdGlvbih0YXJnZXQpIHtcbiAgICB2YXIgaywga2wsIGksIHRnO1xuXG4gICAgc3BsaWNlLmNhbGwoYXJndW1lbnRzLCAxKS5mb3JFYWNoKGZ1bmN0aW9uKG9iamVjdCkge1xuICAgICAgICBpZiAoIW9iamVjdCkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgayA9IGtleXMob2JqZWN0KTtcbiAgICAgICAga2wgPSBrLmxlbmd0aDtcbiAgICAgICAgaSA9IDA7XG4gICAgICAgIHRnID0gdGFyZ2V0OyAvL2NhY2hpbmcgdGFyZ2V0IGZvciBwZXJmIGltcHJvdmVtZW50XG5cbiAgICAgICAgZm9yICg7IGkgPCBrbDsgaSsrKSB7XG4gICAgICAgICAgICB0Z1trW2ldXSA9IG9iamVjdFtrW2ldXTtcbiAgICAgICAgfVxuICAgIH0pO1xuXG4gICAgcmV0dXJuIHRhcmdldDtcbn07XG5cbmpCb25lLm1ha2VBcnJheSA9IGZ1bmN0aW9uKGFyciwgcmVzdWx0cykge1xuICAgIHZhciByZXQgPSByZXN1bHRzIHx8IFtdO1xuXG4gICAgaWYgKGFyciAhPT0gbnVsbCkge1xuICAgICAgICBpZiAoaXNBcnJheWxpa2UoYXJyKSkge1xuICAgICAgICAgICAgakJvbmUubWVyZ2UocmV0LCBpc1N0cmluZyhhcnIpID8gW2Fycl0gOiBhcnIpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmV0LnB1c2goYXJyKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiByZXQ7XG59O1xuXG5mdW5jdGlvbiBCb25lRXZlbnQoZSwgZGF0YSkge1xuICAgIHZhciBrZXksIHNldHRlcjtcblxuICAgIHRoaXMub3JpZ2luYWxFdmVudCA9IGU7XG5cbiAgICBzZXR0ZXIgPSBmdW5jdGlvbihrZXksIGUpIHtcbiAgICAgICAgaWYgKGtleSA9PT0gXCJwcmV2ZW50RGVmYXVsdFwiKSB7XG4gICAgICAgICAgICB0aGlzW2tleV0gPSBmdW5jdGlvbigpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmRlZmF1bHRQcmV2ZW50ZWQgPSB0cnVlO1xuICAgICAgICAgICAgICAgIHJldHVybiBlW2tleV0oKTtcbiAgICAgICAgICAgIH07XG4gICAgICAgIH0gZWxzZSBpZiAoaXNGdW5jdGlvbihlW2tleV0pKSB7XG4gICAgICAgICAgICB0aGlzW2tleV0gPSBmdW5jdGlvbigpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gZVtrZXldKCk7XG4gICAgICAgICAgICB9O1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpc1trZXldID0gZVtrZXldO1xuICAgICAgICB9XG4gICAgfTtcblxuICAgIGZvciAoa2V5IGluIGUpIHtcbiAgICAgICAgaWYgKGVba2V5XSB8fCB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cmdldCkgfHwgKGV4cGVjdGVkVGFyZ2V0ID0gakJvbmUuY29udGFpbnMoakJvbmUoZWwpLmZpbmQodGFyZ2V0KSwgZS50YXJnZXQpKSkge1xuICAgICAgICAgICAgICAgICAgICBleHBlY3RlZFRhcmdldCA9IGV4cGVjdGVkVGFyZ2V0IHx8IGUudGFyZ2V0O1xuICAgICAgICAgICAgICAgICAgICBlID0gbmV3IEJvbmVFdmVudChlLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjdXJyZW50VGFyZ2V0OiBleHBlY3RlZFRhcmdldFxuICAgICAgICAgICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgICAgICAgICBjYWxsYmFjay5jYWxsKGV4cGVjdGVkVGFyZ2V0LCBlKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICBldmVudHNbZXZlbnRUeXBlXS5wdXNoKHtcbiAgICAgICAgICAgICAgICBuYW1lc3BhY2U6IG5hbWVzcGFjZSxcbiAgICAgICAgICAgICAgICBmbjogZm4sXG4gICAgICAgICAgICAgICAgb3JpZ2luZm46IGNhbGxiYWNrXG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgZWwuYWRkRXZlbnRMaXN0ZW5lciAmJiBlbC5hZGRFdmVudExpc3RlbmVyKGV2ZW50VHlwZSwgZm4sIGZhbHNlKTtcbiAgICAgICAgfSk7XG4gICAgfTtcblxuICAgIGZvciAoOyBpIDwgbGVuZ3RoOyBpKyspIHtcbiAgICAgICAgYWRkTGlzdGVuZXIodGhpc1tpXSk7XG4gICAgfVxuXG4gICAgcmV0dXJuIHRoaXM7XG59O1xuXG5mbi5vbmUgPSBmdW5jdGlvbihldmVudCkge1xuICAgIHZhciBhcmdzID0gYXJndW1lbnRzLFxuICAgICAgICBpID0gMCxcbiAgICAgICAgbGVuZ3RoID0gdGhpcy5sZW5ndGgsXG4gICAgICAgIGNhbGxiYWNrLCB0YXJnZXQsIGFkZExpc3RlbmVyO1xuXG4gICAgaWYgKGFyZ3MubGVuZ3RoID09PSAyKSB7XG4gICAgICAgIGNhbGxiYWNrID0gYXJnc1sxXTtcbiAgICB9IGVsc2Uge1xuICAgICAgICB0YXJnZXQgPSBhcmdzWzFdLCBjYWxsYmFjayA9IGFyZ3NbMl07XG4gICAgfVxuXG4gICAgYWRkTGlzdGVuZXIgPSBmdW5jdGlvbihlbCkge1xuICAgICAgICBldmVudC5zcGxpdChcIiBcIikuZm9yRWFjaChmdW5jdGlvbihldmVudCkge1xuICAgICAgICAgICAgdmFyIGZuID0gZnVuY3Rpb24oZSkge1xuICAgICAgICAgICAgICAgIGpCb25lKGVsKS5vZmYoZXZlbnQsIGZuKTtcbiAgICAgICAgICAgICAgICBjYWxsYmFjay5jYWxsKGVsLCBlKTtcbiAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgIGlmICghdGFyZ2V0KSB7XG4gICAgICAgICAgICAgICAgakJvbmUoZWwpLm9uKGV2ZW50LCBmbik7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGpCb25lKGVsKS5vbihldmVudCwgdGFyZ2V0LCBmbik7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH07XG5cbiAgICBmb3IgKDsgaSA8IGxlbmd0aDsgaSsrKSB7XG4gICAgICAgIGFkZExpc3RlbmVyKHRoaXNbaV0pO1xuICAgIH1cblxuICAgIHJldHVybiB0aGlzO1xufTtcblxuZm4udHJpZ2dlciA9IGZ1bmN0aW9uKGV2ZW50KSB7XG4gICAgdmFyIGV2ZW50cyA9IFtdLFxuICAgICAgICBpID0gMCxcbiAgICAgICAgbGVuZ3RoID0gdGhpcy5sZW5ndGgsXG4gICAgICAgIGRpc3BhdGNoRXZlbnRzO1xuXG4gICAgaWYgKCFldmVudCkge1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBpZiAoaXNTdHJpbmcoZXZlbnQpKSB7XG4gICAgICAgIGV2ZW50cy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G4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChldmVudHNbZXZlbnRUeXBlXVtpbmRleF0uZm4gPT09IGNhbGxiYWNrKSB7XG4gICAgICAgICAgICAgICAgZWwucmVtb3ZlRXZlbnRMaXN0ZW5lcihldmVudFR5cGUsIGNhbGxiYWNrKTtcblxuICAgICAgICAgICAgICAgIC8vIHJlbW92ZSBoYW5kbGVyIGZyb20gY2FjaGVcbiAgICAgICAgICAgICAgICBqQm9uZS5fY2FjaGUuZXZlbnRzW2pCb25lLmdldERhdGEoZWwpLmppZF1bZXZlbnRUeXBlXS5zcGxpY2UoaW5kZXgsIDEpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBldmVudHMsIG5hbWVzcGFjZSwgcmVtb3ZlTGlzdGVuZXJzLCBldmVudFR5cGU7XG5cbiAgICByZW1vdmVMaXN0ZW5lcnMgPSBmdW5jdGlvbihlbCkge1xuICAgICAgICB2YXIgbCwgZXZlbnRzQnlUeXBlLCBlO1xuXG4gICAgICAgIGV2ZW50cyA9IGpCb25lLmdldERhdGEoZWwpLmV2ZW50cztcblxuICAgICAgICBpZiAoIWV2ZW50cykge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gcmVtb3ZlIGFsbCBldmVudHNcbiAgICAgICAgaWYgKCFldmVudCAmJiBldmVudHMpIHtcbiAgICAgICAgICAgIHJldHVybiBrZXlzKGV2ZW50cykuZm9yRWFjaChmdW5jdGlvbihldmVudFR5cGUpIHtcbiAgICAgICAgICAgICAgICBldmVudHNCeVR5cGUgPSBldmVudHNbZXZlbnRUeXBlXTtcbiAgICAgICAgICAgICAgICBsID0gZXZlbnRzQnlUeXBlLmxlbmd0aDtcblxuICAgICAgICAgICAgICAgIHdoaWxlKGwtLSkge1xuICAgICAgICAgICAgICAgICAgICByZW1vdmVMaXN0ZW5lcihldmVudHMsIGV2ZW50VHlwZSwgbCwgZWwsIGV2ZW50c0J5VHlwZVtsXSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cblxuICAgICAgICBldmVudC5zcGxpdChcIiBcIikuZm9yRWFjaChmdW5jdGlvbihldmVudCkge1xuICAgICAgICAgICAgZXZlbnRUeXBlID0gZXZlbnQuc3BsaXQoXCIuXCIpWzBdO1xuICAgICAgICAgICAgbmFtZXNwYWNlID0gZXZlbnQuc3BsaXQoXCIuXCIpLnNwbGljZSgxKS5qb2luKFwiLlwiKTtcblxuICAgICAgICAgICAgLy8gcmVtb3ZlIG5hbWVkIGV2ZW50c1xuICAgICAgICAgICAgaWYgKGV2ZW50c1tldmVudFR5cGVdKSB7XG4gICAgICAgICAgICAgICAgZXZlbnRzQnlUeXBlID0gZXZlbnRzW2V2ZW50VHlwZV07XG4gICAgICAgICAgICAgICAgbCA9IGV2ZW50c0J5VHlwZS5sZW5ndGg7XG5cbiAgICAgICAgICAgICAgICB3aGlsZShsLS0pIHtcbiAgICAgICAgICAgICAgICAgICAgZSA9IGV2ZW50c0J5VHlwZVtsXTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKCFuYW1lc3BhY2UgfHwgKG5hbWVzcGFjZSAmJiBlLm5hbWVzcGFjZSA9PT0gbmFtZXNwYWNlKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmVtb3ZlTGlzdGVuZXIoZXZlbnRzLCBldmVudFR5cGUsIGwsIGVsLCBlKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIC8vIHJlbW92ZSBhbGwgbmFtZXNwYWNlZCBldmVudHNcbiAgICAgICAgICAgIGVsc2UgaWYgKG5hbWVzcGFjZSkge1xuICAgICAgICAgICAgICAgIGtleXMoZXZlbnRzKS5mb3JFYWNoKGZ1bmN0aW9uKGV2ZW50VHlwZSkge1xuICAgICAgICAgICAgICAgICAgICBldmVudHNCeVR5cGUgPSBldmVudHNbZXZlbnRUeXBlXTtcbiAgICAgICAgICAgICAgICAgICAgbCA9IGV2ZW50c0J5VHlwZS5sZW5ndGg7XG5cbiAgICAgICAgICAgICAgICAgICAgd2hpbGUobC0tKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBlID0gZXZlbnRzQnlUeXBlW2xdO1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGUubmFtZXNwYWNlLnNwbGl0KFwiLlwiKVswXSA9PT0gbmFtZXNwYWNlLnNwbGl0KFwiLlwiKVswXSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlbW92ZUxpc3RlbmVyKGV2ZW50cywgZXZlbnRUeXBlLCBsLCBlbCwgZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfTtcblxuICAgIGZvciAoOyBpIDwgbGVuZ3RoOyBpKyspIHtcbiAgICAgICAgcmVtb3ZlTGlzdGVuZXJzKHRoaXNbaV0pO1xuICAgIH1cblxuICAgIHJldHVybiB0aGlzO1xufTtcblxuZm4uZmluZCA9IGZ1bmN0aW9uKHNlbGVjdG9yKSB7XG4gICAgdmFyIHJlc3VsdHMgPSBbXSxcbiAgICAgICAgaSA9IDAsXG4gICAgICAgIGxlbmd0aCA9IHRoaXMubGVuZ3RoLFxuICAgICAgICBmaW5kZXIgPSBmdW5jdGlvbihlbCkge1xuICAgICAgICAgICAgaWYgKGlzRnVuY3Rpb24oZWwucXVlcnlTZWxlY3RvckFsbCkpIHtcbiAgICAgICAgICAgICAgICBbXS5mb3JFYWNoLmNhbGwoZWwucXVlcnlTZWxlY3RvckFsbChzZWxlY3RvciksIGZ1bmN0aW9uKGZvdW5kKSB7XG4gICAgICAgICAgICAgICAgICAgIHJlc3VsdHMucHVzaChmb3VuZCk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9X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AgICBrZXlzKGtleSkuZm9yRWFjaChmdW5jdGlvbihuYW1lKSB7XG4gICAgICAgICAgICAgICAgZWwuc3R5bGVbbmFtZV0gPSBrZXlbbmFtZV07XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfTtcbiAgICB9XG5cbiAgICBmb3IgKDsgaSA8IGxlbmd0aDsgaSsrKSB7XG4gICAgICAgIHNldHRlcih0aGlzW2ldKTtcbiAgICB9XG5cbiAgICByZXR1cm4gdGhpcztcbn07XG5cbmZuLmRhdGEgPSBmdW5jdGlvbihrZXksIHZhbHVlKSB7XG4gICAgdmFyIGFyZ3MgPSBhcmd1bWVudHMsIGRhdGEgPSB7fSxcbiAgICAgICAgaSA9IDAsXG4gICAgICAgIGxlbmd0aCA9IHRoaXMubGVuZ3RoLFxuICAgICAgICBzZXR0ZXIsXG4gICAgICAgIHNldFZhbHVlID0gZnVuY3Rpb24oZWwsIGtleSwgdmFsdWUpIHtcbiAgICAgICAgICAgIGlmIChpc09iamVjdCh2YWx1ZSkpIHtcbiAgICAgICAgICAgICAgICBlbC5qZGF0YSA9IGVsLmpkYXRhIHx8IHt9O1xuICAgICAgICAgICAgICAgIGVsLmpkYXRhW2tleV0gPSB2YWx1ZTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgZWwuZGF0YXNldFtrZXldID0gdmFsdWU7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGdldFZhbHVlID0gZnVuY3Rpb24odmFsdWUpIHtcbiAgICAgICAgICAgIGlmICh2YWx1ZSA9PT0gXCJ0cnVlXCIpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAodmFsdWUgPT09IFwiZmFsc2VcIikge1xuICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgIC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AgICAgICAjem9vbWVyLnRleHRWaXNpYmxlID0gZmFsc2VcbiAgICAgICAgI3pvb21lci5jb2x1bW5XaWR0aCA9IDRcbiAgICAgICAgem9vbWVyLmxhYmVsV2lkdGggPSAyMDBcbiAgICAgICAgem9vbWVyLmJveFJlY3RIZWlnaHQgPSAyXG4gICAgICAgIHpvb21lci5ib3hSZWN0V2lkdGggPSAyXG4gICAgICAgIEBtb2RlbC5yZXNldCBbXVxuICAgICAgICBAZy56b29tZXIuc2V0IHpvb21lclxuICAgICAgICBAbW9kZWwucmVzZXQgc2Vxc1xuICAgICAgICBAZy5jb2x1bW5zLmNhbGNDb25zZXJ2YXRpb24gQG1vZGVsXG5cbiAgICBAYWRkTm9kZSBcIkNMVVNUQUxcIiwgPT5cbiAgICAgIHVybCA9IHByb21wdCBcIlVSTFwiLCBcIi90ZXN0L2R1bW15L3NhbXBsZXMvcDUzLmNsdXN0YWxvLmNsdXN0YWxcIlxuICAgICAgdXJsID0gY29yc1VSTCB1cmwsIEBnXG4gICAgICBDbHVzdGFsLnJlYWQgdXJsLCAoc2VxcykgPT5cbiAgICAgICAgem9vbWVyID0gQGcuem9vbWVyLnRvSlNPTigpXG4gICAgICAgICN6b29tZXIudGV4dFZpc2libGUgPSBmYWxzZVxuICAgICAgICAjem9vbWVyLmNvbHVtbldpZHRoID0gNFxuICAgICAgICB6b29tZXIubGFiZWxXaWR0aCA9IDIwMFxuICAgICAgICB6b29tZXIuYm94UmVjdEhlaWdodCA9IDJcbiAgICAgICAgem9vbWVyLmJveFJlY3RXaWR0aCA9IDJcbiAgICAgICAgQG1vZGVsLnJlc2V0IFtdXG4gICAgICAgIEBnLnpvb21lci5zZXQgem9vbWVyXG4gICAgICAgIEBtb2RlbC5yZXNldCBzZXFzXG4gICAgICAgIEBnLmNvbHVtbnMuY2FsY0NvbnNlcnZhdGlvbiBAbW9kZWxcblxuICAgIEBhZGROb2RlIFwiYWRkIHlvdXIgb3duIFBhcnNlclwiLCA9PlxuICAgICA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x8IGxpbmUubGVuZ3RoID09PSAwKSB7XG4gICAgICAgIGJsb2Nrc3RhdGUgPSAxO1xuICAgICAgICBjb250aW51ZTtcbiAgICAgIH1cbiAgICAgIGlmIChsaW5lLnRyaW0oKS5sZW5ndGggPT09IDApIHtcbiAgICAgICAgYmxvY2tzdGF0ZSA9IDE7XG4gICAgICAgIGNvbnRpbnVlO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgaWYgKFN0ci5jb250YWlucyhsaW5lLCBcIipcIikpIHtcbiAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoYmxvY2tzdGF0ZSA9PT0gMSkge1xuICAgICAgICAgIHNlcUNvdW50ZXIgPSAwO1xuICAgICAgICAgIGJsb2Nrc3RhdGUgPSAwO1xuICAgICAgICB9XG4gICAgICAgIHJlZ2V4ID0gL14oPzpcXHMqKShcXFMrKSg/OlxccyspKFxcUyspKD86XFxzKikoXFxkKikoPzpcXHMqfCQpL2c7XG4gICAgICAgIG1hdGNoID0gcmVnZXguZXhlYyhsaW5lKTtcbiAgICAgICAgaWYgKG1hdGNoICE9IG51bGwpIHtcbiAgICAgICAgICBsYWJlbCA9IG1hdGNoWzFdO1xuICAgICAgICAgIHNlcXVlbmNlID0gbWF0Y2hbMl07XG4gICAgICAgICAgaWYgKHNlcUNvdW50ZXIgPj0gc2Vxcy5sZW5ndGgpIHtcbiAgICAgICAgICAgIHNlcXMucHVzaChuZXcgU2VxKHNlcXVlbmNlLCBsYWJlbCwgc2VxQ291bnRlcikpO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBzZXFzW3NlcUNvdW50ZXJdLnNlcSArPSBzZXF1ZW5jZTtcbiAgICAgICAgICB9XG4gICAgICAgICAgc2VxQ291bnRlcisrO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIGNvbnNvbGUubG9nKGxpbmUpO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICAgIHJldHVybiBzZX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G5tb2R1bGUuZXhwb3J0cyA9IE5ldHNcblxuZnVuY3Rpb24gTmV0cyh1cmksIG9wdHMsIGNiKSB7XG4gIHJlcSh1cmksIG9wdHMsIGNiKVxufSJdfQ==
8989
8990
8991
8992 // this is a way how you use a bundled file parser
8993 biojs.io.clustal.read("#", function(seqs){
8994 var opts = {};
8995
8996 // set your custom properties
8997 // @see: https://github.com/greenify/biojs-vis-msa/tree/master/src/g 
8998
8999 var jalviewData = JSON.parse(document.getElementById("seqData").value); 
9000 opts.seqs = jalviewData['seqs'];
9001
9002 opts.el = document.getElementById("yourDiv");
9003 opts.vis = {conserv: false, overviewbox: false, labelId: false};
9004 opts.zoomer = {alignmentHeight: 225, labelWidth: 130,labelFontsize: "13px",labelIdLength: 20,   menuFontsize: "12px",menuMarginLeft: "3px", menuPadding: "3px 4px 3px 4px", menuItemFontsize: "14px", menuItemLineHeight: "14px"};
9005
9006
9007
9008 // init msa
9009 var m = new msa.msa(opts);
9010
9011 m.g.colorscheme.set("scheme", jalviewData['globalColorScheme']);
9012
9013 var x = 0;
9014 jalviewData.seqs.forEach( function (seq)
9015 {
9016 m.seqs.at(x++).set("features", new msa.model.featurecol(seq.features));
9017 });
9018
9019 // the menu is independent to the MSA container
9020 var menuOpts = {};
9021 menuOpts.el = document.getElementById('div');
9022 menuOpts.msa = m;
9023 var defMenu = new msa.menu.defaultmenu(menuOpts);
9024 m.addView("menu", defMenu);
9025
9026 // call render at the end to display the whole MSA
9027 m.render();
9028 toggleMenuVisibility(); 
9029 toggleMenuVisibility(); 
9030 });
9031 </script>