PageSourceSearch

https://www.varyant.ai/_next/static/chunks/8627-525435fcfe884a33.js?dpl=dpl_23WR3o2VeaamuALtS8xJV9PwySCa

js varyant.ai collected 2026-10-05 13:11:18 UTC 13,116 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8627],{15642:(e,t,r)=>{r.d(t,{C:()=>p,N:()=>u});var l=r(43071),s=r(93898),n=r(90016),i=r(6810),o=r(36695);function u(e){let t=e+"CollectionProvider",[r,u]=(0,s.A)(t),[a,f]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:r}=e,s=l.useRef(null),n=l.useRef(new Map).current;return(0,o.jsx)(a,{scope:t,itemMap:n,collectionRef:s,children:r})};c.displayName=t;let d=e+"CollectionSlot",p=(0,i.TL)(d),h=l.forwardRef((e,t)=>{let{scope:r,children:l}=e,s=f(d,r),i=(0,n.s)(t,s.collectionRef);return(0,o.jsx)(p,{ref:i,children:l})});h.displayName=d;let y=e+"CollectionItemSlot",m="data-radix-collection-item",v=(0,i.TL)(y),g=l.forwardRef((e,t)=>{let{scope:r,children:s,...i}=e,u=l.useRef(null),a=(0,n.s)(t,u),c=f(y,r);return l.useEffect(()=>(c.itemMap.set(u,{ref:u,...i}),()=>void c.itemMap.delete(u))),(0,o.jsx)(v,{...{[m]:""},ref:a,children:s})});return g.displayName=y,[{Provider:c,Slot:h,ItemSlot:g},function(t){let r=f(e+"CollectionConsumer",t);return l.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},u]}var a=new WeakMap,f=class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],a.set(this,!0)}set(e,t){return a.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let l,s=this.has(t),n=this.#e.length,i=d(e),o=i>=0?i:n+i,u=o<0||o>=n?-1:o;if(u===this.size||s&&u===this.size-1||-1===u)return this.set(t,r),this;let a=this.size+ +!s;i<0&&o++;let f=[...this.#e],c=!1;for(let e=o;e<a;e++)if(o===e){let n=f[e];f[e]===t&&(n=f[e+1]),s&&this.delete(t),l=this.get(n),this.set(t,r)}else{c||f[e-1]!==t||(c=!0);let r=f[c?e:e-1],s=l;l=this.get(r),this.delete(r),this.set(r,s)}return this}with(t,r,l){let s=new e(this);return s.insert(t,r,l),s}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let l=this.#e.indexOf(e);return -1===l?this:this.insert(l,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let l=this.#e.indexOf(e);return -1===l?this:this.insert(l+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=c(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=c(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return c(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let l=r+t;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.at(l)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let l=r+t;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.keyAt(l)}find(e,t){let r=0;for(let l of this){if(Reflect.apply(e,t,[l,r,this]))return l;r++}}findIndex(e,t){let r=0;for(let l of this){if(Reflect.apply(e,t,[l,r,this]))return r;r++}return -1}filter(t,r){let l=[],s=0;for(let e of this)Reflect.apply(t,r,[e,s,this])&&l.push(e),s++;return new e(l)}map(t,r){let l=[],s=0;for(let e of this)l.push([e[0],Reflect.apply(t,r,[e,s,this])]),s++;return new e(l)}reduce(...e){let[t,r]=e,l=0,s=r??this.at(0);for(let r of this)s=0===l&&1===e.length?r:Reflect.apply(t,this,[s,r,l,this]),l++;return s}reduceRight(...e){let[t,r]=e,l=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let s=this.at(r);l=r===this.size-1&&1===e.length?s:Reflect.apply(t,this,[l,s,r,this])}return l}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),l=this.get(r);t.set(r,l)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let l=new e,s=this.size-1;if(void 0===t)return l;t<0&&(t+=this.size),void 0!==r&&r>0&&(s=r-1);for(let e=t;e<=s;e++){let t=this.keyAt(e),r=this.get(t);
1l.set(t,r)}return l}every(e,t){let r=0;for(let l of this){if(!Reflect.apply(e,t,[l,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let l of this){if(Reflect.apply(e,t,[l,r,this]))return!0;r++}return!1}};function c(e,t){var r,l;let s,n,i;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let o=(r=e,l=t,s=r.length,(i=(n=d(l))>=0?n:s+n)<0||i>=s?-1:i);return -1===o?void 0:e[o]}function d(e){return e!=e||0===e?0:Math.trunc(e)}function p(e){let t=e+"CollectionProvider",[r,u]=(0,s.A)(t),[a,c]=r(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new f,setItemMap:()=>void 0}),d=({state:e,...t})=>e?(0,o.jsx)(y,{...t,state:e}):(0,o.jsx)(p,{...t});d.displayName=t;let p=e=>{let t=b();return(0,o.jsx)(y,{...e,state:t})};p.displayName=t+"Init";let y=e=>{let{scope:t,children:r,state:s}=e,i=l.useRef(null),[u,f]=l.useState(null),c=(0,n.s)(i,f),[d,p]=s;return l.useEffect(()=>{var e;if(!u)return;let t=(e=()=>{},new MutationObserver(t=>{for(let r of t)if("childList"===r.type)return void e()}));return t.observe(u,{childList:!0,subtree:!0}),()=>{t.disconnect()}},[u]),(0,o.jsx)(a,{scope:t,itemMap:d,setItemMap:p,collectionRef:c,collectionRefObject:i,collectionElement:u,children:r})};y.displayName=t+"Impl";let m=e+"CollectionSlot",v=(0,i.TL)(m),g=l.forwardRef((e,t)=>{let{scope:r,children:l}=e,s=c(m,r),i=(0,n.s)(t,s.collectionRef);return(0,o.jsx)(v,{ref:i,children:l})});g.displayName=m;let R=e+"CollectionItemSlot",x=(0,i.TL)(R),w=l.forwardRef((e,t)=>{let{scope:r,children:s,...i}=e,u=l.useRef(null),[a,d]=l.useState(null),p=(0,n.s)(t,u,d),{setItemMap:y}=c(R,r),m=l.useRef(i);!function(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let r=Object.keys(e),l=Object.keys(t);if(r.length!==l.length)return!1;for(let l of r)if(!Object.prototype.hasOwnProperty.call(t,l)||e[l]!==t[l])return!1;return!0}(m.current,i)&&(m.current=i);let v=m.current;return l.useEffect(()=>(y(e=>a?e.has(a)?e.set(a,{...v,element:a}).toSorted(h):(e.set(a,{...v,element:a}),e.toSorted(h)):e),()=>{y(e=>a&&e.has(a)?(e.delete(a),new f(e)):e)}),[a,v,y]),(0,o.jsx)(x,{"data-radix-collection-item":"",ref:p,children:s})});function b(){return l.useState(new f)}return w.displayName=R,[{Provider:d,Slot:g,ItemSlot:w},{createCollectionScope:u,useCollection:function(t){let{itemMap:r}=c(e+"CollectionConsumer",t);return r},useInitCollection:b}]}function h(e,t){var r;return e[1].element&&t[1].element?(r=e[1].element,t[1].element.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING)?-1:1:0}},22873:(e,t,r)=>{r.d(t,{jH:()=>n});var l=r(43071);r(36695);var s=l.createContext(void 0);function n(e){let t=l.useContext(s);return e||t||"ltr"}},37990:(e,t,r)=>{r.d(t,{RG:()=>w,bL:()=>G,q7:()=>O});var l=r(43071),s=r(14701),n=r(15642),i=r(90016),o=r(93898),u=r(2237),a=r(14627),f=r(89921),c=r(49953),d=r(22873),p=r(36695),h="rovingFocusGroup.onEntryFocus",y={bubbles:!1,cancelable:!0},m="RovingFocusGroup",[v,g,R]=(0,n.N)(m),[x,w]=(0,o.A)(m,[R]),[b,k]=x(m),j=l.forwardRef((e,t)=>(0,p.jsx)(v.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(v.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(A,{...e,ref:t})})}));j.displayName=m;var A=l.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:u,currentTabStopId:v,defaultCurrentTabStopId:R,onCurrentTabStopIdChange:x,onEntryFocus:w,preventScrollOnEntryFocus:k=!1,...j}=e,A=l.useRef(null),C=(0,i.s)(t,A),I=(0,d.jH)(u),[T,G]=(0,c.i)({prop:v,defaultProp:R??null,onChange:x,caller:m}),[O,N]=l.useState(!1),E=(0,f.c)(w),M=g(r),_=l.useRef(!1),[D,F]=l.useState(0);return l.useEffect(()=>{let e=A.current;if(e)return e.addEventListener(h,E),()=>e.removeEventListener(h,E)},[E]),(0,p.jsx)(b,{scope:r,orientation:n,dir:I,loop:o,currentTabStopId:T,onItemFocus:l.useCallback(e=>G(e),[G]),onItemShiftTab:l.useCallback(()=>N(!0),[]),onFocusableItemAdd:l.useCallback(()=>F(e=>e+1),[]),onFocusableItemRemove:l.useCallback(()=>F(e=>e-1),[]),children:(0,p.jsx)(a.sG.div,{tabIndex:O||0===D?-1:0,"data-orientation":n,...j,ref:C,style:{outline:"none",...e.style},onMouseDown:(0,s.mK)(e.onMouseDown,()=>{_.current=!0}),onFocus:(0,s.mK)(e.onFocus,e=>{let t=!_.current;if(e.target===e.currentTarget&&t&&!O){let t=new CustomEvent(h,y);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>
1e.focusable);S([e.find(e=>e.active),e.find(e=>e.id===T),...e].filter(Boolean).map(e=>e.ref.current),k)}}_.current=!1}),onBlur:(0,s.mK)(e.onBlur,()=>N(!1))})})}),C="RovingFocusGroupItem",I=l.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:o,children:f,...c}=e,d=(0,u.B)(),h=o||d,y=k(C,r),m=y.currentTabStopId===h,R=g(r),{onFocusableItemAdd:x,onFocusableItemRemove:w,currentTabStopId:b}=y;return l.useEffect(()=>{if(n)return x(),()=>w()},[n,x,w]),(0,p.jsx)(v.ItemSlot,{scope:r,id:h,focusable:n,active:i,children:(0,p.jsx)(a.sG.span,{tabIndex:m?0:-1,"data-orientation":y.orientation,...c,ref:t,onMouseDown:(0,s.mK)(e.onMouseDown,e=>{n?y.onItemFocus(h):e.preventDefault()}),onFocus:(0,s.mK)(e.onFocus,()=>y.onItemFocus(h)),onKeyDown:(0,s.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void y.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var l;let s=(l=e.key,"rtl"!==r?l:"ArrowLeft"===l?"ArrowRight":"ArrowRight"===l?"ArrowLeft":l);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(s))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(s)))return T[s]}(e,y.orientation,y.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let s=R().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)s.reverse();else if("prev"===t||"next"===t){var r,l;"prev"===t&&s.reverse();let n=s.indexOf(e.currentTarget);s=y.loop?(r=s,l=n+1,r.map((e,t)=>r[(l+t)%r.length])):s.slice(n+1)}setTimeout(()=>S(s))}}),children:"function"==typeof f?f({isCurrentTabStop:m,hasTabStop:null!=b}):f})})});I.displayName=C;var T={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function S(e,t=!1){let r=document.activeElement;for(let l of e)if(l===r||(l.focus({preventScroll:t}),document.activeElement!==r))return}var G=j,O=I},44318:(e,t,r)=>{r.r(t),r.d(t,{Root:()=>f,Toggle:()=>a});var l=r(43071),s=r(14701),n=r(49953),i=r(14627),o=r(36695),u="Toggle",a=l.forwardRef((e,t)=>{let{pressed:r,defaultPressed:l,onPressedChange:a,...f}=e,[c,d]=(0,n.i)({prop:r,onChange:a,defaultProp:l??!1,caller:u});return(0,o.jsx)(i.sG.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...f,ref:t,onClick:(0,s.mK)(e.onClick,()=>{e.disabled||d(!c)})})});a.displayName=u;var f=a},98627:(e,t,r)=>{r.r(t),r.d(t,{Item:()=>I,Root:()=>C,ToggleGroup:()=>y,ToggleGroupItem:()=>j,createToggleGroupScope:()=>p});var l=r(43071),s=r(93898),n=r(14627),i=r(37990),o=r(44318),u=r(49953),a=r(22873),f=r(36695),c="ToggleGroup",[d,p]=(0,s.A)(c,[i.RG]),h=(0,i.RG)(),y=l.forwardRef((e,t)=>{let{type:r,...l}=e;if("single"===r)return(0,f.jsx)(g,{...l,ref:t});if("multiple"===r)return(0,f.jsx)(R,{...l,ref:t});throw Error(`Missing prop \`type\` expected on \`${c}\``)});y.displayName=c;var[m,v]=d(c),g=l.forwardRef((e,t)=>{let{value:r,defaultValue:s,onValueChange:n=()=>{},...i}=e,[o,a]=(0,u.i)({prop:r,defaultProp:s??"",onChange:n,caller:c});return(0,f.jsx)(m,{scope:e.__scopeToggleGroup,type:"single",value:l.useMemo(()=>o?[o]:[],[o]),onItemActivate:a,onItemDeactivate:l.useCallback(()=>a(""),[a]),children:(0,f.jsx)(b,{...i,ref:t})})}),R=l.forwardRef((e,t)=>{let{value:r,defaultValue:s,onValueChange:n=()=>{},...i}=e,[o,a]=(0,u.i)({prop:r,defaultProp:s??[],onChange:n,caller:c}),d=l.useCallback(e=>a((t=[])=>[...t,e]),[a]),p=l.useCallback(e=>a((t=[])=>t.filter(t=>t!==e)),[a]);return(0,f.jsx)(m,{scope:e.__scopeToggleGroup,type:"multiple",value:o,onItemActivate:d,onItemDeactivate:p,children:(0,f.jsx)(b,{...i,ref:t})})});y.displayName=c;var[x,w]=d(c),b=l.forwardRef((e,t)=>{let{__scopeToggleGroup:r,disabled:l=!1,rovingFocus:s=!0,orientation:o,dir:u,loop:c=!0,...d}=e,p=h(r),y=(0,a.jH)(u),m={role:"group",dir:y,...d};return(0,f.jsx)(x,{scope:r,rovingFocus:s,disabled:l,children:s?(0,f.jsx)(i.bL,{asChild:!0,...p,orientation:o,dir:y,loop:c,children:(0,f.jsx)(n.sG.div,{...m,ref:t})}):(0,f.jsx)(n.sG.div,{...m,ref:t})})}),k="ToggleGroupItem",j=l.forwardRef((e,t)=>{let r=v(k,e.__scopeToggleGroup),s=w(k,e.__scopeToggleGroup),n=h(e.__scopeToggleGroup),o=r.value.includes(e.value),u=s.disabled||e.disabled,a={...e,pressed:o,disabled:u},c=l.useRef(null);return s.rovingFocus?(0,f.jsx)(i.q7,{asChild:!0,...n,focusable:!u,active:o,ref:c,children:(0,f.jsx)(A,{...a,ref:t})}):(0,f.jsx)(A,{...a,ref:t})});j.displayName=k;var A=l.forwardRef((e,t)=>
1{let{__scopeToggleGroup:r,value:l,...s}=e,n=v(k,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},u="single"===n.type?i:void 0;return(0,f.jsx)(o.Toggle,{...u,...s,ref:t,onPressedChange:e=>{e?n.onItemActivate(l):n.onItemDeactivate(l)}})}),C=y,I=j}}]);

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.