PageSourceSearch

https://cdn-useast1.kapwing.com/static-pages/prod/_next/static/chunks/2059-de94bfccbba6a1eb.js

js kapwing.com collected 2026-09-24 09:15:33 UTC 9,076 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2059],{33897:function(e,r,t){var n=t(15012),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},15012:function(e){var r=/\s/;e.exports=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t}},89678:function(e,r,t){var n=t(6627),o=t(85365),i=t(67948),a=Math.max,l=Math.min;e.exports=function(e,r,t){var c,s,d,u,f,p,v=0,m=!1,h=!1,b=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(r){var t=c,n=s;return c=s=void 0,v=r,u=e.apply(n,t)}function x(e){var t=e-p,n=e-v;return void 0===p||t>=r||t<0||h&&n>=d}function g(){var e,t,n,i=o();if(x(i))return w(i);f=setTimeout(g,(e=i-p,t=i-v,n=r-e,h?l(n,d-t):n))}function w(e){return(f=void 0,b&&c)?y(e):(c=s=void 0,u)}function j(){var e,t=o(),n=x(t);if(c=arguments,s=this,p=t,n){if(void 0===f)return v=e=p,f=setTimeout(g,r),m?y(e):u;if(h)return clearTimeout(f),f=setTimeout(g,r),y(p)}return void 0===f&&(f=setTimeout(g,r)),u}return r=i(r)||0,n(t)&&(m=!!t.leading,d=(h="maxWait"in t)?a(i(t.maxWait)||0,r):d,b="trailing"in t?!!t.trailing:b),j.cancel=function(){void 0!==f&&clearTimeout(f),v=0,c=p=s=f=void 0},j.flush=function(){return void 0===f?u:w(o())},j}},42848:function(e,r,t){var n=t(57398),o=t(89109);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},85365:function(e,r,t){var n=t(73401);e.exports=function(){return n.Date.now()}},67948:function(e,r,t){var n=t(33897),o=t(6627),i=t(42848),a=0/0,l=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=o(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var t=c.test(e);return t||s.test(e)?d(e.slice(2),t?2:8):l.test(e)?a:+e}},25521:function(e,r,t){"use strict";t.d(r,{VY:function(){return ea},h4:function(){return eo},ck:function(){return en},fC:function(){return et},xz:function(){return ei}});var n=t(73732),o=t(91251),i=t(40251),a=t(84755),l=t(63679),c=t(61395),s=t(54223),d=t(32654),u=t(69101),f=t(44781),p=t(20503),v="Collapsible",[m,h]=(0,o.b)(v),[b,y]=m(v),x=n.forwardRef((e,r)=>{let{__scopeCollapsible:t,open:o,defaultOpen:i,disabled:a,onOpenChange:l,...d}=e,[u,m]=(0,c.T)({prop:o,defaultProp:i??!1,onChange:l,caller:v});return(0,p.jsx)(b,{scope:t,disabled:a,contentId:(0,f.M)(),open:u,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),children:(0,p.jsx)(s.WV.div,{"data-state":R(u),"data-disabled":a?"":void 0,...d,ref:r})})});x.displayName=v;var g="CollapsibleTrigger",w=n.forwardRef((e,r)=>{let{__scopeCollapsible:t,...n}=e,o=y(g,t);return(0,p.jsx)(s.WV.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":R(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:r,onClick:(0,l.Mj)(e.onClick,o.onOpenToggle)})});w.displayName=g;var j="CollapsibleContent",C=n.forwardRef((e,r)=>{let{forceMount:t,...n}=e,o=y(j,e.__scopeCollapsible);return(0,p.jsx)(u.z,{present:t||o.open,children:({present:e})=>(0,p.jsx)(A,{...n,ref:r,present:e})})});C.displayName=j;var A=n.forwardRef((e,r)=>{let{__scopeCollapsible:t,present:o,children:i,...l}=e,c=y(j,t),[u,f]=n.useState(o),v=n.useRef(null),m=(0,a.e)(r,v),h=n.useRef(0),b=h.current,x=n.useRef(0),g=x.current,w=c.open||u,C=n.useRef(w),A=n.useRef(void 0);return n.useEffect(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.b)(()=>{let e=v.current;if(e){A.current=A.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let r=e.getBoundingClientRect();h.current=r.height,x.current=r.width,C.current||(e.style.transitionDuration=A.current.transitionDuration,e.style.animationName=A.current.animationName),f(o)}},[c.open,o]),(0,p.jsx)(s.WV.div,{"data-state":R(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!w,...l,ref:m,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:w&&i})});function R(e){return e?"open":"closed"}var I=t(4389),k="Accordion",N=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[_,D,T]=(0,i.B)(k),[V,E]=(0,o.b)(k,[T,h]),U=h(),O=n.forwardRef((e,r)=>{let{type:t,...n}=e;return(0,p.jsx)(_.Provider,{scope:e.__scopeAccordion,children:"multiple"===t?(0,p.jsx)(P,{...n,ref:r}):(0,p.jsx)(z,{...n,ref:r})})});O.displayName=k;var[S,M]=V(k),[W,$]=V(k,{collapsible:!1}),z=n.forwardRef((e,r)=>{let{value:t,defaultValue:o,onValueChange:i=()=>{},collapsible:a=!1,...l}=e,[s,d]=(0,c.T)({prop:t,defaultProp:o??"",onChange:i,caller:k});return(0,p.jsx)(S,{scope:e.__scopeAccordion,value:n.useMemo(()=>s?[s]:[],[s]),onItemOpen:d,onItemClose:n.useCallback(()=>a&&d(""),[a,d]),children:(0,p.jsx)(W,{scope:e.__scopeAccordion,collapsible:a,children:(0,p.jsx)(B,{...l,ref:r})})})}),P=n.forwardRef((e,r)=>{let{value:t,defaultValue:o,onValueChange:i=()=>{},...a}=e,[l,s]=(0,c.T)({prop:t,defaultProp:o??[],onChange:i,caller:k}),d=n.useCallback(e=>s((r=[])=>[...r,e]),[s]),u=n.useCallback(e=>s((r=[])=>r.filter(r=>r!==e)),[s]);return(0,p.jsx)(S,{scope:e.__scopeAccordion,value:l,onItemOpen:d,onItemClose:u,children:(0,p.jsx)(W,{scope:e.__scopeAccordion,collapsible:!0,children:(0,p.jsx)(B,{...a,ref:r})})})}),[H,L]=V(k),B=n.forwardRef((e,r)=>{let{__scopeAccordion:t,disabled:o,dir:i,orientation:c="vertical",...d}=e,u=n.useRef(null),f=(0,a.e)(u,r),v=D(t),m=(0,I.gm)(i),h="ltr"===m,b=(0,l.Mj)(e.onKeyDown,e=>
1{if(!N.includes(e.key))return;let r=e.target,t=v().filter(e=>!e.ref.current?.disabled),n=t.findIndex(e=>e.ref.current===r),o=t.length;if(-1===n)return;e.preventDefault();let i=n,a=o-1,l=()=>{(i=n+1)>a&&(i=0)},s=()=>{(i=n-1)<0&&(i=a)};switch(e.key){case"Home":i=0;break;case"End":i=a;break;case"ArrowRight":"horizontal"===c&&(h?l():s());break;case"ArrowDown":"vertical"===c&&l();break;case"ArrowLeft":"horizontal"===c&&(h?s():l());break;case"ArrowUp":"vertical"===c&&s()}let d=i%o;t[d].ref.current?.focus()});return(0,p.jsx)(H,{scope:t,disabled:o,direction:i,orientation:c,children:(0,p.jsx)(_.Slot,{scope:t,children:(0,p.jsx)(s.WV.div,{...d,"data-orientation":c,ref:f,onKeyDown:o?void 0:b})})})}),F="AccordionItem",[K,Z]=V(F),q=n.forwardRef((e,r)=>{let{__scopeAccordion:t,value:n,...o}=e,i=L(F,t),a=M(F,t),l=U(t),c=(0,f.M)(),s=n&&a.value.includes(n)||!1,d=i.disabled||e.disabled;return(0,p.jsx)(K,{scope:t,open:s,disabled:d,triggerId:c,children:(0,p.jsx)(x,{"data-orientation":i.orientation,"data-state":er(s),...l,...o,ref:r,disabled:d,open:s,onOpenChange:e=>{e?a.onItemOpen(n):a.onItemClose(n)}})})});q.displayName=F;var J="AccordionHeader",Y=n.forwardRef((e,r)=>{let{__scopeAccordion:t,...n}=e,o=L(k,t),i=Z(J,t);return(0,p.jsx)(s.WV.h3,{"data-orientation":o.orientation,"data-state":er(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:r})});Y.displayName=J;var G="AccordionTrigger",Q=n.forwardRef((e,r)=>{let{__scopeAccordion:t,...n}=e,o=L(k,t),i=Z(G,t),a=$(G,t),l=U(t);return(0,p.jsx)(_.ItemSlot,{scope:t,children:(0,p.jsx)(w,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...l,...n,ref:r})})});Q.displayName=G;var X="AccordionContent",ee=n.forwardRef((e,r)=>{let{__scopeAccordion:t,...n}=e,o=L(k,t),i=Z(X,t),a=U(t);return(0,p.jsx)(C,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...n,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function er(e){return e?"open":"closed"}ee.displayName=X;var et=O,en=q,eo=Y,ei=Q,ea=ee},74795:function(e,r,t){"use strict";t.d(r,{Z:function(){return l}});var n=t(73732),o=e=>(0,n.isValidElement)(e)&&!!e.props.children;let i=e=>null==e||"boolean"==typeof e||"{}"===JSON.stringify(e)?"":e.toString(),a=e=>e instanceof Array||(0,n.isValidElement)(e)?n.Children.toArray(e).reduce((e,r)=>{let t="";return t=(0,n.isValidElement)(r)&&o(r)?a(r.props.children):(0,n.isValidElement)(r)&&!o(r)?"":i(r),e.concat(t)},""):i(e);var l=a},97775:function(e,r,t){"use strict";let n;t.d(r,{Z:function(){return s}});let o="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var i={randomUUID:o};let a=new Uint8Array(16);function l(){if(!n){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(a)}let c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));var s=function(e,r,t){if(i.randomUUID&&!r&&!e)return i.randomUUID();e=e||{};let n=e.random||(e.rng||l)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,r){t=t||0;for(let e=0;e<16;++e)r[t+e]=n[e];return r}return function(e,r=0){return(c[e[r+0]]+c[e[r+1]]+c[e[r+2]]+c[e[r+3]]+"-"+c[e[r+4]]+c[e[r+5]]+"-"+c[e[r+6]]+c[e[r+7]]+"-"+c[e[r+8]]+c[e[r+9]]+"-"+c[e[r+10]]+c[e[r+11]]+c[e[r+12]]+c[e[r+13]]+c[e[r+14]]+c[e[r+15]]).toLowerCase()}(n)}}}]);

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.