From 6a368d61bb0a16f06d73002236957822b92ad8bd Mon Sep 17 00:00:00 2001 From: Elvin Chu Date: Thu, 29 Sep 2022 22:42:16 +0800 Subject: [PATCH] release: v0.2.5 --- inst/dist/vlab_bundle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inst/dist/vlab_bundle.js b/inst/dist/vlab_bundle.js index 45dadde..0510c6b 100644 --- a/inst/dist/vlab_bundle.js +++ b/inst/dist/vlab_bundle.js @@ -1,4 +1,4 @@ -/*! vlab-js v0.2.4 */(()=>{var __webpack_modules__={405:function(A,t,e){!function(A,t){"use strict";function e(A){return A&&"object"==typeof A&&"default"in A?A:{default:A}}var r=e(t);const n={title:"Options",$schema:"http://json-schema.org/draft-07/schema#",properties:{backgroundColors:{title:"Background Colors",type:"array",items:{type:"string",enum:["amber","blue","blueGrey","brown","cyan","deepOrange","deepPurple","green","grey","indigo","lightBlue","lightGreen","lime","orange","pink","purple","red","teal","yellow"]}},backgroundColorLevel:{title:"Background Color Level",default:600,type:"integer",enum:[50,100,200,300,400,500,600,700,800,900]},fontSize:{title:"Font Size",type:"integer",minimum:1,maximum:100,default:50},chars:{title:"Chars",type:"number",minimum:0,maximum:2,default:2},bold:{title:"Bold",type:"boolean"}},additionalProperties:!1};var i=d;d.addTo=function(A,t){return A?"string"==typeof A?function(A,t){return B(m(A,t))}(A,U(t)):function(A,t){return w(A,t).map(B)}(A,U(t)):""},d.parse=function(A,t){return A?"string"==typeof A?m(A,U(t)):w(A,U(t)):{}},d.find=d;var o=" -\\/:-@\\[-`\\{-\\~",a=/^[A-Z]+$/,s=/\(([^)]+)\)/,c=/^[^\s]+@[^\s]+$/,l=/@[^\s]+/,u=/[\w._-]+@[\w.-]+[\w]/g,f=new RegExp("(^|["+o+"])[^"+o+"]","g"),h=new RegExp("["+o+"]","g");function d(A,t){return A?"string"==typeof A?p(A,U(t)):g(A,U(t)):""}function p(A,t){var e,r,n,i=t.length||2;if(n=b(A,t))return n;if(!(A=y(A)))return"";if((e=A.match(f).map((function(A){return A[A.length-1]}))).length<2)return A.length>i?A.substr(0,i):A;if((r=e.join("")).length>=i)return r;for(var o=C(A),a=0;a=i)return o[a]}function g(A,t){var e,r,n,i=[],o={},a={},s={},c=t.length||2;A.forEach((function(A){if(A||(A=""),!s[A])if(A.length0&&(a[n[d]]--,n.splice(d,1))}return e=i.map((function(A){return A.length})),0===e.length?A:0===Math.min.apply(null,e)?(t.length++,g(A,t)):A.map((function(A){return s[A][0]}))}function m(A,t){var e,r,n,i={};return A?((e=b(A,t))&&(A=(A=A.replace(a,"")).replace(s,"")),t.initials&&(e=t.initials),e||(e=p(A,t)),null!=(n=A.match(u))&&(r=n.pop()),r&&(A=A.replace(r,"")).trim()==="<"+r+">"&&(A="",e||(e=p(r,t))),(A=A.replace(h," ").trim())&&(i.name=A),e&&(i.initials=e),r&&(i.email=r),i):{}}function w(A,t){var e=g(A,t);return A.map((function(A,r){return t.existing[A]=e[r],m(A,t)}))}function B(A){return A.name||A.email?A.email?A.name?A.name+" ("+A.initials+") <"+A.email+">":A.email+" ("+A.initials+")":A.name+" ("+A.initials+")":A.initials}function y(A){return(A=c.test(A)?A.replace(l,""):A.replace(u,"")).replace(h," ").trim()}function b(A,t){var e;return t.existing[A]?t.existing[A]:a.test(A)?A:null!=(e=A.match(s))?e.pop():void 0}var v={};function C(A){var t,e=[];return A=y(A),v[A]?v[A].slice(0):(t=A.split(" ").map(Q),e=(e=F(t)).sort((function(A,t){return A.length-t.length||e.indexOf(A)-e.indexOf(t)})),v[A]=e,e.slice(0))}function F(A){var t,e,r=A.shift();return A.length>0?(e=[],t=F(A),r.forEach((function(A){t.forEach((function(t){e.push(A+t)}))})),e):r}function Q(A){for(var t=[];A.length;)t.unshift(A),A=A.substr(0,A.length-1);return t}function U(A){return A||(A={length:2}),"number"==typeof A&&(A={length:A}),A.length=Math.max(A.length||0,2),A.existing=A.existing||{},A}var k=i;const x={meta:{title:"Initials",creator:"Florian Körner",source:"https://github.com/dicebear/dicebear",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},schema:n,create:A=>{var e,i;let{prng:o,options:a}=A,s=t.utils.schema.defaults(n),c=[];a.background?(Array.isArray(a.background)?c.push(...a.background):c.push(a.background),a.background=void 0):Object.keys(r.default.color.collection).forEach((A=>{if(void 0===a.backgroundColors||0===a.backgroundColors.length||-1!==a.backgroundColors.indexOf(A)){var t;let e=r.default.color.collection[A];c.push(e[null!==(t=a.backgroundColorLevel)&&void 0!==t?t:s.backgroundColorLevel])}}));let l=o.pick(c),u=k(o.seed.trim()).toLocaleUpperCase().slice(0,null!==(e=a.chars)&&void 0!==e?e:s.chars),f=(null!==(i=a.fontSize)&&void 0!==i?i:s.fontSize)/100,h=[''),a.margin?''):"",a.margin?''):"",'').concat(u,""),a.margin?"":"",a.margin?"":""].join("");return a.margin=void 0,{attributes:{viewBox:"0 0 1 1"},body:h}}}; +/*! vlab-js v0.2.5 */(()=>{var __webpack_modules__={405:function(A,t,e){!function(A,t){"use strict";function e(A){return A&&"object"==typeof A&&"default"in A?A:{default:A}}var r=e(t);const n={title:"Options",$schema:"http://json-schema.org/draft-07/schema#",properties:{backgroundColors:{title:"Background Colors",type:"array",items:{type:"string",enum:["amber","blue","blueGrey","brown","cyan","deepOrange","deepPurple","green","grey","indigo","lightBlue","lightGreen","lime","orange","pink","purple","red","teal","yellow"]}},backgroundColorLevel:{title:"Background Color Level",default:600,type:"integer",enum:[50,100,200,300,400,500,600,700,800,900]},fontSize:{title:"Font Size",type:"integer",minimum:1,maximum:100,default:50},chars:{title:"Chars",type:"number",minimum:0,maximum:2,default:2},bold:{title:"Bold",type:"boolean"}},additionalProperties:!1};var i=d;d.addTo=function(A,t){return A?"string"==typeof A?function(A,t){return B(m(A,t))}(A,U(t)):function(A,t){return w(A,t).map(B)}(A,U(t)):""},d.parse=function(A,t){return A?"string"==typeof A?m(A,U(t)):w(A,U(t)):{}},d.find=d;var o=" -\\/:-@\\[-`\\{-\\~",a=/^[A-Z]+$/,s=/\(([^)]+)\)/,c=/^[^\s]+@[^\s]+$/,l=/@[^\s]+/,u=/[\w._-]+@[\w.-]+[\w]/g,f=new RegExp("(^|["+o+"])[^"+o+"]","g"),h=new RegExp("["+o+"]","g");function d(A,t){return A?"string"==typeof A?p(A,U(t)):g(A,U(t)):""}function p(A,t){var e,r,n,i=t.length||2;if(n=b(A,t))return n;if(!(A=y(A)))return"";if((e=A.match(f).map((function(A){return A[A.length-1]}))).length<2)return A.length>i?A.substr(0,i):A;if((r=e.join("")).length>=i)return r;for(var o=C(A),a=0;a=i)return o[a]}function g(A,t){var e,r,n,i=[],o={},a={},s={},c=t.length||2;A.forEach((function(A){if(A||(A=""),!s[A])if(A.length0&&(a[n[d]]--,n.splice(d,1))}return e=i.map((function(A){return A.length})),0===e.length?A:0===Math.min.apply(null,e)?(t.length++,g(A,t)):A.map((function(A){return s[A][0]}))}function m(A,t){var e,r,n,i={};return A?((e=b(A,t))&&(A=(A=A.replace(a,"")).replace(s,"")),t.initials&&(e=t.initials),e||(e=p(A,t)),null!=(n=A.match(u))&&(r=n.pop()),r&&(A=A.replace(r,"")).trim()==="<"+r+">"&&(A="",e||(e=p(r,t))),(A=A.replace(h," ").trim())&&(i.name=A),e&&(i.initials=e),r&&(i.email=r),i):{}}function w(A,t){var e=g(A,t);return A.map((function(A,r){return t.existing[A]=e[r],m(A,t)}))}function B(A){return A.name||A.email?A.email?A.name?A.name+" ("+A.initials+") <"+A.email+">":A.email+" ("+A.initials+")":A.name+" ("+A.initials+")":A.initials}function y(A){return(A=c.test(A)?A.replace(l,""):A.replace(u,"")).replace(h," ").trim()}function b(A,t){var e;return t.existing[A]?t.existing[A]:a.test(A)?A:null!=(e=A.match(s))?e.pop():void 0}var v={};function C(A){var t,e=[];return A=y(A),v[A]?v[A].slice(0):(t=A.split(" ").map(Q),e=(e=F(t)).sort((function(A,t){return A.length-t.length||e.indexOf(A)-e.indexOf(t)})),v[A]=e,e.slice(0))}function F(A){var t,e,r=A.shift();return A.length>0?(e=[],t=F(A),r.forEach((function(A){t.forEach((function(t){e.push(A+t)}))})),e):r}function Q(A){for(var t=[];A.length;)t.unshift(A),A=A.substr(0,A.length-1);return t}function U(A){return A||(A={length:2}),"number"==typeof A&&(A={length:A}),A.length=Math.max(A.length||0,2),A.existing=A.existing||{},A}var k=i;const x={meta:{title:"Initials",creator:"Florian Körner",source:"https://github.com/dicebear/dicebear",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},schema:n,create:A=>{var e,i;let{prng:o,options:a}=A,s=t.utils.schema.defaults(n),c=[];a.background?(Array.isArray(a.background)?c.push(...a.background):c.push(a.background),a.background=void 0):Object.keys(r.default.color.collection).forEach((A=>{if(void 0===a.backgroundColors||0===a.backgroundColors.length||-1!==a.backgroundColors.indexOf(A)){var t;let e=r.default.color.collection[A];c.push(e[null!==(t=a.backgroundColorLevel)&&void 0!==t?t:s.backgroundColorLevel])}}));let l=o.pick(c),u=k(o.seed.trim()).toLocaleUpperCase().slice(0,null!==(e=a.chars)&&void 0!==e?e:s.chars),f=(null!==(i=a.fontSize)&&void 0!==i?i:s.fontSize)/100,h=[''),a.margin?''):"",a.margin?''):"",'').concat(u,""),a.margin?"":"",a.margin?"":""].join("");return a.margin=void 0,{attributes:{viewBox:"0 0 1 1"},body:h}}}; /*! * DiceBear Initials (@dicebear/avatars-initials-sprites) * @@ -228,7 +228,7 @@ iA=hA,"undefined"!=typeof self&&self||void 0!==e.g&&e.g||"undefined"!=typeof win * * Copyright (C) 2018 Varun A P */ -var t,e;t=this,e=function(A){var t=function(A){return new t.lib.init(A)};function e(A,t){return t.offset[A]?isNaN(t.offset[A])?t.offset[A]:t.offset[A]+"px":"0px"}function r(A,t){return!(!A||"string"!=typeof t||!(A.className&&A.className.trim().split(/\s+/gi).indexOf(t)>-1))}return t.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,style:{background:""}},t.lib=t.prototype={toastify:"1.11.2",constructor:t,init:function(A){return A||(A={}),this.options={},this.toastElement=null,this.options.text=A.text||t.defaults.text,this.options.node=A.node||t.defaults.node,this.options.duration=0===A.duration?0:A.duration||t.defaults.duration,this.options.selector=A.selector||t.defaults.selector,this.options.callback=A.callback||t.defaults.callback,this.options.destination=A.destination||t.defaults.destination,this.options.newWindow=A.newWindow||t.defaults.newWindow,this.options.close=A.close||t.defaults.close,this.options.gravity="bottom"===A.gravity?"toastify-bottom":t.defaults.gravity,this.options.positionLeft=A.positionLeft||t.defaults.positionLeft,this.options.position=A.position||t.defaults.position,this.options.backgroundColor=A.backgroundColor||t.defaults.backgroundColor,this.options.avatar=A.avatar||t.defaults.avatar,this.options.className=A.className||t.defaults.className,this.options.stopOnFocus=void 0===A.stopOnFocus?t.defaults.stopOnFocus:A.stopOnFocus,this.options.onClick=A.onClick||t.defaults.onClick,this.options.offset=A.offset||t.defaults.offset,this.options.escapeMarkup=void 0!==A.escapeMarkup?A.escapeMarkup:t.defaults.escapeMarkup,this.options.style=A.style||t.defaults.style,A.backgroundColor&&(this.options.style.background=A.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var A=document.createElement("div");for(var t in A.className="toastify on "+this.options.className,this.options.position?A.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?A.className+=" toastify-left":A.className+=" toastify-right",A.className+=" "+this.options.gravity,this.options.backgroundColor,this.options.style)A.style[t]=this.options.style[t];if(this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)A.appendChild(this.options.node);else if(this.options.escapeMarkup?A.innerText=this.options.text:A.innerHTML=this.options.text,""!==this.options.avatar){var r=document.createElement("img");r.src=this.options.avatar,r.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?A.appendChild(r):A.insertAdjacentElement("afterbegin",r)}if(!0===this.options.close){var n=document.createElement("span");n.innerHTML="✖",n.className="toast-close",n.addEventListener("click",function(A){A.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var i=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&i>360?A.insertAdjacentElement("afterbegin",n):A.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0){var o=this;A.addEventListener("mouseover",(function(t){window.clearTimeout(A.timeOutValue)})),A.addEventListener("mouseleave",(function(){A.timeOutValue=window.setTimeout((function(){o.removeElement(A)}),o.options.duration)}))}if(void 0!==this.options.destination&&A.addEventListener("click",function(A){A.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeof this.options.onClick&&void 0===this.options.destination&&A.addEventListener("click",function(A){A.stopPropagation(),this.options.onClick()}.bind(this)),"object"==typeof this.options.offset){var a=e("x",this.options),s=e("y",this.options),c="left"==this.options.position?a:"-"+a,l="toastify-top"==this.options.gravity?s:"-"+s;A.style.transform="translate("+c+","+l+")"}return A},showToast:function(){var A;if(this.toastElement=this.buildToast(),!(A="string"==typeof this.options.selector?document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||"undefined"!=typeof ShadowRoot&&this.options.selector instanceof ShadowRoot?this.options.selector:document.body))throw"Root element is not defined";var e=t.defaults.oldestFirst?A.firstChild:A.lastChild;return A.insertBefore(this.toastElement,e),t.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(A){A.className=A.className.replace(" on",""),window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),A.parentNode&&A.parentNode.removeChild(A),this.options.callback.call(A),t.reposition()}.bind(this),400)}},t.reposition=function(){for(var A,t={top:15,bottom:15},e={top:15,bottom:15},n={top:15,bottom:15},i=document.getElementsByClassName("toastify"),o=0;o0?window.innerWidth:screen.width)<=360?(i[o].style[A]=n[A]+"px",n[A]+=a+15):!0===r(i[o],"toastify-left")?(i[o].style[A]=t[A]+"px",t[A]+=a+15):(i[o].style[A]=e[A]+"px",e[A]+=a+15)}return this},t.lib.init.prototype=t.lib,t},A.exports?A.exports=e():t.Toastify=e()},669:A=>{"use strict";A.exports="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSI0MDEuOTk4cHgiIGhlaWdodD0iNDAxLjk5OHB4IiB2aWV3Qm94PSIwIDAgNDAxLjk5OCA0MDEuOTk4IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDEuOTk4IDQwMS45OTg7IgoJIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8Zz4KCTxnPgoJCTxwYXRoIGQ9Ik03My4wOTIsMTY0LjQ1MmgyNTUuODEzYzQuOTQ5LDAsOS4yMzMtMS44MDcsMTIuODQ4LTUuNDI0YzMuNjEzLTMuNjE2LDUuNDI3LTcuODk4LDUuNDI3LTEyLjg0NwoJCQljMC00Ljk0OS0xLjgxMy05LjIyOS01LjQyNy0xMi44NUwyMTMuODQ2LDUuNDI0QzIxMC4yMzIsMS44MTIsMjA1Ljk1MSwwLDIwMC45OTksMHMtOS4yMzMsMS44MTItMTIuODUsNS40MjRMNjAuMjQyLDEzMy4zMzEKCQkJYy0zLjYxNywzLjYxNy01LjQyNCw3LjkwMS01LjQyNCwxMi44NWMwLDQuOTQ4LDEuODA3LDkuMjMxLDUuNDI0LDEyLjg0N0M2My44NjMsMTYyLjY0NSw2OC4xNDQsMTY0LjQ1Miw3My4wOTIsMTY0LjQ1MnoiLz4KCQk8cGF0aCBkPSJNMzI4LjkwNSwyMzcuNTQ5SDczLjA5MmMtNC45NTIsMC05LjIzMywxLjgwOC0xMi44NSw1LjQyMWMtMy42MTcsMy42MTctNS40MjQsNy44OTgtNS40MjQsMTIuODQ3CgkJCWMwLDQuOTQ5LDEuODA3LDkuMjMzLDUuNDI0LDEyLjg0OEwxODguMTQ5LDM5Ni41N2MzLjYyMSwzLjYxNyw3LjkwMiw1LjQyOCwxMi44NSw1LjQyOHM5LjIzMy0xLjgxMSwxMi44NDctNS40MjhsMTI3LjkwNy0xMjcuOTA2CgkJCWMzLjYxMy0zLjYxNCw1LjQyNy03Ljg5OCw1LjQyNy0xMi44NDhjMC00Ljk0OC0xLjgxMy05LjIyOS01LjQyNy0xMi44NDdDMzM4LjEzOSwyMzkuMzUzLDMzMy44NTQsMjM3LjU0OSwzMjguOTA1LDIzNy41NDl6Ii8+Cgk8L2c+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+"},813:A=>{"use strict";A.exports="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIyOTIuMzYycHgiIGhlaWdodD0iMjkyLjM2MXB4IiB2aWV3Qm94PSIwIDAgMjkyLjM2MiAyOTIuMzYxIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyOTIuMzYyIDI5Mi4zNjE7IgoJIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8Zz4KCTxwYXRoIGQ9Ik0yODYuOTM1LDE5Ny4yODdMMTU5LjAyOCw2OS4zODFjLTMuNjEzLTMuNjE3LTcuODk1LTUuNDI0LTEyLjg0Ny01LjQyNHMtOS4yMzMsMS44MDctMTIuODUsNS40MjRMNS40MjQsMTk3LjI4NwoJCUMxLjgwNywyMDAuOTA0LDAsMjA1LjE4NiwwLDIxMC4xMzRzMS44MDcsOS4yMzMsNS40MjQsMTIuODQ3YzMuNjIxLDMuNjE3LDcuOTAyLDUuNDI1LDEyLjg1LDUuNDI1aDI1NS44MTMKCQljNC45NDksMCw5LjIzMy0xLjgwOCwxMi44NDgtNS40MjVjMy42MTMtMy42MTMsNS40MjctNy44OTgsNS40MjctMTIuODQ3UzI5MC41NDgsMjAwLjkwNCwyODYuOTM1LDE5Ny4yODd6Ii8+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+"},160:A=>{"use strict";A.exports="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIyOTIuMzYycHgiIGhlaWdodD0iMjkyLjM2MnB4IiB2aWV3Qm94PSIwIDAgMjkyLjM2MiAyOTIuMzYyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyOTIuMzYyIDI5Mi4zNjI7IgoJIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8Zz4KCTxwYXRoIGQ9Ik0yODYuOTM1LDY5LjM3N2MtMy42MTQtMy42MTctNy44OTgtNS40MjQtMTIuODQ4LTUuNDI0SDE4LjI3NGMtNC45NTIsMC05LjIzMywxLjgwNy0xMi44NSw1LjQyNAoJCUMxLjgwNyw3Mi45OTgsMCw3Ny4yNzksMCw4Mi4yMjhjMCw0Ljk0OCwxLjgwNyw5LjIyOSw1LjQyNCwxMi44NDdsMTI3LjkwNywxMjcuOTA3YzMuNjIxLDMuNjE3LDcuOTAyLDUuNDI4LDEyLjg1LDUuNDI4CgkJczkuMjMzLTEuODExLDEyLjg0Ny01LjQyOEwyODYuOTM1LDk1LjA3NGMzLjYxMy0zLjYxNyw1LjQyNy03Ljg5OCw1LjQyNy0xMi44NDdDMjkyLjM2Miw3Ny4yNzksMjkwLjU0OCw3Mi45OTgsMjg2LjkzNSw2OS4zNzd6Ii8+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+"}},__webpack_module_cache__={};function __webpack_require__(A){var t=__webpack_module_cache__[A];if(void 0!==t)return t.exports;var e=__webpack_module_cache__[A]={id:A,exports:{}};return __webpack_modules__[A].call(e.exports,e,e.exports,__webpack_require__),e.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},__webpack_require__.n=A=>{var t=A&&A.__esModule?()=>A.default:()=>A;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(A,t)=>{for(var e in t)__webpack_require__.o(t,e)&&!__webpack_require__.o(A,e)&&Object.defineProperty(A,e,{enumerable:!0,get:t[e]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(A){if("object"==typeof window)return window}}(),__webpack_require__.o=(A,t)=>Object.prototype.hasOwnProperty.call(A,t),__webpack_require__.b=document.baseURI||self.location.href,__webpack_require__.nc=void 0;var __webpack_exports__={};(()=>{"use strict";var A=__webpack_require__(379),t=__webpack_require__.n(A),e=__webpack_require__(795),r=__webpack_require__.n(e),n=__webpack_require__(569),i=__webpack_require__.n(n),o=__webpack_require__(565),a=__webpack_require__.n(o),s=__webpack_require__(216),c=__webpack_require__.n(s),l=__webpack_require__(589),u=__webpack_require__.n(l),f=__webpack_require__(257),h={};h.styleTagTransform=u(),h.setAttributes=a(),h.insert=i().bind(null,"head"),h.domAPI=r(),h.insertStyleElement=c();t()(f.Z,h);f.Z&&f.Z.locals&&f.Z.locals;var d=__webpack_require__(951),p={};p.styleTagTransform=u(),p.setAttributes=a(),p.insert=i().bind(null,"head"),p.domAPI=r(),p.insertStyleElement=c();t()(d.Z,p);d.Z&&d.Z.locals&&d.Z.locals;var g=__webpack_require__(144),m={};m.styleTagTransform=u(),m.setAttributes=a(),m.insert=i().bind(null,"head"),m.domAPI=r(),m.insertStyleElement=c();t()(g.Z,m);g.Z&&g.Z.locals&&g.Z.locals;var w=__webpack_require__(25),B={};B.styleTagTransform=u(),B.setAttributes=a(),B.insert=i().bind(null,"head"),B.domAPI=r(),B.insertStyleElement=c();t()(w.Z,B);w.Z&&w.Z.locals&&w.Z.locals;function y(A,t){for(var e=0;eA.length)&&(t=A.length);for(var e=0,r=new Array(t);e=A.length?{done:!0}:{done:!1,value:A[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var x,_,L,E,I,S,H={},N=[],O=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function D(A,t){for(var e in t)A[e]=t[e];return A}function M(A){var t=A.parentNode;t&&t.removeChild(A)}function P(A,t,e){var r,n,i,o=arguments,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?n=t[i]:a[i]=t[i];if(arguments.length>3)for(e=[e],i=3;i0?T(h.type,h.props,h.key,null,h.__v):h)){if(h.__=e,h.__b=e.__b+1,null===(f=m[l])||f&&h.key==f.key&&h.type===f.type)m[l]=void 0;else for(u=0;u0&&(this.callbacks[e].forEach((function(A){return A.apply(void 0,[].slice.call(t,1))})),!0)},A}();!function(A){A[A.Initiator=0]="Initiator",A[A.ServerFilter=1]="ServerFilter",A[A.ServerSort=2]="ServerSort",A[A.ServerLimit=3]="ServerLimit",A[A.Extractor=4]="Extractor",A[A.Transformer=5]="Transformer",A[A.Filter=6]="Filter",A[A.Sort=7]="Sort",A[A.Limit=8]="Limit"}(dA||(dA={}));var BA=function(A){function t(t){var e;return(e=A.call(this)||this).id=void 0,e._props=void 0,e._props={},e.id=aA(),t&&e.setProps(t),e}C(t,A);var e=t.prototype;return e.process=function(){var A=[].slice.call(arguments);this.validateProps instanceof Function&&this.validateProps.apply(this,A),this.emit.apply(this,["beforeProcess"].concat(A));var t=this._process.apply(this,A);return this.emit.apply(this,["afterProcess"].concat(A)),t},e.setProps=function(A){return Object.assign(this._props,A),this.emit("propsUpdated",this),this},b(t,[{key:"props",get:function(){return this._props}}]),t}(wA),yA=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t.prototype._process=function(A){return this.props.keyword?(t=String(this.props.keyword).trim(),e=this.props.columns,r=this.props.ignoreHiddenColumns,n=A,i=this.props.selector,t=t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),new mA(n.rows.filter((function(A,n){return A.cells.some((function(A,o){if(!A)return!1;if(r&&e&&e[o]&&"object"==typeof e[o]&&e[o].hidden)return!1;var a="";if("function"==typeof i)a=i(A.data,n,o);else if("object"==typeof A.data){var s=A.data;s&&s.props&&s.props.content&&(a=s.props.content)}else a=String(A.data);return new RegExp(t,"gi").test(a)}))})))):A;var t,e,r,n,i},b(t,[{key:"type",get:function(){return dA.Filter}}]),t}(BA);function bA(){var A="gridjs";return""+A+[].slice.call(arguments).reduce((function(A,t){return A+"-"+t}),"")}function vA(){return[].slice.call(arguments).filter((function(A){return A})).reduce((function(A,t){return(A||"")+" "+t}),"").trim()||null}var CA,FA=function(A){function t(t){var e;return(e=A.call(this)||this)._state=void 0,e.dispatcher=void 0,e.dispatcher=t,e._state=e.getInitialState(),t.register(e._handle.bind(Q(e))),e}C(t,A);var e=t.prototype;return e._handle=function(A){this.handle(A.type,A.payload)},e.setState=function(A){var t=this._state;this._state=A,this.emit("updated",A,t)},b(t,[{key:"state",get:function(){return this._state}}]),t}(wA),QA=function(A){function t(){return A.apply(this,arguments)||this}C(t,A);var e=t.prototype;return e.getInitialState=function(){return{keyword:null}},e.handle=function(A,t){"SEARCH_KEYWORD"===A&&this.search(t.keyword)},e.search=function(A){this.setState({keyword:A})},t}(FA),UA=function(){function A(A){this.dispatcher=void 0,this.dispatcher=A}return A.prototype.dispatch=function(A,t){this.dispatcher.dispatch({type:A,payload:t})},A}(),kA=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t.prototype.search=function(A){this.dispatch("SEARCH_KEYWORD",{keyword:A})},t}(UA),xA=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t.prototype._process=function(A){if(!this.props.keyword)return A;var t={};return this.props.url&&(t.url=this.props.url(A.url,this.props.keyword)),this.props.body&&(t.body=this.props.body(A.body,this.props.keyword)),v({},A,t)},b(t,[{key:"type",get:function(){return dA.ServerFilter}}]),t}(BA),_A=new(function(){function A(){}var t=A.prototype;return t.format=function(A,t){return"[Grid.js] ["+t.toUpperCase()+"]: "+A},t.error=function(A,t){void 0===t&&(t=!1);var e=this.format(A,"error");if(t)throw Error(e)},t.warn=function(A){},t.info=function(A){},A}()),LA=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t}(uA);!function(A){A[A.Header=0]="Header",A[A.Footer=1]="Footer",A[A.Cell=2]="Cell"}(CA||(CA={}));var EA=function(){function A(){this.plugins=void 0,this.plugins=[]}var t=A.prototype;return t.get=function(A){var t=this.plugins.filter((function(t){return t.id===A}));return t.length>0?t[0]:null},t.add=function(A){return A.id?null!==this.get(A.id)?(_A.error("Duplicate plugin ID: "+A.id),this):(this.plugins.push(A),this):(_A.error("Plugin ID cannot be empty"),this)},t.remove=function(A){return this.plugins.splice(this.plugins.indexOf(this.get(A)),1),this},t.list=function(A){return(null!=A||null!=A?this.plugins.filter((function(t){return t.position===A})):this.plugins).sort((function(A,t){return A.order-t.order}))},A}(),IA=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t.prototype.render=function(){var A=this;if(this.props.pluginId){var t=this.config.plugin.get(this.props.pluginId);return t?P(R,{},P(t.component,v({plugin:t},t.props,this.props.props))):null}return void 0!==this.props.position?P(R,{},this.config.plugin.list(this.props.position).map((function(t){return P(t.component,v({plugin:t},t.props,A.props.props))}))):null},t}(uA),SA=function(A){function t(t,e){var r;(r=A.call(this,t,e)||this).searchProcessor=void 0,r.actions=void 0,r.store=void 0,r.storeUpdatedFn=void 0,r.actions=new kA(r.config.dispatcher),r.store=new QA(r.config.dispatcher);var n,i=t.keyword;return t.enabled&&(i&&r.actions.search(i),r.storeUpdatedFn=r.storeUpdated.bind(Q(r)),r.store.on("updated",r.storeUpdatedFn),n=t.server?new xA({keyword:t.keyword,url:t.server.url,body:t.server.body}):new yA({keyword:t.keyword,columns:r.config.header&&r.config.header.columns,ignoreHiddenColumns:t.ignoreHiddenColumns||void 0===t.ignoreHiddenColumns,selector:t.selector}),r.searchProcessor=n,r.config.pipeline.register(n)),r}C(t,A);var e=t.prototype;return e.componentWillUnmount=function(){this.config.pipeline.unregister(this.searchProcessor),this.store.off("updated",this.storeUpdatedFn)},e.storeUpdated=function(A){this.searchProcessor.setProps({keyword:A.keyword})},e.onChange=function(A){this.actions.search(A.target.value)},e.render=function(){if(!this.props.enabled)return null;var A,t,e,r=this.onChange.bind(this);return this.searchProcessor instanceof xA&&(A=r,t=this.props.debounceTimeout,r=function(){var r=arguments;return new Promise((function(n){e&&clearTimeout(e),e=setTimeout((function(){return n(A.apply(void 0,[].slice.call(r)))}),t)}))}),P("div",{className:bA(vA("search",this.config.className.search))},P("input",{type:"search",placeholder:this._("search.placeholder"),"aria-label":this._("search.placeholder"),onInput:r,className:vA(bA("input"),bA("search","input")),value:this.store.state.keyword}))},t}(LA);SA.defaultProps={debounceTimeout:250};var HA=function(A){function t(){return A.apply(this,arguments)||this}C(t,A);var e=t.prototype;return e.validateProps=function(){if(isNaN(Number(this.props.limit))||isNaN(Number(this.props.page)))throw Error("Invalid parameters passed")},e._process=function(A){var t=this.props.page;return new mA(A.rows.slice(t*this.props.limit,(t+1)*this.props.limit))},b(t,[{key:"type",get:function(){return dA.Limit}}]),t}(BA),NA=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t.prototype._process=function(A){var t={};return this.props.url&&(t.url=this.props.url(A.url,this.props.page,this.props.limit)),this.props.body&&(t.body=this.props.body(A.body,this.props.page,this.props.limit)),v({},A,t)},b(t,[{key:"type",get:function(){return dA.ServerLimit}}]),t}(BA),OA=function(A){function t(t,e){var r;return(r=A.call(this,t,e)||this).processor=void 0,r.onUpdateFn=void 0,r.setTotalFromTabularFn=void 0,r.state={limit:t.limit,page:t.page||0,total:0},r}C(t,A);var e=t.prototype;return e.componentWillMount=function(){var A,t=this;this.props.enabled&&(this.setTotalFromTabularFn=this.setTotalFromTabular.bind(this),this.props.server?(A=new NA({limit:this.state.limit,page:this.state.page,url:this.props.server.url,body:this.props.server.body}),this.config.pipeline.on("afterProcess",this.setTotalFromTabularFn)):(A=new HA({limit:this.state.limit,page:this.state.page})).on("beforeProcess",this.setTotalFromTabularFn),this.processor=A,this.config.pipeline.register(A),this.config.pipeline.on("error",(function(){t.setState({total:0,page:0})})))},e.setTotalFromTabular=function(A){this.setTotal(A.length)},e.onUpdate=function(A){this.props.resetPageOnUpdate&&A!==this.processor&&this.setPage(0)},e.componentDidMount=function(){this.onUpdateFn=this.onUpdate.bind(this),this.config.pipeline.on("updated",this.onUpdateFn)},e.componentWillUnmount=function(){this.config.pipeline.unregister(this.processor),this.config.pipeline.off("updated",this.onUpdateFn)},e.setPage=function(A){if(A>=this.pages||A<0||A===this.state.page)return null;this.setState({page:A}),this.processor.setProps({page:A})},e.setTotal=function(A){this.setState({total:A})},e.renderPages=function(){var A=this;if(this.props.buttonsCount<=0)return null;var t=Math.min(this.pages,this.props.buttonsCount),e=Math.min(this.state.page,Math.floor(t/2));return this.state.page+Math.floor(t/2)>=this.pages&&(e=t-(this.pages-this.state.page)),P(R,null,this.pages>t&&this.state.page-e>0&&P(R,null,P("button",{tabIndex:0,role:"button",onClick:this.setPage.bind(this,0),title:this._("pagination.firstPage"),"aria-label":this._("pagination.firstPage"),className:this.config.className.paginationButton},this._("1")),P("button",{tabIndex:-1,className:vA(bA("spread"),this.config.className.paginationButton)},"...")),Array.from(Array(t).keys()).map((function(t){return A.state.page+(t-e)})).map((function(t){return P("button",{tabIndex:0,role:"button",onClick:A.setPage.bind(A,t),className:vA(A.state.page===t?vA(bA("currentPage"),A.config.className.paginationButtonCurrent):null,A.config.className.paginationButton),title:A._("pagination.page",t+1),"aria-label":A._("pagination.page",t+1)},A._(""+(t+1)))})),this.pages>t&&this.pages>this.state.page+e+1&&P(R,null,P("button",{tabIndex:-1,className:vA(bA("spread"),this.config.className.paginationButton)},"..."),P("button",{tabIndex:0,role:"button",onClick:this.setPage.bind(this,this.pages-1),title:this._("pagination.page",this.pages),"aria-label":this._("pagination.page",this.pages),className:this.config.className.paginationButton},this._(""+this.pages))))},e.renderSummary=function(){return P(R,null,this.props.summary&&this.state.total>0&&P("div",{role:"status","aria-live":"polite",className:vA(bA("summary"),this.config.className.paginationSummary),title:this._("pagination.navigate",this.state.page+1,this.pages)},this._("pagination.showing")," ",P("b",null,this._(""+(this.state.page*this.state.limit+1)))," ",this._("pagination.to")," ",P("b",null,this._(""+Math.min((this.state.page+1)*this.state.limit,this.state.total)))," ",this._("pagination.of")," ",P("b",null,this._(""+this.state.total))," ",this._("pagination.results")))},e.render=function(){return this.props.enabled?P("div",{className:vA(bA("pagination"),this.config.className.pagination)},this.renderSummary(),P("div",{className:bA("pages")},this.props.prevButton&&P("button",{tabIndex:0,role:"button",disabled:0===this.state.page,onClick:this.setPage.bind(this,this.state.page-1),title:this._("pagination.previous"),"aria-label":this._("pagination.previous"),className:vA(this.config.className.paginationButton,this.config.className.paginationButtonPrev)},this._("pagination.previous")),this.renderPages(),this.props.nextButton&&P("button",{tabIndex:0,role:"button",disabled:this.pages===this.state.page+1||0===this.pages,onClick:this.setPage.bind(this,this.state.page+1),title:this._("pagination.next"),"aria-label":this._("pagination.next"),className:vA(this.config.className.paginationButton,this.config.className.paginationButtonNext)},this._("pagination.next")))):null},b(t,[{key:"pages",get:function(){return Math.ceil(this.state.total/this.state.limit)}}]),t}(LA);function DA(A,t){return"string"==typeof A?A.indexOf("%")>-1?t/100*parseInt(A,10):parseInt(A,10):A}function MA(A){return A?Math.floor(A)+"px":""}OA.defaultProps={summary:!0,nextButton:!0,prevButton:!0,buttonsCount:3,limit:10,resetPageOnUpdate:!0};var PA=function(A){function t(t,e){var r;return(r=A.call(this,t,e)||this).tableElement=void 0,r.tableClassName=void 0,r.tableStyle=void 0,r.tableElement=r.props.tableRef.current.base.cloneNode(!0),r.tableElement.style.position="absolute",r.tableElement.style.width="100%",r.tableElement.style.zIndex="-2147483640",r.tableElement.style.visibility="hidden",r.tableClassName=r.tableElement.className,r.tableStyle=r.tableElement.style.cssText,r}C(t,A);var e=t.prototype;return e.widths=function(){this.tableElement.className=this.tableClassName+" "+bA("shadowTable"),this.tableElement.style.tableLayout="auto",this.tableElement.style.width="auto",this.tableElement.style.padding="0",this.tableElement.style.margin="0",this.tableElement.style.border="none",this.tableElement.style.outline="none";var A=Array.from(this.base.parentNode.querySelectorAll("thead th")).reduce((function(A,t){var e;return t.style.width=t.clientWidth+"px",v(((e={})[t.getAttribute("data-column-id")]={minWidth:t.clientWidth},e),A)}),{});return this.tableElement.className=this.tableClassName,this.tableElement.style.cssText=this.tableStyle,this.tableElement.style.tableLayout="auto",Array.from(this.base.parentNode.querySelectorAll("thead th")).reduce((function(A,t){return A[t.getAttribute("data-column-id")].width=t.clientWidth,A}),A)},e.render=function(){var A=this;return this.props.tableRef.current?P("div",{ref:function(t){t&&t.appendChild(A.tableElement)}}):null},t}(uA);function TA(A){if(!A)return"";var t=A.split(" ");return 1===t.length&&/([a-z][A-Z])+/g.test(A)?A:t.map((function(A,t){return 0==t?A.toLowerCase():A.charAt(0).toUpperCase()+A.slice(1).toLowerCase()})).join("")}var RA=function(A){function t(){var t;return(t=A.call(this)||this)._columns=void 0,t._columns=[],t}C(t,A);var e=t.prototype;return e.adjustWidth=function(A){var e=A.container,r=A.tableRef,n=A.tempRef,i=A.tempRef||!0;if(!e)return this;var o=e.clientWidth,a={current:null},s={};if(r.current&&i){var c=P(PA,{tableRef:r});c.ref=a,oA(c,n.current),s=a.current.widths()}for(var l,u=k(t.tabularFormat(this.columns).reduce((function(A,t){return A.concat(t)}),[]));!(l=u()).done;){var f=l.value;f.columns&&f.columns.length>0||(!f.width&&i?f.id in s&&(f.width=MA(s[f.id].width),f.minWidth=MA(s[f.id].minWidth)):f.width=MA(DA(f.width,o)))}return r.current&&i&&oA(null,n.current),this},e.setSort=function(A,t){for(var e,r=k(t||this.columns||[]);!(e=r()).done;){var n=e.value;n.columns&&n.columns.length>0&&(n.sort={enabled:!1}),void 0===n.sort&&A.sort&&(n.sort={enabled:!0}),n.sort?"object"==typeof n.sort&&(n.sort=v({enabled:!0},n.sort)):n.sort={enabled:!1},n.columns&&this.setSort(A,n.columns)}},e.setFixedHeader=function(A,t){for(var e,r=k(t||this.columns||[]);!(e=r()).done;){var n=e.value;void 0===n.fixedHeader&&(n.fixedHeader=A.fixedHeader),n.columns&&this.setFixedHeader(A,n.columns)}},e.setResizable=function(A,t){for(var e,r=k(t||this.columns||[]);!(e=r()).done;){var n=e.value;void 0===n.resizable&&(n.resizable=A.resizable),n.columns&&this.setResizable(A,n.columns)}},e.setID=function(A){for(var t,e=k(A||this.columns||[]);!(t=e()).done;){var r=t.value;r.id||"string"!=typeof r.name||(r.id=TA(r.name)),r.id||_A.error('Could not find a valid ID for one of the columns. Make sure a valid "id" is set for all columns.'),r.columns&&this.setID(r.columns)}},e.populatePlugins=function(A,t){for(var e,r=k(t);!(e=r()).done;){var n=e.value;void 0!==n.plugin&&A.plugin.add(v({id:n.id,props:{}},n.plugin,{position:CA.Cell}))}},t.fromColumns=function(A){for(var e,r=new t,n=k(A);!(e=n()).done;){var i=e.value;if("string"==typeof i||_(i))r.columns.push({name:i});else if("object"==typeof i){var o=i;o.columns&&(o.columns=t.fromColumns(o.columns).columns),"object"==typeof o.plugin&&void 0===o.data&&(o.data=null),r.columns.push(i)}}return r},t.fromUserConfig=function(A){var e=new t;return A.from?e.columns=t.fromHTMLTable(A.from).columns:A.columns?e.columns=t.fromColumns(A.columns).columns:!A.data||"object"!=typeof A.data[0]||A.data[0]instanceof Array||(e.columns=Object.keys(A.data[0]).map((function(A){return{name:A}}))),e.columns.length?(e.setID(),e.setSort(A),e.setFixedHeader(A),e.setResizable(A),e.populatePlugins(A,e.columns),e):null},t.fromHTMLTable=function(A){for(var e,r=new t,n=k(A.querySelector("thead").querySelectorAll("th"));!(e=n()).done;){var i=e.value;r.columns.push({name:i.innerHTML,width:i.width})}return r},t.tabularFormat=function(A){var t=[],e=A||[],r=[];if(e&&e.length){t.push(e);for(var n,i=k(e);!(n=i()).done;){var o=n.value;o.columns&&o.columns.length&&(r=r.concat(o.columns))}r.length&&(t=t.concat(this.tabularFormat(r)))}return t},t.leafColumns=function(A){var t=[],e=A||[];if(e&&e.length)for(var r,n=k(e);!(r=n()).done;){var i=r.value;i.columns&&0!==i.columns.length||t.push(i),i.columns&&(t=t.concat(this.leafColumns(i.columns)))}return t},t.maximumDepth=function(A){return this.tabularFormat([A]).length-1},b(t,[{key:"columns",get:function(){return this._columns},set:function(A){this._columns=A}},{key:"visibleColumns",get:function(){return this._columns.filter((function(A){return!A.hidden}))}}]),t}(sA),KA=function(){function A(){this._callbacks=void 0,this._isDispatching=void 0,this._isHandled=void 0,this._isPending=void 0,this._lastID=void 0,this._pendingPayload=void 0,this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}var t=A.prototype;return t.register=function(A){var t="ID_"+this._lastID++;return this._callbacks[t]=A,t},t.unregister=function(A){if(!this._callbacks[A])throw Error("Dispatcher.unregister(...): "+A+" does not map to a registered callback.");delete this._callbacks[A]},t.waitFor=function(A){if(!this._isDispatching)throw Error("Dispatcher.waitFor(...): Must be invoked while dispatching.");for(var t=0;t=r)return Promise.resolve(A.process(i)).then((function(e){t.cache.set(A.id,i=e)}));i=t.cache.get(A.id)}();if(n&&n.then)return n.then((function(){}))}))}catch(A){return e(A)}return o&&o.then?o.then(void 0,e):o}(0,(function(A){throw _A.error(A),t.emit("error",i),A}));return Promise.resolve(o&&o.then?o.then(e):e())}catch(A){return Promise.reject(A)}},e.findProcessorIndexByID=function(A){return this.steps.findIndex((function(t){return t.id==A}))},e.setLastProcessorIndex=function(A){var t=this.findProcessorIndexByID(A.id);this.lastProcessorIndexUpdated>t&&(this.lastProcessorIndexUpdated=t)},e.processorPropsUpdated=function(A){this.setLastProcessorIndex(A),this.emit("propsUpdated"),this.emit("updated",A)},e.afterRegistered=function(A){this.setLastProcessorIndex(A),this.emit("afterRegister"),this.emit("updated",A)},b(t,[{key:"steps",get:function(){for(var A,t=[],e=k(this.getSortedProcessorTypes());!(A=e()).done;){var r=this._steps.get(A.value);r&&r.length&&(t=t.concat(r))}return t.filter((function(A){return A}))}}]),t}(wA),$A=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t.prototype._process=function(A){try{return Promise.resolve(this.props.storage.get(A))}catch(A){return Promise.reject(A)}},b(t,[{key:"type",get:function(){return dA.Extractor}}]),t}(BA),At=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t.prototype._process=function(A){var t=mA.fromArray(A.data);return t.length=A.total,t},b(t,[{key:"type",get:function(){return dA.Transformer}}]),t}(BA),tt=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t.prototype._process=function(){return Object.entries(this.props.serverStorageOptions).filter((function(A){return"function"!=typeof A[1]})).reduce((function(A,t){var e;return v({},A,((e={})[t[0]]=t[1],e))}),{})},b(t,[{key:"type",get:function(){return dA.Initiator}}]),t}(BA),et=function(A){function t(){return A.apply(this,arguments)||this}C(t,A);var e=t.prototype;return e.castData=function(A){if(!A||!A.length)return[];if(!this.props.header||!this.props.header.columns)return A;var t=RA.leafColumns(this.props.header.columns);return A[0]instanceof Array?A.map((function(A){var e=0;return t.map((function(t,r){return void 0!==t.data?(e++,"function"==typeof t.data?t.data(A):t.data):A[r-e]}))})):"object"!=typeof A[0]||A[0]instanceof Array?[]:A.map((function(A){return t.map((function(t,e){return void 0!==t.data?"function"==typeof t.data?t.data(A):t.data:t.id?A[t.id]:(_A.error("Could not find the correct cell for column at position "+e+".\n Make sure either 'id' or 'selector' is defined for all columns."),null)}))}))},e._process=function(A){return{data:this.castData(A.data),total:A.total}},b(t,[{key:"type",get:function(){return dA.Transformer}}]),t}(BA),rt=function(){function A(){}return A.createFromConfig=function(A){var t=new ZA;return A.storage instanceof GA&&t.register(new tt({serverStorageOptions:A.server})),t.register(new $A({storage:A.storage})),t.register(new et({header:A.header})),t.register(new At),t},A}(),nt=function(){function A(t){this._userConfig=void 0,Object.assign(this,v({},A.defaultConfig(),t)),this._userConfig={}}var t=A.prototype;return t.assign=function(A){for(var t=0,e=Object.keys(A);tt?1:A1&&(s=!0,a=!0):0===i?a=!0:i>0&&!e?(a=!0,s=!0):i>0&&e&&(a=!0),s&&(n=[]),a)n.push({index:A,direction:t,compare:r});else if(l){var u=n.indexOf(o);n[u].direction=t}else if(c){var f=n.indexOf(o);n.splice(f,1)}this.setState(n)},t}(FA),ht=function(A){function t(){return A.apply(this,arguments)||this}C(t,A);var e=t.prototype;return e.sortColumn=function(A,t,e,r){this.dispatch("SORT_COLUMN",{index:A,direction:t,multi:e,compare:r})},e.sortToggle=function(A,t,e){this.dispatch("SORT_COLUMN_TOGGLE",{index:A,multi:t,compare:e})},t}(UA),dt=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t.prototype._process=function(A){var t={};return this.props.url&&(t.url=this.props.url(A.url,this.props.columns)),this.props.body&&(t.body=this.props.body(A.body,this.props.columns)),v({},A,t)},b(t,[{key:"type",get:function(){return dA.ServerSort}}]),t}(BA),pt=function(A){function t(t,e){var r;return(r=A.call(this,t,e)||this).sortProcessor=void 0,r.actions=void 0,r.store=void 0,r.updateStateFn=void 0,r.updateSortProcessorFn=void 0,r.actions=new ht(r.config.dispatcher),r.store=new ft(r.config.dispatcher),t.enabled&&(r.sortProcessor=r.getOrCreateSortProcessor(),r.updateStateFn=r.updateState.bind(Q(r)),r.store.on("updated",r.updateStateFn),r.state={direction:0}),r}C(t,A);var e=t.prototype;return e.componentWillUnmount=function(){this.config.pipeline.unregister(this.sortProcessor),this.store.off("updated",this.updateStateFn),this.updateSortProcessorFn&&this.store.off("updated",this.updateSortProcessorFn)},e.updateState=function(){var A=this,t=this.store.state.find((function(t){return t.index===A.props.index}));this.setState(t?{direction:t.direction}:{direction:0})},e.updateSortProcessor=function(A){this.sortProcessor.setProps({columns:A})},e.getOrCreateSortProcessor=function(){var A=dA.Sort;this.config.sort&&"object"==typeof this.config.sort.server&&(A=dA.ServerSort);var t,e=this.config.pipeline.getStepsByType(A);return e.length>0?t=e[0]:(this.updateSortProcessorFn=this.updateSortProcessor.bind(this),this.store.on("updated",this.updateSortProcessorFn),t=A===dA.ServerSort?new dt(v({columns:this.store.state},this.config.sort.server)):new ut({columns:this.store.state}),this.config.pipeline.register(t)),t},e.changeDirection=function(A){A.preventDefault(),A.stopPropagation(),this.actions.sortToggle(this.props.index,!0===A.shiftKey&&this.config.sort.multiColumn,this.props.compare)},e.render=function(){if(!this.props.enabled)return null;var A=this.state.direction,t="neutral";return 1===A?t="asc":-1===A&&(t="desc"),P("button",{tabIndex:-1,"aria-label":this._("sort.sort"+(1===A?"Desc":"Asc")),title:this._("sort.sort"+(1===A?"Desc":"Asc")),className:vA(bA("sort"),bA("sort",t),this.config.className.sort),onClick:this.changeDirection.bind(this)})},t}(uA),gt=function(A){function t(){for(var t,e=arguments.length,r=new Array(e),n=0;n=e&&(t.apply(void 0,A),i=Date.now())}),Math.max(e-(Date.now()-i),0))):(t.apply(void 0,A),i=Date.now(),r=!0)}),document.addEventListener("mouseup",this.upFn),document.addEventListener("touchend",this.upFn),document.addEventListener("mousemove",this.moveFn),document.addEventListener("touchmove",this.moveFn)},e.move=function(A){A.stopPropagation();var t=this.props.thRef.current;this.state.offsetStart+this.getPageX(A)>=parseInt(t.style.minWidth,10)&&(t.style.width=this.state.offsetStart+this.getPageX(A)+"px")},e.end=function(A){A.stopPropagation(),document.removeEventListener("mouseup",this.upFn),document.removeEventListener("mousemove",this.moveFn),document.removeEventListener("touchmove",this.moveFn),document.removeEventListener("touchend",this.upFn)},e.render=function(){return P("div",{className:vA(bA("th"),bA("resizable")),onMouseDown:this.start.bind(this),onTouchStart:this.start.bind(this),onClick:function(A){return A.stopPropagation()}})},t}(uA),mt=function(A){function t(t,e){var r;return(r=A.call(this,t,e)||this).sortRef={current:null},r.thRef={current:null},r.state={style:{}},r}C(t,A);var e=t.prototype;return e.isSortable=function(){return this.props.column.sort.enabled},e.isResizable=function(){return this.props.column.resizable},e.onClick=function(A){A.stopPropagation(),this.isSortable()&&this.sortRef.current.changeDirection(A)},e.keyDown=function(A){this.isSortable()&&13===A.which&&this.onClick(A)},e.componentDidMount=function(){var A=this;setTimeout((function(){if(A.props.column.fixedHeader&&A.thRef.current){var t=A.thRef.current.offsetTop;"number"==typeof t&&A.setState({style:{top:t}})}}),0)},e.content=function(){return void 0!==this.props.column.name?this.props.column.name:void 0!==this.props.column.plugin?P(IA,{pluginId:this.props.column.plugin.id,props:{column:this.props.column}}):null},e.getCustomAttributes=function(){var A=this.props.column;return A?"function"==typeof A.attributes?A.attributes(null,null,this.props.column):A.attributes:{}},e.render=function(){var A={};return this.isSortable()&&(A.tabIndex=0),P("th",v({ref:this.thRef,"data-column-id":this.props.column&&this.props.column.id,className:vA(bA("th"),this.isSortable()?bA("th","sort"):null,this.props.column.fixedHeader?bA("th","fixed"):null,this.config.className.th),onClick:this.onClick.bind(this),style:v({},this.config.style.th,{minWidth:this.props.column.minWidth,width:this.props.column.width},this.state.style,this.props.style),onKeyDown:this.keyDown.bind(this),rowSpan:this.props.rowSpan>1?this.props.rowSpan:void 0,colSpan:this.props.colSpan>1?this.props.colSpan:void 0},this.getCustomAttributes(),A),P("div",{className:bA("th","content")},this.content()),this.isSortable()&&P(pt,v({ref:this.sortRef,index:this.props.index},this.props.column.sort)),this.isResizable()&&this.props.index0?(_A.error("The container element "+A+" is not empty. Make sure the container is empty and call render() again"),this):(this.config.container=A,oA(this.createElement(),A),this)},t}(wA),Ft=[],Qt=x.__b,Ut=x.__r,kt=x.diffed,xt=x.__c,_t=x.unmount;function Lt(){Ft.forEach((function(A){if(A.__P)try{A.__H.__h.forEach(It),A.__H.__h.forEach(St),A.__H.__h=[]}catch(t){A.__H.__h=[],x.__e(t,A.__v)}})),Ft=[]}x.__b=function(A){it=null,Qt&&Qt(A)},x.__r=function(A){Ut&&Ut(A),0;var t=(it=A.__c).__H;t&&(t.__h.forEach(It),t.__h.forEach(St),t.__h=[])},x.diffed=function(A){kt&&kt(A);var t=A.__c;t&&t.__H&&t.__H.__h.length&&(1!==Ft.push(t)&&ot===x.requestAnimationFrame||((ot=x.requestAnimationFrame)||function(A){var t,e=function(){clearTimeout(r),Et&&cancelAnimationFrame(t),setTimeout(A)},r=setTimeout(e,100);Et&&(t=requestAnimationFrame(e))})(Lt)),it=void 0},x.__c=function(A,t){t.some((function(A){try{A.__h.forEach(It),A.__h=A.__h.filter((function(A){return!A.__||St(A)}))}catch(e){t.some((function(A){A.__h&&(A.__h=[])})),t=[],x.__e(e,A.__v)}})),xt&&xt(A,t)},x.unmount=function(A){_t&&_t(A);var t=A.__c;if(t&&t.__H)try{t.__H.__.forEach(It)}catch(A){x.__e(A,t.__v)}};var Et="function"==typeof requestAnimationFrame;function It(A){var t=it;"function"==typeof A.__c&&A.__c(),it=t}function St(A){var t=it;A.__c=A.__(),it=t}var Ht,Nt=__webpack_require__(588),Ot=__webpack_require__.n(Nt);!function(A){A.info="#3D9FC9",A.success="#96c93d",A.error="#E13800",A.warning="#E0B300"}(Ht||(Ht={})),Shiny.addCustomMessageHandler("vlab_notification",(({message:A="",type:t=Ht.info,duration:e=3e3})=>{Ot()({text:A,backgroundColor:Ht[t],gravity:"top",duration:e,close:!0}).showToast()}));let Dt,Mt=null;const Pt=[],Tt=A=>{const t=document.querySelector(`[data-label="${A}"]`),e=t.closest(".section"),r=t.closest(".level2");r&&document.querySelectorAll(".section.level2").forEach(((A,t)=>{A===r&&(document.querySelectorAll(".topic")[t].click(),e.classList.contains("hide")?Ot()({text:'Click "Continue" to view this question.',backgroundColor:Ht.warning,gravity:"top",duration:3e3,close:!0}).showToast():setTimeout((()=>{e.scrollIntoView({behavior:"smooth"})}),150))}))};Shiny.addCustomMessageHandler("vlab_question_review_update",(A=>{const t=A.submission;if(Pt.length>0&&t.length>0){for(const A of t)for(const t of Pt)t.name===A.objectId&&(t.attempted="Yes",t.correct=A.correct);Rt()}})),Shiny.addCustomMessageHandler("vlab_state_update",(A=>{A.get_all_state_objects&&(Mt=A.get_all_state_objects),Pt.length<=0&&A.label.forEach(((t,e)=>{const r=((A,t)=>{let e=null;for(const r of A.get_tutorial_info.items.data)if(r.label===t){r.options&&r.options.hasOwnProperty("mark")&&(e=String(r.options.mark));break}return e})(A,t);r&&Pt.push({name:t,attempted:"-",correct:"-"})})),Rt()}));const Rt=()=>{const A=document.getElementById("vlab_review");A&&(Dt?Dt.updateConfig({data:Pt}).forceRender():(Dt=new Ct({style:{table:{width:"100%"}},columns:[{id:"name",name:"Id",formatter:(A,t)=>hA(``),onclick:A=>{Tt(A.data.name)}},{id:"attempted",name:"Attempted",formatter:(A,t)=>hA(t.cells[1].data.toString())},{id:"correct",name:"Correct",formatter:(A,t)=>{let e=t.cells[2].data.toString();return"N/A"!==t.cells[2].data&&"-"!==t.cells[2].data&&(t.cells[2].data,e=''),hA(e)}}],search:!0,sort:!0,resizable:!0,data:Pt}).render(A),Dt.on("cellClick",((A,t,e,r)=>{"name"==e.id&&Tt(t.data)}))))};var Kt=__webpack_require__(742),jt=__webpack_require__(23);if("undefined"==typeof Promise)throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");var zt=!1;function Gt(){zt||(zt=!0)}function qt(A){if(!(this instanceof qt))return new qt(A);for(var t,e,r=this,n=[],i={enable:!0,callbackList:[],interval:5},o=document.getElementsByTagName("script"),a=0;a=0;--e){var n=t[e];"error"==A.data?n.setError():n.setSuccess("unchanged"==A.data)}}}),!1),A.promise}function v(){i.enable&&r.token&&setTimeout((function(){C().then((function(A){A&&v()}))}),1e3*i.interval)}function C(){var A=y();if(i.iframe&&i.iframeOrigin){var t=r.clientId+" "+(r.sessionId?r.sessionId:"");i.callbackList.push(A);var e=i.iframeOrigin;1==i.callbackList.length&&i.iframe.contentWindow.postMessage(t,e)}else A.setSuccess();return A.promise}function F(){var A=y();if(i.enable||r.silentCheckSsoRedirectUri){var t=document.createElement("iframe");t.setAttribute("src",r.endpoints.thirdPartyCookiesIframe()),t.setAttribute("title","keycloak-3p-check-iframe"),t.style.display="none",document.body.appendChild(t);var e=function(n){t.contentWindow===n.source&&("supported"!==n.data&&"unsupported"!==n.data||("unsupported"===n.data&&(i.enable=!1,r.silentCheckSsoFallback&&(r.silentCheckSsoRedirectUri=!1),l("[KEYCLOAK] 3rd party cookies aren't supported by this browser. checkLoginIframe and silent check-sso are not available.")),document.body.removeChild(t),window.removeEventListener("message",e),A.setSuccess()))};window.addEventListener("message",e,!1)}else A.setSuccess();return function(A,t,e){var r=null,n=new Promise((function(A,n){r=setTimeout((function(){n({error:e||"Promise is not settled within timeout of "+t+"ms"})}),t)}));return Promise.race([A,n]).finally((function(){clearTimeout(r)}))}(A.promise,r.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Q(A){if(!A||"default"==A)return{login:function(A){return window.location.replace(r.createLoginUrl(A)),y().promise},logout:function(A){return window.location.replace(r.createLogoutUrl(A)),y().promise},register:function(A){return window.location.replace(r.createRegisterUrl(A)),y().promise},accountManagement:function(){var A=r.createAccountUrl();if(void 0===A)throw"Not supported by the OIDC server";return window.location.href=A,y().promise},redirectUri:function(A,t){return A&&A.redirectUri?A.redirectUri:r.redirectUri?r.redirectUri:location.href}};if("cordova"==A){i.enable=!1;var t=function(A,t,e){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(A,t,e):window.open(A,t,e)},e=function(A){var t=function(A){return A&&A.cordovaOptions?Object.keys(A.cordovaOptions).reduce((function(t,e){return t[e]=A.cordovaOptions[e],t}),{}):{}}(A);return t.location="no",A&&"none"==A.prompt&&(t.hidden="yes"),function(A){return Object.keys(A).reduce((function(t,e){return t.push(e+"="+A[e]),t}),[]).join(",")}(t)};return{login:function(A){var n=y(),i=e(A),o=r.createLoginUrl(A),a=t(o,"_blank",i),s=!1,c=!1,l=function(){c=!0,a.close()};return a.addEventListener("loadstart",(function(A){0==A.url.indexOf("http://localhost")&&(h(w(A.url),n),l(),s=!0)})),a.addEventListener("loaderror",(function(A){s||(0==A.url.indexOf("http://localhost")?(h(w(A.url),n),l(),s=!0):(n.setError(),l()))})),a.addEventListener("exit",(function(A){c||n.setError({reason:"closed_by_user"})})),n.promise},logout:function(A){var e,n=y(),i=r.createLogoutUrl(A),o=t(i,"_blank","location=no,hidden=yes,clearcache=yes");return o.addEventListener("loadstart",(function(A){0==A.url.indexOf("http://localhost")&&o.close()})),o.addEventListener("loaderror",(function(A){0==A.url.indexOf("http://localhost")||(e=!0),o.close()})),o.addEventListener("exit",(function(A){e?n.setError():(r.clearToken(),n.setSuccess())})),n.promise},register:function(A){var n=y(),i=r.createRegisterUrl(),o=e(A),a=t(i,"_blank",o);return a.addEventListener("loadstart",(function(A){0==A.url.indexOf("http://localhost")&&(a.close(),h(w(A.url),n))})),n.promise},accountManagement:function(){var A=r.createAccountUrl();if(void 0===A)throw"Not supported by the OIDC server";var e=t(A,"_blank","location=no");e.addEventListener("loadstart",(function(A){0==A.url.indexOf("http://localhost")&&e.close()}))},redirectUri:function(A){return"http://localhost"}}}if("cordova-native"==A)return i.enable=!1,{login:function(A){var t=y(),e=r.createLoginUrl(A);return universalLinks.subscribe("keycloak",(function(A){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),h(w(A.url),t)})),window.cordova.plugins.browsertab.openUrl(e),t.promise},logout:function(A){var t=y(),e=r.createLogoutUrl(A);return universalLinks.subscribe("keycloak",(function(A){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),r.clearToken(),t.setSuccess()})),window.cordova.plugins.browsertab.openUrl(e),t.promise},register:function(A){var t=y(),e=r.createRegisterUrl(A);return universalLinks.subscribe("keycloak",(function(A){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),h(w(A.url),t)})),window.cordova.plugins.browsertab.openUrl(e),t.promise},accountManagement:function(){var A=r.createAccountUrl();if(void 0===A)throw"Not supported by the OIDC server";window.cordova.plugins.browsertab.openUrl(A)},redirectUri:function(A){return A&&A.redirectUri?A.redirectUri:r.redirectUri?r.redirectUri:"http://localhost"}};throw"invalid adapter type: "+A}r.init=function(n){r.authenticated=!1,e=function(){try{return new U}catch(A){}return new k}();if(t=n&&["default","cordova","cordova-native"].indexOf(n.adapter)>-1?Q(n.adapter):n&&"object"==typeof n.adapter?n.adapter:window.Cordova||window.cordova?Q("cordova"):Q(),n){if(void 0!==n.useNonce&&(s=n.useNonce),void 0!==n.checkLoginIframe&&(i.enable=n.checkLoginIframe),n.checkLoginIframeInterval&&(i.interval=n.checkLoginIframeInterval),"login-required"===n.onLoad&&(r.loginRequired=!0),n.responseMode){if("query"!==n.responseMode&&"fragment"!==n.responseMode)throw"Invalid value for responseMode";r.responseMode=n.responseMode}if(n.flow){switch(n.flow){case"standard":r.responseType="code";break;case"implicit":r.responseType="id_token token";break;case"hybrid":r.responseType="code id_token token";break;default:throw"Invalid value for flow"}r.flow=n.flow}if(null!=n.timeSkew&&(r.timeSkew=n.timeSkew),n.redirectUri&&(r.redirectUri=n.redirectUri),n.silentCheckSsoRedirectUri&&(r.silentCheckSsoRedirectUri=n.silentCheckSsoRedirectUri),"boolean"==typeof n.silentCheckSsoFallback?r.silentCheckSsoFallback=n.silentCheckSsoFallback:r.silentCheckSsoFallback=!0,n.pkceMethod){if("S256"!==n.pkceMethod)throw"Invalid value for pkceMethod";r.pkceMethod=n.pkceMethod}"boolean"==typeof n.enableLogging?r.enableLogging=n.enableLogging:r.enableLogging=!1,"string"==typeof n.scope&&(r.scope=n.scope),"number"==typeof n.messageReceiveTimeout&&n.messageReceiveTimeout>0?r.messageReceiveTimeout=n.messageReceiveTimeout:r.messageReceiveTimeout=1e4}r.responseMode||(r.responseMode="fragment"),r.responseType||(r.responseType="code",r.flow="standard");var o=y(),a=y();a.promise.then((function(){r.onReady&&r.onReady(r.authenticated),o.setSuccess(r.authenticated)})).catch((function(A){o.setError(A)}));var c=function(t){var e,n=y();A?"string"==typeof A&&(e=A):e="keycloak.json";function i(A){r.endpoints=A?{authorize:function(){return A.authorization_endpoint},token:function(){return A.token_endpoint},logout:function(){if(!A.end_session_endpoint)throw"Not supported by the OIDC server";return A.end_session_endpoint},checkSessionIframe:function(){if(!A.check_session_iframe)throw"Not supported by the OIDC server";return A.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!A.userinfo_endpoint)throw"Not supported by the OIDC server";return A.userinfo_endpoint}}:{authorize:function(){return f()+"/protocol/openid-connect/auth"},token:function(){return f()+"/protocol/openid-connect/token"},logout:function(){return f()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var A=f()+"/protocol/openid-connect/login-status-iframe.html";return r.iframeVersion&&(A=A+"?version="+r.iframeVersion),A},thirdPartyCookiesIframe:function(){var A=f()+"/protocol/openid-connect/3p-cookies/step1.html";return r.iframeVersion&&(A=A+"?version="+r.iframeVersion),A},register:function(){return f()+"/protocol/openid-connect/registrations"},userinfo:function(){return f()+"/protocol/openid-connect/userinfo"}}}if(e){(s=new XMLHttpRequest).open("GET",e,!0),s.setRequestHeader("Accept","application/json"),s.onreadystatechange=function(){if(4==s.readyState)if(200==s.status||d(s)){var A=JSON.parse(s.responseText);r.authServerUrl=A["auth-server-url"],r.realm=A.realm,r.clientId=A.resource,i(null),n.setSuccess()}else n.setError()},s.send()}else{if(!A.clientId)throw"clientId missing";r.clientId=A.clientId;var o=A.oidcProvider;if(o){var a,s;if("string"==typeof o)a="/"==o.charAt(o.length-1)?o+".well-known/openid-configuration":o+"/.well-known/openid-configuration",(s=new XMLHttpRequest).open("GET",a,!0),s.setRequestHeader("Accept","application/json"),s.onreadystatechange=function(){4==s.readyState&&(200==s.status||d(s)?(i(JSON.parse(s.responseText)),n.setSuccess()):n.setError())},s.send();else i(o),n.setSuccess()}else{if(!A.url)for(var c=document.getElementsByTagName("script"),l=0;l=0},r.hasResourceRole=function(A,t){if(!r.resourceAccess)return!1;var e=r.resourceAccess[t||r.clientId];return!!e&&e.roles.indexOf(A)>=0},r.loadUserProfile=function(){var A=f()+"/account",t=new XMLHttpRequest;t.open("GET",A,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+r.token);var e=y();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(r.profile=JSON.parse(t.responseText),e.setSuccess(r.profile)):e.setError())},t.send(),e.promise},r.loadUserInfo=function(){var A=r.endpoints.userinfo(),t=new XMLHttpRequest;t.open("GET",A,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+r.token);var e=y();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(r.userInfo=JSON.parse(t.responseText),e.setSuccess(r.userInfo)):e.setError())},t.send(),e.promise},r.isTokenExpired=function(A){if(!r.tokenParsed||!r.refreshToken&&"implicit"!=r.flow)throw"Not authenticated";if(null==r.timeSkew)return c("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var t=r.tokenParsed.exp-Math.ceil((new Date).getTime()/1e3)+r.timeSkew;if(A){if(isNaN(A))throw"Invalid minValidity";t-=A}return t<0},r.updateToken=function(A){var t=y();if(!r.refreshToken)return t.setError(),t.promise;A=A||5;var e=function(){var e=!1;if(-1==A?(e=!0,c("[KEYCLOAK] Refreshing token: forced refresh")):r.tokenParsed&&!r.isTokenExpired(A)||(e=!0,c("[KEYCLOAK] Refreshing token: token expired")),e){var i="grant_type=refresh_token&refresh_token="+r.refreshToken,o=r.endpoints.token();if(n.push(t),1==n.length){var a=new XMLHttpRequest;a.open("POST",o,!0),a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.withCredentials=!0,i+="&client_id="+encodeURIComponent(r.clientId);var s=(new Date).getTime();a.onreadystatechange=function(){if(4==a.readyState)if(200==a.status){c("[KEYCLOAK] Token refreshed"),s=(s+(new Date).getTime())/2;var A=JSON.parse(a.responseText);p(A.access_token,A.refresh_token,A.id_token,s),r.onAuthRefreshSuccess&&r.onAuthRefreshSuccess();for(var t=n.pop();null!=t;t=n.pop())t.setSuccess(!0)}else{l("[KEYCLOAK] Failed to refresh token"),400==a.status&&r.clearToken(),r.onAuthRefreshError&&r.onAuthRefreshError();for(t=n.pop();null!=t;t=n.pop())t.setError(!0)}},a.send(i)}}else t.setSuccess(!1)};i.enable?C().then((function(){e()})).catch((function(A){t.setError(A)})):e();return t.promise},r.clearToken=function(){r.token&&(p(null,null,null),r.onAuthLogout&&r.onAuthLogout(),r.loginRequired&&r.login())};var U=function(){if(!(this instanceof U))return new U;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");function A(){for(var A=(new Date).getTime(),t=0;t-1))}return t.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,style:{background:""}},t.lib=t.prototype={toastify:"1.11.2",constructor:t,init:function(A){return A||(A={}),this.options={},this.toastElement=null,this.options.text=A.text||t.defaults.text,this.options.node=A.node||t.defaults.node,this.options.duration=0===A.duration?0:A.duration||t.defaults.duration,this.options.selector=A.selector||t.defaults.selector,this.options.callback=A.callback||t.defaults.callback,this.options.destination=A.destination||t.defaults.destination,this.options.newWindow=A.newWindow||t.defaults.newWindow,this.options.close=A.close||t.defaults.close,this.options.gravity="bottom"===A.gravity?"toastify-bottom":t.defaults.gravity,this.options.positionLeft=A.positionLeft||t.defaults.positionLeft,this.options.position=A.position||t.defaults.position,this.options.backgroundColor=A.backgroundColor||t.defaults.backgroundColor,this.options.avatar=A.avatar||t.defaults.avatar,this.options.className=A.className||t.defaults.className,this.options.stopOnFocus=void 0===A.stopOnFocus?t.defaults.stopOnFocus:A.stopOnFocus,this.options.onClick=A.onClick||t.defaults.onClick,this.options.offset=A.offset||t.defaults.offset,this.options.escapeMarkup=void 0!==A.escapeMarkup?A.escapeMarkup:t.defaults.escapeMarkup,this.options.style=A.style||t.defaults.style,A.backgroundColor&&(this.options.style.background=A.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var A=document.createElement("div");for(var t in A.className="toastify on "+this.options.className,this.options.position?A.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?A.className+=" toastify-left":A.className+=" toastify-right",A.className+=" "+this.options.gravity,this.options.backgroundColor,this.options.style)A.style[t]=this.options.style[t];if(this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)A.appendChild(this.options.node);else if(this.options.escapeMarkup?A.innerText=this.options.text:A.innerHTML=this.options.text,""!==this.options.avatar){var r=document.createElement("img");r.src=this.options.avatar,r.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?A.appendChild(r):A.insertAdjacentElement("afterbegin",r)}if(!0===this.options.close){var n=document.createElement("span");n.innerHTML="✖",n.className="toast-close",n.addEventListener("click",function(A){A.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var i=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&i>360?A.insertAdjacentElement("afterbegin",n):A.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0){var o=this;A.addEventListener("mouseover",(function(t){window.clearTimeout(A.timeOutValue)})),A.addEventListener("mouseleave",(function(){A.timeOutValue=window.setTimeout((function(){o.removeElement(A)}),o.options.duration)}))}if(void 0!==this.options.destination&&A.addEventListener("click",function(A){A.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeof this.options.onClick&&void 0===this.options.destination&&A.addEventListener("click",function(A){A.stopPropagation(),this.options.onClick()}.bind(this)),"object"==typeof this.options.offset){var a=e("x",this.options),s=e("y",this.options),c="left"==this.options.position?a:"-"+a,l="toastify-top"==this.options.gravity?s:"-"+s;A.style.transform="translate("+c+","+l+")"}return A},showToast:function(){var A;if(this.toastElement=this.buildToast(),!(A="string"==typeof this.options.selector?document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||"undefined"!=typeof ShadowRoot&&this.options.selector instanceof ShadowRoot?this.options.selector:document.body))throw"Root element is not defined";var e=t.defaults.oldestFirst?A.firstChild:A.lastChild;return A.insertBefore(this.toastElement,e),t.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(A){A.className=A.className.replace(" on",""),window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),A.parentNode&&A.parentNode.removeChild(A),this.options.callback.call(A),t.reposition()}.bind(this),400)}},t.reposition=function(){for(var A,t={top:15,bottom:15},e={top:15,bottom:15},n={top:15,bottom:15},i=document.getElementsByClassName("toastify"),o=0;o0?window.innerWidth:screen.width)<=360?(i[o].style[A]=n[A]+"px",n[A]+=a+15):!0===r(i[o],"toastify-left")?(i[o].style[A]=t[A]+"px",t[A]+=a+15):(i[o].style[A]=e[A]+"px",e[A]+=a+15)}return this},t.lib.init.prototype=t.lib,t},A.exports?A.exports=e():t.Toastify=e()},669:A=>{"use strict";A.exports="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSI0MDEuOTk4cHgiIGhlaWdodD0iNDAxLjk5OHB4IiB2aWV3Qm94PSIwIDAgNDAxLjk5OCA0MDEuOTk4IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDEuOTk4IDQwMS45OTg7IgoJIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8Zz4KCTxnPgoJCTxwYXRoIGQ9Ik03My4wOTIsMTY0LjQ1MmgyNTUuODEzYzQuOTQ5LDAsOS4yMzMtMS44MDcsMTIuODQ4LTUuNDI0YzMuNjEzLTMuNjE2LDUuNDI3LTcuODk4LDUuNDI3LTEyLjg0NwoJCQljMC00Ljk0OS0xLjgxMy05LjIyOS01LjQyNy0xMi44NUwyMTMuODQ2LDUuNDI0QzIxMC4yMzIsMS44MTIsMjA1Ljk1MSwwLDIwMC45OTksMHMtOS4yMzMsMS44MTItMTIuODUsNS40MjRMNjAuMjQyLDEzMy4zMzEKCQkJYy0zLjYxNywzLjYxNy01LjQyNCw3LjkwMS01LjQyNCwxMi44NWMwLDQuOTQ4LDEuODA3LDkuMjMxLDUuNDI0LDEyLjg0N0M2My44NjMsMTYyLjY0NSw2OC4xNDQsMTY0LjQ1Miw3My4wOTIsMTY0LjQ1MnoiLz4KCQk8cGF0aCBkPSJNMzI4LjkwNSwyMzcuNTQ5SDczLjA5MmMtNC45NTIsMC05LjIzMywxLjgwOC0xMi44NSw1LjQyMWMtMy42MTcsMy42MTctNS40MjQsNy44OTgtNS40MjQsMTIuODQ3CgkJCWMwLDQuOTQ5LDEuODA3LDkuMjMzLDUuNDI0LDEyLjg0OEwxODguMTQ5LDM5Ni41N2MzLjYyMSwzLjYxNyw3LjkwMiw1LjQyOCwxMi44NSw1LjQyOHM5LjIzMy0xLjgxMSwxMi44NDctNS40MjhsMTI3LjkwNy0xMjcuOTA2CgkJCWMzLjYxMy0zLjYxNCw1LjQyNy03Ljg5OCw1LjQyNy0xMi44NDhjMC00Ljk0OC0xLjgxMy05LjIyOS01LjQyNy0xMi44NDdDMzM4LjEzOSwyMzkuMzUzLDMzMy44NTQsMjM3LjU0OSwzMjguOTA1LDIzNy41NDl6Ii8+Cgk8L2c+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+"},813:A=>{"use strict";A.exports="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIyOTIuMzYycHgiIGhlaWdodD0iMjkyLjM2MXB4IiB2aWV3Qm94PSIwIDAgMjkyLjM2MiAyOTIuMzYxIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyOTIuMzYyIDI5Mi4zNjE7IgoJIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8Zz4KCTxwYXRoIGQ9Ik0yODYuOTM1LDE5Ny4yODdMMTU5LjAyOCw2OS4zODFjLTMuNjEzLTMuNjE3LTcuODk1LTUuNDI0LTEyLjg0Ny01LjQyNHMtOS4yMzMsMS44MDctMTIuODUsNS40MjRMNS40MjQsMTk3LjI4NwoJCUMxLjgwNywyMDAuOTA0LDAsMjA1LjE4NiwwLDIxMC4xMzRzMS44MDcsOS4yMzMsNS40MjQsMTIuODQ3YzMuNjIxLDMuNjE3LDcuOTAyLDUuNDI1LDEyLjg1LDUuNDI1aDI1NS44MTMKCQljNC45NDksMCw5LjIzMy0xLjgwOCwxMi44NDgtNS40MjVjMy42MTMtMy42MTMsNS40MjctNy44OTgsNS40MjctMTIuODQ3UzI5MC41NDgsMjAwLjkwNCwyODYuOTM1LDE5Ny4yODd6Ii8+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+"},160:A=>{"use strict";A.exports="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHdpZHRoPSIyOTIuMzYycHgiIGhlaWdodD0iMjkyLjM2MnB4IiB2aWV3Qm94PSIwIDAgMjkyLjM2MiAyOTIuMzYyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyOTIuMzYyIDI5Mi4zNjI7IgoJIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8Zz4KCTxwYXRoIGQ9Ik0yODYuOTM1LDY5LjM3N2MtMy42MTQtMy42MTctNy44OTgtNS40MjQtMTIuODQ4LTUuNDI0SDE4LjI3NGMtNC45NTIsMC05LjIzMywxLjgwNy0xMi44NSw1LjQyNAoJCUMxLjgwNyw3Mi45OTgsMCw3Ny4yNzksMCw4Mi4yMjhjMCw0Ljk0OCwxLjgwNyw5LjIyOSw1LjQyNCwxMi44NDdsMTI3LjkwNywxMjcuOTA3YzMuNjIxLDMuNjE3LDcuOTAyLDUuNDI4LDEyLjg1LDUuNDI4CgkJczkuMjMzLTEuODExLDEyLjg0Ny01LjQyOEwyODYuOTM1LDk1LjA3NGMzLjYxMy0zLjYxNyw1LjQyNy03Ljg5OCw1LjQyNy0xMi44NDdDMjkyLjM2Miw3Ny4yNzksMjkwLjU0OCw3Mi45OTgsMjg2LjkzNSw2OS4zNzd6Ii8+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+"}},__webpack_module_cache__={};function __webpack_require__(A){var t=__webpack_module_cache__[A];if(void 0!==t)return t.exports;var e=__webpack_module_cache__[A]={id:A,exports:{}};return __webpack_modules__[A].call(e.exports,e,e.exports,__webpack_require__),e.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},__webpack_require__.n=A=>{var t=A&&A.__esModule?()=>A.default:()=>A;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(A,t)=>{for(var e in t)__webpack_require__.o(t,e)&&!__webpack_require__.o(A,e)&&Object.defineProperty(A,e,{enumerable:!0,get:t[e]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(A){if("object"==typeof window)return window}}(),__webpack_require__.o=(A,t)=>Object.prototype.hasOwnProperty.call(A,t),__webpack_require__.b=document.baseURI||self.location.href,__webpack_require__.nc=void 0;var __webpack_exports__={};(()=>{"use strict";var A=__webpack_require__(379),t=__webpack_require__.n(A),e=__webpack_require__(795),r=__webpack_require__.n(e),n=__webpack_require__(569),i=__webpack_require__.n(n),o=__webpack_require__(565),a=__webpack_require__.n(o),s=__webpack_require__(216),c=__webpack_require__.n(s),l=__webpack_require__(589),u=__webpack_require__.n(l),f=__webpack_require__(257),h={};h.styleTagTransform=u(),h.setAttributes=a(),h.insert=i().bind(null,"head"),h.domAPI=r(),h.insertStyleElement=c();t()(f.Z,h);f.Z&&f.Z.locals&&f.Z.locals;var d=__webpack_require__(951),p={};p.styleTagTransform=u(),p.setAttributes=a(),p.insert=i().bind(null,"head"),p.domAPI=r(),p.insertStyleElement=c();t()(d.Z,p);d.Z&&d.Z.locals&&d.Z.locals;var g=__webpack_require__(144),m={};m.styleTagTransform=u(),m.setAttributes=a(),m.insert=i().bind(null,"head"),m.domAPI=r(),m.insertStyleElement=c();t()(g.Z,m);g.Z&&g.Z.locals&&g.Z.locals;var w=__webpack_require__(25),B={};B.styleTagTransform=u(),B.setAttributes=a(),B.insert=i().bind(null,"head"),B.domAPI=r(),B.insertStyleElement=c();t()(w.Z,B);w.Z&&w.Z.locals&&w.Z.locals;function y(A,t){for(var e=0;eA.length)&&(t=A.length);for(var e=0,r=new Array(t);e=A.length?{done:!0}:{done:!1,value:A[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var x,_,L,E,I,S,H={},N=[],O=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function D(A,t){for(var e in t)A[e]=t[e];return A}function M(A){var t=A.parentNode;t&&t.removeChild(A)}function P(A,t,e){var r,n,i,o=arguments,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?n=t[i]:a[i]=t[i];if(arguments.length>3)for(e=[e],i=3;i0?T(h.type,h.props,h.key,null,h.__v):h)){if(h.__=e,h.__b=e.__b+1,null===(f=m[l])||f&&h.key==f.key&&h.type===f.type)m[l]=void 0;else for(u=0;u0&&(this.callbacks[e].forEach((function(A){return A.apply(void 0,[].slice.call(t,1))})),!0)},A}();!function(A){A[A.Initiator=0]="Initiator",A[A.ServerFilter=1]="ServerFilter",A[A.ServerSort=2]="ServerSort",A[A.ServerLimit=3]="ServerLimit",A[A.Extractor=4]="Extractor",A[A.Transformer=5]="Transformer",A[A.Filter=6]="Filter",A[A.Sort=7]="Sort",A[A.Limit=8]="Limit"}(dA||(dA={}));var BA=function(A){function t(t){var e;return(e=A.call(this)||this).id=void 0,e._props=void 0,e._props={},e.id=aA(),t&&e.setProps(t),e}C(t,A);var e=t.prototype;return e.process=function(){var A=[].slice.call(arguments);this.validateProps instanceof Function&&this.validateProps.apply(this,A),this.emit.apply(this,["beforeProcess"].concat(A));var t=this._process.apply(this,A);return this.emit.apply(this,["afterProcess"].concat(A)),t},e.setProps=function(A){return Object.assign(this._props,A),this.emit("propsUpdated",this),this},b(t,[{key:"props",get:function(){return this._props}}]),t}(wA),yA=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t.prototype._process=function(A){return this.props.keyword?(t=String(this.props.keyword).trim(),e=this.props.columns,r=this.props.ignoreHiddenColumns,n=A,i=this.props.selector,t=t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),new mA(n.rows.filter((function(A,n){return A.cells.some((function(A,o){if(!A)return!1;if(r&&e&&e[o]&&"object"==typeof e[o]&&e[o].hidden)return!1;var a="";if("function"==typeof i)a=i(A.data,n,o);else if("object"==typeof A.data){var s=A.data;s&&s.props&&s.props.content&&(a=s.props.content)}else a=String(A.data);return new RegExp(t,"gi").test(a)}))})))):A;var t,e,r,n,i},b(t,[{key:"type",get:function(){return dA.Filter}}]),t}(BA);function bA(){var A="gridjs";return""+A+[].slice.call(arguments).reduce((function(A,t){return A+"-"+t}),"")}function vA(){return[].slice.call(arguments).filter((function(A){return A})).reduce((function(A,t){return(A||"")+" "+t}),"").trim()||null}var CA,FA=function(A){function t(t){var e;return(e=A.call(this)||this)._state=void 0,e.dispatcher=void 0,e.dispatcher=t,e._state=e.getInitialState(),t.register(e._handle.bind(Q(e))),e}C(t,A);var e=t.prototype;return e._handle=function(A){this.handle(A.type,A.payload)},e.setState=function(A){var t=this._state;this._state=A,this.emit("updated",A,t)},b(t,[{key:"state",get:function(){return this._state}}]),t}(wA),QA=function(A){function t(){return A.apply(this,arguments)||this}C(t,A);var e=t.prototype;return e.getInitialState=function(){return{keyword:null}},e.handle=function(A,t){"SEARCH_KEYWORD"===A&&this.search(t.keyword)},e.search=function(A){this.setState({keyword:A})},t}(FA),UA=function(){function A(A){this.dispatcher=void 0,this.dispatcher=A}return A.prototype.dispatch=function(A,t){this.dispatcher.dispatch({type:A,payload:t})},A}(),kA=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t.prototype.search=function(A){this.dispatch("SEARCH_KEYWORD",{keyword:A})},t}(UA),xA=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t.prototype._process=function(A){if(!this.props.keyword)return A;var t={};return this.props.url&&(t.url=this.props.url(A.url,this.props.keyword)),this.props.body&&(t.body=this.props.body(A.body,this.props.keyword)),v({},A,t)},b(t,[{key:"type",get:function(){return dA.ServerFilter}}]),t}(BA),_A=new(function(){function A(){}var t=A.prototype;return t.format=function(A,t){return"[Grid.js] ["+t.toUpperCase()+"]: "+A},t.error=function(A,t){void 0===t&&(t=!1);var e=this.format(A,"error");if(t)throw Error(e)},t.warn=function(A){},t.info=function(A){},A}()),LA=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t}(uA);!function(A){A[A.Header=0]="Header",A[A.Footer=1]="Footer",A[A.Cell=2]="Cell"}(CA||(CA={}));var EA=function(){function A(){this.plugins=void 0,this.plugins=[]}var t=A.prototype;return t.get=function(A){var t=this.plugins.filter((function(t){return t.id===A}));return t.length>0?t[0]:null},t.add=function(A){return A.id?null!==this.get(A.id)?(_A.error("Duplicate plugin ID: "+A.id),this):(this.plugins.push(A),this):(_A.error("Plugin ID cannot be empty"),this)},t.remove=function(A){return this.plugins.splice(this.plugins.indexOf(this.get(A)),1),this},t.list=function(A){return(null!=A||null!=A?this.plugins.filter((function(t){return t.position===A})):this.plugins).sort((function(A,t){return A.order-t.order}))},A}(),IA=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t.prototype.render=function(){var A=this;if(this.props.pluginId){var t=this.config.plugin.get(this.props.pluginId);return t?P(R,{},P(t.component,v({plugin:t},t.props,this.props.props))):null}return void 0!==this.props.position?P(R,{},this.config.plugin.list(this.props.position).map((function(t){return P(t.component,v({plugin:t},t.props,A.props.props))}))):null},t}(uA),SA=function(A){function t(t,e){var r;(r=A.call(this,t,e)||this).searchProcessor=void 0,r.actions=void 0,r.store=void 0,r.storeUpdatedFn=void 0,r.actions=new kA(r.config.dispatcher),r.store=new QA(r.config.dispatcher);var n,i=t.keyword;return t.enabled&&(i&&r.actions.search(i),r.storeUpdatedFn=r.storeUpdated.bind(Q(r)),r.store.on("updated",r.storeUpdatedFn),n=t.server?new xA({keyword:t.keyword,url:t.server.url,body:t.server.body}):new yA({keyword:t.keyword,columns:r.config.header&&r.config.header.columns,ignoreHiddenColumns:t.ignoreHiddenColumns||void 0===t.ignoreHiddenColumns,selector:t.selector}),r.searchProcessor=n,r.config.pipeline.register(n)),r}C(t,A);var e=t.prototype;return e.componentWillUnmount=function(){this.config.pipeline.unregister(this.searchProcessor),this.store.off("updated",this.storeUpdatedFn)},e.storeUpdated=function(A){this.searchProcessor.setProps({keyword:A.keyword})},e.onChange=function(A){this.actions.search(A.target.value)},e.render=function(){if(!this.props.enabled)return null;var A,t,e,r=this.onChange.bind(this);return this.searchProcessor instanceof xA&&(A=r,t=this.props.debounceTimeout,r=function(){var r=arguments;return new Promise((function(n){e&&clearTimeout(e),e=setTimeout((function(){return n(A.apply(void 0,[].slice.call(r)))}),t)}))}),P("div",{className:bA(vA("search",this.config.className.search))},P("input",{type:"search",placeholder:this._("search.placeholder"),"aria-label":this._("search.placeholder"),onInput:r,className:vA(bA("input"),bA("search","input")),value:this.store.state.keyword}))},t}(LA);SA.defaultProps={debounceTimeout:250};var HA=function(A){function t(){return A.apply(this,arguments)||this}C(t,A);var e=t.prototype;return e.validateProps=function(){if(isNaN(Number(this.props.limit))||isNaN(Number(this.props.page)))throw Error("Invalid parameters passed")},e._process=function(A){var t=this.props.page;return new mA(A.rows.slice(t*this.props.limit,(t+1)*this.props.limit))},b(t,[{key:"type",get:function(){return dA.Limit}}]),t}(BA),NA=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t.prototype._process=function(A){var t={};return this.props.url&&(t.url=this.props.url(A.url,this.props.page,this.props.limit)),this.props.body&&(t.body=this.props.body(A.body,this.props.page,this.props.limit)),v({},A,t)},b(t,[{key:"type",get:function(){return dA.ServerLimit}}]),t}(BA),OA=function(A){function t(t,e){var r;return(r=A.call(this,t,e)||this).processor=void 0,r.onUpdateFn=void 0,r.setTotalFromTabularFn=void 0,r.state={limit:t.limit,page:t.page||0,total:0},r}C(t,A);var e=t.prototype;return e.componentWillMount=function(){var A,t=this;this.props.enabled&&(this.setTotalFromTabularFn=this.setTotalFromTabular.bind(this),this.props.server?(A=new NA({limit:this.state.limit,page:this.state.page,url:this.props.server.url,body:this.props.server.body}),this.config.pipeline.on("afterProcess",this.setTotalFromTabularFn)):(A=new HA({limit:this.state.limit,page:this.state.page})).on("beforeProcess",this.setTotalFromTabularFn),this.processor=A,this.config.pipeline.register(A),this.config.pipeline.on("error",(function(){t.setState({total:0,page:0})})))},e.setTotalFromTabular=function(A){this.setTotal(A.length)},e.onUpdate=function(A){this.props.resetPageOnUpdate&&A!==this.processor&&this.setPage(0)},e.componentDidMount=function(){this.onUpdateFn=this.onUpdate.bind(this),this.config.pipeline.on("updated",this.onUpdateFn)},e.componentWillUnmount=function(){this.config.pipeline.unregister(this.processor),this.config.pipeline.off("updated",this.onUpdateFn)},e.setPage=function(A){if(A>=this.pages||A<0||A===this.state.page)return null;this.setState({page:A}),this.processor.setProps({page:A})},e.setTotal=function(A){this.setState({total:A})},e.renderPages=function(){var A=this;if(this.props.buttonsCount<=0)return null;var t=Math.min(this.pages,this.props.buttonsCount),e=Math.min(this.state.page,Math.floor(t/2));return this.state.page+Math.floor(t/2)>=this.pages&&(e=t-(this.pages-this.state.page)),P(R,null,this.pages>t&&this.state.page-e>0&&P(R,null,P("button",{tabIndex:0,role:"button",onClick:this.setPage.bind(this,0),title:this._("pagination.firstPage"),"aria-label":this._("pagination.firstPage"),className:this.config.className.paginationButton},this._("1")),P("button",{tabIndex:-1,className:vA(bA("spread"),this.config.className.paginationButton)},"...")),Array.from(Array(t).keys()).map((function(t){return A.state.page+(t-e)})).map((function(t){return P("button",{tabIndex:0,role:"button",onClick:A.setPage.bind(A,t),className:vA(A.state.page===t?vA(bA("currentPage"),A.config.className.paginationButtonCurrent):null,A.config.className.paginationButton),title:A._("pagination.page",t+1),"aria-label":A._("pagination.page",t+1)},A._(""+(t+1)))})),this.pages>t&&this.pages>this.state.page+e+1&&P(R,null,P("button",{tabIndex:-1,className:vA(bA("spread"),this.config.className.paginationButton)},"..."),P("button",{tabIndex:0,role:"button",onClick:this.setPage.bind(this,this.pages-1),title:this._("pagination.page",this.pages),"aria-label":this._("pagination.page",this.pages),className:this.config.className.paginationButton},this._(""+this.pages))))},e.renderSummary=function(){return P(R,null,this.props.summary&&this.state.total>0&&P("div",{role:"status","aria-live":"polite",className:vA(bA("summary"),this.config.className.paginationSummary),title:this._("pagination.navigate",this.state.page+1,this.pages)},this._("pagination.showing")," ",P("b",null,this._(""+(this.state.page*this.state.limit+1)))," ",this._("pagination.to")," ",P("b",null,this._(""+Math.min((this.state.page+1)*this.state.limit,this.state.total)))," ",this._("pagination.of")," ",P("b",null,this._(""+this.state.total))," ",this._("pagination.results")))},e.render=function(){return this.props.enabled?P("div",{className:vA(bA("pagination"),this.config.className.pagination)},this.renderSummary(),P("div",{className:bA("pages")},this.props.prevButton&&P("button",{tabIndex:0,role:"button",disabled:0===this.state.page,onClick:this.setPage.bind(this,this.state.page-1),title:this._("pagination.previous"),"aria-label":this._("pagination.previous"),className:vA(this.config.className.paginationButton,this.config.className.paginationButtonPrev)},this._("pagination.previous")),this.renderPages(),this.props.nextButton&&P("button",{tabIndex:0,role:"button",disabled:this.pages===this.state.page+1||0===this.pages,onClick:this.setPage.bind(this,this.state.page+1),title:this._("pagination.next"),"aria-label":this._("pagination.next"),className:vA(this.config.className.paginationButton,this.config.className.paginationButtonNext)},this._("pagination.next")))):null},b(t,[{key:"pages",get:function(){return Math.ceil(this.state.total/this.state.limit)}}]),t}(LA);function DA(A,t){return"string"==typeof A?A.indexOf("%")>-1?t/100*parseInt(A,10):parseInt(A,10):A}function MA(A){return A?Math.floor(A)+"px":""}OA.defaultProps={summary:!0,nextButton:!0,prevButton:!0,buttonsCount:3,limit:10,resetPageOnUpdate:!0};var PA=function(A){function t(t,e){var r;return(r=A.call(this,t,e)||this).tableElement=void 0,r.tableClassName=void 0,r.tableStyle=void 0,r.tableElement=r.props.tableRef.current.base.cloneNode(!0),r.tableElement.style.position="absolute",r.tableElement.style.width="100%",r.tableElement.style.zIndex="-2147483640",r.tableElement.style.visibility="hidden",r.tableClassName=r.tableElement.className,r.tableStyle=r.tableElement.style.cssText,r}C(t,A);var e=t.prototype;return e.widths=function(){this.tableElement.className=this.tableClassName+" "+bA("shadowTable"),this.tableElement.style.tableLayout="auto",this.tableElement.style.width="auto",this.tableElement.style.padding="0",this.tableElement.style.margin="0",this.tableElement.style.border="none",this.tableElement.style.outline="none";var A=Array.from(this.base.parentNode.querySelectorAll("thead th")).reduce((function(A,t){var e;return t.style.width=t.clientWidth+"px",v(((e={})[t.getAttribute("data-column-id")]={minWidth:t.clientWidth},e),A)}),{});return this.tableElement.className=this.tableClassName,this.tableElement.style.cssText=this.tableStyle,this.tableElement.style.tableLayout="auto",Array.from(this.base.parentNode.querySelectorAll("thead th")).reduce((function(A,t){return A[t.getAttribute("data-column-id")].width=t.clientWidth,A}),A)},e.render=function(){var A=this;return this.props.tableRef.current?P("div",{ref:function(t){t&&t.appendChild(A.tableElement)}}):null},t}(uA);function TA(A){if(!A)return"";var t=A.split(" ");return 1===t.length&&/([a-z][A-Z])+/g.test(A)?A:t.map((function(A,t){return 0==t?A.toLowerCase():A.charAt(0).toUpperCase()+A.slice(1).toLowerCase()})).join("")}var RA=function(A){function t(){var t;return(t=A.call(this)||this)._columns=void 0,t._columns=[],t}C(t,A);var e=t.prototype;return e.adjustWidth=function(A){var e=A.container,r=A.tableRef,n=A.tempRef,i=A.tempRef||!0;if(!e)return this;var o=e.clientWidth,a={current:null},s={};if(r.current&&i){var c=P(PA,{tableRef:r});c.ref=a,oA(c,n.current),s=a.current.widths()}for(var l,u=k(t.tabularFormat(this.columns).reduce((function(A,t){return A.concat(t)}),[]));!(l=u()).done;){var f=l.value;f.columns&&f.columns.length>0||(!f.width&&i?f.id in s&&(f.width=MA(s[f.id].width),f.minWidth=MA(s[f.id].minWidth)):f.width=MA(DA(f.width,o)))}return r.current&&i&&oA(null,n.current),this},e.setSort=function(A,t){for(var e,r=k(t||this.columns||[]);!(e=r()).done;){var n=e.value;n.columns&&n.columns.length>0&&(n.sort={enabled:!1}),void 0===n.sort&&A.sort&&(n.sort={enabled:!0}),n.sort?"object"==typeof n.sort&&(n.sort=v({enabled:!0},n.sort)):n.sort={enabled:!1},n.columns&&this.setSort(A,n.columns)}},e.setFixedHeader=function(A,t){for(var e,r=k(t||this.columns||[]);!(e=r()).done;){var n=e.value;void 0===n.fixedHeader&&(n.fixedHeader=A.fixedHeader),n.columns&&this.setFixedHeader(A,n.columns)}},e.setResizable=function(A,t){for(var e,r=k(t||this.columns||[]);!(e=r()).done;){var n=e.value;void 0===n.resizable&&(n.resizable=A.resizable),n.columns&&this.setResizable(A,n.columns)}},e.setID=function(A){for(var t,e=k(A||this.columns||[]);!(t=e()).done;){var r=t.value;r.id||"string"!=typeof r.name||(r.id=TA(r.name)),r.id||_A.error('Could not find a valid ID for one of the columns. Make sure a valid "id" is set for all columns.'),r.columns&&this.setID(r.columns)}},e.populatePlugins=function(A,t){for(var e,r=k(t);!(e=r()).done;){var n=e.value;void 0!==n.plugin&&A.plugin.add(v({id:n.id,props:{}},n.plugin,{position:CA.Cell}))}},t.fromColumns=function(A){for(var e,r=new t,n=k(A);!(e=n()).done;){var i=e.value;if("string"==typeof i||_(i))r.columns.push({name:i});else if("object"==typeof i){var o=i;o.columns&&(o.columns=t.fromColumns(o.columns).columns),"object"==typeof o.plugin&&void 0===o.data&&(o.data=null),r.columns.push(i)}}return r},t.fromUserConfig=function(A){var e=new t;return A.from?e.columns=t.fromHTMLTable(A.from).columns:A.columns?e.columns=t.fromColumns(A.columns).columns:!A.data||"object"!=typeof A.data[0]||A.data[0]instanceof Array||(e.columns=Object.keys(A.data[0]).map((function(A){return{name:A}}))),e.columns.length?(e.setID(),e.setSort(A),e.setFixedHeader(A),e.setResizable(A),e.populatePlugins(A,e.columns),e):null},t.fromHTMLTable=function(A){for(var e,r=new t,n=k(A.querySelector("thead").querySelectorAll("th"));!(e=n()).done;){var i=e.value;r.columns.push({name:i.innerHTML,width:i.width})}return r},t.tabularFormat=function(A){var t=[],e=A||[],r=[];if(e&&e.length){t.push(e);for(var n,i=k(e);!(n=i()).done;){var o=n.value;o.columns&&o.columns.length&&(r=r.concat(o.columns))}r.length&&(t=t.concat(this.tabularFormat(r)))}return t},t.leafColumns=function(A){var t=[],e=A||[];if(e&&e.length)for(var r,n=k(e);!(r=n()).done;){var i=r.value;i.columns&&0!==i.columns.length||t.push(i),i.columns&&(t=t.concat(this.leafColumns(i.columns)))}return t},t.maximumDepth=function(A){return this.tabularFormat([A]).length-1},b(t,[{key:"columns",get:function(){return this._columns},set:function(A){this._columns=A}},{key:"visibleColumns",get:function(){return this._columns.filter((function(A){return!A.hidden}))}}]),t}(sA),KA=function(){function A(){this._callbacks=void 0,this._isDispatching=void 0,this._isHandled=void 0,this._isPending=void 0,this._lastID=void 0,this._pendingPayload=void 0,this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}var t=A.prototype;return t.register=function(A){var t="ID_"+this._lastID++;return this._callbacks[t]=A,t},t.unregister=function(A){if(!this._callbacks[A])throw Error("Dispatcher.unregister(...): "+A+" does not map to a registered callback.");delete this._callbacks[A]},t.waitFor=function(A){if(!this._isDispatching)throw Error("Dispatcher.waitFor(...): Must be invoked while dispatching.");for(var t=0;t=r)return Promise.resolve(A.process(i)).then((function(e){t.cache.set(A.id,i=e)}));i=t.cache.get(A.id)}();if(n&&n.then)return n.then((function(){}))}))}catch(A){return e(A)}return o&&o.then?o.then(void 0,e):o}(0,(function(A){throw _A.error(A),t.emit("error",i),A}));return Promise.resolve(o&&o.then?o.then(e):e())}catch(A){return Promise.reject(A)}},e.findProcessorIndexByID=function(A){return this.steps.findIndex((function(t){return t.id==A}))},e.setLastProcessorIndex=function(A){var t=this.findProcessorIndexByID(A.id);this.lastProcessorIndexUpdated>t&&(this.lastProcessorIndexUpdated=t)},e.processorPropsUpdated=function(A){this.setLastProcessorIndex(A),this.emit("propsUpdated"),this.emit("updated",A)},e.afterRegistered=function(A){this.setLastProcessorIndex(A),this.emit("afterRegister"),this.emit("updated",A)},b(t,[{key:"steps",get:function(){for(var A,t=[],e=k(this.getSortedProcessorTypes());!(A=e()).done;){var r=this._steps.get(A.value);r&&r.length&&(t=t.concat(r))}return t.filter((function(A){return A}))}}]),t}(wA),$A=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t.prototype._process=function(A){try{return Promise.resolve(this.props.storage.get(A))}catch(A){return Promise.reject(A)}},b(t,[{key:"type",get:function(){return dA.Extractor}}]),t}(BA),At=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t.prototype._process=function(A){var t=mA.fromArray(A.data);return t.length=A.total,t},b(t,[{key:"type",get:function(){return dA.Transformer}}]),t}(BA),tt=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t.prototype._process=function(){return Object.entries(this.props.serverStorageOptions).filter((function(A){return"function"!=typeof A[1]})).reduce((function(A,t){var e;return v({},A,((e={})[t[0]]=t[1],e))}),{})},b(t,[{key:"type",get:function(){return dA.Initiator}}]),t}(BA),et=function(A){function t(){return A.apply(this,arguments)||this}C(t,A);var e=t.prototype;return e.castData=function(A){if(!A||!A.length)return[];if(!this.props.header||!this.props.header.columns)return A;var t=RA.leafColumns(this.props.header.columns);return A[0]instanceof Array?A.map((function(A){var e=0;return t.map((function(t,r){return void 0!==t.data?(e++,"function"==typeof t.data?t.data(A):t.data):A[r-e]}))})):"object"!=typeof A[0]||A[0]instanceof Array?[]:A.map((function(A){return t.map((function(t,e){return void 0!==t.data?"function"==typeof t.data?t.data(A):t.data:t.id?A[t.id]:(_A.error("Could not find the correct cell for column at position "+e+".\n Make sure either 'id' or 'selector' is defined for all columns."),null)}))}))},e._process=function(A){return{data:this.castData(A.data),total:A.total}},b(t,[{key:"type",get:function(){return dA.Transformer}}]),t}(BA),rt=function(){function A(){}return A.createFromConfig=function(A){var t=new ZA;return A.storage instanceof GA&&t.register(new tt({serverStorageOptions:A.server})),t.register(new $A({storage:A.storage})),t.register(new et({header:A.header})),t.register(new At),t},A}(),nt=function(){function A(t){this._userConfig=void 0,Object.assign(this,v({},A.defaultConfig(),t)),this._userConfig={}}var t=A.prototype;return t.assign=function(A){for(var t=0,e=Object.keys(A);tt?1:A1&&(s=!0,a=!0):0===i?a=!0:i>0&&!e?(a=!0,s=!0):i>0&&e&&(a=!0),s&&(n=[]),a)n.push({index:A,direction:t,compare:r});else if(l){var u=n.indexOf(o);n[u].direction=t}else if(c){var f=n.indexOf(o);n.splice(f,1)}this.setState(n)},t}(FA),ht=function(A){function t(){return A.apply(this,arguments)||this}C(t,A);var e=t.prototype;return e.sortColumn=function(A,t,e,r){this.dispatch("SORT_COLUMN",{index:A,direction:t,multi:e,compare:r})},e.sortToggle=function(A,t,e){this.dispatch("SORT_COLUMN_TOGGLE",{index:A,multi:t,compare:e})},t}(UA),dt=function(A){function t(){return A.apply(this,arguments)||this}return C(t,A),t.prototype._process=function(A){var t={};return this.props.url&&(t.url=this.props.url(A.url,this.props.columns)),this.props.body&&(t.body=this.props.body(A.body,this.props.columns)),v({},A,t)},b(t,[{key:"type",get:function(){return dA.ServerSort}}]),t}(BA),pt=function(A){function t(t,e){var r;return(r=A.call(this,t,e)||this).sortProcessor=void 0,r.actions=void 0,r.store=void 0,r.updateStateFn=void 0,r.updateSortProcessorFn=void 0,r.actions=new ht(r.config.dispatcher),r.store=new ft(r.config.dispatcher),t.enabled&&(r.sortProcessor=r.getOrCreateSortProcessor(),r.updateStateFn=r.updateState.bind(Q(r)),r.store.on("updated",r.updateStateFn),r.state={direction:0}),r}C(t,A);var e=t.prototype;return e.componentWillUnmount=function(){this.config.pipeline.unregister(this.sortProcessor),this.store.off("updated",this.updateStateFn),this.updateSortProcessorFn&&this.store.off("updated",this.updateSortProcessorFn)},e.updateState=function(){var A=this,t=this.store.state.find((function(t){return t.index===A.props.index}));this.setState(t?{direction:t.direction}:{direction:0})},e.updateSortProcessor=function(A){this.sortProcessor.setProps({columns:A})},e.getOrCreateSortProcessor=function(){var A=dA.Sort;this.config.sort&&"object"==typeof this.config.sort.server&&(A=dA.ServerSort);var t,e=this.config.pipeline.getStepsByType(A);return e.length>0?t=e[0]:(this.updateSortProcessorFn=this.updateSortProcessor.bind(this),this.store.on("updated",this.updateSortProcessorFn),t=A===dA.ServerSort?new dt(v({columns:this.store.state},this.config.sort.server)):new ut({columns:this.store.state}),this.config.pipeline.register(t)),t},e.changeDirection=function(A){A.preventDefault(),A.stopPropagation(),this.actions.sortToggle(this.props.index,!0===A.shiftKey&&this.config.sort.multiColumn,this.props.compare)},e.render=function(){if(!this.props.enabled)return null;var A=this.state.direction,t="neutral";return 1===A?t="asc":-1===A&&(t="desc"),P("button",{tabIndex:-1,"aria-label":this._("sort.sort"+(1===A?"Desc":"Asc")),title:this._("sort.sort"+(1===A?"Desc":"Asc")),className:vA(bA("sort"),bA("sort",t),this.config.className.sort),onClick:this.changeDirection.bind(this)})},t}(uA),gt=function(A){function t(){for(var t,e=arguments.length,r=new Array(e),n=0;n=e&&(t.apply(void 0,A),i=Date.now())}),Math.max(e-(Date.now()-i),0))):(t.apply(void 0,A),i=Date.now(),r=!0)}),document.addEventListener("mouseup",this.upFn),document.addEventListener("touchend",this.upFn),document.addEventListener("mousemove",this.moveFn),document.addEventListener("touchmove",this.moveFn)},e.move=function(A){A.stopPropagation();var t=this.props.thRef.current;this.state.offsetStart+this.getPageX(A)>=parseInt(t.style.minWidth,10)&&(t.style.width=this.state.offsetStart+this.getPageX(A)+"px")},e.end=function(A){A.stopPropagation(),document.removeEventListener("mouseup",this.upFn),document.removeEventListener("mousemove",this.moveFn),document.removeEventListener("touchmove",this.moveFn),document.removeEventListener("touchend",this.upFn)},e.render=function(){return P("div",{className:vA(bA("th"),bA("resizable")),onMouseDown:this.start.bind(this),onTouchStart:this.start.bind(this),onClick:function(A){return A.stopPropagation()}})},t}(uA),mt=function(A){function t(t,e){var r;return(r=A.call(this,t,e)||this).sortRef={current:null},r.thRef={current:null},r.state={style:{}},r}C(t,A);var e=t.prototype;return e.isSortable=function(){return this.props.column.sort.enabled},e.isResizable=function(){return this.props.column.resizable},e.onClick=function(A){A.stopPropagation(),this.isSortable()&&this.sortRef.current.changeDirection(A)},e.keyDown=function(A){this.isSortable()&&13===A.which&&this.onClick(A)},e.componentDidMount=function(){var A=this;setTimeout((function(){if(A.props.column.fixedHeader&&A.thRef.current){var t=A.thRef.current.offsetTop;"number"==typeof t&&A.setState({style:{top:t}})}}),0)},e.content=function(){return void 0!==this.props.column.name?this.props.column.name:void 0!==this.props.column.plugin?P(IA,{pluginId:this.props.column.plugin.id,props:{column:this.props.column}}):null},e.getCustomAttributes=function(){var A=this.props.column;return A?"function"==typeof A.attributes?A.attributes(null,null,this.props.column):A.attributes:{}},e.render=function(){var A={};return this.isSortable()&&(A.tabIndex=0),P("th",v({ref:this.thRef,"data-column-id":this.props.column&&this.props.column.id,className:vA(bA("th"),this.isSortable()?bA("th","sort"):null,this.props.column.fixedHeader?bA("th","fixed"):null,this.config.className.th),onClick:this.onClick.bind(this),style:v({},this.config.style.th,{minWidth:this.props.column.minWidth,width:this.props.column.width},this.state.style,this.props.style),onKeyDown:this.keyDown.bind(this),rowSpan:this.props.rowSpan>1?this.props.rowSpan:void 0,colSpan:this.props.colSpan>1?this.props.colSpan:void 0},this.getCustomAttributes(),A),P("div",{className:bA("th","content")},this.content()),this.isSortable()&&P(pt,v({ref:this.sortRef,index:this.props.index},this.props.column.sort)),this.isResizable()&&this.props.index0?(_A.error("The container element "+A+" is not empty. Make sure the container is empty and call render() again"),this):(this.config.container=A,oA(this.createElement(),A),this)},t}(wA),Ft=[],Qt=x.__b,Ut=x.__r,kt=x.diffed,xt=x.__c,_t=x.unmount;function Lt(){Ft.forEach((function(A){if(A.__P)try{A.__H.__h.forEach(It),A.__H.__h.forEach(St),A.__H.__h=[]}catch(t){A.__H.__h=[],x.__e(t,A.__v)}})),Ft=[]}x.__b=function(A){it=null,Qt&&Qt(A)},x.__r=function(A){Ut&&Ut(A),0;var t=(it=A.__c).__H;t&&(t.__h.forEach(It),t.__h.forEach(St),t.__h=[])},x.diffed=function(A){kt&&kt(A);var t=A.__c;t&&t.__H&&t.__H.__h.length&&(1!==Ft.push(t)&&ot===x.requestAnimationFrame||((ot=x.requestAnimationFrame)||function(A){var t,e=function(){clearTimeout(r),Et&&cancelAnimationFrame(t),setTimeout(A)},r=setTimeout(e,100);Et&&(t=requestAnimationFrame(e))})(Lt)),it=void 0},x.__c=function(A,t){t.some((function(A){try{A.__h.forEach(It),A.__h=A.__h.filter((function(A){return!A.__||St(A)}))}catch(e){t.some((function(A){A.__h&&(A.__h=[])})),t=[],x.__e(e,A.__v)}})),xt&&xt(A,t)},x.unmount=function(A){_t&&_t(A);var t=A.__c;if(t&&t.__H)try{t.__H.__.forEach(It)}catch(A){x.__e(A,t.__v)}};var Et="function"==typeof requestAnimationFrame;function It(A){var t=it;"function"==typeof A.__c&&A.__c(),it=t}function St(A){var t=it;A.__c=A.__(),it=t}var Ht,Nt=__webpack_require__(588),Ot=__webpack_require__.n(Nt);!function(A){A.info="#3D9FC9",A.success="#96c93d",A.error="#E13800",A.warning="#E0B300"}(Ht||(Ht={})),Shiny.addCustomMessageHandler("vlab_notification",(({message:A="",type:t=Ht.info,duration:e=3e3})=>{Ot()({text:A,backgroundColor:Ht[t],gravity:"top",duration:e,close:!0}).showToast()}));let Dt,Mt=null;const Pt=[],Tt=A=>{const t=document.querySelector(`[data-label="${A}"]`),e=t.closest(".section"),r=t.closest(".level2");r&&document.querySelectorAll(".section.level2").forEach(((A,t)=>{A===r&&(document.querySelectorAll(".topic")[t].click(),e.classList.contains("hide")?Ot()({text:'Click "Continue" to view this question.',backgroundColor:Ht.warning,gravity:"top",duration:3e3,close:!0}).showToast():setTimeout((()=>{e.scrollIntoView({behavior:"smooth"})}),150))}))};Shiny.addCustomMessageHandler("vlab_question_review_update",(A=>{const t=A.submission;if(Pt.length>0&&t.length>0){for(const A of t)for(const t of Pt)t.name===A.objectId&&(t.attempted="Yes",t.correct=A.correct);Rt()}})),Shiny.addCustomMessageHandler("vlab_state_update",(A=>{A.get_all_state_objects&&(Mt=A.get_all_state_objects),Pt.length<=0&&A.label.forEach(((t,e)=>{const r=((A,t)=>{let e=null;for(const r of A.get_tutorial_info.items.data)if(r.label===t){r.options&&r.options.hasOwnProperty("mark")&&(e=String(r.options.mark));break}return e})(A,t);r&&Pt.push({name:t,attempted:"-",correct:"-"})})),Rt()}));const Rt=()=>{const A=document.getElementById("vlab_review");A&&(Dt?Dt.updateConfig({data:Pt}).forceRender():(Dt=new Ct({style:{table:{width:"100%"}},columns:[{id:"name",name:"Id",formatter:(A,t)=>hA(``),onclick:A=>{Tt(A.data.name)}},{id:"attempted",name:"Attempted",formatter:(A,t)=>hA(t.cells[1].data.toString())},{id:"correct",name:"Correct",formatter:(A,t)=>{let e=t.cells[2].data.toString();return"N/A"!==t.cells[2].data&&"-"!==t.cells[2].data&&(e=1==t.cells[2].data?'':''),hA(e)}}],search:!0,sort:!0,resizable:!0,data:Pt}).render(A),Dt.on("cellClick",((A,t,e,r)=>{"name"==e.id&&Tt(t.data)}))))};var Kt=__webpack_require__(742),jt=__webpack_require__(23);if("undefined"==typeof Promise)throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");var zt=!1;function Gt(){zt||(zt=!0)}function qt(A){if(!(this instanceof qt))return new qt(A);for(var t,e,r=this,n=[],i={enable:!0,callbackList:[],interval:5},o=document.getElementsByTagName("script"),a=0;a=0;--e){var n=t[e];"error"==A.data?n.setError():n.setSuccess("unchanged"==A.data)}}}),!1),A.promise}function v(){i.enable&&r.token&&setTimeout((function(){C().then((function(A){A&&v()}))}),1e3*i.interval)}function C(){var A=y();if(i.iframe&&i.iframeOrigin){var t=r.clientId+" "+(r.sessionId?r.sessionId:"");i.callbackList.push(A);var e=i.iframeOrigin;1==i.callbackList.length&&i.iframe.contentWindow.postMessage(t,e)}else A.setSuccess();return A.promise}function F(){var A=y();if(i.enable||r.silentCheckSsoRedirectUri){var t=document.createElement("iframe");t.setAttribute("src",r.endpoints.thirdPartyCookiesIframe()),t.setAttribute("title","keycloak-3p-check-iframe"),t.style.display="none",document.body.appendChild(t);var e=function(n){t.contentWindow===n.source&&("supported"!==n.data&&"unsupported"!==n.data||("unsupported"===n.data&&(i.enable=!1,r.silentCheckSsoFallback&&(r.silentCheckSsoRedirectUri=!1),l("[KEYCLOAK] 3rd party cookies aren't supported by this browser. checkLoginIframe and silent check-sso are not available.")),document.body.removeChild(t),window.removeEventListener("message",e),A.setSuccess()))};window.addEventListener("message",e,!1)}else A.setSuccess();return function(A,t,e){var r=null,n=new Promise((function(A,n){r=setTimeout((function(){n({error:e||"Promise is not settled within timeout of "+t+"ms"})}),t)}));return Promise.race([A,n]).finally((function(){clearTimeout(r)}))}(A.promise,r.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Q(A){if(!A||"default"==A)return{login:function(A){return window.location.replace(r.createLoginUrl(A)),y().promise},logout:function(A){return window.location.replace(r.createLogoutUrl(A)),y().promise},register:function(A){return window.location.replace(r.createRegisterUrl(A)),y().promise},accountManagement:function(){var A=r.createAccountUrl();if(void 0===A)throw"Not supported by the OIDC server";return window.location.href=A,y().promise},redirectUri:function(A,t){return A&&A.redirectUri?A.redirectUri:r.redirectUri?r.redirectUri:location.href}};if("cordova"==A){i.enable=!1;var t=function(A,t,e){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(A,t,e):window.open(A,t,e)},e=function(A){var t=function(A){return A&&A.cordovaOptions?Object.keys(A.cordovaOptions).reduce((function(t,e){return t[e]=A.cordovaOptions[e],t}),{}):{}}(A);return t.location="no",A&&"none"==A.prompt&&(t.hidden="yes"),function(A){return Object.keys(A).reduce((function(t,e){return t.push(e+"="+A[e]),t}),[]).join(",")}(t)};return{login:function(A){var n=y(),i=e(A),o=r.createLoginUrl(A),a=t(o,"_blank",i),s=!1,c=!1,l=function(){c=!0,a.close()};return a.addEventListener("loadstart",(function(A){0==A.url.indexOf("http://localhost")&&(h(w(A.url),n),l(),s=!0)})),a.addEventListener("loaderror",(function(A){s||(0==A.url.indexOf("http://localhost")?(h(w(A.url),n),l(),s=!0):(n.setError(),l()))})),a.addEventListener("exit",(function(A){c||n.setError({reason:"closed_by_user"})})),n.promise},logout:function(A){var e,n=y(),i=r.createLogoutUrl(A),o=t(i,"_blank","location=no,hidden=yes,clearcache=yes");return o.addEventListener("loadstart",(function(A){0==A.url.indexOf("http://localhost")&&o.close()})),o.addEventListener("loaderror",(function(A){0==A.url.indexOf("http://localhost")||(e=!0),o.close()})),o.addEventListener("exit",(function(A){e?n.setError():(r.clearToken(),n.setSuccess())})),n.promise},register:function(A){var n=y(),i=r.createRegisterUrl(),o=e(A),a=t(i,"_blank",o);return a.addEventListener("loadstart",(function(A){0==A.url.indexOf("http://localhost")&&(a.close(),h(w(A.url),n))})),n.promise},accountManagement:function(){var A=r.createAccountUrl();if(void 0===A)throw"Not supported by the OIDC server";var e=t(A,"_blank","location=no");e.addEventListener("loadstart",(function(A){0==A.url.indexOf("http://localhost")&&e.close()}))},redirectUri:function(A){return"http://localhost"}}}if("cordova-native"==A)return i.enable=!1,{login:function(A){var t=y(),e=r.createLoginUrl(A);return universalLinks.subscribe("keycloak",(function(A){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),h(w(A.url),t)})),window.cordova.plugins.browsertab.openUrl(e),t.promise},logout:function(A){var t=y(),e=r.createLogoutUrl(A);return universalLinks.subscribe("keycloak",(function(A){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),r.clearToken(),t.setSuccess()})),window.cordova.plugins.browsertab.openUrl(e),t.promise},register:function(A){var t=y(),e=r.createRegisterUrl(A);return universalLinks.subscribe("keycloak",(function(A){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),h(w(A.url),t)})),window.cordova.plugins.browsertab.openUrl(e),t.promise},accountManagement:function(){var A=r.createAccountUrl();if(void 0===A)throw"Not supported by the OIDC server";window.cordova.plugins.browsertab.openUrl(A)},redirectUri:function(A){return A&&A.redirectUri?A.redirectUri:r.redirectUri?r.redirectUri:"http://localhost"}};throw"invalid adapter type: "+A}r.init=function(n){r.authenticated=!1,e=function(){try{return new U}catch(A){}return new k}();if(t=n&&["default","cordova","cordova-native"].indexOf(n.adapter)>-1?Q(n.adapter):n&&"object"==typeof n.adapter?n.adapter:window.Cordova||window.cordova?Q("cordova"):Q(),n){if(void 0!==n.useNonce&&(s=n.useNonce),void 0!==n.checkLoginIframe&&(i.enable=n.checkLoginIframe),n.checkLoginIframeInterval&&(i.interval=n.checkLoginIframeInterval),"login-required"===n.onLoad&&(r.loginRequired=!0),n.responseMode){if("query"!==n.responseMode&&"fragment"!==n.responseMode)throw"Invalid value for responseMode";r.responseMode=n.responseMode}if(n.flow){switch(n.flow){case"standard":r.responseType="code";break;case"implicit":r.responseType="id_token token";break;case"hybrid":r.responseType="code id_token token";break;default:throw"Invalid value for flow"}r.flow=n.flow}if(null!=n.timeSkew&&(r.timeSkew=n.timeSkew),n.redirectUri&&(r.redirectUri=n.redirectUri),n.silentCheckSsoRedirectUri&&(r.silentCheckSsoRedirectUri=n.silentCheckSsoRedirectUri),"boolean"==typeof n.silentCheckSsoFallback?r.silentCheckSsoFallback=n.silentCheckSsoFallback:r.silentCheckSsoFallback=!0,n.pkceMethod){if("S256"!==n.pkceMethod)throw"Invalid value for pkceMethod";r.pkceMethod=n.pkceMethod}"boolean"==typeof n.enableLogging?r.enableLogging=n.enableLogging:r.enableLogging=!1,"string"==typeof n.scope&&(r.scope=n.scope),"number"==typeof n.messageReceiveTimeout&&n.messageReceiveTimeout>0?r.messageReceiveTimeout=n.messageReceiveTimeout:r.messageReceiveTimeout=1e4}r.responseMode||(r.responseMode="fragment"),r.responseType||(r.responseType="code",r.flow="standard");var o=y(),a=y();a.promise.then((function(){r.onReady&&r.onReady(r.authenticated),o.setSuccess(r.authenticated)})).catch((function(A){o.setError(A)}));var c=function(t){var e,n=y();A?"string"==typeof A&&(e=A):e="keycloak.json";function i(A){r.endpoints=A?{authorize:function(){return A.authorization_endpoint},token:function(){return A.token_endpoint},logout:function(){if(!A.end_session_endpoint)throw"Not supported by the OIDC server";return A.end_session_endpoint},checkSessionIframe:function(){if(!A.check_session_iframe)throw"Not supported by the OIDC server";return A.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!A.userinfo_endpoint)throw"Not supported by the OIDC server";return A.userinfo_endpoint}}:{authorize:function(){return f()+"/protocol/openid-connect/auth"},token:function(){return f()+"/protocol/openid-connect/token"},logout:function(){return f()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var A=f()+"/protocol/openid-connect/login-status-iframe.html";return r.iframeVersion&&(A=A+"?version="+r.iframeVersion),A},thirdPartyCookiesIframe:function(){var A=f()+"/protocol/openid-connect/3p-cookies/step1.html";return r.iframeVersion&&(A=A+"?version="+r.iframeVersion),A},register:function(){return f()+"/protocol/openid-connect/registrations"},userinfo:function(){return f()+"/protocol/openid-connect/userinfo"}}}if(e){(s=new XMLHttpRequest).open("GET",e,!0),s.setRequestHeader("Accept","application/json"),s.onreadystatechange=function(){if(4==s.readyState)if(200==s.status||d(s)){var A=JSON.parse(s.responseText);r.authServerUrl=A["auth-server-url"],r.realm=A.realm,r.clientId=A.resource,i(null),n.setSuccess()}else n.setError()},s.send()}else{if(!A.clientId)throw"clientId missing";r.clientId=A.clientId;var o=A.oidcProvider;if(o){var a,s;if("string"==typeof o)a="/"==o.charAt(o.length-1)?o+".well-known/openid-configuration":o+"/.well-known/openid-configuration",(s=new XMLHttpRequest).open("GET",a,!0),s.setRequestHeader("Accept","application/json"),s.onreadystatechange=function(){4==s.readyState&&(200==s.status||d(s)?(i(JSON.parse(s.responseText)),n.setSuccess()):n.setError())},s.send();else i(o),n.setSuccess()}else{if(!A.url)for(var c=document.getElementsByTagName("script"),l=0;l=0},r.hasResourceRole=function(A,t){if(!r.resourceAccess)return!1;var e=r.resourceAccess[t||r.clientId];return!!e&&e.roles.indexOf(A)>=0},r.loadUserProfile=function(){var A=f()+"/account",t=new XMLHttpRequest;t.open("GET",A,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+r.token);var e=y();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(r.profile=JSON.parse(t.responseText),e.setSuccess(r.profile)):e.setError())},t.send(),e.promise},r.loadUserInfo=function(){var A=r.endpoints.userinfo(),t=new XMLHttpRequest;t.open("GET",A,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+r.token);var e=y();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(r.userInfo=JSON.parse(t.responseText),e.setSuccess(r.userInfo)):e.setError())},t.send(),e.promise},r.isTokenExpired=function(A){if(!r.tokenParsed||!r.refreshToken&&"implicit"!=r.flow)throw"Not authenticated";if(null==r.timeSkew)return c("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var t=r.tokenParsed.exp-Math.ceil((new Date).getTime()/1e3)+r.timeSkew;if(A){if(isNaN(A))throw"Invalid minValidity";t-=A}return t<0},r.updateToken=function(A){var t=y();if(!r.refreshToken)return t.setError(),t.promise;A=A||5;var e=function(){var e=!1;if(-1==A?(e=!0,c("[KEYCLOAK] Refreshing token: forced refresh")):r.tokenParsed&&!r.isTokenExpired(A)||(e=!0,c("[KEYCLOAK] Refreshing token: token expired")),e){var i="grant_type=refresh_token&refresh_token="+r.refreshToken,o=r.endpoints.token();if(n.push(t),1==n.length){var a=new XMLHttpRequest;a.open("POST",o,!0),a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.withCredentials=!0,i+="&client_id="+encodeURIComponent(r.clientId);var s=(new Date).getTime();a.onreadystatechange=function(){if(4==a.readyState)if(200==a.status){c("[KEYCLOAK] Token refreshed"),s=(s+(new Date).getTime())/2;var A=JSON.parse(a.responseText);p(A.access_token,A.refresh_token,A.id_token,s),r.onAuthRefreshSuccess&&r.onAuthRefreshSuccess();for(var t=n.pop();null!=t;t=n.pop())t.setSuccess(!0)}else{l("[KEYCLOAK] Failed to refresh token"),400==a.status&&r.clearToken(),r.onAuthRefreshError&&r.onAuthRefreshError();for(t=n.pop();null!=t;t=n.pop())t.setError(!0)}},a.send(i)}}else t.setSuccess(!1)};i.enable?C().then((function(){e()})).catch((function(A){t.setError(A)})):e();return t.promise},r.clearToken=function(){r.token&&(p(null,null,null),r.onAuthLogout&&r.onAuthLogout(),r.loginRequired&&r.login())};var U=function(){if(!(this instanceof U))return new U;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");function A(){for(var A=(new Date).getTime(),t=0;t