PageSourceSearch

https://libscie.org/_next/static/immutable/chunks/2xvdcd8pkkmev.js

js libscie.org collected 2026-10-03 21:38:49 UTC 33,996 bytes, 15 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,857592,541019,824488,e=>{"use strict";var t=e.i(843476),i=e.i(500932),r=e.i(326999),n=e.i(271645),s=e.i(760524),o=e.i(133564),a=e.i(322004),l=e.i(227086),c=e.i(248787),u=e.i(265658),d=e.i(12992);let h=e=>{let r,n,s=(0,i.c)(3);return s[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("path",{d:"M8.59574 3L13.8041 8M13.8041 8L8.59574 13M13.8041 8H2.19589",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s[0]=r):r=s[0],s[1]!==e?(n=(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:r}),s[1]=e,s[2]=n):n=s[2],n};e.s(["GoToArrowLined",0,h],541019);let p=({className:e,open:i,onOpenChange:l,asChild:p,onBack:f,trigger:m,title:g,id:v,contentRef:b,children:y,actionButton:x})=>{let{height:w,offsetTop:_,difference:j}=(0,a.useVisualViewport)(),C=(0,s.isIOS)()&&0!==j&&w>0,[S,k]=(0,n.useState)(!1),O=i??S,D=e=>{k(e),l?.(e)},T=(0,n.useRef)(null),P=(0,n.useRef)(null),I=e=>{P.current=e,"function"==typeof b?b(e):b&&(b.current=e)},M=(0,u.useTransition)(O,{from:{y:100,opacity:0},enter:{y:0,opacity:1},leave:{y:100,opacity:0},config:{tension:300,friction:30,clamp:!0}}),[{dragY:E},A]=(0,u.useSpring)(()=>({dragY:0}));(0,n.useEffect)(()=>{O&&A.set({dragY:0})},[O,A]);let N=(e,t,i)=>{e>.25*(T.current?.offsetHeight??0)||t>.5&&i>0?D(!1):A.start({dragY:0})},R=(0,d.useDrag)(({last:e,offset:[,t],velocity:[,i],direction:[,r]})=>{e?N(Math.max(0,t),i,r):A.set({dragY:Math.max(0,t)})},{axis:"y",from:()=>[0,E.get()]}),B=(0,d.useDrag)(({last:e,movement:[,t],velocity:[,i],direction:[,r],event:n,memo:s})=>{let o=s;if(!o){if(!("touches"in n)||(P.current?.scrollTop??0)>0||r<=0||(window.getSelection()?.toString().length??0)>0)return;o={engagedAt:t,base:E.get()}}n.cancelable&&n.preventDefault();let a=Math.max(0,o.base+t-o.engagedAt);return e?N(a,i,r):A.set({dragY:a}),o},{axis:"y",pointer:{touch:!0},eventOptions:{passive:!1},filterTaps:!0});return(0,t.jsxs)(r.Root,{open:O,onOpenChange:D,children:[void 0!==m&&(0,t.jsx)(r.Trigger,{asChild:p,children:m}),M((i,n)=>n?(0,t.jsxs)(r.Portal,{forceMount:!0,children:[(0,t.jsx)(r.Overlay,{forceMount:!0,asChild:!0,children:(0,t.jsx)(c.animated.div,{style:{opacity:(0,u.to)([i.opacity,E],(e,t)=>{let i=T.current?.offsetHeight;return i?e*Math.max(0,1-t/i):e})},className:"fixed z-50 inset-0 bg-primary/60 backdrop-blur-sm"})}),(0,t.jsx)(r.Content,{forceMount:!0,asChild:!0,children:(0,t.jsxs)(c.animated.div,{ref:T,style:{transform:(0,u.to)([i.y,E],(e,t)=>`translate3d(0, calc(${e}% + ${t}px), 0)`),...C?{bottom:`${j-_}px`,height:`${w-16}px`}:{}},className:"mobileSheet portalStyles z-50 fixed bottom-0 left-0 right-0 w-full h-[85dvh] flex flex-col text-primary",children:[(0,t.jsxs)("div",{className:"flex justify-end gap-3 pr-3",children:[f&&(0,t.jsx)("button",{type:"button",onClick:f,className:"bg-bg-page rounded-full mb-2 mr-0  z-10 w-fit p-0.5 place-self-end border border-border-light text-tertiary",children:(0,t.jsx)(h,{className:"rotate-180"})}),(0,t.jsx)(r.Close,{className:"bg-bg-page rounded-full mb-2 mr-0  z-10 w-fit p-0.5 place-self-end border border-border-light text-tertiary",children:(0,t.jsx)(o.CloseTiny,{})})]}),(0,t.jsxs)("div",{className:"opaque-container pwa-padding-bottom flex flex-col rounded-b-none! rounded-t-lg! h-full overflow-hidden",children:[(0,t.jsx)("div",{...R(),className:"touch-none shrink-0 flex justify-center pt-2 pb-1 cursor-grab active:cursor-grabbing",children:(0,t.jsx)("div",{className:"w-9 h-1 rounded-full bg-border"})}),(0,t.jsxs)("div",{...B(),ref:I,id:v,className:`
2                    px-3 pb-3 pt-1 flex flex-col grow
3                    overflow-y-scroll overscroll-y-contain
4                    ${e}`,children:[(0,t.jsx)("div",{className:"flex justify-between gap-4",children:g?(0,t.jsxs)("div",{className:"w-full flex items-center gap-2 mb-2",children:[(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsx)(r.Title,{asChild:!0,children:(0,t.jsx)("h3",{className:"text-primary",children:g})})}),x&&x]}):(0,t.jsx)(r.Title,{})}),(0,t.jsx)(r.Description,{asChild:!0,children:(0,t.jsxs)("div",{className:"flex flex-col",children:[y,(0,t.jsx)("div",{className:"spacer h-6"})]})})]})]})]})})]}):null)]})};e.s(["MobileSheet",0,p],824488);let f=(0,n.createContext)(null),m=e=>{let r,n=(0,i.c)(12);if(!(0,l.useIsMobile)()){let i;return n[0]!==e?(i=(0,t.jsx)(g,{...e}),n[0]=e,n[1]=i):i=n[1],i}return n[2]!==e.actionButton||n[3]!==e.asChild||n[4]!==e.children||n[5]!==e.onBack||n[6]!==e.onOpenChange||n[7]!==e.open||n[8]!==e.sheetClassName||n[9]!==e.title||n[10]!==e.trigger?(r=(0,t.jsx)(p,{className:e.sheetClassName,open:e.open,onOpenChange:e.onOpenChange,asChild:e.asChild,trigger:e.trigger,title:e.title,actionButton:e.actionButton,onBack:e.onBack,children:e.children}),n[2]=e.actionButton,n[3]=e.asChild,n[4]=e.children,n[5]=e.onBack,n[6]=e.onOpenChange,n[7]=e.open,n[8]=e.sheetClassName,n[9]=e.title,n[10]=e.trigger,n[11]=r):r=n[11],r},g=e=>{let n,l,c,u,d,p,f,m,g,v,b,y,x,w,_=(0,i.c)(42),{className:j,open:C,onOpenChange:S,asChild:k,trigger:O,actionButton:D,title:T,children:P,onBack:I}=e,{height:M,offsetTop:E,difference:A}=(0,a.useVisualViewport)();_[0]!==A||_[1]!==M?(n=(0,s.isIOS)()&&0!==A&&M>0,_[0]=A,_[1]=M,_[2]=n):n=_[2];let N=n;_[3]!==k||_[4]!==O?(l=void 0!==O&&(0,t.jsx)(r.Trigger,{asChild:k,children:O}),_[3]=k,_[4]=O,_[5]=l):l=_[5],_[6]!==M||_[7]!==N||_[8]!==E?(c=N?{top:`${E}px`,height:`${M}
4px`}:void 0,_[6]=M,_[7]=N,_[8]=E,_[9]=c):c=_[9],_[10]!==c?(u=(0,t.jsx)(r.Overlay,{style:c,className:"fixed z-50 inset-0 bg-primary/60 backdrop-blur-sm data-[state=open]:animate-overlayShow"}),_[10]=c,_[11]=u):u=_[11],_[12]!==M||_[13]!==N||_[14]!==E?(d=N?{top:`${E+M/2}px`,maxHeight:`${M-32}px`}:void 0,_[12]=M,_[13]=N,_[14]=E,_[15]=d):d=_[15],_[16]!==I?(p=I&&(0,t.jsx)("button",{className:"bg-bg-page rounded-full mb-2 mr-0  z-10 w-fit p-0.5 place-self-end border border-border-light text-tertiary",type:"button",onClick:I,children:(0,t.jsx)(h,{className:"rotate-180"})}),_[16]=I,_[17]=p):p=_[17],_[18]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)(r.Close,{className:"bg-bg-page rounded-full mb-2 mr-0  z-10 w-fit p-0.5 place-self-end border border-border-light text-tertiary",children:(0,t.jsx)(o.CloseTiny,{})}),_[18]=f):f=_[18],_[19]!==p?(m=(0,t.jsxs)("div",{className:"flex gap-3 justify-end",children:[p,f]}),_[19]=p,_[20]=m):m=_[20];let R=`
5            opaque-container p-3
6            flex flex-col rounded-lg! min-h-0 overflow-y-scroll mb-[30px]
7            ${j}`;return _[21]!==D||_[22]!==T?(g=T?(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-start pb-1 ",children:[(0,t.jsx)(r.Title,{asChild:!0,children:(0,t.jsx)("h3",{className:"text-primary grow",children:T})}),D&&D]}):(0,t.jsx)(r.Title,{}),_[21]=D,_[22]=T,_[23]=g):g=_[23],_[24]!==P?(v=(0,t.jsx)(r.Description,{asChild:!0,children:(0,t.jsx)("div",{children:P})}),_[24]=P,_[25]=v):v=_[25],_[26]!==g||_[27]!==v||_[28]!==R?(b=(0,t.jsxs)("div",{className:R,children:[g,v]}),_[26]=g,_[27]=v,_[28]=R,_[29]=b):b=_[29],_[30]!==b||_[31]!==d||_[32]!==m?(y=(0,t.jsxs)(r.Content,{style:d,className:`
8          portalStyles
9          z-50 fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2
10          overflow-y-scroll no-scrollbar max-w-[calc(100vw-32px)] h-fit max-h-[calc(100dvh-32px)] flex flex-col w-full sm:w-max text-primary
11          `,children:[m,b]}),_[30]=b,_[31]=d,_[32]=m,_[33]=y):y=_[33],_[34]!==y||_[35]!==u?(x=(0,t.jsxs)(r.Portal,{children:[u,y]}),_[34]=y,_[35]=u,_[36]=x):x=_[36],_[37]!==S||_[38]!==C||_[39]!==x||_[40]!==l?(w=(0,t.jsxs)(r.Root,{open:C,onOpenChange:S,children:[l,x]}),_[37]=S,_[38]=C,_[39]=x,_[40]=l,_[41]=w):w=_[41],w};e.s(["Modal",0,e=>{let r,s,o,a,l,c,u=(0,i.c)(12);u[0]===Symbol.for("react.memo_cache_sentinel")?(r=[],u[0]=r):r=u[0];let[d,h]=(0,n.useState)(r);u[1]===Symbol.for("react.memo_cache_sentinel")?(o=e=>(h(t=>[...t,e]),()=>h(t=>t.filter(t=>t!==e))),u[1]=o):o=u[1],s=o;let p=d[d.length-1]?.run;u[2]!==e.children?(a=(0,t.jsx)(f.Provider,{value:s,children:e.children}),u[2]=e.children,u[3]=a):a=u[3],u[4]!==e||u[5]!==p||u[6]!==a?(l={...e,onBack:p,children:a},u[4]=e,u[5]=p,u[6]=a,u[7]=l):l=u[7];let v=l;if(e.sheetOnMobile){let e;return u[8]!==v?(e=(0,t.jsx)(m,{...v}),u[8]=v,u[9]=e):e=u[9],e}return u[10]!==v?(c=(0,t.jsx)(g,{...v}),u[10]=v,u[11]=c):c=u[11],c},"useModalBack",0,function(e){let t=(0,n.useContext)(f),i=(0,n.useRef)(e);i.current=e;let r=!!e;(0,n.useEffect)(()=>{if(t&&r)return t({run:()=>i.current?.()})},[t,r])}],857592)},326999,e=>{"use strict";var t=e.i(271645),i=e.i(981140),r=e.i(820783),n=e.i(30030),s=e.i(610772),o=e.i(369340),a=e.i(726330),l=e.i(765491),c=e.i(774606),u=e.i(296626),d=e.i(248425),h=e.i(303536),p=e.i(985369),f=e.i(186312),m=e.i(991918),g=e.i(843476),v="Dialog",[b,y]=(0,n.createContextScope)(v),[x,w]=b(v),_=e=>{let{__scopeDialog:i,children:r,open:n,defaultOpen:a,onOpenChange:l,modal:c=!0}=e,u=t.useRef(null),d=t.useRef(null),[h,p]=(0,o.useControllableState)({prop:n,defaultProp:a??!1,onChange:l,caller:v});return(0,g.jsx)(x,{scope:i,triggerRef:u,contentRef:d,contentId:(0,s.useId)(),titleId:(0,s.useId)(),descriptionId:(0,s.useId)(),open:h,onOpenChange:p,onOpenToggle:t.useCallback(()=>p(e=>!e),[p]),modal:c,children:r})};_.displayName=v;var j="DialogTrigger",C=t.forwardRef((e,t)=>{let{__scopeDialog:n,...s}=e,o=w(j,n),a=(0,r.useComposedRefs)(t,o.triggerRef);return(0,g.jsx)(d.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":U(o.open),...s,ref:a,onClick:(0,i.composeEventHandlers)(e.onClick,o.onOpenToggle)})});C.displayName=j;var S="DialogPortal",[k,O]=b(S,{forceMount:void 0}),D=e=>{let{__scopeDialog:i,forceMount:r,children:n,container:s}=e,o=w(S,i);return(0,g.jsx)(k,{scope:i,forceMount:r,children:t.Children.map(n,e=>(0,g.jsx)(u.Presence,{present:r||o.open,children:(0,g.jsx)(c.Portal,{asChild:!0,container:s,children:e})}))})};D.displayName=S;var T="DialogOverlay",P=t.forwardRef((e,t)=>
11{let i=O(T,e.__scopeDialog),{forceMount:r=i.forceMount,...n}=e,s=w(T,e.__scopeDialog);return s.modal?(0,g.jsx)(u.Presence,{present:r||s.open,children:(0,g.jsx)(M,{...n,ref:t})}):null});P.displayName=T;var I=(0,m.createSlot)("DialogOverlay.RemoveScroll"),M=t.forwardRef((e,t)=>{let{__scopeDialog:i,...r}=e,n=w(T,i);return(0,g.jsx)(p.RemoveScroll,{as:I,allowPinchZoom:!0,shards:[n.contentRef],children:(0,g.jsx)(d.Primitive.div,{"data-state":U(n.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),E="DialogContent",A=t.forwardRef((e,t)=>{let i=O(E,e.__scopeDialog),{forceMount:r=i.forceMount,...n}=e,s=w(E,e.__scopeDialog);return(0,g.jsx)(u.Presence,{present:r||s.open,children:s.modal?(0,g.jsx)(N,{...n,ref:t}):(0,g.jsx)(R,{...n,ref:t})})});A.displayName=E;var N=t.forwardRef((e,n)=>{let s=w(E,e.__scopeDialog),o=t.useRef(null),a=(0,r.useComposedRefs)(n,s.contentRef,o);return t.useEffect(()=>{let e=o.current;if(e)return(0,f.hideOthers)(e)},[]),(0,g.jsx)(B,{...e,ref:a,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),s.triggerRef.current?.focus()}),onPointerDownOutside:(0,i.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,i=0===t.button&&!0===t.ctrlKey;(2===t.button||i)&&e.preventDefault()}),onFocusOutside:(0,i.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})}),R=t.forwardRef((e,i)=>{let r=w(E,e.__scopeDialog),n=t.useRef(!1),s=t.useRef(!1);return(0,g.jsx)(B,{...e,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(s.current=!0));let i=t.target;r.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&s.current&&t.preventDefault()}})}),B=t.forwardRef((e,i)=>{let{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:c,...u}=e,d=w(E,n),p=t.useRef(null),f=(0,r.useComposedRefs)(i,p);return(0,h.useFocusGuards)(),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.FocusScope,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:o,onUnmountAutoFocus:c,children:(0,g.jsx)(a.DismissableLayer,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":U(d.open),...u,ref:f,onDismiss:()=>d.onOpenChange(!1)})}),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(q,{titleId:d.titleId}),(0,g.jsx)(G,{contentRef:p,descriptionId:d.descriptionId})]})]})}),L="DialogTitle",K=t.forwardRef((e,t)=>{let{__scopeDialog:i,...r}=e,n=w(L,i);return(0,g.jsx)(d.Primitive.h2,{id:n.titleId,...r,ref:t})});K.displayName=L;var H="DialogDescription",V=t.forwardRef((e,t)=>{let{__scopeDialog:i,...r}=e,n=w(H,i);return(0,g.jsx)(d.Primitive.p,{id:n.descriptionId,...r,ref:t})});V.displayName=H;var F="DialogClose",$=t.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,s=w(F,r);return(0,g.jsx)(d.Primitive.button,{type:"button",...n,ref:t,onClick:(0,i.composeEventHandlers)(e.onClick,()=>s.onOpenChange(!1))})});function U(e){return e?"open":"closed"}$.displayName=F;var z="DialogTitleWarning",[Y,W]=(0,n.createContext)(z,{contentName:E,titleName:L,docsSlug:"dialog"}),q=({titleId:e})=>{let i=W(z),r=`\`${i.contentName}\` requires a \`${i.titleName}\` for the component to be accessible for screen reader users.
12
13If you want to hide the \`${i.titleName}\`, you can wrap it with our VisuallyHidden component.
14
15For more information, see https://radix-ui.com/primitives/docs/components/${i.docsSlug}`;return t.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},G=({contentRef:e,descriptionId:i})=>{let r=W("DialogDescriptionWarning"),n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return t.useEffect(()=>{let t=e.current?.getAttribute("aria-describedby");i&&t&&(document.getElementById(i)||console.warn(n))},[n,e,i]),null};e.s(["Close",0,$,"Content",0,A,"Description",0,V,"Overlay",0,P,"Portal",0,D,"Root",0,_,"Title",0,K,"Trigger",0,C])},12992,e=>{"use strict";let t={toVector:(e,t)=>
15(void 0===e&&(e=t),Array.isArray(e)?e:[e,e]),add:(e,t)=>[e[0]+t[0],e[1]+t[1]],sub:(e,t)=>[e[0]-t[0],e[1]-t[1]],addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function i(e,t,i){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*i):e*t*i/(t+i*e)}function r(e,t,n,s=.15){return 0===s?Math.max(t,Math.min(e,n)):e<t?-i(t-e,n-t,s)+t:e>n?+i(e-n,n-t,s)+n:e}function n(e,t,i){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach(function(t){n(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}let a={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function l(e){return e?e[0].toUpperCase()+e.slice(1):""}let c=["enter","leave"],u=["gotpointercapture","lostpointercapture"];function d(e){return"touches"in e}function h(e){return d(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function p(e){return d(e)?("touchend"===e.type||"touchcancel"===e.type?e.changedTouches:e.targetTouches)[0]:e}function f(e){let t=p(e);return d(e)?t.identifier:t.pointerId}function m(e){let t=p(e);return[t.clientX,t.clientY]}function g(e,...t){return"function"==typeof e?e(...t):e}function v(){}function b(e,t){return Object.assign({},t,e||{})}class y{constructor(e,t,i){this.ctrl=e,this.args=t,this.key=i,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){let{state:e,shared:t,ingKey:i,args:r}=this;t[i]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){let t=this.state,i=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=i.from?g(i.from,t):t.offset,t.offset=t.lastOffset,t.startTime=t.timeStamp=e.timeStamp)}computeValues(e){let t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){let e=this.state;e._initial=e._values,e.initial=e.values}compute(e){let{state:i,config:n,shared:s}=this;i.args=this.args;let o=0;if(e&&(i.event=e,n.preventDefault&&e.cancelable&&i.event.preventDefault(),i.type=e.type,s.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,s.locked=!!document.pointerLockElement,Object.assign(s,function(e){let t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){let{shiftKey:i,altKey:r,metaKey:n,ctrlKey:s}=e;Object.assign(t,{shiftKey:i,altKey:r,metaKey:n,ctrlKey:s})}return t}(e)),s.down=s.pressed=s.buttons%2==1||s.touches>0,o=e.timeStamp-i.timeStamp,i.timeStamp=e.timeStamp,i.elapsedTime=i.timeStamp-i.startTime),i._active){let e=i._delta.map(Math.abs);t.addTo(i._distance,e)}this.axisIntent&&this.axisIntent(e);let[a,l]=i._movement,[c,u]=n.threshold,{_step:d,values:h}=i;if(n.hasCustomTransform?(!1===d[0]&&(d[0]=Math.abs(a)>=c&&h[0]),!1===d[1]&&(d[1]=Math.abs(l)>=u&&h[1])):(!1===d[0]&&(d[0]=Math.abs(a)>=c&&Math.sign(a)*c),!1===d[1]&&(d[1]=Math.abs(l)>=u&&Math.sign(l)*u)),i.intentional=!1!==d[0]||!1!==d[1],!i.intentional)return;let p=[0,0];if(n.hasCustomTransform){let[e,t]=h;p[0]=!1!==d[0]?e-d[0]:0,p[1]=!1!==d[1]?t-d[1]:0}
15else p[0]=!1!==d[0]?a-d[0]:0,p[1]=!1!==d[1]?l-d[1]:0;this.restrictToAxis&&!i._blocked&&this.restrictToAxis(p);let f=i.offset,m=i._active&&!i._blocked||i.active;m&&(i.first=i._active&&!i.active,i.last=!i._active&&i.active,i.active=s[this.ingKey]=i._active,e&&(i.first&&("bounds"in n&&(i._bounds=g(n.bounds,i)),this.setup&&this.setup()),i.movement=p,this.computeOffset()));let[v,b]=i.offset,[[y,x],[w,_]]=i._bounds;i.overflow=[v<y?-1:+(v>x),b<w?-1:+(b>_)],i._movementBound[0]=!!i.overflow[0]&&(!1===i._movementBound[0]?i._movement[0]:i._movementBound[0]),i._movementBound[1]=!!i.overflow[1]&&(!1===i._movementBound[1]?i._movement[1]:i._movementBound[1]);let j=i._active&&n.rubberband||[0,0];if(i.offset=function(e,[t,i],[n,s]){let[[o,a],[l,c]]=e;return[r(t,o,a,n),r(i,l,c,s)]}(i._bounds,i.offset,j),i.delta=t.sub(i.offset,f),this.computeMovement(),m&&(!i.last||o>32)){i.delta=t.sub(i.offset,f);let e=i.delta.map(Math.abs);t.addTo(i.distance,e),i.direction=i.delta.map(Math.sign),i._direction=i._delta.map(Math.sign),!i.first&&o>0&&(i.velocity=[e[0]/o,e[1]/o],i.timeDelta=o)}}emit(){let e=this.state,t=this.shared,i=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!i.triggerAllEvents)return;let r=this.handler(o(o(o({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class x extends y{constructor(...e){super(...e),n(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=t.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=t.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){let t=this.state,i=this.config;if(!t.axis&&e){let r="object"==typeof i.axisThreshold?i.axisThreshold[h(e)]:i.axisThreshold;t.axis=function([e,t],i){let r=Math.abs(e),n=Math.abs(t);return r>n&&r>i?"x":n>r&&n>i?"y":void 0}(t._movement,r)}t._blocked=(i.lockDirection||!!i.axis)&&!t.axis||!!i.axis&&i.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0}}}let w=e=>e,_={enabled:(e=!0)=>e,eventOptions:(e,t,i)=>o(o({},i.shared.eventOptions),e),preventDefault:(e=!1)=>e,triggerAllEvents:(e=!1)=>e,rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return t.toVector(e)}},from:e=>"function"==typeof e?e:null!=e?t.toVector(e):void 0,transform(e,t,i){let r=e||i.shared.transform;return this.hasCustomTransform=!!r,r||w},threshold:e=>t.toVector(e,0)},j=0,C=o(o({},_),{},{axis(e,t,{axis:i}){if(this.lockDirection="lock"===i,!this.lockDirection)return i},axisThreshold:(e=j)=>e,bounds(e={}){if("function"==typeof e)return t=>C.bounds(e(t));if("current"in e)return()=>e.current;if("function"==typeof HTMLElement&&e instanceof HTMLElement)return e;let{left:t=-1/0,right:i=1/0,top:r=-1/0,bottom:n=1/0}=e;return[[t,i],[r,n]]}}),S={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]},k="u">typeof window&&window.document&&window.document.createElement;function O(){return k&&"ontouchstart"in window}let D={isBrowser:k,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:O(),touchscreen:O()||k&&window.navigator.maxTouchPoints>1,pointer:k&&"onpointerdown"in window,pointerLock:k&&"exitPointerLock"in window.document},T=10,P={mouse:0,touch:0,pen:8},I=o(o({},C),{},{device(e,t,{pointer:{touch:i=!1,lock:r=!1,mouse:n=!1}={}}){return(this.pointerLock=r&&D.pointerLock,D.touch&&i)?"touch":this.pointerLock?"mouse":D.pointer&&!n?"pointer":D.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:i}){if(this.preventScrollDelay="number"==typeof i?i:i||void 0===i&&e?250:void 0,D.touchscreen&&!1!==i)return e||(void 0!==i?"y":void 0)},pointerCapture(e,t,{pointer:{capture:i=!0,buttons:r=1,keys:n=!0}={}}){return this.pointerButtons=r,this.keys=n,!this.pointerLock&&"pointer"===this.device&&i},threshold(e,i,{filterTaps:r=!1,tapsThreshold:n=3,axis:s}){let o=t.toVector(e,r?n:+!!s);return this.filterTaps=r,this.tapsThreshold=n,o},swipe({velocity:e=.5,distance:i=50,duration:r=250}={}){return{velocity:this.transform(t.toVector(e)),distance:this.transform(t.toVector(i)),duration:r}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold:e=>e?o(o({},P),e):P,keyboardDisplacement:(e=T)=>e});o(o({},_),{},{device(e,t,{shared:i,pointer:{touch:r=!1}={}}){if(i.target&&!D.touch&&D.gesture)return"gesture";if(D.touch&&r)return"touch";if(D.touchscreen){if(D.pointer)return"pointer";if(D.touch)return"touch"}},bounds(e,t,{scaleBounds:i={},angleBounds:r={}}){let n=e=>{let t=b(g(i,e),{min:-1/0,max:1/0});return[t.min,t.max]},s=e=>{let t=b(g(r,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof i&&"function"!=typeof r?[n(),s()]:e=>[n(e),s(e)]},threshold(e,i,r){return this.lockDirection="lock"===r.axis,t.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey:e=>void 0===e?"ctrlKey":e,pinchOnWheel:(e=!0)=>e}),o(o({},C),{},{mouseOnly:(e=!0)=>e}),o(o({},C),{},{mouseOnly:(e=!0)=>e});let M=new Map,E=new Map,A={key:"drag",engine:class extends x{constructor(...e){super(...e),n(this,"ingKey","dragging")}reset(){super.reset();let e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){let e=this.state;if(e._bounds instanceof HTMLElement){let t=e._bounds.getBoundingClientRect(),i=e.currentTarget.getBoundingClientRect(),r={left:t.left-i.left+e.offset[0],right:t.right-i.right+e.offset[0],top:t.top-i.top+e.offset[1],bottom:t.bottom-i.bottom+e.offset[1]};e._bounds=C.bounds(r)}}cancel(){let e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>
15{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){let t=this.config,i=this.state;if(null!=e.buttons&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):-1!==t.pointerButtons&&t.pointerButtons!==e.buttons))return;let r=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),r&&r.size>1&&i._pointerActive||(this.start(e),this.setupPointer(e),i._pointerId=f(e),i._pointerActive=!0,this.computeValues(m(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==h(e)?(i._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){let t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){let i=this.state,r=this.config;if(!i._pointerActive)return;let n=f(e);if(void 0!==i._pointerId&&n!==i._pointerId)return;let s=m(e);if(document.pointerLockElement===e.target?i._delta=[e.movementX,e.movementY]:(i._delta=t.sub(s,i._values),this.computeValues(s)),t.addTo(i._movement,i._delta),this.compute(e),i._delayed&&i.intentional){this.timeoutStore.remove("dragDelay"),i.active=!1,this.startPointerDrag(e);return}if(r.preventScrollAxis&&!i._preventScroll)if(!i.axis)return;else if(i.axis===r.preventScrollAxis||"xy"===r.preventScrollAxis){i._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(e){}let t=this.state,i=this.config;if(!t._active||!t._pointerActive)return;let r=f(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);let[n,s]=t._distance;if(t.tap=n<=i.tapsThreshold&&s<=i.tapsThreshold,t.tap&&i.filterTaps)t._force=!0;else{let[e,r]=t._delta,[n,s]=t._movement,[o,a]=i.swipe.velocity,[l,c]=i.swipe.distance,u=i.swipe.duration;if(t.elapsedTime<u){let i=Math.abs(e/t.timeDelta),u=Math.abs(r/t.timeDelta);i>o&&Math.abs(n)>l&&(t.swipe[0]=Math.sign(e)),u>a&&Math.abs(s)>c&&(t.swipe[1]=Math.sign(r))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){let t=this.config,i=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){var t;this.state._preventScroll=!1,"persist"in(t=e)&&"function"==typeof t.persist&&t.persist();let i=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",i),this.eventStore.add(this.sharedConfig.window,"touch","cancel",i),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){let i=S[e.key];if(i){let r=this.state,n=e.shiftKey?10:e.altKey?.1:1;this.start(e),r._delta=i(this.config.keyboardDisplacement,n),r._keyboardActive=!0,t.addTo(r._movement,r._delta),this.compute(e),this.emit()}}keyUp(e){e.key in S&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){let t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:I};var N=e.i(271645);let R={target(e){if(e)return()=>"current"in e?e.current:e},enabled:(e=!0)=>e,window:(e=D.isBrowser?window:void 0)=>e,eventOptions:({passive:e=!0,capture:t=!1}={})=>({passive:e,capture:t}),transform:e=>e},B=["target","eventOptions","window","enabled","transform"];function L(e={},t){let i={};for(let[r,n]of Object.entries(t))switch(typeof n){case"function":i[r]=n.call(i,e[r],r,e);break;case"object":i[r]=L(e[r],n);break;case"boolean":n&&(i[r]=e[r])}return i}class K{constructor(e,t){n(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,i,r,n){let s=this._listeners,l=function(e,t=""){let i=a[e];return e+(i&&i[t]||t)}(t,i),c=o(o({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),n);e.addEventListener(l,r,c);let u=()=>{e.removeEventListener(l,r,c),s.delete(u)};return s.add(u),u}
15clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class H{constructor(){n(this,"_timeouts",new Map)}add(e,t,i=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,i,...r))}remove(e){let t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class V{constructor(e){n(this,"gestures",new Set),n(this,"_targetEventStore",new K(this)),n(this,"gestureEventStores",{}),n(this,"gestureTimeoutStores",{}),n(this,"handlers",{}),n(this,"config",{}),n(this,"pointerIds",new Set),n(this,"touchIds",new Set),n(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&F(e,"drag"),t.wheel&&F(e,"wheel"),t.scroll&&F(e,"scroll"),t.move&&F(e,"move"),t.pinch&&F(e,"pinch"),t.hover&&F(e,"hover")}(this,e)}setEventIds(e){if(d(e))return this.touchIds=new Set(Array.from(e.touches).filter(t=>{var i,r;return t.target===e.currentTarget||(null==(i=e.currentTarget)||null==(r=i.contains)?void 0:r.call(i,t.target))}).map(e=>e.identifier)),this.touchIds;if("pointerId"in e)return"pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=function(e,t,i={}){let{target:r,eventOptions:n,window:s,enabled:a,transform:l}=e,c=function(e,t){if(null==e)return{};var i,r,n=function(e,t){if(null==e)return{};var i,r,n={},s=Object.keys(e);for(r=0;r<s.length;r++)i=s[r],t.indexOf(i)>=0||(n[i]=e[i]);return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)i=s[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}(e,B);if(i.shared=L({target:r,eventOptions:n,window:s,enabled:a,transform:l},R),t){let e=E.get(t);i[t]=L(o({shared:i.shared},c),e)}else for(let e in c){let t=E.get(e);t&&(i[e]=L(o({shared:i.shared},c[e]),t))}return i}(e,t,this.config)}clean(){for(let e of(this._targetEventStore.clean(),this.gestures))this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){let t,i=this.config.shared,r={};if(!i.target||(t=i.target())){if(i.enabled){for(let i of this.gestures){let n=this.config[i],s=$(r,n.eventOptions,!!t);n.enabled&&new(M.get(i))(this,e,i).bind(s)}let n=$(r,i.eventOptions,!!t);for(let t in this.nativeHandlers)n(t,"",i=>this.nativeHandlers[t](o(o({},this.state.shared),{},{event:i,args:e})),void 0,!0)}for(let e in r)r[e]=function(...e){return 0===e.length?v:1===e.length?e[0]:function(){let t;for(let i of e)t=i.apply(this,arguments)||t;return t}}(...r[e]);if(!t)return r;for(let e in r){let{device:i,capture:n,passive:s}=function(e){let t=e.substring(2).toLowerCase(),i=!!~t.indexOf("passive");i&&(t=t.replace("passive",""));let r=u.includes(t)?"capturecapture":"capture",n=!!~t.indexOf(r);return n&&(t=t.replace("capture","")),{device:t,capture:n,passive:i}}(e);this._targetEventStore.add(t,i,"",r[e],{capture:n,passive:s})}}}}function F(e,t){e.gestures.add(t),e.gestureEventStores[t]=new K(e,t),e.gestureTimeoutStores[t]=new H}let $=(e,t,i)=>(r,n,s,o={},u=!1)=>{var d,h;let p=null!=(d=o.capture)?d:t.capture,f=null!=(h=o.passive)?h:t.passive,m=u?r:function(e,t="",i=!1){let r=a[e],n=r&&r[t]||t;return"on"+l(e)+l(n)+(!function(e=!1,t){return e&&!c.includes(t)}(i,n)?"":"Capture")}(r,n,p);i&&f&&(m+="Passive"),e[m]=e[m]||[],e[m].push(s)};e.s(["useDrag",0,function(e,t){return M.set(A.key,A.engine),E.set(A.key,A.resolver),function(e,t={},i){let r=N.default.useMemo(()=>new V(e),[]);if(r.applyHandlers(e,void 0),r.applyConfig(t,i),N.default.useEffect(r.effect.bind(r)),N.default.useEffect(()=>r.clean.bind(r),[]),void 0===t.target)return r.bind.bind(r)}({drag:e},t||{},"drag")}],12992)}]);

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.