(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[219],{1587:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[slug]",function(){return n(1705)}])},3087:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(5893),i=n(5675),o=n.n(i),a=n(4184),s=n.n(a),l=n(8892);function c(e){let{src:t,alt:n,fill:i=!1,width:a,height:c,className:u,priority:d=!1}=e,p=s()("relative w-full rounded-lg overflow-hidden",{"aspect-video":i}),f=s()("object-cover",{"absolute h-full w-full":i},u);return(0,r.jsxs)("div",{className:p,children:[(0,r.jsx)(o(),{alt:n,className:f,height:c,src:t.length>0?(0,l.w)(t):(0,l.w)("/assets/security-labs-thumbnail.png"),width:a,fill:i,priority:d}),(0,r.jsx)("div",{className:"absolute border border-white/50 inset-0 mix-blend-overlay rounded-lg z-10"})]})}},7275:function(e){"use strict";window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,(function(t){return e[t]}).bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){n=window}e.exports=n},function(e,t,n){var r,i,o;i=[n(7)],void 0!==(o="function"==typeof(r=function(e){var t=/(^|@)\S+\:\d+/,n=/^\s*at .*(\S+\:\d+|\(native\))/m,r=/^(eval@)?(\[native code\])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/.exec(e.replace(/[\(\)]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\n").filter(function(e){return!!e.match(n)},this).map(function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").split(/\s+/).slice(1),r=this.extractLocation(n.pop()),i=n.join(" ")||void 0,o=["eval",""].indexOf(r[0])>-1?void 0:r[0];return new e({functionName:i,fileName:o,lineNumber:r[1],columnNumber:r[2],source:t})},this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter(function(e){return!e.match(r)},this).map(function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),i=r&&r[1]?r[1]:void 0,o=this.extractLocation(t.replace(n,""));return new e({functionName:i,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),i=[],o=2,a=r.length;o/,"$2").replace(/\([^\)]*\)/g,"")||void 0;o.match(/\(([^\)]*)\)/)&&(n=o.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var s=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new e({functionName:a,args:s,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:t})},this)}}})?r.apply(t,i):r)&&(e.exports=o)},function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,(function(t){return e[t]}).bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){n.r(t);var r=n(1);t.default=r.default},function(e,t,n){n.r(t),n.d(t,"default",function(){return o});var r=n(2),i=n(3);function o(e,t,n){void 0===t&&(t=[1,25,50,75,90]);var o,a=!0,s=[];try{o=n?[n]:new Vidyard.players}catch(e){throw Error("The Vidyard Player API must be loaded before this script can execute")}var l=Object(r.removeDuplicates)(t);for(var c in o)o.hasOwnProperty(c)&&c.length>0&&(s.push(Object(i.default)(o[c],e,l)),a=!1);return a&&window.console&&console.log("No Vidyard Players found. (include this script below player embed codes)","warn"),s}},function(e,t,n){n.r(t),n.d(t,"removeDuplicates",function(){return r});var r=function(e){e.sort(function(e,t){return et?1:0});for(var t=0;t=o[p].thresholds[0]&&n({chapter:p,event:o[p].thresholds.shift(),player:e})}}(n,t)},u=function(t){var n=e.getCurrentChapter();void 0!==o[n]&&(!1===a&&(o[n].interval[1]=t.start),a=!0)},d=function(t){var n=e.getCurrentChapter();void 0===o[n]&&l(),o[n].intervals.insertOne(o[n].interval.slice(0)),o[n].interval[0]=t,o[n].interval[1]=t,a=!1},p=function(e){o[e].interval=[0,0],a=!1};return e.on("timeupdate",c),e.on("beforeSeek",u),e.on("play",d),e.on("chapterComplete",p),{player:e,removeEventListeners:function(){e.off("beforeSeek",u),e.off("chapterComplete",p),e.off("play",d),e.off("timeupdate",c),e=null,o=[]}}}},function(e,t,n){function r(){this._compare=function(e,t){return e[0]t[0]?1:e[1]t[1]?1:0}}n.r(t),n.d(t,"default",function(){return r}),r.create=function(){return new r},r.prototype=[],r.prototype.constructor=Array.prototype.constructor,r.prototype.insertOne=function(e){var t=this.bsearch(e);return this.splice(t+1,0,e),t+1},r.prototype.remove=function(e){return this.splice(e,1),this},r.prototype.bsearch=function(e){if(!this.length)return -1;for(var t,n,r,i=0,o=this.length;o-i>1;){if(n=this[t=Math.floor((i+o)/2)],0===(r=this._compare(e,n)))return t;r>0?i=t:o=t}return 0===i&&this._compare(this[0],e)>0?-1:i}},function(e,t,n){function r(e){var t,n=null,r=[];for(t=0;tn[1]&&(n[1]=e[t][1]);return n&&r.push(n),r}n.r(t),n.d(t,"default",function(){return r})}])},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){var t=void 0===e?{emit:!1,logger:console.log}:e,n=t.emit,r=t.logger;this.emit=n,this.externalLogger=r,this.buffer=[],this.customLevel={},this.error=this.setLevel(1),this.warn=this.setLevel(2),this.info=this.setLevel(3),this.log=this.setLevel(4)}return e.prototype.getLogs=function(e){return"function"==typeof e?this.buffer.filter(function(t){return t.level===e.level}):e?this.buffer.filter(function(t){return t.level===e}):this.buffer},e.prototype.setLevel=function(e){var t=this,n=function(){for(var n=[],r=0;r(t=e.attributes[o]).name.indexOf("data-"))){if("vydata"===(n=t.name.replace("data-",""))){var a=function(e,t){var n={};try{var r=JSON.parse(decodeURIComponent(e));Object.keys(r).forEach(function(e){n[t+"["+e+"]"]=r[e]})}catch(e){g("Invalid "+t+" payload.","warn")}return n}(t.value,"vydata");return Object.keys(a).forEach(function(e){r[e]=a[e]})}i[n]=t.value}}();"inline"!==this.type&&"lightbox"!==this.type&&(g("Invalid Vidyard player embed type, defaulting to inline.","warn"),this.type="inline"),this.v=E,this.disable_popouts=1;var a=D("vycustom_id");this.custom_id=this.custom_id||a;var s=D("vyemail");this.vyemail=this.vyemail||s;var l=D("vysfid");this.vysfid=this.vysfid||l;var c=D("vyetoken");this.vyetoken=this.vyetoken||c;var u=D("vyac"),d=D("vyplayer");u&&d&&(d===this.uuid?this.access_code=u:g("Invalid Vidyard player access code.","warn"))}function D(e){var t="[\\?&]"+(e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"))+"=([^&#]*)",n=new RegExp(t).exec(window.location.search);if(null!==n)return n[1]}B.prototype.toQueryString=function(){var e,t="?";for(e in this)this.hasOwnProperty(e)&&"height"!==e&&"uuid"!==e&&"width"!==e&&void 0!==this[e]&&(t+=("?"!==t?"&":"")+encodeURIComponent(e)+"="+encodeURIComponent(this[e]));return"?"===t?"":t};var q={};q.show=function(e,t,n){if(!(!e||document.getElementById("vidyard-overlay"))){var r,i,o=((r={}).backerElement=document.createElement("div"),r.backerElement.className="vidyard-lightbox-content-backer",r.containerElement=document.createElement("div"),r.containerElement.innerHTML=e,r.containingDiv=r.containerElement.getElementsByTagName("div")[0],r.containingDiv.style.position="absolute",r.containingDiv.style.height="100%",r.containingDiv.style.width="100%",r.containingDiv.style.zIndex="2",r.iframe=r.containerElement.getElementsByTagName("iframe")[0],r.iframe.parentNode.style.position="static",r.iframe.parentNode.style.paddingBottom=0,r.iframe.style.opacity="1",setTimeout(function(){r.backerElement.style.opacity="1",r.backerElement.style.filter="alpha(opacity=100)"},0),r),a=Z(n),s=((i=v("vidyard-lightbox-image","img",t)[0].cloneNode()).className="",i.id="vidyard-popbox-constraint",i.alt="",i.setAttribute("aria-hidden","true"),i);return a.popbox.appendChild(o.backerElement),a.popbox.appendChild(o.containingDiv),a.popbox.appendChild(s),document.body.appendChild(a.overlayWrapper),a.closeContainer.focus(),setTimeout(function(){a.overlayWrapper.style.opacity="1",a.overlayWrapper.style.filter="alpha(opacity=100)"},0),{container:o,lightbox:a}}},q.remove=function(e){var t=document.getElementById("vidyard-content-fixed"),n=document.getElementById("vidyard-overlay"),r=document.getElementById("vidyard-overlay-wrapper"),i=document.getElementById("vidyard-popbox");t&&n&&r&&i&&(e&&Object.keys(e).forEach(function(t){(0,e[t])()}),r.style.opacity="0",r.style.filter="alpha(opacity=0)",setTimeout(function(){r.parentNode.removeChild(r)},500))},q.makeIframeVisible=function(e){e.style.opacity="1"};var Z=function(e){var t,n={};return n.overlay=document.createElement("div"),n.contentFixed=document.createElement("div"),n.popbox=document.createElement("div"),n.overlayWrapper=document.createElement("div"),n.closeContainer=((t={}).closeContainer=document.createElement("div"),t.closeButton=document.createElement("div"),t.closeContainer.className="vidyard-close-container",t.closeContainer.setAttribute("aria-label","Close Player"),t.closeContainer.setAttribute("role","button"),t.closeContainer.setAttribute("tabindex","0"),t.closeButton.className="vidyard-close-x",document.documentMode<9&&(t.closeButton.className+=" simple-close",t.closeButton.innerHTML="×"),t.closeContainer.appendChild(t.closeButton),t).closeContainer,n.overlay.id="vidyard-overlay",n.overlay.setAttribute("aria-hidden","true"),n.overlay.style.display="block",n.contentFixed.id="vidyard-content-fixed",n.contentFixed.setAttribute("aria-label","media player lightbox"),n.contentFixed.setAttribute("role","dialog"),n.contentFixed.style.display="block",n.popbox.id="vidyard-popbox",n.overlayWrapper.id="vidyard-overlay-wrapper",n.overlayWrapper.style.display="block",n.contentFixed.appendChild(n.popbox),n.overlayWrapper.appendChild(n.overlay),n.overlayWrapper.appendChild(n.closeContainer),n.overlayWrapper.appendChild(n.contentFixed),e&&(n.overlay.style.zIndex=e,n.contentFixed.style.zIndex=e+2,n.closeContainer.style.zIndex=e+1),n},H=n(3),W=new(n.n(H)).a({emit:!!window.location.search.match("vydebug=1"),logger:function(e){return g(e,"info")}}),$=j();$&&(W.info("vidyardEmbed V"+E+" loaded from "+$.src),W.info("data-playbackurl="+$.getAttribute("data-playbackurl"))),W.info("userAgent "+window.navigator.userAgent),W.info("cookies "+navigator.cookieEnabled),window.performance&&window.performance.timing&&window.performance.timing.navigationStart&&W.info("Script load time "+(Date.now()-window.performance.timing.navigationStart));var G={},J={};function Q(){var e=document.getElementById("vidyard-popbox-constraint"),t=parseFloat((window.innerHeight/window.innerWidth*100).toFixed(2))
video thumbnail
');e.insertAdjacentHTML("afterbegin",i)},K.applyLightboxPlayButton=function(e,t){if(1===e.pb){var n=v("play-button","button",t);1===n.length&&(n[0].style.display="block",n[0].style.backgroundColor="#"+e.pbc)}};var Y=function(e,t){return'
'},ee=function(e){var t=document.createElement("script");return t.type="application/ld+json",t.text=JSON.stringify(e),t},et=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1&&this._callbackStore[e].splice(r,1)}else this._callbackStore[e]=[]}},e.prototype.ready=function(){return this._ready},e.prototype.play=function(){this._message({event:"play"})},e.prototype.pause=function(){this._message({event:"pause"})},e.prototype.resume=function(){this._message({event:"resume"})},e.prototype.seek=function(e){this._message({event:"seek",position:e})},e.prototype.setVolume=function(e){this._message({event:"setVolume",newVolume:e})},e.prototype.setPlaybackSpeed=function(e){this._message({event:"setPlaybackSpeed",speed:e})},e.prototype.playChapter=function(e){this._message({chapter_index:e,event:"playChapter"})},e.prototype.setAudioTrack=function(e){this._message({audioTrackId:e,event:"setAudioTrack"})},e.prototype.enableCaption=function(e,t){this._message({event:"enableCaption",label:e,language:t})},e.prototype.disableCaption=function(e,t){this._message({event:"disableCaption",label:e,language:t})},e.prototype.consentToGDPR=function(e){this._message({consent:e,event:"consentToGDPR"})},e.prototype.createCta=function(e){this._message({attributes:m({display_once:!1,duration:10,fullscreen:!1,html:"",opacity:1,start:0,width:300},e),event:"createCta"})},e.prototype.updateCta=function(e,t){this._message({attributes:t,event:"updateCta",id:e})},e.prototype.addEvent=function(e){var t=e.start,n=e.duration,r=e.chapterIndex,i=e.eventId;if(!i){g("Missing arguments. Need eventId");return}this._message({chapterIndex:void 0===r?0:r,duration:void 0===n?1:n,event:"addEvent",id:i,start:void 0===t?0:t})},e.prototype.getCurrentChapter=function(){return null===this.status?null:this.status.chapterIndex},e.prototype.currentTime=function(){return null===this.status?null:this.status.currentTime},e.prototype.scrubbing=function(){return null===this.status?null:this.status.scrubbing},e.prototype.toggleFullscreen=function(){this._message({event:"toggleFullscreen"})},e.prototype.resetPlayer=function(){this._message({event:"resetPlayer"})},e.prototype._message=function(e){if(!0!==this.ready()){g("Player is not ready yet! No messages can be recieved.","error");return}P(et({},e,{uuid:this.uuid}),"https://"+T(),this.iframe)},e.prototype._updateStatus=function(e){if("object"==typeof e.status&&(this.status=e.status),"object"==typeof e.metadata&&(this.metadata=e.metadata),this.status){if(this.status.currentTime!==this._previousTime&&this._callbackStore.timeupdate)for(var t=0,n=this._callbackStore.timeupdate;tt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&(n[r[i]]=e[r[i]]);return n},eu=function(e){if(!e)return c.reject(Error(el.errors.placeholder));var t=_(e),n=t.width,r=t.height,i=e.getAttribute("data-uuid");return""===e.src||!i||e.complete&&(0===n||0===r)?c.reject(Error(el.errors.placeholder)):e.complete?c.resolve(e):new c(function(t,n){e.onload=function(){return t(e)},e.onerror=function(){return n(e)}})},ed=function(e){void 0===e&&(e={});var t=e.uuid,n=e.container,r=e.type,i=(e.aspect,ec(e,["uuid","container","type","aspect"]));if(t&&n){W.setLevel("placeholder")("creating placeholder image");var o=document.createElement("img"),a=i.width?i.width+"px":"100%",s=i.height?i.height+"px":"100%";return o.src="//"+T()+"/"+t+".jpg",o.className="vidyard-player-embed",o.setAttribute("style","\n display: block;\n margin: 0 auto;\n max-height: "+s+";\n max-width: "+a+";\n opacity: 0;\n "),o.setAttribute("data-uuid",t),o.setAttribute("data-type",void 0===r?"inline":r),Object.keys(i).forEach(function(e){return o.setAttribute("data-"+e,i[e])}),n.appendChild(o)}},ep=function(e){W.setLevel("placeholder")("rendering player from placeholder image");var t=er(e);return new c(function(e){return t.on("ready",function(){return e(t)})})},ef={_debug:{logger:W,getPlaybackURL:T,setPlaybackURL:S,version:E},api:{GDPR:{consent:function(e){if(void 0!==e)for(var t=window.VidyardV4.players,n=function(t){t.on("ready",function(){t.consentToGDPR(e)})},r=0;r=0&&f.splice(t,1)}function b(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),x(t,e.attrs),y(e,t),t}function x(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function w(e,t){if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var n,r,i,o,a,s=p++;r=_.bind(null,n=d||(d=b(t)),s,!1),i=_.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(a=document.createElement("link"),void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",x(a,t.attrs),y(t,a),r=N.bind(null,n=a,t),i=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(r=k.bind(null,n=b(t)),i=function(){g(n)});return r(e),function(t){t?(t.css!==e.css||t.media!==e.media||t.sourceMap!==e.sourceMap)&&r(e=t):i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=l()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=v(e,t);return m(n,t),function(e){for(var r=[],i=0;i1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(14),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(0))}])},1705:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return K},default:function(){return Y}});var r=n(5893),i=n(1479),o=n(4693),a=n(7294),s=n(4184),l=n.n(s),c=n(9372),u=n(3751),d=n(8519),p=n(1664),f=n.n(p),h=n(1158),m=n(3087),v=n(6440),y=n(5929),g=n(4145),b=n.n(g),x=n(2724),w=n(1794),j=n(9141),_=n(2481);function k(e){let{type:t}=e;switch(t){case"info":return(0,r.jsx)(x.Z,{className:b().icon});case"success":return(0,r.jsx)(w.Z,{className:b().icon});case"warning":return(0,r.jsx)(j.Z,{className:b().icon});case"danger":return(0,r.jsx)(_.Z,{className:b().icon})}}var N=n(9055);(void 0!==n.g?n.g:window).Prism=N.p1;let C=()=>(0,r.jsxs)("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",children:[(0,r.jsx)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,r.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",fill:"currentColor"})]}),E={};E=n(7275);class O extends a.Component{componentDidMount(){this.container&&(this.props.playbackUrl&&E._debug.setPlaybackURL(this.props.playbackUrl),E.api.renderPlayer(Object.assign({aspect:this.props.aspect,container:this.container,height:this.props.maxHeight,type:this.props.type,uuid:this.props.uuid,width:this.props.maxWidth},this.props.params)).then(e=>{this.player=e,"function"==typeof this.props.api&&this.props.api(e,E.api)}).catch(e=>{this.setState({hasError:!0}),console.warn(e.message)}))}componentWillUnmount(){this.player&&E.api.destroyPlayer(this.player)}render(){return(0,r.jsx)("div",{ref:this.handleContainerRef})}constructor(){super(...arguments),this.state={hasError:!1},this.handleContainerRef=e=>{e&&(this.container=e)}}}function I(e){let{id:t,children:n,...i}=e;return(0,r.jsxs)(h.Z,{...i,className:"relative",children:[(0,r.jsx)("span",{id:t,className:"absolute -top-32"}),n]})}var S=n(5675),T=n.n(S),L=n(8892),P=n(3935),V=n(8122),A=n(2668);function R(e){let{className:t,open:n,onClose:i,children:o}=e;return(0,a.useEffect)(()=>{n?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden")},[n]),n?(0,P.createPortal)((0,r.jsxs)("div",{className:"fixed top-0 bottom-0 left-0 right-0 z-50 flex items-center justify-center",children:[(0,r.jsx)("div",{className:"absolute top-0 bottom-0 left-0 right-0 bg-black/50 backdrop-blur-sm",onClick:i}),(0,r.jsx)("button",{className:"absolute top-6 right-6 z-10",onClick:i,children:(0,r.jsx)(V.Z,{className:"w-6 h-6 rotate-45 cursor-pointer transition-transform hover:scale-150"})}),(0,r.jsx)("div",{className:(0,A.m6)("relative",t),children:o})]}),document.body):null}let U={a:e=>{let{href:t,children:n}=e;return(0,r.jsx)(f(),{href:t,children:n})},img:function(e){let{src:t,alt:n,width:i=400,height:o=400}=e,[s,l]=(0,a.useState)(!1),[c,u]=(0,a.useState)(!1);(0,a.useEffect)(()=>{u(!0)},[]);let d=()=>l(!s);return c?(0,r.jsxs)("figure",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,r.jsx)(T(),{className:"cursor-zoom-in",onClick:d,src:(0,L.w)(t),style:{objectFit:"contain",position:"relative"},alt:n,width:i,height:o,quality:90}),n&&(0,r.jsx)("figcaption",{style:{color:"lightgray",fontStyle:"italic"},children:n}),(0,r.jsx)(R,{open:s,onClose:d,className:"max-w-[90%]",children:(0,r.jsx)(T(),{className:"cursor-zoom-out",onClick:d,src:(0,L.w)(t),alt:n,width:i,height:o,style:{maxWidth:"100vw",maxHeight:"100vh",objectFit:"contain"},quality:100})})]}):null},h1:e=>{let{children:t,...n}=e;return(0,r.jsx)(I,{size:"h1",...n,children:t})},h2:e=>{let{children:t,...n}=e;return(0,r.jsx)(I,{size:"h2",...n,children:t})},h3:e=>{let{children:t,...n}=e;return(0,r.jsx)(I,{size:"h3",...n,children:t})},h4:e=>{let{children:t,...n}=e;return(0,r.jsx)(I,{size:"h4",...n,children:t})},h5:e=>{let{children:t,...n}=e;return(0,r.jsx)(I,{size:"h5",...n,children:t})},h6:e=>{let{children:t,...n}=e;return(0,r.jsx)(I,{size:"h6",...n,children:t})},table:e=>{let{children:t,...n}=e;return(0,r.jsx)("table",{style:{width:"100%",tableLayout:"fixed",wordWrap:"break-word"},...n,children:t})},Callout:function(e){let{title:t,type:n,children:i}=e,o=l()(b().callout,{[b()["callout--".concat(n)]]:n});return(0,r.jsxs)("div",{className:o,children:[(0,r.jsxs)("h3",{className:b().title,children:[(0,r.jsx)(k,{type:n}),t]}),(0,r.jsx)("div",{className:b().content,children:i})]})},Video:function(e){let{vidyardUuid:t}=e;return(0,r.jsx)(O,{uuid:t})},code:function(e){let{children:t,className:n}=e,[i,o]=(0,a.useState)(!1),s=null==n?void 0:n.replace(/language-/,""),l=a.Children.toArray(t).every(e=>"string"==typeof e&&!e.includes("\n"));return((0,a.useEffect)(()=>{o(!0)},[]),l)?(0,r.jsx)("code",{className:"px-1.5 py-1 rounded not-prose bg-[var(--tw-prose-invert-pre-bg)] whitespace-break-spaces text-[85%] text-emerald-600",children:t}):i&&s?(0,r.jsxs)("div",{className:"p-0 pr-8 relative -my-3 -mx-4",children:[(0,r.jsx)("button",{className:"absolute right-2 z-10 top-2 opacity-60 hover:opacity-100 transition-opacity cursor-pointer text-white p-1",title:"Copy code block",onClick:()=>{navigator.clipboard&&navigator.clipboard.writeText(t)},children:(0,r.jsx)(C,{})}),(0,r.jsx)("div",{className:"overflow-auto px-4 py-3",children:(0,r.jsx)(N.y$,{prism:N.p1,theme:N.np.vsDark,code:t.trimEnd(),language:s,children:e=>{let{className:t,style:n,tokens:i,getLineProps:o,getTokenProps:a}=e;return(0,r.jsx)("code",{className:"".concat(t," relative"),style:n,children:i.map((e,t)=>(0,r.jsx)("div",{...o({line:e,key:t}),children:e.map((e,t)=>(0,r.jsx)("span",{...a({token:e,key:t})},t))},t))})}})})]}):(0,r.jsx)("code",{children:t.trimEnd()})}};function M(e){let{markdown:t,className:n}=e,i=(0,y.z)(t);return(0,r.jsx)("div",{className:n,children:(0,r.jsx)(i,{components:U})})}var z=n(4768);function F(e){let{title:t,url:n}=e,i="".concat("https://www.elastic.co/security-labs").concat(n),o=[{label:"Twitter",icon:(0,r.jsx)(z.Zm,{}),url:"https://twitter.com/intent/tweet?text=".concat(t,"&url=").concat(i)},{label:"Facebook",icon:(0,r.jsx)(z.Vq,{}),url:"https://www.facebook.com/sharer/sharer.php?u=".concat(i)},{label:"LinkedIn",icon:(0,r.jsx)(z.nI,{}),url:"https://www.linkedin.com/shareArticle?mini=true&url=".concat(i,"&title=").concat(t)},{label:"Reddit",icon:(0,r.jsx)(z.MP,{}),url:"https://reddit.com/submit?url=".concat(i,"&title=").concat(t)}];return(0,r.jsxs)(v.Z,{className:"my-5 md:my-10 max-w-3xl mx-auto flex flex-col items-center shadow-2xl",size:"small",children:[(0,r.jsx)(h.Z,{size:"h4",children:"Share this article"}),(0,r.jsx)("div",{className:"flex flex-wrap items-center justify-center mt-4 space-x-4",children:o.map(e=>{let{label:t,icon:n,url:i}=e;return(0,r.jsxs)("a",{className:"flex items-center space-x-2 button",href:i,target:"_blank",rel:"noopener noreferrer","aria-label":"Share this article on ".concat(t),title:"Share this article on ".concat(t),children:[n,(0,r.jsx)("span",{children:t})]},t)})})]})}function B(e){let{children:t}=e;return(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,c.Ui)(t)}})}var D=n(9332);function q(e){let{children:t,className:n}=e,i=l()("flex flex-col space-y-2",n);return(0,r.jsx)("ul",{className:i,children:t})}var Z=n(7306);function H(e){let{label:t,href:n,level:i,className:o,active:a}=e,s=l()("flex items-center space-x-1 hover:text-white",{"text-white font-medium bg-black/20":a,"ml-4":1===i,"ml-8":2===i,"ml-12":3===i,"ml-16":i>=4},o);return(0,r.jsxs)(f(),{href:n,className:s,children:[a&&(0,r.jsx)(Z.Z,{className:"w-3 h-3 opacity-75"}),(0,r.jsx)(B,{children:t})]})}var W=n(2380);function $(e){let{headings:t}=e,[n,i]=(0,a.useState)(10),o=()=>{ne.level));return 0===t.length?null:(0,r.jsxs)("div",{className:"toc",children:[(0,r.jsx)(h.Z,{size:"h4",className:"mb-3",children:"Jump to section"}),(0,r.jsx)(q,{children:t.slice(0,n).map(e=>{let{title:t,href:n,level:i}=e;return(0,r.jsx)("li",{children:(0,r.jsx)(H,{href:n,label:t,level:i-s})},n)})}),t.length>10&&(0,r.jsx)("button",{className:"border-t border-white/20 w-full mt-3 py-2 flex items-center space-x-1 text-xs font-medium uppercase tracking-wide hover:text-white",onClick:()=>o(),children:n{let{title:n,url:o}=e;return(0,r.jsx)("li",{children:(0,r.jsx)(H,{href:o,label:n,active:i===o,level:0})},"series-article-".concat(t))})})]})}),(0,r.jsxs)(v.Z,{size:"small",children:[(0,r.jsx)(h.Z,{size:"h4",className:"mb-3",children:"Elastic Security Labs\xa0Newsletter"}),(0,r.jsx)("div",{children:(0,r.jsx)(f(),{href:"https://www.elastic.co/elastic-security-labs/newsletter?utm_source=security-labs",target:"_blank",className:"button inline-flex",children:"Sign Up"})})]})]})}var J=n(8747);function Q(e){let{articles:t}=e,n=(0,D.usePathname)(),i=t.findIndex(e=>e.url===n),o=t[i-1]||null,a=t[i+1]||null,s="whitespace-nowrap flex items-center space-x-1",l="hover:text-white font-medium";return(0,r.jsx)("nav",{children:(0,r.jsxs)("ul",{className:"flex items-center text-sm",children:[o&&(0,r.jsxs)("li",{className:s,children:[(0,r.jsx)(J.Z,{className:"w-4 h-4 opacity-75"}),(0,r.jsx)(f(),{href:o.url,className:l,children:o.title})]}),a&&(0,r.jsxs)("li",{className:"".concat(s," ml-auto"),children:[(0,r.jsx)(f(),{href:a.url,className:l,children:a.title}),(0,r.jsx)(Z.Z,{className:"w-4 h-4 opacity-75"})]})]})})}function X(e){let{article:t,seriesArticles:n,className:i}=e,{title:o,description:s,subtitle:p,image:y,date:g,url:b,author:x,category:w,readingTime:j,headings:_,slug:k}=t,N=l()("px-4",i);return(0,r.jsxs)("article",{className:N,children:[(0,r.jsxs)("div",{className:"max-w-7xl mx-auto relative z-10 flex flex-col space-y-4",children:[(0,r.jsxs)("div",{className:"eyebrow break-words",children:[(0,r.jsx)("time",{className:"block mb-2 md:mb-0 md:inline-block article-published-date",dateTime:new Date(g).toISOString(),suppressHydrationWarning:!0,children:(0,c.PT)(g)}),(0,r.jsx)("span",{className:"hidden md:inline-block md:mx-2",children:"•"}),x.map((e,t)=>(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)(f(),{className:"hover:text-blue-400 text-xs md:text-sm whitespace-nowrap author-name",href:"/author/".concat(e.slug),children:e.title}),t(0,r.jsxs)("span",{children:[(0,r.jsx)(f(),{className:"hover:text-blue-400 whitespace-nowrap",href:"/category/".concat(e.slug),children:e.title},t),t0}),children:[(0,r.jsx)("div",{className:l()("flex justify-center",{"lg:col-span-3":_.length>0}),children:(0,r.jsx)("div",{className:"prose lg:prose-lg prose-invert w-full article-content",children:(0,r.jsx)(M,{markdown:t.body.code})})}),_.length>0&&(0,r.jsx)("div",{className:"hidden lg:flex lg:col-span-1 text-sm lg:flex-col lg:space-y-6",children:(0,r.jsx)(G,{headings:_,articles:n})})]}),n&&(0,r.jsx)("div",{className:"max-w-5xl mx-auto mt-12 border-t border-white/25 pt-8",children:(0,r.jsx)(Q,{articles:n})}),(0,r.jsx)(F,{url:b,title:o})]})}var K=!0;function Y(e){let{article:t,seriesArticles:n}=e,{title:a,description:s,imageUrl:l}=t;return(0,r.jsxs)(i.Z,{title:a,description:s,image:l,showScrollIndicator:!0,children:[(0,r.jsx)(o.Z,{homepage:!1}),(0,r.jsx)(X,{article:t,seriesArticles:n})]})}},9372:function(e,t,n){"use strict";function r(e){return new Date(e).toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"})}function i(e){return e.map(e=>e.title).join(", ")}function o(e){return e.replace(/^(.*)\s(.*)$/,"$1 $2").replace(/-/g,"- ")}n.d(t,{NI:function(){return i},PT:function(){return r},Ui:function(){return o}})},4145:function(e){e.exports={callout:"Callout_callout__LhCp9","callout--info":"Callout_callout--info__GBplt","callout--success":"Callout_callout--success__3537x","callout--warning":"Callout_callout--warning__KfvBp","callout--danger":"Callout_callout--danger__u_1EX",title:"Callout_title__biZzN",icon:"Callout_icon__p_0Jc",content:"Callout_content__yOfyC"}}},function(e){e.O(0,[714,877,511,683,402,616,774,888,179],function(){return e(e.s=1587)}),_N_E=e.O()}]);