PageSourceSearch

https://www.julianhosp.com/_next/static/chunks/317.576c15ad081adedf.js

js julianhosp.com collected 2026-09-24 20:22:35 UTC 4,790 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[317],{10317:function(e,t,a){a.r(t),a.d(t,{SSAParser:function(){return p},default:function(){return b}});var s=a(51037);let i=/^Format:[\s\t]*/,l=/^Style:[\s\t]*/,r=/^Dialogue:[\s\t]*/,n=/[\s\t]*,[\s\t]*/,c=/\{[^}]+\}/g,o=/\\N/g,h=/^\[(.*)[\s\t]?Styles\]$/,u=/^\[(.*)[\s\t]?Events\]$/;class p{async init(e){this.f=e,e.errors&&(this.d=(await a.e(4058).then(a.bind(a,84058))).ParseErrorBuilder)}parse(e,t){if(this.P){var a,s;switch(this.P){case 1:if(""===e)this.P=0;else if(l.test(e)){if(this.O){let t=e.replace(l,"").split(n);this.T(t)}else this.e(null===(a=this.d)||void 0===a?void 0:a.N("Style",t))}else i.test(e)?this.O=e.replace(i,"").split(n):u.test(e)&&(this.O=null,this.P=2);break;case 2:if(""===e)this.R();else if(r.test(e)){if(this.R(),this.O){let a=e.replace(r,"").split(n),s=this.U(a,t);s&&(this.a=s)}else this.e(null===(s=this.d)||void 0===s?void 0:s.N("Dialogue",t))}else this.a?this.a.text+="\n"+e.replace(c,"").replace(o,"\n"):i.test(e)?this.O=e.replace(i,"").split(n):h.test(e)?(this.O=null,this.P=1):u.test(e)&&(this.O=null)}}else""===e||(h.test(e)?(this.O=null,this.P=1):u.test(e)&&(this.O=null,this.P=2))}done(){return{metadata:{},cues:this.j,regions:[],errors:this.k}}R(){var e,t;this.a&&(this.j.push(this.a),null===(e=(t=this.f).onCue)||void 0===e||e.call(t,this.a),this.a=null)}T(e){let t="Default",a={},s,i="center",l="bottom",r,n=1.2,c,o,h=3,u=[];for(let p=0;p<this.O.length;p++){let f=this.O[p],b=e[p];switch(f){case"Name":t=b;break;case"Fontname":a["font-family"]=b;break;case"Fontsize":a["font-size"]="calc(".concat(b," / var(--overlay-height))");break;case"PrimaryColour":let g=d(b);g&&(a["--cue-color"]=g);break;case"BorderStyle":h=parseInt(b,10);break;case"BackColour":o=d(b);break;case"OutlineColour":let k=d(b);k&&(c=k);break;case"Bold":parseInt(b)&&(a["font-weight"]="bold");break;case"Italic":parseInt(b)&&(a["font-style"]="italic");break;case"Underline":parseInt(b)&&(a["text-decoration"]="underline");break;case"StrikeOut":parseInt(b)&&(a["text-decoration"]="line-through");break;case"Spacing":a["letter-spacing"]=b+"px";break;case"AlphaLevel":a.opacity=parseFloat(b);break;case"ScaleX":u.push("scaleX(".concat(parseFloat(b)/100,")"));break;case"ScaleY":u.push("scaleY(".concat(parseFloat(b)/100,")"));break;case"Angle":u.push("rotate(".concat(b,"deg)"));break;case"Shadow":n=1.2*parseInt(b,10);break;case"MarginL":a["--cue-width"]="auto",a["--cue-left"]=parseFloat(b)+"px";break;case"MarginR":a["--cue-width"]="auto",a["--cue-right"]=parseFloat(b)+"px";break;case"MarginV":r=parseFloat(b);break;case"Outline":s=parseInt(b,10);break;case"Alignment":let v=parseInt(b,10);switch(v>=4&&(l=v>=7?"top":"center"),v%3){case 1:i="start";break;case 2:i="center";break;case 3:i="end"}}}if(a.S=l,a["--cue-white-space"]="normal",a["--cue-line-height"]="normal",a["--cue-text-align"]=i,"center"===l?(a["--cue-top"]="50%",u.push("translateY(-50%)")):a["--cue-".concat(l)]=(r||0)+"px",1===h&&(a["--cue-padding-y"]="0"),(1===h||o)&&(a["--cue-bg-color"]=1===h?"none":o),3===h&&c&&(a["--cue-outline"]="".concat(s,"px solid ").concat(c)),1===h&&"number"==typeof s){let e=null!=o?o:"#000";a["--cue-text-shadow"]=[c&&f(1.2*s,1.2*n,c),c?f(s/2*s,s/2*n,e):f(s,n,e)].filter(Boolean).join(", ")}u.length&&(a["--cue-transform"]=u.join(" ")),this.Q[t]=a}U(e,t){let a=this.V(e),i=this.o(a.Start,a.End,t);if(!i)return;let l=new s.b(i[0],i[1],""),r={...this.Q[a.Style]||{}},n=a.Name?"<v ".concat(a.Name,">"):"",h=r.S,u=a.MarginL&&parseFloat(a.MarginL),p=a.MarginR&&parseFloat(a.MarginR),d=a.MarginV&&parseFloat(a.MarginV);return u&&(r["--cue-width"]="auto",r["--cue-left"]=u+"px"),p&&(r["--cue-width"]="auto",r["--cue-right"]=p+"px"),d&&"center"!==h&&(r["--cue-".concat(h)]=d+"px"),l.text=n+e.slice(this.O.length-1).join(", ").replace(c,"").replace(o,"\n"),delete r.S,Object.keys(r).length&&(l.style=r),l}V(e){let t={};for(let a=0;a<this.O.length;a++)t[this.O[a]]=e[a];return t}o(e,t,a){var i,l,r;let n=(0,s.p)(e),c=(0,s.p)(t);if(null!==n&&null!==c&&c>n)return[n,c];null===n&&this.e(null===(i=this.d)||void 0===i?void 0:i.q(e,a)),null===c&&this.e(null===(l=this.d)||void 0===l?void 0:l.r(t,a)),null!=n&&null!==c&&c>n&&this.e(null===(r=this.d)||void 0===r?void 0:r.s(n,c,a))}e(e){if(e){var t,a;if(this.k.push(e),this.f.strict)throw this.f.cancel(),e;null===(t=(a=this.f).onError)||void 0===t||t.call(a,e)}}constructor(){this.P=0,this.a=null,this.j=[],this.k=[],this.O=null,this.Q={}}}function d(e){let t=parseInt(e.replace("&H",""),16);return t>=0?"rgba("+[255&t,t>>8&255,t>>16&255,(t>>24&255^255)/255].join(",")+")":null}function f(e,t,a){let s=Math.ceil(2*Math.PI*e),i="";for(let l=0;l<s;l++){let r=2*Math.PI*l/s;i+=e*Math.cos(r)+"px "+t*Math.sin(r)+"px 0 "+a+(l==s-1?"":",")}return i}function b(){return new p}}}]);

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.