PageSourceSearch

https://www.citypharmacy.ca/_next/static/chunks/7d45c3fb6f1d661d.js?dpl=dpl_9m7aK48eAmZWSC9YjmezBvngZVNX

js citypharmacy.ca collected 2026-10-04 02:26:04 UTC 28,994 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,83698,t=>{"use strict";var e,n=t.i(95894),i=t.i(32484),s=t.i(13236);let o=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function r(t){if("string"!=typeof t||t.includes("-"));else if(o.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.i(52941);var a=t.i(22898);let l=(0,s.createContext)({}),u=(0,s.createContext)({strict:!1}),h=(0,s.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),c=(0,s.createContext)({});var d=t.i(87632),m=t.i(4103);function p(t){return Array.isArray(t)?t.join(" "):t}var v=t.i(35173),f=t.i(85777),g=t.i(5598);let x=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function y(t,e,n){for(let i in e)(0,v.isMotionValue)(e[i])||(0,f.isForcedMotionValue)(i,n)||(t[i]=e[i])}var P=t.i(36504),w=t.i(89566);let E=()=>({...x(),attrs:{}}),S=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function M(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||S.has(t)}let C=t=>!M(t);try{e=t.r(70606).default,"function"==typeof e&&(C=t=>t.startsWith("on")?!M(t):e(t))}catch{}var A=t.i(54233),b=t.i(15971),L=t.i(14103),T=t.i(57218);let D=(0,s.createContext)(null),V=t=>(e,n)=>{let i,o=(0,s.useContext)(c),r=(0,s.useContext)(D),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,s){return{latestValues:function(t,e,n,i){let s={},o=i(t,{});for(let t in o)s[t]=(0,b.resolveMotionValue)(o[t]);let{initial:r,animate:a}=t,l=(0,d.isControllingVariants)(t),u=(0,d.isVariantNode)(t);e&&u&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let h=!!n&&!1===n.initial,c=(h=h||!1===r)?a:r;if(c&&"boolean"!=typeof c&&!(0,L.isAnimationControls)(c)){let e=Array.isArray(c)?c:[c];for(let n=0;n<e.length;n++){let i=(0,T.resolveVariantFromProps)(t,e[n]);if(i){let{transitionEnd:t,transition:e,...n}=i;for(let t in n){let e=n[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(n,i,s,t),renderState:e()}})(t,e,o,r);return n?a():(null===(i=(0,s.useRef)(null)).current&&(i.current=a()),i.current)},F=V({scrapeMotionValuesFromProps:A.scrapeHTMLMotionValuesFromProps,createRenderState:x}),I=V({scrapeMotionValuesFromProps:t.i(99).scrapeSVGMotionValuesFromProps,createRenderState:E}),k="u">typeof window;var j=t.i(73057);let R={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},W=!1;function H(){return!function(){if(W)return;let t={};for(let e in R)t[e]={isEnabled:t=>R[e].some(e=>!!t[e])};(0,j.setFeatureDefinitions)(t),W=!0}(),(0,j.getFeatureDefinitions)()}let B=Symbol.for("motionComponentSymbol");var O=t.i(85099);let U=(0,s.createContext)({});function N(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let G=k?s.useLayoutEffect:s.useEffect;function X(t,{forwardMotionProps:e=!1,type:n}={},i,o){i&&function(t){let e=H();for(let n in t)e[n]={...e[n],...t[n]};(0,j.setFeatureDefinitions)(e)}(i);let f=n?"svg"===n:r(t),S=f?I:F;function A(n,i){var A;let b,L,T,V={...(0,s.useContext)(h),...n,layoutId:function({layoutId:t}){let e=(0,s.useContext)(l).id;return e&&void 0!==t?e+"-"+t:t}(n)},{isStatic:F}=V,I=function(t){let{initial:e,animate:n}=function(t,e){if((0,d.isControllingVariants)(t)){let{initial:e,animate:n}=t;return{initial:!1===e||(0,m.isVariantLabel)(e)?e:void 0,animate:(0,m.isVariantLabel)(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(c));return(0,s.useMemo)(()=>({initial:e,animate:n}),[p(e),p(n)])}(n),j=S(n,F);if(!F&&k){(0,s.useContext)(u).strict;let e=function(t){let{drag:e,layout:n}=H();if(!e&&!n)return{};let i={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}
1(V);b=e.MeasureLayout,I.visualElement=function(t,e,n,i,o,r){let{visualElement:a}=(0,s.useContext)(c),l=(0,s.useContext)(u),d=(0,s.useContext)(D),m=(0,s.useContext)(h),p=m.reducedMotion,v=m.skipAnimations,f=(0,s.useRef)(null),g=(0,s.useRef)(!1);i=i||l.renderer,!f.current&&i&&(f.current=i(t,{visualState:e,parent:a,props:n,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p,skipAnimations:v,isSVG:r}),g.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let x=f.current,y=(0,s.useContext)(U);x&&!x.projection&&o&&("html"===x.type||"svg"===x.type)&&function(t,e,n,i){let{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!r||a&&N(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,crossfade:h,layoutScroll:l,layoutRoot:u})}(f.current,n,o,y);let P=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{x&&P.current&&x.update(n,d)});let w=n[O.optimizedAppearDataAttribute],E=(0,s.useRef)(!!w&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return G(()=>{g.current=!0,x&&(P.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),E.current&&x.animationState&&x.animationState.animateChanges())}),(0,s.useEffect)(()=>{x&&(!E.current&&x.animationState&&x.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),E.current=!1),x.enteringChildren=void 0)}),x}(t,j,V,o,e.ProjectionNode,f)}return(0,a.jsxs)(c.Provider,{value:I,children:[b&&I.visualElement?(0,a.jsx)(b,{visualElement:I.visualElement,...V}):null,function(t,e,n,{latestValues:i},o,a=!1,l){let u=(l??r(t)?function(t,e,n,i){let o=(0,s.useMemo)(()=>{let n=E();return(0,P.buildSVGAttrs)(n,e,(0,w.isSVGTag)(i),t.transformTemplate,t.style),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};y(e,t.style,t),o.style={...e,...o.style}}return o}:function(t,e){let n,i,o={},r=(n=t.style||{},y(i={},n,t),Object.assign(i,function({transformTemplate:t},e){return(0,s.useMemo)(()=>{let n=x();return(0,g.buildHTMLStyles)(n,e,t),Object.assign({},n.vars,n.style)},[e])}(t,e)),i);return t.drag&&!1!==t.dragListener&&(o.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(o.tabIndex=0),o.style=r,o})(e,i,o,t),h=function(t,e,n){let i={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(C(s)||!0===n&&M(s)||!e&&!M(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(e,"string"==typeof t,a),c=t!==s.Fragment?{...h,...u,ref:n}:{},{children:d}=e,m=(0,s.useMemo)(()=>(0,v.isMotionValue)(d)?d.get():d,[d]);return(0,s.createElement)(t,{...c,children:m})}(t,n,(A=I.visualElement,L=(0,s.useRef)(i),(0,s.useInsertionEffect)(()=>{L.current=i}),T=(0,s.useRef)(null),(0,s.useCallback)(t=>{t&&j.onMount?.(t),A&&(t?A.mount(t):A.unmount());let e=L.current;if("function"==typeof e)if(t){let n=e(t);"function"==typeof n&&(T.current=n)}else T.current?(T.current(),T.current=null):e(t);else e&&(e.current=t)},[A])),j,F,e,f)]})}A.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let b=(0,s.forwardRef)(A);return b[B]=t,b}var Y=t.i(82255),z=t.i(28348);class $ extends Y.Feature{constructor(t){super(t),t.animationState||(t.animationState=(0,z.createAnimationState)(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,L.isAnimationControls)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}var _=Y;let q=0;class K extends _.Feature{constructor(){super(...arguments),this.id=q++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>
1{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var J=Y,Z=t.i(76061),Q=t.i(89103),tt=t.i(13286),te=t.i(52357),tn=t.i(57741),ti=t.i(50286),ts=t.i(88450),to=t.i(15269),tr=t.i(33879),ta=t.i(96447),tl=t.i(53184),tu=t.i(91584),th=t.i(97824),tc=t.i(12675),td=t.i(70011),tm=t.i(18699),tp=t.i(82813);function tv(t){return{point:{x:t.pageX,y:t.pageY}}}function tf(t,e,n,i){return(0,tl.addDomEvent)(t,e,t=>(0,tp.isPrimaryPointer)(t)&&n(t,tv(t)),i)}let tg=({current:t})=>t?t.ownerDocument.defaultView:null;var tx=t.i(60325),ty=t.i(87449);let tP=(t,e)=>Math.abs(t-e),tw=new Set(["auto","scroll"]);class tE{constructor(t,e,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3,element:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=tC(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,s=(t=n.offset,e={x:0,y:0},Math.sqrt(tP(t.x,e.x)**2+tP(t.y,e.y)**2)>=this.distanceThreshold);if(!i&&!s)return;let{point:o}=n,{timestamp:r}=tt.frameData;this.history.push({...o,timestamp:r});let{onStart:a,onMove:l}=this.handlers;
1i||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=tS(e,this.transformPagePoint),tt.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=tC("pointercancel"===t.type?this.lastMoveEventInfo:tS(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!(0,tp.isPrimaryPointer)(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;const a=tS(tv(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=tt.frameData;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=e;h&&h(t,tC(a,this.history)),this.removeListeners=(0,tx.pipe)(tf(this.contextWindow,"pointermove",this.handlePointerMove),tf(this.contextWindow,"pointerup",this.handlePointerUp),tf(this.contextWindow,"pointercancel",this.handlePointerUp)),r&&this.startScrollTracking(r)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(tw.has(t.overflowX)||tw.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let n=t===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:i.x-e.x,y:i.y-e.y};(0!==s.x||0!==s.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,i),tt.frame.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,tt.cancelFrame)(this.updatePoint)}}function tS(t,e){return e?{point:e(t.point)}:t}function tM(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tC({point:t},e){return{point:t,delta:tM(t,tA(e)),offset:tM(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null,s=tA(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>(0,ty.secondsToMilliseconds)(.1)));)n--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&s.timestamp-i.timestamp>2*(0,ty.secondsToMilliseconds)(.1)&&(i=t[1]);let o=(0,ty.millisecondsToSeconds)(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};let r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e,.1)}}function tA(t){return t[t.length-1]}var tb=t.i(51458),tL=t.i(79672);function tT(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function tD(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function tV(t,e,n){return{min:tF(t,e),max:tF(t,n)}}function tF(t,e){return"number"==typeof t?t:t[e]||0}let tI=new WeakMap;class tk{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,Q.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:n}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let s=t=>{e&&this.snapToCursor(tv(t).point),this.stopAnimation()},o=(t,e)=>{let{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,tu.setDragLock)(n),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),(0,te.eachAxis)(t=>{let e=this.getAxisMotionValue(t).get()||0;if(th.percent.test(e)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[t];i&&(e=(0,tc.calcLength)(i)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&tt.frame.update(()=>s(t,e),!1,!0),(0,ts.addValueToWillChange)(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},r=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:r}=e;if(i&&null===this.currentDirection){this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(r),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&tt.frame.update(()=>o(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();
1this.panSession=new tE(t,{onSessionStart:s,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:tg(this.visualElement),element:this.visualElement.current})}stop(t,e){let n=t||this.latestPointerEvent,i=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!n)return;let{velocity:o}=i;this.startAnimation(o);let{onDragEnd:r}=this.getProps();r&&tt.frame.postRender(()=>r(n,i))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,n){let{drag:i}=this.getProps();if(!n||!tR(t,i,this.currentDirection))return;let s=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?(0,tr.mixNumber)(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?(0,tr.mixNumber)(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&N(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(t,{top:e,left:n,bottom:i,right:s}){return{x:tT(t.x,n,s),y:tT(t.y,e,i)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:tV(t,"left","right"),y:tV(t,"top","bottom")}}(e),i!==this.constraints&&!N(t)&&n&&this.constraints&&!this.hasMutatedConstraints&&(0,te.eachAxis)(t=>{var e,i;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=n.layoutBox[t],i=this.constraints[t],s={},void 0!==i.min&&(s.min=i.min-e.min),void 0!==i.max&&(s.max=i.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!N(e))return!1;let i=e.current;(0,tm.invariant)(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let o=(0,tn.measurePageBox)(i,s.root,this.visualElement.getTransformPagePoint()),r=(t=s.layout.layoutBox,{x:tD(t.x,o.x),y:tD(t.y,o.y)});if(n){let t=n((0,ti.convertBoxToBoundingBox)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,ti.convertBoundingBoxToBox)(t))}return r}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{};return Promise.all((0,te.eachAxis)(r=>{if(!tR(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?t[r]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,u)})).then(r)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return(0,ts.addValueToWillChange)(this.visualElement,t),n.start((0,to.animateMotionValue)(t,n,0,e,this.visualElement,!1))}stopAnimation(){(0,te.eachAxis)(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){(0,te.eachAxis)(e=>{let{drag:n}=this.getProps();if(!tR(e,n,this.currentDirection))return;let{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){let{min:n,max:o}=i.layout.layoutBox[e],r=s.get()||0;s.set(t[e]-(0,tr.mixNumber)(n,o,.5)+r)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!N(e)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};(0,te.eachAxis)(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var n,s;let o,r,a,l=e.get();i[t]=(n={min:l,max:l},s=this.constraints[t],o=.5,r=(0,tc.calcLength)(n),(a=(0,tc.calcLength)(s))>r?o=(0,tb.progress)(s.min,s.max-r,n.min):r>a&&(o=(0,tb.progress)(n.min,n.max-a,s.min)),(0,tL.clamp)(0,1,o))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),(0,te.eachAxis)(e=>{if(!tR(e,t,null))return;let n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set((0,tr.mixNumber)(s,o,i[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;tI.set(this.visualElement,this);let e=this.visualElement.current,n=tf(e,"pointerdown",t=>{let{drag:n,dragListener:i=!0}=this.getProps(),s=t.target,o=s!==e&&(0,ta.isElementTextInput)(s);n&&i&&!o&&this.start(t)}),i=()=>{var n,i,s;let o,r,{dragConstraints:a}=this.getProps();N(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(n=e,i=a.current,s=()=>this.scalePositionWithinConstraints(),o=(0,td.resize)(n,tj(s)),r=(0,td.resize)(i,tj(s)),t=()=>{o(),r()}))},{projection:s}=this.visualElement,o=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),tt.frame.read(i);let r=(0,tl.addDomEvent)(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&((0,te.eachAxis)(e=>{let n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function tj(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function tR(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}class tW extends J.Feature{constructor(t){super(t),this.removeGroupControls=Z.noop,this.removeListeners=Z.noop,this.controls=new tk(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Z.noop}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}var tH=Y;let tB=t=>(e,n)=>{t&&tt.frame.update(()=>t(e,n),!1,!0)};class tO extends tH.Feature{constructor(){super(...arguments),this.removePointerDownListener=Z.noop}onPointerDown(t){this.session=new tE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tg(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:tB(t),onStart:tB(e),onMove:tB(n),onEnd:(t,e)=>{delete this.session,i&&tt.frame.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=tf(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}
1var tU=t.i(35256),tN=t.i(47134),tG=s;let tX=!1;class tY extends tG.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),tX&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),tU.globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,{projection:o}=n;return o&&(o.isPresent=s,t.layoutDependency!==e&&o.setOptions({...o.options,layoutDependency:e}),tX=!0,i||t.layoutDependency!==e||void 0===e||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||tt.frame.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tN.microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;tX=!0,i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tz(t){let[e,n]=function(t=!0){let e=(0,s.useContext)(D);if(null===e)return[!0,null];let{isPresent:n,onExitComplete:i,register:o}=e,r=(0,s.useId)();(0,s.useEffect)(()=>{if(t)return o(r)},[t]);let a=(0,s.useCallback)(()=>t&&i&&i(r),[r,i,t]);return!n&&i?[!1,a]:[!0]}(),i=(0,tG.useContext)(l);return(0,a.jsx)(tY,{...t,layoutGroup:i,switchLayoutGroup:(0,tG.useContext)(U),isPresent:e,safeToRemove:n})}var t$=t.i(40031);let t_={pan:{Feature:tO},drag:{Feature:tW,ProjectionNode:t$.HTMLProjectionNode,MeasureLayout:tz}};var tq=Y,tK=t.i(61922);function tJ(t,e,n){let{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);let s=i["onHover"+n];s&&tt.frame.postRender(()=>s(e,tv(e)))}class tZ extends tq.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=(0,tK.hover)(t,(t,e)=>(tJ(this.node,e,"Start"),t=>tJ(this.node,t,"End"))))}unmount(){}}var tQ=Y;class t0 extends tQ.Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,tx.pipe)((0,tl.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,tl.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var t1=Y,t5=t.i(64384);function t8(t,e,n){let{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);let s=i["onTap"+("End"===n?"":n)];s&&tt.frame.postRender(()=>s(e,tv(e)))}class t3 extends t1.Feature{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:n}=this.node.props;this.unmount=(0,t5.press)(t,(t,e)=>(t8(this.node,e,"Start"),(t,{success:e})=>t8(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:n?.tap===!1})}unmount(){}}var t2=Y;let t4=new WeakMap,t7=new WeakMap,t9=t=>{let e=t4.get(t.target);e&&e(t)},t6=t=>{t.forEach(t9)},et={some:0,all:1};class ee extends t2.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:n={}}=this.node.getProps(),{root:i,margin:s,amount:o="some",once:r}=n,a={root:i?i.current:void 0,rootMargin:s,threshold:"number"==typeof o?o:et[o]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),s=e?n:i;s&&s(t)};return t=this.node.current,e=function({root:t,...e}){let n=t||document;t7.has(n)||t7.set(n,{});let i=t7.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(t6,{root:t,...e})),i[s]}(a),t4.set(t,l),e.observe(t),()=>{t4.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}let en={layout:{ProjectionNode:t$.HTMLProjectionNode,MeasureLayout:tz}},ei=function(t,e){if("u"<typeof Proxy)return X;let n=new Map,i=(n,i)=>X(n,i,t,e);return new Proxy((t,e)=>i(t,e),{get:(s,o)=>"create"===o?i:(n.has(o)||n.set(o,X(o,void 0,t,e)),n.get(o))})}({animation:{Feature:$},exit:{Feature:K},inView:{Feature:ee},tap:{Feature:t3},focus:{Feature:t0},hover:{Feature:tZ},...t_,...en},(t,e)=>e.isSVG??r(t)?new n.SVGVisualElement(e):new i.HTMLVisualElement(e,{allowProjection:t!==s.Fragment}));t.s(["motion",()=>ei],83698)}]);

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.