1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[370],{70370:function(t,e,i){i.r(e),i.d(e,{CaptionsRenderer:function(){return n.C},ParseError:function(){return n.P},ParseErrorCode:function(){return n.c},TextCue:function(){return n.T},VTTCue:function(){return n.b},VTTRegion:function(){return n.h},createVTTCueTemplate:function(){return n.i},parseByteStream:function(){return n.e},parseResponse:function(){return n.d},parseText:function(){return n.f},parseTextStream:function(){return n.g},parseVTTTimestamp:function(){return n.p},renderVTTCueString:function(){return n.r},renderVTTTokensString:function(){return n.j},tokenizeVTTCue:function(){return n.t},updateTimedVTTCueNodes:function(){return n.u}});var n=i(51037)},51037:function(t,e,i){i.d(e,{C:function(){return tl},P:function(){return r},T:function(){return d},V:function(){return S},a:function(){return L},b:function(){return g},c:function(){return n},d:function(){return c},e:function(){return u},f:function(){return a},g:function(){return h},h:function(){return m},i:function(){return Y},j:function(){return G},p:function(){return M},r:function(){return D},t:function(){return P},u:function(){return $}});let n={LoadFail:0,BadSignature:1,BadTimestamp:2,BadSettingValue:3,BadFormat:4,UnknownSetting:5};class r extends Error{constructor(t){super(t.reason),this.code=t.code,this.line=t.line}}let s=/\r?\n|\r/gm;class l{constructor(t){let e=new o(t);this.writable=new WritableStream({write(t){e.transform(t)},close(){e.close()}}),this.readable=new ReadableStream({start(t){e.onLine=e=>t.enqueue(e),e.onClose=()=>t.close()}})}}class o{transform(t){this.x+=this.y.decode(t,{stream:!0});let e=this.x.split(s);this.x=e.pop()||"";for(let t=0;t<e.length;t++)this.onLine(e[t].trim())}close(){this.x&&this.onLine(this.x.trim()),this.x="",this.onClose()}constructor(t){this.x="",this.y=new TextDecoder(t)}}async function a(t,e){return h(new ReadableStream({start(e){for(let i of t.split(s))e.enqueue(i);e.close()}}),e)}async function h(t,e){var n;let r,s;let l=null!==(n=null==e?void 0:e.type)&&void 0!==n?n:"vtt";if("string"==typeof l)switch(l){case"srt":r=(await i.e(3755).then(i.bind(i,3755))).default;break;case"ssa":case"ass":r=(await i.e(317).then(i.bind(i,10317))).default;break;default:r=(await Promise.resolve().then(function(){return V})).default}else r=l;let o=t.getReader(),a=r(),h=!!(null==e?void 0:e.strict)||!!(null==e?void 0:e.errors);await a.init({strict:!1,...e,errors:h,type:l,cancel(){o.cancel(),s=a.done(!0)}});let c=1;for(;;){let{value:t,done:e}=await o.read();if(e){a.parse("",c),s=a.done(!1);break}a.parse(t,c),c++}return s}async function c(t,e){var i,n;let r=await t;if(!r.ok||!r.body)return{metadata:{},cues:[],regions:[],errors:[void 0]};let s=r.headers.get("content-type")||"",l=null===(i=s.match(/text\/(.*?)(?:;|$)/))||void 0===i?void 0:i[1],o=null===(n=s.match(/charset=(.*?)(?:;|$)/))||void 0===n?void 0:n[1];return u(r.body,{type:l,encoding:o,...e})}async function u(t){let{encoding:e="utf-8",...i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(t.pipeThrough(new l(e)),i)}class d extends EventTarget{addEventListener(t,e,i){super.addEventListener(t,e,i)}removeEventListener(t,e,i){super.removeEventListener(t,e,i)}constructor(t,e,i){super(),this.id="",this.pauseOnExit=!1,this.startTime=t,this.endTime=e,this.text=i}}let f="undefined"==typeof document,p=f?d:window.VTTCue;class g extends p{constructor(...t){super(...t),this.region=null,this.vertical="",this.snapToLines=!0,this.line="auto",this.lineAlign="start",this.position="auto",this.positionAlign="auto",this.size=100,this.align="center"}}class m{constructor(){this.id="",this.width=100,this.lines=3,this.regionAnchorX=0,this.regionAnchorY=100,this.viewportAnchorX=0,this.viewportAnchorY=100,this.scroll=""}}function v(t){let e=parseInt(t.replace("%",""),10);return!Number.isNaN(e)&&e>=0&&e<=100?e:null}function b(t){if(!t.includes(","))return null;let[e,i]=t.split(",").map(v);return null!==e&&null!==i?[e,i]:null}let w=/[:=]/,y=/^[\s\t]*(region|vertical|line|position|size|align)[:=]/,T=/^REGION:?[\s\t]+/,k=/[\s\t]+/,x=/[\s\t]*-->[\s\t]+/,A=/start|center|end|left|right/,C=/start|center|end/,E=/line-(?:left|right)|center|auto/,N=/^(?:(\d{1,2}):)?(\d{2}):(\d{2})(?:\.(\d{1,3}))?$/;var j,L=((j=L||{})[j.None=0]="None",j[j.Header=1]="Header",j[j.Cue=2]="Cue",j[j.Region=3]="Region",j[j.Note=4]="Note",j);class S{async init(t){this.f=t,t.strict&&(this.c=1),t.errors&&(this.d=(await i.e(4058).then(i.bind(i,84058))).ParseErrorBuilder)}parse(t,e){if(""===t){var i,n,r,s,l,o;this.a?(this.j.push(this.a),null===(i=(n=this.f).onCue)||void 0===i||i.call(n,this.a),this.a=null):this.b?(this.h[this.b.id]=this.b,null===(r=(s=this.f).onRegion)||void 0===r||r.call(s,this.b),this.b=null):1===this.c&&(this.i(t,e),null===(l=(o=this.f).onHeaderMetadata)||void 0===l||l.call(o,this.g)),this.c=0}else if(this.c)switch(this.c){case 1:this.i(t,e);break;case 2:if(this.a){let i=this.a.text.length>0;!i&&y.test(t)?this.m(t.split(k),e):this.a.text+=(i?"\n":"")+t}break;case 3:this.n(t.split(k),e)}else if(t.startsWith("NOTE"))this.c=4;else if(t.startsWith("REGION"))this.c=3,this.b=new m,this.n(t.replace(T,"").split(k),e);else if(t.includes("-->")){let i=this.o(t,e);i&&(this.a=new g(i[0],i[1],""),this.a.id=this.l,this.m(i[2],e)),this.c=2}else 1===e&&this.i(t,e);this.l=t}done(){return{metadata:this.g,cues:this.j,regions:Object.values(this.h),errors:this.k}}i(t,e){if(e>1){if(w.test(t)){let[e,i]=t.split(w);e&&(this.g[e]=(i||"").replace(k,""))}}else if(t.startsWith("WEBVTT"))this.c=1;else{var i;this.e(null===(i=this.d)||void 0===i?void 0:i.p())}}o(t,e){var i,n,r;let[s,l=""]=t.split(x),[o,...a]=l.split(k),h=M(s),c=M(o);if(null!==h&&null!==c&&c>h)return[h,c,a];null===h&&this.e(null===(i=this.d)||void 0===i?void 0:i.q(s,e)),null===c&&this.e(null===(n=this.d)||void 0===n?void 0:n.r(o,e)),null!=h&&null!==c&&c>h&&this.e(null===(r=this.d)||void 0===r?void 0:r.s(h,c,e))}n(t,e){let i;for(let s=0;s<t.length;s++)if(w.test(t[s])){var n,r;i=!1;let[l,o]=t[s].split(w);switch(l){case"id":this.b.id=o;break;case"width":let a=v(o);null!==a?this.b.width=a:i=!0;break;case"lines":let h=function(t){let e=parseInt(t,10);return Number.isNaN(e)?null:e}(o);null!==h?this.b.lines=h:i=!0;break;case"regionanchor":let c=b(o);null!==c?(this.b.regionAnchorX=c[0],this.b.regionAnchorY=c[1]):i=!0;break;case"viewportanchor":let u=b(o);null!==u?(this.b.viewportAnchorX=u[0],this.b.viewportAnchorY=u[1]):i=!0;break;case"scroll":"up"===o?this.b.scroll="up":i=!0;break;default:this.e(null===(n=this.d)||void 0===n?void 0:n.t(l,o,e))}i&&this.e(null===(r=this.d)||void 0===r?void 0:r.u(l,o,e))}}m(t,e){let i;for(let s=0;s<t.length;s++)if(i=!1,w.test(t[s])){var n,r;let[l,o]=t[s].split(w);switch(l){case"region":let a=this.h[o];a&&(this.a.region=a);break;
1case"vertical":"lr"===o||"rl"===o?(this.a.vertical=o,this.a.region=null):i=!0;break;case"line":let[h,c]=o.split(",");if(h.includes("%")){let t=v(h);null!==t?(this.a.line=t,this.a.snapToLines=!1):i=!0}else{let t=function(t){let e=parseFloat(t);return Number.isNaN(e)?null:e}(h);null!==t?this.a.line=t:i=!0}C.test(c)?this.a.lineAlign=c:c&&(i=!0),"auto"!==this.a.line&&(this.a.region=null);break;case"position":let[u,d]=o.split(","),f=v(u);null!==f?this.a.position=f:i=!0,d&&E.test(d)?this.a.positionAlign=d:d&&(i=!0);break;case"size":let p=v(o);null!==p?(this.a.size=p,p<100&&(this.a.region=null)):i=!0;break;case"align":A.test(o)?this.a.align=o:i=!0;break;default:this.e(null===(n=this.d)||void 0===n?void 0:n.v(l,o,e))}i&&this.e(null===(r=this.d)||void 0===r?void 0:r.w(l,o,e))}}e(t){if(t){var e,i;if(this.k.push(t),this.f.strict)throw this.f.cancel(),t;null===(e=(i=this.f).onError)||void 0===e||e.call(i,t)}}constructor(){this.c=0,this.g={},this.h={},this.j=[],this.a=null,this.b=null,this.k=[],this.l=""}}function M(t){let e=t.match(N);if(!e)return null;let i=e[1]?parseInt(e[1],10):0,n=parseInt(e[2],10),r=parseInt(e[3],10),s=e[4]?parseInt(e[4].padEnd(3,"0"),10):0;return i<0||n<0||r<0||s<0||n>59||r>59?null:3600*i+60*n+r+s/1e3}var V=Object.freeze({__proto__:null,VTTBlock:L,VTTParser:S,default:function(){return new S},parseVTTTimestamp:M});let z=/[0-9]/,B=/[\s\t]+/,H={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span",timestamp:"span"},R={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":"\xa0","‎":"â","‏":"â"},F=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,I=new Set(["white","lime","cyan","red","yellow","magenta","blue","black"]),O=new Set(Object.keys(H));function P(t){let e="",i=1,n=[],r=[],s;for(let n=0;n<t.text.length;n++){let u=t.text[n];switch(i){case 1:"<"===u?(c(),i=2):e+=u;break;case 2:switch(u){case"\n":case" ":case" ":a(),i=4;break;case".":a(),i=3;break;case"/":i=5;break;case">":a(),i=1;break;default:!e&&z.test(u)&&(i=6),e+=u}break;case 3:var l,o;switch(u){case" ":case" ":case"\n":h(),s&&(null===(l=s.class)||void 0===l||l.trim()),i=4;break;case".":h();break;case">":h(),s&&(null===(o=s.class)||void 0===o||o.trim()),i=1;break;default:e+=u}break;case 4:">"===u?(e=e.replace(B," "),(null==s?void 0:s.type)==="v"?s.voice=_(e):(null==s?void 0:s.type)==="lang"&&(s.lang=_(e)),e="",i=1):e+=u;break;case 5:">"===u&&(e="",s=r.pop(),i=1);break;case 6:if(">"===u){let n=M(e);null!==n&&n>=t.startTime&&n<=t.endTime&&(e="timestamp",a(),s.time=n),e="",i=1}else e+=u}}function a(){if(O.has(e)){var t;let i=s;s={tagName:H[t=e],type:t,children:[]},i?(r[r.length-1]!==i&&r.push(i),i.children.push(s)):n.push(s)}e="",i=1}function h(){if(s&&e){let t=e.replace("bg_","");I.has(t)?s[e.startsWith("bg_")?"bgColor":"color"]=t:s.class=s.class?s.class+" "+e:e}e=""}function c(){if(!e)return;let t={type:"text",data:_(e)};s?s.children.push(t):n.push(t),e=""}return 1===i&&c(),n}function _(t){return t.replace(F,t=>R[t]||"'")}function W(t,e,i){t.style.setProperty("--".concat(e),i+"")}function q(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];t.setAttribute("data-".concat(e),!0===i?"":i+"")}function X(t,e){t.setAttribute("data-part",e)}function Y(t){if(f)throw Error("[media-captions] called `createVTTCueTemplate` on the server - use `renderVTTCueString`");let e=document.createElement("template");return e.innerHTML=D(t),{cue:t,content:e.content}}function D(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return G(P(t),e)}function G(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i,n="";for(let r of t)if("text"===r.type)n+=r.data;else{let t="timestamp"===r.type;(i={}).class=r.class,i.title="v"===r.type&&r.voice,i.lang="lang"===r.type&&r.lang,i["data-part"]="v"===r.type&&"voice",t&&(i["data-part"]="timed",i["data-time"]=r.time,i["data-future"]=r.time>e,i["data-past"]=r.time<e),i.style="".concat(r.color?"color: ".concat(r.color,";"):"").concat(r.bgColor?"background-color: ".concat(r.bgColor,";"):"");let s=Object.entries(i).filter(t=>t[1]).map(t=>"".concat(t[0],'="').concat(!0===t[1]?"":t[1],'"')).join(" ");n+="<".concat(r.tagName).concat(s?" "+s:"",">").concat(G(r.children),"</").concat(r.tagName,">")}return n}function $(t,e){if(!f)for(let i of t.querySelectorAll('[data-part="timed"]')){let t=Number(i.getAttribute("data-time"));Number.isNaN(t)||(t>
1e?q(i,"future"):i.removeAttribute("data-future"),t<e?q(i,"past"):i.removeAttribute("data-past"))}}let J=Symbol(0);function K(t){return t instanceof HTMLElement?{top:t.offsetTop,width:t.clientWidth,height:t.clientHeight,left:t.offsetLeft,right:t.offsetLeft+t.clientWidth,bottom:t.offsetTop+t.clientHeight}:{...t}}function U(t,e,i){switch(e){case"+x":t.left+=i,t.right+=i;break;case"-x":t.left-=i,t.right-=i;break;case"+y":t.top+=i,t.bottom+=i;break;case"-y":t.top-=i,t.bottom-=i}}function Q(t,e){return e.top>=0&&e.bottom<=t.height&&e.left>=0&&e.right<=t.width}function Z(t,e){return{top:e.top/t.height,left:e.left/t.width,right:(t.width-e.right)/t.width,bottom:(t.height-e.bottom)/t.height}}function tt(t,e){return e.top=e.top*t.height,e.left=e.left*t.width,e.right=t.width-e.right*t.width,e.bottom=t.height-e.bottom*t.height,e}let te=["top","left","right","bottom"];function ti(t,e,i,n){let r=Z(e,i);for(let e of te)W(t,"".concat(n,"-").concat(e),100*r[e]+"%")}function tn(t,e,i,n){let r=1,s,l={...e};for(let a=0;a<n.length;a++){for(var o;function(t,e,i){switch(i){case"+x":return e.left<0;case"-x":return e.right>t.width;case"+y":return e.top<0;case"-y":return e.bottom>t.height}}(t,e,n[a])||Q(t,e)&&function(t,e){for(let n=0;n<e.length;n++){var i;if(i=e[n],t.left<=i.right&&t.right>=i.left&&t.top<=i.bottom&&t.bottom>=i.top)return e[n]}return null}(e,i);)U(e,n[a],1);if(Q(t,e))return e;let h=(o=e,Math.max(0,Math.min(t.width,o.right)-Math.max(0,o.left))*Math.max(0,Math.min(t.height,o.bottom)-Math.max(0,o.top))/(t.height*t.width));r>h&&(s={...e},r=h),e={...l}}return s||l}let tr=Symbol(0),ts=["-y","+y","-x","+x"];class tl{get dir(){return this.C}set dir(t){this.C=t,q(this.overlay,"dir",t)}get currentTime(){return this.A}set currentTime(t){this.A=t,this.update()}changeTrack(t){let{regions:e,cues:i}=t;for(let t of(this.reset(),this.J(e),i))this.j.set(t,null);this.update()}addCue(t){this.j.set(t,null),this.update()}removeCue(t){this.j.delete(t),this.update()}update(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.H(t)}reset(){this.j.clear(),this.h.clear(),this.B=[],this.overlay.textContent=""}destroy(){this.reset(),this.E.disconnect()}I(){this.D=!0,this.K()}G(){this.z=K(this.overlay),W(this.overlay,"overlay-width",this.z.width+"px"),W(this.overlay,"overlay-height",this.z.height+"px")}H(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.j.size||this.D)return;let e,i=[...this.j.keys()].filter(t=>this.A>=t.startTime&&this.A<=t.endTime).sort((t,e)=>t.startTime!==e.startTime?t.startTime-e.startTime:t.endTime-e.endTime),n=i.map(t=>t.region);for(let r=0;r<this.B.length;r++){if(e=this.B[r],i[r]===e)continue;if(e.region&&!n.includes(e.region)){let i=this.h.get(e.region.id);i&&(i.removeAttribute("data-active"),t=!0)}let s=this.j.get(e);s&&(s.remove(),t=!0)}for(let n=0;n<i.length;n++){e=i[n];let r=this.j.get(e);r||this.j.set(e,r=this.L(e));let s=this.F(e)&&this.h.get(e.region.id);s&&!s.hasAttribute("data-active")&&(requestAnimationFrame(()=>q(s,"active")),t=!0),r.isConnected||((s||this.overlay).append(r),t=!0)}if(t){let t=[],n=new Set;for(let r=i.length-1;r>=0;r--){if(e=i[r],n.has(e.region||e))continue;let s=this.F(e),l=s?this.h.get(e.region.id):this.j.get(e);s?t.push(function(t,e,i,n){let r=Array.from(i.querySelectorAll('[data-part="cue-display"]')),s=0,l=Math.max(0,r.length-e.lines);for(let t=r.length-1;t>=l;t--)s+=r[t].offsetHeight;W(i,"region-height",s+"px"),i[J]||(i[J]=Z(t,K(i)));let o={...i[J]};return(o=tt(t,o)).width=i.clientWidth,o.height=s,o.right=o.left+o.width,o.bottom=o.top+s,o=tn(t,o,n,ts),ti(i,t,o,"region"),o}(this.z,e.region,l,t)):t.push(function(t,e,i,n){let r=i.firstElementChild,s="auto"===e.line?e.snapToLines?-1:100:e.line,l,o=[];if(i[J]||(i[J]=function(t,e){let i=K(e),n=function(t){let e={};for(let i of te)e[i]=parseFloat(t.style.getPropertyValue("--cue-".concat(i)));return e}(e);if(e[tr]=!1,n.top&&(i.top=n.top,i.bottom=n.top+i.height,e[tr]="top"),n.bottom){let r=t.height-n.bottom;i.top=r-i.height,i.bottom=r,e[tr]="bottom"}return n.left&&(i.left=n.left),n.right&&(i.right=t.width-n.right),Z(t,i)}(t,i)),l=tt(t,{...i[J]}),i[tr])o=["top"===i[tr]?"+y":"-y","+x","-x"];else if(e.snapToLines){let i;switch(e.vertical){case"":o=["+y","-y"],i="height";break;case"rl":o=["+x","-x"],i="width";break;case"lr":o=["-x","+x"],i="width"}let n=parseFloat(getComputedStyle(r).lineHeight)||0,a=n*Math.round(s),h=t[i]+n,c=o[0];Math.abs(a)>h&&(a=Math.ceil(h/n)*n*(a<0?-1:1)),s<0&&(a+=""===e.vertical?t.height:t.width,o=o.reverse()),U(l,c,a)}else{let i=""===e.vertical,n=i?"+y":"+x",r=i?l.height:l.width;
1U(l,n,(i?t.height:t.width)*s/100),U(l,n,"center"===e.lineAlign?r/2:"end"===e.lineAlign?r:0),o=i?["-y","+y","-x","+x"]:["-x","+x","-y","+y"]}return l=tn(t,l,n,o),ti(i,t,l,"cue"),l}(this.z,e,l,t)),n.add(s?e.region:e)}}$(this.overlay,this.A),this.B=i}J(t){if(t)for(let e of t){let t=this.M(e);this.h.set(e.id,t),this.overlay.append(t)}}M(t){let e=document.createElement("div");return X(e,"region"),q(e,"id",t.id),q(e,"scroll",t.scroll),W(e,"region-width",t.width+"%"),W(e,"region-anchor-x",t.regionAnchorX),W(e,"region-anchor-y",t.regionAnchorY),W(e,"region-viewport-anchor-x",t.viewportAnchorX),W(e,"region-viewport-anchor-y",t.viewportAnchorY),W(e,"region-lines",t.lines),e}L(t){let e=document.createElement("div"),i=function(t){if("auto"===t.position)switch(t.align){case"start":case"left":return 0;case"right":case"end":return 100;default:return 50}return t.position}(t),n=function(t,e){if("auto"===t.positionAlign)switch(t.align){case"start":return"ltr"===e?"line-left":"line-right";case"end":return"ltr"===e?"line-right":"line-left";case"center":return"center";default:return"line-".concat(t.align)}return t.positionAlign}(t,this.C);if(X(e,"cue-display"),""!==t.vertical&&q(e,"vertical"),W(e,"cue-text-align",t.align),t.style)for(let i of Object.keys(t.style))e.style.setProperty(i,t.style[i]);if(this.F(t))W(e,"cue-offset","".concat(i-("line-right"===n?100:"center"===n?50:0),"%"));else{var r;if(W(e,"cue-writing-mode",""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl"),!(null===(r=t.style)||void 0===r?void 0:r["--cue-width"])){let r=i;"line-left"===n?r=100-i:"center"===n&&i<=50?r=2*i:"center"===n&&i>50&&(r=(100-i)*2);let s=t.size<r?t.size:r;""===t.vertical?W(e,"cue-width",s+"%"):W(e,"cue-height",s+"%")}}let s=document.createElement("div");return X(s,"cue"),t.id&&q(s,"id",t.id),s.innerHTML=D(t),e.append(s),e}F(t){return t.region&&100===t.size&&""===t.vertical&&"auto"===t.line}constructor(t,e){var i;this.A=0,this.C="ltr",this.B=[],this.D=!1,this.h=new Map,this.j=new Map,this.K=function(t,e){let i=null,n;function r(){s(),t(...n),n=void 0}function s(){clearTimeout(i),i=null}return function(){n=[].slice.call(arguments),s(),i=setTimeout(r,50)}}(()=>{for(let t of(this.D=!1,this.G(),this.h.values()))t[J]=null;for(let t of this.j.values())t&&(t[J]=null);this.H(!0)},0),this.overlay=t,this.dir=null!==(i=null==e?void 0:e.dir)&&void 0!==i?i:"ltr",t.setAttribute("translate","yes"),t.setAttribute("aria-live","off"),t.setAttribute("aria-atomic","true"),X(t,"captions"),this.G(),this.E=new ResizeObserver(this.I.bind(this)),this.E.observe(t)}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.