@konnectio/core 4.0.17 → 4.0.18
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-82ef422e.js → ActionField-25ef64cf.js} +20 -21
- package/dist/ActionField-25ef64cf.js.br +0 -0
- package/dist/ActionField-86389dfe.cjs +1 -0
- package/dist/AvailabilitySkeleton-3bb4b572.js +200 -0
- package/dist/AvailabilitySkeleton-3bb4b572.js.br +0 -0
- package/dist/AvailabilitySkeleton-a72464a1.cjs +1 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-d5a1efd5.js → DateField.vue_vue_type_style_index_0_lang-d1a56eb0.js} +370 -371
- package/dist/DateField.vue_vue_type_style_index_0_lang-d1a56eb0.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-f99302dc.cjs +5 -0
- package/dist/{Field-7137ef85.js → Field-03e6b847.js} +11 -12
- package/dist/Field-03e6b847.js.br +0 -0
- package/dist/Field-a7c1ed62.cjs +1 -0
- package/dist/{NumberField.vue_vue_type_style_index_0_lang-eebde8cd.js → NumberField.vue_vue_type_style_index_0_lang-94fa5765.js} +16 -16
- package/dist/NumberField.vue_vue_type_style_index_0_lang-94fa5765.js.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-a779a531.cjs +1 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-03794d02.cjs +855 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-51defa22.js +28643 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-51defa22.js.br +0 -0
- package/dist/ThankYou-3ab29b45.cjs +54 -0
- package/dist/{ThankYou-433bd249.js → ThankYou-f4945877.js} +428 -428
- package/dist/ThankYou-f4945877.js.br +0 -0
- package/dist/{_-048b5217.js → _-0787261e.js} +14 -15
- package/dist/_-0787261e.js.br +0 -0
- package/dist/_-917dcead.cjs +1 -0
- package/dist/_commonjsHelpers-6763f629.cjs +1 -0
- package/dist/_commonjsHelpers-aeeeeb92.js +30 -0
- package/dist/applyGiftCard-ba1da572.cjs +1 -0
- package/dist/{applyGiftCard-45cf782e.js → applyGiftCard-f2282bd2.js} +4 -5
- package/dist/applyGiftCard-f2282bd2.js.br +0 -0
- package/dist/availability.cjs +2 -2
- package/dist/availability.js +30 -31
- package/dist/availability.js.br +0 -0
- package/dist/event-07ba3a0e.cjs +1 -0
- package/dist/{event-3ef40faf.js → event-208206cf.js} +29 -30
- package/dist/event-208206cf.js.br +0 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +214 -215
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +46 -47
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +187 -188
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +1202 -1192
- package/dist/hotel.js.br +0 -0
- package/dist/{index-36d9ed45.js → index-5e1ea6f0.js} +14 -16
- package/dist/index-5e1ea6f0.js.br +0 -0
- package/dist/index-7ef3288b.cjs +1 -0
- package/dist/polyfill.cjs +2 -2
- package/dist/polyfill.js +2 -2
- package/dist/polyfill.js.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-3184bffd.cjs +0 -1
- package/dist/ActionField-82ef422e.js.br +0 -0
- package/dist/AvailabilitySkeleton-528d40ef.cjs +0 -1
- package/dist/AvailabilitySkeleton-ec092c09.js +0 -203
- package/dist/AvailabilitySkeleton-ec092c09.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-5692c5b2.cjs +0 -5
- package/dist/DateField.vue_vue_type_style_index_0_lang-d5a1efd5.js.br +0 -0
- package/dist/Field-7137ef85.js.br +0 -0
- package/dist/Field-b1690485.cjs +0 -1
- package/dist/NumberField.vue_vue_type_style_index_0_lang-8c28c1dd.cjs +0 -1
- package/dist/NumberField.vue_vue_type_style_index_0_lang-eebde8cd.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5e1192e9.js +0 -19741
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5e1192e9.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-c0715ca3.cjs +0 -850
- package/dist/ThankYou-433bd249.js.br +0 -0
- package/dist/ThankYou-817b93d0.cjs +0 -54
- package/dist/_-048b5217.js.br +0 -0
- package/dist/_-120d9090.cjs +0 -1
- package/dist/_commonjsHelpers-10dfc225.js +0 -8
- package/dist/_commonjsHelpers-87b0abe8.cjs +0 -1
- package/dist/applyGiftCard-45cf782e.js.br +0 -0
- package/dist/applyGiftCard-f1b620cc.cjs +0 -1
- package/dist/event-3ef40faf.js.br +0 -0
- package/dist/event-d531df9d.cjs +0 -1
- package/dist/index-36d9ed45.js.br +0 -0
- package/dist/index-8309eba2.cjs +0 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";const u=require("./SelectField.vue_vue_type_style_index_0_lang-03794d02.cjs"),xn=require("./_commonjsHelpers-6763f629.cjs"),sr=require("./applyGiftCard-ba1da572.cjs"),xo=require("./ActionField-86389dfe.cjs"),Oo=require("./index-7ef3288b.cjs"),wo=require("./DateField.vue_vue_type_style_index_0_lang-f99302dc.cjs"),se=require("./_-917dcead.cjs"),To=["top","right","bottom","left"],lr=["start","end"],ur=To.reduce((n,i)=>n.concat(i,i+"-"+lr[0],i+"-"+lr[1]),[]),Qe=Math.min,Ee=Math.max,So={left:"right",right:"left",bottom:"top",top:"bottom"},Co={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 de(n){return n.split("-")[0]}function ae(n){return n.split("-")[1]}function Ur(n){return n==="x"?"y":"x"}function On(n){return n==="y"?"height":"width"}function ot(n){return["top","bottom"].includes(de(n))?"y":"x"}function wn(n){return Ur(ot(n))}function Xr(n,i,t){t===void 0&&(t=!1);const e=ae(n),r=wn(n),o=On(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 Ro(n){const i=bt(n);return[yt(n),i,yt(i)]}function yt(n){return n.replace(/start|end/g,i=>Co[i])}function Io(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 ko(n,i,t,e){const r=ae(n);let o=Io(de(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=>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 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=wn(i),s=On(a),l=de(i),c=o==="y",f=e.x+e.width/2-r.width/2,v=e.y+e.height/2-r.height/2,h=e[s]/2-r[s]/2;let d;switch(l){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:v};break;case"left":d={x:e.x-r.width,y:v};break;default:d={x:e.x,y:e.y}}switch(ae(i)){case"start":d[a]-=h*(t&&c?-1:1);break;case"end":d[a]+=h*(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),l=await(a.isRTL==null?void 0:a.isRTL(i));let c=await a.getElementRects({reference:n,floating:i,strategy:r}),{x:f,y:v}=cr(c,e,l),h=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:v,initialPlacement:e,placement:h,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:n,floating:i}});if(f=y??f,v=b??v,d={...d,[m]:{...d[m],...E}},x&&p<=50){p++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(c=x.rects===!0?await a.getElementRects({reference:n,floating:i,strategy:r}):x.rects),{x:f,y:v}=cr(c,h,l)),g=-1;continue}}return{x:f,y:v,placement:h,strategy:r,middlewareData:d}};async function kt(n,i){var t;i===void 0&&(i={});const{x:e,y:r,platform:o,rects:a,elements:s,strategy:l}=n,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:v="floating",altBoundary:h=!1,padding:d=0}=Te(i,n),p=Yr(d),m=s[h?v==="floating"?"reference":"floating":v],_=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:l})),y=v==="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:l}):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:l}=i,{element:c,padding:f=0}=Te(n,i)||{};if(c==null)return{};const v=Yr(f),h={x:t,y:e},d=wn(r),p=On(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]-h[d]-o.floating[p],x=h[d]-o.reference[d],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let k=C?C[b]:0;(!k||!await(a.isElement==null?void 0:a.isElement(C)))&&(k=s.floating[b]||o.floating[p]);const O=E/2-x/2,R=k/2-g[p]/2-1,T=Qe(v[_],R),D=Qe(v[y],R),N=T,$=k-g[p]-D,z=k/2-g[p]/2+O,H=Qt(N,z,$),w=!l.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]:h[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=>de(r)===r)).filter(r=>n?ae(r)===n||(i?yt(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:l,elements:c}=i,{crossAxis:f=!1,alignment:v,allowedPlacements:h=ur,autoAlignment:d=!0,...p}=Te(n,i),g=v!==void 0||h===ur?Mo(v||null,d,h):h,m=await kt(i,p),_=((t=a.autoPlacement)==null?void 0:t.index)||0,y=g[_];if(y==null)return{};const b=Xr(y,o,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(s!==y)return{reset:{placement:g[0]}};const E=[m[de(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 k=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]),R=((r=k.filter(T=>T[2].slice(0,ae(T[0])?2:3).every(D=>D<=0))[0])==null?void 0:r[0])||k[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:l,elements:c}=i,{mainAxis:f=!0,crossAxis:v=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...m}=Te(n,i);if((t=o.arrow)!=null&&t.alignmentOffset)return{};const _=de(r),y=de(s)===s,b=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=h||(y||!g?[bt(s)]:Ro(s));!h&&p!=="none"&&E.push(...ko(s,g,p,b));const x=[s,...E],C=await kt(i,m),k=[];let O=((e=o.flip)==null?void 0:e.overflows)||[];if(f&&k.push(C[_]),v){const N=Xr(r,a,b);k.push(C[N[0]],C[N[1]])}if(O=[...O,{placement:r,overflows:k}],!k.every(N=>N<=0)){var R,T;const N=(((R=o.flip)==null?void 0:R.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 Lo(n,i){const{placement:t,platform:e,elements:r}=n,o=await(e.isRTL==null?void 0:e.isRTL(r.floating)),a=de(t),s=ae(t),l=ot(t)==="y",c=["left","top"].includes(a)?-1:1,f=o&&l?-1:1,v=Te(i,n);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return s&&typeof p=="number"&&(d=s==="end"?p*-1:p),l?{x:d*f,y:h*c}:{x:h*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}}},...l}=Te(n,i),c={x:t,y:e},f=await kt(i,l),v=ot(de(r)),h=Ur(v);let d=c[h],p=c[v];if(o){const m=h==="y"?"top":"left",_=h==="y"?"bottom":"right",y=d+f[m],b=d-f[_];d=Qt(y,d,b)}if(a){const m=v==="y"?"top":"left",_=v==="y"?"bottom":"right",y=p+f[m],b=p-f[_];p=Qt(y,p,b)}const g=s.fn({...i,[h]:d,[v]: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),l=await kt(i,s),c=de(t),f=ae(t),v=ot(t)==="y",{width:h,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-l[p],_=h-l[g],y=!i.middlewareData.shift;let b=m,E=_;if(v){const C=h-l.left-l.right;E=f||y?Qe(_,C):C}else{const C=d-l.top-l.bottom;b=f||y?Qe(m,C):C}if(y&&!f){const C=Ee(l.left,0),k=Ee(l.right,0),O=Ee(l.top,0),R=Ee(l.bottom,0);v?E=h-2*(C!==0||k!==0?C+k:Ee(l.left,l.right)):b=d-2*(O!==0||R!==0?O+R:Ee(l.top,l.bottom))}await a({...i,availableWidth:E,availableHeight:b});const x=await r.getDimensions(o.floating);return h!==x.width||d!==x.height?{reset:{rects:!0}}:{}}}};function re(n){var i;return((i=n.ownerDocument)==null?void 0:i.defaultView)||window}function ue(n){return re(n).getComputedStyle(n)}const fr=Math.min,Xe=Math.max,Et=Math.round;function Kr(n){const i=ue(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 Jr(n)?(n.nodeName||"").toLowerCase():""}let ut;function Zr(){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 ce(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 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}=ue(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 qt(n){const i=/firefox/i.test(Zr()),t=ue(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 Tn(n){return["html","body","#document"].includes(ye(n))}function qr(n){return ge(n)?n:n.contextElement}const ei={x:1,y:1};function ke(n){const i=qr(n);if(!ce(i))return ei;const t=i.getBoundingClientRect(),{width:e,height:r,fallback:o}=Kr(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 l=ei;i&&(e?ge(e)&&(l=ke(e)):l=ke(n));const c=s?re(s):window,f=!Qr()&&t;let v=(a.left+(f&&((r=c.visualViewport)==null?void 0:r.offsetLeft)||0))/l.x,h=(a.top+(f&&((o=c.visualViewport)==null?void 0:o.offsetTop)||0))/l.y,d=a.width/l.x,p=a.height/l.y;if(s){const g=re(s),m=e&&ge(e)?re(e):e;let _=g.frameElement;for(;_&&e&&m!==g;){const y=ke(_),b=_.getBoundingClientRect(),E=getComputedStyle(_);b.x+=(_.clientLeft+parseFloat(E.paddingLeft))*y.x,b.y+=(_.clientTop+parseFloat(E.paddingTop))*y.y,v*=y.x,h*=y.y,d*=y.x,p*=y.y,v+=b.x,h+=b.y,_=re(_).frameElement}}return{width:d,height:p,top:h,right:v+d,bottom:h+p,left:v,x:v,y:h}}function me(n){return((Jr(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 ti(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 ni(n){const i=et(n);return Tn(i)?i.ownerDocument.body:ce(i)&&Nt(i)?i:ni(i)}function Pt(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||[],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 l=a.clientWidth,c=a.clientHeight,f=0,v=0;if(s){l=s.width,c=s.height;const h=Qr();(h||!h&&r==="fixed")&&(f=s.offsetLeft,v=s.offsetTop)}return{width:l,height:c,x:f,y:v}}(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,l=ce(e)?ke(e):{x:1,y:1};return{width:e.clientWidth*l.x,height:e.clientHeight*l.y,x:s*l.x,y:a*l.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),l=Xe(r.scrollHeight,r.clientHeight,a.scrollHeight,a.clientHeight);let c=-o.scrollLeft+ti(e);const f=-o.scrollTop;return ue(a).direction==="rtl"&&(c+=Xe(r.clientWidth,a.clientWidth)-s),{width:s,height:l,x:c,y:f}}(me(n)))}function vr(n){return ce(n)&&ue(n).position!=="fixed"?n.offsetParent:null}function pr(n){const i=re(n);let t=vr(n);for(;t&&$o(t)&&ue(t).position==="static";)t=vr(t);return t&&(ye(t)==="html"||ye(t)==="body"&&ue(t).position==="static"&&!qt(t))?i:t||function(e){let r=et(e);for(;ce(r)&&!Tn(r);){if(qt(r))return r;r=et(r)}return null}(n)||i}function Ho(n,i,t){const e=ce(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)),ce(i)){const l=qe(i,!0);s.x=l.x+i.clientLeft,s.y=l.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 v=f.get(c);if(v)return v;let h=Pt(c).filter(m=>ge(m)&&ye(m)!=="body"),d=null;const p=ue(c).position==="fixed";let g=p?et(c):c;for(;ge(g)&&!Tn(g);){const m=ue(g),_=qt(g);(p?_||d:_||m.position!=="static"||!d||!["absolute","fixed"].includes(d.position))?d=m:h=h.filter(y=>y!==g),g=et(g)}return f.set(c,h),h}(i,this._c):[].concat(t),a=[...o,e],s=a[0],l=a.reduce((c,f)=>{const v=hr(i,f,r);return c.top=Xe(v.top,c.top),c.right=fr(v.right,c.right),c.bottom=fr(v.bottom,c.bottom),c.left=Xe(v.left,c.left),c},hr(i,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(n){let{rect:i,offsetParent:t,strategy:e}=n;const r=ce(t),o=me(t);if(t===o)return i;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((r||!r&&e!=="fixed")&&((ye(t)!=="body"||Nt(o))&&(a=At(t)),ce(t))){const c=qe(t);s=ke(t),l.x=c.x+t.clientLeft,l.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+l.x,y:i.y*s.y-a.scrollTop*s.y+l.y}},isElement:ge,getDimensions:function(n){return ce(n)?Kr(n):n.getBoundingClientRect()},getOffsetParent:pr,getDocumentElement:me,getScale:ke,async getElementRects(n){let{reference:i,floating:t,strategy:e}=n;const r=this.getOffsetParent||pr,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=>ue(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 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 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 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 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`]),[]),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",ai=()=>u.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=>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,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(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 l,c;return o.startsWith("top")||o.startsWith("bottom")?l=r.reference.width:c=r.reference.height,this.$_innerNode.style[e==="min"?"minWidth":e==="max"?"maxWidth":"width"]=l!=null?`${l}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 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"&&(ii?(document.addEventListener("touchstart",Pr,xe?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",Yo,xe?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Pr,!0),window.addEventListener("click",Xo,!0)),window.addEventListener("resize",Jo));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 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]&&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 Ko(n,i){const t=n.popperNode();return n.$_mouseDownContains||t.contains(i.target)}function xr(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,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 l=((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 l>=0&&l<=1&&c>=0&&c<=1}const Qo={extends:ai()},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 u.openBlock(),u.createElementBlock("div",{ref:"reference",class:u.normalizeClass(["v-popper",{"v-popper--shown":n.slotData.isShown}])},[u.renderSlot(n.$slots,"default",u.normalizeProps(u.guardReactiveProps(n.slotData)))],2)}const ea=Dt(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 ht;function tn(){tn.init||(tn.init=!0,ht=ta()!==-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(),u.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 na=u.withScopeId();u.pushScopeId("data-v-b329ee4c");const ra={class:"resize-observer",tabindex:"-1"};u.popScopeId();const ia=na((n,i,t,e,r,o)=>(u.openBlock(),u.createBlock("div",ra)));Mt.render=ia;Mt.__scopeId="data-v-b329ee4c";Mt.__file="src/components/ResizeObserver.vue";const li=(n="theme")=>({computed:{themeClass(){return Uo(this[n])}}}),oa=u.defineComponent({name:"VPopperContent",components:{ResizeObserver:Mt},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=u.createBaseVNode("div",{class:"v-popper__arrow-outer"},null,-1),ua=u.createBaseVNode("div",{class:"v-popper__arrow-inner"},null,-1),ca=[la,ua];function fa(n,i,t,e,r,o){const a=u.resolveComponent("ResizeObserver");return u.openBlock(),u.createElementBlock("div",{id:n.popperId,ref:"popover",class:u.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:u.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]=u.withKeys(s=>n.autoHide&&n.$emit("hide"),["esc"]))},[u.createBaseVNode("div",{class:"v-popper__backdrop",onClick:i[0]||(i[0]=s=>n.autoHide&&n.$emit("hide"))}),u.createBaseVNode("div",{class:"v-popper__wrapper",style:u.normalizeStyle(n.result?{transformOrigin:n.result.transformOrigin}:void 0)},[u.createBaseVNode("div",sa,[n.mounted?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createBaseVNode("div",null,[u.renderSlot(n.$slots,"default")]),n.handleResize?(u.openBlock(),u.createBlock(a,{key:0,onNotify:i[1]||(i[1]=s=>n.$emit("resize",s))})):u.createCommentVNode("",!0)],64)):u.createCommentVNode("",!0)],512),u.createBaseVNode("div",{ref:"arrow",class:"v-popper__arrow-container",style:u.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=Dt(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=u.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=u.resolveComponent("PopperContent"),s=u.resolveComponent("Popper");return u.openBlock(),u.createBlock(s,{ref:"popper",theme:n.finalTheme,"target-nodes":n.getTargetNodes,"popper-node":()=>n.$refs.popperContent.$el,class:u.normalizeClass([n.themeClass])},{default:u.withCtx(({popperId:l,isShown:c,shouldMountContent:f,skipTransition:v,autoHide:h,show:d,hide:p,handleResize:g,onResize:m,classes:_,result:y})=>[u.renderSlot(n.$slots,"default",{shown:c,show:d,hide:p}),u.createVNode(a,{ref:"popperContent","popper-id":l,theme:n.finalTheme,shown:c,mounted:f,"skip-transition":v,"auto-hide":h,"handle-resize":g,classes:_,result:y,onHide:p,onResize:m},{default:u.withCtx(()=>[u.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 Sn=Dt(da,[["render",ha]]),va={...Sn,name:"VDropdown",vPopperTheme:"dropdown"},pa={...Sn,name:"VMenu",vPopperTheme:"menu"},ga={...Sn,name:"VTooltip",vPopperTheme:"tooltip"},ma=u.defineComponent({name:"VTooltipDirective",components:{Popper:ai(),PopperContent:ui},mixins:[ci],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}}}),_a=["innerHTML"],ya=["textContent"];function ba(n,i,t,e,r,o){const a=u.resolveComponent("PopperContent"),s=u.resolveComponent("Popper");return u.openBlock(),u.createBlock(s,u.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:u.withCtx(({popperId:l,isShown:c,shouldMountContent:f,skipTransition:v,autoHide:h,hide:d,handleResize:p,onResize:g,classes:m,result:_})=>[u.createVNode(a,{ref:"popperContent",class:u.normalizeClass({"v-popper--tooltip-loading":n.loading}),"popper-id":l,theme:n.theme,shown:c,mounted:f,"skip-transition":v,"auto-hide":h,"handle-resize":p,classes:m,result:_,onHide:d,onResize:g},{default:u.withCtx(()=>[n.html?(u.openBlock(),u.createElementBlock("div",{key:0,innerHTML:n.finalContent},null,8,_a)):(u.openBlock(),u.createElementBlock("div",{key:1,textContent:u.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=Dt(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=tt(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 Ft,nt,xa=0;function Oa(){if(Ft)return;nt=u.ref([]),Ft=u.createApp({name:"VTooltipDirectiveApp",setup(){return{directives:nt}},render(){return this.directives.map(i=>u.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),Ft.mount(n)}function wa(n,i,t){Oa();const e=u.ref(di(n,i,t)),r=u.ref(!1),o={id:xa++,options:e,shown:r};return nt.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=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(fi)}function Or(n,{value:i,modifiers:t}){const e=di(n,i,t);if(!e.content||tt(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:Or,updated:Or,beforeUnmount(n){hi(n)}};function wr(n){n.addEventListener("click",vi),n.addEventListener("touchstart",pi,xe?{passive:!0}:!1)}function Tr(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)&&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 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 Ia=xn.getAugmentedNamespace(u.vue_esmBundler);(function(n,i){(function(e,r){n.exports=r(Ia)})(typeof self<"u"?self:xn.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,l){o.o(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:l})},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 l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:a}),s&2&&typeof a!="string")for(var c in a)o.d(l,c,function(f){return a[f]}.bind(null,c));return l},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"),l={};l[s]="z",e.exports=String(l)==="[object z]"},"0366":function(e,r,o){var a=o("1c0b");e.exports=function(s,l,c){if(a(s),l===void 0)return s;switch(c){case 0:return function(){return s.call(l)};case 1:return function(f){return s.call(l,f)};case 2:return function(f,v){return s.call(l,f,v)};case 3:return function(f,v,h){return s.call(l,f,v,h)}}return function(){return s.apply(l,arguments)}}},"06cf":function(e,r,o){var a=o("83ab"),s=o("d1e7"),l=o("5c6c"),c=o("fc6a"),f=o("c04e"),v=o("5135"),h=o("0cfb"),d=Object.getOwnPropertyDescriptor;r.f=a?d:function(g,m){if(g=c(g),m=f(m,!0),h)try{return d(g,m)}catch{}if(v(g,m))return l(!s.f.call(g,m),g[m])}},"0cfb":function(e,r,o){var a=o("83ab"),s=o("d039"),l=o("cc12");e.exports=!a&&!s(function(){return Object.defineProperty(l("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"),l=o("2d00"),c=s("species");e.exports=function(f){return l>=51||!a(function(){var v=[],h=v.constructor={};return h[c]=function(){return{foo:1}},v[f](Boolean).foo!==1})}},"23cb":function(e,r,o){var a=o("a691"),s=Math.max,l=Math.min;e.exports=function(c,f){var v=a(c);return v<0?s(v+f,0):l(v,f)}},"23e7":function(e,r,o){var a=o("da84"),s=o("06cf").f,l=o("9112"),c=o("6eeb"),f=o("ce4e"),v=o("e893"),h=o("94ca");e.exports=function(d,p){var g=d.target,m=d.global,_=d.stat,y,b,E,x,C,k;if(m?b=a:_?b=a[g]||f(g,{}):b=(a[g]||{}).prototype,b)for(E in p){if(C=p[E],d.noTargetGet?(k=s(b,E),x=k&&k.value):x=b[E],y=h(m?E:g+(_?".":"#")+E,d.forced),!y&&x!==void 0){if(typeof C==typeof x)continue;v(C,x)}(d.sham||x&&x.sham)&&l(C,"sham",!0),c(b,E,C,d)}}},"241c":function(e,r,o){var a=o("ca84"),s=o("7839"),l=s.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(f){return a(f,l)}},"2d00":function(e,r,o){var a=o("da84"),s=o("342f"),l=a.process,c=l&&l.versions,f=c&&c.v8,v,h;f?(v=f.split("."),h=v[0]+v[1]):s&&(v=s.match(/Edge\/(\d+)/),(!v||v[1]>=74)&&(v=s.match(/Chrome\/(\d+)/),v&&(h=v[1]))),e.exports=h&&+h},"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"),l=o("825a"),c=o("df75");e.exports=a?Object.defineProperties:function(v,h){l(v);for(var d=c(h),p=d.length,g=0,m;p>g;)s.f(v,m=d[g++],h[m]);return v}},"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"),l="".split;e.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return s(c)=="String"?l.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"),l=o("23cb"),c=function(f){return function(v,h,d){var p=a(v),g=s(p.length),m=l(d,g),_;if(f&&h!=h){for(;g>m;)if(_=p[m++],_!=_)return!0}else for(;g>m;m++)if((f||m in p)&&p[m]===h)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,l=o("1dde"),c=o("ae40"),f=l("filter"),v=c("filter");a({target:"Array",proto:!0,forced:!f||!v},{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(l){return l>0?s(a(l),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(l,c){return s[l]||(s[l]=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"),l=o("7418"),c=o("825a");e.exports=a("Reflect","ownKeys")||function(v){var h=s.f(c(v)),d=l.f;return d?h.concat(d(v)):h}},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"),l="["+s+"]",c=RegExp("^"+l+l+"*"),f=RegExp(l+l+"*$"),v=function(h){return function(d){var p=String(a(d));return h&1&&(p=p.replace(c,"")),h&2&&(p=p.replace(f,"")),p}};e.exports={start:v(1),end:v(2),trim:v(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"),l=o("b622"),c=l("species");e.exports=function(f,v){var h;return s(f)&&(h=f.constructor,typeof h=="function"&&(h===Array||s(h.prototype))?h=void 0:a(h)&&(h=h[c],h===null&&(h=void 0))),new(h===void 0?Array:h)(v===0?0:v)}},"69f3":function(e,r,o){var a=o("7f9a"),s=o("da84"),l=o("861d"),c=o("9112"),f=o("5135"),v=o("f772"),h=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(!l(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 k=v("state");h[k]=!0,p=function(O,R){return c(O,k,R),R},g=function(O){return f(O,k)?O[k]:{}},m=function(O){return f(O,k)}}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 l=a.__vccOpts||a;for(const[c,f]of s)l[c]=f;return l}},"6eeb":function(e,r,o){var a=o("da84"),s=o("9112"),l=o("5135"),c=o("ce4e"),f=o("8925"),v=o("69f3"),h=v.get,d=v.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"&&!l(_,"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"&&h(this).source||f(this)})},7156:function(e,r,o){var a=o("861d"),s=o("d2bb");e.exports=function(l,c,f){var v,h;return s&&typeof(v=c.constructor)=="function"&&v!==f&&a(h=v.prototype)&&h!==f.prototype&&s(l,h),l}},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"),l=o("7839"),c=o("d012"),f=o("1be4"),v=o("cc12"),h=o("f772"),d=">",p="<",g="prototype",m="script",_=h("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=v("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,k=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch{}k=C?E(C):x();for(var O=l.length;O--;)delete k[g][l[O]];return k()};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=k(),T===void 0?D:s(D,T)}},"7f9a":function(e,r,o){var a=o("da84"),s=o("8925"),l=a.WeakMap;e.exports=typeof l=="function"&&/native code/.test(s(l))},"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"),l=o("5c6c");e.exports=function(c,f,v){var h=a(f);h in c?s.f(c,h,l(0,v)):c[h]=v}},"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,l;(function(c,f){s=[],a=f,l=typeof a=="function"?a.apply(r,s):a,l!==void 0&&(e.exports=l)})(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 v=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,d=v.exec(C.stack)||h.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(l){return s.call(l)}),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"),l=o("5c6c");e.exports=a?function(c,f,v){return s.f(c,f,l(1,v))}:function(c,f,v){return c[f]=v,c}},"94ca":function(e,r,o){var a=o("d039"),s=/#|\.prototype\./,l=function(d,p){var g=f[c(d)];return g==h?!0:g==v?!1:typeof p=="function"?a(p):!!p},c=l.normalize=function(d){return String(d).replace(s,".").toLowerCase()},f=l.data={},v=l.NATIVE="N",h=l.POLYFILL="P";e.exports=l},"99af":function(e,r,o){var a=o("23e7"),s=o("d039"),l=o("e8b5"),c=o("861d"),f=o("7b0b"),v=o("50c4"),h=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:l(O)},k=!E||!x;a({target:"Array",proto:!0,forced:k},{concat:function(R){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=v(P.length),N+w>y)throw TypeError(b);for(z=0;z<w;z++,N++)z in P&&h(D,N,P[z])}else{if(N>=y)throw TypeError(b);h(D,N++,P)}return D.length=N,D}})},"9bf2":function(e,r,o){var a=o("83ab"),s=o("0cfb"),l=o("825a"),c=o("c04e"),f=Object.defineProperty;r.f=a?f:function(h,d,p){if(l(h),d=c(d,!0),l(p),s)try{return f(h,d,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported");return"value"in p&&(h[d]=p.value),h}},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"),l=o("94ca"),c=o("6eeb"),f=o("5135"),v=o("c6b6"),h=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,k=v(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(l(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&&(k?p(function(){C.valueOf.call(w)}):v(w)!=E)?h(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,N;T.length>D;D++)f(x,N=T[D])&&!f(R,N)&&y(R,N,_(x,N));R.prototype=C,C.constructor=R,c(s,E,R)}},ae40:function(e,r,o){var a=o("83ab"),s=o("d039"),l=o("5135"),c=Object.defineProperty,f={},v=function(h){throw h};e.exports=function(h,d){if(l(f,h))return f[h];d||(d={});var p=[][h],g=l(d,"ACCESSORS")?d.ACCESSORS:!1,m=l(d,0)?d[0]:v,_=l(d,1)?d[1]:void 0;return f[h]=!!p&&!s(function(){if(g&&!a)return!0;var y={length:-1};g?c(y,1,{enumerable:!0,get:v}):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"),l=o("5135"),c=o("90e3"),f=o("4930"),v=o("fdbf"),h=s("wks"),d=a.Symbol,p=v?d:d&&d.withoutSetter||c;e.exports=function(g){return l(h,g)||(f&&l(d,g)?h[g]=d[g]:h[g]=p("Symbol."+g)),h[g]}},b727:function(e,r,o){var a=o("0366"),s=o("44ad"),l=o("7b0b"),c=o("50c4"),f=o("65f0"),v=[].push,h=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,k){for(var O=l(E),R=s(O),T=a(x,C,3),D=c(R.length),N=0,$=k||f,z=p?$(E,D):g?$(E,0):void 0,H,w;D>N;N++)if((b||N in R)&&(H=R[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:v.call(z,H)}else if(_)return!1}return y?-1:m||_?_:z}};e.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6)}},c04e:function(e,r,o){var a=o("861d");e.exports=function(s,l){if(!a(s))return s;var c,f;if(l&&typeof(c=s.toString)=="function"&&!a(f=c.call(s))||typeof(c=s.valueOf)=="function"&&!a(f=c.call(s))||!l&&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"),l="__core-js_shared__",c=a[l]||s(l,{});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"),l=o("4d64").indexOf,c=o("d012");e.exports=function(f,v){var h=s(f),d=0,p=[],g;for(g in h)!a(c,g)&&a(h,g)&&p.push(g);for(;v.length>d;)a(h,g=v[d++])&&(~l(p,g)||p.push(g));return p}},cc12:function(e,r,o){var a=o("da84"),s=o("861d"),l=a.document,c=s(l)&&s(l.createElement);e.exports=function(f){return c?l.createElement(f):{}}},ce4e:function(e,r,o){var a=o("da84"),s=o("9112");e.exports=function(l,c){try{s(a,l,c)}catch{a[l]=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"),l=function(c){return typeof c=="function"?c:void 0};e.exports=function(c,f){return arguments.length<2?l(a[c])||l(s[c]):a[c]&&a[c][f]||s[c]&&s[c][f]}},d1e7:function(e,r,o){var a={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,l=s&&!a.call({1:2},1);r.f=l?function(f){var v=s(this,f);return!!v&&v.enumerable}:a},d2bb:function(e,r,o){var a=o("825a"),s=o("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var l=!1,c={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(c,[]),l=c instanceof Array}catch{}return function(h,d){return a(h),s(d),l?f.call(h,d):h.__proto__=d,h}}():void 0)},d3b7:function(e,r,o){var a=o("00ee"),s=o("6eeb"),l=o("b041");a||s(Object.prototype,"toString",l,{unsafe:!0})},da84:function(e,r,o){(function(a){var s=function(l){return l&&l.Math==Math&&l};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"),l=o("06cf"),c=o("9bf2");e.exports=function(f,v){for(var h=s(v),d=c.f,p=l.f,g=0;g<h.length;g++){var m=h[g];a(f,m)||d(f,m,p(v,m))}}},e8b5:function(e,r,o){var a=o("c6b6");e.exports=Array.isArray||function(l){return a(l)=="Array"}},f5df:function(e,r,o){var a=o("00ee"),s=o("c6b6"),l=o("b622"),c=l("toStringTag"),f=s(function(){return arguments}())=="Arguments",v=function(h,d){try{return h[d]}catch{}};e.exports=a?s:function(h){var d,p,g;return h===void 0?"Undefined":h===null?"Null":typeof(p=v(d=Object(h),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"),l=a("keys");e.exports=function(c){return l[c]||(l[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 l=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);l&&(o.p=l[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"),v={key:0},h=["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",v,[(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,h)}),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=k(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 k(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(l){return a(s(l))}},fdbf:function(e,r,o){var a=o("4930");e.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}})})})(_i);var ka=_i.exports;const Sr=xn.getDefaultExportFromCjs(ka);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 l=t[a],c=e[s-1],f=l.getIndex();l.disconnect(),c?l.connect(c,c.next):l.connect(void 0,t[0]);var v=l.getIndex();return[f,v]})}var Ba=function(){function n(t,e,r,o,a,s,l,c){this.prevList=t,this.list=e,this.added=r,this.removed=o,this.changed=a,this.maintained=s,this.changedBeforeAdded=l,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],l=o[1],c=e[a],f=c[0],v=c[1];if(s!==l)return r.push([f,v]),!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=[],l=n.map(r),c=i.map(r),f=new e,v=new e,h=[],d=[],p={},g=[],m=0,_=0;return l.forEach(function(y,b){f.set(y,b)}),c.forEach(function(y,b){v.set(y,b)}),l.forEach(function(y,b){var E=v.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,h.push([E-_,b-m]),d.push(b===E),E!==b&&g.push([E,b]))}),a.reverse(),new Ba(n,i,o,a,g,s,h,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 Cr=Va;/*! *****************************************************************************
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
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 $t(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(ja(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=yi(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value;this[l]=e[l]}}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 l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];e.apply(void 0,$t(l)),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 l=this._eventHandler[t];if(l){var c=0;try{for(var f=yi(l),v=f.next();!v.done;v=f.next()){var h=v.value;if(h===e){l.splice(c,1),l.length<=0&&delete this._eventHandler[t];break}c++}}catch(d){r={error:d}}finally{try{v&&!v.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}return this},n.VERSION="3.0.4",n}(),V=nn;function Cn(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 Rn(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=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 Cn(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=$a(r.versionTest.toLowerCase(),i)||e),e=rn(e),!0)}),{preset:t,version:e}}function Fe(n,i){var t={brand:"",version:"-1"};return Cn(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 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"}],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}],an=[{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!!He(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=He(on,i),a=o.preset,s=o.version,l=He(wi,i),c=l.preset,f=l.version,v=He(xi,i);if(e.chromium=!!v.preset,e.chromiumVersion=v.version,!e.chromium){var h=He(an,i);e.webkit=!!h.preset,e.webkitVersion=h.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:!!Fe(Oi,t).brand||Ti(Ei())},l={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&Cn(an,function(p){return Pi(t,p)});var c=Fe(xi,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 v=bi(wi,function(p){return new RegExp(""+p.test,"g").exec(a)});if(l.name=v?v.id:"",n&&(l.version=n.platformVersion),e&&e.length){var h=Fe(on,e);s.name=h.brand||s.name,s.version=h.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&&(l.name=r?"ios":"mac"),l.name==="ios"&&s.webview&&(s.version="-1"),l.version=rn(l.version),s.version=rn(s.version),l.majorVersion=parseInt(l.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:l,isMobile:r,isHints:!0}}function Wa(n){return typeof n>"u"&&Fa()?Ga():Ha(n)}function Ua(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 Xa(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 Ya(){var n=In();return n[n.length-1]}function Ka(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 Za(){var n=In();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 Rr(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?Rr(n[0],n[1]):function(t,e){return Rr(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(kn(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,sn,{get:function(){return i}}),i}function kn(n,i){var t,e;n[sn]||rs(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=kn(n);return e[i]||(e[i]=ts(t)),e[i]}function is(n,i,t){var e=t.get;function r(){var s=kn(this,!0);return i in s||(s[i]=ns(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}/*! *****************************************************************************
|
|
16
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
17
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
18
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
19
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
20
|
+
|
|
21
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
22
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
23
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
24
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
25
|
+
|
|
26
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
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,os=2,as=4,Me=6,ss=8,ls=16,ze=24,zt=30,xt="left",fn="right",dn="middle",Ci={1:xt,2:dn,3:fn},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""}(),hn={"-webkit-user-select":"none","-ms-user-select":"none","-moz-user-select":"none","user-select":"none","-webkit-user-drag":"none"},kr=function(n){for(var i=[],t=0,e=n.length;t<e;t++)i.push(n[t]);return i},Ii=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=kr(r.childNodes)}else t=kr(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 Ii(o)}),i||(t=t.length>=1?t[0]:void 0));return t},Ie=Q.requestAnimationFrame||Q.webkitRequestAnimationFrame,Ge=Q.cancelAnimationFrame||Q.webkitCancelAnimationFrame;if(Ie&&!Ge){var Wt={},ms=Ie;Ie=function(n){var i=function(e){Wt[t]&&n(e)},t=ms(i);return Wt[t]=!0,t},Ge=function(n){delete Wt[n]}}else Ie&&Ge||(Ie=function(n){return Q.setTimeout(function(){n(Q.performance&&Q.performance.now&&Q.performance.now()||new Date().getTime())},16)},Ge=Q.clearTimeout);var _s=function(n){return Ie(n)},ys=function(n){Ge(n)},le=function(n,i){var t={};for(var e in n)e&&(t[e]=i(n[e],e));return t},ki=function(n,i){var t={};for(var e in n)e&&i(n[e],e)&&(t[e]=n[e]);return t},Nn=function(n,i){for(var t in n)if(t&&!i(n[t],t))return!1;return!0},We=function(n,i){return Nn(n,function(t,e){return t===i[e]})},Ut={},Ni=function(n,i){return Ut[i]||(Ut[i]=Es(i)),Ut[i](n)},Nr=function(n,i){return!n||!i?n:le(n,function(t,e){return Ni(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},bs=function(n){return 1/Math.pow(10,n)},Es=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}},Ps=function(n,i){return Math.atan2(i,n)*180/Math.PI},xs=function(n){var i=!0;return Object.keys(hn).forEach(function(t){(!n||n[t]!==hn[t])&&(i=!1)}),i},Os=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)},ws=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(l){o[l]=n.style[l],n.style[l]=s[l]})}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,l=s.axisManager,c=s.getEventInfo(),f=this._getRoundPos(t,e),v=f.roundPos,h=f.roundDepa,d=l.moveTo(v,h),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&&l.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([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]},Is=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},ks=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 le(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=le(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 Nn(t,function(o,a){return e(o,r[a],a)})},i.filter=function(t,e){var r=this._axis;return ki(t,function(o,a){return e(o,r[a],a)})},i.map=function(t,e){var r=this._axis;return le(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,gt="PointerEvent"in Q,As="MSPointerEvent"in Q,Ds=gt||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)},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,l=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,v=a.x,h=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:l,center:o,deltaX:c,deltaY:f,offsetX:v,offsetY:h,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||Ms(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}(),zs=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(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}(Bt),Bs=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),Ls=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),Vs=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(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],l=a[1];return s.id===l.id?{x:s.x-l.x,y:s.y-l.y}:{x:0,y:0}},i}(Bt),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 Dr(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(h){return h===0}))){var a=e.srcEvent?e.srcEvent:e;if(!a.__childrenAxesAlreadyChanged){var s=this._moveDistance||this._axisManager.get(t.axes),l;l=le(s,function(h,d){return h+(r[d]||0)}),this._moveDistance&&(this._moveDistance=this._axisManager.map(l,function(h,d){var p=d.circular,g=d.range;return p&&(p[0]||p[1])?rt(h,g,p):h})),this._isOutside&&this._axisManager.every(s,function(h,d){return!Di(h,d.range)})&&(this._isOutside=!1),s=this._atOutside(s),l=this._atOutside(l),(!this.options.nested||!this._isEndofAxis(r,s,l))&&(a.__childrenAxesAlreadyChanged=!0);var c={input:t,event:e};if(o){var f=this._animationManager.getDuration(l,s);this._animationManager.animateTo(l,f,c)}else{var v=!this._eventManager.triggerChange(l,s,c,!0);v&&(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),l=this._axisManager.get(),c=this._animationManager.getDisplacement(r),f=Mi(t.axes,c),v=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 h=this._animationManager.getDuration(v,s,o);h===0&&(v=Z({},l));var d={depaPos:l,destPos:v,duration:h,delta:this._axisManager.getDelta(l,v),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,l),m={input:t,event:e};g||p.duration===0?(g||this._eventManager.triggerChange(p.destPos,l,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],l=o.bounce,c=o.circular;return c[0]&&r<a||c[1]&&r>s?r:r<a?a-e._animationManager.interpolate(a-r,l[0]):r>s?s+e._animationManager.interpolate(r-s,l[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}(),Xt=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=le(e,function(l,c){return Is(Math.abs(l-t[c]),o._options.deceleration)});a=Object.keys(s).reduce(function(l,c){return Math.max(l,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)});Nn(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 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),l=this.eventManager.triggerAnimationStart(a),c=this.getUserControl(a);if(!l&&this.axisManager.every(c.destPos,function(v,h){return Ar(v,h.range,h.circular)})&&console.warn("You can't stop the 'animation' event when 'circular' is true."),l&&!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=ki(t,function(s,l){return o[l]!==s});return Object.keys(a).length?(a=this.axisManager.map(a,function(s,l){var c=l.range,f=l.circular;return f&&(f[0]||f[1])?s:Ai(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(le(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=le(t.destPos,function(l){return l}),a=this._initState(this._animateParam),s=function(){r._raf=null;var l=r._animateParam,c=r._getNextState(a),f=!r.eventManager.triggerChange(c.pos,a.pos);if(a=c,c.finished){l.destPos=r._getFinalPos(l.destPos,o),We(l.destPos,r.axisManager.get(Object.keys(l.destPos)))||r.eventManager.triggerChange(l.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=le(t,function(s,l){if(s>=e[l]-o&&s<=e[l]+o)return e[l];var c=r._getRoundUnit(s,l),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(pt(a.range[0]),pt(a.range[1]),pt(t)))}return o||r},n}(),Hs=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,l=(r=e?.duration)!==null&&r!==void 0?r:o.duration;if(e?.restart||l<=a){this.setTo(s,l-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*l-a,o.duration=l}}},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,l=le(a,function(d,p){return d<=s[p]?1:-1}),c=new Date().getTime()-o.startTime,f=(c+this._durationOffset)/o.duration,v=this._easing(f),h=this.axisManager.map(a,function(d,p,g){var m=f>=1?s[g]:d+o.delta[g]*(v-r._prevEasingPer)/(1-r._initialEasingPer),_=rt(m,p.range,p.circular);if(m!==_){var y=l[g]*(p.range[1]-p.range[0]);s[g]-=y,a[g]-=y}return _});return this._prevEasingPer=v,{pos:h,easingPer:v,finished:v>=1}},t._easing=function(e){return e>1?1:this._options.easing(e)},i}($s),Gs=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 Cs(a.options),a.axisManager=new ks(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=at,i.DIRECTION_LEFT=os,i.DIRECTION_RIGHT=as,i.DIRECTION_UP=ss,i.DIRECTION_DOWN=ls,i.DIRECTION_HORIZONTAL=Me,i.DIRECTION_VERTICAL=ze,i.DIRECTION_ALL=zt,cn([is],i.prototype,"holding",null),i=cn([es],i),i}(Se),Ws=function(n,i){if(i<0||i>90)return at;var t=Math.abs(n);return t>i&&t<180-i?ze:Me},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=Ii(t),this.options=Z({inputType:["touch","mouse","pointer"],inputKey:[Ri],inputButton:[xt],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=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,l=s.onEventStart(t,r,o);if(!(!l||!this._enabled||s.getTouches(t,o)>1)&&l.srcEvent.cancelable!==!1){var c=this.options.iOSEdgeSwipeThreshold;this._dragged=!1,this._isOverThreshold=!1,this._observer.hold(this,l),this._atRightEdge=Ir&&l.center.x>window.innerWidth-c,this._attachWindowEvent(s),a&&l.srcEvent.type!=="touchstart"&&l.srcEvent.preventDefault(),s.prevEvent=l}},i._onPanmove=function(t){var e=this,r=this.options,o=r.iOSEdgeSwipeThreshold,a=r.preventClickOnDrag,s=r.releaseOnScroll,l=r.inputKey,c=r.inputButton,f=r.threshold,v=r.thresholdAngle,h=this._activeEvent,d=h.onEventMove(t,l,c),p=h.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,v),m=ft(Me,this._direction,g),_=ft(ze,this._direction,g);if(h.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(k){return k!==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))),h.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=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 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 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 An=typeof window<"u",Ks=An?window.navigator.userAgent:"",Zs=An?"getComputedStyle"in window:!1,Js=/MSIE|Trident|Windows Phone|Edge/.test(Ks),Qs=An?"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 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=Ot(n.querySelectorAll(Ys(["["+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 ji(n,i){!Ne.length&&Bi(window,"resize",$i),n.__PREFIX__=i,Ne.push(n),Fi(n)}function ol(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&&Li(window,"resize",$i)}}function Fi(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=nl(n)||r;n.style[pn]=e/r*a+"px"}else{var a=tl(n)||e;n.style[Ze]=r/e*a+"px"}}function $i(){Ne.forEach(function(n){Fi(n)})}var Dn=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 l=!o.hasDataSize&&!o.hasLoading;o.onReady(l)}},o.options=Be({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){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?(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}(Dn),sl=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,l){var c=r.getLoader(s,{prefix:o});return c.check(),c.on("error",function(f){r.onError(l,f.target)}).on("preReady",function(f){var v=r.elementInfos[l];v.hasLoading=f.hasLoading,v.isSkip=f.isSkip;var h=r.checkPreReady(l);r.onPreReadyElement(l),h&&r.onPreReady()}).on("ready",function(f){var v=f.withPreReady,h=f.hasLoading,d=f.isSkip,p=r.elementInfos[l];p.hasLoading=h,p.isSkip=d;var g=v&&r.checkPreReady(l),m=r.checkReady(l);v&&r.onPreReadyElement(l),r.onReadyElement(l),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,l=r.prefix,c=Object.keys(s);if(s[a])return new s[a](e,r);var f=new al(e,r),v=Ot(e.querySelectorAll(c.join(", ")));f.setHasLoading(v.some(function(p){return zi(p,l)}));var h=!1,d=this.clone().on("error",function(p){f.onError(p.target)}).on("ready",function(){f.onReady(h)});return f.on("requestChildren",function(){var p=il(e,c,o.options.prefix);d.check(p).on("preReady",function(g){h=g.isReady,h||f.onPreReady()})}).on("reqeustReadyChildren",function(){d.check(v)}).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),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,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}(Dn),ul=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}(Dn),cl=function(n){Ve(i,n);function i(t){return t===void 0&&(t={}),n.call(this,Be({loaders:{img:ll,video:ul}},t))||this}return i}(sl);const fl=cl;/*! *****************************************************************************
|
|
29
|
+
Copyright (c) Microsoft Corporation.
|
|
30
|
+
|
|
31
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
32
|
+
purpose with or without fee is hereby granted.
|
|
33
|
+
|
|
34
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
35
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
36
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
37
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
38
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
39
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
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(v){a(v)}}function l(f){try{c(e.throw(f))}catch(v){a(v)}}function c(f){f.done?o(f.value):r(f.value).then(s,l)}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 l([c,f])}}function l(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 Mn(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(Mn(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"},fe={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"},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)},A=function(n){if(!n)throw new W(U.NOT_ATTACHED_TO_FLICKING,G.NOT_ATTACHED_TO_FLICKING);return n},zn=function(n){return[].slice.call(n)},Bn=function(n,i){var t;if(we(n))switch(n){case fe.PREV:t=0;break;case fe.CENTER:t=.5*i;break;case fe.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},pl=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=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],l=parseFloat(a);if(e<=0&&(o=o||"+"),!o)return null;var c=o==="+"?1:-1;s==="%"?t.percentage+=c*(l/100):t.absolute+=c*l,++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(zn(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"},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=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},ml=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},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")},Yt=function(n,i,t){return n>=i&&n<=t},Xi=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",l=t?parseFloat(o.borderLeftWidth||"0")+parseFloat(o.borderRightWidth||"0"):parseFloat(o.borderTopWidth||"0")+parseFloat(o.borderBottomWidth||"0");if(s)return r?a:a-l;var c=t?parseFloat(o.paddingLeft||"0")+parseFloat(o.paddingRight||"0"):parseFloat(o.paddingTop||"0")+parseFloat(o.paddingBottom||"0");return r?a+c+l:a+c}else{var f=t?"Width":"Height";return r?i["offset"+f]:i["client"+f]}},_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 l=s?e+a.left+a.right:e;o.style.width=l+"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}(),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}(),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}(),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: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(l){var c=document.createElement("div");return c.className=t._panelClass,c.dataset.elementIndex=l.toString(),c});s.forEach(function(l){a.appendChild(l)}),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,l=s.position,c=r.pos[K],f=e.circularEnabled?Wi(c,s.range.min,s.range.max):c;s.lookAt(f);var v=new V(B.MOVE,{isTrusted:r.isTrusted,holding:this.holding,direction:Oe(0,r.delta[K]),axesEvent:r});e.trigger(v),v.isCanceled()&&(s.lookAt(l),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,l=s.animatingContext,c=new V(B.MOVE_START,{isTrusted:o.isTrusted,holding:this.holding,direction:Oe(l.start,l.end),axesEvent:o});r.trigger(c),c.isCanceled()?a(X.DISABLED):a(X.ANIMATING).onChange(e)},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=!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,l=r.horizontal?s.offsetX:s.offsetY,c=new V(B.MOVE_START,{isTrusted:o.isTrusted,holding:this.holding,direction:Oe(0,-l),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 l=this._releaseEvent,c=l.inputEvent.srcEvent,f;if(c.type==="touchend"){var v=c,h=v.changedTouches[0];f=document.elementFromPoint(h.clientX,h.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),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 l=o.control,c=a.destPos[K],f=Math.max(a.duration,o.duration);try{l.moveToPosition(c,f,a)}catch{s(X.IDLE),a.setTo((r={},r[K]=o.camera.position,r),0)}},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.onHold=function(e){var r=e.flicking,o=e.axesEvent,a=e.transitTo,s=this._targetPanel,l=r.control;this._delta=0,r.control.updateInput(),r.changeOnHold&&s&&l.setActive(s,l.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,l=s.controller,c=l.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),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}(st),Sl=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 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 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}(),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?[-1,0]:[0,-1],releaseOnScroll:!0});var o=this._axes;o.connect(t.horizontal?[K,""]:["",K],this._panInput);var a=function(l){var c=q[l];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=pl(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,l=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),l.targetPanel&&f.control.setActive(l.targetPanel,f.control.activePanel,(a=r?.isTrusted)!==null&&a!==void 0?a:!1),Promise.resolve()}this._animatingContext={start:c,end:t,offset:0};var v=function(){var h,d,p=function(){o._animatingContext={start:0,end:0,offset:0}};s.once(q.FINISH,p),r?r.setTo((h={},h[K]=t,h),e):s.setTo((d={},d[K]=t,d),e)};return new Promise(function(h,d){var p=function(){s.off(q.HOLD,g),h()},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),v()})},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}(),Ln=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=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 l;return De(this,function(c){return l=this._getPosition(t,a),this._triggerIndexChangeEvent(t,t.position,s),[2,this._animateToPosition({position:l,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,l=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:l.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,l,c,f=this;return De(this,function(v){return s=A(this._flicking),l=function(){return f._controller.animateTo(e,r,a)},c=this._controller.state,c.targetPanel=o,r<=0?[2,l()]:[2,l().then(function(){return Ae(f,void 0,void 0,function(){return De(this,function(h){switch(h.label){case 0:return[4,s.renderer.render()];case 1:return h.sent(),[2]}})})}).catch(function(h){if(!(a&&h instanceof W&&h.code===G.ANIMATION_INTERRUPTED))throw h})]})})},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 l=this._controller.position,c=o.rangeDiff,f=[a,a+c,a-c].filter(function(v){return e===F.NONE?!0:e===F.PREV?v<=l:v>=l});a=f.reduce(function(v,h){return Math.abs(l-h)<Math.abs(l-v)?h:v},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=A(this._flicking),s=a.camera,l=s.findActiveAnchor(),c=s.findNearestAnchor(s.position),f=this._controller.state;if(!l||!c)return Promise.reject(new W(U.POSITION_NOT_REACHABLE(e),G.POSITION_NOT_REACHABLE));var v=this._calcSnapThreshold(e,l),h=a.animating?f.delta:e-s.position,d=Math.abs(h),p=o&&o.delta[K]!==0?Math.abs(o.delta[K]):d,g;if(p>=v&&p>0)g=this._findSnappedAnchor(e,c);else if(d>=a.threshold&&d>0)g=this._findAdjacentAnchor(e,h,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,l=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 v=o.panelCount,h=a.anchorPoints,d=Math.sign(e-l)*Math.floor(Math.abs(e-l)/a.rangeDiff);e>l&&f.index<r.index||f.position>r.position&&f.index===r.index?d+=1:(e<l&&f.index>r.index||f.position<r.position&&f.index===r.index)&&(d-=1);var p=d*v,g=f.index+p;if(Math.abs(g-r.index)<=s){var m=h[f.index];return new ee({index:m.index,position:m.position+d*a.rangeDiff,panel:m.panel})}if(o.circularEnabled){var _=h[Xi(r.index+Math.sign(e-l)*s,v)],y=Math.floor(s/v);return e>l&&_.index<r.index?y+=1:e<l&&_.index>r.index&&(y-=1),new ee({index:_.index,position:_.position+y*a.rangeDiff,panel:_.panel})}else return h[_e(r.index+Math.sign(e-l)*s,0,h.length-1)]},t._findAdjacentAnchor=function(e,r,o){var a,s=A(this._flicking),l=s.camera;if(l.circularEnabled){var c=l.findAnchorIncludePosition(e);if(c&&c.position!==o.position)return c}var f=(a=r>0?l.getNextAnchor(o):l.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,l=a.alignPosition;return o?s-l+a.margin.next:l+a.margin.prev},i}(Ln),Il=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,l=s.min+(s.max-s.min)*e;o.lookAt(o.clampToReachablePosition(l))}},t.moveToPosition=function(e,r,o){var a=A(this._flicking),s=a.camera,l=s.clampToReachablePosition(e),c=s.findAnchorIncludePosition(l);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?l:e,duration:r,newActivePanel:f,axesEvent:o})},i}(Ln),kl=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,l,c){n.prototype.setActive.call(a,s,l,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,l=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(l),this._resetIndexRange(),this;var v=l.range,h=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,v.min),E=Math.min(y.position,v.max);return b>h&&(b-=o.rangeDiff),E<h&&(E+=o.rangeDiff),l.range={min:b,max:E},l.circular&&(l.position<b&&(l.position+=o.rangeDiff),l.position>E&&(l.position-=o.rangeDiff)),l.circular=!1,s.update(l),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(l){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,l=this._activePanel,c=this._controller.range,f=this._indexRange,v=s.range,h=this._controller.state,d=_e(s.clampToReachablePosition(e),c[0],c[1]),p=s.findAnchorIncludePosition(d);if(!p||!l)return Promise.reject(new W(U.POSITION_NOT_REACHABLE(e),G.POSITION_NOT_REACHABLE));var g=l.position,m=a.animating?h.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],k=x[x.length-1],O=e<=v.min&&Yt(C.panel.index,f.min,f.max),R=e>=v.max&&Yt(k.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||R){var D=e<v.min?C:k;E=D.panel,b=D.position}else if(_&&p.position!==l.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}(Ln),Vn=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}(Vn),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],l=a.range.min-a.margin.prev,c=s.range.max+s.margin.next,f=e.camera.size,v=c-l,h=o.every(function(d){return v-d.size>=f});return h},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,l=a.range.max+a.margin.next;return{min:s,max:l}},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,l=-1,c=0;c<o.length;c++){var f=o[c],v=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));v<s&&(s=v,l=c)}return o[l]},t.findAnchorIncludePosition=function(e){var r=this._flicking.camera,o=r.range,a=r.anchorPoints,s=r.rangeDiff,l=a.length,c=Wi(e,o.min,o.max),f=n.prototype.findAnchorIncludePosition.call(this,c);if(l>0&&(e===o.min||e===o.max)){var v=[f,new ee({index:0,position:a[0].position+s,panel:a[0].panel}),new ee({index:l-1,position:a[l-1].position-s,panel:a[l-1].panel})].filter(function(d){return!!d});f=v.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 h=-Math.floor((o.min-e)/s)-1;return new ee({index:f.index,position:f.position+s*h,panel:f.panel})}else if(e>o.max){var h=Math.floor((e-o.max)/s)+1;return new ee({index:f.index,position:f.position+s*h,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(l){return l.toggled}),a=o.filter(function(l){return l.toggleDirection===F.PREV}),s=o.filter(function(l){return l.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,l=n.prototype.canSee.call(this,e);return s.min<o.min?l||e.isVisibleOnRange(s.min+a,s.max+a):s.max>o.max?l||e.isVisibleOnRange(s.min-a,s.max-a):l},t._calcPanelAreaSum=function(e){return e.reduce(function(r,o){return r+o.sizeIncludingMargin},0)},i}(Vn),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,l=o.range.min,c=a.range.max,f=c-l,v=s<f;return v},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 l=e.camera.size,c=a.range.min,f=s.range.max,v=f-c,h=l<v,d=c+o,p=f-l+o;if(h)return{min:d,max:p};var g=e.camera.align,m=typeof g=="object"?g.camera:g,_=d+Bn(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 l=s[0].position!==a.min,c=s[s.length-1].position!==a.max,f=l?1:0,v=s.map(function(g,m){return new ee({index:m+f,position:g.position,panel:g})});return l&&v.splice(0,0,new ee({index:0,position:a.min,panel:o[s[0].index-1]})),c&&v.push(new ee({index:v.length,position:a.max,panel:o[s[s.length-1].index+1]})),v}else if(a.min!==a.max){var h=this._findNearestPanel(a.min,o),d=h.index===o.length-1?h.prev():h,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],l=Math.abs(s.position-e);if(l>o)return r[a-1];o=l}return r[r.length-1]},i}(Vn),Al=function(){function n(t,e){var r=this,o=(e===void 0?{}:e).align,a=o===void 0?fe.CENTER:o;this._checkTranslateSupport=function(){var s,l,c=["webkitTransform","msTransform","MozTransform","OTransform","transform"],f=document.documentElement.style,v="";try{for(var h=Lt(c),d=h.next();!d.done;d=h.next()){var p=d.value;p in f&&(v=p)}}catch(g){s={error:g}}finally{try{d&&!d.done&&(l=h.return)&&l.call(h)}finally{if(s)throw s.error}}if(!v)throw new W(U.TRANSFORM_NOT_SUPPORTED,G.TRANSFORM_NOT_SUPPORTED);r._transform=v},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 zn(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,l=this.range,c=l.min,f=l.max,v=this.rangeDiff;if(e===a)return o.index;if(e<a){var h=o.prev(),d=h?h.position+h.offset:c-s[0];return d>a&&(d-=v),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+=v),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 vl(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 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=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=Bn(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)}),l=a.filter(function(c){return!St(o,c)});(s.length>0||l.length>0)&&e.renderer.render().then(function(){e.trigger(new V(B.VISIBLE_CHANGE,{added:s,removed:l,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,l=e.needPanelThreshold,c=o-this._alignPos,f=c+a,v=r[0],h=r[r.length-1];if(!t.prev){var d=v.range.min;(c<=d+l||o<=s.min+l)&&(e.trigger(new V(B.NEED_PANEL,{direction:F.PREV})),t.prev=!0)}if(!t.next){var p=h.range.max;(f>=p-l||o>=s.max-l)&&(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 l=e<=o.min?F.PREV:F.NEXT;r.trigger(new V(B.REACH_EDGE,{direction:l}))}},i._updateMode=function(){var t=A(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 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}(),Yi=function(){function n(t){var e=t.align,r=e===void 0?fe.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],l=wt(this._align),c=e.reduce(function(f,v){var h,d=Tt(v.index,o.length),p=o.slice(d),g=v.elements.map(function(_,y){return t._createPanel(_,{index:d+y,align:l,flicking:a})});if(o.splice.apply(o,J([d,0],g)),v.hasDOMInElements&&t._insertPanelElements(g,(h=p[0])!==null&&h!==void 0?h: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,l=s.activePanel,c=e.reduce(function(f,v){var h=v.index,d=v.deleteCount,p=Tt(h,o.length),g=o.slice(p+d),m=o.splice(p,d);return m.length<=0?[]:(g.forEach(function(_){_.decreaseIndex(m.length),_.updatePosition()}),v.hasDOMInElements&&t._removePanelElements(m),m.forEach(function(_){return _.destroy()}),St(m,l)&&s.resetActive(),J(f,m))},[]);return c},i.updateAfterPanelChange=function(t,e){var r,o=A(this._flicking),a=o.camera,s=o.control,l=this._panels,c=s.activePanel;if(this._updateCameraAndControl(),this.render(),!o.animating)if(!c||c.removed)if(l.length<=0)a.lookAt(0);else{var f=(r=c?.index)!==null&&r!==void 0?r:0;f>l.length-1&&(f=l.length-1),s.moveToPanel(l[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 l=new fl;t.forEach(function(c){c.loading=!0}),l.on("readyElement",function(c){if(!e._flicking){l.destroy();return}var f=t[c.index],v=r.camera,h=r.control,d=h.activePanel?v.getProgressInPanel(h.activePanel):0;f.loading=!1,f.resize(),a.slice(f.index+1).forEach(function(p){return p.updatePosition()}),r.initialized&&(v.updateRange(),v.updateOffset(),v.updateAnchors(),h.animating||(h.updatePosition(d),h.updateInput()))}),l.on("preReady",function(c){e._flicking&&e.render(),c.readyCount===c.totalCount&&l.destroy()}),l.on("ready",function(){e._flicking&&e.render(),l.destroy()}),l.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,l=(a-s*(o-1))/o,c=r.horizontal?{width:l}:{height:l},f=ne({size:l,margin:t.margin},!r.horizontal&&{height:t.height});r.noPanelStyleOverride||this._strategy.updatePanelSizes(r,c),r.panels.forEach(function(v){return v.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,l=document.createDocumentFragment();t.forEach(function(c){return l.appendChild(c.element)}),a.insertBefore(l,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}(),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 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 l=o[s-1]?o[s-1]:null;a.nextElementSibling!==l&&r.insertBefore(a,l)})},t._removeAllTextNodes=function(){var e=A(this._flicking),r=e.camera.element;zn(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),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 l=_n(r);this._size=Je({el:r,horizontal:a,useFractionalSize:s,useOffset:!0,style:l}),this._margin=a?{prev:parseFloat(l.marginLeft||"0"),next:parseFloat(l.marginRight||"0")}:{prev:parseFloat(l.marginTop||"0"),next:parseFloat(l.marginBottom||"0")},this._height=a?Je({el:r,horizontal:!1,useFractionalSize:s,useOffset:!0,style:l}):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,l=r.min-o,c=r.max-o+s,f=this.includeRange(c-s,c,!1),v=this.includeRange(l,l+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)):v?(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=Bn(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=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),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,l=this._cachedInnerHTML||o(this,this._index);l!==s.innerHTML&&(s.innerHTML=l,a&&this.cacheRenderResult(l))},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),Zi=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,l){return s.position+s.offset-(l.position+l.offset)});if(r.length<=0)return e.elements.map(function(s,l){return l});var o=r.map(function(s){return s.elementIndex}),a=e.elements.map(function(s,l){return ne(ne({},s),{idx:l})}).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){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?fe.CENTER:a,l=o.defaultIndex,c=l===void 0?0:l,f=o.horizontal,v=f===void 0?!0:f,h=o.circular,d=h===void 0?!1:h,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,k=C===void 0?!1:C,O=o.resizeOnContentsReady,R=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,$n=o.threshold,io=$n===void 0?40:$n,Hn=o.interruptable,oo=Hn===void 0?!0:Hn,Gn=o.bounce,ao=Gn===void 0?"20%":Gn,Wn=o.iOSEdgeSwipeThreshold,so=Wn===void 0?30:Wn,Un=o.preventClickOnDrag,lo=Un===void 0?!0:Un,Xn=o.preventDefaultOnDrag,uo=Xn===void 0?!1:Xn,Yn=o.disableOnInit,co=Yn===void 0?!1:Yn,Kn=o.changeOnHold,fo=Kn===void 0?!1:Kn,Zn=o.renderOnlyVisible,ho=Zn===void 0?!1:Zn,Jn=o.virtual,Qn=Jn===void 0?null:Jn,qn=o.autoInit,vo=qn===void 0?!0:qn,er=o.autoResize,po=er===void 0?!0:er,tr=o.useResizeObserver,go=tr===void 0?!0:tr,nr=o.resizeDebounce,mo=nr===void 0?0:nr,rr=o.maxResizeDebounce,_o=rr===void 0?100:rr,ir=o.useFractionalSize,yo=ir===void 0?!1:ir,or=o.externalRenderer,bo=or===void 0?null:or,ar=o.renderExternal,Eo=ar===void 0?null:ar,I=n.call(this)||this;return I._initialized=!1,I._plugins=[],I._align=s,I._defaultIndex=c,I._horizontal=v,I._circular=d,I._circularFallback=g,I._bound=_,I._adaptive=b,I._panelsPerView=x,I._noPanelStyleOverride=k,I._resizeOnContentsReady=R,I._nested=D,I._virtual=Qn,I._needPanelThreshold=$,I._preventEventsBeforeInit=H,I._deceleration=P,I._duration=Y,I._easing=L,I._inputType=Ce,I._moveType=ro,I._threshold=io,I._interruptable=oo,I._bounce=ao,I._iOSEdgeSwipeThreshold=so,I._preventClickOnDrag=lo,I._preventDefaultOnDrag=uo,I._disableOnInit=co,I._changeOnHold=fo,I._renderOnlyVisible=ho,I._autoInit=vo,I._autoResize=po,I._useResizeObserver=go,I._resizeDebounce=mo,I._maxResizeDebounce=_o,I._useFractionalSize=yo,I._externalRenderer=bo,I._renderExternal=Eo,I._viewport=new yl(I,hl(e)),I._autoResizer=new bl(I),I._renderer=I._createRenderer(),I._camera=I._createCamera(),I._control=I._createControl(),I._virtualManager=new Pl(I,Qn),I._autoInit&&I.init(),I}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,l=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=l),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,l=a.getPanel(e);return l?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(l,{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,l=a.getPanel(e);if(!l)throw new W(U.INDEX_OUT_OF_RANGE(e,0,s-1),G.INDEX_OUT_OF_RANGE);this._control.updateAnimation(l,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,l=s===void 0?!0:s,c=a.position,f=c===void 0?!0:c,v=a.includePanelHTML,h=v===void 0?!1:v,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 h&&(x.html=E.element.outerHTML),x})};if(l&&(_.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,l=e.panels,c=this._renderer,f=this._control;if(!((r=l[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(l.map(function(m){return m.html})),hasDOMInElements:!0})),o!=null){var v=s?o-s:o;this.moveTo(v,0).catch(function(){})}if(a&&this._moveType===Re.FREE_SCROLL){var h=a.panel,d=a.progressInPanel,v=s?h-s:h,p=c.panels[v].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(l){return l===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,l,c,f,v,h,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,l=e.width,c=e.height,f=s?o.getProgressInPanel(s):0,this.trigger(new V(B.BEFORE_RESIZE,{width:l,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()),v=e.width,h=e.height,d=v!==l||h!==c,this.trigger(new V(B.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:l,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(Re).map(function(l){return Re[l]}),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 Re.SNAP:return new Rl(s);case Re.FREE_SCROLL:return new Il(s);case Re.STRICT:return new kl(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),l=s&&a.index!==s.panel.index?s.panel:a;if(r.setActive(l,null,!1),!s)throw new W(U.POSITION_NOT_REACHABLE(l.position),G.POSITION_NOT_REACHABLE);var c=l.position;o.canReach(l)||(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,l=e.height,c=s!==0||l!==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),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=[],l=0;l<arguments.length;l++)s[l]=arguments[l];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=[],l=0;l<arguments.length;l++)s[l]=arguments[l];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 l=-1,c=-1;i.removed.forEach(function(d){l<0&&(l=d),c>=0&&d!==c-1&&(s.push.apply(s,J($r(e,c,l+1))),l=d),c=d,o.splice(d,1)}),s.push.apply(s,J($r(e,c,l+1)))}if(i.ordered.forEach(function(d){var p=Mn(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,v=-1,h=t.slice(o.length);i.added.forEach(function(d,p){f<0&&(f=p),v>=0&&d!==v+1?(a.push.apply(a,J(Fr(e,i,h,f,p+1))),f=-1,v=-1):v=d}),f>=0&&a.push.apply(a,J(Fr(e,i,h,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})},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=Mn(o,2),s=a[0],l=a[1];return r[s]=l,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=fe.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 fe.CENTER:return"50%";case fe.NEXT:return"100%";case fe.PREV:return"0%";default:return n}};/*! *****************************************************************************
|
|
42
|
+
Copyright (c) Microsoft Corporation.
|
|
43
|
+
|
|
44
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
45
|
+
purpose with or without fee is hereby granted.
|
|
46
|
+
|
|
47
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
48
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
49
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
50
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
51
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
52
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
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 $l(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 Rt=function(){return Rt=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},Rt.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 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(v){a(v)}}function l(f){try{c(e.throw(f))}catch(v){a(v)}}function c(f){f.done?o(f.value):r(f.value).then(s,l)}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 l([c,f])}}function l(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 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 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(l){r.renderEmitter.once("render",function(){a._afterRender(),l()}),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}(Ml),Ul=u.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}(),Wr=u.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=u.getCurrentInstance(),t=i?.ctx,e=n.vanillaFlicking,r=n.getSlots(),o=t?.diffResult,a=o?Ll(e,o):r,s=u.resolveComponent("Panel"),l=a.map(function(c,f){return u.h(s,{key:c.key,ref:f.toString()},function(){return c})});return l},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),l=a&&o.panels[0],c=l?o.horizontal?{width:l.size}:{height:l.size}:{};return s.map(function(f){return u.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,Rt(Rt({},t),{externalRenderer:new Wl(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();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)}:{}},l=e.virtual&&e.panelsPerView&&e.panelsPerView>0?this.getVirtualPanels:this.getPanels,c=this.$slots.viewport?this.$slots.viewport():[];return u.h(this.viewportTag,a,Kt([u.h(this.cameraTag,s,{default:l})],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!==u.Comment&&t.type!==u.Text})},getElementVNodes:function(n,i){var t=this;return i===void 0&&(i=[]),n.type===u.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}}}),$e={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," ")}},Zl=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,l=s===void 0?[]:s;this._flicking=null,this._addEvents=function(){var c=e._type,f=e._synchronizedFlickingOptions;f.forEach(function(v){var h=v.flicking,d=v.isSlidable,p=v.isClickable;c===$e.TYPE.CAMERA&&(h.on(B.MOVE,e._onMove),h.on(B.MOVE_START,e._onMoveStart),h.on(B.MOVE_END,e._onMoveEnd)),c===$e.TYPE.INDEX&&d&&(h.on(B.WILL_CHANGE,e._onIndexChange),h.on(B.WILL_RESTORE,e._onIndexChange)),p&&h.on(B.SELECT,e._onSelect)})},this._removeEvents=function(){var c=e._type,f=e._synchronizedFlickingOptions;f.forEach(function(v){var h=v.flicking,d=v.isSlidable,p=v.isClickable;c===$e.TYPE.CAMERA&&(h.off(B.MOVE,e._onMove),h.off(B.MOVE_START,e._onMoveStart),h.off(B.MOVE_END,e._onMoveEnd)),c===$e.TYPE.INDEX&&d&&(h.off(B.WILL_CHANGE,e._onIndexChange),h.off(B.WILL_RESTORE,e._onIndexChange)),p&&h.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,v=(f.position-f.range.min)/f.rangeDiff;e._synchronizedFlickingOptions.forEach(function(h){var d=h.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*v,d.camera.lookAt(p)}})},this._onMoveStart=function(c){e._synchronizedFlickingOptions.forEach(function(f){var v=f.flicking;v!==c.currentTarget&&v.disableInput()})},this._onMoveEnd=function(c){e._synchronizedFlickingOptions.forEach(function(f){var v=f.flicking;v!==c.currentTarget&&(v.enableInput(),v.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 v=e._synchronizedFlickingOptions;e._preventEvent(function(){v.forEach(function(h){e._updateClass(h,f);var d=h.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 v=c.flicking,h=c.activeClass;h&&v.panels.forEach(function(d){d.index===f?Yl(d.element,h):Kl(d.element,h)})},this._type=a,this._synchronizedFlickingOptions=l}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 Jl(n){return Zt||(Zt=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(i){return setTimeout(i,16)}).bind(window)),Zt(n)}var Jt=null;function Ql(n){Jt||(Jt=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(i){clearTimeout(i)}).bind(window)),Jt(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 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 En(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 eu='.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%}',Pn=0,_t=null;function tu(n,i){n.__resize_mutation_handler__||(n.__resize_mutation_handler__=iu.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)||It(n)}),a=En(n),s=a.detached,l=a.rendered;n.__resize_observer_triggered__=s===!1&&l===!1,n.__resize_observer__=o,o.observe(n)}else if(n.attachEvent&&n.addEventListener)n.__resize_legacy_resize_handler__=function(){It(n)},n.attachEvent("onresize",n.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",n.__resize_mutation_handler__);else if(Pn||(_t=ql(eu)),ou(n),n.__resize_rendered__=En(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),Pn++}function nu(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",jn),n.removeChild(n.__resize_triggers__.triggers),n.__resize_triggers__=null),n.__resize_listeners__=null}!--Pn&&_t&&_t.parentNode.removeChild(_t)}}function ru(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 iu(){var n=En(this),i=n.rendered,t=n.detached;i!==this.__resize_rendered__&&(!t&&this.__resize_triggers__&&(Fn(this),this.addEventListener("scroll",jn,!0)),this.__resize_rendered__=i,It(this))}function jn(){var n=this;Fn(this),this.__resize_raf__&&Ql(this.__resize_raf__),this.__resize_raf__=Jl(function(){var i=ru(n);i&&(n.__resize_last__=i,It(n))})}function It(n){!n||!n.__resize_listeners__||n.__resize_listeners__.forEach(function(i){i.call(n,n)})}function ou(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},Fn(n),n.addEventListener("scroll",jn,!0),n.__resize_last__={width:n.offsetWidth,height:n.offsetHeight}}function Fn(n){var i=n.__resize_triggers__,t=i.expand,e=i.expandChild,r=i.contract,o=r.scrollWidth,a=r.scrollHeight,s=t.offsetWidth,l=t.offsetHeight,c=t.scrollWidth,f=t.scrollHeight;r.scrollLeft=o,r.scrollTop=a,e.style.width=s+1+"px",e.style.height=l+1+"px",t.scrollLeft=c,t.scrollTop=f}const au=["aria-label"];var eo=u.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=u.ref(null),r=u.ref(null),o=u.ref(null),a=u.reactive({offset:0,localExpanded:!!t.expanded,unregisterResizeCallback:null}),s=u.computed(()=>{if(!a.localExpanded&&t.maxHeight)return typeof t?.maxHeight=="number"?`${t?.maxHeight}px`:t?.maxHeight}),l=()=>{o.value&&(o.value.textContent=x.value)},c=()=>{a.localExpanded||(l(),(h()||E.value)&&p())},f=()=>{t.text&&(a.offset=t.text.length,v(),t.autoResize&&e.value&&(tu(e.value,c),a.unregisterResizeCallback=()=>{e.value&&nu(e.value,c)}),c())},v=()=>{a.unregisterResizeCallback?.()},h=()=>!(!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($),h()?p(D,$):p($,N)},g=T=>{a.offset=T,l()},m=()=>{_(),y()},_=()=>{for(;(!h()||d()<2)&&a.offset<t.text.length;)b(1)},y=()=>{for(;h()&&d()>1&&a.offset>0;)b(-1)},b=T=>{g(a.offset+T)},E=u.computed(()=>!!t.text&&a.offset!==t.text.length);u.watch(()=>E.value,T=>{setTimeout(()=>{i("clamp-change",T)},0)},{immediate:!0});const x=u.computed(()=>E.value?C.value:t.text),C=u.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}),k=()=>{a.localExpanded=!0},O=()=>{a.localExpanded=!1},R=()=>{a.localExpanded=!a.localExpanded};return u.watch(()=>t.expanded,T=>{a.localExpanded=T}),u.watch(()=>a.localExpanded,T=>{T?g(t.text.length):c(),t.expanded!==T&&i("update:expanded",T)}),u.watch(()=>[t.maxLines,t.maxHeight,t.ellipsis,t.location,E.value].join(),()=>{u.nextTick(()=>{c()})}),u.watch(()=>[t.text,t.autoResize].join(),()=>{u.nextTick(()=>{f()})}),u.onUnmounted(()=>{v()}),u.onMounted(()=>{f()}),(T,D)=>(u.openBlock(),u.createElementBlock("div",{ref_key:"textClampRef",ref:e,class:"text-clamp",style:u.normalizeStyle({overflow:"hidden",maxHeight:u.unref(s)})},[u.createBaseVNode("span",{ref_key:"contentRef",ref:r},[u.renderSlot(T.$slots,"before",{expand:k,collapse:O,toggle:R,clamped:u.unref(E),expanded:a.localExpanded}),u.createBaseVNode("span",{ref_key:"textRef",ref:o,"aria-label":n.text},null,8,au),u.renderSlot(T.$slots,"after",{expand:k,collapse:O,toggle:R,clamped:u.unref(E),expanded:a.localExpanded})],512)],4))}});eo.__file="package/text-clamp.vue";const su=n=>(n.install=function(i){i.component(n.__name,n)},n),lu=su(eo),uu={key:0,class:"booking-availability-listing-featured"},cu=["src"],fu={class:"booking-availability-listing-content"},du={class:"booking-availability-listing-details"},hu=["title"],vu={class:"fresh-booking-listing-sub-title"},pu={key:0},gu={key:1},mu={class:"booking-availability-listing-description"},_u={key:0},yu=["onClick"],bu={key:0},Eu={key:1},Pu=["innerHTML"],xu={key:0,class:"booking-availability-listing-details-facilities"},Ou={class:"booking-availability-listing-action"},wu=u.defineComponent({name:"BaseListing",__name:"Base",props:{name:{},description:{},listingId:{},includesBreakfast:{type:Boolean,default:!1},gallery:{},layout:{default:u.BookingLayout.Selective},pricesFrom:{},trackingEnabled:{type:Boolean,default:!1},facilities:{},callback:{}},setup(n){const{t:i}=u.useI18n(),t=n,{disablePricesFrom:e,currency:r}=u.useUtilityStore(),o=u.ref(!e&&!!t.pricesFrom),a=u.ref(),s=u.ref(),l=u.ref();function c(f){let v="";return f.forEach(({name:h})=>{v+=`<li>${h}</li>`}),`<ul>${v}</ul>`}return u.onMounted(()=>{l.value=[new Zl({type:"index",synchronizedFlickingOptions:[{flicking:a.value,isSlidable:!0},{flicking:s.value,isClickable:!0,activeClass:"active"}]})]}),(f,v)=>{const h=u.resolveDirective("tooltip");return u.openBlock(),u.createElementBlock("li",{class:u.normalizeClass(["booking-availability-listing",{"no-gallery":f.gallery===void 0||f.gallery.length===0}])},[f.gallery?(u.openBlock(),u.createElementBlock("div",uu,[f.gallery.length===1?(u.openBlock(),u.createBlock(u.unref(Sr),{key:0,src:f.gallery[0].medium,zoomSrc:f.gallery[0].large,zoomScale:1,zoomType:"hover",width:280,height:153,zoomPreload:!0,fullscreenOnMobile:!1},null,8,["src","zoomSrc"])):f.gallery.length>1?(u.openBlock(),u.createBlock(u.unref(Wr),{ref_key:"slideshow",ref:a,key:f.gallery.length,options:{align:"prev",circular:!0,bounce:30},plugins:l.value},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(f.gallery,({medium:d,large:p},g)=>(u.openBlock(),u.createElementBlock("div",{key:g,class:"booking-availability-listing-featured-img"},[u.createVNode(u.unref(Sr),{src:d,zoomSrc:p,zoomScale:1,zoomType:"hover",width:280,height:153,zoomPreload:!0,fullscreenOnMobile:!1},null,8,["src","zoomSrc"])]))),128))]),_:1},8,["plugins"])):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0),f.gallery&&typeof f.gallery!="string"&&f.gallery.length>1?(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(["booking-availability-listing-gallery",{"small-gallery":f.gallery.length>6}])},[u.createVNode(u.unref(Wr),{ref_key:"thumbnails",ref:s,options:{bounce:30,panelsPerView:3,bound:!0}},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(f.gallery,(d,p)=>(u.openBlock(),u.createElementBlock("div",{key:p},[u.createBaseVNode("img",{src:d.thumb,width:"88",height:"48"},null,8,cu)]))),128))]),_:1},512)],2)):u.createCommentVNode("",!0),u.createBaseVNode("div",fu,[u.createBaseVNode("div",du,[u.createBaseVNode("div",{class:u.normalizeClass(["fresh-booking-listing-title",{"has-from-price":o.value}])},[u.createBaseVNode("h3",{title:f.name},[u.createBaseVNode("span",null,u.toDisplayString(f.name),1),f.layout!==u.unref(u.BookingLayout).Event&&(f.description||f.facilities.length>0)?(u.openBlock(),u.createElementBlock("button",{key:0,class:"booking-availability-listing-read-more",type:"button",onClick:v[0]||(v[0]=u.withModifiers((...d)=>f.callback&&f.callback(...d),["prevent"]))},[u.createVNode(u.Icon,{icon:"info-circle",color:"header"})])):u.createCommentVNode("",!0)],8,hu),u.createBaseVNode("ul",vu,[o.value?(u.openBlock(),u.createElementBlock("li",pu,[u.createBaseVNode("span",null,u.toDisplayString(`${u.unref(i)("general.pricesFrom")}: ${u.unref(u.showPrice)(f.pricesFrom,u.unref(r))}`),1)])):u.createCommentVNode("",!0),f.includesBreakfast?(u.openBlock(),u.createElementBlock("li",gu,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("general.breakfastIncluded")),1),u.createCommentVNode("",!0)])):u.createCommentVNode("",!0)])],2),u.createBaseVNode("div",mu,[f.layout!==u.unref(u.BookingLayout).Event&&f.description?(u.openBlock(),u.createElementBlock("div",_u,[u.createVNode(u.unref(lu),{text:f.description,"max-lines":5},{after:u.withCtx(({toggle:d,expanded:p,clamped:g})=>[g?(u.openBlock(),u.createElementBlock("button",{key:0,class:"link",onClick:u.withModifiers(m=>d(),["prevent"])},[p?(u.openBlock(),u.createElementBlock("span",Eu,u.toDisplayString(u.unref(i)("general.readLess")),1)):(u.openBlock(),u.createElementBlock("span",bu,u.toDisplayString(u.unref(i)("general.readMore")),1))],8,yu)):u.createCommentVNode("",!0)]),_:1},8,["text"])])):f.description?(u.openBlock(),u.createElementBlock("p",{key:1,innerHTML:u.unref(u.convertDescription)(f.description)},null,8,Pu)):u.createCommentVNode("",!0)]),f.layout!==u.unref(u.BookingLayout).Event?(u.openBlock(),u.createElementBlock("ul",xu,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(f.facilities,({icon:d,name:p,subFacilities:g})=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[d?u.withDirectives((u.openBlock(),u.createElementBlock("li",{key:p},[u.createVNode(u.Icon,{icon:d,color:"header"},null,8,["icon"])])),[[h,{content:c(g),classes:["tooltip","freshcase-octopus-tooltip"],container:"#fresh-booking-hotel-module",html:!0}]]):u.createCommentVNode("",!0)],64))),256))])):u.createCommentVNode("",!0),u.renderSlot(f.$slots,"description")]),u.createBaseVNode("div",Ou,[u.renderSlot(f.$slots,"action")])])],2)}}});const Tu=u._export_sfc(wu,[["__scopeId","data-v-4354a63e"]]),Su={id:"fresh-booking-multi-step-form-content"},Cu=u.defineComponent({__name:"MultiStepForm",props:{layout:{default:u.BookingHeaderLayout.Default},title:{},subtitle:{}},setup(n){const i=u.ref(0),t=u.ref(),{t:e}=u.useI18n(),r=[{id:"availability",label:e("booking.availability.title"),icon:"search"},{id:"reservation",label:e("booking.reservation.title"),icon:"concierge-bell"},{id:"payment",hidden:!0},{id:"confirmation",label:e("booking.confirmation.title"),icon:"calendar-check"}];u.computed(()=>r.filter(c=>!c.hidden));const o=u.computed(()=>r[i.value].id),a=()=>{t.value!==void 0&&t.value.scrollIntoView({behavior:"smooth"})},s=(c=1)=>{a(),i.value=i.value+c},l=()=>{a(),i.value--};return(c,f)=>(u.openBlock(),u.createElementBlock("div",{id:"fresh-booking-multi-step-form",ref_key:"multiStepForm",ref:t,class:u.normalizeClass({minimal:c.layout===u.unref(u.BookingHeaderLayout).Minimal})},[u.createBaseVNode("div",null,[u.createCommentVNode("",!0),u.createBaseVNode("ul",Su,[(u.openBlock(),u.createElementBlock(u.Fragment,null,u.renderList(r,v=>u.createBaseVNode("li",{key:v.id,class:"fresh-booking-multi-step-form-content-tab"},[u.withDirectives(u.createBaseVNode("div",null,[u.renderSlot(c.$slots,v.id,{next:s,prev:l},void 0,!0)],512),[[u.vShow,o.value===v.id]])])),64))])])],2))}});const Ru=u._export_sfc(Cu,[["__scopeId","data-v-a4718ea4"]]);const Iu={class:"fresh-booking-modal-title modal__title"},ku={class:"modal__content"},Nu=["innerHTML"],to=u.defineComponent({__name:"Base",props:{title:{},description:{}},emits:["confirm"],setup(n,{emit:i}){const t=i;return(e,r)=>(u.openBlock(),u.createBlock(u.unref(u.Io),{class:"modal-container","content-class":"fresh-booking-modal","teleport-to":!1,style:{"z-index":1e6}},{default:u.withCtx(()=>[u.createBaseVNode("h3",Iu,[u.createBaseVNode("span",null,u.toDisplayString(e.title),1)]),u.createBaseVNode("div",ku,[e.description?(u.openBlock(),u.createElementBlock("p",{key:0,class:"fresh-booking-modal-description",innerHTML:e.description},null,8,Nu)):u.createCommentVNode("",!0),u.renderSlot(e.$slots,"default")]),u.createBaseVNode("button",{class:"fresh-booking-modal-close",onClick:r[0]||(r[0]=o=>t("confirm"))},[u.createVNode(u.Icon,{icon:"times",type:"fas"})])]),_:3}))}});const Au=u.defineComponent({__name:"Terms",props:{description:{}},setup(n){const{t:i}=u.useI18n();return(t,e)=>(u.openBlock(),u.createBlock(to,{title:u.unref(i)("general.termsAndConditions"),description:t.description},null,8,["title","description"]))}}),Du={class:"konnectio-accept-terms"},Mu=u.defineComponent({__name:"TermsOfService",setup(n){const{termsOfService:i}=u.storeToRefs(wo.useHotelStore()),{t}=u.useI18n(),{open:e,close:r}=u.Go({component:Au,attrs:{description:i.value,onConfirm(){r()}}});return(o,a)=>{const s=u.resolveComponent("i18n-t");return u.openBlock(),u.createElementBlock("div",Du,[u.createVNode(s,{keypath:"general.termsAndConditionsNotice",tag:"span",scope:"global"},{button:u.withCtx(()=>[u.createBaseVNode("i",null,'"'+u.toDisplayString(u.unref(t)("general.confirmReservation"))+'"',1)]),terms:u.withCtx(()=>[u.createBaseVNode("a",{class:"konnectio-accept-terms-link",target:"_blank",onClick:a[0]||(a[0]=u.withModifiers((...l)=>u.unref(e)&&u.unref(e)(...l),["prevent"]))},[u.createBaseVNode("span",null,u.toDisplayString(u.unref(t)("general.termsAndConditions")),1)])]),_:1})])}}});const zu=u._export_sfc(Mu,[["__scopeId","data-v-52e1f591"]]),Bu={class:"fresh-booking-panel hotel-skeleton-sidebar-inner"},Lu={class:"hotel-skeleton-sidebar-group"},Vu={class:"hotel-skeleton-sidebar-group"},ju=u.defineComponent({__name:"Sidebar",setup(n){return(i,t)=>(u.openBlock(),u.createElementBlock("div",Bu,[u.createBaseVNode("div",Lu,[u.createVNode(se.Element,{height:"20px"}),u.createVNode(se.Element,{height:"15px"}),u.createVNode(se.Element,{height:"15px"}),u.createVNode(se.Element,{height:"15px"})]),u.createBaseVNode("div",Vu,[u.createVNode(se.Element,{height:"20px"}),u.createVNode(se.Element,{height:"15px"}),u.createVNode(se.Element,{height:"15px"}),u.createVNode(se.Element,{height:"15px"})]),u.createVNode(se.Element,{height:"44px"})]))}});const no=u._export_sfc(ju,[["__scopeId","data-v-78cc8d19"]]),Fu=n=>(u.pushScopeId("data-v-bb2302bf"),n=n(),u.popScopeId(),n),$u={id:"fresh-booking-reservation-layout","sticky-container":""},Hu={id:"fresh-booking-reservation-layout-content"},Gu={id:"fresh-booking-reservation-layout-form"},Wu={id:"fresh-booking-reservation-layout-aside"},Uu={class:"fresh-booking-panel"},Xu={id:"fresh-booking-reservation-layout-aside-resume"},Yu={key:0},Ku={key:1},Zu={key:2},Ju={key:3},Qu=Fu(()=>u.createBaseVNode("hr",null,null,-1)),qu={key:0,class:"fresh-booking-panel"},ec={id:"fresh-booking-reservation-layout-aside-gift-card"},tc={key:1,class:"fresh-booking-panel"},nc={id:"fresh-booking-reservation-layout-aside-addons"},rc=["innerHTML"],ic={key:0,id:"fresh-booking-reservation-layout-recaptcha"},oc=u.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}=u.useI18n(),{disableGiftCardVoucher:t,isRecaptchaEnabled:e,currency:r}=u.storeToRefs(u.useUtilityStore()),{amount:o,voucher:a}=u.storeToRefs(sr.useApplyGiftCardStore()),{apply:s,reset:l}=sr.useApplyGiftCardStore(),c=u.useSlots(),f=n,v=u.computed(()=>f.basePrice-f.weekendFee-f.roomUpgrade);return(h,d)=>(u.openBlock(),u.createElementBlock("div",$u,[u.createBaseVNode("div",Hu,[u.createBaseVNode("div",Gu,[u.createBaseVNode("form",null,[u.renderSlot(h.$slots,"form")])]),u.createBaseVNode("aside",Wu,[h.isSidebarLoading?(u.openBlock(),u.createBlock(no,{key:1})):(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createBaseVNode("div",Uu,[u.createBaseVNode("ul",Xu,[u.createBaseVNode("h5",null,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("general.reservationSummary")),1)]),u.createBaseVNode("ul",null,[u.renderSlot(h.$slots,"reservation-summary")]),u.createBaseVNode("h5",null,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("general.priceSummary")),1)]),u.createBaseVNode("ul",null,[u.renderSlot(h.$slots,"price-summary"),v.value>0?(u.openBlock(),u.createElementBlock("li",Yu,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("booking.availability.basePrice")),1),u.createBaseVNode("b",null,u.toDisplayString(u.unref(u.showPrice)(v.value,u.unref(r))),1)])):u.createCommentVNode("",!0),h.weekendFee>0?(u.openBlock(),u.createElementBlock("li",Ku,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("general.weekendFee")),1),u.createBaseVNode("b",null,u.toDisplayString(u.unref(u.showPrice)(h.weekendFee,u.unref(r))),1)])):u.createCommentVNode("",!0),h.roomUpgrade>0?(u.openBlock(),u.createElementBlock("li",Zu,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("general.roomUpgrade")),1),u.createBaseVNode("b",null,u.toDisplayString(u.unref(u.showPrice)(h.roomUpgrade,u.unref(r))),1)])):u.createCommentVNode("",!0),u.renderSlot(h.$slots,"expenses"),u.unref(o)!==0?(u.openBlock(),u.createElementBlock("li",Ju,[u.createBaseVNode("span",null,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("booking.reservation.giftCardDiscount")),1),u.createBaseVNode("a",{class:"resume-item-remove",onClick:d[0]||(d[0]=u.withModifiers(p=>u.unref(l)(),["prevent"]))},[u.createVNode(u.Icon,{icon:"times",type:"fas","icon-color":"#ff0000"})])]),u.createBaseVNode("b",null,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(u.showPrice)(-u.unref(o),u.unref(r))),1)])])):u.createCommentVNode("",!0),u.createBaseVNode("li",null,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("booking.reservation.totalPrice")),1),u.createBaseVNode("b",null,[u.createBaseVNode("u",null,u.toDisplayString(u.unref(u.showPrice)(h.totalPrice,u.unref(r))),1)])])]),u.renderSlot(h.$slots,"navigation"),h.showTermsNotice?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[Qu,u.createVNode(zu)],64)):u.createCommentVNode("",!0)])]),h.showGiftCard&&u.unref(o)===0&&!u.unref(t)?(u.openBlock(),u.createElementBlock("div",qu,[u.createBaseVNode("h5",null,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("booking.reservation.giftCardCode")),1)]),u.createBaseVNode("div",ec,[u.createVNode(xo.ActionField,{modelValue:u.unref(a),"onUpdate:modelValue":d[1]||(d[1]=p=>u.isRef(a)?a.value=p:null),icon:"gift-card","button-icon":"paper-plane-top","button-icon-color":h.buttonIconColor,placeholder:"XXXXXXXX",action:"success",secondary:!0,onAction:d[2]||(d[2]=p=>u.unref(s)())},null,8,["modelValue","button-icon-color"])])])):u.createCommentVNode("",!0),u.unref(c).addons?(u.openBlock(),u.createElementBlock("div",tc,[u.createBaseVNode("h5",null,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("booking.reservation.addons")),1)]),u.createBaseVNode("ul",nc,[u.renderSlot(h.$slots,"addons")])])):u.createCommentVNode("",!0),h.notice?(u.openBlock(),u.createElementBlock("p",{key:2,innerHTML:h.notice,class:"fresh-booking-wysiwyg"},null,8,rc)):u.createCommentVNode("",!0)],64))]),u.unref(e)?(u.openBlock(),u.createElementBlock("div",ic,[u.createVNode(Oo._sfc_main)])):u.createCommentVNode("",!0)])]))}});const ac=u._export_sfc(oc,[["__scopeId","data-v-bb2302bf"]]),sc={id:"konnectio-confirmation",class:"fresh-booking-panel"},lc={id:"konnectio-confirmation-introduction"},uc={id:"konnectio-confirmation-title"},cc=["innerHTML"],fc={class:"fresh-booking-order-panel"},dc={key:0},hc={class:"fresh-booking-order-panel"},vc={class:"fresh-booking-order-lines"},pc={key:0},gc={key:1},mc={key:0,class:"fresh-booking-order-panel"},_c={class:"fresh-booking-table with-lines"},yc={class:"fresh-booking-order-lines"},bc={key:0},Ec={key:1},Pc={key:2,class:"highlighted-line"},xc=u.defineComponent({__name:"ThankYou",props:{message:{}},setup(n){const{t:i}=u.useI18n(),{hasOrderLines:t,orderSummary:e,name:r,email:o,phone:a,adults:s,children:l,offerDate:c,totalPrice:f,totalVAT:v,subTotalPrice:h}=u.storeToRefs(se.usePaymentStore()),{currency:d}=u.storeToRefs(u.useUtilityStore());return(p,g)=>(u.openBlock(),u.createElementBlock("div",sc,[u.createBaseVNode("div",lc,[u.createBaseVNode("h2",uc,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("general.thankYou")),1)]),u.createBaseVNode("div",{id:"konnectio-confirmation-message",innerHTML:p.message},null,8,cc)]),u.createBaseVNode("div",fc,[u.createBaseVNode("h5",null,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("general.primaryContact")),1)]),u.createBaseVNode("div",null,u.toDisplayString(u.unref(r)),1),u.createBaseVNode("div",null,u.toDisplayString(u.unref(o)),1),u.unref(a)?(u.openBlock(),u.createElementBlock("div",dc,u.toDisplayString(u.unref(a)),1)):u.createCommentVNode("",!0)]),u.createBaseVNode("div",hc,[u.createBaseVNode("h5",null,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("booking.reservation.detailsTitle")),1)]),u.createBaseVNode("ul",vc,[u.unref(c)?(u.openBlock(),u.createElementBlock("li",pc,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("general.date")),1),u.createBaseVNode("b",null,u.toDisplayString(u.unref(u.showDate)(u.unref(c))),1)])):u.createCommentVNode("",!0),u.createBaseVNode("li",null,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("availability.adults")),1),u.createBaseVNode("b",null,u.toDisplayString(u.unref(s)),1)]),u.unref(l)&&u.unref(l)>0?(u.openBlock(),u.createElementBlock("li",gc,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("availability.children")),1),u.createBaseVNode("b",null,u.toDisplayString(u.unref(l)),1)])):u.createCommentVNode("",!0)])]),u.unref(t)?(u.openBlock(),u.createElementBlock("div",mc,[u.createBaseVNode("h5",null,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("general.orderDetails")),1)]),u.createBaseVNode("table",_c,[u.createBaseVNode("thead",null,[u.createBaseVNode("tr",null,[u.createBaseVNode("th",null,u.toDisplayString(u.unref(i)("general.orderItem")),1),u.createBaseVNode("th",null,u.toDisplayString(u.unref(i)("general.quantity")),1),u.createBaseVNode("th",null,u.toDisplayString(u.unref(i)("booking.availability.price")),1),u.createBaseVNode("th",null,u.toDisplayString(u.unref(i)("booking.reservation.totalPrice")),1)])]),u.createBaseVNode("tbody",null,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(e),({productName:m,quantity:_,unitPrice:y,totalPrice:b})=>(u.openBlock(),u.createElementBlock("tr",{key:m},[u.createBaseVNode("td",null,[u.createBaseVNode("span",null,u.toDisplayString(m),1)]),u.createBaseVNode("td",null,[u.createBaseVNode("span",null,u.toDisplayString(_),1)]),u.createBaseVNode("td",null,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(u.showPrice)(y,u.unref(d))),1)]),u.createBaseVNode("td",null,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(u.showPrice)(b,u.unref(d))),1)])]))),128))])])])):u.createCommentVNode("",!0),u.createBaseVNode("ul",yc,[u.unref(h)?(u.openBlock(),u.createElementBlock("li",bc,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("general.subTotal")),1),u.createBaseVNode("b",null,u.toDisplayString(u.unref(u.showPrice)(u.unref(h),u.unref(d))),1)])):u.createCommentVNode("",!0),u.unref(v)?(u.openBlock(),u.createElementBlock("li",Ec,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("general.vat")),1),u.createBaseVNode("b",null,u.toDisplayString(u.unref(u.showPrice)(u.unref(v),u.unref(d))),1)])):u.createCommentVNode("",!0),u.unref(f)?(u.openBlock(),u.createElementBlock("li",Pc,[u.createBaseVNode("span",null,u.toDisplayString(u.unref(i)("booking.reservation.totalPrice")),1),u.createBaseVNode("b",null,u.toDisplayString(u.unref(u.showPrice)(u.unref(f),u.unref(d))),1)])):u.createCommentVNode("",!0)])]))}});const Oc=u._export_sfc(xc,[["__scopeId","data-v-86500fde"]]);exports.Base=Tu;exports.MultiStepForm=Ru;exports.ReservationForm=ac;exports.Sidebar=no;exports.ThankYou=Oc;exports._sfc_main=to;exports.xt=Ra;
|