@hpcc-js/other 3.5.7 → 3.5.9
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.js +3546 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +5 -2
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +6 -6
package/dist/index.umd.cjs
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
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";var s,i=Object.defineProperty,n=(t,e)=>i(t,"name",{value:e,configurable:!0});var r,a,l=0,c=0,u=0,h=0,p=0,d=0,g="object"==typeof performance&&performance.now?performance:Date,f="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function m(){return p||(f(y),p=g.now()+d)}function y(){p=0}function _(){this._call=this._time=this._next=null}function b(t,e,o){var s=new _;return s.restart(t,e,o),s}function w(){m(),++l;for(var t,e=r;e;)(t=p-e._time)>=0&&e._call.call(null,t),e=e._next;--l}function x(){p=(h=g.now())+d,l=c=0;try{w()}finally{l=0,C(),p=0}}function v(){var t=g.now(),e=t-h;e>1e3&&(d-=e,h=t)}function C(){for(var t,e,o=r,s=1/0;o;)o._call?(s>o._time&&(s=o._time),t=o,o=o._next):(e=o._next,o._next=null,o=t?t._next=e:r=e);a=t,S(s)}function S(t){l||(c&&(c=clearTimeout(c)),t-p>24?(t<1/0&&(c=setTimeout(x,t-g.now()-d)),u&&(u=clearInterval(u))):(u||(h=g.now(),u=setInterval(v,1e3)),l=1,f(x)))}n(m,"now"),n(y,"clearNow"),n(_,"Timer"),_.prototype=b.prototype={constructor:_,restart:n(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||a===this||(a?a._next=this:r=this,a=this),this._call=t,this._time=o,S()},"restart"),stop:n(function(){this._call&&(this._call=null,this._time=1/0,S())},"stop")},n(b,"timer"),n(w,"timerFlush"),n(x,"wake"),n(v,"poke"),n(C,"nap"),n(S,"sleep");const R=class _Audio extends e.HTMLWidget{_sections;constructor(){super(),this._tag="audio",this._sections={}}section(t,e,o,s){return arguments.length?1===arguments.length?this._sections[t]:(this._sections[t]={label:t,offset:e,beatLength:o,beatCount:s,endOffset:e+s*o},this):this._sections}getType(t){switch(t){case"mp3":return"audio/mpeg; codecs='mp3'";case"ogg":return"audio/ogg; codecs='vorbis'"}return""}enter(t,e){const o=this;e.on("play",function(t){o.onPlay(t)})}update(t,e){e.selectAll("source").data(this.source(),function(t){return t}).enter().append("source").attr("src",function(t){return t})}createTimer(t,e,o){const s=this;b(function(){return s.onTick(t.label,o,t),!0},o*t.beatLength,e+t.offset)}onTick(t,e,o){}onPlay(t){const e=Date.now();for(const o in this._sections){const t=this._sections[o];for(let o=0;o<t.beatCount;++o)this.createTimer(t,e,o)}}play(t){const e=this;this._element.on("canplaythrough",function(t){e.node().play()}),this.node().load()}};n(R,"Audio");let I=R;function W(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}I.prototype._class+=" other_Audio",I.prototype.publish("source","","string","Audio Source"),n(W,"getDefaultExportFromCjs");var k,T={exports:{}};function P(){return k||(k=1,t=T,e=function(){function t(t){if(document.querySelector){n(l,"hasClass"),n(c,"addEvent"),n(u,"removeEvent"),n(h,"live");var e={selector:0,source:0,minChars:3,delay:150,offsetLeft:0,offsetTop:1,cache:1,menuClass:"",renderItem:n(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>"},"renderItem"),onSelect:n(function(t,e,o){},"onSelect")};for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);for(var s="object"==typeof e.selector?[e.selector]:document.querySelectorAll(e.selector),i=0;i<s.length;i++){var r=s[i];r.sc=document.createElement("div"),r.sc.className="autocomplete-suggestions "+e.menuClass,r.autocompleteAttr=r.getAttribute("autocomplete"),r.setAttribute("autocomplete","off"),r.cache={},r.last_val="",r.updateSC=function(t,o){var s=r.getBoundingClientRect();if(r.sc.style.left=Math.round(s.left+(window.pageXOffset||document.documentElement.scrollLeft)+e.offsetLeft)+"px",r.sc.style.top=Math.round(s.bottom+(window.pageYOffset||document.documentElement.scrollTop)+e.offsetTop)+"px",r.sc.style.width=Math.round(s.right-s.left)+"px",!t&&(r.sc.style.display="block",r.sc.classList.remove("hide"),r.sc.maxHeight||(r.sc.maxHeight=parseInt((window.getComputedStyle?getComputedStyle(r.sc,null):r.sc.currentStyle).maxHeight)),r.sc.suggestionHeight||(r.sc.suggestionHeight=r.sc.querySelector(".autocomplete-suggestion").offsetHeight),r.sc.suggestionHeight))if(o){var i=r.sc.scrollTop,n=o.getBoundingClientRect().top-r.sc.getBoundingClientRect().top;n+r.sc.suggestionHeight-r.sc.maxHeight>0?r.sc.scrollTop=n+r.sc.suggestionHeight+i-r.sc.maxHeight:n<0&&(r.sc.scrollTop=n+i)}else r.sc.scrollTop=0},c(window,"resize",r.updateSC),document.body.appendChild(r.sc),h("autocomplete-suggestion","mouseleave",function(t){var e=r.sc.querySelector(".autocomplete-suggestion.selected");e&&setTimeout(function(){e.className=e.className.replace("selected","")},20)},r.sc),h("autocomplete-suggestion","mouseover",function(t){var e=r.sc.querySelector(".autocomplete-suggestion.selected");e&&(e.className=e.className.replace("selected","")),this.className+=" selected"},r.sc),h("autocomplete-suggestion","mousedown",function(t){if(l(this,"autocomplete-suggestion")){var o=this.getAttribute("data-val");r.value=o,e.onSelect(t,o,this),r.sc.style.display="none",r.sc.classList.add("hide")}},r.sc),r.blurHandler=function(){try{var t=document.querySelector(".autocomplete-suggestions:hover")}catch(e){t=0}t?r!==document.activeElement&&setTimeout(function(){r.focus()},20):(r.last_val=r.value,r.sc.style.display="none",r.sc.classList.add("hide"),setTimeout(function(){r.sc.style.display="none",r.sc.classList.add("hide")},350))},c(r,"blur",r.blurHandler);var a=n(function(t,o){if(o||(o=r.value),r.cache[o]=t,t.length&&o.length>=e.minChars){for(var s="",i=0;i<t.length;i++)s+=e.renderItem(t[i],o);r.sc.innerHTML=s,r.updateSC(0)}else r.sc.style.display="none",r.sc.classList.add("hide")},"suggest");r.keydownHandler=function(t){var o,s=window.event?t.keyCode:t.which;if((40==s||38==s)&&r.sc.innerHTML)return(i=r.sc.querySelector(".autocomplete-suggestion.selected"))?(o=40==s?i.nextSibling:i.previousSibling)?(i.className=i.className.replace("selected",""),o.className+=" selected",r.value=o.getAttribute("data-val")):(i.className=i.className.replace("selected",""),r.value=r.last_val,o=0):((o=40==s?r.sc.querySelector(".autocomplete-suggestion"):r.sc.childNodes[r.sc.childNodes.length-1]).className+=" selected",r.value=o.getAttribute("data-val")),r.updateSC(0,o),!1;if(27==s)r.value=r.last_val,r.sc.style.display="none",r.sc.classList.add("hide");else if(13==s||9==s){var i;"none"!==r.sc.style.display&&t.preventDefault(),(i=r.sc.querySelector(".autocomplete-suggestion.selected"))&&"none"!=r.sc.style.display&&(e.onSelect(t,i.getAttribute("data-val"),i),setTimeout(function(){r.sc.style.display="none",r.sc.classList.add("hide")},20))}},c(r,"keydown",r.keydownHandler),r.keyupHandler=function(t){var o=window.event?t.keyCode:t.which;if(!o||(o<35||o>40)&&13!=o&&27!=o){var s=r.value;if(s.length>=e.minChars){if(s!=r.last_val){if(r.last_val=s,clearTimeout(r.timer),e.cache){if(s in r.cache)return void a(r.cache[s]);for(var i=1;i<s.length-e.minChars;i++){var n=s.slice(0,s.length-i);if(n in r.cache&&!r.cache[n].length)return void a([])}}r.timer=setTimeout(function(){e.source(s,a)},e.delay)}}else r.last_val=s,r.sc.style.display="none",r.sc.classList.add("hide")}},c(r,"keyup",r.keyupHandler),r.focusHandler=function(t){r.last_val="\n",r.keyupHandler(t)},e.minChars||c(r,"focus",r.focusHandler)}this.destroy=function(){for(var t=0;t<s.length;t++){var e=s[t];u(window,"resize",e.updateSC),u(e,"blur",e.blurHandler),u(e,"focus",e.focusHandler),u(e,"keydown",e.keydownHandler),u(e,"keyup",e.keyupHandler),e.autocompleteAttr?e.setAttribute("autocomplete",e.autocompleteAttr):e.removeAttribute("autocomplete"),document.body.removeChild(e.sc),e=null}}}function l(t,e){return t.classList?t.classList.contains(e):new RegExp("\\b"+e+"\\b").test(t.className)}function c(t,e,o){t.attachEvent?t.attachEvent("on"+e,o):t.addEventListener(e,o)}function u(t,e,o){t.detachEvent?t.detachEvent("on"+e,o):t.removeEventListener(e,o)}function h(t,e,o,s){c(s||document,e,function(e){for(var s,i=e.target||e.srcElement;i&&!(s=l(i,t));)i=i.parentElement;s&&o.call(i,e)})}}return n(t,"autoComplete"),t}(),t.exports?t.exports=e:window.autoComplete=e),T.exports;var t,e}n(P,"requireAutoComplete");const E=W(P()),B=class _AutoCompleteText extends e.HTMLWidget{_span;_prompt;_input;_prevMinCharsText;_autoComplete;constructor(){super(),this._tag="div"}autoCompleteTextData(){if(0===this.data().length)return[];return 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)}enter(t,e){super.enter(t,e),this._span=e.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())}update(t,e){if(super.update(t,e),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();const t=this;this._autoComplete=new E({selector:"#"+this.id()+"_input",minChars:this.minCharsText(),delay:150,offsetLeft:0,offsetTop:1,source:n((e,o)=>{const s=t._db.fieldByLabel(t.textColumn());if(s){e=e.toLowerCase();o(t.autoCompleteTextData().filter(function(t){return t.origRow[s.idx].toLowerCase().indexOf(e)>=0}).map(function(t){return{text:t.origRow[s.idx],rowIdx:t.idx}}))}},"source"),renderItem:n((t,e)=>{e=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");const 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>"},"renderItem"),onSelect:n((e,o,s)=>{const i=+s.getAttribute("data-row-idx"),n=t.autoCompleteTextData()[i];t.click(t.rowToObj(n.origRow),t.valueColumn(),!0)},"onSelect")})}}exit(t,e){this._autoComplete&&this._autoComplete.destroy(),this._span.remove(),super.exit(t,e)}click(t,e,o){}};n(B,"AutoCompleteText");let D=B;D.prototype._class+=" other_AutoCompleteText",D.prototype.publish("label","Label: ","string","Label for AutoCompleteText"),D.prototype.publish("textboxWidth",null,"number","width of textbox",null,{optional:!0}),D.prototype.publish("placeholder","Search...","string","Placeholder for AutoCompleteText"),D.prototype.publish("valueColumn",null,"set","Select column for autocomplete",function(){return this.columns()},{optional:!0}),D.prototype.publish("textColumn",null,"set","Select value(s)",function(){return this.columns()},{optional:!0}),D.prototype.publish("minCharsText",1,"number","Size of multiAutoCompleteText box");var N=new Date,A=new Date;function H(t,e,o,s){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return n(i,"interval"),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,s,n){var r,a=[];if(o=i.ceil(o),n=null==n?1:Math.floor(n),!(o<s&&n>0))return a;do{a.push(r=new Date(+o)),e(o,n),t(o)}while(r<o&&o<s);return a},i.filter=function(o){return H(function(e){if(e>=e)for(;t(e),!o(e);)e.setTime(e-1)},function(t,s){if(t>=t)if(s<0)for(;++s<=0;)for(;e(t,-1),!o(t););else for(;--s>=0;)for(;e(t,1),!o(t););})},o&&(i.count=function(e,s){return N.setTime(+e),A.setTime(+s),t(N),t(A),Math.floor(o(N,A))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(s?function(e){return s(e)%t===0}:function(e){return i.count(0,e)%t===0}):i:null}),i}n(H,"newInterval");var O=H(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 M(t){return H(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})}n(M,"weekday");var L=M(0),j=M(1),z=M(2),F=M(3),U=M(4),V=M(5),q=M(6);L.range,j.range,z.range,F.range,U.range,V.range,q.range;var G=H(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,Y=H(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()});Y.every=function(t){return isFinite(t=Math.floor(t))&&t>0?H(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},Y.range;const $=class _CalendarHeatMap extends e.HTMLWidget{_prevDateColumn;_prevAggrType;_prevAggrColumn;_prevAggrDeltaColumn;_view;_parentNode;constructor(){super(),e.Utility.SimpleSelectionMixin.call(this)}calendarData(){if(0===this.fields().length||0===this.data().length)return[];const 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})}calcDelta(t){return(t.Close-t.Open)/t.Open}enter(t,o){super.enter(t,o),e.select(t.parentNode).style("overflow-y","scroll").style("overflow-x","hidden").style("height","100%").style("width","100%"),this._selection.widgetElement(o)}update(t,o){super.update(t,o),this._palette=this._palette.switch(this.paletteID());const s=this.width(),i=s/12/5,r=8*i,a=this.calendarData(),l=e.map(a,function(t){return t.dateKey}),c=e.extent(a,function(t){return t.dateKey.getFullYear()}),u=this,h=o.selectAll("svg").data(e.range(+c[0],+c[1]+1)),p=h.enter().append("svg").each(function(t){const o=e.select(this).append("g");o.append("text").style("text-anchor","middle"),o.append("g").attr("class","days");const s=G(new Date(t,0,1),new Date(t+1,0,1)),i=o.append("g").attr("class","months");s.forEach(function(t){i.append("path").attr("class","month").attr("d",y(t)).style("stroke",u.monthStrokeColor()).style("stroke-width",u.monthStrokeWidth())})}).merge(h).attr("width",s).attr("height",r);p.select("g").attr("transform","translate("+(s-53*i)/2+","+(r-7*i-1)+")"),p.select("text").attr("transform","translate(-6,"+3.5*i+")rotate(-90)").text(t=>t),h.exit().remove();let d=e.extent(a,function(t){return t.value.aggregate});if(this.aggrDeltaColumn()){const t=Math.max(Math.abs(+d[0]),Math.abs(+d[1]));d=[-t,t]}const g=p.select(".days").selectAll(".day").data(function(t){return O(new Date(t,0,1),new Date(t+1,0,1))}),f=g.enter().append("rect").attr("class","day").call(this._selection.enter.bind(this._selection)).on("click",function(t){const e=l.get(t);e&&e.value&&e.value&&e.value.length&&u.click(u.rowToObj(e.value[0]),u.dateColumn(),u._selection.selected(this))}).on("dblclick",function(t){const e=l.get(t);e&&e.value&&e.value&&e.value.length&&u.dblclick(u.rowToObj(e.value[0]),u.dateColumn(),u._selection.selected(this))}).each(function(t){e.select(this).append("title")}).merge(g).attr("x",function(t){return L.count(Y(t),t)*i}).attr("y",function(t){return t.getDay()*i}).attr("width",i).attr("height",i).style("stroke",this.dayStrokeColor()).style("stroke-width",this.dayStrokeWidth()).style("fill",null);f.select("title").text(t=>t),f.filter(function(t){return l.has(t)}).style("fill",function(t){const e=l.get(t);return e&&e.value&&e.value.aggregate?u._palette(e.value.aggregate,d[0],d[1]):null}).select("title").text(function(t){const e=l.get(t);return e.key+": "+e.formattedValues}),g.exit().remove();const m=h.select(".months").selectAll(".month").data(function(t){return G(new Date(t,0,1),new Date(t+1,0,1))});function y(t){const e=new Date(t.getFullYear(),t.getMonth()+1,0),o=t.getDay(),s=L.count(Y(t),t),n=e.getDay(),r=L.count(Y(e),e);return"M"+(s+1)*i+","+o*i+"H"+s*i+"V"+7*i+"H"+r*i+"V"+(n+1)*i+"H"+(r+1)*i+"V0H"+(s+1)*i+"Z"}m.enter().append("path").attr("class","month").merge(m).attr("d",y).style("stroke",this.monthStrokeColor()).style("stroke-width",this.monthStrokeWidth()),m.exit().remove(),n(y,"calcMonthPath")}exit(t,e){super.exit(t,e)}click(t,e,o){}dblclick(t,e,o){}};n($,"CalendarHeatMap");let X=$;X.prototype._class+=" other_CalendarHeatMap",X.prototype.mixin(e.Utility.SimpleSelectionMixin),X.prototype._palette=e.Palette.rainbow("default"),X.prototype.publish("paletteID","YlOrRd","set","Color palette for this widget",X.prototype._palette.switch(),{tags:["Basic","Shared"]}),X.prototype.publish("dayStrokeColor","#ccc","html-color","Color of day border"),X.prototype.publish("monthStrokeColor","#000","html-color","Color of month border"),X.prototype.publish("dayStrokeWidth",1,"number","Pixel width of day border"),X.prototype.publish("monthStrokeWidth",2,"number","Pixel width of month border"),X.prototype.publish("dateColumn",null,"set","Date Column",function(){return this.columns()},{optional:!0}),X.prototype.publish("datePattern","%Y-%m-%d","string","Date Pattern"),X.prototype.publish("aggrType",null,"set","Aggregation Type",[null,"mean","median","sum","min","max"],{optional:!0}),X.prototype.publish("aggrColumn",null,"set","Aggregation Field",function(){return this.columns()},{optional:!0,disable:n(t=>!t.aggrType(),"disable")}),X.prototype.publish("aggrDeltaColumn",null,"set","Aggregation Field",function(){return this.columns()},{optional:!0,disable:n(t=>!t.aggrType(),"disable")});function J(t){if(null==t)return null;if(!t.trim)return t.Row?Q(t.Row):t;const e=t.trim();return""!==e&&!isNaN(e)&&(e.length<=1||"0"!==e[0]||"."===e[1])?Number(e):e}function Q(t){for(const e in t)t[e]=J(t[e]);return t}n(J,"espValFix"),n(Q,"espRowFix");const K=class _ESPUrl{_protocol="http:";_hostname="localhost";_url;_port;_search;_pathname;_params;_hash;_host;constructor(){}url(t){if(!arguments.length)return this._url;this._url=t;const e=document.createElement("a");e.href=this._url;const o={};if(e.search.length){let t=e.search;"?"===t[0]&&(t=t.substring(1)),t=t.split("&"),t.map(function(t){const 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}protocol(t){return arguments.length?(this._protocol=t,this):this._protocol}hostname(t){return arguments.length?(this._hostname=t,this):this._hostname}port(t){return arguments.length?(this._port=t,this):this._port}search(t){return arguments.length?(this._search=t,this):this._search}pathname(t){return arguments.length?(this._pathname=t,this):this._pathname}hash(t){return arguments.length?(this._hash=t,this):this._hash}host(t){return arguments.length?(this._host=t,this):this._host}params(t){return arguments.length?(this._params=t,this):this._params}param(t){return this._params[t]}isWsWorkunits(){return this._pathname.toLowerCase().indexOf("wsworkunits")>=0||this._params.Wuid}isWorkunitResult(){return this.isWsWorkunits()&&(this._params.Sequence||this._params.ResultName)}isWsEcl(){return this._pathname.toLowerCase().indexOf("wsecl")>=0||this._params.QuerySetId&&this._params.Id}isWsWorkunits_GetStats(){return this._pathname.toLowerCase().indexOf("wsworkunits/wugetstats")>=0&&this._params.WUID}getUrl(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)}};n(K,"ESPUrl");let Z=K;function tt(t){this._mappings=t,this._reverseMappings={};for(const e in this._mappings){this._reverseMappings[e]={};for(const t in this._mappings[e])this._reverseMappings[e][this._mappings[e][t]]=t}}n(tt,"ESPMappings"),tt.prototype.contains=function(t,o){return e.Utility.exists(t+"."+o,this._mappings)},tt.prototype.mapResult=function(t,e){const o=this._mappings[e];o&&(t[e]=t[e].map(function(t){let e=[];if(o.x&&o.x instanceof Array){e=[];for(let s=0;s<o.x.length;++s)e.push(t[o.y[s]])}else for(const s in o)"label"===o[s]?e[0]=t[s]:"weight"===o[s]&&(e[1]=t[s]);return e},this))},tt.prototype.mapResponse=function(t){for(const e in t)this.mapResult(t,e)};const et=n(function(t){const e=[];for(const o in t)if(t.hasOwnProperty(o)){const s=t[o];null!=s&&e.push(encodeURIComponent(o)+"="+encodeURIComponent(s))}return e.join("&")},"serialize$1");let ot=n(function(t,e,o){return new Promise(function(s,i){let r=1e3*o;const a="jsonp_callback_"+Math.round(999999*Math.random());window[a]=function(t){r=0,u(),s(t)};const l=document.createElement("script");l.src=t+(t.indexOf("?")>=0?"&":"?")+"jsonp="+a+"&"+et(e),document.body.appendChild(l);const c=setInterval(function(){r<=0?clearInterval(c):(r-=5e3,r<=0&&(clearInterval(c),u(),i(Error("Request timeout: "+l.src))))},5e3);function u(){delete window[a],document.body.removeChild(l)}n(u,"doCallback")})},"jsonp");const st=class _Comms extends Z{_proxyMappings;_mappings;_timeout;_hipieResults;_hipieResultsLength;constructor(){super(),this._proxyMappings={},this._mappings=new tt({}),this._timeout=60,this._hipieResults={}}hipieResults(t){if(!arguments.length)return this._hipieResults;this._hipieResultsLength=0,this._hipieResults={};const e=this;return t.forEach(function(t){e._hipieResultsLength++,e._hipieResults[t.id]=t}),this}jsonp(t,e){for(const o in this._proxyMappings){const s=t.split(o),i=s[0];if(s.length>1){const n=(new Z).url(t);t=i+this._proxyMappings[o],e.IP=n.hostname(),e.PORT=n.port(),s.length>0&&(e.PATH=s[1]);break}}return ot(t,e,this.timeout())}ajax(t,e,o){return new Promise(function(s,i){let n=e;"GET"===t&&o&&(n+="?"+et(o));const r=new XMLHttpRequest;r.onload=function(t){this.status>=200&&this.status<300?s(JSON.parse(this.response)):i(Error(this.statusText))},r.onerror=function(){i(Error(this.statusText))},r.open(t,n),r.setRequestHeader("X-Requested-With","XMLHttpRequest"),"GET"===t?r.send():(r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.send(et(o)))})}get(t,e){return this.ajax("GET",t,e)}post(t,e){return this.ajax("POST",t,e)}mappings(t){return arguments.length?(this._mappings=new tt(t),this):this._mappings}proxyMappings(t){return arguments.length?(this._proxyMappings=t,this):this._proxyMappings}timeout(t){return arguments.length?(this._timeout=t||60,this):this._timeout}};n(st,"Comms");let it=st;const nt=class _Basic extends it{_cacheCalls;constructor(){super()}cacheCalls(t){return arguments.length?(this._cacheCalls=t,this):this._cacheCalls}call(t,e){const o=this._url+(this._url.indexOf("?")>=0?"&":"?")+et(t);if(this._cacheCalls){const t=this;return new Promise(function(t,s){const 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(s){return t.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})}};n(nt,"Basic");let rt=nt;function at(t){for(const e in t){if(t[e].Row&&t[e].Row instanceof Array)return t;let o;if("string"!=typeof t[e]&&(o=at(t[e])),o)return o}return null}function lt(t){for(const e in t){if(t[e].Exception&&t[e].Exception instanceof Array)return t[e];const o=lt(t[e]);if(o)return o}return null}n(at,"locateRoxieResponse$1"),n(lt,"locateRoxieException");const ct=class _WsECL extends it{_target;_query;constructor(){super(),this._port="8002",this._target="",this._query=""}url(t){const e=super.url.apply(this,arguments);if(arguments.length){this._port="8010"===this._port?"8002":this._port;for(const o in this._params)switch(o){case"QuerySetId":this.target(this._params[o]);break;case"Id":this.query(this._params[o])}let t,e;this._target&&this._query||(t=this._pathname.split("/query/"),t.length>=2&&(e=t[1].split("/"),e.length>=2&&(this.target(e[0]),this.query(e[1]))))}return e}target(t){return arguments.length?(this._target=t,this):this._target}query(t){return arguments.length?(this._query=t,this):this._query}constructUrl(){return it.prototype.getUrl.call(this,{pathname:"WsEcl/submit/query/"+this._target+"/"+this._query+"/json"})}call(t,e,o){(t=t||{}).target=t.target||this._target,t.query=t.query||this._query;const s=this,i=this.getUrl({pathname:"WsEcl/submit/query/"+t.target+"/"+t.query+"/json"});return this.jsonp(i,e).then(function(t){let e=at(t);if(e||(e=lt(t)),(t=e).Exception)throw Error(t.Exception.reduce(function(t,e,o,s){return t.length&&(t+="\n"),t+e.Source+" "+e.Code+": "+e.Message},""));for(const o in t)t[o].Row&&(t[o]=t[o].Row.map(Q));return s._mappings.mapResponse(t),o&&(console.error("Deprecated: callback, use promise (WsECL.prototype.call)"),o(t)),t})}send(t,e){return this.call({target:this._target,query:this._query},t,e)}};n(ct,"WsECL");let ut=ct,ht=(s=class extends it{_wuid="";_jobname="";_sequence=null;_resultName=null;_fetchResultNamesPromise=null;_fetchResultPromise={};_resultNameCache={};_resultNameCacheCount=0;_total;constructor(){super(),this._port="8010"}url(t){const e=it.prototype.url.apply(this,arguments);if(arguments.length){for(const t in this._params)switch(t){case"Wuid":this.wuid(this._params[t]);break;case"ResultName":this.resultName(this._params[t]);break;case"Sequence":this.sequence(this._params[t])}if(!this._wuid){const t=this._url.split("/res/");if(t.length>=2){const e=t[1].split("/");this.wuid(e[0])}}}return e}wuid(t){return arguments.length?(this._wuid=t,this):this._wuid}jobname(t){return arguments.length?(this._jobname=t,this):this._jobname}sequence(t){return arguments.length?(this._sequence=t,this):this._sequence}resultName(t){return arguments.length?(this._resultName=t,this):this._resultName}appendParam(t,e,o){return e?(o&&(o+="&"),o+t+"="+e):o}constructUrl(){const t=it.prototype.getUrl.call(this,{pathname:"WsWorkunits/res/"+this._wuid+"/"});let e="";return e=this.appendParam("ResultName",this._resultName,e),t+(e?"?"+e:"")}_fetchResult(t,e,o){if(t=t||{},!this._fetchResultPromise[t.resultname]){t._start=t._start||0,t._count=t._count||-1;const s=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]={};const n=this;this._fetchResultPromise[t.resultname]=this.jsonp(s,i).then(function(s){for(const t in s){if(!s[t].Result)throw new Error("No result found.");n._total=s[t].Total,s=s[t].Result;for(const t in s){s=s[t].Row.map(Q);break}break}return n._resultNameCache[t.resultname]=s,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]}fetchResult(t,e,o){if(t.wuid)return this._fetchResult(t,e,o);if(t.jobname){const s=this;return this.WUQuery(t,function(i){return t.wuid=i[0].Wuid,s._fetchResult(t,e,o)})}}WUQuery(t,o){const s=this.getUrl({pathname:"WsWorkunits/WUQuery.json"}),i={Jobname:t.jobname,Count:1};return this._resultNameCache={},this._resultNameCacheCount=0,this.jsonp(s,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})}fetchResultNames(t){if(!this._fetchResultNamesPromise){const o=this.getUrl({pathname:"WsWorkunits/WUInfo.json"}),s={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;const i=this;this._fetchResultNamesPromise=this.jsonp(o,s).then(function(n){return e.Utility.exists("WUInfoResponse.Workunit.Archived",n)&&n.WUInfoResponse.Workunit.Archived&&console.warn("WU is archived: "+o+" "+JSON.stringify(s)),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}fetchResults(t,e){const o=this;return this.fetchResultNames().then(function(s){const i=[];for(const t in o._resultNameCache)i.push(o.fetchResult({wuid:o._wuid,resultname:t},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})})}postFilter(t,e){const o={};for(const s in e)o[s]=e[s].filter(function(e,o){for(const s in t)if(void 0!==e[s]&&void 0!==t[s]&&e[s]!=t[s])return!1;return!0});return this._mappings.mapResponse(o),o}send(t,e){const o=this;this._resultNameCacheCount?e(o.postFilter(t,this._resultNameCache)):this.fetchResults(function(s){e(o.postFilter(t,s))},!0)}},n(s,"WsWorkunits"),s);function pt(){it.call(this),this._port="8010",this._wuid=null}function dt(){it.call(this)}function gt(){ht.call(this)}function ft(){gt.call(this)}function mt(t){t=t||document.URL;const e=(new Z).url(t);return e.isWsWorkunits_GetStats()?(new pt).url(t):e.isWsWorkunits()?(new ht).url(t):e.isWsEcl()?(new ut).url(t):null}function yt(t){ot=t}n(pt,"WsWorkunits_GetStats"),pt.prototype=Object.create(it.prototype),pt.prototype.url=function(t){const e=it.prototype.url.apply(this,arguments);if(arguments.length)for(const o in this._params)if("WUID"===o)this.wuid(this._params[o]);return e},pt.prototype.wuid=function(t){return arguments.length?(this._wuid=t,this):this._wuid},pt.prototype.constructUrl=function(){return it.prototype.getUrl.call(this,{pathname:"WsWorkunits/WUGetStats?WUID="+this._wuid})},pt.prototype.send=function(t,o){const s=this.getUrl({pathname:"WsWorkunits/WUGetStats.json?WUID="+this._wuid});return this.jsonp(s,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([])),[])})},n(dt,"HIPIERoxie"),dt.prototype=Object.create(it.prototype),dt.prototype.fetchResults=function(t,e){const o=this.getUrl({});this._resultNameCache={},this._resultNameCacheCount=0;const s=this;return this.jsonp(o,t).then(function(t){let o=at(t);if(o||(o=lt(t)),(t=o).Exception)throw Error(t.Exception.reduce(function(t,e,o,s){return t.length&&(t+="\n"),t+e.Source+" "+e.Code+": "+e.Message},""));for(const e in t)t[e].Row&&(s._resultNameCache[e]=t[e].Row.map(Q),++s._resultNameCacheCount);return e&&(console.error("Deprecated: callback, use promise (HIPIERoxie.prototype.fetchResults)"),e(s._resultNameCache)),s._resultNameCache})},dt.prototype.fetchResult=function(t,e){const o=this;return new Promise(function(s,i){e&&(console.error("Deprecated: callback, use promise (HIPIERoxie.prototype.fetchResult)"),e(o._resultNameCache[t])),s(o._resultNameCache[t])})},dt.prototype.call=function(t,e){const o=this;return this.fetchResults(t,e).then(function(t){const e={};for(const s in o._hipieResults){const i=o._hipieResults[s];e[i.id]=t[i.from]}return e})},n(gt,"HIPIEWorkunit"),gt.prototype=Object.create(ht.prototype),gt.prototype.fetchResults=function(t){const e=this;return ht.prototype.fetchResultNames.call(this).then(function(o){const s=[];for(const t in e._hipieResults){const o=e._hipieResults[t];s.push(e.fetchResult(o.from))}return Promise.all(s).then(function(o){return t&&(console.error("Deprecated: callback, use promise (HIPIEWorkunit.prototype.fetchResults)"),t(e._resultNameCache)),e._resultNameCache})})},gt.prototype.fetchResult=function(t,e){return ht.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})},gt.prototype.call=function(t,e){const o=this;return!t.refresh&&this._resultNameCache&&this._resultNameCacheCount?new Promise(function(e,o){e(s(t))}):this.fetchResults(e).then(function(e){return s(t)});function s(t){const e={};for(const o in t)void 0!==t[o+"_changed"]&&(e[o]={value:t[o]});const s={};for(const i in o._hipieResults){const t=o._hipieResults[i],n={};for(let o=0;o<t.filters.length;++o){const s=t.filters[o];s.isRange()||(n[s.fieldid]=e[s.fieldid]||{value:void 0},n[s.fieldid].filter=s)}s[t.id]=o._resultNameCache[t.from].filter(function(t){for(const e in n)if(!n[e].filter.matches(t,n[e].value))return!1;return!0})}return s}},n(ft,"HIPIEDatabomb"),ft.prototype=Object.create(gt.prototype),ft.prototype.databomb=function(t){return arguments.length?(this._databomb=t,this):this._databomb},ft.prototype.databombOutput=function(t,e){if(arguments.length)return this._resultNameCacheCount++,this._databomb instanceof Array?this._resultNameCache[t]=this._databomb.map(Q):this._resultNameCache[t]=this._databomb[t].map(Q),this},ft.prototype.fetchResults=function(t){const e=this;return new Promise(function(o,s){t&&(console.error("Deprecated: callback, use promise (HIPIEDatabomb.prototype.fetchResults)"),t(e._resultNameCache)),o(e._resultNameCache)})},n(mt,"createESPConnection"),n(yt,"hookJsonp");const _t=Object.freeze(Object.defineProperty({__proto__:null,Basic:rt,Comms:it,ESPMappings:tt,ESPUrl:Z,HIPIEDatabomb:ft,HIPIERoxie:dt,HIPIEWorkunit:gt,WsECL:ut,WsWorkunits:ht,createESPConnection:mt,hookJsonp:yt},Symbol.toStringTag,{value:"Module"}));function bt(t){if(t.Row&&t.Row instanceof Array)return t.Row.map(bt);if(t instanceof Object)for(const e in t)t[e]=bt(t[e]);return t}n(bt,"nestedRowFix");let wt=!1,xt={};function vt(){rt.call(this)}function Ct(t){vt.call(this),this.url(t+"WsWorkunits/")}function St(t,e){vt.call(this),this.url(t+"WsWorkunits/"),this._wuid=e}function Rt(t,e,o){vt.call(this),this.url(t+"WUResult.json"),this._wuid=e,this._name=o,this._xmlSchema=null}function It(t,e){vt.call(this),this.url(t+"WUResult.json"),this._logicalName=e,this._xmlSchema=null}function Wt(t,e){vt.call(this);const o=t.split("/");let s=o.pop();"json"===s.toLowerCase()&&(s=o.pop()),this._queryName=s,this._resultName=e,this.url(o.join("/")+"/"+s+"/json")}function kt(t){return t&&t.replace?t.replace(/ +$/,""):t}function Tt(t,e){return t.filter(function(t){for(const o in e)if(void 0!==t[o]&&kt(e[o])!==kt(t[o]))return!1;return!0})}function Pt(t){for(const e in t){if(t[e].Row&&t[e].Row instanceof Array)return t;const o=Pt(t[e]);if(o)return o}return null}function Et(t,e,o){const s=(new Z).url(t);return 0===e.indexOf("http")?new Wt(e,o):0===e.indexOf("~")||e.indexOf("::")>=0?new It(s.getUrl({pathname:"WsWorkunits/"}),e):e?new Rt(s.getUrl({pathname:"WsWorkunits/"}),e,o):null}function Bt(t){if(!arguments.length)return wt;wt=t,t||(xt={})}function Dt(t){if(!arguments.length)return xt;xt=t}function Nt(t){t=t||document.URL;if((new Z).url(t).isWsWorkunits()){const e=mt(t);if(e instanceof ht&&e.wuid())return new St(e.getUrl({pathname:""}),e.wuid()).url(t)}return null}function At(t,e){const o={columns:[],data:[]};if(t&&t.length){const s={};if(e&&e.length)e.forEach(function(t){s[t.value.toLowerCase()]=o.columns.length,o.columns.push(t.key)});else for(const e in t[0])s[e.toLowerCase()]=o.columns.length,o.columns.push(e);t.forEach(function(t,e){const i=[];for(const o in t)void 0!==s[o.toLowerCase()]&&(i[s[o.toLowerCase()]]=t[o]);o.data.push(i)})}return o}n(vt,"BasicComms"),vt.prototype=Object.create(rt.prototype),vt.prototype.jsonp=function(t,e){const o=JSON.stringify(e);return wt&&xt[t]&&xt[t][o]?Promise.resolve(xt[t][o]):rt.prototype.jsonp.apply(this,arguments).then(function(e){return wt&&(xt[t]||(xt[t]={}),xt[t][o]=e),e})},n(Ct,"WsWorkunits"),Ct.prototype=Object.create(vt.prototype),Ct.prototype.wuQuery=function(t){const 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(const s in t)o[s]=t[s];return this.jsonp(e,o).then(function(t){return t.WUQueryResponse&&t.WUQueryResponse.Workunits?t.WUQueryResponse.Workunits.ECLWorkunit:[]})},n(St,"Workunit"),St.prototype=Object.create(vt.prototype),St.prototype.wuInfo=function(t){const 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(const s in t)o[s]=t[s];return this.jsonp(e,o).then(function(s){if(wt){const i={WUInfoResponse:{Workunit:{}}};for(const e in t){const t=e.substring(7);i.WUInfoResponse.Workunit[t]=s.WUInfoResponse.Workunit[t]}xt[e][JSON.stringify(o)]=i}return s})},St.prototype.wuUpdate=function(t){const e=this.getUrl({pathname:"WsWorkunits/WUUpdate.json"}),o={Wuid:this._wuid};for(const s in t)o[s]=t[s];return this.post(e,o)},St.prototype.appData=function(t,e,o){return 2===arguments.length?this.wuInfo({IncludeApplicationValues:!0}).then(function(o){let s;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){s=t.Value}),s}):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},St.prototype.results=function(){const t=this;return this.wuInfo({IncludeResults:!0}).then(function(o){let s=[];return e.Utility.exists("WUInfoResponse.Workunit.Results.ECLResult",o)&&(s=o.WUInfoResponse.Workunit.Results.ECLResult.map(function(e){return new Rt(t.getUrl({pathname:"WsWorkunits/"}),t._wuid,e.Name)})),s})},St.prototype.result=function(t,e){return Et(t=t||this._wuid,e)},n(Rt,"WUResult"),Rt.prototype=Object.create(vt.prototype),Rt.prototype.wuid=function(t){return arguments.length?(this._wuid=t,this):this._wuid},Rt.prototype.name=function(t){return arguments.length?(this._name=t,this):this._name},Rt.prototype.query=function(t,e){t=t||{},e=e||{};const o={Wuid:this._wuid,ResultName:this._name,SuppressXmlSchema:!0,Start:0,Count:-1};for(const n in t)o[n]=t[n];let s=0;for(const n in e)o["FilterBy.NamedValue."+s+".Name"]=n,o["FilterBy.NamedValue."+s+".Value"]=e[n],++s;s&&(o["FilterBy.NamedValue.itemcount"]=s);const i=this;return this.jsonp(this.url(),o).then(function(t){return t.WUResultResponse&&t.WUResultResponse.Result&&t.WUResultResponse.Result[i._name]?(wt&&(xt[i.url()][JSON.stringify(o)]={WUResultResponse:{Result:t.WUResultResponse.Result}}),i._xmlSchema=t.WUResultResponse.Result.XmlSchema,bt(t.WUResultResponse.Result[i._name])):[]})},n(It,"LogicalFile"),It.prototype=Object.create(vt.prototype),It.prototype.query=function(t,e){t=t||{},e=e||{};const o={Cluster:"hthor",LogicalName:this._logicalName,SuppressXmlSchema:null!==this._xmlSchema,Start:0,Count:-1};for(const n in t)o[n]=t[n];let s=0;for(const n in e)o["FilterBy.NamedValue."+s+".Name"]=n,o["FilterBy.NamedValue."+s+".Value"]=e[n],++s;s&&(o["FilterBy.NamedValue.itemcount"]=s);const i=this;return this.jsonp(this.url(),o).then(function(t){return t.WUResultResponse&&t.WUResultResponse.Result&&t.WUResultResponse.Result.Row?(i._xmlSchema=t.WUResultResponse.Result.XmlSchema,bt(t.WUResultResponse.Result.Row)):[]})},n(Wt,"RoxieQuery"),Wt.prototype=Object.create(vt.prototype),n(kt,"trimRight"),n(Tt,"postFilter"),n(Pt,"locateRoxieResponse"),Wt.prototype.query=function(t,e){t=t||{},e=e||{};const o={};for(const i in t)o[i]=t[i];for(const i in e)o[i]=e[i];const s=this;return this.jsonp(this.url(),o).then(function(t){if(t=Pt(t))if(s._resultName){if(t&&t[s._resultName]&&t[s._resultName].Row)return bt(Tt(t[s._resultName].Row,e))}else for(const o in t)if(t[o].Row)return bt(Tt(t[o].Row,e));return[]})},n(Et,"createResult"),n(Bt,"enableCache"),n(Dt,"cache"),n(Nt,"createConnection"),n(At,"flattenResult");var Ht,Ot={exports:{}};function Mt(){return Ht||(Ht=1,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,n(e,"simpleheat"),e.prototype={defaultRadius:25,defaultGradient:{.4:"blue",.6:"cyan",.7:"lime",.8:"yellow",1:"red"},data:n(function(t){return this._data=t,this},"data"),max:n(function(t){return this._max=t,this},"max"),add:n(function(t){return this._data.push(t),this},"add"),clear:n(function(){return this._data=[],this},"clear"),radius:n(function(t,e){e=void 0===e?15:e;var o=this._circle=this._createCanvas(),s=o.getContext("2d"),i=this._r=t+e;return o.width=o.height=2*i,s.shadowOffsetX=s.shadowOffsetY=2*i,s.shadowBlur=e,s.shadowColor="black",s.beginPath(),s.arc(-i,-i,t,0,2*Math.PI,!0),s.closePath(),s.fill(),this},"radius"),resize:n(function(){this._width=this._canvas.width,this._height=this._canvas.height},"resize"),gradient:n(function(t){var e=this._createCanvas(),o=e.getContext("2d"),s=o.createLinearGradient(0,0,0,256);for(var i in e.width=1,e.height=256,t)s.addColorStop(+i,t[i]);return o.fillStyle=s,o.fillRect(0,0,1,256),this._grad=o.getImageData(0,0,1,256).data,this},"gradient"),draw:n(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,s=0,i=this._data.length;s<i;s++)o=this._data[s],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},"draw"),_colorize:n(function(t,e){for(var o,s=0,i=t.length;s<i;s+=4)(o=4*t[s+3])&&(t[s]=e[o],t[s+1]=e[o+1],t[s+2]=e[o+2])},"_colorize"),_createCanvas:n(function(){return"undefined"!=typeof document?document.createElement("canvas"):new this._canvas.constructor},"_createCanvas")}}(Ot)),Ot.exports}n(Mt,"requireSimpleheat");const Lt=W(Mt()),jt=Object.freeze(Object.defineProperty({__proto__:null,default:Lt},Symbol.toStringTag,{value:"Module"})),zt=window.simpleheat||jt&&Lt||jt,Ft=class _HeatMap extends e.CanvasWidget{_heat;constructor(){super()}enter(t,e){super.enter(t,e),this.resize(this._size),this._heat=zt(t)}update(t,e){if(super.update(t,e),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()){const t={};for(let e=1;e<=this.colorCount();e++){t[e/this.colorCount()]=this._palette(e,1,this.colorCount())}this._heat.defaultGradient=t,this._heat.gradient(t)}else this.gradient()&&(this._heat.defaultGradient=this.gradient(),this._heat.gradient(this.gradient()));this._heat.draw()}exit(t,e){delete this._heat,super.exit(t,e)}resize(t){const o=e.CanvasWidget.prototype.resize.apply(this,arguments);return void 0!==this._heat&&this._heat.resize(),o}skewedData(){const t=this,e=[],o=this.data(),s=this.size(),i=this.bottomRightX()-this.topLeftX(),n=this.bottomRightY()-this.topLeftY(),r=i/s.width,a=n/s.height;return o.forEach(function(o){const s=Math.abs(o[0]-t.topLeftX()),i=Math.abs(o[1]-t.topLeftY()),n=s/r,l=i/a;e.push([n,l,o[2]])}),e}};n(Ft,"HeatMap");let Ut=Ft;Ut.prototype._class+=" other_HeatMap",Ut.prototype._palette=e.Palette.rainbow("default"),Ut.prototype.publish("radius",15,"number","Set point radius",null,{tags:["Basic"]}),Ut.prototype.publish("blur",15,"number","Set point blur",null,{tags:["Basic"]}),Ut.prototype.publish("max",1,"number","Set max data value",null,{tags:["Basic"]}),Ut.prototype.publish("gradient",{.4:"blue",.6:"cyan",.7:"lime",.8:"yellow",1:"red"},"object","Set gradient colors",null,{tags:["Basic"]}),Ut.prototype.publish("usePalette",!1,"boolean","If true, uses paletteID and colorCount to determine gradient",null,{tags:["Basic"]}),Ut.prototype.publish("colorCount",10,"number","Top left x-value",null,{tags:["Basic"]}),Ut.prototype.publish("paletteID","default","set","Color palette for this widget",Ut.prototype._palette.switch(),{tags:["Basic"]}),Ut.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]}),Ut.prototype.publish("topLeftX",null,"number","Top left x-value",null,{tags:["Basic"],optional:!0}),Ut.prototype.publish("topLeftY",null,"number","Top left y-value",null,{tags:["Basic"],optional:!0}),Ut.prototype.publish("bottomRightX",null,"number","Bottom right x-value",null,{tags:["Basic"],optional:!0}),Ut.prototype.publish("bottomRightY",null,"number","Bottom right y-value",null,{tags:["Basic"],optional:!0});const Vt=class _HPCCBadge extends e.SVGWidget{root;logo;logo_accent;logo_circles;line;circle_1;circle_2;circle_3;circle_4;circle_5;circle_6;circle_7;circle_8;circle_accent;text;text_hpccsystems;text_r;text_tm;constructor(){super()}testData(t,e){return this}enter(t,e){super.enter(t,e),this.root=e.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.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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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");const o=this.root.node().getBBox(),s=o.x+o.width/2,i=o.y+o.height/2,n=Math.min(this.width(),this.height())/Math.max(o.width,o.height);this.root.attr("transform","translate("+-s*n+","+-i*n+")scale("+n+")")}update(t,e){switch(super.update(t,e),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)}}};n(Vt,"HPCCBadge");let qt=Vt;qt.prototype._class+=" other_HPCCBadge",qt.prototype.publish("animation","none","set","Animation Style",["none","accentInOut","accentIn","fade_in"]);const Gt=class _Html extends e.HTMLWidget{constructor(){super(),this._tag="div"}enter(t,e){super.enter(t,e)}update(t,e){super.update(t,e),e.style("overflow-x",this.overflowX_exists()?this.overflowX():"").style("overflow-y",this.overflowY_exists()?this.overflowY():"");const o=e.selectAll(".htmlWrapper").data(this.data().length>0?this.data():[this.html()]);o.enter().append("div").attr("class","htmlWrapper").merge(o).html(function(t){return t}),o.exit().remove()}};n(Gt,"Html");let Yt=Gt;Yt.prototype._class+=" other_Html",Yt.prototype.publish("html","","string","Html to render",null,{tags:["Basic"]}),Yt.prototype.publish("overflowX",null,"set","CSS overflow-x",["","visible","hidden","scroll","auto","initial","inherit"],{tags:["Basic"],optional:!0}),Yt.prototype.publish("overflowY",null,"set","CSS overflow-y",["","visible","hidden","scroll","auto","initial","inherit"],{tags:["Basic"],optional:!0});const $t=class _IconList extends e.HTMLWidget{_list;_entity_list=[];_content_list=[];constructor(){super(),this._list=(new o.HorizontalList).orientation_default("horizontal").flexWrap_default("nowrap")}enter(t,o){super.enter(t,o),o.style("height","100%").style("width","100%"),e.select(t.parentElement).style("height","100%").style("width","100%"),this._list.target(t)}update(t,s){super.update(t,s);const i=this._list.widgets();this.data().forEach((t,s)=>{i[s]?(i[s]=this.updateListProperties(i[s],s),this.updateEntityProperties(i[s].widgets()[0],s),i[s].widgets()[1].html(this.data()[s][this.htmlColumnIndex_exists()?this.htmlColumnIndex():1])):i[s]=this.updateListProperties(new o.VerticalList,s).widgets([this.updateEntityProperties(new e.Entity,s),(new Yt).html(this.data()[s][this.htmlColumnIndex_exists()?this.htmlColumnIndex():1])])}),this._list.widgets(i.slice(0,this.data().length)),this._list.resize().render()}updateListProperties(t,e){return t.disableScroll(!0).widgetsFlexBasis([this.iconSize()+"px",`calc(100% - ${this.iconSize()}px)`])}updateEntityProperties(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)}};n($t,"IconList");let Xt=$t;Xt.prototype._class+=" other_IconList",Xt.prototype.publish("iconSize",72,"number","Size of icon (pixels)"),Xt.prototype.publish("iconColumnIndex",0,"number","Index of column containing icon character"),Xt.prototype.publish("iconColorColumnIndex",1,"number","Index of column containing icon color"),Xt.prototype.publish("htmlColumnIndex",2,"number","Index of column containing html string");const Jt=class _Paginator extends e.HTMLWidget{_tNumPages;_numList;paginator;side;_onSelect;constructor(){super(),this._tag="div",this._tNumPages=1,this._numList=[]}postUpdate(t,e){}enter(t,e){super.enter(t,e);const o=this;this.paginator=e.append("ul").attr("class","paginator pagination pagination-sm"),this.side=e.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(){o.pageNumber(this.value),o._onSelect(this.value)}),this.side.append("span").classed("side total",!0).text(" of 1")}update(t,o){const s=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(let t=-this.adjacentPages();t<=this.adjacentPages();t++)this.pageNumber()+t>0&&this.pageNumber()+t<=this._tNumPages&&this._numList.push(this.pageNumber()+t);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);const i=this.paginator.selectAll("li").data(this._numList,function(t){return t});i.enter().append(function(t){const e=document.createElement("li");if(t!==s.pageNumber()){const o=document.createElement("a"),s=document.createTextNode(t);return o.appendChild(s),o.href="#",e.appendChild(o),e}{const o=document.createElement("span");return o.innerHTML=t,e.appendChild(o),e}}).on("click",function(t,o){switch(e.d3Event().preventDefault(),s.side.select(".currentPageNumber").property("value",s.pageNumber()),t){case"first":1!==s.pageNumber()&&(s.pageNumber(1),s._onSelect(1,"previous"));break;case"last":s.pageNumber()!==s._tNumPages&&(s.pageNumber(s._tNumPages),s._onSelect(s._tNumPages,"previous"));break;default:s.pageNumber(t),s._onSelect(t)}}),i.classed("active",function(t,e){return t===s.pageNumber()}).select("a").text(function(t){return t}),i.exit().remove(),i.order(),0===this.numItems()&&e.select(t).remove()}exit(t,e){super.exit(t,e)}};n(Jt,"Paginator");let Qt=Jt;Qt.prototype._class+=" other_Paginator",Qt.prototype.publish("itemsPerPage",2,"number","Pagination items per page",null,{tags:["Private"]}),Qt.prototype.publish("numItems",10,"number","Pagination total number of items",null,{tags:["Private"]}),Qt.prototype.publish("pageNumber",1,"number","Pagination set or get the page number",null,{tags:["Private"]}),Qt.prototype.publish("adjacentPages",2,"number","Number of page indexes either side of current one",null,{tags:["Private"]}),Qt.prototype.publish("bottom",20,"number","Pagination bottom offset",null,{tags:["Private"]}),Qt.prototype.publish("right",20,"number","Pagination right offset",null,{tags:["Private"]});const Kt=class _Table extends e.HTMLWidget{_paginator;_selectionBag;_selectionPrevClick;_paginatorTableSpacing;tableDiv;thead;table;fixedHead;fixedHeadTable;fixedThead;unfixedThead;tbody;tfoot;fixedCol;fixedColTable;fixedColHead;fixedColHeadRow;fixedColBody;fixedColFoot;fixedColFootRow;_prevDescending;_prevSortByFieldIndex;_hasChildWidgets;_tNumPages;_empty_col_idx_arr;constructor(){super(),this._tag="div",this.columns([]),this._paginator=new Qt,this._selectionBag=new e.Utility.Selection(this),this._selectionPrevClick=null,this._paginatorTableSpacing=4}size(t){const e=super.size.apply(this,arguments);if(arguments.length&&this.tableDiv){const t=this.showHeader()&&this.fixedHeader()?this.thead.property("offsetHeight"):0;this.tableDiv.style("width",this._size.width+"px").style("height",this._size.height-t+"px"),this._element.style("width",this._size.width+"px").style("height",this._size.height+"px")}return e}isHidden(t){if(this.pivot())return!1;if(-1!==this.hiddenColumns().indexOf(t))return!0;const e=this.fields();return!(!e||!e[t]||"hidden"!==e[t].type()&&-1===this._empty_col_idx_arr.indexOf(t))}tableColumns(t){const e=this.columns.apply(this,arguments);return!arguments.length&&this.pivot()?this._db.column(0):e}tableData(t){const e=this.data.apply(this,arguments);return!arguments.length&&this.pivot()?this._db.columns().filter(function(t,e){return e>0}):e}field(t,e){const o={transform:n(t=>t,"transform")};return this.pivot()?0===e?o:this.fields()[t+1]:-1===t?o:this.fields()[e]}calcFieldsIndex(t){let e=-1,o=0;const s=this.columns().length;let i=0;for(;e<s&&i<=t;)e++,this.isHidden(e)?o++:i++;return t+o}getEmptyColumnIdxArr(t,e){const o=[];if(this.hideEmptyColumns())for(let s=0;s<t.length;s++){let t=!0;for(let o=0;o<e.length;o++)if(-1===["",null,void 0].indexOf(e[o][s])){t=!1;break}t&&o.push(s)}return o}enter(t,e){super.enter(t,e),this._placeholderElement.style("overflow","hidden"),this.tableDiv=e.append("div").attr("class","tableDiv"),this.table=this.tableDiv.append("table"),this.fixedHead=e.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=e.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")}update(t,o){super.update(t,o);const s=this,i=s.tableColumns(),r=s.tableData(),a=this.tableDiv.node().scrollLeft;this._empty_col_idx_arr=this.getEmptyColumnIdxArr(i,r),this.element().selectAll("table,tbody,th,td").style("width",null),!this.sortByFieldIndex_exists()||this._prevSortByFieldIndex===this.sortByFieldIndex()&&this._prevDescending===this.descending()||(e.Utility.multiSort(r,[{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");const l=this.thead.selectAll("th").data(this.showHeader()?i.filter(function(t,e){return!s.isHidden(e)&&-1===s._empty_col_idx_arr.indexOf(e)}):[]),c=l.enter().append("th").each(function(t){const o=e.select(this);o.append("span").attr("class","thText"),o.append("span").attr("class","thIcon")}).on("click",function(t,e){s.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){const o=s.calcFieldsIndex(e);return s.field(-1,o).transform(t)}),c.select(".thIcon").text(function(t,e){return s.descending()?s.sortByFieldIndex()===e?"":"":s.sortByFieldIndex()===e?"":""}),l.exit().remove(),c.order(),this.paginationLimit()&&this.pagination(r.length>=parseInt(this.paginationLimit())),this.pagination()){null===this._paginator.target()&&this._paginator.target(o.node());const t=this._calcRowsPerPage(c);this.itemsPerPage(t),this._paginator.numItems(r.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){s.pageNumber(t),s.render()}}else this._paginator.numItems(0);const u=this.pageNumber()-1,h=this.itemsPerPage(),p=u*h,d=u*parseInt(h)+parseInt(h);let g;g=this.topN()?r.slice(0,this.topN()):this.pagination()?r.slice(p,d):r;const f=[this.totalledLabel()?this.totalledLabel():null];if(0!==this.totalledColumns().length){for(let e=0;e<this.totalledColumns().length;e++)this.totalledColumns()[e]=+this.totalledColumns()[e];for(let e=1;e<i.length;e++){let t=0;if(-1!==this.totalledColumns().indexOf(e)){for(let o=0;o<g.length;o++)t+=g[o][e];f.push(t)}else f.push("")}const t=this.tfoot.selectAll("td").data(f);t.enter().append("td").merge(t).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 s.fields()[e].transform(t)}),t.exit().remove()}const m=this.tbody.selectAll("tr.tr_"+this.id()).data(g.map(function(t,e){for(let o=0;o<t.length;++o)void 0===t[o]&&(t[o]=null);return{rowIdx:e,row:t}})),y=m.enter().append("tr").attr("class","tr_"+this.id()).on("click.selectionBag",function(t){if(t.row){const e=t.row,o=t.rowIdx;s.selectionBagClick(e,o),s.applyRowStyles(s.getBodyRow(o)),s.applyFirstColRowStyles(s.getFixedRow(o))}},!0).on("mouseover",function(t){if(t.row){const e=t.rowIdx,o=s.getFixedRow(e);o.empty()||o.classed("hover",!0);const i=s.getBodyRow(e);i.classed("hover",!0),s.applyStyleToRows(i),s.applyFirstColRowStyles(o)}}).on("mouseout",function(t){if(t.row){const e=t.rowIdx,o=s.getFixedRow(e);o.classed("hover",!1);const i=s.getBodyRow(e);i.classed("hover",!1),s.applyStyleToRows(i),s.applyFirstColRowStyles(o)}}).merge(m).classed("selected",function(t){const e=t.row;return s._selectionBag.isSelected(s._createSelectionObject(e))}).classed("trId"+this._id,!0);m.exit().remove(),this.applyStyleToRows(y);const _=y.selectAll(".td_"+this.id()).data(function(t,e){return t.row.filter(function(t,e){return e<i.length&&!s.isHidden(e)&&-1===s._empty_col_idx_arr.indexOf(e)}).map(function(e,o){return{rowInfo:t,colIdx:o,cell:e}})});_.enter().append("td").attr("class","td_"+this.id()).on("click",function(t){t.rowInfo&&s.click(s.rowToObj(t.rowInfo.row),s.columns()[t.colIdx],s._selectionBag.isSelected(s._createSelectionObject(t.rowInfo.row)))}).on("dblclick",function(t,e){t.rowInfo&&s.dblclick(s.rowToObj(t.rowInfo.row),s.columns()[t.colIdx],s._selectionBag.isSelected(s._createSelectionObject(t.rowInfo.row)))}).each(function(t,o){const i=s.getColumnAlignment(t.rowInfo.rowIdx,t.colIdx,t.cell);e.select(this).style("height",null).style("text-align",i).style("vertical-align",s.verticalAlign()).classed("tr-"+t.rowInfo.rowIdx+"-td-"+o,!0)}).merge(_).each(function(t){const o=e.select(this);if(t.cell instanceof e.Widget){o[s.renderHtmlDataCells()?"html":"text"](null);const i=o.selectAll(".div_"+s.id()).data([t.cell],function(t){return t.id()});i.exit().each(function(t){t.target(null)}).remove(),i.enter().append("div").attr("class","div_"+s.id()).style("width",s.minWidgetWidth()+"px").style("height",s.minWidgetHeight()+"px").each(function(t){const o=e.select(this);t._parentWidget=s,t._class.indexOf("childWidget")<0&&(t._class="childWidget "+t._class),t.target(null).target(o.node())}).merge(i).each(function(t){t.resize().lazyRender(),s._hasChildWidgets=!0})}else{o.selectAll(".div_"+s.id()).remove();const e=s.calcFieldsIndex(t.colIdx);o[s.renderHtmlDataCells()?"html":"text"](s.field(t.rowInfo.rowIdx,e).transform(t.cell))}}),_.exit().remove();const b=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);let w=0;const x=this.fixedColHeadRow.selectAll("th").data(this.fixedColumn()&&this.showHeader()?[i[0]]:[]),v=x.enter().append("th").each(function(t){const o=e.select(this);o.append("span").attr("class","thText"),o.append("span").attr("class","thIcon")}).on("click",function(t,e){s.headerClick(t,e)}).merge(x).style("background-color",this.theadRowBackgroundColor()).style("border-color",this.theadCellBorderColor()).style("color",this.theadFontColor()).style("font-size",this.theadFontSize());v.select(".thText").style("font-family",this.theadFontFamily()).text(function(t){return t}),v.select(".thIcon").text(function(t,e){return s.descending()?s.sortByFieldIndex()===e?"":"":s.sortByFieldIndex()===e?"":""}),x.exit().remove();const C=this.fixedColBody.selectAll("tr").data(this.fixedColumn()?g:[]),S=C.enter().append("tr").attr("class",function(){return"trId"+s._id}).merge(C).on("click",function(t,o){e.select(y[0][o]).on("click.selectionBag")(y.data()[o],o)}).on("mouseover",function(t,o){e.select(y[0][o]).on("mouseover")(y.data()[o],o)}).on("mouseout",function(t,o){e.select(y[0][o]).on("mouseout")(y.data()[o],o)}).classed("selected",function(t){return s._selectionBag.isSelected(s._createSelectionObject(t))});C.exit().remove();const R=S.selectAll("td").data(function(t,e){return[t[0]]}),I=R.enter().append("td").merge(R)[this.renderHtmlDataCells()?"html":"text"](function(t){return"string"==typeof t?t.trim():"number"==typeof t?t:""});R.exit().remove();const W=this.fixedColFootRow.selectAll("td").data(this.fixedColumn()&&this.totalledLabel()?[this.totalledLabel()]:[]),k=W.enter().append("td").merge(W)[this.renderHtmlDataCells()?"html":"text"](function(t){return"string"==typeof t?t.trim():"number"==typeof t?t:""});let T;if(W.exit().remove(),this.fixedColumn()&&!this.fixedSize()&&k.length&&(this.showHeader()?(k.property("offsetWidth"),k.property("offsetWidth"),w=k.property("offsetWidth")):w=k.property("offsetWidth"),this.fixedCol.style("position","absolute").style("margin-top",-this.tableDiv.property("scrollTop")+b+"px"),I.style("width",w+"px"),this.fixedColHead.style("position","absolute").style("margin-top",(this.fixedHeader()?this.tableDiv.property("scrollTop"):0)-b+"px"),v.style("width",w+"px"),y.each(function(t,o){const s=e.select(this).select("td").property("offsetHeight");e.select(I[o][0]).style("height",s+"px")})),this.table.style("margin-left",-w+"px"),this.tableDiv.style("margin-left",w+"px").style("width",this.width()-w+"px"),y.empty()||this.setColumnWidths(y),this.fixedSize()){const t=e.select(".tableDiv > table").node();if(t){let e,i;T=t.getBoundingClientRect(),0!==T.width&&0!==T.height?(P(),E()):(T.height-b<=s.tableDiv.property("offsetHeight")?E():s.fixedHeader()?(e=s.tableDiv.property("offsetHeight"),e+="px"):e="100%",T.width-w<s.tableDiv.property("offsetWidth")?P():s.fixedColumn()?(i=s.tableDiv.property("offsetWidth")-w,i+="px"):i="100%"),o.classed("childWidget")&&(s._placeholderElement.style("width",i+"px").style("height",e+"px"),s.tableDiv.style("overflow","hidden")),s.size({width:i,height:e})}}function P(){T.width,s.tbody.property("offsetWidth")}function E(){s.tbody.property("offsetHeight")}this.setOnScrollEvents(this.tableDiv.node(),b),n(P,"calcWidth"),n(E,"calcHeight"),this._paginator.render(),setTimeout(function(){s._paginator.right((s.hasVScroll(o)?e.Platform.getScrollbarWidth():0)+s._paginatorTableSpacing).bottom((s.hasHScroll(o)?e.Platform.getScrollbarWidth():0)+s._paginatorTableSpacing).render(function(){s.tableDiv.node().scrollLeft=a})},0)}exit(t,e){this._paginator.target(null),super.exit(t,e)}setColumnWidths(t){const o=t.filter(function(t,e){return 0===e});let s=e.select(null);o.each(function(t){s=e.selectAll(this.childNodes)});const i=this.fixedHeader()?this.thead.property("offsetHeight"):0;let n=1;const r={};s.each(function(t,e){r[e]=this.offsetWidth});this.thead.selectAll("th").each(function(t,o){const i=this.offsetWidth,a=s.empty()?0:r[o],l=i>=a?i:a;this.style.width=l+"px",s.filter((t,e)=>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")}getBodyRow(t){return this.table.selectAll("tbody tr.trId"+this._id).filter(function(e,o){return o===t})}getFixedRow(t){return this._element.selectAll(".rows-wrapper tbody tr").filter(function(e,o){return o===t})}setOnScrollEvents(t,e){const o=this;t.onscroll=function(t){const s=t.target.scrollTop,i=t.target.scrollLeft;o.fixedHeader()&&o.thead.style("margin-left",-i+"px"),o.fixedColumn()&&(o.fixedCol.style("margin-top",-s+e+"px"),o.fixedHeader()&&o.fixedColHead.style("margin-top",s-e+"px"))}}_generateTempRow(){const t=this.tbody.append("tr");return t.append("td").text("QQQ"),t}_createSelectionObject(t){const o=this;return{_id:t,element:n(()=>o.tbody?o.tbody.selectAll("tr").filter(function(e){return e===t}):e.select(null),"element")}}_calcRowsPerPage(t){0===this._paginator.numItems()&&(this._paginator.numItems(1),this.itemsPerPage(1)),this._paginator.render();const o=this.thead.selectAll("th").node()?this.thead.selectAll("th").node().clientHeight:0,s=this.tfoot.selectAll("td").node()?this.tfoot.selectAll("td").node().clientHeight:0,i=this._generateTempRow(),n=i.node().clientHeight;i.remove();const r=this.calcHeight(this._paginator.element());let a=Math.floor((this.height()-o-s-r-(this.table.style("width")>=this.table.style("width")?e.Platform.getScrollbarWidth():0)-2*this._paginatorTableSpacing)/n)||1;return 0!==this.totalledColumns().length&&(a-=1),a}sort(t){return this.sortByFieldIndex()!==t?this.descending(!1):this.descending(!this.descending()),this.sortByFieldIndex(t),this}selection(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})}selectionBagClick(t,o){if(this.multiSelect()&&e.d3Event().shiftKey&&this._selectionPrevClick){let e=!1;const o=this.tableData().filter(function(o,s){let i=!1;return o!==t&&o!==this._selectionPrevClick||(e&&(i=!0),e=!e),e||i},this);this.selection(o)}else if(this.multiSelect())this._selectionBag.click(this._createSelectionObject(t),e.d3Event),this._selectionPrevClick=t;else{const e=this._createSelectionObject(t);this._selectionBag.click(e,{ctrlKey:this._selectionBag.isSelected(e)}),this._selectionPrevClick=t}this.render()}applyHoverRowStyles(t){t.style("color",this.tbodyHoverRowFontColor()).style("background-color",this.tbodyHoverRowBackgroundColor())}applySelectedRowStyles(t){t.style("color",this.tbodySelectedRowFontColor()).style("background-color",this.tbodySelectedRowBackgroundColor())}applyRowStyles(t,e=!1){const 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())}applyFirstColRowStyles(t){this.applyStyleToRows(t,!0)}applyStyleToRows(t,o=!1){o=void 0!==o&&o;const s=this;t.each(function(){const t=e.select(this);t.classed("hover")?s.applyHoverRowStyles(t):t.classed("selected")?s.applySelectedRowStyles(t):s.applyRowStyles(t,o)})}getColumnAlignment(t,e,o){const s=this.calcFieldsIndex(e);switch(this.field(t,s).__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}serializeState(){return{selection:this._selectionBag.get().map(function(t){return t._id}),data:this.data()}}deserializeState(t){if(t){if(t.selection){const e=this;this._selectionBag.set(t.selection.map(function(t){return e._createSelectionObject(t)}))}t.data&&this.data(t.data)}return this}click(t,e,o){}dblclick(t,e,o){}headerClick(t,e){this.sort(e).render()}};n(Kt,"Table");let Zt=Kt;function te(t){return'<div class="colorBlock" style="background-color:'+t+';"></div>'}Zt.prototype._class+=" other_Table",Zt.prototype.publish("renderHtmlDataCells",!1,"boolean","enable or disable HTML within cells",null,{tags:["Private"]}),Zt.prototype.publish("pagination",!0,"boolean","Enable or disable pagination",null,{tags:["Private"]}),Zt.prototype.publish("paginationLimit",null,"number","Maximum number of rows allowed before pagination defaults to on",null,{tags:["Private"]}),Zt.prototype.publishProxy("itemsPerPage","_paginator"),Zt.prototype.publishProxy("pageNumber","_paginator","pageNumber",1),Zt.prototype.publishProxy("adjacentPages","_paginator"),Zt.prototype.publish("topN",null,"number","Total number or rows of data to be displayed in the table",null,{tags:["Private"]}),Zt.prototype.publish("pivot",!1,"boolean","Pivot Table"),Zt.prototype.publish("showHeader",!0,"boolean","Show or hide the table header",null,{tags:["Private"]}),Zt.prototype.publish("fixedHeader",!0,"boolean","Enable or disable fixed table header",null,{tags:["Private"]}),Zt.prototype.publish("fixedColumn",!1,"boolean","Enable or disable fixed first column",null,{tags:["Private"]}),Zt.prototype.publish("multiSelect",!1,"boolean","Multiple Selection",null,{tags:["Basic"]}),Zt.prototype.publish("fixedSize",!1,"boolean","Fix Size to Min Width/Height"),Zt.prototype.publish("hideEmptyColumns",!1,"boolean","Hide columns with all empty cells"),Zt.prototype.publish("theadFontSize",null,"string","Table head font size",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("tbodyFontSize",null,"string","Table body font size",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("tfootFontSize",null,"string","Table body font size",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("theadFontColor",null,"html-color","Table head font color",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("tbodyFontColor",null,"html-color","Table body font color",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("tfootFontColor",null,"html-color","Table body font color",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("theadFontFamily",null,"string","Table head font family",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("tbodyFontFamily",null,"string","Table body font family",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("tfootFontFamily",null,"string","Table body font family",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("theadCellBorderColor",null,"html-color","Table head cell border color",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("tfootCellBorderColor",null,"html-color","Table head cell border color",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("theadRowBackgroundColor",null,"html-color","Table head row color",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("tfootRowBackgroundColor",null,"html-color","Table head row color",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("tbodyCellBorderColor",null,"html-color","Table body cell border color",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("tbodyRowBackgroundColor",null,"html-color","Table body row color",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("tbodyFirstColFontColor",null,"html-color","Table body first column font color",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("tbodyFirstColBackgroundColor",null,"html-color","Table body first column background color",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("tbodyHoverRowFontColor",null,"html-color","Table body hover row font color",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("tbodyHoverRowBackgroundColor",null,"html-color","Table body hover row background color",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("tbodySelectedRowFontColor",null,"html-color","Table body selected row color",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("tbodySelectedRowBackgroundColor",null,"html-color","Table body selected row color",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("tableZebraColor",null,"html-color","Table zebra row color",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("totalledColumns",[],"array","Array of indices of the columns to be totalled",null,{tags:["Basic"],optional:!0,disable:n(t=>t.pivot(),"disable")}),Zt.prototype.publish("totalledLabel",null,"string","Adds a label to the first column of the 'Totalled' row",null,{tags:["Basic"],optional:!0,disable:n(t=>t.pivot(),"disable")}),Zt.prototype.publish("hiddenColumns",[],"array","Array of indices of the columns to be hidden",null,{tags:["Basic"],optional:!0,disable:n(t=>t.pivot(),"disable")}),Zt.prototype.publish("stringAlign","left","set","Cell alignment for strings",["left","right","center"],{tags:["Basic"],optional:!0}),Zt.prototype.publish("numberAlign","right","set","Cell alignment for numbers",["left","right","center"],{tags:["Basic"],optional:!0}),Zt.prototype.publish("verticalAlign",null,"set","Cell vertical alignment",[null,"middle","top","bottom"],{tags:["Basic"],optional:!0}),Zt.prototype.publish("minWidgetWidth",320,"number","Minimum width of a child widget",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("minWidgetHeight",240,"number","Minimum height of a child widget",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("sortByFieldIndex",null,"number","Index for the field/column to sort the data",null,{tags:["Basic"],optional:!0}),Zt.prototype.publish("descending",!1,"boolean","Direction for sorting the data: ascending (true) or descending (false)",null,{tags:["Basic"],optional:!0}),n(te,"_htmlColorBlock");const ee=class _Legend extends Zt{_targetWidget;_targetWidgetMonitor;constructor(){super(),this.showHeader(!1),this.pagination(!1)}isRainbow(){const t=this.getWidget();return t&&t._palette&&"rainbow"===t._palette.type()}targetWidget(t){if(!arguments.length)return this._targetWidget;this._targetWidget=t,this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor);const e=this;return this._targetWidgetMonitor=this._targetWidget.monitor(function(t,o,s,i){switch(t){case"chart":case"columns":case"data":case"paletteID":e.lazyRender()}}),this}getWidget(){return this._targetWidget&&"chart_MultiChart"===this._targetWidget.classID()?this._targetWidget.chart():this._targetWidget}getPalette(){const 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")}enter(t,o){super.enter(t,o),e.select(t.parentNode).style("overflow-y","auto"),this.renderHtmlDataCells(!0),this.fixedHeader(!1),this.fixedSize(!0),o.classed("other_Legend",!0)}update(t,o){let s=[];if(this._targetWidget){const t=this.getPalette();switch(t.type()){case"ordinal":const o=t;switch(this.dataFamily()){case"2D":s=this._targetWidget.data().map(function(t){return[te(o(t[0])),t[0]]},this);break;case"ND":s=this._targetWidget.columns().filter(function(t,e){return e>0}).map(function(t){return[te(o(t)),t]},this)}break;case"rainbow":const i=t,n=e.format(this.rainbowFormat()),r=this.getWidget(),a=this.rainbowBins(),l=r._dataMinWeight,c=r._dataMaxWeight,u=(c-l)/(a-1);s.push([te(i(l,l,c)),n(l)]);for(let t=1;t<a-1;++t){const e=u*t;s.push([te(i(e,l,c)),n(Math.floor(e))])}s.push([te(i(c,l,c)),n(c)])}}this.columns(["Key","Label"]),this.data(s),super.update(t,o),o.classed("horiz-legend","horizontal"===this.orientation());const i=o.select(".tableDiv > table"),n=i.node().getBoundingClientRect(),r=this._placeholderElement.node().getBoundingClientRect();o.select(".tableDiv").style("overflow","visible");const a=r.height/2-n.height/2,l=r.width/2-n.width/2;i.style("position","absolute").style("top",a+"px").style("left",l+"px");const c=this.pageNumber()-1,u=this.itemsPerPage(),h=c*u,p=c*parseInt(u)+parseInt(u);let d;d=this.pagination()?this.data().slice(h,p):this.data();const g=this.tbody.selectAll("tr").data(d),f=this;g.on("click",function(t,e){f.onClick(t,e)}).on("dblclick",function(t,e){f.onDblClick(t,e)}).on("mouseover",function(t,e){f.onMouseOver(t,e)})}exit(t,e){this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor),super.exit(t,e)}onClick(t,e){}onDblClick(t,e){}onMouseOver(t,e){}};n(ee,"Legend");let oe=ee;oe.prototype._class+=" other_Legend",oe.prototype.publish("dataFamily","ND","set","Type of data",["1D","2D","ND","map","any","other"],{tags:["Private"]}),oe.prototype.publish("orientation","vertical","set","Orientation of Legend rows",["vertical","horizontal"],{tags:["Private"]}),oe.prototype.publish("rainbowFormat",",","string","Rainbow number formatting",null,{tags:["Private"],optional:!0,disable:n(t=>!t.isRainbow(),"disable")}),oe.prototype.publish("rainbowBins",8,"number","Number of rainbow bins",null,{tags:["Private"],disable:n(t=>!t.isRainbow(),"disable")});const se=Zt.prototype.getBBox;oe.prototype.getBBox=function(t,o){const s=se.apply(this,arguments),i=this.element().select(".tableDiv > table");if(!i.empty()){const t=i.node().getBoundingClientRect(),n=t.width+8+(this.hasVScroll(this._placeholderElement)?e.Platform.getScrollbarWidth():0),r=t.height+8+(this.hasHScroll(this._placeholderElement)?e.Platform.getScrollbarWidth():0);return{x:s.x,y:s.y,width:(o?Math.round(n):n)*this._scale,height:(o?Math.round(r):r)*this._scale}}return s};const ie=class _MorphText extends e.SVGWidget{_fontWidth;_textElement;constructor(){super()}enter(t,e){if(!this.fontSize()){const e=window.getComputedStyle(t,null);this.fontSize(parseInt(e.fontSize))}this._fontWidth=32*this.fontSize()/48,this._textElement=e.append("g")}dateTime(){const 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(),s=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()+" "+s+":"+o+":"+e+i}update(t,e){const o=this,s=this._textElement.selectAll("text").data(this.data(),function(t){return t.id});s.attr("class","update"),this.transition.apply(s).attr("x",function(t,e){return(-o.data().length/2+e)*o._fontWidth+o._fontWidth/2});const i=s.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),s.exit().attr("class","exit"),this.transition.apply(s.exit()).attr("y",(this.reverse()?-1:1)*this._fontWidth*2).style("fill-opacity",1e-6).remove()}};n(ie,"MorphText");let ne=ie;ne.prototype._class+=" other_MorphText",ne.prototype.publish("anchor","middle","set","Sets anchor point",["middle"],{tags:["Basic"]}),ne.prototype.publish("fontSize",14,"number","Sets fontsize",null,{tags:["Basic"]}),ne.prototype.publish("reverse",!1,"boolean","Reverse Animation",null,{tags:["Basic"]}),ne.prototype.publish("text","","string","Sets text/data of widget",null,{tags:["Basic"]});const re=ne.prototype.text;ne.prototype.text=function(t){const e=re.apply(this,arguments);if(arguments.length){const e={},o=t.split("");this.data(o.map(function(t){const o="_"+t;return void 0===e[o]&&(e[o]=0),e[o]++,{text:t,id:t.charCodeAt(0)+1024*e[o]}}))}return e};const ae=class _NestedTable extends Zt{constructor(){super(),this.minWidgetHeight(240),this.minWidgetWidth(360)}};n(ae,"NestedTable");let le=ae;le.prototype._class+=" other_NestedTable";const ce=le.prototype.columns;le.prototype.columns=function(t){return arguments.length?(this._columns=t,ce.call(this,t.map(function(t){return"object"==typeof t?t.label:t}))):ce.apply(this,arguments)};const ue=le.prototype.data;le.prototype.data=function(t){if(arguments.length){const e=this;return ue.call(this,t.map(function(t){return t.map(function(t,o){if(t instanceof Array){let s=[];if("object"==typeof e._columns[o]&&e._columns[o].columns)s=e._columns[o].columns;else for(let i=0;i<t.length;++i)s.push(e._columns[o]+"."+i);return(new Zt).columns(s).data(t)}return t})}))}return ue.apply(this,arguments)};const he=class _Column extends e.PropertyExt{_owner;constructor(){super()}owner(t){return arguments.length?(this._owner=t,this):this._owner}valid(){return!!this.headerLabel()}};n(he,"Column");let pe=he;pe.prototype._class+=" other_Opportunity.Column",pe.prototype.publish("headerLabel",null,"string","Header value of a table",function(){return this._owner?this._owner.columns():[]},{tags:["Basic"],optional:!0});const de=class _MouseHoverColumn extends e.PropertyExt{_owner;constructor(){super()}owner(t){return arguments.length?(this._owner=t,this):this._owner}valid(){return!!this.hoverValue()&&!!this.hoverList()}};n(de,"MouseHoverColumn");let ge=de;ge.prototype._class+=" other_Opportunity.MouseHoverColumn",ge.prototype.publish("hoverValue",null,"string","Hover value of a table",function(){return this._owner?this._owner.columns():[]},{tags:["Basic"],optional:!0}),ge.prototype.publish("hoverList",null,"set","Hover value of a table",function(){return this._owner?this._owner.getIds():[]},{tags:["Basic"],optional:!0});const fe=class _ColumnDropdown extends e.PropertyExt{_owner;constructor(){super()}owner(t){return arguments.length?(this._owner=t,this):this._owner}valid(){return!!this.columnIndex()&&!!this.ColumnDropdownList()}};n(fe,"ColumnDropdown");let me=fe;me.prototype._class+=" other_Opportunity.ColumnDropdown",me.prototype.publish("columnIndex",null,"number","Column index for display context data based on column dropdown list selction",{},{tags:["Basic","Shared"]}),me.prototype.publish("ColumnDropdownList",null,"set","column value of a table",function(){return this._owner?this._owner.getIds():[]},{tags:["Basic"],optional:!0});const ye=class _Opportunity extends e.SVGWidget{groupCount;svg;tooltipdiv;Column;MouseHoverColumn;ColumnDropdown;constructor(){super(),this._drawStartPos="origin",this.groupCount=7}enter(t,o){super.enter(t,o);const s=25*(this.data().length+1)+30;this.svg=o.append("g").attr("width",100*this.groupCount+1).attr("height",s),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)}update(t,o){super.update(t,o);const s=this,i=this.data(),n=this.opportunityId();i.sort(function(t,e){return t.cur_group>e.cur_group?1:t.cur_group<e.cur_group?-1:0});const r=[];for(let e=1;e<=s.groupCount;e++)r.push(e);const a=30,l=14,c=25*(i.length+1)+a,u=this.width(),h=30,p=u/s.groupCount-h,d=this.svg.selectAll(".group").data(r);d.enter().append("rect").attr("class","group"),d.attr("x",function(t,e){return e*u/s.groupCount+1}).attr("y",a).attr("width",u/this.groupCount).attr("height",c-a),d.exit().remove();const g=this.svg.selectAll(".group_headings").data(r);if(g.enter().append("text").attr("class","group_headings").attr("y",20),g.attr("x",function(t,e){return e*u/s.groupCount+u/s.groupCount/s.groupCount}).text(function(t,e){return s.headerLabels().length>0&&s.headerLabels()[e]&&s.headerLabels()[e].headerLabel()?s.headerLabels()[e].headerLabel():""}),g.exit().remove(),"prev_group"===this.previousGroup()&&"cur_group"===this.currentGroup()){const t=this.svg.selectAll(".node_date_change").data(i);t.enter().append("g").attr("class","node_date_change update").on("mouseover",function(t){s.tooltipdiv.transition().duration(200).style("opacity",.9);let o="<span style='font-weight:bolder'>Close Date Change </span><br/>";s.mouseHover().forEach(function(e,s){void 0!==e.hoverValue()&&(o=o+"<span style='font-weight:bold'>"+e.hoverValue()+": </span>"+t[e.hoverList()]+"<br/>")});let i=t.prevdate+"";i=i.replace(/(\d\d\d\d)(\d\d)(\d\d)/g,"$3-$2-$1");let 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>"+i+"<br/><span style='font-weight:bold'>To: </span>"+n+"<br/>";const r=e.d3Event();s.tooltipdiv.html(o).style("left",r.pageX+"px").style("top",r.pageY-50+"px")}).on("mouseout",function(t){s.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",l).attr("rx",6).attr("ry",6)}),t.attr("transform",function(t,e){return"translate("+(9*u/s.groupCount+h-80)+","+(e+24*e+12+a)+")"}),t.exit().remove();const o=this.svg.selectAll(".node_prev_group").data(i);o.enter().append("g").attr("class","node_prev_group").on("mouseover",function(t,o){s.tooltipdiv.transition().duration(200).style("opacity",.9);let i="";s.mouseHover().forEach(function(e,o){void 0!==e.hoverValue()&&(i=i+"<span style='font-weight:bold'>"+e.hoverValue()+": </span>"+t[e.hoverList()]+"<br/>")});const n=e.d3Event();s.tooltipdiv.html(i).style("left",n.pageX+"px").style("top",n.pageY-100+"px")}).on("mouseout",function(t){s.tooltipdiv.transition().duration(500).style("opacity",0)}).each(function(t){const 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")}),o.classed("update",!0).classed("changed",function(t){return 0!==t.delta}).attr("transform",function(t,e){return"translate("+((t.prev_group-1)*u/s.groupCount+15)+","+(e+24*e+10+a)+")"}).each(function(t){const 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?p:0}).attr("y1",7).attr("x2",function(t){return t.delta>0?p+h-4+(Math.abs(t.delta)-1)*(u/s.groupCount):-30-(Math.abs(t.delta)-1)*(u/s.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()});o.select(".node_prev_rect").attr("width",p).attr("height",l);o.select(".node_prev_text").attr("dy",10).attr("dx",p/4).text(function(t){return"number"==typeof t[n]?t[n]:t[n].substring(0,14)}),o.exit().remove();const r=this.svg.selectAll(".node_cur_group").data(i);r.enter().append("g").attr("class","node_cur_group").attr("transform",function(t,e){return"translate("+((t.prev_group-1)*u/s.groupCount+15)+","+(e+24*e+10+a)+")"}).on("mouseover",function(t,o){s.tooltipdiv.transition().duration(200).style("opacity",.9);let i="";s.mouseHover().forEach(function(e,o){void 0!==e.hoverValue()&&(i=i+"<span style='font-weight:bold'>"+e.hoverValue()+": </span>"+t[e.hoverList()]+"<br/>")});const n=e.d3Event();s.tooltipdiv.html(i).style("left",n.pageX+"px").style("top",n.pageY-100+"px")}).on("mouseout",function(t){s.tooltipdiv.transition().duration(500).style("opacity",0)}).each(function(t){const o=e.select(this);o.append("rect").attr("class","node_cur_rect").attr("fill",function(t){let e;return e=t.delta<0||7===t.cur_group?"#F78181":"#A9F5A9",e}).attr("rx",6).attr("ry",6),o.append("a").append("text").attr("class","node_cur_text")}),r.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)*u/s.groupCount+15)+","+(e+24*e+10+a)+")"}).each("end",function(){e.selectAll(".arrow").style("opacity","1")});r.select(".node_cur_group a").classed("update",!0).attr("xlink:href",function(t){return s.url()+t.id}).attr("xlink:show","new");r.select(".node_cur_rect").attr("width",p).attr("height",l);r.select(".node_cur_text").classed("update",!0).attr("dy",10).attr("dx",p/4).style("fill","blue").text(function(t){return"number"==typeof t[n]?t[n]:t[n].substring(0,14)}),r.exit().remove()}for(let f=0;f<s.columnData().length;f++)if(s.columnData()[f]&&s.columnData()[f].ColumnDropdownList()){const t=this.svg.selectAll(".columnDataText_"+f).data(i);t.enter().append("g").attr("class","columnDataText_"+f+" update").each(function(t){e.select(this).append("text")}),t.attr("transform",function(t,e){return"translate("+(s.columnData()[f].columnIndex()*u/s.groupCount+15)+","+(e+24*e+12+a)+")"}).attr("width",5).attr("height",l).attr("rx",6).attr("ry",6);t.select("text").attr("y",-6).attr("dy",28).attr("dx",0).attr("height",20).attr("width",29).text(function(t,e){return t[s.columnData()[f].ColumnDropdownList()]}),t.exit().remove()}}exit(t,e){super.exit(t,e)}getIds(){const t=this.columns();return t.unshift("default"),t}};n(ye,"Opportunity");let _e=ye;function be(t){return t.publishedProperties(!1,!0)}function we(t,e){t&&t.forEach(function(t){t.widgetWalker(e)})}function xe(t,e,o){t.widgetWalker(function(t){t.propertyWalker(e,o)})}function ve(t,e){return JSON.stringify(Ce(t,e))}function Ce(t,e){e=e||["surface","Color","Font","palette"];const o={};function s(t,e){let o=!1;for(const s in e)if(-1!==t.indexOf(e[s])){o=!0;break}return o}return xe(t,null,function(t,i){if((t[i.id+"_modified"]()||t.publishedProperty(i.id).origDefaultValue!==t.publishedProperty(i.id).defaultValue)&&s(i.id,e)){const e=t._class.trim().split(" ");for(const s in e)if(e.HasOwnProperty(s)){if(void 0===o[e[s]]&&(o[e[s]]={}),void 0===o[e[s]][i.id]){o[e[s]][i.id]=t[i.id]();break}if(o[e[s]][i.id]===t[i.id]())break}}}),n(s,"_isFilterMatch"),o}function Se(t,e){xe(t,null,function(t,e){t.publishedProperty(e.id).defaultValue=t.publishedProperty(e.id).origDefaultValue}),"function"==typeof e&&e.call(this)}function Re(t,e,o){const s=this;xe(t,null,function(t,o){switch(o.type){case"widget":return s.applyTheme(t[o.id](),e),!0;case"widgetArray":return t[o.id]().forEach(function(t){s.applyTheme(t,e)},this),!0;default:t.applyTheme(e)}}),"function"==typeof o&&o.call(this)}function Ie(t,e,o,s){const 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((e,n)=>{if(e[n.id+"_modified"]())switch(n.type){case"widget":return i.__properties[n.id]=Ie(e[n.id](),null,o,s&&!t.serializeState),!0;case"widgetArray":case"propertyArray":i.__properties[n.id]=[];return e[n.id]().forEach(e=>{i.__properties[n.id].push(Ie(e,null,o,s&&!t.serializeState))}),!0;default:i.__properties[n.id]=e[n.id]()}},e),"marshaller_Graph"===t.classID()){const e=t.data().vertices;e&&(this.__vertices=e.map(e=>Ie(e,null,o,s&&!t.serializeState)))}return o&&t.data&&(i.__data||(i.__data={}),i.__data.data=t.data()),s&&(t.serializeState?i.__state=t.serializeState():t.data&&(i.__state={data:t.data()})),i}function We(t,e,o,s){return JSON.stringify(Ie(t,e,o,s))}_e.prototype._class+=" other_Opportunity",_e.prototype.Column=pe,_e.prototype.MouseHoverColumn=ge,_e.prototype.ColumnDropdown=me,_e.prototype.publish("previousGroup","","set","label in Opportunity",function(){return this.getIds()},{tags:["Basic","Shared"]}),_e.prototype.publish("currentGroup","","set","label in Opportunity",function(){return this.getIds()},{tags:["Basic","Shared"]}),_e.prototype.publish("opportunityId","id","set","Id for label in Opportunity",function(){return this.getIds()},{tags:["Basic","Shared"]}),_e.prototype.publish("url",null,"string","URL in Opportunity",{},{tags:["Basic","Shared"]}),_e.prototype.publish("width",1100,"number","label in Opportunity",{},{tags:["Basic","Shared"]}),_e.prototype.publish("addColumn",null,"string","number of columns in a table",{},{tags:["Basic","Shared"],editor_input:n((t,e,o,s)=>{o.append("button").attr("id",t.id()+"_addColumn"+s.id).classed("property-input custom-editor-input addColumn update",!0).text("AddColumn").on("click",function(){e.groupCount=e.groupCount+1;t.setProperty(e,s.id,"Added a new column")})},"editor_input")}),_e.prototype.publish("removeColumn",null,"string","number of columns in a table",function(){return this.columns()},{tags:["Basic","Shared"],editor_input:n((t,e,o,s)=>{o.append("button").attr("id",t.id()+"_removeColumn"+s.id).classed("property-input custom-editor-input removeColumn update",!0).text("RemoveColumn").on("click",function(){e.groupCount=e.groupCount-1;t.setProperty(e,s.id,"Removed a column")})},"editor_input")}),_e.prototype.publish("headerLabels",[],"propertyArray","Source Columns",null,{autoExpand:pe}),_e.prototype.publish("mouseHover",[],"propertyArray","mouse hover options",null,{autoExpand:ge}),_e.prototype.publish("columnData",[],"propertyArray","column data",null,{autoExpand:me}),n(be,"discover"),n(we,"widgetArrayWalker"),n(xe,"widgetPropertyWalker"),n(ve,"serializeTheme"),n(Ce,"serializeThemeToObject"),n(Se,"removeTheme"),n(Re,"applyTheme"),n(Ie,"serializeToObject"),n(We,"serialize");const ke=Object.freeze(Object.defineProperty({__proto__:null,applyTheme:Re,discover:be,removeTheme:Se,serialize:We,serializeTheme:ve,serializeThemeToObject:Ce,serializeToObject:Ie,widgetArrayWalker:we,widgetPropertyWalker:xe},Symbol.toStringTag,{value:"Module"}));function Te(t){switch(t){case"widget":case"widgetArray":case"propertyArray":return!0}return!1}n(Te,"hasProperties");const Pe=class _PropertyEditor extends e.HTMLWidget{_widgetOrig;_parentPropertyEditor;_show_settings;_selectedItems;__meta_sorting;_watch;_childPE=e.local();constructor(){super(),this._parentPropertyEditor=null,this._tag="div",this._show_settings=!1}parentPropertyEditor(t){return arguments.length?(this._parentPropertyEditor=t,this):this._parentPropertyEditor}depth(){let t=0,e=this.parentPropertyEditor();for(;e;)++t,e=e.parentPropertyEditor();return t}_show_header=!0;show_header(t){return arguments.length?(this._show_header=t,this):this._show_header}show_settings(t){return arguments.length?(this._show_settings=t,this):this._show_settings}rootWidgets(){return this._selectedItems&&this._selectedItems.length?this._selectedItems:this.show_settings()?[this]:this.widget()?[this.widget()]:[]}update(t,o){super.update(t,o);const s=this,i=this.rootWidgets().filter(function(t){return!(t._owningWidget&&t._owningWidget.excludeObjs instanceof Array&&-1!==t._owningWidget.excludeObjs.indexOf(t.classID()))}),n=o.selectAll(`table.property-table.table-${this.depth()}`).data(i,function(t){return"function"!=typeof t.id?`meta-${t.id}`:t.id()});n.enter().append("table").attr("class",`property-table table-${this.depth()}`).each(function(){const t=e.select(this);s._show_header&&null===s.parentPropertyEditor()&&t.append("thead").append("tr").append("th").attr("colspan","2").each(function(){s.enterHeader(e.select(this))}),t.append("tbody")}).merge(n).each(function(t){const o=e.select(this);s._show_header&&null===s.parentPropertyEditor()&&s.updateHeader(o.select("thead > tr > th")),s.renderInputs(o.select("tbody"),t)}),n.exit().each(function(){s.renderInputs(o.select("tbody"),null)}).remove()}exit(t,e){super.exit(t,e),this.watchWidget(null)}watchDepth=0;watchWidget(t){if(this._watch&&(window.__hpcc_debug&&(--this.watchDepth,console.info("watchDepth: "+this.watchDepth)),this._watch.remove(),delete this._watch),t){const e=this;this._watch=t.monitor(function(t,o,s){if(s!==o){(e.parentPropertyEditor()||e).lazyRender()}}),window.__hpcc_debug&&(++this.watchDepth,console.info("watchDepth: "+this.watchDepth))}}enterHeader(t){const 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-${e.depth()} > tbody > tr > .headerRow > .peInput > .property-table-collapsed`).classed("property-table-collapsed",!1),e.element().selectAll(`.table-${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-${e.depth()} > tbody > tr > .headerRow > .peInput > div`).classed("property-table-collapsed",!0),e.element().selectAll(`.table-${e.depth()} > tbody > tr > .headerRow > .peInput > i`).classed("fa-minus-square-o",!1).classed("fa-plus-square-o",!0)}e.refreshExpandIcon()});const 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()})}updateHeader(t){const e=this.widget();let 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"))}peInputCount(){return this.element().selectAll(`.table-${this.depth()} > tbody > tr > .headerRow > .peInput > div`).size()}peInputCollapsedCount(){return this.element().selectAll(`.table-${this.depth()} > tbody > tr > .headerRow > .peInput > div.property-table-collapsed`).size()}peInputIcon(){const t=this.peInputCollapsedCount();return 0===t?"fa-caret-down":t===this.peInputCount()?"fa-caret-up":"fa-caret-right"}refreshExpandIcon(){const t=this.peInputIcon();this.element().select(`.table-${this.depth()} > thead > tr > th > .expandIcon`).classed("fa-caret-up",!1).classed("fa-caret-right",!1).classed("fa-caret-down",!1).classed(t,!0)}refreshSortIcon(t,e=!1){const o=this.sorting(),s=this.sorting_options(),i=this.__meta_sorting.ext.icons;e?(t.classed(i[s.indexOf(o)],!1),this.sorting(s[(s.indexOf(o)+1)%s.length]).render()):t.classed(i[s.indexOf(o)%s.length],!0).attr("title",o)}refreshHideParamsIcon(t){t.classed("fa-eye",!this.hideNonWidgets()).classed("fa-eye-slash",this.hideNonWidgets())}gatherDataTree(t){if(!t)return null;const e={label:t.id()+" ("+t.classID()+")",children:[]};return be(t).forEach(function(o){const s={label:o.id,children:[]};switch(o.type){case"widget":s.children.push(this.gatherDataTree(t[o.id]()));break;case"widgetArray":case"propertyArray":const e=t[o.id]();e&&e.forEach(function(t){s.children.push(this.gatherDataTree(t))},this)}e.children.push(s)},this),e}getDataTree(){return this.gatherDataTree(this.widget())}_rowSorting(t){if("type"===this.sorting()){const 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})}filterInputs(t){const e=be(t);if((this.filterTags()||this.excludeTags().length>0||this.excludeParams.length>0)&&t instanceof _PropertyEditor==!1){const o=this;return e.filter(function(e,s){if(t[e.id+"_hidden"]&&t[e.id+"_hidden"]())return!1;for(const i of o.excludeParams()){const o=i.split(".");let s,n;if(o.length>2?(s=o[0],n=o[2]):(s=o[0],n=o[1]),-1!==t.class().indexOf(s))return e.id!==n}return!(o.excludeTags().length>0&&e.ext&&e.ext.tags&&e.ext.tags.some(function(t){return o.excludeTags().indexOf(t)>-1}))&&!(!(o.filterTags()&&e.ext&&e.ext.tags&&-1!==e.ext.tags.indexOf(o.filterTags()))&&o.filterTags())})}return e}renderInputs(t,o){const s=this;let i=[];const 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 Te(t.type)})),this._rowSorting(i));const r=t.selectAll("tr.prop"+this.id()).data(i,function(t){return t.id});r.enter().append("tr").attr("class","property-wrapper prop"+this.id()).each(function(t){const i=e.select(this);if(Te(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);const e=i.append("td").classed("property-input-cell",!0);s.enterInputs(o,e,t)}}).merge(r).each(function(t){const 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),Te(t.type)?s.updateWidgetRow(o,i.select("td"),t):s.updateInputs(o,t)}),r.exit().each(function(t){const i=e.select(this);Te(t.type)&&s.updateWidgetRow(o,i.select("td"),null)}).remove(),r.order()}updateWidgetRow(t,o,s){let i=[];t&&s&&(i=t[s.id]()||[]);let n=i instanceof Array?i:[i];if(s&&s.ext&&s.ext.autoExpand){let e=!0;const o=n.filter(function(o,s){return e=o.valid(),o._owner=t,e||s===n.length-1},this),i=t[s.id+"_disabled"]&&t[s.id+"_disabled"]();let r=!!(n.length-o.length);if(e&&!i){r=!0;const e=(new s.ext.autoExpand).owner(t);o.push(e)}r&&(t[s.id](o),n=o)}const r=this;o.classed("headerRow",!0);const a=o.selectAll(`div.peInput-${this.depth()}`).data(n,function(t){return t.id()});a.enter().append("div").attr("class",`peInput peInput-${this.depth()}`).each(function(t){const o=e.select(this);o.append("span"),o.append("i").attr("class","fa").on("click",function(t){const s=o.select("div");s.classed("property-table-collapsed",!s.classed("property-table-collapsed")),e.select(this).classed("fa-minus-square-o",!s.classed("property-table-collapsed")).classed("fa-plus-square-o",s.classed("property-table-collapsed")),r.refreshExpandIcon()});const i=o.append("div");r._childPE.set(this,(new _PropertyEditor).label(s.id).target(i.node()))}).merge(a).each(function(t){const o=e.select(this).select("div");e.select(this).select("span").text(`${s.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")),r._childPE.get(this).parentPropertyEditor(r).showFields(r.showFields()).showData(r.showData()).sorting(r.sorting()).filterTags(r.filterTags()).excludeTags(r.excludeTags()).excludeParams(r.excludeParams()).hideNonWidgets(r.hideNonWidgets()&&t._class.indexOf("layout_")>=0).widget(t).render()}),a.exit().each(function(t){r._childPE.get(this).widget(null).render().target(null),r._childPE.remove(this)}).remove()}setProperty(t,o,s){let i,n,r,a=this;for(;a&&t;){if(a===this&&(r=t[o](),t[o](s)),a){n=a;const t=a.widget();t instanceof e.Widget&&(i=t)}a=a.parentPropertyEditor()}i&&i.render(),n&&n.broadcast(o,s,r,t)}enterInputs(t,o,s){o.classed(s.type+"-cell",!0);const i=this;switch("function"==typeof s.ext.editor_input&&s.ext.editor_input(this,t,o,s),s.type){case"boolean":o.append("input").attr("id",this.id()+"_"+s.id).classed("property-input",!0).attr("type","checkbox").on("change",function(){i.setProperty(t,s.id,this.checked)});break;case"set":o.append("select").attr("id",this.id()+"_"+s.id).classed("property-input",!0).on("change",function(){i.setProperty(t,s.id,this.value)});break;case"array":case"object":o.append("textarea").attr("id",this.id()+"_"+s.id).classed("property-input",!0).attr("autocomplete","off").attr("autocorrect","off").attr("autocapitalize","off").attr("spellcheck","false").on("change",function(){let e;try{e=JSON.parse(this.value)}catch(o){e=this.value}i.setProperty(t,s.id,e)});break;default:s.ext&&s.ext.range?(o.append("span").classed("property-input-span",!0).attr("id",this.id()+"_"+s.id+"_currentVal").text(s.defaultValue),o.append("input").attr("type","range").attr("step",s.ext.range.step).attr("min",s.ext.range.min).attr("max",s.ext.range.max).attr("id",this.id()+"_"+s.id).classed("property-input",!0).on("input",function(){i.setProperty(t,s.id,this.value),e.select("#"+this.id+"_currentVal").text("Current Value: "+this.value)}).on("change",function(){i.setProperty(t,s.id,this.value),e.select("#"+this.id+"_currentVal").text("Current Value: "+this.value)})):(o.append(s.ext&&s.ext.multiline?"textarea":"input").attr("id",this.id()+"_"+s.id).classed("property-input",!0).attr("autocomplete","off").attr("autocorrect","off").attr("autocapitalize","off").attr("spellcheck","false").on("change",function(){i.setProperty(t,s.id,this.value)}),"html-color"!==s.type||e.Platform.isIE||o.append("input").attr("id",this.id()+"_"+s.id+"_2").classed("property-input",!0).attr("type","color").on("change",function(){i.setProperty(t,s.id,this.value)}))}}updateInputs(t,o){const s=e.selectAll("#"+this.id()+"_"+o.id+", #"+this.id()+"_"+o.id+"_2"),i=t?t[o.id]():"";switch(s.property("disabled",t[o.id+"_disabled"]&&t[o.id+"_disabled"]()),s.property("invalid",t[o.id+"_valid"]&&!t[o.id+"_valid"]()),o.type){case"boolean":s.property("checked",i);break;case"set":const r=s.selectAll("option").data(t[o.id+"_options"]());r.enter().append("option").merge(r).attr("value",t=>t&&void 0!==t.value?t.value:t).text(t=>t&&void 0!==t.text?t.text:t),r.exit().remove(),s.property("value",i);break;case"array":case"object":s.property("value",JSON.stringify(i,n(function(t,o){return o instanceof e.Widget?We(o):o},"replacer")," "));break;default:o.ext&&o.ext.range&&e.select("#"+this.id()+"_"+o.id+"_currentVal").text("Current Value: "+i),s.property("value",i&&i.length&&i.length>1e5?"...too big to display...":i)}}};n(Pe,"PropertyEditor");let Ee=Pe;Ee.prototype._class+=" other_PropertyEditor",Ee.prototype.publish("showFields",!1,"boolean","If true, widget.fields() will display as if it was a publish parameter.",null,{tags:["Basic"]}),Ee.prototype.publish("showData",!1,"boolean","If true, widget.data() will display as if it was a publish parameter.",null,{tags:["Basic"]}),Ee.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"]}),Ee.prototype.publish("hideNonWidgets",!1,"boolean","Hides non-widget params (at this tier only)",null,{tags:["Basic"]}),Ee.prototype.publish("label","","string","Label to display in header of property editor table",null,{tags:["Basic"]}),Ee.prototype.publish("filterTags","","set","Only show Publish Params of this type",["Basic","Intermediate","Advance",""],{}),Ee.prototype.publish("excludeTags",["Private"],"array","Exclude this array of tags",null,{}),Ee.prototype.publish("excludeParams",[],"array","Exclude this array of params (widget.param)",null,{}),Ee.prototype.publish("widget",null,"widget","Widget",null,{tags:["Basic"],render:!1});const Be=Ee.prototype.widget;Ee.prototype.widget=function(t){if(arguments.length&&Be.call(this)===t)return this;const e=Be.apply(this,arguments);if(arguments.length&&(this.watchWidget(t),t instanceof o.Grid)){const e=this;t.postSelectionChange=function(){e._selectedItems=t._selectionBag.get().map(function(t){return t.widget}),e.lazyRender()}}return e};const De=class _RadioCheckbox extends e.HTMLWidget{_span;_label;_Checkbox;constructor(){super()}rcData(){if(0===this.data().length)return[];const t=this._db.rollupView([this.textColumn(),this.valueColumn()]);let 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()){const t="descending"===this.sort();e.sort(function(e,o){return e.text<o.text?t?1:-1:e.text>o.text?t?-1:1:0})}return e}enter(t,e){super.enter(t,e),this._span=e.append("span"),this._label=this._span.append("label").attr("for",this.id()+"_radioCheckbox"),this._Checkbox=this._span.append("div").attr("id",this.id()+"_radioCheckbox")}update(t,o){super.update(t,o);const s=this;this._label.text(this.label());const i=this._Checkbox.selectAll(".dataRow").data(this.rcData());i.enter().append("div").attr("class","dataRow").each(function(t,o){const i=e.select(this),n=s.id()+"_checkbox_"+o;i.append("input").attr("id",n).attr("name",s.id()+"_radioCheckbox").on("change",function(t){s.handleClick()}),i.append("label").attr("for",n)}),i.each(function(t,o){const i=e.select(this);i.select("input").attr("type",s.multiple()?"checkbox":"radio").attr("value",t.value),i.select("label").text(t.text)}),i.exit().remove(),i.order()}exit(t,e){this._span.remove(),super.exit(t,e)}handleClick(){const t=[];this._Checkbox.selectAll(".dataRow > input").each(function(o,s){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)}click(t,e,o){}};n(De,"RadioCheckbox");let Ne=De;Ne.prototype._class+=" other_RadioCheckbox",Ne.prototype.publish("label",null,"string","Label for RadioCheckbox"),Ne.prototype.publish("valueColumn",null,"set","RadioCheckbox display value",function(){return this.columns()},{optional:!0}),Ne.prototype.publish("textColumn",null,"set","RadioCheckbox value(s)",function(){return this.columns()},{optional:!0}),Ne.prototype.publish("sort",null,"set","Sort contents",["","ascending","descending"],{optional:!0}),Ne.prototype.publish("multiple",!1,"boolean","Multiple selection");const Ae=class _Select extends e.HTMLWidget{_span;_prompt;_select;constructor(){super()}selectData(){if(0===this.data().length)return[];const t=this._db.rollupView([this.textColumn(),this.valueColumn()]);let 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()){const t="descending"===this.sort();e.sort(function(e,o){return e.text<o.text?t?1:-1:e.text>o.text?t?-1:1:0})}return this.optional()&&e.unshift({value:"",text:""}),e}enter(t,o){super.enter(t,o),this._span=o.append("span"),this._prompt=this._span.append("label").attr("for",this.id()+"_select");const s=this;this._select=this._span.append("select").attr("id",this.id()+"_select").on("change",function(t){const o=[],i=s._select.node().options;for(let s=0;s<i.length;++s){const t=i[s];t.selected&&o.push(e.select(t).datum().origRow)}o.length?s.click(s.rowToObj(o[0]),s.valueColumn(),!0):s.click([],s.valueColumn(),!1)})}update(t,e){super.update(t,e),this._prompt.text(this.label()),this._select.attr("multiple",this.multiple()?this.multiple():null).attr("size",this.multiple()&&this.selectSize()?this.selectSize():null);const o=this._select.selectAll(".dataRow").data(this.selectData()),s=o.enter().append("option").attr("class","dataRow").merge(o).attr("value",function(t){return t.value}).text(function(t){return t.text});o.exit().remove(),s.order()}exit(t,e){this._span.remove(),super.exit(t,e)}click(t,e,o){}};n(Ae,"Select");let He=Ae;function Oe(){const t="@hpcc-js/other";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(e){return!1}}He.prototype._class+=" other_Select",He.prototype.publish("label",null,"string","Label for select"),He.prototype.publish("valueColumn",null,"set","Select display value",function(){return this.columns()},{optional:!0}),He.prototype.publish("textColumn",null,"set","Select value(s)",function(){return this.columns()},{optional:!0}),He.prototype.publish("optional",!0,"boolean","Optional Select"),He.prototype.publish("sort",null,"set","Sort contents",["","ascending","descending"],{optional:!0}),He.prototype.publish("multiple",!1,"boolean","Multiple selection"),He.prototype.publish("selectSize",5,"number","Size of multiselect box",null,{disable:n(t=>!t.multiple(),"disable")}),n(Oe,"hasLocalStorage");const Me=Oe()?localStorage:{getItem(t){}},Le=n(function(t){return"function"==typeof window.g_defaultThemes&&window.g_defaultThemes(t),JSON.parse(Me.getItem("themeEditorThemes")||"{}")},"getThemes"),je=n(function(t){return"function"==typeof window.g_defaultSerials&&window.g_defaultSerials(t),JSON.parse(Me.getItem("themeEditorSerials")||"{}")},"getSerials"),ze=n(function(t){const e=Le();let o=[];for(const s in e)o.push(s);return void 0!==t&&void 0!==o[t]&&(o=o[t]),o},"getThemeNames"),Fe=n(function(t){const e=je();let o=[];for(const s in e)o.push(s);return void 0!==t&&void 0!==o[t]&&(o=o[t]),o},"getSerialNames"),Ue=n(function(t){let e=!1;return void 0===t._current_grouping?t._current_grouping=t._group_params_by:t._current_grouping!==t._group_params_by&&(e=!0),void 0===t._showing_columns?t._showing_columns=t.showColumns():t._showing_columns!==t.showColumns()&&(e=!0),void 0===t._showing_data?t._showing_data=t.showData():t._showing_data!==t.showData()&&(e=!0),e},"tableNeedsRedraw"),Ve=n(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()})},"camelizeString"),qe=n(function(t,e,o,s){let i,n="",r="te-input-"+t.id+"-"+s;void 0!==t.ext&&void 0!==t.ext.inputType&&(i=t.ext.inputType),void 0!==t.inputID&&(r=t.inputID);const a="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='"+r+"' "+a+" type='checkbox' class='te-checkbox te-input'"+(e?" checked":"")+">";break;case"number":void 0!==i?"textarea"===i?n="<textarea id='"+r+"' class='te-textarea te-input' "+a+">"+e+"</textarea>":"range"===i&&(n="<input id='"+r+"' class='te-input' type='range' "+a+" value='"+e+"' min='"+t.ext.min+"' max='"+t.ext.max+"' step='"+t.ext.step+"'>"):n="<input id='"+r+"' type='text' class='te-text te-input' "+a+" value='"+e+"'>";break;case"string":void 0!==i?"textarea"===i&&(n="<textarea id='"+r+"' class='te-textarea te-input' "+a+">"+e+"</textarea>"):n="<input id='"+r+"' type='text' class='te-text te-input' value='"+e+"' "+a+">";break;case"html-color":const o=""===e?"":" value='"+e+"'";n="<input id='"+r+"' type='text' class='te-html-color-input te-input' "+a+" "+o+">",n+="<input type='color' class='te-html-color-button te-input' "+a+" "+o+">";break;case"set":n="<select id='"+r+"' class='te-select te-input'"+a+">"+l(t,e)+"</select>";break;case"array":n="<textarea id='"+r+"' class='te-textarea te-input' data-type='array' "+a+">"+e+"</textarea>"}return void 0!==t.ext.saveButton&&(n+="<button id='"+t.ext.saveButtonID+"'>"+t.ext.saveButton+"</button>"),n;function l(t,e){let o="";return t.set.forEach(function(t){o+="<option value='"+t+"'"+(t===e?" selected":"")+">"+t+"</option>"}),o}},"tableInputHtml"),Ge=class _ThemeEditor extends e.HTMLWidget{_current_grouping;_showing_columns;_showing_data;_contentEditors;_showSettings;_defaultThemes;_widgetObjsById;_sharedProperties;getThemes;getSerials;getDefaultThemes;getDefaultSerials;constructor(){super(),this._tag="div",this._current_grouping=void 0,this._showing_columns=void 0,this._showing_data=void 0,this.columns(["Key","Value"]),this._contentEditors=[],this._showSettings=!0,this._defaultThemes=[],this._widgetObjsById={}}showSettings(t){return arguments.length?(this._showSettings=t,this):this._showSettings}onChange(t,e){}enter(t,e){super.enter(t,e),this._placeholderElement.style("overflow","auto")}widgetProperty(t,e,o){return void 0===o?t[e]():t[e](o)}load(t){}save(t){}needsPropTableRedraw(){return null===document.getElementById("te-themeEditorOptions")}update(t,e){super.update(t,e),Ue(this)&&e.selectAll("#"+this._id+" > table").remove(),this._current_grouping=this.paramGrouping(),this._widgetObjsById[this._id]=this,this._sharedProperties=this.findSharedProperties(this.data());if(this.needsPropTableRedraw()&&this.showSettings()){const e=be(this);for(const t in e)if(-1!==e[t].ext.tags.indexOf(this.editorComplexity())){const o=this[e[t].id]();"loadedTheme"!==e[t].id&&"loadedSerial"!==e[t].id||(e[t].inputID="te-load-theme"),e[t].input=qe(e[t],o,[this._id],this._id)}else delete e[t];t.innerHTML=this.propertiesTableHtml(e);const o=document.createEvent("Events");o.initEvent("TE Properties Ready",!0,!0),document.dispatchEvent(o)}this.buildTableObjects(t,this._sharedProperties),this.initFunctionality(t)}exit(t,e){super.exit(t,e)}click(t){}propertiesTableHtml(t){const e={id:"te-themeEditorOptions",label:"Editor Options",rowArr:[]},o={id:"te-tableModeOptions",label:this.themeMode()?"Save/Load Theme":"Save/Load Serial",rowArr:[]};for(const i in t)this.themeMode()?-1===t[i].ext.tags.indexOf("Theme")&&-1===t[i].ext.tags.indexOf("Serial")?e.rowArr.push({th:Ve(t[i].id),td:t[i].input,trClass:"propertyRow"}):-1!==t[i].ext.tags.indexOf("Theme")&&o.rowArr.push({th:Ve(t[i].id),td:t[i].input,trClass:"propertyRow"}):-1===t[i].ext.tags.indexOf("Serial")&&-1===t[i].ext.tags.indexOf("Theme")?e.rowArr.push({th:Ve(t[i].id),td:t[i].input,trClass:"propertyRow"}):-1!==t[i].ext.tags.indexOf("Serial")&&o.rowArr.push({th:Ve(t[i].id),td:t[i].input,trClass:"propertyRow"});let s="";return e.rowArr.length>0&&(s+=this.tableObjHtml(e)),o.rowArr.length>0&&(s+=this.tableObjHtml(o)),s}buildTableObjects(t,e){let o;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:[]}};for(const i in e)this.themeMode()?-1===i.toUpperCase().indexOf("FONT")||-1!==e[i].arr[0].widget._class.indexOf("layout_Surface")&&-1!==i.toUpperCase().indexOf("COLOR")?"paletteID"===i?o.chartColorSection.rowObjArr.push(e[i]):-1!==e[i].arr[0].widget._class.indexOf("layout_Surface")&&o.surfaceSection.rowObjArr.push(e[i]):o.fontSection.rowObjArr.push(e[i]):-1===e[i].arr[0].widget._class.indexOf("layout_Surface")&&o.nonSurfaceSection.rowObjArr.push(e[i]);let s="";for(const i in o)s+=this.sharedPropertyTableHtml(o[i]);t.innerHTML+=s}initFunctionality(t){const e=this;function o(t){if(e.showSettings()){document.getElementById("te-save-button").onclick=function(t){const e=t.target,o=e.previousSibling.value;if(o.length>1){const t=document.getElementById("te-load-theme"),s=t.getElementsByTagName("option");let i=!1;for(const e in s){s[e].value===o&&(i=!0)}i||(t.innerHTML+="<option value='"+o+"'>"+o+"</option>"),e.previousSibling.value="",t.value=o}else alert("Save Name cannot be empty.")}}}function s(t){const o=t.getElementsByClassName("te-input");for(const s in o){if(isNaN(parseInt(s)))break;const t=o[s],i=t.getAttribute("id");"te-load-theme"===i?t.onchange=function(t){const o=t.srcElement;e.load(o.value)}:null!==i&&-1!==i.indexOf("te-input-themeMode")?t.onchange=function(t){const o=t.srcElement;e.themeMode(o.checked);const s=document.getElementById("te-load-theme"),i=null!==s?s.value:"Default";e.load(i)}:"INPUT"!==t.tagName&&"SELECT"!==t.tagName&&"TEXTAREA"!==t.tagName||(t.onchange=function(t){const o=t.srcElement;let s=o.getAttribute("id");-1!==o.className.split(" ").indexOf("te-html-color-button")&&(s=o.previousSibling.getAttribute("id"),o.previousSibling.value=o.value);const i=o.getAttribute("type"),n=s.split("-"),r=n.slice(0,n.length-1).join("-")+"-",a=o.getAttribute("data-wids"),l=o.getAttribute("data-paramid");a.split(",").forEach(function(t){const s=r+t,n=document.getElementById(s);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(a){}}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()})})}}function i(t){const e=t.getElementsByClassName("te-section-table");for(const s in e)if("function"==typeof e[s].getElementsByTagName){e[s].getElementsByTagName("thead")[0].onclick=function(t){let e=t.toElement;"TH"===e.tagName&&(e=e.parentElement.parentElement);const o=e.parentElement;let s;-1===o.className.split(" ").indexOf("expanded")?(o.className="te-section-table expanded",s="shown"):(o.className="te-section-table collapsed",s="hidden");o.getElementsByTagName("tbody")[0].className=s}}const o=t.getElementsByClassName("sharedPropertyRow");for(const s in o)if("function"==typeof o[s].getElementsByClassName){o[s].getElementsByClassName("te-label")[0].onclick=function(t){const e=t.toElement.parentElement;let o;-1===e.className.split(" ").indexOf("expanded")?(e.className="sharedPropertyRow expanded",o="shown"):(e.className="sharedPropertyRow collapsed",o="hidden");let s=e.nextSibling;for(;null!==s;)-1===s.className.split(" ").indexOf("sharedPropertyRow")?(s.className="propertyRow "+o,s=s.nextSibling):s=null}}}i(t),s(t),o(),n(o,"_inputOnClick"),n(s,"_inputOnChange"),n(i,"_expandCollapse")}sharedPropertyTableHtml(t){const e={id:t.id,label:t.label,rowArr:[]};return t.rowObjArr.forEach(function(t){t.arr.forEach(function(r,a){0===a&&e.rowArr.push({th:s(t),td:n(t),trClass:"sharedPropertyRow collapsed"}),e.rowArr.push({th:o(r),td:i(t,a),trClass:"propertyRow hidden"})})}),this.tableObjHtml(e);function o(t){return t.widget.classID().split("_").join("/")+" <i>["+t.widget._id+"]</i>"}function s(t){return Ve(t.id)}function i(t,e){const o=s(t,e);return qe(t,o,[t.arr[e]],t.arr[e].widget._id);function s(t,e){const o=t.arr[e].widget[t.id]();return null!==o?o:""}}function n(t){const e=o(t);return qe(t,e,t.arr,"shared");function o(t){const e=t.arr[0].widget[t.id]();return t.arr.forEach(function(t,o){if(e!==t.widget[t.id]())return""}),null!==e?"array"===t.type?JSON.stringify(e):e:""}}}tableObjHtml(t){let 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>",e+"</table>"}tableRowObjHtml(t){let e=void 0!==t.trClass?"<tr class='"+t.trClass+"'>":"<tr>";return e+="<th class='te-label'>"+t.th+"</th>",e+="<td>"+t.td+"</td>",e+"</tr>"}setWidgetObjsById(t){const 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)}checkTagFilter(t){const e=["Basic"];let o=!1;return t.forEach(function(t){-1!==e.indexOf(t)&&(o=!0)}),o}findSharedProperties(t){const e=this;let o;if(void 0!==t&&t.length>0){let i=[];o={};const n={},r={};t.forEach(function(t){const e=s(t);i=i.concat(e)}),i.forEach(function(t){if(-1!==["widget","widgetArray"].indexOf(t.type))e.setWidgetObjsById(t);else if(e.checkTagFilter(t.ext.tags)){const e=t.id;-1!==t.widget._class.indexOf("Surface")?(void 0===n[e]&&(n[e]={arr:[]}),n[e].id=t.id,n[e].description=t.description,n[e].type=t.type,n[e].set=t.set,n[e].ext=t.ext,n[e].arr.push(t)):(void 0===r[e]&&(r[e]={arr:[]}),r[e].id=t.id,r[e].description=t.description,r[e].type=t.type,r[e].set=t.set,r[e].ext=t.ext,r[e].arr.push(t)),void 0===o[e]&&(o[e]={arr:[]}),o[e].id=t.id,o[e].description=t.description,o[e].type=t.type,o[e].set=t.set,o[e].ext=t.ext,o[e].arr.push(t)}})}return o;function s(t,o){let i=[];if(null!==t){be(t).forEach(function(o,n){if(void 0!==o.ext.tags&&i.push({id:o.id,type:o.type,description:o.description,set:o.set,ext:o.ext,widget:t}),"widgetArray"===o.type){e.widgetProperty(t,o.id).forEach(function(t){const e=s(t);i=i.concat(e)})}else if("widget"===o.type){const n=s(e.widgetProperty(t,o.id));i=i.concat(n)}})}return i}}};n(Ge,"ThemeEditor");let Ye=Ge;Ye.prototype._class+=" other_ThemeEditor",Ye.prototype.publish("themeMode",!0,"boolean","Edit default values",null,{tags:["Basic"]}),Ye.prototype.publish("saveTheme","","string","Save Theme",null,{tags:["Basic","Theme"],saveButton:"Save",saveButtonID:"te-save-button"}),Ye.prototype.publish("loadedTheme",ze(1),"set","Loaded Theme",ze(),{tags:["Basic","Theme"]}),Ye.prototype.publish("saveSerial","","string","Save Serial",null,{tags:["Basic","Serial"],saveButton:"Save",saveButtonID:"te-save-button"}),Ye.prototype.publish("loadedSerial",Fe(0),"set","Loaded Serial",Fe(),{tags:["Basic","Serial"]}),Ye.prototype.publish("showColumns",!0,"boolean","Show Columns",null,{tags:["Intermediate"]}),Ye.prototype.publish("showData",!0,"boolean","Show Data",null,{tags:["Intermediate"]}),Ye.prototype.publish("shareCountMin",1,"number","Share Count Min",null,{tags:["Private"]}),Ye.prototype.publish("paramGrouping","By Param","set","Param Grouping",["By Param","By Widget"],{tags:["Private"]}),Ye.prototype.publish("editorComplexity","Basic","set","Choose what publish properties to display within the editor.",["Basic","Intermediate","Advanced","Private"],{tags:["Private"]}),Ye.prototype.publish("sectionTitle","","string","Section Title",null,{tags:["Private"]}),Ye.prototype.publish("collapsibleSections",!0,"boolean","Collapsible Sections",null,{tags:["Intermediate"]}),Ye.prototype.getThemes=Le,Ye.prototype.getSerials=je,Ye.prototype.getDefaultThemes=ze,Ye.prototype.getDefaultSerials=Fe,t.Audio=I,t.AutoCompleteText=D,t.BUILD_VERSION="3.23.0",t.CalendarHeatMap=X,t.Column=pe,t.ColumnDropdown=me,t.Comms=_t,t.HPCCBadge=qt,t.HeatMap=Ut,t.Html=Yt,t.IconList=Xt,t.Legend=oe,t.MorphText=ne,t.MouseHoverColumn=ge,t.NestedTable=le,t.Opportunity=_e,t.PKG_NAME="@hpcc-js/other",t.PKG_VERSION="3.5.7",t.Paginator=Qt,t.Persist=ke,t.PropertyEditor=Ee,t.RadioCheckbox=Ne,t.Select=He,t.Table=Zt,t.ThemeEditor=Ye,t.cache=Dt,t.createConnection=Nt,t.createResult=Et,t.enableCache=Bt,t.flattenResult=At,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("@hpcc-js/common"),require("@hpcc-js/layout")):typeof define==`function`&&define.amd?define([`exports`,`@hpcc-js/common`,`@hpcc-js/layout`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`@hpcc-js/other`]={},e[`@hpcc-js/common`],e[`@hpcc-js/layout`]))})(this,function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=Object.create,i=Object.defineProperty,__name=(e,t)=>i(e,`name`,{value:t,configurable:!0}),a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,__commonJSMin=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),__exportAll=(e,t)=>{let n={};for(var r in e)i(n,r,{get:e[r],enumerable:!0});return t||i(n,Symbol.toStringTag,{value:`Module`}),n},__copyProps=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e},__toESM=(e,t,n)=>(n=e==null?{}:r(s(e)),__copyProps(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e)),l=`@hpcc-js/other`,u=`3.5.9`,d=`3.25.1`,f=0,p=0,m=0,h=1e3,g,_,v=0,y=0,b=0,x=typeof performance==`object`&&performance.now?performance:Date,S=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function now(){return y||=(S(clearNow),x.now()+b)}function clearNow(){y=0}function Timer(){this._call=this._time=this._next=null}Timer.prototype=timer.prototype={constructor:Timer,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?now():+n)+(t==null?0:+t),!this._next&&_!==this&&(_?_._next=this:g=this,_=this),this._call=e,this._time=n,sleep()},stop:function(){this._call&&(this._call=null,this._time=1/0,sleep())}};function timer(e,t,n){var r=new Timer;return r.restart(e,t,n),r}function timerFlush(){now(),++f;for(var e=g,t;e;)(t=y-e._time)>=0&&e._call.call(null,t),e=e._next;--f}function wake(){y=(v=x.now())+b,f=p=0;try{timerFlush()}finally{f=0,nap(),y=0}}function poke(){var e=x.now(),t=e-v;t>h&&(b-=t,v=e)}function nap(){for(var e,t=g,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:g=n);_=e,sleep(r)}function sleep(e){f||(p&&=clearTimeout(p),e-y>24?(e<1/0&&(p=setTimeout(wake,e-x.now()-b)),m&&=clearInterval(m)):(m||=(v=x.now(),setInterval(poke,h)),f=1,S(wake)))}var Audio=class extends t.HTMLWidget{_sections;constructor(){super(),this._tag=`audio`,this._sections={}}section(e,t,n,r){return arguments.length?arguments.length===1?this._sections[e]:(this._sections[e]={label:e,offset:t,beatLength:n,beatCount:r,endOffset:t+r*n},this):this._sections}getType(e){switch(e){case`mp3`:return`audio/mpeg; codecs='mp3'`;case`ogg`:return`audio/ogg; codecs='vorbis'`}return``}enter(e,t){let n=this;t.on(`play`,function(e){n.onPlay(e)})}update(e,t){t.selectAll(`source`).data(this.source(),function(e){return e}).enter().append(`source`).attr(`src`,function(e){return e})}createTimer(e,t,n){let r=this;timer(function(){return r.onTick(e.label,n,e),!0},n*e.beatLength,t+e.offset)}onTick(e,t,n){}onPlay(e){let t=Date.now();for(let e in this._sections){let n=this._sections[e];for(let e=0;e<n.beatCount;++e)this.createTimer(n,t,e)}}play(e){let t=this;this._element.on(`canplaythrough`,function(e){t.node().play()}),this.node().load()}};Audio.prototype._class+=` other_Audio`,Audio.prototype.publish(`source`,``,`string`,`Audio Source`);var C=__toESM(__commonJSMin(((e,t)=>{var n=(function(){function autoComplete(e){if(!document.querySelector)return;function hasClass(e,t){return e.classList?e.classList.contains(t):RegExp(`\\b`+t+`\\b`).test(e.className)}function addEvent(e,t,n){e.attachEvent?e.attachEvent(`on`+t,n):e.addEventListener(t,n)}function removeEvent(e,t,n){e.detachEvent?e.detachEvent(`on`+t,n):e.removeEventListener(t,n)}function live(e,t,n,r){addEvent(r||document,t,function(t){for(var r,i=t.target||t.srcElement;i&&!(r=hasClass(i,e));)i=i.parentElement;r&&n.call(i,t)})}var t={selector:0,source:0,minChars:3,delay:150,offsetLeft:0,offsetTop:1,cache:1,menuClass:``,renderItem:function(e,t){t=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,`\\$&`);var n=RegExp(`(`+t.split(` `).join(`|`)+`)`,`gi`);return`<div class="autocomplete-suggestion" data-val="`+e+`">`+e.replace(n,`<b>$1</b>`)+`</div>`},onSelect:function(e,t,n){}};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);for(var r=typeof t.selector==`object`?[t.selector]:document.querySelectorAll(t.selector),i=0;i<r.length;i++){var a=r[i];a.sc=document.createElement(`div`),a.sc.className=`autocomplete-suggestions `+t.menuClass,a.autocompleteAttr=a.getAttribute(`autocomplete`),a.setAttribute(`autocomplete`,`off`),a.cache={},a.last_val=``,a.updateSC=function(e,n){var r=a.getBoundingClientRect();if(a.sc.style.left=Math.round(r.left+(window.pageXOffset||document.documentElement.scrollLeft)+t.offsetLeft)+`px`,a.sc.style.top=Math.round(r.bottom+(window.pageYOffset||document.documentElement.scrollTop)+t.offsetTop)+`px`,a.sc.style.width=Math.round(r.right-r.left)+`px`,!e&&(a.sc.style.display=`block`,a.sc.classList.remove(`hide`),a.sc.maxHeight||(a.sc.maxHeight=parseInt((window.getComputedStyle?getComputedStyle(a.sc,null):a.sc.currentStyle).maxHeight)),a.sc.suggestionHeight||(a.sc.suggestionHeight=a.sc.querySelector(`.autocomplete-suggestion`).offsetHeight),a.sc.suggestionHeight))if(!n)a.sc.scrollTop=0;else{var i=a.sc.scrollTop,o=n.getBoundingClientRect().top-a.sc.getBoundingClientRect().top;o+a.sc.suggestionHeight-a.sc.maxHeight>0?a.sc.scrollTop=o+a.sc.suggestionHeight+i-a.sc.maxHeight:o<0&&(a.sc.scrollTop=o+i)}},addEvent(window,`resize`,a.updateSC),document.body.appendChild(a.sc),live(`autocomplete-suggestion`,`mouseleave`,function(e){var t=a.sc.querySelector(`.autocomplete-suggestion.selected`);t&&setTimeout(function(){t.className=t.className.replace(`selected`,``)},20)},a.sc),live(`autocomplete-suggestion`,`mouseover`,function(e){var t=a.sc.querySelector(`.autocomplete-suggestion.selected`);t&&(t.className=t.className.replace(`selected`,``)),this.className+=` selected`},a.sc),live(`autocomplete-suggestion`,`mousedown`,function(e){if(hasClass(this,`autocomplete-suggestion`)){var n=this.getAttribute(`data-val`);a.value=n,t.onSelect(e,n,this),a.sc.style.display=`none`,a.sc.classList.add(`hide`)}},a.sc),a.blurHandler=function(){try{var e=document.querySelector(`.autocomplete-suggestions:hover`)}catch{var e=0}e?a!==document.activeElement&&setTimeout(function(){a.focus()},20):(a.last_val=a.value,a.sc.style.display=`none`,a.sc.classList.add(`hide`),setTimeout(function(){a.sc.style.display=`none`,a.sc.classList.add(`hide`)},350))},addEvent(a,`blur`,a.blurHandler);var suggest=function(e,n){if(!n)var n=a.value;if(a.cache[n]=e,e.length&&n.length>=t.minChars){for(var r=``,i=0;i<e.length;i++)r+=t.renderItem(e[i],n);a.sc.innerHTML=r,a.updateSC(0)}else a.sc.style.display=`none`,a.sc.classList.add(`hide`)};a.keydownHandler=function(e){var n=window.event?e.keyCode:e.which;if((n==40||n==38)&&a.sc.innerHTML){var r,i=a.sc.querySelector(`.autocomplete-suggestion.selected`);return i?(r=n==40?i.nextSibling:i.previousSibling,r?(i.className=i.className.replace(`selected`,``),r.className+=` selected`,a.value=r.getAttribute(`data-val`)):(i.className=i.className.replace(`selected`,``),a.value=a.last_val,r=0)):(r=n==40?a.sc.querySelector(`.autocomplete-suggestion`):a.sc.childNodes[a.sc.childNodes.length-1],r.className+=` selected`,a.value=r.getAttribute(`data-val`)),a.updateSC(0,r),!1}else if(n==27)a.value=a.last_val,a.sc.style.display=`none`,a.sc.classList.add(`hide`);else if(n==13||n==9){a.sc.style.display!==`none`&&e.preventDefault();var i=a.sc.querySelector(`.autocomplete-suggestion.selected`);i&&a.sc.style.display!=`none`&&(t.onSelect(e,i.getAttribute(`data-val`),i),setTimeout(function(){a.sc.style.display=`none`,a.sc.classList.add(`hide`)},20))}},addEvent(a,`keydown`,a.keydownHandler),a.keyupHandler=function(e){var n=window.event?e.keyCode:e.which;if(!n||(n<35||n>40)&&n!=13&&n!=27){var r=a.value;if(r.length>=t.minChars){if(r!=a.last_val){if(a.last_val=r,clearTimeout(a.timer),t.cache){if(r in a.cache){suggest(a.cache[r]);return}for(var i=1;i<r.length-t.minChars;i++){var o=r.slice(0,r.length-i);if(o in a.cache&&!a.cache[o].length){suggest([]);return}}}a.timer=setTimeout(function(){t.source(r,suggest)},t.delay)}}else a.last_val=r,a.sc.style.display=`none`,a.sc.classList.add(`hide`)}},addEvent(a,`keyup`,a.keyupHandler),a.focusHandler=function(e){a.last_val=`
|
|
2
|
+
`,a.keyupHandler(e)},t.minChars||addEvent(a,`focus`,a.focusHandler)}this.destroy=function(){for(var e=0;e<r.length;e++){var t=r[e];removeEvent(window,`resize`,t.updateSC),removeEvent(t,`blur`,t.blurHandler),removeEvent(t,`focus`,t.focusHandler),removeEvent(t,`keydown`,t.keydownHandler),removeEvent(t,`keyup`,t.keyupHandler),t.autocompleteAttr?t.setAttribute(`autocomplete`,t.autocompleteAttr):t.removeAttribute(`autocomplete`),document.body.removeChild(t.sc),t=null}}}return autoComplete})();(function(){typeof define==`function`&&define.amd?define(`autoComplete`,function(){return n}):t!==void 0&&t.exports?t.exports=n:window.autoComplete=n})()}))(),1),AutoCompleteText=class extends t.HTMLWidget{_span;_prompt;_input;_prevMinCharsText;_autoComplete;constructor(){super(),this._tag=`div`}autoCompleteTextData(){return this.data().length===0?[]:this._db.rollupView([this.textColumn(),this.valueColumn()]).entries().map(function(e,t){return{idx:t,text:e.key,value:e.values.length?e.values[0].key:``,origRow:e.values.length&&e.values[0].value.length?e.values[0].value[0]:[]}},this)}enter(e,t){super.enter(e,t),this._span=t.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())}update(e,t){if(super.update(e,t),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();let e=this;this._autoComplete=new C.default({selector:`#`+this.id()+`_input`,minChars:this.minCharsText(),delay:150,offsetLeft:0,offsetTop:1,source:(t,n)=>{let r=e._db.fieldByLabel(e.textColumn());r&&(t=t.toLowerCase(),n(e.autoCompleteTextData().filter(function(e){return e.origRow[r.idx].toLowerCase().indexOf(t)>=0}).map(function(e){return{text:e.origRow[r.idx],rowIdx:e.idx}})))},renderItem:(e,t)=>{t=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,`\\$&`);let n=RegExp(`(`+t.split(` `).join(`|`)+`)`,`gi`);return`<div class="autocomplete-suggestion" data-val="`+e.text+`" data-row-idx="`+e.rowIdx+`">`+e.text.replace(n,`<b>$1</b>`)+`</div>`},onSelect:(t,n,r)=>{let i=+r.getAttribute(`data-row-idx`),a=e.autoCompleteTextData()[i];e.click(e.rowToObj(a.origRow),e.valueColumn(),!0)}})}}exit(e,t){this._autoComplete&&this._autoComplete.destroy(),this._span.remove(),super.exit(e,t)}click(e,t,n){}};AutoCompleteText.prototype._class+=` other_AutoCompleteText`,AutoCompleteText.prototype.publish(`label`,`Label: `,`string`,`Label for AutoCompleteText`),AutoCompleteText.prototype.publish(`textboxWidth`,null,`number`,`width of textbox`,null,{optional:!0}),AutoCompleteText.prototype.publish(`placeholder`,`Search...`,`string`,`Placeholder for AutoCompleteText`),AutoCompleteText.prototype.publish(`valueColumn`,null,`set`,`Select column for autocomplete`,function(){return this.columns()},{optional:!0}),AutoCompleteText.prototype.publish(`textColumn`,null,`set`,`Select value(s)`,function(){return this.columns()},{optional:!0}),AutoCompleteText.prototype.publish(`minCharsText`,1,`number`,`Size of multiAutoCompleteText box`);var w=new Date,T=new Date;function newInterval(e,t,n,r){function interval(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return interval.floor=function(t){return e(t=new Date(+t)),t},interval.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},interval.round=function(e){var t=interval(e),n=interval.ceil(e);return e-t<n-e?t:n},interval.offset=function(e,n){return t(e=new Date(+e),n==null?1:Math.floor(n)),e},interval.range=function(n,r,i){var a=[],o;if(n=interval.ceil(n),i=i==null?1:Math.floor(i),!(n<r)||!(i>0))return a;do a.push(o=new Date(+n)),t(n,i),e(n);while(o<n&&n<r);return a},interval.filter=function(n){return newInterval(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(interval.count=function(t,r){return w.setTime(+t),T.setTime(+r),e(w),e(T),Math.floor(n(w,T))},interval.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?interval.filter(r?function(t){return r(t)%e===0}:function(t){return interval.count(0,t)%e===0}):interval}),interval}var E=6e4,D=864e5,O=6048e5,k=newInterval(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*E)/D},function(e){return e.getDate()-1}).range;function weekday(e){return newInterval(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t*7)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*E)/O})}var A=weekday(0),j=weekday(1),M=weekday(2),N=weekday(3),P=weekday(4),F=weekday(5),I=weekday(6);A.range,j.range,M.range,N.range,P.range,F.range,I.range;var L=newInterval(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()}).range,R=newInterval(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});R.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:newInterval(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})},R.range;var CalendarHeatMap=class extends t.HTMLWidget{_prevDateColumn;_prevAggrType;_prevAggrColumn;_prevAggrDeltaColumn;_view;_parentNode;constructor(){super(),t.Utility.SimpleSelectionMixin.call(this)}calendarData(){if(this.fields().length===0||this.data().length===0)return[];let e=(0,t.timeParse)(this.datePattern()),n=this.aggrDeltaColumn()?(0,t.format)(`.1%`):(0,t.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(t){return t.dateKey=e(t.key),t.formattedValues=n(t.value.aggregate),t.origRows=t.value,t})}calcDelta(e){return(e.Close-e.Open)/e.Open}enter(e,n){super.enter(e,n),(0,t.select)(e.parentNode).style(`overflow-y`,`scroll`).style(`overflow-x`,`hidden`).style(`height`,`100%`).style(`width`,`100%`),this._selection.widgetElement(n)}update(e,n){super.update(e,n),this._palette=this._palette.switch(this.paletteID());let r=this.width(),i=r/12/5,a=i*8,o=this.calendarData(),s=(0,t.map)(o,function(e){return e.dateKey}),c=(0,t.extent)(o,function(e){return e.dateKey.getFullYear()}),l=this,u=n.selectAll(`svg`).data((0,t.range)(+c[0],+c[1]+1)),d=u.enter().append(`svg`).each(function(e){let n=(0,t.select)(this).append(`g`);n.append(`text`).style(`text-anchor`,`middle`),n.append(`g`).attr(`class`,`days`);let r=L(new Date(e,0,1),new Date(e+1,0,1)),i=n.append(`g`).attr(`class`,`months`);r.forEach(function(e){i.append(`path`).attr(`class`,`month`).attr(`d`,calcMonthPath(e)).style(`stroke`,l.monthStrokeColor()).style(`stroke-width`,l.monthStrokeWidth())})}).merge(u).attr(`width`,r).attr(`height`,a);d.select(`g`).attr(`transform`,`translate(`+(r-i*53)/2+`,`+(a-i*7-1)+`)`),d.select(`text`).attr(`transform`,`translate(-6,`+i*3.5+`)rotate(-90)`).text(e=>e),u.exit().remove();let f=(0,t.extent)(o,function(e){return e.value.aggregate});if(this.aggrDeltaColumn()){let e=Math.max(Math.abs(+f[0]),Math.abs(+f[1]));f=[-e,e]}let p=d.select(`.days`).selectAll(`.day`).data(function(e){return k(new Date(e,0,1),new Date(e+1,0,1))}),m=p.enter().append(`rect`).attr(`class`,`day`).call(this._selection.enter.bind(this._selection)).on(`click`,function(e){let t=s.get(e);t&&t.value&&t.value&&t.value.length&&l.click(l.rowToObj(t.value[0]),l.dateColumn(),l._selection.selected(this))}).on(`dblclick`,function(e){let t=s.get(e);t&&t.value&&t.value&&t.value.length&&l.dblclick(l.rowToObj(t.value[0]),l.dateColumn(),l._selection.selected(this))}).each(function(e){(0,t.select)(this).append(`title`)}).merge(p).attr(`x`,function(e){return A.count(R(e),e)*i}).attr(`y`,function(e){return e.getDay()*i}).attr(`width`,i).attr(`height`,i).style(`stroke`,this.dayStrokeColor()).style(`stroke-width`,this.dayStrokeWidth()).style(`fill`,null);m.select(`title`).text(e=>e),m.filter(function(e){return s.has(e)}).style(`fill`,function(e){let t=s.get(e);return!t||!t.value||!t.value.aggregate?null:l._palette(t.value.aggregate,f[0],f[1])}).select(`title`).text(function(e){let t=s.get(e);return t.key+`: `+t.formattedValues}),p.exit().remove();let h=u.select(`.months`).selectAll(`.month`).data(function(e){return L(new Date(e,0,1),new Date(e+1,0,1))});h.enter().append(`path`).attr(`class`,`month`).merge(h).attr(`d`,calcMonthPath).style(`stroke`,this.monthStrokeColor()).style(`stroke-width`,this.monthStrokeWidth()),h.exit().remove();function calcMonthPath(e){let t=new Date(e.getFullYear(),e.getMonth()+1,0),n=e.getDay(),r=A.count(R(e),e),a=t.getDay(),o=A.count(R(t),t);return`M`+(r+1)*i+`,`+n*i+`H`+r*i+`V`+7*i+`H`+o*i+`V`+(a+1)*i+`H`+(o+1)*i+`V0H`+(r+1)*i+`Z`}}exit(e,t){super.exit(e,t)}click(e,t,n){}dblclick(e,t,n){}};CalendarHeatMap.prototype._class+=` other_CalendarHeatMap`,CalendarHeatMap.prototype.mixin(t.Utility.SimpleSelectionMixin),CalendarHeatMap.prototype._palette=t.Palette.rainbow(`default`),CalendarHeatMap.prototype.publish(`paletteID`,`YlOrRd`,`set`,`Color palette for this widget`,CalendarHeatMap.prototype._palette.switch(),{tags:[`Basic`,`Shared`]}),CalendarHeatMap.prototype.publish(`dayStrokeColor`,`#ccc`,`html-color`,`Color of day border`),CalendarHeatMap.prototype.publish(`monthStrokeColor`,`#000`,`html-color`,`Color of month border`),CalendarHeatMap.prototype.publish(`dayStrokeWidth`,1,`number`,`Pixel width of day border`),CalendarHeatMap.prototype.publish(`monthStrokeWidth`,2,`number`,`Pixel width of month border`),CalendarHeatMap.prototype.publish(`dateColumn`,null,`set`,`Date Column`,function(){return this.columns()},{optional:!0}),CalendarHeatMap.prototype.publish(`datePattern`,`%Y-%m-%d`,`string`,`Date Pattern`),CalendarHeatMap.prototype.publish(`aggrType`,null,`set`,`Aggregation Type`,[null,`mean`,`median`,`sum`,`min`,`max`],{optional:!0}),CalendarHeatMap.prototype.publish(`aggrColumn`,null,`set`,`Aggregation Field`,function(){return this.columns()},{optional:!0,disable:e=>!e.aggrType()}),CalendarHeatMap.prototype.publish(`aggrDeltaColumn`,null,`set`,`Aggregation Field`,function(){return this.columns()},{optional:!0,disable:e=>!e.aggrType()});var z=__exportAll({Basic:()=>Basic,Comms:()=>Comms,ESPMappings:()=>ESPMappings,ESPUrl:()=>ESPUrl,HIPIEDatabomb:()=>HIPIEDatabomb,HIPIERoxie:()=>HIPIERoxie,HIPIEWorkunit:()=>HIPIEWorkunit,WsECL:()=>WsECL,WsWorkunits:()=>WsWorkunits$1,createESPConnection:()=>createESPConnection,hookJsonp:()=>hookJsonp}),B=60;function espValFix(e){if(e==null)return null;if(!e.trim)return e.Row?espRowFix(e.Row):e;let t=e.trim();return t!==``&&!isNaN(t)&&(t.length<=1||t[0]!==`0`||t[1]===`.`)?Number(t):t}function espRowFix(e){for(let t in e)e[t]=espValFix(e[t]);return e}var ESPUrl=class{_protocol=`http:`;_hostname=`localhost`;_url;_port;_search;_pathname;_params;_hash;_host;constructor(){}url(e){if(!arguments.length)return this._url;this._url=e;let t=document.createElement(`a`);t.href=this._url;let n={};if(t.search.length){let e=t.search;e[0]===`?`&&(e=e.substring(1)),e=e.split(`&`),e.map(function(e){let t=e.split(`=`);n[decodeURIComponent(t[0])]=decodeURIComponent(t[1])})}for(this._protocol=t.protocol,this._hostname=t.hostname,this._port=t.port,this._pathname=t.pathname;this._pathname.length&&this._pathname[0]===`/`;)this._pathname=this._pathname.substring(1);return this._search=t.search,this._params=n,this._hash=t.hash,this._host=t.host,this}protocol(e){return arguments.length?(this._protocol=e,this):this._protocol}hostname(e){return arguments.length?(this._hostname=e,this):this._hostname}port(e){return arguments.length?(this._port=e,this):this._port}search(e){return arguments.length?(this._search=e,this):this._search}pathname(e){return arguments.length?(this._pathname=e,this):this._pathname}hash(e){return arguments.length?(this._hash=e,this):this._hash}host(e){return arguments.length?(this._host=e,this):this._host}params(e){return arguments.length?(this._params=e,this):this._params}param(e){return this._params[e]}isWsWorkunits(){return this._pathname.toLowerCase().indexOf(`wsworkunits`)>=0||this._params.Wuid}isWorkunitResult(){return this.isWsWorkunits()&&(this._params.Sequence||this._params.ResultName)}isWsEcl(){return this._pathname.toLowerCase().indexOf(`wsecl`)>=0||this._params.QuerySetId&&this._params.Id}isWsWorkunits_GetStats(){return this._pathname.toLowerCase().indexOf(`wsworkunits/wugetstats`)>=0&&this._params.WUID}getUrl(e){return e||={},(e.protocol===void 0?this._protocol:e.protocol)+`//`+(e.hostname===void 0?this._hostname:e.hostname)+`:`+(e.port===void 0?this._port:e.port)+`/`+(e.pathname===void 0?this._pathname:e.pathname)}};function ESPMappings(e){this._mappings=e,this._reverseMappings={};for(let e in this._mappings){this._reverseMappings[e]={};for(let t in this._mappings[e])this._reverseMappings[e][this._mappings[e][t]]=t}}ESPMappings.prototype.contains=function(e,n){return t.Utility.exists(e+`.`+n,this._mappings)},ESPMappings.prototype.mapResult=function(e,t){let n=this._mappings[t];n&&(e[t]=e[t].map(function(e){let t=[];if(n.x&&n.x instanceof Array){t=[];for(let r=0;r<n.x.length;++r)t.push(e[n.y[r]])}else for(let r in n)n[r]===`label`?t[0]=e[r]:n[r]===`weight`&&(t[1]=e[r]);return t},this))},ESPMappings.prototype.mapResponse=function(e){for(let t in e)this.mapResult(e,t)};var V=__name(function(e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];r!=null&&t.push(encodeURIComponent(n)+`=`+encodeURIComponent(r))}return t.join(`&`)},`serialize`),jsonp=function(e,t,n){return new Promise(function(r,i){let a=n*1e3,o=5e3,s=`jsonp_callback_`+Math.round(Math.random()*999999);window[s]=function(e){a=0,doCallback(),r(e)};let c=document.createElement(`script`);c.src=e+(e.indexOf(`?`)>=0?`&`:`?`)+`jsonp=`+s+`&`+V(t),document.body.appendChild(c);let l=setInterval(function(){a<=0?clearInterval(l):(a-=o,a<=0&&(clearInterval(l),doCallback(),i(Error(`Request timeout: `+c.src))))},o);function doCallback(){delete window[s],document.body.removeChild(c)}})},Comms=class extends ESPUrl{_proxyMappings;_mappings;_timeout;_hipieResults;_hipieResultsLength;constructor(){super(),this._proxyMappings={},this._mappings=new ESPMappings({}),this._timeout=B,this._hipieResults={}}hipieResults(e){if(!arguments.length)return this._hipieResults;this._hipieResultsLength=0,this._hipieResults={};let t=this;return e.forEach(function(e){t._hipieResultsLength++,t._hipieResults[e.id]=e}),this}jsonp(e,t){for(let n in this._proxyMappings){let r=e.split(n),i=r[0];if(r.length>1){let a=new ESPUrl().url(e);e=i+this._proxyMappings[n],t.IP=a.hostname(),t.PORT=a.port(),r.length>0&&(t.PATH=r[1]);break}}return jsonp(e,t,this.timeout())}ajax(e,t,n){return new Promise(function(r,i){let a=t;e===`GET`&&n&&(a+=`?`+V(n));let o=new XMLHttpRequest;o.onload=function(e){this.status>=200&&this.status<300?r(JSON.parse(this.response)):i(Error(this.statusText))},o.onerror=function(){i(Error(this.statusText))},o.open(e,a),o.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),e===`GET`?o.send():(o.setRequestHeader(`Content-Type`,`application/x-www-form-urlencoded`),o.send(V(n)))})}get(e,t){return this.ajax(`GET`,e,t)}post(e,t){return this.ajax(`POST`,e,t)}mappings(e){return arguments.length?(this._mappings=new ESPMappings(e),this):this._mappings}proxyMappings(e){return arguments.length?(this._proxyMappings=e,this):this._proxyMappings}timeout(e){return arguments.length?(this._timeout=e||B,this):this._timeout}},Basic=class extends Comms{_cacheCalls;constructor(){super()}cacheCalls(e){return arguments.length?(this._cacheCalls=e,this):this._cacheCalls}call(e,t){let n=this._url+(this._url.indexOf(`?`)>=0?`&`:`?`)+V(e);if(this._cacheCalls){let e=this;return new Promise(function(e,r){let i=JSON.parse(localStorage.getItem(`hpcc.viz.`+n));if(!i)throw Error(`not cached`);t&&(console.error(`Deprecated: callback, use promise (Basic.prototype.call)`),t(i)),e(i)}).catch(function(r){return e.get(n).then(function(e){return localStorage.setItem(`hpcc.viz.`+n,JSON.stringify(e)),t&&(console.error(`Deprecated: callback, use promise (Basic.prototype.call)`),t(e)),e})})}else return localStorage.removeItem(`hpcc.viz.`+n),this.get(n).then(function(e){return t&&(console.error(`Deprecated: callback, use promise (Basic.prototype.call)`),t(e)),e})}};function locateRoxieResponse$1(e){for(let t in e){if(e[t].Row&&e[t].Row instanceof Array)return e;let n;if(typeof e[t]!=`string`&&(n=locateRoxieResponse$1(e[t])),n)return n}return null}__name(locateRoxieResponse$1,`locateRoxieResponse`);function locateRoxieException(e){for(let t in e){if(e[t].Exception&&e[t].Exception instanceof Array)return e[t];let n=locateRoxieException(e[t]);if(n)return n}return null}var WsECL=class extends Comms{_target;_query;constructor(){super(),this._port=`8002`,this._target=``,this._query=``}url(e){let t=super.url.apply(this,arguments);if(arguments.length){this._port=this._port===`8010`?`8002`:this._port;for(let e in this._params)switch(e){case`QuerySetId`:this.target(this._params[e]);break;case`Id`:this.query(this._params[e]);break}let e,t;(!this._target||!this._query)&&(e=this._pathname.split(`/query/`),e.length>=2&&(t=e[1].split(`/`),t.length>=2&&(this.target(t[0]),this.query(t[1]))))}return t}target(e){return arguments.length?(this._target=e,this):this._target}query(e){return arguments.length?(this._query=e,this):this._query}constructUrl(){return Comms.prototype.getUrl.call(this,{pathname:`WsEcl/submit/query/`+this._target+`/`+this._query+`/json`})}call(e,t,n){e||={},e.target=e.target||this._target,e.query=e.query||this._query;let r=this,i=this.getUrl({pathname:`WsEcl/submit/query/`+e.target+`/`+e.query+`/json`});return this.jsonp(i,t).then(function(e){let t=locateRoxieResponse$1(e);if(t||=locateRoxieException(e),e=t,e.Exception)throw Error(e.Exception.reduce(function(e,t,n,r){return e.length&&(e+=`
|
|
3
|
+
`),e+t.Source+` `+t.Code+`: `+t.Message},``));for(let t in e)e[t].Row&&(e[t]=e[t].Row.map(espRowFix));return r._mappings.mapResponse(e),n&&(console.error(`Deprecated: callback, use promise (WsECL.prototype.call)`),n(e)),e})}send(e,t){return this.call({target:this._target,query:this._query},e,t)}},WsWorkunits$1=class extends Comms{static{__name(this,`WsWorkunits`)}_wuid=``;_jobname=``;_sequence=null;_resultName=null;_fetchResultNamesPromise=null;_fetchResultPromise={};_resultNameCache={};_resultNameCacheCount=0;_total;constructor(){super(),this._port=`8010`}url(e){let t=Comms.prototype.url.apply(this,arguments);if(arguments.length){for(let e in this._params)switch(e){case`Wuid`:this.wuid(this._params[e]);break;case`ResultName`:this.resultName(this._params[e]);break;case`Sequence`:this.sequence(this._params[e]);break}if(!this._wuid){let e=this._url.split(`/res/`);if(e.length>=2){let t=e[1].split(`/`);this.wuid(t[0])}}}return t}wuid(e){return arguments.length?(this._wuid=e,this):this._wuid}jobname(e){return arguments.length?(this._jobname=e,this):this._jobname}sequence(e){return arguments.length?(this._sequence=e,this):this._sequence}resultName(e){return arguments.length?(this._resultName=e,this):this._resultName}appendParam(e,t,n){return t?(n&&(n+=`&`),n+e+`=`+t):n}constructUrl(){let e=Comms.prototype.getUrl.call(this,{pathname:`WsWorkunits/res/`+this._wuid+`/`}),t=``;return t=this.appendParam(`ResultName`,this._resultName,t),e+(t?`?`+t:``)}_fetchResult(e,t,n){if(e||={},!this._fetchResultPromise[e.resultname]){e._start=e._start||0,e._count=e._count||-1;let r=this.getUrl({pathname:`WsWorkunits/WUResult.json`}),i={Wuid:e.wuid,ResultName:e.resultname,SuppressXmlSchema:!0,Start:e._start,Count:e._count};this._resultNameCache[e.resultname]={};let a=this;this._fetchResultPromise[e.resultname]=this.jsonp(r,i).then(function(r){for(let e in r){if(!r[e].Result)throw Error(`No result found.`);a._total=r[e].Total,r=r[e].Result;for(let e in r){r=r[e].Row.map(espRowFix);break}break}return a._resultNameCache[e.resultname]=r,n||a._mappings.mapResult(a._resultNameCache,e.resultname),t&&(console.error(`Deprecated: callback, use promise (WsWorkunits.prototype._fetchResult)`),t(a._resultNameCache[e.resultname])),a._resultNameCache[e.resultname]})}return this._fetchResultPromise[e.resultname]}fetchResult(e,t,n){if(e.wuid)return this._fetchResult(e,t,n);if(e.jobname){let r=this;return this.WUQuery(e,function(i){return e.wuid=i[0].Wuid,r._fetchResult(e,t,n)})}}WUQuery(e,n){let r=this.getUrl({pathname:`WsWorkunits/WUQuery.json`}),i={Jobname:e.jobname,Count:1};return this._resultNameCache={},this._resultNameCacheCount=0,this.jsonp(r,i).then(function(e){if(!t.Utility.exists(`WUQueryResponse.Workunits.ECLWorkunit`,e))throw Error(`No workunit found.`);return e=e.WUQueryResponse.Workunits.ECLWorkunit,n&&(console.error(`Deprecated: callback, use promise (WsWorkunits.prototype.WUQuery)`),n(e)),e})}fetchResultNames(e){if(!this._fetchResultNamesPromise){let n=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;let i=this;this._fetchResultNamesPromise=this.jsonp(n,r).then(function(a){return t.Utility.exists(`WUInfoResponse.Workunit.Archived`,a)&&a.WUInfoResponse.Workunit.Archived&&console.warn(`WU is archived: `+n+` `+JSON.stringify(r)),t.Utility.exists(`WUInfoResponse.Workunit.Results.ECLResult`,a)&&a.WUInfoResponse.Workunit.Results.ECLResult.map(function(e){i._resultNameCache[e.Name]=[],++i._resultNameCacheCount}),e&&(console.error(`Deprecated: callback, use promise (WsWorkunits.prototype.fetchResultNames)`),e(i._resultNameCache)),i._resultNameCache})}return this._fetchResultNamesPromise}fetchResults(e,t){let n=this;return this.fetchResultNames().then(function(r){let i=[];for(let e in n._resultNameCache)i.push(n.fetchResult({wuid:n._wuid,resultname:e},null,t));return Promise.all(i).then(function(t){return e&&(console.error(`Deprecated: callback, use promise (WsWorkunits.prototype.fetchResults)`),e(n._resultNameCache)),n._resultNameCache})})}postFilter(e,t){let n={};for(let r in t)n[r]=t[r].filter(function(t,n){for(let n in e)if(t[n]!==void 0&&e[n]!==void 0&&t[n]!=e[n])return!1;return!0});return this._mappings.mapResponse(n),n}send(e,t){let n=this;this._resultNameCacheCount?t(n.postFilter(e,this._resultNameCache)):this.fetchResults(function(r){t(n.postFilter(e,r))},!0)}};function WsWorkunits_GetStats(){Comms.call(this),this._port=`8010`,this._wuid=null}WsWorkunits_GetStats.prototype=Object.create(Comms.prototype),WsWorkunits_GetStats.prototype.url=function(e){let t=Comms.prototype.url.apply(this,arguments);if(arguments.length)for(let e in this._params)switch(e){case`WUID`:this.wuid(this._params[e]);break}return t},WsWorkunits_GetStats.prototype.wuid=function(e){return arguments.length?(this._wuid=e,this):this._wuid},WsWorkunits_GetStats.prototype.constructUrl=function(){return Comms.prototype.getUrl.call(this,{pathname:`WsWorkunits/WUGetStats?WUID=`+this._wuid})},WsWorkunits_GetStats.prototype.send=function(e,n){let r=this.getUrl({pathname:`WsWorkunits/WUGetStats.json?WUID=`+this._wuid});return this.jsonp(r,e).then(function(e){return t.Utility.exists(`WUGetStatsResponse.Statistics.WUStatisticItem`,e)?(n&&(console.error(`Deprecated: callback, use promise (WsWorkunits_GetStats.prototype.send)`),n(e.WUGetStatsResponse.Statistics.WUStatisticItem)),e.WUGetStatsResponse.Statistics.WUStatisticItem):(n&&(console.error(`Deprecated: callback, use promise (WsWorkunits_GetStats.prototype.send)`),n([])),[])})};function HIPIERoxie(){Comms.call(this)}HIPIERoxie.prototype=Object.create(Comms.prototype),HIPIERoxie.prototype.fetchResults=function(e,t){let n=this.getUrl({});this._resultNameCache={},this._resultNameCacheCount=0;let r=this;return this.jsonp(n,e).then(function(e){let n=locateRoxieResponse$1(e);if(n||=locateRoxieException(e),e=n,e.Exception)throw Error(e.Exception.reduce(function(e,t,n,r){return e.length&&(e+=`
|
|
4
|
+
`),e+t.Source+` `+t.Code+`: `+t.Message},``));for(let t in e)e[t].Row&&(r._resultNameCache[t]=e[t].Row.map(espRowFix),++r._resultNameCacheCount);return t&&(console.error(`Deprecated: callback, use promise (HIPIERoxie.prototype.fetchResults)`),t(r._resultNameCache)),r._resultNameCache})},HIPIERoxie.prototype.fetchResult=function(e,t){let n=this;return new Promise(function(r,i){t&&(console.error(`Deprecated: callback, use promise (HIPIERoxie.prototype.fetchResult)`),t(n._resultNameCache[e])),r(n._resultNameCache[e])})},HIPIERoxie.prototype.call=function(e,t){let n=this;return this.fetchResults(e,t).then(function(e){let t={};for(let r in n._hipieResults){let i=n._hipieResults[r];t[i.id]=e[i.from]}return t})};function HIPIEWorkunit(){WsWorkunits$1.call(this)}HIPIEWorkunit.prototype=Object.create(WsWorkunits$1.prototype),HIPIEWorkunit.prototype.fetchResults=function(e){let t=this;return WsWorkunits$1.prototype.fetchResultNames.call(this).then(function(n){let r=[];for(let e in t._hipieResults){let n=t._hipieResults[e];r.push(t.fetchResult(n.from))}return Promise.all(r).then(function(n){return e&&(console.error(`Deprecated: callback, use promise (HIPIEWorkunit.prototype.fetchResults)`),e(t._resultNameCache)),t._resultNameCache})})},HIPIEWorkunit.prototype.fetchResult=function(e,t){return WsWorkunits$1.prototype.fetchResult.call(this,{wuid:this._wuid,resultname:e}).then(function(e){return t&&(console.error(`Deprecated: callback, use promise (HIPIEWorkunit.prototype.fetchResult)`),t(e)),e})},HIPIEWorkunit.prototype.call=function(e,t){let n=this;if(e.refresh||!this._resultNameCache||!this._resultNameCacheCount)return this.fetchResults(t).then(function(t){return filterResults(e)});return new Promise(function(t,n){t(filterResults(e))});function filterResults(e){let t={};for(let n in e)e[n+`_changed`]!==void 0&&(t[n]={value:e[n]});let r={};for(let e in n._hipieResults){let i=n._hipieResults[e],a={};for(let e=0;e<i.filters.length;++e){let n=i.filters[e];n.isRange()||(a[n.fieldid]=t[n.fieldid]||{value:void 0},a[n.fieldid].filter=n)}r[i.id]=n._resultNameCache[i.from].filter(function(e){for(let t in a)if(!a[t].filter.matches(e,a[t].value))return!1;return!0})}return r}};function HIPIEDatabomb(){HIPIEWorkunit.call(this)}HIPIEDatabomb.prototype=Object.create(HIPIEWorkunit.prototype),HIPIEDatabomb.prototype.databomb=function(e){return arguments.length?(this._databomb=e,this):this._databomb},HIPIEDatabomb.prototype.databombOutput=function(e,t){if(arguments.length)return this._resultNameCacheCount++,this._databomb instanceof Array?this._resultNameCache[e]=this._databomb.map(espRowFix):this._resultNameCache[e]=this._databomb[e].map(espRowFix),this},HIPIEDatabomb.prototype.fetchResults=function(e){let t=this;return new Promise(function(n,r){e&&(console.error(`Deprecated: callback, use promise (HIPIEDatabomb.prototype.fetchResults)`),e(t._resultNameCache)),n(t._resultNameCache)})};function createESPConnection(e){e||=document.URL;let t=new ESPUrl().url(e);return t.isWsWorkunits_GetStats()?new WsWorkunits_GetStats().url(e):t.isWsWorkunits()?new WsWorkunits$1().url(e):t.isWsEcl()?new WsECL().url(e):null}function hookJsonp(e){jsonp=e}function nestedRowFix(e){if(e.Row&&e.Row instanceof Array)return e.Row.map(nestedRowFix);if(e instanceof Object)for(let t in e)e[t]=nestedRowFix(e[t]);return e}var H=!1,U={};function BasicComms(){Basic.call(this)}BasicComms.prototype=Object.create(Basic.prototype),BasicComms.prototype.jsonp=function(e,t){let n=JSON.stringify(t);return H&&U[e]&&U[e][n]?Promise.resolve(U[e][n]):Basic.prototype.jsonp.apply(this,arguments).then(function(t){return H&&(U[e]||(U[e]={}),U[e][n]=t),t})};function WsWorkunits(e){BasicComms.call(this),this.url(e+`WsWorkunits/`)}WsWorkunits.prototype=Object.create(BasicComms.prototype),WsWorkunits.prototype.wuQuery=function(e){let t=this.getUrl({pathname:`WsWorkunits/WUQuery.json`}),n={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(let t in e)n[t]=e[t];return this.jsonp(t,n).then(function(e){return e.WUQueryResponse&&e.WUQueryResponse.Workunits?e.WUQueryResponse.Workunits.ECLWorkunit:[]})};function Workunit(e,t){BasicComms.call(this),this.url(e+`WsWorkunits/`),this._wuid=t}Workunit.prototype=Object.create(BasicComms.prototype),Workunit.prototype.wuInfo=function(e){let t=this.getUrl({pathname:`WsWorkunits/WUInfo.json`}),n={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(let t in e)n[t]=e[t];return this.jsonp(t,n).then(function(r){if(H){let i={WUInfoResponse:{Workunit:{}}};for(let t in e){let e=t.substring(7);i.WUInfoResponse.Workunit[e]=r.WUInfoResponse.Workunit[e]}U[t][JSON.stringify(n)]=i}return r})},Workunit.prototype.wuUpdate=function(e){let t=this.getUrl({pathname:`WsWorkunits/WUUpdate.json`}),n={Wuid:this._wuid};for(let t in e)n[t]=e[t];return this.post(t,n)},Workunit.prototype.appData=function(e,t,n){if(arguments.length===2)return this.wuInfo({IncludeApplicationValues:!0}).then(function(n){let r;return n.WUInfoResponse&&n.WUInfoResponse.Workunit&&n.WUInfoResponse.Workunit.ApplicationValues&&n.WUInfoResponse.Workunit.ApplicationValues.ApplicationValue&&n.WUInfoResponse.Workunit.ApplicationValues.ApplicationValue.filter(function(n){return n.Application===e&&n.Name===t}).forEach(function(e){r=e.Value}),r});if(arguments.length===3)return this.wuUpdate({"ApplicationValues.ApplicationValue.0.Application":e,"ApplicationValues.ApplicationValue.0.Name":t,"ApplicationValues.ApplicationValue.0.Value":n,"ApplicationValues.ApplicationValue.itemcount":1})},Workunit.prototype.results=function(){let e=this;return this.wuInfo({IncludeResults:!0}).then(function(n){let r=[];return t.Utility.exists(`WUInfoResponse.Workunit.Results.ECLResult`,n)&&(r=n.WUInfoResponse.Workunit.Results.ECLResult.map(function(t){return new WUResult(e.getUrl({pathname:`WsWorkunits/`}),e._wuid,t.Name)})),r})},Workunit.prototype.result=function(e,t){return e||=this._wuid,createResult(e,t)};function WUResult(e,t,n){BasicComms.call(this),this.url(e+`WUResult.json`),this._wuid=t,this._name=n,this._xmlSchema=null}WUResult.prototype=Object.create(BasicComms.prototype),WUResult.prototype.wuid=function(e){return arguments.length?(this._wuid=e,this):this._wuid},WUResult.prototype.name=function(e){return arguments.length?(this._name=e,this):this._name},WUResult.prototype.query=function(e,t){e||={},t||={};let n={Wuid:this._wuid,ResultName:this._name,SuppressXmlSchema:!0,Start:0,Count:-1};for(let t in e)n[t]=e[t];let r=0;for(let e in t)n[`FilterBy.NamedValue.`+r+`.Name`]=e,n[`FilterBy.NamedValue.`+r+`.Value`]=t[e],++r;r&&(n[`FilterBy.NamedValue.itemcount`]=r);let i=this;return this.jsonp(this.url(),n).then(function(e){return e.WUResultResponse&&e.WUResultResponse.Result&&e.WUResultResponse.Result[i._name]?(H&&(U[i.url()][JSON.stringify(n)]={WUResultResponse:{Result:e.WUResultResponse.Result}}),i._xmlSchema=e.WUResultResponse.Result.XmlSchema,nestedRowFix(e.WUResultResponse.Result[i._name])):[]})};function LogicalFile(e,t){BasicComms.call(this),this.url(e+`WUResult.json`),this._logicalName=t,this._xmlSchema=null}LogicalFile.prototype=Object.create(BasicComms.prototype),LogicalFile.prototype.query=function(e,t){e||={},t||={};let n={Cluster:`hthor`,LogicalName:this._logicalName,SuppressXmlSchema:this._xmlSchema!==null,Start:0,Count:-1};for(let t in e)n[t]=e[t];let r=0;for(let e in t)n[`FilterBy.NamedValue.`+r+`.Name`]=e,n[`FilterBy.NamedValue.`+r+`.Value`]=t[e],++r;r&&(n[`FilterBy.NamedValue.itemcount`]=r);let i=this;return this.jsonp(this.url(),n).then(function(e){return e.WUResultResponse&&e.WUResultResponse.Result&&e.WUResultResponse.Result.Row?(i._xmlSchema=e.WUResultResponse.Result.XmlSchema,nestedRowFix(e.WUResultResponse.Result.Row)):[]})};function RoxieQuery(e,t){BasicComms.call(this);let n=e.split(`/`),r=n.pop();r.toLowerCase()===`json`&&(r=n.pop()),this._queryName=r,this._resultName=t,this.url(n.join(`/`)+`/`+r+`/json`)}RoxieQuery.prototype=Object.create(BasicComms.prototype);function trimRight(e){return e&&e.replace?e.replace(/ +$/,``):e}function postFilter(e,t){return e.filter(function(e){for(let n in t)if(e[n]!==void 0&&trimRight(t[n])!==trimRight(e[n]))return!1;return!0})}function locateRoxieResponse(e){for(let t in e){if(e[t].Row&&e[t].Row instanceof Array)return e;let n=locateRoxieResponse(e[t]);if(n)return n}return null}RoxieQuery.prototype.query=function(e,t){e||={},t||={};let n={};for(let t in e)n[t]=e[t];for(let e in t)n[e]=t[e];let r=this;return this.jsonp(this.url(),n).then(function(e){if(e=locateRoxieResponse(e),e){if(r._resultName){if(e&&e[r._resultName]&&e[r._resultName].Row)return nestedRowFix(postFilter(e[r._resultName].Row,t))}else for(let n in e)if(e[n].Row)return nestedRowFix(postFilter(e[n].Row,t))}return[]})};function createResult(e,t,n){let r=new ESPUrl().url(e);return t.indexOf(`http`)===0?new RoxieQuery(t,n):t.indexOf(`~`)===0||t.indexOf(`::`)>=0?new LogicalFile(r.getUrl({pathname:`WsWorkunits/`}),t):t?new WUResult(r.getUrl({pathname:`WsWorkunits/`}),t,n):null}function enableCache(e){if(!arguments.length)return H;H=e,e||(U={})}function cache(e){if(!arguments.length)return U;U=e}function createConnection(e){if(e||=document.URL,new ESPUrl().url(e).isWsWorkunits()){let t=createESPConnection(e);if(t instanceof WsWorkunits$1&&t.wuid())return new Workunit(t.getUrl({pathname:``}),t.wuid()).url(e)}return null}function flattenResult(e,t){let n={columns:[],data:[]};if(e&&e.length){let r={};if(t&&t.length)t.forEach(function(e){r[e.value.toLowerCase()]=n.columns.length,n.columns.push(e.key)});else for(let t in e[0])r[t.toLowerCase()]=n.columns.length,n.columns.push(t);e.forEach(function(e,t){let i=[];for(let t in e)r[t.toLowerCase()]!==void 0&&(i[r[t.toLowerCase()]]=e[t]);n.data.push(i)})}return n}var W=__toESM(__commonJSMin(((e,t)=>{t!==void 0&&(t.exports=simpleheat);function simpleheat(e){if(!(this instanceof simpleheat))return new simpleheat(e);this._canvas=e=typeof e==`string`?document.getElementById(e):e,this._ctx=e.getContext(`2d`),this._width=e.width,this._height=e.height,this._max=1,this._data=[]}simpleheat.prototype={defaultRadius:25,defaultGradient:{.4:`blue`,.6:`cyan`,.7:`lime`,.8:`yellow`,1:`red`},data:function(e){return this._data=e,this},max:function(e){return this._max=e,this},add:function(e){return this._data.push(e),this},clear:function(){return this._data=[],this},radius:function(e,t){t=t===void 0?15:t;var n=this._circle=this._createCanvas(),r=n.getContext(`2d`),i=this._r=e+t;return n.width=n.height=i*2,r.shadowOffsetX=r.shadowOffsetY=i*2,r.shadowBlur=t,r.shadowColor=`black`,r.beginPath(),r.arc(-i,-i,e,0,Math.PI*2,!0),r.closePath(),r.fill(),this},resize:function(){this._width=this._canvas.width,this._height=this._canvas.height},gradient:function(e){var t=this._createCanvas(),n=t.getContext(`2d`),r=n.createLinearGradient(0,0,0,256);for(var i in t.width=1,t.height=256,e)r.addColorStop(+i,e[i]);return n.fillStyle=r,n.fillRect(0,0,1,256),this._grad=n.getImageData(0,0,1,256).data,this},draw:function(e){this._circle||this.radius(this.defaultRadius),this._grad||this.gradient(this.defaultGradient);var t=this._ctx;t.clearRect(0,0,this._width,this._height);for(var n=0,r=this._data.length,i;n<r;n++)i=this._data[n],t.globalAlpha=Math.max(i[2]/this._max,e===void 0?.05:e),t.drawImage(this._circle,i[0]-this._r,i[1]-this._r);var a=t.getImageData(0,0,this._width,this._height);return this._colorize(a.data,this._grad),t.putImageData(a,0,0),this},_colorize:function(e,t){for(var n=0,r=e.length,i;n<r;n+=4)i=e[n+3]*4,i&&(e[n]=t[i],e[n+1]=t[i+1],e[n+2]=t[i+2])},_createCanvas:function(){return typeof document<`u`?document.createElement(`canvas`):new this._canvas.constructor}}}))(),1),G=window.simpleheat||W&&W.default||W,HeatMap=class extends t.CanvasWidget{_heat;constructor(){super()}enter(e,t){super.enter(e,t),this.resize(this._size),this._heat=G(e)}update(e,t){if(super.update(e,t),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()){let e={};for(let t=1;t<=this.colorCount();t++){let n=t/this.colorCount();e[n]=this._palette(t,1,this.colorCount())}this._heat.defaultGradient=e,this._heat.gradient(e)}else this.gradient()&&(this._heat.defaultGradient=this.gradient(),this._heat.gradient(this.gradient()));this._heat.draw()}exit(e,t){delete this._heat,super.exit(e,t)}resize(e){let n=t.CanvasWidget.prototype.resize.apply(this,arguments);return this._heat!==void 0&&this._heat.resize(),n}skewedData(){let e=this,t=[],n=this.data(),r=this.size(),i=this.bottomRightX()-this.topLeftX(),a=this.bottomRightY()-this.topLeftY(),o=i/r.width,s=a/r.height;return n.forEach(function(n){let r=Math.abs(n[0]-e.topLeftX()),i=Math.abs(n[1]-e.topLeftY()),a=r/o,c=i/s;t.push([a,c,n[2]])}),t}};HeatMap.prototype._class+=` other_HeatMap`,HeatMap.prototype._palette=t.Palette.rainbow(`default`),HeatMap.prototype.publish(`radius`,15,`number`,`Set point radius`,null,{tags:[`Basic`]}),HeatMap.prototype.publish(`blur`,15,`number`,`Set point blur`,null,{tags:[`Basic`]}),HeatMap.prototype.publish(`max`,1,`number`,`Set max data value`,null,{tags:[`Basic`]}),HeatMap.prototype.publish(`gradient`,{.4:`blue`,.6:`cyan`,.7:`lime`,.8:`yellow`,1:`red`},`object`,`Set gradient colors`,null,{tags:[`Basic`]}),HeatMap.prototype.publish(`usePalette`,!1,`boolean`,`If true, uses paletteID and colorCount to determine gradient`,null,{tags:[`Basic`]}),HeatMap.prototype.publish(`colorCount`,10,`number`,`Top left x-value`,null,{tags:[`Basic`]}),HeatMap.prototype.publish(`paletteID`,`default`,`set`,`Color palette for this widget`,HeatMap.prototype._palette.switch(),{tags:[`Basic`]}),HeatMap.prototype.publish(`useClonedPalette`,!1,`boolean`,`Enable or disable using a cloned palette`,null,{tags:[`Intermediate`,`Shared`]}),HeatMap.prototype.publish(`topLeftX`,null,`number`,`Top left x-value`,null,{tags:[`Basic`],optional:!0}),HeatMap.prototype.publish(`topLeftY`,null,`number`,`Top left y-value`,null,{tags:[`Basic`],optional:!0}),HeatMap.prototype.publish(`bottomRightX`,null,`number`,`Bottom right x-value`,null,{tags:[`Basic`],optional:!0}),HeatMap.prototype.publish(`bottomRightY`,null,`number`,`Bottom right y-value`,null,{tags:[`Basic`],optional:!0});var HPCCBadge=class extends t.SVGWidget{root;logo;logo_accent;logo_circles;line;circle_1;circle_2;circle_3;circle_4;circle_5;circle_6;circle_7;circle_8;circle_accent;text;text_hpccsystems;text_r;text_tm;constructor(){super()}testData(e,t){return this}enter(e,t){super.enter(e,t),this.root=t.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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,1.1c0,0.9-1,1.3-1.5,1.4c0.6,0.7,1.5,2,1.9,2.4v0.1c-0.1,0-0.3-0.1-0.4-0.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`);let n=this.root.node().getBBox(),r=n.x+n.width/2,i=n.y+n.height/2,a=Math.min(this.width(),this.height())/Math.max(n.width,n.height);this.root.attr(`transform`,`translate(`+-r*a+`,`+-i*a+`)scale(`+a+`)`)}update(e,t){switch(super.update(e,t),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);break;default:break}}};HPCCBadge.prototype._class+=` other_HPCCBadge`,HPCCBadge.prototype.publish(`animation`,`none`,`set`,`Animation Style`,[`none`,`accentInOut`,`accentIn`,`fade_in`]);var Html=class extends t.HTMLWidget{constructor(){super(),this._tag=`div`}enter(e,t){super.enter(e,t)}update(e,t){super.update(e,t),t.style(`overflow-x`,this.overflowX_exists()?this.overflowX():``).style(`overflow-y`,this.overflowY_exists()?this.overflowY():``);let n=t.selectAll(`.htmlWrapper`).data(this.data().length>0?this.data():[this.html()]);n.enter().append(`div`).attr(`class`,`htmlWrapper`).merge(n).html(function(e){return e}),n.exit().remove()}};Html.prototype._class+=` other_Html`,Html.prototype.publish(`html`,``,`string`,`Html to render`,null,{tags:[`Basic`]}),Html.prototype.publish(`overflowX`,null,`set`,`CSS overflow-x`,[``,`visible`,`hidden`,`scroll`,`auto`,`initial`,`inherit`],{tags:[`Basic`],optional:!0}),Html.prototype.publish(`overflowY`,null,`set`,`CSS overflow-y`,[``,`visible`,`hidden`,`scroll`,`auto`,`initial`,`inherit`],{tags:[`Basic`],optional:!0});var IconList=class extends t.HTMLWidget{_list;_entity_list=[];_content_list=[];constructor(){super(),this._list=new n.HorizontalList().orientation_default(`horizontal`).flexWrap_default(`nowrap`)}enter(e,n){super.enter(e,n),n.style(`height`,`100%`).style(`width`,`100%`),(0,t.select)(e.parentElement).style(`height`,`100%`).style(`width`,`100%`),this._list.target(e)}update(e,r){super.update(e,r);let i=this._list.widgets();this.data().forEach((e,r)=>{i[r]?(i[r]=this.updateListProperties(i[r],r),this.updateEntityProperties(i[r].widgets()[0],r),i[r].widgets()[1].html(this.data()[r][this.htmlColumnIndex_exists()?this.htmlColumnIndex():1])):i[r]=this.updateListProperties(new n.VerticalList,r).widgets([this.updateEntityProperties(new t.Entity,r),new Html().html(this.data()[r][this.htmlColumnIndex_exists()?this.htmlColumnIndex():1])])}),this._list.widgets(i.slice(0,this.data().length)),this._list.resize().render()}updateListProperties(e,t){return e.disableScroll(!0).widgetsFlexBasis([this.iconSize()+`px`,`calc(100% - ${this.iconSize()}px)`])}updateEntityProperties(e,t){return e.icon(this.iconColumnIndex_exists()?this.data()[t][this.iconColumnIndex()]:`?`).iconColor(this.iconColorColumnIndex_exists()?this.data()[t][this.iconColorColumnIndex()]:`#000`).iconDiameter(this.iconSize()).iconPaddingPercent(0)}};IconList.prototype._class+=` other_IconList`,IconList.prototype.publish(`iconSize`,72,`number`,`Size of icon (pixels)`),IconList.prototype.publish(`iconColumnIndex`,0,`number`,`Index of column containing icon character`),IconList.prototype.publish(`iconColorColumnIndex`,1,`number`,`Index of column containing icon color`),IconList.prototype.publish(`htmlColumnIndex`,2,`number`,`Index of column containing html string`);var Paginator=class extends t.HTMLWidget{_tNumPages;_numList;paginator;side;_onSelect;constructor(){super(),this._tag=`div`,this._tNumPages=1,this._numList=[]}postUpdate(e,t){}enter(e,t){super.enter(e,t);let n=this;this.paginator=t.append(`ul`).attr(`class`,`paginator pagination pagination-sm`),this.side=t.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(){n.pageNumber(this.value),n._onSelect(this.value)}),this.side.append(`span`).classed(`side total`,!0).text(` of 1`)}update(e,n){let r=this;if(n.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(let e=-this.adjacentPages();e<=this.adjacentPages();e++)this.pageNumber()+e>0&&this.pageNumber()+e<=this._tNumPages&&this._numList.push(this.pageNumber()+e);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);let i=this.paginator.selectAll(`li`).data(this._numList,function(e){return e});i.enter().append(function(e){let t=document.createElement(`li`);if(e!==r.pageNumber()){let n=document.createElement(`a`),r=document.createTextNode(e);return n.appendChild(r),n.href=`#`,t.appendChild(n),t}else{let n=document.createElement(`span`);return n.innerHTML=e,t.appendChild(n),t}}).on(`click`,function(e,n){switch((0,t.d3Event)().preventDefault(),r.side.select(`.currentPageNumber`).property(`value`,r.pageNumber()),e){case`first`:r.pageNumber()!==1&&(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(e),r._onSelect(e)}}),i.classed(`active`,function(e,t){return e===r.pageNumber()}).select(`a`).text(function(e){return e}),i.exit().remove(),i.order(),this.numItems()===0&&(0,t.select)(e).remove()}exit(e,t){super.exit(e,t)}};Paginator.prototype._class+=` other_Paginator`,Paginator.prototype.publish(`itemsPerPage`,2,`number`,`Pagination items per page`,null,{tags:[`Private`]}),Paginator.prototype.publish(`numItems`,10,`number`,`Pagination total number of items`,null,{tags:[`Private`]}),Paginator.prototype.publish(`pageNumber`,1,`number`,`Pagination set or get the page number`,null,{tags:[`Private`]}),Paginator.prototype.publish(`adjacentPages`,2,`number`,`Number of page indexes either side of current one`,null,{tags:[`Private`]}),Paginator.prototype.publish(`bottom`,20,`number`,`Pagination bottom offset`,null,{tags:[`Private`]}),Paginator.prototype.publish(`right`,20,`number`,`Pagination right offset`,null,{tags:[`Private`]});var Table=class extends t.HTMLWidget{_paginator;_selectionBag;_selectionPrevClick;_paginatorTableSpacing;tableDiv;thead;table;fixedHead;fixedHeadTable;fixedThead;unfixedThead;tbody;tfoot;fixedCol;fixedColTable;fixedColHead;fixedColHeadRow;fixedColBody;fixedColFoot;fixedColFootRow;_prevDescending;_prevSortByFieldIndex;_hasChildWidgets;_tNumPages;_empty_col_idx_arr;constructor(){super(),this._tag=`div`,this.columns([]),this._paginator=new Paginator,this._selectionBag=new t.Utility.Selection(this),this._selectionPrevClick=null,this._paginatorTableSpacing=4}size(e){let t=super.size.apply(this,arguments);if(arguments.length&&this.tableDiv){let e=this.showHeader()&&this.fixedHeader()?this.thead.property(`offsetHeight`):0;this.tableDiv.style(`width`,this._size.width+`px`).style(`height`,this._size.height-e+`px`),this._element.style(`width`,this._size.width+`px`).style(`height`,this._size.height+`px`)}return t}isHidden(e){if(this.pivot())return!1;if(this.hiddenColumns().indexOf(e)!==-1)return!0;let t=this.fields();return!!(t&&t[e]&&(t[e].type()===`hidden`||this._empty_col_idx_arr.indexOf(e)!==-1))}tableColumns(e){let t=this.columns.apply(this,arguments);return!arguments.length&&this.pivot()?this._db.column(0):t}tableData(e){let t=this.data.apply(this,arguments);return!arguments.length&&this.pivot()?this._db.columns().filter(function(e,t){return t>0}):t}field(e,t){let n={transform:e=>e};return this.pivot()?t===0?n:this.fields()[e+1]:e===-1?n:this.fields()[t]}calcFieldsIndex(e){let t=-1,n=0,r=this.columns().length,i=0;for(;t<r&&i<=e;)t++,this.isHidden(t)?n++:i++;return e+n}getEmptyColumnIdxArr(e,t){let n=[];if(this.hideEmptyColumns())for(let r=0;r<e.length;r++){let e=!0;for(let n=0;n<t.length;n++)if([``,null,void 0].indexOf(t[n][r])===-1){e=!1;break}e&&n.push(r)}return n}enter(e,t){super.enter(e,t),this._placeholderElement.style(`overflow`,`hidden`),this.tableDiv=t.append(`div`).attr(`class`,`tableDiv`),this.table=this.tableDiv.append(`table`),this.fixedHead=t.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=t.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`)}update(e,n){super.update(e,n);let r=this,i=r.tableColumns(),a=r.tableData(),o=this.tableDiv.node().scrollLeft;this._empty_col_idx_arr=this.getEmptyColumnIdxArr(i,a),this.element().selectAll(`table,tbody,th,td`).style(`width`,null),this.sortByFieldIndex_exists()&&(this._prevSortByFieldIndex!==this.sortByFieldIndex()||this._prevDescending!==this.descending())&&(t.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`);let s=this.thead.selectAll(`th`).data(this.showHeader()?i.filter(function(e,t){return!r.isHidden(t)&&r._empty_col_idx_arr.indexOf(t)===-1}):[]),c=s.enter().append(`th`).each(function(e){let n=(0,t.select)(this);n.append(`span`).attr(`class`,`thText`),n.append(`span`).attr(`class`,`thIcon`)}).on(`click`,function(e,t){r.headerClick(e,t)}).merge(s).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(e,t){let n=r.calcFieldsIndex(t);return r.field(-1,n).transform(e)}),c.select(`.thIcon`).text(function(e,t){return r.descending()?r.sortByFieldIndex()===t?``:``:r.sortByFieldIndex()===t?``:``}),s.exit().remove(),c.order(),this.paginationLimit()&&this.pagination(a.length>=parseInt(this.paginationLimit())),this.pagination()){this._paginator.target()===null&&this._paginator.target(n.node());let e=this._calcRowsPerPage(c);this.itemsPerPage(e),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(e,t){r.pageNumber(e),r.render()}}else this._paginator.numItems(0);let l=this.pageNumber()-1,u=this.itemsPerPage(),d=l*u,f=l*parseInt(u)+parseInt(u),p;p=this.topN()?a.slice(0,this.topN()):this.pagination()?a.slice(d,f):a;let m=[this.totalledLabel()?this.totalledLabel():null];if(this.totalledColumns().length!==0){for(let e=0;e<this.totalledColumns().length;e++)this.totalledColumns()[e]=+this.totalledColumns()[e];for(let e=1;e<i.length;e++){let t=0;if(this.totalledColumns().indexOf(e)!==-1){for(let n=0;n<p.length;n++)t+=p[n][e];m.push(t)}else m.push(``)}let e=this.tfoot.selectAll(`td`).data(m);e.enter().append(`td`).merge(e).style(`background-color`,this.tfootRowBackgroundColor()).style(`border-color`,this.tfootCellBorderColor()).style(`color`,this.tfootFontColor()).style(`font-size`,this.tfootFontSize())[this.renderHtmlDataCells()?`html`:`text`](function(e,t){return r.fields()[t].transform(e)}),e.exit().remove()}let h=this.tbody.selectAll(`tr.tr_`+this.id()).data(p.map(function(e,t){for(let t=0;t<e.length;++t)e[t]===void 0&&(e[t]=null);return{rowIdx:t,row:e}})),g=h.enter().append(`tr`).attr(`class`,`tr_`+this.id()).on(`click.selectionBag`,function(e){if(e.row){let t=e.row,n=e.rowIdx;r.selectionBagClick(t,n),r.applyRowStyles(r.getBodyRow(n)),r.applyFirstColRowStyles(r.getFixedRow(n))}},!0).on(`mouseover`,function(e){if(e.row){let t=e.rowIdx,n=r.getFixedRow(t);n.empty()||n.classed(`hover`,!0);let i=r.getBodyRow(t);i.classed(`hover`,!0),r.applyStyleToRows(i),r.applyFirstColRowStyles(n)}}).on(`mouseout`,function(e){if(e.row){let t=e.rowIdx,n=r.getFixedRow(t);n.classed(`hover`,!1);let i=r.getBodyRow(t);i.classed(`hover`,!1),r.applyStyleToRows(i),r.applyFirstColRowStyles(n)}}).merge(h).classed(`selected`,function(e){let t=e.row;return r._selectionBag.isSelected(r._createSelectionObject(t))}).classed(`trId`+this._id,!0);h.exit().remove(),this.applyStyleToRows(g);let _=g.selectAll(`.td_`+this.id()).data(function(e,t){return e.row.filter(function(e,t){return t<i.length&&!r.isHidden(t)&&r._empty_col_idx_arr.indexOf(t)===-1}).map(function(t,n){return{rowInfo:e,colIdx:n,cell:t}})});_.enter().append(`td`).attr(`class`,`td_`+this.id()).on(`click`,function(e){e.rowInfo&&r.click(r.rowToObj(e.rowInfo.row),r.columns()[e.colIdx],r._selectionBag.isSelected(r._createSelectionObject(e.rowInfo.row)))}).on(`dblclick`,function(e,t){e.rowInfo&&r.dblclick(r.rowToObj(e.rowInfo.row),r.columns()[e.colIdx],r._selectionBag.isSelected(r._createSelectionObject(e.rowInfo.row)))}).each(function(e,n){let i=r.getColumnAlignment(e.rowInfo.rowIdx,e.colIdx,e.cell);(0,t.select)(this).style(`height`,null).style(`text-align`,i).style(`vertical-align`,r.verticalAlign()).classed(`tr-`+e.rowInfo.rowIdx+`-td-`+n,!0)}).merge(_).each(function(e){let n=(0,t.select)(this);if(e.cell instanceof t.Widget){n[r.renderHtmlDataCells()?`html`:`text`](null);let i=n.selectAll(`.div_`+r.id()).data([e.cell],function(e){return e.id()});i.exit().each(function(e){e.target(null)}).remove(),i.enter().append(`div`).attr(`class`,`div_`+r.id()).style(`width`,r.minWidgetWidth()+`px`).style(`height`,r.minWidgetHeight()+`px`).each(function(e){let n=(0,t.select)(this);e._parentWidget=r,e._class.indexOf(`childWidget`)<0&&(e._class=`childWidget `+e._class),e.target(null).target(n.node())}).merge(i).each(function(e){e.resize().lazyRender(),r._hasChildWidgets=!0})}else{n.selectAll(`.div_`+r.id()).remove();let t=r.calcFieldsIndex(e.colIdx);n[r.renderHtmlDataCells()?`html`:`text`](r.field(e.rowInfo.rowIdx,t).transform(e.cell))}}),_.exit().remove();let v=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);let y=0,b=this.fixedColHeadRow.selectAll(`th`).data(this.fixedColumn()&&this.showHeader()?[i[0]]:[]),x=b.enter().append(`th`).each(function(e){let n=(0,t.select)(this);n.append(`span`).attr(`class`,`thText`),n.append(`span`).attr(`class`,`thIcon`)}).on(`click`,function(e,t){r.headerClick(e,t)}).merge(b).style(`background-color`,this.theadRowBackgroundColor()).style(`border-color`,this.theadCellBorderColor()).style(`color`,this.theadFontColor()).style(`font-size`,this.theadFontSize());x.select(`.thText`).style(`font-family`,this.theadFontFamily()).text(function(e){return e}),x.select(`.thIcon`).text(function(e,t){return r.descending()?r.sortByFieldIndex()===t?``:``:r.sortByFieldIndex()===t?``:``}),b.exit().remove();let S=this.fixedColBody.selectAll(`tr`).data(this.fixedColumn()?p:[]),C=S.enter().append(`tr`).attr(`class`,function(){return`trId`+r._id}).merge(S).on(`click`,function(e,n){(0,t.select)(g[0][n]).on(`click.selectionBag`)(g.data()[n],n)}).on(`mouseover`,function(e,n){(0,t.select)(g[0][n]).on(`mouseover`)(g.data()[n],n)}).on(`mouseout`,function(e,n){(0,t.select)(g[0][n]).on(`mouseout`)(g.data()[n],n)}).classed(`selected`,function(e){return r._selectionBag.isSelected(r._createSelectionObject(e))});S.exit().remove();let w=C.selectAll(`td`).data(function(e,t){return[e[0]]}),T=w.enter().append(`td`).merge(w)[this.renderHtmlDataCells()?`html`:`text`](function(e){return typeof e==`string`?e.trim():typeof e==`number`?e:``});w.exit().remove();let E=this.fixedColFootRow.selectAll(`td`).data(this.fixedColumn()&&this.totalledLabel()?[this.totalledLabel()]:[]),D=E.enter().append(`td`).merge(E)[this.renderHtmlDataCells()?`html`:`text`](function(e){return typeof e==`string`?e.trim():typeof e==`number`?e:``});E.exit().remove(),this.fixedColumn()&&!this.fixedSize()&&D.length&&(y=(this.showHeader()&&(D.property(`offsetWidth`),D.property(`offsetWidth`)),D.property(`offsetWidth`)),this.fixedCol.style(`position`,`absolute`).style(`margin-top`,-this.tableDiv.property(`scrollTop`)+v+`px`),T.style(`width`,y+`px`),this.fixedColHead.style(`position`,`absolute`).style(`margin-top`,(this.fixedHeader()?this.tableDiv.property(`scrollTop`):0)-v+`px`),x.style(`width`,y+`px`),g.each(function(e,n){let r=(0,t.select)(this).select(`td`).property(`offsetHeight`);(0,t.select)(T[n][0]).style(`height`,r+`px`)})),this.table.style(`margin-left`,-y+`px`),this.tableDiv.style(`margin-left`,y+`px`).style(`width`,this.width()-y+`px`),g.empty()||this.setColumnWidths(g);let O,k,A,j;if(this.fixedSize()){let e=(0,t.select)(`.tableDiv > table`).node();if(e){O=e.getBoundingClientRect();let t,i;O.width!==0&&O.height!==0?(calcWidth(),calcHeight()):(O.height-v<=r.tableDiv.property(`offsetHeight`)?calcHeight():r.fixedHeader()?(t=r.tableDiv.property(`offsetHeight`),t+=`px`):t=`100%`,O.width-y<r.tableDiv.property(`offsetWidth`)?calcWidth():r.fixedColumn()?(i=r.tableDiv.property(`offsetWidth`)-y,i+=`px`):i=`100%`),n.classed(`childWidget`)&&(r._placeholderElement.style(`width`,i+`px`).style(`height`,t+`px`),r.tableDiv.style(`overflow`,`hidden`)),r.size({width:i,height:t})}}this.setOnScrollEvents(this.tableDiv.node(),v);function calcWidth(){let e=O.width;j=r.tbody.property(`offsetWidth`)+1,A=e>j?j:e,A=A}function calcHeight(){k=r.tbody.property(`offsetHeight`)+v,k=k}this._paginator.render(),setTimeout(function(){r._paginator.right((r.hasVScroll(n)?t.Platform.getScrollbarWidth():0)+r._paginatorTableSpacing).bottom((r.hasHScroll(n)?t.Platform.getScrollbarWidth():0)+r._paginatorTableSpacing).render(function(){r.tableDiv.node().scrollLeft=o})},0)}exit(e,t){this._paginator.target(null),super.exit(e,t)}setColumnWidths(e){let n=this,r=e.filter(function(e,t){return t===0}),i=(0,t.select)(null);r.each(function(e){i=(0,t.selectAll)(this.childNodes)});let a=this.fixedHeader()?this.thead.property(`offsetHeight`):0,o=1,s={};i.each(function(e,t){s[t]=this.offsetWidth}),this.thead.selectAll(`th`).each(function(e,n){let r=this.offsetWidth,a=i.empty()?0:s[n],c=r>=a?r:a;this.style.width=c+`px`,i.filter((e,t)=>t===0).each(function(){(0,t.select)(this).style(`width`,c+`px`)}),o+=c}),this.thead.style(`position`,this.fixedHeader()?`absolute`:`relative`).style(`width`,o+`px`).style(`margin-top`,`0px`),this.table.style(`width`,o+`px`),this.tableDiv.style(`margin-top`,(n.fixedHeader()?a:0)+`px`),this.tbody.style(`width`,o+`px`)}getBodyRow(e){return this.table.selectAll(`tbody tr.trId`+this._id).filter(function(t,n){return n===e})}getFixedRow(e){return this._element.selectAll(`.rows-wrapper tbody tr`).filter(function(t,n){return n===e})}setOnScrollEvents(e,t){let n=this;e.onscroll=function(e){let r=e.target.scrollTop,i=e.target.scrollLeft;n.fixedHeader()&&n.thead.style(`margin-left`,-i+`px`),n.fixedColumn()&&(n.fixedCol.style(`margin-top`,-r+t+`px`),n.fixedHeader()&&n.fixedColHead.style(`margin-top`,r-t+`px`))}}_generateTempRow(){let e=this.tbody.append(`tr`);return e.append(`td`).text(`QQQ`),e}_createSelectionObject(e){let n=this;return{_id:e,element:()=>n.tbody?n.tbody.selectAll(`tr`).filter(function(t){return t===e}):(0,t.select)(null)}}_calcRowsPerPage(e){this._paginator.numItems()===0&&(this._paginator.numItems(1),this.itemsPerPage(1)),this._paginator.render();let n=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(),a=i.node().clientHeight;i.remove();let o=this.calcHeight(this._paginator.element()),s=Math.floor((this.height()-n-r-o-(this.table.style(`width`)>=this.table.style(`width`)?t.Platform.getScrollbarWidth():0)-this._paginatorTableSpacing*2)/a)||1;return this.totalledColumns().length!==0&&--s,s}sort(e){return this.sortByFieldIndex()===e?this.descending(!this.descending()):this.descending(!1),this.sortByFieldIndex(e),this}selection(e){return arguments.length?(this._selectionBag.set(e.map(function(e){return this._createSelectionObject(e)},this)),this):this._selectionBag.get().map(function(e){return e._id})}selectionBagClick(e,n){if(this.multiSelect()&&(0,t.d3Event)().shiftKey&&this._selectionPrevClick){let t=!1,n=[],r=this.tableData().filter(function(r,i){let a=!1;return(r===e||r===this._selectionPrevClick)&&(t&&(a=!0),t=!t,n.push(i)),t||a},this);this.selection(r)}else if(this.multiSelect())this._selectionBag.click(this._createSelectionObject(e),t.d3Event),this._selectionPrevClick=e;else{let t=this._createSelectionObject(e);this._selectionBag.click(t,{ctrlKey:this._selectionBag.isSelected(t)}),this._selectionPrevClick=e}this.render()}applyHoverRowStyles(e){let t=this;e.style(`color`,t.tbodyHoverRowFontColor()).style(`background-color`,t.tbodyHoverRowBackgroundColor())}applySelectedRowStyles(e){let t=this;e.style(`color`,t.tbodySelectedRowFontColor()).style(`background-color`,t.tbodySelectedRowBackgroundColor())}applyRowStyles(e,t=!1){let n=e.datum().row;e.style(`color`,t?this.tbodyFirstColFontColor():this.tbodyFontColor()).style(`background-color`,t?this.tbodyFirstColBackgroundColor():this.tableZebraColor_exists()&&this.tableData().indexOf(n)%2?this.tbodyRowBackgroundColor():this.tableZebraColor())}applyFirstColRowStyles(e){this.applyStyleToRows(e,!0)}applyStyleToRows(e,n=!1){n=n===void 0?!1:n;let r=this;e.each(function(){let e=(0,t.select)(this);e.classed(`hover`)?r.applyHoverRowStyles(e):e.classed(`selected`)?r.applySelectedRowStyles(e):r.applyRowStyles(e,n)})}getColumnAlignment(e,t,n){let r=this.calcFieldsIndex(t);switch(this.field(e,r).__prop_type){case`string`:return this.stringAlign();case`number`:return this.numberAlign();case``:case void 0:switch(typeof n){case`string`:return this.stringAlign();case`number`:return this.numberAlign()}}return null}serializeState(){return{selection:this._selectionBag.get().map(function(e){return e._id}),data:this.data()}}deserializeState(e){if(e){if(e.selection){let t=this;this._selectionBag.set(e.selection.map(function(e){return t._createSelectionObject(e)}))}e.data&&this.data(e.data)}return this}click(e,t,n){}dblclick(e,t,n){}headerClick(e,t){this.sort(t).render()}};Table.prototype._class+=` other_Table`,Table.prototype.publish(`renderHtmlDataCells`,!1,`boolean`,`enable or disable HTML within cells`,null,{tags:[`Private`]}),Table.prototype.publish(`pagination`,!0,`boolean`,`Enable or disable pagination`,null,{tags:[`Private`]}),Table.prototype.publish(`paginationLimit`,null,`number`,`Maximum number of rows allowed before pagination defaults to on`,null,{tags:[`Private`]}),Table.prototype.publishProxy(`itemsPerPage`,`_paginator`),Table.prototype.publishProxy(`pageNumber`,`_paginator`,`pageNumber`,1),Table.prototype.publishProxy(`adjacentPages`,`_paginator`),Table.prototype.publish(`topN`,null,`number`,`Total number or rows of data to be displayed in the table`,null,{tags:[`Private`]}),Table.prototype.publish(`pivot`,!1,`boolean`,`Pivot Table`),Table.prototype.publish(`showHeader`,!0,`boolean`,`Show or hide the table header`,null,{tags:[`Private`]}),Table.prototype.publish(`fixedHeader`,!0,`boolean`,`Enable or disable fixed table header`,null,{tags:[`Private`]}),Table.prototype.publish(`fixedColumn`,!1,`boolean`,`Enable or disable fixed first column`,null,{tags:[`Private`]}),Table.prototype.publish(`multiSelect`,!1,`boolean`,`Multiple Selection`,null,{tags:[`Basic`]}),Table.prototype.publish(`fixedSize`,!1,`boolean`,`Fix Size to Min Width/Height`),Table.prototype.publish(`hideEmptyColumns`,!1,`boolean`,`Hide columns with all empty cells`),Table.prototype.publish(`theadFontSize`,null,`string`,`Table head font size`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`tbodyFontSize`,null,`string`,`Table body font size`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`tfootFontSize`,null,`string`,`Table body font size`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`theadFontColor`,null,`html-color`,`Table head font color`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`tbodyFontColor`,null,`html-color`,`Table body font color`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`tfootFontColor`,null,`html-color`,`Table body font color`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`theadFontFamily`,null,`string`,`Table head font family`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`tbodyFontFamily`,null,`string`,`Table body font family`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`tfootFontFamily`,null,`string`,`Table body font family`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`theadCellBorderColor`,null,`html-color`,`Table head cell border color`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`tfootCellBorderColor`,null,`html-color`,`Table head cell border color`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`theadRowBackgroundColor`,null,`html-color`,`Table head row color`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`tfootRowBackgroundColor`,null,`html-color`,`Table head row color`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`tbodyCellBorderColor`,null,`html-color`,`Table body cell border color`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`tbodyRowBackgroundColor`,null,`html-color`,`Table body row color`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`tbodyFirstColFontColor`,null,`html-color`,`Table body first column font color`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`tbodyFirstColBackgroundColor`,null,`html-color`,`Table body first column background color`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`tbodyHoverRowFontColor`,null,`html-color`,`Table body hover row font color`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`tbodyHoverRowBackgroundColor`,null,`html-color`,`Table body hover row background color`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`tbodySelectedRowFontColor`,null,`html-color`,`Table body selected row color`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`tbodySelectedRowBackgroundColor`,null,`html-color`,`Table body selected row color`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`tableZebraColor`,null,`html-color`,`Table zebra row color`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`totalledColumns`,[],`array`,`Array of indices of the columns to be totalled`,null,{tags:[`Basic`],optional:!0,disable:e=>e.pivot()}),Table.prototype.publish(`totalledLabel`,null,`string`,`Adds a label to the first column of the 'Totalled' row`,null,{tags:[`Basic`],optional:!0,disable:e=>e.pivot()}),Table.prototype.publish(`hiddenColumns`,[],`array`,`Array of indices of the columns to be hidden`,null,{tags:[`Basic`],optional:!0,disable:e=>e.pivot()}),Table.prototype.publish(`stringAlign`,`left`,`set`,`Cell alignment for strings`,[`left`,`right`,`center`],{tags:[`Basic`],optional:!0}),Table.prototype.publish(`numberAlign`,`right`,`set`,`Cell alignment for numbers`,[`left`,`right`,`center`],{tags:[`Basic`],optional:!0}),Table.prototype.publish(`verticalAlign`,null,`set`,`Cell vertical alignment`,[null,`middle`,`top`,`bottom`],{tags:[`Basic`],optional:!0}),Table.prototype.publish(`minWidgetWidth`,320,`number`,`Minimum width of a child widget`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`minWidgetHeight`,240,`number`,`Minimum height of a child widget`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`sortByFieldIndex`,null,`number`,`Index for the field/column to sort the data`,null,{tags:[`Basic`],optional:!0}),Table.prototype.publish(`descending`,!1,`boolean`,`Direction for sorting the data: ascending (true) or descending (false)`,null,{tags:[`Basic`],optional:!0});function _htmlColorBlock(e){return`<div class="colorBlock" style="background-color:`+e+`;"></div>`}var Legend=class extends Table{_targetWidget;_targetWidgetMonitor;constructor(){super(),this.showHeader(!1),this.pagination(!1)}isRainbow(){let e=this.getWidget();return e&&e._palette&&e._palette.type()===`rainbow`}targetWidget(e){if(!arguments.length)return this._targetWidget;this._targetWidget=e,this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor);let t=this;return this._targetWidgetMonitor=this._targetWidget.monitor(function(e,n,r,i){switch(e){case`chart`:case`columns`:case`data`:case`paletteID`:t.lazyRender();break}}),this}getWidget(){if(this._targetWidget)switch(this._targetWidget.classID()){case`chart_MultiChart`:return this._targetWidget.chart()}return this._targetWidget}getPalette(){let e=this.getWidget();if(e&&e._palette)switch(e._palette.type()){case`ordinal`:return t.Palette.ordinal(e._palette.id());case`rainbow`:return t.Palette.rainbow(e._palette.id())}return t.Palette.ordinal(`default`)}enter(e,n){super.enter(e,n),(0,t.select)(e.parentNode).style(`overflow-y`,`auto`),this.renderHtmlDataCells(!0),this.fixedHeader(!1),this.fixedSize(!0),n.classed(`other_Legend`,!0)}update(e,n){let r=[`Key`,`Label`],i=[];if(this._targetWidget){let e=this.getPalette();switch(e.type()){case`ordinal`:let n=e;switch(this.dataFamily()){case`2D`:i=this._targetWidget.data().map(function(e){return[_htmlColorBlock(n(e[0])),e[0]]},this);break;case`ND`:i=this._targetWidget.columns().filter(function(e,t){return t>0}).map(function(e){return[_htmlColorBlock(n(e)),e]},this);break}break;case`rainbow`:let r=e,a=(0,t.format)(this.rainbowFormat()),o=this.getWidget(),s=this.rainbowBins(),c=o._dataMinWeight,l=o._dataMaxWeight,u=(l-c)/(s-1);i.push([_htmlColorBlock(r(c,c,l)),a(c)]);for(let e=1;e<s-1;++e){let t=u*e;i.push([_htmlColorBlock(r(t,c,l)),a(Math.floor(t))])}i.push([_htmlColorBlock(r(l,c,l)),a(l)]);break}}this.columns(r),this.data(i),super.update(e,n),n.classed(`horiz-legend`,this.orientation()===`horizontal`);let a=n.select(`.tableDiv > table`),o=a.node().getBoundingClientRect(),s=this._placeholderElement.node().getBoundingClientRect();n.select(`.tableDiv`).style(`overflow`,`visible`);let c=s.height/2-o.height/2,l=s.width/2-o.width/2;a.style(`position`,`absolute`).style(`top`,c+`px`).style(`left`,l+`px`);let u=this.pageNumber()-1,d=this.itemsPerPage(),f=u*d,p=u*parseInt(d)+parseInt(d),m;m=this.pagination()?this.data().slice(f,p):this.data();let h=this.tbody.selectAll(`tr`).data(m),g=this;h.on(`click`,function(e,t){g.onClick(e,t)}).on(`dblclick`,function(e,t){g.onDblClick(e,t)}).on(`mouseover`,function(e,t){g.onMouseOver(e,t)})}exit(e,t){this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor),super.exit(e,t)}onClick(e,t){}onDblClick(e,t){}onMouseOver(e,t){}};Legend.prototype._class+=` other_Legend`,Legend.prototype.publish(`dataFamily`,`ND`,`set`,`Type of data`,[`1D`,`2D`,`ND`,`map`,`any`,`other`],{tags:[`Private`]}),Legend.prototype.publish(`orientation`,`vertical`,`set`,`Orientation of Legend rows`,[`vertical`,`horizontal`],{tags:[`Private`]}),Legend.prototype.publish(`rainbowFormat`,`,`,`string`,`Rainbow number formatting`,null,{tags:[`Private`],optional:!0,disable:e=>!e.isRainbow()}),Legend.prototype.publish(`rainbowBins`,8,`number`,`Number of rainbow bins`,null,{tags:[`Private`],disable:e=>!e.isRainbow()});var K=Table.prototype.getBBox;Legend.prototype.getBBox=function(e,n){let r=K.apply(this,arguments),i=this.element().select(`.tableDiv > table`);if(!i.empty()){let e=i.node().getBoundingClientRect(),a=e.width+8+(this.hasVScroll(this._placeholderElement)?t.Platform.getScrollbarWidth():0),o=e.height+8+(this.hasHScroll(this._placeholderElement)?t.Platform.getScrollbarWidth():0);return{x:r.x,y:r.y,width:(n?Math.round(a):a)*this._scale,height:(n?Math.round(o):o)*this._scale}}return r};var MorphText=class extends t.SVGWidget{_fontWidth;_textElement;constructor(){super()}enter(e,t){if(!this.fontSize()){let t=window.getComputedStyle(e,null);this.fontSize(parseInt(t.fontSize))}this._fontWidth=this.fontSize()*32/48,this._textElement=t.append(`g`)}dateTime(){let e=new Date,t=e.getSeconds().toString().length===1?`0`+e.getSeconds():e.getSeconds(),n=e.getMinutes().toString().length===1?`0`+e.getMinutes():e.getMinutes(),r=e.getHours().toString().length===1?`0`+e.getHours():e.getHours(),i=e.getHours()>=12?`pm`:`am`;return[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`][e.getDay()]+` `+[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`][e.getMonth()]+` `+e.getDate()+` `+e.getFullYear()+` `+r+`:`+n+`:`+t+i}update(e,t){let n=this,r=this._textElement.selectAll(`text`).data(this.data(),function(e){return e.id});r.attr(`class`,`update`),this.transition.apply(r).attr(`x`,function(e,t){return(-n.data().length/2+t)*n._fontWidth+n._fontWidth/2});let 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(e,t){return(-n.data().length/2+t)*n._fontWidth+n._fontWidth/2}).style(`fill-opacity`,1e-6).style(`text-anchor`,this.anchor()).text(function(e){return e.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()}};MorphText.prototype._class+=` other_MorphText`,MorphText.prototype.publish(`anchor`,`middle`,`set`,`Sets anchor point`,[`middle`],{tags:[`Basic`]}),MorphText.prototype.publish(`fontSize`,14,`number`,`Sets fontsize`,null,{tags:[`Basic`]}),MorphText.prototype.publish(`reverse`,!1,`boolean`,`Reverse Animation`,null,{tags:[`Basic`]}),MorphText.prototype.publish(`text`,``,`string`,`Sets text/data of widget`,null,{tags:[`Basic`]});var q=MorphText.prototype.text;MorphText.prototype.text=function(e){let t=q.apply(this,arguments);if(arguments.length){let t={},n=e.split(``);this.data(n.map(function(e){let n=`_`+e;return t[n]===void 0&&(t[n]=0),t[n]++,{text:e,id:e.charCodeAt(0)+1024*t[n]}}))}return t};var NestedTable=class extends Table{constructor(){super(),this.minWidgetHeight(240),this.minWidgetWidth(360)}};NestedTable.prototype._class+=` other_NestedTable`;var J=NestedTable.prototype.columns;NestedTable.prototype.columns=function(e){return arguments.length?(this._columns=e,J.call(this,e.map(function(e){return typeof e==`object`?e.label:e}))):J.apply(this,arguments)};var Y=NestedTable.prototype.data;NestedTable.prototype.data=function(e){if(arguments.length){let t=this;return Y.call(this,e.map(function(e){return e.map(function(e,n){if(e instanceof Array){let r=[];if(typeof t._columns[n]==`object`&&t._columns[n].columns)r=t._columns[n].columns;else for(let i=0;i<e.length;++i)r.push(t._columns[n]+`.`+i);return new Table().columns(r).data(e)}return e})}))}return Y.apply(this,arguments)};var Column=class extends t.PropertyExt{_owner;constructor(){super()}owner(e){return arguments.length?(this._owner=e,this):this._owner}valid(){return!!this.headerLabel()}};Column.prototype._class+=` other_Opportunity.Column`,Column.prototype.publish(`headerLabel`,null,`string`,`Header value of a table`,function(){return this._owner?this._owner.columns():[]},{tags:[`Basic`],optional:!0});var MouseHoverColumn=class extends t.PropertyExt{_owner;constructor(){super()}owner(e){return arguments.length?(this._owner=e,this):this._owner}valid(){return!!this.hoverValue()&&!!this.hoverList()}};MouseHoverColumn.prototype._class+=` other_Opportunity.MouseHoverColumn`,MouseHoverColumn.prototype.publish(`hoverValue`,null,`string`,`Hover value of a table`,function(){return this._owner?this._owner.columns():[]},{tags:[`Basic`],optional:!0}),MouseHoverColumn.prototype.publish(`hoverList`,null,`set`,`Hover value of a table`,function(){return this._owner?this._owner.getIds():[]},{tags:[`Basic`],optional:!0});var ColumnDropdown=class extends t.PropertyExt{_owner;constructor(){super()}owner(e){return arguments.length?(this._owner=e,this):this._owner}valid(){return!!this.columnIndex()&&!!this.ColumnDropdownList()}};ColumnDropdown.prototype._class+=` other_Opportunity.ColumnDropdown`,ColumnDropdown.prototype.publish(`columnIndex`,null,`number`,`Column index for display context data based on column dropdown list selction`,{},{tags:[`Basic`,`Shared`]}),ColumnDropdown.prototype.publish(`ColumnDropdownList`,null,`set`,`column value of a table`,function(){return this._owner?this._owner.getIds():[]},{tags:[`Basic`],optional:!0});var Opportunity=class extends t.SVGWidget{groupCount;svg;tooltipdiv;Column;MouseHoverColumn;ColumnDropdown;constructor(){super(),this._drawStartPos=`origin`,this.groupCount=7}enter(e,n){super.enter(e,n);let r=(this.data().length+1)*25+30;this.svg=n.append(`g`).attr(`width`,this.groupCount*100+1).attr(`height`,r),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=(0,t.select)(`body`).append(`div`).attr(`class`,`other_Opportunity-tooltip tooltip`).style(`opacity`,0)}update(e,n){super.update(e,n);let r=this,i=this.data(),a=this.opportunityId();i.sort(function(e,t){return e.cur_group>t.cur_group?1:e.cur_group<t.cur_group?-1:0});let o=[];for(let e=1;e<=r.groupCount;e++)o.push(e);let s=(i.length+1)*25+30,c=this.width(),l=c/r.groupCount-30,u=this.svg.selectAll(`.group`).data(o);u.enter().append(`rect`).attr(`class`,`group`),u.attr(`x`,function(e,t){return t*c/r.groupCount+1}).attr(`y`,30).attr(`width`,c/this.groupCount).attr(`height`,s-30),u.exit().remove();let d=this.svg.selectAll(`.group_headings`).data(o);if(d.enter().append(`text`).attr(`class`,`group_headings`).attr(`y`,20),d.attr(`x`,function(e,t){return t*c/r.groupCount+c/r.groupCount/r.groupCount}).text(function(e,t){return r.headerLabels().length>0&&r.headerLabels()[t]&&r.headerLabels()[t].headerLabel()?r.headerLabels()[t].headerLabel():``}),d.exit().remove(),this.previousGroup()===`prev_group`&&this.currentGroup()===`cur_group`){let e=this.svg.selectAll(`.node_date_change`).data(i);e.enter().append(`g`).attr(`class`,`node_date_change update`).on(`mouseover`,function(e){r.tooltipdiv.transition().duration(200).style(`opacity`,.9);let n=`<span style='font-weight:bolder'>Close Date Change </span><br/>`;r.mouseHover().forEach(function(t,r){t.hoverValue()!==void 0&&(n=n+`<span style='font-weight:bold'>`+t.hoverValue()+`: </span>`+e[t.hoverList()]+`<br/>`)});let i=e.prevdate+``;i=i.replace(/(\d\d\d\d)(\d\d)(\d\d)/g,`$3-$2-$1`);let a=e.curdate+``;a=a.replace(/(\d\d\d\d)(\d\d)(\d\d)/g,`$3-$2-$1`),n=n+`<span style='font-weight:bold'>From: </span>`+i+`<br/><span style='font-weight:bold'>To: </span>`+a+`<br/>`;let o=(0,t.d3Event)();r.tooltipdiv.html(n).style(`left`,o.pageX+`px`).style(`top`,o.pageY-50+`px`)}).on(`mouseout`,function(e){r.tooltipdiv.transition().duration(500).style(`opacity`,0)}).each(function(e){(0,t.select)(this).append(`rect`).attr(`class`,`node_date_change_rect`).attr(`width`,5).attr(`height`,14).attr(`rx`,6).attr(`ry`,6)}),e.attr(`transform`,function(e,t){return`translate(`+(9*c/r.groupCount+30-80)+`,`+(t+t*24+12+30)+`)`}),e.exit().remove();let n=this.svg.selectAll(`.node_prev_group`).data(i);n.enter().append(`g`).attr(`class`,`node_prev_group`).on(`mouseover`,function(e,n){r.tooltipdiv.transition().duration(200).style(`opacity`,.9);let i=``;r.mouseHover().forEach(function(t,n){t.hoverValue()!==void 0&&(i=i+`<span style='font-weight:bold'>`+t.hoverValue()+`: </span>`+e[t.hoverList()]+`<br/>`)});let a=(0,t.d3Event)();r.tooltipdiv.html(i).style(`left`,a.pageX+`px`).style(`top`,a.pageY-100+`px`)}).on(`mouseout`,function(e){r.tooltipdiv.transition().duration(500).style(`opacity`,0)}).each(function(e){let n=(0,t.select)(this);n.append(`rect`).attr(`class`,`node_prev_rect`).attr(`rx`,6).attr(`ry`,6),n.append(`text`).attr(`class`,`node_prev_text`)}),n.classed(`update`,!0).classed(`changed`,function(e){return e.delta!==0}).attr(`transform`,function(e,t){return`translate(`+((e.prev_group-1)*c/r.groupCount+30/2)+`,`+(t+t*24+10+30)+`)`}).each(function(e){let n=(0,t.select)(this).selectAll(`.arrow`).data(e.delta===0?[]:[e]);n.enter().append(`line`).attr(`class`,`arrow update`),n.attr(`x1`,function(e){return e.delta>0?l:0}).attr(`y1`,14/2).attr(`x2`,function(e){return e.delta>0?l+30-4+(Math.abs(e.delta)-1)*(c/r.groupCount):-30-(Math.abs(e.delta)-1)*(c/r.groupCount)+4}).attr(`y2`,14/2).style(`stroke-dasharray`,`3, 3`).style(`stroke`,`rgb(100,100,100)`).style(`marker-end`,`url(#end-arrow)`).style(`opacity`,`1`),n.exit().remove()}),n.select(`.node_prev_rect`).attr(`width`,l).attr(`height`,14),n.select(`.node_prev_text`).attr(`dy`,10).attr(`dx`,l/4).text(function(e){return typeof e[a]==`number`?e[a]:e[a].substring(0,14)}),n.exit().remove();let o=this.svg.selectAll(`.node_cur_group`).data(i);o.enter().append(`g`).attr(`class`,`node_cur_group`).attr(`transform`,function(e,t){return`translate(`+((e.prev_group-1)*c/r.groupCount+30/2)+`,`+(t+t*24+10+30)+`)`}).on(`mouseover`,function(e,n){r.tooltipdiv.transition().duration(200).style(`opacity`,.9);let i=``;r.mouseHover().forEach(function(t,n){t.hoverValue()!==void 0&&(i=i+`<span style='font-weight:bold'>`+t.hoverValue()+`: </span>`+e[t.hoverList()]+`<br/>`)});let a=(0,t.d3Event)();r.tooltipdiv.html(i).style(`left`,a.pageX+`px`).style(`top`,a.pageY-100+`px`)}).on(`mouseout`,function(e){r.tooltipdiv.transition().duration(500).style(`opacity`,0)}).each(function(e){let n=(0,t.select)(this);n.append(`rect`).attr(`class`,`node_cur_rect`).attr(`fill`,function(e){let t;return t=e.delta<0||e.cur_group===7?`#F78181`:`#A9F5A9`,t}).attr(`rx`,6).attr(`ry`,6),n.append(`a`).append(`text`).attr(`class`,`node_cur_text`)}),o.classed(`update`,!0).classed(`changed`,function(e){return e.delta!==0}).transition().duration(800).ease(`linear`).attr(`transform`,function(e,t){return`translate(`+((e.cur_group-1)*c/r.groupCount+30/2)+`,`+(t+t*24+10+30)+`)`}).each(`end`,function(){(0,t.selectAll)(`.arrow`).style(`opacity`,`1`)}),o.select(`.node_cur_group a`).classed(`update`,!0).attr(`xlink:href`,function(e){return r.url()+e.id}).attr(`xlink:show`,`new`),o.select(`.node_cur_rect`).attr(`width`,l).attr(`height`,14),o.select(`.node_cur_text`).classed(`update`,!0).attr(`dy`,10).attr(`dx`,l/4).style(`fill`,`blue`).text(function(e){return typeof e[a]==`number`?e[a]:e[a].substring(0,14)}),o.exit().remove()}for(let e=0;e<r.columnData().length;e++)if(r.columnData()[e]&&r.columnData()[e].ColumnDropdownList()){let n=this.svg.selectAll(`.columnDataText_`+e).data(i);n.enter().append(`g`).attr(`class`,`columnDataText_`+e+` update`).each(function(e){(0,t.select)(this).append(`text`)}),n.attr(`transform`,function(t,n){return`translate(`+(r.columnData()[e].columnIndex()*c/r.groupCount+30/2)+`,`+(n+n*24+12+30)+`)`}).attr(`width`,5).attr(`height`,14).attr(`rx`,6).attr(`ry`,6),n.select(`text`).attr(`y`,-6).attr(`dy`,28).attr(`dx`,0).attr(`height`,20).attr(`width`,29).text(function(t,n){return t[r.columnData()[e].ColumnDropdownList()]}),n.exit().remove()}}exit(e,t){super.exit(e,t)}getIds(){let e=this.columns();return e.unshift(`default`),e}};Opportunity.prototype._class+=` other_Opportunity`,Opportunity.prototype.Column=Column,Opportunity.prototype.MouseHoverColumn=MouseHoverColumn,Opportunity.prototype.ColumnDropdown=ColumnDropdown,Opportunity.prototype.publish(`previousGroup`,``,`set`,`label in Opportunity`,function(){return this.getIds()},{tags:[`Basic`,`Shared`]}),Opportunity.prototype.publish(`currentGroup`,``,`set`,`label in Opportunity`,function(){return this.getIds()},{tags:[`Basic`,`Shared`]}),Opportunity.prototype.publish(`opportunityId`,`id`,`set`,`Id for label in Opportunity`,function(){return this.getIds()},{tags:[`Basic`,`Shared`]}),Opportunity.prototype.publish(`url`,null,`string`,`URL in Opportunity`,{},{tags:[`Basic`,`Shared`]}),Opportunity.prototype.publish(`width`,1100,`number`,`label in Opportunity`,{},{tags:[`Basic`,`Shared`]}),Opportunity.prototype.publish(`addColumn`,null,`string`,`number of columns in a table`,{},{tags:[`Basic`,`Shared`],editor_input:(e,t,n,r)=>{n.append(`button`).attr(`id`,e.id()+`_addColumn`+r.id).classed(`property-input custom-editor-input addColumn update`,!0).text(`AddColumn`).on(`click`,function(){t.groupCount+=1,e.setProperty(t,r.id,`Added a new column`)})}}),Opportunity.prototype.publish(`removeColumn`,null,`string`,`number of columns in a table`,function(){return this.columns()},{tags:[`Basic`,`Shared`],editor_input:(e,t,n,r)=>{n.append(`button`).attr(`id`,e.id()+`_removeColumn`+r.id).classed(`property-input custom-editor-input removeColumn update`,!0).text(`RemoveColumn`).on(`click`,function(){--t.groupCount,e.setProperty(t,r.id,`Removed a column`)})}}),Opportunity.prototype.publish(`headerLabels`,[],`propertyArray`,`Source Columns`,null,{autoExpand:Column}),Opportunity.prototype.publish(`mouseHover`,[],`propertyArray`,`mouse hover options`,null,{autoExpand:MouseHoverColumn}),Opportunity.prototype.publish(`columnData`,[],`propertyArray`,`column data`,null,{autoExpand:ColumnDropdown});var X=__exportAll({applyTheme:()=>applyTheme,discover:()=>discover,removeTheme:()=>removeTheme,serialize:()=>serialize,serializeTheme:()=>serializeTheme,serializeThemeToObject:()=>serializeThemeToObject,serializeToObject:()=>serializeToObject,widgetArrayWalker:()=>widgetArrayWalker,widgetPropertyWalker:()=>widgetPropertyWalker});function discover(e){return e.publishedProperties(!1,!0)}function widgetArrayWalker(e,t){e&&e.forEach(function(e){e.widgetWalker(t)})}function widgetPropertyWalker(e,t,n){e.widgetWalker(function(e){e.propertyWalker(t,n)})}function serializeTheme(e,t){return JSON.stringify(serializeThemeToObject(e,t))}function serializeThemeToObject(e,t){t||=[`surface`,`Color`,`Font`,`palette`];let n={};widgetPropertyWalker(e,null,function(e,r){if((e[r.id+`_modified`]()||e.publishedProperty(r.id).origDefaultValue!==e.publishedProperty(r.id).defaultValue)&&_isFilterMatch(r.id,t)){let t=e._class.trim().split(` `);for(let i in t)if(t.HasOwnProperty(i)){if(n[t[i]]===void 0&&(n[t[i]]={}),n[t[i]][r.id]===void 0){n[t[i]][r.id]=e[r.id]();break}else if(n[t[i]][r.id]===e[r.id]())break}}});function _isFilterMatch(e,t){let n=!1;for(let r in t)if(e.indexOf(t[r])!==-1){n=!0;break}return n}return n}function removeTheme(e,t){widgetPropertyWalker(e,null,function(e,t){e.publishedProperty(t.id).defaultValue=e.publishedProperty(t.id).origDefaultValue}),typeof t==`function`&&t.call(this)}function applyTheme(e,t,n){let r=this;widgetPropertyWalker(e,null,function(e,n){switch(n.type){case`widget`:return r.applyTheme(e[n.id](),t),!0;case`widgetArray`:return e[n.id]().forEach(function(e){r.applyTheme(e,t)},this),!0;default:e.applyTheme(t);break}}),typeof n==`function`&&n.call(this)}function serializeToObject(e,t,n,r){let i={__class:e.classID()};if(e._id.indexOf(e._idSeed)!==0&&(i.__id=e._id),e.version&&(i.__version=e.version()),i.__properties={},e.propertyWalker((t,a)=>{if(t[a.id+`_modified`]())switch(a.type){case`widget`:return i.__properties[a.id]=serializeToObject(t[a.id](),null,n,r&&!e.serializeState),!0;case`widgetArray`:case`propertyArray`:return i.__properties[a.id]=[],t[a.id]().forEach(t=>{i.__properties[a.id].push(serializeToObject(t,null,n,r&&!e.serializeState))}),!0;default:i.__properties[a.id]=t[a.id]();break}},t),e.classID()===`marshaller_Graph`){let t=e.data().vertices;t&&(this.__vertices=t.map(t=>serializeToObject(t,null,n,r&&!e.serializeState)))}return n&&e.data&&(i.__data||={},i.__data.data=e.data()),r&&(e.serializeState?i.__state=e.serializeState():e.data&&(i.__state={data:e.data()})),i}function serialize(e,t,n,r){return JSON.stringify(serializeToObject(e,t,n,r))}function hasProperties(e){switch(e){case`widget`:case`widgetArray`:case`propertyArray`:return!0;default:}return!1}var Z=class PropertyEditor extends t.HTMLWidget{_widgetOrig;_parentPropertyEditor;_show_settings;_selectedItems;__meta_sorting;_watch;_childPE=(0,t.local)();constructor(){super(),this._parentPropertyEditor=null,this._tag=`div`,this._show_settings=!1}parentPropertyEditor(e){return arguments.length?(this._parentPropertyEditor=e,this):this._parentPropertyEditor}depth(){let e=0,t=this.parentPropertyEditor();for(;t;)++e,t=t.parentPropertyEditor();return e}_show_header=!0;show_header(e){return arguments.length?(this._show_header=e,this):this._show_header}show_settings(e){return arguments.length?(this._show_settings=e,this):this._show_settings}rootWidgets(){return this._selectedItems&&this._selectedItems.length?this._selectedItems:this.show_settings()?[this]:this.widget()?[this.widget()]:[]}update(e,n){super.update(e,n);let r=this,i=this.rootWidgets().filter(function(e){return!(e._owningWidget&&e._owningWidget.excludeObjs instanceof Array&&e._owningWidget.excludeObjs.indexOf(e.classID())!==-1)}),a=n.selectAll(`table.property-table.table-${this.depth()}`).data(i,function(e){return typeof e.id==`function`?e.id():`meta-${e.id}`});a.enter().append(`table`).attr(`class`,`property-table table-${this.depth()}`).each(function(){let e=(0,t.select)(this);r._show_header&&r.parentPropertyEditor()===null&&e.append(`thead`).append(`tr`).append(`th`).attr(`colspan`,`2`).each(function(){r.enterHeader((0,t.select)(this))}),e.append(`tbody`)}).merge(a).each(function(e){let n=(0,t.select)(this);r._show_header&&r.parentPropertyEditor()===null&&r.updateHeader(n.select(`thead > tr > th`)),r.renderInputs(n.select(`tbody`),e)}),a.exit().each(function(){r.renderInputs(n.select(`tbody`),null)}).remove()}exit(e,t){super.exit(e,t),this.watchWidget(null)}watchDepth=0;watchWidget(e){if(this._watch&&(window.__hpcc_debug&&(--this.watchDepth,console.info(`watchDepth: `+this.watchDepth)),this._watch.remove(),delete this._watch),e){let t=this;this._watch=e.monitor(function(e,n,r){r!==n&&(t.parentPropertyEditor()||t).lazyRender()}),window.__hpcc_debug&&(++this.watchDepth,console.info(`watchDepth: `+this.watchDepth))}}enterHeader(e){let t=this;e.append(`span`),e.append(`i`).attr(`class`,`expandIcon fa`).on(`click`,function(){switch(t.peInputIcon()){case`fa-caret-up`:case`fa-caret-right`:t.element().selectAll(`.table-${t.depth()} > tbody > tr > .headerRow > .peInput > .property-table-collapsed`).classed(`property-table-collapsed`,!1),t.element().selectAll(`.table-${t.depth()} > tbody > tr > .headerRow > .peInput > i`).classed(`fa-minus-square-o`,!0).classed(`fa-plus-square-o`,!1);break;case`fa-caret-down`:t.element().selectAll(`.table-${t.depth()} > tbody > tr > .headerRow > .peInput > div`).classed(`property-table-collapsed`,!0),t.element().selectAll(`.table-${t.depth()} > tbody > tr > .headerRow > .peInput > i`).classed(`fa-minus-square-o`,!1).classed(`fa-plus-square-o`,!0);break}t.refreshExpandIcon()});let n=e.append(`i`).attr(`class`,`sortIcon fa`).on(`click`,function(){t.refreshSortIcon(n,!0)});e.append(`i`).attr(`class`,`hideParamsIcon fa`).on(`click`,function(){t.hideNonWidgets(!t.hideNonWidgets()).render()})}updateHeader(e){let t=this.widget(),n=``;t&&(t.label&&(n+=t.label()),t.classID&&(n&&(n+=` - `),n+=t.classID())),e.select(`span`).text(n),this.refreshExpandIcon(),this.refreshSortIcon(e.select(`.sortIcon`)),this.refreshHideParamsIcon(e.select(`.hideParamsIcon`))}peInputCount(){return this.element().selectAll(`.table-${this.depth()} > tbody > tr > .headerRow > .peInput > div`).size()}peInputCollapsedCount(){return this.element().selectAll(`.table-${this.depth()} > tbody > tr > .headerRow > .peInput > div.property-table-collapsed`).size()}peInputIcon(){let e=this.peInputCollapsedCount();return e===0?`fa-caret-down`:e===this.peInputCount()?`fa-caret-up`:`fa-caret-right`}refreshExpandIcon(){let e=this.peInputIcon();this.element().select(`.table-${this.depth()} > thead > tr > th > .expandIcon`).classed(`fa-caret-up`,!1).classed(`fa-caret-right`,!1).classed(`fa-caret-down`,!1).classed(e,!0)}refreshSortIcon(e,t=!1){let n=this.sorting(),r=this.sorting_options(),i=this.__meta_sorting.ext.icons;t?(e.classed(i[r.indexOf(n)],!1),this.sorting(r[(r.indexOf(n)+1)%r.length]).render()):e.classed(i[r.indexOf(n)%r.length],!0).attr(`title`,n)}refreshHideParamsIcon(e){e.classed(`fa-eye`,!this.hideNonWidgets()).classed(`fa-eye-slash`,this.hideNonWidgets())}gatherDataTree(e){if(!e)return null;let t={label:e.id()+` (`+e.classID()+`)`,children:[]};return discover(e).forEach(function(n){let r={label:n.id,children:[]};switch(n.type){case`widget`:r.children.push(this.gatherDataTree(e[n.id]()));break;case`widgetArray`:case`propertyArray`:let t=e[n.id]();t&&t.forEach(function(e){r.children.push(this.gatherDataTree(e))},this);break;default:}t.children.push(r)},this),t}getDataTree(){return this.gatherDataTree(this.widget())}_rowSorting(e){if(this.sorting()===`type`){let t=[`boolean`,`number`,`string`,`html-color`,`array`,`object`,`widget`,`widgetArray`,`propertyArray`];e.sort(function(e,n){return e.type===n.type?e.id<n.id?-1:1:t.indexOf(e.type)<t.indexOf(n.type)?-1:1})}else this.sorting()===`A-Z`?e.sort(function(e,t){return e.id<t.id?-1:1}):this.sorting()===`Z-A`&&e.sort(function(e,t){return e.id>t.id?-1:1})}filterInputs(e){let t=discover(e);if((this.filterTags()||this.excludeTags().length>0||this.excludeParams.length>0)&&!(e instanceof PropertyEditor)){let n=this;return t.filter(function(t,r){if(e[t.id+`_hidden`]&&e[t.id+`_hidden`]())return!1;for(let r of n.excludeParams()){let n=r.split(`.`),i,a;if(n.length>2?(i=n[0],a=n[2]):(i=n[0],a=n[1]),e.class().indexOf(i)!==-1)return t.id!==a}return n.excludeTags().length>0&&t.ext&&t.ext.tags&&t.ext.tags.some(function(e){return n.excludeTags().indexOf(e)>-1})?!1:!!(n.filterTags()&&t.ext&&t.ext.tags&&t.ext.tags.indexOf(n.filterTags())!==-1||!n.filterTags())})}return t}renderInputs(e,n){let r=this,i=[],a=!this.show_settings()&&this.showFields();n&&(i=this.filterInputs(n).filter(function(e){return e.id===`fields`?a:!0}),!this.show_settings()&&this.showData()&&n.data&&i.push({id:`data`,type:`array`}),this.hideNonWidgets()&&(i=i.filter(function(e){return hasProperties(e.type)})),this._rowSorting(i));let o=e.selectAll(`tr.prop`+this.id()).data(i,function(e){return e.id});o.enter().append(`tr`).attr(`class`,`property-wrapper prop`+this.id()).each(function(e){let i=(0,t.select)(this);if(hasProperties(e.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(e.id);let t=i.append(`td`).classed(`property-input-cell`,!0);r.enterInputs(n,t,e)}}).merge(o).each(function(e){let i=(0,t.select)(this);i.classed(`disabled`,n[e.id+`_disabled`]&&n[e.id+`_disabled`]()),i.classed(`invalid`,n[e.id+`_valid`]&&!n[e.id+`_valid`]()),i.attr(`title`,e.description),hasProperties(e.type)?r.updateWidgetRow(n,i.select(`td`),e):r.updateInputs(n,e)}),o.exit().each(function(e){let i=(0,t.select)(this);hasProperties(e.type)&&r.updateWidgetRow(n,i.select(`td`),null)}).remove(),o.order()}updateWidgetRow(e,n,r){let i=[];e&&r&&(i=e[r.id]()||[]);let a=i instanceof Array?i:[i];if(r&&r.ext&&r.ext.autoExpand){let t=!0,n=a.filter(function(n,r){return t=n.valid(),n._owner=e,t||r===a.length-1},this),i=e[r.id+`_disabled`]&&e[r.id+`_disabled`](),o=!!(a.length-n.length);if(t&&!i){o=!0;let t=new r.ext.autoExpand().owner(e);n.push(t)}o&&(e[r.id](n),a=n)}let o=this;n.classed(`headerRow`,!0);let s=n.selectAll(`div.peInput-${this.depth()}`).data(a,function(e){return e.id()});s.enter().append(`div`).attr(`class`,`peInput peInput-${this.depth()}`).each(function(e){let n=(0,t.select)(this);n.append(`span`),n.append(`i`).attr(`class`,`fa`).on(`click`,function(e){let r=n.select(`div`);r.classed(`property-table-collapsed`,!r.classed(`property-table-collapsed`)),(0,t.select)(this).classed(`fa-minus-square-o`,!r.classed(`property-table-collapsed`)).classed(`fa-plus-square-o`,r.classed(`property-table-collapsed`)),o.refreshExpandIcon()});let i=n.append(`div`);o._childPE.set(this,new PropertyEditor().label(r.id).target(i.node()))}).merge(s).each(function(e){let n=(0,t.select)(this).select(`div`);(0,t.select)(this).select(`span`).text(`${r.id}`),(0,t.select)(this).select(`i`).classed(`fa-minus-square-o`,!n.classed(`property-table-collapsed`)).classed(`fa-plus-square-o`,n.classed(`property-table-collapsed`)),o._childPE.get(this).parentPropertyEditor(o).showFields(o.showFields()).showData(o.showData()).sorting(o.sorting()).filterTags(o.filterTags()).excludeTags(o.excludeTags()).excludeParams(o.excludeParams()).hideNonWidgets(o.hideNonWidgets()&&e._class.indexOf(`layout_`)>=0).widget(e).render()}),s.exit().each(function(e){o._childPE.get(this).widget(null).render().target(null),o._childPE.remove(this)}).remove()}setProperty(e,n,r){let i,a,o=this,s;for(;o&&e;){if(o===this&&(s=e[n](),e[n](r)),o){a=o;let e=o.widget();e instanceof t.Widget&&(i=e)}o=o.parentPropertyEditor()}i&&i.render(),a&&a.broadcast(n,r,s,e)}enterInputs(e,n,r){n.classed(r.type+`-cell`,!0);let i=this;switch(typeof r.ext.editor_input==`function`&&r.ext.editor_input(this,e,n,r),r.type){case`boolean`:n.append(`input`).attr(`id`,this.id()+`_`+r.id).classed(`property-input`,!0).attr(`type`,`checkbox`).on(`change`,function(){i.setProperty(e,r.id,this.checked)});break;case`set`:n.append(`select`).attr(`id`,this.id()+`_`+r.id).classed(`property-input`,!0).on(`change`,function(){i.setProperty(e,r.id,this.value)});break;case`array`:case`object`:n.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(){let t;try{t=JSON.parse(this.value)}catch{t=this.value}i.setProperty(e,r.id,t)});break;default:r.ext&&r.ext.range?(n.append(`span`).classed(`property-input-span`,!0).attr(`id`,this.id()+`_`+r.id+`_currentVal`).text(r.defaultValue),n.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(e,r.id,this.value),(0,t.select)(`#`+this.id+`_currentVal`).text(`Current Value: `+this.value)}).on(`change`,function(){i.setProperty(e,r.id,this.value),(0,t.select)(`#`+this.id+`_currentVal`).text(`Current Value: `+this.value)})):(n.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(e,r.id,this.value)}),r.type===`html-color`&&!t.Platform.isIE&&n.append(`input`).attr(`id`,this.id()+`_`+r.id+`_2`).classed(`property-input`,!0).attr(`type`,`color`).on(`change`,function(){i.setProperty(e,r.id,this.value)}));break}}updateInputs(e,n){let r=(0,t.selectAll)(`#`+this.id()+`_`+n.id+`, #`+this.id()+`_`+n.id+`_2`),i=e?e[n.id]():``;switch(r.property(`disabled`,e[n.id+`_disabled`]&&e[n.id+`_disabled`]()),r.property(`invalid`,e[n.id+`_valid`]&&!e[n.id+`_valid`]()),n.type){case`boolean`:r.property(`checked`,i);break;case`set`:let a=r.selectAll(`option`).data(e[n.id+`_options`]());a.enter().append(`option`).merge(a).attr(`value`,e=>e&&e.value!==void 0?e.value:e).text(e=>e&&e.text!==void 0?e.text:e),a.exit().remove(),r.property(`value`,i);break;case`array`:case`object`:r.property(`value`,JSON.stringify(i,function replacer(e,n){return n instanceof t.Widget?serialize(n):n},` `));break;default:n.ext&&n.ext.range&&(0,t.select)(`#`+this.id()+`_`+n.id+`_currentVal`).text(`Current Value: `+i),r.property(`value`,i&&i.length&&i.length>1e5?`...too big to display...`:i);break}}};Z.prototype._class+=` other_PropertyEditor`,Z.prototype.publish(`showFields`,!1,`boolean`,`If true, widget.fields() will display as if it was a publish parameter.`,null,{tags:[`Basic`]}),Z.prototype.publish(`showData`,!1,`boolean`,`If true, widget.data() will display as if it was a publish parameter.`,null,{tags:[`Basic`]}),Z.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`]}),Z.prototype.publish(`hideNonWidgets`,!1,`boolean`,`Hides non-widget params (at this tier only)`,null,{tags:[`Basic`]}),Z.prototype.publish(`label`,``,`string`,`Label to display in header of property editor table`,null,{tags:[`Basic`]}),Z.prototype.publish(`filterTags`,``,`set`,`Only show Publish Params of this type`,[`Basic`,`Intermediate`,`Advance`,``],{}),Z.prototype.publish(`excludeTags`,[`Private`],`array`,`Exclude this array of tags`,null,{}),Z.prototype.publish(`excludeParams`,[],`array`,`Exclude this array of params (widget.param)`,null,{}),Z.prototype.publish(`widget`,null,`widget`,`Widget`,null,{tags:[`Basic`],render:!1});var Q=Z.prototype.widget;Z.prototype.widget=function(e){if(arguments.length&&Q.call(this)===e)return this;let t=Q.apply(this,arguments);if(arguments.length&&(this.watchWidget(e),e instanceof n.Grid)){let t=this;e.postSelectionChange=function(){t._selectedItems=e._selectionBag.get().map(function(e){return e.widget}),t.lazyRender()}}return t};var RadioCheckbox=class extends t.HTMLWidget{_span;_label;_Checkbox;constructor(){super()}rcData(){if(this.data().length===0)return[];let e=this._db.rollupView([this.textColumn(),this.valueColumn()]),t=[];if(t=t.concat(e.entries().map(function(e){return{text:e.key,value:e.values.length?e.values[0].key:``,origRow:e.values.length&&e.values[0].values.length?e.values[0].values[0]:[]}},this)),this.sort_exists()){let e=this.sort()===`descending`;t.sort(function(t,n){return t.text<n.text?e?1:-1:t.text>n.text?e?-1:1:0})}return t}enter(e,t){super.enter(e,t),this._span=t.append(`span`),this._label=this._span.append(`label`).attr(`for`,this.id()+`_radioCheckbox`),this._Checkbox=this._span.append(`div`).attr(`id`,this.id()+`_radioCheckbox`)}update(e,n){super.update(e,n);let r=this;this._label.text(this.label());let i=this._Checkbox.selectAll(`.dataRow`).data(this.rcData());i.enter().append(`div`).attr(`class`,`dataRow`).each(function(e,n){let i=(0,t.select)(this),a=r.id()+`_checkbox_`+n;i.append(`input`).attr(`id`,a).attr(`name`,r.id()+`_radioCheckbox`).on(`change`,function(e){r.handleClick()}),i.append(`label`).attr(`for`,a)}),i.each(function(e,n){let i=(0,t.select)(this);i.select(`input`).attr(`type`,r.multiple()?`checkbox`:`radio`).attr(`value`,e.value),i.select(`label`).text(e.text)}),i.exit().remove(),i.order()}exit(e,t){this._span.remove(),super.exit(e,t)}handleClick(){let e=[];this._Checkbox.selectAll(`.dataRow > input`).each(function(n,r){(0,t.select)(this).property(`checked`)&&n&&n.origRow&&e.push(n.origRow)}),e.length?this.click(this.rowToObj(e[0]),this.valueColumn(),!0):this.click([],this.valueColumn(),!1)}click(e,t,n){}};RadioCheckbox.prototype._class+=` other_RadioCheckbox`,RadioCheckbox.prototype.publish(`label`,null,`string`,`Label for RadioCheckbox`),RadioCheckbox.prototype.publish(`valueColumn`,null,`set`,`RadioCheckbox display value`,function(){return this.columns()},{optional:!0}),RadioCheckbox.prototype.publish(`textColumn`,null,`set`,`RadioCheckbox value(s)`,function(){return this.columns()},{optional:!0}),RadioCheckbox.prototype.publish(`sort`,null,`set`,`Sort contents`,[``,`ascending`,`descending`],{optional:!0}),RadioCheckbox.prototype.publish(`multiple`,!1,`boolean`,`Multiple selection`);var Select=class extends t.HTMLWidget{_span;_prompt;_select;constructor(){super()}selectData(){if(this.data().length===0)return[];let e=this._db.rollupView([this.textColumn(),this.valueColumn()]),t=[];if(t=t.concat(e.entries().map(function(e){return{text:e.key,value:e.values.length?e.values[0].key:``,origRow:e.values.length&&e.values[0].value.length?e.values[0].value[0]:[]}},this)),this.sort_exists()){let e=this.sort()===`descending`;t.sort(function(t,n){return t.text<n.text?e?1:-1:t.text>n.text?e?-1:1:0})}return this.optional()&&t.unshift({value:``,text:``}),t}enter(e,n){super.enter(e,n),this._span=n.append(`span`),this._prompt=this._span.append(`label`).attr(`for`,this.id()+`_select`);let r=this;this._select=this._span.append(`select`).attr(`id`,this.id()+`_select`).on(`change`,function(e){let n=[],i=r._select.node().options;for(let e=0;e<i.length;++e){let r=i[e];r.selected&&n.push((0,t.select)(r).datum().origRow)}n.length?r.click(r.rowToObj(n[0]),r.valueColumn(),!0):r.click([],r.valueColumn(),!1)})}update(e,t){super.update(e,t),this._prompt.text(this.label()),this._select.attr(`multiple`,this.multiple()?this.multiple():null).attr(`size`,this.multiple()&&this.selectSize()?this.selectSize():null);let n=this._select.selectAll(`.dataRow`).data(this.selectData()),r=n.enter().append(`option`).attr(`class`,`dataRow`).merge(n).attr(`value`,function(e){return e.value}).text(function(e){return e.text});n.exit().remove(),r.order()}exit(e,t){this._span.remove(),super.exit(e,t)}click(e,t,n){}};Select.prototype._class+=` other_Select`,Select.prototype.publish(`label`,null,`string`,`Label for select`),Select.prototype.publish(`valueColumn`,null,`set`,`Select display value`,function(){return this.columns()},{optional:!0}),Select.prototype.publish(`textColumn`,null,`set`,`Select value(s)`,function(){return this.columns()},{optional:!0}),Select.prototype.publish(`optional`,!0,`boolean`,`Optional Select`),Select.prototype.publish(`sort`,null,`set`,`Sort contents`,[``,`ascending`,`descending`],{optional:!0}),Select.prototype.publish(`multiple`,!1,`boolean`,`Multiple selection`),Select.prototype.publish(`selectSize`,5,`number`,`Size of multiselect box`,null,{disable:e=>!e.multiple()});function hasLocalStorage(){let e=`@hpcc-js/other`;try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}}var $=hasLocalStorage()?localStorage:{getItem(e){}},getThemes=function(e){return typeof window.g_defaultThemes==`function`&&window.g_defaultThemes(e),JSON.parse($.getItem(`themeEditorThemes`)||`{}`)},getSerials=function(e){return typeof window.g_defaultSerials==`function`&&window.g_defaultSerials(e),JSON.parse($.getItem(`themeEditorSerials`)||`{}`)},getThemeNames=function(e){let t=getThemes(),n=[];for(let e in t)n.push(e);return e!==void 0&&n[e]!==void 0&&(n=n[e]),n},getSerialNames=function(e){let t=getSerials(),n=[];for(let e in t)n.push(e);return e!==void 0&&n[e]!==void 0&&(n=n[e]),n},tableNeedsRedraw=function(e){let t=!1;return e._current_grouping===void 0?e._current_grouping=e._group_params_by:e._current_grouping!==e._group_params_by&&(t=!0),e._showing_columns===void 0?e._showing_columns=e.showColumns():e._showing_columns!==e.showColumns()&&(t=!0),e._showing_data===void 0?e._showing_data=e.showData():e._showing_data!==e.showData()&&(t=!0),t},camelizeString=function(e){return e.split(/(?=[0-9A-Z])/).map(function(e){return e.length>1?e+` `:e}).join(``).replace(/(?:^|\s)\S/g,function(e){return e.toUpperCase()})},tableInputHtml=function(e,t,n,r){let i=``,a=`te-input-`+e.id+`-`+r,o;e.ext!==void 0&&e.ext.inputType!==void 0&&(o=e.ext.inputType),e.inputID!==void 0&&(a=e.inputID);let s=`data-paramid='`+e.id+`' data-wids='`+n.map(function(e){return typeof e.widget==`object`?e.widget._id:e}).join(`,`)+`'`;switch(e.type){case`boolean`:let n=t?` checked`:``;i=`<input id='`+a+`' `+s+` type='checkbox' class='te-checkbox te-input'`+n+`>`;break;case`number`:o===void 0?i=`<input id='`+a+`' type='text' class='te-text te-input' `+s+` value='`+t+`'>`:o===`textarea`?i=`<textarea id='`+a+`' class='te-textarea te-input' `+s+`>`+t+`</textarea>`:o===`range`&&(i=`<input id='`+a+`' class='te-input' type='range' `+s+` value='`+t+`' min='`+e.ext.min+`' max='`+e.ext.max+`' step='`+e.ext.step+`'>`);break;case`string`:o===void 0?i=`<input id='`+a+`' type='text' class='te-text te-input' value='`+t+`' `+s+`>`:o===`textarea`&&(i=`<textarea id='`+a+`' class='te-textarea te-input' `+s+`>`+t+`</textarea>`);break;case`html-color`:let r=t===``?``:` value='`+t+`'`;i=`<input id='`+a+`' type='text' class='te-html-color-input te-input' `+s+` `+r+`>`,i+=`<input type='color' class='te-html-color-button te-input' `+s+` `+r+`>`;break;case`set`:let c=_options(e,t);i=`<select id='`+a+`' class='te-select te-input'`+s+`>`+c+`</select>`;break;case`array`:i=`<textarea id='`+a+`' class='te-textarea te-input' data-type='array' `+s+`>`+t+`</textarea>`;break;default:break}return e.ext.saveButton!==void 0&&(i+=`<button id='`+e.ext.saveButtonID+`'>`+e.ext.saveButton+`</button>`),i;function _options(e,t){let n=``;return e.set.forEach(function(e){let r=e===t?` selected`:``;n+=`<option value='`+e+`'`+r+`>`+e+`</option>`}),n}},ThemeEditor=class extends t.HTMLWidget{_current_grouping;_showing_columns;_showing_data;_contentEditors;_showSettings;_defaultThemes;_widgetObjsById;_sharedProperties;getThemes;getSerials;getDefaultThemes;getDefaultSerials;constructor(){super(),this._tag=`div`,this._current_grouping=void 0,this._showing_columns=void 0,this._showing_data=void 0,this.columns([`Key`,`Value`]),this._contentEditors=[],this._showSettings=!0,this._defaultThemes=[],this._widgetObjsById={}}showSettings(e){return arguments.length?(this._showSettings=e,this):this._showSettings}onChange(e,t){}enter(e,t){super.enter(e,t),this._placeholderElement.style(`overflow`,`auto`)}widgetProperty(e,t,n){return n===void 0?e[t]():e[t](n)}load(e){}save(e){}needsPropTableRedraw(){return document.getElementById(`te-themeEditorOptions`)===null}update(e,t){if(super.update(e,t),tableNeedsRedraw(this)&&t.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()){let t=discover(this);for(let e in t)if(t[e].ext.tags.indexOf(this.editorComplexity())!==-1){let n=this[t[e].id]();(t[e].id===`loadedTheme`||t[e].id===`loadedSerial`)&&(t[e].inputID=`te-load-theme`),t[e].input=tableInputHtml(t[e],n,[this._id],this._id)}else delete t[e];e.innerHTML=this.propertiesTableHtml(t);let n=document.createEvent(`Events`);n.initEvent(`TE Properties Ready`,!0,!0),document.dispatchEvent(n)}this.buildTableObjects(e,this._sharedProperties),this.initFunctionality(e)}exit(e,t){super.exit(e,t)}click(e){}propertiesTableHtml(e){let t={id:`te-themeEditorOptions`,label:`Editor Options`,rowArr:[]},n={id:`te-tableModeOptions`,label:this.themeMode()?`Save/Load Theme`:`Save/Load Serial`,rowArr:[]};for(let r in e)this.themeMode()?e[r].ext.tags.indexOf(`Theme`)===-1&&e[r].ext.tags.indexOf(`Serial`)===-1?t.rowArr.push({th:camelizeString(e[r].id),td:e[r].input,trClass:`propertyRow`}):e[r].ext.tags.indexOf(`Theme`)!==-1&&n.rowArr.push({th:camelizeString(e[r].id),td:e[r].input,trClass:`propertyRow`}):e[r].ext.tags.indexOf(`Serial`)===-1&&e[r].ext.tags.indexOf(`Theme`)===-1?t.rowArr.push({th:camelizeString(e[r].id),td:e[r].input,trClass:`propertyRow`}):e[r].ext.tags.indexOf(`Serial`)!==-1&&n.rowArr.push({th:camelizeString(e[r].id),td:e[r].input,trClass:`propertyRow`});let r=``;return t.rowArr.length>0&&(r+=this.tableObjHtml(t)),n.rowArr.length>0&&(r+=this.tableObjHtml(n)),r}buildTableObjects(e,t){let n;n=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:[]}};for(let e in t)this.themeMode()?e.toUpperCase().indexOf(`FONT`)!==-1&&!(t[e].arr[0].widget._class.indexOf(`layout_Surface`)!==-1&&e.toUpperCase().indexOf(`COLOR`)!==-1)?n.fontSection.rowObjArr.push(t[e]):e===`paletteID`?n.chartColorSection.rowObjArr.push(t[e]):t[e].arr[0].widget._class.indexOf(`layout_Surface`)!==-1&&n.surfaceSection.rowObjArr.push(t[e]):t[e].arr[0].widget._class.indexOf(`layout_Surface`)===-1&&n.nonSurfaceSection.rowObjArr.push(t[e]);let r=``;for(let e in n)r+=this.sharedPropertyTableHtml(n[e]);e.innerHTML+=r}initFunctionality(e){let t=this;_expandCollapse(e),_inputOnChange(e),_inputOnClick(e);function _inputOnClick(e){if(t.showSettings()){let e=document.getElementById(`te-save-button`);e.onclick=function(e){let t=e.target,n=t.previousSibling.value;if(n.length>1){let e=document.getElementById(`te-load-theme`),r=e.getElementsByTagName(`option`),i=!1;for(let e in r)r[e].value===n&&(i=!0);i||(e.innerHTML+=`<option value='`+n+`'>`+n+`</option>`),t.previousSibling.value=``,e.value=n}else alert(`Save Name cannot be empty.`)}}}function _inputOnChange(e){let n=e.getElementsByClassName(`te-input`);for(let e in n){if(isNaN(parseInt(e)))break;let r=n[e],i=r.getAttribute(`id`);i===`te-load-theme`?r.onchange=function(e){let n=e.srcElement;t.load(n.value)}:i!==null&&i.indexOf(`te-input-themeMode`)!==-1?r.onchange=function(e){let n=e.srcElement;t.themeMode(n.checked);let r=document.getElementById(`te-load-theme`),i=r===null?`Default`:r.value;t.load(i)}:(r.tagName===`INPUT`||r.tagName===`SELECT`||r.tagName===`TEXTAREA`)&&(r.onchange=function(e){let n=e.srcElement,r=n.getAttribute(`id`);n.className.split(` `).indexOf(`te-html-color-button`)!==-1&&(r=n.previousSibling.getAttribute(`id`),n.previousSibling.value=n.value);let i=n.getAttribute(`type`),a=r.split(`-`),o=a.slice(0,a.length-1).join(`-`)+`-`,s=n.getAttribute(`data-wids`),c=n.getAttribute(`data-paramid`);s.split(`,`).forEach(function(e){let r=o+e,a=document.getElementById(r);if(i===`checkbox`)a.checked=n.checked,t._widgetObjsById[e][c](n.checked);else if(n.getAttribute(`data-type`)===`array`){a.value=n.value;try{t._widgetObjsById[e][c](JSON.parse(n.value))}catch{}}else a.value=n.value,t._widgetObjsById[e][c](n.value),a.className.split(` `).indexOf(`te-html-color-input`)===-1?a.className.split(` `).indexOf(`te-html-color-button`)!==-1&&(a.previousSibling.value=n.value):a.nextSibling.value=n.value}),t.data().forEach(function(e){e.render()})})}}function _expandCollapse(e){let t=e.getElementsByClassName(`te-section-table`);for(let e in t)if(typeof t[e].getElementsByTagName==`function`){let n=t[e].getElementsByTagName(`thead`);n[0].onclick=function(e){let t=e.toElement;t.tagName===`TH`&&(t=t.parentElement.parentElement);let n=t.parentElement,r;n.className.split(` `).indexOf(`expanded`)===-1?(n.className=`te-section-table expanded`,r=`shown`):(n.className=`te-section-table collapsed`,r=`hidden`);let i=n.getElementsByTagName(`tbody`);i[0].className=r}}let n=e.getElementsByClassName(`sharedPropertyRow`);for(let e in n)if(typeof n[e].getElementsByClassName==`function`){let t=n[e].getElementsByClassName(`te-label`);t[0].onclick=function(e){let t=e.toElement.parentElement,n;t.className.split(` `).indexOf(`expanded`)===-1?(t.className=`sharedPropertyRow expanded`,n=`shown`):(t.className=`sharedPropertyRow collapsed`,n=`hidden`);let r=t.nextSibling;for(;r!==null;)r.className.split(` `).indexOf(`sharedPropertyRow`)===-1?(r.className=`propertyRow `+n,r=r.nextSibling):r=null}}}}sharedPropertyTableHtml(e){let t={id:e.id,label:e.label,rowArr:[]};return e.rowObjArr.forEach(function(e){e.arr.forEach(function(n,r){r===0&&t.rowArr.push({th:_sharedPropertyLabel(e),td:_sharedPropertyInput(e),trClass:`sharedPropertyRow collapsed`}),t.rowArr.push({th:_propertyLabel(n),td:_propertyInput(e,r),trClass:`propertyRow hidden`})})}),this.tableObjHtml(t);function _propertyLabel(e){return e.widget.classID().split(`_`).join(`/`)+` <i>[`+e.widget._id+`]</i>`}function _sharedPropertyLabel(e){return camelizeString(e.id)}function _propertyInput(e,t){return tableInputHtml(e,_value(e,t),[e.arr[t]],e.arr[t].widget._id);function _value(e,t){let n=e.arr[t].widget[e.id]();return n===null?``:n}}function _sharedPropertyInput(e){return tableInputHtml(e,_sharedValue(e),e.arr,`shared`);function _sharedValue(e){let t=e.arr[0].widget[e.id]();return e.arr.forEach(function(e,n){if(t!==e.widget[e.id]())return``}),t===null?``:e.type===`array`?JSON.stringify(t):t}}}tableObjHtml(e){let t=`<table id='`+e.id+`' class='te-section-table expanded'>`;return t+=`<thead><tr><th colspan='2'>`+e.label+`</th></tr></thead>`,t+=`<tbody>`,e.rowArr.forEach(function(e){t+=this.tableRowObjHtml(e)},this),t+=`</tbody>`,t+`</table>`}tableRowObjHtml(e){let t=e.trClass===void 0?`<tr>`:`<tr class='`+e.trClass+`'>`;return t+=`<th class='te-label'>`+e.th+`</th>`,t+=`<td>`+e.td+`</td>`,t+`</tr>`}setWidgetObjsById(e){let t=this,n=e.widget[e.id]();e.type===`widgetArray`?n.forEach(function(e){t._widgetObjsById[e._id]=e}):e.type===`widget`&&n!==null&&(this._widgetObjsById[n._id]=n)}checkTagFilter(e){let t=[`Basic`],n=!1;return e.forEach(function(e){t.indexOf(e)!==-1&&(n=!0)}),n}findSharedProperties(e){let t=this,n;if(e!==void 0&&e.length>0){let r=[];n={};let i={},a={};e.forEach(function(e){let t=_getParams(e,0);r=r.concat(t)}),r.forEach(function(e){if([`widget`,`widgetArray`].indexOf(e.type)!==-1)t.setWidgetObjsById(e);else if(t.checkTagFilter(e.ext.tags)){let t=e.id;e.widget._class.indexOf(`Surface`)===-1?(a[t]===void 0&&(a[t]={arr:[]}),a[t].id=e.id,a[t].description=e.description,a[t].type=e.type,a[t].set=e.set,a[t].ext=e.ext,a[t].arr.push(e)):(i[t]===void 0&&(i[t]={arr:[]}),i[t].id=e.id,i[t].description=e.description,i[t].type=e.type,i[t].set=e.set,i[t].ext=e.ext,i[t].arr.push(e)),n[t]===void 0&&(n[t]={arr:[]}),n[t].id=e.id,n[t].description=e.description,n[t].type=e.type,n[t].set=e.set,n[t].ext=e.ext,n[t].arr.push(e)}})}return n;function _getParams(e,n){let r=[];return e!==null&&discover(e).forEach(function(i,a){if(i.ext.tags!==void 0&&r.push({id:i.id,type:i.type,description:i.description,set:i.set,ext:i.ext,widget:e}),i.type===`widgetArray`)t.widgetProperty(e,i.id).forEach(function(e){let t=_getParams(e,n+1);r=r.concat(t)});else if(i.type===`widget`){let a=_getParams(t.widgetProperty(e,i.id),n+1);r=r.concat(a)}}),r}}};ThemeEditor.prototype._class+=` other_ThemeEditor`,ThemeEditor.prototype.publish(`themeMode`,!0,`boolean`,`Edit default values`,null,{tags:[`Basic`]}),ThemeEditor.prototype.publish(`saveTheme`,``,`string`,`Save Theme`,null,{tags:[`Basic`,`Theme`],saveButton:`Save`,saveButtonID:`te-save-button`}),ThemeEditor.prototype.publish(`loadedTheme`,getThemeNames(1),`set`,`Loaded Theme`,getThemeNames(),{tags:[`Basic`,`Theme`]}),ThemeEditor.prototype.publish(`saveSerial`,``,`string`,`Save Serial`,null,{tags:[`Basic`,`Serial`],saveButton:`Save`,saveButtonID:`te-save-button`}),ThemeEditor.prototype.publish(`loadedSerial`,getSerialNames(0),`set`,`Loaded Serial`,getSerialNames(),{tags:[`Basic`,`Serial`]}),ThemeEditor.prototype.publish(`showColumns`,!0,`boolean`,`Show Columns`,null,{tags:[`Intermediate`]}),ThemeEditor.prototype.publish(`showData`,!0,`boolean`,`Show Data`,null,{tags:[`Intermediate`]}),ThemeEditor.prototype.publish(`shareCountMin`,1,`number`,`Share Count Min`,null,{tags:[`Private`]}),ThemeEditor.prototype.publish(`paramGrouping`,`By Param`,`set`,`Param Grouping`,[`By Param`,`By Widget`],{tags:[`Private`]}),ThemeEditor.prototype.publish(`editorComplexity`,`Basic`,`set`,`Choose what publish properties to display within the editor.`,[`Basic`,`Intermediate`,`Advanced`,`Private`],{tags:[`Private`]}),ThemeEditor.prototype.publish(`sectionTitle`,``,`string`,`Section Title`,null,{tags:[`Private`]}),ThemeEditor.prototype.publish(`collapsibleSections`,!0,`boolean`,`Collapsible Sections`,null,{tags:[`Intermediate`]}),ThemeEditor.prototype.getThemes=getThemes,ThemeEditor.prototype.getSerials=getSerials,ThemeEditor.prototype.getDefaultThemes=getThemeNames,ThemeEditor.prototype.getDefaultSerials=getSerialNames,e.Audio=Audio,e.AutoCompleteText=AutoCompleteText,e.BUILD_VERSION=d,e.CalendarHeatMap=CalendarHeatMap,e.Column=Column,e.ColumnDropdown=ColumnDropdown,Object.defineProperty(e,"Comms",{enumerable:!0,get:function(){return z}}),e.HPCCBadge=HPCCBadge,e.HeatMap=HeatMap,e.Html=Html,e.IconList=IconList,e.Legend=Legend,e.MorphText=MorphText,e.MouseHoverColumn=MouseHoverColumn,e.NestedTable=NestedTable,e.Opportunity=Opportunity,e.PKG_NAME=l,e.PKG_VERSION=u,e.Paginator=Paginator,Object.defineProperty(e,"Persist",{enumerable:!0,get:function(){return X}}),e.PropertyEditor=Z,e.RadioCheckbox=RadioCheckbox,e.Select=Select,e.Table=Table,e.ThemeEditor=ThemeEditor,e.cache=cache,e.createConnection=createConnection,e.createResult=createResult,e.enableCache=enableCache,e.flattenResult=flattenResult});
|
|
2
5
|
//# sourceMappingURL=index.umd.cjs.map
|
|
3
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('.other_autoCompleteText label{display:inline-block;vertical-align:top}.other_autoCompleteText input{width:100%;max-width:600px;outline:0;border-radius:100}.autocomplete-suggestions{text-align:left;cursor:default;border:1px solid #ccc;border-top:0;background:#fff;box-shadow:-1px 1px 3px #0000001a;position:absolute;display:none;z-index:9999;max-height:254px;overflow:hidden;overflow-y:auto;box-sizing:border-box}.autocomplete-suggestion{position:relative;padding:0 .6em;line-height:23px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:1.02em;color:#333}.autocomplete-suggestion b{font-weight:400;color:#1f8dd6}.autocomplete-suggestion.selected{background:#f0f0f0}.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}.other_Html{height:100%;width:100%;overflow-x:auto;overflow-y:scroll}.other_IconList .other_Html{overflow-x:hidden;overflow-y:hidden}.other_Paginator{display:block;position:absolute;white-space:nowrap}.other_Paginator .pagination{display:inline-block;white-space:nowrap;margin:0;padding:0}.other_Paginator .pagination>li{display:inline}.other_Paginator input[type=number].currentPageNumber{border:1px solid #ddd;outline:0 none;position:relative;width:37px;text-align:center}.other_Paginator div.side{padding-top:5px;padding-left:8px;vertical-align:top}.other_Paginator span.side{position:relative;color:#337ab7}.other_Paginator .pagination>li>a,.other_Paginator .pagination>div,.other_Paginator .pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.other_Paginator .pagination>li:first-child>a,.other_Paginator .pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.other_Paginator .pagination>li:last-child>a,.other_Paginator .pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.other_Paginator .pagination>li>a:hover,.other_Paginator .pagination>li>span:hover,.other_Paginator .pagination>li>a:focus,.other_Paginator .pagination>li>span:focus{color:#23527c;background-color:#eee;border-color:#ddd}.other_Paginator .pagination>.active>a,.other_Paginator .pagination>.active>span,.other_Paginator .pagination>.active>a:hover,.other_Paginator .pagination>.active>span:hover,.other_Paginator .pagination>.active>a:focus,.other_Paginator .pagination>.active>span:focus{z-index:2;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.other_Paginator .pagination>.disabled>span,.other_Paginator .pagination>.disabled>span:hover,.other_Paginator .pagination>.disabled>span:focus,.other_Paginator .pagination>.disabled>a,.other_Paginator .pagination>.disabled>a:hover,.other_Paginator .pagination>.disabled>a:focus{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.other_Paginator .pagination-lg>li>a,.other_Paginator .pagination-lg>li>span{padding:10px 16px;font-size:18px}.other_Paginator .pagination-lg>li:first-child>a,.other_Paginator .pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.other_Paginator .pagination-lg>li:last-child>a,.other_Paginator .pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.other_Paginator .pagination-sm>li>a,.other_Paginator .pagination-sm>li>span{padding:5px 10px;font-size:12px}.other_Paginator .pagination-sm>li:first-child>a,.other_Paginator .pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.other_Paginator .pagination-sm>li:last-child>a,.other_Paginator .pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.other_Table{color:#333;border-width:1px;border-color:#999}.other_Table table{border-collapse:collapse;border-spacing:0}.other_Table .tableDiv{position:absolute}.other_Table th,.labels-wrapper th{padding:5px 10px;border-width:1px;border-style:solid;border-color:#a9c6c9;color:#fff;white-space:nowrap;cursor:pointer;box-sizing:border-box}.other_Table thead>tr,.cols-wrapper tr{background-color:#1f77b4}.other_Table .thIcon,.labels-wrapper .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 .tableDiv tbody>tr.selected:hover,.other_Table .tableDiv tbody>tr.selected.hover{background-color:#5ea8db;color:#fff}.other_Table .rows-wrapper tbody tr.hover.selected,.other_Table tr.selected:hover,.other_Table tr.selected.hover{background-color:#5ea8db;color:#fff}.other_Table td,.rows-wrapper td{border-width:1px;padding:2px 5px;border-style:solid;border-color:#a9c6c9;white-space:nowrap;box-sizing:border-box;vertical-align:middle}.other_Table tfoot td,.rows-wrapper tfoot td{background-color:#addff3;font-weight:700}.other_Legend .colorBlock{width:10px;height:10px}.other_Legend>table,.other_Legend>table td,.other_Legend>table th{border-collapse:collapse;border-spacing:0px}.other_Table.other_Legend table{border-spacing:0}.other_Table.other_Legend th,.labels-wrapper th{padding:2px 5px;background-color:transparent;border-width:1px;border-style:solid;border-color:transparent;color:#333;white-space:nowrap;cursor:default;font-weight:400;text-align:left}.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:0px;padding:2px 5px;white-space:nowrap;box-sizing:border-box}.other_Legend>.tableDiv>table>tbody>tr:hover{cursor:pointer;color:#000;background-color:#ddd}.other_Legend.horiz-legend .tableDiv{width:100%!important;text-align:left}.other_Legend.horiz-legend .tableDiv>table{display:inline-block;width:100%!important;top:0!important;left:0!important}.other_Legend.horiz-legend thead,.other_Legend.horiz-legend tbody,.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;width:100%!important;text-align:center}.other_MorphText .enter{fill:green}.other_MorphText .update{fill:#333}.other_MorphText .exit{fill:brown}.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{font-size:18px;font-family:Arial;color:#000;font-weight:700}.graph_Opportunity .node_date_change{fill:#fff}.graph_Opportunity .node_date_change_text{font-size:18px;font-family:Arial;color:#000;font-weight:700}.graph_Opportunity .node_prev_text{font-size:9px;font-family:Arial;opacity:.6}.graph_Opportunity .node_cur_rect{stroke-width:2;stroke:#000}.graph_Opportunity .node_cur_text{font-size:9px;font-family:Arial;text-decoration:underline}.graph_Opportunity .arrowhead{refX:6}.graph_Opportunity-tooltip.tooltip{position:absolute;text-align:left;width:350px;height:135px;padding:15px 10px 10px;font:14px arial;background:#bdbdbd;border:0px;border-radius:8px;pointer-events:none;z-index:1}.other_PropertyEditor{overflow-y:scroll;height:100%;width:100%}.other_PropertyEditor .other_PropertyEditor{overflow:hidden}.other_PropertyEditor .property-table{width:100%;border:1px solid #ddd;border-width:0 0 0 1px}.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-top:2px;padding-bottom:2px}.other_PropertyEditor .headerRow>span>i:hover{background-color:#555;cursor:pointer}.other_PropertyEditor .property-table thead>tr>th{text-align:left;background-color:#333;color:#fff;padding-top:2px;padding-left:4px}.other_PropertyEditor .property-table thead>tr>th>i{float:right;padding-top:2px;padding-right:4px;padding-bottom: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{text-align:left;color:#333;padding:0 0 0 2px}.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{padding-right:4px;box-sizing:border-box;height:20px}.other_PropertyEditor td.property-input-cell{text-align:left;height:20px;padding:1px 0;width:80%}.other_PropertyEditor .property-input-cell>input,.other_PropertyEditor .property-input-cell>textarea{width:100%;box-sizing:border-box}.other_PropertyEditor .property-input-cell>input{height:20px}.other_PropertyEditor .property-input-cell>textarea{height:120px}.other_PropertyEditor .property-input-cell.boolean-cell{width:auto;margin:0;position:relative}.other_PropertyEditor .property-input-cell>input[type=checkbox]{width:auto;margin:0;position:absolute;top:0}.other_PropertyEditor .html-color-cell>input{width:80%}.other_PropertyEditor .html-color-cell>input[type=color]{width:20%;position:relative;top:-1px}.other_RadioCheckbox span,.other_RadioCheckbox label,.other_Select span,.other_Select label{vertical-align:top}.other_ThemeEditor *{box-sizing:border-box}.other_ThemeEditor table{width:100%;margin-bottom:4px}.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>th,.other_ThemeEditor tbody>tr>td{font-weight:400;background-color:#fafafa}.other_ThemeEditor thead>tr:first-child>th{background-color:#e5e5e5}.other_ThemeEditor thead>tr.mm-content>th{padding:0 4px;font-size:12px}.other_ThemeEditor th,.other_ThemeEditor td{padding:4px;white-space:nowrap}.other_ThemeEditor thead.mm-label>tr:first-child>th{position:relative;padding-left:29px}.other_ThemeEditor thead.mm-label>tr:first-child>th:before{content:"[+]";position:absolute;left:3px;top:3px;color:#404040;height:15px;width:15px;font-family:monospace}.other_ThemeEditor thead.mm-label.max>tr:first-child>th:before{content:"[-]"}.other_ThemeEditor tr.sharedPropertyRow>td.label:after{content:"[+]";position:absolute;right:10px;top:3px;color:#404040;height:15px;width:15px;font-family:monospace}.other_ThemeEditor tr.sharedPropertyRow>td.label.expanded:after{content:"[-]"}.other_ThemeEditor tr.sharedPropertyRow>td.label{position:relative;padding-right:30px;text-decoration:underline}.other_ThemeEditor tr.sharedPropertyRow>td.label:hover{text-decoration:none;cursor:pointer}.other_ThemeEditor tr.propertyRow>th,.other_ThemeEditor tr.propertyRow>td{background-color:#f4f4f4}.other_ThemeEditor tr.propertyRow>td.label{padding-left:24px}.other_ThemeEditor table,.other_ThemeEditor th,.other_ThemeEditor td{border:1px solid #e5e5e5}.other_ThemeEditor .mm-label.min .mm-content,.other_ThemeEditor .mm-label.min+.mm-content{display:none}.mm-label:hover{cursor:pointer}.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 textarea,.other_ThemeEditor select{height:30px;float:left}.other_ThemeEditor input,.other_ThemeEditor select{width:150px}.other_ThemeEditor .te-checkbox{width:20px;height:20px;margin:0}.other_ThemeEditor .te-html-color-input{height:30px;width:120px}.other_ThemeEditor .te-html-color-button{width:30px}.other_ThemeEditor button,.other_ThemeEditor .te-html-color-button{background-color:#ccc;border:1px solid #A9A9A9;border-left:0;height:30px;float:left;padding:4px}.other_ThemeEditor button,.other_ThemeEditor .te-html-color-button,.other_ThemeEditor .te-section-table thead{cursor:pointer}.other_ThemeEditor button:hover,.other_ThemeEditor .te-html-color-button:hover{background-color:#bbb}.other_ThemeEditor button:active,.other_ThemeEditor .te-html-color-button:active{background-color:#aaa}.other_ThemeEditor .te-label{white-space:nowrap;width:1%;vertical-align:top}.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{font: 14px/1 FontAwesome;content:"";float:right;margin-right:6px;margin-top:4px}.te-section-table.collapsed>thead>tr>th:after{font: 14px/1 FontAwesome;content:"";float:right;margin-right:6px;margin-top:4px}#te-tableModeOptions thead>tr>th,#te-themeEditorOptions thead>tr>th{border:1px solid #6E6E73;background-color:#6e6e73;color:#fafafa}')),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
|
|
6
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.other_autoCompleteText label{vertical-align:top;display:inline-block}.other_autoCompleteText input{border-radius:100px;outline:0;width:100%;max-width:600px}.autocomplete-suggestions{text-align:left;cursor:default;z-index:9999;box-sizing:border-box;background:#fff;border:1px solid #ccc;border-top:0;max-height:254px;display:none;position:absolute;overflow:hidden auto;box-shadow:-1px 1px 3px #0000001a}.autocomplete-suggestion{white-space:nowrap;text-overflow:ellipsis;color:#333;padding:0 .6em;font-size:1.02em;line-height:23px;position:relative;overflow:hidden}.autocomplete-suggestion b{color:#1f8dd6;font-weight:400}.autocomplete-suggestion.selected{background:#f0f0f0}.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}.other_Html{width:100%;height:100%;overflow:auto scroll}.other_IconList .other_Html{overflow:hidden}.other_Paginator{white-space:nowrap;display:block;position:absolute}.other_Paginator .pagination{white-space:nowrap;margin:0;padding:0;display:inline-block}.other_Paginator .pagination>li{display:inline}.other_Paginator input[type=number].currentPageNumber{text-align:center;border:1px solid #ddd;outline:0;width:37px;position:relative}.other_Paginator div.side{vertical-align:top;padding-top:5px;padding-left:8px}.other_Paginator span.side{color:#337ab7;position:relative}.other_Paginator .pagination>li>a,.other_Paginator .pagination>div,.other_Paginator .pagination>li>span{float:left;color:#337ab7;background-color:#fff;border:1px solid #ddd;margin-left:-1px;padding:6px 12px;line-height:1.42857;text-decoration:none;position:relative}.other_Paginator .pagination>li:first-child>a,.other_Paginator .pagination>li:first-child>span{border-top-left-radius:4px;border-bottom-left-radius:4px;margin-left:0}.other_Paginator .pagination>li:last-child>a,.other_Paginator .pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.other_Paginator .pagination>li>a:hover,.other_Paginator .pagination>li>span:hover,.other_Paginator .pagination>li>a:focus,.other_Paginator .pagination>li>span:focus{color:#23527c;background-color:#eee;border-color:#ddd}.other_Paginator .pagination>.active>a,.other_Paginator .pagination>.active>span,.other_Paginator .pagination>.active>a:hover,.other_Paginator .pagination>.active>span:hover,.other_Paginator .pagination>.active>a:focus,.other_Paginator .pagination>.active>span:focus{z-index:2;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.other_Paginator .pagination>.disabled>span,.other_Paginator .pagination>.disabled>span:hover,.other_Paginator .pagination>.disabled>span:focus,.other_Paginator .pagination>.disabled>a,.other_Paginator .pagination>.disabled>a:hover,.other_Paginator .pagination>.disabled>a:focus{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.other_Paginator .pagination-lg>li>a,.other_Paginator .pagination-lg>li>span{padding:10px 16px;font-size:18px}.other_Paginator .pagination-lg>li:first-child>a,.other_Paginator .pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.other_Paginator .pagination-lg>li:last-child>a,.other_Paginator .pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.other_Paginator .pagination-sm>li>a,.other_Paginator .pagination-sm>li>span{padding:5px 10px;font-size:12px}.other_Paginator .pagination-sm>li:first-child>a,.other_Paginator .pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.other_Paginator .pagination-sm>li:last-child>a,.other_Paginator .pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.other_Table{color:#333;border-width:1px;border-color:#999}.other_Table table{border-collapse:collapse;border-spacing:0}.other_Table .tableDiv{position:absolute}.other_Table th,.labels-wrapper th{color:#fff;white-space:nowrap;cursor:pointer;box-sizing:border-box;border:1px solid #a9c6c9;padding:5px 10px}.other_Table thead>tr,.cols-wrapper tr{background-color:#1f77b4}.other_Table .thIcon,.labels-wrapper .thIcon{padding-left:8px;font-family:FontAwesome}.other_Table .tableDiv tbody>tr:nth-child(odd){color:#000;background-color:#f3faff}.other_Table .tableDiv tbody>tr:nth-child(2n){color:#000;background-color:#fff}.other_Table .tableDiv tbody>tr.selected{color:#fff;background-color:#f48a00}.other_Table .rows-wrapper table>tbody>tr{color:#000;background-color:#bce1fb}.other_Table .rows-wrapper .labels-wrapper{width:100%}.other_Table table tbody>tr.selected{color:#fff;background-color:#f48a00}.other_Table .tableDiv tbody>tr:hover,.other_Table .tableDiv tbody>tr.hover,.rows-wrapper table tbody tr.hover{color:#fff;background-color:#bfd7e7}.other_Table .tableDiv tbody>tr.selected:hover,.other_Table .tableDiv tbody>tr.selected.hover,.other_Table .rows-wrapper tbody tr.hover.selected,.other_Table tr.selected:hover,.other_Table tr.selected.hover{color:#fff;background-color:#5ea8db}.other_Table td,.rows-wrapper td{white-space:nowrap;box-sizing:border-box;vertical-align:middle;border:1px solid #a9c6c9;padding:2px 5px}.other_Table tfoot td,.rows-wrapper tfoot td{background-color:#addff3;font-weight:700}.other_Legend .colorBlock{width:10px;height: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}.other_Table.other_Legend th,.labels-wrapper th{color:#333;white-space:nowrap;cursor:default;text-align:left;background-color:#0000;border:1px solid #0000;padding:2px 5px;font-weight:400}.other_Table.other_Legend tr{color:#333;background-color:#0000}.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{color:#fff;background-color:#bfd7e7}.other_Table.other_Legend thead>tr:hover{background-color:#0000}.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{white-space:nowrap;box-sizing:border-box;border-width:0;padding:2px 5px}.other_Legend>.tableDiv>table>tbody>tr:hover{cursor:pointer;color:#000;background-color:#ddd}.other_Legend.horiz-legend .tableDiv{text-align:left;width:100%!important}.other_Legend.horiz-legend .tableDiv>table{display:inline-block;width:100%!important;top:0!important;left:0!important}.other_Legend.horiz-legend thead,.other_Legend.horiz-legend tbody,.other_Legend.horiz-legend tr{display:inline-block}.other_Legend.horiz-legend td,.other_Legend.horiz-legend td>div{white-space:nowrap;display:inline-block}.other_Legend.horiz-legend tr{white-space:nowrap}.other_Legend.horiz-legend tbody{text-align:center;display:inline-block;width:100%!important}.other_MorphText .enter{fill:green}.other_MorphText .update{fill:#333}.other_MorphText .exit{fill:brown}.graph_Opportunity{transform:translate(20px,20px)scale(1)!important}.graph_Opportunity .group{stroke-width:1px;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:2px;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{opacity:.6;font-family:Arial;font-size:9px}.graph_Opportunity .node_cur_rect{stroke-width:2px;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{text-align:left;pointer-events:none;z-index:1;background:#bdbdbd;border:0;border-radius:8px;width:350px;height:135px;padding:15px 10px 10px;font:14px arial;position:absolute}.other_PropertyEditor{width:100%;height:100%;overflow-y:scroll}.other_PropertyEditor .other_PropertyEditor{overflow:hidden}.other_PropertyEditor .property-table{border:0 solid #ddd;border-left-width: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{width:14px;font-size:14px}.other_PropertyEditor div.property-table-collapsed{display:none}.other_PropertyEditor .headerRow>.peInput{padding-top:2px}.other_PropertyEditor .headerRow>.peInput>span{padding-left:2px;font-weight:700}.other_PropertyEditor .headerRow>.peInput>i{float:right;padding-top:2px;padding-bottom:2px}.other_PropertyEditor .headerRow>span>i:hover{cursor:pointer;background-color:#555}.other_PropertyEditor .property-table thead>tr>th{text-align:left;color:#fff;background-color:#333;padding-top:2px;padding-left:4px}.other_PropertyEditor .property-table thead>tr>th>i{float:right;padding-top:2px;padding-bottom:2px;padding-right:4px}.other_PropertyEditor .property-table thead>tr>th>i:hover{cursor:pointer;background-color:#555}.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{text-align:left;color:#333;padding:0 0 0 2px}.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{text-align:left;width:80%;height:20px;padding:1px 0}.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{width:auto;margin:0;position:relative}.other_PropertyEditor .property-input-cell>input[type=checkbox]{width:auto;margin:0;position:absolute;top:0}.other_PropertyEditor .html-color-cell>input{width:80%}.other_PropertyEditor .html-color-cell>input[type=color]{width:20%;position:relative;top:-1px}.other_RadioCheckbox span,.other_RadioCheckbox label,.other_Select span,.other_Select label{vertical-align:top}.other_ThemeEditor *{box-sizing:border-box}.other_ThemeEditor table{width:100%;margin-bottom:4px}.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>th,.other_ThemeEditor tbody>tr>td{background-color:#fafafa;font-weight:400}.other_ThemeEditor thead>tr:first-child>th{background-color:#e5e5e5}.other_ThemeEditor thead>tr.mm-content>th{padding:0 4px;font-size:12px}.other_ThemeEditor th,.other_ThemeEditor td{white-space:nowrap;padding:4px}.other_ThemeEditor thead.mm-label>tr:first-child>th{padding-left:29px;position:relative}.other_ThemeEditor thead.mm-label>tr:first-child>th:before{content:"[+]";color:#404040;width:15px;height:15px;font-family:monospace;position:absolute;top:3px;left:3px}.other_ThemeEditor thead.mm-label.max>tr:first-child>th:before{content:"[-]"}.other_ThemeEditor tr.sharedPropertyRow>td.label:after{content:"[+]";color:#404040;width:15px;height:15px;font-family:monospace;position:absolute;top:3px;right:10px}.other_ThemeEditor tr.sharedPropertyRow>td.label.expanded:after{content:"[-]"}.other_ThemeEditor tr.sharedPropertyRow>td.label{padding-right:30px;text-decoration:underline;position:relative}.other_ThemeEditor tr.sharedPropertyRow>td.label:hover{cursor:pointer;text-decoration:none}.other_ThemeEditor tr.propertyRow>th,.other_ThemeEditor tr.propertyRow>td{background-color:#f4f4f4}.other_ThemeEditor tr.propertyRow>td.label{padding-left:24px}.other_ThemeEditor table,.other_ThemeEditor th,.other_ThemeEditor td{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 textarea,.other_ThemeEditor select{float:left;height:30px}.other_ThemeEditor input,.other_ThemeEditor select{width:150px}.other_ThemeEditor .te-checkbox{width:20px;height:20px;margin:0}.other_ThemeEditor .te-html-color-input{width:120px;height:30px}.other_ThemeEditor .te-html-color-button{width:30px}.other_ThemeEditor button,.other_ThemeEditor .te-html-color-button{float:left;background-color:#ccc;border:1px solid #a9a9a9;border-left:0;height:30px;padding:4px}.other_ThemeEditor button,.other_ThemeEditor .te-html-color-button,.other_ThemeEditor .te-section-table thead{cursor:pointer}.other_ThemeEditor button:hover,.other_ThemeEditor .te-html-color-button:hover{background-color:#bbb}.other_ThemeEditor button:active,.other_ThemeEditor .te-html-color-button:active{background-color:#aaa}.other_ThemeEditor .te-label{white-space:nowrap;vertical-align:top;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;margin-top:4px;margin-right:6px;font:14px/1 FontAwesome}.te-section-table.collapsed>thead>tr>th:after{content:"";float:right;margin-top:4px;margin-right:6px;font:14px/1 FontAwesome}#te-tableModeOptions thead>tr>th,#te-themeEditorOptions thead>tr>th{color:#fafafa;background-color:#6e6e73;border:1px solid #6e6e73}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|