!function(){"use strict";var t="undefined"!=typeof window?window:global;if("function"!=typeof t.require){var e={},n={},r=function(t,e){return{}.hasOwnProperty.call(t,e)},i=function(t,e){var n,r,i=[];n=/^\.\.?(\/|$)/.test(e)?[t,e].join("/").split("/"):e.split("/");for(var s=0,o=n.length;o>s;s++)r=n[s],".."===r?i.pop():"."!==r&&""!==r&&i.push(r);return i.join("/")},s=function(t){return t.split("/").slice(0,-1).join("/")},o=function(e){return function(n){var r=s(e),o=i(r,n);return t.require(o,e)}},a=function(t,e){var r={id:t,exports:{}};return n[t]=r,e(r.exports,o(t),r),r.exports},l=function(t,s){var o=i(t,".");if(null==s&&(s="/"),r(n,o))return n[o].exports;if(r(e,o))return a(o,e[o]);var l=i(o,"./index");if(r(n,l))return n[l].exports;if(r(e,l))return a(l,e[l]);throw new Error('Cannot find module "'+t+'" from '+'"'+s+'"')},u=function(t,n){if("object"==typeof t)for(var i in t)r(t,i)&&(e[i]=t[i]);else e[t]=n},c=function(){var t=[];for(var n in e)r(e,n)&&t.push(n);return t};t.require=l,t.require.define=u,t.require.register=u,t.require.list=c,t.require.brunch=!0}}(),require.register("application",function(t,e,n){var r,i,s,o,a,l,u={}.hasOwnProperty,c=function(t,e){function n(){this.constructor=t}for(var r in e)u.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("models/article"),s=e("models/features"),o=e("models/product"),a=e("models/user"),n.exports=r=function(t){function e(){return l=e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.initMediator=function(){var t;return Swag.registerHelpers(Handlebars),t=Chaplin.mediator,t.product=null,window.APS.product&&(t.product=new o(window.APS.product)),t.features=new s,window.APS.features&&t.features.set(window.APS.features),t.user=null,window.APS.user&&(t.user=new a(window.APS.user),t.publish("user:login",t.user)),t.article=null,window.APS.article&&(t.article=new i(window.APS.article)),t.seal()},e}(Chaplin.Application)}),require.register("controllers/articles-controller",function(t,e,n){"use strict";var r,i,s,o,a,l,u,c,p,h={}.hasOwnProperty,d=function(t,e){function n(){this.constructor=t}for(var r in e)h.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};o=e("controllers/base/controller"),i=e("views/article-page-view"),r=e("views/article/article-cited-by-page-view"),l=e("views/tqc/tqc-menu-view"),c=e("views/tqc/tqc-message-view"),u=e("models/tqc/tqc-message"),a=e("models/tqc/tqc-article"),n.exports=s=function(t){function e(){return p=e.__super__.constructor.apply(this,arguments)}return d(e,t),e.prototype.abstract=function(){var t,e;return this.view=new i({region:"main"}),this.view.attach(),$("#tqc-menu").length>0?(t=new a({id:Chaplin.mediator.article.get("id").replace("10.1103/","")}),t.fetch().then(function(){return new l({el:$("#tqc-menu"),model:t})}),e=new u({id:Chaplin.mediator.article.get("id").replace("10.1103/","")}),e.fetch().then(function(){return new c({el:$("#tqc-message"),model:e})})):void 0},e.prototype.cited_by=function(){return this.view=new r({region:"main"}),this.view.attach()},e}(o)}),require.register("controllers/base/controller",function(t,e,n){var r,i,s,o,a,l={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)l.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};s=e("views/site-view"),o=e("views/top-bar-view"),i=e("views/footer-view"),n.exports=r=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return u(n,t),n.prototype.beforeAction=function(){return this.reuse("site",s),this.reuse("top-bar",o),this.reuse("footer",i),this.reuse("auth",function(){var t;return t=e("controllers/session-controller"),this.controller=new t})},n}(Chaplin.Controller)}),require.register("controllers/browse-controller",function(t,e,n){"use strict";var r,i,s,o,a,l,u,c={}.hasOwnProperty,p=function(t,e){function n(){this.constructor=t}for(var r in e)c.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};o=e("controllers/base/controller"),i=e("models/search/browse-criteria"),a=e("models/search/results"),s=e("views/browse/browse-page-view"),l=e("lib/services/search"),n.exports=r=function(t){function e(){return u=e.__super__.constructor.apply(this,arguments)}return p(e,t),e.serviceProviders={search:new l},e.prototype.searchService=e.serviceProviders.search,e.prototype.recent=function(t){var e,n;return n=new a,e=new i({journal:[t.product],sort:"recent"}),this.view=new s({region:"main",el:$("#body"),model:e,collection:n})},e.prototype.subjects=function(t){var e,n;return n=new a,e=new i({journal:[t.product],sort:"recent"}),this.view=new s({region:"main",el:$("#body"),model:e,collection:n})},e.prototype.highlights=function(t){var e,n;return n=new a,e=new i({journal:[t.product],sort:"recent"}),this.view=new s({region:"main",el:$("#body"),model:e,collection:n})},e.prototype.accepted=function(t){var e,n;return n=new a,e=new i({journal:[t.product],sort:"recent"}),this.view=new s({region:"main",el:$("#body"),model:e,collection:n,resultFormat:"accepted"})},e}(o)}),require.register("controllers/home-controller",function(t,e,n){var r,i,s,o,a={}.hasOwnProperty,l=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};r=e("controllers/base/controller"),s=e("views/home-page-view"),n.exports=i=function(t){function e(){return o=e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.index=function(){return this.view=new s({region:"main"})},e}(r)}),require.register("controllers/issues-controller",function(t,e,n){"use strict";var r,i,s,o,a={}.hasOwnProperty,l=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};r=e("controllers/base/controller"),i=e("views/issues/issue-page-view"),n.exports=s=function(t){function e(){return o=e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.show=function(){return this.view=new i({region:"main"}),this.view.attach()},e}(r)}),require.register("controllers/pages-controller",function(t,e,n){"use strict";var r,i,s,o,a,l={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)l.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},c=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};r=e("controllers/base/controller"),s=e("models/homepage"),i=e("views/home-page-view"),n.exports=o=function(t){function e(){return a=e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.catchAll=function(t){var e;return e=t.page.replace(/\/*$/,""),c.call(s.urlPrefixes,e)>=0&&(this.view=new i({region:"main"})),this},e}(r)}),require.register("controllers/search-controller",function(t,e,n){"use strict";var r,i,s,o,a,l,u,c=function(t,e){return function(){return t.apply(e,arguments)}},p={}.hasOwnProperty,h=function(t,e){function n(){this.constructor=t}for(var r in e)p.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("controllers/base/controller"),a=e("views/search/search-page-view"),l=e("views/search/search-results-page-view"),s=e("lib/services/search"),r=e("models/search/clause"),n.exports=o=function(t){function e(){return this.index=c(this.index,this),u=e.__super__.constructor.apply(this,arguments)}return h(e,t),e.serviceProviders={search:new s},e.prototype.searchService=e.serviceProviders.search,e.prototype.index=function(t,e){var n,i,s;return s=t.query||e.query,i=s?deparam(s):t,window.APS.searchResults?(this.view=new l({region:"main",searchService:this.searchService}),n=window.APS.searchResults.criteria,n.clauses&&(n.clauses=_.map(n.clauses,function(t){return new r(t)})),this.searchService.criteria.set(n),this.searchService.fromResponse(window.APS.searchResults)):this.view=new a({region:"main",searchService:this.searchService}),this.view.attach()},e.prototype.edit=function(){return this.view=new a({region:"main",searchService:this.searchService}),this.view.attach()},e}(i)}),require.register("controllers/session-controller",function(t,e,n){"use strict";var r,i,s,o,a={}.hasOwnProperty,l=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};r=e("controllers/base/controller"),i=e("lib/services/mathjax"),n.exports=s=function(t){function e(){return o=e.__super__.constructor.apply(this,arguments)}return l(e,t),e.serviceProviders={mathjax:new i},e.prototype.initialize=function(){return e.__super__.initialize.apply(this,arguments),Chaplin.mediator.features.get("enable_mathjax")?e.serviceProviders.mathjax.configure():void 0},e}(r)}),require.register("initialize",function(t,e){var n,r;n=e("application"),r=e("routes"),$(function(){return new n({title:"APS Journals",controllerSuffix:"-controller",routeLinks:!1,hashChange:!1,routes:r})})}),require.register("lib/services/mathjax",function(t,e,n){"use strict";var r,i=function(t,e){return function(){return t.apply(e,arguments)}};n.exports=r=function(){function t(){this.ready=i(this.ready,this),_.extend(this,$.Deferred()),this.subscribeEvent("mathjax:typeset",this.typeset),this.mathjaxReady=!1,this.typesetPending=!1}return _.extend(t.prototype,Chaplin.EventBroker),t.prototype.loading=!1,t.prototype.configure=function(){return MathJax.Hub.Config({showProcessingMessages:!1,extensions:["mml2jax.js"],jax:["input/MathML","output/HTML-CSS"],"HTML-CSS":{preferredFont:"STIX",webfont:"STIX-Web",showMathMenu:!1,scale:81.25,styles:{".MathJax, .mn, .mtext":{"font-family":"arial","font-weight":"inherit","font-style":"inherit"}}}}),MathJax.Hub.Configured(),MathJax.Hub.Register.StartupHook("onLoad",this.ready)},t.prototype.ready=function(){return this.mathjaxReady=!0,this.typesetPending&&this.typeset(),this.publishEvent("mathjax:ready")},t.prototype.typeset=function(){return this.mathjaxReady?(_.debounce(function(){return MathJax.Hub.Queue(["Typeset",MathJax.Hub])},500)(),this.typesetPending=!1):this.typesetPending=!0},t}()}),require.register("lib/services/search",function(t,e,n){var r,i,s,o;r=e("models/search/criteria"),s=e("models/search/results"),i=e("models/search/facets"),n.exports=o=function(){function t(){_.extend(this,$.Deferred()),this.criteria=new r,this.results=new s,this.facets=new i}return _.extend(t.prototype,Chaplin.EventBroker),t.prototype.loading=!1,t.prototype.url="/search",t.prototype.search=function(){return this.doSearch({criteria:this.criteria,results:this.results,facets:this.facets})},t.prototype.fromResponse=function(t){return this.facets.set(t.facets),this.results.page=t.criteria.page,this.results.perPage=t.criteria.per_page,this.results.total=t.num_found,this.results.reset(t.hits),this.publishEvent("search:newResults")},t.prototype.doSearch=function(){var t=this;return $.ajax({type:"POST",url:this.url,dataType:"json",contentType:"application/json",data:JSON.stringify(this.criteria.toJSON()),success:function(e,n,r){return t.fromResponse(e),r.getResponseHeader("link")?null:void 0},error:function(t,e,n){return"timeout"===e?console.log("Timed out"):console.log("Search Error:",t,e,n)}})},t}()}),require.register("lib/utils",function(t,e,n){var r;r=Chaplin.utils.beget(Chaplin.utils),"function"==typeof Object.seal&&Object.seal(r),n.exports=r}),require.register("lib/view-helper",function(){var t=[].slice;Handlebars.registerHelper("with",function(t,e){return!t||Handlebars.Utils.isEmpty(t)?e.inverse(this):e.fn(t)}),Handlebars.registerHelper("without",function(t,e){var n;return n=e.inverse,e.inverse=e.fn,e.fn=n,Handlebars.helpers["with"].call(this,t,e)}),Handlebars.registerHelper("url",function(){var e,n,r,i;return r=arguments[0],n=3<=arguments.length?t.call(arguments,1,i=arguments.length-1):(i=1,[]),e=arguments[i++],Chaplin.helpers.reverse(r,n)})}),require.register("models/article",function(t,e,n){var r,i,s,o=function(t,e){return function(){return t.apply(e,arguments)}},a={}.hasOwnProperty,l=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("models/base/model"),n.exports=r=function(t){function e(){return this.exportUrl=o(this.exportUrl,this),this.baseUrl=o(this.baseUrl,this),this.multimediaUrl=o(this.multimediaUrl,this),this.supplementalUrl=o(this.supplementalUrl,this),this.product=o(this.product,this),s=e.__super__.constructor.apply(this,arguments)}return l(e,t),e.product=function(){return Chaplin.mediator.product},e.baseUrl=function(t){return""+e.product().get("urlPrefix")+"article/"+t},e.supplementalUrl=function(t){return""+e.product().get("urlPrefix")+"supplemental/"+t},e.multimediaUrl=function(t){return""+e.product().get("urlPrefix")+"multimedia/"+t},e.exportUrl=function(t,n,r){var i,s;return i=r?"/"+r.toLowerCase()+"/":e.product().get("urlPrefix"),s=""+i+"export/"+t,n&&(s+="?type="+n),s},e.prototype.product=function(){return e.product()},e.prototype.supplementalUrl=function(){return e.supplementalUrl(this.id)},e.prototype.multimediaUrl=function(){return e.multimediaUrl(this.id)},e.prototype.baseUrl=function(){return e.baseUrl(this.id)},e.prototype.exportUrl=function(t){return e.exportUrl(this.id,t)},e}.call(this,i)}),require.register("models/article/section",function(t,e,n){var r,i,s,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};r=e("models/base/model"),n.exports=i=function(t){function e(){return s=e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.url=function(){var t;return t=Chaplin.mediator.article.baseUrl()+("/section/"+this.get("name")),this.get("page")&&(t+="?page="+this.get("page")),t},e.prototype.content=function(t){var e=this;return $.ajax({type:"GET",url:this.url(),success:function(e){return null!=t.success?t.success(e):void 0},error:function(n,r,i){return null!=t.error?t.error(e,n,r,i):void 0},complete:function(){return null!=t.complete?t.complete():void 0}})},e}(r)}),require.register("models/base/collection",function(t,e,n){var r,i,s,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("models/base/model"),n.exports=r=function(t){function e(){return s=e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.model=i,e}(Chaplin.Collection)}),require.register("models/base/model",function(t,e,n){var r,i,s={}.hasOwnProperty,o=function(t,e){function n(){this.constructor=t}for(var r in e)s.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};n.exports=r=function(t){function e(){return i=e.__super__.constructor.apply(this,arguments)}return o(e,t),e}(Chaplin.Model)}),require.register("models/features",function(t,e,n){var r,i,s,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("models/base/model"),n.exports=r=function(t){function e(){return s=e.__super__.constructor.apply(this,arguments)}return a(e,t),e}(i)}),require.register("models/homepage",function(t,e,n){"use strict";var r,i,s,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("models/base/model"),n.exports=r=function(t){function e(){return s=e.__super__.constructor.apply(this,arguments)}return a(e,t),e.urlPrefixes=["pra","prb","prc","prd","pre","prl","rmp","prstab","prstper","prapplied","archive"],e}(i)}),require.register("models/product",function(t,e,n){var r,i,s,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};r=e("models/base/model"),n.exports=i=function(t){function e(){return s=e.__super__.constructor.apply(this,arguments)}return a(e,t),e}(r)}),require.register("models/search/browse-criteria",function(t,e,n){"use strict";var r,i,s,o,a=function(t,e){return function(){return t.apply(e,arguments)}},l={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)l.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};s=e("models/base/model"),i=e("models/search/clause"),n.exports=r=function(t){function e(){return this.clearRestrictions=a(this.clearRestrictions,this),this.setRestrictions=a(this.setRestrictions,this),this.removeRestriction=a(this.removeRestriction,this),this.addRestriction=a(this.addRestriction,this),o=e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.defaults={type:"article",sort:"relevance"},e.prototype.addRestriction=function(t,e){var n;return n=this.get(t),this.set(t,(n||[]).concat(e))},e.prototype.removeRestriction=function(t,e){return this.set(t,_.without(this.get("restrictions")[t],e))},e.prototype.setRestrictions=function(t,e){return this.set(t,e)},e.prototype.clearRestrictions=function(t){return this.set(t,[])},e.prototype.search=function(t){var e,n=this;return t&&(e=t.results),$.ajax({type:"GET",url:window.location.pathname,dataType:"json",data:this.toJSON(),success:function(t,r,i){return e&&(e.reset(t.hits),e.page=t.criteria.page,e.perPage=t.criteria.per_page,e.total=t.num_found),i.getResponseHeader("link"),n.publishEvent("search:newResults",t)},error:function(t,e,n){return"timeout"===e?console.log("Timed out"):console.log("Search Error:",t,e,n)}})},e}(s)}),require.register("models/search/clause",function(t,e,n){var r,i,s,o=function(t,e){return function(){return t.apply(e,arguments)}},a={}.hasOwnProperty,l=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("models/base/model"),n.exports=r=function(t){function e(){return this.label=o(this.label,this),this.fieldLabel=o(this.fieldLabel,this),s=e.__super__.constructor.apply(this,arguments)}return l(e,t),e.operators=[{value:"AND",label:"AND"},{value:"OR",label:"OR"},{value:"NOT",label:"NOT"}],e.fields=[{value:"all",label:"Any Field"},{value:"abstract",label:"Abstract"},{value:"abstitle",label:"Abstract/Title"},{value:"affiliation",label:"Affiliation"},{value:"author",label:"Author"},{value:"refauth",label:"Cited Author"},{value:"collaboration",label:"Collaboration"},{value:"fulltext",label:"Full Text"},{value:"title",label:"Title"},{value:"pacs",label:"PACS"}],e.prototype.defaults={operator:"AND"},e.prototype.fieldLabel=function(){var t,n=this;return t=_.find(e.fields,function(t){return t.value===n.get("field")}),t?t.label:null},e.prototype.label=function(){return[this.fieldLabel(),this.get("value")].join(":")},e.prototype.isEmpty=function(){return _.isEmpty(this.get("value"))||this.get("value").match(/^\s+$/)},e}(i)}),require.register("models/search/criteria",function(t,e,n){"use strict";var r,i,s,o,a=function(t,e){return function(){return t.apply(e,arguments)}},l={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)l.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};s=e("models/base/model"),r=e("models/search/clause"),n.exports=i=function(t){function e(){return this.queryWithRestrictions=a(this.queryWithRestrictions,this),this.clearRestrictions=a(this.clearRestrictions,this),this.setRestrictions=a(this.setRestrictions,this),this.removeRestriction=a(this.removeRestriction,this),this.addRestriction=a(this.addRestriction,this),this.hasField=a(this.hasField,this),this.readableQuery=a(this.readableQuery,this),o=e.__super__.constructor.apply(this,arguments)}return u(e,t),e.sortOptions=[{label:"Most Recent",value:"recent"},{label:"Most Relevant",value:"relevance"},{label:"Oldest First",value:"oldest"},{label:"Most Cited",value:"most_cited"}],e.dateOptions=[{label:"Any time",value:""},{label:"Past Week",value:"week"},{label:"Past Month",value:"month"},{label:"Past Year",value:"year"},{label:"Custom Range",value:"custom"}],e.prototype.defaults={facets:{fields:["highlight","category","journal","publication_type"]},restrictions:{},type:"article",sort:"relevance"},e.prototype.readableQuery=function(){var t,e,n,r,i;if(n=[],_.isEmpty(this.get("q"))||this.hasField()||n.push(this.get("q")),e=this.nonEmptyClauses())for(r=0,i=e.length;i>r;r++)t=e[r],n.push(t.label());return n.join(", ")},e.prototype.hasField=function(){var t;return t=this.get("field"),!_.isUndefined(t)&&!_.isEmpty(t)&&"all"!==t&&""!==t},e.prototype.addRestriction=function(t,e){var n;return n=this.get("restrictions")[t],this.setRestrictions(t,(n||[]).concat(e))},e.prototype.removeRestriction=function(t,e){return this.setRestrictions(t,_.without(this.get("restrictions")[t],e))},e.prototype.setRestrictions=function(t,e){return this.get("restrictions")[t]=e,this.trigger("change:restrictions",this,this.get("restrictions")),this.trigger("change",this)},e.prototype.clearRestrictions=function(t){return this.setRestrictions(t,[])},e.prototype.queryWithRestrictions=function(){return{sort:this.get("sort"),page:this.get("page"),per_page:this.get("per_page"),q:this.get("q"),c:_.map(this.get("clauses"),function(t){return t.toJSON()}),restrictions:this.get("restrictions")}},e.prototype.isEmpty=function(){return _.isEmpty(this.get("q"))&&this.get("clauses")&&!_.any(this.get("clauses"),function(t){return!t.isEmpty()})},e.prototype.queryString=function(){return $.param(this.queryWithRestrictions())},e.prototype.nonEmptyClauses=function(){return _.select(this.get("clauses"),function(t){return t&&!_.isEmpty(t.get("value"))})},e.prototype.hasQuery=function(){return _.isEmpty(this.get("q"))?_.isEmpty(this.get("clauses"))?!1:_.any(this.get("clauses"),function(t){return!_.isEmpty(t.get("value"))})?!0:!1:!0},e.prototype.search=function(){var t=this;return $.ajax({type:"POST",url:"/search",dataType:"json",contentType:"application/json",data:JSON.stringify(this.toJSON()),success:function(e,n,r){return facets.set(e.facets),results.reset(e.hits),results.page=e.criteria.page,results.perPage=e.criteria.per_page,results.total=e.num_found,r.getResponseHeader("link"),t.publishEvent("search:newResults",e)},error:function(t,e,n){return"timeout"===e?console.log("Timed out"):console.log("Search Error:",t,e,n)}})},e}(s)}),require.register("models/search/facets",function(t,e,n){var r,i,s,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("models/base/model"),n.exports=r=function(t){function e(){return s=e.__super__.constructor.apply(this,arguments)}return a(e,t),e}(i)}),require.register("models/search/result",function(t,e,n){var r,i,s,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};r=e("models/base/model"),n.exports=i=function(t){function e(){return s=e.__super__.constructor.apply(this,arguments)}return a(e,t),e}(r)}),require.register("models/search/results",function(t,e,n){var r,i,s,o,a={}.hasOwnProperty,l=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};r=e("models/base/collection"),i=e("models/search/result"),n.exports=s=function(t){function e(){return o=e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.model=i,e}(r)}),require.register("models/spinner-config",function(t,e,n){var r;n.exports=r=function(){function t(){}return t.prototype.lines=11,t.prototype.length=2,t.prototype.width=2,t.prototype.radius=3,t.prototype.corners=1,t.prototype.rotate=0,t.prototype.direction=1,t.prototype.color="#222222",t.prototype.speed=1,t.prototype.trail=60,t.prototype.shadow=!1,t.prototype.hwaccel=!1,t.prototype.className="spinner",t.prototype.zIndex=2e9,t.prototype.top="auto",t.prototype.left="auto",t}()}),require.register("models/supplemental-material",function(t,e,n){var r,i,s,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};r=e("models/base/model"),n.exports=i=function(t){function e(){return s=e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.url=function(){return Chaplin.mediator.article[""+this.type+"Url"]()},e.prototype.initialize=function(t){return this.type=t.type,t},e}(r)}),require.register("models/tqc/tqc-article",function(t,e,n){"use strict";var r,i,s,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};r=e("models/base/model"),n.exports=i=function(t){function e(){return s=e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.url=function(){return"/qc/actions?doi="+this.get("id")},e.prototype.doAction=function(t,e){var n=this;return $.ajax({type:"PUT",url:"/qc/perform_action",data:{doi:this.get("id"),action:t,reason:this.get("reason")},success:function(t){return null!=e.success?e.success(t):void 0},error:function(t,r,i){return null!=e.error?e.error(n,t,r,i):void 0},complete:function(){return null!=e.complete?e.complete():void 0}})},e}(r)}),require.register("models/tqc/tqc-message",function(t,e,n){"use strict";var r,i,s,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("models/base/model"),n.exports=r=function(t){function e(){return s=e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.url=function(){return"/qc/messages?doi="+this.get("id")},e}(i)}),require.register("models/user",function(t,e,n){var r,i,s,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};r=e("models/base/model"),n.exports=i=function(t){function e(){return s=e.__super__.constructor.apply(this,arguments)}return a(e,t),e}(r)}),require.register("routes",function(t,e,n){n.exports=function(t){return t("","home#index"),t(":product/abstract/10.1103/:doi","articles#abstract"),t(":product/cited-by/10.1103/:doi","articles#cited_by"),t(":product/issues/:volume/:issue","issues#show"),t("search","search#index"),t("search/edit","search#edit"),t(":product/recent","browse#recent"),t(":product/highlights","browse#highlights"),t(":product/accepted","browse#accepted"),t(":product/subjects","browse#subjects"),t(":product/subjects/:subject","browse#subjects"),t("*page","pages#catchAll")}}),require.register("views/article-page-view",function(t,e,n){"use strict";var r,i,s,o,a,l,u,c={}.hasOwnProperty,p=function(t,e){function n(){this.constructor=t}for(var r in e)c.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};l=e("views/base/view"),i=e("views/article/export-article-view"),a=e("views/article/section-view"),o=e("views/article/fulltext-view"),s=e("views/article/figure-slider-view"),n.exports=r=function(t){function e(){return u=e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.autoRender=!0,e.prototype.region="main",e.prototype.el=$("#body"),e.prototype.events={"click .side-nav a":"clickNav"},e.prototype.initialize=function(){return e.__super__.initialize.apply(this,arguments),this.sections={},this},e.prototype.render=function(){var t;return e.__super__.render.apply(this,arguments),this.$("section.article").each(function(t,e){return"fulltext"===$(e).data("magellan-destination")?new o({el:e}):new a({el:e})}),new i({model:Chaplin.mediator.article}),t=$("#slideshow").eq(0),t&&new s({el:t}),this},e.prototype.clickNav=function(t){return this.sections[$(t.target).data("magellan-arrival")].show()},e}(l)}),require.register("views/article/article-action-modal-view",function(t,e,n){"use strict";var r,i,s,o,a,l=function(t,e){return function(){return t.apply(e,arguments)}},u={}.hasOwnProperty,c=function(t,e){function n(){this.constructor=t}for(var r in e)u.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};o=e("views/templates/article/export"),r=e("models/article"),s=e("views/base/view"),n.exports=i=function(t){function e(){return this.opened=l(this.opened,this),this.loadData=l(this.loadData,this),a=e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.autoRender=!1,e.prototype.el=$("#action-modal"),e.prototype.template=o,e.prototype.listen={"article:actions mediator":"stuff"},e.prototype.events={open:"opened"},e.prototype.initialize=function(){return e.__super__.initialize.apply(this,arguments)},e.prototype.stuff=function(){return console.log("here")},e.prototype.loadData=function(){var t=this;return this.$el.find("textarea").val("Loading..."),$.get(r.exportUrl(this.model.get("id"),this.format,this.product),function(e){return t.$el.find("textarea").val(e),t.$el.find("a[data-format]").removeClass("active"),t.$el.find("a[data-format='"+t.format+"']").addClass("active")})},e.prototype.opened=function(){return this.render(),this.loadData()},e}(s)}),require.register("views/article/article-cited-by-page-view",function(t,e,n){"use strict";var r,i,s,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("views/base/view"),n.exports=r=function(t){function e(){return s=e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.autoRender=!0,e.prototype.region="main",e.prototype.el=$("#body"),e.prototype.events={"click .facet-group input":"clickFacet"},e.prototype.initialize=function(){return e.__super__.initialize.apply(this,arguments),this},e.prototype.render=function(){return e.__super__.render.apply(this,arguments),this},e.prototype.clickFacet=function(t){var e,n,r,i,s;return e=$(t.target),s=e.val(),"all"===s&&e.is(":checked")?this.$el.find("input[value!='all']").prop("checked",!1):e.is(":checked")&&this.$el.find("input[value='all']").prop("checked",!1),r=_.map(this.$el.find(".facet-group input:checked"),function(t){return t.value}),_.isEmpty(r)&&this.$el.find("input[value='all']").prop("checked",!0),n={},"all"!==r[0]&&(n.journal=r),i=window.location.pathname+"?"+Chaplin.utils.queryParams.stringify(n),document.location.href=i},e}(i)}),require.register("views/article/export-article-view",function(t,e,n){"use strict";var r,i,s,o,a,l=function(t,e){return function(){return t.apply(e,arguments)}},u={}.hasOwnProperty,c=function(t,e){function n(){this.constructor=t}for(var r in e)u.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};o=e("views/templates/article/export"),r=e("models/article"),s=e("views/base/view"),n.exports=i=function(t){function e(){return this.opened=l(this.opened,this),this.loadData=l(this.loadData,this),a=e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.autoRender=!1,e.prototype.el=$("#export-article"),e.prototype.template=o,e.prototype.events={open:"opened","focus textarea":"selectAll","click #drop-format a":"selectFormat"},e.prototype.initialize=function(t){return e.__super__.initialize.apply(this,arguments),this.format=t.format||"bibtex",this.product=t.product},e.prototype.loadData=function(){var t=this;return this.$el.find("textarea").val("Loading..."),$.get(r.exportUrl(this.model.get("id"),this.format,this.product),function(e){var n;
return t.$el.find("textarea").val(e),t.$el.find("a[data-format]").removeClass("active"),t.$el.find("a[data-format='"+t.format+"']").addClass("active"),n={bibtex:"BibTeX",ris:"EndNote (RIS)"},t.$el.find("#article-export-dropdown").html("Format: "+n[t.format])})},e.prototype.opened=function(){return this.render(),this.loadData()},e.prototype.selectFormat=function(t){return t.preventDefault(),this.format=$(t.target).data("format"),this.loadData(),this.$el.find("#drop-format").trigger("close"),this.$el.find("#download-citation").attr("href",r.exportUrl(this.model.get("id"),this.format,this.product)+"&download=true")},e.prototype.selectAll=function(t){var e;return e=$(t.target),e.select(),e.mouseup(function(){return e.unbind("mouseup"),!1})},e.prototype.getTemplateData=function(){return{downloadUrl:r.exportUrl(this.model.get("id"),this.format,this.product)+"&download=true"}},e}(s)}),require.register("views/article/figure-slider-view",function(t,e,n){"use strict";var r,i,s,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("views/base/view"),n.exports=r=function(t){function e(){return s=e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.autoRender=!0,e.prototype.events={opened:"opened"},e.prototype.opened=function(){return $(window).trigger("resize")},e}(i)}),require.register("views/article/fulltext-view",function(t,e,n){var r,i,s,o,a,l={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)l.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};o=e("views/base/view"),i=e("models/article/section"),s=e("models/spinner-config"),n.exports=r=function(t){function e(){return a=e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.autoRender=!1,e.prototype.events={"click h4.title":"toggleSection","click li#ft-next-page":"nextPage","click li#ft-prev-page":"prevPage"},e.prototype.initialize=function(){var t,n,r;return e.__super__.initialize.apply(this,arguments),this.$el.data("magellan-destination"),this.model=new i({name:this.$el.data("magellan-destination")}),this.$contentEl=this.$el.find("div.content").eq(0),t=null!=(n=null!=(r=this.model.get("page"))?r:this.model.get("page"))?n:1,this.model.set("page",t),this},e.prototype.show=function(){return"no"===this.$contentEl.data("loaded")&&(this.$contentEl.append(new Spinner(s).spin().el),this.loadContent()),this.$contentEl.slideDown(),this.$el.addClass("open")},e.prototype.hide=function(){return this.$contentEl.slideUp(),this.$el.find("#ft-pagination").hide(),this.$el.removeClass("open")},e.prototype.loadContent=function(){var t=this;return this.model.content({success:function(e){var n;return n=JSON.parse(e),t.model.set("totalPages",n.total_pages),t.$contentEl.html(n.output).data("loaded","yes")},error:function(t,e){return console.log("FETCH ERROR",e)},complete:function(){return t.$contentEl.scrollTop(),t.$el.find("#ft-pagination").show(),MathJax.Hub.Queue(["Typeset",MathJax.Hub,"fulltext-content"])}})},e.prototype.reloadContent=function(){return this.$contentEl.scrollTop(),this.$contentEl.data("loaded","no"),this.$contentEl.html(new Spinner(s).spin().el),this.loadContent()},e.prototype.showPaginators=function(){return this.$el.find("#ft-prev-page").show(),this.$el.find("#ft-next-page").show(),this.model.get("page")===this.model.get("totalPages")?this.$el.find("#ft-next-page").hide():this.$el.find("#ft-next-page").show()},e.prototype.nextPage=function(){return this.model.set("page",this.model.get("page")+1),this.reloadContent(),this.showPaginators()},e.prototype.prevPage=function(){return this.model.set("page",this.model.get("page")-1),this.reloadContent(),this.showPaginators()},e.prototype.toggleSection=function(t){return t.preventDefault(),this.$contentEl.is(":visible")?this.hide():this.show()},e}(o)}),require.register("views/article/section-view",function(t,e,n){var r,i,s,o,a,l,u={}.hasOwnProperty,c=function(t,e){function n(){this.constructor=t}for(var r in e)u.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};a=e("views/base/view"),r=e("models/article/section"),o=e("views/article/supplemental-material-view"),s=e("models/spinner-config"),n.exports=i=function(t){function e(){return l=e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.autoRender=!0,e.prototype.events={"click h4.title":"toggleSection","click .help-message":"toggleSection"},e.prototype.initialize=function(){return e.__super__.initialize.apply(this,arguments),this.model=new r({name:this.$el.data("magellan-destination")}),this.$contentEl=this.$el.find("div.content").eq(0),this},e.prototype.render=function(){return e.__super__.render.apply(this,arguments),this.$el.find(".title").attr("title","Click To Expand/Collapse"),this.$el.find(".content").after('<div class="help-message">Click to Expand</div>'),$(window).width()<768?this.$el.removeClass("open").find(".content").hide():this.$el.hasClass("open")?(this.$el.find(".content").show(),this.$el.find(".help-message").hide()):(this.$el.find(".content").hide(),this.$el.find(".help-message").show()),this},e.prototype.show=function(){var t=this;if(!this.$contentEl.is("visible"))return"no"===this.$contentEl.data("loaded")&&(this.$contentEl.append(new Spinner(s).spin().el),"supplemental"===this.model.get("name")||"multimedia"===this.model.get("name")?(new o({el:this.$contentEl,type:this.model.get("name")}),this.$contentEl.data("loaded","yes")):this.model.content({success:function(e){return t.$contentEl.html(e).data("loaded","yes")},error:function(t,e){return console.log("FETCH ERROR",e)}})),this.$contentEl.slideDown(),this.$el.addClass("open"),this.$el.find(".title").attr("title","Click To Collapse"),this.$el.find(".help-message").hide()},e.prototype.hide=function(){return this.$contentEl.slideUp(),this.$el.removeClass("open"),this.$el.find(".title").attr("title","Click To Expand"),this.$el.find(".help-message").show()},e.prototype.toggleSection=function(t){return t.preventDefault(),this.$contentEl.is(":visible")?this.hide():this.show()},e}(a)}),require.register("views/article/supplemental-material-view",function(t,e,n){var r,i,s,o,a,l,u={}.hasOwnProperty,c=function(t,e){function n(){this.constructor=t}for(var r in e)u.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};a=e("views/templates/article/supplemental-material"),o=e("views/base/view"),r=e("models/supplemental-material"),s=e("views/article/video-player-modal-view"),n.exports=i=function(t){function e(){return l=e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.autoRender=!1,e.prototype.template=a,e.prototype.events={"click a[data-type='video']":"showVideo"},e.prototype.initialize=function(t){var n=this;return e.__super__.initialize.apply(this,arguments),this.model=new r({type:t.type}),this.model.fetch({success:function(){return n.render()}}),this},e.prototype.render=function(){return e.__super__.render.apply(this,arguments),this.video_player||(this.video_player=new s({el:$("#video-player")})),this},e.prototype.showVideo=function(t){var e,n;return t.preventDefault(),e=$(t.target),n=_.find(this.model.get("components"),function(t){return t.id===e.data("id")}),n?this.video_player.show(n):void 0},e}(o)}),require.register("views/article/video-player-modal-view",function(t,e,n){"use strict";var r,i,s,o,a={}.hasOwnProperty,l=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};s=e("views/templates/article/video-player"),i=e("views/base/view"),n.exports=r=function(t){function e(){return o=e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.autoRender=!1,e.prototype.template=s,e.prototype.initialize=function(){return e.__super__.initialize.apply(this,arguments)},e.prototype.show=function(t){return this.video=t,this.render()},e.prototype.render=function(){return e.__super__.render.apply(this,arguments),this.$el.foundation("reveal","open"),this},e.prototype.getTemplateData=function(){return this.video},e}(i)}),require.register("views/base/collection-view",function(t,e,n){var r,i,s,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("views/base/view"),n.exports=r=function(t){function e(){return s=e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.getTemplateFunction=i.prototype.getTemplateFunction,e}(Chaplin.CollectionView)}),require.register("views/base/view",function(t,e,n){var r,i,s={}.hasOwnProperty,o=function(t,e){function n(){this.constructor=t}for(var r in e)s.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};e("lib/view-helper"),n.exports=r=function(t){function e(){return i=e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.getTemplateFunction=function(){return this.template},e}(Chaplin.View)}),require.register("views/browse/browse-page-view",function(t,e,n){"use strict";var r,i,s,o,a,l={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)l.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};o=e("views/base/view"),i=e("views/browse/facet-group-view"),s=e("views/search/search-results-view"),n.exports=r=function(t){function e(){return a=e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.autoRender=!0,e.prototype.regions={header:"#header",sidebar:"#search-sidebar",form:"#search-main",title:"#title"},e.prototype.listen={"change model":"refresh"},e.prototype.initialize=function(t){return e.__super__.initialize.apply(this,arguments),this.resultFormat=t.resultFormat},e.prototype.refresh=function(){return this.model.search({results:this.collection})},e.prototype.render=function(){var t,n=this;return e.__super__.render.apply(this,arguments),_.each(this.$el.find(".facet-group"),function(t){return new i({model:n.model,el:t})}),t=new s({collection:this.collection,el:$("#search-result-list"),noWrap:!0,autoRender:!0,renderItems:!1,prerendered:!0,resultFormat:this.resultFormat}),this.subview("results",t),this},e}(o)}),require.register("views/browse/facet-group-view",function(t,e,n){"use strict";var r,i,s,o,a,l={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)l.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},c=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};s=e("views/base/view"),i=e("models/search/facets"),o=e("views/browse/templates/facet"),n.exports=r=function(t){function e(){return a=e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.autoRender=!1,e.prototype.events={"click input":"selectFacet"},e.prototype.listen={"search:newResults mediator":"results"},e.prototype.initialize=function(){return e.__super__.initialize.apply(this,arguments),this.name=this.$el.data("name")},e.prototype.selectFacet=function(t){var e,n,r,i;return e=$(t.target),n=e.attr("name"),i=e.val(),r=_.clone(this.model.get(this.name)),r||(r=[]),"all"===i&&e.is(":checked")?(r=[],this.$el.find("input[value!='all']").prop("checked",!1)):e.is(":checked")?(this.$el.find("input[value='all']").prop("checked",!1),""!==i&&r.push(i)):(_.pull(r,i),_.isEmpty(r)&&this.$el.find("input[value='all']").prop("checked",!0)),_.isEmpty(r)?this.model.unset(n):this.model.set(n,r)},e.prototype.results=function(t){var e,n,r,i,s,a;n=[],r=this.model.get(this.name),a=_.clone(t.facets[this.name]);for(s in a)e=a[s],null!=r&&c.call(r,s)>=0&&(e.selected=!0),(null==e.count||0===e.count)&&(e.disabled=!0),n.push(e);return n.unshift({label:"ALL",value:"all",noCount:!0,selected:_.isEmpty(this.model.get(this.name))}),i={key:this.name,list:n},this.$el.find("form").html(o(i))},e}(s)}),require.register("views/browse/templates/facet",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){function s(t,e,r){var i,s,u,c="";return c+='\n  <label class="',u={hash:{},inverse:f.noop,fn:f.program(2,o,e),data:e},(i=n.disabled)?i=i.call(t,u):(i=t.disabled,i=typeof i===g?i.apply(t):i),n.disabled||(i=m.call(t,i,u)),(i||0===i)&&(c+=i),c+='">\n    <input type="checkbox"\n           name="'+d((i=r.key,typeof i===g?i.apply(t):i))+'"\n           value="',(s=n.value)?s=s.call(t,{hash:{},data:e}):(s=t.value,s=typeof s===g?s.apply(t):s),c+=d(s)+'"\n           ',u={hash:{},inverse:f.noop,fn:f.program(4,a,e),data:e},(s=n.selected)?s=s.call(t,u):(s=t.selected,s=typeof s===g?s.apply(t):s),n.selected||(s=m.call(t,s,u)),(s||0===s)&&(c+=s),c+="\n           />\n    ",(s=n.label)?s=s.call(t,{hash:{},data:e}):(s=t.label,s=typeof s===g?s.apply(t):s),c+=d(s)+"\n    ",s=n.unless.call(t,t.noCount,{hash:{},inverse:f.noop,fn:f.program(6,l,e),data:e}),(s||0===s)&&(c+=s),c+="\n  </label>\n"}function o(){return"disabled"}function a(){return"checked"}function l(t,e){var r,i,s="";return s+="\n      ",i={hash:{},inverse:f.noop,fn:f.program(7,u,e),data:e},(r=n.count)?r=r.call(t,i):(r=t.count,r=typeof r===g?r.apply(t):r),n.count||(r=m.call(t,r,i)),(r||0===r)&&(s+=r),s+="\n    "}function u(t,e){var r,i,s="";return s+="(",i={hash:{},data:e},s+=d((r=n.digitGrouping||t.digitGrouping,r?r.call(t,t,i):h.call(t,"digitGrouping",t,i)))+")"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{};var c,p,h=n.helperMissing,d=this.escapeExpression,f=this,g="function",m=n.blockHelperMissing;return p={hash:{},inverse:f.noop,fn:f.programWithDepth(1,s,i,e),data:i},(c=n.list)?c=c.call(e,p):(c=e.list,c=typeof c===g?c.apply(e):c),n.list||(c=m.call(e,c,p)),c||0===c?c:""});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/footer-view",function(t,e,n){var r,i,s,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("views/base/view"),n.exports=r=function(t){function e(){return s=e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.autoRender=!1,e.prototype.region="footer",e.prototype.el=$("footer"),e.prototype.events={"click .title":"toggleLinkBlock","click #footer-top .footer-drop":"toggleLinkBar"},e.prototype.render=function(){return this.autoAttach&&this.attach.apply(this,arguments),this},e.prototype.toggleLinkBlock=function(t){return $(t.target).next("div.content").slideToggle()},e.prototype.toggleLinkBar=function(t){return $(window).width()<769?($(t.target).toggleClass("open"),this.$el.find(".footer-drop-links").slideToggle()):void 0},e}(i)}),require.register("views/home-page-view",function(t,e,n){var r,i,s,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("views/base/view"),n.exports=r=function(t){function e(){return s=e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.autoRender=!0,e.prototype.className="home-page",e.prototype.initialize=function(t){return e.__super__.initialize.apply(this,arguments),this.rootHomepage=t.rootHomepage},e.prototype.render=function(){var t;return e.__super__.render.apply(this,arguments),$(window).width()<481&&(t=$("#header h2.title"),!t.hasClass("open"))?t.click():void 0},e}(i)}),require.register("views/issues/issue-page-view",function(t,e,n){"use strict";var r,i,s,o,a,l,u={}.hasOwnProperty,c=function(t,e){function n(){this.constructor=t}for(var r in e)u.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("models/search/result"),a=e("views/base/view"),o=e("views/article/section-view"),s=e("views/search/search-result-view"),n.exports=r=function(t){function e(){return l=e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.autoRender=!0,e.prototype.region="main",e.prototype.el=$("#body"),e.prototype.events={"click .side-nav a":"clickNav"},e.prototype.initialize=function(){return e.__super__.initialize.apply(this,arguments),this.sections={},this},e.prototype.render=function(){var t,n,r,a,l,u,c,p=this;for(e.__super__.render.apply(this,arguments),this.$("section").each(function(t,e){return p.sections[$(e).attr("id")]=new o({el:e})}),c=this.$el.find("div.article"),l=0,u=c.length;u>l;l++)n=c[l],a=new i({id:$(n).data("id")}),this.subview("itemView:"+a.cid,new s({autoRender:!1,autoAttach:!0,resultFormat:this.resultFormat,model:a,el:n}));return t=this.$("#toc-sidebar"),r=function(){return t.width(t.parent("div").width())},r(),$(window).resize(function(){return r()}),this},e.prototype.clickNav=function(t){return this.sections[$(t.target).data("magellan-arrival")].show()},e}(a)}),require.register("views/report-bug-view",function(t,e,n){var r,i,s,o,a,l=function(t,e){return function(){return t.apply(e,arguments)}},u={}.hasOwnProperty,c=function(t,e){function n(){this.constructor=t}for(var r in e)u.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("views/base/view"),s=e("views/templates/report-bug/form"),o=e("views/templates/report-bug/status"),n.exports=r=function(t){function e(){return this.sendReport=l(this.sendReport,this),this.opened=l(this.opened,this),a=e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.autoRender=!1,e.prototype.el=$("#report-bug-modal"),e.prototype.template=s,e.prototype.events={open:"opened","submit form":"sendReport"},e.prototype.opened=function(){return this.render(),this.$el.foundation("forms"),this},e.prototype.sendReport=function(t){var e,n=this;return t.preventDefault(),_.isEmpty(this.$el.find('input[name="email"]').val())?this.$el.find("#feedback-notices").addClass("alert-box alert").text("Email address is required"):(this.$el.find("#feedback-notices").removeClass("alert-box alert").text(""),e={url:document.URL,type:this.$el.find("select").val(),comments:this.$el.find("textarea").val(),email:this.$el.find('input[name="email"]').val()},$.ajax({type:"POST",url:"/debug/send_report",data:e,success:function(){return n.$el.html(o)}})),this},e}(i)}),require.register("views/search/date-facet-group-view",function(t,e,n){"use strict";var r,i,s,o,a={}.hasOwnProperty,l=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};s=e("views/base/view"),r=e("models/search/criteria"),n.exports=i=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return l(n,t),n.prototype.title="Date",n.prototype.key="date",n.prototype.template=e("./templates/date-facets"),n.prototype.events={"click a":"dateSelect","submit form":"submitForm","keyup form input":"keyup"},n.prototype.initialize=function(t){return n.__super__.initialize.apply(this,arguments),this.searchService=t.searchService,this.title=t.title||this.title,this.key=t.key||this.key,this.enableAll=t.enableAll,this},n.prototype.dateSelect=function(t){var e;return t.preventDefault(),e=$(t.target).data("date"),t.preventDefault(),e=$(t.target).data("date"),this.$el.find(".date-options a.selected").removeClass("selected"),$(t.target).addClass("selected"),this.$el.find('input[name="date"]').val(e),"custom"===e?this.$el.find(".custom-date-range").show():(this.$el.find(".custom-date-range").hide(),this.searchService.criteria.set({start_date:e,end_date:null}),this.searchService.search())},n.prototype.submitForm=function(t){var e,n;return t.preventDefault(),n=this.$el.find("input[name='start_date']").first().val(),e=this.$el.find("input[name='end_date']").first().val(),this.searchService.criteria.set({start_date:n,end_date:e}),this.searchService.search()},n.prototype.keyup=function(t){return 13===t.keyCode?this.$el.find("form").submit():void 0},n.prototype.hasCustom=function(){var t;return t=this.searchService.criteria.get("start_date"),null!==t&&""!==t&&"week"!==t&&"month"!==t&&"year"!==t},n.prototype.getTemplateData=function(){var t=this;return{title:this.title,key:this.key,enableAll:this.enableAll,hasCustom:this.hasCustom(),startDate:this.searchService.criteria.get("start_date"),endDate:this.searchService.criteria.get("end_date"),list:_.map(r.dateOptions,function(e){var n;return e=_.clone(e),n=t.searchService.criteria.get("start_date"),(e.value===n||"custom"===e.value&&null!==n&&""!==n&&"week"!==n&&"month"!==n&&"year"!==n)&&(e.selected=!0),e})}},n}(s)}),require.register("views/search/facet-group-view",function(t,e,n){"use strict";var r,i,s,o,a=function(t,e){return function(){return t.apply(e,arguments)}},l={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)l.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("views/base/view"),s=e("./templates/facet-group"),n.exports=r=function(t){function e(){return this.facetValues=a(this.facetValues,this),this.selectFacet=a(this.selectFacet,this),o=e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.template=s,e.prototype.events={"click input":"selectFacet"},e.prototype.initialize=function(t){return e.__super__.initialize.apply(this,arguments),this.searchService=t.searchService,this.title=t.title||this.title,this.key=t.key||this.key,this.enableAll=t.enableAll,null!=t.facets&&(this.facets=t.facets),this},e.prototype.selectFacet=function(t){var e,n,r;return e=$(t.target),n=e.attr("name"),r=e.val(),""===r?this.searchService.criteria.clearRestrictions(n):e.is(":checked")?this.searchService.criteria.addRestriction(n,r):this.searchService.criteria.removeRestriction(n,r),this.searchService.search()},e.prototype.facetValues=function(){var t,e,n,r,i,s,o,a;if(n=this.searchService.facets.get(this.key),s=this.searchService.criteria.get("restrictions")[this.key],o=0,i=[],r=!1,this.facets)i=_.map(this.facets,function(t){var e,i;return e={value:t.value,label:t.label,count:null!=n?null!=(i=n[t.value])?i.count:void 0:void 0},e.count&&(o+=e.count),_.include(s,e.value)&&(r=!0,e.selected=!0),e});else for(a in n)t=n[a],o+=t.count,e={value:a,label:t.label||a,count:t.count},_.include(s,a)&&(r=!0,e.selected=!0),i.push(e);return i.unshift({label:"ALL",value:"",count:0===o?null:o,selected:!r}),i},e.prototype.getTemplateData=function(){return{title:this.title,key:this.key,enableAll:this.enableAll,list:this.facetValues()}},e}(i)}),require.register("views/search/journal-facet-group-view",function(t,e,n){var r,i,s,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};r=e("views/search/facet-group-view"),n.exports=i=function(t){function e(){return s=e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.title="Journals",e.prototype.key="journal",e.prototype.facets=[{label:"Phys. Rev. Lett.",value:"prl"},{label:"Phys. Rev. A",value:"pra"},{label:"Phys. Rev. B",value:"prb"},{label:"Phys. Rev. C",value:"prc"},{label:"Phys. Rev. D",value:"prd"},{label:"Phys. Rev. E",value:"pre"},{label:"Phys. Rev. X",value:"prx"},{label:"Phys. Rev. Applied",value:"prapplied"},{label:"Phys. Rev. ST Accel. Beams",value:"prstab"},{label:"Phys. Rev. ST Phys. Educ. Res.",value:"prstper"},{label:"Rev. Mod. Phys.",value:"rmp"},{label:"Phys. Rev.",value:"pr"},{label:"Phys. Rev. (Series I)",value:"pri"},{label:"Physics",value:"physics"},{label:"Phys. Rev. Focus",value:"focus"}],e}(r)}),require.register("views/search/pagination-view",function(t,e,n){"use strict";var r,i,s,o,a={}.hasOwnProperty,l=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("views/base/view"),s=e("./templates/pagination-links"),n.exports=r=function(t){function e(){return o=e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.template=s,e.prototype.listen={"reset collection":"render"},e.prototype.events={"click a":"selectPage"},e.prototype.initialize=function(t){return this.searchService=t.searchService,this.collection=this.searchService.results},e.prototype.numPages=function(){return{start:results.page,end:results.page*results.perPage,total:results.total}},e.prototype.pageNumbers=function(t,e,n){var r,i,s,o,a,l,u,c;return l=Math.ceil(e/n),r=2,o=1,u=t-r,c=t+r,c>l&&(u-=c-l,c=l),1>u&&(c+=1-u,u=1,c>l&&(c=l)),s=_.range(u,c+1),o+3<s[0]?(i=_.range(1,o+1),i.push("gap")):i=_.range(1,s[0]-1),l-o-2>s.slice(-1)?(a=_.range(l-o,l+1),a.unshift("gap")):a=_.range(s.slice(-1)+1,l+1),i.concat(s,a)},e.prototype.links=function(){var t,e,n,r,i,s=this;return t=this.searchService.criteria.get("page"),r=this.searchService.results.total,n=this.searchService.results.perPage,i=Math.ceil(r/n),e=[],1===i?e:(e.push(this.paginationLink(_.max([1,t-1]),"&laquo;",t>1?"":"arrow unavailable")),_.each(this.pageNumbers(t,r,n),function(n){return"gap"===n?e.push(s.paginationLink(1,"&hellip;","unavailable")):e.push(s.paginationLink(n,null,t===n?"current":""))}),e.push(this.paginationLink(_.min([t+1,i]),"&raquo;",t===i?"unavailable":"")),e)},e.prototype.getTemplateData=function(){return{links:this.links()}},e.prototype.paginationLink=function(t,e,n){return null==e&&(e=null),null==n&&(n=null),{number:t,text:e||Swag.helpers.digitGrouping(t),"class":n}},e.prototype.selectPage=function(t){var e;return t.preventDefault(),$(t.target).parent().is(".unavailable, .current")?void 0:(e=parseInt($(t.target).data("page")),this.searchService.criteria.set({page:e}),this.searchService.search(),$("body,html").animate({scrollTop:0},600))},e}(i)}),require.register("views/search/search-clause-view",function(t,e,n){var r,i,s,o,a,l={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)l.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};s=e("views/base/view"),r=e("models/search/clause"),o=e("./templates/clause"),n.exports=i=function(t){function e(){return a=e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.autoRender=!1,e.prototype.template=o,e.prototype.update=function(){return this.model.set({operator:this.$el.find("select[name='c[][operator]']").val(),field:this.$el.find("select[name='c[][field]']").val(),value:this.$el.find("input[name='c[][value]']").val()})},e.prototype.operators=function(){var t=this;return _.map(r.operators,function(e){return{value:e.value,label:e.label,selected:e.value===t.model.get("operator")}})},e.prototype.fields=function(){var t=this;return _.map(r.fields,function(e){return{value:e.value,label:e.label,selected:e.value===t.model.get("field")}})},e.prototype.getTemplateData=function(){return{operators:this.operators(),fields:this.fields(),value:this.model.get("value")}},e}(s)}),require.register("views/search/search-form-view",function(t,e,n){"use strict";var r,i,s,o,a={}.hasOwnProperty,l=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("views/base/view"),s=e("./templates/clause"),n.exports=r=function(t){function e(){return o=e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.autoRender=!1,e.prototype.events={"click .add-clause":"addClause","click .date-options a":"toggleDate","click .facet-group input":"toggleFacet"},e.prototype.initialize=function(t){return e.__super__.initialize.apply(this,arguments),this.searchService=t.searchService,this},e.prototype.render=function(){return e.__super__.render.apply(this,arguments),this},e.prototype.addClause=function(t){return t.preventDefault(),this.$el.find("a.add-clause").hide(),this.$el.find(".clauses").append(s()),this.$el.foundation("forms"),this},e.prototype.toggleDate=function(t){var e;return t.preventDefault(),e=$(t.target).data("date"),this.$el.find(".date-options a.selected").removeClass("selected"),$(t.target).addClass("selected"),this.$el.find('input[name="date"]').val(e),"custom"===e?this.$el.find(".custom-date-range").show():(this.$el.find(".custom-date-range").hide(),this.$el.find('input[name="start_date"], input[name="end_date"]').val(""))},e.prototype.toggleFacet=function(t){var e,n;return e=$(t.target),n=e.attr("name"),e.is(":checked")?_.isEmpty(e.val())||"all"===e.val()?this.$el.find("input[name='"+n+"'][value!='all']").prop("checked",!1):this.$el.find("input[name='"+n+"'][value='all']").prop("checked",!1):0===this.$el.find("input[name='"+n+"']:checked").length?this.$el.find("input[name='"+n+"'][value='all']").prop("checked",!0):void 0},e}(i)}),require.register("views/search/search-page-view",function(t,e,n){"use strict";var r,i,s,o,a,l={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)l.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};o=e("views/base/view"),r=e("views/search/search-form-view"),s=e("views/search/search-sidebar-view"),n.exports=i=function(t){function e(){return a=e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.autoRender=!0,e.prototype.initialize=function(t){return e.__super__.initialize.apply(this,arguments),this.searchService=t.searchService},e.prototype.render=function(){var t;return e.__super__.render.apply(this,arguments),t=new r({el:$("#search-form"),searchService:this.searchService,autoRender:!0}),this.subview("searchForm",t),this.$el.foundation("forms"),this},e}(o)}),require.register("views/search/search-result-view",function(t,e,n){var r,i,s,o,a,l,u,c,p={}.hasOwnProperty,h=function(t,e){function n(){this.constructor=t}for(var r in e)p.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};a=e("views/base/view"),u=e("./templates/result"),l=e("./templates/accepted-result"),o=e("models/spinner-config"),r=e("models/article"),i=e("views/article/export-article-view"),n.exports=s=function(t){function e(){return c=e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.autoRender=!1,e.prototype.getTemplateFunction=function(){return"accepted"===this.resultFormat?l:u},e.prototype.events={"click .reveal-abstract":"revealAbstract","click .reveal-export":"revealExport","click .expand":"revealActions"},e.prototype.initialize=function(t){return e.__super__.initialize.apply(this,arguments),this.resultFormat=t.resultFormat,t},e.prototype.revealExport=function(t){var n,s;return n=$(t.target).attr("data-id"),s=$(t.target).attr("data-jcode"),e.exportView&&(e.exportView.undelegateEvents(),delete e.exportView),e.exportView=new i({model:new r({id:n}),product:s,el:$("#export-article")}),e.exportView.opened(),$("#export-article").foundation("reveal","open")},e.prototype.revealAbstract=function(t){var e,n=this;return t.preventDefault(),this.$el.find(".summary").append(new Spinner(o).spin().el),e=this.model.has("item")?this.model.get("item").identifiers.doi:this.model.get("id"),$.ajax({url:"/_api/v1/articles/"+e+"/abstract",method:"GET",success:function(t){var e;return e=n.$el.find(".summary").first(),e.html(t),n.publishEvent("mathjax:typeset",e),n.$el.find(".reveal-abstract").remove()}})},e.prototype.revealActions=function(t){return t.preventDefault(),console.log("here")},e}(a)}),require.register("views/search/search-results-page-view",function(t,e,n){"use strict";var r,i,s,o,a,l,u,c,p={}.hasOwnProperty,h=function(t,e){function n(){this.constructor=t}for(var r in e)p.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};l=e("views/base/view"),u=e("./templates/results"),o=e("views/search/search-results-view"),a=e("views/search/search-sidebar-view"),s=e("views/search/search-results-title-view"),r=e("views/search/pagination-view"),n.exports=i=function(t){function e(){return c=e.__super__.constructor.apply(this,arguments)
}return h(e,t),e.prototype.autoRender=!0,e.prototype.regions={header:"#header",sidebar:"#search-sidebar",results:"#search-main",title:"#title"},e.prototype.template=u,e.prototype.initialize=function(t){return e.__super__.initialize.apply(this,arguments),this.searchService=t.searchService},e.prototype.render=function(){var t,n,i,l;return e.__super__.render.apply(this,arguments),n=new o({region:"results",collection:this.searchService.results,autoRender:!0}),this.subview("searchResults",n),i=new a({region:"sidebar",searchService:this.searchService}),this.subview("searchSidebar",i),l=new s({region:"title",searchService:this.searchService}),this.subview("searchTitle",l),t=new r({region:"results",searchService:this.searchService}),this.subview("paginationView",t),this.$el.foundation("forms"),this},e.prototype.getTemplateData=function(){return{query:this.searchService.criteria.readableQuery(),editUrl:window.APS.searchEditURL,user:Chaplin.mediator.user}},e}(l)}),require.register("views/search/search-results-title-view",function(t,e,n){var r,i,s,o,a={}.hasOwnProperty,l=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("views/base/view"),s=e("./templates/results-title"),n.exports=r=function(t){function e(){return o=e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.template=s,e.prototype.initialize=function(t){return this.searchService=t.searchService,this.searchService.subscribeEvent("search:newResults",this.render)},e.prototype.getTemplateData=function(){var t;return t=this.searchService.results,{query:this.searchService.criteria.readableQuery,start:(t.page-1)*t.perPage+1,end:_.min([t.page*t.perPage,t.total]),total:t.total}},e.prototype.render=function(){return e.__super__.render.apply(this,arguments),this.$el.foundation("forms"),this},e}(i)}),require.register("views/search/search-results-view",function(t,e,n){"use strict";var r,i,s,o,a,l,u={}.hasOwnProperty,c=function(t,e){function n(){this.constructor=t}for(var r in e)u.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};s=e("models/search/result"),r=e("views/base/collection-view"),o=e("views/search/search-result-view"),i=e("views/search/pagination-view"),n.exports=a=function(t){function e(){return l=e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.autoRender=!1,e.prototype.itemSelector="div.article",e.prototype.initItemView=function(t){return new o({autoRender:!1,resultFormat:this.resultFormat,model:t})},e.prototype.initialize=function(t){return this.prerendered=t.prerendered,this.resultFormat=t.resultFormat,e.__super__.initialize.apply(this,arguments),this.on("addedToDOM",function(){return this.publishEvent("mathjax:typeset",this.$el)}),this.prerendered?this.initPrerendered():void 0},e.prototype.renderAllItems=function(){return this.prerendered&&(this.$el.empty(),this.prerendered=!1),e.__super__.renderAllItems.apply(this,arguments)},e.prototype.initPrerendered=function(){var t,e,n,r,i,a;for(i=this.$el.find(this.itemSelector),a=[],n=0,r=i.length;r>n;n++)t=i[n],e=new s({id:$(t).data("id")}),a.push(this.subview("itemView:"+e.cid,new o({autoRender:!1,autoAttach:!0,resultFormat:this.resultFormat,model:e,el:t})));return a},e}(r)}),require.register("views/search/search-sidebar-view",function(t,e,n){var r,i,s,o,a,l,u,c,p={}.hasOwnProperty,h=function(t,e){function n(){this.constructor=t}for(var r in e)p.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};l=e("views/base/view"),u=e("./templates/sidebar"),r=e("models/search/criteria"),s=e("views/search/facet-group-view"),o=e("views/search/journal-facet-group-view"),i=e("views/search/date-facet-group-view"),n.exports=a=function(t){function e(){return c=e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.regions={facets:"#search-facets"},e.prototype.template=u,e.prototype.events={"change select[name='sort']":"changeSort"},e.prototype.initialize=function(t){return e.__super__.initialize.apply(this,arguments),this.searchService=t.searchService,this.searchService.subscribeEvent("search:newResults",this.render),this.enableAll=t.enableAll,this},e.prototype.render=function(){var t,n,r,a;return e.__super__.render.apply(this,arguments),r=new s({region:"facets",searchService:this.searchService,autoRender:!0,title:"Highlights",key:"highlight",enableAll:this.enableAll}),this.subview("highlightFacet",r),t=new s({region:"facets",searchService:this.searchService,autoRender:!0,title:"Category",key:"category",enableAll:this.enableAll}),this.subview("categoryFacet",t),a=new o({region:"facets",searchService:this.searchService,autoRender:!0,enableAll:this.enableAll}),this.subview("journalFacet",a),n=new i({region:"facets",searchService:this.searchService,autoRender:!0}),this.subview("dateFacet",n),this},e.prototype.changeSort=function(t){var e;return e=$(t.target),this.searchService.criteria.set({sort:e.val()}),this.searchService.search()},e.prototype.sortOptions=function(){var t;return t=this.searchService.criteria.get("sort"),_.map(r.sortOptions,function(e){return e=_.clone(e),e.value===t&&(e.selected=!0),e})},e.prototype.getTemplateData=function(){return{sortOptions:this.sortOptions()}},e}(l)}),require.register("views/search/templates/accepted-result",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){function s(t){var e,n="";return n+='\n        <h6 class="authors">'+v((e=t.item,e=null==e||e===!1?e:e.summaries,e=null==e||e===!1?e:e.toc_authors,e=null==e||e===!1?e:e.value,typeof e===m?e.apply(t):e))+"</h6>\n      "}function o(t,e){var r,i,s="";return s+='\n        <h6 class="pub-info">\n          Accepted ',i={hash:{},data:e},s+=v((r=n.formatDate||t.formatDate,r?r.call(t,(r=t.item,null==r||r===!1?r:r.date),"%e %B %Y",i):y.call(t,"formatDate",(r=t.item,null==r||r===!1?r:r.date),"%e %B %Y",i)))+"\n        </h6>\n      "}function a(t,e){var r,i="";return i+='\n        <p class="summary">\n          ',(r=n.value)?r=r.call(t,{hash:{},data:e}):(r=t.value,r=typeof r===m?r.apply(t):r),(r||0===r)&&(i+=r),i+='<a href="" class="expand-summary"></a>\n        </p>\n      '}function l(t,e){var n,r,i="";return i+="\n        ",n=t.item,n=null==n||n===!1?n:n.summaries,n=null==n||n===!1?n:n["abstract"],n=typeof n===m?n.apply(t):n,r=_.call(t,n,{hash:{},inverse:b.noop,fn:b.program(8,u,e),data:e}),(r||0===r)&&(i+=r),i+="\n      "}function u(t,e){var r,i="";return i+="\n          ",(r=n.value)?r=r.call(t,{hash:{},data:e}):(r=t.value,r=typeof r===m?r.apply(t):r),(r||0===r)&&(i+=r),i+="\n        "}function c(t,e){var n,r,i="";return i+='\n        <ul class="inline-list subjects">\n          ',n=t.item,n=null==n||n===!1?n:n.classificationSchemes,n=null==n||n===!1?n:n.subject_areas,n=typeof n===m?n.apply(t):n,r=_.call(t,n,{hash:{},inverse:b.noop,fn:b.program(11,p,e),data:e}),(r||0===r)&&(i+=r),i+="\n        </ul>\n      "}function p(t,e){var r,i="";return i+='\n            <li><a class="label">',(r=n.label)?r=r.call(t,{hash:{},data:e}):(r=t.label,r=typeof r===m?r.apply(t):r),(r||0===r)&&(i+=r),i+="</a></li>\n          "}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{};var h,d,f,g="",m="function",v=this.escapeExpression,y=n.helperMissing,b=this,_=n.blockHelperMissing;return g+='<div class="article panel">\n  <div class="row">\n    <div class="large-12 columns">\n      <h5 class="title">\n        <a href="/',f={hash:{},data:i},g+=v((h=n.lowercase||e.lowercase,h?h.call(e,(h=e.item,h=null==h||h===!1?h:h.source,h=null==h||h===!1?h:h.identifiers,null==h||h===!1?h:h.jcode),f):y.call(e,"lowercase",(h=e.item,h=null==h||h===!1?h:h.source,h=null==h||h===!1?h:h.identifiers,null==h||h===!1?h:h.jcode),f)))+"/accepted/"+v((h=e.item,h=null==h||h===!1?h:h.identifiers,h=null==h||h===!1?h:h.slug,typeof h===m?h.apply(e):h))+'">',h=e.item,h=null==h||h===!1?h:h.title,h=null==h||h===!1?h:h.value,d=typeof h===m?h.apply(e):h,(d||0===d)&&(g+=d),g+="</a>\n      </h5>\n\n      ",d=n["if"].call(e,(h=e.item,h=null==h||h===!1?h:h.summaries,h=null==h||h===!1?h:h.toc_authors,null==h||h===!1?h:h.value),{hash:{},inverse:b.noop,fn:b.program(1,s,i),data:i}),(d||0===d)&&(g+=d),g+="\n\n      ",d=n["if"].call(e,(h=e.item,null==h||h===!1?h:h.date),{hash:{},inverse:b.noop,fn:b.program(3,o,i),data:i}),(d||0===d)&&(g+=d),g+="\n\n      ",h=e.item,h=null==h||h===!1?h:h.summaries,h=null==h||h===!1?h:h["short"],h=typeof h===m?h.apply(e):h,d=_.call(e,h,{hash:{},inverse:b.noop,fn:b.program(5,a,i),data:i}),(d||0===d)&&(g+=d),g+="\n\n      ",h=e.item,h=null==h||h===!1?h:h.summaries,h=null==h||h===!1?h:h["short"],h=typeof h===m?h.apply(e):h,d=_.call(e,h,{hash:{},inverse:b.program(7,l,i),fn:b.noop,data:i}),(d||0===d)&&(g+=d),g+="\n\n      ",d=n["if"].call(e,(h=e.item,h=null==h||h===!1?h:h.classificationSchemes,null==h||h===!1?h:h.subject_areas),{hash:{},inverse:b.noop,fn:b.program(10,c,i),data:i}),(d||0===d)&&(g+=d),g+="\n    </div>\n  </div>\n</div>\n"});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/search/templates/clause",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{},'<div class="row collapse search-clause">\n  <div class="large-3 columns">\n    <select name="c[][operator]">\n      <option value="AND">AND</option>\n      <option value="OR">OR</option>\n      <option value="NOT">NOT</option>\n    </select>\n  </div>\n\n  <div class="large-3 columns">\n    <select name="c[][field]">\n      <option value="all">All Fields</option>\n      <option value="author">Author</option>\n      <option value="abstract">Abstract</option>\n      <option value="abstitle">Abstract/Title</option>\n      <option value="title">Title</option>\n      <option value="refauth">Cited Author</option>\n      <option value="affiliation">Affiliation</option>\n      <option value="collaboration">Collaboration</option>\n    </select>\n  </div>\n\n  <div class="large-5 columns">\n    <input autocomplete="off" autocorrect="off" autocapitalize="off"\n           spellcheck="false" name="c[][value]" type="text" />\n  </div>\n\n  <div class="large-1 columns">\n    <a class="small button add-clause" href="" title="Add a Clause">\n      <i class="general foundicon-plus"></i>\n    </a>\n  </div>\n</div>\n'});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/search/templates/date-facets",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){function s(t,e){var r,i="";return i+="\n        <li>\n          <a ",r=n["if"].call(t,t.selected,{hash:{},inverse:p.noop,fn:p.program(2,o,e),data:e}),(r||0===r)&&(i+=r),i+=' href="#" data-date="',(r=n.value)?r=r.call(t,{hash:{},data:e}):(r=t.value,r=typeof r===h?r.apply(t):r),i+=d(r)+'">',(r=n.label)?r=r.call(t,{hash:{},data:e}):(r=t.label,r=typeof r===h?r.apply(t):r),i+=d(r)+"</a>\n        </li>\n      "}function o(){return'class="selected"'}function a(){return'style="display: none;"'}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{};var l,u,c="",p=this,h="function",d=this.escapeExpression,f=n.blockHelperMissing;return c+='<h5 class="top title open facet">\n  ',(l=n.title)?l=l.call(e,{hash:{},data:i}):(l=e.title,l=typeof l===h?l.apply(e):l),c+=d(l)+'\n  <span class="right">\n    <i class="general foundicon-plus"></i>\n    <i class="general foundicon-minus"></i>\n  </span>\n</h5>\n\n<div class="top content">\n  <div class="content">\n    <ul class="date-options no-bullet">\n      ',u={hash:{},inverse:p.noop,fn:p.program(1,s,i),data:i},(l=n.list)?l=l.call(e,u):(l=e.list,l=typeof l===h?l.apply(e):l),n.list||(l=f.call(e,l,u)),(l||0===l)&&(c+=l),c+='\n      <li class="custom-date-range" ',u={hash:{},inverse:p.program(4,a,i),fn:p.noop,data:i},(l=n.hasCustom)?l=l.call(e,u):(l=e.hasCustom,l=typeof l===h?l.apply(e):l),n.hasCustom||(l=f.call(e,l,u)),(l||0===l)&&(c+=l),c+='>\n        <form action="#" method="get" id="date-form">\n          <div class="row">\n            <div class="small-5 columns">\n              <input type="text" name="start_date" value="',(l=n.startDate)?l=l.call(e,{hash:{},data:i}):(l=e.startDate,l=typeof l===h?l.apply(e):l),c+=d(l)+'"/>\n            </div>\n            <div class="small-2 columns">\n              <label class="inline">to</label>\n            </div>\n            <div class="small-5 columns">\n              <input type="text" name="end_date" value="',(l=n.endDate)?l=l.call(e,{hash:{},data:i}):(l=e.endDate,l=typeof l===h?l.apply(e):l),c+=d(l)+'"/>\n            </div>\n          </div>\n        </form>\n      </li>\n    </ul>\n  </div>\n</div>'});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/search/templates/facet-group",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){function s(t,e,r){var i,s,a,c="";return c+='\n        <label class="',a={hash:{},inverse:d.programWithDepth(2,o,e,r),fn:d.noop,data:e},(i=n.count)?i=i.call(t,a):(i=t.count,i=typeof i===m?i.apply(t):i),n.count||(i=v.call(t,i,a)),(i||0===i)&&(c+=i),c+='">\n          <input type="checkbox"\n                 name="'+g((i=r.key,typeof i===m?i.apply(t):i))+'"\n                 value="',(s=n.value)?s=s.call(t,{hash:{},data:e}):(s=t.value,s=typeof s===m?s.apply(t):s),c+=g(s)+'"\n                 ',a={hash:{},inverse:d.noop,fn:d.program(5,l,e),data:e},(s=n.selected)?s=s.call(t,a):(s=t.selected,s=typeof s===m?s.apply(t):s),n.selected||(s=v.call(t,s,a)),(s||0===s)&&(c+=s),c+="\n                 ",a={hash:{},inverse:d.programWithDepth(2,o,e,r),fn:d.noop,data:e},(s=n.count)?s=s.call(t,a):(s=t.count,s=typeof s===m?s.apply(t):s),n.count||(s=v.call(t,s,a)),(s||0===s)&&(c+=s),c+="/>\n          ",(s=n.label)?s=s.call(t,{hash:{},data:e}):(s=t.label,s=typeof s===m?s.apply(t):s),c+=g(s)+"\n          ",a={hash:{},inverse:d.noop,fn:d.program(7,u,e),data:e},(s=n.count)?s=s.call(t,a):(s=t.count,s=typeof s===m?s.apply(t):s),n.count||(s=v.call(t,s,a)),(s||0===s)&&(c+=s),c+="\n        </label>\n      "}function o(t,e,r){var i;return i=n.unless.call(t,r.enableAll,{hash:{},inverse:d.noop,fn:d.program(3,a,e),data:e}),i||0===i?i:""}function a(){return"disabled"}function l(){return"checked"}function u(t,e){var r,i,s="";return s+="(",i={hash:{},data:e},s+=g((r=n.digitGrouping||t.digitGrouping,r?r.call(t,t,i):f.call(t,"digitGrouping",t,i)))+")"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{};var c,p,h="",d=this,f=n.helperMissing,g=this.escapeExpression,m="function",v=n.blockHelperMissing;return h+='<h5 class="top title open facet">\n  ',(c=n.title)?c=c.call(e,{hash:{},data:i}):(c=e.title,c=typeof c===m?c.apply(e):c),h+=g(c)+'\n  <span class="right">\n    <i class="general foundicon-plus"></i>\n    <i class="general foundicon-minus"></i>\n  </span>\n</h5>\n\n<div class="top content">\n  <div class="content">\n    <form>\n      ',p={hash:{},inverse:d.noop,fn:d.programWithDepth(1,s,i,e),data:i},(c=n.list)?c=c.call(e,p):(c=e.list,c=typeof c===m?c.apply(e):c),n.list||(c=v.call(e,c,p)),(c||0===c)&&(h+=c),h+="\n    </form>\n  </div>\n</div>"});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/search/templates/pagination-links",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){function s(t,e){var r,i="";return i+='\n      <li class="',(r=n["class"])?r=r.call(t,{hash:{},data:e}):(r=t["class"],r=typeof r===p?r.apply(t):r),i+=d(r)+'">\n        <a href="#" data-page="',(r=n.number)?r=r.call(t,{hash:{},data:e}):(r=t.number,r=typeof r===p?r.apply(t):r),i+=d(r)+'">\n          ',r=n["if"].call(t,t.text,{hash:{},inverse:f.program(4,a,e),fn:f.program(2,o,e),data:e}),(r||0===r)&&(i+=r),i+="\n        </a>\n      </li>\n    "}function o(t,e){var r,i="";return i+="\n            ",(r=n.text)?r=r.call(t,{hash:{},data:e}):(r=t.text,r=typeof r===p?r.apply(t):r),(r||0===r)&&(i+=r),i+="\n          "}function a(t,e){var r,i,s="";return s+="\n            ",i={hash:{},data:e},s+=d((r=n.digitGrouping||t.digitGrouping,r?r.call(t,t.number,i):h.call(t,"digitGrouping",t.number,i)))+"\n          "}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{};var l,u,c="",p="function",h=n.helperMissing,d=this.escapeExpression,f=this,g=n.blockHelperMissing;return c+='<div class="pagination-centered">\n  <ul class="pagination">\n    ',u={hash:{},inverse:f.noop,fn:f.program(1,s,i),data:i},(l=n.links)?l=l.call(e,u):(l=e.links,l=typeof l===p?l.apply(e):l),n.links||(l=g.call(e,l,u)),(l||0===l)&&(c+=l),c+="\n  </ul>\n</div>"});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/search/templates/result",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){function s(t,e){var r,i="";return i+='\n          <span class="suggestion label radius">',(r=n.label)?r=r.call(t,{hash:{},data:e}):(r=t.label,r=typeof r===b?r.apply(t):r),(r||0===r)&&(i+=r),i+="</span>\n        "}function o(t,e){var r,i,s="";return s+='\n          <span class="right">\n            ',i={hash:{},data:e},s+=w((r=n.digitGrouping||t.digitGrouping,r?r.call(t,(r=t.item,r=null==r||r===!1?r:r.statistics,null==r||r===!1?r:r.num_cited_by),i):_.call(t,"digitGrouping",(r=t.item,r=null==r||r===!1?r:r.statistics,null==r||r===!1?r:r.num_cited_by),i)))+"\n            ",i={hash:{},data:e},s+=w((r=n.inflect||t.inflect,r?r.call(t,(r=t.item,r=null==r||r===!1?r:r.statistics,null==r||r===!1?r:r.num_cited_by),"citation","citations",i):_.call(t,"inflect",(r=t.item,r=null==r||r===!1?r:r.statistics,null==r||r===!1?r:r.num_cited_by),"citation","citations",i)))+"\n          </span>\n        "}function a(t){var e,n="";return n+='\n        <h6 class="authors">'+w((e=t.item,e=null==e||e===!1?e:e.summaries,e=null==e||e===!1?e:e.toc_authors,e=null==e||e===!1?e:e.value,typeof e===b?e.apply(t):e))+"</h6>\n      "}function l(t,e){var r,i,s,o="";return o+='\n        <h6 class="pub-info">\n          '+w((r=t.item,r=null==r||r===!1?r:r.source,r=null==r||r===!1?r:r.abbreviatedName,typeof r===b?r.apply(t):r))+"\n          <b>"+w((r=t.item,r=null==r||r===!1?r:r.volume,r=null==r||r===!1?r:r.number,typeof r===b?r.apply(t):r))+"</b>,\n          "+w((r=t.item,r=null==r||r===!1?r:r.pageStart,typeof r===b?r.apply(t):r)),s={hash:{},inverse:x.noop,fn:x.program(8,u,e),data:e},r=n.is||t.is,i=r?r.call(t,(r=t.item,null==r||r===!1?r:r.articleType),"rapid",s):_.call(t,"is",(r=t.item,null==r||r===!1?r:r.articleType),"rapid",s),(i||0===i)&&(o+=i),o+="\n          –\n          Published ",s={hash:{},data:e},o+=w((r=n.formatDate||t.formatDate,r?r.call(t,(r=t.item,null==r||r===!1?r:r.date),"%e %B %Y",s):_.call(t,"formatDate",(r=t.item,null==r||r===!1?r:r.date),"%e %B %Y",s)))+"\n        </h6>\n      "}function u(){return"(R)"}function c(){return'\n        <h6 class="reveal-abstract">\n          <a href="">\n            Show Abstract\n            <i class="general foundicon-plus"></i>\n          </a>\n        </h6>\n        <div class="summary"></div>\n      '}function p(t,e){var n,r,i="";return i+='\n        <ul class="inline-list subjects">\n          ',n=t.item,n=null==n||n===!1?n:n.classificationSchemes,n=null==n||n===!1?n:n.subject_areas,n=typeof n===b?n.apply(t):n,r=k.call(t,n,{hash:{},inverse:x.noop,fn:x.program(13,h,e),data:e}),(r||0===r)&&(i+=r),i+="\n        </ul>\n      "}function h(t,e){var r,i="";return i+='\n            <li><a class="label" href="/prx/subjects/',(r=n.id)?r=r.call(t,{hash:{},data:e}):(r=t.id,r=typeof r===b?r.apply(t):r),i+=w(r)+'">',(r=n.label)?r=r.call(t,{hash:{},data:e}):(r=t.label,r=typeof r===b?r.apply(t):r),(r||0===r)&&(i+=r),i+="</a></li>\n          "}function d(t,e){var n,r,i="";return i+='\n        <a href="'+w((n=t.item,n=null==n||n===!1?n:n.urls,n=null==n||n===!1?n:n.pdf,typeof n===b?n.apply(t):n))+'" class="small button block">PDF',n=t.item,n=null==n||n===!1?n:n.accessRights,n=null==n||n===!1?n:n.openaccess,n=typeof n===b?n.apply(t):n,r=k.call(t,n,{hash:{},inverse:x.noop,fn:x.program(16,f,e),data:e}),(r||0===r)&&(i+=r),i+='</a>\n        <a data-id="'+w((n=t.item,n=null==n||n===!1?n:n.id,typeof n===b?n.apply(t):n))+'" data-jcode="'+w((n=t.item,n=null==n||n===!1?n:n.source,n=null==n||n===!1?n:n.identifiers,n=null==n||n===!1?n:n.jcode,typeof n===b?n.apply(t):n))+'" class="reveal-export small button block">Export Citation</a>\n        '}function f(){return" (free)"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{};var g,m,v,y="",b="function",_=n.helperMissing,w=this.escapeExpression,x=this,k=n.blockHelperMissing;return y+='<div class="article panel" data-id="'+w((g=e.item,g=null==g||g===!1?g:g.identifiers,g=null==g||g===!1?g:g.doi,typeof g===b?g.apply(e):g))+'">\n  <div class="row">\n    <div class="large-9 columns">\n      <h6 class="tag">\n        '+w((g=e.item,g=null==g||g===!1?g:g.source,g=null==g||g===!1?g:g.identifiers,g=null==g||g===!1?g:g.jcode,typeof g===b?g.apply(e):g))+"\n        ",g=e.item,g=null==g||g===!1?g:g.editorialFeatures,g=null==g||g===!1?g:g.flags,g=typeof g===b?g.apply(e):g,m=k.call(e,g,{hash:{},inverse:x.noop,fn:x.program(1,s,i),data:i}),(m||0===m)&&(y+=m),y+="\n        ",v={hash:{},inverse:x.noop,fn:x.program(3,o,i),data:i},g=n.gt||e.gt,m=g?g.call(e,(g=e.item,g=null==g||g===!1?g:g.statistics,null==g||g===!1?g:g.num_cited_by),0,v):_.call(e,"gt",(g=e.item,g=null==g||g===!1?g:g.statistics,null==g||g===!1?g:g.num_cited_by),0,v),(m||0===m)&&(y+=m),y+='\n      </h6>\n      <h5 class="title">\n        <a href="'+w((g=e.item,g=null==g||g===!1?g:g.urls,g=null==g||g===!1?g:g.primary,typeof g===b?g.apply(e):g))+'">',g=e.item,g=null==g||g===!1?g:g.title,g=null==g||g===!1?g:g.value,m=typeof g===b?g.apply(e):g,(m||0===m)&&(y+=m),y+="</a>\n      </h5>\n\n      ",m=n["if"].call(e,(g=e.item,g=null==g||g===!1?g:g.summaries,g=null==g||g===!1?g:g.toc_authors,null==g||g===!1?g:g.value),{hash:{},inverse:x.noop,fn:x.program(5,a,i),data:i}),(m||0===m)&&(y+=m),y+="\n\n      ",m=n["if"].call(e,(g=e.item,null==g||g===!1?g:g.source),{hash:{},inverse:x.noop,fn:x.program(7,l,i),data:i}),(m||0===m)&&(y+=m),y+="\n\n      ",g=e.item,g=null==g||g===!1?g:g.summaries,g=null==g||g===!1?g:g["abstract"],g=typeof g===b?g.apply(e):g,m=k.call(e,g,{hash:{},inverse:x.noop,fn:x.program(10,c,i),data:i}),(m||0===m)&&(y+=m),y+="\n\n      ",m=n["if"].call(e,(g=e.item,g=null==g||g===!1?g:g.classificationSchemes,null==g||g===!1?g:g.subject_areas),{hash:{},inverse:x.noop,fn:x.program(12,p,i),data:i}),(m||0===m)&&(y+=m),y+='\n    </div>\n\n    <div class="large-3 columns">\n      <span class="options">\n        ',m=n["if"].call(e,(g=e.item,g=null==g||g===!1?g:g.urls,null==g||g===!1?g:g.pdf),{hash:{},inverse:x.noop,fn:x.program(15,d,i),data:i}),(m||0===m)&&(y+=m),y+="\n      </span>\n    </div>\n  </div>\n</div>\n"});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/search/templates/results-title",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){function s(t,e){var r,i,s="";return s+="-",i={hash:{},data:e},s+=h((r=n.digitGrouping||t.digitGrouping,r?r.call(t,t.end,i):p.call(t,"digitGrouping",t.end,i)))}function o(t,e){var r,i,s="";return s+="of ",i={hash:{},data:e},s+=h((r=n.digitGrouping||t.digitGrouping,r?r.call(t,t.total,i):p.call(t,"digitGrouping",t.total,i)))}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{};var a,l,u,c="",p=n.helperMissing,h=this.escapeExpression,d=this,f="function";return c+='<div class="row">\n  <div class="large-12 columns">\n\n    <div class="panel">\n      <h2 class="">\n        Results /\n        <strong>',u={hash:{},data:i},c+=h((a=n.digitGrouping||e.digitGrouping,a?a.call(e,e.start,u):p.call(e,"digitGrouping",e.start,u))),u={hash:{},inverse:d.noop,fn:d.program(1,s,i),data:i},a=n.isnt||e.isnt,l=a?a.call(e,e.start,e.end,u):p.call(e,"isnt",e.start,e.end,u),(l||0===l)&&(c+=l),c+=" ",l=n["if"].call(e,e.total,{hash:{},inverse:d.noop,fn:d.program(3,o,i),data:i}),(l||0===l)&&(c+=l),c+='</strong>\n      </h2>\n      <dl class="subject-list">\n        <dt>for:</dt>\n        <dd>\n          ',(l=n.query)?l=l.call(e,{hash:{},data:i}):(l=e.query,l=typeof l===f?l.apply(e):l),c+=h(l)+'\n          <!--\n          <a href="#">',(l=n.query)?l=l.call(e,{hash:{},data:i}):(l=e.query,l=typeof l===f?l.apply(e):l),c+=h(l)+'</a>\n          <a href="#"><i class="general foundicon-remove"></i></a>\n          -->\n        </dd>\n      </dl>\n    </div>\n  </div>\n</div>\n'});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/search/templates/results",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{};var s,o="",a="function",l=this.escapeExpression;return o+='<section id="header" class="generic has-subnav">\n  <div class="row">\n    <div class="large-12 columns">\n      <h2 class="title">Search Results</h2>\n      <ul class="journal-nav inline-list">\n        <li>\n          <a href="/search">New Search</a>\n        </li>\n        <li>\n          <a href="',(s=n.editUrl)?s=s.call(e,{hash:{},data:i}):(s=e.editUrl,s=typeof s===a?s.apply(e):s),o+=l(s)+'">Edit Search</a>\n        </li>\n        '+'\n      </ul>\n    </div>\n  </div>\n</section>\n\n<section id="title"></section>\n\n<section id="body" class="row panels">\n  <div class="large-3 columns" id="search-sidebar"></div>\n  <div class="large-9 columns search-results" id="search-main"></div>\n</section>\n\n<div id="export-article" class="medium reveal-modal">\n</div>'});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/search/templates/sidebar",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){function s(t,e){var r,i,s="";return s+='\n          <option value="',(r=n.value)?r=r.call(t,{hash:{},data:e}):(r=t.value,r=typeof r===c?r.apply(t):r),s+=p(r)+'" ',i={hash:{},inverse:h.noop,fn:h.program(2,o,e),data:e},(r=n.selected)?r=r.call(t,i):(r=t.selected,r=typeof r===c?r.apply(t):r),n.selected||(r=d.call(t,r,i)),(r||0===r)&&(s+=r),s+=">",(r=n.label)?r=r.call(t,{hash:{},data:e}):(r=t.label,r=typeof r===c?r.apply(t):r),s+=p(r)+"</option>\n        "}function o(){return'selected="selected"'}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{};var a,l,u="",c="function",p=this.escapeExpression,h=this,d=n.blockHelperMissing;return u+='<div class="accordian-wrap">\n  <h5 class="top title open facet">Sort</h5>\n  <div class="top content">\n    <form>\n      <select name="sort">\n        ',l={hash:{},inverse:h.noop,fn:h.program(1,s,i),data:i},(a=n.sortOptions)?a=a.call(e,l):(a=e.sortOptions,a=typeof a===c?a.apply(e):a),n.sortOptions||(a=d.call(e,a,l)),(a||0===a)&&(u+=a),u+='\n      </select>\n    </form>\n  </div>\n</div>\n\n<div id="search-facets" class="accordion-wrap">\n\n</div>'});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/site-view",function(t,e,n){var r,i,s,o,a={}.hasOwnProperty,l=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("views/base/view"),s=e("views/templates/site"),n.exports=r=function(t){function e(){return o=e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.container="#app-wrap",e.prototype.id="site-container",e.prototype.regions={main:"#site","top-bar":"#top-bar",footer:"footer"},e.prototype.template=function(){return $("#app-wrap").length>0?s():void 0},e.prototype.render=function(){return e.__super__.render.apply(this,arguments),$(document).foundation(),Foundation.libs.topbar.events(),$("#login-modal a.cancel").click(function(){return $(".reveal-modal.open").foundation("reveal","close")}),$("#login-modal").on("opened",function(){return $('#login-modal input[name="username"]').focus()}),this},e}(i)}),require.register("views/templates/article/export",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{};var s,o="",a="function",l=this.escapeExpression;return o+='<div class="row">\n  <div class="large-12 columns">\n    <h4>Export Article</h4>\n    <a href="#" class="small button dropdown" id="article-export-dropdown" data-dropdown="drop-format">Format</a>\n    <ul id="drop-format" class="f-dropdown" data-dropdown-content>\n      <li><a href="#" data-format="bibtex">BibTeX</a></li>\n      <li><a href="#" data-format="ris">EndNote (RIS)</a></li>\n    </ul>\n    <a href="',(s=n.downloadUrl)?s=s.call(e,{hash:{},data:i}):(s=e.downloadUrl,s=typeof s===a?s.apply(e):s),o+=l(s)+'" id="download-citation" class="small button">Download</a>\n  </div>\n</div>\n\n<div class="row">\n  <div class="large-12 columns">\n    <form>\n      <textarea name="">Loading...</textarea>\n    </form>\n  </div>\n</div>\n<a class="close-reveal-modal">&#215;</a>'});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/templates/article/supplemental-material",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){function s(t){var e,n="";return n+="\n  ",e=typeof t===h?t.apply(t):t,(e||0===e)&&(n+=e),n+="\n"}function o(t){var e,n="";return n+="\n  <h5>Special Instructions</h5>\n  ",e=typeof t===h?t.apply(t):t,(e||0===e)&&(n+=e),n+="\n"}function a(t,e){var r,i,s,o="";return o+='\n  <div class="supplemental-files">\n    <div class="row supplemental-file">\n      <div class="large-2 columns">\n        <a href="'+d((r=t.link,r=null==r||r===!1?r:r.url,typeof r===h?r.apply(t):r))+'" data-id="',(i=n.id)?i=i.call(t,{hash:{},data:e}):(i=t.id,i=typeof i===h?i.apply(t):i),o+=d(i)+'" data-type="',(i=n.type)?i=i.call(t,{hash:{},data:e}):(i=t.type,i=typeof i===h?i.apply(t):i),o+=d(i)+'"><img src="'+d((r=t.thumbnail,r=null==r||r===!1?r:r.url,typeof r===h?r.apply(t):r))+'"/></a>\n      </div>\n      <div class="large-10 columns">\n        <a href="'+d((r=t.link,r=null==r||r===!1?r:r.url,typeof r===h?r.apply(t):r))+'" data-id="',(i=n.id)?i=i.call(t,{hash:{},data:e}):(i=t.id,i=typeof i===h?i.apply(t):i),o+=d(i)+'" data-type="',(i=n.type)?i=i.call(t,{hash:{},data:e}):(i=t.type,i=typeof i===h?i.apply(t):i),o+=d(i)+'">',r=t.link,r=null==r||r===!1?r:r.label,i=typeof r===h?r.apply(t):r,(i||0===i)&&(o+=i),o+="</a>\n        ",s={hash:{},inverse:f.noop,fn:f.program(6,l,e),data:e},(i=n.caption)?i=i.call(t,s):(i=t.caption,i=typeof i===h?i.apply(t):i),n.caption||(i=g.call(t,i,s)),(i||0===i)&&(o+=i),o+="\n      </div>\n    </div>\n  </div>\n"}function l(t){var e,n="";return n+="\n          <p>",e=typeof t===h?t.apply(t):t,(e||0===e)&&(n+=e),n+="</p>\n        "}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{};var u,c,p="",h="function",d=this.escapeExpression,f=this,g=n.blockHelperMissing;return c={hash:{},inverse:f.noop,fn:f.program(1,s,i),data:i},(u=n.description)?u=u.call(e,c):(u=e.description,u=typeof u===h?u.apply(e):u),n.description||(u=g.call(e,u,c)),(u||0===u)&&(p+=u),p+="\n\n",c={hash:{},inverse:f.noop,fn:f.program(3,o,i),data:i},(u=n.special_instructions)?u=u.call(e,c):(u=e.special_instructions,u=typeof u===h?u.apply(e):u),n.special_instructions||(u=g.call(e,u,c)),(u||0===u)&&(p+=u),p+="\n\n",c={hash:{},inverse:f.noop,fn:f.program(5,a,i),data:i},(u=n.components)?u=u.call(e,c):(u=e.components,u=typeof u===h?u.apply(e):u),n.components||(u=g.call(e,u,c)),(u||0===u)&&(p+=u),p+='\n\n<div id="video-player" class="large reveal-modal"></div>'});"function"==typeof define&&define.amd?define([],function(){return r
}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/templates/article/video-player",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){function s(t,e){var r,i,s="";return s+='\n      <source src="'+c((r=t.url,typeof r===u?r.apply(t):r))+'" type="',(i=n.content_type)?i=i.call(t,{hash:{},data:e}):(i=t.content_type,i=typeof i===u?i.apply(t):i),s+=c(i)+'"/>\n    '}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{};var o,a,l="",u="function",c=this.escapeExpression,p=this,h=n.blockHelperMissing;return l+="<h2>",(o=n.label)?o=o.call(e,{hash:{},data:i}):(o=e.label,o=typeof o===u?o.apply(e):o),(o||0===o)&&(l+=o),l+='</h2>\n\n<div class="flex-video">\n  <video controls>\n    ',a={hash:{},inverse:p.noop,fn:p.program(1,s,i),data:i},(o=n.variants)?o=o.call(e,a):(o=e.variants,o=typeof o===u?o.apply(e):o),n.variants||(o=h.call(e,o,a)),(o||0===o)&&(l+=o),l+="\n  </video>\n</div>\n\n",(o=n.caption)?o=o.call(e,{hash:{},data:i}):(o=e.caption,o=typeof o===u?o.apply(e):o),(o||0===o)&&(l+=o),l+='\n\n<a class="close-reveal-modal">&#215;</a>'});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/templates/report-bug/form",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{},'<h2>Report a Bug/Provide Feedback</h2>\n\n<p>Please describe the problem below.</p>\n\n<div id="feedback-notices">\n</div>\n\n<form class="custom">\n  <div class="row">\n    <div class="large-4 columns">\n      <label>Type</label>\n      <select name="type" class="medium">\n        <option>Bug</option>\n        <option>Feedback</option>\n      </select>\n    </div>\n\n    <div class="large-8 columns">\n      <label>Your email (required)</label>\n      <input name="email" type="text"></input>\n    </div>\n  </div>\n\n  <div class="row">\n    <div class="large-12 columns">\n      <label>Description/comments</label>\n      <textarea name="comments"></textarea>\n    </div>\n  </div>\n\n  <div class="row">\n    <div class="large-12 columns">\n      <button type="submit">Submit</button>\n    </div>\n  </div>\n</form>\n\n<a class="close-reveal-modal">&#215;</a>'});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/templates/report-bug/status",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{},'<h2>Report a Bug/Provide Feedback</h2>\n\n<div class="alert-box success">\n  Thanks, your feedback has been sent.\n</div>\n\n<a class="close-reveal-modal">&#215;</a>'});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/templates/site",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){return this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{},'<div id="site"></div>'});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/top-bar-view",function(t,e,n){var r,i,s,o,a=function(t,e){return function(){return t.apply(e,arguments)}},l={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)l.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};s=e("views/base/view"),r=e("views/report-bug-view"),n.exports=i=function(t){function e(){return this.search=a(this.search,this),o=e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.autoRender=!1,e.prototype.region="top-bar",e.prototype.el=$("#top-bar"),e.prototype.events={"submit form":"search"},e.prototype.initialize=function(){return e.__super__.initialize.apply(this,arguments),new r,this},e.prototype.render=function(){return e.__super__.render.apply(this,arguments),$.cookie("tour_closed")||$(window).width()>768&&($("#joyride-wrap").foundation("joyride","start"),$(".joyride-close-tip, .joyride-next-tip").click(function(){return $.cookie("tour_closed",!0,{expires:7})})),this},e.prototype.search=function(){return this.$el.find("input[name='q']").val()},e}(s)}),require.register("views/tqc/templates/tqc-hold-modal",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{};var s,o="",a="function",l=this.escapeExpression;return o+="<h2>",(s=n.label)?s=s.call(e,{hash:{},data:i}):(s=e.label,s=typeof s===a?s.apply(e):s),o+=l(s)+'</h2>\n\n<p>Please enter the reason below.</p>\n\n<form class="custom">\n  <div class="row">\n    <div class="large-12 columns">\n      <label>Reason</label>\n      <textarea name="reason"></textarea>\n    </div>\n  </div>\n\n  <div class="row">\n    <div class="large-12 columns">\n      <button type="submit">Submit</button>\n    </div>\n  </div>\n</form>\n\n<a class="close-reveal-modal">&#215;</a>'});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/tqc/templates/tqc-menu",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){function s(t,e){var r,i="";return i+="\n    ",r=n["if"].call(t,t.reason_required,{hash:{},inverse:d.programWithDepth(4,a,e,t),fn:d.programWithDepth(2,o,e,t),data:e}),(r||0===r)&&(i+=r),i+="\n  "}function o(t,e,r){var i,s,o="";return o+='\n      <li><a href="'+h((i=r.doi,typeof i===p?i.apply(t):i))+'" data-reveal-id="tqc-hold-modal" data-action="',(s=n.name)?s=s.call(t,{hash:{},data:e}):(s=t.name,s=typeof s===p?s.apply(t):s),o+=h(s)+'" class="small button">',(s=n.label)?s=s.call(t,{hash:{},data:e}):(s=t.label,s=typeof s===p?s.apply(t):s),o+=h(s)+"</a></li>\n    "}function a(t,e,r){var i,s,o="";return o+='\n      <li><a href="'+h((i=r.doi,typeof i===p?i.apply(t):i))+'"  data-action="',(s=n.name)?s=s.call(t,{hash:{},data:e}):(s=t.name,s=typeof s===p?s.apply(t):s),o+=h(s)+'" class="small button">',(s=n.label)?s=s.call(t,{hash:{},data:e}):(s=t.label,s=typeof s===p?s.apply(t):s),o+=h(s)+"</a></li>\n    "}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{};var l,u,c="",p="function",h=this.escapeExpression,d=this,f=n.blockHelperMissing;return c+='<h4>QC Actions</h4>\n<ul class="button-group">\n  ',u={hash:{},inverse:d.noop,fn:d.program(1,s,i),data:i},(l=n.actions)?l=l.call(e,u):(l=e.actions,l=typeof l===p?l.apply(e):l),n.actions||(l=f.call(e,l,u)),(l||0===l)&&(c+=l),c+="\n<ul>"});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/tqc/templates/tqc-message",function(t,e,n){var r=Handlebars.template(function(t,e,n,r,i){function s(t,e){var r,i="";return i+='\n  <div class="alert-box">\n    Article placed on hold by ',(r=n.login)?r=r.call(t,{hash:{},data:e}):(r=t.login,r=typeof r===p?r.apply(t):r),i+=h(r)+" on ",(r=n.date)?r=r.call(t,{hash:{},data:e}):(r=t.date,r=typeof r===p?r.apply(t):r),i+=h(r)+": ",(r=n.comment)?r=r.call(t,{hash:{},data:e}):(r=t.comment,r=typeof r===p?r.apply(t):r),i+=h(r)+"\n  </div>\n"}function o(t,e){var r,i="";return i+='\n  <div class="alert-box alert">\n    Error: ',(r=n.comment)?r=r.call(t,{hash:{},data:e}):(r=t.comment,r=typeof r===p?r.apply(t):r),i+=h(r)+"\n  </div>\n"}function a(t,e){var r,i="";return i+='\n  <div class="alert-box" style="background-color: #FFF79A; color: black">\n    Warning: ',(r=n.comment)?r=r.call(t,{hash:{},data:e}):(r=t.comment,r=typeof r===p?r.apply(t):r),i+=h(r)+"\n  </div>\n"}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{};var l,u,c="",p="function",h=this.escapeExpression,d=this,f=n.blockHelperMissing;return u={hash:{},inverse:d.noop,fn:d.program(1,s,i),data:i},(l=n.hold)?l=l.call(e,u):(l=e.hold,l=typeof l===p?l.apply(e):l),n.hold||(l=f.call(e,l,u)),(l||0===l)&&(c+=l),c+="\n",u={hash:{},inverse:d.noop,fn:d.program(3,o,i),data:i},(l=n.error)?l=l.call(e,u):(l=e.error,l=typeof l===p?l.apply(e):l),n.error||(l=f.call(e,l,u)),(l||0===l)&&(c+=l),c+="\n",u={hash:{},inverse:d.noop,fn:d.program(5,a,i),data:i},(l=n.warning)?l=l.call(e,u):(l=e.warning,l=typeof l===p?l.apply(e):l),n.warning||(l=f.call(e,l,u)),(l||0===l)&&(c+=l),c+='\n\n<div class="alert-box">\n  Article status is ',(l=n.status)?l=l.call(e,{hash:{},data:i}):(l=e.status,l=typeof l===p?l.apply(e):l),c+=h(l)+"\n</div>\n"});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof n&&n&&n.exports&&(n.exports=r)}),require.register("views/tqc/tqc-hold-modal-view",function(t,e,n){var r,i,s,o,a=function(t,e){return function(){return t.apply(e,arguments)}},l={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)l.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("views/base/view"),s=e("./templates/tqc-hold-modal"),n.exports=r=function(t){function e(){return this.opened=a(this.opened,this),o=e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.autoRender=!1,e.prototype.template=s,e.prototype.el=$("#tqc-hold-modal"),e.prototype.events={open:"opened","submit form":"submit"},e.prototype.opened=function(){return this.render(),this.$el.foundation("forms"),this},e.prototype.submit=function(t){var e=this;return t.preventDefault(),this.model.set("reason",this.$el.find("textarea[name='reason']").val()),$(".close-reveal-modal").click(),this.model.doAction("hold",{success:function(){return e.publishEvent("tqcArticleStateChange")},error:function(t,e){return console.log("ACTION ERROR",e.status,e.statusText)}})},e}(i)}),require.register("views/tqc/tqc-menu-view",function(t,e,n){"use strict";var r,i,s,o,a={}.hasOwnProperty,l=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};s=e("views/base/view"),r=e("./tqc-hold-modal-view"),n.exports=i=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return l(n,t),n.prototype.autoRender=!0,n.prototype.template=e("./templates/tqc-menu"),n.prototype.events={"click a":"clickAction"},n.prototype.afterAction=function(){var t,e=this;return t=this.model.get("lastAction"),"delete"===t?document.location.href="/qc":this.model.fetch({success:function(){return e.render()}})},n.prototype.initialize=function(){return new r({model:this.model}),this.subscribeEvent("tqcArticleStateChange",this.afterAction)},n.prototype.clickAction=function(t){var e,n=this;return t.preventDefault(),e=$(t.target).data("action"),this.model.set("lastAction",e),"hold"!==e?this.model.doAction(e,{success:function(){return n.publishEvent("tqcArticleStateChange")},error:function(t,e){return n.publishEvent("tqcArticleStateChange"),console.log("ACTION ERROR",e.status,e.statusText)}}):void 0},n}(s)}),require.register("views/tqc/tqc-message-view",function(t,e,n){"use strict";var r,i,s,o,a={}.hasOwnProperty,l=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};i=e("views/base/view"),s=e("./templates/tqc-message"),n.exports=r=function(t){function e(){return o=e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.autoRender=!0,e.prototype.template=s,e.prototype.initialize=function(){return this.subscribeEvent("tqcArticleStateChange",function(){var t=this;return this.model.clear,this.model.fetch({reset:!0,success:function(){return t.render()}})}),this.subscribeEvent("tqcArticleApproved",function(){var t=this;return this.model.set("approved",!0)({success:function(){return t.render()}})})},e}(i)});