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