/**
 * @preserve
 * @author    ThemePunch <info@themepunch.com>
 * @link      http://www.themepunch.com/
 * @copyright 2026 ThemePunch
 */
(()=>{"use strict";window.SR7??={},window._tpt??={},void 0===SR7.PANZ&&(SR7.PANZ={list:[{k:"zoomin",label:"Zoom In",z:[100,113],e:"none",steps:[{s:0},{s:1}]},{k:"zoomout",label:"Zoom Out",z:[113,100],e:"none",steps:[{s:0},{s:1}]},{k:"pan",label:"Pan",z:[116,116],dir:1,e:"none",steps:[{s:0,t:0},{s:1,t:1}]},{k:"zoompan",label:"Zoom & Pan",z:[107,121],dir:1,e:"none",steps:[{s:0,t:.12},{s:1,t:.88}]},{k:"corner",label:"Corner Push",z:[100,119],corner:1,e:"none",steps:[{s:0,c:0},{s:1,c:1}]},{k:"breathe",label:"Breathe",z:[100,111],e:"sine.inOut",steps:[{s:0},{s:1},{s:0}]},{k:"sweep",label:"Sweep",z:[100,117],dir:1,e:"sine.inOut",steps:[{s:0,t:.5},{s:1,t:.26},{s:1,t:.74},{s:0,t:.5}]},{k:"tilt",label:"Tilt Drift",z:[109,117],rot:[0,1.6],cover:1,e:"none",steps:[{s:0,r:0},{s:1,r:1}]},{k:"arc",label:"Arc Swing",z:[104,120],dir:1,e:"sine.inOut",steps:[{s:0,t:.12},{s:1,t:.5},{s:.3,t:.88}]},{k:"settle",label:"Push & Settle",z:[100,124],e:"power2.out",steps:[{s:0},{s:1},{s:.78}]},{k:"pullback",label:"Pull Back",z:[124,104],dir:1,e:"sine.inOut",steps:[{s:0,t:.8},{s:.55,t:.45},{s:1,t:.15}]},{k:"glide",label:"Glide By",z:[121,112],dir:1,e:"sine.inOut",steps:[{s:0,t:0},{s:.5,t:.55},{s:1,t:1}]},{k:"float",label:"Float",z:[108,114],dir:1,e:"sine.inOut",steps:[{s:0,t:.42},{s:1,t:.58},{s:.2,t:.46},{s:.9,t:.6},{s:0,t:.5}]},{k:"cornerarc",label:"Corner Arc",z:[100,121],corner:1,e:"sine.inOut",steps:[{s:0,c:0},{s:.7,c:.75},{s:1,c:.45},{s:.85,c:1}]},{k:"tiltsweep",label:"Tilt Sweep",z:[110,119],rot:[-1.4,1.4],cover:1,dir:1,e:"sine.inOut",steps:[{s:0,t:.25,r:0},{s:1,t:.5,r:.5},{s:.45,t:.75,r:1}]}],dirs:{right:{x:1},left:{x:-1},down:{y:1},up:{y:-1}},corners:{tl:[0,0],tr:[1,0],bl:[0,1],br:[1,1]},strength:{easy:.55,middle:1,strong:1.7},demo:{mult:2.4,step:1600},dirLabels:[["left","Left"],["right","Right"],["up","Up"],["down","Down"]],cornerLabels:[["tl","Top Left"],["tr","Top Right"],["bl","Bottom Left"],["br","Bottom Right"]],coverage:[["full","Whole Slide"],["half","Half"]],art:{none:"slide-presets/pan&zoom/none.jpg",zoomin:"slide-presets/pan&zoom/zoomin.jpg",zoomout:"slide-presets/pan&zoom/zoomout.jpg",pan:"slide-presets/pan&zoom/pan.jpg",zoompan:"slide-presets/pan&zoom/zoomandpan.jpg",corner:"slide-presets/pan&zoom/cornerpush.jpg",breathe:"slide-presets/pan&zoom/breathe.jpg",sweep:"slide-presets/pan&zoom/sweep.jpg",tilt:"slide-presets/pan&zoom/tiltdrift.jpg",arc:"slide-presets/pan&zoom/zoomandpan.jpg",settle:"slide-presets/pan&zoom/zoomin.jpg",pullback:"slide-presets/pan&zoom/zoomout.jpg",glide:"slide-presets/pan&zoom/pan.jpg",float:"slide-presets/pan&zoom/breathe.jpg",cornerarc:"slide-presets/pan&zoom/cornerpush.jpg",tiltsweep:"slide-presets/pan&zoom/tiltdrift.jpg"},def:function(e){return this.list.find(t=>t.k===e)||null},init:function(e){return{pan:e,pdir:"right",pcor:"tl",pstr:"middle",pcov:"full",ease:null}},frames:function(e,t,s){const o=this.def(t.pan);if(!o)return null;"half"===t.pcov&&(e/=2);const n=(this.strength[t.pstr??"middle"]??1)*(s?this.demo.mult:1),r=o.dir?this.dirs[t.pdir]??this.dirs.right:null,l=o.corner?this.corners[t.pcor]??this.corners.tl:null,p=o.steps.length,i=Math.max(200,Math.round(e/(p-1))),a=[];for(let e=0;e<p;e++){const s=o.steps[e],p=100+(o.z[0]+(s.s??0)*(o.z[1]-o.z[0])-100)*n;let d=50,c=50;if(r){const e=s.t??.5;r.x?d=Math.round(100*(r.x>0?e:1-e)):c=Math.round(100*(r.y>0?e:1-e))}if(l){const e=s.c??0;d=Math.round(100*(.5+(l[0]-.5)*e)),c=Math.round(100*(.5+(l[1]-.5)*e))}const u=o.rot?Math.round((o.rot[0]+(s.r??0)*(o.rot[1]-o.rot[0]))*n*100)/100:0,h=0===e?0:i,m=0===e?0:(e-1)*i;a.push({sX:Math.round(10*p)/10+"%",rZ:u,x:0,y:0,anchorX:d,anchorY:c,e:0===e?"none":t.ease??o.e??"none",t:m,d:h,f:h})}return a},vars:function(e){const t=parseFloat(e.sX)/100;return{transformOrigin:"50% 50%",scale:t,rotation:parseFloat(e.rZ)||0,xPercent:(e.anchorX/100-.5)*(1-t)*100,yPercent:(e.anchorY/100-.5)*(1-t)*100}},play:function(e,t,s){if(!e||!t?.length||!_tpt?.gsap)return null;const o=_tpt.gsap;o.set(e,this.vars(t[0]));const n=o.timeline(s?{repeat:-1,repeatDelay:.5}:{});for(let s=1;s<t.length;s++)n.to(e,Object.assign(this.vars(t[s]),{duration:t[s].d/1e3,ease:t[s].e||"none"}));return s&&n.set(e,this.vars(t[0]),"+=0.4"),n},playDemo:function(e,t){const s=this.def(t.pan);return s?this.play(e,this.frames(this.demo.step*(s.steps.length-1),t,!0),!0):null}},_tpt.R??={},_tpt.R.panzoom=_tpt.extend?_tpt.extend(_tpt.R.panzoom,{status:2,version:"1.0"}):{status:2,version:"1.0"})})();