@hpcc-js/other 2.15.23 → 2.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.min.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@hpcc-js/common"),require("@hpcc-js/layout")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common","@hpcc-js/layout"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@hpcc-js/other"]={},t["@hpcc-js/common"],t["@hpcc-js/layout"])}(this,(function(t,e,o){"use strict";function r(t,e){return e.forEach((function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach((function(o){if("default"!==o&&!(o in t)){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}}))})),Object.freeze(t)}var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},i(t,e)};function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}"function"==typeof SuppressedError&&SuppressedError;var a,s,l=0,c=0,p=0,u=1e3,h=0,d=0,f=0,g="object"==typeof performance&&performance.now?performance:Date,y="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function m(){return d||(y(b),d=g.now()+f)}function b(){d=0}function _(){this._call=this._time=this._next=null}function v(t,e,o){var r=new _;return r.restart(t,e,o),r}function w(){d=(h=g.now())+f,l=c=0;try{!function(){m(),++l;for(var t,e=a;e;)(t=d-e._time)>=0&&e._call.call(null,t),e=e._next;--l}()}finally{l=0,function(){var t,e,o=a,r=1/0;for(;o;)o._call?(r>o._time&&(r=o._time),t=o,o=o._next):(e=o._next,o._next=null,o=t?t._next=e:a=e);s=t,C(r)}(),d=0}}function x(){var t=g.now(),e=t-h;e>u&&(f-=e,h=t)}function C(t){l||(c&&(c=clearTimeout(c)),t-d>24?(t<1/0&&(c=setTimeout(w,t-g.now()-f)),p&&(p=clearInterval(p))):(p||(h=g.now(),p=setInterval(x,u)),l=1,y(w)))}_.prototype=v.prototype={constructor:_,restart:function(t,e,o){if("function"!=typeof t)throw new TypeError("callback is not a function");o=(null==o?m():+o)+(null==e?0:+e),this._next||s===this||(s?s._next=this:a=this,s=this),this._call=t,this._time=o,C()},stop:function(){this._call&&(this._call=null,this._time=1/0,C())}};var k=function(t){function e(){var e=t.call(this)||this;return e._tag="audio",e._sections={},e}return n(e,t),e.prototype.section=function(t,e,o,r){return arguments.length?1===arguments.length?this._sections[t]:(this._sections[t]={label:t,offset:e,beatLength:o,beatCount:r,endOffset:e+r*o},this):this._sections},e.prototype.getType=function(t){switch(t){case"mp3":return"audio/mpeg; codecs='mp3'";case"ogg":return"audio/ogg; codecs='vorbis'"}return""},e.prototype.enter=function(t,e){var o=this;e.on("play",(function(t){o.onPlay(t)}))},e.prototype.update=function(t,e){e.selectAll("source").data(this.source(),(function(t){return t})).enter().append("source").attr("src",(function(t){return t}))},e.prototype.createTimer=function(t,e,o){var r=this;v((function(){return r.onTick(t.label,o,t),!0}),o*t.beatLength,e+t.offset)},e.prototype.onTick=function(t,e,o){},e.prototype.onPlay=function(t){var e=Date.now();for(var o in this._sections)for(var r=this._sections[o],i=0;i<r.beatCount;++i)this.createTimer(r,e,i)},e.prototype.play=function(t){var e=this;this._element.on("canplaythrough",(function(t){e.node().play()})),this.node().load()},e}(e.HTMLWidget);function P(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}k.prototype._class+=" other_Audio",k.prototype.publish("source","","string","Audio Source");var S={exports:{}};!function(t){var e=function(t){if(document.querySelector){var e={selector:0,source:0,minChars:3,delay:150,offsetLeft:0,offsetTop:1,cache:1,menuClass:"",renderItem:function(t,e){e=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var o=new RegExp("("+e.split(" ").join("|")+")","gi");return'<div class="autocomplete-suggestion" data-val="'+t+'">'+t.replace(o,"<b>$1</b>")+"</div>"},onSelect:function(t,e,o){}};for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);for(var r="object"==typeof e.selector?[e.selector]:document.querySelectorAll(e.selector),i=0;i<r.length;i++){var n=r[i];n.sc=document.createElement("div"),n.sc.className="autocomplete-suggestions "+e.menuClass,n.autocompleteAttr=n.getAttribute("autocomplete"),n.setAttribute("autocomplete","off"),n.cache={},n.last_val="",n.updateSC=function(t,o){var r=n.getBoundingClientRect();if(n.sc.style.left=Math.round(r.left+(window.pageXOffset||document.documentElement.scrollLeft)+e.offsetLeft)+"px",n.sc.style.top=Math.round(r.bottom+(window.pageYOffset||document.documentElement.scrollTop)+e.offsetTop)+"px",n.sc.style.width=Math.round(r.right-r.left)+"px",!t&&(n.sc.style.display="block",n.sc.classList.remove("hide"),n.sc.maxHeight||(n.sc.maxHeight=parseInt((window.getComputedStyle?getComputedStyle(n.sc,null):n.sc.currentStyle).maxHeight)),n.sc.suggestionHeight||(n.sc.suggestionHeight=n.sc.querySelector(".autocomplete-suggestion").offsetHeight),n.sc.suggestionHeight))if(o){var i=n.sc.scrollTop,a=o.getBoundingClientRect().top-n.sc.getBoundingClientRect().top;a+n.sc.suggestionHeight-n.sc.maxHeight>0?n.sc.scrollTop=a+n.sc.suggestionHeight+i-n.sc.maxHeight:a<0&&(n.sc.scrollTop=a+i)}else n.sc.scrollTop=0},l(window,"resize",n.updateSC),document.body.appendChild(n.sc),p("autocomplete-suggestion","mouseleave",(function(t){var e=n.sc.querySelector(".autocomplete-suggestion.selected");e&&setTimeout((function(){e.className=e.className.replace("selected","")}),20)}),n.sc),p("autocomplete-suggestion","mouseover",(function(t){var e=n.sc.querySelector(".autocomplete-suggestion.selected");e&&(e.className=e.className.replace("selected","")),this.className+=" selected"}),n.sc),p("autocomplete-suggestion","mousedown",(function(t){if(s(this,"autocomplete-suggestion")){var o=this.getAttribute("data-val");n.value=o,e.onSelect(t,o,this),n.sc.style.display="none",n.sc.classList.add("hide")}}),n.sc),n.blurHandler=function(){try{var t=document.querySelector(".autocomplete-suggestions:hover")}catch(e){t=0}t?n!==document.activeElement&&setTimeout((function(){n.focus()}),20):(n.last_val=n.value,n.sc.style.display="none",n.sc.classList.add("hide"),setTimeout((function(){n.sc.style.display="none",n.sc.classList.add("hide")}),350))},l(n,"blur",n.blurHandler);var a=function(t,o){if(o||(o=n.value),n.cache[o]=t,t.length&&o.length>=e.minChars){for(var r="",i=0;i<t.length;i++)r+=e.renderItem(t[i],o);n.sc.innerHTML=r,n.updateSC(0)}else n.sc.style.display="none",n.sc.classList.add("hide")};n.keydownHandler=function(t){var o,r=window.event?t.keyCode:t.which;if((40==r||38==r)&&n.sc.innerHTML)return(i=n.sc.querySelector(".autocomplete-suggestion.selected"))?(o=40==r?i.nextSibling:i.previousSibling)?(i.className=i.className.replace("selected",""),o.className+=" selected",n.value=o.getAttribute("data-val")):(i.className=i.className.replace("selected",""),n.value=n.last_val,o=0):((o=40==r?n.sc.querySelector(".autocomplete-suggestion"):n.sc.childNodes[n.sc.childNodes.length-1]).className+=" selected",n.value=o.getAttribute("data-val")),n.updateSC(0,o),!1;if(27==r)n.value=n.last_val,n.sc.style.display="none",n.sc.classList.add("hide");else if(13==r||9==r){var i;"none"!==n.sc.style.display&&t.preventDefault(),(i=n.sc.querySelector(".autocomplete-suggestion.selected"))&&"none"!=n.sc.style.display&&(e.onSelect(t,i.getAttribute("data-val"),i),setTimeout((function(){n.sc.style.display="none",n.sc.classList.add("hide")}),20))}},l(n,"keydown",n.keydownHandler),n.keyupHandler=function(t){var o=window.event?t.keyCode:t.which;if(!o||(o<35||o>40)&&13!=o&&27!=o){var r=n.value;if(r.length>=e.minChars){if(r!=n.last_val){if(n.last_val=r,clearTimeout(n.timer),e.cache){if(r in n.cache)return void a(n.cache[r]);for(var i=1;i<r.length-e.minChars;i++){var s=r.slice(0,r.length-i);if(s in n.cache&&!n.cache[s].length)return void a([])}}n.timer=setTimeout((function(){e.source(r,a)}),e.delay)}}else n.last_val=r,n.sc.style.display="none",n.sc.classList.add("hide")}},l(n,"keyup",n.keyupHandler),n.focusHandler=function(t){n.last_val="\n",n.keyupHandler(t)},e.minChars||l(n,"focus",n.focusHandler)}this.destroy=function(){for(var t=0;t<r.length;t++){var e=r[t];c(window,"resize",e.updateSC),c(e,"blur",e.blurHandler),c(e,"focus",e.focusHandler),c(e,"keydown",e.keydownHandler),c(e,"keyup",e.keyupHandler),e.autocompleteAttr?e.setAttribute("autocomplete",e.autocompleteAttr):e.removeAttribute("autocomplete"),document.body.removeChild(e.sc),e=null}}}function s(t,e){return t.classList?t.classList.contains(e):new RegExp("\\b"+e+"\\b").test(t.className)}function l(t,e,o){t.attachEvent?t.attachEvent("on"+e,o):t.addEventListener(e,o)}function c(t,e,o){t.detachEvent?t.detachEvent("on"+e,o):t.removeEventListener(e,o)}function p(t,e,o,r){l(r||document,e,(function(e){for(var r,i=e.target||e.srcElement;i&&!(r=s(i,t));)i=i.parentElement;r&&o.call(i,e)}))}};t.exports?t.exports=e:window.autoComplete=e}(S);var E=S.exports,R=r({__proto__:null,default:P(E)},[E]);function T(t,e){void 0===e&&(e={});var o=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===o&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}T(".other_autoCompleteText label{display:inline-block;vertical-align:top}.other_autoCompleteText input{border-radius:100;max-width:600px;outline:0;width:100%}.autocomplete-suggestions{background:#fff;border:1px solid #ccc;border-top:0;box-shadow:-1px 1px 3px rgba(0,0,0,.1);box-sizing:border-box;cursor:default;display:none;max-height:254px;overflow:hidden;overflow-y:auto;position:absolute;text-align:left;z-index:9999}.autocomplete-suggestion{color:#333;font-size:1.02em;line-height:23px;overflow:hidden;padding:0 .6em;position:relative;text-overflow:ellipsis;white-space:nowrap}.autocomplete-suggestion b{color:#1f8dd6;font-weight:400}.autocomplete-suggestion.selected{background:#f0f0f0}");var I=function(t){function e(){var e=t.call(this)||this;return e._tag="div",e}return n(e,t),e.prototype.autoCompleteTextData=function(){return 0===this.data().length?[]:this._db.rollupView([this.textColumn(),this.valueColumn()]).entries().map((function(t,e){return{idx:e,text:t.key,value:t.values.length?t.values[0].key:"",origRow:t.values.length&&t.values[0].value.length?t.values[0].value[0]:[]}}),this)},e.prototype.enter=function(e,o){t.prototype.enter.call(this,e,o),this._span=o.append("span"),this._prompt=this._span.append("label").attr("for",this.id()+"_input"),this._input=this._span.append("input").attr("id",this.id()+"_input").attr("name",this.id()+"_input_name").attr("type","text").attr("placeholder",this.placeholder())},e.prototype.update=function(e,o){if(t.prototype.update.call(this,e,o),this._prompt.text(this.label()),this._input.style("width",this.textboxWidth_exists()?this.textboxWidth()+"px":null),this._prevMinCharsText!==this.minCharsText()){this._prevMinCharsText=this.minCharsText(),this._autoComplete&&this._autoComplete.destroy();var r=this;this._autoComplete=new R({selector:"#"+this.id()+"_input",minChars:this.minCharsText(),delay:150,offsetLeft:0,offsetTop:1,source:function(t,e){var o=r._db.fieldByLabel(r.textColumn());o&&(t=t.toLowerCase(),e(r.autoCompleteTextData().filter((function(e){return e.origRow[o.idx].toLowerCase().indexOf(t)>=0})).map((function(t){return{text:t.origRow[o.idx],rowIdx:t.idx}}))))},renderItem:function(t,e){e=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var o=new RegExp("("+e.split(" ").join("|")+")","gi");return'<div class="autocomplete-suggestion" data-val="'+t.text+'" data-row-idx="'+t.rowIdx+'">'+t.text.replace(o,"<b>$1</b>")+"</div>"},onSelect:function(t,e,o){var i=+o.getAttribute("data-row-idx"),n=r.autoCompleteTextData()[i];r.click(r.rowToObj(n.origRow),r.valueColumn(),!0)}})}},e.prototype.exit=function(e,o){this._autoComplete&&this._autoComplete.destroy(),this._span.remove(),t.prototype.exit.call(this,e,o)},e.prototype.click=function(t,e,o){},e}(e.HTMLWidget);I.prototype._class+=" other_AutoCompleteText",I.prototype.publish("label","Label: ","string","Label for AutoCompleteText"),I.prototype.publish("textboxWidth",null,"number","width of textbox",null,{optional:!0}),I.prototype.publish("placeholder","Search...","string","Placeholder for AutoCompleteText"),I.prototype.publish("valueColumn",null,"set","Select column for autocomplete",(function(){return this.columns()}),{optional:!0}),I.prototype.publish("textColumn",null,"set","Select value(s)",(function(){return this.columns()}),{optional:!0}),I.prototype.publish("minCharsText",1,"number","Size of multiAutoCompleteText box");var W=new Date,D=new Date;function B(t,e,o,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(o){return t(o=new Date(o-1)),e(o,1),t(o),o},i.round=function(t){var e=i(t),o=i.ceil(t);return t-e<o-t?e:o},i.offset=function(t,o){return e(t=new Date(+t),null==o?1:Math.floor(o)),t},i.range=function(o,r,n){var a,s=[];if(o=i.ceil(o),n=null==n?1:Math.floor(n),!(o<r&&n>0))return s;do{s.push(a=new Date(+o)),e(o,n),t(o)}while(a<o&&o<r);return s},i.filter=function(o){return B((function(e){if(e>=e)for(;t(e),!o(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!o(t););else for(;--r>=0;)for(;e(t,1),!o(t););}))},o&&(i.count=function(e,r){return W.setTime(+e),D.setTime(+r),t(W),t(D),Math.floor(o(W,D))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var N=B((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1})).range;function A(t){return B((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var O=A(0),H=A(1),L=A(2),M=A(3),z=A(4),j=A(5),F=A(6);O.range,H.range,L.range,M.range,z.range,j.range,F.range;var U=B((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})).range,V=B((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));V.every=function(t){return isFinite(t=Math.floor(t))&&t>0?B((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,o){e.setFullYear(e.getFullYear()+o*t)})):null},V.range;T(".other_CalendarHeatMap{shape-rendering:crispEdges}.other_CalendarHeatMap .day{fill:#fff;stroke:#ccc}.other_CalendarHeatMap .day.selected{stroke:red}.other_CalendarHeatMap .day.over{stroke:orange}.other_CalendarHeatMap .day.selected.over{stroke:red}.other_CalendarHeatMap .month{fill:none;stroke:#000;stroke-width:2px}");var q=function(t){function o(){var o=t.call(this)||this;return e.Utility.SimpleSelectionMixin.call(o),o}return n(o,t),o.prototype.calendarData=function(){if(0===this.fields().length||0===this.data().length)return[];var t=e.timeParse(this.datePattern()),o=this.aggrDeltaColumn()?e.format(".1%"):e.format("s");return this._prevDateColumn===this.dateColumn()&&this._prevAggrType===this.aggrType()&&this._prevAggrColumn===this.aggrColumn()&&this._prevAggrDeltaColumn===this.aggrDeltaColumn()||(this._prevDateColumn=this.dateColumn(),this._prevAggrType=this.aggrType(),this._prevAggrColumn=this.aggrColumn(),this._prevAggrDeltaColumn=this.aggrDeltaColumn(),this._view=this._db.aggregateView([this.dateColumn()],this.aggrType(),this.aggrColumn(),this.aggrDeltaColumn())),this._view.entries().map((function(e){return e.dateKey=t(e.key),e.formattedValues=o(e.value.aggregate),e.origRows=e.value,e}))},o.prototype.calcDelta=function(t){return(t.Close-t.Open)/t.Open},o.prototype.enter=function(o,r){t.prototype.enter.call(this,o,r),e.select(o.parentNode).style("overflow-y","scroll").style("overflow-x","hidden").style("height","100%").style("width","100%"),this._selection.widgetElement(r)},o.prototype.update=function(o,r){t.prototype.update.call(this,o,r),this._palette=this._palette.switch(this.paletteID());var i=this.width(),n=i/12/5,a=8*n,s=this.calendarData(),l=e.map(s,(function(t){return t.dateKey})),c=e.extent(s,(function(t){return t.dateKey.getFullYear()})),p=this,u=r.selectAll("svg").data(e.range(+c[0],+c[1]+1)),h=u.enter().append("svg").each((function(t){var o=e.select(this).append("g");o.append("text").style("text-anchor","middle"),o.append("g").attr("class","days");var r=U(new Date(t,0,1),new Date(t+1,0,1)),i=o.append("g").attr("class","months");r.forEach((function(t){i.append("path").attr("class","month").attr("d",b(t)).style("stroke",p.monthStrokeColor()).style("stroke-width",p.monthStrokeWidth())}))})).merge(u).attr("width",i).attr("height",a);h.select("g").attr("transform","translate("+(i-53*n)/2+","+(a-7*n-1)+")"),h.select("text").attr("transform","translate(-6,"+3.5*n+")rotate(-90)").text((function(t){return t})),u.exit().remove();var d=e.extent(s,(function(t){return t.value.aggregate}));if(this.aggrDeltaColumn()){var f=Math.max(Math.abs(+d[0]),Math.abs(+d[1]));d=[-f,f]}var g=h.select(".days").selectAll(".day").data((function(t){return N(new Date(t,0,1),new Date(t+1,0,1))})),y=g.enter().append("rect").attr("class","day").call(this._selection.enter.bind(this._selection)).on("click",(function(t){var e=l.get(t);e&&e.value&&e.value&&e.value.length&&p.click(p.rowToObj(e.value[0]),p.dateColumn(),p._selection.selected(this))})).on("dblclick",(function(t){var e=l.get(t);e&&e.value&&e.value&&e.value.length&&p.dblclick(p.rowToObj(e.value[0]),p.dateColumn(),p._selection.selected(this))})).each((function(t){e.select(this).append("title")})).merge(g).attr("x",(function(t){return O.count(V(t),t)*n})).attr("y",(function(t){return t.getDay()*n})).attr("width",n).attr("height",n).style("stroke",this.dayStrokeColor()).style("stroke-width",this.dayStrokeWidth()).style("fill",null);y.select("title").text((function(t){return t})),y.filter((function(t){return l.has(t)})).style("fill",(function(t){var e=l.get(t);return e&&e.value&&e.value.aggregate?p._palette(e.value.aggregate,d[0],d[1]):null})).select("title").text((function(t){var e=l.get(t);return e.key+": "+e.formattedValues})),g.exit().remove();var m=u.select(".months").selectAll(".month").data((function(t){return U(new Date(t,0,1),new Date(t+1,0,1))}));function b(t){var e=new Date(t.getFullYear(),t.getMonth()+1,0),o=t.getDay(),r=O.count(V(t),t),i=e.getDay(),a=O.count(V(e),e);return"M"+(r+1)*n+","+o*n+"H"+r*n+"V"+7*n+"H"+a*n+"V"+(i+1)*n+"H"+(a+1)*n+"V0H"+(r+1)*n+"Z"}m.enter().append("path").attr("class","month").merge(m).attr("d",b).style("stroke",this.monthStrokeColor()).style("stroke-width",this.monthStrokeWidth()),m.exit().remove()},o.prototype.exit=function(e,o){t.prototype.exit.call(this,e,o)},o.prototype.click=function(t,e,o){},o.prototype.dblclick=function(t,e,o){},o}(e.HTMLWidget);q.prototype._class+=" other_CalendarHeatMap",q.prototype.mixin(e.Utility.SimpleSelectionMixin),q.prototype._palette=e.Palette.rainbow("default"),q.prototype.publish("paletteID","YlOrRd","set","Color palette for this widget",q.prototype._palette.switch(),{tags:["Basic","Shared"]}),q.prototype.publish("dayStrokeColor","#ccc","html-color","Color of day border"),q.prototype.publish("monthStrokeColor","#000","html-color","Color of month border"),q.prototype.publish("dayStrokeWidth",1,"number","Pixel width of day border"),q.prototype.publish("monthStrokeWidth",2,"number","Pixel width of month border"),q.prototype.publish("dateColumn",null,"set","Date Column",(function(){return this.columns()}),{optional:!0}),q.prototype.publish("datePattern","%Y-%m-%d","string","Date Pattern"),q.prototype.publish("aggrType",null,"set","Aggregation Type",[null,"mean","median","sum","min","max"],{optional:!0}),q.prototype.publish("aggrColumn",null,"set","Aggregation Field",(function(){return this.columns()}),{optional:!0,disable:function(t){return!t.aggrType()}}),q.prototype.publish("aggrDeltaColumn",null,"set","Aggregation Field",(function(){return this.columns()}),{optional:!0,disable:function(t){return!t.aggrType()}});function G(t){if(null==t)return null;if(!t.trim)return t.Row?Y(t.Row):t;var e=t.trim();return""!==e&&!isNaN(e)&&(e.length<=1||"0"!==e[0]||"."===e[1])?Number(e):e}function Y(t){for(var e in t)t[e]=G(t[e]);return t}var X=function(){function t(){this._protocol="http:",this._hostname="localhost"}return t.prototype.url=function(t){if(!arguments.length)return this._url;this._url=t;var e=document.createElement("a");e.href=this._url,e.href=e.href;var o={};if(e.search.length){var r=e.search;"?"===r[0]&&(r=r.substring(1)),(r=r.split("&")).map((function(t){var e=t.split("=");o[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}))}for(this._protocol=e.protocol,this._hostname=e.hostname,this._port=e.port,this._pathname=e.pathname;this._pathname.length&&"/"===this._pathname[0];)this._pathname=this._pathname.substring(1);return this._search=e.search,this._params=o,this._hash=e.hash,this._host=e.host,this},t.prototype.protocol=function(t){return arguments.length?(this._protocol=t,this):this._protocol},t.prototype.hostname=function(t){return arguments.length?(this._hostname=t,this):this._hostname},t.prototype.port=function(t){return arguments.length?(this._port=t,this):this._port},t.prototype.search=function(t){return arguments.length?(this._search=t,this):this._search},t.prototype.pathname=function(t){return arguments.length?(this._pathname=t,this):this._pathname},t.prototype.hash=function(t){return arguments.length?(this._hash=t,this):this._hash},t.prototype.host=function(t){return arguments.length?(this._host=t,this):this._host},t.prototype.params=function(t){return arguments.length?(this._params=t,this):this._params},t.prototype.param=function(t){return this._params[t]},t.prototype.isWsWorkunits=function(){return this._pathname.toLowerCase().indexOf("wsworkunits")>=0||this._params.Wuid},t.prototype.isWorkunitResult=function(){return this.isWsWorkunits()&&(this._params.Sequence||this._params.ResultName)},t.prototype.isWsEcl=function(){return this._pathname.toLowerCase().indexOf("wsecl")>=0||this._params.QuerySetId&&this._params.Id},t.prototype.isWsWorkunits_GetStats=function(){return this._pathname.toLowerCase().indexOf("wsworkunits/wugetstats")>=0&&this._params.WUID},t.prototype.getUrl=function(t){return(void 0!==(t=t||{}).protocol?t.protocol:this._protocol)+"//"+(void 0!==t.hostname?t.hostname:this._hostname)+":"+(void 0!==t.port?t.port:this._port)+"/"+(void 0!==t.pathname?t.pathname:this._pathname)},t}();function J(t){for(var e in this._mappings=t,this._reverseMappings={},this._mappings)for(var o in this._reverseMappings[e]={},this._mappings[e])this._reverseMappings[e][this._mappings[e][o]]=o}J.prototype.contains=function(t,o){return e.Utility.exists(t+"."+o,this._mappings)},J.prototype.mapResult=function(t,e){var o=this._mappings[e];o&&(t[e]=t[e].map((function(t){var e=[];if(o.x&&o.x instanceof Array){e=[];for(var r=0;r<o.x.length;++r)e.push(t[o.y[r]])}else for(var i in o)"label"===o[i]?e[0]=t[i]:"weight"===o[i]&&(e[1]=t[i]);return e}),this))},J.prototype.mapResponse=function(t){for(var e in t)this.mapResult(t,e)};var Q=function(t){var e=[];for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];null!=r&&e.push(encodeURIComponent(o)+"="+encodeURIComponent(r))}return e.join("&")},$=function(t,e,o){return new Promise((function(r,i){var n=1e3*o,a="jsonp_callback_"+Math.round(999999*Math.random());window[a]=function(t){n=0,c(),r(t)};var s=document.createElement("script");s.src=t+(t.indexOf("?")>=0?"&":"?")+"jsonp="+a+"&"+Q(e),document.body.appendChild(s);var l=setInterval((function(){n<=0?clearInterval(l):(n-=5e3)<=0&&(clearInterval(l),c(),i(Error("Request timeout: "+s.src)))}),5e3);function c(){delete window[a],document.body.removeChild(s)}}))},K=function(t){function e(){var e=t.call(this)||this;return e._proxyMappings={},e._mappings=new J({}),e._timeout=60,e._hipieResults={},e}return n(e,t),e.prototype.hipieResults=function(t){if(!arguments.length)return this._hipieResults;this._hipieResultsLength=0,this._hipieResults={};var e=this;return t.forEach((function(t){e._hipieResultsLength++,e._hipieResults[t.id]=t})),this},e.prototype.jsonp=function(t,e){for(var o in this._proxyMappings){var r=t.split(o),i=r[0];if(r.length>1){var n=(new X).url(t);t=i+this._proxyMappings[o],e.IP=n.hostname(),e.PORT=n.port(),r.length>0&&(e.PATH=r[1]);break}}return $(t,e,this.timeout())},e.prototype.ajax=function(t,e,o){return new Promise((function(r,i){var n=e;"GET"===t&&o&&(n+="?"+Q(o));var a=new XMLHttpRequest;a.onload=function(t){this.status>=200&&this.status<300?r(JSON.parse(this.response)):i(Error(this.statusText))},a.onerror=function(){i(Error(this.statusText))},a.open(t,n),a.setRequestHeader("X-Requested-With","XMLHttpRequest"),"GET"===t?a.send():(a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.send(Q(o)))}))},e.prototype.get=function(t,e){return this.ajax("GET",t,e)},e.prototype.post=function(t,e){return this.ajax("POST",t,e)},e.prototype.mappings=function(t){return arguments.length?(this._mappings=new J(t),this):this._mappings},e.prototype.proxyMappings=function(t){return arguments.length?(this._proxyMappings=t,this):this._proxyMappings},e.prototype.timeout=function(t){return arguments.length?(this._timeout=t||60,this):this._timeout},e}(X),Z=function(t){function e(){return t.call(this)||this}return n(e,t),e.prototype.cacheCalls=function(t){return arguments.length?(this._cacheCalls=t,this):this._cacheCalls},e.prototype.call=function(t,e){var o=this._url+(this._url.indexOf("?")>=0?"&":"?")+Q(t);if(this._cacheCalls){var r=this;return new Promise((function(t,r){var i=JSON.parse(localStorage.getItem("hpcc.viz."+o));if(!i)throw Error("not cached");e&&(console.error("Deprecated: callback, use promise (Basic.prototype.call)"),e(i)),t(i)})).catch((function(t){return r.get(o).then((function(t){return localStorage.setItem("hpcc.viz."+o,JSON.stringify(t)),e&&(console.error("Deprecated: callback, use promise (Basic.prototype.call)"),e(t)),t}))}))}return localStorage.removeItem("hpcc.viz."+o),this.get(o).then((function(t){return e&&(console.error("Deprecated: callback, use promise (Basic.prototype.call)"),e(t)),t}))},e}(K);function tt(t){for(var e in t){if(t[e].Row&&t[e].Row instanceof Array)return t;var o=void 0;if("string"!=typeof t[e]&&(o=tt(t[e])),o)return o}return null}function et(t){for(var e in t){if(t[e].Exception&&t[e].Exception instanceof Array)return t[e];var o=et(t[e]);if(o)return o}return null}var ot=function(t){function e(){var e=t.call(this)||this;return e._port="8002",e._target="",e._query="",e}return n(e,t),e.prototype.url=function(e){var o=t.prototype.url.apply(this,arguments);if(arguments.length){for(var r in this._port="8010"===this._port?"8002":this._port,this._params)switch(r){case"QuerySetId":this.target(this._params[r]);break;case"Id":this.query(this._params[r])}var i=void 0,n=void 0;this._target&&this._query||(i=this._pathname.split("/query/")).length>=2&&(n=i[1].split("/")).length>=2&&(this.target(n[0]),this.query(n[1]))}return o},e.prototype.target=function(t){return arguments.length?(this._target=t,this):this._target},e.prototype.query=function(t){return arguments.length?(this._query=t,this):this._query},e.prototype.constructUrl=function(){return K.prototype.getUrl.call(this,{pathname:"WsEcl/submit/query/"+this._target+"/"+this._query+"/json"})},e.prototype.call=function(t,e,o){(t=t||{}).target=t.target||this._target,t.query=t.query||this._query;var r=this,i=this.getUrl({pathname:"WsEcl/submit/query/"+t.target+"/"+t.query+"/json"});return this.jsonp(i,e).then((function(t){var e=tt(t);if(e||(e=et(t)),(t=e).Exception)throw Error(t.Exception.reduce((function(t,e,o,r){return t.length&&(t+="\n"),t+e.Source+" "+e.Code+": "+e.Message}),""));for(var i in t)t[i].Row&&(t[i]=t[i].Row.map(Y));return r._mappings.mapResponse(t),o&&(console.error("Deprecated: callback, use promise (WsECL.prototype.call)"),o(t)),t}))},e.prototype.send=function(t,e){return this.call({target:this._target,query:this._query},t,e)},e}(K),rt=function(t){function o(){var e=t.call(this)||this;return e._wuid="",e._jobname="",e._sequence=null,e._resultName=null,e._fetchResultNamesPromise=null,e._fetchResultPromise={},e._resultNameCache={},e._resultNameCacheCount=0,e._port="8010",e}return n(o,t),o.prototype.url=function(t){var e=K.prototype.url.apply(this,arguments);if(arguments.length){for(var o in this._params)switch(o){case"Wuid":this.wuid(this._params[o]);break;case"ResultName":this.resultName(this._params[o]);break;case"Sequence":this.sequence(this._params[o])}if(!this._wuid){var r=this._url.split("/res/");if(r.length>=2){var i=r[1].split("/");this.wuid(i[0])}}}return e},o.prototype.wuid=function(t){return arguments.length?(this._wuid=t,this):this._wuid},o.prototype.jobname=function(t){return arguments.length?(this._jobname=t,this):this._jobname},o.prototype.sequence=function(t){return arguments.length?(this._sequence=t,this):this._sequence},o.prototype.resultName=function(t){return arguments.length?(this._resultName=t,this):this._resultName},o.prototype.appendParam=function(t,e,o){return e?(o&&(o+="&"),o+t+"="+e):o},o.prototype.constructUrl=function(){var t="";return K.prototype.getUrl.call(this,{pathname:"WsWorkunits/res/"+this._wuid+"/"})+((t=this.appendParam("ResultName",this._resultName,t))?"?"+t:"")},o.prototype._fetchResult=function(t,e,o){if(t=t||{},!this._fetchResultPromise[t.resultname]){t._start=t._start||0,t._count=t._count||-1;var r=this.getUrl({pathname:"WsWorkunits/WUResult.json"}),i={Wuid:t.wuid,ResultName:t.resultname,SuppressXmlSchema:!0,Start:t._start,Count:t._count};this._resultNameCache[t.resultname]={};var n=this;this._fetchResultPromise[t.resultname]=this.jsonp(r,i).then((function(r){for(var i in r){if(!r[i].Result)throw new Error("No result found.");for(var a in n._total=r[i].Total,r=r[i].Result){r=r[a].Row.map(Y);break}break}return n._resultNameCache[t.resultname]=r,o||n._mappings.mapResult(n._resultNameCache,t.resultname),e&&(console.error("Deprecated: callback, use promise (WsWorkunits.prototype._fetchResult)"),e(n._resultNameCache[t.resultname])),n._resultNameCache[t.resultname]}))}return this._fetchResultPromise[t.resultname]},o.prototype.fetchResult=function(t,e,o){if(t.wuid)return this._fetchResult(t,e,o);if(t.jobname){var r=this;return this.WUQuery(t,(function(i){return t.wuid=i[0].Wuid,r._fetchResult(t,e,o)}))}},o.prototype.WUQuery=function(t,o){var r=this.getUrl({pathname:"WsWorkunits/WUQuery.json"}),i={Jobname:t.jobname,Count:1};return this._resultNameCache={},this._resultNameCacheCount=0,this.jsonp(r,i).then((function(t){if(!e.Utility.exists("WUQueryResponse.Workunits.ECLWorkunit",t))throw Error("No workunit found.");return t=t.WUQueryResponse.Workunits.ECLWorkunit,o&&(console.error("Deprecated: callback, use promise (WsWorkunits.prototype.WUQuery)"),o(t)),t}))},o.prototype.fetchResultNames=function(t){if(!this._fetchResultNamesPromise){var o=this.getUrl({pathname:"WsWorkunits/WUInfo.json"}),r={Wuid:this._wuid,TruncateEclTo64k:!0,IncludeExceptions:!1,IncludeGraphs:!1,IncludeSourceFiles:!1,IncludeResults:!0,IncludeResultsViewNames:!1,IncludeVariables:!1,IncludeTimers:!1,IncludeResourceURLs:!1,IncludeDebugValues:!1,IncludeApplicationValues:!1,IncludeWorkflows:!1,IncludeXmlSchemas:!1,SuppressResultSchemas:!0};this._resultNameCache={},this._resultNameCacheCount=0;var i=this;this._fetchResultNamesPromise=this.jsonp(o,r).then((function(n){return e.Utility.exists("WUInfoResponse.Workunit.Archived",n)&&n.WUInfoResponse.Workunit.Archived&&console.warn("WU is archived: "+o+" "+JSON.stringify(r)),e.Utility.exists("WUInfoResponse.Workunit.Results.ECLResult",n)&&n.WUInfoResponse.Workunit.Results.ECLResult.map((function(t){i._resultNameCache[t.Name]=[],++i._resultNameCacheCount})),t&&(console.error("Deprecated: callback, use promise (WsWorkunits.prototype.fetchResultNames)"),t(i._resultNameCache)),i._resultNameCache}))}return this._fetchResultNamesPromise},o.prototype.fetchResults=function(t,e){var o=this;return this.fetchResultNames().then((function(r){var i=[];for(var n in o._resultNameCache)i.push(o.fetchResult({wuid:o._wuid,resultname:n},null,e));return Promise.all(i).then((function(e){return t&&(console.error("Deprecated: callback, use promise (WsWorkunits.prototype.fetchResults)"),t(o._resultNameCache)),o._resultNameCache}))}))},o.prototype.postFilter=function(t,e){var o={};for(var r in e)o[r]=e[r].filter((function(e,o){for(var r in t)if(void 0!==e[r]&&void 0!==t[r]&&e[r]!=t[r])return!1;return!0}));return this._mappings.mapResponse(o),o},o.prototype.send=function(t,e){var o=this;this._resultNameCacheCount?e(o.postFilter(t,this._resultNameCache)):this.fetchResults((function(r){e(o.postFilter(t,r))}),!0)},o}(K);function it(){K.call(this),this._port="8010",this._wuid=null}function nt(){K.call(this)}function at(){rt.call(this)}function st(){at.call(this)}function lt(t){t=t||document.URL;var e=(new X).url(t);return e.isWsWorkunits_GetStats()?(new it).url(t):e.isWsWorkunits()?(new rt).url(t):e.isWsEcl()?(new ot).url(t):null}it.prototype=Object.create(K.prototype),it.prototype.url=function(t){var e=K.prototype.url.apply(this,arguments);if(arguments.length)for(var o in this._params)if("WUID"===o)this.wuid(this._params[o]);return e},it.prototype.wuid=function(t){return arguments.length?(this._wuid=t,this):this._wuid},it.prototype.constructUrl=function(){return K.prototype.getUrl.call(this,{pathname:"WsWorkunits/WUGetStats?WUID="+this._wuid})},it.prototype.send=function(t,o){var r=this.getUrl({pathname:"WsWorkunits/WUGetStats.json?WUID="+this._wuid});return this.jsonp(r,t).then((function(t){return e.Utility.exists("WUGetStatsResponse.Statistics.WUStatisticItem",t)?(o&&(console.error("Deprecated: callback, use promise (WsWorkunits_GetStats.prototype.send)"),o(t.WUGetStatsResponse.Statistics.WUStatisticItem)),t.WUGetStatsResponse.Statistics.WUStatisticItem):(o&&(console.error("Deprecated: callback, use promise (WsWorkunits_GetStats.prototype.send)"),o([])),[])}))},nt.prototype=Object.create(K.prototype),nt.prototype.fetchResults=function(t,e){var o=this.getUrl({});this._resultNameCache={},this._resultNameCacheCount=0;var r=this;return this.jsonp(o,t).then((function(t){var o=tt(t);if(o||(o=et(t)),(t=o).Exception)throw Error(t.Exception.reduce((function(t,e,o,r){return t.length&&(t+="\n"),t+e.Source+" "+e.Code+": "+e.Message}),""));for(var i in t)t[i].Row&&(r._resultNameCache[i]=t[i].Row.map(Y),++r._resultNameCacheCount);return e&&(console.error("Deprecated: callback, use promise (HIPIERoxie.prototype.fetchResults)"),e(r._resultNameCache)),r._resultNameCache}))},nt.prototype.fetchResult=function(t,e){var o=this;return new Promise((function(r,i){e&&(console.error("Deprecated: callback, use promise (HIPIERoxie.prototype.fetchResult)"),e(o._resultNameCache[t])),r(o._resultNameCache[t])}))},nt.prototype.call=function(t,e){var o=this;return this.fetchResults(t,e).then((function(t){var e={};for(var r in o._hipieResults){var i=o._hipieResults[r];e[i.id]=t[i.from]}return e}))},at.prototype=Object.create(rt.prototype),at.prototype.fetchResults=function(t){var e=this;return rt.prototype.fetchResultNames.call(this).then((function(o){var r=[];for(var i in e._hipieResults){var n=e._hipieResults[i];r.push(e.fetchResult(n.from))}return Promise.all(r).then((function(o){return t&&(console.error("Deprecated: callback, use promise (HIPIEWorkunit.prototype.fetchResults)"),t(e._resultNameCache)),e._resultNameCache}))}))},at.prototype.fetchResult=function(t,e){return rt.prototype.fetchResult.call(this,{wuid:this._wuid,resultname:t}).then((function(t){return e&&(console.error("Deprecated: callback, use promise (HIPIEWorkunit.prototype.fetchResult)"),e(t)),t}))},at.prototype.call=function(t,e){var o=this;return!t.refresh&&this._resultNameCache&&this._resultNameCacheCount?new Promise((function(e,o){e(r(t))})):this.fetchResults(e).then((function(e){return r(t)}));function r(t){var e={};for(var r in t)void 0!==t[r+"_changed"]&&(e[r]={value:t[r]});var i={},n=function(t){for(var r=o._hipieResults[t],n={},a=0;a<r.filters.length;++a){var s=r.filters[a];s.isRange()||(n[s.fieldid]=e[s.fieldid]||{value:void 0},n[s.fieldid].filter=s)}i[r.id]=o._resultNameCache[r.from].filter((function(t){for(var e in n)if(!n[e].filter.matches(t,n[e].value))return!1;return!0}))};for(var a in o._hipieResults)n(a);return i}},st.prototype=Object.create(at.prototype),st.prototype.databomb=function(t){return arguments.length?(this._databomb=t,this):this._databomb},st.prototype.databombOutput=function(t,e){if(arguments.length)return this._resultNameCacheCount++,this._databomb instanceof Array?this._resultNameCache[t]=this._databomb.map(Y):this._resultNameCache[t]=this._databomb[t].map(Y),this},st.prototype.fetchResults=function(t){var e=this;return new Promise((function(o,r){t&&(console.error("Deprecated: callback, use promise (HIPIEDatabomb.prototype.fetchResults)"),t(e._resultNameCache)),o(e._resultNameCache)}))};var ct=Object.freeze({__proto__:null,Basic:Z,Comms:K,ESPMappings:J,ESPUrl:X,HIPIEDatabomb:st,HIPIERoxie:nt,HIPIEWorkunit:at,WsECL:ot,WsWorkunits:rt,createESPConnection:lt,hookJsonp:function(t){$=t}});function pt(t){if(t.Row&&t.Row instanceof Array)return t.Row.map(pt);if(t instanceof Object)for(var e in t)t[e]=pt(t[e]);return t}var ut=!1,ht={};function dt(){Z.call(this)}function ft(t){dt.call(this),this.url(t+"WsWorkunits/")}function gt(t,e){dt.call(this),this.url(t+"WsWorkunits/"),this._wuid=e}function yt(t,e,o){dt.call(this),this.url(t+"WUResult.json"),this._wuid=e,this._name=o,this._xmlSchema=null}function mt(t,e){dt.call(this),this.url(t+"WUResult.json"),this._logicalName=e,this._xmlSchema=null}function bt(t,e){dt.call(this);var o=t.split("/"),r=o.pop();"json"===r.toLowerCase()&&(r=o.pop()),this._queryName=r,this._resultName=e,this.url(o.join("/")+"/"+r+"/json")}function _t(t){return t&&t.replace?t.replace(/ +$/,""):t}function vt(t,e){return t.filter((function(t){for(var o in e)if(void 0!==t[o]&&_t(e[o])!==_t(t[o]))return!1;return!0}))}function wt(t){for(var e in t){if(t[e].Row&&t[e].Row instanceof Array)return t;var o=wt(t[e]);if(o)return o}return null}function xt(t,e,o){var r=(new X).url(t);return 0===e.indexOf("http")?new bt(e,o):0===e.indexOf("~")||e.indexOf("::")>=0?new mt(r.getUrl({pathname:"WsWorkunits/"}),e):e?new yt(r.getUrl({pathname:"WsWorkunits/"}),e,o):null}dt.prototype=Object.create(Z.prototype),dt.prototype.jsonp=function(t,e){var o=JSON.stringify(e);return ut&&ht[t]&&ht[t][o]?Promise.resolve(ht[t][o]):Z.prototype.jsonp.apply(this,arguments).then((function(e){return ut&&(ht[t]||(ht[t]={}),ht[t][o]=e),e}))},ft.prototype=Object.create(dt.prototype),ft.prototype.wuQuery=function(t){var e=this.getUrl({pathname:"WsWorkunits/WUQuery.json"}),o={Wuid:"",Type:"",Cluster:"",RoxieCluster:"",Owner:"",State:"",StartDate:"",EndDate:"",ECL:"",Jobname:"",LogicalFile:"",LogicalFileSearchType:"",After:"",Before:"",Count:"",PageSize:100,PageStartFrom:0,PageEndAt:"",LastNDays:"",Sortby:"",Descending:0,CacheHint:""};for(var r in t)o[r]=t[r];return this.jsonp(e,o).then((function(t){return t.WUQueryResponse&&t.WUQueryResponse.Workunits?t.WUQueryResponse.Workunits.ECLWorkunit:[]}))},gt.prototype=Object.create(dt.prototype),gt.prototype.wuInfo=function(t){var e=this.getUrl({pathname:"WsWorkunits/WUInfo.json"}),o={Wuid:this._wuid,TruncateEclTo64k:!0,IncludeExceptions:!1,IncludeGraphs:!1,IncludeSourceFiles:!1,IncludeResults:!1,IncludeResultsViewNames:!1,IncludeVariables:!1,IncludeTimers:!1,IncludeResourceURLs:!1,IncludeDebugValues:!1,IncludeApplicationValues:!1,IncludeWorkflows:!1,IncludeXmlSchemas:!1,SuppressResultSchemas:!0};for(var r in t)o[r]=t[r];return this.jsonp(e,o).then((function(r){if(ut){var i={WUInfoResponse:{Workunit:{}}};for(var n in t){var a=n.substring(7);i.WUInfoResponse.Workunit[a]=r.WUInfoResponse.Workunit[a]}ht[e][JSON.stringify(o)]=i}return r}))},gt.prototype.wuUpdate=function(t){var e=this.getUrl({pathname:"WsWorkunits/WUUpdate.json"}),o={Wuid:this._wuid};for(var r in t)o[r]=t[r];return this.post(e,o)},gt.prototype.appData=function(t,e,o){return 2===arguments.length?this.wuInfo({IncludeApplicationValues:!0}).then((function(o){var r;return o.WUInfoResponse&&o.WUInfoResponse.Workunit&&o.WUInfoResponse.Workunit.ApplicationValues&&o.WUInfoResponse.Workunit.ApplicationValues.ApplicationValue&&o.WUInfoResponse.Workunit.ApplicationValues.ApplicationValue.filter((function(o){return o.Application===t&&o.Name===e})).forEach((function(t){r=t.Value})),r})):3===arguments.length?this.wuUpdate({"ApplicationValues.ApplicationValue.0.Application":t,"ApplicationValues.ApplicationValue.0.Name":e,"ApplicationValues.ApplicationValue.0.Value":o,"ApplicationValues.ApplicationValue.itemcount":1}):void 0},gt.prototype.results=function(){var t=this;return this.wuInfo({IncludeResults:!0}).then((function(o){var r=[];return e.Utility.exists("WUInfoResponse.Workunit.Results.ECLResult",o)&&(r=o.WUInfoResponse.Workunit.Results.ECLResult.map((function(e){return new yt(t.getUrl({pathname:"WsWorkunits/"}),t._wuid,e.Name)}))),r}))},gt.prototype.result=function(t,e){return xt(t=t||this._wuid,e)},yt.prototype=Object.create(dt.prototype),yt.prototype.wuid=function(t){return arguments.length?(this._wuid=t,this):this._wuid},yt.prototype.name=function(t){return arguments.length?(this._name=t,this):this._name},yt.prototype.query=function(t,e){t=t||{},e=e||{};var o={Wuid:this._wuid,ResultName:this._name,SuppressXmlSchema:!0,Start:0,Count:-1};for(var r in t)o[r]=t[r];var i=0;for(var n in e)o["FilterBy.NamedValue."+i+".Name"]=n,o["FilterBy.NamedValue."+i+".Value"]=e[n],++i;i&&(o["FilterBy.NamedValue.itemcount"]=i);var a=this;return this.jsonp(this.url(),o).then((function(t){return t.WUResultResponse&&t.WUResultResponse.Result&&t.WUResultResponse.Result[a._name]?(ut&&(ht[a.url()][JSON.stringify(o)]={WUResultResponse:{Result:t.WUResultResponse.Result}}),a._xmlSchema=t.WUResultResponse.Result.XmlSchema,pt(t.WUResultResponse.Result[a._name])):[]}))},mt.prototype=Object.create(dt.prototype),mt.prototype.query=function(t,e){t=t||{},e=e||{};var o={Cluster:"hthor",LogicalName:this._logicalName,SuppressXmlSchema:null!==this._xmlSchema,Start:0,Count:-1};for(var r in t)o[r]=t[r];var i=0;for(var n in e)o["FilterBy.NamedValue."+i+".Name"]=n,o["FilterBy.NamedValue."+i+".Value"]=e[n],++i;i&&(o["FilterBy.NamedValue.itemcount"]=i);var a=this;return this.jsonp(this.url(),o).then((function(t){return t.WUResultResponse&&t.WUResultResponse.Result&&t.WUResultResponse.Result.Row?(a._xmlSchema=t.WUResultResponse.Result.XmlSchema,pt(t.WUResultResponse.Result.Row)):[]}))},bt.prototype=Object.create(dt.prototype),bt.prototype.query=function(t,e){t=t||{},e=e||{};var o={};for(var r in t)o[r]=t[r];for(var i in e)o[i]=e[i];var n=this;return this.jsonp(this.url(),o).then((function(t){if(t=wt(t))if(n._resultName){if(t&&t[n._resultName]&&t[n._resultName].Row)return pt(vt(t[n._resultName].Row,e))}else for(var o in t)if(t[o].Row)return pt(vt(t[o].Row,e));return[]}))};var Ct={exports:{}};!function(t){function e(t){if(!(this instanceof e))return new e(t);this._canvas=t="string"==typeof t?document.getElementById(t):t,this._ctx=t.getContext("2d"),this._width=t.width,this._height=t.height,this._max=1,this._data=[]}t.exports=e,e.prototype={defaultRadius:25,defaultGradient:{.4:"blue",.6:"cyan",.7:"lime",.8:"yellow",1:"red"},data:function(t){return this._data=t,this},max:function(t){return this._max=t,this},add:function(t){return this._data.push(t),this},clear:function(){return this._data=[],this},radius:function(t,e){e=void 0===e?15:e;var o=this._circle=this._createCanvas(),r=o.getContext("2d"),i=this._r=t+e;return o.width=o.height=2*i,r.shadowOffsetX=r.shadowOffsetY=2*i,r.shadowBlur=e,r.shadowColor="black",r.beginPath(),r.arc(-i,-i,t,0,2*Math.PI,!0),r.closePath(),r.fill(),this},resize:function(){this._width=this._canvas.width,this._height=this._canvas.height},gradient:function(t){var e=this._createCanvas(),o=e.getContext("2d"),r=o.createLinearGradient(0,0,0,256);for(var i in e.width=1,e.height=256,t)r.addColorStop(+i,t[i]);return o.fillStyle=r,o.fillRect(0,0,1,256),this._grad=o.getImageData(0,0,1,256).data,this},draw:function(t){this._circle||this.radius(this.defaultRadius),this._grad||this.gradient(this.defaultGradient);var e=this._ctx;e.clearRect(0,0,this._width,this._height);for(var o,r=0,i=this._data.length;r<i;r++)o=this._data[r],e.globalAlpha=Math.max(o[2]/this._max,void 0===t?.05:t),e.drawImage(this._circle,o[0]-this._r,o[1]-this._r);var n=e.getImageData(0,0,this._width,this._height);return this._colorize(n.data,this._grad),e.putImageData(n,0,0),this},_colorize:function(t,e){for(var o,r=0,i=t.length;r<i;r+=4)(o=4*t[r+3])&&(t[r]=e[o],t[r+1]=e[o+1],t[r+2]=e[o+2])},_createCanvas:function(){return"undefined"!=typeof document?document.createElement("canvas"):new this._canvas.constructor}}}(Ct);var kt=Ct.exports,Pt=P(kt),St=r({__proto__:null,default:Pt},[kt]),Et=window.simpleheat||St&&Pt||St,Rt=function(t){function o(){return t.call(this)||this}return n(o,t),o.prototype.enter=function(e,o){t.prototype.enter.call(this,e,o),this.resize(this._size),this._heat=Et(e)},o.prototype.update=function(e,o){if(t.prototype.update.call(this,e,o),this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id())),this.topLeftX_exists()&&this.topLeftY_exists()&&this.bottomRightX_exists()&&this.bottomRightY_exists()?this._heat.data(this.skewedData()):this._heat.data(this.data()),this.radius()&&this._heat.radius(this.radius(),this.blur()),this.usePalette()){for(var r={},i=1;i<=this.colorCount();i++){r[i/this.colorCount()]=this._palette(i,1,this.colorCount())}this._heat.defaultGradient=r,this._heat.gradient(r)}else this.gradient()&&(this._heat.defaultGradient=this.gradient(),this._heat.gradient(this.gradient()));this._heat.draw()},o.prototype.exit=function(e,o){delete this._heat,t.prototype.exit.call(this,e,o)},o.prototype.resize=function(t){var o=e.CanvasWidget.prototype.resize.apply(this,arguments);return void 0!==this._heat&&this._heat.resize(),o},o.prototype.skewedData=function(){var t=this,e=[],o=this.data(),r=this.size(),i=this.bottomRightX()-this.topLeftX(),n=this.bottomRightY()-this.topLeftY(),a=i/r.width,s=n/r.height;return o.forEach((function(o){var r=Math.abs(o[0]-t.topLeftX()),i=Math.abs(o[1]-t.topLeftY()),n=r/a,l=i/s;e.push([n,l,o[2]])})),e},o}(e.CanvasWidget);Rt.prototype._class+=" other_HeatMap",Rt.prototype._palette=e.Palette.rainbow("default"),Rt.prototype.publish("radius",15,"number","Set point radius",null,{tags:["Basic"]}),Rt.prototype.publish("blur",15,"number","Set point blur",null,{tags:["Basic"]}),Rt.prototype.publish("max",1,"number","Set max data value",null,{tags:["Basic"]}),Rt.prototype.publish("gradient",{.4:"blue",.6:"cyan",.7:"lime",.8:"yellow",1:"red"},"object","Set gradient colors",null,{tags:["Basic"]}),Rt.prototype.publish("usePalette",!1,"boolean","If true, uses paletteID and colorCount to determine gradient",null,{tags:["Basic"]}),Rt.prototype.publish("colorCount",10,"number","Top left x-value",null,{tags:["Basic"]}),Rt.prototype.publish("paletteID","default","set","Color palette for this widget",Rt.prototype._palette.switch(),{tags:["Basic"]}),Rt.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]}),Rt.prototype.publish("topLeftX",null,"number","Top left x-value",null,{tags:["Basic"],optional:!0}),Rt.prototype.publish("topLeftY",null,"number","Top left y-value",null,{tags:["Basic"],optional:!0}),Rt.prototype.publish("bottomRightX",null,"number","Bottom right x-value",null,{tags:["Basic"],optional:!0}),Rt.prototype.publish("bottomRightY",null,"number","Bottom right y-value",null,{tags:["Basic"],optional:!0});var Tt=function(t){function e(){return t.call(this)||this}return n(e,t),e.prototype.testData=function(t,e){return this},e.prototype.enter=function(e,o){t.prototype.enter.call(this,e,o),this.root=o.append("g"),this.logo=this.root.append("g"),this.logo_accent=this.root.append("g"),this.line=this.logo_accent.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","m 189.38849,364.55373 c 191.6,3.8 0,0 191.6,3.8 l 0.1,-4.2 c -191.7,0.4 0,0 -191.7,0.4 z"),this.circle_accent=this.logo_accent.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#6E6E73").attr("d","M421.3,354.2c6.9,6.9,3.1,18.7-8.6,26.1c-11.8,7.4-26.3,6.9-32.1-0.6c-5.5-7.2-1.1-18.2,9.6-25C401,348,414.7,347.6,421.3,354.2z"),this.logo_circles=this.logo.append("g"),this.circle_1=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","m 258.9815,363.84947 c 1.3,-3 1.5,-5.9 0.4,-8.1 -2.6,-5.4 -11.8,-5.1 -20.6,0.4 -3.5,2.2 -6.5,4.9 -8.7,7.8 -0.11933,0.35821 -0.39477,0.60735 -0.6,0.9 -2.9,4.1 -4.2,8.3 -3,11.6 2.1,6 11.4,6.3 20.9,0.4 5,-3.2 8.9,-7.3 11,-11.4 -0.59813,0.54778 0.47385,-1.28911 0.6,-1.6 z"),this.circle_2=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M291.3,349.3c9.5-5.9,14.1-15,10.5-20c-3.5-4.8-13.3-4.2-22.1,1.3c-8.8,5.5-13.7,14.1-10.9,19.3C271.7,355.4,281.9,355.2,291.3,349.3z"),this.circle_3=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M335.3,321.7c9.5-5.9,13.3-14.5,8.9-19c-4.3-4.3-14.8-3.2-23.6,2.3c-8.8,5.5-13.1,13.7-9.4,18.4C315,328.3,325.9,327.7,335.3,321.7z"),this.circle_4=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M273.2,384c-3.2-6.5-13.5-6.7-23.2-0.7c-9.7,6-15.6,16.4-13.2,23.4c2.5,7.3,13.1,8.2,23.6,1.7 C270.8,401.9,276.5,390.8,273.2,384z"),this.circle_5=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","m 320.84499,363.83119 c 1,-3.4 0.8,-6.6 -1,-9.1 -4.2,-5.9 -15.3,-5.6 -25,0.5 -3.89999,2.4 -7.09999,5.5 -9.19999,8.7 -1.18854,2.2092 -0.0404,-0.09 -1.2,2.2 -2.2,4.1 -2.7,8.3 -0.9,11.5 3.6,6.7 15.09999,7 25.59999,0.5 5,-3.2 8.7,-7.2 10.7,-11.3 0.95557,-2.97582 0.0423,0.0306 1,-3 z"),this.circle_6=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M330.4,348.2c4.6,6,17,5.8,27.5-0.8c10.5-6.6,14.3-16.5,8.9-22c-5.2-5.3-17.1-4.4-26.8,1.6C330.3,333.1,325.9,342.4,330.4,348.2z"),this.circle_7=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M264.1,417.4c-10.8,6.7-17.2,19-14.2,27.8c3.2,9.2,15.4,11.1,27.2,3.7c11.8-7.4,17.8-20.6,13.6-29.2C286.6,411.6,274.8,410.7,264.1,417.4z"),this.circle_8=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M314.2,386.1c-10.8,6.7-16.2,18.4-11.9,26.4c4.5,8.4,17.8,9.5,29.6,2.2c11.8-7.4,16.6-19.9,11.1-27.7C337.7,379.6,324.9,379.3,314.2,386.1z"),this.text=this.root.append("g"),this.text_hpccsystems=this.text.append("path").attr("fill","#6E6E73").attr("d","M224.2,476.3c0.1-1.3,0.1-2.7,0.2-4.1c-0.3,0-0.5,0.1-0.8,0.1c-0.3,0-0.5,0-0.8,0c-0.3,0-0.5,0-0.8,0c-0.3,0-0.5-0.1-0.8-0.1c0.1,1.4,0.1,2.8,0.2,4.1c0.1,1.3,0.1,2.7,0.1,4.1v1.1c-1.1,0-2.3,0-3.3,0.1c-1.1,0-2.2,0-3.3,0c-1.1,0-2.3,0-3.3,0c-1.1,0-2.2,0-3.3-0.1v-1.1c0-1.4,0-2.8,0.1-4.1c0.1-1.3,0.1-2.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1c-0.1,0-0.3,0-0.4,0.1c-0.5-0.8-1.1-1.6-1.8-2.4h-0.4v0.8c0,0.5,0,1.1,0.1,1.6c-0.1,0-0.2-0.1-0.4-0.1c-0.1,0-0.2,0-0.4,0.1c0-0.5,0.1-1,0.1-1.5V475z M432.2,475.7c0.1,0,0.3,0,0.5,0c0.7,0,1.4-0.3,1.4-1.1c0-0.6-0.4-0.9-1-0.9c-0.3,0-0.5,0-0.8,0.1c0,0.3-0.1,0.7-0.1,1V475.7z"),this.text_tm=this.text.append("path").attr("fill","#6E6E73").attr("d","M376.1,322.1c0-0.6,0-1.2,0-1.9c-0.6,0-1.4,0-1.9,0.1c0-0.1,0-0.2,0-0.3c0-0.1,0-0.2,0-0.3c0.8,0,1.5,0,2.3,0s1.5,0,2.3,0c0,0.1,0,0.2,0,0.3c0,0.1,0,0.2,0,0.3c-0.5-0.1-1.3-0.1-1.9-0.1c0,0.6,0,1.2,0,1.9v1.5c0,0.8,0,1.6,0.1,2.3c-0.2,0-0.3,0-0.4,0c-0.1,0-0.3,0-0.4,0c0-0.8,0.1-1.6,0.1-2.3V322.1zM380.5,319.7c0.8,1.7,1.7,3.3,2.6,5c0.4-0.7,1.8-3.3,2.7-5h0.1c0.3,2.3,0.5,4.3,0.7,6.3c-0.1,0-0.3,0-0.4,0c-0.1,0-0.3,0-0.4,0c-0.1-1.6-0.3-3.1-0.4-4.6h0c-0.8,1.5-1.6,3-2.4,4.6h-0.1c-0.7-1.5-1.5-3-2.3-4.6h0c-0.2,1.5-0.4,3.6-0.4,4.6c-0.1,0-0.2,0-0.3,0c-0.1,0-0.2,0-0.3,0c0.3-2,0.7-4.4,0.9-6.3H380.5z");var r=this.root.node().getBBox(),i=r.x+r.width/2,n=r.y+r.height/2,a=Math.min(this.width(),this.height())/Math.max(r.width,r.height);this.root.attr("transform","translate("+-i*a+","+-n*a+")scale("+a+")")},e.prototype.update=function(e,o){switch(t.prototype.update.call(this,e,o),this.animation()){case"none":break;case"accentInOut":this.logo.attr("opacity",0),this.logo_accent.attr("transform","translate(-400, 0)"),this.text.attr("opacity",0),this.logo.transition().duration(1e3).attr("opacity",1),this.logo_accent.transition().delay(500).duration(1500).attr("transform","translate(0, 0)"),this.text.transition().delay(100).duration(1e3).attr("opacity",1),this.logo_accent.transition().ease("back").delay(7e3).duration(1500).attr("transform","translate(400, 0)"),this.text.transition().delay(8400).duration(1e3).attr("opacity",0),this.logo_accent.transition().delay(8500).duration(1e3).attr("opacity",0),this.logo.transition().delay(8500).duration(1e3).attr("opacity",0);break;case"accentIn":this.logo.attr("opacity",0),this.logo_accent.attr("transform","translate(-400, 0)"),this.text.attr("opacity",0),this.logo.transition().duration(1e3).attr("opacity",1),this.logo_accent.transition().delay(500).duration(1500).attr("transform","translate(0, 0)"),this.text.transition().delay(100).duration(1e3).attr("opacity",1);break;case"fade_in":this.logo.attr("opacity",0),this.logo_accent.attr("opacity",0),this.text.attr("opacity",0),this.logo.transition().duration(1e3).attr("opacity",1),this.logo_accent.transition().duration(1e3).attr("opacity",1),this.text.transition().delay(100).duration(1e3).attr("opacity",1)}},e}(e.SVGWidget);Tt.prototype._class+=" other_HPCCBadge",Tt.prototype.publish("animation","none","set","Animation Style",["none","accentInOut","accentIn","fade_in"]);T(".other_Html{height:100%;overflow-x:auto;overflow-y:scroll;width:100%}");var It=function(t){function e(){var e=t.call(this)||this;return e._tag="div",e}return n(e,t),e.prototype.enter=function(e,o){t.prototype.enter.call(this,e,o)},e.prototype.update=function(e,o){t.prototype.update.call(this,e,o),o.style("overflow-x",this.overflowX_exists()?this.overflowX():"").style("overflow-y",this.overflowY_exists()?this.overflowY():"");var r=o.selectAll(".htmlWrapper").data(this.data().length>0?this.data():[this.html()]);r.enter().append("div").attr("class","htmlWrapper").merge(r).html((function(t){return t})),r.exit().remove()},e}(e.HTMLWidget);It.prototype._class+=" other_Html",It.prototype.publish("html","","string","Html to render",null,{tags:["Basic"]}),It.prototype.publish("overflowX",null,"set","CSS overflow-x",["","visible","hidden","scroll","auto","initial","inherit"],{tags:["Basic"],optional:!0}),It.prototype.publish("overflowY",null,"set","CSS overflow-y",["","visible","hidden","scroll","auto","initial","inherit"],{tags:["Basic"],optional:!0});T(".other_IconList .other_Html{overflow-x:hidden;overflow-y:hidden}");var Wt=function(t){function r(){var e=t.call(this)||this;return e._entity_list=[],e._content_list=[],e._list=(new o.HorizontalList).orientation_default("horizontal").flexWrap_default("nowrap"),e}return n(r,t),r.prototype.enter=function(o,r){t.prototype.enter.call(this,o,r),r.style("height","100%").style("width","100%"),e.select(o.parentElement).style("height","100%").style("width","100%"),this._list.target(o)},r.prototype.update=function(r,i){var n=this;t.prototype.update.call(this,r,i);var a=this._list.widgets();this.data().forEach((function(t,r){a[r]?(a[r]=n.updateListProperties(a[r],r),n.updateEntityProperties(a[r].widgets()[0],r),a[r].widgets()[1].html(n.data()[r][n.htmlColumnIndex_exists()?n.htmlColumnIndex():1])):a[r]=n.updateListProperties(new o.VerticalList,r).widgets([n.updateEntityProperties(new e.Entity,r),(new It).html(n.data()[r][n.htmlColumnIndex_exists()?n.htmlColumnIndex():1])])})),this._list.widgets(a.slice(0,this.data().length)),this._list.resize().render()},r.prototype.updateListProperties=function(t,e){return t.disableScroll(!0).widgetsFlexBasis([this.iconSize()+"px","calc(100% - ".concat(this.iconSize(),"px)")])},r.prototype.updateEntityProperties=function(t,e){return t.icon(this.iconColumnIndex_exists()?this.data()[e][this.iconColumnIndex()]:"?").iconColor(this.iconColorColumnIndex_exists()?this.data()[e][this.iconColorColumnIndex()]:"#000").iconDiameter(this.iconSize()).iconPaddingPercent(0)},r}(e.HTMLWidget);Wt.prototype._class+=" other_IconList",Wt.prototype.publish("iconSize",72,"number","Size of icon (pixels)"),Wt.prototype.publish("iconColumnIndex",0,"number","Index of column containing icon character"),Wt.prototype.publish("iconColorColumnIndex",1,"number","Index of column containing icon color"),Wt.prototype.publish("htmlColumnIndex",2,"number","Index of column containing html string");T(".other_Paginator{display:block;position:absolute;white-space:nowrap}.other_Paginator .pagination{display:inline-block;margin:0;padding:0;white-space:nowrap}.other_Paginator .pagination>li{display:inline}.other_Paginator input[type=number].currentPageNumber{border:1px solid #ddd;outline:0 none;position:relative;text-align:center;width:37px}.other_Paginator div.side{padding-left:8px;padding-top:5px;vertical-align:top}.other_Paginator span.side{color:#337ab7;position:relative}.other_Paginator .pagination>div,.other_Paginator .pagination>li>a,.other_Paginator .pagination>li>span{background-color:#fff;border:1px solid #ddd;color:#337ab7;float:left;line-height:1.42857143;margin-left:-1px;padding:6px 12px;position:relative;text-decoration:none}.other_Paginator .pagination>li:first-child>a,.other_Paginator .pagination>li:first-child>span{border-bottom-left-radius:4px;border-top-left-radius:4px;margin-left:0}.other_Paginator .pagination>li:last-child>a,.other_Paginator .pagination>li:last-child>span{border-bottom-right-radius:4px;border-top-right-radius:4px}.other_Paginator .pagination>li>a:focus,.other_Paginator .pagination>li>a:hover,.other_Paginator .pagination>li>span:focus,.other_Paginator .pagination>li>span:hover{background-color:#eee;border-color:#ddd;color:#23527c}.other_Paginator .pagination>.active>a,.other_Paginator .pagination>.active>a:focus,.other_Paginator .pagination>.active>a:hover,.other_Paginator .pagination>.active>span,.other_Paginator .pagination>.active>span:focus,.other_Paginator .pagination>.active>span:hover{background-color:#337ab7;border-color:#337ab7;color:#fff;cursor:default;z-index:2}.other_Paginator .pagination>.disabled>a,.other_Paginator .pagination>.disabled>a:focus,.other_Paginator .pagination>.disabled>a:hover,.other_Paginator .pagination>.disabled>span,.other_Paginator .pagination>.disabled>span:focus,.other_Paginator .pagination>.disabled>span:hover{background-color:#fff;border-color:#ddd;color:#777;cursor:not-allowed}.other_Paginator .pagination-lg>li>a,.other_Paginator .pagination-lg>li>span{font-size:18px;padding:10px 16px}.other_Paginator .pagination-lg>li:first-child>a,.other_Paginator .pagination-lg>li:first-child>span{border-bottom-left-radius:6px;border-top-left-radius:6px}.other_Paginator .pagination-lg>li:last-child>a,.other_Paginator .pagination-lg>li:last-child>span{border-bottom-right-radius:6px;border-top-right-radius:6px}.other_Paginator .pagination-sm>li>a,.other_Paginator .pagination-sm>li>span{font-size:12px;padding:5px 10px}.other_Paginator .pagination-sm>li:first-child>a,.other_Paginator .pagination-sm>li:first-child>span{border-bottom-left-radius:3px;border-top-left-radius:3px}.other_Paginator .pagination-sm>li:last-child>a,.other_Paginator .pagination-sm>li:last-child>span{border-bottom-right-radius:3px;border-top-right-radius:3px}");var Dt=function(t){function o(){var e=t.call(this)||this;return e._tag="div",e._tNumPages=1,e._numList=[],e}return n(o,t),o.prototype.postUpdate=function(t,e){},o.prototype.enter=function(e,o){t.prototype.enter.call(this,e,o);var r=this;this.paginator=o.append("ul").attr("class","paginator pagination pagination-sm"),this.side=o.append("div").attr("class","paginator pagination side"),this.side.append("span").classed("side",!0).text("Page "),this.side.append("input").attr("type","number").attr("class","currentPageNumber").property("value",1).attr("min",1).on("change",(function(){r.pageNumber(this.value),r._onSelect(this.value)})),this.side.append("span").classed("side total",!0).text(" of 1")},o.prototype.update=function(t,o){var r=this;if(o.style("bottom",this.bottom()+"px").style("right",this.right()+"px"),this._tNumPages=Math.ceil(this.numItems()/this.itemsPerPage())||1,this.pageNumber()>this._tNumPages&&this.pageNumber(1),this._numList=[],this.numItems()){this._numList.push("first");for(var i=-this.adjacentPages();i<=this.adjacentPages();i++)this.pageNumber()+i>0&&this.pageNumber()+i<=this._tNumPages&&this._numList.push(this.pageNumber()+i);this._numList.push("last")}this.side.select(".total").text(" of "+this._tNumPages),this.side.select(".currentPageNumber").property("value",this.pageNumber()),this.side.select(".currentPageNumber").attr("max",this._tNumPages);var n=this.paginator.selectAll("li").data(this._numList,(function(t){return t}));n.enter().append((function(t){var e=document.createElement("li");if(t!==r.pageNumber()){var o=document.createElement("a"),i=document.createTextNode(t);return o.appendChild(i),o.href="#",e.appendChild(o),e}var n=document.createElement("span");return n.innerHTML=t,e.appendChild(n),e})).on("click",(function(t,o){switch(e.d3Event().preventDefault(),r.side.select(".currentPageNumber").property("value",r.pageNumber()),t){case"first":1!==r.pageNumber()&&(r.pageNumber(1),r._onSelect(1,"previous"));break;case"last":r.pageNumber()!==r._tNumPages&&(r.pageNumber(r._tNumPages),r._onSelect(r._tNumPages,"previous"));break;default:r.pageNumber(t),r._onSelect(t)}})),n.classed("active",(function(t,e){return t===r.pageNumber()})).select("a").text((function(t){return t})),n.exit().remove(),n.order(),0===this.numItems()&&e.select(t).remove()},o.prototype.exit=function(e,o){t.prototype.exit.call(this,e,o)},o}(e.HTMLWidget);Dt.prototype._class+=" other_Paginator",Dt.prototype.publish("itemsPerPage",2,"number","Pagination items per page",null,{tags:["Private"]}),Dt.prototype.publish("numItems",10,"number","Pagination total number of items",null,{tags:["Private"]}),Dt.prototype.publish("pageNumber",1,"number","Pagination set or get the page number",null,{tags:["Private"]}),Dt.prototype.publish("adjacentPages",2,"number","Number of page indexes either side of current one",null,{tags:["Private"]}),Dt.prototype.publish("bottom",20,"number","Pagination bottom offset",null,{tags:["Private"]}),Dt.prototype.publish("right",20,"number","Pagination right offset",null,{tags:["Private"]});T(".other_Table{border-color:#999;border-width:1px;color:#333}.other_Table table{border-collapse:collapse;border-spacing:0}.other_Table .tableDiv{position:absolute}.labels-wrapper th,.other_Table th{border:1px solid #a9c6c9;box-sizing:border-box;color:#fff;cursor:pointer;padding:5px 10px;white-space:nowrap}.cols-wrapper tr,.other_Table thead>tr{background-color:#1f77b4}.labels-wrapper .thIcon,.other_Table .thIcon{font-family:FontAwesome;padding-left:8px}.other_Table .tableDiv tbody>tr:nth-child(odd){background-color:#f3faff;color:#000}.other_Table .tableDiv tbody>tr:nth-child(2n){background-color:#fff;color:#000}.other_Table .tableDiv tbody>tr.selected{background-color:#f48a00;color:#fff}.other_Table .rows-wrapper table>tbody>tr{background-color:#bce1fb;color:#000}.other_Table .rows-wrapper .labels-wrapper{width:100%}.other_Table table tbody>tr.selected{background-color:#f48a00;color:#fff}.other_Table .tableDiv tbody>tr.hover,.other_Table .tableDiv tbody>tr:hover,.rows-wrapper table tbody tr.hover{background-color:#bfd7e7;color:#fff}.other_Table .rows-wrapper tbody tr.hover.selected,.other_Table .tableDiv tbody>tr.selected.hover,.other_Table .tableDiv tbody>tr.selected:hover,.other_Table tr.selected.hover,.other_Table tr.selected:hover{background-color:#5ea8db;color:#fff}.other_Table td,.rows-wrapper td{border:1px solid #a9c6c9;box-sizing:border-box;padding:2px 5px;vertical-align:middle;white-space:nowrap}.other_Table tfoot td,.rows-wrapper tfoot td{background-color:#addff3;font-weight:700}");var Bt=function(t){function o(){var o=t.call(this)||this;return o._tag="div",o.columns([]),o._paginator=new Dt,o._selectionBag=new e.Utility.Selection(o),o._selectionPrevClick=null,o._paginatorTableSpacing=4,o}return n(o,t),o.prototype.size=function(e){var o=t.prototype.size.apply(this,arguments);if(arguments.length&&this.tableDiv){var r=this.showHeader()&&this.fixedHeader()?this.thead.property("offsetHeight"):0;this.tableDiv.style("width",this._size.width+"px").style("height",this._size.height-r+"px"),this._element.style("width",this._size.width+"px").style("height",this._size.height+"px")}return o},o.prototype.isHidden=function(t){if(this.pivot())return!1;if(-1!==this.hiddenColumns().indexOf(t))return!0;var e=this.fields();return!(!e||!e[t]||"hidden"!==e[t].type()&&-1===this._empty_col_idx_arr.indexOf(t))},o.prototype.tableColumns=function(t){var e=this.columns.apply(this,arguments);return!arguments.length&&this.pivot()?this._db.column(0):e},o.prototype.tableData=function(t){var e=this.data.apply(this,arguments);return!arguments.length&&this.pivot()?this._db.columns().filter((function(t,e){return e>0})):e},o.prototype.field=function(t,e){var o={transform:function(t){return t}};return this.pivot()?0===e?o:this.fields()[t+1]:-1===t?o:this.fields()[e]},o.prototype.calcFieldsIndex=function(t){for(var e=-1,o=0,r=this.columns().length,i=0;e<r&&i<=t;)e++,this.isHidden(e)?o++:i++;return t+o},o.prototype.getEmptyColumnIdxArr=function(t,e){var o=[];if(this.hideEmptyColumns())for(var r=0;r<t.length;r++){for(var i=!0,n=0;n<e.length;n++)if(-1===["",null,void 0].indexOf(e[n][r])){i=!1;break}i&&o.push(r)}return o},o.prototype.enter=function(e,o){t.prototype.enter.call(this,e,o),this._placeholderElement.style("overflow","hidden"),this.tableDiv=o.append("div").attr("class","tableDiv"),this.table=this.tableDiv.append("table"),this.fixedHead=o.append("div").classed("header-wrapper",!0),this.fixedHeadTable=this.fixedHead.append("table"),this.fixedThead=this.fixedHeadTable.append("thead").append("tr"),this.unfixedThead=this.table.append("thead").append("tr"),this.tbody=this.table.append("tbody"),this.tfoot=this.table.append("tfoot").append("tr"),this.fixedCol=o.append("div").classed("rows-wrapper",!0),this.fixedColTable=this.fixedCol.append("table"),this.fixedColHead=this.fixedColTable.append("thead"),this.fixedColHeadRow=this.fixedColHead.append("tr"),this.fixedColBody=this.fixedColTable.append("tbody"),this.fixedColFoot=this.fixedColTable.append("tfoot"),this.fixedColFootRow=this.fixedColFoot.append("tr"),this.tableDiv.style("overflow","auto")},o.prototype.update=function(o,r){t.prototype.update.call(this,o,r);var i=this,n=i.tableColumns(),a=i.tableData(),s=this.tableDiv.node().scrollLeft;this._empty_col_idx_arr=this.getEmptyColumnIdxArr(n,a),this.element().selectAll("table,tbody,th,td").style("width",null),!this.sortByFieldIndex_exists()||this._prevSortByFieldIndex===this.sortByFieldIndex()&&this._prevDescending===this.descending()||(e.Utility.multiSort(a,[{idx:this.sortByFieldIndex(),reverse:this.descending()}]),this._prevSortByFieldIndex=this.sortByFieldIndex(),this._prevDescending=this.descending()),this._hasChildWidgets=!1,this.fixedHeader()?this.thead=this.fixedThead:this.thead=this.unfixedThead,this.fixedHead.style("display",this.fixedHeader()?"table-row":"none"),this.unfixedThead.style("display",this.fixedHeader()?"none":"table-row");var l=this.thead.selectAll("th").data(this.showHeader()?n.filter((function(t,e){return!i.isHidden(e)&&-1===i._empty_col_idx_arr.indexOf(e)})):[]),c=l.enter().append("th").each((function(t){var o=e.select(this);o.append("span").attr("class","thText"),o.append("span").attr("class","thIcon")})).on("click",(function(t,e){i.headerClick(t,e)})).merge(l).style("background-color",this.theadRowBackgroundColor()).style("border-color",this.theadCellBorderColor()).style("color",this.theadFontColor()).style("font-size",this.theadFontSize());if(c.select(".thText").style("font-family",this.theadFontFamily()).text((function(t,e){var o=i.calcFieldsIndex(e);return i.field(-1,o).transform(t)})),c.select(".thIcon").text((function(t,e){return i.descending()?i.sortByFieldIndex()===e?"":"":i.sortByFieldIndex()===e?"":""})),l.exit().remove(),c.order(),this.paginationLimit()&&this.pagination(a.length>=parseInt(this.paginationLimit())),this.pagination()){null===this._paginator.target()&&this._paginator.target(r.node());var p=this._calcRowsPerPage(c);this.itemsPerPage(p),this._paginator.numItems(a.length),this._tNumPages=Math.ceil(this._paginator.numItems()/this.itemsPerPage())||1,(this.pageNumber()>this._tNumPages||this.pageNumber()<=0)&&this.pageNumber(1),this._paginator._onSelect=function(t,e){i.pageNumber(t),i.render()}}else this._paginator.numItems(0);var u=this.pageNumber()-1,h=this.itemsPerPage(),d=u*h,f=u*parseInt(h)+parseInt(h),g=null;g=this.topN()?a.slice(0,this.topN()):this.pagination()?a.slice(d,f):a;var y=[this.totalledLabel()?this.totalledLabel():null];if(0!==this.totalledColumns().length){for(var m=0;m<this.totalledColumns().length;m++)this.totalledColumns()[m]=+this.totalledColumns()[m];for(var b=1;b<n.length;b++){var _=0;if(-1!==this.totalledColumns().indexOf(b)){for(var v=0;v<g.length;v++)_+=g[v][b];y.push(_)}else y.push("")}var w=this.tfoot.selectAll("td").data(y);w.enter().append("td").merge(w).style("background-color",this.tfootRowBackgroundColor()).style("border-color",this.tfootCellBorderColor()).style("color",this.tfootFontColor()).style("font-size",this.tfootFontSize())[this.renderHtmlDataCells()?"html":"text"]((function(t,e){return i.fields()[e].transform(t)})),w.exit().remove()}var x=this.tbody.selectAll("tr.tr_"+this.id()).data(g.map((function(t,e){for(var o=0;o<t.length;++o)void 0===t[o]&&(t[o]=null);return{rowIdx:e,row:t}}))),C=x.enter().append("tr").attr("class","tr_"+this.id()).on("click.selectionBag",(function(t){if(t.row){var e=t.row,o=t.rowIdx;i.selectionBagClick(e,o),i.applyRowStyles(i.getBodyRow(o)),i.applyFirstColRowStyles(i.getFixedRow(o))}}),!0).on("mouseover",(function(t){if(t.row){var e=t.rowIdx,o=i.getFixedRow(e);o.empty()||o.classed("hover",!0);var r=i.getBodyRow(e);r.classed("hover",!0),i.applyStyleToRows(r),i.applyFirstColRowStyles(o)}})).on("mouseout",(function(t){if(t.row){var e=t.rowIdx,o=i.getFixedRow(e);o.classed("hover",!1);var r=i.getBodyRow(e);r.classed("hover",!1),i.applyStyleToRows(r),i.applyFirstColRowStyles(o)}})).merge(x).classed("selected",(function(t){var e=t.row;return i._selectionBag.isSelected(i._createSelectionObject(e))})).classed("trId"+this._id,!0);x.exit().remove(),this.applyStyleToRows(C);var k=C.selectAll(".td_"+this.id()).data((function(t,e){return t.row.filter((function(t,e){return e<n.length&&!i.isHidden(e)&&-1===i._empty_col_idx_arr.indexOf(e)})).map((function(e,o){return{rowInfo:t,colIdx:o,cell:e}}))}));k.enter().append("td").attr("class","td_"+this.id()).on("click",(function(t){t.rowInfo&&i.click(i.rowToObj(t.rowInfo.row),i.columns()[t.colIdx],i._selectionBag.isSelected(i._createSelectionObject(t.rowInfo.row)))})).on("dblclick",(function(t,e){t.rowInfo&&i.dblclick(i.rowToObj(t.rowInfo.row),i.columns()[t.colIdx],i._selectionBag.isSelected(i._createSelectionObject(t.rowInfo.row)))})).each((function(t,o){var r=i.getColumnAlignment(t.rowInfo.rowIdx,t.colIdx,t.cell);e.select(this).style("height",null).style("text-align",r).style("vertical-align",i.verticalAlign()).classed("tr-"+t.rowInfo.rowIdx+"-td-"+o,!0)})).merge(k).each((function(t){var o=e.select(this);if(t.cell instanceof e.Widget){o[i.renderHtmlDataCells()?"html":"text"](null);var r=o.selectAll(".div_"+i.id()).data([t.cell],(function(t){return t.id()}));r.exit().each((function(t){t.target(null)})).remove(),r.enter().append("div").attr("class","div_"+i.id()).style("width",i.minWidgetWidth()+"px").style("height",i.minWidgetHeight()+"px").each((function(t){var o=e.select(this);t._parentWidget=i,t._class.indexOf("childWidget")<0&&(t._class="childWidget "+t._class),t.target(null).target(o.node())})).merge(r).each((function(t){t.resize().lazyRender(),i._hasChildWidgets=!0}))}else{o.selectAll(".div_"+i.id()).remove();var n=i.calcFieldsIndex(t.colIdx);o[i.renderHtmlDataCells()?"html":"text"](i.field(t.rowInfo.rowIdx,n).transform(t.cell))}})),k.exit().remove();var P=parseInt(this.thead.node().offsetHeight);this.pagination()&&this._hasChildWidgets?(this.tableDiv.style("overflow-y","auto"),this.table.style("margin-bottom","50px"),console.warn("Warning: displaying another widget in the table may cause problems with pagination")):(this.tableDiv.style("overflow-y",null),this.table.style("margin-bottom",null)),this.size(this._size);var S=0,E=this.fixedColHeadRow.selectAll("th").data(this.fixedColumn()&&this.showHeader()?[n[0]]:[]),R=E.enter().append("th").each((function(t){var o=e.select(this);o.append("span").attr("class","thText"),o.append("span").attr("class","thIcon")})).on("click",(function(t,e){i.headerClick(t,e)})).merge(E).style("background-color",this.theadRowBackgroundColor()).style("border-color",this.theadCellBorderColor()).style("color",this.theadFontColor()).style("font-size",this.theadFontSize());R.select(".thText").style("font-family",this.theadFontFamily()).text((function(t){return t})),R.select(".thIcon").text((function(t,e){return i.descending()?i.sortByFieldIndex()===e?"":"":i.sortByFieldIndex()===e?"":""})),E.exit().remove();var T=this.fixedColBody.selectAll("tr").data(this.fixedColumn()?g:[]),I=T.enter().append("tr").attr("class",(function(){return"trId"+i._id})).merge(T).on("click",(function(t,o){e.select(C[0][o]).on("click.selectionBag")(C.data()[o],o)})).on("mouseover",(function(t,o){e.select(C[0][o]).on("mouseover")(C.data()[o],o)})).on("mouseout",(function(t,o){e.select(C[0][o]).on("mouseout")(C.data()[o],o)})).classed("selected",(function(t){return i._selectionBag.isSelected(i._createSelectionObject(t))}));T.exit().remove();var W=I.selectAll("td").data((function(t,e){return[t[0]]})),D=W.enter().append("td").merge(W)[this.renderHtmlDataCells()?"html":"text"]((function(t){return"string"==typeof t?t.trim():"number"==typeof t?t:""}));W.exit().remove();var B,N=this.fixedColFootRow.selectAll("td").data(this.fixedColumn()&&this.totalledLabel()?[this.totalledLabel()]:[]),A=N.enter().append("td").merge(N)[this.renderHtmlDataCells()?"html":"text"]((function(t){return"string"==typeof t?t.trim():"number"==typeof t?t:""}));if(N.exit().remove(),this.fixedColumn()&&!this.fixedSize()&&A.length&&(this.showHeader()?(A.property("offsetWidth"),A.property("offsetWidth"),S=A.property("offsetWidth")):S=A.property("offsetWidth"),this.fixedCol.style("position","absolute").style("margin-top",-this.tableDiv.property("scrollTop")+P+"px"),D.style("width",S+"px"),this.fixedColHead.style("position","absolute").style("margin-top",(this.fixedHeader()?this.tableDiv.property("scrollTop"):0)-P+"px"),R.style("width",S+"px"),C.each((function(t,o){var r=e.select(this).select("td").property("offsetHeight");e.select(D[o][0]).style("height",r+"px")}))),this.table.style("margin-left",-S+"px"),this.tableDiv.style("margin-left",S+"px").style("width",this.width()-S+"px"),C.empty()||this.setColumnWidths(C),this.fixedSize()){var O,H,L=e.select(".tableDiv > table").node();if(L)0!==(B=L.getBoundingClientRect()).width&&0!==B.height?(M(),z()):(B.height-P<=i.tableDiv.property("offsetHeight")?z():i.fixedHeader()?(O=i.tableDiv.property("offsetHeight"),O+="px"):O="100%",B.width-S<i.tableDiv.property("offsetWidth")?M():i.fixedColumn()?(H=i.tableDiv.property("offsetWidth")-S,H+="px"):H="100%"),r.classed("childWidget")&&(i._placeholderElement.style("width",H+"px").style("height",O+"px"),i.tableDiv.style("overflow","hidden")),i.size({width:H,height:O})}function M(){B.width,i.tbody.property("offsetWidth")}function z(){i.tbody.property("offsetHeight")}this.setOnScrollEvents(this.tableDiv.node(),P),this._paginator.render(),setTimeout((function(){i._paginator.right((i.hasVScroll(r)?e.Platform.getScrollbarWidth():0)+i._paginatorTableSpacing).bottom((i.hasHScroll(r)?e.Platform.getScrollbarWidth():0)+i._paginatorTableSpacing).render((function(){i.tableDiv.node().scrollLeft=s}))}),0)},o.prototype.exit=function(e,o){this._paginator.target(null),t.prototype.exit.call(this,e,o)},o.prototype.setColumnWidths=function(t){var o=t.filter((function(t,e){return 0===e})),r=e.select(null);o.each((function(t){r=e.selectAll(this.childNodes)}));var i=this.fixedHeader()?this.thead.property("offsetHeight"):0,n=1,a={};r.each((function(t,e){a[e]=this.offsetWidth})),this.thead.selectAll("th").each((function(t,o){var i=this.offsetWidth,s=r.empty()?0:a[o],l=i>=s?i:s;this.style.width=l+"px",r.filter((function(t,e){return 0===e})).each((function(){e.select(this).style("width",l+"px")})),n+=l})),this.thead.style("position",this.fixedHeader()?"absolute":"relative").style("width",n+"px").style("margin-top","0px"),this.table.style("width",n+"px"),this.tableDiv.style("margin-top",(this.fixedHeader()?i:0)+"px"),this.tbody.style("width",n+"px")},o.prototype.getBodyRow=function(t){return this.table.selectAll("tbody tr.trId"+this._id).filter((function(e,o){return o===t}))},o.prototype.getFixedRow=function(t){return this._element.selectAll(".rows-wrapper tbody tr").filter((function(e,o){return o===t}))},o.prototype.setOnScrollEvents=function(t,e){var o=this;t.onscroll=function(t){var r=t.target.scrollTop,i=t.target.scrollLeft;o.fixedHeader()&&o.thead.style("margin-left",-i+"px"),o.fixedColumn()&&(o.fixedCol.style("margin-top",-r+e+"px"),o.fixedHeader()&&o.fixedColHead.style("margin-top",r-e+"px"))}},o.prototype._generateTempRow=function(){var t=this.tbody.append("tr");return t.append("td").text("QQQ"),t},o.prototype._createSelectionObject=function(t){var o=this;return{_id:t,element:function(){return o.tbody?o.tbody.selectAll("tr").filter((function(e){return e===t})):e.select(null)}}},o.prototype._calcRowsPerPage=function(t){0===this._paginator.numItems()&&(this._paginator.numItems(1),this.itemsPerPage(1)),this._paginator.render();var o=this.thead.selectAll("th").node()?this.thead.selectAll("th").node().clientHeight:0,r=this.tfoot.selectAll("td").node()?this.tfoot.selectAll("td").node().clientHeight:0,i=this._generateTempRow(),n=i.node().clientHeight;i.remove();var a=this.calcHeight(this._paginator.element()),s=Math.floor((this.height()-o-r-a-(this.table.style("width")>=this.table.style("width")?e.Platform.getScrollbarWidth():0)-2*this._paginatorTableSpacing)/n)||1;return 0!==this.totalledColumns().length&&(s-=1),s},o.prototype.sort=function(t){return this.sortByFieldIndex()!==t?this.descending(!1):this.descending(!this.descending()),this.sortByFieldIndex(t),this},o.prototype.selection=function(t){return arguments.length?(this._selectionBag.set(t.map((function(t){return this._createSelectionObject(t)}),this)),this):this._selectionBag.get().map((function(t){return t._id}))},o.prototype.selectionBagClick=function(t,o){if(this.multiSelect()&&e.d3Event().shiftKey&&this._selectionPrevClick){var r=!1,i=[],n=this.tableData().filter((function(e,o){var n=!1;return e!==t&&e!==this._selectionPrevClick||(r&&(n=!0),r=!r,i.push(o)),r||n}),this);this.selection(n)}else if(this.multiSelect())this._selectionBag.click(this._createSelectionObject(t),e.d3Event),this._selectionPrevClick=t;else{var a=this._createSelectionObject(t);this._selectionBag.click(a,{ctrlKey:this._selectionBag.isSelected(a)}),this._selectionPrevClick=t}this.render()},o.prototype.applyHoverRowStyles=function(t){t.style("color",this.tbodyHoverRowFontColor()).style("background-color",this.tbodyHoverRowBackgroundColor())},o.prototype.applySelectedRowStyles=function(t){t.style("color",this.tbodySelectedRowFontColor()).style("background-color",this.tbodySelectedRowBackgroundColor())},o.prototype.applyRowStyles=function(t,e){void 0===e&&(e=!1);var o=t.datum().row;t.style("color",e?this.tbodyFirstColFontColor():this.tbodyFontColor()).style("background-color",e?this.tbodyFirstColBackgroundColor():this.tableZebraColor_exists()&&this.tableData().indexOf(o)%2?this.tbodyRowBackgroundColor():this.tableZebraColor())},o.prototype.applyFirstColRowStyles=function(t){this.applyStyleToRows(t,!0)},o.prototype.applyStyleToRows=function(t,o){void 0===o&&(o=!1),o=void 0!==o&&o;var r=this;t.each((function(){var t=e.select(this);t.classed("hover")?r.applyHoverRowStyles(t):t.classed("selected")?r.applySelectedRowStyles(t):r.applyRowStyles(t,o)}))},o.prototype.getColumnAlignment=function(t,e,o){var r=this.calcFieldsIndex(e);switch(this.field(t,r).__prop_type){case"string":return this.stringAlign();case"number":return this.numberAlign();case"":case void 0:switch(typeof o){case"string":return this.stringAlign();case"number":return this.numberAlign()}}return null},o.prototype.serializeState=function(){return{selection:this._selectionBag.get().map((function(t){return t._id})),data:this.data()}},o.prototype.deserializeState=function(t){if(t){if(t.selection){var e=this;this._selectionBag.set(t.selection.map((function(t){return e._createSelectionObject(t)})))}t.data&&this.data(t.data)}return this},o.prototype.click=function(t,e,o){},o.prototype.dblclick=function(t,e,o){},o.prototype.headerClick=function(t,e){this.sort(e).render()},o}(e.HTMLWidget);Bt.prototype._class+=" other_Table",Bt.prototype.publish("renderHtmlDataCells",!1,"boolean","enable or disable HTML within cells",null,{tags:["Private"]}),Bt.prototype.publish("pagination",!0,"boolean","Enable or disable pagination",null,{tags:["Private"]}),Bt.prototype.publish("paginationLimit",null,"number","Maximum number of rows allowed before pagination defaults to on",null,{tags:["Private"]}),Bt.prototype.publishProxy("itemsPerPage","_paginator"),Bt.prototype.publishProxy("pageNumber","_paginator","pageNumber",1),Bt.prototype.publishProxy("adjacentPages","_paginator"),Bt.prototype.publish("topN",null,"number","Total number or rows of data to be displayed in the table",null,{tags:["Private"]}),Bt.prototype.publish("pivot",!1,"boolean","Pivot Table"),Bt.prototype.publish("showHeader",!0,"boolean","Show or hide the table header",null,{tags:["Private"]}),Bt.prototype.publish("fixedHeader",!0,"boolean","Enable or disable fixed table header",null,{tags:["Private"]}),Bt.prototype.publish("fixedColumn",!1,"boolean","Enable or disable fixed first column",null,{tags:["Private"]}),Bt.prototype.publish("multiSelect",!1,"boolean","Multiple Selection",null,{tags:["Basic"]}),Bt.prototype.publish("fixedSize",!1,"boolean","Fix Size to Min Width/Height"),Bt.prototype.publish("hideEmptyColumns",!1,"boolean","Hide columns with all empty cells"),Bt.prototype.publish("theadFontSize",null,"string","Table head font size",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodyFontSize",null,"string","Table body font size",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tfootFontSize",null,"string","Table body font size",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("theadFontColor",null,"html-color","Table head font color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodyFontColor",null,"html-color","Table body font color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tfootFontColor",null,"html-color","Table body font color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("theadFontFamily",null,"string","Table head font family",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodyFontFamily",null,"string","Table body font family",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tfootFontFamily",null,"string","Table body font family",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("theadCellBorderColor",null,"html-color","Table head cell border color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tfootCellBorderColor",null,"html-color","Table head cell border color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("theadRowBackgroundColor",null,"html-color","Table head row color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tfootRowBackgroundColor",null,"html-color","Table head row color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodyCellBorderColor",null,"html-color","Table body cell border color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodyRowBackgroundColor",null,"html-color","Table body row color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodyFirstColFontColor",null,"html-color","Table body first column font color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodyFirstColBackgroundColor",null,"html-color","Table body first column background color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodyHoverRowFontColor",null,"html-color","Table body hover row font color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodyHoverRowBackgroundColor",null,"html-color","Table body hover row background color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodySelectedRowFontColor",null,"html-color","Table body selected row color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodySelectedRowBackgroundColor",null,"html-color","Table body selected row color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tableZebraColor",null,"html-color","Table zebra row color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("totalledColumns",[],"array","Array of indices of the columns to be totalled",null,{tags:["Basic"],optional:!0,disable:function(t){return t.pivot()}}),Bt.prototype.publish("totalledLabel",null,"string","Adds a label to the first column of the 'Totalled' row",null,{tags:["Basic"],optional:!0,disable:function(t){return t.pivot()}}),Bt.prototype.publish("hiddenColumns",[],"array","Array of indices of the columns to be hidden",null,{tags:["Basic"],optional:!0,disable:function(t){return t.pivot()}}),Bt.prototype.publish("stringAlign","left","set","Cell alignment for strings",["left","right","center"],{tags:["Basic"],optional:!0}),Bt.prototype.publish("numberAlign","right","set","Cell alignment for numbers",["left","right","center"],{tags:["Basic"],optional:!0}),Bt.prototype.publish("verticalAlign",null,"set","Cell vertical alignment",[null,"middle","top","bottom"],{tags:["Basic"],optional:!0}),Bt.prototype.publish("minWidgetWidth",320,"number","Minimum width of a child widget",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("minWidgetHeight",240,"number","Minimum height of a child widget",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("sortByFieldIndex",null,"number","Index for the field/column to sort the data",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("descending",!1,"boolean","Direction for sorting the data: ascending (true) or descending (false)",null,{tags:["Basic"],optional:!0});function Nt(t){return'<div class="colorBlock" style="background-color:'+t+';"></div>'}T(".other_Legend .colorBlock{height:10px;width:10px}.other_Legend>table,.other_Legend>table td,.other_Legend>table th{border-collapse:collapse;border-spacing:0}.other_Table.other_Legend table{border-spacing:0}.labels-wrapper th,.other_Table.other_Legend th{background-color:transparent;border:1px solid transparent;color:#333;cursor:default;font-weight:400;padding:2px 5px;text-align:left;white-space:nowrap}.other_Table.other_Legend tr{background-color:transparent;color:#333}.other_Table.other_Legend .tableDiv tbody>tr:nth-child(odd){background-color:unset;color:#000}.other_Table.other_Legend .tableDiv tbody>tr.hover,.other_Table.other_Legend .tableDiv tbody>tr:hover,.rows-wrapper table tbody tr.hover{background-color:#bfd7e7;color:#fff}.other_Table.other_Legend thead>tr:hover{background-color:transparent}.other_Table.other_Legend tbody>tr.hover,.other_Table.other_Legend tbody>tr:hover,.rows-wrapper tbody tr.hover{background-color:#eee}.other_Table.other_Legend td,.rows-wrapper td{border-width:0;box-sizing:border-box;padding:2px 5px;white-space:nowrap}.other_Legend>.tableDiv>table>tbody>tr:hover{background-color:#ddd;color:#000;cursor:pointer}.other_Legend.horiz-legend .tableDiv{text-align:left;width:100%!important}.other_Legend.horiz-legend .tableDiv>table{display:inline-block;left:0!important;top:0!important;width:100%!important}.other_Legend.horiz-legend tbody,.other_Legend.horiz-legend thead,.other_Legend.horiz-legend tr{display:inline-block}.other_Legend.horiz-legend td,.other_Legend.horiz-legend td>div{display:inline-block;white-space:nowrap}.other_Legend.horiz-legend tr{white-space:nowrap}.other_Legend.horiz-legend tbody{display:inline-block;text-align:center;width:100%!important}");var At=function(t){function o(){var e=t.call(this)||this;return e.showHeader(!1),e.pagination(!1),e}return n(o,t),o.prototype.isRainbow=function(){var t=this.getWidget();return t&&t._palette&&"rainbow"===t._palette.type()},o.prototype.targetWidget=function(t){if(!arguments.length)return this._targetWidget;this._targetWidget=t,this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor);var e=this;return this._targetWidgetMonitor=this._targetWidget.monitor((function(t,o,r,i){switch(t){case"chart":case"columns":case"data":case"paletteID":e.lazyRender()}})),this},o.prototype.getWidget=function(){return this._targetWidget&&"chart_MultiChart"===this._targetWidget.classID()?this._targetWidget.chart():this._targetWidget},o.prototype.getPalette=function(){var t=this.getWidget();if(t&&t._palette)switch(t._palette.type()){case"ordinal":return e.Palette.ordinal(t._palette.id());case"rainbow":return e.Palette.rainbow(t._palette.id())}return e.Palette.ordinal("default")},o.prototype.enter=function(o,r){t.prototype.enter.call(this,o,r),e.select(o.parentNode).style("overflow-y","auto"),this.renderHtmlDataCells(!0),this.fixedHeader(!1),this.fixedSize(!0),r.classed("other_Legend",!0)},o.prototype.update=function(o,r){var i=[];if(this._targetWidget){var n=this.getPalette();switch(n.type()){case"ordinal":var a=n;switch(this.dataFamily()){case"2D":i=this._targetWidget.data().map((function(t){return[Nt(a(t[0])),t[0]]}),this);break;case"ND":i=this._targetWidget.columns().filter((function(t,e){return e>0})).map((function(t){return[Nt(a(t)),t]}),this)}break;case"rainbow":var s=n,l=e.format(this.rainbowFormat()),c=this.getWidget(),p=this.rainbowBins(),u=c._dataMinWeight,h=c._dataMaxWeight,d=(h-u)/(p-1);i.push([Nt(s(u,u,h)),l(u)]);for(var f=1;f<p-1;++f){var g=d*f;i.push([Nt(s(g,u,h)),l(Math.floor(g))])}i.push([Nt(s(h,u,h)),l(h)])}}this.columns(["Key","Label"]),this.data(i),t.prototype.update.call(this,o,r),r.classed("horiz-legend","horizontal"===this.orientation());var y=r.select(".tableDiv > table"),m=y.node().getBoundingClientRect(),b=this._placeholderElement.node().getBoundingClientRect();r.select(".tableDiv").style("overflow","visible");var _=b.height/2-m.height/2,v=b.width/2-m.width/2;y.style("position","absolute").style("top",_+"px").style("left",v+"px");var w=this.pageNumber()-1,x=this.itemsPerPage(),C=w*x,k=w*parseInt(x)+parseInt(x),P=null;P=this.pagination()?this.data().slice(C,k):this.data();var S=this.tbody.selectAll("tr").data(P),E=this;S.on("click",(function(t,e){E.onClick(t,e)})).on("dblclick",(function(t,e){E.onDblClick(t,e)})).on("mouseover",(function(t,e){E.onMouseOver(t,e)}))},o.prototype.exit=function(e,o){this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor),t.prototype.exit.call(this,e,o)},o.prototype.onClick=function(t,e){},o.prototype.onDblClick=function(t,e){},o.prototype.onMouseOver=function(t,e){},o}(Bt);At.prototype._class+=" other_Legend",At.prototype.publish("dataFamily","ND","set","Type of data",["1D","2D","ND","map","any","other"],{tags:["Private"]}),At.prototype.publish("orientation","vertical","set","Orientation of Legend rows",["vertical","horizontal"],{tags:["Private"]}),At.prototype.publish("rainbowFormat",",","string","Rainbow number formatting",null,{tags:["Private"],optional:!0,disable:function(t){return!t.isRainbow()}}),At.prototype.publish("rainbowBins",8,"number","Number of rainbow bins",null,{tags:["Private"],disable:function(t){return!t.isRainbow()}});var Ot=Bt.prototype.getBBox;At.prototype.getBBox=function(t,o){var r=Ot.apply(this,arguments),i=this.element().select(".tableDiv > table");if(!i.empty()){var n=i.node().getBoundingClientRect(),a=n.width+8+(this.hasVScroll(this._placeholderElement)?e.Platform.getScrollbarWidth():0),s=n.height+8+(this.hasHScroll(this._placeholderElement)?e.Platform.getScrollbarWidth():0);return{x:r.x,y:r.y,width:(o?Math.round(a):a)*this._scale,height:(o?Math.round(s):s)*this._scale}}return r};T(".other_MorphText .enter{fill:green}.other_MorphText .update{fill:#333}.other_MorphText .exit{fill:brown}");var Ht=function(t){function e(){return t.call(this)||this}return n(e,t),e.prototype.enter=function(t,e){if(!this.fontSize()){var o=window.getComputedStyle(t,null);this.fontSize(parseInt(o.fontSize))}this._fontWidth=32*this.fontSize()/48,this._textElement=e.append("g")},e.prototype.dateTime=function(){var t=new Date,e=1===t.getSeconds().toString().length?"0"+t.getSeconds():t.getSeconds(),o=1===t.getMinutes().toString().length?"0"+t.getMinutes():t.getMinutes(),r=1===t.getHours().toString().length?"0"+t.getHours():t.getHours(),i=t.getHours()>=12?"pm":"am";return["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][t.getDay()]+" "+["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()]+" "+t.getDate()+" "+t.getFullYear()+" "+r+":"+o+":"+e+i},e.prototype.update=function(t,e){var o=this,r=this._textElement.selectAll("text").data(this.data(),(function(t){return t.id}));r.attr("class","update"),this.transition.apply(r).attr("x",(function(t,e){return(-o.data().length/2+e)*o._fontWidth+o._fontWidth/2}));var i=r.enter().append("text").attr("class","enter").attr("font-size",this.fontSize()).attr("dy",".35em").attr("y",(this.reverse()?1:-1)*this._fontWidth*2).attr("x",(function(t,e){return(-o.data().length/2+e)*o._fontWidth+o._fontWidth/2})).style("fill-opacity",1e-6).style("text-anchor",this.anchor()).text((function(t){return t.text}));this.transition.apply(i).attr("y",0).style("fill-opacity",1),r.exit().attr("class","exit"),this.transition.apply(r.exit()).attr("y",(this.reverse()?-1:1)*this._fontWidth*2).style("fill-opacity",1e-6).remove()},e}(e.SVGWidget);Ht.prototype._class+=" other_MorphText",Ht.prototype.publish("anchor","middle","set","Sets anchor point",["middle"],{tags:["Basic"]}),Ht.prototype.publish("fontSize",14,"number","Sets fontsize",null,{tags:["Basic"]}),Ht.prototype.publish("reverse",!1,"boolean","Reverse Animation",null,{tags:["Basic"]}),Ht.prototype.publish("text","","string","Sets text/data of widget",null,{tags:["Basic"]});var Lt=Ht.prototype.text;Ht.prototype.text=function(t){var e=Lt.apply(this,arguments);if(arguments.length){var o={},r=t.split("");this.data(r.map((function(t){var e="_"+t;return void 0===o[e]&&(o[e]=0),o[e]++,{text:t,id:t.charCodeAt(0)+1024*o[e]}})))}return e};var Mt=function(t){function e(){var e=t.call(this)||this;return e.minWidgetHeight(240),e.minWidgetWidth(360),e}return n(e,t),e}(Bt);Mt.prototype._class+=" other_NestedTable";var zt=Mt.prototype.columns;Mt.prototype.columns=function(t){return arguments.length?(this._columns=t,zt.call(this,t.map((function(t){return"object"==typeof t?t.label:t})))):zt.apply(this,arguments)};var jt=Mt.prototype.data;Mt.prototype.data=function(t){if(arguments.length){var e=this;return jt.call(this,t.map((function(t){return t.map((function(t,o){if(t instanceof Array){var r=[];if("object"==typeof e._columns[o]&&e._columns[o].columns)r=e._columns[o].columns;else for(var i=0;i<t.length;++i)r.push(e._columns[o]+"."+i);return(new Bt).columns(r).data(t)}return t}))})))}return jt.apply(this,arguments)};T(".graph_Opportunity{transform:translate(20px,20px)scale(1)!important}.graph_Opportunity .group{stroke-width:1;stroke:#555;fill:#fefefe}.graph_Opportunity .group_headings{font-family:Helvetica,Arial,sans-serif;font-size:14px;font-weight:700;line-height:20px}.graph_Opportunity .node_prev_rect{fill:#fff;stroke-width:2;stroke:#000;stroke-dasharray:3,3;opacity:.6}.graph_Opportunity .node_rev_change{fill:#fff}.graph_Opportunity .node_rev_change_text{color:#000;font-family:Arial;font-size:18px;font-weight:700}.graph_Opportunity .node_date_change{fill:#fff}.graph_Opportunity .node_date_change_text{color:#000;font-family:Arial;font-size:18px;font-weight:700}.graph_Opportunity .node_prev_text{font-family:Arial;font-size:9px;opacity:.6}.graph_Opportunity .node_cur_rect{stroke-width:2;stroke:#000}.graph_Opportunity .node_cur_text{font-family:Arial;font-size:9px;text-decoration:underline}.graph_Opportunity .arrowhead{refX:6}.graph_Opportunity-tooltip.tooltip{background:#bdbdbd;border:0;border-radius:8px;font:14px arial;height:135px;padding:15px 10px 10px;pointer-events:none;position:absolute;text-align:left;width:350px;z-index:1}");var Ft=function(t){function e(){return t.call(this)||this}return n(e,t),e.prototype.owner=function(t){return arguments.length?(this._owner=t,this):this._owner},e.prototype.valid=function(){return!!this.headerLabel()},e}(e.PropertyExt);Ft.prototype._class+=" other_Opportunity.Column",Ft.prototype.publish("headerLabel",null,"string","Header value of a table",(function(){return this._owner?this._owner.columns():[]}),{tags:["Basic"],optional:!0});var Ut=function(t){function e(){return t.call(this)||this}return n(e,t),e.prototype.owner=function(t){return arguments.length?(this._owner=t,this):this._owner},e.prototype.valid=function(){return!!this.hoverValue()&&!!this.hoverList()},e}(e.PropertyExt);Ut.prototype._class+=" other_Opportunity.MouseHoverColumn",Ut.prototype.publish("hoverValue",null,"string","Hover value of a table",(function(){return this._owner?this._owner.columns():[]}),{tags:["Basic"],optional:!0}),Ut.prototype.publish("hoverList",null,"set","Hover value of a table",(function(){return this._owner?this._owner.getIds():[]}),{tags:["Basic"],optional:!0});var Vt=function(t){function e(){return t.call(this)||this}return n(e,t),e.prototype.owner=function(t){return arguments.length?(this._owner=t,this):this._owner},e.prototype.valid=function(){return!!this.columnIndex()&&!!this.ColumnDropdownList()},e}(e.PropertyExt);Vt.prototype._class+=" other_Opportunity.ColumnDropdown",Vt.prototype.publish("columnIndex",null,"number","Column index for display context data based on column dropdown list selction",{},{tags:["Basic","Shared"]}),Vt.prototype.publish("ColumnDropdownList",null,"set","column value of a table",(function(){return this._owner?this._owner.getIds():[]}),{tags:["Basic"],optional:!0});var qt=function(t){function o(){var e=t.call(this)||this;return e._drawStartPos="origin",e.groupCount=7,e}return n(o,t),o.prototype.enter=function(o,r){t.prototype.enter.call(this,o,r);var i=25*(this.data().length+1)+30;this.svg=r.append("g").attr("width",100*this.groupCount+1).attr("height",i),this.svg.append("defs").append("marker").classed("arrowhead",!0).attr("id","end-arrow").attr("viewBox","0 -5 10 10").attr("refX",6).attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("svg:path").attr("d","M0,-5L10,0L0,5").attr("fill","rgb(100,100,100)"),this.tooltipdiv=e.select("body").append("div").attr("class","other_Opportunity-tooltip tooltip").style("opacity",0)},o.prototype.update=function(o,r){t.prototype.update.call(this,o,r);var i=this,n=this.data(),a=this.opportunityId();n.sort((function(t,e){return t.cur_group>e.cur_group?1:t.cur_group<e.cur_group?-1:0}));for(var s=[],l=1;l<=i.groupCount;l++)s.push(l);var c=30,p=14,u=25*(n.length+1)+c,h=this.width(),d=30,f=h/i.groupCount-d,g=this.svg.selectAll(".group").data(s);g.enter().append("rect").attr("class","group"),g.attr("x",(function(t,e){return e*h/i.groupCount+1})).attr("y",c).attr("width",h/this.groupCount).attr("height",u-c),g.exit().remove();var y=this.svg.selectAll(".group_headings").data(s);if(y.enter().append("text").attr("class","group_headings").attr("y",20),y.attr("x",(function(t,e){return e*h/i.groupCount+h/i.groupCount/i.groupCount})).text((function(t,e){return i.headerLabels().length>0&&i.headerLabels()[e]&&i.headerLabels()[e].headerLabel()?i.headerLabels()[e].headerLabel():""})),y.exit().remove(),"prev_group"===this.previousGroup()&&"cur_group"===this.currentGroup()){var m=this.svg.selectAll(".node_date_change").data(n);m.enter().append("g").attr("class","node_date_change update").on("mouseover",(function(t){i.tooltipdiv.transition().duration(200).style("opacity",.9);var o="<span style='font-weight:bolder'>Close Date Change </span><br/>";i.mouseHover().forEach((function(e,r){void 0!==e.hoverValue()&&(o=o+"<span style='font-weight:bold'>"+e.hoverValue()+": </span>"+t[e.hoverList()]+"<br/>")}));var r=t.prevdate+"";r=r.replace(/(\d\d\d\d)(\d\d)(\d\d)/g,"$3-$2-$1");var n=t.curdate+"";n=n.replace(/(\d\d\d\d)(\d\d)(\d\d)/g,"$3-$2-$1"),o=o+"<span style='font-weight:bold'>From: </span>"+r+"<br/><span style='font-weight:bold'>To: </span>"+n+"<br/>";var a=e.d3Event();i.tooltipdiv.html(o).style("left",a.pageX+"px").style("top",a.pageY-50+"px")})).on("mouseout",(function(t){i.tooltipdiv.transition().duration(500).style("opacity",0)})).each((function(t){e.select(this).append("rect").attr("class","node_date_change_rect").attr("width",5).attr("height",p).attr("rx",6).attr("ry",6)})),m.attr("transform",(function(t,e){return"translate("+(9*h/i.groupCount+d-80)+","+(e+24*e+12+c)+")"})),m.exit().remove();var b=this.svg.selectAll(".node_prev_group").data(n);b.enter().append("g").attr("class","node_prev_group").on("mouseover",(function(t,o){i.tooltipdiv.transition().duration(200).style("opacity",.9);var r="";i.mouseHover().forEach((function(e,o){void 0!==e.hoverValue()&&(r=r+"<span style='font-weight:bold'>"+e.hoverValue()+": </span>"+t[e.hoverList()]+"<br/>")}));var n=e.d3Event();i.tooltipdiv.html(r).style("left",n.pageX+"px").style("top",n.pageY-100+"px")})).on("mouseout",(function(t){i.tooltipdiv.transition().duration(500).style("opacity",0)})).each((function(t){var o=e.select(this);o.append("rect").attr("class","node_prev_rect").attr("rx",6).attr("ry",6),o.append("text").attr("class","node_prev_text")})),b.classed("update",!0).classed("changed",(function(t){return 0!==t.delta})).attr("transform",(function(t,e){return"translate("+((t.prev_group-1)*h/i.groupCount+15)+","+(e+24*e+10+c)+")"})).each((function(t){var o=e.select(this).selectAll(".arrow").data(0!==t.delta?[t]:[]);o.enter().append("line").attr("class","arrow update"),o.attr("x1",(function(t){return t.delta>0?f:0})).attr("y1",7).attr("x2",(function(t){return t.delta>0?f+d-4+(Math.abs(t.delta)-1)*(h/i.groupCount):-30-(Math.abs(t.delta)-1)*(h/i.groupCount)+4})).attr("y2",7).style("stroke-dasharray","3, 3").style("stroke","rgb(100,100,100)").style("marker-end","url(#end-arrow)").style("opacity","1"),o.exit().remove()})),b.select(".node_prev_rect").attr("width",f).attr("height",p),b.select(".node_prev_text").attr("dy",10).attr("dx",f/4).text((function(t){return"number"==typeof t[a]?t[a]:t[a].substring(0,14)})),b.exit().remove();var _=this.svg.selectAll(".node_cur_group").data(n);_.enter().append("g").attr("class","node_cur_group").attr("transform",(function(t,e){return"translate("+((t.prev_group-1)*h/i.groupCount+15)+","+(e+24*e+10+c)+")"})).on("mouseover",(function(t,o){i.tooltipdiv.transition().duration(200).style("opacity",.9);var r="";i.mouseHover().forEach((function(e,o){void 0!==e.hoverValue()&&(r=r+"<span style='font-weight:bold'>"+e.hoverValue()+": </span>"+t[e.hoverList()]+"<br/>")}));var n=e.d3Event();i.tooltipdiv.html(r).style("left",n.pageX+"px").style("top",n.pageY-100+"px")})).on("mouseout",(function(t){i.tooltipdiv.transition().duration(500).style("opacity",0)})).each((function(t){var o=e.select(this);o.append("rect").attr("class","node_cur_rect").attr("fill",(function(t){return t.delta<0||7===t.cur_group?"#F78181":"#A9F5A9"})).attr("rx",6).attr("ry",6),o.append("a").append("text").attr("class","node_cur_text")})),_.classed("update",!0).classed("changed",(function(t){return 0!==t.delta})).transition().duration(800).ease("linear").attr("transform",(function(t,e){return"translate("+((t.cur_group-1)*h/i.groupCount+15)+","+(e+24*e+10+c)+")"})).each("end",(function(){e.selectAll(".arrow").style("opacity","1")})),_.select(".node_cur_group a").classed("update",!0).attr("xlink:href",(function(t){return i.url()+t.id})).attr("xlink:show","new"),_.select(".node_cur_rect").attr("width",f).attr("height",p),_.select(".node_cur_text").classed("update",!0).attr("dy",10).attr("dx",f/4).style("fill","blue").text((function(t){return"number"==typeof t[a]?t[a]:t[a].substring(0,14)})),_.exit().remove()}for(var v=function(t){if(i.columnData()[t]&&i.columnData()[t].ColumnDropdownList()){var o=w.svg.selectAll(".columnDataText_"+t).data(n);o.enter().append("g").attr("class","columnDataText_"+t+" update").each((function(t){e.select(this).append("text")})),o.attr("transform",(function(e,o){return"translate("+(i.columnData()[t].columnIndex()*h/i.groupCount+15)+","+(o+24*o+12+c)+")"})).attr("width",5).attr("height",p).attr("rx",6).attr("ry",6),o.select("text").attr("y",-6).attr("dy",28).attr("dx",0).attr("height",20).attr("width",29).text((function(e,o){return e[i.columnData()[t].ColumnDropdownList()]})),o.exit().remove()}},w=this,x=0;x<i.columnData().length;x++)v(x)},o.prototype.exit=function(e,o){t.prototype.exit.call(this,e,o)},o.prototype.getIds=function(){var t=this.columns();return t.unshift("default"),t},o}(e.SVGWidget);function Gt(t){return t.publishedProperties(!1,!0)}function Yt(t,e,o){t.widgetWalker((function(t){t.propertyWalker(e,o)}))}function Xt(t,e){e=e||["surface","Color","Font","palette"];var o={};return Yt(t,null,(function(t,r){if((t[r.id+"_modified"]()||t.publishedProperty(r.id).origDefaultValue!==t.publishedProperty(r.id).defaultValue)&&function(t,e){var o=!1;for(var r in e)if(-1!==t.indexOf(e[r])){o=!0;break}return o}(r.id,e)){var i=t._class.trim().split(" ");for(var n in i)if(i.HasOwnProperty(n)){if(void 0===o[i[n]]&&(o[i[n]]={}),void 0===o[i[n]][r.id]){o[i[n]][r.id]=t[r.id]();break}if(o[i[n]][r.id]===t[r.id]())break}}})),o}function Jt(t,e,o,r){var i={__class:t.classID()};if(0!==t._id.indexOf(t._idSeed)&&(i.__id=t._id),t.version&&(i.__version=t.version()),i.__properties={},t.propertyWalker((function(e,n){if(e[n.id+"_modified"]())switch(n.type){case"widget":return i.__properties[n.id]=Jt(e[n.id](),null,o,r&&!t.serializeState),!0;case"widgetArray":case"propertyArray":return i.__properties[n.id]=[],e[n.id]().forEach((function(e){i.__properties[n.id].push(Jt(e,null,o,r&&!t.serializeState))})),!0;default:i.__properties[n.id]=e[n.id]()}}),e),"marshaller_Graph"===t.classID()){var n=t.data().vertices;n&&(this.__vertices=n.map((function(e){return Jt(e,null,o,r&&!t.serializeState)})))}return o&&t.data&&(i.__data||(i.__data={}),i.__data.data=t.data()),r&&(t.serializeState?i.__state=t.serializeState():t.data&&(i.__state={data:t.data()})),i}function Qt(t,e,o,r){return JSON.stringify(Jt(t,e,o,r))}qt.prototype._class+=" other_Opportunity",qt.prototype.Column=Ft,qt.prototype.MouseHoverColumn=Ut,qt.prototype.ColumnDropdown=Vt,qt.prototype.publish("previousGroup","","set","label in Opportunity",(function(){return this.getIds()}),{tags:["Basic","Shared"]}),qt.prototype.publish("currentGroup","","set","label in Opportunity",(function(){return this.getIds()}),{tags:["Basic","Shared"]}),qt.prototype.publish("opportunityId","id","set","Id for label in Opportunity",(function(){return this.getIds()}),{tags:["Basic","Shared"]}),qt.prototype.publish("url",null,"string","URL in Opportunity",{},{tags:["Basic","Shared"]}),qt.prototype.publish("width",1100,"number","label in Opportunity",{},{tags:["Basic","Shared"]}),qt.prototype.publish("addColumn",null,"string","number of columns in a table",{},{tags:["Basic","Shared"],editor_input:function(t,e,o,r){o.append("button").attr("id",t.id()+"_addColumn"+r.id).classed("property-input custom-editor-input addColumn update",!0).text("AddColumn").on("click",(function(){e.groupCount=e.groupCount+1;t.setProperty(e,r.id,"Added a new column")}))}}),qt.prototype.publish("removeColumn",null,"string","number of columns in a table",(function(){return this.columns()}),{tags:["Basic","Shared"],editor_input:function(t,e,o,r){o.append("button").attr("id",t.id()+"_removeColumn"+r.id).classed("property-input custom-editor-input removeColumn update",!0).text("RemoveColumn").on("click",(function(){e.groupCount=e.groupCount-1;t.setProperty(e,r.id,"Removed a column")}))}}),qt.prototype.publish("headerLabels",[],"propertyArray","Source Columns",null,{autoExpand:Ft}),qt.prototype.publish("mouseHover",[],"propertyArray","mouse hover options",null,{autoExpand:Ut}),qt.prototype.publish("columnData",[],"propertyArray","column data",null,{autoExpand:Vt});var $t=Object.freeze({__proto__:null,applyTheme:function(t,e,o){var r=this;Yt(t,null,(function(t,o){switch(o.type){case"widget":return r.applyTheme(t[o.id](),e),!0;case"widgetArray":return t[o.id]().forEach((function(t){r.applyTheme(t,e)}),this),!0;default:t.applyTheme(e)}})),"function"==typeof o&&o.call(this)},discover:Gt,removeTheme:function(t,e){Yt(t,null,(function(t,e){t.publishedProperty(e.id).defaultValue=t.publishedProperty(e.id).origDefaultValue})),"function"==typeof e&&e.call(this)},serialize:Qt,serializeTheme:function(t,e){return JSON.stringify(Xt(t,e))},serializeThemeToObject:Xt,serializeToObject:Jt,widgetArrayWalker:function(t,e){t&&t.forEach((function(t){t.widgetWalker(e)}))},widgetPropertyWalker:Yt});function Kt(t){switch(t){case"widget":case"widgetArray":case"propertyArray":return!0}return!1}T(".other_PropertyEditor{height:100%;overflow-y:scroll;width:100%}.other_PropertyEditor .other_PropertyEditor{overflow:hidden}.other_PropertyEditor .property-table{border:solid #ddd;border-width:0 0 0 1px;width:100%}.other_PropertyEditor thead>tr>th{background-color:#333}.other_PropertyEditor .other_PropertyEditor th{background-color:#444}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor th{background-color:#555}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor th{background-color:#666}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor th{background-color:#777}.other_PropertyEditor .headerRow{background-color:#eee}.other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#ddd}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#ccc}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#bbb}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#aaa}.other_PropertyEditor .fa{font-size:14px;width:14px}.other_PropertyEditor div.property-table-collapsed{display:none}.other_PropertyEditor .headerRow>.peInput{padding-top:2px}.other_PropertyEditor .headerRow>.peInput>span{font-weight:700;padding-left:2px}.other_PropertyEditor .headerRow>.peInput>i{float:right;padding-bottom:2px;padding-top:2px}.other_PropertyEditor .headerRow>span>i:hover{background-color:#555;cursor:pointer}.other_PropertyEditor .property-table thead>tr>th{background-color:#333;color:#fff;padding-left:4px;padding-top:2px;text-align:left}.other_PropertyEditor .property-table thead>tr>th>i{float:right;padding-bottom:2px;padding-right:4px;padding-top:2px}.other_PropertyEditor .property-table thead>tr>th>i:hover{background-color:#555;cursor:pointer}.other_PropertyEditor .property-table tbody>tr:nth-child(2n){background-color:#f9f9f9}.other_PropertyEditor .property-table tbody>tr:nth-child(odd){background-color:#fff}.other_PropertyEditor .property-table tbody>tr>td{color:#333;padding:0 0 0 2px;text-align:left}.other_PropertyEditor .property-table tbody>tr.disabled>td{color:gray}.other_PropertyEditor .property-table tbody>tr.invalid>td{color:red}.other_PropertyEditor .property-input-cell>div{padding-left:8px}.other_PropertyEditor .property-label{box-sizing:border-box;height:20px;padding-right:4px}.other_PropertyEditor td.property-input-cell{height:20px;padding:1px 0;text-align:left;width:80%}.other_PropertyEditor .property-input-cell>input,.other_PropertyEditor .property-input-cell>textarea{box-sizing:border-box;width:100%}.other_PropertyEditor .property-input-cell>input{height:20px}.other_PropertyEditor .property-input-cell>textarea{height:120px}.other_PropertyEditor .property-input-cell.boolean-cell{margin:0;position:relative;width:auto}.other_PropertyEditor .property-input-cell>input[type=checkbox]{margin:0;position:absolute;top:0;width:auto}.other_PropertyEditor .html-color-cell>input{width:80%}.other_PropertyEditor .html-color-cell>input[type=color]{position:relative;top:-1px;width:20%}");var Zt=function(t){function o(){var o=t.call(this)||this;return o._childPE=e.local(),o._show_header=!0,o.watchDepth=0,o._parentPropertyEditor=null,o._tag="div",o._show_settings=!1,o}return n(o,t),o.prototype.parentPropertyEditor=function(t){return arguments.length?(this._parentPropertyEditor=t,this):this._parentPropertyEditor},o.prototype.depth=function(){for(var t=0,e=this.parentPropertyEditor();e;)++t,e=e.parentPropertyEditor();return t},o.prototype.show_header=function(t){return arguments.length?(this._show_header=t,this):this._show_header},o.prototype.show_settings=function(t){return arguments.length?(this._show_settings=t,this):this._show_settings},o.prototype.rootWidgets=function(){return this._selectedItems&&this._selectedItems.length?this._selectedItems:this.show_settings()?[this]:this.widget()?[this.widget()]:[]},o.prototype.update=function(o,r){t.prototype.update.call(this,o,r);var i=this,n=this.rootWidgets().filter((function(t){return!(t._owningWidget&&t._owningWidget.excludeObjs instanceof Array&&-1!==t._owningWidget.excludeObjs.indexOf(t.classID()))})),a=r.selectAll("table.property-table.table-".concat(this.depth())).data(n,(function(t){return"function"!=typeof t.id?"meta-".concat(t.id):t.id()}));a.enter().append("table").attr("class","property-table table-".concat(this.depth())).each((function(){var t=e.select(this);i._show_header&&null===i.parentPropertyEditor()&&t.append("thead").append("tr").append("th").attr("colspan","2").each((function(){i.enterHeader(e.select(this))})),t.append("tbody")})).merge(a).each((function(t){var o=e.select(this);i._show_header&&null===i.parentPropertyEditor()&&i.updateHeader(o.select("thead > tr > th")),i.renderInputs(o.select("tbody"),t)})),a.exit().each((function(){i.renderInputs(r.select("tbody"),null)})).remove()},o.prototype.exit=function(e,o){t.prototype.exit.call(this,e,o),this.watchWidget(null)},o.prototype.watchWidget=function(t){if(this._watch&&(window.__hpcc_debug&&(--this.watchDepth,console.info("watchDepth: "+this.watchDepth)),this._watch.remove(),delete this._watch),t){var e=this;this._watch=t.monitor((function(t,o,r){r!==o&&(e.parentPropertyEditor()||e).lazyRender()})),window.__hpcc_debug&&(++this.watchDepth,console.info("watchDepth: "+this.watchDepth))}},o.prototype.enterHeader=function(t){var e=this;t.append("span"),t.append("i").attr("class","expandIcon fa").on("click",(function(){switch(e.peInputIcon()){case"fa-caret-up":case"fa-caret-right":e.element().selectAll(".table-".concat(e.depth()," > tbody > tr > .headerRow > .peInput > .property-table-collapsed")).classed("property-table-collapsed",!1),e.element().selectAll(".table-".concat(e.depth()," > tbody > tr > .headerRow > .peInput > i")).classed("fa-minus-square-o",!0).classed("fa-plus-square-o",!1);break;case"fa-caret-down":e.element().selectAll(".table-".concat(e.depth()," > tbody > tr > .headerRow > .peInput > div")).classed("property-table-collapsed",!0),e.element().selectAll(".table-".concat(e.depth()," > tbody > tr > .headerRow > .peInput > i")).classed("fa-minus-square-o",!1).classed("fa-plus-square-o",!0)}e.refreshExpandIcon()}));var o=t.append("i").attr("class","sortIcon fa").on("click",(function(){e.refreshSortIcon(o,!0)}));t.append("i").attr("class","hideParamsIcon fa").on("click",(function(){e.hideNonWidgets(!e.hideNonWidgets()).render()}))},o.prototype.updateHeader=function(t){var e=this.widget(),o="";e&&(e.label&&(o+=e.label()),e.classID&&(o&&(o+=" - "),o+=e.classID())),t.select("span").text(o),this.refreshExpandIcon(),this.refreshSortIcon(t.select(".sortIcon")),this.refreshHideParamsIcon(t.select(".hideParamsIcon"))},o.prototype.peInputCount=function(){return this.element().selectAll(".table-".concat(this.depth()," > tbody > tr > .headerRow > .peInput > div")).size()},o.prototype.peInputCollapsedCount=function(){return this.element().selectAll(".table-".concat(this.depth()," > tbody > tr > .headerRow > .peInput > div.property-table-collapsed")).size()},o.prototype.peInputIcon=function(){var t=this.peInputCollapsedCount();return 0===t?"fa-caret-down":t===this.peInputCount()?"fa-caret-up":"fa-caret-right"},o.prototype.refreshExpandIcon=function(){var t=this.peInputIcon();this.element().select(".table-".concat(this.depth()," > thead > tr > th > .expandIcon")).classed("fa-caret-up",!1).classed("fa-caret-right",!1).classed("fa-caret-down",!1).classed(t,!0)},o.prototype.refreshSortIcon=function(t,e){void 0===e&&(e=!1);var o=this.sorting(),r=this.sorting_options(),i=this.__meta_sorting.ext.icons;e?(t.classed(i[r.indexOf(o)],!1),this.sorting(r[(r.indexOf(o)+1)%r.length]).render()):t.classed(i[r.indexOf(o)%r.length],!0).attr("title",o)},o.prototype.refreshHideParamsIcon=function(t){t.classed("fa-eye",!this.hideNonWidgets()).classed("fa-eye-slash",this.hideNonWidgets())},o.prototype.gatherDataTree=function(t){if(!t)return null;var e={label:t.id()+" ("+t.classID()+")",children:[]};return Gt(t).forEach((function(o){var r={label:o.id,children:[]};switch(o.type){case"widget":r.children.push(this.gatherDataTree(t[o.id]()));break;case"widgetArray":case"propertyArray":var i=t[o.id]();i&&i.forEach((function(t){r.children.push(this.gatherDataTree(t))}),this)}e.children.push(r)}),this),e},o.prototype.getDataTree=function(){return this.gatherDataTree(this.widget())},o.prototype._rowSorting=function(t){if("type"===this.sorting()){var e=["boolean","number","string","html-color","array","object","widget","widgetArray","propertyArray"];t.sort((function(t,o){return t.type===o.type?t.id<o.id?-1:1:e.indexOf(t.type)<e.indexOf(o.type)?-1:1}))}else"A-Z"===this.sorting()?t.sort((function(t,e){return t.id<e.id?-1:1})):"Z-A"===this.sorting()&&t.sort((function(t,e){return t.id>e.id?-1:1}))},o.prototype.filterInputs=function(t){var e=Gt(t);if((this.filterTags()||this.excludeTags().length>0||this.excludeParams.length>0)&&t instanceof o==!1){var r=this;return e.filter((function(e,o){if(t[e.id+"_hidden"]&&t[e.id+"_hidden"]())return!1;for(var i=0,n=r.excludeParams();i<n.length;i++){var a=n[i].split("."),s=void 0,l=void 0;if(a.length>2?(s=a[0],l=a[2]):(s=a[0],l=a[1]),-1!==t.class().indexOf(s))return e.id!==l}return!(r.excludeTags().length>0&&e.ext&&e.ext.tags&&e.ext.tags.some((function(t){return r.excludeTags().indexOf(t)>-1})))&&!(!(r.filterTags()&&e.ext&&e.ext.tags&&-1!==e.ext.tags.indexOf(r.filterTags()))&&r.filterTags())}))}return e},o.prototype.renderInputs=function(t,o){var r=this,i=[],n=!this.show_settings()&&this.showFields();o&&(i=this.filterInputs(o).filter((function(t){return"fields"!==t.id||n})),!this.show_settings()&&this.showData()&&o.data&&i.push({id:"data",type:"array"}),this.hideNonWidgets()&&(i=i.filter((function(t){return Kt(t.type)}))),this._rowSorting(i));var a=t.selectAll("tr.prop"+this.id()).data(i,(function(t){return t.id}));a.enter().append("tr").attr("class","property-wrapper prop"+this.id()).each((function(t){var i=e.select(this);if(Kt(t.type))i.classed("property-widget-wrapper",!0),i.append("td").attr("colspan","2");else{i.classed("property-input-wrapper",!0),i.append("td").classed("property-label",!0).text(t.id);var n=i.append("td").classed("property-input-cell",!0);r.enterInputs(o,n,t)}})).merge(a).each((function(t){var i=e.select(this);i.classed("disabled",o[t.id+"_disabled"]&&o[t.id+"_disabled"]()),i.classed("invalid",o[t.id+"_valid"]&&!o[t.id+"_valid"]()),i.attr("title",t.description),Kt(t.type)?r.updateWidgetRow(o,i.select("td"),t):r.updateInputs(o,t)})),a.exit().each((function(t){var i=e.select(this);Kt(t.type)&&r.updateWidgetRow(o,i.select("td"),null)})).remove(),a.order()},o.prototype.updateWidgetRow=function(t,r,i){var n=[];t&&i&&(n=t[i.id]()||[]);var a=n instanceof Array?n:[n];if(i&&i.ext&&i.ext.autoExpand){var s=!0,l=a.filter((function(e,o){return s=e.valid(),e._owner=t,s||o===a.length-1}),this),c=t[i.id+"_disabled"]&&t[i.id+"_disabled"](),p=!!(a.length-l.length);if(s&&!c){p=!0;var u=(new i.ext.autoExpand).owner(t);l.push(u)}p&&(t[i.id](l),a=l)}var h=this;r.classed("headerRow",!0);var d=r.selectAll("div.peInput-".concat(this.depth())).data(a,(function(t){return t.id()}));d.enter().append("div").attr("class","peInput peInput-".concat(this.depth())).each((function(t){var r=e.select(this);r.append("span"),r.append("i").attr("class","fa").on("click",(function(t){var o=r.select("div");o.classed("property-table-collapsed",!o.classed("property-table-collapsed")),e.select(this).classed("fa-minus-square-o",!o.classed("property-table-collapsed")).classed("fa-plus-square-o",o.classed("property-table-collapsed")),h.refreshExpandIcon()}));var n=r.append("div");h._childPE.set(this,(new o).label(i.id).target(n.node()))})).merge(d).each((function(t){var o=e.select(this).select("div");e.select(this).select("span").text("".concat(i.id)),e.select(this).select("i").classed("fa-minus-square-o",!o.classed("property-table-collapsed")).classed("fa-plus-square-o",o.classed("property-table-collapsed")),h._childPE.get(this).parentPropertyEditor(h).showFields(h.showFields()).showData(h.showData()).sorting(h.sorting()).filterTags(h.filterTags()).excludeTags(h.excludeTags()).excludeParams(h.excludeParams()).hideNonWidgets(h.hideNonWidgets()&&t._class.indexOf("layout_")>=0).widget(t).render()})),d.exit().each((function(t){h._childPE.get(this).widget(null).render().target(null),h._childPE.remove(this)})).remove()},o.prototype.setProperty=function(t,o,r){for(var i,n,a,s=this;s&&t;){if(s===this&&(a=t[o](),t[o](r)),s){n=s;var l=s.widget();l instanceof e.Widget&&(i=l)}s=s.parentPropertyEditor()}i&&i.render(),n&&n.broadcast(o,r,a,t)},o.prototype.enterInputs=function(t,o,r){o.classed(r.type+"-cell",!0);var i=this;switch("function"==typeof r.ext.editor_input&&r.ext.editor_input(this,t,o,r),r.type){case"boolean":o.append("input").attr("id",this.id()+"_"+r.id).classed("property-input",!0).attr("type","checkbox").on("change",(function(){i.setProperty(t,r.id,this.checked)}));break;case"set":o.append("select").attr("id",this.id()+"_"+r.id).classed("property-input",!0).on("change",(function(){i.setProperty(t,r.id,this.value)}));break;case"array":case"object":o.append("textarea").attr("id",this.id()+"_"+r.id).classed("property-input",!0).attr("autocomplete","off").attr("autocorrect","off").attr("autocapitalize","off").attr("spellcheck","false").on("change",(function(){var e;try{e=JSON.parse(this.value)}catch(t){e=this.value}i.setProperty(t,r.id,e)}));break;default:r.ext&&r.ext.range?(o.append("span").classed("property-input-span",!0).attr("id",this.id()+"_"+r.id+"_currentVal").text(r.defaultValue),o.append("input").attr("type","range").attr("step",r.ext.range.step).attr("min",r.ext.range.min).attr("max",r.ext.range.max).attr("id",this.id()+"_"+r.id).classed("property-input",!0).on("input",(function(){i.setProperty(t,r.id,this.value),e.select("#"+this.id+"_currentVal").text("Current Value: "+this.value)})).on("change",(function(){i.setProperty(t,r.id,this.value),e.select("#"+this.id+"_currentVal").text("Current Value: "+this.value)}))):(o.append(r.ext&&r.ext.multiline?"textarea":"input").attr("id",this.id()+"_"+r.id).classed("property-input",!0).attr("autocomplete","off").attr("autocorrect","off").attr("autocapitalize","off").attr("spellcheck","false").on("change",(function(){i.setProperty(t,r.id,this.value)})),"html-color"!==r.type||e.Platform.isIE||o.append("input").attr("id",this.id()+"_"+r.id+"_2").classed("property-input",!0).attr("type","color").on("change",(function(){i.setProperty(t,r.id,this.value)})))}},o.prototype.updateInputs=function(t,o){var r=e.selectAll("#"+this.id()+"_"+o.id+", #"+this.id()+"_"+o.id+"_2"),i=t?t[o.id]():"";switch(r.property("disabled",t[o.id+"_disabled"]&&t[o.id+"_disabled"]()),r.property("invalid",t[o.id+"_valid"]&&!t[o.id+"_valid"]()),o.type){case"boolean":r.property("checked",i);break;case"set":var n=r.selectAll("option").data(t[o.id+"_options"]());n.enter().append("option").merge(n).attr("value",(function(t){return t&&void 0!==t.value?t.value:t})).text((function(t){return t&&void 0!==t.text?t.text:t})),n.exit().remove(),r.property("value",i);break;case"array":case"object":r.property("value",JSON.stringify(i,(function(t,o){return o instanceof e.Widget?Qt(o):o})," "));break;default:o.ext&&o.ext.range&&e.select("#"+this.id()+"_"+o.id+"_currentVal").text("Current Value: "+i),r.property("value",i&&i.length&&i.length>1e5?"...too big to display...":i)}},o}(e.HTMLWidget);Zt.prototype._class+=" other_PropertyEditor",Zt.prototype.publish("showFields",!1,"boolean","If true, widget.fields() will display as if it was a publish parameter.",null,{tags:["Basic"]}),Zt.prototype.publish("showData",!1,"boolean","If true, widget.data() will display as if it was a publish parameter.",null,{tags:["Basic"]}),Zt.prototype.publish("sorting","none","set","Specify the sorting type",["none","A-Z","Z-A","type"],{tags:["Basic"],icons:["fa-sort","fa-sort-alpha-asc","fa-sort-alpha-desc","fa-sort-amount-asc"]}),Zt.prototype.publish("hideNonWidgets",!1,"boolean","Hides non-widget params (at this tier only)",null,{tags:["Basic"]}),Zt.prototype.publish("label","","string","Label to display in header of property editor table",null,{tags:["Basic"]}),Zt.prototype.publish("filterTags","","set","Only show Publish Params of this type",["Basic","Intermediate","Advance",""],{}),Zt.prototype.publish("excludeTags",["Private"],"array","Exclude this array of tags",null,{}),Zt.prototype.publish("excludeParams",[],"array","Exclude this array of params (widget.param)",null,{}),Zt.prototype.publish("widget",null,"widget","Widget",null,{tags:["Basic"],render:!1});var te=Zt.prototype.widget;Zt.prototype.widget=function(t){if(arguments.length&&te.call(this)===t)return this;var e=te.apply(this,arguments);if(arguments.length&&(this.watchWidget(t),t instanceof o.Grid)){var r=this;t.postSelectionChange=function(){r._selectedItems=t._selectionBag.get().map((function(t){return t.widget})),r.lazyRender()}}return e};T(".other_RadioCheckbox label,.other_RadioCheckbox span{vertical-align:top}");var ee=function(t){function o(){return t.call(this)||this}return n(o,t),o.prototype.rcData=function(){if(0===this.data().length)return[];var t=this._db.rollupView([this.textColumn(),this.valueColumn()]),e=[];if(e=e.concat(t.entries().map((function(t){return{text:t.key,value:t.values.length?t.values[0].key:"",origRow:t.values.length&&t.values[0].values.length?t.values[0].values[0]:[]}}),this)),this.sort_exists()){var o="descending"===this.sort();e.sort((function(t,e){return t.text<e.text?o?1:-1:t.text>e.text?o?-1:1:0}))}return e},o.prototype.enter=function(e,o){t.prototype.enter.call(this,e,o),this._span=o.append("span"),this._label=this._span.append("label").attr("for",this.id()+"_radioCheckbox"),this._Checkbox=this._span.append("div").attr("id",this.id()+"_radioCheckbox")},o.prototype.update=function(o,r){t.prototype.update.call(this,o,r);var i=this;this._label.text(this.label());var n=this._Checkbox.selectAll(".dataRow").data(this.rcData());n.enter().append("div").attr("class","dataRow").each((function(t,o){var r=e.select(this),n=i.id()+"_checkbox_"+o;r.append("input").attr("id",n).attr("name",i.id()+"_radioCheckbox").on("change",(function(t){i.handleClick()})),r.append("label").attr("for",n)})),n.each((function(t,o){var r=e.select(this);r.select("input").attr("type",i.multiple()?"checkbox":"radio").attr("value",t.value),r.select("label").text(t.text)})),n.exit().remove(),n.order()},o.prototype.exit=function(e,o){this._span.remove(),t.prototype.exit.call(this,e,o)},o.prototype.handleClick=function(){var t=[];this._Checkbox.selectAll(".dataRow > input").each((function(o,r){e.select(this).property("checked")&&o&&o.origRow&&t.push(o.origRow)})),t.length?this.click(this.rowToObj(t[0]),this.valueColumn(),!0):this.click([],this.valueColumn(),!1)},o.prototype.click=function(t,e,o){},o}(e.HTMLWidget);ee.prototype._class+=" other_RadioCheckbox",ee.prototype.publish("label",null,"string","Label for RadioCheckbox"),ee.prototype.publish("valueColumn",null,"set","RadioCheckbox display value",(function(){return this.columns()}),{optional:!0}),ee.prototype.publish("textColumn",null,"set","RadioCheckbox value(s)",(function(){return this.columns()}),{optional:!0}),ee.prototype.publish("sort",null,"set","Sort contents",["","ascending","descending"],{optional:!0}),ee.prototype.publish("multiple",!1,"boolean","Multiple selection");T(".other_Select label,.other_Select span{vertical-align:top}");var oe=function(t){function o(){return t.call(this)||this}return n(o,t),o.prototype.selectData=function(){if(0===this.data().length)return[];var t=this._db.rollupView([this.textColumn(),this.valueColumn()]),e=[];if(e=e.concat(t.entries().map((function(t){return{text:t.key,value:t.values.length?t.values[0].key:"",origRow:t.values.length&&t.values[0].value.length?t.values[0].value[0]:[]}}),this)),this.sort_exists()){var o="descending"===this.sort();e.sort((function(t,e){return t.text<e.text?o?1:-1:t.text>e.text?o?-1:1:0}))}return this.optional()&&e.unshift({value:"",text:""}),e},o.prototype.enter=function(o,r){t.prototype.enter.call(this,o,r),this._span=r.append("span"),this._prompt=this._span.append("label").attr("for",this.id()+"_select");var i=this;this._select=this._span.append("select").attr("id",this.id()+"_select").on("change",(function(t){for(var o=[],r=i._select.node().options,n=0;n<r.length;++n){var a=r[n];a.selected&&o.push(e.select(a).datum().origRow)}o.length?i.click(i.rowToObj(o[0]),i.valueColumn(),!0):i.click([],i.valueColumn(),!1)}))},o.prototype.update=function(e,o){t.prototype.update.call(this,e,o),this._prompt.text(this.label()),this._select.attr("multiple",this.multiple()?this.multiple():null).attr("size",this.multiple()&&this.selectSize()?this.selectSize():null);var r=this._select.selectAll(".dataRow").data(this.selectData()),i=r.enter().append("option").attr("class","dataRow").merge(r).attr("value",(function(t){return t.value})).text((function(t){return t.text}));r.exit().remove(),i.order()},o.prototype.exit=function(e,o){this._span.remove(),t.prototype.exit.call(this,e,o)},o.prototype.click=function(t,e,o){},o}(e.HTMLWidget);oe.prototype._class+=" other_Select",oe.prototype.publish("label",null,"string","Label for select"),oe.prototype.publish("valueColumn",null,"set","Select display value",(function(){return this.columns()}),{optional:!0}),oe.prototype.publish("textColumn",null,"set","Select value(s)",(function(){return this.columns()}),{optional:!0}),oe.prototype.publish("optional",!0,"boolean","Optional Select"),oe.prototype.publish("sort",null,"set","Sort contents",["","ascending","descending"],{optional:!0}),oe.prototype.publish("multiple",!1,"boolean","Multiple selection"),oe.prototype.publish("selectSize",5,"number","Size of multiselect box",null,{disable:function(t){return!t.multiple()}});T('.other_ThemeEditor *{box-sizing:border-box}.other_ThemeEditor table{margin-bottom:4px;width:100%}.other_ThemeEditor table:last-child{margin-bottom:0}.other_ThemeEditor thead>tr>th{text-align:left}.other_ThemeEditor thead>tr>th>b{font-weight:700}.other_ThemeEditor thead>tr>th{background-color:#fafafa}.other_ThemeEditor tbody>tr>td,.other_ThemeEditor tbody>tr>th{background-color:#fafafa;font-weight:400}.other_ThemeEditor thead>tr:first-child>th{background-color:#e5e5e5}.other_ThemeEditor thead>tr.mm-content>th{font-size:12px;padding:0 4px}.other_ThemeEditor td,.other_ThemeEditor th{padding:4px;white-space:nowrap}.other_ThemeEditor thead.mm-label>tr:first-child>th{padding-left:29px;position:relative}.other_ThemeEditor thead.mm-label>tr:first-child>th:before{color:#404040;content:"[+]";font-family:monospace;height:15px;left:3px;position:absolute;top:3px;width:15px}.other_ThemeEditor thead.mm-label.max>tr:first-child>th:before{content:"[-]"}.other_ThemeEditor tr.sharedPropertyRow>td.label:after{color:#404040;content:"[+]";font-family:monospace;height:15px;position:absolute;right:10px;top:3px;width:15px}.other_ThemeEditor tr.sharedPropertyRow>td.label.expanded:after{content:"[-]"}.other_ThemeEditor tr.sharedPropertyRow>td.label{padding-right:30px;position:relative;text-decoration:underline}.other_ThemeEditor tr.sharedPropertyRow>td.label:hover{cursor:pointer;text-decoration:none}.other_ThemeEditor tr.propertyRow>td,.other_ThemeEditor tr.propertyRow>th{background-color:#f4f4f4}.other_ThemeEditor tr.propertyRow>td.label{padding-left:24px}.other_ThemeEditor table,.other_ThemeEditor td,.other_ThemeEditor th{border:1px solid #e5e5e5}.other_ThemeEditor .mm-label.min .mm-content,.other_ThemeEditor .mm-label.min+.mm-content{display:none}.mm-label:hover,.other_ThemeEditor .sharedPropertyRow>.te-label{cursor:pointer}.other_ThemeEditor .sharedPropertyRow>.te-label:hover{text-decoration:none}.other_ThemeEditor .propertyRow.shown>.te-label{padding-left:15px}.other_ThemeEditor .propertyRow>td{background-color:#f4f4f4}.other_ThemeEditor input,.other_ThemeEditor select,.other_ThemeEditor textarea{float:left;height:30px}.other_ThemeEditor input,.other_ThemeEditor select{width:150px}.other_ThemeEditor .te-checkbox{height:20px;margin:0;width:20px}.other_ThemeEditor .te-html-color-input{height:30px;width:120px}.other_ThemeEditor .te-html-color-button{width:30px}.other_ThemeEditor .te-html-color-button,.other_ThemeEditor button{background-color:#ccc;border:1px solid #a9a9a9;border-left:0;float:left;height:30px;padding:4px}.other_ThemeEditor .te-html-color-button,.other_ThemeEditor .te-section-table thead,.other_ThemeEditor button{cursor:pointer}.other_ThemeEditor .te-html-color-button:hover,.other_ThemeEditor button:hover{background-color:#bbb}.other_ThemeEditor .te-html-color-button:active,.other_ThemeEditor button:active{background-color:#aaa}.other_ThemeEditor .te-label{vertical-align:top;white-space:nowrap;width:1%}.other_ThemeEditor .te-section-table>tbody>tr:hover{background-color:#f8ff98}.te-section-table thead th{font-weight:700}.te-section-table.expanded>thead>tr>th:after{content:"ï…‡";float:right;font:normal normal normal 14px/1 FontAwesome;margin-right:6px;margin-top:4px}.te-section-table.collapsed>thead>tr>th:after{content:"";float:right;font:normal normal normal 14px/1 FontAwesome;margin-right:6px;margin-top:4px}#te-tableModeOptions thead>tr>th,#te-themeEditorOptions thead>tr>th{background-color:#6e6e73;border:1px solid #6e6e73;color:#fafafa}');var re=function(){var t="@hpcc-js/other";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(t){return!1}}()?localStorage:{getItem:function(t){}},ie=function(t){return"function"==typeof window.g_defaultThemes&&window.g_defaultThemes(t),JSON.parse(re.getItem("themeEditorThemes")||"{}")},ne=function(t){return"function"==typeof window.g_defaultSerials&&window.g_defaultSerials(t),JSON.parse(re.getItem("themeEditorSerials")||"{}")},ae=function(t){var e=ie(),o=[];for(var r in e)o.push(r);return void 0!==t&&void 0!==o[t]&&(o=o[t]),o},se=function(t){var e=ne(),o=[];for(var r in e)o.push(r);return void 0!==t&&void 0!==o[t]&&(o=o[t]),o},le=function(t){return t.split(/(?=[0-9A-Z])/).map((function(t){return t.length>1?t+" ":t})).join("").replace(/(?:^|\s)\S/g,(function(t){return t.toUpperCase()}))},ce=function(t,e,o,r){var i,n="",a="te-input-"+t.id+"-"+r;void 0!==t.ext&&void 0!==t.ext.inputType&&(i=t.ext.inputType),void 0!==t.inputID&&(a=t.inputID);var s="data-paramid='"+t.id+"' data-wids='"+o.map((function(t){return"object"==typeof t.widget?t.widget._id:t})).join(",")+"'";switch(t.type){case"boolean":n="<input id='"+a+"' "+s+" type='checkbox' class='te-checkbox te-input'"+(e?" checked":"")+">";break;case"number":void 0!==i?"textarea"===i?n="<textarea id='"+a+"' class='te-textarea te-input' "+s+">"+e+"</textarea>":"range"===i&&(n="<input id='"+a+"' class='te-input' type='range' "+s+" value='"+e+"' min='"+t.ext.min+"' max='"+t.ext.max+"' step='"+t.ext.step+"'>"):n="<input id='"+a+"' type='text' class='te-text te-input' "+s+" value='"+e+"'>";break;case"string":void 0!==i?"textarea"===i&&(n="<textarea id='"+a+"' class='te-textarea te-input' "+s+">"+e+"</textarea>"):n="<input id='"+a+"' type='text' class='te-text te-input' value='"+e+"' "+s+">";break;case"html-color":var l=""===e?"":" value='"+e+"'";n="<input id='"+a+"' type='text' class='te-html-color-input te-input' "+s+" "+l+">",n+="<input type='color' class='te-html-color-button te-input' "+s+" "+l+">";break;case"set":n="<select id='"+a+"' class='te-select te-input'"+s+">"+function(t,e){var o="";return t.set.forEach((function(t){o+="<option value='"+t+"'"+(t===e?" selected":"")+">"+t+"</option>"})),o}(t,e)+"</select>";break;case"array":n="<textarea id='"+a+"' class='te-textarea te-input' data-type='array' "+s+">"+e+"</textarea>"}return void 0!==t.ext.saveButton&&(n+="<button id='"+t.ext.saveButtonID+"'>"+t.ext.saveButton+"</button>"),n},pe=function(t){function e(){var e=t.call(this)||this;return e._tag="div",e._current_grouping=void 0,e._showing_columns=void 0,e._showing_data=void 0,e.columns(["Key","Value"]),e._contentEditors=[],e._showSettings=!0,e._defaultThemes=[],e._widgetObjsById={},e}return n(e,t),e.prototype.showSettings=function(t){return arguments.length?(this._showSettings=t,this):this._showSettings},e.prototype.onChange=function(t,e){},e.prototype.enter=function(e,o){t.prototype.enter.call(this,e,o),this._placeholderElement.style("overflow","auto")},e.prototype.widgetProperty=function(t,e,o){return void 0===o?t[e]():t[e](o)},e.prototype.load=function(t){},e.prototype.save=function(t){},e.prototype.needsPropTableRedraw=function(){return null===document.getElementById("te-themeEditorOptions")},e.prototype.update=function(e,o){var r,i;if(t.prototype.update.call(this,e,o),i=!1,void 0===(r=this)._current_grouping?r._current_grouping=r._group_params_by:r._current_grouping!==r._group_params_by&&(i=!0),void 0===r._showing_columns?r._showing_columns=r.showColumns():r._showing_columns!==r.showColumns()&&(i=!0),void 0===r._showing_data?r._showing_data=r.showData():r._showing_data!==r.showData()&&(i=!0),i&&o.selectAll("#"+this._id+" > table").remove(),this._current_grouping=this.paramGrouping(),this._widgetObjsById[this._id]=this,this._sharedProperties=this.findSharedProperties(this.data()),this.needsPropTableRedraw()&&this.showSettings()){var n=Gt(this);for(var a in n)if(-1!==n[a].ext.tags.indexOf(this.editorComplexity())){var s=this[n[a].id]();"loadedTheme"!==n[a].id&&"loadedSerial"!==n[a].id||(n[a].inputID="te-load-theme"),n[a].input=ce(n[a],s,[this._id],this._id)}else delete n[a];e.innerHTML=this.propertiesTableHtml(n);var l=document.createEvent("Events");l.initEvent("TE Properties Ready",!0,!0),document.dispatchEvent(l)}this.buildTableObjects(e,this._sharedProperties),this.initFunctionality(e)},e.prototype.exit=function(e,o){t.prototype.exit.call(this,e,o)},e.prototype.click=function(t){},e.prototype.propertiesTableHtml=function(t){var e={id:"te-themeEditorOptions",label:"Editor Options",rowArr:[]},o={id:"te-tableModeOptions",label:this.themeMode()?"Save/Load Theme":"Save/Load Serial",rowArr:[]};for(var r in t)this.themeMode()?-1===t[r].ext.tags.indexOf("Theme")&&-1===t[r].ext.tags.indexOf("Serial")?e.rowArr.push({th:le(t[r].id),td:t[r].input,trClass:"propertyRow"}):-1!==t[r].ext.tags.indexOf("Theme")&&o.rowArr.push({th:le(t[r].id),td:t[r].input,trClass:"propertyRow"}):-1===t[r].ext.tags.indexOf("Serial")&&-1===t[r].ext.tags.indexOf("Theme")?e.rowArr.push({th:le(t[r].id),td:t[r].input,trClass:"propertyRow"}):-1!==t[r].ext.tags.indexOf("Serial")&&o.rowArr.push({th:le(t[r].id),td:t[r].input,trClass:"propertyRow"});var i="";return e.rowArr.length>0&&(i+=this.tableObjHtml(e)),o.rowArr.length>0&&(i+=this.tableObjHtml(o)),i},e.prototype.buildTableObjects=function(t,e){var o={};for(var r in o=this.themeMode()?{chartColorSection:{id:"te-colorOptions",label:"Chart Colors",rowObjArr:[]},surfaceSection:{id:"te-containerOptions",label:"Container Styles/Colors",rowObjArr:[]},fontSection:{id:"te-fontOptions",label:"Font Styles/Colors",rowObjArr:[]}}:{nonSurfaceSection:{id:"te-chartOptions",label:"Chart Properties",rowObjArr:[]}},e)this.themeMode()?-1===r.toUpperCase().indexOf("FONT")||-1!==e[r].arr[0].widget._class.indexOf("layout_Surface")&&-1!==r.toUpperCase().indexOf("COLOR")?"paletteID"===r?o.chartColorSection.rowObjArr.push(e[r]):-1!==e[r].arr[0].widget._class.indexOf("layout_Surface")&&o.surfaceSection.rowObjArr.push(e[r]):o.fontSection.rowObjArr.push(e[r]):-1===e[r].arr[0].widget._class.indexOf("layout_Surface")&&o.nonSurfaceSection.rowObjArr.push(e[r]);var i="";for(var n in o)i+=this.sharedPropertyTableHtml(o[n]);t.innerHTML+=i},e.prototype.initFunctionality=function(t){var e=this;!function(t){var e=t.getElementsByClassName("te-section-table");for(var o in e){if("function"==typeof e[o].getElementsByTagName)e[o].getElementsByTagName("thead")[0].onclick=function(t){var e=t.toElement;"TH"===e.tagName&&(e=e.parentElement.parentElement);var o=e.parentElement,r="";-1===o.className.split(" ").indexOf("expanded")?(o.className="te-section-table expanded",r="shown"):(o.className="te-section-table collapsed",r="hidden"),o.getElementsByTagName("tbody")[0].className=r}}var r=t.getElementsByClassName("sharedPropertyRow");for(var i in r){if("function"==typeof r[i].getElementsByClassName)r[i].getElementsByClassName("te-label")[0].onclick=function(t){var e=t.toElement.parentElement,o="";-1===e.className.split(" ").indexOf("expanded")?(e.className="sharedPropertyRow expanded",o="shown"):(e.className="sharedPropertyRow collapsed",o="hidden");for(var r=e.nextSibling;null!==r;)-1===r.className.split(" ").indexOf("sharedPropertyRow")?(r.className="propertyRow "+o,r=r.nextSibling):r=null}}}(t),function(t){var o=t.getElementsByClassName("te-input");for(var r in o){if(isNaN(parseInt(r)))break;var i=o[r],n=i.getAttribute("id");"te-load-theme"===n?i.onchange=function(t){var o=t.srcElement;e.load(o.value)}:null!==n&&-1!==n.indexOf("te-input-themeMode")?i.onchange=function(t){var o=t.srcElement;e.themeMode(o.checked);var r=document.getElementById("te-load-theme"),i=null!==r?r.value:"Default";e.load(i)}:"INPUT"!==i.tagName&&"SELECT"!==i.tagName&&"TEXTAREA"!==i.tagName||(i.onchange=function(t){var o=t.srcElement,r=o.getAttribute("id");-1!==o.className.split(" ").indexOf("te-html-color-button")&&(r=o.previousSibling.getAttribute("id"),o.previousSibling.value=o.value);var i=o.getAttribute("type"),n=r.split("-"),a=n.slice(0,n.length-1).join("-")+"-",s=o.getAttribute("data-wids"),l=o.getAttribute("data-paramid");s.split(",").forEach((function(t){var r=a+t,n=document.getElementById(r);if("checkbox"===i)n.checked=o.checked,e._widgetObjsById[t][l](o.checked);else if("array"===o.getAttribute("data-type")){n.value=o.value;try{e._widgetObjsById[t][l](JSON.parse(o.value))}catch(t){}}else n.value=o.value,e._widgetObjsById[t][l](o.value),-1!==n.className.split(" ").indexOf("te-html-color-input")?n.nextSibling.value=o.value:-1!==n.className.split(" ").indexOf("te-html-color-button")&&(n.previousSibling.value=o.value)})),e.data().forEach((function(t){t.render()}))})}}(t),function(t){if(e.showSettings()){document.getElementById("te-save-button").onclick=function(t){var e=t.target,o=e.previousSibling.value;if(o.length>1){var r=document.getElementById("te-load-theme"),i=r.getElementsByTagName("option"),n=!1;for(var a in i){i[a].value===o&&(n=!0)}n||(r.innerHTML+="<option value='"+o+"'>"+o+"</option>"),e.previousSibling.value="",r.value=o}else alert("Save Name cannot be empty.")}}}()},e.prototype.sharedPropertyTableHtml=function(t){var e={id:t.id,label:t.label,rowArr:[]};return t.rowObjArr.forEach((function(t){t.arr.forEach((function(a,s){0===s&&e.rowArr.push({th:r(t),td:n(t),trClass:"sharedPropertyRow collapsed"}),e.rowArr.push({th:o(a),td:i(t,s),trClass:"propertyRow hidden"})}))})),this.tableObjHtml(e);function o(t){return t.widget.classID().split("_").join("/")+" <i>["+t.widget._id+"]</i>"}function r(t){return le(t.id)}function i(t,e){var o,r,i,n=(r=e,null!==(i=(o=t).arr[r].widget[o.id]())?i:"");return ce(t,n,[t.arr[e]],t.arr[e].widget._id)}function n(t){var e=function(t){var e=t.arr[0].widget[t.id]();if(t.arr.forEach((function(t,o){if(e!==t.widget[t.id]())return""})),null!==e)return"array"===t.type?JSON.stringify(e):e;return""}(t);return ce(t,e,t.arr,"shared")}},e.prototype.tableObjHtml=function(t){var e="<table id='"+t.id+"' class='te-section-table expanded'>";return e+="<thead><tr><th colspan='2'>"+t.label+"</th></tr></thead>",e+="<tbody>",t.rowArr.forEach((function(t){e+=this.tableRowObjHtml(t)}),this),(e+="</tbody>")+"</table>"},e.prototype.tableRowObjHtml=function(t){var e=void 0!==t.trClass?"<tr class='"+t.trClass+"'>":"<tr>";return e+="<th class='te-label'>"+t.th+"</th>",(e+="<td>"+t.td+"</td>")+"</tr>"},e.prototype.setWidgetObjsById=function(t){var e=this,o=t.widget[t.id]();"widgetArray"===t.type?o.forEach((function(t){e._widgetObjsById[t._id]=t})):"widget"===t.type&&null!==o&&(this._widgetObjsById[o._id]=o)},e.prototype.checkTagFilter=function(t){var e=["Basic"],o=!1;return t.forEach((function(t){-1!==e.indexOf(t)&&(o=!0)})),o},e.prototype.findSharedProperties=function(t){var e,o=this;if(void 0!==t&&t.length>0){var r=[];e={};var i={},n={};t.forEach((function(t){var e=a(t);r=r.concat(e)})),r.forEach((function(t){if(-1!==["widget","widgetArray"].indexOf(t.type))o.setWidgetObjsById(t);else if(o.checkTagFilter(t.ext.tags)){var r=t.id;-1!==t.widget._class.indexOf("Surface")?(void 0===i[r]&&(i[r]={arr:[]}),i[r].id=t.id,i[r].description=t.description,i[r].type=t.type,i[r].set=t.set,i[r].ext=t.ext,i[r].arr.push(t)):(void 0===n[r]&&(n[r]={arr:[]}),n[r].id=t.id,n[r].description=t.description,n[r].type=t.type,n[r].set=t.set,n[r].ext=t.ext,n[r].arr.push(t)),void 0===e[r]&&(e[r]={arr:[]}),e[r].id=t.id,e[r].description=t.description,e[r].type=t.type,e[r].set=t.set,e[r].ext=t.ext,e[r].arr.push(t)}}))}return e;function a(t,e){var r=[];null!==t&&Gt(t).forEach((function(e,i){if(void 0!==e.ext.tags&&r.push({id:e.id,type:e.type,description:e.description,set:e.set,ext:e.ext,widget:t}),"widgetArray"===e.type)o.widgetProperty(t,e.id).forEach((function(t){var e=a(t);r=r.concat(e)}));else if("widget"===e.type){var n=a(o.widgetProperty(t,e.id));r=r.concat(n)}}));return r}},e}(e.HTMLWidget);pe.prototype._class+=" other_ThemeEditor",pe.prototype.publish("themeMode",!0,"boolean","Edit default values",null,{tags:["Basic"]}),pe.prototype.publish("saveTheme","","string","Save Theme",null,{tags:["Basic","Theme"],saveButton:"Save",saveButtonID:"te-save-button"}),pe.prototype.publish("loadedTheme",ae(1),"set","Loaded Theme",ae(),{tags:["Basic","Theme"]}),pe.prototype.publish("saveSerial","","string","Save Serial",null,{tags:["Basic","Serial"],saveButton:"Save",saveButtonID:"te-save-button"}),pe.prototype.publish("loadedSerial",se(0),"set","Loaded Serial",se(),{tags:["Basic","Serial"]}),pe.prototype.publish("showColumns",!0,"boolean","Show Columns",null,{tags:["Intermediate"]}),pe.prototype.publish("showData",!0,"boolean","Show Data",null,{tags:["Intermediate"]}),pe.prototype.publish("shareCountMin",1,"number","Share Count Min",null,{tags:["Private"]}),pe.prototype.publish("paramGrouping","By Param","set","Param Grouping",["By Param","By Widget"],{tags:["Private"]}),pe.prototype.publish("editorComplexity","Basic","set","Choose what publish properties to display within the editor.",["Basic","Intermediate","Advanced","Private"],{tags:["Private"]}),pe.prototype.publish("sectionTitle","","string","Section Title",null,{tags:["Private"]}),pe.prototype.publish("collapsibleSections",!0,"boolean","Collapsible Sections",null,{tags:["Intermediate"]}),pe.prototype.getThemes=ie,pe.prototype.getSerials=ne,pe.prototype.getDefaultThemes=ae,pe.prototype.getDefaultSerials=se,t.Audio=k,t.AutoCompleteText=I,t.BUILD_VERSION="2.105.12",t.CalendarHeatMap=q,t.Column=Ft,t.ColumnDropdown=Vt,t.Comms=ct,t.HPCCBadge=Tt,t.HeatMap=Rt,t.Html=It,t.IconList=Wt,t.Legend=At,t.MorphText=Ht,t.MouseHoverColumn=Ut,t.NestedTable=Mt,t.Opportunity=qt,t.PKG_NAME="@hpcc-js/other",t.PKG_VERSION="2.15.23",t.Paginator=Dt,t.Persist=$t,t.PropertyEditor=Zt,t.RadioCheckbox=ee,t.Select=oe,t.Table=Bt,t.ThemeEditor=pe,t.cache=function(t){if(!arguments.length)return ht;ht=t},t.createConnection=function(t){if(t=t||document.URL,(new X).url(t).isWsWorkunits()){var e=lt(t);if(e instanceof rt&&e.wuid())return new gt(e.getUrl({pathname:""}),e.wuid()).url(t)}return null},t.createResult=xt,t.enableCache=function(t){if(!arguments.length)return ut;ut=t,t||(ht={})},t.flattenResult=function(t,e){var o={columns:[],data:[]};if(t&&t.length){var r={};if(e&&e.length)e.forEach((function(t){r[t.value.toLowerCase()]=o.columns.length,o.columns.push(t.key)}));else for(var i in t[0])r[i.toLowerCase()]=o.columns.length,o.columns.push(i);t.forEach((function(t,e){var i=[];for(var n in t)void 0!==r[n.toLowerCase()]&&(i[r[n.toLowerCase()]]=t[n]);o.data.push(i)}))}return o}}));
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@hpcc-js/common"),require("@hpcc-js/layout")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common","@hpcc-js/layout"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@hpcc-js/other"]={},t["@hpcc-js/common"],t["@hpcc-js/layout"])}(this,(function(t,e,o){"use strict";function r(t,e){return e.forEach((function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach((function(o){if("default"!==o&&!(o in t)){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}}))})),Object.freeze(t)}var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},i(t,e)};function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}"function"==typeof SuppressedError&&SuppressedError;var a,s,l=0,c=0,p=0,u=1e3,h=0,d=0,f=0,g="object"==typeof performance&&performance.now?performance:Date,y="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function m(){return d||(y(b),d=g.now()+f)}function b(){d=0}function _(){this._call=this._time=this._next=null}function v(t,e,o){var r=new _;return r.restart(t,e,o),r}function w(){d=(h=g.now())+f,l=c=0;try{!function(){m(),++l;for(var t,e=a;e;)(t=d-e._time)>=0&&e._call.call(null,t),e=e._next;--l}()}finally{l=0,function(){var t,e,o=a,r=1/0;for(;o;)o._call?(r>o._time&&(r=o._time),t=o,o=o._next):(e=o._next,o._next=null,o=t?t._next=e:a=e);s=t,C(r)}(),d=0}}function x(){var t=g.now(),e=t-h;e>u&&(f-=e,h=t)}function C(t){l||(c&&(c=clearTimeout(c)),t-d>24?(t<1/0&&(c=setTimeout(w,t-g.now()-f)),p&&(p=clearInterval(p))):(p||(h=g.now(),p=setInterval(x,u)),l=1,y(w)))}_.prototype=v.prototype={constructor:_,restart:function(t,e,o){if("function"!=typeof t)throw new TypeError("callback is not a function");o=(null==o?m():+o)+(null==e?0:+e),this._next||s===this||(s?s._next=this:a=this,s=this),this._call=t,this._time=o,C()},stop:function(){this._call&&(this._call=null,this._time=1/0,C())}};var k=function(t){function e(){var e=t.call(this)||this;return e._tag="audio",e._sections={},e}return n(e,t),e.prototype.section=function(t,e,o,r){return arguments.length?1===arguments.length?this._sections[t]:(this._sections[t]={label:t,offset:e,beatLength:o,beatCount:r,endOffset:e+r*o},this):this._sections},e.prototype.getType=function(t){switch(t){case"mp3":return"audio/mpeg; codecs='mp3'";case"ogg":return"audio/ogg; codecs='vorbis'"}return""},e.prototype.enter=function(t,e){var o=this;e.on("play",(function(t){o.onPlay(t)}))},e.prototype.update=function(t,e){e.selectAll("source").data(this.source(),(function(t){return t})).enter().append("source").attr("src",(function(t){return t}))},e.prototype.createTimer=function(t,e,o){var r=this;v((function(){return r.onTick(t.label,o,t),!0}),o*t.beatLength,e+t.offset)},e.prototype.onTick=function(t,e,o){},e.prototype.onPlay=function(t){var e=Date.now();for(var o in this._sections)for(var r=this._sections[o],i=0;i<r.beatCount;++i)this.createTimer(r,e,i)},e.prototype.play=function(t){var e=this;this._element.on("canplaythrough",(function(t){e.node().play()})),this.node().load()},e}(e.HTMLWidget);function P(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}k.prototype._class+=" other_Audio",k.prototype.publish("source","","string","Audio Source");var S={exports:{}};!function(t){var e=function(t){if(document.querySelector){var e={selector:0,source:0,minChars:3,delay:150,offsetLeft:0,offsetTop:1,cache:1,menuClass:"",renderItem:function(t,e){e=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var o=new RegExp("("+e.split(" ").join("|")+")","gi");return'<div class="autocomplete-suggestion" data-val="'+t+'">'+t.replace(o,"<b>$1</b>")+"</div>"},onSelect:function(t,e,o){}};for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);for(var r="object"==typeof e.selector?[e.selector]:document.querySelectorAll(e.selector),i=0;i<r.length;i++){var n=r[i];n.sc=document.createElement("div"),n.sc.className="autocomplete-suggestions "+e.menuClass,n.autocompleteAttr=n.getAttribute("autocomplete"),n.setAttribute("autocomplete","off"),n.cache={},n.last_val="",n.updateSC=function(t,o){var r=n.getBoundingClientRect();if(n.sc.style.left=Math.round(r.left+(window.pageXOffset||document.documentElement.scrollLeft)+e.offsetLeft)+"px",n.sc.style.top=Math.round(r.bottom+(window.pageYOffset||document.documentElement.scrollTop)+e.offsetTop)+"px",n.sc.style.width=Math.round(r.right-r.left)+"px",!t&&(n.sc.style.display="block",n.sc.classList.remove("hide"),n.sc.maxHeight||(n.sc.maxHeight=parseInt((window.getComputedStyle?getComputedStyle(n.sc,null):n.sc.currentStyle).maxHeight)),n.sc.suggestionHeight||(n.sc.suggestionHeight=n.sc.querySelector(".autocomplete-suggestion").offsetHeight),n.sc.suggestionHeight))if(o){var i=n.sc.scrollTop,a=o.getBoundingClientRect().top-n.sc.getBoundingClientRect().top;a+n.sc.suggestionHeight-n.sc.maxHeight>0?n.sc.scrollTop=a+n.sc.suggestionHeight+i-n.sc.maxHeight:a<0&&(n.sc.scrollTop=a+i)}else n.sc.scrollTop=0},l(window,"resize",n.updateSC),document.body.appendChild(n.sc),p("autocomplete-suggestion","mouseleave",(function(t){var e=n.sc.querySelector(".autocomplete-suggestion.selected");e&&setTimeout((function(){e.className=e.className.replace("selected","")}),20)}),n.sc),p("autocomplete-suggestion","mouseover",(function(t){var e=n.sc.querySelector(".autocomplete-suggestion.selected");e&&(e.className=e.className.replace("selected","")),this.className+=" selected"}),n.sc),p("autocomplete-suggestion","mousedown",(function(t){if(s(this,"autocomplete-suggestion")){var o=this.getAttribute("data-val");n.value=o,e.onSelect(t,o,this),n.sc.style.display="none",n.sc.classList.add("hide")}}),n.sc),n.blurHandler=function(){try{var t=document.querySelector(".autocomplete-suggestions:hover")}catch(e){t=0}t?n!==document.activeElement&&setTimeout((function(){n.focus()}),20):(n.last_val=n.value,n.sc.style.display="none",n.sc.classList.add("hide"),setTimeout((function(){n.sc.style.display="none",n.sc.classList.add("hide")}),350))},l(n,"blur",n.blurHandler);var a=function(t,o){if(o||(o=n.value),n.cache[o]=t,t.length&&o.length>=e.minChars){for(var r="",i=0;i<t.length;i++)r+=e.renderItem(t[i],o);n.sc.innerHTML=r,n.updateSC(0)}else n.sc.style.display="none",n.sc.classList.add("hide")};n.keydownHandler=function(t){var o,r=window.event?t.keyCode:t.which;if((40==r||38==r)&&n.sc.innerHTML)return(i=n.sc.querySelector(".autocomplete-suggestion.selected"))?(o=40==r?i.nextSibling:i.previousSibling)?(i.className=i.className.replace("selected",""),o.className+=" selected",n.value=o.getAttribute("data-val")):(i.className=i.className.replace("selected",""),n.value=n.last_val,o=0):((o=40==r?n.sc.querySelector(".autocomplete-suggestion"):n.sc.childNodes[n.sc.childNodes.length-1]).className+=" selected",n.value=o.getAttribute("data-val")),n.updateSC(0,o),!1;if(27==r)n.value=n.last_val,n.sc.style.display="none",n.sc.classList.add("hide");else if(13==r||9==r){var i;"none"!==n.sc.style.display&&t.preventDefault(),(i=n.sc.querySelector(".autocomplete-suggestion.selected"))&&"none"!=n.sc.style.display&&(e.onSelect(t,i.getAttribute("data-val"),i),setTimeout((function(){n.sc.style.display="none",n.sc.classList.add("hide")}),20))}},l(n,"keydown",n.keydownHandler),n.keyupHandler=function(t){var o=window.event?t.keyCode:t.which;if(!o||(o<35||o>40)&&13!=o&&27!=o){var r=n.value;if(r.length>=e.minChars){if(r!=n.last_val){if(n.last_val=r,clearTimeout(n.timer),e.cache){if(r in n.cache)return void a(n.cache[r]);for(var i=1;i<r.length-e.minChars;i++){var s=r.slice(0,r.length-i);if(s in n.cache&&!n.cache[s].length)return void a([])}}n.timer=setTimeout((function(){e.source(r,a)}),e.delay)}}else n.last_val=r,n.sc.style.display="none",n.sc.classList.add("hide")}},l(n,"keyup",n.keyupHandler),n.focusHandler=function(t){n.last_val="\n",n.keyupHandler(t)},e.minChars||l(n,"focus",n.focusHandler)}this.destroy=function(){for(var t=0;t<r.length;t++){var e=r[t];c(window,"resize",e.updateSC),c(e,"blur",e.blurHandler),c(e,"focus",e.focusHandler),c(e,"keydown",e.keydownHandler),c(e,"keyup",e.keyupHandler),e.autocompleteAttr?e.setAttribute("autocomplete",e.autocompleteAttr):e.removeAttribute("autocomplete"),document.body.removeChild(e.sc),e=null}}}function s(t,e){return t.classList?t.classList.contains(e):new RegExp("\\b"+e+"\\b").test(t.className)}function l(t,e,o){t.attachEvent?t.attachEvent("on"+e,o):t.addEventListener(e,o)}function c(t,e,o){t.detachEvent?t.detachEvent("on"+e,o):t.removeEventListener(e,o)}function p(t,e,o,r){l(r||document,e,(function(e){for(var r,i=e.target||e.srcElement;i&&!(r=s(i,t));)i=i.parentElement;r&&o.call(i,e)}))}};t.exports?t.exports=e:window.autoComplete=e}(S);var E=S.exports,R=r({__proto__:null,default:P(E)},[E]);function T(t,e){void 0===e&&(e={});var o=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===o&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}T(".other_autoCompleteText label{display:inline-block;vertical-align:top}.other_autoCompleteText input{border-radius:100;max-width:600px;outline:0;width:100%}.autocomplete-suggestions{background:#fff;border:1px solid #ccc;border-top:0;box-shadow:-1px 1px 3px rgba(0,0,0,.1);box-sizing:border-box;cursor:default;display:none;max-height:254px;overflow:hidden;overflow-y:auto;position:absolute;text-align:left;z-index:9999}.autocomplete-suggestion{color:#333;font-size:1.02em;line-height:23px;overflow:hidden;padding:0 .6em;position:relative;text-overflow:ellipsis;white-space:nowrap}.autocomplete-suggestion b{color:#1f8dd6;font-weight:400}.autocomplete-suggestion.selected{background:#f0f0f0}");var I=function(t){function e(){var e=t.call(this)||this;return e._tag="div",e}return n(e,t),e.prototype.autoCompleteTextData=function(){return 0===this.data().length?[]:this._db.rollupView([this.textColumn(),this.valueColumn()]).entries().map((function(t,e){return{idx:e,text:t.key,value:t.values.length?t.values[0].key:"",origRow:t.values.length&&t.values[0].value.length?t.values[0].value[0]:[]}}),this)},e.prototype.enter=function(e,o){t.prototype.enter.call(this,e,o),this._span=o.append("span"),this._prompt=this._span.append("label").attr("for",this.id()+"_input"),this._input=this._span.append("input").attr("id",this.id()+"_input").attr("name",this.id()+"_input_name").attr("type","text").attr("placeholder",this.placeholder())},e.prototype.update=function(e,o){if(t.prototype.update.call(this,e,o),this._prompt.text(this.label()),this._input.style("width",this.textboxWidth_exists()?this.textboxWidth()+"px":null),this._prevMinCharsText!==this.minCharsText()){this._prevMinCharsText=this.minCharsText(),this._autoComplete&&this._autoComplete.destroy();var r=this;this._autoComplete=new R({selector:"#"+this.id()+"_input",minChars:this.minCharsText(),delay:150,offsetLeft:0,offsetTop:1,source:function(t,e){var o=r._db.fieldByLabel(r.textColumn());o&&(t=t.toLowerCase(),e(r.autoCompleteTextData().filter((function(e){return e.origRow[o.idx].toLowerCase().indexOf(t)>=0})).map((function(t){return{text:t.origRow[o.idx],rowIdx:t.idx}}))))},renderItem:function(t,e){e=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var o=new RegExp("("+e.split(" ").join("|")+")","gi");return'<div class="autocomplete-suggestion" data-val="'+t.text+'" data-row-idx="'+t.rowIdx+'">'+t.text.replace(o,"<b>$1</b>")+"</div>"},onSelect:function(t,e,o){var i=+o.getAttribute("data-row-idx"),n=r.autoCompleteTextData()[i];r.click(r.rowToObj(n.origRow),r.valueColumn(),!0)}})}},e.prototype.exit=function(e,o){this._autoComplete&&this._autoComplete.destroy(),this._span.remove(),t.prototype.exit.call(this,e,o)},e.prototype.click=function(t,e,o){},e}(e.HTMLWidget);I.prototype._class+=" other_AutoCompleteText",I.prototype.publish("label","Label: ","string","Label for AutoCompleteText"),I.prototype.publish("textboxWidth",null,"number","width of textbox",null,{optional:!0}),I.prototype.publish("placeholder","Search...","string","Placeholder for AutoCompleteText"),I.prototype.publish("valueColumn",null,"set","Select column for autocomplete",(function(){return this.columns()}),{optional:!0}),I.prototype.publish("textColumn",null,"set","Select value(s)",(function(){return this.columns()}),{optional:!0}),I.prototype.publish("minCharsText",1,"number","Size of multiAutoCompleteText box");var W=new Date,D=new Date;function B(t,e,o,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(o){return t(o=new Date(o-1)),e(o,1),t(o),o},i.round=function(t){var e=i(t),o=i.ceil(t);return t-e<o-t?e:o},i.offset=function(t,o){return e(t=new Date(+t),null==o?1:Math.floor(o)),t},i.range=function(o,r,n){var a,s=[];if(o=i.ceil(o),n=null==n?1:Math.floor(n),!(o<r&&n>0))return s;do{s.push(a=new Date(+o)),e(o,n),t(o)}while(a<o&&o<r);return s},i.filter=function(o){return B((function(e){if(e>=e)for(;t(e),!o(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!o(t););else for(;--r>=0;)for(;e(t,1),!o(t););}))},o&&(i.count=function(e,r){return W.setTime(+e),D.setTime(+r),t(W),t(D),Math.floor(o(W,D))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var N=B((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1})).range;function A(t){return B((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var O=A(0),H=A(1),L=A(2),M=A(3),z=A(4),j=A(5),F=A(6);O.range,H.range,L.range,M.range,z.range,j.range,F.range;var U=B((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})).range,V=B((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));V.every=function(t){return isFinite(t=Math.floor(t))&&t>0?B((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,o){e.setFullYear(e.getFullYear()+o*t)})):null},V.range;T(".other_CalendarHeatMap{shape-rendering:crispEdges}.other_CalendarHeatMap .day{fill:#fff;stroke:#ccc}.other_CalendarHeatMap .day.selected{stroke:red}.other_CalendarHeatMap .day.over{stroke:orange}.other_CalendarHeatMap .day.selected.over{stroke:red}.other_CalendarHeatMap .month{fill:none;stroke:#000;stroke-width:2px}");var q=function(t){function o(){var o=t.call(this)||this;return e.Utility.SimpleSelectionMixin.call(o),o}return n(o,t),o.prototype.calendarData=function(){if(0===this.fields().length||0===this.data().length)return[];var t=e.timeParse(this.datePattern()),o=this.aggrDeltaColumn()?e.format(".1%"):e.format("s");return this._prevDateColumn===this.dateColumn()&&this._prevAggrType===this.aggrType()&&this._prevAggrColumn===this.aggrColumn()&&this._prevAggrDeltaColumn===this.aggrDeltaColumn()||(this._prevDateColumn=this.dateColumn(),this._prevAggrType=this.aggrType(),this._prevAggrColumn=this.aggrColumn(),this._prevAggrDeltaColumn=this.aggrDeltaColumn(),this._view=this._db.aggregateView([this.dateColumn()],this.aggrType(),this.aggrColumn(),this.aggrDeltaColumn())),this._view.entries().map((function(e){return e.dateKey=t(e.key),e.formattedValues=o(e.value.aggregate),e.origRows=e.value,e}))},o.prototype.calcDelta=function(t){return(t.Close-t.Open)/t.Open},o.prototype.enter=function(o,r){t.prototype.enter.call(this,o,r),e.select(o.parentNode).style("overflow-y","scroll").style("overflow-x","hidden").style("height","100%").style("width","100%"),this._selection.widgetElement(r)},o.prototype.update=function(o,r){t.prototype.update.call(this,o,r),this._palette=this._palette.switch(this.paletteID());var i=this.width(),n=i/12/5,a=8*n,s=this.calendarData(),l=e.map(s,(function(t){return t.dateKey})),c=e.extent(s,(function(t){return t.dateKey.getFullYear()})),p=this,u=r.selectAll("svg").data(e.range(+c[0],+c[1]+1)),h=u.enter().append("svg").each((function(t){var o=e.select(this).append("g");o.append("text").style("text-anchor","middle"),o.append("g").attr("class","days");var r=U(new Date(t,0,1),new Date(t+1,0,1)),i=o.append("g").attr("class","months");r.forEach((function(t){i.append("path").attr("class","month").attr("d",b(t)).style("stroke",p.monthStrokeColor()).style("stroke-width",p.monthStrokeWidth())}))})).merge(u).attr("width",i).attr("height",a);h.select("g").attr("transform","translate("+(i-53*n)/2+","+(a-7*n-1)+")"),h.select("text").attr("transform","translate(-6,"+3.5*n+")rotate(-90)").text((function(t){return t})),u.exit().remove();var d=e.extent(s,(function(t){return t.value.aggregate}));if(this.aggrDeltaColumn()){var f=Math.max(Math.abs(+d[0]),Math.abs(+d[1]));d=[-f,f]}var g=h.select(".days").selectAll(".day").data((function(t){return N(new Date(t,0,1),new Date(t+1,0,1))})),y=g.enter().append("rect").attr("class","day").call(this._selection.enter.bind(this._selection)).on("click",(function(t){var e=l.get(t);e&&e.value&&e.value&&e.value.length&&p.click(p.rowToObj(e.value[0]),p.dateColumn(),p._selection.selected(this))})).on("dblclick",(function(t){var e=l.get(t);e&&e.value&&e.value&&e.value.length&&p.dblclick(p.rowToObj(e.value[0]),p.dateColumn(),p._selection.selected(this))})).each((function(t){e.select(this).append("title")})).merge(g).attr("x",(function(t){return O.count(V(t),t)*n})).attr("y",(function(t){return t.getDay()*n})).attr("width",n).attr("height",n).style("stroke",this.dayStrokeColor()).style("stroke-width",this.dayStrokeWidth()).style("fill",null);y.select("title").text((function(t){return t})),y.filter((function(t){return l.has(t)})).style("fill",(function(t){var e=l.get(t);return e&&e.value&&e.value.aggregate?p._palette(e.value.aggregate,d[0],d[1]):null})).select("title").text((function(t){var e=l.get(t);return e.key+": "+e.formattedValues})),g.exit().remove();var m=u.select(".months").selectAll(".month").data((function(t){return U(new Date(t,0,1),new Date(t+1,0,1))}));function b(t){var e=new Date(t.getFullYear(),t.getMonth()+1,0),o=t.getDay(),r=O.count(V(t),t),i=e.getDay(),a=O.count(V(e),e);return"M"+(r+1)*n+","+o*n+"H"+r*n+"V"+7*n+"H"+a*n+"V"+(i+1)*n+"H"+(a+1)*n+"V0H"+(r+1)*n+"Z"}m.enter().append("path").attr("class","month").merge(m).attr("d",b).style("stroke",this.monthStrokeColor()).style("stroke-width",this.monthStrokeWidth()),m.exit().remove()},o.prototype.exit=function(e,o){t.prototype.exit.call(this,e,o)},o.prototype.click=function(t,e,o){},o.prototype.dblclick=function(t,e,o){},o}(e.HTMLWidget);q.prototype._class+=" other_CalendarHeatMap",q.prototype.mixin(e.Utility.SimpleSelectionMixin),q.prototype._palette=e.Palette.rainbow("default"),q.prototype.publish("paletteID","YlOrRd","set","Color palette for this widget",q.prototype._palette.switch(),{tags:["Basic","Shared"]}),q.prototype.publish("dayStrokeColor","#ccc","html-color","Color of day border"),q.prototype.publish("monthStrokeColor","#000","html-color","Color of month border"),q.prototype.publish("dayStrokeWidth",1,"number","Pixel width of day border"),q.prototype.publish("monthStrokeWidth",2,"number","Pixel width of month border"),q.prototype.publish("dateColumn",null,"set","Date Column",(function(){return this.columns()}),{optional:!0}),q.prototype.publish("datePattern","%Y-%m-%d","string","Date Pattern"),q.prototype.publish("aggrType",null,"set","Aggregation Type",[null,"mean","median","sum","min","max"],{optional:!0}),q.prototype.publish("aggrColumn",null,"set","Aggregation Field",(function(){return this.columns()}),{optional:!0,disable:function(t){return!t.aggrType()}}),q.prototype.publish("aggrDeltaColumn",null,"set","Aggregation Field",(function(){return this.columns()}),{optional:!0,disable:function(t){return!t.aggrType()}});function G(t){if(null==t)return null;if(!t.trim)return t.Row?Y(t.Row):t;var e=t.trim();return""!==e&&!isNaN(e)&&(e.length<=1||"0"!==e[0]||"."===e[1])?Number(e):e}function Y(t){for(var e in t)t[e]=G(t[e]);return t}var X=function(){function t(){this._protocol="http:",this._hostname="localhost"}return t.prototype.url=function(t){if(!arguments.length)return this._url;this._url=t;var e=document.createElement("a");e.href=this._url,e.href=e.href;var o={};if(e.search.length){var r=e.search;"?"===r[0]&&(r=r.substring(1)),(r=r.split("&")).map((function(t){var e=t.split("=");o[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}))}for(this._protocol=e.protocol,this._hostname=e.hostname,this._port=e.port,this._pathname=e.pathname;this._pathname.length&&"/"===this._pathname[0];)this._pathname=this._pathname.substring(1);return this._search=e.search,this._params=o,this._hash=e.hash,this._host=e.host,this},t.prototype.protocol=function(t){return arguments.length?(this._protocol=t,this):this._protocol},t.prototype.hostname=function(t){return arguments.length?(this._hostname=t,this):this._hostname},t.prototype.port=function(t){return arguments.length?(this._port=t,this):this._port},t.prototype.search=function(t){return arguments.length?(this._search=t,this):this._search},t.prototype.pathname=function(t){return arguments.length?(this._pathname=t,this):this._pathname},t.prototype.hash=function(t){return arguments.length?(this._hash=t,this):this._hash},t.prototype.host=function(t){return arguments.length?(this._host=t,this):this._host},t.prototype.params=function(t){return arguments.length?(this._params=t,this):this._params},t.prototype.param=function(t){return this._params[t]},t.prototype.isWsWorkunits=function(){return this._pathname.toLowerCase().indexOf("wsworkunits")>=0||this._params.Wuid},t.prototype.isWorkunitResult=function(){return this.isWsWorkunits()&&(this._params.Sequence||this._params.ResultName)},t.prototype.isWsEcl=function(){return this._pathname.toLowerCase().indexOf("wsecl")>=0||this._params.QuerySetId&&this._params.Id},t.prototype.isWsWorkunits_GetStats=function(){return this._pathname.toLowerCase().indexOf("wsworkunits/wugetstats")>=0&&this._params.WUID},t.prototype.getUrl=function(t){return(void 0!==(t=t||{}).protocol?t.protocol:this._protocol)+"//"+(void 0!==t.hostname?t.hostname:this._hostname)+":"+(void 0!==t.port?t.port:this._port)+"/"+(void 0!==t.pathname?t.pathname:this._pathname)},t}();function J(t){for(var e in this._mappings=t,this._reverseMappings={},this._mappings)for(var o in this._reverseMappings[e]={},this._mappings[e])this._reverseMappings[e][this._mappings[e][o]]=o}J.prototype.contains=function(t,o){return e.Utility.exists(t+"."+o,this._mappings)},J.prototype.mapResult=function(t,e){var o=this._mappings[e];o&&(t[e]=t[e].map((function(t){var e=[];if(o.x&&o.x instanceof Array){e=[];for(var r=0;r<o.x.length;++r)e.push(t[o.y[r]])}else for(var i in o)"label"===o[i]?e[0]=t[i]:"weight"===o[i]&&(e[1]=t[i]);return e}),this))},J.prototype.mapResponse=function(t){for(var e in t)this.mapResult(t,e)};var Q=function(t){var e=[];for(var o in t)if(t.hasOwnProperty(o)){var r=t[o];null!=r&&e.push(encodeURIComponent(o)+"="+encodeURIComponent(r))}return e.join("&")},$=function(t,e,o){return new Promise((function(r,i){var n=1e3*o,a="jsonp_callback_"+Math.round(999999*Math.random());window[a]=function(t){n=0,c(),r(t)};var s=document.createElement("script");s.src=t+(t.indexOf("?")>=0?"&":"?")+"jsonp="+a+"&"+Q(e),document.body.appendChild(s);var l=setInterval((function(){n<=0?clearInterval(l):(n-=5e3)<=0&&(clearInterval(l),c(),i(Error("Request timeout: "+s.src)))}),5e3);function c(){delete window[a],document.body.removeChild(s)}}))},K=function(t){function e(){var e=t.call(this)||this;return e._proxyMappings={},e._mappings=new J({}),e._timeout=60,e._hipieResults={},e}return n(e,t),e.prototype.hipieResults=function(t){if(!arguments.length)return this._hipieResults;this._hipieResultsLength=0,this._hipieResults={};var e=this;return t.forEach((function(t){e._hipieResultsLength++,e._hipieResults[t.id]=t})),this},e.prototype.jsonp=function(t,e){for(var o in this._proxyMappings){var r=t.split(o),i=r[0];if(r.length>1){var n=(new X).url(t);t=i+this._proxyMappings[o],e.IP=n.hostname(),e.PORT=n.port(),r.length>0&&(e.PATH=r[1]);break}}return $(t,e,this.timeout())},e.prototype.ajax=function(t,e,o){return new Promise((function(r,i){var n=e;"GET"===t&&o&&(n+="?"+Q(o));var a=new XMLHttpRequest;a.onload=function(t){this.status>=200&&this.status<300?r(JSON.parse(this.response)):i(Error(this.statusText))},a.onerror=function(){i(Error(this.statusText))},a.open(t,n),a.setRequestHeader("X-Requested-With","XMLHttpRequest"),"GET"===t?a.send():(a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.send(Q(o)))}))},e.prototype.get=function(t,e){return this.ajax("GET",t,e)},e.prototype.post=function(t,e){return this.ajax("POST",t,e)},e.prototype.mappings=function(t){return arguments.length?(this._mappings=new J(t),this):this._mappings},e.prototype.proxyMappings=function(t){return arguments.length?(this._proxyMappings=t,this):this._proxyMappings},e.prototype.timeout=function(t){return arguments.length?(this._timeout=t||60,this):this._timeout},e}(X),Z=function(t){function e(){return t.call(this)||this}return n(e,t),e.prototype.cacheCalls=function(t){return arguments.length?(this._cacheCalls=t,this):this._cacheCalls},e.prototype.call=function(t,e){var o=this._url+(this._url.indexOf("?")>=0?"&":"?")+Q(t);if(this._cacheCalls){var r=this;return new Promise((function(t,r){var i=JSON.parse(localStorage.getItem("hpcc.viz."+o));if(!i)throw Error("not cached");e&&(console.error("Deprecated: callback, use promise (Basic.prototype.call)"),e(i)),t(i)})).catch((function(t){return r.get(o).then((function(t){return localStorage.setItem("hpcc.viz."+o,JSON.stringify(t)),e&&(console.error("Deprecated: callback, use promise (Basic.prototype.call)"),e(t)),t}))}))}return localStorage.removeItem("hpcc.viz."+o),this.get(o).then((function(t){return e&&(console.error("Deprecated: callback, use promise (Basic.prototype.call)"),e(t)),t}))},e}(K);function tt(t){for(var e in t){if(t[e].Row&&t[e].Row instanceof Array)return t;var o=void 0;if("string"!=typeof t[e]&&(o=tt(t[e])),o)return o}return null}function et(t){for(var e in t){if(t[e].Exception&&t[e].Exception instanceof Array)return t[e];var o=et(t[e]);if(o)return o}return null}var ot=function(t){function e(){var e=t.call(this)||this;return e._port="8002",e._target="",e._query="",e}return n(e,t),e.prototype.url=function(e){var o=t.prototype.url.apply(this,arguments);if(arguments.length){for(var r in this._port="8010"===this._port?"8002":this._port,this._params)switch(r){case"QuerySetId":this.target(this._params[r]);break;case"Id":this.query(this._params[r])}var i=void 0,n=void 0;this._target&&this._query||(i=this._pathname.split("/query/")).length>=2&&(n=i[1].split("/")).length>=2&&(this.target(n[0]),this.query(n[1]))}return o},e.prototype.target=function(t){return arguments.length?(this._target=t,this):this._target},e.prototype.query=function(t){return arguments.length?(this._query=t,this):this._query},e.prototype.constructUrl=function(){return K.prototype.getUrl.call(this,{pathname:"WsEcl/submit/query/"+this._target+"/"+this._query+"/json"})},e.prototype.call=function(t,e,o){(t=t||{}).target=t.target||this._target,t.query=t.query||this._query;var r=this,i=this.getUrl({pathname:"WsEcl/submit/query/"+t.target+"/"+t.query+"/json"});return this.jsonp(i,e).then((function(t){var e=tt(t);if(e||(e=et(t)),(t=e).Exception)throw Error(t.Exception.reduce((function(t,e,o,r){return t.length&&(t+="\n"),t+e.Source+" "+e.Code+": "+e.Message}),""));for(var i in t)t[i].Row&&(t[i]=t[i].Row.map(Y));return r._mappings.mapResponse(t),o&&(console.error("Deprecated: callback, use promise (WsECL.prototype.call)"),o(t)),t}))},e.prototype.send=function(t,e){return this.call({target:this._target,query:this._query},t,e)},e}(K),rt=function(t){function o(){var e=t.call(this)||this;return e._wuid="",e._jobname="",e._sequence=null,e._resultName=null,e._fetchResultNamesPromise=null,e._fetchResultPromise={},e._resultNameCache={},e._resultNameCacheCount=0,e._port="8010",e}return n(o,t),o.prototype.url=function(t){var e=K.prototype.url.apply(this,arguments);if(arguments.length){for(var o in this._params)switch(o){case"Wuid":this.wuid(this._params[o]);break;case"ResultName":this.resultName(this._params[o]);break;case"Sequence":this.sequence(this._params[o])}if(!this._wuid){var r=this._url.split("/res/");if(r.length>=2){var i=r[1].split("/");this.wuid(i[0])}}}return e},o.prototype.wuid=function(t){return arguments.length?(this._wuid=t,this):this._wuid},o.prototype.jobname=function(t){return arguments.length?(this._jobname=t,this):this._jobname},o.prototype.sequence=function(t){return arguments.length?(this._sequence=t,this):this._sequence},o.prototype.resultName=function(t){return arguments.length?(this._resultName=t,this):this._resultName},o.prototype.appendParam=function(t,e,o){return e?(o&&(o+="&"),o+t+"="+e):o},o.prototype.constructUrl=function(){var t="";return K.prototype.getUrl.call(this,{pathname:"WsWorkunits/res/"+this._wuid+"/"})+((t=this.appendParam("ResultName",this._resultName,t))?"?"+t:"")},o.prototype._fetchResult=function(t,e,o){if(t=t||{},!this._fetchResultPromise[t.resultname]){t._start=t._start||0,t._count=t._count||-1;var r=this.getUrl({pathname:"WsWorkunits/WUResult.json"}),i={Wuid:t.wuid,ResultName:t.resultname,SuppressXmlSchema:!0,Start:t._start,Count:t._count};this._resultNameCache[t.resultname]={};var n=this;this._fetchResultPromise[t.resultname]=this.jsonp(r,i).then((function(r){for(var i in r){if(!r[i].Result)throw new Error("No result found.");for(var a in n._total=r[i].Total,r=r[i].Result){r=r[a].Row.map(Y);break}break}return n._resultNameCache[t.resultname]=r,o||n._mappings.mapResult(n._resultNameCache,t.resultname),e&&(console.error("Deprecated: callback, use promise (WsWorkunits.prototype._fetchResult)"),e(n._resultNameCache[t.resultname])),n._resultNameCache[t.resultname]}))}return this._fetchResultPromise[t.resultname]},o.prototype.fetchResult=function(t,e,o){if(t.wuid)return this._fetchResult(t,e,o);if(t.jobname){var r=this;return this.WUQuery(t,(function(i){return t.wuid=i[0].Wuid,r._fetchResult(t,e,o)}))}},o.prototype.WUQuery=function(t,o){var r=this.getUrl({pathname:"WsWorkunits/WUQuery.json"}),i={Jobname:t.jobname,Count:1};return this._resultNameCache={},this._resultNameCacheCount=0,this.jsonp(r,i).then((function(t){if(!e.Utility.exists("WUQueryResponse.Workunits.ECLWorkunit",t))throw Error("No workunit found.");return t=t.WUQueryResponse.Workunits.ECLWorkunit,o&&(console.error("Deprecated: callback, use promise (WsWorkunits.prototype.WUQuery)"),o(t)),t}))},o.prototype.fetchResultNames=function(t){if(!this._fetchResultNamesPromise){var o=this.getUrl({pathname:"WsWorkunits/WUInfo.json"}),r={Wuid:this._wuid,TruncateEclTo64k:!0,IncludeExceptions:!1,IncludeGraphs:!1,IncludeSourceFiles:!1,IncludeResults:!0,IncludeResultsViewNames:!1,IncludeVariables:!1,IncludeTimers:!1,IncludeResourceURLs:!1,IncludeDebugValues:!1,IncludeApplicationValues:!1,IncludeWorkflows:!1,IncludeXmlSchemas:!1,SuppressResultSchemas:!0};this._resultNameCache={},this._resultNameCacheCount=0;var i=this;this._fetchResultNamesPromise=this.jsonp(o,r).then((function(n){return e.Utility.exists("WUInfoResponse.Workunit.Archived",n)&&n.WUInfoResponse.Workunit.Archived&&console.warn("WU is archived: "+o+" "+JSON.stringify(r)),e.Utility.exists("WUInfoResponse.Workunit.Results.ECLResult",n)&&n.WUInfoResponse.Workunit.Results.ECLResult.map((function(t){i._resultNameCache[t.Name]=[],++i._resultNameCacheCount})),t&&(console.error("Deprecated: callback, use promise (WsWorkunits.prototype.fetchResultNames)"),t(i._resultNameCache)),i._resultNameCache}))}return this._fetchResultNamesPromise},o.prototype.fetchResults=function(t,e){var o=this;return this.fetchResultNames().then((function(r){var i=[];for(var n in o._resultNameCache)i.push(o.fetchResult({wuid:o._wuid,resultname:n},null,e));return Promise.all(i).then((function(e){return t&&(console.error("Deprecated: callback, use promise (WsWorkunits.prototype.fetchResults)"),t(o._resultNameCache)),o._resultNameCache}))}))},o.prototype.postFilter=function(t,e){var o={};for(var r in e)o[r]=e[r].filter((function(e,o){for(var r in t)if(void 0!==e[r]&&void 0!==t[r]&&e[r]!=t[r])return!1;return!0}));return this._mappings.mapResponse(o),o},o.prototype.send=function(t,e){var o=this;this._resultNameCacheCount?e(o.postFilter(t,this._resultNameCache)):this.fetchResults((function(r){e(o.postFilter(t,r))}),!0)},o}(K);function it(){K.call(this),this._port="8010",this._wuid=null}function nt(){K.call(this)}function at(){rt.call(this)}function st(){at.call(this)}function lt(t){t=t||document.URL;var e=(new X).url(t);return e.isWsWorkunits_GetStats()?(new it).url(t):e.isWsWorkunits()?(new rt).url(t):e.isWsEcl()?(new ot).url(t):null}it.prototype=Object.create(K.prototype),it.prototype.url=function(t){var e=K.prototype.url.apply(this,arguments);if(arguments.length)for(var o in this._params)if("WUID"===o)this.wuid(this._params[o]);return e},it.prototype.wuid=function(t){return arguments.length?(this._wuid=t,this):this._wuid},it.prototype.constructUrl=function(){return K.prototype.getUrl.call(this,{pathname:"WsWorkunits/WUGetStats?WUID="+this._wuid})},it.prototype.send=function(t,o){var r=this.getUrl({pathname:"WsWorkunits/WUGetStats.json?WUID="+this._wuid});return this.jsonp(r,t).then((function(t){return e.Utility.exists("WUGetStatsResponse.Statistics.WUStatisticItem",t)?(o&&(console.error("Deprecated: callback, use promise (WsWorkunits_GetStats.prototype.send)"),o(t.WUGetStatsResponse.Statistics.WUStatisticItem)),t.WUGetStatsResponse.Statistics.WUStatisticItem):(o&&(console.error("Deprecated: callback, use promise (WsWorkunits_GetStats.prototype.send)"),o([])),[])}))},nt.prototype=Object.create(K.prototype),nt.prototype.fetchResults=function(t,e){var o=this.getUrl({});this._resultNameCache={},this._resultNameCacheCount=0;var r=this;return this.jsonp(o,t).then((function(t){var o=tt(t);if(o||(o=et(t)),(t=o).Exception)throw Error(t.Exception.reduce((function(t,e,o,r){return t.length&&(t+="\n"),t+e.Source+" "+e.Code+": "+e.Message}),""));for(var i in t)t[i].Row&&(r._resultNameCache[i]=t[i].Row.map(Y),++r._resultNameCacheCount);return e&&(console.error("Deprecated: callback, use promise (HIPIERoxie.prototype.fetchResults)"),e(r._resultNameCache)),r._resultNameCache}))},nt.prototype.fetchResult=function(t,e){var o=this;return new Promise((function(r,i){e&&(console.error("Deprecated: callback, use promise (HIPIERoxie.prototype.fetchResult)"),e(o._resultNameCache[t])),r(o._resultNameCache[t])}))},nt.prototype.call=function(t,e){var o=this;return this.fetchResults(t,e).then((function(t){var e={};for(var r in o._hipieResults){var i=o._hipieResults[r];e[i.id]=t[i.from]}return e}))},at.prototype=Object.create(rt.prototype),at.prototype.fetchResults=function(t){var e=this;return rt.prototype.fetchResultNames.call(this).then((function(o){var r=[];for(var i in e._hipieResults){var n=e._hipieResults[i];r.push(e.fetchResult(n.from))}return Promise.all(r).then((function(o){return t&&(console.error("Deprecated: callback, use promise (HIPIEWorkunit.prototype.fetchResults)"),t(e._resultNameCache)),e._resultNameCache}))}))},at.prototype.fetchResult=function(t,e){return rt.prototype.fetchResult.call(this,{wuid:this._wuid,resultname:t}).then((function(t){return e&&(console.error("Deprecated: callback, use promise (HIPIEWorkunit.prototype.fetchResult)"),e(t)),t}))},at.prototype.call=function(t,e){var o=this;return!t.refresh&&this._resultNameCache&&this._resultNameCacheCount?new Promise((function(e,o){e(r(t))})):this.fetchResults(e).then((function(e){return r(t)}));function r(t){var e={};for(var r in t)void 0!==t[r+"_changed"]&&(e[r]={value:t[r]});var i={},n=function(t){for(var r=o._hipieResults[t],n={},a=0;a<r.filters.length;++a){var s=r.filters[a];s.isRange()||(n[s.fieldid]=e[s.fieldid]||{value:void 0},n[s.fieldid].filter=s)}i[r.id]=o._resultNameCache[r.from].filter((function(t){for(var e in n)if(!n[e].filter.matches(t,n[e].value))return!1;return!0}))};for(var a in o._hipieResults)n(a);return i}},st.prototype=Object.create(at.prototype),st.prototype.databomb=function(t){return arguments.length?(this._databomb=t,this):this._databomb},st.prototype.databombOutput=function(t,e){if(arguments.length)return this._resultNameCacheCount++,this._databomb instanceof Array?this._resultNameCache[t]=this._databomb.map(Y):this._resultNameCache[t]=this._databomb[t].map(Y),this},st.prototype.fetchResults=function(t){var e=this;return new Promise((function(o,r){t&&(console.error("Deprecated: callback, use promise (HIPIEDatabomb.prototype.fetchResults)"),t(e._resultNameCache)),o(e._resultNameCache)}))};var ct=Object.freeze({__proto__:null,Basic:Z,Comms:K,ESPMappings:J,ESPUrl:X,HIPIEDatabomb:st,HIPIERoxie:nt,HIPIEWorkunit:at,WsECL:ot,WsWorkunits:rt,createESPConnection:lt,hookJsonp:function(t){$=t}});function pt(t){if(t.Row&&t.Row instanceof Array)return t.Row.map(pt);if(t instanceof Object)for(var e in t)t[e]=pt(t[e]);return t}var ut=!1,ht={};function dt(){Z.call(this)}function ft(t){dt.call(this),this.url(t+"WsWorkunits/")}function gt(t,e){dt.call(this),this.url(t+"WsWorkunits/"),this._wuid=e}function yt(t,e,o){dt.call(this),this.url(t+"WUResult.json"),this._wuid=e,this._name=o,this._xmlSchema=null}function mt(t,e){dt.call(this),this.url(t+"WUResult.json"),this._logicalName=e,this._xmlSchema=null}function bt(t,e){dt.call(this);var o=t.split("/"),r=o.pop();"json"===r.toLowerCase()&&(r=o.pop()),this._queryName=r,this._resultName=e,this.url(o.join("/")+"/"+r+"/json")}function _t(t){return t&&t.replace?t.replace(/ +$/,""):t}function vt(t,e){return t.filter((function(t){for(var o in e)if(void 0!==t[o]&&_t(e[o])!==_t(t[o]))return!1;return!0}))}function wt(t){for(var e in t){if(t[e].Row&&t[e].Row instanceof Array)return t;var o=wt(t[e]);if(o)return o}return null}function xt(t,e,o){var r=(new X).url(t);return 0===e.indexOf("http")?new bt(e,o):0===e.indexOf("~")||e.indexOf("::")>=0?new mt(r.getUrl({pathname:"WsWorkunits/"}),e):e?new yt(r.getUrl({pathname:"WsWorkunits/"}),e,o):null}dt.prototype=Object.create(Z.prototype),dt.prototype.jsonp=function(t,e){var o=JSON.stringify(e);return ut&&ht[t]&&ht[t][o]?Promise.resolve(ht[t][o]):Z.prototype.jsonp.apply(this,arguments).then((function(e){return ut&&(ht[t]||(ht[t]={}),ht[t][o]=e),e}))},ft.prototype=Object.create(dt.prototype),ft.prototype.wuQuery=function(t){var e=this.getUrl({pathname:"WsWorkunits/WUQuery.json"}),o={Wuid:"",Type:"",Cluster:"",RoxieCluster:"",Owner:"",State:"",StartDate:"",EndDate:"",ECL:"",Jobname:"",LogicalFile:"",LogicalFileSearchType:"",After:"",Before:"",Count:"",PageSize:100,PageStartFrom:0,PageEndAt:"",LastNDays:"",Sortby:"",Descending:0,CacheHint:""};for(var r in t)o[r]=t[r];return this.jsonp(e,o).then((function(t){return t.WUQueryResponse&&t.WUQueryResponse.Workunits?t.WUQueryResponse.Workunits.ECLWorkunit:[]}))},gt.prototype=Object.create(dt.prototype),gt.prototype.wuInfo=function(t){var e=this.getUrl({pathname:"WsWorkunits/WUInfo.json"}),o={Wuid:this._wuid,TruncateEclTo64k:!0,IncludeExceptions:!1,IncludeGraphs:!1,IncludeSourceFiles:!1,IncludeResults:!1,IncludeResultsViewNames:!1,IncludeVariables:!1,IncludeTimers:!1,IncludeResourceURLs:!1,IncludeDebugValues:!1,IncludeApplicationValues:!1,IncludeWorkflows:!1,IncludeXmlSchemas:!1,SuppressResultSchemas:!0};for(var r in t)o[r]=t[r];return this.jsonp(e,o).then((function(r){if(ut){var i={WUInfoResponse:{Workunit:{}}};for(var n in t){var a=n.substring(7);i.WUInfoResponse.Workunit[a]=r.WUInfoResponse.Workunit[a]}ht[e][JSON.stringify(o)]=i}return r}))},gt.prototype.wuUpdate=function(t){var e=this.getUrl({pathname:"WsWorkunits/WUUpdate.json"}),o={Wuid:this._wuid};for(var r in t)o[r]=t[r];return this.post(e,o)},gt.prototype.appData=function(t,e,o){return 2===arguments.length?this.wuInfo({IncludeApplicationValues:!0}).then((function(o){var r;return o.WUInfoResponse&&o.WUInfoResponse.Workunit&&o.WUInfoResponse.Workunit.ApplicationValues&&o.WUInfoResponse.Workunit.ApplicationValues.ApplicationValue&&o.WUInfoResponse.Workunit.ApplicationValues.ApplicationValue.filter((function(o){return o.Application===t&&o.Name===e})).forEach((function(t){r=t.Value})),r})):3===arguments.length?this.wuUpdate({"ApplicationValues.ApplicationValue.0.Application":t,"ApplicationValues.ApplicationValue.0.Name":e,"ApplicationValues.ApplicationValue.0.Value":o,"ApplicationValues.ApplicationValue.itemcount":1}):void 0},gt.prototype.results=function(){var t=this;return this.wuInfo({IncludeResults:!0}).then((function(o){var r=[];return e.Utility.exists("WUInfoResponse.Workunit.Results.ECLResult",o)&&(r=o.WUInfoResponse.Workunit.Results.ECLResult.map((function(e){return new yt(t.getUrl({pathname:"WsWorkunits/"}),t._wuid,e.Name)}))),r}))},gt.prototype.result=function(t,e){return xt(t=t||this._wuid,e)},yt.prototype=Object.create(dt.prototype),yt.prototype.wuid=function(t){return arguments.length?(this._wuid=t,this):this._wuid},yt.prototype.name=function(t){return arguments.length?(this._name=t,this):this._name},yt.prototype.query=function(t,e){t=t||{},e=e||{};var o={Wuid:this._wuid,ResultName:this._name,SuppressXmlSchema:!0,Start:0,Count:-1};for(var r in t)o[r]=t[r];var i=0;for(var n in e)o["FilterBy.NamedValue."+i+".Name"]=n,o["FilterBy.NamedValue."+i+".Value"]=e[n],++i;i&&(o["FilterBy.NamedValue.itemcount"]=i);var a=this;return this.jsonp(this.url(),o).then((function(t){return t.WUResultResponse&&t.WUResultResponse.Result&&t.WUResultResponse.Result[a._name]?(ut&&(ht[a.url()][JSON.stringify(o)]={WUResultResponse:{Result:t.WUResultResponse.Result}}),a._xmlSchema=t.WUResultResponse.Result.XmlSchema,pt(t.WUResultResponse.Result[a._name])):[]}))},mt.prototype=Object.create(dt.prototype),mt.prototype.query=function(t,e){t=t||{},e=e||{};var o={Cluster:"hthor",LogicalName:this._logicalName,SuppressXmlSchema:null!==this._xmlSchema,Start:0,Count:-1};for(var r in t)o[r]=t[r];var i=0;for(var n in e)o["FilterBy.NamedValue."+i+".Name"]=n,o["FilterBy.NamedValue."+i+".Value"]=e[n],++i;i&&(o["FilterBy.NamedValue.itemcount"]=i);var a=this;return this.jsonp(this.url(),o).then((function(t){return t.WUResultResponse&&t.WUResultResponse.Result&&t.WUResultResponse.Result.Row?(a._xmlSchema=t.WUResultResponse.Result.XmlSchema,pt(t.WUResultResponse.Result.Row)):[]}))},bt.prototype=Object.create(dt.prototype),bt.prototype.query=function(t,e){t=t||{},e=e||{};var o={};for(var r in t)o[r]=t[r];for(var i in e)o[i]=e[i];var n=this;return this.jsonp(this.url(),o).then((function(t){if(t=wt(t))if(n._resultName){if(t&&t[n._resultName]&&t[n._resultName].Row)return pt(vt(t[n._resultName].Row,e))}else for(var o in t)if(t[o].Row)return pt(vt(t[o].Row,e));return[]}))};var Ct={exports:{}};!function(t){function e(t){if(!(this instanceof e))return new e(t);this._canvas=t="string"==typeof t?document.getElementById(t):t,this._ctx=t.getContext("2d"),this._width=t.width,this._height=t.height,this._max=1,this._data=[]}t.exports=e,e.prototype={defaultRadius:25,defaultGradient:{.4:"blue",.6:"cyan",.7:"lime",.8:"yellow",1:"red"},data:function(t){return this._data=t,this},max:function(t){return this._max=t,this},add:function(t){return this._data.push(t),this},clear:function(){return this._data=[],this},radius:function(t,e){e=void 0===e?15:e;var o=this._circle=this._createCanvas(),r=o.getContext("2d"),i=this._r=t+e;return o.width=o.height=2*i,r.shadowOffsetX=r.shadowOffsetY=2*i,r.shadowBlur=e,r.shadowColor="black",r.beginPath(),r.arc(-i,-i,t,0,2*Math.PI,!0),r.closePath(),r.fill(),this},resize:function(){this._width=this._canvas.width,this._height=this._canvas.height},gradient:function(t){var e=this._createCanvas(),o=e.getContext("2d"),r=o.createLinearGradient(0,0,0,256);for(var i in e.width=1,e.height=256,t)r.addColorStop(+i,t[i]);return o.fillStyle=r,o.fillRect(0,0,1,256),this._grad=o.getImageData(0,0,1,256).data,this},draw:function(t){this._circle||this.radius(this.defaultRadius),this._grad||this.gradient(this.defaultGradient);var e=this._ctx;e.clearRect(0,0,this._width,this._height);for(var o,r=0,i=this._data.length;r<i;r++)o=this._data[r],e.globalAlpha=Math.max(o[2]/this._max,void 0===t?.05:t),e.drawImage(this._circle,o[0]-this._r,o[1]-this._r);var n=e.getImageData(0,0,this._width,this._height);return this._colorize(n.data,this._grad),e.putImageData(n,0,0),this},_colorize:function(t,e){for(var o,r=0,i=t.length;r<i;r+=4)(o=4*t[r+3])&&(t[r]=e[o],t[r+1]=e[o+1],t[r+2]=e[o+2])},_createCanvas:function(){return"undefined"!=typeof document?document.createElement("canvas"):new this._canvas.constructor}}}(Ct);var kt=Ct.exports,Pt=P(kt),St=r({__proto__:null,default:Pt},[kt]),Et=window.simpleheat||St&&Pt||St,Rt=function(t){function o(){return t.call(this)||this}return n(o,t),o.prototype.enter=function(e,o){t.prototype.enter.call(this,e,o),this.resize(this._size),this._heat=Et(e)},o.prototype.update=function(e,o){if(t.prototype.update.call(this,e,o),this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id())),this.topLeftX_exists()&&this.topLeftY_exists()&&this.bottomRightX_exists()&&this.bottomRightY_exists()?this._heat.data(this.skewedData()):this._heat.data(this.data()),this.radius()&&this._heat.radius(this.radius(),this.blur()),this.usePalette()){for(var r={},i=1;i<=this.colorCount();i++){r[i/this.colorCount()]=this._palette(i,1,this.colorCount())}this._heat.defaultGradient=r,this._heat.gradient(r)}else this.gradient()&&(this._heat.defaultGradient=this.gradient(),this._heat.gradient(this.gradient()));this._heat.draw()},o.prototype.exit=function(e,o){delete this._heat,t.prototype.exit.call(this,e,o)},o.prototype.resize=function(t){var o=e.CanvasWidget.prototype.resize.apply(this,arguments);return void 0!==this._heat&&this._heat.resize(),o},o.prototype.skewedData=function(){var t=this,e=[],o=this.data(),r=this.size(),i=this.bottomRightX()-this.topLeftX(),n=this.bottomRightY()-this.topLeftY(),a=i/r.width,s=n/r.height;return o.forEach((function(o){var r=Math.abs(o[0]-t.topLeftX()),i=Math.abs(o[1]-t.topLeftY()),n=r/a,l=i/s;e.push([n,l,o[2]])})),e},o}(e.CanvasWidget);Rt.prototype._class+=" other_HeatMap",Rt.prototype._palette=e.Palette.rainbow("default"),Rt.prototype.publish("radius",15,"number","Set point radius",null,{tags:["Basic"]}),Rt.prototype.publish("blur",15,"number","Set point blur",null,{tags:["Basic"]}),Rt.prototype.publish("max",1,"number","Set max data value",null,{tags:["Basic"]}),Rt.prototype.publish("gradient",{.4:"blue",.6:"cyan",.7:"lime",.8:"yellow",1:"red"},"object","Set gradient colors",null,{tags:["Basic"]}),Rt.prototype.publish("usePalette",!1,"boolean","If true, uses paletteID and colorCount to determine gradient",null,{tags:["Basic"]}),Rt.prototype.publish("colorCount",10,"number","Top left x-value",null,{tags:["Basic"]}),Rt.prototype.publish("paletteID","default","set","Color palette for this widget",Rt.prototype._palette.switch(),{tags:["Basic"]}),Rt.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]}),Rt.prototype.publish("topLeftX",null,"number","Top left x-value",null,{tags:["Basic"],optional:!0}),Rt.prototype.publish("topLeftY",null,"number","Top left y-value",null,{tags:["Basic"],optional:!0}),Rt.prototype.publish("bottomRightX",null,"number","Bottom right x-value",null,{tags:["Basic"],optional:!0}),Rt.prototype.publish("bottomRightY",null,"number","Bottom right y-value",null,{tags:["Basic"],optional:!0});var Tt=function(t){function e(){return t.call(this)||this}return n(e,t),e.prototype.testData=function(t,e){return this},e.prototype.enter=function(e,o){t.prototype.enter.call(this,e,o),this.root=o.append("g"),this.logo=this.root.append("g"),this.logo_accent=this.root.append("g"),this.line=this.logo_accent.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","m 189.38849,364.55373 c 191.6,3.8 0,0 191.6,3.8 l 0.1,-4.2 c -191.7,0.4 0,0 -191.7,0.4 z"),this.circle_accent=this.logo_accent.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#6E6E73").attr("d","M421.3,354.2c6.9,6.9,3.1,18.7-8.6,26.1c-11.8,7.4-26.3,6.9-32.1-0.6c-5.5-7.2-1.1-18.2,9.6-25C401,348,414.7,347.6,421.3,354.2z"),this.logo_circles=this.logo.append("g"),this.circle_1=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","m 258.9815,363.84947 c 1.3,-3 1.5,-5.9 0.4,-8.1 -2.6,-5.4 -11.8,-5.1 -20.6,0.4 -3.5,2.2 -6.5,4.9 -8.7,7.8 -0.11933,0.35821 -0.39477,0.60735 -0.6,0.9 -2.9,4.1 -4.2,8.3 -3,11.6 2.1,6 11.4,6.3 20.9,0.4 5,-3.2 8.9,-7.3 11,-11.4 -0.59813,0.54778 0.47385,-1.28911 0.6,-1.6 z"),this.circle_2=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M291.3,349.3c9.5-5.9,14.1-15,10.5-20c-3.5-4.8-13.3-4.2-22.1,1.3c-8.8,5.5-13.7,14.1-10.9,19.3C271.7,355.4,281.9,355.2,291.3,349.3z"),this.circle_3=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M335.3,321.7c9.5-5.9,13.3-14.5,8.9-19c-4.3-4.3-14.8-3.2-23.6,2.3c-8.8,5.5-13.1,13.7-9.4,18.4C315,328.3,325.9,327.7,335.3,321.7z"),this.circle_4=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M273.2,384c-3.2-6.5-13.5-6.7-23.2-0.7c-9.7,6-15.6,16.4-13.2,23.4c2.5,7.3,13.1,8.2,23.6,1.7 C270.8,401.9,276.5,390.8,273.2,384z"),this.circle_5=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","m 320.84499,363.83119 c 1,-3.4 0.8,-6.6 -1,-9.1 -4.2,-5.9 -15.3,-5.6 -25,0.5 -3.89999,2.4 -7.09999,5.5 -9.19999,8.7 -1.18854,2.2092 -0.0404,-0.09 -1.2,2.2 -2.2,4.1 -2.7,8.3 -0.9,11.5 3.6,6.7 15.09999,7 25.59999,0.5 5,-3.2 8.7,-7.2 10.7,-11.3 0.95557,-2.97582 0.0423,0.0306 1,-3 z"),this.circle_6=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M330.4,348.2c4.6,6,17,5.8,27.5-0.8c10.5-6.6,14.3-16.5,8.9-22c-5.2-5.3-17.1-4.4-26.8,1.6C330.3,333.1,325.9,342.4,330.4,348.2z"),this.circle_7=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M264.1,417.4c-10.8,6.7-17.2,19-14.2,27.8c3.2,9.2,15.4,11.1,27.2,3.7c11.8-7.4,17.8-20.6,13.6-29.2C286.6,411.6,274.8,410.7,264.1,417.4z"),this.circle_8=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M314.2,386.1c-10.8,6.7-16.2,18.4-11.9,26.4c4.5,8.4,17.8,9.5,29.6,2.2c11.8-7.4,16.6-19.9,11.1-27.7C337.7,379.6,324.9,379.3,314.2,386.1z"),this.text=this.root.append("g"),this.text_hpccsystems=this.text.append("path").attr("fill","#6E6E73").attr("d","M224.2,476.3c0.1-1.3,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.5-1.5-3-2.3-4.6h0c-0.2,1.5-0.4,3.6-0.4,4.6c-0.1,0-0.2,0-0.3,0c-0.1,0-0.2,0-0.3,0c0.3-2,0.7-4.4,0.9-6.3H380.5z");var r=this.root.node().getBBox(),i=r.x+r.width/2,n=r.y+r.height/2,a=Math.min(this.width(),this.height())/Math.max(r.width,r.height);this.root.attr("transform","translate("+-i*a+","+-n*a+")scale("+a+")")},e.prototype.update=function(e,o){switch(t.prototype.update.call(this,e,o),this.animation()){case"none":break;case"accentInOut":this.logo.attr("opacity",0),this.logo_accent.attr("transform","translate(-400, 0)"),this.text.attr("opacity",0),this.logo.transition().duration(1e3).attr("opacity",1),this.logo_accent.transition().delay(500).duration(1500).attr("transform","translate(0, 0)"),this.text.transition().delay(100).duration(1e3).attr("opacity",1),this.logo_accent.transition().ease("back").delay(7e3).duration(1500).attr("transform","translate(400, 0)"),this.text.transition().delay(8400).duration(1e3).attr("opacity",0),this.logo_accent.transition().delay(8500).duration(1e3).attr("opacity",0),this.logo.transition().delay(8500).duration(1e3).attr("opacity",0);break;case"accentIn":this.logo.attr("opacity",0),this.logo_accent.attr("transform","translate(-400, 0)"),this.text.attr("opacity",0),this.logo.transition().duration(1e3).attr("opacity",1),this.logo_accent.transition().delay(500).duration(1500).attr("transform","translate(0, 0)"),this.text.transition().delay(100).duration(1e3).attr("opacity",1);break;case"fade_in":this.logo.attr("opacity",0),this.logo_accent.attr("opacity",0),this.text.attr("opacity",0),this.logo.transition().duration(1e3).attr("opacity",1),this.logo_accent.transition().duration(1e3).attr("opacity",1),this.text.transition().delay(100).duration(1e3).attr("opacity",1)}},e}(e.SVGWidget);Tt.prototype._class+=" other_HPCCBadge",Tt.prototype.publish("animation","none","set","Animation Style",["none","accentInOut","accentIn","fade_in"]);T(".other_Html{height:100%;overflow-x:auto;overflow-y:scroll;width:100%}");var It=function(t){function e(){var e=t.call(this)||this;return e._tag="div",e}return n(e,t),e.prototype.enter=function(e,o){t.prototype.enter.call(this,e,o)},e.prototype.update=function(e,o){t.prototype.update.call(this,e,o),o.style("overflow-x",this.overflowX_exists()?this.overflowX():"").style("overflow-y",this.overflowY_exists()?this.overflowY():"");var r=o.selectAll(".htmlWrapper").data(this.data().length>0?this.data():[this.html()]);r.enter().append("div").attr("class","htmlWrapper").merge(r).html((function(t){return t})),r.exit().remove()},e}(e.HTMLWidget);It.prototype._class+=" other_Html",It.prototype.publish("html","","string","Html to render",null,{tags:["Basic"]}),It.prototype.publish("overflowX",null,"set","CSS overflow-x",["","visible","hidden","scroll","auto","initial","inherit"],{tags:["Basic"],optional:!0}),It.prototype.publish("overflowY",null,"set","CSS overflow-y",["","visible","hidden","scroll","auto","initial","inherit"],{tags:["Basic"],optional:!0});T(".other_IconList .other_Html{overflow-x:hidden;overflow-y:hidden}");var Wt=function(t){function r(){var e=t.call(this)||this;return e._entity_list=[],e._content_list=[],e._list=(new o.HorizontalList).orientation_default("horizontal").flexWrap_default("nowrap"),e}return n(r,t),r.prototype.enter=function(o,r){t.prototype.enter.call(this,o,r),r.style("height","100%").style("width","100%"),e.select(o.parentElement).style("height","100%").style("width","100%"),this._list.target(o)},r.prototype.update=function(r,i){var n=this;t.prototype.update.call(this,r,i);var a=this._list.widgets();this.data().forEach((function(t,r){a[r]?(a[r]=n.updateListProperties(a[r],r),n.updateEntityProperties(a[r].widgets()[0],r),a[r].widgets()[1].html(n.data()[r][n.htmlColumnIndex_exists()?n.htmlColumnIndex():1])):a[r]=n.updateListProperties(new o.VerticalList,r).widgets([n.updateEntityProperties(new e.Entity,r),(new It).html(n.data()[r][n.htmlColumnIndex_exists()?n.htmlColumnIndex():1])])})),this._list.widgets(a.slice(0,this.data().length)),this._list.resize().render()},r.prototype.updateListProperties=function(t,e){return t.disableScroll(!0).widgetsFlexBasis([this.iconSize()+"px","calc(100% - ".concat(this.iconSize(),"px)")])},r.prototype.updateEntityProperties=function(t,e){return t.icon(this.iconColumnIndex_exists()?this.data()[e][this.iconColumnIndex()]:"?").iconColor(this.iconColorColumnIndex_exists()?this.data()[e][this.iconColorColumnIndex()]:"#000").iconDiameter(this.iconSize()).iconPaddingPercent(0)},r}(e.HTMLWidget);Wt.prototype._class+=" other_IconList",Wt.prototype.publish("iconSize",72,"number","Size of icon (pixels)"),Wt.prototype.publish("iconColumnIndex",0,"number","Index of column containing icon character"),Wt.prototype.publish("iconColorColumnIndex",1,"number","Index of column containing icon color"),Wt.prototype.publish("htmlColumnIndex",2,"number","Index of column containing html string");T(".other_Paginator{display:block;position:absolute;white-space:nowrap}.other_Paginator .pagination{display:inline-block;margin:0;padding:0;white-space:nowrap}.other_Paginator .pagination>li{display:inline}.other_Paginator input[type=number].currentPageNumber{border:1px solid #ddd;outline:0 none;position:relative;text-align:center;width:37px}.other_Paginator div.side{padding-left:8px;padding-top:5px;vertical-align:top}.other_Paginator span.side{color:#337ab7;position:relative}.other_Paginator .pagination>div,.other_Paginator .pagination>li>a,.other_Paginator .pagination>li>span{background-color:#fff;border:1px solid #ddd;color:#337ab7;float:left;line-height:1.42857143;margin-left:-1px;padding:6px 12px;position:relative;text-decoration:none}.other_Paginator .pagination>li:first-child>a,.other_Paginator .pagination>li:first-child>span{border-bottom-left-radius:4px;border-top-left-radius:4px;margin-left:0}.other_Paginator .pagination>li:last-child>a,.other_Paginator .pagination>li:last-child>span{border-bottom-right-radius:4px;border-top-right-radius:4px}.other_Paginator .pagination>li>a:focus,.other_Paginator .pagination>li>a:hover,.other_Paginator .pagination>li>span:focus,.other_Paginator .pagination>li>span:hover{background-color:#eee;border-color:#ddd;color:#23527c}.other_Paginator .pagination>.active>a,.other_Paginator .pagination>.active>a:focus,.other_Paginator .pagination>.active>a:hover,.other_Paginator .pagination>.active>span,.other_Paginator .pagination>.active>span:focus,.other_Paginator .pagination>.active>span:hover{background-color:#337ab7;border-color:#337ab7;color:#fff;cursor:default;z-index:2}.other_Paginator .pagination>.disabled>a,.other_Paginator .pagination>.disabled>a:focus,.other_Paginator .pagination>.disabled>a:hover,.other_Paginator .pagination>.disabled>span,.other_Paginator .pagination>.disabled>span:focus,.other_Paginator .pagination>.disabled>span:hover{background-color:#fff;border-color:#ddd;color:#777;cursor:not-allowed}.other_Paginator .pagination-lg>li>a,.other_Paginator .pagination-lg>li>span{font-size:18px;padding:10px 16px}.other_Paginator .pagination-lg>li:first-child>a,.other_Paginator .pagination-lg>li:first-child>span{border-bottom-left-radius:6px;border-top-left-radius:6px}.other_Paginator .pagination-lg>li:last-child>a,.other_Paginator .pagination-lg>li:last-child>span{border-bottom-right-radius:6px;border-top-right-radius:6px}.other_Paginator .pagination-sm>li>a,.other_Paginator .pagination-sm>li>span{font-size:12px;padding:5px 10px}.other_Paginator .pagination-sm>li:first-child>a,.other_Paginator .pagination-sm>li:first-child>span{border-bottom-left-radius:3px;border-top-left-radius:3px}.other_Paginator .pagination-sm>li:last-child>a,.other_Paginator .pagination-sm>li:last-child>span{border-bottom-right-radius:3px;border-top-right-radius:3px}");var Dt=function(t){function o(){var e=t.call(this)||this;return e._tag="div",e._tNumPages=1,e._numList=[],e}return n(o,t),o.prototype.postUpdate=function(t,e){},o.prototype.enter=function(e,o){t.prototype.enter.call(this,e,o);var r=this;this.paginator=o.append("ul").attr("class","paginator pagination pagination-sm"),this.side=o.append("div").attr("class","paginator pagination side"),this.side.append("span").classed("side",!0).text("Page "),this.side.append("input").attr("type","number").attr("class","currentPageNumber").property("value",1).attr("min",1).on("change",(function(){r.pageNumber(this.value),r._onSelect(this.value)})),this.side.append("span").classed("side total",!0).text(" of 1")},o.prototype.update=function(t,o){var r=this;if(o.style("bottom",this.bottom()+"px").style("right",this.right()+"px"),this._tNumPages=Math.ceil(this.numItems()/this.itemsPerPage())||1,this.pageNumber()>this._tNumPages&&this.pageNumber(1),this._numList=[],this.numItems()){this._numList.push("first");for(var i=-this.adjacentPages();i<=this.adjacentPages();i++)this.pageNumber()+i>0&&this.pageNumber()+i<=this._tNumPages&&this._numList.push(this.pageNumber()+i);this._numList.push("last")}this.side.select(".total").text(" of "+this._tNumPages),this.side.select(".currentPageNumber").property("value",this.pageNumber()),this.side.select(".currentPageNumber").attr("max",this._tNumPages);var n=this.paginator.selectAll("li").data(this._numList,(function(t){return t}));n.enter().append((function(t){var e=document.createElement("li");if(t!==r.pageNumber()){var o=document.createElement("a"),i=document.createTextNode(t);return o.appendChild(i),o.href="#",e.appendChild(o),e}var n=document.createElement("span");return n.innerHTML=t,e.appendChild(n),e})).on("click",(function(t,o){switch(e.d3Event().preventDefault(),r.side.select(".currentPageNumber").property("value",r.pageNumber()),t){case"first":1!==r.pageNumber()&&(r.pageNumber(1),r._onSelect(1,"previous"));break;case"last":r.pageNumber()!==r._tNumPages&&(r.pageNumber(r._tNumPages),r._onSelect(r._tNumPages,"previous"));break;default:r.pageNumber(t),r._onSelect(t)}})),n.classed("active",(function(t,e){return t===r.pageNumber()})).select("a").text((function(t){return t})),n.exit().remove(),n.order(),0===this.numItems()&&e.select(t).remove()},o.prototype.exit=function(e,o){t.prototype.exit.call(this,e,o)},o}(e.HTMLWidget);Dt.prototype._class+=" other_Paginator",Dt.prototype.publish("itemsPerPage",2,"number","Pagination items per page",null,{tags:["Private"]}),Dt.prototype.publish("numItems",10,"number","Pagination total number of items",null,{tags:["Private"]}),Dt.prototype.publish("pageNumber",1,"number","Pagination set or get the page number",null,{tags:["Private"]}),Dt.prototype.publish("adjacentPages",2,"number","Number of page indexes either side of current one",null,{tags:["Private"]}),Dt.prototype.publish("bottom",20,"number","Pagination bottom offset",null,{tags:["Private"]}),Dt.prototype.publish("right",20,"number","Pagination right offset",null,{tags:["Private"]});T(".other_Table{border-color:#999;border-width:1px;color:#333}.other_Table table{border-collapse:collapse;border-spacing:0}.other_Table .tableDiv{position:absolute}.labels-wrapper th,.other_Table th{border:1px solid #a9c6c9;box-sizing:border-box;color:#fff;cursor:pointer;padding:5px 10px;white-space:nowrap}.cols-wrapper tr,.other_Table thead>tr{background-color:#1f77b4}.labels-wrapper .thIcon,.other_Table .thIcon{font-family:FontAwesome;padding-left:8px}.other_Table .tableDiv tbody>tr:nth-child(odd){background-color:#f3faff;color:#000}.other_Table .tableDiv tbody>tr:nth-child(2n){background-color:#fff;color:#000}.other_Table .tableDiv tbody>tr.selected{background-color:#f48a00;color:#fff}.other_Table .rows-wrapper table>tbody>tr{background-color:#bce1fb;color:#000}.other_Table .rows-wrapper .labels-wrapper{width:100%}.other_Table table tbody>tr.selected{background-color:#f48a00;color:#fff}.other_Table .tableDiv tbody>tr.hover,.other_Table .tableDiv tbody>tr:hover,.rows-wrapper table tbody tr.hover{background-color:#bfd7e7;color:#fff}.other_Table .rows-wrapper tbody tr.hover.selected,.other_Table .tableDiv tbody>tr.selected.hover,.other_Table .tableDiv tbody>tr.selected:hover,.other_Table tr.selected.hover,.other_Table tr.selected:hover{background-color:#5ea8db;color:#fff}.other_Table td,.rows-wrapper td{border:1px solid #a9c6c9;box-sizing:border-box;padding:2px 5px;vertical-align:middle;white-space:nowrap}.other_Table tfoot td,.rows-wrapper tfoot td{background-color:#addff3;font-weight:700}");var Bt=function(t){function o(){var o=t.call(this)||this;return o._tag="div",o.columns([]),o._paginator=new Dt,o._selectionBag=new e.Utility.Selection(o),o._selectionPrevClick=null,o._paginatorTableSpacing=4,o}return n(o,t),o.prototype.size=function(e){var o=t.prototype.size.apply(this,arguments);if(arguments.length&&this.tableDiv){var r=this.showHeader()&&this.fixedHeader()?this.thead.property("offsetHeight"):0;this.tableDiv.style("width",this._size.width+"px").style("height",this._size.height-r+"px"),this._element.style("width",this._size.width+"px").style("height",this._size.height+"px")}return o},o.prototype.isHidden=function(t){if(this.pivot())return!1;if(-1!==this.hiddenColumns().indexOf(t))return!0;var e=this.fields();return!(!e||!e[t]||"hidden"!==e[t].type()&&-1===this._empty_col_idx_arr.indexOf(t))},o.prototype.tableColumns=function(t){var e=this.columns.apply(this,arguments);return!arguments.length&&this.pivot()?this._db.column(0):e},o.prototype.tableData=function(t){var e=this.data.apply(this,arguments);return!arguments.length&&this.pivot()?this._db.columns().filter((function(t,e){return e>0})):e},o.prototype.field=function(t,e){var o={transform:function(t){return t}};return this.pivot()?0===e?o:this.fields()[t+1]:-1===t?o:this.fields()[e]},o.prototype.calcFieldsIndex=function(t){for(var e=-1,o=0,r=this.columns().length,i=0;e<r&&i<=t;)e++,this.isHidden(e)?o++:i++;return t+o},o.prototype.getEmptyColumnIdxArr=function(t,e){var o=[];if(this.hideEmptyColumns())for(var r=0;r<t.length;r++){for(var i=!0,n=0;n<e.length;n++)if(-1===["",null,void 0].indexOf(e[n][r])){i=!1;break}i&&o.push(r)}return o},o.prototype.enter=function(e,o){t.prototype.enter.call(this,e,o),this._placeholderElement.style("overflow","hidden"),this.tableDiv=o.append("div").attr("class","tableDiv"),this.table=this.tableDiv.append("table"),this.fixedHead=o.append("div").classed("header-wrapper",!0),this.fixedHeadTable=this.fixedHead.append("table"),this.fixedThead=this.fixedHeadTable.append("thead").append("tr"),this.unfixedThead=this.table.append("thead").append("tr"),this.tbody=this.table.append("tbody"),this.tfoot=this.table.append("tfoot").append("tr"),this.fixedCol=o.append("div").classed("rows-wrapper",!0),this.fixedColTable=this.fixedCol.append("table"),this.fixedColHead=this.fixedColTable.append("thead"),this.fixedColHeadRow=this.fixedColHead.append("tr"),this.fixedColBody=this.fixedColTable.append("tbody"),this.fixedColFoot=this.fixedColTable.append("tfoot"),this.fixedColFootRow=this.fixedColFoot.append("tr"),this.tableDiv.style("overflow","auto")},o.prototype.update=function(o,r){t.prototype.update.call(this,o,r);var i=this,n=i.tableColumns(),a=i.tableData(),s=this.tableDiv.node().scrollLeft;this._empty_col_idx_arr=this.getEmptyColumnIdxArr(n,a),this.element().selectAll("table,tbody,th,td").style("width",null),!this.sortByFieldIndex_exists()||this._prevSortByFieldIndex===this.sortByFieldIndex()&&this._prevDescending===this.descending()||(e.Utility.multiSort(a,[{idx:this.sortByFieldIndex(),reverse:this.descending()}]),this._prevSortByFieldIndex=this.sortByFieldIndex(),this._prevDescending=this.descending()),this._hasChildWidgets=!1,this.fixedHeader()?this.thead=this.fixedThead:this.thead=this.unfixedThead,this.fixedHead.style("display",this.fixedHeader()?"table-row":"none"),this.unfixedThead.style("display",this.fixedHeader()?"none":"table-row");var l=this.thead.selectAll("th").data(this.showHeader()?n.filter((function(t,e){return!i.isHidden(e)&&-1===i._empty_col_idx_arr.indexOf(e)})):[]),c=l.enter().append("th").each((function(t){var o=e.select(this);o.append("span").attr("class","thText"),o.append("span").attr("class","thIcon")})).on("click",(function(t,e){i.headerClick(t,e)})).merge(l).style("background-color",this.theadRowBackgroundColor()).style("border-color",this.theadCellBorderColor()).style("color",this.theadFontColor()).style("font-size",this.theadFontSize());if(c.select(".thText").style("font-family",this.theadFontFamily()).text((function(t,e){var o=i.calcFieldsIndex(e);return i.field(-1,o).transform(t)})),c.select(".thIcon").text((function(t,e){return i.descending()?i.sortByFieldIndex()===e?"":"":i.sortByFieldIndex()===e?"":""})),l.exit().remove(),c.order(),this.paginationLimit()&&this.pagination(a.length>=parseInt(this.paginationLimit())),this.pagination()){null===this._paginator.target()&&this._paginator.target(r.node());var p=this._calcRowsPerPage(c);this.itemsPerPage(p),this._paginator.numItems(a.length),this._tNumPages=Math.ceil(this._paginator.numItems()/this.itemsPerPage())||1,(this.pageNumber()>this._tNumPages||this.pageNumber()<=0)&&this.pageNumber(1),this._paginator._onSelect=function(t,e){i.pageNumber(t),i.render()}}else this._paginator.numItems(0);var u=this.pageNumber()-1,h=this.itemsPerPage(),d=u*h,f=u*parseInt(h)+parseInt(h),g=null;g=this.topN()?a.slice(0,this.topN()):this.pagination()?a.slice(d,f):a;var y=[this.totalledLabel()?this.totalledLabel():null];if(0!==this.totalledColumns().length){for(var m=0;m<this.totalledColumns().length;m++)this.totalledColumns()[m]=+this.totalledColumns()[m];for(var b=1;b<n.length;b++){var _=0;if(-1!==this.totalledColumns().indexOf(b)){for(var v=0;v<g.length;v++)_+=g[v][b];y.push(_)}else y.push("")}var w=this.tfoot.selectAll("td").data(y);w.enter().append("td").merge(w).style("background-color",this.tfootRowBackgroundColor()).style("border-color",this.tfootCellBorderColor()).style("color",this.tfootFontColor()).style("font-size",this.tfootFontSize())[this.renderHtmlDataCells()?"html":"text"]((function(t,e){return i.fields()[e].transform(t)})),w.exit().remove()}var x=this.tbody.selectAll("tr.tr_"+this.id()).data(g.map((function(t,e){for(var o=0;o<t.length;++o)void 0===t[o]&&(t[o]=null);return{rowIdx:e,row:t}}))),C=x.enter().append("tr").attr("class","tr_"+this.id()).on("click.selectionBag",(function(t){if(t.row){var e=t.row,o=t.rowIdx;i.selectionBagClick(e,o),i.applyRowStyles(i.getBodyRow(o)),i.applyFirstColRowStyles(i.getFixedRow(o))}}),!0).on("mouseover",(function(t){if(t.row){var e=t.rowIdx,o=i.getFixedRow(e);o.empty()||o.classed("hover",!0);var r=i.getBodyRow(e);r.classed("hover",!0),i.applyStyleToRows(r),i.applyFirstColRowStyles(o)}})).on("mouseout",(function(t){if(t.row){var e=t.rowIdx,o=i.getFixedRow(e);o.classed("hover",!1);var r=i.getBodyRow(e);r.classed("hover",!1),i.applyStyleToRows(r),i.applyFirstColRowStyles(o)}})).merge(x).classed("selected",(function(t){var e=t.row;return i._selectionBag.isSelected(i._createSelectionObject(e))})).classed("trId"+this._id,!0);x.exit().remove(),this.applyStyleToRows(C);var k=C.selectAll(".td_"+this.id()).data((function(t,e){return t.row.filter((function(t,e){return e<n.length&&!i.isHidden(e)&&-1===i._empty_col_idx_arr.indexOf(e)})).map((function(e,o){return{rowInfo:t,colIdx:o,cell:e}}))}));k.enter().append("td").attr("class","td_"+this.id()).on("click",(function(t){t.rowInfo&&i.click(i.rowToObj(t.rowInfo.row),i.columns()[t.colIdx],i._selectionBag.isSelected(i._createSelectionObject(t.rowInfo.row)))})).on("dblclick",(function(t,e){t.rowInfo&&i.dblclick(i.rowToObj(t.rowInfo.row),i.columns()[t.colIdx],i._selectionBag.isSelected(i._createSelectionObject(t.rowInfo.row)))})).each((function(t,o){var r=i.getColumnAlignment(t.rowInfo.rowIdx,t.colIdx,t.cell);e.select(this).style("height",null).style("text-align",r).style("vertical-align",i.verticalAlign()).classed("tr-"+t.rowInfo.rowIdx+"-td-"+o,!0)})).merge(k).each((function(t){var o=e.select(this);if(t.cell instanceof e.Widget){o[i.renderHtmlDataCells()?"html":"text"](null);var r=o.selectAll(".div_"+i.id()).data([t.cell],(function(t){return t.id()}));r.exit().each((function(t){t.target(null)})).remove(),r.enter().append("div").attr("class","div_"+i.id()).style("width",i.minWidgetWidth()+"px").style("height",i.minWidgetHeight()+"px").each((function(t){var o=e.select(this);t._parentWidget=i,t._class.indexOf("childWidget")<0&&(t._class="childWidget "+t._class),t.target(null).target(o.node())})).merge(r).each((function(t){t.resize().lazyRender(),i._hasChildWidgets=!0}))}else{o.selectAll(".div_"+i.id()).remove();var n=i.calcFieldsIndex(t.colIdx);o[i.renderHtmlDataCells()?"html":"text"](i.field(t.rowInfo.rowIdx,n).transform(t.cell))}})),k.exit().remove();var P=parseInt(this.thead.node().offsetHeight);this.pagination()&&this._hasChildWidgets?(this.tableDiv.style("overflow-y","auto"),this.table.style("margin-bottom","50px"),console.warn("Warning: displaying another widget in the table may cause problems with pagination")):(this.tableDiv.style("overflow-y",null),this.table.style("margin-bottom",null)),this.size(this._size);var S=0,E=this.fixedColHeadRow.selectAll("th").data(this.fixedColumn()&&this.showHeader()?[n[0]]:[]),R=E.enter().append("th").each((function(t){var o=e.select(this);o.append("span").attr("class","thText"),o.append("span").attr("class","thIcon")})).on("click",(function(t,e){i.headerClick(t,e)})).merge(E).style("background-color",this.theadRowBackgroundColor()).style("border-color",this.theadCellBorderColor()).style("color",this.theadFontColor()).style("font-size",this.theadFontSize());R.select(".thText").style("font-family",this.theadFontFamily()).text((function(t){return t})),R.select(".thIcon").text((function(t,e){return i.descending()?i.sortByFieldIndex()===e?"":"":i.sortByFieldIndex()===e?"":""})),E.exit().remove();var T=this.fixedColBody.selectAll("tr").data(this.fixedColumn()?g:[]),I=T.enter().append("tr").attr("class",(function(){return"trId"+i._id})).merge(T).on("click",(function(t,o){e.select(C[0][o]).on("click.selectionBag")(C.data()[o],o)})).on("mouseover",(function(t,o){e.select(C[0][o]).on("mouseover")(C.data()[o],o)})).on("mouseout",(function(t,o){e.select(C[0][o]).on("mouseout")(C.data()[o],o)})).classed("selected",(function(t){return i._selectionBag.isSelected(i._createSelectionObject(t))}));T.exit().remove();var W=I.selectAll("td").data((function(t,e){return[t[0]]})),D=W.enter().append("td").merge(W)[this.renderHtmlDataCells()?"html":"text"]((function(t){return"string"==typeof t?t.trim():"number"==typeof t?t:""}));W.exit().remove();var B,N=this.fixedColFootRow.selectAll("td").data(this.fixedColumn()&&this.totalledLabel()?[this.totalledLabel()]:[]),A=N.enter().append("td").merge(N)[this.renderHtmlDataCells()?"html":"text"]((function(t){return"string"==typeof t?t.trim():"number"==typeof t?t:""}));if(N.exit().remove(),this.fixedColumn()&&!this.fixedSize()&&A.length&&(this.showHeader()?(A.property("offsetWidth"),A.property("offsetWidth"),S=A.property("offsetWidth")):S=A.property("offsetWidth"),this.fixedCol.style("position","absolute").style("margin-top",-this.tableDiv.property("scrollTop")+P+"px"),D.style("width",S+"px"),this.fixedColHead.style("position","absolute").style("margin-top",(this.fixedHeader()?this.tableDiv.property("scrollTop"):0)-P+"px"),R.style("width",S+"px"),C.each((function(t,o){var r=e.select(this).select("td").property("offsetHeight");e.select(D[o][0]).style("height",r+"px")}))),this.table.style("margin-left",-S+"px"),this.tableDiv.style("margin-left",S+"px").style("width",this.width()-S+"px"),C.empty()||this.setColumnWidths(C),this.fixedSize()){var O,H,L=e.select(".tableDiv > table").node();if(L)0!==(B=L.getBoundingClientRect()).width&&0!==B.height?(M(),z()):(B.height-P<=i.tableDiv.property("offsetHeight")?z():i.fixedHeader()?(O=i.tableDiv.property("offsetHeight"),O+="px"):O="100%",B.width-S<i.tableDiv.property("offsetWidth")?M():i.fixedColumn()?(H=i.tableDiv.property("offsetWidth")-S,H+="px"):H="100%"),r.classed("childWidget")&&(i._placeholderElement.style("width",H+"px").style("height",O+"px"),i.tableDiv.style("overflow","hidden")),i.size({width:H,height:O})}function M(){B.width,i.tbody.property("offsetWidth")}function z(){i.tbody.property("offsetHeight")}this.setOnScrollEvents(this.tableDiv.node(),P),this._paginator.render(),setTimeout((function(){i._paginator.right((i.hasVScroll(r)?e.Platform.getScrollbarWidth():0)+i._paginatorTableSpacing).bottom((i.hasHScroll(r)?e.Platform.getScrollbarWidth():0)+i._paginatorTableSpacing).render((function(){i.tableDiv.node().scrollLeft=s}))}),0)},o.prototype.exit=function(e,o){this._paginator.target(null),t.prototype.exit.call(this,e,o)},o.prototype.setColumnWidths=function(t){var o=t.filter((function(t,e){return 0===e})),r=e.select(null);o.each((function(t){r=e.selectAll(this.childNodes)}));var i=this.fixedHeader()?this.thead.property("offsetHeight"):0,n=1,a={};r.each((function(t,e){a[e]=this.offsetWidth})),this.thead.selectAll("th").each((function(t,o){var i=this.offsetWidth,s=r.empty()?0:a[o],l=i>=s?i:s;this.style.width=l+"px",r.filter((function(t,e){return 0===e})).each((function(){e.select(this).style("width",l+"px")})),n+=l})),this.thead.style("position",this.fixedHeader()?"absolute":"relative").style("width",n+"px").style("margin-top","0px"),this.table.style("width",n+"px"),this.tableDiv.style("margin-top",(this.fixedHeader()?i:0)+"px"),this.tbody.style("width",n+"px")},o.prototype.getBodyRow=function(t){return this.table.selectAll("tbody tr.trId"+this._id).filter((function(e,o){return o===t}))},o.prototype.getFixedRow=function(t){return this._element.selectAll(".rows-wrapper tbody tr").filter((function(e,o){return o===t}))},o.prototype.setOnScrollEvents=function(t,e){var o=this;t.onscroll=function(t){var r=t.target.scrollTop,i=t.target.scrollLeft;o.fixedHeader()&&o.thead.style("margin-left",-i+"px"),o.fixedColumn()&&(o.fixedCol.style("margin-top",-r+e+"px"),o.fixedHeader()&&o.fixedColHead.style("margin-top",r-e+"px"))}},o.prototype._generateTempRow=function(){var t=this.tbody.append("tr");return t.append("td").text("QQQ"),t},o.prototype._createSelectionObject=function(t){var o=this;return{_id:t,element:function(){return o.tbody?o.tbody.selectAll("tr").filter((function(e){return e===t})):e.select(null)}}},o.prototype._calcRowsPerPage=function(t){0===this._paginator.numItems()&&(this._paginator.numItems(1),this.itemsPerPage(1)),this._paginator.render();var o=this.thead.selectAll("th").node()?this.thead.selectAll("th").node().clientHeight:0,r=this.tfoot.selectAll("td").node()?this.tfoot.selectAll("td").node().clientHeight:0,i=this._generateTempRow(),n=i.node().clientHeight;i.remove();var a=this.calcHeight(this._paginator.element()),s=Math.floor((this.height()-o-r-a-(this.table.style("width")>=this.table.style("width")?e.Platform.getScrollbarWidth():0)-2*this._paginatorTableSpacing)/n)||1;return 0!==this.totalledColumns().length&&(s-=1),s},o.prototype.sort=function(t){return this.sortByFieldIndex()!==t?this.descending(!1):this.descending(!this.descending()),this.sortByFieldIndex(t),this},o.prototype.selection=function(t){return arguments.length?(this._selectionBag.set(t.map((function(t){return this._createSelectionObject(t)}),this)),this):this._selectionBag.get().map((function(t){return t._id}))},o.prototype.selectionBagClick=function(t,o){if(this.multiSelect()&&e.d3Event().shiftKey&&this._selectionPrevClick){var r=!1,i=[],n=this.tableData().filter((function(e,o){var n=!1;return e!==t&&e!==this._selectionPrevClick||(r&&(n=!0),r=!r,i.push(o)),r||n}),this);this.selection(n)}else if(this.multiSelect())this._selectionBag.click(this._createSelectionObject(t),e.d3Event),this._selectionPrevClick=t;else{var a=this._createSelectionObject(t);this._selectionBag.click(a,{ctrlKey:this._selectionBag.isSelected(a)}),this._selectionPrevClick=t}this.render()},o.prototype.applyHoverRowStyles=function(t){t.style("color",this.tbodyHoverRowFontColor()).style("background-color",this.tbodyHoverRowBackgroundColor())},o.prototype.applySelectedRowStyles=function(t){t.style("color",this.tbodySelectedRowFontColor()).style("background-color",this.tbodySelectedRowBackgroundColor())},o.prototype.applyRowStyles=function(t,e){void 0===e&&(e=!1);var o=t.datum().row;t.style("color",e?this.tbodyFirstColFontColor():this.tbodyFontColor()).style("background-color",e?this.tbodyFirstColBackgroundColor():this.tableZebraColor_exists()&&this.tableData().indexOf(o)%2?this.tbodyRowBackgroundColor():this.tableZebraColor())},o.prototype.applyFirstColRowStyles=function(t){this.applyStyleToRows(t,!0)},o.prototype.applyStyleToRows=function(t,o){void 0===o&&(o=!1),o=void 0!==o&&o;var r=this;t.each((function(){var t=e.select(this);t.classed("hover")?r.applyHoverRowStyles(t):t.classed("selected")?r.applySelectedRowStyles(t):r.applyRowStyles(t,o)}))},o.prototype.getColumnAlignment=function(t,e,o){var r=this.calcFieldsIndex(e);switch(this.field(t,r).__prop_type){case"string":return this.stringAlign();case"number":return this.numberAlign();case"":case void 0:switch(typeof o){case"string":return this.stringAlign();case"number":return this.numberAlign()}}return null},o.prototype.serializeState=function(){return{selection:this._selectionBag.get().map((function(t){return t._id})),data:this.data()}},o.prototype.deserializeState=function(t){if(t){if(t.selection){var e=this;this._selectionBag.set(t.selection.map((function(t){return e._createSelectionObject(t)})))}t.data&&this.data(t.data)}return this},o.prototype.click=function(t,e,o){},o.prototype.dblclick=function(t,e,o){},o.prototype.headerClick=function(t,e){this.sort(e).render()},o}(e.HTMLWidget);Bt.prototype._class+=" other_Table",Bt.prototype.publish("renderHtmlDataCells",!1,"boolean","enable or disable HTML within cells",null,{tags:["Private"]}),Bt.prototype.publish("pagination",!0,"boolean","Enable or disable pagination",null,{tags:["Private"]}),Bt.prototype.publish("paginationLimit",null,"number","Maximum number of rows allowed before pagination defaults to on",null,{tags:["Private"]}),Bt.prototype.publishProxy("itemsPerPage","_paginator"),Bt.prototype.publishProxy("pageNumber","_paginator","pageNumber",1),Bt.prototype.publishProxy("adjacentPages","_paginator"),Bt.prototype.publish("topN",null,"number","Total number or rows of data to be displayed in the table",null,{tags:["Private"]}),Bt.prototype.publish("pivot",!1,"boolean","Pivot Table"),Bt.prototype.publish("showHeader",!0,"boolean","Show or hide the table header",null,{tags:["Private"]}),Bt.prototype.publish("fixedHeader",!0,"boolean","Enable or disable fixed table header",null,{tags:["Private"]}),Bt.prototype.publish("fixedColumn",!1,"boolean","Enable or disable fixed first column",null,{tags:["Private"]}),Bt.prototype.publish("multiSelect",!1,"boolean","Multiple Selection",null,{tags:["Basic"]}),Bt.prototype.publish("fixedSize",!1,"boolean","Fix Size to Min Width/Height"),Bt.prototype.publish("hideEmptyColumns",!1,"boolean","Hide columns with all empty cells"),Bt.prototype.publish("theadFontSize",null,"string","Table head font size",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodyFontSize",null,"string","Table body font size",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tfootFontSize",null,"string","Table body font size",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("theadFontColor",null,"html-color","Table head font color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodyFontColor",null,"html-color","Table body font color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tfootFontColor",null,"html-color","Table body font color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("theadFontFamily",null,"string","Table head font family",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodyFontFamily",null,"string","Table body font family",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tfootFontFamily",null,"string","Table body font family",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("theadCellBorderColor",null,"html-color","Table head cell border color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tfootCellBorderColor",null,"html-color","Table head cell border color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("theadRowBackgroundColor",null,"html-color","Table head row color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tfootRowBackgroundColor",null,"html-color","Table head row color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodyCellBorderColor",null,"html-color","Table body cell border color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodyRowBackgroundColor",null,"html-color","Table body row color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodyFirstColFontColor",null,"html-color","Table body first column font color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodyFirstColBackgroundColor",null,"html-color","Table body first column background color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodyHoverRowFontColor",null,"html-color","Table body hover row font color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodyHoverRowBackgroundColor",null,"html-color","Table body hover row background color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodySelectedRowFontColor",null,"html-color","Table body selected row color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tbodySelectedRowBackgroundColor",null,"html-color","Table body selected row color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("tableZebraColor",null,"html-color","Table zebra row color",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("totalledColumns",[],"array","Array of indices of the columns to be totalled",null,{tags:["Basic"],optional:!0,disable:function(t){return t.pivot()}}),Bt.prototype.publish("totalledLabel",null,"string","Adds a label to the first column of the 'Totalled' row",null,{tags:["Basic"],optional:!0,disable:function(t){return t.pivot()}}),Bt.prototype.publish("hiddenColumns",[],"array","Array of indices of the columns to be hidden",null,{tags:["Basic"],optional:!0,disable:function(t){return t.pivot()}}),Bt.prototype.publish("stringAlign","left","set","Cell alignment for strings",["left","right","center"],{tags:["Basic"],optional:!0}),Bt.prototype.publish("numberAlign","right","set","Cell alignment for numbers",["left","right","center"],{tags:["Basic"],optional:!0}),Bt.prototype.publish("verticalAlign",null,"set","Cell vertical alignment",[null,"middle","top","bottom"],{tags:["Basic"],optional:!0}),Bt.prototype.publish("minWidgetWidth",320,"number","Minimum width of a child widget",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("minWidgetHeight",240,"number","Minimum height of a child widget",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("sortByFieldIndex",null,"number","Index for the field/column to sort the data",null,{tags:["Basic"],optional:!0}),Bt.prototype.publish("descending",!1,"boolean","Direction for sorting the data: ascending (true) or descending (false)",null,{tags:["Basic"],optional:!0});function Nt(t){return'<div class="colorBlock" style="background-color:'+t+';"></div>'}T(".other_Legend .colorBlock{height:10px;width:10px}.other_Legend>table,.other_Legend>table td,.other_Legend>table th{border-collapse:collapse;border-spacing:0}.other_Table.other_Legend table{border-spacing:0}.labels-wrapper th,.other_Table.other_Legend th{background-color:transparent;border:1px solid transparent;color:#333;cursor:default;font-weight:400;padding:2px 5px;text-align:left;white-space:nowrap}.other_Table.other_Legend tr{background-color:transparent;color:#333}.other_Table.other_Legend .tableDiv tbody>tr:nth-child(odd){background-color:unset;color:#000}.other_Table.other_Legend .tableDiv tbody>tr.hover,.other_Table.other_Legend .tableDiv tbody>tr:hover,.rows-wrapper table tbody tr.hover{background-color:#bfd7e7;color:#fff}.other_Table.other_Legend thead>tr:hover{background-color:transparent}.other_Table.other_Legend tbody>tr.hover,.other_Table.other_Legend tbody>tr:hover,.rows-wrapper tbody tr.hover{background-color:#eee}.other_Table.other_Legend td,.rows-wrapper td{border-width:0;box-sizing:border-box;padding:2px 5px;white-space:nowrap}.other_Legend>.tableDiv>table>tbody>tr:hover{background-color:#ddd;color:#000;cursor:pointer}.other_Legend.horiz-legend .tableDiv{text-align:left;width:100%!important}.other_Legend.horiz-legend .tableDiv>table{display:inline-block;left:0!important;top:0!important;width:100%!important}.other_Legend.horiz-legend tbody,.other_Legend.horiz-legend thead,.other_Legend.horiz-legend tr{display:inline-block}.other_Legend.horiz-legend td,.other_Legend.horiz-legend td>div{display:inline-block;white-space:nowrap}.other_Legend.horiz-legend tr{white-space:nowrap}.other_Legend.horiz-legend tbody{display:inline-block;text-align:center;width:100%!important}");var At=function(t){function o(){var e=t.call(this)||this;return e.showHeader(!1),e.pagination(!1),e}return n(o,t),o.prototype.isRainbow=function(){var t=this.getWidget();return t&&t._palette&&"rainbow"===t._palette.type()},o.prototype.targetWidget=function(t){if(!arguments.length)return this._targetWidget;this._targetWidget=t,this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor);var e=this;return this._targetWidgetMonitor=this._targetWidget.monitor((function(t,o,r,i){switch(t){case"chart":case"columns":case"data":case"paletteID":e.lazyRender()}})),this},o.prototype.getWidget=function(){return this._targetWidget&&"chart_MultiChart"===this._targetWidget.classID()?this._targetWidget.chart():this._targetWidget},o.prototype.getPalette=function(){var t=this.getWidget();if(t&&t._palette)switch(t._palette.type()){case"ordinal":return e.Palette.ordinal(t._palette.id());case"rainbow":return e.Palette.rainbow(t._palette.id())}return e.Palette.ordinal("default")},o.prototype.enter=function(o,r){t.prototype.enter.call(this,o,r),e.select(o.parentNode).style("overflow-y","auto"),this.renderHtmlDataCells(!0),this.fixedHeader(!1),this.fixedSize(!0),r.classed("other_Legend",!0)},o.prototype.update=function(o,r){var i=[];if(this._targetWidget){var n=this.getPalette();switch(n.type()){case"ordinal":var a=n;switch(this.dataFamily()){case"2D":i=this._targetWidget.data().map((function(t){return[Nt(a(t[0])),t[0]]}),this);break;case"ND":i=this._targetWidget.columns().filter((function(t,e){return e>0})).map((function(t){return[Nt(a(t)),t]}),this)}break;case"rainbow":var s=n,l=e.format(this.rainbowFormat()),c=this.getWidget(),p=this.rainbowBins(),u=c._dataMinWeight,h=c._dataMaxWeight,d=(h-u)/(p-1);i.push([Nt(s(u,u,h)),l(u)]);for(var f=1;f<p-1;++f){var g=d*f;i.push([Nt(s(g,u,h)),l(Math.floor(g))])}i.push([Nt(s(h,u,h)),l(h)])}}this.columns(["Key","Label"]),this.data(i),t.prototype.update.call(this,o,r),r.classed("horiz-legend","horizontal"===this.orientation());var y=r.select(".tableDiv > table"),m=y.node().getBoundingClientRect(),b=this._placeholderElement.node().getBoundingClientRect();r.select(".tableDiv").style("overflow","visible");var _=b.height/2-m.height/2,v=b.width/2-m.width/2;y.style("position","absolute").style("top",_+"px").style("left",v+"px");var w=this.pageNumber()-1,x=this.itemsPerPage(),C=w*x,k=w*parseInt(x)+parseInt(x),P=null;P=this.pagination()?this.data().slice(C,k):this.data();var S=this.tbody.selectAll("tr").data(P),E=this;S.on("click",(function(t,e){E.onClick(t,e)})).on("dblclick",(function(t,e){E.onDblClick(t,e)})).on("mouseover",(function(t,e){E.onMouseOver(t,e)}))},o.prototype.exit=function(e,o){this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor),t.prototype.exit.call(this,e,o)},o.prototype.onClick=function(t,e){},o.prototype.onDblClick=function(t,e){},o.prototype.onMouseOver=function(t,e){},o}(Bt);At.prototype._class+=" other_Legend",At.prototype.publish("dataFamily","ND","set","Type of data",["1D","2D","ND","map","any","other"],{tags:["Private"]}),At.prototype.publish("orientation","vertical","set","Orientation of Legend rows",["vertical","horizontal"],{tags:["Private"]}),At.prototype.publish("rainbowFormat",",","string","Rainbow number formatting",null,{tags:["Private"],optional:!0,disable:function(t){return!t.isRainbow()}}),At.prototype.publish("rainbowBins",8,"number","Number of rainbow bins",null,{tags:["Private"],disable:function(t){return!t.isRainbow()}});var Ot=Bt.prototype.getBBox;At.prototype.getBBox=function(t,o){var r=Ot.apply(this,arguments),i=this.element().select(".tableDiv > table");if(!i.empty()){var n=i.node().getBoundingClientRect(),a=n.width+8+(this.hasVScroll(this._placeholderElement)?e.Platform.getScrollbarWidth():0),s=n.height+8+(this.hasHScroll(this._placeholderElement)?e.Platform.getScrollbarWidth():0);return{x:r.x,y:r.y,width:(o?Math.round(a):a)*this._scale,height:(o?Math.round(s):s)*this._scale}}return r};T(".other_MorphText .enter{fill:green}.other_MorphText .update{fill:#333}.other_MorphText .exit{fill:brown}");var Ht=function(t){function e(){return t.call(this)||this}return n(e,t),e.prototype.enter=function(t,e){if(!this.fontSize()){var o=window.getComputedStyle(t,null);this.fontSize(parseInt(o.fontSize))}this._fontWidth=32*this.fontSize()/48,this._textElement=e.append("g")},e.prototype.dateTime=function(){var t=new Date,e=1===t.getSeconds().toString().length?"0"+t.getSeconds():t.getSeconds(),o=1===t.getMinutes().toString().length?"0"+t.getMinutes():t.getMinutes(),r=1===t.getHours().toString().length?"0"+t.getHours():t.getHours(),i=t.getHours()>=12?"pm":"am";return["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][t.getDay()]+" "+["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()]+" "+t.getDate()+" "+t.getFullYear()+" "+r+":"+o+":"+e+i},e.prototype.update=function(t,e){var o=this,r=this._textElement.selectAll("text").data(this.data(),(function(t){return t.id}));r.attr("class","update"),this.transition.apply(r).attr("x",(function(t,e){return(-o.data().length/2+e)*o._fontWidth+o._fontWidth/2}));var i=r.enter().append("text").attr("class","enter").attr("font-size",this.fontSize()).attr("dy",".35em").attr("y",(this.reverse()?1:-1)*this._fontWidth*2).attr("x",(function(t,e){return(-o.data().length/2+e)*o._fontWidth+o._fontWidth/2})).style("fill-opacity",1e-6).style("text-anchor",this.anchor()).text((function(t){return t.text}));this.transition.apply(i).attr("y",0).style("fill-opacity",1),r.exit().attr("class","exit"),this.transition.apply(r.exit()).attr("y",(this.reverse()?-1:1)*this._fontWidth*2).style("fill-opacity",1e-6).remove()},e}(e.SVGWidget);Ht.prototype._class+=" other_MorphText",Ht.prototype.publish("anchor","middle","set","Sets anchor point",["middle"],{tags:["Basic"]}),Ht.prototype.publish("fontSize",14,"number","Sets fontsize",null,{tags:["Basic"]}),Ht.prototype.publish("reverse",!1,"boolean","Reverse Animation",null,{tags:["Basic"]}),Ht.prototype.publish("text","","string","Sets text/data of widget",null,{tags:["Basic"]});var Lt=Ht.prototype.text;Ht.prototype.text=function(t){var e=Lt.apply(this,arguments);if(arguments.length){var o={},r=t.split("");this.data(r.map((function(t){var e="_"+t;return void 0===o[e]&&(o[e]=0),o[e]++,{text:t,id:t.charCodeAt(0)+1024*o[e]}})))}return e};var Mt=function(t){function e(){var e=t.call(this)||this;return e.minWidgetHeight(240),e.minWidgetWidth(360),e}return n(e,t),e}(Bt);Mt.prototype._class+=" other_NestedTable";var zt=Mt.prototype.columns;Mt.prototype.columns=function(t){return arguments.length?(this._columns=t,zt.call(this,t.map((function(t){return"object"==typeof t?t.label:t})))):zt.apply(this,arguments)};var jt=Mt.prototype.data;Mt.prototype.data=function(t){if(arguments.length){var e=this;return jt.call(this,t.map((function(t){return t.map((function(t,o){if(t instanceof Array){var r=[];if("object"==typeof e._columns[o]&&e._columns[o].columns)r=e._columns[o].columns;else for(var i=0;i<t.length;++i)r.push(e._columns[o]+"."+i);return(new Bt).columns(r).data(t)}return t}))})))}return jt.apply(this,arguments)};T(".graph_Opportunity{transform:translate(20px,20px)scale(1)!important}.graph_Opportunity .group{stroke-width:1;stroke:#555;fill:#fefefe}.graph_Opportunity .group_headings{font-family:Helvetica,Arial,sans-serif;font-size:14px;font-weight:700;line-height:20px}.graph_Opportunity .node_prev_rect{fill:#fff;stroke-width:2;stroke:#000;stroke-dasharray:3,3;opacity:.6}.graph_Opportunity .node_rev_change{fill:#fff}.graph_Opportunity .node_rev_change_text{color:#000;font-family:Arial;font-size:18px;font-weight:700}.graph_Opportunity .node_date_change{fill:#fff}.graph_Opportunity .node_date_change_text{color:#000;font-family:Arial;font-size:18px;font-weight:700}.graph_Opportunity .node_prev_text{font-family:Arial;font-size:9px;opacity:.6}.graph_Opportunity .node_cur_rect{stroke-width:2;stroke:#000}.graph_Opportunity .node_cur_text{font-family:Arial;font-size:9px;text-decoration:underline}.graph_Opportunity .arrowhead{refX:6}.graph_Opportunity-tooltip.tooltip{background:#bdbdbd;border:0;border-radius:8px;font:14px arial;height:135px;padding:15px 10px 10px;pointer-events:none;position:absolute;text-align:left;width:350px;z-index:1}");var Ft=function(t){function e(){return t.call(this)||this}return n(e,t),e.prototype.owner=function(t){return arguments.length?(this._owner=t,this):this._owner},e.prototype.valid=function(){return!!this.headerLabel()},e}(e.PropertyExt);Ft.prototype._class+=" other_Opportunity.Column",Ft.prototype.publish("headerLabel",null,"string","Header value of a table",(function(){return this._owner?this._owner.columns():[]}),{tags:["Basic"],optional:!0});var Ut=function(t){function e(){return t.call(this)||this}return n(e,t),e.prototype.owner=function(t){return arguments.length?(this._owner=t,this):this._owner},e.prototype.valid=function(){return!!this.hoverValue()&&!!this.hoverList()},e}(e.PropertyExt);Ut.prototype._class+=" other_Opportunity.MouseHoverColumn",Ut.prototype.publish("hoverValue",null,"string","Hover value of a table",(function(){return this._owner?this._owner.columns():[]}),{tags:["Basic"],optional:!0}),Ut.prototype.publish("hoverList",null,"set","Hover value of a table",(function(){return this._owner?this._owner.getIds():[]}),{tags:["Basic"],optional:!0});var Vt=function(t){function e(){return t.call(this)||this}return n(e,t),e.prototype.owner=function(t){return arguments.length?(this._owner=t,this):this._owner},e.prototype.valid=function(){return!!this.columnIndex()&&!!this.ColumnDropdownList()},e}(e.PropertyExt);Vt.prototype._class+=" other_Opportunity.ColumnDropdown",Vt.prototype.publish("columnIndex",null,"number","Column index for display context data based on column dropdown list selction",{},{tags:["Basic","Shared"]}),Vt.prototype.publish("ColumnDropdownList",null,"set","column value of a table",(function(){return this._owner?this._owner.getIds():[]}),{tags:["Basic"],optional:!0});var qt=function(t){function o(){var e=t.call(this)||this;return e._drawStartPos="origin",e.groupCount=7,e}return n(o,t),o.prototype.enter=function(o,r){t.prototype.enter.call(this,o,r);var i=25*(this.data().length+1)+30;this.svg=r.append("g").attr("width",100*this.groupCount+1).attr("height",i),this.svg.append("defs").append("marker").classed("arrowhead",!0).attr("id","end-arrow").attr("viewBox","0 -5 10 10").attr("refX",6).attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("svg:path").attr("d","M0,-5L10,0L0,5").attr("fill","rgb(100,100,100)"),this.tooltipdiv=e.select("body").append("div").attr("class","other_Opportunity-tooltip tooltip").style("opacity",0)},o.prototype.update=function(o,r){t.prototype.update.call(this,o,r);var i=this,n=this.data(),a=this.opportunityId();n.sort((function(t,e){return t.cur_group>e.cur_group?1:t.cur_group<e.cur_group?-1:0}));for(var s=[],l=1;l<=i.groupCount;l++)s.push(l);var c=30,p=14,u=25*(n.length+1)+c,h=this.width(),d=30,f=h/i.groupCount-d,g=this.svg.selectAll(".group").data(s);g.enter().append("rect").attr("class","group"),g.attr("x",(function(t,e){return e*h/i.groupCount+1})).attr("y",c).attr("width",h/this.groupCount).attr("height",u-c),g.exit().remove();var y=this.svg.selectAll(".group_headings").data(s);if(y.enter().append("text").attr("class","group_headings").attr("y",20),y.attr("x",(function(t,e){return e*h/i.groupCount+h/i.groupCount/i.groupCount})).text((function(t,e){return i.headerLabels().length>0&&i.headerLabels()[e]&&i.headerLabels()[e].headerLabel()?i.headerLabels()[e].headerLabel():""})),y.exit().remove(),"prev_group"===this.previousGroup()&&"cur_group"===this.currentGroup()){var m=this.svg.selectAll(".node_date_change").data(n);m.enter().append("g").attr("class","node_date_change update").on("mouseover",(function(t){i.tooltipdiv.transition().duration(200).style("opacity",.9);var o="<span style='font-weight:bolder'>Close Date Change </span><br/>";i.mouseHover().forEach((function(e,r){void 0!==e.hoverValue()&&(o=o+"<span style='font-weight:bold'>"+e.hoverValue()+": </span>"+t[e.hoverList()]+"<br/>")}));var r=t.prevdate+"";r=r.replace(/(\d\d\d\d)(\d\d)(\d\d)/g,"$3-$2-$1");var n=t.curdate+"";n=n.replace(/(\d\d\d\d)(\d\d)(\d\d)/g,"$3-$2-$1"),o=o+"<span style='font-weight:bold'>From: </span>"+r+"<br/><span style='font-weight:bold'>To: </span>"+n+"<br/>";var a=e.d3Event();i.tooltipdiv.html(o).style("left",a.pageX+"px").style("top",a.pageY-50+"px")})).on("mouseout",(function(t){i.tooltipdiv.transition().duration(500).style("opacity",0)})).each((function(t){e.select(this).append("rect").attr("class","node_date_change_rect").attr("width",5).attr("height",p).attr("rx",6).attr("ry",6)})),m.attr("transform",(function(t,e){return"translate("+(9*h/i.groupCount+d-80)+","+(e+24*e+12+c)+")"})),m.exit().remove();var b=this.svg.selectAll(".node_prev_group").data(n);b.enter().append("g").attr("class","node_prev_group").on("mouseover",(function(t,o){i.tooltipdiv.transition().duration(200).style("opacity",.9);var r="";i.mouseHover().forEach((function(e,o){void 0!==e.hoverValue()&&(r=r+"<span style='font-weight:bold'>"+e.hoverValue()+": </span>"+t[e.hoverList()]+"<br/>")}));var n=e.d3Event();i.tooltipdiv.html(r).style("left",n.pageX+"px").style("top",n.pageY-100+"px")})).on("mouseout",(function(t){i.tooltipdiv.transition().duration(500).style("opacity",0)})).each((function(t){var o=e.select(this);o.append("rect").attr("class","node_prev_rect").attr("rx",6).attr("ry",6),o.append("text").attr("class","node_prev_text")})),b.classed("update",!0).classed("changed",(function(t){return 0!==t.delta})).attr("transform",(function(t,e){return"translate("+((t.prev_group-1)*h/i.groupCount+15)+","+(e+24*e+10+c)+")"})).each((function(t){var o=e.select(this).selectAll(".arrow").data(0!==t.delta?[t]:[]);o.enter().append("line").attr("class","arrow update"),o.attr("x1",(function(t){return t.delta>0?f:0})).attr("y1",7).attr("x2",(function(t){return t.delta>0?f+d-4+(Math.abs(t.delta)-1)*(h/i.groupCount):-30-(Math.abs(t.delta)-1)*(h/i.groupCount)+4})).attr("y2",7).style("stroke-dasharray","3, 3").style("stroke","rgb(100,100,100)").style("marker-end","url(#end-arrow)").style("opacity","1"),o.exit().remove()})),b.select(".node_prev_rect").attr("width",f).attr("height",p),b.select(".node_prev_text").attr("dy",10).attr("dx",f/4).text((function(t){return"number"==typeof t[a]?t[a]:t[a].substring(0,14)})),b.exit().remove();var _=this.svg.selectAll(".node_cur_group").data(n);_.enter().append("g").attr("class","node_cur_group").attr("transform",(function(t,e){return"translate("+((t.prev_group-1)*h/i.groupCount+15)+","+(e+24*e+10+c)+")"})).on("mouseover",(function(t,o){i.tooltipdiv.transition().duration(200).style("opacity",.9);var r="";i.mouseHover().forEach((function(e,o){void 0!==e.hoverValue()&&(r=r+"<span style='font-weight:bold'>"+e.hoverValue()+": </span>"+t[e.hoverList()]+"<br/>")}));var n=e.d3Event();i.tooltipdiv.html(r).style("left",n.pageX+"px").style("top",n.pageY-100+"px")})).on("mouseout",(function(t){i.tooltipdiv.transition().duration(500).style("opacity",0)})).each((function(t){var o=e.select(this);o.append("rect").attr("class","node_cur_rect").attr("fill",(function(t){return t.delta<0||7===t.cur_group?"#F78181":"#A9F5A9"})).attr("rx",6).attr("ry",6),o.append("a").append("text").attr("class","node_cur_text")})),_.classed("update",!0).classed("changed",(function(t){return 0!==t.delta})).transition().duration(800).ease("linear").attr("transform",(function(t,e){return"translate("+((t.cur_group-1)*h/i.groupCount+15)+","+(e+24*e+10+c)+")"})).each("end",(function(){e.selectAll(".arrow").style("opacity","1")})),_.select(".node_cur_group a").classed("update",!0).attr("xlink:href",(function(t){return i.url()+t.id})).attr("xlink:show","new"),_.select(".node_cur_rect").attr("width",f).attr("height",p),_.select(".node_cur_text").classed("update",!0).attr("dy",10).attr("dx",f/4).style("fill","blue").text((function(t){return"number"==typeof t[a]?t[a]:t[a].substring(0,14)})),_.exit().remove()}for(var v=function(t){if(i.columnData()[t]&&i.columnData()[t].ColumnDropdownList()){var o=w.svg.selectAll(".columnDataText_"+t).data(n);o.enter().append("g").attr("class","columnDataText_"+t+" update").each((function(t){e.select(this).append("text")})),o.attr("transform",(function(e,o){return"translate("+(i.columnData()[t].columnIndex()*h/i.groupCount+15)+","+(o+24*o+12+c)+")"})).attr("width",5).attr("height",p).attr("rx",6).attr("ry",6),o.select("text").attr("y",-6).attr("dy",28).attr("dx",0).attr("height",20).attr("width",29).text((function(e,o){return e[i.columnData()[t].ColumnDropdownList()]})),o.exit().remove()}},w=this,x=0;x<i.columnData().length;x++)v(x)},o.prototype.exit=function(e,o){t.prototype.exit.call(this,e,o)},o.prototype.getIds=function(){var t=this.columns();return t.unshift("default"),t},o}(e.SVGWidget);function Gt(t){return t.publishedProperties(!1,!0)}function Yt(t,e,o){t.widgetWalker((function(t){t.propertyWalker(e,o)}))}function Xt(t,e){e=e||["surface","Color","Font","palette"];var o={};return Yt(t,null,(function(t,r){if((t[r.id+"_modified"]()||t.publishedProperty(r.id).origDefaultValue!==t.publishedProperty(r.id).defaultValue)&&function(t,e){var o=!1;for(var r in e)if(-1!==t.indexOf(e[r])){o=!0;break}return o}(r.id,e)){var i=t._class.trim().split(" ");for(var n in i)if(i.HasOwnProperty(n)){if(void 0===o[i[n]]&&(o[i[n]]={}),void 0===o[i[n]][r.id]){o[i[n]][r.id]=t[r.id]();break}if(o[i[n]][r.id]===t[r.id]())break}}})),o}function Jt(t,e,o,r){var i={__class:t.classID()};if(0!==t._id.indexOf(t._idSeed)&&(i.__id=t._id),t.version&&(i.__version=t.version()),i.__properties={},t.propertyWalker((function(e,n){if(e[n.id+"_modified"]())switch(n.type){case"widget":return i.__properties[n.id]=Jt(e[n.id](),null,o,r&&!t.serializeState),!0;case"widgetArray":case"propertyArray":return i.__properties[n.id]=[],e[n.id]().forEach((function(e){i.__properties[n.id].push(Jt(e,null,o,r&&!t.serializeState))})),!0;default:i.__properties[n.id]=e[n.id]()}}),e),"marshaller_Graph"===t.classID()){var n=t.data().vertices;n&&(this.__vertices=n.map((function(e){return Jt(e,null,o,r&&!t.serializeState)})))}return o&&t.data&&(i.__data||(i.__data={}),i.__data.data=t.data()),r&&(t.serializeState?i.__state=t.serializeState():t.data&&(i.__state={data:t.data()})),i}function Qt(t,e,o,r){return JSON.stringify(Jt(t,e,o,r))}qt.prototype._class+=" other_Opportunity",qt.prototype.Column=Ft,qt.prototype.MouseHoverColumn=Ut,qt.prototype.ColumnDropdown=Vt,qt.prototype.publish("previousGroup","","set","label in Opportunity",(function(){return this.getIds()}),{tags:["Basic","Shared"]}),qt.prototype.publish("currentGroup","","set","label in Opportunity",(function(){return this.getIds()}),{tags:["Basic","Shared"]}),qt.prototype.publish("opportunityId","id","set","Id for label in Opportunity",(function(){return this.getIds()}),{tags:["Basic","Shared"]}),qt.prototype.publish("url",null,"string","URL in Opportunity",{},{tags:["Basic","Shared"]}),qt.prototype.publish("width",1100,"number","label in Opportunity",{},{tags:["Basic","Shared"]}),qt.prototype.publish("addColumn",null,"string","number of columns in a table",{},{tags:["Basic","Shared"],editor_input:function(t,e,o,r){o.append("button").attr("id",t.id()+"_addColumn"+r.id).classed("property-input custom-editor-input addColumn update",!0).text("AddColumn").on("click",(function(){e.groupCount=e.groupCount+1;t.setProperty(e,r.id,"Added a new column")}))}}),qt.prototype.publish("removeColumn",null,"string","number of columns in a table",(function(){return this.columns()}),{tags:["Basic","Shared"],editor_input:function(t,e,o,r){o.append("button").attr("id",t.id()+"_removeColumn"+r.id).classed("property-input custom-editor-input removeColumn update",!0).text("RemoveColumn").on("click",(function(){e.groupCount=e.groupCount-1;t.setProperty(e,r.id,"Removed a column")}))}}),qt.prototype.publish("headerLabels",[],"propertyArray","Source Columns",null,{autoExpand:Ft}),qt.prototype.publish("mouseHover",[],"propertyArray","mouse hover options",null,{autoExpand:Ut}),qt.prototype.publish("columnData",[],"propertyArray","column data",null,{autoExpand:Vt});var $t=Object.freeze({__proto__:null,applyTheme:function(t,e,o){var r=this;Yt(t,null,(function(t,o){switch(o.type){case"widget":return r.applyTheme(t[o.id](),e),!0;case"widgetArray":return t[o.id]().forEach((function(t){r.applyTheme(t,e)}),this),!0;default:t.applyTheme(e)}})),"function"==typeof o&&o.call(this)},discover:Gt,removeTheme:function(t,e){Yt(t,null,(function(t,e){t.publishedProperty(e.id).defaultValue=t.publishedProperty(e.id).origDefaultValue})),"function"==typeof e&&e.call(this)},serialize:Qt,serializeTheme:function(t,e){return JSON.stringify(Xt(t,e))},serializeThemeToObject:Xt,serializeToObject:Jt,widgetArrayWalker:function(t,e){t&&t.forEach((function(t){t.widgetWalker(e)}))},widgetPropertyWalker:Yt});function Kt(t){switch(t){case"widget":case"widgetArray":case"propertyArray":return!0}return!1}T(".other_PropertyEditor{height:100%;overflow-y:scroll;width:100%}.other_PropertyEditor .other_PropertyEditor{overflow:hidden}.other_PropertyEditor .property-table{border:solid #ddd;border-width:0 0 0 1px;width:100%}.other_PropertyEditor thead>tr>th{background-color:#333}.other_PropertyEditor .other_PropertyEditor th{background-color:#444}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor th{background-color:#555}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor th{background-color:#666}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor th{background-color:#777}.other_PropertyEditor .headerRow{background-color:#eee}.other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#ddd}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#ccc}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#bbb}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#aaa}.other_PropertyEditor .fa{font-size:14px;width:14px}.other_PropertyEditor div.property-table-collapsed{display:none}.other_PropertyEditor .headerRow>.peInput{padding-top:2px}.other_PropertyEditor .headerRow>.peInput>span{font-weight:700;padding-left:2px}.other_PropertyEditor .headerRow>.peInput>i{float:right;padding-bottom:2px;padding-top:2px}.other_PropertyEditor .headerRow>span>i:hover{background-color:#555;cursor:pointer}.other_PropertyEditor .property-table thead>tr>th{background-color:#333;color:#fff;padding-left:4px;padding-top:2px;text-align:left}.other_PropertyEditor .property-table thead>tr>th>i{float:right;padding-bottom:2px;padding-right:4px;padding-top:2px}.other_PropertyEditor .property-table thead>tr>th>i:hover{background-color:#555;cursor:pointer}.other_PropertyEditor .property-table tbody>tr:nth-child(2n){background-color:#f9f9f9}.other_PropertyEditor .property-table tbody>tr:nth-child(odd){background-color:#fff}.other_PropertyEditor .property-table tbody>tr>td{color:#333;padding:0 0 0 2px;text-align:left}.other_PropertyEditor .property-table tbody>tr.disabled>td{color:gray}.other_PropertyEditor .property-table tbody>tr.invalid>td{color:red}.other_PropertyEditor .property-input-cell>div{padding-left:8px}.other_PropertyEditor .property-label{box-sizing:border-box;height:20px;padding-right:4px}.other_PropertyEditor td.property-input-cell{height:20px;padding:1px 0;text-align:left;width:80%}.other_PropertyEditor .property-input-cell>input,.other_PropertyEditor .property-input-cell>textarea{box-sizing:border-box;width:100%}.other_PropertyEditor .property-input-cell>input{height:20px}.other_PropertyEditor .property-input-cell>textarea{height:120px}.other_PropertyEditor .property-input-cell.boolean-cell{margin:0;position:relative;width:auto}.other_PropertyEditor .property-input-cell>input[type=checkbox]{margin:0;position:absolute;top:0;width:auto}.other_PropertyEditor .html-color-cell>input{width:80%}.other_PropertyEditor .html-color-cell>input[type=color]{position:relative;top:-1px;width:20%}");var Zt=function(t){function o(){var o=t.call(this)||this;return o._childPE=e.local(),o._show_header=!0,o.watchDepth=0,o._parentPropertyEditor=null,o._tag="div",o._show_settings=!1,o}return n(o,t),o.prototype.parentPropertyEditor=function(t){return arguments.length?(this._parentPropertyEditor=t,this):this._parentPropertyEditor},o.prototype.depth=function(){for(var t=0,e=this.parentPropertyEditor();e;)++t,e=e.parentPropertyEditor();return t},o.prototype.show_header=function(t){return arguments.length?(this._show_header=t,this):this._show_header},o.prototype.show_settings=function(t){return arguments.length?(this._show_settings=t,this):this._show_settings},o.prototype.rootWidgets=function(){return this._selectedItems&&this._selectedItems.length?this._selectedItems:this.show_settings()?[this]:this.widget()?[this.widget()]:[]},o.prototype.update=function(o,r){t.prototype.update.call(this,o,r);var i=this,n=this.rootWidgets().filter((function(t){return!(t._owningWidget&&t._owningWidget.excludeObjs instanceof Array&&-1!==t._owningWidget.excludeObjs.indexOf(t.classID()))})),a=r.selectAll("table.property-table.table-".concat(this.depth())).data(n,(function(t){return"function"!=typeof t.id?"meta-".concat(t.id):t.id()}));a.enter().append("table").attr("class","property-table table-".concat(this.depth())).each((function(){var t=e.select(this);i._show_header&&null===i.parentPropertyEditor()&&t.append("thead").append("tr").append("th").attr("colspan","2").each((function(){i.enterHeader(e.select(this))})),t.append("tbody")})).merge(a).each((function(t){var o=e.select(this);i._show_header&&null===i.parentPropertyEditor()&&i.updateHeader(o.select("thead > tr > th")),i.renderInputs(o.select("tbody"),t)})),a.exit().each((function(){i.renderInputs(r.select("tbody"),null)})).remove()},o.prototype.exit=function(e,o){t.prototype.exit.call(this,e,o),this.watchWidget(null)},o.prototype.watchWidget=function(t){if(this._watch&&(window.__hpcc_debug&&(--this.watchDepth,console.info("watchDepth: "+this.watchDepth)),this._watch.remove(),delete this._watch),t){var e=this;this._watch=t.monitor((function(t,o,r){r!==o&&(e.parentPropertyEditor()||e).lazyRender()})),window.__hpcc_debug&&(++this.watchDepth,console.info("watchDepth: "+this.watchDepth))}},o.prototype.enterHeader=function(t){var e=this;t.append("span"),t.append("i").attr("class","expandIcon fa").on("click",(function(){switch(e.peInputIcon()){case"fa-caret-up":case"fa-caret-right":e.element().selectAll(".table-".concat(e.depth()," > tbody > tr > .headerRow > .peInput > .property-table-collapsed")).classed("property-table-collapsed",!1),e.element().selectAll(".table-".concat(e.depth()," > tbody > tr > .headerRow > .peInput > i")).classed("fa-minus-square-o",!0).classed("fa-plus-square-o",!1);break;case"fa-caret-down":e.element().selectAll(".table-".concat(e.depth()," > tbody > tr > .headerRow > .peInput > div")).classed("property-table-collapsed",!0),e.element().selectAll(".table-".concat(e.depth()," > tbody > tr > .headerRow > .peInput > i")).classed("fa-minus-square-o",!1).classed("fa-plus-square-o",!0)}e.refreshExpandIcon()}));var o=t.append("i").attr("class","sortIcon fa").on("click",(function(){e.refreshSortIcon(o,!0)}));t.append("i").attr("class","hideParamsIcon fa").on("click",(function(){e.hideNonWidgets(!e.hideNonWidgets()).render()}))},o.prototype.updateHeader=function(t){var e=this.widget(),o="";e&&(e.label&&(o+=e.label()),e.classID&&(o&&(o+=" - "),o+=e.classID())),t.select("span").text(o),this.refreshExpandIcon(),this.refreshSortIcon(t.select(".sortIcon")),this.refreshHideParamsIcon(t.select(".hideParamsIcon"))},o.prototype.peInputCount=function(){return this.element().selectAll(".table-".concat(this.depth()," > tbody > tr > .headerRow > .peInput > div")).size()},o.prototype.peInputCollapsedCount=function(){return this.element().selectAll(".table-".concat(this.depth()," > tbody > tr > .headerRow > .peInput > div.property-table-collapsed")).size()},o.prototype.peInputIcon=function(){var t=this.peInputCollapsedCount();return 0===t?"fa-caret-down":t===this.peInputCount()?"fa-caret-up":"fa-caret-right"},o.prototype.refreshExpandIcon=function(){var t=this.peInputIcon();this.element().select(".table-".concat(this.depth()," > thead > tr > th > .expandIcon")).classed("fa-caret-up",!1).classed("fa-caret-right",!1).classed("fa-caret-down",!1).classed(t,!0)},o.prototype.refreshSortIcon=function(t,e){void 0===e&&(e=!1);var o=this.sorting(),r=this.sorting_options(),i=this.__meta_sorting.ext.icons;e?(t.classed(i[r.indexOf(o)],!1),this.sorting(r[(r.indexOf(o)+1)%r.length]).render()):t.classed(i[r.indexOf(o)%r.length],!0).attr("title",o)},o.prototype.refreshHideParamsIcon=function(t){t.classed("fa-eye",!this.hideNonWidgets()).classed("fa-eye-slash",this.hideNonWidgets())},o.prototype.gatherDataTree=function(t){if(!t)return null;var e={label:t.id()+" ("+t.classID()+")",children:[]};return Gt(t).forEach((function(o){var r={label:o.id,children:[]};switch(o.type){case"widget":r.children.push(this.gatherDataTree(t[o.id]()));break;case"widgetArray":case"propertyArray":var i=t[o.id]();i&&i.forEach((function(t){r.children.push(this.gatherDataTree(t))}),this)}e.children.push(r)}),this),e},o.prototype.getDataTree=function(){return this.gatherDataTree(this.widget())},o.prototype._rowSorting=function(t){if("type"===this.sorting()){var e=["boolean","number","string","html-color","array","object","widget","widgetArray","propertyArray"];t.sort((function(t,o){return t.type===o.type?t.id<o.id?-1:1:e.indexOf(t.type)<e.indexOf(o.type)?-1:1}))}else"A-Z"===this.sorting()?t.sort((function(t,e){return t.id<e.id?-1:1})):"Z-A"===this.sorting()&&t.sort((function(t,e){return t.id>e.id?-1:1}))},o.prototype.filterInputs=function(t){var e=Gt(t);if((this.filterTags()||this.excludeTags().length>0||this.excludeParams.length>0)&&t instanceof o==!1){var r=this;return e.filter((function(e,o){if(t[e.id+"_hidden"]&&t[e.id+"_hidden"]())return!1;for(var i=0,n=r.excludeParams();i<n.length;i++){var a=n[i].split("."),s=void 0,l=void 0;if(a.length>2?(s=a[0],l=a[2]):(s=a[0],l=a[1]),-1!==t.class().indexOf(s))return e.id!==l}return!(r.excludeTags().length>0&&e.ext&&e.ext.tags&&e.ext.tags.some((function(t){return r.excludeTags().indexOf(t)>-1})))&&!(!(r.filterTags()&&e.ext&&e.ext.tags&&-1!==e.ext.tags.indexOf(r.filterTags()))&&r.filterTags())}))}return e},o.prototype.renderInputs=function(t,o){var r=this,i=[],n=!this.show_settings()&&this.showFields();o&&(i=this.filterInputs(o).filter((function(t){return"fields"!==t.id||n})),!this.show_settings()&&this.showData()&&o.data&&i.push({id:"data",type:"array"}),this.hideNonWidgets()&&(i=i.filter((function(t){return Kt(t.type)}))),this._rowSorting(i));var a=t.selectAll("tr.prop"+this.id()).data(i,(function(t){return t.id}));a.enter().append("tr").attr("class","property-wrapper prop"+this.id()).each((function(t){var i=e.select(this);if(Kt(t.type))i.classed("property-widget-wrapper",!0),i.append("td").attr("colspan","2");else{i.classed("property-input-wrapper",!0),i.append("td").classed("property-label",!0).text(t.id);var n=i.append("td").classed("property-input-cell",!0);r.enterInputs(o,n,t)}})).merge(a).each((function(t){var i=e.select(this);i.classed("disabled",o[t.id+"_disabled"]&&o[t.id+"_disabled"]()),i.classed("invalid",o[t.id+"_valid"]&&!o[t.id+"_valid"]()),i.attr("title",t.description),Kt(t.type)?r.updateWidgetRow(o,i.select("td"),t):r.updateInputs(o,t)})),a.exit().each((function(t){var i=e.select(this);Kt(t.type)&&r.updateWidgetRow(o,i.select("td"),null)})).remove(),a.order()},o.prototype.updateWidgetRow=function(t,r,i){var n=[];t&&i&&(n=t[i.id]()||[]);var a=n instanceof Array?n:[n];if(i&&i.ext&&i.ext.autoExpand){var s=!0,l=a.filter((function(e,o){return s=e.valid(),e._owner=t,s||o===a.length-1}),this),c=t[i.id+"_disabled"]&&t[i.id+"_disabled"](),p=!!(a.length-l.length);if(s&&!c){p=!0;var u=(new i.ext.autoExpand).owner(t);l.push(u)}p&&(t[i.id](l),a=l)}var h=this;r.classed("headerRow",!0);var d=r.selectAll("div.peInput-".concat(this.depth())).data(a,(function(t){return t.id()}));d.enter().append("div").attr("class","peInput peInput-".concat(this.depth())).each((function(t){var r=e.select(this);r.append("span"),r.append("i").attr("class","fa").on("click",(function(t){var o=r.select("div");o.classed("property-table-collapsed",!o.classed("property-table-collapsed")),e.select(this).classed("fa-minus-square-o",!o.classed("property-table-collapsed")).classed("fa-plus-square-o",o.classed("property-table-collapsed")),h.refreshExpandIcon()}));var n=r.append("div");h._childPE.set(this,(new o).label(i.id).target(n.node()))})).merge(d).each((function(t){var o=e.select(this).select("div");e.select(this).select("span").text("".concat(i.id)),e.select(this).select("i").classed("fa-minus-square-o",!o.classed("property-table-collapsed")).classed("fa-plus-square-o",o.classed("property-table-collapsed")),h._childPE.get(this).parentPropertyEditor(h).showFields(h.showFields()).showData(h.showData()).sorting(h.sorting()).filterTags(h.filterTags()).excludeTags(h.excludeTags()).excludeParams(h.excludeParams()).hideNonWidgets(h.hideNonWidgets()&&t._class.indexOf("layout_")>=0).widget(t).render()})),d.exit().each((function(t){h._childPE.get(this).widget(null).render().target(null),h._childPE.remove(this)})).remove()},o.prototype.setProperty=function(t,o,r){for(var i,n,a,s=this;s&&t;){if(s===this&&(a=t[o](),t[o](r)),s){n=s;var l=s.widget();l instanceof e.Widget&&(i=l)}s=s.parentPropertyEditor()}i&&i.render(),n&&n.broadcast(o,r,a,t)},o.prototype.enterInputs=function(t,o,r){o.classed(r.type+"-cell",!0);var i=this;switch("function"==typeof r.ext.editor_input&&r.ext.editor_input(this,t,o,r),r.type){case"boolean":o.append("input").attr("id",this.id()+"_"+r.id).classed("property-input",!0).attr("type","checkbox").on("change",(function(){i.setProperty(t,r.id,this.checked)}));break;case"set":o.append("select").attr("id",this.id()+"_"+r.id).classed("property-input",!0).on("change",(function(){i.setProperty(t,r.id,this.value)}));break;case"array":case"object":o.append("textarea").attr("id",this.id()+"_"+r.id).classed("property-input",!0).attr("autocomplete","off").attr("autocorrect","off").attr("autocapitalize","off").attr("spellcheck","false").on("change",(function(){var e;try{e=JSON.parse(this.value)}catch(t){e=this.value}i.setProperty(t,r.id,e)}));break;default:r.ext&&r.ext.range?(o.append("span").classed("property-input-span",!0).attr("id",this.id()+"_"+r.id+"_currentVal").text(r.defaultValue),o.append("input").attr("type","range").attr("step",r.ext.range.step).attr("min",r.ext.range.min).attr("max",r.ext.range.max).attr("id",this.id()+"_"+r.id).classed("property-input",!0).on("input",(function(){i.setProperty(t,r.id,this.value),e.select("#"+this.id+"_currentVal").text("Current Value: "+this.value)})).on("change",(function(){i.setProperty(t,r.id,this.value),e.select("#"+this.id+"_currentVal").text("Current Value: "+this.value)}))):(o.append(r.ext&&r.ext.multiline?"textarea":"input").attr("id",this.id()+"_"+r.id).classed("property-input",!0).attr("autocomplete","off").attr("autocorrect","off").attr("autocapitalize","off").attr("spellcheck","false").on("change",(function(){i.setProperty(t,r.id,this.value)})),"html-color"!==r.type||e.Platform.isIE||o.append("input").attr("id",this.id()+"_"+r.id+"_2").classed("property-input",!0).attr("type","color").on("change",(function(){i.setProperty(t,r.id,this.value)})))}},o.prototype.updateInputs=function(t,o){var r=e.selectAll("#"+this.id()+"_"+o.id+", #"+this.id()+"_"+o.id+"_2"),i=t?t[o.id]():"";switch(r.property("disabled",t[o.id+"_disabled"]&&t[o.id+"_disabled"]()),r.property("invalid",t[o.id+"_valid"]&&!t[o.id+"_valid"]()),o.type){case"boolean":r.property("checked",i);break;case"set":var n=r.selectAll("option").data(t[o.id+"_options"]());n.enter().append("option").merge(n).attr("value",(function(t){return t&&void 0!==t.value?t.value:t})).text((function(t){return t&&void 0!==t.text?t.text:t})),n.exit().remove(),r.property("value",i);break;case"array":case"object":r.property("value",JSON.stringify(i,(function(t,o){return o instanceof e.Widget?Qt(o):o})," "));break;default:o.ext&&o.ext.range&&e.select("#"+this.id()+"_"+o.id+"_currentVal").text("Current Value: "+i),r.property("value",i&&i.length&&i.length>1e5?"...too big to display...":i)}},o}(e.HTMLWidget);Zt.prototype._class+=" other_PropertyEditor",Zt.prototype.publish("showFields",!1,"boolean","If true, widget.fields() will display as if it was a publish parameter.",null,{tags:["Basic"]}),Zt.prototype.publish("showData",!1,"boolean","If true, widget.data() will display as if it was a publish parameter.",null,{tags:["Basic"]}),Zt.prototype.publish("sorting","none","set","Specify the sorting type",["none","A-Z","Z-A","type"],{tags:["Basic"],icons:["fa-sort","fa-sort-alpha-asc","fa-sort-alpha-desc","fa-sort-amount-asc"]}),Zt.prototype.publish("hideNonWidgets",!1,"boolean","Hides non-widget params (at this tier only)",null,{tags:["Basic"]}),Zt.prototype.publish("label","","string","Label to display in header of property editor table",null,{tags:["Basic"]}),Zt.prototype.publish("filterTags","","set","Only show Publish Params of this type",["Basic","Intermediate","Advance",""],{}),Zt.prototype.publish("excludeTags",["Private"],"array","Exclude this array of tags",null,{}),Zt.prototype.publish("excludeParams",[],"array","Exclude this array of params (widget.param)",null,{}),Zt.prototype.publish("widget",null,"widget","Widget",null,{tags:["Basic"],render:!1});var te=Zt.prototype.widget;Zt.prototype.widget=function(t){if(arguments.length&&te.call(this)===t)return this;var e=te.apply(this,arguments);if(arguments.length&&(this.watchWidget(t),t instanceof o.Grid)){var r=this;t.postSelectionChange=function(){r._selectedItems=t._selectionBag.get().map((function(t){return t.widget})),r.lazyRender()}}return e};T(".other_RadioCheckbox label,.other_RadioCheckbox span{vertical-align:top}");var ee=function(t){function o(){return t.call(this)||this}return n(o,t),o.prototype.rcData=function(){if(0===this.data().length)return[];var t=this._db.rollupView([this.textColumn(),this.valueColumn()]),e=[];if(e=e.concat(t.entries().map((function(t){return{text:t.key,value:t.values.length?t.values[0].key:"",origRow:t.values.length&&t.values[0].values.length?t.values[0].values[0]:[]}}),this)),this.sort_exists()){var o="descending"===this.sort();e.sort((function(t,e){return t.text<e.text?o?1:-1:t.text>e.text?o?-1:1:0}))}return e},o.prototype.enter=function(e,o){t.prototype.enter.call(this,e,o),this._span=o.append("span"),this._label=this._span.append("label").attr("for",this.id()+"_radioCheckbox"),this._Checkbox=this._span.append("div").attr("id",this.id()+"_radioCheckbox")},o.prototype.update=function(o,r){t.prototype.update.call(this,o,r);var i=this;this._label.text(this.label());var n=this._Checkbox.selectAll(".dataRow").data(this.rcData());n.enter().append("div").attr("class","dataRow").each((function(t,o){var r=e.select(this),n=i.id()+"_checkbox_"+o;r.append("input").attr("id",n).attr("name",i.id()+"_radioCheckbox").on("change",(function(t){i.handleClick()})),r.append("label").attr("for",n)})),n.each((function(t,o){var r=e.select(this);r.select("input").attr("type",i.multiple()?"checkbox":"radio").attr("value",t.value),r.select("label").text(t.text)})),n.exit().remove(),n.order()},o.prototype.exit=function(e,o){this._span.remove(),t.prototype.exit.call(this,e,o)},o.prototype.handleClick=function(){var t=[];this._Checkbox.selectAll(".dataRow > input").each((function(o,r){e.select(this).property("checked")&&o&&o.origRow&&t.push(o.origRow)})),t.length?this.click(this.rowToObj(t[0]),this.valueColumn(),!0):this.click([],this.valueColumn(),!1)},o.prototype.click=function(t,e,o){},o}(e.HTMLWidget);ee.prototype._class+=" other_RadioCheckbox",ee.prototype.publish("label",null,"string","Label for RadioCheckbox"),ee.prototype.publish("valueColumn",null,"set","RadioCheckbox display value",(function(){return this.columns()}),{optional:!0}),ee.prototype.publish("textColumn",null,"set","RadioCheckbox value(s)",(function(){return this.columns()}),{optional:!0}),ee.prototype.publish("sort",null,"set","Sort contents",["","ascending","descending"],{optional:!0}),ee.prototype.publish("multiple",!1,"boolean","Multiple selection");T(".other_Select label,.other_Select span{vertical-align:top}");var oe=function(t){function o(){return t.call(this)||this}return n(o,t),o.prototype.selectData=function(){if(0===this.data().length)return[];var t=this._db.rollupView([this.textColumn(),this.valueColumn()]),e=[];if(e=e.concat(t.entries().map((function(t){return{text:t.key,value:t.values.length?t.values[0].key:"",origRow:t.values.length&&t.values[0].value.length?t.values[0].value[0]:[]}}),this)),this.sort_exists()){var o="descending"===this.sort();e.sort((function(t,e){return t.text<e.text?o?1:-1:t.text>e.text?o?-1:1:0}))}return this.optional()&&e.unshift({value:"",text:""}),e},o.prototype.enter=function(o,r){t.prototype.enter.call(this,o,r),this._span=r.append("span"),this._prompt=this._span.append("label").attr("for",this.id()+"_select");var i=this;this._select=this._span.append("select").attr("id",this.id()+"_select").on("change",(function(t){for(var o=[],r=i._select.node().options,n=0;n<r.length;++n){var a=r[n];a.selected&&o.push(e.select(a).datum().origRow)}o.length?i.click(i.rowToObj(o[0]),i.valueColumn(),!0):i.click([],i.valueColumn(),!1)}))},o.prototype.update=function(e,o){t.prototype.update.call(this,e,o),this._prompt.text(this.label()),this._select.attr("multiple",this.multiple()?this.multiple():null).attr("size",this.multiple()&&this.selectSize()?this.selectSize():null);var r=this._select.selectAll(".dataRow").data(this.selectData()),i=r.enter().append("option").attr("class","dataRow").merge(r).attr("value",(function(t){return t.value})).text((function(t){return t.text}));r.exit().remove(),i.order()},o.prototype.exit=function(e,o){this._span.remove(),t.prototype.exit.call(this,e,o)},o.prototype.click=function(t,e,o){},o}(e.HTMLWidget);oe.prototype._class+=" other_Select",oe.prototype.publish("label",null,"string","Label for select"),oe.prototype.publish("valueColumn",null,"set","Select display value",(function(){return this.columns()}),{optional:!0}),oe.prototype.publish("textColumn",null,"set","Select value(s)",(function(){return this.columns()}),{optional:!0}),oe.prototype.publish("optional",!0,"boolean","Optional Select"),oe.prototype.publish("sort",null,"set","Sort contents",["","ascending","descending"],{optional:!0}),oe.prototype.publish("multiple",!1,"boolean","Multiple selection"),oe.prototype.publish("selectSize",5,"number","Size of multiselect box",null,{disable:function(t){return!t.multiple()}});T('.other_ThemeEditor *{box-sizing:border-box}.other_ThemeEditor table{margin-bottom:4px;width:100%}.other_ThemeEditor table:last-child{margin-bottom:0}.other_ThemeEditor thead>tr>th{text-align:left}.other_ThemeEditor thead>tr>th>b{font-weight:700}.other_ThemeEditor thead>tr>th{background-color:#fafafa}.other_ThemeEditor tbody>tr>td,.other_ThemeEditor tbody>tr>th{background-color:#fafafa;font-weight:400}.other_ThemeEditor thead>tr:first-child>th{background-color:#e5e5e5}.other_ThemeEditor thead>tr.mm-content>th{font-size:12px;padding:0 4px}.other_ThemeEditor td,.other_ThemeEditor th{padding:4px;white-space:nowrap}.other_ThemeEditor thead.mm-label>tr:first-child>th{padding-left:29px;position:relative}.other_ThemeEditor thead.mm-label>tr:first-child>th:before{color:#404040;content:"[+]";font-family:monospace;height:15px;left:3px;position:absolute;top:3px;width:15px}.other_ThemeEditor thead.mm-label.max>tr:first-child>th:before{content:"[-]"}.other_ThemeEditor tr.sharedPropertyRow>td.label:after{color:#404040;content:"[+]";font-family:monospace;height:15px;position:absolute;right:10px;top:3px;width:15px}.other_ThemeEditor tr.sharedPropertyRow>td.label.expanded:after{content:"[-]"}.other_ThemeEditor tr.sharedPropertyRow>td.label{padding-right:30px;position:relative;text-decoration:underline}.other_ThemeEditor tr.sharedPropertyRow>td.label:hover{cursor:pointer;text-decoration:none}.other_ThemeEditor tr.propertyRow>td,.other_ThemeEditor tr.propertyRow>th{background-color:#f4f4f4}.other_ThemeEditor tr.propertyRow>td.label{padding-left:24px}.other_ThemeEditor table,.other_ThemeEditor td,.other_ThemeEditor th{border:1px solid #e5e5e5}.other_ThemeEditor .mm-label.min .mm-content,.other_ThemeEditor .mm-label.min+.mm-content{display:none}.mm-label:hover,.other_ThemeEditor .sharedPropertyRow>.te-label{cursor:pointer}.other_ThemeEditor .sharedPropertyRow>.te-label:hover{text-decoration:none}.other_ThemeEditor .propertyRow.shown>.te-label{padding-left:15px}.other_ThemeEditor .propertyRow>td{background-color:#f4f4f4}.other_ThemeEditor input,.other_ThemeEditor select,.other_ThemeEditor textarea{float:left;height:30px}.other_ThemeEditor input,.other_ThemeEditor select{width:150px}.other_ThemeEditor .te-checkbox{height:20px;margin:0;width:20px}.other_ThemeEditor .te-html-color-input{height:30px;width:120px}.other_ThemeEditor .te-html-color-button{width:30px}.other_ThemeEditor .te-html-color-button,.other_ThemeEditor button{background-color:#ccc;border:1px solid #a9a9a9;border-left:0;float:left;height:30px;padding:4px}.other_ThemeEditor .te-html-color-button,.other_ThemeEditor .te-section-table thead,.other_ThemeEditor button{cursor:pointer}.other_ThemeEditor .te-html-color-button:hover,.other_ThemeEditor button:hover{background-color:#bbb}.other_ThemeEditor .te-html-color-button:active,.other_ThemeEditor button:active{background-color:#aaa}.other_ThemeEditor .te-label{vertical-align:top;white-space:nowrap;width:1%}.other_ThemeEditor .te-section-table>tbody>tr:hover{background-color:#f8ff98}.te-section-table thead th{font-weight:700}.te-section-table.expanded>thead>tr>th:after{content:"ï…‡";float:right;font:normal normal normal 14px/1 FontAwesome;margin-right:6px;margin-top:4px}.te-section-table.collapsed>thead>tr>th:after{content:"";float:right;font:normal normal normal 14px/1 FontAwesome;margin-right:6px;margin-top:4px}#te-tableModeOptions thead>tr>th,#te-themeEditorOptions thead>tr>th{background-color:#6e6e73;border:1px solid #6e6e73;color:#fafafa}');var re=function(){var t="@hpcc-js/other";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(t){return!1}}()?localStorage:{getItem:function(t){}},ie=function(t){return"function"==typeof window.g_defaultThemes&&window.g_defaultThemes(t),JSON.parse(re.getItem("themeEditorThemes")||"{}")},ne=function(t){return"function"==typeof window.g_defaultSerials&&window.g_defaultSerials(t),JSON.parse(re.getItem("themeEditorSerials")||"{}")},ae=function(t){var e=ie(),o=[];for(var r in e)o.push(r);return void 0!==t&&void 0!==o[t]&&(o=o[t]),o},se=function(t){var e=ne(),o=[];for(var r in e)o.push(r);return void 0!==t&&void 0!==o[t]&&(o=o[t]),o},le=function(t){return t.split(/(?=[0-9A-Z])/).map((function(t){return t.length>1?t+" ":t})).join("").replace(/(?:^|\s)\S/g,(function(t){return t.toUpperCase()}))},ce=function(t,e,o,r){var i,n="",a="te-input-"+t.id+"-"+r;void 0!==t.ext&&void 0!==t.ext.inputType&&(i=t.ext.inputType),void 0!==t.inputID&&(a=t.inputID);var s="data-paramid='"+t.id+"' data-wids='"+o.map((function(t){return"object"==typeof t.widget?t.widget._id:t})).join(",")+"'";switch(t.type){case"boolean":n="<input id='"+a+"' "+s+" type='checkbox' class='te-checkbox te-input'"+(e?" checked":"")+">";break;case"number":void 0!==i?"textarea"===i?n="<textarea id='"+a+"' class='te-textarea te-input' "+s+">"+e+"</textarea>":"range"===i&&(n="<input id='"+a+"' class='te-input' type='range' "+s+" value='"+e+"' min='"+t.ext.min+"' max='"+t.ext.max+"' step='"+t.ext.step+"'>"):n="<input id='"+a+"' type='text' class='te-text te-input' "+s+" value='"+e+"'>";break;case"string":void 0!==i?"textarea"===i&&(n="<textarea id='"+a+"' class='te-textarea te-input' "+s+">"+e+"</textarea>"):n="<input id='"+a+"' type='text' class='te-text te-input' value='"+e+"' "+s+">";break;case"html-color":var l=""===e?"":" value='"+e+"'";n="<input id='"+a+"' type='text' class='te-html-color-input te-input' "+s+" "+l+">",n+="<input type='color' class='te-html-color-button te-input' "+s+" "+l+">";break;case"set":n="<select id='"+a+"' class='te-select te-input'"+s+">"+function(t,e){var o="";return t.set.forEach((function(t){o+="<option value='"+t+"'"+(t===e?" selected":"")+">"+t+"</option>"})),o}(t,e)+"</select>";break;case"array":n="<textarea id='"+a+"' class='te-textarea te-input' data-type='array' "+s+">"+e+"</textarea>"}return void 0!==t.ext.saveButton&&(n+="<button id='"+t.ext.saveButtonID+"'>"+t.ext.saveButton+"</button>"),n},pe=function(t){function e(){var e=t.call(this)||this;return e._tag="div",e._current_grouping=void 0,e._showing_columns=void 0,e._showing_data=void 0,e.columns(["Key","Value"]),e._contentEditors=[],e._showSettings=!0,e._defaultThemes=[],e._widgetObjsById={},e}return n(e,t),e.prototype.showSettings=function(t){return arguments.length?(this._showSettings=t,this):this._showSettings},e.prototype.onChange=function(t,e){},e.prototype.enter=function(e,o){t.prototype.enter.call(this,e,o),this._placeholderElement.style("overflow","auto")},e.prototype.widgetProperty=function(t,e,o){return void 0===o?t[e]():t[e](o)},e.prototype.load=function(t){},e.prototype.save=function(t){},e.prototype.needsPropTableRedraw=function(){return null===document.getElementById("te-themeEditorOptions")},e.prototype.update=function(e,o){var r,i;if(t.prototype.update.call(this,e,o),i=!1,void 0===(r=this)._current_grouping?r._current_grouping=r._group_params_by:r._current_grouping!==r._group_params_by&&(i=!0),void 0===r._showing_columns?r._showing_columns=r.showColumns():r._showing_columns!==r.showColumns()&&(i=!0),void 0===r._showing_data?r._showing_data=r.showData():r._showing_data!==r.showData()&&(i=!0),i&&o.selectAll("#"+this._id+" > table").remove(),this._current_grouping=this.paramGrouping(),this._widgetObjsById[this._id]=this,this._sharedProperties=this.findSharedProperties(this.data()),this.needsPropTableRedraw()&&this.showSettings()){var n=Gt(this);for(var a in n)if(-1!==n[a].ext.tags.indexOf(this.editorComplexity())){var s=this[n[a].id]();"loadedTheme"!==n[a].id&&"loadedSerial"!==n[a].id||(n[a].inputID="te-load-theme"),n[a].input=ce(n[a],s,[this._id],this._id)}else delete n[a];e.innerHTML=this.propertiesTableHtml(n);var l=document.createEvent("Events");l.initEvent("TE Properties Ready",!0,!0),document.dispatchEvent(l)}this.buildTableObjects(e,this._sharedProperties),this.initFunctionality(e)},e.prototype.exit=function(e,o){t.prototype.exit.call(this,e,o)},e.prototype.click=function(t){},e.prototype.propertiesTableHtml=function(t){var e={id:"te-themeEditorOptions",label:"Editor Options",rowArr:[]},o={id:"te-tableModeOptions",label:this.themeMode()?"Save/Load Theme":"Save/Load Serial",rowArr:[]};for(var r in t)this.themeMode()?-1===t[r].ext.tags.indexOf("Theme")&&-1===t[r].ext.tags.indexOf("Serial")?e.rowArr.push({th:le(t[r].id),td:t[r].input,trClass:"propertyRow"}):-1!==t[r].ext.tags.indexOf("Theme")&&o.rowArr.push({th:le(t[r].id),td:t[r].input,trClass:"propertyRow"}):-1===t[r].ext.tags.indexOf("Serial")&&-1===t[r].ext.tags.indexOf("Theme")?e.rowArr.push({th:le(t[r].id),td:t[r].input,trClass:"propertyRow"}):-1!==t[r].ext.tags.indexOf("Serial")&&o.rowArr.push({th:le(t[r].id),td:t[r].input,trClass:"propertyRow"});var i="";return e.rowArr.length>0&&(i+=this.tableObjHtml(e)),o.rowArr.length>0&&(i+=this.tableObjHtml(o)),i},e.prototype.buildTableObjects=function(t,e){var o={};for(var r in o=this.themeMode()?{chartColorSection:{id:"te-colorOptions",label:"Chart Colors",rowObjArr:[]},surfaceSection:{id:"te-containerOptions",label:"Container Styles/Colors",rowObjArr:[]},fontSection:{id:"te-fontOptions",label:"Font Styles/Colors",rowObjArr:[]}}:{nonSurfaceSection:{id:"te-chartOptions",label:"Chart Properties",rowObjArr:[]}},e)this.themeMode()?-1===r.toUpperCase().indexOf("FONT")||-1!==e[r].arr[0].widget._class.indexOf("layout_Surface")&&-1!==r.toUpperCase().indexOf("COLOR")?"paletteID"===r?o.chartColorSection.rowObjArr.push(e[r]):-1!==e[r].arr[0].widget._class.indexOf("layout_Surface")&&o.surfaceSection.rowObjArr.push(e[r]):o.fontSection.rowObjArr.push(e[r]):-1===e[r].arr[0].widget._class.indexOf("layout_Surface")&&o.nonSurfaceSection.rowObjArr.push(e[r]);var i="";for(var n in o)i+=this.sharedPropertyTableHtml(o[n]);t.innerHTML+=i},e.prototype.initFunctionality=function(t){var e=this;!function(t){var e=t.getElementsByClassName("te-section-table");for(var o in e){if("function"==typeof e[o].getElementsByTagName)e[o].getElementsByTagName("thead")[0].onclick=function(t){var e=t.toElement;"TH"===e.tagName&&(e=e.parentElement.parentElement);var o=e.parentElement,r="";-1===o.className.split(" ").indexOf("expanded")?(o.className="te-section-table expanded",r="shown"):(o.className="te-section-table collapsed",r="hidden"),o.getElementsByTagName("tbody")[0].className=r}}var r=t.getElementsByClassName("sharedPropertyRow");for(var i in r){if("function"==typeof r[i].getElementsByClassName)r[i].getElementsByClassName("te-label")[0].onclick=function(t){var e=t.toElement.parentElement,o="";-1===e.className.split(" ").indexOf("expanded")?(e.className="sharedPropertyRow expanded",o="shown"):(e.className="sharedPropertyRow collapsed",o="hidden");for(var r=e.nextSibling;null!==r;)-1===r.className.split(" ").indexOf("sharedPropertyRow")?(r.className="propertyRow "+o,r=r.nextSibling):r=null}}}(t),function(t){var o=t.getElementsByClassName("te-input");for(var r in o){if(isNaN(parseInt(r)))break;var i=o[r],n=i.getAttribute("id");"te-load-theme"===n?i.onchange=function(t){var o=t.srcElement;e.load(o.value)}:null!==n&&-1!==n.indexOf("te-input-themeMode")?i.onchange=function(t){var o=t.srcElement;e.themeMode(o.checked);var r=document.getElementById("te-load-theme"),i=null!==r?r.value:"Default";e.load(i)}:"INPUT"!==i.tagName&&"SELECT"!==i.tagName&&"TEXTAREA"!==i.tagName||(i.onchange=function(t){var o=t.srcElement,r=o.getAttribute("id");-1!==o.className.split(" ").indexOf("te-html-color-button")&&(r=o.previousSibling.getAttribute("id"),o.previousSibling.value=o.value);var i=o.getAttribute("type"),n=r.split("-"),a=n.slice(0,n.length-1).join("-")+"-",s=o.getAttribute("data-wids"),l=o.getAttribute("data-paramid");s.split(",").forEach((function(t){var r=a+t,n=document.getElementById(r);if("checkbox"===i)n.checked=o.checked,e._widgetObjsById[t][l](o.checked);else if("array"===o.getAttribute("data-type")){n.value=o.value;try{e._widgetObjsById[t][l](JSON.parse(o.value))}catch(t){}}else n.value=o.value,e._widgetObjsById[t][l](o.value),-1!==n.className.split(" ").indexOf("te-html-color-input")?n.nextSibling.value=o.value:-1!==n.className.split(" ").indexOf("te-html-color-button")&&(n.previousSibling.value=o.value)})),e.data().forEach((function(t){t.render()}))})}}(t),function(t){if(e.showSettings()){document.getElementById("te-save-button").onclick=function(t){var e=t.target,o=e.previousSibling.value;if(o.length>1){var r=document.getElementById("te-load-theme"),i=r.getElementsByTagName("option"),n=!1;for(var a in i){i[a].value===o&&(n=!0)}n||(r.innerHTML+="<option value='"+o+"'>"+o+"</option>"),e.previousSibling.value="",r.value=o}else alert("Save Name cannot be empty.")}}}()},e.prototype.sharedPropertyTableHtml=function(t){var e={id:t.id,label:t.label,rowArr:[]};return t.rowObjArr.forEach((function(t){t.arr.forEach((function(a,s){0===s&&e.rowArr.push({th:r(t),td:n(t),trClass:"sharedPropertyRow collapsed"}),e.rowArr.push({th:o(a),td:i(t,s),trClass:"propertyRow hidden"})}))})),this.tableObjHtml(e);function o(t){return t.widget.classID().split("_").join("/")+" <i>["+t.widget._id+"]</i>"}function r(t){return le(t.id)}function i(t,e){var o,r,i,n=(r=e,null!==(i=(o=t).arr[r].widget[o.id]())?i:"");return ce(t,n,[t.arr[e]],t.arr[e].widget._id)}function n(t){var e=function(t){var e=t.arr[0].widget[t.id]();if(t.arr.forEach((function(t,o){if(e!==t.widget[t.id]())return""})),null!==e)return"array"===t.type?JSON.stringify(e):e;return""}(t);return ce(t,e,t.arr,"shared")}},e.prototype.tableObjHtml=function(t){var e="<table id='"+t.id+"' class='te-section-table expanded'>";return e+="<thead><tr><th colspan='2'>"+t.label+"</th></tr></thead>",e+="<tbody>",t.rowArr.forEach((function(t){e+=this.tableRowObjHtml(t)}),this),(e+="</tbody>")+"</table>"},e.prototype.tableRowObjHtml=function(t){var e=void 0!==t.trClass?"<tr class='"+t.trClass+"'>":"<tr>";return e+="<th class='te-label'>"+t.th+"</th>",(e+="<td>"+t.td+"</td>")+"</tr>"},e.prototype.setWidgetObjsById=function(t){var e=this,o=t.widget[t.id]();"widgetArray"===t.type?o.forEach((function(t){e._widgetObjsById[t._id]=t})):"widget"===t.type&&null!==o&&(this._widgetObjsById[o._id]=o)},e.prototype.checkTagFilter=function(t){var e=["Basic"],o=!1;return t.forEach((function(t){-1!==e.indexOf(t)&&(o=!0)})),o},e.prototype.findSharedProperties=function(t){var e,o=this;if(void 0!==t&&t.length>0){var r=[];e={};var i={},n={};t.forEach((function(t){var e=a(t);r=r.concat(e)})),r.forEach((function(t){if(-1!==["widget","widgetArray"].indexOf(t.type))o.setWidgetObjsById(t);else if(o.checkTagFilter(t.ext.tags)){var r=t.id;-1!==t.widget._class.indexOf("Surface")?(void 0===i[r]&&(i[r]={arr:[]}),i[r].id=t.id,i[r].description=t.description,i[r].type=t.type,i[r].set=t.set,i[r].ext=t.ext,i[r].arr.push(t)):(void 0===n[r]&&(n[r]={arr:[]}),n[r].id=t.id,n[r].description=t.description,n[r].type=t.type,n[r].set=t.set,n[r].ext=t.ext,n[r].arr.push(t)),void 0===e[r]&&(e[r]={arr:[]}),e[r].id=t.id,e[r].description=t.description,e[r].type=t.type,e[r].set=t.set,e[r].ext=t.ext,e[r].arr.push(t)}}))}return e;function a(t,e){var r=[];null!==t&&Gt(t).forEach((function(e,i){if(void 0!==e.ext.tags&&r.push({id:e.id,type:e.type,description:e.description,set:e.set,ext:e.ext,widget:t}),"widgetArray"===e.type)o.widgetProperty(t,e.id).forEach((function(t){var e=a(t);r=r.concat(e)}));else if("widget"===e.type){var n=a(o.widgetProperty(t,e.id));r=r.concat(n)}}));return r}},e}(e.HTMLWidget);pe.prototype._class+=" other_ThemeEditor",pe.prototype.publish("themeMode",!0,"boolean","Edit default values",null,{tags:["Basic"]}),pe.prototype.publish("saveTheme","","string","Save Theme",null,{tags:["Basic","Theme"],saveButton:"Save",saveButtonID:"te-save-button"}),pe.prototype.publish("loadedTheme",ae(1),"set","Loaded Theme",ae(),{tags:["Basic","Theme"]}),pe.prototype.publish("saveSerial","","string","Save Serial",null,{tags:["Basic","Serial"],saveButton:"Save",saveButtonID:"te-save-button"}),pe.prototype.publish("loadedSerial",se(0),"set","Loaded Serial",se(),{tags:["Basic","Serial"]}),pe.prototype.publish("showColumns",!0,"boolean","Show Columns",null,{tags:["Intermediate"]}),pe.prototype.publish("showData",!0,"boolean","Show Data",null,{tags:["Intermediate"]}),pe.prototype.publish("shareCountMin",1,"number","Share Count Min",null,{tags:["Private"]}),pe.prototype.publish("paramGrouping","By Param","set","Param Grouping",["By Param","By Widget"],{tags:["Private"]}),pe.prototype.publish("editorComplexity","Basic","set","Choose what publish properties to display within the editor.",["Basic","Intermediate","Advanced","Private"],{tags:["Private"]}),pe.prototype.publish("sectionTitle","","string","Section Title",null,{tags:["Private"]}),pe.prototype.publish("collapsibleSections",!0,"boolean","Collapsible Sections",null,{tags:["Intermediate"]}),pe.prototype.getThemes=ie,pe.prototype.getSerials=ne,pe.prototype.getDefaultThemes=ae,pe.prototype.getDefaultSerials=se,t.Audio=k,t.AutoCompleteText=I,t.BUILD_VERSION="2.106.0",t.CalendarHeatMap=q,t.Column=Ft,t.ColumnDropdown=Vt,t.Comms=ct,t.HPCCBadge=Tt,t.HeatMap=Rt,t.Html=It,t.IconList=Wt,t.Legend=At,t.MorphText=Ht,t.MouseHoverColumn=Ut,t.NestedTable=Mt,t.Opportunity=qt,t.PKG_NAME="@hpcc-js/other",t.PKG_VERSION="2.16.0",t.Paginator=Dt,t.Persist=$t,t.PropertyEditor=Zt,t.RadioCheckbox=ee,t.Select=oe,t.Table=Bt,t.ThemeEditor=pe,t.cache=function(t){if(!arguments.length)return ht;ht=t},t.createConnection=function(t){if(t=t||document.URL,(new X).url(t).isWsWorkunits()){var e=lt(t);if(e instanceof rt&&e.wuid())return new gt(e.getUrl({pathname:""}),e.wuid()).url(t)}return null},t.createResult=xt,t.enableCache=function(t){if(!arguments.length)return ut;ut=t,t||(ht={})},t.flattenResult=function(t,e){var o={columns:[],data:[]};if(t&&t.length){var r={};if(e&&e.length)e.forEach((function(t){r[t.value.toLowerCase()]=o.columns.length,o.columns.push(t.key)}));else for(var i in t[0])r[i.toLowerCase()]=o.columns.length,o.columns.push(i);t.forEach((function(t,e){var i=[];for(var n in t)void 0!==r[n.toLowerCase()]&&(i[r[n.toLowerCase()]]=t[n]);o.data.push(i)}))}return o}}));
2
2
  //# sourceMappingURL=index.min.js.map