@konnectio/core 4.0.33 → 4.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ActionField-227adb66.cjs → ActionField-044d5ae1.cjs} +1 -1
- package/dist/{ActionField-0429d7fd.js → ActionField-6bada9e1.js} +2 -2
- package/dist/ActionField-6bada9e1.js.br +0 -0
- package/dist/{AvailabilitySkeleton-cb38341b.cjs → AvailabilitySkeleton-1bdfed27.cjs} +1 -1
- package/dist/{AvailabilitySkeleton-6db0cdf6.js → AvailabilitySkeleton-f12f7c36.js} +5 -5
- package/dist/AvailabilitySkeleton-f12f7c36.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-6fc3eaad.js → DateField.vue_vue_type_style_index_0_lang-ed25fefa.js} +1 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-ed25fefa.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-40609275.cjs → DateField.vue_vue_type_style_index_0_lang-f242b4f3.cjs} +1 -1
- package/dist/{Field-e6325334.js → Field-4abad4c4.js} +2 -2
- package/dist/Field-4abad4c4.js.br +0 -0
- package/dist/{Field-3d5c74fa.cjs → Field-83e79ac9.cjs} +1 -1
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-2ad3f0ab.js → NumberField.vue_vue_type_script_setup_true_lang-01dbfb98.js} +1 -1
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-2ad3f0ab.js.br → NumberField.vue_vue_type_script_setup_true_lang-01dbfb98.js.br} +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-d98a404c.cjs → NumberField.vue_vue_type_script_setup_true_lang-2fad0cbe.cjs} +1 -1
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-a2c88638.js → SelectField.vue_vue_type_style_index_0_lang-37c4524a.js} +1222 -1216
- package/dist/SelectField.vue_vue_type_style_index_0_lang-37c4524a.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-17bb1416.cjs → SelectField.vue_vue_type_style_index_0_lang-3cd5af09.cjs} +32 -32
- package/dist/{ThankYou-467046c6.js → ThankYou-8f0e7fb4.js} +1238 -1214
- package/dist/ThankYou-8f0e7fb4.js.br +0 -0
- package/dist/{ThankYou-c89d0ad7.cjs → ThankYou-c153e958.cjs} +6 -6
- package/dist/{_-685a039a.js → _-a03c308d.js} +1 -1
- package/dist/{_-0ecc46c2.cjs → _-ca9b20fd.cjs} +1 -1
- package/dist/availability.cjs +1 -1
- package/dist/availability.js +7 -7
- package/dist/availability.js.br +0 -0
- package/dist/components/inputs/CheckboxField.vue.d.ts +1 -1
- package/dist/components/inputs/InputField.vue.d.ts +1 -1
- package/dist/components/listings/Base.vue.d.ts +1 -1
- package/dist/components/listings/Hotel.vue.d.ts +1 -1
- package/dist/{event-d7e9c157.cjs → event-32319e6e.cjs} +1 -1
- package/dist/{event-689c56cc.js → event-e82b3708.js} +7 -7
- package/dist/event-e82b3708.js.br +0 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +8 -8
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +3 -3
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +5 -5
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +1131 -1125
- package/dist/hotel.js.br +0 -0
- package/dist/{index-7b8392ee.cjs → index-8d46a016.cjs} +1 -1
- package/dist/{index-322730dc.js → index-beeae88b.js} +1 -1
- package/dist/index-beeae88b.js.br +0 -0
- package/dist/polyfill.cjs +4 -4
- package/dist/polyfill.js +627 -627
- package/dist/polyfill.js.br +0 -0
- package/dist/store/hotel.d.ts +6 -6
- package/dist/store/utilities.d.ts +6 -6
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/types/index.d.ts +1 -5
- package/package.json +9 -9
- package/dist/ActionField-0429d7fd.js.br +0 -0
- package/dist/AvailabilitySkeleton-6db0cdf6.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-6fc3eaad.js.br +0 -0
- package/dist/Field-e6325334.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-a2c88638.js.br +0 -0
- package/dist/ThankYou-467046c6.js.br +0 -0
- package/dist/event-689c56cc.js.br +0 -0
- package/dist/index-322730dc.js.br +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-17bb1416.cjs"),On=require("./_commonjsHelpers-6763f629.cjs"),xo=require("./ActionField-227adb66.cjs"),Oo=require("./index-7b8392ee.cjs"),de=require("./_-0ecc46c2.cjs"),wo=["top","right","bottom","left"],lr=["start","end"],ur=wo.reduce((n,i)=>n.concat(i,i+"-"+lr[0],i+"-"+lr[1]),[]),Qe=Math.min,Ee=Math.max,To={left:"right",right:"left",bottom:"top",top:"bottom"},So={start:"end",end:"start"};function Qt(n,i,t){return Ee(n,Qe(i,t))}function Te(n,i){return typeof n=="function"?n(i):n}function fe(n){return n.split("-")[0]}function ae(n){return n.split("-")[1]}function Wr(n){return n==="x"?"y":"x"}function wn(n){return n==="y"?"height":"width"}function ot(n){return["top","bottom"].includes(fe(n))?"y":"x"}function Tn(n){return Wr(ot(n))}function Ur(n,i,t){t===void 0&&(t=!1);const e=ae(n),r=Tn(n),o=wn(r);let a=r==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[o]>i.floating[o]&&(a=bt(a)),[a,bt(a)]}function Co(n){const i=bt(n);return[yt(n),i,yt(i)]}function yt(n){return n.replace(/start|end/g,i=>So[i])}function ko(n,i,t){const e=["left","right"],r=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(n){case"top":case"bottom":return t?i?r:e:i?e:r;case"left":case"right":return i?o:a;default:return[]}}function Ro(n,i,t,e){const r=ae(n);let o=ko(fe(n),t==="start",e);return r&&(o=o.map(a=>a+"-"+r),i&&(o=o.concat(o.map(yt)))),o}function bt(n){return n.replace(/left|right|bottom|top/g,i=>To[i])}function Io(n){return{top:0,right:0,bottom:0,left:0,...n}}function Xr(n){return typeof n!="number"?Io(n):{top:n,right:n,bottom:n,left:n}}function Ue(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function cr(n,i,t){let{reference:e,floating:r}=n;const o=ot(i),a=Tn(i),s=wn(a),u=fe(i),c=o==="y",f=e.x+e.width/2-r.width/2,h=e.y+e.height/2-r.height/2,v=e[s]/2-r[s]/2;let d;switch(u){case"top":d={x:f,y:e.y-r.height};break;case"bottom":d={x:f,y:e.y+e.height};break;case"right":d={x:e.x+e.width,y:h};break;case"left":d={x:e.x-r.width,y:h};break;default:d={x:e.x,y:e.y}}switch(ae(i)){case"start":d[a]-=v*(t&&c?-1:1);break;case"end":d[a]+=v*(t&&c?-1:1);break}return d}const No=async(n,i,t)=>{const{placement:e="bottom",strategy:r="absolute",middleware:o=[],platform:a}=t,s=o.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(i));let c=await a.getElementRects({reference:n,floating:i,strategy:r}),{x:f,y:h}=cr(c,e,u),v=e,d={},p=0;for(let g=0;g<s.length;g++){const{name:m,fn:_}=s[g],{x:y,y:b,data:E,reset:x}=await _({x:f,y:h,initialPlacement:e,placement:v,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:n,floating:i}});if(f=y??f,h=b??h,d={...d,[m]:{...d[m],...E}},x&&p<=50){p++,typeof x=="object"&&(x.placement&&(v=x.placement),x.rects&&(c=x.rects===!0?await a.getElementRects({reference:n,floating:i,strategy:r}):x.rects),{x:f,y:h}=cr(c,v,u)),g=-1;continue}}return{x:f,y:h,placement:v,strategy:r,middlewareData:d}};async function It(n,i){var t;i===void 0&&(i={});const{x:e,y:r,platform:o,rects:a,elements:s,strategy:u}=n,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:v=!1,padding:d=0}=Te(i,n),p=Xr(d),m=s[v?h==="floating"?"reference":"floating":h],_=Ue(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(m)))==null||t?m:m.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:u})),y=h==="floating"?{...a.floating,x:e,y:r}:a.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),E=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},x=Ue(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:b,strategy:u}):y);return{top:(_.top-x.top+p.top)/E.y,bottom:(x.bottom-_.bottom+p.bottom)/E.y,left:(_.left-x.left+p.left)/E.x,right:(x.right-_.right+p.right)/E.x}}const Ao=n=>({name:"arrow",options:n,async fn(i){const{x:t,y:e,placement:r,rects:o,platform:a,elements:s,middlewareData:u}=i,{element:c,padding:f=0}=Te(n,i)||{};if(c==null)return{};const h=Xr(f),v={x:t,y:e},d=Tn(r),p=wn(d),g=await a.getDimensions(c),m=d==="y",_=m?"top":"left",y=m?"bottom":"right",b=m?"clientHeight":"clientWidth",E=o.reference[p]+o.reference[d]-v[d]-o.floating[p],x=v[d]-o.reference[d],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let I=C?C[b]:0;(!I||!await(a.isElement==null?void 0:a.isElement(C)))&&(I=s.floating[b]||o.floating[p]);const O=E/2-x/2,k=I/2-g[p]/2-1,T=Qe(h[_],k),D=Qe(h[y],k),N=T,$=I-g[p]-D,z=I/2-g[p]/2+O,H=Qt(N,z,$),w=!u.arrow&&ae(r)!=null&&z!=H&&o.reference[p]/2-(z<N?T:D)-g[p]/2<0,P=w?z<N?z-N:z-$:0;return{[d]:v[d]+P,data:{[d]:H,centerOffset:z-H-P,...w&&{alignmentOffset:P}},reset:w}}});function Do(n,i,t){return(n?[...t.filter(r=>ae(r)===n),...t.filter(r=>ae(r)!==n)]:t.filter(r=>fe(r)===r)).filter(r=>n?ae(r)===n||(i?yt(r)!==r:!1):!0)}const Mo=function(n){return n===void 0&&(n={}),{name:"autoPlacement",options:n,async fn(i){var t,e,r;const{rects:o,middlewareData:a,placement:s,platform:u,elements:c}=i,{crossAxis:f=!1,alignment:h,allowedPlacements:v=ur,autoAlignment:d=!0,...p}=Te(n,i),g=h!==void 0||v===ur?Do(h||null,d,v):v,m=await It(i,p),_=((t=a.autoPlacement)==null?void 0:t.index)||0,y=g[_];if(y==null)return{};const b=Ur(y,o,await(u.isRTL==null?void 0:u.isRTL(c.floating)));if(s!==y)return{reset:{placement:g[0]}};const E=[m[fe(y)],m[b[0]],m[b[1]]],x=[...((e=a.autoPlacement)==null?void 0:e.overflows)||[],{placement:y,overflows:E}],C=g[_+1];if(C)return{data:{index:_+1,overflows:x},reset:{placement:C}};const I=x.map(T=>{const D=ae(T.placement);return[T.placement,D&&f?T.overflows.slice(0,2).reduce((N,$)=>N+$,0):T.overflows[0],T.overflows]}).sort((T,D)=>T[1]-D[1]),k=((r=I.filter(T=>T[2].slice(0,ae(T[0])?2:3).every(D=>D<=0))[0])==null?void 0:r[0])||I[0][0];return k!==s?{data:{index:_+1,overflows:x},reset:{placement:k}}:{}}}},zo=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(i){var t,e;const{placement:r,middlewareData:o,rects:a,initialPlacement:s,platform:u,elements:c}=i,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...m}=Te(n,i);if((t=o.arrow)!=null&&t.alignmentOffset)return{};const _=fe(r),y=fe(s)===s,b=await(u.isRTL==null?void 0:u.isRTL(c.floating)),E=v||(y||!g?[bt(s)]:Co(s));!v&&p!=="none"&&E.push(...Ro(s,g,p,b));const x=[s,...E],C=await It(i,m),I=[];let O=((e=o.flip)==null?void 0:e.overflows)||[];if(f&&I.push(C[_]),h){const N=Ur(r,a,b);I.push(C[N[0]],C[N[1]])}if(O=[...O,{placement:r,overflows:I}],!I.every(N=>N<=0)){var k,T;const N=(((k=o.flip)==null?void 0:k.index)||0)+1,$=x[N];if($)return{data:{index:N,overflows:O},reset:{placement:$}};let z=(T=O.filter(H=>H.overflows[0]<=0).sort((H,w)=>H.overflows[1]-w.overflows[1])[0])==null?void 0:T.placement;if(!z)switch(d){case"bestFit":{var D;const H=(D=O.map(w=>[w.placement,w.overflows.filter(P=>P>0).reduce((P,S)=>P+S,0)]).sort((w,P)=>w[1]-P[1])[0])==null?void 0:D[0];H&&(z=H);break}case"initialPlacement":z=s;break}if(r!==z)return{reset:{placement:z}}}return{}}}};async function Bo(n,i){const{placement:t,platform:e,elements:r}=n,o=await(e.isRTL==null?void 0:e.isRTL(r.floating)),a=fe(t),s=ae(t),u=ot(t)==="y",c=["left","top"].includes(a)?-1:1,f=o&&u?-1:1,h=Te(i,n);let{mainAxis:v,crossAxis:d,alignmentAxis:p}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return s&&typeof p=="number"&&(d=s==="end"?p*-1:p),u?{x:d*f,y:v*c}:{x:v*c,y:d*f}}const Lo=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(i){const{x:t,y:e}=i,r=await Bo(i,n);return{x:t+r.x,y:e+r.y,data:r}}}},Vo=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(i){const{x:t,y:e,placement:r}=i,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:m=>{let{x:_,y}=m;return{x:_,y}}},...u}=Te(n,i),c={x:t,y:e},f=await It(i,u),h=ot(fe(r)),v=Wr(h);let d=c[v],p=c[h];if(o){const m=v==="y"?"top":"left",_=v==="y"?"bottom":"right",y=d+f[m],b=d-f[_];d=Qt(y,d,b)}if(a){const m=h==="y"?"top":"left",_=h==="y"?"bottom":"right",y=p+f[m],b=p-f[_];p=Qt(y,p,b)}const g=s.fn({...i,[v]:d,[h]:p});return{...g,data:{x:g.x-t,y:g.y-e}}}}},jo=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(i){const{placement:t,rects:e,platform:r,elements:o}=i,{apply:a=()=>{},...s}=Te(n,i),u=await It(i,s),c=fe(t),f=ae(t),h=ot(t)==="y",{width:v,height:d}=e.floating;let p,g;c==="top"||c==="bottom"?(p=c,g=f===(await(r.isRTL==null?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(g=c,p=f==="end"?"top":"bottom");const m=d-u[p],_=v-u[g],y=!i.middlewareData.shift;let b=m,E=_;if(h){const C=v-u.left-u.right;E=f||y?Qe(_,C):C}else{const C=d-u.top-u.bottom;b=f||y?Qe(m,C):C}if(y&&!f){const C=Ee(u.left,0),I=Ee(u.right,0),O=Ee(u.top,0),k=Ee(u.bottom,0);h?E=v-2*(C!==0||I!==0?C+I:Ee(u.left,u.right)):b=d-2*(O!==0||k!==0?O+k:Ee(u.top,u.bottom))}await a({...i,availableWidth:E,availableHeight:b});const x=await r.getDimensions(o.floating);return v!==x.width||d!==x.height?{reset:{rects:!0}}:{}}}};function re(n){var i;return((i=n.ownerDocument)==null?void 0:i.defaultView)||window}function le(n){return re(n).getComputedStyle(n)}const fr=Math.min,Xe=Math.max,Et=Math.round;function Yr(n){const i=le(n);let t=parseFloat(i.width),e=parseFloat(i.height);const r=n.offsetWidth,o=n.offsetHeight,a=Et(t)!==r||Et(e)!==o;return a&&(t=r,e=o),{width:t,height:e,fallback:a}}function ye(n){return Zr(n)?(n.nodeName||"").toLowerCase():""}let ut;function Kr(){if(ut)return ut;const n=navigator.userAgentData;return n&&Array.isArray(n.brands)?(ut=n.brands.map(i=>i.brand+"/"+i.version).join(" "),ut):navigator.userAgent}function ue(n){return n instanceof re(n).HTMLElement}function ge(n){return n instanceof re(n).Element}function Zr(n){return n instanceof re(n).Node}function dr(n){return typeof ShadowRoot>"u"?!1:n instanceof re(n).ShadowRoot||n instanceof ShadowRoot}function Nt(n){const{overflow:i,overflowX:t,overflowY:e,display:r}=le(n);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!["inline","contents"].includes(r)}function Fo(n){return["table","td","th"].includes(ye(n))}function qt(n){const i=/firefox/i.test(Kr()),t=le(n),e=t.backdropFilter||t.WebkitBackdropFilter;return t.transform!=="none"||t.perspective!=="none"||!!e&&e!=="none"||i&&t.willChange==="filter"||i&&!!t.filter&&t.filter!=="none"||["transform","perspective"].some(r=>t.willChange.includes(r))||["paint","layout","strict","content"].some(r=>{const o=t.contain;return o!=null&&o.includes(r)})}function Jr(){return!/^((?!chrome|android).)*safari/i.test(Kr())}function Sn(n){return["html","body","#document"].includes(ye(n))}function Qr(n){return ge(n)?n:n.contextElement}const qr={x:1,y:1};function Ie(n){const i=Qr(n);if(!ue(i))return qr;const t=i.getBoundingClientRect(),{width:e,height:r,fallback:o}=Yr(i);let a=(o?Et(t.width):t.width)/e,s=(o?Et(t.height):t.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function qe(n,i,t,e){var r,o;i===void 0&&(i=!1),t===void 0&&(t=!1);const a=n.getBoundingClientRect(),s=Qr(n);let u=qr;i&&(e?ge(e)&&(u=Ie(e)):u=Ie(n));const c=s?re(s):window,f=!Jr()&&t;let h=(a.left+(f&&((r=c.visualViewport)==null?void 0:r.offsetLeft)||0))/u.x,v=(a.top+(f&&((o=c.visualViewport)==null?void 0:o.offsetTop)||0))/u.y,d=a.width/u.x,p=a.height/u.y;if(s){const g=re(s),m=e&&ge(e)?re(e):e;let _=g.frameElement;for(;_&&e&&m!==g;){const y=Ie(_),b=_.getBoundingClientRect(),E=getComputedStyle(_);b.x+=(_.clientLeft+parseFloat(E.paddingLeft))*y.x,b.y+=(_.clientTop+parseFloat(E.paddingTop))*y.y,h*=y.x,v*=y.y,d*=y.x,p*=y.y,h+=b.x,v+=b.y,_=re(_).frameElement}}return{width:d,height:p,top:v,right:h+d,bottom:v+p,left:h,x:h,y:v}}function me(n){return((Zr(n)?n.ownerDocument:n.document)||window.document).documentElement}function At(n){return ge(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function ei(n){return qe(me(n)).left+At(n).scrollLeft}function et(n){if(ye(n)==="html")return n;const i=n.assignedSlot||n.parentNode||dr(n)&&n.host||me(n);return dr(i)?i.host:i}function ti(n){const i=et(n);return Sn(i)?i.ownerDocument.body:ue(i)&&Nt(i)?i:ti(i)}function Pt(n,i){var t;i===void 0&&(i=[]);const e=ti(n),r=e===((t=n.ownerDocument)==null?void 0:t.body),o=re(e);return r?i.concat(o,o.visualViewport||[],Nt(e)?e:[]):i.concat(e,Pt(e))}function hr(n,i,t){return i==="viewport"?Ue(function(e,r){const o=re(e),a=me(e),s=o.visualViewport;let u=a.clientWidth,c=a.clientHeight,f=0,h=0;if(s){u=s.width,c=s.height;const v=Jr();(v||!v&&r==="fixed")&&(f=s.offsetLeft,h=s.offsetTop)}return{width:u,height:c,x:f,y:h}}(n,t)):ge(i)?Ue(function(e,r){const o=qe(e,!0,r==="fixed"),a=o.top+e.clientTop,s=o.left+e.clientLeft,u=ue(e)?Ie(e):{x:1,y:1};return{width:e.clientWidth*u.x,height:e.clientHeight*u.y,x:s*u.x,y:a*u.y}}(i,t)):Ue(function(e){const r=me(e),o=At(e),a=e.ownerDocument.body,s=Xe(r.scrollWidth,r.clientWidth,a.scrollWidth,a.clientWidth),u=Xe(r.scrollHeight,r.clientHeight,a.scrollHeight,a.clientHeight);let c=-o.scrollLeft+ei(e);const f=-o.scrollTop;return le(a).direction==="rtl"&&(c+=Xe(r.clientWidth,a.clientWidth)-s),{width:s,height:u,x:c,y:f}}(me(n)))}function vr(n){return ue(n)&&le(n).position!=="fixed"?n.offsetParent:null}function pr(n){const i=re(n);let t=vr(n);for(;t&&Fo(t)&&le(t).position==="static";)t=vr(t);return t&&(ye(t)==="html"||ye(t)==="body"&&le(t).position==="static"&&!qt(t))?i:t||function(e){let r=et(e);for(;ue(r)&&!Sn(r);){if(qt(r))return r;r=et(r)}return null}(n)||i}function $o(n,i,t){const e=ue(i),r=me(i),o=qe(n,!0,t==="fixed",i);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(e||!e&&t!=="fixed")if((ye(i)!=="body"||Nt(r))&&(a=At(i)),ue(i)){const u=qe(i,!0);s.x=u.x+i.clientLeft,s.y=u.y+i.clientTop}else r&&(s.x=ei(r));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}const Ho={getClippingRect:function(n){let{element:i,boundary:t,rootBoundary:e,strategy:r}=n;const o=t==="clippingAncestors"?function(c,f){const h=f.get(c);if(h)return h;let v=Pt(c).filter(m=>ge(m)&&ye(m)!=="body"),d=null;const p=le(c).position==="fixed";let g=p?et(c):c;for(;ge(g)&&!Sn(g);){const m=le(g),_=qt(g);(p?_||d:_||m.position!=="static"||!d||!["absolute","fixed"].includes(d.position))?d=m:v=v.filter(y=>y!==g),g=et(g)}return f.set(c,v),v}(i,this._c):[].concat(t),a=[...o,e],s=a[0],u=a.reduce((c,f)=>{const h=hr(i,f,r);return c.top=Xe(h.top,c.top),c.right=fr(h.right,c.right),c.bottom=fr(h.bottom,c.bottom),c.left=Xe(h.left,c.left),c},hr(i,s,r));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(n){let{rect:i,offsetParent:t,strategy:e}=n;const r=ue(t),o=me(t);if(t===o)return i;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const u={x:0,y:0};if((r||!r&&e!=="fixed")&&((ye(t)!=="body"||Nt(o))&&(a=At(t)),ue(t))){const c=qe(t);s=Ie(t),u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}return{width:i.width*s.x,height:i.height*s.y,x:i.x*s.x-a.scrollLeft*s.x+u.x,y:i.y*s.y-a.scrollTop*s.y+u.y}},isElement:ge,getDimensions:function(n){return ue(n)?Yr(n):n.getBoundingClientRect()},getOffsetParent:pr,getDocumentElement:me,getScale:Ie,async getElementRects(n){let{reference:i,floating:t,strategy:e}=n;const r=this.getOffsetParent||pr,o=this.getDimensions;return{reference:$o(i,await r(t),e),floating:{x:0,y:0,...await o(t)}}},getClientRects:n=>Array.from(n.getClientRects()),isRTL:n=>le(n).direction==="rtl"},Go=(n,i,t)=>{const e=new Map,r={platform:Ho,...t},o={...r.platform,_c:e};return No(n,i,{...r,platform:o})};function ni(n,i){for(const t in i)Object.prototype.hasOwnProperty.call(i,t)&&(typeof i[t]=="object"&&n[t]?ni(n[t],i[t]):n[t]=i[t])}const he={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:n=>[...n,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function tt(n,i){let t=he.themes[n]||{},e;do e=t[i],typeof e>"u"?t.$extend?t=he.themes[t.$extend]||{}:(t=null,e=he[i]):t=null;while(t);return e}function Wo(n){const i=[n];let t=he.themes[n]||{};do t.$extend&&!t.$resetCss?(i.push(t.$extend),t=he.themes[t.$extend]||{}):t=null;while(t);return i.map(e=>`v-popper--theme-${e}`)}function gr(n){const i=[n];let t=he.themes[n]||{};do t.$extend?(i.push(t.$extend),t=he.themes[t.$extend]||{}):t=null;while(t);return i}let xe=!1;if(typeof window<"u"){xe=!1;try{const n=Object.defineProperty({},"passive",{get(){xe=!0}});window.addEventListener("test",null,n)}catch{}}let ri=!1;typeof window<"u"&&typeof navigator<"u"&&(ri=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const ii=["auto","top","bottom","left","right"].reduce((n,i)=>n.concat([i,`${i}-start`,`${i}-end`]),[]),mr={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},_r={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function yr(n,i){const t=n.indexOf(i);t!==-1&&n.splice(t,1)}function Vt(){return new Promise(n=>requestAnimationFrame(()=>{requestAnimationFrame(n)}))}const oe=[];let be=null;const br={};function Er(n){let i=br[n];return i||(i=br[n]=[]),i}let en=function(){};typeof window<"u"&&(en=window.Element);function j(n){return function(i){return tt(i.theme,n)}}const jt="__floating-vue__popper",oi=()=>l.defineComponent({name:"VPopper",provide(){return{[jt]:{parentPopper:this}}},inject:{[jt]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:j("disabled")},positioningDisabled:{type:Boolean,default:j("positioningDisabled")},placement:{type:String,default:j("placement"),validator:n=>ii.includes(n)},delay:{type:[String,Number,Object],default:j("delay")},distance:{type:[Number,String],default:j("distance")},skidding:{type:[Number,String],default:j("skidding")},triggers:{type:Array,default:j("triggers")},showTriggers:{type:[Array,Function],default:j("showTriggers")},hideTriggers:{type:[Array,Function],default:j("hideTriggers")},popperTriggers:{type:Array,default:j("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:j("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:j("popperHideTriggers")},container:{type:[String,Object,en,Boolean],default:j("container")},boundary:{type:[String,en],default:j("boundary")},strategy:{type:String,validator:n=>["absolute","fixed"].includes(n),default:j("strategy")},autoHide:{type:[Boolean,Function],default:j("autoHide")},handleResize:{type:Boolean,default:j("handleResize")},instantMove:{type:Boolean,default:j("instantMove")},eagerMount:{type:Boolean,default:j("eagerMount")},popperClass:{type:[String,Array,Object],default:j("popperClass")},computeTransformOrigin:{type:Boolean,default:j("computeTransformOrigin")},autoMinSize:{type:Boolean,default:j("autoMinSize")},autoSize:{type:[Boolean,String],default:j("autoSize")},autoMaxSize:{type:Boolean,default:j("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:j("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:j("preventOverflow")},overflowPadding:{type:[Number,String],default:j("overflowPadding")},arrowPadding:{type:[Number,String],default:j("arrowPadding")},arrowOverflow:{type:Boolean,default:j("arrowOverflow")},flip:{type:Boolean,default:j("flip")},shift:{type:Boolean,default:j("shift")},shiftCrossAxis:{type:Boolean,default:j("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:j("noAutoFocus")},disposeTimeout:{type:Number,default:j("disposeTimeout")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var n;return(n=this[jt])==null?void 0:n.parentPopper},hasPopperShowTriggerHover(){var n,i;return((n=this.popperTriggers)==null?void 0:n.includes("hover"))||((i=this.popperShowTriggers)==null?void 0:i.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(n){n?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},...["triggers","positioningDisabled"].reduce((n,i)=>(n[i]="$_refreshListeners",n),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((n,i)=>(n[i]="$_computePosition",n),{})},created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(n=>n.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:n=null,skipDelay:i=!1,force:t=!1}={}){var e,r;(e=this.parentPopper)!=null&&e.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(t||!this.disabled)&&(((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(n,i),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:n=null,skipDelay:i=!1}={}){var t;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:i}),this.parentPopper.lockedChild=null)},1e3));return}((t=this.parentPopper)==null?void 0:t.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(n,i),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var n;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((n=this.referenceNode)==null?void 0:n.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(i=>i.nodeType===i.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.$_isDisposed||this.positioningDisabled)return;const n={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&n.middleware.push(Lo({mainAxis:this.distance,crossAxis:this.skidding}));const i=this.placement.startsWith("auto");if(i?n.middleware.push(Mo({alignment:this.placement.split("-")[1]??""})):n.placement=this.placement,this.preventOverflow&&(this.shift&&n.middleware.push(Vo({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!i&&this.flip&&n.middleware.push(zo({padding:this.overflowPadding,boundary:this.boundary}))),n.middleware.push(Ao({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&n.middleware.push({name:"arrowOverflow",fn:({placement:e,rects:r,middlewareData:o})=>{let a;const{centerOffset:s}=o.arrow;return e.startsWith("top")||e.startsWith("bottom")?a=Math.abs(s)>r.reference.width/2:a=Math.abs(s)>r.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const e=this.autoSize?this.autoSize:this.autoMinSize?"min":null;n.middleware.push({name:"autoSize",fn:({rects:r,placement:o,middlewareData:a})=>{var s;if((s=a.autoSize)!=null&&s.skip)return{};let u,c;return o.startsWith("top")||o.startsWith("bottom")?u=r.reference.width:c=r.reference.height,this.$_innerNode.style[e==="min"?"minWidth":e==="max"?"maxWidth":"width"]=u!=null?`${u}px`:null,this.$_innerNode.style[e==="min"?"minHeight":e==="max"?"maxHeight":"height"]=c!=null?`${c}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,n.middleware.push(jo({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:r})=>{this.$_innerNode.style.maxWidth=e!=null?`${e}px`:null,this.$_innerNode.style.maxHeight=r!=null?`${r}px`:null}})));const t=await Go(this.$_referenceNode,this.$_popperNode,n);Object.assign(this.result,{x:t.x,y:t.y,placement:t.placement,strategy:t.strategy,arrow:{...t.middlewareData.arrow,...t.middlewareData.arrowOverflow}})},$_scheduleShow(n=null,i=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),be&&this.instantMove&&be.instantMove&&be!==this.parentPopper){be.$_applyHide(!0),this.$_applyShow(!0);return}i?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(n=null,i=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(be=this),i?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(n){const i=this.delay;return parseInt(i&&i[n]||i||0)},async $_applyShow(n=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=n,!this.isShown&&(this.$_ensureTeleport(),await Vt(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Pt(this.$_referenceNode),...Pt(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const i=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(".v-popper__wrapper"),e=t.parentNode.getBoundingClientRect(),r=i.x+i.width/2-(e.left+t.offsetLeft),o=i.y+i.height/2-(e.top+t.offsetTop);this.result.transformOrigin=`${r}px ${o}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const n=this.showGroup;if(n){let i;for(let t=0;t<oe.length;t++)i=oe[t],i.showGroup!==n&&(i.hide(),i.$emit("close-group"))}oe.push(this),document.body.classList.add("v-popper--some-open");for(const i of gr(this.theme))Er(i).push(this),document.body.classList.add(`v-popper--some-open--${i}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Vt(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(n=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=n,yr(oe,this),oe.length===0&&document.body.classList.remove("v-popper--some-open");for(const t of gr(this.theme)){const e=Er(t);yr(e,this),e.length===0&&document.body.classList.remove(`v-popper--some-open--${t}`)}be===this&&(be=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const i=this.disposeTimeout;i!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},i)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Vt(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let n=this.container;if(typeof n=="string"?n=window.document.querySelector(n):n===!1&&(n=this.$_targetNodes[0].parentNode),!n)throw new Error("No container for popover: "+this.container);n.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const n=t=>{this.isShown&&!this.$_hideInProgress||(t.usedByTooltip=!0,!this.$_preventShow&&this.show({event:t}))};this.$_registerTriggerListeners(this.$_targetNodes,mr,this.triggers,this.showTriggers,n),this.$_registerTriggerListeners([this.$_popperNode],mr,this.popperTriggers,this.popperShowTriggers,n);const i=t=>{t.usedByTooltip||this.hide({event:t})};this.$_registerTriggerListeners(this.$_targetNodes,_r,this.triggers,this.hideTriggers,i),this.$_registerTriggerListeners([this.$_popperNode],_r,this.popperTriggers,this.popperHideTriggers,i)},$_registerEventListeners(n,i,t){this.$_events.push({targetNodes:n,eventType:i,handler:t}),n.forEach(e=>e.addEventListener(i,t,xe?{passive:!0}:void 0))},$_registerTriggerListeners(n,i,t,e,r){let o=t;e!=null&&(o=typeof e=="function"?e(o):e),o.forEach(a=>{const s=i[a];s&&this.$_registerEventListeners(n,s,r)})},$_removeEventListeners(n){const i=[];this.$_events.forEach(t=>{const{targetNodes:e,eventType:r,handler:o}=t;!n||n===r?e.forEach(a=>a.removeEventListener(r,o)):i.push(t)}),this.$_events=i},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(n,i=!1){this.$_showFrameLocked||(this.hide({event:n}),n.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),i&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(n,i){for(const t of this.$_targetNodes){const e=t.getAttribute(n);e&&(t.removeAttribute(n),t.setAttribute(i,e))}},$_applyAttrsToTarget(n){for(const i of this.$_targetNodes)for(const t in n){const e=n[t];e==null?i.removeAttribute(t):i.setAttribute(t,e)}},$_updateParentShownChildren(n){let i=this.parentPopper;for(;i;)n?i.shownChildren.add(this.randomId):(i.shownChildren.delete(this.randomId),i.$_pendingHide&&i.hide()),i=i.parentPopper},$_isAimingPopper(){const n=this.$_referenceNode.getBoundingClientRect();if(Ye>=n.left&&Ye<=n.right&&Ke>=n.top&&Ke<=n.bottom){const i=this.$_popperNode.getBoundingClientRect(),t=Ye-ve,e=Ke-pe,r=i.left+i.width/2-ve+(i.top+i.height/2)-pe+i.width+i.height,o=ve+t*r,a=pe+e*r;return ct(ve,pe,o,a,i.left,i.top,i.left,i.bottom)||ct(ve,pe,o,a,i.left,i.top,i.right,i.top)||ct(ve,pe,o,a,i.right,i.top,i.right,i.bottom)||ct(ve,pe,o,a,i.left,i.bottom,i.right,i.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(ri?(document.addEventListener("touchstart",Pr,xe?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",Xo,xe?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Pr,!0),window.addEventListener("click",Uo,!0)),window.addEventListener("resize",Zo));function Pr(n){for(let i=0;i<oe.length;i++){const t=oe[i];try{const e=t.popperNode();t.$_mouseDownContains=e.contains(n.target)}catch{}}}function Uo(n){ai(n)}function Xo(n){ai(n,!0)}function ai(n,i=!1){const t={};for(let e=oe.length-1;e>=0;e--){const r=oe[e];try{const o=r.$_containsGlobalTarget=Yo(r,n);r.$_pendingHide=!1,requestAnimationFrame(()=>{if(r.$_pendingHide=!1,!t[r.randomId]&&xr(r,o,n)){if(r.$_handleGlobalClose(n,i),!n.closeAllPopover&&n.closePopover&&o){let s=r.parentPopper;for(;s;)t[s.randomId]=!0,s=s.parentPopper;return}let a=r.parentPopper;for(;a&&xr(a,a.$_containsGlobalTarget,n);)a.$_handleGlobalClose(n,i),a=a.parentPopper}})}catch{}}}function Yo(n,i){const t=n.popperNode();return n.$_mouseDownContains||t.contains(i.target)}function xr(n,i,t){return t.closeAllPopover||t.closePopover&&i||Ko(n,t)&&!i}function Ko(n,i){if(typeof n.autoHide=="function"){const t=n.autoHide(i);return n.lastAutoHide=t,t}return n.autoHide}function Zo(n){for(let i=0;i<oe.length;i++)oe[i].$_computePosition(n)}let ve=0,pe=0,Ye=0,Ke=0;typeof window<"u"&&window.addEventListener("mousemove",n=>{ve=Ye,pe=Ke,Ye=n.clientX,Ke=n.clientY},xe?{passive:!0}:void 0);function ct(n,i,t,e,r,o,a,s){const u=((a-r)*(i-o)-(s-o)*(n-r))/((s-o)*(t-n)-(a-r)*(e-i)),c=((t-n)*(i-o)-(e-i)*(n-r))/((s-o)*(t-n)-(a-r)*(e-i));return u>=0&&u<=1&&c>=0&&c<=1}const Jo={extends:oi()},Dt=(n,i)=>{const t=n.__vccOpts||n;for(const[e,r]of i)t[e]=r;return t};function Qo(n,i,t,e,r,o){return l.openBlock(),l.createElementBlock("div",{ref:"reference",class:l.normalizeClass(["v-popper",{"v-popper--shown":n.slotData.isShown}])},[l.renderSlot(n.$slots,"default",l.normalizeProps(l.guardReactiveProps(n.slotData)))],2)}const qo=Dt(Jo,[["render",Qo]]);function ea(){var n=window.navigator.userAgent,i=n.indexOf("MSIE ");if(i>0)return parseInt(n.substring(i+5,n.indexOf(".",i)),10);var t=n.indexOf("Trident/");if(t>0){var e=n.indexOf("rv:");return parseInt(n.substring(e+3,n.indexOf(".",e)),10)}var r=n.indexOf("Edge/");return r>0?parseInt(n.substring(r+5,n.indexOf(".",r)),10):-1}let ht;function tn(){tn.init||(tn.init=!0,ht=ea()!==-1)}var Mt={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){tn(),l.nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const n=document.createElement("object");this._resizeObject=n,n.setAttribute("aria-hidden","true"),n.setAttribute("tabindex",-1),n.onload=this.addResizeHandlers,n.type="text/html",ht&&this.$el.appendChild(n),n.data="about:blank",ht||this.$el.appendChild(n)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!ht&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const ta=l.withScopeId();l.pushScopeId("data-v-b329ee4c");const na={class:"resize-observer",tabindex:"-1"};l.popScopeId();const ra=ta((n,i,t,e,r,o)=>(l.openBlock(),l.createBlock("div",na)));Mt.render=ra;Mt.__scopeId="data-v-b329ee4c";Mt.__file="src/components/ResizeObserver.vue";const si=(n="theme")=>({computed:{themeClass(){return Wo(this[n])}}}),ia=l.defineComponent({name:"VPopperContent",components:{ResizeObserver:Mt},mixins:[si()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(n){return n!=null&&!isNaN(n)?`${n}px`:null}}}),oa=["id","aria-hidden","tabindex","data-popper-placement"],aa={ref:"inner",class:"v-popper__inner"},sa=l.createBaseVNode("div",{class:"v-popper__arrow-outer"},null,-1),la=l.createBaseVNode("div",{class:"v-popper__arrow-inner"},null,-1),ua=[sa,la];function ca(n,i,t,e,r,o){const a=l.resolveComponent("ResizeObserver");return l.openBlock(),l.createElementBlock("div",{id:n.popperId,ref:"popover",class:l.normalizeClass(["v-popper__popper",[n.themeClass,n.classes.popperClass,{"v-popper__popper--shown":n.shown,"v-popper__popper--hidden":!n.shown,"v-popper__popper--show-from":n.classes.showFrom,"v-popper__popper--show-to":n.classes.showTo,"v-popper__popper--hide-from":n.classes.hideFrom,"v-popper__popper--hide-to":n.classes.hideTo,"v-popper__popper--skip-transition":n.skipTransition,"v-popper__popper--arrow-overflow":n.result&&n.result.arrow.overflow,"v-popper__popper--no-positioning":!n.result}]]),style:l.normalizeStyle(n.result?{position:n.result.strategy,transform:`translate3d(${Math.round(n.result.x)}px,${Math.round(n.result.y)}px,0)`}:void 0),"aria-hidden":n.shown?"false":"true",tabindex:n.autoHide?0:void 0,"data-popper-placement":n.result?n.result.placement:void 0,onKeyup:i[2]||(i[2]=l.withKeys(s=>n.autoHide&&n.$emit("hide"),["esc"]))},[l.createBaseVNode("div",{class:"v-popper__backdrop",onClick:i[0]||(i[0]=s=>n.autoHide&&n.$emit("hide"))}),l.createBaseVNode("div",{class:"v-popper__wrapper",style:l.normalizeStyle(n.result?{transformOrigin:n.result.transformOrigin}:void 0)},[l.createBaseVNode("div",aa,[n.mounted?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createBaseVNode("div",null,[l.renderSlot(n.$slots,"default")]),n.handleResize?(l.openBlock(),l.createBlock(a,{key:0,onNotify:i[1]||(i[1]=s=>n.$emit("resize",s))})):l.createCommentVNode("",!0)],64)):l.createCommentVNode("",!0)],512),l.createBaseVNode("div",{ref:"arrow",class:"v-popper__arrow-container",style:l.normalizeStyle(n.result?{left:n.toPx(n.result.arrow.x),top:n.toPx(n.result.arrow.y)}:void 0)},ua,4)],4)],46,oa)}const li=Dt(ia,[["render",ca]]),ui={methods:{show(...n){return this.$refs.popper.show(...n)},hide(...n){return this.$refs.popper.hide(...n)},dispose(...n){return this.$refs.popper.dispose(...n)},onResize(...n){return this.$refs.popper.onResize(...n)}}},fa=l.defineComponent({name:"VPopperWrapper",components:{Popper:qo,PopperContent:li},mixins:[ui,si("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(n=>n!==this.$refs.popperContent.$el)}}});function da(n,i,t,e,r,o){const a=l.resolveComponent("PopperContent"),s=l.resolveComponent("Popper");return l.openBlock(),l.createBlock(s,{ref:"popper",theme:n.finalTheme,"target-nodes":n.getTargetNodes,"popper-node":()=>n.$refs.popperContent.$el,class:l.normalizeClass([n.themeClass])},{default:l.withCtx(({popperId:u,isShown:c,shouldMountContent:f,skipTransition:h,autoHide:v,show:d,hide:p,handleResize:g,onResize:m,classes:_,result:y})=>[l.renderSlot(n.$slots,"default",{shown:c,show:d,hide:p}),l.createVNode(a,{ref:"popperContent","popper-id":u,theme:n.finalTheme,shown:c,mounted:f,"skip-transition":h,"auto-hide":v,"handle-resize":g,classes:_,result:y,onHide:p,onResize:m},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"popper",{shown:c,hide:p})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}const Cn=Dt(fa,[["render",da]]),ha={...Cn,name:"VDropdown",vPopperTheme:"dropdown"},va={...Cn,name:"VMenu",vPopperTheme:"menu"},pa={...Cn,name:"VTooltip",vPopperTheme:"tooltip"},ga=l.defineComponent({name:"VTooltipDirective",components:{Popper:oi(),PopperContent:li},mixins:[ui],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:n=>tt(n.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:n=>tt(n.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(n){if(typeof this.content=="function"&&this.$_isShown&&(n||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const i=++this.$_fetchId,t=this.content(this);t.then?t.then(e=>this.onResult(i,e)):this.onResult(i,t)}},onResult(n,i){n===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=i)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),ma=["innerHTML"],_a=["textContent"];function ya(n,i,t,e,r,o){const a=l.resolveComponent("PopperContent"),s=l.resolveComponent("Popper");return l.openBlock(),l.createBlock(s,l.mergeProps({ref:"popper"},n.$attrs,{theme:n.theme,"target-nodes":n.targetNodes,"popper-node":()=>n.$refs.popperContent.$el,onApplyShow:n.onShow,onApplyHide:n.onHide}),{default:l.withCtx(({popperId:u,isShown:c,shouldMountContent:f,skipTransition:h,autoHide:v,hide:d,handleResize:p,onResize:g,classes:m,result:_})=>[l.createVNode(a,{ref:"popperContent",class:l.normalizeClass({"v-popper--tooltip-loading":n.loading}),"popper-id":u,theme:n.theme,shown:c,mounted:f,"skip-transition":h,"auto-hide":v,"handle-resize":p,classes:m,result:_,onHide:d,onResize:g},{default:l.withCtx(()=>[n.html?(l.openBlock(),l.createElementBlock("div",{key:0,innerHTML:n.finalContent},null,8,ma)):(l.openBlock(),l.createElementBlock("div",{key:1,textContent:l.toDisplayString(n.finalContent)},null,8,_a))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const ba=Dt(ga,[["render",ya]]),ci="v-popper--has-tooltip";function Ea(n,i){let t=n.placement;if(!t&&i)for(const e of ii)i[e]&&(t=e);return t||(t=tt(n.theme||"tooltip","placement")),t}function fi(n,i,t){let e;const r=typeof i;return r==="string"?e={content:i}:i&&r==="object"?e=i:e={content:!1},e.placement=Ea(e,t),e.targetNodes=()=>[n],e.referenceNode=()=>n,e}let Ft,nt,Pa=0;function xa(){if(Ft)return;nt=l.ref([]),Ft=l.createApp({name:"VTooltipDirectiveApp",setup(){return{directives:nt}},render(){return this.directives.map(i=>l.h(ba,{...i.options,shown:i.shown||i.options.shown,key:i.id}))},devtools:{hide:!0}});const n=document.createElement("div");document.body.appendChild(n),Ft.mount(n)}function Oa(n,i,t){xa();const e=l.ref(fi(n,i,t)),r=l.ref(!1),o={id:Pa++,options:e,shown:r};return nt.value.push(o),n.classList&&n.classList.add(ci),n.$_popper={options:e,item:o,show(){r.value=!0},hide(){r.value=!1}}}function di(n){if(n.$_popper){const i=nt.value.indexOf(n.$_popper.item);i!==-1&&nt.value.splice(i,1),delete n.$_popper,delete n.$_popperOldShown,delete n.$_popperMountTarget}n.classList&&n.classList.remove(ci)}function Or(n,{value:i,modifiers:t}){const e=fi(n,i,t);if(!e.content||tt(e.theme||"tooltip","disabled"))di(n);else{let r;n.$_popper?(r=n.$_popper,r.options.value=e):r=Oa(n,i,t),typeof i.shown<"u"&&i.shown!==n.$_popperOldShown&&(n.$_popperOldShown=i.shown,i.shown?r.show():r.hide())}}const wa={beforeMount:Or,updated:Or,beforeUnmount(n){di(n)}};function wr(n){n.addEventListener("click",hi),n.addEventListener("touchstart",vi,xe?{passive:!0}:!1)}function Tr(n){n.removeEventListener("click",hi),n.removeEventListener("touchstart",vi),n.removeEventListener("touchend",pi),n.removeEventListener("touchcancel",gi)}function hi(n){const i=n.currentTarget;n.closePopover=!i.$_vclosepopover_touch,n.closeAllPopover=i.$_closePopoverModifiers&&!!i.$_closePopoverModifiers.all}function vi(n){if(n.changedTouches.length===1){const i=n.currentTarget;i.$_vclosepopover_touch=!0;const t=n.changedTouches[0];i.$_vclosepopover_touchPoint=t,i.addEventListener("touchend",pi),i.addEventListener("touchcancel",gi)}}function pi(n){const i=n.currentTarget;if(i.$_vclosepopover_touch=!1,n.changedTouches.length===1){const t=n.changedTouches[0],e=i.$_vclosepopover_touchPoint;n.closePopover=Math.abs(t.screenY-e.screenY)<20&&Math.abs(t.screenX-e.screenX)<20,n.closeAllPopover=i.$_closePopoverModifiers&&!!i.$_closePopoverModifiers.all}}function gi(n){const i=n.currentTarget;i.$_vclosepopover_touch=!1}const Ta={beforeMount(n,{value:i,modifiers:t}){n.$_closePopoverModifiers=t,(typeof i>"u"||i)&&wr(n)},updated(n,{value:i,oldValue:t,modifiers:e}){n.$_closePopoverModifiers=e,i!==t&&(typeof i>"u"||i?wr(n):Tr(n))},beforeUnmount(n){Tr(n)}};function Sa(n,i={}){n.$_vTooltipInstalled||(n.$_vTooltipInstalled=!0,ni(he,i),n.directive("tooltip",wa),n.directive("close-popper",Ta),n.component("VTooltip",pa),n.component("VDropdown",ha),n.component("VMenu",va))}const Ca={version:"2.0.0-beta.24",install:Sa,options:he};var mi={exports:{}};const ka=On.getAugmentedNamespace(l.vue_esmBundler);(function(n,i){(function(e,r){n.exports=r(ka)})(typeof self<"u"?self:On.commonjsGlobal,function(t){return function(e){var r={};function o(a){if(r[a])return r[a].exports;var s=r[a]={i:a,l:!1,exports:{}};return e[a].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=e,o.c=r,o.d=function(a,s,u){o.o(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:u})},o.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},o.t=function(a,s){if(s&1&&(a=o(a)),s&8||s&4&&typeof a=="object"&&a&&a.__esModule)return a;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:a}),s&2&&typeof a!="string")for(var c in a)o.d(u,c,function(f){return a[f]}.bind(null,c));return u},o.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return o.d(s,"a",s),s},o.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},o.p="",o(o.s="fb15")}({"00ee":function(e,r,o){var a=o("b622"),s=a("toStringTag"),u={};u[s]="z",e.exports=String(u)==="[object z]"},"0366":function(e,r,o){var a=o("1c0b");e.exports=function(s,u,c){if(a(s),u===void 0)return s;switch(c){case 0:return function(){return s.call(u)};case 1:return function(f){return s.call(u,f)};case 2:return function(f,h){return s.call(u,f,h)};case 3:return function(f,h,v){return s.call(u,f,h,v)}}return function(){return s.apply(u,arguments)}}},"06cf":function(e,r,o){var a=o("83ab"),s=o("d1e7"),u=o("5c6c"),c=o("fc6a"),f=o("c04e"),h=o("5135"),v=o("0cfb"),d=Object.getOwnPropertyDescriptor;r.f=a?d:function(g,m){if(g=c(g),m=f(m,!0),v)try{return d(g,m)}catch{}if(h(g,m))return u(!s.f.call(g,m),g[m])}},"0cfb":function(e,r,o){var a=o("83ab"),s=o("d039"),u=o("cc12");e.exports=!a&&!s(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"1be4":function(e,r,o){var a=o("d066");e.exports=a("document","documentElement")},"1c0b":function(e,r){e.exports=function(o){if(typeof o!="function")throw TypeError(String(o)+" is not a function");return o}},"1d80":function(e,r){e.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},"1dde":function(e,r,o){var a=o("d039"),s=o("b622"),u=o("2d00"),c=s("species");e.exports=function(f){return u>=51||!a(function(){var h=[],v=h.constructor={};return v[c]=function(){return{foo:1}},h[f](Boolean).foo!==1})}},"23cb":function(e,r,o){var a=o("a691"),s=Math.max,u=Math.min;e.exports=function(c,f){var h=a(c);return h<0?s(h+f,0):u(h,f)}},"23e7":function(e,r,o){var a=o("da84"),s=o("06cf").f,u=o("9112"),c=o("6eeb"),f=o("ce4e"),h=o("e893"),v=o("94ca");e.exports=function(d,p){var g=d.target,m=d.global,_=d.stat,y,b,E,x,C,I;if(m?b=a:_?b=a[g]||f(g,{}):b=(a[g]||{}).prototype,b)for(E in p){if(C=p[E],d.noTargetGet?(I=s(b,E),x=I&&I.value):x=b[E],y=v(m?E:g+(_?".":"#")+E,d.forced),!y&&x!==void 0){if(typeof C==typeof x)continue;h(C,x)}(d.sham||x&&x.sham)&&u(C,"sham",!0),c(b,E,C,d)}}},"241c":function(e,r,o){var a=o("ca84"),s=o("7839"),u=s.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(f){return a(f,u)}},"2d00":function(e,r,o){var a=o("da84"),s=o("342f"),u=a.process,c=u&&u.versions,f=c&&c.v8,h,v;f?(h=f.split("."),v=h[0]+h[1]):s&&(h=s.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=s.match(/Chrome\/(\d+)/),h&&(v=h[1]))),e.exports=v&&+v},"342f":function(e,r,o){var a=o("d066");e.exports=a("navigator","userAgent")||""},"37e8":function(e,r,o){var a=o("83ab"),s=o("9bf2"),u=o("825a"),c=o("df75");e.exports=a?Object.defineProperties:function(h,v){u(h);for(var d=c(v),p=d.length,g=0,m;p>g;)s.f(h,m=d[g++],v[m]);return h}},"3bbe":function(e,r,o){var a=o("861d");e.exports=function(s){if(!a(s)&&s!==null)throw TypeError("Can't set "+String(s)+" as a prototype");return s}},"428f":function(e,r,o){var a=o("da84");e.exports=a},"44ad":function(e,r,o){var a=o("d039"),s=o("c6b6"),u="".split;e.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return s(c)=="String"?u.call(c,""):Object(c)}:Object},4930:function(e,r,o){var a=o("d039");e.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(e,r,o){var a=o("fc6a"),s=o("50c4"),u=o("23cb"),c=function(f){return function(h,v,d){var p=a(h),g=s(p.length),m=u(d,g),_;if(f&&v!=v){for(;g>m;)if(_=p[m++],_!=_)return!0}else for(;g>m;m++)if((f||m in p)&&p[m]===v)return f||m||0;return!f&&-1}};e.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(e,r,o){var a=o("23e7"),s=o("b727").filter,u=o("1dde"),c=o("ae40"),f=u("filter"),h=c("filter");a({target:"Array",proto:!0,forced:!f||!h},{filter:function(d){return s(this,d,arguments.length>1?arguments[1]:void 0)}})},"50c4":function(e,r,o){var a=o("a691"),s=Math.min;e.exports=function(u){return u>0?s(a(u),9007199254740991):0}},5135:function(e,r){var o={}.hasOwnProperty;e.exports=function(a,s){return o.call(a,s)}},5692:function(e,r,o){var a=o("c430"),s=o("c6cd");(e.exports=function(u,c){return s[u]||(s[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,r,o){var a=o("d066"),s=o("241c"),u=o("7418"),c=o("825a");e.exports=a("Reflect","ownKeys")||function(h){var v=s.f(c(h)),d=u.f;return d?v.concat(d(h)):v}},5899:function(e,r){e.exports=`
|
|
2
|
-
\v\f\r \u2028\u2029\uFEFF`},"58a8":function(e,r,o){var a=o("1d80"),s=o("5899"),u="["+s+"]",c=RegExp("^"+u+u+"*"),f=RegExp(u+u+"*$"),h=function(v){return function(d){var p=String(a(d));return v&1&&(p=p.replace(c,"")),v&2&&(p=p.replace(f,"")),p}};e.exports={start:h(1),end:h(2),trim:h(3)}},"5c6c":function(e,r){e.exports=function(o,a){return{enumerable:!(o&1),configurable:!(o&2),writable:!(o&4),value:a}}},"652c":function(e,r,o){},"65f0":function(e,r,o){var a=o("861d"),s=o("e8b5"),u=o("b622"),c=u("species");e.exports=function(f,h){var v;return s(f)&&(v=f.constructor,typeof v=="function"&&(v===Array||s(v.prototype))?v=void 0:a(v)&&(v=v[c],v===null&&(v=void 0))),new(v===void 0?Array:v)(h===0?0:h)}},"69f3":function(e,r,o){var a=o("7f9a"),s=o("da84"),u=o("861d"),c=o("9112"),f=o("5135"),h=o("f772"),v=o("d012"),d=s.WeakMap,p,g,m,_=function(O){return m(O)?g(O):p(O,{})},y=function(O){return function(k){var T;if(!u(k)||(T=g(k)).type!==O)throw TypeError("Incompatible receiver, "+O+" required");return T}};if(a){var b=new d,E=b.get,x=b.has,C=b.set;p=function(O,k){return C.call(b,O,k),k},g=function(O){return E.call(b,O)||{}},m=function(O){return x.call(b,O)}}else{var I=h("state");v[I]=!0,p=function(O,k){return c(O,I,k),k},g=function(O){return f(O,I)?O[I]:{}},m=function(O){return f(O,I)}}e.exports={set:p,get:g,has:m,enforce:_,getterFor:y}},"6b0d":function(e,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=(a,s)=>{const u=a.__vccOpts||a;for(const[c,f]of s)u[c]=f;return u}},"6eeb":function(e,r,o){var a=o("da84"),s=o("9112"),u=o("5135"),c=o("ce4e"),f=o("8925"),h=o("69f3"),v=h.get,d=h.enforce,p=String(String).split("String");(e.exports=function(g,m,_,y){var b=y?!!y.unsafe:!1,E=y?!!y.enumerable:!1,x=y?!!y.noTargetGet:!1;if(typeof _=="function"&&(typeof m=="string"&&!u(_,"name")&&s(_,"name",m),d(_).source=p.join(typeof m=="string"?m:"")),g===a){E?g[m]=_:c(m,_);return}else b?!x&&g[m]&&(E=!0):delete g[m];E?g[m]=_:s(g,m,_)})(Function.prototype,"toString",function(){return typeof this=="function"&&v(this).source||f(this)})},7156:function(e,r,o){var a=o("861d"),s=o("d2bb");e.exports=function(u,c,f){var h,v;return s&&typeof(h=c.constructor)=="function"&&h!==f&&a(v=h.prototype)&&v!==f.prototype&&s(u,v),u}},7418:function(e,r){r.f=Object.getOwnPropertySymbols},7839:function(e,r){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7ae1":function(e,r,o){o("652c")},"7b0b":function(e,r,o){var a=o("1d80");e.exports=function(s){return Object(a(s))}},"7c73":function(e,r,o){var a=o("825a"),s=o("37e8"),u=o("7839"),c=o("d012"),f=o("1be4"),h=o("cc12"),v=o("f772"),d=">",p="<",g="prototype",m="script",_=v("IE_PROTO"),y=function(){},b=function(O){return p+m+d+O+p+"/"+m+d},E=function(O){O.write(b("")),O.close();var k=O.parentWindow.Object;return O=null,k},x=function(){var O=h("iframe"),k="java"+m+":",T;return O.style.display="none",f.appendChild(O),O.src=String(k),T=O.contentWindow.document,T.open(),T.write(b("document.F=Object")),T.close(),T.F},C,I=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch{}I=C?E(C):x();for(var O=u.length;O--;)delete I[g][u[O]];return I()};c[_]=!0,e.exports=Object.create||function(k,T){var D;return k!==null?(y[g]=a(k),D=new y,y[g]=null,D[_]=k):D=I(),T===void 0?D:s(D,T)}},"7f9a":function(e,r,o){var a=o("da84"),s=o("8925"),u=a.WeakMap;e.exports=typeof u=="function"&&/native code/.test(s(u))},"825a":function(e,r,o){var a=o("861d");e.exports=function(s){if(!a(s))throw TypeError(String(s)+" is not an object");return s}},"83ab":function(e,r,o){var a=o("d039");e.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(e,r,o){var a=o("c04e"),s=o("9bf2"),u=o("5c6c");e.exports=function(c,f,h){var v=a(f);v in c?s.f(c,v,u(0,h)):c[v]=h}},"861d":function(e,r){e.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},8875:function(e,r,o){var a,s,u;(function(c,f){s=[],a=f,u=typeof a=="function"?a.apply(r,s):a,u!==void 0&&(e.exports=u)})(typeof self<"u"?self:this,function(){function c(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(C){var h=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,v=/@([^@]*):(\d+):(\d+)\s*$/ig,d=h.exec(C.stack)||v.exec(C.stack),p=d&&d[1]||!1,g=d&&d[2]||!1,m=document.location.href.replace(document.location.hash,""),_,y,b,E=document.getElementsByTagName("script");p===m&&(_=document.documentElement.outerHTML,y=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),b=_.replace(y,"$1").trim());for(var x=0;x<E.length;x++)if(E[x].readyState==="interactive"||E[x].src===p||p===m&&E[x].innerHTML&&E[x].innerHTML.trim()===b)return E[x];return null}}return c})},8925:function(e,r,o){var a=o("c6cd"),s=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(u){return s.call(u)}),e.exports=a.inspectSource},"8bbf":function(e,r){e.exports=t},"90e3":function(e,r){var o=0,a=Math.random();e.exports=function(s){return"Symbol("+String(s===void 0?"":s)+")_"+(++o+a).toString(36)}},9112:function(e,r,o){var a=o("83ab"),s=o("9bf2"),u=o("5c6c");e.exports=a?function(c,f,h){return s.f(c,f,u(1,h))}:function(c,f,h){return c[f]=h,c}},"94ca":function(e,r,o){var a=o("d039"),s=/#|\.prototype\./,u=function(d,p){var g=f[c(d)];return g==v?!0:g==h?!1:typeof p=="function"?a(p):!!p},c=u.normalize=function(d){return String(d).replace(s,".").toLowerCase()},f=u.data={},h=u.NATIVE="N",v=u.POLYFILL="P";e.exports=u},"99af":function(e,r,o){var a=o("23e7"),s=o("d039"),u=o("e8b5"),c=o("861d"),f=o("7b0b"),h=o("50c4"),v=o("8418"),d=o("65f0"),p=o("1dde"),g=o("b622"),m=o("2d00"),_=g("isConcatSpreadable"),y=9007199254740991,b="Maximum allowed index exceeded",E=m>=51||!s(function(){var O=[];return O[_]=!1,O.concat()[0]!==O}),x=p("concat"),C=function(O){if(!c(O))return!1;var k=O[_];return k!==void 0?!!k:u(O)},I=!E||!x;a({target:"Array",proto:!0,forced:I},{concat:function(k){var T=f(this),D=d(T,0),N=0,$,z,H,w,P;for($=-1,H=arguments.length;$<H;$++)if(P=$===-1?T:arguments[$],C(P)){if(w=h(P.length),N+w>y)throw TypeError(b);for(z=0;z<w;z++,N++)z in P&&v(D,N,P[z])}else{if(N>=y)throw TypeError(b);v(D,N++,P)}return D.length=N,D}})},"9bf2":function(e,r,o){var a=o("83ab"),s=o("0cfb"),u=o("825a"),c=o("c04e"),f=Object.defineProperty;r.f=a?f:function(v,d,p){if(u(v),d=c(d,!0),u(p),s)try{return f(v,d,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported");return"value"in p&&(v[d]=p.value),v}},a691:function(e,r){var o=Math.ceil,a=Math.floor;e.exports=function(s){return isNaN(s=+s)?0:(s>0?a:o)(s)}},a9e3:function(e,r,o){var a=o("83ab"),s=o("da84"),u=o("94ca"),c=o("6eeb"),f=o("5135"),h=o("c6b6"),v=o("7156"),d=o("c04e"),p=o("d039"),g=o("7c73"),m=o("241c").f,_=o("06cf").f,y=o("9bf2").f,b=o("58a8").trim,E="Number",x=s[E],C=x.prototype,I=h(g(C))==E,O=function($){var z=d($,!1),H,w,P,S,Y,M,L,ie;if(typeof z=="string"&&z.length>2){if(z=b(z),H=z.charCodeAt(0),H===43||H===45){if(w=z.charCodeAt(2),w===88||w===120)return NaN}else if(H===48){switch(z.charCodeAt(1)){case 66:case 98:P=2,S=49;break;case 79:case 111:P=8,S=55;break;default:return+z}for(Y=z.slice(2),M=Y.length,L=0;L<M;L++)if(ie=Y.charCodeAt(L),ie<48||ie>S)return NaN;return parseInt(Y,P)}}return+z};if(u(E,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var k=function(z){var H=arguments.length<1?0:z,w=this;return w instanceof k&&(I?p(function(){C.valueOf.call(w)}):h(w)!=E)?v(new x(O(H)),w,k):O(H)},T=a?m(x):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),D=0,N;T.length>D;D++)f(x,N=T[D])&&!f(k,N)&&y(k,N,_(x,N));k.prototype=C,C.constructor=k,c(s,E,k)}},ae40:function(e,r,o){var a=o("83ab"),s=o("d039"),u=o("5135"),c=Object.defineProperty,f={},h=function(v){throw v};e.exports=function(v,d){if(u(f,v))return f[v];d||(d={});var p=[][v],g=u(d,"ACCESSORS")?d.ACCESSORS:!1,m=u(d,0)?d[0]:h,_=u(d,1)?d[1]:void 0;return f[v]=!!p&&!s(function(){if(g&&!a)return!0;var y={length:-1};g?c(y,1,{enumerable:!0,get:h}):y[1]=1,p.call(y,m,_)})}},b041:function(e,r,o){var a=o("00ee"),s=o("f5df");e.exports=a?{}.toString:function(){return"[object "+s(this)+"]"}},b622:function(e,r,o){var a=o("da84"),s=o("5692"),u=o("5135"),c=o("90e3"),f=o("4930"),h=o("fdbf"),v=s("wks"),d=a.Symbol,p=h?d:d&&d.withoutSetter||c;e.exports=function(g){return u(v,g)||(f&&u(d,g)?v[g]=d[g]:v[g]=p("Symbol."+g)),v[g]}},b727:function(e,r,o){var a=o("0366"),s=o("44ad"),u=o("7b0b"),c=o("50c4"),f=o("65f0"),h=[].push,v=function(d){var p=d==1,g=d==2,m=d==3,_=d==4,y=d==6,b=d==5||y;return function(E,x,C,I){for(var O=u(E),k=s(O),T=a(x,C,3),D=c(k.length),N=0,$=I||f,z=p?$(E,D):g?$(E,0):void 0,H,w;D>N;N++)if((b||N in k)&&(H=k[N],w=T(H,N,O),d)){if(p)z[N]=w;else if(w)switch(d){case 3:return!0;case 5:return H;case 6:return N;case 2:h.call(z,H)}else if(_)return!1}return y?-1:m||_?_:z}};e.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6)}},c04e:function(e,r,o){var a=o("861d");e.exports=function(s,u){if(!a(s))return s;var c,f;if(u&&typeof(c=s.toString)=="function"&&!a(f=c.call(s))||typeof(c=s.valueOf)=="function"&&!a(f=c.call(s))||!u&&typeof(c=s.toString)=="function"&&!a(f=c.call(s)))return f;throw TypeError("Can't convert object to primitive value")}},c430:function(e,r){e.exports=!1},c6b6:function(e,r){var o={}.toString;e.exports=function(a){return o.call(a).slice(8,-1)}},c6cd:function(e,r,o){var a=o("da84"),s=o("ce4e"),u="__core-js_shared__",c=a[u]||s(u,{});e.exports=c},c8ba:function(e,r){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}e.exports=o},ca84:function(e,r,o){var a=o("5135"),s=o("fc6a"),u=o("4d64").indexOf,c=o("d012");e.exports=function(f,h){var v=s(f),d=0,p=[],g;for(g in v)!a(c,g)&&a(v,g)&&p.push(g);for(;h.length>d;)a(v,g=h[d++])&&(~u(p,g)||p.push(g));return p}},cc12:function(e,r,o){var a=o("da84"),s=o("861d"),u=a.document,c=s(u)&&s(u.createElement);e.exports=function(f){return c?u.createElement(f):{}}},ce4e:function(e,r,o){var a=o("da84"),s=o("9112");e.exports=function(u,c){try{s(a,u,c)}catch{a[u]=c}return c}},d012:function(e,r){e.exports={}},d039:function(e,r){e.exports=function(o){try{return!!o()}catch{return!0}}},d066:function(e,r,o){var a=o("428f"),s=o("da84"),u=function(c){return typeof c=="function"?c:void 0};e.exports=function(c,f){return arguments.length<2?u(a[c])||u(s[c]):a[c]&&a[c][f]||s[c]&&s[c][f]}},d1e7:function(e,r,o){var a={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,u=s&&!a.call({1:2},1);r.f=u?function(f){var h=s(this,f);return!!h&&h.enumerable}:a},d2bb:function(e,r,o){var a=o("825a"),s=o("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,c={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(c,[]),u=c instanceof Array}catch{}return function(v,d){return a(v),s(d),u?f.call(v,d):v.__proto__=d,v}}():void 0)},d3b7:function(e,r,o){var a=o("00ee"),s=o("6eeb"),u=o("b041");a||s(Object.prototype,"toString",u,{unsafe:!0})},da84:function(e,r,o){(function(a){var s=function(u){return u&&u.Math==Math&&u};e.exports=s(typeof globalThis=="object"&&globalThis)||s(typeof window=="object"&&window)||s(typeof self=="object"&&self)||s(typeof a=="object"&&a)||Function("return this")()}).call(this,o("c8ba"))},df75:function(e,r,o){var a=o("ca84"),s=o("7839");e.exports=Object.keys||function(c){return a(c,s)}},e893:function(e,r,o){var a=o("5135"),s=o("56ef"),u=o("06cf"),c=o("9bf2");e.exports=function(f,h){for(var v=s(h),d=c.f,p=u.f,g=0;g<v.length;g++){var m=v[g];a(f,m)||d(f,m,p(h,m))}}},e8b5:function(e,r,o){var a=o("c6b6");e.exports=Array.isArray||function(u){return a(u)=="Array"}},f5df:function(e,r,o){var a=o("00ee"),s=o("c6b6"),u=o("b622"),c=u("toStringTag"),f=s(function(){return arguments}())=="Arguments",h=function(v,d){try{return v[d]}catch{}};e.exports=a?s:function(v){var d,p,g;return v===void 0?"Undefined":v===null?"Null":typeof(p=h(d=Object(v),c))=="string"?p:f?s(d):(g=s(d))=="Object"&&typeof d.callee=="function"?"Arguments":g}},f772:function(e,r,o){var a=o("5692"),s=o("90e3"),u=a("keys");e.exports=function(c){return u[c]||(u[c]=s(c))}},fb15:function(e,r,o){if(o.r(r),o.d(r,"InnerImageZoom",function(){return z}),typeof window<"u"){var a=window.document.currentScript;{var s=o("8875");a=s(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:s})}var u=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(o.p=u[1])}function c(w,P,S){return P in w?Object.defineProperty(w,P,{value:S,enumerable:!0,configurable:!0,writable:!0}):w[P]=S,w}o("99af");var f=o("8bbf"),h={key:0},v=["srcSet","sizes","media","type"],d=["src","srcSet","sizes","alt"],p=["src","srcSet","sizes","alt"],g={class:"iiz__zoom-portal"},m=["src"],_=["src"],y={key:1,class:"iiz__btn iiz__hint"};function b(w,P,S,Y,M,L){var ie;return Object(f.openBlock)(),Object(f.createElementBlock)("figure",Object(f.mergeProps)({class:["iiz",(ie={},c(ie,S.className,S.className),c(ie,"iiz--drag",M.currentMoveType==="drag"),ie)],ref:"img",style:{width:"".concat(S.width,"px")}},Object(f.toHandlers)({touchstart:M.isZoomed?function(){}:L.handleTouchStart,click:L.handleClick,mouseenter:M.isTouch?function(){}:L.handleMouseEnter,mousemove:M.currentMoveType==="drag"||!M.isZoomed?function(){}:L.handleMouseMove,mouseleave:M.isTouch?function(){}:L.handleMouseLeave})),[Object(f.createElementVNode)("div",{style:Object(f.normalizeStyle)({paddingTop:L.createSpacer?"".concat(S.height/S.width*100,"%"):null})},[L.validSources?(Object(f.openBlock)(),Object(f.createElementBlock)("picture",h,[(Object(f.openBlock)(!0),Object(f.createElementBlock)(f.Fragment,null,Object(f.renderList)(L.validSources,function(Ce,lt){return Object(f.openBlock)(),Object(f.createElementBlock)("source",{key:lt,srcSet:Ce.srcSet,sizes:Ce.sizes,media:Ce.media,type:Ce.type},null,8,v)}),128)),Object(f.createElementVNode)("img",{class:Object(f.normalizeClass)(["iiz__img",{"iiz__img--hidden":M.isZoomed,"iiz__img--abs":L.createSpacer}]),style:Object(f.normalizeStyle)({transition:"linear 0ms opacity ".concat(M.isZoomed?S.fadeDuration:0,"ms, linear 0ms visibility ").concat(M.isZoomed?S.fadeDuration:0,"ms")}),src:S.src,srcSet:S.srcSet,sizes:S.sizes,alt:S.alt},null,14,d)])):(Object(f.openBlock)(),Object(f.createElementBlock)("img",{key:1,class:Object(f.normalizeClass)(["iiz__img",{"iiz__img--hidden":M.isZoomed,"iiz__img--abs":L.createSpacer}]),style:Object(f.normalizeStyle)({transition:"linear 0ms opacity ".concat(M.isZoomed?S.fadeDuration:0,"ms, linear 0ms visibility ").concat(M.isZoomed?S.fadeDuration:0,"ms")}),src:S.src,srcSet:S.srcSet,sizes:S.sizes,alt:S.alt},null,14,p))],4),M.isActive?(Object(f.openBlock)(),Object(f.createElementBlock)(f.Fragment,{key:0},[M.isFullscreen?(Object(f.openBlock)(),Object(f.createBlock)(f.Teleport,{key:0,to:"body"},[Object(f.createElementVNode)("div",g,[Object(f.createElementVNode)("img",Object(f.mergeProps)({class:["iiz__zoom-img",{"iiz__zoom-img--visible":M.isZoomed}],alt:"",draggable:!1,style:{top:"".concat(M.top,"px"),left:"".concat(M.left,"px"),transition:"linear ".concat(M.isFullscreen?0:S.fadeDuration,"ms opacity, linear ").concat(M.isFullscreen?0:S.fadeDuration,"ms visibility")},src:S.zoomSrc||S.src},Object(f.toHandlers)({load:L.handleLoad,touchstart:L.handleDragStart,touchend:L.handleDragEnd,mousedown:L.handleDragStart,mouseup:L.handleDragEnd,click:L.handleClick})),null,16,m),M.isTouch&&!S.hideCloseButton?(Object(f.openBlock)(),Object(f.createElementBlock)("button",{key:0,type:"button",class:Object(f.normalizeClass)(["iiz__btn iiz__close",{"iiz__close--visible":M.isZoomed}]),"aria-label":"Zoom Out",style:Object(f.normalizeStyle)({transition:"linear ".concat(M.isFullscreen?0:S.fadeDuration,"ms opacity, linear ").concat(M.isFullscreen?0:S.fadeDuration,"ms visibility")}),onClick:P[0]||(P[0]=Object(f.withModifiers)(function(){return L.handleClose&&L.handleClose.apply(L,arguments)},["stop"]))},null,6)):Object(f.createCommentVNode)("",!0)])])):(Object(f.openBlock)(),Object(f.createElementBlock)(f.Fragment,{key:1},[Object(f.createElementVNode)("img",Object(f.mergeProps)({class:["iiz__zoom-img",{"iiz__zoom-img--visible":M.isZoomed}],alt:"",draggable:!1,style:{top:"".concat(M.top,"px"),left:"".concat(M.left,"px"),transition:"linear ".concat(M.isFullscreen?0:S.fadeDuration,"ms opacity, linear ").concat(M.isFullscreen?0:S.fadeDuration,"ms visibility")},src:S.zoomSrc||S.src},Object(f.toHandlers)({load:L.handleLoad,touchstart:L.handleDragStart,touchend:L.handleDragEnd,mousedown:L.handleDragStart,mouseup:L.handleDragEnd})),null,16,_),M.isTouch&&!S.hideCloseButton?(Object(f.openBlock)(),Object(f.createElementBlock)("button",{key:0,class:Object(f.normalizeClass)(["iiz__btn iiz__close",{"iiz__close--visible":M.isZoomed}]),type:"button","aria-label":"Zoom Out",style:Object(f.normalizeStyle)({transition:"linear ".concat(M.isFullscreen?0:S.fadeDuration,"ms opacity, linear ").concat(M.isFullscreen?0:S.fadeDuration,"ms visibility")}),onClick:P[1]||(P[1]=Object(f.withModifiers)(function(){return L.handleClose&&L.handleClose.apply(L,arguments)},["stop"]))},null,6)):Object(f.createCommentVNode)("",!0)],64))],64)):Object(f.createCommentVNode)("",!0),!M.isZoomed&&!S.hideHint?(Object(f.openBlock)(),Object(f.createElementBlock)("span",y)):Object(f.createCommentVNode)("",!0)],16)}o("a9e3"),o("4de4"),o("d3b7");var E={name:"InnerImageZoom",props:{moveType:{type:String,default:"pan"},zoomType:{type:String,default:"click"},src:{type:String,required:!0},srcSet:String,sizes:String,sources:Array,width:Number,height:Number,hasSpacer:Boolean,zoomSrc:String,zoomScale:{type:Number,default:1},zoomPreload:Boolean,alt:String,fadeDuration:{type:Number,default:150},fullscreenOnMobile:Boolean,mobileBreakpoint:{type:Number,default:640},hideHint:Boolean,hideCloseButton:Boolean,className:String,afterZoomIn:Function,afterZoomOut:Function},data:function(){return{isActive:this.zoomPreload||!1,isTouch:!1,isZoomed:!1,isFullscreen:!1,isDragging:!1,currentMoveType:this.moveType,left:0,top:0,imgProps:{}}},created:function(){this.setDefaults(),O(this.fullscreenOnMobile,this.mobileBreakpoint)&&(this.isActive=!1)},computed:{validSources:function(){return this.sources?this.sources.filter(function(P){return P.srcSet}):[]},createSpacer:function(){return this.width&&this.height&&this.hasSpacer}},methods:{handleMouseEnter:function(P){this.isActive=!0,this.zoomType==="hover"&&!this.isZoomed&&this.handleClick(P)},handleTouchStart:function(){this.isTouch=!0,this.isFullscreen=O(this.fullscreenOnMobile,this.mobileBreakpoint),this.currentMoveType="drag"},handleClick:function(P){if(this.isZoomed){this.isTouch?this.hideCloseButton&&this.handleClose():!this.isDragging&&this.zoomOut();return}this.isTouch&&(this.isActive=!0),this.imgProps.zoomImg?(this.handleLoad({target:this.imgProps.zoomImg}),this.zoomIn(P.pageX,P.pageY)):this.imgProps.onLoadCallback=this.zoomIn.bind(this,P.pageX,P.pageY)},handleLoad:function(P){var S=k(P.target,this.zoomScale);this.imgProps.zoomImg=P.target,this.imgProps.zoomImg.setAttribute("width",S.width),this.imgProps.zoomImg.setAttribute("height",S.height),this.imgProps.scaledDimensions=S,this.imgProps.bounds=x(this.$refs.img,!1),this.imgProps.ratios=I(this.imgProps.bounds,S),this.imgProps.onLoadCallback&&(this.imgProps.onLoadCallback(),this.imgProps.onLoadCallback=null)},handleMouseMove:function(P){var S=P.pageX-this.imgProps.offsets.x,Y=P.pageY-this.imgProps.offsets.y;S=Math.max(Math.min(S,this.imgProps.bounds.width),0),Y=Math.max(Math.min(Y,this.imgProps.bounds.height),0),this.left=S*-this.imgProps.ratios.x,this.top=Y*-this.imgProps.ratios.y},handleDragStart:function(P){this.imgProps.offsets=C(P.pageX||P.changedTouches[0].pageX,P.pageY||P.changedTouches[0].pageY,this.imgProps.zoomImg.offsetLeft,this.imgProps.zoomImg.offsetTop),this.imgProps.zoomImg.addEventListener(this.isTouch?"touchmove":"mousemove",this.handleDragMove,{passive:!0}),this.isTouch||(this.imgProps.eventPosition={x:P.pageX,y:P.pageY})},handleDragMove:function(P){var S=(P.pageX||P.changedTouches[0].pageX)-this.imgProps.offsets.x,Y=(P.pageY||P.changedTouches[0].pageY)-this.imgProps.offsets.y;S=Math.max(Math.min(S,0),(this.imgProps.scaledDimensions.width-this.imgProps.bounds.width)*-1),Y=Math.max(Math.min(Y,0),(this.imgProps.scaledDimensions.height-this.imgProps.bounds.height)*-1),this.left=S,this.top=Y},handleDragEnd:function(P){if(this.imgProps.zoomImg.removeEventListener(this.isTouch?"touchmove":"mousemove",this.handleDragMove),!this.isTouch){var S=Math.abs(P.pageX-this.imgProps.eventPosition.x),Y=Math.abs(P.pageY-this.imgProps.eventPosition.y);this.isDragging=S>5||Y>5}},handleMouseLeave:function(P){this.currentMoveType==="drag"&&this.isZoomed?this.handleDragEnd(P):this.handleClose()},handleClose:function(){var P=this;this.zoomOut(function(){setTimeout(function(){(P.zoomPreload&&P.isTouch||!P.zoomPreload)&&(P.isActive=!1,P.setDefaults()),P.isTouch=!1,P.isFullscreen=!1,P.currentMoveType=P.moveType},P.isFullscreen?0:P.fadeDuration)})},initialMove:function(P,S){this.imgProps.offsets=C(window.pageXOffset,window.pageYOffset,-this.imgProps.bounds.left,-this.imgProps.bounds.top),this.handleMouseMove({pageX:P,pageY:S})},initialDragMove:function(P,S){var Y=(P-(window.pageXOffset+this.imgProps.bounds.left))*-this.imgProps.ratios.x,M=(S-(window.pageYOffset+this.imgProps.bounds.top))*-this.imgProps.ratios.y;Y=Y+(this.isFullscreen?(window.innerWidth-this.imgProps.bounds.width)/2:0),M=M+(this.isFullscreen?(window.innerHeight-this.imgProps.bounds.height)/2:0),this.imgProps.bounds=x(this.$refs.img,this.isFullscreen),this.imgProps.offsets=C(0,0,0,0),this.handleDragMove({changedTouches:[{pageX:Y,pageY:M}],preventDefault:function(){},stopPropagation:function(){}})},zoomIn:function(P,S){var Y=this.currentMoveType==="drag"?this.initialDragMove:this.initialMove;this.isZoomed=!0,Y(P,S),this.afterZoomIn&&this.afterZoomIn()},zoomOut:function(P){this.isZoomed=!1,this.afterZoomOut&&this.afterZoomOut(),P&&P()},setDefaults:function(){this.imgProps.onLoadCallback=null,this.imgProps.zoomImg=null,this.imgProps.bounds={},this.imgProps.offsets={},this.imgProps.ratios={},this.imgProps.eventPosition={},this.imgProps.scaledDimensions={}}}};function x(w,P){return P?{width:window.innerWidth,height:window.innerHeight,left:0,top:0}:w.getBoundingClientRect()}function C(w,P,S,Y){return{x:w-S,y:P-Y}}function I(w,P){return{x:(P.width-w.width)/w.width,y:(P.height-w.height)/w.height}}function O(w,P){return w&&window.matchMedia&&window.matchMedia("(max-width: ".concat(P,"px)")).matches}function k(w,P){return{width:w.naturalWidth*P,height:w.naturalHeight*P}}o("7ae1");var T=o("6b0d"),D=o.n(T),$=D()(E,[["render",b],["__scopeId","data-v-d1255c78"]]),z=$,H=z;r.default=H},fc6a:function(e,r,o){var a=o("44ad"),s=o("1d80");e.exports=function(u){return a(s(u))}},fdbf:function(e,r,o){var a=o("4930");e.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}})})})(mi);var Ra=mi.exports;const Sr=On.getDefaultExportFromCjs(Ra);var Ia=function(){function n(){this.keys=[],this.values=[]}var i=n.prototype;return i.get=function(t){return this.values[this.keys.indexOf(t)]},i.set=function(t,e){var r=this.keys,o=this.values,a=r.indexOf(t),s=a===-1?r.length:a;r[s]=t,o[s]=e},n}(),Na=function(){function n(){this.object={}}var i=n.prototype;return i.get=function(t){return this.object[t]},i.set=function(t,e){this.object[t]=e},n}(),Aa=typeof Map=="function",Da=function(){function n(){}var i=n.prototype;return i.connect=function(t,e){this.prev=t,this.next=e,t&&(t.next=this),e&&(e.prev=this)},i.disconnect=function(){var t=this.prev,e=this.next;t&&(t.next=e),e&&(e.prev=t)},i.getIndex=function(){for(var t=this,e=-1;t;)t=t.prev,++e;return e},n}();function Ma(n,i){var t=[],e=[];return n.forEach(function(r){var o=r[0],a=r[1],s=new Da;t[o]=s,e[a]=s}),t.forEach(function(r,o){r.connect(t[o-1])}),n.filter(function(r,o){return!i[o]}).map(function(r,o){var a=r[0],s=r[1];if(a===s)return[0,0];var u=t[a],c=e[s-1],f=u.getIndex();u.disconnect(),c?u.connect(c,c.next):u.connect(void 0,t[0]);var h=u.getIndex();return[f,h]})}var za=function(){function n(t,e,r,o,a,s,u,c){this.prevList=t,this.list=e,this.added=r,this.removed=o,this.changed=a,this.maintained=s,this.changedBeforeAdded=u,this.fixed=c}var i=n.prototype;return Object.defineProperty(i,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(i,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),i.caculateOrdered=function(){var t=Ma(this.changedBeforeAdded,this.fixed),e=this.changed,r=[];this.cacheOrdered=t.filter(function(o,a){var s=o[0],u=o[1],c=e[a],f=c[0],h=c[1];if(s!==u)return r.push([f,h]),!0}),this.cachePureChanged=r},n}();function Ba(n,i,t){var e=Aa?Map:t?Na:Ia,r=t||function(y){return y},o=[],a=[],s=[],u=n.map(r),c=i.map(r),f=new e,h=new e,v=[],d=[],p={},g=[],m=0,_=0;return u.forEach(function(y,b){f.set(y,b)}),c.forEach(function(y,b){h.set(y,b)}),u.forEach(function(y,b){var E=h.get(y);typeof E>"u"?(++_,a.push(b)):p[E]=_}),c.forEach(function(y,b){var E=f.get(y);typeof E>"u"?(o.push(b),++m):(s.push([E,b]),_=p[b]||0,v.push([E-_,b-m]),d.push(b===E),E!==b&&g.push([E,b]))}),a.reverse(),new za(n,i,o,a,g,s,v,d)}var La=function(){function n(t,e){t===void 0&&(t=[]),this.findKeyCallback=e,this.list=[].slice.call(t)}var i=n.prototype;return i.update=function(t){var e=[].slice.call(t),r=Ba(this.list,e,this.findKeyCallback);return this.list=e,r},n}();const Cr=La;/*! *****************************************************************************
|
|
1
|
+
"use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-3cd5af09.cjs"),wn=require("./_commonjsHelpers-6763f629.cjs"),Oo=require("./ActionField-044d5ae1.cjs"),wo=require("./index-8d46a016.cjs"),de=require("./_-ca9b20fd.cjs"),To=["top","right","bottom","left"],ur=["start","end"],cr=To.reduce((n,i)=>n.concat(i,i+"-"+ur[0],i+"-"+ur[1]),[]),qe=Math.min,Ee=Math.max,So={left:"right",right:"left",bottom:"top",top:"bottom"},Co={start:"end",end:"start"};function en(n,i,t){return Ee(n,qe(i,t))}function Te(n,i){return typeof n=="function"?n(i):n}function fe(n){return n.split("-")[0]}function ae(n){return n.split("-")[1]}function Ur(n){return n==="x"?"y":"x"}function Tn(n){return n==="y"?"height":"width"}function at(n){return["top","bottom"].includes(fe(n))?"y":"x"}function Sn(n){return Ur(at(n))}function Xr(n,i,t){t===void 0&&(t=!1);const e=ae(n),r=Sn(n),o=Tn(r);let a=r==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[o]>i.floating[o]&&(a=Et(a)),[a,Et(a)]}function Ro(n){const i=Et(n);return[bt(n),i,bt(i)]}function bt(n){return n.replace(/start|end/g,i=>Co[i])}function ko(n,i,t){const e=["left","right"],r=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(n){case"top":case"bottom":return t?i?r:e:i?e:r;case"left":case"right":return i?o:a;default:return[]}}function Io(n,i,t,e){const r=ae(n);let o=ko(fe(n),t==="start",e);return r&&(o=o.map(a=>a+"-"+r),i&&(o=o.concat(o.map(bt)))),o}function Et(n){return n.replace(/left|right|bottom|top/g,i=>So[i])}function No(n){return{top:0,right:0,bottom:0,left:0,...n}}function Yr(n){return typeof n!="number"?No(n):{top:n,right:n,bottom:n,left:n}}function Xe(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function fr(n,i,t){let{reference:e,floating:r}=n;const o=at(i),a=Sn(i),s=Tn(a),u=fe(i),c=o==="y",f=e.x+e.width/2-r.width/2,h=e.y+e.height/2-r.height/2,v=e[s]/2-r[s]/2;let d;switch(u){case"top":d={x:f,y:e.y-r.height};break;case"bottom":d={x:f,y:e.y+e.height};break;case"right":d={x:e.x+e.width,y:h};break;case"left":d={x:e.x-r.width,y:h};break;default:d={x:e.x,y:e.y}}switch(ae(i)){case"start":d[a]-=v*(t&&c?-1:1);break;case"end":d[a]+=v*(t&&c?-1:1);break}return d}const Ao=async(n,i,t)=>{const{placement:e="bottom",strategy:r="absolute",middleware:o=[],platform:a}=t,s=o.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(i));let c=await a.getElementRects({reference:n,floating:i,strategy:r}),{x:f,y:h}=fr(c,e,u),v=e,d={},p=0;for(let g=0;g<s.length;g++){const{name:m,fn:_}=s[g],{x:y,y:b,data:E,reset:x}=await _({x:f,y:h,initialPlacement:e,placement:v,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:n,floating:i}});if(f=y??f,h=b??h,d={...d,[m]:{...d[m],...E}},x&&p<=50){p++,typeof x=="object"&&(x.placement&&(v=x.placement),x.rects&&(c=x.rects===!0?await a.getElementRects({reference:n,floating:i,strategy:r}):x.rects),{x:f,y:h}=fr(c,v,u)),g=-1;continue}}return{x:f,y:h,placement:v,strategy:r,middlewareData:d}};async function At(n,i){var t;i===void 0&&(i={});const{x:e,y:r,platform:o,rects:a,elements:s,strategy:u}=n,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:v=!1,padding:d=0}=Te(i,n),p=Yr(d),m=s[v?h==="floating"?"reference":"floating":h],_=Xe(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(m)))==null||t?m:m.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:u})),y=h==="floating"?{...a.floating,x:e,y:r}:a.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),E=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},x=Xe(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:b,strategy:u}):y);return{top:(_.top-x.top+p.top)/E.y,bottom:(x.bottom-_.bottom+p.bottom)/E.y,left:(_.left-x.left+p.left)/E.x,right:(x.right-_.right+p.right)/E.x}}const Do=n=>({name:"arrow",options:n,async fn(i){const{x:t,y:e,placement:r,rects:o,platform:a,elements:s,middlewareData:u}=i,{element:c,padding:f=0}=Te(n,i)||{};if(c==null)return{};const h=Yr(f),v={x:t,y:e},d=Sn(r),p=Tn(d),g=await a.getDimensions(c),m=d==="y",_=m?"top":"left",y=m?"bottom":"right",b=m?"clientHeight":"clientWidth",E=o.reference[p]+o.reference[d]-v[d]-o.floating[p],x=v[d]-o.reference[d],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let I=C?C[b]:0;(!I||!await(a.isElement==null?void 0:a.isElement(C)))&&(I=s.floating[b]||o.floating[p]);const O=E/2-x/2,R=I/2-g[p]/2-1,T=qe(h[_],R),D=qe(h[y],R),A=T,$=I-g[p]-D,z=I/2-g[p]/2+O,H=en(A,z,$),w=!u.arrow&&ae(r)!=null&&z!=H&&o.reference[p]/2-(z<A?T:D)-g[p]/2<0,P=w?z<A?z-A:z-$:0;return{[d]:v[d]+P,data:{[d]:H,centerOffset:z-H-P,...w&&{alignmentOffset:P}},reset:w}}});function Mo(n,i,t){return(n?[...t.filter(r=>ae(r)===n),...t.filter(r=>ae(r)!==n)]:t.filter(r=>fe(r)===r)).filter(r=>n?ae(r)===n||(i?bt(r)!==r:!1):!0)}const zo=function(n){return n===void 0&&(n={}),{name:"autoPlacement",options:n,async fn(i){var t,e,r;const{rects:o,middlewareData:a,placement:s,platform:u,elements:c}=i,{crossAxis:f=!1,alignment:h,allowedPlacements:v=cr,autoAlignment:d=!0,...p}=Te(n,i),g=h!==void 0||v===cr?Mo(h||null,d,v):v,m=await At(i,p),_=((t=a.autoPlacement)==null?void 0:t.index)||0,y=g[_];if(y==null)return{};const b=Xr(y,o,await(u.isRTL==null?void 0:u.isRTL(c.floating)));if(s!==y)return{reset:{placement:g[0]}};const E=[m[fe(y)],m[b[0]],m[b[1]]],x=[...((e=a.autoPlacement)==null?void 0:e.overflows)||[],{placement:y,overflows:E}],C=g[_+1];if(C)return{data:{index:_+1,overflows:x},reset:{placement:C}};const I=x.map(T=>{const D=ae(T.placement);return[T.placement,D&&f?T.overflows.slice(0,2).reduce((A,$)=>A+$,0):T.overflows[0],T.overflows]}).sort((T,D)=>T[1]-D[1]),R=((r=I.filter(T=>T[2].slice(0,ae(T[0])?2:3).every(D=>D<=0))[0])==null?void 0:r[0])||I[0][0];return R!==s?{data:{index:_+1,overflows:x},reset:{placement:R}}:{}}}},Bo=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(i){var t,e;const{placement:r,middlewareData:o,rects:a,initialPlacement:s,platform:u,elements:c}=i,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...m}=Te(n,i);if((t=o.arrow)!=null&&t.alignmentOffset)return{};const _=fe(r),y=fe(s)===s,b=await(u.isRTL==null?void 0:u.isRTL(c.floating)),E=v||(y||!g?[Et(s)]:Ro(s));!v&&p!=="none"&&E.push(...Io(s,g,p,b));const x=[s,...E],C=await At(i,m),I=[];let O=((e=o.flip)==null?void 0:e.overflows)||[];if(f&&I.push(C[_]),h){const A=Xr(r,a,b);I.push(C[A[0]],C[A[1]])}if(O=[...O,{placement:r,overflows:I}],!I.every(A=>A<=0)){var R,T;const A=(((R=o.flip)==null?void 0:R.index)||0)+1,$=x[A];if($)return{data:{index:A,overflows:O},reset:{placement:$}};let z=(T=O.filter(H=>H.overflows[0]<=0).sort((H,w)=>H.overflows[1]-w.overflows[1])[0])==null?void 0:T.placement;if(!z)switch(d){case"bestFit":{var D;const H=(D=O.map(w=>[w.placement,w.overflows.filter(P=>P>0).reduce((P,S)=>P+S,0)]).sort((w,P)=>w[1]-P[1])[0])==null?void 0:D[0];H&&(z=H);break}case"initialPlacement":z=s;break}if(r!==z)return{reset:{placement:z}}}return{}}}};async function Lo(n,i){const{placement:t,platform:e,elements:r}=n,o=await(e.isRTL==null?void 0:e.isRTL(r.floating)),a=fe(t),s=ae(t),u=at(t)==="y",c=["left","top"].includes(a)?-1:1,f=o&&u?-1:1,h=Te(i,n);let{mainAxis:v,crossAxis:d,alignmentAxis:p}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return s&&typeof p=="number"&&(d=s==="end"?p*-1:p),u?{x:d*f,y:v*c}:{x:v*c,y:d*f}}const Vo=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(i){const{x:t,y:e}=i,r=await Lo(i,n);return{x:t+r.x,y:e+r.y,data:r}}}},jo=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(i){const{x:t,y:e,placement:r}=i,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:m=>{let{x:_,y}=m;return{x:_,y}}},...u}=Te(n,i),c={x:t,y:e},f=await At(i,u),h=at(fe(r)),v=Ur(h);let d=c[v],p=c[h];if(o){const m=v==="y"?"top":"left",_=v==="y"?"bottom":"right",y=d+f[m],b=d-f[_];d=en(y,d,b)}if(a){const m=h==="y"?"top":"left",_=h==="y"?"bottom":"right",y=p+f[m],b=p-f[_];p=en(y,p,b)}const g=s.fn({...i,[v]:d,[h]:p});return{...g,data:{x:g.x-t,y:g.y-e}}}}},Fo=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(i){const{placement:t,rects:e,platform:r,elements:o}=i,{apply:a=()=>{},...s}=Te(n,i),u=await At(i,s),c=fe(t),f=ae(t),h=at(t)==="y",{width:v,height:d}=e.floating;let p,g;c==="top"||c==="bottom"?(p=c,g=f===(await(r.isRTL==null?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(g=c,p=f==="end"?"top":"bottom");const m=d-u[p],_=v-u[g],y=!i.middlewareData.shift;let b=m,E=_;if(h){const C=v-u.left-u.right;E=f||y?qe(_,C):C}else{const C=d-u.top-u.bottom;b=f||y?qe(m,C):C}if(y&&!f){const C=Ee(u.left,0),I=Ee(u.right,0),O=Ee(u.top,0),R=Ee(u.bottom,0);h?E=v-2*(C!==0||I!==0?C+I:Ee(u.left,u.right)):b=d-2*(O!==0||R!==0?O+R:Ee(u.top,u.bottom))}await a({...i,availableWidth:E,availableHeight:b});const x=await r.getDimensions(o.floating);return v!==x.width||d!==x.height?{reset:{rects:!0}}:{}}}};function re(n){var i;return((i=n.ownerDocument)==null?void 0:i.defaultView)||window}function le(n){return re(n).getComputedStyle(n)}const dr=Math.min,Ye=Math.max,Pt=Math.round;function Kr(n){const i=le(n);let t=parseFloat(i.width),e=parseFloat(i.height);const r=n.offsetWidth,o=n.offsetHeight,a=Pt(t)!==r||Pt(e)!==o;return a&&(t=r,e=o),{width:t,height:e,fallback:a}}function ye(n){return Jr(n)?(n.nodeName||"").toLowerCase():""}let ct;function Zr(){if(ct)return ct;const n=navigator.userAgentData;return n&&Array.isArray(n.brands)?(ct=n.brands.map(i=>i.brand+"/"+i.version).join(" "),ct):navigator.userAgent}function ue(n){return n instanceof re(n).HTMLElement}function ge(n){return n instanceof re(n).Element}function Jr(n){return n instanceof re(n).Node}function hr(n){return typeof ShadowRoot>"u"?!1:n instanceof re(n).ShadowRoot||n instanceof ShadowRoot}function Dt(n){const{overflow:i,overflowX:t,overflowY:e,display:r}=le(n);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!["inline","contents"].includes(r)}function $o(n){return["table","td","th"].includes(ye(n))}function tn(n){const i=/firefox/i.test(Zr()),t=le(n),e=t.backdropFilter||t.WebkitBackdropFilter;return t.transform!=="none"||t.perspective!=="none"||!!e&&e!=="none"||i&&t.willChange==="filter"||i&&!!t.filter&&t.filter!=="none"||["transform","perspective"].some(r=>t.willChange.includes(r))||["paint","layout","strict","content"].some(r=>{const o=t.contain;return o!=null&&o.includes(r)})}function Qr(){return!/^((?!chrome|android).)*safari/i.test(Zr())}function Cn(n){return["html","body","#document"].includes(ye(n))}function qr(n){return ge(n)?n:n.contextElement}const ei={x:1,y:1};function Ne(n){const i=qr(n);if(!ue(i))return ei;const t=i.getBoundingClientRect(),{width:e,height:r,fallback:o}=Kr(i);let a=(o?Pt(t.width):t.width)/e,s=(o?Pt(t.height):t.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function et(n,i,t,e){var r,o;i===void 0&&(i=!1),t===void 0&&(t=!1);const a=n.getBoundingClientRect(),s=qr(n);let u=ei;i&&(e?ge(e)&&(u=Ne(e)):u=Ne(n));const c=s?re(s):window,f=!Qr()&&t;let h=(a.left+(f&&((r=c.visualViewport)==null?void 0:r.offsetLeft)||0))/u.x,v=(a.top+(f&&((o=c.visualViewport)==null?void 0:o.offsetTop)||0))/u.y,d=a.width/u.x,p=a.height/u.y;if(s){const g=re(s),m=e&&ge(e)?re(e):e;let _=g.frameElement;for(;_&&e&&m!==g;){const y=Ne(_),b=_.getBoundingClientRect(),E=getComputedStyle(_);b.x+=(_.clientLeft+parseFloat(E.paddingLeft))*y.x,b.y+=(_.clientTop+parseFloat(E.paddingTop))*y.y,h*=y.x,v*=y.y,d*=y.x,p*=y.y,h+=b.x,v+=b.y,_=re(_).frameElement}}return{width:d,height:p,top:v,right:h+d,bottom:v+p,left:h,x:h,y:v}}function me(n){return((Jr(n)?n.ownerDocument:n.document)||window.document).documentElement}function Mt(n){return ge(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function ti(n){return et(me(n)).left+Mt(n).scrollLeft}function tt(n){if(ye(n)==="html")return n;const i=n.assignedSlot||n.parentNode||hr(n)&&n.host||me(n);return hr(i)?i.host:i}function ni(n){const i=tt(n);return Cn(i)?i.ownerDocument.body:ue(i)&&Dt(i)?i:ni(i)}function xt(n,i){var t;i===void 0&&(i=[]);const e=ni(n),r=e===((t=n.ownerDocument)==null?void 0:t.body),o=re(e);return r?i.concat(o,o.visualViewport||[],Dt(e)?e:[]):i.concat(e,xt(e))}function vr(n,i,t){return i==="viewport"?Xe(function(e,r){const o=re(e),a=me(e),s=o.visualViewport;let u=a.clientWidth,c=a.clientHeight,f=0,h=0;if(s){u=s.width,c=s.height;const v=Qr();(v||!v&&r==="fixed")&&(f=s.offsetLeft,h=s.offsetTop)}return{width:u,height:c,x:f,y:h}}(n,t)):ge(i)?Xe(function(e,r){const o=et(e,!0,r==="fixed"),a=o.top+e.clientTop,s=o.left+e.clientLeft,u=ue(e)?Ne(e):{x:1,y:1};return{width:e.clientWidth*u.x,height:e.clientHeight*u.y,x:s*u.x,y:a*u.y}}(i,t)):Xe(function(e){const r=me(e),o=Mt(e),a=e.ownerDocument.body,s=Ye(r.scrollWidth,r.clientWidth,a.scrollWidth,a.clientWidth),u=Ye(r.scrollHeight,r.clientHeight,a.scrollHeight,a.clientHeight);let c=-o.scrollLeft+ti(e);const f=-o.scrollTop;return le(a).direction==="rtl"&&(c+=Ye(r.clientWidth,a.clientWidth)-s),{width:s,height:u,x:c,y:f}}(me(n)))}function pr(n){return ue(n)&&le(n).position!=="fixed"?n.offsetParent:null}function gr(n){const i=re(n);let t=pr(n);for(;t&&$o(t)&&le(t).position==="static";)t=pr(t);return t&&(ye(t)==="html"||ye(t)==="body"&&le(t).position==="static"&&!tn(t))?i:t||function(e){let r=tt(e);for(;ue(r)&&!Cn(r);){if(tn(r))return r;r=tt(r)}return null}(n)||i}function Ho(n,i,t){const e=ue(i),r=me(i),o=et(n,!0,t==="fixed",i);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(e||!e&&t!=="fixed")if((ye(i)!=="body"||Dt(r))&&(a=Mt(i)),ue(i)){const u=et(i,!0);s.x=u.x+i.clientLeft,s.y=u.y+i.clientTop}else r&&(s.x=ti(r));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}const Go={getClippingRect:function(n){let{element:i,boundary:t,rootBoundary:e,strategy:r}=n;const o=t==="clippingAncestors"?function(c,f){const h=f.get(c);if(h)return h;let v=xt(c).filter(m=>ge(m)&&ye(m)!=="body"),d=null;const p=le(c).position==="fixed";let g=p?tt(c):c;for(;ge(g)&&!Cn(g);){const m=le(g),_=tn(g);(p?_||d:_||m.position!=="static"||!d||!["absolute","fixed"].includes(d.position))?d=m:v=v.filter(y=>y!==g),g=tt(g)}return f.set(c,v),v}(i,this._c):[].concat(t),a=[...o,e],s=a[0],u=a.reduce((c,f)=>{const h=vr(i,f,r);return c.top=Ye(h.top,c.top),c.right=dr(h.right,c.right),c.bottom=dr(h.bottom,c.bottom),c.left=Ye(h.left,c.left),c},vr(i,s,r));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(n){let{rect:i,offsetParent:t,strategy:e}=n;const r=ue(t),o=me(t);if(t===o)return i;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const u={x:0,y:0};if((r||!r&&e!=="fixed")&&((ye(t)!=="body"||Dt(o))&&(a=Mt(t)),ue(t))){const c=et(t);s=Ne(t),u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}return{width:i.width*s.x,height:i.height*s.y,x:i.x*s.x-a.scrollLeft*s.x+u.x,y:i.y*s.y-a.scrollTop*s.y+u.y}},isElement:ge,getDimensions:function(n){return ue(n)?Kr(n):n.getBoundingClientRect()},getOffsetParent:gr,getDocumentElement:me,getScale:Ne,async getElementRects(n){let{reference:i,floating:t,strategy:e}=n;const r=this.getOffsetParent||gr,o=this.getDimensions;return{reference:Ho(i,await r(t),e),floating:{x:0,y:0,...await o(t)}}},getClientRects:n=>Array.from(n.getClientRects()),isRTL:n=>le(n).direction==="rtl"},Wo=(n,i,t)=>{const e=new Map,r={platform:Go,...t},o={...r.platform,_c:e};return Ao(n,i,{...r,platform:o})};function ri(n,i){for(const t in i)Object.prototype.hasOwnProperty.call(i,t)&&(typeof i[t]=="object"&&n[t]?ri(n[t],i[t]):n[t]=i[t])}const he={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:n=>[...n,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function nt(n,i){let t=he.themes[n]||{},e;do e=t[i],typeof e>"u"?t.$extend?t=he.themes[t.$extend]||{}:(t=null,e=he[i]):t=null;while(t);return e}function Uo(n){const i=[n];let t=he.themes[n]||{};do t.$extend&&!t.$resetCss?(i.push(t.$extend),t=he.themes[t.$extend]||{}):t=null;while(t);return i.map(e=>`v-popper--theme-${e}`)}function mr(n){const i=[n];let t=he.themes[n]||{};do t.$extend?(i.push(t.$extend),t=he.themes[t.$extend]||{}):t=null;while(t);return i}let xe=!1;if(typeof window<"u"){xe=!1;try{const n=Object.defineProperty({},"passive",{get(){xe=!0}});window.addEventListener("test",null,n)}catch{}}let ii=!1;typeof window<"u"&&typeof navigator<"u"&&(ii=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const oi=["auto","top","bottom","left","right"].reduce((n,i)=>n.concat([i,`${i}-start`,`${i}-end`]),[]),_r={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},yr={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function br(n,i){const t=n.indexOf(i);t!==-1&&n.splice(t,1)}function Ft(){return new Promise(n=>requestAnimationFrame(()=>{requestAnimationFrame(n)}))}const oe=[];let be=null;const Er={};function Pr(n){let i=Er[n];return i||(i=Er[n]=[]),i}let nn=function(){};typeof window<"u"&&(nn=window.Element);function j(n){return function(i){return nt(i.theme,n)}}const $t="__floating-vue__popper",ai=()=>l.defineComponent({name:"VPopper",provide(){return{[$t]:{parentPopper:this}}},inject:{[$t]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:j("disabled")},positioningDisabled:{type:Boolean,default:j("positioningDisabled")},placement:{type:String,default:j("placement"),validator:n=>oi.includes(n)},delay:{type:[String,Number,Object],default:j("delay")},distance:{type:[Number,String],default:j("distance")},skidding:{type:[Number,String],default:j("skidding")},triggers:{type:Array,default:j("triggers")},showTriggers:{type:[Array,Function],default:j("showTriggers")},hideTriggers:{type:[Array,Function],default:j("hideTriggers")},popperTriggers:{type:Array,default:j("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:j("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:j("popperHideTriggers")},container:{type:[String,Object,nn,Boolean],default:j("container")},boundary:{type:[String,nn],default:j("boundary")},strategy:{type:String,validator:n=>["absolute","fixed"].includes(n),default:j("strategy")},autoHide:{type:[Boolean,Function],default:j("autoHide")},handleResize:{type:Boolean,default:j("handleResize")},instantMove:{type:Boolean,default:j("instantMove")},eagerMount:{type:Boolean,default:j("eagerMount")},popperClass:{type:[String,Array,Object],default:j("popperClass")},computeTransformOrigin:{type:Boolean,default:j("computeTransformOrigin")},autoMinSize:{type:Boolean,default:j("autoMinSize")},autoSize:{type:[Boolean,String],default:j("autoSize")},autoMaxSize:{type:Boolean,default:j("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:j("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:j("preventOverflow")},overflowPadding:{type:[Number,String],default:j("overflowPadding")},arrowPadding:{type:[Number,String],default:j("arrowPadding")},arrowOverflow:{type:Boolean,default:j("arrowOverflow")},flip:{type:Boolean,default:j("flip")},shift:{type:Boolean,default:j("shift")},shiftCrossAxis:{type:Boolean,default:j("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:j("noAutoFocus")},disposeTimeout:{type:Number,default:j("disposeTimeout")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var n;return(n=this[$t])==null?void 0:n.parentPopper},hasPopperShowTriggerHover(){var n,i;return((n=this.popperTriggers)==null?void 0:n.includes("hover"))||((i=this.popperShowTriggers)==null?void 0:i.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(n){n?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},...["triggers","positioningDisabled"].reduce((n,i)=>(n[i]="$_refreshListeners",n),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((n,i)=>(n[i]="$_computePosition",n),{})},created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(n=>n.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:n=null,skipDelay:i=!1,force:t=!1}={}){var e,r;(e=this.parentPopper)!=null&&e.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(t||!this.disabled)&&(((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(n,i),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:n=null,skipDelay:i=!1}={}){var t;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:i}),this.parentPopper.lockedChild=null)},1e3));return}((t=this.parentPopper)==null?void 0:t.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(n,i),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var n;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((n=this.referenceNode)==null?void 0:n.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(i=>i.nodeType===i.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.$_isDisposed||this.positioningDisabled)return;const n={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&n.middleware.push(Vo({mainAxis:this.distance,crossAxis:this.skidding}));const i=this.placement.startsWith("auto");if(i?n.middleware.push(zo({alignment:this.placement.split("-")[1]??""})):n.placement=this.placement,this.preventOverflow&&(this.shift&&n.middleware.push(jo({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!i&&this.flip&&n.middleware.push(Bo({padding:this.overflowPadding,boundary:this.boundary}))),n.middleware.push(Do({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&n.middleware.push({name:"arrowOverflow",fn:({placement:e,rects:r,middlewareData:o})=>{let a;const{centerOffset:s}=o.arrow;return e.startsWith("top")||e.startsWith("bottom")?a=Math.abs(s)>r.reference.width/2:a=Math.abs(s)>r.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const e=this.autoSize?this.autoSize:this.autoMinSize?"min":null;n.middleware.push({name:"autoSize",fn:({rects:r,placement:o,middlewareData:a})=>{var s;if((s=a.autoSize)!=null&&s.skip)return{};let u,c;return o.startsWith("top")||o.startsWith("bottom")?u=r.reference.width:c=r.reference.height,this.$_innerNode.style[e==="min"?"minWidth":e==="max"?"maxWidth":"width"]=u!=null?`${u}px`:null,this.$_innerNode.style[e==="min"?"minHeight":e==="max"?"maxHeight":"height"]=c!=null?`${c}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,n.middleware.push(Fo({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:r})=>{this.$_innerNode.style.maxWidth=e!=null?`${e}px`:null,this.$_innerNode.style.maxHeight=r!=null?`${r}px`:null}})));const t=await Wo(this.$_referenceNode,this.$_popperNode,n);Object.assign(this.result,{x:t.x,y:t.y,placement:t.placement,strategy:t.strategy,arrow:{...t.middlewareData.arrow,...t.middlewareData.arrowOverflow}})},$_scheduleShow(n=null,i=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),be&&this.instantMove&&be.instantMove&&be!==this.parentPopper){be.$_applyHide(!0),this.$_applyShow(!0);return}i?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(n=null,i=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(be=this),i?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(n){const i=this.delay;return parseInt(i&&i[n]||i||0)},async $_applyShow(n=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=n,!this.isShown&&(this.$_ensureTeleport(),await Ft(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...xt(this.$_referenceNode),...xt(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const i=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(".v-popper__wrapper"),e=t.parentNode.getBoundingClientRect(),r=i.x+i.width/2-(e.left+t.offsetLeft),o=i.y+i.height/2-(e.top+t.offsetTop);this.result.transformOrigin=`${r}px ${o}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const n=this.showGroup;if(n){let i;for(let t=0;t<oe.length;t++)i=oe[t],i.showGroup!==n&&(i.hide(),i.$emit("close-group"))}oe.push(this),document.body.classList.add("v-popper--some-open");for(const i of mr(this.theme))Pr(i).push(this),document.body.classList.add(`v-popper--some-open--${i}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Ft(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(n=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=n,br(oe,this),oe.length===0&&document.body.classList.remove("v-popper--some-open");for(const t of mr(this.theme)){const e=Pr(t);br(e,this),e.length===0&&document.body.classList.remove(`v-popper--some-open--${t}`)}be===this&&(be=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const i=this.disposeTimeout;i!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},i)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Ft(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let n=this.container;if(typeof n=="string"?n=window.document.querySelector(n):n===!1&&(n=this.$_targetNodes[0].parentNode),!n)throw new Error("No container for popover: "+this.container);n.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const n=t=>{this.isShown&&!this.$_hideInProgress||(t.usedByTooltip=!0,!this.$_preventShow&&this.show({event:t}))};this.$_registerTriggerListeners(this.$_targetNodes,_r,this.triggers,this.showTriggers,n),this.$_registerTriggerListeners([this.$_popperNode],_r,this.popperTriggers,this.popperShowTriggers,n);const i=t=>{t.usedByTooltip||this.hide({event:t})};this.$_registerTriggerListeners(this.$_targetNodes,yr,this.triggers,this.hideTriggers,i),this.$_registerTriggerListeners([this.$_popperNode],yr,this.popperTriggers,this.popperHideTriggers,i)},$_registerEventListeners(n,i,t){this.$_events.push({targetNodes:n,eventType:i,handler:t}),n.forEach(e=>e.addEventListener(i,t,xe?{passive:!0}:void 0))},$_registerTriggerListeners(n,i,t,e,r){let o=t;e!=null&&(o=typeof e=="function"?e(o):e),o.forEach(a=>{const s=i[a];s&&this.$_registerEventListeners(n,s,r)})},$_removeEventListeners(n){const i=[];this.$_events.forEach(t=>{const{targetNodes:e,eventType:r,handler:o}=t;!n||n===r?e.forEach(a=>a.removeEventListener(r,o)):i.push(t)}),this.$_events=i},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(n,i=!1){this.$_showFrameLocked||(this.hide({event:n}),n.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),i&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(n,i){for(const t of this.$_targetNodes){const e=t.getAttribute(n);e&&(t.removeAttribute(n),t.setAttribute(i,e))}},$_applyAttrsToTarget(n){for(const i of this.$_targetNodes)for(const t in n){const e=n[t];e==null?i.removeAttribute(t):i.setAttribute(t,e)}},$_updateParentShownChildren(n){let i=this.parentPopper;for(;i;)n?i.shownChildren.add(this.randomId):(i.shownChildren.delete(this.randomId),i.$_pendingHide&&i.hide()),i=i.parentPopper},$_isAimingPopper(){const n=this.$_referenceNode.getBoundingClientRect();if(Ke>=n.left&&Ke<=n.right&&Ze>=n.top&&Ze<=n.bottom){const i=this.$_popperNode.getBoundingClientRect(),t=Ke-ve,e=Ze-pe,r=i.left+i.width/2-ve+(i.top+i.height/2)-pe+i.width+i.height,o=ve+t*r,a=pe+e*r;return ft(ve,pe,o,a,i.left,i.top,i.left,i.bottom)||ft(ve,pe,o,a,i.left,i.top,i.right,i.top)||ft(ve,pe,o,a,i.right,i.top,i.right,i.bottom)||ft(ve,pe,o,a,i.left,i.bottom,i.right,i.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(ii?(document.addEventListener("touchstart",xr,xe?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",Yo,xe?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",xr,!0),window.addEventListener("click",Xo,!0)),window.addEventListener("resize",Jo));function xr(n){for(let i=0;i<oe.length;i++){const t=oe[i];try{const e=t.popperNode();t.$_mouseDownContains=e.contains(n.target)}catch{}}}function Xo(n){si(n)}function Yo(n){si(n,!0)}function si(n,i=!1){const t={};for(let e=oe.length-1;e>=0;e--){const r=oe[e];try{const o=r.$_containsGlobalTarget=Ko(r,n);r.$_pendingHide=!1,requestAnimationFrame(()=>{if(r.$_pendingHide=!1,!t[r.randomId]&&Or(r,o,n)){if(r.$_handleGlobalClose(n,i),!n.closeAllPopover&&n.closePopover&&o){let s=r.parentPopper;for(;s;)t[s.randomId]=!0,s=s.parentPopper;return}let a=r.parentPopper;for(;a&&Or(a,a.$_containsGlobalTarget,n);)a.$_handleGlobalClose(n,i),a=a.parentPopper}})}catch{}}}function Ko(n,i){const t=n.popperNode();return n.$_mouseDownContains||t.contains(i.target)}function Or(n,i,t){return t.closeAllPopover||t.closePopover&&i||Zo(n,t)&&!i}function Zo(n,i){if(typeof n.autoHide=="function"){const t=n.autoHide(i);return n.lastAutoHide=t,t}return n.autoHide}function Jo(n){for(let i=0;i<oe.length;i++)oe[i].$_computePosition(n)}let ve=0,pe=0,Ke=0,Ze=0;typeof window<"u"&&window.addEventListener("mousemove",n=>{ve=Ke,pe=Ze,Ke=n.clientX,Ze=n.clientY},xe?{passive:!0}:void 0);function ft(n,i,t,e,r,o,a,s){const u=((a-r)*(i-o)-(s-o)*(n-r))/((s-o)*(t-n)-(a-r)*(e-i)),c=((t-n)*(i-o)-(e-i)*(n-r))/((s-o)*(t-n)-(a-r)*(e-i));return u>=0&&u<=1&&c>=0&&c<=1}const Qo={extends:ai()},zt=(n,i)=>{const t=n.__vccOpts||n;for(const[e,r]of i)t[e]=r;return t};function qo(n,i,t,e,r,o){return l.openBlock(),l.createElementBlock("div",{ref:"reference",class:l.normalizeClass(["v-popper",{"v-popper--shown":n.slotData.isShown}])},[l.renderSlot(n.$slots,"default",l.normalizeProps(l.guardReactiveProps(n.slotData)))],2)}const ea=zt(Qo,[["render",qo]]);function ta(){var n=window.navigator.userAgent,i=n.indexOf("MSIE ");if(i>0)return parseInt(n.substring(i+5,n.indexOf(".",i)),10);var t=n.indexOf("Trident/");if(t>0){var e=n.indexOf("rv:");return parseInt(n.substring(e+3,n.indexOf(".",e)),10)}var r=n.indexOf("Edge/");return r>0?parseInt(n.substring(r+5,n.indexOf(".",r)),10):-1}let vt;function rn(){rn.init||(rn.init=!0,vt=ta()!==-1)}var Bt={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){rn(),l.nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const n=document.createElement("object");this._resizeObject=n,n.setAttribute("aria-hidden","true"),n.setAttribute("tabindex",-1),n.onload=this.addResizeHandlers,n.type="text/html",vt&&this.$el.appendChild(n),n.data="about:blank",vt||this.$el.appendChild(n)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!vt&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const na=l.withScopeId();l.pushScopeId("data-v-b329ee4c");const ra={class:"resize-observer",tabindex:"-1"};l.popScopeId();const ia=na((n,i,t,e,r,o)=>(l.openBlock(),l.createBlock("div",ra)));Bt.render=ia;Bt.__scopeId="data-v-b329ee4c";Bt.__file="src/components/ResizeObserver.vue";const li=(n="theme")=>({computed:{themeClass(){return Uo(this[n])}}}),oa=l.defineComponent({name:"VPopperContent",components:{ResizeObserver:Bt},mixins:[li()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(n){return n!=null&&!isNaN(n)?`${n}px`:null}}}),aa=["id","aria-hidden","tabindex","data-popper-placement"],sa={ref:"inner",class:"v-popper__inner"},la=l.createBaseVNode("div",{class:"v-popper__arrow-outer"},null,-1),ua=l.createBaseVNode("div",{class:"v-popper__arrow-inner"},null,-1),ca=[la,ua];function fa(n,i,t,e,r,o){const a=l.resolveComponent("ResizeObserver");return l.openBlock(),l.createElementBlock("div",{id:n.popperId,ref:"popover",class:l.normalizeClass(["v-popper__popper",[n.themeClass,n.classes.popperClass,{"v-popper__popper--shown":n.shown,"v-popper__popper--hidden":!n.shown,"v-popper__popper--show-from":n.classes.showFrom,"v-popper__popper--show-to":n.classes.showTo,"v-popper__popper--hide-from":n.classes.hideFrom,"v-popper__popper--hide-to":n.classes.hideTo,"v-popper__popper--skip-transition":n.skipTransition,"v-popper__popper--arrow-overflow":n.result&&n.result.arrow.overflow,"v-popper__popper--no-positioning":!n.result}]]),style:l.normalizeStyle(n.result?{position:n.result.strategy,transform:`translate3d(${Math.round(n.result.x)}px,${Math.round(n.result.y)}px,0)`}:void 0),"aria-hidden":n.shown?"false":"true",tabindex:n.autoHide?0:void 0,"data-popper-placement":n.result?n.result.placement:void 0,onKeyup:i[2]||(i[2]=l.withKeys(s=>n.autoHide&&n.$emit("hide"),["esc"]))},[l.createBaseVNode("div",{class:"v-popper__backdrop",onClick:i[0]||(i[0]=s=>n.autoHide&&n.$emit("hide"))}),l.createBaseVNode("div",{class:"v-popper__wrapper",style:l.normalizeStyle(n.result?{transformOrigin:n.result.transformOrigin}:void 0)},[l.createBaseVNode("div",sa,[n.mounted?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createBaseVNode("div",null,[l.renderSlot(n.$slots,"default")]),n.handleResize?(l.openBlock(),l.createBlock(a,{key:0,onNotify:i[1]||(i[1]=s=>n.$emit("resize",s))})):l.createCommentVNode("",!0)],64)):l.createCommentVNode("",!0)],512),l.createBaseVNode("div",{ref:"arrow",class:"v-popper__arrow-container",style:l.normalizeStyle(n.result?{left:n.toPx(n.result.arrow.x),top:n.toPx(n.result.arrow.y)}:void 0)},ca,4)],4)],46,aa)}const ui=zt(oa,[["render",fa]]),ci={methods:{show(...n){return this.$refs.popper.show(...n)},hide(...n){return this.$refs.popper.hide(...n)},dispose(...n){return this.$refs.popper.dispose(...n)},onResize(...n){return this.$refs.popper.onResize(...n)}}},da=l.defineComponent({name:"VPopperWrapper",components:{Popper:ea,PopperContent:ui},mixins:[ci,li("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(n=>n!==this.$refs.popperContent.$el)}}});function ha(n,i,t,e,r,o){const a=l.resolveComponent("PopperContent"),s=l.resolveComponent("Popper");return l.openBlock(),l.createBlock(s,{ref:"popper",theme:n.finalTheme,"target-nodes":n.getTargetNodes,"popper-node":()=>n.$refs.popperContent.$el,class:l.normalizeClass([n.themeClass])},{default:l.withCtx(({popperId:u,isShown:c,shouldMountContent:f,skipTransition:h,autoHide:v,show:d,hide:p,handleResize:g,onResize:m,classes:_,result:y})=>[l.renderSlot(n.$slots,"default",{shown:c,show:d,hide:p}),l.createVNode(a,{ref:"popperContent","popper-id":u,theme:n.finalTheme,shown:c,mounted:f,"skip-transition":h,"auto-hide":v,"handle-resize":g,classes:_,result:y,onHide:p,onResize:m},{default:l.withCtx(()=>[l.renderSlot(n.$slots,"popper",{shown:c,hide:p})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}const Rn=zt(da,[["render",ha]]),va={...Rn,name:"VDropdown",vPopperTheme:"dropdown"},pa={...Rn,name:"VMenu",vPopperTheme:"menu"},ga={...Rn,name:"VTooltip",vPopperTheme:"tooltip"},ma=l.defineComponent({name:"VTooltipDirective",components:{Popper:ai(),PopperContent:ui},mixins:[ci],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:n=>nt(n.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:n=>nt(n.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(n){if(typeof this.content=="function"&&this.$_isShown&&(n||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const i=++this.$_fetchId,t=this.content(this);t.then?t.then(e=>this.onResult(i,e)):this.onResult(i,t)}},onResult(n,i){n===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=i)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),_a=["innerHTML"],ya=["textContent"];function ba(n,i,t,e,r,o){const a=l.resolveComponent("PopperContent"),s=l.resolveComponent("Popper");return l.openBlock(),l.createBlock(s,l.mergeProps({ref:"popper"},n.$attrs,{theme:n.theme,"target-nodes":n.targetNodes,"popper-node":()=>n.$refs.popperContent.$el,onApplyShow:n.onShow,onApplyHide:n.onHide}),{default:l.withCtx(({popperId:u,isShown:c,shouldMountContent:f,skipTransition:h,autoHide:v,hide:d,handleResize:p,onResize:g,classes:m,result:_})=>[l.createVNode(a,{ref:"popperContent",class:l.normalizeClass({"v-popper--tooltip-loading":n.loading}),"popper-id":u,theme:n.theme,shown:c,mounted:f,"skip-transition":h,"auto-hide":v,"handle-resize":p,classes:m,result:_,onHide:d,onResize:g},{default:l.withCtx(()=>[n.html?(l.openBlock(),l.createElementBlock("div",{key:0,innerHTML:n.finalContent},null,8,_a)):(l.openBlock(),l.createElementBlock("div",{key:1,textContent:l.toDisplayString(n.finalContent)},null,8,ya))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const Ea=zt(ma,[["render",ba]]),fi="v-popper--has-tooltip";function Pa(n,i){let t=n.placement;if(!t&&i)for(const e of oi)i[e]&&(t=e);return t||(t=nt(n.theme||"tooltip","placement")),t}function di(n,i,t){let e;const r=typeof i;return r==="string"?e={content:i}:i&&r==="object"?e=i:e={content:!1},e.placement=Pa(e,t),e.targetNodes=()=>[n],e.referenceNode=()=>n,e}let Ht,rt,xa=0;function Oa(){if(Ht)return;rt=l.ref([]),Ht=l.createApp({name:"VTooltipDirectiveApp",setup(){return{directives:rt}},render(){return this.directives.map(i=>l.h(Ea,{...i.options,shown:i.shown||i.options.shown,key:i.id}))},devtools:{hide:!0}});const n=document.createElement("div");document.body.appendChild(n),Ht.mount(n)}function wa(n,i,t){Oa();const e=l.ref(di(n,i,t)),r=l.ref(!1),o={id:xa++,options:e,shown:r};return rt.value.push(o),n.classList&&n.classList.add(fi),n.$_popper={options:e,item:o,show(){r.value=!0},hide(){r.value=!1}}}function hi(n){if(n.$_popper){const i=rt.value.indexOf(n.$_popper.item);i!==-1&&rt.value.splice(i,1),delete n.$_popper,delete n.$_popperOldShown,delete n.$_popperMountTarget}n.classList&&n.classList.remove(fi)}function wr(n,{value:i,modifiers:t}){const e=di(n,i,t);if(!e.content||nt(e.theme||"tooltip","disabled"))hi(n);else{let r;n.$_popper?(r=n.$_popper,r.options.value=e):r=wa(n,i,t),typeof i.shown<"u"&&i.shown!==n.$_popperOldShown&&(n.$_popperOldShown=i.shown,i.shown?r.show():r.hide())}}const Ta={beforeMount:wr,updated:wr,beforeUnmount(n){hi(n)}};function Tr(n){n.addEventListener("click",vi),n.addEventListener("touchstart",pi,xe?{passive:!0}:!1)}function Sr(n){n.removeEventListener("click",vi),n.removeEventListener("touchstart",pi),n.removeEventListener("touchend",gi),n.removeEventListener("touchcancel",mi)}function vi(n){const i=n.currentTarget;n.closePopover=!i.$_vclosepopover_touch,n.closeAllPopover=i.$_closePopoverModifiers&&!!i.$_closePopoverModifiers.all}function pi(n){if(n.changedTouches.length===1){const i=n.currentTarget;i.$_vclosepopover_touch=!0;const t=n.changedTouches[0];i.$_vclosepopover_touchPoint=t,i.addEventListener("touchend",gi),i.addEventListener("touchcancel",mi)}}function gi(n){const i=n.currentTarget;if(i.$_vclosepopover_touch=!1,n.changedTouches.length===1){const t=n.changedTouches[0],e=i.$_vclosepopover_touchPoint;n.closePopover=Math.abs(t.screenY-e.screenY)<20&&Math.abs(t.screenX-e.screenX)<20,n.closeAllPopover=i.$_closePopoverModifiers&&!!i.$_closePopoverModifiers.all}}function mi(n){const i=n.currentTarget;i.$_vclosepopover_touch=!1}const Sa={beforeMount(n,{value:i,modifiers:t}){n.$_closePopoverModifiers=t,(typeof i>"u"||i)&&Tr(n)},updated(n,{value:i,oldValue:t,modifiers:e}){n.$_closePopoverModifiers=e,i!==t&&(typeof i>"u"||i?Tr(n):Sr(n))},beforeUnmount(n){Sr(n)}};function Ca(n,i={}){n.$_vTooltipInstalled||(n.$_vTooltipInstalled=!0,ri(he,i),n.directive("tooltip",Ta),n.directive("close-popper",Sa),n.component("VTooltip",ga),n.component("VDropdown",va),n.component("VMenu",pa))}const Ra={version:"2.0.0-beta.24",install:Ca,options:he};var _i={exports:{}};const ka=wn.getAugmentedNamespace(l.vue_esmBundler);(function(n,i){(function(e,r){n.exports=r(ka)})(typeof self<"u"?self:wn.commonjsGlobal,function(t){return function(e){var r={};function o(a){if(r[a])return r[a].exports;var s=r[a]={i:a,l:!1,exports:{}};return e[a].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=e,o.c=r,o.d=function(a,s,u){o.o(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:u})},o.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},o.t=function(a,s){if(s&1&&(a=o(a)),s&8||s&4&&typeof a=="object"&&a&&a.__esModule)return a;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:a}),s&2&&typeof a!="string")for(var c in a)o.d(u,c,function(f){return a[f]}.bind(null,c));return u},o.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return o.d(s,"a",s),s},o.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},o.p="",o(o.s="fb15")}({"00ee":function(e,r,o){var a=o("b622"),s=a("toStringTag"),u={};u[s]="z",e.exports=String(u)==="[object z]"},"0366":function(e,r,o){var a=o("1c0b");e.exports=function(s,u,c){if(a(s),u===void 0)return s;switch(c){case 0:return function(){return s.call(u)};case 1:return function(f){return s.call(u,f)};case 2:return function(f,h){return s.call(u,f,h)};case 3:return function(f,h,v){return s.call(u,f,h,v)}}return function(){return s.apply(u,arguments)}}},"06cf":function(e,r,o){var a=o("83ab"),s=o("d1e7"),u=o("5c6c"),c=o("fc6a"),f=o("c04e"),h=o("5135"),v=o("0cfb"),d=Object.getOwnPropertyDescriptor;r.f=a?d:function(g,m){if(g=c(g),m=f(m,!0),v)try{return d(g,m)}catch{}if(h(g,m))return u(!s.f.call(g,m),g[m])}},"0cfb":function(e,r,o){var a=o("83ab"),s=o("d039"),u=o("cc12");e.exports=!a&&!s(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"1be4":function(e,r,o){var a=o("d066");e.exports=a("document","documentElement")},"1c0b":function(e,r){e.exports=function(o){if(typeof o!="function")throw TypeError(String(o)+" is not a function");return o}},"1d80":function(e,r){e.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},"1dde":function(e,r,o){var a=o("d039"),s=o("b622"),u=o("2d00"),c=s("species");e.exports=function(f){return u>=51||!a(function(){var h=[],v=h.constructor={};return v[c]=function(){return{foo:1}},h[f](Boolean).foo!==1})}},"23cb":function(e,r,o){var a=o("a691"),s=Math.max,u=Math.min;e.exports=function(c,f){var h=a(c);return h<0?s(h+f,0):u(h,f)}},"23e7":function(e,r,o){var a=o("da84"),s=o("06cf").f,u=o("9112"),c=o("6eeb"),f=o("ce4e"),h=o("e893"),v=o("94ca");e.exports=function(d,p){var g=d.target,m=d.global,_=d.stat,y,b,E,x,C,I;if(m?b=a:_?b=a[g]||f(g,{}):b=(a[g]||{}).prototype,b)for(E in p){if(C=p[E],d.noTargetGet?(I=s(b,E),x=I&&I.value):x=b[E],y=v(m?E:g+(_?".":"#")+E,d.forced),!y&&x!==void 0){if(typeof C==typeof x)continue;h(C,x)}(d.sham||x&&x.sham)&&u(C,"sham",!0),c(b,E,C,d)}}},"241c":function(e,r,o){var a=o("ca84"),s=o("7839"),u=s.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(f){return a(f,u)}},"2d00":function(e,r,o){var a=o("da84"),s=o("342f"),u=a.process,c=u&&u.versions,f=c&&c.v8,h,v;f?(h=f.split("."),v=h[0]+h[1]):s&&(h=s.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=s.match(/Chrome\/(\d+)/),h&&(v=h[1]))),e.exports=v&&+v},"342f":function(e,r,o){var a=o("d066");e.exports=a("navigator","userAgent")||""},"37e8":function(e,r,o){var a=o("83ab"),s=o("9bf2"),u=o("825a"),c=o("df75");e.exports=a?Object.defineProperties:function(h,v){u(h);for(var d=c(v),p=d.length,g=0,m;p>g;)s.f(h,m=d[g++],v[m]);return h}},"3bbe":function(e,r,o){var a=o("861d");e.exports=function(s){if(!a(s)&&s!==null)throw TypeError("Can't set "+String(s)+" as a prototype");return s}},"428f":function(e,r,o){var a=o("da84");e.exports=a},"44ad":function(e,r,o){var a=o("d039"),s=o("c6b6"),u="".split;e.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return s(c)=="String"?u.call(c,""):Object(c)}:Object},4930:function(e,r,o){var a=o("d039");e.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(e,r,o){var a=o("fc6a"),s=o("50c4"),u=o("23cb"),c=function(f){return function(h,v,d){var p=a(h),g=s(p.length),m=u(d,g),_;if(f&&v!=v){for(;g>m;)if(_=p[m++],_!=_)return!0}else for(;g>m;m++)if((f||m in p)&&p[m]===v)return f||m||0;return!f&&-1}};e.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(e,r,o){var a=o("23e7"),s=o("b727").filter,u=o("1dde"),c=o("ae40"),f=u("filter"),h=c("filter");a({target:"Array",proto:!0,forced:!f||!h},{filter:function(d){return s(this,d,arguments.length>1?arguments[1]:void 0)}})},"50c4":function(e,r,o){var a=o("a691"),s=Math.min;e.exports=function(u){return u>0?s(a(u),9007199254740991):0}},5135:function(e,r){var o={}.hasOwnProperty;e.exports=function(a,s){return o.call(a,s)}},5692:function(e,r,o){var a=o("c430"),s=o("c6cd");(e.exports=function(u,c){return s[u]||(s[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,r,o){var a=o("d066"),s=o("241c"),u=o("7418"),c=o("825a");e.exports=a("Reflect","ownKeys")||function(h){var v=s.f(c(h)),d=u.f;return d?v.concat(d(h)):v}},5899:function(e,r){e.exports=`
|
|
2
|
+
\v\f\r \u2028\u2029\uFEFF`},"58a8":function(e,r,o){var a=o("1d80"),s=o("5899"),u="["+s+"]",c=RegExp("^"+u+u+"*"),f=RegExp(u+u+"*$"),h=function(v){return function(d){var p=String(a(d));return v&1&&(p=p.replace(c,"")),v&2&&(p=p.replace(f,"")),p}};e.exports={start:h(1),end:h(2),trim:h(3)}},"5c6c":function(e,r){e.exports=function(o,a){return{enumerable:!(o&1),configurable:!(o&2),writable:!(o&4),value:a}}},"652c":function(e,r,o){},"65f0":function(e,r,o){var a=o("861d"),s=o("e8b5"),u=o("b622"),c=u("species");e.exports=function(f,h){var v;return s(f)&&(v=f.constructor,typeof v=="function"&&(v===Array||s(v.prototype))?v=void 0:a(v)&&(v=v[c],v===null&&(v=void 0))),new(v===void 0?Array:v)(h===0?0:h)}},"69f3":function(e,r,o){var a=o("7f9a"),s=o("da84"),u=o("861d"),c=o("9112"),f=o("5135"),h=o("f772"),v=o("d012"),d=s.WeakMap,p,g,m,_=function(O){return m(O)?g(O):p(O,{})},y=function(O){return function(R){var T;if(!u(R)||(T=g(R)).type!==O)throw TypeError("Incompatible receiver, "+O+" required");return T}};if(a){var b=new d,E=b.get,x=b.has,C=b.set;p=function(O,R){return C.call(b,O,R),R},g=function(O){return E.call(b,O)||{}},m=function(O){return x.call(b,O)}}else{var I=h("state");v[I]=!0,p=function(O,R){return c(O,I,R),R},g=function(O){return f(O,I)?O[I]:{}},m=function(O){return f(O,I)}}e.exports={set:p,get:g,has:m,enforce:_,getterFor:y}},"6b0d":function(e,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=(a,s)=>{const u=a.__vccOpts||a;for(const[c,f]of s)u[c]=f;return u}},"6eeb":function(e,r,o){var a=o("da84"),s=o("9112"),u=o("5135"),c=o("ce4e"),f=o("8925"),h=o("69f3"),v=h.get,d=h.enforce,p=String(String).split("String");(e.exports=function(g,m,_,y){var b=y?!!y.unsafe:!1,E=y?!!y.enumerable:!1,x=y?!!y.noTargetGet:!1;if(typeof _=="function"&&(typeof m=="string"&&!u(_,"name")&&s(_,"name",m),d(_).source=p.join(typeof m=="string"?m:"")),g===a){E?g[m]=_:c(m,_);return}else b?!x&&g[m]&&(E=!0):delete g[m];E?g[m]=_:s(g,m,_)})(Function.prototype,"toString",function(){return typeof this=="function"&&v(this).source||f(this)})},7156:function(e,r,o){var a=o("861d"),s=o("d2bb");e.exports=function(u,c,f){var h,v;return s&&typeof(h=c.constructor)=="function"&&h!==f&&a(v=h.prototype)&&v!==f.prototype&&s(u,v),u}},7418:function(e,r){r.f=Object.getOwnPropertySymbols},7839:function(e,r){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7ae1":function(e,r,o){o("652c")},"7b0b":function(e,r,o){var a=o("1d80");e.exports=function(s){return Object(a(s))}},"7c73":function(e,r,o){var a=o("825a"),s=o("37e8"),u=o("7839"),c=o("d012"),f=o("1be4"),h=o("cc12"),v=o("f772"),d=">",p="<",g="prototype",m="script",_=v("IE_PROTO"),y=function(){},b=function(O){return p+m+d+O+p+"/"+m+d},E=function(O){O.write(b("")),O.close();var R=O.parentWindow.Object;return O=null,R},x=function(){var O=h("iframe"),R="java"+m+":",T;return O.style.display="none",f.appendChild(O),O.src=String(R),T=O.contentWindow.document,T.open(),T.write(b("document.F=Object")),T.close(),T.F},C,I=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch{}I=C?E(C):x();for(var O=u.length;O--;)delete I[g][u[O]];return I()};c[_]=!0,e.exports=Object.create||function(R,T){var D;return R!==null?(y[g]=a(R),D=new y,y[g]=null,D[_]=R):D=I(),T===void 0?D:s(D,T)}},"7f9a":function(e,r,o){var a=o("da84"),s=o("8925"),u=a.WeakMap;e.exports=typeof u=="function"&&/native code/.test(s(u))},"825a":function(e,r,o){var a=o("861d");e.exports=function(s){if(!a(s))throw TypeError(String(s)+" is not an object");return s}},"83ab":function(e,r,o){var a=o("d039");e.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(e,r,o){var a=o("c04e"),s=o("9bf2"),u=o("5c6c");e.exports=function(c,f,h){var v=a(f);v in c?s.f(c,v,u(0,h)):c[v]=h}},"861d":function(e,r){e.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},8875:function(e,r,o){var a,s,u;(function(c,f){s=[],a=f,u=typeof a=="function"?a.apply(r,s):a,u!==void 0&&(e.exports=u)})(typeof self<"u"?self:this,function(){function c(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(C){var h=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,v=/@([^@]*):(\d+):(\d+)\s*$/ig,d=h.exec(C.stack)||v.exec(C.stack),p=d&&d[1]||!1,g=d&&d[2]||!1,m=document.location.href.replace(document.location.hash,""),_,y,b,E=document.getElementsByTagName("script");p===m&&(_=document.documentElement.outerHTML,y=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),b=_.replace(y,"$1").trim());for(var x=0;x<E.length;x++)if(E[x].readyState==="interactive"||E[x].src===p||p===m&&E[x].innerHTML&&E[x].innerHTML.trim()===b)return E[x];return null}}return c})},8925:function(e,r,o){var a=o("c6cd"),s=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(u){return s.call(u)}),e.exports=a.inspectSource},"8bbf":function(e,r){e.exports=t},"90e3":function(e,r){var o=0,a=Math.random();e.exports=function(s){return"Symbol("+String(s===void 0?"":s)+")_"+(++o+a).toString(36)}},9112:function(e,r,o){var a=o("83ab"),s=o("9bf2"),u=o("5c6c");e.exports=a?function(c,f,h){return s.f(c,f,u(1,h))}:function(c,f,h){return c[f]=h,c}},"94ca":function(e,r,o){var a=o("d039"),s=/#|\.prototype\./,u=function(d,p){var g=f[c(d)];return g==v?!0:g==h?!1:typeof p=="function"?a(p):!!p},c=u.normalize=function(d){return String(d).replace(s,".").toLowerCase()},f=u.data={},h=u.NATIVE="N",v=u.POLYFILL="P";e.exports=u},"99af":function(e,r,o){var a=o("23e7"),s=o("d039"),u=o("e8b5"),c=o("861d"),f=o("7b0b"),h=o("50c4"),v=o("8418"),d=o("65f0"),p=o("1dde"),g=o("b622"),m=o("2d00"),_=g("isConcatSpreadable"),y=9007199254740991,b="Maximum allowed index exceeded",E=m>=51||!s(function(){var O=[];return O[_]=!1,O.concat()[0]!==O}),x=p("concat"),C=function(O){if(!c(O))return!1;var R=O[_];return R!==void 0?!!R:u(O)},I=!E||!x;a({target:"Array",proto:!0,forced:I},{concat:function(R){var T=f(this),D=d(T,0),A=0,$,z,H,w,P;for($=-1,H=arguments.length;$<H;$++)if(P=$===-1?T:arguments[$],C(P)){if(w=h(P.length),A+w>y)throw TypeError(b);for(z=0;z<w;z++,A++)z in P&&v(D,A,P[z])}else{if(A>=y)throw TypeError(b);v(D,A++,P)}return D.length=A,D}})},"9bf2":function(e,r,o){var a=o("83ab"),s=o("0cfb"),u=o("825a"),c=o("c04e"),f=Object.defineProperty;r.f=a?f:function(v,d,p){if(u(v),d=c(d,!0),u(p),s)try{return f(v,d,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported");return"value"in p&&(v[d]=p.value),v}},a691:function(e,r){var o=Math.ceil,a=Math.floor;e.exports=function(s){return isNaN(s=+s)?0:(s>0?a:o)(s)}},a9e3:function(e,r,o){var a=o("83ab"),s=o("da84"),u=o("94ca"),c=o("6eeb"),f=o("5135"),h=o("c6b6"),v=o("7156"),d=o("c04e"),p=o("d039"),g=o("7c73"),m=o("241c").f,_=o("06cf").f,y=o("9bf2").f,b=o("58a8").trim,E="Number",x=s[E],C=x.prototype,I=h(g(C))==E,O=function($){var z=d($,!1),H,w,P,S,Y,M,L,ie;if(typeof z=="string"&&z.length>2){if(z=b(z),H=z.charCodeAt(0),H===43||H===45){if(w=z.charCodeAt(2),w===88||w===120)return NaN}else if(H===48){switch(z.charCodeAt(1)){case 66:case 98:P=2,S=49;break;case 79:case 111:P=8,S=55;break;default:return+z}for(Y=z.slice(2),M=Y.length,L=0;L<M;L++)if(ie=Y.charCodeAt(L),ie<48||ie>S)return NaN;return parseInt(Y,P)}}return+z};if(u(E,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var R=function(z){var H=arguments.length<1?0:z,w=this;return w instanceof R&&(I?p(function(){C.valueOf.call(w)}):h(w)!=E)?v(new x(O(H)),w,R):O(H)},T=a?m(x):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),D=0,A;T.length>D;D++)f(x,A=T[D])&&!f(R,A)&&y(R,A,_(x,A));R.prototype=C,C.constructor=R,c(s,E,R)}},ae40:function(e,r,o){var a=o("83ab"),s=o("d039"),u=o("5135"),c=Object.defineProperty,f={},h=function(v){throw v};e.exports=function(v,d){if(u(f,v))return f[v];d||(d={});var p=[][v],g=u(d,"ACCESSORS")?d.ACCESSORS:!1,m=u(d,0)?d[0]:h,_=u(d,1)?d[1]:void 0;return f[v]=!!p&&!s(function(){if(g&&!a)return!0;var y={length:-1};g?c(y,1,{enumerable:!0,get:h}):y[1]=1,p.call(y,m,_)})}},b041:function(e,r,o){var a=o("00ee"),s=o("f5df");e.exports=a?{}.toString:function(){return"[object "+s(this)+"]"}},b622:function(e,r,o){var a=o("da84"),s=o("5692"),u=o("5135"),c=o("90e3"),f=o("4930"),h=o("fdbf"),v=s("wks"),d=a.Symbol,p=h?d:d&&d.withoutSetter||c;e.exports=function(g){return u(v,g)||(f&&u(d,g)?v[g]=d[g]:v[g]=p("Symbol."+g)),v[g]}},b727:function(e,r,o){var a=o("0366"),s=o("44ad"),u=o("7b0b"),c=o("50c4"),f=o("65f0"),h=[].push,v=function(d){var p=d==1,g=d==2,m=d==3,_=d==4,y=d==6,b=d==5||y;return function(E,x,C,I){for(var O=u(E),R=s(O),T=a(x,C,3),D=c(R.length),A=0,$=I||f,z=p?$(E,D):g?$(E,0):void 0,H,w;D>A;A++)if((b||A in R)&&(H=R[A],w=T(H,A,O),d)){if(p)z[A]=w;else if(w)switch(d){case 3:return!0;case 5:return H;case 6:return A;case 2:h.call(z,H)}else if(_)return!1}return y?-1:m||_?_:z}};e.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6)}},c04e:function(e,r,o){var a=o("861d");e.exports=function(s,u){if(!a(s))return s;var c,f;if(u&&typeof(c=s.toString)=="function"&&!a(f=c.call(s))||typeof(c=s.valueOf)=="function"&&!a(f=c.call(s))||!u&&typeof(c=s.toString)=="function"&&!a(f=c.call(s)))return f;throw TypeError("Can't convert object to primitive value")}},c430:function(e,r){e.exports=!1},c6b6:function(e,r){var o={}.toString;e.exports=function(a){return o.call(a).slice(8,-1)}},c6cd:function(e,r,o){var a=o("da84"),s=o("ce4e"),u="__core-js_shared__",c=a[u]||s(u,{});e.exports=c},c8ba:function(e,r){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}e.exports=o},ca84:function(e,r,o){var a=o("5135"),s=o("fc6a"),u=o("4d64").indexOf,c=o("d012");e.exports=function(f,h){var v=s(f),d=0,p=[],g;for(g in v)!a(c,g)&&a(v,g)&&p.push(g);for(;h.length>d;)a(v,g=h[d++])&&(~u(p,g)||p.push(g));return p}},cc12:function(e,r,o){var a=o("da84"),s=o("861d"),u=a.document,c=s(u)&&s(u.createElement);e.exports=function(f){return c?u.createElement(f):{}}},ce4e:function(e,r,o){var a=o("da84"),s=o("9112");e.exports=function(u,c){try{s(a,u,c)}catch{a[u]=c}return c}},d012:function(e,r){e.exports={}},d039:function(e,r){e.exports=function(o){try{return!!o()}catch{return!0}}},d066:function(e,r,o){var a=o("428f"),s=o("da84"),u=function(c){return typeof c=="function"?c:void 0};e.exports=function(c,f){return arguments.length<2?u(a[c])||u(s[c]):a[c]&&a[c][f]||s[c]&&s[c][f]}},d1e7:function(e,r,o){var a={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,u=s&&!a.call({1:2},1);r.f=u?function(f){var h=s(this,f);return!!h&&h.enumerable}:a},d2bb:function(e,r,o){var a=o("825a"),s=o("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,c={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(c,[]),u=c instanceof Array}catch{}return function(v,d){return a(v),s(d),u?f.call(v,d):v.__proto__=d,v}}():void 0)},d3b7:function(e,r,o){var a=o("00ee"),s=o("6eeb"),u=o("b041");a||s(Object.prototype,"toString",u,{unsafe:!0})},da84:function(e,r,o){(function(a){var s=function(u){return u&&u.Math==Math&&u};e.exports=s(typeof globalThis=="object"&&globalThis)||s(typeof window=="object"&&window)||s(typeof self=="object"&&self)||s(typeof a=="object"&&a)||Function("return this")()}).call(this,o("c8ba"))},df75:function(e,r,o){var a=o("ca84"),s=o("7839");e.exports=Object.keys||function(c){return a(c,s)}},e893:function(e,r,o){var a=o("5135"),s=o("56ef"),u=o("06cf"),c=o("9bf2");e.exports=function(f,h){for(var v=s(h),d=c.f,p=u.f,g=0;g<v.length;g++){var m=v[g];a(f,m)||d(f,m,p(h,m))}}},e8b5:function(e,r,o){var a=o("c6b6");e.exports=Array.isArray||function(u){return a(u)=="Array"}},f5df:function(e,r,o){var a=o("00ee"),s=o("c6b6"),u=o("b622"),c=u("toStringTag"),f=s(function(){return arguments}())=="Arguments",h=function(v,d){try{return v[d]}catch{}};e.exports=a?s:function(v){var d,p,g;return v===void 0?"Undefined":v===null?"Null":typeof(p=h(d=Object(v),c))=="string"?p:f?s(d):(g=s(d))=="Object"&&typeof d.callee=="function"?"Arguments":g}},f772:function(e,r,o){var a=o("5692"),s=o("90e3"),u=a("keys");e.exports=function(c){return u[c]||(u[c]=s(c))}},fb15:function(e,r,o){if(o.r(r),o.d(r,"InnerImageZoom",function(){return z}),typeof window<"u"){var a=window.document.currentScript;{var s=o("8875");a=s(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:s})}var u=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(o.p=u[1])}function c(w,P,S){return P in w?Object.defineProperty(w,P,{value:S,enumerable:!0,configurable:!0,writable:!0}):w[P]=S,w}o("99af");var f=o("8bbf"),h={key:0},v=["srcSet","sizes","media","type"],d=["src","srcSet","sizes","alt"],p=["src","srcSet","sizes","alt"],g={class:"iiz__zoom-portal"},m=["src"],_=["src"],y={key:1,class:"iiz__btn iiz__hint"};function b(w,P,S,Y,M,L){var ie;return Object(f.openBlock)(),Object(f.createElementBlock)("figure",Object(f.mergeProps)({class:["iiz",(ie={},c(ie,S.className,S.className),c(ie,"iiz--drag",M.currentMoveType==="drag"),ie)],ref:"img",style:{width:"".concat(S.width,"px")}},Object(f.toHandlers)({touchstart:M.isZoomed?function(){}:L.handleTouchStart,click:L.handleClick,mouseenter:M.isTouch?function(){}:L.handleMouseEnter,mousemove:M.currentMoveType==="drag"||!M.isZoomed?function(){}:L.handleMouseMove,mouseleave:M.isTouch?function(){}:L.handleMouseLeave})),[Object(f.createElementVNode)("div",{style:Object(f.normalizeStyle)({paddingTop:L.createSpacer?"".concat(S.height/S.width*100,"%"):null})},[L.validSources?(Object(f.openBlock)(),Object(f.createElementBlock)("picture",h,[(Object(f.openBlock)(!0),Object(f.createElementBlock)(f.Fragment,null,Object(f.renderList)(L.validSources,function(Ce,ut){return Object(f.openBlock)(),Object(f.createElementBlock)("source",{key:ut,srcSet:Ce.srcSet,sizes:Ce.sizes,media:Ce.media,type:Ce.type},null,8,v)}),128)),Object(f.createElementVNode)("img",{class:Object(f.normalizeClass)(["iiz__img",{"iiz__img--hidden":M.isZoomed,"iiz__img--abs":L.createSpacer}]),style:Object(f.normalizeStyle)({transition:"linear 0ms opacity ".concat(M.isZoomed?S.fadeDuration:0,"ms, linear 0ms visibility ").concat(M.isZoomed?S.fadeDuration:0,"ms")}),src:S.src,srcSet:S.srcSet,sizes:S.sizes,alt:S.alt},null,14,d)])):(Object(f.openBlock)(),Object(f.createElementBlock)("img",{key:1,class:Object(f.normalizeClass)(["iiz__img",{"iiz__img--hidden":M.isZoomed,"iiz__img--abs":L.createSpacer}]),style:Object(f.normalizeStyle)({transition:"linear 0ms opacity ".concat(M.isZoomed?S.fadeDuration:0,"ms, linear 0ms visibility ").concat(M.isZoomed?S.fadeDuration:0,"ms")}),src:S.src,srcSet:S.srcSet,sizes:S.sizes,alt:S.alt},null,14,p))],4),M.isActive?(Object(f.openBlock)(),Object(f.createElementBlock)(f.Fragment,{key:0},[M.isFullscreen?(Object(f.openBlock)(),Object(f.createBlock)(f.Teleport,{key:0,to:"body"},[Object(f.createElementVNode)("div",g,[Object(f.createElementVNode)("img",Object(f.mergeProps)({class:["iiz__zoom-img",{"iiz__zoom-img--visible":M.isZoomed}],alt:"",draggable:!1,style:{top:"".concat(M.top,"px"),left:"".concat(M.left,"px"),transition:"linear ".concat(M.isFullscreen?0:S.fadeDuration,"ms opacity, linear ").concat(M.isFullscreen?0:S.fadeDuration,"ms visibility")},src:S.zoomSrc||S.src},Object(f.toHandlers)({load:L.handleLoad,touchstart:L.handleDragStart,touchend:L.handleDragEnd,mousedown:L.handleDragStart,mouseup:L.handleDragEnd,click:L.handleClick})),null,16,m),M.isTouch&&!S.hideCloseButton?(Object(f.openBlock)(),Object(f.createElementBlock)("button",{key:0,type:"button",class:Object(f.normalizeClass)(["iiz__btn iiz__close",{"iiz__close--visible":M.isZoomed}]),"aria-label":"Zoom Out",style:Object(f.normalizeStyle)({transition:"linear ".concat(M.isFullscreen?0:S.fadeDuration,"ms opacity, linear ").concat(M.isFullscreen?0:S.fadeDuration,"ms visibility")}),onClick:P[0]||(P[0]=Object(f.withModifiers)(function(){return L.handleClose&&L.handleClose.apply(L,arguments)},["stop"]))},null,6)):Object(f.createCommentVNode)("",!0)])])):(Object(f.openBlock)(),Object(f.createElementBlock)(f.Fragment,{key:1},[Object(f.createElementVNode)("img",Object(f.mergeProps)({class:["iiz__zoom-img",{"iiz__zoom-img--visible":M.isZoomed}],alt:"",draggable:!1,style:{top:"".concat(M.top,"px"),left:"".concat(M.left,"px"),transition:"linear ".concat(M.isFullscreen?0:S.fadeDuration,"ms opacity, linear ").concat(M.isFullscreen?0:S.fadeDuration,"ms visibility")},src:S.zoomSrc||S.src},Object(f.toHandlers)({load:L.handleLoad,touchstart:L.handleDragStart,touchend:L.handleDragEnd,mousedown:L.handleDragStart,mouseup:L.handleDragEnd})),null,16,_),M.isTouch&&!S.hideCloseButton?(Object(f.openBlock)(),Object(f.createElementBlock)("button",{key:0,class:Object(f.normalizeClass)(["iiz__btn iiz__close",{"iiz__close--visible":M.isZoomed}]),type:"button","aria-label":"Zoom Out",style:Object(f.normalizeStyle)({transition:"linear ".concat(M.isFullscreen?0:S.fadeDuration,"ms opacity, linear ").concat(M.isFullscreen?0:S.fadeDuration,"ms visibility")}),onClick:P[1]||(P[1]=Object(f.withModifiers)(function(){return L.handleClose&&L.handleClose.apply(L,arguments)},["stop"]))},null,6)):Object(f.createCommentVNode)("",!0)],64))],64)):Object(f.createCommentVNode)("",!0),!M.isZoomed&&!S.hideHint?(Object(f.openBlock)(),Object(f.createElementBlock)("span",y)):Object(f.createCommentVNode)("",!0)],16)}o("a9e3"),o("4de4"),o("d3b7");var E={name:"InnerImageZoom",props:{moveType:{type:String,default:"pan"},zoomType:{type:String,default:"click"},src:{type:String,required:!0},srcSet:String,sizes:String,sources:Array,width:Number,height:Number,hasSpacer:Boolean,zoomSrc:String,zoomScale:{type:Number,default:1},zoomPreload:Boolean,alt:String,fadeDuration:{type:Number,default:150},fullscreenOnMobile:Boolean,mobileBreakpoint:{type:Number,default:640},hideHint:Boolean,hideCloseButton:Boolean,className:String,afterZoomIn:Function,afterZoomOut:Function},data:function(){return{isActive:this.zoomPreload||!1,isTouch:!1,isZoomed:!1,isFullscreen:!1,isDragging:!1,currentMoveType:this.moveType,left:0,top:0,imgProps:{}}},created:function(){this.setDefaults(),O(this.fullscreenOnMobile,this.mobileBreakpoint)&&(this.isActive=!1)},computed:{validSources:function(){return this.sources?this.sources.filter(function(P){return P.srcSet}):[]},createSpacer:function(){return this.width&&this.height&&this.hasSpacer}},methods:{handleMouseEnter:function(P){this.isActive=!0,this.zoomType==="hover"&&!this.isZoomed&&this.handleClick(P)},handleTouchStart:function(){this.isTouch=!0,this.isFullscreen=O(this.fullscreenOnMobile,this.mobileBreakpoint),this.currentMoveType="drag"},handleClick:function(P){if(this.isZoomed){this.isTouch?this.hideCloseButton&&this.handleClose():!this.isDragging&&this.zoomOut();return}this.isTouch&&(this.isActive=!0),this.imgProps.zoomImg?(this.handleLoad({target:this.imgProps.zoomImg}),this.zoomIn(P.pageX,P.pageY)):this.imgProps.onLoadCallback=this.zoomIn.bind(this,P.pageX,P.pageY)},handleLoad:function(P){var S=R(P.target,this.zoomScale);this.imgProps.zoomImg=P.target,this.imgProps.zoomImg.setAttribute("width",S.width),this.imgProps.zoomImg.setAttribute("height",S.height),this.imgProps.scaledDimensions=S,this.imgProps.bounds=x(this.$refs.img,!1),this.imgProps.ratios=I(this.imgProps.bounds,S),this.imgProps.onLoadCallback&&(this.imgProps.onLoadCallback(),this.imgProps.onLoadCallback=null)},handleMouseMove:function(P){var S=P.pageX-this.imgProps.offsets.x,Y=P.pageY-this.imgProps.offsets.y;S=Math.max(Math.min(S,this.imgProps.bounds.width),0),Y=Math.max(Math.min(Y,this.imgProps.bounds.height),0),this.left=S*-this.imgProps.ratios.x,this.top=Y*-this.imgProps.ratios.y},handleDragStart:function(P){this.imgProps.offsets=C(P.pageX||P.changedTouches[0].pageX,P.pageY||P.changedTouches[0].pageY,this.imgProps.zoomImg.offsetLeft,this.imgProps.zoomImg.offsetTop),this.imgProps.zoomImg.addEventListener(this.isTouch?"touchmove":"mousemove",this.handleDragMove,{passive:!0}),this.isTouch||(this.imgProps.eventPosition={x:P.pageX,y:P.pageY})},handleDragMove:function(P){var S=(P.pageX||P.changedTouches[0].pageX)-this.imgProps.offsets.x,Y=(P.pageY||P.changedTouches[0].pageY)-this.imgProps.offsets.y;S=Math.max(Math.min(S,0),(this.imgProps.scaledDimensions.width-this.imgProps.bounds.width)*-1),Y=Math.max(Math.min(Y,0),(this.imgProps.scaledDimensions.height-this.imgProps.bounds.height)*-1),this.left=S,this.top=Y},handleDragEnd:function(P){if(this.imgProps.zoomImg.removeEventListener(this.isTouch?"touchmove":"mousemove",this.handleDragMove),!this.isTouch){var S=Math.abs(P.pageX-this.imgProps.eventPosition.x),Y=Math.abs(P.pageY-this.imgProps.eventPosition.y);this.isDragging=S>5||Y>5}},handleMouseLeave:function(P){this.currentMoveType==="drag"&&this.isZoomed?this.handleDragEnd(P):this.handleClose()},handleClose:function(){var P=this;this.zoomOut(function(){setTimeout(function(){(P.zoomPreload&&P.isTouch||!P.zoomPreload)&&(P.isActive=!1,P.setDefaults()),P.isTouch=!1,P.isFullscreen=!1,P.currentMoveType=P.moveType},P.isFullscreen?0:P.fadeDuration)})},initialMove:function(P,S){this.imgProps.offsets=C(window.pageXOffset,window.pageYOffset,-this.imgProps.bounds.left,-this.imgProps.bounds.top),this.handleMouseMove({pageX:P,pageY:S})},initialDragMove:function(P,S){var Y=(P-(window.pageXOffset+this.imgProps.bounds.left))*-this.imgProps.ratios.x,M=(S-(window.pageYOffset+this.imgProps.bounds.top))*-this.imgProps.ratios.y;Y=Y+(this.isFullscreen?(window.innerWidth-this.imgProps.bounds.width)/2:0),M=M+(this.isFullscreen?(window.innerHeight-this.imgProps.bounds.height)/2:0),this.imgProps.bounds=x(this.$refs.img,this.isFullscreen),this.imgProps.offsets=C(0,0,0,0),this.handleDragMove({changedTouches:[{pageX:Y,pageY:M}],preventDefault:function(){},stopPropagation:function(){}})},zoomIn:function(P,S){var Y=this.currentMoveType==="drag"?this.initialDragMove:this.initialMove;this.isZoomed=!0,Y(P,S),this.afterZoomIn&&this.afterZoomIn()},zoomOut:function(P){this.isZoomed=!1,this.afterZoomOut&&this.afterZoomOut(),P&&P()},setDefaults:function(){this.imgProps.onLoadCallback=null,this.imgProps.zoomImg=null,this.imgProps.bounds={},this.imgProps.offsets={},this.imgProps.ratios={},this.imgProps.eventPosition={},this.imgProps.scaledDimensions={}}}};function x(w,P){return P?{width:window.innerWidth,height:window.innerHeight,left:0,top:0}:w.getBoundingClientRect()}function C(w,P,S,Y){return{x:w-S,y:P-Y}}function I(w,P){return{x:(P.width-w.width)/w.width,y:(P.height-w.height)/w.height}}function O(w,P){return w&&window.matchMedia&&window.matchMedia("(max-width: ".concat(P,"px)")).matches}function R(w,P){return{width:w.naturalWidth*P,height:w.naturalHeight*P}}o("7ae1");var T=o("6b0d"),D=o.n(T),$=D()(E,[["render",b],["__scopeId","data-v-d1255c78"]]),z=$,H=z;r.default=H},fc6a:function(e,r,o){var a=o("44ad"),s=o("1d80");e.exports=function(u){return a(s(u))}},fdbf:function(e,r,o){var a=o("4930");e.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}})})})(_i);var Ia=_i.exports;const Cr=wn.getDefaultExportFromCjs(Ia);var Na=function(){function n(){this.keys=[],this.values=[]}var i=n.prototype;return i.get=function(t){return this.values[this.keys.indexOf(t)]},i.set=function(t,e){var r=this.keys,o=this.values,a=r.indexOf(t),s=a===-1?r.length:a;r[s]=t,o[s]=e},n}(),Aa=function(){function n(){this.object={}}var i=n.prototype;return i.get=function(t){return this.object[t]},i.set=function(t,e){this.object[t]=e},n}(),Da=typeof Map=="function",Ma=function(){function n(){}var i=n.prototype;return i.connect=function(t,e){this.prev=t,this.next=e,t&&(t.next=this),e&&(e.prev=this)},i.disconnect=function(){var t=this.prev,e=this.next;t&&(t.next=e),e&&(e.prev=t)},i.getIndex=function(){for(var t=this,e=-1;t;)t=t.prev,++e;return e},n}();function za(n,i){var t=[],e=[];return n.forEach(function(r){var o=r[0],a=r[1],s=new Ma;t[o]=s,e[a]=s}),t.forEach(function(r,o){r.connect(t[o-1])}),n.filter(function(r,o){return!i[o]}).map(function(r,o){var a=r[0],s=r[1];if(a===s)return[0,0];var u=t[a],c=e[s-1],f=u.getIndex();u.disconnect(),c?u.connect(c,c.next):u.connect(void 0,t[0]);var h=u.getIndex();return[f,h]})}var Ba=function(){function n(t,e,r,o,a,s,u,c){this.prevList=t,this.list=e,this.added=r,this.removed=o,this.changed=a,this.maintained=s,this.changedBeforeAdded=u,this.fixed=c}var i=n.prototype;return Object.defineProperty(i,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(i,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),i.caculateOrdered=function(){var t=za(this.changedBeforeAdded,this.fixed),e=this.changed,r=[];this.cacheOrdered=t.filter(function(o,a){var s=o[0],u=o[1],c=e[a],f=c[0],h=c[1];if(s!==u)return r.push([f,h]),!0}),this.cachePureChanged=r},n}();function La(n,i,t){var e=Da?Map:t?Aa:Na,r=t||function(y){return y},o=[],a=[],s=[],u=n.map(r),c=i.map(r),f=new e,h=new e,v=[],d=[],p={},g=[],m=0,_=0;return u.forEach(function(y,b){f.set(y,b)}),c.forEach(function(y,b){h.set(y,b)}),u.forEach(function(y,b){var E=h.get(y);typeof E>"u"?(++_,a.push(b)):p[E]=_}),c.forEach(function(y,b){var E=f.get(y);typeof E>"u"?(o.push(b),++m):(s.push([E,b]),_=p[b]||0,v.push([E-_,b-m]),d.push(b===E),E!==b&&g.push([E,b]))}),a.reverse(),new Ba(n,i,o,a,g,s,v,d)}var Va=function(){function n(t,e){t===void 0&&(t=[]),this.findKeyCallback=e,this.list=[].slice.call(t)}var i=n.prototype;return i.update=function(t){var e=[].slice.call(t),r=La(this.list,e,this.findKeyCallback);return this.list=e,r},n}();const Rr=Va;/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
5
5
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -12,7 +12,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */function _i(n){var i=typeof Symbol=="function"&&Symbol.iterator,t=i&&n[i],e=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&e>=n.length&&(n=void 0),{value:n&&n[e++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function Va(n,i){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var e=t.call(n),r,o=[],a;try{for(;(i===void 0||i-- >0)&&!(r=e.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(t=e.return)&&t.call(e)}finally{if(a)throw a.error}}return o}function $t(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(Va(arguments[i]));return n}var je=function(n){return typeof n>"u"},nn=function(){function n(t,e){var r,o;if(this._canceled=!1,e)try{for(var a=_i(Object.keys(e)),s=a.next();!s.done;s=a.next()){var u=s.value;this[u]=e[u]}}catch(c){r={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}this.eventType=t}var i=n.prototype;return i.stop=function(){this._canceled=!0},i.isCanceled=function(){return this._canceled},n}(),Se=function(){function n(){this._eventHandler={}}var i=n.prototype;return i.trigger=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var o=t instanceof nn?t.eventType:t,a=$t(this._eventHandler[o]||[]);return a.length<=0?this:(t instanceof nn?(t.currentTarget=this,a.forEach(function(s){s(t)})):a.forEach(function(s){s.apply(void 0,$t(e))}),this)},i.once=function(t,e){var r=this;if(typeof t=="object"&&je(e)){var o=t;for(var a in o)this.once(a,o[a]);return this}else if(typeof t=="string"&&typeof e=="function"){var s=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];e.apply(void 0,$t(u)),r.off(t,s)};this.on(t,s)}return this},i.hasOn=function(t){return!!this._eventHandler[t]},i.on=function(t,e){if(typeof t=="object"&&je(e)){var r=t;for(var o in r)this.on(o,r[o]);return this}else if(typeof t=="string"&&typeof e=="function"){var a=this._eventHandler[t];je(a)&&(this._eventHandler[t]=[],a=this._eventHandler[t]),a.push(e)}return this},i.off=function(t,e){var r,o;if(je(t))return this._eventHandler={},this;if(je(e)){if(typeof t=="string")return delete this._eventHandler[t],this;var a=t;for(var s in a)this.off(s,a[s]);return this}var u=this._eventHandler[t];if(u){var c=0;try{for(var f=_i(u),h=f.next();!h.done;h=f.next()){var v=h.value;if(v===e){u.splice(c,1),u.length<=0&&delete this._eventHandler[t];break}c++}}catch(d){r={error:d}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}return this},n.VERSION="3.0.4",n}(),V=nn;function kn(n,i){for(var t=n.length,e=0;e<t;++e)if(i(n[e],e))return!0;return!1}function yi(n,i){for(var t=n.length,e=0;e<t;++e)if(i(n[e],e))return n[e];return null}function bi(n){var i=n;if(typeof i>"u"){if(typeof navigator>"u"||!navigator)return"";i=navigator.userAgent||""}return i.toLowerCase()}function Rn(n,i){try{return new RegExp(n,"g").exec(i)}catch{return null}}function ja(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;var n=navigator.userAgentData,i=n.brands||n.uaList;return!!(i&&i.length)}function Fa(n,i){var t=Rn("("+n+")((?:\\/|\\s|:)([0-9|\\.|_]+))",i);return t?t[3]:""}function rn(n){return n.replace(/_/g,".")}function He(n,i){var t=null,e="-1";return kn(n,function(r){var o=Rn("("+r.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",i);return!o||r.brand?!1:(t=r,e=o[3]||"-1",r.versionAlias?e=r.versionAlias:r.versionTest&&(e=Fa(r.versionTest.toLowerCase(),i)||e),e=rn(e),!0)}),{preset:t,version:e}}function Fe(n,i){var t={brand:"",version:"-1"};return kn(n,function(e){var r=Ei(i,e);return r?(t.brand=e.id,t.version=e.versionAlias||r.version,t.version!=="-1"):!1}),t}function Ei(n,i){return yi(n,function(t){var e=t.brand;return Rn(""+i.test,e.toLowerCase())})}var on=[{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"}],Pi=[{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}],an=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],xi=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],Oi=[{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 wi(n){return!!He(xi,n).preset}function $a(n){var i=bi(n),t=!!/mobi/g.exec(i),e={name:"unknown",version:"-1",majorVersion:-1,webview:wi(i),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},r={name:"unknown",version:"-1",majorVersion:-1},o=He(on,i),a=o.preset,s=o.version,u=He(Oi,i),c=u.preset,f=u.version,h=He(Pi,i);if(e.chromium=!!h.preset,e.chromiumVersion=h.version,!e.chromium){var v=He(an,i);e.webkit=!!v.preset,e.webkitVersion=v.version}return c&&(r.name=c.id,r.version=f,r.majorVersion=parseInt(f,10)),a&&(e.name=a.id,e.version=s,e.webview&&r.name==="ios"&&e.name!=="safari"&&(e.webview=!1)),e.majorVersion=parseInt(e.version,10),{browser:e,os:r,isMobile:t,isHints:!1}}function Ha(n){var i=navigator.userAgentData,t=(i.uaList||i.brands).slice(),e=n&&n.fullVersionList,r=i.mobile||!1,o=t[0],a=(n&&n.platform||i.platform||navigator.platform).toLowerCase(),s={name:o.brand,version:o.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!Fe(xi,t).brand||wi(bi())},u={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&kn(an,function(p){return Ei(t,p)});var c=Fe(Pi,t);if(s.chromium=!!c.brand,s.chromiumVersion=c.version,!s.chromium){var f=Fe(an,t);s.webkit=!!f.brand,s.webkitVersion=f.version}var h=yi(Oi,function(p){return new RegExp(""+p.test,"g").exec(a)});if(u.name=h?h.id:"",n&&(u.version=n.platformVersion),e&&e.length){var v=Fe(on,e);s.name=v.brand||s.name,s.version=v.version||s.version}else{var d=Fe(on,t);s.name=d.brand||s.name,s.version=d.brand&&n?n.uaFullVersion:d.version}return s.webkit&&(u.name=r?"ios":"mac"),u.name==="ios"&&s.webview&&(s.version="-1"),u.version=rn(u.version),s.version=rn(s.version),u.majorVersion=parseInt(u.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:u,isMobile:r,isHints:!0}}function Ga(n){return typeof n>"u"&&ja()?Ha():$a(n)}function Wa(n){return Object.keys(n)}var sn="__observers__",vt="__computed__",Ht=1,Gt="__CFCS_DETECTED_DEPENDENCIES__",ln=function(n,i){return ln=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},ln(n,i)};function Ua(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");ln(n,i);function t(){this.constructor=n}n.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}function In(){Object[Gt]=Object[Gt]||{};var n=Object[Gt];return n[Ht]=n[Ht]||[],n[Ht]}function Xa(){var n=In();return n[n.length-1]}function Ya(n){var i=In(),t=[],e={host:n,observers:t,push:function(r){n!==r&&t.indexOf(r)===-1&&t.push(r)}};return i.push(e),e}function Ka(){var n=In();return n.pop()}var Ti=function(){function n(t){this._emitter=new Se,this._current=t}var i=n.prototype;return Object.defineProperty(i,"current",{get:function(){var t=Xa();return t?.push(this),this._current},set:function(t){this._setCurrent(t)},enumerable:!1,configurable:!0}),i.subscribe=function(t){return this.current,this._emitter.on("update",t),this},i.unsubscribe=function(t){return this._emitter.off("update",t),this},i._setCurrent=function(t){var e=this._current,r=t!==e;this._current=t,r&&this._emitter.trigger("update",t,e)},i.toString=function(){return"".concat(this.current)},i.valueOf=function(){return this.current},n}(),Za=function(n){Ua(i,n);function i(e){var r=n.call(this)||this;return r._computedCallback=e,r._registered=[],r._onCheckUpdate=function(){r._setCurrent(r.current)},r._current=r.current,r}var t=i.prototype;return Object.defineProperty(t,"current",{get:function(){var e=this;Ya(this);var r=this._computedCallback(),o=Ka();return this._registered.forEach(function(a){a.unsubscribe(e._onCheckUpdate)}),o.observers.forEach(function(a){a.subscribe(e._onCheckUpdate)}),this._registered=o.observers,r},enumerable:!1,configurable:!0}),i}(Ti);function kr(n,i,t){t===void 0&&(t=i);var e={configurable:!0,get:function(){return Pe(this,t).current},set:function(r){Pe(this,t,r).current=r}};Object.defineProperty(n,i,e),t!==i&&Object.defineProperty(n,t,{configurable:!0,get:function(){return Pe(this,t).current}})}function Ja(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return n.length>1?kr(n[0],n[1]):function(t,e){return kr(t,e,n[0])}}function Qa(n){n.subscribe=function(i,t){this[i],Pe(this,i).subscribe(t)},n.unsubscribe=function(i,t){var e=this;if(!i){Wa(Nn(this)).forEach(function(r){e.unsubscribe(r)});return}i in this&&Pe(this,i).unsubscribe(t)}}function qa(n){var i=n.prototype;Qa(i)}function es(n){return new Ti(n)}function ts(n){return new Za(n)}function ns(n){var i={};return Object.defineProperty(n,sn,{get:function(){return i}}),i}function Nn(n,i){var t,e;n[sn]||ns(n);var r=n[sn];if(!i){var o=(e=(t=n?.constructor)===null||t===void 0?void 0:t.prototype)===null||e===void 0?void 0:e[vt];o&&o.forEach(function(a){!(a in r)&&a in n&&n[a]})}return r}function Pe(n,i,t){var e=Nn(n);return e[i]||(e[i]=es(t)),e[i]}function rs(n,i,t){var e=t.get;function r(){var s=Nn(this,!0);return i in s||(s[i]=ts(e.bind(this))),Pe(this,i).current}var o={configurable:!0,get:r};n[vt]||(n[vt]=[]);var a=n[vt];return a.indexOf(i)===-1&&a.push(i),Object.defineProperty(n,i,o),o}/*! *****************************************************************************
|
|
15
|
+
***************************************************************************** */function yi(n){var i=typeof Symbol=="function"&&Symbol.iterator,t=i&&n[i],e=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&e>=n.length&&(n=void 0),{value:n&&n[e++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function ja(n,i){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var e=t.call(n),r,o=[],a;try{for(;(i===void 0||i-- >0)&&!(r=e.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(t=e.return)&&t.call(e)}finally{if(a)throw a.error}}return o}function Gt(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(ja(arguments[i]));return n}var Fe=function(n){return typeof n>"u"},on=function(){function n(t,e){var r,o;if(this._canceled=!1,e)try{for(var a=yi(Object.keys(e)),s=a.next();!s.done;s=a.next()){var u=s.value;this[u]=e[u]}}catch(c){r={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}this.eventType=t}var i=n.prototype;return i.stop=function(){this._canceled=!0},i.isCanceled=function(){return this._canceled},n}(),Se=function(){function n(){this._eventHandler={}}var i=n.prototype;return i.trigger=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var o=t instanceof on?t.eventType:t,a=Gt(this._eventHandler[o]||[]);return a.length<=0?this:(t instanceof on?(t.currentTarget=this,a.forEach(function(s){s(t)})):a.forEach(function(s){s.apply(void 0,Gt(e))}),this)},i.once=function(t,e){var r=this;if(typeof t=="object"&&Fe(e)){var o=t;for(var a in o)this.once(a,o[a]);return this}else if(typeof t=="string"&&typeof e=="function"){var s=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];e.apply(void 0,Gt(u)),r.off(t,s)};this.on(t,s)}return this},i.hasOn=function(t){return!!this._eventHandler[t]},i.on=function(t,e){if(typeof t=="object"&&Fe(e)){var r=t;for(var o in r)this.on(o,r[o]);return this}else if(typeof t=="string"&&typeof e=="function"){var a=this._eventHandler[t];Fe(a)&&(this._eventHandler[t]=[],a=this._eventHandler[t]),a.push(e)}return this},i.off=function(t,e){var r,o;if(Fe(t))return this._eventHandler={},this;if(Fe(e)){if(typeof t=="string")return delete this._eventHandler[t],this;var a=t;for(var s in a)this.off(s,a[s]);return this}var u=this._eventHandler[t];if(u){var c=0;try{for(var f=yi(u),h=f.next();!h.done;h=f.next()){var v=h.value;if(v===e){u.splice(c,1),u.length<=0&&delete this._eventHandler[t];break}c++}}catch(d){r={error:d}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}return this},n.VERSION="3.0.4",n}(),V=on;function kn(n,i){for(var t=n.length,e=0;e<t;++e)if(i(n[e],e))return!0;return!1}function bi(n,i){for(var t=n.length,e=0;e<t;++e)if(i(n[e],e))return n[e];return null}function Ei(n){var i=n;if(typeof i>"u"){if(typeof navigator>"u"||!navigator)return"";i=navigator.userAgent||""}return i.toLowerCase()}function In(n,i){try{return new RegExp(n,"g").exec(i)}catch{return null}}function Fa(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;var n=navigator.userAgentData,i=n.brands||n.uaList;return!!(i&&i.length)}function $a(n,i){var t=In("("+n+")((?:\\/|\\s|:)([0-9|\\.|_]+))",i);return t?t[3]:""}function an(n){return n.replace(/_/g,".")}function Ge(n,i){var t=null,e="-1";return kn(n,function(r){var o=In("("+r.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",i);return!o||r.brand?!1:(t=r,e=o[3]||"-1",r.versionAlias?e=r.versionAlias:r.versionTest&&(e=$a(r.versionTest.toLowerCase(),i)||e),e=an(e),!0)}),{preset:t,version:e}}function $e(n,i){var t={brand:"",version:"-1"};return kn(n,function(e){var r=Pi(i,e);return r?(t.brand=e.id,t.version=e.versionAlias||r.version,t.version!=="-1"):!1}),t}function Pi(n,i){return bi(n,function(t){var e=t.brand;return In(""+i.test,e.toLowerCase())})}var sn=[{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"}],xi=[{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}],ln=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],Oi=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],wi=[{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 Ti(n){return!!Ge(Oi,n).preset}function Ha(n){var i=Ei(n),t=!!/mobi/g.exec(i),e={name:"unknown",version:"-1",majorVersion:-1,webview:Ti(i),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},r={name:"unknown",version:"-1",majorVersion:-1},o=Ge(sn,i),a=o.preset,s=o.version,u=Ge(wi,i),c=u.preset,f=u.version,h=Ge(xi,i);if(e.chromium=!!h.preset,e.chromiumVersion=h.version,!e.chromium){var v=Ge(ln,i);e.webkit=!!v.preset,e.webkitVersion=v.version}return c&&(r.name=c.id,r.version=f,r.majorVersion=parseInt(f,10)),a&&(e.name=a.id,e.version=s,e.webview&&r.name==="ios"&&e.name!=="safari"&&(e.webview=!1)),e.majorVersion=parseInt(e.version,10),{browser:e,os:r,isMobile:t,isHints:!1}}function Ga(n){var i=navigator.userAgentData,t=(i.uaList||i.brands).slice(),e=n&&n.fullVersionList,r=i.mobile||!1,o=t[0],a=(n&&n.platform||i.platform||navigator.platform).toLowerCase(),s={name:o.brand,version:o.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!$e(Oi,t).brand||Ti(Ei())},u={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&kn(ln,function(p){return Pi(t,p)});var c=$e(xi,t);if(s.chromium=!!c.brand,s.chromiumVersion=c.version,!s.chromium){var f=$e(ln,t);s.webkit=!!f.brand,s.webkitVersion=f.version}var h=bi(wi,function(p){return new RegExp(""+p.test,"g").exec(a)});if(u.name=h?h.id:"",n&&(u.version=n.platformVersion),e&&e.length){var v=$e(sn,e);s.name=v.brand||s.name,s.version=v.version||s.version}else{var d=$e(sn,t);s.name=d.brand||s.name,s.version=d.brand&&n?n.uaFullVersion:d.version}return s.webkit&&(u.name=r?"ios":"mac"),u.name==="ios"&&s.webview&&(s.version="-1"),u.version=an(u.version),s.version=an(s.version),u.majorVersion=parseInt(u.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:u,isMobile:r,isHints:!0}}function Wa(n){return typeof n>"u"&&Fa()?Ga():Ha(n)}function Ua(n){return Object.keys(n)}var un="__observers__",pt="__computed__",Wt=1,Ut="__CFCS_DETECTED_DEPENDENCIES__",cn=function(n,i){return cn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},cn(n,i)};function Xa(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");cn(n,i);function t(){this.constructor=n}n.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}function Nn(){Object[Ut]=Object[Ut]||{};var n=Object[Ut];return n[Wt]=n[Wt]||[],n[Wt]}function Ya(){var n=Nn();return n[n.length-1]}function Ka(n){var i=Nn(),t=[],e={host:n,observers:t,push:function(r){n!==r&&t.indexOf(r)===-1&&t.push(r)}};return i.push(e),e}function Za(){var n=Nn();return n.pop()}var Si=function(){function n(t){this._emitter=new Se,this._current=t}var i=n.prototype;return Object.defineProperty(i,"current",{get:function(){var t=Ya();return t?.push(this),this._current},set:function(t){this._setCurrent(t)},enumerable:!1,configurable:!0}),i.subscribe=function(t){return this.current,this._emitter.on("update",t),this},i.unsubscribe=function(t){return this._emitter.off("update",t),this},i._setCurrent=function(t){var e=this._current,r=t!==e;this._current=t,r&&this._emitter.trigger("update",t,e)},i.toString=function(){return"".concat(this.current)},i.valueOf=function(){return this.current},n}(),Ja=function(n){Xa(i,n);function i(e){var r=n.call(this)||this;return r._computedCallback=e,r._registered=[],r._onCheckUpdate=function(){r._setCurrent(r.current)},r._current=r.current,r}var t=i.prototype;return Object.defineProperty(t,"current",{get:function(){var e=this;Ka(this);var r=this._computedCallback(),o=Za();return this._registered.forEach(function(a){a.unsubscribe(e._onCheckUpdate)}),o.observers.forEach(function(a){a.subscribe(e._onCheckUpdate)}),this._registered=o.observers,r},enumerable:!1,configurable:!0}),i}(Si);function kr(n,i,t){t===void 0&&(t=i);var e={configurable:!0,get:function(){return Pe(this,t).current},set:function(r){Pe(this,t,r).current=r}};Object.defineProperty(n,i,e),t!==i&&Object.defineProperty(n,t,{configurable:!0,get:function(){return Pe(this,t).current}})}function Qa(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return n.length>1?kr(n[0],n[1]):function(t,e){return kr(t,e,n[0])}}function qa(n){n.subscribe=function(i,t){this[i],Pe(this,i).subscribe(t)},n.unsubscribe=function(i,t){var e=this;if(!i){Ua(An(this)).forEach(function(r){e.unsubscribe(r)});return}i in this&&Pe(this,i).unsubscribe(t)}}function es(n){var i=n.prototype;qa(i)}function ts(n){return new Si(n)}function ns(n){return new Ja(n)}function rs(n){var i={};return Object.defineProperty(n,un,{get:function(){return i}}),i}function An(n,i){var t,e;n[un]||rs(n);var r=n[un];if(!i){var o=(e=(t=n?.constructor)===null||t===void 0?void 0:t.prototype)===null||e===void 0?void 0:e[pt];o&&o.forEach(function(a){!(a in r)&&a in n&&n[a]})}return r}function Pe(n,i,t){var e=An(n);return e[i]||(e[i]=ts(t)),e[i]}function is(n,i,t){var e=t.get;function r(){var s=An(this,!0);return i in s||(s[i]=ns(e.bind(this))),Pe(this,i).current}var o={configurable:!0,get:r};n[pt]||(n[pt]=[]);var a=n[pt];return a.indexOf(i)===-1&&a.push(i),Object.defineProperty(n,i,o),o}/*! *****************************************************************************
|
|
16
16
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
17
17
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
18
18
|
this file except in compliance with the License. You may obtain a copy of the
|
|
@@ -25,7 +25,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
25
25
|
|
|
26
26
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
27
27
|
and limitations under the License.
|
|
28
|
-
***************************************************************************** */var un=function(n,i){return un=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},un(n,i)};function Le(n,i){un(n,i);function t(){this.constructor=n}n.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}var Z=function(){return Z=Object.assign||function(i){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=t[o])}return i},Z.apply(this,arguments)};function cn(n,i,t,e){var r=arguments.length,o=r<3?i:e===null?e=Object.getOwnPropertyDescriptor(i,t):e,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,e);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o}var Q;typeof window>"u"?Q={navigator:{userAgent:""}}:Q=window;var at=1,is=2,os=4,Me=6,as=8,ss=16,ze=24,zt=30,xt="left",fn="right",dn="middle",Si={1:xt,2:dn,3:fn},Ci="any",ls="none",us="shift",cs="ctrl",fs="alt",ds="meta",hs=16,vs=30,Rr="ontouchstart"in Q&&Ga().browser.name==="safari",ps=function(){if(typeof document>"u")return"";for(var n=(document.head||document.getElementsByTagName("head")[0]).style,i=["transform","webkitTransform","msTransform","mozTransform"],t=0,e=i.length;t<e;t++)if(i[t]in n)return i[t];return""}(),hn={"-webkit-user-select":"none","-ms-user-select":"none","-moz-user-select":"none","user-select":"none","-webkit-user-drag":"none"},Ir=function(n){for(var i=[],t=0,e=n.length;t<e;t++)i.push(n[t]);return i},ki=function(n,i){i===void 0&&(i=!1);var t;if(typeof n=="string"){var e=n.match(/^<([a-z]+)\s*([^>]*)>/);if(e){var r=document.createElement("div");r.innerHTML=n,t=Ir(r.childNodes)}else t=Ir(document.querySelectorAll(n));i||(t=t.length>=1?t[0]:void 0)}else n===Q?t=n:"value"in n||"current"in n?t=n.value||n.current:n.nodeName&&(n.nodeType===1||n.nodeType===9)?t=n:"jQuery"in Q&&n instanceof jQuery||n.constructor.prototype.jquery?t=i?n.toArray():n.get(0):Array.isArray(n)&&(t=n.map(function(o){return ki(o)}),i||(t=t.length>=1?t[0]:void 0));return t},Re=Q.requestAnimationFrame||Q.webkitRequestAnimationFrame,Ge=Q.cancelAnimationFrame||Q.webkitCancelAnimationFrame;if(Re&&!Ge){var Wt={},gs=Re;Re=function(n){var i=function(e){Wt[t]&&n(e)},t=gs(i);return Wt[t]=!0,t},Ge=function(n){delete Wt[n]}}else Re&&Ge||(Re=function(n){return Q.setTimeout(function(){n(Q.performance&&Q.performance.now&&Q.performance.now()||new Date().getTime())},16)},Ge=Q.clearTimeout);var ms=function(n){return Re(n)},_s=function(n){Ge(n)},se=function(n,i){var t={};for(var e in n)e&&(t[e]=i(n[e],e));return t},Ri=function(n,i){var t={};for(var e in n)e&&i(n[e],e)&&(t[e]=n[e]);return t},An=function(n,i){for(var t in n)if(t&&!i(n[t],t))return!1;return!0},We=function(n,i){return An(n,function(t,e){return t===i[e]})},Ut={},Ii=function(n,i){return Ut[i]||(Ut[i]=bs(i)),Ut[i](n)},Nr=function(n,i){return!n||!i?n:se(n,function(t,e){return Ii(t,typeof i=="number"?i:i[e])})},pt=function(n){if(!isFinite(n))return 0;var i="".concat(n);if(i.indexOf("e")>=0){for(var t=0,e=1;Math.round(n*e)/e!==n;)e*=10,t++;return t}return i.indexOf(".")>=0?i.length-i.indexOf(".")-1:0},ys=function(n){return 1/Math.pow(10,n)},bs=function(n){var i=n<1?Math.pow(10,pt(n)):1;return function(t){return n===0?0:Math.round(Math.round(t/n)*n*i)/i}},Es=function(n,i){return Math.atan2(i,n)*180/Math.PI},Ps=function(n){var i=!0;return Object.keys(hn).forEach(function(t){(!n||n[t]!==hn[t])&&(i=!1)}),i},xs=function(n,i){return n&&i?zt:n?Me:i?ze:at},ft=function(n,i,t){return t?!!(i===zt||i&n&&t&n):!!(i&n)},Os=function(n,i,t){var e,r=(e={},e[at]="auto",e[zt]="none",e[ze]="pan-x",e[Me]="pan-y",e),o={};if(n&&n.style){var a=i.touchAction?i.touchAction:r[t],s=Z(Z({},hn),{"touch-action":n.style["touch-action"]==="none"?"none":a});Object.keys(s).forEach(function(u){o[u]=n.style[u],n.style[u]=s[u]})}return o},ws=function(n,i){n&&n.style&&i&&Object.keys(i).forEach(function(t){n.style[t]=i[t]})},Ts=function(){function n(t){this._axes=t,this.holdingCount=0}var i=n.prototype;return i.hold=function(t,e){var r=this._getRoundPos(t).roundPos;this._axes.trigger(new V("hold",{pos:r,input:e.input||null,inputEvent:e.event||null,isTrusted:!0}))},i.triggerRelease=function(t){var e=this._getRoundPos(t.destPos,t.depaPos),r=e.roundPos,o=e.roundDepa;t.destPos=r,t.depaPos=o,t.setTo=this._createUserControll(t.destPos,t.duration),this._axes.trigger(new V("release",Z(Z({},t),{bounceRatio:this._getBounceRatio(r)})))},i.triggerChange=function(t,e,r,o){var a=this;o===void 0&&(o=!1);var s=this.animationManager,u=s.axisManager,c=s.getEventInfo(),f=this._getRoundPos(t,e),h=f.roundPos,v=f.roundDepa,d=u.moveTo(h,v),p=r?.event||c?.event||null,g={pos:d.pos,delta:d.delta,bounceRatio:this._getBounceRatio(d.pos),holding:o,inputEvent:p,isTrusted:!!p,input:r?.input||c?.input||null,set:p?this._createUserControll(d.pos):function(){}},m=new V("change",g);return this._axes.trigger(m),Object.keys(d.pos).forEach(function(_){var y=d.pos[_];Pe(a._axes,_,y).current=y}),p&&u.set(g.set().destPos),!m.isCanceled()},i.triggerAnimationStart=function(t){var e=this._getRoundPos(t.destPos,t.depaPos),r=e.roundPos,o=e.roundDepa;t.destPos=r,t.depaPos=o,t.setTo=this._createUserControll(t.destPos,t.duration);var a=new V("animationStart",t);return this._axes.trigger(a),!a.isCanceled()},i.triggerAnimationEnd=function(t){t===void 0&&(t=!1),this._axes.trigger(new V("animationEnd",{isTrusted:t}))},i.triggerFinish=function(t){t===void 0&&(t=!1),this._axes.trigger(new V("finish",{isTrusted:t}))},i.setAnimationManager=function(t){this.animationManager=t},i.destroy=function(){this._axes.off()},i._createUserControll=function(t,e){e===void 0&&(e=0);var r={destPos:Z({},t),duration:e};return function(o,a){return o&&(r.destPos=Z({},o)),a!==void 0&&(r.duration=a),r}},i._getRoundPos=function(t,e){var r=this._axes.options.round;return{roundPos:Nr(t,r),roundDepa:Nr(e,r)}},i._getBounceRatio=function(t){return this._axes.axisManager.map(t,function(e,r){return e<r.range[0]&&r.bounce[0]!==0?(r.range[0]-e)/r.bounce[0]:e>r.range[1]&&r.bounce[1]!==0?(e-r.range[1])/r.bounce[1]:0})},cn([Ja],n.prototype,"holdingCount",void 0),n}(),Ss=function(){function n(t){this._options=t,this._prevented=!1}var i=n.prototype;return i.isInterrupting=function(){return this._options.interruptable||this._prevented},i.isInterrupted=function(){return!this._options.interruptable&&this._prevented},i.setInterrupt=function(t){this._options.interruptable||(this._prevented=t)},n}(),Ni=function(n,i,t,e){var r=n,o=[t[0]?i[0]:e?i[0]-e[0]:i[0],t[1]?i[1]:e?i[1]+e[1]:i[1]];return r=Math.max(o[0],r),r=Math.min(o[1],r),r},Ai=function(n,i){return n<i[0]||n>i[1]},Cs=function(n,i,t,e){return!e[0]&&n===i[0]-t[0]||!e[1]&&n===i[1]+t[1]},ks=function(n,i){var t=Math.sqrt(n/i*2);return t<100?0:t},Ar=function(n,i,t){return t[1]&&n>i[1]||t[0]&&n<i[0]},rt=function(n,i,t){var e=n,r=i[0],o=i[1],a=o-r;return t[1]&&n>o&&(e=(e-o)%a+r),t[0]&&n<r&&(e=(e-r)%a+o),e},Rs=function(){function n(t){var e=this;this._axis=t,this._complementOptions(),this._pos=Object.keys(this._axis).reduce(function(r,o){return r[o]=e._axis[o].startPos,r},{})}var i=n.prototype;return i.getDelta=function(t,e){var r=this.get(t);return se(this.get(e),function(o,a){return o-r[a]})},i.get=function(t){var e=this;return t&&Array.isArray(t)?t.reduce(function(r,o){return o&&o in e._pos&&(r[o]=e._pos[o]),r},{}):Z(Z({},this._pos),t||{})},i.moveTo=function(t,e){e===void 0&&(e=this._pos);var r=se(this._pos,function(o,a){return a in t&&a in e?t[a]-e[a]:0});return this.set(this.map(t,function(o,a){return a?rt(o,a.range,a.circular):0})),{pos:Z({},this._pos),delta:r}},i.set=function(t){for(var e in t)e&&e in this._pos&&(this._pos[e]=t[e])},i.every=function(t,e){var r=this._axis;return An(t,function(o,a){return e(o,r[a],a)})},i.filter=function(t,e){var r=this._axis;return Ri(t,function(o,a){return e(o,r[a],a)})},i.map=function(t,e){var r=this._axis;return se(t,function(o,a){return e(o,r[a],a)})},i.isOutside=function(t){return!this.every(t?this.get(t):this._pos,function(e,r){return!Ai(e,r.range)})},i.getAxisOptions=function(t){return this._axis[t]},i.setAxis=function(t){var e=this;Object.keys(t).forEach(function(r){if(!e._axis[r])throw new Error("Axis ".concat(r," does not exist in Axes instance"));e._axis[r]=Z(Z({},e._axis[r]),t[r])}),this._complementOptions()},i._complementOptions=function(){var t=this;Object.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(r){var o=t._axis,a=o[e][r];/string|number|boolean/.test(typeof a)&&(o[e][r]=[a,a])})})},n}(),Is="ontouchstart"in Q,gt="PointerEvent"in Q,Ns="MSPointerEvent"in Q,As=gt||Ns,Ds=function(n,i){return!!(!i||i.indexOf(Ci)>-1||i.indexOf(ls)>-1&&!n.shiftKey&&!n.ctrlKey&&!n.altKey&&!n.metaKey||i.indexOf(us)>-1&&n.shiftKey||i.indexOf(cs)>-1&&n.ctrlKey||i.indexOf(fs)>-1&&n.altKey||i.indexOf(ds)>-1&&n.metaKey)},Bt=function(){function n(){var t=this;this._stopContextMenu=function(e){e.preventDefault(),Q.removeEventListener("contextmenu",t._stopContextMenu)}}var i=n.prototype;return i.extendEvent=function(t){var e,r=this.prevEvent,o=this._getCenter(t),a=r?this._getMovement(t):{x:0,y:0},s=r?this._getScale(t):1,u=r?Es(o.x-r.center.x,o.y-r.center.y):0,c=r?r.deltaX+a.x:a.x,f=r?r.deltaY+a.y:a.y,h=a.x,v=a.y,d=this._latestInterval,p=Date.now(),g=d?p-d.timestamp:0,m=r?r.velocityX:0,_=r?r.velocityY:0;return(!d||g>=hs)&&(d&&(e=[(c-d.deltaX)/g,(f-d.deltaY)/g],m=e[0],_=e[1]),this._latestInterval={timestamp:p,deltaX:c,deltaY:f}),{srcEvent:t,scale:s,angle:u,center:o,deltaX:c,deltaY:f,offsetX:h,offsetY:v,velocityX:m,velocityY:_,preventSystemEvent:!0}},i._getDistance=function(t,e){var r=e.clientX-t.clientX,o=e.clientY-t.clientY;return Math.sqrt(r*r+o*o)},i._getButton=function(t){var e={1:xt,2:fn,4:dn},r=this._isTouchEvent(t)?xt:e[t.buttons];return r||null},i._isTouchEvent=function(t){return t.type&&t.type.indexOf("touch")>-1},i._isValidButton=function(t,e){return e.indexOf(t)>-1},i._isValidEvent=function(t,e,r){return(!e||Ds(t,e))&&(!r||this._isValidButton(this._getButton(t),r))},i._preventMouseButton=function(t,e){e===fn?Q.addEventListener("contextmenu",this._stopContextMenu):e===dn&&t.preventDefault()},n}(),Ms=function(n){Le(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.start=["mousedown"],e.move=["mousemove"],e.end=["mouseup"],e}var t=i.prototype;return t.onEventStart=function(e,r,o){var a=this._getButton(e);return this._isValidEvent(e,r,o)?(this._preventMouseButton(e,a),this.extendEvent(e)):null},t.onEventMove=function(e,r,o){return this._isValidEvent(e,r,o)?this.extendEvent(e):null},t.onEventEnd=function(){},t.onRelease=function(){this.prevEvent=null},t.getTouches=function(e,r){return r&&this._isValidButton(Si[e.which],r)&&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 r=this.prevEvent.srcEvent;return{x:e.clientX-r.clientX,y:e.clientY-r.clientY}},i}(Bt),zs=function(n){Le(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.start=["touchstart"],e.move=["touchmove"],e.end=["touchend","touchcancel"],e}var t=i.prototype;return t.onEventStart=function(e,r){return this._baseTouches=e.touches,this._isValidEvent(e,r)?this.extendEvent(e):null},t.onEventMove=function(e,r){return this._isValidEvent(e,r)?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 r=this.prevEvent.srcEvent;return e.touches[0].identifier!==r.touches[0].identifier?{x:0,y:0}:{x:e.touches[0].clientX-r.touches[0].clientX,y:e.touches[0].clientY-r.touches[0].clientY}},i}(Bt),Bs=function(n){Le(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.start=gt?["pointerdown"]:["MSPointerDown"],e.move=gt?["pointermove"]:["MSPointerMove"],e.end=gt?["pointerup","pointercancel"]:["MSPointerUp","MSPointerCancel"],e._firstInputs=[],e._recentInputs=[],e}var t=i.prototype;return t.onEventStart=function(e,r,o){var a=this._getButton(e);return this._isValidEvent(e,r,o)?(this._preventMouseButton(e,a),this._updatePointerEvent(e),this.extendEvent(e)):null},t.onEventMove=function(e,r,o){return this._isValidEvent(e,r,o)?(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 r=this.prevEvent.srcEvent;return e.pointerId!==r.pointerId?{x:0,y:0}:{x:e.clientX-r.clientX,y:e.clientY-r.clientY}},t._updatePointerEvent=function(e){var r=this,o=!1;this._recentInputs.forEach(function(a,s){a.pointerId===e.pointerId&&(o=!0,r._recentInputs[s]=e)}),o||(this._firstInputs.push(e),this._recentInputs.push(e))},t._removePointerEvent=function(e){this._firstInputs=this._firstInputs.filter(function(r){return r.pointerId!==e.pointerId}),this._recentInputs=this._recentInputs.filter(function(r){return r.pointerId!==e.pointerId})},i}(Bt),Ls=function(n){Le(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.start=["mousedown","touchstart"],e.move=["mousemove","touchmove"],e.end=["mouseup","touchend","touchcancel"],e}var t=i.prototype;return t.onEventStart=function(e,r,o){var a=this._getButton(e);return this._isTouchEvent(e)&&(this._baseTouches=e.touches),this._isValidEvent(e,r,o)?(this._preventMouseButton(e,a),this.extendEvent(e)):null},t.onEventMove=function(e,r,o){return this._isValidEvent(e,r,o)?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,r){return this._isTouchEvent(e)?e.touches.length:this._isValidButton(Si[e.which],r)&&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 r=this,o=this.prevEvent.srcEvent,a=[e,o].map(function(c){return r._isTouchEvent(c)?{id:c.touches[0].identifier,x:c.touches[0].clientX,y:c.touches[0].clientY}:{id:null,x:c.clientX,y:c.clientY}}),s=a[0],u=a[1];return s.id===u.id?{x:s.x-u.x,y:s.y-u.y}:{x:0,y:0}},i}(Bt),Di=function(n,i){return i.reduce(function(t,e,r){return n[r]&&(t[n[r]]=e),t},{})},Vs=function(n){n===void 0&&(n=[]);var i=!1,t=!1,e=!1;return n.forEach(function(r){switch(r){case"mouse":t=!0;break;case"touch":i=Is;break;case"pointer":e=As}}),e?new Bs:i&&t?new Ls:i?new zs:t?new Ms:null};function Dr(n){return n.indexOf("touch")>-1?{passive:!1}:!1}var js=function(){function n(t){var e=t.options,r=t.interruptManager,o=t.eventManager,a=t.axisManager,s=t.animationManager;this._isOutside=!1,this._moveDistance=null,this._isStopped=!1,this.options=e,this._interruptManager=r,this._eventManager=o,this._axisManager=a,this._animationManager=s}var i=n.prototype;return i.get=function(t){return this._axisManager.get(t.axes)},i.hold=function(t,e){if(!(this._interruptManager.isInterrupted()||!t.axes.length)){var r={input:t,event:e};this._isStopped=!1,this._interruptManager.setInterrupt(!0),this._animationManager.stopAnimation(r),++this._eventManager.holdingCount,this._moveDistance||this._eventManager.hold(this._axisManager.get(),r),this._isOutside=this._axisManager.isOutside(t.axes),this._moveDistance=this._axisManager.get(t.axes)}},i.change=function(t,e,r,o){if(!(this._isStopped||!this._interruptManager.isInterrupting()||this._axisManager.every(r,function(v){return v===0}))){var a=e.srcEvent?e.srcEvent:e;if(!a.__childrenAxesAlreadyChanged){var s=this._moveDistance||this._axisManager.get(t.axes),u;u=se(s,function(v,d){return v+(r[d]||0)}),this._moveDistance&&(this._moveDistance=this._axisManager.map(u,function(v,d){var p=d.circular,g=d.range;return p&&(p[0]||p[1])?rt(v,g,p):v})),this._isOutside&&this._axisManager.every(s,function(v,d){return!Ai(v,d.range)})&&(this._isOutside=!1),s=this._atOutside(s),u=this._atOutside(u),(!this.options.nested||!this._isEndofAxis(r,s,u))&&(a.__childrenAxesAlreadyChanged=!0);var c={input:t,event:e};if(o){var f=this._animationManager.getDuration(u,s);this._animationManager.animateTo(u,f,c)}else{var h=!this._eventManager.triggerChange(u,s,c,!0);h&&(this._isStopped=!0,this._moveDistance=null,this._animationManager.finish(!1))}}}},i.release=function(t,e,r,o){if(!(this._isStopped||!this._interruptManager.isInterrupting()||!this._moveDistance)){var a=e.srcEvent?e.srcEvent:e;a.__childrenAxesAlreadyReleased&&(r=r.map(function(){return 0}));var s=this._axisManager.get(t.axes),u=this._axisManager.get(),c=this._animationManager.getDisplacement(r),f=Di(t.axes,c),h=this._axisManager.get(this._axisManager.map(f,function(_,y,b){return y.circular&&(y.circular[0]||y.circular[1])?s[b]+_:Ni(s[b]+_,y.range,y.circular,y.bounce)}));a.__childrenAxesAlreadyReleased=!0;var v=this._animationManager.getDuration(h,s,o);v===0&&(h=Z({},u));var d={depaPos:u,destPos:h,duration:v,delta:this._axisManager.getDelta(u,h),inputEvent:e,input:t,isTrusted:!0};--this._eventManager.holdingCount,this._eventManager.triggerRelease(d),this._eventManager.holdingCount===0&&(this._moveDistance=null);var p=this._animationManager.getUserControl(d),g=We(p.destPos,u),m={input:t,event:e};g||p.duration===0?(g||this._eventManager.triggerChange(p.destPos,u,m,!0),this._interruptManager.setInterrupt(!1),this._axisManager.isOutside()?this._animationManager.restore(m):this._eventManager.triggerFinish(!0)):this._animationManager.animateTo(p.destPos,p.duration,m)}},i._atOutside=function(t){var e=this;return this._isOutside?this._axisManager.map(t,function(r,o){var a=o.range[0]-o.bounce[0],s=o.range[1]+o.bounce[1];return r>s?s:r<a?a:r}):this._axisManager.map(t,function(r,o){var a=o.range[0],s=o.range[1],u=o.bounce,c=o.circular;return c[0]&&r<a||c[1]&&r>s?r:r<a?a-e._animationManager.interpolate(a-r,u[0]):r>s?s+e._animationManager.interpolate(r-s,u[1]):r})},i._isEndofAxis=function(t,e,r){return this._axisManager.every(e,function(o,a,s){return t[s]===0||e[s]===r[s]&&Cs(o,a.range,a.bounce,a.circular)})},n}(),Xt=function(n,i,t){return Math.max(Math.min(n,t),i)},Fs=function(){function n(t){var e=t.options,r=t.interruptManager,o=t.eventManager,a=t.axisManager;this._options=e,this.interruptManager=r,this.eventManager=o,this.axisManager=a,this.animationEnd=this.animationEnd.bind(this)}var i=n.prototype;return i.getDuration=function(t,e,r){var o=this,a;if(typeof r<"u")a=r;else{var s=se(e,function(u,c){return ks(Math.abs(u-t[c]),o._options.deceleration)});a=Object.keys(s).reduce(function(u,c){return Math.max(u,s[c])},-1/0)}return Xt(a,this._options.minimumDuration,this._options.maximumDuration)},i.getDisplacement=function(t){var e=Math.pow(t.reduce(function(o,a){return o+a*a},0),1/t.length),r=Math.abs(e/-this._options.deceleration);return t.map(function(o){return o/2*r})},i.stopAnimation=function(t){if(this._animateParam){var e=this.axisManager.get(),r=this.axisManager.map(e,function(o,a){return rt(o,a.range,a.circular)});An(r,function(o,a){return e[a]===o})||this.eventManager.triggerChange(r,e,t,!!t),this._animateParam=null,this._raf&&_s(this._raf),this._raf=null,this.eventManager.triggerAnimationEnd(!!t?.event)}},i.getEventInfo=function(){return this._animateParam&&this._animateParam.input&&this._animateParam.inputEvent?{input:this._animateParam.input,event:this._animateParam.inputEvent}:null},i.restore=function(t){var e=this.axisManager.get(),r=this.axisManager.map(e,function(o,a){return Math.min(a.range[1],Math.max(a.range[0],o))});this.stopAnimation(),this.animateTo(r,this.getDuration(e,r),t)},i.animationEnd=function(){var t=this.getEventInfo();this._animateParam=null;var e=this.axisManager.filter(this.axisManager.get(),function(r,o){return Ar(r,o.range,o.circular)});Object.keys(e).length>0&&this.setTo(this.axisManager.map(e,function(r,o){return rt(r,o.range,o.circular)})),this.interruptManager.setInterrupt(!1),this.eventManager.triggerAnimationEnd(!!t),this.axisManager.isOutside()?this.restore(t):this.finish(!!t)},i.finish=function(t){this._animateParam=null,this.interruptManager.setInterrupt(!1),this.eventManager.triggerFinish(t)},i.getUserControl=function(t){var e=t.setTo();return e.destPos=this.axisManager.get(e.destPos),e.duration=Xt(e.duration,this._options.minimumDuration,this._options.maximumDuration),e},i.animateTo=function(t,e,r){var o=this;this.stopAnimation();var a=this._createAnimationParam(t,e,r),s=Z({},a.depaPos),u=this.eventManager.triggerAnimationStart(a),c=this.getUserControl(a);if(!u&&this.axisManager.every(c.destPos,function(h,v){return Ar(h,v.range,v.circular)})&&console.warn("You can't stop the 'animation' event when 'circular' is true."),u&&!We(c.destPos,s)){var f=r?.event||null;this._animateLoop({depaPos:s,destPos:c.destPos,duration:c.duration,delta:this.axisManager.getDelta(s,c.destPos),isTrusted:!!f,inputEvent:f,input:r?.input||null},function(){return o.animationEnd()})}},i.setTo=function(t,e){e===void 0&&(e=0);var r=Object.keys(t),o=this.axisManager.get(r);if(We(t,o))return this;this.interruptManager.setInterrupt(!0);var a=Ri(t,function(s,u){return o[u]!==s});return Object.keys(a).length?(a=this.axisManager.map(a,function(s,u){var c=u.range,f=u.circular;return f&&(f[0]||f[1])?s:Ni(s,c,f)}),We(a,o)?this:(e>0?this.animateTo(a,e):(this.stopAnimation(),this.eventManager.triggerChange(a),this.finish(!1)),this)):this},i.setBy=function(t,e){return e===void 0&&(e=0),this.setTo(se(this.axisManager.get(Object.keys(t)),function(r,o){return r+t[o]}),e)},i.setOptions=function(t){this._options=Z(Z({},this._options),t)},i._createAnimationParam=function(t,e,r){var o=this.axisManager.get(),a=t,s=r?.event||null;return{depaPos:o,destPos:a,duration:Xt(e,this._options.minimumDuration,this._options.maximumDuration),delta:this.axisManager.getDelta(o,a),inputEvent:s,input:r?.input||null,isTrusted:!!s,done:this.animationEnd}},i._animateLoop=function(t,e){var r=this;if(t.duration){this._animateParam=Z(Z({},t),{startTime:new Date().getTime()});var o=se(t.destPos,function(u){return u}),a=this._initState(this._animateParam),s=function(){r._raf=null;var u=r._animateParam,c=r._getNextState(a),f=!r.eventManager.triggerChange(c.pos,a.pos);if(a=c,c.finished){u.destPos=r._getFinalPos(u.destPos,o),We(u.destPos,r.axisManager.get(Object.keys(u.destPos)))||r.eventManager.triggerChange(u.destPos,c.pos),e();return}else f?r.finish(!1):r._raf=ms(s)};s()}else this.eventManager.triggerChange(t.destPos),e()},i._getFinalPos=function(t,e){var r=this,o=1e-6,a=se(t,function(s,u){if(s>=e[u]-o&&s<=e[u]+o)return e[u];var c=r._getRoundUnit(s,u),f=Ii(s,c);return f});return a},i._getRoundUnit=function(t,e){var r=this._options.round,o=null;if(!r){var a=this.axisManager.getAxisOptions(e);o=ys(Math.max(pt(a.range[0]),pt(a.range[1]),pt(t)))}return o||r},n}(),$s=function(n){Le(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e._useDuration=!0,e}var t=i.prototype;return t.interpolate=function(e,r){var o=this._easing(1e-5)/1e-5;return this._easing(e/(r*o))*r},t.updateAnimation=function(e){var r,o=this._animateParam;if(o){var a=new Date().getTime()-o.startTime,s=e?.destPos||o.destPos,u=(r=e?.duration)!==null&&r!==void 0?r:o.duration;if(e?.restart||u<=a){this.setTo(s,u-a);return}if(e?.destPos){var c=this.axisManager.get();this._initialEasingPer=this._prevEasingPer,o.delta=this.axisManager.getDelta(c,s),o.destPos=s}if(e?.duration){var f=(a+this._durationOffset)/o.duration;this._durationOffset=f*u-a,o.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 r=this,o=this._animateParam,a=e.pos,s=o.destPos,u=se(a,function(d,p){return d<=s[p]?1:-1}),c=new Date().getTime()-o.startTime,f=(c+this._durationOffset)/o.duration,h=this._easing(f),v=this.axisManager.map(a,function(d,p,g){var m=f>=1?s[g]:d+o.delta[g]*(h-r._prevEasingPer)/(1-r._initialEasingPer),_=rt(m,p.range,p.circular);if(m!==_){var y=u[g]*(p.range[1]-p.range[0]);s[g]-=y,a[g]-=y}return _});return this._prevEasingPer=h,{pos:v,easingPer:h,finished:h>=1}},t._easing=function(e){return e>1?1:this._options.easing(e)},i}(Fs),Hs=function(n){Le(i,n);function i(e,r,o){e===void 0&&(e={}),r===void 0&&(r={}),o===void 0&&(o={});var a=n.call(this)||this;return a.axis=e,a._inputs=[],a.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},r),Object.keys(o).forEach(function(s){a.axis[s].startPos=o[s]}),a.interruptManager=new Ss(a.options),a.axisManager=new Rs(a.axis),a.eventManager=new Ts(a),a.animationManager=new $s(a),a.inputObserver=new js(a),a.eventManager.setAnimationManager(a.animationManager),a.eventManager.triggerChange(a.axisManager.get()),a}var t=i.prototype;return Object.defineProperty(t,"holding",{get:function(){return this.eventManager.holdingCount>0},enumerable:!1,configurable:!0}),t.connect=function(e,r){var o;return typeof e=="string"?o=e.split(" "):o=e.concat(),~this._inputs.indexOf(r)&&this.disconnect(r),r.mapAxes(o),r.connect(this.inputObserver),this._inputs.push(r),this},t.disconnect=function(e){if(e){var r=this._inputs.indexOf(e);r>=0&&(this._inputs[r].disconnect(),this._inputs.splice(r,1))}else this._inputs.forEach(function(o){return o.disconnect()}),this._inputs=[];return this},t.get=function(e){return this.axisManager.get(e)},t.setTo=function(e,r){return r===void 0&&(r=0),this.animationManager.setTo(e,r),this},t.setBy=function(e,r){return r===void 0&&(r=0),this.animationManager.setBy(e,r),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()},i.VERSION="3.9.0",i.TRANSFORM=ps,i.DIRECTION_NONE=at,i.DIRECTION_LEFT=is,i.DIRECTION_RIGHT=os,i.DIRECTION_UP=as,i.DIRECTION_DOWN=ss,i.DIRECTION_HORIZONTAL=Me,i.DIRECTION_VERTICAL=ze,i.DIRECTION_ALL=zt,cn([rs],i.prototype,"holding",null),i=cn([qa],i),i}(Se),Gs=function(n,i){if(i<0||i>90)return at;var t=Math.abs(n);return t>i&&t<180-i?ze:Me},Ws=function(){function n(t,e){var r=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(o){r._dragged&&(o.preventDefault(),o.stopPropagation()),r._dragged=!1},this._voidFunction=function(){},this.element=ki(t),this.options=Z({inputType:["touch","mouse","pointer"],inputKey:[Ci],inputButton:[xt],scale:[1,1],thresholdAngle:45,threshold:0,preventClickOnDrag:!1,preventDefaultOnDrag:!1,iOSEdgeSwipeThreshold:vs,releaseOnScroll:!1,touchAction:null},e),this._onPanstart=this._onPanstart.bind(this),this._onPanmove=this._onPanmove.bind(this),this._onPanend=this._onPanend.bind(this)}var i=n.prototype;return i.mapAxes=function(t){this._direction=xs(!!t[0],!!t[1]),this.axes=t},i.connect=function(t){return this._activeEvent&&(this._detachElementEvent(),this._detachWindowEvent(this._activeEvent)),this._attachElementEvent(t),this._originalCssProps=Os(this.element,this.options,this._direction),this},i.disconnect=function(){return this._detachElementEvent(),this._detachWindowEvent(this._activeEvent),Ps(this._originalCssProps)||ws(this.element,this._originalCssProps),this._direction=at,this},i.destroy=function(){this.disconnect(),this.element=null},i.enable=function(){return this._enabled=!0,this},i.disable=function(){return this._enabled=!1,this},i.isEnabled=function(){return this._enabled},i.release=function(){var t=this._activeEvent,e=t.prevEvent;return t.onRelease(),this._observer.release(this,e,[0,0]),this._detachWindowEvent(t),this},i._onPanstart=function(t){var e=this.options,r=e.inputKey,o=e.inputButton,a=e.preventDefaultOnDrag,s=this._activeEvent,u=s.onEventStart(t,r,o);if(!(!u||!this._enabled||s.getTouches(t,o)>1)&&u.srcEvent.cancelable!==!1){var c=this.options.iOSEdgeSwipeThreshold;this._dragged=!1,this._isOverThreshold=!1,this._observer.hold(this,u),this._atRightEdge=Rr&&u.center.x>window.innerWidth-c,this._attachWindowEvent(s),a&&u.srcEvent.type!=="touchstart"&&u.srcEvent.preventDefault(),s.prevEvent=u}},i._onPanmove=function(t){var e=this,r=this.options,o=r.iOSEdgeSwipeThreshold,a=r.preventClickOnDrag,s=r.releaseOnScroll,u=r.inputKey,c=r.inputButton,f=r.threshold,h=r.thresholdAngle,v=this._activeEvent,d=v.onEventMove(t,u,c),p=v.getTouches(t,c);if(p===0||s&&d&&!d.srcEvent.cancelable){this._onPanend(t);return}if(!(!d||!this._enabled||p>1)){var g=Gs(d.angle,h),m=ft(Me,this._direction,g),_=ft(ze,this._direction,g);if(v.prevEvent&&Rr){var y=d.center.x<0;if(y){this.release();return}else if(this._atRightEdge){clearTimeout(this._rightEdgeTimer);var b=d.deltaX<-o;b?this._atRightEdge=!1:this._rightEdgeTimer=window.setTimeout(function(){return e.release()},100)}}var E=this._getDistance([d.deltaX,d.deltaY],[m,_]),x=this._getOffset([d.offsetX,d.offsetY],[m,_]),C=x.some(function(I){return I!==0});C&&(d.srcEvent.cancelable!==!1&&d.srcEvent.preventDefault(),d.srcEvent.stopPropagation()),d.preventSystemEvent=C,C&&(this._isOverThreshold||E>=f)&&(this._dragged=a,this._isOverThreshold=!0,this._observer.change(this,d,Di(this.axes,x))),v.prevEvent=d}},i._onPanend=function(t){var e=this.options.inputButton,r=this._activeEvent;if(r.onEventEnd(t),!(!this._enabled||r.getTouches(t,e)!==0)){this._detachWindowEvent(r),clearTimeout(this._rightEdgeTimer);var o=r.prevEvent,a=this._isOverThreshold?this._getOffset([Math.abs(o.velocityX)*(o.offsetX<0?-1:1),Math.abs(o.velocityY)*(o.offsetY<0?-1:1)],[ft(Me,this._direction),ft(ze,this._direction)]):[0,0];r.onRelease(),this._observer.release(this,o,a)}},i._attachWindowEvent=function(t){var e=this;t?.move.forEach(function(r){window.addEventListener(r,e._onPanmove,Dr(r))}),t?.end.forEach(function(r){window.addEventListener(r,e._onPanend,Dr(r))})},i._detachWindowEvent=function(t){var e=this;t?.move.forEach(function(r){window.removeEventListener(r,e._onPanmove)}),t?.end.forEach(function(r){window.removeEventListener(r,e._onPanend)})},i._getOffset=function(t,e){var r=this.options.scale;return[e[0]?t[0]*r[0]:0,e[1]?t[1]*r[1]:0]},i._getDistance=function(t,e){return Math.sqrt(Number(e[0])*Math.pow(t[0],2)+Number(e[1])*Math.pow(t[1],2))},i._attachElementEvent=function(t){var e=this,r=Vs(this.options.inputType),o=this.element;if(r){if(!o)throw new Error("Element to connect input does not exist.");this._observer=t,this._enabled=!0,this._activeEvent=r,o.addEventListener("click",this._preventClickWhenDragged,!0),r.start.forEach(function(a){o.addEventListener(a,e._onPanstart)}),r.move.forEach(function(a){o.addEventListener(a,e._voidFunction)})}},i._detachElementEvent=function(){var t=this,e=this._activeEvent,r=this.element;r&&(r.removeEventListener("click",this._preventClickWhenDragged,!0),e?.start.forEach(function(o){r.removeEventListener(o,t._onPanstart)}),e?.move.forEach(function(o){r.removeEventListener(o,t._voidFunction)})),this._enabled=!1,this._observer=null},n}();const Us=Hs;var vn=function(n,i){return vn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},vn(n,i)};function Ve(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");vn(n,i);function t(){this.constructor=n}n.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}var Be=function(){return Be=Object.assign||function(i){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=t[o])}return i},Be.apply(this,arguments)};function Xs(){for(var n=0,i=0,t=arguments.length;i<t;i++)n+=arguments[i].length;for(var e=Array(n),r=0,i=0;i<t;i++)for(var o=arguments[i],a=0,s=o.length;a<s;a++,r++)e[r]=o[a];return e}var Dn=typeof window<"u",Ys=Dn?window.navigator.userAgent:"",Ks=Dn?"getComputedStyle"in window:!1,Zs=/MSIE|Trident|Windows Phone|Edge/.test(Ys),Js=Dn?"addEventListener"in document:!1,pn="width",Ze="height";function mt(n,i){return n.getAttribute(i)||""}function Ot(n){return[].slice.call(n)}function Qs(n,i){return i===void 0&&(i="data-"),!!n.getAttribute(i+"width")}function Mi(n,i){return i===void 0&&(i="data-"),"loading"in n&&n.getAttribute("loading")==="lazy"||!!n.getAttribute(i+"lazy")}function qs(n,i){return i===void 0&&(i="data-"),!!n.getAttribute(i+"skip")}function zi(n,i,t){Js?n.addEventListener(i,t,!1):n.attachEvent?n.attachEvent("on"+i,t):n["on"+i]=t}function Bi(n,i,t){n.removeEventListener?n.removeEventListener(i,t,!1):n.detachEvent?n.detachEvent("on"+i,t):n["on"+i]=null}function el(n){return Li(n,"Width")}function tl(n){return Li(n,"Height")}function nl(n){return(Ks?window.getComputedStyle(n):n.currentStyle)||{}}function Li(n,i){var t=n["client"+i]||n["offset"+i];return parseFloat(t||nl(n)[i.toLowerCase()])||0}function rl(n,i,t){var e=Ot(n.querySelectorAll(Xs(["["+t+"skip] ["+t+"width]"],i.map(function(r){return["["+t+"skip] "+r,r+"["+t+"skip]","["+t+"width] "+r].join(", ")})).join(", ")));return Ot(n.querySelectorAll("["+t+"width], "+i.join(", "))).filter(function(r){return e.indexOf(r)===-1})}var Ne=[];function Vi(n,i){!Ne.length&&zi(window,"resize",Fi),n.__PREFIX__=i,Ne.push(n),ji(n)}function il(n,i){var t=Ne.indexOf(n);if(!(t<0)){var e=mt(n,i+"fixed");delete n.__PREFIX__,n.style[e===Ze?pn:Ze]="",Ne.splice(t,1),!Ne.length&&Bi(window,"resize",Fi)}}function ji(n,i){i===void 0&&(i="data-");var t=n.__PREFIX__||i,e=parseInt(mt(n,""+t+pn),10)||0,r=parseInt(mt(n,""+t+Ze),10)||0,o=mt(n,t+"fixed");if(o===Ze){var a=tl(n)||r;n.style[pn]=e/r*a+"px"}else{var a=el(n)||e;n.style[Ze]=r/e*a+"px"}}function Fi(){Ne.forEach(function(n){ji(n)})}var Mn=function(n){Ve(i,n);function i(e,r){r===void 0&&(r={});var o=n.call(this)||this;o.isReady=!1,o.isPreReady=!1,o.hasDataSize=!1,o.hasLoading=!1,o.isSkip=!1,o.onCheck=function(s){if(o.clear(),s&&s.type==="error"&&o.onError(o.element),!(o.hasLoading&&o.checkElement())){var u=!o.hasDataSize&&!o.hasLoading;o.onReady(u)}},o.options=Be({prefix:"data-"},r),o.element=e;var a=o.options.prefix;return o.hasDataSize=Qs(e,a),o.isSkip=qs(e,a),o.hasLoading=Mi(e,a),o}var t=i.prototype;return t.check=function(){return this.isSkip||!this.checkElement()?(this.onAlreadyReady(!0),!1):(this.hasDataSize&&Vi(this.element,this.options.prefix),(this.hasDataSize||this.hasLoading)&&this.onAlreadyPreReady(),!0)},t.addEvents=function(){var e=this,r=this.element;this.constructor.EVENTS.forEach(function(o){zi(r,o,e.onCheck)})},t.clear=function(){var e=this,r=this.element;this.constructor.EVENTS.forEach(function(o){Bi(r,o,e.onCheck)}),this.removeAutoSizer()},t.destroy=function(){this.clear(),this.off()},t.removeAutoSizer=function(){if(this.hasDataSize){var e=this.options.prefix;il(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(e){this.isReady||(e=!this.isPreReady&&e,e&&(this.isPreReady=!0),this.removeAutoSizer(),this.isReady=!0,this.trigger("ready",{element:this.element,withPreReady:e,hasLoading:this.hasLoading,isSkip:this.isSkip}))},t.onAlreadyError=function(e){var r=this;setTimeout(function(){r.onError(e)})},t.onAlreadyPreReady=function(){var e=this;setTimeout(function(){e.onPreReady()})},t.onAlreadyReady=function(e){var r=this;setTimeout(function(){r.onReady(e)})},i.EVENTS=[],i}(Se),ol=function(n){Ve(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}var t=i.prototype;return t.setHasLoading=function(e){this.hasLoading=e},t.check=function(){return this.isSkip?(this.onAlreadyReady(!0),!1):(this.hasDataSize?(Vi(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(){n.prototype.onAlreadyPreReady.call(this),this.trigger("reqeustReadyChildren")},i.EVENTS=[],i}(Mn),al=function(n){Ve(i,n);function i(e){e===void 0&&(e={});var r=n.call(this)||this;return r.readyCount=0,r.preReadyCount=0,r.totalCount=0,r.totalErrorCount=0,r.isPreReadyOver=!0,r.elementInfos=[],r.options=Be({loaders:{},prefix:"data-"},e),r}var t=i.prototype;return t.check=function(e){var r=this,o=this.options.prefix;this.clear(),this.elementInfos=Ot(e).map(function(s,u){var c=r.getLoader(s,{prefix:o});return c.check(),c.on("error",function(f){r.onError(u,f.target)}).on("preReady",function(f){var h=r.elementInfos[u];h.hasLoading=f.hasLoading,h.isSkip=f.isSkip;var v=r.checkPreReady(u);r.onPreReadyElement(u),v&&r.onPreReady()}).on("ready",function(f){var h=f.withPreReady,v=f.hasLoading,d=f.isSkip,p=r.elementInfos[u];p.hasLoading=v,p.isSkip=d;var g=h&&r.checkPreReady(u),m=r.checkReady(u);h&&r.onPreReadyElement(u),r.onReadyElement(u),g&&r.onPreReady(),m&&r.onReady()}),{loader:c,element:s,hasLoading:!1,hasError:!1,isPreReady:!1,isReady:!1,isSkip:!1}});var a=this.elementInfos.length;return this.totalCount=a,a||setTimeout(function(){r.onPreReady(),r.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,r){var o=this,a=e.tagName.toLowerCase(),s=this.options.loaders,u=r.prefix,c=Object.keys(s);if(s[a])return new s[a](e,r);var f=new ol(e,r),h=Ot(e.querySelectorAll(c.join(", ")));f.setHasLoading(h.some(function(p){return Mi(p,u)}));var v=!1,d=this.clone().on("error",function(p){f.onError(p.target)}).on("ready",function(){f.onReady(v)});return f.on("requestChildren",function(){var p=rl(e,c,o.options.prefix);d.check(p).on("preReady",function(g){v=g.isReady,v||f.onPreReady()})}).on("reqeustReadyChildren",function(){d.check(h)}).on("requestDestroy",function(){d.destroy()}),f},t.clone=function(){return new i(Be({},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,r){var o=this.elementInfos[e];o.hasError=!0,this.trigger(new V("error",{element:o.element,index:e,target:r,errorCount:this.getErrorCount(),totalErrorCount:++this.totalErrorCount}))},t.onPreReadyElement=function(e){var r=this.elementInfos[e];this.trigger(new V("preReadyElement",{element:r.element,index:e,preReadyCount:this.preReadyCount,readyCount:this.readyCount,totalCount:this.totalCount,isPreReady:this.isPreReady(),isReady:this.isReady(),hasLoading:r.hasLoading,isSkip:r.isSkip}))},t.onPreReady=function(){this.isPreReadyOver=!0,this.trigger(new V("preReady",{readyCount:this.readyCount,totalCount:this.totalCount,isReady:this.isReady(),hasLoading:this.hasLoading()}))},t.onReadyElement=function(e){var r=this.elementInfos[e];this.trigger(new V("readyElement",{index:e,element:r.element,hasError:r.hasError,errorCount:this.getErrorCount(),totalErrorCount:this.totalErrorCount,preReadyCount:this.preReadyCount,readyCount:this.readyCount,totalCount:this.totalCount,isPreReady:this.isPreReady(),isReady:this.isReady(),hasLoading:r.hasLoading,isPreReadyOver:this.isPreReadyOver,isSkip:r.isSkip}))},t.onReady=function(){this.trigger(new V("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})},i}(Se),sl=function(n){Ve(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}var t=i.prototype;return t.checkElement=function(){var e=this.element,r=e.getAttribute("src");if(e.complete){if(r)return e.naturalWidth||this.onAlreadyError(e),!1;this.onAlreadyPreReady()}return this.addEvents(),Zs&&e.setAttribute("src",r),!0},i.EVENTS=["load","error"],i}(Mn),ll=function(n){Ve(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}var t=i.prototype;return t.checkElement=function(){var e=this.element;return e.readyState>=1?!1:e.error?(this.onAlreadyError(e),!1):(this.addEvents(),!0)},i.EVENTS=["loadedmetadata","error"],i}(Mn),ul=function(n){Ve(i,n);function i(t){return t===void 0&&(t={}),n.call(this,Be({loaders:{img:sl,video:ll}},t))||this}return i}(al);const cl=ul;/*! *****************************************************************************
|
|
28
|
+
***************************************************************************** */var fn=function(n,i){return fn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},fn(n,i)};function Ve(n,i){fn(n,i);function t(){this.constructor=n}n.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}var Z=function(){return Z=Object.assign||function(i){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=t[o])}return i},Z.apply(this,arguments)};function dn(n,i,t,e){var r=arguments.length,o=r<3?i:e===null?e=Object.getOwnPropertyDescriptor(i,t):e,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,e);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o}var Q;typeof window>"u"?Q={navigator:{userAgent:""}}:Q=window;var st=1,os=2,as=4,ze=6,ss=8,ls=16,Be=24,Lt=30,Ot="left",hn="right",vn="middle",Ci={1:Ot,2:vn,3:hn},Ri="any",us="none",cs="shift",fs="ctrl",ds="alt",hs="meta",vs=16,ps=30,Ir="ontouchstart"in Q&&Wa().browser.name==="safari",gs=function(){if(typeof document>"u")return"";for(var n=(document.head||document.getElementsByTagName("head")[0]).style,i=["transform","webkitTransform","msTransform","mozTransform"],t=0,e=i.length;t<e;t++)if(i[t]in n)return i[t];return""}(),pn={"-webkit-user-select":"none","-ms-user-select":"none","-moz-user-select":"none","user-select":"none","-webkit-user-drag":"none"},Nr=function(n){for(var i=[],t=0,e=n.length;t<e;t++)i.push(n[t]);return i},ki=function(n,i){i===void 0&&(i=!1);var t;if(typeof n=="string"){var e=n.match(/^<([a-z]+)\s*([^>]*)>/);if(e){var r=document.createElement("div");r.innerHTML=n,t=Nr(r.childNodes)}else t=Nr(document.querySelectorAll(n));i||(t=t.length>=1?t[0]:void 0)}else n===Q?t=n:"value"in n||"current"in n?t=n.value||n.current:n.nodeName&&(n.nodeType===1||n.nodeType===9)?t=n:"jQuery"in Q&&n instanceof jQuery||n.constructor.prototype.jquery?t=i?n.toArray():n.get(0):Array.isArray(n)&&(t=n.map(function(o){return ki(o)}),i||(t=t.length>=1?t[0]:void 0));return t},ke=Q.requestAnimationFrame||Q.webkitRequestAnimationFrame,We=Q.cancelAnimationFrame||Q.webkitCancelAnimationFrame;if(ke&&!We){var Xt={},ms=ke;ke=function(n){var i=function(e){Xt[t]&&n(e)},t=ms(i);return Xt[t]=!0,t},We=function(n){delete Xt[n]}}else ke&&We||(ke=function(n){return Q.setTimeout(function(){n(Q.performance&&Q.performance.now&&Q.performance.now()||new Date().getTime())},16)},We=Q.clearTimeout);var _s=function(n){return ke(n)},ys=function(n){We(n)},se=function(n,i){var t={};for(var e in n)e&&(t[e]=i(n[e],e));return t},Ii=function(n,i){var t={};for(var e in n)e&&i(n[e],e)&&(t[e]=n[e]);return t},Dn=function(n,i){for(var t in n)if(t&&!i(n[t],t))return!1;return!0},Ue=function(n,i){return Dn(n,function(t,e){return t===i[e]})},Yt={},Ni=function(n,i){return Yt[i]||(Yt[i]=Es(i)),Yt[i](n)},Ar=function(n,i){return!n||!i?n:se(n,function(t,e){return Ni(t,typeof i=="number"?i:i[e])})},gt=function(n){if(!isFinite(n))return 0;var i="".concat(n);if(i.indexOf("e")>=0){for(var t=0,e=1;Math.round(n*e)/e!==n;)e*=10,t++;return t}return i.indexOf(".")>=0?i.length-i.indexOf(".")-1:0},bs=function(n){return 1/Math.pow(10,n)},Es=function(n){var i=n<1?Math.pow(10,gt(n)):1;return function(t){return n===0?0:Math.round(Math.round(t/n)*n*i)/i}},Ps=function(n,i){return Math.atan2(i,n)*180/Math.PI},xs=function(n){var i=!0;return Object.keys(pn).forEach(function(t){(!n||n[t]!==pn[t])&&(i=!1)}),i},Os=function(n,i){return n&&i?Lt:n?ze:i?Be:st},dt=function(n,i,t){return t?!!(i===Lt||i&n&&t&n):!!(i&n)},ws=function(n,i,t){var e,r=(e={},e[st]="auto",e[Lt]="none",e[Be]="pan-x",e[ze]="pan-y",e),o={};if(n&&n.style){var a=i.touchAction?i.touchAction:r[t],s=Z(Z({},pn),{"touch-action":n.style["touch-action"]==="none"?"none":a});Object.keys(s).forEach(function(u){o[u]=n.style[u],n.style[u]=s[u]})}return o},Ts=function(n,i){n&&n.style&&i&&Object.keys(i).forEach(function(t){n.style[t]=i[t]})},Ss=function(){function n(t){this._axes=t,this.holdingCount=0}var i=n.prototype;return i.hold=function(t,e){var r=this._getRoundPos(t).roundPos;this._axes.trigger(new V("hold",{pos:r,input:e.input||null,inputEvent:e.event||null,isTrusted:!0}))},i.triggerRelease=function(t){var e=this._getRoundPos(t.destPos,t.depaPos),r=e.roundPos,o=e.roundDepa;t.destPos=r,t.depaPos=o,t.setTo=this._createUserControll(t.destPos,t.duration),this._axes.trigger(new V("release",Z(Z({},t),{bounceRatio:this._getBounceRatio(r)})))},i.triggerChange=function(t,e,r,o){var a=this;o===void 0&&(o=!1);var s=this.animationManager,u=s.axisManager,c=s.getEventInfo(),f=this._getRoundPos(t,e),h=f.roundPos,v=f.roundDepa,d=u.moveTo(h,v),p=r?.event||c?.event||null,g={pos:d.pos,delta:d.delta,bounceRatio:this._getBounceRatio(d.pos),holding:o,inputEvent:p,isTrusted:!!p,input:r?.input||c?.input||null,set:p?this._createUserControll(d.pos):function(){}},m=new V("change",g);return this._axes.trigger(m),Object.keys(d.pos).forEach(function(_){var y=d.pos[_];Pe(a._axes,_,y).current=y}),p&&u.set(g.set().destPos),!m.isCanceled()},i.triggerAnimationStart=function(t){var e=this._getRoundPos(t.destPos,t.depaPos),r=e.roundPos,o=e.roundDepa;t.destPos=r,t.depaPos=o,t.setTo=this._createUserControll(t.destPos,t.duration);var a=new V("animationStart",t);return this._axes.trigger(a),!a.isCanceled()},i.triggerAnimationEnd=function(t){t===void 0&&(t=!1),this._axes.trigger(new V("animationEnd",{isTrusted:t}))},i.triggerFinish=function(t){t===void 0&&(t=!1),this._axes.trigger(new V("finish",{isTrusted:t}))},i.setAnimationManager=function(t){this.animationManager=t},i.destroy=function(){this._axes.off()},i._createUserControll=function(t,e){e===void 0&&(e=0);var r={destPos:Z({},t),duration:e};return function(o,a){return o&&(r.destPos=Z({},o)),a!==void 0&&(r.duration=a),r}},i._getRoundPos=function(t,e){var r=this._axes.options.round;return{roundPos:Ar(t,r),roundDepa:Ar(e,r)}},i._getBounceRatio=function(t){return this._axes.axisManager.map(t,function(e,r){return e<r.range[0]&&r.bounce[0]!==0?(r.range[0]-e)/r.bounce[0]:e>r.range[1]&&r.bounce[1]!==0?(e-r.range[1])/r.bounce[1]:0})},dn([Qa],n.prototype,"holdingCount",void 0),n}(),Cs=function(){function n(t){this._options=t,this._prevented=!1}var i=n.prototype;return i.isInterrupting=function(){return this._options.interruptable||this._prevented},i.isInterrupted=function(){return!this._options.interruptable&&this._prevented},i.setInterrupt=function(t){this._options.interruptable||(this._prevented=t)},n}(),Ai=function(n,i,t,e){var r=n,o=[t[0]?i[0]:e?i[0]-e[0]:i[0],t[1]?i[1]:e?i[1]+e[1]:i[1]];return r=Math.max(o[0],r),r=Math.min(o[1],r),r},Di=function(n,i){return n<i[0]||n>i[1]},Rs=function(n,i,t,e){return!e[0]&&n===i[0]-t[0]||!e[1]&&n===i[1]+t[1]},ks=function(n,i){var t=Math.sqrt(n/i*2);return t<100?0:t},Dr=function(n,i,t){return t[1]&&n>i[1]||t[0]&&n<i[0]},it=function(n,i,t){var e=n,r=i[0],o=i[1],a=o-r;return t[1]&&n>o&&(e=(e-o)%a+r),t[0]&&n<r&&(e=(e-r)%a+o),e},Is=function(){function n(t){var e=this;this._axis=t,this._complementOptions(),this._pos=Object.keys(this._axis).reduce(function(r,o){return r[o]=e._axis[o].startPos,r},{})}var i=n.prototype;return i.getDelta=function(t,e){var r=this.get(t);return se(this.get(e),function(o,a){return o-r[a]})},i.get=function(t){var e=this;return t&&Array.isArray(t)?t.reduce(function(r,o){return o&&o in e._pos&&(r[o]=e._pos[o]),r},{}):Z(Z({},this._pos),t||{})},i.moveTo=function(t,e){e===void 0&&(e=this._pos);var r=se(this._pos,function(o,a){return a in t&&a in e?t[a]-e[a]:0});return this.set(this.map(t,function(o,a){return a?it(o,a.range,a.circular):0})),{pos:Z({},this._pos),delta:r}},i.set=function(t){for(var e in t)e&&e in this._pos&&(this._pos[e]=t[e])},i.every=function(t,e){var r=this._axis;return Dn(t,function(o,a){return e(o,r[a],a)})},i.filter=function(t,e){var r=this._axis;return Ii(t,function(o,a){return e(o,r[a],a)})},i.map=function(t,e){var r=this._axis;return se(t,function(o,a){return e(o,r[a],a)})},i.isOutside=function(t){return!this.every(t?this.get(t):this._pos,function(e,r){return!Di(e,r.range)})},i.getAxisOptions=function(t){return this._axis[t]},i.setAxis=function(t){var e=this;Object.keys(t).forEach(function(r){if(!e._axis[r])throw new Error("Axis ".concat(r," does not exist in Axes instance"));e._axis[r]=Z(Z({},e._axis[r]),t[r])}),this._complementOptions()},i._complementOptions=function(){var t=this;Object.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(r){var o=t._axis,a=o[e][r];/string|number|boolean/.test(typeof a)&&(o[e][r]=[a,a])})})},n}(),Ns="ontouchstart"in Q,mt="PointerEvent"in Q,As="MSPointerEvent"in Q,Ds=mt||As,Ms=function(n,i){return!!(!i||i.indexOf(Ri)>-1||i.indexOf(us)>-1&&!n.shiftKey&&!n.ctrlKey&&!n.altKey&&!n.metaKey||i.indexOf(cs)>-1&&n.shiftKey||i.indexOf(fs)>-1&&n.ctrlKey||i.indexOf(ds)>-1&&n.altKey||i.indexOf(hs)>-1&&n.metaKey)},Vt=function(){function n(){var t=this;this._stopContextMenu=function(e){e.preventDefault(),Q.removeEventListener("contextmenu",t._stopContextMenu)}}var i=n.prototype;return i.extendEvent=function(t){var e,r=this.prevEvent,o=this._getCenter(t),a=r?this._getMovement(t):{x:0,y:0},s=r?this._getScale(t):1,u=r?Ps(o.x-r.center.x,o.y-r.center.y):0,c=r?r.deltaX+a.x:a.x,f=r?r.deltaY+a.y:a.y,h=a.x,v=a.y,d=this._latestInterval,p=Date.now(),g=d?p-d.timestamp:0,m=r?r.velocityX:0,_=r?r.velocityY:0;return(!d||g>=vs)&&(d&&(e=[(c-d.deltaX)/g,(f-d.deltaY)/g],m=e[0],_=e[1]),this._latestInterval={timestamp:p,deltaX:c,deltaY:f}),{srcEvent:t,scale:s,angle:u,center:o,deltaX:c,deltaY:f,offsetX:h,offsetY:v,velocityX:m,velocityY:_,preventSystemEvent:!0}},i._getDistance=function(t,e){var r=e.clientX-t.clientX,o=e.clientY-t.clientY;return Math.sqrt(r*r+o*o)},i._getButton=function(t){var e={1:Ot,2:hn,4:vn},r=this._isTouchEvent(t)?Ot:e[t.buttons];return r||null},i._isTouchEvent=function(t){return t.type&&t.type.indexOf("touch")>-1},i._isValidButton=function(t,e){return e.indexOf(t)>-1},i._isValidEvent=function(t,e,r){return(!e||Ms(t,e))&&(!r||this._isValidButton(this._getButton(t),r))},i._preventMouseButton=function(t,e){e===hn?Q.addEventListener("contextmenu",this._stopContextMenu):e===vn&&t.preventDefault()},n}(),zs=function(n){Ve(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.start=["mousedown"],e.move=["mousemove"],e.end=["mouseup"],e}var t=i.prototype;return t.onEventStart=function(e,r,o){var a=this._getButton(e);return this._isValidEvent(e,r,o)?(this._preventMouseButton(e,a),this.extendEvent(e)):null},t.onEventMove=function(e,r,o){return this._isValidEvent(e,r,o)?this.extendEvent(e):null},t.onEventEnd=function(){},t.onRelease=function(){this.prevEvent=null},t.getTouches=function(e,r){return r&&this._isValidButton(Ci[e.which],r)&&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 r=this.prevEvent.srcEvent;return{x:e.clientX-r.clientX,y:e.clientY-r.clientY}},i}(Vt),Bs=function(n){Ve(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.start=["touchstart"],e.move=["touchmove"],e.end=["touchend","touchcancel"],e}var t=i.prototype;return t.onEventStart=function(e,r){return this._baseTouches=e.touches,this._isValidEvent(e,r)?this.extendEvent(e):null},t.onEventMove=function(e,r){return this._isValidEvent(e,r)?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 r=this.prevEvent.srcEvent;return e.touches[0].identifier!==r.touches[0].identifier?{x:0,y:0}:{x:e.touches[0].clientX-r.touches[0].clientX,y:e.touches[0].clientY-r.touches[0].clientY}},i}(Vt),Ls=function(n){Ve(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.start=mt?["pointerdown"]:["MSPointerDown"],e.move=mt?["pointermove"]:["MSPointerMove"],e.end=mt?["pointerup","pointercancel"]:["MSPointerUp","MSPointerCancel"],e._firstInputs=[],e._recentInputs=[],e}var t=i.prototype;return t.onEventStart=function(e,r,o){var a=this._getButton(e);return this._isValidEvent(e,r,o)?(this._preventMouseButton(e,a),this._updatePointerEvent(e),this.extendEvent(e)):null},t.onEventMove=function(e,r,o){return this._isValidEvent(e,r,o)?(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 r=this.prevEvent.srcEvent;return e.pointerId!==r.pointerId?{x:0,y:0}:{x:e.clientX-r.clientX,y:e.clientY-r.clientY}},t._updatePointerEvent=function(e){var r=this,o=!1;this._recentInputs.forEach(function(a,s){a.pointerId===e.pointerId&&(o=!0,r._recentInputs[s]=e)}),o||(this._firstInputs.push(e),this._recentInputs.push(e))},t._removePointerEvent=function(e){this._firstInputs=this._firstInputs.filter(function(r){return r.pointerId!==e.pointerId}),this._recentInputs=this._recentInputs.filter(function(r){return r.pointerId!==e.pointerId})},i}(Vt),Vs=function(n){Ve(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.start=["mousedown","touchstart"],e.move=["mousemove","touchmove"],e.end=["mouseup","touchend","touchcancel"],e}var t=i.prototype;return t.onEventStart=function(e,r,o){var a=this._getButton(e);return this._isTouchEvent(e)&&(this._baseTouches=e.touches),this._isValidEvent(e,r,o)?(this._preventMouseButton(e,a),this.extendEvent(e)):null},t.onEventMove=function(e,r,o){return this._isValidEvent(e,r,o)?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,r){return this._isTouchEvent(e)?e.touches.length:this._isValidButton(Ci[e.which],r)&&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 r=this,o=this.prevEvent.srcEvent,a=[e,o].map(function(c){return r._isTouchEvent(c)?{id:c.touches[0].identifier,x:c.touches[0].clientX,y:c.touches[0].clientY}:{id:null,x:c.clientX,y:c.clientY}}),s=a[0],u=a[1];return s.id===u.id?{x:s.x-u.x,y:s.y-u.y}:{x:0,y:0}},i}(Vt),Mi=function(n,i){return i.reduce(function(t,e,r){return n[r]&&(t[n[r]]=e),t},{})},js=function(n){n===void 0&&(n=[]);var i=!1,t=!1,e=!1;return n.forEach(function(r){switch(r){case"mouse":t=!0;break;case"touch":i=Ns;break;case"pointer":e=Ds}}),e?new Ls:i&&t?new Vs:i?new Bs:t?new zs:null};function Mr(n){return n.indexOf("touch")>-1?{passive:!1}:!1}var Fs=function(){function n(t){var e=t.options,r=t.interruptManager,o=t.eventManager,a=t.axisManager,s=t.animationManager;this._isOutside=!1,this._moveDistance=null,this._isStopped=!1,this.options=e,this._interruptManager=r,this._eventManager=o,this._axisManager=a,this._animationManager=s}var i=n.prototype;return i.get=function(t){return this._axisManager.get(t.axes)},i.hold=function(t,e){if(!(this._interruptManager.isInterrupted()||!t.axes.length)){var r={input:t,event:e};this._isStopped=!1,this._interruptManager.setInterrupt(!0),this._animationManager.stopAnimation(r),++this._eventManager.holdingCount,this._moveDistance||this._eventManager.hold(this._axisManager.get(),r),this._isOutside=this._axisManager.isOutside(t.axes),this._moveDistance=this._axisManager.get(t.axes)}},i.change=function(t,e,r,o){if(!(this._isStopped||!this._interruptManager.isInterrupting()||this._axisManager.every(r,function(v){return v===0}))){var a=e.srcEvent?e.srcEvent:e;if(!a.__childrenAxesAlreadyChanged){var s=this._moveDistance||this._axisManager.get(t.axes),u;u=se(s,function(v,d){return v+(r[d]||0)}),this._moveDistance&&(this._moveDistance=this._axisManager.map(u,function(v,d){var p=d.circular,g=d.range;return p&&(p[0]||p[1])?it(v,g,p):v})),this._isOutside&&this._axisManager.every(s,function(v,d){return!Di(v,d.range)})&&(this._isOutside=!1),s=this._atOutside(s),u=this._atOutside(u),(!this.options.nested||!this._isEndofAxis(r,s,u))&&(a.__childrenAxesAlreadyChanged=!0);var c={input:t,event:e};if(o){var f=this._animationManager.getDuration(u,s);this._animationManager.animateTo(u,f,c)}else{var h=!this._eventManager.triggerChange(u,s,c,!0);h&&(this._isStopped=!0,this._moveDistance=null,this._animationManager.finish(!1))}}}},i.release=function(t,e,r,o){if(!(this._isStopped||!this._interruptManager.isInterrupting()||!this._moveDistance)){var a=e.srcEvent?e.srcEvent:e;a.__childrenAxesAlreadyReleased&&(r=r.map(function(){return 0}));var s=this._axisManager.get(t.axes),u=this._axisManager.get(),c=this._animationManager.getDisplacement(r),f=Mi(t.axes,c),h=this._axisManager.get(this._axisManager.map(f,function(_,y,b){return y.circular&&(y.circular[0]||y.circular[1])?s[b]+_:Ai(s[b]+_,y.range,y.circular,y.bounce)}));a.__childrenAxesAlreadyReleased=!0;var v=this._animationManager.getDuration(h,s,o);v===0&&(h=Z({},u));var d={depaPos:u,destPos:h,duration:v,delta:this._axisManager.getDelta(u,h),inputEvent:e,input:t,isTrusted:!0};--this._eventManager.holdingCount,this._eventManager.triggerRelease(d),this._eventManager.holdingCount===0&&(this._moveDistance=null);var p=this._animationManager.getUserControl(d),g=Ue(p.destPos,u),m={input:t,event:e};g||p.duration===0?(g||this._eventManager.triggerChange(p.destPos,u,m,!0),this._interruptManager.setInterrupt(!1),this._axisManager.isOutside()?this._animationManager.restore(m):this._eventManager.triggerFinish(!0)):this._animationManager.animateTo(p.destPos,p.duration,m)}},i._atOutside=function(t){var e=this;return this._isOutside?this._axisManager.map(t,function(r,o){var a=o.range[0]-o.bounce[0],s=o.range[1]+o.bounce[1];return r>s?s:r<a?a:r}):this._axisManager.map(t,function(r,o){var a=o.range[0],s=o.range[1],u=o.bounce,c=o.circular;return c[0]&&r<a||c[1]&&r>s?r:r<a?a-e._animationManager.interpolate(a-r,u[0]):r>s?s+e._animationManager.interpolate(r-s,u[1]):r})},i._isEndofAxis=function(t,e,r){return this._axisManager.every(e,function(o,a,s){return t[s]===0||e[s]===r[s]&&Rs(o,a.range,a.bounce,a.circular)})},n}(),Kt=function(n,i,t){return Math.max(Math.min(n,t),i)},$s=function(){function n(t){var e=t.options,r=t.interruptManager,o=t.eventManager,a=t.axisManager;this._options=e,this.interruptManager=r,this.eventManager=o,this.axisManager=a,this.animationEnd=this.animationEnd.bind(this)}var i=n.prototype;return i.getDuration=function(t,e,r){var o=this,a;if(typeof r<"u")a=r;else{var s=se(e,function(u,c){return ks(Math.abs(u-t[c]),o._options.deceleration)});a=Object.keys(s).reduce(function(u,c){return Math.max(u,s[c])},-1/0)}return Kt(a,this._options.minimumDuration,this._options.maximumDuration)},i.getDisplacement=function(t){var e=Math.pow(t.reduce(function(o,a){return o+a*a},0),1/t.length),r=Math.abs(e/-this._options.deceleration);return t.map(function(o){return o/2*r})},i.stopAnimation=function(t){if(this._animateParam){var e=this.axisManager.get(),r=this.axisManager.map(e,function(o,a){return it(o,a.range,a.circular)});Dn(r,function(o,a){return e[a]===o})||this.eventManager.triggerChange(r,e,t,!!t),this._animateParam=null,this._raf&&ys(this._raf),this._raf=null,this.eventManager.triggerAnimationEnd(!!t?.event)}},i.getEventInfo=function(){return this._animateParam&&this._animateParam.input&&this._animateParam.inputEvent?{input:this._animateParam.input,event:this._animateParam.inputEvent}:null},i.restore=function(t){var e=this.axisManager.get(),r=this.axisManager.map(e,function(o,a){return Math.min(a.range[1],Math.max(a.range[0],o))});this.stopAnimation(),this.animateTo(r,this.getDuration(e,r),t)},i.animationEnd=function(){var t=this.getEventInfo();this._animateParam=null;var e=this.axisManager.filter(this.axisManager.get(),function(r,o){return Dr(r,o.range,o.circular)});Object.keys(e).length>0&&this.setTo(this.axisManager.map(e,function(r,o){return it(r,o.range,o.circular)})),this.interruptManager.setInterrupt(!1),this.eventManager.triggerAnimationEnd(!!t),this.axisManager.isOutside()?this.restore(t):this.finish(!!t)},i.finish=function(t){this._animateParam=null,this.interruptManager.setInterrupt(!1),this.eventManager.triggerFinish(t)},i.getUserControl=function(t){var e=t.setTo();return e.destPos=this.axisManager.get(e.destPos),e.duration=Kt(e.duration,this._options.minimumDuration,this._options.maximumDuration),e},i.animateTo=function(t,e,r){var o=this;this.stopAnimation();var a=this._createAnimationParam(t,e,r),s=Z({},a.depaPos),u=this.eventManager.triggerAnimationStart(a),c=this.getUserControl(a);if(!u&&this.axisManager.every(c.destPos,function(h,v){return Dr(h,v.range,v.circular)})&&console.warn("You can't stop the 'animation' event when 'circular' is true."),u&&!Ue(c.destPos,s)){var f=r?.event||null;this._animateLoop({depaPos:s,destPos:c.destPos,duration:c.duration,delta:this.axisManager.getDelta(s,c.destPos),isTrusted:!!f,inputEvent:f,input:r?.input||null},function(){return o.animationEnd()})}},i.setTo=function(t,e){e===void 0&&(e=0);var r=Object.keys(t),o=this.axisManager.get(r);if(Ue(t,o))return this;this.interruptManager.setInterrupt(!0);var a=Ii(t,function(s,u){return o[u]!==s});return Object.keys(a).length?(a=this.axisManager.map(a,function(s,u){var c=u.range,f=u.circular;return f&&(f[0]||f[1])?s:Ai(s,c,f)}),Ue(a,o)?this:(e>0?this.animateTo(a,e):(this.stopAnimation(),this.eventManager.triggerChange(a),this.finish(!1)),this)):this},i.setBy=function(t,e){return e===void 0&&(e=0),this.setTo(se(this.axisManager.get(Object.keys(t)),function(r,o){return r+t[o]}),e)},i.setOptions=function(t){this._options=Z(Z({},this._options),t)},i._createAnimationParam=function(t,e,r){var o=this.axisManager.get(),a=t,s=r?.event||null;return{depaPos:o,destPos:a,duration:Kt(e,this._options.minimumDuration,this._options.maximumDuration),delta:this.axisManager.getDelta(o,a),inputEvent:s,input:r?.input||null,isTrusted:!!s,done:this.animationEnd}},i._animateLoop=function(t,e){var r=this;if(t.duration){this._animateParam=Z(Z({},t),{startTime:new Date().getTime()});var o=se(t.destPos,function(u){return u}),a=this._initState(this._animateParam),s=function(){r._raf=null;var u=r._animateParam,c=r._getNextState(a),f=!r.eventManager.triggerChange(c.pos,a.pos);if(a=c,c.finished){u.destPos=r._getFinalPos(u.destPos,o),Ue(u.destPos,r.axisManager.get(Object.keys(u.destPos)))||r.eventManager.triggerChange(u.destPos,c.pos),e();return}else f?r.finish(!1):r._raf=_s(s)};s()}else this.eventManager.triggerChange(t.destPos),e()},i._getFinalPos=function(t,e){var r=this,o=1e-6,a=se(t,function(s,u){if(s>=e[u]-o&&s<=e[u]+o)return e[u];var c=r._getRoundUnit(s,u),f=Ni(s,c);return f});return a},i._getRoundUnit=function(t,e){var r=this._options.round,o=null;if(!r){var a=this.axisManager.getAxisOptions(e);o=bs(Math.max(gt(a.range[0]),gt(a.range[1]),gt(t)))}return o||r},n}(),Hs=function(n){Ve(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e._useDuration=!0,e}var t=i.prototype;return t.interpolate=function(e,r){var o=this._easing(1e-5)/1e-5;return this._easing(e/(r*o))*r},t.updateAnimation=function(e){var r,o=this._animateParam;if(o){var a=new Date().getTime()-o.startTime,s=e?.destPos||o.destPos,u=(r=e?.duration)!==null&&r!==void 0?r:o.duration;if(e?.restart||u<=a){this.setTo(s,u-a);return}if(e?.destPos){var c=this.axisManager.get();this._initialEasingPer=this._prevEasingPer,o.delta=this.axisManager.getDelta(c,s),o.destPos=s}if(e?.duration){var f=(a+this._durationOffset)/o.duration;this._durationOffset=f*u-a,o.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 r=this,o=this._animateParam,a=e.pos,s=o.destPos,u=se(a,function(d,p){return d<=s[p]?1:-1}),c=new Date().getTime()-o.startTime,f=(c+this._durationOffset)/o.duration,h=this._easing(f),v=this.axisManager.map(a,function(d,p,g){var m=f>=1?s[g]:d+o.delta[g]*(h-r._prevEasingPer)/(1-r._initialEasingPer),_=it(m,p.range,p.circular);if(m!==_){var y=u[g]*(p.range[1]-p.range[0]);s[g]-=y,a[g]-=y}return _});return this._prevEasingPer=h,{pos:v,easingPer:h,finished:h>=1}},t._easing=function(e){return e>1?1:this._options.easing(e)},i}($s),Gs=function(n){Ve(i,n);function i(e,r,o){e===void 0&&(e={}),r===void 0&&(r={}),o===void 0&&(o={});var a=n.call(this)||this;return a.axis=e,a._inputs=[],a.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},r),Object.keys(o).forEach(function(s){a.axis[s].startPos=o[s]}),a.interruptManager=new Cs(a.options),a.axisManager=new Is(a.axis),a.eventManager=new Ss(a),a.animationManager=new Hs(a),a.inputObserver=new Fs(a),a.eventManager.setAnimationManager(a.animationManager),a.eventManager.triggerChange(a.axisManager.get()),a}var t=i.prototype;return Object.defineProperty(t,"holding",{get:function(){return this.eventManager.holdingCount>0},enumerable:!1,configurable:!0}),t.connect=function(e,r){var o;return typeof e=="string"?o=e.split(" "):o=e.concat(),~this._inputs.indexOf(r)&&this.disconnect(r),r.mapAxes(o),r.connect(this.inputObserver),this._inputs.push(r),this},t.disconnect=function(e){if(e){var r=this._inputs.indexOf(e);r>=0&&(this._inputs[r].disconnect(),this._inputs.splice(r,1))}else this._inputs.forEach(function(o){return o.disconnect()}),this._inputs=[];return this},t.get=function(e){return this.axisManager.get(e)},t.setTo=function(e,r){return r===void 0&&(r=0),this.animationManager.setTo(e,r),this},t.setBy=function(e,r){return r===void 0&&(r=0),this.animationManager.setBy(e,r),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()},i.VERSION="3.9.0",i.TRANSFORM=gs,i.DIRECTION_NONE=st,i.DIRECTION_LEFT=os,i.DIRECTION_RIGHT=as,i.DIRECTION_UP=ss,i.DIRECTION_DOWN=ls,i.DIRECTION_HORIZONTAL=ze,i.DIRECTION_VERTICAL=Be,i.DIRECTION_ALL=Lt,dn([is],i.prototype,"holding",null),i=dn([es],i),i}(Se),Ws=function(n,i){if(i<0||i>90)return st;var t=Math.abs(n);return t>i&&t<180-i?Be:ze},Us=function(){function n(t,e){var r=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(o){r._dragged&&(o.preventDefault(),o.stopPropagation()),r._dragged=!1},this._voidFunction=function(){},this.element=ki(t),this.options=Z({inputType:["touch","mouse","pointer"],inputKey:[Ri],inputButton:[Ot],scale:[1,1],thresholdAngle:45,threshold:0,preventClickOnDrag:!1,preventDefaultOnDrag:!1,iOSEdgeSwipeThreshold:ps,releaseOnScroll:!1,touchAction:null},e),this._onPanstart=this._onPanstart.bind(this),this._onPanmove=this._onPanmove.bind(this),this._onPanend=this._onPanend.bind(this)}var i=n.prototype;return i.mapAxes=function(t){this._direction=Os(!!t[0],!!t[1]),this.axes=t},i.connect=function(t){return this._activeEvent&&(this._detachElementEvent(),this._detachWindowEvent(this._activeEvent)),this._attachElementEvent(t),this._originalCssProps=ws(this.element,this.options,this._direction),this},i.disconnect=function(){return this._detachElementEvent(),this._detachWindowEvent(this._activeEvent),xs(this._originalCssProps)||Ts(this.element,this._originalCssProps),this._direction=st,this},i.destroy=function(){this.disconnect(),this.element=null},i.enable=function(){return this._enabled=!0,this},i.disable=function(){return this._enabled=!1,this},i.isEnabled=function(){return this._enabled},i.release=function(){var t=this._activeEvent,e=t.prevEvent;return t.onRelease(),this._observer.release(this,e,[0,0]),this._detachWindowEvent(t),this},i._onPanstart=function(t){var e=this.options,r=e.inputKey,o=e.inputButton,a=e.preventDefaultOnDrag,s=this._activeEvent,u=s.onEventStart(t,r,o);if(!(!u||!this._enabled||s.getTouches(t,o)>1)&&u.srcEvent.cancelable!==!1){var c=this.options.iOSEdgeSwipeThreshold;this._dragged=!1,this._isOverThreshold=!1,this._observer.hold(this,u),this._atRightEdge=Ir&&u.center.x>window.innerWidth-c,this._attachWindowEvent(s),a&&u.srcEvent.type!=="touchstart"&&u.srcEvent.preventDefault(),s.prevEvent=u}},i._onPanmove=function(t){var e=this,r=this.options,o=r.iOSEdgeSwipeThreshold,a=r.preventClickOnDrag,s=r.releaseOnScroll,u=r.inputKey,c=r.inputButton,f=r.threshold,h=r.thresholdAngle,v=this._activeEvent,d=v.onEventMove(t,u,c),p=v.getTouches(t,c);if(p===0||s&&d&&!d.srcEvent.cancelable){this._onPanend(t);return}if(!(!d||!this._enabled||p>1)){var g=Ws(d.angle,h),m=dt(ze,this._direction,g),_=dt(Be,this._direction,g);if(v.prevEvent&&Ir){var y=d.center.x<0;if(y){this.release();return}else if(this._atRightEdge){clearTimeout(this._rightEdgeTimer);var b=d.deltaX<-o;b?this._atRightEdge=!1:this._rightEdgeTimer=window.setTimeout(function(){return e.release()},100)}}var E=this._getDistance([d.deltaX,d.deltaY],[m,_]),x=this._getOffset([d.offsetX,d.offsetY],[m,_]),C=x.some(function(I){return I!==0});C&&(d.srcEvent.cancelable!==!1&&d.srcEvent.preventDefault(),d.srcEvent.stopPropagation()),d.preventSystemEvent=C,C&&(this._isOverThreshold||E>=f)&&(this._dragged=a,this._isOverThreshold=!0,this._observer.change(this,d,Mi(this.axes,x))),v.prevEvent=d}},i._onPanend=function(t){var e=this.options.inputButton,r=this._activeEvent;if(r.onEventEnd(t),!(!this._enabled||r.getTouches(t,e)!==0)){this._detachWindowEvent(r),clearTimeout(this._rightEdgeTimer);var o=r.prevEvent,a=this._isOverThreshold?this._getOffset([Math.abs(o.velocityX)*(o.offsetX<0?-1:1),Math.abs(o.velocityY)*(o.offsetY<0?-1:1)],[dt(ze,this._direction),dt(Be,this._direction)]):[0,0];r.onRelease(),this._observer.release(this,o,a)}},i._attachWindowEvent=function(t){var e=this;t?.move.forEach(function(r){window.addEventListener(r,e._onPanmove,Mr(r))}),t?.end.forEach(function(r){window.addEventListener(r,e._onPanend,Mr(r))})},i._detachWindowEvent=function(t){var e=this;t?.move.forEach(function(r){window.removeEventListener(r,e._onPanmove)}),t?.end.forEach(function(r){window.removeEventListener(r,e._onPanend)})},i._getOffset=function(t,e){var r=this.options.scale;return[e[0]?t[0]*r[0]:0,e[1]?t[1]*r[1]:0]},i._getDistance=function(t,e){return Math.sqrt(Number(e[0])*Math.pow(t[0],2)+Number(e[1])*Math.pow(t[1],2))},i._attachElementEvent=function(t){var e=this,r=js(this.options.inputType),o=this.element;if(r){if(!o)throw new Error("Element to connect input does not exist.");this._observer=t,this._enabled=!0,this._activeEvent=r,o.addEventListener("click",this._preventClickWhenDragged,!0),r.start.forEach(function(a){o.addEventListener(a,e._onPanstart)}),r.move.forEach(function(a){o.addEventListener(a,e._voidFunction)})}},i._detachElementEvent=function(){var t=this,e=this._activeEvent,r=this.element;r&&(r.removeEventListener("click",this._preventClickWhenDragged,!0),e?.start.forEach(function(o){r.removeEventListener(o,t._onPanstart)}),e?.move.forEach(function(o){r.removeEventListener(o,t._voidFunction)})),this._enabled=!1,this._observer=null},n}();const Xs=Gs;var gn=function(n,i){return gn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},gn(n,i)};function je(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");gn(n,i);function t(){this.constructor=n}n.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}var Le=function(){return Le=Object.assign||function(i){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=t[o])}return i},Le.apply(this,arguments)};function Ys(){for(var n=0,i=0,t=arguments.length;i<t;i++)n+=arguments[i].length;for(var e=Array(n),r=0,i=0;i<t;i++)for(var o=arguments[i],a=0,s=o.length;a<s;a++,r++)e[r]=o[a];return e}var Mn=typeof window<"u",Ks=Mn?window.navigator.userAgent:"",Zs=Mn?"getComputedStyle"in window:!1,Js=/MSIE|Trident|Windows Phone|Edge/.test(Ks),Qs=Mn?"addEventListener"in document:!1,mn="width",Je="height";function _t(n,i){return n.getAttribute(i)||""}function wt(n){return[].slice.call(n)}function qs(n,i){return i===void 0&&(i="data-"),!!n.getAttribute(i+"width")}function zi(n,i){return i===void 0&&(i="data-"),"loading"in n&&n.getAttribute("loading")==="lazy"||!!n.getAttribute(i+"lazy")}function el(n,i){return i===void 0&&(i="data-"),!!n.getAttribute(i+"skip")}function Bi(n,i,t){Qs?n.addEventListener(i,t,!1):n.attachEvent?n.attachEvent("on"+i,t):n["on"+i]=t}function Li(n,i,t){n.removeEventListener?n.removeEventListener(i,t,!1):n.detachEvent?n.detachEvent("on"+i,t):n["on"+i]=null}function tl(n){return Vi(n,"Width")}function nl(n){return Vi(n,"Height")}function rl(n){return(Zs?window.getComputedStyle(n):n.currentStyle)||{}}function Vi(n,i){var t=n["client"+i]||n["offset"+i];return parseFloat(t||rl(n)[i.toLowerCase()])||0}function il(n,i,t){var e=wt(n.querySelectorAll(Ys(["["+t+"skip] ["+t+"width]"],i.map(function(r){return["["+t+"skip] "+r,r+"["+t+"skip]","["+t+"width] "+r].join(", ")})).join(", ")));return wt(n.querySelectorAll("["+t+"width], "+i.join(", "))).filter(function(r){return e.indexOf(r)===-1})}var Ae=[];function ji(n,i){!Ae.length&&Bi(window,"resize",$i),n.__PREFIX__=i,Ae.push(n),Fi(n)}function ol(n,i){var t=Ae.indexOf(n);if(!(t<0)){var e=_t(n,i+"fixed");delete n.__PREFIX__,n.style[e===Je?mn:Je]="",Ae.splice(t,1),!Ae.length&&Li(window,"resize",$i)}}function Fi(n,i){i===void 0&&(i="data-");var t=n.__PREFIX__||i,e=parseInt(_t(n,""+t+mn),10)||0,r=parseInt(_t(n,""+t+Je),10)||0,o=_t(n,t+"fixed");if(o===Je){var a=nl(n)||r;n.style[mn]=e/r*a+"px"}else{var a=tl(n)||e;n.style[Je]=r/e*a+"px"}}function $i(){Ae.forEach(function(n){Fi(n)})}var zn=function(n){je(i,n);function i(e,r){r===void 0&&(r={});var o=n.call(this)||this;o.isReady=!1,o.isPreReady=!1,o.hasDataSize=!1,o.hasLoading=!1,o.isSkip=!1,o.onCheck=function(s){if(o.clear(),s&&s.type==="error"&&o.onError(o.element),!(o.hasLoading&&o.checkElement())){var u=!o.hasDataSize&&!o.hasLoading;o.onReady(u)}},o.options=Le({prefix:"data-"},r),o.element=e;var a=o.options.prefix;return o.hasDataSize=qs(e,a),o.isSkip=el(e,a),o.hasLoading=zi(e,a),o}var t=i.prototype;return t.check=function(){return this.isSkip||!this.checkElement()?(this.onAlreadyReady(!0),!1):(this.hasDataSize&&ji(this.element,this.options.prefix),(this.hasDataSize||this.hasLoading)&&this.onAlreadyPreReady(),!0)},t.addEvents=function(){var e=this,r=this.element;this.constructor.EVENTS.forEach(function(o){Bi(r,o,e.onCheck)})},t.clear=function(){var e=this,r=this.element;this.constructor.EVENTS.forEach(function(o){Li(r,o,e.onCheck)}),this.removeAutoSizer()},t.destroy=function(){this.clear(),this.off()},t.removeAutoSizer=function(){if(this.hasDataSize){var e=this.options.prefix;ol(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(e){this.isReady||(e=!this.isPreReady&&e,e&&(this.isPreReady=!0),this.removeAutoSizer(),this.isReady=!0,this.trigger("ready",{element:this.element,withPreReady:e,hasLoading:this.hasLoading,isSkip:this.isSkip}))},t.onAlreadyError=function(e){var r=this;setTimeout(function(){r.onError(e)})},t.onAlreadyPreReady=function(){var e=this;setTimeout(function(){e.onPreReady()})},t.onAlreadyReady=function(e){var r=this;setTimeout(function(){r.onReady(e)})},i.EVENTS=[],i}(Se),al=function(n){je(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}var t=i.prototype;return t.setHasLoading=function(e){this.hasLoading=e},t.check=function(){return this.isSkip?(this.onAlreadyReady(!0),!1):(this.hasDataSize?(ji(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(){n.prototype.onAlreadyPreReady.call(this),this.trigger("reqeustReadyChildren")},i.EVENTS=[],i}(zn),sl=function(n){je(i,n);function i(e){e===void 0&&(e={});var r=n.call(this)||this;return r.readyCount=0,r.preReadyCount=0,r.totalCount=0,r.totalErrorCount=0,r.isPreReadyOver=!0,r.elementInfos=[],r.options=Le({loaders:{},prefix:"data-"},e),r}var t=i.prototype;return t.check=function(e){var r=this,o=this.options.prefix;this.clear(),this.elementInfos=wt(e).map(function(s,u){var c=r.getLoader(s,{prefix:o});return c.check(),c.on("error",function(f){r.onError(u,f.target)}).on("preReady",function(f){var h=r.elementInfos[u];h.hasLoading=f.hasLoading,h.isSkip=f.isSkip;var v=r.checkPreReady(u);r.onPreReadyElement(u),v&&r.onPreReady()}).on("ready",function(f){var h=f.withPreReady,v=f.hasLoading,d=f.isSkip,p=r.elementInfos[u];p.hasLoading=v,p.isSkip=d;var g=h&&r.checkPreReady(u),m=r.checkReady(u);h&&r.onPreReadyElement(u),r.onReadyElement(u),g&&r.onPreReady(),m&&r.onReady()}),{loader:c,element:s,hasLoading:!1,hasError:!1,isPreReady:!1,isReady:!1,isSkip:!1}});var a=this.elementInfos.length;return this.totalCount=a,a||setTimeout(function(){r.onPreReady(),r.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,r){var o=this,a=e.tagName.toLowerCase(),s=this.options.loaders,u=r.prefix,c=Object.keys(s);if(s[a])return new s[a](e,r);var f=new al(e,r),h=wt(e.querySelectorAll(c.join(", ")));f.setHasLoading(h.some(function(p){return zi(p,u)}));var v=!1,d=this.clone().on("error",function(p){f.onError(p.target)}).on("ready",function(){f.onReady(v)});return f.on("requestChildren",function(){var p=il(e,c,o.options.prefix);d.check(p).on("preReady",function(g){v=g.isReady,v||f.onPreReady()})}).on("reqeustReadyChildren",function(){d.check(h)}).on("requestDestroy",function(){d.destroy()}),f},t.clone=function(){return new i(Le({},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,r){var o=this.elementInfos[e];o.hasError=!0,this.trigger(new V("error",{element:o.element,index:e,target:r,errorCount:this.getErrorCount(),totalErrorCount:++this.totalErrorCount}))},t.onPreReadyElement=function(e){var r=this.elementInfos[e];this.trigger(new V("preReadyElement",{element:r.element,index:e,preReadyCount:this.preReadyCount,readyCount:this.readyCount,totalCount:this.totalCount,isPreReady:this.isPreReady(),isReady:this.isReady(),hasLoading:r.hasLoading,isSkip:r.isSkip}))},t.onPreReady=function(){this.isPreReadyOver=!0,this.trigger(new V("preReady",{readyCount:this.readyCount,totalCount:this.totalCount,isReady:this.isReady(),hasLoading:this.hasLoading()}))},t.onReadyElement=function(e){var r=this.elementInfos[e];this.trigger(new V("readyElement",{index:e,element:r.element,hasError:r.hasError,errorCount:this.getErrorCount(),totalErrorCount:this.totalErrorCount,preReadyCount:this.preReadyCount,readyCount:this.readyCount,totalCount:this.totalCount,isPreReady:this.isPreReady(),isReady:this.isReady(),hasLoading:r.hasLoading,isPreReadyOver:this.isPreReadyOver,isSkip:r.isSkip}))},t.onReady=function(){this.trigger(new V("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})},i}(Se),ll=function(n){je(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}var t=i.prototype;return t.checkElement=function(){var e=this.element,r=e.getAttribute("src");if(e.complete){if(r)return e.naturalWidth||this.onAlreadyError(e),!1;this.onAlreadyPreReady()}return this.addEvents(),Js&&e.setAttribute("src",r),!0},i.EVENTS=["load","error"],i}(zn),ul=function(n){je(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}var t=i.prototype;return t.checkElement=function(){var e=this.element;return e.readyState>=1?!1:e.error?(this.onAlreadyError(e),!1):(this.addEvents(),!0)},i.EVENTS=["loadedmetadata","error"],i}(zn),cl=function(n){je(i,n);function i(t){return t===void 0&&(t={}),n.call(this,Le({loaders:{img:ll,video:ul}},t))||this}return i}(sl);const fl=cl;/*! *****************************************************************************
|
|
29
29
|
Copyright (c) Microsoft Corporation.
|
|
30
30
|
|
|
31
31
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -38,7 +38,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
38
38
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
39
39
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
40
40
|
PERFORMANCE OF THIS SOFTWARE.
|
|
41
|
-
***************************************************************************** */var gn=function(n,i){return gn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},gn(n,i)};function te(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");gn(n,i);function t(){this.constructor=n}n.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}var ne=function(){return ne=Object.assign||function(i){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=t[o])}return i},ne.apply(this,arguments)};function Ae(n,i,t,e){function r(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(f){try{c(e.next(f))}catch(h){a(h)}}function u(f){try{c(e.throw(f))}catch(h){a(h)}}function c(f){f.done?o(f.value):r(f.value).then(s,u)}c((e=e.apply(n,i||[])).next())})}function De(n,i){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},e,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(f){return u([c,f])}}function u(c){if(e)throw new TypeError("Generator is already executing.");for(;t;)try{if(e=1,r&&(o=c[0]&2?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,r=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){t.label=c[1];break}if(c[0]===6&&t.label<o[1]){t.label=o[1],o=c;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(c);break}o[2]&&t.ops.pop(),t.trys.pop();continue}c=i.call(n,t)}catch(f){c=[6,f],r=0}finally{e=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Lt(n){var i=typeof Symbol=="function"&&Symbol.iterator,t=i&&n[i],e=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&e>=n.length&&(n=void 0),{value:n&&n[e++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function zn(n,i){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var e=t.call(n),r,o=[],a;try{for(;(i===void 0||i-- >0)&&!(r=e.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(t=e.return)&&t.call(e)}finally{if(a)throw a.error}}return o}function J(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(zn(arguments[i]));return n}var G={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,NO_ACTIVE:13,NOT_ALLOWED_IN_VIRTUAL:14},U={WRONG_TYPE:function(n,i){return n+"("+typeof n+") is not a "+i.map(function(t){return'"'+t+'"'}).join(" or ")+"."},ELEMENT_NOT_FOUND:function(n){return'Element with selector "'+n+'" not found.'},VAL_MUST_NOT_NULL:function(n,i){return i+" should be provided. Given: "+n},NOT_ATTACHED_TO_FLICKING:'This module is not attached to the Flicking instance. "init()" should be called first.',WRONG_OPTION:function(n,i){return'Option "'+n+'" is not in correct format, given: '+i},INDEX_OUT_OF_RANGE:function(n,i,t){return'Index "'+n+'" is out of range: should be between '+i+" and "+t+"."},POSITION_NOT_REACHABLE:function(n){return'Position "'+n+'" 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"},B={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"},ce={PREV:"prev",CENTER:"center",NEXT:"next"},F={PREV:"PREV",NEXT:"NEXT",NONE:null},ke={SNAP:"snap",FREE_SCROLL:"freeScroll",STRICT:"strict"},fl={VERTICAL:"vertical",HIDDEN:"flicking-hidden",DEFAULT_VIRTUAL:"flicking-panel"},$i={LINEAR:"linear",BOUND:"bound"},dl=function(n,i){var t=null;if(we(n)){var e=i||document,r=e.querySelector(n);if(!r)throw new W(U.ELEMENT_NOT_FOUND(n),G.ELEMENT_NOT_FOUND);t=r}else n&&n.nodeType===Node.ELEMENT_NODE&&(t=n);if(!t)throw new W(U.WRONG_TYPE(n,["HTMLElement","string"]),G.WRONG_TYPE);return t},hl=function(n,i){if(n==null)throw new W(U.VAL_MUST_NOT_NULL(n,i),G.VAL_MUST_NOT_NULL)},_e=function(n,i,t){return Math.max(Math.min(n,t),i)},A=function(n){if(!n)throw new W(U.NOT_ATTACHED_TO_FLICKING,G.NOT_ATTACHED_TO_FLICKING);return n},Bn=function(n){return[].slice.call(n)},Ln=function(n,i){var t;if(we(n))switch(n){case ce.PREV:t=0;break;case ce.CENTER:t=.5*i;break;case ce.NEXT:t=i;break;default:if(t=mn(n,i),t==null)throw new W(U.WRONG_OPTION("align",n),G.WRONG_OPTION)}else t=n;return t},vl=function(n,i){var t;if(Array.isArray(n))t=n.map(function(r){return mn(r,i)});else{var e=mn(n,i);t=[e,e]}return t.map(function(r){if(r==null)throw new W(U.WRONG_OPTION("bounce",n),G.WRONG_OPTION);return r})},mn=function(n,i){var t=Hi(n);return t==null?null:t.percentage*i+t.absolute},Hi=function(n){var i=/(?:(\+|\-)\s*)?(\d+(?:\.\d+)?(%|px)?)/g;if(typeof n=="number")return{percentage:0,absolute:n};for(var t={percentage:0,absolute:0},e=0,r=i.exec(n);r!=null;){var o=r[1],a=r[2],s=r[3],u=parseFloat(a);if(e<=0&&(o=o||"+"),!o)return null;var c=o==="+"?1:-1;s==="%"?t.percentage+=c*(u/100):t.absolute+=c*u,++e,r=i.exec(n)}return e===0?null:t},wt=function(n){return typeof n=="object"?n.panel:n},Oe=function(n,i){return n===i?F.NONE:n<i?F.NEXT:F.PREV},Mr=function(n){Array.isArray(n)||(n=[n]);var i=[];return n.forEach(function(t){if(we(t)){var e=document.createElement("div");for(e.innerHTML=t,i.push.apply(i,J(Bn(e.children)));e.firstChild;)e.removeChild(e.firstChild)}else if(t&&t.nodeType===Node.ELEMENT_NODE)i.push(t);else throw new W(U.WRONG_TYPE(t,["HTMLElement","string"]),G.WRONG_TYPE)}),i},Tt=function(n,i){return n<0?_e(n+i,0,i):_e(n,0,i)},St=function(n,i){var t,e;try{for(var r=Lt(n),o=r.next();!o.done;o=r.next()){var a=o.value;if(a===i)return!0}}catch(s){t={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return!1},we=function(n){return typeof n=="string"},Gi=function(n,i,t){var e=t-i;if(n<i){var r=(i-n)%e;n=t-r}else if(n>t){var r=(n-t)%e;n=i+r}return n},pl=function(n,i){var t,e;try{for(var r=Lt(n),o=r.next();!o.done;o=r.next()){var a=o.value;if(i(a))return a}}catch(s){t={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return null},gl=function(n,i){for(var t=0;t<n.length;t++)if(i(n[t]))return t;return-1},Ct=function(n,i,t){return(n-i)/(t-i)},_n=function(n){return window.getComputedStyle(n)||n.currentStyle},Wi=function(n,i){var t=i.width,e=i.height;t!=null&&(we(t)?n.style.width=t:n.style.width=t+"px"),e!=null&&(we(e)?n.style.height=e:n.style.height=e+"px")},Yt=function(n,i,t){return n>=i&&n<=t},Ui=function(n,i){return n>=i?n%i:n<0?Tt((n+1)%i-1,i):n},it=function(n){for(var i=new Array(n),t=0;t<n;t++)i[t]=t;return i},Je=function(n){var i=n.el,t=n.horizontal,e=n.useFractionalSize,r=n.useOffset,o=n.style;if(e){var a=parseFloat(t?o.width:o.height),s=o.boxSizing==="border-box",u=t?parseFloat(o.borderLeftWidth||"0")+parseFloat(o.borderRightWidth||"0"):parseFloat(o.borderTopWidth||"0")+parseFloat(o.borderBottomWidth||"0");if(s)return r?a:a-u;var c=t?parseFloat(o.paddingLeft||"0")+parseFloat(o.paddingRight||"0"):parseFloat(o.paddingTop||"0")+parseFloat(o.paddingBottom||"0");return r?a+c+u:a+c}else{var f=t?"Width":"Height";return r?i["offset"+f]:i["client"+f]}},ml=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},W=function(n){te(i,n);function i(t,e){var r=n.call(this,t)||this;return ml(r,i.prototype),r.name="FlickingError",r.code=e,r}return i}(Error),_l=function(){function n(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 i=n.prototype;return Object.defineProperty(i,"element",{get:function(){return this._el},enumerable:!1,configurable:!0}),Object.defineProperty(i,"width",{get:function(){return this._width-this._padding.left-this._padding.right},enumerable:!1,configurable:!0}),Object.defineProperty(i,"height",{get:function(){return this._height-this._padding.top-this._padding.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(i,"padding",{get:function(){return this._padding},enumerable:!1,configurable:!0}),i.setSize=function(t){var e=t.width,r=t.height,o=this._el,a=this._padding,s=this._isBorderBoxSizing;if(e!=null)if(we(e))o.style.width=e;else{var u=s?e+a.left+a.right:e;o.style.width=u+"px"}if(r!=null)if(we(r))o.style.height=r;else{var c=s?r+a.top+a.bottom:r;o.style.height=c+"px"}this.resize()},i.resize=function(){var t=this._el,e=_n(t),r=this._flicking.useFractionalSize;this._width=Je({el:t,horizontal:!0,useFractionalSize:r,useOffset:!1,style:e}),this._height=Je({el:t,horizontal:!1,useFractionalSize:r,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"},n}(),yl=function(){function n(t){var e=this;this._onResize=function(){var r=e._flicking,o=r.resizeDebounce,a=r.maxResizeDebounce;o<=0?r.resize():(e._maxResizeDebounceTimer<=0&&a>0&&a>=o&&(e._maxResizeDebounceTimer=window.setTimeout(e._doScheduledResize,a)),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 r=!0;return function(){if(r){r=!1;return}e._onResize()}}(),this._flicking=t,this._enabled=!1,this._resizeObserver=null,this._resizeTimer=-1,this._maxResizeDebounceTimer=-1}var i=n.prototype;return Object.defineProperty(i,"enabled",{get:function(){return this._enabled},enumerable:!1,configurable:!0}),i.enable=function(){var t=this._flicking,e=t.viewport;if(this._enabled&&this.disable(),t.useResizeObserver&&window.ResizeObserver){var r=e.width!==0||e.height!==0,o=r?new ResizeObserver(this._skipFirstResize):new ResizeObserver(this._onResize);o.observe(t.viewport.element),this._resizeObserver=o}else window.addEventListener("resize",this._onResize);return this._enabled=!0,this},i.disable=function(){if(!this._enabled)return this;var t=this._resizeObserver;return t?(t.disconnect(),this._resizeObserver=null):window.removeEventListener("resize",this._onResize),this._enabled=!1,this},n}(),bl=function(){function n(t){this._element=t,this._rendered=!0}var i=n.prototype;return Object.defineProperty(i,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(i,"rendered",{get:function(){return this._rendered},enumerable:!1,configurable:!0}),i.show=function(t){var e=this.element,r=t.camera.element;e.parentElement!==r&&(r.appendChild(e),this._rendered=!0)},i.hide=function(t){var e=this.element,r=t.camera.element;e.parentElement===r&&(r.removeChild(e),this._rendered=!1)},n}(),zr=function(){function n(t){this._flicking=t}var i=n.prototype;return Object.defineProperty(i,"element",{get:function(){return this._virtualElement.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(i,"rendered",{get:function(){return this._virtualElement.visible},enumerable:!1,configurable:!0}),Object.defineProperty(i,"_virtualElement",{get:function(){var t=this._flicking,e=this._panel.elementIndex,r=t.virtual.elements;return r[e]},enumerable:!1,configurable:!0}),i.init=function(t){this._panel=t},i.show=function(){},i.hide=function(){},n}(),El=function(){function n(t,e){var r,o,a,s;this._flicking=t,this._renderPanel=(r=e?.renderPanel)!==null&&r!==void 0?r:function(){return""},this._initialPanelCount=(o=e?.initialPanelCount)!==null&&o!==void 0?o:-1,this._cache=(a=e?.cache)!==null&&a!==void 0?a:!1,this._panelClass=(s=e?.panelClass)!==null&&s!==void 0?s:fl.DEFAULT_VIRTUAL,this._elements=[]}var i=n.prototype;return Object.defineProperty(i,"elements",{get:function(){return this._elements},enumerable:!1,configurable:!0}),Object.defineProperty(i,"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(i,"initialPanelCount",{get:function(){return this._initialPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(i,"cache",{get:function(){return this._cache},set:function(t){this._cache=t},enumerable:!1,configurable:!0}),Object.defineProperty(i,"panelClass",{get:function(){return this._panelClass},set:function(t){this._panelClass=t},enumerable:!1,configurable:!0}),i.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(r){return{nativeElement:r,visible:!0}})}},i.show=function(t){var e=this._elements[t],r=e.nativeElement;e.visible=!0,r.style.display&&(r.style.display="")},i.hide=function(t){var e=this._elements[t],r=e.nativeElement;e.visible=!1,r.style.display="none"},i.append=function(t){t===void 0&&(t=1);var e=this._flicking;return this.insert(e.panels.length,t)},i.prepend=function(t){return t===void 0&&(t=1),this.insert(0,t)},i.insert=function(t,e){if(e===void 0&&(e=1),e<=0)return[];var r=this._flicking;return r.renderer.batchInsert({index:t,elements:it(e),hasDOMInElements:!1})},i.remove=function(t,e){if(e<=0)return[];var r=this._flicking;return r.renderer.batchRemove({index:t,deleteCount:e,hasDOMInElements:!1})},i._initVirtualElements=function(){var t=this,e=this._flicking,r=e.camera.element,o=e.panelsPerView,a=document.createDocumentFragment(),s=it(o+1).map(function(u){var c=document.createElement("div");return c.className=t._panelClass,c.dataset.elementIndex=u.toString(),c});s.forEach(function(u){a.appendChild(u)}),r.appendChild(a)},n}(),q={HOLD:"hold",CHANGE:"change",RELEASE:"release",ANIMATION_END:"animationEnd",FINISH:"finish"},K="flick",X;(function(n){n[n.IDLE=0]="IDLE",n[n.HOLDING=1]="HOLDING",n[n.DRAGGING=2]="DRAGGING",n[n.ANIMATING=3]="ANIMATING",n[n.DISABLED=4]="DISABLED"})(X||(X={}));var st=function(){function n(){this._delta=0,this._targetPanel=null}var i=n.prototype;return Object.defineProperty(i,"delta",{get:function(){return this._delta},enumerable:!1,configurable:!0}),Object.defineProperty(i,"targetPanel",{get:function(){return this._targetPanel},set:function(t){this._targetPanel=t},enumerable:!1,configurable:!0}),i.onEnter=function(t){this._delta=t._delta,this._targetPanel=t._targetPanel},i.onHold=function(t){},i.onChange=function(t){},i.onRelease=function(t){},i.onAnimationEnd=function(t){},i.onFinish=function(t){},i._moveToChangedPosition=function(t){var e=t.flicking,r=t.axesEvent,o=t.transitTo,a=r.delta[K];if(a){this._delta+=a;var s=e.camera,u=s.position,c=r.pos[K],f=e.circularEnabled?Gi(c,s.range.min,s.range.max):c;s.lookAt(f);var h=new V(B.MOVE,{isTrusted:r.isTrusted,holding:this.holding,direction:Oe(0,r.delta[K]),axesEvent:r});e.trigger(h),h.isCanceled()&&(s.lookAt(u),o(X.DISABLED))}},n}(),Br=function(n){te(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.holding=!1,e.animating=!1,e}var t=i.prototype;return t.onEnter=function(){this._delta=0,this._targetPanel=null},t.onHold=function(e){var r=e.flicking,o=e.axesEvent,a=e.transitTo;if(r.renderer.panelCount<=0){a(X.DISABLED);return}var s=new V(B.HOLD_START,{axesEvent:o});r.trigger(s),s.isCanceled()?a(X.DISABLED):a(X.HOLDING)},t.onChange=function(e){var r=e.flicking,o=e.axesEvent,a=e.transitTo,s=r.control.controller,u=s.animatingContext,c=new V(B.MOVE_START,{isTrusted:o.isTrusted,holding:this.holding,direction:Oe(u.start,u.end),axesEvent:o});r.trigger(c),c.isCanceled()?a(X.DISABLED):a(X.ANIMATING).onChange(e)},i}(st),Pl=function(n){te(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.holding=!0,e.animating=!1,e._releaseEvent=null,e}var t=i.prototype;return t.onChange=function(e){var r=e.flicking,o=e.axesEvent,a=e.transitTo,s=o.inputEvent,u=r.horizontal?s.offsetX:s.offsetY,c=new V(B.MOVE_START,{isTrusted:o.isTrusted,holding:this.holding,direction:Oe(0,-u),axesEvent:o});r.trigger(c),c.isCanceled()?a(X.DISABLED):a(X.DRAGGING).onChange(e)},t.onRelease=function(e){var r=e.flicking,o=e.axesEvent,a=e.transitTo;if(r.trigger(new V(B.HOLD_END,{axesEvent:o})),o.delta.flick!==0){o.setTo({flick:r.camera.position},0),a(X.IDLE);return}this._releaseEvent=o},t.onFinish=function(e){var r,o,a=e.flicking,s=e.transitTo;if(s(X.IDLE),!!this._releaseEvent){var u=this._releaseEvent,c=u.inputEvent.srcEvent,f;if(c.type==="touchend"){var h=c,v=h.changedTouches[0];f=document.elementFromPoint(v.clientX,v.clientY)}else f=c.target;var d=a.renderer.panels,p=null;try{for(var g=Lt(d),m=g.next();!m.done;m=g.next()){var _=m.value;if(_.contains(f)){p=_;break}}}catch(E){r={error:E}}finally{try{m&&!m.done&&(o=g.return)&&o.call(g)}finally{if(r)throw r.error}}if(p){var y=a.camera.position,b=p.position;a.trigger(new V(B.SELECT,{index:p.index,panel:p,direction:Oe(y,b)}))}}},i}(st),xl=function(n){te(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.holding=!0,e.animating=!0,e}var t=i.prototype;return t.onChange=function(e){this._moveToChangedPosition(e)},t.onRelease=function(e){var r,o=e.flicking,a=e.axesEvent,s=e.transitTo;if(o.trigger(new V(B.HOLD_END,{axesEvent:a})),o.renderer.panelCount<=0){s(X.IDLE);return}s(X.ANIMATING);var u=o.control,c=a.destPos[K],f=Math.max(a.duration,o.duration);try{u.moveToPosition(c,f,a)}catch{s(X.IDLE),a.setTo((r={},r[K]=o.camera.position,r),0)}},i}(st),Ol=function(n){te(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.holding=!1,e.animating=!0,e}var t=i.prototype;return t.onHold=function(e){var r=e.flicking,o=e.axesEvent,a=e.transitTo,s=this._targetPanel,u=r.control;this._delta=0,r.control.updateInput(),r.changeOnHold&&s&&u.setActive(s,u.activePanel,o.isTrusted);var c=new V(B.HOLD_START,{axesEvent:o});r.trigger(c),c.isCanceled()?a(X.DISABLED):a(X.DRAGGING)},t.onChange=function(e){this._moveToChangedPosition(e)},t.onFinish=function(e){var r=e.flicking,o=e.axesEvent,a=e.transitTo,s=r.control,u=s.controller,c=u.animatingContext;a(X.IDLE),r.trigger(new V(B.MOVE_END,{isTrusted:o.isTrusted,direction:Oe(c.start,c.end),axesEvent:o}));var f=this._targetPanel;f&&s.setActive(f,s.activePanel,o.isTrusted)},i}(st),wl=function(n){te(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.holding=!1,e.animating=!0,e}var t=i.prototype;return t.onAnimationEnd=function(e){var r=e.transitTo;r(X.IDLE)},t.onChange=function(e){var r=e.axesEvent,o=e.transitTo;r.stop(),o(X.IDLE)},t.onRelease=function(e){var r=e.axesEvent,o=e.transitTo;r.delta.flick===0&&o(X.IDLE)},i}(st),Tl=function(){function n(){var t=this;this.transitTo=function(e){var r;switch(e){case X.IDLE:r=new Br;break;case X.HOLDING:r=new Pl;break;case X.DRAGGING:r=new xl;break;case X.ANIMATING:r=new Ol;break;case X.DISABLED:r=new wl;break}return r.onEnter(t._state),t._state=r,t._state},this._state=new Br}var i=n.prototype;return Object.defineProperty(i,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),i.fire=function(t,e){var r=this._state,o=ne(ne({},e),{transitTo:this.transitTo});switch(t){case q.HOLD:r.onHold(o);break;case q.CHANGE:r.onChange(o);break;case q.RELEASE:r.onRelease(o);break;case q.ANIMATION_END:r.onAnimationEnd(o);break;case q.FINISH:r.onFinish(o);break}},n}(),Sl=function(){function n(){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 Tl}var i=n.prototype;return Object.defineProperty(i,"axes",{get:function(){return this._axes},enumerable:!1,configurable:!0}),Object.defineProperty(i,"panInput",{get:function(){return this._panInput},enumerable:!1,configurable:!0}),Object.defineProperty(i,"stateMachine",{get:function(){return this._stateMachine},enumerable:!1,configurable:!0}),Object.defineProperty(i,"state",{get:function(){return this._stateMachine.state},enumerable:!1,configurable:!0}),Object.defineProperty(i,"animatingContext",{get:function(){return this._animatingContext},enumerable:!1,configurable:!0}),Object.defineProperty(i,"controlParams",{get:function(){var t=this._axes;if(!t)return{range:{min:0,max:0},position:0,circular:!1};var e=t.axis[K];return{range:{min:e.range[0],max:e.range[1]},circular:e.circular[0],position:this.position}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"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(i,"position",{get:function(){var t,e;return(e=(t=this._axes)===null||t===void 0?void 0:t.get([K])[K])!==null&&e!==void 0?e:0},enumerable:!1,configurable:!0}),Object.defineProperty(i,"range",{get:function(){var t,e;return(e=(t=this._axes)===null||t===void 0?void 0:t.axis[K].range)!==null&&e!==void 0?e:[0,0]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"bounce",{get:function(){var t;return(t=this._axes)===null||t===void 0?void 0:t.axis[K].bounce},enumerable:!1,configurable:!0}),i.init=function(t){var e,r=this;this._flicking=t,this._axes=new Us((e={},e[K]={range:[0,0],circular:!1,bounce:[0,0]},e),{deceleration:t.deceleration,interruptable:t.interruptable,nested:t.nested,easing:t.easing}),this._panInput=new Ws(t.viewport.element,{inputType:t.inputType,threshold:1,iOSEdgeSwipeThreshold:t.iOSEdgeSwipeThreshold,preventDefaultOnDrag:t.preventDefaultOnDrag,scale:t.horizontal?[-1,0]:[0,-1],releaseOnScroll:!0});var o=this._axes;o.connect(t.horizontal?[K,""]:["",K],this._panInput);var a=function(u){var c=q[u];o.on(c,function(f){r._stateMachine.fire(c,{flicking:t,axesEvent:f})})};for(var s in q)a(s);return this},i.destroy=function(){var t;this._axes&&(this.removePreventClickHandler(),this._axes.destroy()),(t=this._panInput)===null||t===void 0||t.destroy(),this._resetInternalValues()},i.enable=function(){var t;return(t=this._panInput)===null||t===void 0||t.enable(),this},i.disable=function(){var t;return(t=this._panInput)===null||t===void 0||t.disable(),this},i.release=function(){var t;return(t=this._panInput)===null||t===void 0||t.release(),this},i.updateAnimation=function(t,e){var r,o;return this._animatingContext=ne(ne({},this._animatingContext),{end:t}),(o=this._axes)===null||o===void 0||o.updateAnimation({destPos:(r={},r[K]=t,r),duration:e}),this},i.stopAnimation=function(){var t;return(t=this._axes)===null||t===void 0||t.stopAnimation(),this},i.update=function(t){var e,r=A(this._flicking),o=r.camera,a=this._axes,s=a.axis[K];return s.circular=[t.circular,t.circular],s.range=[t.range.min,t.range.max],s.bounce=vl(r.bounce,o.size),a.axisManager.set((e={},e[K]=t.position,e)),this},i.addPreventClickHandler=function(){var t=A(this._flicking),e=this._axes,r=t.camera.element;return e.on(q.HOLD,this._onAxesHold),e.on(q.CHANGE,this._onAxesChange),r.addEventListener("click",this._preventClickWhenDragged,!0),this},i.removePreventClickHandler=function(){var t=A(this._flicking),e=this._axes,r=t.camera.element;return e.off(q.HOLD,this._onAxesHold),e.off(q.CHANGE,this._onAxesChange),r.removeEventListener("click",this._preventClickWhenDragged,!0),this},i.animateTo=function(t,e,r){var o=this,a,s=this._axes,u=this._stateMachine.state;if(!s)return Promise.reject(new W(U.NOT_ATTACHED_TO_FLICKING,G.NOT_ATTACHED_TO_FLICKING));var c=s.get([K])[K];if(c===t){var f=A(this._flicking);return f.camera.lookAt(t),u.targetPanel&&f.control.setActive(u.targetPanel,f.control.activePanel,(a=r?.isTrusted)!==null&&a!==void 0?a:!1),Promise.resolve()}this._animatingContext={start:c,end:t,offset:0};var h=function(){var v,d,p=function(){o._animatingContext={start:0,end:0,offset:0}};s.once(q.FINISH,p),r?r.setTo((v={},v[K]=t,v),e):s.setTo((d={},d[K]=t,d),e)};return new Promise(function(v,d){var p=function(){s.off(q.HOLD,g),v()},g=function(){s.off(q.FINISH,p),d(new W(U.ANIMATION_INTERRUPTED,G.ANIMATION_INTERRUPTED))};s.once(q.FINISH,p),s.once(q.HOLD,g),h()})},i.updateDirection=function(){var t=A(this._flicking),e=this._axes,r=this._panInput;e.disconnect(r),e.connect(t.horizontal?[K,""]:["",K],r),r.options.scale=t.horizontal?[-1,0]:[0,-1]},i._resetInternalValues=function(){this._flicking=null,this._axes=null,this._panInput=null,this._animatingContext={start:0,end:0,offset:0},this._dragged=!1},n}(),Vn=function(){function n(){this._flicking=null,this._controller=new Sl,this._activePanel=null}var i=n.prototype;return Object.defineProperty(i,"controller",{get:function(){return this._controller},enumerable:!1,configurable:!0}),Object.defineProperty(i,"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(i,"activePanel",{get:function(){return this._activePanel},enumerable:!1,configurable:!0}),Object.defineProperty(i,"animating",{get:function(){return this._controller.state.animating},enumerable:!1,configurable:!0}),Object.defineProperty(i,"holding",{get:function(){return this._controller.state.holding},enumerable:!1,configurable:!0}),i.init=function(t){return this._flicking=t,this._controller.init(t),this},i.destroy=function(){this._controller.destroy(),this._flicking=null,this._activePanel=null},i.enable=function(){return this._controller.enable(),this},i.disable=function(){return this._controller.disable(),this},i.release=function(){return this._controller.release(),this},i.updateAnimation=function(t,e,r){var o=this._controller.state,a=this._getPosition(t,r??F.NONE);return o.targetPanel=t,this._controller.updateAnimation(a,e),this},i.stopAnimation=function(){var t=this._controller.state;return t.targetPanel=null,this._controller.stopAnimation(),this},i.updatePosition=function(t){var e=A(this._flicking),r=e.camera,o=this._activePanel;o&&r.lookAt(r.clampToReachablePosition(o.position))},i.updateInput=function(){var t=A(this._flicking),e=t.camera;return this._controller.update(e.controlParams),this},i.resetActive=function(){return this._activePanel=null,this},i.moveToPanel=function(t,e){var r=e.duration,o=e.direction,a=o===void 0?F.NONE:o,s=e.axesEvent;return Ae(this,void 0,void 0,function(){var u;return De(this,function(c){return u=this._getPosition(t,a),this._triggerIndexChangeEvent(t,t.position,s),[2,this._animateToPosition({position:u,duration:r,newActivePanel:t,axesEvent:s})]})})},i.setActive=function(t,e,r){var o,a=A(this._flicking);this._activePanel=t,a.camera.updateAdaptiveHeight(),t!==e?a.trigger(new V(B.CHANGED,{index:t.index,panel:t,prevIndex:(o=e?.index)!==null&&o!==void 0?o:-1,prevPanel:e,isTrusted:r,direction:e?Oe(e.position,t.position):F.NONE})):a.trigger(new V(B.RESTORED,{isTrusted:r}))},i.copy=function(t){this._flicking=t._flicking,this._activePanel=t._activePanel,this._controller=t._controller},i._triggerIndexChangeEvent=function(t,e,r){var o,a=A(this._flicking),s=t!==this._activePanel?B.WILL_CHANGE:B.WILL_RESTORE,u=a.camera,c=this._activePanel,f=new V(s,{index:t.index,panel:t,isTrusted:r?.isTrusted||!1,direction:Oe((o=c?.position)!==null&&o!==void 0?o:u.position,e)});if(a.trigger(f),f.isCanceled())throw new W(U.STOP_CALLED_BY_USER,G.STOP_CALLED_BY_USER)},i._animateToPosition=function(t){var e=t.position,r=t.duration,o=t.newActivePanel,a=t.axesEvent;return Ae(this,void 0,void 0,function(){var s,u,c,f=this;return De(this,function(h){return s=A(this._flicking),u=function(){return f._controller.animateTo(e,r,a)},c=this._controller.state,c.targetPanel=o,r<=0?[2,u()]:[2,u().then(function(){return Ae(f,void 0,void 0,function(){return De(this,function(v){switch(v.label){case 0:return[4,s.renderer.render()];case 1:return v.sent(),[2]}})})}).catch(function(v){if(!(a&&v instanceof W&&v.code===G.ANIMATION_INTERRUPTED))throw v})]})})},i._getPosition=function(t,e){e===void 0&&(e=F.NONE);var r=A(this._flicking),o=r.camera,a=t.position,s=o.findNearestAnchor(a);if(t.removed||!s)throw new W(U.POSITION_NOT_REACHABLE(t.position),G.POSITION_NOT_REACHABLE);if(!o.canReach(t))a=s.position,t=s.panel;else if(r.circularEnabled){var u=this._controller.position,c=o.rangeDiff,f=[a,a+c,a-c].filter(function(h){return e===F.NONE?!0:e===F.PREV?h<=u:h>=u});a=f.reduce(function(h,v){return Math.abs(u-v)<Math.abs(u-h)?v:h},1/0)}return a},n}(),ee=function(){function n(t){var e=t.index,r=t.position,o=t.panel;this._index=e,this._pos=r,this._panel=o}var i=n.prototype;return Object.defineProperty(i,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(i,"position",{get:function(){return this._pos},enumerable:!1,configurable:!0}),Object.defineProperty(i,"panel",{get:function(){return this._panel},enumerable:!1,configurable:!0}),n}(),Cl=function(n){te(i,n);function i(e){var r=(e===void 0?{}:e).count,o=r===void 0?1/0:r,a=n.call(this)||this;return a._count=o,a}var t=i.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,r,o){var a=A(this._flicking),s=a.camera,u=s.findActiveAnchor(),c=s.findNearestAnchor(s.position),f=this._controller.state;if(!u||!c)return Promise.reject(new W(U.POSITION_NOT_REACHABLE(e),G.POSITION_NOT_REACHABLE));var h=this._calcSnapThreshold(e,u),v=a.animating?f.delta:e-s.position,d=Math.abs(v),p=o&&o.delta[K]!==0?Math.abs(o.delta[K]):d,g;if(p>=h&&p>0)g=this._findSnappedAnchor(e,c);else if(d>=a.threshold&&d>0)g=this._findAdjacentAnchor(e,v,c);else return this.moveToPanel(c.panel,{duration:r,axesEvent:o});return this._triggerIndexChangeEvent(g.panel,e,o),this._animateToPosition({position:s.clampToReachablePosition(g.position),duration:r,newActivePanel:g.panel,axesEvent:o})},t._findSnappedAnchor=function(e,r){var o=A(this._flicking),a=o.camera,s=this._count,u=a.position,c=a.clampToReachablePosition(e),f=a.findAnchorIncludePosition(c);if(!r||!f)throw new W(U.POSITION_NOT_REACHABLE(e),G.POSITION_NOT_REACHABLE);if(!isFinite(s))return f;var h=o.panelCount,v=a.anchorPoints,d=Math.sign(e-u)*Math.floor(Math.abs(e-u)/a.rangeDiff);e>u&&f.index<r.index||f.position>r.position&&f.index===r.index?d+=1:(e<u&&f.index>r.index||f.position<r.position&&f.index===r.index)&&(d-=1);var p=d*h,g=f.index+p;if(Math.abs(g-r.index)<=s){var m=v[f.index];return new ee({index:m.index,position:m.position+d*a.rangeDiff,panel:m.panel})}if(o.circularEnabled){var _=v[Ui(r.index+Math.sign(e-u)*s,h)],y=Math.floor(s/h);return e>u&&_.index<r.index?y+=1:e<u&&_.index>r.index&&(y-=1),new ee({index:_.index,position:_.position+y*a.rangeDiff,panel:_.panel})}else return v[_e(r.index+Math.sign(e-u)*s,0,v.length-1)]},t._findAdjacentAnchor=function(e,r,o){var a,s=A(this._flicking),u=s.camera;if(u.circularEnabled){var c=u.findAnchorIncludePosition(e);if(c&&c.position!==o.position)return c}var f=(a=r>0?u.getNextAnchor(o):u.getPrevAnchor(o))!==null&&a!==void 0?a:o;return f},t._calcSnapThreshold=function(e,r){var o=e>r.position,a=r.panel,s=a.size,u=a.alignPosition;return o?s-u+a.margin.next:u+a.margin.prev},i}(Vn),kl=function(n){te(i,n);function i(e){var r=(e===void 0?{}:e).stopAtEdge,o=r===void 0?!0:r,a=n.call(this)||this;return a._stopAtEdge=o,a}var t=i.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 r=A(this._flicking),o=r.camera,a=this._activePanel;if(a){var s=a.range,u=s.min+(s.max-s.min)*e;o.lookAt(o.clampToReachablePosition(u))}},t.moveToPosition=function(e,r,o){var a=A(this._flicking),s=a.camera,u=s.clampToReachablePosition(e),c=s.findAnchorIncludePosition(u);if(!c)return Promise.reject(new W(U.POSITION_NOT_REACHABLE(e),G.POSITION_NOT_REACHABLE));var f=c.panel;return f!==this._activePanel&&this._triggerIndexChangeEvent(f,e,o),this._animateToPosition({position:this._stopAtEdge?u:e,duration:r,newActivePanel:f,axesEvent:o})},i}(Vn),Rl=function(n){te(i,n);function i(e){var r=(e===void 0?{}:e).count,o=r===void 0?1:r,a=n.call(this)||this;return a.setActive=function(s,u,c){n.prototype.setActive.call(a,s,u,c),a.updateInput()},a._count=o,a._resetIndexRange(),a}var t=i.prototype;return Object.defineProperty(t,"count",{get:function(){return this._count},set:function(e){this._count=e},enumerable:!1,configurable:!0}),t.destroy=function(){n.prototype.destroy.call(this),this._resetIndexRange()},t.updateInput=function(){var e,r=A(this._flicking),o=r.camera,a=r.renderer,s=this._controller,u=o.controlParams,c=this._count,f=s.state.animating?(e=o.findNearestAnchor(o.position))===null||e===void 0?void 0:e.panel:this._activePanel;if(!f)return s.update(u),this._resetIndexRange(),this;var h=u.range,v=f.position,d=f.index,p=a.panelCount,g=d-c,m=d+c;g<0&&(g=r.circularEnabled?Tt((g+1)%p-1,p):_e(g,0,p-1)),m>=p&&(m=r.circularEnabled?m%p:_e(m,0,p-1));var _=a.panels[g],y=a.panels[m],b=Math.max(_.position,h.min),E=Math.min(y.position,h.max);return b>v&&(b-=o.rangeDiff),E<v&&(E+=o.rangeDiff),u.range={min:b,max:E},u.circular&&(u.position<b&&(u.position+=o.rangeDiff),u.position>E&&(u.position-=o.rangeDiff)),u.circular=!1,s.update(u),this._indexRange={min:_.index,max:y.index},this},t.moveToPanel=function(e,r){return Ae(this,void 0,void 0,function(){var o,a,s;return De(this,function(u){return o=A(this._flicking),a=o.camera,s=this._controller,s.update(a.controlParams),[2,n.prototype.moveToPanel.call(this,e,r)]})})},t.moveToPosition=function(e,r,o){var a=A(this._flicking),s=a.camera,u=this._activePanel,c=this._controller.range,f=this._indexRange,h=s.range,v=this._controller.state,d=_e(s.clampToReachablePosition(e),c[0],c[1]),p=s.findAnchorIncludePosition(d);if(!p||!u)return Promise.reject(new W(U.POSITION_NOT_REACHABLE(e),G.POSITION_NOT_REACHABLE));var g=u.position,m=a.animating?v.delta:e-s.position,_=Math.abs(m)>=a.threshold,y=e>g?s.getNextAnchor(p):s.getPrevAnchor(p),b,E,x=s.anchorPoints,C=x[0],I=x[x.length-1],O=e<=h.min&&Yt(C.panel.index,f.min,f.max),k=e>=h.max&&Yt(I.panel.index,f.min,f.max),T=y&&(f.min<=f.max?Yt(y.index,f.min,f.max):y.index>=f.min||y.index<=f.max);if(O||k){var D=e<h.min?C:I;E=D.panel,b=D.position}else if(_&&p.position!==u.position)E=p.panel,b=p.position;else if(_&&T)E=y.panel,b=y.position;else{var N=s.findNearestAnchor(s.position);return N?this.moveToPanel(N.panel,{duration:r,axesEvent:o}):Promise.reject(new W(U.POSITION_NOT_REACHABLE(e),G.POSITION_NOT_REACHABLE))}return this._triggerIndexChangeEvent(E,e,o),this._animateToPosition({position:b,duration:r,newActivePanel:E,axesEvent:o})},t._resetIndexRange=function(){this._indexRange={min:0,max:0}},i}(Vn),jn=function(){function n(t){this._flicking=t}var i=n.prototype;return i.getAnchors=function(){var t=this._flicking.renderer.panels;return t.map(function(e,r){return new ee({index:r,position:e.position,panel:e})})},i.findAnchorIncludePosition=function(t){var e=this._flicking.camera.anchorPoints,r=e.filter(function(o){return o.panel.includePosition(t,!0)});return r.reduce(function(o,a){return o&&Math.abs(o.position-t)<Math.abs(a.position-t)?o:a},null)},i.findNearestAnchor=function(t){var e=this._flicking.camera.anchorPoints;if(e.length<=0)return null;for(var r=1/0,o=0;o<e.length;o++){var a=e[o],s=Math.abs(a.position-t);if(s>r)return e[o-1];r=s}return e[e.length-1]},i.clampToReachablePosition=function(t){var e=this._flicking.camera,r=e.range;return _e(t,r.min,r.max)},i.getCircularOffset=function(){return 0},i.canReach=function(t){var e=this._flicking.camera,r=e.range;if(t.removed)return!1;var o=t.position;return o>=r.min&&o<=r.max},i.canSee=function(t){var e=this._flicking.camera,r=e.visibleRange;return t.isVisibleOnRange(r.min,r.max)},n}(),Lr=function(n){te(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}var t=i.prototype;return t.checkAvailability=function(){return!0},t.getRange=function(){var e,r,o=this._flicking.renderer,a=o.getPanel(0),s=o.getPanel(o.panelCount-1);return{min:(e=a?.position)!==null&&e!==void 0?e:0,max:(r=s?.position)!==null&&r!==void 0?r:0}},i}(jn),Il=function(n){te(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}var t=i.prototype;return t.checkAvailability=function(){var e=this._flicking,r=e.renderer,o=r.panels;if(o.length<=0)return!1;var a=o[0],s=o[o.length-1],u=a.range.min-a.margin.prev,c=s.range.max+s.margin.next,f=e.camera.size,h=c-u,v=o.every(function(d){return h-d.size>=f});return v},t.getRange=function(){var e=this._flicking,r=e.renderer.panels;if(r.length<=0)return{min:0,max:0};var o=r[0],a=r[r.length-1],s=o.range.min-o.margin.prev,u=a.range.max+a.margin.next;return{min:s,max:u}},t.getAnchors=function(){var e=this._flicking,r=e.renderer.panels;return r.map(function(o,a){return new ee({index:a,position:o.position,panel:o})})},t.findNearestAnchor=function(e){var r=this._flicking.camera,o=r.anchorPoints;if(o.length<=0)return null;for(var a=r.range,s=1/0,u=-1,c=0;c<o.length;c++){var f=o[c],h=Math.min(Math.abs(f.position-e),Math.abs(f.position-a.min+a.max-e),Math.abs(e-a.min+a.max-f.position));h<s&&(s=h,u=c)}return o[u]},t.findAnchorIncludePosition=function(e){var r=this._flicking.camera,o=r.range,a=r.anchorPoints,s=r.rangeDiff,u=a.length,c=Gi(e,o.min,o.max),f=n.prototype.findAnchorIncludePosition.call(this,c);if(u>0&&(e===o.min||e===o.max)){var h=[f,new ee({index:0,position:a[0].position+s,panel:a[0].panel}),new ee({index:u-1,position:a[u-1].position-s,panel:a[u-1].panel})].filter(function(d){return!!d});f=h.reduce(function(d,p){return d&&Math.abs(d.position-e)<Math.abs(p.position-e)?d:p},null)}if(!f)return null;if(e<o.min){var v=-Math.floor((o.min-e)/s)-1;return new ee({index:f.index,position:f.position+s*v,panel:f.panel})}else if(e>o.max){var v=Math.floor((e-o.max)/s)+1;return new ee({index:f.index,position:f.position+s*v,panel:f.panel})}return f},t.getCircularOffset=function(){var e=this._flicking,r=e.camera;if(!r.circularEnabled)return 0;var o=e.panels.filter(function(u){return u.toggled}),a=o.filter(function(u){return u.toggleDirection===F.PREV}),s=o.filter(function(u){return u.toggleDirection===F.NEXT});return this._calcPanelAreaSum(a)-this._calcPanelAreaSum(s)},t.clampToReachablePosition=function(e){return e},t.canReach=function(e){return!e.removed},t.canSee=function(e){var r=this._flicking.camera,o=r.range,a=r.rangeDiff,s=r.visibleRange,u=n.prototype.canSee.call(this,e);return s.min<o.min?u||e.isVisibleOnRange(s.min+a,s.max+a):s.max>o.max?u||e.isVisibleOnRange(s.min-a,s.max-a):u},t._calcPanelAreaSum=function(e){return e.reduce(function(r,o){return r+o.sizeIncludingMargin},0)},i}(jn),Vr=function(n){te(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}var t=i.prototype;return t.checkAvailability=function(){var e=this._flicking,r=e.renderer,o=r.getPanel(0),a=r.getPanel(r.panelCount-1);if(!o||!a)return!1;var s=e.camera.size,u=o.range.min,c=a.range.max,f=c-u,h=s<f;return h},t.getRange=function(){var e=this._flicking,r=e.renderer,o=e.camera.alignPosition,a=r.getPanel(0),s=r.getPanel(r.panelCount-1);if(!a||!s)return{min:0,max:0};var u=e.camera.size,c=a.range.min,f=s.range.max,h=f-c,v=u<h,d=c+o,p=f-u+o;if(v)return{min:d,max:p};var g=e.camera.align,m=typeof g=="object"?g.camera:g,_=d+Ln(m,p-d);return{min:_,max:_}},t.getAnchors=function(){var e=this._flicking,r=e.camera,o=e.renderer.panels;if(o.length<=0)return[];var a=e.camera.range,s=o.filter(function(g){return r.canReach(g)});if(s.length>0){var u=s[0].position!==a.min,c=s[s.length-1].position!==a.max,f=u?1:0,h=s.map(function(g,m){return new ee({index:m+f,position:g.position,panel:g})});return u&&h.splice(0,0,new ee({index:0,position:a.min,panel:o[s[0].index-1]})),c&&h.push(new ee({index:h.length,position:a.max,panel:o[s[s.length-1].index+1]})),h}else if(a.min!==a.max){var v=this._findNearestPanel(a.min,o),d=v.index===o.length-1?v.prev():v,p=d.next();return[new ee({index:0,position:a.min,panel:d}),new ee({index:1,position:a.max,panel:p})]}else return[new ee({index:0,position:a.min,panel:this._findNearestPanel(a.min,o)})]},t.findAnchorIncludePosition=function(e){var r=this._flicking.camera,o=r.range,a=r.anchorPoints;return a.length<=0?null:e<=o.min?a[0]:e>=o.max?a[a.length-1]:n.prototype.findAnchorIncludePosition.call(this,e)},t._findNearestPanel=function(e,r){for(var o=1/0,a=0;a<r.length;a++){var s=r[a],u=Math.abs(s.position-e);if(u>o)return r[a-1];o=u}return r[r.length-1]},i}(jn),Nl=function(){function n(t,e){var r=this,o=(e===void 0?{}:e).align,a=o===void 0?ce.CENTER:o;this._checkTranslateSupport=function(){var s,u,c=["webkitTransform","msTransform","MozTransform","OTransform","transform"],f=document.documentElement.style,h="";try{for(var v=Lt(c),d=v.next();!d.done;d=v.next()){var p=d.value;p in f&&(h=p)}}catch(g){s={error:g}}finally{try{d&&!d.done&&(u=v.return)&&u.call(v)}finally{if(s)throw s.error}}if(!h)throw new W(U.TRANSFORM_NOT_SUPPORTED,G.TRANSFORM_NOT_SUPPORTED);r._transform=h},this._flicking=t,this._resetInternalValues(),this._align=a}var i=n.prototype;return Object.defineProperty(i,"element",{get:function(){return this._el},enumerable:!1,configurable:!0}),Object.defineProperty(i,"children",{get:function(){return Bn(this._el.children)},enumerable:!1,configurable:!0}),Object.defineProperty(i,"position",{get:function(){return this._position},enumerable:!1,configurable:!0}),Object.defineProperty(i,"alignPosition",{get:function(){return this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(i,"offset",{get:function(){return this._offset-this._circularOffset},enumerable:!1,configurable:!0}),Object.defineProperty(i,"circularEnabled",{get:function(){return this._circularEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(i,"mode",{get:function(){return this._mode},enumerable:!1,configurable:!0}),Object.defineProperty(i,"range",{get:function(){return this._range},enumerable:!1,configurable:!0}),Object.defineProperty(i,"rangeDiff",{get:function(){return this._range.max-this._range.min},enumerable:!1,configurable:!0}),Object.defineProperty(i,"visiblePanels",{get:function(){return this._visiblePanels},enumerable:!1,configurable:!0}),Object.defineProperty(i,"visibleRange",{get:function(){return{min:this._position-this._alignPos,max:this._position-this._alignPos+this.size}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"anchorPoints",{get:function(){return this._anchors},enumerable:!1,configurable:!0}),Object.defineProperty(i,"controlParams",{get:function(){return{range:this._range,position:this._position,circular:this._circularEnabled}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"atEdge",{get:function(){return this._position<=this._range.min||this._position>=this._range.max},enumerable:!1,configurable:!0}),Object.defineProperty(i,"size",{get:function(){var t=this._flicking;return t?t.horizontal?t.viewport.width:t.viewport.height:0},enumerable:!1,configurable:!0}),Object.defineProperty(i,"progress",{get:function(){var t=this._flicking,e=this._position+this._offset,r=this.findNearestAnchor(this._position);if(!t||!r)return NaN;var o=r.panel,a=o.position+o.offset,s=t.control.controller.bounce,u=this.range,c=u.min,f=u.max,h=this.rangeDiff;if(e===a)return o.index;if(e<a){var v=o.prev(),d=v?v.position+v.offset:c-s[0];return d>a&&(d-=h),o.index-1+Ct(e,d,a)}else{var p=o.next(),g=p?p.position+p.offset:f+s[1];return g<a&&(g+=h),o.index+Ct(e,a,g)}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"align",{get:function(){return this._align},set:function(t){this._align=t},enumerable:!1,configurable:!0}),i.init=function(){var t=this._flicking.viewport.element;return hl(t.firstElementChild,"First element child of the viewport element"),this._el=t.firstElementChild,this._checkTranslateSupport(),this._updateMode(),this},i.destroy=function(){return this._resetInternalValues(),this},i.lookAt=function(t){var e=this,r=A(this._flicking),o=this._position;this._position=t;var a=this._togglePanels(o,t);this._refreshVisiblePanels(),this._checkNeedPanel(),this._checkReachEnd(o,t),a?r.renderer.render().then(function(){e.updateOffset()}):this.applyTransform()},i.getPrevAnchor=function(t){if(!this._circularEnabled||t.index!==0)return this._anchors[t.index-1]||null;var e=this._anchors,r=this.rangeDiff,o=e[e.length-1];return new ee({index:o.index,position:o.position-r,panel:o.panel})},i.getNextAnchor=function(t){var e=this._anchors;if(!this._circularEnabled||t.index!==e.length-1)return e[t.index+1]||null;var r=this.rangeDiff,o=e[0];return new ee({index:o.index,position:o.position+r,panel:o.panel})},i.getProgressInPanel=function(t){var e=t.range;return(this._position-e.min)/(e.max-e.min)},i.findAnchorIncludePosition=function(t){return this._mode.findAnchorIncludePosition(t)},i.findNearestAnchor=function(t){return this._mode.findNearestAnchor(t)},i.findActiveAnchor=function(){var t=A(this._flicking),e=t.control.activeIndex;return pl(this._anchors,function(r){return r.panel.index===e})},i.clampToReachablePosition=function(t){return this._mode.clampToReachablePosition(t)},i.canReach=function(t){return this._mode.canReach(t)},i.canSee=function(t){return this._mode.canSee(t)},i.updateRange=function(){var t=A(this._flicking),e=t.renderer,r=e.panels;return this._updateMode(),this._range=this._mode.getRange(),r.forEach(function(o){return o.updateCircularToggleDirection()}),this},i.updateAlignPos=function(){var t=this._align,e=typeof t=="object"?t.camera:t;return this._alignPos=Ln(e,this.size),this},i.updateAnchors=function(){return this._anchors=this._mode.getAnchors(),this},i.updateAdaptiveHeight=function(){var t=A(this._flicking),e=t.control.activePanel;!t.horizontal||!t.adaptive||!e||t.viewport.setSize({height:e.height})},i.updateOffset=function(){var t=A(this._flicking),e=this._position,r=t.panels.filter(function(o){return!o.rendered});return this._offset=r.filter(function(o){return o.position+o.offset<e}).reduce(function(o,a){return o+a.sizeIncludingMargin},0),this._circularOffset=this._mode.getCircularOffset(),this.applyTransform(),this},i.resetNeedPanelHistory=function(){return this._needPanelTriggered={prev:!1,next:!1},this},i.applyTransform=function(){var t=this._el,e=A(this._flicking),r=e.renderer;if(r.rendering||!e.initialized)return this;var o=this._position-this._alignPos-this._offset+this._circularOffset;return t.style[this._transform]=e.horizontal?"translate("+-o+"px)":"translate(0, "+-o+"px)",this},i._resetInternalValues=function(){this._position=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}},i._refreshVisiblePanels=function(){var t=this,e=A(this._flicking),r=e.renderer.panels,o=r.filter(function(c){return t.canSee(c)}),a=this._visiblePanels;this._visiblePanels=o;var s=o.filter(function(c){return!St(a,c)}),u=a.filter(function(c){return!St(o,c)});(s.length>0||u.length>0)&&e.renderer.render().then(function(){e.trigger(new V(B.VISIBLE_CHANGE,{added:s,removed:u,visiblePanels:o}))})},i._checkNeedPanel=function(){var t=this._needPanelTriggered;if(!(t.prev&&t.next)){var e=A(this._flicking),r=e.renderer.panels;if(r.length<=0){t.prev||(e.trigger(new V(B.NEED_PANEL,{direction:F.PREV})),t.prev=!0),t.next||(e.trigger(new V(B.NEED_PANEL,{direction:F.NEXT})),t.next=!0);return}var o=this._position,a=this.size,s=this._range,u=e.needPanelThreshold,c=o-this._alignPos,f=c+a,h=r[0],v=r[r.length-1];if(!t.prev){var d=h.range.min;(c<=d+u||o<=s.min+u)&&(e.trigger(new V(B.NEED_PANEL,{direction:F.PREV})),t.prev=!0)}if(!t.next){var p=v.range.max;(f>=p-u||o>=s.max-u)&&(e.trigger(new V(B.NEED_PANEL,{direction:F.NEXT})),t.next=!0)}}},i._checkReachEnd=function(t,e){var r=A(this._flicking),o=this._range,a=t>o.min&&t<o.max,s=e>o.min&&e<o.max;if(!(!a||s)){var u=e<=o.min?F.PREV:F.NEXT;r.trigger(new V(B.REACH_EDGE,{direction:u}))}},i._updateMode=function(){var t=A(this._flicking);if(t.circular){var e=new Il(t),r=e.checkAvailability();if(r)this._mode=e;else{var o=t.circularFallback;this._mode=o===$i.BOUND?new Vr(t):new Lr(t)}this._circularEnabled=r}else this._mode=t.bound?new Vr(t):new Lr(t),this._circularEnabled=!1},i._togglePanels=function(t,e){if(e===t)return!1;var r=A(this._flicking),o=r.renderer.panels,a=o.map(function(s){return s.toggle(t,e)});return a.some(function(s){return s})},n}(),Xi=function(){function n(t){var e=t.align,r=e===void 0?ce.CENTER:e,o=t.strategy;this._flicking=null,this._panels=[],this._rendering=!1,this._align=r,this._strategy=o}var i=n.prototype;return Object.defineProperty(i,"panels",{get:function(){return this._panels},enumerable:!1,configurable:!0}),Object.defineProperty(i,"rendering",{get:function(){return this._rendering},enumerable:!1,configurable:!0}),Object.defineProperty(i,"panelCount",{get:function(){return this._panels.length},enumerable:!1,configurable:!0}),Object.defineProperty(i,"strategy",{get:function(){return this._strategy},enumerable:!1,configurable:!0}),Object.defineProperty(i,"align",{get:function(){return this._align},set:function(t){this._align=t;var e=wt(t);this._panels.forEach(function(r){r.align=e})},enumerable:!1,configurable:!0}),i.init=function(t){return this._flicking=t,this._collectPanels(),this},i.destroy=function(){this._flicking=null,this._panels=[]},i.getPanel=function(t){return this._panels[t]||null},i.forceRenderAllPanels=function(){return this._panels.forEach(function(t){return t.markForShow()}),Promise.resolve()},i.updatePanelSize=function(){var t=A(this._flicking),e=this._panels;if(e.length<=0)return this;if(t.panelsPerView>0){var r=e[0];r.resize(),this._updatePanelSizeByGrid(r,e)}else t.panels.forEach(function(o){return o.resize()});return this},i.batchInsert=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=this.batchInsertDefer.apply(this,J(t));return r.length<=0?[]:(this.updateAfterPanelChange(r,[]),r)},i.batchInsertDefer=function(){for(var t=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=this._panels,a=A(this._flicking),s=o[0],u=wt(this._align),c=e.reduce(function(f,h){var v,d=Tt(h.index,o.length),p=o.slice(d),g=h.elements.map(function(_,y){return t._createPanel(_,{index:d+y,align:u,flicking:a})});if(o.splice.apply(o,J([d,0],g)),h.hasDOMInElements&&t._insertPanelElements(g,(v=p[0])!==null&&v!==void 0?v:null),a.panelsPerView>0){var m=s||g[0].resize();t._updatePanelSizeByGrid(m,g)}else g.forEach(function(_){return _.resize()});return p.forEach(function(_){_.increaseIndex(g.length),_.updatePosition()}),J(f,g)},[]);return c},i.batchRemove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=this.batchRemoveDefer.apply(this,J(t));return r.length<=0?[]:(this.updateAfterPanelChange([],r),r)},i.batchRemoveDefer=function(){for(var t=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=this._panels,a=A(this._flicking),s=a.control,u=s.activePanel,c=e.reduce(function(f,h){var v=h.index,d=h.deleteCount,p=Tt(v,o.length),g=o.slice(p+d),m=o.splice(p,d);return m.length<=0?[]:(g.forEach(function(_){_.decreaseIndex(m.length),_.updatePosition()}),h.hasDOMInElements&&t._removePanelElements(m),m.forEach(function(_){return _.destroy()}),St(m,u)&&s.resetActive(),J(f,m))},[]);return c},i.updateAfterPanelChange=function(t,e){var r,o=A(this._flicking),a=o.camera,s=o.control,u=this._panels,c=s.activePanel;if(this._updateCameraAndControl(),this.render(),!o.animating)if(!c||c.removed)if(u.length<=0)a.lookAt(0);else{var f=(r=c?.index)!==null&&r!==void 0?r:0;f>u.length-1&&(f=u.length-1),s.moveToPanel(u[f],{duration:0}).catch(function(){})}else s.moveToPanel(c,{duration:0}).catch(function(){});o.camera.updateOffset(),(t.length>0||e.length>0)&&(o.trigger(new V(B.PANEL_CHANGE,{added:t,removed:e})),this.checkPanelContentsReady(J(t,e)))},i.checkPanelContentsReady=function(t){var e=this,r=A(this._flicking),o=r.resizeOnContentsReady,a=this._panels;if(!(!o||r.virtualEnabled)){var s=function(c){return c.element&&!!c.element.querySelector("img, video")};if(t=t.filter(function(c){return s(c)}),!(t.length<=0)){var u=new cl;t.forEach(function(c){c.loading=!0}),u.on("readyElement",function(c){if(!e._flicking){u.destroy();return}var f=t[c.index],h=r.camera,v=r.control,d=v.activePanel?h.getProgressInPanel(v.activePanel):0;f.loading=!1,f.resize(),a.slice(f.index+1).forEach(function(p){return p.updatePosition()}),r.initialized&&(h.updateRange(),h.updateOffset(),h.updateAnchors(),v.animating||(v.updatePosition(d),v.updateInput()))}),u.on("preReady",function(c){e._flicking&&e.render(),c.readyCount===c.totalCount&&u.destroy()}),u.on("ready",function(){e._flicking&&e.render(),u.destroy()}),u.check(t.map(function(c){return c.element}))}}},i._updateCameraAndControl=function(){var t=A(this._flicking),e=t.camera,r=t.control;e.updateRange(),e.updateOffset(),e.updateAnchors(),e.resetNeedPanelHistory(),r.updateInput()},i._showOnlyVisiblePanels=function(t){var e=t.renderer.panels,r=t.camera,o=r.visiblePanels.reduce(function(a,s){return a[s.index]=!0,a},{});e.forEach(function(a){a.index in o||a.loading?a.markForShow():t.holding||a.markForHide()})},i._updatePanelSizeByGrid=function(t,e){var r=A(this._flicking),o=r.panelsPerView;if(o<=0)throw new W(U.WRONG_OPTION("panelsPerView",o),G.WRONG_OPTION);if(!(e.length<=0)){var a=r.camera.size,s=t.margin.prev+t.margin.next,u=(a-s*(o-1))/o,c=r.horizontal?{width:u}:{height:u},f=ne({size:u,margin:t.margin},!r.horizontal&&{height:t.height});r.noPanelStyleOverride||this._strategy.updatePanelSizes(r,c),r.panels.forEach(function(h){return h.resize(f)})}},i._removeAllChildsFromCamera=function(){for(var t=A(this._flicking),e=t.camera.element;e.firstChild;)e.removeChild(e.firstChild)},i._insertPanelElements=function(t,e){e===void 0&&(e=null);var r=A(this._flicking),o=r.camera,a=o.element,s=e?.element||null,u=document.createDocumentFragment();t.forEach(function(c){return u.appendChild(c.element)}),a.insertBefore(u,s)},i._removePanelElements=function(t){var e=A(this._flicking),r=e.camera.element;t.forEach(function(o){r.removeChild(o.element)})},i._afterRender=function(){var t=A(this._flicking);t.camera.applyTransform()},n}(),Al=function(n){te(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}var t=i.prototype;return t.render=function(){return Ae(this,void 0,void 0,function(){var e,r;return De(this,function(o){return e=A(this._flicking),r=this._strategy,r.updateRenderingPanels(e),r.renderPanels(e),this._resetPanelElementOrder(),this._afterRender(),[2]})})},t._collectPanels=function(){var e=A(this._flicking),r=e.camera;this._removeAllTextNodes(),this._panels=this._strategy.collectPanels(e,r.children)},t._createPanel=function(e,r){return this._strategy.createPanel(e,r)},t._resetPanelElementOrder=function(){var e=A(this._flicking),r=e.camera.element,o=this._strategy.getRenderingElementsByOrder(e).reverse();o.forEach(function(a,s){var u=o[s-1]?o[s-1]:null;a.nextElementSibling!==u&&r.insertBefore(a,u)})},t._removeAllTextNodes=function(){var e=A(this._flicking),r=e.camera.element;Bn(r.childNodes).forEach(function(o){o.nodeType===Node.TEXT_NODE&&r.removeChild(o)})},i}(Xi),Dl=function(n){te(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}var t=i.prototype;return t._removePanelElements=function(e){},t._removeAllChildsFromCamera=function(){},i}(Xi),yn=function(){function n(t){var e=t.index,r=t.align,o=t.flicking,a=t.elementProvider;this._index=e,this._flicking=o,this._elProvider=a,this._align=r,this._removed=!1,this._rendered=!0,this._loading=!1,this._resetInternalStates()}var i=n.prototype;return Object.defineProperty(i,"element",{get:function(){return this._elProvider.element},enumerable:!1,configurable:!0}),Object.defineProperty(i,"elementProvider",{get:function(){return this._elProvider},enumerable:!1,configurable:!0}),Object.defineProperty(i,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(i,"position",{get:function(){return this._pos+this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(i,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(i,"sizeIncludingMargin",{get:function(){return this._size+this._margin.prev+this._margin.next},enumerable:!1,configurable:!0}),Object.defineProperty(i,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),Object.defineProperty(i,"margin",{get:function(){return this._margin},enumerable:!1,configurable:!0}),Object.defineProperty(i,"alignPosition",{get:function(){return this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(i,"removed",{get:function(){return this._removed},enumerable:!1,configurable:!0}),Object.defineProperty(i,"rendered",{get:function(){return this._rendered},enumerable:!1,configurable:!0}),Object.defineProperty(i,"loading",{get:function(){return this._loading},set:function(t){this._loading=t},enumerable:!1,configurable:!0}),Object.defineProperty(i,"range",{get:function(){return{min:this._pos,max:this._pos+this._size}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"toggled",{get:function(){return this._toggled},enumerable:!1,configurable:!0}),Object.defineProperty(i,"toggleDirection",{get:function(){return this._toggleDirection},enumerable:!1,configurable:!0}),Object.defineProperty(i,"offset",{get:function(){var t=this._toggleDirection,e=this._flicking.camera.rangeDiff;return t===F.NONE||!this._toggled?0:t===F.PREV?-e:e},enumerable:!1,configurable:!0}),Object.defineProperty(i,"progress",{get:function(){var t=this._flicking;return this.index-t.camera.progress},enumerable:!1,configurable:!0}),Object.defineProperty(i,"outsetProgress",{get:function(){var t=this.position+this.offset,e=this._alignPos,r=this._flicking.camera,o=r.position;if(o===t)return 0;if(o<t){var a=t+(r.size-r.alignPosition)+e;return-Ct(o,t,a)}else{var s=t-(r.alignPosition+this._size-e);return 1-Ct(o,s,t)}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"visibleRatio",{get:function(){var t=this.range,e=this._size,r=this.offset,o=this._flicking.camera.visibleRange,a={min:t.min+r,max:t.max+r};if(a.max<=o.min||a.min>=o.max)return 0;var s=e;return o.min>a.min&&(s-=o.min-a.min),o.max<a.max&&(s-=a.max-o.max),s/e},enumerable:!1,configurable:!0}),Object.defineProperty(i,"align",{get:function(){return this._align},set:function(t){this._align=t,this._updateAlignPos()},enumerable:!1,configurable:!0}),i.markForShow=function(){this._rendered=!0,this._elProvider.show(this._flicking)},i.markForHide=function(){this._rendered=!1,this._elProvider.hide(this._flicking)},i.resize=function(t){var e,r=this.element,o=this._flicking,a=o.horizontal,s=o.useFractionalSize;if(t)this._size=t.size,this._margin=ne({},t.margin),this._height=(e=t.height)!==null&&e!==void 0?e:Je({el:r,horizontal:!1,useFractionalSize:s,useOffset:!0,style:_n(r)});else{var u=_n(r);this._size=Je({el:r,horizontal:a,useFractionalSize:s,useOffset:!0,style:u}),this._margin=a?{prev:parseFloat(u.marginLeft||"0"),next:parseFloat(u.marginRight||"0")}:{prev:parseFloat(u.marginTop||"0"),next:parseFloat(u.marginBottom||"0")},this._height=a?Je({el:r,horizontal:!1,useFractionalSize:s,useOffset:!0,style:u}):this._size}return this.updatePosition(),this._updateAlignPos(),this},i.setSize=function(t){return Wi(this.element,t),this},i.contains=function(t){var e;return!!(!((e=this.element)===null||e===void 0)&&e.contains(t))},i.destroy=function(){this._resetInternalStates(),this._removed=!0},i.includePosition=function(t,e){return e===void 0&&(e=!1),this.includeRange(t,t,e)},i.includeRange=function(t,e,r){r===void 0&&(r=!1);var o=this._margin,a=this.range;return r&&(a.min-=o.prev,a.max+=o.next),e>=a.min&&t<=a.max},i.isVisibleOnRange=function(t,e){var r=this.range;return e>r.min&&t<r.max},i.focus=function(t){return this._flicking.moveTo(this._index,t)},i.prev=function(){var t=this._index,e=this._flicking,r=e.renderer,o=r.panelCount;return o===1?null:e.circularEnabled?r.getPanel(t===0?o-1:t-1):r.getPanel(t-1)},i.next=function(){var t=this._index,e=this._flicking,r=e.renderer,o=r.panelCount;return o===1?null:e.circularEnabled?r.getPanel(t===o-1?0:t+1):r.getPanel(t+1)},i.increaseIndex=function(t){return this._index+=Math.max(t,0),this},i.decreaseIndex=function(t){return this._index-=Math.max(t,0),this},i.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},i.toggle=function(t,e){var r=this._toggleDirection,o=this._togglePosition;if(r===F.NONE||e===t)return!1;var a=this._toggled;return e>t?o>=t&&o<=e&&(this._toggled=r===F.NEXT):o<=t&&o>=e&&(this._toggled=r!==F.NEXT),a!==this._toggled},i.updateCircularToggleDirection=function(){var t=this._flicking;if(!t.circularEnabled)return this._toggleDirection=F.NONE,this._togglePosition=0,this._toggled=!1,this;var e=t.camera,r=e.range,o=e.alignPosition,a=e.visibleRange,s=a.max-a.min,u=r.min-o,c=r.max-o+s,f=this.includeRange(c-s,c,!1),h=this.includeRange(u,u+s,!1);return this._toggled=!1,f?(this._toggleDirection=F.PREV,this._togglePosition=this.range.max+r.min-r.max+o,this.toggle(1/0,e.position)):h?(this._toggleDirection=F.NEXT,this._togglePosition=this.range.min+r.max-s+o,this.toggle(-1/0,e.position)):(this._toggleDirection=F.NONE,this._togglePosition=0),this},i._updateAlignPos=function(){this._alignPos=Ln(this._align,this._size)},i._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=F.NONE},n}(),Yi=function(){function n(t){var e=t.providerCtor;this._providerCtor=e}var i=n.prototype;return i.renderPanels=function(){},i.getRenderingIndexesByOrder=function(t){var e=t.renderer.panels.filter(function(s){return s.rendered}),r=e.filter(function(s){return s.toggled&&s.toggleDirection===F.PREV}),o=e.filter(function(s){return s.toggled&&s.toggleDirection===F.NEXT}),a=e.filter(function(s){return!s.toggled});return J(r,a,o).map(function(s){return s.index})},i.getRenderingElementsByOrder=function(t){var e=t.panels;return this.getRenderingIndexesByOrder(t).map(function(r){return e[r].element})},i.updateRenderingPanels=function(t){t.renderOnlyVisible?this._showOnlyVisiblePanels(t):t.panels.forEach(function(e){return e.markForShow()})},i.collectPanels=function(t,e){var r=this,o=wt(t.renderer.align);return e.map(function(a,s){return new yn({index:s,elementProvider:new r._providerCtor(a),align:o,flicking:t})})},i.createPanel=function(t,e){return new yn(ne(ne({},e),{elementProvider:new this._providerCtor(t)}))},i.updatePanelSizes=function(t,e){t.panels.forEach(function(r){return r.setSize(e)})},i._showOnlyVisiblePanels=function(t){var e=t.renderer.panels,r=t.camera,o=r.visiblePanels.reduce(function(a,s){return a[s.index]=!0,a},{});e.forEach(function(a){a.index in o||a.loading?a.markForShow():t.holding||a.markForHide()}),r.updateOffset()},n}(),jr=function(n){te(i,n);function i(e){var r=n.call(this,e)||this;return e.elementProvider.init(r),r._elProvider=e.elementProvider,r._cachedInnerHTML=null,r}var t=i.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,r=e.panelsPerView+1,o=e.panelCount,a=this._index;return this._toggled&&(a=this._toggleDirection===F.NEXT?a+o:a-o),Ui(a,r)},enumerable:!1,configurable:!0}),t.cacheRenderResult=function(e){this._cachedInnerHTML=e},t.uncacheRenderResult=function(){this._cachedInnerHTML=null},t.render=function(){var e=this._flicking,r=e.virtual,o=r.renderPanel,a=r.cache,s=this._elProvider.element,u=this._cachedInnerHTML||o(this,this._index);u!==s.innerHTML&&(s.innerHTML=u,a&&this.cacheRenderResult(u))},t.increaseIndex=function(e){return this.uncacheRenderResult(),n.prototype.increaseIndex.call(this,e)},t.decreaseIndex=function(e){return this.uncacheRenderResult(),n.prototype.decreaseIndex.call(this,e)},i}(yn),Ki=function(){function n(){}var i=n.prototype;return i.renderPanels=function(t){var e=t.virtual,r=t.visiblePanels,o=it(t.panelsPerView+1);r.forEach(function(a){var s=a.elementIndex;a.render(),e.show(s),o[s]=-1}),o.filter(function(a){return a>=0}).forEach(function(a){e.hide(a)})},i.getRenderingIndexesByOrder=function(t){var e=t.virtual,r=J(t.visiblePanels).filter(function(s){return s.rendered}).sort(function(s,u){return s.position+s.offset-(u.position+u.offset)});if(r.length<=0)return e.elements.map(function(s,u){return u});var o=r.map(function(s){return s.elementIndex}),a=e.elements.map(function(s,u){return ne(ne({},s),{idx:u})}).filter(function(s){return!s.visible}).map(function(s){return s.idx});return J(o,a)},i.getRenderingElementsByOrder=function(t){var e=t.virtual,r=e.elements;return this.getRenderingIndexesByOrder(t).map(function(o){return r[o].nativeElement})},i.updateRenderingPanels=function(t){var e=t.renderer.panels,r=t.camera,o=r.visiblePanels.reduce(function(a,s){return a[s.index]=!0,a},{});e.forEach(function(a){a.index in o||a.loading?a.markForShow():a.markForHide()}),r.updateOffset()},i.collectPanels=function(t){var e=wt(t.renderer.align);return it(t.virtual.initialPanelCount).map(function(r){return new jr({index:r,elementProvider:new zr(t),align:e,flicking:t})})},i.createPanel=function(t,e){return new jr(ne(ne({},e),{elementProvider:new zr(e.flicking)}))},i.updatePanelSizes=function(t,e){t.virtual.elements.forEach(function(r){Wi(r.nativeElement,e)}),t.panels.forEach(function(r){return r.setSize(e)})},n}(),Zi=function(n){te(i,n);function i(e,r){var o=r===void 0?{}:r,a=o.align,s=a===void 0?ce.CENTER:a,u=o.defaultIndex,c=u===void 0?0:u,f=o.horizontal,h=f===void 0?!0:f,v=o.circular,d=v===void 0?!1:v,p=o.circularFallback,g=p===void 0?$i.LINEAR:p,m=o.bound,_=m===void 0?!1:m,y=o.adaptive,b=y===void 0?!1:y,E=o.panelsPerView,x=E===void 0?-1:E,C=o.noPanelStyleOverride,I=C===void 0?!1:C,O=o.resizeOnContentsReady,k=O===void 0?!1:O,T=o.nested,D=T===void 0?!1:T,N=o.needPanelThreshold,$=N===void 0?0:N,z=o.preventEventsBeforeInit,H=z===void 0?!0:z,w=o.deceleration,P=w===void 0?.0075:w,S=o.duration,Y=S===void 0?500:S,M=o.easing,L=M===void 0?function(Po){return 1-Math.pow(1-Po,3)}:M,ie=o.inputType,Ce=ie===void 0?["mouse","touch"]:ie,lt=o.moveType,ro=lt===void 0?"snap":lt,Hn=o.threshold,io=Hn===void 0?40:Hn,Gn=o.interruptable,oo=Gn===void 0?!0:Gn,Wn=o.bounce,ao=Wn===void 0?"20%":Wn,Un=o.iOSEdgeSwipeThreshold,so=Un===void 0?30:Un,Xn=o.preventClickOnDrag,lo=Xn===void 0?!0:Xn,Yn=o.preventDefaultOnDrag,uo=Yn===void 0?!1:Yn,Kn=o.disableOnInit,co=Kn===void 0?!1:Kn,Zn=o.changeOnHold,fo=Zn===void 0?!1:Zn,Jn=o.renderOnlyVisible,ho=Jn===void 0?!1:Jn,Qn=o.virtual,qn=Qn===void 0?null:Qn,er=o.autoInit,vo=er===void 0?!0:er,tr=o.autoResize,po=tr===void 0?!0:tr,nr=o.useResizeObserver,go=nr===void 0?!0:nr,rr=o.resizeDebounce,mo=rr===void 0?0:rr,ir=o.maxResizeDebounce,_o=ir===void 0?100:ir,or=o.useFractionalSize,yo=or===void 0?!1:or,ar=o.externalRenderer,bo=ar===void 0?null:ar,sr=o.renderExternal,Eo=sr===void 0?null:sr,R=n.call(this)||this;return R._initialized=!1,R._plugins=[],R._align=s,R._defaultIndex=c,R._horizontal=h,R._circular=d,R._circularFallback=g,R._bound=_,R._adaptive=b,R._panelsPerView=x,R._noPanelStyleOverride=I,R._resizeOnContentsReady=k,R._nested=D,R._virtual=qn,R._needPanelThreshold=$,R._preventEventsBeforeInit=H,R._deceleration=P,R._duration=Y,R._easing=L,R._inputType=Ce,R._moveType=ro,R._threshold=io,R._interruptable=oo,R._bounce=ao,R._iOSEdgeSwipeThreshold=so,R._preventClickOnDrag=lo,R._preventDefaultOnDrag=uo,R._disableOnInit=co,R._changeOnHold=fo,R._renderOnlyVisible=ho,R._autoInit=vo,R._autoResize=po,R._useResizeObserver=go,R._resizeDebounce=mo,R._maxResizeDebounce=_o,R._useFractionalSize=yo,R._externalRenderer=bo,R._renderExternal=Eo,R._viewport=new _l(R,dl(e)),R._autoResizer=new yl(R),R._renderer=R._createRenderer(),R._camera=R._createCamera(),R._control=R._createControl(),R._virtualManager=new El(R,qn),R._autoInit&&R.init(),R}var t=i.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,"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},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 r=this._control.controller.axes;r&&(r.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 r=this._control.controller.axes;r&&(r.options.deceleration=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"easing",{get:function(){return this._easing},set:function(e){this._easing=e;var r=this._control.controller.axes;r&&(r.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 r=this._control.controller.panInput;r&&(r.options.inputType=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"moveType",{get:function(){return this._moveType},set:function(e){this._moveType=e;var r=this._control,o=this._createControl(),a=r.activePanel;o.copy(r);var s=a?this._camera.getProgressInPanel(a):0;this._control=o,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,"interruptable",{get:function(){return this._interruptable},set:function(e){this._interruptable=e;var r=this._control.controller.axes;r&&(r.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 r=this._control.controller.panInput;r&&(r.options.iOSEdgeSwipeThreshold=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventClickOnDrag",{get:function(){return this._preventClickOnDrag},set:function(e){var r=this._preventClickOnDrag;if(e!==r){var o=this._control.controller;e?o.addPreventClickHandler():o.removePreventClickHandler(),this._preventClickOnDrag=e}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventDefaultOnDrag",{get:function(){return this._preventDefaultOnDrag},set:function(e){this._preventDefaultOnDrag=e;var r=this._control.controller.panInput;r&&(r.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,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._autoResize&&this._autoResizer.enable()},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}),t.init=function(){var e=this;if(this._initialized)return Promise.resolve();var r=this._camera,o=this._renderer,a=this._control,s=this._virtualManager,u=this.trigger,c=this._preventEventsBeforeInit;return r.init(),s.init(),o.init(this),a.init(this),c&&(this.trigger=function(){return e}),this._initialResize(),this._moveToInitialPanel(),this._autoResize&&this._autoResizer.enable(),this._preventClickOnDrag&&a.controller.addPreventClickHandler(),this._disableOnInit&&this.disableInput(),o.checkPanelContentsReady(o.panels),this._initialized=!0,o.render().then(function(){e._plugins.forEach(function(f){return f.init(e)}),c&&(e.trigger=u),e.trigger(new V(B.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._initialized=!1},t.prev=function(e){var r,o,a;return e===void 0&&(e=this._duration),this.moveTo((a=(o=(r=this._control.activePanel)===null||r===void 0?void 0:r.prev())===null||o===void 0?void 0:o.index)!==null&&a!==void 0?a:-1,e,F.PREV)},t.next=function(e){var r,o,a;return e===void 0&&(e=this._duration),this.moveTo((a=(o=(r=this._control.activePanel)===null||r===void 0?void 0:r.next())===null||o===void 0?void 0:o.index)!==null&&a!==void 0?a:this._renderer.panelCount,e,F.NEXT)},t.moveTo=function(e,r,o){r===void 0&&(r=this._duration),o===void 0&&(o=F.NONE);var a=this._renderer,s=a.panelCount,u=a.getPanel(e);return u?this._control.animating?Promise.reject(new W(U.ANIMATION_ALREADY_PLAYING,G.ANIMATION_ALREADY_PLAYING)):(this._control.holding&&this._control.controller.release(),this._control.moveToPanel(u,{duration:r,direction:o})):Promise.reject(new W(U.INDEX_OUT_OF_RANGE(e,0,s-1),G.INDEX_OUT_OF_RANGE))},t.updateAnimation=function(e,r,o){if(this._control.animating){var a=this._renderer,s=a.panelCount,u=a.getPanel(e);if(!u)throw new W(U.INDEX_OUT_OF_RANGE(e,0,s-1),G.INDEX_OUT_OF_RANGE);this._control.updateAnimation(u,r,o)}},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 r,o,a=e===void 0?{}:e,s=a.index,u=s===void 0?!0:s,c=a.position,f=c===void 0?!0:c,h=a.includePanelHTML,v=h===void 0?!1:h,d=a.visiblePanelsOnly,p=d===void 0?!1:d,g=this._camera,m=p?this.visiblePanels:this.panels,_={panels:m.map(function(E){var x={index:E.index};return v&&(x.html=E.element.outerHTML),x})};if(u&&(_.index=this.index),f){var y=g.findNearestAnchor(g.position);y&&(_.position={panel:y.panel.index,progressInPanel:g.getProgressInPanel(y.panel)})}if(p){var b=this.visiblePanels;_.visibleOffset=(o=(r=b[0])===null||r===void 0?void 0:r.index)!==null&&o!==void 0?o:0}return _},t.setStatus=function(e){var r;if(!this._initialized)throw new W(U.NOT_INITIALIZED,G.NOT_INITIALIZED);var o=e.index,a=e.position,s=e.visibleOffset,u=e.panels,c=this._renderer,f=this._control;if(!((r=u[0])===null||r===void 0)&&r.html&&!this._renderExternal&&(c.batchRemove({index:0,deleteCount:this.panels.length,hasDOMInElements:!0}),c.batchInsert({index:0,elements:Mr(u.map(function(m){return m.html})),hasDOMInElements:!0})),o!=null){var h=s?o-s:o;this.moveTo(h,0).catch(function(){})}if(a&&this._moveType===ke.FREE_SCROLL){var v=a.panel,d=a.progressInPanel,h=s?v-s:v,p=c.panels[h].range,g=p.min+(p.max-p.min)*d;f.moveToPosition(g,0).catch(function(){})}},t.addPlugins=function(){for(var e,r=this,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return this._initialized&&o.forEach(function(s){return s.init(r)}),(e=this._plugins).push.apply(e,J(o)),this},t.removePlugins=function(){for(var e=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.forEach(function(a){var s=gl(e._plugins,function(u){return u===a});s>=0&&(a.destroy(),e._plugins.splice(s,1))}),this},t.resize=function(){return Ae(this,void 0,void 0,function(){var e,r,o,a,s,u,c,f,h,v,d;return De(this,function(p){switch(p.label){case 0:return e=this._viewport,r=this._renderer,o=this._camera,a=this._control,s=a.activePanel,u=e.width,c=e.height,f=s?o.getProgressInPanel(s):0,this.trigger(new V(B.BEFORE_RESIZE,{width:u,height:c,element:e.element})),e.resize(),[4,r.forceRenderAllPanels()];case 1:return p.sent(),r.updatePanelSize(),o.updateAlignPos(),o.updateRange(),o.updateAnchors(),o.updateAdaptiveHeight(),o.updateOffset(),[4,r.render()];case 2:return p.sent(),a.animating||(a.updatePosition(f),a.updateInput()),h=e.width,v=e.height,d=h!==u||v!==c,this.trigger(new V(B.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:u,height:c},sizeChanged:d,element:e.element})),[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,r){if(this._renderExternal)throw new W(U.NOT_ALLOWED_IN_FRAMEWORK,G.NOT_ALLOWED_IN_FRAMEWORK);return this._renderer.batchInsert({index:e,elements:Mr(r),hasDOMInElements:!0})},t.remove=function(e,r){if(r===void 0&&(r=1),this._renderExternal)throw new W(U.NOT_ALLOWED_IN_FRAMEWORK,G.NOT_ALLOWED_IN_FRAMEWORK);return this._renderer.batchRemove({index:e,deleteCount:r,hasDOMInElements:!0})},t._createControl=function(){var e,r=this._moveType,o=Object.keys(ke).map(function(u){return ke[u]}),a=Array.isArray(r)?r[0]:r,s=Array.isArray(r)?(e=r[1])!==null&&e!==void 0?e:{}:{};if(!St(o,a))throw new W(U.WRONG_OPTION("moveType",JSON.stringify(r)),G.WRONG_OPTION);switch(a){case ke.SNAP:return new Cl(s);case ke.FREE_SCROLL:return new kl(s);case ke.STRICT:return new Rl(s)}},t._createCamera=function(){return this._circular&&this._bound&&console.warn('"circular" and "bound" option cannot be used together, ignoring bound.'),new Nl(this,{align:this._align})},t._createRenderer=function(){var e=this._externalRenderer;return 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,r=e.renderer,o=e.rendererOptions;return new r(ne({align:this._align},o))},t._createVanillaRenderer=function(){var e=this.virtualEnabled;return new Al({align:this._align,strategy:e?new Ki:new Yi({providerCtor:bl})})},t._moveToInitialPanel=function(){var e=this._renderer,r=this._control,o=this._camera,a=e.getPanel(this._defaultIndex)||e.getPanel(0);if(a){var s=o.findNearestAnchor(a.position),u=s&&a.index!==s.panel.index?s.panel:a;if(r.setActive(u,null,!1),!s)throw new W(U.POSITION_NOT_REACHABLE(u.position),G.POSITION_NOT_REACHABLE);var c=u.position;o.canReach(u)||(c=s.position),o.lookAt(c),r.updateInput(),o.updateOffset()}},t._initialResize=function(){var e=this._viewport,r=this._renderer,o=this._camera,a=this._control;this.trigger(new V(B.BEFORE_RESIZE,{width:0,height:0,element:e.element})),e.resize(),r.updatePanelSize(),o.updateAlignPos(),o.updateRange(),o.updateAnchors(),o.updateOffset(),a.updateInput();var s=e.width,u=e.height,c=s!==0||u!==0;this.trigger(new V(B.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:0,height:0},sizeChanged:c,element:e.element}))},i.VERSION="4.11.0",i}(Se),Ml=function(n,i){[Se.prototype,Zi.prototype].forEach(function(t){Object.getOwnPropertyNames(t).filter(function(e){return!n[e]&&e.indexOf("_")!==0&&e!=="constructor"}).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);if(r.value)Object.defineProperty(n,e,{value:function(){for(var a,s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return(a=r.value).call.apply(a,J([this[i]],s))}});else{var o={};r.get&&(o.get=function(){var a,s=this[i];return s&&((a=r.get)===null||a===void 0?void 0:a.call(s))}),r.set&&(o.set=function(){for(var a,s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return(a=r.set)===null||a===void 0?void 0:a.call.apply(a,J([this[i]],s))}),Object.defineProperty(n,e,o)}})})},zl=function(n,i,t){var e=n.renderer,r=e.panels,o=J(i.prevList),a=[],s=[];if(i.removed.length>0){var u=-1,c=-1;i.removed.forEach(function(d){u<0&&(u=d),c>=0&&d!==c-1&&(s.push.apply(s,J($r(e,c,u+1))),u=d),c=d,o.splice(d,1)}),s.push.apply(s,J($r(e,c,u+1)))}if(i.ordered.forEach(function(d){var p=zn(d,2),g=p[0],m=p[1],_=r.splice(g,1)[0];r.splice(m,0,_)}),i.ordered.length>0&&(r.forEach(function(d,p){var g=p-d.index;g>0?d.increaseIndex(g):d.decreaseIndex(-g)}),r.sort(function(d,p){return d.index-p.index}),r.forEach(function(d){d.updatePosition()})),i.added.length>0){var f=-1,h=-1,v=t.slice(o.length);i.added.forEach(function(d,p){f<0&&(f=p),h>=0&&d!==h+1?(a.push.apply(a,J(Fr(e,i,v,f,p+1))),f=-1,h=-1):h=d}),f>=0&&a.push.apply(a,J(Fr(e,i,v,f)))}(i.added.length>0||i.removed.length>0)&&e.updateAfterPanelChange(a,s)},Fr=function(n,i,t,e,r){return n.batchInsertDefer.apply(n,J(i.added.slice(e,r).map(function(o,a){return{index:o,elements:[t[a]],hasDOMInElements:!1}})))},$r=function(n,i,t){var e=n.panels.slice(i,t);return n.batchRemoveDefer({index:i,deleteCount:e.length,hasDOMInElements:!1})},Bl=function(n,i){var t=i.removed.reduce(function(r,o){return r[o]=!0,r},{}),e=i.maintained.reduce(function(r,o){var a=zn(o,2),s=a[0],u=a[1];return r[s]=u,r},{});return J(n.panels.filter(function(r){return!t[r.index]}).sort(function(r,o){return r.position+r.offset-(o.position+o.offset)}).map(function(r){return i.list[e[r.index]]}),i.added.map(function(r){return i.list[r]}))},Ll=function(n,i,t){n===void 0&&(n=ce.CENTER),i===void 0&&(i=!0);var e=Vl(n),r=jl(n);if(r==null)return"";var o="calc("+e+" - ("+(t||"0px")+" * "+r.percentage+") - "+r.absolute+"px)";return i?"translate("+o+")":"translate(0, "+o+")"},Vl=function(n){var i=typeof n=="object"?n.camera:n;return Ji(i)},jl=function(n){var i=typeof n=="object"?n.panel:n;return Hi(Ji(i))},Ji=function(n){if(typeof n=="number")return n+"px";switch(n){case ce.CENTER:return"50%";case ce.NEXT:return"100%";case ce.PREV:return"0%";default:return n}};/*! *****************************************************************************
|
|
41
|
+
***************************************************************************** */var _n=function(n,i){return _n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},_n(n,i)};function te(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");_n(n,i);function t(){this.constructor=n}n.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}var ne=function(){return ne=Object.assign||function(i){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=t[o])}return i},ne.apply(this,arguments)};function De(n,i,t,e){function r(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(f){try{c(e.next(f))}catch(h){a(h)}}function u(f){try{c(e.throw(f))}catch(h){a(h)}}function c(f){f.done?o(f.value):r(f.value).then(s,u)}c((e=e.apply(n,i||[])).next())})}function Me(n,i){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},e,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(f){return u([c,f])}}function u(c){if(e)throw new TypeError("Generator is already executing.");for(;t;)try{if(e=1,r&&(o=c[0]&2?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,r=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){t.label=c[1];break}if(c[0]===6&&t.label<o[1]){t.label=o[1],o=c;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(c);break}o[2]&&t.ops.pop(),t.trys.pop();continue}c=i.call(n,t)}catch(f){c=[6,f],r=0}finally{e=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function jt(n){var i=typeof Symbol=="function"&&Symbol.iterator,t=i&&n[i],e=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&e>=n.length&&(n=void 0),{value:n&&n[e++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function Bn(n,i){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var e=t.call(n),r,o=[],a;try{for(;(i===void 0||i-- >0)&&!(r=e.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(t=e.return)&&t.call(e)}finally{if(a)throw a.error}}return o}function J(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(Bn(arguments[i]));return n}var G={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,NO_ACTIVE:13,NOT_ALLOWED_IN_VIRTUAL:14},U={WRONG_TYPE:function(n,i){return n+"("+typeof n+") is not a "+i.map(function(t){return'"'+t+'"'}).join(" or ")+"."},ELEMENT_NOT_FOUND:function(n){return'Element with selector "'+n+'" not found.'},VAL_MUST_NOT_NULL:function(n,i){return i+" should be provided. Given: "+n},NOT_ATTACHED_TO_FLICKING:'This module is not attached to the Flicking instance. "init()" should be called first.',WRONG_OPTION:function(n,i){return'Option "'+n+'" is not in correct format, given: '+i},INDEX_OUT_OF_RANGE:function(n,i,t){return'Index "'+n+'" is out of range: should be between '+i+" and "+t+"."},POSITION_NOT_REACHABLE:function(n){return'Position "'+n+'" 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"},B={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"},ce={PREV:"prev",CENTER:"center",NEXT:"next"},F={PREV:"PREV",NEXT:"NEXT",NONE:null},Re={SNAP:"snap",FREE_SCROLL:"freeScroll",STRICT:"strict"},dl={VERTICAL:"vertical",HIDDEN:"flicking-hidden",DEFAULT_VIRTUAL:"flicking-panel"},Hi={LINEAR:"linear",BOUND:"bound"},Ie={LTR:"ltr",RTL:"rtl"},hl=function(n,i){var t=null;if(we(n)){var e=i||document,r=e.querySelector(n);if(!r)throw new W(U.ELEMENT_NOT_FOUND(n),G.ELEMENT_NOT_FOUND);t=r}else n&&n.nodeType===Node.ELEMENT_NODE&&(t=n);if(!t)throw new W(U.WRONG_TYPE(n,["HTMLElement","string"]),G.WRONG_TYPE);return t},vl=function(n,i){if(n==null)throw new W(U.VAL_MUST_NOT_NULL(n,i),G.VAL_MUST_NOT_NULL)},_e=function(n,i,t){return Math.max(Math.min(n,t),i)},N=function(n){if(!n)throw new W(U.NOT_ATTACHED_TO_FLICKING,G.NOT_ATTACHED_TO_FLICKING);return n},Ln=function(n){return[].slice.call(n)},Vn=function(n,i){var t;if(we(n))switch(n){case ce.PREV:t=0;break;case ce.CENTER:t=.5*i;break;case ce.NEXT:t=i;break;default:if(t=yn(n,i),t==null)throw new W(U.WRONG_OPTION("align",n),G.WRONG_OPTION)}else t=n;return t},pl=function(n,i){var t;if(Array.isArray(n))t=n.map(function(r){return yn(r,i)});else{var e=yn(n,i);t=[e,e]}return t.map(function(r){if(r==null)throw new W(U.WRONG_OPTION("bounce",n),G.WRONG_OPTION);return r})},yn=function(n,i){var t=Gi(n);return t==null?null:t.percentage*i+t.absolute},Gi=function(n){var i=/(?:(\+|\-)\s*)?(\d+(?:\.\d+)?(%|px)?)/g;if(typeof n=="number")return{percentage:0,absolute:n};for(var t={percentage:0,absolute:0},e=0,r=i.exec(n);r!=null;){var o=r[1],a=r[2],s=r[3],u=parseFloat(a);if(e<=0&&(o=o||"+"),!o)return null;var c=o==="+"?1:-1;s==="%"?t.percentage+=c*(u/100):t.absolute+=c*u,++e,r=i.exec(n)}return e===0?null:t},Tt=function(n){return typeof n=="object"?n.panel:n},Oe=function(n,i){return n===i?F.NONE:n<i?F.NEXT:F.PREV},zr=function(n){Array.isArray(n)||(n=[n]);var i=[];return n.forEach(function(t){if(we(t)){var e=document.createElement("div");for(e.innerHTML=t,i.push.apply(i,J(Ln(e.children)));e.firstChild;)e.removeChild(e.firstChild)}else if(t&&t.nodeType===Node.ELEMENT_NODE)i.push(t);else throw new W(U.WRONG_TYPE(t,["HTMLElement","string"]),G.WRONG_TYPE)}),i},St=function(n,i){return n<0?_e(n+i,0,i):_e(n,0,i)},Ct=function(n,i){var t,e;try{for(var r=jt(n),o=r.next();!o.done;o=r.next()){var a=o.value;if(a===i)return!0}}catch(s){t={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return!1},we=function(n){return typeof n=="string"},Wi=function(n,i,t){var e=t-i;if(n<i){var r=(i-n)%e;n=t-r}else if(n>t){var r=(n-t)%e;n=i+r}return n},gl=function(n,i){var t,e;try{for(var r=jt(n),o=r.next();!o.done;o=r.next()){var a=o.value;if(i(a))return a}}catch(s){t={error:s}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return null},ml=function(n,i){for(var t=0;t<n.length;t++)if(i(n[t]))return t;return-1},Rt=function(n,i,t){return(n-i)/(t-i)},kt=function(n){return window.getComputedStyle(n)||n.currentStyle},Ui=function(n,i){var t=i.width,e=i.height;t!=null&&(we(t)?n.style.width=t:n.style.width=t+"px"),e!=null&&(we(e)?n.style.height=e:n.style.height=e+"px")},Zt=function(n,i,t){return n>=i&&n<=t},Xi=function(n,i){return n>=i?n%i:n<0?St((n+1)%i-1,i):n},ot=function(n){for(var i=new Array(n),t=0;t<n;t++)i[t]=t;return i},Qe=function(n){var i=n.el,t=n.horizontal,e=n.useFractionalSize,r=n.useOffset,o=n.style,a=0;if(e){var s=parseFloat(t?o.width:o.height)||0,u=o.boxSizing==="border-box",c=t?parseFloat(o.borderLeftWidth||"0")+parseFloat(o.borderRightWidth||"0"):parseFloat(o.borderTopWidth||"0")+parseFloat(o.borderBottomWidth||"0");if(u)a=r?s:s-c;else{var f=t?parseFloat(o.paddingLeft||"0")+parseFloat(o.paddingRight||"0"):parseFloat(o.paddingTop||"0")+parseFloat(o.paddingBottom||"0");a=r?s+f+c:s+f}}else{var h=t?"Width":"Height";a=r?i["offset"+h]:i["client"+h]}return Math.max(a,0)},_l=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},W=function(n){te(i,n);function i(t,e){var r=n.call(this,t)||this;return _l(r,i.prototype),r.name="FlickingError",r.code=e,r}return i}(Error),yl=function(){function n(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 i=n.prototype;return Object.defineProperty(i,"element",{get:function(){return this._el},enumerable:!1,configurable:!0}),Object.defineProperty(i,"width",{get:function(){return this._width-this._padding.left-this._padding.right},enumerable:!1,configurable:!0}),Object.defineProperty(i,"height",{get:function(){return this._height-this._padding.top-this._padding.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(i,"padding",{get:function(){return this._padding},enumerable:!1,configurable:!0}),i.setSize=function(t){var e=t.width,r=t.height,o=this._el,a=this._padding,s=this._isBorderBoxSizing;if(e!=null)if(we(e))o.style.width=e;else{var u=s?e+a.left+a.right:e;o.style.width=u+"px"}if(r!=null)if(we(r))o.style.height=r;else{var c=s?r+a.top+a.bottom:r;o.style.height=c+"px"}this.resize()},i.resize=function(){var t=this._el,e=kt(t),r=this._flicking.useFractionalSize;this._width=Qe({el:t,horizontal:!0,useFractionalSize:r,useOffset:!1,style:e}),this._height=Qe({el:t,horizontal:!1,useFractionalSize:r,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"},n}(),bl=function(){function n(t){var e=this;this._onResize=function(){var r=e._flicking,o=r.resizeDebounce,a=r.maxResizeDebounce;o<=0?r.resize():(e._maxResizeDebounceTimer<=0&&a>0&&a>=o&&(e._maxResizeDebounceTimer=window.setTimeout(e._doScheduledResize,a)),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 r=!0;return function(){if(r){r=!1;return}e._onResize()}}(),this._flicking=t,this._enabled=!1,this._resizeObserver=null,this._resizeTimer=-1,this._maxResizeDebounceTimer=-1}var i=n.prototype;return Object.defineProperty(i,"enabled",{get:function(){return this._enabled},enumerable:!1,configurable:!0}),i.enable=function(){var t=this._flicking,e=t.viewport;if(this._enabled&&this.disable(),t.useResizeObserver&&window.ResizeObserver){var r=e.width!==0||e.height!==0,o=r?new ResizeObserver(this._skipFirstResize):new ResizeObserver(this._onResize);o.observe(t.viewport.element),this._resizeObserver=o}else window.addEventListener("resize",this._onResize);return this._enabled=!0,this},i.disable=function(){if(!this._enabled)return this;var t=this._resizeObserver;return t?(t.disconnect(),this._resizeObserver=null):window.removeEventListener("resize",this._onResize),this._enabled=!1,this},n}(),El=function(){function n(t){this._element=t,this._rendered=!0}var i=n.prototype;return Object.defineProperty(i,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(i,"rendered",{get:function(){return this._rendered},enumerable:!1,configurable:!0}),i.show=function(t){var e=this.element,r=t.camera.element;e.parentElement!==r&&(r.appendChild(e),this._rendered=!0)},i.hide=function(t){var e=this.element,r=t.camera.element;e.parentElement===r&&(r.removeChild(e),this._rendered=!1)},n}(),Br=function(){function n(t){this._flicking=t}var i=n.prototype;return Object.defineProperty(i,"element",{get:function(){return this._virtualElement.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(i,"rendered",{get:function(){return this._virtualElement.visible},enumerable:!1,configurable:!0}),Object.defineProperty(i,"_virtualElement",{get:function(){var t=this._flicking,e=this._panel.elementIndex,r=t.virtual.elements;return r[e]},enumerable:!1,configurable:!0}),i.init=function(t){this._panel=t},i.show=function(){},i.hide=function(){},n}(),Pl=function(){function n(t,e){var r,o,a,s;this._flicking=t,this._renderPanel=(r=e?.renderPanel)!==null&&r!==void 0?r:function(){return""},this._initialPanelCount=(o=e?.initialPanelCount)!==null&&o!==void 0?o:-1,this._cache=(a=e?.cache)!==null&&a!==void 0?a:!1,this._panelClass=(s=e?.panelClass)!==null&&s!==void 0?s:dl.DEFAULT_VIRTUAL,this._elements=[]}var i=n.prototype;return Object.defineProperty(i,"elements",{get:function(){return this._elements},enumerable:!1,configurable:!0}),Object.defineProperty(i,"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(i,"initialPanelCount",{get:function(){return this._initialPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(i,"cache",{get:function(){return this._cache},set:function(t){this._cache=t},enumerable:!1,configurable:!0}),Object.defineProperty(i,"panelClass",{get:function(){return this._panelClass},set:function(t){this._panelClass=t},enumerable:!1,configurable:!0}),i.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(r){return{nativeElement:r,visible:!0}})}},i.show=function(t){var e=this._elements[t],r=e.nativeElement;e.visible=!0,r.style.display&&(r.style.display="")},i.hide=function(t){var e=this._elements[t],r=e.nativeElement;e.visible=!1,r.style.display="none"},i.append=function(t){t===void 0&&(t=1);var e=this._flicking;return this.insert(e.panels.length,t)},i.prepend=function(t){return t===void 0&&(t=1),this.insert(0,t)},i.insert=function(t,e){if(e===void 0&&(e=1),e<=0)return[];var r=this._flicking;return r.renderer.batchInsert({index:t,elements:ot(e),hasDOMInElements:!1})},i.remove=function(t,e){if(e<=0)return[];var r=this._flicking;return r.renderer.batchRemove({index:t,deleteCount:e,hasDOMInElements:!1})},i._initVirtualElements=function(){var t=this,e=this._flicking,r=e.camera.element,o=e.panelsPerView,a=document.createDocumentFragment(),s=ot(o+1).map(function(u){var c=document.createElement("div");return c.className=t._panelClass,c.dataset.elementIndex=u.toString(),c});s.forEach(function(u){a.appendChild(u)}),r.appendChild(a)},n}(),q={HOLD:"hold",CHANGE:"change",RELEASE:"release",ANIMATION_END:"animationEnd",FINISH:"finish"},K="flick",X;(function(n){n[n.IDLE=0]="IDLE",n[n.HOLDING=1]="HOLDING",n[n.DRAGGING=2]="DRAGGING",n[n.ANIMATING=3]="ANIMATING",n[n.DISABLED=4]="DISABLED"})(X||(X={}));var lt=function(){function n(){this._delta=0,this._targetPanel=null}var i=n.prototype;return Object.defineProperty(i,"delta",{get:function(){return this._delta},enumerable:!1,configurable:!0}),Object.defineProperty(i,"targetPanel",{get:function(){return this._targetPanel},set:function(t){this._targetPanel=t},enumerable:!1,configurable:!0}),i.onEnter=function(t){this._delta=t._delta,this._targetPanel=t._targetPanel},i.onHold=function(t){},i.onChange=function(t){},i.onRelease=function(t){},i.onAnimationEnd=function(t){},i.onFinish=function(t){},i._moveToChangedPosition=function(t){var e=t.flicking,r=t.axesEvent,o=t.transitTo,a=r.delta[K];if(a){this._delta+=a;var s=e.camera,u=s.position,c=r.pos[K],f=e.circularEnabled?Wi(c,s.range.min,s.range.max):c;s.lookAt(f);var h=new V(B.MOVE,{isTrusted:r.isTrusted,holding:this.holding,direction:Oe(0,r.delta[K]),axesEvent:r});e.trigger(h),h.isCanceled()&&(s.lookAt(u),o(X.DISABLED))}},n}(),Lr=function(n){te(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.holding=!1,e.animating=!1,e}var t=i.prototype;return t.onEnter=function(){this._delta=0,this._targetPanel=null},t.onHold=function(e){var r=e.flicking,o=e.axesEvent,a=e.transitTo;if(r.renderer.panelCount<=0){a(X.DISABLED);return}var s=new V(B.HOLD_START,{axesEvent:o});r.trigger(s),s.isCanceled()?a(X.DISABLED):a(X.HOLDING)},t.onChange=function(e){var r=e.flicking,o=e.axesEvent,a=e.transitTo,s=r.control.controller,u=s.animatingContext,c=new V(B.MOVE_START,{isTrusted:o.isTrusted,holding:this.holding,direction:Oe(u.start,u.end),axesEvent:o});r.trigger(c),c.isCanceled()?a(X.DISABLED):a(X.ANIMATING).onChange(e)},i}(lt),xl=function(n){te(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.holding=!0,e.animating=!1,e._releaseEvent=null,e}var t=i.prototype;return t.onChange=function(e){var r=e.flicking,o=e.axesEvent,a=e.transitTo,s=o.inputEvent,u=r.horizontal?s.offsetX:s.offsetY,c=new V(B.MOVE_START,{isTrusted:o.isTrusted,holding:this.holding,direction:Oe(0,-u),axesEvent:o});r.trigger(c),c.isCanceled()?a(X.DISABLED):a(X.DRAGGING).onChange(e)},t.onRelease=function(e){var r=e.flicking,o=e.axesEvent,a=e.transitTo;if(r.trigger(new V(B.HOLD_END,{axesEvent:o})),o.delta.flick!==0){o.setTo({flick:r.camera.position},0),a(X.IDLE);return}this._releaseEvent=o},t.onFinish=function(e){var r,o,a=e.flicking,s=e.transitTo;if(s(X.IDLE),!!this._releaseEvent){var u=this._releaseEvent,c=u.inputEvent.srcEvent,f;if(c.type==="touchend"){var h=c,v=h.changedTouches[0];f=document.elementFromPoint(v.clientX,v.clientY)}else f=c.target;var d=a.renderer.panels,p=null;try{for(var g=jt(d),m=g.next();!m.done;m=g.next()){var _=m.value;if(_.contains(f)){p=_;break}}}catch(E){r={error:E}}finally{try{m&&!m.done&&(o=g.return)&&o.call(g)}finally{if(r)throw r.error}}if(p){var y=a.camera.position,b=p.position;a.trigger(new V(B.SELECT,{index:p.index,panel:p,direction:Oe(y,b)}))}}},i}(lt),Ol=function(n){te(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.holding=!0,e.animating=!0,e}var t=i.prototype;return t.onChange=function(e){this._moveToChangedPosition(e)},t.onRelease=function(e){var r,o=e.flicking,a=e.axesEvent,s=e.transitTo;if(o.trigger(new V(B.HOLD_END,{axesEvent:a})),o.renderer.panelCount<=0){s(X.IDLE);return}s(X.ANIMATING);var u=o.control,c=a.destPos[K],f=Math.max(a.duration,o.duration);try{u.moveToPosition(c,f,a)}catch{s(X.IDLE),a.setTo((r={},r[K]=o.camera.position,r),0)}},i}(lt),wl=function(n){te(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.holding=!1,e.animating=!0,e}var t=i.prototype;return t.onHold=function(e){var r=e.flicking,o=e.axesEvent,a=e.transitTo,s=this._targetPanel,u=r.control;this._delta=0,r.control.updateInput(),r.changeOnHold&&s&&u.setActive(s,u.activePanel,o.isTrusted);var c=new V(B.HOLD_START,{axesEvent:o});r.trigger(c),c.isCanceled()?a(X.DISABLED):a(X.DRAGGING)},t.onChange=function(e){this._moveToChangedPosition(e)},t.onFinish=function(e){var r=e.flicking,o=e.axesEvent,a=e.transitTo,s=r.control,u=s.controller,c=u.animatingContext;a(X.IDLE),r.trigger(new V(B.MOVE_END,{isTrusted:o.isTrusted,direction:Oe(c.start,c.end),axesEvent:o}));var f=this._targetPanel;f&&s.setActive(f,s.activePanel,o.isTrusted)},i}(lt),Tl=function(n){te(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.holding=!1,e.animating=!0,e}var t=i.prototype;return t.onAnimationEnd=function(e){var r=e.transitTo;r(X.IDLE)},t.onChange=function(e){var r=e.axesEvent,o=e.transitTo;r.stop(),o(X.IDLE)},t.onRelease=function(e){var r=e.axesEvent,o=e.transitTo;r.delta.flick===0&&o(X.IDLE)},i}(lt),Sl=function(){function n(){var t=this;this.transitTo=function(e){var r;switch(e){case X.IDLE:r=new Lr;break;case X.HOLDING:r=new xl;break;case X.DRAGGING:r=new Ol;break;case X.ANIMATING:r=new wl;break;case X.DISABLED:r=new Tl;break}return r.onEnter(t._state),t._state=r,t._state},this._state=new Lr}var i=n.prototype;return Object.defineProperty(i,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),i.fire=function(t,e){var r=this._state,o=ne(ne({},e),{transitTo:this.transitTo});switch(t){case q.HOLD:r.onHold(o);break;case q.CHANGE:r.onChange(o);break;case q.RELEASE:r.onRelease(o);break;case q.ANIMATION_END:r.onAnimationEnd(o);break;case q.FINISH:r.onFinish(o);break}},n}(),Cl=function(){function n(){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 Sl}var i=n.prototype;return Object.defineProperty(i,"axes",{get:function(){return this._axes},enumerable:!1,configurable:!0}),Object.defineProperty(i,"panInput",{get:function(){return this._panInput},enumerable:!1,configurable:!0}),Object.defineProperty(i,"stateMachine",{get:function(){return this._stateMachine},enumerable:!1,configurable:!0}),Object.defineProperty(i,"state",{get:function(){return this._stateMachine.state},enumerable:!1,configurable:!0}),Object.defineProperty(i,"animatingContext",{get:function(){return this._animatingContext},enumerable:!1,configurable:!0}),Object.defineProperty(i,"controlParams",{get:function(){var t=this._axes;if(!t)return{range:{min:0,max:0},position:0,circular:!1};var e=t.axis[K];return{range:{min:e.range[0],max:e.range[1]},circular:e.circular[0],position:this.position}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"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(i,"position",{get:function(){var t,e;return(e=(t=this._axes)===null||t===void 0?void 0:t.get([K])[K])!==null&&e!==void 0?e:0},enumerable:!1,configurable:!0}),Object.defineProperty(i,"range",{get:function(){var t,e;return(e=(t=this._axes)===null||t===void 0?void 0:t.axis[K].range)!==null&&e!==void 0?e:[0,0]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"bounce",{get:function(){var t;return(t=this._axes)===null||t===void 0?void 0:t.axis[K].bounce},enumerable:!1,configurable:!0}),i.init=function(t){var e,r=this;this._flicking=t,this._axes=new Xs((e={},e[K]={range:[0,0],circular:!1,bounce:[0,0]},e),{deceleration:t.deceleration,interruptable:t.interruptable,nested:t.nested,easing:t.easing}),this._panInput=new Us(t.viewport.element,{inputType:t.inputType,threshold:1,iOSEdgeSwipeThreshold:t.iOSEdgeSwipeThreshold,preventDefaultOnDrag:t.preventDefaultOnDrag,scale:t.horizontal?[t.camera.panelOrder===Ie.RTL?1:-1,0]:[0,-1],releaseOnScroll:!0});var o=this._axes;o.connect(t.horizontal?[K,""]:["",K],this._panInput);var a=function(u){var c=q[u];o.on(c,function(f){r._stateMachine.fire(c,{flicking:t,axesEvent:f})})};for(var s in q)a(s);return this},i.destroy=function(){var t;this._axes&&(this.removePreventClickHandler(),this._axes.destroy()),(t=this._panInput)===null||t===void 0||t.destroy(),this._resetInternalValues()},i.enable=function(){var t;return(t=this._panInput)===null||t===void 0||t.enable(),this},i.disable=function(){var t;return(t=this._panInput)===null||t===void 0||t.disable(),this},i.release=function(){var t;return(t=this._panInput)===null||t===void 0||t.release(),this},i.updateAnimation=function(t,e){var r,o;return this._animatingContext=ne(ne({},this._animatingContext),{end:t}),(o=this._axes)===null||o===void 0||o.updateAnimation({destPos:(r={},r[K]=t,r),duration:e}),this},i.stopAnimation=function(){var t;return(t=this._axes)===null||t===void 0||t.stopAnimation(),this},i.update=function(t){var e,r=N(this._flicking),o=r.camera,a=this._axes,s=a.axis[K];return s.circular=[t.circular,t.circular],s.range=[t.range.min,t.range.max],s.bounce=pl(r.bounce,o.size),a.axisManager.set((e={},e[K]=t.position,e)),this},i.addPreventClickHandler=function(){var t=N(this._flicking),e=this._axes,r=t.camera.element;return e.on(q.HOLD,this._onAxesHold),e.on(q.CHANGE,this._onAxesChange),r.addEventListener("click",this._preventClickWhenDragged,!0),this},i.removePreventClickHandler=function(){var t=N(this._flicking),e=this._axes,r=t.camera.element;return e.off(q.HOLD,this._onAxesHold),e.off(q.CHANGE,this._onAxesChange),r.removeEventListener("click",this._preventClickWhenDragged,!0),this},i.animateTo=function(t,e,r){var o=this,a,s=this._axes,u=this._stateMachine.state;if(!s)return Promise.reject(new W(U.NOT_ATTACHED_TO_FLICKING,G.NOT_ATTACHED_TO_FLICKING));var c=s.get([K])[K];if(c===t){var f=N(this._flicking);return f.camera.lookAt(t),u.targetPanel&&f.control.setActive(u.targetPanel,f.control.activePanel,(a=r?.isTrusted)!==null&&a!==void 0?a:!1),Promise.resolve()}this._animatingContext={start:c,end:t,offset:0};var h=function(){var v,d,p=function(){o._animatingContext={start:0,end:0,offset:0}};s.once(q.FINISH,p),r?r.setTo((v={},v[K]=t,v),e):s.setTo((d={},d[K]=t,d),e)};return new Promise(function(v,d){var p=function(){s.off(q.HOLD,g),v()},g=function(){s.off(q.FINISH,p),d(new W(U.ANIMATION_INTERRUPTED,G.ANIMATION_INTERRUPTED))};s.once(q.FINISH,p),s.once(q.HOLD,g),h()})},i.updateDirection=function(){var t=N(this._flicking),e=this._axes,r=this._panInput;e.disconnect(r),e.connect(t.horizontal?[K,""]:["",K],r),r.options.scale=t.horizontal?[t.camera.panelOrder===Ie.RTL?1:-1,0]:[0,-1]},i._resetInternalValues=function(){this._flicking=null,this._axes=null,this._panInput=null,this._animatingContext={start:0,end:0,offset:0},this._dragged=!1},n}(),jn=function(){function n(){this._flicking=null,this._controller=new Cl,this._activePanel=null}var i=n.prototype;return Object.defineProperty(i,"controller",{get:function(){return this._controller},enumerable:!1,configurable:!0}),Object.defineProperty(i,"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(i,"activePanel",{get:function(){return this._activePanel},enumerable:!1,configurable:!0}),Object.defineProperty(i,"animating",{get:function(){return this._controller.state.animating},enumerable:!1,configurable:!0}),Object.defineProperty(i,"holding",{get:function(){return this._controller.state.holding},enumerable:!1,configurable:!0}),i.init=function(t){return this._flicking=t,this._controller.init(t),this},i.destroy=function(){this._controller.destroy(),this._flicking=null,this._activePanel=null},i.enable=function(){return this._controller.enable(),this},i.disable=function(){return this._controller.disable(),this},i.release=function(){return this._controller.release(),this},i.updateAnimation=function(t,e,r){var o=this._controller.state,a=this._getPosition(t,r??F.NONE);return o.targetPanel=t,this._controller.updateAnimation(a,e),this},i.stopAnimation=function(){var t=this._controller.state;return t.targetPanel=null,this._controller.stopAnimation(),this},i.updatePosition=function(t){var e=N(this._flicking),r=e.camera,o=this._activePanel;o&&r.lookAt(r.clampToReachablePosition(o.position))},i.updateInput=function(){var t=N(this._flicking),e=t.camera;return this._controller.update(e.controlParams),this},i.resetActive=function(){return this._activePanel=null,this},i.moveToPanel=function(t,e){var r=e.duration,o=e.direction,a=o===void 0?F.NONE:o,s=e.axesEvent;return De(this,void 0,void 0,function(){var u;return Me(this,function(c){return u=this._getPosition(t,a),this._triggerIndexChangeEvent(t,t.position,s),[2,this._animateToPosition({position:u,duration:r,newActivePanel:t,axesEvent:s})]})})},i.setActive=function(t,e,r){var o,a=N(this._flicking);this._activePanel=t,a.camera.updateAdaptiveHeight(),t!==e?a.trigger(new V(B.CHANGED,{index:t.index,panel:t,prevIndex:(o=e?.index)!==null&&o!==void 0?o:-1,prevPanel:e,isTrusted:r,direction:e?Oe(e.position,t.position):F.NONE})):a.trigger(new V(B.RESTORED,{isTrusted:r}))},i.copy=function(t){this._flicking=t._flicking,this._activePanel=t._activePanel,this._controller=t._controller},i._triggerIndexChangeEvent=function(t,e,r){var o,a=N(this._flicking),s=t!==this._activePanel?B.WILL_CHANGE:B.WILL_RESTORE,u=a.camera,c=this._activePanel,f=new V(s,{index:t.index,panel:t,isTrusted:r?.isTrusted||!1,direction:Oe((o=c?.position)!==null&&o!==void 0?o:u.position,e)});if(a.trigger(f),f.isCanceled())throw new W(U.STOP_CALLED_BY_USER,G.STOP_CALLED_BY_USER)},i._animateToPosition=function(t){var e=t.position,r=t.duration,o=t.newActivePanel,a=t.axesEvent;return De(this,void 0,void 0,function(){var s,u,c,f=this;return Me(this,function(h){return s=N(this._flicking),u=function(){return f._controller.animateTo(e,r,a)},c=this._controller.state,c.targetPanel=o,r<=0?[2,u()]:[2,u().then(function(){return De(f,void 0,void 0,function(){return Me(this,function(v){switch(v.label){case 0:return[4,s.renderer.render()];case 1:return v.sent(),[2]}})})}).catch(function(v){if(!(a&&v instanceof W&&v.code===G.ANIMATION_INTERRUPTED))throw v})]})})},i._getPosition=function(t,e){e===void 0&&(e=F.NONE);var r=N(this._flicking),o=r.camera,a=t.position,s=o.findNearestAnchor(a);if(t.removed||!s)throw new W(U.POSITION_NOT_REACHABLE(t.position),G.POSITION_NOT_REACHABLE);if(!o.canReach(t))a=s.position,t=s.panel;else if(r.circularEnabled){var u=this._controller.position,c=o.rangeDiff,f=[a,a+c,a-c].filter(function(h){return e===F.NONE?!0:e===F.PREV?h<=u:h>=u});a=f.reduce(function(h,v){return Math.abs(u-v)<Math.abs(u-h)?v:h},1/0)}return a},n}(),ee=function(){function n(t){var e=t.index,r=t.position,o=t.panel;this._index=e,this._pos=r,this._panel=o}var i=n.prototype;return Object.defineProperty(i,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(i,"position",{get:function(){return this._pos},enumerable:!1,configurable:!0}),Object.defineProperty(i,"panel",{get:function(){return this._panel},enumerable:!1,configurable:!0}),n}(),Rl=function(n){te(i,n);function i(e){var r=(e===void 0?{}:e).count,o=r===void 0?1/0:r,a=n.call(this)||this;return a._count=o,a}var t=i.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,r,o){var a=N(this._flicking),s=a.camera,u=s.findActiveAnchor(),c=s.findNearestAnchor(s.position),f=this._controller.state;if(!u||!c)return Promise.reject(new W(U.POSITION_NOT_REACHABLE(e),G.POSITION_NOT_REACHABLE));var h=this._calcSnapThreshold(e,u),v=a.animating?f.delta:e-s.position,d=Math.abs(v),p=o&&o.delta[K]!==0?Math.abs(o.delta[K]):d,g;if(p>=h&&p>0)g=this._findSnappedAnchor(e,c);else if(d>=a.threshold&&d>0)g=this._findAdjacentAnchor(e,v,c);else return this.moveToPanel(c.panel,{duration:r,axesEvent:o});return this._triggerIndexChangeEvent(g.panel,e,o),this._animateToPosition({position:s.clampToReachablePosition(g.position),duration:r,newActivePanel:g.panel,axesEvent:o})},t._findSnappedAnchor=function(e,r){var o=N(this._flicking),a=o.camera,s=this._count,u=a.position,c=a.clampToReachablePosition(e),f=a.findAnchorIncludePosition(c);if(!r||!f)throw new W(U.POSITION_NOT_REACHABLE(e),G.POSITION_NOT_REACHABLE);if(!isFinite(s))return f;var h=o.panelCount,v=a.anchorPoints,d=Math.sign(e-u)*Math.floor(Math.abs(e-u)/a.rangeDiff);e>u&&f.index<r.index||f.position>r.position&&f.index===r.index?d+=1:(e<u&&f.index>r.index||f.position<r.position&&f.index===r.index)&&(d-=1);var p=d*h,g=f.index+p;if(Math.abs(g-r.index)<=s){var m=v[f.index];return new ee({index:m.index,position:m.position+d*a.rangeDiff,panel:m.panel})}if(o.circularEnabled){var _=v[Xi(r.index+Math.sign(e-u)*s,h)],y=Math.floor(s/h);return e>u&&_.index<r.index?y+=1:e<u&&_.index>r.index&&(y-=1),new ee({index:_.index,position:_.position+y*a.rangeDiff,panel:_.panel})}else return v[_e(r.index+Math.sign(e-u)*s,0,v.length-1)]},t._findAdjacentAnchor=function(e,r,o){var a,s=N(this._flicking),u=s.camera;if(u.circularEnabled){var c=u.findAnchorIncludePosition(e);if(c&&c.position!==o.position)return c}var f=(a=r>0?u.getNextAnchor(o):u.getPrevAnchor(o))!==null&&a!==void 0?a:o;return f},t._calcSnapThreshold=function(e,r){var o=e>r.position,a=r.panel,s=a.size,u=a.alignPosition;return o?s-u+a.margin.next:u+a.margin.prev},i}(jn),kl=function(n){te(i,n);function i(e){var r=(e===void 0?{}:e).stopAtEdge,o=r===void 0?!0:r,a=n.call(this)||this;return a._stopAtEdge=o,a}var t=i.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 r=N(this._flicking),o=r.camera,a=this._activePanel;if(a){var s=a.range,u=s.min+(s.max-s.min)*e;o.lookAt(o.clampToReachablePosition(u))}},t.moveToPosition=function(e,r,o){var a=N(this._flicking),s=a.camera,u=s.clampToReachablePosition(e),c=s.findAnchorIncludePosition(u);if(!c)return Promise.reject(new W(U.POSITION_NOT_REACHABLE(e),G.POSITION_NOT_REACHABLE));var f=c.panel;return f!==this._activePanel&&this._triggerIndexChangeEvent(f,e,o),this._animateToPosition({position:this._stopAtEdge?u:e,duration:r,newActivePanel:f,axesEvent:o})},i}(jn),Il=function(n){te(i,n);function i(e){var r=(e===void 0?{}:e).count,o=r===void 0?1:r,a=n.call(this)||this;return a.setActive=function(s,u,c){n.prototype.setActive.call(a,s,u,c),a.updateInput()},a._count=o,a._resetIndexRange(),a}var t=i.prototype;return Object.defineProperty(t,"count",{get:function(){return this._count},set:function(e){this._count=e},enumerable:!1,configurable:!0}),t.destroy=function(){n.prototype.destroy.call(this),this._resetIndexRange()},t.updateInput=function(){var e,r=N(this._flicking),o=r.camera,a=r.renderer,s=this._controller,u=o.controlParams,c=this._count,f=s.state.animating?(e=o.findNearestAnchor(o.position))===null||e===void 0?void 0:e.panel:this._activePanel;if(!f)return s.update(u),this._resetIndexRange(),this;var h=u.range,v=f.position,d=f.index,p=a.panelCount,g=d-c,m=d+c;g<0&&(g=r.circularEnabled?St((g+1)%p-1,p):_e(g,0,p-1)),m>=p&&(m=r.circularEnabled?m%p:_e(m,0,p-1));var _=a.panels[g],y=a.panels[m],b=Math.max(_.position,h.min),E=Math.min(y.position,h.max);return b>v&&(b-=o.rangeDiff),E<v&&(E+=o.rangeDiff),u.range={min:b,max:E},u.circular&&(u.position<b&&(u.position+=o.rangeDiff),u.position>E&&(u.position-=o.rangeDiff)),u.circular=!1,s.update(u),this._indexRange={min:_.index,max:y.index},this},t.moveToPanel=function(e,r){return De(this,void 0,void 0,function(){var o,a,s;return Me(this,function(u){return o=N(this._flicking),a=o.camera,s=this._controller,s.update(a.controlParams),[2,n.prototype.moveToPanel.call(this,e,r)]})})},t.moveToPosition=function(e,r,o){var a=N(this._flicking),s=a.camera,u=this._activePanel,c=this._controller.range,f=this._indexRange,h=s.range,v=this._controller.state,d=_e(s.clampToReachablePosition(e),c[0],c[1]),p=s.findAnchorIncludePosition(d);if(!p||!u)return Promise.reject(new W(U.POSITION_NOT_REACHABLE(e),G.POSITION_NOT_REACHABLE));var g=u.position,m=a.animating?v.delta:e-s.position,_=Math.abs(m)>=a.threshold,y=e>g?s.getNextAnchor(p):s.getPrevAnchor(p),b,E,x=s.anchorPoints,C=x[0],I=x[x.length-1],O=e<=h.min&&Zt(C.panel.index,f.min,f.max),R=e>=h.max&&Zt(I.panel.index,f.min,f.max),T=y&&(f.min<=f.max?Zt(y.index,f.min,f.max):y.index>=f.min||y.index<=f.max);if(O||R){var D=e<h.min?C:I;E=D.panel,b=D.position}else if(_&&p.position!==u.position)E=p.panel,b=p.position;else if(_&&T)E=y.panel,b=y.position;else{var A=s.findNearestAnchor(s.position);return A?this.moveToPanel(A.panel,{duration:r,axesEvent:o}):Promise.reject(new W(U.POSITION_NOT_REACHABLE(e),G.POSITION_NOT_REACHABLE))}return this._triggerIndexChangeEvent(E,e,o),this._animateToPosition({position:b,duration:r,newActivePanel:E,axesEvent:o})},t._resetIndexRange=function(){this._indexRange={min:0,max:0}},i}(jn),Fn=function(){function n(t){this._flicking=t}var i=n.prototype;return i.getAnchors=function(){var t=this._flicking.renderer.panels;return t.map(function(e,r){return new ee({index:r,position:e.position,panel:e})})},i.findAnchorIncludePosition=function(t){var e=this._flicking.camera.anchorPoints,r=e.filter(function(o){return o.panel.includePosition(t,!0)});return r.reduce(function(o,a){return o&&Math.abs(o.position-t)<Math.abs(a.position-t)?o:a},null)},i.findNearestAnchor=function(t){var e=this._flicking.camera.anchorPoints;if(e.length<=0)return null;for(var r=1/0,o=0;o<e.length;o++){var a=e[o],s=Math.abs(a.position-t);if(s>r)return e[o-1];r=s}return e[e.length-1]},i.clampToReachablePosition=function(t){var e=this._flicking.camera,r=e.range;return _e(t,r.min,r.max)},i.getCircularOffset=function(){return 0},i.canReach=function(t){var e=this._flicking.camera,r=e.range;if(t.removed)return!1;var o=t.position;return o>=r.min&&o<=r.max},i.canSee=function(t){var e=this._flicking.camera,r=e.visibleRange;return t.isVisibleOnRange(r.min,r.max)},n}(),Vr=function(n){te(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}var t=i.prototype;return t.checkAvailability=function(){return!0},t.getRange=function(){var e,r,o=this._flicking.renderer,a=o.getPanel(0),s=o.getPanel(o.panelCount-1);return{min:(e=a?.position)!==null&&e!==void 0?e:0,max:(r=s?.position)!==null&&r!==void 0?r:0}},i}(Fn),Nl=function(n){te(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}var t=i.prototype;return t.checkAvailability=function(){var e=this._flicking,r=e.renderer,o=r.panels;if(o.length<=0)return!1;var a=o[0],s=o[o.length-1],u=a.range.min-a.margin.prev,c=s.range.max+s.margin.next,f=e.camera.size,h=c-u,v=o.every(function(d){return h-d.size>=f});return v},t.getRange=function(){var e=this._flicking,r=e.renderer.panels;if(r.length<=0)return{min:0,max:0};var o=r[0],a=r[r.length-1],s=o.range.min-o.margin.prev,u=a.range.max+a.margin.next;return{min:s,max:u}},t.getAnchors=function(){var e=this._flicking,r=e.renderer.panels;return r.map(function(o,a){return new ee({index:a,position:o.position,panel:o})})},t.findNearestAnchor=function(e){var r=this._flicking.camera,o=r.anchorPoints;if(o.length<=0)return null;for(var a=r.range,s=1/0,u=-1,c=0;c<o.length;c++){var f=o[c],h=Math.min(Math.abs(f.position-e),Math.abs(f.position-a.min+a.max-e),Math.abs(e-a.min+a.max-f.position));h<s&&(s=h,u=c)}return o[u]},t.findAnchorIncludePosition=function(e){var r=this._flicking.camera,o=r.range,a=r.anchorPoints,s=r.rangeDiff,u=a.length,c=Wi(e,o.min,o.max),f=n.prototype.findAnchorIncludePosition.call(this,c);if(u>0&&(e===o.min||e===o.max)){var h=[f,new ee({index:0,position:a[0].position+s,panel:a[0].panel}),new ee({index:u-1,position:a[u-1].position-s,panel:a[u-1].panel})].filter(function(d){return!!d});f=h.reduce(function(d,p){return d&&Math.abs(d.position-e)<Math.abs(p.position-e)?d:p},null)}if(!f)return null;if(e<o.min){var v=-Math.floor((o.min-e)/s)-1;return new ee({index:f.index,position:f.position+s*v,panel:f.panel})}else if(e>o.max){var v=Math.floor((e-o.max)/s)+1;return new ee({index:f.index,position:f.position+s*v,panel:f.panel})}return f},t.getCircularOffset=function(){var e=this._flicking,r=e.camera;if(!r.circularEnabled)return 0;var o=e.panels.filter(function(u){return u.toggled}),a=o.filter(function(u){return u.toggleDirection===F.PREV}),s=o.filter(function(u){return u.toggleDirection===F.NEXT});return this._calcPanelAreaSum(a)-this._calcPanelAreaSum(s)},t.clampToReachablePosition=function(e){return e},t.canReach=function(e){return!e.removed},t.canSee=function(e){var r=this._flicking.camera,o=r.range,a=r.rangeDiff,s=r.visibleRange,u=n.prototype.canSee.call(this,e);return s.min<o.min?u||e.isVisibleOnRange(s.min+a,s.max+a):s.max>o.max?u||e.isVisibleOnRange(s.min-a,s.max-a):u},t._calcPanelAreaSum=function(e){return e.reduce(function(r,o){return r+o.sizeIncludingMargin},0)},i}(Fn),jr=function(n){te(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}var t=i.prototype;return t.checkAvailability=function(){var e=this._flicking,r=e.renderer,o=r.getPanel(0),a=r.getPanel(r.panelCount-1);if(!o||!a)return!1;var s=e.camera.size,u=o.range.min,c=a.range.max,f=c-u,h=s<f;return h},t.getRange=function(){var e=this._flicking,r=e.renderer,o=e.camera.alignPosition,a=r.getPanel(0),s=r.getPanel(r.panelCount-1);if(!a||!s)return{min:0,max:0};var u=e.camera.size,c=a.range.min,f=s.range.max,h=f-c,v=u<h,d=c+o,p=f-u+o;if(v)return{min:d,max:p};var g=e.camera.align,m=typeof g=="object"?g.camera:g,_=d+Vn(m,p-d);return{min:_,max:_}},t.getAnchors=function(){var e=this._flicking,r=e.camera,o=e.renderer.panels;if(o.length<=0)return[];var a=e.camera.range,s=o.filter(function(g){return r.canReach(g)});if(s.length>0){var u=s[0].position!==a.min,c=s[s.length-1].position!==a.max,f=u?1:0,h=s.map(function(g,m){return new ee({index:m+f,position:g.position,panel:g})});return u&&h.splice(0,0,new ee({index:0,position:a.min,panel:o[s[0].index-1]})),c&&h.push(new ee({index:h.length,position:a.max,panel:o[s[s.length-1].index+1]})),h}else if(a.min!==a.max){var v=this._findNearestPanel(a.min,o),d=v.index===o.length-1?v.prev():v,p=d.next();return[new ee({index:0,position:a.min,panel:d}),new ee({index:1,position:a.max,panel:p})]}else return[new ee({index:0,position:a.min,panel:this._findNearestPanel(a.min,o)})]},t.findAnchorIncludePosition=function(e){var r=this._flicking.camera,o=r.range,a=r.anchorPoints;return a.length<=0?null:e<=o.min?a[0]:e>=o.max?a[a.length-1]:n.prototype.findAnchorIncludePosition.call(this,e)},t._findNearestPanel=function(e,r){for(var o=1/0,a=0;a<r.length;a++){var s=r[a],u=Math.abs(s.position-e);if(u>o)return r[a-1];o=u}return r[r.length-1]},i}(Fn),Al=function(){function n(t,e){var r=this,o=(e===void 0?{}:e).align,a=o===void 0?ce.CENTER:o;this._checkTranslateSupport=function(){var s,u,c=["webkitTransform","msTransform","MozTransform","OTransform","transform"],f=document.documentElement.style,h="";try{for(var v=jt(c),d=v.next();!d.done;d=v.next()){var p=d.value;p in f&&(h=p)}}catch(g){s={error:g}}finally{try{d&&!d.done&&(u=v.return)&&u.call(v)}finally{if(s)throw s.error}}if(!h)throw new W(U.TRANSFORM_NOT_SUPPORTED,G.TRANSFORM_NOT_SUPPORTED);r._transform=h},this._flicking=t,this._resetInternalValues(),this._align=a}var i=n.prototype;return Object.defineProperty(i,"element",{get:function(){return this._el},enumerable:!1,configurable:!0}),Object.defineProperty(i,"children",{get:function(){return Ln(this._el.children)},enumerable:!1,configurable:!0}),Object.defineProperty(i,"position",{get:function(){return this._position},enumerable:!1,configurable:!0}),Object.defineProperty(i,"alignPosition",{get:function(){return this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(i,"offset",{get:function(){return this._offset-this._circularOffset},enumerable:!1,configurable:!0}),Object.defineProperty(i,"circularEnabled",{get:function(){return this._circularEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(i,"mode",{get:function(){return this._mode},enumerable:!1,configurable:!0}),Object.defineProperty(i,"range",{get:function(){return this._range},enumerable:!1,configurable:!0}),Object.defineProperty(i,"rangeDiff",{get:function(){return this._range.max-this._range.min},enumerable:!1,configurable:!0}),Object.defineProperty(i,"visiblePanels",{get:function(){return this._visiblePanels},enumerable:!1,configurable:!0}),Object.defineProperty(i,"visibleRange",{get:function(){return{min:this._position-this._alignPos,max:this._position-this._alignPos+this.size}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"anchorPoints",{get:function(){return this._anchors},enumerable:!1,configurable:!0}),Object.defineProperty(i,"controlParams",{get:function(){return{range:this._range,position:this._position,circular:this._circularEnabled}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"atEdge",{get:function(){return this._position<=this._range.min||this._position>=this._range.max},enumerable:!1,configurable:!0}),Object.defineProperty(i,"size",{get:function(){var t=this._flicking;return t?t.horizontal?t.viewport.width:t.viewport.height:0},enumerable:!1,configurable:!0}),Object.defineProperty(i,"progress",{get:function(){var t=this._flicking,e=this._position+this._offset,r=this.findNearestAnchor(this._position);if(!t||!r)return NaN;var o=r.panel,a=o.position+o.offset,s=t.control.controller.bounce,u=this.range,c=u.min,f=u.max,h=this.rangeDiff;if(e===a)return o.index;if(e<a){var v=o.prev(),d=v?v.position+v.offset:c-s[0];return d>a&&(d-=h),o.index-1+Rt(e,d,a)}else{var p=o.next(),g=p?p.position+p.offset:f+s[1];return g<a&&(g+=h),o.index+Rt(e,a,g)}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"panelOrder",{get:function(){return this._panelOrder},enumerable:!1,configurable:!0}),Object.defineProperty(i,"align",{get:function(){return this._align},set:function(t){this._align=t},enumerable:!1,configurable:!0}),i.init=function(){var t=this._flicking.viewport.element;return vl(t.firstElementChild,"First element child of the viewport element"),this._el=t.firstElementChild,this._checkTranslateSupport(),this._updateMode(),this.updatePanelOrder(),this},i.destroy=function(){return this._resetInternalValues(),this},i.lookAt=function(t){var e=this,r=N(this._flicking),o=this._position;this._position=t;var a=this._togglePanels(o,t);this._refreshVisiblePanels(),this._checkNeedPanel(),this._checkReachEnd(o,t),a?r.renderer.render().then(function(){e.updateOffset()}):this.applyTransform()},i.getPrevAnchor=function(t){if(!this._circularEnabled||t.index!==0)return this._anchors[t.index-1]||null;var e=this._anchors,r=this.rangeDiff,o=e[e.length-1];return new ee({index:o.index,position:o.position-r,panel:o.panel})},i.getNextAnchor=function(t){var e=this._anchors;if(!this._circularEnabled||t.index!==e.length-1)return e[t.index+1]||null;var r=this.rangeDiff,o=e[0];return new ee({index:o.index,position:o.position+r,panel:o.panel})},i.getProgressInPanel=function(t){var e=t.range;return(this._position-e.min)/(e.max-e.min)},i.findAnchorIncludePosition=function(t){return this._mode.findAnchorIncludePosition(t)},i.findNearestAnchor=function(t){return this._mode.findNearestAnchor(t)},i.findActiveAnchor=function(){var t=N(this._flicking),e=t.control.activeIndex;return gl(this._anchors,function(r){return r.panel.index===e})},i.clampToReachablePosition=function(t){return this._mode.clampToReachablePosition(t)},i.canReach=function(t){return this._mode.canReach(t)},i.canSee=function(t){return this._mode.canSee(t)},i.updateRange=function(){var t=N(this._flicking),e=t.renderer,r=e.panels;return this._updateMode(),this._range=this._mode.getRange(),r.forEach(function(o){return o.updateCircularToggleDirection()}),this},i.updateAlignPos=function(){var t=this._align,e=typeof t=="object"?t.camera:t;return this._alignPos=Vn(e,this.size),this},i.updateAnchors=function(){return this._anchors=this._mode.getAnchors(),this},i.updateAdaptiveHeight=function(){var t=N(this._flicking),e=t.control.activePanel;!t.horizontal||!t.adaptive||!e||t.viewport.setSize({height:e.height})},i.updateOffset=function(){var t=N(this._flicking),e=this._position,r=t.panels.filter(function(o){return!o.rendered});return this._offset=r.filter(function(o){return o.position+o.offset<e}).reduce(function(o,a){return o+a.sizeIncludingMargin},0),this._circularOffset=this._mode.getCircularOffset(),this.applyTransform(),this},i.updatePanelOrder=function(){var t=N(this._flicking);if(!t.horizontal)return this;var e=this._el,r=kt(e).direction;return r!==this._panelOrder&&(this._panelOrder=r===Ie.RTL?Ie.RTL:Ie.LTR,t.initialized&&t.control.controller.updateDirection()),this},i.resetNeedPanelHistory=function(){return this._needPanelTriggered={prev:!1,next:!1},this},i.applyTransform=function(){var t=this._el,e=N(this._flicking),r=e.renderer;if(r.rendering||!e.initialized)return this;var o=this._position-this._alignPos-this._offset+this._circularOffset;return t.style[this._transform]=e.horizontal?"translate("+(this._panelOrder===Ie.RTL?o:-o)+"px)":"translate(0, "+-o+"px)",this},i._resetInternalValues=function(){this._position=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}},i._refreshVisiblePanels=function(){var t=this,e=N(this._flicking),r=e.renderer.panels,o=r.filter(function(c){return t.canSee(c)}),a=this._visiblePanels;this._visiblePanels=o;var s=o.filter(function(c){return!Ct(a,c)}),u=a.filter(function(c){return!Ct(o,c)});(s.length>0||u.length>0)&&e.renderer.render().then(function(){e.trigger(new V(B.VISIBLE_CHANGE,{added:s,removed:u,visiblePanels:o}))})},i._checkNeedPanel=function(){var t=this._needPanelTriggered;if(!(t.prev&&t.next)){var e=N(this._flicking),r=e.renderer.panels;if(r.length<=0){t.prev||(e.trigger(new V(B.NEED_PANEL,{direction:F.PREV})),t.prev=!0),t.next||(e.trigger(new V(B.NEED_PANEL,{direction:F.NEXT})),t.next=!0);return}var o=this._position,a=this.size,s=this._range,u=e.needPanelThreshold,c=o-this._alignPos,f=c+a,h=r[0],v=r[r.length-1];if(!t.prev){var d=h.range.min;(c<=d+u||o<=s.min+u)&&(e.trigger(new V(B.NEED_PANEL,{direction:F.PREV})),t.prev=!0)}if(!t.next){var p=v.range.max;(f>=p-u||o>=s.max-u)&&(e.trigger(new V(B.NEED_PANEL,{direction:F.NEXT})),t.next=!0)}}},i._checkReachEnd=function(t,e){var r=N(this._flicking),o=this._range,a=t>o.min&&t<o.max,s=e>o.min&&e<o.max;if(!(!a||s)){var u=e<=o.min?F.PREV:F.NEXT;r.trigger(new V(B.REACH_EDGE,{direction:u}))}},i._updateMode=function(){var t=N(this._flicking);if(t.circular){var e=new Nl(t),r=e.checkAvailability();if(r)this._mode=e;else{var o=t.circularFallback;this._mode=o===Hi.BOUND?new jr(t):new Vr(t)}this._circularEnabled=r}else this._mode=t.bound?new jr(t):new Vr(t),this._circularEnabled=!1},i._togglePanels=function(t,e){if(e===t)return!1;var r=N(this._flicking),o=r.renderer.panels,a=o.map(function(s){return s.toggle(t,e)});return a.some(function(s){return s})},n}(),Yi=function(){function n(t){var e=t.align,r=e===void 0?ce.CENTER:e,o=t.strategy;this._flicking=null,this._panels=[],this._rendering=!1,this._align=r,this._strategy=o}var i=n.prototype;return Object.defineProperty(i,"panels",{get:function(){return this._panels},enumerable:!1,configurable:!0}),Object.defineProperty(i,"rendering",{get:function(){return this._rendering},enumerable:!1,configurable:!0}),Object.defineProperty(i,"panelCount",{get:function(){return this._panels.length},enumerable:!1,configurable:!0}),Object.defineProperty(i,"strategy",{get:function(){return this._strategy},enumerable:!1,configurable:!0}),Object.defineProperty(i,"align",{get:function(){return this._align},set:function(t){this._align=t;var e=Tt(t);this._panels.forEach(function(r){r.align=e})},enumerable:!1,configurable:!0}),i.init=function(t){return this._flicking=t,this._collectPanels(),this},i.destroy=function(){this._flicking=null,this._panels=[]},i.getPanel=function(t){return this._panels[t]||null},i.forceRenderAllPanels=function(){return this._panels.forEach(function(t){return t.markForShow()}),Promise.resolve()},i.updatePanelSize=function(){var t=N(this._flicking),e=this._panels;if(e.length<=0)return this;if(t.panelsPerView>0){var r=e[0];r.resize(),this._updatePanelSizeByGrid(r,e)}else t.panels.forEach(function(o){return o.resize()});return this},i.batchInsert=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=this.batchInsertDefer.apply(this,J(t));return r.length<=0?[]:(this.updateAfterPanelChange(r,[]),r)},i.batchInsertDefer=function(){for(var t=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=this._panels,a=N(this._flicking),s=o[0],u=Tt(this._align),c=e.reduce(function(f,h){var v,d=St(h.index,o.length),p=o.slice(d),g=h.elements.map(function(_,y){return t._createPanel(_,{index:d+y,align:u,flicking:a})});if(o.splice.apply(o,J([d,0],g)),h.hasDOMInElements&&t._insertPanelElements(g,(v=p[0])!==null&&v!==void 0?v:null),a.panelsPerView>0){var m=s||g[0].resize();t._updatePanelSizeByGrid(m,g)}else g.forEach(function(_){return _.resize()});return p.forEach(function(_){_.increaseIndex(g.length),_.updatePosition()}),J(f,g)},[]);return c},i.batchRemove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=this.batchRemoveDefer.apply(this,J(t));return r.length<=0?[]:(this.updateAfterPanelChange([],r),r)},i.batchRemoveDefer=function(){for(var t=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=this._panels,a=N(this._flicking),s=a.control,u=s.activePanel,c=e.reduce(function(f,h){var v=h.index,d=h.deleteCount,p=St(v,o.length),g=o.slice(p+d),m=o.splice(p,d);return m.length<=0?[]:(g.forEach(function(_){_.decreaseIndex(m.length),_.updatePosition()}),h.hasDOMInElements&&t._removePanelElements(m),m.forEach(function(_){return _.destroy()}),Ct(m,u)&&s.resetActive(),J(f,m))},[]);return c},i.updateAfterPanelChange=function(t,e){var r,o=N(this._flicking),a=o.camera,s=o.control,u=this._panels,c=s.activePanel;if(this._updateCameraAndControl(),this.render(),!o.animating)if(!c||c.removed)if(u.length<=0)a.lookAt(0);else{var f=(r=c?.index)!==null&&r!==void 0?r:0;f>u.length-1&&(f=u.length-1),s.moveToPanel(u[f],{duration:0}).catch(function(){})}else s.moveToPanel(c,{duration:0}).catch(function(){});o.camera.updateOffset(),(t.length>0||e.length>0)&&(o.trigger(new V(B.PANEL_CHANGE,{added:t,removed:e})),this.checkPanelContentsReady(J(t,e)))},i.checkPanelContentsReady=function(t){var e=this,r=N(this._flicking),o=r.resizeOnContentsReady,a=this._panels;if(!(!o||r.virtualEnabled)){var s=function(c){return c.element&&!!c.element.querySelector("img, video")};if(t=t.filter(function(c){return s(c)}),!(t.length<=0)){var u=new fl;t.forEach(function(c){c.loading=!0}),u.on("readyElement",function(c){if(!e._flicking){u.destroy();return}var f=t[c.index],h=r.camera,v=r.control,d=v.activePanel?h.getProgressInPanel(v.activePanel):0;f.loading=!1,f.resize(),a.slice(f.index+1).forEach(function(p){return p.updatePosition()}),r.initialized&&(h.updateRange(),h.updateOffset(),h.updateAnchors(),v.animating||(v.updatePosition(d),v.updateInput()))}),u.on("preReady",function(c){e._flicking&&e.render(),c.readyCount===c.totalCount&&u.destroy()}),u.on("ready",function(){e._flicking&&e.render(),u.destroy()}),u.check(t.map(function(c){return c.element}))}}},i._updateCameraAndControl=function(){var t=N(this._flicking),e=t.camera,r=t.control;e.updateRange(),e.updateOffset(),e.updateAnchors(),e.resetNeedPanelHistory(),r.updateInput()},i._showOnlyVisiblePanels=function(t){var e=t.renderer.panels,r=t.camera,o=r.visiblePanels.reduce(function(a,s){return a[s.index]=!0,a},{});e.forEach(function(a){a.index in o||a.loading?a.markForShow():t.holding||a.markForHide()})},i._updatePanelSizeByGrid=function(t,e){var r=N(this._flicking),o=r.panelsPerView;if(o<=0)throw new W(U.WRONG_OPTION("panelsPerView",o),G.WRONG_OPTION);if(!(e.length<=0)){var a=r.camera.size,s=t.margin.prev+t.margin.next,u=(a-s*(o-1))/o,c=r.horizontal?{width:u}:{height:u},f=ne({size:u,margin:t.margin},!r.horizontal&&{height:t.height});r.noPanelStyleOverride||this._strategy.updatePanelSizes(r,c),r.panels.forEach(function(h){return h.resize(f)})}},i._removeAllChildsFromCamera=function(){for(var t=N(this._flicking),e=t.camera.element;e.firstChild;)e.removeChild(e.firstChild)},i._insertPanelElements=function(t,e){e===void 0&&(e=null);var r=N(this._flicking),o=r.camera,a=o.element,s=e?.element||null,u=document.createDocumentFragment();t.forEach(function(c){return u.appendChild(c.element)}),a.insertBefore(u,s)},i._removePanelElements=function(t){var e=N(this._flicking),r=e.camera.element;t.forEach(function(o){r.removeChild(o.element)})},i._afterRender=function(){var t=N(this._flicking);t.camera.applyTransform()},n}(),Dl=function(n){te(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}var t=i.prototype;return t.render=function(){return De(this,void 0,void 0,function(){var e,r;return Me(this,function(o){return e=N(this._flicking),r=this._strategy,r.updateRenderingPanels(e),r.renderPanels(e),this._resetPanelElementOrder(),this._afterRender(),[2]})})},t._collectPanels=function(){var e=N(this._flicking),r=e.camera;this._removeAllTextNodes(),this._panels=this._strategy.collectPanels(e,r.children)},t._createPanel=function(e,r){return this._strategy.createPanel(e,r)},t._resetPanelElementOrder=function(){var e=N(this._flicking),r=e.camera.element,o=this._strategy.getRenderingElementsByOrder(e).reverse();o.forEach(function(a,s){var u=o[s-1]?o[s-1]:null;a.nextElementSibling!==u&&r.insertBefore(a,u)})},t._removeAllTextNodes=function(){var e=N(this._flicking),r=e.camera.element;Ln(r.childNodes).forEach(function(o){o.nodeType===Node.TEXT_NODE&&r.removeChild(o)})},i}(Yi),Ml=function(n){te(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}var t=i.prototype;return t._removePanelElements=function(e){},t._removeAllChildsFromCamera=function(){},i}(Yi),bn=function(){function n(t){var e=t.index,r=t.align,o=t.flicking,a=t.elementProvider;this._index=e,this._flicking=o,this._elProvider=a,this._align=r,this._removed=!1,this._rendered=!0,this._loading=!1,this._resetInternalStates()}var i=n.prototype;return Object.defineProperty(i,"element",{get:function(){return this._elProvider.element},enumerable:!1,configurable:!0}),Object.defineProperty(i,"elementProvider",{get:function(){return this._elProvider},enumerable:!1,configurable:!0}),Object.defineProperty(i,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(i,"position",{get:function(){return this._pos+this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(i,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(i,"sizeIncludingMargin",{get:function(){return this._size+this._margin.prev+this._margin.next},enumerable:!1,configurable:!0}),Object.defineProperty(i,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),Object.defineProperty(i,"margin",{get:function(){return this._margin},enumerable:!1,configurable:!0}),Object.defineProperty(i,"alignPosition",{get:function(){return this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(i,"removed",{get:function(){return this._removed},enumerable:!1,configurable:!0}),Object.defineProperty(i,"rendered",{get:function(){return this._rendered},enumerable:!1,configurable:!0}),Object.defineProperty(i,"loading",{get:function(){return this._loading},set:function(t){this._loading=t},enumerable:!1,configurable:!0}),Object.defineProperty(i,"range",{get:function(){return{min:this._pos,max:this._pos+this._size}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"toggled",{get:function(){return this._toggled},enumerable:!1,configurable:!0}),Object.defineProperty(i,"toggleDirection",{get:function(){return this._toggleDirection},enumerable:!1,configurable:!0}),Object.defineProperty(i,"offset",{get:function(){var t=this._toggleDirection,e=this._flicking.camera.rangeDiff;return t===F.NONE||!this._toggled?0:t===F.PREV?-e:e},enumerable:!1,configurable:!0}),Object.defineProperty(i,"progress",{get:function(){var t=this._flicking;return this.index-t.camera.progress},enumerable:!1,configurable:!0}),Object.defineProperty(i,"outsetProgress",{get:function(){var t=this.position+this.offset,e=this._alignPos,r=this._flicking.camera,o=r.position;if(o===t)return 0;if(o<t){var a=t+(r.size-r.alignPosition)+e;return-Rt(o,t,a)}else{var s=t-(r.alignPosition+this._size-e);return 1-Rt(o,s,t)}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"visibleRatio",{get:function(){var t=this.range,e=this._size,r=this.offset,o=this._flicking.camera.visibleRange,a={min:t.min+r,max:t.max+r};if(a.max<=o.min||a.min>=o.max)return 0;var s=e;return o.min>a.min&&(s-=o.min-a.min),o.max<a.max&&(s-=a.max-o.max),s/e},enumerable:!1,configurable:!0}),Object.defineProperty(i,"align",{get:function(){return this._align},set:function(t){this._align=t,this._updateAlignPos()},enumerable:!1,configurable:!0}),i.markForShow=function(){this._rendered=!0,this._elProvider.show(this._flicking)},i.markForHide=function(){this._rendered=!1,this._elProvider.hide(this._flicking)},i.resize=function(t){var e,r=this.element,o=this._flicking,a=o.horizontal,s=o.useFractionalSize;if(t)this._size=t.size,this._margin=ne({},t.margin),this._height=(e=t.height)!==null&&e!==void 0?e:Qe({el:r,horizontal:!1,useFractionalSize:s,useOffset:!0,style:kt(r)});else{var u=kt(r);this._size=Qe({el:r,horizontal:a,useFractionalSize:s,useOffset:!0,style:u}),this._margin=a?{prev:parseFloat(u.marginLeft||"0"),next:parseFloat(u.marginRight||"0")}:{prev:parseFloat(u.marginTop||"0"),next:parseFloat(u.marginBottom||"0")},this._height=a?Qe({el:r,horizontal:!1,useFractionalSize:s,useOffset:!0,style:u}):this._size}return this.updatePosition(),this._updateAlignPos(),this},i.setSize=function(t){return Ui(this.element,t),this},i.contains=function(t){var e;return!!(!((e=this.element)===null||e===void 0)&&e.contains(t))},i.destroy=function(){this._resetInternalStates(),this._removed=!0},i.includePosition=function(t,e){return e===void 0&&(e=!1),this.includeRange(t,t,e)},i.includeRange=function(t,e,r){r===void 0&&(r=!1);var o=this._margin,a=this.range;return r&&(a.min-=o.prev,a.max+=o.next),e>=a.min&&t<=a.max},i.isVisibleOnRange=function(t,e){var r=this.range;return e>r.min&&t<r.max},i.focus=function(t){return this._flicking.moveTo(this._index,t)},i.prev=function(){var t=this._index,e=this._flicking,r=e.renderer,o=r.panelCount;return o===1?null:e.circularEnabled?r.getPanel(t===0?o-1:t-1):r.getPanel(t-1)},i.next=function(){var t=this._index,e=this._flicking,r=e.renderer,o=r.panelCount;return o===1?null:e.circularEnabled?r.getPanel(t===o-1?0:t+1):r.getPanel(t+1)},i.increaseIndex=function(t){return this._index+=Math.max(t,0),this},i.decreaseIndex=function(t){return this._index-=Math.max(t,0),this},i.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},i.toggle=function(t,e){var r=this._toggleDirection,o=this._togglePosition;if(r===F.NONE||e===t)return!1;var a=this._toggled;return e>t?o>=t&&o<=e&&(this._toggled=r===F.NEXT):o<=t&&o>=e&&(this._toggled=r!==F.NEXT),a!==this._toggled},i.updateCircularToggleDirection=function(){var t=this._flicking;if(!t.circularEnabled)return this._toggleDirection=F.NONE,this._togglePosition=0,this._toggled=!1,this;var e=t.camera,r=e.range,o=e.alignPosition,a=e.visibleRange,s=a.max-a.min,u=r.min-o,c=r.max-o+s,f=this.includeRange(c-s,c,!1),h=this.includeRange(u,u+s,!1);return this._toggled=!1,f?(this._toggleDirection=F.PREV,this._togglePosition=this.range.max+r.min-r.max+o,this.toggle(1/0,e.position)):h?(this._toggleDirection=F.NEXT,this._togglePosition=this.range.min+r.max-s+o,this.toggle(-1/0,e.position)):(this._toggleDirection=F.NONE,this._togglePosition=0),this},i._updateAlignPos=function(){this._alignPos=Vn(this._align,this._size)},i._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=F.NONE},n}(),Ki=function(){function n(t){var e=t.providerCtor;this._providerCtor=e}var i=n.prototype;return i.renderPanels=function(){},i.getRenderingIndexesByOrder=function(t){var e=t.renderer.panels.filter(function(s){return s.rendered}),r=e.filter(function(s){return s.toggled&&s.toggleDirection===F.PREV}),o=e.filter(function(s){return s.toggled&&s.toggleDirection===F.NEXT}),a=e.filter(function(s){return!s.toggled});return J(r,a,o).map(function(s){return s.index})},i.getRenderingElementsByOrder=function(t){var e=t.panels;return this.getRenderingIndexesByOrder(t).map(function(r){return e[r].element})},i.updateRenderingPanels=function(t){t.renderOnlyVisible?this._showOnlyVisiblePanels(t):t.panels.forEach(function(e){return e.markForShow()})},i.collectPanels=function(t,e){var r=this,o=Tt(t.renderer.align);return e.map(function(a,s){return new bn({index:s,elementProvider:new r._providerCtor(a),align:o,flicking:t})})},i.createPanel=function(t,e){return new bn(ne(ne({},e),{elementProvider:new this._providerCtor(t)}))},i.updatePanelSizes=function(t,e){t.panels.forEach(function(r){return r.setSize(e)})},i._showOnlyVisiblePanels=function(t){var e=t.renderer.panels,r=t.camera,o=r.visiblePanels.reduce(function(a,s){return a[s.index]=!0,a},{});e.forEach(function(a){a.index in o||a.loading?a.markForShow():t.holding||a.markForHide()}),r.updateOffset()},n}(),Fr=function(n){te(i,n);function i(e){var r=n.call(this,e)||this;return e.elementProvider.init(r),r._elProvider=e.elementProvider,r._cachedInnerHTML=null,r}var t=i.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,r=e.panelsPerView+1,o=e.panelCount,a=this._index;return this._toggled&&(a=this._toggleDirection===F.NEXT?a+o:a-o),Xi(a,r)},enumerable:!1,configurable:!0}),t.cacheRenderResult=function(e){this._cachedInnerHTML=e},t.uncacheRenderResult=function(){this._cachedInnerHTML=null},t.render=function(){var e=this._flicking,r=e.virtual,o=r.renderPanel,a=r.cache,s=this._elProvider.element,u=this._cachedInnerHTML||o(this,this._index);u!==s.innerHTML&&(s.innerHTML=u,a&&this.cacheRenderResult(u))},t.increaseIndex=function(e){return this.uncacheRenderResult(),n.prototype.increaseIndex.call(this,e)},t.decreaseIndex=function(e){return this.uncacheRenderResult(),n.prototype.decreaseIndex.call(this,e)},i}(bn),Zi=function(){function n(){}var i=n.prototype;return i.renderPanels=function(t){var e=t.virtual,r=t.visiblePanels,o=ot(t.panelsPerView+1);r.forEach(function(a){var s=a.elementIndex;a.render(),e.show(s),o[s]=-1}),o.filter(function(a){return a>=0}).forEach(function(a){e.hide(a)})},i.getRenderingIndexesByOrder=function(t){var e=t.virtual,r=J(t.visiblePanels).filter(function(s){return s.rendered}).sort(function(s,u){return s.position+s.offset-(u.position+u.offset)});if(r.length<=0)return e.elements.map(function(s,u){return u});var o=r.map(function(s){return s.elementIndex}),a=e.elements.map(function(s,u){return ne(ne({},s),{idx:u})}).filter(function(s){return!s.visible}).map(function(s){return s.idx});return J(o,a)},i.getRenderingElementsByOrder=function(t){var e=t.virtual,r=e.elements;return this.getRenderingIndexesByOrder(t).map(function(o){return r[o].nativeElement})},i.updateRenderingPanels=function(t){var e=t.renderer.panels,r=t.camera,o=r.visiblePanels.reduce(function(a,s){return a[s.index]=!0,a},{});e.forEach(function(a){a.index in o||a.loading?a.markForShow():a.markForHide()}),r.updateOffset()},i.collectPanels=function(t){var e=Tt(t.renderer.align);return ot(t.virtual.initialPanelCount).map(function(r){return new Fr({index:r,elementProvider:new Br(t),align:e,flicking:t})})},i.createPanel=function(t,e){return new Fr(ne(ne({},e),{elementProvider:new Br(e.flicking)}))},i.updatePanelSizes=function(t,e){t.virtual.elements.forEach(function(r){Ui(r.nativeElement,e)}),t.panels.forEach(function(r){return r.setSize(e)})},n}(),Ji=function(n){te(i,n);function i(e,r){var o=r===void 0?{}:r,a=o.align,s=a===void 0?ce.CENTER:a,u=o.defaultIndex,c=u===void 0?0:u,f=o.horizontal,h=f===void 0?!0:f,v=o.circular,d=v===void 0?!1:v,p=o.circularFallback,g=p===void 0?Hi.LINEAR:p,m=o.bound,_=m===void 0?!1:m,y=o.adaptive,b=y===void 0?!1:y,E=o.panelsPerView,x=E===void 0?-1:E,C=o.noPanelStyleOverride,I=C===void 0?!1:C,O=o.resizeOnContentsReady,R=O===void 0?!1:O,T=o.nested,D=T===void 0?!1:T,A=o.needPanelThreshold,$=A===void 0?0:A,z=o.preventEventsBeforeInit,H=z===void 0?!0:z,w=o.deceleration,P=w===void 0?.0075:w,S=o.duration,Y=S===void 0?500:S,M=o.easing,L=M===void 0?function(xo){return 1-Math.pow(1-xo,3)}:M,ie=o.inputType,Ce=ie===void 0?["mouse","touch"]:ie,ut=o.moveType,io=ut===void 0?"snap":ut,Gn=o.threshold,oo=Gn===void 0?40:Gn,Wn=o.interruptable,ao=Wn===void 0?!0:Wn,Un=o.bounce,so=Un===void 0?"20%":Un,Xn=o.iOSEdgeSwipeThreshold,lo=Xn===void 0?30:Xn,Yn=o.preventClickOnDrag,uo=Yn===void 0?!0:Yn,Kn=o.preventDefaultOnDrag,co=Kn===void 0?!1:Kn,Zn=o.disableOnInit,fo=Zn===void 0?!1:Zn,Jn=o.changeOnHold,ho=Jn===void 0?!1:Jn,Qn=o.renderOnlyVisible,vo=Qn===void 0?!1:Qn,qn=o.virtual,er=qn===void 0?null:qn,tr=o.autoInit,po=tr===void 0?!0:tr,nr=o.autoResize,go=nr===void 0?!0:nr,rr=o.useResizeObserver,mo=rr===void 0?!0:rr,ir=o.resizeDebounce,_o=ir===void 0?0:ir,or=o.maxResizeDebounce,yo=or===void 0?100:or,ar=o.useFractionalSize,bo=ar===void 0?!1:ar,sr=o.externalRenderer,Eo=sr===void 0?null:sr,lr=o.renderExternal,Po=lr===void 0?null:lr,k=n.call(this)||this;return k._initialized=!1,k._plugins=[],k._align=s,k._defaultIndex=c,k._horizontal=h,k._circular=d,k._circularFallback=g,k._bound=_,k._adaptive=b,k._panelsPerView=x,k._noPanelStyleOverride=I,k._resizeOnContentsReady=R,k._nested=D,k._virtual=er,k._needPanelThreshold=$,k._preventEventsBeforeInit=H,k._deceleration=P,k._duration=Y,k._easing=L,k._inputType=Ce,k._moveType=io,k._threshold=oo,k._interruptable=ao,k._bounce=so,k._iOSEdgeSwipeThreshold=lo,k._preventClickOnDrag=uo,k._preventDefaultOnDrag=co,k._disableOnInit=fo,k._changeOnHold=ho,k._renderOnlyVisible=vo,k._autoInit=po,k._autoResize=go,k._useResizeObserver=mo,k._resizeDebounce=_o,k._maxResizeDebounce=yo,k._useFractionalSize=bo,k._externalRenderer=Eo,k._renderExternal=Po,k._viewport=new yl(k,hl(e)),k._autoResizer=new bl(k),k._renderer=k._createRenderer(),k._camera=k._createCamera(),k._control=k._createControl(),k._virtualManager=new Pl(k,er),k._autoInit&&k.init(),k}var t=i.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,"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},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 r=this._control.controller.axes;r&&(r.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 r=this._control.controller.axes;r&&(r.options.deceleration=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"easing",{get:function(){return this._easing},set:function(e){this._easing=e;var r=this._control.controller.axes;r&&(r.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 r=this._control.controller.panInput;r&&(r.options.inputType=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"moveType",{get:function(){return this._moveType},set:function(e){this._moveType=e;var r=this._control,o=this._createControl(),a=r.activePanel;o.copy(r);var s=a?this._camera.getProgressInPanel(a):0;this._control=o,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,"interruptable",{get:function(){return this._interruptable},set:function(e){this._interruptable=e;var r=this._control.controller.axes;r&&(r.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 r=this._control.controller.panInput;r&&(r.options.iOSEdgeSwipeThreshold=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventClickOnDrag",{get:function(){return this._preventClickOnDrag},set:function(e){var r=this._preventClickOnDrag;if(e!==r){var o=this._control.controller;e?o.addPreventClickHandler():o.removePreventClickHandler(),this._preventClickOnDrag=e}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventDefaultOnDrag",{get:function(){return this._preventDefaultOnDrag},set:function(e){this._preventDefaultOnDrag=e;var r=this._control.controller.panInput;r&&(r.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,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._autoResize&&this._autoResizer.enable()},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}),t.init=function(){var e=this;if(this._initialized)return Promise.resolve();var r=this._camera,o=this._renderer,a=this._control,s=this._virtualManager,u=this.trigger,c=this._preventEventsBeforeInit;return r.init(),s.init(),o.init(this),a.init(this),c&&(this.trigger=function(){return e}),this._initialResize(),this._moveToInitialPanel(),this._autoResize&&this._autoResizer.enable(),this._preventClickOnDrag&&a.controller.addPreventClickHandler(),this._disableOnInit&&this.disableInput(),o.checkPanelContentsReady(o.panels),this._initialized=!0,o.render().then(function(){e._plugins.forEach(function(f){return f.init(e)}),c&&(e.trigger=u),e.trigger(new V(B.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._initialized=!1},t.prev=function(e){var r,o,a;return e===void 0&&(e=this._duration),this.moveTo((a=(o=(r=this._control.activePanel)===null||r===void 0?void 0:r.prev())===null||o===void 0?void 0:o.index)!==null&&a!==void 0?a:-1,e,F.PREV)},t.next=function(e){var r,o,a;return e===void 0&&(e=this._duration),this.moveTo((a=(o=(r=this._control.activePanel)===null||r===void 0?void 0:r.next())===null||o===void 0?void 0:o.index)!==null&&a!==void 0?a:this._renderer.panelCount,e,F.NEXT)},t.moveTo=function(e,r,o){r===void 0&&(r=this._duration),o===void 0&&(o=F.NONE);var a=this._renderer,s=a.panelCount,u=a.getPanel(e);return u?this._control.animating?Promise.reject(new W(U.ANIMATION_ALREADY_PLAYING,G.ANIMATION_ALREADY_PLAYING)):(this._control.holding&&this._control.controller.release(),this._control.moveToPanel(u,{duration:r,direction:o})):Promise.reject(new W(U.INDEX_OUT_OF_RANGE(e,0,s-1),G.INDEX_OUT_OF_RANGE))},t.updateAnimation=function(e,r,o){if(this._control.animating){var a=this._renderer,s=a.panelCount,u=a.getPanel(e);if(!u)throw new W(U.INDEX_OUT_OF_RANGE(e,0,s-1),G.INDEX_OUT_OF_RANGE);this._control.updateAnimation(u,r,o)}},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 r,o,a=e===void 0?{}:e,s=a.index,u=s===void 0?!0:s,c=a.position,f=c===void 0?!0:c,h=a.includePanelHTML,v=h===void 0?!1:h,d=a.visiblePanelsOnly,p=d===void 0?!1:d,g=this._camera,m=p?this.visiblePanels:this.panels,_={panels:m.map(function(E){var x={index:E.index};return v&&(x.html=E.element.outerHTML),x})};if(u&&(_.index=this.index),f){var y=g.findNearestAnchor(g.position);y&&(_.position={panel:y.panel.index,progressInPanel:g.getProgressInPanel(y.panel)})}if(p){var b=this.visiblePanels;_.visibleOffset=(o=(r=b[0])===null||r===void 0?void 0:r.index)!==null&&o!==void 0?o:0}return _},t.setStatus=function(e){var r;if(!this._initialized)throw new W(U.NOT_INITIALIZED,G.NOT_INITIALIZED);var o=e.index,a=e.position,s=e.visibleOffset,u=e.panels,c=this._renderer,f=this._control;if(!((r=u[0])===null||r===void 0)&&r.html&&!this._renderExternal&&(c.batchRemove({index:0,deleteCount:this.panels.length,hasDOMInElements:!0}),c.batchInsert({index:0,elements:zr(u.map(function(m){return m.html})),hasDOMInElements:!0})),o!=null){var h=s?o-s:o;this.moveTo(h,0).catch(function(){})}if(a&&this._moveType===Re.FREE_SCROLL){var v=a.panel,d=a.progressInPanel,h=s?v-s:v,p=c.panels[h].range,g=p.min+(p.max-p.min)*d;f.moveToPosition(g,0).catch(function(){})}},t.addPlugins=function(){for(var e,r=this,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return this._initialized&&o.forEach(function(s){return s.init(r)}),(e=this._plugins).push.apply(e,J(o)),this},t.removePlugins=function(){for(var e=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.forEach(function(a){var s=ml(e._plugins,function(u){return u===a});s>=0&&(a.destroy(),e._plugins.splice(s,1))}),this},t.resize=function(){return De(this,void 0,void 0,function(){var e,r,o,a,s,u,c,f,h,v,d;return Me(this,function(p){switch(p.label){case 0:return e=this._viewport,r=this._renderer,o=this._camera,a=this._control,s=a.activePanel,u=e.width,c=e.height,f=s?o.getProgressInPanel(s):0,this.trigger(new V(B.BEFORE_RESIZE,{width:u,height:c,element:e.element})),e.resize(),[4,r.forceRenderAllPanels()];case 1:return p.sent(),r.updatePanelSize(),o.updateAlignPos(),o.updateRange(),o.updateAnchors(),o.updateAdaptiveHeight(),o.updatePanelOrder(),o.updateOffset(),[4,r.render()];case 2:return p.sent(),a.animating||(a.updatePosition(f),a.updateInput()),h=e.width,v=e.height,d=h!==u||v!==c,this.trigger(new V(B.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:u,height:c},sizeChanged:d,element:e.element})),[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,r){if(this._renderExternal)throw new W(U.NOT_ALLOWED_IN_FRAMEWORK,G.NOT_ALLOWED_IN_FRAMEWORK);return this._renderer.batchInsert({index:e,elements:zr(r),hasDOMInElements:!0})},t.remove=function(e,r){if(r===void 0&&(r=1),this._renderExternal)throw new W(U.NOT_ALLOWED_IN_FRAMEWORK,G.NOT_ALLOWED_IN_FRAMEWORK);return this._renderer.batchRemove({index:e,deleteCount:r,hasDOMInElements:!0})},t._createControl=function(){var e,r=this._moveType,o=Object.keys(Re).map(function(u){return Re[u]}),a=Array.isArray(r)?r[0]:r,s=Array.isArray(r)?(e=r[1])!==null&&e!==void 0?e:{}:{};if(!Ct(o,a))throw new W(U.WRONG_OPTION("moveType",JSON.stringify(r)),G.WRONG_OPTION);switch(a){case Re.SNAP:return new Rl(s);case Re.FREE_SCROLL:return new kl(s);case Re.STRICT:return new Il(s)}},t._createCamera=function(){return this._circular&&this._bound&&console.warn('"circular" and "bound" option cannot be used together, ignoring bound.'),new Al(this,{align:this._align})},t._createRenderer=function(){var e=this._externalRenderer;return 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,r=e.renderer,o=e.rendererOptions;return new r(ne({align:this._align},o))},t._createVanillaRenderer=function(){var e=this.virtualEnabled;return new Dl({align:this._align,strategy:e?new Zi:new Ki({providerCtor:El})})},t._moveToInitialPanel=function(){var e=this._renderer,r=this._control,o=this._camera,a=e.getPanel(this._defaultIndex)||e.getPanel(0);if(a){var s=o.findNearestAnchor(a.position),u=s&&a.index!==s.panel.index?s.panel:a;if(r.setActive(u,null,!1),!s)throw new W(U.POSITION_NOT_REACHABLE(u.position),G.POSITION_NOT_REACHABLE);var c=u.position;o.canReach(u)||(c=s.position),o.lookAt(c),r.updateInput(),o.updateOffset()}},t._initialResize=function(){var e=this._viewport,r=this._renderer,o=this._camera,a=this._control;this.trigger(new V(B.BEFORE_RESIZE,{width:0,height:0,element:e.element})),e.resize(),r.updatePanelSize(),o.updateAlignPos(),o.updateRange(),o.updateAnchors(),o.updateOffset(),a.updateInput();var s=e.width,u=e.height,c=s!==0||u!==0;this.trigger(new V(B.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:0,height:0},sizeChanged:c,element:e.element}))},i.VERSION="4.11.1",i}(Se),zl=function(n,i){[Se.prototype,Ji.prototype].forEach(function(t){Object.getOwnPropertyNames(t).filter(function(e){return!n[e]&&e.indexOf("_")!==0&&e!=="constructor"}).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);if(r.value)Object.defineProperty(n,e,{value:function(){for(var a,s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return(a=r.value).call.apply(a,J([this[i]],s))}});else{var o={};r.get&&(o.get=function(){var a,s=this[i];return s&&((a=r.get)===null||a===void 0?void 0:a.call(s))}),r.set&&(o.set=function(){for(var a,s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return(a=r.set)===null||a===void 0?void 0:a.call.apply(a,J([this[i]],s))}),Object.defineProperty(n,e,o)}})})},Bl=function(n,i,t){var e=n.renderer,r=e.panels,o=J(i.prevList),a=[],s=[];if(i.removed.length>0){var u=-1,c=-1;i.removed.forEach(function(d){u<0&&(u=d),c>=0&&d!==c-1&&(s.push.apply(s,J(Hr(e,c,u+1))),u=d),c=d,o.splice(d,1)}),s.push.apply(s,J(Hr(e,c,u+1)))}if(i.ordered.forEach(function(d){var p=Bn(d,2),g=p[0],m=p[1],_=r.splice(g,1)[0];r.splice(m,0,_)}),i.ordered.length>0&&(r.forEach(function(d,p){var g=p-d.index;g>0?d.increaseIndex(g):d.decreaseIndex(-g)}),r.sort(function(d,p){return d.index-p.index}),r.forEach(function(d){d.updatePosition()})),i.added.length>0){var f=-1,h=-1,v=t.slice(o.length);i.added.forEach(function(d,p){f<0&&(f=p),h>=0&&d!==h+1?(a.push.apply(a,J($r(e,i,v,f,p+1))),f=-1,h=-1):h=d}),f>=0&&a.push.apply(a,J($r(e,i,v,f)))}(i.added.length>0||i.removed.length>0)&&e.updateAfterPanelChange(a,s)},$r=function(n,i,t,e,r){return n.batchInsertDefer.apply(n,J(i.added.slice(e,r).map(function(o,a){return{index:o,elements:[t[a]],hasDOMInElements:!1}})))},Hr=function(n,i,t){var e=n.panels.slice(i,t);return n.batchRemoveDefer({index:i,deleteCount:e.length,hasDOMInElements:!1})},Ll=function(n,i){var t=i.removed.reduce(function(r,o){return r[o]=!0,r},{}),e=i.maintained.reduce(function(r,o){var a=Bn(o,2),s=a[0],u=a[1];return r[s]=u,r},{});return J(n.panels.filter(function(r){return!t[r.index]}).sort(function(r,o){return r.position+r.offset-(o.position+o.offset)}).map(function(r){return i.list[e[r.index]]}),i.added.map(function(r){return i.list[r]}))},Vl=function(n,i,t){n===void 0&&(n=ce.CENTER),i===void 0&&(i=!0);var e=jl(n),r=Fl(n);if(r==null)return"";var o="calc("+e+" - ("+(t||"0px")+" * "+r.percentage+") - "+r.absolute+"px)";return i?"translate("+o+")":"translate(0, "+o+")"},jl=function(n){var i=typeof n=="object"?n.camera:n;return Qi(i)},Fl=function(n){var i=typeof n=="object"?n.panel:n;return Gi(Qi(i))},Qi=function(n){if(typeof n=="number")return n+"px";switch(n){case ce.CENTER:return"50%";case ce.NEXT:return"100%";case ce.PREV:return"0%";default:return n}};/*! *****************************************************************************
|
|
42
42
|
Copyright (c) Microsoft Corporation.
|
|
43
43
|
|
|
44
44
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -51,4 +51,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
51
51
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
52
52
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
53
53
|
PERFORMANCE OF THIS SOFTWARE.
|
|
54
|
-
***************************************************************************** */var bn=function(n,i){return bn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},bn(n,i)};function Fl(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");bn(n,i);function t(){this.constructor=n}n.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}var kt=function(){return kt=Object.assign||function(i){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=t[o])}return i},kt.apply(this,arguments)};function $l(n,i){var t={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&i.indexOf(e)<0&&(t[e]=n[e]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,e=Object.getOwnPropertySymbols(n);r<e.length;r++)i.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(n,e[r])&&(t[e[r]]=n[e[r]]);return t}function Hr(n,i,t,e){function r(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(f){try{c(e.next(f))}catch(h){a(h)}}function u(f){try{c(e.throw(f))}catch(h){a(h)}}function c(f){f.done?o(f.value):r(f.value).then(s,u)}c((e=e.apply(n,i||[])).next())})}function Gr(n,i){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},e,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(f){return u([c,f])}}function u(c){if(e)throw new TypeError("Generator is already executing.");for(;t;)try{if(e=1,r&&(o=c[0]&2?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,r=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){t.label=c[1];break}if(c[0]===6&&t.label<o[1]){t.label=o[1],o=c;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(c);break}o[2]&&t.ops.pop(),t.trys.pop();continue}c=i.call(n,t)}catch(f){c=[6,f],r=0}finally{e=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Kt(n,i,t){if(t||arguments.length===2)for(var e=0,r=i.length,o;e<r;e++)(o||!(e in i))&&(o||(o=Array.prototype.slice.call(i,0,e)),o[e]=i[e]);return n.concat(o||Array.prototype.slice.call(i))}var Hl={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}},Gl=function(n){Fl(i,n);function i(e){var r=n.call(this,e)||this;return r._vueFlicking=e.vueFlicking,r}var t=i.prototype;return t.render=function(){return Hr(this,void 0,void 0,function(){var e,r,o,a=this;return Gr(this,function(s){return e=A(this._flicking),r=this._vueFlicking,o=this._strategy,o.updateRenderingPanels(e),o.renderPanels(e),[2,new Promise(function(u){r.renderEmitter.once("render",function(){a._afterRender(),u()}),r.$forceUpdate()})]})})},t.forceRenderAllPanels=function(){return Hr(this,void 0,void 0,function(){var e;return Gr(this,function(r){switch(r.label){case 0:return e=this._vueFlicking,[4,n.prototype.forceRenderAllPanels.call(this)];case 1:return r.sent(),[2,new Promise(function(o){e.renderEmitter.once("render",o),e.$forceUpdate()})]}})})},t._collectPanels=function(){var e=A(this._flicking),r=this._vueFlicking,o=r.$refs,a=Object.keys(o).map(function(s){return o[s]});this._panels=this._strategy.collectPanels(e,a)},t._createPanel=function(e,r){return this._strategy.createPanel(e,r)},i}(Dl),Wl=l.defineComponent({data:function(){return{hide:!1}},render:function(){if(!(this.hide||!this.$slots.default))return this.$slots.default()}}),Ul=function(){function n(t){this._el=t}var i=n.prototype;return Object.defineProperty(i,"rendered",{get:function(){return!this._el.hide},enumerable:!1,configurable:!0}),Object.defineProperty(i,"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}),i.show=function(){this._el.hide=!1},i.hide=function(){this._el.hide=!0},n}(),En=l.defineComponent({props:Hl,components:{Panel:Wl},data:function(){return{}},created:function(){var n=this;this.vanillaFlicking=null,this.renderEmitter=new Se,this.diffResult=null,this.getPanels=function(){var i=l.getCurrentInstance(),t=i?.ctx,e=n.vanillaFlicking,r=n.getSlots(),o=t?.diffResult,a=o?Bl(e,o):r,s=l.resolveComponent("Panel"),u=a.map(function(c,f){return l.h(s,{key:c.key,ref:f.toString()},function(){return c})});return u},this.getVirtualPanels=function(){var i=n.options,t=i.virtual.panelClass,e=t===void 0?"flicking-panel":t,r=i.panelsPerView,o=n.vanillaFlicking,a=o&&o.initialized,s=a?o.renderer.strategy.getRenderingIndexesByOrder(o):it(r+1),u=a&&o.panels[0],c=u?o.horizontal?{width:u.size}:{height:u.size}:{};return s.map(function(f){return l.h("div",{key:f,ref:f.toString(),class:e,style:c,"data-element-index":f})})},Ml(this,"vanillaFlicking")},mounted:function(){var n=this,i,t=this.options,e=this.$el,r={vueFlicking:this,align:t.align,strategy:t.virtual&&((i=t.panelsPerView)!==null&&i!==void 0?i:-1)>0?new Ki:new Yi({providerCtor:Ul})},o=new Zi(e,kt(kt({},t),{externalRenderer:new Gl(r)}));this.vanillaFlicking=o,o.once(B.READY,function(){n.$forceUpdate()});var a=this.getSlots();this.slotDiffer=new Cr(a,function(s){return s.key}),this.pluginsDiffer=new Cr,this.bindEvents(),this.checkPlugins(),this.status&&o.setStatus(this.status)},beforeUnmount:function(){var n;(n=this.vanillaFlicking)===null||n===void 0||n.destroy()},beforeMount:function(){this.fillKeys()},beforeUpdate:function(){this.fillKeys(),this.diffResult=this.slotDiffer.update(this.getSlots())},updated:function(){var n=this.vanillaFlicking,i=this.diffResult;if(this.checkPlugins(),this.renderEmitter.trigger("render"),!(!i||!n?.initialized)){var t=this.getChildren();zl(n,i,t),(i.added.length>0||i.removed.length>0)&&this.$forceUpdate(),this.diffResult=void 0}},render:function(){var n,i,t=this.vanillaFlicking,e=this.options,r=t&&t.initialized,o=t?t.horizontal:(i=this.options.horizontal)!==null&&i!==void 0?i:!0,a={class:{"flicking-viewport":!0,vertical:!o,"flicking-hidden":this.hideBeforeInit&&!r}},s={class:(n={"flicking-camera":!0},n[this.cameraClass]=!!this.cameraClass,n),style:!r&&this.firstPanelSize?{transform:Ll(this.options.align,this.options.horizontal,this.firstPanelSize)}:{}},u=e.virtual&&e.panelsPerView&&e.panelsPerView>0?this.getVirtualPanels:this.getPanels,c=this.$slots.viewport?this.$slots.viewport():[];return l.h(this.viewportTag,a,Kt([l.h(this.cameraTag,s,{default:u})],c,!0))},methods:{getSlots:function(){var n=this,i=this.$slots.default?this.$slots.default():[];return i.reduce(function(t,e){return Kt(Kt([],t,!0),n.getElementVNodes(e),!0)},[]).filter(function(t){return t.type!==l.Comment&&t.type!==l.Text})},getElementVNodes:function(n,i){var t=this;return i===void 0&&(i=[]),n.type===l.Fragment&&Array.isArray(n.children)?n.children.filter(function(e){return e&&typeof e=="object"}).forEach(function(e){return t.getElementVNodes(e,i)}):i.push(n),i},bindEvents:function(){var n=this,i=this.vanillaFlicking,t=Object.keys(B).map(function(e){return B[e]});t.forEach(function(e){i.on(e,function(r){r.currentTarget=n,n.$emit(e.replace(/([A-Z])/g,"-$1").toLowerCase(),r)})})},checkPlugins:function(){var n,i,t=this.pluginsDiffer.update(this.plugins),e=t.list,r=t.added,o=t.removed,a=t.prevList;(n=this.vanillaFlicking).addPlugins.apply(n,r.map(function(s){return e[s]})),(i=this.vanillaFlicking).removePlugins.apply(i,o.map(function(s){return a[s]}))},fillKeys:function(){var n=this.getSlots();n.forEach(function(i,t){i.key==null&&(i.key="$_".concat(t))})},getChildren:function(){var n=this.$refs;return Object.keys(n).map(function(i){return n[i]})}},watch:{options:{handler:function(n){var i=this.vanillaFlicking;if(i){n.virtual;var t=$l(n,["virtual"]);for(var e in t)e in i&&i[e]!==t[e]&&(i[e]=t[e])}},deep:!0,immediate:!0}}}),$e={TYPE:{CAMERA:"camera",INDEX:"index"}},Xl=function(n,i){if(n)if(n.classList)n.classList.add(i);else{var t=n.className.split(" ");t.indexOf(i)<0&&(n.className=n.className+" "+i)}},Yl=function(n,i){if(n)if(n.classList)n.classList.remove(i);else{var t=new RegExp("( |^)"+i+"( |$)","g");n.className.replace(t," ")}},Qi=function(){function n(t){var e=this,r=t===void 0?{}:t,o=r.type,a=o===void 0?$e.TYPE.CAMERA:o,s=r.synchronizedFlickingOptions,u=s===void 0?[]:s;this._flicking=null,this._addEvents=function(){var c=e._type,f=e._synchronizedFlickingOptions;f.forEach(function(h){var v=h.flicking,d=h.isSlidable,p=h.isClickable;c===$e.TYPE.CAMERA&&(v.on(B.MOVE,e._onMove),v.on(B.MOVE_START,e._onMoveStart),v.on(B.MOVE_END,e._onMoveEnd)),c===$e.TYPE.INDEX&&d&&(v.on(B.WILL_CHANGE,e._onIndexChange),v.on(B.WILL_RESTORE,e._onIndexChange)),p&&v.on(B.SELECT,e._onSelect)})},this._removeEvents=function(){var c=e._type,f=e._synchronizedFlickingOptions;f.forEach(function(h){var v=h.flicking,d=h.isSlidable,p=h.isClickable;c===$e.TYPE.CAMERA&&(v.off(B.MOVE,e._onMove),v.off(B.MOVE_START,e._onMoveStart),v.off(B.MOVE_END,e._onMoveEnd)),c===$e.TYPE.INDEX&&d&&(v.off(B.WILL_CHANGE,e._onIndexChange),v.off(B.WILL_RESTORE,e._onIndexChange)),p&&v.off(B.SELECT,e._onSelect)})},this._onIndexChange=function(c){var f=c.currentTarget;f.initialized&&e._synchronizeByIndex(f,c.index)},this._onMove=function(c){var f=c.currentTarget.camera,h=(f.position-f.range.min)/f.rangeDiff;e._synchronizedFlickingOptions.forEach(function(v){var d=v.flicking;if(d!==c.currentTarget){var p=0;f.position<f.range.min?p=f.position:f.position>f.range.max?p=d.camera.range.max+f.position-f.range.max:p=d.camera.range.min+d.camera.rangeDiff*h,d.camera.lookAt(p)}})},this._onMoveStart=function(c){e._synchronizedFlickingOptions.forEach(function(f){var h=f.flicking;h!==c.currentTarget&&h.disableInput()})},this._onMoveEnd=function(c){e._synchronizedFlickingOptions.forEach(function(f){var h=f.flicking;h!==c.currentTarget&&(h.enableInput(),h.control.updateInput())})},this._onSelect=function(c){c.currentTarget.moveTo(c.index).catch(function(){}),e._synchronizeByIndex(c.currentTarget,c.index)},this._synchronizeByIndex=function(c,f){var h=e._synchronizedFlickingOptions;e._preventEvent(function(){h.forEach(function(v){e._updateClass(v,f);var d=v.flicking;if(d!==c){var p=_e(f,0,d.panels.length);d.animating?d.once(B.MOVE_END,function(){d.moveTo(p).catch(function(){})}):d.moveTo(p)}})})},this._updateClass=function(c,f){var h=c.flicking,v=c.activeClass;v&&h.panels.forEach(function(d){d.index===f?Xl(d.element,v):Yl(d.element,v)})},this._type=a,this._synchronizedFlickingOptions=u}var i=n.prototype;return Object.defineProperty(i,"type",{get:function(){return this._type},set:function(t){this._type=t},enumerable:!1,configurable:!0}),Object.defineProperty(i,"synchronizedFlickingOptions",{get:function(){return this._synchronizedFlickingOptions},set:function(t){this._synchronizedFlickingOptions=t},enumerable:!1,configurable:!0}),i.init=function(t){var e=this,r=this._synchronizedFlickingOptions;this._flicking&&this.destroy(),this._flicking=t,this._addEvents(),r.forEach(function(o){var a=o.flicking;e._updateClass(o,a.defaultIndex)})},i.destroy=function(){var t=this._flicking;t&&(this._removeEvents(),this._flicking=null)},i.update=function(){var t=this;this._synchronizedFlickingOptions.forEach(function(e){t._updateClass(e,e.flicking.index)})},i._preventEvent=function(t){this._removeEvents(),t(),this._addEvents()},n}(),Zt=null;function Kl(n){return Zt||(Zt=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(i){return setTimeout(i,16)}).bind(window)),Zt(n)}var Jt=null;function Zl(n){Jt||(Jt=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(i){clearTimeout(i)}).bind(window)),Jt(n)}function Jl(n){var i=document.createElement("style");return i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),(document.querySelector("head")||document.body).appendChild(i),i}function dt(n,i){i===void 0&&(i={});var t=document.createElement(n);return Object.keys(i).forEach(function(e){t[e]=i[e]}),t}function qi(n,i,t){var e=window.getComputedStyle(n,t||null)||{display:"none"};return e[i]}function Pn(n){if(!document.documentElement.contains(n))return{detached:!0,rendered:!1};for(var i=n;i!==document;){if(qi(i,"display")==="none")return{detached:!1,rendered:!1};i=i.parentNode}return{detached:!1,rendered:!0}}var Ql='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',xn=0,_t=null;function ql(n,i){n.__resize_mutation_handler__||(n.__resize_mutation_handler__=nu.bind(n));var t=n.__resize_listeners__;if(!t){if(n.__resize_listeners__=[],window.ResizeObserver){var e=n.offsetWidth,r=n.offsetHeight,o=new ResizeObserver(function(){!n.__resize_observer_triggered__&&(n.__resize_observer_triggered__=!0,n.offsetWidth===e&&n.offsetHeight===r)||Rt(n)}),a=Pn(n),s=a.detached,u=a.rendered;n.__resize_observer_triggered__=s===!1&&u===!1,n.__resize_observer__=o,o.observe(n)}else if(n.attachEvent&&n.addEventListener)n.__resize_legacy_resize_handler__=function(){Rt(n)},n.attachEvent("onresize",n.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",n.__resize_mutation_handler__);else if(xn||(_t=Jl(Ql)),ru(n),n.__resize_rendered__=Pn(n).rendered,window.MutationObserver){var c=new MutationObserver(n.__resize_mutation_handler__);c.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),n.__resize_mutation_observer__=c}}n.__resize_listeners__.push(i),xn++}function eu(n,i){var t=n.__resize_listeners__;if(t){if(i&&t.splice(t.indexOf(i),1),!t.length||!i){if(n.detachEvent&&n.removeEventListener){n.detachEvent("onresize",n.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",n.__resize_mutation_handler__);return}n.__resize_observer__?(n.__resize_observer__.unobserve(n),n.__resize_observer__.disconnect(),n.__resize_observer__=null):(n.__resize_mutation_observer__&&(n.__resize_mutation_observer__.disconnect(),n.__resize_mutation_observer__=null),n.removeEventListener("scroll",Fn),n.removeChild(n.__resize_triggers__.triggers),n.__resize_triggers__=null),n.__resize_listeners__=null}!--xn&&_t&&_t.parentNode.removeChild(_t)}}function tu(n){var i=n.__resize_last__,t=i.width,e=i.height,r=n.offsetWidth,o=n.offsetHeight;return r!==t||o!==e?{width:r,height:o}:null}function nu(){var n=Pn(this),i=n.rendered,t=n.detached;i!==this.__resize_rendered__&&(!t&&this.__resize_triggers__&&($n(this),this.addEventListener("scroll",Fn,!0)),this.__resize_rendered__=i,Rt(this))}function Fn(){var n=this;$n(this),this.__resize_raf__&&Zl(this.__resize_raf__),this.__resize_raf__=Kl(function(){var i=tu(n);i&&(n.__resize_last__=i,Rt(n))})}function Rt(n){!n||!n.__resize_listeners__||n.__resize_listeners__.forEach(function(i){i.call(n,n)})}function ru(n){var i=qi(n,"position");(!i||i==="static")&&(n.style.position="relative"),n.__resize_old_position__=i,n.__resize_last__={};var t=dt("div",{className:"resize-triggers"}),e=dt("div",{className:"resize-expand-trigger"}),r=dt("div"),o=dt("div",{className:"resize-contract-trigger"});e.appendChild(r),t.appendChild(e),t.appendChild(o),n.appendChild(t),n.__resize_triggers__={triggers:t,expand:e,expandChild:r,contract:o},$n(n),n.addEventListener("scroll",Fn,!0),n.__resize_last__={width:n.offsetWidth,height:n.offsetHeight}}function $n(n){var i=n.__resize_triggers__,t=i.expand,e=i.expandChild,r=i.contract,o=r.scrollWidth,a=r.scrollHeight,s=t.offsetWidth,u=t.offsetHeight,c=t.scrollWidth,f=t.scrollHeight;r.scrollLeft=o,r.scrollTop=a,e.style.width=s+1+"px",e.style.height=u+1+"px",t.scrollLeft=c,t.scrollTop=f}const iu=["aria-label"];var eo=l.defineComponent({__name:"text-clamp",props:{text:{type:String,required:!0},maxHeight:{type:[String,Number],required:!1},maxLines:{type:Number,required:!1},expanded:{type:Boolean,required:!1,default:!1},location:{type:String,required:!1,default:"end"},ellipsis:{type:String,required:!1,default:"…"},autoResize:{type:Boolean,required:!1,default:!1}},emits:["clamp-change","update:expanded"],setup(n,{emit:i}){const t=n,e=l.ref(null),r=l.ref(null),o=l.ref(null),a=l.reactive({offset:0,localExpanded:!!t.expanded,unregisterResizeCallback:null}),s=l.computed(()=>{if(!a.localExpanded&&t.maxHeight)return typeof t?.maxHeight=="number"?`${t?.maxHeight}px`:t?.maxHeight}),u=()=>{o.value&&(o.value.textContent=x.value)},c=()=>{a.localExpanded||(u(),(v()||E.value)&&p())},f=()=>{t.text&&(a.offset=t.text.length,h(),t.autoResize&&e.value&&(ql(e.value,c),a.unregisterResizeCallback=()=>{e.value&&eu(e.value,c)}),c())},h=()=>{a.unregisterResizeCallback?.()},v=()=>!(!t.maxLines&&!t.maxHeight)&&!!e.value&&(!!(t.maxLines&&d()>t.maxLines)||!!(t.maxHeight&&e.value.scrollHeight>e.value.offsetHeight)),d=()=>r.value?Object.keys(Array.prototype.slice.call(r.value.getClientRects()).reduce((T,{top:D,bottom:N})=>{const $=`${D}/${N}`;return T[$]||(T[$]=!0),T},{})).length:0,p=(...T)=>{const[D=0,N=a.offset]=T;if(N-D<=3)return void m();const $=Math.floor((N+D)/2);g($),v()?p(D,$):p($,N)},g=T=>{a.offset=T,u()},m=()=>{_(),y()},_=()=>{for(;(!v()||d()<2)&&a.offset<t.text.length;)b(1)},y=()=>{for(;v()&&d()>1&&a.offset>0;)b(-1)},b=T=>{g(a.offset+T)},E=l.computed(()=>!!t.text&&a.offset!==t.text.length);l.watch(()=>E.value,T=>{setTimeout(()=>{i("clamp-change",T)},0)},{immediate:!0});const x=l.computed(()=>E.value?C.value:t.text),C=l.computed(()=>{if(t.location==="start")return t.ellipsis+(t.text.slice(-a.offset)||"").trim();if(t.location==="middle"){const T=Math.floor(a.offset/2);return(t.text.slice(0,T)||"").trim()+t.ellipsis+(t.text.slice(-T)||"").trim()}return(t.text.slice(0,a.offset)||"").trim()+t.ellipsis}),I=()=>{a.localExpanded=!0},O=()=>{a.localExpanded=!1},k=()=>{a.localExpanded=!a.localExpanded};return l.watch(()=>t.expanded,T=>{a.localExpanded=T}),l.watch(()=>a.localExpanded,T=>{T?g(t.text.length):c(),t.expanded!==T&&i("update:expanded",T)}),l.watch(()=>[t.maxLines,t.maxHeight,t.ellipsis,t.location,E.value].join(),()=>{l.nextTick(()=>{c()})}),l.watch(()=>[t.text,t.autoResize].join(),()=>{l.nextTick(()=>{f()})}),l.onUnmounted(()=>{h()}),l.onMounted(()=>{f()}),(T,D)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"textClampRef",ref:e,class:"text-clamp",style:l.normalizeStyle({overflow:"hidden",maxHeight:l.unref(s)})},[l.createBaseVNode("span",{ref_key:"contentRef",ref:r},[l.renderSlot(T.$slots,"before",{expand:I,collapse:O,toggle:k,clamped:l.unref(E),expanded:a.localExpanded}),l.createBaseVNode("span",{ref_key:"textRef",ref:o,"aria-label":n.text},null,8,iu),l.renderSlot(T.$slots,"after",{expand:I,collapse:O,toggle:k,clamped:l.unref(E),expanded:a.localExpanded})],512)],4))}});eo.__file="package/text-clamp.vue";const ou=n=>(n.install=function(i){i.component(n.__name,n)},n),au=ou(eo),su={key:0,class:"booking-availability-listing-featured"},lu=["src"],uu={class:"booking-availability-listing-content"},cu={class:"booking-availability-listing-details"},fu=["title"],du={class:"fresh-booking-listing-sub-title"},hu={key:0},vu={key:1},pu={class:"booking-availability-listing-description"},gu={key:0},mu=["onClick"],_u={key:0},yu={key:1},bu=["innerHTML"],Eu={key:0,class:"booking-availability-listing-details-facilities"},Pu={class:"booking-availability-listing-action"},xu=l.defineComponent({name:"BaseListing",__name:"Base",props:{name:{},description:{},listingId:{},includesBreakfast:{type:Boolean,default:!1},gallery:{},layout:{default:l.BookingLayout.Selective},pricesFrom:{},trackingEnabled:{type:Boolean,default:!1},facilities:{},callback:{}},setup(n){const{t:i}=l.useI18n(),t=n,{disablePricesFrom:e,currency:r}=l.useUtilityStore(),o=l.ref(!e&&!!t.pricesFrom),a=l.ref(),s=l.ref(),u=l.ref();function c(f){let h="";return f.forEach(({name:v})=>{h+=`<li>${v}</li>`}),`<ul>${h}</ul>`}return l.onMounted(()=>{u.value=[new Qi({type:"index",synchronizedFlickingOptions:[{flicking:a.value,isSlidable:!0},{flicking:s.value,isClickable:!0,activeClass:"active"}]})]}),(f,h)=>{const v=l.resolveDirective("tooltip");return l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(["booking-availability-listing",{"no-gallery":!f.gallery||f.gallery.length<2}])},[f.gallery?(l.openBlock(),l.createElementBlock("div",su,[f.gallery.length===1?(l.openBlock(),l.createBlock(l.unref(Sr),{key:0,src:f.gallery[0].medium,zoomSrc:f.gallery[0].large,zoomScale:1,zoomType:"click",width:280,height:153,zoomPreload:!0,fullscreenOnMobile:!1},null,8,["src","zoomSrc"])):f.gallery.length>1?(l.openBlock(),l.createBlock(l.unref(En),{ref_key:"slideshow",ref:a,key:f.gallery.length,options:{align:"prev",circular:!0,bounce:30},plugins:u.value},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.gallery,({medium:d,large:p},g)=>(l.openBlock(),l.createElementBlock("div",{key:g,class:"booking-availability-listing-featured-img"},[l.createVNode(l.unref(Sr),{src:d,zoomSrc:p,zoomScale:1,zoomType:"click",width:280,height:153,zoomPreload:!0,fullscreenOnMobile:!1},null,8,["src","zoomSrc"])]))),128))]),_:1},8,["plugins"])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),f.gallery&&f.gallery.length>1?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["booking-availability-listing-gallery",{"small-gallery":f.gallery.length>6}])},[l.createVNode(l.unref(En),{ref_key:"thumbnails",ref:s,options:{bounce:30,panelsPerView:3,bound:!0}},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.gallery,(d,p)=>(l.openBlock(),l.createElementBlock("div",{key:p},[l.createBaseVNode("img",{src:d.thumb,width:"88",height:"48"},null,8,lu)]))),128))]),_:1},512)],2)):l.createCommentVNode("",!0),l.createBaseVNode("div",uu,[l.createBaseVNode("div",cu,[l.createBaseVNode("div",{class:l.normalizeClass(["fresh-booking-listing-title",{"has-from-price":o.value}])},[l.createBaseVNode("h3",{title:f.name,class:l.normalizeClass({"no-padding":!(f.description||f.facilities.length>0)})},[l.createBaseVNode("span",null,l.toDisplayString(f.name),1),f.layout!==l.unref(l.BookingLayout).Event&&(f.description||f.facilities.length>0)?(l.openBlock(),l.createElementBlock("button",{key:0,class:"booking-availability-listing-read-more",type:"button",onClick:h[0]||(h[0]=l.withModifiers((...d)=>f.callback&&f.callback(...d),["prevent"]))},[l.createVNode(l.Icon,{icon:"info-circle",color:"header"})])):l.createCommentVNode("",!0)],10,fu),l.createBaseVNode("ul",du,[o.value?(l.openBlock(),l.createElementBlock("li",hu,[l.createBaseVNode("span",null,l.toDisplayString(`${l.unref(i)("general.pricesFrom")}: ${l.unref(l.showPrice)(f.pricesFrom,l.unref(r))}`),1)])):l.createCommentVNode("",!0),f.includesBreakfast?(l.openBlock(),l.createElementBlock("li",vu,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.breakfastIncluded")),1),l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)])],2),l.createBaseVNode("div",pu,[f.layout!==l.unref(l.BookingLayout).Event&&f.description?(l.openBlock(),l.createElementBlock("div",gu,[l.createVNode(l.unref(au),{text:f.description,"max-lines":5,"auto-resize":!0},{after:l.withCtx(({toggle:d,expanded:p,clamped:g})=>[g||p?(l.openBlock(),l.createElementBlock("button",{key:0,class:"link",onClick:l.withModifiers(m=>d(),["prevent"])},[p?(l.openBlock(),l.createElementBlock("span",yu,l.toDisplayString(l.unref(i)("general.readLess")),1)):(l.openBlock(),l.createElementBlock("span",_u,l.toDisplayString(l.unref(i)("general.readMore")),1))],8,mu)):l.createCommentVNode("",!0)]),_:1},8,["text"])])):f.description?(l.openBlock(),l.createElementBlock("p",{key:1,innerHTML:l.unref(l.convertDescription)(f.description)},null,8,bu)):l.createCommentVNode("",!0)]),f.layout!==l.unref(l.BookingLayout).Event?(l.openBlock(),l.createElementBlock("ul",Eu,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.facilities,({icon:d,name:p,subFacilities:g})=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[d?l.withDirectives((l.openBlock(),l.createElementBlock("li",{key:p},[l.createVNode(l.Icon,{icon:d,color:"header"},null,8,["icon"])])),[[v,{content:c(g),classes:["tooltip","freshcase-octopus-tooltip"],container:"#fresh-booking-hotel-module",html:!0}]]):l.createCommentVNode("",!0)],64))),256))])):l.createCommentVNode("",!0),l.renderSlot(f.$slots,"description")]),l.createBaseVNode("div",Pu,[l.renderSlot(f.$slots,"action")])])],2)}}});const Ou=l._export_sfc(xu,[["__scopeId","data-v-cd77c892"]]),wu={id:"fresh-booking-multi-step-form-navigation"},Tu={key:0,id:"fresh-booking-multi-step-form-overlay"},Su={id:"fresh-booking-multi-step-form-steps-wrapper"},Cu={key:0},ku={key:1},Ru={class:"fresh-booking-multi-steps"},Iu={style:{fontSize:"18px"}},Nu={id:"fresh-booking-multi-step-form-content"},Au=l.defineComponent({__name:"MultiStepForm",props:{layout:{default:l.BookingHeaderLayout.Default},title:{},subtitle:{}},setup(n){const{selectionHasNoAddons:i}=l.storeToRefs(l.useHotelStore()),t=l.ref(0),e=l.ref(),{t:r}=l.useI18n(),o=[{id:"availability",label:r("booking.availability.title"),icon:"search"},{id:"addons",label:r("booking.reservation.title"),icon:"concierge-bell",hidden:i.value},{id:"reservation",label:r("booking.reservation.title"),icon:"concierge-bell"},{id:"payment",hidden:!0},{id:"confirmation",label:r("booking.confirmation.title"),icon:"calendar-check"}],a=l.computed(()=>o.filter(h=>!h.hidden)),s=l.computed(()=>o[t.value].id),u=()=>{e.value!==void 0&&e.value.scrollIntoView({behavior:"smooth"})},c=(h=1)=>{t.value=t.value+h,u()},f=(h=1)=>{t.value=t.value-h,u()};return(h,v)=>(l.openBlock(),l.createElementBlock("div",{id:"fresh-booking-multi-step-form",ref_key:"multiStepForm",ref:e,class:l.normalizeClass({minimal:h.layout===l.unref(l.BookingHeaderLayout).Minimal})},[l.createBaseVNode("div",null,[l.withDirectives(l.createBaseVNode("header",wu,[h.layout!==l.unref(l.BookingHeaderLayout).Minimal?(l.openBlock(),l.createElementBlock("div",Tu)):l.createCommentVNode("",!0),l.createBaseVNode("div",Su,[l.createBaseVNode("div",null,[h.title&&h.layout!==l.unref(l.BookingHeaderLayout).Minimal?(l.openBlock(),l.createElementBlock("h2",Cu,[l.createBaseVNode("span",null,l.toDisplayString(h.title),1)])):l.createCommentVNode("",!0),h.subtitle&&h.layout!==l.unref(l.BookingHeaderLayout).Minimal?(l.openBlock(),l.createElementBlock("h5",ku,[l.createBaseVNode("span",null,l.toDisplayString(h.subtitle),1)])):l.createCommentVNode("",!0),l.createBaseVNode("ul",Ru,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.value,d=>(l.openBlock(),l.createElementBlock("li",{key:d.id,class:l.normalizeClass({"is-active":s.value===d.id})},[d.icon?(l.openBlock(),l.createBlock(l.Icon,{key:0,icon:d.icon,type:"fas","icon-color":h.layout!==l.unref(l.BookingHeaderLayout).Minimal?"#fff":void 0,style:{fontSize:"18px"}},null,8,["icon","icon-color"])):l.createCommentVNode("",!0),l.createBaseVNode("b",Iu,l.toDisplayString(d.label),1)],2))),128))])])])],512),[[l.vShow,!1]]),l.createBaseVNode("ul",Nu,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(o,d=>l.createBaseVNode("li",{key:d.id,class:"fresh-booking-multi-step-form-content-tab"},[l.withDirectives(l.createBaseVNode("div",null,[l.renderSlot(h.$slots,d.id,{next:c,prev:f},void 0,!0)],512),[[l.vShow,s.value===d.id]])])),64))])])],2))}});const Du=l._export_sfc(Au,[["__scopeId","data-v-af8d0462"]]);const Mu={class:"fresh-booking-modal-title modal__title"},zu={class:"modal__content"},Bu=["innerHTML"],to=l.defineComponent({__name:"Base",props:{title:{},description:{}},emits:["confirm"],setup(n,{emit:i}){const t=i;return(e,r)=>(l.openBlock(),l.createBlock(l.unref(l.Do),{class:"modal-container","content-class":"fresh-booking-modal","teleport-to":!1,style:{"z-index":1e6}},{default:l.withCtx(()=>[l.createBaseVNode("h3",Mu,[l.createBaseVNode("span",null,l.toDisplayString(e.title),1)]),l.createBaseVNode("div",zu,[l.renderSlot(e.$slots,"above-description"),e.description?(l.openBlock(),l.createElementBlock("p",{key:0,class:"fresh-booking-modal-description",innerHTML:e.description},null,8,Bu)):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"default")]),l.createBaseVNode("button",{class:"fresh-booking-modal-close",onClick:r[0]||(r[0]=o=>t("confirm"))},[l.createVNode(l.Icon,{icon:"times",type:"fas"})])]),_:3}))}});const Lu=l.defineComponent({__name:"Terms",props:{description:{}},setup(n){const{t:i}=l.useI18n();return(t,e)=>(l.openBlock(),l.createBlock(to,{title:l.unref(i)("general.termsAndConditions"),description:t.description},null,8,["title","description"]))}}),Vu={class:"konnectio-accept-terms"},ju=l.defineComponent({__name:"TermsOfService",setup(n){const{termsOfService:i}=l.storeToRefs(l.useHotelStore()),{t}=l.useI18n(),{open:e,close:r}=l.Uo({component:Lu,attrs:{description:i.value,onConfirm(){r()}}});return(o,a)=>(l.openBlock(),l.createElementBlock("div",Vu,[l.createVNode(l.unref(l.Translation),{keypath:"general.termsAndConditionsNotice",tag:"span",scope:"global"},{button:l.withCtx(()=>[l.createBaseVNode("i",null,'"'+l.toDisplayString(l.unref(t)("general.confirmReservation"))+'"',1)]),terms:l.withCtx(()=>[l.createBaseVNode("a",{class:"konnectio-accept-terms-link",target:"_blank",onClick:a[0]||(a[0]=l.withModifiers((...s)=>l.unref(e)&&l.unref(e)(...s),["prevent"]))},[l.createBaseVNode("span",null,l.toDisplayString(l.unref(t)("general.termsAndConditions")),1)])]),_:1})]))}});const Fu=l._export_sfc(ju,[["__scopeId","data-v-2eb54e31"]]),$u={class:"fresh-booking-panel hotel-skeleton-sidebar-inner"},Hu={class:"hotel-skeleton-sidebar-group"},Gu={class:"hotel-skeleton-sidebar-group"},Wu=l.defineComponent({__name:"Sidebar",setup(n){return(i,t)=>(l.openBlock(),l.createElementBlock("div",$u,[l.createBaseVNode("div",Hu,[l.createVNode(de.Element,{height:"20px"}),l.createVNode(de.Element,{height:"15px"}),l.createVNode(de.Element,{height:"15px"}),l.createVNode(de.Element,{height:"15px"})]),l.createBaseVNode("div",Gu,[l.createVNode(de.Element,{height:"20px"}),l.createVNode(de.Element,{height:"15px"}),l.createVNode(de.Element,{height:"15px"}),l.createVNode(de.Element,{height:"15px"})]),l.createVNode(de.Element,{height:"44px"})]))}});const no=l._export_sfc(Wu,[["__scopeId","data-v-78cc8d19"]]),Uu=n=>(l.pushScopeId("data-v-1cc6b7b3"),n=n(),l.popScopeId(),n),Xu={id:"fresh-booking-reservation-layout","sticky-container":""},Yu={id:"fresh-booking-reservation-layout-content"},Ku={id:"fresh-booking-reservation-layout-form"},Zu={id:"fresh-booking-reservation-layout-aside"},Ju={class:"fresh-booking-panel"},Qu={id:"fresh-booking-reservation-layout-aside-resume"},qu={key:0},ec={key:1},tc={key:2},nc={key:3},rc=Uu(()=>l.createBaseVNode("div",{class:"konnectio-divider"},null,-1)),ic={key:0,class:"fresh-booking-panel"},oc={id:"fresh-booking-reservation-layout-aside-gift-card"},ac={key:1,class:"fresh-booking-panel"},sc={id:"fresh-booking-reservation-layout-aside-addons"},lc=["innerHTML"],uc={key:0,id:"fresh-booking-reservation-layout-recaptcha"},cc=l.defineComponent({__name:"ReservationForm",props:{showTermsNotice:{type:Boolean,default:!1},showGiftCard:{type:Boolean,default:!1},isSidebarLoading:{type:Boolean,default:!1},totalPrice:{},basePrice:{default:0},weekendFee:{default:0},roomUpgrade:{default:0},buttonIconColor:{},notice:{}},setup(n){const{t:i}=l.useI18n(),{disableGiftCardVoucher:t,isRecaptchaEnabled:e,currency:r}=l.storeToRefs(l.useUtilityStore()),{amount:o,voucher:a}=l.storeToRefs(l.useApplyGiftCardStore()),{apply:s,reset:u}=l.useApplyGiftCardStore(),c=l.useSlots(),f=n,h=l.computed(()=>f.basePrice-f.weekendFee-f.roomUpgrade);return(v,d)=>(l.openBlock(),l.createElementBlock("div",Xu,[l.createBaseVNode("div",Yu,[l.createBaseVNode("div",Ku,[l.createBaseVNode("form",null,[l.renderSlot(v.$slots,"form")])]),l.createBaseVNode("aside",Zu,[v.isSidebarLoading?(l.openBlock(),l.createBlock(no,{key:1})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createBaseVNode("div",Ju,[l.createBaseVNode("ul",Qu,[l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.reservationSummary")),1)]),l.createBaseVNode("ul",null,[l.renderSlot(v.$slots,"reservation-summary")]),l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.priceSummary")),1)]),l.createBaseVNode("ul",null,[l.renderSlot(v.$slots,"price-summary"),h.value>0?(l.openBlock(),l.createElementBlock("li",qu,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("booking.availability.basePrice")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showPrice)(h.value,l.unref(r))),1)])):l.createCommentVNode("",!0),v.weekendFee>0?(l.openBlock(),l.createElementBlock("li",ec,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.weekendFee")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showPrice)(v.weekendFee,l.unref(r))),1)])):l.createCommentVNode("",!0),v.roomUpgrade>0?(l.openBlock(),l.createElementBlock("li",tc,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.roomUpgrade")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showPrice)(v.roomUpgrade,l.unref(r))),1)])):l.createCommentVNode("",!0),l.renderSlot(v.$slots,"expenses"),l.unref(o)!==0?(l.openBlock(),l.createElementBlock("li",nc,[l.createBaseVNode("span",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("booking.reservation.giftCardDiscount")),1),l.createBaseVNode("a",{class:"resume-item-remove",onClick:d[0]||(d[0]=l.withModifiers(p=>l.unref(u)(),["prevent"]))},[l.createVNode(l.Icon,{icon:"times",type:"fas","icon-color":"#ff0000"})])]),l.createBaseVNode("b",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(l.showPrice)(-l.unref(o),l.unref(r))),1)])])):l.createCommentVNode("",!0),l.createBaseVNode("li",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("booking.reservation.totalPrice")),1),l.createBaseVNode("b",null,[l.createBaseVNode("u",null,l.toDisplayString(l.unref(l.showPrice)(v.totalPrice,l.unref(r))),1)])])]),l.renderSlot(v.$slots,"navigation"),v.showTermsNotice?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[rc,l.createVNode(Fu)],64)):l.createCommentVNode("",!0)])]),v.showGiftCard&&l.unref(o)===0&&!l.unref(t)?(l.openBlock(),l.createElementBlock("div",ic,[l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("booking.reservation.giftCardCode")),1)]),l.createBaseVNode("div",oc,[l.createVNode(xo.ActionField,{modelValue:l.unref(a),"onUpdate:modelValue":d[1]||(d[1]=p=>l.isRef(a)?a.value=p:null),icon:"gift-card","button-icon":"paper-plane-top","button-icon-color":v.buttonIconColor,placeholder:"XXXXXXXX",action:"success",secondary:!0,onAction:d[2]||(d[2]=p=>l.unref(s)())},null,8,["modelValue","button-icon-color"])])])):l.createCommentVNode("",!0),l.unref(c).addons?(l.openBlock(),l.createElementBlock("div",ac,[l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("booking.reservation.addons")),1)]),l.createBaseVNode("ul",sc,[l.renderSlot(v.$slots,"addons")])])):l.createCommentVNode("",!0),v.notice?(l.openBlock(),l.createElementBlock("p",{key:2,innerHTML:v.notice,class:"fresh-booking-wysiwyg"},null,8,lc)):l.createCommentVNode("",!0)],64))]),l.unref(e)?(l.openBlock(),l.createElementBlock("div",uc,[l.createVNode(Oo._sfc_main)])):l.createCommentVNode("",!0)])]))}});const fc=l._export_sfc(cc,[["__scopeId","data-v-1cc6b7b3"]]),dc={id:"konnectio-confirmation",class:"fresh-booking-panel"},hc={id:"konnectio-confirmation-introduction"},vc={id:"konnectio-confirmation-title"},pc=["innerHTML"],gc={class:"fresh-booking-order-panel"},mc={key:0},_c={class:"fresh-booking-order-panel"},yc={class:"fresh-booking-order-lines"},bc={key:0},Ec={key:1},Pc={key:0,class:"fresh-booking-order-panel"},xc={class:"fresh-booking-table with-lines"},Oc={class:"fresh-booking-order-lines"},wc={key:0},Tc={key:1},Sc={key:2,class:"highlighted-line"},Cc=l.defineComponent({__name:"ThankYou",props:{message:{}},setup(n){const{t:i}=l.useI18n(),{hasOrderLines:t,orderSummary:e,name:r,email:o,phone:a,adults:s,children:u,offerDate:c,totalPrice:f,totalVAT:h,subTotalPrice:v}=l.storeToRefs(l.usePaymentStore()),{currency:d}=l.storeToRefs(l.useUtilityStore());return(p,g)=>(l.openBlock(),l.createElementBlock("div",dc,[l.createBaseVNode("div",hc,[l.createBaseVNode("h2",vc,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.thankYou")),1)]),l.createBaseVNode("div",{id:"konnectio-confirmation-message",innerHTML:p.message},null,8,pc)]),l.createBaseVNode("div",gc,[l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.primaryContact")),1)]),l.createBaseVNode("div",null,l.toDisplayString(l.unref(r)),1),l.createBaseVNode("div",null,l.toDisplayString(l.unref(o)),1),l.unref(a)?(l.openBlock(),l.createElementBlock("div",mc,l.toDisplayString(l.unref(a)),1)):l.createCommentVNode("",!0)]),l.createBaseVNode("div",_c,[l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("booking.reservation.detailsTitle")),1)]),l.createBaseVNode("ul",yc,[l.unref(c)?(l.openBlock(),l.createElementBlock("li",bc,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.date")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showDate)(l.unref(c))),1)])):l.createCommentVNode("",!0),l.createBaseVNode("li",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("availability.adults")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(s)),1)]),l.unref(u)&&l.unref(u)>0?(l.openBlock(),l.createElementBlock("li",Ec,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("availability.children")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(u)),1)])):l.createCommentVNode("",!0)])]),l.unref(t)?(l.openBlock(),l.createElementBlock("div",Pc,[l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.orderDetails")),1)]),l.createBaseVNode("table",xc,[l.createBaseVNode("thead",null,[l.createBaseVNode("tr",null,[l.createBaseVNode("th",null,l.toDisplayString(l.unref(i)("general.orderItem")),1),l.createBaseVNode("th",null,l.toDisplayString(l.unref(i)("general.quantity")),1),l.createBaseVNode("th",null,l.toDisplayString(l.unref(i)("booking.availability.price")),1),l.createBaseVNode("th",null,l.toDisplayString(l.unref(i)("booking.reservation.totalPrice")),1)])]),l.createBaseVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(e),({productName:m,quantity:_,unitPrice:y,totalPrice:b})=>(l.openBlock(),l.createElementBlock("tr",{key:m},[l.createBaseVNode("td",null,[l.createBaseVNode("span",null,l.toDisplayString(m),1)]),l.createBaseVNode("td",null,[l.createBaseVNode("span",null,l.toDisplayString(_),1)]),l.createBaseVNode("td",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(l.showPrice)(y,l.unref(d))),1)]),l.createBaseVNode("td",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(l.showPrice)(b,l.unref(d))),1)])]))),128))])])])):l.createCommentVNode("",!0),l.createBaseVNode("ul",Oc,[l.unref(v)?(l.openBlock(),l.createElementBlock("li",wc,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.subTotal")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showPrice)(l.unref(v),l.unref(d))),1)])):l.createCommentVNode("",!0),l.unref(h)?(l.openBlock(),l.createElementBlock("li",Tc,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.vat")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showPrice)(l.unref(h),l.unref(d))),1)])):l.createCommentVNode("",!0),l.unref(f)?(l.openBlock(),l.createElementBlock("li",Sc,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("booking.reservation.totalPrice")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showPrice)(l.unref(f),l.unref(d))),1)])):l.createCommentVNode("",!0)])]))}});const kc=l._export_sfc(Cc,[["__scopeId","data-v-86500fde"]]);exports.Base=Ou;exports.Flicking=En;exports.MultiStepForm=Du;exports.ReservationForm=fc;exports.Sidebar=no;exports.Sync=Qi;exports.ThankYou=kc;exports._sfc_main=to;exports.xt=Ca;
|
|
54
|
+
***************************************************************************** */var En=function(n,i){return En=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},En(n,i)};function $l(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");En(n,i);function t(){this.constructor=n}n.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}var It=function(){return It=Object.assign||function(i){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=t[o])}return i},It.apply(this,arguments)};function Hl(n,i){var t={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&i.indexOf(e)<0&&(t[e]=n[e]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,e=Object.getOwnPropertySymbols(n);r<e.length;r++)i.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(n,e[r])&&(t[e[r]]=n[e[r]]);return t}function Gr(n,i,t,e){function r(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(f){try{c(e.next(f))}catch(h){a(h)}}function u(f){try{c(e.throw(f))}catch(h){a(h)}}function c(f){f.done?o(f.value):r(f.value).then(s,u)}c((e=e.apply(n,i||[])).next())})}function Wr(n,i){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},e,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(f){return u([c,f])}}function u(c){if(e)throw new TypeError("Generator is already executing.");for(;t;)try{if(e=1,r&&(o=c[0]&2?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,r=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){t.label=c[1];break}if(c[0]===6&&t.label<o[1]){t.label=o[1],o=c;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(c);break}o[2]&&t.ops.pop(),t.trys.pop();continue}c=i.call(n,t)}catch(f){c=[6,f],r=0}finally{e=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Jt(n,i,t){if(t||arguments.length===2)for(var e=0,r=i.length,o;e<r;e++)(o||!(e in i))&&(o||(o=Array.prototype.slice.call(i,0,e)),o[e]=i[e]);return n.concat(o||Array.prototype.slice.call(i))}var Gl={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}},Wl=function(n){$l(i,n);function i(e){var r=n.call(this,e)||this;return r._vueFlicking=e.vueFlicking,r}var t=i.prototype;return t.render=function(){return Gr(this,void 0,void 0,function(){var e,r,o,a=this;return Wr(this,function(s){return e=N(this._flicking),r=this._vueFlicking,o=this._strategy,o.updateRenderingPanels(e),o.renderPanels(e),[2,new Promise(function(u){r.renderEmitter.once("render",function(){a._afterRender(),u()}),r.$forceUpdate()})]})})},t.forceRenderAllPanels=function(){return Gr(this,void 0,void 0,function(){var e;return Wr(this,function(r){switch(r.label){case 0:return e=this._vueFlicking,[4,n.prototype.forceRenderAllPanels.call(this)];case 1:return r.sent(),[2,new Promise(function(o){e.renderEmitter.once("render",o),e.$forceUpdate()})]}})})},t._collectPanels=function(){var e=N(this._flicking),r=this._vueFlicking,o=r.$refs,a=Object.keys(o).map(function(s){return o[s]});this._panels=this._strategy.collectPanels(e,a)},t._createPanel=function(e,r){return this._strategy.createPanel(e,r)},i}(Ml),Ul=l.defineComponent({data:function(){return{hide:!1}},render:function(){if(!(this.hide||!this.$slots.default))return this.$slots.default()}}),Xl=function(){function n(t){this._el=t}var i=n.prototype;return Object.defineProperty(i,"rendered",{get:function(){return!this._el.hide},enumerable:!1,configurable:!0}),Object.defineProperty(i,"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}),i.show=function(){this._el.hide=!1},i.hide=function(){this._el.hide=!0},n}(),Pn=l.defineComponent({props:Gl,components:{Panel:Ul},data:function(){return{}},created:function(){var n=this;this.vanillaFlicking=null,this.renderEmitter=new Se,this.diffResult=null,this.getPanels=function(){var i=l.getCurrentInstance(),t=i?.ctx,e=n.vanillaFlicking,r=n.getSlots(),o=t?.diffResult,a=o?Ll(e,o):r,s=l.resolveComponent("Panel"),u=a.map(function(c,f){return l.h(s,{key:c.key,ref:f.toString()},function(){return c})});return u},this.getVirtualPanels=function(){var i=n.options,t=i.virtual.panelClass,e=t===void 0?"flicking-panel":t,r=i.panelsPerView,o=n.vanillaFlicking,a=o&&o.initialized,s=a?o.renderer.strategy.getRenderingIndexesByOrder(o):ot(r+1),u=a&&o.panels[0],c=u?o.horizontal?{width:u.size}:{height:u.size}:{};return s.map(function(f){return l.h("div",{key:f,ref:f.toString(),class:e,style:c,"data-element-index":f})})},zl(this,"vanillaFlicking")},mounted:function(){var n=this,i,t=this.options,e=this.$el,r={vueFlicking:this,align:t.align,strategy:t.virtual&&((i=t.panelsPerView)!==null&&i!==void 0?i:-1)>0?new Zi:new Ki({providerCtor:Xl})},o=new Ji(e,It(It({},t),{externalRenderer:new Wl(r)}));this.vanillaFlicking=o,o.once(B.READY,function(){n.$forceUpdate()});var a=this.getSlots();this.slotDiffer=new Rr(a,function(s){return s.key}),this.pluginsDiffer=new Rr,this.bindEvents(),this.checkPlugins(),this.status&&o.setStatus(this.status)},beforeUnmount:function(){var n;(n=this.vanillaFlicking)===null||n===void 0||n.destroy()},beforeMount:function(){this.fillKeys()},beforeUpdate:function(){this.fillKeys(),this.diffResult=this.slotDiffer.update(this.getSlots())},updated:function(){var n=this.vanillaFlicking,i=this.diffResult;if(this.checkPlugins(),this.renderEmitter.trigger("render"),!(!i||!n?.initialized)){var t=this.getChildren();Bl(n,i,t),(i.added.length>0||i.removed.length>0)&&this.$forceUpdate(),this.diffResult=void 0}},render:function(){var n,i,t=this.vanillaFlicking,e=this.options,r=t&&t.initialized,o=t?t.horizontal:(i=this.options.horizontal)!==null&&i!==void 0?i:!0,a={class:{"flicking-viewport":!0,vertical:!o,"flicking-hidden":this.hideBeforeInit&&!r}},s={class:(n={"flicking-camera":!0},n[this.cameraClass]=!!this.cameraClass,n),style:!r&&this.firstPanelSize?{transform:Vl(this.options.align,this.options.horizontal,this.firstPanelSize)}:{}},u=e.virtual&&e.panelsPerView&&e.panelsPerView>0?this.getVirtualPanels:this.getPanels,c=this.$slots.viewport?this.$slots.viewport():[];return l.h(this.viewportTag,a,Jt([l.h(this.cameraTag,s,{default:u})],c,!0))},methods:{getSlots:function(){var n=this,i=this.$slots.default?this.$slots.default():[];return i.reduce(function(t,e){return Jt(Jt([],t,!0),n.getElementVNodes(e),!0)},[]).filter(function(t){return t.type!==l.Comment&&t.type!==l.Text})},getElementVNodes:function(n,i){var t=this;return i===void 0&&(i=[]),n.type===l.Fragment&&Array.isArray(n.children)?n.children.filter(function(e){return e&&typeof e=="object"}).forEach(function(e){return t.getElementVNodes(e,i)}):i.push(n),i},bindEvents:function(){var n=this,i=this.vanillaFlicking,t=Object.keys(B).map(function(e){return B[e]});t.forEach(function(e){i.on(e,function(r){r.currentTarget=n,n.$emit(e.replace(/([A-Z])/g,"-$1").toLowerCase(),r)})})},checkPlugins:function(){var n,i,t=this.pluginsDiffer.update(this.plugins),e=t.list,r=t.added,o=t.removed,a=t.prevList;(n=this.vanillaFlicking).addPlugins.apply(n,r.map(function(s){return e[s]})),(i=this.vanillaFlicking).removePlugins.apply(i,o.map(function(s){return a[s]}))},fillKeys:function(){var n=this.getSlots();n.forEach(function(i,t){i.key==null&&(i.key="$_".concat(t))})},getChildren:function(){var n=this.$refs;return Object.keys(n).map(function(i){return n[i]})}},watch:{options:{handler:function(n){var i=this.vanillaFlicking;if(i){n.virtual;var t=Hl(n,["virtual"]);for(var e in t)e in i&&i[e]!==t[e]&&(i[e]=t[e])}},deep:!0,immediate:!0}}}),He={TYPE:{CAMERA:"camera",INDEX:"index"}},Yl=function(n,i){if(n)if(n.classList)n.classList.add(i);else{var t=n.className.split(" ");t.indexOf(i)<0&&(n.className=n.className+" "+i)}},Kl=function(n,i){if(n)if(n.classList)n.classList.remove(i);else{var t=new RegExp("( |^)"+i+"( |$)","g");n.className.replace(t," ")}},qi=function(){function n(t){var e=this,r=t===void 0?{}:t,o=r.type,a=o===void 0?He.TYPE.CAMERA:o,s=r.synchronizedFlickingOptions,u=s===void 0?[]:s;this._flicking=null,this._addEvents=function(){var c=e._type,f=e._synchronizedFlickingOptions;f.forEach(function(h){var v=h.flicking,d=h.isSlidable,p=h.isClickable;c===He.TYPE.CAMERA&&(v.on(B.MOVE,e._onMove),v.on(B.MOVE_START,e._onMoveStart),v.on(B.MOVE_END,e._onMoveEnd)),c===He.TYPE.INDEX&&d&&(v.on(B.WILL_CHANGE,e._onIndexChange),v.on(B.WILL_RESTORE,e._onIndexChange)),p&&v.on(B.SELECT,e._onSelect)})},this._removeEvents=function(){var c=e._type,f=e._synchronizedFlickingOptions;f.forEach(function(h){var v=h.flicking,d=h.isSlidable,p=h.isClickable;c===He.TYPE.CAMERA&&(v.off(B.MOVE,e._onMove),v.off(B.MOVE_START,e._onMoveStart),v.off(B.MOVE_END,e._onMoveEnd)),c===He.TYPE.INDEX&&d&&(v.off(B.WILL_CHANGE,e._onIndexChange),v.off(B.WILL_RESTORE,e._onIndexChange)),p&&v.off(B.SELECT,e._onSelect)})},this._onIndexChange=function(c){var f=c.currentTarget;f.initialized&&e._synchronizeByIndex(f,c.index)},this._onMove=function(c){var f=c.currentTarget.camera,h=(f.position-f.range.min)/f.rangeDiff;e._synchronizedFlickingOptions.forEach(function(v){var d=v.flicking;if(d!==c.currentTarget){var p=0;f.position<f.range.min?p=f.position:f.position>f.range.max?p=d.camera.range.max+f.position-f.range.max:p=d.camera.range.min+d.camera.rangeDiff*h,d.camera.lookAt(p)}})},this._onMoveStart=function(c){e._synchronizedFlickingOptions.forEach(function(f){var h=f.flicking;h!==c.currentTarget&&h.disableInput()})},this._onMoveEnd=function(c){e._synchronizedFlickingOptions.forEach(function(f){var h=f.flicking;h!==c.currentTarget&&(h.enableInput(),h.control.updateInput())})},this._onSelect=function(c){c.currentTarget.moveTo(c.index).catch(function(){}),e._synchronizeByIndex(c.currentTarget,c.index)},this._synchronizeByIndex=function(c,f){var h=e._synchronizedFlickingOptions;e._preventEvent(function(){h.forEach(function(v){e._updateClass(v,f);var d=v.flicking;if(d!==c){var p=_e(f,0,d.panels.length);d.animating?d.once(B.MOVE_END,function(){d.moveTo(p).catch(function(){})}):d.moveTo(p)}})})},this._updateClass=function(c,f){var h=c.flicking,v=c.activeClass;v&&h.panels.forEach(function(d){d.index===f?Yl(d.element,v):Kl(d.element,v)})},this._type=a,this._synchronizedFlickingOptions=u}var i=n.prototype;return Object.defineProperty(i,"type",{get:function(){return this._type},set:function(t){this._type=t},enumerable:!1,configurable:!0}),Object.defineProperty(i,"synchronizedFlickingOptions",{get:function(){return this._synchronizedFlickingOptions},set:function(t){this._synchronizedFlickingOptions=t},enumerable:!1,configurable:!0}),i.init=function(t){var e=this,r=this._synchronizedFlickingOptions;this._flicking&&this.destroy(),this._flicking=t,this._addEvents(),r.forEach(function(o){var a=o.flicking;e._updateClass(o,a.defaultIndex)})},i.destroy=function(){var t=this._flicking;t&&(this._removeEvents(),this._flicking=null)},i.update=function(){var t=this;this._synchronizedFlickingOptions.forEach(function(e){t._updateClass(e,e.flicking.index)})},i._preventEvent=function(t){this._removeEvents(),t(),this._addEvents()},n}(),Qt=null;function Zl(n){return Qt||(Qt=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(i){return setTimeout(i,16)}).bind(window)),Qt(n)}var qt=null;function Jl(n){qt||(qt=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(i){clearTimeout(i)}).bind(window)),qt(n)}function Ql(n){var i=document.createElement("style");return i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),(document.querySelector("head")||document.body).appendChild(i),i}function ht(n,i){i===void 0&&(i={});var t=document.createElement(n);return Object.keys(i).forEach(function(e){t[e]=i[e]}),t}function eo(n,i,t){var e=window.getComputedStyle(n,t||null)||{display:"none"};return e[i]}function xn(n){if(!document.documentElement.contains(n))return{detached:!0,rendered:!1};for(var i=n;i!==document;){if(eo(i,"display")==="none")return{detached:!1,rendered:!1};i=i.parentNode}return{detached:!1,rendered:!0}}var ql='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',On=0,yt=null;function eu(n,i){n.__resize_mutation_handler__||(n.__resize_mutation_handler__=ru.bind(n));var t=n.__resize_listeners__;if(!t){if(n.__resize_listeners__=[],window.ResizeObserver){var e=n.offsetWidth,r=n.offsetHeight,o=new ResizeObserver(function(){!n.__resize_observer_triggered__&&(n.__resize_observer_triggered__=!0,n.offsetWidth===e&&n.offsetHeight===r)||Nt(n)}),a=xn(n),s=a.detached,u=a.rendered;n.__resize_observer_triggered__=s===!1&&u===!1,n.__resize_observer__=o,o.observe(n)}else if(n.attachEvent&&n.addEventListener)n.__resize_legacy_resize_handler__=function(){Nt(n)},n.attachEvent("onresize",n.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",n.__resize_mutation_handler__);else if(On||(yt=Ql(ql)),iu(n),n.__resize_rendered__=xn(n).rendered,window.MutationObserver){var c=new MutationObserver(n.__resize_mutation_handler__);c.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),n.__resize_mutation_observer__=c}}n.__resize_listeners__.push(i),On++}function tu(n,i){var t=n.__resize_listeners__;if(t){if(i&&t.splice(t.indexOf(i),1),!t.length||!i){if(n.detachEvent&&n.removeEventListener){n.detachEvent("onresize",n.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",n.__resize_mutation_handler__);return}n.__resize_observer__?(n.__resize_observer__.unobserve(n),n.__resize_observer__.disconnect(),n.__resize_observer__=null):(n.__resize_mutation_observer__&&(n.__resize_mutation_observer__.disconnect(),n.__resize_mutation_observer__=null),n.removeEventListener("scroll",$n),n.removeChild(n.__resize_triggers__.triggers),n.__resize_triggers__=null),n.__resize_listeners__=null}!--On&&yt&&yt.parentNode.removeChild(yt)}}function nu(n){var i=n.__resize_last__,t=i.width,e=i.height,r=n.offsetWidth,o=n.offsetHeight;return r!==t||o!==e?{width:r,height:o}:null}function ru(){var n=xn(this),i=n.rendered,t=n.detached;i!==this.__resize_rendered__&&(!t&&this.__resize_triggers__&&(Hn(this),this.addEventListener("scroll",$n,!0)),this.__resize_rendered__=i,Nt(this))}function $n(){var n=this;Hn(this),this.__resize_raf__&&Jl(this.__resize_raf__),this.__resize_raf__=Zl(function(){var i=nu(n);i&&(n.__resize_last__=i,Nt(n))})}function Nt(n){!n||!n.__resize_listeners__||n.__resize_listeners__.forEach(function(i){i.call(n,n)})}function iu(n){var i=eo(n,"position");(!i||i==="static")&&(n.style.position="relative"),n.__resize_old_position__=i,n.__resize_last__={};var t=ht("div",{className:"resize-triggers"}),e=ht("div",{className:"resize-expand-trigger"}),r=ht("div"),o=ht("div",{className:"resize-contract-trigger"});e.appendChild(r),t.appendChild(e),t.appendChild(o),n.appendChild(t),n.__resize_triggers__={triggers:t,expand:e,expandChild:r,contract:o},Hn(n),n.addEventListener("scroll",$n,!0),n.__resize_last__={width:n.offsetWidth,height:n.offsetHeight}}function Hn(n){var i=n.__resize_triggers__,t=i.expand,e=i.expandChild,r=i.contract,o=r.scrollWidth,a=r.scrollHeight,s=t.offsetWidth,u=t.offsetHeight,c=t.scrollWidth,f=t.scrollHeight;r.scrollLeft=o,r.scrollTop=a,e.style.width=s+1+"px",e.style.height=u+1+"px",t.scrollLeft=c,t.scrollTop=f}const ou=["aria-label"];var to=l.defineComponent({__name:"text-clamp",props:{text:{type:String,required:!0},maxHeight:{type:[String,Number],required:!1},maxLines:{type:Number,required:!1},expanded:{type:Boolean,required:!1,default:!1},location:{type:String,required:!1,default:"end"},ellipsis:{type:String,required:!1,default:"…"},autoResize:{type:Boolean,required:!1,default:!1}},emits:["clamp-change","update:expanded"],setup(n,{emit:i}){const t=n,e=l.ref(null),r=l.ref(null),o=l.ref(null),a=l.reactive({offset:0,localExpanded:!!t.expanded,unregisterResizeCallback:null}),s=l.computed(()=>{if(!a.localExpanded&&t.maxHeight)return typeof t?.maxHeight=="number"?`${t?.maxHeight}px`:t?.maxHeight}),u=()=>{o.value&&(o.value.textContent=x.value)},c=()=>{a.localExpanded||(u(),(v()||E.value)&&p())},f=()=>{t.text&&(a.offset=t.text.length,h(),t.autoResize&&e.value&&(eu(e.value,c),a.unregisterResizeCallback=()=>{e.value&&tu(e.value,c)}),c())},h=()=>{a.unregisterResizeCallback?.()},v=()=>!(!t.maxLines&&!t.maxHeight)&&!!e.value&&(!!(t.maxLines&&d()>t.maxLines)||!!(t.maxHeight&&e.value.scrollHeight>e.value.offsetHeight)),d=()=>r.value?Object.keys(Array.prototype.slice.call(r.value.getClientRects()).reduce((T,{top:D,bottom:A})=>{const $=`${D}/${A}`;return T[$]||(T[$]=!0),T},{})).length:0,p=(...T)=>{const[D=0,A=a.offset]=T;if(A-D<=3)return void m();const $=Math.floor((A+D)/2);g($),v()?p(D,$):p($,A)},g=T=>{a.offset=T,u()},m=()=>{_(),y()},_=()=>{for(;(!v()||d()<2)&&a.offset<t.text.length;)b(1)},y=()=>{for(;v()&&d()>1&&a.offset>0;)b(-1)},b=T=>{g(a.offset+T)},E=l.computed(()=>!!t.text&&a.offset!==t.text.length);l.watch(()=>E.value,T=>{setTimeout(()=>{i("clamp-change",T)},0)},{immediate:!0});const x=l.computed(()=>E.value?C.value:t.text),C=l.computed(()=>{if(t.location==="start")return t.ellipsis+(t.text.slice(-a.offset)||"").trim();if(t.location==="middle"){const T=Math.floor(a.offset/2);return(t.text.slice(0,T)||"").trim()+t.ellipsis+(t.text.slice(-T)||"").trim()}return(t.text.slice(0,a.offset)||"").trim()+t.ellipsis}),I=()=>{a.localExpanded=!0},O=()=>{a.localExpanded=!1},R=()=>{a.localExpanded=!a.localExpanded};return l.watch(()=>t.expanded,T=>{a.localExpanded=T}),l.watch(()=>a.localExpanded,T=>{T?g(t.text.length):c(),t.expanded!==T&&i("update:expanded",T)}),l.watch(()=>[t.maxLines,t.maxHeight,t.ellipsis,t.location,E.value].join(),()=>{l.nextTick(()=>{c()})}),l.watch(()=>[t.text,t.autoResize].join(),()=>{l.nextTick(()=>{f()})}),l.onUnmounted(()=>{h()}),l.onMounted(()=>{f()}),(T,D)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"textClampRef",ref:e,class:"text-clamp",style:l.normalizeStyle({overflow:"hidden",maxHeight:l.unref(s)})},[l.createBaseVNode("span",{ref_key:"contentRef",ref:r},[l.renderSlot(T.$slots,"before",{expand:I,collapse:O,toggle:R,clamped:l.unref(E),expanded:a.localExpanded}),l.createBaseVNode("span",{ref_key:"textRef",ref:o,"aria-label":n.text},null,8,ou),l.renderSlot(T.$slots,"after",{expand:I,collapse:O,toggle:R,clamped:l.unref(E),expanded:a.localExpanded})],512)],4))}});to.__file="package/text-clamp.vue";const au=n=>(n.install=function(i){i.component(n.__name,n)},n),su=au(to),lu={key:0,class:"booking-availability-listing-featured"},uu=["src"],cu={class:"booking-availability-listing-content"},fu={class:"booking-availability-listing-details"},du=["title"],hu={class:"fresh-booking-listing-sub-title"},vu={key:0},pu={key:1},gu={class:"booking-availability-listing-description"},mu={key:0},_u=["onClick"],yu={key:0},bu={key:1},Eu=["innerHTML"],Pu={key:0,class:"booking-availability-listing-details-facilities"},xu={class:"booking-availability-listing-action"},Ou=l.defineComponent({name:"BaseListing",__name:"Base",props:{name:{},description:{},listingId:{},includesBreakfast:{type:Boolean,default:!1},gallery:{},layout:{default:l.BookingLayout.Selective},pricesFrom:{},trackingEnabled:{type:Boolean,default:!1},facilities:{},callback:{}},setup(n){const{t:i}=l.useI18n(),t=n,{disablePricesFrom:e,currency:r}=l.useUtilityStore(),o=l.ref(!e&&!!t.pricesFrom),a=l.ref(),s=l.ref(),u=l.ref();function c(f){let h="";return f.forEach(({name:v})=>{h+=`<li>${v}</li>`}),`<ul>${h}</ul>`}return l.onMounted(()=>{u.value=[new qi({type:"index",synchronizedFlickingOptions:[{flicking:a.value,isSlidable:!0},{flicking:s.value,isClickable:!0,activeClass:"active"}]})]}),(f,h)=>{const v=l.resolveDirective("tooltip");return l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(["booking-availability-listing",{"no-gallery":!f.gallery||f.gallery.length<2}])},[f.gallery?(l.openBlock(),l.createElementBlock("div",lu,[f.gallery.length===1?(l.openBlock(),l.createBlock(l.unref(Cr),{key:0,src:f.gallery[0].medium,zoomSrc:f.gallery[0].large,zoomScale:1,zoomType:"click",width:280,height:153,zoomPreload:!0,fullscreenOnMobile:!1},null,8,["src","zoomSrc"])):f.gallery.length>1?(l.openBlock(),l.createBlock(l.unref(Pn),{ref_key:"slideshow",ref:a,key:f.gallery.length,options:{align:"prev",circular:!0,bounce:30},plugins:u.value},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.gallery,({medium:d,large:p},g)=>(l.openBlock(),l.createElementBlock("div",{key:g,class:"booking-availability-listing-featured-img"},[l.createVNode(l.unref(Cr),{src:d,zoomSrc:p,zoomScale:1,zoomType:"click",width:280,height:153,zoomPreload:!0,fullscreenOnMobile:!1},null,8,["src","zoomSrc"])]))),128))]),_:1},8,["plugins"])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),f.gallery&&f.gallery.length>1?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["booking-availability-listing-gallery",{"small-gallery":f.gallery.length>6}])},[l.createVNode(l.unref(Pn),{ref_key:"thumbnails",ref:s,options:{bounce:30,panelsPerView:3,bound:!0}},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.gallery,(d,p)=>(l.openBlock(),l.createElementBlock("div",{key:p},[l.createBaseVNode("img",{src:d.thumb,width:"88",height:"48"},null,8,uu)]))),128))]),_:1},512)],2)):l.createCommentVNode("",!0),l.createBaseVNode("div",cu,[l.createBaseVNode("div",fu,[l.createBaseVNode("div",{class:l.normalizeClass(["fresh-booking-listing-title",{"has-from-price":o.value}])},[l.createBaseVNode("h3",{title:f.name,class:l.normalizeClass({"no-padding":!(f.description||f.facilities.length>0)})},[l.createBaseVNode("span",null,l.toDisplayString(f.name),1),f.layout!==l.unref(l.BookingLayout).Event&&(f.description||f.facilities.length>0)?(l.openBlock(),l.createElementBlock("button",{key:0,class:"booking-availability-listing-read-more",type:"button",onClick:h[0]||(h[0]=l.withModifiers((...d)=>f.callback&&f.callback(...d),["prevent"]))},[l.createVNode(l.Icon,{icon:"info-circle",color:"header"})])):l.createCommentVNode("",!0)],10,du),l.createBaseVNode("ul",hu,[o.value?(l.openBlock(),l.createElementBlock("li",vu,[l.createBaseVNode("span",null,l.toDisplayString(`${l.unref(i)("general.pricesFrom")}: ${l.unref(l.showPrice)(f.pricesFrom,l.unref(r))}`),1)])):l.createCommentVNode("",!0),f.includesBreakfast?(l.openBlock(),l.createElementBlock("li",pu,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.breakfastIncluded")),1),l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)])],2),l.createBaseVNode("div",gu,[f.layout!==l.unref(l.BookingLayout).Event&&f.description?(l.openBlock(),l.createElementBlock("div",mu,[l.createVNode(l.unref(su),{text:f.description,"max-lines":5,"auto-resize":!0},{after:l.withCtx(({toggle:d,expanded:p,clamped:g})=>[g||p?(l.openBlock(),l.createElementBlock("button",{key:0,class:"link",onClick:l.withModifiers(m=>d(),["prevent"])},[p?(l.openBlock(),l.createElementBlock("span",bu,l.toDisplayString(l.unref(i)("general.readLess")),1)):(l.openBlock(),l.createElementBlock("span",yu,l.toDisplayString(l.unref(i)("general.readMore")),1))],8,_u)):l.createCommentVNode("",!0)]),_:1},8,["text"])])):f.description?(l.openBlock(),l.createElementBlock("p",{key:1,innerHTML:l.unref(l.convertDescription)(f.description)},null,8,Eu)):l.createCommentVNode("",!0)]),f.layout!==l.unref(l.BookingLayout).Event?(l.openBlock(),l.createElementBlock("ul",Pu,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.facilities,({icon:d,name:p,subFacilities:g})=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[d?l.withDirectives((l.openBlock(),l.createElementBlock("li",{key:p},[l.createVNode(l.Icon,{icon:d,color:"header"},null,8,["icon"])])),[[v,{content:c(g),classes:["tooltip","freshcase-octopus-tooltip"],container:"#fresh-booking-hotel-module",html:!0}]]):l.createCommentVNode("",!0)],64))),256))])):l.createCommentVNode("",!0),l.renderSlot(f.$slots,"description")]),l.createBaseVNode("div",xu,[l.renderSlot(f.$slots,"action")])])],2)}}});const wu=l._export_sfc(Ou,[["__scopeId","data-v-ff9f1178"]]),Tu={id:"fresh-booking-multi-step-form-navigation"},Su={key:0,id:"fresh-booking-multi-step-form-overlay"},Cu={id:"fresh-booking-multi-step-form-steps-wrapper"},Ru={key:0},ku={key:1},Iu={class:"fresh-booking-multi-steps"},Nu={style:{fontSize:"18px"}},Au={id:"fresh-booking-multi-step-form-content"},Du=l.defineComponent({__name:"MultiStepForm",props:{layout:{default:l.BookingHeaderLayout.Default},title:{},subtitle:{}},setup(n){const{selectionHasNoAddons:i}=l.storeToRefs(l.useHotelStore()),t=l.ref(0),e=l.ref(),{t:r}=l.useI18n(),o=[{id:"availability",label:r("booking.availability.title"),icon:"search"},{id:"addons",label:r("booking.reservation.title"),icon:"concierge-bell",hidden:i.value},{id:"reservation",label:r("booking.reservation.title"),icon:"concierge-bell"},{id:"payment",hidden:!0},{id:"confirmation",label:r("booking.confirmation.title"),icon:"calendar-check"}],a=l.computed(()=>o.filter(h=>!h.hidden)),s=l.computed(()=>o[t.value].id),u=()=>{e.value!==void 0&&e.value.scrollIntoView({behavior:"smooth"})},c=(h=1)=>{t.value=t.value+h,u()},f=(h=1)=>{t.value=t.value-h,u()};return(h,v)=>(l.openBlock(),l.createElementBlock("div",{id:"fresh-booking-multi-step-form",ref_key:"multiStepForm",ref:e,class:l.normalizeClass({minimal:h.layout===l.unref(l.BookingHeaderLayout).Minimal})},[l.createBaseVNode("div",null,[l.withDirectives(l.createBaseVNode("header",Tu,[h.layout!==l.unref(l.BookingHeaderLayout).Minimal?(l.openBlock(),l.createElementBlock("div",Su)):l.createCommentVNode("",!0),l.createBaseVNode("div",Cu,[l.createBaseVNode("div",null,[h.title&&h.layout!==l.unref(l.BookingHeaderLayout).Minimal?(l.openBlock(),l.createElementBlock("h2",Ru,[l.createBaseVNode("span",null,l.toDisplayString(h.title),1)])):l.createCommentVNode("",!0),h.subtitle&&h.layout!==l.unref(l.BookingHeaderLayout).Minimal?(l.openBlock(),l.createElementBlock("h5",ku,[l.createBaseVNode("span",null,l.toDisplayString(h.subtitle),1)])):l.createCommentVNode("",!0),l.createBaseVNode("ul",Iu,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.value,d=>(l.openBlock(),l.createElementBlock("li",{key:d.id,class:l.normalizeClass({"is-active":s.value===d.id})},[d.icon?(l.openBlock(),l.createBlock(l.Icon,{key:0,icon:d.icon,type:"fas","icon-color":h.layout!==l.unref(l.BookingHeaderLayout).Minimal?"#fff":void 0,style:{fontSize:"18px"}},null,8,["icon","icon-color"])):l.createCommentVNode("",!0),l.createBaseVNode("b",Nu,l.toDisplayString(d.label),1)],2))),128))])])])],512),[[l.vShow,!1]]),l.createBaseVNode("ul",Au,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(o,d=>l.createBaseVNode("li",{key:d.id,class:"fresh-booking-multi-step-form-content-tab"},[l.withDirectives(l.createBaseVNode("div",null,[l.renderSlot(h.$slots,d.id,{next:c,prev:f},void 0,!0)],512),[[l.vShow,s.value===d.id]])])),64))])])],2))}});const Mu=l._export_sfc(Du,[["__scopeId","data-v-af8d0462"]]);const zu={class:"fresh-booking-modal-title modal__title"},Bu={class:"modal__content"},Lu=["innerHTML"],no=l.defineComponent({__name:"Base",props:{title:{},description:{}},emits:["confirm"],setup(n,{emit:i}){const t=i;return(e,r)=>(l.openBlock(),l.createBlock(l.unref(l.Do),{class:"modal-container","content-class":"fresh-booking-modal","teleport-to":!1,style:{"z-index":1e6}},{default:l.withCtx(()=>[l.createBaseVNode("h3",zu,[l.createBaseVNode("span",null,l.toDisplayString(e.title),1)]),l.createBaseVNode("div",Bu,[l.renderSlot(e.$slots,"above-description"),e.description?(l.openBlock(),l.createElementBlock("p",{key:0,class:"fresh-booking-modal-description",innerHTML:e.description},null,8,Lu)):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"default")]),l.createBaseVNode("button",{class:"fresh-booking-modal-close",onClick:r[0]||(r[0]=o=>t("confirm"))},[l.createVNode(l.Icon,{icon:"times",type:"fas"})])]),_:3}))}});const Vu=l.defineComponent({__name:"Terms",props:{description:{}},setup(n){const{t:i}=l.useI18n();return(t,e)=>(l.openBlock(),l.createBlock(no,{title:l.unref(i)("general.termsAndConditions"),description:t.description},null,8,["title","description"]))}}),ju={class:"konnectio-accept-terms"},Fu=l.defineComponent({__name:"TermsOfService",setup(n){const{termsOfService:i}=l.storeToRefs(l.useHotelStore()),{t}=l.useI18n(),{open:e,close:r}=l.Uo({component:Vu,attrs:{description:i.value,onConfirm(){r()}}});return(o,a)=>(l.openBlock(),l.createElementBlock("div",ju,[l.createVNode(l.unref(l.Translation),{keypath:"general.termsAndConditionsNotice",tag:"span",scope:"global"},{button:l.withCtx(()=>[l.createBaseVNode("i",null,'"'+l.toDisplayString(l.unref(t)("general.confirmReservation"))+'"',1)]),terms:l.withCtx(()=>[l.createBaseVNode("a",{class:"konnectio-accept-terms-link",target:"_blank",onClick:a[0]||(a[0]=l.withModifiers((...s)=>l.unref(e)&&l.unref(e)(...s),["prevent"]))},[l.createBaseVNode("span",null,l.toDisplayString(l.unref(t)("general.termsAndConditions")),1)])]),_:1})]))}});const $u=l._export_sfc(Fu,[["__scopeId","data-v-2eb54e31"]]),Hu={class:"fresh-booking-panel hotel-skeleton-sidebar-inner"},Gu={class:"hotel-skeleton-sidebar-group"},Wu={class:"hotel-skeleton-sidebar-group"},Uu=l.defineComponent({__name:"Sidebar",setup(n){return(i,t)=>(l.openBlock(),l.createElementBlock("div",Hu,[l.createBaseVNode("div",Gu,[l.createVNode(de.Element,{height:"20px"}),l.createVNode(de.Element,{height:"15px"}),l.createVNode(de.Element,{height:"15px"}),l.createVNode(de.Element,{height:"15px"})]),l.createBaseVNode("div",Wu,[l.createVNode(de.Element,{height:"20px"}),l.createVNode(de.Element,{height:"15px"}),l.createVNode(de.Element,{height:"15px"}),l.createVNode(de.Element,{height:"15px"})]),l.createVNode(de.Element,{height:"44px"})]))}});const ro=l._export_sfc(Uu,[["__scopeId","data-v-78cc8d19"]]),Xu=n=>(l.pushScopeId("data-v-1cc6b7b3"),n=n(),l.popScopeId(),n),Yu={id:"fresh-booking-reservation-layout","sticky-container":""},Ku={id:"fresh-booking-reservation-layout-content"},Zu={id:"fresh-booking-reservation-layout-form"},Ju={id:"fresh-booking-reservation-layout-aside"},Qu={class:"fresh-booking-panel"},qu={id:"fresh-booking-reservation-layout-aside-resume"},ec={key:0},tc={key:1},nc={key:2},rc={key:3},ic=Xu(()=>l.createBaseVNode("div",{class:"konnectio-divider"},null,-1)),oc={key:0,class:"fresh-booking-panel"},ac={id:"fresh-booking-reservation-layout-aside-gift-card"},sc={key:1,class:"fresh-booking-panel"},lc={id:"fresh-booking-reservation-layout-aside-addons"},uc=["innerHTML"],cc={key:0,id:"fresh-booking-reservation-layout-recaptcha"},fc=l.defineComponent({__name:"ReservationForm",props:{showTermsNotice:{type:Boolean,default:!1},showGiftCard:{type:Boolean,default:!1},isSidebarLoading:{type:Boolean,default:!1},totalPrice:{},basePrice:{default:0},weekendFee:{default:0},roomUpgrade:{default:0},buttonIconColor:{},notice:{}},setup(n){const{t:i}=l.useI18n(),{disableGiftCardVoucher:t,isRecaptchaEnabled:e,currency:r}=l.storeToRefs(l.useUtilityStore()),{amount:o,voucher:a}=l.storeToRefs(l.useApplyGiftCardStore()),{apply:s,reset:u}=l.useApplyGiftCardStore(),c=l.useSlots(),f=n,h=l.computed(()=>f.basePrice-f.weekendFee-f.roomUpgrade);return(v,d)=>(l.openBlock(),l.createElementBlock("div",Yu,[l.createBaseVNode("div",Ku,[l.createBaseVNode("div",Zu,[l.createBaseVNode("form",null,[l.renderSlot(v.$slots,"form")])]),l.createBaseVNode("aside",Ju,[v.isSidebarLoading?(l.openBlock(),l.createBlock(ro,{key:1})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createBaseVNode("div",Qu,[l.createBaseVNode("ul",qu,[l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.reservationSummary")),1)]),l.createBaseVNode("ul",null,[l.renderSlot(v.$slots,"reservation-summary")]),l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.priceSummary")),1)]),l.createBaseVNode("ul",null,[l.renderSlot(v.$slots,"price-summary"),h.value>0?(l.openBlock(),l.createElementBlock("li",ec,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("booking.availability.basePrice")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showPrice)(h.value,l.unref(r))),1)])):l.createCommentVNode("",!0),v.weekendFee>0?(l.openBlock(),l.createElementBlock("li",tc,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.weekendFee")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showPrice)(v.weekendFee,l.unref(r))),1)])):l.createCommentVNode("",!0),v.roomUpgrade>0?(l.openBlock(),l.createElementBlock("li",nc,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.roomUpgrade")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showPrice)(v.roomUpgrade,l.unref(r))),1)])):l.createCommentVNode("",!0),l.renderSlot(v.$slots,"expenses"),l.unref(o)!==0?(l.openBlock(),l.createElementBlock("li",rc,[l.createBaseVNode("span",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("booking.reservation.giftCardDiscount")),1),l.createBaseVNode("a",{class:"resume-item-remove",onClick:d[0]||(d[0]=l.withModifiers(p=>l.unref(u)(),["prevent"]))},[l.createVNode(l.Icon,{icon:"times",type:"fas","icon-color":"#ff0000"})])]),l.createBaseVNode("b",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(l.showPrice)(-l.unref(o),l.unref(r))),1)])])):l.createCommentVNode("",!0),l.createBaseVNode("li",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("booking.reservation.totalPrice")),1),l.createBaseVNode("b",null,[l.createBaseVNode("u",null,l.toDisplayString(l.unref(l.showPrice)(v.totalPrice,l.unref(r))),1)])])]),l.renderSlot(v.$slots,"navigation"),v.showTermsNotice?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[ic,l.createVNode($u)],64)):l.createCommentVNode("",!0)])]),v.showGiftCard&&l.unref(o)===0&&!l.unref(t)?(l.openBlock(),l.createElementBlock("div",oc,[l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("booking.reservation.giftCardCode")),1)]),l.createBaseVNode("div",ac,[l.createVNode(Oo.ActionField,{modelValue:l.unref(a),"onUpdate:modelValue":d[1]||(d[1]=p=>l.isRef(a)?a.value=p:null),icon:"gift-card","button-icon":"paper-plane-top","button-icon-color":v.buttonIconColor,placeholder:"XXXXXXXX",action:"success",secondary:!0,onAction:d[2]||(d[2]=p=>l.unref(s)())},null,8,["modelValue","button-icon-color"])])])):l.createCommentVNode("",!0),l.unref(c).addons?(l.openBlock(),l.createElementBlock("div",sc,[l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("booking.reservation.addons")),1)]),l.createBaseVNode("ul",lc,[l.renderSlot(v.$slots,"addons")])])):l.createCommentVNode("",!0),v.notice?(l.openBlock(),l.createElementBlock("p",{key:2,innerHTML:v.notice,class:"fresh-booking-wysiwyg"},null,8,uc)):l.createCommentVNode("",!0)],64))]),l.unref(e)?(l.openBlock(),l.createElementBlock("div",cc,[l.createVNode(wo._sfc_main)])):l.createCommentVNode("",!0)])]))}});const dc=l._export_sfc(fc,[["__scopeId","data-v-1cc6b7b3"]]),hc={id:"konnectio-confirmation",class:"fresh-booking-panel"},vc={id:"konnectio-confirmation-introduction"},pc={id:"konnectio-confirmation-title"},gc=["innerHTML"],mc={class:"fresh-booking-order-panel"},_c={key:0},yc={class:"fresh-booking-order-panel"},bc={class:"fresh-booking-order-lines"},Ec={key:0},Pc={key:1},xc={key:0,class:"fresh-booking-order-panel"},Oc={class:"fresh-booking-table with-lines"},wc={class:"fresh-booking-order-lines"},Tc={key:0},Sc={key:1},Cc={key:2,class:"highlighted-line"},Rc=l.defineComponent({__name:"ThankYou",props:{message:{}},setup(n){const{t:i}=l.useI18n(),{hasOrderLines:t,orderSummary:e,name:r,email:o,phone:a,adults:s,children:u,offerDate:c,totalPrice:f,totalVAT:h,subTotalPrice:v}=l.storeToRefs(l.usePaymentStore()),{currency:d}=l.storeToRefs(l.useUtilityStore());return(p,g)=>(l.openBlock(),l.createElementBlock("div",hc,[l.createBaseVNode("div",vc,[l.createBaseVNode("h2",pc,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.thankYou")),1)]),l.createBaseVNode("div",{id:"konnectio-confirmation-message",innerHTML:p.message},null,8,gc)]),l.createBaseVNode("div",mc,[l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.primaryContact")),1)]),l.createBaseVNode("div",null,l.toDisplayString(l.unref(r)),1),l.createBaseVNode("div",null,l.toDisplayString(l.unref(o)),1),l.unref(a)?(l.openBlock(),l.createElementBlock("div",_c,l.toDisplayString(l.unref(a)),1)):l.createCommentVNode("",!0)]),l.createBaseVNode("div",yc,[l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("booking.reservation.detailsTitle")),1)]),l.createBaseVNode("ul",bc,[l.unref(c)?(l.openBlock(),l.createElementBlock("li",Ec,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.date")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showDate)(l.unref(c))),1)])):l.createCommentVNode("",!0),l.createBaseVNode("li",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("availability.adults")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(s)),1)]),l.unref(u)&&l.unref(u)>0?(l.openBlock(),l.createElementBlock("li",Pc,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("availability.children")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(u)),1)])):l.createCommentVNode("",!0)])]),l.unref(t)?(l.openBlock(),l.createElementBlock("div",xc,[l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.orderDetails")),1)]),l.createBaseVNode("table",Oc,[l.createBaseVNode("thead",null,[l.createBaseVNode("tr",null,[l.createBaseVNode("th",null,l.toDisplayString(l.unref(i)("general.orderItem")),1),l.createBaseVNode("th",null,l.toDisplayString(l.unref(i)("general.quantity")),1),l.createBaseVNode("th",null,l.toDisplayString(l.unref(i)("booking.availability.price")),1),l.createBaseVNode("th",null,l.toDisplayString(l.unref(i)("booking.reservation.totalPrice")),1)])]),l.createBaseVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(e),({productName:m,quantity:_,unitPrice:y,totalPrice:b})=>(l.openBlock(),l.createElementBlock("tr",{key:m},[l.createBaseVNode("td",null,[l.createBaseVNode("span",null,l.toDisplayString(m),1)]),l.createBaseVNode("td",null,[l.createBaseVNode("span",null,l.toDisplayString(_),1)]),l.createBaseVNode("td",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(l.showPrice)(y,l.unref(d))),1)]),l.createBaseVNode("td",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(l.showPrice)(b,l.unref(d))),1)])]))),128))])])])):l.createCommentVNode("",!0),l.createBaseVNode("ul",wc,[l.unref(v)?(l.openBlock(),l.createElementBlock("li",Tc,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.subTotal")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showPrice)(l.unref(v),l.unref(d))),1)])):l.createCommentVNode("",!0),l.unref(h)?(l.openBlock(),l.createElementBlock("li",Sc,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("general.vat")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showPrice)(l.unref(h),l.unref(d))),1)])):l.createCommentVNode("",!0),l.unref(f)?(l.openBlock(),l.createElementBlock("li",Cc,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(i)("booking.reservation.totalPrice")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showPrice)(l.unref(f),l.unref(d))),1)])):l.createCommentVNode("",!0)])]))}});const kc=l._export_sfc(Rc,[["__scopeId","data-v-86500fde"]]);exports.Base=wu;exports.Flicking=Pn;exports.MultiStepForm=Mu;exports.ReservationForm=dc;exports.Sidebar=ro;exports.Sync=qi;exports.ThankYou=kc;exports._sfc_main=no;exports.xt=Ra;
|