"bundle";System.register("main.js",[],function(a,b){"use strict";function c(a){a.use.standardConfiguration().developmentLogging(),a.start().then(function(){return a.setRoot("shell")})}return a("configure",c),{setters:[],execute:function(){}}}),function(){var a=System.amdDefine;a("shell.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return''})}(),System.register("common/i2b2.service.js",["aurelia-framework","ramda","./container"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i;return{setters:[function(a){d=a.inject},function(a){e=a},function(a){f=a.Container}],execute:function(){a("I2B2Service",(g=d(window),i=g(h=function b(a){c(this,b);var d=a?f.of(a):f.of(null),g=e.curry(function(a,b){return b.value?f.of(e.prop(a,b.value)):f.of(null)}),h=e.compose(g("i2b2"),g("window"),g("parent")),i=e.compose(g("CRC"),h),j=e.compose(g("events"),h),k=e.compose(g("SHRINE"),h);b.prototype.onResize=function(a){return j(d).map(function(b){return b.changedZoomWindows.subscribe(a)})},b.prototype.onHistory=function(a){return i(d).map(function(b){return b.ctrlr.history.events.onDataUpdate.subscribe(a)})},b.prototype.onQuery=function(a){return j(d).map(function(b){return b.afterQueryInit.subscribe(a)})},b.prototype.onViewSelected=function(a){return g("addEventListener",d).value?f.of(d.value.addEventListener("message",a,!1)):f.of(null)},b.prototype.loadHistory=function(){return i(d).map(function(a){return a.view.history.doRefreshAll()})},b.prototype.loadQuery=function(a){return i(d).map(function(b){return b.ctrlr.QT.doQueryLoad(a)})},b.prototype.errorDetail=function(a){return k(d).map(function(b){return b.plugin.errorDetail(a)})},b.prototype.renameQuery=function(a){return i(d).map(function(b){return b.ctrlr.history.queryRename(a,!1)})},b.prototype.flagQuery=function(a){return i(d).map(function(b){return b.ctrlr.history.Flag({queryId:a,message:""})})},b.prototype.unflagQuery=function(a){return i(d).map(function(b){return b.ctrlr.history.Unflag({queryId:a})})}})||h)),a("I2B2Service",i)}}}),System.register("common/i2b2.pub-sub.js",["aurelia-framework","aurelia-event-aggregator","./i2b2.service","./shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i,j,k;return{setters:[function(a){d=a.inject},function(a){e=a.EventAggregator},function(a){f=a.I2B2Service},function(a){g=a.notifications,h=a.commands}],execute:function(){a("I2B2PubSub",(i=d(e,f,g,h),k=i(j=function b(a,d,e){c(this,b),this.listen=function(){d.onResize(function(a,b){return b.find(function(a){return"ADD"===a.action})?f():g()}),d.onHistory(function(){return i()}),d.onQuery(function(a,b){return j(b[0].name)}),d.onViewSelected(function(a){return k(a.data)}),a.subscribe(h.i2b2.cloneQuery,l),a.subscribe(h.i2b2.showError,m),a.subscribe(h.i2b2.renameQuery,n),a.subscribe(h.i2b2.flagQuery,o),a.subscribe(h.i2b2.unflagQuery,p)};var f=function(){return a.publish(e.i2b2.tabMax)},g=function(){return a.publish(e.i2b2.tabMin)},i=function(){return a.publish(e.i2b2.historyRefreshed)},j=function(b){return a.publish(e.i2b2.queryStarted,b)},k=function(b){return a.publish(e.i2b2.viewSelected,b)},l=function(a){return d.loadQuery(a)},m=function(a){return d.errorDetail(a)},n=function(a){return d.renameQuery(a)},o=function(a){return d.flagQuery(a)},p=function(a){return d.unflagQuery(a)}})||j)),a("I2B2PubSub",k)}}}),System.register("shell.js",["aurelia-framework","aurelia-event-aggregator","common/i2b2.pub-sub","common/queries.model","common/shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i,j,k;return{setters:[function(a){d=a.inject},function(a){e=a.EventAggregator},function(a){f=a.I2B2PubSub},function(a){g=a.QueriesModel},function(a){h=a.notifications}],execute:function(){a("Shell",(i=d(e,f,g,h),k=i(j=function b(a,d,e,f){var g=this;c(this,b),b.prototype.init=function(){g.view="query-viewer"},this.init(),d.listen(),e.load(),a.subscribe(f.i2b2.viewSelected,function(a){g.view=a})})||j)),a("Shell",k)}}}),function(){var a=System.amdDefine;a("views/mailto/mailto.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return''})}(),System.register("views/mailto/mailto.service.js",["aurelia-framework","repository/qep.repository"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a.inject},function(a){e=a.QEPRepository}],execute:function(){a("MailToService",(f=d(e),h=f(g=function(){function a(b){c(this,a),this.repository=b}return a.prototype.fetchStewardEmail=function(){return this.repository.fetchStewardEmail()},a}())||g)),a("MailToService",h)}}}),System.register("views/mailto/mailto.config.js",[],function(a,b){"use strict";var c;return{setters:[],execute:function(){a("MailConfig",c={mailto:"mailto:",subject:encodeURIComponent("Question from a SHRINE User"),body:encodeURIComponent("Please enter the suggested information and your question. Your data steward will reply to this email.\n \n\n***Never send patient information, passwords, or other sensitive information by email****\n \nName:\n \nTitle:\n \nUser name (to log into SHRINE):\n \nTelephone Number (optional):\n \nPreferred email address (optional):\n \n\nQuestion or Comment:")}),a("MailConfig",c)}}}),System.register("views/mailto/mailto.js",["aurelia-framework","views/mailto/mailto.service","views/mailto/mailto.config"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i;return{setters:[function(a){d=a.inject},function(a){e=a.MailToService},function(a){f=a.MailConfig}],execute:function(){a("MailTo",(g=d(e,f),i=g(h=function(){function a(b,d){c(this,a),this.service=b,this.config=d}return a.prototype.openEmail=function(){var a=this;this.service.fetchStewardEmail().then(function(b){window.top.location="mailto:"+b+"?subject="+a.config.subject+"&body="+a.config.body})},a}())||h)),a("MailTo",i)}}}),function(){var a=System.amdDefine;a("views/query-status/error-example.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'
Finished Query: "Alanine@12:47:19"
[1.1 secs]

Compute Time: 1.1 secs

shrine-qa2 "Alanine@12:47:19"
 - Could not map query term(s).

shrine-qa1 "Alanine@12:47:19"
 - Could not map query term(s).

shrine-qa3 "Alanine@12:47:19"
 - Could not map query term(s).
'})}(),function(){var a=System.amdDefine;a("views/query-status/example.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'
Finished Query: "Female@12:00:35"
[5.3 secs]

Compute Time: 5.3 secs

shrine-qa2 "Female@12:00:35"
Patient Count: - 1810 +-10 patients

Patient Age Count Breakdown:
0-9 years old: - 10 patients or fewer
10-17 years old: - 10 patients or fewer
18-34 years old: - 515 +-10 patients
35-44 years old: - 575 +-10 patients
45-54 years old: - 180 +-10 patients
55-64 years old: - 120 +-10 patients
65-74 years old: - 145 +-10 patients
75-84 years old: - 120 +-10 patients
>= 65 years old: - 360 +-10 patients
>= 85 years old: - 115 +-10 patients
Not recorded: - 10 patients or fewer

Patient Gender Count Breakdown:
Female: - 1800 +-10 patients
Male: - 10 patients or fewer
Unknown: - 10 patients or fewer

Patient Race Count Breakdown:
Aleutian: - 10 patients or fewer
American Indian: - 10 patients or fewer
Asian: - 240 +-10 patients
Asian Pacific Islander: - 10 patients or fewer
Black: - 820 +-10 patients
Eskimo: - 10 patients or fewer
Hispanic: - 360 +-10 patients
Indian: - 190 +-10 patients
Middle Eastern: - 10 patients or fewer
Multiracial: - 10 patients or fewer
Native American: - 10 patients or fewer
Navajo: - 10 patients or fewer
Not recorded: - 10 patients or fewer
Oriental: - 10 patients or fewer
Other: - 10 patients or fewer
White: - 160 +-10 patients

Patient Vital Status Count Breakdown:
Deceased: - 50 +-10 patients
Deferred: - 10 patients or fewer
Living: - 1765 +-10 patients
Not recorded: - 10 patients or fewer

shrine-qa1 "Female@12:00:35"
Patient Count: - 1175 +-10 patients

Patient Age Count Breakdown:
0-9 years old: - 10 patients or fewer
10-17 years old: - 10 patients or fewer
18-34 years old: - 275 +-10 patients
35-44 years old: - 225 +-10 patients
45-54 years old: - 90 +-10 patients
55-64 years old: - 50 +-10 patients
65-74 years old: - 65 +-10 patients
75-84 years old: - 50 +-10 patients
>= 65 years old: - 150 +-10 patients
>= 85 years old: - 50 +-10 patients
Not recorded: - 10 patients or fewer

Patient Gender Count Breakdown:
Female: - 1185 +-10 patients
Male: - 10 patients or fewer
Unknown: - 10 patients or fewer

Patient Race Count Breakdown:
Aleutian: - 10 patients or fewer
American Indian: - 10 patients or fewer
Asian: - 95 +-10 patients
Asian Pacific Islander: - 10 patients or fewer
Black: - 360 +-10 patients
Eskimo: - 10 patients or fewer
Hispanic: - 165 +-10 patients
Indian: - 100 +-10 patients
Middle Eastern: - 10 patients or fewer
Multiracial: - 10 patients or fewer
Native American: - 10 patients or fewer
Navajo: - 10 patients or fewer
Not recorded: - 10 patients or fewer
Oriental: - 10 patients or fewer
Other: - 10 patients or fewer
White: - 65 +-10 patients

Patient Vital Status Count Breakdown:
Deceased: - 35 +-10 patients
Deferred: - 10 patients or fewer
Living: - 1165 +-10 patients
Not recorded: - 10 patients or fewer

shrine-qa3 "Female@12:00:35"
Patient Count: - 885 +-10 patients

Patient Age Count Breakdown:
0-9 years old: - 10 patients or fewer
10-17 years old: - 10 patients or fewer
18-34 years old: - 360 +-10 patients
35-44 years old: - 205 +-10 patients
45-54 years old: - 100 +-10 patients
55-64 years old: - 15 +-10 patients
65-74 years old: - 60 +-10 patients
75-84 years old: - 45 +-10 patients
>= 65 years old: - 170 +-10 patients
>= 85 years old: - 60 +-10 patients
Not recorded: - 10 patients or fewer

Patient Gender Count Breakdown:
Female: - 895 +-10 patients
Male: - 10 patients or fewer
Unknown: - 10 patients or fewer

Patient Race Count Breakdown:
Aleutian: - 10 patients or fewer
American Indian: - 10 patients or fewer
Asian: - 25 +-10 patients
Asian Pacific Islander: - 10 patients or fewer
Black: - 350 +-10 patients
Eskimo: - 10 patients or fewer
Hispanic: - 210 +-10 patients
Indian: - 110 +-10 patients
Middle Eastern: - 10 patients or fewer
Multiracial: - 10 patients or fewer
Native American: - 10 patients or fewer
Navajo: - 10 patients or fewer
Not recorded: - 10 patients or fewer
Oriental: - 10 patients or fewer
Other: - 10 patients or fewer
White: - 145 +-10 patients

Patient Vital Status Count Breakdown:
Deceased: - 10 patients or fewer
Deferred: - 10 patients or fewer
Living: - 895 +-10 patients
Not recorded: - 10 patients or fewer
'})}(),function(){var a=System.amdDefine;a("views/query-status/node-result/node-result.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return''})}(),System.register("views/query-status/node-result/node-result.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j;return{setters:[function(a){f=a.bindable}],execute:function(){a("NodeResult",(g=function(){function a(){d(this,a),c(this,"result",h,this),c(this,"queryName",i,this)}return a.prototype.attached=function(){},a}(),h=e(g.prototype,"result",[f],{enumerable:!0,initializer:null}),i=e(g.prototype,"queryName",[f],{enumerable:!0,initializer:null}),j=g)),a("NodeResult",j)}}}),function(){var a=System.amdDefine;a("views/query-status/node-result/result-types/error/error.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return''})}(),System.register("views/query-status/node-result/result-types/error/error.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f), f=null),f}var f,g,h,i;return{setters:[function(a){f=a.bindable}],execute:function(){a("Error",(g=function(){function a(){d(this,a),c(this,"result",h,this),a.prototype.publishError=function(a){return console.log(a)}}return a.prototype.attached=function(){},a}(),h=e(g.prototype,"result",[f],{enumerable:!0,initializer:null}),i=g)),a("Error",i)}}}),function(){var a=System.amdDefine;a("views/query-status/node-result/result-types/not-available.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return''})}(),function(){var a=System.amdDefine;a("views/query-status/node-result/result-types/patient-count/breakdown.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return''})}(),System.register("views/query-status/node-result/result-types/patient-count/count-value-converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("CountValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return a<0?"<=10 patients":a+" +-10 patients"},a}()),a("CountValueConverter",d)}}}),function(){var a=System.amdDefine;a("views/query-status/node-result/result-types/patient-count/patient-count.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return''})}(),System.register("views/query-status/node-result/result-types/patient-count/patient-count.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i;return{setters:[function(a){f=a.bindable}],execute:function(){a("PatientCount",(g=function b(){d(this,b),c(this,"result",h,this)},h=e(g.prototype,"result",[f],{enumerable:!0,initializer:null}),i=g)),a("PatientCount",i)}}}),function(){var a=System.amdDefine;a("views/query-status/node-result/result-types/processing.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return''})}(),function(){var a=System.amdDefine;a("views/query-status/query-status.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return''})}(),System.register("views/query-status/query-status.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("QueryStatus",d=function b(){c(this,b);var a={nodeResults:[{timestamp:1490571987946,adapterNode:"shrine-qa1",statusMessage:"FINISHED",count:1810,breakdowns:[]},{timestamp:1490571987946,adapterNode:"shrine-qa2",statusMessage:"ERROR",statusDescription:"Error status 1: Could not map query term(s).",count:10,breakdowns:[]},{timestamp:1490571987946,adapterNode:"shrine-qa3",statusMessage:"PROCESSING",count:10,breakdowns:[]},{timestamp:1490571987946,adapterNode:"shrine-qa4",statusMessage:"UNAVAILABLE",count:10,breakdowns:[]},{timestamp:1490571987946,adapterNode:"shrine-qa5",statusMessage:"FINISHED",count:-1,breakdowns:[]},{timestamp:1490571987946,adapterNode:"shrine-qa6",statusMessage:"ERROR",statusDescription:"Error status 2: Could not map query term(s).",count:10,breakdowns:[]}],name:"Female@12:00:35",networkQueryId:0x58a178bf2b1b6800,completed:!1};this.query=a}),a("QueryStatus",d)}}}),function(){var a=System.amdDefine;a("views/query-status/query-timing/query-timing.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return"//add the compute time. self.dispDIV.innerHTML += ''; resultString += '\\n'; //BG self.dispDIV.innerHTML += '
Compute Time: ' + s + ' secs
'; resultString += 'Compute Time: ' + s + ' secs\\n'; //BG"})}(),System.register("views/query-status/query-timing/query-timing.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("QueryTiming",d=function b(){c(this,b)}),a("QueryTiming",d)}}}),System.register("views/query-viewer/box-style.converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("BoxStyleValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return"transform: translate("+String(-100*a)+"%);"},a}()),a("BoxStyleValueConverter",d)}}}),function(){var a=System.amdDefine;a("views/query-viewer/context-menu/context-menu.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return''})}(),System.register("views/query-viewer/context-menu/context-menu.js",["aurelia-framework","aurelia-event-aggregator","common/shrine.messages"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l,m,n;return{setters:[function(a){f=a.inject,g=a.bindable},function(a){h=a.EventAggregator},function(a){i=a.commands}],execute:function(){a("ContextMenu",(j=f(h,i),n=j((l=function b(a,e){var f=this;d(this,b),c(this,"context",m,this),b.prototype.cloneQuery=function(b){a.publish(e.i2b2.cloneQuery,b),f.context["class"]="hide"},b.prototype.renameQuery=function(b){a.publish(e.i2b2.renameQuery,b),f.context["class"]="hide"},b.prototype.flagQuery=function(b){a.publish(e.i2b2.flagQuery,b),f.context["class"]="hide"},b.prototype.unflagQuery=function(b){a.publish(e.i2b2.unflagQuery,b),f.context["class"]="hide"}},m=e(l.prototype,"context",[g],{enumerable:!0,initializer:null}),k=l))||k)),a("ContextMenu",n)}}}),System.register("views/query-viewer/date.converter.js",["moment"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e;return{setters:[function(a){d=a["default"]}],execute:function(){a("DateValueConverter",e=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return d(a).format("MM/DD/YYYY")},a}()),a("DateValueConverter",e)}}}),function(){var a=System.amdDefine;a("views/query-viewer/loading-bar/loading-bar.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return''})}(),System.register("views/query-viewer/loading-bar/loading-bar.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i;return{setters:[function(a){f=a.bindable}],execute:function(){a("LoadingBar",(g=function b(){d(this,b),c(this,"status",h,this)},h=e(g.prototype,"status",[f],{enumerable:!0,initializer:null}),i=g)),a("LoadingBar",i)}}}),function(){var a=System.amdDefine;a("views/query-viewer/loading-bar/row-loader.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return""})}(),function(){var a=System.amdDefine;a("views/query-viewer/paginator/paginator.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return''})}(),System.register("views/query-viewer/paginator/paginator.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l,m;return{setters:[function(a){f=a.bindable,g=a.inject}],execute:function(){h=function(){function a(a,b){for(var c=0;cb?b:a,this.element.dispatchEvent(new CustomEvent("paginator-click",{detail:{index:this.index},bubbles:!0,cancelable:!0}))}}]),a}(),l=e(k.prototype,"pages",[f],{enumerable:!0,initializer:null}),j=k))||j)),a("Paginator",m)}}}),function(){var a=System.amdDefine;a("views/query-viewer/query-status/query-status.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return''})}(),System.register("views/query-viewer/query-status/query-status.js",["aurelia-framework","ramda"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l,m;return{setters:[function(a){f=a.bindable,g=a.inject},function(a){h=a}],execute:function(){a("QueryStatus",(i=g(Math),m=i((k=function(){function a(b){d(this,a),c(this,"status",l,this),this.floor=b.floor}return a.prototype.attached=function(){var a=75,b=h.curry(function(a,b,c,d){return a(d/c*b)})(this.floor,a,this.status.total),c=this.status,d=b(c.finished),e=b(c.error);this.readyOffset=100-d,this.errorOffset=this.readyOffset-e,this.finished=c.finished,this.error=c.error,this.pending=c.total-(c.finished+c.error),this.total=c.total},a}(),l=e(k.prototype,"status",[f],{enumerable:!0,initializer:null}),j=k))||j)),a("QueryStatus",m)}}}),System.register("views/query-viewer/query-viewer.config.js",[],function(a,b){"use strict";var c;return{setters:[],execute:function(){a("QueryViewerConfig",c={maxNodesPerScreen:10,maxQueriesPerScroll:40}),a("QueryViewerConfig",c)}}}),function(){var a=System.amdDefine;a("views/query-viewer/query-viewer.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return''})}(),System.register("repository/qep.repository.js",["aurelia-framework","aurelia-fetch-client","fetch"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i;return{setters:[function(a){d=a.inject},function(a){e=a.HttpClient},function(a){}],execute:function(){f=function(){function a(a,b){for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:0;return this.http.fetch("qep/queryResults?limit="+a+"&skip="+b).then(function(a){return a.json()})["catch"](function(a){return a})},a.prototype.fetchStewardEmail=function(){return this.http.fetch("data?key=stewardEmail").then(function(a){return a.json()}).then(function(a){return a.indexOf('"')>0?a.split('"')[1]:a})["catch"](function(){return""})},f(a,[{key:"url",get:function(){var a=document.URL,b=":6443/shrine-metadata/";return a.substring(0,a.lastIndexOf(":"))+b}},{key:"auth",get:function(){var a=sessionStorage.getItem("shrine.auth");return sessionStorage.removeItem("shrine.auth"),a}}]),a}())||h)),a("QEPRepository",i)}}}),System.register("common/queries.model.js",["aurelia-framework","aurelia-event-aggregator","repository/qep.repository","./shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i,j;return{setters:[function(a){d=a.inject},function(a){e=a.EventAggregator},function(a){f=a.QEPRepository},function(a){g=a.notifications}],execute:function(){a("QueriesModel",(h=d(e,f,g),j=h(i=function b(a,d,e){var f=this;c(this,b);var g=d,h=40,i=0,j=0,k=null;b.prototype.load=function(){return g.fetchPreviousQueries(f.maxQueriesPerFetch()+f.loadedCount()).then(function(a){return j=a.rowCount,i=a.queryResults.length,a})["catch"](function(a){return console.log(a)}).then(l).then(function(b){k=b,a.publish(e.shrine.queriesReceived,k)})},b.prototype.totalQueries=function(){return j},b.prototype.loadedCount=function(){return i},b.prototype.maxQueriesPerFetch=function(){return h},b.prototype.moreToLoad=function(){return i1&&void 0!==arguments[1]?arguments[1]:6;return new Promise(function(b,c){for(var d=[],e=6,f=a.adapters,g=f.length,h=a.queryResults,i=0;i1&&void 0!==arguments[1]?arguments[1]:"FINISHED";return!a||a.status!==b},a.prototype.getColorValue=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ERROR",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#FF0000",d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#00FF00";return a&&a.status!==b?d:c},a}()),a("ResultStyleValueConverter",d)}}}),System.register("views/query-viewer/result-value.converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("ResultValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return a?"FINISHED"!==a.status?"":a.count<0?"<=10":a.count:"not available"},a}()),a("ResultValueConverter",d)}}});