text: !function e(t,n,i){function o(s,a){if(!n[s]){if(!t[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(r)return r(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[s]={exports:{}};t[s][0].call(u.exports,function(e){var n=t[s][1][e];return o(n?n:e)},u,u.exports,e,t,n,i)}return n[s].exports}for(var r="function"==typeof require&&require,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,n){var i=e("backbone"),o=(e("backbone.composer"),e("backbone.broker")),r=e("./config/default"),s=e("./models/user"),a=e("./router"),l=e("./views/main");i.$=window.$,i.View.prototype.attachToTemplate=!0,$(document).ready(function(){$.ajaxPrefilter(function(e,t,n){e.url=r.apiRoot+e.url}),$(document).ajaxComplete(function(e,t,n){401==t.status&&(location.href="/login")});var e=sessionStorage.getItem("eratecycle");e&&(e=JSON.parse(e),$.ajaxSetup({headers:{Authorization:"Basic "+btoa(e.email+":"+e.password)}}));new l({el:"body"}),new a;s.fetch().done(function(){o.start(),i.history.start()})})},{"./config/default":12,"./models/user":18,"./router":19,"./views/main":81,backbone:88,"backbone.broker":86,"backbone.composer":87}],2:[function(e,t,n){var i=e("backbone"),o=e("../models/charge");t.exports=i.Collection.extend({url:"/invoice/charges",comparator:"service_id",model:o})},{"../models/charge":15,backbone:88}],3:[function(e,t,n){var i=e("backbone"),o=e("../models/entity");t.exports=i.Collection.extend({url:"/entity/search",model:o})},{"../models/entity":16,backbone:88}],4:[function(e,t,n){var i=e("backbone");t.exports=i.Collection.extend({url:"/files",comparator:"file_name"})},{backbone:88}],5:[function(e,t,n){var i=e("backbone");t.exports=i.Collection.extend({url:"/invoice/dates",comparator:"date"})},{backbone:88}],6:[function(e,t,n){var i=e("backbone");t.exports=i.Collection.extend({url:"/invoice/locations",comparator:"label"})},{backbone:88}],7:[function(e,t,n){{var i=e("backbone");e("accounting")}t.exports=i.Collection.extend({url:"/invoice/rate-types",comparator:"rate_type"})},{accounting:85,backbone:88}],8:[function(e,t,n){{var i=e("backbone");e("accounting")}t.exports=i.Collection.extend({url:"/invoice/service-monthly-totals",comparator:"invoice_date"})},{accounting:85,backbone:88}],9:[function(e,t,n){var i=e("backbone"),o=e("../models/service-rate");t.exports=i.Collection.extend({url:"/invoice/service-rates",comparator:"rate_type",model:o})},{"../models/service-rate":17,backbone:88}],10:[function(e,t,n){var i=e("backbone");t.exports=i.Collection.extend({url:"/invoice/services",comparator:"label"})},{backbone:88}],11:[function(e,t,n){var i=e("backbone");t.exports=i.Collection.extend({comparator:"date"})},{backbone:88}],12:[function(e,t,n){"use strict";var i=e("underscore"),o=e("./development"),r=e("./production"),s={apiRoot:"http://localhost:9010"},a=-1!==location.hostname.indexOf("localhost")?o:r;t.exports=i.extend(s,a)},{"./development":13,"./production":14,underscore:91}],13:[function(e,t,n){"use strict";var i={apiRoot:"http://localhost:9010"};t.exports=i},{}],14:[function(e,t,n){"use strict";var i={apiRoot:"http://eratecycle.herokuapp.com"};t.exports=i},{}],15:[function(e,t,n){var i=e("backbone"),o=e("underscore"),r=e("accounting");t.exports=i.Model.extend({idAttribute:"_id",toJSON:function(){var e=o.clone(this.attributes);return e.charge_amount=r.toFixed(e.charge_amount/100,2),e.tax_amount=r.toFixed(e.tax_amount/100,2),e}})},{accounting:85,backbone:88,underscore:91}],16:[function(e,t,n){var i=e("backbone");t.exports=i.Model.extend({idAttribute:"_id",defaults:{identifier:"",name:""}})},{backbone:88}],17:[function(e,t,n){var i=e("backbone"),o=e("underscore"),r=e("accounting");t.exports=i.Model.extend({toJSON:function(){var e=o.clone(this.attributes);return e.rate=r.toFixed(e.rate/100,2),e}})},{accounting:85,backbone:88,underscore:91}],18:[function(e,t,n){var i=e("backbone"),o=e("../collections/files"),r=e("../collections/transactions"),s=i.Model.extend({urlRoot:"/user",idAttribute:"_id",defaults:{firstName:"",lastName:"",entities:[]},initialize:function(){this.files=new o,this.transactions=new r},parse:function(e,t){return e.files&&(this.files.add(e.files,{merge:!0}),delete e.files),e.transactions&&(this.transactions.reset(),this.transactions.add(e.transactions),delete e.transactions),e}});t.exports=new s},{"../collections/files":4,"../collections/transactions":11,backbone:88}],19:[function(e,t,n){var i=e("backbone"),o=e("backbone.broker"),r=e("./views/dashboard"),s=e("./views/file-upload"),a=e("./views/entity"),l=e("./views/entity/index"),c=e("./views/charges"),u=e("./views/filing"),d=e("./views/file-manager"),h=e("./views/profile"),f=e("./views/contacts"),p=e("./views/mailbox"),m=e("./models/user"),v=o.channel("container"),g=o.channel("nav");t.exports=i.Router.extend({routes:{"":"homeRoute","entity/list":"showEntityList","entity/add":"showEntityAdd",dashboard:"showDashboard","file-manager":"showFileManager","file-upload":"showFileUpload",filing:"showFilingTool",charges:"showChargesTool",profile:"showProfile",contacts:"showContacts",mailbox:"showMailbox",notifications:"showNotifications"},homeRoute:function(){m.get("entities")&&m.get("entities").length>0?this.showEntityList():this.showEntityAdd()},showDashboard:function(){m.fetch().done(function(){v.publish("show",new r({model:m})),g.publish("select","dashboard")})},showEntityList:function(){v.publish("show",new a({model:m})),g.publish("select","entity-list")},showEntityAdd:function(){v.publish("show",new l({model:m}))},showFilingTool:function(){v.publish("show",new u({model:m})),g.publish("select","filing")},showChargesTool:function(){v.publish("show",new c({model:m})),g.publish("select","charges")},showFileManager:function(){v.publish("show",new d),g.publish("select","file-manager")},showFileUpload:function(){v.publish("show",new s),g.publish("select","file-manager")},showProfile:function(){v.publish("show",new h)},showContacts:function(){v.publish("show",new f)},showMailbox:function(){v.publish("show",new p)},showNotifications:function(){v.publish("show",new NotificationsView)}})},{"./models/user":18,"./views/charges":50,"./views/contacts":53,"./views/dashboard":55,"./views/entity":62,"./views/entity/index":67,"./views/file-manager":73,"./views/file-upload":74,"./views/filing":75,"./views/mailbox":80,"./views/profile":83,backbone:88,"backbone.broker":86}],20:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='<div class="row wrapper border-bottom white-bg page-heading">\n  <div class="col-lg-9">\n    <h2>Charge Analysis Tool</h2>\n  </div>\n</div>\n<div class="wrapper wrapper-content">\n  <div class="row">\n    <div class="col-lg-12" id="table">\n    </div>\n  </div>\n</div>\n';return __p}},{underscore:91}],21:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __t,__p="";Array.prototype.join}with(obj||{})__p+="<tr>\n  <td>"+(null==(__t=date)?"":__t)+"</td>\n  <td>"+(null==(__t=service_id)?"":__t)+"</td>\n  <td>"+(null==(__t=description)?"":__t)+'</td>\n  <td><div class="text-right">'+(null==(__t=amount)?"":__t)+"</div></td>\n</tr>\n";return __p}},{underscore:91}],22:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='<div class="ibox float-e-margins">\n  <div class="ibox-title">\n    <h5>Custom responsive table </h5>\n    <div class="ibox-tools">\n      <a class="collapse-link">\n        <i class="fa fa-chevron-up"></i>\n      </a>\n      <a class="dropdown-toggle" data-toggle="dropdown" href="#">\n        <i class="fa fa-wrench"></i>\n      </a>\n      <ul class="dropdown-menu dropdown-user">\n        <li><a href="#">Config option 1</a>\n        </li>\n        <li><a href="#">Config option 2</a>\n        </li>\n      </ul>\n      <a class="close-link">\n        <i class="fa fa-times"></i>\n      </a>\n    </div>\n  </div>\n  <div class="ibox-content">\n    <div class="row">\n      <div class="col-sm-5 m-b-xs">\n        <select id="location" class="input-sm form-control input-s-sm inline">\n          <option>Select Location</option>\n        </select>\n      </div>\n      <div class="col-sm-2 m-b-xs">\n        <select id="from_date" class="input-sm form-control input-s-sm inline">\n          <option value="">Select From</option>\n        </select>\n      </div>\n      <div class="col-sm-2 m-b-xs">\n        <select id="to_date" class="input-sm form-control input-s-sm inline">\n          <option value="">Select To</option>\n        </select>\n      </div>\n      <div class="col-sm-3">\n        <div class="input-group"><input type="text" placeholder="Search" class="input-sm form-control"> <span class="input-group-btn">\n          <button type="button" class="btn btn-sm btn-primary"> Go!</button> </span></div>\n        </div>\n      </div>\n      <div class="table-responsive">\n        <table class="table table-striped">\n          <thead>\n            <tr>\n              <th>Date</th>\n              <th>Service ID</th>\n              <th>Type</th>\n              <th>\n                <div class="text-right">Amount</div>\n              </th>\n            </tr>\n          </thead>\n          <tbody>\n          </tbody>\n        </table>\n      </div>\n    </div>\n  </div>\n</div>\n';return __p}},{underscore:91}],23:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='<div class="row wrapper border-bottom white-bg page-heading">\n  <div class="col-lg-9">\n    <h2>Dashboard</h2>\n  </div>\n</div>\n<div class="wrapper wrapper-content">\n  <div class="row">\n    <div class="col-md-4" id="flot-average">\n    </div>\n    <div class="col-md-4" id="flot-total">\n    </div>\n    <div class="col-md-4" id="flot-chart">\n    </div>\n  </div>\n  <div class="row">\n    <div class="col-lg-12" id="chart-js">\n    </div>\n  </div>\n  <div class="row">\n    <div class="col-lg-12" id="table">\n    </div>\n  </div>\n';return __p}},{underscore:91}],24:[function(require,module,exports){var _=require("underscore");module.exports=function(obj){{var __t,__p="";Array.prototype.join}with(obj||{})__p+='<div class="ibox float-e-margins">\n  <div class="ibox-content">\n    <div>\n      <h3 class="font-bold no-margins">Monthly Service Billing</h3>\n    </div>\n\n    <div class="m-t-sm">\n\n      <div class="row">\n        <div class="col-md-8">\n          <div>\n            <canvas id="lineChart" height="114"></canvas>\n          </div>\n        </div>\n        <div class="col-md-4">\n          <ul class="stat-list m-t-lg">\n          ',_.each(charges,function(e){__p+='\n            <li>\n              <h2 class="no-margins">'+(null==(__t=e.total)?"":__t)+"</h2>\n              <small>"+(null==(__t=e.label)?"":__t)+' in period</small>\n              <div class="progress progress-mini">\n                <div class="progress-bar" style="width: '+(null==(__t=e.avg)?"":__t)+'%;"></div>\n              </div>\n            </li>\n          '}),__p+="\n          </ul>\n        </div>\n      </div>\n\n    </div>\n\n  </div>\n</div>\n";return __p}},{underscore:91}],25:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __t,__p="";Array.prototype.join}with(obj||{})__p+='<div class="ibox float-e-margins">\n  <div class="ibox-title">\n    <span class="label label-success pull-right">Monthly</span>\n    <h5>Average</h5>\n  </div>\n  <div class="ibox-content">\n    <h1 class="no-margins">'+(null==(__t=average)?"":__t)+'</h1>\n    <div class="stat-percent font-bold text-success">98% <i class="fa fa-bolt"></i></div>\n  </div>\n</div>\n';return __p}},{underscore:91}],26:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='<div class="ibox float-e-margins">\n  <div class="ibox-title">\n    <h5>Service Breakdown</h5>\n    <div class="ibox-tools">\n      <span class="label label-primary">Updated 08.2015</span>\n    </div>\n  </div>\n  <div class="ibox-content no-padding">\n    <div>\n      <canvas id="flot-chart-content" height="100"></canvas>\n    </div>\n  </div>\n\n</div>\n';return __p}},{underscore:91}],27:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __t,__p="";Array.prototype.join}with(obj||{})__p+='<div class="ibox float-e-margins">\n  <div class="ibox-title">\n    <span class="label label-info pull-right">Annual</span>\n    <h5>Total</h5>\n  </div>\n  <div class="ibox-content">\n    <h1 class="no-margins">'+(null==(__t=total)?"":__t)+'</h1>\n    <div class="stat-percent font-bold text-info">20% <i class="fa fa-level-up"></i></div>\n  </div>\n</div>\n';return __p}},{underscore:91}],28:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __t,__p="";Array.prototype.join}with(obj||{})__p+="<tr>\n  <td>"+(null==(__t=date)?"":__t)+"</td>\n  <td>"+(null==(__t=description)?"":__t)+'</td>\n  <td><div class="text-right">'+(null==(__t=amount)?"":__t)+"</div></td>\n</tr>\n";return __p}},{underscore:91}],29:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='<div class="ibox float-e-margins">\n  <div class="ibox-title">\n    <h5>Service Billing Items</h5>\n    <div class="ibox-tools">\n      <a class="collapse-link">\n        <i class="fa fa-chevron-up"></i>\n      </a>\n      <a class="close-link">\n        <i class="fa fa-times"></i>\n      </a>\n    </div>\n  </div>\n  <div class="ibox-content">\n    <div class="row">\n      <div class="table-responsive">\n        <table class="table table-striped">\n          <thead>\n            <tr>\n              <th>Date</th>\n              <th>Description</th>\n              <th>\n                <div class="text-right">Amount</div>\n              </th>\n            </tr>\n          </thead>\n          <tbody>\n          </tbody>\n        </table>\n      </div>\n    </div>\n  </div>\n</div>\n';return __p}},{underscore:91}],30:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='<div class="row wrapper border-bottom white-bg page-heading">\n  <div class="col-lg-9">\n    <h2>Entity List</h2>\n  </div>\n</div>\n<div class="wrapper wrapper-content">\n  <div class="row">\n    <div class="col-lg-12" id="table">\n    </div>\n  </div>\n</div>\n';return __p}},{underscore:91}],31:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __t,__p="";Array.prototype.join}with(obj||{})__p+='<tr>\n    <td><input type="radio" name="entity"></input></td>\n    <th>'+(null==(__t=identifier)?"":__t)+"</th>\n    <th>"+(null==(__t=name)?"":__t)+"</th>\n    <th>"+(null==(__t=category)?"":__t)+"</th>\n</tr>\n";return __p}},{underscore:91}],32:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='<fieldset>\n  <h2>Entity Search</h2>\n    <div class="well">\n    We haven\'t identified your entity number or name.  Get started by searching for your entity\n    by zip code.\n    </div>\n  <div class="row">\n    <div class="col-lg-4">\n      <div class="form-group" id="accountForm">\n        <div class="input-group">\n          <input id="zipCode" name="zipCode" type="text" class="form-control" placeholder="Zip Code">\n          <span class="input-group-btn">\n            <button class="btn btn-default" type="button" id="entity-search">Go!</button>\n          </span>\n        </div><!-- /input-group -->\n      </div>\n    </div>\n    <div class="col-lg-8">\n        <div class="ibox float-e-margins">\n            <div class="ibox-title">\n                <h5>Search Results</h5>\n            </div>\n            <div class="ibox-content">\n                <table class="table">\n                    <tbody>\n                    </tbody>\n                </table>\n\n            </div>\n        </div>\n    </div>\n  </div>\n\n</fieldset>\n';return __p}},{underscore:91}],33:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __t,__p="";Array.prototype.join}with(obj||{})__p+="<h2>"+(null==(__t=name||"")?"":__t)+'</h2>\n<div class="row">\n  <div class="col-lg-6">Entity identifier: '+(null==(__t=identifier||"")?"":__t)+'</div>\n  <div class="col-lg-6">Contact Person: '+(null==(__t=contact||"")?"":__t)+"</div>\n</div>\n";return __p}},{underscore:91}],34:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='<fieldset>\n  <h2>Terms and Conditions</h2>\n  <input id="acceptTerms" name="acceptTerms" type="checkbox" class="required"> <label for="acceptTerms">I agree with the Terms and Conditions.</label>\n</fieldset>\n';return __p}},{underscore:91}],35:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='<div class="row wrapper border-bottom white-bg page-heading">\n  <div class="col-lg-9">\n    <h2>',__p+=!entities||entities.length<1?"Welcome":"Entity List ",__p+='</h2>\n  </div>\n</div>\n<div class="wrapper wrapper-content">\n  <div class="row">\n    <div class="col-lg-12">\n      <div class="ibox">\n        <div class="ibox-title">\n          <h5>Add Entity</h5>\n        </div>\n        <div class="ibox-content">\n          <hr/>\n          <form id="form" action="#" class="wizard-big">\n          </form>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n';return __p}},{underscore:91}],36:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __t,__p="";Array.prototype.join}with(obj||{})__p+='<fieldset>\n  <h2>Entity Information</h2>\n  <div class="row">\n    <div class="col-lg-6">\n      <div class="form-group">\n        <label>Name *</label>\n        <input id="name" name="name" type="text" value="'+(null==(__t=entity.name)?"":__t)+'" class="form-control required">\n      </div>\n      <div class="form-group">\n        <label>Entity Number *</label>\n        <input id="identifier" name="identifier" type="text" value="'+(null==(__t=entity.identifier)?"":__t)+'" class="form-control required">\n      </div>\n    </div>\n    <div class="col-lg-6">\n      <div class="form-group">\n        <label>Street Address *</label>\n        <input id="street" name="street" type="text" class="form-control required street">\n      </div>\n      <div class="row">\n        <div class="col-lg-5">\n          <div class="form-group">\n            <label>City *</label>\n            <input id="city" name="city" type="text" class="form-control required city">\n          </div>\n        </div>\n        <div class="col-lg-3">\n          <div class="form-group">\n            <label>State *</label>\n            <input id="state" name="state" type="text" class="form-control required state">\n          </div>\n        </div>\n        <div class="col-lg-4">\n          <div class="form-group">\n            <label>Zip Code *</label>\n            <input id="zipcode" name="zipcode" type="text" class="form-control required zipcode">\n          </div>\n        </div>\n      </div>\n      <div class="row">\n        <div class="col-lg-5">\n          <div class="form-group">\n            <label>Phone</label>\n            <input id="phone" name="phone" type="text" class="form-control">\n          </div>\n        </div>\n        <div class="col-lg-2">\n          <div class="form-group">\n            <label>Ext</label>\n            <input id="extension" name="extension" type="text" class="form-control">\n          </div>\n        </div>\n        <div class="col-lg-5">\n          <div class="form-group">\n            <label>Fax</label>\n            <input id="fax" name="fax" type="text" class="form-control">\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</fieldset>\n';return __p}},{underscore:91}],37:[function(e,t,n){arguments[4][21][0].apply(n,arguments)},{dup:21,underscore:91}],38:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='<div class="ibox float-e-margins">\n  <div class="ibox-title">\n    <h5>Custom responsive table </h5>\n  </div>\n  <div class="ibox-content">\n    <div class="row">\n      <div class="col-lg-6">\n        <div class="input-group">\n          <input type="text" placeholder="Search" class="input-sm form-control">\n          <span class="input-group-btn">\n            <button type="button" class="btn btn-sm btn-primary"> Go!</button>\n          </span>\n        </div>\n      </div>\n      <div class="col-lg-6">\n        <a class="btn btn-sm btn-primary" href="#entity/add">Add</a>\n      </div>\n    </div>\n    <div class="row">\n      <div class="table-responsive">\n        <table class="table table-striped table-hover">\n          <thead>\n            <tr>\n              <th>Company</th>\n              <th>Contact</th>\n              <th>City</th>\n            </tr>\n          </thead>\n          <tbody>\n            <tr>\n                <td><a data-toggle="tab" href="#company-1" class="client-link">Tellus Institute</a></td>\n                <td>Rexton</td>\n                <td><i class="fa fa-flag"></i> Angola</td>\n                <td class="client-status"><span class="label label-primary">Active</span></td>\n            </tr>\n            <tr>\n                <td><a data-toggle="tab" href="#company-2" class="client-link">Velit Industries</a></td>\n                <td>Maglie</td>\n                <td><i class="fa fa-flag"></i> Luxembourg</td>\n                <td class="client-status"><span class="label label-primary">Active</span></td>\n            </tr>\n          </tbody>\n        </table>\n      </div>\n    </div>\n  </div>\n</div>\n';return __p}},{underscore:91}],39:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='<fieldset>\n  <h2>Services</h2>\n  <div class="row">\n    <div class="col-lg-6">\n      <div class="form-group">\n        <label>Funding Year *</label>\n        <select class="form-control m-b" name="funding">\n          <option>please select...</option>\n          <option>2014</option>\n          <option>2015</option>\n        </select>\n      </div>\n    </div>\n  </div>\n</fieldset>\n';return __p}},{underscore:91}],40:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __t,__p="";Array.prototype.join}with(obj||{})__p+='<div class="file-box">\n  <div class="file">\n    <a href="'+(null==(__t=fileNameEncoded)?"":__t)+'">\n      <span class="corner"></span>\n\n      <div class="icon">\n        <i class="fa fa-file"></i>\n      </div>\n      <div class="file-name">\n        <span style="display:block;overflow: hidden;text-overflow: ellipsis;">'+(null==(__t=fileName)?"":__t)+"</span>\n        <br/>\n        <small>Added: "+(null==(__t=dateAdded)?"":__t)+'</small>\n        <small class="pull-right"><a class="file-remove" href="remove/'+(null==(__t=fileNameEncoded)?"":__t)+'">Remove</a></small>\n      </div>\n    </a>\n  </div>\n</div>\n';return __p}},{underscore:91}],41:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='<div class="row wrapper border-bottom white-bg page-heading">\n  <div class="col-lg-9">\n    <h2>Documents</h2>\n  </div>\n</div>\n<div class="wrapper wrapper-content">\n  <div class="row">\n    <div class="col-lg-3">\n      <div class="ibox float-e-margins">\n        <div class="ibox-content">\n          <div class="file-manager">\n            <h5>Show:</h5>\n            <a href="#file-manager" id="files-all" class="file-control active">All</a>\n            <a href="#file-manager" id="files-invoices" class="file-control">Invoices</a>\n            <a href="#file-manager" id="files-forms" class="file-control">Forms</a>\n            <div class="hr-line-dashed"></div>\n            <a href="#file-upload">\n              <button class="btn btn-primary btn-block">Upload Files</button>\n            </a>\n            <div class="clearfix"></div>\n          </div>\n        </div>\n      </div>\n    </div>\n    <div class="col-lg-9 animated fadeInRight">\n      <div class="row">\n        <div class="col-lg-12" id="file-list">\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n';return __p}},{underscore:91}],42:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='<div class="row wrapper border-bottom white-bg page-heading">\n  <div class="col-lg-9">\n    <h2>File Upload</h2>\n  </div>\n</div>\n<div class="wrapper wrapper-content animated fadeIn">\n  <div class="row">\n    <div class="col-lg-12">\n      <div class="ibox float-e-margins">\n        <div class="ibox-title">\n          <h5>Dropzone Area</h5>\n          <div class="ibox-tools">\n            <a class="collapse-link">\n              <i class="fa fa-chevron-up"></i>\n            </a>\n            <a class="dropdown-toggle" data-toggle="dropdown" href="#">\n              <i class="fa fa-wrench"></i>\n            </a>\n            <ul class="dropdown-menu dropdown-user">\n              <li><a href="#">Config option 1</a>\n              </li>\n              <li><a href="#">Config option 2</a>\n              </li>\n            </ul>\n            <a class="close-link">\n              <i class="fa fa-times"></i>\n            </a>\n          </div>\n        </div>\n        <div class="ibox-content">\n          <form id="my-awesome-dropzone" class="dropzone" action="#">\n            <div class="dropzone-previews"></div>\n            <button type="submit" class="btn btn-primary pull-right">Send Files</button>\n          </form>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n';return __p}},{underscore:91}],43:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='<div class="row wrapper border-bottom white-bg page-heading">\n  <div class="col-lg-9">\n    <h2>Filing Analysis Tool</h2>\n  </div>\n</div>\n<div class="wrapper wrapper-content">\n  <div class="row">\n    <div class="col-lg-12" id="table">\n    </div>\n  </div>\n</div>\n';return __p}},{underscore:91}],44:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='<div class="ibox float-e-margins">\n    <div class="ibox-title">\n        <h5>Bar Chart</h5>\n    </div>\n    <div class="ibox-content">\n        <div>\n            <canvas id="barChart" height="140"></canvas>\n        </div>\n    </div>\n</div>\n';return __p}},{underscore:91}],45:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __t,__p="";Array.prototype.join}with(obj||{})__p+="<tr>\n  <td>"+(null==(__t=rate_type)?"":__t)+'</td>\n  <td><div class="text-right">'+(null==(__t=amount)?"":__t)+'</div></td>\n  <td><div class="text-right">'+(null==(__t=count)?"":__t)+"</div></td>\n</tr>\n";return __p}},{underscore:91}],46:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='<div class="ibox float-e-margins">\n  <div class="ibox-title">\n    <h5>Custom responsive table </h5>\n    <div class="ibox-tools">\n      <a class="collapse-link">\n        <i class="fa fa-chevron-up"></i>\n      </a>\n      <a class="dropdown-toggle" data-toggle="dropdown" href="#">\n        <i class="fa fa-wrench"></i>\n      </a>\n      <ul class="dropdown-menu dropdown-user">\n        <li><a href="#">Config option 1</a>\n        </li>\n        <li><a href="#">Config option 2</a>\n        </li>\n      </ul>\n      <a class="close-link">\n        <i class="fa fa-times"></i>\n      </a>\n    </div>\n  </div>\n  <div class="ibox-content">\n    <div class="row">\n      <div class="col-sm-4 m-b-xs">\n        <select id="service_code" class="input-sm form-control input-s-sm inline">\n          <option>Select service</option>\n        </select>\n      </div>\n      <div class="col-sm-4">\n        <select id="rate_type" class="input-sm form-control input-s-sm inline disabled">\n          <option>Select rate</option>\n        </select>\n      </div>\n      <div class="col-sm-2 m-b-xs">\n        <select id="from_date" class="input-sm form-control input-s-sm inline disabled">\n          <option value="">Select From</option>\n        </select>\n      </div>\n      <div class="col-sm-2 m-b-xs">\n        <select id="to_date" class="input-sm form-control input-s-sm inline disabled">\n          <option value="">Select To</option>\n        </select>\n      </div>\n    </div>\n    <div class="row">\n      <div class="col-sm-8" id="total-chart"></div>\n      <div class="col-sm-4">\n        <div class="ibox-title">\n            <h5>Supporting Detail</h5>\n        </div>\n        <div class="ibox-content">\n          <div class="table-responsive">\n            <table class="table table-striped">\n              <thead>\n                <tr class="hidden">\n                  <th>Rate Type</th>\n                  <th>\n                    <div class="text-right">Amount</div>\n                  </th>\n                  <th>\n                    <div class="text-right">Qty</div>\n                  </th>\n                </tr>\n              </thead>\n              <tbody>\n              </tbody>\n            </table>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n';return __p}},{underscore:91}],47:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='<div class="footer">\n  <div class="pull-right">\n    10GB of <strong>250GB</strong> Free\n  </div>\n  <div>\n    &copy; 2014-2015 ERATECycle\n  </div>\n</div>\n';return __p}},{underscore:91}],48:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __t,__p="";Array.prototype.join}with(obj||{})__p+='<nav class="navbar-default navbar-static-side" role="navigation">\n    <div class="sidebar-collapse">\n        <ul class="nav" id="side-menu">\n            <li class="nav-header">\n                <div class="dropdown profile-element">\n                    <span>\n                        <img alt="image" class="img-circle" src="/img/portal/profile_small.jpg" />\n                    </span>\n                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">\n                        <span class="clear">\n                          <span class="block m-t-xs">\n                            <strong class="font-bold">'+(null==(__t=firstName)?"":__t)+" "+(null==(__t=lastName)?"":__t)+'</strong><b class="caret"></b>\n                          </span>\n                        </span>\n                    </a>\n                    <ul class="dropdown-menu animated fadeInRight m-t-xs">\n                        <li><a href="#profile">Profile</a></li>\n                        <li><a href="#contacts">Contacts</a></li>\n                        <li><a href="#mailbox">Mailbox</a></li>\n                        <li class="divider"></li>\n                        <li><a href="/login">Logout</a></li>\n                    </ul>\n                </div>\n            </li>\n            <li id="nav-dashboard">\n                <a href="#"><i class="fa fa-bar-chart-o"></i> <span class="nav-label">Dashboard</span></a>\n            </li>\n            <li id="nav-entity-list">\n                <a href="#entity/list"><i class="fa fa-file-text-o"></i> <span class="nav-label">Entity List</span></a>\n            </li>\n            <li id="nav-filing">\n                <a href="#filing"><i class="fa fa-folder-open-o"></i> <span class="nav-label">Filing</span></a>\n            </li>\n            <li id="nav-charges">\n                <a href="#charges"><i class="fa fa-usd"></i> <span class="nav-label">Charges</span></a>\n            </li>\n            <li id="nav-file-manager">\n                <a href="#file-manager"><i class="fa fa-files-o"></i> <span class="nav-label">Documents</span></a>\n            </li>\n        </ul>\n\n    </div>\n</nav>\n';
  
  return __p}},{underscore:91}],49:[function(require,module,exports){require("underscore");module.exports=function(obj){{var __p="";Array.prototype.join}with(obj||{})__p+='<div class="row border-bottom">\n  <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">\n    <div class="navbar-header">\n      <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>\n    </div>\n    <ul class="nav navbar-top-links navbar-right">\n      <li>\n        <span class="m-r-sm text-muted welcome-message">Welcome to ERATECycle</span>\n      </li>\n      <li class="dropdown">\n        <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">\n          <i class="fa fa-envelope"></i>  <span class="label label-warning">16</span>\n        </a>\n        <ul class="dropdown-menu dropdown-messages">\n          <li>\n            <div class="dropdown-messages-box">\n              <a href="#profile" class="pull-left">\n                <img alt="image" class="img-circle" src="/img/portal/a7.jpg">\n              </a>\n              <div>\n                <small class="pull-right">46h ago</small>\n                <strong>Mike Loreipsum</strong> started following <strong>Monica Smith</strong>. <br>\n                <small class="text-muted">3 days ago at 7:58 pm - 10.06.2014</small>\n              </div>\n            </div>\n          </li>\n          <li class="divider"></li>\n          <li>\n            <div class="dropdown-messages-box">\n              <a href="#profile" class="pull-left">\n                <img alt="image" class="img-circle" src="/img/portal/a4.jpg">\n              </a>\n              <div>\n                <small class="pull-right text-navy">5h ago</small>\n                <strong>Chris Johnatan Overtunk</strong> started following <strong>Monica Smith</strong>. <br>\n                <small class="text-muted">Yesterday 1:21 pm - 11.06.2014</small>\n              </div>\n            </div>\n          </li>\n          <li class="divider"></li>\n          <li>\n            <div class="dropdown-messages-box">\n              <a href="#profile" class="pull-left">\n                <img alt="image" class="img-circle" src="/img/portal/profile.jpg">\n              </a>\n              <div>\n                <small class="pull-right">23h ago</small>\n                <strong>Monica Smith</strong> love <strong>Kim Smith</strong>. <br>\n                <small class="text-muted">2 days ago at 2:30 am - 11.06.2014</small>\n              </div>\n            </div>\n          </li>\n          <li class="divider"></li>\n          <li>\n            <div class="text-center link-block">\n              <a href="#mailbox">\n                <i class="fa fa-envelope"></i> <strong>Read All Messages</strong>\n              </a>\n            </div>\n          </li>\n        </ul>\n      </li>\n      <li class="dropdown">\n        <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">\n          <i class="fa fa-bell"></i>  <span class="label label-primary">8</span>\n        </a>\n        <ul class="dropdown-menu dropdown-alerts">\n          <li>\n            <a href="#mailbox">\n              <div>\n                <i class="fa fa-envelope fa-fw"></i> You have 16 messages\n                <span class="pull-right text-muted small">4 minutes ago</span>\n              </div>\n            </a>\n          </li>\n          <li class="divider"></li>\n          <li>\n            <a href="#profile">\n              <div>\n                <i class="fa fa-twitter fa-fw"></i> 3 New Followers\n                <span class="pull-right text-muted small">12 minutes ago</span>\n              </div>\n            </a>\n          </li>\n          <li class="divider"></li>\n          <li>\n            <div class="text-center link-block">\n              <a href="#notifications">\n                <strong>See All Alerts</strong>\n                <i class="fa fa-angle-right"></i>\n              </a>\n            </div>\n          </li>\n        </ul>\n      </li>\n\n\n      <li>\n        <a href="/login">\n          <i class="fa fa-sign-out"></i> Log out\n        </a>\n      </li>\n    </ul>\n\n  </nav>\n</div>\n';return __p}},{underscore:91}],50:[function(e,t,n){var i=e("backbone"),o=e("underscore"),r=e("accounting"),s=e("./charges/table");t.exports=i.View.extend({template:e("../templates/charges.jst"),serializeData:function(){var e=this.model.transactions.pluck("amount"),t=o.reduce(e,function(e,t){return e+t},0).toFixed(2);return{average:r.formatMoney(t/e.length),total:r.formatMoney(t)}},onShow:function(){this.addSubView({view:new s,selector:"#table"})}})},{"../templates/charges.jst":20,"./charges/table":52,accounting:85,backbone:88,underscore:91}],51:[function(e,t,n){var i=e("backbone"),o=e("accounting"),r=e("moment");t.exports=i.View.extend({template:e("../../templates/charges/table-row.jst"),serializeData:function(){var e=this.model.toJSON();return e.date=r(e.invoice_date,"YYYYMMDD").format("MM/DD/YY"),e.service_id=e.service_id?e.service_id:"",e.description=e.service_type,e.amount=o.formatMoney(e.charge_amount),e}})},{"../../templates/charges/table-row.jst":21,accounting:85,backbone:88,moment:90}],52:[function(e,t,n){var i=e("backbone"),o=e("underscore"),r=e("moment"),s=e("../../collections/locations"),a=e("../../collections/invoice-dates"),l=e("../../collections/charges"),c=e("./table-row");t.exports=i.View.extend({template:e("../../templates/charges/table.jst"),events:{"click .collapse-link":"collapseIBox","click .close-link":"close","change #location":"loadCharges","change #from_date":"setFilter","change #to_date":"setFilter"},initialize:function(){this.locations=new s,this.listenTo(this.locations,"add",this.addLocationToSelect),this.dates=new a,this.listenTo(this.dates,"add",this.addDateToSelect),this.charges=new l,this.listenTo(this.charges,"add",this.addItem),this.listenTo(this.charges,"remove",this.removeItem),this.collection=new i.Collection,this.listenTo(this.collection,"add",this.addViewItem),this.listenTo(this.collection,"remove",this.removeSubViewForModel),this.filter=new i.Model,this.listenTo(this.filter,"change",this.filterCharges)},onShow:function(){this.locations.fetch(),this.dates.fetch()},loadCharges:function(e){this.charges.fetch({data:{group:e.target.value}})},setFilter:function(e){var t=e.target.value;t.length>0&&(t=r(t,"MM/DD/YY").format("YYYYMMDD")),this.filter.set(e.target.id,t)},isValid:function(e){var t=this.filter.get("from_date"),n=this.filter.get("to_date"),i=e.get("invoice_date");return t&&n?i>=t&&n>=i:t?i>=t:n?n>=i:!0},filterCharges:function(){var e=this.charges.filter(this.isValid,this);this.collection.set(e)},addItem:function(e){this.isValid(e)&&this.collection.add(e)},removeItem:function(e){this.collection.remove(e)},addViewItem:function(e){this.addSubView({view:new c({model:e}),selector:"tbody"})},addLocationToSelect:function(e){var t=o.template('<option value="<%=id%>"><%=label%></option>');this.$("#location").append(t(e.toJSON()))},addDateToSelect:function(e){var t=o.template("<option><%=date%></option>"),n={date:r(e.get("date"),"YYYYMMDD").format("MM/DD/YY")};this.$("#from_date").append(t(n)),this.$("#to_date").append(t(n))},collapseIBox:function(e){var t=this.$(".collapse-link"),n=t.closest("div.ibox"),i=t.find("i"),o=n.find("div.ibox-content");o.slideToggle(200),i.toggleClass("fa-chevron-up").toggleClass("fa-chevron-down"),n.toggleClass("").toggleClass("border-bottom"),setTimeout(function(){n.resize(),n.find("[id^=map").resize()},50)}})},{"../../collections/charges":2,"../../collections/invoice-dates":5,"../../collections/locations":6,"../../templates/charges/table.jst":22,"./table-row":51,backbone:88,moment:90,underscore:91}],53:[function(e,t,n){var i=e("backbone");t.exports=i.View.extend({events:{},initialize:function(){}})},{backbone:88}],54:[function(e,t,n){{var i=e("backbone"),o=e("backbone.broker");e("./file-upload")}t.exports=i.View.extend({initialize:function(){this.listenTo(o.channel("container"),"show",this.showView)},showView:function(e){this.setView(e)}})},{"./file-upload":74,backbone:88,"backbone.broker":86}],55:[function(e,t,n){var i=e("backbone"),o=e("../collections/service-monthly"),r=e("./dashboard/table"),s=e("./dashboard/flot-average"),a=e("./dashboard/flot-total"),l=e("./dashboard/flot-chart"),c=e("./dashboard/chart-js");t.exports=i.View.extend({template:e("../templates/dashboard.jst"),initialize:function(){this.collection=new o},onShow:function(){this.addSubView({view:new r({collection:this.collection}),selector:"#table"}),this.addSubView({view:new s({collection:this.collection}),selector:"#flot-average"}),this.addSubView({view:new a({collection:this.collection}),selector:"#flot-total"}),this.addSubView({view:new l({collection:this.collection}),selector:"#flot-chart"}),this.addSubView({view:new c({collection:this.collection}),selector:"#chart-js"}),this.collection.fetch()}})},{"../collections/service-monthly":8,"../templates/dashboard.jst":23,"./dashboard/chart-js":56,"./dashboard/flot-average":57,"./dashboard/flot-chart":58,"./dashboard/flot-total":59,"./dashboard/table":61,backbone:88}],56:[function(e,t,n){var i=e("backbone"),o=e("moment"),r=e("underscore"),s=e("accounting");t.exports=i.View.extend({template:e("../../templates/dashboard/chart-js.jst"),initialize:function(){this.listenTo(this.collection,"sync",this.showChart)},showChart:function(){this.render(),this.onShow()},serializeData:function(){var e=r.chain(this.collection.toJSON()).pluck("charge_type").unique().value();this.charges=r.map(e,function(e){var t={label:e,transactions:r.where(this.collection.toJSON(),{charge_type:e})};return t.total=r.reduce(t.transactions,function(e,t){return e+t.sum},0),t.total=s.formatMoney(t.total),t},this);var t=r.reduce(this.charges,function(e,t){return e+t.total},0);return{charges:r.map(this.charges,function(e){return e.avg=100*e.total/t,e})}},onShow:function(){if(this.charges&&0!==this.charges.length){var e=r.map(this.charges[0].transactions,function(e){return o(e.date,"YYYYMMDD").format("MMMM")}),t={labels:e,datasets:[{label:"Example dataset",fillColor:"rgba(220,220,220,0.5)",strokeColor:"rgba(220,220,220,1)",pointColor:"rgba(220,220,220,1)",pointStrokeColor:"#fff",pointHighlightFill:"#fff",pointHighlightStroke:"rgba(220,220,220,1)",data:r.pluck(this.charges[0].transactions,"sum")},{label:"Example dataset",fillColor:"rgba(26,179,148,0.5)",strokeColor:"rgba(26,179,148,0.7)",pointColor:"rgba(26,179,148,1)",pointStrokeColor:"#fff",pointHighlightFill:"#fff",pointHighlightStroke:"rgba(26,179,148,1)",data:r.pluck(this.charges[1].transactions,"sum")},{label:"Example dataset",fillColor:"rgba(126,79,148,0.5)",strokeColor:"rgba(126,79,148,0.7)",pointColor:"rgba(126,79,148,1)",pointStrokeColor:"#fff",pointHighlightFill:"#fff",pointHighlightStroke:"rgba(126,79,148,1)",data:r.pluck(this.charges[2].transactions,"sum")}]},n={scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,bezierCurve:!0,bezierCurveTension:.4,pointDot:!0,pointDotRadius:4,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,responsive:!0};if(this.$("#lineChart").length>0){var i=this.$("#lineChart")[0].getContext("2d");new Chart(i).Line(t,n)}}}})},{"../../templates/dashboard/chart-js.jst":24,accounting:85,backbone:88,moment:90,underscore:91}],57:[function(e,t,n){var i=e("backbone"),o=e("underscore"),r=e("accounting");t.exports=i.View.extend({template:e("../../templates/dashboard/flot-average.jst"),initialize:function(){this.listenTo(this.collection,"sync",this.render)},serializeData:function(){var e=this.collection.pluck("sum"),t=o.reduce(e,function(e,t){return e+t},0).toFixed(2);return{average:r.formatMoney(t/e.length)}}})},{"../../templates/dashboard/flot-average.jst":25,accounting:85,backbone:88,underscore:91}],58:[function(e,t,n){var i=e("backbone"),o=e("underscore");t.exports=i.View.extend({template:e("../../templates/dashboard/flot-chart.jst"),initialize:function(){this.listenTo(this.collection,"sync",this.showChart)},showChart:function(){var e=["rgba(220,220,220,0.5)","rgba(26,179,148,0.5)","rgba(126,79,148,0.5)","rgba(26,179,48,0.5)"],t=o.chain(this.collection.toJSON()).pluck("charge_type").unique().value(),n=o.map(t,function(t,n){var i=this.collection.where({charge_type:t}),r=o.reduce(i,function(e,t){return e+t.get("sum")},0).toFixed(2);return{value:r,color:e[n],label:t}},this),i={segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,percentageInnerCutout:0,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1};if(this.$("#flot-chart-content").length>0){var r=this.$("#flot-chart-content")[0].getContext("2d");new Chart(r).Pie(n,i)}}})},{"../../templates/dashboard/flot-chart.jst":26,backbone:88,underscore:91}],59:[function(e,t,n){var i=e("backbone"),o=e("underscore"),r=e("accounting");t.exports=i.View.extend({template:e("../../templates/dashboard/flot-total.jst"),initialize:function(){this.listenTo(this.collection,"sync",this.render)},serializeData:function(){var e=this.collection.pluck("sum"),t=o.reduce(e,function(e,t){return e+t},0).toFixed(2);return{total:r.formatMoney(t)}}})},{"../../templates/dashboard/flot-total.jst":27,accounting:85,backbone:88,underscore:91}],60:[function(e,t,n){var i=e("backbone"),o=e("moment"),r=e("accounting");t.exports=i.View.extend({template:e("../../templates/dashboard/table-row.jst"),serializeData:function(){var e=this.model.toJSON();return e.date=o(e.date,"YYYYMMDD").format("MM/DD/YY"),e.description=e.charge_type,e.amount=r.formatMoney(e.sum),e}})},{"../../templates/dashboard/table-row.jst":28,accounting:85,backbone:88,moment:90}],61:[function(e,t,n){var i=e("backbone"),o=e("./table-row");t.exports=i.View.extend({template:e("../../templates/dashboard/table.jst"),events:{"click .collapse-link":"collapseIBox","click .close-link":"close"},initialize:function(){this.listenTo(this.collection,"add",this.addItem),this.listenTo(this.collection,"remove",this.removeSubViewForModel),this.collection.forEach(this.addItem,this)},addItem:function(e){this.addSubView({view:new o({model:e}),selector:"tbody"})},collapseIBox:function(e){var t=this.$(".collapse-link"),n=t.closest("div.ibox"),i=t.find("i"),o=n.find("div.ibox-content");o.slideToggle(200),i.toggleClass("fa-chevron-up").toggleClass("fa-chevron-down"),n.toggleClass("").toggleClass("border-bottom"),setTimeout(function(){n.resize(),n.find("[id^=map").resize()},50)},onShow:function(){this.$("span.pie").peity("pie",{fill:["#1ab394","#d7d7d7","#ffffff"]}),this.$(".line").peity("line",{fill:"#1ab394",stroke:"#169c81"}),this.$(".bar").peity("bar",{fill:["#1ab394","#d7d7d7"]}),this.$(".bar_dashboard").peity("bar",{fill:["#1ab394","#d7d7d7"],width:100});var e=this.$(".updating-chart").peity("line",{fill:"#1ab394",stroke:"#169c81",width:64}),t=Math.round(10*Math.random()),n=e.text().split(",");n.shift(),n.push(t),e.text(n.join(",")).change()}})},{"../../templates/dashboard/table.jst":29,"./table-row":60,backbone:88}],62:[function(e,t,n){var i=e("backbone"),o=e("underscore"),r=e("accounting"),s=e("./entity/table");t.exports=i.View.extend({template:e("../templates/entity.jst"),serializeData:function(){var e=this.model.transactions.pluck("amount"),t=o.reduce(e,function(e,t){return e+t},0).toFixed(2);return{average:r.formatMoney(t/e.length),total:r.formatMoney(t)}},onShow:function(){this.addSubView({view:new s({model:this.model}),selector:"#table"})}})},{"../templates/entity.jst":30,"./entity/table":70,accounting:85,backbone:88,underscore:91}],63:[function(e,t,n){var i=e("backbone");t.exports=i.View.extend({template:e("../../templates/entity/account-row.jst"),events:{click:"rowSelect","change input":"entitySelected"},initialize:function(e){this.user=e.user,this.listenTo(this.model,"change",this.render)},serializeData:function(){return this.model.toJSON()},rowSelect:function(){this.$("input").prop("checked",!0),this.entitySelected()},entitySelected:function(){this.model.fetch().done(function(e){console.dir(e)}),this.user.set("entity",this.model.toJSON())}})},{"../../templates/entity/account-row.jst":31,backbone:88}],64:[function(e,t,n){var i=e("backbone"),o=(e("underscore"),e("../../collections/entities")),r=e("./account-row");t.exports=i.View.extend({template:e("../../templates/entity/account.jst"),attachToTemplate:!1,events:{"click #entity-search":"entitySearch"},initialize:function(){this.entityCollection=new o,this.listenTo(this.entityCollection,"add",this.addRow),this.listenTo(this.entityCollection,"remove",this.removeSubViewForModel)},addRow:function(e){this.addSubView({view:new r({model:e,user:this.model}),selector:"tbody"})},entitySearch:function(e){e.preventDefault(),this.model.set("zipCode",this.$("#zipCode").val()),this.entityCollection.fetch({data:{zipCode:this.model.get("zipCode")}}).done(function(){this.trigger("resize")}.bind(this))}})},{"../../collections/entities":3,"../../templates/entity/account.jst":32,"./account-row":63,backbone:88,underscore:91}],65:[function(e,t,n){var i=e("backbone"),o=e("underscore");t.exports=i.View.extend({template:e("../../templates/entity/entity-title.jst"),initialize:function(){this.listenTo(this.model,"change entity",this.render)},serializeData:function(){var e={identifier:"",name:"",contact:""};return o.extend(e,this.model.get("entity"))}})},{"../../templates/entity/entity-title.jst":33,backbone:88,underscore:91}],66:[function(e,t,n){var i=e("backbone");t.exports=i.View.extend({template:e("../../templates/entity/finish.jst"),attachToTemplate:!1})},{"../../templates/entity/finish.jst":34,backbone:88}],67:[function(e,t,n){var i=e("backbone"),o=(e("underscore"),e("../../models/entity")),r=(e("../../templates/entity/account.jst"),e("../../templates/entity/profile.jst"),e("../../templates/entity/warning.jst"),e("../../templates/entity/finish.jst"),e("./entity-title")),s=e("./account"),a=e("./profile"),l=e("./warning"),c=e("./finish");t.exports=i.View.extend({template:e("../../templates/entity/index.jst"),initialize:function(){var e=new o;this.model.set("entity",e.toJSON()),this.addSubView({view:new r({model:this.model}),selector:".ibox-content",location:"prepend"}),this.entityView=new s({model:this.model}),this.profileView=new a({model:this.model}),this.warningView=new l({model:this.model}),this.finishView=new c({model:this.model}),this.listenTo(this.entityView,"resize",this.resizeSteps)},serializeData:function(){return this.model.toJSON()},onRender:function(){var e=this.$("form");e.append("<h1>Search</h1>"),e.append(this.entityView.render().el),e.append("<h1>Entity</h1>"),e.append(this.profileView.render().el),e.append("<h1>Contact</h1>"),e.append(this.warningView.render().el),e.append("<h1>Finish</h1>"),e.append(this.finishView.render().el)},resizeSteps:function(){this.$(".wizard .content").animate({height:$(".body.current").outerHeight()},"slow")},onShow:function(){this.$("form").steps({bodyTag:"div",onStepChanging:function(e,t,n){if(t>n)return!0;if(3===n&&Number($("#age").val())<18)return!1;var i=$(this);return n>t&&($(".body:eq("+n+") label.error",i).remove(),$(".body:eq("+n+") .error",i).removeClass("error")),i.validate().settings.ignore=":disabled,:hidden",i.valid()},onStepChanged:function(e,t,n){2===t&&Number(this.$("#age").val())>=18&&this.$el.steps("next"),2===t&&3===n&&this.$el.steps("previous"),this.model.save(),this.resizeSteps()}.bind(this),onFinishing:function(e,t){var n=$(this);return n.validate().settings.ignore=":disabled",n.valid()},onFinished:function(e,t){var n=$(this);n.submit()}}).validate({errorPlacement:function(e,t){t.before(e)},rules:{confirm:{equalTo:"#password"}}}),this.entityView.setElement($("#form-p-0")),this.profileView.setElement($("#form-p-1"))}})},{"../../models/entity":16,"../../templates/entity/account.jst":32,"../../templates/entity/finish.jst":34,"../../templates/entity/index.jst":35,"../../templates/entity/profile.jst":36,"../../templates/entity/warning.jst":39,"./account":64,"./entity-title":65,"./finish":66,"./profile":68,"./warning":71,backbone:88,underscore:91}],68:[function(e,t,n){var i=e("backbone");t.exports=i.View.extend({template:e("../../templates/entity/profile.jst"),attachToTemplate:!1,initialize:function(){this.listenTo(this.model,"change entity",this.render)},serializeData:function(){return this.model.toJSON()}})},{"../../templates/entity/profile.jst":36,backbone:88}],69:[function(e,t,n){var i=e("backbone"),o=e("accounting"),r=e("moment");t.exports=i.View.extend({template:e("../../templates/entity/table-row.jst"),serializeData:function(){var e=this.model.toJSON();return e.date=r(e.invoice_date,"YYYYMMDD").format("MM/DD/YY"),e.service_id=e.service_id?e.service_id:"",e.description=e.service_type,e.amount=o.formatMoney(e.charge_amount),e}})},{"../../templates/entity/table-row.jst":37,accounting:85,backbone:88,moment:90}],70:[function(e,t,n){{var i=e("backbone"),o=e("underscore"),r=e("moment"),s=e("backbone.broker"),a=e("../../collections/locations"),l=e("../../collections/invoice-dates"),c=e("../../collections/charges"),u=(e("./index"),e("./table-row"));s.channel("container")}t.exports=i.View.extend({template:e("../../templates/entity/table.jst"),events:{"change #location":"loadCharges","change #from_date":"setFilter","change #to_date":"setFilter"},initialize:function(){this.locations=new a,this.listenTo(this.locations,"add",this.addLocationToSelect),this.dates=new l,this.listenTo(this.dates,"add",this.addDateToSelect),this.charges=new c,this.listenTo(this.charges,"add",this.addItem),this.listenTo(this.charges,"remove",this.removeItem),this.collection=new i.Collection,this.listenTo(this.collection,"add",this.addViewItem),this.listenTo(this.collection,"remove",this.removeSubViewForModel),this.filter=new i.Model,this.listenTo(this.filter,"change",this.filterCharges)},onShow:function(){this.locations.fetch(),this.dates.fetch()},loadCharges:function(e){this.charges.fetch({data:{group:e.target.value}})},setFilter:function(e){var t=e.target.value;t.length>0&&(t=r(t,"MM/DD/YY").format("YYYYMMDD")),this.filter.set(e.target.id,t)},isValid:function(e){var t=this.filter.get("from_date"),n=this.filter.get("to_date"),i=e.get("invoice_date");return t&&n?i>=t&&n>=i:t?i>=t:n?n>=i:!0},filterCharges:function(){var e=this.charges.filter(this.isValid,this);this.collection.set(e)},addItem:function(e){this.isValid(e)&&this.collection.add(e)},removeItem:function(e){this.collection.remove(e)},addViewItem:function(e){this.addSubView({view:new u({model:e}),selector:"tbody"})},addLocationToSelect:function(e){var t=o.template('<option value="<%=id%>"><%=label%></option>');this.$("#location").append(t(e.toJSON()))},addDateToSelect:function(e){var t=o.template("<option><%=date%></option>"),n={date:r(e.get("date"),"YYYYMMDD").format("MM/DD/YY")};this.$("#from_date").append(t(n)),this.$("#to_date").append(t(n))}})},{"../../collections/charges":2,"../../collections/invoice-dates":5,"../../collections/locations":6,"../../templates/entity/table.jst":38,"./index":67,"./table-row":69,backbone:88,"backbone.broker":86,moment:90,underscore:91}],71:[function(e,t,n){var i=e("backbone");t.exports=i.View.extend({template:e("../../templates/entity/warning.jst"),attachToTemplate:!1})},{"../../templates/entity/warning.jst":39,backbone:88}],72:[function(e,t,n){var i=e("backbone"),o=e("moment");t.exports=i.View.extend({template:e("../templates/file-item.jst"),events:{"click .file-remove":"clickRemove"},initialize:function(){this.listenTo(this.model,"change",this.render)},serializeData:function(){return{fileName:this.model.get("file_name"),fileNameEncoded:encodeURIComponent(this.model.get("file_name")),dateAdded:o(this.model.get("date_added")).format("MMM D, YYYY")}},clickRemove:function(e){e.preventDefault(),console.log("unimplemented remove")}})},{"../templates/file-item.jst":40,backbone:88,moment:90}],73:[function(e,t,n){var i=e("backbone"),o=e("../collections/files"),r=e("./file-item");t.exports=i.View.extend({template:e("../templates/file-manager.jst"),events:{"click #files-all":"clickAllFiles","click #files-invoices":"clickInvoices","click #files-forms":"clickForms"},initialize:function(){this.collection=new o,this.listenTo(this.collection,"add",this.addItem),this.listenTo(this.collection,"remove",this.removeSubViewForModel),this.collection.forEach(this.addItem,this)},onShow:function(){this.collection.fetch()},addItem:function(e){this.addSubView({view:new r({model:e}),selector:"#file-list"})},clickAllFiles:function(e){e.preventDefault(),this.$("#files-all").addClass("active"),this.$("#files-invoices").removeClass("active"),this.$("#files-forms").removeClass("active")},clickInvoices:function(e){e.preventDefault(),this.$("#files-all").removeClass("active"),this.$("#files-invoices").addClass("active"),this.$("#files-forms").removeClass("active")},clickForms:function(e){e.preventDefault(),this.$("#files-all").removeClass("active"),this.$("#files-invoices").removeClass("active"),this.$("#files-forms").addClass("active")}})},{"../collections/files":4,"../templates/file-manager.jst":41,"./file-item":72,backbone:88}],74:[function(e,t,n){var i=e("backbone"),o=e("dropzone"),r=e("../config/default"),s=e("../models/user");t.exports=i.View.extend({template:e("../templates/file-upload.jst"),events:{"click button":"sendFiles"},initialize:function(){o.autoDiscover=!1},onRender:function(){var e=this,t=sessionStorage.getItem("eratecycle");t&&(t=JSON.parse(t),this.$(".dropzone").dropzone({autoProcessQueue:!1,uploadMultiple:!1,parallelUploads:1,url:r.apiRoot+"/files",headers:{Authorization:"Basic "+btoa(t.email+":"+t.password)},init:function(){e.dropzone=this,this.on("processing",function(){this.options.autoProcessQueue=!0}),this.on("sending",function(){}),this.on("success",function(e,t){s.files.add(t,{merge:!0})}),this.on("complete",function(e){}),this.on("error",function(e,t){})}}))},sendFiles:function(e){e.preventDefault(),console.dir(this.dropzone),this.dropzone.processQueue()}})},{"../config/default":12,"../models/user":18,"../templates/file-upload.jst":42,backbone:88,dropzone:89}],75:[function(e,t,n){var i=e("backbone"),o=e("underscore"),r=e("accounting"),s=e("./filing/table");t.exports=i.View.extend({template:e("../templates/filing.jst"),serializeData:function(){var e=this.model.transactions.pluck("amount"),t=o.reduce(e,function(e,t){return e+t},0).toFixed(2);return{average:r.formatMoney(t/e.length),total:r.formatMoney(t)}},onShow:function(){this.addSubView({view:new s,selector:"#table"})}})},{"../templates/filing.jst":43,"./filing/table":78,accounting:85,backbone:88,underscore:91}],76:[function(e,t,n){var i=e("backbone"),o=(e("underscore"),e("accounting"));t.exports=i.View.extend({template:e("../../templates/filing/flot-total.jst"),initialize:function(){this.listenTo(this.collection,"sync",this.showChart)},showChart:function(){this.render(),this.onShow()},onShow:function(){var e={labels:this.collection.map(function(e){return o.formatMoney(e.toJSON().rate)}),datasets:[{label:"Count By Rate",fillColor:"rgba(26,179,148,0.5)",strokeColor:"rgba(26,179,148,0.8)",highlightFill:"rgba(26,179,148,0.75)",highlightStroke:"rgba(26,179,148,1)",data:this.collection.pluck("count")}]},t={scaleBeginAtZero:!0,scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,barShowStroke:!0,barStrokeWidth:2,barValueSpacing:5,barDatasetSpacing:1,responsive:!0};if(this.$("#barChart").length>0){var n=this.$("#barChart")[0].getContext("2d");new Chart(n).Bar(e,t)}}})},{"../../templates/filing/flot-total.jst":44,accounting:85,backbone:88,underscore:91}],77:[function(e,t,n){var i=e("backbone"),o=e("accounting");t.exports=i.View.extend({template:e("../../templates/filing/table-row.jst"),serializeData:function(){var e=this.model.toJSON();return e.amount=o.formatMoney(e.rate),e}})},{"../../templates/filing/table-row.jst":45,accounting:85,backbone:88}],78:[function(e,t,n){var i=e("backbone"),o=e("underscore"),r=e("moment"),s=e("../../collections/services"),a=e("../../collections/service-rates"),l=e("../../collections/rate-types"),c=e("../../collections/invoice-dates"),u=e("./flot-total"),d=e("./table-row"),h=function(e){var t=e.get("rate_type");return t&&t.length>0&&-1===t.indexOf("Discount")&&-1===t.indexOf("commitment")},f=i.Model.extend({isValidDateRange:function(e){return e.from_date<e.to_date},hasRequiredAttr:function(e){return void 0!==e.rate_type},validate:function(e,t){var n=this.hasRequiredAttr(e)&&this.isValidDateRange(e);return n?void 0:"failed validation"}});t.exports=i.View.extend({template:e("../../templates/filing/table.jst"),events:{"click .collapse-link":"collapseIBox","click .close-link":"close","change #service_code":"setFilter","change #from_date":"setFilter","change #rate_type":"setFilter","change #to_date":"setFilter"},initialize:function(){this.services=new s,this.listenTo(this.services,"add",this.addServiceToSelect),this.dates=new c,this.listenTo(this.dates,"add",this.addDateToSelect),this.charges=new a,this.listenTo(this.charges,"add",this.addItem),this.listenTo(this.charges,"remove",this.removeItem),this.rateTypes=new l,this.listenTo(this.rateTypes,"sync",this.updateRateTypeSelect),this.collection=new i.Collection,this.listenTo(this.collection,"add",this.addViewItem),this.listenTo(this.collection,"remove",this.removeSubViewForModel),this.filter=new f,this.listenTo(this.filter,"change",this.loadCharges),this.listenTo(this.filter,"change:service_code",this.loadRateTypes),this.addSubView({selector:"#total-chart",view:new u({collection:this.charges})})},onShow:function(){this.services.fetch(),this.dates.fetch()},loadCharges:function(e){this.filter.isValid()&&this.charges.fetch({data:e.toJSON()})},loadRateTypes:function(e){this.rateTypes.fetch({data:{service_code:e.get("service_code")}})},addServiceToSelect:function(e){var t=o.template('<option value="<%=id%>"><%=label%></option>');this.$("#service_code").append(t(e.toJSON()))},updateRateTypeSelect:function(){var e=o.template("<option><%=rate_type%></option>"),t=this.$("#rate_type");t.empty(),this.rateTypes.filter(h).forEach(function(n){t.append(e(n.toJSON()))})},setFilter:function(e){var t=e.target.value,n=e.target.id;n.indexOf("date")>-1&&t.length>0&&(t=r(t,"MM/DD/YY").format("YYYYMMDD")),this.filter.set(n,t)},addItem:function(e){h(e)&&this.collection.add(e)},removeItem:function(e){this.collection.remove(e)},addViewItem:function(e){this.addSubView({view:new d({model:e}),selector:"tbody"})},addDateToSelect:function(e){var t=o.template("<option><%=date%></option>"),n={date:r(e.get("date"),"YYYYMMDD").format("MM/DD/YY")};this.$("#from_date").append(t(n)),this.$("#to_date").append(t(n))},collapseIBox:function(e){var t=this.$(".collapse-link"),n=t.closest("div.ibox"),i=t.find("i"),o=n.find("div.ibox-content");o.slideToggle(200),i.toggleClass("fa-chevron-up").toggleClass("fa-chevron-down"),n.toggleClass("").toggleClass("border-bottom"),setTimeout(function(){n.resize(),n.find("[id^=map").resize()},50)}})},{"../../collections/invoice-dates":5,"../../collections/rate-types":7,"../../collections/service-rates":9,"../../collections/services":10,"../../templates/filing/table.jst":46,"./flot-total":76,"./table-row":77,backbone:88,moment:90,underscore:91}],79:[function(e,t,n){var i=e("backbone");t.exports=i.View.extend({template:e("../templates/footer.jst")})},{"../templates/footer.jst":47,backbone:88}],80:[function(e,t,n){var i=e("backbone");t.exports=i.View.extend({events:{},initialize:function(){}})},{backbone:88}],81:[function(e,t,n){var i=e("backbone"),o=e("./nav"),r=e("./top-nav"),s=e("./container"),a=e("./footer"),l=e("../models/user");t.exports=i.View.extend({initialize:function(){this.addSubView({view:new o({model:l}),selector:"#wrapper",location:"prepend"}),this.addSubView({view:new r,selector:"#page-wrapper"}),this.addSubView({view:new s,selector:"#page-wrapper"}),this.addSubView({view:new a,selector:"#page-wrapper"})}})},{"../models/user":18,"./container":54,"./footer":79,"./nav":82,"./top-nav":84,backbone:88}],82:[function(e,t,n){var i=e("backbone"),o=e("backbone.broker");
  
  t.exports=i.View.extend({template:e("../templates/nav.jst"),initialize:function(){$(window).bind("load resize",function(){$(this).width()<769?$("body").addClass("body-small"):$("body").removeClass("body-small")}),this.listenTo(o.channel("nav"),"select",this.highlightSelection),this.listenTo(o.channel("nav"),"toggle",this.toggleNav),this.listenTo(this.model,"change",this.render)},serializeData:function(){return this.model.toJSON()},onShow:function(){$("body").hasClass("fixed-sidebar")&&this.$(".sidebar-collapse").slimScroll({height:"100%",railOpacity:.9})},highlightSelection:function(e){this.$("li").removeClass("active"),this.$("#nav-"+e).addClass("active")},toggleNav:function(){$("body").toggleClass("mini-navbar");var e=function(){this.$("#side-menu").fadeIn(500)}.bind(this),t=function(){this.$("#side-menu").fadeOut(500)}.bind(this);!$("body").hasClass("mini-navbar")||$("body").hasClass("body-small")?(this.$("#side-menu").hide(),setTimeout(e,100)):$("body").hasClass("fixed-sidebar")?(this.$("#side-menu").hide(),setTimeout(t,300)):this.$("#side-menu").removeAttr("style")},onClose:function(){$(window).off("load resize")}})},{"../templates/nav.jst":48,backbone:88,"backbone.broker":86}],83:[function(e,t,n){var i=e("backbone");t.exports=i.View.extend({events:{},initialize:function(){}})},{backbone:88}],84:[function(e,t,n){var i=e("backbone"),o=e("backbone.broker");t.exports=i.View.extend({template:e("../templates/top-nav.jst"),events:{"click .navbar-minimalize":"toggleNavBar"},toggleNavBar:function(e){e.preventDefault(),o.channel("nav").publish("toggle")}})},{"../templates/top-nav.jst":49,backbone:88,"backbone.broker":86}],85:[function(e,t,n){!function(e,i){function o(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function r(e){return f?f(e):"[object Array]"===p.call(e)}function s(e){return e&&"[object Object]"===p.call(e)}function a(e,t){var n;e=e||{},t=t||{};for(n in t)t.hasOwnProperty(n)&&null==e[n]&&(e[n]=t[n]);return e}function l(e,t,n){var i,o,r=[];if(!e)return r;if(h&&e.map===h)return e.map(t,n);for(i=0,o=e.length;o>i;i++)r[i]=t.call(n,e[i],i,e);return r}function c(e,t){return e=Math.round(Math.abs(e)),isNaN(e)?t:e}function u(e){var t=d.settings.currency.format;return"function"==typeof e&&(e=e()),o(e)&&e.match("%v")?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:o(t)?d.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var d={};d.version="0.4.1",d.settings={currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}};var h=Array.prototype.map,f=Array.isArray,p=Object.prototype.toString,m=d.unformat=d.parse=function(e,t){if(r(e))return l(e,function(e){return m(e,t)});if(e=e||0,"number"==typeof e)return e;t=t||d.settings.number.decimal;var n=new RegExp("[^0-9-"+t+"]",["g"]),i=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(n,"").replace(t,"."));return isNaN(i)?0:i},v=d.toFixed=function(e,t){t=c(t,d.settings.number.precision);var n=Math.pow(10,t);return(Math.round(d.unformat(e)*n)/n).toFixed(t)},g=d.formatNumber=d.format=function(e,t,n,i){if(r(e))return l(e,function(e){return g(e,t,n,i)});e=m(e);var o=a(s(t)?t:{precision:t,thousand:n,decimal:i},d.settings.number),u=c(o.precision),h=0>e?"-":"",f=parseInt(v(Math.abs(e||0),u),10)+"",p=f.length>3?f.length%3:0;return h+(p?f.substr(0,p)+o.thousand:"")+f.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+o.thousand)+(u?o.decimal+v(Math.abs(e),u).split(".")[1]:"")},b=d.formatMoney=function(e,t,n,i,o,h){if(r(e))return l(e,function(e){return b(e,t,n,i,o,h)});e=m(e);var f=a(s(t)?t:{symbol:t,precision:n,thousand:i,decimal:o,format:h},d.settings.currency),p=u(f.format),v=e>0?p.pos:0>e?p.neg:p.zero;return v.replace("%s",f.symbol).replace("%v",g(Math.abs(e),c(f.precision),f.thousand,f.decimal))};d.formatColumn=function(e,t,n,i,h,f){if(!e)return[];var p=a(s(t)?t:{symbol:t,precision:n,thousand:i,decimal:h,format:f},d.settings.currency),v=u(p.format),b=v.pos.indexOf("%s")<v.pos.indexOf("%v")?!0:!1,y=0,_=l(e,function(e,t){if(r(e))return d.formatColumn(e,p);e=m(e);var n=e>0?v.pos:0>e?v.neg:v.zero,i=n.replace("%s",p.symbol).replace("%v",g(Math.abs(e),c(p.precision),p.thousand,p.decimal));return i.length>y&&(y=i.length),i});return l(_,function(e,t){return o(e)&&e.length<y?b?e.replace(p.symbol,p.symbol+new Array(y-e.length+1).join(" ")):new Array(y-e.length+1).join(" ")+e:e})},"undefined"!=typeof n?("undefined"!=typeof t&&t.exports&&(n=t.exports=d),n.accounting=d):"function"==typeof define&&define.amd?define([],function(){return d}):(d.noConflict=function(t){return function(){return e.accounting=t,d.noConflict=i,d}}(e.accounting),e.accounting=d)}(this)},{}],86:[function(e,t,n){!function(t){"function"==typeof define&&define.amd?define(["underscore","backbone","exports"],t):"object"==typeof n?t(e("underscore"),e("backbone"),n):Backbone.broker||(Backbone.broker={},t(_,Backbone,Backbone.broker))}(function(e,t,n){var i=!1,o=[],r=function(e){this.name=e,this.queue=[]};e.extend(r.prototype,t.Events,{publish:function(){return arguments.length>0&&this.queue.push(arguments),i&&(this.queue.forEach(function(e){this.trigger.apply(this,e)}.bind(this)),this.queue=[]),this},subscribe:function(){return this.on.apply(this,arguments),this},unsubscribe:function(){return this.off.apply(this,arguments),this}}),e.extend(n,{channel:function(e){if(e&&e.length>0){var t=o.filter(function(t){return t.name===e?t:void 0});if(t.length>0)return t[0];var n=new r(e);return o.push(n),n}},getChannels:function(){return o},start:function(){i=!0,o.forEach(function(e){e.publish()})},stop:function(){i=!1}})})},{backbone:88,underscore:91}],87:[function(e,t,n){!function(t){"function"==typeof define&&define.amd?define(["underscore","backbone"],t):"object"==typeof n?t(e("underscore"),e("backbone")):t(_,Backbone)}(function(e,t){e.extend(t.View.prototype,{render:function(){if(this.template&&e.isFunction(this.template)){var t=e.isFunction(this.serializeData)?this.serializeData():this,n=$(this.template(t));this.attachToTemplate&&1===n.length?(this.$el.replaceWith(n),this.setElement(n)):this.$el.html(n)}return this.restoreSubViews(),this.onRender&&e.isFunction(this.onRender)&&this.onRender.apply(this,arguments),this.trigger("rendered",this),this},setView:function(e,t){return this.removeSubViews(),t&&t.emptyDOM&&this.$el.empty(),this.addSubView({view:e,selector:this.$el}),e},getView:function(){return this._subViews&&this._subViews.length>0?this._subViews[0]:void 0},addSubView:function(e){if(!e||!e.view)throw new Error("Missing required view option");return this._subViews?this._subViews.push(e):this._subViews=[e],this.listenTo(e.view,"closed",this._removeSubView),this._showSubView(e)},restoreSubViews:function(){e.each(this._subViews,this._showSubView,this)},_showSubView:function(t){var n;return n=e.isObject(t.selector)?t.selector:e.isString(t.selector)?this.$(t.selector):this.$el,t.view.render(),"prepend"===t.location?n.prepend(t.view.el):"before"===t.location?n.before(t.view.el):"after"===t.location?n.after(t.view.el):n.append(t.view.el),t.view.onShow&&e.isFunction(t.view.onShow)&&t.view.onShow.apply(t.view,arguments),t.view.trigger("shown",this),t.view},getSubViewCount:function(){return this._subViews?this._subViews.length:0},removeSubViews:function(){e.each(this._subViews,function(e){this.stopListening(e.view),e.view.close()},this),this._subViews=[]},_removeSubView:function(t){var n=e.findWhere(this._subViews,{view:t}),i=this._subViews.indexOf(n);i>-1&&this._subViews.splice(i,1)},removeSubViewForModel:function(t){e.find(this._subViews,function(e,n){return e.view.model&&e.view.model===t?(e.view.close(),!0):void 0},this)},getAttr:function(e){return this.model?this.model.get(e):void 0},serializeForm:function(t){var n={},i=this.$(t).serializeArray();return e.each(i,function(e){n[e.name]?(n[e.name].push||(n[e.name]=[n[e.name]]),n[e.name].push(e.value||"")):n[e.name]=e.value||""}),n},close:function(){this.onClose&&e.isFunction(this.onClose)&&this.onClose.apply(this,arguments),this.removeSubViews(),this.remove(),this.trigger("closed",this),this.unbind()}})})},{backbone:88,underscore:91}],88:[function(e,t,n){!function(t,i){if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(e,n,o){t.Backbone=i(t,o,e,n)});else if("undefined"!=typeof n){var o=e("underscore");i(t,n,o)}else t.Backbone=i(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(this,function(e,t,n,i){{var o=e.Backbone,r=[],s=(r.push,r.slice);r.splice}t.VERSION="1.1.2",t.$=i,t.noConflict=function(){return e.Backbone=o,this},t.emulateHTTP=!1,t.emulateJSON=!1;var a=t.Events={on:function(e,t,n){if(!c(this,"on",e,[t,n])||!t)return this;this._events||(this._events={});var i=this._events[e]||(this._events[e]=[]);return i.push({callback:t,context:n,ctx:n||this}),this},once:function(e,t,i){if(!c(this,"once",e,[t,i])||!t)return this;var o=this,r=n.once(function(){o.off(e,r),t.apply(this,arguments)});return r._callback=t,this.on(e,r,i)},off:function(e,t,i){var o,r,s,a,l,u,d,h;if(!this._events||!c(this,"off",e,[t,i]))return this;if(!e&&!t&&!i)return this._events=void 0,this;for(a=e?[e]:n.keys(this._events),l=0,u=a.length;u>l;l++)if(e=a[l],s=this._events[e]){if(this._events[e]=o=[],t||i)for(d=0,h=s.length;h>d;d++)r=s[d],(t&&t!==r.callback&&t!==r.callback._callback||i&&i!==r.context)&&o.push(r);o.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;var t=s.call(arguments,1);if(!c(this,"trigger",e,t))return this;var n=this._events[e],i=this._events.all;return n&&u(n,t),i&&u(i,arguments),this},stopListening:function(e,t,i){var o=this._listeningTo;if(!o)return this;var r=!t&&!i;i||"object"!=typeof t||(i=this),e&&((o={})[e._listenId]=e);for(var s in o)e=o[s],e.off(t,i,this),(r||n.isEmpty(e._events))&&delete this._listeningTo[s];return this}},l=/\s+/,c=function(e,t,n,i){if(!n)return!0;if("object"==typeof n){for(var o in n)e[t].apply(e,[o,n[o]].concat(i));return!1}if(l.test(n)){for(var r=n.split(l),s=0,a=r.length;a>s;s++)e[t].apply(e,[r[s]].concat(i));return!1}return!0},u=function(e,t){var n,i=-1,o=e.length,r=t[0],s=t[1],a=t[2];switch(t.length){case 0:for(;++i<o;)(n=e[i]).callback.call(n.ctx);return;case 1:for(;++i<o;)(n=e[i]).callback.call(n.ctx,r);return;case 2:for(;++i<o;)(n=e[i]).callback.call(n.ctx,r,s);return;case 3:for(;++i<o;)(n=e[i]).callback.call(n.ctx,r,s,a);return;default:for(;++i<o;)(n=e[i]).callback.apply(n.ctx,t);return}},d={listenTo:"on",listenToOnce:"once"};n.each(d,function(e,t){a[t]=function(t,i,o){var r=this._listeningTo||(this._listeningTo={}),s=t._listenId||(t._listenId=n.uniqueId("l"));return r[s]=t,o||"object"!=typeof i||(o=this),t[e](i,o,this),this}}),a.bind=a.on,a.unbind=a.off,n.extend(t,a);var h=t.Model=function(e,t){var i=e||{};t||(t={}),this.cid=n.uniqueId("c"),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(i=this.parse(i,t)||{}),i=n.defaults({},i,n.result(this,"defaults")),this.set(i,t),this.changed={},this.initialize.apply(this,arguments)};n.extend(h.prototype,a,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(e){return n.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return n.escape(this.get(e))},has:function(e){return null!=this.get(e)},set:function(e,t,i){var o,r,s,a,l,c,u,d;if(null==e)return this;if("object"==typeof e?(r=e,i=t):(r={})[e]=t,i||(i={}),!this._validate(r,i))return!1;s=i.unset,l=i.silent,a=[],c=this._changing,this._changing=!0,c||(this._previousAttributes=n.clone(this.attributes),this.changed={}),d=this.attributes,u=this._previousAttributes,this.idAttribute in r&&(this.id=r[this.idAttribute]);for(o in r)t=r[o],n.isEqual(d[o],t)||a.push(o),n.isEqual(u[o],t)?delete this.changed[o]:this.changed[o]=t,s?delete d[o]:d[o]=t;if(!l){a.length&&(this._pending=i);for(var h=0,f=a.length;f>h;h++)this.trigger("change:"+a[h],this,d[a[h]],i)}if(c)return this;if(!l)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,n.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var i in this.attributes)t[i]=void 0;return this.set(t,n.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!n.isEmpty(this.changed):n.has(this.changed,e)},changedAttributes:function(e){if(!e)return this.hasChanged()?n.clone(this.changed):!1;var t,i=!1,o=this._changing?this._previousAttributes:this.attributes;for(var r in e)n.isEqual(o[r],t=e[r])||((i||(i={}))[r]=t);return i},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(e){e=e?n.clone(e):{},void 0===e.parse&&(e.parse=!0);var t=this,i=e.success;return e.success=function(n){return t.set(t.parse(n,e),e)?(i&&i(t,n,e),void t.trigger("sync",t,n,e)):!1},L(this,e),this.sync("read",this,e)},save:function(e,t,i){var o,r,s,a=this.attributes;if(null==e||"object"==typeof e?(o=e,i=t):(o={})[e]=t,i=n.extend({validate:!0},i),o&&!i.wait){if(!this.set(o,i))return!1}else if(!this._validate(o,i))return!1;o&&i.wait&&(this.attributes=n.extend({},a,o)),void 0===i.parse&&(i.parse=!0);var l=this,c=i.success;return i.success=function(e){l.attributes=a;var t=l.parse(e,i);return i.wait&&(t=n.extend(o||{},t)),n.isObject(t)&&!l.set(t,i)?!1:(c&&c(l,e,i),void l.trigger("sync",l,e,i))},L(this,i),r=this.isNew()?"create":i.patch?"patch":"update","patch"===r&&(i.attrs=o),s=this.sync(r,this,i),o&&i.wait&&(this.attributes=a),s},destroy:function(e){e=e?n.clone(e):{};var t=this,i=e.success,o=function(){t.trigger("destroy",t,t.collection,e)};if(e.success=function(n){(e.wait||t.isNew())&&o(),i&&i(t,n,e),t.isNew()||t.trigger("sync",t,n,e)},this.isNew())return e.success(),!1;L(this,e);var r=this.sync("delete",this,e);return e.wait||o(),r},url:function(){var e=n.result(this,"urlRoot")||n.result(this.collection,"url")||I();return this.isNew()?e:e.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},n.extend(e||{},{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=n.extend({},this.attributes,e);var i=this.validationError=this.validate(e,t)||null;return i?(this.trigger("invalid",this,i,n.extend(t,{validationError:i})),!1):!0}});var f=["keys","values","pairs","invert","pick","omit"];n.each(f,function(e){h.prototype[e]=function(){var t=s.call(arguments);return t.unshift(this.attributes),n[e].apply(n,t)}});var p=t.Collection=function(e,t){t||(t={}),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,n.extend({silent:!0},t))},m={add:!0,remove:!0,merge:!0},v={add:!0,remove:!1};n.extend(p.prototype,a,{model:h,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,n.extend({merge:!1},t,v))},remove:function(e,t){var i=!n.isArray(e);e=i?[e]:n.clone(e),t||(t={});var o,r,s,a;for(o=0,r=e.length;r>o;o++)a=e[o]=this.get(e[o]),a&&(delete this._byId[a.id],delete this._byId[a.cid],s=this.indexOf(a),this.models.splice(s,1),this.length--,t.silent||(t.index=s,a.trigger("remove",a,this,t)),this._removeReference(a,t));return i?e[0]:e},set:function(e,t){t=n.defaults({},t,m),t.parse&&(e=this.parse(e,t));var i=!n.isArray(e);e=i?e?[e]:[]:n.clone(e);var o,r,s,a,l,c,u,d=t.at,f=this.model,p=this.comparator&&null==d&&t.sort!==!1,v=n.isString(this.comparator)?this.comparator:null,g=[],b=[],y={},_=t.add,w=t.merge,x=t.remove,k=!p&&_&&x?[]:!1;for(o=0,r=e.length;r>o;o++){if(l=e[o]||{},s=l instanceof h?a=l:l[f.prototype.idAttribute||"id"],c=this.get(s))x&&(y[c.cid]=!0),w&&(l=l===a?a.attributes:l,t.parse&&(l=c.parse(l,t)),c.set(l,t),p&&!u&&c.hasChanged(v)&&(u=!0)),e[o]=c;else if(_){if(a=e[o]=this._prepareModel(l,t),!a)continue;g.push(a),this._addReference(a,t)}a=c||a,!k||!a.isNew()&&y[a.id]||k.push(a),y[a.id]=!0}if(x){for(o=0,r=this.length;r>o;++o)y[(a=this.models[o]).cid]||b.push(a);b.length&&this.remove(b,t)}if(g.length||k&&k.length)if(p&&(u=!0),this.length+=g.length,null!=d)for(o=0,r=g.length;r>o;o++)this.models.splice(d+o,0,g[o]);else{k&&(this.models.length=0);var S=k||g;for(o=0,r=S.length;r>o;o++)this.models.push(S[o])}if(u&&this.sort({silent:!0}),!t.silent){for(o=0,r=g.length;r>o;o++)(a=g[o]).trigger("add",a,this,t);(u||k&&k.length)&&this.trigger("sort",this,t)}return i?e[0]:e},reset:function(e,t){t||(t={});for(var i=0,o=this.models.length;o>i;i++)this._removeReference(this.models[i],t);return t.previousModels=this.models,this._reset(),e=this.add(e,n.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,n.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e),t},unshift:function(e,t){return this.add(e,n.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e),t},slice:function(){return s.apply(this.models,arguments)},get:function(e){return null==e?void 0:this._byId[e]||this._byId[e.id]||this._byId[e.cid]},at:function(e){return this.models[e]},where:function(e,t){return n.isEmpty(e)?t?void 0:[]:this[t?"find":"filter"](function(t){for(var n in e)if(e[n]!==t.get(n))return!1;return!0})},findWhere:function(e){return this.where(e,!0)},sort:function(e){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return e||(e={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return n.invoke(this.models,"get",e)},fetch:function(e){e=e?n.clone(e):{},void 0===e.parse&&(e.parse=!0);var t=e.success,i=this;return e.success=function(n){var o=e.reset?"reset":"set";i[o](n,e),t&&t(i,n,e),i.trigger("sync",i,n,e)},L(this,e),this.sync("read",this,e)},create:function(e,t){if(t=t?n.clone(t):{},!(e=this._prepareModel(e,t)))return!1;t.wait||this.add(e,t);var i=this,o=t.success;return t.success=function(e,n){t.wait&&i.add(e,t),o&&o(e,n,t)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(e instanceof h)return e;t=t?n.clone(t):{},t.collection=this;var i=new this.model(e,t);return i.validationError?(this.trigger("invalid",this,i.validationError,t),!1):i},_addReference:function(e,t){this._byId[e.cid]=e,null!=e.id&&(this._byId[e.id]=e),e.collection||(e.collection=this),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,i){("add"!==e&&"remove"!==e||n===this)&&("destroy"===e&&this.remove(t,i),t&&e==="change:"+t.idAttribute&&(delete this._byId[t.previous(t.idAttribute)],null!=t.id&&(this._byId[t.id]=t)),this.trigger.apply(this,arguments))}});var g=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"];n.each(g,function(e){p.prototype[e]=function(){var t=s.call(arguments);return t.unshift(this.models),n[e].apply(n,t)}});var b=["groupBy","countBy","sortBy","indexBy"];n.each(b,function(e){p.prototype[e]=function(t,i){var o=n.isFunction(t)?t:function(e){return e.get(t)};return n[e](this.models,o,i)}});var y=t.View=function(e){this.cid=n.uniqueId("view"),e||(e={}),n.extend(this,n.pick(e,w)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},_=/^(\S+)\s*(.*)$/,w=["model","collection","el","id","attributes","className","tagName","events"];n.extend(y.prototype,a,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(e,n){return this.$el&&this.undelegateEvents(),this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0],n!==!1&&this.delegateEvents(),this},delegateEvents:function(e){if(!e&&!(e=n.result(this,"events")))return this;this.undelegateEvents();for(var t in e){var i=e[t];if(n.isFunction(i)||(i=this[e[t]]),i){var o=t.match(_),r=o[1],s=o[2];i=n.bind(i,this),r+=".delegateEvents"+this.cid,""===s?this.$el.on(r,i):this.$el.on(r,s,i)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"),!1);else{var e=n.extend({},n.result(this,"attributes"));this.id&&(e.id=n.result(this,"id")),this.className&&(e["class"]=n.result(this,"className"));var i=t.$("<"+n.result(this,"tagName")+">").attr(e);this.setElement(i,!1)}}}),t.sync=function(e,i,o){var r=k[e];n.defaults(o||(o={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var s={type:r,dataType:"json"};if(o.url||(s.url=n.result(i,"url")||I()),null!=o.data||!i||"create"!==e&&"update"!==e&&"patch"!==e||(s.contentType="application/json",s.data=JSON.stringify(o.attrs||i.toJSON(o))),o.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}),o.emulateHTTP&&("PUT"===r||"DELETE"===r||"PATCH"===r)){s.type="POST",o.emulateJSON&&(s.data._method=r);var a=o.beforeSend;o.beforeSend=function(e){return e.setRequestHeader("X-HTTP-Method-Override",r),a?a.apply(this,arguments):void 0}}"GET"===s.type||o.emulateJSON||(s.processData=!1),"PATCH"===s.type&&x&&(s.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=o.xhr=t.ajax(n.extend(s,o));return i.trigger("request",i,l,o),l};var x=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),k={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var S=t.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},M=/\((.*?)\)/g,D=/(\(\?)?:\w+/g,C=/\*\w+/g,F=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(S.prototype,a,{initialize:function(){},route:function(e,i,o){n.isRegExp(e)||(e=this._routeToRegExp(e)),n.isFunction(i)&&(o=i,i=""),o||(o=this[i]);var r=this;return t.history.route(e,function(n){var s=r._extractParameters(e,n);r.execute(o,s),r.trigger.apply(r,["route:"+i].concat(s)),r.trigger("route",i,s),t.history.trigger("route",r,i,s)}),this},execute:function(e,t){e&&e.apply(this,t)},navigate:function(e,n){return t.history.navigate(e,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var e,t=n.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(F,"\\$&").replace(M,"(?:$1)?").replace(D,function(e,t){return t?e:"([^/?]+)"}).replace(C,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var i=e.exec(t).slice(1);return n.map(i,function(e,t){return t===i.length-1?e||null:e?decodeURIComponent(e):null})}});var T=t.History=function(){this.handlers=[],n.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},j=/^[#\/]|\s+$/g,E=/^\/+|\/+$/g,Y=/msie [\w.]+/,z=/\/$/,A=/#.*$/;T.started=!1,n.extend(T.prototype,a,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getFragment:function(e,t){if(null==e)if(this._hasPushState||!this._wantsHashChange||t){e=decodeURI(this.location.pathname+this.location.search);var n=this.root.replace(z,"");e.indexOf(n)||(e=e.slice(n.length))}else e=this.getHash();return e.replace(j,"")},start:function(e){if(T.started)throw new Error("Backbone.history has already been started");T.started=!0,this.options=n.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var i=this.getFragment(),o=document.documentMode,r=Y.exec(navigator.userAgent.toLowerCase())&&(!o||7>=o);if(this.root=("/"+this.root+"/").replace(E,"/"),r&&this._wantsHashChange){var s=t.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=s.hide().appendTo("body")[0].contentWindow,this.navigate(i)}this._hasPushState?t.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!r?t.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=i;var a=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&a.hash&&(this.fragment=this.getHash().replace(j,""),this.history.replaceState({},document.title,this.root+this.fragment))}return this.options.silent?void 0:this.loadUrl()},stop:function(){t.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),T.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();return t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe))),t===this.fragment?!1:(this.iframe&&this.navigate(t),void this.loadUrl())},loadUrl:function(e){return e=this.fragment=this.getFragment(e),n.any(this.handlers,function(t){return t.route.test(e)?(t.callback(e),!0):void 0})},navigate:function(e,t){if(!T.started)return!1;t&&t!==!0||(t={trigger:!!t});var n=this.root+(e=this.getFragment(e||""));if(e=e.replace(A,""),this.fragment!==e){if(this.fragment=e,""===e&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getFragment(this.getHash(this.iframe))&&(t.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,e,t.replace))}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var i=e.href.replace(/(javascript:|#).*$/,"");e.replace(i+"#"+t)}else e.hash="#"+t}}),t.history=new T;var O=function(e,t){var i,o=this;i=e&&n.has(e,"constructor")?e.constructor:function(){return o.apply(this,arguments)},n.extend(i,o,t);var r=function(){this.constructor=i};return r.prototype=o.prototype,i.prototype=new r,e&&n.extend(i.prototype,e),i.__super__=o.prototype,i};h.extend=p.extend=S.extend=y.extend=T.extend=O;var I=function(){throw new Error('A "url" property or function must be specified')},L=function(e,t){var n=t.error;t.error=function(i){n&&n(e,i,t),e.trigger("error",e,i,t)}};return t})},{underscore:91}],89:[function(e,t,n){(function(){var e,n,i,o,r,s,a,l,c=[].slice,u={}.hasOwnProperty,d=function(e,t){function n(){this.constructor=e}for(var i in t)u.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};a=function(){},n=function(){function e(){}return e.prototype.addEventListener=e.prototype.on,e.prototype.on=function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},e.prototype.emit=function(){var e,t,n,i,o,r;if(i=arguments[0],e=2<=arguments.length?c.call(arguments,1):[],this._callbacks=this._callbacks||{},n=this._callbacks[i])for(o=0,r=n.length;r>o;o++)t=n[o],t.apply(this,e);return this},e.prototype.removeListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.off=function(e,t){var n,i,o,r,s;if(!this._callbacks||0===arguments.length)return this._callbacks={},this;if(i=this._callbacks[e],!i)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(o=r=0,s=i.length;s>r;o=++r)if(n=i[o],n===t){i.splice(o,1);break}return this},e}(),e=function(e){function t(e,n){var o,r,s;if(this.element=e,this.version=t.version,this.defaultOptions.previewTemplate=this.defaultOptions.previewTemplate.replace(/\n*/g,""),this.clickableElements=[],this.listeners=[],this.files=[],"string"==typeof this.element&&(this.element=document.querySelector(this.element)),!this.element||null==this.element.nodeType)throw new Error("Invalid dropzone element.");if(this.element.dropzone)throw new Error("Dropzone already attached.");if(t.instances.push(this),this.element.dropzone=this,o=null!=(s=t.optionsForElement(this.element))?s:{},this.options=i({},this.defaultOptions,o,null!=n?n:{}),this.options.forceFallback||!t.isBrowserSupported())return this.options.fallback.call(this);if(null==this.options.url&&(this.options.url=this.element.getAttribute("action")),!this.options.url)throw new Error("No URL provided.");if(this.options.acceptedFiles&&this.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");this.options.acceptedMimeTypes&&(this.options.acceptedFiles=this.options.acceptedMimeTypes,delete this.options.acceptedMimeTypes),this.options.method=this.options.method.toUpperCase(),(r=this.getExistingFallback())&&r.parentNode&&r.parentNode.removeChild(r),this.options.previewsContainer!==!1&&(this.previewsContainer=this.options.previewsContainer?t.getElement(this.options.previewsContainer,"previewsContainer"):this.element),this.options.clickable&&(this.clickableElements=this.options.clickable===!0?[this.element]:t.getElements(this.options.clickable,"clickable")),this.init()}var i,o;return d(t,e),t.prototype.Emitter=n,t.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],t.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,parallelUploads:2,uploadMultiple:!1,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,filesizeBase:1e3,maxFiles:null,filesizeBase:1e3,params:{},clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,capture:null,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",accept:function(e,t){return t()},init:function(){return a},forceFallback:!1,fallback:function(){var e,n,i,o,r,s;for(this.element.className=""+this.element.className+" dz-browser-not-supported",s=this.element.getElementsByTagName("div"),o=0,r=s.length;r>o;o++)e=s[o],
  /(^| )dz-message($| )/.test(e.className)&&(n=e,e.className="dz-message");return n||(n=t.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(n)),i=n.getElementsByTagName("span")[0],i&&(i.textContent=this.options.dictFallbackMessage),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,n,i;return t={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},n=e.width/e.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=n*t.optHeight:null==t.optHeight&&(t.optHeight=1/n*t.optWidth),i=t.optWidth/t.optHeight,e.height<t.optHeight||e.width<t.optWidth?(t.trgHeight=t.srcHeight,t.trgWidth=t.srcWidth):n>i?(t.srcHeight=e.height,t.srcWidth=t.srcHeight*i):(t.srcWidth=e.width,t.srcHeight=t.srcWidth/i),t.srcX=(e.width-t.srcWidth)/2,t.srcY=(e.height-t.srcHeight)/2,t},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:a,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:a,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var n,i,o,r,s,a,l,c,u,d,h,f,p;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(e.previewElement=t.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement),d=e.previewElement.querySelectorAll("[data-dz-name]"),r=0,l=d.length;l>r;r++)n=d[r],n.textContent=e.name;for(h=e.previewElement.querySelectorAll("[data-dz-size]"),s=0,c=h.length;c>s;s++)n=h[s],n.innerHTML=this.filesize(e.size);for(this.options.addRemoveLinks&&(e._removeLink=t.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),e.previewElement.appendChild(e._removeLink)),i=function(n){return function(i){return i.preventDefault(),i.stopPropagation(),e.status===t.UPLOADING?t.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(e)}):n.options.dictRemoveFileConfirmation?t.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(e)}):n.removeFile(e)}}(this),f=e.previewElement.querySelectorAll("[data-dz-remove]"),p=[],a=0,u=f.length;u>a;a++)o=f[a],p.push(o.addEventListener("click",i));return p}},removedfile:function(e){var t;return e.previewElement&&null!=(t=e.previewElement)&&t.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){var n,i,o,r;if(e.previewElement){for(e.previewElement.classList.remove("dz-file-preview"),r=e.previewElement.querySelectorAll("[data-dz-thumbnail]"),i=0,o=r.length;o>i;i++)n=r[i],n.alt=e.name,n.src=t;return setTimeout(function(t){return function(){return e.previewElement.classList.add("dz-image-preview")}}(this),1)}},error:function(e,t){var n,i,o,r,s;if(e.previewElement){for(e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error),r=e.previewElement.querySelectorAll("[data-dz-errormessage]"),s=[],i=0,o=r.length;o>i;i++)n=r[i],s.push(n.textContent=t);return s}},errormultiple:a,processing:function(e){return e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink)?e._removeLink.textContent=this.options.dictCancelUpload:void 0},processingmultiple:a,uploadprogress:function(e,t,n){var i,o,r,s,a;if(e.previewElement){for(s=e.previewElement.querySelectorAll("[data-dz-uploadprogress]"),a=[],o=0,r=s.length;r>o;o++)i=s[o],a.push("PROGRESS"===i.nodeName?i.value=t:i.style.width=""+t+"%");return a}},totaluploadprogress:a,sending:a,sendingmultiple:a,success:function(e){return e.previewElement?e.previewElement.classList.add("dz-success"):void 0},successmultiple:a,canceled:function(e){return this.emit("error",e,"Upload canceled.")},canceledmultiple:a,complete:function(e){return e._removeLink&&(e._removeLink.textContent=this.options.dictRemoveFile),e.previewElement?e.previewElement.classList.add("dz-complete"):void 0},completemultiple:a,maxfilesexceeded:a,maxfilesreached:a,queuecomplete:a,previewTemplate:'<div class="dz-preview dz-file-preview">\n  <div class="dz-image"><img data-dz-thumbnail /></div>\n  <div class="dz-details">\n    <div class="dz-size"><span data-dz-size></span></div>\n    <div class="dz-filename"><span data-dz-name></span></div>\n  </div>\n  <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n  <div class="dz-error-message"><span data-dz-errormessage></span></div>\n  <div class="dz-success-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Check</title>\n      <defs></defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n      </g>\n    </svg>\n  </div>\n  <div class="dz-error-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Error</title>\n      <defs></defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n          <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n        </g>\n      </g>\n    </svg>\n  </div>\n</div>'},i=function(){var e,t,n,i,o,r,s;for(i=arguments[0],n=2<=arguments.length?c.call(arguments,1):[],r=0,s=n.length;s>r;r++){t=n[r];for(e in t)o=t[e],i[e]=o}return i},t.prototype.getAcceptedFiles=function(){var e,t,n,i,o;for(i=this.files,o=[],t=0,n=i.length;n>t;t++)e=i[t],e.accepted&&o.push(e);return o},t.prototype.getRejectedFiles=function(){var e,t,n,i,o;for(i=this.files,o=[],t=0,n=i.length;n>t;t++)e=i[t],e.accepted||o.push(e);return o},t.prototype.getFilesWithStatus=function(e){var t,n,i,o,r;for(o=this.files,r=[],n=0,i=o.length;i>n;n++)t=o[n],t.status===e&&r.push(t);return r},t.prototype.getQueuedFiles=function(){return this.getFilesWithStatus(t.QUEUED)},t.prototype.getUploadingFiles=function(){return this.getFilesWithStatus(t.UPLOADING)},t.prototype.getActiveFiles=function(){var e,n,i,o,r;for(o=this.files,r=[],n=0,i=o.length;i>n;n++)e=o[n],(e.status===t.UPLOADING||e.status===t.QUEUED)&&r.push(e);return r},t.prototype.init=function(){var e,n,i,o,r,s,a;for("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(t.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length&&(i=function(e){return function(){return e.hiddenFileInput&&document.body.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null==e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!=e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!=e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",document.body.appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",function(){var t,n,o,r;if(n=e.hiddenFileInput.files,n.length)for(o=0,r=n.length;r>o;o++)t=n[o],e.addFile(t);return i()})}}(this))(),this.URL=null!=(s=window.URL)?s:window.webkitURL,a=this.events,o=0,r=a.length;r>o;o++)e=a[o],this.on(e,this.options[e]);return this.on("uploadprogress",function(e){return function(){return e.updateTotalUploadProgress()}}(this)),this.on("removedfile",function(e){return function(){return e.updateTotalUploadProgress()}}(this)),this.on("canceled",function(e){return function(t){return e.emit("complete",t)}}(this)),this.on("complete",function(e){return function(t){return 0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length?setTimeout(function(){return e.emit("queuecomplete")},0):void 0}}(this)),n=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1},this.listeners=[{element:this.element,events:{dragstart:function(e){return function(t){return e.emit("dragstart",t)}}(this),dragenter:function(e){return function(t){return n(t),e.emit("dragenter",t)}}(this),dragover:function(e){return function(t){var i;try{i=t.dataTransfer.effectAllowed}catch(o){}return t.dataTransfer.dropEffect="move"===i||"linkMove"===i?"move":"copy",n(t),e.emit("dragover",t)}}(this),dragleave:function(e){return function(t){return e.emit("dragleave",t)}}(this),drop:function(e){return function(t){return n(t),e.drop(t)}}(this),dragend:function(e){return function(t){return e.emit("dragend",t)}}(this)}}],this.clickableElements.forEach(function(e){return function(n){return e.listeners.push({element:n,events:{click:function(i){return n!==e.element||i.target===e.element||t.elementInside(i.target,e.element.querySelector(".dz-message"))?e.hiddenFileInput.click():void 0}}})}}(this)),this.enable(),this.options.init.call(this)},t.prototype.destroy=function(){var e;return this.disable(),this.removeAllFiles(!0),(null!=(e=this.hiddenFileInput)?e.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,t.instances.splice(t.instances.indexOf(this),1)},t.prototype.updateTotalUploadProgress=function(){var e,t,n,i,o,r,s,a;if(i=0,n=0,e=this.getActiveFiles(),e.length){for(a=this.getActiveFiles(),r=0,s=a.length;s>r;r++)t=a[r],i+=t.upload.bytesSent,n+=t.upload.total;o=100*i/n}else o=100;return this.emit("totaluploadprogress",o,n,i)},t.prototype._getParamName=function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):""+this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")},t.prototype.getFallbackForm=function(){var e,n,i,o;return(e=this.getExistingFallback())?e:(i='<div class="dz-fallback">',this.options.dictFallbackText&&(i+="<p>"+this.options.dictFallbackText+"</p>"),i+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>',n=t.createElement(i),"FORM"!==this.element.tagName?(o=t.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>'),o.appendChild(n)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=o?o:n)},t.prototype.getExistingFallback=function(){var e,t,n,i,o,r;for(t=function(e){var t,n,i;for(n=0,i=e.length;i>n;n++)if(t=e[n],/(^| )fallback($| )/.test(t.className))return t},r=["div","form"],i=0,o=r.length;o>i;i++)if(n=r[i],e=t(this.element.getElementsByTagName(n)))return e},t.prototype.setupEventListeners=function(){var e,t,n,i,o,r,s;for(r=this.listeners,s=[],i=0,o=r.length;o>i;i++)e=r[i],s.push(function(){var i,o;i=e.events,o=[];for(t in i)n=i[t],o.push(e.element.addEventListener(t,n,!1));return o}());return s},t.prototype.removeEventListeners=function(){var e,t,n,i,o,r,s;for(r=this.listeners,s=[],i=0,o=r.length;o>i;i++)e=r[i],s.push(function(){var i,o;i=e.events,o=[];for(t in i)n=i[t],o.push(e.element.removeEventListener(t,n,!1));return o}());return s},t.prototype.disable=function(){var e,t,n,i,o;for(this.clickableElements.forEach(function(e){return e.classList.remove("dz-clickable")}),this.removeEventListeners(),i=this.files,o=[],t=0,n=i.length;n>t;t++)e=i[t],o.push(this.cancelUpload(e));return o},t.prototype.enable=function(){return this.clickableElements.forEach(function(e){return e.classList.add("dz-clickable")}),this.setupEventListeners()},t.prototype.filesize=function(e){var t,n,i,o,r,s,a,l;for(s=["TB","GB","MB","KB","b"],i=o=null,n=a=0,l=s.length;l>a;n=++a)if(r=s[n],t=Math.pow(this.options.filesizeBase,4-n)/10,e>=t){i=e/Math.pow(this.options.filesizeBase,4-n),o=r;break}return i=Math.round(10*i)/10,"<strong>"+i+"</strong> "+o},t.prototype._updateMaxFilesReachedClass=function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")},t.prototype.drop=function(e){var t,n;e.dataTransfer&&(this.emit("drop",e),t=e.dataTransfer.files,t.length&&(n=e.dataTransfer.items,n&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(t)))},t.prototype.paste=function(e){var t,n;if(null!=(null!=e&&null!=(n=e.clipboardData)?n.items:void 0))return this.emit("paste",e),t=e.clipboardData.items,t.length?this._addFilesFromItems(t):void 0},t.prototype.handleFiles=function(e){var t,n,i,o;for(o=[],n=0,i=e.length;i>n;n++)t=e[n],o.push(this.addFile(t));return o},t.prototype._addFilesFromItems=function(e){var t,n,i,o,r;for(r=[],i=0,o=e.length;o>i;i++)n=e[i],r.push(null!=n.webkitGetAsEntry&&(t=n.webkitGetAsEntry())?t.isFile?this.addFile(n.getAsFile()):t.isDirectory?this._addFilesFromDirectory(t,t.name):void 0:null!=n.getAsFile?null==n.kind||"file"===n.kind?this.addFile(n.getAsFile()):void 0:void 0);return r},t.prototype._addFilesFromDirectory=function(e,t){var n,i;return n=e.createReader(),i=function(e){return function(n){var i,o,r;for(o=0,r=n.length;r>o;o++)i=n[o],i.isFile?i.file(function(n){return e.options.ignoreHiddenFiles&&"."===n.name.substring(0,1)?void 0:(n.fullPath=""+t+"/"+n.name,e.addFile(n))}):i.isDirectory&&e._addFilesFromDirectory(i,""+t+"/"+i.name)}}(this),n.readEntries(i,function(e){return"undefined"!=typeof console&&null!==console&&"function"==typeof console.log?console.log(e):void 0})},t.prototype.accept=function(e,n){return e.size>1024*this.options.maxFilesize*1024?n(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):t.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(n(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,n):n(this.options.dictInvalidFileType)},t.prototype.addFile=function(e){return e.upload={progress:0,total:e.size,bytesSent:0},this.files.push(e),e.status=t.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,function(t){return function(n){return n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}}(this))},t.prototype.enqueueFiles=function(e){var t,n,i;for(n=0,i=e.length;i>n;n++)t=e[n],this.enqueueFile(t);return null},t.prototype.enqueueFile=function(e){if(e.status!==t.ADDED||e.accepted!==!0)throw new Error("This file can't be queued because it has already been processed or was rejected.");return e.status=t.QUEUED,this.options.autoProcessQueue?setTimeout(function(e){return function(){return e.processQueue()}}(this),0):void 0},t.prototype._thumbnailQueue=[],t.prototype._processingThumbnail=!1,t.prototype._enqueueThumbnail=function(e){return this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024?(this._thumbnailQueue.push(e),setTimeout(function(e){return function(){return e._processThumbnailQueue()}}(this),0)):void 0},t.prototype._processThumbnailQueue=function(){return this._processingThumbnail||0===this._thumbnailQueue.length?void 0:(this._processingThumbnail=!0,this.createThumbnail(this._thumbnailQueue.shift(),function(e){return function(){return e._processingThumbnail=!1,e._processThumbnailQueue()}}(this)))},t.prototype.removeFile=function(e){return e.status===t.UPLOADING&&this.cancelUpload(e),this.files=l(this.files,e),this.emit("removedfile",e),0===this.files.length?this.emit("reset"):void 0},t.prototype.removeAllFiles=function(e){var n,i,o,r;for(null==e&&(e=!1),r=this.files.slice(),i=0,o=r.length;o>i;i++)n=r[i],(n.status!==t.UPLOADING||e)&&this.removeFile(n);return null},t.prototype.createThumbnail=function(e,t){var n;return n=new FileReader,n.onload=function(i){return function(){return"image/svg+xml"===e.type?(i.emit("thumbnail",e,n.result),void(null!=t&&t())):i.createThumbnailFromUrl(e,n.result,t)}}(this),n.readAsDataURL(e)},t.prototype.createThumbnailFromUrl=function(e,t,n){var i;return i=document.createElement("img"),i.onload=function(t){return function(){var o,r,a,l,c,u,d,h;return e.width=i.width,e.height=i.height,a=t.options.resize.call(t,e),null==a.trgWidth&&(a.trgWidth=a.optWidth),null==a.trgHeight&&(a.trgHeight=a.optHeight),o=document.createElement("canvas"),r=o.getContext("2d"),o.width=a.trgWidth,o.height=a.trgHeight,s(r,i,null!=(c=a.srcX)?c:0,null!=(u=a.srcY)?u:0,a.srcWidth,a.srcHeight,null!=(d=a.trgX)?d:0,null!=(h=a.trgY)?h:0,a.trgWidth,a.trgHeight),l=o.toDataURL("image/png"),t.emit("thumbnail",e,l),null!=n?n():void 0}}(this),null!=n&&(i.onerror=n),i.src=t},t.prototype.processQueue=function(){var e,t,n,i;if(t=this.options.parallelUploads,n=this.getUploadingFiles().length,e=n,!(n>=t)&&(i=this.getQueuedFiles(),i.length>0)){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,t-n));for(;t>e;){if(!i.length)return;this.processFile(i.shift()),e++}}},t.prototype.processFile=function(e){return this.processFiles([e])},t.prototype.processFiles=function(e){var n,i,o;for(i=0,o=e.length;o>i;i++)n=e[i],n.processing=!0,n.status=t.UPLOADING,this.emit("processing",n);return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)},t.prototype._getFilesWithXhr=function(e){var t,n;return n=function(){var n,i,o,r;for(o=this.files,r=[],n=0,i=o.length;i>n;n++)t=o[n],t.xhr===e&&r.push(t);return r}.call(this)},t.prototype.cancelUpload=function(e){var n,i,o,r,s,a,l;if(e.status===t.UPLOADING){for(i=this._getFilesWithXhr(e.xhr),o=0,s=i.length;s>o;o++)n=i[o],n.status=t.CANCELED;for(e.xhr.abort(),r=0,a=i.length;a>r;r++)n=i[r],this.emit("canceled",n);this.options.uploadMultiple&&this.emit("canceledmultiple",i)}else((l=e.status)===t.ADDED||l===t.QUEUED)&&(e.status=t.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));return this.options.autoProcessQueue?this.processQueue():void 0},o=function(){var e,t;return t=arguments[0],e=2<=arguments.length?c.call(arguments,1):[],"function"==typeof t?t.apply(this,e):t},t.prototype.uploadFile=function(e){return this.uploadFiles([e])},t.prototype.uploadFiles=function(e){var n,r,s,a,l,c,u,d,h,f,p,m,v,g,b,y,_,w,x,k,S,M,D,C,F,T,j,E,Y,z,A,O,I,L;for(x=new XMLHttpRequest,k=0,C=e.length;C>k;k++)n=e[k],n.xhr=x;m=o(this.options.method,e),_=o(this.options.url,e),x.open(m,_,!0),x.withCredentials=!!this.options.withCredentials,b=null,s=function(t){return function(){var i,o,r;for(r=[],i=0,o=e.length;o>i;i++)n=e[i],r.push(t._errorProcessing(e,b||t.options.dictResponseError.replace("{{statusCode}}",x.status),x));return r}}(this),y=function(t){return function(i){var o,r,s,a,l,c,u,d,h;if(null!=i)for(r=100*i.loaded/i.total,s=0,c=e.length;c>s;s++)n=e[s],n.upload={progress:r,total:i.total,bytesSent:i.loaded};else{for(o=!0,r=100,a=0,u=e.length;u>a;a++)n=e[a],(100!==n.upload.progress||n.upload.bytesSent!==n.upload.total)&&(o=!1),n.upload.progress=r,n.upload.bytesSent=n.upload.total;if(o)return}for(h=[],l=0,d=e.length;d>l;l++)n=e[l],h.push(t.emit("uploadprogress",n,r,n.upload.bytesSent));return h}}(this),x.onload=function(n){return function(i){var o;if(e[0].status!==t.CANCELED&&4===x.readyState){if(b=x.responseText,x.getResponseHeader("content-type")&&~x.getResponseHeader("content-type").indexOf("application/json"))try{b=JSON.parse(b)}catch(r){i=r,b="Invalid JSON response from server."}return y(),200<=(o=x.status)&&300>o?n._finished(e,b,i):s()}}}(this),x.onerror=function(n){return function(){return e[0].status!==t.CANCELED?s():void 0}}(this),g=null!=(Y=x.upload)?Y:x,g.onprogress=y,c={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"},this.options.headers&&i(c,this.options.headers);for(a in c)l=c[a],x.setRequestHeader(a,l);if(r=new FormData,this.options.params){z=this.options.params;for(p in z)w=z[p],r.append(p,w)}for(S=0,F=e.length;F>S;S++)n=e[S],this.emit("sending",n,x,r);if(this.options.uploadMultiple&&this.emit("sendingmultiple",e,x,r),"FORM"===this.element.tagName)for(A=this.element.querySelectorAll("input, textarea, select, button"),M=0,T=A.length;T>M;M++)if(d=A[M],h=d.getAttribute("name"),f=d.getAttribute("type"),"SELECT"===d.tagName&&d.hasAttribute("multiple"))for(O=d.options,D=0,j=O.length;j>D;D++)v=O[D],v.selected&&r.append(h,v.value);else(!f||"checkbox"!==(I=f.toLowerCase())&&"radio"!==I||d.checked)&&r.append(h,d.value);for(u=E=0,L=e.length-1;L>=0?L>=E:E>=L;u=L>=0?++E:--E)r.append(this._getParamName(u),e[u],e[u].name);return x.send(r)},t.prototype._finished=function(e,n,i){var o,r,s;for(r=0,s=e.length;s>r;r++)o=e[r],o.status=t.SUCCESS,this.emit("success",o,n,i),this.emit("complete",o);return this.options.uploadMultiple&&(this.emit("successmultiple",e,n,i),this.emit("completemultiple",e)),this.options.autoProcessQueue?this.processQueue():void 0},t.prototype._errorProcessing=function(e,n,i){var o,r,s;for(r=0,s=e.length;s>r;r++)o=e[r],o.status=t.ERROR,this.emit("error",o,n,i),this.emit("complete",o);return this.options.uploadMultiple&&(this.emit("errormultiple",e,n,i),this.emit("completemultiple",e)),this.options.autoProcessQueue?this.processQueue():void 0},t}(n),e.version="4.0.1",e.options={},e.optionsForElement=function(t){return t.getAttribute("id")?e.options[i(t.getAttribute("id"))]:void 0},e.instances=[],e.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},e.autoDiscover=!0,e.discover=function(){var t,n,i,o,r,s;for(document.querySelectorAll?i=document.querySelectorAll(".dropzone"):(i=[],t=function(e){var t,n,o,r;for(r=[],n=0,o=e.length;o>n;n++)t=e[n],r.push(/(^| )dropzone($| )/.test(t.className)?i.push(t):void 0);return r},t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))),s=[],o=0,r=i.length;r>o;o++)n=i[o],s.push(e.optionsForElement(n)!==!1?new e(n):void 0);return s},e.blacklistedBrowsers=[/opera.*Macintosh.*version\/12/i],e.isBrowserSupported=function(){var t,n,i,o,r;if(t=!0,window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(r=e.blacklistedBrowsers,i=0,o=r.length;o>i;i++)n=r[i],n.test(navigator.userAgent)&&(t=!1);else t=!1;else t=!1;return t},l=function(e,t){var n,i,o,r;for(r=[],i=0,o=e.length;o>i;i++)n=e[i],n!==t&&r.push(n);return r},i=function(e){return e.replace(/[\-_](\w)/g,function(e){return e.charAt(1).toUpperCase()})},e.createElement=function(e){var t;return t=document.createElement("div"),t.innerHTML=e,t.childNodes[0]},e.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},e.getElement=function(e,t){var n;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},e.getElements=function(e,t){var n,i,o,r,s,a,l,c;if(e instanceof Array){o=[];try{for(r=0,a=e.length;a>r;r++)i=e[r],o.push(this.getElement(i,t))}catch(u){n=u,o=null}}else if("string"==typeof e)for(o=[],c=document.querySelectorAll(e),s=0,l=c.length;l>s;s++)i=c[s],o.push(i);else null!=e.nodeType&&(o=[e]);if(null==o||!o.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return o},e.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},e.isValidFile=function(e,t){var n,i,o,r,s;if(!t)return!0;for(t=t.split(","),i=e.type,n=i.replace(/\/.*$/,""),r=0,s=t.length;s>r;r++)if(o=t[r],o=o.trim(),"."===o.charAt(0)){if(-1!==e.name.toLowerCase().indexOf(o.toLowerCase(),e.name.length-o.length))return!0}else if(/\/\*$/.test(o)){if(n===o.replace(/\/.*$/,""))return!0}else if(i===o)return!0;return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(t){return this.each(function(){return new e(this,t)})}),"undefined"!=typeof t&&null!==t?t.exports=e:window.Dropzone=e,e.ADDED="added",e.QUEUED="queued",e.ACCEPTED=e.QUEUED,e.UPLOADING="uploading",e.PROCESSING=e.UPLOADING,e.CANCELED="canceled",e.ERROR="error",e.SUCCESS="success",r=function(e){var t,n,i,o,r,s,a,l,c,u;for(a=e.naturalWidth,s=e.naturalHeight,n=document.createElement("canvas"),n.width=1,n.height=s,i=n.getContext("2d"),i.drawImage(e,0,0),o=i.getImageData(0,0,1,s).data,u=0,r=s,l=s;l>u;)t=o[4*(l-1)+3],0===t?r=l:u=l,l=r+u>>1;return c=l/s,0===c?1:c},s=function(e,t,n,i,o,s,a,l,c,u){var d;return d=r(t),e.drawImage(t,n,i,o,s,a,l,c,u/d)},o=function(e,t){var n,i,o,r,s,a,l,c,u;if(o=!1,u=!0,i=e.document,c=i.documentElement,n=i.addEventListener?"addEventListener":"attachEvent",l=i.addEventListener?"removeEventListener":"detachEvent",a=i.addEventListener?"":"on",r=function(n){return"readystatechange"!==n.type||"complete"===i.readyState?(("load"===n.type?e:i)[l](a+n.type,r,!1),!o&&(o=!0)?t.call(e,n.type||n):void 0):void 0},s=function(){var e;try{c.doScroll("left")}catch(t){return e=t,void setTimeout(s,50)}return r("poll")},"complete"!==i.readyState){if(i.createEventObject&&c.doScroll){try{u=!e.frameElement}catch(d){}u&&s()}return i[n](a+"DOMContentLoaded",r,!1),i[n](a+"readystatechange",r,!1),e[n](a+"load",r,!1)}},e._autoDiscoverFunction=function(){return e.autoDiscover?e.discover():void 0},o(window,e._autoDiscoverFunction)}).call(this)},{}],90:[function(e,t,n){!function(e,i){"object"==typeof n&&"undefined"!=typeof t?t.exports=i():"function"==typeof define&&define.amd?define(i):e.moment=i()}(this,function(){"use strict";function n(){return Yn.apply(null,arguments)}function i(e){Yn=e}function o(e){return"[object Array]"===Object.prototype.toString.call(e)}function r(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function s(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,n,i){return Ce(e,t,n,i,!0).utc()}function u(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function d(e){return null==e._pf&&(e._pf=u()),e._pf}function h(e){if(null==e._isValid){var t=d(e);e._isValid=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated,e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function f(e){var t=c(0/0);return null!=e?l(d(t),e):d(t).userInvalidated=!0,t}function p(e,t){var n,i,o;if("undefined"!=typeof t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),"undefined"!=typeof t._i&&(e._i=t._i),"undefined"!=typeof t._f&&(e._f=t._f),"undefined"!=typeof t._l&&(e._l=t._l),"undefined"!=typeof t._strict&&(e._strict=t._strict),"undefined"!=typeof t._tzm&&(e._tzm=t._tzm),"undefined"!=typeof t._isUTC&&(e._isUTC=t._isUTC),"undefined"!=typeof t._offset&&(e._offset=t._offset),"undefined"!=typeof t._pf&&(e._pf=d(t)),"undefined"!=typeof t._locale&&(e._locale=t._locale),An.length>0)for(n in An)i=An[n],o=t[i],"undefined"!=typeof o&&(e[i]=o);return e}function m(e){p(this,e),this._d=new Date(+e._d),On===!1&&(On=!0,n.updateOffset(this),On=!1)}function v(e){return e instanceof m||null!=e&&null!=e._isAMomentObject}function g(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=t>=0?Math.floor(t):Math.ceil(t)),n}function b(e,t,n){var i,o=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),s=0;for(i=0;o>i;i++)(n&&e[i]!==t[i]||!n&&g(e[i])!==g(t[i]))&&s++;return s+r}function y(){}function _(e){return e?e.toLowerCase().replace("_","-"):e}function w(e){for(var t,n,i,o,r=0;r<e.length;){for(o=_(e[r]).split("-"),t=o.length,n=_(e[r+1]),n=n?n.split("-"):null;t>0;){if(i=x(o.slice(0,t).join("-")))return i;if(n&&n.length>=t&&b(o,n,!0)>=t-1)break;t--}r++}return null}function x(n){var i=null;if(!In[n]&&"undefined"!=typeof t&&t&&t.exports)try{i=zn._abbr,e("./locale/"+n),k(i)}catch(o){}return In[n]}function k(e,t){var n;return e&&(n="undefined"==typeof t?M(e):S(e,t),n&&(zn=n)),zn._abbr}function S(e,t){return null!==t?(t.abbr=e,In[e]||(In[e]=new y),In[e].set(t),k(e),In[e]):(delete In[e],null)}function M(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return zn;if(!o(e)){if(t=x(e))return t;e=[e]}return w(e)}function D(e,t){var n=e.toLowerCase();Ln[n]=Ln[n+"s"]=Ln[t]=e}function C(e){return"string"==typeof e?Ln[e]||Ln[e.toLowerCase()]:void 0}function F(e){var t,n,i={};for(n in e)a(e,n)&&(t=C(n),t&&(i[t]=e[n]));return i}function T(e,t){return function(i){return null!=i?(E(this,e,i),n.updateOffset(this,t),this):j(this,e)}}function j(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}function E(e,t,n){return e._d["set"+(e._isUTC?"UTC":"")+t](n)}function Y(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if(e=C(e),"function"==typeof this[e])return this[e](t);return this}function z(e,t,n){
  for(var i=""+Math.abs(e),o=e>=0;i.length<t;)i="0"+i;return(o?n?"+":"":"-")+i}function A(e,t,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),e&&(qn[e]=o),t&&(qn[t[0]]=function(){return z(o.apply(this,arguments),t[1],t[2])}),n&&(qn[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function O(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function I(e){var t,n,i=e.match(Nn);for(t=0,n=i.length;n>t;t++)i[t]=qn[i[t]]?qn[i[t]]:O(i[t]);return function(o){var r="";for(t=0;n>t;t++)r+=i[t]instanceof Function?i[t].call(o,e):i[t];return r}}function L(e,t){return e.isValid()?(t=N(t,e.localeData()),Un[t]||(Un[t]=I(t)),Un[t](e)):e.localeData().invalidDate()}function N(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(Vn.lastIndex=0;i>=0&&Vn.test(e);)e=e.replace(Vn,n),Vn.lastIndex=0,i-=1;return e}function V(e,t,n){ni[e]="function"==typeof t?t:function(e){return e&&n?n:t}}function U(e,t){return a(ni,e)?ni[e](t._strict,t._locale):new RegExp(q(e))}function q(e){return e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,o){return t||n||i||o}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function $(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(i=function(e,n){n[t]=g(e)}),n=0;n<e.length;n++)ii[e[n]]=i}function P(e,t){$(e,function(e,n,i,o){i._w=i._w||{},t(e,i._w,i,o)})}function R(e,t,n){null!=t&&a(ii,e)&&ii[e](t,n._a,n,e)}function H(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function W(e){return this._months[e.month()]}function G(e){return this._monthsShort[e.month()]}function B(e,t,n){var i,o,r;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;12>i;i++){if(o=c([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function J(e,t){var n;return"string"==typeof t&&(t=e.localeData().monthsParse(t),"number"!=typeof t)?e:(n=Math.min(e.date(),H(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e)}function Q(e){return null!=e?(J(this,e),n.updateOffset(this,!0),this):j(this,"Month")}function Z(){return H(this.year(),this.month())}function X(e){var t,n=e._a;return n&&-2===d(e).overflow&&(t=n[ri]<0||n[ri]>11?ri:n[si]<1||n[si]>H(n[oi],n[ri])?si:n[ai]<0||n[ai]>24||24===n[ai]&&(0!==n[li]||0!==n[ci]||0!==n[ui])?ai:n[li]<0||n[li]>59?li:n[ci]<0||n[ci]>59?ci:n[ui]<0||n[ui]>999?ui:-1,d(e)._overflowDayOfYear&&(oi>t||t>si)&&(t=si),d(e).overflow=t),e}function K(e){n.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function ee(e,t){var n=!0,i=e+"\n"+(new Error).stack;return l(function(){return n&&(K(i),n=!1),t.apply(this,arguments)},t)}function te(e,t){fi[e]||(K(t),fi[e]=!0)}function ne(e){var t,n,i=e._i,o=pi.exec(i);if(o){for(d(e).iso=!0,t=0,n=mi.length;n>t;t++)if(mi[t][1].exec(i)){e._f=mi[t][0]+(o[6]||" ");break}for(t=0,n=vi.length;n>t;t++)if(vi[t][1].exec(i)){e._f+=vi[t][0];break}i.match(Kn)&&(e._f+="Z"),we(e)}else e._isValid=!1}function ie(e){var t=gi.exec(e._i);return null!==t?void(e._d=new Date(+t[1])):(ne(e),void(e._isValid===!1&&(delete e._isValid,n.createFromInputFallback(e))))}function oe(e,t,n,i,o,r,s){var a=new Date(e,t,n,i,o,r,s);return 1970>e&&a.setFullYear(e),a}function re(e){var t=new Date(Date.UTC.apply(null,arguments));return 1970>e&&t.setUTCFullYear(e),t}function se(e){return ae(e)?366:365}function ae(e){return e%4===0&&e%100!==0||e%400===0}function le(){return ae(this.year())}function ce(e,t,n){var i,o=n-t,r=n-e.day();return r>o&&(r-=7),o-7>r&&(r+=7),i=Fe(e).add(r,"d"),{week:Math.ceil(i.dayOfYear()/7),year:i.year()}}function ue(e){return ce(e,this._week.dow,this._week.doy).week}function de(){return this._week.dow}function he(){return this._week.doy}function fe(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function pe(e){var t=ce(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function me(e,t,n,i,o){var r,s,a=re(e,0,1).getUTCDay();return a=0===a?7:a,n=null!=n?n:o,r=o-a+(a>i?7:0)-(o>a?7:0),s=7*(t-1)+(n-o)+r+1,{year:s>0?e:e-1,dayOfYear:s>0?s:se(e-1)+s}}function ve(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function ge(e,t,n){return null!=e?e:null!=t?t:n}function be(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ye(e){var t,n,i,o,r=[];if(!e._d){for(i=be(e),e._w&&null==e._a[si]&&null==e._a[ri]&&_e(e),e._dayOfYear&&(o=ge(e._a[oi],i[oi]),e._dayOfYear>se(o)&&(d(e)._overflowDayOfYear=!0),n=re(o,0,e._dayOfYear),e._a[ri]=n.getUTCMonth(),e._a[si]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=r[t]=i[t];for(;7>t;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ai]&&0===e._a[li]&&0===e._a[ci]&&0===e._a[ui]&&(e._nextDay=!0,e._a[ai]=0),e._d=(e._useUTC?re:oe).apply(null,r),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ai]=24)}}function _e(e){var t,n,i,o,r,s,a;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(r=1,s=4,n=ge(t.GG,e._a[oi],ce(Fe(),1,4).year),i=ge(t.W,1),o=ge(t.E,1)):(r=e._locale._week.dow,s=e._locale._week.doy,n=ge(t.gg,e._a[oi],ce(Fe(),r,s).year),i=ge(t.w,1),null!=t.d?(o=t.d,r>o&&++i):o=null!=t.e?t.e+r:r),a=me(n,i,o,s,r),e._a[oi]=a.year,e._dayOfYear=a.dayOfYear}function we(e){if(e._f===n.ISO_8601)return void ne(e);e._a=[],d(e).empty=!0;var t,i,o,r,s,a=""+e._i,l=a.length,c=0;for(o=N(e._f,e._locale).match(Nn)||[],t=0;t<o.length;t++)r=o[t],i=(a.match(U(r,e))||[])[0],i&&(s=a.substr(0,a.indexOf(i)),s.length>0&&d(e).unusedInput.push(s),a=a.slice(a.indexOf(i)+i.length),c+=i.length),qn[r]?(i?d(e).empty=!1:d(e).unusedTokens.push(r),R(r,i,e)):e._strict&&!i&&d(e).unusedTokens.push(r);d(e).charsLeftOver=l-c,a.length>0&&d(e).unusedInput.push(a),d(e).bigHour===!0&&e._a[ai]<=12&&e._a[ai]>0&&(d(e).bigHour=void 0),e._a[ai]=xe(e._locale,e._a[ai],e._meridiem),ye(e),X(e)}function xe(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&12>t&&(t+=12),i||12!==t||(t=0),t):t}function ke(e){var t,n,i,o,r;if(0===e._f.length)return d(e).invalidFormat=!0,void(e._d=new Date(0/0));for(o=0;o<e._f.length;o++)r=0,t=p({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],we(t),h(t)&&(r+=d(t).charsLeftOver,r+=10*d(t).unusedTokens.length,d(t).score=r,(null==i||i>r)&&(i=r,n=t));l(e,n||t)}function Se(e){if(!e._d){var t=F(e._i);e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],ye(e)}}function Me(e){var t,n=e._i,i=e._f;return e._locale=e._locale||M(e._l),null===n||void 0===i&&""===n?f({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),v(n)?new m(X(n)):(o(i)?ke(e):i?we(e):r(n)?e._d=n:De(e),t=new m(X(e)),t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t))}function De(e){var t=e._i;void 0===t?e._d=new Date:r(t)?e._d=new Date(+t):"string"==typeof t?ie(e):o(t)?(e._a=s(t.slice(0),function(e){return parseInt(e,10)}),ye(e)):"object"==typeof t?Se(e):"number"==typeof t?e._d=new Date(t):n.createFromInputFallback(e)}function Ce(e,t,n,i,o){var r={};return"boolean"==typeof n&&(i=n,n=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=o,r._l=n,r._i=e,r._f=t,r._strict=i,Me(r)}function Fe(e,t,n,i){return Ce(e,t,n,i,!1)}function Te(e,t){var n,i;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Fe();for(n=t[0],i=1;i<t.length;++i)t[i][e](n)&&(n=t[i]);return n}function je(){var e=[].slice.call(arguments,0);return Te("isBefore",e)}function Ee(){var e=[].slice.call(arguments,0);return Te("isAfter",e)}function Ye(e){var t=F(e),n=t.year||0,i=t.quarter||0,o=t.month||0,r=t.week||0,s=t.day||0,a=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._milliseconds=+u+1e3*c+6e4*l+36e5*a,this._days=+s+7*r,this._months=+o+3*i+12*n,this._data={},this._locale=M(),this._bubble()}function ze(e){return e instanceof Ye}function Ae(e,t){A(e,0,0,function(){var e=this.utcOffset(),n="+";return 0>e&&(e=-e,n="-"),n+z(~~(e/60),2)+t+z(~~e%60,2)})}function Oe(e){var t=(e||"").match(Kn)||[],n=t[t.length-1]||[],i=(n+"").match(xi)||["-",0,0],o=+(60*i[1])+g(i[2]);return"+"===i[0]?o:-o}function Ie(e,t){var i,o;return t._isUTC?(i=t.clone(),o=(v(e)||r(e)?+e:+Fe(e))-+i,i._d.setTime(+i._d+o),n.updateOffset(i,!1),i):Fe(e).local()}function Le(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ne(e,t){var i,o=this._offset||0;return null!=e?("string"==typeof e&&(e=Oe(e)),Math.abs(e)<16&&(e=60*e),!this._isUTC&&t&&(i=Le(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?et(this,Je(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?o:Le(this)}function Ve(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ue(e){return this.utcOffset(0,e)}function qe(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Le(this),"m")),this}function $e(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Oe(this._i)),this}function Pe(e){return e=e?Fe(e).utcOffset():0,(this.utcOffset()-e)%60===0}function Re(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function He(){if(this._a){var e=this._isUTC?c(this._a):Fe(this._a);return this.isValid()&&b(this._a,e.toArray())>0}return!1}function We(){return!this._isUTC}function Ge(){return this._isUTC}function Be(){return this._isUTC&&0===this._offset}function Je(e,t){var n,i,o,r=e,s=null;return ze(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(r={},t?r[t]=e:r.milliseconds=e):(s=ki.exec(e))?(n="-"===s[1]?-1:1,r={y:0,d:g(s[si])*n,h:g(s[ai])*n,m:g(s[li])*n,s:g(s[ci])*n,ms:g(s[ui])*n}):(s=Si.exec(e))?(n="-"===s[1]?-1:1,r={y:Qe(s[2],n),M:Qe(s[3],n),d:Qe(s[4],n),h:Qe(s[5],n),m:Qe(s[6],n),s:Qe(s[7],n),w:Qe(s[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=Xe(Fe(r.from),Fe(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new Ye(r),ze(e)&&a(e,"_locale")&&(i._locale=e._locale),i}function Qe(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ze(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Xe(e,t){var n;return t=Ie(t,e),e.isBefore(t)?n=Ze(e,t):(n=Ze(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function Ke(e,t){return function(n,i){var o,r;return null===i||isNaN(+i)||(te(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),r=n,n=i,i=r),n="string"==typeof n?+n:n,o=Je(n,i),et(this,o,e),this}}function et(e,t,i,o){var r=t._milliseconds,s=t._days,a=t._months;o=null==o?!0:o,r&&e._d.setTime(+e._d+r*i),s&&E(e,"Date",j(e,"Date")+s*i),a&&J(e,j(e,"Month")+a*i),o&&n.updateOffset(e,s||a)}function tt(e){var t=e||Fe(),n=Ie(t,this).startOf("day"),i=this.diff(n,"days",!0),o=-6>i?"sameElse":-1>i?"lastWeek":0>i?"lastDay":1>i?"sameDay":2>i?"nextDay":7>i?"nextWeek":"sameElse";return this.format(this.localeData().calendar(o,this,Fe(t)))}function nt(){return new m(this)}function it(e,t){var n;return t=C("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=v(e)?e:Fe(e),+this>+e):(n=v(e)?+e:+Fe(e),n<+this.clone().startOf(t))}function ot(e,t){var n;return t=C("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=v(e)?e:Fe(e),+e>+this):(n=v(e)?+e:+Fe(e),+this.clone().endOf(t)<n)}function rt(e,t,n){return this.isAfter(e,n)&&this.isBefore(t,n)}function st(e,t){var n;return t=C(t||"millisecond"),"millisecond"===t?(e=v(e)?e:Fe(e),+this===+e):(n=+Fe(e),+this.clone().startOf(t)<=n&&n<=+this.clone().endOf(t))}function at(e){return 0>e?Math.ceil(e):Math.floor(e)}function lt(e,t,n){var i,o,r=Ie(e,this),s=6e4*(r.utcOffset()-this.utcOffset());return t=C(t),"year"===t||"month"===t||"quarter"===t?(o=ct(this,r),"quarter"===t?o/=3:"year"===t&&(o/=12)):(i=this-r,o="second"===t?i/1e3:"minute"===t?i/6e4:"hour"===t?i/36e5:"day"===t?(i-s)/864e5:"week"===t?(i-s)/6048e5:i),n?o:at(o)}function ct(e,t){var n,i,o=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(o,"months");return 0>t-r?(n=e.clone().add(o-1,"months"),i=(t-r)/(r-n)):(n=e.clone().add(o+1,"months"),i=(t-r)/(n-r)),-(o+i)}function ut(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function dt(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():L(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):L(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function ht(e){var t=L(this,e||n.defaultFormat);return this.localeData().postformat(t)}function ft(e,t){return this.isValid()?Je({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pt(e){return this.from(Fe(),e)}function mt(e,t){return this.isValid()?Je({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vt(e){return this.to(Fe(),e)}function gt(e){var t;return void 0===e?this._locale._abbr:(t=M(e),null!=t&&(this._locale=t),this)}function bt(){return this._locale}function yt(e){switch(e=C(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function _t(e){return e=C(e),void 0===e||"millisecond"===e?this:this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")}function wt(){return+this._d-6e4*(this._offset||0)}function xt(){return Math.floor(+this/1e3)}function kt(){return this._offset?new Date(+this):this._d}function St(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Mt(){return h(this)}function Dt(){return l({},d(this))}function Ct(){return d(this).overflow}function Ft(e,t){A(0,[e,e.length],0,t)}function Tt(e,t,n){return ce(Fe([e,11,31+t-n]),t,n).week}function jt(e){var t=ce(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,"y")}function Et(e){var t=ce(this,1,4).year;return null==e?t:this.add(e-t,"y")}function Yt(){return Tt(this.year(),1,4)}function zt(){var e=this.localeData()._week;return Tt(this.year(),e.dow,e.doy)}function At(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Ot(e,t){if("string"==typeof e)if(isNaN(e)){if(e=t.weekdaysParse(e),"number"!=typeof e)return null}else e=parseInt(e,10);return e}function It(e){return this._weekdays[e.day()]}function Lt(e){return this._weekdaysShort[e.day()]}function Nt(e){return this._weekdaysMin[e.day()]}function Vt(e){var t,n,i;for(this._weekdaysParse||(this._weekdaysParse=[]),t=0;7>t;t++)if(this._weekdaysParse[t]||(n=Fe([2e3,1]).day(t),i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[t]=new RegExp(i.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t}function Ut(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ot(e,this.localeData()),this.add(e-t,"d")):t}function qt(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function $t(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)}function Pt(e,t){A(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Rt(e,t){return t._meridiemParse}function Ht(e){return"p"===(e+"").toLowerCase().charAt(0)}function Wt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Gt(e){A(0,[e,3],0,"millisecond")}function Bt(){return this._isUTC?"UTC":""}function Jt(){return this._isUTC?"Coordinated Universal Time":""}function Qt(e){return Fe(1e3*e)}function Zt(){return Fe.apply(null,arguments).parseZone()}function Xt(e,t,n){var i=this._calendar[e];return"function"==typeof i?i.call(t,n):i}function Kt(e){var t=this._longDateFormat[e];return!t&&this._longDateFormat[e.toUpperCase()]&&(t=this._longDateFormat[e.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e]=t),t}function en(){return this._invalidDate}function tn(e){return this._ordinal.replace("%d",e)}function nn(e){return e}function on(e,t,n,i){var o=this._relativeTime[n];return"function"==typeof o?o(e,t,n,i):o.replace(/%d/i,e)}function rn(e,t){var n=this._relativeTime[e>0?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)}function sn(e){var t,n;for(n in e)t=e[n],"function"==typeof t?this[n]=t:this["_"+n]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function an(e,t,n,i){var o=M(),r=c().set(i,t);return o[n](r,e)}function ln(e,t,n,i,o){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return an(e,t,n,o);var r,s=[];for(r=0;i>r;r++)s[r]=an(e,r,n,o);return s}function cn(e,t){return ln(e,t,"months",12,"month")}function un(e,t){return ln(e,t,"monthsShort",12,"month")}function dn(e,t){return ln(e,t,"weekdays",7,"day")}function hn(e,t){return ln(e,t,"weekdaysShort",7,"day")}function fn(e,t){return ln(e,t,"weekdaysMin",7,"day")}function pn(){var e=this._data;return this._milliseconds=Wi(this._milliseconds),this._days=Wi(this._days),this._months=Wi(this._months),e.milliseconds=Wi(e.milliseconds),e.seconds=Wi(e.seconds),e.minutes=Wi(e.minutes),e.hours=Wi(e.hours),e.months=Wi(e.months),e.years=Wi(e.years),this}function mn(e,t,n,i){var o=Je(t,n);return e._milliseconds+=i*o._milliseconds,e._days+=i*o._days,e._months+=i*o._months,e._bubble()}function vn(e,t){return mn(this,e,t,1)}function gn(e,t){return mn(this,e,t,-1)}function bn(){var e,t,n,i=this._milliseconds,o=this._days,r=this._months,s=this._data,a=0;return s.milliseconds=i%1e3,e=at(i/1e3),s.seconds=e%60,t=at(e/60),s.minutes=t%60,n=at(t/60),s.hours=n%24,o+=at(n/24),a=at(yn(o)),o-=at(_n(a)),r+=at(o/30),o%=30,a+=at(r/12),r%=12,s.days=o,s.months=r,s.years=a,this}function yn(e){return 400*e/146097}function _n(e){return 146097*e/400}function wn(e){var t,n,i=this._milliseconds;if(e=C(e),"month"===e||"year"===e)return t=this._days+i/864e5,n=this._months+12*yn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(_n(this._months/12)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function xn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*g(this._months/12)}function kn(e){return function(){return this.as(e)}}function Sn(e){return e=C(e),this[e+"s"]()}function Mn(e){return function(){return this._data[e]}}function Dn(){return at(this.days()/7)}function Cn(e,t,n,i,o){return o.relativeTime(t||1,!!n,e,i)}function Fn(e,t,n){var i=Je(e).abs(),o=lo(i.as("s")),r=lo(i.as("m")),s=lo(i.as("h")),a=lo(i.as("d")),l=lo(i.as("M")),c=lo(i.as("y")),u=o<co.s&&["s",o]||1===r&&["m"]||r<co.m&&["mm",r]||1===s&&["h"]||s<co.h&&["hh",s]||1===a&&["d"]||a<co.d&&["dd",a]||1===l&&["M"]||l<co.M&&["MM",l]||1===c&&["y"]||["yy",c];return u[2]=t,u[3]=+e>0,u[4]=n,Cn.apply(null,u)}function Tn(e,t){return void 0===co[e]?!1:void 0===t?co[e]:(co[e]=t,!0)}function jn(e){var t=this.localeData(),n=Fn(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function En(){var e=uo(this.years()),t=uo(this.months()),n=uo(this.days()),i=uo(this.hours()),o=uo(this.minutes()),r=uo(this.seconds()+this.milliseconds()/1e3),s=this.asSeconds();return s?(0>s?"-":"")+"P"+(e?e+"Y":"")+(t?t+"M":"")+(n?n+"D":"")+(i||o||r?"T":"")+(i?i+"H":"")+(o?o+"M":"")+(r?r+"S":""):"P0D"}var Yn,zn,An=n.momentProperties=[],On=!1,In={},Ln={},Nn=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,Vn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Un={},qn={},$n=/\d/,Pn=/\d\d/,Rn=/\d{3}/,Hn=/\d{4}/,Wn=/[+-]?\d{6}/,Gn=/\d\d?/,Bn=/\d{1,3}/,Jn=/\d{1,4}/,Qn=/[+-]?\d{1,6}/,Zn=/\d+/,Xn=/[+-]?\d+/,Kn=/Z|[+-]\d\d:?\d\d/gi,ei=/[+-]?\d+(\.\d{1,3})?/,ti=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ni={},ii={},oi=0,ri=1,si=2,ai=3,li=4,ci=5,ui=6;A("M",["MM",2],"Mo",function(){return this.month()+1}),A("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),A("MMMM",0,0,function(e){return this.localeData().months(this,e)}),D("month","M"),V("M",Gn),V("MM",Gn,Pn),V("MMM",ti),V("MMMM",ti),$(["M","MM"],function(e,t){t[ri]=g(e)-1}),$(["MMM","MMMM"],function(e,t,n,i){var o=n._locale.monthsParse(e,i,n._strict);null!=o?t[ri]=o:d(n).invalidMonth=e});var di="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),hi="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),fi={};n.suppressDeprecationWarnings=!1;var pi=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],vi=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],gi=/^\/?Date\((\-?\d+)/i;n.createFromInputFallback=ee("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),A(0,["YY",2],0,function(){return this.year()%100}),A(0,["YYYY",4],0,"year"),A(0,["YYYYY",5],0,"year"),A(0,["YYYYYY",6,!0],0,"year"),D("year","y"),V("Y",Xn),V("YY",Gn,Pn),V("YYYY",Jn,Hn),V("YYYYY",Qn,Wn),V("YYYYYY",Qn,Wn),$(["YYYY","YYYYY","YYYYYY"],oi),$("YY",function(e,t){t[oi]=n.parseTwoDigitYear(e)}),n.parseTwoDigitYear=function(e){return g(e)+(g(e)>68?1900:2e3)};var bi=T("FullYear",!1);A("w",["ww",2],"wo","week"),A("W",["WW",2],"Wo","isoWeek"),D("week","w"),D("isoWeek","W"),V("w",Gn),V("ww",Gn,Pn),V("W",Gn),V("WW",Gn,Pn),P(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=g(e)});var yi={dow:0,doy:6};A("DDD",["DDDD",3],"DDDo","dayOfYear"),D("dayOfYear","DDD"),V("DDD",Bn),V("DDDD",Rn),$(["DDD","DDDD"],function(e,t,n){n._dayOfYear=g(e)}),n.ISO_8601=function(){};var _i=ee("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var e=Fe.apply(null,arguments);return this>e?this:e}),wi=ee("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var e=Fe.apply(null,arguments);return e>this?this:e});Ae("Z",":"),Ae("ZZ",""),V("Z",Kn),V("ZZ",Kn),$(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Oe(e)});var xi=/([\+\-]|\d\d)/gi;n.updateOffset=function(){};var ki=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Si=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Je.fn=Ye.prototype;var Mi=Ke(1,"add"),Di=Ke(-1,"subtract");n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Ci=ee("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});A(0,["gg",2],0,function(){return this.weekYear()%100}),A(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ft("gggg","weekYear"),Ft("ggggg","weekYear"),Ft("GGGG","isoWeekYear"),Ft("GGGGG","isoWeekYear"),D("weekYear","gg"),D("isoWeekYear","GG"),V("G",Xn),V("g",Xn),V("GG",Gn,Pn),V("gg",Gn,Pn),V("GGGG",Jn,Hn),V("gggg",Jn,Hn),V("GGGGG",Qn,Wn),V("ggggg",Qn,Wn),P(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=g(e)}),P(["gg","GG"],function(e,t,i,o){t[o]=n.parseTwoDigitYear(e)}),A("Q",0,0,"quarter"),D("quarter","Q"),V("Q",$n),$("Q",function(e,t){t[ri]=3*(g(e)-1)}),A("D",["DD",2],"Do","date"),D("date","D"),V("D",Gn),V("DD",Gn,Pn),V("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),$(["D","DD"],si),$("Do",function(e,t){t[si]=g(e.match(Gn)[0],10)});var Fi=T("Date",!0);A("d",0,"do","day"),A("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),A("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),A("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),A("e",0,0,"weekday"),A("E",0,0,"isoWeekday"),D("day","d"),D("weekday","e"),D("isoWeekday","E"),V("d",Gn),V("e",Gn),V("E",Gn),V("dd",ti),V("ddd",ti),V("dddd",ti),P(["dd","ddd","dddd"],function(e,t,n){var i=n._locale.weekdaysParse(e);null!=i?t.d=i:d(n).invalidWeekday=e}),P(["d","e","E"],function(e,t,n,i){t[i]=g(e)});var Ti="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ji="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ei="Su_Mo_Tu_We_Th_Fr_Sa".split("_");A("H",["HH",2],0,"hour"),A("h",["hh",2],0,function(){return this.hours()%12||12}),Pt("a",!0),Pt("A",!1),D("hour","h"),V("a",Rt),V("A",Rt),V("H",Gn),V("h",Gn),V("HH",Gn,Pn),V("hh",Gn,Pn),$(["H","HH"],ai),$(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),$(["h","hh"],function(e,t,n){t[ai]=g(e),d(n).bigHour=!0});var Yi=/[ap]\.?m?\.?/i,zi=T("Hours",!0);A("m",["mm",2],0,"minute"),D("minute","m"),V("m",Gn),V("mm",Gn,Pn),$(["m","mm"],li);var Ai=T("Minutes",!1);A("s",["ss",2],0,"second"),D("second","s"),V("s",Gn),V("ss",Gn,Pn),$(["s","ss"],ci);var Oi=T("Seconds",!1);A("S",0,0,function(){return~~(this.millisecond()/100)}),A(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Gt("SSS"),Gt("SSSS"),D("millisecond","ms"),V("S",Bn,$n),V("SS",Bn,Pn),V("SSS",Bn,Rn),V("SSSS",Zn),$(["S","SS","SSS","SSSS"],function(e,t){t[ui]=g(1e3*("0."+e))});var Ii=T("Milliseconds",!1);A("z",0,0,"zoneAbbr"),A("zz",0,0,"zoneName");var Li=m.prototype;Li.add=Mi,Li.calendar=tt,Li.clone=nt,Li.diff=lt,Li.endOf=_t,Li.format=ht,Li.from=ft,Li.fromNow=pt,Li.to=mt,Li.toNow=vt,Li.get=Y,Li.invalidAt=Ct,Li.isAfter=it,Li.isBefore=ot,Li.isBetween=rt,Li.isSame=st,Li.isValid=Mt,Li.lang=Ci,Li.locale=gt,Li.localeData=bt,Li.max=wi,Li.min=_i,Li.parsingFlags=Dt,Li.set=Y,Li.startOf=yt,Li.subtract=Di,Li.toArray=St,Li.toDate=kt,Li.toISOString=dt,Li.toJSON=dt,Li.toString=ut,Li.unix=xt,Li.valueOf=wt,Li.year=bi,Li.isLeapYear=le,Li.weekYear=jt,Li.isoWeekYear=Et,Li.quarter=Li.quarters=At,Li.month=Q,Li.daysInMonth=Z,Li.week=Li.weeks=fe,Li.isoWeek=Li.isoWeeks=pe,Li.weeksInYear=zt,Li.isoWeeksInYear=Yt,Li.date=Fi,Li.day=Li.days=Ut,Li.weekday=qt,Li.isoWeekday=$t,Li.dayOfYear=ve,Li.hour=Li.hours=zi,Li.minute=Li.minutes=Ai,Li.second=Li.seconds=Oi,Li.millisecond=Li.milliseconds=Ii,Li.utcOffset=Ne,Li.utc=Ue,Li.local=qe,Li.parseZone=$e,Li.hasAlignedHourOffset=Pe,Li.isDST=Re,Li.isDSTShifted=He,Li.isLocal=We,Li.isUtcOffset=Ge,Li.isUtc=Be,Li.isUTC=Be,Li.zoneAbbr=Bt,Li.zoneName=Jt,Li.dates=ee("dates accessor is deprecated. Use date instead.",Fi),Li.months=ee("months accessor is deprecated. Use month instead",Q),Li.years=ee("years accessor is deprecated. Use year instead",bi),Li.zone=ee("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Ve);var Ni=Li,Vi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Ui={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},qi="Invalid date",$i="%d",Pi=/\d{1,2}/,Ri={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Hi=y.prototype;Hi._calendar=Vi,Hi.calendar=Xt,Hi._longDateFormat=Ui,Hi.longDateFormat=Kt,Hi._invalidDate=qi,Hi.invalidDate=en,Hi._ordinal=$i,Hi.ordinal=tn,Hi._ordinalParse=Pi,Hi.preparse=nn,Hi.postformat=nn,Hi._relativeTime=Ri,Hi.relativeTime=on,Hi.pastFuture=rn,Hi.set=sn,Hi.months=W,Hi._months=di,Hi.monthsShort=G,Hi._monthsShort=hi,Hi.monthsParse=B,Hi.week=ue,Hi._week=yi,Hi.firstDayOfYear=he,Hi.firstDayOfWeek=de,Hi.weekdays=It,Hi._weekdays=Ti,Hi.weekdaysMin=Nt,Hi._weekdaysMin=Ei,Hi.weekdaysShort=Lt,Hi._weekdaysShort=ji,Hi.weekdaysParse=Vt,Hi.isPM=Ht,Hi._meridiemParse=Yi,Hi.meridiem=Wt,k("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===g(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),n.lang=ee("moment.lang is deprecated. Use moment.locale instead.",k),n.langData=ee("moment.langData is deprecated. Use moment.localeData instead.",M);var Wi=Math.abs,Gi=kn("ms"),Bi=kn("s"),Ji=kn("m"),Qi=kn("h"),Zi=kn("d"),Xi=kn("w"),Ki=kn("M"),eo=kn("y"),to=Mn("milliseconds"),no=Mn("seconds"),io=Mn("minutes"),oo=Mn("hours"),ro=Mn("days"),so=Mn("months"),ao=Mn("years"),lo=Math.round,co={s:45,m:45,h:22,d:26,M:11},uo=Math.abs,ho=Ye.prototype;ho.abs=pn,ho.add=vn,ho.subtract=gn,ho.as=wn,ho.asMilliseconds=Gi,ho.asSeconds=Bi,ho.asMinutes=Ji,ho.asHours=Qi,ho.asDays=Zi,ho.asWeeks=Xi,ho.asMonths=Ki,ho.asYears=eo,ho.valueOf=xn,ho._bubble=bn,ho.get=Sn,ho.milliseconds=to,ho.seconds=no,ho.minutes=io,ho.hours=oo,ho.days=ro,ho.weeks=Dn,ho.months=so,ho.years=ao,ho.humanize=jn,ho.toISOString=En,ho.toString=En,ho.toJSON=En,ho.locale=gt,ho.localeData=bt,ho.toIsoString=ee("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",En),ho.lang=Ci,A("X",0,0,"unix"),A("x",0,0,"valueOf"),V("x",Xn),V("X",ei),$("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),$("x",function(e,t,n){n._d=new Date(g(e))}),n.version="2.10.3",i(Fe),n.fn=Ni,n.min=je,n.max=Ee,n.utc=c,n.unix=Qt,n.months=cn,n.isDate=r,n.locale=k,n.invalid=f,n.duration=Je,n.isMoment=v,n.weekdays=dn,n.parseZone=Zt,n.localeData=M,n.isDuration=ze,n.monthsShort=un,n.weekdaysMin=fn,n.defineLocale=S,n.weekdaysShort=hn,n.normalizeUnits=C,n.relativeTimeThreshold=Tn;var fo=n;return fo})},{}],91:[function(e,t,n){(function(){function e(e){function t(t,n,i,o,r,s){for(;r>=0&&s>r;r+=e){var a=o?o[r]:r;i=n(i,t[a],a,t)}return i}return function(n,i,o,r){i=w(i,r,4);var s=!F(n)&&_.keys(n),a=(s||n).length,l=e>0?0:a-1;return arguments.length<3&&(o=n[s?s[l]:l],l+=e),t(n,i,o,s,l,a)}}function i(e){return function(t,n,i){n=x(n,i);for(var o=C(t),r=e>0?0:o-1;r>=0&&o>r;r+=e)if(n(t[r],r,t))return r;return-1}}function o(e,t,n){return function(i,o,r){var s=0,a=C(i);if("number"==typeof r)e>0?s=r>=0?r:Math.max(r+a,s):a=r>=0?Math.min(r+1,a):r+a+1;else if(n&&r&&a)return r=n(i,o),i[r]===o?r:-1;if(o!==o)return r=t(h.call(i,s,a),_.isNaN),r>=0?r+s:-1;for(r=e>0?s:a-1;r>=0&&a>r;r+=e)if(i[r]===o)return r;return-1}}function r(e,t){var n=z.length,i=e.constructor,o=_.isFunction(i)&&i.prototype||c,r="constructor";for(_.has(e,r)&&!_.contains(t,r)&&t.push(r);n--;)r=z[n],r in e&&e[r]!==o[r]&&!_.contains(t,r)&&t.push(r)}var s=this,a=s._,l=Array.prototype,c=Object.prototype,u=Function.prototype,d=l.push,h=l.slice,f=c.toString,p=c.hasOwnProperty,m=Array.isArray,v=Object.keys,g=u.bind,b=Object.create,y=function(){},_=function(e){return e instanceof _?e:this instanceof _?void(this._wrapped=e):new _(e)};"undefined"!=typeof n?("undefined"!=typeof t&&t.exports&&(n=t.exports=_),n._=_):s._=_,_.VERSION="1.8.3";var w=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};
  
  case 3:return function(n,i,o){return e.call(t,n,i,o)};case 4:return function(n,i,o,r){return e.call(t,n,i,o,r)}}return function(){return e.apply(t,arguments)}},x=function(e,t,n){return null==e?_.identity:_.isFunction(e)?w(e,t,n):_.isObject(e)?_.matcher(e):_.property(e)};_.iteratee=function(e,t){return x(e,t,1/0)};var k=function(e,t){return function(n){var i=arguments.length;if(2>i||null==n)return n;for(var o=1;i>o;o++)for(var r=arguments[o],s=e(r),a=s.length,l=0;a>l;l++){var c=s[l];t&&void 0!==n[c]||(n[c]=r[c])}return n}},S=function(e){if(!_.isObject(e))return{};if(b)return b(e);y.prototype=e;var t=new y;return y.prototype=null,t},M=function(e){return function(t){return null==t?void 0:t[e]}},D=Math.pow(2,53)-1,C=M("length"),F=function(e){var t=C(e);return"number"==typeof t&&t>=0&&D>=t};_.each=_.forEach=function(e,t,n){t=w(t,n);var i,o;if(F(e))for(i=0,o=e.length;o>i;i++)t(e[i],i,e);else{var r=_.keys(e);for(i=0,o=r.length;o>i;i++)t(e[r[i]],r[i],e)}return e},_.map=_.collect=function(e,t,n){t=x(t,n);for(var i=!F(e)&&_.keys(e),o=(i||e).length,r=Array(o),s=0;o>s;s++){var a=i?i[s]:s;r[s]=t(e[a],a,e)}return r},_.reduce=_.foldl=_.inject=e(1),_.reduceRight=_.foldr=e(-1),_.find=_.detect=function(e,t,n){var i;return i=F(e)?_.findIndex(e,t,n):_.findKey(e,t,n),void 0!==i&&-1!==i?e[i]:void 0},_.filter=_.select=function(e,t,n){var i=[];return t=x(t,n),_.each(e,function(e,n,o){t(e,n,o)&&i.push(e)}),i},_.reject=function(e,t,n){return _.filter(e,_.negate(x(t)),n)},_.every=_.all=function(e,t,n){t=x(t,n);for(var i=!F(e)&&_.keys(e),o=(i||e).length,r=0;o>r;r++){var s=i?i[r]:r;if(!t(e[s],s,e))return!1}return!0},_.some=_.any=function(e,t,n){t=x(t,n);for(var i=!F(e)&&_.keys(e),o=(i||e).length,r=0;o>r;r++){var s=i?i[r]:r;if(t(e[s],s,e))return!0}return!1},_.contains=_.includes=_.include=function(e,t,n,i){return F(e)||(e=_.values(e)),("number"!=typeof n||i)&&(n=0),_.indexOf(e,t,n)>=0},_.invoke=function(e,t){var n=h.call(arguments,2),i=_.isFunction(t);return _.map(e,function(e){var o=i?t:e[t];return null==o?o:o.apply(e,n)})},_.pluck=function(e,t){return _.map(e,_.property(t))},_.where=function(e,t){return _.filter(e,_.matcher(t))},_.findWhere=function(e,t){return _.find(e,_.matcher(t))},_.max=function(e,t,n){var i,o,r=-(1/0),s=-(1/0);if(null==t&&null!=e){e=F(e)?e:_.values(e);for(var a=0,l=e.length;l>a;a++)i=e[a],i>r&&(r=i)}else t=x(t,n),_.each(e,function(e,n,i){o=t(e,n,i),(o>s||o===-(1/0)&&r===-(1/0))&&(r=e,s=o)});return r},_.min=function(e,t,n){var i,o,r=1/0,s=1/0;if(null==t&&null!=e){e=F(e)?e:_.values(e);for(var a=0,l=e.length;l>a;a++)i=e[a],r>i&&(r=i)}else t=x(t,n),_.each(e,function(e,n,i){o=t(e,n,i),(s>o||o===1/0&&r===1/0)&&(r=e,s=o)});return r},_.shuffle=function(e){for(var t,n=F(e)?e:_.values(e),i=n.length,o=Array(i),r=0;i>r;r++)t=_.random(0,r),t!==r&&(o[r]=o[t]),o[t]=n[r];return o},_.sample=function(e,t,n){return null==t||n?(F(e)||(e=_.values(e)),e[_.random(e.length-1)]):_.shuffle(e).slice(0,Math.max(0,t))},_.sortBy=function(e,t,n){return t=x(t,n),_.pluck(_.map(e,function(e,n,i){return{value:e,index:n,criteria:t(e,n,i)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(i>n||void 0===i)return-1}return e.index-t.index}),"value")};var T=function(e){return function(t,n,i){var o={};return n=x(n,i),_.each(t,function(i,r){var s=n(i,r,t);e(o,i,s)}),o}};_.groupBy=T(function(e,t,n){_.has(e,n)?e[n].push(t):e[n]=[t]}),_.indexBy=T(function(e,t,n){e[n]=t}),_.countBy=T(function(e,t,n){_.has(e,n)?e[n]++:e[n]=1}),_.toArray=function(e){return e?_.isArray(e)?h.call(e):F(e)?_.map(e,_.identity):_.values(e):[]},_.size=function(e){return null==e?0:F(e)?e.length:_.keys(e).length},_.partition=function(e,t,n){t=x(t,n);var i=[],o=[];return _.each(e,function(e,n,r){(t(e,n,r)?i:o).push(e)}),[i,o]},_.first=_.head=_.take=function(e,t,n){return null==e?void 0:null==t||n?e[0]:_.initial(e,e.length-t)},_.initial=function(e,t,n){return h.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},_.last=function(e,t,n){return null==e?void 0:null==t||n?e[e.length-1]:_.rest(e,Math.max(0,e.length-t))},_.rest=_.tail=_.drop=function(e,t,n){return h.call(e,null==t||n?1:t)},_.compact=function(e){return _.filter(e,_.identity)};var j=function(e,t,n,i){for(var o=[],r=0,s=i||0,a=C(e);a>s;s++){var l=e[s];if(F(l)&&(_.isArray(l)||_.isArguments(l))){t||(l=j(l,t,n));var c=0,u=l.length;for(o.length+=u;u>c;)o[r++]=l[c++]}else n||(o[r++]=l)}return o};_.flatten=function(e,t){return j(e,t,!1)},_.without=function(e){return _.difference(e,h.call(arguments,1))},_.uniq=_.unique=function(e,t,n,i){_.isBoolean(t)||(i=n,n=t,t=!1),null!=n&&(n=x(n,i));for(var o=[],r=[],s=0,a=C(e);a>s;s++){var l=e[s],c=n?n(l,s,e):l;t?(s&&r===c||o.push(l),r=c):n?_.contains(r,c)||(r.push(c),o.push(l)):_.contains(o,l)||o.push(l)}return o},_.union=function(){return _.uniq(j(arguments,!0,!0))},_.intersection=function(e){for(var t=[],n=arguments.length,i=0,o=C(e);o>i;i++){var r=e[i];if(!_.contains(t,r)){for(var s=1;n>s&&_.contains(arguments[s],r);s++);s===n&&t.push(r)}}return t},_.difference=function(e){var t=j(arguments,!0,!0,1);return _.filter(e,function(e){return!_.contains(t,e)})},_.zip=function(){return _.unzip(arguments)},_.unzip=function(e){for(var t=e&&_.max(e,C).length||0,n=Array(t),i=0;t>i;i++)n[i]=_.pluck(e,i);return n},_.object=function(e,t){for(var n={},i=0,o=C(e);o>i;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},_.findIndex=i(1),_.findLastIndex=i(-1),_.sortedIndex=function(e,t,n,i){n=x(n,i,1);for(var o=n(t),r=0,s=C(e);s>r;){var a=Math.floor((r+s)/2);n(e[a])<o?r=a+1:s=a}return r},_.indexOf=o(1,_.findIndex,_.sortedIndex),_.lastIndexOf=o(-1,_.findLastIndex),_.range=function(e,t,n){null==t&&(t=e||0,e=0),n=n||1;for(var i=Math.max(Math.ceil((t-e)/n),0),o=Array(i),r=0;i>r;r++,e+=n)o[r]=e;return o};var E=function(e,t,n,i,o){if(!(i instanceof t))return e.apply(n,o);var r=S(e.prototype),s=e.apply(r,o);return _.isObject(s)?s:r};_.bind=function(e,t){if(g&&e.bind===g)return g.apply(e,h.call(arguments,1));if(!_.isFunction(e))throw new TypeError("Bind must be called on a function");var n=h.call(arguments,2),i=function(){return E(e,i,t,this,n.concat(h.call(arguments)))};return i},_.partial=function(e){var t=h.call(arguments,1),n=function(){for(var i=0,o=t.length,r=Array(o),s=0;o>s;s++)r[s]=t[s]===_?arguments[i++]:t[s];for(;i<arguments.length;)r.push(arguments[i++]);return E(e,n,this,this,r)};return n},_.bindAll=function(e){var t,n,i=arguments.length;if(1>=i)throw new Error("bindAll must be passed function names");for(t=1;i>t;t++)n=arguments[t],e[n]=_.bind(e[n],e);return e},_.memoize=function(e,t){var n=function(i){var o=n.cache,r=""+(t?t.apply(this,arguments):i);return _.has(o,r)||(o[r]=e.apply(this,arguments)),o[r]};return n.cache={},n},_.delay=function(e,t){var n=h.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},_.defer=_.partial(_.delay,_,1),_.throttle=function(e,t,n){var i,o,r,s=null,a=0;n||(n={});var l=function(){a=n.leading===!1?0:_.now(),s=null,r=e.apply(i,o),s||(i=o=null)};return function(){var c=_.now();a||n.leading!==!1||(a=c);var u=t-(c-a);return i=this,o=arguments,0>=u||u>t?(s&&(clearTimeout(s),s=null),a=c,r=e.apply(i,o),s||(i=o=null)):s||n.trailing===!1||(s=setTimeout(l,u)),r}},_.debounce=function(e,t,n){var i,o,r,s,a,l=function(){var c=_.now()-s;t>c&&c>=0?i=setTimeout(l,t-c):(i=null,n||(a=e.apply(r,o),i||(r=o=null)))};return function(){r=this,o=arguments,s=_.now();var c=n&&!i;return i||(i=setTimeout(l,t)),c&&(a=e.apply(r,o),r=o=null),a}},_.wrap=function(e,t){return _.partial(t,e)},_.negate=function(e){return function(){return!e.apply(this,arguments)}},_.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,i=e[t].apply(this,arguments);n--;)i=e[n].call(this,i);return i}},_.after=function(e,t){return function(){return--e<1?t.apply(this,arguments):void 0}},_.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),1>=e&&(t=null),n}},_.once=_.partial(_.before,2);var Y=!{toString:null}.propertyIsEnumerable("toString"),z=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];_.keys=function(e){if(!_.isObject(e))return[];if(v)return v(e);var t=[];for(var n in e)_.has(e,n)&&t.push(n);return Y&&r(e,t),t},_.allKeys=function(e){if(!_.isObject(e))return[];var t=[];for(var n in e)t.push(n);return Y&&r(e,t),t},_.values=function(e){for(var t=_.keys(e),n=t.length,i=Array(n),o=0;n>o;o++)i[o]=e[t[o]];return i},_.mapObject=function(e,t,n){t=x(t,n);for(var i,o=_.keys(e),r=o.length,s={},a=0;r>a;a++)i=o[a],s[i]=t(e[i],i,e);return s},_.pairs=function(e){for(var t=_.keys(e),n=t.length,i=Array(n),o=0;n>o;o++)i[o]=[t[o],e[t[o]]];return i},_.invert=function(e){for(var t={},n=_.keys(e),i=0,o=n.length;o>i;i++)t[e[n[i]]]=n[i];return t},_.functions=_.methods=function(e){var t=[];for(var n in e)_.isFunction(e[n])&&t.push(n);return t.sort()},_.extend=k(_.allKeys),_.extendOwn=_.assign=k(_.keys),_.findKey=function(e,t,n){t=x(t,n);for(var i,o=_.keys(e),r=0,s=o.length;s>r;r++)if(i=o[r],t(e[i],i,e))return i},_.pick=function(e,t,n){var i,o,r={},s=e;if(null==s)return r;_.isFunction(t)?(o=_.allKeys(s),i=w(t,n)):(o=j(arguments,!1,!1,1),i=function(e,t,n){return t in n},s=Object(s));for(var a=0,l=o.length;l>a;a++){var c=o[a],u=s[c];i(u,c,s)&&(r[c]=u)}return r},_.omit=function(e,t,n){if(_.isFunction(t))t=_.negate(t);else{var i=_.map(j(arguments,!1,!1,1),String);t=function(e,t){return!_.contains(i,t)}}return _.pick(e,t,n)},_.defaults=k(_.allKeys,!0),_.create=function(e,t){var n=S(e);return t&&_.extendOwn(n,t),n},_.clone=function(e){return _.isObject(e)?_.isArray(e)?e.slice():_.extend({},e):e},_.tap=function(e,t){return t(e),e},_.isMatch=function(e,t){var n=_.keys(t),i=n.length;if(null==e)return!i;for(var o=Object(e),r=0;i>r;r++){var s=n[r];if(t[s]!==o[s]||!(s in o))return!1}return!0};var A=function(e,t,n,i){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return e===t;e instanceof _&&(e=e._wrapped),t instanceof _&&(t=t._wrapped);var o=f.call(e);if(o!==f.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t}var r="[object Array]"===o;if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var s=e.constructor,a=t.constructor;if(s!==a&&!(_.isFunction(s)&&s instanceof s&&_.isFunction(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],i=i||[];for(var l=n.length;l--;)if(n[l]===e)return i[l]===t;if(n.push(e),i.push(t),r){if(l=e.length,l!==t.length)return!1;for(;l--;)if(!A(e[l],t[l],n,i))return!1}else{var c,u=_.keys(e);if(l=u.length,_.keys(t).length!==l)return!1;for(;l--;)if(c=u[l],!_.has(t,c)||!A(e[c],t[c],n,i))return!1}return n.pop(),i.pop(),!0};_.isEqual=function(e,t){return A(e,t)},_.isEmpty=function(e){return null==e?!0:F(e)&&(_.isArray(e)||_.isString(e)||_.isArguments(e))?0===e.length:0===_.keys(e).length},_.isElement=function(e){return!(!e||1!==e.nodeType)},_.isArray=m||function(e){return"[object Array]"===f.call(e)},_.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},_.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){_["is"+e]=function(t){return f.call(t)==="[object "+e+"]"}}),_.isArguments(arguments)||(_.isArguments=function(e){return _.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(_.isFunction=function(e){return"function"==typeof e||!1}),_.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},_.isNaN=function(e){return _.isNumber(e)&&e!==+e},_.isBoolean=function(e){return e===!0||e===!1||"[object Boolean]"===f.call(e)},_.isNull=function(e){return null===e},_.isUndefined=function(e){return void 0===e},_.has=function(e,t){return null!=e&&p.call(e,t)},_.noConflict=function(){return s._=a,this},_.identity=function(e){return e},_.constant=function(e){return function(){return e}},_.noop=function(){},_.property=M,_.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},_.matcher=_.matches=function(e){return e=_.extendOwn({},e),function(t){return _.isMatch(t,e)}},_.times=function(e,t,n){var i=Array(Math.max(0,e));t=w(t,n,1);for(var o=0;e>o;o++)i[o]=t(o);return i},_.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},_.now=Date.now||function(){return(new Date).getTime()};var O={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},I=_.invert(O),L=function(e){var t=function(t){return e[t]},n="(?:"+_.keys(e).join("|")+")",i=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(o,t):e}};_.escape=L(O),_.unescape=L(I),_.result=function(e,t,n){var i=null==e?void 0:e[t];return void 0===i&&(i=n),_.isFunction(i)?i.call(e):i};var N=0;_.uniqueId=function(e){var t=++N+"";return e?e+t:t},_.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var V=/(.)^/,U={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},q=/\\|'|\r|\n|\u2028|\u2029/g,$=function(e){return"\\"+U[e]};_.template=function(e,t,n){!t&&n&&(t=n),t=_.defaults({},t,_.templateSettings);var i=RegExp([(t.escape||V).source,(t.interpolate||V).source,(t.evaluate||V).source].join("|")+"|$","g"),o=0,r="__p+='";e.replace(i,function(t,n,i,s,a){return r+=e.slice(o,a).replace(q,$),o=a+t.length,n?r+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?r+="'+\n((__t=("+i+"))==null?'':__t)+\n'":s&&(r+="';\n"+s+"\n__p+='"),t}),r+="';\n",t.variable||(r="with(obj||{}){\n"+r+"}\n"),r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";try{var s=new Function(t.variable||"obj","_",r)}catch(a){throw a.source=r,a}var l=function(e){return s.call(this,e,_)},c=t.variable||"obj";return l.source="function("+c+"){\n"+r+"}",l},_.chain=function(e){var t=_(e);return t._chain=!0,t};var P=function(e,t){return e._chain?_(t).chain():t};_.mixin=function(e){_.each(_.functions(e),function(t){var n=_[t]=e[t];_.prototype[t]=function(){var e=[this._wrapped];return d.apply(e,arguments),P(this,n.apply(_,e))}})},_.mixin(_),_.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=l[e];_.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],P(this,n)}}),_.each(["concat","join","slice"],function(e){var t=l[e];_.prototype[e]=function(){return P(this,t.apply(this._wrapped,arguments))}}),_.prototype.value=function(){return this._wrapped},_.prototype.valueOf=_.prototype.toJSON=_.prototype.value,_.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return _})}).call(this)},{}]},{},[1]);
  //# sourceMappingURL=portal.js.map