1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b63bf754-dc6a-4d5f-ae3d-db8905a14f97",e._sentryDebugIdIdentifier="sentry-dbid-b63bf754-dc6a-4d5f-ae3d-db8905a14f97")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7780],{99497:function(e,t,n){n.d(t,{I:function(){return u},r:function(){return s}});var r=n(2265),o={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},l="undefined"!=typeof window&&void 0!==window.document?window.document:{},i="fullscreenEnabled"in l&&Object.keys(o)||"webkitFullscreenEnabled"in l&&["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]||"mozFullScreenEnabled"in l&&["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"]||"msFullscreenEnabled"in l&&["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]||[],a={requestFullscreen:function(e){return e[i[o.requestFullscreen]]()},requestFullscreenFunction:function(e){return e[i[o.requestFullscreen]]},get exitFullscreen(){return l[i[o.exitFullscreen]].bind(l)},get fullscreenPseudoClass(){return":"+i[o.fullscreen]},addEventListener:function(e,t,n){return l.addEventListener(i[o[e]],t,n)},removeEventListener:function(e,t,n){return l.removeEventListener(i[o[e]],t,n)},get fullscreenEnabled(){return!!l[i[o.fullscreenEnabled]]},set fullscreenEnabled(val){},get fullscreenElement(){return l[i[o.fullscreenElement]]},set fullscreenElement(val){},get onfullscreenchange(){return l[("on"+i[o.fullscreenchange]).toLowerCase()]},set onfullscreenchange(handler){return l[("on"+i[o.fullscreenchange]).toLowerCase()]=handler},get onfullscreenerror(){return l[("on"+i[o.fullscreenerror]).toLowerCase()]},set onfullscreenerror(handler){return l[("on"+i[o.fullscreenerror]).toLowerCase()]=handler}};function s(){var e=(0,r.useState)(!1),t=e[0],n=e[1],o=(0,r.useRef)(null);(0,r.useEffect)(function(){var e=function(){n(a.fullscreenElement===o.current)};return a.addEventListener("fullscreenchange",e),function(){return a.removeEventListener("fullscreenchange",e)}},[]);var l=(0,r.useCallback)(function(){return a.fullscreenElement?a.exitFullscreen().then(function(){return a.requestFullscreen(o.current)}):o.current?a.requestFullscreen(o.current):void 0},[]),i=(0,r.useCallback)(function(){return a.fullscreenElement===o.current?a.exitFullscreen():Promise.resolve()},[]);return(0,r.useMemo)(function(){return{active:t,enter:l,exit:i,node:o}},[t,l,i])}var u=function(e){var t=e.handle,n=e.onChange,o=e.children,l=e.className,i=[];return l&&i.push(l),i.push("fullscreen"),t.active&&i.push("fullscreen-enabled"),(0,r.useEffect)(function(){n&&n(t.active,t)},[t.active]),r.createElement("div",{className:i.join(" "),ref:t.node,style:t.active?{height:"100%",width:"100%"}:void 0},o)}},97928:function(e,t,n){n.d(t,{Z:function(){return s}});var r,o=n(5853),l=n(2265),i=function(e){void 0===e&&(e={});var t=(0,l.useState)(e),n=t[0],r=t[1];return[n,(0,l.useCallback)(function(e){r(function(t){return Object.assign({},t,e instanceof Function?e(t):e)})},[])]};function a(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}var s=(r="video",function(e){n=l.isValidElement(e)?(t=e).props:e;var t,n,s=i({buffered:[],time:0,duration:0,paused:!0,muted:!1,volume:1,playing:!1}),u=s[0],c=s[1],d=(0,l.useRef)(null),f=function(e,t){return function(n){try{t&&t(n)}finally{e&&e(n)}}},m=function(){return c({paused:!1})},p=function(){return c({playing:!0})},h=function(){return c({playing:!1})},x=function(){return c({paused:!0,playing:!1})},g=function(){var e=d.current;e&&c({muted:e.muted,volume:e.volume})},v=function(){var e=d.current;e&&c({duration:e.duration,buffered:a(e.buffered)})},b=function(){var e=d.current;e&&c({time:e.currentTime})},w=function(){var e=d.current;e&&c({buffered:a(e.buffered)})};
1t=t?l.cloneElement(t,(0,o.pi)((0,o.pi)({controls:!1},n),{ref:d,onPlay:f(n.onPlay,m),onPlaying:f(n.onPlaying,p),onWaiting:f(n.onWaiting,h),onPause:f(n.onPause,x),onVolumeChange:f(n.onVolumeChange,g),onDurationChange:f(n.onDurationChange,v),onTimeUpdate:f(n.onTimeUpdate,b),onProgress:f(n.onProgress,w)})):l.createElement(r,(0,o.pi)((0,o.pi)({controls:!1},n),{ref:d,onPlay:f(n.onPlay,m),onPlaying:f(n.onPlaying,p),onWaiting:f(n.onWaiting,h),onPause:f(n.onPause,x),onVolumeChange:f(n.onVolumeChange,g),onDurationChange:f(n.onDurationChange,v),onTimeUpdate:f(n.onTimeUpdate,b),onProgress:f(n.onProgress,w)}));var R=!1,E={play:function(){var e=d.current;if(e&&!R){var t=e.play();if("object"==typeof t){R=!0;var n=function(){R=!1};t.then(n,n)}return t}},pause:function(){var e=d.current;if(e&&!R)return e.pause()},seek:function(e){var t=d.current;t&&void 0!==u.duration&&(e=Math.min(u.duration,Math.max(0,e)),t.currentTime=e)},volume:function(e){var t=d.current;t&&(e=Math.min(1,Math.max(0,e)),t.volume=e,c({volume:e}))},mute:function(){var e=d.current;e&&(e.muted=!0)},unmute:function(){var e=d.current;e&&(e.muted=!1)}};return(0,l.useEffect)(function(){var e=d.current;e&&(c({volume:e.volume,muted:e.muted,paused:e.paused}),n.autoPlay&&e.paused&&E.play())},[n.src]),[t,u,E,d]})},57780:function(e,t,n){n.r(t),n.d(t,{default:function(){return y}});var r,o,l=n(57437),i=n(2265),a=n(62170),s=n(52614),u=n(97928),c=n(12381),d=n(7162),f=n(38846),m=n(93448),p=n(99497),h=n(33145),x=n(4182),g=n(12187);let v="CC_PREFERENCE",b="CC_ON",w="CC_OFF";(r=o||(o={})).ACTIVE_HOVER="ACTIVE_HOVER",r.INACTIVE="INACTIVE";var R=e=>{var t,n,r,o;let a=(0,p.r)(),s=(null!==(t=e.height)&&void 0!==t?t:g.zs)>=(null!==(n=e.width)&&void 0!==n?n:g.pJ),[R,E,y,S]=(0,u.Z)((0,l.jsx)("video",{className:"".concat(s?"h-full":"w-full"),children:(0,l.jsx)("source",{src:null==e?void 0:e.src,type:null==e?void 0:e.type})})),[T,j]=i.useState(!1),[C,I]=i.useState(!1),[_,N]=i.useState("INACTIVE"),[O,k]=i.useState(!1),M=(0,i.useMemo)(()=>{if(e.transcript){let t=e.transcript.find(e=>e.start/1e3<=E.time&&e.end/1e3>=E.time);return null==t?void 0:t.text}},[e.transcript,E.time]),[D,A]=(0,i.useState)(1),[L,P]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{S.current&&(S.current.playbackRate=D)},[D,S]),(0,i.useEffect)(()=>{let e=S.current;if(!e)return;let t=()=>k(!0),n=()=>k(!1);return e.addEventListener("waiting",t),e.addEventListener("canplay",n),()=>{e.removeEventListener("waiting",t),e.removeEventListener("canplay",n)}},[S]),(0,i.useEffect)(()=>{let e=localStorage.getItem(v);e&&e!==w?e===b&&I(!0):I(!1)},[]),(0,i.useEffect)(()=>{setTimeout(()=>{"ACTIVE_HOVER"===_&&N("INACTIVE")},6e3)},[_]),(0,i.useEffect)(()=>{let t=setTimeout(()=>{e.onVideoProgress&&E.duration>0&&e.onVideoProgress(E.time/E.duration*100)},200);return()=>{clearTimeout(t)}},[E.time,E.duration,e.onVideoProgress]),(0,i.useEffect)(()=>{e.onVideoStart&&T&&e.onVideoStart()},[T,e.onVideoStart]),(0,l.jsxs)(p.I,{handle:a,className:"relative flex h-full w-full items-center justify-center overflow-hidden",children:[(0,l.jsx)("div",{className:"".concat(s?"h-full":"w-full"," ").concat(e.poster&&!T?"hidden":""),children:R}),e.poster&&!T&&(0,l.jsx)("div",{style:{aspectRatio:(null!==(r=e.width)&&void 0!==r?r:1920)/(null!==(o=e.height)&&void 0!==o?o:1080)},className:"relative ".concat(s?"h-full":"w-full"),children:(0,l.jsx)(h.default,{fill:!0,src:e.poster,alt:"",className:"".concat(s?"h-full":"w-full")})}),T?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{onMouseMove:()=>N("ACTIVE_HOVER"),onMouseEnter:()=>N("ACTIVE_HOVER"),onMouseLeave:()=>{setTimeout(()=>{N("INACTIVE")},500)},onClick:()=>{N("ACTIVE_HOVER")},className:"absolute bottom-0 left-0 right-0 top-0 z-10 h-full w-full duration-150 ".concat("ACTIVE_HOVER"!==_&&E.playing?"translate-y-2 cursor-none opacity-0":"translate-y-0 opacity-100"),children:[(0,l.jsx)("div",{style:{background:"linear-gradient(180deg, rgba(0,0,0,0) 78%, rgba(0,0,0,0.55) 100%)"},onClick:()=>{E.paused?y.play():y.pause()},className:"absolute bottom-0 left-0 right-0 top-0 h-full w-full"}),(0,l.jsxs)("div",{className:"absolute bottom-6 left-0 right-0 flex w-full flex-row gap-2 px-2 py-2 text-white sm:items-center sm:justify-between sm:gap-4",children:[(0,l.jsxs)("div",{className:"flex w-full items-center gap-2",children:[(0,l.jsx)("div",{className:"w-10 min-w-10 sm:w-10 sm:min-w-10",children:O?(0,l.jsx)(c.z,{variant:"ghost",className:"aspect-square p-2.5 text-2xl hover:bg-white/20 hover:text-white sm:p-1.5 sm:text-xl",onClick:y.pause,children:(0,l.jsx)(d.JO,{icon:"tdesign:loading",className:"animate-spin"})}):(0,l.jsxs)(l.Fragment,{children:[E.paused&&(0,l.jsx)(c.z,{variant:"ghost",className:"aspect-square p-2.5 text-2xl hover:bg-white/20 hover:text-white sm:p-1.5 sm:text-lg",onClick:y.play,children:(0,l.jsx)(d.JO,{icon:"solar:play-bold"})}),E.playing&&(0,l.jsx)(c.z,{variant:"ghost",className:"aspect-square p-2.5 text-2xl hover:bg-white/20 hover:text-white sm:p-1.5 sm:text-lg",onClick:y.pause,children:(0,l.jsx)(d.JO,{icon:"solar:pause-bold"})})]})}),(0,l.jsxs)("p",{className:"hidden whitespace-nowrap text-xs sm:block sm:text-sm",children:[(0,x.mr)(E.time)," / ",(0,x.mr)(E.duration)]})]}),(0,l.jsxs)("div",{className:"flex items-center justify-end gap-1.5",children:[(0,l.jsxs)("div",{className:"group flex items-center gap-1.5",children:[!E.muted&&(0,l.jsx)("div",{className:"hidden opacity-0 duration-300 group-hover:opacity-100 sm:block",children:(0,l.jsxs)(f.fC,{className:(0,m.cn)("relative flex w-28 cursor-pointer touch-none select-none items-center"),onValueChange:e=>{y.volume(e[0])}
1,value:[E.volume],min:0,step:.01,max:1,children:[(0,l.jsx)(f.fQ,{className:"relative h-[0.32rem] w-full grow overflow-hidden rounded-full bg-white/20",children:(0,l.jsx)(f.e6,{className:"absolute h-full bg-white"})}),(0,l.jsx)(f.bU,{className:"block h-2 w-2 rounded-full bg-white shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-black/20 disabled:pointer-events-none disabled:opacity-50"})]})}),E.muted?(0,l.jsx)(c.z,{variant:"ghost",className:"aspect-square p-2.5 text-2xl hover:bg-white/20 hover:text-white sm:p-1.5 sm:text-xl",onClick:y.unmute,children:(0,l.jsx)(d.JO,{icon:"fluent:speaker-mute-48-filled"})}):(0,l.jsx)(c.z,{variant:"ghost",className:"aspect-square p-2.5 text-2xl hover:bg-white/20 hover:text-white sm:p-1.5 sm:text-xl",onClick:y.mute,children:(0,l.jsx)(d.JO,{icon:"fluent:speaker-2-48-filled"})})]}),(0,l.jsxs)("div",{className:"group relative hidden sm:block",children:[(0,l.jsxs)(c.z,{variant:"ghost",className:"aspect-square p-2.5 text-base hover:bg-white/20 hover:text-white sm:p-1.5 sm:text-sm",onClick:()=>P(!L),children:[D,"x"]}),L&&(0,l.jsx)("div",{className:"absolute bottom-full right-0 mb-2 min-w-[80px] rounded bg-black/90 py-1",children:[.5,.75,1,1.25,1.5,1.75,2].map(e=>(0,l.jsxs)("button",{className:(0,m.cn)("block w-full px-4 py-3 text-left text-base text-white hover:bg-white/20 sm:py-1 sm:text-sm",e===D&&"bg-white/10"),onClick:()=>{A(e),P(!1)},children:[e,"x"]},e))})]}),e.transcript&&(C?(0,l.jsx)(c.z,{variant:"ghost",className:"aspect-square p-2.5 text-2xl hover:bg-white/20 hover:text-white sm:p-1.5 sm:text-xl",onClick:()=>{I(!1),localStorage.setItem(v,w)},children:(0,l.jsx)(d.JO,{icon:"fluent:closed-caption-off-48-filled"})}):(0,l.jsx)(c.z,{variant:"ghost",className:"aspect-square p-2.5 text-2xl hover:bg-white/20 hover:text-white sm:p-1.5 sm:text-xl",onClick:()=>{I(!0),localStorage.setItem(v,b)},children:(0,l.jsx)(d.JO,{icon:"fluent:closed-caption-48-filled"})})),a.active?(0,l.jsx)(c.z,{variant:"ghost",className:"aspect-square p-2.5 text-2xl hover:bg-white/20 hover:text-white sm:p-1.5 sm:text-lg",onClick:()=>{a.exit()},children:(0,l.jsx)(d.JO,{icon:"fluent:full-screen-minimize-16-filled"})}):(0,l.jsx)(c.z,{variant:"ghost",className:"aspect-square p-2.5 text-2xl hover:bg-white/20 hover:text-white sm:p-1.5 sm:text-lg",onClick:()=>{a.enter()},children:(0,l.jsx)(d.JO,{icon:"fluent:full-screen-maximize-16-filled"})})]})]}),(0,l.jsx)("div",{className:"absolute bottom-4 left-0 right-0 flex w-full items-center justify-between gap-4 px-2 text-white sm:px-4",children:(0,l.jsxs)(f.fC,{className:(0,m.cn)("group relative flex w-full cursor-pointer touch-none select-none items-center"),onValueChange:e=>{y.seek(e[0])},value:[E.time],min:0,max:E.duration,children:[(0,l.jsx)(f.fQ,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-white/20 sm:h-1.5",children:(0,l.jsx)(f.e6,{className:"absolute h-full bg-white"})}),(0,l.jsx)(f.bU,{className:"rounded-0 focus-visible:transparent block h-2 w-2 rounded-r-full bg-white transition-colors duration-150 focus-visible:outline-none focus-visible:ring-0 disabled:pointer-events-none disabled:opacity-50 group-hover:scale-[2.5] group-hover:rounded-full group-hover:shadow sm:h-1.5 sm:w-1.5"})]})})]}),e.transcript&&C&&M&&(0,l.jsx)("p",{className:"absolute rounded-lg bg-slate-800/30 px-3 py-1.5 text-center text-sm text-white backdrop-blur-sm sm:text-base ".concat(a.active?"bottom-24 max-w-[60vw] scale-[1.5]":"bottom-12 max-w-[90%] sm:max-w-[80%]"),children:M})]}):(0,l.jsx)("div",{onClick:()=>{j(!0),y.play()},className:"group absolute bottom-0 left-0 right-0 top-0 flex h-full w-full cursor-pointer items-center justify-center bg-black/20 duration-150",children:(0,l.jsx)("div",{className:"relative flex h-12 w-12 items-center justify-center rounded-full bg-white/90 text-4xl outline outline-4 outline-white/20 duration-150 group-hover:scale-[1.2] sm:h-16 sm:w-16 sm:text-6xl sm:outline-8 md:h-24 md:w-24",children:(0,l.jsx)(d.JO,{icon:"iconoir:play-solid",className:"z-20 text-black"})})})]})},E=n(30416),y=e=>{let{pageSlug:t,kbSlug:n,...r}=e,o=a.hi.analytics.recordVideoWatchAnalytics.useMutation(),u=(0,s.i)(),[c,d]=(0,i.useState)(null),[f,m]=(0,i.useState)(0),p=(0,i.useCallback)(()=>{t&&u&&0===f&&(o.mutate({pageSlug:t,deviceId:u,kbSlug:null!=n?n:null,locale:null,videoWatchedPercentage:5},{onSuccess:e=>{d(e),localStorage.setItem((0,E.dp)(t,n),JSON.stringify(e))}}),m(5))},[t,u,n,f]),h=(0,i.useCallback)(e=>{u&&t&&!(e<=1)&&e>f+5&&(o.mutate({pageSlug:t,deviceId:u,kbSlug:null!=n?n:null,locale:null,videoWatchedPercentage:e},{onSuccess:e=>{d(e),localStorage.setItem((0,E.dp)(t,n),JSON.stringify(e))}}),m(e))},[u,t,n,f]);return(0,i.useEffect)(()=>
1{if(c){let e=c.maxVideoWatchedInPercentage;e&&m(e)}},[c]),(0,i.useEffect)(()=>{if(!t||!n)return;let e=(0,E.dp)(t,n),r=localStorage.getItem(e);r&&d(JSON.parse(r))},[t,n]),(0,l.jsx)(R,{...r,onVideoStart:p,onVideoProgress:h})}},25322:function(e,t,n){n.d(t,{Eo:function(){return I},Hd:function(){return R},Jw:function(){return N},Mn:function(){return k},TB:function(){return b},WZ:function(){return E},Xw:function(){return X},Zx:function(){return _},_G:function(){return w},cN:function(){return et},cx:function(){return v},ib:function(){return O},oM:function(){return C},tH:function(){return y},wY:function(){return ee}});var r,o,l,i,a,s,u,c,d,f,m,p,h,x,g,v,b,w,R,E,y,S,T,j,C,I,_,N,O,k,M=n(2556),D=n(62489);(r=v||(v={})).AUTO="AUTO",r.MANUAL="MANUAL";let A=D.Ry({startInMs:D.Rx(),endInMs:D.Rx(),amount:D.Rx(),inTransitionDurationInMs:D.Rx(),outTransitionDurationInMs:D.Rx(),mode:D.Km(Object.values(v)),origin:D.Ry({x:D.Rx(),y:D.Rx()}).optional()}),L=D.Ry({type:D.Z_(),videoStart:D.Rx(),videoDuration:D.Rx(),sentence:D.Z_().optional(),aiAudioUrl:D.Z_().optional(),aiAudioDuration:D.Rx().optional(),finalVideoStart:D.Rx().optional(),maxDuration:D.Rx().optional()}),P=D.Ry({url:D.Z_(),durationInMs:D.Rx(),width:D.Rx(),height:D.Rx()}),Z=D.Ry({xPos:D.Rx(),yPos:D.Rx(),time:D.Rx()});(o=b||(b={})).BORDER_FILL="BORDER_FILL",o.ONLY_BORDER="ONLY_BORDER",o.ONLY_FILL="ONLY_FILL",o.SPOTLIGHT="SPOTLIGHT",(l=w||(w={})).NONE="NONE",l.RIPPLE="RIPPLE";let F=D.Ry({radius:D.Rx(),borderWidth:D.Rx(),opacity:D.Rx().min(0).max(1),color:D.Z_(),style:D.Km(Object.values(b)),animation:D.Km(Object.values(w)),show:D.O7()});(i=R||(R={})).SHAPE="SHAPE",i.BLUR="BLUR",i.TEXT="TEXT",i.ARROW_LINE="ARROW_LINE",i.IMAGE="IMAGE";let V={id:D.Z_(),type:D.Km(Object.values(R)),startTime:D.Rx(),endTime:D.Rx(),origin:D.Ry({x:D.Rx(),y:D.Rx()}),size:D.Ry({width:D.Rx(),height:D.Rx()}),borderRadius:D.Rx(),borderWidth:D.Rx(),fillColor:D.Z_(),rotation:D.Rx(),opacity:D.Rx().min(0).max(1),borderColor:D.Z_(),borderStyle:D.Z_()},z={id:D.Z_(),type:D.Km(Object.values(R)),startTime:D.Rx(),endTime:D.Rx(),opacity:D.Rx().min(0).max(1)},H=D.S1(),W=D.Ry({blurAmount:D.Rx()}),U=D.Ry({imageUrl:D.Z_().optional()}),K=D.Ry({text:D.Z_(),fontSize:D.Rx(),textColor:D.Z_(),fontWeight:D.Rx(),horizontalTextAlign:D.Z_(),verticalTextAlign:D.Z_(),lineHeight:D.Rx(),strokeWidth:D.Rx(),strokeColor:D.Z_()});(a=E||(E={})).NONE="none",a.ARROW="arrow",a.FILLED_ARROW="filled_arrow",(s=y||(y={})).SOLID="solid",s.DASHED="dashed",s.DOTTED="dotted",(u=S||(S={})).SOLID="solid",u.DASHED="dashed",u.DOTTED="dotted";let q=D.Ry({startPoint:D.Ry({x:D.Rx(),y:D.Rx()}),endPoint:D.Ry({x:D.Rx(),y:D.Rx()}),strokeWidth:D.Rx(),strokeColor:D.Z_(),strokeStyle:D.Km(Object.values(y)),startArrowHead:D.Km(Object.values(E)),endArrowHead:D.Km(Object.values(E)),arrowSize:D.Rx(),strokeRoundness:D.Rx()}),B=D.VK("type",[D.Ry({...V,type:D.i0("SHAPE"),properties:H}),D.Ry({...V,type:D.i0("BLUR"),properties:W}),D.Ry({...V,type:D.i0("TEXT"),properties:K}),D.Ry({...z,type:D.i0("ARROW_LINE"),properties:q}),D.Ry({...V,type:D.i0("IMAGE"),properties:U})]);(c=T||(T={})).CENTER="center",c.RIGHT="flex-end",c.LEFT="flex-start",(d=j||(j={})).TOP="flex-start",d.CENTER="center",d.BOTTOM="flex-end",(f=C||(C={})).auto="auto",f.video="video",f.square="square",f.portrait="portrait";let J=D.Km(Object.values(C)),X={auto:16/9,video:16/9,square:1,portrait:9/16};(m=I||(I={})).SOLID="solid",m.GRADIENT="gradient",m.WALLPAPER="wallpaper",m.CUSTOM="custom";let G=D.Ry({type:D.Km(Object.values(I)),color:D.Z_().optional(),gradientColor1:D.Z_().optional(),gradientColor2:D.Z_().optional(),wallpaper:D.Z_().optional(),wallpaperId:D.Z_().optional()}).optional();(p=_||(_={})).VERY_SLOW="-27%",p.SLOW="-13%",p.MEDIUM="+12%",p.FAST="+37%",p.VERY_FAST="+62%",(h=N||(N={})).STANDARD="STANDARD",h.STUDIO="STUDIO",h.PREMIUM="PREMIUM";let Y=D.Km(Object.values(_)),Q=D.Km(Object.values(N)),$=D.IM(D.Z_(),D.Z_());(x=O||(O={})).LEFT="LEFT",x.CENTER="CENTER",x.RIGHT="RIGHT";let ee={LEFT:"left",CENTER:"center",RIGHT:"right"};(g=k||(k={})).LEFT="LEFT",g.CENTER="CENTER",g.RIGHT="RIGHT";let et={LEFT:"flex-start",CENTER:"center",RIGHT:"flex-end"};D.Ry({title:D.Z_(),sequences:D.IX(D.IX(L)),transcripts:$,video:P,clicks:D.IX(Z),zoomsInMs:D.IX(A).optional(),bgmUrl:D.Z_().optional(),voiceOver:D.Z_().optional(),voiceNotDubbed:D.O7().optional(),voiceSpeakingRate:Y.optional(),voiceCategory:Q.optional(),background:G,padding:D.Rx().optional(),borderRadius:D.Rx().optional(),backgroundBlur:D.Rx().optional(),shadowDistance:D.Rx().optional(),shadowBlur:D.Rx().optional(),shadowAngle:D.Rx().optional(),shadowOpacity:D.Rx().optional(),gradientAngle:D.Rx().optional(),videoVolume:D.Rx().optional(),bgMusicVolume:D.Rx().optional(),introTextColor:D.Z_().optional(),introText:D.Z_().optional(),introTextSize:D.Rx().optional(),introTextHorizontalAlign:D.Km(Object.values(O)).optional(),introTextStrokeWidth:D.Rx().optional(),introTextStrokeColor:D.Z_().optional(),outroTextColor:D.Z_().optional(),outroText:D.Z_().optional(),outroTextSize:D.Rx().optional(),outroTextHorizontalAlign:D.Km(Object.values(O)).optional(),outroTextStrokeWidth:D.Rx().optional(),outroTextStrokeColor:D.Z_().optional(),introDurationInMs:D.Rx(),outroDurationInMs:D.Rx(),introLogo:D.Z_().optional(),introLogoHorizontalAlign:D.Km(Object.values(k)).optional(),outroLogo:D.Z_().optional(),outroLogoHorizontalAlign:D.Km(Object.values(k)).optional(),clickHighlight:F.optional(),aspectRatio:J.optional(),lowRes:D.O7().optional(),customBgmId:D.Z_().optional(),elements:D.IX(B).optional(),currentEditingElementId:D.Z_().optional(),showWatermark:D.O7().optional(),isManualZoomPreview:D.O7().optional(),introBgColor:D.Z_().optional(),outroBgColor:D.Z_().optional(),kbTitle:D.Z_().optional(),introElementColor:D.Z_().optional(),introElementTextColor:D.Z_().optional(),outroElementColor:D.Z_().optional(),outroElementTextColor:D.Z_().optional(),introThemeColor:D.jb(M.VZ).optional(),outroThemeColor:D.jb(M.VZ).optional()});let en=D.Ry({fileName:D.Z_().optional(),url:D.Z_()});D.Ry({customBg:D.IX(D.Z_()).optional(),customBgm:D.IX(en).optional()})},12187:function(e,t,n){n.d(t,{LK:function(){return d},Yg:function(){return o},k0:function(){return a},pJ:function(){return i},ro:function(){return s},xB:function(){return m},zs:function(){return l}});var r=n(25322);let o=e=>
1{let{ratio:t,recordingDimension:n}=e;if(t===r.oM.auto){let e=c({width:n.width,height:n.height});return e.width/e.height}return r.Xw[t]};r.Zx.VERY_SLOW,r.Zx.SLOW,r.Zx.MEDIUM,r.Zx.FAST,r.Zx.VERY_FAST;let l=1080,i=1920,a=480,s=854,u=e=>{let t=parseInt(e.toFixed(0));return t%2==0?t:t+1},c=e=>{let{width:t,height:n}=e,r=Math.floor(t/n*l);return{width:u(r%2==0?r:r+1),height:u(l)}},d=e=>{let{ratio:t,recordingDimension:n}=e;switch(t){case r.oM.auto:let o=f({width:n.width,height:n.height});return{width:u(o.width),height:u(o.height)};case r.oM.video:return{width:s,height:a};case r.oM.square:return{width:s,height:s};case r.oM.portrait:return{width:a,height:s}}},f=e=>{let{width:t,height:n}=e,r=Math.floor(t/n*a);return{width:u(r%2==0?r:r+1),height:u(a)}},m=e=>{let{referenceSequences:t,transcript:n}=e;return t.map(e=>e.map(e=>{let t=n[e.videoStart];return"string"==typeof t?{...e,sentence:t}:{...e,sentence:void 0,aiAudioUrl:void 0,aiAudioDuration:void 0,maxDuration:void 0,type:"mute"}}))}},38846:function(e,t,n){n.d(t,{bU:function(){return K},e6:function(){return U},fC:function(){return H},fQ:function(){return W}});var r=n(2265),o=n(62484),l=n(6741),i=n(98575),a=n(73966),s=n(80886),u=n(29114),c=n(6718),d=n(90420),f=n(82912),m=n(10474),p=n(57437),h=["PageUp","PageDown"],x=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],g={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},v="Slider",[b,w,R]=(0,m.B)(v),[E,y]=(0,a.b)(v,[R]),[S,T]=E(v),j=r.forwardRef((e,t)=>{let{name:n,min:i=0,max:a=100,step:u=1,orientation:c="horizontal",disabled:d=!1,minStepsBetweenThumbs:f=0,defaultValue:m=[i],value:g,onValueChange:v=()=>{},onValueCommit:w=()=>{},inverted:R=!1,form:E,...y}=e,T=r.useRef(new Set),j=r.useRef(0),C="horizontal"===c?_:N,[I=[],O]=(0,s.T)({prop:g,defaultProp:m,onChange:e=>{var t;null===(t=[...T.current][j.current])||void 0===t||t.focus(),v(e)}}),k=r.useRef(I);function M(e,t){let{commit:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1},r=(String(u).split(".")[1]||"").length,l=function(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-i)/u)*u+i,r),s=(0,o.u)(l,[i,a]);O(function(){var e,r;let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}(o,s,t);if(e=l,!(!((r=f*u)>0)||Math.min(...e.slice(0,-1).map((t,n)=>e[n+1]-t))>=r))return o;{j.current=l.indexOf(s);let e=String(l)!==String(o);return e&&n&&w(l),e?l:o}})}return(0,p.jsx)(S,{scope:e.__scopeSlider,name:n,disabled:d,min:i,max:a,valueIndexToChangeRef:j,thumbs:T.current,values:I,orientation:c,form:E,children:(0,p.jsx)(b.Provider,{scope:e.__scopeSlider,children:(0,p.jsx)(b.Slot,{scope:e.__scopeSlider,children:(0,p.jsx)(C,{"aria-disabled":d,"data-disabled":d?"":void 0,...y,ref:t,onPointerDown:(0,l.Mj)(y.onPointerDown,()=>{d||(k.current=I)}),min:i,max:a,inverted:R,onSlideStart:d?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let n=e.map(e=>Math.abs(e-t));return n.indexOf(Math.min(...n))}(I,e);M(e,t)},onSlideMove:d?void 0:function(e){M(e,j.current)},onSlideEnd:d?void 0:function(){let e=k.current[j.current];I[j.current]!==e&&w(I)},onHomeKeyDown:()=>!d&&M(i,0,{commit:!0}),onEndKeyDown:()=>!d&&M(a,I.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:n}=e;if(!d){let e=h.includes(t.key)||t.shiftKey&&x.includes(t.key),r=j.current;M(I[r]+u*(e?10:1)*n,r,{commit:!0})}}})})})})});j.displayName=v;var[C,I]=E(v,{startEdge:"left",endEdge:"right",size:"width",direction:1}),_=r.forwardRef((e,t)=>{let{min:n,max:o,dir:l,inverted:a,onSlideStart:s,onSlideMove:c,onSlideEnd:d,onStepKeyDown:f,...m}=e,[h,x]=r.useState(null),v=(0,i.e)(t,e=>x(e)),b=r.useRef(void 0),w=(0,u.gm)(l),R="ltr"===w,E=R&&!a||!R&&a;function y(e){let t=b.current||h.getBoundingClientRect(),r=z([0,t.width],E?[n,o]:[o,n]);return b.current=t,r(e-t.left)}return(0,p.jsx)(C,{scope:e.__scopeSlider,startEdge:E?"left":"right",endEdge:E?"right":"left",direction:E?1:-1,size:"width",children:(0,p.jsx)(O,{dir:w,"data-orientation":"horizontal",...m,ref:v,style:{...m.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=y(e.clientX);null==s||s(t)},onSlideMove:e=>{let t=y(e.clientX);null==c||c(t)},onSlideEnd:()=>{b.current=void 0,null==d||d()},onStepKeyDown:e=>
1{let t=g[E?"from-left":"from-right"].includes(e.key);null==f||f({event:e,direction:t?-1:1})}})})}),N=r.forwardRef((e,t)=>{let{min:n,max:o,inverted:l,onSlideStart:a,onSlideMove:s,onSlideEnd:u,onStepKeyDown:c,...d}=e,f=r.useRef(null),m=(0,i.e)(t,f),h=r.useRef(void 0),x=!l;function v(e){let t=h.current||f.current.getBoundingClientRect(),r=z([0,t.height],x?[o,n]:[n,o]);return h.current=t,r(e-t.top)}return(0,p.jsx)(C,{scope:e.__scopeSlider,startEdge:x?"bottom":"top",endEdge:x?"top":"bottom",size:"height",direction:x?1:-1,children:(0,p.jsx)(O,{"data-orientation":"vertical",...d,ref:m,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=v(e.clientY);null==a||a(t)},onSlideMove:e=>{let t=v(e.clientY);null==s||s(t)},onSlideEnd:()=>{h.current=void 0,null==u||u()},onStepKeyDown:e=>{let t=g[x?"from-bottom":"from-top"].includes(e.key);null==c||c({event:e,direction:t?-1:1})}})})}),O=r.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:u,...c}=e,d=T(v,n);return(0,p.jsx)(f.WV.span,{...c,ref:t,onKeyDown:(0,l.Mj)(e.onKeyDown,e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):h.concat(x).includes(e.key)&&(u(e),e.preventDefault())}),onPointerDown:(0,l.Mj)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():r(e)}),onPointerMove:(0,l.Mj)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)}),onPointerUp:(0,l.Mj)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),i(e))})})}),k="SliderTrack",M=r.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,o=T(k,n);return(0,p.jsx)(f.WV.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});M.displayName=k;var D="SliderRange",A=r.forwardRef((e,t)=>{let{__scopeSlider:n,...o}=e,l=T(D,n),a=I(D,n),s=r.useRef(null),u=(0,i.e)(t,s),c=l.values.length,d=l.values.map(e=>V(e,l.min,l.max));return(0,p.jsx)(f.WV.span,{"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,...o,ref:u,style:{...e.style,[a.startEdge]:(c>1?Math.min(...d):0)+"%",[a.endEdge]:100-Math.max(...d)+"%"}})});A.displayName=D;var L="SliderThumb",P=r.forwardRef((e,t)=>{let n=w(e.__scopeSlider),[o,l]=r.useState(null),a=(0,i.e)(t,e=>l(e)),s=r.useMemo(()=>o?n().findIndex(e=>e.ref.current===o):-1,[n,o]);return(0,p.jsx)(Z,{...e,ref:a,index:s})}),Z=r.forwardRef((e,t)=>{var n;let{__scopeSlider:o,index:a,name:s,...u}=e,c=T(L,o),m=I(L,o),[h,x]=r.useState(null),g=(0,i.e)(t,e=>x(e)),v=!h||c.form||!!h.closest("form"),w=(0,d.t)(h),R=c.values[a],E=void 0===R?0:V(R,c.min,c.max),y=(n=c.values.length)>2?"Value ".concat(a+1," of ").concat(n):2===n?["Minimum","Maximum"][a]:void 0,S=null==w?void 0:w[m.size],j=S?function(e,t,n){let r=e/2,o=z([0,50],[0,r]);return(r-o(t)*n)*n}(S,E,m.direction):0;return r.useEffect(()=>{if(h)return c.thumbs.add(h),()=>{c.thumbs.delete(h)}},[h,c.thumbs]),(0,p.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[m.startEdge]:"calc(".concat(E,"% + ").concat(j,"px)")},children:[(0,p.jsx)(b.ItemSlot,{scope:e.__scopeSlider,children:(0,p.jsx)(f.WV.span,{role:"slider","aria-label":e["aria-label"]||y,"aria-valuemin":c.min,"aria-valuenow":R,"aria-valuemax":c.max,"aria-orientation":c.orientation,"data-orientation":c.orientation,"data-disabled":c.disabled?"":void 0,tabIndex:c.disabled?void 0:0,...u,ref:g,style:void 0===R?{display:"none"}:e.style,onFocus:(0,l.Mj)(e.onFocus,()=>{c.valueIndexToChangeRef.current=a})})}),v&&(0,p.jsx)(F,{name:null!=s?s:c.name?c.name+(c.values.length>1?"[]":""):void 0,form:c.form,value:R},a)]})});P.displayName=L;var F=r.forwardRef((e,t)=>{let{__scopeSlider:n,value:o,...l}=e,a=r.useRef(null),s=(0,i.e)(a,t),u=(0,c.D)(o);return r.useEffect(()=>{let e=a.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(u!==o&&t){let n=new Event("input",{bubbles:!0});t.call(e,o),e.dispatchEvent(n)}},[u,o]),(0,p.jsx)(f.WV.input,{style:{display:"none"},...l,ref:s,defaultValue:o})});
1function V(e,t,n){return(0,o.u)(100/(n-t)*(e-t),[0,100])}function z(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}F.displayName="RadioBubbleInput";var H=j,W=M,U=A,K=P},6718:function(e,t,n){n.d(t,{D:function(){return o}});var r=n(2265);function o(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}}}]);
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.