1import{b as Ln,F as Sr,cI as kr,cA as Dr,aG as rt,b_ as Nr,cc as Mr,e as zr,J as Lr,a1 as mn,N as ze,D as ee,a4 as jr,G as it}from"./ByjodPhJ.js";class Ot{afterResized_timer;constructor(r){}callAfterTimer=(r,t)=>{const e=t??300;clearTimeout(this.afterResized_timer),typeof r=="function"&&(this.afterResized_timer=setTimeout(()=>{r()},e))}}var Fr=(function(){function a(){this.keys=[],this.values=[]}var r=a.prototype;return r.get=function(t){return this.values[this.keys.indexOf(t)]},r.set=function(t,e){var n=this.keys,i=this.values,o=n.indexOf(t),s=o===-1?n.length:o;n[s]=t,i[s]=e},a})(),Vr=(function(){function a(){this.object={}}var r=a.prototype;return r.get=function(t){return this.object[t]},r.set=function(t,e){this.object[t]=e},a})(),Hr=typeof Map=="function",Br=(function(){function a(){}var r=a.prototype;return r.connect=function(t,e){this.prev=t,this.next=e,t&&(t.next=this),e&&(e.prev=this)},r.disconnect=function(){var t=this.prev,e=this.next;t&&(t.next=e),e&&(e.prev=t)},r.getIndex=function(){for(var t=this,e=-1;t;)t=t.prev,++e;return e},a})();function Gr(a,r){var t=[],e=[];return a.forEach(function(n){var i=n[0],o=n[1],s=new Br;t[i]=s,e[o]=s}),t.forEach(function(n,i){n.connect(t[i-1])}),a.filter(function(n,i){return!r[i]}).map(function(n,i){var o=n[0],s=n[1];if(o===s)return[0,0];var u=t[o],l=e[s-1],c=u.getIndex();u.disconnect(),l?u.connect(l,l.next):u.connect(void 0,t[0]);var f=u.getIndex();return[c,f]})}var Ur=(function(){function a(t,e,n,i,o,s,u,l){this.prevList=t,this.list=e,this.added=n,this.removed=i,this.changed=o,this.maintained=s,this.changedBeforeAdded=u,this.fixed=l}var r=a.prototype;return Object.defineProperty(r,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(r,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),r.caculateOrdered=function(){var t=Gr(this.changedBeforeAdded,this.fixed),e=this.changed,n=[];this.cacheOrdered=t.filter(function(i,o){var s=i[0],u=i[1],l=e[o],c=l[0],f=l[1];if(s!==u)return n.push([c,f]),!0}),this.cachePureChanged=n},a})();function Wr(a,r,t){var e=Hr?Map:t?Vr:Fr,n=t||function(E){return E},i=[],o=[],s=[],u=a.map(n),l=r.map(n),c=new e,f=new e,d=[],h=[],v={},g=[],_=0,p=0;return u.forEach(function(E,x){c.set(E,x)}),l.forEach(function(E,x){f.set(E,x)}),u.forEach(function(E,x){var w=f.get(E);typeof w>"u"?(++p,o.push(x)):v[w]=p}),l.forEach(function(E,x){var w=c.get(E);typeof w>"u"?(i.push(x),++_):(s.push([w,x]),p=v[x]||0,d.push([w-p,x-_]),h.push(x===w),w!==x&&g.push([w,x]))}),o.reverse(),new Ur(a,r,i,o,g,s,d,h)}var bn=(function(){function a(t,e){t===void 0&&(t=[]),this.findKeyCallback=e,this.list=[].slice.call(t)}var r=a.prototype;return r.update=function(t){var e=[].slice.call(t),n=Wr(this.list,e,this.findKeyCallback);return this.list=e,n},a})();function Xr(a){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&a[r],e=0;if(t)return t.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&e>=a.length&&(a=void 0),{value:a&&a[e++],done:!a}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function qr(a,r){var t=typeof Symbol=="function"&&a[Symbol.iterator];if(!t)return a;var e=t.call(a),n,i=[],o;try{for(;(r===void 0||r-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=e.return)&&t.call(e)}finally{if(o)throw o.error}}return i}function xt(){for(var a=[],r=0;r<arguments.length;r++)a=a.concat(qr(arguments[r]));return a}var Le=function(a){return typeof a>"u"},kt=(function(){function a(t,e){var n,i;if(this._canceled=!1,e)try{for(var o=Xr(Object.keys(e)),s=o.next();!s.done;s=o.next()){var u=s.value;this[u]=e[u]}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}this.eventType=t}var r=a.prototype;return r.stop=function(){this._canceled=!0},r.isCanceled=function(){return this._canceled},a})(),pe=(function(){function a(){this._eventHandler={}}var r=a.prototype;return r.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=t instanceof kt?t.eventType:t,o=xt(this._eventHandler[i]||[]);return o.length<=0?this:(t instanceof kt?(t.currentTarget=this,o.forEach(function(s){s(t)}
1)):o.forEach(function(s){s.apply(void 0,xt(e))}),this)},r.once=function(t,e){var n=this;if(typeof t=="object"&&Le(e)){var i=t;for(var o in i)this.once(o,i[o]);return this}else if(typeof t=="string"&&typeof e=="function"){var s=function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];e.apply(void 0,xt(u)),n.off(t,s)};this.on(t,s)}return this},r.hasOn=function(t){return!!this._eventHandler[t]},r.on=function(t,e){if(typeof t=="object"&&Le(e)){var n=t;for(var i in n)this.on(i,n[i]);return this}else if(typeof t=="string"&&typeof e=="function"){var o=this._eventHandler[t];Le(o)&&(this._eventHandler[t]=[],o=this._eventHandler[t]),o.push(e)}return this},r.off=function(t,e){if(Le(t))return this._eventHandler={},this;if(Le(e)){if(typeof t=="string")return delete this._eventHandler[t],this;var n=t;for(var i in n)this.off(i,n[i]);return this}var o=this._eventHandler[t];if(o){for(var s=o.length,u=0;u<s;++u)if(o[u]===e){o.splice(u,1),s<=1&&delete this._eventHandler[t];break}}return this},a.VERSION="3.0.5",a})(),T=kt;function $t(a,r){for(var t=a.length,e=0;e<t;++e)if(r(a[e],e))return!0;return!1}function jn(a,r){for(var t=a.length,e=0;e<t;++e)if(r(a[e],e))return a[e];return null}function Fn(a){var r=a;if(typeof r>"u"){if(typeof navigator>"u"||!navigator)return"";r=navigator.userAgent||""}return r.toLowerCase()}function Yt(a,r){try{return new RegExp(a,"g").exec(r)}catch{return null}}function $r(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;var a=navigator.userAgentData,r=a.brands||a.uaList;return!!(r&&r.length)}function Yr(a,r){var t=Yt("("+a+")((?:\\/|\\s|:)([0-9|\\.|_]+))",r);return t?t[3]:""}function Dt(a){return a.replace(/_/g,".")}function je(a,r){var t=null,e="-1";return $t(a,function(n){var i=Yt("("+n.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",r);return!i||n.brand?!1:(t=n,e=i[3]||"-1",n.versionAlias?e=n.versionAlias:n.versionTest&&(e=Yr(n.versionTest.toLowerCase(),r)||e),e=Dt(e),!0)}),{preset:t,version:e}}function at(a,r){var t={brand:"",version:"-1"};return $t(a,function(e){var n=Vn(r,e);return n?(t.brand=e.id,t.version=e.versionAlias||n.version,t.version!=="-1"):!1}),t}function Vn(a,r){return jn(a,function(t){var e=t.brand;return Yt(""+r.test,e.toLowerCase())})}var Hn=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],Bn=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],Nt=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],Gn=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],Un=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function Wn(a){return!!je(Gn,a).preset}function Kr(a){var r=Fn(a),t=!!/mobi/g.exec(r),e={name:"unknown",version:"-1",majorVersion:-1,webview:Wn(r),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},n={name:"unknown",version:"-1",majorVersion:-1},i=je(Hn,r),o=i.preset,s=i.version,u=je(Un,r),l=u.preset,c=u.version,f=je(Bn,r);if(e.chromium=!!f.preset,e.chromiumVersion=f.version,!e.chromium){var d=je(Nt,r);e.webkit=!!d.preset,e.webkitVersion=d.version}return l&&(n.name=l.id,n.version=c,n.majorVersion=parseInt(c,10)),o&&(e.name=o.id,e.version=s,e.webview&&n.name==="ios"&&e.name!=="safari"&&(e.webview=!1)),e.majorVersion=parseInt(e.version,10),{browser:e,os:n,isMobile:t,isHints:!1}}function Zr(a){var r=navigator.userAgentData,t=(r.uaList||r.brands).slice(),e=r.mobile||!1,n=t[0],i=(r.platform||navigator.platform).toLowerCase(),o={name:n.brand,version:n.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!at(Gn,t).brand||Wn(Fn())},s={name:"unknown",version:"-1",majorVersion:-1};o.webkit=!o.chromium&&$t(Nt,function(d){return Vn(t,d)});var u=at(Bn,t);if(o.chromium=!!u.brand,o.chromiumVersion=u.version||"-1",!o.chromium){var l=at(Nt,t);o.webkit=!!l.brand,o.webkitVersion=l.version||"-1"}var c=jn(Un,function(d){return new RegExp(""+d.test,"g").exec(i)});s.name=c?c.id:"";{var f=at(Hn,t);o.name=f.brand||o.name,o.version=f.brand&&a?a.uaFullVersion:f.version}return o.webkit&&(s.name=e?"ios":"mac"),s.name==="ios"&&o.webview&&(o.version="-1"),s.version=Dt(s.version),o.version=Dt(o.version),s.majorVersion=parseInt(s.version,10),o.majorVersion=parseInt(o.version,10),{browser:o,os:s,isMobile:e,isHints:!0}}function Jr(a){return $r()?Zr():Kr(a)}function Qr(a){return Object.keys(a)}var Mt="__observers__",st="__computed__",Tt=1,Rt="__CFCS_DETECTED_DEPENDENCIES__",zt=function(a,r){return zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},zt(a,r)};function ei(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");zt(a,r);function t(){this.constructor=a}
1a.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function Kt(){Object[Rt]=Object[Rt]||{};var a=Object[Rt];return a[Tt]=a[Tt]||[],a[Tt]}function ti(){var a=Kt();return a[a.length-1]}function ni(a){var r=Kt(),t=[],e={host:a,observers:t,push:function(n){a!==n&&t.indexOf(n)===-1&&t.push(n)}};return r.push(e),e}function ri(){var a=Kt();return a.pop()}var Xn=(function(){function a(t){this._emitter=new pe,this._current=t}var r=a.prototype;return Object.defineProperty(r,"current",{get:function(){var t=ti();return t?.push(this),this._current},set:function(t){this._setCurrent(t)},enumerable:!1,configurable:!0}),r.subscribe=function(t){return this.current,this._emitter.on("update",t),this},r.unsubscribe=function(t){return this._emitter.off("update",t),this},r._setCurrent=function(t){var e=this._current,n=t!==e;this._current=t,n&&this._emitter.trigger("update",t,e)},r.toString=function(){return"".concat(this.current)},r.valueOf=function(){return this.current},a})(),ii=(function(a){ei(r,a);function r(e){var n=a.call(this)||this;return n._computedCallback=e,n._registered=[],n._onCheckUpdate=function(){n._setCurrent(n.current)},n._current=n.current,n}var t=r.prototype;return Object.defineProperty(t,"current",{get:function(){var e=this;ni(this);var n=this._computedCallback(),i=ri();return this._registered.forEach(function(o){o.unsubscribe(e._onCheckUpdate)}),i.observers.forEach(function(o){o.subscribe(e._onCheckUpdate)}),this._registered=i.observers,n},enumerable:!1,configurable:!0}),r})(Xn);function En(a,r,t){t===void 0&&(t=r);var e={configurable:!0,get:function(){return he(this,t).current},set:function(n){he(this,t,n).current=n}};Object.defineProperty(a,r,e),t!==r&&Object.defineProperty(a,t,{configurable:!0,get:function(){return he(this,t).current}})}function ai(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];return a.length>1?En(a[0],a[1]):function(t,e){return En(t,e,a[0])}}function oi(a){a.subscribe=function(r,t){this[r],he(this,r).subscribe(t)},a.unsubscribe=function(r,t){var e=this;if(!r){Qr(Zt(this)).forEach(function(n){e.unsubscribe(n)});return}r in this&&he(this,r).unsubscribe(t)}}function si(a){var r=a.prototype;oi(r)}function ui(a){return new Xn(a)}function li(a){return new ii(a)}function ci(a){var r={};return Object.defineProperty(a,Mt,{get:function(){return r}}),r}function Zt(a,r){var t,e;a[Mt]||ci(a);var n=a[Mt];if(!r){var i=(e=(t=a?.constructor)===null||t===void 0?void 0:t.prototype)===null||e===void 0?void 0:e[st];i&&i.forEach(function(o){!(o in n)&&o in a&&a[o]})}return n}function he(a,r,t){var e=Zt(a);return e[r]||(e[r]=ui(t)),e[r]}function fi(a,r,t){var e=t.get;function n(){var s=Zt(this,!0);return r in s||(s[r]=li(e.bind(this))),he(this,r).current}var i={configurable:!0,get:n};a[st]||(a[st]=[]);var o=a[st];return o.indexOf(r)===-1&&o.push(r),Object.defineProperty(a,r,i),i}var Lt=function(a,r){return Lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},Lt(a,r)};function Se(a,r){Lt(a,r);function t(){this.constructor=a}a.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var z=function(){return z=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},z.apply(this,arguments)};function jt(a,r,t,e){var n=arguments.length,i=n<3?r:e===null?e=Object.getOwnPropertyDescriptor(r,t):e,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,r,t,e);else for(var s=a.length-1;s>=0;s--)(o=a[s])&&(i=(n<3?o(i):n>3?o(r,t,i):o(r,t))||i);return n>3&&i&&Object.defineProperty(r,t,i),i}var j;typeof window>"u"?j={navigator:{userAgent:""}}:j=window;var Ue=1,hi=2,di=4,we=6,vi=8,gi=16,Ie=24,mt=30,ft="left",Ft="right",Vt="middle",qn={1:ft,2:Vt,3:Ft},$n="any",_i="none",pi="shift",mi="ctrl",bi="alt",Ei="meta",Pi=16,yi=30,Pn="ontouchstart"in j&&Jr().browser.name==="safari",Oi=(function(){if(typeof document>"u")return"";for(var a=(document.head||document.getElementsByTagName("head")[0]).style,r=["transform","webkitTransform","msTransform","mozTransform"],t=0,e=r.length;t<e;t++)if(r[t]in a)return r[t];return""})(),Ht={"-webkit-user-select":"none","-ms-user-select":"none","-moz-user-select":"none","user-select":"none","-webkit-user-drag":"none"},yn=function(a){for(var r=[],t=0,e=a.length;t<e;t++)r.push(a[t]);return r},Yn=function(a,r){r===void 0&&(r=!1);var t;
1if(typeof a=="string"){var e=a.match(/^<([a-z]+)\s*([^>]*)>/);if(e){var n=document.createElement("div");n.innerHTML=a,t=yn(n.childNodes)}else t=yn(document.querySelectorAll(a));r||(t=t.length>=1?t[0]:void 0)}else a===j?t=a:"value"in a||"current"in a?t=a.value||a.current:a.nodeName&&(a.nodeType===1||a.nodeType===9)?t=a:"jQuery"in j&&a instanceof jQuery||a.constructor.prototype.jquery?t=r?a.toArray():a.get(0):Array.isArray(a)&&(t=a.map(function(i){return Yn(i)}),r||(t=t.length>=1?t[0]:void 0));return t},ye=j.requestAnimationFrame||j.webkitRequestAnimationFrame,Fe=j.cancelAnimationFrame||j.webkitCancelAnimationFrame;if(ye&&!Fe){var wt={},xi=ye;ye=function(a){var r=function(e){wt[t]&&a(e)},t=xi(r);return wt[t]=!0,t},Fe=function(a){delete wt[a]}}else ye&&Fe||(ye=function(a){return j.setTimeout(function(){a(j.performance&&j.performance.now&&j.performance.now()||new Date().getTime())},16)},Fe=j.clearTimeout);var Ti=function(a){return ye(a)},Ri=function(a){Fe(a)},te=function(a,r){var t={};for(var e in a)e&&(t[e]=r(a[e],e));return t},Kn=function(a,r){var t={};for(var e in a)e&&r(a[e],e)&&(t[e]=a[e]);return t},Jt=function(a,r){for(var t in a)if(t&&!r(a[t],t))return!1;return!0},Ve=function(a,r){return Jt(a,function(t,e){return t===r[e]})},It={},Zn=function(a,r){return It[r]||(It[r]=Ii(r)),It[r](a)},On=function(a,r){return!a||!r?a:te(a,function(t,e){return Zn(t,typeof r=="number"?r:r[e])})},ut=function(a){if(!isFinite(a))return 0;var r="".concat(a);if(r.indexOf("e")>=0){for(var t=0,e=1;Math.round(a*e)/e!==a;)e*=10,t++;return t}return r.indexOf(".")>=0?r.length-r.indexOf(".")-1:0},wi=function(a){return 1/Math.pow(10,a)},Ii=function(a){var r=a<1?Math.pow(10,ut(a)):1;return function(t){return a===0?0:Math.round(Math.round(t/a)*a*r)/r}},Ai=function(a,r){return Math.atan2(r,a)*180/Math.PI},Ci=function(a){var r=!0;return Object.keys(Ht).forEach(function(t){(!a||a[t]!==Ht[t])&&(r=!1)}),r},Si=function(a,r){return a&&r?mt:a?we:r?Ie:Ue},ot=function(a,r,t){return t?!!(r===mt||r&a&&t&a):!!(r&a)},ki=function(a,r,t){var e,n=(e={},e[Ue]="auto",e[mt]="none",e[Ie]="pan-x",e[we]="pan-y",e),i={};if(a&&a.style){var o=r.touchAction?r.touchAction:n[t],s=z(z({},Ht),{"touch-action":a.style["touch-action"]==="none"?"none":o});Object.keys(s).forEach(function(u){i[u]=a.style[u]}),Object.keys(s).forEach(function(u){a.style[u]=s[u]})}return i},Di=function(a,r){a&&a.style&&r&&Object.keys(r).forEach(function(t){a.style[t]=r[t]})},Ni=(function(){function a(t){this._axes=t,this.holdingCount=0}var r=a.prototype;return r.hold=function(t,e){var n=this._getRoundPos(t).roundPos;this._axes.trigger(new T("hold",{pos:n,input:e.input||null,inputEvent:e.event||null,isTrusted:!0}))},r.triggerRelease=function(t){var e=this._getRoundPos(t.destPos,t.depaPos),n=e.roundPos,i=e.roundDepa;t.destPos=n,t.depaPos=i,t.setTo=this._createUserControll(t.destPos,t.duration),this._axes.trigger(new T("release",z(z({},t),{bounceRatio:this._getBounceRatio(n)})))},r.triggerChange=function(t,e,n,i){var o=this;i===void 0&&(i=!1);var s=this.animationManager,u=s.axisManager,l=s.getEventInfo(),c=this._getRoundPos(t,e),f=c.roundPos,d=c.roundDepa,h=u.moveTo(f,d),v=n?.event||l?.event||null,g={pos:h.pos,delta:h.delta,bounceRatio:this._getBounceRatio(h.pos),holding:i,inputEvent:v,isTrusted:!!v,input:n?.input||l?.input||null,set:v?this._createUserControll(h.pos):function(){}},_=new T("change",g);return this._axes.trigger(_),Object.keys(h.pos).forEach(function(p){var E=h.pos[p];he(o._axes,p,E).current=E}),v&&u.set(g.set().destPos),!_.isCanceled()},r.triggerAnimationStart=function(t){var e=this._getRoundPos(t.destPos,t.depaPos),n=e.roundPos,i=e.roundDepa;t.destPos=n,t.depaPos=i,t.setTo=this._createUserControll(t.destPos,t.duration);var o=new T("animationStart",t);return this._axes.trigger(o),!o.isCanceled()},r.triggerAnimationEnd=function(t){t===void 0&&(t=!1),this._axes.trigger(new T("animationEnd",{isTrusted:t}))},r.triggerFinish=function(t){t===void 0&&(t=!1),this._axes.trigger(new T("finish",{isTrusted:t}))},r.setAnimationManager=function(t){this.animationManager=t},r.destroy=function(){this._axes.off()},r._createUserControll=function(t,e){e===void 0&&(e=0);var n={destPos:z({},t),duration:e};return function(i,o){return i&&(n.destPos=z({},i)),o!==void 0&&(n.duration=o),n}},r._getRoundPos=function(t,e){var n=this._axes.options.round;return{roundPos:On(t,n),roundDepa:On(e,n)}},r._getBounceRatio=function(t){return this._axes.axisManager.map(t,function(e,n){return e<n.range[0]&&n.bounce[0]!==0?(n.range[0]-e)/n.bounce[0]:e>n.range[1]&&n.bounce[1]!==0?(e-n.range[1])/n.bounce[1]:0})}
1,jt([ai],a.prototype,"holdingCount",void 0),a})(),Mi=(function(){function a(t){this._options=t,this._prevented=!1}var r=a.prototype;return r.isInterrupting=function(){return this._options.interruptable||this._prevented},r.isInterrupted=function(){return!this._options.interruptable&&this._prevented},r.setInterrupt=function(t){this._options.interruptable||(this._prevented=t)},a})(),Jn=function(a,r,t,e){var n=a,i=[t[0]?r[0]:e?r[0]-e[0]:r[0],t[1]?r[1]:e?r[1]+e[1]:r[1]];return n=Math.max(i[0],n),n=Math.min(i[1],n),n},Qn=function(a,r){return a<r[0]||a>r[1]},zi=function(a,r,t,e){return!e[0]&&a===r[0]-t[0]||!e[1]&&a===r[1]+t[1]},Li=function(a,r){var t=Math.sqrt(a/r*2);return t<100?0:t},xn=function(a,r,t){return t[1]&&a>r[1]||t[0]&&a<r[0]},Be=function(a,r,t){var e=a,n=r[0],i=r[1],o=i-n;return t[1]&&a>i&&(e=(e-i)%o+n),t[0]&&a<n&&(e=(e-n)%o+i),e},ji=(function(){function a(t){var e=this;this._axis=t,this._complementOptions(),this._pos=Object.keys(this._axis).reduce(function(n,i){return n[i]=e._axis[i].startPos,n},{})}var r=a.prototype;return r.getDelta=function(t,e){var n=this.get(t);return te(this.get(e),function(i,o){return i-n[o]})},r.get=function(t){var e=this;return t&&Array.isArray(t)?t.reduce(function(n,i){return i&&i in e._pos&&(n[i]=e._pos[i]),n},{}):z(z({},this._pos),t||{})},r.moveTo=function(t,e){e===void 0&&(e=this._pos);var n=te(this._pos,function(i,o){return o in t&&o in e?t[o]-e[o]:0});return this.set(this.map(t,function(i,o){return o?Be(i,o.range,o.circular):0})),{pos:z({},this._pos),delta:n}},r.set=function(t){for(var e in t)e&&e in this._pos&&(this._pos[e]=t[e])},r.every=function(t,e){var n=this._axis;return Jt(t,function(i,o){return e(i,n[o],o)})},r.filter=function(t,e){var n=this._axis;return Kn(t,function(i,o){return e(i,n[o],o)})},r.map=function(t,e){var n=this._axis;return te(t,function(i,o){return e(i,n[o],o)})},r.isOutside=function(t){return!this.every(t?this.get(t):this._pos,function(e,n){return!Qn(e,n.range)})},r.getAxisOptions=function(t){return this._axis[t]},r.setAxis=function(t){var e=this;Object.keys(t).forEach(function(n){if(!e._axis[n])throw new Error("Axis ".concat(n," does not exist in Axes instance"));e._axis[n]=z(z({},e._axis[n]),t[n])}),this._complementOptions()},r._complementOptions=function(){var t=this;
1Object.keys(this._axis).forEach(function(e){t._axis[e]=z({range:[0,100],startPos:t._axis[e].range[0],bounce:[0,0],circular:[!1,!1]},t._axis[e]),["bounce","circular"].forEach(function(n){var i=t._axis,o=i[e][n];/string|number|boolean/.test(typeof o)&&(i[e][n]=[o,o])})})},a})(),Fi="ontouchstart"in j,lt="PointerEvent"in j,Vi="MSPointerEvent"in j,Hi=lt||Vi,Bi=function(a,r){return!!(!r||r.indexOf($n)>-1||r.indexOf(_i)>-1&&!a.shiftKey&&!a.ctrlKey&&!a.altKey&&!a.metaKey||r.indexOf(pi)>-1&&a.shiftKey||r.indexOf(mi)>-1&&a.ctrlKey||r.indexOf(bi)>-1&&a.altKey||r.indexOf(Ei)>-1&&a.metaKey)},bt=(function(){function a(){var t=this;this._stopContextMenu=function(e){e.preventDefault(),j.removeEventListener("contextmenu",t._stopContextMenu)}}var r=a.prototype;return r.extendEvent=function(t){var e,n=this.prevEvent,i=this._getCenter(t),o=n?this._getMovement(t):{x:0,y:0},s=n?this._getScale(t):1,u=n?Ai(i.x-n.center.x,i.y-n.center.y):0,l=n?n.deltaX+o.x:o.x,c=n?n.deltaY+o.y:o.y,f=o.x,d=o.y,h=this._latestInterval,v=Date.now(),g=h?v-h.timestamp:0,_=n?n.velocityX:0,p=n?n.velocityY:0,E=n?n.directionX:1,x=n?n.directionY:1;return f>0?E=1:f<0&&(E=-1),d>0?x=1:d<0&&(x=-1),(!h||g>=Pi)&&(h&&(e=[(l-h.deltaX)/g,(c-h.deltaY)/g],_=e[0],p=e[1]),this._latestInterval={timestamp:v,deltaX:l,deltaY:c}),{srcEvent:t,scale:s,angle:u,center:i,deltaX:l,deltaY:c,offsetX:f,offsetY:d,directionX:E,directionY:x,velocityX:_,velocityY:p,preventSystemEvent:!0}},r._getDistance=function(t,e){var n=e.clientX-t.clientX,i=e.clientY-t.clientY;return Math.sqrt(n*n+i*i)},r._getButton=function(t){var e={1:ft,2:Ft,4:Vt},n=this._isTouchEvent(t)?ft:e[t.buttons];return n||null},r._isTouchEvent=function(t){return t.type&&t.type.indexOf("touch")>-1},r._isValidButton=function(t,e){return e.indexOf(t)>-1},r._isValidEvent=function(t,e,n){return(!e||Bi(t,e))&&(!n||this._isValidButton(this._getButton(t),n))},r._preventMouseButton=function(t,e){e===Ft?j.addEventListener("contextmenu",this._stopContextMenu):e===Vt&&t.preventDefault()},a})(),Gi=(function(a){Se(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e.start=["mousedown"],e.move=["mousemove"],e.end=["mouseup"],e}var t=r.prototype;return t.onEventStart=function(e,n,i){var o=this._getButton(e);return this._isValidEvent(e,n,i)?(this._preventMouseButton(e,o),this.extendEvent(e)):null},t.onEventMove=function(e,n,i){return this._isValidEvent(e,n,i)?this.extendEvent(e):null},t.onEventEnd=function(){},t.onRelease=function(){this.prevEvent=null},t.getTouches=function(e,n){return n&&this._isValidButton(qn[e.which],n)&&this.end.indexOf(e.type)===-1?1:0},t._getScale=function(){return 1},t._getCenter=function(e){return{x:e.clientX,y:e.clientY}},t._getMovement=function(e){var n=this.prevEvent.srcEvent;return{x:e.clientX-n.clientX,y:e.clientY-n.clientY}},r})(bt),Ui=(function(a){Se(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e.start=["touchstart"],e.move=["touchmove"],e.end=["touchend","touchcancel"],e}var t=r.prototype;return t.onEventStart=function(e,n){return this._baseTouches=e.touches,this._isValidEvent(e,n)?this.extendEvent(e):null},t.onEventMove=function(e,n){return this._isValidEvent(e,n)?this.extendEvent(e):null},t.onEventEnd=function(e){this._baseTouches=e.touches},t.onRelease=function(){this.prevEvent=null,this._baseTouches=null},t.getTouches=function(e){return e.touches.length},t._getScale=function(e){return e.touches.length!==2||this._baseTouches.length<2?null:this._getDistance(e.touches[0],e.touches[1])/this._getDistance(this._baseTouches[0],this._baseTouches[1])},t._getCenter=function(e){return{x:e.touches[0].clientX,y:e.touches[0].clientY}},t._getMovement=function(e){var n=this.prevEvent.srcEvent;return e.touches[0].identifier!==n.touches[0].identifier?{x:0,y:0}:{x:e.touches[0].clientX-n.touches[0].clientX,y:e.touches[0].clientY-n.touches[0].clientY}},r})(bt),Wi=(function(a){Se(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e.start=lt?["pointerdown"]:["MSPointerDown"],e.move=lt?["pointermove"]:["MSPointerMove"],e.end=lt?["pointerup","pointercancel"]:["MSPointerUp","MSPointerCancel"],e._firstInputs=[],e._recentInputs=[],e}var t=r.prototype;return t.onEventStart=function(e,n,i){var o=this._getButton(e);return this._isValidEvent(e,n,i)?(this._preventMouseButton(e,o),this._updatePointerEvent(e),this.extendEvent(e)):null},t.onEventMove=function(e,n,i){return this._isValidEvent(e,n,i)?(this._updatePointerEvent(e),this.extendEvent(e)):null},t.onEventEnd=function(e){this._removePointerEvent(e)},t.onRelease=function(){this.prevEvent=null,this._firstInputs=[],this._recentInputs=[]},t.getTouches=function(){return this._recentInputs.length},t._getScale=function(){return this._recentInputs.length!==2?null:this._getDistance(this._recentInputs[0],this._recentInputs[1])/this._getDistance(this._firstInputs[0],this._firstInputs[1])},t._getCenter=function(e){return{x:e.clientX,y:e.clientY}},t._getMovement=function(e){var n=this.prevEvent.srcEvent;return e.pointerId!==n.pointerId?{x:0,y:0}:{x:e.clientX-n.clientX,y:e.clientY-n.clientY}},t._updatePointerEvent=function(e){var n=this,i=!1;
1this._recentInputs.forEach(function(o,s){o.pointerId===e.pointerId&&(i=!0,n._recentInputs[s]=e)}),i||(this._firstInputs.push(e),this._recentInputs.push(e))},t._removePointerEvent=function(e){this._firstInputs=this._firstInputs.filter(function(n){return n.pointerId!==e.pointerId}),this._recentInputs=this._recentInputs.filter(function(n){return n.pointerId!==e.pointerId})},r})(bt),Xi=(function(a){Se(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e.start=["mousedown","touchstart"],e.move=["mousemove","touchmove"],e.end=["mouseup","touchend","touchcancel"],e}var t=r.prototype;return t.onEventStart=function(e,n,i){var o=this._getButton(e);return this._isTouchEvent(e)&&(this._baseTouches=e.touches),this._isValidEvent(e,n,i)?(this._preventMouseButton(e,o),this.extendEvent(e)):null},t.onEventMove=function(e,n,i){return this._isValidEvent(e,n,i)?this.extendEvent(e):null},t.onEventEnd=function(e){this._isTouchEvent(e)&&(this._baseTouches=e.touches)},t.onRelease=function(){this.prevEvent=null,this._baseTouches=null},t.getTouches=function(e,n){return this._isTouchEvent(e)?e.touches.length:this._isValidButton(qn[e.which],n)&&this.end.indexOf(e.type)===-1?1:0},t._getScale=function(e){return this._isTouchEvent(e)?e.touches.length!==2||this._baseTouches.length<2?1:this._getDistance(e.touches[0],e.touches[1])/this._getDistance(this._baseTouches[0],this._baseTouches[1]):this.prevEvent.scale},t._getCenter=function(e){return this._isTouchEvent(e)?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}},t._getMovement=function(e){var n=this,i=this.prevEvent.srcEvent,o=[e,i].map(function(l){return n._isTouchEvent(l)?{id:l.touches[0].identifier,x:l.touches[0].clientX,y:l.touches[0].clientY}:{id:null,x:l.clientX,y:l.clientY}}),s=o[0],u=o[1];return s.id===u.id?{x:s.x-u.x,y:s.y-u.y}:{x:0,y:0}},r})(bt),er=function(a,r){return r.reduce(function(t,e,n){return a[n]&&(t[a[n]]=e),t},{})},Tn=function(a){a===void 0&&(a=[]);var r=!1,t=!1,e=!1;return a.forEach(function(n){switch(n){case"mouse":t=!0;break;case"touch":r=Fi;break;case"pointer":e=Hi}}),e?new Wi:r&&t?new Xi:r?new Ui:t?new Gi:null};function Rn(a){return a.indexOf("touch")>-1?{passive:!1}:!1}var qi=(function(){function a(t){var e=t.options,n=t.interruptManager,i=t.eventManager,o=t.axisManager,s=t.animationManager;this._isOutside=!1,this._moveDistance=null,this._isStopped=!1,this.options=e,this._interruptManager=n,this._eventManager=i,this._axisManager=o,this._animationManager=s}var r=a.prototype;return r.get=function(t){return this._axisManager.get(t.axes)},r.hold=function(t,e){if(!(this._interruptManager.isInterrupted()||!t.axes.length)){var n={input:t,event:e};this._isStopped=!1,this._interruptManager.setInterrupt(!0),this._animationManager.stopAnimation(n),++this._eventManager.holdingCount,this._moveDistance||this._eventManager.hold(this._axisManager.get(),n),this._isOutside=this._axisManager.isOutside(t.axes),this._moveDistance=this._axisManager.get(t.axes)}},r.change=function(t,e,n,i){if(!(this._isStopped||!this._interruptManager.isInterrupting()||this._axisManager.every(n,function(d){return d===0}))){var o=e.srcEvent?e.srcEvent:e;if(!o.__childrenAxesAlreadyChanged){var s=this._moveDistance||this._axisManager.get(t.axes),u;u=te(s,function(d,h){return d+(n[h]||0)}),this._moveDistance&&(this._moveDistance=this._axisManager.map(u,function(d,h){var v=h.circular,g=h.range;return v&&(v[0]||v[1])?Be(d,g,v):d})),this._isOutside&&this._axisManager.every(s,function(d,h){return!Qn(d,h.range)})&&(this._isOutside=!1),s=this._atOutside(s),u=this._atOutside(u),(!this.options.nested||!this._isEndofAxis(n,s,u))&&(o.__childrenAxesAlreadyChanged=!0);var l={input:t,event:e};if(i){var c=this._animationManager.getDuration(u,s);this._animationManager.animateTo(u,c,l)}else{var f=!this._eventManager.triggerChange(u,s,l,!0);f&&(this._isStopped=!0,this._moveDistance=null,this._animationManager.finish(!1))}}}},r.release=function(t,e,n,i){if(!(this._isStopped||!this._interruptManager.isInterrupting()||!this._moveDistance)){var o=e.srcEvent?e.srcEvent:e;o.__childrenAxesAlreadyReleased&&(n=n.map(function(){return 0}));var s=this._axisManager.get(t.axes),u=this._axisManager.get(),l=this._animationManager.getDisplacement(n),c=er(t.axes,l),f=this._axisManager.get(this._axisManager.map(c,function(p,E,x){return E.circular&&(E.circular[0]||E.circular[1])?s[x]+p:Jn(s[x]+p,E.range,E.circular,E.bounce)}));o.__childrenAxesAlreadyReleased=!0;var d=this._animationManager.getDuration(f,s,i);d===0&&(f=z({},u));var h={depaPos:u,destPos:f,duration:d,delta:this._axisManager.getDelta(u,f),inputEvent:e,input:t,isTrusted:!0};--this._eventManager.holdingCount,this._eventManager.triggerRelease(h),this._eventManager.holdingCount===0&&(this._moveDistance=null);var v=this._animationManager.getUserControl(h),g=Ve(v.destPos,u),_={input:t,event:e};g||v.duration===0?(g||this._eventManager.triggerChange(v.destPos,u,_,!0),this._interruptManager.setInterrupt(!1),this._axisManager.isOutside()?this._animationManager.restore(_):this._eventManager.triggerFinish(!0)):this._animationManager.animateTo(v.destPos,v.duration,_)}},r._atOutside=function(t){var e=this;return this._isOutside?this._axisManager.map(t,function(n,i){var o=i.range[0]-i.bounce[0],s=i.range[1]+i.bounce[1];return n>s?s:n<o?o:n}):this._axisManager.map(t,function(n,i){var o=i.range[0],s=i.range[1],u=i.bounce,l=i.circular;return l[0]&&n<o||l[1]&&n>s?n:n<o?o-e._animationManager.interpolate(o-n,u[0]):n>s?s+e._animationManager.interpolate(n-s,u[1]):n})},r._isEndofAxis=function(t,e,n){return this._axisManager.every(e,function(i,o,s){return t[s]===0||e[s]===n[s]&&zi(i,o.range,o.bounce,o.circular)})},a})(),At=function(a,r,t){return Math.max(Math.min(a,t),r)},$i=(function(){function a(t){var e=t.options,n=t.interruptManager,i=t.eventManager,o=t.axisManager;this._options=e,this.interruptManager=n,this.eventManager=i,this.axisManager=o,this.animationEnd=this.animationEnd.bind(this)}
1var r=a.prototype;return r.getDuration=function(t,e,n){var i=this,o;if(typeof n<"u")o=n;else{var s=te(e,function(u,l){return Li(Math.abs(u-t[l]),i._options.deceleration)});o=Object.keys(s).reduce(function(u,l){return Math.max(u,s[l])},-1/0)}return At(o,this._options.minimumDuration,this._options.maximumDuration)},r.getDisplacement=function(t){var e=Math.pow(t.reduce(function(i,o){return i+o*o},0),1/t.length),n=Math.abs(e/-this._options.deceleration);return t.map(function(i){return i/2*n})},r.stopAnimation=function(t){if(this._animateParam){var e=this.axisManager.get(),n=this.axisManager.map(e,function(i,o){return Be(i,o.range,o.circular)});Jt(n,function(i,o){return e[o]===i})||this.eventManager.triggerChange(n,e,t,!!t),this._animateParam=null,this._raf&&Ri(this._raf),this._raf=null,this.eventManager.triggerAnimationEnd(!!t?.event)}},r.getEventInfo=function(){return this._animateParam&&this._animateParam.input&&this._animateParam.inputEvent?{input:this._animateParam.input,event:this._animateParam.inputEvent}:null},r.restore=function(t){var e=this.axisManager.get(),n=this.axisManager.map(e,function(i,o){return Math.min(o.range[1],Math.max(o.range[0],i))});this.stopAnimation(),this.animateTo(n,this.getDuration(e,n),t)},r.animationEnd=function(){var t=this.getEventInfo();this._animateParam=null;var e=this.axisManager.filter(this.axisManager.get(),function(n,i){return xn(n,i.range,i.circular)});Object.keys(e).length>0&&this.setTo(this.axisManager.map(e,function(n,i){return Be(n,i.range,i.circular)})),this.interruptManager.setInterrupt(!1),this.eventManager.triggerAnimationEnd(!!t),this.axisManager.isOutside()?this.restore(t):this.finish(!!t)},r.finish=function(t){this._animateParam=null,this.interruptManager.setInterrupt(!1),this.eventManager.triggerFinish(t)},r.getUserControl=function(t){var e=t.setTo();return e.destPos=this.axisManager.get(e.destPos),e.duration=At(e.duration,this._options.minimumDuration,this._options.maximumDuration),e},r.animateTo=function(t,e,n){var i=this;this.stopAnimation();var o=this._createAnimationParam(t,e,n),s=z({},o.depaPos),u=this.eventManager.triggerAnimationStart(o),l=this.getUserControl(o);if(!u&&this.axisManager.every(l.destPos,function(f,d){return xn(f,d.range,d.circular)})&&console.warn("You can't stop the 'animation' event when 'circular' is true."),u&&!Ve(l.destPos,s)){var c=n?.event||null;this._animateLoop({depaPos:s,destPos:l.destPos,duration:l.duration,delta:this.axisManager.getDelta(s,l.destPos),isTrusted:!!c,inputEvent:c,input:n?.input||null},function(){return i.animationEnd()})}},r.setTo=function(t,e){e===void 0&&(e=0);var n=Object.keys(t),i=this.axisManager.get(n);if(Ve(t,i))return this;this.interruptManager.setInterrupt(!0);var o=Kn(t,function(s,u){return i[u]!==s});return Object.keys(o).length?(o=this.axisManager.map(o,function(s,u){var l=u.range,c=u.circular;return c&&(c[0]||c[1])?s:Jn(s,l,c)}),Ve(o,i)?this:(e>0?this.animateTo(o,e):(this.stopAnimation(),this.eventManager.triggerChange(o),this.finish(!1)),this)):this},r.setBy=function(t,e){return e===void 0&&(e=0),this.setTo(te(this.axisManager.get(Object.keys(t)),function(n,i){return n+t[i]}),e)},r.setOptions=function(t){this._options=z(z({},this._options),t)},r._createAnimationParam=function(t,e,n){var i=this.axisManager.get(),o=t,s=n?.event||null;return{depaPos:i,destPos:o,duration:At(e,this._options.minimumDuration,this._options.maximumDuration),delta:this.axisManager.getDelta(i,o),inputEvent:s,input:n?.input||null,isTrusted:!!s,done:this.animationEnd}},r._animateLoop=function(t,e){var n=this;if(t.duration){this._animateParam=z(z({},t),{startTime:new Date().getTime()});var i=te(t.destPos,function(u){return u}),o=this._initState(this._animateParam),s=function(){n._raf=null;var u=n._animateParam,l=n._getNextState(o),c=!n.eventManager.triggerChange(l.pos,o.pos);if(o=l,l.finished){u.destPos=n._getFinalPos(u.destPos,i),Ve(u.destPos,n.axisManager.get(Object.keys(u.destPos)))||n.eventManager.triggerChange(u.destPos,l.pos),e();return}else c?n.finish(!1):n._raf=Ti(s)};s()}else this.eventManager.triggerChange(t.destPos),e()},r._getFinalPos=function(t,e){var n=this,i=1e-6,o=te(t,function(s,u){if(s>=e[u]-i&&s<=e[u]+i)return e[u];var l=n._getRoundUnit(s,u),c=Zn(s,l);return c});return o},r._getRoundUnit=function(t,e){var n=this._options.round,i=null;if(!n){var o=this.axisManager.getAxisOptions(e);i=wi(Math.max(ut(o.range[0]),ut(o.range[1]),ut(t)))}return i||n},a})(),Yi=(function(a){Se(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e._useDuration=!0,e}var t=r.prototype;return t.interpolate=function(e,n){var i=this._easing(1e-5)/1e-5;return this._easing(e/(n*i))*n},t.updateAnimation=function(e){var n,i=this._animateParam;if(i){var o=new Date().getTime()-i.startTime,s=e?.destPos||i.destPos,u=(n=e?.duration)!==null&&n!==void 0?n:i.duration;if(e?.restart||u<=o){this.setTo(s,u-o);return}if(e?.destPos){var l=this.axisManager.get();this._initialEasingPer=this._prevEasingPer,i.delta=this.axisManager.getDelta(l,s),i.destPos=s}if(e?.duration){var c=(o+this._durationOffset)/i.duration;
1this._durationOffset=c*u-o,i.duration=u}}},t._initState=function(e){return this._initialEasingPer=0,this._prevEasingPer=0,this._durationOffset=0,{pos:e.depaPos,easingPer:0,finished:!1}},t._getNextState=function(e){var n=this,i=this._animateParam,o=e.pos,s=i.destPos,u=te(o,function(h,v){return h<=s[v]?1:-1}),l=new Date().getTime()-i.startTime,c=(l+this._durationOffset)/i.duration,f=this._easing(c),d=this.axisManager.map(o,function(h,v,g){var _=c>=1?s[g]:h+i.delta[g]*(f-n._prevEasingPer)/(1-n._initialEasingPer),p=Be(_,v.range,v.circular);if(_!==p){var E=u[g]*(v.range[1]-v.range[0]);s[g]-=E,o[g]-=E}return p});return this._prevEasingPer=f,{pos:d,easingPer:f,finished:f>=1}},t._easing=function(e){return e>1?1:this._options.easing(e)},r})($i),Ki=(function(a){Se(r,a);function r(e,n,i){e===void 0&&(e={}),n===void 0&&(n={}),i===void 0&&(i={});var o=a.call(this)||this;return o.axis=e,o._inputs=[],o.options=z({easing:function(s){return 1-Math.pow(1-s,3)},interruptable:!0,maximumDuration:1/0,minimumDuration:0,deceleration:6e-4,round:null,nested:!1}
1,n),Object.keys(i).forEach(function(s){o.axis[s].startPos=i[s]}),o.interruptManager=new Mi(o.options),o.axisManager=new ji(o.axis),o.eventManager=new Ni(o),o.animationManager=new Yi(o),o.inputObserver=new qi(o),o.eventManager.setAnimationManager(o.animationManager),o.eventManager.triggerChange(o.axisManager.get()),o}var t=r.prototype;return Object.defineProperty(t,"holding",{get:function(){return this.eventManager.holdingCount>0},enumerable:!1,configurable:!0}),t.connect=function(e,n){var i;return typeof e=="string"?i=e.split(" "):i=e.concat(),~this._inputs.indexOf(n)&&this.disconnect(n),n.mapAxes(i),n.connect(this.inputObserver),this._inputs.push(n),this},t.disconnect=function(e){if(e){var n=this._inputs.indexOf(e);n>=0&&(this._inputs[n].disconnect(),this._inputs.splice(n,1))}else this._inputs.forEach(function(i){return i.disconnect()}),this._inputs=[];return this},t.get=function(e){return this.axisManager.get(e)},t.setTo=function(e,n){return n===void 0&&(n=0),this.animationManager.setTo(e,n),this},t.setBy=function(e,n){return n===void 0&&(n=0),this.animationManager.setBy(e,n),this},t.setOptions=function(e){return this.options=z(z({},this.options),e),this.animationManager.setOptions(e),this},t.setAxis=function(e){return this.axisManager.setAxis(e),this},t.stopAnimation=function(){return this.animationManager.stopAnimation(),this.animationManager.finish(!1),this},t.updateAnimation=function(e){return this.animationManager.updateAnimation(e),this},t.isBounceArea=function(e){return this.axisManager.isOutside(e)},t.destroy=function(){this.disconnect(),this.eventManager.destroy()},r.VERSION="3.9.2",r.TRANSFORM=Oi,r.DIRECTION_NONE=Ue,r.DIRECTION_LEFT=hi,r.DIRECTION_RIGHT=di,r.DIRECTION_UP=vi,r.DIRECTION_DOWN=gi,r.DIRECTION_HORIZONTAL=we,r.DIRECTION_VERTICAL=Ie,r.DIRECTION_ALL=mt,jt([fi],r.prototype,"holding",null),r=jt([si],r),r})(pe),Zi=function(a,r){if(r<0||r>90)return Ue;var t=Math.abs(a);return t>r&&t<180-r?Ie:we},Ji=(function(){function a(t,e){var n=this;this.axes=[],this.element=null,this._enabled=!1,this._activeEvent=null,this._atRightEdge=!1,this._rightEdgeTimer=0,this._dragged=!1,this._isOverThreshold=!1,this._preventClickWhenDragged=function(i){n._dragged&&(i.preventDefault(),i.stopPropagation()),n._dragged=!1},this._voidFunction=function(){},this.element=Yn(t),this.options=z({inputType:["touch","mouse","pointer"],inputKey:[$n],inputButton:[ft],scale:[1,1],thresholdAngle:45,threshold:0,preventClickOnDrag:!1,preventDefaultOnDrag:!1,iOSEdgeSwipeThreshold:yi,releaseOnScroll:!1,touchAction:null},e),this._onPanstart=this._onPanstart.bind(this),this._onPanmove=this._onPanmove.bind(this),this._onPanend=this._onPanend.bind(this)}var r=a.prototype;return r.mapAxes=function(t){this._direction=Si(!!t[0],!!t[1]),this.axes=t},r.connect=function(t){return this._activeEvent&&(this._detachElementEvent(),this._detachWindowEvent(this._activeEvent)),this._attachElementEvent(t),this},r.disconnect=function(){return this._detachElementEvent(),this._detachWindowEvent(this._activeEvent),this._direction=Ue,this},r.destroy=function(){this.disconnect(),this.element=null},r.enable=function(){var t=Tn(this.options.inputType);if(t)this._enabled||(this._enabled=!0,this._originalCssProps=ki(this.element,this.options,this._direction));else throw new Error("PanInput cannot be enabled if there is no available input event.");return this},r.disable=function(){return this._enabled&&(this._enabled=!1,Ci(this._originalCssProps)||Di(this.element,this._originalCssProps)),this},r.isEnabled=function(){return this._enabled},r.release=function(){var t=this._activeEvent,e=t.prevEvent;return t.onRelease(),this._observer.release(this,e,[0,0]),this._detachWindowEvent(t),this},r._onPanstart=function(t){var e=this.options,n=e.inputKey,i=e.inputButton,o=e.preventDefaultOnDrag,s=this._activeEvent,u=s.onEventStart(t,n,i);if(!(!u||!this._enabled||s.getTouches(t,i)>1)&&u.srcEvent.cancelable!==!1){var l=this.options.iOSEdgeSwipeThreshold;this._dragged=!1,this._isOverThreshold=!1,this._observer.hold(this,u),this._atRightEdge=Pn&&u.center.x>window.innerWidth-l,this._attachWindowEvent(s),o&&u.srcEvent.type!=="touchstart"&&u.srcEvent.preventDefault(),s.prevEvent=u}}
1,r._onPanmove=function(t){var e=this,n=this.options,i=n.iOSEdgeSwipeThreshold,o=n.preventClickOnDrag,s=n.releaseOnScroll,u=n.inputKey,l=n.inputButton,c=n.threshold,f=n.thresholdAngle,d=this._activeEvent,h=d.onEventMove(t,u,l),v=d.getTouches(t,l);if(v===0||s&&h&&!h.srcEvent.cancelable){this._onPanend(t);return}if(!(!h||!this._enabled||v>1)){var g=Zi(h.angle,f),_=ot(we,this._direction,g),p=ot(Ie,this._direction,g);if(d.prevEvent&&Pn){var E=h.center.x<0;if(E){this.release();return}else if(this._atRightEdge){clearTimeout(this._rightEdgeTimer);var x=h.deltaX<-i;x?this._atRightEdge=!1:this._rightEdgeTimer=window.setTimeout(function(){return e.release()},100)}}var w=this._getDistance([h.deltaX,h.deltaY],[_,p]),W=this._getOffset([h.offsetX,h.offsetY],[_,p]),Y=W.some(function(J){return J!==0});Y&&(h.srcEvent.cancelable!==!1&&h.srcEvent.preventDefault(),h.srcEvent.stopPropagation()),h.preventSystemEvent=Y,Y&&(this._isOverThreshold||w>=c)&&(this._dragged=o,this._isOverThreshold=!0,this._observer.change(this,h,er(this.axes,W))),d.prevEvent=h}},r._onPanend=function(t){var e=this.options.inputButton,n=this._activeEvent;if(n.onEventEnd(t),!(!this._enabled||n.getTouches(t,e)!==0)){this._detachWindowEvent(n),clearTimeout(this._rightEdgeTimer);var i=n.prevEvent,o=this._isOverThreshold?this._getOffset([Math.abs(i.velocityX)*i.directionX,Math.abs(i.velocityY)*i.directionY],[ot(we,this._direction),ot(Ie,this._direction)]):[0,0];n.onRelease(),this._observer.release(this,i,o)}},r._attachWindowEvent=function(t){var e=this;t?.move.forEach(function(n){window.addEventListener(n,e._onPanmove,Rn(n))}),t?.end.forEach(function(n){window.addEventListener(n,e._onPanend,Rn(n))})},r._detachWindowEvent=function(t){var e=this;t?.move.forEach(function(n){window.removeEventListener(n,e._onPanmove)}),t?.end.forEach(function(n){window.removeEventListener(n,e._onPanend)})},r._getOffset=function(t,e){var n=this.options.scale;return[e[0]?t[0]*n[0]:0,e[1]?t[1]*n[1]:0]},r._getDistance=function(t,e){return Math.sqrt(Number(e[0])*Math.pow(t[0],2)+Number(e[1])*Math.pow(t[1],2))},r._attachElementEvent=function(t){var e=this,n=Tn(this.options.inputType),i=this.element;if(n){if(!i)throw new Error("Element to connect input does not exist.");this._observer=t,this.enable(),this._activeEvent=n,i.addEventListener("click",this._preventClickWhenDragged,!0),n.start.forEach(function(o){i.addEventListener(o,e._onPanstart)}),n.move.forEach(function(o){i.addEventListener(o,e._voidFunction)})}},r._detachElementEvent=function(){var t=this,e=this._activeEvent,n=this.element;n&&(n.removeEventListener("click",this._preventClickWhenDragged,!0),e?.start.forEach(function(i){n.removeEventListener(i,t._onPanstart)}),e?.move.forEach(function(i){n.removeEventListener(i,t._voidFunction)})),this.disable(),this._observer=null},a})(),Bt=function(a,r){return Bt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Bt(a,r)};function ke(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Bt(a,r);function t(){this.constructor=a}a.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var Ae=function(){return Ae=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},Ae.apply(this,arguments)};function Qi(){for(var a=0,r=0,t=arguments.length;r<t;r++)a+=arguments[r].length;for(var e=Array(a),n=0,r=0;r<t;r++)for(var i=arguments[r],o=0,s=i.length;o<s;o++,n++)e[n]=i[o];return e}var Qt=typeof window<"u",ea=Qt?window.navigator.userAgent:"",ta=Qt?"getComputedStyle"in window:!1,na=/MSIE|Trident|Windows Phone|Edge/.test(ea),ra=Qt?"addEventListener"in document:!1,Gt="width",He="height";function ct(a,r){return a.getAttribute(r)||""}function ht(a){return[].slice.call(a)}function ia(a,r){return r===void 0&&(r="data-"),!!a.getAttribute(r+"width")}function tr(a,r){return r===void 0&&(r="data-"),"loading"in a&&a.getAttribute("loading")==="lazy"||!!a.getAttribute(r+"lazy")}function aa(a,r){return r===void 0&&(r="data-"),!!a.getAttribute(r+"skip")}
vendor: 7,796 bytes, line 1
1function nr(a,r,t){ra?a.addEventListener(r,t,!1):a.attachEvent?a.attachEvent("on"+r,t):a["on"+r]=t}function rr(a,r,t){a.removeEventListener?a.removeEventListener(r,t,!1):a.detachEvent?a.detachEvent("on"+r,t):a["on"+r]=null}function oa(a){return ir(a,"Width")}function sa(a){return ir(a,"Height")}function ua(a){return(ta?window.getComputedStyle(a):a.currentStyle)||{}}function ir(a,r){var t=a["client"+r]||a["offset"+r];return parseFloat(t||ua(a)[r.toLowerCase()])||0}function la(a,r,t){var e=ht(a.querySelectorAll(Qi(["["+t+"skip] ["+t+"width]"],r.map(function(n){return["["+t+"skip] "+n,n+"["+t+"skip]","["+t+"width] "+n].join(", ")})).join(", ")));return ht(a.querySelectorAll("["+t+"width], "+r.join(", "))).filter(function(n){return e.indexOf(n)===-1})}var xe=[];function ar(a,r){!xe.length&&nr(window,"resize",sr),a.__PREFIX__=r,xe.push(a),or(a)}function ca(a,r){var t=xe.indexOf(a);if(!(t<0)){var e=ct(a,r+"fixed");delete a.__PREFIX__,a.style[e===He?Gt:He]="",xe.splice(t,1),!xe.length&&rr(window,"resize",sr)}}function or(a,r){r===void 0&&(r="data-");var t=a.__PREFIX__||r,e=parseInt(ct(a,""+t+Gt),10)||0,n=parseInt(ct(a,""+t+He),10)||0,i=ct(a,t+"fixed");if(i===He){var o=sa(a)||n;a.style[Gt]=e/n*o+"px"}else{var o=oa(a)||e;a.style[He]=n/e*o+"px"}}function sr(){xe.forEach(function(a){or(a)})}var en=(function(a){ke(r,a);function r(e,n){n===void 0&&(n={});var i=a.call(this)||this;i.isReady=!1,i.isPreReady=!1,i.hasDataSize=!1,i.hasLoading=!1,i.isSkip=!1,i.onCheck=function(s){i.clear(),s&&s.type==="error"&&i.onError(i.element),!(i.hasLoading&&i.checkElement())&&i.onReady()},i.options=Ae({prefix:"data-"},n),i.element=e;var o=i.options.prefix;return i.hasDataSize=ia(e,o),i.isSkip=aa(e,o),i.hasLoading=tr(e,o),i}var t=r.prototype;return t.check=function(){return this.isSkip||!this.checkElement()?(this.onAlreadyReady(),!1):(this.hasDataSize&&ar(this.element,this.options.prefix),(this.hasDataSize||this.hasLoading)&&this.onAlreadyPreReady(),!0)},t.addEvents=function(){var e=this,n=this.element;this.constructor.EVENTS.forEach(function(i){nr(n,i,e.onCheck)})},t.clear=function(){var e=this,n=this.element;this.constructor.EVENTS.forEach(function(i){rr(n,i,e.onCheck)}),this.removeAutoSizer()},t.destroy=function(){this.clear(),this.off()},t.removeAutoSizer=function(){if(this.hasDataSize){var e=this.options.prefix;ca(this.element,e)}},t.onError=function(e){this.trigger("error",{element:this.element,target:e})},t.onPreReady=function(){this.isPreReady||(this.isPreReady=!0,this.trigger("preReady",{element:this.element,hasLoading:this.hasLoading,isSkip:this.isSkip}))},t.onReady=function(){var e=this.isPreReady;this.isPreReady=!0,!this.isReady&&(this.removeAutoSizer(),this.isReady=!0,this.trigger("ready",{element:this.element,withPreReady:!e,hasLoading:this.hasLoading,isSkip:this.isSkip}))},t.onAlreadyError=function(e){var n=this;setTimeout(function(){n.onError(e)})},t.onAlreadyPreReady=function(){var e=this;setTimeout(function(){e.onPreReady()})},t.onAlreadyReady=function(){var e=this;setTimeout(function(){e.onReady()})},r.EVENTS=[],r})(pe),fa=(function(a){ke(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}var t=r.prototype;return t.setHasLoading=function(e){this.hasLoading=e},t.check=function(){return this.isSkip?(this.onAlreadyReady(),!1):(this.hasDataSize?(ar(this.element,this.options.prefix),this.onAlreadyPreReady()):this.trigger("requestChildren"),!0)},t.checkElement=function(){return!0},t.destroy=function(){this.clear(),this.trigger("requestDestroy"),this.off()},t.onAlreadyPreReady=function(){a.prototype.onAlreadyPreReady.call(this),this.trigger("reqeustReadyChildren")},r.EVENTS=[],r})(en),ha=(function(a){ke(r,a);function r(e){e===void 0&&(e={});var n=a.call(this)||this;return n.readyCount=0,n.preReadyCount=0,n.totalCount=0,n.totalErrorCount=0,n.isPreReadyOver=!0,n.elementInfos=[],n.options=Ae({loaders:{},prefix:"data-"},e),n}var t=r.prototype;return t.check=function(e){var n=this,i=this.options.prefix;this.clear(),this.elementInfos=ht(e).map(function(s,u){var l=n.getLoader(s,{prefix:i});return l.check(),l.on("error",function(c){n.onError(u,c.target)}).on("preReady",function(c){var f=n.elementInfos[u];f.hasLoading=c.hasLoading,f.isSkip=c.isSkip;var d=n.checkPreReady(u);n.onPreReadyElement(u),d&&n.onPreReady()}).on("ready",function(c){var f=c.withPreReady,d=c.hasLoading,h=c.isSkip,v=n.elementInfos[u];v.hasLoading=d,v.isSkip=h;var g=f&&n.checkPreReady(u),_=n.checkReady(u);f&&n.onPreReadyElement(u),n.onReadyElement(u),g&&n.onPreReady(),_&&n.onReady()}),{loader:l,element:s,hasLoading:!1,hasError:!1,isPreReady:!1,isReady:!1,isSkip:!1}});var o=this.elementInfos.length;return this.totalCount=o,o||setTimeout(function(){n.onPreReady(),n.onReady()}),this},t.getTotalCount=function(){return this.totalCount},t.isPreReady=function(){return this.elementInfos.every(function(e){return e.isPreReady})},t.isReady=function(){return this.elementInfos.every(function(e){return e.isReady})},t.hasError=function(){return this.totalErrorCount>0},t.clear=function(){this.isPreReadyOver=!1,this.totalCount=0,this.preReadyCount=0,this.readyCount=0,this.totalErrorCount=0,this.elementInfos.forEach(function(e){e.loader&&e.loader.destroy()}),this.elementInfos=[]},t.destroy=function(){this.clear(),this.off()},t.getLoader=function(e,n){var i=this,o=e.tagName.toLowerCase(),s=this.options.loaders,u=n.prefix,l=Object.keys(s);if(s[o])return new s[o](e,n);var c=new fa(e,n),f=ht(e.querySelectorAll(l.join(", ")));c.setHasLoading(f.some(function(h){return tr(h,u)}));var d=this.clone().on("error",function(h){c.onError(h.target)}).on("ready",function(){c.onReady()});return c.on("requestChildren",function(){var h=la(e,l,i.options.prefix);d.check(h).on("preReady",function(v){v.isReady||c.onPreReady()})}).on("reqeustReadyChildren",function(){d.check(f)}).on("requestDestroy",function(){d.destroy()}),c},t.clone=function(){return new r(Ae({},this.options))},t.checkPreReady=function(e){return this.elementInfos[e].isPreReady=!0,++this.preReadyCount,!(this.preReadyCount<this.totalCount)},t.checkReady=function(e){return this.elementInfos[e].isReady=!0,++this.readyCount,!(this.readyCount<this.totalCount)},t.onError=function(e,n){var i=this.elementInfos[e];i.hasError=!0,this.trigger(new T("error",{element:i.element,index:e,target:n,errorCount:this.getErrorCount(),totalErrorCount:++this.totalErrorCount}))},t.onPreReadyElement=function(e){var n=this.elementInfos[e];this.trigger(new T("preReadyElement",{element:n.element,index:e,preReadyCount:this.preReadyCount,readyCount:this.readyCount,totalCount:this.totalCount,isPreReady:this.isPreReady(),isReady:this.isReady(),hasLoading:n.hasLoading,isSkip:n.isSkip}))},t.onPreReady=function(){this.isPreReadyOver=!0,this.trigger(new T("preReady",{readyCount:this.readyCount,totalCount:this.totalCount,isReady:this.isReady(),hasLoading:this.hasLoading()}))},t.onReadyElement=function(e){var n=this.elementInfos[e];this.trigger(new T("readyElement",{index:e,element:n.element,hasError:n.hasError,errorCount:this.getErrorCount(),totalErrorCount:this.totalErrorCount,preReadyCount:this.preReadyCount,readyCount:this.readyCount,totalCount:this.totalCount,isPreReady:this.isPreReady(),isReady:this.isReady(),hasLoading:n.hasLoading,isPreReadyOver:this.isPreReadyOver,isSkip:n.isSkip}))},t.onReady=function(){this.trigger(new T("ready",{errorCount:this.getErrorCount(),totalErrorCount:this.totalErrorCount,totalCount:this.totalCount}))},t.getErrorCount=function(){return this.elementInfos.filter(function(e){return e.hasError}).length},t.hasLoading=function(){return this.elementInfos.some(function(e){return e.hasLoading})},r})(pe),da=(function(a){ke(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}var t=r.prototype;return t.checkElement=function(){var e=this.element,n=e.getAttribute("src");
1if(e.complete){if(n)return e.naturalWidth||this.onAlreadyError(e),!1;this.onAlreadyPreReady()}return this.addEvents(),na&&e.setAttribute("src",n),!0},r.EVENTS=["load","error"],r})(en),va=(function(a){ke(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}var t=r.prototype;return t.checkElement=function(){var e=this.element;return e.readyState>=1?!1:e.error?(this.onAlreadyError(e),!1):(this.addEvents(),!0)},r.EVENTS=["loadedmetadata","error"],r})(en),ga=(function(a){ke(r,a);function r(t){return t===void 0&&(t={}),a.call(this,Ae({loaders:{img:da,video:va}},t))||this}return r})(ha),Ut=function(a,r){return Ut=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Ut(a,r)};function U(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Ut(a,r);function t(){this.constructor=a}a.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var q=function(){return q=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},q.apply(this,arguments)};function Te(a,r,t,e){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{l(e.next(c))}catch(f){o(f)}}function u(c){try{l(e.throw(c))}catch(f){o(f)}}function l(c){c.done?i(c.value):n(c.value).then(s,u)}l((e=e.apply(a,[])).next())})}function Re(a,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(c){return u([l,c])}}function u(l){if(e)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(t=0)),t;)try{if(e=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,n=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1],i=l;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(l);break}i[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(a,t)}catch(c){l=[6,c],n=0}finally{e=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Et(a){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&a[r],e=0;if(t)return t.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&e>=a.length&&(a=void 0),{value:a&&a[e++],done:!a}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function tn(a,r){var t=typeof Symbol=="function"&&a[Symbol.iterator];if(!t)return a;var e=t.call(a),n,i=[],o;try{for(;(r===void 0||r-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=e.return)&&t.call(e)}finally{if(o)throw o.error}}return i}function L(){for(var a=[],r=0;r<arguments.length;r++)a=a.concat(tn(arguments[r]));return a}var C={WRONG_TYPE:0,ELEMENT_NOT_FOUND:1,VAL_MUST_NOT_NULL:2,NOT_ATTACHED_TO_FLICKING:3,WRONG_OPTION:4,INDEX_OUT_OF_RANGE:5,POSITION_NOT_REACHABLE:6,TRANSFORM_NOT_SUPPORTED:7,STOP_CALLED_BY_USER:8,ANIMATION_INTERRUPTED:9,ANIMATION_ALREADY_PLAYING:10,NOT_ALLOWED_IN_FRAMEWORK:11,NOT_INITIALIZED:12},D={WRONG_TYPE:function(a,r){return a+"("+typeof a+") is not a "+r.map(function(t){return'"'+t+'"'}).join(" or ")+"."},ELEMENT_NOT_FOUND:function(a){return'Element with selector "'+a+'" not found.'},VAL_MUST_NOT_NULL:function(a,r){return r+" should be provided. Given: "+a},NOT_ATTACHED_TO_FLICKING:'This module is not attached to the Flicking instance. "init()" should be called first.',WRONG_OPTION:function(a,r){return'Option "'+a+'" is not in correct format, given: '+r},INDEX_OUT_OF_RANGE:function(a,r,t){return'Index "'+a+'" is out of range: should be between '+r+" and "+t+"."},POSITION_NOT_REACHABLE:function(a){return'Position "'+a+'" is not reachable.'},TRANSFORM_NOT_SUPPORTED:"Browser does not support CSS transform.",STOP_CALLED_BY_USER:"Event stop() is called by user.",ANIMATION_INTERRUPTED:"Animation is interrupted by user input.",ANIMATION_ALREADY_PLAYING:"Animation is already playing.",NOT_ALLOWED_IN_FRAMEWORK:"This behavior is not allowed in the frameworks like React, Vue, or Angular.",NOT_INITIALIZED:"Flicking is not initialized yet, call init() first.",NO_ACTIVE:"There's no active panel that Flicking has selected. This may be due to the absence of any panels.",NOT_ALLOWED_IN_VIRTUAL:"This behavior is not allowed when the virtual option is enabled"},A={READY:"ready",BEFORE_RESIZE:"beforeResize",AFTER_RESIZE:"afterResize",HOLD_START:"holdStart",HOLD_END:"holdEnd",MOVE_START:"moveStart",MOVE:"move",MOVE_END:"moveEnd",WILL_CHANGE:"willChange",CHANGED:"changed",WILL_RESTORE:"willRestore",RESTORED:"restored",SELECT:"select",NEED_PANEL:"needPanel",VISIBLE_CHANGE:"visibleChange",REACH_EDGE:"reachEdge",PANEL_CHANGE:"panelChange"},ne={PREV:"prev",CENTER:"center",NEXT:"next"},R={PREV:"PREV",NEXT:"NEXT",NONE:null},Pe={SNAP:"snap",FREE_SCROLL:"freeScroll",STRICT:"strict"},_a={DEFAULT_VIRTUAL:"flicking-panel"},ur={LINEAR:"linear",BOUND:"bound"},Oe={LTR:"ltr",RTL:"rtl"},pa=function(a,r){var t=null;if(_e(a)){var e=document,n=e.querySelector(a);if(!n)throw new S(D.ELEMENT_NOT_FOUND(a),C.ELEMENT_NOT_FOUND);t=n}else a&&a.nodeType===Node.ELEMENT_NODE&&(t=a);if(!t)throw new S(D.WRONG_TYPE(a,["HTMLElement","string"]),C.WRONG_TYPE);return t},ma=function(a,r){if(a==null)throw new S(D.VAL_MUST_NOT_NULL(a,r),C.VAL_MUST_NOT_NULL)},de=function(a,r,t){return Math.max(Math.min(a,t),r)}
1,y=function(a){if(!a)throw new S(D.NOT_ATTACHED_TO_FLICKING,C.NOT_ATTACHED_TO_FLICKING);return a},nn=function(a){return[].slice.call(a)},rn=function(a,r){var t;if(_e(a))switch(a){case ne.PREV:t=0;break;case ne.CENTER:t=.5*r;break;case ne.NEXT:t=r;break;default:if(t=Wt(a,r),t==null)throw new S(D.WRONG_OPTION("align",a),C.WRONG_OPTION)}else t=a;return t},ba=function(a,r){var t;if(Array.isArray(a))t=a.map(function(n){return Wt(n,r)});else{var e=Wt(a,r);t=[e,e]}return t.map(function(n){if(n==null)throw new S(D.WRONG_OPTION("bounce",a),C.WRONG_OPTION);return n})},Wt=function(a,r){var t=lr(a);return t==null?null:t.percentage*r+t.absolute},lr=function(a){var r=/(?:(\+|\-)\s*)?(\d+(?:\.\d+)?(%|px)?)/g;if(typeof a=="number")return{percentage:0,absolute:a};for(var t={percentage:0,absolute:0},e=0,n=r.exec(a);n!=null;){var i=n[1],o=n[2],s=n[3],u=parseFloat(o);if(e<=0&&(i=i||"+"),!i)return null;var l=i==="+"?1:-1;s==="%"?t.percentage+=l*(u/100):t.absolute+=l*u,++e,n=r.exec(a)}return e===0?null:t},dt=function(a){return typeof a=="object"?a.panel:a},ge=function(a,r){return a===r?R.NONE:a<r?R.NEXT:R.PREV},wn=function(a){Array.isArray(a)||(a=[a]);var r=[];return a.forEach(function(t){if(_e(t)){var e=document.createElement("div");for(e.innerHTML=t,r.push.apply(r,L(nn(e.children)));e.firstChild;)e.removeChild(e.firstChild)}else if(t&&t.nodeType===Node.ELEMENT_NODE)r.push(t);else throw new S(D.WRONG_TYPE(t,["HTMLElement","string"]),C.WRONG_TYPE)}),r},vt=function(a,r){return a<0?de(a+r,0,r):de(a,0,r)},gt=function(a,r){var t,e;try{for(var n=Et(a),i=n.next();!i.done;i=n.next()){var o=i.value;if(o===r)return!0}}catch(s){t={error:s}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return!1},_e=function(a){return typeof a=="string"},cr=function(a,r,t){var e=t-r;if(a<r){var n=(r-a)%e;a=t-n}else if(a>t){var n=(a-t)%e;a=r+n}return a},Ea=function(a,r){var t,e;try{for(var n=Et(a),i=n.next();!i.done;i=n.next()){var o=i.value;if(r(o))return o}}catch(s){t={error:s}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return null},Pa=function(a,r){for(var t=0;t<a.length;t++)if(r(a[t]))return t;return-1},_t=function(a,r,t){return(a-r)/(t-r)},Ce=function(a){return a?window.getComputedStyle(a)||a.currentStyle:{}},fr=function(a,r){var t=r.width,e=r.height;a&&(t!=null&&(_e(t)?a.style.width=t:a.style.width=t+"px"),e!=null&&(_e(e)?a.style.height=e:a.style.height=e+"px"))},Ct=function(a,r,t){return a>=r&&a<=t},hr=function(a,r){return a>=r?a%r:a<0?vt((a+1)%r-1,r):a},Ge=function(a){for(var r=new Array(a),t=0;t<a;t++)r[t]=t;return r},ve=function(a){var r=a.el,t=a.horizontal,e=a.useFractionalSize,n=a.useOffset,i=a.style,o=0;if(e){var s=parseFloat(t?i.width:i.height)||0,u=i.boxSizing==="border-box",l=t?parseFloat(i.borderLeftWidth||"0")+parseFloat(i.borderRightWidth||"0"):parseFloat(i.borderTopWidth||"0")+parseFloat(i.borderBottomWidth||"0");if(u)o=n?s:s-l;else{var c=t?parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"):parseFloat(i.paddingTop||"0")+parseFloat(i.paddingBottom||"0");o=n?s+c+l:s+c}}else{var f=t?"Width":"Height";o=n?r["offset"+f]:r["client"+f]}return Math.max(o,0)},ya=Object.setPrototypeOf||function(a,r){return a.__proto__=r,a},S=(function(a){U(r,a);function r(t,e){var n=a.call(this,t)||this;return ya(n,r.prototype),n.name="FlickingError",n.code=e,n}return r})(Error),Oa=(function(){function a(t,e){this._flicking=t,this._el=e,this._width=0,this._height=0,this._padding={left:0,right:0,top:0,bottom:0},this._isBorderBoxSizing=!1}var r=a.prototype;return Object.defineProperty(r,"element",{get:function(){return this._el},enumerable:!1,configurable:!0}),Object.defineProperty(r,"width",{get:function(){return this._width-this._padding.left-this._padding.right},enumerable:!1,configurable:!0}),Object.defineProperty(r,"height",{get:function(){return this._height-this._padding.top-this._padding.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(r,"padding",{get:function(){return this._padding},enumerable:!1,configurable:!0}),r.setSize=function(t){var e=t.width,n=t.height,i=this._el,o=this._padding,s=this._isBorderBoxSizing;if(e!=null)if(_e(e))i.style.width=e;else{var u=s?e+o.left+o.right:e;i.style.width=u+"px"}if(n!=null)if(_e(n))i.style.height=n;else{var l=s?n+o.top+o.bottom:n;i.style.height=l+"px"}this.resize()},r.resize=function(){var t=this._el,e=Ce(t),n=this._flicking.useFractionalSize;this._width=ve({el:t,horizontal:!0,useFractionalSize:n,useOffset:!1,style:e}),this._height=ve({el:t,horizontal:!1,useFractionalSize:n,useOffset:!1,style:e}),this._padding={left:e.paddingLeft?parseFloat(e.paddingLeft):0,right:e.paddingRight?parseFloat(e.paddingRight):0,top:e.paddingTop?parseFloat(e.paddingTop):0,bottom:e.paddingBottom?parseFloat(e.paddingBottom):0},this._isBorderBoxSizing=e.boxSizing==="border-box"},a})(),xa=(function(){function a(t){var e=this;this._onResizeWrapper=function(){e._onResize([])},this._onResize=function(n){var i=e._flicking,o=i.resizeDebounce,s=i.maxResizeDebounce,u=i.element,l=n.find(function(d){return d.target===i.element})&&n.length===1;if(l){var c={width:i.viewport.width,height:i.viewport.height},f={width:ve({el:u,horizontal:!0,useFractionalSize:e._flicking.useFractionalSize,useOffset:!1,style:Ce(u)}),height:ve({el:u,horizontal:!1,useFractionalSize:e._flicking.useFractionalSize,useOffset:!1,style:Ce(u)})};if(c.height===f.height&&c.width===f.width)return}o<=0?i.resize():(e._maxResizeDebounceTimer<=0&&s>0&&s>=o&&(e._maxResizeDebounceTimer=window.setTimeout(e._doScheduledResize,s)),e._resizeTimer>0&&(clearTimeout(e._resizeTimer),e._resizeTimer=0),e._resizeTimer=window.setTimeout(e._doScheduledResize,o))},this._doScheduledResize=function(){clearTimeout(e._resizeTimer),clearTimeout(e._maxResizeDebounceTimer),e._maxResizeDebounceTimer=-1,e._resizeTimer=-1,e._flicking.resize()},this._skipFirstResize=(function(){var n=!0;return function(i){if(n){n=!1;return}e._onResize(i)}})(),this._flicking=t,this._enabled=!1,this._resizeObserver=null,this._resizeTimer=-1,this._maxResizeDebounceTimer=-1}var r=a.prototype;return Object.defineProperty(r,"enabled",{get:function(){return this._enabled}
1,enumerable:!1,configurable:!0}),r.enable=function(){var t=this._flicking,e=t.viewport;if(this._enabled&&this.disable(),t.useResizeObserver&&window.ResizeObserver){var n=e.width!==0||e.height!==0,i=n?new ResizeObserver(this._skipFirstResize):new ResizeObserver(this._onResize);this._resizeObserver=i,this.observe(t.viewport.element),t.observePanelResize&&this.observePanels()}else window.addEventListener("resize",this._onResizeWrapper);return this._enabled=!0,this},r.observePanels=function(){var t=this;return this._flicking.panels.forEach(function(e){t.observe(e.element)}),this},r.unobservePanels=function(){var t=this;return this._flicking.panels.forEach(function(e){t.unobserve(e.element)}),this},r.observe=function(t){var e=this._resizeObserver;return e?(e.observe(t),this):this},r.unobserve=function(t){var e=this._resizeObserver;return e?(e.unobserve(t),this._flicking.observePanelResize&&this.unobservePanels(),this):this},r.disable=function(){if(!this._enabled)return this;var t=this._resizeObserver;return t?(t.disconnect(),this._resizeObserver=null):window.removeEventListener("resize",this._onResizeWrapper),this._enabled=!1,this},a})(),Ta=(function(){function a(t){this._element=t,this._rendered=!0}var r=a.prototype;return Object.defineProperty(r,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(r,"rendered",{get:function(){return this._rendered},enumerable:!1,configurable:!0}),r.show=function(t){var e=this.element,n=t.camera.element;e.parentElement!==n&&(n.appendChild(e),this._rendered=!0)},r.hide=function(t){var e=this.element,n=t.camera.element;e.parentElement===n&&(n.removeChild(e),this._rendered=!1)},a})(),In=(function(){function a(t){this._flicking=t}var r=a.prototype;return Object.defineProperty(r,"element",{get:function(){return this._virtualElement.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(r,"rendered",{get:function(){return this._virtualElement.visible},enumerable:!1,configurable:!0}),Object.defineProperty(r,"_virtualElement",{get:function(){var t=this._flicking,e=this._panel.elementIndex,n=t.virtual.elements;return n[e]},enumerable:!1,configurable:!0}),r.init=function(t){this._panel=t},r.show=function(){},r.hide=function(){},a})(),Ra=(function(){function a(t,e){var n,i,o,s;this._flicking=t,this._renderPanel=(n=e?.renderPanel)!==null&&n!==void 0?n:function(){return""},this._initialPanelCount=(i=e?.initialPanelCount)!==null&&i!==void 0?i:-1,this._cache=(o=e?.cache)!==null&&o!==void 0?o:!1,this._panelClass=(s=e?.panelClass)!==null&&s!==void 0?s:_a.DEFAULT_VIRTUAL,this._elements=[]}var r=a.prototype;return Object.defineProperty(r,"elements",{get:function(){return this._elements},enumerable:!1,configurable:!0}),Object.defineProperty(r,"renderPanel",{get:function(){return this._renderPanel},set:function(t){this._renderPanel=t,this._flicking.renderer.panels.forEach(function(e){return e.uncacheRenderResult()})},enumerable:!1,configurable:!0}),Object.defineProperty(r,"initialPanelCount",{get:function(){return this._initialPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(r,"cache",{get:function(){return this._cache},set:function(t){this._cache=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"panelClass",{get:function(){return this._panelClass},set:function(t){this._panelClass=t},enumerable:!1,configurable:!0}),r.init=function(){var t=this._flicking;if(t.virtualEnabled){!t.externalRenderer&&!t.renderExternal&&this._initVirtualElements();var e=t.camera.children;this._elements=e.map(function(n){return{nativeElement:n,visible:!0}})}},r.show=function(t){var e=this._elements[t],n=e.nativeElement;e.visible=!0,n.style.display&&(n.style.display="")},r.hide=function(t){var e=this._elements[t],n=e.nativeElement;e.visible=!1,n.style.display="none"},r.append=function(t){t===void 0&&(t=1);var e=this._flicking;return this.insert(e.panels.length,t)},r.prepend=function(t){return t===void 0&&(t=1),this.insert(0,t)},r.insert=function(t,e){if(e===void 0&&(e=1),e<=0)return[];var n=this._flicking;return n.renderer.batchInsert({index:t,elements:Ge(e),hasDOMInElements:!1})},r.remove=function(t,e){if(e<=0)return[];var n=this._flicking;return n.renderer.batchRemove({index:t,deleteCount:e,hasDOMInElements:!1})}
1,r._initVirtualElements=function(){var t=this,e=this._flicking,n=e.camera.element,i=e.panelsPerView,o=document.createDocumentFragment(),s=Ge(i+1).map(function(u){var l=document.createElement("div");return l.className=t._panelClass,l.dataset.elementIndex=u.toString(),l});s.forEach(function(u){o.appendChild(u)}),n.appendChild(o)},a})(),B={HOLD:"hold",CHANGE:"change",RELEASE:"release",ANIMATION_END:"animationEnd",FINISH:"finish"},M="flick",N;(function(a){a[a.IDLE=0]="IDLE",a[a.HOLDING=1]="HOLDING",a[a.DRAGGING=2]="DRAGGING",a[a.ANIMATING=3]="ANIMATING",a[a.DISABLED=4]="DISABLED"})(N||(N={}));var We=(function(){function a(){this._delta=0,this._targetPanel=null}var r=a.prototype;return Object.defineProperty(r,"delta",{get:function(){return this._delta},enumerable:!1,configurable:!0}),Object.defineProperty(r,"targetPanel",{get:function(){return this._targetPanel},set:function(t){this._targetPanel=t},enumerable:!1,configurable:!0}),r.onEnter=function(t){this._delta=t._delta,this._targetPanel=t._targetPanel},r.onHold=function(t){},r.onChange=function(t){},r.onRelease=function(t){},r.onAnimationEnd=function(t){},r.onFinish=function(t){},r._moveToChangedPosition=function(t){var e=t.flicking,n=t.axesEvent,i=t.transitTo,o=n.delta[M];if(o){this._delta+=o;var s=e.camera,u=s.position,l=n.pos[M],c=e.circularEnabled?cr(l,s.range.min,s.range.max):l;s.lookAt(c);var f=new T(A.MOVE,{isTrusted:n.isTrusted,holding:this.holding,direction:ge(0,n.delta[M]),axesEvent:n});e.trigger(f),f.isCanceled()&&(s.lookAt(u),i(N.DISABLED))}},a})(),An=(function(a){U(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e.holding=!1,e.animating=!1,e}var t=r.prototype;return t.onEnter=function(){this._delta=0,this._targetPanel=null},t.onHold=function(e){var n=e.flicking,i=e.axesEvent,o=e.transitTo;if(n.renderer.panelCount<=0){o(N.DISABLED);return}var s=new T(A.HOLD_START,{axesEvent:i});n.trigger(s),s.isCanceled()?o(N.DISABLED):o(N.HOLDING)},t.onChange=function(e){var n=e.flicking,i=e.axesEvent,o=e.transitTo,s=n.control.controller,u=s.animatingContext,l=new T(A.MOVE_START,{isTrusted:i.isTrusted,holding:this.holding,direction:ge(u.start,u.end),axesEvent:i});n.trigger(l),l.isCanceled()?o(N.DISABLED):o(N.ANIMATING).onChange(e)},r})(We),wa=(function(a){U(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e.holding=!0,e.animating=!1,e._releaseEvent=null,e}var t=r.prototype;return t.onChange=function(e){var n=e.flicking,i=e.axesEvent,o=e.transitTo,s=i.inputEvent;if(s){var u=n.horizontal?s.offsetX:s.offsetY,l=new T(A.MOVE_START,{isTrusted:i.isTrusted,holding:this.holding,direction:ge(0,-u),axesEvent:i});n.trigger(l),l.isCanceled()?o(N.DISABLED):o(N.DRAGGING).onChange(e)}},t.onRelease=function(e){var n=e.flicking,i=e.axesEvent,o=e.transitTo;if(n.trigger(new T(A.HOLD_END,{axesEvent:i})),i.delta.flick!==0){i.setTo({flick:n.camera.position},0),o(N.IDLE);return}this._releaseEvent=i},t.onFinish=function(e){var n,i,o=e.flicking,s=e.transitTo;if(s(N.IDLE),!!this._releaseEvent){var u=this._releaseEvent,l=u.inputEvent.srcEvent,c;if(l.type==="touchend"){var f=l,d=f.changedTouches[0];c=document.elementFromPoint(d.clientX,d.clientY)}else c=l.target;var h=o.renderer.panels,v=null;try{for(var g=Et(h),_=g.next();!_.done;_=g.next()){var p=_.value;if(p.contains(c)){v=p;break}}}catch(w){n={error:w}}finally{try{_&&!_.done&&(i=g.return)&&i.call(g)}finally{if(n)throw n.error}}if(v){var E=o.camera.position,x=v.position;o.trigger(new T(A.SELECT,{index:v.index,panel:v,direction:ge(E,x)}))}}},r})(We),Ia=(function(a){U(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e.holding=!0,e.animating=!0,e}var t=r.prototype;return t.onChange=function(e){this._moveToChangedPosition(e)},t.onRelease=function(e){var n,i=e.flicking,o=e.axesEvent,s=e.transitTo;if(i.trigger(new T(A.HOLD_END,{axesEvent:o})),i.renderer.panelCount<=0){s(N.IDLE);return}s(N.ANIMATING);var u=i.control,l=o.destPos[M],c=Math.max(o.duration,i.duration);try{u.moveToPosition(l,c,o)}catch{s(N.IDLE),o.setTo((n={},n[M]=i.camera.position,n),0)}},r})(We),Aa=(function(a){U(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e.holding=!1,e.animating=!0,e}var t=r.prototype;return t.onHold=function(e){var n=e.flicking,i=e.axesEvent,o=e.transitTo,s=this._targetPanel,u=n.control;
1this._delta=0,n.control.updateInput(),n.changeOnHold&&s&&u.setActive(s,u.activePanel,i.isTrusted);var l=new T(A.HOLD_START,{axesEvent:i});n.trigger(l),l.isCanceled()?o(N.DISABLED):o(N.DRAGGING)},t.onChange=function(e){this._moveToChangedPosition(e)},t.onFinish=function(e){var n=e.flicking,i=e.axesEvent,o=e.transitTo,s=n.control,u=s.controller,l=u.animatingContext;o(N.IDLE),n.trigger(new T(A.MOVE_END,{isTrusted:i.isTrusted,direction:ge(l.start,l.end),axesEvent:i}));var c=this._targetPanel;c&&s.setActive(c,s.activePanel,i.isTrusted)},r})(We),Ca=(function(a){U(r,a);function r(){var e=a!==null&&a.apply(this,arguments)||this;return e.holding=!1,e.animating=!0,e}var t=r.prototype;return t.onAnimationEnd=function(e){var n=e.transitTo;n(N.IDLE)},t.onChange=function(e){var n=e.axesEvent,i=e.transitTo;n.stop(),i(N.IDLE)},t.onRelease=function(e){var n=e.axesEvent,i=e.transitTo;n.delta.flick===0&&i(N.IDLE)},r})(We),Sa=(function(){function a(){var t=this;this.transitTo=function(e){var n;switch(e){case N.IDLE:n=new An;break;case N.HOLDING:n=new wa;break;case N.DRAGGING:n=new Ia;break;case N.ANIMATING:n=new Aa;break;case N.DISABLED:n=new Ca;break}return n.onEnter(t._state),t._state=n,t._state},this._state=new An}var r=a.prototype;return Object.defineProperty(r,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),r.fire=function(t,e){var n=this._state,i=q(q({},e),{transitTo:this.transitTo});switch(t){case B.HOLD:n.onHold(i);break;case B.CHANGE:n.onChange(i);break;case B.RELEASE:n.onRelease(i);break;case B.ANIMATION_END:n.onAnimationEnd(i);break;case B.FINISH:n.onFinish(i);break}},a})(),ka=(function(){function a(){var t=this;this._onAxesHold=function(){t._dragged=!1},this._onAxesChange=function(){var e;t._dragged=!!(!((e=t._panInput)===null||e===void 0)&&e.isEnabled())},this._preventClickWhenDragged=function(e){t._dragged&&(e.preventDefault(),e.stopPropagation()),t._dragged=!1},this._resetInternalValues(),this._stateMachine=new Sa}var r=a.prototype;return Object.defineProperty(r,"axes",{get:function(){return this._axes},enumerable:!1,configurable:!0}),Object.defineProperty(r,"panInput",{get:function(){return this._panInput},enumerable:!1,configurable:!0}),Object.defineProperty(r,"stateMachine",{get:function(){return this._stateMachine},enumerable:!1,configurable:!0}),Object.defineProperty(r,"state",{get:function(){return this._stateMachine.state},enumerable:!1,configurable:!0}),Object.defineProperty(r,"animatingContext",{get:function(){return this._animatingContext},enumerable:!1,configurable:!0}),Object.defineProperty(r,"controlParams",{get:function(){var t=this._axes;if(!t)return{range:{min:0,max:0},position:0,circular:!1};var e=t.axis[M];return{range:{min:e.range[0],max:e.range[1]},circular:e.circular[0],position:this.position}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"enabled",{get:function(){var t,e;return(e=(t=this._panInput)===null||t===void 0?void 0:t.isEnabled())!==null&&e!==void 0?e:!1},enumerable:!1,configurable:!0}),Object.defineProperty(r,"position",{get:function(){var t,e;return(e=(t=this._axes)===null||t===void 0?void 0:t.get([M])[M])!==null&&e!==void 0?e:0},enumerable:!1,configurable:!0}),Object.defineProperty(r,"range",{get:function(){var t,e;return(e=(t=this._axes)===null||t===void 0?void 0:t.axis[M].range)!==null&&e!==void 0?e:[0,0]},enumerable:!1,configurable:!0}),Object.defineProperty(r,"bounce",{get:function(){var t;return(t=this._axes)===null||t===void 0?void 0:t.axis[M].bounce},enumerable:!1,configurable:!0}),r.init=function(t){var e,n=this;this._flicking=t,this._axes=new Ki((e={},e[M]={range:[0,0],circular:!1,bounce:[0,0]},e),{deceleration:t.deceleration,interruptable:t.interruptable,nested:t.nested,easing:t.easing}),this._panInput=new Ji(t.viewport.element,{inputType:t.inputType,threshold:t.dragThreshold,iOSEdgeSwipeThreshold:t.iOSEdgeSwipeThreshold,preventDefaultOnDrag:t.preventDefaultOnDrag,scale:t.horizontal?[t.camera.panelOrder===Oe.RTL?1:-1,0]:[0,-1],releaseOnScroll:!0});var i=this._axes;i.connect(t.horizontal?[M,""]:["",M],this._panInput);var o=function(u){var l=B[u];i.on(l,function(c){n._stateMachine.fire(l,{flicking:t,axesEvent:c})})};for(var s in B)o(s);return this},r.destroy=function(){var t;this._axes&&(this.removePreventClickHandler(),this._axes.destroy()),(t=this._panInput)===null||t===void 0||t.destroy(),this._resetInternalValues()},r.enable=function(){var t;return(t=this._panInput)===null||t===void 0||t.enable(),this},r.disable=function(){var t;return(t=this._panInput)===null||t===void 0||t.disable(),this},r.release=function(){var t;return(t=this._panInput)===null||t===void 0||t.release(),this},r.updateAnimation=function(t,e){var n,i;return this._animatingContext=q(q({},this._animatingContext),{end:t}),(i=this._axes)===null||i===void 0||i.updateAnimation({destPos:(n={},n[M]=t,n),duration:e}),this},r.stopAnimation=function(){var t;return(t=this._axes)===null||t===void 0||t.stopAnimation(),this},r.update=function(t){var e,n=y(this._flicking),i=n.camera,o=this._axes,s=o.axis[M];return s.circular=[t.circular,t.circular],s.range=[t.range.min,t.range.max],s.bounce=ba(n.bounce,i.size),o.axisManager.set((e={},e[M]=t.position,e)),this},r.addPreventClickHandler=function(){var t=y(this._flicking),e=this._axes,n=t.camera.element;return e.on(B.HOLD,this._onAxesHold),e.on(B.CHANGE,this._onAxesChange),n.addEventListener("click",this._preventClickWhenDragged,!0),this},r.removePreventClickHandler=function(){var t=y(this._flicking),e=this._axes,n=t.camera.element;return e.off(B.HOLD,this._onAxesHold),e.off(B.CHANGE,this._onAxesChange),n.removeEventListener("click",this._preventClickWhenDragged,!0),this},r.animateTo=function(t,e,n){var i=this,o,s=this._axes,u=this._stateMachine.state;if(!s)return Promise.reject(new S(D.NOT_ATTACHED_TO_FLICKING,C.NOT_ATTACHED_TO_FLICKING));var l=this.getCurrentPosition();if(l===t){var c=y(this._flicking);return c.camera.lookAt(t),u.targetPanel&&c.control.setActive(u.targetPanel,c.control.activePanel,(o=n?.isTrusted)!==null&&o!==void 0?o:!1),Promise.resolve()}this._animatingContext={start:l,end:t,offset:0};var f=function(){var d,h,v=function(){i._animatingContext={start:0,end:0,offset:0}};s.once(B.FINISH,v),n?n.setTo((d={},d[M]=t,d),e):s.setTo((h={},h[M]=t,h),e)};return new Promise(function(d,h){var v=function(){s.off(B.HOLD,g),d()},g=function(){s.off(B.FINISH,v),h(new S(D.ANIMATION_INTERRUPTED,C.ANIMATION_INTERRUPTED))};s.once(B.FINISH,v),s.once(B.HOLD,g),f()})},r.getCurrentPosition=function(){var t,e;return(e=(t=this._axes)===null||t===void 0?void 0:t.get([M])[M])!==null&&e!==void 0?e:0},r.updateDirection=function(){var t=y(this._flicking),e=this._axes,n=this._panInput;e.disconnect(n),e.connect(t.horizontal?[M,""]:["",M],n),n.options.scale=t.horizontal?[t.camera.panelOrder===Oe.RTL?1:-1,0]:[0,-1
1]},r._resetInternalValues=function(){this._flicking=null,this._axes=null,this._panInput=null,this._animatingContext={start:0,end:0,offset:0},this._dragged=!1},a})(),an=(function(){function a(){this._flicking=null,this._controller=new ka,this._activePanel=null}var r=a.prototype;return Object.defineProperty(r,"controller",{get:function(){return this._controller},enumerable:!1,configurable:!0}),Object.defineProperty(r,"activeIndex",{get:function(){var t,e;return(e=(t=this._activePanel)===null||t===void 0?void 0:t.index)!==null&&e!==void 0?e:-1},enumerable:!1,configurable:!0}),Object.defineProperty(r,"activePanel",{get:function(){return this._activePanel},enumerable:!1,configurable:!0}),Object.defineProperty(r,"animating",{get:function(){return this._controller.state.animating},enumerable:!1,configurable:!0}),Object.defineProperty(r,"holding",{get:function(){return this._controller.state.holding},enumerable:!1,configurable:!0}),r.init=function(t){return this._flicking=t,this._controller.init(t),this},r.destroy=function(){this._controller.destroy(),this._flicking=null,this._activePanel=null},r.enable=function(){return this._controller.enable(),this},r.disable=function(){return this._controller.disable(),this},r.release=function(){return this._controller.release(),this},r.updateAnimation=function(t,e,n){var i=this._controller.state,o=this._getPosition(t,n??R.NONE);return i.targetPanel=t,this._controller.updateAnimation(o,e),this},r.stopAnimation=function(){var t=this._controller.state;return t.targetPanel=null,this._controller.stopAnimation(),this},r.updatePosition=function(t){var e=y(this._flicking),n=e.camera,i=this._activePanel;i&&n.lookAt(n.clampToReachablePosition(i.position))},r.updateInput=function(){var t=y(this._flicking),e=t.camera;return this._controller.update(e.controlParams),this},r.resetActive=function(){return this._activePanel=null,this},r.moveToPanel=function(t,e){var n=e.duration,i=e.direction,o=i===void 0?R.NONE:i,s=e.axesEvent;return Te(this,void 0,void 0,function(){var u;return Re(this,function(l){return u=this._getPosition(t,o),this._triggerIndexChangeEvent(t,t.position,s,o),[2,this._animateToPosition({position:u,duration:n,newActivePanel:t,axesEvent:s})]})})},r.setActive=function(t,e,n){var i,o=y(this._flicking);this._activePanel=t,this._nextPanel=null,o.camera.updateAdaptiveHeight(),t!==e?o.trigger(new T(A.CHANGED,{index:t.index,panel:t,prevIndex:(i=e?.index)!==null&&i!==void 0?i:-1,prevPanel:e,isTrusted:n,direction:e?ge(e.position,t.position):R.NONE})):o.trigger(new T(A.RESTORED,{isTrusted:n}))},r.copy=function(t){this._flicking=t._flicking,this._activePanel=t._activePanel,this._controller=t._controller},r._triggerIndexChangeEvent=function(t,e,n,i){var o,s=y(this._flicking),u=t!==this._activePanel?A.WILL_CHANGE:A.WILL_RESTORE,l=s.camera,c=this._activePanel,f=new T(u,{index:t.index,panel:t,isTrusted:n?.isTrusted||!1,direction:i??ge((o=c?.position)!==null&&o!==void 0?o:l.position,e)});if(this._nextPanel=t,s.trigger(f),f.isCanceled())throw new S(D.STOP_CALLED_BY_USER,C.STOP_CALLED_BY_USER)},r._animateToPosition=function(t){var e=t.position,n=t.duration,i=t.newActivePanel,o=t.axesEvent;return Te(this,void 0,void 0,function(){var s,u,l,c,f=this;return Re(this,function(d){return s=y(this._flicking),u=n,Math.abs(u-e)<s.animationThreshold&&(u=0),l=function(){return f._controller.animateTo(e,u,o)},c=this._controller.state,c.targetPanel=i,u<=0?[2,l()]:[2,l().then(function(){return Te(f,void 0,void 0,function(){return Re(this,function(h){switch(h.label){case 0:return s.initialized?[4,s.renderer.render()]:[3,2];case 1:h.sent(),h.label=2;case 2:return[2]}})})}).catch(function(h){if(!(o&&h instanceof S&&h.code===C.ANIMATION_INTERRUPTED))throw h})]})})},r._getPosition=function(t,e){e===void 0&&(e=R.NONE);var n=y(this._flicking),i=n.camera,o=t.position,s=i.findNearestAnchor(o);if(t.removed||!s)throw new S(D.POSITION_NOT_REACHABLE(t.position),C.POSITION_NOT_REACHABLE);if(!i.canReach(t))o=s.position,t=s.panel;else if(n.circularEnabled){var u=this._controller.position,l=i.rangeDiff,c=[o,o+l,o-l].filter(function(f){return e===R.NONE?!0:e===R.PREV?f<=u:f>=u});o=c.reduce(function(f,d){return Math.abs(u-d)<Math.abs(u-f)?d:f},1/0)}return o},a})(),G=(function(){function a(t){var e=t.index,n=t.position,i=t.panel;this._index=e,this._pos=n,this._panel=i}var r=a.prototype;return Object.defineProperty(r,"index",{get:function(){return this._index}
1,enumerable:!1,configurable:!0}),Object.defineProperty(r,"position",{get:function(){return this._pos},enumerable:!1,configurable:!0}),Object.defineProperty(r,"panel",{get:function(){return this._panel},enumerable:!1,configurable:!0}),a})(),Da=(function(a){U(r,a);function r(e){var n=(e===void 0?{}:e).count,i=n===void 0?1/0:n,o=a.call(this)||this;return o._count=i,o}var t=r.prototype;return Object.defineProperty(t,"count",{get:function(){return this._count},set:function(e){this._count=e},enumerable:!1,configurable:!0}),t.moveToPosition=function(e,n,i){var o=y(this._flicking),s=o.camera,u=s.findActiveAnchor(),l=s.findNearestAnchor(s.position),c=this._controller.state;if(!u||!l)return Promise.reject(new S(D.POSITION_NOT_REACHABLE(e),C.POSITION_NOT_REACHABLE));var f=this._calcSnapThreshold(o.threshold,e,u),d=o.animating?c.delta:e-s.position,h=Math.abs(d),v=i&&i.delta[M]!==0?Math.abs(i.delta[M]):h,g;if(v>=f&&v>0)g=this._findSnappedAnchor(e,l);else if(h>=o.threshold&&h>0)g=this._findAdjacentAnchor(e,d,l);else return this.moveToPanel(l.panel,{duration:n,axesEvent:i});return this._triggerIndexChangeEvent(g.panel,e,i),this._animateToPosition({position:s.clampToReachablePosition(g.position),duration:n,newActivePanel:g.panel,axesEvent:i})},t._findSnappedAnchor=function(e,n){var i=y(this._flicking),o=i.camera,s=this._count,u=o.position,l=o.clampToReachablePosition(e),c=o.findAnchorIncludePosition(l);if(!n||!c)throw new S(D.POSITION_NOT_REACHABLE(e),C.POSITION_NOT_REACHABLE);if(!isFinite(s))return c;var f=i.panelCount,d=o.anchorPoints,h=Math.sign(e-u)*Math.floor(Math.abs(e-u)/o.rangeDiff);e>u&&c.index<n.index||c.position>n.position&&c.index===n.index?h+=1:(e<u&&c.index>n.index||c.position<n.position&&c.index===n.index)&&(h-=1);var v=h*f,g=c.index+v;if(Math.abs(g-n.index)<=s){var _=d[c.index];return new G({index:_.index,position:_.position+h*o.rangeDiff,panel:_.panel})}if(i.circularEnabled){var p=d[hr(n.index+Math.sign(e-u)*s,f)],E=Math.floor(s/f);return e>u&&p.index<n.index?E+=1:e<u&&p.index>n.index&&(E-=1),new G({index:p.index,position:p.position+E*o.rangeDiff,panel:p.panel})}else return d[de(n.index+Math.sign(e-u)*s,0,d.length-1)]},t._findAdjacentAnchor=function(e,n,i){var o,s=y(this._flicking),u=s.camera;if(u.circularEnabled){var l=u.findAnchorIncludePosition(e);if(l&&l.position!==i.position)return l}var c=(o=n>0?u.getNextAnchor(i):u.getPrevAnchor(i))!==null&&o!==void 0?o:i;return c},t._calcSnapThreshold=function(e,n,i){var o=n>i.position,s=i.panel,u=s.size,l=s.alignPosition;return Math.max(e,o?u-l+s.margin.next:l+s.margin.prev)},r})(an),Na=(function(a){U(r,a);function r(e){var n=(e===void 0?{}:e).stopAtEdge,i=n===void 0?!0:n,o=a.call(this)||this;return o._stopAtEdge=i,o}var t=r.prototype;return Object.defineProperty(t,"stopAtEdge",{get:function(){return this._stopAtEdge},set:function(e){this._stopAtEdge=e},enumerable:!1,configurable:!0}),t.updatePosition=function(e){var n=y(this._flicking),i=n.camera,o=this._activePanel;if(o){var s=o.range,u=s.min+(s.max-s.min)*e;i.lookAt(i.clampToReachablePosition(u))}},t.moveToPosition=function(e,n,i){var o=y(this._flicking),s=o.camera,u=s.clampToReachablePosition(e),l=s.findAnchorIncludePosition(u);if(!l)return Promise.reject(new S(D.POSITION_NOT_REACHABLE(e),C.POSITION_NOT_REACHABLE));var c=l.panel;return c!==this._activePanel&&this._triggerIndexChangeEvent(c,e,i),this._animateToPosition({position:this._stopAtEdge?u:e,duration:n,newActivePanel:c,axesEvent:i})},r})(an),Ma=(function(a){U(r,a);function r(e){var n=(e===void 0?{}:e).count,i=n===void 0?1:n,o=a.call(this)||this;return o.setActive=function(s,u,l){a.prototype.setActive.call(o,s,u,l),o.updateInput()},o._count=i,o._resetIndexRange(),o}var t=r.prototype;return Object.defineProperty(t,"count",{get:function(){return this._count},set:function(e){this._count=e},enumerable:!1,configurable:!0}),t.destroy=function(){a.prototype.destroy.call(this),this._resetIndexRange()},t.updateInput=function(){var e,n=y(this._flicking),i=n.camera,o=n.renderer,s=this._controller,u=i.controlParams,l=this._count,c=s.state.animating?(e=i.findNearestAnchor(i.position))===null||e===void 0?void 0:e.panel:this._activePanel;if(!c)return s.update(u),this._resetIndexRange(),this;var f=u.range,d=c.position,h=c.index,v=o.panelCount,g=h-l,_=h+l;g<0&&(g=n.circularEnabled?vt((g+1)%v-1,v):de(g,0,v-1)),_>=v&&(_=n.circularEnabled?_%v:de(_,0,v-1));var p=o.panels[g],E=o.panels[_],x=Math.max(p.position,f.min),w=Math.min(E.position,f.max);return x>d&&(x-=i.rangeDiff),w<d&&(w+=i.rangeDiff),u.range={min:x,max:w},u.circular&&(u.position<x&&(u.position+=i.rangeDiff),u.position>w&&(u.position-=i.rangeDiff)),u.circular=!1,s.update(u),this._indexRange={min:p.index,max:E.index},this},t.moveToPanel=function(e,n){return Te(this,void 0,void 0,function(){var i,o,s;return Re(this,function(u){return i=y(this._flicking),o=i.camera,s=this._controller,s.update(o.controlParams),[2,a.prototype.moveToPanel.call(this,e,n)]})})},t.moveToPosition=function(e,n,i){var o,s=y(this._flicking),u=s.camera,l=(o=this._nextPanel)!==null&&o!==void 0?o:this._activePanel,c=this._controller.range,f=this._indexRange,d=u.range,h=this._controller.state,v=de(u.clampToReachablePosition(e),c[
10],c[1]),g=u.findAnchorIncludePosition(v);if(!g||!l)return Promise.reject(new S(D.POSITION_NOT_REACHABLE(e),C.POSITION_NOT_REACHABLE));var _=l.position,p=s.animating?h.delta:e-u.position,E=Math.abs(p)>=s.threshold,x=e>_?u.getNextAnchor(g):u.getPrevAnchor(g),w,W,Y=u.anchorPoints,J=Y[0],re=Y[Y.length-1],oe=e<d.min&&Ct(J.panel.index,f.min,f.max),me=e>d.max&&Ct(re.panel.index,f.min,f.max),be=x&&(f.min<=f.max?Ct(x.index,f.min,f.max):x.index>=f.min||x.index<=f.max);if(oe||me){var ie=e<d.min?J:re;W=ie.panel,w=ie.position}else if(E&&g.position!==l.position)W=g.panel,w=g.position;else if(E&&be)W=x.panel,w=x.position;else{var Q=u.findNearestAnchor(u.position);return Q?this.moveToPanel(Q.panel,{duration:n,axesEvent:i}):Promise.reject(new S(D.POSITION_NOT_REACHABLE(e),C.POSITION_NOT_REACHABLE))}return this._triggerIndexChangeEvent(W,e,i),this._animateToPosition({position:w,duration:n,newActivePanel:W,axesEvent:i})},t._resetIndexRange=function(){this._indexRange={min:0,max:0}},r})(an),on=(function(){function a(t){this._flicking=t}var r=a.prototype;return r.getAnchors=function(){var t=this._flicking.renderer.panels;return t.map(function(e,n){return new G({index:n,position:e.position,panel:e})})},r.findAnchorIncludePosition=function(t){var e=this._flicking.camera.anchorPoints,n=e.filter(function(i){return i.panel.includePosition(t,!0)});return n.reduce(function(i,o){return i&&Math.abs(i.position-t)<Math.abs(o.position-t)?i:o},null)},r.findNearestAnchor=function(t){var e=this._flicking.camera.anchorPoints;if(e.length<=0)return null;for(var n=1/0,i=0;i<e.length;i++){var o=e[i],s=Math.abs(o.position-t);if(s>n)return e[i-1];n=s}return e[e.length-1]},r.clampToReachablePosition=function(t){var e=this._flicking.camera,n=e.range;return de(t,n.min,n.max)},r.getCircularOffset=function(){return 0},r.canReach=function(t){var e=this._flicking.camera,n=e.range;if(t.removed)return!1;var i=t.position;return i>=n.min&&i<=n.max},r.canSee=function(t){var e=this._flicking.camera,n=e.visibleRange;return t.isVisibleOnRange(n.min,n.max)},a})(),Cn=(function(a){U(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}var t=r.prototype;return t.checkAvailability=function(){return!0},t.getRange=function(){var e,n,i=this._flicking.renderer,o=i.getPanel(0),s=i.getPanel(i.panelCount-1);return{min:(e=o?.position)!==null&&e!==void 0?e:0,max:(n=s?.position)!==null&&n!==void 0?n:0}},r})(on),za=(function(a){U(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}var t=r.prototype;return t.checkAvailability=function(){var e=this._flicking,n=e.renderer,i=n.panels;if(i.length<=0)return!1;var o=i[0],s=i[i.length-1],u=o.range.min-o.margin.prev,l=s.range.max+s.margin.next,c=e.camera.size,f=l-u,d=i.every(function(h){return f-h.size>=c});return d},t.getRange=function(){var e=this._flicking,n=e.renderer.panels;if(n.length<=0)return{min:0,max:0};var i=n[0],o=n[n.length-1],s=i.range.min-i.margin.prev,u=o.range.max+o.margin.next;return{min:s,max:u}},t.getAnchors=function(){var e=this._flicking,n=e.renderer.panels;return n.map(function(i,o){return new G({index:o,position:i.position,panel:i})})},t.findNearestAnchor=function(e){var n=this._flicking.camera,i=n.anchorPoints;if(i.length<=0)return null;for(var o=n.range,s=1/0,u=-1,l=0;l<i.length;l++){var c=i[l],f=Math.min(Math.abs(c.position-e),Math.abs(c.position-o.min+o.max-e),Math.abs(e-o.min+o.max-c.position));f<s&&(s=f,u=l)}return i[u]},t.findAnchorIncludePosition=function(e){var n=this._flicking.camera,i=n.range,o=n.anchorPoints,s=n.rangeDiff,u=o.length,l=cr(e,i.min,i.max),c=a.prototype.findAnchorIncludePosition.call(this,l);if(u>0&&(e===i.min||e===i.max)){var f=[c,new G({index:0,position:o[0].position+s,panel:o[0].panel}),new G({index:u-1,position:o[u-1].position-s,panel:o[u-1].panel})].filter(function(h){return!!h});c=f.reduce(function(h,v){return h&&Math.abs(h.position-e)<Math.abs(v.position-e)?h:v},null)}if(!c)return null;if(e<i.min){var d=-Math.floor((i.min-e)/s)-1;return new G({index:c.index,position:c.position+s*d,panel:c.panel})}else if(e>i.max){var d=Math.floor((e-i.max)/s)+1;return new G({index:c.index,position:c.position+s*d,panel:c.panel})}return c},t.getCircularOffset=function(){var e=this._flicking,n=e.camera;if(!n.circularEnabled)return 0;var i=e.panels.filter(function(u){return u.toggled}),o=i.filter(function(u){return u.toggleDirection===R.PREV}),s=i.filter(function(u){return u.toggleDirection===R.NEXT});return this._calcPanelAreaSum(o)-this._calcPanelAreaSum(s)},t.clampToReachablePosition=function(e){return e},t.canReach=function(e){return!e.removed},t.canSee=function(e){var n=this._flicking.camera,i=n.range,o=n.rangeDiff,s=n.visibleRange,u=a.prototype.canSee.call(this,e);
1return s.min<i.min?u||e.isVisibleOnRange(s.min+o,s.max+o):s.max>i.max?u||e.isVisibleOnRange(s.min-o,s.max-o):u},t._calcPanelAreaSum=function(e){return e.reduce(function(n,i){return n+i.sizeIncludingMargin},0)},r})(on),Sn=(function(a){U(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}var t=r.prototype;return t.checkAvailability=function(){var e=this._flicking,n=e.renderer,i=n.getPanel(0),o=n.getPanel(n.panelCount-1);if(!i||!o)return!1;var s=e.camera.size,u=i.range.min,l=o.range.max,c=l-u,f=s<c;return f},t.getRange=function(){var e=this._flicking,n=e.renderer,i=e.camera.alignPosition,o=n.getPanel(0),s=n.getPanel(n.panelCount-1);if(!o||!s)return{min:0,max:0};var u=e.camera.size,l=o.range.min,c=s.range.max,f=c-l,d=u<f,h=l+i,v=c-u+i;if(d)return{min:h,max:v};var g=e.camera.align,_=typeof g=="object"?g.camera:g,p=h+rn(_,v-h);return{min:p,max:p}},t.getAnchors=function(){var e=this._flicking,n=e.camera,i=e.renderer.panels;if(i.length<=0)return[];var o=e.camera.range,s=i.filter(function(g){return n.canReach(g)});if(s.length>0){var u=s[0].position!==o.min,l=s[s.length-1].position!==o.max,c=u?1:0,f=s.map(function(g,_){return new G({index:_+c,position:g.position,panel:g})});return u&&f.splice(0,0,new G({index:0,position:o.min,panel:i[s[0].index-1]})),l&&f.push(new G({index:f.length,position:o.max,panel:i[s[s.length-1].index+1]})),f}else if(o.min!==o.max){var d=this._findNearestPanel(o.min,i),h=d.index===i.length-1?d.prev():d,v=h.next();return[new G({index:0,position:o.min,panel:h}),new G({index:1,position:o.max,panel:v})]}else return[new G({index:0,position:o.min,panel:this._findNearestPanel(o.min,i)})]},t.findAnchorIncludePosition=function(e){var n=this._flicking.camera,i=n.range,o=n.anchorPoints;return o.length<=0?null:e<=i.min?o[0]:e>=i.max?o[o.length-1]:a.prototype.findAnchorIncludePosition.call(this,e)},t._findNearestPanel=function(e,n){for(var i=1/0,o=0;o<n.length;o++){var s=n[o],u=Math.abs(s.position-e);if(u>i)return n[o-1];i=u}return n[n.length-1]},r})(on),La=(function(){function a(t,e){var n=this,i=(e===void 0?{}:e).align,o=i===void 0?ne.CENTER:i;this._lookedOffset=0,this._checkTranslateSupport=function(){var s,u,l=["webkitTransform","msTransform","MozTransform","OTransform","transform"],c=document.documentElement.style,f="";try{for(var d=Et(l),h=d.next();!h.done;h=d.next()){var v=h.value;v in c&&(f=v)}}catch(g){s={error:g}}finally{try{h&&!h.done&&(u=d.return)&&u.call(d)}finally{if(s)throw s.error}}if(!f)throw new S(D.TRANSFORM_NOT_SUPPORTED,C.TRANSFORM_NOT_SUPPORTED);n._transform=f},this._flicking=t,this._resetInternalValues(),this._align=o}var r=a.prototype;return Object.defineProperty(r,"element",{get:function(){return this._el},enumerable:!1,configurable:!0}),Object.defineProperty(r,"children",{get:function(){return nn(this._el.children)},enumerable:!1,configurable:!0}),Object.defineProperty(r,"position",{get:function(){return this._position},enumerable:!1,configurable:!0}),Object.defineProperty(r,"alignPosition",{get:function(){return this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(r,"offset",{get:function(){return this._offset-this._circularOffset},enumerable:!1,configurable:!0}),Object.defineProperty(r,"circularEnabled",{get:function(){return this._circularEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(r,"mode",{get:function(){return this._mode},enumerable:!1,configurable:!0}),Object.defineProperty(r,"range",{get:function(){return this._range},enumerable:!1,configurable:!0}),Object.defineProperty(r,"rangeDiff",{get:function(){return this._range.max-this._range.min},enumerable:!1,configurable:!0}),Object.defineProperty(r,"visiblePanels",{get:function(){return this._visiblePanels},enumerable:!1,configurable:!0}),Object.defineProperty(r,"visibleRange",{get:function(){return{min:this._position-this._alignPos,max:this._position-this._alignPos+this.size}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"anchorPoints",{get:function(){return this._anchors},enumerable:!1,configurable:!0}),Object.defineProperty(r,"controlParams",{get:function(){return{range:this._range,position:this._position,circular:this._circularEnabled}}
1,enumerable:!1,configurable:!0}),Object.defineProperty(r,"atEdge",{get:function(){return this._position<=this._range.min||this._position>=this._range.max},enumerable:!1,configurable:!0}),Object.defineProperty(r,"size",{get:function(){var t=this._flicking;return t?t.horizontal?t.viewport.width:t.viewport.height:0},enumerable:!1,configurable:!0}),Object.defineProperty(r,"progress",{get:function(){var t=this._flicking,e=this._position+this._offset,n=this.findNearestAnchor(this._position);if(!t||!n)return NaN;var i=n.panel,o=i.position+i.offset,s=t.control.controller.bounce,u=this.range,l=u.min,c=u.max,f=this.rangeDiff;if(e===o)return i.index;if(e<o){var d=i.prev(),h=d?d.position+d.offset:l-s[0];return h>o&&(h-=f),i.index-1+_t(e,h,o)}else{var v=i.next(),g=v?v.position+v.offset:c+s[1];return g<o&&(g+=f),i.index+_t(e,o,g)}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"panelOrder",{get:function(){return this._panelOrder},enumerable:!1,configurable:!0}),Object.defineProperty(r,"align",{get:function(){return this._align},set:function(t){this._align=t},enumerable:!1,configurable:!0}),r.init=function(){var t=this._flicking.viewport.element;return ma(t.firstElementChild,"First element child of the viewport element"),this._el=t.firstElementChild,this._checkTranslateSupport(),this._updateMode(),this.updatePanelOrder(),this},r.destroy=function(){return this._resetInternalValues(),this},r.lookAt=function(t){var e=this,n=this._offset,i=this._lookedOffset!==n,o=y(this._flicking),s=this._position;this._position=t;var u=this._togglePanels(s,t);this._refreshVisiblePanels(),this._checkNeedPanel(),this._checkReachEnd(s,t),u?o.renderer.render().then(function(){e.updateOffset(),e._lookedOffset=e._offset}):i?(this.updateOffset(),this._lookedOffset=this._offset):this.applyTransform()},r.getPrevAnchor=function(t){if(!this._circularEnabled||t.index!==0)return this._anchors[t.index-1]||null;var e=this._anchors,n=this.rangeDiff,i=e[e.length-1];return new G({index:i.index,position:i.position-n,panel:i.panel})},r.getNextAnchor=function(t){var e=this._anchors;if(!this._circularEnabled||t.index!==e.length-1)return e[t.index+1]||null;var n=this.rangeDiff,i=e[0];return new G({index:i.index,position:i.position+n,panel:i.panel})},r.getProgressInPanel=function(t){var e=t.range;return(this._position-e.min)/(e.max-e.min)},r.findAnchorIncludePosition=function(t){return this._mode.findAnchorIncludePosition(t)},r.findNearestAnchor=function(t){return this._mode.findNearestAnchor(t)},r.findActiveAnchor=function(){var t,e=y(this._flicking),n=e.control.activePanel;return n?(t=Ea(this._anchors,function(i){return i.panel.index===n.index}))!==null&&t!==void 0?t:this.findNearestAnchor(n.position):null},r.clampToReachablePosition=function(t){return this._mode.clampToReachablePosition(t)},r.canReach=function(t){return this._mode.canReach(t)},r.canSee=function(t){return this._mode.canSee(t)},r.updateRange=function(){var t=y(this._flicking),e=t.renderer,n=e.panels;return this._updateMode(),this._range=this._mode.getRange(),n.forEach(function(i){return i.updateCircularToggleDirection()}),this},r.updateAlignPos=function(){var t=this._align,e=typeof t=="object"?t.camera:t;return this._alignPos=rn(e,this.size),this},r.updateAnchors=function(){return this._anchors=this._mode.getAnchors(),this},r.updateAdaptiveHeight=function(){var t=y(this._flicking),e=t.control.activePanel,n=t.visiblePanels,i=L(n);if(e&&i.push(e),!(!t.horizontal||!t.adaptive||!i.length)){var o=Math.max.apply(Math,L(i.map(function(s){return s.height})));t.viewport.setSize({height:o})}},r.updateOffset=function(){var t=y(this._flicking),e=this._position,n=t.panels.filter(function(i){return!i.rendered});return this._offset=n.filter(function(i){return i.position+i.offset<e}).reduce(function(i,o){return i+o.sizeIncludingMargin},0),this._circularOffset=this._mode.getCircularOffset(),this.applyTransform(),this},r.updatePanelOrder=function(){var t=y(this._flicking);if(!t.horizontal)return this;var e=this._el,n=Ce(e).direction;return n!==this._panelOrder&&(this._panelOrder=n===Oe.RTL?Oe.RTL:Oe.LTR,t.initialized&&t.control.controller.updateDirection()),this},r.resetNeedPanelHistory=function(){return this._needPanelTriggered={prev:!1,next:!1},this},r.applyTransform=function(){var t=this._el,e=y(this._flicking),n=e.renderer;if(n.rendering||!e.initialized)return this;var i=this._position-this._alignPos-this._offset+this._circularOffset;return t.style[this._transform]=e.horizontal?"translate("+(this._panelOrder===Oe.RTL?i:-i)+"px)":"translate(0, "+-i+"px)",this},r._resetInternalValues=function(){this._position=0,this._lookedOffset=0,this._alignPos=0,this._offset=0,this._circularOffset=0,this._circularEnabled=!1,this._range={min:0,max:0},this._visiblePanels=[],this._anchors=[],this._needPanelTriggered={prev:!1,next:!1}},r._refreshVisiblePanels=function(){var t=this,e=y(this._flicking),n=e.renderer.panels,i=n.filter(function(l){return t.canSee(l)}),o=this._visiblePanels;this._visiblePanels=i;var s=i.filter(function(l){return!gt(o,l)}),u=o.filter(function(l){return!gt(i,l)});(s.length>0||u.length>0)&&e.renderer.render().then(function(){e.trigger(new T(A.VISIBLE_CHANGE,{added:s,removed:u,visiblePanels:i}))})},r._checkNeedPanel=function(){var t=this._needPanelTriggered;if(!(t.prev&&t.next)){var e=y(this._flicking),n=e.renderer.panels;if(n.length<=0){t.prev||(e.trigger(new T(A.NEED_PANEL,{direction:R.PREV})),t.prev=!0),t.next||(e.trigger(new T(A.NEED_PANEL,{direction:R.NEXT})),t.next=!0);return}var i=this._position,o=this.size,s=this._range,u=e.needPanelThreshold,l=i-this._alignPos,c=l+o,f=n[0],d=n[n.length-1];if(!t.prev){var h=f.range.min;(l<=h+u||i<=s.min+u)&&(e.trigger(new T(A.NEED_PANEL,{direction:R.PREV})),t.prev=!0)}if(!t.next){var v=d.range.max;(c>=v-u||i>=s.max-u)&&(e.trigger(new T(A.NEED_PANEL,{direction:R.NEXT})),t.next=!0)}}},r._checkReachEnd=function(t,e){var n=y(this._flicking),i=this._range,o=t>i.min&&t<i.max,s=e>i.min&&e<i.max;if(!(!o||s)){var u=e<=i.min?R.PREV:R.NEXT;n.trigger(new T(A.REACH_EDGE,{direction:u}))}},r._updateMode=function(){var t=y(this._flicking);if(t.circular){var e=new za(t),n=e.checkAvailability();if(n)this._mode=e;else{var i=t.circularFallback;this._mode=i===ur.BOUND?new Sn(t):new Cn(t)}this._circularEnabled=n}
1else this._mode=t.bound?new Sn(t):new Cn(t),this._circularEnabled=!1},r._togglePanels=function(t,e){if(e===t)return!1;var n=y(this._flicking),i=n.renderer.panels,o=i.map(function(s){return s.toggle(t,e)});return o.some(function(s){return s})},a})(),dr=(function(){function a(t){var e=t.align,n=e===void 0?ne.CENTER:e,i=t.strategy;this._flicking=null,this._panels=[],this._rendering=!1,this._align=n,this._strategy=i}var r=a.prototype;return Object.defineProperty(r,"panels",{get:function(){return this._panels},enumerable:!1,configurable:!0}),Object.defineProperty(r,"rendering",{get:function(){return this._rendering},enumerable:!1,configurable:!0}),Object.defineProperty(r,"panelCount",{get:function(){return this._panels.length},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strategy",{get:function(){return this._strategy},enumerable:!1,configurable:!0}),Object.defineProperty(r,"align",{get:function(){return this._align},set:function(t){this._align=t;var e=dt(t);this._panels.forEach(function(n){n.align=e})},enumerable:!1,configurable:!0}),r.init=function(t){return this._flicking=t,this._collectPanels(),this},r.destroy=function(){this._flicking=null,this._panels=[]},r.getPanel=function(t){return this._panels[t]||null},r.forceRenderAllPanels=function(){return this._panels.forEach(function(t){return t.markForShow()}),Promise.resolve()},r.getRenderedPanels=function(){var t=y(this._flicking);return t.renderer.panels.filter(function(e){return e.rendered})},r.updatePanelSize=function(){var t=y(this._flicking),e=this._panels;if(e.length<=0)return this;if(t.panelsPerView>0){var n=e[0];n.resize(),this._updatePanelSizeByGrid(n,e)}else t.panels.forEach(function(i){return i.resize()});return this},r.batchInsert=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.batchInsertDefer.apply(this,L(t));return n.length<=0?[]:(this.updateAfterPanelChange(n,[]),n)},r.batchInsertDefer=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=this._panels,o=y(this._flicking),s=i[0],u=dt(this._align),l=e.reduce(function(c,f){var d,h=vt(f.index,i.length),v=i.slice(h),g=f.elements.map(function(p,E){return t._createPanel(p,{index:h+E,align:u,flicking:o})});if(i.splice.apply(i,L([h,0],g)),f.hasDOMInElements&&t._insertPanelElements(g,(d=v[0])!==null&&d!==void 0?d:null),o.panelsPerView>0){var _=s||g[0].resize();t._updatePanelSizeByGrid(_,g)}else g.forEach(function(p){return p.resize()});return v.forEach(function(p){p.increaseIndex(g.length),p.updatePosition()}),L(c,g)},[]);return l},r.batchRemove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.batchRemoveDefer.apply(this,L(t));return n.length<=0?[]:(this.updateAfterPanelChange([],n),n)},r.batchRemoveDefer=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=this._panels,o=y(this._flicking),s=o.control,u=s.activePanel,l=e.reduce(function(c,f){var d=f.index,h=f.deleteCount,v=vt(d,i.length),g=i.slice(v+h),_=i.splice(v,h);return _.length<=0?[]:(g.forEach(function(p){p.decreaseIndex(_.length),p.updatePosition()}),f.hasDOMInElements&&t._removePanelElements(_),_.forEach(function(p){return p.destroy()}),gt(_,u)&&s.resetActive(),L(c,_))},[]);return l},r.updateAfterPanelChange=function(t,e){var n,i=y(this._flicking),o=i.camera,s=i.control,u=this._panels,l=s.activePanel;if(this._updateCameraAndControl(),i.autoResize&&i.useResizeObserver&&(t.forEach(function(f){f.element&&i.autoResizer.observe(f.element)}),e.forEach(function(f){f.element&&i.autoResizer.unobserve(f.element)})),this.render(),!i.animating)if(!l||l.removed)if(u.length<=0)o.lookAt(0);else{var c=(n=l?.index)!==null&&n!==void 0?n:0;c>u.length-1&&(c=u.length-1),s.moveToPanel(u[c],{duration:0}).catch(function(){})}else s.moveToPanel(l,{duration:0}).catch(function(){});i.camera.updateOffset(),(t.length>0||e.length>0)&&(i.trigger(new T(A.PANEL_CHANGE,{added:t,removed:e})),this.checkPanelContentsReady(L(t,e)))},r.checkPanelContentsReady=function(t){var e=this,n=y(this._flicking),i=n.resizeOnContentsReady,o=this._panels;if(!(!i||n.virtualEnabled)){var s=function(l){return l.element&&!!l.element.querySelector("img, video")};if(t=t.filter(function(l){return s(l)}),!(t.length<=0)){var u=new ga;t.forEach(function(l){l.loading=!0}),u.on("readyElement",function(l){if(!e._flicking){u.destroy();return}var c=t[l.index],f=n.camera,d=n.control,h=d.activePanel?f.getProgressInPanel(d.activePanel):0;
1c.loading=!1,c.resize(),o.slice(c.index+1).forEach(function(v){return v.updatePosition()}),n.initialized&&(f.updateRange(),f.updateOffset(),f.updateAnchors(),d.animating||(d.updatePosition(h),d.updateInput()))}),u.on("preReady",function(l){e._flicking&&e.render(),l.readyCount===l.totalCount&&u.destroy()}),u.on("ready",function(){e._flicking&&e.render(),u.destroy()}),u.check(t.map(function(l){return l.element}))}}},r._updateCameraAndControl=function(){var t=y(this._flicking),e=t.camera,n=t.control;e.updateRange(),e.updateOffset(),e.updateAnchors(),e.resetNeedPanelHistory(),n.updateInput()},r._showOnlyVisiblePanels=function(t){var e=t.renderer.panels,n=t.camera,i=n.visiblePanels.reduce(function(o,s){return o[s.index]=!0,o},{});e.forEach(function(o){o.index in i||o.loading?o.markForShow():t.holding||o.markForHide()})},r._updatePanelSizeByGrid=function(t,e){var n=y(this._flicking),i=n.panelsPerView;if(i<=0)throw new S(D.WRONG_OPTION("panelsPerView",i),C.WRONG_OPTION);if(!(e.length<=0)){var o=n.camera.size,s=t.margin.prev+t.margin.next,u=(o-s*(i-1))/i,l=n.horizontal?{width:u}:{height:u},c=q({size:u,margin:t.margin},!n.horizontal&&{height:t.height});n.noPanelStyleOverride||this._strategy.updatePanelSizes(n,l),n.panels.forEach(function(f){return f.resize(c)})}},r._removeAllChildsFromCamera=function(){for(var t=y(this._flicking),e=t.camera.element;e.firstChild;)e.removeChild(e.firstChild)},r._insertPanelElements=function(t,e){e===void 0&&(e=null);var n=y(this._flicking),i=n.camera,o=i.element,s=e?.element||null,u=document.createDocumentFragment();t.forEach(function(l){return u.appendChild(l.element)}),o.insertBefore(u,s)},r._removePanelElements=function(t){var e=y(this._flicking),n=e.camera.element;t.forEach(function(i){n.removeChild(i.element)})},r._afterRender=function(){var t=y(this._flicking);if(t.camera.applyTransform(),t.useCSSOrder){var e=t.renderer.panels.filter(function(n){return n.rendered});this._strategy.getRenderingIndexesByOrder(t).forEach(function(n,i){e[n].element&&(e[n].element.style.order=""+i)})}},a})(),ja=(function(a){U(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}var t=r.prototype;return t.render=function(){return Te(this,void 0,void 0,function(){var e,n;return Re(this,function(i){return e=y(this._flicking),n=this._strategy,n.updateRenderingPanels(e),n.renderPanels(e),this._resetPanelElementOrder(),this._afterRender(),[2]})})},t._collectPanels=function(){var e=y(this._flicking),n=e.camera;this._removeAllTextNodes(),this._panels=this._strategy.collectPanels(e,n.children)},t._createPanel=function(e,n){return this._strategy.createPanel(e,n)},t._resetPanelElementOrder=function(){var e=y(this._flicking),n=e.camera.element,i=[];e.useCSSOrder?i=this.getRenderedPanels().map(function(o){return o.element}).reverse():i=this._strategy.getRenderingElementsByOrder(e).reverse(),i.forEac
1h(function(o,s){var u=i[s-1]?i[s-1]:null;o.nextElementSibling!==u&&n.insertBefore(o,u)})},t._removeAllTextNodes=function(){var e=y(this._flicking),n=e.camera.element;nn(n.childNodes).forEach(function(i){i.nodeType===Node.TEXT_NODE&&n.removeChild(i)})},r})(dr),Fa=(function(a){U(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}var t=r.prototype;return t._removePanelElements=function(e){},t._removeAllChildsFromCamera=function(){},r})(dr),Xt=(function(){function a(t){var e=t.index,n=t.align,i=t.flicking,o=t.elementProvider;this._index=e,this._flicking=i,this._elProvider=o,this._align=n,this._removed=!1,this._rendered=!0,this._loading=!1,this._resetInternalStates()}var r=a.prototype;return Object.defineProperty(r,"element",{get:function(){return this._elProvider.element},enumerable:!1,configurable:!0}),Object.defineProperty(r,"elementProvider",{get:function(){return this._elProvider},enumerable:!1,configurable:!0}),Object.defineProperty(r,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(r,"position",{get:function(){return this._pos+this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(r,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(r,"sizeIncludingMargin",{get:function(){return this._size+this._margin.prev+this._margin.next},enumerable:!1,configurable:!0}),Object.defineProperty(r,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),Object.defineProperty(r,"margin",{get:function(){return this._margin},enumerable:!1,configurable:!0}),Object.defineProperty(r,"alignPosition",{get:function(){return this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(r,"removed",{get:function(){return this._removed},enumerable:!1,configurable:!0}),Object.defineProperty(r,"rendered",{get:function(){return this._rendered},enumerable:!1,configurable:!0}),Object.defineProperty(r,"loading",{get:function(){return this._loading},set:function(t){this._loading=t},enumerable:!1,configurable:!0}),Object.defineProperty(r,"range",{get:function(){return{min:this._pos,max:this._pos+this._size}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"toggled",{get:function(){return this._toggled},enumerable:!1,configurable:!0}),Object.defineProperty(r,"toggleDirection",{get:function(){return this._toggleDirection},enumerable:!1,configurable:!0}),Object.defineProperty(r,"offset",{get:function(){var t=this._toggleDirection,e=this._flicking.camera.rangeDiff;return t===R.NONE||!this._toggled?0:t===R.PREV?-e:e},enumerable:!1,configurable:!0}),Object.defineProperty(r,"progress",{get:function(){var t=this._flicking;return this.index-t.camera.progress},enumerable:!1,configurable:!0}),Object.defineProperty(r,"outsetProgress",{get:function(){var t=this.position+this.offset,e=this._alignPos,n=this._flicking.camera,i=n.position;if(i===t)return 0;if(i<t){var o=t+(n.size-n.alignPosition)+e;return-_t(i,t,o)}else{var s=t-(n.alignPosition+this._size-e);return 1-_t(i,s,t)}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"visibleRatio",{get:function(){var t=this.range,e=this._size,n=this.offset,i=this._flicking.camera.visibleRange,o={min:t.min+n,max:t.max+n};if(o.max<=i.min||o.min>=i.max)return 0;var s=e;return i.min>o.min&&(s-=i.min-o.min),i.max<o.max&&(s-=o.max-i.max),s/e},enumerable:!1,configurable:!0}),Object.defineProperty(r,"align",{get:function(){return this._align},set:function(t){this._align=t,this._updateAlignPos()},enumerable:!1,configurable:!0}),r.markForShow=function(){this._rendered=!0,this._elProvider.show(this._flicking)},r.markForHide=function(){this._rendered=!1,this._elProvider.hide(this._flicking)},r.resize=function(t){var e,n=this.element,i=this._flicking,o=i.horizontal,s=i.useFractionalSize;if(!n)return this;if(t)this._size=t.size,this._margin=q({},t.margin),this._height=(e=t.height)!==null&&e!==void 0?e:ve({el:n,horizontal:!1,useFractionalSize:s,useOffset:!0,style:Ce(n)});else{var u=Ce(n);this._size=ve({el:n,horizontal:o,useFractionalSize:s,useOffset:!0,style:u}),this._margin=o?{prev:parseFloat(u.marginLeft||"0"),next:parseFloat(u.marginRight||"0")}:{prev:parseFloat(u.marginTop||"0"),next:parseFloat(u.marginBottom||"0")},this._height=o?ve({el:n,horizontal:!1,useFractionalSize:s,useOffset:!0,style:u}):this._size}return this.updatePosition(),this._updateAlignPos(),this},r.setSize=function(t){return fr(this.element,t),this},r.contains=function(t){var e;return!!(!((e=this.element)===null||e===void 0)&&e.contains(t))},r.destroy=function(){this._resetInternalStates(),this._removed=!0},r.includePosition=function(t,e){return e===void 0&&(e=!1),this.includeRange(t,t,e)},r.includeRange=function(t,e,n){n===void 0&&(n=!1);var i=this._margin,o=this.range;return n&&(o.min-=i.prev,o.max+=i.next),e>=o.min&&t<=o.max},r.isVisibleOnRange=function(t,e){var n=this.range;return e>n.min&&t<n.max},r.focus=function(t){return this._flicking.moveTo(this._index,t)},r.prev=function(){var t=this._index,e=this._flicking,n=e.renderer,i=n.panelCount;return i===1?null:e.circularEnabled?n.getPanel(t===0?i-1:t-1):n.getPanel(t-1)},r.next=function(){var t=this._index,e=this._flicking,n=e.renderer,i=n.panelCount;return i===1?null:e.circularEnabled?n.getPanel(t===i-1?0:t+1):n.getPanel(t+1)},r.increaseIndex=function(t){return this._index+=Math.max(t,0),this},r.decreaseIndex=function(t){return this._index-=Math.max(t,0),this},r.updatePosition=function(){var t=this._flicking.renderer.panels[this._index-1];return this._pos=t?t.range.max+t.margin.next+this._margin.prev:this._margin.prev,this},r.toggle=function(t,e){var n=this._toggleDirection,i=this._togglePosition;if(n===R.NONE||e===t)return!1;var o=this._toggled;return e>t?i>=t&&i<=e&&(this._toggled=n===R.NEXT):i<=t&&i>=e&&(this._toggled=n!==R.NEXT),o!==this._toggled},r.updateCircularToggleDirection=function(){var t=this._flicking;if(!t.circularEnabled)return this._toggleDirection=R.NONE,this._togglePosition=0,this._toggled=!1,this;var e=t.camera,n=e.range,i=e.alignPosition,o=e.visibleRange,s=o.max-o.min,u=n.min-i,l=n.max-i+s,c=this.includeRange(l-s,l,!1),f=this.includeRange(u,u+s,!1);return this._toggled=!1,c?(this._toggleDirection=R.PREV,this._togglePosition=this.range.max+n.min-n.max+i,this.toggle(1/0,e.position)):f?(this._toggleDirection=R.NEXT,this._togglePosition=this.range.min+n.max-s+i,this.toggle(-1/0,e.position)):(this._toggleDirection=R.NONE,this._togglePosition=0),this},r._updateAlignPos=function(){this._alignPos=rn(this._align,this._size)},r._resetInternalStates=function(){this._size=0,this._pos=0,this._margin={prev:0,next:0},this._height=0,this._alignPos=0,this._toggled=!1,this._togglePosition=0,this._toggleDirection=R.NONE},a})(),vr=(function(){function a(t){var e=t.providerCtor;this._providerCtor=e}var r=a.prototype;return r.renderPanels=function(){},r.getRenderingIndexesByOrder=function(t){var e=t.renderer.panels.filter(function(s){return s.rendered}),n=e.filter(function(s){return s.toggled&&s.toggleDirection===R.PREV}),i=e.filter(function(s){return s.toggled&&s.toggleDirection===R.NEXT}),o=e.filter(function(s){return!s.toggled});return L(n,o,i).map(function(s){return s.index})},r.getRenderingElementsByOrder=function(t){var e=t.panels;return this.getRenderingIndexesByOrder(t).map(function(n){return e[n].element})},r.updateRenderingPanels=function(t){t.renderOnlyVisible?this._showOnlyVisiblePanels(t):t.panels.forEac
1h(function(e){return e.markForShow()})},r.collectPanels=function(t,e){var n=this,i=dt(t.renderer.align);return e.map(function(o,s){return new Xt({index:s,elementProvider:new n._providerCtor(o),align:i,flicking:t})})},r.createPanel=function(t,e){return new Xt(q(q({},e),{elementProvider:new this._providerCtor(t)}))},r.updatePanelSizes=function(t,e){t.panels.forEach(function(n){return n.setSize(e)})},r._showOnlyVisiblePanels=function(t){var e=t.renderer.panels,n=t.camera,i=n.visiblePanels.reduce(function(o,s){return o[s.index]=!0,o},{});e.forEach(function(o){o.index in i||o.loading?o.markForShow():t.holding||o.markForHide()}),n.updateOffset()},a})(),kn=(function(a){U(r,a);function r(e){var n=a.call(this,e)||this;return e.elementProvider.init(n),n._elProvider=e.elementProvider,n._cachedInnerHTML=null,n}var t=r.prototype;return Object.defineProperty(t,"element",{get:function(){return this._elProvider.element},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cachedInnerHTML",{get:function(){return this._cachedInnerHTML},enumerable:!1,configurable:!0}),Object.defineProperty(t,"elementIndex",{get:function(){var e=this._flicking,n=e.panelsPerView+1,i=e.panelCount,o=this._index;return this._toggled&&(o=this._toggleDirection===R.NEXT?o+i:o-i),hr(o,n)},enumerable:!1,configurable:!0}),t.cacheRenderResult=function(e){this._cachedInnerHTML=e},t.uncacheRenderResult=function(){this._cachedInnerHTML=null},t.render=function(){var e=this._flicking,n=e.virtual,i=n.renderPanel,o=n.cache,s=this._elProvider.element,u=this._cachedInnerHTML||i(this,this._index);u!==s.innerHTML&&(s.innerHTML=u,o&&this.cacheRenderResult(u))},t.increaseIndex=function(e){return this.uncacheRenderResult(),a.prototype.increaseIndex.call(this,e)},t.decreaseIndex=function(e){return this.uncacheRenderResult(),a.prototype.decreaseIndex.call(this,e)},r})(Xt),gr=(function(){function a(){}var r=a.prototype;return r.renderPanels=function(t){var e=t.virtual,n=t.visiblePanels,i=Ge(t.panelsPerView+1);n.forEach(function(o){var s=o.elementIndex;o.render(),e.show(s),i[s]=-1}),i.filter(function(o){return o>=0}).forEach(function(o){e.hide(o)})},r.getRenderingIndexesByOrder=function(t){var e=t.virtual,n=L(t.visiblePanels).filter(function(s){return s.rendered}).sort(function(s,u){return s.position+s.offset-(u.position+u.offset)});if(n.length<=0)return e.elements.map(function(s,u){return u});var i=n.map(function(s){return s.elementIndex}),o=e.elements.map(function(s,u){return q(q({},s),{idx:u})}).filter(function(s){return!s.visible}).map(function(s){return s.idx});return L(i,o)},r.getRenderingElementsByOrder=function(t){var e=t.virtual,n=e.elements;return this.getRenderingIndexesByOrder(t).map(function(i){return n[i].nativeElement})},r.updateRenderingPanels=function(t){var e=t.renderer.panels,n=t.camera,i=n.visiblePanels.reduce(function(o,s){return o[s.index]=!0,o},{});e.forEach(function(o){o.index in i||o.loading?o.markForShow():o.markForHide()}),n.updateOffset()},r.collectPanels=function(t){var e=dt(t.renderer.align);return Ge(t.virtual.initialPanelCount).map(function(n){return new kn({index:n,elementProvider:new In(t),align:e,flicking:t})})},r.createPanel=function(t,e){return new kn(q(q({},e),{elementProvider:new In(e.flicking)}))},r.updatePanelSizes=function(t,e){t.virtual.elements.forEach(function(n){fr(n.nativeElement,e)}),t.panels.forEach(function(n){return n.setSize(e)})},a})(),_r=(function(a){U(r,a);function r(e,n){var i=n===void 0?{}:n,o=i.align,s=o===void 0?ne.CENTER:o,u=i.defaultIndex,l=u===void 0?0:u,c=i.horizontal,f=c===void 0?!0:c,d=i.circular,h=d===void 0?!1:d,v=i.circularFallback,g=v===void 0?ur.LINEAR:v,_=i.bound,p=_===void 0?!1:_,E=i.adaptive,x=E===void 0?!1:E,w=i.panelsPerView,W=w===void 0?-1:w,Y=i.noPanelStyleOverride,J=Y
1===void 0?!1:Y,re=i.resizeOnContentsReady,oe=re===void 0?!1:re,me=i.nested,be=me===void 0?!1:me,ie=i.needPanelThreshold,Q=ie===void 0?0:ie,se=i.preventEventsBeforeInit,ue=se===void 0?!0:se,V=i.deceleration,K=V===void 0?.0075:V,De=i.duration,Xe=De===void 0?500:De,le=i.easing,qe=le===void 0?function(Cr){return 1-Math.pow(1-Cr,3)}:le,Ne=i.inputType,Pt=Ne===void 0?["mouse","touch"]:Ne,$=i.moveType,$e=$===void 0?"snap":$,Ye=i.threshold,Ke=Ye===void 0?40:Ye,Ze=i.dragThreshold,ce=Ze===void 0?1:Ze,b=i.interruptable,P=b===void 0?!0:b,I=i.bounce,k=I===void 0?"20%":I,O=i.iOSEdgeSwipeThreshold,F=O===void 0?30:O,Z=i.preventClickOnDrag,X=Z===void 0?!0:Z,Je=i.preventDefaultOnDrag,yt=Je===void 0?!1:Je,Qe=i.disableOnInit,H=Qe===void 0?!1:Qe,fe=i.changeOnHold,ae=fe===void 0?!1:fe,Ee=i.renderOnlyVisible,et=Ee===void 0?!1:Ee,Me=i.virtual,tt=Me===void 0?null:Me,nt=i.autoInit,mr=nt===void 0?!0:nt,sn=i.autoResize,br=sn===void 0?!0:sn,un=i.useResizeObserver,Er=un===void 0?!0:un,ln=i.resizeDebounce,Pr=ln===void 0?0:ln,cn=i.observePanelResize,yr=cn===void 0?!1:cn,fn=i.maxResizeDebounce,Or=fn===void 0?100:fn,hn=i.useFractionalSize,xr=hn===void 0?!1:hn,dn=i.externalRenderer,Tr=dn===void 0?null:dn,vn=i.renderExternal,Rr=vn===void 0?null:vn,gn=i.optimizeSizeUpdate,wr=gn===void 0?!1:gn,_n=i.animationThreshold,Ir=_n===void 0?.5:_n,pn=i.useCSSOrder,Ar=pn===void 0?!1:pn,m=a.call(this)||this;return m._scheduleResize=!1,m._initialized=!1,m._plugins=[],m._isResizing=!1,m._align=s,m._defaultIndex=l,m._horizontal=f,m._circular=h,m._circularFallback=g,m._bound=p,m._adaptive=x,m._panelsPerView=W,m._noPanelStyleOverride=J,m._resizeOnContentsReady=oe,m._nested=be,m._virtual=tt,m._needPanelThreshold=Q,m._preventEventsBeforeInit=ue,m._deceleration=K,m._duration=Xe,m._easing=qe,m._inputType=Pt,m._moveType=$e,m._threshold=Ke,m._dragThreshold=ce,m._interruptable=P,m._bounce=k,m._iOSEdgeSwipeThreshold=F,m._preventClickOnDrag=X,m._preventDefaultOnDrag=yt,m._disableOnInit=H,m._changeOnHold=ae,m._renderOnlyVisible=et,m._autoInit=mr,m._autoResize=br,m._useResizeObserver=Er,m._resizeDebounce=Pr,m._maxResizeDebounce=Or,m._observePanelResize=yr,m._useFractionalSize=xr,m._externalRenderer=Tr,m._renderExternal=Rr,m._optimizeSizeUpdate=wr,m._animationThreshold=Ir,m._useCSSOrder=Ar,m._viewport=new Oa(m,pa(e)),m._autoResizer=new xa(m),m._renderer=m._createRenderer(),m._camera=m._createCamera(),m._control=m._createControl(),m._virtualManager=new Ra(m,tt),m._autoInit&&m.init(),m}var t=r.prototype;return Object.defineProperty(t,"control",{get:function(){return this._control},enumerable:!1,configurable:!0}),Object.defineProperty(t,"camera",{get:function(){return this._camera},enumerable:!1,configurable:!0}),Object.defineProperty(t,"renderer",{get:function(){return this._renderer},enumerable:!1,configurable:!0}),Object.defineProperty(t,"viewport",{get:function(){return this._viewport},enumerable:!1,configurable:!0}),Object.defineProperty(t,"autoResizer",{get:function(){return this._autoResizer},enumerable:!1,configurable:!0}),Object.defineProperty(t,"initialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(t,"circularEnabled",{get:function(){return this._camera.circularEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t,"virtualEnabled",{get:function(){return this._panelsPerView>0&&this._virtual!=null},enumerable:!1,configurable:!0}),Object.defineProperty(t,"index",{get:function(){return this._control.activeIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t,"element",{get:function(){return this._viewport.element},enumerable:!1,configurable:!0}),Object.defineProperty(t,"currentPanel",{get:function(){return this._control.activePanel},enumerable:!1,configurable:!0}),Object.defineProperty(t,"panels",{get:function(){return this._renderer.panels},enumerable:!1,configurable:!0}),Object.defineProperty(t,"panelCount",{get:function(){return this._renderer.panelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t,"visiblePanels",{get:function(){return this._camera.visiblePanels},enumerable:!1,configurable:!0}),Object.defineProperty(t,"animating",{get:function(){return this._control.animating}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t,"holding",{get:function(){return this._control.holding},enumerable:!1,configurable:!0}),Object.defineProperty(t,"activePlugins",{get:function(){return this._plugins},enumerable:!1,configurable:!0}),Object.defineProperty(t,"align",{get:function(){return this._align},set:function(e){this._align=e,this._renderer.align=e,this._camera.align=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultIndex",{get:function(){return this._defaultIndex},set:function(e){this._defaultIndex=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"horizontal",{get:function(){return this._horizontal},set:function(e){this._horizontal=e,this._control.controller.updateDirection(),this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"circular",{get:function(){return this._circular},set:function(e){this._circular=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"circularFallback",{get:function(){return this._circularFallback},enumerable:!1,configurable:!0}),Object.defineProperty(t,"bound",{get:function(){return this._bound},set:function(e){this._bound=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"adaptive",{get:function(){return this._adaptive},set:function(e){this._adaptive=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"panelsPerView",{get:function(){return this._panelsPerView},set:function(e){this._panelsPerView=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"noPanelStyleOverride",{get:function(){return this._noPanelStyleOverride},set:function(e){this._noPanelStyleOverride=e,this.resize()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"resizeOnContentsReady",{get:function(){return this._resizeOnContentsReady},set:function(e){this._resizeOnContentsReady=e,e&&this._renderer.checkPanelContentsReady(this._renderer.panels)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"nested",{get:function(){return this._nested},set:function(e){this._nested=e;var n=this._control.controller.axes;n&&(n.options.nested=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"needPanelThreshold",{get:function(){return this._needPanelThreshold},set:function(e){this._needPanelThreshold=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventEventsBeforeInit",{get:function(){return this._preventEventsBeforeInit},set:function(e){this._preventEventsBeforeInit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"deceleration",{get:function(){return this._deceleration},set:function(e){this._deceleration=e;var n=this._control.controller.axes;n&&(n.options.deceleration=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"easing",{get:function(){return this._easing},set:function(e){this._easing=e;var n=this._control.controller.axes;n&&(n.options.easing=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"duration",{get:function(){return this._duration},set:function(e){this._duration=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"inputType",{get:function(){return this._inputType},set:function(e){this._inputType=e;var n=this._control.controller.panInput;n&&(n.options.inputType=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"moveType",{get:function(){return this._moveType},set:function(e){this._moveType=e;var n=this._control,i=this._createControl(),o=n.activePanel;i.copy(n);var s=o?this._camera.getProgressInPanel(o):0;this._control=i,this._control.updatePosition(s),this._control.updateInput()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"threshold",{get:function(){return this._threshold},set:function(e){this._threshold=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"dragThreshold",{get:function(){return this._dragThreshold},set:function(e){this._dragThreshold=e;var n=this._control.controller.panInput;n&&(n.options.threshold=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"animationThreshold",{get:function(){return this._animationThreshold},set:function(e){this._animationThreshold=e}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t,"useCSSOrder",{get:function(){return this._useCSSOrder},set:function(e){this._useCSSOrder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"interruptable",{get:function(){return this._interruptable},set:function(e){this._interruptable=e;var n=this._control.controller.axes;n&&(n.options.interruptable=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"bounce",{get:function(){return this._bounce},set:function(e){this._bounce=e,this._control.updateInput()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"iOSEdgeSwipeThreshold",{get:function(){return this._iOSEdgeSwipeThreshold},set:function(e){this._iOSEdgeSwipeThreshold=e;var n=this._control.controller.panInput;n&&(n.options.iOSEdgeSwipeThreshold=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventClickOnDrag",{get:function(){return this._preventClickOnDrag},set:function(e){var n=this._preventClickOnDrag;if(e!==n){var i=this._control.controller;e?i.addPreventClickHandler():i.removePreventClickHandler(),this._preventClickOnDrag=e}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventDefaultOnDrag",{get:function(){return this._preventDefaultOnDrag},set:function(e){this._preventDefaultOnDrag=e;var n=this._control.controller.panInput;n&&(n.options.preventDefaultOnDrag=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"disableOnInit",{get:function(){return this._disableOnInit},set:function(e){this._disableOnInit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"changeOnHold",{get:function(){return this._changeOnHold},set:function(e){this._changeOnHold=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"renderOnlyVisible",{get:function(){return this._renderOnlyVisible},set:function(e){this._renderOnlyVisible=e,this._renderer.render()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"virtual",{get:function(){return this._virtualManager},enumerable:!1,configurable:!0}),Object.defineProperty(t,"autoInit",{get:function(){return this._autoInit},enumerable:!1,configurable:!0}),Object.defineProperty(t,"autoResize",{get:function(){return this._autoResize},set:function(e){this._autoResize=e,this._initialized&&(e?this._autoResizer.enable():this._autoResizer.disable())},enumerable:!1,configurable:!0}),Object.defineProperty(t,"useResizeObserver",{get:function(){return this._useResizeObserver},set:function(e){this._useResizeObserver=e,this._initialized&&this._autoResize&&this._autoResizer.enable()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"observePanelResize",{get:function(){return this._observePanelResize},set:function(e){this._observePanelResize=e,this._initialized&&this._autoResize&&(e?this._autoResizer.observePanels():this._autoResizer.unobservePanels())},enumerable:!1,configurable:!0}),Object.defineProperty(t,"resizeDebounce",{get:function(){return this._resizeDebounce},enumerable:!1,configurable:!0}),Object.defineProperty(t,"maxResizeDebounce",{get:function(){return this._maxResizeDebounce},enumerable:!1,configurable:!0}),Object.defineProperty(t,"useFractionalSize",{get:function(){return this._useFractionalSize},enumerable:!1,configurable:!0}),Object.defineProperty(t,"externalRenderer",{get:function(){return this._externalRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(t,"renderExternal",{get:function(){return this._renderExternal},enumerable:!1,configurable:!0}),Object.defineProperty(t,"optimizeSizeUpdate",{get:function(){return this._optimizeSizeUpdate},set:function(e){this._optimizeSizeUpdate=e},enumerable:!1,configurable:!0}),t.init=function(){var e=this;if(this._initialized)return Promise.resolve();var n=this._camera,i=this._renderer,o=this._control,s=this._virtualManager,u=this.trigger,l=this._preventEventsBeforeInit;return n.init(),s.init(),i.init(this),o.init(this),l&&(this.trigger=function(){return e}),this._initialResize(),this._moveToInitialPanel(),this._autoResize&&this._autoResizer.enable(),this._preventClickOnDrag&&o.controller.addPreventClickHandler(),this._disableOnInit&&this.disableInput(),i.checkPanelContentsReady(i.panels),this._initialized=!0,i.render().then(function(){e._plugins.forEach(function(c){return c.init(e)}),l&&(e.trigger=u),e.trigger(new T(A.READY))})},t.destroy=function(){this.off(),this._autoResizer.disable(),this._control.destroy(),this._camera.destroy(),this._renderer.destroy(),this._plugins.forEach(function(e){return e.destroy()}),this._scheduleResize=!1,this._initialized=!1,this._isResizing=!1},t.prev=function(e){var n,i,o;return e===void 0&&(e=this._duration),this.moveTo((o=(i=(n=this._control.activePanel)===null||n===void 0?void 0:n.prev())===null||i===void 0?void 0:i.index)!==null&&o!==void 0?o:-1,e,R.PREV)},t.next=function(e){var n,i,o;return e===void 0&&(e=this._duration),this.moveTo((o=(i=(n=this._control.activePanel)===null||n===void 0?void 0:n.next())===null||i===void 0?void 0:i.index)!==null&&o!==void 0?o:this._renderer.panelCount,e,R.NEXT)},t.moveTo=function(e,n,i){n===void 0&&(n=this._duration),i===void 0&&(i=R.NONE);var o=this._renderer,s=o.panelCount,u=o.getPanel(e);return u?this._control.animating?Promise.reject(new S(D.ANIMATION_ALREADY_PLAYING,C.ANIMATION_ALREADY_PLAYING)):(this._control.holding&&this._control.controller.release(),this._control.moveToPanel(u,{duration:n,direction:i})):Promise.reject(new S(D.INDEX_OUT_OF_RANGE(e,0,s-1),C.INDEX_OUT_OF_RANGE))},t.updateAnimation=function(e,n,i){if(this._control.animating){var o=this._renderer,s=o.panelCount,u=o.getPanel(e);
1if(!u)throw new S(D.INDEX_OUT_OF_RANGE(e,0,s-1),C.INDEX_OUT_OF_RANGE);this._control.updateAnimation(u,n,i)}},t.stopAnimation=function(){this._control.animating&&this._control.stopAnimation()},t.getPanel=function(e){return this._renderer.getPanel(e)},t.enableInput=function(){return this._control.enable(),this},t.disableInput=function(){return this._control.disable(),this},t.getStatus=function(e){var n,i,o=e===void 0?{}:e,s=o.index,u=s===void 0?!0:s,l=o.position,c=l===void 0?!0:l,f=o.includePanelHTML,d=f===void 0?!1:f,h=o.visiblePanelsOnly,v=h===void 0?!1:h,g=this._camera,_=v?this.visiblePanels:this.panels,p={panels:_.map(function(w){var W={index:w.index};return d&&(W.html=w.element.outerHTML),W})};if(u&&(p.index=this.index),c){var E=g.findNearestAnchor(g.position);E&&(p.position={panel:E.panel.index,progressInPanel:g.getProgressInPanel(E.panel)})}if(v){var x=this.visiblePanels;p.visibleOffset=(i=(n=x[0])===null||n===void 0?void 0:n.index)!==null&&i!==void 0?i:0}return p},t.setStatus=function(e){var n;if(!this._initialized)throw new S(D.NOT_INITIALIZED,C.NOT_INITIALIZED);var i=e.index,o=e.position,s=e.visibleOffset,u=e.panels,l=this._renderer,c=this._control;if(!((n=u[0])===null||n===void 0)&&n.html&&!this._renderExternal&&(l.batchRemove({index:0,deleteCount:this.panels.length,hasDOMInElements:!0}),l.batchInsert({index:0,elements:wn(u.map(function(_){return _.html})),hasDOMInElements:!0})),i!=null){var f=s?i-s:i;this.moveTo(f,0).catch(function(){})}if(o&&this._moveType===Pe.FREE_SCROLL){var d=o.panel,h=o.progressInPanel,f=s?d-s:d,v=l.panels[f].range,g=v.min+(v.max-v.min)*h;c.moveToPosition(g,0).catch(function(){})}},t.addPlugins=function(){for(var e,n=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return this._initialized&&i.forEach(function(s){return s.init(n)}),(e=this._plugins).push.apply(e,L(i)),this},t.removePlugins=function(){for(var e=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return n.forEach(function(o){var s=Pa(e._plugins,function(u){return u===o});s>=0&&(o.destroy(),e._plugins.splice(s,1))}),this},t.resize=function(){return Te(this,void 0,void 0,function(){var e,n,i,o,s,u,l,c,f,d,h;return Re(this,function(v){switch(v.label){case 0:return this._initialized?this._isResizing?(this._scheduleResize=!0,[2]):(this._scheduleResize=!1,this._isResizing=!0,e=this._viewport,n=this._renderer,i=this._camera,o=this._control,s=o.activePanel,u=e.width,l=e.height,c=s?i.getProgressInPanel(s):0,this.trigger(new T(A.BEFORE_RESIZE,{width:u,height:l,element:e.element})),e.resize(),this._optimizeSizeUpdate?this.horizontal&&e.width!==u||!this.horizontal&&e.height!==l?[4,n.forceRenderAllPanels()]:[3,2]:[3,3]):[2];case 1:v.sent(),v.label=2;case 2:return[3,5];case 3:return[4,n.forceRenderAllPanels()];case 4:v.sent(),v.label=5;case 5:return this._initialized?(n.updatePanelSize(),i.updateAlignPos(),i.updateRange(),i.updateAnchors(),i.updateAdaptiveHeight(),i.updatePanelOrder(),i.updateOffset(),[4,n.render()]):[2];case 6:return v.sent(),this._initialized?(o.animating||(o.updatePosition(c),o.updateInput()),f=e.width,d=e.height,h=f!==u||d!==l,this.trigger(new T(A.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:u,height:l},sizeChanged:h,element:e.element})),this._isResizing=!1,this._scheduleResize&&this.resize(),[2]):[2]}})})},t.append=function(e){return this.insert(this._renderer.panelCount,e)},t.prepend=function(e){return this.insert(0,e)},t.insert=function(e,n){if(this._renderExternal)throw new S(D.NOT_ALLOWED_IN_FRAMEWORK,C.NOT_ALLOWED_IN_FRAMEWORK);return this._renderer.batchInsert({index:e,elements:wn(n),hasDOMInElements:!0})},t.remove=function(e,n){if(n===void 0&&(n=1),this._renderExternal)throw new S(D.NOT_ALLOWED_IN_FRAMEWORK,C.NOT_ALLOWED_IN_FRAMEWORK);return this._renderer.batchRemove({index:e,deleteCount:n,hasDOMInElements:!0})},t._createControl=function(){var e,n=this._moveType,i=Object.keys(Pe).map(function(u){return Pe[u]}),o=Array.isArray(n)?n[0]:n,s=Array.isArray(n)?(e=n[1])!==null&&e!==void 0?e:{}:{};if(!gt(i,o))throw new S(D.WRONG_OPTION("moveType",JSON.stringify(n)),C.WRONG_OPTION);switch(o){case Pe.SNAP:return new Da(s);case Pe.FREE_SCROLL:return new Na(s);case Pe.STRICT:return new Ma(s)}},t._createCamera=function(){return this._circular&&this._bound&&console.warn('"circular" and "bound" option cannot be used together, ignoring bound.'),new La(this,{align:this._align})},t._createRenderer=function(){var e=this._externalRenderer;
1return this._virtual&&this._panelsPerView<=0&&console.warn('"virtual" and "panelsPerView" option should be used together, ignoring virtual.'),e||(this._renderExternal?this._createExternalRenderer():this._createVanillaRenderer())},t._createExternalRenderer=function(){var e=this._renderExternal,n=e.renderer,i=e.rendererOptions;return new n(q({align:this._align},i))},t._createVanillaRenderer=function(){var e=this.virtualEnabled;return new ja({align:this._align,strategy:e?new gr:new vr({providerCtor:Ta})})},t._moveToInitialPanel=function(){var e=this._renderer,n=this._control,i=this._camera,o=e.getPanel(this._defaultIndex)||e.getPanel(0);if(o){var s=i.findNearestAnchor(o.position),u=s&&o.position!==s.panel.position&&o.index!==s.panel.index?s.panel:o;if(n.setActive(u,null,!1),!s)throw new S(D.POSITION_NOT_REACHABLE(u.position),C.POSITION_NOT_REACHABLE);var l=u.position;i.canReach(u)||(l=s.position),i.lookAt(l),n.updateInput(),i.updateOffset()}},t._initialResize=function(){var e=this._viewport,n=this._renderer,i=this._camera,o=this._control;this.trigger(new T(A.BEFORE_RESIZE,{width:0,height:0,element:e.element})),e.resize(),n.updatePanelSize(),i.updateAlignPos(),i.updateRange(),i.updateAnchors(),i.updateOffset(),o.updateInput();var s=e.width,u=e.height,l=s!==0||u!==0;this.trigger(new T(A.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:0,height:0},sizeChanged:l,element:e.element}))},r.VERSION="4.15.0",r})(pe),Va=function(a,r){[pe.prototype,_r.prototype].forEach(function(t){Object.getOwnPropertyNames(t).filter(function(e){return!a[e]&&e.indexOf("_")!==0&&e!=="constructor"}).forEach(function(e){var n=Object.getOwnPropertyDescriptor(t,e);if(n.value)Object.defineProperty(a,e,{value:function(){for(var o,s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return(o=n.value).call.apply(o,L([this[r]],s))}});else{var i={};n.get&&(i.get=function(){var o,s=this[r];return s&&((o=n.get)===null||o===void 0?void 0:o.call(s))}),n.set&&(i.set=function(){for(var o,s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return(o=n.set)===null||o===void 0?void 0:o.call.apply(o,L([this[r]],s))}),Object.defineProperty(a,e,i)}})})},Ha=(function(a,r,t){var e=a.renderer,n=e.panels,i=L(r.prevList),o=[],s=[];if(r.removed.length>0){var u=-1,l=-1;r.removed.forEach(function(v){u<0&&(u=v),l>=0&&v!==l-1&&(s.push.apply(s,L(Nn(e,l,u+1))),u=v),l=v,i.splice(v,1)}),s.push.apply(s,L(Nn(e,l,u+1)))}if(r.ordered.forEach(function(v){var g=tn(v,2),_=g[0],p=g[1],E=n.splice(_,1)[0];n.splice(p,0,E)}),r.ordered.length>0&&(n.forEach(function(v,g){var _=g-v.index;_>0?v.increaseIndex(_):v.decreaseIndex(-_)}),n.sort(function(v,g){return v.index-g.index}),n.forEach(function(v){v.updatePosition()})),r.added.length>0){var c=-1,f=-1,d=t.slice(i.length);r.added.forEach(function(v,g){c<0&&(c=g),f>=0&&v!==f+1?(o.push.apply(o,L(Dn(e,r,d,c,g+1))),c=-1,f=-1):f=v}),c>=0&&o.push.apply(o,L(Dn(e,r,d,c)))}if(r.added.length>0||r.removed.length>0)e.updateAfterPanelChange(o,s);else if(r.ordered.length>0){var h=a.camera;h.updateRange(),h.updateOffset(),h.updateAnchors(),h.resetNeedPanelHistory()}}),Dn=function(a,r,t,e,n){return a.batchInsertDefer.apply(a,L(r.added.slice(e,n).map(function(i,o){return{index:i,elements:[t[o]],hasDOMInElements:!1}})))},Nn=function(a,r,t){var e=a.panels.slice(r,t);return a.batchRemoveDefer({index:r,deleteCount:e.length,hasDOMInElements:!1})},Ba=(function(a,r){var t=r.removed.reduce(function(i,o){return i[o]=!0,i},{}),e=r.maintained.reduce(function(i,o){var s=tn(o,2),u=s[0],l=s[1];return i[u]=l,i},{}),n=a.panels.filter(function(i){return!t[i.index]});return a.useCSSOrder||n.sort(function(i,o){return i.position+i.offset-(o.position+o.offset)}),L(n.map(function(i){return r.list[e[i.index]]}),r.added.map(function(i){return r.list[i]}))}),Ga=(function(a,r,t){a===void 0&&(a=ne.CENTER),r===void 0&&(r=!0);var e=Ua(a),n=Wa(a);if(n==null)return"";var i="calc("+e+" - ("+(t||"0px")+" * "+n.percentage+") - "+n.absolute+"px)";return r?"translate("+i+")":"translate(0, "+i+")"}),Ua=function(a){var r=typeof a=="object"?a.camera:a;return pr(r)},Wa=function(a){var r=typeof a=="object"?a.panel:a;return lr(pr(r))}
1,pr=function(a){if(typeof a=="number")return a+"px";switch(a){case ne.CENTER:return"50%";case ne.NEXT:return"100%";case ne.PREV:return"0%";default:return a}};var qt=function(a,r){return qt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},qt(a,r)};function Xa(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");qt(a,r);function t(){this.constructor=a}a.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var pt=function(){return pt=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},pt.apply(this,arguments)};function qa(a,r){var t={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&r.indexOf(e)<0&&(t[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(a);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(a,e[n])&&(t[e[n]]=a[e[n]]);return t}function Mn(a,r,t,e){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{l(e.next(c))}catch(f){o(f)}}function u(c){try{l(e.throw(c))}catch(f){o(f)}}function l(c){c.done?i(c.value):n(c.value).then(s,u)}l((e=e.apply(a,[])).next())})}function zn(a,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(c){return u([l,c])}}function u(l){if(e)throw new TypeError("Generator is already executing.");for(;t;)try{if(e=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,n=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1],i=l;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(l);break}i[2]&&t.ops.pop(),t.trys.pop();continue}l=r.call(a,t)}catch(c){l=[6,c],n=0}finally{e=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function St(a,r,t){for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))}var $a={viewportTag:{type:String,default:"div",required:!1},cameraTag:{type:String,default:"div",required:!1},cameraClass:{type:String,default:"",required:!1},hideBeforeInit:{type:Boolean,default:!1,required:!1},firstPanelSize:{type:String,required:!1},options:{type:Object,default:function(){return{}},required:!1},plugins:{type:Array,default:function(){return[]},required:!1},status:{type:Object,required:!1}},Ya=(function(a){Xa(r,a);function r(e){var n=a.call(this,e)||this;return n._vueFlicking=e.vueFlicking,n}var t=r.prototype;return t.render=function(){return Mn(this,void 0,void 0,function(){var e,n,i,o=this;return zn(this,function(s){return e=y(this._flicking),n=this._vueFlicking,i=this._strategy,i.updateRenderingPanels(e),i.renderPanels(e),[2,new Promise(function(u){n.renderEmitter.once("render",function(){o._afterRender(),u()}),n.$forceUpdate()})]})})},t.forceRenderAllPanels=function(){return Mn(this,void 0,void 0,function(){var e;return zn(this,function(n){switch(n.label){case 0:return e=this._vueFlicking,[4,a.prototype.forceRenderAllPanels.call(this)];case 1:return n.sent(),[2,new Promise(function(i){e.renderEmitter.once("render",i),e.$forceUpdate()})]}})})},t._collectPanels=function(){var e=y(this._flicking),n=this._vueFlicking,i=n.$refs,o=Object.keys(i).map(function(s){return i[s]});this._panels=this._strategy.collectPanels(e,o)},t._createPanel=function(e,n){return this._strategy.createPanel(e,n)},r})(Fa),Ka=Ln({data:function(){return{hide:!1}},render:function(){if(!(this.hide||!this.$slots.default))return this.$slots.default()}}),Za=(function(){function a(t){this._el=t}var r=a.prototype;return Object.defineProperty(r,"rendered",{get:function(){return!this._el.hide}
1,enumerable:!1,configurable:!0}),Object.defineProperty(r,"element",{get:function(){var t=this._el.$el.nextSibling;return t&&t.nodeType===Node.ELEMENT_NODE&&(this._cachedElement=t),this._cachedElement},enumerable:!1,configurable:!0}),r.show=function(){this._el.hide=!1},r.hide=function(){this._el.hide=!0},a})(),eo=Ln({props:$a,components:{Panel:Ka},data:function(){return{}},created:function(){var a=this;this.vanillaFlicking=null,this.renderEmitter=new pe,this.diffResult=null,this.getPanels=function(){var r=Mr(),t=r?.ctx,e=a.vanillaFlicking,n=a.getSlots(),i=t?.diffResult,o=i?Ba(e,i):n,s=Nr("Panel"),u=o.map(function(l,c){return rt(s,{key:l.key,ref:c.toString()},function(){return l})});return u},this.getVirtualPanels=function(){var r=a.options,t=r.virtual.panelClass,e=t===void 0?"flicking-panel":t,n=r.panelsPerView,i=a.vanillaFlicking,o=i&&i.initialized,s=o?i.renderer.strategy.getRenderingIndexesByOrder(i):Ge(n+1),u=o&&i.panels[0],l=u?i.horizontal?{width:u.size}:{height:u.size}:{};return s.map(function(c){return rt("div",{key:c,ref:c.toString(),class:e,style:l,"data-element-index":c})})},Va(this,"vanillaFlicking")},mounted:function(){var a=this,r,t=this.options,e=this.$el,n={vueFlicking:this,align:t.align,strategy:t.virtual&&((r=t.panelsPerView)!==null&&r!==void 0?r:-1)>0?new gr:new vr({providerCtor:Za})},i=new _r(e,pt(pt({},t),{externalRenderer:new Ya(n)}));this.vanillaFlicking=i,i.once(A.READY,function(){a.$forceUpdate()});var o=this.getSlots();this.slotDiffer=new bn(o,function(s){return s.key}),this.pluginsDiffer=new bn,this.bindEvents(),this.checkPlugins(),this.status&&i.setStatus(this.status)},beforeUnmount:function(){var a;(a=this.vanillaFlicking)===null||a===void 0||a.destroy()},beforeMount:function(){this.fillKeys()},beforeUpdate:function(){var a;this.fillKeys(),this.diffResult=(a=this.slotDiffer)===null||a===void 0?void 0:a.update(this.getSlots())},updated:function(){var a=this.vanillaFlicking,r=this.diffResult;if(this.checkPlugins(),this.renderEmitter.trigger("render"),!(!r||!a?.initialized)){var t=this.getChildren();Ha(a,r,t),(r.added.length>0||r.removed.length>0)&&this.$forceUpdate(),this.diffResult=void 0}},render:function(){var a,r,t=this.vanillaFlicking,e=this.options,n=t&&t.initialized,i=t?t.horizontal:(r=this.options.horizontal)!==null&&r!==void 0?r:!0,o={class:{"flicking-viewport":!0,vertical:!i,"flicking-hidden":this.hideBeforeInit&&!n}},s={class:(a={"flicking-camera":!0},a[this.cameraClass]=!!this.cameraClass,a),style:!n&&this.firstPanelSize?{transform:Ga(this.options.align,this.options.horizontal,this.firstPanelSize)}:{}},u=e.virtual&&e.panelsPerView&&e.panelsPerView>0?this.getVirtualPanels:this.getPanels,l=this.$slots.viewport?this.$slots.viewport():[];return rt(this.viewportTag,o,St([rt(this.cameraTag,s,{default:u})],l))},methods:{getSlots:function(){var a=this,r=this.$slots.default?this.$slots.default():[];return r.reduce(function(t,e){return St(St([],t,!0),a.getElementVNodes(e))},[]).filter(function(t){return t.type!==kr&&t.type!==Dr})},getElementVNodes:function(a,r){var t=this;return r===void 0&&(r=[]),a.type===Sr&&Array.isArray(a.children)?a.children.filter(function(e){return e&&typeof e=="object"}).forEach(function(e){return t.getElementVNodes(e,r)}):r.push(a),r},bindEvents:function(){var a=this,r=this.vanillaFlicking,t=Object.keys(A).map(function(e){return A[e]});t.forEach(function(e){r.on(e,function(n){n.currentTarget=a,a.$emit(e.replace(/([A-Z])/g,"-$1").toLowerCase(),n)})})},checkPlugins:function(){var a,r,t=this.pluginsDiffer.update(this.plugins),e=t.list,n=t.added,i=t.removed,o=t.prevList;(a=this.vanillaFlicking).addPlugins.apply(a,n.map(function(s){return e[s]})),(r=this.vanillaFlicking).removePlugins.apply(r,i.map(function(s){return o[s]}))},fillKeys:function(){var a=this.getSlots();a.forEach(function(r,t){r.key==null&&(r.key="$_".concat(t))})},getChildren:function(){var a=this.$refs;return Object.keys(a).map(function(r){return a[r]})}},watch:{options:{handler:function(a){var r=this.vanillaFlicking;if(r){a.virtual;var t=qa(a,["virtual"]);for(var e in t)e in r&&r[e]!==t[e]&&(r[e]=t[e])}},deep:!0,immediate:!0}}});class Ja{_handlers={};constructor(){}trigger=(r,...t)=>{const e=this;e._handlers[r]&&e._handlers[r].forEach(n=>
1{n(...t)})};on=(r,t)=>{const e=this;e._handlers[r]||(e._handlers[r]=[]),e._handlers[r].push(t)};off=r=>{const t=this;t._handlers[r]&&delete t._handlers[r]};clearAllTriggers=()=>{const r=this;Object.keys(r._handlers).forEach(t=>{r.off(t)})}}const to=a=>{const{flickingEl:r,group_item_length:t,progressBar:e}=a,{$gsap:n}=zr(),{pageTransitionState:i}=Lr(),o=ee(!0),s=ee(!0),u=ee(!1),l=ee(!0),c=ee(0);let f={duration:7,animationDuration:1,slider_currentIndex:0,slider_prevIndex:-1,slider_nextIndex:0,css_var_progress:"--progress_slide",classname_progress_active:"active",dotItemSelector:".flicking-dot-item",dotItemIndexAttrKey:"data-index"},d={speed:ee(5),autoPlay_stop:!1,flicking_rangeDiff:ee(0)},h={container:ee(null),scrollbarEl:null,scrollbarThumbEl:null,scrollbarWidth:0,scrollbarThumbWidth:0,progressMode:"default"};const v=async()=>{if(!r.value)return;await ze();const{position:b,range:P,rangeDiff:I}=r.value?.camera;I<=1?o.value=s.value=!0:(o.value=b<=P.min,s.value=b>=P.max)},g=async()=>{if(!r.value)return;await ze();const{atEdge:b,range:P}=r.value?.camera;l.value=b,u.value=P.max>P.min},_=async()=>{if(!r.value)return;await ze();const{rangeDiff:b}=r.value?.camera;b<=0?r.value?.disableInput():r.value?.enableInput()},p=()=>{v(),g(),_()},E=it(()=>o.value&&s.value),x=b=>{Ne()&&(f.slider_currentIndex=b.currentTarget.index,r.value?.on("moveStart",O=>{$?.trigger("moveStart"),$?.tlProgress()?.pause(),f.slider_prevIndex=O.currentTarget.index}),r.value?.on("changed",O=>{f.slider_nextIndex=O.currentTarget.index,f.slider_currentIndex=O.currentTarget.index,$?.au_autoPlay()}),r.value?.on("restored",async O=>{$?.trigger("restored"),$?.tlProgress()?.resume(),($?.tlProgress()?.progress()||0)>=1&&J()})),$e()&&(d.flicking_rangeDiff.value=b.currentTarget?.camera?.rangeDiff,r.value?.on("changed",async O=>{await ze(),!d.autoPlay_stop&&ce?.mq_marqueePlay()}),r.value?.on("afterResize",O=>{d.flicking_rangeDiff.value=O.currentTarget?.camera?.rangeDiff,!d.autoPlay_stop&&ce?.mq_marqueePlay()})),V.value=Xe(),le(b),r.value?.on("willChange",O=>{le(O)}),r.value?.on("restored",O=>{le(O)});const P=new Ot;r.value?.on("afterResize",O=>{P.callAfterTimer(()=>{V.value=Xe(),le(O),ie()&&(ue(),Q(),se())})}),ie()&&(ue(),Q(),se());const I=new Ot;r.value?.on("afterResize",O=>{I.callAfterTimer(()=>{p()})}),new Ot().callAfterTimer(()=>{p()},500),r.value?.on("willChange",O=>{c.value=O.index})},w=()=>{p()},W=()=>{p()},Y=async()=>{try{if(De.value){const{prev_index:b}=qe();oe()&&me()?await r.value?.moveTo(r.value?.panelCount-1):await r.value?.moveTo(b)}else await r.value?.prev()}catch{}},J=async()=>{try{if(De.value){const{next_index:b}=qe();oe()&&be()?await r.value?.moveTo(0):await r.value?.moveTo(b)}else await r.value?.next()}catch{}},re=async b=>{try{await r.value?.moveTo(b.index,b.duration,b.direction)}catch{}},oe=()=>r.value?.circularEnabled||!1,me=()=>!r.value?.panelCount||r.value?.panelCount<=1?!1:r.value?.index===0,be=()=>{const b=r.value?.panelCount;if(!b||b<=1)return!1;const P=r.value?.visiblePanels.find(I=>I.index==b-1);return P&&P?.visibleRatio>=1};mn(()=>e?.container.value,b=>{ie()&&(ue(),Q(),r.value?.on("move",P=>{se()}),r.value?.on("afterResize",async P=>{await ze(),ue(),Q(),se()}))});const ie=()=>e&&e.container.value?.compEl?(h.container.value=e.container.value?.compEl,h.scrollbarEl=h.container.value.querySelector(".scrollbar"),h.scrollbarThumbEl=h.container.value.querySelector(".scrollbar-thumb"),h={...h,...e},!0):!1,Q=()=>{if(!r.value||!h.scrollbarThumbEl)return;const b=r.value,P=b.camera.rangeDiff,I=b.camera.size;let k=I/(P+I);h.progressMode==="group"&&(k=1/V.value.length),h.scrollbarThumbWidth=k,h.scrollbarThumbEl.style.setProperty("--width",`${h.scrollbarThumbWidth*100}%`)},se=()=>{if(!r.value||!h.scrollbarThumbEl)return;const b=r.value,P=b.camera.range.min||0,I=b.camera.position-P||0,k=b.camera.rangeDiff||0,O=h.scrollbarWidth*h.scrollbarThumbWidth,F=(h.scrollbarWidth-O)*(I/k);h.scrollbarThumbEl.style.setProperty("--position",`${F}`)},ue=()=>{if(!r.value||!h.scrollbarEl)return;const{width:b}=h.scrollbarEl.getBoundingClientRect();h.scrollbarWidth=b},V=ee([]),K=ee(0),De=it(()=>V.value.length>0&&V.value.length<(r.value?.panelCount||0)),Xe=b=>{let P=0;const I=[];if(!r.value)return I;const k=r.value?.panelCount||0;switch(!0){case typeof t>"u":K.value=k;break;case t==="auto":{K.value=r.value?.visiblePanels.length||0;const O=K.value-1,F=r.value?.panels[O]||null;if(F){const{position:Z,visibleRatio:X}=F;X<1&&(K.value-=1)}}break;case typeof t=="number":K.value=t;break}if(k>K.value){const O=K.value;P=Math.ceil(k/O),isFinite(P)||(P=0);for(let F=0;F<P;F++){const X={index:O*F,active:!1};I.push(X)}}else if(typeof t>"u")for(let O=0;O<K.value;O++){const F={index:O,active:!1};I.push(F)}return I},le=b=>{const P=r.value;if(!P||P&&P?.panelCount<=0)return;const{atEdge:I}=P.camera,k=b?.index??P?.currentPanel.index??0,O=K.value,F=V.value.find(X=>X.active);F&&(F.active=!1);let Z;K.value===r.value?.panelCount?Z=V.value.find(X=>k===X.index):Z=V.value.findLast(X=>k+O>X.index?!0:k>=X.index&&k<X.index+O),Z&&(Z.active=!0)},qe=()=>{const b=V.value.findIndex(O=>O.active),P=V.value.find(O=>O.active)?.index??0,I=b===0?P:V.value?.[b-1]?.index??0,k=b===V.value.length-1?P:V.value?.[b+1]?.index??0;return{prev_index:I,next_index:k}},Ne=()=>a.kind==="autoplay"?(f={...f,...a.autoplay},!0):!1,Pt=()=>{let b=new Ja;const P={dotItemEl:void 0,dotItemPrevEl:void 0,progressEl:void 0,progressPrevEl:void 0};let I;const k=()=>I,O=()=>{const H=f.dotsContainerEl?.value;if(!H)return;(f.dotItemSelector?H.querySelectorAll(f.dotItemSelector):[]).forEac
1h(ae=>{ae.classList.remove(f.classname_progress_active)})},F=({_autoplay:H})=>{const fe=H.slider_currentIndex,ae=H.slider_prevIndex,Ee=H.dotsContainerEl?.value,et=Ee?.querySelector(`${H.dotItemSelector}[${H.dotItemIndexAttrKey}="${fe}"]`),Me=Ee?.querySelector(`${H.dotItemSelector}[${H.dotItemIndexAttrKey}="${ae}"]`),tt=et?.querySelector(".progress"),nt=Me?.querySelector(".progress");P.dotItemEl=et,P.dotItemPrevEl=Me,P.progressEl=tt,P.progressPrevEl=nt},Z=()=>{Object.keys(P).forEach(H=>{P[H]=null})},X=()=>{I&&(I.kill(),I=null),I=n.timeline({paused:!0,onStart:function(){b?.trigger("progressStart"),P.dotItemPrevEl&&(P.dotItemPrevEl.classList.remove(f.classname_progress_active),n.to({},{onUpdate:function(){const ae=this.progress();P.dotItemPrevEl?.style.setProperty(f.css_var_progress,`${1-ae}`)},ease:"power2.out",duration:.25})),P.dotItemEl?.classList.add(f.classname_progress_active)},onUpdate:function(){const ae=this.progress();P.dotItemEl?.style.setProperty(f.css_var_progress,ae.toString())}});let H={p:0};I.to(H,{p:1,duration:f.duration})};let Je;const yt=()=>{clearTimeout(Je),O(),F({_autoplay:f}),I&&I.play(0).then(async()=>{!oe()&&be()?await re({index:0}):await J()})},Qe=()=>{k()?.kill(),Z(),b?.clearAllTriggers(),b=null};return{au_clearDotsStyle:O,au_createTimeline:X,au_autoPlay:yt,tlProgress:k,trigger:b?.trigger,on:b?.on,off:b?.off,clearElements:Z,clearAllTriggers:b.clearAllTriggers,clearDeep:Qe}};let $=Ne()?{...Pt()}:null;const $e=()=>a.kind==="marquee"?(d={...d,...a.marquee},!0):!1,Ye=it(()=>d.flicking_rangeDiff.value>0),Ke=it(()=>(d.speed?.value||0)*1e3),Ze=()=>{const b=(k,O)=>k+1>=O?0:k+1;return{mq_marqueePlay:async()=>{if(!Ye.value){try{await r.value?.moveTo(0,Ke.value)}catch{}return}d.autoPlay_stop=!1;try{await r.value?.moveTo(b(r.value?.index,r.value.panelCount),Ke.value)}catch{}},mq_marqueePause:async()=>{d.autoPlay_stop=!0,r.value?.stopAnimation()}}};let ce=$e()?{...Ze()}:null;return mn(()=>i.loadComplete,b=>{if(r.value)if(!b)$?.tlProgress()?.pause(),ce?.mq_marqueePause(),r.value.stopAnimation();else{const P=$?.tlProgress();P&&P.progress()>0&&P.resume(),ce?.mq_marqueePlay(),r.value.index!==c.value&&re({index:c.value})}}),jr(()=>{$?.clearDeep()}),{flickingEl:r,checkBtnDisabled:v,checkCircularIsEnabled:oe,checkAllStatus:p,slidePrev:Y,slideNext:J,slideTo:re,setScrollbarThumbSize:Q,setScrollbarWidth:ue,setScrollbarThumbPosition:se,onFlickingReady:x,onFlickingChanged:w,onFlickingHoldEnd:W,disablePrev:o,disableNext:s,atEdge:l,needSlide:u,indexNextWill:c,hideControl:E,dotsByGpEl:V,_autoPlay:$,_marqueePlay:ce}};export{Ot as C,A as E,eo as F,de as c,to as u};
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.